@kong-ui-public/entities-consumer-groups 3.2.8-pr.1436.cb87125a.0 → 3.2.8

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,20 +1,20 @@
1
- import { defineComponent as X, computed as w, openBlock as m, createBlock as D, resolveDynamicComponent as Se, normalizeStyle as He, withCtx as v, createElementBlock as $, toDisplayString as F, createCommentVNode as J, pushScopeId as Je, popScopeId as We, createElementVNode as L, ref as M, watch as $e, renderSlot as ne, unref as g, onBeforeMount as gt, resolveComponent as V, createSlots as Ke, createVNode as N, createTextVNode as Z, renderList as ve, withModifiers as St, withDirectives as je, vShow as Ne, Fragment as be, normalizeClass as Ee, withKeys as wr, useSlots as Nt, useCssVars as bn, inject as _r, onMounted as xr, onUnmounted as Sr, normalizeProps as Ir, guardReactiveProps as Ar, mergeProps as $r, Teleport as Tr, reactive as zt } from "vue";
2
- import { useRouter as Ot } from "vue-router";
1
+ import { defineComponent as X, computed as w, openBlock as m, createBlock as D, resolveDynamicComponent as xe, normalizeStyle as He, withCtx as v, createElementBlock as $, toDisplayString as q, createCommentVNode as J, pushScopeId as Je, popScopeId as Ze, createElementVNode as L, ref as O, watch as $e, renderSlot as ne, unref as g, onBeforeMount as gt, resolveComponent as R, createSlots as Be, createVNode as j, createTextVNode as Y, renderList as ve, withModifiers as xt, withDirectives as Ne, vShow as je, Fragment as be, normalizeClass as Me, withKeys as wr, useSlots as jt, useCssVars as bn, inject as _r, onMounted as Ir, onUnmounted as xr, normalizeProps as Sr, guardReactiveProps as Ar, mergeProps as $r, Teleport as Tr, reactive as zt } from "vue";
2
+ import { useRouter as Et } from "vue-router";
3
3
  import { createI18n as Cn, i18nTComponent as kn } from "@kong-ui-public/i18n";
4
4
  import Gt from "axios";
5
- import { BadgeMethodAppearances as jr } from "@kong/kongponents";
6
- const Ht = "24px", Nr = (e, t) => {
5
+ import { BadgeMethodAppearances as Nr } from "@kong/kongponents";
6
+ const Ht = "24px", jr = (e, t) => {
7
7
  const n = e.__vccOpts || e;
8
8
  for (const [r, a] of t)
9
9
  n[r] = a;
10
10
  return n;
11
- }, Or = (e) => (Je("data-v-f68c7837"), e = e(), We(), e), Mr = ["aria-hidden"], Er = {
11
+ }, Er = (e) => (Je("data-v-f68c7837"), e = e(), Ze(), e), Or = ["aria-hidden"], Mr = {
12
12
  key: 0,
13
13
  "data-testid": "kui-icon-svg-title"
14
- }, qr = /* @__PURE__ */ Or(() => /* @__PURE__ */ L("path", {
14
+ }, Fr = /* @__PURE__ */ Er(() => /* @__PURE__ */ L("path", {
15
15
  d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
16
16
  fill: "currentColor"
17
- }, null, -1)), Fr = /* @__PURE__ */ X({
17
+ }, null, -1)), qr = /* @__PURE__ */ X({
18
18
  __name: "AddIcon",
19
19
  props: {
20
20
  /** The accessibility text provided to screen readers */
@@ -83,7 +83,7 @@ const Ht = "24px", Nr = (e, t) => {
83
83
  lineHeight: "0",
84
84
  width: n.value
85
85
  }));
86
- return (a, i) => (m(), D(Se(e.as), {
86
+ return (a, i) => (m(), D(xe(e.as), {
87
87
  "aria-hidden": e.decorative ? "true" : void 0,
88
88
  class: "kui-icon add-icon",
89
89
  "data-testid": "kui-icon-wrapper-add-icon",
@@ -100,14 +100,14 @@ const Ht = "24px", Nr = (e, t) => {
100
100
  width: "100%",
101
101
  xmlns: "http://www.w3.org/2000/svg"
102
102
  }, [
103
- e.title ? (m(), $("title", Er, F(e.title), 1)) : J("", !0),
104
- qr
105
- ], 8, Mr))
103
+ e.title ? (m(), $("title", Mr, q(e.title), 1)) : J("", !0),
104
+ Fr
105
+ ], 8, Or))
106
106
  ]),
107
107
  _: 1
108
108
  }, 8, ["aria-hidden", "style"]));
109
109
  }
