@kong-ui-public/entities-consumer-groups 1.3.6 → 2.0.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,9 +1,9 @@
1
- import { defineComponent as ae, ref as E, computed as j, watch as xe, renderSlot as Y, createCommentVNode as G, unref as y, useSlots as ut, onBeforeMount as Qe, resolveComponent as q, openBlock as g, createBlock as V, createSlots as Te, withCtx as h, createElementVNode as R, createTextVNode as Z, toDisplayString as K, createVNode as F, createElementBlock as M, renderList as ye, Fragment as ve, normalizeClass as Fe, withModifiers as rt, withDirectives as et, vShow as tt, useCssVars as ur, resolveDynamicComponent as He, normalizeProps as cr, guardReactiveProps as dr, mergeProps as ht, onMounted as pr, onUnmounted as fr, normalizeStyle as mr, inject as gr, pushScopeId as yr, popScopeId as hr, reactive as Pt } from "vue";
1
+ import { defineComponent as re, ref as O, computed as T, watch as xe, renderSlot as W, createCommentVNode as G, unref as y, useSlots as ut, onBeforeMount as Qe, resolveComponent as q, openBlock as m, createBlock as R, createSlots as Te, withCtx as h, createElementVNode as V, createTextVNode as Z, toDisplayString as N, createVNode as F, createElementBlock as $, renderList as ye, Fragment as ve, normalizeClass as Fe, withModifiers as rt, withDirectives as et, vShow as tt, useCssVars as mr, resolveDynamicComponent as Ve, normalizeProps as gr, guardReactiveProps as yr, mergeProps as ht, onMounted as hr, onUnmounted as vr, normalizeStyle as pn, inject as br, pushScopeId as fn, popScopeId as mn, reactive as Pt } from "vue";
2
2
  import { useRouter as wt } from "vue-router";
