@kong-ui-public/entities-shared 3.5.4 → 3.5.5-pr.1503.8afffc12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { inject as $n, ref as R, unref as T, computed as k, watch as Ae, defineComponent as P, openBlock as m, createBlock as M, resolveDynamicComponent as se, normalizeClass as fe, withCtx as b, createElementBlock as I, createElementVNode as L, toDisplayString as O, createCommentVNode as D, Fragment as ce, renderList as oe, resolveComponent as K, createVNode as B, createTextVNode as V, useCssVars as Ot, useSlots as Xe, renderSlot as z, createSlots as we, normalizeProps as Fn, guardReactiveProps as On, mergeProps as Ln, normalizeStyle as Se, pushScopeId as Ie, popScopeId as Ee, onBeforeMount as Lt, withModifiers as Ye, onMounted as Nn, onUnmounted as Bn, withDirectives as me, vShow as ge, withKeys as Rn, Teleport as Mn } from "vue";
1
+ import { inject as $n, ref as K, computed as C, unref as I, watch as Ae, defineComponent as P, openBlock as m, createBlock as D, resolveDynamicComponent as se, normalizeClass as fe, withCtx as b, createElementBlock as A, createElementVNode as L, toDisplayString as O, createCommentVNode as j, Fragment as ue, renderList as oe, resolveComponent as U, createVNode as M, createTextVNode as V, useCssVars as Ot, useSlots as Xe, renderSlot as z, createSlots as we, normalizeProps as Fn, guardReactiveProps as On, mergeProps as Ln, normalizeStyle as Se, pushScopeId as Ie, popScopeId as Ee, onBeforeMount as Lt, withModifiers as Ye, onMounted as Nn, onUnmounted as Bn, withDirectives as me, vShow as ge, withKeys as Rn, Teleport as Mn } from "vue";
2
2
  import st from "axios";
3
3
  import { createI18n as Kn, i18nTComponent as Dn } from "@kong-ui-public/i18n";
4
4
  import { BadgeMethodAppearances as Un } from "@kong/kongponents";
@@ -205,8 +205,8 @@ function Nt() {
205
205
  if (a.length !== o.length) return !1;
206
206
  const l = /* @__PURE__ */ new Set([...a, ...o]);
207
207
  for (const s of l) {
208
- const u = a.filter((c) => c === s).length, d = o.filter((c) => c === s).length;
209
- if (u !== d) return !1;
208
+ const c = a.filter((u) => u === s).length, d = o.filter((u) => u === s).length;
209
+ if (c !== d) return !1;
210
210
  }
211
211
  return !0;
212
212
  };
@@ -236,8 +236,8 @@ function Nt() {
236
236
  }
237
237
  },
238
238
  sortAlpha: (a) => (o, l) => {
239
- let s = o[a] === void 0 || o[a] === null ? "" : o[a], u = l[a] === void 0 || l[a] === null ? "" : l[a];
240
- return Array.isArray(o[a]) && (s = o[a][0]), Array.isArray(l[a]) && (u = l[a][0]), s.localeCompare(u);
239
+ let s = o[a] === void 0 || o[a] === null ? "" : o[a], c = l[a] === void 0 || l[a] === null ? "" : l[a];
240
+ return Array.isArray(o[a]) && (s = o[a][0]), Array.isArray(l[a]) && (c = l[a][0]), s.localeCompare(c);
241
241
  },
242
242
  isValidUuid: (a) => a ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(a) : !1
243
243
  };