110
- }), Br = /* @__PURE__ */ Nr(Fr, [["__scopeId", "data-v-f68c7837"]]), Kr = {
110
+ }), Kr = /* @__PURE__ */ jr(qr, [["__scopeId", "data-v-f68c7837"]]), Br = {
111
111
  list: {
112
112
  table_headers: {
113
113
  name: "Name",
@@ -197,7 +197,7 @@ const Ht = "24px", Nr = (e, t) => {
197
197
  }
198
198
  }
199
199
  }, Lr = {
200
- consumer_groups: Kr
200
+ consumer_groups: Br
201
201
  };
202
202
  function Ur() {
203
203
  const e = Cn("en-us", Lr);
@@ -209,12 +209,12 @@ function Ur() {
209
209
  }
210
210
  const yt = {
211
211
  useI18n: Ur
212
- }, Ie = "/v2/control-planes/{controlPlaneId}/core-entities", Ae = "/{workspace}", Oe = {
212
+ }, Se = "/v2/control-planes/{controlPlaneId}/core-entities", Ae = "/{workspace}", Ee = {
213
213
  list: {
214
214
  konnect: {
215
- all: `${Ie}/consumer_groups`,
216
- forConsumer: `${Ie}/consumers/{consumerId}/consumer_groups`,
217
- oneForConsumer: `${Ie}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`
215
+ all: `${Se}/consumer_groups`,
216
+ forConsumer: `${Se}/consumers/{consumerId}/consumer_groups`,
217
+ oneForConsumer: `${Se}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`
218
218
  },
219
219
  kongManager: {
220
220
  all: `${Ae}/consumer_groups?counter=true`,
@@ -224,12 +224,12 @@ const yt = {
224
224
  },
225
225
  form: {
226
226
  konnect: {
227
- consumersList: `${Ie}/consumers`,
228
- create: `${Ie}/consumer_groups`,
229
- edit: `${Ie}/consumer_groups/{id}`,
230
- addConsumer: `${Ie}/consumer_groups/{id}/consumers`,
231
- removeConsumer: `${Ie}/consumer_groups/{id}/consumers/{consumerId}`,
232
- getConsumers: `${Ie}/consumer_groups/{id}/consumers`
227
+ consumersList: `${Se}/consumers`,
228
+ create: `${Se}/consumer_groups`,
229
+ edit: `${Se}/consumer_groups/{id}`,
230
+ addConsumer: `${Se}/consumer_groups/{id}/consumers`,
231
+ removeConsumer: `${Se}/consumer_groups/{id}/consumers/{consumerId}`,
232
+ getConsumers: `${Se}/consumer_groups/{id}/consumers`
233
233
  },
234
234
  kongManager: {
235
235
  consumersList: `${Ae}/consumers`,
@@ -241,8 +241,8 @@ const yt = {
241
241
  }
242
242
  }
243
243
  };
244
- var wn = /* @__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))(wn || {}), ut = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(ut || {}), Fe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Fe || {}), ee = /* @__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))(ee || {}), he = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(he || {});
245
- function Rr() {
244
+ var wn = /* @__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))(wn || {}), ut = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(ut || {}), qe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(qe || {}), ee = /* @__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))(ee || {}), he = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(he || {});
245
+ function Pr() {
246
246
  return {
247
247
  getAxiosInstance: (e = {}) => {
248
248
  try {
@@ -266,7 +266,7 @@ function Rr() {
266
266
  }
267
267
  };
268
268
  }
269
- function Pr() {
269
+ function Vr() {
270
270
  return {
271
271
  debounce: (e, t) => {
272
272
  let n;
@@ -278,7 +278,7 @@ function Pr() {
278
278
  }
279
279
  };
280
280
  }
281
- const kt = "khcp-user-table-preferences", Vr = {
281
+ const kt = "khcp-user-table-preferences", Rr = {
282
282
  pageSize: 30,
283
283
  sortColumnKey: void 0,
284
284
  sortColumnOrder: void 0,
@@ -309,15 +309,15 @@ function Dr() {
309
309
  },
310
310
  getTablePreferences: (n) => {
311
311
  const r = t();
312
- return (r == null ? void 0 : r.get(n)) || void 0 || Vr;
312
+ return (r == null ? void 0 : r.get(n)) || void 0 || Rr;
313
313
  },
314
314
  deleteAllTablePreferences: () => {
315
315
  localStorage.removeItem(kt);
316
316
  }
317
317
  };
318
318
  }
319
- function Mt(e = {}) {
320
- const { getAxiosInstance: t } = Rr();
319
+ function Ot(e = {}) {
320
+ const { getAxiosInstance: t } = Pr();
321
321
  return {
322
322
  axiosInstance: t(e)
323
323
  };
@@ -354,7 +354,7 @@ const zr = {
354
354
  noSearchResultsMessage: "Please adjust the criteria and try again.",
355
355
  noSearchResultsCtaText: "Clear"
356
356
  }
357
- }, Wr = {
357
+ }, Zr = {
358
358
  title: "Configuration",
359
359
  actions: {
360
360
  copy: "Copy JSON"
@@ -389,7 +389,7 @@ const zr = {
389
389
  entryTitle: "Entry {index}",
390
390
  structuredFormat: "Structured"
391
391
  }
392
- }, Yr = {
392
+ }, Wr = {
393
393
  filterButtonText: "Filter",
394
394
  fieldLabel: "Filter by:",
395
395
  inputPlaceholder: "Enter a value",
@@ -397,7 +397,7 @@ const zr = {
397
397
  applyButtonText: "Apply",
398
398
  clearButtonText: "Clear",
399
399
  clearAllButtonText: "Clear all filters"
400
- }, Zr = {
400
+ }, Yr = {
401
401
  errors: {
402
402
  fetch: "Could not fetch available items",
403
403
  invalid: "Please select a valid value"
@@ -423,9 +423,9 @@ const zr = {
423
423
  deleteModal: Gr,
424
424
  baseForm: Hr,
425
425
  baseTable: Jr,
426
- baseConfigCard: Wr,
427
- filter: Yr,
428
- debouncedFilter: Zr,
426
+ baseConfigCard: Zr,
427
+ filter: Wr,
428
+ debouncedFilter: Yr,
429
429
  errors: Qr,
430
430
  validationErrors: Xr,
431
431
  toggleModal: ea
@@ -444,8 +444,8 @@ function _n() {
444
444
  return !1;
445
445
  const a = /* @__PURE__ */ new Set([...n, ...r]);
446
446
  for (const i of a) {
447
- const o = n.filter((s) => s === i).length, l = r.filter((s) => s === i).length;
448
- if (o !== l)
447
+ const o = n.filter((l) => l === i).length, s = r.filter((l) => l === i).length;
448
+ if (o !== s)
449
449
  return !1;
450
450
  }
451
451
  return !0;
@@ -487,75 +487,75 @@ function na(e, t, n, r = {
487
487
  searchKeys: ["id"]
488
488
  }) {
489
489
  n || (n = "1000");
490
- const { axiosInstance: a } = Mt(e.axiosRequestConfig), { i18n: { t: i } } = ht(), { debounce: o } = Pr(), l = o(async (h) => {
491
- await W(h);
492
- }, 200), s = M(!1), u = M(""), p = M(""), c = M([]), y = M([]), f = M(void 0), x = g(t);
493
- let T = `${e.apiBaseUrl}${x}`;
490
+ const { axiosInstance: a } = Ot(e.axiosRequestConfig), { i18n: { t: i } } = ht(), { debounce: o } = Vr(), s = o(async (h) => {
491
+ await Z(h);
492
+ }, 200), l = O(!1), u = O(""), p = O(""), c = O([]), y = O([]), f = O(void 0), I = g(t);
493
+ let T = `${e.apiBaseUrl}${I}`;
494
494
  e.app === "konnect" ? T = T.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (T = T.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
495
495
  const { isValidUuid: k } = _n(), U = async () => {
496
496
  try {
497
- s.value = !0;
497
+ l.value = !0;
498
498
  const { data: h } = await a.get(`${T}?size=${n}`);
499
499
  h != null && h.next || (f.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : []), y.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : [], c.value = y.value;
500
500
  } catch {
501
501
  c.value = [], u.value = i("debouncedFilter.errors.fetch");
502
502
  } finally {
503
- s.value = !1;
503
+ l.value = !1;
504
504
  }
505
- }, j = M(""), W = async (h) => {
506
- var _, d, I;
507
- if (j.value !== h)
508
- if (j.value = h || "", f.value === void 0)
505
+ }, N = O(""), Z = async (h) => {
506
+ var _, d, S;
507
+ if (N.value !== h)
508
+ if (N.value = h || "", f.value === void 0)
509
509
  try {
510
- if (s.value = !0, u.value = "", p.value = "", e.app === "konnect") {
511
- let K = T + "";
512
- h && (K += `/${h}`);
513
- const { data: S } = await a.get(`${K}?size=${n}`);
514
- r.fetchedItemsKey in S ? c.value = S[r.fetchedItemsKey] : S != null && S.id ? c.value = [S] : c.value = [];
510
+ if (l.value = !0, u.value = "", p.value = "", e.app === "konnect") {
511
+ let B = T + "";
512
+ h && (B += `/${h}`);
513
+ const { data: x } = await a.get(`${B}?size=${n}`);
514
+ r.fetchedItemsKey in x ? c.value = x[r.fetchedItemsKey] : x != null && x.id ? c.value = [x] : c.value = [];
515
515
  } else if (h) {
516
- const K = [];
517
- k(h) && r.searchKeys.includes("id") ? K.push((async () => {
518
- const { data: E } = await a.get(`${T}/${h}`);
519
- return [E[r.fetchedItemsKey] ?? E];
520
- })()) : K.push(
521
- ...r.searchKeys.filter((E) => E !== "id").map(async (E) => {
522
- const { data: b } = await a.get(`${T}?${E}=${h}`);
516
+ const B = [];
517
+ k(h) && r.searchKeys.includes("id") ? B.push((async () => {
518
+ const { data: M } = await a.get(`${T}/${h}`);
519
+ return [M[r.fetchedItemsKey] ?? M];
520
+ })()) : B.push(
521
+ ...r.searchKeys.filter((M) => M !== "id").map(async (M) => {
522
+ const { data: b } = await a.get(`${T}?${M}=${h}`);
523
523
  return b[r.fetchedItemsKey];
524
524
  })
525
525
  );
526
- const S = await Promise.all(K), G = /* @__PURE__ */ new Set();
527
- c.value = [], (_ = S == null ? void 0 : S.forEach) == null || _.call(S, (E) => {
526
+ const x = await Promise.all(B), G = /* @__PURE__ */ new Set();
527
+ c.value = [], (_ = x == null ? void 0 : x.forEach) == null || _.call(x, (M) => {
528
528
  var b;
529
- (b = E == null ? void 0 : E.forEach) == null || b.call(E, (B) => {
530
- G.has(B.id) || (G.add(B.id), c.value.push(B));
529
+ (b = M == null ? void 0 : M.forEach) == null || b.call(M, (K) => {
530
+ G.has(K.id) || (G.add(K.id), c.value.push(K));
531
531
  });
532
532
  });
533
533
  } else
534
534
  c.value = y.value;
535
- } catch (K) {
536
- ((d = K == null ? void 0 : K.response) == null ? void 0 : d.status) === 404 ? p.value = i("debouncedFilter.errors.invalid") : (c.value = [], u.value = i("debouncedFilter.errors.fetch"));
535
+ } catch (B) {
536
+ ((d = B == null ? void 0 : B.response) == null ? void 0 : d.status) === 404 ? p.value = i("debouncedFilter.errors.invalid") : (c.value = [], u.value = i("debouncedFilter.errors.fetch"));
537
537
  } finally {
538
- s.value = !1;
538
+ l.value = !1;
539
539
  }
540
540
  else
541
- s.value = !0, p.value = "", h ? (c.value = (I = f.value) == null ? void 0 : I.filter((K) => {
542
- var S;
541
+ l.value = !0, p.value = "", h ? (c.value = (S = f.value) == null ? void 0 : S.filter((B) => {
542
+ var x;
543
543
  let G = !1;
544
- for (const E of r.searchKeys) {
545
- const b = typeof K[E] == "string" ? (S = K[E]) == null ? void 0 : S.toLowerCase() : K[E];
544
+ for (const M of r.searchKeys) {
545
+ const b = typeof B[M] == "string" ? (x = B[M]) == null ? void 0 : x.toLowerCase() : B[M];
546
546
  b != null && b.includes(h.toLowerCase()) && (G = !0);
547
547
  }
548
548
  return G;
549
- }), (!c.value || !c.value.length) && (p.value = i("debouncedFilter.errors.invalid"))) : c.value = f.value, s.value = !1;
549
+ }), (!c.value || !c.value.length) && (p.value = i("debouncedFilter.errors.invalid"))) : c.value = f.value, l.value = !1;
550
550
  };
551
551
  return {
552
- loading: s,
552
+ loading: l,
553
553
  error: u,
554
554
  validationError: p,
555
555
  results: c,
556
556
  allRecords: f,
557
557
  loadItems: U,
558
- debouncedQueryChange: l
558
+ debouncedQueryChange: s
559
559
  };
560
560
  }
561
561
  function ra(e, t) {
@@ -578,8 +578,8 @@ function aa() {
578
578
  return t.response.data.detail;
579
579
  if ((a = t.response.data.details) != null && a.length)
580
580
  return t.response.data.details.map((o) => {
581
- let l = e("errors.unexpected");
582
- return o.messages && typeof o.messages == "object" && o.messages.length && (l = o.messages.join(", ")), o.field ? `${o.field} - ${l}` : l;
581
+ let s = e("errors.unexpected");
582
+ return o.messages && typeof o.messages == "object" && o.messages.length && (s = o.messages.join(", ")), o.field ? `${o.field} - ${s}` : s;
583
583
  }).join("; ");
584
584
  if (t.response.data.message) {
585
585
  const { message: o } = t.response.data;
@@ -605,41 +605,41 @@ function oa(e) {
605
605
  return console.warn("Failed to build valid URL:", r), "";
606
606
  }
607
607
  }
608
- function xn(e, t) {
609
- const n = M(g(e)), r = M(g(t)), a = w(
608
+ function In(e, t) {
609
+ const n = O(g(e)), r = O(g(t)), a = w(
610
610
  () => !!(n.value.app === "konnect" || n.value.isExactMatch)
611
611
  ), i = w(
612
612
  () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
613
613
  );
614
614
  return (o) => {
615
- const { page: l, pageSize: s, offset: u, sortColumnKey: p, sortColumnOrder: c, query: y } = o;
615
+ const { page: s, pageSize: l, offset: u, sortColumnKey: p, sortColumnOrder: c, query: y } = o;
616
616
  try {
617
617
  let f = new URL(i.value.href);
618
- return a.value && y ? (f.search = "", f = n.value.isExactMatch ? new URL(`${f.href}/${y}/`) : new URL(`${f.href}?filter[name][contains]=${y}`)) : (a.value || new URLSearchParams(y).forEach((x, T) => {
619
- f.searchParams.append(T, x);
620
- }), p && f.searchParams.append("sort_by", p), c === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(s))), u && l !== 1 && f.searchParams.append("offset", String(u)), f.href;
618
+ return a.value && y ? (f.search = "", f = n.value.isExactMatch ? new URL(`${f.href}/${y}/`) : new URL(`${f.href}?filter[name][contains]=${y}`)) : (a.value || new URLSearchParams(y).forEach((I, T) => {
619
+ f.searchParams.append(T, I);
620
+ }), p && f.searchParams.append("sort_by", p), c === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(l))), u && s !== 1 && f.searchParams.append("offset", String(u)), f.href;
621
621
  } catch (f) {
622
622
  return console.error("RouteList(fetcher)", f), r.value;
623
623
  }
624
624
  };
625
625
  }
626
626
  function ia(e, t, n = "data") {
627
- const r = g(t), { axiosInstance: a } = Mt(e.axiosRequestConfig), i = xn(e, r), o = M({
628
- status: Fe.Idle
627
+ const r = g(t), { axiosInstance: a } = Ot(e.axiosRequestConfig), i = In(e, r), o = O({
628
+ status: qe.Idle
629
629
  });
630
- return { fetcher: async (l) => {
631
- var s;
630
+ return { fetcher: async (s) => {
631
+ var l;
632
632
  try {
633
- o.value = { status: Fe.Loading };
634
- let u = i(l);
635
- u.includes("filter[name]") && (u = `${u}&page[size]=${l.pageSize}&page[number]=${l.page}`);
633
+ o.value = { status: qe.Loading };
634
+ let u = i(s);
635
+ u.includes("filter[name]") && (u = `${u}&page[size]=${s.pageSize}&page[number]=${s.page}`);
636
636
  const p = await a.get(u);
637
637
  if (p.status >= 400)
638
638
  throw p;
639
639
  const c = p.data, y = n && n.replace(/[^\w-_]/gi, "");
640
640
  let f;
641
641
  c[y] && Array.isArray(c[y]) ? f = c[y] : Array.isArray(c) ? f = c : f = Object.keys(c).length ? [c] : [];
642
- const x = {
642
+ const I = {
643
643
  data: f,
644
644
  total: f.length,
645
645
  ...c.offset ? {
@@ -649,49 +649,49 @@ function ia(e, t, n = "data") {
649
649
  } : null
650
650
  };
651
651
  return o.value = {
652
- status: Fe.Idle,
653
- response: x
654
- }, x;
652
+ status: qe.Idle,
653
+ response: I
654
+ }, I;
655
655
  } catch (u) {
656
656
  const p = {
657
657
  data: [],
658
658
  total: 0
659
659
  };
660
- return l.query && (((s = u.response) == null ? void 0 : s.status) === 404 || u.status === 404) ? (o.value = {
661
- status: Fe.NoResults,
660
+ return s.query && (((l = u.response) == null ? void 0 : l.status) === 404 || u.status === 404) ? (o.value = {
661
+ status: qe.NoResults,
662
662
  response: p,
663
663
  error: u.response ? u : { response: u }
664
664
  }, p) : (o.value = {
665
- status: Fe.Error,
665
+ status: qe.Error,
666
666
  response: p,
667
667
  error: u.response ? u : { response: u }
668
668
  }, p);
669
669
  }
670
670
  }, fetcherState: o };
671
671
  }
672
- function la() {
672
+ function sa() {
673
673
  const e = (n, r = "_") => n ? n.split(r).map((a) => a.toLowerCase() === "id" ? a.toUpperCase() : a.charAt(0).toUpperCase() + a.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
674
674
  return {
675
675
  capitalize: (n) => n ? n.replace(t, (r) => r.toUpperCase()) : "",
676
676
  convertKeyToTitle: e
677
677
  };
678
678
  }
679
- const Sn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Jt = (e) => {
679
+ const xn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Jt = (e) => {
680
680
  if (typeof e != "string")
681
681
  throw new TypeError("Invalid argument expected string");
682
- const t = e.match(Sn);
682
+ const t = e.match(xn);
683
683
  if (!t)
684
684
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
685
685
  return t.shift(), t;
686
- }, Wt = (e) => e === "*" || e === "x" || e === "X", Yt = (e) => {
686
+ }, Zt = (e) => e === "*" || e === "x" || e === "X", Wt = (e) => {
687
687
  const t = parseInt(e, 10);
688
688
  return isNaN(t) ? e : t;
689
- }, sa = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], ua = (e, t) => {
690
- if (Wt(e) || Wt(t))
689
+ }, la = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], ua = (e, t) => {
690
+ if (Zt(e) || Zt(t))
691
691
  return 0;
692
- const [n, r] = sa(Yt(e), Yt(t));
692
+ const [n, r] = la(Wt(e), Wt(t));
693
693
  return n > r ? 1 : n < r ? -1 : 0;
694
- }, Zt = (e, t) => {
694
+ }, Yt = (e, t) => {
695
695
  for (let n = 0; n < Math.max(e.length, t.length); n++) {
696
696
  const r = ua(e[n] || "0", t[n] || "0");
697
697
  if (r !== 0)
@@ -699,25 +699,25 @@ const Sn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
699
699
  }
700
700
  return 0;
701
701
  }, ca = (e, t) => {
702
- const n = Jt(e), r = Jt(t), a = n.pop(), i = r.pop(), o = Zt(n, r);
703
- return o !== 0 ? o : a && i ? Zt(a.split("."), i.split(".")) : a || i ? a ? -1 : 1 : 0;
702
+ const n = Jt(e), r = Jt(t), a = n.pop(), i = r.pop(), o = Yt(n, r);
703
+ return o !== 0 ? o : a && i ? Yt(a.split("."), i.split(".")) : a || i ? a ? -1 : 1 : 0;
704
704
  }, Qt = (e, t, n) => {
705
705
  da(n);
706
706
  const r = ca(e, t);
707
- return In[n].includes(r);
708
- }, In = {
707
+ return Sn[n].includes(r);
708
+ }, Sn = {
709
709
  ">": [1],
710
710
  ">=": [0, 1],
711
711
  "=": [0],
712
712
  "<=": [-1, 0],
713
713
  "<": [-1],
714
714
  "!=": [-1, 1]
715
- }, Xt = Object.keys(In), da = (e) => {
715
+ }, Xt = Object.keys(Sn), da = (e) => {
716
716
  if (typeof e != "string")
717
717
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
718
718
  if (Xt.indexOf(e) === -1)
719
719
  throw new Error(`Invalid operator, expected one of ${Xt.join("|")}`);
720
- }, pa = (e) => typeof e == "string" && /^[v\d]/.test(e) && Sn.test(e);
720
+ }, pa = (e) => typeof e == "string" && /^[v\d]/.test(e) && xn.test(e);
721
721
  function fa(e) {
722
722
  const { gatewayInfo: t, supportedRange: n } = e;
723
723
  if (!t)
@@ -728,11 +728,11 @@ function fa(e) {
728
728
  const i = n[r];
729
729
  if (!i)
730
730
  return !1;
731
- const [o, l] = i;
732
- return !(o && Qt(a, o, "<") || l && Qt(a, l, ">"));
731
+ const [o, s] = i;
732
+ return !(o && Qt(a, o, "<") || s && Qt(a, s, ">"));
733
733
  }
734
734
  function ma(e) {
735
- const t = M(0), n = M(0), r = M(!1);
735
+ const t = O(0), n = O(0), r = O(!1);
736
736
  return $e(e, (a) => {
737
737
  a && !r.value && (t.value = a.offsetWidth, n.value = a.scrollWidth, r.value = !0);
738
738
  }), {
@@ -745,16 +745,16 @@ function ga() {
745
745
  utf8Name: (t) => /^[\p{N}\p{L}.\-_~]*$/u.test(t) ? "" : e("validationErrors.utf8Name")
746
746
  };
747
747
  }
748
- const le = {
749
- useAxios: Mt,
748
+ const se = {
749
+ useAxios: Ot,
750
750
  useDebouncedFilter: na,
751
751
  useDeleteUrlBuilder: ra,
752
752
  useErrors: aa,
753
753
  useExternalLinkCreator: oa,
754
754
  useFetcher: ia,
755
- useFetchUrlBuilder: xn,
755
+ useFetchUrlBuilder: In,
756
756
  useHelpers: _n,
757
- useStringHelpers: la,
757
+ useStringHelpers: sa,
758
758
  useI18n: ht,
759
759
  useGatewayFeatureSupported: fa,
760
760
  useTruncationDetector: ma,
@@ -779,19 +779,19 @@ const le = {
779
779
  }
780
780
  },
781
781
  setup(e) {
782
- const t = e, { i18n: { t: n } } = le.useI18n(), { convertKeyToTitle: r } = le.useStringHelpers(), a = w(() => t.item.key ?? "json-array-item"), i = w(() => t.item.value ?? t.item), o = w(() => {
783
- const s = JSON.parse(JSON.stringify(i.value));
784
- return t.isArrayItem && delete s.name, s;
785
- }), l = w(() => {
786
- var s;
787
- return t.isArrayItem ? (s = i.value) != null && s.name ? r(i.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
782
+ const t = e, { i18n: { t: n } } = se.useI18n(), { convertKeyToTitle: r } = se.useStringHelpers(), a = w(() => t.item.key ?? "json-array-item"), i = w(() => t.item.value ?? t.item), o = w(() => {
783
+ const l = JSON.parse(JSON.stringify(i.value));
784
+ return t.isArrayItem && delete l.name, l;
785
+ }), s = w(() => {
786
+ var l;
787
+ return t.isArrayItem ? (l = i.value) != null && l.name ? r(i.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
788
788
  });
789
- return (s, u) => (m(), D(Se(e.isArrayItem ? "fieldset" : "div"), {
790
- class: Ee(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
789
+ return (l, u) => (m(), D(xe(e.isArrayItem ? "fieldset" : "div"), {
790
+ class: Me(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
791
791
  }, {
792
792
  default: v(() => [
793
793
  e.isArrayItem ? (m(), $("legend", ya, [
794
- L("b", null, F(l.value), 1)
794
+ L("b", null, q(s.value), 1)
795
795
  ])) : J("", !0),
796
796
  (m(!0), $(be, null, ve(Object.keys(o.value), (p, c) => (m(), D($n, {
797
797
  key: `${a.value}-property-${c}`,
@@ -820,17 +820,17 @@ const le = {
820
820
  },
821
821
  emits: ["navigation-click"],
822
822
  setup(e) {
823
- const { i18n: { t } } = le.useI18n();
823
+ const { i18n: { t } } = se.useI18n();
824
824
  return (n, r) => {
825
- const a = V("KButton");
825
+ const a = R("KButton");
826
826
  return m(), $("div", null, [
827
- N(a, {
827
+ j(a, {
828
828
  appearance: "tertiary",
829
829
  class: "navigation-button",
830
830
  onClick: r[0] || (r[0] = (i) => n.$emit("navigation-click", e.item))
831
831
  }, {
832
832
  default: v(() => [
833
- Z(F(e.item.value || g(t)("baseConfigCard.commonFields.link")), 1)
833
+ Y(q(e.item.value || g(t)("baseConfigCard.commonFields.link")), 1)
834
834
  ]),
835
835
  _: 1
836
836
  })
@@ -846,24 +846,24 @@ const le = {
846
846
  }
847
847
  },
848
848
  setup(e) {
849
- const { i18n: { t } } = le.useI18n();
849
+ const { i18n: { t } } = se.useI18n();
850
850
  return (n, r) => {
851
- const a = V("KBadge");
851
+ const a = R("KBadge");
852
852
  return m(), D(a, {
853
853
  appearance: e.status ? "success" : "neutral"
854
854
  }, {
855
855
  default: v(() => [
856
- Z(F(e.status ? g(t)("baseConfigCard.statusBadge.enabledLabel") : g(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
856
+ Y(q(e.status ? g(t)("baseConfigCard.statusBadge.enabledLabel") : g(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
857
857
  ]),
858
858
  _: 1
859
859
  }, 8, ["appearance"]);
860
860
  };
861
861
  }
862
- }), ka = "#0044f4", wa = "#e0e4ea", _a = "#afb7c5", xa = "1px", Sa = "20px", Ia = { class: "config-card-details-row" }, Aa = ["data-testid"], $a = ["data-testid"], Ta = ["data-testid"], ja = ["data-testid"], Na = { key: 1 }, Oa = ["data-testid"], Ma = ["data-testid"], Ea = ["data-testid"], qa = ["data-testid"], Fa = {
862
+ }), ka = "#0044f4", wa = "#e0e4ea", _a = "#afb7c5", Ia = "1px", xa = "20px", Sa = { class: "config-card-details-row" }, Aa = ["data-testid"], $a = ["data-testid"], Ta = ["data-testid"], Na = ["data-testid"], ja = { key: 1 }, Ea = ["data-testid"], Oa = ["data-testid"], Ma = ["data-testid"], Fa = ["data-testid"], qa = {
863
863
  name: "ConfigCardItem",
864
864
  components: { JsonCardItem: An, StatusBadge: Ca, InternalLinkItem: ba }
865
- }, Ba = /* @__PURE__ */ X({
866
- ...Fa,
865
+ }, Ka = /* @__PURE__ */ X({
866
+ ...qa,
867
867
  props: {
868
868
  item: {
869
869
  type: Object,
@@ -882,13 +882,13 @@ const le = {
882
882
  },
883
883
  emits: ["navigation-click"],
884
884
  setup(e, { emit: t }) {
885
- bn((x) => ({
886
- dc1d91a8: p.value ? "none" : `solid ${g(xa)} ${g(wa)}`,
887
- "59ccec5f": u.value && l.value ? "block" : "flex",
888
- "29318fbe": u.value && l.value ? "100%" : n.slim ? "50%" : "25%",
889
- "292d0408": u.value && l.value ? "100%" : n.slim ? "50%" : "75%"
885
+ bn((I) => ({
886
+ dc1d91a8: p.value ? "none" : `solid ${g(Ia)} ${g(wa)}`,
887
+ "59ccec5f": u.value && s.value ? "block" : "flex",
888
+ "29318fbe": u.value && s.value ? "100%" : n.slim ? "50%" : "25%",
889
+ "292d0408": u.value && s.value ? "100%" : n.slim ? "50%" : "75%"
890
890
  }));
891
- const n = e, r = t, a = Nt(), { i18n: { t: i, formatUnixTimeStamp: o } } = le.useI18n(), l = w(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), s = w(() => !!(n.item.tooltip || a["label-tooltip"])), u = w(() => n.item.type === ee.Json || n.item.type === ee.JsonArray), p = w(() => n.item.type === ee.JsonArray), c = w(() => {
891
+ const n = e, r = t, a = jt(), { i18n: { t: i, formatUnixTimeStamp: o } } = se.useI18n(), s = w(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), l = w(() => !!(n.item.tooltip || a["label-tooltip"])), u = w(() => n.item.type === ee.Json || n.item.type === ee.JsonArray), p = w(() => n.item.type === ee.JsonArray), c = w(() => {
892
892
  switch (n.item.type) {
893
893
  case ee.ID:
894
894
  return {
@@ -958,8 +958,8 @@ const le = {
958
958
  attrs: {
959
959
  "data-testid": `${n.item.key}-internal-link`,
960
960
  item: n.item,
961
- onNavigationClick: (x) => {
962
- r("navigation-click", x);
961
+ onNavigationClick: (I) => {
962
+ r("navigation-click", I);
963
963
  }
964
964
  }
965
965
  };
@@ -998,29 +998,29 @@ const le = {
998
998
  text: n.item.value
999
999
  };
1000
1000
  }
1001
- }), y = M(), { isTruncated: f } = le.useTruncationDetector(y);
1002
- return (x, T) => {
1003
- const k = V("KLabel"), U = V("KBadge"), j = V("KCopy"), W = V("KTooltip");
1004
- return m(), $("div", Ia, [
1001
+ }), y = O(), { isTruncated: f } = se.useTruncationDetector(y);
1002
+ return (I, T) => {
1003
+ const k = R("KLabel"), U = R("KBadge"), N = R("KCopy"), Z = R("KTooltip");
1004
+ return m(), $("div", Sa, [
1005
1005
  L("div", {
1006
1006
  class: "config-card-details-label",
1007
1007
  "data-testid": `${e.item.key}-label`
1008
1008
  }, [
1009
- ne(x.$slots, "label", { item: e.item }, () => [
1010
- N(k, { "tooltip-attributes": { maxWidth: "500px" } }, Ke({
1009
+ ne(I.$slots, "label", { item: e.item }, () => [
1010
+ j(k, { "tooltip-attributes": { maxWidth: "500px" } }, Be({
1011
1011
  default: v(() => [
1012
- Z(F(e.item.label) + " ", 1)
1012
+ Y(q(e.item.label) + " ", 1)
1013
1013
  ]),
1014
1014
  _: 2
1015
1015
  }, [
1016
- s.value ? {
1016
+ l.value ? {
1017
1017
  name: "tooltip",
1018
1018
  fn: v(() => [
1019
1019
  L("div", {
1020
1020
  "data-testid": `${e.item.key}-label-tooltip`
1021
1021
  }, [
1022
- ne(x.$slots, "label-tooltip", {}, () => [
1023
- Z(F(e.item.tooltip), 1)
1022
+ ne(I.$slots, "label-tooltip", {}, () => [
1023
+ Y(q(e.item.tooltip), 1)
1024
1024
  ], !0)
1025
1025
  ], 8, $a)
1026
1026
  ]),
@@ -1033,11 +1033,11 @@ const le = {
1033
1033
  class: "config-card-details-value",
1034
1034
  "data-testid": `${e.item.key}-property-value`
1035
1035
  }, [
1036
- ne(x.$slots, e.item.key, {
1036
+ ne(I.$slots, e.item.key, {
1037
1037
  rowValue: e.item.value
1038
1038
  }, () => [
1039
- l.value ? (m(), $("div", Na, [
1040
- (m(), D(Se(c.value.tag), Ir(Ar(c.value.attrs)), {
1039
+ s.value ? (m(), $("div", ja, [
1040
+ (m(), D(xe(c.value.tag), Sr(Ar(c.value.attrs)), {
1041
1041
  default: v(() => [
1042
1042
  c.value.additionalComponent === "KBadge" ? (m(), $("div", {
1043
1043
  key: 0,
@@ -1051,38 +1051,38 @@ const le = {
1051
1051
  "truncation-tooltip": ""
1052
1052
  }, {
1053
1053
  default: v(() => [
1054
- Z(F(h), 1)
1054
+ Y(q(h), 1)
1055
1055
  ]),
1056
1056
  _: 2
1057
1057
  }, 1032, ["data-testid", "tooltip"]))), 128))
1058
- ], 8, Oa)) : J("", !0),
1058
+ ], 8, Ea)) : J("", !0),
1059
1059
  c.value.additionalComponent === "KCopy" ? (m(), $("div", {
1060
1060
  key: 1,
1061
1061
  class: "copy-uuid-array",
1062
1062
  "data-testid": `${e.item.key}-copy-uuid-array`
1063
1063
  }, [
1064
- (m(!0), $(be, null, ve(e.item.value, (h, _) => (m(), D(j, $r({ ref_for: !0 }, c.value.childAttrs, {
1064
+ (m(!0), $(be, null, ve(e.item.value, (h, _) => (m(), D(N, $r({ ref_for: !0 }, c.value.childAttrs, {
1065
1065
  key: `${e.item.key}-copy-uuid-${_}`,
1066
1066
  "data-testid": `${e.item.key}-copy-uuid-${_}`,
1067
1067
  text: h
1068
1068
  }), null, 16, ["data-testid", "text"]))), 128))
1069
- ], 8, Ma)) : c.value.additionalComponent === "KMethodBadge" ? (m(), $("div", {
1069
+ ], 8, Oa)) : c.value.additionalComponent === "KMethodBadge" ? (m(), $("div", {
1070
1070
  key: 2,
1071
1071
  class: "method-badge-array",
1072
1072
  "data-testid": `${e.item.key}-badge-methods`
1073
1073
  }, [
1074
1074
  (m(!0), $(be, null, ve(e.item.value, (h, _) => (m(), D(U, {
1075
1075
  key: `${e.item.key}-badge-method-${_}`,
1076
- appearance: Object.values(g(jr)).includes(h.toLowerCase()) ? h.toLowerCase() : "custom",
1076
+ appearance: Object.values(g(Nr)).includes(h.toLowerCase()) ? h.toLowerCase() : "custom",
1077
1077
  class: "config-badge",
1078
1078
  "data-testid": `${e.item.key}-badge-method-${_}`
1079
1079
  }, {
1080
1080
  default: v(() => [
1081
- Z(F(h), 1)
1081
+ Y(q(h), 1)
1082
1082
  ]),
1083
1083
  _: 2
1084
1084
  }, 1032, ["appearance", "data-testid"]))), 128))
1085
- ], 8, Ea)) : J("", !0),
1085
+ ], 8, Ma)) : J("", !0),
1086
1086
  c.value.additionalComponent === "JsonCardItem" ? (m(), $("div", {
1087
1087
  key: 3,
1088
1088
  "data-testid": `${n.item.key}-json-array-content`
@@ -1093,7 +1093,7 @@ const le = {
1093
1093
  "is-array-item": "",
1094
1094
  item: h
1095
1095
  }, null, 8, ["index", "item"]))), 128))
1096
- ], 8, qa)) : (m(), D(W, {
1096
+ ], 8, Fa)) : (m(), D(Z, {
1097
1097
  key: 4,
1098
1098
  text: g(f) ? e.item.value : ""
1099
1099
  }, {
@@ -1101,8 +1101,8 @@ const le = {
1101
1101
  L("span", {
1102
1102
  ref_key: "textContent",
1103
1103
  ref: y,
1104
- class: Ee(["attrs-data-text", { truncated: e.truncated }])
1105
- }, F(c.value.text), 3)
1104
+ class: Me(["attrs-data-text", { truncated: e.truncated }])
1105
+ }, q(c.value.text), 3)
1106
1106
  ]),
1107
1107
  _: 1
1108
1108
  }, 8, ["text"]))
@@ -1112,13 +1112,13 @@ const le = {
1112
1112
  ])) : (m(), $("div", {
1113
1113
  key: 0,
1114
1114
  "data-testid": `${e.item.key}-no-value`
1115
- }, " – ", 8, ja))
1115
+ }, " – ", 8, Na))
1116
1116
  ], !0)
1117
1117
  ], 8, Ta)
1118
1118
  ]);
1119
1119
  };
1120
1120
  }
1121
- }), $n = /* @__PURE__ */ Ce(Ba, [["__scopeId", "data-v-d268261c"]]), Ka = { class: "json-config" }, La = {
1121
+ }), $n = /* @__PURE__ */ Ce(Ka, [["__scopeId", "data-v-d268261c"]]), Ba = { class: "json-config" }, La = {
1122
1122
  key: 0,
1123
1123
  class: "json-endpoint"
1124
1124
  }, Tn = /* @__PURE__ */ X({
@@ -1160,18 +1160,18 @@ const le = {
1160
1160
  return i.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? i[i.length - 1] : i[i.length - 2]).length;
1161
1161
  });
1162
1162
  return (a, i) => {
1163
- const o = V("KBadge"), l = V("KCodeBlock");
1164
- return m(), $("div", Ka, [
1163
+ const o = R("KBadge"), s = R("KCodeBlock");
1164
+ return m(), $("div", Ba, [
1165
1165
  t.fetcherUrl ? (m(), $("div", La, [
1166
- N(o, {
1166
+ j(o, {
1167
1167
  appearance: t.requestMethod
1168
1168
  }, {
1169
1169
  default: v(() => [
1170
- Z(F(t.requestMethod), 1)
1170
+ Y(q(t.requestMethod), 1)
1171
1171
  ]),
1172
1172
  _: 1
1173
1173
  }, 8, ["appearance"]),
1174
- N(l, {
1174
+ j(s, {
1175
1175
  id: "json-endpoint-codeblock",
1176
1176
  code: t.fetcherUrl,
1177
1177
  language: "json",
@@ -1179,10 +1179,10 @@ const le = {
1179
1179
  theme: "dark"
1180
1180
  }, null, 8, ["code"])
1181
1181
  ])) : J("", !0),
1182
- t.jsonRecord ? (m(), D(l, {
1182
+ t.jsonRecord ? (m(), D(s, {
1183
1183
  key: 1,
1184
1184
  id: "json-codeblock",
1185
- class: Ee({ "json-content": t.fetcherUrl }),
1185
+ class: Me({ "json-content": t.fetcherUrl }),
1186
1186
  code: JSON.stringify(n.value, null, 2),
1187
1187
  language: "json",
1188
1188
  theme: "dark"
@@ -1192,23 +1192,23 @@ const le = {
1192
1192
  }
1193
1193
  });
1194
1194
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
1195
- function jn(e) {
1195
+ function Nn(e) {
1196
1196
  return typeof e > "u" || e === null;
1197
1197
  }
1198
1198
  function Ua(e) {
1199
1199
  return typeof e == "object" && e !== null;
1200
1200
  }
1201
- function Ra(e) {
1202
- return Array.isArray(e) ? e : jn(e) ? [] : [e];
1201
+ function Pa(e) {
1202
+ return Array.isArray(e) ? e : Nn(e) ? [] : [e];
1203
1203
  }
1204
- function Pa(e, t) {
1204
+ function Va(e, t) {
1205
1205
  var n, r, a, i;
1206
1206
  if (t)
1207
1207
  for (i = Object.keys(t), n = 0, r = i.length; n < r; n += 1)
1208
1208
  a = i[n], e[a] = t[a];
1209
1209
  return e;
1210
1210
  }
1211
- function Va(e, t) {
1211
+ function Ra(e, t) {
1212
1212
  var n = "", r;
1213
1213
  for (r = 0; r < t; r += 1)
1214
1214
  n += e;
@@ -1217,32 +1217,32 @@ function Va(e, t) {
1217
1217
  function Da(e) {
1218
1218
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1219
1219
  }
1220
- var za = jn, Ga = Ua, Ha = Ra, Ja = Va, Wa = Da, Ya = Pa, ie = {
1220
+ var za = Nn, Ga = Ua, Ha = Pa, Ja = Ra, Za = Da, Wa = Va, ie = {
1221
1221
  isNothing: za,
1222
1222
  isObject: Ga,
1223
1223
  toArray: Ha,
1224
1224
  repeat: Ja,
1225
- isNegativeZero: Wa,
1226
- extend: Ya
1225
+ isNegativeZero: Za,
1226
+ extend: Wa
1227
1227
  };
1228
- function Nn(e, t) {
1228
+ function jn(e, t) {
1229
1229
  var n = "", r = e.reason || "(unknown reason)";
1230
1230
  return e.mark ? (e.mark.name && (n += 'in "' + e.mark.name + '" '), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += `
1231
1231
 
1232
1232
  ` + e.mark.snippet), r + " " + n) : r;
1233
1233
  }
1234
1234
  function tt(e, t) {
1235
- Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = Nn(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
1235
+ Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = jn(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
1236
1236
  }
1237
1237
  tt.prototype = Object.create(Error.prototype);
1238
1238
  tt.prototype.constructor = tt;
1239
1239
  tt.prototype.toString = function(e) {
1240
- return this.name + ": " + Nn(this, e);
1240
+ return this.name + ": " + jn(this, e);
1241
1241
  };
1242
1242
  var fe = tt;
1243
1243
  function wt(e, t, n, r, a) {
1244
- var i = "", o = "", l = Math.floor(a / 2) - 1;
1245
- return r - t > l && (i = " ... ", t = r - l + i.length), n - r > l && (o = " ...", n = r + l - o.length), {
1244
+ var i = "", o = "", s = Math.floor(a / 2) - 1;
1245
+ return r - t > s && (i = " ... ", t = r - s + i.length), n - r > s && (o = " ...", n = r + s - o.length), {
1246
1246
  str: i + e.slice(t, n).replace(/\t/g, "→") + o,
1247
1247
  pos: r - t + i.length
1248
1248
  // relative position
@@ -1251,37 +1251,37 @@ function wt(e, t, n, r, a) {
1251
1251
  function _t(e, t) {
1252
1252
  return ie.repeat(" ", t - e.length) + e;
1253
1253
  }
1254
- function Za(e, t) {
1254
+ function Ya(e, t) {
1255
1255
  if (t = Object.create(t || null), !e.buffer)
1256
1256
  return null;
1257
1257
  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);
1258
1258
  for (var n = /\r?\n|\r|\0/g, r = [0], a = [], i, o = -1; i = n.exec(e.buffer); )
1259
1259
  a.push(i.index), r.push(i.index + i[0].length), e.position <= i.index && o < 0 && (o = r.length - 2);
1260
1260
  o < 0 && (o = r.length - 1);
1261
- var l = "", s, u, p = Math.min(e.line + t.linesAfter, a.length).toString().length, c = t.maxLength - (t.indent + p + 3);
1262
- for (s = 1; s <= t.linesBefore && !(o - s < 0); s++)
1261
+ var s = "", l, u, p = Math.min(e.line + t.linesAfter, a.length).toString().length, c = t.maxLength - (t.indent + p + 3);
1262
+ for (l = 1; l <= t.linesBefore && !(o - l < 0); l++)
1263
1263
  u = wt(
1264
1264
  e.buffer,
1265
- r[o - s],
1266
- a[o - s],
1267
- e.position - (r[o] - r[o - s]),
1265
+ r[o - l],
1266
+ a[o - l],
1267
+ e.position - (r[o] - r[o - l]),
1268
1268
  c
1269
- ), l = ie.repeat(" ", t.indent) + _t((e.line - s + 1).toString(), p) + " | " + u.str + `
1270
- ` + l;
1271
- for (u = wt(e.buffer, r[o], a[o], e.position, c), l += ie.repeat(" ", t.indent) + _t((e.line + 1).toString(), p) + " | " + u.str + `
1272
- `, l += ie.repeat("-", t.indent + p + 3 + u.pos) + `^
1273
- `, s = 1; s <= t.linesAfter && !(o + s >= a.length); s++)
1269
+ ), s = ie.repeat(" ", t.indent) + _t((e.line - l + 1).toString(), p) + " | " + u.str + `
1270
+ ` + s;
1271
+ for (u = wt(e.buffer, r[o], a[o], e.position, c), s += ie.repeat(" ", t.indent) + _t((e.line + 1).toString(), p) + " | " + u.str + `
1272
+ `, s += ie.repeat("-", t.indent + p + 3 + u.pos) + `^
1273
+ `, l = 1; l <= t.linesAfter && !(o + l >= a.length); l++)
1274
1274
  u = wt(
1275
1275
  e.buffer,
1276
- r[o + s],
1277
- a[o + s],
1278
- e.position - (r[o] - r[o + s]),
1276
+ r[o + l],
1277
+ a[o + l],
1278
+ e.position - (r[o] - r[o + l]),
1279
1279
  c
1280
- ), l += ie.repeat(" ", t.indent) + _t((e.line + s + 1).toString(), p) + " | " + u.str + `
1280
+ ), s += ie.repeat(" ", t.indent) + _t((e.line + l + 1).toString(), p) + " | " + u.str + `
1281
1281
  `;
1282
- return l.replace(/\n$/, "");
1282
+ return s.replace(/\n$/, "");
1283
1283
  }
1284
- var Qa = Za, Xa = [
1284
+ var Qa = Ya, Xa = [
1285
1285
  "kind",
1286
1286
  "multi",
1287
1287
  "resolve",
@@ -1346,10 +1346,10 @@ function ro() {
1346
1346
  arguments[t].forEach(r);
1347
1347
  return e;
1348
1348
  }
1349
- function It(e) {
1349
+ function St(e) {
1350
1350
  return this.extend(e);
1351
1351
  }
1352
- It.prototype.extend = function(e) {
1352
+ St.prototype.extend = function(e) {
1353
1353
  var t = [], n = [];
1354
1354
  if (e instanceof ce)
1355
1355
  n.push(e);
@@ -1370,29 +1370,29 @@ It.prototype.extend = function(e) {
1370
1370
  if (!(a instanceof ce))
1371
1371
  throw new fe("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1372
1372
  });
1373
- var r = Object.create(It.prototype);
1373
+ var r = Object.create(St.prototype);
1374
1374
  return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = en(r, "implicit"), r.compiledExplicit = en(r, "explicit"), r.compiledTypeMap = ro(r.compiledImplicit, r.compiledExplicit), r;
1375
1375
  };
1376
- var On = It, Mn = new ce("tag:yaml.org,2002:str", {
1376
+ var En = St, On = new ce("tag:yaml.org,2002:str", {
1377
1377
  kind: "scalar",
1378
1378
  construct: function(e) {
1379
1379
  return e !== null ? e : "";
1380
1380
  }
1381
- }), En = new ce("tag:yaml.org,2002:seq", {
1381
+ }), Mn = new ce("tag:yaml.org,2002:seq", {
1382
1382
  kind: "sequence",
1383
1383
  construct: function(e) {
1384
1384
  return e !== null ? e : [];
1385
1385
  }
1386
- }), qn = new ce("tag:yaml.org,2002:map", {
1386
+ }), Fn = new ce("tag:yaml.org,2002:map", {
1387
1387
  kind: "mapping",
1388
1388
  construct: function(e) {
1389
1389
  return e !== null ? e : {};
1390
1390
  }
1391
- }), Fn = new On({
1391
+ }), qn = new En({
1392
1392
  explicit: [
1393
+ On,
1393
1394
  Mn,
1394
- En,
1395
- qn
1395
+ Fn
1396
1396
  ]
1397
1397
  });
1398
1398
  function ao(e) {
@@ -1407,7 +1407,7 @@ function oo() {
1407
1407
  function io(e) {
1408
1408
  return e === null;
1409
1409
  }
1410
- var Bn = new ce("tag:yaml.org,2002:null", {
1410
+ var Kn = new ce("tag:yaml.org,2002:null", {
1411
1411
  kind: "scalar",
1412
1412
  resolve: ao,
1413
1413
  construct: oo,
@@ -1431,22 +1431,22 @@ var Bn = new ce("tag:yaml.org,2002:null", {
1431
1431
  },
1432
1432
  defaultStyle: "lowercase"
1433
1433
  });
1434
- function lo(e) {
1434
+ function so(e) {
1435
1435
  if (e === null)
1436
1436
  return !1;
1437
1437
  var t = e.length;
1438
1438
  return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
1439
1439
  }
1440
- function so(e) {
1440
+ function lo(e) {
1441
1441
  return e === "true" || e === "True" || e === "TRUE";
1442
1442
  }
1443
1443
  function uo(e) {
1444
1444
  return Object.prototype.toString.call(e) === "[object Boolean]";
1445
1445
  }
1446
- var Kn = new ce("tag:yaml.org,2002:bool", {
1446
+ var Bn = new ce("tag:yaml.org,2002:bool", {
1447
1447
  kind: "scalar",
1448
- resolve: lo,
1449
- construct: so,
1448
+ resolve: so,
1449
+ construct: lo,
1450
1450
  predicate: uo,
1451
1451
  represent: {
1452
1452
  lowercase: function(e) {
@@ -1618,56 +1618,56 @@ var Un = new ce("tag:yaml.org,2002:float", {
1618
1618
  predicate: wo,
1619
1619
  represent: ko,
1620
1620
  defaultStyle: "lowercase"
1621
- }), Rn = Fn.extend({
1621
+ }), Pn = qn.extend({
1622
1622
  implicit: [
1623
- Bn,
1624
1623
  Kn,
1624
+ Bn,
1625
1625
  Ln,
1626
1626
  Un
1627
1627
  ]
1628
- }), Pn = Rn, Vn = new RegExp(
1628
+ }), Vn = Pn, Rn = new RegExp(
1629
1629
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
1630
1630
  ), Dn = new RegExp(
1631
1631
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
1632
1632
  );
1633
1633
  function _o(e) {
1634
- return e === null ? !1 : Vn.exec(e) !== null || Dn.exec(e) !== null;
1634
+ return e === null ? !1 : Rn.exec(e) !== null || Dn.exec(e) !== null;
1635
1635
  }
1636
- function xo(e) {
1637
- var t, n, r, a, i, o, l, s = 0, u = null, p, c, y;
1638
- if (t = Vn.exec(e), t === null && (t = Dn.exec(e)), t === null)
1636
+ function Io(e) {
1637
+ var t, n, r, a, i, o, s, l = 0, u = null, p, c, y;
1638
+ if (t = Rn.exec(e), t === null && (t = Dn.exec(e)), t === null)
1639
1639
  throw new Error("Date resolve error");
1640
1640
  if (n = +t[1], r = +t[2] - 1, a = +t[3], !t[4])
1641
1641
  return new Date(Date.UTC(n, r, a));
1642
- if (i = +t[4], o = +t[5], l = +t[6], t[7]) {
1643
- for (s = t[7].slice(0, 3); s.length < 3; )
1644
- s += "0";
1645
- s = +s;
1642
+ if (i = +t[4], o = +t[5], s = +t[6], t[7]) {
1643
+ for (l = t[7].slice(0, 3); l.length < 3; )
1644
+ l += "0";
1645
+ l = +l;
1646
1646
  }
1647
- return t[9] && (p = +t[10], c = +(t[11] || 0), u = (p * 60 + c) * 6e4, t[9] === "-" && (u = -u)), y = new Date(Date.UTC(n, r, a, i, o, l, s)), u && y.setTime(y.getTime() - u), y;
1647
+ return t[9] && (p = +t[10], c = +(t[11] || 0), u = (p * 60 + c) * 6e4, t[9] === "-" && (u = -u)), y = new Date(Date.UTC(n, r, a, i, o, s, l)), u && y.setTime(y.getTime() - u), y;
1648
1648
  }
1649
- function So(e) {
1649
+ function xo(e) {
1650
1650
  return e.toISOString();
1651
1651
  }
1652
1652
  var zn = new ce("tag:yaml.org,2002:timestamp", {
1653
1653
  kind: "scalar",
1654
1654
  resolve: _o,
1655
- construct: xo,
1655
+ construct: Io,
1656
1656
  instanceOf: Date,
1657
- represent: So
1657
+ represent: xo
1658
1658
  });
1659
- function Io(e) {
1659
+ function So(e) {
1660
1660
  return e === "<<" || e === null;
1661
1661
  }
1662
1662
  var Gn = new ce("tag:yaml.org,2002:merge", {
1663
1663
  kind: "scalar",
1664
- resolve: Io
1665
- }), Et = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1664
+ resolve: So
1665
+ }), Mt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1666
1666
  \r`;
1667
1667
  function Ao(e) {
1668
1668
  if (e === null)
1669
1669
  return !1;
1670
- var t, n, r = 0, a = e.length, i = Et;
1670
+ var t, n, r = 0, a = e.length, i = Mt;
1671
1671
  for (n = 0; n < a; n++)
1672
1672
  if (t = i.indexOf(e.charAt(n)), !(t > 64)) {
1673
1673
  if (t < 0)
@@ -1677,36 +1677,36 @@ function Ao(e) {
1677
1677
  return r % 8 === 0;
1678
1678
  }
1679
1679
  function $o(e) {
1680
- var t, n, r = e.replace(/[\r\n=]/g, ""), a = r.length, i = Et, o = 0, l = [];
1680
+ var t, n, r = e.replace(/[\r\n=]/g, ""), a = r.length, i = Mt, o = 0, s = [];
1681
1681
  for (t = 0; t < a; t++)
1682
- t % 4 === 0 && t && (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(o & 255)), o = o << 6 | i.indexOf(r.charAt(t));
1683
- return n = a % 4 * 6, n === 0 ? (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(o & 255)) : n === 18 ? (l.push(o >> 10 & 255), l.push(o >> 2 & 255)) : n === 12 && l.push(o >> 4 & 255), new Uint8Array(l);
1682
+ t % 4 === 0 && t && (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)), o = o << 6 | i.indexOf(r.charAt(t));
1683
+ return n = a % 4 * 6, n === 0 ? (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)) : n === 18 ? (s.push(o >> 10 & 255), s.push(o >> 2 & 255)) : n === 12 && s.push(o >> 4 & 255), new Uint8Array(s);
1684
1684
  }
1685
1685
  function To(e) {
1686
- var t = "", n = 0, r, a, i = e.length, o = Et;
1686
+ var t = "", n = 0, r, a, i = e.length, o = Mt;
1687
1687
  for (r = 0; r < i; r++)
1688
1688
  r % 3 === 0 && r && (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]), n = (n << 8) + e[r];
1689
1689
  return a = i % 3, a === 0 ? (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]) : a === 2 ? (t += o[n >> 10 & 63], t += o[n >> 4 & 63], t += o[n << 2 & 63], t += o[64]) : a === 1 && (t += o[n >> 2 & 63], t += o[n << 4 & 63], t += o[64], t += o[64]), t;
1690
1690
  }
1691
- function jo(e) {
1691
+ function No(e) {
1692
1692
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1693
1693
  }
1694
1694
  var Hn = new ce("tag:yaml.org,2002:binary", {
1695
1695
  kind: "scalar",
1696
1696
  resolve: Ao,
1697
1697
  construct: $o,
1698
- predicate: jo,
1698
+ predicate: No,
1699
1699
  represent: To
1700
- }), No = Object.prototype.hasOwnProperty, Oo = Object.prototype.toString;
1701
- function Mo(e) {
1700
+ }), jo = Object.prototype.hasOwnProperty, Eo = Object.prototype.toString;
1701
+ function Oo(e) {
1702
1702
  if (e === null)
1703
1703
  return !0;
1704
- var t = [], n, r, a, i, o, l = e;
1705
- for (n = 0, r = l.length; n < r; n += 1) {
1706
- if (a = l[n], o = !1, Oo.call(a) !== "[object Object]")
1704
+ var t = [], n, r, a, i, o, s = e;
1705
+ for (n = 0, r = s.length; n < r; n += 1) {
1706
+ if (a = s[n], o = !1, Eo.call(a) !== "[object Object]")
1707
1707
  return !1;
1708
1708
  for (i in a)
1709
- if (No.call(a, i))
1709
+ if (jo.call(a, i))
1710
1710
  if (!o)
1711
1711
  o = !0;
1712
1712
  else
@@ -1720,26 +1720,26 @@ function Mo(e) {
1720
1720
  }
1721
1721
  return !0;
1722
1722
  }
1723
- function Eo(e) {
1723
+ function Mo(e) {
1724
1724
  return e !== null ? e : [];
1725
1725
  }
1726
1726
  var Jn = new ce("tag:yaml.org,2002:omap", {
1727
1727
  kind: "sequence",
1728
- resolve: Mo,
1729
- construct: Eo
1730
- }), qo = Object.prototype.toString;
1731
- function Fo(e) {
1728
+ resolve: Oo,
1729
+ construct: Mo
1730
+ }), Fo = Object.prototype.toString;
1731
+ function qo(e) {
1732
1732
  if (e === null)
1733
1733
  return !0;
1734
1734
  var t, n, r, a, i, o = e;
1735
1735
  for (i = new Array(o.length), t = 0, n = o.length; t < n; t += 1) {
1736
- if (r = o[t], qo.call(r) !== "[object Object]" || (a = Object.keys(r), a.length !== 1))
1736
+ if (r = o[t], Fo.call(r) !== "[object Object]" || (a = Object.keys(r), a.length !== 1))
1737
1737
  return !1;
1738
1738
  i[t] = [a[0], r[a[0]]];
1739
1739
  }
1740
1740
  return !0;
1741
1741
  }
1742
- function Bo(e) {
1742
+ function Ko(e) {
1743
1743
  if (e === null)
1744
1744
  return [];
1745
1745
  var t, n, r, a, i, o = e;
@@ -1747,28 +1747,28 @@ function Bo(e) {
1747
1747
  r = o[t], a = Object.keys(r), i[t] = [a[0], r[a[0]]];
1748
1748
  return i;
1749
1749
  }
1750
- var Wn = new ce("tag:yaml.org,2002:pairs", {
1750
+ var Zn = new ce("tag:yaml.org,2002:pairs", {
1751
1751
  kind: "sequence",
1752
- resolve: Fo,
1753
- construct: Bo
1754
- }), Ko = Object.prototype.hasOwnProperty;
1752
+ resolve: qo,
1753
+ construct: Ko
1754
+ }), Bo = Object.prototype.hasOwnProperty;
1755
1755
  function Lo(e) {
1756
1756
  if (e === null)
1757
1757
  return !0;
1758
1758
  var t, n = e;
1759
1759
  for (t in n)
1760
- if (Ko.call(n, t) && n[t] !== null)
1760
+ if (Bo.call(n, t) && n[t] !== null)
1761
1761
  return !1;
1762
1762
  return !0;
1763
1763
  }
1764
1764
  function Uo(e) {
1765
1765
  return e !== null ? e : {};
1766
1766
  }
1767
- var Yn = new ce("tag:yaml.org,2002:set", {
1767
+ var Wn = new ce("tag:yaml.org,2002:set", {
1768
1768
  kind: "mapping",
1769
1769
  resolve: Lo,
1770
1770
  construct: Uo
1771
- }), qt = Pn.extend({
1771
+ }), Ft = Vn.extend({
1772
1772
  implicit: [
1773
1773
  zn,
1774
1774
  Gn
@@ -1776,17 +1776,17 @@ var Yn = new ce("tag:yaml.org,2002:set", {
1776
1776
  explicit: [
1777
1777
  Hn,
1778
1778
  Jn,
1779
- Wn,
1780
- Yn
1779
+ Zn,
1780
+ Wn
1781
1781
  ]
1782
- }), qe = Object.prototype.hasOwnProperty, ct = 1, Zn = 2, Qn = 3, dt = 4, xt = 1, Ro = 2, tn = 3, Po = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Vo = /[\x85\u2028\u2029]/, Do = /[,\[\]\{\}]/, Xn = /^(?:!|!!|![a-z\-]+!)$/i, er = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1782
+ }), Fe = Object.prototype.hasOwnProperty, ct = 1, Yn = 2, Qn = 3, dt = 4, It = 1, Po = 2, tn = 3, Vo = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ro = /[\x85\u2028\u2029]/, Do = /[,\[\]\{\}]/, Xn = /^(?:!|!!|![a-z\-]+!)$/i, er = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1783
1783
  function nn(e) {
1784
1784
  return Object.prototype.toString.call(e);
1785
1785
  }
1786
1786
  function _e(e) {
1787
1787
  return e === 10 || e === 13;
1788
1788
  }
1789
- function Be(e) {
1789
+ function Ke(e) {
1790
1790
  return e === 9 || e === 32;
1791
1791
  }
1792
1792
  function ye(e) {
@@ -1816,10 +1816,10 @@ function Jo(e) {
1816
1816
  );
1817
1817
  }
1818
1818
  var tr = new Array(256), nr = new Array(256);
1819
- for (var Pe = 0; Pe < 256; Pe++)
1820
- tr[Pe] = rn(Pe) ? 1 : 0, nr[Pe] = rn(Pe);
1821
- function Wo(e, t) {
1822
- this.input = e, this.filename = t.filename || null, this.schema = t.schema || qt, 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 = [];
1819
+ for (var Ve = 0; Ve < 256; Ve++)
1820
+ tr[Ve] = rn(Ve) ? 1 : 0, nr[Ve] = rn(Ve);
1821
+ function Zo(e, t) {
1822
+ this.input = e, this.filename = t.filename || null, this.schema = t.schema || Ft, 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 = [];
1823
1823
  }
1824
1824
  function rr(e, t) {
1825
1825
  var n = {
@@ -1832,7 +1832,7 @@ function rr(e, t) {
1832
1832
  };
1833
1833
  return n.snippet = Qa(n), new fe(t, n);
1834
1834
  }
1835
- function O(e, t) {
1835
+ function E(e, t) {
1836
1836
  throw rr(e, t);
1837
1837
  }
1838
1838
  function pt(e, t) {
@@ -1841,40 +1841,40 @@ function pt(e, t) {
1841
1841
  var an = {
1842
1842
  YAML: function(e, t, n) {
1843
1843
  var r, a, i;
1844
- 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 && pt(e, "unsupported YAML version of the document");
1844
+ e.version !== null && E(e, "duplication of %YAML directive"), n.length !== 1 && E(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), r === null && E(e, "ill-formed argument of the YAML directive"), a = parseInt(r[1], 10), i = parseInt(r[2], 10), a !== 1 && E(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = i < 2, i !== 1 && i !== 2 && pt(e, "unsupported YAML version of the document");
1845
1845
  },
1846
1846
  TAG: function(e, t, n) {
1847
1847
  var r, a;
1848
- n.length !== 2 && O(e, "TAG directive accepts exactly two arguments"), r = n[0], a = n[1], Xn.test(r) || O(e, "ill-formed tag handle (first argument) of the TAG directive"), qe.call(e.tagMap, r) && O(e, 'there is a previously declared suffix for "' + r + '" tag handle'), er.test(a) || O(e, "ill-formed tag prefix (second argument) of the TAG directive");
1848
+ n.length !== 2 && E(e, "TAG directive accepts exactly two arguments"), r = n[0], a = n[1], Xn.test(r) || E(e, "ill-formed tag handle (first argument) of the TAG directive"), Fe.call(e.tagMap, r) && E(e, 'there is a previously declared suffix for "' + r + '" tag handle'), er.test(a) || E(e, "ill-formed tag prefix (second argument) of the TAG directive");
1849
1849
  try {
1850
1850
  a = decodeURIComponent(a);
1851
1851
  } catch {
1852
- O(e, "tag prefix is malformed: " + a);
1852
+ E(e, "tag prefix is malformed: " + a);
1853
1853
  }
1854
1854
  e.tagMap[r] = a;
1855
1855
  }
1856
1856
  };
1857
- function Me(e, t, n, r) {
1858
- var a, i, o, l;
1857
+ function Oe(e, t, n, r) {
1858
+ var a, i, o, s;
1859
1859
  if (t < n) {
1860
- if (l = e.input.slice(t, n), r)
1861
- for (a = 0, i = l.length; a < i; a += 1)
1862
- o = l.charCodeAt(a), o === 9 || 32 <= o && o <= 1114111 || O(e, "expected valid JSON character");
1860
+ if (s = e.input.slice(t, n), r)
1861
+ for (a = 0, i = s.length; a < i; a += 1)
1862
+ o = s.charCodeAt(a), o === 9 || 32 <= o && o <= 1114111 || E(e, "expected valid JSON character");
1863
1863
  else
1864
- Po.test(l) && O(e, "the stream contains non-printable characters");
1865
- e.result += l;
1864
+ Vo.test(s) && E(e, "the stream contains non-printable characters");
1865
+ e.result += s;
1866
1866
  }
1867
1867
  }
1868
1868
  function on(e, t, n, r) {
1869
- var a, i, o, l;
1870
- for (ie.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)
1871
- i = a[o], qe.call(t, i) || (t[i] = n[i], r[i] = !0);
1869
+ var a, i, o, s;
1870
+ for (ie.isObject(n) || E(e, "cannot merge mappings; the provided source object is unacceptable"), a = Object.keys(n), o = 0, s = a.length; o < s; o += 1)
1871
+ i = a[o], Fe.call(t, i) || (t[i] = n[i], r[i] = !0);
1872
1872
  }
1873
- function ze(e, t, n, r, a, i, o, l, s) {
1873
+ function ze(e, t, n, r, a, i, o, s, l) {
1874
1874
  var u, p;
1875
1875
  if (Array.isArray(a))
1876
1876
  for (a = Array.prototype.slice.call(a), u = 0, p = a.length; u < p; u += 1)
1877
- Array.isArray(a[u]) && O(e, "nested arrays are not supported inside keys"), typeof a == "object" && nn(a[u]) === "[object Object]" && (a[u] = "[object Object]");
1877
+ Array.isArray(a[u]) && E(e, "nested arrays are not supported inside keys"), typeof a == "object" && nn(a[u]) === "[object Object]" && (a[u] = "[object Object]");
1878
1878
  if (typeof a == "object" && nn(a) === "[object Object]" && (a = "[object Object]"), a = String(a), t === null && (t = {}), r === "tag:yaml.org,2002:merge")
1879
1879
  if (Array.isArray(i))
1880
1880
  for (u = 0, p = i.length; u < p; u += 1)
@@ -1882,7 +1882,7 @@ function ze(e, t, n, r, a, i, o, l, s) {
1882
1882
  else
1883
1883
  on(e, t, i, n);
1884
1884
  else
1885
- !e.json && !qe.call(n, a) && qe.call(t, a) && (e.line = o || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, O(e, "duplicated mapping key")), a === "__proto__" ? Object.defineProperty(t, a, {
1885
+ !e.json && !Fe.call(n, a) && Fe.call(t, a) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, E(e, "duplicated mapping key")), a === "__proto__" ? Object.defineProperty(t, a, {
1886
1886
  configurable: !0,
1887
1887
  enumerable: !0,
1888
1888
  writable: !0,
@@ -1890,20 +1890,20 @@ function ze(e, t, n, r, a, i, o, l, s) {
1890
1890
  }) : t[a] = i, delete n[a];
1891
1891
  return t;
1892
1892
  }
1893
- function Ft(e) {
1893
+ function qt(e) {
1894
1894
  var t;
1895
- t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : O(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1895
+ t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : E(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1896
1896
  }
1897
1897
  function oe(e, t, n) {
1898
1898
  for (var r = 0, a = e.input.charCodeAt(e.position); a !== 0; ) {
1899
- for (; Be(a); )
1899
+ for (; Ke(a); )
1900
1900
  a === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), a = e.input.charCodeAt(++e.position);
1901
1901
  if (t && a === 35)
1902
1902
  do
1903
1903
  a = e.input.charCodeAt(++e.position);
1904
1904
  while (a !== 10 && a !== 13 && a !== 0);
1905
1905
  if (_e(a))
1906
- for (Ft(e), a = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; a === 32; )
1906
+ for (qt(e), a = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; a === 32; )
1907
1907
  e.lineIndent++, a = e.input.charCodeAt(++e.position);
1908
1908
  else
1909
1909
  break;
@@ -1914,15 +1914,15 @@ function vt(e) {
1914
1914
  var t = e.position, n;
1915
1915
  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 || ye(n)));
1916
1916
  }
1917
- function Bt(e, t) {
1917
+ function Kt(e, t) {
1918
1918
  t === 1 ? e.result += " " : t > 1 && (e.result += ie.repeat(`
1919
1919
  `, t - 1));
1920
1920
  }
1921
- function Yo(e, t, n) {
1922
- var r, a, i, o, l, s, u, p, c = e.kind, y = e.result, f;
1921
+ function Wo(e, t, n) {
1922
+ var r, a, i, o, s, l, u, p, c = e.kind, y = e.result, f;
1923
1923
  if (f = e.input.charCodeAt(e.position), ye(f) || De(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (a = e.input.charCodeAt(e.position + 1), ye(a) || n && De(a)))
1924
1924
  return !1;
1925
- for (e.kind = "scalar", e.result = "", i = o = e.position, l = !1; f !== 0; ) {
1925
+ for (e.kind = "scalar", e.result = "", i = o = e.position, s = !1; f !== 0; ) {
1926
1926
  if (f === 58) {
1927
1927
  if (a = e.input.charCodeAt(e.position + 1), ye(a) || n && De(a))
1928
1928
  break;
@@ -1933,73 +1933,73 @@ function Yo(e, t, n) {
1933
1933
  if (e.position === e.lineStart && vt(e) || n && De(f))
1934
1934
  break;
1935
1935
  if (_e(f))
1936
- if (s = e.line, u = e.lineStart, p = e.lineIndent, oe(e, !1, -1), e.lineIndent >= t) {
1937
- l = !0, f = e.input.charCodeAt(e.position);
1936
+ if (l = e.line, u = e.lineStart, p = e.lineIndent, oe(e, !1, -1), e.lineIndent >= t) {
1937
+ s = !0, f = e.input.charCodeAt(e.position);
1938
1938
  continue;
1939
1939
  } else {
1940
- e.position = o, e.line = s, e.lineStart = u, e.lineIndent = p;
1940
+ e.position = o, e.line = l, e.lineStart = u, e.lineIndent = p;
1941
1941
  break;
1942
1942
  }
1943
1943
  }
1944
- l && (Me(e, i, o, !1), Bt(e, e.line - s), i = o = e.position, l = !1), Be(f) || (o = e.position + 1), f = e.input.charCodeAt(++e.position);
1944
+ s && (Oe(e, i, o, !1), Kt(e, e.line - l), i = o = e.position, s = !1), Ke(f) || (o = e.position + 1), f = e.input.charCodeAt(++e.position);
1945
1945
  }
1946
- return Me(e, i, o, !1), e.result ? !0 : (e.kind = c, e.result = y, !1);
1946
+ return Oe(e, i, o, !1), e.result ? !0 : (e.kind = c, e.result = y, !1);
1947
1947
  }
1948
- function Zo(e, t) {
1948
+ function Yo(e, t) {
1949
1949
  var n, r, a;
1950
1950
  if (n = e.input.charCodeAt(e.position), n !== 39)
1951
1951
  return !1;
1952
1952
  for (e.kind = "scalar", e.result = "", e.position++, r = a = e.position; (n = e.input.charCodeAt(e.position)) !== 0; )
1953
1953
  if (n === 39)
1954
- if (Me(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39)
1954
+ if (Oe(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39)
1955
1955
  r = e.position, e.position++, a = e.position;
1956
1956
  else
1957
1957
  return !0;
1958
1958
  else
1959
- _e(n) ? (Me(e, r, a, !0), Bt(e, oe(e, !1, t)), r = a = e.position) : e.position === e.lineStart && vt(e) ? O(e, "unexpected end of the document within a single quoted scalar") : (e.position++, a = e.position);
1960
- O(e, "unexpected end of the stream within a single quoted scalar");
1959
+ _e(n) ? (Oe(e, r, a, !0), Kt(e, oe(e, !1, t)), r = a = e.position) : e.position === e.lineStart && vt(e) ? E(e, "unexpected end of the document within a single quoted scalar") : (e.position++, a = e.position);
1960
+ E(e, "unexpected end of the stream within a single quoted scalar");
1961
1961
  }
1962
1962
  function Qo(e, t) {
1963
- var n, r, a, i, o, l;
1964
- if (l = e.input.charCodeAt(e.position), l !== 34)
1963
+ var n, r, a, i, o, s;
1964
+ if (s = e.input.charCodeAt(e.position), s !== 34)
1965
1965
  return !1;
1966
- for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (l = e.input.charCodeAt(e.position)) !== 0; ) {
1967
- if (l === 34)
1968
- return Me(e, n, e.position, !0), e.position++, !0;
1969
- if (l === 92) {
1970
- if (Me(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), _e(l))
1966
+ for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0; ) {
1967
+ if (s === 34)
1968
+ return Oe(e, n, e.position, !0), e.position++, !0;
1969
+ if (s === 92) {
1970
+ if (Oe(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), _e(s))
1971
1971
  oe(e, !1, t);
1972
- else if (l < 256 && tr[l])
1973
- e.result += nr[l], e.position++;
1974
- else if ((o = Go(l)) > 0) {
1972
+ else if (s < 256 && tr[s])
1973
+ e.result += nr[s], e.position++;
1974
+ else if ((o = Go(s)) > 0) {
1975
1975
  for (a = o, i = 0; a > 0; a--)
1976
- l = e.input.charCodeAt(++e.position), (o = zo(l)) >= 0 ? i = (i << 4) + o : O(e, "expected hexadecimal character");
1976
+ s = e.input.charCodeAt(++e.position), (o = zo(s)) >= 0 ? i = (i << 4) + o : E(e, "expected hexadecimal character");
1977
1977
  e.result += Jo(i), e.position++;
1978
1978
  } else
1979
- O(e, "unknown escape sequence");
1979
+ E(e, "unknown escape sequence");
1980
1980
  n = r = e.position;
1981
1981
  } else
1982
- _e(l) ? (Me(e, n, r, !0), Bt(e, oe(e, !1, t)), n = r = e.position) : e.position === e.lineStart && vt(e) ? O(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1982
+ _e(s) ? (Oe(e, n, r, !0), Kt(e, oe(e, !1, t)), n = r = e.position) : e.position === e.lineStart && vt(e) ? E(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1983
1983
  }
1984
- O(e, "unexpected end of the stream within a double quoted scalar");
1984
+ E(e, "unexpected end of the stream within a double quoted scalar");
1985
1985
  }
1986
1986
  function Xo(e, t) {
1987
- var n = !0, r, a, i, o = e.tag, l, s = e.anchor, u, p, c, y, f, x = /* @__PURE__ */ Object.create(null), T, k, U, j;
1988
- if (j = e.input.charCodeAt(e.position), j === 91)
1989
- p = 93, f = !1, l = [];
1990
- else if (j === 123)
1991
- p = 125, f = !0, l = {};
1987
+ var n = !0, r, a, i, o = e.tag, s, l = e.anchor, u, p, c, y, f, I = /* @__PURE__ */ Object.create(null), T, k, U, N;
1988
+ if (N = e.input.charCodeAt(e.position), N === 91)
1989
+ p = 93, f = !1, s = [];
1990
+ else if (N === 123)
1991
+ p = 125, f = !0, s = {};
1992
1992
  else
1993
1993
  return !1;
1994
- for (e.anchor !== null && (e.anchorMap[e.anchor] = l), j = e.input.charCodeAt(++e.position); j !== 0; ) {
1995
- if (oe(e, !0, t), j = e.input.charCodeAt(e.position), j === p)
1996
- return e.position++, e.tag = o, e.anchor = s, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
1997
- n ? j === 44 && O(e, "expected the node content, but found ','") : O(e, "missed comma between flow collection entries"), k = T = U = null, c = y = !1, j === 63 && (u = e.input.charCodeAt(e.position + 1), ye(u) && (c = y = !0, e.position++, oe(e, !0, t))), r = e.line, a = e.lineStart, i = e.position, Ge(e, t, ct, !1, !0), k = e.tag, T = e.result, oe(e, !0, t), j = e.input.charCodeAt(e.position), (y || e.line === r) && j === 58 && (c = !0, j = e.input.charCodeAt(++e.position), oe(e, !0, t), Ge(e, t, ct, !1, !0), U = e.result), f ? ze(e, l, x, k, T, U, r, a, i) : c ? l.push(ze(e, null, x, k, T, U, r, a, i)) : l.push(T), oe(e, !0, t), j = e.input.charCodeAt(e.position), j === 44 ? (n = !0, j = e.input.charCodeAt(++e.position)) : n = !1;
1994
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = s), N = e.input.charCodeAt(++e.position); N !== 0; ) {
1995
+ if (oe(e, !0, t), N = e.input.charCodeAt(e.position), N === p)
1996
+ return e.position++, e.tag = o, e.anchor = l, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
1997
+ n ? N === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"), k = T = U = null, c = y = !1, N === 63 && (u = e.input.charCodeAt(e.position + 1), ye(u) && (c = y = !0, e.position++, oe(e, !0, t))), r = e.line, a = e.lineStart, i = e.position, Ge(e, t, ct, !1, !0), k = e.tag, T = e.result, oe(e, !0, t), N = e.input.charCodeAt(e.position), (y || e.line === r) && N === 58 && (c = !0, N = e.input.charCodeAt(++e.position), oe(e, !0, t), Ge(e, t, ct, !1, !0), U = e.result), f ? ze(e, s, I, k, T, U, r, a, i) : c ? s.push(ze(e, null, I, k, T, U, r, a, i)) : s.push(T), oe(e, !0, t), N = e.input.charCodeAt(e.position), N === 44 ? (n = !0, N = e.input.charCodeAt(++e.position)) : n = !1;
1998
1998
  }
1999
- O(e, "unexpected end of the stream within a flow collection");
1999
+ E(e, "unexpected end of the stream within a flow collection");
2000
2000
  }
2001
2001
  function ei(e, t) {
2002
- var n, r, a = xt, i = !1, o = !1, l = t, s = 0, u = !1, p, c;
2002
+ var n, r, a = It, i = !1, o = !1, s = t, l = 0, u = !1, p, c;
2003
2003
  if (c = e.input.charCodeAt(e.position), c === 124)
2004
2004
  r = !1;
2005
2005
  else if (c === 62)
@@ -2008,119 +2008,119 @@ function ei(e, t) {
2008
2008
  return !1;
2009
2009
  for (e.kind = "scalar", e.result = ""; c !== 0; )
2010
2010
  if (c = e.input.charCodeAt(++e.position), c === 43 || c === 45)
2011
- xt === a ? a = c === 43 ? tn : Ro : O(e, "repeat of a chomping mode identifier");
2011
+ It === a ? a = c === 43 ? tn : Po : E(e, "repeat of a chomping mode identifier");
2012
2012
  else if ((p = Ho(c)) >= 0)
2013
- p === 0 ? O(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? O(e, "repeat of an indentation width identifier") : (l = t + p - 1, o = !0);
2013
+ p === 0 ? E(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? E(e, "repeat of an indentation width identifier") : (s = t + p - 1, o = !0);
2014
2014
  else
2015
2015
  break;
2016
- if (Be(c)) {
2016
+ if (Ke(c)) {
2017
2017
  do
2018
2018
  c = e.input.charCodeAt(++e.position);
2019
- while (Be(c));
2019
+ while (Ke(c));
2020
2020
  if (c === 35)
2021
2021
  do
2022
2022
  c = e.input.charCodeAt(++e.position);
2023
2023
  while (!_e(c) && c !== 0);
2024
2024
  }
2025
2025
  for (; c !== 0; ) {
2026
- for (Ft(e), e.lineIndent = 0, c = e.input.charCodeAt(e.position); (!o || e.lineIndent < l) && c === 32; )
2026
+ for (qt(e), e.lineIndent = 0, c = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && c === 32; )
2027
2027
  e.lineIndent++, c = e.input.charCodeAt(++e.position);
2028
- if (!o && e.lineIndent > l && (l = e.lineIndent), _e(c)) {
2029
- s++;
2028
+ if (!o && e.lineIndent > s && (s = e.lineIndent), _e(c)) {
2029
+ l++;
2030
2030
  continue;
2031
2031
  }
2032
- if (e.lineIndent < l) {
2032
+ if (e.lineIndent < s) {
2033
2033
  a === tn ? e.result += ie.repeat(`
2034
- `, i ? 1 + s : s) : a === xt && i && (e.result += `
2034
+ `, i ? 1 + l : l) : a === It && i && (e.result += `
2035
2035
  `);
2036
2036
  break;
2037
2037
  }
2038
- for (r ? Be(c) ? (u = !0, e.result += ie.repeat(`
2039
- `, i ? 1 + s : s)) : u ? (u = !1, e.result += ie.repeat(`
2040
- `, s + 1)) : s === 0 ? i && (e.result += " ") : e.result += ie.repeat(`
2041
- `, s) : e.result += ie.repeat(`
2042
- `, i ? 1 + s : s), i = !0, o = !0, s = 0, n = e.position; !_e(c) && c !== 0; )
2038
+ for (r ? Ke(c) ? (u = !0, e.result += ie.repeat(`
2039
+ `, i ? 1 + l : l)) : u ? (u = !1, e.result += ie.repeat(`
2040
+ `, l + 1)) : l === 0 ? i && (e.result += " ") : e.result += ie.repeat(`
2041
+ `, l) : e.result += ie.repeat(`
2042
+ `, i ? 1 + l : l), i = !0, o = !0, l = 0, n = e.position; !_e(c) && c !== 0; )
2043
2043
  c = e.input.charCodeAt(++e.position);
2044
- Me(e, n, e.position, !1);
2044
+ Oe(e, n, e.position, !1);
2045
2045
  }
2046
2046
  return !0;
2047
2047
  }
2048
- function ln(e, t) {
2049
- var n, r = e.tag, a = e.anchor, i = [], o, l = !1, s;
2048
+ function sn(e, t) {
2049
+ var n, r = e.tag, a = e.anchor, i = [], o, s = !1, l;
2050
2050
  if (e.firstTabInLine !== -1)
2051
2051
  return !1;
2052
- for (e.anchor !== null && (e.anchorMap[e.anchor] = i), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, O(e, "tab characters must not be used in indentation")), !(s !== 45 || (o = e.input.charCodeAt(e.position + 1), !ye(o)))); ) {
2053
- if (l = !0, e.position++, oe(e, !0, -1) && e.lineIndent <= t) {
2054
- i.push(null), s = e.input.charCodeAt(e.position);
2052
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = i), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation")), !(l !== 45 || (o = e.input.charCodeAt(e.position + 1), !ye(o)))); ) {
2053
+ if (s = !0, e.position++, oe(e, !0, -1) && e.lineIndent <= t) {
2054
+ i.push(null), l = e.input.charCodeAt(e.position);
2055
2055
  continue;
2056
2056
  }
2057
- if (n = e.line, Ge(e, t, Qn, !1, !0), i.push(e.result), oe(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
2058
- O(e, "bad indentation of a sequence entry");
2057
+ if (n = e.line, Ge(e, t, Qn, !1, !0), i.push(e.result), oe(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && l !== 0)
2058
+ E(e, "bad indentation of a sequence entry");
2059
2059
  else if (e.lineIndent < t)
2060
2060
  break;
2061
2061
  }
2062
- return l ? (e.tag = r, e.anchor = a, e.kind = "sequence", e.result = i, !0) : !1;
2062
+ return s ? (e.tag = r, e.anchor = a, e.kind = "sequence", e.result = i, !0) : !1;
2063
2063
  }
2064
2064
  function ti(e, t, n) {
2065
- var r, a, i, o, l, s, u = e.tag, p = e.anchor, c = {}, y = /* @__PURE__ */ Object.create(null), f = null, x = null, T = null, k = !1, U = !1, j;
2065
+ var r, a, i, o, s, l, u = e.tag, p = e.anchor, c = {}, y = /* @__PURE__ */ Object.create(null), f = null, I = null, T = null, k = !1, U = !1, N;
2066
2066
  if (e.firstTabInLine !== -1)
2067
2067
  return !1;
2068
- for (e.anchor !== null && (e.anchorMap[e.anchor] = c), j = e.input.charCodeAt(e.position); j !== 0; ) {
2069
- if (!k && 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, (j === 63 || j === 58) && ye(r))
2070
- j === 63 ? (k && (ze(e, c, y, f, x, null, o, l, s), f = x = T = null), U = !0, k = !0, a = !0) : k ? (k = !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, j = r;
2068
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = c), N = e.input.charCodeAt(e.position); N !== 0; ) {
2069
+ if (!k && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), i = e.line, (N === 63 || N === 58) && ye(r))
2070
+ N === 63 ? (k && (ze(e, c, y, f, I, null, o, s, l), f = I = T = null), U = !0, k = !0, a = !0) : k ? (k = !1, a = !0) : E(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, N = r;
2071
2071
  else {
2072
- if (o = e.line, l = e.lineStart, s = e.position, !Ge(e, n, Zn, !1, !0))
2072
+ if (o = e.line, s = e.lineStart, l = e.position, !Ge(e, n, Yn, !1, !0))
2073
2073
  break;
2074
2074
  if (e.line === i) {
2075
- for (j = e.input.charCodeAt(e.position); Be(j); )
2076
- j = e.input.charCodeAt(++e.position);
2077
- if (j === 58)
2078
- j = e.input.charCodeAt(++e.position), ye(j) || O(e, "a whitespace character is expected after the key-value separator within a block mapping"), k && (ze(e, c, y, f, x, null, o, l, s), f = x = T = null), U = !0, k = !1, a = !1, f = e.tag, x = e.result;
2075
+ for (N = e.input.charCodeAt(e.position); Ke(N); )
2076
+ N = e.input.charCodeAt(++e.position);
2077
+ if (N === 58)
2078
+ N = e.input.charCodeAt(++e.position), ye(N) || E(e, "a whitespace character is expected after the key-value separator within a block mapping"), k && (ze(e, c, y, f, I, null, o, s, l), f = I = T = null), U = !0, k = !1, a = !1, f = e.tag, I = e.result;
2079
2079
  else if (U)
2080
- O(e, "can not read an implicit mapping pair; a colon is missed");
2080
+ E(e, "can not read an implicit mapping pair; a colon is missed");
2081
2081
  else
2082
2082
  return e.tag = u, e.anchor = p, !0;
2083
2083
  } else if (U)
2084
- O(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2084
+ E(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2085
2085
  else
2086
2086
  return e.tag = u, e.anchor = p, !0;
2087
2087
  }
2088
- if ((e.line === i || e.lineIndent > t) && (k && (o = e.line, l = e.lineStart, s = e.position), Ge(e, t, dt, !0, a) && (k ? x = e.result : T = e.result), k || (ze(e, c, y, f, x, T, o, l, s), f = x = T = null), oe(e, !0, -1), j = e.input.charCodeAt(e.position)), (e.line === i || e.lineIndent > t) && j !== 0)
2089
- O(e, "bad indentation of a mapping entry");
2088
+ if ((e.line === i || e.lineIndent > t) && (k && (o = e.line, s = e.lineStart, l = e.position), Ge(e, t, dt, !0, a) && (k ? I = e.result : T = e.result), k || (ze(e, c, y, f, I, T, o, s, l), f = I = T = null), oe(e, !0, -1), N = e.input.charCodeAt(e.position)), (e.line === i || e.lineIndent > t) && N !== 0)
2089
+ E(e, "bad indentation of a mapping entry");
2090
2090
  else if (e.lineIndent < t)
2091
2091
  break;
2092
2092
  }
2093
- return k && ze(e, c, y, f, x, null, o, l, s), U && (e.tag = u, e.anchor = p, e.kind = "mapping", e.result = c), U;
2093
+ return k && ze(e, c, y, f, I, null, o, s, l), U && (e.tag = u, e.anchor = p, e.kind = "mapping", e.result = c), U;
2094
2094
  }
2095
2095
  function ni(e) {
2096
2096
  var t, n = !1, r = !1, a, i, o;
2097
2097
  if (o = e.input.charCodeAt(e.position), o !== 33)
2098
2098
  return !1;
2099
- if (e.tag !== null && O(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (n = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (r = !0, a = "!!", o = e.input.charCodeAt(++e.position)) : a = "!", t = e.position, n) {
2099
+ if (e.tag !== null && E(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (n = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (r = !0, a = "!!", o = e.input.charCodeAt(++e.position)) : a = "!", t = e.position, n) {
2100
2100
  do
2101
2101
  o = e.input.charCodeAt(++e.position);
2102
2102
  while (o !== 0 && o !== 62);
2103
- e.position < e.length ? (i = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : O(e, "unexpected end of the stream within a verbatim tag");
2103
+ e.position < e.length ? (i = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : E(e, "unexpected end of the stream within a verbatim tag");
2104
2104
  } else {
2105
2105
  for (; o !== 0 && !ye(o); )
2106
- o === 33 && (r ? O(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(t - 1, e.position + 1), Xn.test(a) || O(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
2107
- i = e.input.slice(t, e.position), Do.test(i) && O(e, "tag suffix cannot contain flow indicator characters");
2106
+ o === 33 && (r ? E(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(t - 1, e.position + 1), Xn.test(a) || E(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
2107
+ i = e.input.slice(t, e.position), Do.test(i) && E(e, "tag suffix cannot contain flow indicator characters");
2108
2108
  }
2109
- i && !er.test(i) && O(e, "tag name cannot contain such characters: " + i);
2109
+ i && !er.test(i) && E(e, "tag name cannot contain such characters: " + i);
2110
2110
  try {
2111
2111
  i = decodeURIComponent(i);
2112
2112
  } catch {
2113
- O(e, "tag name is malformed: " + i);
2113
+ E(e, "tag name is malformed: " + i);
2114
2114
  }
2115
- return n ? e.tag = i : qe.call(e.tagMap, a) ? e.tag = e.tagMap[a] + i : a === "!" ? e.tag = "!" + i : a === "!!" ? e.tag = "tag:yaml.org,2002:" + i : O(e, 'undeclared tag handle "' + a + '"'), !0;
2115
+ return n ? e.tag = i : Fe.call(e.tagMap, a) ? e.tag = e.tagMap[a] + i : a === "!" ? e.tag = "!" + i : a === "!!" ? e.tag = "tag:yaml.org,2002:" + i : E(e, 'undeclared tag handle "' + a + '"'), !0;
2116
2116
  }
2117
2117
  function ri(e) {
2118
2118
  var t, n;
2119
2119
  if (n = e.input.charCodeAt(e.position), n !== 38)
2120
2120
  return !1;
2121
- for (e.anchor !== null && O(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !ye(n) && !De(n); )
2121
+ for (e.anchor !== null && E(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !ye(n) && !De(n); )
2122
2122
  n = e.input.charCodeAt(++e.position);
2123
- 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;
2123
+ return e.position === t && E(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
2124
2124
  }
2125
2125
  function ai(e) {
2126
2126
  var t, n, r;
@@ -2128,31 +2128,31 @@ function ai(e) {
2128
2128
  return !1;
2129
2129
  for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !ye(r) && !De(r); )
2130
2130
  r = e.input.charCodeAt(++e.position);
2131
- return e.position === t && O(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), qe.call(e.anchorMap, n) || O(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], oe(e, !0, -1), !0;
2131
+ return e.position === t && E(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), Fe.call(e.anchorMap, n) || E(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], oe(e, !0, -1), !0;
2132
2132
  }
2133
2133
  function Ge(e, t, n, r, a) {
2134
- var i, o, l, s = 1, u = !1, p = !1, c, y, f, x, T, k;
2135
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, i = o = l = dt === n || Qn === n, r && oe(e, !0, -1) && (u = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
2134
+ var i, o, s, l = 1, u = !1, p = !1, c, y, f, I, T, k;
2135
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, i = o = s = dt === n || Qn === n, r && oe(e, !0, -1) && (u = !0, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)), l === 1)
2136
2136
  for (; ni(e) || ri(e); )
2137
- oe(e, !0, -1) ? (u = !0, l = i, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
2138
- if (l && (l = u || a), (s === 1 || dt === n) && (ct === n || Zn === n ? T = t : T = t + 1, k = e.position - e.lineStart, s === 1 ? l && (ln(e, k) || ti(e, k, T)) || Xo(e, T) ? p = !0 : (o && ei(e, T) || Zo(e, T) || Qo(e, T) ? p = !0 : ai(e) ? (p = !0, (e.tag !== null || e.anchor !== null) && O(e, "alias node should not have any properties")) : Yo(e, T, ct === n) && (p = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (p = l && ln(e, k))), e.tag === null)
2137
+ oe(e, !0, -1) ? (u = !0, s = i, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)) : s = !1;
2138
+ if (s && (s = u || a), (l === 1 || dt === n) && (ct === n || Yn === n ? T = t : T = t + 1, k = e.position - e.lineStart, l === 1 ? s && (sn(e, k) || ti(e, k, T)) || Xo(e, T) ? p = !0 : (o && ei(e, T) || Yo(e, T) || Qo(e, T) ? p = !0 : ai(e) ? (p = !0, (e.tag !== null || e.anchor !== null) && E(e, "alias node should not have any properties")) : Wo(e, T, ct === n) && (p = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (p = s && sn(e, k))), e.tag === null)
2139
2139
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2140
2140
  else if (e.tag === "?") {
2141
- for (e.result !== null && e.kind !== "scalar" && O(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, y = e.implicitTypes.length; c < y; c += 1)
2142
- if (x = e.implicitTypes[c], x.resolve(e.result)) {
2143
- e.result = x.construct(e.result), e.tag = x.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2141
+ for (e.result !== null && e.kind !== "scalar" && E(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, y = e.implicitTypes.length; c < y; c += 1)
2142
+ if (I = e.implicitTypes[c], I.resolve(e.result)) {
2143
+ e.result = I.construct(e.result), e.tag = I.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2144
2144
  break;
2145
2145
  }
2146
2146
  } else if (e.tag !== "!") {
2147
- if (qe.call(e.typeMap[e.kind || "fallback"], e.tag))
2148
- x = e.typeMap[e.kind || "fallback"][e.tag];
2147
+ if (Fe.call(e.typeMap[e.kind || "fallback"], e.tag))
2148
+ I = e.typeMap[e.kind || "fallback"][e.tag];
2149
2149
  else
2150
- for (x = null, f = e.typeMap.multi[e.kind || "fallback"], c = 0, y = f.length; c < y; c += 1)
2150
+ for (I = null, f = e.typeMap.multi[e.kind || "fallback"], c = 0, y = f.length; c < y; c += 1)
2151
2151
  if (e.tag.slice(0, f[c].tag.length) === f[c].tag) {
2152
- x = f[c];
2152
+ I = f[c];
2153
2153
  break;
2154
2154
  }
2155
- x || O(e, "unknown tag !<" + e.tag + ">"), e.result !== null && x.kind !== e.kind && O(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + x.kind + '", not "' + e.kind + '"'), x.resolve(e.result, e.tag) ? (e.result = x.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : O(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2155
+ I || E(e, "unknown tag !<" + e.tag + ">"), e.result !== null && I.kind !== e.kind && E(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + I.kind + '", not "' + e.kind + '"'), I.resolve(e.result, e.tag) ? (e.result = I.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : E(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2156
2156
  }
2157
2157
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || p;
2158
2158
  }
@@ -2161,8 +2161,8 @@ function oi(e) {
2161
2161
  for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (oe(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
2162
2162
  for (i = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !ye(o); )
2163
2163
  o = e.input.charCodeAt(++e.position);
2164
- for (r = e.input.slice(n, e.position), a = [], r.length < 1 && O(e, "directive name must not be less than one character in length"); o !== 0; ) {
2165
- for (; Be(o); )
2164
+ for (r = e.input.slice(n, e.position), a = [], r.length < 1 && E(e, "directive name must not be less than one character in length"); o !== 0; ) {
2165
+ for (; Ke(o); )
2166
2166
  o = e.input.charCodeAt(++e.position);
2167
2167
  if (o === 35) {
2168
2168
  do
@@ -2176,22 +2176,22 @@ function oi(e) {
2176
2176
  o = e.input.charCodeAt(++e.position);
2177
2177
  a.push(e.input.slice(n, e.position));
2178
2178
  }
2179
- o !== 0 && Ft(e), qe.call(an, r) ? an[r](e, r, a) : pt(e, 'unknown document directive "' + r + '"');
2179
+ o !== 0 && qt(e), Fe.call(an, r) ? an[r](e, r, a) : pt(e, 'unknown document directive "' + r + '"');
2180
2180
  }
2181
- if (oe(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, oe(e, !0, -1)) : i && O(e, "directives end mark is expected"), Ge(e, e.lineIndent - 1, dt, !1, !0), oe(e, !0, -1), e.checkLineBreaks && Vo.test(e.input.slice(t, e.position)) && pt(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && vt(e)) {
2181
+ if (oe(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, oe(e, !0, -1)) : i && E(e, "directives end mark is expected"), Ge(e, e.lineIndent - 1, dt, !1, !0), oe(e, !0, -1), e.checkLineBreaks && Ro.test(e.input.slice(t, e.position)) && pt(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && vt(e)) {
2182
2182
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, oe(e, !0, -1));
2183
2183
  return;
2184
2184
  }
2185
2185
  if (e.position < e.length - 1)
2186
- O(e, "end of the stream or a document separator is expected");
2186
+ E(e, "end of the stream or a document separator is expected");
2187
2187
  else
2188
2188
  return;
2189
2189
  }
2190
2190
  function ar(e, t) {
2191
2191
  e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
2192
2192
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
2193
- var n = new Wo(e, t), r = e.indexOf("\0");
2194
- for (r !== -1 && (n.position = r, O(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
2193
+ var n = new Zo(e, t), r = e.indexOf("\0");
2194
+ for (r !== -1 && (n.position = r, E(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
2195
2195
  n.lineIndent += 1, n.position += 1;
2196
2196
  for (; n.position < n.length - 1; )
2197
2197
  oi(n);
@@ -2205,7 +2205,7 @@ function ii(e, t, n) {
2205
2205
  for (var a = 0, i = r.length; a < i; a += 1)
2206
2206
  t(r[a]);
2207
2207
  }
2208
- function li(e, t) {
2208
+ function si(e, t) {
2209
2209
  var n = ar(e, t);
2210
2210
  if (n.length !== 0) {
2211
2211
  if (n.length === 1)
@@ -2213,10 +2213,10 @@ function li(e, t) {
2213
2213
  throw new fe("expected a single document in the stream, but found more");
2214
2214
  }
2215
2215
  }
2216
- var si = ii, ui = li, or = {
2217
- loadAll: si,
2216
+ var li = ii, ui = si, or = {
2217
+ loadAll: li,
2218
2218
  load: ui
2219
- }, ir = Object.prototype.toString, lr = Object.prototype.hasOwnProperty, Kt = 65279, ci = 9, nt = 10, di = 13, pi = 32, fi = 33, mi = 34, At = 35, gi = 37, yi = 38, hi = 39, vi = 42, sr = 44, bi = 45, ft = 58, Ci = 61, ki = 62, wi = 63, _i = 64, ur = 91, cr = 93, xi = 96, dr = 123, Si = 124, pr = 125, pe = {};
2219
+ }, ir = Object.prototype.toString, sr = Object.prototype.hasOwnProperty, Bt = 65279, ci = 9, nt = 10, di = 13, pi = 32, fi = 33, mi = 34, At = 35, gi = 37, yi = 38, hi = 39, vi = 42, lr = 44, bi = 45, ft = 58, Ci = 61, ki = 62, wi = 63, _i = 64, ur = 91, cr = 93, Ii = 96, dr = 123, xi = 124, pr = 125, pe = {};
2220
2220
  pe[0] = "\\0";
2221
2221
  pe[7] = "\\a";
2222
2222
  pe[8] = "\\b";
@@ -2232,7 +2232,7 @@ pe[133] = "\\N";
2232
2232
  pe[160] = "\\_";
2233
2233
  pe[8232] = "\\L";
2234
2234
  pe[8233] = "\\P";
2235
- var Ii = [
2235
+ var Si = [
2236
2236
  "y",
2237
2237
  "Y",
2238
2238
  "yes",
@@ -2251,11 +2251,11 @@ var Ii = [
2251
2251
  "OFF"
2252
2252
  ], Ai = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2253
2253
  function $i(e, t) {
2254
- var n, r, a, i, o, l, s;
2254
+ var n, r, a, i, o, s, l;
2255
2255
  if (t === null)
2256
2256
  return {};
2257
2257
  for (n = {}, r = Object.keys(t), a = 0, i = r.length; a < i; a += 1)
2258
- o = r[a], l = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), s = e.compiledTypeMap.fallback[o], s && lr.call(s.styleAliases, l) && (l = s.styleAliases[l]), n[o] = l;
2258
+ o = r[a], s = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), l = e.compiledTypeMap.fallback[o], l && sr.call(l.styleAliases, s) && (s = l.styleAliases[s]), n[o] = s;
2259
2259
  return n;
2260
2260
  }
2261
2261
  function Ti(e) {
@@ -2270,14 +2270,14 @@ function Ti(e) {
2270
2270
  throw new fe("code point within a string may not be greater than 0xFFFFFFFF");
2271
2271
  return "\\" + n + ie.repeat("0", r - t.length) + t;
2272
2272
  }
2273
- var ji = 1, rt = 2;
2274
- function Ni(e) {
2275
- this.schema = e.schema || qt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ie.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = $i(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 === '"' ? rt : ji, 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;
2273
+ var Ni = 1, rt = 2;
2274
+ function ji(e) {
2275
+ this.schema = e.schema || Ft, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ie.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = $i(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 === '"' ? rt : Ni, 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;
2276
2276
  }
2277
- function sn(e, t) {
2278
- for (var n = ie.repeat(" ", t), r = 0, a = -1, i = "", o, l = e.length; r < l; )
2277
+ function ln(e, t) {
2278
+ for (var n = ie.repeat(" ", t), r = 0, a = -1, i = "", o, s = e.length; r < s; )
2279
2279
  a = e.indexOf(`
2280
- `, r), a === -1 ? (o = e.slice(r), r = l) : (o = e.slice(r, a + 1), r = a + 1), o.length && o !== `
2280
+ `, r), a === -1 ? (o = e.slice(r), r = s) : (o = e.slice(r, a + 1), r = a + 1), o.length && o !== `
2281
2281
  ` && (i += n), i += o;
2282
2282
  return i;
2283
2283
  }
@@ -2285,7 +2285,7 @@ function $t(e, t) {
2285
2285
  return `
2286
2286
  ` + ie.repeat(" ", e.indent * t);
2287
2287
  }
2288
- function Oi(e, t) {
2288
+ function Ei(e, t) {
2289
2289
  var n, r, a;
2290
2290
  for (n = 0, r = e.implicitTypes.length; n < r; n += 1)
2291
2291
  if (a = e.implicitTypes[n], a.resolve(t))
@@ -2296,10 +2296,10 @@ function mt(e) {
2296
2296
  return e === pi || e === ci;
2297
2297
  }
2298
2298
  function at(e) {
2299
- return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Kt || 65536 <= e && e <= 1114111;
2299
+ return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Bt || 65536 <= e && e <= 1114111;
2300
2300
  }
2301
2301
  function un(e) {
2302
- return at(e) && e !== Kt && e !== di && e !== nt;
2302
+ return at(e) && e !== Bt && e !== di && e !== nt;
2303
2303
  }
2304
2304
  function cn(e, t, n) {
2305
2305
  var r = un(e), a = r && !mt(e);
@@ -2308,13 +2308,13 @@ function cn(e, t, n) {
2308
2308
  (n ? (
2309
2309
  // c = flow-in
2310
2310
  r
2311
- ) : r && e !== sr && e !== ur && e !== cr && e !== dr && e !== pr) && e !== At && !(t === ft && !a) || un(t) && !mt(t) && e === At || t === ft && a
2311
+ ) : r && e !== lr && e !== ur && e !== cr && e !== dr && e !== pr) && e !== At && !(t === ft && !a) || un(t) && !mt(t) && e === At || t === ft && a
2312
2312
  );
2313
2313
  }
2314
- function Mi(e) {
2315
- return at(e) && e !== Kt && !mt(e) && e !== bi && e !== wi && e !== ft && e !== sr && e !== ur && e !== cr && e !== dr && e !== pr && e !== At && e !== yi && e !== vi && e !== fi && e !== Si && e !== Ci && e !== ki && e !== hi && e !== mi && e !== gi && e !== _i && e !== xi;
2314
+ function Oi(e) {
2315
+ return at(e) && e !== Bt && !mt(e) && e !== bi && e !== wi && e !== ft && e !== lr && e !== ur && e !== cr && e !== dr && e !== pr && e !== At && e !== yi && e !== vi && e !== fi && e !== xi && e !== Ci && e !== ki && e !== hi && e !== mi && e !== gi && e !== _i && e !== Ii;
2316
2316
  }
2317
- function Ei(e) {
2317
+ function Mi(e) {
2318
2318
  return !mt(e) && e !== ft;
2319
2319
  }
2320
2320
  function et(e, t) {
@@ -2325,44 +2325,44 @@ function fr(e) {
2325
2325
  var t = /^\n* /;
2326
2326
  return t.test(e);
2327
2327
  }
2328
- var mr = 1, Tt = 2, gr = 3, yr = 4, Ve = 5;
2329
- function qi(e, t, n, r, a, i, o, l) {
2330
- var s, u = 0, p = null, c = !1, y = !1, f = r !== -1, x = -1, T = Mi(et(e, 0)) && Ei(et(e, e.length - 1));
2328
+ var mr = 1, Tt = 2, gr = 3, yr = 4, Re = 5;
2329
+ function Fi(e, t, n, r, a, i, o, s) {
2330
+ var l, u = 0, p = null, c = !1, y = !1, f = r !== -1, I = -1, T = Oi(et(e, 0)) && Mi(et(e, e.length - 1));
2331
2331
  if (t || o)
2332
- for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
2333
- if (u = et(e, s), !at(u))
2334
- return Ve;
2335
- T = T && cn(u, p, l), p = u;
2332
+ for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
2333
+ if (u = et(e, l), !at(u))
2334
+ return Re;
2335
+ T = T && cn(u, p, s), p = u;
2336
2336
  }
2337
2337
  else {
2338
- for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
2339
- if (u = et(e, s), u === nt)
2338
+ for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
2339
+ if (u = et(e, l), u === nt)
2340
2340
  c = !0, f && (y = y || // Foldable line = too long, and not more-indented.
2341
- s - x - 1 > r && e[x + 1] !== " ", x = s);
2341
+ l - I - 1 > r && e[I + 1] !== " ", I = l);
2342
2342
  else if (!at(u))
2343
- return Ve;
2344
- T = T && cn(u, p, l), p = u;
2343
+ return Re;
2344
+ T = T && cn(u, p, s), p = u;
2345
2345
  }
2346
- y = y || f && s - x - 1 > r && e[x + 1] !== " ";
2346
+ y = y || f && l - I - 1 > r && e[I + 1] !== " ";
2347
2347
  }
2348
- return !c && !y ? T && !o && !a(e) ? mr : i === rt ? Ve : Tt : n > 9 && fr(e) ? Ve : o ? i === rt ? Ve : Tt : y ? yr : gr;
2348
+ return !c && !y ? T && !o && !a(e) ? mr : i === rt ? Re : Tt : n > 9 && fr(e) ? Re : o ? i === rt ? Re : Tt : y ? yr : gr;
2349
2349
  }
2350
- function Fi(e, t, n, r, a) {
2350
+ function qi(e, t, n, r, a) {
2351
2351
  e.dump = function() {
2352
2352
  if (t.length === 0)
2353
2353
  return e.quotingType === rt ? '""' : "''";
2354
- if (!e.noCompatMode && (Ii.indexOf(t) !== -1 || Ai.test(t)))
2354
+ if (!e.noCompatMode && (Si.indexOf(t) !== -1 || Ai.test(t)))
2355
2355
  return e.quotingType === rt ? '"' + t + '"' : "'" + t + "'";
2356
- 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;
2357
- function s(u) {
2358
- return Oi(e, u);
2356
+ var i = e.indent * Math.max(1, n), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - i), s = r || e.flowLevel > -1 && n >= e.flowLevel;
2357
+ function l(u) {
2358
+ return Ei(e, u);
2359
2359
  }
2360
- switch (qi(
2360
+ switch (Fi(
2361
2361
  t,
2362
- l,
2362
+ s,
2363
2363
  e.indent,
2364
2364
  o,
2365
- s,
2365
+ l,
2366
2366
  e.quotingType,
2367
2367
  e.forceQuotes && !r,
2368
2368
  a
@@ -2372,11 +2372,11 @@ function Fi(e, t, n, r, a) {
2372
2372
  case Tt:
2373
2373
  return "'" + t.replace(/'/g, "''") + "'";
2374
2374
  case gr:
2375
- return "|" + dn(t, e.indent) + pn(sn(t, i));
2375
+ return "|" + dn(t, e.indent) + pn(ln(t, i));
2376
2376
  case yr:
2377
- return ">" + dn(t, e.indent) + pn(sn(Bi(t, o), i));
2378
- case Ve:
2379
- return '"' + Ki(t) + '"';
2377
+ return ">" + dn(t, e.indent) + pn(ln(Ki(t, o), i));
2378
+ case Re:
2379
+ return '"' + Bi(t) + '"';
2380
2380
  default:
2381
2381
  throw new fe("impossible error: invalid scalar style");
2382
2382
  }
@@ -2394,75 +2394,75 @@ function pn(e) {
2394
2394
  return e[e.length - 1] === `
2395
2395
  ` ? e.slice(0, -1) : e;
2396
2396
  }
2397
- function Bi(e, t) {
2397
+ function Ki(e, t) {
2398
2398
  for (var n = /(\n+)([^\n]*)/g, r = function() {
2399
2399
  var u = e.indexOf(`
2400
2400
  `);
2401
2401
  return u = u !== -1 ? u : e.length, n.lastIndex = u, fn(e.slice(0, u), t);
2402
2402
  }(), a = e[0] === `
2403
2403
  ` || e[0] === " ", i, o; o = n.exec(e); ) {
2404
- var l = o[1], s = o[2];
2405
- i = s[0] === " ", r += l + (!a && !i && s !== "" ? `
2406
- ` : "") + fn(s, t), a = i;
2404
+ var s = o[1], l = o[2];
2405
+ i = l[0] === " ", r += s + (!a && !i && l !== "" ? `
2406
+ ` : "") + fn(l, t), a = i;
2407
2407
  }
2408
2408
  return r;
2409
2409
  }
2410
2410
  function fn(e, t) {
2411
2411
  if (e === "" || e[0] === " ")
2412
2412
  return e;
2413
- for (var n = / [^ ]/g, r, a = 0, i, o = 0, l = 0, s = ""; r = n.exec(e); )
2414
- l = r.index, l - a > t && (i = o > a ? o : l, s += `
2415
- ` + e.slice(a, i), a = i + 1), o = l;
2416
- return s += `
2417
- `, e.length - a > t && o > a ? s += e.slice(a, o) + `
2418
- ` + e.slice(o + 1) : s += e.slice(a), s.slice(1);
2419
- }
2420
- function Ki(e) {
2413
+ for (var n = / [^ ]/g, r, a = 0, i, o = 0, s = 0, l = ""; r = n.exec(e); )
2414
+ s = r.index, s - a > t && (i = o > a ? o : s, l += `
2415
+ ` + e.slice(a, i), a = i + 1), o = s;
2416
+ return l += `
2417
+ `, e.length - a > t && o > a ? l += e.slice(a, o) + `
2418
+ ` + e.slice(o + 1) : l += e.slice(a), l.slice(1);
2419
+ }
2420
+ function Bi(e) {
2421
2421
  for (var t = "", n = 0, r, a = 0; a < e.length; n >= 65536 ? a += 2 : a++)
2422
2422
  n = et(e, a), r = pe[n], !r && at(n) ? (t += e[a], n >= 65536 && (t += e[a + 1])) : t += r || Ti(n);
2423
2423
  return t;
2424
2424
  }
2425
2425
  function Li(e, t, n) {
2426
- var r = "", a = e.tag, i, o, l;
2426
+ var r = "", a = e.tag, i, o, s;
2427
2427
  for (i = 0, o = n.length; i < o; i += 1)
2428
- l = n[i], e.replacer && (l = e.replacer.call(n, String(i), l)), (Te(e, t, l, !1, !1) || typeof l > "u" && Te(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
2428
+ s = n[i], e.replacer && (s = e.replacer.call(n, String(i), s)), (Te(e, t, s, !1, !1) || typeof s > "u" && Te(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
2429
2429
  e.tag = a, e.dump = "[" + r + "]";
2430
2430
  }
2431
2431
  function mn(e, t, n, r) {
2432
- var a = "", i = e.tag, o, l, s;
2433
- for (o = 0, l = n.length; o < l; o += 1)
2434
- s = n[o], e.replacer && (s = e.replacer.call(n, String(o), s)), (Te(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && Te(e, t + 1, null, !0, !0, !1, !0)) && ((!r || a !== "") && (a += $t(e, t)), e.dump && nt === e.dump.charCodeAt(0) ? a += "-" : a += "- ", a += e.dump);
2432
+ var a = "", i = e.tag, o, s, l;
2433
+ for (o = 0, s = n.length; o < s; o += 1)
2434
+ l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (Te(e, t + 1, l, !0, !0, !1, !0) || typeof l > "u" && Te(e, t + 1, null, !0, !0, !1, !0)) && ((!r || a !== "") && (a += $t(e, t)), e.dump && nt === e.dump.charCodeAt(0) ? a += "-" : a += "- ", a += e.dump);
2435
2435
  e.tag = i, e.dump = a || "[]";
2436
2436
  }
2437
2437
  function Ui(e, t, n) {
2438
- var r = "", a = e.tag, i = Object.keys(n), o, l, s, u, p;
2439
- for (o = 0, l = i.length; o < l; o += 1)
2440
- p = "", r !== "" && (p += ", "), e.condenseFlow && (p += '"'), s = i[o], u = n[s], e.replacer && (u = e.replacer.call(n, s, u)), Te(e, t, s, !1, !1) && (e.dump.length > 1024 && (p += "? "), p += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Te(e, t, u, !1, !1) && (p += e.dump, r += p));
2438
+ var r = "", a = e.tag, i = Object.keys(n), o, s, l, u, p;
2439
+ for (o = 0, s = i.length; o < s; o += 1)
2440
+ p = "", r !== "" && (p += ", "), e.condenseFlow && (p += '"'), l = i[o], u = n[l], e.replacer && (u = e.replacer.call(n, l, u)), Te(e, t, l, !1, !1) && (e.dump.length > 1024 && (p += "? "), p += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Te(e, t, u, !1, !1) && (p += e.dump, r += p));
2441
2441
  e.tag = a, e.dump = "{" + r + "}";
2442
2442
  }
2443
- function Ri(e, t, n, r) {
2444
- var a = "", i = e.tag, o = Object.keys(n), l, s, u, p, c, y;
2443
+ function Pi(e, t, n, r) {
2444
+ var a = "", i = e.tag, o = Object.keys(n), s, l, u, p, c, y;
2445
2445
  if (e.sortKeys === !0)
2446
2446
  o.sort();
2447
2447
  else if (typeof e.sortKeys == "function")
2448
2448
  o.sort(e.sortKeys);
2449
2449
  else if (e.sortKeys)
2450
2450
  throw new fe("sortKeys must be a boolean or a function");
2451
- for (l = 0, s = o.length; l < s; l += 1)
2452
- y = "", (!r || a !== "") && (y += $t(e, t)), u = o[l], p = n[u], e.replacer && (p = e.replacer.call(n, u, p)), Te(e, t + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && nt === e.dump.charCodeAt(0) ? y += "?" : y += "? "), y += e.dump, c && (y += $t(e, t)), Te(e, t + 1, p, !0, c) && (e.dump && nt === e.dump.charCodeAt(0) ? y += ":" : y += ": ", y += e.dump, a += y));
2451
+ for (s = 0, l = o.length; s < l; s += 1)
2452
+ y = "", (!r || a !== "") && (y += $t(e, t)), u = o[s], p = n[u], e.replacer && (p = e.replacer.call(n, u, p)), Te(e, t + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && nt === e.dump.charCodeAt(0) ? y += "?" : y += "? "), y += e.dump, c && (y += $t(e, t)), Te(e, t + 1, p, !0, c) && (e.dump && nt === e.dump.charCodeAt(0) ? y += ":" : y += ": ", y += e.dump, a += y));
2453
2453
  e.tag = i, e.dump = a || "{}";
2454
2454
  }
2455
2455
  function gn(e, t, n) {
2456
- var r, a, i, o, l, s;
2456
+ var r, a, i, o, s, l;
2457
2457
  for (a = n ? e.explicitTypes : e.implicitTypes, i = 0, o = a.length; i < o; i += 1)
2458
- if (l = a[i], (l.instanceOf || l.predicate) && (!l.instanceOf || typeof t == "object" && t instanceof l.instanceOf) && (!l.predicate || l.predicate(t))) {
2459
- if (n ? l.multi && l.representName ? e.tag = l.representName(t) : e.tag = l.tag : e.tag = "?", l.represent) {
2460
- if (s = e.styleMap[l.tag] || l.defaultStyle, ir.call(l.represent) === "[object Function]")
2461
- r = l.represent(t, s);
2462
- else if (lr.call(l.represent, s))
2463
- r = l.represent[s](t, s);
2458
+ if (s = a[i], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof t == "object" && t instanceof s.instanceOf) && (!s.predicate || s.predicate(t))) {
2459
+ if (n ? s.multi && s.representName ? e.tag = s.representName(t) : e.tag = s.tag : e.tag = "?", s.represent) {
2460
+ if (l = e.styleMap[s.tag] || s.defaultStyle, ir.call(s.represent) === "[object Function]")
2461
+ r = s.represent(t, l);
2462
+ else if (sr.call(s.represent, l))
2463
+ r = s.represent[l](t, l);
2464
2464
  else
2465
- throw new fe("!<" + l.tag + '> tag resolver accepts not "' + s + '" style');
2465
+ throw new fe("!<" + s.tag + '> tag resolver accepts not "' + l + '" style');
2466
2466
  e.dump = r;
2467
2467
  }
2468
2468
  return !0;
@@ -2471,22 +2471,22 @@ function gn(e, t, n) {
2471
2471
  }
2472
2472
  function Te(e, t, n, r, a, i, o) {
2473
2473
  e.tag = null, e.dump = n, gn(e, n, !1) || gn(e, n, !0);
2474
- var l = ir.call(e.dump), s = r, u;
2474
+ var s = ir.call(e.dump), l = r, u;
2475
2475
  r && (r = e.flowLevel < 0 || e.flowLevel > t);
2476
- var p = l === "[object Object]" || l === "[object Array]", c, y;
2476
+ var p = s === "[object Object]" || s === "[object Array]", c, y;
2477
2477
  if (p && (c = e.duplicates.indexOf(n), y = c !== -1), (e.tag !== null && e.tag !== "?" || y || e.indent !== 2 && t > 0) && (a = !1), y && e.usedDuplicates[c])
2478
2478
  e.dump = "*ref_" + c;
2479
2479
  else {
2480
- if (p && y && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), l === "[object Object]")
2481
- r && Object.keys(e.dump).length !== 0 ? (Ri(e, t, e.dump, a), y && (e.dump = "&ref_" + c + e.dump)) : (Ui(e, t, e.dump), y && (e.dump = "&ref_" + c + " " + e.dump));
2482
- else if (l === "[object Array]")
2480
+ if (p && y && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), s === "[object Object]")
2481
+ r && Object.keys(e.dump).length !== 0 ? (Pi(e, t, e.dump, a), y && (e.dump = "&ref_" + c + e.dump)) : (Ui(e, t, e.dump), y && (e.dump = "&ref_" + c + " " + e.dump));
2482
+ else if (s === "[object Array]")
2483
2483
  r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? mn(e, t - 1, e.dump, a) : mn(e, t, e.dump, a), y && (e.dump = "&ref_" + c + e.dump)) : (Li(e, t, e.dump), y && (e.dump = "&ref_" + c + " " + e.dump));
2484
- else if (l === "[object String]")
2485
- e.tag !== "?" && Fi(e, e.dump, t, i, s);
2484
+ else if (s === "[object String]")
2485
+ e.tag !== "?" && qi(e, e.dump, t, i, l);
2486
2486
  else {
2487
- if (l === "[object Undefined]" || e.skipInvalid)
2487
+ if (s === "[object Undefined]" || e.skipInvalid)
2488
2488
  return !1;
2489
- throw new fe("unacceptable kind of an object to dump " + l);
2489
+ throw new fe("unacceptable kind of an object to dump " + s);
2490
2490
  }
2491
2491
  e.tag !== null && e.tag !== "?" && (u = encodeURI(
2492
2492
  e.tag[0] === "!" ? e.tag.slice(1) : e.tag
@@ -2494,33 +2494,33 @@ function Te(e, t, n, r, a, i, o) {
2494
2494
  }
2495
2495
  return !0;
2496
2496
  }
2497
- function Pi(e, t) {
2497
+ function Vi(e, t) {
2498
2498
  var n = [], r = [], a, i;
2499
- for (jt(e, n, r), a = 0, i = r.length; a < i; a += 1)
2499
+ for (Nt(e, n, r), a = 0, i = r.length; a < i; a += 1)
2500
2500
  t.duplicates.push(n[r[a]]);
2501
2501
  t.usedDuplicates = new Array(i);
2502
2502
  }
2503
- function jt(e, t, n) {
2503
+ function Nt(e, t, n) {
2504
2504
  var r, a, i;
2505
2505
  if (e !== null && typeof e == "object")
2506
2506
  if (a = t.indexOf(e), a !== -1)
2507
2507
  n.indexOf(a) === -1 && n.push(a);
2508
2508
  else if (t.push(e), Array.isArray(e))
2509
2509
  for (a = 0, i = e.length; a < i; a += 1)
2510
- jt(e[a], t, n);
2510
+ Nt(e[a], t, n);
2511
2511
  else
2512
2512
  for (r = Object.keys(e), a = 0, i = r.length; a < i; a += 1)
2513
- jt(e[r[a]], t, n);
2513
+ Nt(e[r[a]], t, n);
2514
2514
  }
2515
- function Vi(e, t) {
2515
+ function Ri(e, t) {
2516
2516
  t = t || {};
2517
- var n = new Ni(t);
2518
- n.noRefs || Pi(e, n);
2517
+ var n = new ji(t);
2518
+ n.noRefs || Vi(e, n);
2519
2519
  var r = e;
2520
2520
  return n.replacer && (r = n.replacer.call({ "": r }, "", r)), Te(n, 0, r, !0, !0) ? n.dump + `
2521
2521
  ` : "";
2522
2522
  }
2523
- var Di = Vi, zi = {
2523
+ var Di = Ri, zi = {
2524
2524
  dump: Di
2525
2525
  };
2526
2526
  function Lt(e, t) {
@@ -2528,37 +2528,37 @@ function Lt(e, t) {
2528
2528
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
2529
2529
  };
2530
2530
  }
2531
- var Gi = ce, Hi = On, Ji = Fn, Wi = Rn, Yi = Pn, Zi = qt, Qi = or.load, Xi = or.loadAll, el = zi.dump, tl = fe, nl = {
2531
+ var Gi = ce, Hi = En, Ji = qn, Zi = Pn, Wi = Vn, Yi = Ft, Qi = or.load, Xi = or.loadAll, es = zi.dump, ts = fe, ns = {
2532
2532
  binary: Hn,
2533
2533
  float: Un,
2534
- map: qn,
2535
- null: Bn,
2536
- pairs: Wn,
2537
- set: Yn,
2534
+ map: Fn,
2535
+ null: Kn,
2536
+ pairs: Zn,
2537
+ set: Wn,
2538
2538
  timestamp: zn,
2539
- bool: Kn,
2539
+ bool: Bn,
2540
2540
  int: Ln,
2541
2541
  merge: Gn,
2542
2542
  omap: Jn,
2543
- seq: En,
2544
- str: Mn
2545
- }, rl = Lt("safeLoad", "load"), al = Lt("safeLoadAll", "loadAll"), ol = Lt("safeDump", "dump"), il = {
2543
+ seq: Mn,
2544
+ str: On
2545
+ }, rs = Lt("safeLoad", "load"), as = Lt("safeLoadAll", "loadAll"), os = Lt("safeDump", "dump"), is = {
2546
2546
  Type: Gi,
2547
2547
  Schema: Hi,
2548
2548
  FAILSAFE_SCHEMA: Ji,
2549
- JSON_SCHEMA: Wi,
2550
- CORE_SCHEMA: Yi,
2551
- DEFAULT_SCHEMA: Zi,
2549
+ JSON_SCHEMA: Zi,
2550
+ CORE_SCHEMA: Wi,
2551
+ DEFAULT_SCHEMA: Yi,
2552
2552
  load: Qi,
2553
2553
  loadAll: Xi,
2554
- dump: el,
2555
- YAMLException: tl,
2556
- types: nl,
2557
- safeLoad: rl,
2558
- safeLoadAll: al,
2559
- safeDump: ol
2554
+ dump: es,
2555
+ YAMLException: ts,
2556
+ types: ns,
2557
+ safeLoad: rs,
2558
+ safeLoadAll: as,
2559
+ safeDump: os
2560
2560
  };
2561
- const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2561
+ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2562
2562
  __name: "YamlCodeBlock",
2563
2563
  props: {
2564
2564
  /** A record to indicate the entity's configuration, used to populate the YAML code block */
@@ -2570,11 +2570,11 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2570
2570
  setup(e) {
2571
2571
  const t = e, n = w(() => {
2572
2572
  const r = Object.fromEntries(Object.entries(t.yamlRecord).filter(([, a]) => a !== null && a !== "" && (Array.isArray(a) ? a.length !== 0 : !0)));
2573
- return Object.keys(r).length === 0 && r.constructor === Object ? "" : il.dump(r).trim();
2573
+ return Object.keys(r).length === 0 && r.constructor === Object ? "" : is.dump(r).trim();
2574
2574
  });
2575
2575
  return (r, a) => {
2576
- const i = V("KCodeBlock");
2577
- return m(), $("div", ll, [
2576
+ const i = R("KCodeBlock");
2577
+ return m(), $("div", ss, [
2578
2578
  t.yamlRecord ? (m(), D(i, {
2579
2579
  key: 0,
2580
2580
  id: "yaml-codeblock",
@@ -2585,13 +2585,13 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2585
2585
  ]);
2586
2586
  };
2587
2587
  }
2588
- }), sl = {
2588
+ }), ls = {
2589
2589
  key: 0,
2590
2590
  class: "config-card-display-form"
2591
- }, ul = ["data-testid"], cl = {
2591
+ }, us = ["data-testid"], cs = {
2592
2592
  key: 0,
2593
2593
  class: "config-card-prop-section-title"
2594
- }, dl = /* @__PURE__ */ X({
2594
+ }, ds = /* @__PURE__ */ X({
2595
2595
  __name: "ConfigCardDisplay",
2596
2596
  props: {
2597
2597
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2630,24 +2630,24 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2630
2630
  }
2631
2631
  },
2632
2632
  setup(e) {
2633
- const t = e, n = Nt(), { i18n: { t: r } } = le.useI18n(), a = (o) => !!(o.tooltip || n[`${o.key}-label-tooltip`]), i = w(() => {
2633
+ const t = e, n = jt(), { i18n: { t: r } } = se.useI18n(), a = (o) => !!(o.tooltip || n[`${o.key}-label-tooltip`]), i = w(() => {
2634
2634
  if (!t.record)
2635
2635
  return t.record;
2636
2636
  const o = JSON.parse(JSON.stringify(t.record));
2637
2637
  return delete o.created_at, delete o.updated_at, o;
2638
2638
  });
2639
- return (o, l) => (m(), $(be, null, [
2640
- e.format === "structured" ? (m(), $("div", sl, [
2641
- (m(!0), $(be, null, ve(e.propListTypes, (s) => (m(), $("div", {
2642
- key: `config-card-details-${s}-props`,
2643
- class: Ee(`config-card-details-${s}-props`),
2644
- "data-testid": `config-card-details-${s}-props`
2639
+ return (o, s) => (m(), $(be, null, [
2640
+ e.format === "structured" ? (m(), $("div", ls, [
2641
+ (m(!0), $(be, null, ve(e.propListTypes, (l) => (m(), $("div", {
2642
+ key: `config-card-details-${l}-props`,
2643
+ class: Me(`config-card-details-${l}-props`),
2644
+ "data-testid": `config-card-details-${l}-props`
2645
2645
  }, [
2646
- s !== "basic" ? (m(), $("div", cl, F(s === "advanced" ? g(r)("baseConfigCard.sections.advanced") : g(r)("baseConfigCard.sections.plugin")), 1)) : J("", !0),
2647
- (m(!0), $(be, null, ve(e.propertyCollections[s], (u) => (m(), D($n, {
2646
+ l !== "basic" ? (m(), $("div", cs, q(l === "advanced" ? g(r)("baseConfigCard.sections.advanced") : g(r)("baseConfigCard.sections.plugin")), 1)) : J("", !0),
2647
+ (m(!0), $(be, null, ve(e.propertyCollections[l], (u) => (m(), D($n, {
2648
2648
  key: u.key,
2649
2649
  item: u
2650
- }, Ke({
2650
+ }, Be({
2651
2651
  label: v(() => [
2652
2652
  ne(o.$slots, `${u.key}-label`, { row: u }, void 0, !0)
2653
2653
  ]),
@@ -2667,7 +2667,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2667
2667
  key: "0"
2668
2668
  } : void 0
2669
2669
  ]), 1032, ["item"]))), 128))
2670
- ], 10, ul))), 128))
2670
+ ], 10, us))), 128))
2671
2671
  ])) : J("", !0),
2672
2672
  e.format === "json" && t.record ? (m(), D(Tn, {
2673
2673
  key: 1,
@@ -2682,18 +2682,18 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2682
2682
  }, null, 8, ["yaml-record"])) : J("", !0)
2683
2683
  ], 64));
2684
2684
  }
2685
- }), pl = /* @__PURE__ */ Ce(dl, [["__scopeId", "data-v-2052238b"]]), xe = "24px", ot = (e, t) => {
2685
+ }), ps = /* @__PURE__ */ Ce(ds, [["__scopeId", "data-v-2052238b"]]), Ie = "24px", ot = (e, t) => {
2686
2686
  const n = e.__vccOpts || e;
2687
2687
  for (const [r, a] of t)
2688
2688
  n[r] = a;
2689
2689
  return n;
2690
- }, fl = (e) => (Je("data-v-f68c7837"), e = e(), We(), e), ml = ["aria-hidden"], gl = {
2690
+ }, fs = (e) => (Je("data-v-f68c7837"), e = e(), Ze(), e), ms = ["aria-hidden"], gs = {
2691
2691
  key: 0,
2692
2692
  "data-testid": "kui-icon-svg-title"
2693
- }, yl = /* @__PURE__ */ fl(() => /* @__PURE__ */ L("path", {
2693
+ }, ys = /* @__PURE__ */ fs(() => /* @__PURE__ */ L("path", {
2694
2694
  d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
2695
2695
  fill: "currentColor"
2696
- }, null, -1)), hl = /* @__PURE__ */ X({
2696
+ }, null, -1)), hs = /* @__PURE__ */ X({
2697
2697
  __name: "AddIcon",
2698
2698
  props: {
2699
2699
  /** The accessibility text provided to screen readers */
@@ -2724,7 +2724,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2724
2724
  size: {
2725
2725
  type: [Number, String],
2726
2726
  required: !1,
2727
- default: xe,
2727
+ default: Ie,
2728
2728
  // if setting to the imported const fails, just pass a number of 24 as the default.
2729
2729
  validator: (e) => {
2730
2730
  if (typeof e == "number" && e > 0)
@@ -2753,7 +2753,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2753
2753
  if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
2754
2754
  return `${i}px`;
2755
2755
  }
2756
- return xe;
2756
+ return Ie;
2757
2757
  }), r = w(() => ({
2758
2758
  boxSizing: "border-box",
2759
2759
  color: t.color,
@@ -2762,7 +2762,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2762
2762
  lineHeight: "0",
2763
2763
  width: n.value
2764
2764
  }));
2765
- return (a, i) => (m(), D(Se(e.as), {
2765
+ return (a, i) => (m(), D(xe(e.as), {
2766
2766
  "aria-hidden": e.decorative ? "true" : void 0,
2767
2767
  class: "kui-icon add-icon",
2768
2768
  "data-testid": "kui-icon-wrapper-add-icon",
@@ -2779,20 +2779,20 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2779
2779
  width: "100%",
2780
2780
  xmlns: "http://www.w3.org/2000/svg"
2781
2781
  }, [
2782
- e.title ? (m(), $("title", gl, F(e.title), 1)) : J("", !0),
2783
- yl
2784
- ], 8, ml))
2782
+ e.title ? (m(), $("title", gs, q(e.title), 1)) : J("", !0),
2783
+ ys
2784
+ ], 8, ms))
2785
2785
  ]),
2786
2786
  _: 1
2787
2787
  }, 8, ["aria-hidden", "style"]));
2788
2788
  }
2789
- }), vl = /* @__PURE__ */ ot(hl, [["__scopeId", "data-v-f68c7837"]]), bl = (e) => (Je("data-v-9af646cc"), e = e(), We(), e), Cl = ["aria-hidden"], kl = {
2789
+ }), vs = /* @__PURE__ */ ot(hs, [["__scopeId", "data-v-f68c7837"]]), bs = (e) => (Je("data-v-9af646cc"), e = e(), Ze(), e), Cs = ["aria-hidden"], ks = {
2790
2790
  key: 0,
2791
2791
  "data-testid": "kui-icon-svg-title"
2792
- }, wl = /* @__PURE__ */ bl(() => /* @__PURE__ */ L("path", {
2792
+ }, ws = /* @__PURE__ */ bs(() => /* @__PURE__ */ L("path", {
2793
2793
  d: "M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",
2794
2794
  fill: "currentColor"
2795
- }, null, -1)), _l = /* @__PURE__ */ X({
2795
+ }, null, -1)), _s = /* @__PURE__ */ X({
2796
2796
  __name: "BookIcon",
2797
2797
  props: {
2798
2798
  /** The accessibility text provided to screen readers */
@@ -2823,7 +2823,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2823
2823
  size: {
2824
2824
  type: [Number, String],
2825
2825
  required: !1,
2826
- default: xe,
2826
+ default: Ie,
2827
2827
  // if setting to the imported const fails, just pass a number of 24 as the default.
2828
2828
  validator: (e) => {
2829
2829
  if (typeof e == "number" && e > 0)
@@ -2852,7 +2852,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2852
2852
  if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
2853
2853
  return `${i}px`;
2854
2854
  }
2855
- return xe;
2855
+ return Ie;
2856
2856
  }), r = w(() => ({
2857
2857
  boxSizing: "border-box",
2858
2858
  color: t.color,
@@ -2861,7 +2861,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2861
2861
  lineHeight: "0",
2862
2862
  width: n.value
2863
2863
  }));
2864
- return (a, i) => (m(), D(Se(e.as), {
2864
+ return (a, i) => (m(), D(xe(e.as), {
2865
2865
  "aria-hidden": e.decorative ? "true" : void 0,
2866
2866
  class: "kui-icon book-icon",
2867
2867
  "data-testid": "kui-icon-wrapper-book-icon",
@@ -2878,20 +2878,20 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2878
2878
  width: "100%",
2879
2879
  xmlns: "http://www.w3.org/2000/svg"
2880
2880
  }, [
2881
- e.title ? (m(), $("title", kl, F(e.title), 1)) : J("", !0),
2882
- wl
2883
- ], 8, Cl))
2881
+ e.title ? (m(), $("title", ks, q(e.title), 1)) : J("", !0),
2882
+ ws
2883
+ ], 8, Cs))
2884
2884
  ]),
2885
2885
  _: 1
2886
2886
  }, 8, ["aria-hidden", "style"]));
2887
2887
  }
2888
- }), xl = /* @__PURE__ */ ot(_l, [["__scopeId", "data-v-9af646cc"]]), Sl = (e) => (Je("data-v-84c4811e"), e = e(), We(), e), Il = ["aria-hidden"], Al = {
2888
+ }), Is = /* @__PURE__ */ ot(_s, [["__scopeId", "data-v-9af646cc"]]), xs = (e) => (Je("data-v-84c4811e"), e = e(), Ze(), e), Ss = ["aria-hidden"], As = {
2889
2889
  key: 0,
2890
2890
  "data-testid": "kui-icon-svg-title"
2891
- }, $l = /* @__PURE__ */ Sl(() => /* @__PURE__ */ L("path", {
2891
+ }, $s = /* @__PURE__ */ xs(() => /* @__PURE__ */ L("path", {
2892
2892
  d: "M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",
2893
2893
  fill: "currentColor"
2894
- }, null, -1)), Tl = /* @__PURE__ */ X({
2894
+ }, null, -1)), Ts = /* @__PURE__ */ X({
2895
2895
  __name: "ChevronDownIcon",
2896
2896
  props: {
2897
2897
  /** The accessibility text provided to screen readers */
@@ -2922,7 +2922,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2922
2922
  size: {
2923
2923
  type: [Number, String],
2924
2924
  required: !1,
2925
- default: xe,
2925
+ default: Ie,
2926
2926
  // if setting to the imported const fails, just pass a number of 24 as the default.
2927
2927
  validator: (e) => {
2928
2928
  if (typeof e == "number" && e > 0)
@@ -2951,7 +2951,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2951
2951
  if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
2952
2952
  return `${i}px`;
2953
2953
  }
2954
- return xe;
2954
+ return Ie;
2955
2955
  }), r = w(() => ({
2956
2956
  boxSizing: "border-box",
2957
2957
  color: t.color,
@@ -2960,7 +2960,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2960
2960
  lineHeight: "0",
2961
2961
  width: n.value
2962
2962
  }));
2963
- return (a, i) => (m(), D(Se(e.as), {
2963
+ return (a, i) => (m(), D(xe(e.as), {
2964
2964
  "aria-hidden": e.decorative ? "true" : void 0,
2965
2965
  class: "kui-icon chevron-down-icon",
2966
2966
  "data-testid": "kui-icon-wrapper-chevron-down-icon",
@@ -2977,20 +2977,20 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2977
2977
  width: "100%",
2978
2978
  xmlns: "http://www.w3.org/2000/svg"
2979
2979
  }, [
2980
- e.title ? (m(), $("title", Al, F(e.title), 1)) : J("", !0),
2981
- $l
2982
- ], 8, Il))
2980
+ e.title ? (m(), $("title", As, q(e.title), 1)) : J("", !0),
2981
+ $s
2982
+ ], 8, Ss))
2983
2983
  ]),
2984
2984
  _: 1
2985
2985
  }, 8, ["aria-hidden", "style"]));
2986
2986
  }
2987
- }), jl = /* @__PURE__ */ ot(Tl, [["__scopeId", "data-v-84c4811e"]]), Nl = (e) => (Je("data-v-26ad8dc6"), e = e(), We(), e), Ol = ["aria-hidden"], Ml = {
2987
+ }), Ns = /* @__PURE__ */ ot(Ts, [["__scopeId", "data-v-84c4811e"]]), js = (e) => (Je("data-v-26ad8dc6"), e = e(), Ze(), e), Es = ["aria-hidden"], Os = {
2988
2988
  key: 0,
2989
2989
  "data-testid": "kui-icon-svg-title"
2990
- }, El = /* @__PURE__ */ Nl(() => /* @__PURE__ */ L("path", {
2990
+ }, Ms = /* @__PURE__ */ js(() => /* @__PURE__ */ L("path", {
2991
2991
  d: "M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",
2992
2992
  fill: "currentColor"
2993
- }, null, -1)), ql = /* @__PURE__ */ X({
2993
+ }, null, -1)), Fs = /* @__PURE__ */ X({
2994
2994
  __name: "CloseIcon",
2995
2995
  props: {
2996
2996
  /** The accessibility text provided to screen readers */
@@ -3021,7 +3021,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3021
3021
  size: {
3022
3022
  type: [Number, String],
3023
3023
  required: !1,
3024
- default: xe,
3024
+ default: Ie,
3025
3025
  // if setting to the imported const fails, just pass a number of 24 as the default.
3026
3026
  validator: (e) => {
3027
3027
  if (typeof e == "number" && e > 0)
@@ -3050,7 +3050,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3050
3050
  if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
3051
3051
  return `${i}px`;
3052
3052
  }
3053
- return xe;
3053
+ return Ie;
3054
3054
  }), r = w(() => ({
3055
3055
  boxSizing: "border-box",
3056
3056
  color: t.color,
@@ -3059,7 +3059,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3059
3059
  lineHeight: "0",
3060
3060
  width: n.value
3061
3061
  }));
3062
- return (a, i) => (m(), D(Se(e.as), {
3062
+ return (a, i) => (m(), D(xe(e.as), {
3063
3063
  "aria-hidden": e.decorative ? "true" : void 0,
3064
3064
  class: "kui-icon close-icon",
3065
3065
  "data-testid": "kui-icon-wrapper-close-icon",
@@ -3076,20 +3076,20 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3076
3076
  width: "100%",
3077
3077
  xmlns: "http://www.w3.org/2000/svg"
3078
3078
  }, [
3079
- e.title ? (m(), $("title", Ml, F(e.title), 1)) : J("", !0),
3080
- El
3081
- ], 8, Ol))
3079
+ e.title ? (m(), $("title", Os, q(e.title), 1)) : J("", !0),
3080
+ Ms
3081
+ ], 8, Es))
3082
3082
  ]),
3083
3083
  _: 1
3084
3084
  }, 8, ["aria-hidden", "style"]));
3085
3085
  }
3086
- }), Fl = /* @__PURE__ */ ot(ql, [["__scopeId", "data-v-26ad8dc6"]]), Bl = (e) => (Je("data-v-d43c21f8"), e = e(), We(), e), Kl = ["aria-hidden"], Ll = {
3086
+ }), qs = /* @__PURE__ */ ot(Fs, [["__scopeId", "data-v-26ad8dc6"]]), Ks = (e) => (Je("data-v-d43c21f8"), e = e(), Ze(), e), Bs = ["aria-hidden"], Ls = {
3087
3087
  key: 0,
3088
3088
  "data-testid": "kui-icon-svg-title"
3089
- }, Ul = /* @__PURE__ */ Bl(() => /* @__PURE__ */ L("path", {
3089
+ }, Us = /* @__PURE__ */ Ks(() => /* @__PURE__ */ L("path", {
3090
3090
  d: "M12 20C11.45 20 10.9792 19.8042 10.5875 19.4125C10.1958 19.0208 10 18.55 10 18C10 17.45 10.1958 16.9792 10.5875 16.5875C10.9792 16.1958 11.45 16 12 16C12.55 16 13.0208 16.1958 13.4125 16.5875C13.8042 16.9792 14 17.45 14 18C14 18.55 13.8042 19.0208 13.4125 19.4125C13.0208 19.8042 12.55 20 12 20ZM12 14C11.45 14 10.9792 13.8042 10.5875 13.4125C10.1958 13.0208 10 12.55 10 12C10 11.45 10.1958 10.9792 10.5875 10.5875C10.9792 10.1958 11.45 10 12 10C12.55 10 13.0208 10.1958 13.4125 10.5875C13.8042 10.9792 14 11.45 14 12C14 12.55 13.8042 13.0208 13.4125 13.4125C13.0208 13.8042 12.55 14 12 14ZM12 8C11.45 8 10.9792 7.80417 10.5875 7.4125C10.1958 7.02083 10 6.55 10 6C10 5.45 10.1958 4.97917 10.5875 4.5875C10.9792 4.19583 11.45 4 12 4C12.55 4 13.0208 4.19583 13.4125 4.5875C13.8042 4.97917 14 5.45 14 6C14 6.55 13.8042 7.02083 13.4125 7.4125C13.0208 7.80417 12.55 8 12 8Z",
3091
3091
  fill: "currentColor"
3092
- }, null, -1)), Rl = /* @__PURE__ */ X({
3092
+ }, null, -1)), Ps = /* @__PURE__ */ X({
3093
3093
  __name: "MoreIcon",
3094
3094
  props: {
3095
3095
  /** The accessibility text provided to screen readers */
@@ -3120,7 +3120,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3120
3120
  size: {
3121
3121
  type: [Number, String],
3122
3122
  required: !1,
3123
- default: xe,
3123
+ default: Ie,
3124
3124
  // if setting to the imported const fails, just pass a number of 24 as the default.
3125
3125
  validator: (e) => {
3126
3126
  if (typeof e == "number" && e > 0)
@@ -3149,7 +3149,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3149
3149
  if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
3150
3150
  return `${i}px`;
3151
3151
  }
3152
- return xe;
3152
+ return Ie;
3153
3153
  }), r = w(() => ({
3154
3154
  boxSizing: "border-box",
3155
3155
  color: t.color,
@@ -3158,7 +3158,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3158
3158
  lineHeight: "0",
3159
3159
  width: n.value
3160
3160
  }));
3161
- return (a, i) => (m(), D(Se(e.as), {
3161
+ return (a, i) => (m(), D(xe(e.as), {
3162
3162
  "aria-hidden": e.decorative ? "true" : void 0,
3163
3163
  class: "kui-icon more-icon",
3164
3164
  "data-testid": "kui-icon-wrapper-more-icon",
@@ -3175,17 +3175,17 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3175
3175
  width: "100%",
3176
3176
  xmlns: "http://www.w3.org/2000/svg"
3177
3177
  }, [
3178
- e.title ? (m(), $("title", Ll, F(e.title), 1)) : J("", !0),
3179
- Ul
3180
- ], 8, Kl))
3178
+ e.title ? (m(), $("title", Ls, q(e.title), 1)) : J("", !0),
3179
+ Us
3180
+ ], 8, Bs))
3181
3181
  ]),
3182
3182
  _: 1
3183
3183
  }, 8, ["aria-hidden", "style"]));
3184
3184
  }
3185
- }), Pl = /* @__PURE__ */ ot(Rl, [["__scopeId", "data-v-d43c21f8"]]), Vl = {
3185
+ }), Vs = /* @__PURE__ */ ot(Ps, [["__scopeId", "data-v-d43c21f8"]]), Rs = {
3186
3186
  class: "config-card-title",
3187
3187
  "data-testid": "config-card-title"
3188
- }, Dl = { class: "config-card-actions" }, zl = ["href"], Gl = { class: "config-card-details-section" }, Hl = /* @__PURE__ */ X({
3188
+ }, Ds = { class: "config-card-actions" }, zs = ["href"], Gs = { class: "config-card-details-section" }, Hs = /* @__PURE__ */ X({
3189
3189
  __name: "EntityBaseConfigCard",
3190
3190
  props: {
3191
3191
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3264,7 +3264,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3264
3264
  emits: ["loading", "fetch:success", "fetch:error"],
3265
3265
  setup(e, { emit: t }) {
3266
3266
  var n;
3267
- const r = t, a = e, { i18n: { t: i } } = le.useI18n(), { getMessageFromError: o } = le.useErrors(), { convertKeyToTitle: l } = le.useStringHelpers(), { axiosInstance: s } = le.useAxios((n = a.config) == null ? void 0 : n.axiosRequestConfig), u = [
3267
+ const r = t, a = e, { i18n: { t: i } } = se.useI18n(), { getMessageFromError: o } = se.useErrors(), { convertKeyToTitle: s } = se.useStringHelpers(), { axiosInstance: l } = se.useAxios((n = a.config) == null ? void 0 : n.axiosRequestConfig), u = [
3268
3268
  {
3269
3269
  label: i("baseConfigCard.general.structuredFormat"),
3270
3270
  value: "structured",
@@ -3278,7 +3278,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3278
3278
  label: "YAML",
3279
3279
  value: "yaml"
3280
3280
  }
3281
- ], p = M("structured"), c = (d) => {
3281
+ ], p = O("structured"), c = (d) => {
3282
3282
  p.value = d == null ? void 0 : d.value;
3283
3283
  }, y = {
3284
3284
  id: {
@@ -3314,77 +3314,77 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3314
3314
  // the last property displayed
3315
3315
  section: he.Basic
3316
3316
  }
3317
- }, f = M(!1), x = M(!1), T = M(""), k = M({}), U = w(() => {
3318
- var d, I, K;
3317
+ }, f = O(!1), I = O(!1), T = O(""), k = O({}), U = w(() => {
3318
+ var d, S, B;
3319
3319
  if (!k.value)
3320
3320
  return [];
3321
- const S = [], G = Object.keys(k.value).length;
3322
- for (const E in k.value) {
3323
- const b = (I = (d = a.configSchema) == null ? void 0 : d[E]) == null ? void 0 : I.order, B = (K = y[E]) == null ? void 0 : K.order;
3324
- let q = G;
3325
- (B || B === 0) && (q = B === -1 ? G + 1 : B), b && (q = b === -1 ? G + 1 : b), S.push([E, q]);
3321
+ const x = [], G = Object.keys(k.value).length;
3322
+ for (const M in k.value) {
3323
+ const b = (S = (d = a.configSchema) == null ? void 0 : d[M]) == null ? void 0 : S.order, K = (B = y[M]) == null ? void 0 : B.order;
3324
+ let F = G;
3325
+ (K || K === 0) && (F = K === -1 ? G + 1 : K), b && (F = b === -1 ? G + 1 : b), x.push([M, F]);
3326
3326
  }
3327
- return S.sort(function(E, b) {
3328
- return E[1] - b[1];
3329
- }), S.map((E) => {
3330
- var b, B;
3331
- const q = E[0], H = (b = k.value) == null ? void 0 : b[q], te = ((B = a.configSchema) == null ? void 0 : B[q]) || {}, de = y[q];
3327
+ return x.sort(function(M, b) {
3328
+ return M[1] - b[1];
3329
+ }), x.map((M) => {
3330
+ var b, K;
3331
+ const F = M[0], H = (b = k.value) == null ? void 0 : b[F], te = ((K = a.configSchema) == null ? void 0 : K[F]) || {}, de = y[F];
3332
3332
  return {
3333
- key: q,
3333
+ key: F,
3334
3334
  value: H,
3335
3335
  hidden: te.hidden || !1,
3336
3336
  type: te.type ?? ((de == null ? void 0 : de.type) || ee.Text),
3337
- label: te.label ?? ((de == null ? void 0 : de.label) || l(q)),
3337
+ label: te.label ?? ((de == null ? void 0 : de.label) || s(F)),
3338
3338
  tooltip: te.tooltip ?? ((de == null ? void 0 : de.tooltip) || void 0),
3339
3339
  section: te.section ?? ((de == null ? void 0 : de.section) || he.Advanced)
3340
3340
  };
3341
- }).filter((E) => !E.hidden && E.key !== a.pluginConfigKey);
3342
- }), j = w(() => {
3343
- var d, I;
3341
+ }).filter((M) => !M.hidden && M.key !== a.pluginConfigKey);
3342
+ }), N = w(() => {
3343
+ var d, S;
3344
3344
  if (!k.value || !a.pluginConfigKey)
3345
3345
  return [];
3346
- const K = k.value[a.pluginConfigKey] || {}, S = Object.keys(K).length, G = [];
3347
- for (const E in K) {
3348
- const b = (I = (d = a.pluginConfigSchema) == null ? void 0 : d[E]) == null ? void 0 : I.order, B = K[E];
3349
- let q = B != null && B !== "" ? S - 1 : S;
3350
- b && (q = b === -1 ? S + 1 : b), G.push([E, q]);
3346
+ const B = k.value[a.pluginConfigKey] || {}, x = Object.keys(B).length, G = [];
3347
+ for (const M in B) {
3348
+ const b = (S = (d = a.pluginConfigSchema) == null ? void 0 : d[M]) == null ? void 0 : S.order, K = B[M];
3349
+ let F = K != null && K !== "" ? x - 1 : x;
3350
+ b && (F = b === -1 ? x + 1 : b), G.push([M, F]);
3351
3351
  }
3352
- return G.sort(function(E, b) {
3353
- return E[1] - b[1];
3354
- }), G.map((E) => {
3352
+ return G.sort(function(M, b) {
3353
+ return M[1] - b[1];
3354
+ }), G.map((M) => {
3355
3355
  var b;
3356
- const B = E[0], q = K[B], H = ((b = a.pluginConfigSchema) == null ? void 0 : b[B]) || {};
3356
+ const K = M[0], F = B[K], H = ((b = a.pluginConfigSchema) == null ? void 0 : b[K]) || {};
3357
3357
  return {
3358
- key: B,
3359
- value: q,
3358
+ key: K,
3359
+ value: F,
3360
3360
  hidden: H.hidden || !1,
3361
3361
  type: H.type ?? ee.Text,
3362
- label: H.label ?? l(B),
3362
+ label: H.label ?? s(K),
3363
3363
  tooltip: H.tooltip ?? void 0,
3364
3364
  section: he.Plugin
3365
3365
  };
3366
- }).filter((E) => !E.hidden);
3367
- }), W = w(() => {
3368
- var d, I, K, S;
3366
+ }).filter((M) => !M.hidden);
3367
+ }), Z = w(() => {
3368
+ var d, S, B, x;
3369
3369
  return {
3370
3370
  basic: (d = U.value) == null ? void 0 : d.filter((G) => G.section === he.Basic),
3371
- advanced: (I = U.value) == null ? void 0 : I.filter((G) => G.section === he.Advanced),
3372
- plugin: (S = j.value) == null ? void 0 : S.concat((K = U.value) == null ? void 0 : K.filter((G) => G.section === he.Plugin))
3371
+ advanced: (S = U.value) == null ? void 0 : S.filter((G) => G.section === he.Advanced),
3372
+ plugin: (x = N.value) == null ? void 0 : x.concat((B = U.value) == null ? void 0 : B.filter((G) => G.section === he.Plugin))
3373
3373
  };
3374
3374
  }), h = w(() => {
3375
3375
  const d = [];
3376
- return W.value.basic.length && d.push("basic"), W.value.advanced.length && d.push("advanced"), W.value.plugin.length && d.push("plugin"), d;
3376
+ return Z.value.basic.length && d.push("basic"), Z.value.advanced.length && d.push("advanced"), Z.value.plugin.length && d.push("plugin"), d;
3377
3377
  }), _ = w(() => {
3378
- var d, I;
3379
- let K = `${a.config.apiBaseUrl}${a.fetchUrl}`;
3380
- return a.config.app === "konnect" ? K = K.replace(/{controlPlaneId}/gi, ((d = a.config) == null ? void 0 : d.controlPlaneId) || "") : a.config.app === "kongManager" && (K = K.replace(/\/{workspace}/gi, (I = a.config) != null && I.workspace ? `/${a.config.workspace}` : "")), K = K.replace(/{id}/gi, a.config.entityId), K;
3378
+ var d, S;
3379
+ let B = `${a.config.apiBaseUrl}${a.fetchUrl}`;
3380
+ return a.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((d = a.config) == null ? void 0 : d.controlPlaneId) || "") : a.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (S = a.config) != null && S.workspace ? `/${a.config.workspace}` : "")), B = B.replace(/{id}/gi, a.config.entityId), B;
3381
3381
  });
3382
3382
  return $e(f, (d) => {
3383
3383
  r("loading", d);
3384
3384
  }, { immediate: !0 }), gt(async () => {
3385
- x.value = !1, f.value = !0;
3385
+ I.value = !1, f.value = !0;
3386
3386
  try {
3387
- const { data: d } = await s.get(_.value);
3387
+ const { data: d } = await l.get(_.value);
3388
3388
  if (a.dataKey)
3389
3389
  if (typeof d[a.dataKey] < "u")
3390
3390
  k.value = { ...d[a.dataKey] };
@@ -3392,34 +3392,34 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3392
3392
  throw new Error(i("errors.dataKeyUndefined", { dataKey: a.dataKey }));
3393
3393
  else
3394
3394
  k.value = { ...d };
3395
- Object.keys(a.configSchema).filter((I) => a.configSchema[I].forceShow).forEach((I) => {
3396
- k.value && typeof k.value[I] > "u" && (k.value[I] = null);
3395
+ Object.keys(a.configSchema).filter((S) => a.configSchema[S].forceShow).forEach((S) => {
3396
+ k.value && typeof k.value[S] > "u" && (k.value[S] = null);
3397
3397
  }), r("fetch:success", d);
3398
3398
  } catch (d) {
3399
- const I = o(d);
3400
- T.value = I.startsWith("code") ? i("baseConfigCard.errors.load") : I, x.value = !0, r("fetch:error", d);
3399
+ const S = o(d);
3400
+ T.value = S.startsWith("code") ? i("baseConfigCard.errors.load") : S, I.value = !0, r("fetch:error", d);
3401
3401
  } finally {
3402
3402
  f.value = !1;
3403
3403
  }
3404
- }), (d, I) => {
3405
- const K = V("KLabel"), S = V("KSelect"), G = V("KButton"), E = V("KSkeleton"), b = V("KEmptyState"), B = V("KCard");
3406
- return m(), D(B, {
3404
+ }), (d, S) => {
3405
+ const B = R("KLabel"), x = R("KSelect"), G = R("KButton"), M = R("KSkeleton"), b = R("KEmptyState"), K = R("KCard");
3406
+ return m(), D(K, {
3407
3407
  class: "kong-ui-entity-base-config-card",
3408
3408
  "title-tag": e.titleTag
3409
- }, Ke({
3409
+ }, Be({
3410
3410
  actions: v(() => [
3411
- L("div", Dl, [
3411
+ L("div", Ds, [
3412
3412
  ne(d.$slots, "actions", {}, void 0, !0),
3413
- N(K, {
3413
+ j(B, {
3414
3414
  class: "config-format-select-label",
3415
3415
  "data-testid": "config-format-select-label"
3416
3416
  }, {
3417
3417
  default: v(() => [
3418
- Z(F(e.label), 1)
3418
+ Y(q(e.label), 1)
3419
3419
  ]),
3420
3420
  _: 1
3421
3421
  }),
3422
- N(S, {
3422
+ j(x, {
3423
3423
  "data-testid": "select-config-format",
3424
3424
  items: u,
3425
3425
  onChange: c
@@ -3436,42 +3436,42 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3436
3436
  rel: "noopener",
3437
3437
  target: "_blank"
3438
3438
  }, [
3439
- N(g(xl), { size: g(Sa) }, null, 8, ["size"])
3440
- ], 8, zl)
3439
+ j(g(Is), { size: g(xa) }, null, 8, ["size"])
3440
+ ], 8, zs)
3441
3441
  ]),
3442
3442
  _: 1
3443
3443
  })) : J("", !0)
3444
3444
  ])
3445
3445
  ]),
3446
3446
  default: v(() => [
3447
- f.value ? (m(), D(E, {
3447
+ f.value ? (m(), D(M, {
3448
3448
  key: 0,
3449
3449
  "data-testid": "config-card-loader",
3450
3450
  "table-columns": 2,
3451
3451
  type: "table"
3452
- })) : x.value ? (m(), D(b, {
3452
+ })) : I.value ? (m(), D(b, {
3453
3453
  key: 1,
3454
3454
  "data-testid": "config-card-fetch-error",
3455
3455
  "icon-variant": "error"
3456
3456
  }, {
3457
3457
  default: v(() => [
3458
- L("h3", null, F(T.value), 1)
3458
+ L("h3", null, q(T.value), 1)
3459
3459
  ]),
3460
3460
  _: 1
3461
3461
  })) : J("", !0),
3462
- L("div", Gl, [
3463
- N(pl, {
3462
+ L("div", Gs, [
3463
+ j(ps, {
3464
3464
  config: e.config,
3465
3465
  "fetcher-url": _.value,
3466
3466
  format: p.value,
3467
3467
  "prop-list-types": h.value,
3468
- "property-collections": W.value,
3468
+ "property-collections": Z.value,
3469
3469
  record: k.value
3470
- }, Ke({ _: 2 }, [
3471
- ve(Object.keys(d.$slots), (q) => ({
3472
- name: q,
3470
+ }, Be({ _: 2 }, [
3471
+ ve(Object.keys(d.$slots), (F) => ({
3472
+ name: F,
3473
3473
  fn: v(({ row: H, rowValue: te }) => [
3474
- ne(d.$slots, q, {
3474
+ ne(d.$slots, F, {
3475
3475
  row: H,
3476
3476
  rowValue: te
3477
3477
  }, void 0, !0)
@@ -3485,9 +3485,9 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3485
3485
  e.hideTitle ? void 0 : {
3486
3486
  name: "title",
3487
3487
  fn: v(() => [
3488
- L("span", Vl, [
3488
+ L("span", Rs, [
3489
3489
  ne(d.$slots, "title", {}, () => [
3490
- Z(F(g(i)("baseConfigCard.title")), 1)
3490
+ Y(q(g(i)("baseConfigCard.title")), 1)
3491
3491
  ], !0)
3492
3492
  ])
3493
3493
  ]),
@@ -3496,10 +3496,10 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3496
3496
  ]), 1032, ["title-tag"]);
3497
3497
  };
3498
3498
  }
3499
- }), Jl = /* @__PURE__ */ Ce(Hl, [["__scopeId", "data-v-f40a683b"]]), Wl = ["novalidate"], Yl = {
3499
+ }), Js = /* @__PURE__ */ Ce(Hs, [["__scopeId", "data-v-f40a683b"]]), Zs = ["novalidate"], Ws = {
3500
3500
  class: "form-actions",
3501
3501
  "data-testid": "form-actions"
3502
- }, Zl = /* @__PURE__ */ X({
3502
+ }, Ys = /* @__PURE__ */ X({
3503
3503
  __name: "EntityBaseForm",
3504
3504
  props: {
3505
3505
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3568,7 +3568,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3568
3568
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
3569
3569
  setup(e, { emit: t }) {
3570
3570
  var n;
3571
- const r = t, a = e, i = Ot(), { i18n: { t: o } } = le.useI18n(), { getMessageFromError: l } = le.useErrors(), { axiosInstance: s } = le.useAxios((n = a.config) == null ? void 0 : n.axiosRequestConfig), u = M(!1), p = M(!1), c = M(""), y = w(() => a.canSubmit === !1 || a.isReadonly), f = M(!1), x = w(() => {
3571
+ const r = t, a = e, i = Et(), { i18n: { t: o } } = se.useI18n(), { getMessageFromError: s } = se.useErrors(), { axiosInstance: l } = se.useAxios((n = a.config) == null ? void 0 : n.axiosRequestConfig), u = O(!1), p = O(!1), c = O(""), y = w(() => a.canSubmit === !1 || a.isReadonly), f = O(!1), I = w(() => {
3572
3572
  var h, _;
3573
3573
  let d = `${a.config.apiBaseUrl}${a.fetchUrl}`;
3574
3574
  return a.config.app === "konnect" ? d = d.replace(/{controlPlaneId}/gi, ((h = a.config) == null ? void 0 : h.controlPlaneId) || "") : a.config.app === "kongManager" && (d = d.replace(/\/{workspace}/gi, (_ = a.config) != null && _.workspace ? `/${a.config.workspace}` : "")), a.editId ? (d = d.replace(/{id}/gi, a.editId), d) : (d = d.replace(/\/{id}/gi, ""), d);
@@ -3578,9 +3578,9 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3578
3578
  a.config.cancelRoute ? i.push(a.config.cancelRoute) : U();
3579
3579
  }, U = () => {
3580
3580
  r("cancel");
3581
- }, j = () => {
3581
+ }, N = () => {
3582
3582
  y.value || r("submit");
3583
- }, W = M([
3583
+ }, Z = O([
3584
3584
  {
3585
3585
  title: o("baseForm.configuration.yaml"),
3586
3586
  hash: "#yaml"
@@ -3596,22 +3596,22 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3596
3596
  if (a.editId)
3597
3597
  try {
3598
3598
  p.value = !1, u.value = !0;
3599
- const { data: h } = await s.get(x.value);
3599
+ const { data: h } = await l.get(I.value);
3600
3600
  r("fetch:success", h);
3601
3601
  } catch (h) {
3602
- const _ = l(h);
3602
+ const _ = s(h);
3603
3603
  c.value = _.startsWith("code") ? o("baseForm.errors.edit") : _, p.value = !0, r("fetch:error", h);
3604
3604
  } finally {
3605
3605
  u.value = !1;
3606
3606
  }
3607
3607
  }), (h, _) => {
3608
- const d = V("KSkeleton"), I = V("KEmptyState"), K = V("KAlert"), S = V("KButton"), G = V("KTabs"), E = V("KSlideout");
3609
- return m(), D(Se(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
3608
+ const d = R("KSkeleton"), S = R("KEmptyState"), B = R("KAlert"), x = R("KButton"), G = R("KTabs"), M = R("KSlideout");
3609
+ return m(), D(xe(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
3610
3610
  default: v(() => [
3611
3611
  u.value ? (m(), D(d, {
3612
3612
  key: 0,
3613
3613
  type: "form"
3614
- })) : p.value ? (m(), D(I, {
3614
+ })) : p.value ? (m(), D(S, {
3615
3615
  key: 1,
3616
3616
  "action-button-text": g(o)("baseForm.actions.back"),
3617
3617
  "data-testid": "form-fetch-error",
@@ -3619,61 +3619,61 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3619
3619
  onClickAction: k
3620
3620
  }, {
3621
3621
  default: v(() => [
3622
- L("h3", null, F(c.value), 1)
3622
+ L("h3", null, q(c.value), 1)
3623
3623
  ]),
3624
3624
  _: 1
3625
3625
  }, 8, ["action-button-text"])) : (m(), $("form", {
3626
3626
  key: 2,
3627
3627
  "data-testid": "form-content",
3628
3628
  novalidate: a.noValidate,
3629
- onReset: St(U, ["prevent"]),
3630
- onSubmit: St(j, ["prevent"])
3629
+ onReset: xt(U, ["prevent"]),
3630
+ onSubmit: xt(N, ["prevent"])
3631
3631
  }, [
3632
3632
  ne(h.$slots, "default", {}, void 0, !0),
3633
- e.errorMessage ? (m(), D(K, {
3633
+ e.errorMessage ? (m(), D(B, {
3634
3634
  key: 0,
3635
3635
  appearance: "danger",
3636
3636
  "data-testid": "form-error",
3637
3637
  message: e.errorMessage
3638
3638
  }, null, 8, ["message"])) : J("", !0),
3639
- L("div", Yl, [
3639
+ L("div", Ws, [
3640
3640
  ne(h.$slots, "form-actions", {}, () => [
3641
- N(S, {
3641
+ j(x, {
3642
3642
  appearance: "tertiary",
3643
3643
  "data-testid": "form-view-configuration",
3644
3644
  onClick: _[0] || (_[0] = (b) => T())
3645
3645
  }, {
3646
3646
  default: v(() => [
3647
- Z(F(g(o)("baseForm.actions.viewConfiguration")), 1)
3647
+ Y(q(g(o)("baseForm.actions.viewConfiguration")), 1)
3648
3648
  ]),
3649
3649
  _: 1
3650
3650
  }),
3651
- N(S, {
3651
+ j(x, {
3652
3652
  appearance: "secondary",
3653
3653
  "data-testid": "form-cancel",
3654
3654
  disabled: e.isReadonly,
3655
3655
  type: "reset"
3656
3656
  }, {
3657
3657
  default: v(() => [
3658
- Z(F(g(o)("baseForm.actions.cancel")), 1)
3658
+ Y(q(g(o)("baseForm.actions.cancel")), 1)
3659
3659
  ]),
3660
3660
  _: 1
3661
3661
  }, 8, ["disabled"]),
3662
- N(S, {
3662
+ j(x, {
3663
3663
  appearance: "primary",
3664
3664
  "data-testid": "form-submit",
3665
3665
  disabled: y.value,
3666
3666
  type: "submit"
3667
3667
  }, {
3668
3668
  default: v(() => [
3669
- Z(F(g(o)("baseForm.actions.save")), 1)
3669
+ Y(q(g(o)("baseForm.actions.save")), 1)
3670
3670
  ]),
3671
3671
  _: 1
3672
3672
  }, 8, ["disabled"])
3673
3673
  ], !0)
3674
3674
  ])
3675
- ], 40, Wl)),
3676
- N(E, {
3675
+ ], 40, Zs)),
3676
+ j(M, {
3677
3677
  "close-on-blur": !1,
3678
3678
  "data-testid": "form-view-configuration-slideout",
3679
3679
  "has-overlay": !1,
@@ -3683,21 +3683,21 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3683
3683
  onClose: _[1] || (_[1] = (b) => T())
3684
3684
  }, {
3685
3685
  default: v(() => [
3686
- L("div", null, F(g(o)("baseForm.configuration.message")), 1),
3687
- N(G, {
3686
+ L("div", null, q(g(o)("baseForm.configuration.message")), 1),
3687
+ j(G, {
3688
3688
  "data-testid": "form-view-configuration-slideout-tabs",
3689
- tabs: W.value
3689
+ tabs: Z.value
3690
3690
  }, {
3691
3691
  json: v(() => [
3692
- N(Tn, {
3692
+ j(Tn, {
3693
3693
  config: e.config,
3694
- "fetcher-url": x.value,
3694
+ "fetcher-url": I.value,
3695
3695
  "json-record": a.formFields,
3696
3696
  "request-method": a.editId ? "put" : "post"
3697
3697
  }, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
3698
3698
  ]),
3699
3699
  yaml: v(() => [
3700
- N(hr, {
3700
+ j(hr, {
3701
3701
  "yaml-record": a.formFields
3702
3702
  }, null, 8, ["yaml-record"])
3703
3703
  ]),
@@ -3711,7 +3711,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3711
3711
  });
3712
3712
  };
3713
3713
  }
3714
- }), Ql = /* @__PURE__ */ Ce(Zl, [["__scopeId", "data-v-fd05df8e"]]), Xl = ["data-truncate"], es = /* @__PURE__ */ X({
3714
+ }), Qs = /* @__PURE__ */ Ce(Ys, [["__scopeId", "data-v-fd05df8e"]]), Xs = ["data-truncate"], el = /* @__PURE__ */ X({
3715
3715
  __name: "EntityBaseTableCell",
3716
3716
  props: {
3717
3717
  keyName: {
@@ -3736,27 +3736,27 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3736
3736
  return ((k = n.value) == null ? void 0 : k.querySelector('[data-truncate="true"]')) || null;
3737
3737
  }), a = w(() => {
3738
3738
  var k, U;
3739
- const j = (k = t.rowEl) == null ? void 0 : k.querySelectorAll("td");
3740
- return j ? ((U = j[0]) == null ? void 0 : U.getAttribute("data-testid")) === t.keyName : !0;
3739
+ const N = (k = t.rowEl) == null ? void 0 : k.querySelectorAll("td");
3740
+ return N ? ((U = N[0]) == null ? void 0 : U.getAttribute("data-testid")) === t.keyName : !0;
3741
3741
  }), i = w(() => a.value || t.tooltip);
3742
3742
  let o;
3743
- const l = () => {
3743
+ const s = () => {
3744
3744
  o && (o.disconnect(), o = void 0);
3745
- }, s = () => {
3746
- var k, U, j;
3747
- let W = ((k = n.value) == null ? void 0 : k.clientWidth) || 0;
3745
+ }, l = () => {
3746
+ var k, U, N;
3747
+ let Z = ((k = n.value) == null ? void 0 : k.clientWidth) || 0;
3748
3748
  if (n.value && "getComputedStyle" in window) {
3749
3749
  const h = window.getComputedStyle(n.value);
3750
- W -= (parseFloat(h.paddingLeft) || 0) + (parseFloat(h.paddingRight) || 0);
3750
+ Z -= (parseFloat(h.paddingLeft) || 0) + (parseFloat(h.paddingRight) || 0);
3751
3751
  }
3752
- p.value = ((U = r.value) == null ? void 0 : U.getBoundingClientRect().width) || 0, c.value = W, y.value = ((j = u.value) == null ? void 0 : j.innerText) || "";
3753
- }, u = M({}), p = M(0), c = M(0), y = M(""), f = w(() => [r.value, n.value]), x = $e(
3752
+ p.value = ((U = r.value) == null ? void 0 : U.getBoundingClientRect().width) || 0, c.value = Z, y.value = ((N = u.value) == null ? void 0 : N.innerText) || "";
3753
+ }, u = O({}), p = O(0), c = O(0), y = O(""), f = w(() => [r.value, n.value]), I = $e(
3754
3754
  f,
3755
3755
  (k) => {
3756
- if (i.value && (l(), "ResizeObserver" in window && window)) {
3756
+ if (i.value && (s(), "ResizeObserver" in window && window)) {
3757
3757
  o = new ResizeObserver((U) => {
3758
3758
  window.requestAnimationFrame(() => {
3759
- !Array.isArray(U) || !U.length || s();
3759
+ !Array.isArray(U) || !U.length || l();
3760
3760
  });
3761
3761
  });
3762
3762
  for (const U of k)
@@ -3765,12 +3765,12 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3765
3765
  },
3766
3766
  { immediate: !0, flush: "post", deep: !0 }
3767
3767
  ), T = w(() => i.value ? p.value > c.value : !1);
3768
- return xr(() => {
3769
- s();
3770
- }), Sr(() => {
3771
- x();
3768
+ return Ir(() => {
3769
+ l();
3770
+ }), xr(() => {
3771
+ I();
3772
3772
  }), (k, U) => {
3773
- const j = V("KTooltip");
3773
+ const N = R("KTooltip");
3774
3774
  return m(), $("span", {
3775
3775
  ref_key: "contentRef",
3776
3776
  ref: u,
@@ -3780,7 +3780,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3780
3780
  key: 0,
3781
3781
  "data-truncate": i.value || void 0
3782
3782
  }, [
3783
- N(j, {
3783
+ j(N, {
3784
3784
  "max-width": "300",
3785
3785
  placement: "bottom-start",
3786
3786
  text: T.value ? y.value : ""
@@ -3790,14 +3790,14 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3790
3790
  ]),
3791
3791
  _: 3
3792
3792
  }, 8, ["text"])
3793
- ], 8, Xl)) : ne(k.$slots, "default", { key: 1 }, void 0, !0)
3793
+ ], 8, Xs)) : ne(k.$slots, "default", { key: 1 }, void 0, !0)
3794
3794
  ], 512);
3795
3795
  };
3796
3796
  }
3797
- }), ts = /* @__PURE__ */ Ce(es, [["__scopeId", "data-v-b252463e"]]), ns = { class: "toolbar-container" }, rs = {
3797
+ }), tl = /* @__PURE__ */ Ce(el, [["__scopeId", "data-v-b252463e"]]), nl = { class: "toolbar-container" }, rl = {
3798
3798
  key: 0,
3799
3799
  class: "toolbar-button-container"
3800
- }, as = ["data-testid"], os = /* @__PURE__ */ X({
3800
+ }, al = ["data-testid"], ol = /* @__PURE__ */ X({
3801
3801
  __name: "EntityBaseTable",
3802
3802
  props: {
3803
3803
  // table header configuration
@@ -3915,8 +3915,8 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3915
3915
  },
3916
3916
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3917
3917
  setup(e, { emit: t }) {
3918
- const n = e, r = t, { i18n: { t: a } } = le.useI18n(), i = w(() => {
3919
- var d, I;
3918
+ const n = e, r = t, { i18n: { t: a } } = se.useI18n(), i = w(() => {
3919
+ var d, S;
3920
3920
  return typeof n.errorMessage == "string" ? {
3921
3921
  hasError: !!n.errorMessage,
3922
3922
  title: n.errorMessage,
@@ -3924,16 +3924,16 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3924
3924
  } : {
3925
3925
  hasError: !!n.errorMessage,
3926
3926
  title: (d = n.errorMessage) == null ? void 0 : d.title,
3927
- message: (I = n.errorMessage) == null ? void 0 : I.message
3927
+ message: (S = n.errorMessage) == null ? void 0 : S.message
3928
3928
  };
3929
- }), o = w(() => n.cacheIdentifier || n.preferencesStorageKey), l = (d) => d.hasData || !!n.query, s = w(() => {
3929
+ }), o = w(() => n.cacheIdentifier || n.preferencesStorageKey), s = (d) => d.hasData || !!n.query, l = w(() => {
3930
3930
  const d = [];
3931
- return Object.keys(n.tableHeaders).forEach((I) => {
3932
- const K = n.tableHeaders[I];
3931
+ return Object.keys(n.tableHeaders).forEach((S) => {
3932
+ const B = n.tableHeaders[S];
3933
3933
  d.push({
3934
- label: K.label ?? I,
3935
- key: I,
3936
- sortable: K.sortable ?? !1,
3934
+ label: B.label ?? S,
3935
+ key: S,
3936
+ sortable: B.sortable ?? !1,
3937
3937
  hidable: !0
3938
3938
  });
3939
3939
  }), n.enableEntityActions && d.push({
@@ -3944,45 +3944,45 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3944
3944
  "data-rowid": d.id,
3945
3945
  "data-testid": d.name,
3946
3946
  ...n.rowAttributes(d)
3947
- }), p = M({}), c = (d) => {
3948
- var I;
3949
- return (I = p.value) == null ? void 0 : I.$el.querySelector(`[data-rowid="${d.id}"]`);
3947
+ }), p = O({}), c = (d) => {
3948
+ var S;
3949
+ return (S = p.value) == null ? void 0 : S.$el.querySelector(`[data-rowid="${d.id}"]`);
3950
3950
  }, y = (d) => {
3951
- const I = {
3951
+ const S = {
3952
3952
  "data-testid": d.headerKey,
3953
3953
  ...n.cellAttributes(d)
3954
3954
  };
3955
- return d.colIndex === 0 && (I.style = {
3955
+ return d.colIndex === 0 && (S.style = {
3956
3956
  maxWidth: "250px",
3957
3957
  overflowX: "hidden",
3958
3958
  textOverflow: "ellipsis"
3959
- }), I;
3959
+ }), S;
3960
3960
  }, f = () => {
3961
- r("empty-state-cta-clicked"), x();
3962
- }, x = () => {
3961
+ r("empty-state-cta-clicked"), I();
3962
+ }, I = () => {
3963
3963
  r("clear-search-input");
3964
- }, T = w(() => n.disableRowClick ? void 0 : (d, I) => {
3965
- r("click:row", I);
3964
+ }, T = w(() => n.disableRowClick ? void 0 : (d, S) => {
3965
+ r("click:row", S);
3966
3966
  }), k = (d) => {
3967
3967
  r("sort", d);
3968
- }, { setTablePreferences: U, getTablePreferences: j } = Dr(), W = M(j(o.value)), h = w(() => {
3969
- const d = j(o.value);
3968
+ }, { setTablePreferences: U, getTablePreferences: N } = Dr(), Z = O(N(o.value)), h = w(() => {
3969
+ const d = N(o.value);
3970
3970
  return {
3971
3971
  ...n.initialFetcherParams,
3972
3972
  ...d
3973
3973
  };
3974
3974
  }), _ = (d) => {
3975
- W.value = d, o.value && U(o.value, d);
3975
+ Z.value = d, o.value && U(o.value, d);
3976
3976
  };
3977
- return (d, I) => {
3978
- const K = V("KButton"), S = V("KDropdown"), G = V("KTable"), E = V("KCard");
3979
- return m(), D(E, {
3977
+ return (d, S) => {
3978
+ const B = R("KButton"), x = R("KDropdown"), G = R("KTable"), M = R("KCard");
3979
+ return m(), D(M, {
3980
3980
  class: "kong-ui-entity-base-table",
3981
3981
  title: e.title,
3982
3982
  "title-tag": e.titleTag
3983
3983
  }, {
3984
3984
  default: v(() => [
3985
- N(G, {
3985
+ j(G, {
3986
3986
  ref_key: "tableRefs",
3987
3987
  ref: p,
3988
3988
  "cache-identifier": o.value,
@@ -3999,7 +3999,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3999
3999
  "error-state-title": i.value.title,
4000
4000
  fetcher: e.fetcher,
4001
4001
  "fetcher-cache-key": String(e.fetcherCacheKey),
4002
- headers: s.value,
4002
+ headers: l.value,
4003
4003
  "hide-pagination-when-optional": "",
4004
4004
  "initial-fetcher-params": h.value,
4005
4005
  loading: e.isLoading,
@@ -4009,40 +4009,40 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4009
4009
  "search-input": e.query,
4010
4010
  "sort-handler-function": e.enableClientSort ? e.sortHandlerFunction : void 0,
4011
4011
  sortable: !e.disableSorting,
4012
- "table-preferences": W.value,
4012
+ "table-preferences": Z.value,
4013
4013
  onEmptyStateActionClick: f,
4014
4014
  "onRow:click": T.value,
4015
- onSort: I[0] || (I[0] = (b) => k(b)),
4015
+ onSort: S[0] || (S[0] = (b) => k(b)),
4016
4016
  "onUpdate:tablePreferences": _
4017
- }, Ke({
4017
+ }, Be({
4018
4018
  toolbar: v(({ state: b }) => [
4019
- je(L("div", ns, [
4019
+ Ne(L("div", nl, [
4020
4020
  ne(d.$slots, "toolbar-filter", {}, void 0, !0),
4021
- d.$slots["toolbar-button"] ? (m(), $("div", rs, [
4021
+ d.$slots["toolbar-button"] ? (m(), $("div", rl, [
4022
4022
  ne(d.$slots, "toolbar-button", {}, void 0, !0)
4023
4023
  ])) : J("", !0)
4024
4024
  ], 512), [
4025
- [Ne, l(b)]
4025
+ [je, s(b)]
4026
4026
  ])
4027
4027
  ]),
4028
- actions: v(({ row: b, rowKey: B, rowValue: q }) => [
4028
+ actions: v(({ row: b, rowKey: K, rowValue: F }) => [
4029
4029
  L("div", {
4030
4030
  class: "actions-container",
4031
4031
  "data-testid": b.name
4032
4032
  }, [
4033
- N(S, {
4033
+ j(x, {
4034
4034
  "kpop-attributes": { placement: "bottom-end" },
4035
4035
  width: e.dropdownMenuWidth
4036
4036
  }, {
4037
4037
  items: v(() => [
4038
4038
  ne(d.$slots, "actions", {
4039
4039
  row: b,
4040
- rowKey: B,
4041
- rowValue: q
4040
+ rowKey: K,
4041
+ rowValue: F
4042
4042
  }, void 0, !0)
4043
4043
  ]),
4044
4044
  default: v(() => [
4045
- N(K, {
4045
+ j(B, {
4046
4046
  appearance: "tertiary",
4047
4047
  class: "actions-trigger",
4048
4048
  "data-testid": "overflow-actions-button",
@@ -4050,32 +4050,32 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4050
4050
  size: "small"
4051
4051
  }, {
4052
4052
  default: v(() => [
4053
- N(g(Pl))
4053
+ j(g(Vs))
4054
4054
  ]),
4055
4055
  _: 1
4056
4056
  })
4057
4057
  ]),
4058
4058
  _: 2
4059
4059
  }, 1032, ["width"])
4060
- ], 8, as)
4060
+ ], 8, al)
4061
4061
  ]),
4062
4062
  _: 2
4063
4063
  }, [
4064
- ve(e.tableHeaders, (b, B) => ({
4065
- name: B,
4066
- fn: v(({ row: q, rowKey: H, rowValue: te }) => [
4067
- N(ts, {
4068
- "key-name": String(B),
4069
- "row-el": c(q),
4064
+ ve(e.tableHeaders, (b, K) => ({
4065
+ name: K,
4066
+ fn: v(({ row: F, rowKey: H, rowValue: te }) => [
4067
+ j(tl, {
4068
+ "key-name": String(K),
4069
+ "row-el": c(F),
4070
4070
  tooltip: b.tooltip
4071
4071
  }, {
4072
4072
  default: v(() => [
4073
- ne(d.$slots, B, {
4074
- row: q,
4073
+ ne(d.$slots, K, {
4074
+ row: F,
4075
4075
  rowKey: H,
4076
4076
  rowValue: te
4077
4077
  }, () => [
4078
- Z(F(te), 1)
4078
+ Y(q(te), 1)
4079
4079
  ], !0)
4080
4080
  ]),
4081
4081
  _: 2
@@ -4085,7 +4085,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4085
4085
  e.query ? void 0 : {
4086
4086
  name: "empty-state-action-icon",
4087
4087
  fn: v(() => [
4088
- N(g(vl))
4088
+ j(g(vs))
4089
4089
  ]),
4090
4090
  key: "0"
4091
4091
  }
@@ -4095,13 +4095,13 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4095
4095
  }, 8, ["title", "title-tag"]);
4096
4096
  };
4097
4097
  }
4098
- }), is = /* @__PURE__ */ Ce(os, [["__scopeId", "data-v-940ccab7"]]), ls = {
4098
+ }), il = /* @__PURE__ */ Ce(ol, [["__scopeId", "data-v-940ccab7"]]), sl = {
4099
4099
  key: 0,
4100
4100
  class: "kong-ui-entity-delete-error"
4101
- }, ss = {
4101
+ }, ll = {
4102
4102
  key: 1,
4103
4103
  class: "description"
4104
- }, us = /* @__PURE__ */ X({
4104
+ }, ul = /* @__PURE__ */ X({
4105
4105
  __name: "EntityDeleteModal",
4106
4106
  props: {
4107
4107
  visible: {
@@ -4140,13 +4140,13 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4140
4140
  },
4141
4141
  emits: ["cancel", "proceed"],
4142
4142
  setup(e, { emit: t }) {
4143
- const { i18nT: n } = le.useI18n(), r = e, a = t, i = w(() => r.needConfirm ? r.entityName : ""), o = () => {
4143
+ const { i18nT: n } = se.useI18n(), r = e, a = t, i = w(() => r.needConfirm ? r.entityName : ""), o = () => {
4144
4144
  a("cancel");
4145
- }, l = () => {
4145
+ }, s = () => {
4146
4146
  a("proceed");
4147
4147
  };
4148
- return (s, u) => {
4149
- const p = V("KAlert"), c = V("KPrompt");
4148
+ return (l, u) => {
4149
+ const p = R("KAlert"), c = R("KPrompt");
4150
4150
  return m(), D(c, {
4151
4151
  "action-button-appearance": "danger",
4152
4152
  "action-button-disabled": e.actionPending,
@@ -4156,38 +4156,38 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4156
4156
  title: e.title,
4157
4157
  visible: e.visible,
4158
4158
  onCancel: o,
4159
- onProceed: l
4159
+ onProceed: s
4160
4160
  }, {
4161
4161
  default: v(() => [
4162
- e.error ? (m(), $("div", ls, [
4163
- N(p, { appearance: "danger" }, {
4162
+ e.error ? (m(), $("div", sl, [
4163
+ j(p, { appearance: "danger" }, {
4164
4164
  default: v(() => [
4165
- Z(F(e.error), 1)
4165
+ Y(q(e.error), 1)
4166
4166
  ]),
4167
4167
  _: 1
4168
4168
  })
4169
4169
  ])) : J("", !0),
4170
- N(g(n), {
4170
+ j(g(n), {
4171
4171
  class: "message",
4172
4172
  keypath: r.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
4173
4173
  tag: "p"
4174
- }, Ke({
4174
+ }, Be({
4175
4175
  entityType: v(() => [
4176
- Z(F(r.entityType), 1)
4176
+ Y(q(r.entityType), 1)
4177
4177
  ]),
4178
4178
  _: 2
4179
4179
  }, [
4180
4180
  r.entityName ? {
4181
4181
  name: "entityName",
4182
4182
  fn: v(() => [
4183
- L("strong", null, F(r.entityName), 1)
4183
+ L("strong", null, q(r.entityName), 1)
4184
4184
  ]),
4185
4185
  key: "0"
4186
4186
  } : void 0
4187
4187
  ]), 1032, ["keypath"]),
4188
- r.description || s.$slots.description ? (m(), $("div", ss, [
4189
- ne(s.$slots, "description", {}, () => [
4190
- L("p", null, F(r.description), 1)
4188
+ r.description || l.$slots.description ? (m(), $("div", ll, [
4189
+ ne(l.$slots, "description", {}, () => [
4190
+ L("p", null, q(r.description), 1)
4191
4191
  ], !0)
4192
4192
  ])) : J("", !0)
4193
4193
  ]),
@@ -4195,13 +4195,13 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4195
4195
  }, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
4196
4196
  };
4197
4197
  }
4198
- }), cs = /* @__PURE__ */ Ce(us, [["__scopeId", "data-v-4361d622"]]), ds = {
4198
+ }), cl = /* @__PURE__ */ Ce(ul, [["__scopeId", "data-v-4361d622"]]), dl = {
4199
4199
  fill: "none",
4200
4200
  height: "20",
4201
4201
  viewBox: "0 0 20 20",
4202
4202
  width: "20",
4203
4203
  xmlns: "http://www.w3.org/2000/svg"
4204
- }, ps = {
4204
+ }, pl = {
4205
4205
  id: "mask0_180_20349",
4206
4206
  height: "20",
4207
4207
  maskUnits: "userSpaceOnUse",
@@ -4209,7 +4209,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4209
4209
  width: "20",
4210
4210
  x: "0",
4211
4211
  y: "0"
4212
- }, fs = ["fill"], ms = { mask: "url(#mask0_180_20349)" }, gs = ["fill"], yn = /* @__PURE__ */ X({
4212
+ }, fl = ["fill"], ml = { mask: "url(#mask0_180_20349)" }, gl = ["fill"], yn = /* @__PURE__ */ X({
4213
4213
  __name: "IconFilter",
4214
4214
  props: {
4215
4215
  color: {
@@ -4218,26 +4218,26 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4218
4218
  }
4219
4219
  },
4220
4220
  setup(e) {
4221
- return (t, n) => (m(), $("svg", ds, [
4222
- L("mask", ps, [
4221
+ return (t, n) => (m(), $("svg", dl, [
4222
+ L("mask", pl, [
4223
4223
  L("rect", {
4224
4224
  fill: e.color,
4225
4225
  height: "20",
4226
4226
  width: "20"
4227
- }, null, 8, fs)
4227
+ }, null, 8, fl)
4228
4228
  ]),
4229
- L("g", ms, [
4229
+ L("g", ml, [
4230
4230
  L("path", {
4231
4231
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
4232
4232
  fill: e.color
4233
- }, null, 8, gs)
4233
+ }, null, 8, gl)
4234
4234
  ])
4235
4235
  ]));
4236
4236
  }
4237
- }), ys = {
4237
+ }), yl = {
4238
4238
  key: 1,
4239
4239
  class: "kong-ui-entity-filter"
4240
- }, hs = { class: "kong-ui-entity-filter-menu" }, vs = ["data-testid"], bs = ["onClick", "onKeydown"], Cs = { class: "menu-item-indicator" }, ks = { class: "menu-item-body" }, ws = ["for"], _s = { class: "menu-item-buttons" }, xs = { class: "filter-clear-button-container" }, Ss = /* @__PURE__ */ X({
4240
+ }, hl = { class: "kong-ui-entity-filter-menu" }, vl = ["data-testid"], bl = ["onClick", "onKeydown"], Cl = { class: "menu-item-indicator" }, kl = { class: "menu-item-body" }, wl = ["for"], _l = { class: "menu-item-buttons" }, Il = { class: "filter-clear-button-container" }, xl = /* @__PURE__ */ X({
4241
4241
  __name: "EntityFilter",
4242
4242
  props: {
4243
4243
  // filter config, either exact match or fuzzy match
@@ -4257,7 +4257,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4257
4257
  },
4258
4258
  emits: ["update:modelValue"],
4259
4259
  setup(e, { emit: t }) {
4260
- const { i18n: { t: n } } = le.useI18n(), r = e, a = t, i = M(!1), o = M({}), l = M(/* @__PURE__ */ new Set()), s = w(() => {
4260
+ const { i18n: { t: n } } = se.useI18n(), r = e, a = t, i = O(!1), o = O({}), s = O(/* @__PURE__ */ new Set()), l = w(() => {
4261
4261
  const h = [];
4262
4262
  return new URLSearchParams(r.modelValue).forEach((_, d) => {
4263
4263
  _ !== "" && h.push(d);
@@ -4281,16 +4281,16 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4281
4281
  const p = () => {
4282
4282
  i.value = !i.value;
4283
4283
  }, c = (h) => {
4284
- l.value.has(h) ? l.value.delete(h) : l.value.add(h);
4284
+ s.value.has(h) ? s.value.delete(h) : s.value.add(h);
4285
4285
  }, y = (h) => {
4286
4286
  a("update:modelValue", h);
4287
4287
  }, f = () => {
4288
4288
  y("");
4289
- }, x = (h) => `filter-${h}`, T = (h) => {
4289
+ }, I = (h) => `filter-${h}`, T = (h) => {
4290
4290
  var _, d;
4291
- return (((d = (_ = r.config.schema) == null ? void 0 : _[h]) == null ? void 0 : d.values) ?? []).map((I) => ({
4292
- value: I,
4293
- label: I
4291
+ return (((d = (_ = r.config.schema) == null ? void 0 : _[h]) == null ? void 0 : d.values) ?? []).map((S) => ({
4292
+ value: S,
4293
+ label: S
4294
4294
  }));
4295
4295
  }, k = (h) => {
4296
4296
  var _, d;
@@ -4299,15 +4299,15 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4299
4299
  o.value = {
4300
4300
  ...o.value,
4301
4301
  [h]: ""
4302
- }, W();
4303
- }, j = () => {
4304
- o.value = {}, W(!0);
4305
- }, W = (h = !1) => {
4306
- const _ = Object.keys(o.value).reduce((d, I) => (o.value[I] && (d[I] = `${o.value[I]}`), d), {});
4302
+ }, Z();
4303
+ }, N = () => {
4304
+ o.value = {}, Z(!0);
4305
+ }, Z = (h = !1) => {
4306
+ const _ = Object.keys(o.value).reduce((d, S) => (o.value[S] && (d[S] = `${o.value[S]}`), d), {});
4307
4307
  h && (i.value = !1), a("update:modelValue", new URLSearchParams(_).toString());
4308
4308
  };
4309
4309
  return (h, _) => {
4310
- const d = V("KInput"), I = V("KButton"), K = V("KSelect");
4310
+ const d = R("KInput"), S = R("KButton"), B = R("KSelect");
4311
4311
  return e.config.isExactMatch ? (m(), D(d, {
4312
4312
  key: 0,
4313
4313
  autocomplete: "off",
@@ -4318,130 +4318,130 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4318
4318
  "onUpdate:modelValue": y
4319
4319
  }, {
4320
4320
  before: v(() => [
4321
- N(yn)
4321
+ j(yn)
4322
4322
  ]),
4323
4323
  after: v(() => [
4324
- je(N(g(Fl), {
4324
+ Ne(j(g(qs), {
4325
4325
  class: "kong-ui-entity-filter-clear",
4326
4326
  onClick: f
4327
4327
  }, null, 512), [
4328
- [Ne, e.modelValue !== ""]
4328
+ [je, e.modelValue !== ""]
4329
4329
  ])
4330
4330
  ]),
4331
4331
  _: 1
4332
- }, 8, ["model-value", "placeholder"])) : (m(), $("div", ys, [
4333
- N(I, {
4332
+ }, 8, ["model-value", "placeholder"])) : (m(), $("div", yl, [
4333
+ j(S, {
4334
4334
  appearance: "tertiary",
4335
4335
  "data-testid": "filter-button",
4336
4336
  onClick: p
4337
4337
  }, {
4338
4338
  default: v(() => [
4339
- N(yn),
4340
- Z(" " + F(g(n)("filter.filterButtonText")) + " " + F(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
4339
+ j(yn),
4340
+ Y(" " + q(g(n)("filter.filterButtonText")) + " " + q(l.value.length > 0 ? `(${l.value.length})` : ""), 1)
4341
4341
  ]),
4342
4342
  _: 1
4343
4343
  }),
4344
- je(L("div", {
4344
+ Ne(L("div", {
4345
4345
  class: "kong-ui-entity-filter-backdrop",
4346
4346
  onClick: p
4347
4347
  }, null, 512), [
4348
- [Ne, i.value]
4348
+ [je, i.value]
4349
4349
  ]),
4350
- je(L("div", hs, [
4351
- (m(!0), $(be, null, ve(u.value, (S) => {
4352
- var G, E;
4350
+ Ne(L("div", hl, [
4351
+ (m(!0), $(be, null, ve(u.value, (x) => {
4352
+ var G, M;
4353
4353
  return m(), $("div", {
4354
- key: S.value,
4354
+ key: x.value,
4355
4355
  class: "kong-ui-entity-filter-menu-item",
4356
- "data-testid": S.value
4356
+ "data-testid": x.value
4357
4357
  }, [
4358
4358
  L("span", {
4359
- class: Ee(["menu-item-title", { expanded: l.value.has(S.value) }]),
4359
+ class: Me(["menu-item-title", { expanded: s.value.has(x.value) }]),
4360
4360
  role: "button",
4361
4361
  tabindex: "0",
4362
- onClick: (b) => c(S.value),
4363
- onKeydown: wr((b) => c(S.value), ["enter"])
4362
+ onClick: (b) => c(x.value),
4363
+ onKeydown: wr((b) => c(x.value), ["enter"])
4364
4364
  }, [
4365
- Z(F(S.label) + " ", 1),
4366
- je(L("span", Cs, null, 512), [
4367
- [Ne, s.value.includes(S.value)]
4365
+ Y(q(x.label) + " ", 1),
4366
+ Ne(L("span", Cl, null, 512), [
4367
+ [je, l.value.includes(x.value)]
4368
4368
  ]),
4369
- N(g(jl), {
4370
- class: Ee(["menu-item-expand-icon", { expanded: l.value.has(S.value) }]),
4369
+ j(g(Ns), {
4370
+ class: Me(["menu-item-expand-icon", { expanded: s.value.has(x.value) }]),
4371
4371
  color: g(_a)
4372
4372
  }, null, 8, ["class", "color"])
4373
- ], 42, bs),
4374
- je(L("div", ks, [
4373
+ ], 42, bl),
4374
+ Ne(L("div", kl, [
4375
4375
  L("label", {
4376
4376
  class: "menu-item-label",
4377
- for: x(S.value)
4378
- }, F(g(n)("filter.fieldLabel")), 9, ws),
4379
- ((E = (G = e.config.schema) == null ? void 0 : G[S.value]) == null ? void 0 : E.type) === "select" ? (m(), D(K, {
4377
+ for: I(x.value)
4378
+ }, q(g(n)("filter.fieldLabel")), 9, wl),
4379
+ ((M = (G = e.config.schema) == null ? void 0 : G[x.value]) == null ? void 0 : M.type) === "select" ? (m(), D(B, {
4380
4380
  key: 0,
4381
- id: x(S.value),
4382
- modelValue: o.value[S.value],
4383
- "onUpdate:modelValue": (b) => o.value[S.value] = b,
4384
- items: T(S.value),
4381
+ id: I(x.value),
4382
+ modelValue: o.value[x.value],
4383
+ "onUpdate:modelValue": (b) => o.value[x.value] = b,
4384
+ items: T(x.value),
4385
4385
  placeholder: g(n)("filter.selectPlaceholder")
4386
4386
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), D(d, {
4387
4387
  key: 1,
4388
- id: x(S.value),
4389
- modelValue: o.value[S.value],
4390
- "onUpdate:modelValue": (b) => o.value[S.value] = b,
4388
+ id: I(x.value),
4389
+ modelValue: o.value[x.value],
4390
+ "onUpdate:modelValue": (b) => o.value[x.value] = b,
4391
4391
  autocomplete: "off",
4392
4392
  placeholder: g(n)("filter.inputPlaceholder"),
4393
- type: k(S.value)
4393
+ type: k(x.value)
4394
4394
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
4395
4395
  ], 512), [
4396
- [Ne, l.value.has(S.value)]
4396
+ [je, s.value.has(x.value)]
4397
4397
  ]),
4398
- je(L("div", _s, [
4399
- N(I, {
4398
+ Ne(L("div", _l, [
4399
+ j(S, {
4400
4400
  appearance: "tertiary",
4401
4401
  "data-testid": "apply-filter",
4402
4402
  size: "small",
4403
- onClick: _[0] || (_[0] = (b) => W(!0))
4403
+ onClick: _[0] || (_[0] = (b) => Z(!0))
4404
4404
  }, {
4405
4405
  default: v(() => [
4406
- Z(F(g(n)("filter.applyButtonText")), 1)
4406
+ Y(q(g(n)("filter.applyButtonText")), 1)
4407
4407
  ]),
4408
4408
  _: 1
4409
4409
  }),
4410
- N(I, {
4410
+ j(S, {
4411
4411
  appearance: "tertiary",
4412
4412
  "data-testid": "clear-filter",
4413
4413
  size: "small",
4414
- onClick: (b) => U(S.value)
4414
+ onClick: (b) => U(x.value)
4415
4415
  }, {
4416
4416
  default: v(() => [
4417
- Z(F(g(n)("filter.clearButtonText")), 1)
4417
+ Y(q(g(n)("filter.clearButtonText")), 1)
4418
4418
  ]),
4419
4419
  _: 2
4420
4420
  }, 1032, ["onClick"])
4421
4421
  ], 512), [
4422
- [Ne, l.value.has(S.value)]
4422
+ [je, s.value.has(x.value)]
4423
4423
  ])
4424
- ], 8, vs);
4424
+ ], 8, vl);
4425
4425
  }), 128)),
4426
- L("div", xs, [
4427
- N(I, {
4426
+ L("div", Il, [
4427
+ j(S, {
4428
4428
  appearance: "tertiary",
4429
4429
  size: "small",
4430
- onClick: j
4430
+ onClick: N
4431
4431
  }, {
4432
4432
  default: v(() => [
4433
- Z(F(g(n)("filter.clearAllButtonText")), 1)
4433
+ Y(q(g(n)("filter.clearAllButtonText")), 1)
4434
4434
  ]),
4435
4435
  _: 1
4436
4436
  })
4437
4437
  ])
4438
4438
  ], 512), [
4439
- [Ne, i.value]
4439
+ [je, i.value]
4440
4440
  ])
4441
4441
  ]));
4442
4442
  };
4443
4443
  }
4444
- }), Is = /* @__PURE__ */ Ce(Ss, [["__scopeId", "data-v-94990087"]]), lt = /* @__PURE__ */ X({
4444
+ }), Sl = /* @__PURE__ */ Ce(xl, [["__scopeId", "data-v-94990087"]]), st = /* @__PURE__ */ X({
4445
4445
  __name: "PermissionsWrapper",
4446
4446
  props: {
4447
4447
  /**
@@ -4463,7 +4463,7 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4463
4463
  }
4464
4464
  },
4465
4465
  setup(e) {
4466
- const t = e, n = M(void 0), r = w(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4466
+ const t = e, n = O(void 0), r = w(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4467
4467
  return $e(() => t.authFunction, async () => {
4468
4468
  n.value = await t.authFunction();
4469
4469
  }, { immediate: !0 }), (a, i) => r.value ? ne(a.$slots, "default", {
@@ -4472,42 +4472,42 @@ const ll = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4472
4472
  }) : J("", !0);
4473
4473
  }
4474
4474
  });
4475
- let st;
4476
- const As = new Uint8Array(16);
4477
- function $s() {
4478
- if (!st && (st = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !st))
4475
+ let lt;
4476
+ const Al = new Uint8Array(16);
4477
+ function $l() {
4478
+ if (!lt && (lt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !lt))
4479
4479
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
4480
- return st(As);
4480
+ return lt(Al);
4481
4481
  }
4482
4482
  const ue = [];
4483
4483
  for (let e = 0; e < 256; ++e)
4484
4484
  ue.push((e + 256).toString(16).slice(1));
4485
- function Ts(e, t = 0) {
4485
+ function Tl(e, t = 0) {
4486
4486
  return ue[e[t + 0]] + ue[e[t + 1]] + ue[e[t + 2]] + ue[e[t + 3]] + "-" + ue[e[t + 4]] + ue[e[t + 5]] + "-" + ue[e[t + 6]] + ue[e[t + 7]] + "-" + ue[e[t + 8]] + ue[e[t + 9]] + "-" + ue[e[t + 10]] + ue[e[t + 11]] + ue[e[t + 12]] + ue[e[t + 13]] + ue[e[t + 14]] + ue[e[t + 15]];
4487
4487
  }
4488
- const js = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), hn = {
4489
- randomUUID: js
4488
+ const Nl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), hn = {
4489
+ randomUUID: Nl
4490
4490
  };
4491
- function Ns(e, t, n) {
4491
+ function jl(e, t, n) {
4492
4492
  if (hn.randomUUID && !t && !e)
4493
4493
  return hn.randomUUID();
4494
4494
  e = e || {};
4495
- const r = e.random || (e.rng || $s)();
4495
+ const r = e.random || (e.rng || $l)();
4496
4496
  if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
4497
4497
  n = n || 0;
4498
4498
  for (let a = 0; a < 16; ++a)
4499
4499
  t[n + a] = r[a];
4500
4500
  return t;
4501
4501
  }
4502
- return Ts(r);
4502
+ return Tl(r);
4503
4503
  }
4504
- const Os = ["aria-labelledby"], Ms = { class: "form-section-wrapper" }, Es = {
4504
+ const El = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, Ml = {
4505
4505
  key: 1,
4506
4506
  class: "form-section-description"
4507
- }, qs = {
4507
+ }, Fl = {
4508
4508
  key: 2,
4509
4509
  class: "form-section-footer"
4510
- }, Fs = { class: "form-section-content" }, Bs = /* @__PURE__ */ X({
4510
+ }, ql = { class: "form-section-content" }, Kl = /* @__PURE__ */ X({
4511
4511
  __name: "EntityFormSection",
4512
4512
  props: {
4513
4513
  title: {
@@ -4536,46 +4536,46 @@ const Os = ["aria-labelledby"], Ms = { class: "form-section-wrapper" }, Es = {
4536
4536
  }
4537
4537
  },
4538
4538
  setup(e) {
4539
- const t = Nt(), n = Ns();
4539
+ const t = jt(), n = jl();
4540
4540
  return (r, a) => (m(), $("div", {
4541
4541
  "aria-labelledby": e.title ? g(n) : void 0,
4542
- class: Ee(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
4542
+ class: Me(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
4543
4543
  role: "group"
4544
4544
  }, [
4545
- L("div", Ms, [
4545
+ L("div", Ol, [
4546
4546
  e.hideInfoHeader ? J("", !0) : (m(), $("div", {
4547
4547
  key: 0,
4548
- class: Ee(["form-section-info", { sticky: e.stickyInfoHeader }])
4548
+ class: Me(["form-section-info", { sticky: e.stickyInfoHeader }])
4549
4549
  }, [
4550
- e.title ? (m(), D(Se(e.titleTag), {
4550
+ e.title ? (m(), D(xe(e.titleTag), {
4551
4551
  key: 0,
4552
4552
  id: g(n),
4553
4553
  class: "form-section-title"
4554
4554
  }, {
4555
4555
  default: v(() => [
4556
- Z(F(e.title), 1)
4556
+ Y(q(e.title), 1)
4557
4557
  ]),
4558
4558
  _: 1
4559
4559
  }, 8, ["id"])) : J("", !0),
4560
- e.description || g(t).description ? (m(), $("div", Es, [
4560
+ e.description || g(t).description ? (m(), $("div", Ml, [
4561
4561
  ne(r.$slots, "description", {}, () => [
4562
- L("p", null, F(e.description), 1)
4562
+ L("p", null, q(e.description), 1)
4563
4563
  ], !0)
4564
4564
  ])) : J("", !0),
4565
- g(t).footer ? (m(), $("div", qs, [
4565
+ g(t).footer ? (m(), $("div", Fl, [
4566
4566
  ne(r.$slots, "footer", {}, void 0, !0)
4567
4567
  ])) : J("", !0)
4568
4568
  ], 2)),
4569
- L("div", Fs, [
4569
+ L("div", ql, [
4570
4570
  ne(r.$slots, "default", {}, void 0, !0)
4571
4571
  ])
4572
4572
  ])
4573
- ], 10, Os));
4573
+ ], 10, El));
4574
4574
  }
4575
- }), vn = /* @__PURE__ */ Ce(Bs, [["__scopeId", "data-v-b1f74200"]]), { useAxios: Ut, useDeleteUrlBuilder: Ks, useErrors: Ls, useExternalLinkCreator: su, useFetchUrlBuilder: uu, useFetcher: Us, useDebouncedFilter: vr, useStringHelpers: cu, useHelpers: du, useGatewayFeatureSupported: pu, useTruncationDetector: fu, useValidators: Rs } = le, Ps = { class: "add-to-group-form-container" }, Vs = { class: "add-to-group-cta-text" }, Ds = {
4575
+ }), vn = /* @__PURE__ */ Ce(Kl, [["__scopeId", "data-v-b1f74200"]]), { useAxios: Ut, useDeleteUrlBuilder: Bl, useErrors: Ll, useExternalLinkCreator: lu, useFetchUrlBuilder: uu, useFetcher: Ul, useDebouncedFilter: vr, useStringHelpers: cu, useHelpers: du, useGatewayFeatureSupported: pu, useTruncationDetector: fu, useValidators: Pl } = se, Vl = { class: "add-to-group-form-container" }, Rl = { class: "add-to-group-cta-text" }, Dl = {
4576
4576
  key: 0,
4577
4577
  class: "kong-ui-entity-add-to-groups-error"
4578
- }, zs = { key: 0 }, Gs = /* @__PURE__ */ X({
4578
+ }, zl = { key: 0 }, Gl = /* @__PURE__ */ X({
4579
4579
  __name: "AddToGroupModal",
4580
4580
  props: {
4581
4581
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4592,113 +4592,113 @@ const Os = ["aria-labelledby"], Ms = { class: "form-section-wrapper" }, Es = {
4592
4592
  },
4593
4593
  emits: ["cancel", "add:success", "add:partial-success", "error"],
4594
4594
  setup(e, { emit: t }) {
4595
- var E;
4596
- const { i18n: { t: n } } = yt.useI18n(), r = e, a = t, { axiosInstance: i } = Ut((E = r.config) == null ? void 0 : E.axiosRequestConfig), o = M([]), {
4597
- debouncedQueryChange: l,
4598
- loading: s,
4595
+ var M;
4596
+ const { i18n: { t: n } } = yt.useI18n(), r = e, a = t, { axiosInstance: i } = Ut((M = r.config) == null ? void 0 : M.axiosRequestConfig), o = O([]), {
4597
+ debouncedQueryChange: s,
4598
+ loading: l,
4599
4599
  allRecords: u,
4600
4600
  error: p,
4601
4601
  loadItems: c,
4602
4602
  results: y
4603
4603
  } = vr(
4604
4604
  r.config,
4605
- Oe.list[r.config.app].all,
4605
+ Ee.list[r.config.app].all,
4606
4606
  "",
4607
4607
  {
4608
4608
  fetchedItemsKey: "data",
4609
4609
  searchKeys: ["name", "id"]
4610
4610
  }
4611
- ), f = w(() => p.value ? n("consumer_groups.errors.general") : ""), x = M(0), T = w(() => u.value === void 0), k = w(() => y.value.map((b) => ({
4611
+ ), f = w(() => p.value ? n("consumer_groups.errors.general") : ""), I = O(0), T = w(() => u.value === void 0), k = w(() => y.value.map((b) => ({
4612
4612
  label: b.name,
4613
4613
  value: b.id,
4614
4614
  selected: o.value.includes(b.id),
4615
4615
  data: b
4616
4616
  // we need this to determine whether or not to show the description text
4617
4617
  }))), U = (b) => {
4618
- var q;
4619
- const B = T.value ? y.value.find((H) => H.id === b) : (q = u.value) == null ? void 0 : q.find((H) => H.id === b);
4620
- return B ? B.name : b;
4621
- }, j = () => {
4622
- _.value = "", W.value = [], S.value = [], a("cancel");
4623
- }, W = M([]), h = M(!1), _ = M(""), d = async () => {
4618
+ var F;
4619
+ const K = T.value ? y.value.find((H) => H.id === b) : (F = u.value) == null ? void 0 : F.find((H) => H.id === b);
4620
+ return K ? K.name : b;
4621
+ }, N = () => {
4622
+ _.value = "", Z.value = [], x.value = [], a("cancel");
4623
+ }, Z = O([]), h = O(!1), _ = O(""), d = async () => {
4624
4624
  if (!o.value.length) {
4625
- _.value = "", S.value = [], a("cancel");
4625
+ _.value = "", x.value = [], a("cancel");
4626
4626
  return;
4627
4627
  }
4628
- h.value = !0, _.value = "", W.value = [], S.value = [];
4628
+ h.value = !0, _.value = "", Z.value = [], x.value = [];
4629
4629
  try {
4630
- const b = o.value.map((H) => K(H)), B = await Promise.allSettled(b);
4631
- let q = !0;
4632
- B.forEach((H) => {
4633
- H.status !== "fulfilled" && (q = !1);
4634
- }), q ? (W.value = [], S.value = [], a("add:success", o.value), o.value = []) : (W.value.length && a("add:partial-success", W.value), o.value = [], G(B));
4630
+ const b = o.value.map((H) => B(H)), K = await Promise.allSettled(b);
4631
+ let F = !0;
4632
+ K.forEach((H) => {
4633
+ H.status !== "fulfilled" && (F = !1);
4634
+ }), F ? (Z.value = [], x.value = [], a("add:success", o.value), o.value = []) : (Z.value.length && a("add:partial-success", Z.value), o.value = [], G(K));
4635
4635
  } catch {
4636
4636
  _.value = n("consumer_groups.errors.add"), a("error", _.value);
4637
4637
  } finally {
4638
4638
  h.value = !1;
4639
4639
  }
4640
- }, I = w(() => {
4641
- var B, q, H, te;
4642
- let b = `${r.config.apiBaseUrl}${Oe.list[r.config.app].forConsumer}`;
4643
- return r.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((B = r.config) == null ? void 0 : B.controlPlaneId) || "").replace(/{consumerId}/gi, ((q = r.config) == null ? void 0 : q.consumerId) || "") : r.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (H = r.config) != null && H.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((te = r.config) == null ? void 0 : te.consumerId) || "")), b;
4644
- }), K = async (b) => {
4645
- const B = {
4640
+ }, S = w(() => {
4641
+ var K, F, H, te;
4642
+ let b = `${r.config.apiBaseUrl}${Ee.list[r.config.app].forConsumer}`;
4643
+ return r.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((K = r.config) == null ? void 0 : K.controlPlaneId) || "").replace(/{consumerId}/gi, ((F = r.config) == null ? void 0 : F.consumerId) || "") : r.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (H = r.config) != null && H.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((te = r.config) == null ? void 0 : te.consumerId) || "")), b;
4644
+ }), B = async (b) => {
4645
+ const K = {
4646
4646
  group: b
4647
4647
  };
4648
4648
  try {
4649
- const q = await i.post(I.value, B);
4650
- return W.value.push(b), q;
4651
- } catch (q) {
4652
- let H = `${U(b)} - ${q.message}`;
4653
- return q.response.status === 409 && (H = `${U(b)} - ${n("consumer_groups.errors.already_added")}`), Promise.reject(Error(H));
4649
+ const F = await i.post(S.value, K);
4650
+ return Z.value.push(b), F;
4651
+ } catch (F) {
4652
+ let H = `${U(b)} - ${F.message}`;
4653
+ return F.response.status === 409 && (H = `${U(b)} - ${n("consumer_groups.errors.already_added")}`), Promise.reject(Error(H));
4654
4654
  }
4655
- }, S = M([]), G = (b) => {
4656
- S.value = b.map((B) => {
4657
- var q;
4658
- return (q = B.reason) == null ? void 0 : q.message;
4655
+ }, x = O([]), G = (b) => {
4656
+ x.value = b.map((K) => {
4657
+ var F;
4658
+ return (F = K.reason) == null ? void 0 : F.message;
4659
4659
  }).filter(Boolean);
4660
4660
  };
4661
4661
  return $e(k, () => {
4662
- x.value++;
4662
+ I.value++;
4663
4663
  }, { immediate: !0, deep: !0 }), $e(() => r.visible, () => {
4664
4664
  r.visible && c();
4665
- }, { immediate: !0 }), (b, B) => {
4666
- const q = V("KMultiselect"), H = V("KAlert"), te = V("KPrompt");
4665
+ }, { immediate: !0 }), (b, K) => {
4666
+ const F = R("KMultiselect"), H = R("KAlert"), te = R("KPrompt");
4667
4667
  return m(), D(te, {
4668
4668
  "action-button-disabled": h.value,
4669
4669
  class: "kong-ui-entities-add-to-groups-modal",
4670
4670
  "data-testid": "add-to-group-modal",
4671
4671
  title: g(n)("consumer_groups.consumers.add.title"),
4672
4672
  visible: e.visible,
4673
- onCancel: j,
4673
+ onCancel: N,
4674
4674
  onProceed: d
4675
4675
  }, {
4676
4676
  default: v(() => [
4677
- L("div", Ps, [
4678
- L("p", Vs, F(g(n)("consumer_groups.consumers.add.ctaText")), 1),
4679
- N(q, {
4677
+ L("div", Vl, [
4678
+ L("p", Rl, q(g(n)("consumer_groups.consumers.add.ctaText")), 1),
4679
+ j(F, {
4680
4680
  modelValue: o.value,
4681
- "onUpdate:modelValue": B[0] || (B[0] = (de) => o.value = de),
4681
+ "onUpdate:modelValue": K[0] || (K[0] = (de) => o.value = de),
4682
4682
  autosuggest: "",
4683
4683
  "data-testid": "add-to-groups-multiselect",
4684
4684
  "dropdown-footer-text": T.value ? g(n)("consumer_groups.consumers.add.footer") : void 0,
4685
4685
  items: k.value,
4686
4686
  label: g(n)("consumer_groups.consumers.add.consumer_groups_label"),
4687
- loading: g(s),
4687
+ loading: g(l),
4688
4688
  placeholder: g(n)("consumer_groups.consumers.add.consumer_group_placeholder"),
4689
4689
  readonly: h.value,
4690
4690
  required: "",
4691
4691
  width: "100%",
4692
- onQueryChange: g(l)
4692
+ onQueryChange: g(s)
4693
4693
  }, null, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
4694
- _.value || f.value || S.value.length ? (m(), $("div", Ds, [
4695
- N(H, { appearance: "danger" }, {
4694
+ _.value || f.value || x.value.length ? (m(), $("div", Dl, [
4695
+ j(H, { appearance: "danger" }, {
4696
4696
  default: v(() => [
4697
- L("p", null, F(g(n)("consumer_groups.errors.add")), 1),
4698
- S.value.length ? (m(), $("ul", zs, [
4699
- (m(!0), $(be, null, ve(S.value, (de, Ye) => (m(), $("li", { key: Ye }, F(de), 1))), 128))
4697
+ L("p", null, q(g(n)("consumer_groups.errors.add")), 1),
4698
+ x.value.length ? (m(), $("ul", zl, [
4699
+ (m(!0), $(be, null, ve(x.value, (de, We) => (m(), $("li", { key: We }, q(de), 1))), 128))
4700
4700
  ])) : J("", !0),
4701
- L("div", null, F(_.value || f.value), 1)
4701
+ L("div", null, q(_.value || f.value), 1)
4702
4702
  ]),
4703
4703
  _: 1
4704
4704
  })
@@ -4709,12 +4709,12 @@ const Os = ["aria-labelledby"], Ms = { class: "form-section-wrapper" }, Es = {
4709
4709
  }, 8, ["action-button-disabled", "title", "visible"]);
4710
4710
  };
4711
4711
  }
4712
- }), Rt = (e, t) => {
4712
+ }), Pt = (e, t) => {
4713
4713
  const n = e.__vccOpts || e;
4714
4714
  for (const [r, a] of t)
4715
4715
  n[r] = a;
4716
4716
  return n;
4717
- }, Hs = /* @__PURE__ */ Rt(Gs, [["__scopeId", "data-v-bb0a8037"]]), Js = { class: "kong-ui-entities-consumer-groups-list" }, Ws = { key: 1 }, Ys = /* @__PURE__ */ X({
4717
+ }, Hl = /* @__PURE__ */ Pt(Gl, [["__scopeId", "data-v-bb0a8037"]]), Jl = { class: "kong-ui-entities-consumer-groups-list" }, Zl = { key: 1 }, Wl = /* @__PURE__ */ X({
4718
4718
  __name: "ConsumerGroupList",
4719
4719
  props: {
4720
4720
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4760,20 +4760,20 @@ const Os = ["aria-labelledby"], Ms = { class: "form-section-wrapper" }, Es = {
4760
4760
  },
4761
4761
  emits: ["error", "copy:success", "copy:error", "delete:success", "add:success", "remove:success"],
4762
4762
  setup(e, { emit: t }) {
4763
- var Vt;
4764
- const n = t, r = e, { i18nT: a, i18n: { t: i } } = yt.useI18n(), o = Ot(), { axiosInstance: l } = Ut((Vt = r.config) == null ? void 0 : Vt.axiosRequestConfig), s = M(1), u = w(() => !!r.config.consumerId), p = w(
4763
+ var Rt;
4764
+ const n = t, r = e, { i18nT: a, i18n: { t: i } } = yt.useI18n(), o = Et(), { axiosInstance: s } = Ut((Rt = r.config) == null ? void 0 : Rt.axiosRequestConfig), l = O(1), u = w(() => !!r.config.consumerId), p = w(
4765
4765
  () => u.value ? "kong-ui-entities-consumer-groups-list-in-consumer-page" : "kong-ui-entities-consumer-groups-list"
4766
4766
  ), c = w(() => r.config.app !== "kongManager" || !!r.config.disableSorting), y = {
4767
4767
  name: { label: i("consumer_groups.list.table_headers.name"), searchable: !0, sortable: !0 }
4768
4768
  };
4769
4769
  r.config.app === "kongManager" && (y.consumers_count = { label: i("consumer_groups.list.table_headers.consumers_count"), searchable: !1, sortable: !1 }), y.tags = { label: i("consumer_groups.list.table_headers.tags"), sortable: !1 };
4770
- const f = y, x = (A) => ({
4770
+ const f = y, I = (A) => ({
4771
4771
  "data-testid": A.username ?? A.custom_id ?? A.id
4772
4772
  }), T = w(() => {
4773
- var Y, re, ge, we;
4774
- let A = `${r.config.apiBaseUrl}${Oe.list[r.config.app][u.value ? "forConsumer" : "all"]}`;
4775
- return r.config.app === "konnect" ? A = A.replace(/{controlPlaneId}/gi, ((Y = r.config) == null ? void 0 : Y.controlPlaneId) || "").replace(/{consumerId}/gi, ((re = r.config) == null ? void 0 : re.consumerId) || "") : r.config.app === "kongManager" && (A = A.replace(/\/{workspace}/gi, (ge = r.config) != null && ge.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((we = r.config) == null ? void 0 : we.consumerId) || "")), A;
4776
- }), k = M(""), U = w(() => {
4773
+ var W, re, ge, we;
4774
+ let A = `${r.config.apiBaseUrl}${Ee.list[r.config.app][u.value ? "forConsumer" : "all"]}`;
4775
+ return r.config.app === "konnect" ? A = A.replace(/{controlPlaneId}/gi, ((W = r.config) == null ? void 0 : W.controlPlaneId) || "").replace(/{consumerId}/gi, ((re = r.config) == null ? void 0 : re.consumerId) || "") : r.config.app === "kongManager" && (A = A.replace(/\/{workspace}/gi, (ge = r.config) != null && ge.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((we = r.config) == null ? void 0 : we.consumerId) || "")), A;
4776
+ }), k = O(""), U = w(() => {
4777
4777
  const A = r.config.app === "konnect" || r.config.isExactMatch;
4778
4778
  return A ? {
4779
4779
  isExactMatch: A,
@@ -4789,13 +4789,13 @@ const Os = ["aria-labelledby"], Ms = { class: "form-section-wrapper" }, Es = {
4789
4789
  },
4790
4790
  schema: r.config.filterSchema
4791
4791
  };
4792
- }), j = w(() => u.value && !r.config.paginatedEndpoint ? "consumer_groups" : void 0), { fetcher: W, fetcherState: h } = Us(r.config, T.value, j.value), _ = () => {
4792
+ }), N = w(() => u.value && !r.config.paginatedEndpoint ? "consumer_groups" : void 0), { fetcher: Z, fetcherState: h } = Ul(r.config, T.value, N.value), _ = () => {
4793
4793
  k.value = "";
4794
4794
  }, d = () => {
4795
- s.value++;
4796
- }, I = M(null), K = (A, Y) => {
4795
+ l.value++;
4796
+ }, S = O(null), B = (A, W) => {
4797
4797
  const re = A.id;
4798
- if (!Y(re)) {
4798
+ if (!W(re)) {
4799
4799
  n("copy:error", {
4800
4800
  entity: A,
4801
4801
  field: "id",
@@ -4808,9 +4808,9 @@ const Os = ["aria-labelledby"], Ms = { class: "form-section-wrapper" }, Es = {
4808
4808
  field: "id",
4809
4809
  message: i("consumer_groups.copy.success", { val: re })
4810
4810
  });
4811
- }, S = (A, Y) => {
4811
+ }, x = (A, W) => {
4812
4812
  const re = JSON.stringify(A);
4813
- if (!Y(re)) {
4813
+ if (!W(re)) {
4814
4814
  n("copy:error", {
4815
4815
  entity: A,
4816
4816
  message: i("consumer_groups.errors.copy")
@@ -4824,68 +4824,68 @@ const Os = ["aria-labelledby"], Ms = { class: "form-section-wrapper" }, Es = {
4824
4824
  }, G = async (A) => {
4825
4825
  var re;
4826
4826
  await ((re = r.canRetrieve) == null ? void 0 : re.call(r, A)) && o.push(r.config.getViewRoute(A.id));
4827
- }, E = (A) => ({
4827
+ }, M = (A) => ({
4828
4828
  label: i("consumer_groups.actions.view"),
4829
4829
  to: r.config.getViewRoute(A)
4830
4830
  }), b = (A) => ({
4831
4831
  label: i("consumer_groups.actions.edit"),
4832
4832
  to: r.config.getEditRoute(A)
4833
- }), B = M(void 0), q = M(!1), H = M(!1), te = M(""), de = Ks(r.config, T.value), Ye = (A) => {
4834
- B.value = A, q.value = !0;
4833
+ }), K = O(void 0), F = O(!1), H = O(!1), te = O(""), de = Bl(r.config, T.value), We = (A) => {
4834
+ K.value = A, F.value = !0;
4835
4835
  }, bt = () => {
4836
- q.value = !1;
4836
+ F.value = !1;
4837
4837
  }, it = async () => {
4838
- var A, Y, re;
4839
- if ((A = B.value) != null && A.id) {
4838
+ var A, W, re;
4839
+ if ((A = K.value) != null && A.id) {
4840
4840
  H.value = !0;
4841
4841
  try {
4842
- await l.delete(de(B.value.id)), H.value = !1, q.value = !1, s.value++, n("delete:success", B.value);
4842
+ await s.delete(de(K.value.id)), H.value = !1, F.value = !1, l.value++, n("delete:success", K.value);
4843
4843
  } catch (ge) {
4844
- te.value = ((re = (Y = ge.response) == null ? void 0 : Y.data) == null ? void 0 : re.message) || ge.message || i("consumer_groups.errors.delete"), n("error", ge);
4844
+ te.value = ((re = (W = ge.response) == null ? void 0 : W.data) == null ? void 0 : re.message) || ge.message || i("consumer_groups.errors.delete"), n("error", ge);
4845
4845
  } finally {
4846
4846
  H.value = !1;
4847
4847
  }
4848
4848
  }
4849
- }, Le = M(!1), Ze = () => {
4849
+ }, Le = O(!1), Ye = () => {
4850
4850
  Le.value = !0;
4851
4851
  }, C = () => {
4852
4852
  Le.value = !1;
4853
- }, R = (A, Y) => {
4854
- Y || C(), s.value++, n("add:success", A);
4853
+ }, P = (A, W) => {
4854
+ W || C(), l.value++, n("add:success", A);
4855
4855
  }, ae = () => {
4856
- u.value && Ze();
4857
- }, P = M(void 0), z = M(!1), me = M(""), ke = (A) => {
4858
- P.value = A, z.value = !0;
4859
- }, se = () => {
4860
- z.value = !1, P.value = void 0;
4856
+ u.value && Ye();
4857
+ }, V = O(void 0), z = O(!1), me = O(""), ke = (A) => {
4858
+ V.value = A, z.value = !0;
4859
+ }, le = () => {
4860
+ z.value = !1, V.value = void 0;
4861
4861
  }, Ue = w(() => {
4862
- var Y, re, ge, we;
4863
- let A = `${r.config.apiBaseUrl}${Oe.list[r.config.app].oneForConsumer}`;
4864
- return r.config.app === "konnect" ? A = A.replace(/{controlPlaneId}/gi, ((Y = r.config) == null ? void 0 : Y.controlPlaneId) || "").replace(/{consumerId}/gi, ((re = r.config) == null ? void 0 : re.consumerId) || "") : r.config.app === "kongManager" && (A = A.replace(/\/{workspace}/gi, (ge = r.config) != null && ge.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((we = r.config) == null ? void 0 : we.consumerId) || "")), A;
4865
- }), Qe = M(!1), br = async () => {
4866
- if (P.value) {
4862
+ var W, re, ge, we;
4863
+ let A = `${r.config.apiBaseUrl}${Ee.list[r.config.app].oneForConsumer}`;
4864
+ return r.config.app === "konnect" ? A = A.replace(/{controlPlaneId}/gi, ((W = r.config) == null ? void 0 : W.controlPlaneId) || "").replace(/{consumerId}/gi, ((re = r.config) == null ? void 0 : re.consumerId) || "") : r.config.app === "kongManager" && (A = A.replace(/\/{workspace}/gi, (ge = r.config) != null && ge.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((we = r.config) == null ? void 0 : we.consumerId) || "")), A;
4865
+ }), Qe = O(!1), br = async () => {
4866
+ if (V.value) {
4867
4867
  Qe.value = !0;
4868
4868
  try {
4869
- const A = Ue.value.replace(/{consumerGroupId}/gi, P.value.id);
4870
- await l.delete(A), n("remove:success", P.value), se(), s.value++;
4869
+ const A = Ue.value.replace(/{consumerGroupId}/gi, V.value.id);
4870
+ await s.delete(A), n("remove:success", V.value), le(), l.value++;
4871
4871
  } catch (A) {
4872
4872
  me.value = A.message || i("consumer_groups.errors.delete"), n("error", A);
4873
4873
  } finally {
4874
4874
  Qe.value = !1;
4875
4875
  }
4876
4876
  }
4877
- }, Pt = M(!0);
4877
+ }, Vt = O(!0);
4878
4878
  $e(h, (A) => {
4879
- var Y, re, ge, we;
4880
- if (Array.isArray((Y = A == null ? void 0 : A.response) == null ? void 0 : Y.data) && (Pt.value = A.response.data.length > 0), A.status === Fe.Error) {
4881
- I.value = {
4879
+ var W, re, ge, we;
4880
+ if (Array.isArray((W = A == null ? void 0 : A.response) == null ? void 0 : W.data) && (Vt.value = A.response.data.length > 0), A.status === qe.Error) {
4881
+ S.value = {
4882
4882
  title: i("consumer_groups.errors.general")
4883
- }, (we = (ge = (re = A.error) == null ? void 0 : re.response) == null ? void 0 : ge.data) != null && we.message && (I.value.message = A.error.response.data.message), n("error", A.error);
4883
+ }, (we = (ge = (re = A.error) == null ? void 0 : re.response) == null ? void 0 : ge.data) != null && we.message && (S.value.message = A.error.response.data.message), n("error", A.error);
4884
4884
  return;
4885
4885
  }
4886
- I.value = null;
4886
+ S.value = null;
4887
4887
  });
4888
- const Ct = M({
4888
+ const Ct = O({
4889
4889
  ctaPath: u.value ? void 0 : r.config.createRoute,
4890
4890
  ctaText: void 0,
4891
4891
  message: `${i("consumer_groups.list.empty_state.description")}${r.config.additionMessageForEmptyState ? ` ${r.config.additionMessageForEmptyState}` : ""}`,
@@ -4893,35 +4893,35 @@ const Os = ["aria-labelledby"], Ms = { class: "form-section-wrapper" }, Es = {
4893
4893
  });
4894
4894
  return gt(async () => {
4895
4895
  await r.canCreate() && (Ct.value.title = u.value ? i("consumer_groups.list.empty_state.title_for_consumer") : i("consumer_groups.list.empty_state.title"), Ct.value.ctaText = u.value ? i("consumer_groups.actions.add_to_group") : i("consumer_groups.actions.create"));
4896
- }), (A, Y) => {
4897
- const re = V("KButton"), ge = V("KBadge"), we = V("KTruncate"), Xe = V("KDropdownItem"), Dt = V("KClipboardProvider"), Cr = V("KPrompt");
4898
- return m(), $("div", Js, [
4899
- N(g(is), {
4896
+ }), (A, W) => {
4897
+ const re = R("KButton"), ge = R("KBadge"), we = R("KTruncate"), Xe = R("KDropdownItem"), Dt = R("KClipboardProvider"), Cr = R("KPrompt");
4898
+ return m(), $("div", Jl, [
4899
+ j(g(il), {
4900
4900
  "cache-identifier": e.cacheIdentifier,
4901
4901
  "disable-pagination": u.value && !e.config.paginatedEndpoint,
4902
4902
  "disable-pagination-page-jump": "",
4903
4903
  "disable-sorting": c.value,
4904
4904
  "empty-state-options": Ct.value,
4905
4905
  "enable-entity-actions": "",
4906
- "error-message": I.value,
4907
- fetcher: g(W),
4908
- "fetcher-cache-key": s.value,
4906
+ "error-message": S.value,
4907
+ fetcher: g(Z),
4908
+ "fetcher-cache-key": l.value,
4909
4909
  "pagination-type": "offset",
4910
4910
  "preferences-storage-key": p.value,
4911
4911
  query: k.value,
4912
- "row-attributes": x,
4912
+ "row-attributes": I,
4913
4913
  "table-headers": g(f),
4914
4914
  "use-action-outside": e.useActionOutside,
4915
4915
  onClearSearchInput: _,
4916
- "onClick:row": Y[3] || (Y[3] = (Q) => G(Q)),
4916
+ "onClick:row": W[3] || (W[3] = (Q) => G(Q)),
4917
4917
  onEmptyStateCtaClicked: ae,
4918
4918
  onSort: d
4919
4919
  }, {
4920
4920
  "toolbar-filter": v(() => [
4921
- u.value ? J("", !0) : (m(), D(g(Is), {
4921
+ u.value ? J("", !0) : (m(), D(g(Sl), {
4922
4922
  key: 0,
4923
4923
  modelValue: k.value,
4924
- "onUpdate:modelValue": Y[0] || (Y[0] = (Q) => k.value = Q),
4924
+ "onUpdate:modelValue": W[0] || (W[0] = (Q) => k.value = Q),
4925
4925
  config: U.value
4926
4926
  }, null, 8, ["modelValue", "config"]))
4927
4927
  ]),
@@ -4930,24 +4930,24 @@ const Os = ["aria-labelledby"], Ms = { class: "form-section-wrapper" }, Es = {
4930
4930
  disabled: !e.useActionOutside,
4931
4931
  to: "#kong-ui-app-page-header-action-button"
4932
4932
  }, [
4933
- N(g(lt), {
4933
+ j(g(st), {
4934
4934
  "auth-function": () => e.canCreate()
4935
4935
  }, {
4936
4936
  default: v(() => [
4937
- je(N(re, {
4937
+ Ne(j(re, {
4938
4938
  appearance: "primary",
4939
4939
  "data-testid": "toolbar-add-consumer-group",
4940
4940
  size: "large",
4941
4941
  to: e.config.consumerId ? void 0 : e.config.createRoute,
4942
- onClick: Y[1] || (Y[1] = () => e.config.consumerId ? Ze() : void 0)
4942
+ onClick: W[1] || (W[1] = () => e.config.consumerId ? Ye() : void 0)
4943
4943
  }, {
4944
4944
  default: v(() => [
4945
- N(g(Br)),
4946
- Z(" " + F(e.config.consumerId ? g(i)("consumer_groups.actions.add_to_group") : g(i)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
4945
+ j(g(Kr)),
4946
+ Y(" " + q(e.config.consumerId ? g(i)("consumer_groups.actions.add_to_group") : g(i)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
4947
4947
  ]),
4948
4948
  _: 1
4949
4949
  }, 8, ["to"]), [
4950
- [Ne, Pt.value]
4950
+ [je, Vt.value]
4951
4951
  ])
4952
4952
  ]),
4953
4953
  _: 1
@@ -4955,92 +4955,92 @@ const Os = ["aria-labelledby"], Ms = { class: "form-section-wrapper" }, Es = {
4955
4955
  ], 8, ["disabled"]))
4956
4956
  ]),
4957
4957
  name: v(({ rowValue: Q }) => [
4958
- L("b", null, F(Q ?? "-"), 1)
4958
+ L("b", null, q(Q ?? "-"), 1)
4959
4959
  ]),
4960
4960
  consumers_count: v(({ rowValue: Q }) => [
4961
- Z(F(Q ?? "-"), 1)
4961
+ Y(q(Q ?? "-"), 1)
4962
4962
  ]),
4963
4963
  tags: v(({ rowValue: Q }) => [
4964
4964
  (Q == null ? void 0 : Q.length) > 0 ? (m(), D(we, { key: 0 }, {
4965
4965
  default: v(() => [
4966
- (m(!0), $(be, null, ve(Q, (Re) => (m(), D(ge, {
4967
- key: Re,
4968
- onClick: Y[2] || (Y[2] = St(() => {
4966
+ (m(!0), $(be, null, ve(Q, (Pe) => (m(), D(ge, {
4967
+ key: Pe,
4968
+ onClick: W[2] || (W[2] = xt(() => {
4969
4969
  }, ["stop"]))
4970
4970
  }, {
4971
4971
  default: v(() => [
4972
- Z(F(Re), 1)
4972
+ Y(q(Pe), 1)
4973
4973
  ]),
4974
4974
  _: 2
4975
4975
  }, 1024))), 128))
4976
4976
  ]),
4977
4977
  _: 2
4978
- }, 1024)) : (m(), $("span", Ws, "-"))
4978
+ }, 1024)) : (m(), $("span", Zl, "-"))
4979
4979
  ]),
4980
4980
  actions: v(({ row: Q }) => [
4981
- N(Dt, null, {
4982
- default: v(({ copyToClipboard: Re }) => [
4983
- N(Xe, {
4981
+ j(Dt, null, {
4982
+ default: v(({ copyToClipboard: Pe }) => [
4983
+ j(Xe, {
4984
4984
  "data-testid": "action-entity-copy-id",
4985
- onClick: (kr) => K(Q, Re)
4985
+ onClick: (kr) => B(Q, Pe)
4986
4986
  }, {
4987
4987
  default: v(() => [
4988
- Z(F(g(i)("consumer_groups.actions.copy_id")), 1)
4988
+ Y(q(g(i)("consumer_groups.actions.copy_id")), 1)
4989
4989
  ]),
4990
4990
  _: 2
4991
4991
  }, 1032, ["onClick"])
4992
4992
  ]),
4993
4993
  _: 2
4994
4994
  }, 1024),
4995
- N(Dt, null, {
4996
- default: v(({ copyToClipboard: Re }) => [
4997
- N(Xe, {
4995
+ j(Dt, null, {
4996
+ default: v(({ copyToClipboard: Pe }) => [
4997
+ j(Xe, {
4998
4998
  "data-testid": "action-entity-copy-json",
4999
- onClick: (kr) => S(Q, Re)
4999
+ onClick: (kr) => x(Q, Pe)
5000
5000
  }, {
5001
5001
  default: v(() => [
5002
- Z(F(g(i)("consumer_groups.actions.copy_json")), 1)
5002
+ Y(q(g(i)("consumer_groups.actions.copy_json")), 1)
5003
5003
  ]),
5004
5004
  _: 2
5005
5005
  }, 1032, ["onClick"])
5006
5006
  ]),
5007
5007
  _: 2
5008
5008
  }, 1024),
5009
- N(g(lt), {
5009
+ j(g(st), {
5010
5010
  "auth-function": () => e.canRetrieve(Q)
5011
5011
  }, {
5012
5012
  default: v(() => [
5013
- N(Xe, {
5013
+ j(Xe, {
5014
5014
  "data-testid": "action-entity-view",
5015
5015
  "has-divider": "",
5016
- item: E(Q.id)
5016
+ item: M(Q.id)
5017
5017
  }, null, 8, ["item"])
5018
5018
  ]),
5019
5019
  _: 2
5020
5020
  }, 1032, ["auth-function"]),
5021
- N(g(lt), {
5021
+ j(g(st), {
5022
5022
  "auth-function": () => e.canEdit(Q)
5023
5023
  }, {
5024
5024
  default: v(() => [
5025
- N(Xe, {
5025
+ j(Xe, {
5026
5026
  "data-testid": "action-entity-edit",
5027
5027
  item: b(Q.id)
5028
5028
  }, null, 8, ["item"])
5029
5029
  ]),
5030
5030
  _: 2
5031
5031
  }, 1032, ["auth-function"]),
5032
- N(g(lt), {
5032
+ j(g(st), {
5033
5033
  "auth-function": () => e.canDelete(Q)
5034
5034
  }, {
5035
5035
  default: v(() => [
5036
- N(Xe, {
5036
+ j(Xe, {
5037
5037
  danger: "",
5038
5038
  "data-testid": "action-entity-delete",
5039
5039
  "has-divider": "",
5040
- onClick: () => e.config.consumerId ? ke(Q) : Ye(Q)
5040
+ onClick: () => e.config.consumerId ? ke(Q) : We(Q)
5041
5041
  }, {
5042
5042
  default: v(() => [
5043
- Z(F(e.config.consumerId ? g(i)("consumer_groups.actions.exit") : g(i)("consumer_groups.actions.delete")), 1)
5043
+ Y(q(e.config.consumerId ? g(i)("consumer_groups.actions.exit") : g(i)("consumer_groups.actions.delete")), 1)
5044
5044
  ]),
5045
5045
  _: 2
5046
5046
  }, 1032, ["onClick"])
@@ -5050,63 +5050,63 @@ const Os = ["aria-labelledby"], Ms = { class: "form-section-wrapper" }, Es = {
5050
5050
  ]),
5051
5051
  _: 1
5052
5052
  }, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "preferences-storage-key", "query", "table-headers", "use-action-outside"]),
5053
- N(g(cs), {
5053
+ j(g(cl), {
5054
5054
  "action-pending": H.value,
5055
5055
  "data-testid": "delete-consumer-group-modal",
5056
5056
  description: g(i)("consumer_groups.delete.description"),
5057
- "entity-name": B.value && (B.value.name || B.value.id),
5057
+ "entity-name": K.value && (K.value.name || K.value.id),
5058
5058
  "entity-type": g(wn).ConsumerGroup,
5059
5059
  error: te.value,
5060
5060
  title: g(i)("consumer_groups.delete.title"),
5061
- visible: q.value,
5061
+ visible: F.value,
5062
5062
  onCancel: bt,
5063
5063
  onProceed: it
5064
5064
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
5065
- e.config.consumerId ? (m(), D(Hs, {
5065
+ e.config.consumerId ? (m(), D(Hl, {
5066
5066
  key: 0,
5067
5067
  config: e.config,
5068
5068
  "data-testid": "add-to-group-modal",
5069
5069
  visible: Le.value,
5070
- "onAdd:partialSuccess": Y[4] || (Y[4] = (Q) => R(Q, !0)),
5071
- "onAdd:success": Y[5] || (Y[5] = (Q) => R(Q)),
5070
+ "onAdd:partialSuccess": W[4] || (W[4] = (Q) => P(Q, !0)),
5071
+ "onAdd:success": W[5] || (W[5] = (Q) => P(Q)),
5072
5072
  onCancel: C
5073
5073
  }, null, 8, ["config", "visible"])) : J("", !0),
5074
- e.config.consumerId && P.value ? (m(), D(Cr, {
5074
+ e.config.consumerId && V.value ? (m(), D(Cr, {
5075
5075
  key: 1,
5076
5076
  "action-button-appearance": "danger",
5077
5077
  "data-testid": "exit-group-modal",
5078
5078
  title: g(i)("consumer_groups.consumers.exit.title"),
5079
5079
  visible: z.value,
5080
- onCancel: se,
5080
+ onCancel: le,
5081
5081
  onProceed: br
5082
5082
  }, {
5083
5083
  default: v(() => [
5084
- N(g(a), {
5084
+ j(g(a), {
5085
5085
  class: "exit-modal-message",
5086
5086
  keypath: e.config.consumerUsername ? "consumer_groups.consumers.exit.confirmation" : "consumer_groups.consumers.exit.confirmationNoUsername",
5087
5087
  tag: "p"
5088
- }, Ke({
5088
+ }, Be({
5089
5089
  consumerGroup: v(() => [
5090
- L("strong", null, F(P.value.name || P.value.id), 1)
5090
+ L("strong", null, q(V.value.name || V.value.id), 1)
5091
5091
  ]),
5092
5092
  _: 2
5093
5093
  }, [
5094
5094
  e.config.consumerUsername ? {
5095
5095
  name: "consumer",
5096
5096
  fn: v(() => [
5097
- L("strong", null, F(e.config.consumerUsername), 1)
5097
+ L("strong", null, q(e.config.consumerUsername), 1)
5098
5098
  ]),
5099
5099
  key: "0"
5100
5100
  } : void 0
5101
5101
  ]), 1032, ["keypath"]),
5102
- L("p", null, F(g(i)("consumer_groups.consumers.exit.description")), 1)
5102
+ L("p", null, q(g(i)("consumer_groups.consumers.exit.description")), 1)
5103
5103
  ]),
5104
5104
  _: 1
5105
5105
  }, 8, ["title", "visible"])) : J("", !0)
5106
5106
  ]);
5107
5107
  };
5108
5108
  }
5109
- }), mu = /* @__PURE__ */ Rt(Ys, [["__scopeId", "data-v-a183d2c6"]]), Zs = { class: "kong-ui-entities-consumer-group-form" }, Qs = { class: "select-item-container" }, Xs = { class: "select-item-label" }, eu = {
5109
+ }), mu = /* @__PURE__ */ Pt(Wl, [["__scopeId", "data-v-a183d2c6"]]), Yl = { class: "kong-ui-entities-consumer-group-form" }, Ql = { class: "select-item-container" }, Xl = { class: "select-item-label" }, eu = {
5110
5110
  key: 0,
5111
5111
  class: "select-item-description"
5112
5112
  }, tu = /* @__PURE__ */ X({
@@ -5127,8 +5127,8 @@ const Os = ["aria-labelledby"], Ms = { class: "form-section-wrapper" }, Es = {
5127
5127
  },
5128
5128
  emits: ["update", "error", "loading"],
5129
5129
  setup(e, { emit: t }) {
5130
- var it, Le, Ze;
5131
- const n = e, r = t, { i18n: { t: a } } = yt.useI18n(), i = Ot(), o = zt({
5130
+ var it, Le, Ye;
5131
+ const n = e, r = t, { i18n: { t: a } } = yt.useI18n(), i = Et(), o = zt({
5132
5132
  fields: {
5133
5133
  name: "",
5134
5134
  tags: "",
@@ -5136,147 +5136,147 @@ const Os = ["aria-labelledby"], Ms = { class: "form-section-wrapper" }, Es = {
5136
5136
  },
5137
5137
  errorMessage: "",
5138
5138
  readonly: !1
5139
- }), l = zt({
5139
+ }), s = zt({
5140
5140
  name: "",
5141
5141
  tags: "",
5142
5142
  consumers: []
5143
5143
  }), {
5144
- debouncedQueryChange: s,
5144
+ debouncedQueryChange: l,
5145
5145
  loading: u,
5146
5146
  error: p,
5147
5147
  loadItems: c,
5148
5148
  results: y
5149
- } = vr(n.config, (Le = Oe.form[(it = n.config) == null ? void 0 : it.app]) == null ? void 0 : Le.consumersList, "", {
5149
+ } = vr(n.config, (Le = Ee.form[(it = n.config) == null ? void 0 : it.app]) == null ? void 0 : Le.consumersList, "", {
5150
5150
  fetchedItemsKey: "data",
5151
5151
  searchKeys: ["username", "custom_id", "id"]
5152
- }), { axiosInstance: f } = Ut((Ze = n.config) == null ? void 0 : Ze.axiosRequestConfig), { getMessageFromError: x } = Ls(), T = Rs(), k = w(() => y.value.map((C) => ({
5152
+ }), { axiosInstance: f } = Ut((Ye = n.config) == null ? void 0 : Ye.axiosRequestConfig), { getMessageFromError: I } = Ll(), T = Pl(), k = w(() => y.value.map((C) => ({
5153
5153
  label: C.username || C.custom_id,
5154
5154
  value: C.id,
5155
5155
  selected: o.fields.consumers.includes(C.id),
5156
5156
  data: C
5157
5157
  // we need this to determine whether or not to show the description text
5158
5158
  }))), U = w(() => {
5159
- var C, R;
5160
- return (R = Oe.form[(C = n.config) == null ? void 0 : C.app]) == null ? void 0 : R.edit;
5161
- }), j = w(() => n.consumerGroupId ? ut.Edit : ut.Create), W = w(() => !!o.fields.name && !G.value), h = w(() => JSON.stringify(o.fields) !== JSON.stringify(l)), _ = (C, R = "", ae = "") => {
5162
- var z, me, ke, se, Ue, Qe;
5163
- let P = `${(z = n.config) == null ? void 0 : z.apiBaseUrl}${Oe.form[(me = n.config) == null ? void 0 : me.app][C]}`;
5164
- return ((ke = n.config) == null ? void 0 : ke.app) === "konnect" ? P = P.replace(/{controlPlaneId}/gi, ((se = n.config) == null ? void 0 : se.controlPlaneId) || "") : ((Ue = n.config) == null ? void 0 : Ue.app) === "kongManager" && (P = P.replace(/\/{workspace}/gi, (Qe = n.config) != null && Qe.workspace ? `/${n.config.workspace}` : "")), P = P.replace(/{id}/gi, R || n.consumerGroupId), (C === "addConsumer" || C === "removeConsumer") && (P = P.replace(/{consumerId}/gi, ae)), P;
5159
+ var C, P;
5160
+ return (P = Ee.form[(C = n.config) == null ? void 0 : C.app]) == null ? void 0 : P.edit;
5161
+ }), N = w(() => n.consumerGroupId ? ut.Edit : ut.Create), Z = w(() => !!o.fields.name && !G.value), h = w(() => JSON.stringify(o.fields) !== JSON.stringify(s)), _ = (C, P = "", ae = "") => {
5162
+ var z, me, ke, le, Ue, Qe;
5163
+ let V = `${(z = n.config) == null ? void 0 : z.apiBaseUrl}${Ee.form[(me = n.config) == null ? void 0 : me.app][C]}`;
5164
+ return ((ke = n.config) == null ? void 0 : ke.app) === "konnect" ? V = V.replace(/{controlPlaneId}/gi, ((le = n.config) == null ? void 0 : le.controlPlaneId) || "") : ((Ue = n.config) == null ? void 0 : Ue.app) === "kongManager" && (V = V.replace(/\/{workspace}/gi, (Qe = n.config) != null && Qe.workspace ? `/${n.config.workspace}` : "")), V = V.replace(/{id}/gi, P || n.consumerGroupId), (C === "addConsumer" || C === "removeConsumer") && (V = V.replace(/{consumerId}/gi, ae)), V;
5165
5165
  }, d = () => {
5166
5166
  var C;
5167
5167
  i.push(((C = n.config) == null ? void 0 : C.cancelRoute) || { name: "consumer-group-list" });
5168
- }, I = (C) => {
5168
+ }, S = (C) => {
5169
5169
  r("error", C);
5170
- }, K = (C) => {
5170
+ }, B = (C) => {
5171
5171
  r("loading", C);
5172
- }, S = async (C) => {
5173
- var ae, P, z, me, ke;
5174
- o.fields.name = ((ae = C == null ? void 0 : C.item) == null ? void 0 : ae.name) || ((P = C == null ? void 0 : C.consumer_group) == null ? void 0 : P.name) || (C == null ? void 0 : C.name) || "";
5175
- const R = ((z = C == null ? void 0 : C.item) == null ? void 0 : z.tags) || (C == null ? void 0 : C.consumer_group.tags) || (C == null ? void 0 : C.tags) || [];
5176
- if (o.fields.tags = (R == null ? void 0 : R.join(", ")) || "", "consumers" in C)
5177
- o.fields.consumers = ((me = C == null ? void 0 : C.consumers) == null ? void 0 : me.map((se) => se.id)) || [];
5172
+ }, x = async (C) => {
5173
+ var ae, V, z, me, ke;
5174
+ o.fields.name = ((ae = C == null ? void 0 : C.item) == null ? void 0 : ae.name) || ((V = C == null ? void 0 : C.consumer_group) == null ? void 0 : V.name) || (C == null ? void 0 : C.name) || "";
5175
+ const P = ((z = C == null ? void 0 : C.item) == null ? void 0 : z.tags) || (C == null ? void 0 : C.consumer_group.tags) || (C == null ? void 0 : C.tags) || [];
5176
+ if (o.fields.tags = (P == null ? void 0 : P.join(", ")) || "", "consumers" in C)
5177
+ o.fields.consumers = ((me = C == null ? void 0 : C.consumers) == null ? void 0 : me.map((le) => le.id)) || [];
5178
5178
  else
5179
5179
  try {
5180
- const { data: se } = await f.get(_("getConsumers"));
5181
- o.fields.consumers = "consumers" in se ? (ke = se == null ? void 0 : se.consumers) == null ? void 0 : ke.map((Ue) => Ue.id) : [];
5182
- } catch (se) {
5183
- q(se);
5180
+ const { data: le } = await f.get(_("getConsumers"));
5181
+ o.fields.consumers = "consumers" in le ? (ke = le == null ? void 0 : le.consumers) == null ? void 0 : ke.map((Ue) => Ue.id) : [];
5182
+ } catch (le) {
5183
+ F(le);
5184
5184
  }
5185
- Object.assign(l, o.fields);
5186
- }, G = w(() => T.utf8Name(o.fields.name)), E = w(() => {
5187
- var C, R;
5185
+ Object.assign(s, o.fields);
5186
+ }, G = w(() => T.utf8Name(o.fields.name)), M = w(() => {
5187
+ var C, P;
5188
5188
  return {
5189
5189
  name: o.fields.name,
5190
- tags: (R = (C = o.fields.tags.split(",")) == null ? void 0 : C.map((ae) => String(ae || "").trim())) == null ? void 0 : R.filter((ae) => ae !== "")
5190
+ tags: (P = (C = o.fields.tags.split(",")) == null ? void 0 : C.map((ae) => String(ae || "").trim())) == null ? void 0 : P.filter((ae) => ae !== "")
5191
5191
  };
5192
- }), b = async (C, R = "") => await f.post(_("addConsumer", R, C), { consumer: C }), B = async (C, R = "") => await f.delete(_("removeConsumer", R, C)), q = (C) => {
5193
- o.errorMessage = x(C), r("error", C);
5192
+ }), b = async (C, P = "") => await f.post(_("addConsumer", P, C), { consumer: C }), K = async (C, P = "") => await f.delete(_("removeConsumer", P, C)), F = (C) => {
5193
+ o.errorMessage = I(C), r("error", C);
5194
5194
  }, H = (C = n.consumerGroupId) => {
5195
- Object.assign(l, o.fields), r("update", { ...o.fields, id: C });
5196
- }, te = (C, R, ae = n.consumerGroupId) => {
5197
- const P = C == null ? void 0 : C.find((z) => z.status !== "fulfilled");
5198
- P ? q({
5199
- code: P.status,
5200
- message: R
5195
+ Object.assign(s, o.fields), r("update", { ...o.fields, id: C });
5196
+ }, te = (C, P, ae = n.consumerGroupId) => {
5197
+ const V = C == null ? void 0 : C.find((z) => z.status !== "fulfilled");
5198
+ V ? F({
5199
+ code: V.status,
5200
+ message: P
5201
5201
  }) : H(ae);
5202
5202
  }, de = async () => {
5203
5203
  let C = "";
5204
5204
  try {
5205
- const { data: R } = await f.post(_("create"), E.value);
5206
- C = "item" in R ? R.item.id : R.id;
5207
- } catch (R) {
5208
- q(R);
5205
+ const { data: P } = await f.post(_("create"), M.value);
5206
+ C = "item" in P ? P.item.id : P.id;
5207
+ } catch (P) {
5208
+ F(P);
5209
5209
  }
5210
5210
  if (o.fields.consumers.length > 0 && C)
5211
5211
  try {
5212
- const R = o.fields.consumers.map((P) => b(P, C)), ae = await Promise.allSettled(R);
5212
+ const P = o.fields.consumers.map((V) => b(V, C)), ae = await Promise.allSettled(P);
5213
5213
  te(ae, a("consumer_groups.errors.add_consumer"), C);
5214
- } catch (R) {
5215
- q(R);
5214
+ } catch (P) {
5215
+ F(P);
5216
5216
  }
5217
5217
  else
5218
5218
  o.fields.consumers.length === 0 && C && H(C);
5219
- }, Ye = async () => {
5219
+ }, We = async () => {
5220
5220
  var ae;
5221
5221
  try {
5222
- ((ae = n.config) == null ? void 0 : ae.app) === "konnect" ? await f.put(_("edit"), E.value) : await f.patch(_("edit"), E.value);
5223
- } catch (P) {
5224
- q(P);
5222
+ ((ae = n.config) == null ? void 0 : ae.app) === "konnect" ? await f.put(_("edit"), M.value) : await f.patch(_("edit"), M.value);
5223
+ } catch (V) {
5224
+ F(V);
5225
5225
  }
5226
- const C = o.fields.consumers.filter((P) => !l.consumers.includes(P)), R = l.consumers.filter((P) => !o.fields.consumers.includes(P));
5227
- if (R.length === 0 && C.length === 0)
5226
+ const C = o.fields.consumers.filter((V) => !s.consumers.includes(V)), P = s.consumers.filter((V) => !o.fields.consumers.includes(V));
5227
+ if (P.length === 0 && C.length === 0)
5228
5228
  H();
5229
5229
  else {
5230
- if (R.length > 0)
5230
+ if (P.length > 0)
5231
5231
  try {
5232
- const P = R.map((me) => B(me)), z = await Promise.allSettled(P);
5232
+ const V = P.map((me) => K(me)), z = await Promise.allSettled(V);
5233
5233
  te(z, a("consumer_groups.errors.remove_consumer"));
5234
- } catch (P) {
5235
- q(P);
5234
+ } catch (V) {
5235
+ F(V);
5236
5236
  }
5237
5237
  if (C.length > 0)
5238
5238
  try {
5239
- const P = C.map((me) => b(me)), z = await Promise.allSettled(P);
5239
+ const V = C.map((me) => b(me)), z = await Promise.allSettled(V);
5240
5240
  te(z, a("consumer_groups.errors.add_consumer"));
5241
- } catch (P) {
5242
- q(P);
5241
+ } catch (V) {
5242
+ F(V);
5243
5243
  }
5244
5244
  }
5245
5245
  }, bt = async () => {
5246
5246
  try {
5247
- o.readonly = !0, j.value === ut.Create ? await de() : await Ye();
5247
+ o.readonly = !0, N.value === ut.Create ? await de() : await We();
5248
5248
  } finally {
5249
5249
  o.readonly = !1;
5250
5250
  }
5251
5251
  };
5252
5252
  return gt(async () => {
5253
5253
  await c();
5254
- }), (C, R) => {
5255
- const ae = V("KInput"), P = V("KMultiselect");
5256
- return m(), $("div", Zs, [
5257
- N(g(Ql), {
5258
- "can-submit": W.value && h.value,
5254
+ }), (C, P) => {
5255
+ const ae = R("KInput"), V = R("KMultiselect");
5256
+ return m(), $("div", Yl, [
5257
+ j(g(Qs), {
5258
+ "can-submit": Z.value && h.value,
5259
5259
  config: e.config,
5260
5260
  "edit-id": e.consumerGroupId,
5261
5261
  "error-message": o.errorMessage || g(p) || G.value,
5262
5262
  "fetch-url": U.value,
5263
- "form-fields": E.value,
5263
+ "form-fields": M.value,
5264
5264
  "is-readonly": o.readonly,
5265
5265
  onCancel: d,
5266
- "onFetch:error": R[3] || (R[3] = (z) => I(z)),
5267
- "onFetch:success": S,
5268
- onLoading: R[4] || (R[4] = (z) => K(z)),
5266
+ "onFetch:error": P[3] || (P[3] = (z) => S(z)),
5267
+ "onFetch:success": x,
5268
+ onLoading: P[4] || (P[4] = (z) => B(z)),
5269
5269
  onSubmit: bt
5270
5270
  }, {
5271
5271
  default: v(() => [
5272
- N(g(vn), {
5272
+ j(g(vn), {
5273
5273
  description: g(a)("consumer_groups.form.general_info.description"),
5274
5274
  title: g(a)("consumer_groups.form.general_info.title")
5275
5275
  }, {
5276
5276
  default: v(() => [
5277
- N(ae, {
5277
+ j(ae, {
5278
5278
  modelValue: o.fields.name,
5279
- "onUpdate:modelValue": R[0] || (R[0] = (z) => o.fields.name = z),
5279
+ "onUpdate:modelValue": P[0] || (P[0] = (z) => o.fields.name = z),
5280
5280
  modelModifiers: { trim: !0 },
5281
5281
  autocomplete: "off",
5282
5282
  "data-testid": "consumer-group-form-name",
@@ -5285,9 +5285,9 @@ const Os = ["aria-labelledby"], Ms = { class: "form-section-wrapper" }, Es = {
5285
5285
  required: "",
5286
5286
  type: "text"
5287
5287
  }, null, 8, ["modelValue", "label", "placeholder"]),
5288
- N(ae, {
5288
+ j(ae, {
5289
5289
  modelValue: o.fields.tags,
5290
- "onUpdate:modelValue": R[1] || (R[1] = (z) => o.fields.tags = z),
5290
+ "onUpdate:modelValue": P[1] || (P[1] = (z) => o.fields.tags = z),
5291
5291
  modelModifiers: { trim: !0 },
5292
5292
  autocomplete: "off",
5293
5293
  "data-testid": "consumer-group-form-tags",
@@ -5303,15 +5303,15 @@ const Os = ["aria-labelledby"], Ms = { class: "form-section-wrapper" }, Es = {
5303
5303
  ]),
5304
5304
  _: 1
5305
5305
  }, 8, ["description", "title"]),
5306
- N(g(vn), {
5306
+ j(g(vn), {
5307
5307
  description: g(a)("consumer_groups.form.consumers.description"),
5308
5308
  "has-divider": "",
5309
5309
  title: g(a)("consumer_groups.form.consumers.title")
5310
5310
  }, {
5311
5311
  default: v(() => [
5312
- N(P, {
5312
+ j(V, {
5313
5313
  modelValue: o.fields.consumers,
5314
- "onUpdate:modelValue": R[2] || (R[2] = (z) => o.fields.consumers = z),
5314
+ "onUpdate:modelValue": P[2] || (P[2] = (z) => o.fields.consumers = z),
5315
5315
  appearance: "select",
5316
5316
  autosuggest: "",
5317
5317
  items: k.value,
@@ -5319,14 +5319,14 @@ const Os = ["aria-labelledby"], Ms = { class: "form-section-wrapper" }, Es = {
5319
5319
  loading: g(u),
5320
5320
  placeholder: g(a)("consumer_groups.form.fields.consumers.placeholder"),
5321
5321
  width: "auto",
5322
- onQueryChange: g(s)
5322
+ onQueryChange: g(l)
5323
5323
  }, {
5324
5324
  "item-template": v(({ item: z }) => {
5325
- var me, ke, se;
5325
+ var me, ke, le;
5326
5326
  return [
5327
- L("div", Qs, [
5328
- L("div", Xs, F(z.label), 1),
5329
- (me = z == null ? void 0 : z.data) != null && me.username && ((ke = z == null ? void 0 : z.data) != null && ke.custom_id) ? (m(), $("div", eu, F((se = z == null ? void 0 : z.data) == null ? void 0 : se.custom_id), 1)) : J("", !0)
5327
+ L("div", Ql, [
5328
+ L("div", Xl, q(z.label), 1),
5329
+ (me = z == null ? void 0 : z.data) != null && me.username && ((ke = z == null ? void 0 : z.data) != null && ke.custom_id) ? (m(), $("div", eu, q((le = z == null ? void 0 : z.data) == null ? void 0 : le.custom_id), 1)) : J("", !0)
5330
5330
  ])
5331
5331
  ];
5332
5332
  }),
@@ -5341,7 +5341,7 @@ const Os = ["aria-labelledby"], Ms = { class: "form-section-wrapper" }, Es = {
5341
5341
  ]);
5342
5342
  };
5343
5343
  }
5344
- }), gu = /* @__PURE__ */ Rt(tu, [["__scopeId", "data-v-9681165d"]]), nu = { class: "kong-ui-consumer-group-entity-config-card" }, yu = /* @__PURE__ */ X({
5344
+ }), gu = /* @__PURE__ */ Pt(tu, [["__scopeId", "data-v-9681165d"]]), nu = { class: "kong-ui-consumer-group-entity-config-card" }, yu = /* @__PURE__ */ X({
5345
5345
  __name: "ConsumerGroupConfigCard",
5346
5346
  props: {
5347
5347
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -5368,7 +5368,7 @@ const Os = ["aria-labelledby"], Ms = { class: "form-section-wrapper" }, Es = {
5368
5368
  },
5369
5369
  emits: ["loading", "fetch:error", "fetch:success"],
5370
5370
  setup(e) {
5371
- const t = e, { i18n: { t: n } } = yt.useI18n(), r = w(() => Oe.form[t.config.app].edit), a = M({
5371
+ const t = e, { i18n: { t: n } } = yt.useI18n(), r = w(() => Ee.form[t.config.app].edit), a = O({
5372
5372
  id: {},
5373
5373
  name: {},
5374
5374
  created_at: {},
@@ -5378,16 +5378,16 @@ const Os = ["aria-labelledby"], Ms = { class: "form-section-wrapper" }, Es = {
5378
5378
  }
5379
5379
  });
5380
5380
  return (i, o) => (m(), $("div", nu, [
5381
- N(g(Jl), {
5381
+ j(g(Js), {
5382
5382
  config: e.config,
5383
5383
  "config-card-doc": e.configCardDoc,
5384
5384
  "config-schema": a.value,
5385
5385
  "data-key": "consumer_group",
5386
5386
  "fetch-url": r.value,
5387
5387
  "hide-title": e.hideTitle,
5388
- "onFetch:error": o[0] || (o[0] = (l) => i.$emit("fetch:error", l)),
5389
- "onFetch:success": o[1] || (o[1] = (l) => i.$emit("fetch:success", l)),
5390
- onLoading: o[2] || (o[2] = (l) => i.$emit("loading", l))
5388
+ "onFetch:error": o[0] || (o[0] = (s) => i.$emit("fetch:error", s)),
5389
+ "onFetch:success": o[1] || (o[1] = (s) => i.$emit("fetch:success", s)),
5390
+ onLoading: o[2] || (o[2] = (s) => i.$emit("loading", s))
5391
5391
  }, null, 8, ["config", "config-card-doc", "config-schema", "fetch-url", "hide-title"])
5392
5392
  ]));
5393
5393
  }