3
- import { createI18n as It, i18nTComponent as cn } from "@kong-ui-public/i18n";
4
- import vr from "axios";
5
- import { ToastManager as br, MethodsArray as kr } from "@kong/kongponents";
6
- const Cr = {
3
+ import { createI18n as It, i18nTComponent as gn } from "@kong-ui-public/i18n";
4
+ import Cr from "axios";
5
+ import { ToastManager as kr, MethodsArray as _r } from "@kong/kongponents";
6
+ const wr = {
7
7
  list: {
8
8
  table_headers: {
9
9
  name: "Name",
@@ -95,19 +95,19 @@ const Cr = {
95
95
  name: "The name can be any string containing letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
96
96
  }
97
97
  }
98
- }, _r = {
99
- consumer_groups: Cr
98
+ }, Ir = {
99
+ consumer_groups: wr
100
100
  };
101
- function wr() {
102
- const e = It("en-us", _r);
101
+ function Ar() {
102
+ const e = It("en-us", Ir);
103
103
  return {
104
104
  i18n: e,
105
- i18nT: cn(e)
105
+ i18nT: gn(e)
106
106
  // Translation component <i18n-t>
107
107
  };
108
108
  }
109
109
  const ct = {
110
- useI18n: wr
110
+ useI18n: Ar
111
111
  }, Ie = "/api/runtime_groups/{controlPlaneId}", Ae = "/{workspace}", $e = {
112
112
  list: {
113
113
  konnect: {
@@ -140,17 +140,17 @@ const ct = {
140
140
  }
141
141
  }
142
142
  };
143
- var dn = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(dn || {}), nt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(nt || {}), Ee = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Ee || {}), te = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(te || {}), be = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(be || {});
143
+ var yn = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(yn || {}), nt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(nt || {}), Oe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Oe || {}), te = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(te || {}), be = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(be || {});
144
144
  function At(e = {}) {
145
145
  return {
146
- axiosInstance: vr.create({
146
+ axiosInstance: Cr.create({
147
147
  withCredentials: !0,
148
148
  timeout: 3e4,
149
149
  ...e
150
150
  })
151
151
  };
152
152
  }
153
- function Ir() {
153
+ function Sr() {
154
154
  return {
155
155
  debounce: (e, n) => {
156
156
  let t;
@@ -162,12 +162,12 @@ function Ir() {
162
162
  }
163
163
  };
164
164
  }
165
- const ft = "khcp-user-table-preferences", Ar = {
165
+ const ft = "khcp-user-table-preferences", xr = {
166
166
  pageSize: 30,
167
167
  sortColumnKey: void 0,
168
168
  sortColumnOrder: void 0
169
169
  };
170
- function Sr() {
170
+ function Tr() {
171
171
  const e = (t) => {
172
172
  if (typeof t == "string")
173
173
  try {
@@ -191,24 +191,24 @@ function Sr() {
191
191
  },
192
192
  getTablePreferences: (t) => {
193
193
  const r = n();
194
- return (r == null ? void 0 : r.get(t)) || void 0 || Ar;
194
+ return (r == null ? void 0 : r.get(t)) || void 0 || xr;
195
195
  },
196
196
  deleteAllTablePreferences: () => {
197
197
  localStorage.removeItem(ft);
198
198
  }
199
199
  };
200
200
  }
201
- const xr = {
201
+ const $r = {
202
202
  actions: {
203
203
  copyId: "Copy ID",
204
204
  copied_id: 'Copied "{id}" to the clipboard',
205
205
  copyToClipboard: "Copied successfully!",
206
206
  copyToClipboardFailed: "Failed to copy to the clipboard"
207
207
  }
208
- }, Tr = {
208
+ }, Mr = {
209
209
  message: "Are you sure you want to delete this {entityType}?",
210
210
  messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
211
- }, $r = {
211
+ }, jr = {
212
212
  actions: {
213
213
  save: "Save",
214
214
  cancel: "Cancel",
@@ -217,13 +217,13 @@ const xr = {
217
217
  errors: {
218
218
  edit: "The entity could not be edited at this time."
219
219
  }
220
- }, jr = {
220
+ }, Er = {
221
221
  emptyState: {
222
222
  noSearchResultsTitle: "No results found",
223
223
  noSearchResultsMessage: "Please adjust the criteria and try again.",
224
224
  noSearchResultsCtaText: "Clear"
225
225
  }
226
- }, Mr = {
226
+ }, Or = {
227
227
  title: "Configuration",
228
228
  actions: {
229
229
  copy: "Copy JSON"
@@ -258,7 +258,7 @@ const xr = {
258
258
  entryTitle: "Entry {index}",
259
259
  structuredFormat: "Structured"
260
260
  }
261
- }, Or = {
261
+ }, Nr = {
262
262
  filterButtonText: "Filter",
263
263
  fieldLabel: "Filter by:",
264
264
  inputPlaceholder: "Enter a value",
@@ -266,7 +266,7 @@ const xr = {
266
266
  applyButtonText: "Apply",
267
267
  clearButtonText: "Clear",
268
268
  clearAllButtonText: "Clear all filters"
269
- }, Er = {
269
+ }, Fr = {
270
270
  errors: {
271
271
  fetch: "Could not fetch available items",
272
272
  invalid: "Please select a valid value"
@@ -274,7 +274,7 @@ const xr = {
274
274
  }, Kr = {
275
275
  unexpected: "An unexpected error has occurred",
276
276
  dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
277
- }, Fr = {
277
+ }, Br = {
278
278
  enable: {
279
279
  title: "Enable {entityType}",
280
280
  message: "Are you sure you want to enable the {entityType} {entityName}?",
@@ -285,26 +285,26 @@ const xr = {
285
285
  message: "Are you sure you want to disable the {entityType} {entityName}?",
286
286
  confirmText: "Yes, disable"
287
287
  }
288
- }, Nr = {
289
- global: xr,
290
- deleteModal: Tr,
291
- baseForm: $r,
292
- baseTable: jr,
293
- baseConfigCard: Mr,
294
- filter: Or,
295
- debouncedFilter: Er,
288
+ }, Pr = {
289
+ global: $r,
290
+ deleteModal: Mr,
291
+ baseForm: jr,
292
+ baseTable: Er,
293
+ baseConfigCard: Or,
294
+ filter: Nr,
295
+ debouncedFilter: Fr,
296
296
  errors: Kr,
297
- toggleModal: Fr
297
+ toggleModal: Br
298
298
  };
299
299
  function St() {
300
- const e = It("en-us", Nr);
300
+ const e = It("en-us", Pr);
301
301
  return {
302
302
  i18n: e,
303
- i18nT: cn(e)
303
+ i18nT: gn(e)
304
304
  // Translation component <i18n-t>
305
305
  };
306
306
  }
307
- function pn() {
307
+ function hn() {
308
308
  const e = (t, r) => (r == null ? void 0 : r[t]) ?? void 0, n = (t, r) => {
309
309
  if (t.length !== r.length)
310
310
  return !1;
@@ -348,29 +348,29 @@ function pn() {
348
348
  isValidUuid: (t) => t ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(t) : !1
349
349
  };
350
350
  }
351
- function Br(e, n, t, r = {
351
+ function Lr(e, n, t, r = {
352
352
  fetchedItemsKey: "data",
353
353
  searchKeys: ["id"]
354
354
  }) {
355
355
  t || (t = "100");
356
356
  const { axiosInstance: o } = At({
357
357
  headers: e.requestHeaders
358
- }), { i18n: { t: a } } = St(), { debounce: i } = Ir(), s = i(async (A) => {
359
- await k(A);
360
- }, 200), l = E(!1), c = E(""), d = E(""), u = E([]), m = E([]), f = E(void 0), I = y(n);
358
+ }), { i18n: { t: a } } = St(), { debounce: i } = Sr(), s = i(async (A) => {
359
+ await C(A);
360
+ }, 200), l = O(!1), c = O(""), d = O(""), u = O([]), g = O([]), f = O(void 0), I = y(n);
361
361
  let v = `${e.apiBaseUrl}${I}`;
362
362
  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}` : ""));
363
- const { isValidUuid: p } = pn(), S = async () => {
363
+ const { isValidUuid: p } = hn(), S = async () => {
364
364
  try {
365
365
  l.value = !0;
366
366
  const { data: A } = await o.get(`${v}?size=${t}`);
367
- A != null && A.next || (f.value = r.fetchedItemsKey in A ? A[r.fetchedItemsKey] : []), m.value = r.fetchedItemsKey in A ? A[r.fetchedItemsKey] : [], u.value = m.value;
367
+ A != null && A.next || (f.value = r.fetchedItemsKey in A ? A[r.fetchedItemsKey] : []), g.value = r.fetchedItemsKey in A ? A[r.fetchedItemsKey] : [], u.value = g.value;
368
368
  } catch {
369
369
  u.value = [], c.value = a("debouncedFilter.errors.fetch");
370
370
  } finally {
371
371
  l.value = !1;
372
372
  }
373
- }, b = E(""), k = async (A) => {
373
+ }, b = O(""), C = async (A) => {
374
374
  var ne, pe, z;
375
375
  if (b.value !== A)
376
376
  if (b.value = A || "", f.value === void 0)
@@ -378,28 +378,28 @@ function Br(e, n, t, r = {
378
378
  if (l.value = !0, c.value = "", d.value = "", e.app === "konnect") {
379
379
  let w = v + "";
380
380
  A && (w += `/${A}`);
381
- const { data: N } = await o.get(`${w}?size=${t}`);
382
- r.fetchedItemsKey in N ? u.value = N[r.fetchedItemsKey] : N != null && N.id ? u.value = [N] : u.value = [];
381
+ const { data: K } = await o.get(`${w}?size=${t}`);
382
+ r.fetchedItemsKey in K ? u.value = K[r.fetchedItemsKey] : K != null && K.id ? u.value = [K] : u.value = [];
383
383
  } else if (A) {
384
384
  const w = [];
385
385
  p(A) && r.searchKeys.includes("id") ? w.push((async () => {
386
- const { data: C } = await o.get(`${v}/${A}`);
387
- return [C[r.fetchedItemsKey] ?? C];
386
+ const { data: k } = await o.get(`${v}/${A}`);
387
+ return [k[r.fetchedItemsKey] ?? k];
388
388
  })()) : w.push(
389
- ...r.searchKeys.filter((C) => C !== "id").map(async (C) => {
390
- const { data: x } = await o.get(`${v}?${C}=${A}`);
389
+ ...r.searchKeys.filter((k) => k !== "id").map(async (k) => {
390
+ const { data: x } = await o.get(`${v}?${k}=${A}`);
391
391
  return x[r.fetchedItemsKey];
392
392
  })
393
393
  );
394
- const N = await Promise.all(w), B = /* @__PURE__ */ new Set();
395
- u.value = [], (ne = N == null ? void 0 : N.forEach) == null || ne.call(N, (C) => {
394
+ const K = await Promise.all(w), B = /* @__PURE__ */ new Set();
395
+ u.value = [], (ne = K == null ? void 0 : K.forEach) == null || ne.call(K, (k) => {
396
396
  var x;
397
- (x = C == null ? void 0 : C.forEach) == null || x.call(C, (T) => {
398
- B.has(T.id) || (B.add(T.id), u.value.push(T));
397
+ (x = k == null ? void 0 : k.forEach) == null || x.call(k, (M) => {
398
+ B.has(M.id) || (B.add(M.id), u.value.push(M));
399
399
  });
400
400
  });
401
401
  } else
402
- u.value = m.value;
402
+ u.value = g.value;
403
403
  } catch (w) {
404
404
  ((pe = w == null ? void 0 : w.response) == null ? void 0 : pe.status) === 404 ? d.value = a("debouncedFilter.errors.invalid") : (u.value = [], c.value = a("debouncedFilter.errors.fetch"));
405
405
  } finally {
@@ -407,10 +407,10 @@ function Br(e, n, t, r = {
407
407
  }
408
408
  else
409
409
  l.value = !0, d.value = "", A ? (u.value = (z = f.value) == null ? void 0 : z.filter((w) => {
410
- var N;
410
+ var K;
411
411
  let B = !1;
412
- for (const C of r.searchKeys) {
413
- const x = typeof w[C] == "string" ? (N = w[C]) == null ? void 0 : N.toLowerCase() : w[C];
412
+ for (const k of r.searchKeys) {
413
+ const x = typeof w[k] == "string" ? (K = w[k]) == null ? void 0 : K.toLowerCase() : w[k];
414
414
  x != null && x.includes(A.toLowerCase()) && (B = !0);
415
415
  }
416
416
  return B;
@@ -426,13 +426,13 @@ function Br(e, n, t, r = {
426
426
  debouncedQueryChange: s
427
427
  };
428
428
  }
429
- function Pr(e, n) {
430
- const t = y(n), r = j(
429
+ function qr(e, n) {
430
+ const t = y(n), r = T(
431
431
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
432
432
  );
433
433
  return r.value.search = "", (o) => `${r.value.href}/${o}`;
434
434
  }
435
- function Lr() {
435
+ function Ur() {
436
436
  const { i18n: { t: e } } = St();
437
437
  return {
438
438
  getMessageFromError: (n) => {
@@ -460,7 +460,7 @@ function Lr() {
460
460
  }
461
461
  };
462
462
  }
463
- function qr(e) {
463
+ function Vr(e) {
464
464
  const n = window.location.origin, t = n.endsWith("/") ? n : `${n}/`;
465
465
  try {
466
466
  const r = e.join("/"), o = `${t}${r}`, a = e.some((i) => i.trim() === "");
@@ -471,17 +471,17 @@ function qr(e) {
471
471
  return console.warn("Failed to build valid URL:", r), "";
472
472
  }
473
473
  }
474
- function fn(e, n) {
475
- const t = E(y(e)), r = E(y(n)), o = j(
474
+ function vn(e, n) {
475
+ const t = O(y(e)), r = O(y(n)), o = T(
476
476
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
477
- ), a = j(
477
+ ), a = T(
478
478
  () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
479
479
  );
480
480
  return (i) => {
481
- const { page: s, pageSize: l, offset: c, sortColumnKey: d, sortColumnOrder: u, query: m } = i;
481
+ const { page: s, pageSize: l, offset: c, sortColumnKey: d, sortColumnOrder: u, query: g } = i;
482
482
  try {
483
483
  let f = new URL(a.value.href);
484
- return o.value && m ? (f.search = "", f = new URL(`${f.href}/${m}/`)) : (o.value || new URLSearchParams(m).forEach((I, v) => {
484
+ return o.value && g ? (f.search = "", f = new URL(`${f.href}/${g}/`)) : (o.value || new URLSearchParams(g).forEach((I, v) => {
485
485
  f.searchParams.append(v, I);
486
486
  }), d && f.searchParams.append("sort_by", d), u === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(l))), c && s !== 1 && f.searchParams.append("offset", String(c)), f.href;
487
487
  } catch (f) {
@@ -489,19 +489,19 @@ function fn(e, n) {
489
489
  }
490
490
  };
491
491
  }
492
- function Ur(e, n, t = "data") {
492
+ function Rr(e, n, t = "data") {
493
493
  const r = y(n), { axiosInstance: o } = At({
494
494
  headers: e.requestHeaders
495
- }), a = fn(e, r), i = E({
496
- status: Ee.Idle
495
+ }), a = vn(e, r), i = O({
496
+ status: Oe.Idle
497
497
  });
498
498
  return { fetcher: async (s) => {
499
499
  try {
500
- i.value = { status: Ee.Loading };
500
+ i.value = { status: Oe.Loading };
501
501
  const l = a(s), { data: c } = await o.get(l), d = t && t.replace(/[^\w-_]/gi, "");
502
502
  let u;
503
503
  c[d] && Array.isArray(c[d]) ? u = c[d] : u = Object.keys(c).length ? [c] : [];
504
- const m = {
504
+ const g = {
505
505
  data: u,
506
506
  total: u.length,
507
507
  ...c.offset ? {
@@ -511,98 +511,98 @@ function Ur(e, n, t = "data") {
511
511
  } : null
512
512
  };
513
513
  return i.value = {
514
- status: Ee.Idle,
515
- response: m
516
- }, m;
514
+ status: Oe.Idle,
515
+ response: g
516
+ }, g;
517
517
  } catch (l) {
518
518
  const c = {
519
519
  data: [],
520
520
  total: 0
521
521
  };
522
522
  return s.query && l.response.status === 404 ? (i.value = {
523
- status: Ee.NoResults,
523
+ status: Oe.NoResults,
524
524
  response: c,
525
525
  error: l
526
526
  }, c) : (i.value = {
527
- status: Ee.Error,
527
+ status: Oe.Error,
528
528
  response: c,
529
529
  error: l
530
530
  }, c);
531
531
  }
532
532
  }, fetcherState: i };
533
533
  }
534
- function Rr() {
534
+ function Dr() {
535
535
  const e = (t, r = "_") => t ? t.split(r).map((o) => o.toLowerCase() === "id" ? o.toUpperCase() : o.charAt(0).toUpperCase() + o.substring(1)).join(" ") : "", n = /(?:^|[\s-:'"])\w/g;
536
536
  return {
537
537
  capitalize: (t) => t ? t.replace(n, (r) => r.toUpperCase()) : "",
538
538
  convertKeyToTitle: e
539
539
  };
540
540
  }
541
- const mn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Lt = (e) => {
541
+ const bn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Lt = (e) => {
542
542
  if (typeof e != "string")
543
543
  throw new TypeError("Invalid argument expected string");
544
- const n = e.match(mn);
544
+ const n = e.match(bn);
545
545
  if (!n)
546
546
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
547
547
  return n.shift(), n;
548
548
  }, qt = (e) => e === "*" || e === "x" || e === "X", Ut = (e) => {
549
549
  const n = parseInt(e, 10);
550
550
  return isNaN(n) ? e : n;
551
- }, Vr = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], Dr = (e, n) => {
551
+ }, Gr = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], zr = (e, n) => {
552
552
  if (qt(e) || qt(n))
553
553
  return 0;
554
- const [t, r] = Vr(Ut(e), Ut(n));
554
+ const [t, r] = Gr(Ut(e), Ut(n));
555
555
  return t > r ? 1 : t < r ? -1 : 0;
556
- }, Rt = (e, n) => {
556
+ }, Vt = (e, n) => {
557
557
  for (let t = 0; t < Math.max(e.length, n.length); t++) {
558
- const r = Dr(e[t] || "0", n[t] || "0");
558
+ const r = zr(e[t] || "0", n[t] || "0");
559
559
  if (r !== 0)
560
560
  return r;
561
561
  }
562
562
  return 0;
563
- }, Gr = (e, n) => {
564
- const t = Lt(e), r = Lt(n), o = t.pop(), a = r.pop(), i = Rt(t, r);
565
- return i !== 0 ? i : o && a ? Rt(o.split("."), a.split(".")) : o || a ? o ? -1 : 1 : 0;
566
- }, Vt = (e, n, t) => {
567
- zr(t);
568
- const r = Gr(e, n);
569
- return gn[t].includes(r);
570
- }, gn = {
563
+ }, Hr = (e, n) => {
564
+ const t = Lt(e), r = Lt(n), o = t.pop(), a = r.pop(), i = Vt(t, r);
565
+ return i !== 0 ? i : o && a ? Vt(o.split("."), a.split(".")) : o || a ? o ? -1 : 1 : 0;
566
+ }, Rt = (e, n, t) => {
567
+ Jr(t);
568
+ const r = Hr(e, n);
569
+ return Cn[t].includes(r);
570
+ }, Cn = {
571
571
  ">": [1],
572
572
  ">=": [0, 1],
573
573
  "=": [0],
574
574
  "<=": [-1, 0],
575
575
  "<": [-1],
576
576
  "!=": [-1, 1]
577
- }, Dt = Object.keys(gn), zr = (e) => {
577
+ }, Dt = Object.keys(Cn), Jr = (e) => {
578
578
  if (typeof e != "string")
579
579
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
580
580
  if (Dt.indexOf(e) === -1)
581
581
  throw new Error(`Invalid operator, expected one of ${Dt.join("|")}`);
582
- }, Hr = (e) => typeof e == "string" && /^[v\d]/.test(e) && mn.test(e);
583
- function Jr(e) {
582
+ }, Yr = (e) => typeof e == "string" && /^[v\d]/.test(e) && bn.test(e);
583
+ function Wr(e) {
584
584
  const { gatewayInfo: n, supportedRange: t } = e;
585
585
  if (!n)
586
586
  return !0;
587
587
  const { edition: r, version: o } = n;
588
- if (!Hr(o))
588
+ if (!Yr(o))
589
589
  return console.error("Invalid version"), !1;
590
590
  const a = t[r];
591
591
  if (!a)
592
592
  return !1;
593
593
  const [i, s] = a;
594
- return !(i && Vt(o, i, "<") || s && Vt(o, s, ">"));
594
+ return !(i && Rt(o, i, "<") || s && Rt(o, s, ">"));
595
595
  }
596
- function Wr(e) {
597
- const n = E(0), t = E(0), r = E(!1);
596
+ function Zr(e) {
597
+ const n = O(0), t = O(0), r = O(!1);
598
598
  return xe(e, (o) => {
599
599
  o && !r.value && (n.value = o.offsetWidth, t.value = o.scrollWidth, r.value = !0);
600
600
  }), {
601
- isTruncated: j(() => n.value < t.value)
601
+ isTruncated: T(() => n.value < t.value)
602
602
  };
603
603
  }
604
- const Yr = new br();
605
- function Zr() {
604
+ const Qr = new kr();
605
+ function Xr() {
606
606
  return {
607
607
  notify: async (e) => {
608
608
  const n = {
@@ -610,7 +610,7 @@ function Zr() {
610
610
  message: "Success",
611
611
  timeoutMilliseconds: 3e3
612
612
  };
613
- Yr.open({
613
+ Qr.open({
614
614
  ...n,
615
615
  ...e
616
616
  });
@@ -619,28 +619,132 @@ function Zr() {
619
619
  }
620
620
  const ue = {
621
621
  useAxios: At,
622
- useDebouncedFilter: Br,
623
- useDeleteUrlBuilder: Pr,
624
- useErrors: Lr,
625
- useExternalLinkCreator: qr,
626
- useFetcher: Ur,
627
- useFetchUrlBuilder: fn,
628
- useHelpers: pn,
629
- useStringHelpers: Rr,
622
+ useDebouncedFilter: Lr,
623
+ useDeleteUrlBuilder: qr,
624
+ useErrors: Ur,
625
+ useExternalLinkCreator: Vr,
626
+ useFetcher: Rr,
627
+ useFetchUrlBuilder: vn,
628
+ useHelpers: hn,
629
+ useStringHelpers: Dr,
630
630
  useI18n: St,
631
- useGatewayFeatureSupported: Jr,
632
- useTruncationDetector: Wr,
633
- useToaster: Zr
634
- }, Qr = {
631
+ useGatewayFeatureSupported: Wr,
632
+ useTruncationDetector: Zr,
633
+ useToaster: Xr
634
+ }, eo = {
635
635
  fail: "Failed to copy id to clipboard",
636
636
  success: {
637
637
  prefix: "Successfully",
638
638
  content: " copied to clipboard"
639
639
  }
640
- }, Xr = "Copy to clipboard", eo = {
641
- message: Qr,
642
- iconTitle: Xr
643
- }, to = "kong-ui-copy-uuid-notify", no = { class: "kong-ui-copy-uuid" }, ro = ["onClick"], Gt = 15, oo = /* @__PURE__ */ ae({
640
+ }, to = "Copy to clipboard", no = {
641
+ message: eo,
642
+ iconTitle: to
643
+ }, ro = "kong-ui-copy-uuid-notify", Gt = "24px", oo = (e, n) => {
644
+ const t = e.__vccOpts || e;
645
+ for (const [r, o] of n)
646
+ t[r] = o;
647
+ return t;
648
+ }, ao = (e) => (fn("data-v-9971cc79"), e = e(), mn(), e), io = ["aria-hidden"], so = {
649
+ key: 0,
650
+ "data-testid": "kui-icon-svg-title"
651
+ }, lo = /* @__PURE__ */ ao(() => /* @__PURE__ */ V("path", {
652
+ d: "M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",
653
+ fill: "currentColor"
654
+ }, null, -1)), uo = /* @__PURE__ */ re({
655
+ __name: "CopyIcon",
656
+ props: {
657
+ /** The accessibility text provided to screen readers */
658
+ title: {
659
+ type: String,
660
+ required: !1,
661
+ default: ""
662
+ },
663
+ /** The icon color. Defaults to `currentColor` which inherits text color from the parent element */
664
+ color: {
665
+ type: String,
666
+ required: !1,
667
+ default: "currentColor"
668
+ },
669
+ /** The CSS display property for the icon. Defaults to `block` */
670
+ display: {
671
+ type: String,
672
+ required: !1,
673
+ default: "block"
674
+ },
675
+ /** Whether the icon is just eye-candy or is meaningful to the page (should screen-readers ignore the icon?) */
676
+ decorative: {
677
+ type: Boolean,
678
+ required: !1,
679
+ default: !1
680
+ },
681
+ /** The icon size */
682
+ size: {
683
+ type: [Number, String],
684
+ required: !1,
685
+ default: Gt,
686
+ // if setting to the imported const fails, just pass a number of 24 as the default.
687
+ validator: (e) => {
688
+ if (typeof e == "number" && e > 0)
689
+ return !0;
690
+ if (typeof e == "string") {
691
+ const n = String(e).replace(/px/gi, ""), t = Number(n);
692
+ if (t && !isNaN(t) && Number.isInteger(t) && t > 0)
693
+ return !0;
694
+ }
695
+ return !1;
696
+ }
697
+ },
698
+ /** The HTML tag to utilize for the icon's wrapper element. Defaults to `span` */
699
+ as: {
700
+ type: String,
701
+ required: !1,
702
+ default: "span"
703
+ }
704
+ },
705
+ setup(e) {
706
+ const n = e, t = T(() => {
707
+ if (typeof n.size == "number" && n.size > 0)
708
+ return `${n.size}px`;
709
+ if (typeof n.size == "string") {
710
+ const o = String(n.size).replace(/px/gi, ""), a = Number(o);
711
+ if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
712
+ return `${a}px`;
713
+ }
714
+ return Gt;
715
+ }), r = T(() => ({
716
+ boxSizing: "border-box",
717
+ color: n.color,
718
+ display: n.display,
719
+ height: t.value,
720
+ lineHeight: "0",
721
+ width: t.value
722
+ }));
723
+ return (o, a) => (m(), R(Ve(e.as), {
724
+ "aria-hidden": e.decorative ? "true" : void 0,
725
+ class: "kui-icon copy-icon",
726
+ "data-testid": "kui-icon-wrapper-copy-icon",
727
+ style: pn(r.value)
728
+ }, {
729
+ default: h(() => [
730
+ (m(), $("svg", {
731
+ "aria-hidden": e.decorative ? "true" : void 0,
732
+ "data-testid": "kui-icon-svg-copy-icon",
733
+ fill: "none",
734
+ height: "100%",
735
+ role: "img",
736
+ viewBox: "0 0 24 24",
737
+ width: "100%",
738
+ xmlns: "http://www.w3.org/2000/svg"
739
+ }, [
740
+ e.title ? (m(), $("title", so, N(e.title), 1)) : G("", !0),
741
+ lo
742
+ ], 8, io))
743
+ ]),
744
+ _: 1
745
+ }, 8, ["aria-hidden", "style"]));
746
+ }
747
+ }), co = /* @__PURE__ */ oo(uo, [["__scopeId", "data-v-9971cc79"]]), po = "16px", fo = { class: "kong-ui-copy-uuid" }, mo = ["onClick"], zt = 15, go = /* @__PURE__ */ re({
644
748
  __name: "CopyUuid",
645
749
  props: {
646
750
  uuid: {
@@ -684,74 +788,73 @@ const ue = {
684
788
  },
685
789
  emits: ["success", "error"],
686
790
  setup(e, { emit: n }) {
687
- const t = e, { t: r } = It("en-us", eo), o = t.notify || gr(to, () => {
688
- }), a = j(() => t.idTooltip ? {
791
+ const t = e, { t: r } = It("en-us", no), o = t.notify || br(ro, () => {
792
+ }), a = T(() => t.idTooltip ? {
689
793
  label: t.idTooltip,
690
794
  positionFixed: !0,
691
795
  placement: "bottomStart"
692
796
  } : {
693
797
  title: t.uuid
694
- }), i = j(() => !!(t.tooltip && t.successTooltip)), s = E(t.tooltip), l = j(() => t.tooltip ? {
798
+ }), i = T(() => !!(t.tooltip && t.successTooltip)), s = O(t.tooltip), l = T(() => t.tooltip ? {
695
799
  label: s.value,
696
800
  positionFixed: !0,
697
801
  maxWidth: "500px",
698
802
  placement: "bottomStart"
699
- } : {}), c = j(() => {
700
- var m;
701
- return t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${(m = t.uuid) == null ? void 0 : m.substring(0, 5)}` : t.uuid;
702
- }), d = (m) => {
703
- s.value = m, setTimeout(() => {
803
+ } : {}), c = T(() => {
804
+ var g;
805
+ return t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${(g = t.uuid) == null ? void 0 : g.substring(0, 5)}` : t.uuid;
806
+ }), d = (g) => {
807
+ s.value = g, setTimeout(() => {
704
808
  s.value = t.tooltip;
705
809
  }, 1800);
706
- }, u = (m) => {
810
+ }, u = (g) => {
707
811
  var f, I;
708
- if (!m(t.uuid)) {
812
+ if (!g(t.uuid)) {
709
813
  typeof o == "function" && o({
710
814
  type: "error",
711
815
  message: r("message.fail")
712
816
  }), i.value ? d(r("message.fail")) : n("error", t.uuid);
713
817
  return;
714
818
  }
715
- const v = ((f = t.uuid) == null ? void 0 : f.length) > Gt, p = t.format === "hidden" || t.format === "redacted" ? r("message.success.prefix") : `"${((I = t.uuid) == null ? void 0 : I.substring(0, Gt)) + (v ? "..." : "")}"`;
819
+ const v = ((f = t.uuid) == null ? void 0 : f.length) > zt, p = t.format === "hidden" || t.format === "redacted" ? r("message.success.prefix") : `"${((I = t.uuid) == null ? void 0 : I.substring(0, zt)) + (v ? "..." : "")}"`;
716
820
  typeof o == "function" && o({
717
821
  type: "success",
718
822
  message: `${p}${r("message.success.content")}`
719
823
  }), i.value ? d(t.successTooltip) : n("success", t.uuid);
720
824
  };
721
- return (m, f) => {
722
- const I = q("KIcon"), v = q("KClipboardProvider");
723
- return g(), M("div", no, [
724
- e.format !== "hidden" ? (g(), V(He(e.idTooltip ? "KTooltip" : "div"), ht({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
825
+ return (g, f) => {
826
+ const I = q("KClipboardProvider");
827
+ return m(), $("div", fo, [
828
+ e.format !== "hidden" ? (m(), R(Ve(e.idTooltip ? "KTooltip" : "div"), ht({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
725
829
  default: h(() => [
726
- R("div", {
830
+ V("div", {
727
831
  class: Fe([
728
832
  "uuid-container",
729
833
  e.truncated ? "truncated-uuid" : null,
730
834
  e.useMono ? "mono" : null
731
835
  ])
732
- }, K(c.value), 3)
836
+ }, N(c.value), 3)
733
837
  ]),
734
838
  _: 1
735
839
  }, 16)) : G("", !0),
736
- (g(), V(He(e.tooltip ? "KTooltip" : "div"), ht(l.value, { class: "uuid-icon-wrapper" }), {
840
+ (m(), R(Ve(e.tooltip ? "KTooltip" : "div"), ht(l.value, { class: "uuid-icon-wrapper" }), {
737
841
  default: h(() => [
738
- F(v, null, {
739
- default: h(({ copyToClipboard: p }) => [
740
- R("span", {
842
+ F(I, null, {
843
+ default: h(({ copyToClipboard: v }) => [
844
+ V("span", {
741
845
  "data-testid": "copy-to-clipboard",
742
846
  role: "button",
743
847
  tabindex: "0",
744
- onClick: rt((S) => u(p), ["stop"])
848
+ onClick: rt((p) => u(v), ["stop"])
745
849
  }, [
746
- F(I, {
850
+ F(y(co), {
747
851
  class: "uuid-icon",
748
852
  color: e.iconColor,
749
- "hide-title": !!e.tooltip || void 0,
750
- icon: "copy",
751
- size: "16",
853
+ decorative: !!e.tooltip,
854
+ size: y(po),
752
855
  title: y(r)("iconTitle")
753
- }, null, 8, ["color", "hide-title", "title"])
754
- ], 8, ro)
856
+ }, null, 8, ["color", "decorative", "size", "title"])
857
+ ], 8, mo)
755
858
  ]),
756
859
  _: 1
757
860
  })
@@ -761,15 +864,15 @@ const ue = {
761
864
  ]);
762
865
  };
763
866
  }
764
- }), ao = (e, n) => {
867
+ }), yo = (e, n) => {
765
868
  const t = e.__vccOpts || e;
766
869
  for (const [r, o] of n)
767
870
  t[r] = o;
768
871
  return t;
769
- }, yn = /* @__PURE__ */ ao(oo, [["__scopeId", "data-v-a2ebe0bb"]]), io = {
872
+ }, kn = /* @__PURE__ */ yo(go, [["__scopeId", "data-v-0c07874b"]]), ho = {
770
873
  key: 0,
771
874
  class: "config-card-fieldset-title"
772
- }, so = /* @__PURE__ */ ae({
875
+ }, vo = /* @__PURE__ */ re({
773
876
  __name: "JsonCardItem",
774
877
  props: {
775
878
  item: {
@@ -786,21 +889,21 @@ const ue = {
786
889
  }
787
890
  },
788
891
  setup(e) {
789
- const n = e, { i18n: { t } } = ue.useI18n(), { convertKeyToTitle: r } = ue.useStringHelpers(), o = j(() => n.item.key ?? "json-array-item"), a = j(() => n.item.value ?? n.item), i = j(() => {
892
+ const n = e, { i18n: { t } } = ue.useI18n(), { convertKeyToTitle: r } = ue.useStringHelpers(), o = T(() => n.item.key ?? "json-array-item"), a = T(() => n.item.value ?? n.item), i = T(() => {
790
893
  const l = JSON.parse(JSON.stringify(a.value));
791
894
  return n.isArrayItem && delete l.name, l;
792
- }), s = j(() => {
895
+ }), s = T(() => {
793
896
  var l;
794
897
  return n.isArrayItem ? (l = a.value) != null && l.name ? r(a.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
795
898
  });
796
- return (l, c) => (g(), V(He(e.isArrayItem ? "fieldset" : "div"), {
899
+ return (l, c) => (m(), R(Ve(e.isArrayItem ? "fieldset" : "div"), {
797
900
  class: Fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
798
901
  }, {
799
902
  default: h(() => [
800
- e.isArrayItem ? (g(), M("legend", io, [
801
- R("b", null, K(s.value), 1)
903
+ e.isArrayItem ? (m(), $("legend", ho, [
904
+ V("b", null, N(s.value), 1)
802
905
  ])) : G("", !0),
803
- (g(!0), M(ve, null, ye(Object.keys(i.value), (d, u) => (g(), V(xt, {
906
+ (m(!0), $(ve, null, ye(Object.keys(i.value), (d, u) => (m(), R(xt, {
804
907
  key: `${o.value}-property-${u}`,
805
908
  item: {
806
909
  key: d,
@@ -812,12 +915,12 @@ const ue = {
812
915
  _: 1
813
916
  }, 8, ["class"]));
814
917
  }
815
- }), Ce = (e, n) => {
918
+ }), ke = (e, n) => {
816
919
  const t = e.__vccOpts || e;
817
920
  for (const [r, o] of n)
818
921
  t[r] = o;
819
922
  return t;
820
- }, hn = /* @__PURE__ */ Ce(so, [["__scopeId", "data-v-68ca83ec"]]), lo = /* @__PURE__ */ ae({
923
+ }, _n = /* @__PURE__ */ ke(vo, [["__scopeId", "data-v-68ca83ec"]]), bo = /* @__PURE__ */ re({
821
924
  __name: "InternalLinkItem",
822
925
  props: {
823
926
  item: {
@@ -830,21 +933,21 @@ const ue = {
830
933
  const { i18n: { t: n } } = ue.useI18n();
831
934
  return (t, r) => {
832
935
  const o = q("KButton");
833
- return g(), M("div", null, [
936
+ return m(), $("div", null, [
834
937
  F(o, {
835
- appearance: "btn-link",
938
+ appearance: "tertiary",
836
939
  class: "navigation-button",
837
940
  onClick: r[0] || (r[0] = (a) => t.$emit("navigation-click", e.item))
838
941
  }, {
839
942
  default: h(() => [
840
- Z(K(e.item.value || y(n)("baseConfigCard.commonFields.link")), 1)
943
+ Z(N(e.item.value || y(n)("baseConfigCard.commonFields.link")), 1)
841
944
  ]),
842
945
  _: 1
843
946
  })
844
947
  ]);
845
948
  };
846
949
  }
847
- }), uo = /* @__PURE__ */ Ce(lo, [["__scopeId", "data-v-7410504d"]]), co = /* @__PURE__ */ ae({
950
+ }), Co = /* @__PURE__ */ ke(bo, [["__scopeId", "data-v-c96811e5"]]), ko = /* @__PURE__ */ re({
848
951
  __name: "StatusBadge",
849
952
  props: {
850
953
  status: {
@@ -856,21 +959,21 @@ const ue = {
856
959
  const { i18n: { t: n } } = ue.useI18n();
857
960
  return (t, r) => {
858
961
  const o = q("KBadge");
859
- return g(), V(o, {
962
+ return m(), R(o, {
860
963
  appearance: e.status ? "success" : "neutral"
861
964
  }, {
862
965
  default: h(() => [
863
- Z(K(e.status ? y(n)("baseConfigCard.statusBadge.enabledLabel") : y(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
966
+ Z(N(e.status ? y(n)("baseConfigCard.statusBadge.enabledLabel") : y(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
864
967
  ]),
865
968
  _: 1
866
969
  }, 8, ["appearance"]);
867
970
  };
868
971
  }
869
- }), po = "#0044f4", fo = "#e0e4ea", mo = "#3a3f51", go = "1px", yo = "20px", ho = { class: "config-card-details-row" }, vo = ["data-testid"], bo = ["data-testid"], ko = ["data-testid"], Co = ["data-testid"], _o = { key: 1 }, wo = ["data-testid"], Io = ["data-testid"], Ao = ["data-testid"], So = ["data-testid"], xo = {
972
+ }), _o = "#0044f4", wo = "#e0e4ea", Io = "#3a3f51", Ao = "1px", So = "20px", xo = { class: "config-card-details-row" }, To = ["data-testid"], $o = ["data-testid"], Mo = ["data-testid"], jo = ["data-testid"], Eo = { key: 1 }, Oo = ["data-testid"], No = ["data-testid"], Fo = ["data-testid"], Ko = ["data-testid"], Bo = {
870
973
  name: "ConfigCardItem",
871
- components: { CopyUuid: yn, JsonCardItem: hn, StatusBadge: co, InternalLinkItem: uo }
872
- }, To = /* @__PURE__ */ ae({
873
- ...xo,
974
+ components: { CopyUuid: kn, JsonCardItem: _n, StatusBadge: ko, InternalLinkItem: Co }
975
+ }, Po = /* @__PURE__ */ re({
976
+ ...Bo,
874
977
  props: {
875
978
  item: {
876
979
  type: Object,
@@ -890,13 +993,13 @@ const ue = {
890
993
  emits: ["navigation-click"],
891
994
  setup(e, { emit: n }) {
892
995
  const t = e;
893
- ur((f) => ({
894
- "1df60db4": c.value ? "none" : `solid ${y(go)} ${y(fo)}`,
996
+ mr((f) => ({
997
+ "1df60db4": c.value ? "none" : `solid ${y(Ao)} ${y(wo)}`,
895
998
  "21d1d34e": l.value && i.value ? "block" : "flex",
896
999
  "4d3dc7e7": l.value && i.value ? "100%" : t.slim ? "50%" : "25%",
897
1000
  "4d400dc2": l.value && i.value ? "100%" : t.slim ? "50%" : "75%"
898
1001
  }));
899
- const r = ut(), { i18n: { t: o, formatUnixTimeStamp: a } } = ue.useI18n(), i = j(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), s = j(() => !!(t.item.tooltip || r["label-tooltip"])), l = j(() => t.item.type === te.Json || t.item.type === te.JsonArray), c = j(() => t.item.type === te.JsonArray), d = j(() => {
1002
+ const r = ut(), { i18n: { t: o, formatUnixTimeStamp: a } } = ue.useI18n(), i = T(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), s = T(() => !!(t.item.tooltip || r["label-tooltip"])), l = T(() => t.item.type === te.Json || t.item.type === te.JsonArray), c = T(() => t.item.type === te.JsonArray), d = T(() => {
900
1003
  switch (t.item.type) {
901
1004
  case te.ID:
902
1005
  return {
@@ -1022,175 +1125,175 @@ const ue = {
1022
1125
  text: t.item.value
1023
1126
  };
1024
1127
  }
1025
- }), u = E(), { isTruncated: m } = ue.useTruncationDetector(u);
1128
+ }), u = O(), { isTruncated: g } = ue.useTruncationDetector(u);
1026
1129
  return (f, I) => {
1027
1130
  const v = q("KLabel"), p = q("KBadge"), S = q("KMethodBadge"), b = q("KTooltip");
1028
- return g(), M("div", ho, [
1029
- R("div", {
1131
+ return m(), $("div", xo, [
1132
+ V("div", {
1030
1133
  class: "config-card-details-label",
1031
1134
  "data-testid": `${e.item.key}-label`
1032
1135
  }, [
1033
- Y(f.$slots, "label", { item: e.item }, () => [
1136
+ W(f.$slots, "label", { item: e.item }, () => [
1034
1137
  F(v, { "tooltip-attributes": { maxWidth: "500px" } }, Te({
1035
1138
  default: h(() => [
1036
- Z(K(e.item.label) + " ", 1)
1139
+ Z(N(e.item.label) + " ", 1)
1037
1140
  ]),
1038
1141
  _: 2
1039
1142
  }, [
1040
1143
  s.value ? {
1041
1144
  name: "tooltip",
1042
1145
  fn: h(() => [
1043
- R("div", {
1146
+ V("div", {
1044
1147
  "data-testid": `${e.item.key}-label-tooltip`
1045
1148
  }, [
1046
- Y(f.$slots, "label-tooltip", {}, () => [
1047
- Z(K(e.item.tooltip), 1)
1149
+ W(f.$slots, "label-tooltip", {}, () => [
1150
+ Z(N(e.item.tooltip), 1)
1048
1151
  ], !0)
1049
- ], 8, bo)
1152
+ ], 8, $o)
1050
1153
  ]),
1051
1154
  key: "0"
1052
1155
  } : void 0
1053
1156
  ]), 1024)
1054
1157
  ], !0)
1055
- ], 8, vo),
1056
- R("div", {
1158
+ ], 8, To),
1159
+ V("div", {
1057
1160
  class: "config-card-details-value",
1058
1161
  "data-testid": `${e.item.key}-property-value`
1059
1162
  }, [
1060
- Y(f.$slots, e.item.key, {
1163
+ W(f.$slots, e.item.key, {
1061
1164
  rowValue: e.item.value
1062
1165
  }, () => [
1063
- i.value ? (g(), M("div", _o, [
1064
- (g(), V(He(d.value.tag), cr(dr(d.value.attrs)), {
1166
+ i.value ? (m(), $("div", Eo, [
1167
+ (m(), R(Ve(d.value.tag), gr(yr(d.value.attrs)), {
1065
1168
  default: h(() => [
1066
- d.value.additionalComponent === "KBadge" ? (g(), M("div", {
1169
+ d.value.additionalComponent === "KBadge" ? (m(), $("div", {
1067
1170
  key: 0,
1068
1171
  "data-testid": `${e.item.key}-badge-tags`
1069
1172
  }, [
1070
- (g(!0), M(ve, null, ye(e.item.value, (k, A) => (g(), V(p, {
1173
+ (m(!0), $(ve, null, ye(e.item.value, (C, A) => (m(), R(p, {
1071
1174
  key: `${e.item.key}-badge-tag-${A}`,
1072
1175
  class: "config-badge",
1073
1176
  "data-testid": `${e.item.key}-badge-tag-${A}`,
1074
- "truncation-tooltip": k
1177
+ "truncation-tooltip": C
1075
1178
  }, {
1076
1179
  default: h(() => [
1077
- Z(K(k), 1)
1180
+ Z(N(C), 1)
1078
1181
  ]),
1079
1182
  _: 2
1080
1183
  }, 1032, ["data-testid", "truncation-tooltip"]))), 128))
1081
- ], 8, wo)) : G("", !0),
1082
- d.value.additionalComponent === "CopyUuid" ? (g(), M("div", {
1184
+ ], 8, Oo)) : G("", !0),
1185
+ d.value.additionalComponent === "CopyUuid" ? (m(), $("div", {
1083
1186
  key: 1,
1084
1187
  class: "copy-uuid-array",
1085
1188
  "data-testid": `${e.item.key}-copy-uuid-array`
1086
1189
  }, [
1087
- (g(!0), M(ve, null, ye(e.item.value, (k, A) => (g(), V(y(yn), ht(d.value.childAttrs, {
1190
+ (m(!0), $(ve, null, ye(e.item.value, (C, A) => (m(), R(y(kn), ht(d.value.childAttrs, {
1088
1191
  key: `${e.item.key}-copy-uuid-${A}`,
1089
1192
  "data-testid": `${e.item.key}-copy-uuid-${A}`,
1090
- uuid: k
1193
+ uuid: C
1091
1194
  }), null, 16, ["data-testid", "uuid"]))), 128))
1092
- ], 8, Io)) : d.value.additionalComponent === "KMethodBadge" ? (g(), M("div", {
1195
+ ], 8, No)) : d.value.additionalComponent === "KMethodBadge" ? (m(), $("div", {
1093
1196
  key: 2,
1094
1197
  class: "method-badge-array",
1095
1198
  "data-testid": `${e.item.key}-badge-methods`
1096
1199
  }, [
1097
- (g(!0), M(ve, null, ye(e.item.value, (k, A) => (g(), V(S, {
1200
+ (m(!0), $(ve, null, ye(e.item.value, (C, A) => (m(), R(S, {
1098
1201
  key: `${e.item.key}-badge-method-${A}`,
1099
1202
  class: "config-badge",
1100
1203
  "data-testid": `${e.item.key}-badge-method-${A}`,
1101
1204
  "is-rounded": "",
1102
- label: k,
1103
- method: y(kr).includes(k.toLowerCase()) ? k.toLowerCase() : "custom"
1205
+ label: C,
1206
+ method: y(_r).includes(C.toLowerCase()) ? C.toLowerCase() : "custom"
1104
1207
  }, {
1105
1208
  default: h(() => [
1106
- Z(K(k), 1)
1209
+ Z(N(C), 1)
1107
1210
  ]),
1108
1211
  _: 2
1109
1212
  }, 1032, ["data-testid", "label", "method"]))), 128))
1110
- ], 8, Ao)) : G("", !0),
1111
- d.value.additionalComponent === "JsonCardItem" ? (g(), M("div", {
1213
+ ], 8, Fo)) : G("", !0),
1214
+ d.value.additionalComponent === "JsonCardItem" ? (m(), $("div", {
1112
1215
  key: 3,
1113
1216
  "data-testid": `${t.item.key}-json-array-content`
1114
1217
  }, [
1115
- (g(!0), M(ve, null, ye(e.item.value, (k, A) => (g(), V(hn, {
1218
+ (m(!0), $(ve, null, ye(e.item.value, (C, A) => (m(), R(_n, {
1116
1219
  key: `json-array-item-${A}`,
1117
1220
  index: A,
1118
1221
  "is-array-item": "",
1119
- item: k
1222
+ item: C
1120
1223
  }, null, 8, ["index", "item"]))), 128))
1121
- ], 8, So)) : (g(), V(b, {
1224
+ ], 8, Ko)) : (m(), R(b, {
1122
1225
  key: 4,
1123
- label: y(m) ? e.item.value : ""
1226
+ label: y(g) ? e.item.value : ""
1124
1227
  }, {
1125
1228
  default: h(() => [
1126
- R("span", {
1229
+ V("span", {
1127
1230
  ref_key: "textContent",
1128
1231
  ref: u,
1129
1232
  class: Fe(["attrs-data-text", { truncated: e.truncated }])
1130
- }, K(d.value.text), 3)
1233
+ }, N(d.value.text), 3)
1131
1234
  ]),
1132
1235
  _: 1
1133
1236
  }, 8, ["label"]))
1134
1237
  ]),
1135
1238
  _: 1
1136
1239
  }, 16))
1137
- ])) : (g(), M("div", {
1240
+ ])) : (m(), $("div", {
1138
1241
  key: 0,
1139
1242
  "data-testid": `${e.item.key}-no-value`
1140
- }, " – ", 8, Co))
1243
+ }, " – ", 8, jo))
1141
1244
  ], !0)
1142
- ], 8, ko)
1245
+ ], 8, Mo)
1143
1246
  ]);
1144
1247
  };
1145
1248
  }
1146
- }), xt = /* @__PURE__ */ Ce(To, [["__scopeId", "data-v-307ab96d"]]);
1249
+ }), xt = /* @__PURE__ */ ke(Po, [["__scopeId", "data-v-307ab96d"]]);
1147
1250
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
1148
- function vn(e) {
1251
+ function wn(e) {
1149
1252
  return typeof e > "u" || e === null;
1150
1253
  }
1151
- function $o(e) {
1254
+ function Lo(e) {
1152
1255
  return typeof e == "object" && e !== null;
1153
1256
  }
1154
- function jo(e) {
1155
- return Array.isArray(e) ? e : vn(e) ? [] : [e];
1257
+ function qo(e) {
1258
+ return Array.isArray(e) ? e : wn(e) ? [] : [e];
1156
1259
  }
1157
- function Mo(e, n) {
1260
+ function Uo(e, n) {
1158
1261
  var t, r, o, a;
1159
1262
  if (n)
1160
1263
  for (a = Object.keys(n), t = 0, r = a.length; t < r; t += 1)
1161
1264
  o = a[t], e[o] = n[o];
1162
1265
  return e;
1163
1266
  }
1164
- function Oo(e, n) {
1267
+ function Vo(e, n) {
1165
1268
  var t = "", r;
1166
1269
  for (r = 0; r < n; r += 1)
1167
1270
  t += e;
1168
1271
  return t;
1169
1272
  }
1170
- function Eo(e) {
1273
+ function Ro(e) {
1171
1274
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1172
1275
  }
1173
- var Ko = vn, Fo = $o, No = jo, Bo = Oo, Po = Eo, Lo = Mo, se = {
1174
- isNothing: Ko,
1175
- isObject: Fo,
1176
- toArray: No,
1177
- repeat: Bo,
1178
- isNegativeZero: Po,
1179
- extend: Lo
1276
+ var Do = wn, Go = Lo, zo = qo, Ho = Vo, Jo = Ro, Yo = Uo, se = {
1277
+ isNothing: Do,
1278
+ isObject: Go,
1279
+ toArray: zo,
1280
+ repeat: Ho,
1281
+ isNegativeZero: Jo,
1282
+ extend: Yo
1180
1283
  };
1181
- function bn(e, n) {
1284
+ function In(e, n) {
1182
1285
  var t = "", r = e.reason || "(unknown reason)";
1183
1286
  return e.mark ? (e.mark.name && (t += 'in "' + e.mark.name + '" '), t += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !n && e.mark.snippet && (t += `
1184
1287
 
1185
1288
  ` + e.mark.snippet), r + " " + t) : r;
1186
1289
  }
1187
1290
  function Je(e, n) {
1188
- Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = bn(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
1291
+ Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = In(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
1189
1292
  }
1190
1293
  Je.prototype = Object.create(Error.prototype);
1191
1294
  Je.prototype.constructor = Je;
1192
1295
  Je.prototype.toString = function(e) {
1193
- return this.name + ": " + bn(this, e);
1296
+ return this.name + ": " + In(this, e);
1194
1297
  };
1195
1298
  var me = Je;
1196
1299
  function mt(e, n, t, r, o) {
@@ -1204,7 +1307,7 @@ function mt(e, n, t, r, o) {
1204
1307
  function gt(e, n) {
1205
1308
  return se.repeat(" ", n - e.length) + e;
1206
1309
  }
1207
- function qo(e, n) {
1310
+ function Wo(e, n) {
1208
1311
  if (n = Object.create(n || null), !e.buffer)
1209
1312
  return null;
1210
1313
  n.maxLength || (n.maxLength = 79), typeof n.indent != "number" && (n.indent = 1), typeof n.linesBefore != "number" && (n.linesBefore = 3), typeof n.linesAfter != "number" && (n.linesAfter = 2);
@@ -1234,7 +1337,7 @@ function qo(e, n) {
1234
1337
  `;
1235
1338
  return s.replace(/\n$/, "");
1236
1339
  }
1237
- var Uo = qo, Ro = [
1340
+ var Zo = Wo, Qo = [
1238
1341
  "kind",
1239
1342
  "multi",
1240
1343
  "resolve",
@@ -1245,12 +1348,12 @@ var Uo = qo, Ro = [
1245
1348
  "representName",
1246
1349
  "defaultStyle",
1247
1350
  "styleAliases"
1248
- ], Vo = [
1351
+ ], Xo = [
1249
1352
  "scalar",
1250
1353
  "sequence",
1251
1354
  "mapping"
1252
1355
  ];
1253
- function Do(e) {
1356
+ function ea(e) {
1254
1357
  var n = {};
1255
1358
  return e !== null && Object.keys(e).forEach(function(t) {
1256
1359
  e[t].forEach(function(r) {
@@ -1258,19 +1361,19 @@ function Do(e) {
1258
1361
  });
1259
1362
  }), n;
1260
1363
  }
1261
- function Go(e, n) {
1364
+ function ta(e, n) {
1262
1365
  if (n = n || {}, Object.keys(n).forEach(function(t) {
1263
- if (Ro.indexOf(t) === -1)
1366
+ if (Qo.indexOf(t) === -1)
1264
1367
  throw new me('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
1265
1368
  }), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
1266
1369
  return !0;
1267
1370
  }, this.construct = n.construct || function(t) {
1268
1371
  return t;
1269
- }, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = Do(n.styleAliases || null), Vo.indexOf(this.kind) === -1)
1372
+ }, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = ea(n.styleAliases || null), Xo.indexOf(this.kind) === -1)
1270
1373
  throw new me('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1271
1374
  }
1272
- var de = Go;
1273
- function zt(e, n) {
1375
+ var de = ta;
1376
+ function Ht(e, n) {
1274
1377
  var t = [];
1275
1378
  return e[n].forEach(function(r) {
1276
1379
  var o = t.length;
@@ -1279,7 +1382,7 @@ function zt(e, n) {
1279
1382
  }), t[o] = r;
1280
1383
  }), t;
1281
1384
  }
1282
- function zo() {
1385
+ function na() {
1283
1386
  var e = {
1284
1387
  scalar: {},
1285
1388
  sequence: {},
@@ -1324,47 +1427,47 @@ vt.prototype.extend = function(e) {
1324
1427
  throw new me("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1325
1428
  });
1326
1429
  var r = Object.create(vt.prototype);
1327
- return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = zt(r, "implicit"), r.compiledExplicit = zt(r, "explicit"), r.compiledTypeMap = zo(r.compiledImplicit, r.compiledExplicit), r;
1430
+ return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Ht(r, "implicit"), r.compiledExplicit = Ht(r, "explicit"), r.compiledTypeMap = na(r.compiledImplicit, r.compiledExplicit), r;
1328
1431
  };
1329
- var kn = vt, Cn = new de("tag:yaml.org,2002:str", {
1432
+ var An = vt, Sn = new de("tag:yaml.org,2002:str", {
1330
1433
  kind: "scalar",
1331
1434
  construct: function(e) {
1332
1435
  return e !== null ? e : "";
1333
1436
  }
1334
- }), _n = new de("tag:yaml.org,2002:seq", {
1437
+ }), xn = new de("tag:yaml.org,2002:seq", {
1335
1438
  kind: "sequence",
1336
1439
  construct: function(e) {
1337
1440
  return e !== null ? e : [];
1338
1441
  }
1339
- }), wn = new de("tag:yaml.org,2002:map", {
1442
+ }), Tn = new de("tag:yaml.org,2002:map", {
1340
1443
  kind: "mapping",
1341
1444
  construct: function(e) {
1342
1445
  return e !== null ? e : {};
1343
1446
  }
1344
- }), In = new kn({
1447
+ }), $n = new An({
1345
1448
  explicit: [
1346
- Cn,
1347
- _n,
1348
- wn
1449
+ Sn,
1450
+ xn,
1451
+ Tn
1349
1452
  ]
1350
1453
  });
1351
- function Ho(e) {
1454
+ function ra(e) {
1352
1455
  if (e === null)
1353
1456
  return !0;
1354
1457
  var n = e.length;
1355
1458
  return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
1356
1459
  }
1357
- function Jo() {
1460
+ function oa() {
1358
1461
  return null;
1359
1462
  }
1360
- function Wo(e) {
1463
+ function aa(e) {
1361
1464
  return e === null;
1362
1465
  }
1363
- var An = new de("tag:yaml.org,2002:null", {
1466
+ var Mn = new de("tag:yaml.org,2002:null", {
1364
1467
  kind: "scalar",
1365
- resolve: Ho,
1366
- construct: Jo,
1367
- predicate: Wo,
1468
+ resolve: ra,
1469
+ construct: oa,
1470
+ predicate: aa,
1368
1471
  represent: {
1369
1472
  canonical: function() {
1370
1473
  return "~";
@@ -1384,23 +1487,23 @@ var An = new de("tag:yaml.org,2002:null", {
1384
1487
  },
1385
1488
  defaultStyle: "lowercase"
1386
1489
  });
1387
- function Yo(e) {
1490
+ function ia(e) {
1388
1491
  if (e === null)
1389
1492
  return !1;
1390
1493
  var n = e.length;
1391
1494
  return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
1392
1495
  }
1393
- function Zo(e) {
1496
+ function sa(e) {
1394
1497
  return e === "true" || e === "True" || e === "TRUE";
1395
1498
  }
1396
- function Qo(e) {
1499
+ function la(e) {
1397
1500
  return Object.prototype.toString.call(e) === "[object Boolean]";
1398
1501
  }
1399
- var Sn = new de("tag:yaml.org,2002:bool", {
1502
+ var jn = new de("tag:yaml.org,2002:bool", {
1400
1503
  kind: "scalar",
1401
- resolve: Yo,
1402
- construct: Zo,
1403
- predicate: Qo,
1504
+ resolve: ia,
1505
+ construct: sa,
1506
+ predicate: la,
1404
1507
  represent: {
1405
1508
  lowercase: function(e) {
1406
1509
  return e ? "true" : "false";
@@ -1414,16 +1517,16 @@ var Sn = new de("tag:yaml.org,2002:bool", {
1414
1517
  },
1415
1518
  defaultStyle: "lowercase"
1416
1519
  });
1417
- function Xo(e) {
1520
+ function ua(e) {
1418
1521
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
1419
1522
  }
1420
- function ea(e) {
1523
+ function ca(e) {
1421
1524
  return 48 <= e && e <= 55;
1422
1525
  }
1423
- function ta(e) {
1526
+ function da(e) {
1424
1527
  return 48 <= e && e <= 57;
1425
1528
  }
1426
- function na(e) {
1529
+ function pa(e) {
1427
1530
  if (e === null)
1428
1531
  return !1;
1429
1532
  var n = e.length, t = 0, r = !1, o;
@@ -1444,7 +1547,7 @@ function na(e) {
1444
1547
  if (o === "x") {
1445
1548
  for (t++; t < n; t++)
1446
1549
  if (o = e[t], o !== "_") {
1447
- if (!Xo(e.charCodeAt(t)))
1550
+ if (!ua(e.charCodeAt(t)))
1448
1551
  return !1;
1449
1552
  r = !0;
1450
1553
  }
@@ -1453,7 +1556,7 @@ function na(e) {
1453
1556
  if (o === "o") {
1454
1557
  for (t++; t < n; t++)
1455
1558
  if (o = e[t], o !== "_") {
1456
- if (!ea(e.charCodeAt(t)))
1559
+ if (!ca(e.charCodeAt(t)))
1457
1560
  return !1;
1458
1561
  r = !0;
1459
1562
  }
@@ -1464,13 +1567,13 @@ function na(e) {
1464
1567
  return !1;
1465
1568
  for (; t < n; t++)
1466
1569
  if (o = e[t], o !== "_") {
1467
- if (!ta(e.charCodeAt(t)))
1570
+ if (!da(e.charCodeAt(t)))
1468
1571
  return !1;
1469
1572
  r = !0;
1470
1573
  }
1471
1574
  return !(!r || o === "_");
1472
1575
  }
1473
- function ra(e) {
1576
+ function fa(e) {
1474
1577
  var n = e, t = 1, r;
1475
1578
  if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), r = n[0], (r === "-" || r === "+") && (r === "-" && (t = -1), n = n.slice(1), r = n[0]), n === "0")
1476
1579
  return 0;
@@ -1484,14 +1587,14 @@ function ra(e) {
1484
1587
  }
1485
1588
  return t * parseInt(n, 10);
1486
1589
  }
1487
- function oa(e) {
1590
+ function ma(e) {
1488
1591
  return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !se.isNegativeZero(e);
1489
1592
  }
1490
- var xn = new de("tag:yaml.org,2002:int", {
1593
+ var En = new de("tag:yaml.org,2002:int", {
1491
1594
  kind: "scalar",
1492
- resolve: na,
1493
- construct: ra,
1494
- predicate: oa,
1595
+ resolve: pa,
1596
+ construct: fa,
1597
+ predicate: ma,
1495
1598
  represent: {
1496
1599
  binary: function(e) {
1497
1600
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -1514,21 +1617,21 @@ var xn = new de("tag:yaml.org,2002:int", {
1514
1617
  decimal: [10, "dec"],
1515
1618
  hexadecimal: [16, "hex"]
1516
1619
  }
1517
- }), aa = new RegExp(
1620
+ }), ga = new RegExp(
1518
1621
  // 2.5e4, 2.5 and integers
1519
1622
  "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
1520
1623
  );
1521
- function ia(e) {
1522
- return !(e === null || !aa.test(e) || // Quick hack to not allow integers end with `_`
1624
+ function ya(e) {
1625
+ return !(e === null || !ga.test(e) || // Quick hack to not allow integers end with `_`
1523
1626
  // Probably should update regexp & check speed
1524
1627
  e[e.length - 1] === "_");
1525
1628
  }
1526
- function sa(e) {
1629
+ function ha(e) {
1527
1630
  var n, t;
1528
1631
  return n = e.replace(/_/g, "").toLowerCase(), t = n[0] === "-" ? -1 : 1, "+-".indexOf(n[0]) >= 0 && (n = n.slice(1)), n === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : n === ".nan" ? NaN : t * parseFloat(n, 10);
1529
1632
  }
1530
- var la = /^[-+]?[0-9]+e/;
1531
- function ua(e, n) {
1633
+ var va = /^[-+]?[0-9]+e/;
1634
+ function ba(e, n) {
1532
1635
  var t;
1533
1636
  if (isNaN(e))
1534
1637
  switch (n) {
@@ -1559,36 +1662,36 @@ function ua(e, n) {
1559
1662
  }
1560
1663
  else if (se.isNegativeZero(e))
1561
1664
  return "-0.0";
1562
- return t = e.toString(10), la.test(t) ? t.replace("e", ".e") : t;
1665
+ return t = e.toString(10), va.test(t) ? t.replace("e", ".e") : t;
1563
1666
  }
1564
- function ca(e) {
1667
+ function Ca(e) {
1565
1668
  return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || se.isNegativeZero(e));
1566
1669
  }
1567
- var Tn = new de("tag:yaml.org,2002:float", {
1670
+ var On = new de("tag:yaml.org,2002:float", {
1568
1671
  kind: "scalar",
1569
- resolve: ia,
1570
- construct: sa,
1571
- predicate: ca,
1572
- represent: ua,
1672
+ resolve: ya,
1673
+ construct: ha,
1674
+ predicate: Ca,
1675
+ represent: ba,
1573
1676
  defaultStyle: "lowercase"
1574
- }), $n = In.extend({
1677
+ }), Nn = $n.extend({
1575
1678
  implicit: [
1576
- An,
1577
- Sn,
1578
- xn,
1579
- Tn
1679
+ Mn,
1680
+ jn,
1681
+ En,
1682
+ On
1580
1683
  ]
1581
- }), jn = $n, Mn = new RegExp(
1684
+ }), Fn = Nn, Kn = new RegExp(
1582
1685
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
1583
- ), On = new RegExp(
1686
+ ), Bn = new RegExp(
1584
1687
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
1585
1688
  );
1586
- function da(e) {
1587
- return e === null ? !1 : Mn.exec(e) !== null || On.exec(e) !== null;
1689
+ function ka(e) {
1690
+ return e === null ? !1 : Kn.exec(e) !== null || Bn.exec(e) !== null;
1588
1691
  }
1589
- function pa(e) {
1590
- var n, t, r, o, a, i, s, l = 0, c = null, d, u, m;
1591
- if (n = Mn.exec(e), n === null && (n = On.exec(e)), n === null)
1692
+ function _a(e) {
1693
+ var n, t, r, o, a, i, s, l = 0, c = null, d, u, g;
1694
+ if (n = Kn.exec(e), n === null && (n = Bn.exec(e)), n === null)
1592
1695
  throw new Error("Date resolve error");
1593
1696
  if (t = +n[1], r = +n[2] - 1, o = +n[3], !n[4])
1594
1697
  return new Date(Date.UTC(t, r, o));
@@ -1597,27 +1700,27 @@ function pa(e) {
1597
1700
  l += "0";
1598
1701
  l = +l;
1599
1702
  }
1600
- return n[9] && (d = +n[10], u = +(n[11] || 0), c = (d * 60 + u) * 6e4, n[9] === "-" && (c = -c)), m = new Date(Date.UTC(t, r, o, a, i, s, l)), c && m.setTime(m.getTime() - c), m;
1703
+ return n[9] && (d = +n[10], u = +(n[11] || 0), c = (d * 60 + u) * 6e4, n[9] === "-" && (c = -c)), g = new Date(Date.UTC(t, r, o, a, i, s, l)), c && g.setTime(g.getTime() - c), g;
1601
1704
  }
1602
- function fa(e) {
1705
+ function wa(e) {
1603
1706
  return e.toISOString();
1604
1707
  }
1605
- var En = new de("tag:yaml.org,2002:timestamp", {
1708
+ var Pn = new de("tag:yaml.org,2002:timestamp", {
1606
1709
  kind: "scalar",
1607
- resolve: da,
1608
- construct: pa,
1710
+ resolve: ka,
1711
+ construct: _a,
1609
1712
  instanceOf: Date,
1610
- represent: fa
1713
+ represent: wa
1611
1714
  });
1612
- function ma(e) {
1715
+ function Ia(e) {
1613
1716
  return e === "<<" || e === null;
1614
1717
  }
1615
- var Kn = new de("tag:yaml.org,2002:merge", {
1718
+ var Ln = new de("tag:yaml.org,2002:merge", {
1616
1719
  kind: "scalar",
1617
- resolve: ma
1720
+ resolve: Ia
1618
1721
  }), Tt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1619
1722
  \r`;
1620
- function ga(e) {
1723
+ function Aa(e) {
1621
1724
  if (e === null)
1622
1725
  return !1;
1623
1726
  var n, t, r = 0, o = e.length, a = Tt;
@@ -1629,37 +1732,37 @@ function ga(e) {
1629
1732
  }
1630
1733
  return r % 8 === 0;
1631
1734
  }
1632
- function ya(e) {
1735
+ function Sa(e) {
1633
1736
  var n, t, r = e.replace(/[\r\n=]/g, ""), o = r.length, a = Tt, i = 0, s = [];
1634
1737
  for (n = 0; n < o; n++)
1635
1738
  n % 4 === 0 && n && (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)), i = i << 6 | a.indexOf(r.charAt(n));
1636
1739
  return t = o % 4 * 6, t === 0 ? (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)) : t === 18 ? (s.push(i >> 10 & 255), s.push(i >> 2 & 255)) : t === 12 && s.push(i >> 4 & 255), new Uint8Array(s);
1637
1740
  }
1638
- function ha(e) {
1741
+ function xa(e) {
1639
1742
  var n = "", t = 0, r, o, a = e.length, i = Tt;
1640
1743
  for (r = 0; r < a; r++)
1641
1744
  r % 3 === 0 && r && (n += i[t >> 18 & 63], n += i[t >> 12 & 63], n += i[t >> 6 & 63], n += i[t & 63]), t = (t << 8) + e[r];
1642
1745
  return o = a % 3, o === 0 ? (n += i[t >> 18 & 63], n += i[t >> 12 & 63], n += i[t >> 6 & 63], n += i[t & 63]) : o === 2 ? (n += i[t >> 10 & 63], n += i[t >> 4 & 63], n += i[t << 2 & 63], n += i[64]) : o === 1 && (n += i[t >> 2 & 63], n += i[t << 4 & 63], n += i[64], n += i[64]), n;
1643
1746
  }
1644
- function va(e) {
1747
+ function Ta(e) {
1645
1748
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1646
1749
  }
1647
- var Fn = new de("tag:yaml.org,2002:binary", {
1750
+ var qn = new de("tag:yaml.org,2002:binary", {
1648
1751
  kind: "scalar",
1649
- resolve: ga,
1650
- construct: ya,
1651
- predicate: va,
1652
- represent: ha
1653
- }), ba = Object.prototype.hasOwnProperty, ka = Object.prototype.toString;
1654
- function Ca(e) {
1752
+ resolve: Aa,
1753
+ construct: Sa,
1754
+ predicate: Ta,
1755
+ represent: xa
1756
+ }), $a = Object.prototype.hasOwnProperty, Ma = Object.prototype.toString;
1757
+ function ja(e) {
1655
1758
  if (e === null)
1656
1759
  return !0;
1657
1760
  var n = [], t, r, o, a, i, s = e;
1658
1761
  for (t = 0, r = s.length; t < r; t += 1) {
1659
- if (o = s[t], i = !1, ka.call(o) !== "[object Object]")
1762
+ if (o = s[t], i = !1, Ma.call(o) !== "[object Object]")
1660
1763
  return !1;
1661
1764
  for (a in o)
1662
- if (ba.call(o, a))
1765
+ if ($a.call(o, a))
1663
1766
  if (!i)
1664
1767
  i = !0;
1665
1768
  else
@@ -1673,26 +1776,26 @@ function Ca(e) {
1673
1776
  }
1674
1777
  return !0;
1675
1778
  }
1676
- function _a(e) {
1779
+ function Ea(e) {
1677
1780
  return e !== null ? e : [];
1678
1781
  }
1679
- var Nn = new de("tag:yaml.org,2002:omap", {
1782
+ var Un = new de("tag:yaml.org,2002:omap", {
1680
1783
  kind: "sequence",
1681
- resolve: Ca,
1682
- construct: _a
1683
- }), wa = Object.prototype.toString;
1684
- function Ia(e) {
1784
+ resolve: ja,
1785
+ construct: Ea
1786
+ }), Oa = Object.prototype.toString;
1787
+ function Na(e) {
1685
1788
  if (e === null)
1686
1789
  return !0;
1687
1790
  var n, t, r, o, a, i = e;
1688
1791
  for (a = new Array(i.length), n = 0, t = i.length; n < t; n += 1) {
1689
- if (r = i[n], wa.call(r) !== "[object Object]" || (o = Object.keys(r), o.length !== 1))
1792
+ if (r = i[n], Oa.call(r) !== "[object Object]" || (o = Object.keys(r), o.length !== 1))
1690
1793
  return !1;
1691
1794
  a[n] = [o[0], r[o[0]]];
1692
1795
  }
1693
1796
  return !0;
1694
1797
  }
1695
- function Aa(e) {
1798
+ function Fa(e) {
1696
1799
  if (e === null)
1697
1800
  return [];
1698
1801
  var n, t, r, o, a, i = e;
@@ -1700,46 +1803,46 @@ function Aa(e) {
1700
1803
  r = i[n], o = Object.keys(r), a[n] = [o[0], r[o[0]]];
1701
1804
  return a;
1702
1805
  }
1703
- var Bn = new de("tag:yaml.org,2002:pairs", {
1806
+ var Vn = new de("tag:yaml.org,2002:pairs", {
1704
1807
  kind: "sequence",
1705
- resolve: Ia,
1706
- construct: Aa
1707
- }), Sa = Object.prototype.hasOwnProperty;
1708
- function xa(e) {
1808
+ resolve: Na,
1809
+ construct: Fa
1810
+ }), Ka = Object.prototype.hasOwnProperty;
1811
+ function Ba(e) {
1709
1812
  if (e === null)
1710
1813
  return !0;
1711
1814
  var n, t = e;
1712
1815
  for (n in t)
1713
- if (Sa.call(t, n) && t[n] !== null)
1816
+ if (Ka.call(t, n) && t[n] !== null)
1714
1817
  return !1;
1715
1818
  return !0;
1716
1819
  }
1717
- function Ta(e) {
1820
+ function Pa(e) {
1718
1821
  return e !== null ? e : {};
1719
1822
  }
1720
- var Pn = new de("tag:yaml.org,2002:set", {
1823
+ var Rn = new de("tag:yaml.org,2002:set", {
1721
1824
  kind: "mapping",
1722
- resolve: xa,
1723
- construct: Ta
1724
- }), $t = jn.extend({
1825
+ resolve: Ba,
1826
+ construct: Pa
1827
+ }), $t = Fn.extend({
1725
1828
  implicit: [
1726
- En,
1727
- Kn
1829
+ Pn,
1830
+ Ln
1728
1831
  ],
1729
1832
  explicit: [
1730
- Fn,
1731
- Nn,
1732
- Bn,
1733
- Pn
1833
+ qn,
1834
+ Un,
1835
+ Vn,
1836
+ Rn
1734
1837
  ]
1735
- }), Me = Object.prototype.hasOwnProperty, ot = 1, Ln = 2, qn = 3, at = 4, yt = 1, $a = 2, Ht = 3, ja = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ma = /[\x85\u2028\u2029]/, Oa = /[,\[\]\{\}]/, Un = /^(?:!|!!|![a-z\-]+!)$/i, Rn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1736
- function Jt(e) {
1838
+ }), je = Object.prototype.hasOwnProperty, ot = 1, Dn = 2, Gn = 3, at = 4, yt = 1, La = 2, Jt = 3, qa = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ua = /[\x85\u2028\u2029]/, Va = /[,\[\]\{\}]/, zn = /^(?:!|!!|![a-z\-]+!)$/i, Hn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1839
+ function Yt(e) {
1737
1840
  return Object.prototype.toString.call(e);
1738
1841
  }
1739
1842
  function we(e) {
1740
1843
  return e === 10 || e === 13;
1741
1844
  }
1742
- function Ke(e) {
1845
+ function Ne(e) {
1743
1846
  return e === 9 || e === 32;
1744
1847
  }
1745
1848
  function he(e) {
@@ -1748,33 +1851,33 @@ function he(e) {
1748
1851
  function qe(e) {
1749
1852
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1750
1853
  }
1751
- function Ea(e) {
1854
+ function Ra(e) {
1752
1855
  var n;
1753
1856
  return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
1754
1857
  }
1755
- function Ka(e) {
1858
+ function Da(e) {
1756
1859
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
1757
1860
  }
1758
- function Fa(e) {
1861
+ function Ga(e) {
1759
1862
  return 48 <= e && e <= 57 ? e - 48 : -1;
1760
1863
  }
1761
1864
  function Wt(e) {
1762
1865
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1763
1866
  ` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
1764
1867
  }
1765
- function Na(e) {
1868
+ function za(e) {
1766
1869
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
1767
1870
  (e - 65536 >> 10) + 55296,
1768
1871
  (e - 65536 & 1023) + 56320
1769
1872
  );
1770
1873
  }
1771
- var Vn = new Array(256), Dn = new Array(256);
1874
+ var Jn = new Array(256), Yn = new Array(256);
1772
1875
  for (var Pe = 0; Pe < 256; Pe++)
1773
- Vn[Pe] = Wt(Pe) ? 1 : 0, Dn[Pe] = Wt(Pe);
1774
- function Ba(e, n) {
1876
+ Jn[Pe] = Wt(Pe) ? 1 : 0, Yn[Pe] = Wt(Pe);
1877
+ function Ha(e, n) {
1775
1878
  this.input = e, this.filename = n.filename || null, this.schema = n.schema || $t, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
1776
1879
  }
1777
- function Gn(e, n) {
1880
+ function Wn(e, n) {
1778
1881
  var t = {
1779
1882
  name: e.filename,
1780
1883
  buffer: e.input.slice(0, -1),
@@ -1783,59 +1886,59 @@ function Gn(e, n) {
1783
1886
  line: e.line,
1784
1887
  column: e.position - e.lineStart
1785
1888
  };
1786
- return t.snippet = Uo(t), new me(n, t);
1889
+ return t.snippet = Zo(t), new me(n, t);
1787
1890
  }
1788
- function $(e, n) {
1789
- throw Gn(e, n);
1891
+ function j(e, n) {
1892
+ throw Wn(e, n);
1790
1893
  }
1791
1894
  function it(e, n) {
1792
- e.onWarning && e.onWarning.call(null, Gn(e, n));
1895
+ e.onWarning && e.onWarning.call(null, Wn(e, n));
1793
1896
  }
1794
- var Yt = {
1897
+ var Zt = {
1795
1898
  YAML: function(e, n, t) {
1796
1899
  var r, o, a;
1797
- e.version !== null && $(e, "duplication of %YAML directive"), t.length !== 1 && $(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), r === null && $(e, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && $(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && it(e, "unsupported YAML version of the document");
1900
+ e.version !== null && j(e, "duplication of %YAML directive"), t.length !== 1 && j(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), r === null && j(e, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && j(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && it(e, "unsupported YAML version of the document");
1798
1901
  },
1799
1902
  TAG: function(e, n, t) {
1800
1903
  var r, o;
1801
- t.length !== 2 && $(e, "TAG directive accepts exactly two arguments"), r = t[0], o = t[1], Un.test(r) || $(e, "ill-formed tag handle (first argument) of the TAG directive"), Me.call(e.tagMap, r) && $(e, 'there is a previously declared suffix for "' + r + '" tag handle'), Rn.test(o) || $(e, "ill-formed tag prefix (second argument) of the TAG directive");
1904
+ t.length !== 2 && j(e, "TAG directive accepts exactly two arguments"), r = t[0], o = t[1], zn.test(r) || j(e, "ill-formed tag handle (first argument) of the TAG directive"), je.call(e.tagMap, r) && j(e, 'there is a previously declared suffix for "' + r + '" tag handle'), Hn.test(o) || j(e, "ill-formed tag prefix (second argument) of the TAG directive");
1802
1905
  try {
1803
1906
  o = decodeURIComponent(o);
1804
1907
  } catch {
1805
- $(e, "tag prefix is malformed: " + o);
1908
+ j(e, "tag prefix is malformed: " + o);
1806
1909
  }
1807
1910
  e.tagMap[r] = o;
1808
1911
  }
1809
1912
  };
1810
- function je(e, n, t, r) {
1913
+ function Me(e, n, t, r) {
1811
1914
  var o, a, i, s;
1812
1915
  if (n < t) {
1813
1916
  if (s = e.input.slice(n, t), r)
1814
1917
  for (o = 0, a = s.length; o < a; o += 1)
1815
- i = s.charCodeAt(o), i === 9 || 32 <= i && i <= 1114111 || $(e, "expected valid JSON character");
1918
+ i = s.charCodeAt(o), i === 9 || 32 <= i && i <= 1114111 || j(e, "expected valid JSON character");
1816
1919
  else
1817
- ja.test(s) && $(e, "the stream contains non-printable characters");
1920
+ qa.test(s) && j(e, "the stream contains non-printable characters");
1818
1921
  e.result += s;
1819
1922
  }
1820
1923
  }
1821
- function Zt(e, n, t, r) {
1924
+ function Qt(e, n, t, r) {
1822
1925
  var o, a, i, s;
1823
- for (se.isObject(t) || $(e, "cannot merge mappings; the provided source object is unacceptable"), o = Object.keys(t), i = 0, s = o.length; i < s; i += 1)
1824
- a = o[i], Me.call(n, a) || (n[a] = t[a], r[a] = !0);
1926
+ for (se.isObject(t) || j(e, "cannot merge mappings; the provided source object is unacceptable"), o = Object.keys(t), i = 0, s = o.length; i < s; i += 1)
1927
+ a = o[i], je.call(n, a) || (n[a] = t[a], r[a] = !0);
1825
1928
  }
1826
1929
  function Ue(e, n, t, r, o, a, i, s, l) {
1827
1930
  var c, d;
1828
1931
  if (Array.isArray(o))
1829
1932
  for (o = Array.prototype.slice.call(o), c = 0, d = o.length; c < d; c += 1)
1830
- Array.isArray(o[c]) && $(e, "nested arrays are not supported inside keys"), typeof o == "object" && Jt(o[c]) === "[object Object]" && (o[c] = "[object Object]");
1831
- if (typeof o == "object" && Jt(o) === "[object Object]" && (o = "[object Object]"), o = String(o), n === null && (n = {}), r === "tag:yaml.org,2002:merge")
1933
+ Array.isArray(o[c]) && j(e, "nested arrays are not supported inside keys"), typeof o == "object" && Yt(o[c]) === "[object Object]" && (o[c] = "[object Object]");
1934
+ if (typeof o == "object" && Yt(o) === "[object Object]" && (o = "[object Object]"), o = String(o), n === null && (n = {}), r === "tag:yaml.org,2002:merge")
1832
1935
  if (Array.isArray(a))
1833
1936
  for (c = 0, d = a.length; c < d; c += 1)
1834
- Zt(e, n, a[c], t);
1937
+ Qt(e, n, a[c], t);
1835
1938
  else
1836
- Zt(e, n, a, t);
1939
+ Qt(e, n, a, t);
1837
1940
  else
1838
- !e.json && !Me.call(t, o) && Me.call(n, o) && (e.line = i || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, $(e, "duplicated mapping key")), o === "__proto__" ? Object.defineProperty(n, o, {
1941
+ !e.json && !je.call(t, o) && je.call(n, o) && (e.line = i || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, j(e, "duplicated mapping key")), o === "__proto__" ? Object.defineProperty(n, o, {
1839
1942
  configurable: !0,
1840
1943
  enumerable: !0,
1841
1944
  writable: !0,
@@ -1843,20 +1946,20 @@ function Ue(e, n, t, r, o, a, i, s, l) {
1843
1946
  }) : n[o] = a, delete t[o];
1844
1947
  return n;
1845
1948
  }
1846
- function jt(e) {
1949
+ function Mt(e) {
1847
1950
  var n;
1848
- n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : $(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1951
+ n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : j(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1849
1952
  }
1850
- function oe(e, n, t) {
1953
+ function ae(e, n, t) {
1851
1954
  for (var r = 0, o = e.input.charCodeAt(e.position); o !== 0; ) {
1852
- for (; Ke(o); )
1955
+ for (; Ne(o); )
1853
1956
  o === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), o = e.input.charCodeAt(++e.position);
1854
1957
  if (n && o === 35)
1855
1958
  do
1856
1959
  o = e.input.charCodeAt(++e.position);
1857
1960
  while (o !== 10 && o !== 13 && o !== 0);
1858
1961
  if (we(o))
1859
- for (jt(e), o = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; o === 32; )
1962
+ for (Mt(e), o = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; o === 32; )
1860
1963
  e.lineIndent++, o = e.input.charCodeAt(++e.position);
1861
1964
  else
1862
1965
  break;
@@ -1867,12 +1970,12 @@ function dt(e) {
1867
1970
  var n = e.position, t;
1868
1971
  return t = e.input.charCodeAt(n), !!((t === 45 || t === 46) && t === e.input.charCodeAt(n + 1) && t === e.input.charCodeAt(n + 2) && (n += 3, t = e.input.charCodeAt(n), t === 0 || he(t)));
1869
1972
  }
1870
- function Mt(e, n) {
1973
+ function jt(e, n) {
1871
1974
  n === 1 ? e.result += " " : n > 1 && (e.result += se.repeat(`
1872
1975
  `, n - 1));
1873
1976
  }
1874
- function Pa(e, n, t) {
1875
- var r, o, a, i, s, l, c, d, u = e.kind, m = e.result, f;
1977
+ function Ja(e, n, t) {
1978
+ var r, o, a, i, s, l, c, d, u = e.kind, g = e.result, f;
1876
1979
  if (f = e.input.charCodeAt(e.position), he(f) || qe(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (o = e.input.charCodeAt(e.position + 1), he(o) || t && qe(o)))
1877
1980
  return !1;
1878
1981
  for (e.kind = "scalar", e.result = "", a = i = e.position, s = !1; f !== 0; ) {
@@ -1886,7 +1989,7 @@ function Pa(e, n, t) {
1886
1989
  if (e.position === e.lineStart && dt(e) || t && qe(f))
1887
1990
  break;
1888
1991
  if (we(f))
1889
- if (l = e.line, c = e.lineStart, d = e.lineIndent, oe(e, !1, -1), e.lineIndent >= n) {
1992
+ if (l = e.line, c = e.lineStart, d = e.lineIndent, ae(e, !1, -1), e.lineIndent >= n) {
1890
1993
  s = !0, f = e.input.charCodeAt(e.position);
1891
1994
  continue;
1892
1995
  } else {
@@ -1894,50 +1997,50 @@ function Pa(e, n, t) {
1894
1997
  break;
1895
1998
  }
1896
1999
  }
1897
- s && (je(e, a, i, !1), Mt(e, e.line - l), a = i = e.position, s = !1), Ke(f) || (i = e.position + 1), f = e.input.charCodeAt(++e.position);
2000
+ s && (Me(e, a, i, !1), jt(e, e.line - l), a = i = e.position, s = !1), Ne(f) || (i = e.position + 1), f = e.input.charCodeAt(++e.position);
1898
2001
  }
1899
- return je(e, a, i, !1), e.result ? !0 : (e.kind = u, e.result = m, !1);
2002
+ return Me(e, a, i, !1), e.result ? !0 : (e.kind = u, e.result = g, !1);
1900
2003
  }
1901
- function La(e, n) {
2004
+ function Ya(e, n) {
1902
2005
  var t, r, o;
1903
2006
  if (t = e.input.charCodeAt(e.position), t !== 39)
1904
2007
  return !1;
1905
2008
  for (e.kind = "scalar", e.result = "", e.position++, r = o = e.position; (t = e.input.charCodeAt(e.position)) !== 0; )
1906
2009
  if (t === 39)
1907
- if (je(e, r, e.position, !0), t = e.input.charCodeAt(++e.position), t === 39)
2010
+ if (Me(e, r, e.position, !0), t = e.input.charCodeAt(++e.position), t === 39)
1908
2011
  r = e.position, e.position++, o = e.position;
1909
2012
  else
1910
2013
  return !0;
1911
2014
  else
1912
- we(t) ? (je(e, r, o, !0), Mt(e, oe(e, !1, n)), r = o = e.position) : e.position === e.lineStart && dt(e) ? $(e, "unexpected end of the document within a single quoted scalar") : (e.position++, o = e.position);
1913
- $(e, "unexpected end of the stream within a single quoted scalar");
2015
+ we(t) ? (Me(e, r, o, !0), jt(e, ae(e, !1, n)), r = o = e.position) : e.position === e.lineStart && dt(e) ? j(e, "unexpected end of the document within a single quoted scalar") : (e.position++, o = e.position);
2016
+ j(e, "unexpected end of the stream within a single quoted scalar");
1914
2017
  }
1915
- function qa(e, n) {
2018
+ function Wa(e, n) {
1916
2019
  var t, r, o, a, i, s;
1917
2020
  if (s = e.input.charCodeAt(e.position), s !== 34)
1918
2021
  return !1;
1919
2022
  for (e.kind = "scalar", e.result = "", e.position++, t = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0; ) {
1920
2023
  if (s === 34)
1921
- return je(e, t, e.position, !0), e.position++, !0;
2024
+ return Me(e, t, e.position, !0), e.position++, !0;
1922
2025
  if (s === 92) {
1923
- if (je(e, t, e.position, !0), s = e.input.charCodeAt(++e.position), we(s))
1924
- oe(e, !1, n);
1925
- else if (s < 256 && Vn[s])
1926
- e.result += Dn[s], e.position++;
1927
- else if ((i = Ka(s)) > 0) {
2026
+ if (Me(e, t, e.position, !0), s = e.input.charCodeAt(++e.position), we(s))
2027
+ ae(e, !1, n);
2028
+ else if (s < 256 && Jn[s])
2029
+ e.result += Yn[s], e.position++;
2030
+ else if ((i = Da(s)) > 0) {
1928
2031
  for (o = i, a = 0; o > 0; o--)
1929
- s = e.input.charCodeAt(++e.position), (i = Ea(s)) >= 0 ? a = (a << 4) + i : $(e, "expected hexadecimal character");
1930
- e.result += Na(a), e.position++;
2032
+ s = e.input.charCodeAt(++e.position), (i = Ra(s)) >= 0 ? a = (a << 4) + i : j(e, "expected hexadecimal character");
2033
+ e.result += za(a), e.position++;
1931
2034
  } else
1932
- $(e, "unknown escape sequence");
2035
+ j(e, "unknown escape sequence");
1933
2036
  t = r = e.position;
1934
2037
  } else
1935
- we(s) ? (je(e, t, r, !0), Mt(e, oe(e, !1, n)), t = r = e.position) : e.position === e.lineStart && dt(e) ? $(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
2038
+ we(s) ? (Me(e, t, r, !0), jt(e, ae(e, !1, n)), t = r = e.position) : e.position === e.lineStart && dt(e) ? j(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1936
2039
  }
1937
- $(e, "unexpected end of the stream within a double quoted scalar");
2040
+ j(e, "unexpected end of the stream within a double quoted scalar");
1938
2041
  }
1939
- function Ua(e, n) {
1940
- var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u, m, f, I = /* @__PURE__ */ Object.create(null), v, p, S, b;
2042
+ function Za(e, n) {
2043
+ var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u, g, f, I = /* @__PURE__ */ Object.create(null), v, p, S, b;
1941
2044
  if (b = e.input.charCodeAt(e.position), b === 91)
1942
2045
  d = 93, f = !1, s = [];
1943
2046
  else if (b === 123)
@@ -1945,13 +2048,13 @@ function Ua(e, n) {
1945
2048
  else
1946
2049
  return !1;
1947
2050
  for (e.anchor !== null && (e.anchorMap[e.anchor] = s), b = e.input.charCodeAt(++e.position); b !== 0; ) {
1948
- if (oe(e, !0, n), b = e.input.charCodeAt(e.position), b === d)
2051
+ if (ae(e, !0, n), b = e.input.charCodeAt(e.position), b === d)
1949
2052
  return e.position++, e.tag = i, e.anchor = l, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
1950
- t ? b === 44 && $(e, "expected the node content, but found ','") : $(e, "missed comma between flow collection entries"), p = v = S = null, u = m = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1), he(c) && (u = m = !0, e.position++, oe(e, !0, n))), r = e.line, o = e.lineStart, a = e.position, Re(e, n, ot, !1, !0), p = e.tag, v = e.result, oe(e, !0, n), b = e.input.charCodeAt(e.position), (m || e.line === r) && b === 58 && (u = !0, b = e.input.charCodeAt(++e.position), oe(e, !0, n), Re(e, n, ot, !1, !0), S = e.result), f ? Ue(e, s, I, p, v, S, r, o, a) : u ? s.push(Ue(e, null, I, p, v, S, r, o, a)) : s.push(v), oe(e, !0, n), b = e.input.charCodeAt(e.position), b === 44 ? (t = !0, b = e.input.charCodeAt(++e.position)) : t = !1;
2053
+ t ? b === 44 && j(e, "expected the node content, but found ','") : j(e, "missed comma between flow collection entries"), p = v = S = null, u = g = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1), he(c) && (u = g = !0, e.position++, ae(e, !0, n))), r = e.line, o = e.lineStart, a = e.position, Re(e, n, ot, !1, !0), p = e.tag, v = e.result, ae(e, !0, n), b = e.input.charCodeAt(e.position), (g || e.line === r) && b === 58 && (u = !0, b = e.input.charCodeAt(++e.position), ae(e, !0, n), Re(e, n, ot, !1, !0), S = e.result), f ? Ue(e, s, I, p, v, S, r, o, a) : u ? s.push(Ue(e, null, I, p, v, S, r, o, a)) : s.push(v), ae(e, !0, n), b = e.input.charCodeAt(e.position), b === 44 ? (t = !0, b = e.input.charCodeAt(++e.position)) : t = !1;
1951
2054
  }
1952
- $(e, "unexpected end of the stream within a flow collection");
2055
+ j(e, "unexpected end of the stream within a flow collection");
1953
2056
  }
1954
- function Ra(e, n) {
2057
+ function Qa(e, n) {
1955
2058
  var t, r, o = yt, a = !1, i = !1, s = n, l = 0, c = !1, d, u;
1956
2059
  if (u = e.input.charCodeAt(e.position), u === 124)
1957
2060
  r = !1;
@@ -1961,161 +2064,161 @@ function Ra(e, n) {
1961
2064
  return !1;
1962
2065
  for (e.kind = "scalar", e.result = ""; u !== 0; )
1963
2066
  if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
1964
- yt === o ? o = u === 43 ? Ht : $a : $(e, "repeat of a chomping mode identifier");
1965
- else if ((d = Fa(u)) >= 0)
1966
- d === 0 ? $(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? $(e, "repeat of an indentation width identifier") : (s = n + d - 1, i = !0);
2067
+ yt === o ? o = u === 43 ? Jt : La : j(e, "repeat of a chomping mode identifier");
2068
+ else if ((d = Ga(u)) >= 0)
2069
+ d === 0 ? j(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? j(e, "repeat of an indentation width identifier") : (s = n + d - 1, i = !0);
1967
2070
  else
1968
2071
  break;
1969
- if (Ke(u)) {
2072
+ if (Ne(u)) {
1970
2073
  do
1971
2074
  u = e.input.charCodeAt(++e.position);
1972
- while (Ke(u));
2075
+ while (Ne(u));
1973
2076
  if (u === 35)
1974
2077
  do
1975
2078
  u = e.input.charCodeAt(++e.position);
1976
2079
  while (!we(u) && u !== 0);
1977
2080
  }
1978
2081
  for (; u !== 0; ) {
1979
- for (jt(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!i || e.lineIndent < s) && u === 32; )
2082
+ for (Mt(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!i || e.lineIndent < s) && u === 32; )
1980
2083
  e.lineIndent++, u = e.input.charCodeAt(++e.position);
1981
2084
  if (!i && e.lineIndent > s && (s = e.lineIndent), we(u)) {
1982
2085
  l++;
1983
2086
  continue;
1984
2087
  }
1985
2088
  if (e.lineIndent < s) {
1986
- o === Ht ? e.result += se.repeat(`
2089
+ o === Jt ? e.result += se.repeat(`
1987
2090
  `, a ? 1 + l : l) : o === yt && a && (e.result += `
1988
2091
  `);
1989
2092
  break;
1990
2093
  }
1991
- for (r ? Ke(u) ? (c = !0, e.result += se.repeat(`
2094
+ for (r ? Ne(u) ? (c = !0, e.result += se.repeat(`
1992
2095
  `, a ? 1 + l : l)) : c ? (c = !1, e.result += se.repeat(`
1993
2096
  `, l + 1)) : l === 0 ? a && (e.result += " ") : e.result += se.repeat(`
1994
2097
  `, l) : e.result += se.repeat(`
1995
2098
  `, a ? 1 + l : l), a = !0, i = !0, l = 0, t = e.position; !we(u) && u !== 0; )
1996
2099
  u = e.input.charCodeAt(++e.position);
1997
- je(e, t, e.position, !1);
2100
+ Me(e, t, e.position, !1);
1998
2101
  }
1999
2102
  return !0;
2000
2103
  }
2001
- function Qt(e, n) {
2104
+ function Xt(e, n) {
2002
2105
  var t, r = e.tag, o = e.anchor, a = [], i, s = !1, l;
2003
2106
  if (e.firstTabInLine !== -1)
2004
2107
  return !1;
2005
- for (e.anchor !== null && (e.anchorMap[e.anchor] = a), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, $(e, "tab characters must not be used in indentation")), !(l !== 45 || (i = e.input.charCodeAt(e.position + 1), !he(i)))); ) {
2006
- if (s = !0, e.position++, oe(e, !0, -1) && e.lineIndent <= n) {
2108
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = a), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")), !(l !== 45 || (i = e.input.charCodeAt(e.position + 1), !he(i)))); ) {
2109
+ if (s = !0, e.position++, ae(e, !0, -1) && e.lineIndent <= n) {
2007
2110
  a.push(null), l = e.input.charCodeAt(e.position);
2008
2111
  continue;
2009
2112
  }
2010
- if (t = e.line, Re(e, n, qn, !1, !0), a.push(e.result), oe(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
2011
- $(e, "bad indentation of a sequence entry");
2113
+ if (t = e.line, Re(e, n, Gn, !1, !0), a.push(e.result), ae(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
2114
+ j(e, "bad indentation of a sequence entry");
2012
2115
  else if (e.lineIndent < n)
2013
2116
  break;
2014
2117
  }
2015
2118
  return s ? (e.tag = r, e.anchor = o, e.kind = "sequence", e.result = a, !0) : !1;
2016
2119
  }
2017
- function Va(e, n, t) {
2018
- var r, o, a, i, s, l, c = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), f = null, I = null, v = null, p = !1, S = !1, b;
2120
+ function Xa(e, n, t) {
2121
+ var r, o, a, i, s, l, c = e.tag, d = e.anchor, u = {}, g = /* @__PURE__ */ Object.create(null), f = null, I = null, v = null, p = !1, S = !1, b;
2019
2122
  if (e.firstTabInLine !== -1)
2020
2123
  return !1;
2021
2124
  for (e.anchor !== null && (e.anchorMap[e.anchor] = u), b = e.input.charCodeAt(e.position); b !== 0; ) {
2022
- if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, $(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (b === 63 || b === 58) && he(r))
2023
- b === 63 ? (p && (Ue(e, u, m, f, I, null, i, s, l), f = I = v = null), S = !0, p = !0, o = !0) : p ? (p = !1, o = !0) : $(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = r;
2125
+ if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (b === 63 || b === 58) && he(r))
2126
+ b === 63 ? (p && (Ue(e, u, g, f, I, null, i, s, l), f = I = v = null), S = !0, p = !0, o = !0) : p ? (p = !1, o = !0) : j(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = r;
2024
2127
  else {
2025
- if (i = e.line, s = e.lineStart, l = e.position, !Re(e, t, Ln, !1, !0))
2128
+ if (i = e.line, s = e.lineStart, l = e.position, !Re(e, t, Dn, !1, !0))
2026
2129
  break;
2027
2130
  if (e.line === a) {
2028
- for (b = e.input.charCodeAt(e.position); Ke(b); )
2131
+ for (b = e.input.charCodeAt(e.position); Ne(b); )
2029
2132
  b = e.input.charCodeAt(++e.position);
2030
2133
  if (b === 58)
2031
- b = e.input.charCodeAt(++e.position), he(b) || $(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Ue(e, u, m, f, I, null, i, s, l), f = I = v = null), S = !0, p = !1, o = !1, f = e.tag, I = e.result;
2134
+ b = e.input.charCodeAt(++e.position), he(b) || j(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Ue(e, u, g, f, I, null, i, s, l), f = I = v = null), S = !0, p = !1, o = !1, f = e.tag, I = e.result;
2032
2135
  else if (S)
2033
- $(e, "can not read an implicit mapping pair; a colon is missed");
2136
+ j(e, "can not read an implicit mapping pair; a colon is missed");
2034
2137
  else
2035
2138
  return e.tag = c, e.anchor = d, !0;
2036
2139
  } else if (S)
2037
- $(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2140
+ j(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2038
2141
  else
2039
2142
  return e.tag = c, e.anchor = d, !0;
2040
2143
  }
2041
- if ((e.line === a || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Re(e, n, at, !0, o) && (p ? I = e.result : v = e.result), p || (Ue(e, u, m, f, I, v, i, s, l), f = I = v = null), oe(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > n) && b !== 0)
2042
- $(e, "bad indentation of a mapping entry");
2144
+ if ((e.line === a || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Re(e, n, at, !0, o) && (p ? I = e.result : v = e.result), p || (Ue(e, u, g, f, I, v, i, s, l), f = I = v = null), ae(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > n) && b !== 0)
2145
+ j(e, "bad indentation of a mapping entry");
2043
2146
  else if (e.lineIndent < n)
2044
2147
  break;
2045
2148
  }
2046
- return p && Ue(e, u, m, f, I, null, i, s, l), S && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), S;
2149
+ return p && Ue(e, u, g, f, I, null, i, s, l), S && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), S;
2047
2150
  }
2048
- function Da(e) {
2151
+ function ei(e) {
2049
2152
  var n, t = !1, r = !1, o, a, i;
2050
2153
  if (i = e.input.charCodeAt(e.position), i !== 33)
2051
2154
  return !1;
2052
- if (e.tag !== null && $(e, "duplication of a tag property"), i = e.input.charCodeAt(++e.position), i === 60 ? (t = !0, i = e.input.charCodeAt(++e.position)) : i === 33 ? (r = !0, o = "!!", i = e.input.charCodeAt(++e.position)) : o = "!", n = e.position, t) {
2155
+ if (e.tag !== null && j(e, "duplication of a tag property"), i = e.input.charCodeAt(++e.position), i === 60 ? (t = !0, i = e.input.charCodeAt(++e.position)) : i === 33 ? (r = !0, o = "!!", i = e.input.charCodeAt(++e.position)) : o = "!", n = e.position, t) {
2053
2156
  do
2054
2157
  i = e.input.charCodeAt(++e.position);
2055
2158
  while (i !== 0 && i !== 62);
2056
- e.position < e.length ? (a = e.input.slice(n, e.position), i = e.input.charCodeAt(++e.position)) : $(e, "unexpected end of the stream within a verbatim tag");
2159
+ e.position < e.length ? (a = e.input.slice(n, e.position), i = e.input.charCodeAt(++e.position)) : j(e, "unexpected end of the stream within a verbatim tag");
2057
2160
  } else {
2058
2161
  for (; i !== 0 && !he(i); )
2059
- i === 33 && (r ? $(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(n - 1, e.position + 1), Un.test(o) || $(e, "named tag handle cannot contain such characters"), r = !0, n = e.position + 1)), i = e.input.charCodeAt(++e.position);
2060
- a = e.input.slice(n, e.position), Oa.test(a) && $(e, "tag suffix cannot contain flow indicator characters");
2162
+ i === 33 && (r ? j(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(n - 1, e.position + 1), zn.test(o) || j(e, "named tag handle cannot contain such characters"), r = !0, n = e.position + 1)), i = e.input.charCodeAt(++e.position);
2163
+ a = e.input.slice(n, e.position), Va.test(a) && j(e, "tag suffix cannot contain flow indicator characters");
2061
2164
  }
2062
- a && !Rn.test(a) && $(e, "tag name cannot contain such characters: " + a);
2165
+ a && !Hn.test(a) && j(e, "tag name cannot contain such characters: " + a);
2063
2166
  try {
2064
2167
  a = decodeURIComponent(a);
2065
2168
  } catch {
2066
- $(e, "tag name is malformed: " + a);
2169
+ j(e, "tag name is malformed: " + a);
2067
2170
  }
2068
- return t ? e.tag = a : Me.call(e.tagMap, o) ? e.tag = e.tagMap[o] + a : o === "!" ? e.tag = "!" + a : o === "!!" ? e.tag = "tag:yaml.org,2002:" + a : $(e, 'undeclared tag handle "' + o + '"'), !0;
2171
+ return t ? e.tag = a : je.call(e.tagMap, o) ? e.tag = e.tagMap[o] + a : o === "!" ? e.tag = "!" + a : o === "!!" ? e.tag = "tag:yaml.org,2002:" + a : j(e, 'undeclared tag handle "' + o + '"'), !0;
2069
2172
  }
2070
- function Ga(e) {
2173
+ function ti(e) {
2071
2174
  var n, t;
2072
2175
  if (t = e.input.charCodeAt(e.position), t !== 38)
2073
2176
  return !1;
2074
- for (e.anchor !== null && $(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !he(t) && !qe(t); )
2177
+ for (e.anchor !== null && j(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !he(t) && !qe(t); )
2075
2178
  t = e.input.charCodeAt(++e.position);
2076
- return e.position === n && $(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
2179
+ return e.position === n && j(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
2077
2180
  }
2078
- function za(e) {
2181
+ function ni(e) {
2079
2182
  var n, t, r;
2080
2183
  if (r = e.input.charCodeAt(e.position), r !== 42)
2081
2184
  return !1;
2082
2185
  for (r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !he(r) && !qe(r); )
2083
2186
  r = e.input.charCodeAt(++e.position);
2084
- return e.position === n && $(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), Me.call(e.anchorMap, t) || $(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], oe(e, !0, -1), !0;
2187
+ return e.position === n && j(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), je.call(e.anchorMap, t) || j(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], ae(e, !0, -1), !0;
2085
2188
  }
2086
2189
  function Re(e, n, t, r, o) {
2087
- var a, i, s, l = 1, c = !1, d = !1, u, m, f, I, v, p;
2088
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = i = s = at === t || qn === t, r && oe(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
2089
- for (; Da(e) || Ga(e); )
2090
- oe(e, !0, -1) ? (c = !0, s = a, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
2091
- if (s && (s = c || o), (l === 1 || at === t) && (ot === t || Ln === t ? v = n : v = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Qt(e, p) || Va(e, p, v)) || Ua(e, v) ? d = !0 : (i && Ra(e, v) || La(e, v) || qa(e, v) ? d = !0 : za(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && $(e, "alias node should not have any properties")) : Pa(e, v, ot === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Qt(e, p))), e.tag === null)
2190
+ var a, i, s, l = 1, c = !1, d = !1, u, g, f, I, v, p;
2191
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = i = s = at === t || Gn === t, r && ae(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
2192
+ for (; ei(e) || ti(e); )
2193
+ ae(e, !0, -1) ? (c = !0, s = a, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
2194
+ if (s && (s = c || o), (l === 1 || at === t) && (ot === t || Dn === t ? v = n : v = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Xt(e, p) || Xa(e, p, v)) || Za(e, v) ? d = !0 : (i && Qa(e, v) || Ya(e, v) || Wa(e, v) ? d = !0 : ni(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && j(e, "alias node should not have any properties")) : Ja(e, v, ot === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Xt(e, p))), e.tag === null)
2092
2195
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2093
2196
  else if (e.tag === "?") {
2094
- for (e.result !== null && e.kind !== "scalar" && $(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, m = e.implicitTypes.length; u < m; u += 1)
2197
+ for (e.result !== null && e.kind !== "scalar" && j(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, g = e.implicitTypes.length; u < g; u += 1)
2095
2198
  if (I = e.implicitTypes[u], I.resolve(e.result)) {
2096
2199
  e.result = I.construct(e.result), e.tag = I.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2097
2200
  break;
2098
2201
  }
2099
2202
  } else if (e.tag !== "!") {
2100
- if (Me.call(e.typeMap[e.kind || "fallback"], e.tag))
2203
+ if (je.call(e.typeMap[e.kind || "fallback"], e.tag))
2101
2204
  I = e.typeMap[e.kind || "fallback"][e.tag];
2102
2205
  else
2103
- for (I = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, m = f.length; u < m; u += 1)
2206
+ for (I = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, g = f.length; u < g; u += 1)
2104
2207
  if (e.tag.slice(0, f[u].tag.length) === f[u].tag) {
2105
2208
  I = f[u];
2106
2209
  break;
2107
2210
  }
2108
- I || $(e, "unknown tag !<" + e.tag + ">"), e.result !== null && I.kind !== e.kind && $(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + I.kind + '", not "' + e.kind + '"'), I.resolve(e.result, e.tag) ? (e.result = I.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : $(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2211
+ I || j(e, "unknown tag !<" + e.tag + ">"), e.result !== null && I.kind !== e.kind && j(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + I.kind + '", not "' + e.kind + '"'), I.resolve(e.result, e.tag) ? (e.result = I.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : j(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2109
2212
  }
2110
2213
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
2111
2214
  }
2112
- function Ha(e) {
2215
+ function ri(e) {
2113
2216
  var n = e.position, t, r, o, a = !1, i;
2114
- for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (i = e.input.charCodeAt(e.position)) !== 0 && (oe(e, !0, -1), i = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || i !== 37)); ) {
2217
+ for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (i = e.input.charCodeAt(e.position)) !== 0 && (ae(e, !0, -1), i = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || i !== 37)); ) {
2115
2218
  for (a = !0, i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !he(i); )
2116
2219
  i = e.input.charCodeAt(++e.position);
2117
- for (r = e.input.slice(t, e.position), o = [], r.length < 1 && $(e, "directive name must not be less than one character in length"); i !== 0; ) {
2118
- for (; Ke(i); )
2220
+ for (r = e.input.slice(t, e.position), o = [], r.length < 1 && j(e, "directive name must not be less than one character in length"); i !== 0; ) {
2221
+ for (; Ne(i); )
2119
2222
  i = e.input.charCodeAt(++e.position);
2120
2223
  if (i === 35) {
2121
2224
  do
@@ -2129,47 +2232,47 @@ function Ha(e) {
2129
2232
  i = e.input.charCodeAt(++e.position);
2130
2233
  o.push(e.input.slice(t, e.position));
2131
2234
  }
2132
- i !== 0 && jt(e), Me.call(Yt, r) ? Yt[r](e, r, o) : it(e, 'unknown document directive "' + r + '"');
2235
+ i !== 0 && Mt(e), je.call(Zt, r) ? Zt[r](e, r, o) : it(e, 'unknown document directive "' + r + '"');
2133
2236
  }
2134
- if (oe(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, oe(e, !0, -1)) : a && $(e, "directives end mark is expected"), Re(e, e.lineIndent - 1, at, !1, !0), oe(e, !0, -1), e.checkLineBreaks && Ma.test(e.input.slice(n, e.position)) && it(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && dt(e)) {
2135
- e.input.charCodeAt(e.position) === 46 && (e.position += 3, oe(e, !0, -1));
2237
+ if (ae(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, ae(e, !0, -1)) : a && j(e, "directives end mark is expected"), Re(e, e.lineIndent - 1, at, !1, !0), ae(e, !0, -1), e.checkLineBreaks && Ua.test(e.input.slice(n, e.position)) && it(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && dt(e)) {
2238
+ e.input.charCodeAt(e.position) === 46 && (e.position += 3, ae(e, !0, -1));
2136
2239
  return;
2137
2240
  }
2138
2241
  if (e.position < e.length - 1)
2139
- $(e, "end of the stream or a document separator is expected");
2242
+ j(e, "end of the stream or a document separator is expected");
2140
2243
  else
2141
2244
  return;
2142
2245
  }
2143
- function zn(e, n) {
2246
+ function Zn(e, n) {
2144
2247
  e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
2145
2248
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
2146
- var t = new Ba(e, n), r = e.indexOf("\0");
2147
- for (r !== -1 && (t.position = r, $(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
2249
+ var t = new Ha(e, n), r = e.indexOf("\0");
2250
+ for (r !== -1 && (t.position = r, j(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
2148
2251
  t.lineIndent += 1, t.position += 1;
2149
2252
  for (; t.position < t.length - 1; )
2150
- Ha(t);
2253
+ ri(t);
2151
2254
  return t.documents;
2152
2255
  }
2153
- function Ja(e, n, t) {
2256
+ function oi(e, n, t) {
2154
2257
  n !== null && typeof n == "object" && typeof t > "u" && (t = n, n = null);
2155
- var r = zn(e, t);
2258
+ var r = Zn(e, t);
2156
2259
  if (typeof n != "function")
2157
2260
  return r;
2158
2261
  for (var o = 0, a = r.length; o < a; o += 1)
2159
2262
  n(r[o]);
2160
2263
  }
2161
- function Wa(e, n) {
2162
- var t = zn(e, n);
2264
+ function ai(e, n) {
2265
+ var t = Zn(e, n);
2163
2266
  if (t.length !== 0) {
2164
2267
  if (t.length === 1)
2165
2268
  return t[0];
2166
2269
  throw new me("expected a single document in the stream, but found more");
2167
2270
  }
2168
2271
  }
2169
- var Ya = Ja, Za = Wa, Hn = {
2170
- loadAll: Ya,
2171
- load: Za
2172
- }, Jn = Object.prototype.toString, Wn = Object.prototype.hasOwnProperty, Ot = 65279, Qa = 9, We = 10, Xa = 13, ei = 32, ti = 33, ni = 34, bt = 35, ri = 37, oi = 38, ai = 39, ii = 42, Yn = 44, si = 45, st = 58, li = 61, ui = 62, ci = 63, di = 64, Zn = 91, Qn = 93, pi = 96, Xn = 123, fi = 124, er = 125, fe = {};
2272
+ var ii = oi, si = ai, Qn = {
2273
+ loadAll: ii,
2274
+ load: si
2275
+ }, Xn = Object.prototype.toString, er = Object.prototype.hasOwnProperty, Et = 65279, li = 9, Ye = 10, ui = 13, ci = 32, di = 33, pi = 34, bt = 35, fi = 37, mi = 38, gi = 39, yi = 42, tr = 44, hi = 45, st = 58, vi = 61, bi = 62, Ci = 63, ki = 64, nr = 91, rr = 93, _i = 96, or = 123, wi = 124, ar = 125, fe = {};
2173
2276
  fe[0] = "\\0";
2174
2277
  fe[7] = "\\a";
2175
2278
  fe[8] = "\\b";
@@ -2185,7 +2288,7 @@ fe[133] = "\\N";
2185
2288
  fe[160] = "\\_";
2186
2289
  fe[8232] = "\\L";
2187
2290
  fe[8233] = "\\P";
2188
- var mi = [
2291
+ var Ii = [
2189
2292
  "y",
2190
2293
  "Y",
2191
2294
  "yes",
@@ -2202,16 +2305,16 @@ var mi = [
2202
2305
  "off",
2203
2306
  "Off",
2204
2307
  "OFF"
2205
- ], gi = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2206
- function yi(e, n) {
2308
+ ], Ai = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2309
+ function Si(e, n) {
2207
2310
  var t, r, o, a, i, s, l;
2208
2311
  if (n === null)
2209
2312
  return {};
2210
2313
  for (t = {}, r = Object.keys(n), o = 0, a = r.length; o < a; o += 1)
2211
- i = r[o], s = String(n[i]), i.slice(0, 2) === "!!" && (i = "tag:yaml.org,2002:" + i.slice(2)), l = e.compiledTypeMap.fallback[i], l && Wn.call(l.styleAliases, s) && (s = l.styleAliases[s]), t[i] = s;
2314
+ i = r[o], s = String(n[i]), i.slice(0, 2) === "!!" && (i = "tag:yaml.org,2002:" + i.slice(2)), l = e.compiledTypeMap.fallback[i], l && er.call(l.styleAliases, s) && (s = l.styleAliases[s]), t[i] = s;
2212
2315
  return t;
2213
2316
  }
2214
- function hi(e) {
2317
+ function xi(e) {
2215
2318
  var n, t, r;
2216
2319
  if (n = e.toString(16).toUpperCase(), e <= 255)
2217
2320
  t = "x", r = 2;
@@ -2223,22 +2326,22 @@ function hi(e) {
2223
2326
  throw new me("code point within a string may not be greater than 0xFFFFFFFF");
2224
2327
  return "\\" + t + se.repeat("0", r - n.length) + n;
2225
2328
  }
2226
- var vi = 1, Ye = 2;
2227
- function bi(e) {
2228
- this.schema = e.schema || $t, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = se.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = yi(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Ye : vi, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
2329
+ var Ti = 1, We = 2;
2330
+ function $i(e) {
2331
+ this.schema = e.schema || $t, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = se.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Si(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? We : Ti, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
2229
2332
  }
2230
- function Xt(e, n) {
2333
+ function en(e, n) {
2231
2334
  for (var t = se.repeat(" ", n), r = 0, o = -1, a = "", i, s = e.length; r < s; )
2232
2335
  o = e.indexOf(`
2233
2336
  `, r), o === -1 ? (i = e.slice(r), r = s) : (i = e.slice(r, o + 1), r = o + 1), i.length && i !== `
2234
2337
  ` && (a += t), a += i;
2235
2338
  return a;
2236
2339
  }
2237
- function kt(e, n) {
2340
+ function Ct(e, n) {
2238
2341
  return `
2239
2342
  ` + se.repeat(" ", e.indent * n);
2240
2343
  }
2241
- function ki(e, n) {
2344
+ function Mi(e, n) {
2242
2345
  var t, r, o;
2243
2346
  for (t = 0, r = e.implicitTypes.length; t < r; t += 1)
2244
2347
  if (o = e.implicitTypes[t], o.resolve(n))
@@ -2246,71 +2349,71 @@ function ki(e, n) {
2246
2349
  return !1;
2247
2350
  }
2248
2351
  function lt(e) {
2249
- return e === ei || e === Qa;
2352
+ return e === ci || e === li;
2250
2353
  }
2251
2354
  function Ze(e) {
2252
- return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Ot || 65536 <= e && e <= 1114111;
2355
+ return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Et || 65536 <= e && e <= 1114111;
2253
2356
  }
2254
- function en(e) {
2255
- return Ze(e) && e !== Ot && e !== Xa && e !== We;
2357
+ function tn(e) {
2358
+ return Ze(e) && e !== Et && e !== ui && e !== Ye;
2256
2359
  }
2257
- function tn(e, n, t) {
2258
- var r = en(e), o = r && !lt(e);
2360
+ function nn(e, n, t) {
2361
+ var r = tn(e), o = r && !lt(e);
2259
2362
  return (
2260
2363
  // ns-plain-safe
2261
2364
  (t ? (
2262
2365
  // c = flow-in
2263
2366
  r
2264
- ) : r && e !== Yn && e !== Zn && e !== Qn && e !== Xn && e !== er) && e !== bt && !(n === st && !o) || en(n) && !lt(n) && e === bt || n === st && o
2367
+ ) : r && e !== tr && e !== nr && e !== rr && e !== or && e !== ar) && e !== bt && !(n === st && !o) || tn(n) && !lt(n) && e === bt || n === st && o
2265
2368
  );
2266
2369
  }
2267
- function Ci(e) {
2268
- return Ze(e) && e !== Ot && !lt(e) && e !== si && e !== ci && e !== st && e !== Yn && e !== Zn && e !== Qn && e !== Xn && e !== er && e !== bt && e !== oi && e !== ii && e !== ti && e !== fi && e !== li && e !== ui && e !== ai && e !== ni && e !== ri && e !== di && e !== pi;
2370
+ function ji(e) {
2371
+ return Ze(e) && e !== Et && !lt(e) && e !== hi && e !== Ci && e !== st && e !== tr && e !== nr && e !== rr && e !== or && e !== ar && e !== bt && e !== mi && e !== yi && e !== di && e !== wi && e !== vi && e !== bi && e !== gi && e !== pi && e !== fi && e !== ki && e !== _i;
2269
2372
  }
2270
- function _i(e) {
2373
+ function Ei(e) {
2271
2374
  return !lt(e) && e !== st;
2272
2375
  }
2273
- function ze(e, n) {
2376
+ function He(e, n) {
2274
2377
  var t = e.charCodeAt(n), r;
2275
2378
  return t >= 55296 && t <= 56319 && n + 1 < e.length && (r = e.charCodeAt(n + 1), r >= 56320 && r <= 57343) ? (t - 55296) * 1024 + r - 56320 + 65536 : t;
2276
2379
  }
2277
- function tr(e) {
2380
+ function ir(e) {
2278
2381
  var n = /^\n* /;
2279
2382
  return n.test(e);
2280
2383
  }
2281
- var nr = 1, Ct = 2, rr = 3, or = 4, Le = 5;
2282
- function wi(e, n, t, r, o, a, i, s) {
2283
- var l, c = 0, d = null, u = !1, m = !1, f = r !== -1, I = -1, v = Ci(ze(e, 0)) && _i(ze(e, e.length - 1));
2384
+ var sr = 1, kt = 2, lr = 3, ur = 4, Le = 5;
2385
+ function Oi(e, n, t, r, o, a, i, s) {
2386
+ var l, c = 0, d = null, u = !1, g = !1, f = r !== -1, I = -1, v = ji(He(e, 0)) && Ei(He(e, e.length - 1));
2284
2387
  if (n || i)
2285
2388
  for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
2286
- if (c = ze(e, l), !Ze(c))
2389
+ if (c = He(e, l), !Ze(c))
2287
2390
  return Le;
2288
- v = v && tn(c, d, s), d = c;
2391
+ v = v && nn(c, d, s), d = c;
2289
2392
  }
2290
2393
  else {
2291
2394
  for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
2292
- if (c = ze(e, l), c === We)
2293
- u = !0, f && (m = m || // Foldable line = too long, and not more-indented.
2395
+ if (c = He(e, l), c === Ye)
2396
+ u = !0, f && (g = g || // Foldable line = too long, and not more-indented.
2294
2397
  l - I - 1 > r && e[I + 1] !== " ", I = l);
2295
2398
  else if (!Ze(c))
2296
2399
  return Le;
2297
- v = v && tn(c, d, s), d = c;
2400
+ v = v && nn(c, d, s), d = c;
2298
2401
  }
2299
- m = m || f && l - I - 1 > r && e[I + 1] !== " ";
2402
+ g = g || f && l - I - 1 > r && e[I + 1] !== " ";
2300
2403
  }
2301
- return !u && !m ? v && !i && !o(e) ? nr : a === Ye ? Le : Ct : t > 9 && tr(e) ? Le : i ? a === Ye ? Le : Ct : m ? or : rr;
2404
+ return !u && !g ? v && !i && !o(e) ? sr : a === We ? Le : kt : t > 9 && ir(e) ? Le : i ? a === We ? Le : kt : g ? ur : lr;
2302
2405
  }
2303
- function Ii(e, n, t, r, o) {
2406
+ function Ni(e, n, t, r, o) {
2304
2407
  e.dump = function() {
2305
2408
  if (n.length === 0)
2306
- return e.quotingType === Ye ? '""' : "''";
2307
- if (!e.noCompatMode && (mi.indexOf(n) !== -1 || gi.test(n)))
2308
- return e.quotingType === Ye ? '"' + n + '"' : "'" + n + "'";
2409
+ return e.quotingType === We ? '""' : "''";
2410
+ if (!e.noCompatMode && (Ii.indexOf(n) !== -1 || Ai.test(n)))
2411
+ return e.quotingType === We ? '"' + n + '"' : "'" + n + "'";
2309
2412
  var a = e.indent * Math.max(1, t), i = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), s = r || e.flowLevel > -1 && t >= e.flowLevel;
2310
2413
  function l(c) {
2311
- return ki(e, c);
2414
+ return Mi(e, c);
2312
2415
  }
2313
- switch (wi(
2416
+ switch (Oi(
2314
2417
  n,
2315
2418
  s,
2316
2419
  e.indent,
@@ -2320,47 +2423,47 @@ function Ii(e, n, t, r, o) {
2320
2423
  e.forceQuotes && !r,
2321
2424
  o
2322
2425
  )) {
2323
- case nr:
2426
+ case sr:
2324
2427
  return n;
2325
- case Ct:
2428
+ case kt:
2326
2429
  return "'" + n.replace(/'/g, "''") + "'";
2327
- case rr:
2328
- return "|" + nn(n, e.indent) + rn(Xt(n, a));
2329
- case or:
2330
- return ">" + nn(n, e.indent) + rn(Xt(Ai(n, i), a));
2430
+ case lr:
2431
+ return "|" + rn(n, e.indent) + on(en(n, a));
2432
+ case ur:
2433
+ return ">" + rn(n, e.indent) + on(en(Fi(n, i), a));
2331
2434
  case Le:
2332
- return '"' + Si(n) + '"';
2435
+ return '"' + Ki(n) + '"';
2333
2436
  default:
2334
2437
  throw new me("impossible error: invalid scalar style");
2335
2438
  }
2336
2439
  }();
2337
2440
  }
2338
- function nn(e, n) {
2339
- var t = tr(e) ? String(n) : "", r = e[e.length - 1] === `
2441
+ function rn(e, n) {
2442
+ var t = ir(e) ? String(n) : "", r = e[e.length - 1] === `
2340
2443
  `, o = r && (e[e.length - 2] === `
2341
2444
  ` || e === `
2342
2445
  `), a = o ? "+" : r ? "" : "-";
2343
2446
  return t + a + `
2344
2447
  `;
2345
2448
  }
2346
- function rn(e) {
2449
+ function on(e) {
2347
2450
  return e[e.length - 1] === `
2348
2451
  ` ? e.slice(0, -1) : e;
2349
2452
  }
2350
- function Ai(e, n) {
2453
+ function Fi(e, n) {
2351
2454
  for (var t = /(\n+)([^\n]*)/g, r = function() {
2352
2455
  var c = e.indexOf(`
2353
2456
  `);
2354
- return c = c !== -1 ? c : e.length, t.lastIndex = c, on(e.slice(0, c), n);
2457
+ return c = c !== -1 ? c : e.length, t.lastIndex = c, an(e.slice(0, c), n);
2355
2458
  }(), o = e[0] === `
2356
2459
  ` || e[0] === " ", a, i; i = t.exec(e); ) {
2357
2460
  var s = i[1], l = i[2];
2358
2461
  a = l[0] === " ", r += s + (!o && !a && l !== "" ? `
2359
- ` : "") + on(l, n), o = a;
2462
+ ` : "") + an(l, n), o = a;
2360
2463
  }
2361
2464
  return r;
2362
2465
  }
2363
- function on(e, n) {
2466
+ function an(e, n) {
2364
2467
  if (e === "" || e[0] === " ")
2365
2468
  return e;
2366
2469
  for (var t = / [^ ]/g, r, o = 0, a, i = 0, s = 0, l = ""; r = t.exec(e); )
@@ -2370,31 +2473,31 @@ function on(e, n) {
2370
2473
  `, e.length - o > n && i > o ? l += e.slice(o, i) + `
2371
2474
  ` + e.slice(i + 1) : l += e.slice(o), l.slice(1);
2372
2475
  }
2373
- function Si(e) {
2476
+ function Ki(e) {
2374
2477
  for (var n = "", t = 0, r, o = 0; o < e.length; t >= 65536 ? o += 2 : o++)
2375
- t = ze(e, o), r = fe[t], !r && Ze(t) ? (n += e[o], t >= 65536 && (n += e[o + 1])) : n += r || hi(t);
2478
+ t = He(e, o), r = fe[t], !r && Ze(t) ? (n += e[o], t >= 65536 && (n += e[o + 1])) : n += r || xi(t);
2376
2479
  return n;
2377
2480
  }
2378
- function xi(e, n, t) {
2481
+ function Bi(e, n, t) {
2379
2482
  var r = "", o = e.tag, a, i, s;
2380
2483
  for (a = 0, i = t.length; a < i; a += 1)
2381
2484
  s = t[a], e.replacer && (s = e.replacer.call(t, String(a), s)), (Se(e, n, s, !1, !1) || typeof s > "u" && Se(e, n, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
2382
2485
  e.tag = o, e.dump = "[" + r + "]";
2383
2486
  }
2384
- function an(e, n, t, r) {
2487
+ function sn(e, n, t, r) {
2385
2488
  var o = "", a = e.tag, i, s, l;
2386
2489
  for (i = 0, s = t.length; i < s; i += 1)
2387
- l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Se(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Se(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o += kt(e, n)), e.dump && We === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
2490
+ l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Se(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Se(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o += Ct(e, n)), e.dump && Ye === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
2388
2491
  e.tag = a, e.dump = o || "[]";
2389
2492
  }
2390
- function Ti(e, n, t) {
2493
+ function Pi(e, n, t) {
2391
2494
  var r = "", o = e.tag, a = Object.keys(t), i, s, l, c, d;
2392
2495
  for (i = 0, s = a.length; i < s; i += 1)
2393
2496
  d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = a[i], c = t[l], e.replacer && (c = e.replacer.call(t, l, c)), Se(e, n, l, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Se(e, n, c, !1, !1) && (d += e.dump, r += d));
2394
2497
  e.tag = o, e.dump = "{" + r + "}";
2395
2498
  }
2396
- function $i(e, n, t, r) {
2397
- var o = "", a = e.tag, i = Object.keys(t), s, l, c, d, u, m;
2499
+ function Li(e, n, t, r) {
2500
+ var o = "", a = e.tag, i = Object.keys(t), s, l, c, d, u, g;
2398
2501
  if (e.sortKeys === !0)
2399
2502
  i.sort();
2400
2503
  else if (typeof e.sortKeys == "function")
@@ -2402,17 +2505,17 @@ function $i(e, n, t, r) {
2402
2505
  else if (e.sortKeys)
2403
2506
  throw new me("sortKeys must be a boolean or a function");
2404
2507
  for (s = 0, l = i.length; s < l; s += 1)
2405
- m = "", (!r || o !== "") && (m += kt(e, n)), c = i[s], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), Se(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && We === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, u && (m += kt(e, n)), Se(e, n + 1, d, !0, u) && (e.dump && We === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, o += m));
2508
+ g = "", (!r || o !== "") && (g += Ct(e, n)), c = i[s], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), Se(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Ye === e.dump.charCodeAt(0) ? g += "?" : g += "? "), g += e.dump, u && (g += Ct(e, n)), Se(e, n + 1, d, !0, u) && (e.dump && Ye === e.dump.charCodeAt(0) ? g += ":" : g += ": ", g += e.dump, o += g));
2406
2509
  e.tag = a, e.dump = o || "{}";
2407
2510
  }
2408
- function sn(e, n, t) {
2511
+ function ln(e, n, t) {
2409
2512
  var r, o, a, i, s, l;
2410
2513
  for (o = t ? e.explicitTypes : e.implicitTypes, a = 0, i = o.length; a < i; a += 1)
2411
2514
  if (s = o[a], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof n == "object" && n instanceof s.instanceOf) && (!s.predicate || s.predicate(n))) {
2412
2515
  if (t ? s.multi && s.representName ? e.tag = s.representName(n) : e.tag = s.tag : e.tag = "?", s.represent) {
2413
- if (l = e.styleMap[s.tag] || s.defaultStyle, Jn.call(s.represent) === "[object Function]")
2516
+ if (l = e.styleMap[s.tag] || s.defaultStyle, Xn.call(s.represent) === "[object Function]")
2414
2517
  r = s.represent(n, l);
2415
- else if (Wn.call(s.represent, l))
2518
+ else if (er.call(s.represent, l))
2416
2519
  r = s.represent[l](n, l);
2417
2520
  else
2418
2521
  throw new me("!<" + s.tag + '> tag resolver accepts not "' + l + '" style');
@@ -2423,19 +2526,19 @@ function sn(e, n, t) {
2423
2526
  return !1;
2424
2527
  }
2425
2528
  function Se(e, n, t, r, o, a, i) {
2426
- e.tag = null, e.dump = t, sn(e, t, !1) || sn(e, t, !0);
2427
- var s = Jn.call(e.dump), l = r, c;
2529
+ e.tag = null, e.dump = t, ln(e, t, !1) || ln(e, t, !0);
2530
+ var s = Xn.call(e.dump), l = r, c;
2428
2531
  r && (r = e.flowLevel < 0 || e.flowLevel > n);
2429
- var d = s === "[object Object]" || s === "[object Array]", u, m;
2430
- if (d && (u = e.duplicates.indexOf(t), m = u !== -1), (e.tag !== null && e.tag !== "?" || m || e.indent !== 2 && n > 0) && (o = !1), m && e.usedDuplicates[u])
2532
+ var d = s === "[object Object]" || s === "[object Array]", u, g;
2533
+ if (d && (u = e.duplicates.indexOf(t), g = u !== -1), (e.tag !== null && e.tag !== "?" || g || e.indent !== 2 && n > 0) && (o = !1), g && e.usedDuplicates[u])
2431
2534
  e.dump = "*ref_" + u;
2432
2535
  else {
2433
- if (d && m && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
2434
- r && Object.keys(e.dump).length !== 0 ? ($i(e, n, e.dump, o), m && (e.dump = "&ref_" + u + e.dump)) : (Ti(e, n, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2536
+ if (d && g && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
2537
+ r && Object.keys(e.dump).length !== 0 ? (Li(e, n, e.dump, o), g && (e.dump = "&ref_" + u + e.dump)) : (Pi(e, n, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
2435
2538
  else if (s === "[object Array]")
2436
- r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? an(e, n - 1, e.dump, o) : an(e, n, e.dump, o), m && (e.dump = "&ref_" + u + e.dump)) : (xi(e, n, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2539
+ r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? sn(e, n - 1, e.dump, o) : sn(e, n, e.dump, o), g && (e.dump = "&ref_" + u + e.dump)) : (Bi(e, n, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
2437
2540
  else if (s === "[object String]")
2438
- e.tag !== "?" && Ii(e, e.dump, n, a, l);
2541
+ e.tag !== "?" && Ni(e, e.dump, n, a, l);
2439
2542
  else {
2440
2543
  if (s === "[object Undefined]" || e.skipInvalid)
2441
2544
  return !1;
@@ -2447,7 +2550,7 @@ function Se(e, n, t, r, o, a, i) {
2447
2550
  }
2448
2551
  return !0;
2449
2552
  }
2450
- function ji(e, n) {
2553
+ function qi(e, n) {
2451
2554
  var t = [], r = [], o, a;
2452
2555
  for (_t(e, t, r), o = 0, a = r.length; o < a; o += 1)
2453
2556
  n.duplicates.push(t[r[o]]);
@@ -2465,65 +2568,65 @@ function _t(e, n, t) {
2465
2568
  for (r = Object.keys(e), o = 0, a = r.length; o < a; o += 1)
2466
2569
  _t(e[r[o]], n, t);
2467
2570
  }
2468
- function Mi(e, n) {
2571
+ function Ui(e, n) {
2469
2572
  n = n || {};
2470
- var t = new bi(n);
2471
- t.noRefs || ji(e, t);
2573
+ var t = new $i(n);
2574
+ t.noRefs || qi(e, t);
2472
2575
  var r = e;
2473
2576
  return t.replacer && (r = t.replacer.call({ "": r }, "", r)), Se(t, 0, r, !0, !0) ? t.dump + `
2474
2577
  ` : "";
2475
2578
  }
2476
- var Oi = Mi, Ei = {
2477
- dump: Oi
2579
+ var Vi = Ui, Ri = {
2580
+ dump: Vi
2478
2581
  };
2479
- function Et(e, n) {
2582
+ function Ot(e, n) {
2480
2583
  return function() {
2481
2584
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
2482
2585
  };
2483
2586
  }
2484
- var Ki = de, Fi = kn, Ni = In, Bi = $n, Pi = jn, Li = $t, qi = Hn.load, Ui = Hn.loadAll, Ri = Ei.dump, Vi = me, Di = {
2485
- binary: Fn,
2486
- float: Tn,
2487
- map: wn,
2488
- null: An,
2489
- pairs: Bn,
2490
- set: Pn,
2491
- timestamp: En,
2492
- bool: Sn,
2493
- int: xn,
2494
- merge: Kn,
2495
- omap: Nn,
2496
- seq: _n,
2497
- str: Cn
2498
- }, Gi = Et("safeLoad", "load"), zi = Et("safeLoadAll", "loadAll"), Hi = Et("safeDump", "dump"), Ji = {
2499
- Type: Ki,
2500
- Schema: Fi,
2501
- FAILSAFE_SCHEMA: Ni,
2502
- JSON_SCHEMA: Bi,
2503
- CORE_SCHEMA: Pi,
2504
- DEFAULT_SCHEMA: Li,
2505
- load: qi,
2506
- loadAll: Ui,
2507
- dump: Ri,
2508
- YAMLException: Vi,
2509
- types: Di,
2510
- safeLoad: Gi,
2511
- safeLoadAll: zi,
2512
- safeDump: Hi
2587
+ var Di = de, Gi = An, zi = $n, Hi = Nn, Ji = Fn, Yi = $t, Wi = Qn.load, Zi = Qn.loadAll, Qi = Ri.dump, Xi = me, es = {
2588
+ binary: qn,
2589
+ float: On,
2590
+ map: Tn,
2591
+ null: Mn,
2592
+ pairs: Vn,
2593
+ set: Rn,
2594
+ timestamp: Pn,
2595
+ bool: jn,
2596
+ int: En,
2597
+ merge: Ln,
2598
+ omap: Un,
2599
+ seq: xn,
2600
+ str: Sn
2601
+ }, ts = Ot("safeLoad", "load"), ns = Ot("safeLoadAll", "loadAll"), rs = Ot("safeDump", "dump"), os = {
2602
+ Type: Di,
2603
+ Schema: Gi,
2604
+ FAILSAFE_SCHEMA: zi,
2605
+ JSON_SCHEMA: Hi,
2606
+ CORE_SCHEMA: Ji,
2607
+ DEFAULT_SCHEMA: Yi,
2608
+ load: Wi,
2609
+ loadAll: Zi,
2610
+ dump: Qi,
2611
+ YAMLException: Xi,
2612
+ types: es,
2613
+ safeLoad: ts,
2614
+ safeLoadAll: ns,
2615
+ safeDump: rs
2513
2616
  };
2514
- const Wi = {
2617
+ const as = {
2515
2618
  key: 0,
2516
2619
  class: "config-card-display-form"
2517
- }, Yi = ["data-testid"], Zi = {
2620
+ }, is = ["data-testid"], ss = {
2518
2621
  key: 0,
2519
2622
  class: "config-card-prop-section-title"
2520
- }, Qi = {
2623
+ }, ls = {
2521
2624
  key: 1,
2522
2625
  class: "config-card-display-json"
2523
- }, Xi = {
2626
+ }, us = {
2524
2627
  key: 2,
2525
2628
  class: "config-card-display-yaml"
2526
- }, es = /* @__PURE__ */ ae({
2629
+ }, cs = /* @__PURE__ */ re({
2527
2630
  __name: "ConfigCardDisplay",
2528
2631
  props: {
2529
2632
  propertyCollections: {
@@ -2549,30 +2652,30 @@ const Wi = {
2549
2652
  }
2550
2653
  },
2551
2654
  setup(e) {
2552
- const n = e, t = ut(), { i18n: { t: r } } = ue.useI18n(), o = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), a = E(""), i = E("");
2655
+ const n = e, t = ut(), { i18n: { t: r } } = ue.useI18n(), o = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), a = O(""), i = O("");
2553
2656
  return xe(() => n.format, (s) => {
2554
- s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = Ji.dump(n.record));
2657
+ s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = os.dump(n.record));
2555
2658
  }, { immediate: !0 }), (s, l) => {
2556
2659
  const c = q("KCodeBlock");
2557
- return g(), M(ve, null, [
2558
- e.format === "structured" ? (g(), M("div", Wi, [
2559
- (g(!0), M(ve, null, ye(e.propListTypes, (d) => (g(), M("div", {
2660
+ return m(), $(ve, null, [
2661
+ e.format === "structured" ? (m(), $("div", as, [
2662
+ (m(!0), $(ve, null, ye(e.propListTypes, (d) => (m(), $("div", {
2560
2663
  key: `config-card-details-${d}-props`,
2561
2664
  class: Fe(`config-card-details-${d}-props`),
2562
2665
  "data-testid": `config-card-details-${d}-props`
2563
2666
  }, [
2564
- d !== "basic" ? (g(), M("div", Zi, K(d === "advanced" ? y(r)("baseConfigCard.sections.advanced") : y(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2565
- (g(!0), M(ve, null, ye(e.propertyCollections[d], (u) => (g(), V(xt, {
2667
+ d !== "basic" ? (m(), $("div", ss, N(d === "advanced" ? y(r)("baseConfigCard.sections.advanced") : y(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2668
+ (m(!0), $(ve, null, ye(e.propertyCollections[d], (u) => (m(), R(xt, {
2566
2669
  key: u.key,
2567
2670
  item: u
2568
2671
  }, Te({
2569
2672
  label: h(() => [
2570
- Y(s.$slots, `${u.key}-label`, { row: u }, void 0, !0)
2673
+ W(s.$slots, `${u.key}-label`, { row: u }, void 0, !0)
2571
2674
  ]),
2572
- [u.key]: h(({ rowValue: m }) => [
2573
- Y(s.$slots, u.key, {
2675
+ [u.key]: h(({ rowValue: g }) => [
2676
+ W(s.$slots, u.key, {
2574
2677
  row: u,
2575
- rowValue: m
2678
+ rowValue: g
2576
2679
  }, void 0, !0)
2577
2680
  ]),
2578
2681
  _: 2
@@ -2580,14 +2683,14 @@ const Wi = {
2580
2683
  o(u) ? {
2581
2684
  name: "label-tooltip",
2582
2685
  fn: h(() => [
2583
- Y(s.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
2686
+ W(s.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
2584
2687
  ]),
2585
2688
  key: "0"
2586
2689
  } : void 0
2587
2690
  ]), 1032, ["item"]))), 128))
2588
- ], 10, Yi))), 128))
2691
+ ], 10, is))), 128))
2589
2692
  ])) : G("", !0),
2590
- e.format === "json" ? (g(), M("div", Qi, [
2693
+ e.format === "json" ? (m(), $("div", ls, [
2591
2694
  F(c, {
2592
2695
  id: "config-card-codeblock",
2593
2696
  code: a.value,
@@ -2595,7 +2698,7 @@ const Wi = {
2595
2698
  theme: "dark"
2596
2699
  }, null, 8, ["code"])
2597
2700
  ])) : G("", !0),
2598
- e.format === "yaml" ? (g(), M("div", Xi, [
2701
+ e.format === "yaml" ? (m(), $("div", us, [
2599
2702
  F(c, {
2600
2703
  id: "config-card-codeblock",
2601
2704
  code: i.value,
@@ -2606,18 +2709,18 @@ const Wi = {
2606
2709
  ], 64);
2607
2710
  };
2608
2711
  }
2609
- }), ts = /* @__PURE__ */ Ce(es, [["__scopeId", "data-v-6c45e9e4"]]), ln = "24px", ns = (e, n) => {
2712
+ }), ds = /* @__PURE__ */ ke(cs, [["__scopeId", "data-v-6c45e9e4"]]), un = "24px", ps = (e, n) => {
2610
2713
  const t = e.__vccOpts || e;
2611
2714
  for (const [r, o] of n)
2612
2715
  t[r] = o;
2613
2716
  return t;
2614
- }, rs = (e) => (yr("data-v-dd88a2bb"), e = e(), hr(), e), os = ["aria-hidden"], as = {
2717
+ }, fs = (e) => (fn("data-v-dd88a2bb"), e = e(), mn(), e), ms = ["aria-hidden"], gs = {
2615
2718
  key: 0,
2616
2719
  "data-testid": "kui-icon-svg-title"
2617
- }, is = /* @__PURE__ */ rs(() => /* @__PURE__ */ R("path", {
2720
+ }, ys = /* @__PURE__ */ fs(() => /* @__PURE__ */ V("path", {
2618
2721
  d: "M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",
2619
2722
  fill: "currentColor"
2620
- }, null, -1)), ss = /* @__PURE__ */ ae({
2723
+ }, null, -1)), hs = /* @__PURE__ */ re({
2621
2724
  __name: "BookIcon",
2622
2725
  props: {
2623
2726
  /** The accessibility text provided to screen readers */
@@ -2648,7 +2751,7 @@ const Wi = {
2648
2751
  size: {
2649
2752
  type: [Number, String],
2650
2753
  required: !1,
2651
- default: ln,
2754
+ default: un,
2652
2755
  // if setting to the imported const fails, just pass a number of 24 as the default.
2653
2756
  validator: (e) => {
2654
2757
  if (typeof e == "number" && e > 0)
@@ -2669,7 +2772,7 @@ const Wi = {
2669
2772
  }
2670
2773
  },
2671
2774
  setup(e) {
2672
- const n = e, t = j(() => {
2775
+ const n = e, t = T(() => {
2673
2776
  if (typeof n.size == "number" && n.size > 0)
2674
2777
  return `${n.size}px`;
2675
2778
  if (typeof n.size == "string") {
@@ -2677,8 +2780,8 @@ const Wi = {
2677
2780
  if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
2678
2781
  return `${a}px`;
2679
2782
  }
2680
- return ln;
2681
- }), r = j(() => ({
2783
+ return un;
2784
+ }), r = T(() => ({
2682
2785
  boxSizing: "border-box",
2683
2786
  color: n.color,
2684
2787
  display: n.display,
@@ -2686,14 +2789,14 @@ const Wi = {
2686
2789
  lineHeight: "0",
2687
2790
  width: t.value
2688
2791
  }));
2689
- return (o, a) => (g(), V(He(e.as), {
2792
+ return (o, a) => (m(), R(Ve(e.as), {
2690
2793
  "aria-hidden": e.decorative ? "true" : void 0,
2691
2794
  class: "kui-icon book-icon",
2692
2795
  "data-testid": "kui-icon-wrapper-book-icon",
2693
- style: mr(r.value)
2796
+ style: pn(r.value)
2694
2797
  }, {
2695
2798
  default: h(() => [
2696
- (g(), M("svg", {
2799
+ (m(), $("svg", {
2697
2800
  "aria-hidden": e.decorative ? "true" : void 0,
2698
2801
  "data-testid": "kui-icon-svg-book-icon",
2699
2802
  fill: "none",
@@ -2703,23 +2806,23 @@ const Wi = {
2703
2806
  width: "100%",
2704
2807
  xmlns: "http://www.w3.org/2000/svg"
2705
2808
  }, [
2706
- e.title ? (g(), M("title", as, K(e.title), 1)) : G("", !0),
2707
- is
2708
- ], 8, os))
2809
+ e.title ? (m(), $("title", gs, N(e.title), 1)) : G("", !0),
2810
+ ys
2811
+ ], 8, ms))
2709
2812
  ]),
2710
2813
  _: 1
2711
2814
  }, 8, ["aria-hidden", "style"]));
2712
2815
  }
2713
- }), ls = /* @__PURE__ */ ns(ss, [["__scopeId", "data-v-dd88a2bb"]]), us = { "data-testid": "config-card-title" }, cs = { class: "config-card-actions" }, ds = ["href"], ps = {
2816
+ }), vs = /* @__PURE__ */ ps(hs, [["__scopeId", "data-v-dd88a2bb"]]), bs = { "data-testid": "config-card-title" }, Cs = { class: "config-card-actions" }, ks = ["href"], _s = {
2714
2817
  key: 2,
2715
2818
  class: "config-card-details-section"
2716
- }, fs = {
2819
+ }, ws = {
2717
2820
  key: 3,
2718
2821
  class: "config-card-details-section"
2719
- }, ms = ["data-testid"], gs = {
2822
+ }, Is = ["data-testid"], As = {
2720
2823
  key: 0,
2721
2824
  class: "config-card-prop-section-title"
2722
- }, ys = /* @__PURE__ */ ae({
2825
+ }, Ss = /* @__PURE__ */ re({
2723
2826
  __name: "EntityBaseConfigCard",
2724
2827
  props: {
2725
2828
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2810,9 +2913,9 @@ const Wi = {
2810
2913
  label: "YAML",
2811
2914
  value: "yaml"
2812
2915
  }
2813
- ], d = E("structured"), u = (w) => {
2916
+ ], d = O("structured"), u = (w) => {
2814
2917
  d.value = w == null ? void 0 : w.value;
2815
- }, m = {
2918
+ }, g = {
2816
2919
  id: {
2817
2920
  type: te.ID,
2818
2921
  label: a("baseConfigCard.commonFields.id_label"),
@@ -2846,21 +2949,21 @@ const Wi = {
2846
2949
  // the last property displayed
2847
2950
  section: be.Basic
2848
2951
  }
2849
- }, f = E(!1), I = E(!1), v = E(""), p = E(), S = j(() => {
2850
- var w, N, B;
2952
+ }, f = O(!1), I = O(!1), v = O(""), p = O(), S = T(() => {
2953
+ var w, K, B;
2851
2954
  if (!p.value)
2852
2955
  return [];
2853
- const C = [], x = Object.keys(p.value).length;
2854
- for (const T in p.value) {
2855
- const P = (N = (w = r.configSchema) == null ? void 0 : w[T]) == null ? void 0 : N.order, J = (B = m[T]) == null ? void 0 : B.order;
2956
+ const k = [], x = Object.keys(p.value).length;
2957
+ for (const M in p.value) {
2958
+ const P = (K = (w = r.configSchema) == null ? void 0 : w[M]) == null ? void 0 : K.order, J = (B = g[M]) == null ? void 0 : B.order;
2856
2959
  let Q = x;
2857
- (J || J === 0) && (Q = J === -1 ? x + 1 : J), P && (Q = P === -1 ? x + 1 : P), C.push([T, Q]);
2960
+ (J || J === 0) && (Q = J === -1 ? x + 1 : J), P && (Q = P === -1 ? x + 1 : P), k.push([M, Q]);
2858
2961
  }
2859
- return C.sort(function(T, P) {
2860
- return T[1] - P[1];
2861
- }), C.map((T) => {
2962
+ return k.sort(function(M, P) {
2963
+ return M[1] - P[1];
2964
+ }), k.map((M) => {
2862
2965
  var P, J;
2863
- const Q = T[0], X = (P = p.value) == null ? void 0 : P[Q], ee = ((J = r.configSchema) == null ? void 0 : J[Q]) || {}, ie = m[Q];
2966
+ const Q = M[0], X = (P = p.value) == null ? void 0 : P[Q], ee = ((J = r.configSchema) == null ? void 0 : J[Q]) || {}, ie = g[Q];
2864
2967
  return {
2865
2968
  key: Q,
2866
2969
  value: X,
@@ -2870,22 +2973,22 @@ const Wi = {
2870
2973
  tooltip: ee.tooltip ?? ((ie == null ? void 0 : ie.tooltip) || void 0),
2871
2974
  section: ee.section ?? ((ie == null ? void 0 : ie.section) || be.Advanced)
2872
2975
  };
2873
- }).filter((T) => !T.hidden && T.key !== r.pluginConfigKey);
2874
- }), b = j(() => {
2875
- var w, N;
2976
+ }).filter((M) => !M.hidden && M.key !== r.pluginConfigKey);
2977
+ }), b = T(() => {
2978
+ var w, K;
2876
2979
  if (!p.value || !r.pluginConfigKey)
2877
2980
  return [];
2878
- const B = p.value[r.pluginConfigKey] || {}, C = Object.keys(B).length, x = [];
2879
- for (const T in B) {
2880
- const P = (N = (w = r.pluginConfigSchema) == null ? void 0 : w[T]) == null ? void 0 : N.order, J = B[T];
2881
- let Q = J != null && J !== "" ? C - 1 : C;
2882
- P && (Q = P === -1 ? C + 1 : P), x.push([T, Q]);
2981
+ const B = p.value[r.pluginConfigKey] || {}, k = Object.keys(B).length, x = [];
2982
+ for (const M in B) {
2983
+ const P = (K = (w = r.pluginConfigSchema) == null ? void 0 : w[M]) == null ? void 0 : K.order, J = B[M];
2984
+ let Q = J != null && J !== "" ? k - 1 : k;
2985
+ P && (Q = P === -1 ? k + 1 : P), x.push([M, Q]);
2883
2986
  }
2884
- return x.sort(function(T, P) {
2885
- return T[1] - P[1];
2886
- }), x.map((T) => {
2987
+ return x.sort(function(M, P) {
2988
+ return M[1] - P[1];
2989
+ }), x.map((M) => {
2887
2990
  var P;
2888
- const J = T[0], Q = B[J], X = ((P = r.pluginConfigSchema) == null ? void 0 : P[J]) || {};
2991
+ const J = M[0], Q = B[J], X = ((P = r.pluginConfigSchema) == null ? void 0 : P[J]) || {};
2889
2992
  return {
2890
2993
  key: J,
2891
2994
  value: Q,
@@ -2895,21 +2998,21 @@ const Wi = {
2895
2998
  tooltip: X.tooltip ?? void 0,
2896
2999
  section: be.Plugin
2897
3000
  };
2898
- }).filter((T) => !T.hidden);
2899
- }), k = j(() => {
2900
- var w, N, B, C;
3001
+ }).filter((M) => !M.hidden);
3002
+ }), C = T(() => {
3003
+ var w, K, B, k;
2901
3004
  return {
2902
3005
  basic: (w = S.value) == null ? void 0 : w.filter((x) => x.section === be.Basic),
2903
- advanced: (N = S.value) == null ? void 0 : N.filter((x) => x.section === be.Advanced),
2904
- plugin: (C = b.value) == null ? void 0 : C.concat((B = S.value) == null ? void 0 : B.filter((x) => x.section === be.Plugin))
3006
+ advanced: (K = S.value) == null ? void 0 : K.filter((x) => x.section === be.Advanced),
3007
+ plugin: (k = b.value) == null ? void 0 : k.concat((B = S.value) == null ? void 0 : B.filter((x) => x.section === be.Plugin))
2905
3008
  };
2906
- }), A = j(() => {
3009
+ }), A = T(() => {
2907
3010
  const w = [];
2908
- return k.value.basic.length && w.push("basic"), k.value.advanced.length && w.push("advanced"), k.value.plugin.length && w.push("plugin"), w;
2909
- }), ne = (w) => !!(w.tooltip || o[`${w.key}-label-tooltip`]), pe = j(() => {
2910
- var w, N;
3011
+ return C.value.basic.length && w.push("basic"), C.value.advanced.length && w.push("advanced"), C.value.plugin.length && w.push("plugin"), w;
3012
+ }), ne = (w) => !!(w.tooltip || o[`${w.key}-label-tooltip`]), pe = T(() => {
3013
+ var w, K;
2911
3014
  let B = `${r.config.apiBaseUrl}${r.fetchUrl}`;
2912
- return r.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((w = r.config) == null ? void 0 : w.controlPlaneId) || "") : r.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (N = r.config) != null && N.workspace ? `/${r.config.workspace}` : "")), B = B.replace(/{id}/gi, r.config.entityId), B;
3015
+ return r.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((w = r.config) == null ? void 0 : w.controlPlaneId) || "") : r.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (K = r.config) != null && K.workspace ? `/${r.config.workspace}` : "")), B = B.replace(/{id}/gi, r.config.entityId), B;
2913
3016
  }), z = (w) => {
2914
3017
  p.value && w(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
2915
3018
  };
@@ -2926,65 +3029,65 @@ const Wi = {
2926
3029
  throw new Error(a("errors.dataKeyUndefined", { dataKey: r.dataKey }));
2927
3030
  else
2928
3031
  p.value = { ...w };
2929
- Object.keys(r.configSchema).filter((N) => r.configSchema[N].forceShow).forEach((N) => {
2930
- p.value && typeof p.value[N] > "u" && (p.value[N] = null);
3032
+ Object.keys(r.configSchema).filter((K) => r.configSchema[K].forceShow).forEach((K) => {
3033
+ p.value && typeof p.value[K] > "u" && (p.value[K] = null);
2931
3034
  }), n("fetch:success", w);
2932
3035
  } catch (w) {
2933
- const N = i(w);
2934
- v.value = N.startsWith("code") ? a("baseConfigCard.errors.load") : N, I.value = !0, n("fetch:error", w);
3036
+ const K = i(w);
3037
+ v.value = K.startsWith("code") ? a("baseConfigCard.errors.load") : K, I.value = !0, n("fetch:error", w);
2935
3038
  } finally {
2936
3039
  f.value = !1;
2937
3040
  }
2938
- }), (w, N) => {
2939
- const B = q("KLabel"), C = q("KSelect"), x = q("KButton"), T = q("KClipboardProvider"), P = q("KSkeleton"), J = q("KEmptyState"), Q = q("KCard");
2940
- return g(), V(Q, { class: "kong-ui-entity-base-config-card" }, Te({
3041
+ }), (w, K) => {
3042
+ const B = q("KLabel"), k = q("KSelect"), x = q("KButton"), M = q("KClipboardProvider"), P = q("KSkeleton"), J = q("KEmptyState"), Q = q("KCard");
3043
+ return m(), R(Q, { class: "kong-ui-entity-base-config-card" }, Te({
2941
3044
  actions: h(() => [
2942
- R("div", cs, [
2943
- Y(w.$slots, "actions", {}, void 0, !0),
2944
- e.config.jsonYamlEnabled ? (g(), V(B, {
3045
+ V("div", Cs, [
3046
+ W(w.$slots, "actions", {}, void 0, !0),
3047
+ e.config.jsonYamlEnabled ? (m(), R(B, {
2945
3048
  key: 0,
2946
3049
  class: "config-format-select-label",
2947
3050
  "data-testid": "config-format-select-label"
2948
3051
  }, {
2949
3052
  default: h(() => [
2950
- Z(K(e.label), 1)
3053
+ Z(N(e.label), 1)
2951
3054
  ]),
2952
3055
  _: 1
2953
3056
  })) : G("", !0),
2954
- e.config.jsonYamlEnabled ? (g(), V(C, {
3057
+ e.config.jsonYamlEnabled ? (m(), R(k, {
2955
3058
  key: 1,
2956
3059
  appearance: "select",
2957
3060
  "data-testid": "select-config-format",
2958
3061
  items: c,
2959
3062
  onChange: u
2960
3063
  })) : G("", !0),
2961
- r.config.jsonYamlEnabled && e.configCardDoc ? (g(), V(x, {
3064
+ r.config.jsonYamlEnabled && e.configCardDoc ? (m(), R(x, {
2962
3065
  key: 2,
2963
- appearance: "btn-link",
3066
+ appearance: "tertiary",
2964
3067
  class: "book-icon",
2965
3068
  "data-testid": "book-icon"
2966
3069
  }, {
2967
3070
  default: h(() => [
2968
- R("a", {
3071
+ V("a", {
2969
3072
  href: e.configCardDoc,
2970
3073
  rel: "noopener",
2971
3074
  target: "_blank"
2972
3075
  }, [
2973
- F(y(ls), { size: y(yo) }, null, 8, ["size"])
2974
- ], 8, ds)
3076
+ F(y(vs), { size: y(So) }, null, 8, ["size"])
3077
+ ], 8, ks)
2975
3078
  ]),
2976
3079
  _: 1
2977
3080
  })) : G("", !0),
2978
- e.config.jsonYamlEnabled ? G("", !0) : (g(), V(T, { key: 3 }, {
3081
+ e.config.jsonYamlEnabled ? G("", !0) : (m(), R(M, { key: 3 }, {
2979
3082
  default: h(({ copyToClipboard: X }) => [
2980
- !f.value && !I.value ? (g(), V(x, {
3083
+ !f.value && !I.value ? (m(), R(x, {
2981
3084
  key: 0,
2982
- appearance: "btn-link",
3085
+ appearance: "tertiary",
2983
3086
  "data-testid": "json-copy-button",
2984
3087
  onClick: (ee) => z(X)
2985
3088
  }, {
2986
3089
  default: h(() => [
2987
- Z(K(y(a)("baseConfigCard.actions.copy")), 1)
3090
+ Z(N(y(a)("baseConfigCard.actions.copy")), 1)
2988
3091
  ]),
2989
3092
  _: 2
2990
3093
  }, 1032, ["onClick"])) : G("", !0)
@@ -2994,54 +3097,54 @@ const Wi = {
2994
3097
  ])
2995
3098
  ]),
2996
3099
  body: h(() => [
2997
- f.value ? (g(), V(P, {
3100
+ f.value ? (m(), R(P, {
2998
3101
  key: 0,
2999
3102
  "data-testid": "config-card-loader",
3000
3103
  "table-columns": 2,
3001
3104
  type: "table"
3002
- })) : I.value ? (g(), V(J, {
3105
+ })) : I.value ? (m(), R(J, {
3003
3106
  key: 1,
3004
3107
  "data-testid": "config-card-fetch-error",
3005
3108
  "is-error": ""
3006
3109
  }, {
3007
3110
  message: h(() => [
3008
- R("h3", null, K(v.value), 1)
3111
+ V("h3", null, N(v.value), 1)
3009
3112
  ]),
3010
3113
  _: 1
3011
3114
  })) : G("", !0),
3012
- e.config.jsonYamlEnabled ? (g(), M("div", ps, [
3013
- F(ts, {
3115
+ e.config.jsonYamlEnabled ? (m(), $("div", _s, [
3116
+ F(ds, {
3014
3117
  format: d.value,
3015
3118
  "prop-list-types": A.value,
3016
- "property-collections": k.value,
3119
+ "property-collections": C.value,
3017
3120
  record: p.value
3018
3121
  }, Te({ _: 2 }, [
3019
3122
  ye(Object.keys(w.$slots), (X) => ({
3020
3123
  name: X,
3021
3124
  fn: h(({ row: ee, rowValue: ie }) => [
3022
- Y(w.$slots, X, {
3125
+ W(w.$slots, X, {
3023
3126
  row: ee,
3024
3127
  rowValue: ie
3025
3128
  }, void 0, !0)
3026
3129
  ])
3027
3130
  }))
3028
3131
  ]), 1032, ["format", "prop-list-types", "property-collections", "record"])
3029
- ])) : (g(), M("div", fs, [
3030
- (g(!0), M(ve, null, ye(A.value, (X) => (g(), M("div", {
3132
+ ])) : (m(), $("div", ws, [
3133
+ (m(!0), $(ve, null, ye(A.value, (X) => (m(), $("div", {
3031
3134
  key: `config-card-details-${X}-props`,
3032
3135
  class: Fe(`config-card-details-${X}-props`),
3033
3136
  "data-testid": `config-card-details-${X}-props`
3034
3137
  }, [
3035
- X !== "basic" ? (g(), M("div", gs, K(X === "advanced" ? y(a)("baseConfigCard.sections.advanced") : y(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
3036
- (g(!0), M(ve, null, ye(k.value[X], (ee) => (g(), V(xt, {
3138
+ X !== "basic" ? (m(), $("div", As, N(X === "advanced" ? y(a)("baseConfigCard.sections.advanced") : y(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
3139
+ (m(!0), $(ve, null, ye(C.value[X], (ee) => (m(), R(xt, {
3037
3140
  key: ee.key,
3038
3141
  item: ee
3039
3142
  }, Te({
3040
3143
  label: h(() => [
3041
- Y(w.$slots, `${ee.key}-label`, { row: ee }, void 0, !0)
3144
+ W(w.$slots, `${ee.key}-label`, { row: ee }, void 0, !0)
3042
3145
  ]),
3043
3146
  [ee.key]: h(({ rowValue: ie }) => [
3044
- Y(w.$slots, ee.key, {
3147
+ W(w.$slots, ee.key, {
3045
3148
  row: ee,
3046
3149
  rowValue: ie
3047
3150
  }, void 0, !0)
@@ -3051,12 +3154,12 @@ const Wi = {
3051
3154
  ne(ee) ? {
3052
3155
  name: "label-tooltip",
3053
3156
  fn: h(() => [
3054
- Y(w.$slots, `${ee.key}-label-tooltip`, { row: ee }, void 0, !0)
3157
+ W(w.$slots, `${ee.key}-label-tooltip`, { row: ee }, void 0, !0)
3055
3158
  ]),
3056
3159
  key: "0"
3057
3160
  } : void 0
3058
3161
  ]), 1032, ["item"]))), 128))
3059
- ], 10, ms))), 128))
3162
+ ], 10, Is))), 128))
3060
3163
  ]))
3061
3164
  ]),
3062
3165
  _: 2
@@ -3064,9 +3167,9 @@ const Wi = {
3064
3167
  e.hideTitle ? void 0 : {
3065
3168
  name: "title",
3066
3169
  fn: h(() => [
3067
- R("div", us, [
3068
- Y(w.$slots, "title", {}, () => [
3069
- Z(K(y(a)("baseConfigCard.title")), 1)
3170
+ V("div", bs, [
3171
+ W(w.$slots, "title", {}, () => [
3172
+ Z(N(y(a)("baseConfigCard.title")), 1)
3070
3173
  ], !0)
3071
3174
  ])
3072
3175
  ]),
@@ -3075,10 +3178,10 @@ const Wi = {
3075
3178
  ]), 1024);
3076
3179
  };
3077
3180
  }
3078
- }), hs = /* @__PURE__ */ Ce(ys, [["__scopeId", "data-v-64349aa2"]]), vs = ["onReset", "onSubmit"], bs = {
3181
+ }), xs = /* @__PURE__ */ ke(Ss, [["__scopeId", "data-v-24515123"]]), Ts = ["onReset", "onSubmit"], $s = {
3079
3182
  class: "form-actions",
3080
3183
  "data-testid": "form-actions"
3081
- }, ks = /* @__PURE__ */ ae({
3184
+ }, Ms = /* @__PURE__ */ re({
3082
3185
  __name: "EntityBaseForm",
3083
3186
  props: {
3084
3187
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3130,7 +3233,7 @@ const Wi = {
3130
3233
  var t;
3131
3234
  const r = e, o = wt(), { i18n: { t: a } } = ue.useI18n(), { getMessageFromError: i } = ue.useErrors(), { axiosInstance: s } = ue.useAxios({
3132
3235
  headers: (t = r.config) == null ? void 0 : t.requestHeaders
3133
- }), l = E(!1), c = E(!1), d = E(""), u = j(() => r.canSubmit === !1 || r.isReadonly), m = j(() => {
3236
+ }), l = O(!1), c = O(!1), d = O(""), u = T(() => r.canSubmit === !1 || r.isReadonly), g = T(() => {
3134
3237
  var p, S;
3135
3238
  if (!r.editId)
3136
3239
  return "";
@@ -3149,7 +3252,7 @@ const Wi = {
3149
3252
  if (r.editId)
3150
3253
  try {
3151
3254
  c.value = !1, l.value = !0;
3152
- const { data: p } = await s.get(m.value);
3255
+ const { data: p } = await s.get(g.value);
3153
3256
  n("fetch:success", p);
3154
3257
  } catch (p) {
3155
3258
  const S = i(p);
@@ -3158,13 +3261,13 @@ const Wi = {
3158
3261
  l.value = !1;
3159
3262
  }
3160
3263
  }), (p, S) => {
3161
- const b = q("KSkeleton"), k = q("KEmptyState"), A = q("KAlert"), ne = q("KButton"), pe = q("KCard");
3162
- return g(), V(pe, { class: "kong-ui-entity-base-form" }, {
3264
+ const b = q("KSkeleton"), C = q("KEmptyState"), A = q("KAlert"), ne = q("KButton"), pe = q("KCard");
3265
+ return m(), R(pe, { class: "kong-ui-entity-base-form" }, {
3163
3266
  body: h(() => [
3164
- l.value ? (g(), V(b, {
3267
+ l.value ? (m(), R(b, {
3165
3268
  key: 0,
3166
3269
  type: "form"
3167
- })) : c.value ? (g(), V(k, {
3270
+ })) : c.value ? (m(), R(C, {
3168
3271
  key: 1,
3169
3272
  "cta-text": y(a)("baseForm.actions.back"),
3170
3273
  "data-testid": "form-fetch-error",
@@ -3172,32 +3275,32 @@ const Wi = {
3172
3275
  "is-error": !0
3173
3276
  }, {
3174
3277
  message: h(() => [
3175
- R("h3", null, K(d.value), 1)
3278
+ V("h3", null, N(d.value), 1)
3176
3279
  ]),
3177
3280
  _: 1
3178
- }, 8, ["cta-text"])) : (g(), M("form", {
3281
+ }, 8, ["cta-text"])) : (m(), $("form", {
3179
3282
  key: 2,
3180
3283
  "data-testid": "form-content",
3181
3284
  onReset: rt(I, ["prevent"]),
3182
3285
  onSubmit: rt(v, ["prevent"])
3183
3286
  }, [
3184
- Y(p.$slots, "default", {}, void 0, !0),
3185
- e.errorMessage ? (g(), V(A, {
3287
+ W(p.$slots, "default", {}, void 0, !0),
3288
+ e.errorMessage ? (m(), R(A, {
3186
3289
  key: 0,
3187
3290
  "alert-message": e.errorMessage,
3188
3291
  appearance: "danger",
3189
3292
  "data-testid": "form-error"
3190
3293
  }, null, 8, ["alert-message"])) : G("", !0),
3191
- R("div", bs, [
3192
- Y(p.$slots, "form-actions", {}, () => [
3294
+ V("div", $s, [
3295
+ W(p.$slots, "form-actions", {}, () => [
3193
3296
  F(ne, {
3194
- appearance: "outline",
3297
+ appearance: "secondary",
3195
3298
  "data-testid": "form-cancel",
3196
3299
  disabled: e.isReadonly,
3197
3300
  type: "reset"
3198
3301
  }, {
3199
3302
  default: h(() => [
3200
- Z(K(y(a)("baseForm.actions.cancel")), 1)
3303
+ Z(N(y(a)("baseForm.actions.cancel")), 1)
3201
3304
  ]),
3202
3305
  _: 1
3203
3306
  }, 8, ["disabled"]),
@@ -3208,22 +3311,22 @@ const Wi = {
3208
3311
  type: "submit"
3209
3312
  }, {
3210
3313
  default: h(() => [
3211
- Z(K(y(a)("baseForm.actions.save")), 1)
3314
+ Z(N(y(a)("baseForm.actions.save")), 1)
3212
3315
  ]),
3213
3316
  _: 1
3214
3317
  }, 8, ["disabled"])
3215
3318
  ], !0)
3216
3319
  ])
3217
- ], 40, vs))
3320
+ ], 40, Ts))
3218
3321
  ]),
3219
3322
  _: 3
3220
3323
  });
3221
3324
  };
3222
3325
  }
3223
- }), Cs = /* @__PURE__ */ Ce(ks, [["__scopeId", "data-v-44a90aae"]]), _s = {
3326
+ }), js = /* @__PURE__ */ ke(Ms, [["__scopeId", "data-v-81612aef"]]), Es = {
3224
3327
  key: 0,
3225
3328
  "data-testid": "first-col"
3226
- }, ws = /* @__PURE__ */ ae({
3329
+ }, Os = /* @__PURE__ */ re({
3227
3330
  __name: "EntityBaseTableCell",
3228
3331
  props: {
3229
3332
  keyName: {
@@ -3236,13 +3339,13 @@ const Wi = {
3236
3339
  }
3237
3340
  },
3238
3341
  setup(e) {
3239
- const n = e, t = j(() => {
3342
+ const n = e, t = T(() => {
3240
3343
  var v;
3241
3344
  return ((v = n.rowEl) == null ? void 0 : v.querySelector(`[data-testid="${n.keyName}"]`)) || null;
3242
- }), r = j(() => {
3345
+ }), r = T(() => {
3243
3346
  var v;
3244
3347
  return ((v = t.value) == null ? void 0 : v.querySelector('[data-testid="first-col"]')) || null;
3245
- }), o = j(() => {
3348
+ }), o = T(() => {
3246
3349
  var v, p;
3247
3350
  const S = (v = n.rowEl) == null ? void 0 : v.querySelectorAll("td");
3248
3351
  return S ? ((p = S[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
@@ -3253,8 +3356,8 @@ const Wi = {
3253
3356
  }, s = () => {
3254
3357
  var v, p, S;
3255
3358
  c.value = ((v = r.value) == null ? void 0 : v.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((S = l.value) == null ? void 0 : S.innerText) || "";
3256
- }, l = E({}), c = E(0), d = E(0), u = E(""), m = j(() => [r.value, t.value]), f = xe(
3257
- m,
3359
+ }, l = O({}), c = O(0), d = O(0), u = O(""), g = T(() => [r.value, t.value]), f = xe(
3360
+ g,
3258
3361
  (v) => {
3259
3362
  if (o.value && (i(), "ResizeObserver" in window && window)) {
3260
3363
  a = new ResizeObserver((p) => {
@@ -3267,37 +3370,37 @@ const Wi = {
3267
3370
  }
3268
3371
  },
3269
3372
  { immediate: !0, flush: "post", deep: !0 }
3270
- ), I = j(() => o.value ? c.value > d.value : !1);
3271
- return pr(() => {
3373
+ ), I = T(() => o.value ? c.value > d.value : !1);
3374
+ return hr(() => {
3272
3375
  s();
3273
- }), fr(() => {
3376
+ }), vr(() => {
3274
3377
  f();
3275
3378
  }), (v, p) => {
3276
3379
  const S = q("KTooltip");
3277
- return g(), M("span", {
3380
+ return m(), $("span", {
3278
3381
  ref_key: "contentRef",
3279
3382
  ref: l,
3280
3383
  class: "content-wrapper"
3281
3384
  }, [
3282
- o.value ? (g(), M("span", _s, [
3385
+ o.value ? (m(), $("span", Es, [
3283
3386
  F(S, {
3284
3387
  label: I.value ? u.value : "",
3285
3388
  "max-width": "300",
3286
3389
  placement: "bottomStart"
3287
3390
  }, {
3288
3391
  default: h(() => [
3289
- Y(v.$slots, "default", {}, void 0, !0)
3392
+ W(v.$slots, "default", {}, void 0, !0)
3290
3393
  ]),
3291
3394
  _: 3
3292
3395
  }, 8, ["label"])
3293
- ])) : Y(v.$slots, "default", { key: 1 }, void 0, !0)
3396
+ ])) : W(v.$slots, "default", { key: 1 }, void 0, !0)
3294
3397
  ], 512);
3295
3398
  };
3296
3399
  }
3297
- }), Is = /* @__PURE__ */ Ce(ws, [["__scopeId", "data-v-e42a20c9"]]), As = { class: "toolbar-container" }, Ss = {
3400
+ }), Ns = /* @__PURE__ */ ke(Os, [["__scopeId", "data-v-e42a20c9"]]), Fs = { class: "toolbar-container" }, Ks = {
3298
3401
  key: 0,
3299
3402
  class: "toolbar-button-container"
3300
- }, xs = ["data-testid"], Ts = /* @__PURE__ */ ae({
3403
+ }, Bs = ["data-testid"], Ps = /* @__PURE__ */ re({
3301
3404
  __name: "EntityBaseTable",
3302
3405
  props: {
3303
3406
  // table header configuration
@@ -3406,56 +3509,56 @@ const Wi = {
3406
3509
  },
3407
3510
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3408
3511
  setup(e, { emit: n }) {
3409
- const t = e, { i18n: { t: r } } = ue.useI18n(), o = j(() => t.cacheIdentifier || t.preferencesStorageKey), a = (k) => k.hasData || !!t.query, i = j(() => {
3410
- const k = [];
3512
+ const t = e, { i18n: { t: r } } = ue.useI18n(), o = T(() => t.cacheIdentifier || t.preferencesStorageKey), a = (C) => C.hasData || !!t.query, i = T(() => {
3513
+ const C = [];
3411
3514
  return Object.keys(t.tableHeaders).forEach((A) => {
3412
3515
  const ne = t.tableHeaders[A];
3413
- k.push({
3516
+ C.push({
3414
3517
  label: ne.label ?? A,
3415
3518
  key: A,
3416
3519
  sortable: ne.sortable ?? !1
3417
3520
  });
3418
- }), t.enableEntityActions && k.push({
3521
+ }), t.enableEntityActions && C.push({
3419
3522
  key: "actions",
3420
3523
  hideLabel: !0
3421
- }), k;
3422
- }), s = (k) => ({
3423
- "data-rowid": k.id,
3424
- "data-testid": k.name,
3425
- ...t.rowAttributes(k)
3426
- }), l = E({}), c = (k) => {
3524
+ }), C;
3525
+ }), s = (C) => ({
3526
+ "data-rowid": C.id,
3527
+ "data-testid": C.name,
3528
+ ...t.rowAttributes(C)
3529
+ }), l = O({}), c = (C) => {
3427
3530
  var A;
3428
- return (A = l.value) == null ? void 0 : A.$el.querySelector(`[data-rowid="${k.id}"]`);
3429
- }, d = (k) => {
3531
+ return (A = l.value) == null ? void 0 : A.$el.querySelector(`[data-rowid="${C.id}"]`);
3532
+ }, d = (C) => {
3430
3533
  const A = {
3431
- "data-testid": k.headerKey,
3432
- ...t.cellAttributes(k)
3534
+ "data-testid": C.headerKey,
3535
+ ...t.cellAttributes(C)
3433
3536
  };
3434
- return k.colIndex === 0 && (A.style = {
3537
+ return C.colIndex === 0 && (A.style = {
3435
3538
  maxWidth: "250px",
3436
3539
  overflowX: "hidden",
3437
3540
  textOverflow: "ellipsis"
3438
3541
  }), A;
3439
3542
  }, u = () => {
3440
- n("empty-state-cta-clicked"), m();
3441
- }, m = () => {
3543
+ n("empty-state-cta-clicked"), g();
3544
+ }, g = () => {
3442
3545
  n("clear-search-input");
3443
- }, f = j(() => t.disableRowClick ? void 0 : (k, A) => {
3546
+ }, f = T(() => t.disableRowClick ? void 0 : (C, A) => {
3444
3547
  n("click:row", A);
3445
- }), I = (k) => {
3446
- n("sort", k);
3447
- }, { setTablePreferences: v, getTablePreferences: p } = Sr(), S = j(() => {
3448
- const k = p(t.preferencesStorageKey);
3548
+ }), I = (C) => {
3549
+ n("sort", C);
3550
+ }, { setTablePreferences: v, getTablePreferences: p } = Tr(), S = T(() => {
3551
+ const C = p(t.preferencesStorageKey);
3449
3552
  return {
3450
3553
  ...t.initialFetcherParams,
3451
- ...k
3554
+ ...C
3452
3555
  };
3453
- }), b = (k) => {
3454
- t.preferencesStorageKey && v(t.preferencesStorageKey, k);
3556
+ }), b = (C) => {
3557
+ t.preferencesStorageKey && v(t.preferencesStorageKey, C);
3455
3558
  };
3456
- return (k, A) => {
3457
- const ne = q("KIcon"), pe = q("KButton"), z = q("KDropdownMenu"), w = q("KTable"), N = q("KCard");
3458
- return g(), V(N, {
3559
+ return (C, A) => {
3560
+ const ne = q("KIcon"), pe = q("KButton"), z = q("KDropdown"), w = q("KTable"), K = q("KCard");
3561
+ return m(), R(K, {
3459
3562
  class: "kong-ui-entity-base-table",
3460
3563
  title: e.title
3461
3564
  }, {
@@ -3492,17 +3595,17 @@ const Wi = {
3492
3595
  "onUpdate:tablePreferences": b
3493
3596
  }, Te({
3494
3597
  toolbar: h(({ state: B }) => [
3495
- et(R("div", As, [
3496
- Y(k.$slots, "toolbar-filter", {}, void 0, !0),
3497
- k.$slots["toolbar-button"] ? (g(), M("div", Ss, [
3498
- Y(k.$slots, "toolbar-button", {}, void 0, !0)
3598
+ et(V("div", Fs, [
3599
+ W(C.$slots, "toolbar-filter", {}, void 0, !0),
3600
+ C.$slots["toolbar-button"] ? (m(), $("div", Ks, [
3601
+ W(C.$slots, "toolbar-button", {}, void 0, !0)
3499
3602
  ])) : G("", !0)
3500
3603
  ], 512), [
3501
3604
  [tt, a(B)]
3502
3605
  ])
3503
3606
  ]),
3504
- actions: h(({ row: B, rowKey: C, rowValue: x }) => [
3505
- R("div", {
3607
+ actions: h(({ row: B, rowKey: k, rowValue: x }) => [
3608
+ V("div", {
3506
3609
  class: "actions-container",
3507
3610
  "data-testid": B.name
3508
3611
  }, [
@@ -3511,9 +3614,9 @@ const Wi = {
3511
3614
  width: e.dropdownMenuWidth
3512
3615
  }, {
3513
3616
  items: h(() => [
3514
- Y(k.$slots, "actions", {
3617
+ W(C.$slots, "actions", {
3515
3618
  row: B,
3516
- rowKey: C,
3619
+ rowKey: k,
3517
3620
  rowValue: x
3518
3621
  }, void 0, !0)
3519
3622
  ]),
@@ -3525,7 +3628,7 @@ const Wi = {
3525
3628
  }, {
3526
3629
  icon: h(() => [
3527
3630
  F(ne, {
3528
- color: y(mo),
3631
+ color: y(Io),
3529
3632
  icon: "more",
3530
3633
  size: "16"
3531
3634
  }, null, 8, ["color"])
@@ -3535,24 +3638,24 @@ const Wi = {
3535
3638
  ]),
3536
3639
  _: 2
3537
3640
  }, 1032, ["width"])
3538
- ], 8, xs)
3641
+ ], 8, Bs)
3539
3642
  ]),
3540
3643
  _: 2
3541
3644
  }, [
3542
- ye(e.tableHeaders, (B, C) => ({
3543
- name: C,
3544
- fn: h(({ row: x, rowKey: T, rowValue: P }) => [
3545
- F(Is, {
3546
- "key-name": String(C),
3645
+ ye(e.tableHeaders, (B, k) => ({
3646
+ name: k,
3647
+ fn: h(({ row: x, rowKey: M, rowValue: P }) => [
3648
+ F(Ns, {
3649
+ "key-name": String(k),
3547
3650
  "row-el": c(x)
3548
3651
  }, {
3549
3652
  default: h(() => [
3550
- Y(k.$slots, C, {
3653
+ W(C.$slots, k, {
3551
3654
  row: x,
3552
- rowKey: T,
3655
+ rowKey: M,
3553
3656
  rowValue: P
3554
3657
  }, () => [
3555
- Z(K(P), 1)
3658
+ Z(N(P), 1)
3556
3659
  ], !0)
3557
3660
  ]),
3558
3661
  _: 2
@@ -3565,13 +3668,13 @@ const Wi = {
3565
3668
  }, 8, ["title"]);
3566
3669
  };
3567
3670
  }
3568
- }), $s = /* @__PURE__ */ Ce(Ts, [["__scopeId", "data-v-6bf92df6"]]), js = {
3671
+ }), Ls = /* @__PURE__ */ ke(Ps, [["__scopeId", "data-v-86d2d2a3"]]), qs = {
3569
3672
  key: 0,
3570
3673
  class: "kong-ui-entity-delete-error"
3571
- }, Ms = {
3674
+ }, Us = {
3572
3675
  key: 1,
3573
3676
  class: "description"
3574
- }, Os = /* @__PURE__ */ ae({
3677
+ }, Vs = /* @__PURE__ */ re({
3575
3678
  __name: "EntityDeleteModal",
3576
3679
  props: {
3577
3680
  visible: {
@@ -3610,14 +3713,14 @@ const Wi = {
3610
3713
  },
3611
3714
  emits: ["cancel", "proceed"],
3612
3715
  setup(e, { emit: n }) {
3613
- const t = e, { i18nT: r } = ue.useI18n(), o = j(() => t.needConfirm ? t.entityName : ""), a = () => {
3716
+ const t = e, { i18nT: r } = ue.useI18n(), o = T(() => t.needConfirm ? t.entityName : ""), a = () => {
3614
3717
  n("cancel");
3615
3718
  }, i = () => {
3616
3719
  n("proceed");
3617
3720
  };
3618
3721
  return (s, l) => {
3619
3722
  const c = q("KAlert"), d = q("KPrompt");
3620
- return g(), V(d, {
3723
+ return m(), R(d, {
3621
3724
  "action-button-text": "Yes, delete",
3622
3725
  "action-pending": e.actionPending,
3623
3726
  class: "kong-ui-entity-delete-modal",
@@ -3629,10 +3732,10 @@ const Wi = {
3629
3732
  onProceed: i
3630
3733
  }, {
3631
3734
  "body-content": h(() => [
3632
- e.error ? (g(), M("div", js, [
3735
+ e.error ? (m(), $("div", qs, [
3633
3736
  F(c, { appearance: "danger" }, {
3634
3737
  alertMessage: h(() => [
3635
- Z(K(e.error), 1)
3738
+ Z(N(e.error), 1)
3636
3739
  ]),
3637
3740
  _: 1
3638
3741
  })
@@ -3643,21 +3746,21 @@ const Wi = {
3643
3746
  tag: "p"
3644
3747
  }, Te({
3645
3748
  entityType: h(() => [
3646
- Z(K(t.entityType), 1)
3749
+ Z(N(t.entityType), 1)
3647
3750
  ]),
3648
3751
  _: 2
3649
3752
  }, [
3650
3753
  t.entityName ? {
3651
3754
  name: "entityName",
3652
3755
  fn: h(() => [
3653
- R("strong", null, K(t.entityName), 1)
3756
+ V("strong", null, N(t.entityName), 1)
3654
3757
  ]),
3655
3758
  key: "0"
3656
3759
  } : void 0
3657
3760
  ]), 1032, ["keypath"]),
3658
- t.description || s.$slots.description ? (g(), M("div", Ms, [
3659
- Y(s.$slots, "description", {}, () => [
3660
- R("p", null, K(t.description), 1)
3761
+ t.description || s.$slots.description ? (m(), $("div", Us, [
3762
+ W(s.$slots, "description", {}, () => [
3763
+ V("p", null, N(t.description), 1)
3661
3764
  ], !0)
3662
3765
  ])) : G("", !0)
3663
3766
  ]),
@@ -3665,13 +3768,13 @@ const Wi = {
3665
3768
  }, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
3666
3769
  };
3667
3770
  }
3668
- }), Es = /* @__PURE__ */ Ce(Os, [["__scopeId", "data-v-1c9a2a07"]]), Ks = {
3771
+ }), Rs = /* @__PURE__ */ ke(Vs, [["__scopeId", "data-v-1c9a2a07"]]), Ds = {
3669
3772
  fill: "none",
3670
3773
  height: "20",
3671
3774
  viewBox: "0 0 20 20",
3672
3775
  width: "20",
3673
3776
  xmlns: "http://www.w3.org/2000/svg"
3674
- }, Fs = {
3777
+ }, Gs = {
3675
3778
  id: "mask0_180_20349",
3676
3779
  height: "20",
3677
3780
  maskUnits: "userSpaceOnUse",
@@ -3679,35 +3782,35 @@ const Wi = {
3679
3782
  width: "20",
3680
3783
  x: "0",
3681
3784
  y: "0"
3682
- }, Ns = ["fill"], Bs = { mask: "url(#mask0_180_20349)" }, Ps = ["fill"], Ls = /* @__PURE__ */ ae({
3785
+ }, zs = ["fill"], Hs = { mask: "url(#mask0_180_20349)" }, Js = ["fill"], cn = /* @__PURE__ */ re({
3683
3786
  __name: "IconFilter",
3684
3787
  props: {
3685
3788
  color: {
3686
3789
  type: String,
3687
- default: `var(--kong-ui-entity-filter-color, ${po})`
3790
+ default: `var(--kong-ui-entity-filter-color, ${_o})`
3688
3791
  }
3689
3792
  },
3690
3793
  setup(e) {
3691
- return (n, t) => (g(), M("svg", Ks, [
3692
- R("mask", Fs, [
3693
- R("rect", {
3794
+ return (n, t) => (m(), $("svg", Ds, [
3795
+ V("mask", Gs, [
3796
+ V("rect", {
3694
3797
  fill: e.color,
3695
3798
  height: "20",
3696
3799
  width: "20"
3697
- }, null, 8, Ns)
3800
+ }, null, 8, zs)
3698
3801
  ]),
3699
- R("g", Bs, [
3700
- R("path", {
3802
+ V("g", Hs, [
3803
+ V("path", {
3701
3804
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
3702
3805
  fill: e.color
3703
- }, null, 8, Ps)
3806
+ }, null, 8, Js)
3704
3807
  ])
3705
3808
  ]));
3706
3809
  }
3707
- }), qs = {
3810
+ }), Ys = {
3708
3811
  key: 1,
3709
3812
  class: "kong-ui-entity-filter"
3710
- }, Us = { class: "menu-item-title" }, Rs = { class: "menu-item-indicator" }, Vs = { class: "menu-item-body" }, Ds = ["for"], Gs = { class: "menu-item-buttons" }, zs = /* @__PURE__ */ ae({
3813
+ }, Ws = { class: "menu-item-title" }, Zs = { class: "menu-item-indicator" }, Qs = { class: "menu-item-body" }, Xs = ["for"], el = { class: "menu-item-buttons" }, tl = { class: "filter-clear-button-container" }, nl = /* @__PURE__ */ re({
3711
3814
  __name: "EntityFilter",
3712
3815
  props: {
3713
3816
  // filter config, either exact match or fuzzy match
@@ -3727,12 +3830,12 @@ const Wi = {
3727
3830
  },
3728
3831
  emits: ["update:modelValue"],
3729
3832
  setup(e, { emit: n }) {
3730
- const t = e, { i18n: { t: r } } = ue.useI18n(), o = E(!1), a = E({}), i = j(() => {
3833
+ const t = e, { i18n: { t: r } } = ue.useI18n(), o = O(!1), a = O({}), i = T(() => {
3731
3834
  const p = [];
3732
3835
  return new URLSearchParams(t.modelValue).forEach((S, b) => {
3733
3836
  S !== "" && p.push(b);
3734
3837
  }), p;
3735
- }), s = j(() => {
3838
+ }), s = T(() => {
3736
3839
  const p = t.config.fields;
3737
3840
  return Object.keys(p).filter((S) => p[S].searchable).map((S) => ({
3738
3841
  label: p[S].label || S,
@@ -3750,11 +3853,11 @@ const Wi = {
3750
3853
  n("update:modelValue", p);
3751
3854
  }, d = (p) => `filter-${p}`, u = (p) => {
3752
3855
  var S, b;
3753
- return (((b = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : b.values) ?? []).map((k) => ({
3754
- value: k,
3755
- label: k
3856
+ return (((b = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : b.values) ?? []).map((C) => ({
3857
+ value: C,
3858
+ label: C
3756
3859
  }));
3757
- }, m = (p) => {
3860
+ }, g = (p) => {
3758
3861
  var S, b;
3759
3862
  return ((b = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : b.type) ?? "text";
3760
3863
  }, f = (p) => {
@@ -3765,12 +3868,12 @@ const Wi = {
3765
3868
  }, I = () => {
3766
3869
  a.value = {}, v(!0);
3767
3870
  }, v = (p = !1) => {
3768
- const S = Object.keys(a.value).reduce((b, k) => (a.value[k] && (b[k] = `${a.value[k]}`), b), {});
3871
+ const S = Object.keys(a.value).reduce((b, C) => (a.value[C] && (b[C] = `${a.value[C]}`), b), {});
3769
3872
  p && (o.value = !1), n("update:modelValue", new URLSearchParams(S).toString());
3770
3873
  };
3771
3874
  return (p, S) => {
3772
- const b = q("KInput"), k = q("KButton"), A = q("KSelect"), ne = q("KMenuItem"), pe = q("KMenu");
3773
- return e.config.isExactMatch ? (g(), V(b, {
3875
+ const b = q("KInput"), C = q("KButton"), A = q("KSelect"), ne = q("KMenuItem"), pe = q("KMenu");
3876
+ return e.config.isExactMatch ? (m(), R(b, {
3774
3877
  key: 0,
3775
3878
  autocomplete: "off",
3776
3879
  class: "kong-ui-entity-filter-input",
@@ -3779,23 +3882,23 @@ const Wi = {
3779
3882
  placeholder: e.config.placeholder,
3780
3883
  "onUpdate:modelValue": c
3781
3884
  }, {
3782
- icon: h(() => [
3783
- F(Ls)
3885
+ before: h(() => [
3886
+ F(cn)
3784
3887
  ]),
3785
3888
  _: 1
3786
- }, 8, ["model-value", "placeholder"])) : (g(), M("div", qs, [
3787
- F(k, {
3788
- appearance: "btn-link",
3889
+ }, 8, ["model-value", "placeholder"])) : (m(), $("div", Ys, [
3890
+ F(C, {
3891
+ appearance: "tertiary",
3789
3892
  "data-testid": "filter-button",
3790
- icon: "filter",
3791
3893
  onClick: l
3792
3894
  }, {
3793
3895
  default: h(() => [
3794
- Z(K(y(r)("filter.filterButtonText")) + " " + K(i.value.length > 0 ? `(${i.value.length})` : ""), 1)
3896
+ F(cn),
3897
+ Z(" " + N(y(r)("filter.filterButtonText")) + " " + N(i.value.length > 0 ? `(${i.value.length})` : ""), 1)
3795
3898
  ]),
3796
3899
  _: 1
3797
3900
  }),
3798
- et(R("div", {
3901
+ et(V("div", {
3799
3902
  class: "kong-ui-entity-filter-backdrop",
3800
3903
  onClick: l
3801
3904
  }, null, 512), [
@@ -3803,67 +3906,66 @@ const Wi = {
3803
3906
  ]),
3804
3907
  et(F(pe, { class: "kong-ui-entity-filter-menu" }, {
3805
3908
  body: h(() => [
3806
- (g(!0), M(ve, null, ye(s.value, (z, w) => (g(), V(ne, {
3909
+ (m(!0), $(ve, null, ye(s.value, (z, w) => (m(), R(ne, {
3807
3910
  key: z.value,
3808
3911
  "data-testid": z.value,
3809
3912
  expandable: "",
3810
3913
  "last-menu-item": w === s.value.length - 1
3811
3914
  }, {
3812
3915
  itemTitle: h(() => [
3813
- R("span", Us, [
3814
- Z(K(z.label) + " ", 1),
3815
- et(R("span", Rs, null, 512), [
3916
+ V("span", Ws, [
3917
+ Z(N(z.label) + " ", 1),
3918
+ et(V("span", Zs, null, 512), [
3816
3919
  [tt, i.value.includes(z.value)]
3817
3920
  ])
3818
3921
  ])
3819
3922
  ]),
3820
3923
  itemBody: h(() => {
3821
- var N, B;
3924
+ var K, B;
3822
3925
  return [
3823
- R("div", Vs, [
3824
- R("label", {
3926
+ V("div", Qs, [
3927
+ V("label", {
3825
3928
  class: "menu-item-label",
3826
3929
  for: d(z.value)
3827
- }, K(y(r)("filter.fieldLabel")), 9, Ds),
3828
- ((B = (N = e.config.schema) == null ? void 0 : N[z.value]) == null ? void 0 : B.type) === "select" ? (g(), V(A, {
3930
+ }, N(y(r)("filter.fieldLabel")), 9, Xs),
3931
+ ((B = (K = e.config.schema) == null ? void 0 : K[z.value]) == null ? void 0 : B.type) === "select" ? (m(), R(A, {
3829
3932
  key: 0,
3830
3933
  id: d(z.value),
3831
3934
  modelValue: a.value[z.value],
3832
- "onUpdate:modelValue": (C) => a.value[z.value] = C,
3935
+ "onUpdate:modelValue": (k) => a.value[z.value] = k,
3833
3936
  appearance: "select",
3834
3937
  items: u(z.value),
3835
3938
  placeholder: y(r)("filter.selectPlaceholder")
3836
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (g(), V(b, {
3939
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), R(b, {
3837
3940
  key: 1,
3838
3941
  id: d(z.value),
3839
3942
  modelValue: a.value[z.value],
3840
- "onUpdate:modelValue": (C) => a.value[z.value] = C,
3943
+ "onUpdate:modelValue": (k) => a.value[z.value] = k,
3841
3944
  autocomplete: "off",
3842
3945
  placeholder: y(r)("filter.inputPlaceholder"),
3843
- size: "small",
3844
- type: m(z.value)
3946
+ type: g(z.value)
3845
3947
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
3846
3948
  ]),
3847
- R("div", Gs, [
3848
- F(k, {
3849
- appearance: "btn-link",
3949
+ V("div", el, [
3950
+ F(C, {
3951
+ appearance: "tertiary",
3850
3952
  "data-testid": "apply-filter",
3851
3953
  size: "small",
3852
- onClick: S[0] || (S[0] = (C) => v(!0))
3954
+ onClick: S[0] || (S[0] = (k) => v(!0))
3853
3955
  }, {
3854
3956
  default: h(() => [
3855
- Z(K(y(r)("filter.applyButtonText")), 1)
3957
+ Z(N(y(r)("filter.applyButtonText")), 1)
3856
3958
  ]),
3857
3959
  _: 1
3858
3960
  }),
3859
- F(k, {
3860
- appearance: "btn-link",
3961
+ F(C, {
3962
+ appearance: "tertiary",
3861
3963
  "data-testid": "clear-filter",
3862
3964
  size: "small",
3863
- onClick: (C) => f(z.value)
3965
+ onClick: (k) => f(z.value)
3864
3966
  }, {
3865
3967
  default: h(() => [
3866
- Z(K(y(r)("filter.clearButtonText")), 1)
3968
+ Z(N(y(r)("filter.clearButtonText")), 1)
3867
3969
  ]),
3868
3970
  _: 2
3869
3971
  }, 1032, ["onClick"])
@@ -3874,12 +3976,17 @@ const Wi = {
3874
3976
  }, 1032, ["data-testid", "last-menu-item"]))), 128))
3875
3977
  ]),
3876
3978
  actionButton: h(() => [
3877
- F(k, { onClick: I }, {
3878
- default: h(() => [
3879
- Z(K(y(r)("filter.clearAllButtonText")), 1)
3880
- ]),
3881
- _: 1
3882
- })
3979
+ V("div", tl, [
3980
+ F(C, {
3981
+ size: "small",
3982
+ onClick: I
3983
+ }, {
3984
+ default: h(() => [
3985
+ Z(N(y(r)("filter.clearAllButtonText")), 1)
3986
+ ]),
3987
+ _: 1
3988
+ })
3989
+ ])
3883
3990
  ]),
3884
3991
  _: 1
3885
3992
  }, 512), [
@@ -3888,7 +3995,7 @@ const Wi = {
3888
3995
  ]));
3889
3996
  };
3890
3997
  }
3891
- }), Hs = /* @__PURE__ */ Ce(zs, [["__scopeId", "data-v-745f38c0"]]), Xe = /* @__PURE__ */ ae({
3998
+ }), rl = /* @__PURE__ */ ke(nl, [["__scopeId", "data-v-4ea260f0"]]), Xe = /* @__PURE__ */ re({
3892
3999
  __name: "PermissionsWrapper",
3893
4000
  props: {
3894
4001
  /**
@@ -3910,24 +4017,24 @@ const Wi = {
3910
4017
  }
3911
4018
  },
3912
4019
  setup(e) {
3913
- const n = e, t = E(void 0), r = j(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
4020
+ const n = e, t = O(void 0), r = T(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
3914
4021
  return xe(() => n.authFunction, async () => {
3915
4022
  t.value = await n.authFunction();
3916
- }, { immediate: !0 }), (o, a) => r.value ? Y(o.$slots, "default", {
4023
+ }, { immediate: !0 }), (o, a) => r.value ? W(o.$slots, "default", {
3917
4024
  key: 0,
3918
4025
  isAllowed: t.value
3919
4026
  }) : G("", !0);
3920
4027
  }
3921
- }), Js = { class: "form-section-wrapper" }, Ws = {
4028
+ }), ol = { class: "form-section-wrapper" }, al = {
3922
4029
  key: 0,
3923
4030
  class: "form-section-title"
3924
- }, Ys = {
4031
+ }, il = {
3925
4032
  key: 1,
3926
4033
  class: "form-section-description"
3927
- }, Zs = {
4034
+ }, sl = {
3928
4035
  key: 2,
3929
4036
  class: "form-section-footer"
3930
- }, Qs = { class: "form-section-content" }, Xs = /* @__PURE__ */ ae({
4037
+ }, ll = { class: "form-section-content" }, ul = /* @__PURE__ */ re({
3931
4038
  __name: "EntityFormSection",
3932
4039
  props: {
3933
4040
  title: {
@@ -3953,35 +4060,35 @@ const Wi = {
3953
4060
  },
3954
4061
  setup(e) {
3955
4062
  const n = ut();
3956
- return (t, r) => (g(), M("fieldset", {
4063
+ return (t, r) => (m(), $("fieldset", {
3957
4064
  class: Fe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
3958
4065
  }, [
3959
- R("div", Js, [
3960
- e.hideInfoHeader ? G("", !0) : (g(), M("div", {
4066
+ V("div", ol, [
4067
+ e.hideInfoHeader ? G("", !0) : (m(), $("div", {
3961
4068
  key: 0,
3962
4069
  class: Fe(["form-section-info", { sticky: e.stickyInfoHeader }])
3963
4070
  }, [
3964
- e.title ? (g(), M("h4", Ws, K(e.title), 1)) : G("", !0),
3965
- e.description || y(n).description ? (g(), M("div", Ys, [
3966
- Y(t.$slots, "description", {}, () => [
3967
- R("p", null, K(e.description), 1)
4071
+ e.title ? (m(), $("h4", al, N(e.title), 1)) : G("", !0),
4072
+ e.description || y(n).description ? (m(), $("div", il, [
4073
+ W(t.$slots, "description", {}, () => [
4074
+ V("p", null, N(e.description), 1)
3968
4075
  ], !0)
3969
4076
  ])) : G("", !0),
3970
- y(n).footer ? (g(), M("div", Zs, [
3971
- Y(t.$slots, "footer", {}, void 0, !0)
4077
+ y(n).footer ? (m(), $("div", sl, [
4078
+ W(t.$slots, "footer", {}, void 0, !0)
3972
4079
  ])) : G("", !0)
3973
4080
  ], 2)),
3974
- R("div", Qs, [
3975
- Y(t.$slots, "default", {}, void 0, !0)
4081
+ V("div", ll, [
4082
+ W(t.$slots, "default", {}, void 0, !0)
3976
4083
  ])
3977
4084
  ])
3978
4085
  ], 2));
3979
4086
  }
3980
- }), un = /* @__PURE__ */ Ce(Xs, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Kt, useDeleteUrlBuilder: el, useErrors: tl, useExternalLinkCreator: _l, useFetchUrlBuilder: wl, useFetcher: nl, useDebouncedFilter: ar, useStringHelpers: Il, useHelpers: Al, useGatewayFeatureSupported: Sl, useTruncationDetector: xl } = ue;
3981
- const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group-cta-text" }, al = {
4087
+ }), dn = /* @__PURE__ */ ke(ul, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Nt, useDeleteUrlBuilder: cl, useErrors: dl, useExternalLinkCreator: El, useFetchUrlBuilder: Ol, useFetcher: pl, useDebouncedFilter: cr, useStringHelpers: Nl, useHelpers: Fl, useGatewayFeatureSupported: Kl, useTruncationDetector: Bl } = ue;
4088
+ const fl = { class: "add-to-group-form-container" }, ml = { class: "add-to-group-cta-text" }, gl = {
3982
4089
  key: 0,
3983
4090
  class: "kong-ui-entity-add-to-groups-error"
3984
- }, il = { key: 0 }, sl = /* @__PURE__ */ ae({
4091
+ }, yl = { key: 0 }, hl = /* @__PURE__ */ re({
3985
4092
  __name: "AddToGroupModal",
3986
4093
  props: {
3987
4094
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3999,16 +4106,16 @@ const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group
3999
4106
  emits: ["cancel", "add:success", "add:partial-success", "error"],
4000
4107
  setup(e, { emit: n }) {
4001
4108
  var B;
4002
- const t = e, { i18n: { t: r } } = ct.useI18n(), { axiosInstance: o } = Kt({
4109
+ const t = e, { i18n: { t: r } } = ct.useI18n(), { axiosInstance: o } = Nt({
4003
4110
  headers: (B = t.config) == null ? void 0 : B.requestHeaders
4004
- }), a = E([]), {
4111
+ }), a = O([]), {
4005
4112
  debouncedQueryChange: i,
4006
4113
  loading: s,
4007
4114
  allRecords: l,
4008
4115
  error: c,
4009
4116
  loadItems: d,
4010
4117
  results: u
4011
- } = ar(
4118
+ } = cr(
4012
4119
  t.config,
4013
4120
  $e.list[t.config.app].all,
4014
4121
  "",
@@ -4016,64 +4123,64 @@ const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group
4016
4123
  fetchedItemsKey: "data",
4017
4124
  searchKeys: ["name", "id"]
4018
4125
  }
4019
- ), m = j(() => c.value ? r("consumer_groups.errors.general") : ""), f = E(0), I = j(() => l.value === void 0), v = j(() => u.value.map((C) => ({
4020
- label: C.name,
4021
- value: C.id,
4022
- selected: a.value.includes(C.id),
4023
- data: C
4126
+ ), g = T(() => c.value ? r("consumer_groups.errors.general") : ""), f = O(0), I = T(() => l.value === void 0), v = T(() => u.value.map((k) => ({
4127
+ label: k.name,
4128
+ value: k.id,
4129
+ selected: a.value.includes(k.id),
4130
+ data: k
4024
4131
  // we need this to determine whether or not to show the description text
4025
- }))), p = (C) => {
4026
- var T;
4027
- const x = I.value ? u.value.find((P) => P.id === C) : (T = l.value) == null ? void 0 : T.find((P) => P.id === C);
4028
- return x ? x.name : C;
4132
+ }))), p = (k) => {
4133
+ var M;
4134
+ const x = I.value ? u.value.find((P) => P.id === k) : (M = l.value) == null ? void 0 : M.find((P) => P.id === k);
4135
+ return x ? x.name : k;
4029
4136
  }, S = () => {
4030
4137
  A.value = "", b.value = [], w.value = [], n("cancel");
4031
- }, b = E([]), k = E(!1), A = E(""), ne = async () => {
4138
+ }, b = O([]), C = O(!1), A = O(""), ne = async () => {
4032
4139
  if (!a.value.length) {
4033
4140
  A.value = "", w.value = [], n("cancel");
4034
4141
  return;
4035
4142
  }
4036
- k.value = !0, A.value = "", b.value = [], w.value = [];
4143
+ C.value = !0, A.value = "", b.value = [], w.value = [];
4037
4144
  try {
4038
- const C = a.value.map((P) => z(P)), x = await Promise.allSettled(C);
4039
- let T = !0;
4145
+ const k = a.value.map((P) => z(P)), x = await Promise.allSettled(k);
4146
+ let M = !0;
4040
4147
  x.forEach((P) => {
4041
- P.status !== "fulfilled" && (T = !1);
4042
- }), T ? (b.value = [], w.value = [], n("add:success", a.value), a.value = []) : (b.value.length && n("add:partial-success", b.value), a.value = [], N(x));
4148
+ P.status !== "fulfilled" && (M = !1);
4149
+ }), M ? (b.value = [], w.value = [], n("add:success", a.value), a.value = []) : (b.value.length && n("add:partial-success", b.value), a.value = [], K(x));
4043
4150
  } catch {
4044
4151
  A.value = r("consumer_groups.errors.add"), n("error", A.value);
4045
4152
  } finally {
4046
- k.value = !1;
4153
+ C.value = !1;
4047
4154
  }
4048
- }, pe = j(() => {
4049
- var x, T, P, J;
4050
- let C = `${t.config.apiBaseUrl}${$e.list[t.config.app].forConsumer}`;
4051
- return t.config.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, ((x = t.config) == null ? void 0 : x.controlPlaneId) || "").replace(/{consumerId}/gi, ((T = t.config) == null ? void 0 : T.consumerId) || "") : t.config.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, (P = t.config) != null && P.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((J = t.config) == null ? void 0 : J.consumerId) || "")), C;
4052
- }), z = async (C) => {
4155
+ }, pe = T(() => {
4156
+ var x, M, P, J;
4157
+ let k = `${t.config.apiBaseUrl}${$e.list[t.config.app].forConsumer}`;
4158
+ return t.config.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, ((x = t.config) == null ? void 0 : x.controlPlaneId) || "").replace(/{consumerId}/gi, ((M = t.config) == null ? void 0 : M.consumerId) || "") : t.config.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, (P = t.config) != null && P.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((J = t.config) == null ? void 0 : J.consumerId) || "")), k;
4159
+ }), z = async (k) => {
4053
4160
  const x = {
4054
- group: C
4161
+ group: k
4055
4162
  };
4056
4163
  try {
4057
- const T = await o.post(pe.value, x);
4058
- return b.value.push(C), T;
4059
- } catch (T) {
4060
- let P = `${p(C)} - ${T.message}`;
4061
- return T.response.status === 409 && (P = `${p(C)} - ${r("consumer_groups.errors.already_added")}`), Promise.reject(Error(P));
4164
+ const M = await o.post(pe.value, x);
4165
+ return b.value.push(k), M;
4166
+ } catch (M) {
4167
+ let P = `${p(k)} - ${M.message}`;
4168
+ return M.response.status === 409 && (P = `${p(k)} - ${r("consumer_groups.errors.already_added")}`), Promise.reject(Error(P));
4062
4169
  }
4063
- }, w = E([]), N = (C) => {
4064
- w.value = C.map((x) => {
4065
- var T;
4066
- return (T = x.reason) == null ? void 0 : T.message;
4170
+ }, w = O([]), K = (k) => {
4171
+ w.value = k.map((x) => {
4172
+ var M;
4173
+ return (M = x.reason) == null ? void 0 : M.message;
4067
4174
  }).filter(Boolean);
4068
4175
  };
4069
4176
  return xe(v, () => {
4070
4177
  f.value++;
4071
4178
  }, { immediate: !0, deep: !0 }), Qe(async () => {
4072
4179
  await d();
4073
- }), (C, x) => {
4074
- const T = q("KMultiselect"), P = q("KAlert"), J = q("KPrompt");
4075
- return g(), V(J, {
4076
- "action-pending": k.value,
4180
+ }), (k, x) => {
4181
+ const M = q("KMultiselect"), P = q("KAlert"), J = q("KPrompt");
4182
+ return m(), R(J, {
4183
+ "action-pending": C.value,
4077
4184
  class: "kong-ui-entities-add-to-groups-modal",
4078
4185
  "data-testid": "add-to-group-modal",
4079
4186
  "is-visible": e.visible,
@@ -4082,9 +4189,9 @@ const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group
4082
4189
  onProceed: ne
4083
4190
  }, {
4084
4191
  "body-content": h(() => [
4085
- R("div", rl, [
4086
- R("p", ol, K(y(r)("consumer_groups.consumers.add.ctaText")), 1),
4087
- F(T, {
4192
+ V("div", fl, [
4193
+ V("p", ml, N(y(r)("consumer_groups.consumers.add.ctaText")), 1),
4194
+ F(M, {
4088
4195
  modelValue: a.value,
4089
4196
  "onUpdate:modelValue": x[0] || (x[0] = (Q) => a.value = Q),
4090
4197
  autosuggest: "",
@@ -4094,19 +4201,19 @@ const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group
4094
4201
  label: y(r)("consumer_groups.consumers.add.consumer_groups_label"),
4095
4202
  loading: y(s),
4096
4203
  placeholder: y(r)("consumer_groups.consumers.add.consumer_group_placeholder"),
4097
- readonly: k.value,
4204
+ readonly: C.value,
4098
4205
  required: "",
4099
4206
  width: "100%",
4100
4207
  onQueryChange: y(i)
4101
4208
  }, null, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
4102
- A.value || m.value || w.value.length ? (g(), M("div", al, [
4209
+ A.value || g.value || w.value.length ? (m(), $("div", gl, [
4103
4210
  F(P, { appearance: "danger" }, {
4104
4211
  alertMessage: h(() => [
4105
- R("p", null, K(y(r)("consumer_groups.errors.add")), 1),
4106
- w.value.length ? (g(), M("ul", il, [
4107
- (g(!0), M(ve, null, ye(w.value, (Q, X) => (g(), M("li", { key: X }, K(Q), 1))), 128))
4212
+ V("p", null, N(y(r)("consumer_groups.errors.add")), 1),
4213
+ w.value.length ? (m(), $("ul", yl, [
4214
+ (m(!0), $(ve, null, ye(w.value, (Q, X) => (m(), $("li", { key: X }, N(Q), 1))), 128))
4108
4215
  ])) : G("", !0),
4109
- R("div", null, K(A.value || m.value), 1)
4216
+ V("div", null, N(A.value || g.value), 1)
4110
4217
  ]),
4111
4218
  _: 1
4112
4219
  })
@@ -4123,7 +4230,7 @@ const Ft = (e, n) => {
4123
4230
  for (const [r, o] of n)
4124
4231
  t[r] = o;
4125
4232
  return t;
4126
- }, ll = /* @__PURE__ */ Ft(sl, [["__scopeId", "data-v-4d30f3c5"]]), ul = { class: "kong-ui-entities-consumer-groups-list" }, cl = { key: 1 }, dl = /* @__PURE__ */ ae({
4233
+ }, vl = /* @__PURE__ */ Ft(hl, [["__scopeId", "data-v-4d30f3c5"]]), bl = { class: "kong-ui-entities-consumer-groups-list" }, Cl = { key: 1 }, kl = /* @__PURE__ */ re({
4127
4234
  __name: "ConsumerGroupList",
4128
4235
  props: {
4129
4236
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4164,129 +4271,129 @@ const Ft = (e, n) => {
4164
4271
  },
4165
4272
  emits: ["error", "copy:success", "copy:error", "delete:success", "add:success", "remove:success"],
4166
4273
  setup(e, { emit: n }) {
4167
- var Nt;
4168
- const t = e, { i18nT: r, i18n: { t: o } } = ct.useI18n(), a = wt(), { axiosInstance: i } = Kt({
4169
- headers: (Nt = t.config) == null ? void 0 : Nt.requestHeaders
4170
- }), s = E(1), l = j(() => !!t.config.consumerId), c = j(() => t.config.app !== "kongManager" || !!t.config.disableSorting), d = {
4274
+ var Kt;
4275
+ const t = e, { i18nT: r, i18n: { t: o } } = ct.useI18n(), a = wt(), { axiosInstance: i } = Nt({
4276
+ headers: (Kt = t.config) == null ? void 0 : Kt.requestHeaders
4277
+ }), s = O(1), l = T(() => !!t.config.consumerId), c = T(() => t.config.app !== "kongManager" || !!t.config.disableSorting), d = {
4171
4278
  name: { label: o("consumer_groups.list.table_headers.name"), searchable: !0, sortable: !0 }
4172
4279
  };
4173
4280
  t.config.app === "kongManager" && (d.consumers_count = { label: o("consumer_groups.list.table_headers.consumers_count"), searchable: !1, sortable: !1 }), d.tags = { label: o("consumer_groups.list.table_headers.tags"), sortable: !1 };
4174
- const u = d, m = (O) => ({
4175
- "data-testid": O.username ?? O.custom_id ?? O.id
4176
- }), f = j(() => {
4177
- var H, le, ke, Oe;
4178
- let O = `${t.config.apiBaseUrl}${$e.list[t.config.app][l.value ? "forConsumer" : "all"]}`;
4179
- return t.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (ke = t.config) != null && ke.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Oe = t.config) == null ? void 0 : Oe.consumerId) || "")), O;
4180
- }), I = E(""), v = j(() => {
4181
- const O = t.config.app === "konnect" || t.config.isExactMatch;
4182
- return O ? {
4183
- isExactMatch: O,
4281
+ const u = d, g = (E) => ({
4282
+ "data-testid": E.username ?? E.custom_id ?? E.id
4283
+ }), f = T(() => {
4284
+ var H, le, Ce, Ee;
4285
+ let E = `${t.config.apiBaseUrl}${$e.list[t.config.app][l.value ? "forConsumer" : "all"]}`;
4286
+ return t.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (Ce = t.config) != null && Ce.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Ee = t.config) == null ? void 0 : Ee.consumerId) || "")), E;
4287
+ }), I = O(""), v = T(() => {
4288
+ const E = t.config.app === "konnect" || t.config.isExactMatch;
4289
+ return E ? {
4290
+ isExactMatch: E,
4184
4291
  fields: {
4185
4292
  username: d.name,
4186
4293
  id: { label: o("consumer_groups.list.table_headers.id") }
4187
4294
  },
4188
4295
  placeholder: o("consumer_groups.search.placeholder")
4189
4296
  } : {
4190
- isExactMatch: O,
4297
+ isExactMatch: E,
4191
4298
  fields: {
4192
4299
  name: d.name
4193
4300
  },
4194
4301
  schema: t.config.filterSchema
4195
4302
  };
4196
- }), p = j(() => l.value ? "consumer_groups" : void 0), { fetcher: S, fetcherState: b } = nl(t.config, f.value, p.value), k = () => {
4303
+ }), p = T(() => l.value ? "consumer_groups" : void 0), { fetcher: S, fetcherState: b } = pl(t.config, f.value, p.value), C = () => {
4197
4304
  I.value = "";
4198
4305
  }, A = () => {
4199
4306
  s.value++;
4200
- }, ne = E(""), pe = (O, H) => {
4201
- const le = O.id;
4307
+ }, ne = O(""), pe = (E, H) => {
4308
+ const le = E.id;
4202
4309
  if (!H(le)) {
4203
4310
  n("copy:error", {
4204
- entity: O,
4311
+ entity: E,
4205
4312
  field: "id",
4206
4313
  message: o("consumer_groups.errors.copy")
4207
4314
  });
4208
4315
  return;
4209
4316
  }
4210
4317
  n("copy:success", {
4211
- entity: O,
4318
+ entity: E,
4212
4319
  field: "id",
4213
4320
  message: o("consumer_groups.copy.success", { val: le })
4214
4321
  });
4215
- }, z = (O, H) => {
4216
- const le = JSON.stringify(O);
4322
+ }, z = (E, H) => {
4323
+ const le = JSON.stringify(E);
4217
4324
  if (!H(le)) {
4218
4325
  n("copy:error", {
4219
- entity: O,
4326
+ entity: E,
4220
4327
  message: o("consumer_groups.errors.copy")
4221
4328
  });
4222
4329
  return;
4223
4330
  }
4224
4331
  n("copy:success", {
4225
- entity: O,
4332
+ entity: E,
4226
4333
  message: o("consumer_groups.copy.success_brief")
4227
4334
  });
4228
- }, w = async (O) => {
4335
+ }, w = async (E) => {
4229
4336
  var le;
4230
- await ((le = t.canRetrieve) == null ? void 0 : le.call(t, O)) && a.push(t.config.getViewRoute(O.id));
4231
- }, N = (O) => ({
4337
+ await ((le = t.canRetrieve) == null ? void 0 : le.call(t, E)) && a.push(t.config.getViewRoute(E.id));
4338
+ }, K = (E) => ({
4232
4339
  label: o("consumer_groups.actions.view"),
4233
- to: t.config.getViewRoute(O)
4234
- }), B = (O) => ({
4340
+ to: t.config.getViewRoute(E)
4341
+ }), B = (E) => ({
4235
4342
  label: o("consumer_groups.actions.edit"),
4236
- to: t.config.getEditRoute(O)
4237
- }), C = E(void 0), x = E(!1), T = E(!1), P = E(""), J = el(t.config, f.value), Q = (O) => {
4238
- C.value = O, x.value = !0;
4343
+ to: t.config.getEditRoute(E)
4344
+ }), k = O(void 0), x = O(!1), M = O(!1), P = O(""), J = cl(t.config, f.value), Q = (E) => {
4345
+ k.value = E, x.value = !0;
4239
4346
  }, X = () => {
4240
4347
  x.value = !1;
4241
4348
  }, ee = async () => {
4242
- var O, H, le;
4243
- if ((O = C.value) != null && O.id) {
4244
- T.value = !0;
4349
+ var E, H, le;
4350
+ if ((E = k.value) != null && E.id) {
4351
+ M.value = !0;
4245
4352
  try {
4246
- await i.delete(J(C.value.id)), T.value = !1, x.value = !1, s.value++, n("delete:success", C.value);
4247
- } catch (ke) {
4248
- P.value = ((le = (H = ke.response) == null ? void 0 : H.data) == null ? void 0 : le.message) || ke.message || o("consumer_groups.errors.delete"), n("error", ke);
4353
+ await i.delete(J(k.value.id)), M.value = !1, x.value = !1, s.value++, n("delete:success", k.value);
4354
+ } catch (Ce) {
4355
+ P.value = ((le = (H = Ce.response) == null ? void 0 : H.data) == null ? void 0 : le.message) || Ce.message || o("consumer_groups.errors.delete"), n("error", Ce);
4249
4356
  } finally {
4250
- T.value = !1;
4357
+ M.value = !1;
4251
4358
  }
4252
4359
  }
4253
- }, ie = E(!1), Ve = () => {
4360
+ }, ie = O(!1), De = () => {
4254
4361
  ie.value = !0;
4255
4362
  }, _ = () => {
4256
4363
  ie.value = !1;
4257
- }, L = (O, H) => {
4258
- H || _(), s.value++, n("add:success", O);
4259
- }, re = () => {
4260
- l.value && Ve();
4261
- }, U = E(void 0), D = E(!1), ge = E(""), _e = (O) => {
4262
- U.value = O, D.value = !0;
4364
+ }, L = (E, H) => {
4365
+ H || _(), s.value++, n("add:success", E);
4366
+ }, oe = () => {
4367
+ l.value && De();
4368
+ }, U = O(void 0), D = O(!1), ge = O(""), _e = (E) => {
4369
+ U.value = E, D.value = !0;
4263
4370
  }, ce = () => {
4264
4371
  D.value = !1, U.value = void 0;
4265
- }, Ne = j(() => {
4266
- var H, le, ke, Oe;
4267
- let O = `${t.config.apiBaseUrl}${$e.list[t.config.app].oneForConsumer}`;
4268
- return t.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (ke = t.config) != null && ke.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Oe = t.config) == null ? void 0 : Oe.consumerId) || "")), O;
4269
- }), De = E(!1), ir = async () => {
4372
+ }, Ke = T(() => {
4373
+ var H, le, Ce, Ee;
4374
+ let E = `${t.config.apiBaseUrl}${$e.list[t.config.app].oneForConsumer}`;
4375
+ return t.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (Ce = t.config) != null && Ce.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Ee = t.config) == null ? void 0 : Ee.consumerId) || "")), E;
4376
+ }), Ge = O(!1), dr = async () => {
4270
4377
  if (U.value) {
4271
- De.value = !0;
4378
+ Ge.value = !0;
4272
4379
  try {
4273
- const O = Ne.value.replace(/{consumerGroupId}/gi, U.value.id);
4274
- await i.delete(O), n("remove:success", U.value), ce(), s.value++;
4275
- } catch (O) {
4276
- ge.value = O.message || o("consumer_groups.errors.delete"), n("error", O);
4380
+ const E = Ke.value.replace(/{consumerGroupId}/gi, U.value.id);
4381
+ await i.delete(E), n("remove:success", U.value), ce(), s.value++;
4382
+ } catch (E) {
4383
+ ge.value = E.message || o("consumer_groups.errors.delete"), n("error", E);
4277
4384
  } finally {
4278
- De.value = !1;
4385
+ Ge.value = !1;
4279
4386
  }
4280
4387
  }
4281
4388
  };
4282
- xe(b, (O) => {
4283
- if (O.status === Ee.Error) {
4284
- ne.value = o("consumer_groups.errors.general"), n("error", O.error);
4389
+ xe(b, (E) => {
4390
+ if (E.status === Oe.Error) {
4391
+ ne.value = o("consumer_groups.errors.general"), n("error", E.error);
4285
4392
  return;
4286
4393
  }
4287
4394
  ne.value = "";
4288
4395
  });
4289
- const pt = E({
4396
+ const pt = O({
4290
4397
  ctaPath: l.value ? void 0 : t.config.createRoute,
4291
4398
  ctaText: void 0,
4292
4399
  message: o("consumer_groups.list.empty_state.description"),
@@ -4294,10 +4401,10 @@ const Ft = (e, n) => {
4294
4401
  });
4295
4402
  return Qe(async () => {
4296
4403
  await t.canCreate() && (pt.value.title = l.value ? o("consumer_groups.list.empty_state.title_for_consumer") : o("consumer_groups.list.empty_state.title"), pt.value.ctaText = l.value ? o("consumer_groups.actions.add_to_group") : o("consumer_groups.actions.create"));
4297
- }), (O, H) => {
4298
- const le = q("KButton"), ke = q("KBadge"), Oe = q("KTruncate"), Ge = q("KDropdownItem"), Bt = q("KClipboardProvider"), sr = q("KPrompt");
4299
- return g(), M("div", ul, [
4300
- F(y($s), {
4404
+ }), (E, H) => {
4405
+ const le = q("KButton"), Ce = q("KBadge"), Ee = q("KTruncate"), ze = q("KDropdownItem"), Bt = q("KClipboardProvider"), pr = q("KPrompt");
4406
+ return m(), $("div", bl, [
4407
+ F(y(Ls), {
4301
4408
  "cache-identifier": e.cacheIdentifier,
4302
4409
  "disable-pagination": l.value,
4303
4410
  "disable-pagination-page-jump": "",
@@ -4310,18 +4417,18 @@ const Ft = (e, n) => {
4310
4417
  "pagination-type": "offset",
4311
4418
  "preferences-storage-key": "kong-ui-entities-consumer-groups-list",
4312
4419
  query: I.value,
4313
- "row-attributes": m,
4420
+ "row-attributes": g,
4314
4421
  "table-headers": y(u),
4315
- onClearSearchInput: k,
4316
- "onClick:row": H[3] || (H[3] = (W) => w(W)),
4317
- onEmptyStateCtaClicked: re,
4422
+ onClearSearchInput: C,
4423
+ "onClick:row": H[3] || (H[3] = (Y) => w(Y)),
4424
+ onEmptyStateCtaClicked: oe,
4318
4425
  onSort: A
4319
4426
  }, {
4320
4427
  "toolbar-filter": h(() => [
4321
- l.value ? G("", !0) : (g(), V(y(Hs), {
4428
+ l.value ? G("", !0) : (m(), R(y(rl), {
4322
4429
  key: 0,
4323
4430
  modelValue: I.value,
4324
- "onUpdate:modelValue": H[0] || (H[0] = (W) => I.value = W),
4431
+ "onUpdate:modelValue": H[0] || (H[0] = (Y) => I.value = Y),
4325
4432
  config: v.value
4326
4433
  }, null, 8, ["modelValue", "config"]))
4327
4434
  ]),
@@ -4335,10 +4442,10 @@ const Ft = (e, n) => {
4335
4442
  "data-testid": "toolbar-add-consumer-group",
4336
4443
  icon: "plus",
4337
4444
  to: e.config.consumerId ? void 0 : e.config.createRoute,
4338
- onClick: H[1] || (H[1] = () => e.config.consumerId ? Ve() : void 0)
4445
+ onClick: H[1] || (H[1] = () => e.config.consumerId ? De() : void 0)
4339
4446
  }, {
4340
4447
  default: h(() => [
4341
- Z(K(e.config.consumerId ? y(o)("consumer_groups.actions.add_to_group") : y(o)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
4448
+ Z(N(e.config.consumerId ? y(o)("consumer_groups.actions.add_to_group") : y(o)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
4342
4449
  ]),
4343
4450
  _: 1
4344
4451
  }, 8, ["to"])
@@ -4346,38 +4453,38 @@ const Ft = (e, n) => {
4346
4453
  _: 1
4347
4454
  }, 8, ["auth-function"])
4348
4455
  ]),
4349
- name: h(({ rowValue: W }) => [
4350
- R("b", null, K(W ?? "-"), 1)
4456
+ name: h(({ rowValue: Y }) => [
4457
+ V("b", null, N(Y ?? "-"), 1)
4351
4458
  ]),
4352
- consumers_count: h(({ rowValue: W }) => [
4353
- Z(K(W ?? "-"), 1)
4459
+ consumers_count: h(({ rowValue: Y }) => [
4460
+ Z(N(Y ?? "-"), 1)
4354
4461
  ]),
4355
- tags: h(({ rowValue: W }) => [
4356
- (W == null ? void 0 : W.length) > 0 ? (g(), V(Oe, { key: 0 }, {
4462
+ tags: h(({ rowValue: Y }) => [
4463
+ (Y == null ? void 0 : Y.length) > 0 ? (m(), R(Ee, { key: 0 }, {
4357
4464
  default: h(() => [
4358
- (g(!0), M(ve, null, ye(W, (Be) => (g(), V(ke, {
4465
+ (m(!0), $(ve, null, ye(Y, (Be) => (m(), R(Ce, {
4359
4466
  key: Be,
4360
4467
  onClick: H[2] || (H[2] = rt(() => {
4361
4468
  }, ["stop"]))
4362
4469
  }, {
4363
4470
  default: h(() => [
4364
- Z(K(Be), 1)
4471
+ Z(N(Be), 1)
4365
4472
  ]),
4366
4473
  _: 2
4367
4474
  }, 1024))), 128))
4368
4475
  ]),
4369
4476
  _: 2
4370
- }, 1024)) : (g(), M("span", cl, "-"))
4477
+ }, 1024)) : (m(), $("span", Cl, "-"))
4371
4478
  ]),
4372
- actions: h(({ row: W }) => [
4479
+ actions: h(({ row: Y }) => [
4373
4480
  F(Bt, null, {
4374
4481
  default: h(({ copyToClipboard: Be }) => [
4375
- F(Ge, {
4482
+ F(ze, {
4376
4483
  "data-testid": "action-entity-copy-id",
4377
- onClick: (lr) => pe(W, Be)
4484
+ onClick: (fr) => pe(Y, Be)
4378
4485
  }, {
4379
4486
  default: h(() => [
4380
- Z(K(y(o)("consumer_groups.actions.copy_id")), 1)
4487
+ Z(N(y(o)("consumer_groups.actions.copy_id")), 1)
4381
4488
  ]),
4382
4489
  _: 2
4383
4490
  }, 1032, ["onClick"])
@@ -4386,12 +4493,12 @@ const Ft = (e, n) => {
4386
4493
  }, 1024),
4387
4494
  F(Bt, null, {
4388
4495
  default: h(({ copyToClipboard: Be }) => [
4389
- F(Ge, {
4496
+ F(ze, {
4390
4497
  "data-testid": "action-entity-copy-json",
4391
- onClick: (lr) => z(W, Be)
4498
+ onClick: (fr) => z(Y, Be)
4392
4499
  }, {
4393
4500
  default: h(() => [
4394
- Z(K(y(o)("consumer_groups.actions.copy_json")), 1)
4501
+ Z(N(y(o)("consumer_groups.actions.copy_json")), 1)
4395
4502
  ]),
4396
4503
  _: 2
4397
4504
  }, 1032, ["onClick"])
@@ -4399,40 +4506,40 @@ const Ft = (e, n) => {
4399
4506
  _: 2
4400
4507
  }, 1024),
4401
4508
  F(y(Xe), {
4402
- "auth-function": () => e.canRetrieve(W)
4509
+ "auth-function": () => e.canRetrieve(Y)
4403
4510
  }, {
4404
4511
  default: h(() => [
4405
- F(Ge, {
4512
+ F(ze, {
4406
4513
  "data-testid": "action-entity-view",
4407
4514
  "has-divider": "",
4408
- item: N(W.id)
4515
+ item: K(Y.id)
4409
4516
  }, null, 8, ["item"])
4410
4517
  ]),
4411
4518
  _: 2
4412
4519
  }, 1032, ["auth-function"]),
4413
4520
  F(y(Xe), {
4414
- "auth-function": () => e.canEdit(W)
4521
+ "auth-function": () => e.canEdit(Y)
4415
4522
  }, {
4416
4523
  default: h(() => [
4417
- F(Ge, {
4524
+ F(ze, {
4418
4525
  "data-testid": "action-entity-edit",
4419
- item: B(W.id)
4526
+ item: B(Y.id)
4420
4527
  }, null, 8, ["item"])
4421
4528
  ]),
4422
4529
  _: 2
4423
4530
  }, 1032, ["auth-function"]),
4424
4531
  F(y(Xe), {
4425
- "auth-function": () => e.canDelete(W)
4532
+ "auth-function": () => e.canDelete(Y)
4426
4533
  }, {
4427
4534
  default: h(() => [
4428
- F(Ge, {
4535
+ F(ze, {
4536
+ danger: "",
4429
4537
  "data-testid": "action-entity-delete",
4430
4538
  "has-divider": "",
4431
- "is-dangerous": "",
4432
- onClick: () => e.config.consumerId ? _e(W) : Q(W)
4539
+ onClick: () => e.config.consumerId ? _e(Y) : Q(Y)
4433
4540
  }, {
4434
4541
  default: h(() => [
4435
- Z(K(e.config.consumerId ? y(o)("consumer_groups.actions.exit") : y(o)("consumer_groups.actions.delete")), 1)
4542
+ Z(N(e.config.consumerId ? y(o)("consumer_groups.actions.exit") : y(o)("consumer_groups.actions.delete")), 1)
4436
4543
  ]),
4437
4544
  _: 2
4438
4545
  }, 1032, ["onClick"])
@@ -4442,35 +4549,35 @@ const Ft = (e, n) => {
4442
4549
  ]),
4443
4550
  _: 1
4444
4551
  }, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
4445
- F(y(Es), {
4446
- "action-pending": T.value,
4552
+ F(y(Rs), {
4553
+ "action-pending": M.value,
4447
4554
  "data-testid": "delete-consumer-group-modal",
4448
4555
  description: y(o)("consumer_groups.delete.description"),
4449
- "entity-name": C.value && (C.value.name || C.value.id),
4450
- "entity-type": y(dn).ConsumerGroup,
4556
+ "entity-name": k.value && (k.value.name || k.value.id),
4557
+ "entity-type": y(yn).ConsumerGroup,
4451
4558
  error: P.value,
4452
4559
  title: y(o)("consumer_groups.delete.title"),
4453
4560
  visible: x.value,
4454
4561
  onCancel: X,
4455
4562
  onProceed: ee
4456
4563
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
4457
- e.config.consumerId ? (g(), V(ll, {
4564
+ e.config.consumerId ? (m(), R(vl, {
4458
4565
  key: 0,
4459
4566
  config: e.config,
4460
4567
  "data-testid": "add-to-group-modal",
4461
4568
  visible: ie.value,
4462
- "onAdd:partialSuccess": H[4] || (H[4] = (W) => L(W, !0)),
4463
- "onAdd:success": H[5] || (H[5] = (W) => L(W)),
4569
+ "onAdd:partialSuccess": H[4] || (H[4] = (Y) => L(Y, !0)),
4570
+ "onAdd:success": H[5] || (H[5] = (Y) => L(Y)),
4464
4571
  onCancel: _
4465
4572
  }, null, 8, ["config", "visible"])) : G("", !0),
4466
- e.config.consumerId && U.value ? (g(), V(sr, {
4573
+ e.config.consumerId && U.value ? (m(), R(pr, {
4467
4574
  key: 1,
4468
4575
  "data-testid": "exit-group-modal",
4469
4576
  "is-visible": D.value,
4470
4577
  title: y(o)("consumer_groups.consumers.exit.title"),
4471
4578
  type: "danger",
4472
4579
  onCanceled: ce,
4473
- onProceed: ir
4580
+ onProceed: dr
4474
4581
  }, {
4475
4582
  "body-content": h(() => [
4476
4583
  F(y(r), {
@@ -4479,19 +4586,19 @@ const Ft = (e, n) => {
4479
4586
  tag: "p"
4480
4587
  }, Te({
4481
4588
  consumerGroup: h(() => [
4482
- R("strong", null, K(U.value.name || U.value.id), 1)
4589
+ V("strong", null, N(U.value.name || U.value.id), 1)
4483
4590
  ]),
4484
4591
  _: 2
4485
4592
  }, [
4486
4593
  e.config.consumerUsername ? {
4487
4594
  name: "consumer",
4488
4595
  fn: h(() => [
4489
- R("strong", null, K(e.config.consumerUsername), 1)
4596
+ V("strong", null, N(e.config.consumerUsername), 1)
4490
4597
  ]),
4491
4598
  key: "0"
4492
4599
  } : void 0
4493
4600
  ]), 1032, ["keypath"]),
4494
- R("p", null, K(y(o)("consumer_groups.consumers.exit.description")), 1)
4601
+ V("p", null, N(y(o)("consumer_groups.consumers.exit.description")), 1)
4495
4602
  ]),
4496
4603
  _: 1
4497
4604
  }, 8, ["is-visible", "title"])) : G("", !0)
@@ -4499,10 +4606,10 @@ const Ft = (e, n) => {
4499
4606
  };
4500
4607
  }
4501
4608
  });
4502
- const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { class: "kong-ui-entities-consumer-group-form" }, fl = { class: "select-item-label" }, ml = {
4609
+ const Pl = /* @__PURE__ */ Ft(kl, [["__scopeId", "data-v-e2fa781a"]]), _l = { class: "kong-ui-entities-consumer-group-form" }, wl = { class: "select-item-label" }, Il = {
4503
4610
  key: 0,
4504
4611
  class: "select-item-desc"
4505
- }, gl = /* @__PURE__ */ ae({
4612
+ }, Al = /* @__PURE__ */ re({
4506
4613
  __name: "ConsumerGroupForm",
4507
4614
  props: {
4508
4615
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4520,7 +4627,7 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4520
4627
  },
4521
4628
  emits: ["update", "error", "loading"],
4522
4629
  setup(e, { emit: n }) {
4523
- var ee, ie, Ve;
4630
+ var ee, ie, De;
4524
4631
  const t = e, { i18n: { t: r } } = ct.useI18n(), o = wt(), a = Pt({
4525
4632
  fields: {
4526
4633
  name: "",
@@ -4539,24 +4646,24 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4539
4646
  error: c,
4540
4647
  loadItems: d,
4541
4648
  results: u
4542
- } = ar(t.config, (ie = $e.form[(ee = t.config) == null ? void 0 : ee.app]) == null ? void 0 : ie.consumersList, "", {
4649
+ } = cr(t.config, (ie = $e.form[(ee = t.config) == null ? void 0 : ee.app]) == null ? void 0 : ie.consumersList, "", {
4543
4650
  fetchedItemsKey: "data",
4544
4651
  searchKeys: ["username", "custom_id", "id"]
4545
- }), { axiosInstance: m } = Kt({
4546
- headers: (Ve = t.config) == null ? void 0 : Ve.requestHeaders
4547
- }), { getMessageFromError: f } = tl(), I = j(() => u.value.map((_) => ({
4652
+ }), { axiosInstance: g } = Nt({
4653
+ headers: (De = t.config) == null ? void 0 : De.requestHeaders
4654
+ }), { getMessageFromError: f } = dl(), I = T(() => u.value.map((_) => ({
4548
4655
  label: _.username || _.custom_id,
4549
4656
  value: _.id,
4550
4657
  selected: a.fields.consumers.includes(_.id),
4551
4658
  data: _
4552
4659
  // we need this to determine whether or not to show the description text
4553
- }))), v = j(() => {
4660
+ }))), v = T(() => {
4554
4661
  var _, L;
4555
4662
  return (L = $e.form[(_ = t.config) == null ? void 0 : _.app]) == null ? void 0 : L.edit;
4556
- }), p = j(() => t.consumerGroupId ? nt.Edit : nt.Create), S = j(() => !!a.fields.name && !w.value), b = j(() => JSON.stringify(a.fields) !== JSON.stringify(i)), k = (_, L = "", re = "") => {
4557
- var D, ge, _e, ce, Ne, De;
4663
+ }), p = T(() => t.consumerGroupId ? nt.Edit : nt.Create), S = T(() => !!a.fields.name && !w.value), b = T(() => JSON.stringify(a.fields) !== JSON.stringify(i)), C = (_, L = "", oe = "") => {
4664
+ var D, ge, _e, ce, Ke, Ge;
4558
4665
  let U = `${(D = t.config) == null ? void 0 : D.apiBaseUrl}${$e.form[(ge = t.config) == null ? void 0 : ge.app][_]}`;
4559
- return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? U = U.replace(/{controlPlaneId}/gi, ((ce = t.config) == null ? void 0 : ce.controlPlaneId) || "") : ((Ne = t.config) == null ? void 0 : Ne.app) === "kongManager" && (U = U.replace(/\/{workspace}/gi, (De = t.config) != null && De.workspace ? `/${t.config.workspace}` : "")), U = U.replace(/{id}/gi, L || t.consumerGroupId), (_ === "addConsumer" || _ === "removeConsumer") && (U = U.replace(/{consumerId}/gi, re)), U;
4666
+ return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? U = U.replace(/{controlPlaneId}/gi, ((ce = t.config) == null ? void 0 : ce.controlPlaneId) || "") : ((Ke = t.config) == null ? void 0 : Ke.app) === "kongManager" && (U = U.replace(/\/{workspace}/gi, (Ge = t.config) != null && Ge.workspace ? `/${t.config.workspace}` : "")), U = U.replace(/{id}/gi, L || t.consumerGroupId), (_ === "addConsumer" || _ === "removeConsumer") && (U = U.replace(/{consumerId}/gi, oe)), U;
4560
4667
  }, A = () => {
4561
4668
  var _;
4562
4669
  o.push(((_ = t.config) == null ? void 0 : _.cancelRoute) || { name: "consumer-group-list" });
@@ -4565,66 +4672,66 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4565
4672
  }, pe = (_) => {
4566
4673
  n("loading", _);
4567
4674
  }, z = async (_) => {
4568
- var re, U, D, ge, _e;
4569
- a.fields.name = ((re = _ == null ? void 0 : _.item) == null ? void 0 : re.name) || ((U = _ == null ? void 0 : _.consumer_group) == null ? void 0 : U.name) || (_ == null ? void 0 : _.name) || "";
4675
+ var oe, U, D, ge, _e;
4676
+ a.fields.name = ((oe = _ == null ? void 0 : _.item) == null ? void 0 : oe.name) || ((U = _ == null ? void 0 : _.consumer_group) == null ? void 0 : U.name) || (_ == null ? void 0 : _.name) || "";
4570
4677
  const L = ((D = _ == null ? void 0 : _.item) == null ? void 0 : D.tags) || (_ == null ? void 0 : _.consumer_group.tags) || (_ == null ? void 0 : _.tags) || [];
4571
4678
  if (a.fields.tags = (L == null ? void 0 : L.join(", ")) || "", "consumers" in _)
4572
4679
  a.fields.consumers = ((ge = _ == null ? void 0 : _.consumers) == null ? void 0 : ge.map((ce) => ce.id)) || [];
4573
4680
  else
4574
4681
  try {
4575
- const { data: ce } = await m.get(k("getConsumers"));
4576
- a.fields.consumers = "consumers" in ce ? (_e = ce == null ? void 0 : ce.consumers) == null ? void 0 : _e.map((Ne) => Ne.id) : [];
4682
+ const { data: ce } = await g.get(C("getConsumers"));
4683
+ a.fields.consumers = "consumers" in ce ? (_e = ce == null ? void 0 : ce.consumers) == null ? void 0 : _e.map((Ke) => Ke.id) : [];
4577
4684
  } catch (ce) {
4578
4685
  x(ce);
4579
4686
  }
4580
4687
  Object.assign(i, a.fields);
4581
- }, w = j(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")), N = () => {
4688
+ }, w = T(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")), K = () => {
4582
4689
  var _, L;
4583
4690
  return {
4584
4691
  name: a.fields.name,
4585
- tags: (L = (_ = a.fields.tags.split(",")) == null ? void 0 : _.map((re) => String(re || "").trim())) == null ? void 0 : L.filter((re) => re !== "")
4692
+ tags: (L = (_ = a.fields.tags.split(",")) == null ? void 0 : _.map((oe) => String(oe || "").trim())) == null ? void 0 : L.filter((oe) => oe !== "")
4586
4693
  };
4587
- }, B = async (_, L = "") => await m.post(k("addConsumer", L, _), { consumer: _ }), C = async (_, L = "") => await m.delete(k("removeConsumer", L, _)), x = (_) => {
4694
+ }, B = async (_, L = "") => await g.post(C("addConsumer", L, _), { consumer: _ }), k = async (_, L = "") => await g.delete(C("removeConsumer", L, _)), x = (_) => {
4588
4695
  a.errorMessage = f(_), n("error", _);
4589
- }, T = (_ = t.consumerGroupId) => {
4696
+ }, M = (_ = t.consumerGroupId) => {
4590
4697
  Object.assign(i, a.fields), n("update", { ...a.fields, id: _ });
4591
- }, P = (_, L, re = t.consumerGroupId) => {
4698
+ }, P = (_, L, oe = t.consumerGroupId) => {
4592
4699
  const U = _ == null ? void 0 : _.find((D) => D.status !== "fulfilled");
4593
4700
  U ? x({
4594
4701
  code: U.status,
4595
4702
  message: L
4596
- }) : T(re);
4703
+ }) : M(oe);
4597
4704
  }, J = async () => {
4598
4705
  let _ = "";
4599
4706
  try {
4600
- const { data: L } = await m.post(k("create"), N());
4707
+ const { data: L } = await g.post(C("create"), K());
4601
4708
  _ = "item" in L ? L.item.id : L.id;
4602
4709
  } catch (L) {
4603
4710
  x(L);
4604
4711
  }
4605
4712
  if (a.fields.consumers.length > 0 && _)
4606
4713
  try {
4607
- const L = a.fields.consumers.map((U) => B(U, _)), re = await Promise.allSettled(L);
4608
- P(re, r("consumer_groups.errors.add_consumer"), _);
4714
+ const L = a.fields.consumers.map((U) => B(U, _)), oe = await Promise.allSettled(L);
4715
+ P(oe, r("consumer_groups.errors.add_consumer"), _);
4609
4716
  } catch (L) {
4610
4717
  x(L);
4611
4718
  }
4612
4719
  else
4613
- a.fields.consumers.length === 0 && _ && T(_);
4720
+ a.fields.consumers.length === 0 && _ && M(_);
4614
4721
  }, Q = async () => {
4615
- var re;
4722
+ var oe;
4616
4723
  try {
4617
- ((re = t.config) == null ? void 0 : re.app) === "konnect" ? await m.put(k("edit"), N()) : await m.patch(k("edit"), N());
4724
+ ((oe = t.config) == null ? void 0 : oe.app) === "konnect" ? await g.put(C("edit"), K()) : await g.patch(C("edit"), K());
4618
4725
  } catch (U) {
4619
4726
  x(U);
4620
4727
  }
4621
4728
  const _ = a.fields.consumers.filter((U) => !i.consumers.includes(U)), L = i.consumers.filter((U) => !a.fields.consumers.includes(U));
4622
4729
  if (L.length === 0 && _.length === 0)
4623
- T();
4730
+ M();
4624
4731
  else {
4625
4732
  if (L.length > 0)
4626
4733
  try {
4627
- const U = L.map((ge) => C(ge)), D = await Promise.allSettled(U);
4734
+ const U = L.map((ge) => k(ge)), D = await Promise.allSettled(U);
4628
4735
  P(D, r("consumer_groups.errors.remove_consumer"));
4629
4736
  } catch (U) {
4630
4737
  x(U);
@@ -4647,9 +4754,9 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4647
4754
  return Qe(async () => {
4648
4755
  await d();
4649
4756
  }), (_, L) => {
4650
- const re = q("KInput"), U = q("KMultiselect");
4651
- return g(), M("div", pl, [
4652
- F(y(Cs), {
4757
+ const oe = q("KInput"), U = q("KMultiselect");
4758
+ return m(), $("div", _l, [
4759
+ F(y(js), {
4653
4760
  "can-submit": S.value && b.value,
4654
4761
  config: e.config,
4655
4762
  "edit-id": e.consumerGroupId,
@@ -4663,12 +4770,12 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4663
4770
  onSubmit: X
4664
4771
  }, {
4665
4772
  default: h(() => [
4666
- F(y(un), {
4773
+ F(y(dn), {
4667
4774
  description: y(r)("consumer_groups.form.general_info.description"),
4668
4775
  title: y(r)("consumer_groups.form.general_info.title")
4669
4776
  }, {
4670
4777
  default: h(() => [
4671
- F(re, {
4778
+ F(oe, {
4672
4779
  modelValue: a.fields.name,
4673
4780
  "onUpdate:modelValue": L[0] || (L[0] = (D) => a.fields.name = D),
4674
4781
  modelModifiers: { trim: !0 },
@@ -4679,7 +4786,7 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4679
4786
  required: "",
4680
4787
  type: "text"
4681
4788
  }, null, 8, ["modelValue", "label", "placeholder"]),
4682
- F(re, {
4789
+ F(oe, {
4683
4790
  modelValue: a.fields.tags,
4684
4791
  "onUpdate:modelValue": L[1] || (L[1] = (D) => a.fields.tags = D),
4685
4792
  modelModifiers: { trim: !0 },
@@ -4697,7 +4804,7 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4697
4804
  ]),
4698
4805
  _: 1
4699
4806
  }, 8, ["description", "title"]),
4700
- F(y(un), {
4807
+ F(y(dn), {
4701
4808
  description: y(r)("consumer_groups.form.consumers.description"),
4702
4809
  "has-divider": "",
4703
4810
  title: y(r)("consumer_groups.form.consumers.title")
@@ -4719,8 +4826,8 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4719
4826
  "item-template": h(({ item: D }) => {
4720
4827
  var ge, _e, ce;
4721
4828
  return [
4722
- R("div", fl, K(D.label), 1),
4723
- (ge = D == null ? void 0 : D.data) != null && ge.username && ((_e = D == null ? void 0 : D.data) != null && _e.custom_id) ? (g(), M("div", ml, K((ce = D == null ? void 0 : D.data) == null ? void 0 : ce.custom_id), 1)) : G("", !0)
4829
+ V("div", wl, N(D.label), 1),
4830
+ (ge = D == null ? void 0 : D.data) != null && ge.username && ((_e = D == null ? void 0 : D.data) != null && _e.custom_id) ? (m(), $("div", Il, N((ce = D == null ? void 0 : D.data) == null ? void 0 : ce.custom_id), 1)) : G("", !0)
4724
4831
  ];
4725
4832
  }),
4726
4833
  _: 1
@@ -4735,7 +4842,7 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4735
4842
  };
4736
4843
  }
4737
4844
  });
4738
- const $l = /* @__PURE__ */ Ft(gl, [["__scopeId", "data-v-102d40d2"]]), yl = { class: "kong-ui-consumer-group-entity-config-card" }, jl = /* @__PURE__ */ ae({
4845
+ const Ll = /* @__PURE__ */ Ft(Al, [["__scopeId", "data-v-102d40d2"]]), Sl = { class: "kong-ui-consumer-group-entity-config-card" }, ql = /* @__PURE__ */ re({
4739
4846
  __name: "ConsumerGroupConfigCard",
4740
4847
  props: {
4741
4848
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4762,7 +4869,7 @@ const $l = /* @__PURE__ */ Ft(gl, [["__scopeId", "data-v-102d40d2"]]), yl = { cl
4762
4869
  },
4763
4870
  emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
4764
4871
  setup(e) {
4765
- const n = e, { i18n: { t } } = ct.useI18n(), r = j(() => $e.form[n.config.app].edit), o = E({
4872
+ const n = e, { i18n: { t } } = ct.useI18n(), r = T(() => $e.form[n.config.app].edit), o = O({
4766
4873
  id: {},
4767
4874
  name: {},
4768
4875
  created_at: {},
@@ -4771,8 +4878,8 @@ const $l = /* @__PURE__ */ Ft(gl, [["__scopeId", "data-v-102d40d2"]]), yl = { cl
4771
4878
  tooltip: t("consumer_groups.form.fields.tags.tooltip")
4772
4879
  }
4773
4880
  });
4774
- return (a, i) => (g(), M("div", yl, [
4775
- F(y(hs), {
4881
+ return (a, i) => (m(), $("div", Sl, [
4882
+ F(y(xs), {
4776
4883
  config: e.config,
4777
4884
  "config-card-doc": e.configCardDoc,
4778
4885
  "config-schema": o.value,
@@ -4788,7 +4895,7 @@ const $l = /* @__PURE__ */ Ft(gl, [["__scopeId", "data-v-102d40d2"]]), yl = { cl
4788
4895
  }
4789
4896
  });
4790
4897
  export {
4791
- jl as ConsumerGroupConfigCard,
4792
- $l as ConsumerGroupForm,
4793
- Tl as ConsumerGroupList
4898
+ ql as ConsumerGroupConfigCard,
4899
+ Ll as ConsumerGroupForm,
4900
+ Pl as ConsumerGroupList
4794
4901
  };