@@ -247,79 +247,85 @@ function ar(e, t, n, r = {
247
247
  searchKeys: ["id"]
248
248
  }) {
249
249
  n || (n = "1000");
250
- const { axiosInstance: i } = et(e.axiosRequestConfig), { i18n: { t: a } } = je(), { debounce: o } = Vn(), l = o(async (h) => {
251
- await W(h);
252
- }, 200), s = R(!1), u = R(""), d = R(""), c = R([]), g = R([]), p = R(void 0), y = T(t);
253
- let v = `${e.apiBaseUrl}${y}`;
254
- e.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
255
- const { isValidUuid: w } = Nt(), N = async () => {
250
+ const { axiosInstance: i } = et(e.axiosRequestConfig), { i18n: { t: a } } = je(), { debounce: o } = Vn(), l = o(async ($) => {
251
+ await _($);
252
+ }, 200), s = K(!1), c = K(""), d = K(""), u = K([]), h = K([]), p = K(void 0), y = C(() => {
253
+ const $ = `${e.apiBaseUrl}${I(t)}`;
254
+ return e.app === "konnect" ? $.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? $.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : $;
255
+ }), { isValidUuid: x } = Nt(), w = async () => {
256
256
  try {
257
257
  s.value = !0;
258
- const { data: h } = await i.get(`${v}?size=${n}`);
259
- h != null && h.next || (p.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : []), g.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : [], c.value = g.value;
258
+ const { data: $ } = await i.get(`${y.value}?size=${n}`);
259
+ $ != null && $.next || (p.value = r.fetchedItemsKey in $ ? $[r.fetchedItemsKey] : []), h.value = r.fetchedItemsKey in $ ? $[r.fetchedItemsKey] : [], u.value = h.value;
260
260
  } catch {
261
- c.value = [], u.value = a("debouncedFilter.errors.fetch");
261
+ u.value = [], c.value = a("debouncedFilter.errors.fetch");
262
262
  } finally {
263
263
  s.value = !1;
264
264
  }
265
- }, _ = R(""), W = async (h) => {
266
- var E, f, A;
267
- if (_.value !== h)
268
- if (_.value = h || "", p.value === void 0)
265
+ }, N = K(""), _ = async ($) => {
266
+ var g, S, f;
267
+ if (N.value !== $) {
268
+ if ($ === "") {
269
+ u.value = h.value;
270
+ return;
271
+ } else
272
+ N.value = $ || "";
273
+ if (p.value === void 0)
269
274
  try {
270
- if (s.value = !0, u.value = "", d.value = "", e.app === "konnect") {
271
- let F = v + "";
272
- h && (F += `/${h}`);
273
- const { data: x } = await i.get(`${F}?size=${n}`);
274
- r.fetchedItemsKey in x ? c.value = x[r.fetchedItemsKey] : x != null && x.id ? c.value = [x] : c.value = [];
275
- } else if (h) {
276
- const F = [];
277
- w(h) && r.searchKeys.includes("id") ? F.push((async () => {
278
- const { data: $ } = await i.get(`${v}/${h}`);
279
- return [$[r.fetchedItemsKey] ?? $];
280
- })()) : F.push(
281
- ...r.searchKeys.filter(($) => $ !== "id").map(async ($) => {
282
- const { data: S } = await i.get(`${v}?${$}=${h}`);
283
- return S[r.fetchedItemsKey];
275
+ if (s.value = !0, c.value = "", d.value = "", e.app === "konnect") {
276
+ let v = y.value + "";
277
+ $ && (v += `/${$}`);
278
+ const { data: F } = await i.get(`${v}?size=${n}`);
279
+ r.fetchedItemsKey in F ? u.value = F[r.fetchedItemsKey] : F != null && F[r.exactMatchKey ?? "id"] ? u.value = [F] : u.value = [];
280
+ } else if ($) {
281
+ const v = [];
282
+ x($) && r.searchKeys.includes("id") ? v.push((async () => {
283
+ const { data: R } = await i.get(`${y.value}/${$}`);
284
+ return [R[r.fetchedItemsKey] ?? R];
285
+ })()) : v.push(
286
+ ...r.searchKeys.filter((R) => R !== "id").map(async (R) => {
287
+ const { data: B } = await i.get(`${y.value}?${R}=${$}`);
288
+ return B[r.fetchedItemsKey];
284
289
  })
285
290
  );
286
- const x = await Promise.all(F), U = /* @__PURE__ */ new Set();
287
- c.value = [], (E = x == null ? void 0 : x.forEach) == null || E.call(x, ($) => {
288
- var S;
289
- (S = $ == null ? void 0 : $.forEach) == null || S.call($, (q) => {
290
- U.has(q.id) || (U.add(q.id), c.value.push(q));
291
+ const F = await Promise.all(v), E = /* @__PURE__ */ new Set();
292
+ u.value = [], (g = F == null ? void 0 : F.forEach) == null || g.call(F, (R) => {
293
+ var B;
294
+ (B = R == null ? void 0 : R.forEach) == null || B.call(R, (T) => {
295
+ E.has(T.id) || (E.add(T.id), u.value.push(T));
291
296
  });
292
297
  });
293
298
  } else
294
- c.value = g.value;
295
- } catch (F) {
296
- ((f = F == null ? void 0 : F.response) == null ? void 0 : f.status) === 404 ? d.value = a("debouncedFilter.errors.invalid") : (c.value = [], u.value = a("debouncedFilter.errors.fetch"));
299
+ u.value = h.value;
300
+ } catch (v) {
301
+ ((S = v == null ? void 0 : v.response) == null ? void 0 : S.status) === 404 ? d.value = a("debouncedFilter.errors.invalid") : (u.value = [], c.value = a("debouncedFilter.errors.fetch"));
297
302
  } finally {
298
303
  s.value = !1;
299
304
  }
300
305
  else
301
- s.value = !0, d.value = "", h ? (c.value = (A = p.value) == null ? void 0 : A.filter((F) => {
302
- var U;
303
- let x = !1;
304
- for (const $ of r.searchKeys) {
305
- const S = typeof F[$] == "string" ? (U = F[$]) == null ? void 0 : U.toLowerCase() : F[$];
306
- S != null && S.includes(h.toLowerCase()) && (x = !0);
306
+ s.value = !0, d.value = "", $ ? (u.value = (f = p.value) == null ? void 0 : f.filter((v) => {
307
+ var E;
308
+ let F = !1;
309
+ for (const R of r.searchKeys) {
310
+ const B = typeof v[R] == "string" ? (E = v[R]) == null ? void 0 : E.toLowerCase() : v[R];
311
+ B != null && B.includes($.toLowerCase()) && (F = !0);
307
312
  }
308
- return x;
309
- }), (!c.value || !c.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : c.value = p.value, s.value = !1;
313
+ return F;
314
+ }), (!u.value || !u.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : u.value = p.value, s.value = !1;
315
+ }
310
316
  };
311
317
  return {
312
318
  loading: s,
313
- error: u,
319
+ error: c,
314
320
  validationError: d,
315
- results: c,
321
+ results: u,
316
322
  allRecords: p,
317
- loadItems: N,
323
+ loadItems: w,
318
324
  debouncedQueryChange: l
319
325
  };
320
326
  }
321
327
  function or(e, t) {
322
- const n = T(t), r = k(
328
+ const n = I(t), r = C(
323
329
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
324
330
  );
325
331
  return r.value.search = "", (i) => `${r.value.href}/${i}`;
@@ -366,88 +372,88 @@ function sr(e) {
366
372
  }
367
373
  }
368
374
  function Bt(e, t) {
369
- const n = R(T(e)), r = R(T(t)), i = k(
375
+ const n = K(I(e)), r = K(I(t)), i = C(
370
376
  () => !!(n.value.app === "konnect" || n.value.isExactMatch)
371
- ), a = k(
377
+ ), a = C(
372
378
  () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
373
379
  );
374
380
  return (o) => {
375
- const { page: l, pageSize: s, offset: u, sortColumnKey: d, sortColumnOrder: c, query: g } = o;
381
+ const { page: l, pageSize: s, offset: c, sortColumnKey: d, sortColumnOrder: u, query: h } = o;
376
382
  try {
377
383
  let p = new URL(a.value.href);
378
- return i.value && g ? (p.search = "", p = n.value.isExactMatch ? new URL(`${p.href}/${g}/`) : new URL(`${p.href}?filter[name][contains]=${g}`)) : (i.value || new URLSearchParams(g).forEach((y, v) => {
379
- p.searchParams.append(v, y);
380
- }), d && p.searchParams.append("sort_by", d), c === "desc" && p.searchParams.append("sort_desc", "1"), p.searchParams.append("size", String(s))), u && l !== 1 && p.searchParams.append("offset", String(u)), p.href;
384
+ return i.value && h ? (p.search = "", p = n.value.isExactMatch ? new URL(`${p.href}/${h}/`) : new URL(`${p.href}?filter[name][contains]=${h}`)) : (i.value || new URLSearchParams(h).forEach((y, x) => {
385
+ p.searchParams.append(x, y);
386
+ }), d && p.searchParams.append("sort_by", d), u === "desc" && p.searchParams.append("sort_desc", "1"), p.searchParams.append("size", String(s))), c && l !== 1 && p.searchParams.append("offset", String(c)), p.href;
381
387
  } catch (p) {
382
388
  return console.error("RouteList(fetcher)", p), r.value;
383
389
  }
384
390
  };
385
391
  }
386
- function cr(e, t, n = "data") {
387
- const r = T(t), { axiosInstance: i } = et(e.axiosRequestConfig), a = Bt(e, r), o = R({
392
+ function ur(e, t, n = "data") {
393
+ const r = I(t), { axiosInstance: i } = et(e.axiosRequestConfig), a = Bt(e, r), o = K({
388
394
  status: be.Idle
389
395
  });
390
396
  return { fetcher: async (s) => {
391
- var u;
397
+ var c;
392
398
  try {
393
399
  o.value = { status: be.Loading };
394
400
  let d = a(s);
395
401
  d.includes("filter[name]") && (d = `${d}&page[size]=${s.pageSize}&page[number]=${s.page}`);
396
- const c = await i.get(d);
397
- if (c.status >= 400)
398
- throw c;
399
- const g = c.data, p = n && n.replace(/[^\w-_]/gi, "");
402
+ const u = await i.get(d);
403
+ if (u.status >= 400)
404
+ throw u;
405
+ const h = u.data, p = n && n.replace(/[^\w-_]/gi, "");
400
406
  let y;
401
- g[p] && Array.isArray(g[p]) ? y = g[p] : Array.isArray(g) ? y = g : y = Object.keys(g).length ? [g] : [];
402
- const v = {
407
+ h[p] && Array.isArray(h[p]) ? y = h[p] : Array.isArray(h) ? y = h : y = Object.keys(h).length ? [h] : [];
408
+ const x = {
403
409
  data: y,
404
410
  total: y.length,
405
- ...g.offset ? {
411
+ ...h.offset ? {
406
412
  pagination: {
407
- offset: g.offset
413
+ offset: h.offset
408
414
  }
409
415
  } : null
410
416
  };
411
417
  return o.value = {
412
418
  status: be.Idle,
413
- response: v
414
- }, v;
419
+ response: x
420
+ }, x;
415
421
  } catch (d) {
416
- const c = {
422
+ const u = {
417
423
  data: [],
418
424
  total: 0
419
425
  };
420
- return s.query && (((u = d.response) == null ? void 0 : u.status) === 404 || d.status === 404) ? (o.value = {
426
+ return s.query && (((c = d.response) == null ? void 0 : c.status) === 404 || d.status === 404) ? (o.value = {
421
427
  status: be.NoResults,
422
- response: c,
428
+ response: u,
423
429
  error: d.response ? d : { response: d }
424
- }, c) : (o.value = {
430
+ }, u) : (o.value = {
425
431
  status: be.Error,
426
- response: c,
432
+ response: u,
427
433
  error: d.response ? d : { response: d }
428
- }, c);
434
+ }, u);
429
435
  }
430
436
  }, fetcherState: o };
431
437
  }
432
- function ur() {
438
+ function cr() {
433
439
  const e = (r, i = "_") => r ? r.split(i).map((a) => a.toLowerCase() === "id" ? a.toUpperCase() : a.charAt(0).toUpperCase() + a.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
434
440
  return {
435
441
  capitalize: (r) => r ? r.replace(t, (i) => i.toUpperCase()) : "",
436
442
  convertKeyToTitle: e
437
443
  };
438
444
  }
439
- const Rt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, ct = (e) => {
445
+ const Rt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, ut = (e) => {
440
446
  if (typeof e != "string")
441
447
  throw new TypeError("Invalid argument expected string");
442
448
  const t = e.match(Rt);
443
449
  if (!t)
444
450
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
445
451
  return t.shift(), t;
446
- }, ut = (e) => e === "*" || e === "x" || e === "X", dt = (e) => {
452
+ }, ct = (e) => e === "*" || e === "x" || e === "X", dt = (e) => {
447
453
  const t = parseInt(e, 10);
448
454
  return isNaN(t) ? e : t;
449
455
  }, dr = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], fr = (e, t) => {
450
- if (ut(e) || ut(t))
456
+ if (ct(e) || ct(t))
451
457
  return 0;
452
458
  const [n, r] = dr(dt(e), dt(t));
453
459
  return n > r ? 1 : n < r ? -1 : 0;
@@ -459,7 +465,7 @@ const Rt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
459
465
  }
460
466
  return 0;
461
467
  }, pr = (e, t) => {
462
- const n = ct(e), r = ct(t), i = n.pop(), a = r.pop(), o = ft(n, r);
468
+ const n = ut(e), r = ut(t), i = n.pop(), a = r.pop(), o = ft(n, r);
463
469
  return o !== 0 ? o : i && a ? ft(i.split("."), a.split(".")) : i || a ? i ? -1 : 1 : 0;
464
470
  }, pt = (e, t, n) => {
465
471
  hr(n);
@@ -492,11 +498,11 @@ function gr(e) {
492
498
  return !(o && pt(i, o, "<") || l && pt(i, l, ">"));
493
499
  }
494
500
  function yr(e) {
495
- const t = R(0), n = R(0), r = R(!1);
501
+ const t = K(0), n = K(0), r = K(!1);
496
502
  return Ae(e, (a) => {
497
503
  a && !r.value && (t.value = a.offsetWidth, n.value = a.scrollWidth, r.value = !0);
498
504
  }), {
499
- isTruncated: k(() => t.value < n.value)
505
+ isTruncated: C(() => t.value < n.value)
500
506
  };
501
507
  }
502
508
  function vr() {
@@ -511,10 +517,10 @@ const Y = {
511
517
  useDeleteUrlBuilder: or,
512
518
  useErrors: lr,
513
519
  useExternalLinkCreator: sr,
514
- useFetcher: cr,
520
+ useFetcher: ur,
515
521
  useFetchUrlBuilder: Bt,
516
522
  useHelpers: Nt,
517
- useStringHelpers: ur,
523
+ useStringHelpers: cr,
518
524
  useI18n: je,
519
525
  useGatewayFeatureSupported: gr,
520
526
  useTruncationDetector: yr,
@@ -539,25 +545,25 @@ const Y = {
539
545
  }
540
546
  },
541
547
  setup(e) {
542
- const t = e, { i18n: { t: n } } = Y.useI18n(), { convertKeyToTitle: r } = Y.useStringHelpers(), i = k(() => t.item.key ?? "json-array-item"), a = k(() => t.item.value ?? t.item), o = k(() => {
548
+ const t = e, { i18n: { t: n } } = Y.useI18n(), { convertKeyToTitle: r } = Y.useStringHelpers(), i = C(() => t.item.key ?? "json-array-item"), a = C(() => t.item.value ?? t.item), o = C(() => {
543
549
  const s = JSON.parse(JSON.stringify(a.value));
544
550
  return t.isArrayItem && delete s.name, s;
545
- }), l = k(() => {
551
+ }), l = C(() => {
546
552
  var s;
547
553
  return t.isArrayItem ? (s = a.value) != null && s.name ? r(a.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
548
554
  });
549
- return (s, u) => (m(), M(se(e.isArrayItem ? "fieldset" : "div"), {
555
+ return (s, c) => (m(), D(se(e.isArrayItem ? "fieldset" : "div"), {
550
556
  class: fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
551
557
  }, {
552
558
  default: b(() => [
553
- e.isArrayItem ? (m(), I("legend", br, [
559
+ e.isArrayItem ? (m(), A("legend", br, [
554
560
  L("b", null, O(l.value), 1)
555
- ])) : D("", !0),
556
- (m(!0), I(ce, null, oe(Object.keys(o.value), (d, c) => (m(), M(Dt, {
557
- key: `${i.value}-property-${c}`,
561
+ ])) : j("", !0),
562
+ (m(!0), A(ue, null, oe(Object.keys(o.value), (d, u) => (m(), D(Dt, {
563
+ key: `${i.value}-property-${u}`,
558
564
  item: {
559
565
  key: d,
560
- label: T(r)(d),
566
+ label: I(r)(d),
561
567
  value: o.value[d]
562
568
  }
563
569
  }, null, 8, ["item"]))), 128))
@@ -582,15 +588,15 @@ const Y = {
582
588
  setup(e) {
583
589
  const { i18n: { t } } = Y.useI18n();
584
590
  return (n, r) => {
585
- const i = K("KButton");
586
- return m(), I("div", null, [
587
- B(i, {
591
+ const i = U("KButton");
592
+ return m(), A("div", null, [
593
+ M(i, {
588
594
  appearance: "tertiary",
589
595
  class: "navigation-button",
590
596
  onClick: r[0] || (r[0] = (a) => n.$emit("navigation-click", e.item))
591
597
  }, {
592
598
  default: b(() => [
593
- V(O(e.item.value || T(t)("baseConfigCard.commonFields.link")), 1)
599
+ V(O(e.item.value || I(t)("baseConfigCard.commonFields.link")), 1)
594
600
  ]),
595
601
  _: 1
596
602
  })
@@ -608,12 +614,12 @@ const Y = {
608
614
  setup(e) {
609
615
  const { i18n: { t } } = Y.useI18n();
610
616
  return (n, r) => {
611
- const i = K("KBadge");
612
- return m(), M(i, {
617
+ const i = U("KBadge");
618
+ return m(), D(i, {
613
619
  appearance: e.status ? "success" : "neutral"
614
620
  }, {
615
621
  default: b(() => [
616
- V(O(e.status ? T(t)("baseConfigCard.statusBadge.enabledLabel") : T(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
622
+ V(O(e.status ? I(t)("baseConfigCard.statusBadge.enabledLabel") : I(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
617
623
  ]),
618
624
  _: 1
619
625
  }, 8, ["appearance"]);
@@ -643,12 +649,12 @@ const Y = {
643
649
  emits: ["navigation-click"],
644
650
  setup(e, { emit: t }) {
645
651
  Ot((y) => ({
646
- dc1d91a8: d.value ? "none" : `solid ${T(Er)} ${T(Ar)}`,
647
- "59ccec5f": u.value && l.value ? "block" : "flex",
648
- "29318fbe": u.value && l.value ? "100%" : n.slim ? "50%" : "25%",
649
- "292d0408": u.value && l.value ? "100%" : n.slim ? "50%" : "75%"
652
+ dc1d91a8: d.value ? "none" : `solid ${I(Er)} ${I(Ar)}`,
653
+ "59ccec5f": c.value && l.value ? "block" : "flex",
654
+ "29318fbe": c.value && l.value ? "100%" : n.slim ? "50%" : "25%",
655
+ "292d0408": c.value && l.value ? "100%" : n.slim ? "50%" : "75%"
650
656
  }));
651
- const n = e, r = t, i = Xe(), { i18n: { t: a, formatUnixTimeStamp: o } } = Y.useI18n(), l = k(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), s = k(() => !!(n.item.tooltip || i["label-tooltip"])), u = k(() => n.item.type === H.Json || n.item.type === H.JsonArray), d = k(() => n.item.type === H.JsonArray), c = k(() => {
657
+ const n = e, r = t, i = Xe(), { i18n: { t: a, formatUnixTimeStamp: o } } = Y.useI18n(), l = C(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), s = C(() => !!(n.item.tooltip || i["label-tooltip"])), c = C(() => n.item.type === H.Json || n.item.type === H.JsonArray), d = C(() => n.item.type === H.JsonArray), u = C(() => {
652
658
  switch (n.item.type) {
653
659
  case H.ID:
654
660
  return {
@@ -758,16 +764,16 @@ const Y = {
758
764
  text: n.item.value
759
765
  };
760
766
  }
761
- }), g = R(), { isTruncated: p } = Y.useTruncationDetector(g);
762
- return (y, v) => {
763
- const w = K("KLabel"), N = K("KBadge"), _ = K("KCopy"), W = K("KTooltip");
764
- return m(), I("div", Fr, [
767
+ }), h = K(), { isTruncated: p } = Y.useTruncationDetector(h);
768
+ return (y, x) => {
769
+ const w = U("KLabel"), N = U("KBadge"), _ = U("KCopy"), $ = U("KTooltip");
770
+ return m(), A("div", Fr, [
765
771
  L("div", {
766
772
  class: "config-card-details-label",
767
773
  "data-testid": `${e.item.key}-label`
768
774
  }, [
769
775
  z(y.$slots, "label", { item: e.item }, () => [
770
- B(w, { "tooltip-attributes": { maxWidth: "500px" } }, we({
776
+ M(w, { "tooltip-attributes": { maxWidth: "500px" } }, we({
771
777
  default: b(() => [
772
778
  V(O(e.item.label) + " ", 1)
773
779
  ]),
@@ -796,80 +802,80 @@ const Y = {
796
802
  z(y.$slots, e.item.key, {
797
803
  rowValue: e.item.value
798
804
  }, () => [
799
- l.value ? (m(), I("div", Rr, [
800
- (m(), M(se(c.value.tag), Fn(On(c.value.attrs)), {
805
+ l.value ? (m(), A("div", Rr, [
806
+ (m(), D(se(u.value.tag), Fn(On(u.value.attrs)), {
801
807
  default: b(() => [
802
- c.value.additionalComponent === "KBadge" ? (m(), I("div", {
808
+ u.value.additionalComponent === "KBadge" ? (m(), A("div", {
803
809
  key: 0,
804
810
  "data-testid": `${e.item.key}-badge-tags`
805
811
  }, [
806
- (m(!0), I(ce, null, oe(e.item.value, (h, E) => (m(), M(N, {
807
- key: `${e.item.key}-badge-tag-${E}`,
812
+ (m(!0), A(ue, null, oe(e.item.value, (g, S) => (m(), D(N, {
813
+ key: `${e.item.key}-badge-tag-${S}`,
808
814
  class: "config-badge",
809
- "data-testid": `${e.item.key}-badge-tag-${E}`,
810
- tooltip: h,
815
+ "data-testid": `${e.item.key}-badge-tag-${S}`,
816
+ tooltip: g,
811
817
  "truncation-tooltip": ""
812
818
  }, {
813
819
  default: b(() => [
814
- V(O(h), 1)
820
+ V(O(g), 1)
815
821
  ]),
816
822
  _: 2
817
823
  }, 1032, ["data-testid", "tooltip"]))), 128))
818
- ], 8, Mr)) : D("", !0),
819
- c.value.additionalComponent === "KCopy" ? (m(), I("div", {
824
+ ], 8, Mr)) : j("", !0),
825
+ u.value.additionalComponent === "KCopy" ? (m(), A("div", {
820
826
  key: 1,
821
827
  class: "copy-uuid-array",
822
828
  "data-testid": `${e.item.key}-copy-uuid-array`
823
829
  }, [
824
- (m(!0), I(ce, null, oe(e.item.value, (h, E) => (m(), M(_, Ln({ ref_for: !0 }, c.value.childAttrs, {
825
- key: `${e.item.key}-copy-uuid-${E}`,
826
- "data-testid": `${e.item.key}-copy-uuid-${E}`,
827
- text: h
830
+ (m(!0), A(ue, null, oe(e.item.value, (g, S) => (m(), D(_, Ln({ ref_for: !0 }, u.value.childAttrs, {
831
+ key: `${e.item.key}-copy-uuid-${S}`,
832
+ "data-testid": `${e.item.key}-copy-uuid-${S}`,
833
+ text: g
828
834
  }), null, 16, ["data-testid", "text"]))), 128))
829
- ], 8, Kr)) : c.value.additionalComponent === "KMethodBadge" ? (m(), I("div", {
835
+ ], 8, Kr)) : u.value.additionalComponent === "KMethodBadge" ? (m(), A("div", {
830
836
  key: 2,
831
837
  class: "method-badge-array",
832
838
  "data-testid": `${e.item.key}-badge-methods`
833
839
  }, [
834
- (m(!0), I(ce, null, oe(e.item.value, (h, E) => (m(), M(N, {
835
- key: `${e.item.key}-badge-method-${E}`,
836
- appearance: Object.values(T(Un)).includes(h.toLowerCase()) ? h.toLowerCase() : "custom",
840
+ (m(!0), A(ue, null, oe(e.item.value, (g, S) => (m(), D(N, {
841
+ key: `${e.item.key}-badge-method-${S}`,
842
+ appearance: Object.values(I(Un)).includes(g.toLowerCase()) ? g.toLowerCase() : "custom",
837
843
  class: "config-badge",
838
- "data-testid": `${e.item.key}-badge-method-${E}`
844
+ "data-testid": `${e.item.key}-badge-method-${S}`
839
845
  }, {
840
846
  default: b(() => [
841
- V(O(h), 1)
847
+ V(O(g), 1)
842
848
  ]),
843
849
  _: 2
844
850
  }, 1032, ["appearance", "data-testid"]))), 128))
845
- ], 8, Dr)) : D("", !0),
846
- c.value.additionalComponent === "JsonCardItem" ? (m(), I("div", {
851
+ ], 8, Dr)) : j("", !0),
852
+ u.value.additionalComponent === "JsonCardItem" ? (m(), A("div", {
847
853
  key: 3,
848
854
  "data-testid": `${n.item.key}-json-array-content`
849
855
  }, [
850
- (m(!0), I(ce, null, oe(e.item.value, (h, E) => (m(), M(Kt, {
851
- key: `json-array-item-${E}`,
852
- index: E,
856
+ (m(!0), A(ue, null, oe(e.item.value, (g, S) => (m(), D(Kt, {
857
+ key: `json-array-item-${S}`,
858
+ index: S,
853
859
  "is-array-item": "",
854
- item: h
860
+ item: g
855
861
  }, null, 8, ["index", "item"]))), 128))
856
- ], 8, Ur)) : (m(), M(W, {
862
+ ], 8, Ur)) : (m(), D($, {
857
863
  key: 4,
858
- text: T(p) ? e.item.value : ""
864
+ text: I(p) ? e.item.value : ""
859
865
  }, {
860
866
  default: b(() => [
861
867
  L("span", {
862
868
  ref_key: "textContent",
863
- ref: g,
869
+ ref: h,
864
870
  class: fe(["attrs-data-text", { truncated: e.truncated }])
865
- }, O(c.value.text), 3)
871
+ }, O(u.value.text), 3)
866
872
  ]),
867
873
  _: 1
868
874
  }, 8, ["text"]))
869
875
  ]),
870
876
  _: 1
871
877
  }, 16))
872
- ])) : (m(), I("div", {
878
+ ])) : (m(), A("div", {
873
879
  key: 0,
874
880
  "data-testid": `${e.item.key}-no-value`
875
881
  }, " – ", 8, Br))
@@ -912,7 +918,7 @@ const Y = {
912
918
  Ot((i) => ({
913
919
  "7a485cf8": `${r.value}ch`
914
920
  }));
915
- const t = e, n = k(() => t.jsonRecord), r = k(() => {
921
+ const t = e, n = C(() => t.jsonRecord), r = C(() => {
916
922
  var o;
917
923
  if (!t.fetcherUrl)
918
924
  return 0;
@@ -920,10 +926,10 @@ const Y = {
920
926
  return i.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? i[i.length - 1] : i[i.length - 2]).length;
921
927
  });
922
928
  return (i, a) => {
923
- const o = K("KBadge"), l = K("KCodeBlock");
924
- return m(), I("div", Pr, [
925
- t.fetcherUrl ? (m(), I("div", Hr, [
926
- B(o, {
929
+ const o = U("KBadge"), l = U("KCodeBlock");
930
+ return m(), A("div", Pr, [
931
+ t.fetcherUrl ? (m(), A("div", Hr, [
932
+ M(o, {
927
933
  appearance: t.requestMethod
928
934
  }, {
929
935
  default: b(() => [
@@ -931,22 +937,22 @@ const Y = {
931
937
  ]),
932
938
  _: 1
933
939
  }, 8, ["appearance"]),
934
- B(l, {
940
+ M(l, {
935
941
  id: "json-endpoint-codeblock",
936
942
  code: t.fetcherUrl,
937
943
  language: "json",
938
944
  "single-line": "",
939
945
  theme: "dark"
940
946
  }, null, 8, ["code"])
941
- ])) : D("", !0),
942
- t.jsonRecord ? (m(), M(l, {
947
+ ])) : j("", !0),
948
+ t.jsonRecord ? (m(), D(l, {
943
949
  key: 1,
944
950
  id: "json-codeblock",
945
951
  class: fe({ "json-content": t.fetcherUrl }),
946
952
  code: JSON.stringify(n.value, null, 2),
947
953
  language: "json",
948
954
  theme: "dark"
949
- }, null, 8, ["class", "code"])) : D("", !0)
955
+ }, null, 8, ["class", "code"])) : j("", !0)
950
956
  ]);
951
957
  };
952
958
  }
@@ -1017,26 +1023,26 @@ function ni(e, t) {
1017
1023
  for (var n = /\r?\n|\r|\0/g, r = [0], i = [], a, o = -1; a = n.exec(e.buffer); )
1018
1024
  i.push(a.index), r.push(a.index + a[0].length), e.position <= a.index && o < 0 && (o = r.length - 2);
1019
1025
  o < 0 && (o = r.length - 1);
1020
- var l = "", s, u, d = Math.min(e.line + t.linesAfter, i.length).toString().length, c = t.maxLength - (t.indent + d + 3);
1026
+ var l = "", s, c, d = Math.min(e.line + t.linesAfter, i.length).toString().length, u = t.maxLength - (t.indent + d + 3);
1021
1027
  for (s = 1; s <= t.linesBefore && !(o - s < 0); s++)
1022
- u = He(
1028
+ c = He(
1023
1029
  e.buffer,
1024
1030
  r[o - s],
1025
1031
  i[o - s],
1026
1032
  e.position - (r[o] - r[o - s]),
1027
- c
1028
- ), l = Z.repeat(" ", t.indent) + Ve((e.line - s + 1).toString(), d) + " | " + u.str + `
1033
+ u
1034
+ ), l = Z.repeat(" ", t.indent) + Ve((e.line - s + 1).toString(), d) + " | " + c.str + `
1029
1035
  ` + l;
1030
- for (u = He(e.buffer, r[o], i[o], e.position, c), l += Z.repeat(" ", t.indent) + Ve((e.line + 1).toString(), d) + " | " + u.str + `
1031
- `, l += Z.repeat("-", t.indent + d + 3 + u.pos) + `^
1036
+ for (c = He(e.buffer, r[o], i[o], e.position, u), l += Z.repeat(" ", t.indent) + Ve((e.line + 1).toString(), d) + " | " + c.str + `
1037
+ `, l += Z.repeat("-", t.indent + d + 3 + c.pos) + `^
1032
1038
  `, s = 1; s <= t.linesAfter && !(o + s >= i.length); s++)
1033
- u = He(
1039
+ c = He(
1034
1040
  e.buffer,
1035
1041
  r[o + s],
1036
1042
  i[o + s],
1037
1043
  e.position - (r[o] - r[o + s]),
1038
- c
1039
- ), l += Z.repeat(" ", t.indent) + Ve((e.line + s + 1).toString(), d) + " | " + u.str + `
1044
+ u
1045
+ ), l += Z.repeat(" ", t.indent) + Ve((e.line + s + 1).toString(), d) + " | " + c.str + `
1040
1046
  `;
1041
1047
  return l.replace(/\n$/, "");
1042
1048
  }
@@ -1154,12 +1160,12 @@ var Pt = We, Ht = new X("tag:yaml.org,2002:str", {
1154
1160
  zt
1155
1161
  ]
1156
1162
  });
1157
- function ci(e) {
1163
+ function ui(e) {
1158
1164
  if (e === null) return !0;
1159
1165
  var t = e.length;
1160
1166
  return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
1161
1167
  }
1162
- function ui() {
1168
+ function ci() {
1163
1169
  return null;
1164
1170
  }
1165
1171
  function di(e) {
@@ -1167,8 +1173,8 @@ function di(e) {
1167
1173
  }
1168
1174
  var Wt = new X("tag:yaml.org,2002:null", {
1169
1175
  kind: "scalar",
1170
- resolve: ci,
1171
- construct: ui,
1176
+ resolve: ui,
1177
+ construct: ci,
1172
1178
  predicate: di,
1173
1179
  represent: {
1174
1180
  canonical: function() {
@@ -1380,7 +1386,7 @@ function Ii(e) {
1380
1386
  return e === null ? !1 : en.exec(e) !== null || tn.exec(e) !== null;
1381
1387
  }
1382
1388
  function Ei(e) {
1383
- var t, n, r, i, a, o, l, s = 0, u = null, d, c, g;
1389
+ var t, n, r, i, a, o, l, s = 0, c = null, d, u, h;
1384
1390
  if (t = en.exec(e), t === null && (t = tn.exec(e)), t === null) throw new Error("Date resolve error");
1385
1391
  if (n = +t[1], r = +t[2] - 1, i = +t[3], !t[4])
1386
1392
  return new Date(Date.UTC(n, r, i));
@@ -1389,7 +1395,7 @@ function Ei(e) {
1389
1395
  s += "0";
1390
1396
  s = +s;
1391
1397
  }
1392
- return t[9] && (d = +t[10], c = +(t[11] || 0), u = (d * 60 + c) * 6e4, t[9] === "-" && (u = -u)), g = new Date(Date.UTC(n, r, i, a, o, l, s)), u && g.setTime(g.getTime() - u), g;
1398
+ return t[9] && (d = +t[10], u = +(t[11] || 0), c = (d * 60 + u) * 6e4, t[9] === "-" && (c = -c)), h = new Date(Date.UTC(n, r, i, a, o, l, s)), c && h.setTime(h.getTime() - c), h;
1393
1399
  }
1394
1400
  function Ti(e) {
1395
1401
  return e.toISOString();
@@ -1511,7 +1517,7 @@ var sn = new X("tag:yaml.org,2002:set", {
1511
1517
  ln,
1512
1518
  sn
1513
1519
  ]
1514
- }), pe = Object.prototype.hasOwnProperty, Re = 1, cn = 2, un = 3, Me = 4, ze = 1, Vi = 2, gt = 3, zi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Yi = /[\x85\u2028\u2029]/, Wi = /[,\[\]\{\}]/, dn = /^(?:!|!!|![a-z\-]+!)$/i, fn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1520
+ }), pe = Object.prototype.hasOwnProperty, Re = 1, un = 2, cn = 3, Me = 4, ze = 1, Vi = 2, gt = 3, zi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Yi = /[\x85\u2028\u2029]/, Wi = /[,\[\]\{\}]/, dn = /^(?:!|!!|![a-z\-]+!)$/i, fn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1515
1521
  function yt(e) {
1516
1522
  return Object.prototype.toString.call(e);
1517
1523
  }
@@ -1564,7 +1570,7 @@ function mn(e, t) {
1564
1570
  };
1565
1571
  return n.snippet = ri(n), new te(t, n);
1566
1572
  }
1567
- function C(e, t) {
1573
+ function k(e, t) {
1568
1574
  throw mn(e, t);
1569
1575
  }
1570
1576
  function Ke(e, t) {
@@ -1573,15 +1579,15 @@ function Ke(e, t) {
1573
1579
  var bt = {
1574
1580
  YAML: function(t, n, r) {
1575
1581
  var i, a, o;
1576
- t.version !== null && C(t, "duplication of %YAML directive"), r.length !== 1 && C(t, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && C(t, "ill-formed argument of the YAML directive"), a = parseInt(i[1], 10), o = parseInt(i[2], 10), a !== 1 && C(t, "unacceptable YAML version of the document"), t.version = r[0], t.checkLineBreaks = o < 2, o !== 1 && o !== 2 && Ke(t, "unsupported YAML version of the document");
1582
+ t.version !== null && k(t, "duplication of %YAML directive"), r.length !== 1 && k(t, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && k(t, "ill-formed argument of the YAML directive"), a = parseInt(i[1], 10), o = parseInt(i[2], 10), a !== 1 && k(t, "unacceptable YAML version of the document"), t.version = r[0], t.checkLineBreaks = o < 2, o !== 1 && o !== 2 && Ke(t, "unsupported YAML version of the document");
1577
1583
  },
1578
1584
  TAG: function(t, n, r) {
1579
1585
  var i, a;
1580
- r.length !== 2 && C(t, "TAG directive accepts exactly two arguments"), i = r[0], a = r[1], dn.test(i) || C(t, "ill-formed tag handle (first argument) of the TAG directive"), pe.call(t.tagMap, i) && C(t, 'there is a previously declared suffix for "' + i + '" tag handle'), fn.test(a) || C(t, "ill-formed tag prefix (second argument) of the TAG directive");
1586
+ r.length !== 2 && k(t, "TAG directive accepts exactly two arguments"), i = r[0], a = r[1], dn.test(i) || k(t, "ill-formed tag handle (first argument) of the TAG directive"), pe.call(t.tagMap, i) && k(t, 'there is a previously declared suffix for "' + i + '" tag handle'), fn.test(a) || k(t, "ill-formed tag prefix (second argument) of the TAG directive");
1581
1587
  try {
1582
1588
  a = decodeURIComponent(a);
1583
1589
  } catch {
1584
- C(t, "tag prefix is malformed: " + a);
1590
+ k(t, "tag prefix is malformed: " + a);
1585
1591
  }
1586
1592
  t.tagMap[i] = a;
1587
1593
  }
@@ -1591,29 +1597,29 @@ function de(e, t, n, r) {
1591
1597
  if (t < n) {
1592
1598
  if (l = e.input.slice(t, n), r)
1593
1599
  for (i = 0, a = l.length; i < a; i += 1)
1594
- o = l.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 || C(e, "expected valid JSON character");
1595
- else zi.test(l) && C(e, "the stream contains non-printable characters");
1600
+ o = l.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 || k(e, "expected valid JSON character");
1601
+ else zi.test(l) && k(e, "the stream contains non-printable characters");
1596
1602
  e.result += l;
1597
1603
  }
1598
1604
  }
1599
1605
  function xt(e, t, n, r) {
1600
1606
  var i, a, o, l;
1601
- for (Z.isObject(n) || C(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), o = 0, l = i.length; o < l; o += 1)
1607
+ for (Z.isObject(n) || k(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), o = 0, l = i.length; o < l; o += 1)
1602
1608
  a = i[o], pe.call(t, a) || (t[a] = n[a], r[a] = !0);
1603
1609
  }
1604
1610
  function ke(e, t, n, r, i, a, o, l, s) {
1605
- var u, d;
1611
+ var c, d;
1606
1612
  if (Array.isArray(i))
1607
- for (i = Array.prototype.slice.call(i), u = 0, d = i.length; u < d; u += 1)
1608
- Array.isArray(i[u]) && C(e, "nested arrays are not supported inside keys"), typeof i == "object" && yt(i[u]) === "[object Object]" && (i[u] = "[object Object]");
1613
+ for (i = Array.prototype.slice.call(i), c = 0, d = i.length; c < d; c += 1)
1614
+ Array.isArray(i[c]) && k(e, "nested arrays are not supported inside keys"), typeof i == "object" && yt(i[c]) === "[object Object]" && (i[c] = "[object Object]");
1609
1615
  if (typeof i == "object" && yt(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge")
1610
1616
  if (Array.isArray(a))
1611
- for (u = 0, d = a.length; u < d; u += 1)
1612
- xt(e, t, a[u], n);
1617
+ for (c = 0, d = a.length; c < d; c += 1)
1618
+ xt(e, t, a[c], n);
1613
1619
  else
1614
1620
  xt(e, t, a, n);
1615
1621
  else
1616
- !e.json && !pe.call(n, i) && pe.call(t, i) && (e.line = o || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, C(e, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(t, i, {
1622
+ !e.json && !pe.call(n, i) && pe.call(t, i) && (e.line = o || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, k(e, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(t, i, {
1617
1623
  configurable: !0,
1618
1624
  enumerable: !0,
1619
1625
  writable: !0,
@@ -1623,7 +1629,7 @@ function ke(e, t, n, r, i, a, o, l, s) {
1623
1629
  }
1624
1630
  function rt(e) {
1625
1631
  var t;
1626
- t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : C(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1632
+ t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : k(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1627
1633
  }
1628
1634
  function J(e, t, n) {
1629
1635
  for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0; ) {
@@ -1650,7 +1656,7 @@ function it(e, t) {
1650
1656
  `, t - 1));
1651
1657
  }
1652
1658
  function ea(e, t, n) {
1653
- var r, i, a, o, l, s, u, d, c = e.kind, g = e.result, p;
1659
+ var r, i, a, o, l, s, c, d, u = e.kind, h = e.result, p;
1654
1660
  if (p = e.input.charCodeAt(e.position), ne(p) || Ce(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = e.input.charCodeAt(e.position + 1), ne(i) || n && Ce(i)))
1655
1661
  return !1;
1656
1662
  for (e.kind = "scalar", e.result = "", a = o = e.position, l = !1; p !== 0; ) {
@@ -1664,17 +1670,17 @@ function ea(e, t, n) {
1664
1670
  if (e.position === e.lineStart && qe(e) || n && Ce(p))
1665
1671
  break;
1666
1672
  if (le(p))
1667
- if (s = e.line, u = e.lineStart, d = e.lineIndent, J(e, !1, -1), e.lineIndent >= t) {
1673
+ if (s = e.line, c = e.lineStart, d = e.lineIndent, J(e, !1, -1), e.lineIndent >= t) {
1668
1674
  l = !0, p = e.input.charCodeAt(e.position);
1669
1675
  continue;
1670
1676
  } else {
1671
- e.position = o, e.line = s, e.lineStart = u, e.lineIndent = d;
1677
+ e.position = o, e.line = s, e.lineStart = c, e.lineIndent = d;
1672
1678
  break;
1673
1679
  }
1674
1680
  }
1675
1681
  l && (de(e, a, o, !1), it(e, e.line - s), a = o = e.position, l = !1), ye(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
1676
1682
  }
1677
- return de(e, a, o, !1), e.result ? !0 : (e.kind = c, e.result = g, !1);
1683
+ return de(e, a, o, !1), e.result ? !0 : (e.kind = u, e.result = h, !1);
1678
1684
  }
1679
1685
  function ta(e, t) {
1680
1686
  var n, r, i;
@@ -1686,8 +1692,8 @@ function ta(e, t) {
1686
1692
  r = e.position, e.position++, i = e.position;
1687
1693
  else
1688
1694
  return !0;
1689
- else le(n) ? (de(e, r, i, !0), it(e, J(e, !1, t)), r = i = e.position) : e.position === e.lineStart && qe(e) ? C(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
1690
- C(e, "unexpected end of the stream within a single quoted scalar");
1695
+ else le(n) ? (de(e, r, i, !0), it(e, J(e, !1, t)), r = i = e.position) : e.position === e.lineStart && qe(e) ? k(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
1696
+ k(e, "unexpected end of the stream within a single quoted scalar");
1691
1697
  }
1692
1698
  function na(e, t) {
1693
1699
  var n, r, i, a, o, l;
@@ -1703,17 +1709,17 @@ function na(e, t) {
1703
1709
  e.result += hn[l], e.position++;
1704
1710
  else if ((o = Gi(l)) > 0) {
1705
1711
  for (i = o, a = 0; i > 0; i--)
1706
- l = e.input.charCodeAt(++e.position), (o = Ji(l)) >= 0 ? a = (a << 4) + o : C(e, "expected hexadecimal character");
1712
+ l = e.input.charCodeAt(++e.position), (o = Ji(l)) >= 0 ? a = (a << 4) + o : k(e, "expected hexadecimal character");
1707
1713
  e.result += Qi(a), e.position++;
1708
1714
  } else
1709
- C(e, "unknown escape sequence");
1715
+ k(e, "unknown escape sequence");
1710
1716
  n = r = e.position;
1711
- } else le(l) ? (de(e, n, r, !0), it(e, J(e, !1, t)), n = r = e.position) : e.position === e.lineStart && qe(e) ? C(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1717
+ } else le(l) ? (de(e, n, r, !0), it(e, J(e, !1, t)), n = r = e.position) : e.position === e.lineStart && qe(e) ? k(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1712
1718
  }
1713
- C(e, "unexpected end of the stream within a double quoted scalar");
1719
+ k(e, "unexpected end of the stream within a double quoted scalar");
1714
1720
  }
1715
1721
  function ra(e, t) {
1716
- var n = !0, r, i, a, o = e.tag, l, s = e.anchor, u, d, c, g, p, y = /* @__PURE__ */ Object.create(null), v, w, N, _;
1722
+ var n = !0, r, i, a, o = e.tag, l, s = e.anchor, c, d, u, h, p, y = /* @__PURE__ */ Object.create(null), x, w, N, _;
1717
1723
  if (_ = e.input.charCodeAt(e.position), _ === 91)
1718
1724
  d = 93, p = !1, l = [];
1719
1725
  else if (_ === 123)
@@ -1723,38 +1729,38 @@ function ra(e, t) {
1723
1729
  for (e.anchor !== null && (e.anchorMap[e.anchor] = l), _ = e.input.charCodeAt(++e.position); _ !== 0; ) {
1724
1730
  if (J(e, !0, t), _ = e.input.charCodeAt(e.position), _ === d)
1725
1731
  return e.position++, e.tag = o, e.anchor = s, e.kind = p ? "mapping" : "sequence", e.result = l, !0;
1726
- n ? _ === 44 && C(e, "expected the node content, but found ','") : C(e, "missed comma between flow collection entries"), w = v = N = null, c = g = !1, _ === 63 && (u = e.input.charCodeAt(e.position + 1), ne(u) && (c = g = !0, e.position++, J(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, _e(e, t, Re, !1, !0), w = e.tag, v = e.result, J(e, !0, t), _ = e.input.charCodeAt(e.position), (g || e.line === r) && _ === 58 && (c = !0, _ = e.input.charCodeAt(++e.position), J(e, !0, t), _e(e, t, Re, !1, !0), N = e.result), p ? ke(e, l, y, w, v, N, r, i, a) : c ? l.push(ke(e, null, y, w, v, N, r, i, a)) : l.push(v), J(e, !0, t), _ = e.input.charCodeAt(e.position), _ === 44 ? (n = !0, _ = e.input.charCodeAt(++e.position)) : n = !1;
1732
+ n ? _ === 44 && k(e, "expected the node content, but found ','") : k(e, "missed comma between flow collection entries"), w = x = N = null, u = h = !1, _ === 63 && (c = e.input.charCodeAt(e.position + 1), ne(c) && (u = h = !0, e.position++, J(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, _e(e, t, Re, !1, !0), w = e.tag, x = e.result, J(e, !0, t), _ = e.input.charCodeAt(e.position), (h || e.line === r) && _ === 58 && (u = !0, _ = e.input.charCodeAt(++e.position), J(e, !0, t), _e(e, t, Re, !1, !0), N = e.result), p ? ke(e, l, y, w, x, N, r, i, a) : u ? l.push(ke(e, null, y, w, x, N, r, i, a)) : l.push(x), J(e, !0, t), _ = e.input.charCodeAt(e.position), _ === 44 ? (n = !0, _ = e.input.charCodeAt(++e.position)) : n = !1;
1727
1733
  }
1728
- C(e, "unexpected end of the stream within a flow collection");
1734
+ k(e, "unexpected end of the stream within a flow collection");
1729
1735
  }
1730
1736
  function ia(e, t) {
1731
- var n, r, i = ze, a = !1, o = !1, l = t, s = 0, u = !1, d, c;
1732
- if (c = e.input.charCodeAt(e.position), c === 124)
1737
+ var n, r, i = ze, a = !1, o = !1, l = t, s = 0, c = !1, d, u;
1738
+ if (u = e.input.charCodeAt(e.position), u === 124)
1733
1739
  r = !1;
1734
- else if (c === 62)
1740
+ else if (u === 62)
1735
1741
  r = !0;
1736
1742
  else
1737
1743
  return !1;
1738
- for (e.kind = "scalar", e.result = ""; c !== 0; )
1739
- if (c = e.input.charCodeAt(++e.position), c === 43 || c === 45)
1740
- ze === i ? i = c === 43 ? gt : Vi : C(e, "repeat of a chomping mode identifier");
1741
- else if ((d = Zi(c)) >= 0)
1742
- d === 0 ? C(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? C(e, "repeat of an indentation width identifier") : (l = t + d - 1, o = !0);
1744
+ for (e.kind = "scalar", e.result = ""; u !== 0; )
1745
+ if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
1746
+ ze === i ? i = u === 43 ? gt : Vi : k(e, "repeat of a chomping mode identifier");
1747
+ else if ((d = Zi(u)) >= 0)
1748
+ d === 0 ? k(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? k(e, "repeat of an indentation width identifier") : (l = t + d - 1, o = !0);
1743
1749
  else
1744
1750
  break;
1745
- if (ye(c)) {
1751
+ if (ye(u)) {
1746
1752
  do
1747
- c = e.input.charCodeAt(++e.position);
1748
- while (ye(c));
1749
- if (c === 35)
1753
+ u = e.input.charCodeAt(++e.position);
1754
+ while (ye(u));
1755
+ if (u === 35)
1750
1756
  do
1751
- c = e.input.charCodeAt(++e.position);
1752
- while (!le(c) && c !== 0);
1757
+ u = e.input.charCodeAt(++e.position);
1758
+ while (!le(u) && u !== 0);
1753
1759
  }
1754
- for (; c !== 0; ) {
1755
- for (rt(e), e.lineIndent = 0, c = e.input.charCodeAt(e.position); (!o || e.lineIndent < l) && c === 32; )
1756
- e.lineIndent++, c = e.input.charCodeAt(++e.position);
1757
- if (!o && e.lineIndent > l && (l = e.lineIndent), le(c)) {
1760
+ for (; u !== 0; ) {
1761
+ for (rt(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!o || e.lineIndent < l) && u === 32; )
1762
+ e.lineIndent++, u = e.input.charCodeAt(++e.position);
1763
+ if (!o && e.lineIndent > l && (l = e.lineIndent), le(u)) {
1758
1764
  s++;
1759
1765
  continue;
1760
1766
  }
@@ -1764,12 +1770,12 @@ function ia(e, t) {
1764
1770
  `);
1765
1771
  break;
1766
1772
  }
1767
- for (r ? ye(c) ? (u = !0, e.result += Z.repeat(`
1768
- `, a ? 1 + s : s)) : u ? (u = !1, e.result += Z.repeat(`
1773
+ for (r ? ye(u) ? (c = !0, e.result += Z.repeat(`
1774
+ `, a ? 1 + s : s)) : c ? (c = !1, e.result += Z.repeat(`
1769
1775
  `, s + 1)) : s === 0 ? a && (e.result += " ") : e.result += Z.repeat(`
1770
1776
  `, s) : e.result += Z.repeat(`
1771
- `, a ? 1 + s : s), a = !0, o = !0, s = 0, n = e.position; !le(c) && c !== 0; )
1772
- c = e.input.charCodeAt(++e.position);
1777
+ `, a ? 1 + s : s), a = !0, o = !0, s = 0, n = e.position; !le(u) && u !== 0; )
1778
+ u = e.input.charCodeAt(++e.position);
1773
1779
  de(e, n, e.position, !1);
1774
1780
  }
1775
1781
  return !0;
@@ -1777,93 +1783,93 @@ function ia(e, t) {
1777
1783
  function Ct(e, t) {
1778
1784
  var n, r = e.tag, i = e.anchor, a = [], o, l = !1, s;
1779
1785
  if (e.firstTabInLine !== -1) return !1;
1780
- for (e.anchor !== null && (e.anchorMap[e.anchor] = a), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, C(e, "tab characters must not be used in indentation")), !(s !== 45 || (o = e.input.charCodeAt(e.position + 1), !ne(o)))); ) {
1786
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = a), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, k(e, "tab characters must not be used in indentation")), !(s !== 45 || (o = e.input.charCodeAt(e.position + 1), !ne(o)))); ) {
1781
1787
  if (l = !0, e.position++, J(e, !0, -1) && e.lineIndent <= t) {
1782
1788
  a.push(null), s = e.input.charCodeAt(e.position);
1783
1789
  continue;
1784
1790
  }
1785
- if (n = e.line, _e(e, t, un, !1, !0), a.push(e.result), J(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
1786
- C(e, "bad indentation of a sequence entry");
1791
+ if (n = e.line, _e(e, t, cn, !1, !0), a.push(e.result), J(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
1792
+ k(e, "bad indentation of a sequence entry");
1787
1793
  else if (e.lineIndent < t)
1788
1794
  break;
1789
1795
  }
1790
1796
  return l ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
1791
1797
  }
1792
1798
  function aa(e, t, n) {
1793
- var r, i, a, o, l, s, u = e.tag, d = e.anchor, c = {}, g = /* @__PURE__ */ Object.create(null), p = null, y = null, v = null, w = !1, N = !1, _;
1799
+ var r, i, a, o, l, s, c = e.tag, d = e.anchor, u = {}, h = /* @__PURE__ */ Object.create(null), p = null, y = null, x = null, w = !1, N = !1, _;
1794
1800
  if (e.firstTabInLine !== -1) return !1;
1795
- for (e.anchor !== null && (e.anchorMap[e.anchor] = c), _ = e.input.charCodeAt(e.position); _ !== 0; ) {
1796
- if (!w && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, C(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (_ === 63 || _ === 58) && ne(r))
1797
- _ === 63 ? (w && (ke(e, c, g, p, y, null, o, l, s), p = y = v = null), N = !0, w = !0, i = !0) : w ? (w = !1, i = !0) : C(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, _ = r;
1801
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = u), _ = e.input.charCodeAt(e.position); _ !== 0; ) {
1802
+ if (!w && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, k(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (_ === 63 || _ === 58) && ne(r))
1803
+ _ === 63 ? (w && (ke(e, u, h, p, y, null, o, l, s), p = y = x = null), N = !0, w = !0, i = !0) : w ? (w = !1, i = !0) : k(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, _ = r;
1798
1804
  else {
1799
- if (o = e.line, l = e.lineStart, s = e.position, !_e(e, n, cn, !1, !0))
1805
+ if (o = e.line, l = e.lineStart, s = e.position, !_e(e, n, un, !1, !0))
1800
1806
  break;
1801
1807
  if (e.line === a) {
1802
1808
  for (_ = e.input.charCodeAt(e.position); ye(_); )
1803
1809
  _ = e.input.charCodeAt(++e.position);
1804
1810
  if (_ === 58)
1805
- _ = e.input.charCodeAt(++e.position), ne(_) || C(e, "a whitespace character is expected after the key-value separator within a block mapping"), w && (ke(e, c, g, p, y, null, o, l, s), p = y = v = null), N = !0, w = !1, i = !1, p = e.tag, y = e.result;
1811
+ _ = e.input.charCodeAt(++e.position), ne(_) || k(e, "a whitespace character is expected after the key-value separator within a block mapping"), w && (ke(e, u, h, p, y, null, o, l, s), p = y = x = null), N = !0, w = !1, i = !1, p = e.tag, y = e.result;
1806
1812
  else if (N)
1807
- C(e, "can not read an implicit mapping pair; a colon is missed");
1813
+ k(e, "can not read an implicit mapping pair; a colon is missed");
1808
1814
  else
1809
- return e.tag = u, e.anchor = d, !0;
1815
+ return e.tag = c, e.anchor = d, !0;
1810
1816
  } else if (N)
1811
- C(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1817
+ k(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1812
1818
  else
1813
- return e.tag = u, e.anchor = d, !0;
1819
+ return e.tag = c, e.anchor = d, !0;
1814
1820
  }
1815
- if ((e.line === a || e.lineIndent > t) && (w && (o = e.line, l = e.lineStart, s = e.position), _e(e, t, Me, !0, i) && (w ? y = e.result : v = e.result), w || (ke(e, c, g, p, y, v, o, l, s), p = y = v = null), J(e, !0, -1), _ = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && _ !== 0)
1816
- C(e, "bad indentation of a mapping entry");
1821
+ if ((e.line === a || e.lineIndent > t) && (w && (o = e.line, l = e.lineStart, s = e.position), _e(e, t, Me, !0, i) && (w ? y = e.result : x = e.result), w || (ke(e, u, h, p, y, x, o, l, s), p = y = x = null), J(e, !0, -1), _ = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && _ !== 0)
1822
+ k(e, "bad indentation of a mapping entry");
1817
1823
  else if (e.lineIndent < t)
1818
1824
  break;
1819
1825
  }
1820
- return w && ke(e, c, g, p, y, null, o, l, s), N && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), N;
1826
+ return w && ke(e, u, h, p, y, null, o, l, s), N && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), N;
1821
1827
  }
1822
1828
  function oa(e) {
1823
1829
  var t, n = !1, r = !1, i, a, o;
1824
1830
  if (o = e.input.charCodeAt(e.position), o !== 33) return !1;
1825
- if (e.tag !== null && C(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, i = "!!", o = e.input.charCodeAt(++e.position)) : i = "!", t = e.position, n) {
1831
+ if (e.tag !== null && k(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, i = "!!", o = e.input.charCodeAt(++e.position)) : i = "!", t = e.position, n) {
1826
1832
  do
1827
1833
  o = e.input.charCodeAt(++e.position);
1828
1834
  while (o !== 0 && o !== 62);
1829
- e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : C(e, "unexpected end of the stream within a verbatim tag");
1835
+ e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : k(e, "unexpected end of the stream within a verbatim tag");
1830
1836
  } else {
1831
1837
  for (; o !== 0 && !ne(o); )
1832
- o === 33 && (r ? C(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), dn.test(i) || C(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
1833
- a = e.input.slice(t, e.position), Wi.test(a) && C(e, "tag suffix cannot contain flow indicator characters");
1838
+ o === 33 && (r ? k(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), dn.test(i) || k(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
1839
+ a = e.input.slice(t, e.position), Wi.test(a) && k(e, "tag suffix cannot contain flow indicator characters");
1834
1840
  }
1835
- a && !fn.test(a) && C(e, "tag name cannot contain such characters: " + a);
1841
+ a && !fn.test(a) && k(e, "tag name cannot contain such characters: " + a);
1836
1842
  try {
1837
1843
  a = decodeURIComponent(a);
1838
1844
  } catch {
1839
- C(e, "tag name is malformed: " + a);
1845
+ k(e, "tag name is malformed: " + a);
1840
1846
  }
1841
- return n ? e.tag = a : pe.call(e.tagMap, i) ? e.tag = e.tagMap[i] + a : i === "!" ? e.tag = "!" + a : i === "!!" ? e.tag = "tag:yaml.org,2002:" + a : C(e, 'undeclared tag handle "' + i + '"'), !0;
1847
+ return n ? e.tag = a : pe.call(e.tagMap, i) ? e.tag = e.tagMap[i] + a : i === "!" ? e.tag = "!" + a : i === "!!" ? e.tag = "tag:yaml.org,2002:" + a : k(e, 'undeclared tag handle "' + i + '"'), !0;
1842
1848
  }
1843
1849
  function la(e) {
1844
1850
  var t, n;
1845
1851
  if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
1846
- for (e.anchor !== null && C(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !ne(n) && !Ce(n); )
1852
+ for (e.anchor !== null && k(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !ne(n) && !Ce(n); )
1847
1853
  n = e.input.charCodeAt(++e.position);
1848
- return e.position === t && C(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
1854
+ return e.position === t && k(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
1849
1855
  }
1850
1856
  function sa(e) {
1851
1857
  var t, n, r;
1852
1858
  if (r = e.input.charCodeAt(e.position), r !== 42) return !1;
1853
1859
  for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !ne(r) && !Ce(r); )
1854
1860
  r = e.input.charCodeAt(++e.position);
1855
- return e.position === t && C(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), pe.call(e.anchorMap, n) || C(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], J(e, !0, -1), !0;
1861
+ return e.position === t && k(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), pe.call(e.anchorMap, n) || k(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], J(e, !0, -1), !0;
1856
1862
  }
1857
1863
  function _e(e, t, n, r, i) {
1858
- var a, o, l, s = 1, u = !1, d = !1, c, g, p, y, v, w;
1859
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l = Me === n || un === n, r && J(e, !0, -1) && (u = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
1864
+ var a, o, l, s = 1, c = !1, d = !1, u, h, p, y, x, w;
1865
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l = Me === n || cn === n, r && J(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
1860
1866
  for (; oa(e) || la(e); )
1861
- J(e, !0, -1) ? (u = !0, l = a, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
1862
- if (l && (l = u || i), (s === 1 || Me === n) && (Re === n || cn === n ? v = t : v = t + 1, w = e.position - e.lineStart, s === 1 ? l && (Ct(e, w) || aa(e, w, v)) || ra(e, v) ? d = !0 : (o && ia(e, v) || ta(e, v) || na(e, v) ? d = !0 : sa(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && C(e, "alias node should not have any properties")) : ea(e, v, Re === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Ct(e, w))), e.tag === null)
1867
+ J(e, !0, -1) ? (c = !0, l = a, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
1868
+ if (l && (l = c || i), (s === 1 || Me === n) && (Re === n || un === n ? x = t : x = t + 1, w = e.position - e.lineStart, s === 1 ? l && (Ct(e, w) || aa(e, w, x)) || ra(e, x) ? d = !0 : (o && ia(e, x) || ta(e, x) || na(e, x) ? d = !0 : sa(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && k(e, "alias node should not have any properties")) : ea(e, x, Re === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Ct(e, w))), e.tag === null)
1863
1869
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
1864
1870
  else if (e.tag === "?") {
1865
- for (e.result !== null && e.kind !== "scalar" && C(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, g = e.implicitTypes.length; c < g; c += 1)
1866
- if (y = e.implicitTypes[c], y.resolve(e.result)) {
1871
+ for (e.result !== null && e.kind !== "scalar" && k(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, h = e.implicitTypes.length; u < h; u += 1)
1872
+ if (y = e.implicitTypes[u], y.resolve(e.result)) {
1867
1873
  e.result = y.construct(e.result), e.tag = y.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
1868
1874
  break;
1869
1875
  }
@@ -1871,21 +1877,21 @@ function _e(e, t, n, r, i) {
1871
1877
  if (pe.call(e.typeMap[e.kind || "fallback"], e.tag))
1872
1878
  y = e.typeMap[e.kind || "fallback"][e.tag];
1873
1879
  else
1874
- for (y = null, p = e.typeMap.multi[e.kind || "fallback"], c = 0, g = p.length; c < g; c += 1)
1875
- if (e.tag.slice(0, p[c].tag.length) === p[c].tag) {
1876
- y = p[c];
1880
+ for (y = null, p = e.typeMap.multi[e.kind || "fallback"], u = 0, h = p.length; u < h; u += 1)
1881
+ if (e.tag.slice(0, p[u].tag.length) === p[u].tag) {
1882
+ y = p[u];
1877
1883
  break;
1878
1884
  }
1879
- y || C(e, "unknown tag !<" + e.tag + ">"), e.result !== null && y.kind !== e.kind && C(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + y.kind + '", not "' + e.kind + '"'), y.resolve(e.result, e.tag) ? (e.result = y.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : C(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
1885
+ y || k(e, "unknown tag !<" + e.tag + ">"), e.result !== null && y.kind !== e.kind && k(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + y.kind + '", not "' + e.kind + '"'), y.resolve(e.result, e.tag) ? (e.result = y.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : k(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
1880
1886
  }
1881
1887
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
1882
1888
  }
1883
- function ca(e) {
1889
+ function ua(e) {
1884
1890
  var t = e.position, n, r, i, a = !1, o;
1885
1891
  for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (J(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
1886
1892
  for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !ne(o); )
1887
1893
  o = e.input.charCodeAt(++e.position);
1888
- for (r = e.input.slice(n, e.position), i = [], r.length < 1 && C(e, "directive name must not be less than one character in length"); o !== 0; ) {
1894
+ for (r = e.input.slice(n, e.position), i = [], r.length < 1 && k(e, "directive name must not be less than one character in length"); o !== 0; ) {
1889
1895
  for (; ye(o); )
1890
1896
  o = e.input.charCodeAt(++e.position);
1891
1897
  if (o === 35) {
@@ -1901,12 +1907,12 @@ function ca(e) {
1901
1907
  }
1902
1908
  o !== 0 && rt(e), pe.call(bt, r) ? bt[r](e, r, i) : Ke(e, 'unknown document directive "' + r + '"');
1903
1909
  }
1904
- if (J(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, J(e, !0, -1)) : a && C(e, "directives end mark is expected"), _e(e, e.lineIndent - 1, Me, !1, !0), J(e, !0, -1), e.checkLineBreaks && Yi.test(e.input.slice(t, e.position)) && Ke(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && qe(e)) {
1910
+ if (J(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, J(e, !0, -1)) : a && k(e, "directives end mark is expected"), _e(e, e.lineIndent - 1, Me, !1, !0), J(e, !0, -1), e.checkLineBreaks && Yi.test(e.input.slice(t, e.position)) && Ke(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && qe(e)) {
1905
1911
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, J(e, !0, -1));
1906
1912
  return;
1907
1913
  }
1908
1914
  if (e.position < e.length - 1)
1909
- C(e, "end of the stream or a document separator is expected");
1915
+ k(e, "end of the stream or a document separator is expected");
1910
1916
  else
1911
1917
  return;
1912
1918
  }
@@ -1914,13 +1920,13 @@ function gn(e, t) {
1914
1920
  e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
1915
1921
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
1916
1922
  var n = new Xi(e, t), r = e.indexOf("\0");
1917
- for (r !== -1 && (n.position = r, C(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
1923
+ for (r !== -1 && (n.position = r, k(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
1918
1924
  n.lineIndent += 1, n.position += 1;
1919
1925
  for (; n.position < n.length - 1; )
1920
- ca(n);
1926
+ ua(n);
1921
1927
  return n.documents;
1922
1928
  }
1923
- function ua(e, t, n) {
1929
+ function ca(e, t, n) {
1924
1930
  t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
1925
1931
  var r = gn(e, n);
1926
1932
  if (typeof t != "function")
@@ -1936,7 +1942,7 @@ function da(e, t) {
1936
1942
  throw new te("expected a single document in the stream, but found more");
1937
1943
  }
1938
1944
  }
1939
- var fa = ua, pa = da, yn = {
1945
+ var fa = ca, pa = da, yn = {
1940
1946
  loadAll: fa,
1941
1947
  load: pa
1942
1948
  }, vn = Object.prototype.toString, bn = Object.prototype.hasOwnProperty, at = 65279, ha = 9, Oe = 10, ma = 13, ga = 32, ya = 33, va = 34, Je = 35, ba = 37, xa = 38, Ca = 39, ka = 42, xn = 44, wa = 45, De = 58, _a = 61, Aa = 62, Sa = 63, Ia = 64, Cn = 91, kn = 93, Ea = 96, wn = 123, Ta = 124, _n = 125, ee = {};
@@ -2049,25 +2055,25 @@ function An(e) {
2049
2055
  }
2050
2056
  var Sn = 1, Ze = 2, In = 3, En = 4, xe = 5;
2051
2057
  function Da(e, t, n, r, i, a, o, l) {
2052
- var s, u = 0, d = null, c = !1, g = !1, p = r !== -1, y = -1, v = Ma($e(e, 0)) && Ka($e(e, e.length - 1));
2058
+ var s, c = 0, d = null, u = !1, h = !1, p = r !== -1, y = -1, x = Ma($e(e, 0)) && Ka($e(e, e.length - 1));
2053
2059
  if (t || o)
2054
- for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
2055
- if (u = $e(e, s), !Ne(u))
2060
+ for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
2061
+ if (c = $e(e, s), !Ne(c))
2056
2062
  return xe;
2057
- v = v && _t(u, d, l), d = u;
2063
+ x = x && _t(c, d, l), d = c;
2058
2064
  }
2059
2065
  else {
2060
- for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
2061
- if (u = $e(e, s), u === Oe)
2062
- c = !0, p && (g = g || // Foldable line = too long, and not more-indented.
2066
+ for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
2067
+ if (c = $e(e, s), c === Oe)
2068
+ u = !0, p && (h = h || // Foldable line = too long, and not more-indented.
2063
2069
  s - y - 1 > r && e[y + 1] !== " ", y = s);
2064
- else if (!Ne(u))
2070
+ else if (!Ne(c))
2065
2071
  return xe;
2066
- v = v && _t(u, d, l), d = u;
2072
+ x = x && _t(c, d, l), d = c;
2067
2073
  }
2068
- g = g || p && s - y - 1 > r && e[y + 1] !== " ";
2074
+ h = h || p && s - y - 1 > r && e[y + 1] !== " ";
2069
2075
  }
2070
- return !c && !g ? v && !o && !i(e) ? Sn : a === Le ? xe : Ze : n > 9 && An(e) ? xe : o ? a === Le ? xe : Ze : g ? En : In;
2076
+ return !u && !h ? x && !o && !i(e) ? Sn : a === Le ? xe : Ze : n > 9 && An(e) ? xe : o ? a === Le ? xe : Ze : h ? En : In;
2071
2077
  }
2072
2078
  function Ua(e, t, n, r, i) {
2073
2079
  e.dump = function() {
@@ -2076,8 +2082,8 @@ function Ua(e, t, n, r, i) {
2076
2082
  if (!e.noCompatMode && ($a.indexOf(t) !== -1 || Fa.test(t)))
2077
2083
  return e.quotingType === Le ? '"' + t + '"' : "'" + t + "'";
2078
2084
  var a = e.indent * Math.max(1, n), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), l = r || e.flowLevel > -1 && n >= e.flowLevel;
2079
- function s(u) {
2080
- return Ra(e, u);
2085
+ function s(c) {
2086
+ return Ra(e, c);
2081
2087
  }
2082
2088
  switch (Da(
2083
2089
  t,
@@ -2118,9 +2124,9 @@ function St(e) {
2118
2124
  }
2119
2125
  function ja(e, t) {
2120
2126
  for (var n = /(\n+)([^\n]*)/g, r = function() {
2121
- var u = e.indexOf(`
2127
+ var c = e.indexOf(`
2122
2128
  `);
2123
- return u = u !== -1 ? u : e.length, n.lastIndex = u, It(e.slice(0, u), t);
2129
+ return c = c !== -1 ? c : e.length, n.lastIndex = c, It(e.slice(0, c), t);
2124
2130
  }(), i = e[0] === `
2125
2131
  ` || e[0] === " ", a, o; o = n.exec(e); ) {
2126
2132
  var l = o[1], s = o[2];
@@ -2146,23 +2152,23 @@ function qa(e) {
2146
2152
  function Pa(e, t, n) {
2147
2153
  var r = "", i = e.tag, a, o, l;
2148
2154
  for (a = 0, o = n.length; a < o; a += 1)
2149
- l = n[a], e.replacer && (l = e.replacer.call(n, String(a), l)), (ue(e, t, l, !1, !1) || typeof l > "u" && ue(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
2155
+ l = n[a], e.replacer && (l = e.replacer.call(n, String(a), l)), (ce(e, t, l, !1, !1) || typeof l > "u" && ce(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
2150
2156
  e.tag = i, e.dump = "[" + r + "]";
2151
2157
  }
2152
2158
  function Et(e, t, n, r) {
2153
2159
  var i = "", a = e.tag, o, l, s;
2154
2160
  for (o = 0, l = n.length; o < l; o += 1)
2155
- s = n[o], e.replacer && (s = e.replacer.call(n, String(o), s)), (ue(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && ue(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += Ge(e, t)), e.dump && Oe === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
2161
+ s = n[o], e.replacer && (s = e.replacer.call(n, String(o), s)), (ce(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && ce(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += Ge(e, t)), e.dump && Oe === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
2156
2162
  e.tag = a, e.dump = i || "[]";
2157
2163
  }
2158
2164
  function Ha(e, t, n) {
2159
- var r = "", i = e.tag, a = Object.keys(n), o, l, s, u, d;
2165
+ var r = "", i = e.tag, a = Object.keys(n), o, l, s, c, d;
2160
2166
  for (o = 0, l = a.length; o < l; o += 1)
2161
- d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = a[o], u = n[s], e.replacer && (u = e.replacer.call(n, s, u)), ue(e, t, s, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), ue(e, t, u, !1, !1) && (d += e.dump, r += d));
2167
+ d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = a[o], c = n[s], e.replacer && (c = e.replacer.call(n, s, c)), ce(e, t, s, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), ce(e, t, c, !1, !1) && (d += e.dump, r += d));
2162
2168
  e.tag = i, e.dump = "{" + r + "}";
2163
2169
  }
2164
2170
  function Va(e, t, n, r) {
2165
- var i = "", a = e.tag, o = Object.keys(n), l, s, u, d, c, g;
2171
+ var i = "", a = e.tag, o = Object.keys(n), l, s, c, d, u, h;
2166
2172
  if (e.sortKeys === !0)
2167
2173
  o.sort();
2168
2174
  else if (typeof e.sortKeys == "function")
@@ -2170,7 +2176,7 @@ function Va(e, t, n, r) {
2170
2176
  else if (e.sortKeys)
2171
2177
  throw new te("sortKeys must be a boolean or a function");
2172
2178
  for (l = 0, s = o.length; l < s; l += 1)
2173
- g = "", (!r || i !== "") && (g += Ge(e, t)), u = o[l], d = n[u], e.replacer && (d = e.replacer.call(n, u, d)), ue(e, t + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && Oe === e.dump.charCodeAt(0) ? g += "?" : g += "? "), g += e.dump, c && (g += Ge(e, t)), ue(e, t + 1, d, !0, c) && (e.dump && Oe === e.dump.charCodeAt(0) ? g += ":" : g += ": ", g += e.dump, i += g));
2179
+ h = "", (!r || i !== "") && (h += Ge(e, t)), c = o[l], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)), ce(e, t + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Oe === e.dump.charCodeAt(0) ? h += "?" : h += "? "), h += e.dump, u && (h += Ge(e, t)), ce(e, t + 1, d, !0, u) && (e.dump && Oe === e.dump.charCodeAt(0) ? h += ":" : h += ": ", h += e.dump, i += h));
2174
2180
  e.tag = a, e.dump = i || "{}";
2175
2181
  }
2176
2182
  function Tt(e, t, n) {
@@ -2190,18 +2196,18 @@ function Tt(e, t, n) {
2190
2196
  }
2191
2197
  return !1;
2192
2198
  }
2193
- function ue(e, t, n, r, i, a, o) {
2199
+ function ce(e, t, n, r, i, a, o) {
2194
2200
  e.tag = null, e.dump = n, Tt(e, n, !1) || Tt(e, n, !0);
2195
- var l = vn.call(e.dump), s = r, u;
2201
+ var l = vn.call(e.dump), s = r, c;
2196
2202
  r && (r = e.flowLevel < 0 || e.flowLevel > t);
2197
- var d = l === "[object Object]" || l === "[object Array]", c, g;
2198
- if (d && (c = e.duplicates.indexOf(n), g = c !== -1), (e.tag !== null && e.tag !== "?" || g || e.indent !== 2 && t > 0) && (i = !1), g && e.usedDuplicates[c])
2199
- e.dump = "*ref_" + c;
2203
+ var d = l === "[object Object]" || l === "[object Array]", u, h;
2204
+ if (d && (u = e.duplicates.indexOf(n), h = u !== -1), (e.tag !== null && e.tag !== "?" || h || e.indent !== 2 && t > 0) && (i = !1), h && e.usedDuplicates[u])
2205
+ e.dump = "*ref_" + u;
2200
2206
  else {
2201
- if (d && g && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), l === "[object Object]")
2202
- r && Object.keys(e.dump).length !== 0 ? (Va(e, t, e.dump, i), g && (e.dump = "&ref_" + c + e.dump)) : (Ha(e, t, e.dump), g && (e.dump = "&ref_" + c + " " + e.dump));
2207
+ if (d && h && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
2208
+ r && Object.keys(e.dump).length !== 0 ? (Va(e, t, e.dump, i), h && (e.dump = "&ref_" + u + e.dump)) : (Ha(e, t, e.dump), h && (e.dump = "&ref_" + u + " " + e.dump));
2203
2209
  else if (l === "[object Array]")
2204
- r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Et(e, t - 1, e.dump, i) : Et(e, t, e.dump, i), g && (e.dump = "&ref_" + c + e.dump)) : (Pa(e, t, e.dump), g && (e.dump = "&ref_" + c + " " + e.dump));
2210
+ r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Et(e, t - 1, e.dump, i) : Et(e, t, e.dump, i), h && (e.dump = "&ref_" + u + e.dump)) : (Pa(e, t, e.dump), h && (e.dump = "&ref_" + u + " " + e.dump));
2205
2211
  else if (l === "[object String]")
2206
2212
  e.tag !== "?" && Ua(e, e.dump, t, a, s);
2207
2213
  else {
@@ -2210,9 +2216,9 @@ function ue(e, t, n, r, i, a, o) {
2210
2216
  if (e.skipInvalid) return !1;
2211
2217
  throw new te("unacceptable kind of an object to dump " + l);
2212
2218
  }
2213
- e.tag !== null && e.tag !== "?" && (u = encodeURI(
2219
+ e.tag !== null && e.tag !== "?" && (c = encodeURI(
2214
2220
  e.tag[0] === "!" ? e.tag.slice(1) : e.tag
2215
- ).replace(/!/g, "%21"), e.tag[0] === "!" ? u = "!" + u : u.slice(0, 18) === "tag:yaml.org,2002:" ? u = "!!" + u.slice(18) : u = "!<" + u + ">", e.dump = u + " " + e.dump);
2221
+ ).replace(/!/g, "%21"), e.tag[0] === "!" ? c = "!" + c : c.slice(0, 18) === "tag:yaml.org,2002:" ? c = "!!" + c.slice(18) : c = "!<" + c + ">", e.dump = c + " " + e.dump);
2216
2222
  }
2217
2223
  return !0;
2218
2224
  }
@@ -2239,7 +2245,7 @@ function Ya(e, t) {
2239
2245
  var n = new Ba(t);
2240
2246
  n.noRefs || za(e, n);
2241
2247
  var r = e;
2242
- return n.replacer && (r = n.replacer.call({ "": r }, "", r)), ue(n, 0, r, !0, !0) ? n.dump + `
2248
+ return n.replacer && (r = n.replacer.call({ "": r }, "", r)), ce(n, 0, r, !0, !0) ? n.dump + `
2243
2249
  ` : "";
2244
2250
  }
2245
2251
  var Wa = Ya, Ja = {
@@ -2264,7 +2270,7 @@ var Ga = X, Za = Pt, Qa = Yt, Xa = Qt, eo = Xt, to = nt, no = yn.load, ro = yn.l
2264
2270
  omap: on,
2265
2271
  seq: Vt,
2266
2272
  str: Ht
2267
- }, lo = ot("safeLoad", "load"), so = ot("safeLoadAll", "loadAll"), co = ot("safeDump", "dump"), uo = {
2273
+ }, lo = ot("safeLoad", "load"), so = ot("safeLoadAll", "loadAll"), uo = ot("safeDump", "dump"), co = {
2268
2274
  Type: Ga,
2269
2275
  Schema: Za,
2270
2276
  FAILSAFE_SCHEMA: Qa,
@@ -2278,7 +2284,7 @@ var Ga = X, Za = Pt, Qa = Yt, Xa = Qt, eo = Xt, to = nt, no = yn.load, ro = yn.l
2278
2284
  types: oo,
2279
2285
  safeLoad: lo,
2280
2286
  safeLoadAll: so,
2281
- safeDump: co
2287
+ safeDump: uo
2282
2288
  };
2283
2289
  const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2284
2290
  __name: "YamlCodeBlock",
@@ -2290,20 +2296,20 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2290
2296
  }
2291
2297
  },
2292
2298
  setup(e) {
2293
- const t = e, n = k(() => {
2299
+ const t = e, n = C(() => {
2294
2300
  const r = Object.fromEntries(Object.entries(t.yamlRecord).filter(([, i]) => i !== null && i !== "" && (Array.isArray(i) ? i.length !== 0 : !0)));
2295
- return Object.keys(r).length === 0 && r.constructor === Object ? "" : uo.dump(r).trim();
2301
+ return Object.keys(r).length === 0 && r.constructor === Object ? "" : co.dump(r).trim();
2296
2302
  });
2297
2303
  return (r, i) => {
2298
- const a = K("KCodeBlock");
2299
- return m(), I("div", fo, [
2300
- t.yamlRecord ? (m(), M(a, {
2304
+ const a = U("KCodeBlock");
2305
+ return m(), A("div", fo, [
2306
+ t.yamlRecord ? (m(), D(a, {
2301
2307
  key: 0,
2302
2308
  id: "yaml-codeblock",
2303
2309
  code: n.value,
2304
2310
  language: "yaml",
2305
2311
  theme: "dark"
2306
- }, null, 8, ["code"])) : D("", !0)
2312
+ }, null, 8, ["code"])) : j("", !0)
2307
2313
  ]);
2308
2314
  };
2309
2315
  }
@@ -2352,56 +2358,56 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2352
2358
  }
2353
2359
  },
2354
2360
  setup(e) {
2355
- const t = e, n = Xe(), { i18n: { t: r } } = Y.useI18n(), i = (o) => !!(o.tooltip || n[`${o.key}-label-tooltip`]), a = k(() => {
2361
+ const t = e, n = Xe(), { i18n: { t: r } } = Y.useI18n(), i = (o) => !!(o.tooltip || n[`${o.key}-label-tooltip`]), a = C(() => {
2356
2362
  if (!t.record)
2357
2363
  return t.record;
2358
2364
  const o = JSON.parse(JSON.stringify(t.record));
2359
2365
  return delete o.created_at, delete o.updated_at, o;
2360
2366
  });
2361
- return (o, l) => (m(), I(ce, null, [
2362
- e.format === "structured" ? (m(), I("div", po, [
2363
- (m(!0), I(ce, null, oe(e.propListTypes, (s) => (m(), I("div", {
2367
+ return (o, l) => (m(), A(ue, null, [
2368
+ e.format === "structured" ? (m(), A("div", po, [
2369
+ (m(!0), A(ue, null, oe(e.propListTypes, (s) => (m(), A("div", {
2364
2370
  key: `config-card-details-${s}-props`,
2365
2371
  class: fe(`config-card-details-${s}-props`),
2366
2372
  "data-testid": `config-card-details-${s}-props`
2367
2373
  }, [
2368
- s !== "basic" ? (m(), I("div", mo, O(s === "advanced" ? T(r)("baseConfigCard.sections.advanced") : T(r)("baseConfigCard.sections.plugin")), 1)) : D("", !0),
2369
- (m(!0), I(ce, null, oe(e.propertyCollections[s], (u) => (m(), M(Dt, {
2370
- key: u.key,
2371
- item: u
2374
+ s !== "basic" ? (m(), A("div", mo, O(s === "advanced" ? I(r)("baseConfigCard.sections.advanced") : I(r)("baseConfigCard.sections.plugin")), 1)) : j("", !0),
2375
+ (m(!0), A(ue, null, oe(e.propertyCollections[s], (c) => (m(), D(Dt, {
2376
+ key: c.key,
2377
+ item: c
2372
2378
  }, we({
2373
2379
  label: b(() => [
2374
- z(o.$slots, `${u.key}-label`, { row: u }, void 0, !0)
2380
+ z(o.$slots, `${c.key}-label`, { row: c }, void 0, !0)
2375
2381
  ]),
2376
- [u.key]: b(({ rowValue: d }) => [
2377
- z(o.$slots, u.key, {
2378
- row: u,
2382
+ [c.key]: b(({ rowValue: d }) => [
2383
+ z(o.$slots, c.key, {
2384
+ row: c,
2379
2385
  rowValue: d
2380
2386
  }, void 0, !0)
2381
2387
  ]),
2382
2388
  _: 2
2383
2389
  }, [
2384
- i(u) ? {
2390
+ i(c) ? {
2385
2391
  name: "label-tooltip",
2386
2392
  fn: b(() => [
2387
- z(o.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
2393
+ z(o.$slots, `${c.key}-label-tooltip`, { row: c }, void 0, !0)
2388
2394
  ]),
2389
2395
  key: "0"
2390
2396
  } : void 0
2391
2397
  ]), 1032, ["item"]))), 128))
2392
2398
  ], 10, ho))), 128))
2393
- ])) : D("", !0),
2394
- e.format === "json" && t.record ? (m(), M(Ut, {
2399
+ ])) : j("", !0),
2400
+ e.format === "json" && t.record ? (m(), D(Ut, {
2395
2401
  key: 1,
2396
2402
  config: t.config,
2397
2403
  "fetcher-url": t.fetcherUrl,
2398
2404
  "json-record": a.value,
2399
2405
  "request-method": "get"
2400
- }, null, 8, ["config", "fetcher-url", "json-record"])) : D("", !0),
2401
- e.format === "yaml" && t.record ? (m(), M(Tn, {
2406
+ }, null, 8, ["config", "fetcher-url", "json-record"])) : j("", !0),
2407
+ e.format === "yaml" && t.record ? (m(), D(Tn, {
2402
2408
  key: 2,
2403
2409
  "yaml-record": a.value
2404
- }, null, 8, ["yaml-record"])) : D("", !0)
2410
+ }, null, 8, ["yaml-record"])) : j("", !0)
2405
2411
  ], 64));
2406
2412
  }
2407
2413
  }), yo = /* @__PURE__ */ ae(go, [["__scopeId", "data-v-2052238b"]]), ie = "24px", Te = (e, t) => {
@@ -2467,7 +2473,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2467
2473
  }
2468
2474
  },
2469
2475
  setup(e) {
2470
- const t = e, n = k(() => {
2476
+ const t = e, n = C(() => {
2471
2477
  if (typeof t.size == "number" && t.size > 0)
2472
2478
  return `${t.size}px`;
2473
2479
  if (typeof t.size == "string") {
@@ -2476,7 +2482,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2476
2482
  return `${a}px`;
2477
2483
  }
2478
2484
  return ie;
2479
- }), r = k(() => ({
2485
+ }), r = C(() => ({
2480
2486
  boxSizing: "border-box",
2481
2487
  color: t.color,
2482
2488
  display: t.display,
@@ -2485,14 +2491,14 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2485
2491
  lineHeight: "0",
2486
2492
  width: n.value
2487
2493
  }));
2488
- return (i, a) => (m(), M(se(e.as), {
2494
+ return (i, a) => (m(), D(se(e.as), {
2489
2495
  "aria-hidden": e.decorative ? "true" : void 0,
2490
2496
  class: "kui-icon add-icon",
2491
2497
  "data-testid": "kui-icon-wrapper-add-icon",
2492
2498
  style: Se(r.value)
2493
2499
  }, {
2494
2500
  default: b(() => [
2495
- (m(), I("svg", {
2501
+ (m(), A("svg", {
2496
2502
  "aria-hidden": e.decorative ? "true" : void 0,
2497
2503
  "data-testid": "kui-icon-svg-add-icon",
2498
2504
  fill: "none",
@@ -2502,7 +2508,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2502
2508
  width: "100%",
2503
2509
  xmlns: "http://www.w3.org/2000/svg"
2504
2510
  }, [
2505
- e.title ? (m(), I("title", xo, O(e.title), 1)) : D("", !0),
2511
+ e.title ? (m(), A("title", xo, O(e.title), 1)) : j("", !0),
2506
2512
  Co
2507
2513
  ], 8, bo))
2508
2514
  ]),
@@ -2567,7 +2573,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2567
2573
  }
2568
2574
  },
2569
2575
  setup(e) {
2570
- const t = e, n = k(() => {
2576
+ const t = e, n = C(() => {
2571
2577
  if (typeof t.size == "number" && t.size > 0)
2572
2578
  return `${t.size}px`;
2573
2579
  if (typeof t.size == "string") {
@@ -2576,7 +2582,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2576
2582
  return `${a}px`;
2577
2583
  }
2578
2584
  return ie;
2579
- }), r = k(() => ({
2585
+ }), r = C(() => ({
2580
2586
  boxSizing: "border-box",
2581
2587
  color: t.color,
2582
2588
  display: t.display,
@@ -2585,14 +2591,14 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2585
2591
  lineHeight: "0",
2586
2592
  width: n.value
2587
2593
  }));
2588
- return (i, a) => (m(), M(se(e.as), {
2594
+ return (i, a) => (m(), D(se(e.as), {
2589
2595
  "aria-hidden": e.decorative ? "true" : void 0,
2590
2596
  class: "kui-icon book-icon",
2591
2597
  "data-testid": "kui-icon-wrapper-book-icon",
2592
2598
  style: Se(r.value)
2593
2599
  }, {
2594
2600
  default: b(() => [
2595
- (m(), I("svg", {
2601
+ (m(), A("svg", {
2596
2602
  "aria-hidden": e.decorative ? "true" : void 0,
2597
2603
  "data-testid": "kui-icon-svg-book-icon",
2598
2604
  fill: "none",
@@ -2602,7 +2608,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2602
2608
  width: "100%",
2603
2609
  xmlns: "http://www.w3.org/2000/svg"
2604
2610
  }, [
2605
- e.title ? (m(), I("title", So, O(e.title), 1)) : D("", !0),
2611
+ e.title ? (m(), A("title", So, O(e.title), 1)) : j("", !0),
2606
2612
  Io
2607
2613
  ], 8, Ao))
2608
2614
  ]),
@@ -2667,7 +2673,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2667
2673
  }
2668
2674
  },
2669
2675
  setup(e) {
2670
- const t = e, n = k(() => {
2676
+ const t = e, n = C(() => {
2671
2677
  if (typeof t.size == "number" && t.size > 0)
2672
2678
  return `${t.size}px`;
2673
2679
  if (typeof t.size == "string") {
@@ -2676,7 +2682,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2676
2682
  return `${a}px`;
2677
2683
  }
2678
2684
  return ie;
2679
- }), r = k(() => ({
2685
+ }), r = C(() => ({
2680
2686
  boxSizing: "border-box",
2681
2687
  color: t.color,
2682
2688
  display: t.display,
@@ -2685,14 +2691,14 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2685
2691
  lineHeight: "0",
2686
2692
  width: n.value
2687
2693
  }));
2688
- return (i, a) => (m(), M(se(e.as), {
2694
+ return (i, a) => (m(), D(se(e.as), {
2689
2695
  "aria-hidden": e.decorative ? "true" : void 0,
2690
2696
  class: "kui-icon chevron-down-icon",
2691
2697
  "data-testid": "kui-icon-wrapper-chevron-down-icon",
2692
2698
  style: Se(r.value)
2693
2699
  }, {
2694
2700
  default: b(() => [
2695
- (m(), I("svg", {
2701
+ (m(), A("svg", {
2696
2702
  "aria-hidden": e.decorative ? "true" : void 0,
2697
2703
  "data-testid": "kui-icon-svg-chevron-down-icon",
2698
2704
  fill: "none",
@@ -2702,7 +2708,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2702
2708
  width: "100%",
2703
2709
  xmlns: "http://www.w3.org/2000/svg"
2704
2710
  }, [
2705
- e.title ? (m(), I("title", Oo, O(e.title), 1)) : D("", !0),
2711
+ e.title ? (m(), A("title", Oo, O(e.title), 1)) : j("", !0),
2706
2712
  Lo
2707
2713
  ], 8, Fo))
2708
2714
  ]),
@@ -2767,7 +2773,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2767
2773
  }
2768
2774
  },
2769
2775
  setup(e) {
2770
- const t = e, n = k(() => {
2776
+ const t = e, n = C(() => {
2771
2777
  if (typeof t.size == "number" && t.size > 0)
2772
2778
  return `${t.size}px`;
2773
2779
  if (typeof t.size == "string") {
@@ -2776,7 +2782,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2776
2782
  return `${a}px`;
2777
2783
  }
2778
2784
  return ie;
2779
- }), r = k(() => ({
2785
+ }), r = C(() => ({
2780
2786
  boxSizing: "border-box",
2781
2787
  color: t.color,
2782
2788
  display: t.display,
@@ -2785,14 +2791,14 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2785
2791
  lineHeight: "0",
2786
2792
  width: n.value
2787
2793
  }));
2788
- return (i, a) => (m(), M(se(e.as), {
2794
+ return (i, a) => (m(), D(se(e.as), {
2789
2795
  "aria-hidden": e.decorative ? "true" : void 0,
2790
2796
  class: "kui-icon close-icon",
2791
2797
  "data-testid": "kui-icon-wrapper-close-icon",
2792
2798
  style: Se(r.value)
2793
2799
  }, {
2794
2800
  default: b(() => [
2795
- (m(), I("svg", {
2801
+ (m(), A("svg", {
2796
2802
  "aria-hidden": e.decorative ? "true" : void 0,
2797
2803
  "data-testid": "kui-icon-svg-close-icon",
2798
2804
  fill: "none",
@@ -2802,7 +2808,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2802
2808
  width: "100%",
2803
2809
  xmlns: "http://www.w3.org/2000/svg"
2804
2810
  }, [
2805
- e.title ? (m(), I("title", Ko, O(e.title), 1)) : D("", !0),
2811
+ e.title ? (m(), A("title", Ko, O(e.title), 1)) : j("", !0),
2806
2812
  Do
2807
2813
  ], 8, Mo))
2808
2814
  ]),
@@ -2867,7 +2873,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2867
2873
  }
2868
2874
  },
2869
2875
  setup(e) {
2870
- const t = e, n = k(() => {
2876
+ const t = e, n = C(() => {
2871
2877
  if (typeof t.size == "number" && t.size > 0)
2872
2878
  return `${t.size}px`;
2873
2879
  if (typeof t.size == "string") {
@@ -2876,7 +2882,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2876
2882
  return `${a}px`;
2877
2883
  }
2878
2884
  return ie;
2879
- }), r = k(() => ({
2885
+ }), r = C(() => ({
2880
2886
  boxSizing: "border-box",
2881
2887
  color: t.color,
2882
2888
  display: t.display,
@@ -2885,14 +2891,14 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2885
2891
  lineHeight: "0",
2886
2892
  width: n.value
2887
2893
  }));
2888
- return (i, a) => (m(), M(se(e.as), {
2894
+ return (i, a) => (m(), D(se(e.as), {
2889
2895
  "aria-hidden": e.decorative ? "true" : void 0,
2890
2896
  class: "kui-icon copy-icon",
2891
2897
  "data-testid": "kui-icon-wrapper-copy-icon",
2892
2898
  style: Se(r.value)
2893
2899
  }, {
2894
2900
  default: b(() => [
2895
- (m(), I("svg", {
2901
+ (m(), A("svg", {
2896
2902
  "aria-hidden": e.decorative ? "true" : void 0,
2897
2903
  "data-testid": "kui-icon-svg-copy-icon",
2898
2904
  fill: "none",
@@ -2902,7 +2908,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2902
2908
  width: "100%",
2903
2909
  xmlns: "http://www.w3.org/2000/svg"
2904
2910
  }, [
2905
- e.title ? (m(), I("title", Ho, O(e.title), 1)) : D("", !0),
2911
+ e.title ? (m(), A("title", Ho, O(e.title), 1)) : j("", !0),
2906
2912
  Vo
2907
2913
  ], 8, Po))
2908
2914
  ]),
@@ -2967,7 +2973,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2967
2973
  }
2968
2974
  },
2969
2975
  setup(e) {
2970
- const t = e, n = k(() => {
2976
+ const t = e, n = C(() => {
2971
2977
  if (typeof t.size == "number" && t.size > 0)
2972
2978
  return `${t.size}px`;
2973
2979
  if (typeof t.size == "string") {
@@ -2976,7 +2982,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2976
2982
  return `${a}px`;
2977
2983
  }
2978
2984
  return ie;
2979
- }), r = k(() => ({
2985
+ }), r = C(() => ({
2980
2986
  boxSizing: "border-box",
2981
2987
  color: t.color,
2982
2988
  display: t.display,
@@ -2985,14 +2991,14 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
2985
2991
  lineHeight: "0",
2986
2992
  width: n.value
2987
2993
  }));
2988
- return (i, a) => (m(), M(se(e.as), {
2994
+ return (i, a) => (m(), D(se(e.as), {
2989
2995
  "aria-hidden": e.decorative ? "true" : void 0,
2990
2996
  class: "kui-icon more-icon",
2991
2997
  "data-testid": "kui-icon-wrapper-more-icon",
2992
2998
  style: Se(r.value)
2993
2999
  }, {
2994
3000
  default: b(() => [
2995
- (m(), I("svg", {
3001
+ (m(), A("svg", {
2996
3002
  "aria-hidden": e.decorative ? "true" : void 0,
2997
3003
  "data-testid": "kui-icon-svg-more-icon",
2998
3004
  fill: "none",
@@ -3002,7 +3008,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3002
3008
  width: "100%",
3003
3009
  xmlns: "http://www.w3.org/2000/svg"
3004
3010
  }, [
3005
- e.title ? (m(), I("title", Go, O(e.title), 1)) : D("", !0),
3011
+ e.title ? (m(), A("title", Go, O(e.title), 1)) : j("", !0),
3006
3012
  Zo
3007
3013
  ], 8, Jo))
3008
3014
  ]),
@@ -3090,8 +3096,8 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3090
3096
  },
3091
3097
  emits: ["loading", "fetch:success", "fetch:error"],
3092
3098
  setup(e, { emit: t }) {
3093
- var E;
3094
- const n = t, r = e, { i18n: { t: i } } = Y.useI18n(), { getMessageFromError: a } = Y.useErrors(), { convertKeyToTitle: o } = Y.useStringHelpers(), { axiosInstance: l } = Y.useAxios((E = r.config) == null ? void 0 : E.axiosRequestConfig), s = [
3099
+ var S;
3100
+ const n = t, r = e, { i18n: { t: i } } = Y.useI18n(), { getMessageFromError: a } = Y.useErrors(), { convertKeyToTitle: o } = Y.useStringHelpers(), { axiosInstance: l } = Y.useAxios((S = r.config) == null ? void 0 : S.axiosRequestConfig), s = [
3095
3101
  {
3096
3102
  label: i("baseConfigCard.general.structuredFormat"),
3097
3103
  value: "structured",
@@ -3105,9 +3111,9 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3105
3111
  label: "YAML",
3106
3112
  value: "yaml"
3107
3113
  }
3108
- ], u = R("structured"), d = (f) => {
3109
- u.value = f == null ? void 0 : f.value;
3110
- }, c = {
3114
+ ], c = K("structured"), d = (f) => {
3115
+ c.value = f == null ? void 0 : f.value;
3116
+ }, u = {
3111
3117
  id: {
3112
3118
  type: H.ID,
3113
3119
  label: i("baseConfigCard.commonFields.id_label"),
@@ -3141,103 +3147,103 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3141
3147
  // the last property displayed
3142
3148
  section: re.Basic
3143
3149
  }
3144
- }, g = R(!1), p = R(!1), y = R(""), v = R({}), w = k(() => {
3145
- var F, x, U;
3146
- if (!v.value)
3150
+ }, h = K(!1), p = K(!1), y = K(""), x = K({}), w = C(() => {
3151
+ var F, E, R;
3152
+ if (!x.value)
3147
3153
  return [];
3148
- const f = [], A = Object.keys(v.value).length;
3149
- for (const $ in v.value) {
3150
- const S = (x = (F = r.configSchema) == null ? void 0 : F[$]) == null ? void 0 : x.order, q = (U = c[$]) == null ? void 0 : U.order;
3151
- let j = A;
3152
- (q || q === 0) && (j = q === -1 ? A + 1 : q), S && (j = S === -1 ? A + 1 : S), f.push([$, j]);
3154
+ const f = [], v = Object.keys(x.value).length;
3155
+ for (const B in x.value) {
3156
+ const T = (E = (F = r.configSchema) == null ? void 0 : F[B]) == null ? void 0 : E.order, W = (R = u[B]) == null ? void 0 : R.order;
3157
+ let q = v;
3158
+ (W || W === 0) && (q = W === -1 ? v + 1 : W), T && (q = T === -1 ? v + 1 : T), f.push([B, q]);
3153
3159
  }
3154
- return f.sort(function($, S) {
3155
- return $[1] - S[1];
3156
- }), f.map(($) => {
3160
+ return f.sort(function(B, T) {
3161
+ return B[1] - T[1];
3162
+ }), f.map((B) => {
3157
3163
  var he, lt;
3158
- const S = $[0], q = (he = v.value) == null ? void 0 : he[S], j = ((lt = r.configSchema) == null ? void 0 : lt[S]) || {}, G = c[S];
3164
+ const T = B[0], W = (he = x.value) == null ? void 0 : he[T], q = ((lt = r.configSchema) == null ? void 0 : lt[T]) || {}, G = u[T];
3159
3165
  return {
3160
- key: S,
3161
- value: q,
3162
- hidden: j.hidden || !1,
3163
- type: j.type ?? ((G == null ? void 0 : G.type) || H.Text),
3164
- label: j.label ?? ((G == null ? void 0 : G.label) || o(S)),
3165
- tooltip: j.tooltip ?? ((G == null ? void 0 : G.tooltip) || void 0),
3166
- section: j.section ?? ((G == null ? void 0 : G.section) || re.Advanced)
3166
+ key: T,
3167
+ value: W,
3168
+ hidden: q.hidden || !1,
3169
+ type: q.type ?? ((G == null ? void 0 : G.type) || H.Text),
3170
+ label: q.label ?? ((G == null ? void 0 : G.label) || o(T)),
3171
+ tooltip: q.tooltip ?? ((G == null ? void 0 : G.tooltip) || void 0),
3172
+ section: q.section ?? ((G == null ? void 0 : G.section) || re.Advanced)
3167
3173
  };
3168
- }).filter(($) => !$.hidden && $.key !== r.pluginConfigKey);
3169
- }), N = k(() => {
3170
- var x, U;
3171
- if (!v.value || !r.pluginConfigKey)
3174
+ }).filter((B) => !B.hidden && B.key !== r.pluginConfigKey);
3175
+ }), N = C(() => {
3176
+ var E, R;
3177
+ if (!x.value || !r.pluginConfigKey)
3172
3178
  return [];
3173
- const f = v.value[r.pluginConfigKey] || {}, A = Object.keys(f).length, F = [];
3174
- for (const $ in f) {
3175
- const S = (U = (x = r.pluginConfigSchema) == null ? void 0 : x[$]) == null ? void 0 : U.order, q = f[$];
3176
- let j = q != null && q !== "" ? A - 1 : A;
3177
- S && (j = S === -1 ? A + 1 : S), F.push([$, j]);
3179
+ const f = x.value[r.pluginConfigKey] || {}, v = Object.keys(f).length, F = [];
3180
+ for (const B in f) {
3181
+ const T = (R = (E = r.pluginConfigSchema) == null ? void 0 : E[B]) == null ? void 0 : R.order, W = f[B];
3182
+ let q = W != null && W !== "" ? v - 1 : v;
3183
+ T && (q = T === -1 ? v + 1 : T), F.push([B, q]);
3178
3184
  }
3179
- return F.sort(function($, S) {
3180
- return $[1] - S[1];
3181
- }), F.map(($) => {
3185
+ return F.sort(function(B, T) {
3186
+ return B[1] - T[1];
3187
+ }), F.map((B) => {
3182
3188
  var G;
3183
- const S = $[0], q = f[S], j = ((G = r.pluginConfigSchema) == null ? void 0 : G[S]) || {};
3189
+ const T = B[0], W = f[T], q = ((G = r.pluginConfigSchema) == null ? void 0 : G[T]) || {};
3184
3190
  return {
3185
- key: S,
3186
- value: q,
3187
- hidden: j.hidden || !1,
3188
- type: j.type ?? H.Text,
3189
- label: j.label ?? o(S),
3190
- tooltip: j.tooltip ?? void 0,
3191
+ key: T,
3192
+ value: W,
3193
+ hidden: q.hidden || !1,
3194
+ type: q.type ?? H.Text,
3195
+ label: q.label ?? o(T),
3196
+ tooltip: q.tooltip ?? void 0,
3191
3197
  section: re.Plugin
3192
3198
  };
3193
- }).filter(($) => !$.hidden);
3194
- }), _ = k(() => {
3195
- var f, A, F, x;
3199
+ }).filter((B) => !B.hidden);
3200
+ }), _ = C(() => {
3201
+ var f, v, F, E;
3196
3202
  return {
3197
- basic: (f = w.value) == null ? void 0 : f.filter((U) => U.section === re.Basic),
3198
- advanced: (A = w.value) == null ? void 0 : A.filter((U) => U.section === re.Advanced),
3199
- plugin: (x = N.value) == null ? void 0 : x.concat((F = w.value) == null ? void 0 : F.filter((U) => U.section === re.Plugin))
3203
+ basic: (f = w.value) == null ? void 0 : f.filter((R) => R.section === re.Basic),
3204
+ advanced: (v = w.value) == null ? void 0 : v.filter((R) => R.section === re.Advanced),
3205
+ plugin: (E = N.value) == null ? void 0 : E.concat((F = w.value) == null ? void 0 : F.filter((R) => R.section === re.Plugin))
3200
3206
  };
3201
- }), W = k(() => {
3207
+ }), $ = C(() => {
3202
3208
  const f = [];
3203
3209
  return _.value.basic.length && f.push("basic"), _.value.advanced.length && f.push("advanced"), _.value.plugin.length && f.push("plugin"), f;
3204
- }), h = k(() => {
3205
- var A, F;
3210
+ }), g = C(() => {
3211
+ var v, F;
3206
3212
  let f = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3207
- return r.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((A = r.config) == null ? void 0 : A.controlPlaneId) || "") : r.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, (F = r.config) != null && F.workspace ? `/${r.config.workspace}` : "")), f = f.replace(/{id}/gi, r.config.entityId), f;
3213
+ return r.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((v = r.config) == null ? void 0 : v.controlPlaneId) || "") : r.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, (F = r.config) != null && F.workspace ? `/${r.config.workspace}` : "")), f = f.replace(/{id}/gi, r.config.entityId), f;
3208
3214
  });
3209
- return Ae(g, (f) => {
3215
+ return Ae(h, (f) => {
3210
3216
  n("loading", f);
3211
3217
  }, { immediate: !0 }), Lt(async () => {
3212
- p.value = !1, g.value = !0;
3218
+ p.value = !1, h.value = !0;
3213
3219
  try {
3214
- const { data: f } = await l.get(h.value);
3220
+ const { data: f } = await l.get(g.value);
3215
3221
  if (r.dataKey)
3216
3222
  if (typeof f[r.dataKey] < "u")
3217
- v.value = { ...f[r.dataKey] };
3223
+ x.value = { ...f[r.dataKey] };
3218
3224
  else
3219
3225
  throw new Error(i("errors.dataKeyUndefined", { dataKey: r.dataKey }));
3220
3226
  else
3221
- v.value = { ...f };
3227
+ x.value = { ...f };
3222
3228
  Object.keys(r.configSchema).filter((F) => r.configSchema[F].forceShow).forEach((F) => {
3223
- v.value && typeof v.value[F] > "u" && (v.value[F] = null);
3229
+ x.value && typeof x.value[F] > "u" && (x.value[F] = null);
3224
3230
  }), n("fetch:success", f);
3225
3231
  } catch (f) {
3226
- const A = a(f);
3227
- y.value = A.startsWith("code") ? i("baseConfigCard.errors.load") : A, p.value = !0, n("fetch:error", f);
3232
+ const v = a(f);
3233
+ y.value = v.startsWith("code") ? i("baseConfigCard.errors.load") : v, p.value = !0, n("fetch:error", f);
3228
3234
  } finally {
3229
- g.value = !1;
3235
+ h.value = !1;
3230
3236
  }
3231
- }), (f, A) => {
3232
- const F = K("KLabel"), x = K("KSelect"), U = K("KButton"), $ = K("KSkeleton"), S = K("KEmptyState"), q = K("KCard");
3233
- return m(), M(q, {
3237
+ }), (f, v) => {
3238
+ const F = U("KLabel"), E = U("KSelect"), R = U("KButton"), B = U("KSkeleton"), T = U("KEmptyState"), W = U("KCard");
3239
+ return m(), D(W, {
3234
3240
  class: "kong-ui-entity-base-config-card",
3235
3241
  "title-tag": e.titleTag
3236
3242
  }, we({
3237
3243
  actions: b(() => [
3238
3244
  L("div", tl, [
3239
3245
  z(f.$slots, "actions", {}, void 0, !0),
3240
- B(F, {
3246
+ M(F, {
3241
3247
  class: "config-format-select-label",
3242
3248
  "data-testid": "config-format-select-label"
3243
3249
  }, {
@@ -3246,12 +3252,12 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3246
3252
  ]),
3247
3253
  _: 1
3248
3254
  }),
3249
- B(x, {
3255
+ M(E, {
3250
3256
  "data-testid": "select-config-format",
3251
3257
  items: s,
3252
3258
  onChange: d
3253
3259
  }),
3254
- e.configCardDoc ? (m(), M(U, {
3260
+ e.configCardDoc ? (m(), D(R, {
3255
3261
  key: 0,
3256
3262
  appearance: "tertiary",
3257
3263
  class: "book-icon",
@@ -3263,20 +3269,20 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3263
3269
  rel: "noopener",
3264
3270
  target: "_blank"
3265
3271
  }, [
3266
- B(T(To), { size: T($r) }, null, 8, ["size"])
3272
+ M(I(To), { size: I($r) }, null, 8, ["size"])
3267
3273
  ], 8, nl)
3268
3274
  ]),
3269
3275
  _: 1
3270
- })) : D("", !0)
3276
+ })) : j("", !0)
3271
3277
  ])
3272
3278
  ]),
3273
3279
  default: b(() => [
3274
- g.value ? (m(), M($, {
3280
+ h.value ? (m(), D(B, {
3275
3281
  key: 0,
3276
3282
  "data-testid": "config-card-loader",
3277
3283
  "table-columns": 2,
3278
3284
  type: "table"
3279
- })) : p.value ? (m(), M(S, {
3285
+ })) : p.value ? (m(), D(T, {
3280
3286
  key: 1,
3281
3287
  "data-testid": "config-card-fetch-error",
3282
3288
  "icon-variant": "error"
@@ -3285,20 +3291,20 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3285
3291
  L("h3", null, O(y.value), 1)
3286
3292
  ]),
3287
3293
  _: 1
3288
- })) : D("", !0),
3294
+ })) : j("", !0),
3289
3295
  L("div", rl, [
3290
- B(yo, {
3296
+ M(yo, {
3291
3297
  config: e.config,
3292
- "fetcher-url": h.value,
3293
- format: u.value,
3294
- "prop-list-types": W.value,
3298
+ "fetcher-url": g.value,
3299
+ format: c.value,
3300
+ "prop-list-types": $.value,
3295
3301
  "property-collections": _.value,
3296
- record: v.value
3302
+ record: x.value
3297
3303
  }, we({ _: 2 }, [
3298
- oe(Object.keys(f.$slots), (j) => ({
3299
- name: j,
3304
+ oe(Object.keys(f.$slots), (q) => ({
3305
+ name: q,
3300
3306
  fn: b(({ row: G, rowValue: he }) => [
3301
- z(f.$slots, j, {
3307
+ z(f.$slots, q, {
3302
3308
  row: G,
3303
3309
  rowValue: he
3304
3310
  }, void 0, !0)
@@ -3314,7 +3320,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3314
3320
  fn: b(() => [
3315
3321
  L("span", el, [
3316
3322
  z(f.$slots, "title", {}, () => [
3317
- V(O(T(i)("baseConfigCard.title")), 1)
3323
+ V(O(I(i)("baseConfigCard.title")), 1)
3318
3324
  ], !0)
3319
3325
  ])
3320
3326
  ]),
@@ -3394,20 +3400,20 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3394
3400
  },
3395
3401
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
3396
3402
  setup(e, { emit: t }) {
3397
- var W;
3398
- const n = t, r = e, i = jn(), { i18n: { t: a } } = Y.useI18n(), { getMessageFromError: o } = Y.useErrors(), { axiosInstance: l } = Y.useAxios((W = r.config) == null ? void 0 : W.axiosRequestConfig), s = R(!1), u = R(!1), d = R(""), c = k(() => r.canSubmit === !1 || r.isReadonly), g = R(!1), p = k(() => {
3399
- var E, f;
3400
- let h = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3401
- return r.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, ((E = r.config) == null ? void 0 : E.controlPlaneId) || "") : r.config.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, (f = r.config) != null && f.workspace ? `/${r.config.workspace}` : "")), r.editId ? (h = h.replace(/{id}/gi, r.editId), h) : (h = h.replace(/\/{id}/gi, ""), h);
3403
+ var $;
3404
+ const n = t, r = e, i = jn(), { i18n: { t: a } } = Y.useI18n(), { getMessageFromError: o } = Y.useErrors(), { axiosInstance: l } = Y.useAxios(($ = r.config) == null ? void 0 : $.axiosRequestConfig), s = K(!1), c = K(!1), d = K(""), u = C(() => r.canSubmit === !1 || r.isReadonly), h = K(!1), p = C(() => {
3405
+ var S, f;
3406
+ let g = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3407
+ return r.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, ((S = r.config) == null ? void 0 : S.controlPlaneId) || "") : r.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (f = r.config) != null && f.workspace ? `/${r.config.workspace}` : "")), r.editId ? (g = g.replace(/{id}/gi, r.editId), g) : (g = g.replace(/\/{id}/gi, ""), g);
3402
3408
  }), y = () => {
3403
- g.value = !g.value;
3404
- }, v = () => {
3409
+ h.value = !h.value;
3410
+ }, x = () => {
3405
3411
  r.config.cancelRoute ? i.push(r.config.cancelRoute) : w();
3406
3412
  }, w = () => {
3407
3413
  n("cancel");
3408
3414
  }, N = () => {
3409
- c.value || n("submit");
3410
- }, _ = R([
3415
+ u.value || n("submit");
3416
+ }, _ = K([
3411
3417
  {
3412
3418
  title: a("baseForm.configuration.yaml"),
3413
3419
  hash: "#yaml"
@@ -3417,106 +3423,106 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3417
3423
  hash: "#json"
3418
3424
  }
3419
3425
  ]);
3420
- return Ae(() => s.value, (h) => {
3421
- n("loading", h);
3426
+ return Ae(() => s.value, (g) => {
3427
+ n("loading", g);
3422
3428
  }, { immediate: !0 }), Lt(async () => {
3423
3429
  if (r.editId)
3424
3430
  try {
3425
- u.value = !1, s.value = !0;
3426
- const { data: h } = await l.get(p.value);
3427
- n("fetch:success", h);
3428
- } catch (h) {
3429
- const E = o(h);
3430
- d.value = E.startsWith("code") ? a("baseForm.errors.edit") : E, u.value = !0, n("fetch:error", h);
3431
+ c.value = !1, s.value = !0;
3432
+ const { data: g } = await l.get(p.value);
3433
+ n("fetch:success", g);
3434
+ } catch (g) {
3435
+ const S = o(g);
3436
+ d.value = S.startsWith("code") ? a("baseForm.errors.edit") : S, c.value = !0, n("fetch:error", g);
3431
3437
  } finally {
3432
3438
  s.value = !1;
3433
3439
  }
3434
- }), (h, E) => {
3435
- const f = K("KSkeleton"), A = K("KEmptyState"), F = K("KAlert"), x = K("KButton"), U = K("KTabs"), $ = K("KSlideout");
3436
- return m(), M(se(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
3440
+ }), (g, S) => {
3441
+ const f = U("KSkeleton"), v = U("KEmptyState"), F = U("KAlert"), E = U("KButton"), R = U("KTabs"), B = U("KSlideout");
3442
+ return m(), D(se(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
3437
3443
  default: b(() => [
3438
- s.value ? (m(), M(f, {
3444
+ s.value ? (m(), D(f, {
3439
3445
  key: 0,
3440
3446
  type: "form"
3441
- })) : u.value ? (m(), M(A, {
3447
+ })) : c.value ? (m(), D(v, {
3442
3448
  key: 1,
3443
- "action-button-text": T(a)("baseForm.actions.back"),
3449
+ "action-button-text": I(a)("baseForm.actions.back"),
3444
3450
  "data-testid": "form-fetch-error",
3445
3451
  "icon-variant": "error",
3446
- onClickAction: v
3452
+ onClickAction: x
3447
3453
  }, {
3448
3454
  default: b(() => [
3449
3455
  L("h3", null, O(d.value), 1)
3450
3456
  ]),
3451
3457
  _: 1
3452
- }, 8, ["action-button-text"])) : (m(), I("form", {
3458
+ }, 8, ["action-button-text"])) : (m(), A("form", {
3453
3459
  key: 2,
3454
3460
  "data-testid": "form-content",
3455
3461
  novalidate: r.noValidate,
3456
3462
  onReset: Ye(w, ["prevent"]),
3457
3463
  onSubmit: Ye(N, ["prevent"])
3458
3464
  }, [
3459
- z(h.$slots, "default", {}, void 0, !0),
3460
- e.errorMessage ? (m(), M(F, {
3465
+ z(g.$slots, "default", {}, void 0, !0),
3466
+ e.errorMessage ? (m(), D(F, {
3461
3467
  key: 0,
3462
3468
  appearance: "danger",
3463
3469
  "data-testid": "form-error",
3464
3470
  message: e.errorMessage
3465
- }, null, 8, ["message"])) : D("", !0),
3471
+ }, null, 8, ["message"])) : j("", !0),
3466
3472
  L("div", ol, [
3467
- z(h.$slots, "form-actions", {}, () => [
3468
- B(x, {
3473
+ z(g.$slots, "form-actions", {}, () => [
3474
+ M(E, {
3469
3475
  appearance: "tertiary",
3470
3476
  "data-testid": "form-view-configuration",
3471
- onClick: E[0] || (E[0] = (S) => y())
3477
+ onClick: S[0] || (S[0] = (T) => y())
3472
3478
  }, {
3473
3479
  default: b(() => [
3474
- V(O(T(a)("baseForm.actions.viewConfiguration")), 1)
3480
+ V(O(I(a)("baseForm.actions.viewConfiguration")), 1)
3475
3481
  ]),
3476
3482
  _: 1
3477
3483
  }),
3478
- B(x, {
3484
+ M(E, {
3479
3485
  appearance: "secondary",
3480
3486
  "data-testid": "form-cancel",
3481
3487
  disabled: e.isReadonly,
3482
3488
  type: "reset"
3483
3489
  }, {
3484
3490
  default: b(() => [
3485
- V(O(T(a)("baseForm.actions.cancel")), 1)
3491
+ V(O(I(a)("baseForm.actions.cancel")), 1)
3486
3492
  ]),
3487
3493
  _: 1
3488
3494
  }, 8, ["disabled"]),
3489
- B(x, {
3495
+ M(E, {
3490
3496
  appearance: "primary",
3491
3497
  "data-testid": "form-submit",
3492
- disabled: c.value,
3498
+ disabled: u.value,
3493
3499
  type: "submit"
3494
3500
  }, {
3495
3501
  default: b(() => [
3496
- V(O(T(a)("baseForm.actions.save")), 1)
3502
+ V(O(I(a)("baseForm.actions.save")), 1)
3497
3503
  ]),
3498
3504
  _: 1
3499
3505
  }, 8, ["disabled"])
3500
3506
  ], !0)
3501
3507
  ])
3502
3508
  ], 40, al)),
3503
- B($, {
3509
+ M(B, {
3504
3510
  "close-on-blur": !1,
3505
3511
  "data-testid": "form-view-configuration-slideout",
3506
3512
  "has-overlay": !1,
3507
3513
  "offset-top": 60,
3508
- title: T(a)("baseForm.configuration.title"),
3509
- visible: g.value,
3510
- onClose: E[1] || (E[1] = (S) => y())
3514
+ title: I(a)("baseForm.configuration.title"),
3515
+ visible: h.value,
3516
+ onClose: S[1] || (S[1] = (T) => y())
3511
3517
  }, {
3512
3518
  default: b(() => [
3513
- L("div", null, O(T(a)("baseForm.configuration.message")), 1),
3514
- B(U, {
3519
+ L("div", null, O(I(a)("baseForm.configuration.message")), 1),
3520
+ M(R, {
3515
3521
  "data-testid": "form-view-configuration-slideout-tabs",
3516
3522
  tabs: _.value
3517
3523
  }, {
3518
3524
  json: b(() => [
3519
- B(Ut, {
3525
+ M(Ut, {
3520
3526
  config: e.config,
3521
3527
  "fetcher-url": p.value,
3522
3528
  "json-record": r.formFields,
@@ -3524,7 +3530,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3524
3530
  }, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
3525
3531
  ]),
3526
3532
  yaml: b(() => [
3527
- B(Tn, {
3533
+ M(Tn, {
3528
3534
  "yaml-record": r.formFields
3529
3535
  }, null, 8, ["yaml-record"])
3530
3536
  ]),
@@ -3538,7 +3544,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3538
3544
  });
3539
3545
  };
3540
3546
  }
3541
- }), ts = /* @__PURE__ */ ae(ll, [["__scopeId", "data-v-fd05df8e"]]), sl = ["data-truncate"], cl = /* @__PURE__ */ P({
3547
+ }), ts = /* @__PURE__ */ ae(ll, [["__scopeId", "data-v-fd05df8e"]]), sl = ["data-truncate"], ul = /* @__PURE__ */ P({
3542
3548
  __name: "EntityBaseTableCell",
3543
3549
  props: {
3544
3550
  keyName: {
@@ -3555,29 +3561,29 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3555
3561
  }
3556
3562
  },
3557
3563
  setup(e) {
3558
- const t = e, n = k(() => {
3564
+ const t = e, n = C(() => {
3559
3565
  var w;
3560
3566
  return ((w = t.rowEl) == null ? void 0 : w.querySelector(`[data-testid="${t.keyName}"]`)) || null;
3561
- }), r = k(() => {
3567
+ }), r = C(() => {
3562
3568
  var w;
3563
3569
  return ((w = n.value) == null ? void 0 : w.querySelector('[data-truncate="true"]')) || null;
3564
- }), i = k(() => {
3570
+ }), i = C(() => {
3565
3571
  var N, _;
3566
3572
  const w = (N = t.rowEl) == null ? void 0 : N.querySelectorAll("td");
3567
3573
  return w ? ((_ = w[0]) == null ? void 0 : _.getAttribute("data-testid")) === t.keyName : !0;
3568
- }), a = k(() => i.value || t.tooltip);
3574
+ }), a = C(() => i.value || t.tooltip);
3569
3575
  let o;
3570
3576
  const l = () => {
3571
3577
  o && (o.disconnect(), o = void 0);
3572
3578
  }, s = () => {
3573
- var N, _, W;
3579
+ var N, _, $;
3574
3580
  let w = ((N = n.value) == null ? void 0 : N.clientWidth) || 0;
3575
3581
  if (n.value && "getComputedStyle" in window) {
3576
- const h = window.getComputedStyle(n.value);
3577
- w -= (parseFloat(h.paddingLeft) || 0) + (parseFloat(h.paddingRight) || 0);
3582
+ const g = window.getComputedStyle(n.value);
3583
+ w -= (parseFloat(g.paddingLeft) || 0) + (parseFloat(g.paddingRight) || 0);
3578
3584
  }
3579
- d.value = ((_ = r.value) == null ? void 0 : _.getBoundingClientRect().width) || 0, c.value = w, g.value = ((W = u.value) == null ? void 0 : W.innerText) || "";
3580
- }, u = R({}), d = R(0), c = R(0), g = R(""), p = k(() => [r.value, n.value]), y = Ae(
3585
+ d.value = ((_ = r.value) == null ? void 0 : _.getBoundingClientRect().width) || 0, u.value = w, h.value = (($ = c.value) == null ? void 0 : $.innerText) || "";
3586
+ }, c = K({}), d = K(0), u = K(0), h = K(""), p = C(() => [r.value, n.value]), y = Ae(
3581
3587
  p,
3582
3588
  (w) => {
3583
3589
  if (a.value && (l(), "ResizeObserver" in window && window)) {
@@ -3591,26 +3597,26 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3591
3597
  }
3592
3598
  },
3593
3599
  { immediate: !0, flush: "post", deep: !0 }
3594
- ), v = k(() => a.value ? d.value > c.value : !1);
3600
+ ), x = C(() => a.value ? d.value > u.value : !1);
3595
3601
  return Nn(() => {
3596
3602
  s();
3597
3603
  }), Bn(() => {
3598
3604
  y();
3599
3605
  }), (w, N) => {
3600
- const _ = K("KTooltip");
3601
- return m(), I("span", {
3606
+ const _ = U("KTooltip");
3607
+ return m(), A("span", {
3602
3608
  ref_key: "contentRef",
3603
- ref: u,
3609
+ ref: c,
3604
3610
  class: "content-wrapper"
3605
3611
  }, [
3606
- a.value ? (m(), I("span", {
3612
+ a.value ? (m(), A("span", {
3607
3613
  key: 0,
3608
3614
  "data-truncate": a.value || void 0
3609
3615
  }, [
3610
- B(_, {
3616
+ M(_, {
3611
3617
  "max-width": "300",
3612
3618
  placement: "bottom-start",
3613
- text: v.value ? g.value : ""
3619
+ text: x.value ? h.value : ""
3614
3620
  }, {
3615
3621
  default: b(() => [
3616
3622
  z(w.$slots, "default", {}, void 0, !0)
@@ -3621,7 +3627,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3621
3627
  ], 512);
3622
3628
  };
3623
3629
  }
3624
- }), ul = /* @__PURE__ */ ae(cl, [["__scopeId", "data-v-b252463e"]]), dl = { class: "toolbar-container" }, fl = {
3630
+ }), cl = /* @__PURE__ */ ae(ul, [["__scopeId", "data-v-b252463e"]]), dl = { class: "toolbar-container" }, fl = {
3625
3631
  key: 0,
3626
3632
  class: "toolbar-button-container"
3627
3633
  }, pl = ["data-testid"], hl = /* @__PURE__ */ P({
@@ -3742,8 +3748,8 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3742
3748
  },
3743
3749
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3744
3750
  setup(e, { emit: t }) {
3745
- const n = e, r = t, { i18n: { t: i } } = Y.useI18n(), a = k(() => {
3746
- var f, A;
3751
+ const n = e, r = t, { i18n: { t: i } } = Y.useI18n(), a = C(() => {
3752
+ var f, v;
3747
3753
  return typeof n.errorMessage == "string" ? {
3748
3754
  hasError: !!n.errorMessage,
3749
3755
  title: n.errorMessage,
@@ -3751,78 +3757,78 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3751
3757
  } : {
3752
3758
  hasError: !!n.errorMessage,
3753
3759
  title: (f = n.errorMessage) == null ? void 0 : f.title,
3754
- message: (A = n.errorMessage) == null ? void 0 : A.message
3760
+ message: (v = n.errorMessage) == null ? void 0 : v.message
3755
3761
  };
3756
- }), o = k(() => n.cacheIdentifier || n.preferencesStorageKey), l = (f) => f.hasData || !!n.query, s = k(() => {
3762
+ }), o = C(() => n.cacheIdentifier || n.preferencesStorageKey), l = (f) => f.hasData || !!n.query, s = C(() => {
3757
3763
  const f = [];
3758
3764
  return Object.keys(n.tableHeaders).forEach((F) => {
3759
- const x = n.tableHeaders[F];
3765
+ const E = n.tableHeaders[F];
3760
3766
  f.push({
3761
- label: x.label ?? F,
3767
+ label: E.label ?? F,
3762
3768
  key: F,
3763
- sortable: x.sortable ?? !1,
3764
- hidable: x.hidable ?? !0
3769
+ sortable: E.sortable ?? !1,
3770
+ hidable: E.hidable ?? !0
3765
3771
  });
3766
3772
  }), n.enableEntityActions && f.push({
3767
3773
  key: "actions",
3768
3774
  hideLabel: !0
3769
3775
  }), f;
3770
- }), u = (f) => ({
3776
+ }), c = (f) => ({
3771
3777
  "data-rowid": f.id,
3772
3778
  "data-testid": f.name,
3773
3779
  ...n.rowAttributes(f)
3774
- }), d = R({}), c = (f) => {
3775
- var A;
3776
- return (A = d.value) == null ? void 0 : A.$el.querySelector(`[data-rowid="${f.id}"]`);
3777
- }, g = (f) => {
3778
- const A = {
3780
+ }), d = K({}), u = (f) => {
3781
+ var v;
3782
+ return (v = d.value) == null ? void 0 : v.$el.querySelector(`[data-rowid="${f.id}"]`);
3783
+ }, h = (f) => {
3784
+ const v = {
3779
3785
  "data-testid": f.headerKey,
3780
3786
  ...n.cellAttributes(f)
3781
3787
  };
3782
- return f.colIndex === 0 && (A.style = {
3788
+ return f.colIndex === 0 && (v.style = {
3783
3789
  maxWidth: "250px",
3784
3790
  overflowX: "hidden",
3785
3791
  textOverflow: "ellipsis"
3786
- }), A;
3792
+ }), v;
3787
3793
  }, p = () => {
3788
3794
  r("empty-state-cta-clicked"), y();
3789
3795
  }, y = () => {
3790
3796
  r("clear-search-input");
3791
- }, v = k(() => n.disableRowClick ? void 0 : (f, A) => {
3792
- r("click:row", A);
3797
+ }, x = C(() => n.disableRowClick ? void 0 : (f, v) => {
3798
+ r("click:row", v);
3793
3799
  }), w = (f) => {
3794
3800
  r("sort", f);
3795
- }, { setTablePreferences: N, getTablePreferences: _ } = Yn(), W = R(_(o.value)), h = k(() => {
3801
+ }, { setTablePreferences: N, getTablePreferences: _ } = Yn(), $ = K(_(o.value)), g = C(() => {
3796
3802
  const f = _(o.value);
3797
3803
  return {
3798
3804
  ...n.initialFetcherParams,
3799
3805
  ...f
3800
3806
  };
3801
- }), E = (f) => {
3802
- W.value = f, s.value.forEach((A) => {
3803
- !("hidable" in A) || !W.value.columnVisibility || A.hidable === !1 && (W.value.columnVisibility[A.key] = !0);
3807
+ }), S = (f) => {
3808
+ $.value = f, s.value.forEach((v) => {
3809
+ !("hidable" in v) || !$.value.columnVisibility || v.hidable === !1 && ($.value.columnVisibility[v.key] = !0);
3804
3810
  }), o.value && N(o.value, f);
3805
3811
  };
3806
- return (f, A) => {
3807
- const F = K("KButton"), x = K("KDropdown"), U = K("KTable"), $ = K("KCard");
3808
- return m(), M($, {
3812
+ return (f, v) => {
3813
+ const F = U("KButton"), E = U("KDropdown"), R = U("KTable"), B = U("KCard");
3814
+ return m(), D(B, {
3809
3815
  class: "kong-ui-entity-base-table",
3810
3816
  title: e.title,
3811
3817
  "title-tag": e.titleTag
3812
3818
  }, {
3813
3819
  default: b(() => [
3814
- B(U, {
3820
+ M(R, {
3815
3821
  ref_key: "tableRefs",
3816
3822
  ref: d,
3817
3823
  "cache-identifier": o.value,
3818
- "cell-attrs": g,
3824
+ "cell-attrs": h,
3819
3825
  "client-sort": e.enableClientSort,
3820
3826
  "disable-pagination-page-jump": e.disablePaginationPageJump,
3821
- "empty-state-action-message": e.query ? T(i)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
3827
+ "empty-state-action-message": e.query ? I(i)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
3822
3828
  "empty-state-action-route": e.query ? void 0 : e.emptyStateOptions.ctaPath,
3823
3829
  "empty-state-icon-variant": e.query ? "search" : "kong",
3824
- "empty-state-message": e.query ? T(i)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
3825
- "empty-state-title": e.query ? T(i)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
3830
+ "empty-state-message": e.query ? I(i)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
3831
+ "empty-state-title": e.query ? I(i)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
3826
3832
  error: a.value.hasError,
3827
3833
  "error-state-message": a.value.message,
3828
3834
  "error-state-title": a.value.title,
@@ -3830,48 +3836,48 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3830
3836
  "fetcher-cache-key": String(e.fetcherCacheKey),
3831
3837
  headers: s.value,
3832
3838
  "hide-pagination-when-optional": "",
3833
- "initial-fetcher-params": h.value,
3839
+ "initial-fetcher-params": g.value,
3834
3840
  loading: e.isLoading,
3835
3841
  "pagination-offset": e.paginationType === "offset",
3836
3842
  "resize-columns": "",
3837
- "row-attrs": u,
3843
+ "row-attrs": c,
3838
3844
  "search-input": e.query,
3839
3845
  "sort-handler-function": e.enableClientSort ? e.sortHandlerFunction : void 0,
3840
3846
  sortable: !e.disableSorting,
3841
- "table-preferences": W.value,
3847
+ "table-preferences": $.value,
3842
3848
  onEmptyStateActionClick: p,
3843
- "onRow:click": v.value,
3844
- onSort: A[0] || (A[0] = (S) => w(S)),
3845
- "onUpdate:tablePreferences": E
3849
+ "onRow:click": x.value,
3850
+ onSort: v[0] || (v[0] = (T) => w(T)),
3851
+ "onUpdate:tablePreferences": S
3846
3852
  }, we({
3847
- toolbar: b(({ state: S }) => [
3853
+ toolbar: b(({ state: T }) => [
3848
3854
  me(L("div", dl, [
3849
3855
  z(f.$slots, "toolbar-filter", {}, void 0, !0),
3850
- f.$slots["toolbar-button"] ? (m(), I("div", fl, [
3856
+ f.$slots["toolbar-button"] ? (m(), A("div", fl, [
3851
3857
  z(f.$slots, "toolbar-button", {}, void 0, !0)
3852
- ])) : D("", !0)
3858
+ ])) : j("", !0)
3853
3859
  ], 512), [
3854
- [ge, l(S)]
3860
+ [ge, l(T)]
3855
3861
  ])
3856
3862
  ]),
3857
- actions: b(({ row: S, rowKey: q, rowValue: j }) => [
3863
+ actions: b(({ row: T, rowKey: W, rowValue: q }) => [
3858
3864
  L("div", {
3859
3865
  class: "actions-container",
3860
- "data-testid": S.name
3866
+ "data-testid": T.name
3861
3867
  }, [
3862
- B(x, {
3868
+ M(E, {
3863
3869
  "kpop-attributes": { placement: "bottom-end" },
3864
3870
  width: e.dropdownMenuWidth
3865
3871
  }, {
3866
3872
  items: b(() => [
3867
3873
  z(f.$slots, "actions", {
3868
- row: S,
3869
- rowKey: q,
3870
- rowValue: j
3874
+ row: T,
3875
+ rowKey: W,
3876
+ rowValue: q
3871
3877
  }, void 0, !0)
3872
3878
  ]),
3873
3879
  default: b(() => [
3874
- B(F, {
3880
+ M(F, {
3875
3881
  appearance: "tertiary",
3876
3882
  class: "actions-trigger",
3877
3883
  "data-testid": "overflow-actions-button",
@@ -3879,7 +3885,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3879
3885
  size: "small"
3880
3886
  }, {
3881
3887
  default: b(() => [
3882
- B(T(Xo))
3888
+ M(I(Xo))
3883
3889
  ]),
3884
3890
  _: 1
3885
3891
  })
@@ -3890,17 +3896,17 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3890
3896
  ]),
3891
3897
  _: 2
3892
3898
  }, [
3893
- oe(e.tableHeaders, (S, q) => ({
3894
- name: q,
3895
- fn: b(({ row: j, rowKey: G, rowValue: he }) => [
3896
- B(ul, {
3897
- "key-name": String(q),
3898
- "row-el": c(j),
3899
- tooltip: S.tooltip
3899
+ oe(e.tableHeaders, (T, W) => ({
3900
+ name: W,
3901
+ fn: b(({ row: q, rowKey: G, rowValue: he }) => [
3902
+ M(cl, {
3903
+ "key-name": String(W),
3904
+ "row-el": u(q),
3905
+ tooltip: T.tooltip
3900
3906
  }, {
3901
3907
  default: b(() => [
3902
- z(f.$slots, q, {
3903
- row: j,
3908
+ z(f.$slots, W, {
3909
+ row: q,
3904
3910
  rowKey: G,
3905
3911
  rowValue: he
3906
3912
  }, () => [
@@ -3914,7 +3920,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3914
3920
  e.query ? void 0 : {
3915
3921
  name: "empty-state-action-icon",
3916
3922
  fn: b(() => [
3917
- B(T(wo))
3923
+ M(I(wo))
3918
3924
  ]),
3919
3925
  key: "0"
3920
3926
  }
@@ -3969,14 +3975,14 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3969
3975
  },
3970
3976
  emits: ["cancel", "proceed"],
3971
3977
  setup(e, { emit: t }) {
3972
- const { i18nT: n } = Y.useI18n(), r = e, i = t, a = k(() => r.needConfirm ? r.entityName : ""), o = () => {
3978
+ const { i18nT: n } = Y.useI18n(), r = e, i = t, a = C(() => r.needConfirm ? r.entityName : ""), o = () => {
3973
3979
  i("cancel");
3974
3980
  }, l = () => {
3975
3981
  i("proceed");
3976
3982
  };
3977
- return (s, u) => {
3978
- const d = K("KAlert"), c = K("KPrompt");
3979
- return m(), M(c, {
3983
+ return (s, c) => {
3984
+ const d = U("KAlert"), u = U("KPrompt");
3985
+ return m(), D(u, {
3980
3986
  "action-button-appearance": "danger",
3981
3987
  "action-button-disabled": e.actionPending,
3982
3988
  "action-button-text": "Yes, delete",
@@ -3988,15 +3994,15 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
3988
3994
  onProceed: l
3989
3995
  }, {
3990
3996
  default: b(() => [
3991
- e.error ? (m(), I("div", ml, [
3992
- B(d, { appearance: "danger" }, {
3997
+ e.error ? (m(), A("div", ml, [
3998
+ M(d, { appearance: "danger" }, {
3993
3999
  default: b(() => [
3994
4000
  V(O(e.error), 1)
3995
4001
  ]),
3996
4002
  _: 1
3997
4003
  })
3998
- ])) : D("", !0),
3999
- B(T(n), {
4004
+ ])) : j("", !0),
4005
+ M(I(n), {
4000
4006
  class: "message",
4001
4007
  keypath: r.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
4002
4008
  tag: "p"
@@ -4014,11 +4020,11 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
4014
4020
  key: "0"
4015
4021
  } : void 0
4016
4022
  ]), 1032, ["keypath"]),
4017
- r.description || s.$slots.description ? (m(), I("div", gl, [
4023
+ r.description || s.$slots.description ? (m(), A("div", gl, [
4018
4024
  z(s.$slots, "description", {}, () => [
4019
4025
  L("p", null, O(r.description), 1)
4020
4026
  ], !0)
4021
- ])) : D("", !0)
4027
+ ])) : j("", !0)
4022
4028
  ]),
4023
4029
  _: 3
4024
4030
  }, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
@@ -4047,7 +4053,7 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
4047
4053
  }
4048
4054
  },
4049
4055
  setup(e) {
4050
- return (t, n) => (m(), I("svg", vl, [
4056
+ return (t, n) => (m(), A("svg", vl, [
4051
4057
  L("mask", bl, [
4052
4058
  L("rect", {
4053
4059
  fill: e.color,
@@ -4086,71 +4092,71 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
4086
4092
  },
4087
4093
  emits: ["update:modelValue"],
4088
4094
  setup(e, { emit: t }) {
4089
- const { i18n: { t: n } } = Y.useI18n(), r = e, i = t, a = R(!1), o = R({}), l = R(/* @__PURE__ */ new Set()), s = k(() => {
4090
- const h = [];
4091
- return new URLSearchParams(r.modelValue).forEach((E, f) => {
4092
- E !== "" && h.push(f);
4093
- }), h;
4094
- }), u = k(() => {
4095
- const h = r.config.fields;
4096
- return Object.keys(h).filter((E) => {
4095
+ const { i18n: { t: n } } = Y.useI18n(), r = e, i = t, a = K(!1), o = K({}), l = K(/* @__PURE__ */ new Set()), s = C(() => {
4096
+ const g = [];
4097
+ return new URLSearchParams(r.modelValue).forEach((S, f) => {
4098
+ S !== "" && g.push(f);
4099
+ }), g;
4100
+ }), c = C(() => {
4101
+ const g = r.config.fields;
4102
+ return Object.keys(g).filter((S) => {
4097
4103
  var f;
4098
- return (f = h == null ? void 0 : h[E]) == null ? void 0 : f.searchable;
4099
- }).map((E) => ({
4100
- label: h[E].label || E,
4101
- value: E,
4104
+ return (f = g == null ? void 0 : g[S]) == null ? void 0 : f.searchable;
4105
+ }).map((S) => ({
4106
+ label: g[S].label || S,
4107
+ value: S,
4102
4108
  expanded: !1
4103
4109
  }));
4104
4110
  });
4105
- Ae(() => r.modelValue, (h) => {
4106
- o.value = {}, new URLSearchParams(h).forEach((E, f) => {
4107
- o.value[f] = E;
4111
+ Ae(() => r.modelValue, (g) => {
4112
+ o.value = {}, new URLSearchParams(g).forEach((S, f) => {
4113
+ o.value[f] = S;
4108
4114
  });
4109
4115
  });
4110
4116
  const d = () => {
4111
4117
  a.value = !a.value;
4112
- }, c = (h) => {
4113
- l.value.has(h) ? l.value.delete(h) : l.value.add(h);
4114
- }, g = (h) => {
4115
- i("update:modelValue", h);
4118
+ }, u = (g) => {
4119
+ l.value.has(g) ? l.value.delete(g) : l.value.add(g);
4120
+ }, h = (g) => {
4121
+ i("update:modelValue", g);
4116
4122
  }, p = () => {
4117
- g("");
4118
- }, y = (h) => `filter-${h}`, v = (h) => {
4119
- var E, f;
4120
- return (((f = (E = r.config.schema) == null ? void 0 : E[h]) == null ? void 0 : f.values) ?? []).map((A) => ({
4121
- value: A,
4122
- label: A
4123
+ h("");
4124
+ }, y = (g) => `filter-${g}`, x = (g) => {
4125
+ var S, f;
4126
+ return (((f = (S = r.config.schema) == null ? void 0 : S[g]) == null ? void 0 : f.values) ?? []).map((v) => ({
4127
+ value: v,
4128
+ label: v
4123
4129
  }));
4124
- }, w = (h) => {
4125
- var E, f;
4126
- return ((f = (E = r.config.schema) == null ? void 0 : E[h]) == null ? void 0 : f.type) ?? "text";
4127
- }, N = (h) => {
4130
+ }, w = (g) => {
4131
+ var S, f;
4132
+ return ((f = (S = r.config.schema) == null ? void 0 : S[g]) == null ? void 0 : f.type) ?? "text";
4133
+ }, N = (g) => {
4128
4134
  o.value = {
4129
4135
  ...o.value,
4130
- [h]: ""
4131
- }, W();
4136
+ [g]: ""
4137
+ }, $();
4132
4138
  }, _ = () => {
4133
- o.value = {}, W(!0);
4134
- }, W = (h = !1) => {
4135
- const E = Object.keys(o.value).reduce((f, A) => (o.value[A] && (f[A] = `${o.value[A]}`), f), {});
4136
- h && (a.value = !1), i("update:modelValue", new URLSearchParams(E).toString());
4139
+ o.value = {}, $(!0);
4140
+ }, $ = (g = !1) => {
4141
+ const S = Object.keys(o.value).reduce((f, v) => (o.value[v] && (f[v] = `${o.value[v]}`), f), {});
4142
+ g && (a.value = !1), i("update:modelValue", new URLSearchParams(S).toString());
4137
4143
  };
4138
- return (h, E) => {
4139
- const f = K("KInput"), A = K("KButton"), F = K("KSelect");
4140
- return e.config.isExactMatch ? (m(), M(f, {
4144
+ return (g, S) => {
4145
+ const f = U("KInput"), v = U("KButton"), F = U("KSelect");
4146
+ return e.config.isExactMatch ? (m(), D(f, {
4141
4147
  key: 0,
4142
4148
  autocomplete: "off",
4143
4149
  class: "kong-ui-entity-filter-input",
4144
4150
  "data-testid": "search-input",
4145
4151
  "model-value": e.modelValue,
4146
4152
  placeholder: e.config.placeholder,
4147
- "onUpdate:modelValue": g
4153
+ "onUpdate:modelValue": h
4148
4154
  }, {
4149
4155
  before: b(() => [
4150
- B($t)
4156
+ M($t)
4151
4157
  ]),
4152
4158
  after: b(() => [
4153
- me(B(T(jo), {
4159
+ me(M(I(jo), {
4154
4160
  class: "kong-ui-entity-filter-clear",
4155
4161
  onClick: p
4156
4162
  }, null, 512), [
@@ -4158,15 +4164,15 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
4158
4164
  ])
4159
4165
  ]),
4160
4166
  _: 1
4161
- }, 8, ["model-value", "placeholder"])) : (m(), I("div", wl, [
4162
- B(A, {
4167
+ }, 8, ["model-value", "placeholder"])) : (m(), A("div", wl, [
4168
+ M(v, {
4163
4169
  appearance: "tertiary",
4164
4170
  "data-testid": "filter-button",
4165
4171
  onClick: d
4166
4172
  }, {
4167
4173
  default: b(() => [
4168
- B($t),
4169
- V(" " + O(T(n)("filter.filterButtonText")) + " " + O(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
4174
+ M($t),
4175
+ V(" " + O(I(n)("filter.filterButtonText")) + " " + O(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
4170
4176
  ]),
4171
4177
  _: 1
4172
4178
  }),
@@ -4177,89 +4183,89 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
4177
4183
  [ge, a.value]
4178
4184
  ]),
4179
4185
  me(L("div", _l, [
4180
- (m(!0), I(ce, null, oe(u.value, (x) => {
4181
- var U, $;
4182
- return m(), I("div", {
4183
- key: x.value,
4186
+ (m(!0), A(ue, null, oe(c.value, (E) => {
4187
+ var R, B;
4188
+ return m(), A("div", {
4189
+ key: E.value,
4184
4190
  class: "kong-ui-entity-filter-menu-item",
4185
- "data-testid": x.value
4191
+ "data-testid": E.value
4186
4192
  }, [
4187
4193
  L("span", {
4188
- class: fe(["menu-item-title", { expanded: l.value.has(x.value) }]),
4194
+ class: fe(["menu-item-title", { expanded: l.value.has(E.value) }]),
4189
4195
  role: "button",
4190
4196
  tabindex: "0",
4191
- onClick: (S) => c(x.value),
4192
- onKeydown: Rn((S) => c(x.value), ["enter"])
4197
+ onClick: (T) => u(E.value),
4198
+ onKeydown: Rn((T) => u(E.value), ["enter"])
4193
4199
  }, [
4194
- V(O(x.label) + " ", 1),
4200
+ V(O(E.label) + " ", 1),
4195
4201
  me(L("span", Il, null, 512), [
4196
- [ge, s.value.includes(x.value)]
4202
+ [ge, s.value.includes(E.value)]
4197
4203
  ]),
4198
- B(T(Bo), {
4199
- class: fe(["menu-item-expand-icon", { expanded: l.value.has(x.value) }]),
4200
- color: T(Sr)
4204
+ M(I(Bo), {
4205
+ class: fe(["menu-item-expand-icon", { expanded: l.value.has(E.value) }]),
4206
+ color: I(Sr)
4201
4207
  }, null, 8, ["class", "color"])
4202
4208
  ], 42, Sl),
4203
4209
  me(L("div", El, [
4204
4210
  L("label", {
4205
4211
  class: "menu-item-label",
4206
- for: y(x.value)
4207
- }, O(T(n)("filter.fieldLabel")), 9, Tl),
4208
- (($ = (U = e.config.schema) == null ? void 0 : U[x.value]) == null ? void 0 : $.type) === "select" ? (m(), M(F, {
4212
+ for: y(E.value)
4213
+ }, O(I(n)("filter.fieldLabel")), 9, Tl),
4214
+ ((B = (R = e.config.schema) == null ? void 0 : R[E.value]) == null ? void 0 : B.type) === "select" ? (m(), D(F, {
4209
4215
  key: 0,
4210
- id: y(x.value),
4211
- modelValue: o.value[x.value],
4212
- "onUpdate:modelValue": (S) => o.value[x.value] = S,
4213
- items: v(x.value),
4214
- placeholder: T(n)("filter.selectPlaceholder")
4215
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), M(f, {
4216
+ id: y(E.value),
4217
+ modelValue: o.value[E.value],
4218
+ "onUpdate:modelValue": (T) => o.value[E.value] = T,
4219
+ items: x(E.value),
4220
+ placeholder: I(n)("filter.selectPlaceholder")
4221
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), D(f, {
4216
4222
  key: 1,
4217
- id: y(x.value),
4218
- modelValue: o.value[x.value],
4219
- "onUpdate:modelValue": (S) => o.value[x.value] = S,
4223
+ id: y(E.value),
4224
+ modelValue: o.value[E.value],
4225
+ "onUpdate:modelValue": (T) => o.value[E.value] = T,
4220
4226
  autocomplete: "off",
4221
- placeholder: T(n)("filter.inputPlaceholder"),
4222
- type: w(x.value)
4227
+ placeholder: I(n)("filter.inputPlaceholder"),
4228
+ type: w(E.value)
4223
4229
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
4224
4230
  ], 512), [
4225
- [ge, l.value.has(x.value)]
4231
+ [ge, l.value.has(E.value)]
4226
4232
  ]),
4227
4233
  me(L("div", $l, [
4228
- B(A, {
4234
+ M(v, {
4229
4235
  appearance: "tertiary",
4230
4236
  "data-testid": "apply-filter",
4231
4237
  size: "small",
4232
- onClick: E[0] || (E[0] = (S) => W(!0))
4238
+ onClick: S[0] || (S[0] = (T) => $(!0))
4233
4239
  }, {
4234
4240
  default: b(() => [
4235
- V(O(T(n)("filter.applyButtonText")), 1)
4241
+ V(O(I(n)("filter.applyButtonText")), 1)
4236
4242
  ]),
4237
4243
  _: 1
4238
4244
  }),
4239
- B(A, {
4245
+ M(v, {
4240
4246
  appearance: "tertiary",
4241
4247
  "data-testid": "clear-filter",
4242
4248
  size: "small",
4243
- onClick: (S) => N(x.value)
4249
+ onClick: (T) => N(E.value)
4244
4250
  }, {
4245
4251
  default: b(() => [
4246
- V(O(T(n)("filter.clearButtonText")), 1)
4252
+ V(O(I(n)("filter.clearButtonText")), 1)
4247
4253
  ]),
4248
4254
  _: 2
4249
4255
  }, 1032, ["onClick"])
4250
4256
  ], 512), [
4251
- [ge, l.value.has(x.value)]
4257
+ [ge, l.value.has(E.value)]
4252
4258
  ])
4253
4259
  ], 8, Al);
4254
4260
  }), 128)),
4255
4261
  L("div", Fl, [
4256
- B(A, {
4262
+ M(v, {
4257
4263
  appearance: "tertiary",
4258
4264
  size: "small",
4259
4265
  onClick: _
4260
4266
  }, {
4261
4267
  default: b(() => [
4262
- V(O(T(n)("filter.clearAllButtonText")), 1)
4268
+ V(O(I(n)("filter.clearAllButtonText")), 1)
4263
4269
  ]),
4264
4270
  _: 1
4265
4271
  })
@@ -4302,36 +4308,36 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
4302
4308
  },
4303
4309
  emits: ["cancel", "proceed"],
4304
4310
  setup(e, { emit: t }) {
4305
- const { i18n: { t: n }, i18nT: r } = Y.useI18n(), i = e, a = t, o = R(!1), l = k(
4311
+ const { i18n: { t: n }, i18nT: r } = Y.useI18n(), i = e, a = t, o = K(!1), l = C(
4306
4312
  () => i.action === "enable" ? n("toggleModal.enable.title", { entityType: i.entityType }) : n("toggleModal.disable.title", { entityType: i.entityType })
4307
- ), s = k(
4313
+ ), s = C(
4308
4314
  () => i.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
4309
- ), u = () => a("cancel"), d = async () => {
4315
+ ), c = () => a("cancel"), d = async () => {
4310
4316
  if (i.onConfirm) {
4311
4317
  o.value = !0;
4312
4318
  try {
4313
4319
  await i.onConfirm(), a("proceed");
4314
- } catch (c) {
4315
- console.error(c);
4320
+ } catch (u) {
4321
+ console.error(u);
4316
4322
  } finally {
4317
4323
  o.value = !1;
4318
4324
  }
4319
4325
  }
4320
4326
  };
4321
- return (c, g) => {
4322
- const p = K("KPrompt");
4323
- return m(), M(Mn, { to: "body" }, [
4324
- B(p, {
4327
+ return (u, h) => {
4328
+ const p = U("KPrompt");
4329
+ return m(), D(Mn, { to: "body" }, [
4330
+ M(p, {
4325
4331
  "action-button-disabled": o.value,
4326
4332
  "action-button-text": s.value,
4327
4333
  "data-testid": `${e.entityType}-${e.entityId}-toggle-prompt`,
4328
4334
  title: l.value,
4329
4335
  visible: e.visible,
4330
- onCancel: u,
4336
+ onCancel: c,
4331
4337
  onProceed: d
4332
4338
  }, {
4333
4339
  default: b(() => [
4334
- B(T(r), {
4340
+ M(I(r), {
4335
4341
  keypath: `toggleModal.${i.action}.message`,
4336
4342
  scope: "global"
4337
4343
  }, {
@@ -4371,13 +4377,13 @@ const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
4371
4377
  }
4372
4378
  },
4373
4379
  setup(e) {
4374
- const t = e, n = R(void 0), r = k(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4380
+ const t = e, n = K(void 0), r = C(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4375
4381
  return Ae(() => t.authFunction, async () => {
4376
4382
  n.value = await t.authFunction();
4377
4383
  }, { immediate: !0 }), (i, a) => r.value ? z(i.$slots, "default", {
4378
4384
  key: 0,
4379
4385
  isAllowed: n.value
4380
- }) : D("", !0);
4386
+ }) : j("", !0);
4381
4387
  }
4382
4388
  });
4383
4389
  let Be;
@@ -4445,34 +4451,34 @@ const Kl = ["aria-labelledby"], Dl = { class: "form-section-wrapper" }, Ul = {
4445
4451
  },
4446
4452
  setup(e) {
4447
4453
  const t = Xe(), n = Ml();
4448
- return (r, i) => (m(), I("div", {
4449
- "aria-labelledby": e.title ? T(n) : void 0,
4454
+ return (r, i) => (m(), A("div", {
4455
+ "aria-labelledby": e.title ? I(n) : void 0,
4450
4456
  class: fe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
4451
4457
  role: "group"
4452
4458
  }, [
4453
4459
  L("div", Dl, [
4454
- e.hideInfoHeader ? D("", !0) : (m(), I("div", {
4460
+ e.hideInfoHeader ? j("", !0) : (m(), A("div", {
4455
4461
  key: 0,
4456
4462
  class: fe(["form-section-info", { sticky: e.stickyInfoHeader }])
4457
4463
  }, [
4458
- e.title ? (m(), M(se(e.titleTag), {
4464
+ e.title ? (m(), D(se(e.titleTag), {
4459
4465
  key: 0,
4460
- id: T(n),
4466
+ id: I(n),
4461
4467
  class: "form-section-title"
4462
4468
  }, {
4463
4469
  default: b(() => [
4464
4470
  V(O(e.title), 1)
4465
4471
  ]),
4466
4472
  _: 1
4467
- }, 8, ["id"])) : D("", !0),
4468
- e.description || T(t).description ? (m(), I("div", Ul, [
4473
+ }, 8, ["id"])) : j("", !0),
4474
+ e.description || I(t).description ? (m(), A("div", Ul, [
4469
4475
  z(r.$slots, "description", {}, () => [
4470
4476
  L("p", null, O(e.description), 1)
4471
4477
  ], !0)
4472
- ])) : D("", !0),
4473
- T(t).footer ? (m(), I("div", jl, [
4478
+ ])) : j("", !0),
4479
+ I(t).footer ? (m(), A("div", jl, [
4474
4480
  z(r.$slots, "footer", {}, void 0, !0)
4475
- ])) : D("", !0)
4481
+ ])) : j("", !0)
4476
4482
  ], 2)),
4477
4483
  L("div", ql, [
4478
4484
  z(r.$slots, "default", {}, void 0, !0)
@@ -4510,21 +4516,21 @@ const Kl = ["aria-labelledby"], Dl = { class: "form-section-wrapper" }, Ul = {
4510
4516
  }
4511
4517
  },
4512
4518
  setup(e) {
4513
- const t = e, n = R(), { isTruncated: r } = Y.useTruncationDetector(n), { i18n: { t: i } } = Y.useI18n(), a = i("global.actions.copyId"), o = R(a), l = k(() => t.entityLinkData.deleted ?? !1), s = k(() => {
4514
- var c;
4515
- return (c = t.entityLinkData.id) != null && c.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
4516
- }), u = k(() => {
4517
- var c;
4518
- return `${(c = s.value) == null ? void 0 : c.toString().slice(0, 5)} (deleted)`;
4519
- }), d = async (c) => {
4520
- await c(s.value || "") && (o.value = i("global.actions.copyToClipboard"), setTimeout(() => {
4519
+ const t = e, n = K(), { isTruncated: r } = Y.useTruncationDetector(n), { i18n: { t: i } } = Y.useI18n(), a = i("global.actions.copyId"), o = K(a), l = C(() => t.entityLinkData.deleted ?? !1), s = C(() => {
4520
+ var u;
4521
+ return (u = t.entityLinkData.id) != null && u.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
4522
+ }), c = C(() => {
4523
+ var u;
4524
+ return `${(u = s.value) == null ? void 0 : u.toString().slice(0, 5)} (deleted)`;
4525
+ }), d = async (u) => {
4526
+ await u(s.value || "") && (o.value = i("global.actions.copyToClipboard"), setTimeout(() => {
4521
4527
  o.value = a;
4522
4528
  }, 1800));
4523
4529
  };
4524
- return (c, g) => {
4525
- const p = K("KTooltip"), y = K("KExternalLink"), v = K("KClipboardProvider");
4526
- return m(), I("div", Hl, [
4527
- l.value ? (m(), I("div", Vl, O(u.value), 1)) : s.value ? s.value ? (m(), M(y, {
4530
+ return (u, h) => {
4531
+ const p = U("KTooltip"), y = U("KExternalLink"), x = U("KClipboardProvider");
4532
+ return m(), A("div", Hl, [
4533
+ l.value ? (m(), A("div", Vl, O(c.value), 1)) : s.value ? s.value ? (m(), D(y, {
4528
4534
  key: 2,
4529
4535
  class: "entity-link",
4530
4536
  "hide-icon": !e.newWindow,
@@ -4532,8 +4538,8 @@ const Kl = ["aria-labelledby"], Dl = { class: "form-section-wrapper" }, Ul = {
4532
4538
  target: e.newWindow ? "_blank" : "_self"
4533
4539
  }, {
4534
4540
  default: b(() => [
4535
- B(p, {
4536
- text: T(r) && e.entityLinkData.label || ""
4541
+ M(p, {
4542
+ text: I(r) && e.entityLinkData.label || ""
4537
4543
  }, {
4538
4544
  default: b(() => [
4539
4545
  L("span", {
@@ -4546,8 +4552,8 @@ const Kl = ["aria-labelledby"], Dl = { class: "form-section-wrapper" }, Ul = {
4546
4552
  }, 8, ["text"])
4547
4553
  ]),
4548
4554
  _: 1
4549
- }, 8, ["hide-icon", "href", "target"])) : D("", !0) : (m(), I("div", zl, O(" – "))),
4550
- s.value && e.allowCopy ? (m(), M(p, {
4555
+ }, 8, ["hide-icon", "href", "target"])) : j("", !0) : (m(), A("div", zl, O(" – "))),
4556
+ s.value && e.allowCopy ? (m(), D(p, {
4551
4557
  key: o.value,
4552
4558
  class: "copy-uuid-tooltip",
4553
4559
  "max-width": "160",
@@ -4555,17 +4561,17 @@ const Kl = ["aria-labelledby"], Dl = { class: "form-section-wrapper" }, Ul = {
4555
4561
  text: o.value
4556
4562
  }, {
4557
4563
  default: b(() => [
4558
- B(v, null, {
4564
+ M(x, null, {
4559
4565
  default: b(({ copyToClipboard: w }) => [
4560
4566
  L("span", {
4561
4567
  class: "entity-link-copy-id",
4562
4568
  onClick: Ye((N) => d(w), ["stop"])
4563
4569
  }, [
4564
- B(T(Yo), {
4570
+ M(I(Yo), {
4565
4571
  class: "copy-icon",
4566
- color: T(Ir),
4572
+ color: I(Ir),
4567
4573
  "data-testid": "copy-id",
4568
- size: T(Tr)
4574
+ size: I(Tr)
4569
4575
  }, null, 8, ["color", "size"])
4570
4576
  ], 8, Yl)
4571
4577
  ]),
@@ -4573,11 +4579,11 @@ const Kl = ["aria-labelledby"], Dl = { class: "form-section-wrapper" }, Ul = {
4573
4579
  })
4574
4580
  ]),
4575
4581
  _: 1
4576
- }, 8, ["text"])) : D("", !0)
4582
+ }, 8, ["text"])) : j("", !0)
4577
4583
  ]);
4578
4584
  };
4579
4585
  }
4580
- }), ss = /* @__PURE__ */ ae(Wl, [["__scopeId", "data-v-60e3ef7c"]]), { useAxios: cs, useDeleteUrlBuilder: us, useErrors: ds, useExternalLinkCreator: fs, useFetchUrlBuilder: ps, useFetcher: hs, useDebouncedFilter: ms, useStringHelpers: gs, useHelpers: ys, useGatewayFeatureSupported: vs, useTruncationDetector: bs, useValidators: xs } = Y;
4586
+ }), ss = /* @__PURE__ */ ae(Wl, [["__scopeId", "data-v-60e3ef7c"]]), { useAxios: us, useDeleteUrlBuilder: cs, useErrors: ds, useExternalLinkCreator: fs, useFetchUrlBuilder: ps, useFetcher: hs, useDebouncedFilter: ms, useStringHelpers: gs, useHelpers: ys, useGatewayFeatureSupported: vs, useTruncationDetector: bs, useValidators: xs } = Y;
4581
4587
  export {
4582
4588
  yo as ConfigCardDisplay,
4583
4589
  Dt as ConfigCardItem,
@@ -4598,9 +4604,9 @@ export {
4598
4604
  Ut as JsonCodeBlock,
4599
4605
  os as PermissionsWrapper,
4600
4606
  Tn as YamlCodeBlock,
4601
- cs as useAxios,
4607
+ us as useAxios,
4602
4608
  ms as useDebouncedFilter,
4603
- us as useDeleteUrlBuilder,
4609
+ cs as useDeleteUrlBuilder,
4604
4610
  ds as useErrors,
4605
4611
  fs as useExternalLinkCreator,
4606
4612
  ps as useFetchUrlBuilder,