@kong-ui-public/entities-plugins 9.93.1 → 9.93.2

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,8 +1,8 @@
1
1
  var lh = Object.defineProperty;
2
2
  var uh = (e, t, n) => t in e ? lh(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var ft = (e, t, n) => uh(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { defineComponent as ve, toRef as Be, inject as rt, ref as re, computed as D, watch as Ne, onMounted as Pt, resolveComponent as Ee, createElementBlock as ee, openBlock as w, createVNode as P, markRaw as No, provide as st, createBlock as G, withCtx as F, createElementVNode as X, createCommentVNode as Ce, Fragment as Le, renderList as qe, toDisplayString as ge, unref as p, toValue as Pe, useAttrs as Vn, useSlots as Zt, mergeProps as He, createSlots as nt, renderSlot as Fe, normalizeProps as gn, guardReactiveProps as xn, createPropsRestProxy as Jt, resolveDynamicComponent as mt, Transition as ch, mergeModels as ys, useModel as Ar, onBeforeMount as $n, createTextVNode as De, normalizeClass as ze, isRef as Ui, useTemplateRef as it, withKeys as pu, withModifiers as Lt, nextTick as at, useCssVars as dl, reactive as eo, toRaw as Ir, watchEffect as Jd, shallowRef as ro, onBeforeUnmount as ia, getCurrentScope as Qd, effectScope as ef, getCurrentInstance as Hi, onScopeDispose as bi, toRefs as dh, customRef as fh, h as Ze, normalizeStyle as Nt, onUnmounted as fl, isMemoSame as ph, readonly as mh, warn as gh, useId as tf, Teleport as nf } from "vue";
5
- import { useStringHelpers as ra, ConfigurationSchemaType as At, useAxios as qn, useErrors as Qo, useDebouncedFilter as hh, EntityFormBlock as mu, useHelpers as aa, EntityBaseFormType as zn, EntityBaseForm as vh, SupportedEntityType as _s, TerraformCodeBlock as yh, YamlCodeBlock as _h, JsonCodeBlock as bh, useTableState as wh, useGatewayFeatureSupported as Eh, useFetcher as kh, useDeleteUrlBuilder as Ch, FetcherStatus as Sh, EntityBaseTable as xh, PermissionsWrapper as Un, TableTags as Ah, EntityFilter as Ih, EntityToggleModal as Th, EntityDeleteModal as of, EntityTypes as rf, ConfigurationSchemaSection as wo, useSchemaProvider as $h, EntityBaseConfigCard as Nh, InternalLinkItem as ai } from "@kong-ui-public/entities-shared";
4
+ import { defineComponent as ve, toRef as Be, inject as rt, ref as re, computed as D, watch as Ne, onMounted as Pt, resolveComponent as Ee, createElementBlock as ee, openBlock as w, createVNode as P, markRaw as No, provide as st, createBlock as G, withCtx as F, createElementVNode as X, createCommentVNode as Ce, Fragment as Le, renderList as Ve, toDisplayString as ge, unref as p, toValue as Pe, useAttrs as qn, useSlots as Zt, mergeProps as He, createSlots as nt, renderSlot as Fe, normalizeProps as gn, guardReactiveProps as xn, createPropsRestProxy as Jt, resolveDynamicComponent as mt, Transition as ch, mergeModels as ys, useModel as Ar, onBeforeMount as $n, createTextVNode as De, normalizeClass as ze, isRef as Ui, useTemplateRef as it, withKeys as pu, withModifiers as Lt, nextTick as at, useCssVars as dl, reactive as eo, toRaw as Ir, watchEffect as Jd, shallowRef as ro, onBeforeUnmount as ia, getCurrentScope as Qd, effectScope as ef, getCurrentInstance as Hi, onScopeDispose as bi, toRefs as dh, customRef as fh, h as Ze, normalizeStyle as Nt, onUnmounted as fl, isMemoSame as ph, readonly as mh, warn as gh, useId as tf, Teleport as nf } from "vue";
5
+ import { useStringHelpers as ra, ConfigurationSchemaType as At, useAxios as Vn, useErrors as Qo, useDebouncedFilter as hh, EntityFormBlock as mu, useHelpers as aa, EntityBaseFormType as zn, EntityBaseForm as vh, SupportedEntityType as _s, TerraformCodeBlock as yh, YamlCodeBlock as _h, JsonCodeBlock as bh, useTableState as wh, useGatewayFeatureSupported as Eh, useFetcher as kh, useDeleteUrlBuilder as Ch, FetcherStatus as Sh, EntityBaseTable as xh, PermissionsWrapper as Un, TableTags as Ah, EntityFilter as Ih, EntityToggleModal as Th, EntityDeleteModal as of, EntityTypes as rf, ConfigurationSchemaSection as wo, useSchemaProvider as $h, EntityBaseConfigCard as Nh, InternalLinkItem as ai } from "@kong-ui-public/entities-shared";
6
6
  import { marked as _r } from "marked";
7
7
  import { useRouter as sa, useRoute as Oh } from "vue-router";
8
8
  import { createI18n as bt, i18nTComponent as Ph } from "@kong-ui-public/i18n";
@@ -11,7 +11,7 @@ import { PluginGroup as xB, PluginScope as AB } from "@kong-ui-public/entities-p
11
11
  import { composables as Mh, FORMS_CONFIG as la, getSharedFormName as af, customFields as bs, AUTOFILL_SLOT as ei, VueFormGenerator as wi, AUTOFILL_SLOT_NAME as to, FORMS_API_KEY as Rh, sharedForms as gu } from "@kong-ui-public/forms";
12
12
  import { VaultSecretPickerProvider as Ba, VaultSecretPicker as Fh } from "@kong-ui-public/entities-vaults";
13
13
  import "@kong-ui-public/entities-vaults/dist/style.css";
14
- import { ChevronDownIcon as ws, TrashIcon as Tr, AddIcon as Yt, RemoveIcon as pl, SparklesIcon as Dh, VitalsIcon as Lh, StackIcon as Kh, GatewayIcon as Bh, CodeblockIcon as sf, NetworkIcon as jh, WarningIcon as Vh, MoreIcon as lf, UnfoldMoreIcon as hu, UnfoldLessIcon as vu, AutoLayoutIcon as qh, ArrowLeftIcon as zh, ChevronDoubleLeftIcon as Uh, ChevronDoubleRightIcon as Hh, UndoIcon as Gh, RedoIcon as Yh, ExternalLinkIcon as Wh, CloseIcon as uf, ExpandIcon as Xh, DesignIcon as Zh, BookIcon as yu, PlugIcon as Jh } from "@kong/icons";
14
+ import { ChevronDownIcon as ws, TrashIcon as Tr, AddIcon as Yt, RemoveIcon as pl, SparklesIcon as Dh, VitalsIcon as Lh, StackIcon as Kh, GatewayIcon as Bh, CodeblockIcon as sf, NetworkIcon as jh, WarningIcon as qh, MoreIcon as lf, UnfoldMoreIcon as hu, UnfoldLessIcon as vu, AutoLayoutIcon as Vh, ArrowLeftIcon as zh, ChevronDoubleLeftIcon as Uh, ChevronDoubleRightIcon as Hh, UndoIcon as Gh, RedoIcon as Yh, ExternalLinkIcon as Wh, CloseIcon as uf, ExpandIcon as Xh, DesignIcon as Zh, BookIcon as yu, PlugIcon as Jh } from "@kong/icons";
15
15
  import { KTextArea as Qh, KInput as ev, KCheckbox as tv, KLabel as nv, KButton as dn, KMultiselect as ov, KSelect as iv, KCard as _u, KCollapse as cf, KRadio as Es, KAlert as rv, KTooltip as $r, KDropdown as av, KDropdownItem as bu, KSlideout as sv, KSegmentedControl as lv } from "@kong/kongponents";
16
16
  import { PartialType as nr, RedisConfigurationForm as uv } from "@kong-ui-public/entities-redis-configurations";
17
17
  import "@kong-ui-public/entities-redis-configurations/dist/style.css";
@@ -1309,7 +1309,7 @@ const Yn = (e) => {
1309
1309
  value: "current-cp",
1310
1310
  label: l("custom_field.key_auth_identity_realms.cp_label"),
1311
1311
  group: l("custom_field.key_auth_identity_realms.cp_group_label")
1312
- }, d = rt(la), { axiosInstance: c } = qn(d == null ? void 0 : d.axiosRequestConfig), f = () => {
1312
+ }, d = rt(la), { axiosInstance: c } = Vn(d == null ? void 0 : d.axiosRequestConfig), f = () => {
1313
1313
  if ((d == null ? void 0 : d.app) === "konnect") {
1314
1314
  const b = /\b(us|eu|au|me|in)\b/.exec((d == null ? void 0 : d.apiBaseUrl) || "");
1315
1315
  if (b)
@@ -1447,7 +1447,7 @@ const Yn = (e) => {
1447
1447
  type: "number"
1448
1448
  }
1449
1449
  }
1450
- ], Vv = {
1450
+ ], qv = {
1451
1451
  fields: jv
1452
1452
  }, Su = {
1453
1453
  fields: [
@@ -1469,7 +1469,7 @@ const Yn = (e) => {
1469
1469
  tags: mo
1470
1470
  }
1471
1471
  ]
1472
- }, qv = [
1472
+ }, Vv = [
1473
1473
  {
1474
1474
  id: {
1475
1475
  uuid: !0,
@@ -1517,7 +1517,7 @@ const Yn = (e) => {
1517
1517
  }
1518
1518
  }
1519
1519
  ], zv = {
1520
- fields: qv
1520
+ fields: Vv
1521
1521
  }, Uv = {
1522
1522
  fields: [
1523
1523
  {
@@ -2556,7 +2556,7 @@ const Yn = (e) => {
2556
2556
  }, Qv = {
2557
2557
  acls: Mv,
2558
2558
  basicauth_credentials: Fv,
2559
- keyauth_credentials: Vv,
2559
+ keyauth_credentials: qv,
2560
2560
  keyauth_enc_credentials: Jv,
2561
2561
  oauth2_credentials: Wv,
2562
2562
  hmacauth_credentials: zv,
@@ -3227,7 +3227,7 @@ const Yn = (e) => {
3227
3227
  keyFromObject: "id"
3228
3228
  }
3229
3229
  };
3230
- var mf = typeof global == "object" && global && global.Object === Object && global, Ey = typeof self == "object" && self && self.Object === Object && self, hn = mf || Ey || Function("return this")(), qt = hn.Symbol, gf = Object.prototype, ky = gf.hasOwnProperty, Cy = gf.toString, si = qt ? qt.toStringTag : void 0;
3230
+ var mf = typeof global == "object" && global && global.Object === Object && global, Ey = typeof self == "object" && self && self.Object === Object && self, hn = mf || Ey || Function("return this")(), Vt = hn.Symbol, gf = Object.prototype, ky = gf.hasOwnProperty, Cy = gf.toString, si = Vt ? Vt.toStringTag : void 0;
3231
3231
  function Sy(e) {
3232
3232
  var t = ky.call(e, si), n = e[si];
3233
3233
  try {
@@ -3242,7 +3242,7 @@ var xy = Object.prototype, Ay = xy.toString;
3242
3242
  function Iy(e) {
3243
3243
  return Ay.call(e);
3244
3244
  }
3245
- var Ty = "[object Null]", $y = "[object Undefined]", Tu = qt ? qt.toStringTag : void 0;
3245
+ var Ty = "[object Null]", $y = "[object Undefined]", Tu = Vt ? Vt.toStringTag : void 0;
3246
3246
  function go(e) {
3247
3247
  return e == null ? e === void 0 ? $y : Ty : Tu && Tu in Object(e) ? Sy(e) : Iy(e);
3248
3248
  }
@@ -3258,7 +3258,7 @@ function hf(e, t) {
3258
3258
  i[n] = t(e[n], n, e);
3259
3259
  return i;
3260
3260
  }
3261
- var Wt = Array.isArray, $u = qt ? qt.prototype : void 0, Nu = $u ? $u.toString : void 0;
3261
+ var Wt = Array.isArray, $u = Vt ? Vt.prototype : void 0, Nu = $u ? $u.toString : void 0;
3262
3262
  function vf(e) {
3263
3263
  if (typeof e == "string")
3264
3264
  return e;
@@ -3304,7 +3304,7 @@ function ho(e) {
3304
3304
  }
3305
3305
  return "";
3306
3306
  }
3307
- var By = /[\\^$.*+?()[\]{}|]/g, jy = /^\[object .+?Constructor\]$/, Vy = Function.prototype, qy = Object.prototype, zy = Vy.toString, Uy = qy.hasOwnProperty, Hy = RegExp(
3307
+ var By = /[\\^$.*+?()[\]{}|]/g, jy = /^\[object .+?Constructor\]$/, qy = Function.prototype, Vy = Object.prototype, zy = qy.toString, Uy = Vy.hasOwnProperty, Hy = RegExp(
3308
3308
  "^" + zy.call(Uy).replace(By, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
3309
3309
  );
3310
3310
  function Gy(e) {
@@ -3459,8 +3459,8 @@ var _f = Object.prototype, g_ = _f.hasOwnProperty, h_ = _f.propertyIsEnumerable,
3459
3459
  function v_() {
3460
3460
  return !1;
3461
3461
  }
3462
- var bf = typeof exports == "object" && exports && !exports.nodeType && exports, Fu = bf && typeof module == "object" && module && !module.nodeType && module, y_ = Fu && Fu.exports === bf, Du = y_ ? hn.Buffer : void 0, __ = Du ? Du.isBuffer : void 0, Ni = __ || v_, b_ = "[object Arguments]", w_ = "[object Array]", E_ = "[object Boolean]", k_ = "[object Date]", C_ = "[object Error]", S_ = "[object Function]", x_ = "[object Map]", A_ = "[object Number]", I_ = "[object Object]", T_ = "[object RegExp]", $_ = "[object Set]", N_ = "[object String]", O_ = "[object WeakMap]", P_ = "[object ArrayBuffer]", M_ = "[object DataView]", R_ = "[object Float32Array]", F_ = "[object Float64Array]", D_ = "[object Int8Array]", L_ = "[object Int16Array]", K_ = "[object Int32Array]", B_ = "[object Uint8Array]", j_ = "[object Uint8ClampedArray]", V_ = "[object Uint16Array]", q_ = "[object Uint32Array]", tt = {};
3463
- tt[R_] = tt[F_] = tt[D_] = tt[L_] = tt[K_] = tt[B_] = tt[j_] = tt[V_] = tt[q_] = !0;
3462
+ var bf = typeof exports == "object" && exports && !exports.nodeType && exports, Fu = bf && typeof module == "object" && module && !module.nodeType && module, y_ = Fu && Fu.exports === bf, Du = y_ ? hn.Buffer : void 0, __ = Du ? Du.isBuffer : void 0, Ni = __ || v_, b_ = "[object Arguments]", w_ = "[object Array]", E_ = "[object Boolean]", k_ = "[object Date]", C_ = "[object Error]", S_ = "[object Function]", x_ = "[object Map]", A_ = "[object Number]", I_ = "[object Object]", T_ = "[object RegExp]", $_ = "[object Set]", N_ = "[object String]", O_ = "[object WeakMap]", P_ = "[object ArrayBuffer]", M_ = "[object DataView]", R_ = "[object Float32Array]", F_ = "[object Float64Array]", D_ = "[object Int8Array]", L_ = "[object Int16Array]", K_ = "[object Int32Array]", B_ = "[object Uint8Array]", j_ = "[object Uint8ClampedArray]", q_ = "[object Uint16Array]", V_ = "[object Uint32Array]", tt = {};
3463
+ tt[R_] = tt[F_] = tt[D_] = tt[L_] = tt[K_] = tt[B_] = tt[j_] = tt[q_] = tt[V_] = !0;
3464
3464
  tt[b_] = tt[w_] = tt[P_] = tt[E_] = tt[M_] = tt[k_] = tt[C_] = tt[S_] = tt[x_] = tt[A_] = tt[I_] = tt[T_] = tt[$_] = tt[N_] = tt[O_] = !1;
3465
3465
  function z_(e) {
3466
3466
  return An(e) && _l(e.length) && !!tt[go(e)];
@@ -3470,10 +3470,10 @@ function wl(e) {
3470
3470
  return e(t);
3471
3471
  };
3472
3472
  }
3473
- var wf = typeof exports == "object" && exports && !exports.nodeType && exports, Ei = wf && typeof module == "object" && module && !module.nodeType && module, U_ = Ei && Ei.exports === wf, Va = U_ && mf.process, Do = function() {
3473
+ var wf = typeof exports == "object" && exports && !exports.nodeType && exports, Ei = wf && typeof module == "object" && module && !module.nodeType && module, U_ = Ei && Ei.exports === wf, qa = U_ && mf.process, Do = function() {
3474
3474
  try {
3475
3475
  var e = Ei && Ei.require && Ei.require("util").types;
3476
- return e || Va && Va.binding && Va.binding("util");
3476
+ return e || qa && qa.binding && qa.binding("util");
3477
3477
  } catch {
3478
3478
  }
3479
3479
  }(), Lu = Do && Do.isTypedArray, El = Lu ? wl(Lu) : z_, H_ = Object.prototype, G_ = H_.hasOwnProperty;
@@ -3705,7 +3705,7 @@ function Il(e, t) {
3705
3705
  e[i + n] = t[n];
3706
3706
  return e;
3707
3707
  }
3708
- var Ku = qt ? qt.isConcatSpreadable : void 0;
3708
+ var Ku = Vt ? Vt.isConcatSpreadable : void 0;
3709
3709
  function Mb(e) {
3710
3710
  return Wt(e) || da(e) || !!(Ku && e && e[Ku]);
3711
3711
  }
@@ -3725,7 +3725,7 @@ function xf(e) {
3725
3725
  return i_(c_(e, void 0, Fb), e + "");
3726
3726
  }
3727
3727
  var Tl = kf(Object.getPrototypeOf, Object), Db = "[object Object]", Lb = Function.prototype, Kb = Object.prototype, Af = Lb.toString, Bb = Kb.hasOwnProperty, jb = Af.call(Object);
3728
- function Vb(e) {
3728
+ function qb(e) {
3729
3729
  if (!An(e) || go(e) != Db)
3730
3730
  return !1;
3731
3731
  var t = Tl(e);
@@ -3741,7 +3741,7 @@ function If(e, t, n) {
3741
3741
  r[o] = e[o + t];
3742
3742
  return r;
3743
3743
  }
3744
- function qb(e, t, n) {
3744
+ function Vb(e, t, n) {
3745
3745
  var o = e.length;
3746
3746
  return n = n === void 0 ? o : n, !t && n >= o ? e : If(e, t, n);
3747
3747
  }
@@ -3762,7 +3762,7 @@ function f0(e) {
3762
3762
  function p0(e) {
3763
3763
  return function(t) {
3764
3764
  t = xl(t);
3765
- var n = Tf(t) ? f0(t) : void 0, o = n ? n[0] : t.charAt(0), i = n ? qb(n, 1).join("") : t.slice(1);
3765
+ var n = Tf(t) ? f0(t) : void 0, o = n ? n[0] : t.charAt(0), i = n ? Vb(n, 1).join("") : t.slice(1);
3766
3766
  return o[e]() + i;
3767
3767
  };
3768
3768
  }
@@ -3806,11 +3806,11 @@ function w0(e, t) {
3806
3806
  function E0(e, t) {
3807
3807
  return e && Gi(t, Cl(t), e);
3808
3808
  }
3809
- var Ff = typeof exports == "object" && exports && !exports.nodeType && exports, Bu = Ff && typeof module == "object" && module && !module.nodeType && module, k0 = Bu && Bu.exports === Ff, ju = k0 ? hn.Buffer : void 0, Vu = ju ? ju.allocUnsafe : void 0;
3809
+ var Ff = typeof exports == "object" && exports && !exports.nodeType && exports, Bu = Ff && typeof module == "object" && module && !module.nodeType && module, k0 = Bu && Bu.exports === Ff, ju = k0 ? hn.Buffer : void 0, qu = ju ? ju.allocUnsafe : void 0;
3810
3810
  function C0(e, t) {
3811
3811
  if (t)
3812
3812
  return e.slice();
3813
- var n = e.length, o = Vu ? Vu(n) : new e.constructor(n);
3813
+ var n = e.length, o = qu ? qu(n) : new e.constructor(n);
3814
3814
  return e.copy(o), o;
3815
3815
  }
3816
3816
  function S0(e, t) {
@@ -3823,8 +3823,8 @@ function S0(e, t) {
3823
3823
  function Df() {
3824
3824
  return [];
3825
3825
  }
3826
- var x0 = Object.prototype, A0 = x0.propertyIsEnumerable, qu = Object.getOwnPropertySymbols, $l = qu ? function(e) {
3827
- return e == null ? [] : (e = Object(e), S0(qu(e), function(t) {
3826
+ var x0 = Object.prototype, A0 = x0.propertyIsEnumerable, Vu = Object.getOwnPropertySymbols, $l = Vu ? function(e) {
3827
+ return e == null ? [] : (e = Object(e), S0(Vu(e), function(t) {
3828
3828
  return A0.call(e, t);
3829
3829
  }));
3830
3830
  } : Df;
@@ -3849,8 +3849,8 @@ function As(e) {
3849
3849
  function Bf(e) {
3850
3850
  return Kf(e, Cl, Lf);
3851
3851
  }
3852
- var Is = vo(hn, "DataView"), Ts = vo(hn, "Promise"), $s = vo(hn, "Set"), zu = "[object Map]", N0 = "[object Object]", Uu = "[object Promise]", Hu = "[object Set]", Gu = "[object WeakMap]", Yu = "[object DataView]", O0 = ho(Is), P0 = ho(Pi), M0 = ho(Ts), R0 = ho($s), F0 = ho(Cs), Vt = go;
3853
- (Is && Vt(new Is(new ArrayBuffer(1))) != Yu || Pi && Vt(new Pi()) != zu || Ts && Vt(Ts.resolve()) != Uu || $s && Vt(new $s()) != Hu || Cs && Vt(new Cs()) != Gu) && (Vt = function(e) {
3852
+ var Is = vo(hn, "DataView"), Ts = vo(hn, "Promise"), $s = vo(hn, "Set"), zu = "[object Map]", N0 = "[object Object]", Uu = "[object Promise]", Hu = "[object Set]", Gu = "[object WeakMap]", Yu = "[object DataView]", O0 = ho(Is), P0 = ho(Pi), M0 = ho(Ts), R0 = ho($s), F0 = ho(Cs), qt = go;
3853
+ (Is && qt(new Is(new ArrayBuffer(1))) != Yu || Pi && qt(new Pi()) != zu || Ts && qt(Ts.resolve()) != Uu || $s && qt(new $s()) != Hu || Cs && qt(new Cs()) != Gu) && (qt = function(e) {
3854
3854
  var t = go(e), n = t == N0 ? e.constructor : void 0, o = n ? ho(n) : "";
3855
3855
  if (o)
3856
3856
  switch (o) {
@@ -3882,12 +3882,12 @@ function B0(e, t) {
3882
3882
  return new e.constructor(n, e.byteOffset, e.byteLength);
3883
3883
  }
3884
3884
  var j0 = /\w*$/;
3885
- function V0(e) {
3885
+ function q0(e) {
3886
3886
  var t = new e.constructor(e.source, j0.exec(e));
3887
3887
  return t.lastIndex = e.lastIndex, t;
3888
3888
  }
3889
- var Wu = qt ? qt.prototype : void 0, Xu = Wu ? Wu.valueOf : void 0;
3890
- function q0(e) {
3889
+ var Wu = Vt ? Vt.prototype : void 0, Xu = Wu ? Wu.valueOf : void 0;
3890
+ function V0(e) {
3891
3891
  return Xu ? Object(Xu.call(e)) : {};
3892
3892
  }
3893
3893
  function z0(e, t) {
@@ -3921,11 +3921,11 @@ function cw(e, t, n) {
3921
3921
  case Z0:
3922
3922
  return new o(e);
3923
3923
  case W0:
3924
- return V0(e);
3924
+ return q0(e);
3925
3925
  case X0:
3926
3926
  return new o();
3927
3927
  case J0:
3928
- return q0(e);
3928
+ return V0(e);
3929
3929
  }
3930
3930
  }
3931
3931
  function dw(e) {
@@ -3933,15 +3933,15 @@ function dw(e) {
3933
3933
  }
3934
3934
  var fw = "[object Map]";
3935
3935
  function pw(e) {
3936
- return An(e) && Vt(e) == fw;
3936
+ return An(e) && qt(e) == fw;
3937
3937
  }
3938
3938
  var Zu = Do && Do.isMap, mw = Zu ? wl(Zu) : pw, gw = "[object Set]";
3939
3939
  function hw(e) {
3940
- return An(e) && Vt(e) == gw;
3940
+ return An(e) && qt(e) == gw;
3941
3941
  }
3942
- var Ju = Do && Do.isSet, vw = Ju ? wl(Ju) : hw, yw = 1, _w = 2, bw = 4, jf = "[object Arguments]", ww = "[object Array]", Ew = "[object Boolean]", kw = "[object Date]", Cw = "[object Error]", Vf = "[object Function]", Sw = "[object GeneratorFunction]", xw = "[object Map]", Aw = "[object Number]", qf = "[object Object]", Iw = "[object RegExp]", Tw = "[object Set]", $w = "[object String]", Nw = "[object Symbol]", Ow = "[object WeakMap]", Pw = "[object ArrayBuffer]", Mw = "[object DataView]", Rw = "[object Float32Array]", Fw = "[object Float64Array]", Dw = "[object Int8Array]", Lw = "[object Int16Array]", Kw = "[object Int32Array]", Bw = "[object Uint8Array]", jw = "[object Uint8ClampedArray]", Vw = "[object Uint16Array]", qw = "[object Uint32Array]", et = {};
3943
- et[jf] = et[ww] = et[Pw] = et[Mw] = et[Ew] = et[kw] = et[Rw] = et[Fw] = et[Dw] = et[Lw] = et[Kw] = et[xw] = et[Aw] = et[qf] = et[Iw] = et[Tw] = et[$w] = et[Nw] = et[Bw] = et[jw] = et[Vw] = et[qw] = !0;
3944
- et[Cw] = et[Vf] = et[Ow] = !1;
3942
+ var Ju = Do && Do.isSet, vw = Ju ? wl(Ju) : hw, yw = 1, _w = 2, bw = 4, jf = "[object Arguments]", ww = "[object Array]", Ew = "[object Boolean]", kw = "[object Date]", Cw = "[object Error]", qf = "[object Function]", Sw = "[object GeneratorFunction]", xw = "[object Map]", Aw = "[object Number]", Vf = "[object Object]", Iw = "[object RegExp]", Tw = "[object Set]", $w = "[object String]", Nw = "[object Symbol]", Ow = "[object WeakMap]", Pw = "[object ArrayBuffer]", Mw = "[object DataView]", Rw = "[object Float32Array]", Fw = "[object Float64Array]", Dw = "[object Int8Array]", Lw = "[object Int16Array]", Kw = "[object Int32Array]", Bw = "[object Uint8Array]", jw = "[object Uint8ClampedArray]", qw = "[object Uint16Array]", Vw = "[object Uint32Array]", et = {};
3943
+ et[jf] = et[ww] = et[Pw] = et[Mw] = et[Ew] = et[kw] = et[Rw] = et[Fw] = et[Dw] = et[Lw] = et[Kw] = et[xw] = et[Aw] = et[Vf] = et[Iw] = et[Tw] = et[$w] = et[Nw] = et[Bw] = et[jw] = et[qw] = et[Vw] = !0;
3944
+ et[Cw] = et[qf] = et[Ow] = !1;
3945
3945
  function ki(e, t, n, o, i, r) {
3946
3946
  var a, s = t & yw, l = t & _w, u = t & bw;
3947
3947
  if (n && (a = i ? n(e, o, i, r) : n(e)), a !== void 0)
@@ -3953,10 +3953,10 @@ function ki(e, t, n, o, i, r) {
3953
3953
  if (a = K0(e), !s)
3954
3954
  return Zy(e, a);
3955
3955
  } else {
3956
- var c = Vt(e), f = c == Vf || c == Sw;
3956
+ var c = qt(e), f = c == qf || c == Sw;
3957
3957
  if (Ni(e))
3958
3958
  return C0(e, s);
3959
- if (c == qf || c == jf || f && !i) {
3959
+ if (c == Vf || c == jf || f && !i) {
3960
3960
  if (a = l || f ? {} : dw(e), !s)
3961
3961
  return l ? $0(e, E0(a, e)) : I0(e, w0(a, e));
3962
3962
  } else {
@@ -4052,7 +4052,7 @@ function e1(e) {
4052
4052
  n[++t] = o;
4053
4053
  }), n;
4054
4054
  }
4055
- var t1 = 1, n1 = 2, o1 = "[object Boolean]", i1 = "[object Date]", r1 = "[object Error]", a1 = "[object Map]", s1 = "[object Number]", l1 = "[object RegExp]", u1 = "[object Set]", c1 = "[object String]", d1 = "[object Symbol]", f1 = "[object ArrayBuffer]", p1 = "[object DataView]", Qu = qt ? qt.prototype : void 0, qa = Qu ? Qu.valueOf : void 0;
4055
+ var t1 = 1, n1 = 2, o1 = "[object Boolean]", i1 = "[object Date]", r1 = "[object Error]", a1 = "[object Map]", s1 = "[object Number]", l1 = "[object RegExp]", u1 = "[object Set]", c1 = "[object String]", d1 = "[object Symbol]", f1 = "[object ArrayBuffer]", p1 = "[object DataView]", Qu = Vt ? Vt.prototype : void 0, Va = Qu ? Qu.valueOf : void 0;
4056
4056
  function m1(e, t, n, o, i, r, a) {
4057
4057
  switch (n) {
4058
4058
  case p1:
@@ -4083,8 +4083,8 @@ function m1(e, t, n, o, i, r, a) {
4083
4083
  var d = zf(s(e), s(t), o, i, r, a);
4084
4084
  return a.delete(e), d;
4085
4085
  case d1:
4086
- if (qa)
4087
- return qa.call(e) == qa.call(t);
4086
+ if (Va)
4087
+ return Va.call(e) == Va.call(t);
4088
4088
  }
4089
4089
  return !1;
4090
4090
  }
@@ -4122,7 +4122,7 @@ function y1(e, t, n, o, i, r) {
4122
4122
  }
4123
4123
  var _1 = 1, ec = "[object Arguments]", tc = "[object Array]", rr = "[object Object]", b1 = Object.prototype, nc = b1.hasOwnProperty;
4124
4124
  function w1(e, t, n, o, i, r) {
4125
- var a = Wt(e), s = Wt(t), l = a ? tc : Vt(e), u = s ? tc : Vt(t);
4125
+ var a = Wt(e), s = Wt(t), l = a ? tc : qt(e), u = s ? tc : qt(t);
4126
4126
  l = l == ec ? rr : l, u = u == ec ? rr : u;
4127
4127
  var d = l == rr, c = u == rr, f = l == u;
4128
4128
  if (f && Ni(e)) {
@@ -4173,7 +4173,7 @@ function oc(e) {
4173
4173
  return !0;
4174
4174
  if (bl(e) && (Wt(e) || typeof e == "string" || typeof e.splice == "function" || Ni(e) || El(e) || da(e)))
4175
4175
  return !e.length;
4176
- var t = Vt(e);
4176
+ var t = qt(e);
4177
4177
  if (t == A1 || t == I1)
4178
4178
  return !e.size;
4179
4179
  if (ca(e))
@@ -4190,7 +4190,7 @@ function Hf(e, t) {
4190
4190
  return t = ti(t, e), e = x1(e, t), e == null || delete e[ma(S1(t))];
4191
4191
  }
4192
4192
  function N1(e) {
4193
- return Vb(e) ? void 0 : e;
4193
+ return qb(e) ? void 0 : e;
4194
4194
  }
4195
4195
  var O1 = 1, P1 = 2, M1 = 4, Gf = xf(function(e, t) {
4196
4196
  var n = {};
@@ -4265,7 +4265,7 @@ const K1 = { authentication: { mode: "none" }, ssl_verify: !0 }, B1 = { authenti
4265
4265
  var t;
4266
4266
  lo((t = e.config) == null ? void 0 : t.schema_registry);
4267
4267
  }
4268
- }, V1 = {
4268
+ }, q1 = {
4269
4269
  "config-message_by_lua_functions": {
4270
4270
  ...Ye,
4271
4271
  inputAttributes: {
@@ -4281,7 +4281,7 @@ const K1 = { authentication: { mode: "none" }, ssl_verify: !0 }, B1 = { authenti
4281
4281
  var t;
4282
4282
  lo((t = e.config) == null ? void 0 : t.schema_registry);
4283
4283
  }
4284
- }, q1 = {
4284
+ }, V1 = {
4285
4285
  "config-message_by_lua_functions": {
4286
4286
  ...Ye,
4287
4287
  inputAttributes: {
@@ -4480,10 +4480,10 @@ const Z1 = (e, t) => {
4480
4480
  "key-auth": Bv(e),
4481
4481
  "key-auth-enc": Xv(e),
4482
4482
  confluent: {
4483
- ...V1
4483
+ ...q1
4484
4484
  },
4485
4485
  "confluent-consume": {
4486
- ...q1
4486
+ ...V1
4487
4487
  },
4488
4488
  "kafka-consume": {
4489
4489
  ...z1
@@ -4501,7 +4501,7 @@ const Z1 = (e, t) => {
4501
4501
  x.forEach((Z) => {
4502
4502
  u(Q[Z], Z, Q, z, I, M);
4503
4503
  });
4504
- const B = z.name, ie = on[B], W = [], V = (Z) => {
4504
+ const B = z.name, ie = on[B], W = [], q = (Z) => {
4505
4505
  const K = ["cluster-cache"];
4506
4506
  for (const U of K)
4507
4507
  if (Z.model.includes(U))
@@ -4511,11 +4511,11 @@ const Z1 = (e, t) => {
4511
4511
  if (I._supported_redis_partial_type = k._supported_redis_partial_type, I._redis_partial_path = k._redis_partial_path, af(B) || Os(B, i) || ie != null && ie.useLegacyForm || e != null && e.credential || j === "freeform") {
4512
4512
  if (ie != null && ie.useLegacyForm && (e != null && e.enableRedisPartial) && k._supported_redis_partial_type) {
4513
4513
  for (const Z of I.fields)
4514
- if (V(Z)) {
4514
+ if (q(Z)) {
4515
4515
  W.push(Z);
4516
4516
  continue;
4517
4517
  }
4518
- I.fields = I.fields.filter((Z) => !V(Z)), W.length && I.fields.push({
4518
+ I.fields = I.fields.filter((Z) => !q(Z)), W.length && I.fields.push({
4519
4519
  id: "_redis",
4520
4520
  fields: W,
4521
4521
  model: "__redis_partial",
@@ -4541,7 +4541,7 @@ const Z1 = (e, t) => {
4541
4541
  te[oe.replace(/-/g, "_").replace(/\./g, "-")] = !1;
4542
4542
  }
4543
4543
  for (const ke of I.fields) {
4544
- if (e != null && e.enableRedisPartial && k._supported_redis_partial_type && V(ke)) {
4544
+ if (e != null && e.enableRedisPartial && k._supported_redis_partial_type && q(ke)) {
4545
4545
  ae.push(ke);
4546
4546
  continue;
4547
4547
  }
@@ -4823,16 +4823,16 @@ const Z1 = (e, t) => {
4823
4823
  return w(), G(u, { class: "plugin-field-rule-alerts" }, {
4824
4824
  default: F(() => [
4825
4825
  X("ul", null, [
4826
- (w(!0), ee(Le, null, qe(a.value, (d, c) => (w(), ee("li", {
4826
+ (w(!0), ee(Le, null, Ve(a.value, (d, c) => (w(), ee("li", {
4827
4827
  key: `simple-alert-${c}`
4828
4828
  }, ge(d), 1))), 128)),
4829
4829
  t.rules.onlyOneOfMutuallyRequired && t.rules.onlyOneOfMutuallyRequired.length > 0 ? (w(), ee("li", Q1, [
4830
- (w(!0), ee(Le, null, qe(t.rules.onlyOneOfMutuallyRequired, (d, c) => (w(), ee("div", {
4830
+ (w(!0), ee(Le, null, Ve(t.rules.onlyOneOfMutuallyRequired, (d, c) => (w(), ee("div", {
4831
4831
  key: `only-one-mutually-alert-${c}`
4832
4832
  }, [
4833
4833
  X("div", null, ge(p(o)("plugins.form.field_rules.only_one_of_mutually_required")), 1),
4834
4834
  X("ul", null, [
4835
- (w(!0), ee(Le, null, qe(d, (f, m) => (w(), ee("li", {
4835
+ (w(!0), ee(Le, null, Ve(d, (f, m) => (w(), ee("li", {
4836
4836
  key: `only-one-mutually-alert-${c}-combination-${m}`
4837
4837
  }, ge(i(f)), 1))), 128))
4838
4838
  ])
@@ -5130,7 +5130,7 @@ function jt(e) {
5130
5130
  };
5131
5131
  }
5132
5132
  function Wi(e) {
5133
- const { getSchema: t } = lt(), n = Vn();
5133
+ const { getSchema: t } = lt(), n = qn();
5134
5134
  return D(() => {
5135
5135
  var i;
5136
5136
  if (n["data-autofocus"] !== void 0)
@@ -5190,7 +5190,7 @@ const uo = /* @__PURE__ */ ve({
5190
5190
  onChange: l,
5191
5191
  "onUpdate:modelValue": s
5192
5192
  }), nt({ _: 2 }, [
5193
- qe(Zt(), (c, f) => ({
5193
+ Ve(Zt(), (c, f) => ({
5194
5194
  name: f,
5195
5195
  fn: F((m) => [
5196
5196
  Fe(u.$slots, f, gn(xn(m)))
@@ -5220,7 +5220,7 @@ const uo = /* @__PURE__ */ ve({
5220
5220
  },
5221
5221
  emits: ["update:modelValue"],
5222
5222
  setup(e, { emit: t }) {
5223
- const n = Vn(), { i18n: o } = Ge(), i = Jt(e, ["showVaultSecretPicker", "showPasswordMaskToggle", "name"]), r = t, { value: a, ...s } = jt(Be(() => e.name)), l = Qt(s.path, Be({ ...i, ...n })), u = a == null ? void 0 : a.value;
5223
+ const n = qn(), { i18n: o } = Ge(), i = Jt(e, ["showVaultSecretPicker", "showPasswordMaskToggle", "name"]), r = t, { value: a, ...s } = jt(Be(() => e.name)), l = Qt(s.path, Be({ ...i, ...n })), u = a == null ? void 0 : a.value;
5224
5224
  function d(y) {
5225
5225
  u !== void 0 && y === "" && y !== u ? (a.value = null, r("update:modelValue", null)) : (a.value = y.trim(), r("update:modelValue", y.trim()));
5226
5226
  }
@@ -5282,7 +5282,7 @@ const uo = /* @__PURE__ */ ve({
5282
5282
  ], 16));
5283
5283
  };
5284
5284
  }
5285
- }), Vo = /* @__PURE__ */ Re(_E, [["__scopeId", "data-v-fb5b80e5"]]), bE = ["innerHTML"], wE = /* @__PURE__ */ ve({
5285
+ }), qo = /* @__PURE__ */ Re(_E, [["__scopeId", "data-v-fb5b80e5"]]), bE = ["innerHTML"], wE = /* @__PURE__ */ ve({
5286
5286
  __name: "BooleanField",
5287
5287
  props: {
5288
5288
  name: {},
@@ -5457,7 +5457,7 @@ const uo = /* @__PURE__ */ ve({
5457
5457
  "data-testid": `ff-object-${o.path.value}`
5458
5458
  }), [
5459
5459
  Fe(g.$slots, "default", {}, () => [
5460
- (w(!0), ee(Le, null, qe(h.value, (A) => (w(), G(Tt, {
5460
+ (w(!0), ee(Le, null, Ve(h.value, (A) => (w(), G(Tt, {
5461
5461
  key: Object.keys(A)[0],
5462
5462
  name: Object.keys(A)[0]
5463
5463
  }, null, 8, ["name"]))), 128))
@@ -5537,7 +5537,7 @@ const uo = /* @__PURE__ */ ve({
5537
5537
  "data-testid": `ff-object-content-${o.path.value}`
5538
5538
  }, [
5539
5539
  Fe(g.$slots, "default", {}, () => [
5540
- (w(!0), ee(Le, null, qe(h.value, (A) => (w(), G(Tt, {
5540
+ (w(!0), ee(Le, null, Ve(h.value, (A) => (w(), G(Tt, {
5541
5541
  key: Object.keys(A)[0],
5542
5542
  name: Object.keys(A)[0]
5543
5543
  }, null, 8, ["name"]))), 128))
@@ -5619,7 +5619,7 @@ const uo = /* @__PURE__ */ ve({
5619
5619
  ]), 1040, ["data-autofocus", "data-testid", "model-value"]));
5620
5620
  };
5621
5621
  }
5622
- }), qo = /* @__PURE__ */ Re(NE, [["__scopeId", "data-v-00c065d4"]]), OE = ["innerHTML"], PE = /* @__PURE__ */ ve({
5622
+ }), Vo = /* @__PURE__ */ Re(NE, [["__scopeId", "data-v-00c065d4"]]), OE = ["innerHTML"], PE = /* @__PURE__ */ ve({
5623
5623
  __name: "EnumField",
5624
5624
  props: {
5625
5625
  name: {},
@@ -5649,33 +5649,37 @@ const uo = /* @__PURE__ */ ve({
5649
5649
  clearable: { type: Boolean },
5650
5650
  reuseItemTemplate: { type: Boolean }
5651
5651
  },
5652
- setup(e) {
5653
- const t = Jt(e, ["name", "items", "multiple"]), { getSelectItems: n } = lt(), { value: o, ...i } = jt(Be(() => e.name)), r = Qt(i.path, t), a = D(() => e.items ? e.items : i.path ? n(i.path.value) : []), s = D(() => {
5654
- var u;
5655
- return e.multiple !== void 0 ? e.multiple : ((u = i.schema.value) == null ? void 0 : u.type) === "set";
5656
- }), l = D(() => s.value ? ov : iv);
5657
- return (u, d) => {
5658
- var f;
5659
- const c = Ee("KAlert");
5660
- return i.error ? (w(), G(c, {
5652
+ emits: ["update"],
5653
+ setup(e, { emit: t }) {
5654
+ const n = t, o = Jt(e, ["name", "items", "multiple"]), { getSelectItems: i } = lt(), { value: r, ...a } = jt(Be(() => e.name)), s = Qt(a.path, o), l = D(() => e.items ? e.items : a.path ? i(a.path.value) : []), u = D(() => {
5655
+ var c;
5656
+ return e.multiple !== void 0 ? e.multiple : ((c = a.schema.value) == null ? void 0 : c.type) === "set";
5657
+ }), d = D(() => u.value ? ov : iv);
5658
+ return (c, f) => {
5659
+ var h;
5660
+ const m = Ee("KAlert");
5661
+ return a.error ? (w(), G(m, {
5661
5662
  key: 0,
5662
5663
  appearance: "danger",
5663
- message: i.error.message
5664
- }, null, 8, ["message"])) : (w(), G(p(l), He({ key: 1 }, { ...t, ...p(r) }, {
5665
- modelValue: p(o),
5666
- "onUpdate:modelValue": d[0] || (d[0] = (m) => Ui(o) ? o.value = m : null),
5664
+ message: a.error.message
5665
+ }, null, 8, ["message"])) : (w(), G(p(d), He({ key: 1 }, { ...o, ...p(s) }, {
5666
+ modelValue: p(r),
5667
+ "onUpdate:modelValue": [
5668
+ f[0] || (f[0] = (v) => Ui(r) ? r.value = v : null),
5669
+ f[1] || (f[1] = (v) => n("update", v))
5670
+ ],
5667
5671
  class: "ff-enum-field",
5668
- clearable: !p(r).required,
5669
- "data-testid": `ff-${i.path.value}`,
5670
- items: a.value,
5671
- "kpop-attributes": { "data-testid": `${i.path.value}-items` }
5672
+ clearable: !p(s).required,
5673
+ "data-testid": `ff-${a.path.value}`,
5674
+ items: l.value,
5675
+ "kpop-attributes": { "data-testid": `${a.path.value}-items` }
5672
5676
  }), nt({ _: 2 }, [
5673
- (f = p(r).labelAttributes) != null && f.info ? {
5677
+ (h = p(s).labelAttributes) != null && h.info ? {
5674
5678
  name: "label-tooltip",
5675
5679
  fn: F(() => [
5676
- Fe(u.$slots, "tooltip", {}, () => [
5680
+ Fe(c.$slots, "tooltip", {}, () => [
5677
5681
  X("div", {
5678
- innerHTML: p(r).labelAttributes.info
5682
+ innerHTML: p(s).labelAttributes.info
5679
5683
  }, null, 8, OE)
5680
5684
  ], !0)
5681
5685
  ]),
@@ -5684,9 +5688,9 @@ const uo = /* @__PURE__ */ ve({
5684
5688
  ]), 1040, ["modelValue", "clearable", "data-testid", "items", "kpop-attributes"]));
5685
5689
  };
5686
5690
  }
5687
- }), fn = /* @__PURE__ */ Re(PE, [["__scopeId", "data-v-01f60edf"]]);
5691
+ }), fn = /* @__PURE__ */ Re(PE, [["__scopeId", "data-v-bfca8687"]]);
5688
5692
  function Dl(e, t, n = !0) {
5689
- const { value: o, ...i } = jt(Be(e, "name")), r = Qt(i.path, Be({ ...e, ...Vn() })), a = re(u(
5693
+ const { value: o, ...i } = jt(Be(e, "name")), r = Qt(i.path, Be({ ...e, ...qn() })), a = re(u(
5690
5694
  e.initialValue ?? Pe(o) ?? {},
5691
5695
  e.keyOrder
5692
5696
  ));
@@ -5885,7 +5889,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
5885
5889
  _: 1
5886
5890
  }, 8, ["data-testid"])
5887
5891
  ], 8, RE),
5888
- (w(!0), ee(Le, null, qe(p(a), (J, x) => (w(), ee("div", {
5892
+ (w(!0), ee(Le, null, Ve(p(a), (J, x) => (w(), ee("div", {
5889
5893
  key: J.id,
5890
5894
  class: "ff-kv-field-entry",
5891
5895
  "data-testid": `ff-kv-container-${p(f).path.value}.${x}`
@@ -5941,7 +5945,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
5941
5945
  ], 8, ME));
5942
5946
  };
5943
5947
  }
5944
- }), KE = /* @__PURE__ */ Re(LE, [["__scopeId", "data-v-92e0893d"]]), BE = ["data-testid"], jE = ["innerHTML"], VE = /* @__PURE__ */ ve({
5948
+ }), KE = /* @__PURE__ */ Re(LE, [["__scopeId", "data-v-92e0893d"]]), BE = ["data-testid"], jE = ["innerHTML"], qE = /* @__PURE__ */ ve({
5945
5949
  inheritAttrs: !1,
5946
5950
  __name: "StringArrayField",
5947
5951
  props: {
@@ -5951,7 +5955,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
5951
5955
  },
5952
5956
  emits: ["update:modelValue"],
5953
5957
  setup(e, { emit: t }) {
5954
- const n = Vn(), o = Jt(e, ["name"]), i = t, { value: r, ...a } = jt(Be(() => e.name)), s = Qt(a.path, Be({ ...o, ...n })), l = D(() => {
5958
+ const n = qn(), o = Jt(e, ["name"]), i = t, { value: r, ...a } = jt(Be(() => e.name)), s = Qt(a.path, Be({ ...o, ...n })), l = D(() => {
5955
5959
  var v, g;
5956
5960
  return ((g = (v = a.schema) == null ? void 0 : v.value) == null ? void 0 : g.len_min) && a.schema.value.len_min > 0;
5957
5961
  }), u = re("");
@@ -6004,7 +6008,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
6004
6008
  ], 8, BE));
6005
6009
  };
6006
6010
  }
6007
- }), Ll = /* @__PURE__ */ Re(VE, [["__scopeId", "data-v-a27f4ff1"]]), qE = ["data-testid"], zE = ["innerHTML"], UE = /* @__PURE__ */ ve({
6011
+ }), Ll = /* @__PURE__ */ Re(qE, [["__scopeId", "data-v-a27f4ff1"]]), VE = ["data-testid"], zE = ["innerHTML"], UE = /* @__PURE__ */ ve({
6008
6012
  inheritAttrs: !1,
6009
6013
  __name: "JsonField",
6010
6014
  props: {
@@ -6013,7 +6017,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
6013
6017
  },
6014
6018
  emits: ["update:modelValue"],
6015
6019
  setup(e, { emit: t }) {
6016
- const n = Vn(), o = Jt(e, ["name"]), i = t, { value: r, ...a } = jt(Be(() => e.name)), s = Qt(a.path, Be({ ...o, ...n })), l = re("");
6020
+ const n = qn(), o = Jt(e, ["name"]), i = t, { value: r, ...a } = jt(Be(() => e.name)), s = Qt(a.path, Be({ ...o, ...n })), l = re("");
6017
6021
  function u(f) {
6018
6022
  l.value = f;
6019
6023
  let m = f || null;
@@ -6068,7 +6072,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
6068
6072
  key: "0"
6069
6073
  } : void 0
6070
6074
  ]), 1040, ["data-1p-ignore", "data-autofocus", "data-testid", "model-value"])
6071
- ], 8, qE));
6075
+ ], 8, VE));
6072
6076
  };
6073
6077
  }
6074
6078
  }), HE = /* @__PURE__ */ Re(UE, [["__scopeId", "data-v-5749f722"]]), GE = ["innerHTML"], YE = /* @__PURE__ */ ve({
@@ -6090,7 +6094,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
6090
6094
  },
6091
6095
  emits: ["update:modelValue"],
6092
6096
  setup(e, { emit: t }) {
6093
- const n = Vn(), { i18n: { t: o } } = Ge(), i = Jt(e, ["showPasswordMaskToggle", "name"]), r = t, { value: a, ...s } = jt(Be(() => e.name));
6097
+ const n = qn(), { i18n: { t: o } } = Ge(), i = Jt(e, ["showPasswordMaskToggle", "name"]), r = t, { value: a, ...s } = jt(Be(() => e.name));
6094
6098
  if (s.error)
6095
6099
  throw new Error(s.error.message);
6096
6100
  const l = Qt(s.path, Be({ ...i, ...n })), u = a.value ? a.value.id : null, d = D(() => {
@@ -6141,12 +6145,12 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
6141
6145
  var i, r;
6142
6146
  switch ((r = (i = n.schema) == null ? void 0 : i.value) == null ? void 0 : r.type) {
6143
6147
  case "string":
6144
- return "one_of" in n.schema.value ? fn : Vo;
6148
+ return "one_of" in n.schema.value ? fn : qo;
6145
6149
  case "boolean":
6146
6150
  return "one_of" in n.schema.value ? fn : Fl;
6147
6151
  case "number":
6148
6152
  case "integer":
6149
- return "one_of" in n.schema.value ? fn : qo;
6153
+ return "one_of" in n.schema.value ? fn : Vo;
6150
6154
  case "array":
6151
6155
  return ha;
6152
6156
  case "set":
@@ -6206,7 +6210,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
6206
6210
  dl((R) => ({
6207
6211
  "3e1c9ee2": S.value
6208
6212
  }));
6209
- const n = e, o = t, { i18n: { t: i } } = Ge(), { getDefault: r, getSchema: a } = lt(), { value: s, ...l } = jt(Be(n, "name")), u = Qt(l.path, Be({ ...n, ...Vn() })), d = D(() => {
6213
+ const n = e, o = t, { i18n: { t: i } } = Ge(), { getDefault: r, getSchema: a } = lt(), { value: s, ...l } = jt(Be(n, "name")), u = Qt(l.path, Be({ ...n, ...qn() })), d = D(() => {
6210
6214
  if (!l.path) throw new Error("Field path is required for sub-schema retrieval");
6211
6215
  const R = a(l.path.value);
6212
6216
  if (!R) throw new Error(`Schema not found for path: ${l.path.value}`);
@@ -6298,7 +6302,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
6298
6302
  class: "ff-array-field-container",
6299
6303
  "data-testid": `ff-array-basic-container-${l.path.value}`
6300
6304
  }, [
6301
- (w(!0), ee(Le, null, qe(c.value, (I, z) => (w(), G(p(m), {
6305
+ (w(!0), ee(Le, null, Ve(c.value, (I, z) => (w(), G(p(m), {
6302
6306
  key: p(f)(I, z),
6303
6307
  class: "ff-array-field-item",
6304
6308
  "data-index": z,
@@ -6347,7 +6351,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
6347
6351
  "data-testid": `ff-array-tabs-${l.path.value}`,
6348
6352
  tabs: v.value
6349
6353
  }, nt({ _: 2 }, [
6350
- qe(c.value, (I, z) => ({
6354
+ Ve(c.value, (I, z) => ({
6351
6355
  name: p(f)(I, z),
6352
6356
  fn: F(() => [
6353
6357
  X("div", {
@@ -6366,7 +6370,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
6366
6370
  ], 8, tk)
6367
6371
  ])
6368
6372
  })),
6369
- qe(c.value, (I, z) => ({
6373
+ Ve(c.value, (I, z) => ({
6370
6374
  name: `${p(f)(I, z)}-anchor`,
6371
6375
  fn: F(() => [
6372
6376
  De(ge(h(I, z)) + " ", 1),
@@ -6528,7 +6532,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
6528
6532
  default: F(() => [
6529
6533
  (w(), G(mt(p(i)[p(jo)]))),
6530
6534
  Fe(m.$slots, "default", {}, () => [
6531
- (w(!0), ee(Le, null, qe(s.value, (v) => (w(), G(Tt, {
6535
+ (w(!0), ee(Le, null, Ve(s.value, (v) => (w(), G(Tt, {
6532
6536
  key: Object.keys(v)[0],
6533
6537
  name: Object.keys(v)[0],
6534
6538
  onGlobalAction: h[0] || (h[0] = (g, y) => o("globalAction", g, y))
@@ -6631,7 +6635,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
6631
6635
  match: ({ path: c }) => c.endsWith("by_lua")
6632
6636
  }, {
6633
6637
  default: F((c) => [
6634
- P(Vo, He(c, {
6638
+ P(qo, He(c, {
6635
6639
  autosize: "",
6636
6640
  class: "rc-code",
6637
6641
  multiline: "",
@@ -6851,7 +6855,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
6851
6855
  } : void 0
6852
6856
  ]), 1040),
6853
6857
  X("div", gk, [
6854
- (w(!0), ee(Le, null, qe(s.value, (h) => (w(), G(p(Es), {
6858
+ (w(!0), ee(Le, null, Ve(s.value, (h) => (w(), G(p(Es), {
6855
6859
  key: h.value,
6856
6860
  "model-value": p(r).value.value,
6857
6861
  "onUpdate:modelValue": [
@@ -6980,7 +6984,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
6980
6984
  }, null, 8, ["items", "label"])
6981
6985
  ]),
6982
6986
  X("div", wk, [
6983
- (w(!0), ee(Le, null, qe(r.value, (M, j) => (w(), ee("div", {
6987
+ (w(!0), ee(Le, null, Ve(r.value, (M, j) => (w(), ee("div", {
6984
6988
  key: p(a)(M, j)
6985
6989
  }, [
6986
6990
  P(_, {
@@ -6996,12 +7000,12 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
6996
7000
  id: `sp-form-request-limits-item-${j}-legend`,
6997
7001
  class: "sp-form-request-limits-inputs"
6998
7002
  }, [
6999
- P(qo, {
7003
+ P(Vo, {
7000
7004
  name: `$.config.limit.${j}`,
7001
7005
  placeholder: p(t)("sp.request_limits.request_number")
7002
7006
  }, null, 8, ["name", "placeholder"]),
7003
7007
  X("div", null, ge(p(t)("sp.request_limits.interval_determiner")), 1),
7004
- P(qo, {
7008
+ P(Vo, {
7005
7009
  name: `$.config.window_size.${j}`,
7006
7010
  placeholder: p(t)("sp.request_limits.time_interval")
7007
7011
  }, null, 8, ["name", "placeholder"]),
@@ -7034,7 +7038,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
7034
7038
  h.value.length > 0 ? (w(), ee("div", Sk, [
7035
7039
  X("div", null, ge(p(t)("sp.start_with_a_use_case")), 1),
7036
7040
  X("div", xk, [
7037
- (w(!0), ee(Le, null, qe(h.value, (M, j) => (w(), G(k, {
7041
+ (w(!0), ee(Le, null, Ve(h.value, (M, j) => (w(), G(k, {
7038
7042
  key: `use-case-${j}`,
7039
7043
  "max-width": "300"
7040
7044
  }, {
@@ -7091,14 +7095,14 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
7091
7095
  _: 1
7092
7096
  }, 8, ["info"]),
7093
7097
  X("legend", Tk, [
7094
- P(qo, {
7098
+ P(Vo, {
7095
7099
  class: "input-error-code",
7096
7100
  label: "",
7097
7101
  name: "error_code",
7098
7102
  placeholder: p(t)("sp.error_message.code_placeholder")
7099
7103
  }, null, 8, ["placeholder"]),
7100
7104
  o[0] || (o[0] = X("div", null, ":", -1)),
7101
- P(Vo, {
7105
+ P(qo, {
7102
7106
  class: "input-error-message",
7103
7107
  label: "",
7104
7108
  name: "error_message",
@@ -7151,7 +7155,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
7151
7155
  return (c, f) => {
7152
7156
  const m = Ee("KCopy");
7153
7157
  return w(), ee("div", Ok, [
7154
- (w(!0), ee(Le, null, qe(d.value, ({ key: h, label: v, value: g, type: y }) => (w(), ee("div", {
7158
+ (w(!0), ee(Le, null, Ve(d.value, ({ key: h, label: v, value: g, type: y }) => (w(), ee("div", {
7155
7159
  key: h,
7156
7160
  class: "partial-config-card-row"
7157
7161
  }, [
@@ -7184,7 +7188,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
7184
7188
  ]);
7185
7189
  };
7186
7190
  }
7187
- }), jk = /* @__PURE__ */ Re(Bk, [["__scopeId", "data-v-e2403663"]]), Vk = /* @__PURE__ */ ve({
7191
+ }), jk = /* @__PURE__ */ Re(Bk, [["__scopeId", "data-v-e2403663"]]), qk = /* @__PURE__ */ ve({
7188
7192
  __name: "NewRedisPartialModal",
7189
7193
  props: {
7190
7194
  visible: {
@@ -7257,7 +7261,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
7257
7261
  }, 8, ["title", "visible"]);
7258
7262
  };
7259
7263
  }
7260
- }), qk = /* @__PURE__ */ Re(Vk, [["__scopeId", "data-v-ac12474e"]]), zk = "#52596e", Uk = "#e0e4ea", Hk = "#007d60", Gk = "#6c7489", Yk = "#0044f4", Wk = "#5f9aff", Xk = "#000933", up = "#d60027", cc = "#afb7c5", fi = "12px", Zk = "16px", Ua = "20px", cp = "8px", dp = Symbol("redis-partial-info"), dc = {
7264
+ }), Vk = /* @__PURE__ */ Re(qk, [["__scopeId", "data-v-ac12474e"]]), zk = "#52596e", Uk = "#e0e4ea", Hk = "#007d60", Gk = "#6c7489", Yk = "#0044f4", Wk = "#5f9aff", Xk = "#000933", up = "#d60027", cc = "#afb7c5", fi = "12px", Zk = "16px", Ua = "20px", cp = "8px", dp = Symbol("redis-partial-info"), dc = {
7261
7265
  konnect: {
7262
7266
  getOne: "/v2/control-planes/{controlPlaneId}/core-entities/partials/{id}",
7263
7267
  getAll: "/v2/control-planes/{controlPlaneId}/core-entities/partials"
@@ -7333,12 +7337,12 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
7333
7337
  fetchedItemsKey: "data",
7334
7338
  searchKeys: ["id", "name"]
7335
7339
  }), j = D(() => k.value ? m(k.value) : ""), Q = (W) => {
7336
- let V = `${_.apiBaseUrl}${dc[_.app].getOne}`;
7337
- return _.app === "konnect" ? V = V.replace(/{controlPlaneId}/gi, (_ == null ? void 0 : _.controlPlaneId) || "") : _.app === "kongManager" && (V = V.replace(/\/{workspace}/gi, _ != null && _.workspace ? `/${_.workspace}` : "")), V = V.replace(/{id}/gi, String(W)), V;
7340
+ let q = `${_.apiBaseUrl}${dc[_.app].getOne}`;
7341
+ return _.app === "konnect" ? q = q.replace(/{controlPlaneId}/gi, (_ == null ? void 0 : _.controlPlaneId) || "") : _.app === "kongManager" && (q = q.replace(/\/{workspace}/gi, _ != null && _.workspace ? `/${_.workspace}` : "")), q = q.replace(/{id}/gi, String(W)), q;
7338
7342
  }, J = D(() => {
7339
- const W = (M.value || []).map((V) => ({ label: V.id, name: V.name, value: V.id, type: V.type, tag: nE(V) })).filter((V) => V.type === "redis-ce" || V.type === "redis-ee");
7340
- return l !== "all" ? W.filter((V) => V.type === l) : W;
7341
- }), { axiosInstance: x } = qn(_ == null ? void 0 : _.axiosRequestConfig), ne = () => {
7343
+ const W = (M.value || []).map((q) => ({ label: q.id, name: q.name, value: q.id, type: q.type, tag: nE(q) })).filter((q) => q.type === "redis-ce" || q.type === "redis-ee");
7344
+ return l !== "all" ? W.filter((q) => q.type === l) : W;
7345
+ }), { axiosInstance: x } = Vn(_ == null ? void 0 : _.axiosRequestConfig), ne = () => {
7342
7346
  f.value ? (g.value && (y.value = g.value, h.value = g.value[0].id, b.value = void 0), b != null && b.value && (v.value = b.value)) : (Object.keys(v.value).length && (b.value = v.value), y != null && y.value && (g.value = y.value), y.value = a ? null : void 0);
7343
7347
  }, I = (W) => {
7344
7348
  R(), n("globalAction", "notify", W);
@@ -7348,13 +7352,13 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
7348
7352
  if (W) {
7349
7353
  h.value = W, y.value = [{ id: W }], g.value = [{ id: W }], b.value = void 0;
7350
7354
  try {
7351
- const V = await x.get(Q(W));
7352
- if (V.data.config) {
7353
- const Z = Object.assign(V.data, V.data.config);
7355
+ const q = await x.get(Q(W));
7356
+ if (q.data.config) {
7357
+ const Z = Object.assign(q.data, q.data.config);
7354
7358
  delete Z.config, c.value = Z;
7355
7359
  }
7356
- } catch (V) {
7357
- console.error(V);
7360
+ } catch (q) {
7361
+ console.error(q);
7358
7362
  }
7359
7363
  }
7360
7364
  };
@@ -7363,10 +7367,10 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
7363
7367
  }), $n(() => {
7364
7368
  var W;
7365
7369
  if (R(), i.defaultRedisConfigItem || y != null && y.value) {
7366
- const V = i.defaultRedisConfigItem || ((W = y == null ? void 0 : y.value) == null ? void 0 : W[0].id);
7367
- B(V), f.value = !0;
7370
+ const q = i.defaultRedisConfigItem || ((W = y == null ? void 0 : y.value) == null ? void 0 : W[0].id);
7371
+ B(q), f.value = !0;
7368
7372
  } else b != null && b.value && (v.value = b.value);
7369
- }), (W, V) => {
7373
+ }), (W, q) => {
7370
7374
  const Z = Ee("KBadge"), K = Ee("KRadio"), U = Ee("KSelect"), ae = Ee("KCard");
7371
7375
  return u.value ? (w(), G(ae, {
7372
7376
  key: 0,
@@ -7378,7 +7382,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
7378
7382
  X("div", Jk, [
7379
7383
  P(K, {
7380
7384
  modelValue: f.value,
7381
- "onUpdate:modelValue": V[0] || (V[0] = (te) => f.value = te),
7385
+ "onUpdate:modelValue": q[0] || (q[0] = (te) => f.value = te),
7382
7386
  card: "",
7383
7387
  "card-orientation": "horizontal",
7384
7388
  "data-testid": "shared-redis-config-radio",
@@ -7398,7 +7402,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
7398
7402
  }, 8, ["modelValue", "description", "label"]),
7399
7403
  P(K, {
7400
7404
  modelValue: f.value,
7401
- "onUpdate:modelValue": V[1] || (V[1] = (te) => f.value = te),
7405
+ "onUpdate:modelValue": q[1] || (q[1] = (te) => f.value = te),
7402
7406
  card: "",
7403
7407
  "card-orientation": "horizontal",
7404
7408
  "data-testid": "dedicated-redis-config-radio",
@@ -7419,7 +7423,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
7419
7423
  loading: p(S),
7420
7424
  "model-value": h.value,
7421
7425
  placeholder: p(o)("redis.shared_configuration.selector.placeholder"),
7422
- onChange: V[3] || (V[3] = (te) => B(te == null ? void 0 : te.value)),
7426
+ onChange: q[3] || (q[3] = (te) => B(te == null ? void 0 : te.value)),
7423
7427
  onQueryChange: p(A)
7424
7428
  }, {
7425
7429
  "selected-item-template": F(({ item: te }) => [
@@ -7449,7 +7453,7 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
7449
7453
  X("div", {
7450
7454
  class: "new-redis-config-area",
7451
7455
  "data-testid": "new-redis-config-area",
7452
- onClick: V[2] || (V[2] = () => d.value = !0)
7456
+ onClick: q[2] || (q[2] = () => d.value = !0)
7453
7457
  }, [
7454
7458
  P(p(Yt), { size: p(fi) }, null, 8, ["size"]),
7455
7459
  X("span", null, ge(p(o)("redis.shared_configuration.create_new_configuration", { type: p(iE)(p(l)) })), 1)
@@ -7469,10 +7473,10 @@ const ME = ["data-testid"], RE = ["data-testid"], FE = ["innerHTML"], DE = ["dat
7469
7473
  name: s.value,
7470
7474
  "reset-label-path": "reset"
7471
7475
  }), null, 16, ["fields-order", "name"])),
7472
- P(qk, {
7476
+ P(Vk, {
7473
7477
  "partial-type": p(l),
7474
7478
  visible: d.value,
7475
- onModalClose: V[4] || (V[4] = (te) => d.value = !1),
7479
+ onModalClose: q[4] || (q[4] = (te) => d.value = !1),
7476
7480
  onPartialUpdateFailed: z,
7477
7481
  onPartialUpdated: I
7478
7482
  }, null, 8, ["partial-type", "visible"])
@@ -8030,10 +8034,10 @@ var wp = new kt("tag:yaml.org,2002:bool", {
8030
8034
  },
8031
8035
  defaultStyle: "lowercase"
8032
8036
  });
8033
- function VC(e) {
8037
+ function qC(e) {
8034
8038
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
8035
8039
  }
8036
- function qC(e) {
8040
+ function VC(e) {
8037
8041
  return 48 <= e && e <= 55;
8038
8042
  }
8039
8043
  function zC(e) {
@@ -8056,7 +8060,7 @@ function UC(e) {
8056
8060
  if (i === "x") {
8057
8061
  for (n++; n < t; n++)
8058
8062
  if (i = e[n], i !== "_") {
8059
- if (!VC(e.charCodeAt(n))) return !1;
8063
+ if (!qC(e.charCodeAt(n))) return !1;
8060
8064
  o = !0;
8061
8065
  }
8062
8066
  return o && i !== "_";
@@ -8064,7 +8068,7 @@ function UC(e) {
8064
8068
  if (i === "o") {
8065
8069
  for (n++; n < t; n++)
8066
8070
  if (i = e[n], i !== "_") {
8067
- if (!qC(e.charCodeAt(n))) return !1;
8071
+ if (!VC(e.charCodeAt(n))) return !1;
8068
8072
  o = !0;
8069
8073
  }
8070
8074
  return o && i !== "_";
@@ -8433,7 +8437,7 @@ function $o(e, t, n, o, i, r, a, s, l) {
8433
8437
  }) : t[i] = r, delete n[i];
8434
8438
  return t;
8435
8439
  }
8436
- function Vl(e) {
8440
+ function ql(e) {
8437
8441
  var t;
8438
8442
  t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : Me(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
8439
8443
  }
@@ -8446,7 +8450,7 @@ function gt(e, t, n) {
8446
8450
  i = e.input.charCodeAt(++e.position);
8447
8451
  while (i !== 10 && i !== 13 && i !== 0);
8448
8452
  if (pn(i))
8449
- for (Vl(e), i = e.input.charCodeAt(e.position), o++, e.lineIndent = 0; i === 32; )
8453
+ for (ql(e), i = e.input.charCodeAt(e.position), o++, e.lineIndent = 0; i === 32; )
8450
8454
  e.lineIndent++, i = e.input.charCodeAt(++e.position);
8451
8455
  else
8452
8456
  break;
@@ -8457,7 +8461,7 @@ function ya(e) {
8457
8461
  var t = e.position, n;
8458
8462
  return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || Ft(n)));
8459
8463
  }
8460
- function ql(e, t) {
8464
+ function Vl(e, t) {
8461
8465
  t === 1 ? e.result += " " : t > 1 && (e.result += yt.repeat(`
8462
8466
  `, t - 1));
8463
8467
  }
@@ -8484,7 +8488,7 @@ function AS(e, t, n) {
8484
8488
  break;
8485
8489
  }
8486
8490
  }
8487
- s && (Ln(e, r, a, !1), ql(e, e.line - l), r = a = e.position, s = !1), no(m) || (a = e.position + 1), m = e.input.charCodeAt(++e.position);
8491
+ s && (Ln(e, r, a, !1), Vl(e, e.line - l), r = a = e.position, s = !1), no(m) || (a = e.position + 1), m = e.input.charCodeAt(++e.position);
8488
8492
  }
8489
8493
  return Ln(e, r, a, !1), e.result ? !0 : (e.kind = c, e.result = f, !1);
8490
8494
  }
@@ -8498,7 +8502,7 @@ function IS(e, t) {
8498
8502
  o = e.position, e.position++, i = e.position;
8499
8503
  else
8500
8504
  return !0;
8501
- else pn(n) ? (Ln(e, o, i, !0), ql(e, gt(e, !1, t)), o = i = e.position) : e.position === e.lineStart && ya(e) ? Me(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
8505
+ else pn(n) ? (Ln(e, o, i, !0), Vl(e, gt(e, !1, t)), o = i = e.position) : e.position === e.lineStart && ya(e) ? Me(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
8502
8506
  Me(e, "unexpected end of the stream within a single quoted scalar");
8503
8507
  }
8504
8508
  function TS(e, t) {
@@ -8520,7 +8524,7 @@ function TS(e, t) {
8520
8524
  } else
8521
8525
  Me(e, "unknown escape sequence");
8522
8526
  n = o = e.position;
8523
- } else pn(s) ? (Ln(e, n, o, !0), ql(e, gt(e, !1, t)), n = o = e.position) : e.position === e.lineStart && ya(e) ? Me(e, "unexpected end of the document within a double quoted scalar") : (e.position++, o = e.position);
8527
+ } else pn(s) ? (Ln(e, n, o, !0), Vl(e, gt(e, !1, t)), n = o = e.position) : e.position === e.lineStart && ya(e) ? Me(e, "unexpected end of the document within a double quoted scalar") : (e.position++, o = e.position);
8524
8528
  }
8525
8529
  Me(e, "unexpected end of the stream within a double quoted scalar");
8526
8530
  }
@@ -8564,7 +8568,7 @@ function NS(e, t) {
8564
8568
  while (!pn(c) && c !== 0);
8565
8569
  }
8566
8570
  for (; c !== 0; ) {
8567
- for (Vl(e), e.lineIndent = 0, c = e.input.charCodeAt(e.position); (!a || e.lineIndent < s) && c === 32; )
8571
+ for (ql(e), e.lineIndent = 0, c = e.input.charCodeAt(e.position); (!a || e.lineIndent < s) && c === 32; )
8568
8572
  e.lineIndent++, c = e.input.charCodeAt(++e.position);
8569
8573
  if (!a && e.lineIndent > s && (s = e.lineIndent), pn(c)) {
8570
8574
  l++;
@@ -8711,7 +8715,7 @@ function FS(e) {
8711
8715
  a = e.input.charCodeAt(++e.position);
8712
8716
  i.push(e.input.slice(n, e.position));
8713
8717
  }
8714
- a !== 0 && Vl(e), Kn.call(vc, o) ? vc[o](e, o, i) : Lr(e, 'unknown document directive "' + o + '"');
8718
+ a !== 0 && ql(e), Kn.call(vc, o) ? vc[o](e, o, i) : Lr(e, 'unknown document directive "' + o + '"');
8715
8719
  }
8716
8720
  if (gt(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, gt(e, !0, -1)) : r && Me(e, "directives end mark is expected"), zo(e, e.lineIndent - 1, Dr, !1, !0), gt(e, !0, -1), e.checkLineBreaks && bS.test(e.input.slice(t, e.position)) && Lr(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && ya(e)) {
8717
8721
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, gt(e, !0, -1));
@@ -8748,10 +8752,10 @@ function LS(e, t) {
8748
8752
  throw new $t("expected a single document in the stream, but found more");
8749
8753
  }
8750
8754
  }
8751
- var KS = DS, BS = LS, Vp = {
8755
+ var KS = DS, BS = LS, qp = {
8752
8756
  loadAll: KS,
8753
8757
  load: BS
8754
- }, qp = Object.prototype.toString, zp = Object.prototype.hasOwnProperty, zl = 65279, jS = 9, Ri = 10, VS = 13, qS = 32, zS = 33, US = 34, Ds = 35, HS = 37, GS = 38, YS = 39, WS = 42, Up = 44, XS = 45, Kr = 58, ZS = 61, JS = 62, QS = 63, ex = 64, Hp = 91, Gp = 93, tx = 96, Yp = 123, nx = 124, Wp = 125, It = {};
8758
+ }, Vp = Object.prototype.toString, zp = Object.prototype.hasOwnProperty, zl = 65279, jS = 9, Ri = 10, qS = 13, VS = 32, zS = 33, US = 34, Ds = 35, HS = 37, GS = 38, YS = 39, WS = 42, Up = 44, XS = 45, Kr = 58, ZS = 61, JS = 62, QS = 63, ex = 64, Hp = 91, Gp = 93, tx = 96, Yp = 123, nx = 124, Wp = 125, It = {};
8755
8759
  It[0] = "\\0";
8756
8760
  It[7] = "\\a";
8757
8761
  It[8] = "\\b";
@@ -8827,13 +8831,13 @@ function ux(e, t) {
8827
8831
  return !1;
8828
8832
  }
8829
8833
  function Br(e) {
8830
- return e === qS || e === jS;
8834
+ return e === VS || e === jS;
8831
8835
  }
8832
8836
  function Di(e) {
8833
8837
  return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== zl || 65536 <= e && e <= 1114111;
8834
8838
  }
8835
8839
  function wc(e) {
8836
- return Di(e) && e !== zl && e !== VS && e !== Ri;
8840
+ return Di(e) && e !== zl && e !== qS && e !== Ri;
8837
8841
  }
8838
8842
  function Ec(e, t, n) {
8839
8843
  var o = wc(e), i = o && !Br(e);
@@ -8990,7 +8994,7 @@ function Ac(e, t, n) {
8990
8994
  for (i = n ? e.explicitTypes : e.implicitTypes, r = 0, a = i.length; r < a; r += 1)
8991
8995
  if (s = i[r], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof t == "object" && t instanceof s.instanceOf) && (!s.predicate || s.predicate(t))) {
8992
8996
  if (n ? s.multi && s.representName ? e.tag = s.representName(t) : e.tag = s.tag : e.tag = "?", s.represent) {
8993
- if (l = e.styleMap[s.tag] || s.defaultStyle, qp.call(s.represent) === "[object Function]")
8997
+ if (l = e.styleMap[s.tag] || s.defaultStyle, Vp.call(s.represent) === "[object Function]")
8994
8998
  o = s.represent(t, l);
8995
8999
  else if (zp.call(s.represent, l))
8996
9000
  o = s.represent[l](t, l);
@@ -9004,7 +9008,7 @@ function Ac(e, t, n) {
9004
9008
  }
9005
9009
  function In(e, t, n, o, i, r, a) {
9006
9010
  e.tag = null, e.dump = n, Ac(e, n, !1) || Ac(e, n, !0);
9007
- var s = qp.call(e.dump), l = o, u;
9011
+ var s = Vp.call(e.dump), l = o, u;
9008
9012
  o && (o = e.flowLevel < 0 || e.flowLevel > t);
9009
9013
  var d = s === "[object Object]" || s === "[object Array]", c, f;
9010
9014
  if (d && (c = e.duplicates.indexOf(n), f = c !== -1), (e.tag !== null && e.tag !== "?" || f || e.indent !== 2 && t > 0) && (i = !1), f && e.usedDuplicates[c])
@@ -9062,7 +9066,7 @@ function Ul(e, t) {
9062
9066
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
9063
9067
  };
9064
9068
  }
9065
- var kx = kt, Cx = gp, Sx = _p, jr = Cp, xx = Sp, Ax = jl, Ix = Vp.load, Tx = Vp.loadAll, $x = Ex.dump, Nx = $t, Ox = {
9069
+ var kx = kt, Cx = gp, Sx = _p, jr = Cp, xx = Sp, Ax = jl, Ix = qp.load, Tx = qp.loadAll, $x = Ex.dump, Nx = $t, Ox = {
9066
9070
  binary: $p,
9067
9071
  float: kp,
9068
9072
  map: yp,
@@ -9166,7 +9170,7 @@ const Fx = `nodes:
9166
9170
  type: exit
9167
9171
  input: API
9168
9172
  status: 200
9169
- `, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9173
+ `, qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9170
9174
  __proto__: null,
9171
9175
  authenticate: Fx,
9172
9176
  combine: Dx,
@@ -9174,7 +9178,7 @@ const Fx = `nodes:
9174
9178
  }, Symbol.toStringTag, { value: "Module" })), Kx = { class: "dk-code-editor" }, Bx = { class: "examples-content" }, jx = {
9175
9179
  ref: "editor-root",
9176
9180
  class: "editor"
9177
- }, Wa = "YAML Syntax", Vx = "datakit.insert-example", qx = /* @__PURE__ */ ve({
9181
+ }, Wa = "YAML Syntax", qx = "datakit.insert-example", Vx = /* @__PURE__ */ ve({
9178
9182
  __name: "CodeEditor",
9179
9183
  props: {
9180
9184
  editing: { type: Boolean }
@@ -9186,8 +9190,8 @@ const Fx = `nodes:
9186
9190
  const c = s.value, f = c == null ? void 0 : c.getModel();
9187
9191
  if (!c || !f)
9188
9192
  return;
9189
- const m = Vs[d];
9190
- c.getValue() !== m && (c.pushUndoStop(), c.executeEdits(Vx, [{ range: f.getFullModelRange(), text: m }]), c.pushUndoStop()), u();
9193
+ const m = qs[d];
9194
+ c.getValue() !== m && (c.pushUndoStop(), c.executeEdits(qx, [{ range: f.getFullModelRange(), text: m }]), c.pushUndoStop()), u();
9191
9195
  }
9192
9196
  function u() {
9193
9197
  const d = s.value, c = d == null ? void 0 : d.getModel();
@@ -9253,7 +9257,7 @@ const Fx = `nodes:
9253
9257
  default: F(() => [
9254
9258
  X("div", Bx, [
9255
9259
  De(ge(p(o)("plugins.free-form.datakit.description_example")) + " ", 1),
9256
- (w(), ee(Le, null, qe(Vs, (f, m) => P(p(dn), {
9260
+ (w(), ee(Le, null, Ve(qs, (f, m) => P(p(dn), {
9257
9261
  key: m,
9258
9262
  appearance: "secondary",
9259
9263
  size: "small",
@@ -9271,7 +9275,7 @@ const Fx = `nodes:
9271
9275
  X("div", jx, null, 512)
9272
9276
  ]));
9273
9277
  }
9274
- }), zx = /* @__PURE__ */ Re(qx, [["__scopeId", "data-v-f15f69c5"]]), em = 44, Ux = 220, tm = 366, Hx = em + parseFloat(cp), _a = [
9278
+ }), zx = /* @__PURE__ */ Re(Vx, [["__scopeId", "data-v-f15f69c5"]]), em = 44, Ux = 220, tm = 366, Hx = em + parseFloat(cp), _a = [
9275
9279
  "request",
9276
9280
  "service_request",
9277
9281
  "service_response",
@@ -9292,7 +9296,7 @@ const Fx = `nodes:
9292
9296
  "OPTIONS",
9293
9297
  "TRACE",
9294
9298
  "CONNECT"
9295
- ], Si = "application/x-datakit+json", Vr = {
9299
+ ], Si = "application/x-datakit+json", qr = {
9296
9300
  delete: ["Delete"],
9297
9301
  undo: ["Mod", "Z"],
9298
9302
  redo: {
@@ -9711,7 +9715,7 @@ function tA(e) {
9711
9715
  (g) => g.target === u.target && g.targetField === u.targetField
9712
9716
  ) && d.push("target field already connected"), !u.targetField && n.value.some((g) => g.target === u.target && !g.targetField) && d.push("target input already taken"), u.source === u.target && d.push("self-loop not allowed");
9713
9717
  const v = wr(n.value, u);
9714
- return qs(v) && d.push("connection introduces a cycle"), d.length ? { ok: !1, errors: d } : { ok: !0 };
9718
+ return Vs(v) && d.push("connection introduces a cycle"), d.length ? { ok: !1, errors: d } : { ok: !0 };
9715
9719
  }
9716
9720
  function r() {
9717
9721
  const l = [];
@@ -9721,7 +9725,7 @@ function tA(e) {
9721
9725
  const d = t.value.get(u.source);
9722
9726
  t.value.get(u.target).name === "request" && l.push(`edge "${u.id}" targets "request"`), d.name === "response" && l.push(`edge "${u.id}" sources from "response"`);
9723
9727
  }
9724
- return qs(wr(n.value)) && l.push("graph contains cycle"), l.length ? { ok: !1, errors: l } : { ok: !0 };
9728
+ return Vs(wr(n.value)) && l.push("graph contains cycle"), l.length ? { ok: !1, errors: l } : { ok: !0 };
9725
9729
  }
9726
9730
  function a(l) {
9727
9731
  return i(l).ok;
@@ -9743,7 +9747,7 @@ function tA(e) {
9743
9747
  buildAdjacency: wr
9744
9748
  };
9745
9749
  }
9746
- function qs(e) {
9750
+ function Vs(e) {
9747
9751
  const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
9748
9752
  function o(i) {
9749
9753
  if (n.has(i)) return !0;
@@ -9852,7 +9856,7 @@ const [nA, oA] = df(
9852
9856
  function ie(E, C, N = !0) {
9853
9857
  const T = R(E);
9854
9858
  if (!T || un(T.type)) return;
9855
- const q = {
9859
+ const V = {
9856
9860
  ...Wn(T),
9857
9861
  id: Oo("node"),
9858
9862
  name: Nc(T.name, y.value),
@@ -9861,7 +9865,7 @@ const [nA, oA] = df(
9861
9865
  y: T.position.y + 20
9862
9866
  }
9863
9867
  };
9864
- return i.value.nodes.push(q), N && l.commit(), u.value = !0, q.id;
9868
+ return i.value.nodes.push(V), N && l.commit(), u.value = !0, V.id;
9865
9869
  }
9866
9870
  function W(E, C = !0) {
9867
9871
  i.value.edges = i.value.edges.filter(
@@ -9872,55 +9876,55 @@ const [nA, oA] = df(
9872
9876
  const N = A();
9873
9877
  N.ok || console.warn("[removeNode] topology invalid:", N.errors.join("; ")), C && l.commit();
9874
9878
  }
9875
- function V(E, C, N = !0, T) {
9876
- const q = R(E);
9877
- if (q) {
9878
- if (Gl(q.name)) {
9879
+ function q(E, C, N = !0, T) {
9880
+ const V = R(E);
9881
+ if (V) {
9882
+ if (Gl(V.name)) {
9879
9883
  console.warn("[renameNode] implicit node name is reserved.");
9880
9884
  return;
9881
9885
  }
9882
- q.name = C, N && l.commit(T);
9886
+ V.name = C, N && l.commit(T);
9883
9887
  }
9884
9888
  }
9885
9889
  function Z(E, C, N = !0) {
9886
9890
  const T = R(E);
9887
9891
  T && (T.position = { ...C }, N && l.commit());
9888
9892
  }
9889
- function K(E, C, N, T = !0, q) {
9893
+ function K(E, C, N, T = !0, V) {
9890
9894
  const $ = R(E);
9891
9895
  if (!$) return;
9892
9896
  const H = N ?? !$.expanded[C];
9893
- H !== !!$.expanded[C] && ($.expanded[C] = H, T && l.commit(q ?? `toggle:${E}:${C}`));
9897
+ H !== !!$.expanded[C] && ($.expanded[C] = H, T && l.commit(V ?? `toggle:${E}:${C}`));
9894
9898
  }
9895
9899
  function U(E, C, N = !0, T) {
9896
- const q = R(E);
9897
- q && (q.config = Wn(C), N && l.commit(T));
9900
+ const V = R(E);
9901
+ V && (V.config = Wn(C), N && l.commit(T));
9898
9902
  }
9899
9903
  function ae(E, C, N, T = !0) {
9900
- const q = R(E);
9901
- if (!q) return;
9902
- const $ = q.fields[C];
9904
+ const V = R(E);
9905
+ if (!V) return;
9906
+ const $ = V.fields[C];
9903
9907
  if ($.some((H) => H.name === N)) {
9904
9908
  console.warn(`[addField] field "${N}" already exists on ${C}.`);
9905
9909
  return;
9906
9910
  }
9907
- $.push({ id: Oo("field"), name: N }), C === "input" ? q.fields.input = $ : q.fields.output = $, T && l.commit();
9911
+ $.push({ id: Oo("field"), name: N }), C === "input" ? V.fields.input = $ : V.fields.output = $, T && l.commit();
9908
9912
  }
9909
9913
  function te(E, C, N, T = !0) {
9910
- const q = R(E);
9911
- if (!q) return;
9912
- const $ = q.fields.input, H = q.fields.output, O = $.find((Y) => Y.id === C) ?? H.find((Y) => Y.id === C);
9914
+ const V = R(E);
9915
+ if (!V) return;
9916
+ const $ = V.fields.input, H = V.fields.output, O = $.find((Y) => Y.id === C) ?? H.find((Y) => Y.id === C);
9913
9917
  O && (O.name = N, T && l.commit());
9914
9918
  }
9915
9919
  function de(E, C, N = !0, T = !0) {
9916
- const q = R(E);
9917
- if (!q) return;
9918
- const $ = q.fields.input, H = q.fields.output, O = $.findIndex((se) => se.id === C);
9920
+ const V = R(E);
9921
+ if (!V) return;
9922
+ const $ = V.fields.input, H = V.fields.output, O = $.findIndex((se) => se.id === C);
9919
9923
  O >= 0 && $.splice(O, 1);
9920
9924
  const Y = H.findIndex(
9921
9925
  (se) => se.id === C
9922
9926
  );
9923
- Y >= 0 && H.splice(Y, 1), q.fields.input = $, q.fields.output = H, N && (i.value.edges = i.value.edges.filter(
9927
+ Y >= 0 && H.splice(Y, 1), V.fields.input = $, V.fields.output = H, N && (i.value.edges = i.value.edges.filter(
9924
9928
  (se) => se.sourceField !== C && se.targetField !== C
9925
9929
  ));
9926
9930
  const L = A();
@@ -9935,14 +9939,14 @@ const [nA, oA] = df(
9935
9939
  );
9936
9940
  return;
9937
9941
  }
9938
- const q = { id: Oo("edge"), ...N };
9939
- i.value.edges.push(q);
9942
+ const V = { id: Oo("edge"), ...N };
9943
+ i.value.edges.push(V);
9940
9944
  const $ = A();
9941
9945
  if (!$.ok) {
9942
9946
  i.value.edges.pop(), console.warn("[connectEdge] topology invalid:", $.errors.join("; "));
9943
9947
  return;
9944
9948
  }
9945
- return C && l.commit(), q.id;
9949
+ return C && l.commit(), V.id;
9946
9950
  }
9947
9951
  function ke(E, C, N = !0) {
9948
9952
  xe(E, !1), fe(C, !1), N && l.commit();
@@ -9952,11 +9956,11 @@ const [nA, oA] = df(
9952
9956
  if (N < 0) return;
9953
9957
  const T = i.value.edges[N];
9954
9958
  i.value.edges.splice(N, 1);
9955
- const q = A();
9956
- if (!q.ok) {
9959
+ const V = A();
9960
+ if (!V.ok) {
9957
9961
  i.value.edges.splice(N, 0, T), console.warn(
9958
9962
  "[disconnectEdge] topology invalid:",
9959
- q.errors.join("; ")
9963
+ V.errors.join("; ")
9960
9964
  );
9961
9965
  return;
9962
9966
  }
@@ -9975,7 +9979,7 @@ const [nA, oA] = df(
9975
9979
  C && l.commit();
9976
9980
  }
9977
9981
  function pe() {
9978
- var C, N, T, q, $;
9982
+ var C, N, T, V, $;
9979
9983
  const E = [];
9980
9984
  for (const H of i.value.nodes) {
9981
9985
  if (un(H.type))
@@ -9998,7 +10002,7 @@ const [nA, oA] = df(
9998
10002
  const Ie = Se.type;
9999
10003
  if (!un(Ie) || !((T = Ea[Ie].io) != null && T.input))
10000
10004
  continue;
10001
- const me = (q = Fn(Se, "input", ue.targetField)) == null ? void 0 : q.name, ye = me ? `${Se.name}.${me}` : Se.name, je = ($ = Fn(H, "output", ue.sourceField)) == null ? void 0 : $.name;
10005
+ const me = (V = Fn(Se, "input", ue.targetField)) == null ? void 0 : V.name, ye = me ? `${Se.name}.${me}` : Se.name, je = ($ = Fn(H, "output", ue.sourceField)) == null ? void 0 : $.name;
10002
10006
  je ? se[je] = ye : L === void 0 && (L = ye);
10003
10007
  }
10004
10008
  const he = {
@@ -10053,7 +10057,7 @@ const [nA, oA] = df(
10053
10057
  addNode: B,
10054
10058
  duplicateNode: ie,
10055
10059
  removeNode: W,
10056
- renameNode: V,
10060
+ renameNode: q,
10057
10061
  moveNode: Z,
10058
10062
  toggleExpanded: K,
10059
10063
  replaceConfig: U,
@@ -10556,11 +10560,11 @@ function gm(e) {
10556
10560
  function FA() {
10557
10561
  return new Bt(this._enter || this._groups.map(gm), this._parents);
10558
10562
  }
10559
- function qr(e, t) {
10563
+ function Vr(e, t) {
10560
10564
  this.ownerDocument = e.ownerDocument, this.namespaceURI = e.namespaceURI, this._next = null, this._parent = e, this.__data__ = t;
10561
10565
  }
10562
- qr.prototype = {
10563
- constructor: qr,
10566
+ Vr.prototype = {
10567
+ constructor: Vr,
10564
10568
  appendChild: function(e) {
10565
10569
  return this._parent.insertBefore(e, this._next);
10566
10570
  },
@@ -10581,7 +10585,7 @@ function DA(e) {
10581
10585
  }
10582
10586
  function LA(e, t, n, o, i, r) {
10583
10587
  for (var a = 0, s, l = t.length, u = r.length; a < u; ++a)
10584
- (s = t[a]) ? (s.__data__ = r[a], o[a] = s) : n[a] = new qr(e, r[a]);
10588
+ (s = t[a]) ? (s.__data__ = r[a], o[a] = s) : n[a] = new Vr(e, r[a]);
10585
10589
  for (; a < l; ++a)
10586
10590
  (s = t[a]) && (i[a] = s);
10587
10591
  }
@@ -10590,7 +10594,7 @@ function KA(e, t, n, o, i, r, a) {
10590
10594
  for (s = 0; s < d; ++s)
10591
10595
  (l = t[s]) && (f[s] = m = a.call(l, l.__data__, s, t) + "", u.has(m) ? i[s] = l : u.set(m, l));
10592
10596
  for (s = 0; s < c; ++s)
10593
- m = a.call(e, r[s], s, r) + "", (l = u.get(m)) ? (o[s] = l, l.__data__ = r[s], u.delete(m)) : n[s] = new qr(e, r[s]);
10597
+ m = a.call(e, r[s], s, r) + "", (l = u.get(m)) ? (o[s] = l, l.__data__ = r[s], u.delete(m)) : n[s] = new Vr(e, r[s]);
10594
10598
  for (s = 0; s < d; ++s)
10595
10599
  (l = t[s]) && u.get(f[s]) === l && (i[s] = l);
10596
10600
  }
@@ -10603,7 +10607,7 @@ function jA(e, t) {
10603
10607
  var n = t ? KA : LA, o = this._parents, i = this._groups;
10604
10608
  typeof e != "function" && (e = DA(e));
10605
10609
  for (var r = i.length, a = new Array(r), s = new Array(r), l = new Array(r), u = 0; u < r; ++u) {
10606
- var d = o[u], c = i[u], f = c.length, m = VA(e.call(d, d && d.__data__, u, o)), h = m.length, v = s[u] = new Array(h), g = a[u] = new Array(h), y = l[u] = new Array(f);
10610
+ var d = o[u], c = i[u], f = c.length, m = qA(e.call(d, d && d.__data__, u, o)), h = m.length, v = s[u] = new Array(h), g = a[u] = new Array(h), y = l[u] = new Array(f);
10607
10611
  n(d, c, v, g, y, m, t);
10608
10612
  for (var b = 0, _ = 0, A, S; b < h; ++b)
10609
10613
  if (A = v[b]) {
@@ -10614,10 +10618,10 @@ function jA(e, t) {
10614
10618
  }
10615
10619
  return a = new Bt(a, o), a._enter = s, a._exit = l, a;
10616
10620
  }
10617
- function VA(e) {
10621
+ function qA(e) {
10618
10622
  return typeof e == "object" && "length" in e ? e : Array.from(e);
10619
10623
  }
10620
- function qA() {
10624
+ function VA() {
10621
10625
  return new Bt(this._exit || this._groups.map(gm), this._parents);
10622
10626
  }
10623
10627
  function zA(e, t, n) {
@@ -10910,13 +10914,13 @@ function jI(e) {
10910
10914
  e.call(this, t, this.__data__);
10911
10915
  };
10912
10916
  }
10913
- function VI(e) {
10917
+ function qI(e) {
10914
10918
  return e.trim().split(/^|\s+/).map(function(t) {
10915
10919
  var n = "", o = t.indexOf(".");
10916
10920
  return o >= 0 && (n = t.slice(o + 1), t = t.slice(0, o)), { type: t, name: n };
10917
10921
  });
10918
10922
  }
10919
- function qI(e) {
10923
+ function VI(e) {
10920
10924
  return function() {
10921
10925
  var t = this.__on;
10922
10926
  if (t) {
@@ -10940,7 +10944,7 @@ function zI(e, t, n) {
10940
10944
  };
10941
10945
  }
10942
10946
  function UI(e, t, n) {
10943
- var o = VI(e + ""), i, r = o.length, a;
10947
+ var o = qI(e + ""), i, r = o.length, a;
10944
10948
  if (arguments.length < 2) {
10945
10949
  var s = this.node().__on;
10946
10950
  if (s) {
@@ -10951,7 +10955,7 @@ function UI(e, t, n) {
10951
10955
  }
10952
10956
  return;
10953
10957
  }
10954
- for (s = t ? zI : qI, i = 0; i < r; ++i)
10958
+ for (s = t ? zI : VI, i = 0; i < r; ++i)
10955
10959
  this.each(s(o[i], t, n));
10956
10960
  return this;
10957
10961
  }
@@ -10996,7 +11000,7 @@ Bt.prototype = Xi.prototype = {
10996
11000
  filter: RA,
10997
11001
  data: jA,
10998
11002
  enter: FA,
10999
- exit: qA,
11003
+ exit: VA,
11000
11004
  join: zA,
11001
11005
  merge: UA,
11002
11006
  selection: XI,
@@ -11162,7 +11166,7 @@ function oT() {
11162
11166
  dispatch: Q
11163
11167
  }), R)) != null)
11164
11168
  return x = I.x - J[0] || 0, ne = I.y - J[1] || 0, function z(B, ie, W) {
11165
- var V = J, Z;
11169
+ var q = J, Z;
11166
11170
  switch (B) {
11167
11171
  case "start":
11168
11172
  i[M] = z, Z = a++;
@@ -11184,8 +11188,8 @@ function oT() {
11184
11188
  active: Z,
11185
11189
  x: J[0] + x,
11186
11190
  y: J[1] + ne,
11187
- dx: J[0] - V[0],
11188
- dy: J[1] - V[1],
11191
+ dx: J[0] - q[0],
11192
+ dy: J[1] - q[1],
11189
11193
  dispatch: Q
11190
11194
  }),
11191
11195
  R
@@ -11430,20 +11434,20 @@ Jl(Dt, Ys, Sm(Zi, {
11430
11434
  displayable() {
11431
11435
  return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
11432
11436
  },
11433
- hex: Vc,
11437
+ hex: qc,
11434
11438
  // Deprecated! Use color.formatHex.
11435
- formatHex: Vc,
11439
+ formatHex: qc,
11436
11440
  formatHex8: mT,
11437
- formatRgb: qc,
11438
- toString: qc
11441
+ formatRgb: Vc,
11442
+ toString: Vc
11439
11443
  }));
11440
- function Vc() {
11444
+ function qc() {
11441
11445
  return `#${Jn(this.r)}${Jn(this.g)}${Jn(this.b)}`;
11442
11446
  }
11443
11447
  function mT() {
11444
11448
  return `#${Jn(this.r)}${Jn(this.g)}${Jn(this.b)}${Jn((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
11445
11449
  }
11446
- function qc() {
11450
+ function Vc() {
11447
11451
  const e = Ur(this.opacity);
11448
11452
  return `${e === 1 ? "rgb(" : "rgba("}${oo(this.r)}, ${oo(this.g)}, ${oo(this.b)}${e === 1 ? ")" : `, ${e})`}`;
11449
11453
  }
@@ -11884,7 +11888,7 @@ function jT(e, t) {
11884
11888
  i.tween = o;
11885
11889
  };
11886
11890
  }
11887
- function VT(e, t, n) {
11891
+ function qT(e, t, n) {
11888
11892
  var o, i;
11889
11893
  if (typeof n != "function")
11890
11894
  throw new Error();
@@ -11902,7 +11906,7 @@ function VT(e, t, n) {
11902
11906
  r.tween = i;
11903
11907
  };
11904
11908
  }
11905
- function qT(e, t) {
11909
+ function VT(e, t) {
11906
11910
  var n = this._id;
11907
11911
  if (e += "", arguments.length < 2) {
11908
11912
  for (var o = en(this.node(), n).tween, i = 0, r = o.length, a; i < r; ++i)
@@ -11910,7 +11914,7 @@ function qT(e, t) {
11910
11914
  return a.value;
11911
11915
  return null;
11912
11916
  }
11913
- return this.each((t == null ? jT : VT)(n, e, t));
11917
+ return this.each((t == null ? jT : qT)(n, e, t));
11914
11918
  }
11915
11919
  function nu(e, t, n) {
11916
11920
  var o = e._id;
@@ -12281,7 +12285,7 @@ Tn.prototype = {
12281
12285
  text: P$,
12282
12286
  textTween: F$,
12283
12287
  remove: y$,
12284
- tween: qT,
12288
+ tween: VT,
12285
12289
  delay: i$,
12286
12290
  duration: s$,
12287
12291
  ease: u$,
@@ -12299,22 +12303,22 @@ var j$ = {
12299
12303
  duration: 250,
12300
12304
  ease: B$
12301
12305
  };
12302
- function V$(e, t) {
12306
+ function q$(e, t) {
12303
12307
  for (var n; !(n = e.__transition) || !(n = n[t]); )
12304
12308
  if (!(e = e.parentNode))
12305
12309
  throw new Error(`transition ${t} not found`);
12306
12310
  return n;
12307
12311
  }
12308
- function q$(e) {
12312
+ function V$(e) {
12309
12313
  var t, n;
12310
12314
  e instanceof Tn ? (t = e._id, e = e._name) : (t = Dm(), (n = j$).time = eu(), e = e == null ? null : e + "");
12311
12315
  for (var o = this._groups, i = o.length, r = 0; r < i; ++r)
12312
12316
  for (var a = o[r], s = a.length, l, u = 0; u < s; ++u)
12313
- (l = a[u]) && Aa(l, e, t, u, a, n || V$(l, t));
12317
+ (l = a[u]) && Aa(l, e, t, u, a, n || q$(l, t));
12314
12318
  return new Tn(o, this._parents, e, t);
12315
12319
  }
12316
12320
  Xi.prototype.interrupt = BT;
12317
- Xi.prototype.transition = q$;
12321
+ Xi.prototype.transition = V$;
12318
12322
  const dr = (e) => () => e;
12319
12323
  function z$(e, {
12320
12324
  sourceEvent: t,
@@ -12412,13 +12416,13 @@ function X$() {
12412
12416
  });
12413
12417
  }, y.scaleBy = function(I, z, B, ie) {
12414
12418
  y.scaleTo(I, function() {
12415
- var W = this.__zoom.k, V = typeof z == "function" ? z.apply(this, arguments) : z;
12416
- return W * V;
12419
+ var W = this.__zoom.k, q = typeof z == "function" ? z.apply(this, arguments) : z;
12420
+ return W * q;
12417
12421
  }, B, ie);
12418
12422
  }, y.scaleTo = function(I, z, B, ie) {
12419
12423
  y.transform(I, function() {
12420
- var W = t.apply(this, arguments), V = this.__zoom, Z = B == null ? A(W) : typeof B == "function" ? B.apply(this, arguments) : B, K = V.invert(Z), U = typeof z == "function" ? z.apply(this, arguments) : z;
12421
- return n(_(b(V, U), Z, K), W, a);
12424
+ var W = t.apply(this, arguments), q = this.__zoom, Z = B == null ? A(W) : typeof B == "function" ? B.apply(this, arguments) : B, K = q.invert(Z), U = typeof z == "function" ? z.apply(this, arguments) : z;
12425
+ return n(_(b(q, U), Z, K), W, a);
12422
12426
  }, B, ie);
12423
12427
  }, y.translateBy = function(I, z, B, ie) {
12424
12428
  y.transform(I, function() {
@@ -12429,11 +12433,11 @@ function X$() {
12429
12433
  }, null, ie);
12430
12434
  }, y.translateTo = function(I, z, B, ie, W) {
12431
12435
  y.transform(I, function() {
12432
- var V = t.apply(this, arguments), Z = this.__zoom, K = ie == null ? A(V) : typeof ie == "function" ? ie.apply(this, arguments) : ie;
12436
+ var q = t.apply(this, arguments), Z = this.__zoom, K = ie == null ? A(q) : typeof ie == "function" ? ie.apply(this, arguments) : ie;
12433
12437
  return n(Yo.translate(K[0], K[1]).scale(Z.k).translate(
12434
12438
  typeof z == "function" ? -z.apply(this, arguments) : -z,
12435
12439
  typeof B == "function" ? -B.apply(this, arguments) : -B
12436
- ), V, a);
12440
+ ), q, a);
12437
12441
  }, ie, W);
12438
12442
  };
12439
12443
  function b(I, z) {
@@ -12452,7 +12456,7 @@ function X$() {
12452
12456
  }).on("interrupt.zoom end.zoom", function() {
12453
12457
  k(this, arguments).event(ie).end();
12454
12458
  }).tween("zoom", function() {
12455
- var W = this, V = arguments, Z = k(W, V).event(ie), K = t.apply(W, V), U = B == null ? A(K) : typeof B == "function" ? B.apply(W, V) : B, ae = Math.max(K[1][0] - K[0][0], K[1][1] - K[0][1]), te = W.__zoom, de = typeof z == "function" ? z.apply(W, V) : z, fe = l(te.invert(U).concat(ae / te.k), de.invert(U).concat(ae / de.k));
12459
+ var W = this, q = arguments, Z = k(W, q).event(ie), K = t.apply(W, q), U = B == null ? A(K) : typeof B == "function" ? B.apply(W, q) : B, ae = Math.max(K[1][0] - K[0][0], K[1][1] - K[0][1]), te = W.__zoom, de = typeof z == "function" ? z.apply(W, q) : z, fe = l(te.invert(U).concat(ae / te.k), de.invert(U).concat(ae / de.k));
12456
12460
  return function(ke) {
12457
12461
  if (ke === 1)
12458
12462
  ke = de;
@@ -12501,13 +12505,13 @@ function X$() {
12501
12505
  function M(I, ...z) {
12502
12506
  if (!e.apply(this, arguments))
12503
12507
  return;
12504
- var B = k(this, z).event(I), ie = this.__zoom, W = Math.max(r[0], Math.min(r[1], ie.k * Math.pow(2, o.apply(this, arguments)))), V = nn(I);
12508
+ var B = k(this, z).event(I), ie = this.__zoom, W = Math.max(r[0], Math.min(r[1], ie.k * Math.pow(2, o.apply(this, arguments)))), q = nn(I);
12505
12509
  if (B.wheel)
12506
- (B.mouse[0][0] !== V[0] || B.mouse[0][1] !== V[1]) && (B.mouse[1] = ie.invert(B.mouse[0] = V)), clearTimeout(B.wheel);
12510
+ (B.mouse[0][0] !== q[0] || B.mouse[0][1] !== q[1]) && (B.mouse[1] = ie.invert(B.mouse[0] = q)), clearTimeout(B.wheel);
12507
12511
  else {
12508
12512
  if (ie.k === W)
12509
12513
  return;
12510
- B.mouse = [V, ie.invert(V)], xr(this), B.start();
12514
+ B.mouse = [q, ie.invert(q)], xr(this), B.start();
12511
12515
  }
12512
12516
  ci(I), B.wheel = setTimeout(Z, h), B.zoom("mouse", n(_(b(ie, W), B.mouse[0], B.mouse[1]), B.extent, a));
12513
12517
  function Z() {
@@ -12517,8 +12521,8 @@ function X$() {
12517
12521
  function j(I, ...z) {
12518
12522
  if (f || !e.apply(this, arguments))
12519
12523
  return;
12520
- var B = I.currentTarget, ie = k(this, z, !0).event(I), W = Ht(I.view).on("mousemove.zoom", U, !0).on("mouseup.zoom", ae, !0), V = nn(I, B), Z = I.clientX, K = I.clientY;
12521
- km(I.view), ts(I), ie.mouse = [V, this.__zoom.invert(V)], xr(this), ie.start();
12524
+ var B = I.currentTarget, ie = k(this, z, !0).event(I), W = Ht(I.view).on("mousemove.zoom", U, !0).on("mouseup.zoom", ae, !0), q = nn(I, B), Z = I.clientX, K = I.clientY;
12525
+ km(I.view), ts(I), ie.mouse = [q, this.__zoom.invert(q)], xr(this), ie.start();
12522
12526
  function U(te) {
12523
12527
  if (ci(te), !ie.moved) {
12524
12528
  var de = te.clientX - Z, fe = te.clientY - K;
@@ -12532,25 +12536,25 @@ function X$() {
12532
12536
  }
12533
12537
  function Q(I, ...z) {
12534
12538
  if (e.apply(this, arguments)) {
12535
- var B = this.__zoom, ie = nn(I.changedTouches ? I.changedTouches[0] : I, this), W = B.invert(ie), V = B.k * (I.shiftKey ? 0.5 : 2), Z = n(_(b(B, V), ie, W), t.apply(this, z), a);
12539
+ var B = this.__zoom, ie = nn(I.changedTouches ? I.changedTouches[0] : I, this), W = B.invert(ie), q = B.k * (I.shiftKey ? 0.5 : 2), Z = n(_(b(B, q), ie, W), t.apply(this, z), a);
12536
12540
  ci(I), s > 0 ? Ht(this).transition().duration(s).call(S, Z, ie, I) : Ht(this).call(y.transform, Z, ie, I);
12537
12541
  }
12538
12542
  }
12539
12543
  function J(I, ...z) {
12540
12544
  if (e.apply(this, arguments)) {
12541
- var B = I.touches, ie = B.length, W = k(this, z, I.changedTouches.length === ie).event(I), V, Z, K, U;
12545
+ var B = I.touches, ie = B.length, W = k(this, z, I.changedTouches.length === ie).event(I), q, Z, K, U;
12542
12546
  for (ts(I), Z = 0; Z < ie; ++Z)
12543
- K = B[Z], U = nn(K, this), U = [U, this.__zoom.invert(U), K.identifier], W.touch0 ? !W.touch1 && W.touch0[2] !== U[2] && (W.touch1 = U, W.taps = 0) : (W.touch0 = U, V = !0, W.taps = 1 + !!d);
12544
- d && (d = clearTimeout(d)), V && (W.taps < 2 && (c = U[0], d = setTimeout(function() {
12547
+ K = B[Z], U = nn(K, this), U = [U, this.__zoom.invert(U), K.identifier], W.touch0 ? !W.touch1 && W.touch0[2] !== U[2] && (W.touch1 = U, W.taps = 0) : (W.touch0 = U, q = !0, W.taps = 1 + !!d);
12548
+ d && (d = clearTimeout(d)), q && (W.taps < 2 && (c = U[0], d = setTimeout(function() {
12545
12549
  d = null;
12546
12550
  }, m)), xr(this), W.start());
12547
12551
  }
12548
12552
  }
12549
12553
  function x(I, ...z) {
12550
12554
  if (this.__zooming) {
12551
- var B = k(this, z).event(I), ie = I.changedTouches, W = ie.length, V, Z, K, U;
12552
- for (ci(I), V = 0; V < W; ++V)
12553
- Z = ie[V], K = nn(Z, this), B.touch0 && B.touch0[2] === Z.identifier ? B.touch0[0] = K : B.touch1 && B.touch1[2] === Z.identifier && (B.touch1[0] = K);
12555
+ var B = k(this, z).event(I), ie = I.changedTouches, W = ie.length, q, Z, K, U;
12556
+ for (ci(I), q = 0; q < W; ++q)
12557
+ Z = ie[q], K = nn(Z, this), B.touch0 && B.touch0[2] === Z.identifier ? B.touch0[0] = K : B.touch1 && B.touch1[2] === Z.identifier && (B.touch1[0] = K);
12554
12558
  if (Z = B.that.__zoom, B.touch1) {
12555
12559
  var ae = B.touch0[0], te = B.touch0[1], de = B.touch1[0], fe = B.touch1[1], ke = (ke = de[0] - ae[0]) * ke + (ke = de[1] - ae[1]) * ke, xe = (xe = fe[0] - te[0]) * xe + (xe = fe[1] - te[1]) * xe;
12556
12560
  Z = b(Z, Math.sqrt(ke / xe)), K = [(ae[0] + de[0]) / 2, (ae[1] + de[1]) / 2], U = [(te[0] + fe[0]) / 2, (te[1] + fe[1]) / 2];
@@ -12563,11 +12567,11 @@ function X$() {
12563
12567
  }
12564
12568
  function ne(I, ...z) {
12565
12569
  if (this.__zooming) {
12566
- var B = k(this, z).event(I), ie = I.changedTouches, W = ie.length, V, Z;
12570
+ var B = k(this, z).event(I), ie = I.changedTouches, W = ie.length, q, Z;
12567
12571
  for (ts(I), f && clearTimeout(f), f = setTimeout(function() {
12568
12572
  f = null;
12569
- }, m), V = 0; V < W; ++V)
12570
- Z = ie[V], B.touch0 && B.touch0[2] === Z.identifier ? delete B.touch0 : B.touch1 && B.touch1[2] === Z.identifier && delete B.touch1;
12573
+ }, m), q = 0; q < W; ++q)
12574
+ Z = ie[q], B.touch0 && B.touch0[2] === Z.identifier ? delete B.touch0 : B.touch1 && B.touch1[2] === Z.identifier && delete B.touch1;
12571
12575
  if (B.touch1 && !B.touch0 && (B.touch0 = B.touch1, delete B.touch1), B.touch0)
12572
12576
  B.touch0[1] = this.__zoom.invert(B.touch0[0]);
12573
12577
  else if (B.end(), B.taps === 2 && (Z = nn(Z, this), Math.hypot(c[0] - Z[0], c[1] - Z[1]) < g)) {
@@ -12709,7 +12713,7 @@ function Ia(e) {
12709
12713
  function po(e, t = 0, n = 1) {
12710
12714
  return Math.min(Math.max(e, t), n);
12711
12715
  }
12712
- function Vm(e, t) {
12716
+ function qm(e, t) {
12713
12717
  return {
12714
12718
  x: po(e.x, t[0][0], t[1][0]),
12715
12719
  y: po(e.y, t[0][1], t[1][1])
@@ -12769,7 +12773,7 @@ function iN(e, t, n) {
12769
12773
  };
12770
12774
  return Object.assign(t ?? o, e, { id: e.id.toString(), parentNode: n });
12771
12775
  }
12772
- function qm(e, t, n) {
12776
+ function Vm(e, t, n) {
12773
12777
  var o, i;
12774
12778
  const r = {
12775
12779
  id: e.id.toString(),
@@ -12825,7 +12829,7 @@ function tl({ x: e, y: t }, { x: n, y: o, zoom: i }) {
12825
12829
  y: t * i + o
12826
12830
  };
12827
12831
  }
12828
- function Vi({ x: e, y: t }, { x: n, y: o, zoom: i }, r = !1, a = [1, 1]) {
12832
+ function qi({ x: e, y: t }, { x: n, y: o, zoom: i }, r = !1, a = [1, 1]) {
12829
12833
  const s = {
12830
12834
  x: (e - n) / i,
12831
12835
  y: (t - o) / i
@@ -12877,7 +12881,7 @@ function Gm(e) {
12877
12881
  }
12878
12882
  function Ym(e, t, n = { x: 0, y: 0, zoom: 1 }, o = !1, i = !1) {
12879
12883
  const r = {
12880
- ...Vi(t, n),
12884
+ ...qi(t, n),
12881
12885
  width: t.width / n.zoom,
12882
12886
  height: t.height / n.zoom
12883
12887
  }, a = [];
@@ -12916,7 +12920,7 @@ function Xm(e, t) {
12916
12920
  const n = t(e.parentNode);
12917
12921
  return n ? n.selected ? !0 : Xm(n, t) : !1;
12918
12922
  }
12919
- function qi(e, t) {
12923
+ function Vi(e, t) {
12920
12924
  return typeof e > "u" ? "" : typeof e == "string" ? e : `${t ? `${t}__` : ""}${Object.keys(e).sort().map((o) => `${o}=${e[o]}`).join("&")}`;
12921
12925
  }
12922
12926
  function nd(e, t, n) {
@@ -13174,7 +13178,7 @@ function mN({ width: e, height: t }, n) {
13174
13178
  return [n[0], [n[1][0] - (e || 0), n[1][1] - (t || 0)]];
13175
13179
  }
13176
13180
  function iu(e, t, n, o, i) {
13177
- const r = mN(e.dimensions, pN(e, n, o, i)), a = Vm(t, r);
13181
+ const r = mN(e.dimensions, pN(e, n, o, i)), a = qm(t, r);
13178
13182
  return {
13179
13183
  position: {
13180
13184
  x: a.x - ((i == null ? void 0 : i.computedPosition.x) || 0),
@@ -13446,7 +13450,7 @@ function AN(e, t, n, o) {
13446
13450
  return jn(e) ? i = e : i = {
13447
13451
  ...e,
13448
13452
  id: Um(e)
13449
- }, i = qm(i, void 0, o), sN(i, t) ? !1 : i;
13453
+ }, i = Vm(i, void 0, o), sN(i, t) ? !1 : i;
13450
13454
  }
13451
13455
  function IN(e, t, n, o, i) {
13452
13456
  if (!t.source || !t.target)
@@ -13538,7 +13542,7 @@ function as(e, t, n, o, i, r, a, s) {
13538
13542
  }
13539
13543
  const m = o(d.id);
13540
13544
  l.push({
13541
- ...qm(d, m, r),
13545
+ ...Vm(d, m, r),
13542
13546
  sourceNode: c,
13543
13547
  targetNode: f
13544
13548
  });
@@ -13569,7 +13573,7 @@ function og(e) {
13569
13573
  updateNodePositions: _,
13570
13574
  emits: A
13571
13575
  } = Je(), { onStart: S, onDrag: k, onStop: R, onClick: M, el: j, disabled: Q, id: J, selectable: x, dragHandle: ne } = e, I = ro(!1);
13572
- let z = [], B, ie = null, W = { x: void 0, y: void 0 }, V = { x: 0, y: 0 }, Z = null, K = !1, U = 0, ae = !1;
13576
+ let z = [], B, ie = null, W = { x: void 0, y: void 0 }, q = { x: 0, y: 0 }, Z = null, K = !1, U = 0, ae = !1;
13573
13577
  const te = PN(), de = ({ x: pe, y: be }) => {
13574
13578
  W = { x: pe, y: be };
13575
13579
  let _e = !1;
@@ -13593,7 +13597,7 @@ function og(e) {
13593
13597
  }, fe = () => {
13594
13598
  if (!ie)
13595
13599
  return;
13596
- const [pe, be] = Zm(V, ie, d.value);
13600
+ const [pe, be] = Zm(q, ie, d.value);
13597
13601
  if (pe !== 0 || be !== 0) {
13598
13602
  const _e = {
13599
13603
  x: (W.x ?? 0) - pe / l.value.zoom,
@@ -13625,14 +13629,14 @@ function og(e) {
13625
13629
  }
13626
13630
  }, xe = (pe, be) => {
13627
13631
  var _e;
13628
- pe.sourceEvent.type === "touchmove" && pe.sourceEvent.touches.length > 1 || (s.value === 0 && ke(pe, be), W = te(pe.sourceEvent), ie = ((_e = t.value) == null ? void 0 : _e.getBoundingClientRect()) || null, V = cn(pe.sourceEvent, ie));
13632
+ pe.sourceEvent.type === "touchmove" && pe.sourceEvent.touches.length > 1 || (s.value === 0 && ke(pe, be), W = te(pe.sourceEvent), ie = ((_e = t.value) == null ? void 0 : _e.getBoundingClientRect()) || null, q = cn(pe.sourceEvent, ie));
13629
13633
  }, oe = (pe, be) => {
13630
13634
  const _e = te(pe.sourceEvent);
13631
13635
  if (!ae && K && u.value && (ae = !0, fe()), !K) {
13632
13636
  const E = _e.xSnapped - (W.x ?? 0), C = _e.ySnapped - (W.y ?? 0);
13633
13637
  Math.sqrt(E * E + C * C) > s.value && ke(pe, be);
13634
13638
  }
13635
- (W.x !== _e.xSnapped || W.y !== _e.ySnapped) && z.length && K && (Z = pe.sourceEvent, V = cn(pe.sourceEvent, ie), de(_e));
13639
+ (W.x !== _e.xSnapped || W.y !== _e.ySnapped) && z.length && K && (Z = pe.sourceEvent, q = cn(pe.sourceEvent, ie), de(_e));
13636
13640
  }, le = (pe) => {
13637
13641
  let be = !1;
13638
13642
  if (!K && !I.value && !h.value) {
@@ -13654,8 +13658,8 @@ function og(e) {
13654
13658
  if (be) {
13655
13659
  const C = Ht(be);
13656
13660
  pe || (B = oT().on("start", (N) => xe(N, be)).on("drag", (N) => oe(N, be)).on("end", (N) => le(N)).filter((N) => {
13657
- const T = N.target, q = Pe(ne);
13658
- return !N.button && (!i.value || !sd(T, `.${i.value}`, be) && (!q || sd(T, q, be)));
13661
+ const T = N.target, V = Pe(ne);
13662
+ return !N.button && (!i.value || !sd(T, `.${i.value}`, be) && (!V || sd(T, V, be)));
13659
13663
  }), C.call(B)), E(() => {
13660
13664
  C.on(".drag", null), B && (B.on("start", null), B.on("drag", null), B.on("end", null));
13661
13665
  });
@@ -13713,7 +13717,7 @@ function PN() {
13713
13717
  const { viewport: e, snapGrid: t, snapToGrid: n, vueFlowRef: o } = Je();
13714
13718
  return (i) => {
13715
13719
  var r;
13716
- const a = ((r = o.value) == null ? void 0 : r.getBoundingClientRect()) ?? { left: 0, top: 0 }, s = vN(i) ? i.sourceEvent : i, { x: l, y: u } = cn(s, a), d = Vi({ x: l, y: u }, e.value), { x: c, y: f } = n.value ? Ta(d, t.value) : d;
13720
+ const a = ((r = o.value) == null ? void 0 : r.getBoundingClientRect()) ?? { left: 0, top: 0 }, s = vN(i) ? i.sourceEvent : i, { x: l, y: u } = cn(s, a), d = qi({ x: l, y: u }, e.value), { x: c, y: f } = n.value ? Ta(d, t.value) : d;
13717
13721
  return {
13718
13722
  xSnapped: c,
13719
13723
  ySnapped: f,
@@ -13758,11 +13762,11 @@ function ig({
13758
13762
  let J = null, x = !1, ne = null;
13759
13763
  function I(B) {
13760
13764
  var ie;
13761
- const W = Pe(n) === "target", V = ru(B), Z = ed(B.target);
13762
- if (V && B.button === 0 || !V) {
13765
+ const W = Pe(n) === "target", q = ru(B), Z = ed(B.target);
13766
+ if (q && B.button === 0 || !q) {
13763
13767
  let K = function(Y) {
13764
13768
  E = cn(Y, pe), de = EN(
13765
- Vi(E, k.value, !1, [1, 1]),
13769
+ qi(E, k.value, !1, [1, 1]),
13766
13770
  d.value,
13767
13771
  Q.value,
13768
13772
  T
@@ -13834,13 +13838,13 @@ function ig({
13834
13838
  nodeId: Pe(t),
13835
13839
  type: le,
13836
13840
  position: be.position
13837
- }, q = Q.value.get(Pe(t)), H = {
13841
+ }, V = Q.value.get(Pe(t)), H = {
13838
13842
  inProgress: !0,
13839
13843
  isValid: null,
13840
- from: Wo(q, T, Te.Left, !0),
13844
+ from: Wo(V, T, Te.Left, !0),
13841
13845
  fromHandle: T,
13842
13846
  fromPosition: T.position,
13843
- fromNode: q,
13847
+ fromNode: V,
13844
13848
  to: E,
13845
13849
  toHandle: null,
13846
13850
  toPosition: nl[T.position],
@@ -13867,7 +13871,7 @@ function ig({
13867
13871
  var ie, W;
13868
13872
  if (!c.value)
13869
13873
  return;
13870
- const V = Pe(n) === "target";
13874
+ const q = Pe(n) === "target";
13871
13875
  if (!f.value) {
13872
13876
  S.clickConnectStart({ event: B, nodeId: Pe(t), handleId: Pe(e) }), b(
13873
13877
  {
@@ -13884,7 +13888,7 @@ function ig({
13884
13888
  }
13885
13889
  let Z = Pe(o) || j.value || pr;
13886
13890
  const K = g(Pe(t));
13887
- if (!Z && K && (Z = (V ? K.isValidSourcePos : K.isValidTargetPos) || pr), K && (typeof K.connectable > "u" ? m.value : K.connectable) === !1)
13891
+ if (!Z && K && (Z = (q ? K.isValidSourcePos : K.isValidTargetPos) || pr), K && (typeof K.connectable > "u" ? m.value : K.connectable) === !1)
13888
13892
  return;
13889
13893
  const U = ed(B.target), ae = cd(
13890
13894
  B,
@@ -14035,7 +14039,7 @@ function KN(e) {
14035
14039
  function n(o, i, r, a) {
14036
14040
  return new Promise((s) => {
14037
14041
  var l;
14038
- const { x: u, y: d } = Vm({ x: -o, y: -i }, e.translateExtent), c = Yo.translate(-u, -d).scale(r);
14042
+ const { x: u, y: d } = qm({ x: -o, y: -i }, e.translateExtent), c = Yo.translate(-u, -d).scale(r);
14039
14043
  e.d3Selection && e.d3Zoom ? (l = e.d3Zoom) == null || l.interpolate((a == null ? void 0 : a.interpolate) === "linear" ? xi : kr).transform(
14040
14044
  ls(e.d3Selection, a == null ? void 0 : a.duration, a == null ? void 0 : a.ease, () => {
14041
14045
  s(!0);
@@ -14106,14 +14110,14 @@ function KN(e) {
14106
14110
  );
14107
14111
  return n(a, s, l, r);
14108
14112
  },
14109
- project: (i) => Vi(i, e.viewport, e.snapToGrid, e.snapGrid),
14113
+ project: (i) => qi(i, e.viewport, e.snapToGrid, e.snapGrid),
14110
14114
  screenToFlowCoordinate: (i) => {
14111
14115
  if (e.vueFlowRef) {
14112
14116
  const { x: r, y: a } = e.vueFlowRef.getBoundingClientRect(), s = {
14113
14117
  x: i.x - r,
14114
14118
  y: i.y - a
14115
14119
  };
14116
- return Vi(s, e.viewport, e.snapToGrid, e.snapGrid);
14120
+ return qi(s, e.viewport, e.snapToGrid, e.snapGrid);
14117
14121
  }
14118
14122
  return { x: 0, y: 0 };
14119
14123
  },
@@ -14371,7 +14375,7 @@ function jN() {
14371
14375
  error: Ae((e) => $a(e.message))
14372
14376
  };
14373
14377
  }
14374
- function VN(e, t) {
14378
+ function qN(e, t) {
14375
14379
  $n(() => {
14376
14380
  for (const [n, o] of Object.entries(t.value)) {
14377
14381
  const i = (r) => {
@@ -14478,7 +14482,7 @@ function sg() {
14478
14482
  ariaLiveMessage: ""
14479
14483
  };
14480
14484
  }
14481
- const qN = [
14485
+ const VN = [
14482
14486
  "id",
14483
14487
  "vueFlowRef",
14484
14488
  "viewportRef",
@@ -14506,7 +14510,7 @@ function zN(e, t, n) {
14506
14510
  if (E)
14507
14511
  return n.value.get(E);
14508
14512
  }, c = (E, C, N) => {
14509
- var T, q;
14513
+ var T, V;
14510
14514
  const $ = [];
14511
14515
  for (const H of E) {
14512
14516
  const O = {
@@ -14519,7 +14523,7 @@ function zN(e, t, n) {
14519
14523
  const Y = u(H.parentNode);
14520
14524
  O.position = {
14521
14525
  x: O.position.x - (((T = Y == null ? void 0 : Y.computedPosition) == null ? void 0 : T.x) ?? 0),
14522
- y: O.position.y - (((q = Y == null ? void 0 : Y.computedPosition) == null ? void 0 : q.y) ?? 0)
14526
+ y: O.position.y - (((V = Y == null ? void 0 : Y.computedPosition) == null ? void 0 : V.y) ?? 0)
14523
14527
  };
14524
14528
  }
14525
14529
  $.push(O);
@@ -14531,14 +14535,14 @@ function zN(e, t, n) {
14531
14535
  const C = e.vueFlowRef.querySelector(".vue-flow__transformationpane");
14532
14536
  if (!C)
14533
14537
  return;
14534
- const N = window.getComputedStyle(C), { m22: T } = new window.DOMMatrixReadOnly(N.transform), q = [];
14538
+ const N = window.getComputedStyle(C), { m22: T } = new window.DOMMatrixReadOnly(N.transform), V = [];
14535
14539
  for (const $ of E) {
14536
14540
  const H = $, O = u(H.id);
14537
14541
  if (O) {
14538
14542
  const Y = Ia(H.nodeElement);
14539
14543
  if (!!(Y.width && Y.height && (O.dimensions.width !== Y.width || O.dimensions.height !== Y.height || H.forceUpdate))) {
14540
14544
  const se = H.nodeElement.getBoundingClientRect();
14541
- O.dimensions = Y, O.handleBounds.source = dd("source", H.nodeElement, se, T, O.id), O.handleBounds.target = dd("target", H.nodeElement, se, T, O.id), q.push({
14545
+ O.dimensions = Y, O.handleBounds.source = dd("source", H.nodeElement, se, T, O.id), O.handleBounds.target = dd("target", H.nodeElement, se, T, O.id), V.push({
14542
14546
  id: O.id,
14543
14547
  type: "dimensions",
14544
14548
  dimensions: Y
@@ -14548,19 +14552,19 @@ function zN(e, t, n) {
14548
14552
  }
14549
14553
  !e.fitViewOnInitDone && e.fitViewOnInit && o.value.fitView().then(() => {
14550
14554
  e.fitViewOnInitDone = !0;
14551
- }), q.length && e.hooks.nodesChange.trigger(q);
14555
+ }), V.length && e.hooks.nodesChange.trigger(V);
14552
14556
  }, m = (E, C) => {
14553
14557
  const N = /* @__PURE__ */ new Set(), T = /* @__PURE__ */ new Set();
14554
14558
  for (const H of E)
14555
14559
  io(H) ? N.add(H.id) : jn(H) && T.add(H.id);
14556
- const q = Rn(t.value, N, !0), $ = Rn(n.value, T);
14560
+ const V = Rn(t.value, N, !0), $ = Rn(n.value, T);
14557
14561
  if (e.multiSelectionActive) {
14558
14562
  for (const H of N)
14559
- q.push(Mn(H, C));
14563
+ V.push(Mn(H, C));
14560
14564
  for (const H of T)
14561
14565
  $.push(Mn(H, C));
14562
14566
  }
14563
- q.length && e.hooks.nodesChange.trigger(q), $.length && e.hooks.edgesChange.trigger($);
14567
+ V.length && e.hooks.nodesChange.trigger(V), $.length && e.hooks.edgesChange.trigger($);
14564
14568
  }, h = (E) => {
14565
14569
  if (e.multiSelectionActive) {
14566
14570
  const C = E.map((N) => Mn(N.id, !0));
@@ -14588,8 +14592,8 @@ function zN(e, t, n) {
14588
14592
  return m([], !1);
14589
14593
  const C = E.reduce(
14590
14594
  (N, T) => {
14591
- const q = Mn(T.id, !1);
14592
- return io(T) ? N.nodes.push(q) : N.edges.push(q), N;
14595
+ const V = Mn(T.id, !1);
14596
+ return io(T) ? N.nodes.push(V) : N.edges.push(V), N;
14593
14597
  },
14594
14598
  { nodes: [], edges: [] }
14595
14599
  );
@@ -14635,8 +14639,8 @@ function zN(e, t, n) {
14635
14639
  let C = E instanceof Function ? E(e.nodes) : E;
14636
14640
  C = Array.isArray(C) ? C : [C];
14637
14641
  const N = fd(C, u, e.hooks.error.trigger), T = [];
14638
- for (const q of N)
14639
- T.push(id(q));
14642
+ for (const V of N)
14643
+ T.push(id(V));
14640
14644
  T.length && e.hooks.nodesChange.trigger(T);
14641
14645
  }, I = (E) => {
14642
14646
  let C = E instanceof Function ? E(e.edges) : E;
@@ -14651,11 +14655,11 @@ function zN(e, t, n) {
14651
14655
  e.nodes,
14652
14656
  e.edges
14653
14657
  ), T = [];
14654
- for (const q of N)
14655
- T.push(id(q));
14658
+ for (const V of N)
14659
+ T.push(id(V));
14656
14660
  T.length && e.hooks.edgesChange.trigger(T);
14657
14661
  }, z = (E, C = !0, N = !1) => {
14658
- const T = E instanceof Function ? E(e.nodes) : E, q = Array.isArray(T) ? T : [T], $ = [], H = [];
14662
+ const T = E instanceof Function ? E(e.nodes) : E, V = Array.isArray(T) ? T : [T], $ = [], H = [];
14659
14663
  function O(L) {
14660
14664
  const se = s(L);
14661
14665
  for (const he of se)
@@ -14673,18 +14677,18 @@ function zN(e, t, n) {
14673
14677
  Y(he.id);
14674
14678
  }
14675
14679
  }
14676
- for (const L of q) {
14680
+ for (const L of V) {
14677
14681
  const se = typeof L == "string" ? u(L) : L;
14678
14682
  se && (pt(se.deletable) && !se.deletable || ($.push(rd(se.id)), C && O([se]), N && Y(se.id)));
14679
14683
  }
14680
14684
  H.length && e.hooks.edgesChange.trigger(H), $.length && e.hooks.nodesChange.trigger($);
14681
14685
  }, B = (E) => {
14682
14686
  const C = E instanceof Function ? E(e.edges) : E, N = Array.isArray(C) ? C : [C], T = [];
14683
- for (const q of N) {
14684
- const $ = typeof q == "string" ? d(q) : q;
14687
+ for (const V of N) {
14688
+ const $ = typeof V == "string" ? d(V) : V;
14685
14689
  $ && (pt($.deletable) && !$.deletable || T.push(
14686
14690
  ad(
14687
- typeof q == "string" ? q : q.id,
14691
+ typeof V == "string" ? V : V.id,
14688
14692
  $.source,
14689
14693
  $.target,
14690
14694
  $.sourceHandle,
@@ -14697,7 +14701,7 @@ function zN(e, t, n) {
14697
14701
  const T = d(E.id);
14698
14702
  if (!T)
14699
14703
  return !1;
14700
- const q = e.edges.indexOf(T), $ = IN(E, C, T, N, e.hooks.error.trigger);
14704
+ const V = e.edges.indexOf(T), $ = IN(E, C, T, N, e.hooks.error.trigger);
14701
14705
  if ($) {
14702
14706
  const [H] = as(
14703
14707
  [$],
@@ -14709,30 +14713,30 @@ function zN(e, t, n) {
14709
14713
  e.nodes,
14710
14714
  e.edges
14711
14715
  );
14712
- return e.edges = e.edges.map((O, Y) => Y === q ? H : O), rs(e.connectionLookup, n.value, [H]), H;
14716
+ return e.edges = e.edges.map((O, Y) => Y === V ? H : O), rs(e.connectionLookup, n.value, [H]), H;
14713
14717
  }
14714
14718
  return !1;
14715
14719
  }, W = (E, C, N = { replace: !1 }) => {
14716
14720
  const T = d(E);
14717
14721
  if (!T)
14718
14722
  return;
14719
- const q = typeof C == "function" ? C(T) : C;
14720
- T.data = N.replace ? q : { ...T.data, ...q };
14721
- }, V = (E) => od(E, e.nodes), Z = (E) => {
14723
+ const V = typeof C == "function" ? C(T) : C;
14724
+ T.data = N.replace ? V : { ...T.data, ...V };
14725
+ }, q = (E) => od(E, e.nodes), Z = (E) => {
14722
14726
  const C = od(E, e.edges);
14723
14727
  return rs(e.connectionLookup, n.value, C), C;
14724
14728
  }, K = (E, C, N = { replace: !1 }) => {
14725
14729
  const T = u(E);
14726
14730
  if (!T)
14727
14731
  return;
14728
- const q = typeof C == "function" ? C(T) : C;
14729
- N.replace ? e.nodes.splice(e.nodes.indexOf(T), 1, q) : Object.assign(T, q);
14732
+ const V = typeof C == "function" ? C(T) : C;
14733
+ N.replace ? e.nodes.splice(e.nodes.indexOf(T), 1, V) : Object.assign(T, V);
14730
14734
  }, U = (E, C, N = { replace: !1 }) => {
14731
14735
  const T = u(E);
14732
14736
  if (!T)
14733
14737
  return;
14734
- const q = typeof C == "function" ? C(T) : C;
14735
- T.data = N.replace ? q : { ...T.data, ...q };
14738
+ const V = typeof C == "function" ? C(T) : C;
14739
+ T.data = N.replace ? V : { ...T.data, ...V };
14736
14740
  }, ae = (E, C, N = !1) => {
14737
14741
  N ? e.connectionClickStartHandle = E : e.connectionStartHandle = E, e.connectionEndHandle = null, e.connectionStatus = null, C && (e.connectionPosition = C);
14738
14742
  }, te = (E, C = null, N = null) => {
@@ -14743,12 +14747,12 @@ function zN(e, t, n) {
14743
14747
  const C = oN(E), N = C ? null : hi(E) ? E : u(E.id);
14744
14748
  return !C && !N ? [null, null, C] : [C ? E : Zr(N), N, C];
14745
14749
  }, ke = (E, C = !0, N = e.nodes) => {
14746
- const [T, q, $] = fe(E);
14750
+ const [T, V, $] = fe(E);
14747
14751
  if (!T)
14748
14752
  return [];
14749
14753
  const H = [];
14750
14754
  for (const O of N || e.nodes) {
14751
- if (!$ && (O.id === q.id || !O.computedPosition))
14755
+ if (!$ && (O.id === V.id || !O.computedPosition))
14752
14756
  continue;
14753
14757
  const Y = Zr(O), L = Jr(Y, T);
14754
14758
  (C && L > 0 || L >= Number(T.width) * Number(T.height)) && H.push(O);
@@ -14758,17 +14762,17 @@ function zN(e, t, n) {
14758
14762
  const [T] = fe(E);
14759
14763
  if (!T)
14760
14764
  return !1;
14761
- const q = Jr(T, C);
14762
- return N && q > 0 || q >= Number(T.width) * Number(T.height);
14765
+ const V = Jr(T, C);
14766
+ return N && V > 0 || V >= Number(T.width) * Number(T.height);
14763
14767
  }, oe = (E) => {
14764
- const { viewport: C, dimensions: N, d3Zoom: T, d3Selection: q, translateExtent: $ } = e;
14765
- if (!T || !q || !E.x && !E.y)
14768
+ const { viewport: C, dimensions: N, d3Zoom: T, d3Selection: V, translateExtent: $ } = e;
14769
+ if (!T || !V || !E.x && !E.y)
14766
14770
  return !1;
14767
14771
  const H = Yo.translate(C.x + E.x, C.y + E.y).scale(C.zoom), O = [
14768
14772
  [0, 0],
14769
14773
  [N.width, N.height]
14770
14774
  ], Y = T.constrain()(H, O, $), L = e.viewport.x !== Y.x || e.viewport.y !== Y.y || e.viewport.zoom !== Y.k;
14771
- return T.transform(q, Y), L;
14775
+ return T.transform(V, Y), L;
14772
14776
  }, le = (E) => {
14773
14777
  const C = E instanceof Function ? E(e) : E, N = [
14774
14778
  "d3Zoom",
@@ -14782,14 +14786,14 @@ function zN(e, t, n) {
14782
14786
  pt(C.defaultEdgeOptions) && (e.defaultEdgeOptions = C.defaultEdgeOptions);
14783
14787
  const T = C.modelValue || C.nodes || C.edges ? [] : void 0;
14784
14788
  T && (C.modelValue && T.push(...C.modelValue), C.nodes && T.push(...C.nodes), C.edges && T.push(...C.edges), x(T));
14785
- const q = () => {
14789
+ const V = () => {
14786
14790
  pt(C.maxZoom) && S(C.maxZoom), pt(C.minZoom) && A(C.minZoom), pt(C.translateExtent) && k(C.translateExtent);
14787
14791
  };
14788
14792
  for (const $ of Object.keys(C)) {
14789
14793
  const H = $, O = C[H];
14790
- ![...qN, ...N].includes(H) && pt(O) && (e[H] = O);
14794
+ ![...VN, ...N].includes(H) && pt(O) && (e[H] = O);
14791
14795
  }
14792
- Us(() => e.d3Zoom).not.toBeNull().then(q), e.initialized || (e.initialized = !0);
14796
+ Us(() => e.d3Zoom).not.toBeNull().then(V), e.initialized || (e.initialized = !0);
14793
14797
  };
14794
14798
  return {
14795
14799
  updateNodePositions: c,
@@ -14808,7 +14812,7 @@ function zN(e, t, n) {
14808
14812
  updateNode: K,
14809
14813
  updateNodeData: U,
14810
14814
  applyEdgeChanges: Z,
14811
- applyNodeChanges: V,
14815
+ applyNodeChanges: q,
14812
14816
  addSelectedElements: g,
14813
14817
  addSelectedNodes: h,
14814
14818
  addSelectedEdges: v,
@@ -14850,7 +14854,7 @@ function zN(e, t, n) {
14850
14854
  for (const N of e.nodes) {
14851
14855
  const {
14852
14856
  computedPosition: T,
14853
- handleBounds: q,
14857
+ handleBounds: V,
14854
14858
  selected: $,
14855
14859
  dimensions: H,
14856
14860
  isParent: O,
@@ -14862,7 +14866,7 @@ function zN(e, t, n) {
14862
14866
  E.push(he);
14863
14867
  }
14864
14868
  for (const N of e.edges) {
14865
- const { selected: T, sourceNode: q, targetNode: $, events: H, ...O } = N;
14869
+ const { selected: T, sourceNode: V, targetNode: $, events: H, ...O } = N;
14866
14870
  C.push(O);
14867
14871
  }
14868
14872
  return JSON.parse(
@@ -14876,9 +14880,9 @@ function zN(e, t, n) {
14876
14880
  );
14877
14881
  },
14878
14882
  fromObject: (E) => new Promise((C) => {
14879
- const { nodes: N, edges: T, position: q, zoom: $, viewport: H } = E;
14880
- if (N && Q(N), T && J(T), H != null && H.x && (H != null && H.y) || q) {
14881
- const O = (H == null ? void 0 : H.x) || q[0], Y = (H == null ? void 0 : H.y) || q[1], L = (H == null ? void 0 : H.zoom) || $ || e.viewport.zoom;
14883
+ const { nodes: N, edges: T, position: V, zoom: $, viewport: H } = E;
14884
+ if (N && Q(N), T && J(T), H != null && H.x && (H != null && H.y) || V) {
14885
+ const O = (H == null ? void 0 : H.x) || V[0], Y = (H == null ? void 0 : H.y) || V[1], L = (H == null ? void 0 : H.zoom) || $ || e.viewport.zoom;
14882
14886
  return Us(() => o.value.viewportInitialized).toBe(!0).then(() => {
14883
14887
  o.value.setViewport({
14884
14888
  x: O,
@@ -14899,8 +14903,8 @@ function zN(e, t, n) {
14899
14903
  const C = Yo.translate(E.defaultViewport.x ?? 0, E.defaultViewport.y ?? 0).scale(po(E.defaultViewport.zoom ?? 1, E.minZoom, E.maxZoom)), N = e.viewportRef.getBoundingClientRect(), T = [
14900
14904
  [0, 0],
14901
14905
  [N.width, N.height]
14902
- ], q = e.d3Zoom.constrain()(C, T, E.translateExtent);
14903
- e.d3Zoom.transform(e.d3Selection, q);
14906
+ ], V = e.d3Zoom.constrain()(C, T, E.translateExtent);
14907
+ e.d3Zoom.transform(e.d3Selection, V);
14904
14908
  }
14905
14909
  le(E);
14906
14910
  },
@@ -14958,7 +14962,7 @@ const UN = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], HN = {
14958
14962
  var J;
14959
14963
  if (!h.dimensions.width || !h.dimensions.height)
14960
14964
  return;
14961
- const x = (J = h.handleBounds[o.value]) == null ? void 0 : J.find((V) => V.id === e.id);
14965
+ const x = (J = h.handleBounds[o.value]) == null ? void 0 : J.find((q) => q.id === e.id);
14962
14966
  if (!u.value || x)
14963
14967
  return;
14964
14968
  const ne = u.value.querySelector(".vue-flow__transformationpane");
@@ -15143,7 +15147,7 @@ const WN = Ma, XN = ["transform"], ZN = ["width", "height", "x", "y", "rx", "ry"
15143
15147
  labelBgBorderRadius: {}
15144
15148
  },
15145
15149
  setup(e, { expose: t }) {
15146
- const n = re(null), o = re(null), i = re(null), r = Vn();
15150
+ const n = re(null), o = re(null), i = re(null), r = qn();
15147
15151
  return t({
15148
15152
  pathEl: n,
15149
15153
  interactionEl: o,
@@ -15938,7 +15942,7 @@ const AO = {
15938
15942
  }
15939
15943
  i.paneClick(te), a(), u.value = !1;
15940
15944
  }
15941
- function V(te) {
15945
+ function q(te) {
15942
15946
  te.preventDefault(), te.stopPropagation(), i.paneContextMenu(te);
15943
15947
  }
15944
15948
  function Z(te) {
@@ -16005,7 +16009,7 @@ const AO = {
16005
16009
  ref: R,
16006
16010
  class: ze(["vue-flow__pane vue-flow__container", { selection: te.isSelecting }]),
16007
16011
  onClick: de[0] || (de[0] = (fe) => J.value ? void 0 : ie(W, R.value)(fe)),
16008
- onContextmenu: de[1] || (de[1] = (fe) => ie(V, R.value)(fe)),
16012
+ onContextmenu: de[1] || (de[1] = (fe) => ie(q, R.value)(fe)),
16009
16013
  onWheelPassive: de[2] || (de[2] = (fe) => ie(Z, R.value)(fe)),
16010
16014
  onPointerenter: de[3] || (de[3] = (fe) => J.value ? void 0 : p(i).paneMouseEnter(fe)),
16011
16015
  onPointerdown: de[4] || (de[4] = (fe) => J.value ? K(fe) : p(i).paneMouseMove(fe)),
@@ -16077,9 +16081,9 @@ const AO = {
16077
16081
  y: 0,
16078
16082
  zoom: 0
16079
16083
  };
16080
- const W = Ii(s), V = Ii(a), Z = Ii(r), K = Be(
16081
- () => (!V.value || V.value && a.value === !0) && (W.value || c.value)
16082
- ), U = Be(() => W.value || l.value), ae = Be(() => V.value || a.value === !0 && K.value !== !0);
16084
+ const W = Ii(s), q = Ii(a), Z = Ii(r), K = Be(
16085
+ () => (!q.value || q.value && a.value === !0) && (W.value || c.value)
16086
+ ), U = Be(() => W.value || l.value), ae = Be(() => q.value || a.value === !0 && K.value !== !0);
16083
16087
  Pt(() => {
16084
16088
  if (!Q.value) {
16085
16089
  $a("Viewport element is missing");
@@ -16090,27 +16094,27 @@ const AO = {
16090
16094
  [le.width, le.height]
16091
16095
  ], N = pe.constrain()(E, C, i.value);
16092
16096
  pe.transform(be, N), pe.wheelDelta(de), k.value = pe, R.value = be, M.value = _e, j.value = { x: N.x, y: N.y, zoom: N.k }, pe.on("start", (T) => {
16093
- var q;
16097
+ var V;
16094
16098
  if (!T.sourceEvent)
16095
16099
  return null;
16096
16100
  B = T.sourceEvent.button, x.value = !0;
16097
16101
  const $ = ke(T.transform);
16098
- ((q = T.sourceEvent) == null ? void 0 : q.type) === "mousedown" && (S.value = !0), ie = $, b.viewportChangeStart($), b.moveStart({ event: T, flowTransform: $ });
16102
+ ((V = T.sourceEvent) == null ? void 0 : V.type) === "mousedown" && (S.value = !0), ie = $, b.viewportChangeStart($), b.moveStart({ event: T, flowTransform: $ });
16099
16103
  }), pe.on("end", (T) => {
16100
16104
  if (!T.sourceEvent)
16101
16105
  return null;
16102
16106
  if (x.value = !1, S.value = !1, te(K.value, B ?? 0) && !z && b.paneContextMenu(T.sourceEvent), z = !1, fe(ie, T.transform)) {
16103
- const q = ke(T.transform);
16104
- ie = q, b.viewportChangeEnd(q), b.moveEnd({ event: T, flowTransform: q });
16107
+ const V = ke(T.transform);
16108
+ ie = V, b.viewportChangeEnd(V), b.moveEnd({ event: T, flowTransform: V });
16105
16109
  }
16106
16110
  }), pe.filter((T) => {
16107
- var q;
16111
+ var V;
16108
16112
  const $ = Z.value || h.value, H = m.value && T.ctrlKey, O = T.button;
16109
16113
  if (O === 1 && T.type === "mousedown" && (xe(T, "vue-flow__node") || xe(T, "vue-flow__edge")))
16110
16114
  return !0;
16111
16115
  if (!K.value && !$ && !U.value && !f.value && !m.value || A.value || !f.value && T.type === "dblclick" || xe(T, g.value) && T.type === "wheel" || xe(T, y.value) && (T.type !== "wheel" || U.value && T.type === "wheel" && !Z.value) || !m.value && T.ctrlKey && T.type === "wheel" || !$ && !U.value && !H && T.type === "wheel")
16112
16116
  return !1;
16113
- if (!m && T.type === "touchstart" && ((q = T.touches) == null ? void 0 : q.length) > 1)
16117
+ if (!m && T.type === "touchstart" && ((V = T.touches) == null ? void 0 : V.length) > 1)
16114
16118
  return T.preventDefault(), !1;
16115
16119
  if (!K.value && (T.type === "mousedown" || T.type === "touchstart") || a.value === !0 && Array.isArray(c.value) && c.value.includes(0) && O === 0 || Array.isArray(c.value) && !c.value.includes(O) && (T.type === "mousedown" || T.type === "touchstart"))
16116
16120
  return !1;
@@ -16121,8 +16125,8 @@ const AO = {
16121
16125
  () => {
16122
16126
  A.value && !x.value ? pe.on("zoom", null) : A.value || pe.on("zoom", (T) => {
16123
16127
  j.value = { x: T.transform.x, y: T.transform.y, zoom: T.transform.k };
16124
- const q = ke(T.transform);
16125
- z = te(K.value, B ?? 0), b.viewportChange(q), b.move({ event: T, flowTransform: q });
16128
+ const V = ke(T.transform);
16129
+ z = te(K.value, B ?? 0), b.viewportChange(V), b.move({ event: T, flowTransform: V });
16126
16130
  });
16127
16131
  },
16128
16132
  { immediate: !0 }
@@ -16134,8 +16138,8 @@ const AO = {
16134
16138
  (T) => {
16135
16139
  if (xe(T, g.value))
16136
16140
  return !1;
16137
- const q = Z.value || h.value, $ = m.value && T.ctrlKey;
16138
- if (!(!v.value || U.value || q || $))
16141
+ const V = Z.value || h.value, $ = m.value && T.ctrlKey;
16142
+ if (!(!v.value || U.value || V || $))
16139
16143
  return !1;
16140
16144
  T.preventDefault(), T.stopImmediatePropagation();
16141
16145
  const O = be.property("__zoom").k || 1, Y = Qr();
@@ -16159,11 +16163,11 @@ const AO = {
16159
16163
  { passive: !1 }
16160
16164
  ) : typeof _e < "u" && be.on(
16161
16165
  "wheel.zoom",
16162
- function(T, q) {
16166
+ function(T, V) {
16163
16167
  const $ = !v.value && T.type === "wheel" && !T.ctrlKey, H = Z.value || h.value, O = m.value && T.ctrlKey;
16164
16168
  if (!H && !l.value && !O && T.type === "wheel" || $ || xe(T, g.value))
16165
16169
  return null;
16166
- T.preventDefault(), _e.call(this, T, q);
16170
+ T.preventDefault(), _e.call(this, T, V);
16167
16171
  },
16168
16172
  { passive: !1 }
16169
16173
  );
@@ -16198,7 +16202,7 @@ const AO = {
16198
16202
  }, [
16199
16203
  P(IO, {
16200
16204
  "is-selecting": ae.value,
16201
- "selection-key-pressed": p(V),
16205
+ "selection-key-pressed": p(q),
16202
16206
  class: ze({
16203
16207
  connecting: !!p(_),
16204
16208
  dragging: p(S),
@@ -16306,14 +16310,14 @@ const bd = au, jO = ve({
16306
16310
  () => typeof _.value.selectable > "u" ? v.value : _.value.selectable
16307
16311
  ), z = Be(() => typeof _.value.updatable > "u" ? g.value : _.value.updatable), B = Be(() => typeof _.value.focusable > "u" ? y.value : _.value.focusable);
16308
16312
  st(TN, e.id), st($N, ne);
16309
- const ie = D(() => _.value.class instanceof Function ? _.value.class(_.value) : _.value.class), W = D(() => _.value.style instanceof Function ? _.value.style(_.value) : _.value.style), V = D(() => {
16313
+ const ie = D(() => _.value.class instanceof Function ? _.value.class(_.value) : _.value.class), W = D(() => _.value.style instanceof Function ? _.value.style(_.value) : _.value.style), q = D(() => {
16310
16314
  const C = _.value.type || "default", N = k == null ? void 0 : k[`edge-${C}`];
16311
16315
  if (N)
16312
16316
  return N;
16313
16317
  let T = _.value.template ?? l.value[C];
16314
16318
  if (typeof T == "string" && R) {
16315
- const q = Object.keys(R.appContext.components);
16316
- q && q.includes(C) && (T = Ee(C, !1));
16319
+ const V = Object.keys(R.appContext.components);
16320
+ V && V.includes(C) && (T = Ee(C, !1));
16317
16321
  }
16318
16322
  return T && typeof T != "string" ? T : (r.error(new _t(ht.EDGE_TYPE_MISSING, T)), !1);
16319
16323
  }), { handlePointerDown: Z } = ig({
@@ -16335,9 +16339,9 @@ const bd = au, jO = ve({
16335
16339
  return r.error(new _t(ht.EDGE_TARGET_MISSING, _.value.id, _.value.target)), null;
16336
16340
  if (!_.value || _.value.hidden || C.hidden || N.hidden)
16337
16341
  return null;
16338
- let q;
16339
- o.value === Bn.Strict ? q = C.handleBounds.source : q = [...C.handleBounds.source || [], ...C.handleBounds.target || []];
16340
- const $ = ld(q, _.value.sourceHandle);
16342
+ let V;
16343
+ o.value === Bn.Strict ? V = C.handleBounds.source : V = [...C.handleBounds.source || [], ...C.handleBounds.target || []];
16344
+ const $ = ld(V, _.value.sourceHandle);
16341
16345
  let H;
16342
16346
  o.value === Bn.Strict ? H = N.handleBounds.target : H = [...N.handleBounds.target || [], ...N.handleBounds.source || []];
16343
16347
  const O = ld(H, _.value.targetHandle), Y = ($ == null ? void 0 : $.position) || Te.Bottom, L = (O == null ? void 0 : O.position) || Te.Top, { x: se, y: he } = Wo(C, $, Y), { x: $e, y: Oe } = Wo(N, O, L);
@@ -16349,7 +16353,7 @@ const bd = au, jO = ve({
16349
16353
  "data-id": e.id,
16350
16354
  class: [
16351
16355
  "vue-flow__edge",
16352
- `vue-flow__edge-${V.value === !1 ? "default" : _.value.type || "default"}`,
16356
+ `vue-flow__edge-${q.value === !1 ? "default" : _.value.type || "default"}`,
16353
16357
  s.value,
16354
16358
  ie.value,
16355
16359
  {
@@ -16374,7 +16378,7 @@ const bd = au, jO = ve({
16374
16378
  onKeyDown: B.value ? E : void 0
16375
16379
  },
16376
16380
  [
16377
- j.value ? null : Ze(V.value === !1 ? l.value.default : V.value, {
16381
+ j.value ? null : Ze(q.value === !1 ? l.value.default : q.value, {
16378
16382
  id: e.id,
16379
16383
  sourceNode: C,
16380
16384
  targetNode: N,
@@ -16393,8 +16397,8 @@ const bd = au, jO = ve({
16393
16397
  data: _.value.data,
16394
16398
  events: { ..._.value.events, ...S },
16395
16399
  style: W.value,
16396
- markerStart: `url('#${qi(_.value.markerStart, t)}')`,
16397
- markerEnd: `url('#${qi(_.value.markerEnd, t)}')`,
16400
+ markerStart: `url('#${Vi(_.value.markerStart, t)}')`,
16401
+ markerEnd: `url('#${Vi(_.value.markerEnd, t)}')`,
16398
16402
  sourcePosition: Y,
16399
16403
  targetPosition: L,
16400
16404
  sourceX: se,
@@ -16493,7 +16497,7 @@ const bd = au, jO = ve({
16493
16497
  !h.value && jm.includes(C.key) && I.value && (C.key === "Escape" ? ((N = ne.value) == null || N.blur(), u([d(e.id)])) : n([d(e.id)]));
16494
16498
  }
16495
16499
  }
16496
- }), VO = jO, qO = ve({
16500
+ }), qO = jO, VO = ve({
16497
16501
  name: "ConnectionLine",
16498
16502
  compatConfig: { MODE: 3 },
16499
16503
  setup() {
@@ -16520,9 +16524,9 @@ const bd = au, jO = ve({
16520
16524
  x: (r.value.x - d.value.x) / d.value.zoom,
16521
16525
  y: (r.value.y - d.value.y) / d.value.zoom
16522
16526
  })), g = D(
16523
- () => l.value.markerStart ? `url(#${qi(l.value.markerStart, t)})` : ""
16527
+ () => l.value.markerStart ? `url(#${Vi(l.value.markerStart, t)})` : ""
16524
16528
  ), y = D(
16525
- () => l.value.markerEnd ? `url(#${qi(l.value.markerEnd, t)})` : ""
16529
+ () => l.value.markerEnd ? `url(#${Vi(l.value.markerEnd, t)})` : ""
16526
16530
  );
16527
16531
  return () => {
16528
16532
  var b, _, A;
@@ -16540,13 +16544,13 @@ const bd = au, jO = ve({
16540
16544
  let ne = null;
16541
16545
  h.value && (n.value === Bn.Strict ? ne = ((b = h.value.handleBounds[k === "source" ? "target" : "source"]) == null ? void 0 : b.find(
16542
16546
  (W) => {
16543
- var V;
16544
- return W.id === ((V = i.value) == null ? void 0 : V.id);
16547
+ var q;
16548
+ return W.id === ((q = i.value) == null ? void 0 : q.id);
16545
16549
  }
16546
16550
  )) || null : ne = ((_ = [...h.value.handleBounds.source ?? [], ...h.value.handleBounds.target ?? []]) == null ? void 0 : _.find(
16547
16551
  (W) => {
16548
- var V;
16549
- return W.id === ((V = i.value) == null ? void 0 : V.id);
16552
+ var q;
16553
+ return W.id === ((q = i.value) == null ? void 0 : q.id);
16550
16554
  }
16551
16555
  )) || null);
16552
16556
  const I = ((A = i.value) == null ? void 0 : A.position) ?? (Q ? nl[Q] : null);
@@ -16599,7 +16603,7 @@ const bd = au, jO = ve({
16599
16603
  );
16600
16604
  };
16601
16605
  }
16602
- }), zO = qO, UO = ["id", "markerWidth", "markerHeight", "markerUnits", "orient"], HO = {
16606
+ }), zO = VO, UO = ["id", "markerWidth", "markerHeight", "markerUnits", "orient"], HO = {
16603
16607
  name: "MarkerType",
16604
16608
  compatConfig: { MODE: 3 }
16605
16609
  }, GO = /* @__PURE__ */ ve({
@@ -16662,7 +16666,7 @@ const bd = au, jO = ve({
16662
16666
  const { id: t, edges: n, connectionLineOptions: o, defaultMarkerColor: i } = Je(), r = D(() => {
16663
16667
  const a = /* @__PURE__ */ new Set(), s = [], l = (u) => {
16664
16668
  if (u) {
16665
- const d = qi(u, t);
16669
+ const d = Vi(u, t);
16666
16670
  a.has(d) || (typeof u == "object" ? s.push({ ...u, id: d, color: u.color || i.value }) : s.push({ id: d, color: i.value, type: u }), a.add(d));
16667
16671
  }
16668
16672
  };
@@ -16675,7 +16679,7 @@ const bd = au, jO = ve({
16675
16679
  });
16676
16680
  return (a, s) => (w(), ee("svg", YO, [
16677
16681
  X("defs", null, [
16678
- (w(!0), ee(Le, null, qe(r.value, (l) => (w(), G(GO, {
16682
+ (w(!0), ee(Le, null, Ve(r.value, (l) => (w(), G(GO, {
16679
16683
  id: l.id,
16680
16684
  key: l.id,
16681
16685
  type: l.type,
@@ -16698,12 +16702,12 @@ const bd = au, jO = ve({
16698
16702
  const { findNode: t, getEdges: n, elevateEdgesOnSelect: o } = Je();
16699
16703
  return (i, r) => (w(), ee(Le, null, [
16700
16704
  P(XO),
16701
- (w(!0), ee(Le, null, qe(p(n), (a) => (w(), ee("svg", {
16705
+ (w(!0), ee(Le, null, Ve(p(n), (a) => (w(), ee("svg", {
16702
16706
  key: a.id,
16703
16707
  class: "vue-flow__edges vue-flow__container",
16704
16708
  style: Nt({ zIndex: p(hN)(a, p(t), p(o)) })
16705
16709
  }, [
16706
- P(p(VO), {
16710
+ P(p(qO), {
16707
16711
  id: a.id
16708
16712
  }, null, 8, ["id"])
16709
16713
  ], 4))), 128)),
@@ -16741,18 +16745,18 @@ const bd = au, jO = ve({
16741
16745
  hooks: R
16742
16746
  } = Je(), M = re(null);
16743
16747
  st(ng, M), st(tg, e.id);
16744
- const j = rt(Na), Q = Hi(), J = ag(), { node: x, parentNode: ne } = rg(e.id), { emit: I, on: z } = FN(x, a), B = Be(() => typeof x.draggable > "u" ? _.value : x.draggable), ie = Be(() => typeof x.selectable > "u" ? A.value : x.selectable), W = Be(() => typeof x.connectable > "u" ? S.value : x.connectable), V = Be(() => typeof x.focusable > "u" ? k.value : x.focusable), Z = D(
16748
+ const j = rt(Na), Q = Hi(), J = ag(), { node: x, parentNode: ne } = rg(e.id), { emit: I, on: z } = FN(x, a), B = Be(() => typeof x.draggable > "u" ? _.value : x.draggable), ie = Be(() => typeof x.selectable > "u" ? A.value : x.selectable), W = Be(() => typeof x.connectable > "u" ? S.value : x.connectable), q = Be(() => typeof x.focusable > "u" ? k.value : x.focusable), Z = D(
16745
16749
  () => ie.value || B.value || R.value.nodeClick.hasListeners() || R.value.nodeDoubleClick.hasListeners() || R.value.nodeMouseEnter.hasListeners() || R.value.nodeMouseMove.hasListeners() || R.value.nodeMouseLeave.hasListeners()
16746
16750
  ), K = Be(() => !!x.dimensions.width && !!x.dimensions.height), U = D(() => {
16747
16751
  const N = x.type || "default", T = j == null ? void 0 : j[`node-${N}`];
16748
16752
  if (T)
16749
16753
  return T;
16750
- let q = x.template || c.value[N];
16751
- if (typeof q == "string" && Q) {
16754
+ let V = x.template || c.value[N];
16755
+ if (typeof V == "string" && Q) {
16752
16756
  const $ = Object.keys(Q.appContext.components);
16753
- $ && $.includes(N) && (q = Ee(N, !1));
16757
+ $ && $.includes(N) && (V = Ee(N, !1));
16754
16758
  }
16755
- return q && typeof q != "string" ? q : (a.error(new _t(ht.NODE_TYPE_MISSING, q)), !1);
16759
+ return V && typeof V != "string" ? V : (a.error(new _t(ht.NODE_TYPE_MISSING, V)), !1);
16756
16760
  }), ae = og({
16757
16761
  id: e.id,
16758
16762
  el: M,
@@ -16772,16 +16776,16 @@ const bd = au, jO = ve({
16772
16776
  E(N);
16773
16777
  }
16774
16778
  }), te = D(() => x.class instanceof Function ? x.class(x) : x.class), de = D(() => {
16775
- const N = (x.style instanceof Function ? x.style(x) : x.style) || {}, T = x.width instanceof Function ? x.width(x) : x.width, q = x.height instanceof Function ? x.height(x) : x.height;
16776
- return !N.width && T && (N.width = typeof T == "string" ? T : `${T}px`), !N.height && q && (N.height = typeof q == "string" ? q : `${q}px`), N;
16779
+ const N = (x.style instanceof Function ? x.style(x) : x.style) || {}, T = x.width instanceof Function ? x.width(x) : x.width, V = x.height instanceof Function ? x.height(x) : x.height;
16780
+ return !N.width && T && (N.width = typeof T == "string" ? T : `${T}px`), !N.height && V && (N.height = typeof V == "string" ? V : `${V}px`), N;
16777
16781
  }), fe = Be(() => Number(x.zIndex ?? de.value.zIndex ?? 0));
16778
16782
  return d((N) => {
16779
16783
  (N.includes(e.id) || !N.length) && xe();
16780
16784
  }), Pt(() => {
16781
16785
  Ne(
16782
16786
  () => x.hidden,
16783
- (N = !1, T, q) => {
16784
- !N && M.value && (e.resizeObserver.observe(M.value), q(() => {
16787
+ (N = !1, T, V) => {
16788
+ !N && M.value && (e.resizeObserver.observe(M.value), V(() => {
16785
16789
  M.value && e.resizeObserver.unobserve(M.value);
16786
16790
  }));
16787
16791
  },
@@ -16820,17 +16824,17 @@ const bd = au, jO = ve({
16820
16824
  return (N = ne.value) == null ? void 0 : N.dimensions.width;
16821
16825
  }
16822
16826
  ],
16823
- ([N, T, q, $, H, O]) => {
16827
+ ([N, T, V, $, H, O]) => {
16824
16828
  const Y = {
16825
16829
  x: N,
16826
16830
  y: T,
16827
16831
  z: O + (m.value && x.selected ? 1e3 : 0)
16828
16832
  };
16829
- typeof q < "u" && typeof $ < "u" ? x.computedPosition = cN({ x: q, y: $, z: H }, Y) : x.computedPosition = Y;
16833
+ typeof V < "u" && typeof $ < "u" ? x.computedPosition = cN({ x: V, y: $, z: H }, Y) : x.computedPosition = Y;
16830
16834
  },
16831
16835
  { flush: "post", immediate: !0 }
16832
- ), Ne([() => x.extent, f], ([N, T], [q, $]) => {
16833
- (N !== q || T !== $) && ke();
16836
+ ), Ne([() => x.extent, f], ([N, T], [V, $]) => {
16837
+ (N !== V || T !== $) && ke();
16834
16838
  }), x.extent === "parent" || typeof x.extent == "object" && "range" in x.extent && x.extent.range === "parent" ? Us(() => K).toBe(!0).then(ke) : ke(), () => x.hidden ? null : Ze(
16835
16839
  "div",
16836
16840
  {
@@ -16856,8 +16860,8 @@ const bd = au, jO = ve({
16856
16860
  pointerEvents: Z.value ? "all" : "none",
16857
16861
  ...de.value
16858
16862
  },
16859
- tabIndex: V.value ? 0 : void 0,
16860
- role: V.value ? "group" : void 0,
16863
+ tabIndex: q.value ? 0 : void 0,
16864
+ role: q.value ? "group" : void 0,
16861
16865
  "aria-describedby": h.value ? void 0 : `${Km}-${t}`,
16862
16866
  "aria-label": x.ariaLabel,
16863
16867
  "aria-roledescription": "node",
@@ -16896,14 +16900,14 @@ const bd = au, jO = ve({
16896
16900
  ]
16897
16901
  );
16898
16902
  function ke() {
16899
- const N = x.computedPosition, { computedPosition: T, position: q } = iu(
16903
+ const N = x.computedPosition, { computedPosition: T, position: V } = iu(
16900
16904
  x,
16901
16905
  g.value ? Ta(N, y.value) : N,
16902
16906
  a.error,
16903
16907
  f.value,
16904
16908
  ne.value
16905
16909
  );
16906
- (x.computedPosition.x !== T.x || x.computedPosition.y !== T.y) && (x.computedPosition = { ...x.computedPosition, ...T }), (x.position.x !== q.x || x.position.y !== q.y) && (x.position = q);
16910
+ (x.computedPosition.x !== T.x || x.computedPosition.y !== T.y) && (x.computedPosition = { ...x.computedPosition, ...T }), (x.position.x !== V.x || x.position.y !== V.y) && (x.position = V);
16907
16911
  }
16908
16912
  function xe() {
16909
16913
  M.value && u([{ id: e.id, nodeElement: M.value, forceUpdate: !0 }]);
@@ -16996,7 +17000,7 @@ const nP = { class: "vue-flow__nodes vue-flow__container" }, oP = {
16996
17000
  var a;
16997
17001
  return (a = r.value) == null ? void 0 : a.disconnect();
16998
17002
  }), (a, s) => (w(), ee("div", nP, [
16999
- r.value ? (w(!0), ee(Le, { key: 0 }, qe(p(t), (l, u, d, c) => {
17003
+ r.value ? (w(!0), ee(Le, { key: 0 }, Ve(p(t), (l, u, d, c) => {
17000
17004
  const f = [l.id];
17001
17005
  if (c && c.key === l.id && ph(c, f))
17002
17006
  return c;
@@ -17088,7 +17092,7 @@ const aP = /* @__PURE__ */ X("div", { class: "vue-flow__edge-labels" }, null, -1
17088
17092
  emits: ["nodesChange", "edgesChange", "nodesInitialized", "paneReady", "init", "updateNodeInternals", "error", "connect", "connectStart", "connectEnd", "clickConnectStart", "clickConnectEnd", "moveStart", "move", "moveEnd", "selectionDragStart", "selectionDrag", "selectionDragStop", "selectionContextMenu", "selectionStart", "selectionEnd", "viewportChangeStart", "viewportChange", "viewportChangeEnd", "paneScroll", "paneClick", "paneContextMenu", "paneMouseEnter", "paneMouseMove", "paneMouseLeave", "edgeUpdate", "edgeContextMenu", "edgeMouseEnter", "edgeMouseMove", "edgeMouseLeave", "edgeDoubleClick", "edgeClick", "edgeUpdateStart", "edgeUpdateEnd", "nodeContextMenu", "nodeMouseEnter", "nodeMouseMove", "nodeMouseLeave", "nodeDoubleClick", "nodeClick", "nodeDragStart", "nodeDrag", "nodeDragStop", "miniMapNodeClick", "miniMapNodeDoubleClick", "miniMapNodeMouseEnter", "miniMapNodeMouseMove", "miniMapNodeMouseLeave", "update:modelValue", "update:nodes", "update:edges"],
17089
17093
  setup(e, { expose: t, emit: n }) {
17090
17094
  const o = e, i = Zt(), r = Za(o, "modelValue", n), a = Za(o, "nodes", n), s = Za(o, "edges", n), l = Je(o), u = BN({ modelValue: r, nodes: a, edges: s }, o, l);
17091
- return VN(n, l.hooks), LO(), rP(), st(Na, i), fl(() => {
17095
+ return qN(n, l.hooks), LO(), rP(), st(Na, i), fl(() => {
17092
17096
  u();
17093
17097
  }), t(l), (d, c) => (w(), ee("div", {
17094
17098
  ref: p(l).vueFlowRef,
@@ -17273,11 +17277,11 @@ function KP(e, t) {
17273
17277
  const BP = { render: KP }, jP = {
17274
17278
  xmlns: "http://www.w3.org/2000/svg",
17275
17279
  viewBox: "0 0 25 32"
17276
- }, VP = /* @__PURE__ */ X("path", { d: "M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047z" }, null, -1), qP = [
17277
- VP
17280
+ }, qP = /* @__PURE__ */ X("path", { d: "M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047z" }, null, -1), VP = [
17281
+ qP
17278
17282
  ];
17279
17283
  function zP(e, t) {
17280
- return w(), ee("svg", jP, qP);
17284
+ return w(), ee("svg", jP, VP);
17281
17285
  }
17282
17286
  const UP = { render: zP }, HP = {
17283
17287
  name: "Controls",
@@ -18354,8 +18358,8 @@ function xg(e, t) {
18354
18358
  t(e[n], n, e);
18355
18359
  return e;
18356
18360
  }
18357
- var jM = Sg, VM = qM;
18358
- function qM(e, t) {
18361
+ var jM = Sg, qM = VM;
18362
+ function VM(e, t) {
18359
18363
  return jM(e, t, "post");
18360
18364
  }
18361
18365
  var zM = Sg, UM = HM;
@@ -18396,7 +18400,7 @@ var ZM = {
18396
18400
  findCycles: $M,
18397
18401
  floydWarshall: OM,
18398
18402
  isAcyclic: FM,
18399
- postorder: VM,
18403
+ postorder: qM,
18400
18404
  preorder: UM,
18401
18405
  prim: WM,
18402
18406
  tarjan: Eg,
@@ -18756,7 +18760,7 @@ function B2(e) {
18756
18760
  var t = new K2({ directed: !1 }), n = e.nodes()[0], o = e.nodeCount();
18757
18761
  t.setNode(n, {});
18758
18762
  for (var i, r; j2(t, e) < o; )
18759
- i = V2(t, e), r = t.hasNode(i.v) ? ea(e, i) : -ea(e, i), q2(t, e, r);
18763
+ i = q2(t, e), r = t.hasNode(i.v) ? ea(e, i) : -ea(e, i), V2(t, e, r);
18760
18764
  return t;
18761
18765
  }
18762
18766
  function j2(e, t) {
@@ -18768,13 +18772,13 @@ function j2(e, t) {
18768
18772
  }
18769
18773
  return e.nodes().forEach(n), e.nodeCount();
18770
18774
  }
18771
- function V2(e, t) {
18775
+ function q2(e, t) {
18772
18776
  return t.edges().reduce((o, i) => {
18773
18777
  let r = Number.POSITIVE_INFINITY;
18774
18778
  return e.hasNode(i.v) !== e.hasNode(i.w) && (r = ea(t, i)), r < o[0] ? [r, i] : o;
18775
18779
  }, [Number.POSITIVE_INFINITY, null])[1];
18776
18780
  }
18777
- function q2(e, t, n) {
18781
+ function V2(e, t, n) {
18778
18782
  e.nodes().forEach((o) => t.node(o).rank += n);
18779
18783
  }
18780
18784
  var z2 = Pg, Ad = La.slack, U2 = La.longestPath, H2 = tn.alg.preorder, G2 = tn.alg.postorder, Y2 = vt.simplify, W2 = yo;
@@ -19137,21 +19141,21 @@ function Pd(e, t, n) {
19137
19141
  function KR(e) {
19138
19142
  return (t, n) => t.barycenter < n.barycenter ? -1 : t.barycenter > n.barycenter ? 1 : e ? n.i - t.i : t.i - n.i;
19139
19143
  }
19140
- let BR = TR, jR = OR, VR = DR;
19141
- var qR = Vg;
19142
- function Vg(e, t, n, o) {
19144
+ let BR = TR, jR = OR, qR = DR;
19145
+ var VR = qg;
19146
+ function qg(e, t, n, o) {
19143
19147
  let i = e.children(t), r = e.node(t), a = r ? r.borderLeft : void 0, s = r ? r.borderRight : void 0, l = {};
19144
19148
  a && (i = i.filter((f) => f !== a && f !== s));
19145
19149
  let u = BR(e, i);
19146
19150
  u.forEach((f) => {
19147
19151
  if (e.children(f.v).length) {
19148
- let m = Vg(e, f.v, n, o);
19152
+ let m = qg(e, f.v, n, o);
19149
19153
  l[f.v] = m, Object.hasOwn(m, "barycenter") && UR(f, m);
19150
19154
  }
19151
19155
  });
19152
19156
  let d = jR(u, n);
19153
19157
  zR(d, l);
19154
- let c = VR(d, o);
19158
+ let c = qR(d, o);
19155
19159
  if (a && (c.vs = [a, c.vs, s].flat(!0), e.predecessors(a).length)) {
19156
19160
  let f = e.node(e.predecessors(a)[0]), m = e.node(e.predecessors(s)[0]);
19157
19161
  Object.hasOwn(c, "barycenter") || (c.barycenter = 0, c.weight = 0), c.barycenter = (c.barycenter * c.weight + f.order + m.order) / (c.weight + 2), c.weight += 2;
@@ -19199,11 +19203,11 @@ function JR(e, t, n) {
19199
19203
  }
19200
19204
  });
19201
19205
  }
19202
- let QR = kR, eF = xR, tF = qR, nF = YR, oF = ZR, iF = tn.Graph, gr = vt;
19203
- var rF = qg;
19204
- function qg(e, t) {
19206
+ let QR = kR, eF = xR, tF = VR, nF = YR, oF = ZR, iF = tn.Graph, gr = vt;
19207
+ var rF = Vg;
19208
+ function Vg(e, t) {
19205
19209
  if (t && typeof t.customOrder == "function") {
19206
- t.customOrder(e, qg);
19210
+ t.customOrder(e, Vg);
19207
19211
  return;
19208
19212
  }
19209
19213
  let n = gr.maxRank(e), o = Md(e, gr.range(1, n + 1), "inEdges"), i = Md(e, gr.range(n - 1, -1, -1), "outEdges"), r = QR(e);
@@ -19461,7 +19465,7 @@ function DF(e, t) {
19461
19465
  o.points = i.points, Object.hasOwn(i, "x") && (o.x = i.x, o.y = i.y);
19462
19466
  }), e.graph().width = t.graph().width, e.graph().height = t.graph().height;
19463
19467
  }
19464
- let LF = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], KF = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, BF = ["acyclicer", "ranker", "rankdir", "align"], jF = ["width", "height", "rank"], Bd = { width: 0, height: 0 }, VF = ["minlen", "weight", "width", "height", "labeloffset"], qF = {
19468
+ let LF = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], KF = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, BF = ["acyclicer", "ranker", "rankdir", "align"], jF = ["width", "height", "rank"], Bd = { width: 0, height: 0 }, qF = ["minlen", "weight", "width", "height", "labeloffset"], VF = {
19465
19469
  minlen: 1,
19466
19470
  weight: 1,
19467
19471
  width: 0,
@@ -19486,8 +19490,8 @@ function UF(e) {
19486
19490
  let i = ms(e.edge(o));
19487
19491
  t.setEdge(o, Object.assign(
19488
19492
  {},
19489
- qF,
19490
- ps(i, VF),
19493
+ VF,
19494
+ ps(i, qF),
19491
19495
  zt.pick(i, zF)
19492
19496
  ));
19493
19497
  }), t;
@@ -19686,7 +19690,7 @@ function fD() {
19686
19690
  if (!e) throw new Error("Confirm modal not provided");
19687
19691
  return e;
19688
19692
  }
19689
- function Vd(e) {
19693
+ function qd(e) {
19690
19694
  const t = e.match(/^(input|output)s@(.*)$/);
19691
19695
  if (t)
19692
19696
  return {
@@ -19760,7 +19764,7 @@ const [gD, hD] = df(
19760
19764
  state: B,
19761
19765
  commit: ie,
19762
19766
  moveNode: W,
19763
- selectNode: V,
19767
+ selectNode: q,
19764
19768
  removeNode: Z,
19765
19769
  getNodeById: K,
19766
19770
  connectEdge: U,
@@ -19815,7 +19819,7 @@ const [gD, hD] = df(
19815
19819
  });
19816
19820
  async function pe({ source: $, sourceHandle: H, target: O, targetHandle: Y }) {
19817
19821
  if (console.debug("[useFlow] onConnect", { source: $, sourceHandle: H, target: O, targetHandle: Y }), !H || !Y) return;
19818
- const L = Vd(H), se = Vd(Y);
19822
+ const L = qd(H), se = qd(Y);
19819
19823
  if ((L == null ? void 0 : L.io) === "input" || (se == null ? void 0 : se.io) === "output" || H === "output" && Y === "output")
19820
19824
  return;
19821
19825
  const he = te(O);
@@ -19873,7 +19877,7 @@ const [gD, hD] = df(
19873
19877
  };
19874
19878
  R(($) => {
19875
19879
  $.filter((O) => O.type === "select").sort((O, Y) => O.selected === Y.selected ? 0 : O.selected ? 1 : -1).forEach((O) => {
19876
- V(O.selected ? O.id : void 0);
19880
+ q(O.selected ? O.id : void 0);
19877
19881
  });
19878
19882
  let H = !1;
19879
19883
  $.forEach((O) => {
@@ -19998,7 +20002,7 @@ const [gD, hD] = df(
19998
20002
  });
19999
20003
  }
20000
20004
  async function N($) {
20001
- return V($), new Promise(
20005
+ return q($), new Promise(
20002
20006
  (H) => setTimeout(() => {
20003
20007
  const O = g($);
20004
20008
  z(O ? [O] : []), H();
@@ -20020,7 +20024,7 @@ const [gD, hD] = df(
20020
20024
  }
20021
20025
  return { x: Se, y: $e };
20022
20026
  }
20023
- function q($) {
20027
+ function V($) {
20024
20028
  if (!$) return;
20025
20029
  const H = g($);
20026
20030
  if (!H) throw new Error(`Node ${$} not found`);
@@ -20044,7 +20048,7 @@ const [gD, hD] = df(
20044
20048
  selectNode: N,
20045
20049
  autoLayout: E,
20046
20050
  placeToRight: T,
20047
- scrollRightToReveal: q,
20051
+ scrollRightToReveal: V,
20048
20052
  fitViewParams: le,
20049
20053
  fitView: C
20050
20054
  };
@@ -20275,7 +20279,7 @@ const CD = {
20275
20279
  _: 1
20276
20280
  }, 8, ["text"])),
20277
20281
  X("div", ID, ge(k.value), 1),
20278
- x.error ? (w(), G(p(Vh), {
20282
+ x.error ? (w(), G(p(qh), {
20279
20283
  key: 1,
20280
20284
  class: "error-icon",
20281
20285
  color: p(up),
@@ -20298,7 +20302,7 @@ const CD = {
20298
20302
  P(p(bu), { onClick: j }, {
20299
20303
  default: F(() => [
20300
20304
  P(oa, {
20301
- keys: p(Vr).duplicate,
20305
+ keys: p(qr).duplicate,
20302
20306
  label: p(t)("plugins.free-form.datakit.flow_editor.actions.duplicate")
20303
20307
  }, null, 8, ["keys", "label"])
20304
20308
  ]),
@@ -20310,7 +20314,7 @@ const CD = {
20310
20314
  }, {
20311
20315
  default: F(() => [
20312
20316
  P(oa, {
20313
- keys: p(Vr).delete,
20317
+ keys: p(qr).delete,
20314
20318
  label: p(t)("plugins.free-form.datakit.flow_editor.actions.delete")
20315
20319
  }, null, 8, ["keys", "label"])
20316
20320
  ]),
@@ -20374,7 +20378,7 @@ const CD = {
20374
20378
  }, null, 8, ["color", "position"])) : Ce("", !0)
20375
20379
  ])
20376
20380
  ]),
20377
- d.value && h.value ? (w(!0), ee(Le, { key: 0 }, qe(x.data.fields.input, (I, z) => (w(), ee("div", {
20381
+ d.value && h.value ? (w(!0), ee(Le, { key: 0 }, Ve(x.data.fields.input, (I, z) => (w(), ee("div", {
20378
20382
  key: `inputs-${I.id}`,
20379
20383
  class: "handle indented"
20380
20384
  }, [
@@ -20431,7 +20435,7 @@ const CD = {
20431
20435
  type: "source"
20432
20436
  }, null, 8, ["position"])
20433
20437
  ]),
20434
- c.value && v.value ? (w(!0), ee(Le, { key: 0 }, qe(x.data.fields.output, (I, z) => (w(), ee("div", {
20438
+ c.value && v.value ? (w(!0), ee(Le, { key: 0 }, Ve(x.data.fields.output, (I, z) => (w(), ee("div", {
20435
20439
  key: `outputs-${I.id}`,
20436
20440
  class: "handle indented"
20437
20441
  }, [
@@ -20494,10 +20498,10 @@ const CD = {
20494
20498
  function I(W) {
20495
20499
  var xe, oe;
20496
20500
  if (e.readonly || J.value) return;
20497
- const V = (xe = W.dataTransfer) == null ? void 0 : xe.getData(Si);
20498
- if (!V) return;
20501
+ const q = (xe = W.dataTransfer) == null ? void 0 : xe.getData(Si);
20502
+ if (!q) return;
20499
20503
  W.preventDefault();
20500
- const Z = JSON.parse(V);
20504
+ const Z = JSON.parse(q);
20501
20505
  if (Z.action !== "create-node") return;
20502
20506
  const { top: K = 0, left: U = 0 } = ((oe = S.value) == null ? void 0 : oe.getBoundingClientRect()) || {}, ae = A({
20503
20507
  x: W.clientX - U,
@@ -20519,12 +20523,12 @@ const CD = {
20519
20523
  { name: "zoom_in", icon: Yt, action: k, disabled: M.value.zoom >= j.value },
20520
20524
  { name: "zoom_out", icon: pl, action: R, disabled: M.value.zoom <= Q.value },
20521
20525
  { name: "fit_view", icon: rM, action: c },
20522
- { name: "auto_layout", icon: qh, action: z }
20526
+ { name: "auto_layout", icon: Vh, action: z }
20523
20527
  ]);
20524
20528
  if (e.phase === "response" && !e.readonly) {
20525
- br("dragstart", (V) => {
20529
+ br("dragstart", (q) => {
20526
20530
  var U;
20527
- const Z = (U = V.dataTransfer) == null ? void 0 : U.types.find((ae) => ae.startsWith(`${Si}/`));
20531
+ const Z = (U = q.dataTransfer) == null ? void 0 : U.types.find((ae) => ae.startsWith(`${Si}/`));
20528
20532
  if (!Z) return;
20529
20533
  Z.replace(`${Si}/`, "") === "call" && (J.value = !0);
20530
20534
  });
@@ -20540,13 +20544,13 @@ const CD = {
20540
20544
  async function ie() {
20541
20545
  const W = b.value;
20542
20546
  if (e.readonly || !W || W.phase !== e.phase) return;
20543
- const V = _(W.id, m(W.id));
20544
- V && (await f(V), g.value = !0, h(V));
20547
+ const q = _(W.id, m(W.id));
20548
+ q && (await f(q), g.value = !0, h(q));
20545
20549
  }
20546
20550
  return vg({
20547
20551
  enabled: D(() => !!b.value && !e.readonly && b.value.phase === e.phase),
20548
20552
  duplicate: ie
20549
- }), t({ autoLayout: u, fitView: c }), (W, V) => (w(), ee("div", {
20553
+ }), t({ autoLayout: u, fitView: c }), (W, q) => (w(), ee("div", {
20550
20554
  ref_key: "flowCanvas",
20551
20555
  ref: i,
20552
20556
  class: "dk-flow-canvas"
@@ -20569,8 +20573,8 @@ const CD = {
20569
20573
  onDragover: ne,
20570
20574
  onDrop: I,
20571
20575
  onNodeClick: x,
20572
- onNodesChange: V[0] || (V[0] = (Z) => o("nodes-change")),
20573
- onNodesInitialized: V[1] || (V[1] = (Z) => o("initialized"))
20576
+ onNodesChange: q[0] || (q[0] = (Z) => o("nodes-change")),
20577
+ onNodesInitialized: q[1] || (q[1] = (Z) => o("initialized"))
20574
20578
  }, {
20575
20579
  "node-flow": F((Z) => [
20576
20580
  P(Wg, {
@@ -20589,7 +20593,7 @@ const CD = {
20589
20593
  "show-zoom": !1
20590
20594
  }, {
20591
20595
  default: F(() => [
20592
- (w(!0), ee(Le, null, qe(B.value, (Z) => (w(), G(p($r), {
20596
+ (w(!0), ee(Le, null, Ve(B.value, (Z) => (w(), G(p($r), {
20593
20597
  key: Z.name,
20594
20598
  placement: "right",
20595
20599
  text: p(a)(`plugins.free-form.datakit.flow_editor.actions.${Z.name}`)
@@ -20617,7 +20621,7 @@ const CD = {
20617
20621
  J.value ? (w(), ee("div", LD, ge(p(a)("plugins.free-form.datakit.flow_editor.phase_mask_help")), 1)) : Ce("", !0)
20618
20622
  ], 512));
20619
20623
  }
20620
- }), qd = /* @__PURE__ */ Re(KD, [["__scopeId", "data-v-b4eee6d4"]]), BD = /* @__PURE__ */ ve({
20624
+ }), Vd = /* @__PURE__ */ Re(KD, [["__scopeId", "data-v-b4eee6d4"]]), BD = /* @__PURE__ */ ve({
20621
20625
  __name: "FlowPanels",
20622
20626
  props: {
20623
20627
  readonly: { type: Boolean },
@@ -20641,7 +20645,7 @@ const CD = {
20641
20645
  e.resizable && (ne.value ? (z.value = "50%", B.value = "50%") : (z.value = "0", B.value = "100%"));
20642
20646
  }, W = () => {
20643
20647
  e.resizable && (I.value ? (z.value = "50%", B.value = "50%") : (z.value = "100%", B.value = "0"));
20644
- }, V = D(
20648
+ }, q = D(
20645
20649
  () => k.height.value - R.height.value - j.height.value - Q.height.value
20646
20650
  ), { isDragging: Z } = mv(b, {
20647
20651
  onMove(U) {
@@ -20650,7 +20654,7 @@ const CD = {
20650
20654
  1,
20651
20655
  Math.max(
20652
20656
  0,
20653
- ae / V.value
20657
+ ae / q.value
20654
20658
  )
20655
20659
  );
20656
20660
  z.value = `${te * 100}%`, B.value = `${(1 - te) * 100}%`;
@@ -20696,7 +20700,7 @@ const CD = {
20696
20700
  class: ze(["canvas", { dragging: p(Z) }]),
20697
20701
  style: Nt({ flexBasis: z.value })
20698
20702
  }, [
20699
- P(qd, {
20703
+ P(Vd, {
20700
20704
  ref_key: "requestFlow",
20701
20705
  ref: y,
20702
20706
  "flow-id": u,
@@ -20729,7 +20733,7 @@ const CD = {
20729
20733
  class: ze(["canvas response", { dragging: p(Z) }]),
20730
20734
  style: Nt({ flexBasis: B.value })
20731
20735
  }, [
20732
- P(qd, {
20736
+ P(Vd, {
20733
20737
  ref_key: "responseFlow",
20734
20738
  ref: S,
20735
20739
  "flow-id": d,
@@ -20741,7 +20745,7 @@ const CD = {
20741
20745
  ], 6)
20742
20746
  ], 512));
20743
20747
  }
20744
- }), Xg = /* @__PURE__ */ Re(BD, [["__scopeId", "data-v-2cf356c1"]]), jD = { class: "dk-confirm-modal-body" }, VD = { class: "dk-confirm-modal-connections" }, qD = /* @__PURE__ */ ve({
20748
+ }), Xg = /* @__PURE__ */ Re(BD, [["__scopeId", "data-v-2cf356c1"]]), jD = { class: "dk-confirm-modal-body" }, qD = { class: "dk-confirm-modal-connections" }, VD = /* @__PURE__ */ ve({
20745
20749
  __name: "ConflictModal",
20746
20750
  props: {
20747
20751
  title: {},
@@ -20782,8 +20786,8 @@ const CD = {
20782
20786
  X("div", jD, [
20783
20787
  X("p", null, ge(a.value), 1),
20784
20788
  X("p", null, ge(p(o)("plugins.free-form.datakit.flow_editor.confirm.message.confirm")), 1),
20785
- X("div", VD, [
20786
- (w(!0), ee(Le, null, qe(s.value ?? [], ([g, y]) => (w(), ee("div", {
20789
+ X("div", qD, [
20790
+ (w(!0), ee(Le, null, Ve(s.value ?? [], ([g, y]) => (w(), ee("div", {
20787
20791
  key: `${g}-${y}`
20788
20792
  }, [
20789
20793
  P(p(Yt), { color: p(Hk) }, null, 8, ["color"]),
@@ -20791,7 +20795,7 @@ const CD = {
20791
20795
  h[0] || (h[0] = De(" → ", -1)),
20792
20796
  X("span", null, ge(y), 1)
20793
20797
  ]))), 128)),
20794
- (w(!0), ee(Le, null, qe(l.value ?? [], ([g, y]) => (w(), ee("div", {
20798
+ (w(!0), ee(Le, null, Ve(l.value ?? [], ([g, y]) => (w(), ee("div", {
20795
20799
  key: `${g}-${y}`
20796
20800
  }, [
20797
20801
  P(p(pl), { color: p(up) }, null, 8, ["color"]),
@@ -20806,7 +20810,7 @@ const CD = {
20806
20810
  }, 8, ["action-button-text", "title", "visible"]);
20807
20811
  };
20808
20812
  }
20809
- }), zD = /* @__PURE__ */ Re(qD, [["__scopeId", "data-v-9874f282"]]), UD = { class: "dk-editor-nav" }, HD = { class: "top" }, GD = { class: "bottom" }, YD = /* @__PURE__ */ ve({
20813
+ }), zD = /* @__PURE__ */ Re(VD, [["__scopeId", "data-v-9874f282"]]), UD = { class: "dk-editor-nav" }, HD = { class: "top" }, GD = { class: "bottom" }, YD = /* @__PURE__ */ ve({
20810
20814
  __name: "EditorNav",
20811
20815
  emits: ["back"],
20812
20816
  setup(e, { emit: t }) {
@@ -20822,7 +20826,7 @@ const CD = {
20822
20826
  }
20823
20827
  return (u, d) => (w(), ee("nav", UD, [
20824
20828
  X("div", HD, [
20825
- (w(), ee(Le, null, qe(i, ({ label: c, to: f, icon: m, onClick: h }) => P(p($r), {
20829
+ (w(), ee(Le, null, Ve(i, ({ label: c, to: f, icon: m, onClick: h }) => P(p($r), {
20826
20830
  key: c,
20827
20831
  "kpop-attributes": { offset: "10px" },
20828
20832
  label: c,
@@ -20919,7 +20923,7 @@ const CD = {
20919
20923
  P(f, { "z-index": 1e4 }, {
20920
20924
  content: F(() => [
20921
20925
  P(oa, {
20922
- keys: p(Vr).undo,
20926
+ keys: p(qr).undo,
20923
20927
  label: p(t)("plugins.free-form.datakit.flow_editor.actions.undo"),
20924
20928
  reverse: ""
20925
20929
  }, null, 8, ["keys", "label"])
@@ -20942,7 +20946,7 @@ const CD = {
20942
20946
  P(f, { "z-index": 1e4 }, {
20943
20947
  content: F(() => [
20944
20948
  P(oa, {
20945
- keys: p(Vr).redo,
20949
+ keys: p(qr).redo,
20946
20950
  label: p(t)("plugins.free-form.datakit.flow_editor.actions.redo"),
20947
20951
  reverse: ""
20948
20952
  }, null, 8, ["keys", "label"])
@@ -20973,7 +20977,7 @@ const CD = {
20973
20977
  "trigger-text": p(t)("plugins.free-form.datakit.flow_editor.examples")
20974
20978
  }, {
20975
20979
  items: F(() => [
20976
- (w(), ee(Le, null, qe(Vs, (v, g) => P(m, {
20980
+ (w(), ee(Le, null, Ve(qs, (v, g) => P(m, {
20977
20981
  key: g,
20978
20982
  onClick: (y) => l(v)
20979
20983
  }, {
@@ -21092,7 +21096,7 @@ const CD = {
21092
21096
  }, 8, ["info"])
21093
21097
  ]),
21094
21098
  X("div", cL, [
21095
- (w(!0), ee(Le, null, qe(Object.keys(p(wa)), (d) => (w(), G(sL, {
21099
+ (w(!0), ee(Le, null, Ve(Object.keys(p(wa)), (d) => (w(), G(sL, {
21096
21100
  key: d,
21097
21101
  draggable: "true",
21098
21102
  type: d,
@@ -21142,7 +21146,7 @@ const CD = {
21142
21146
  "reset-label-path": "isolate"
21143
21147
  }, {
21144
21148
  default: F(() => [
21145
- (w(!0), ee(Le, null, qe(o.value, (a) => (w(), G(fn, {
21149
+ (w(!0), ee(Le, null, Ve(o.value, (a) => (w(), G(fn, {
21146
21150
  key: a,
21147
21151
  class: "dk-inputs-field-indent",
21148
21152
  clearable: "",
@@ -21237,7 +21241,7 @@ const CD = {
21237
21241
  ref: u,
21238
21242
  class: "dk-inputs-map-field"
21239
21243
  }, [
21240
- (w(!0), ee(Le, null, qe(p(i), (x, ne) => (w(), ee("div", {
21244
+ (w(!0), ee(Le, null, Ve(p(i), (x, ne) => (w(), ee("div", {
21241
21245
  key: x.id,
21242
21246
  class: "dk-inputs-map-field-entry dk-inputs-map-field-indent",
21243
21247
  "data-testid": `ff-kv-container-${p(s).path.value}.${ne}`
@@ -21743,9 +21747,9 @@ function _o(e, t) {
21743
21747
  g = !0, await at(), g = !1;
21744
21748
  }, { immediate: !0, deep: !0 }), console.log("state", n.value), window.store = Ot();
21745
21749
  const y = D(() => {
21746
- const V = i(e);
21747
- if (!V) throw new Error("Node not existed");
21748
- return V;
21750
+ const q = i(e);
21751
+ if (!q) throw new Error("Node not existed");
21752
+ return q;
21749
21753
  }), b = D(() => {
21750
21754
  const Z = n.value.edges.filter((K) => K.target === e).reduce((K, U) => {
21751
21755
  var ke, xe;
@@ -21759,31 +21763,31 @@ function _o(e, t) {
21759
21763
  ...Z,
21760
21764
  name: y.value.name
21761
21765
  };
21762
- }), _ = (V) => {
21763
- o(e, V ?? "", !0, `${e}:rename`);
21764
- }, A = (V, Z = !0) => {
21766
+ }), _ = (q) => {
21767
+ o(e, q ?? "", !0, `${e}:rename`);
21768
+ }, A = (q, Z = !0) => {
21765
21769
  if (g) return;
21766
21770
  if (!t) throw new Error("getFormInnerData is not defined");
21767
- const K = Gf(t(), ["name", "input", "inputs"]), U = V ? `update:${e}:${V}` : void 0;
21771
+ const K = Gf(t(), ["name", "input", "inputs"]), U = q ? `update:${e}:${q}` : void 0;
21768
21772
  l(e, K, Z, U);
21769
- }, S = (V, Z) => {
21770
- const K = Uo(y.value, V, Z);
21773
+ }, S = (q, Z) => {
21774
+ const K = Uo(y.value, q, Z);
21771
21775
  if (!K)
21772
21776
  throw new Error(`Field with name "${Z}" not found in node "${y.value.name}"`);
21773
21777
  return K;
21774
- }, k = (V, Z, K) => {
21778
+ }, k = (q, Z, K) => {
21775
21779
  const U = !!K;
21776
- r(e, V, Z, !U), U && J(Z, K);
21777
- }, R = (V, Z, K) => {
21780
+ r(e, q, Z, !U), U && J(Z, K);
21781
+ }, R = (q, Z, K) => {
21778
21782
  if (g) return;
21779
- const U = S(V, Z).id;
21783
+ const U = S(q, Z).id;
21780
21784
  a(e, U, K);
21781
- }, M = (V, Z) => {
21782
- const K = S(V, Z).id;
21785
+ }, M = (q, Z) => {
21786
+ const K = S(q, Z).id;
21783
21787
  s(e, K);
21784
- }, j = D(() => n.value.edges.filter((V) => V.target === e && !V.targetField)[0]), Q = D(() => n.value.edges.filter((V) => V.target === e && V.targetField)), J = async (V, Z) => {
21788
+ }, j = D(() => n.value.edges.filter((q) => q.target === e && !q.targetField)[0]), Q = D(() => n.value.edges.filter((q) => q.target === e && q.targetField)), J = async (q, Z) => {
21785
21789
  if (g) return;
21786
- const K = Z == null, U = S("input", V).id;
21790
+ const K = Z == null, U = S("input", q).id;
21787
21791
  if (K) {
21788
21792
  const le = Q.value.find((pe) => pe.targetField === U);
21789
21793
  le && u(le.id);
@@ -21792,7 +21796,7 @@ function _o(e, t) {
21792
21796
  const {
21793
21797
  nodeId: ae,
21794
21798
  fieldId: te
21795
- } = Ic(Z), de = S("input", V).id, fe = [];
21799
+ } = Ic(Z), de = S("input", q).id, fe = [];
21796
21800
  j.value && (fe.push(Ti(j.value, i)), u(j.value.id, !1));
21797
21801
  const ke = Q.value.find((le) => le.targetField === U);
21798
21802
  ke && (fe.push(Ti(ke, i)), u(ke.id, !1)), d({
@@ -21813,16 +21817,16 @@ function _o(e, t) {
21813
21817
  [xe],
21814
21818
  fe
21815
21819
  ) || f());
21816
- }, x = async (V) => {
21820
+ }, x = async (q) => {
21817
21821
  if (g) return;
21818
- if (V == null) {
21822
+ if (q == null) {
21819
21823
  j.value && u(j.value.id);
21820
21824
  return;
21821
21825
  }
21822
21826
  const K = [];
21823
21827
  for (const de of Q.value.concat(j.value ? [j.value] : []))
21824
21828
  K.push(Ti(de, i)), u(de.id, !1);
21825
- const { nodeId: U, fieldId: ae } = Ic(V);
21829
+ const { nodeId: U, fieldId: ae } = Ic(q);
21826
21830
  d({
21827
21831
  source: U,
21828
21832
  sourceField: ae,
@@ -21842,35 +21846,35 @@ function _o(e, t) {
21842
21846
  [te],
21843
21847
  K
21844
21848
  ) || f());
21845
- }, ne = (V) => {
21849
+ }, ne = (q) => {
21846
21850
  const Z = [
21847
21851
  ...n.value.edges,
21848
- { source: V, target: e }
21852
+ { source: q, target: e }
21849
21853
  ];
21850
- return qs(wr(Z));
21854
+ return Vs(wr(Z));
21851
21855
  }, I = D(() => {
21852
21856
  var Z, K;
21853
- const V = [];
21857
+ const q = [];
21854
21858
  for (const U of n.value.nodes)
21855
21859
  if ((Z = Yl(U.type).io) != null && Z.output && U.fields.output && U.id !== e && !(U.type === "property" && !su((K = U.config) == null ? void 0 : K.property)) && !ne(U.id) && !(y.value.phase === "request" && U.phase === "response")) {
21856
- V.push({ value: U.id, label: U.name });
21860
+ q.push({ value: U.id, label: U.name });
21857
21861
  for (const te of U.fields.output)
21858
- V.push({
21862
+ q.push({
21859
21863
  value: `${U.id}.${te.id}`,
21860
21864
  label: `${U.name}.${te.name}`
21861
21865
  });
21862
21866
  }
21863
- return V;
21864
- }), z = D(() => y.value.fields.input.map((V) => V.name) || []);
21865
- function B(V) {
21866
- c.value.delete(e), V || c.value.add(e);
21867
+ return q;
21868
+ }), z = D(() => y.value.fields.input.map((q) => q.name) || []);
21869
+ function B(q) {
21870
+ c.value.delete(e), q || c.value.add(e);
21867
21871
  }
21868
21872
  const ie = $L(e);
21869
- function W(V, Z, K) {
21873
+ function W(q, Z, K) {
21870
21874
  const U = i(e);
21871
21875
  if (!U) throw new Error("Node not found when validating field name");
21872
- const ae = Uo(U, V, Z);
21873
- return ie(V, K, ae == null ? void 0 : ae.id);
21876
+ const ae = Uo(U, q, Z);
21877
+ return ie(q, K, ae == null ? void 0 : ae.id);
21874
21878
  }
21875
21879
  return {
21876
21880
  // states
@@ -22009,7 +22013,7 @@ const Ji = /* @__PURE__ */ ve({
22009
22013
  ]),
22010
22014
  _: 1
22011
22015
  }),
22012
- P(Vo, {
22016
+ P(qo, {
22013
22017
  error: p(v).error.value,
22014
22018
  "error-message": p(v).errorMessage.value,
22015
22019
  name: "url",
@@ -22018,9 +22022,9 @@ const Ji = /* @__PURE__ */ ve({
22018
22022
  }, null, 8, ["error", "error-message", "onBlur", "onUpdate:modelValue"]),
22019
22023
  P(mL, {
22020
22024
  name: "method",
22021
- "onUpdate:modelValue": b[0] || (b[0] = (A) => p(a)())
22025
+ onUpdate: b[0] || (b[0] = (A) => p(a)())
22022
22026
  }),
22023
- P(qo, {
22027
+ P(Vo, {
22024
22028
  error: p(g).error.value,
22025
22029
  "error-message": p(g).errorMessage.value,
22026
22030
  label: p(t)("plugins.free-form.datakit.flow_editor.node_properties.timeout.label"),
@@ -22028,7 +22032,7 @@ const Ji = /* @__PURE__ */ ve({
22028
22032
  onBlur: p(g).onBlur,
22029
22033
  "onUpdate:modelValue": p(g).onUpdate
22030
22034
  }, null, 8, ["error", "error-message", "label", "onBlur", "onUpdate:modelValue"]),
22031
- P(Vo, {
22035
+ P(qo, {
22032
22036
  name: "ssl_server_name",
22033
22037
  "onUpdate:modelValue": b[1] || (b[1] = (A) => p(a)("ssl_server_name"))
22034
22038
  }),
@@ -22169,7 +22173,7 @@ const Ji = /* @__PURE__ */ ve({
22169
22173
  ]),
22170
22174
  _: 1
22171
22175
  }),
22172
- P(Vo, {
22176
+ P(qo, {
22173
22177
  error: p(k).error.value,
22174
22178
  "error-message": p(k).errorMessage.value,
22175
22179
  label: p(A),
@@ -22286,7 +22290,7 @@ const Ji = /* @__PURE__ */ ve({
22286
22290
  ]),
22287
22291
  _: 1
22288
22292
  }),
22289
- (w(!0), ee(Le, null, qe(p(r), (x, ne) => (w(), G(J, {
22293
+ (w(!0), ee(Le, null, Ve(p(r), (x, ne) => (w(), G(J, {
22290
22294
  key: x.id,
22291
22295
  class: "dk-output-value-field-entry",
22292
22296
  "data-testid": `ff-kv-container-${p(l).path.value}.${ne}`
@@ -22481,7 +22485,7 @@ const BL = /* @__PURE__ */ ve({
22481
22485
  _: 1
22482
22486
  }, 8, ["data", "schema"]));
22483
22487
  }
22484
- }), jL = { class: "dk-kong-property-item" }, VL = { class: "property-type" }, qL = { class: "property-badges" }, zL = /* @__PURE__ */ ve({
22488
+ }), jL = { class: "dk-kong-property-item" }, qL = { class: "property-type" }, VL = { class: "property-badges" }, zL = /* @__PURE__ */ ve({
22485
22489
  __name: "PropertiesField",
22486
22490
  props: {
22487
22491
  validators: {}
@@ -22532,9 +22536,9 @@ const BL = /* @__PURE__ */ ve({
22532
22536
  X("div", jL, [
22533
22537
  X("div", null, [
22534
22538
  X("div", null, ge(b.label), 1),
22535
- X("div", VL, ge(p(Qn)[b.value].dataType), 1)
22539
+ X("div", qL, ge(p(Qn)[b.value].dataType), 1)
22536
22540
  ]),
22537
- X("div", qL, [
22541
+ X("div", VL, [
22538
22542
  p(Qn)[b.value].readable ? (w(), G(v, {
22539
22543
  key: 0,
22540
22544
  appearance: "info"
@@ -22629,12 +22633,12 @@ const BL = /* @__PURE__ */ ve({
22629
22633
  }, null, 8, ["name", "validate", "onUpdate"]),
22630
22634
  P(fn, {
22631
22635
  name: "content_type",
22632
- "onUpdate:modelValue": p(l)
22633
- }, null, 8, ["onUpdate:modelValue"]),
22636
+ onUpdate: A[0] || (A[0] = (S) => p(l)())
22637
+ }),
22634
22638
  P(UL, {
22635
22639
  validators: p(b),
22636
22640
  "onUpdate:modelValue": y,
22637
- "onUpdate:propertyKey": A[0] || (A[0] = (S) => p(l)("property-key"))
22641
+ "onUpdate:propertyKey": A[1] || (A[1] = (S) => p(l)("property-key"))
22638
22642
  }, null, 8, ["validators"]),
22639
22643
  g.value ? (w(), G(ni, {
22640
22644
  key: 0,
@@ -22690,7 +22694,7 @@ const BL = /* @__PURE__ */ ve({
22690
22694
  validate: p(d),
22691
22695
  onUpdate: p(i)
22692
22696
  }, null, 8, ["name", "validate", "onUpdate"]),
22693
- P(qo, {
22697
+ P(Vo, {
22694
22698
  error: p(h).error.value,
22695
22699
  "error-message": p(h).errorMessage.value,
22696
22700
  name: "status",
@@ -23323,7 +23327,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
23323
23327
  if (!(!e || typeof e != "object"))
23324
23328
  for (const [t, n] of Object.entries(e))
23325
23329
  Array.isArray(n) && (e[t] = n.join(", "));
23326
- }, VK = /* @__PURE__ */ ve({
23330
+ }, qK = /* @__PURE__ */ ve({
23327
23331
  __name: "ConfigForm",
23328
23332
  props: {
23329
23333
  schema: {},
@@ -23376,7 +23380,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
23376
23380
  _: 1
23377
23381
  }, 8, ["data", "schema"]));
23378
23382
  }
23379
- }), qK = /* @__PURE__ */ ve({
23383
+ }), VK = /* @__PURE__ */ ve({
23380
23384
  __name: "AIMcpProxyForm",
23381
23385
  props: {
23382
23386
  schema: {},
@@ -23392,7 +23396,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
23392
23396
  const t = e, n = Zt();
23393
23397
  return st(ei, n == null ? void 0 : n[to]), (o, i) => (w(), G(Kl, gn(xn(t)), {
23394
23398
  default: F((r) => [
23395
- P(VK, gn(xn(r)), null, 16)
23399
+ P(qK, gn(xn(r)), null, 16)
23396
23400
  ]),
23397
23401
  _: 1
23398
23402
  }, 16));
@@ -23475,7 +23479,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
23475
23479
  }
23476
23480
  }), Wd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23477
23481
  __proto__: null,
23478
- AIMcpProxyForm: qK,
23482
+ AIMcpProxyForm: VK,
23479
23483
  CommonForm: HK,
23480
23484
  DatakitForm: jK,
23481
23485
  RequestCalloutForm: fk,
@@ -23564,7 +23568,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
23564
23568
  throw new Error(
23565
23569
  "Duplicate form component names found in `sharedForms` and `freeForm`"
23566
23570
  );
23567
- const i = t, r = e, { axiosInstance: a } = qn((ke = r.config) == null ? void 0 : ke.axiosRequestConfig), { parseSchema: s } = ot.useSchemas({
23571
+ const i = t, r = e, { axiosInstance: a } = Vn((ke = r.config) == null ? void 0 : ke.axiosRequestConfig), { parseSchema: s } = ot.useSchemas({
23568
23572
  entityId: ((xe = r.entityMap.focusedEntity) == null ? void 0 : xe.id) || void 0,
23569
23573
  credential: r.credential,
23570
23574
  enableRedisPartial: r.enableRedisPartial,
@@ -23603,9 +23607,9 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
23603
23607
  },
23604
23608
  signal: pe
23605
23609
  }).then((T) => {
23606
- const { data: { data: q } } = T;
23607
- if (q.length && Object.keys(C).length === 1) {
23608
- const $ = Object.keys(C)[0], H = q.filter((O) => O[$] ? !!O[$].toLowerCase().includes(C[$].toLowerCase()) : !1);
23610
+ const { data: { data: V } } = T;
23611
+ if (V.length && Object.keys(C).length === 1) {
23612
+ const $ = Object.keys(C)[0], H = V.filter((O) => O[$] ? !!O[$].toLowerCase().includes(C[$].toLowerCase()) : !1);
23609
23613
  T.data.data = H;
23610
23614
  }
23611
23615
  return T;
@@ -23651,10 +23655,10 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
23651
23655
  for (let T = 0; T < ((N = (C = Q.value) == null ? void 0 : C.fields) == null ? void 0 : N.length); T++)
23652
23656
  oe[Q.value.fields[T].model] = Q.value.fields[T];
23653
23657
  bs.forEach((T) => {
23654
- oe[T] && (oe[T].fields.forEach((q) => {
23655
- q.fields && q.fields.forEach(($) => {
23658
+ oe[T] && (oe[T].fields.forEach((V) => {
23659
+ V.fields && V.fields.forEach(($) => {
23656
23660
  oe[$.model] = $;
23657
- }), q.model && (oe[q.model] = q);
23661
+ }), V.model && (oe[V.model] = V);
23658
23662
  }), delete oe[T]);
23659
23663
  }), be.forEach((T) => {
23660
23664
  var $e;
@@ -23662,12 +23666,12 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
23662
23666
  T === "partials" && (_e[T] = le[T]);
23663
23667
  return;
23664
23668
  }
23665
- const q = oe[T];
23669
+ const V = oe[T];
23666
23670
  let $ = le[T];
23667
- const H = pe[T], O = Array.isArray($) ? "array" : typeof $, Y = q ? q.valueType : null, L = q ? q.valueArrayType : null, se = q ? q.transform : null;
23668
- if ($ == null && H == null && !q.submitWhenNull)
23671
+ const H = pe[T], O = Array.isArray($) ? "array" : typeof $, Y = V ? V.valueType : null, L = V ? V.valueArrayType : null, se = V ? V.transform : null;
23672
+ if ($ == null && H == null && !V.submitWhenNull)
23669
23673
  return;
23670
- if (q) {
23674
+ if (V) {
23671
23675
  if (Y && O !== Y)
23672
23676
  switch (Y) {
23673
23677
  case "array":
@@ -23683,7 +23687,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
23683
23687
  return Oe === 1;
23684
23688
  }
23685
23689
  return Oe;
23686
- })), (!$ || !$.length) && ($ = q.submitWhenNull ? null : []);
23690
+ })), (!$ || !$.length) && ($ = V.submitWhenNull ? null : []);
23687
23691
  break;
23688
23692
  case "number":
23689
23693
  $ = Number($);
@@ -23695,8 +23699,8 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
23695
23699
  $ = $ == null ? "" : String($);
23696
23700
  break;
23697
23701
  }
23698
- else Y === "array" && (!$ || !$.length ? $ = q.submitWhenNull ? null : [] : (($e = q.inputAttributes) == null ? void 0 : $e.type) === "number" && ($ = $.map((Oe) => Number(Oe))));
23699
- if (q.type === "array" && q.nestedFields) {
23702
+ else Y === "array" && (!$ || !$.length ? $ = V.submitWhenNull ? null : [] : (($e = V.inputAttributes) == null ? void 0 : $e.type) === "number" && ($ = $.map((Oe) => Number(Oe))));
23703
+ if (V.type === "array" && V.nestedFields) {
23700
23704
  const Oe = (ue) => {
23701
23705
  Object.keys(ue).forEach((Se) => {
23702
23706
  ue[Se] && typeof ue[Se] == "object" && !Array.isArray(ue[Se]) && ue[Se] !== null ? Oe(ue[Se]) : (ue[Se] === void 0 || ue[Se] === null || typeof ue[Se] == "number" && isNaN(ue[Se]) || typeof ue[Se] == "string" && ue[Se].trim().length === 0) && delete ue[Se];
@@ -23704,12 +23708,12 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
23704
23708
  };
23705
23709
  $ && typeof $ == "object" && Oe($);
23706
23710
  }
23707
- q.type === "object-advanced" && q.fields && $ !== null && (Object.entries($).length === 0 ? $ = null : Object.keys($).forEach((Oe) => {
23711
+ V.type === "object-advanced" && V.fields && $ !== null && (Object.entries($).length === 0 ? $ = null : Object.keys($).forEach((Oe) => {
23708
23712
  Array.isArray($[Oe]) || ($[Oe] = $[Oe].split(","));
23709
23713
  }));
23710
23714
  }
23711
23715
  let he = l(T);
23712
- if (q.fieldNameHasDashes) {
23716
+ if (V.fieldNameHasDashes) {
23713
23717
  const [Oe, ...ue] = he.split(".").reverse();
23714
23718
  he = [Oe.replace(/_/g, "-"), ...ue].reverse().join(".");
23715
23719
  }
@@ -23719,11 +23723,11 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
23719
23723
  let ue = {};
23720
23724
  _e[he] && (ue = _e[he]), ue[Oe] = $, $ = ue;
23721
23725
  }
23722
- H !== void 0 && $ === "" && $ !== H ? _e[he] = Y === "object" ? {} : null : q.type === "checklist" && $ === "" ? _e[he] = [] : $ !== "" && (_e[he] = $), _e[he] = se ? se($) : _e[he], f(he, _e);
23726
+ H !== void 0 && $ === "" && $ !== H ? _e[he] = Y === "object" ? {} : null : V.type === "checklist" && $ === "" ? _e[he] = [] : $ !== "" && (_e[he] = $), _e[he] = se ? se($) : _e[he], f(he, _e);
23723
23727
  });
23724
23728
  const E = u(_e);
23725
23729
  return M.value && Object.assign(E, ae.value), E;
23726
- }, V = (oe, le = {}) => {
23730
+ }, q = (oe, le = {}) => {
23727
23731
  d(x, le, oe, r.editing), i("model-updated", {
23728
23732
  model: x,
23729
23733
  originalModel: J,
@@ -23746,8 +23750,8 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
23746
23750
  var N, T;
23747
23751
  let be = le ? `${le}-${pe}` : pe, _e = r.schema[be];
23748
23752
  if (!_e) {
23749
- const q = le ? `${le}-${pe.replace(/-/g, "_")}` : pe.replace(/-/g, "_");
23750
- (N = r.schema[q]) != null && N.fieldNameHasDashes && (be = q, _e = r.schema[be]), le && ((T = r.schema[le]) == null ? void 0 : T.keyFromObject) === pe && (be = le, _e = r.schema[be]);
23753
+ const V = le ? `${le}-${pe.replace(/-/g, "_")}` : pe.replace(/-/g, "_");
23754
+ (N = r.schema[V]) != null && N.fieldNameHasDashes && (be = V, _e = r.schema[be]), le && ((T = r.schema[le]) == null ? void 0 : T.keyFromObject) === pe && (be = le, _e = r.schema[be]);
23751
23755
  }
23752
23756
  const E = oe[pe], C = typeof E;
23753
23757
  if (_e && _e.type === "object-advanced" && !E) {
@@ -23792,7 +23796,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
23792
23796
  route_id: r.record.route_id || r.record.route,
23793
23797
  consumer_id: r.record.consumer_id || r.record.consumer,
23794
23798
  consumer_group_id: r.record.consumer_group_id || r.record.consumer_group
23795
- }), r.record.partials && V("redis", { partials: r.record.partials }), M.value ? te(r.record) : U(r.record.config, "config"))), Object.keys(r.entityMap).length && !r.entityMap.global && r.schema) {
23799
+ }), r.record.partials && q("redis", { partials: r.record.partials }), M.value ? te(r.record) : U(r.record.config, "config"))), Object.keys(r.entityMap).length && !r.entityMap.global && r.schema) {
23796
23800
  const le = {};
23797
23801
  for (const pe in r.entityMap) {
23798
23802
  const be = r.entityMap[pe].id, _e = r.entityMap[pe].idField, E = _e === "consumer_group_id" ? "consumer_group-id" : JSON.parse(JSON.stringify(_e).replace("_", "-"));
@@ -23856,7 +23860,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
23856
23860
  "form-schema": Q.value,
23857
23861
  "is-editing": e.editing,
23858
23862
  "on-model-updated": Z,
23859
- "on-partial-toggled": V,
23863
+ "on-partial-toggled": q,
23860
23864
  "show-new-partial-modal": (_e) => oe.$emit("showNewPartialModal", _e)
23861
23865
  }, nt({ _: 2 }, [
23862
23866
  e.enableVaultSecretPicker ? {
@@ -23874,7 +23878,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
23874
23878
  options: ne.value,
23875
23879
  schema: Q.value,
23876
23880
  onModelUpdated: Z,
23877
- onPartialToggled: V,
23881
+ onPartialToggled: q,
23878
23882
  onRefreshModel: W,
23879
23883
  onShowNewPartialModal: le[1] || (le[1] = (_e) => oe.$emit("showNewPartialModal", _e))
23880
23884
  }, nt({
@@ -24036,7 +24040,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
24036
24040
  app: o.config.app,
24037
24041
  credential: o.credential,
24038
24042
  experimentalRenders: o.config.app === "konnect" ? o.config.experimentalRenders : void 0
24039
- }), { formatPluginFieldLabel: l } = ot.usePluginHelpers(), { getMessageFromError: u } = Qo(), { capitalize: d } = ra(), { objectsAreEqual: c } = aa(), { axiosInstance: f } = qn((H = o.config) == null ? void 0 : H.axiosRequestConfig), m = re(!1), h = D(() => !!o.pluginId), v = D(() => o.pluginId ? zn.Edit : zn.Create), g = re(void 0), y = re(void 0), b = D(() => !!(o.credential && o.config.entityId)), _ = re(void 0), A = re({}), S = re(), k = re();
24043
+ }), { formatPluginFieldLabel: l } = ot.usePluginHelpers(), { getMessageFromError: u } = Qo(), { capitalize: d } = ra(), { objectsAreEqual: c } = aa(), { axiosInstance: f } = Vn((H = o.config) == null ? void 0 : H.axiosRequestConfig), m = re(!1), h = D(() => !!o.pluginId), v = D(() => o.pluginId ? zn.Edit : zn.Create), g = re(void 0), y = re(void 0), b = D(() => !!(o.credential && o.config.entityId)), _ = re(void 0), A = re({}), S = re(), k = re();
24040
24044
  st(dp, {
24041
24045
  redisType: S,
24042
24046
  redisPath: k,
@@ -24222,24 +24226,24 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
24222
24226
  }, L) : W(ye, me, L);
24223
24227
  if (L[ye] = { id: ye, model: Ie }, L[ye].type = me.type === "boolean" ? "checkbox" : "input", L[ye].required = me.required, L[ye].referenceable = me.referenceable, ye.startsWith("config-"))
24224
24228
  if (!se && me.type === "array" && (J.value = ye), se && J.value && ye.startsWith(J.value)) {
24225
- const Ve = ye.slice(J.value.length + 1);
24226
- L[ye].label = Ve.split("-").map(l).join(".");
24229
+ const qe = ye.slice(J.value.length + 1);
24230
+ L[ye].label = qe.split("-").map(l).join(".");
24227
24231
  } else
24228
24232
  L[ye].label = l(ye);
24229
24233
  if ((O === "config" || O.startsWith("config-")) && (We = he[Ie]) != null && We.description && (L[ye].help = _r.parse(he[Ie].description, { mangle: !1, headerIds: !1 })), me.type === "map") {
24230
24234
  if (L[ye].type = "object-advanced", L[ye].values = me.values, me.values.type === "array") {
24231
- const { type: Ve } = me.values.elements || {};
24235
+ const { type: qe } = me.values.elements || {};
24232
24236
  L[ye].schema = {
24233
24237
  fields: [{
24234
24238
  schema: {
24235
24239
  fields: [{
24236
24240
  ...Ye,
24237
24241
  model: ye,
24238
- valueArrayType: Ve === "integer" ? "number" : Ve || "string",
24242
+ valueArrayType: qe === "integer" ? "number" : qe || "string",
24239
24243
  inputAttributes: {
24240
24244
  ...Ye.inputAttributes,
24241
- type: Ve === "integer" ? "number" : "text",
24242
- inputMode: Ve === "integer" ? "numeric" : "text"
24245
+ type: qe === "integer" ? "number" : "text",
24246
+ inputMode: qe === "integer" ? "numeric" : "text"
24243
24247
  }
24244
24248
  }]
24245
24249
  }
@@ -24251,14 +24255,14 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
24251
24255
  type: "object",
24252
24256
  model: "object",
24253
24257
  schema: {
24254
- fields: me.values.fields.map((Ve) => {
24255
- const Mt = Object.keys(Ve)[0];
24258
+ fields: me.values.fields.map((qe) => {
24259
+ const Mt = Object.keys(qe)[0];
24256
24260
  return {
24257
24261
  model: Mt,
24258
24262
  type: "input",
24259
24263
  label: d(Mt),
24260
24264
  placeholder: Mt,
24261
- inputType: Ve[Mt].type
24265
+ inputType: qe[Mt].type
24262
24266
  };
24263
24267
  })
24264
24268
  }
@@ -24270,25 +24274,25 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
24270
24274
  if (me.enum && me.type === "array" && (L[ye].type = "checklist", L[ye].values = me.enum, L[ye].multi = !0, L[ye].multiSelect = !0), me.one_of && me.type !== "array" && (L[ye].type = "select", L[ye].values = me.one_of, L[ye].selectOptions = {
24271
24275
  noneSelectedText: r("plugins.form.no_selection")
24272
24276
  }), me.elements && me.type === "array") {
24273
- const Ve = me.elements;
24274
- if (L[ye].referenceable = Ve.referenceable, L[ye].elements = Ve, ["string", "integer", "number"].includes(Ve.type) && !Ve.one_of) {
24277
+ const qe = me.elements;
24278
+ if (L[ye].referenceable = qe.referenceable, L[ye].elements = qe, ["string", "integer", "number"].includes(qe.type) && !qe.one_of) {
24275
24279
  const { id: Mt, help: ut, label: Ke, hint: Ue, values: Qe, referenceable: _n, model: Kt } = L[ye], { inputAttributes: tr, ...sh } = JSON.parse(JSON.stringify(Ye));
24276
- tr.type = Ve.type === "string" ? "text" : "number", L[ye] = { id: Mt, help: ut, label: Ke, hint: Ue, values: Qe, referenceable: _n, model: Kt, inputAttributes: tr, ...sh };
24280
+ tr.type = qe.type === "string" ? "text" : "number", L[ye] = { id: Mt, help: ut, label: Ke, hint: Ue, values: Qe, referenceable: _n, model: Kt, inputAttributes: tr, ...sh };
24277
24281
  }
24278
24282
  }
24279
- if (me.hint && (L[ye].hint = me.hint), $e && !$e.overwriteDefault && Object.keys($e).forEach((Ve) => {
24280
- if (Ve === ye) {
24281
- const { help: Mt, label: ut, hint: Ke, values: Ue, referenceable: Qe, elements: _n } = L[ye], { help: Kt, ...tr } = $e[Ve];
24283
+ if (me.hint && (L[ye].hint = me.hint), $e && !$e.overwriteDefault && Object.keys($e).forEach((qe) => {
24284
+ if (qe === ye) {
24285
+ const { help: Mt, label: ut, hint: Ke, values: Ue, referenceable: Qe, elements: _n } = L[ye], { help: Kt, ...tr } = $e[qe];
24282
24286
  L[ye] = { help: Mt, label: ut, hint: Ke, values: Ue, referenceable: Qe, elements: _n, ...tr }, typeof Kt == "string" && (L[ye].help = _r.parse(Kt, { mangle: !1, headerIds: !1 }));
24283
24287
  }
24284
24288
  }), me.type === "array" && ((Ct = me.elements) == null ? void 0 : Ct.type) === "record" && Array.isArray(me.elements.fields)) {
24285
- let Ve = {};
24289
+ let qe = {};
24286
24290
  for (const ut of me.elements.fields)
24287
- Ve = { ...Ve, ...ut };
24291
+ qe = { ...qe, ...ut };
24288
24292
  const Mt = (ii = (oi = (yn = L[ye]) == null ? void 0 : yn.items) == null ? void 0 : oi.schema) == null ? void 0 : ii.fields;
24289
24293
  if (Array.isArray(Mt))
24290
24294
  for (const ut of L[ye].items.schema.fields) {
24291
- const Ke = (ri = Ve[ut.model]) == null ? void 0 : ri.description;
24295
+ const Ke = (ri = qe[ut.model]) == null ? void 0 : ri.description;
24292
24296
  ut.help === void 0 && typeof Ke == "string" && (ut.help = _r.parse(Ke, { mangle: !1, headerIds: !1 }));
24293
24297
  }
24294
24298
  if (Mt || (L[ye].type = "array", L[ye].newElementButtonLabelClasses = "kong-form-new-element-button-label", L[ye].fieldClasses = "array-card-container-wrapper", L[ye].itemContainerComponent = "FieldArrayCardContainer", L[ye].items = {
@@ -24327,11 +24331,11 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
24327
24331
  }
24328
24332
  }
24329
24333
  if (b.value && Oe) {
24330
- for (let Ve = 0; Ve < Oe.length; Ve++)
24331
- if (Oe[Ve][ye]) {
24334
+ for (let qe = 0; qe < Oe.length; qe++)
24335
+ if (Oe[qe][ye]) {
24332
24336
  L[ye] = {
24333
24337
  ...L[ye],
24334
- ...Oe[Ve][ye]
24338
+ ...Oe[qe][ye]
24335
24339
  };
24336
24340
  break;
24337
24341
  }
@@ -24340,15 +24344,15 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
24340
24344
  hideNoneSelectedText: !0
24341
24345
  }), me.required && me.type === "boolean" && (L[ye].default = me.default ?? !1), me.default != null && typeof me.default != "object" && me.default !== "function" && (L[ye].default = me.default), L[ye].type === "input") {
24342
24346
  ["string", "number"].includes(typeof L[ye].default) && o.config.app === "konnect" && (L[ye].placeholder = `Default: ${L[ye].default === "" ? "<empty string>" : L[ye].default}`);
24343
- const { type: Ve } = me.elements || {};
24344
- Ve && (L[ye].valueArrayType = Ve === "integer" ? "number" : Ve), L[ye].inputType = me.type === "array" || me.type === "string" ? me.encrypted ? "password" : "text" : me.type;
24347
+ const { type: qe } = me.elements || {};
24348
+ qe && (L[ye].valueArrayType = qe === "integer" ? "number" : qe), L[ye].inputType = me.type === "array" || me.type === "string" ? me.encrypted ? "password" : "text" : me.type;
24345
24349
  }
24346
24350
  let je = "string";
24347
24351
  me.enum ? je = ie(me.enum) : me.type === "boolean" ? je = "boolean" : me.type === "number" || me.type === "integer" ? (je = "number", L[ye].inputType = "number") : me.type === "array" ? (je = "array", L[ye].default = me.default, me.len_min > 0 && (L[ye].submitWhenNull = !0)) : me.type === "foreign" ? je = "object" : me.default && Array.isArray(me.default) ? (je = "array", L[ye].valueArrayType = ie(me.default)) : me.default && (je = typeof me.default), L[ye].valueType = je, me.fieldNameHasDashes && (L[ye].fieldNameHasDashes = !0);
24348
24352
  }), L;
24349
- }, V = () => {
24350
- var ye, je, ct, We, Ct, yn, oi, ii, ri, Ve, Mt, ut;
24351
- const O = ((ye = on[o.pluginType]) == null ? void 0 : ye.scope.includes(xt.SERVICE)) ?? !0, Y = ((je = on[o.pluginType]) == null ? void 0 : je.scope.includes(xt.ROUTE)) ?? !0, L = ((ct = on[o.pluginType]) == null ? void 0 : ct.scope.includes(xt.CONSUMER)) ?? !0, se = o.config.disableConsumerGroupScope ? !1 : ((We = on[o.pluginType]) == null ? void 0 : We.scope.includes(xt.CONSUMER_GROUP)) ?? !0, he = o.config.entityType === "consumers" && !!o.config.entityId || !!((yn = (Ct = _.value) == null ? void 0 : Ct.consumer) != null && yn.id), $e = o.config.entityType === "consumer_groups" && !!o.config.entityId || !!((ii = (oi = _.value) == null ? void 0 : oi.consumer_group) != null && ii.id), Oe = o.config.entityType === "services" && !!o.config.entityId || !!((Ve = (ri = _.value) == null ? void 0 : ri.service) != null && Ve.id), ue = o.config.entityType === "routes" && !!o.config.entityId || !!((ut = (Mt = _.value) == null ? void 0 : Mt.route) != null && ut.id), Se = [], Ie = (Ke, Ue, Qe) => Ke ? r("plugins.form.disable_source_scope_change", { scope: Qe }) : Ue ? r("plugins.form.disable_data_retrieving", { scope: Qe }) : "", me = (Ke) => {
24353
+ }, q = () => {
24354
+ var ye, je, ct, We, Ct, yn, oi, ii, ri, qe, Mt, ut;
24355
+ const O = ((ye = on[o.pluginType]) == null ? void 0 : ye.scope.includes(xt.SERVICE)) ?? !0, Y = ((je = on[o.pluginType]) == null ? void 0 : je.scope.includes(xt.ROUTE)) ?? !0, L = ((ct = on[o.pluginType]) == null ? void 0 : ct.scope.includes(xt.CONSUMER)) ?? !0, se = o.config.disableConsumerGroupScope ? !1 : ((We = on[o.pluginType]) == null ? void 0 : We.scope.includes(xt.CONSUMER_GROUP)) ?? !0, he = o.config.entityType === "consumers" && !!o.config.entityId || !!((yn = (Ct = _.value) == null ? void 0 : Ct.consumer) != null && yn.id), $e = o.config.entityType === "consumer_groups" && !!o.config.entityId || !!((ii = (oi = _.value) == null ? void 0 : oi.consumer_group) != null && ii.id), Oe = o.config.entityType === "services" && !!o.config.entityId || !!((qe = (ri = _.value) == null ? void 0 : ri.service) != null && qe.id), ue = o.config.entityType === "routes" && !!o.config.entityId || !!((ut = (Mt = _.value) == null ? void 0 : Mt.route) != null && ut.id), Se = [], Ie = (Ke, Ue, Qe) => Ke ? r("plugins.form.disable_source_scope_change", { scope: Qe }) : Ue ? r("plugins.form.disable_data_retrieving", { scope: Qe }) : "", me = (Ke) => {
24352
24356
  var Ue, Qe;
24353
24357
  return ((Qe = (Ue = o.scopedEntitiesPermissions) == null ? void 0 : Ue[Ke]) == null ? void 0 : Qe.canRetrieve) === !1;
24354
24358
  };
@@ -24450,7 +24454,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
24450
24454
  }), z.selectionGroup.fields[1].fields = Se;
24451
24455
  }
24452
24456
  a[o.pluginType] && a[o.pluginType].overwriteDefault && Object.hasOwnProperty.call(a[o.pluginType], "formSchema") && Object.assign(z, a[o.pluginType].formSchema);
24453
- }, Z = D(() => !c(j.fields, M, !0)), K = D(() => !q.value && !R.value && (v.value === zn.Create || Z.value)), U = re(!1), ae = re(), te = (O) => {
24457
+ }, Z = D(() => !c(j.fields, M, !0)), K = D(() => !V.value && !R.value && (v.value === zn.Create || Z.value)), U = re(!1), ae = re(), te = (O) => {
24454
24458
  o.credential && O.password && (O.password = ""), j.fields.id = (O == null ? void 0 : O.id) || void 0, ae.value = O == null ? void 0 : O.ordering, Object.assign(M, j.fields), _.value = O, U.value = !0;
24455
24459
  }, de = re({}), fe = (O) => {
24456
24460
  var Y;
@@ -24510,22 +24514,22 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
24510
24514
  const O = b.value ? (se = Ao[o.pluginType]) == null ? void 0 : se.schemaEndpoint : o.pluginType, Y = b.value ? dt.form[o.config.app].credentialSchema : dt.form[o.config.app].pluginSchema;
24511
24515
  let L = `${o.config.apiBaseUrl}${Y}`;
24512
24516
  return o.config.app === "konnect" ? L = L.replace(/{controlPlaneId}/gi, o.config.controlPlaneId || "") : o.config.app === "kongManager" && (L = L.replace(/\/{workspace}/gi, o.config.workspace ? `/${o.config.workspace}` : "")), L = L.replace(/{plugin}/gi, O), L;
24513
- }), T = re(""), q = re(!1), $ = re("");
24517
+ }), T = re(""), V = re(!1), $ = re("");
24514
24518
  return $n(async () => {
24515
24519
  var O, Y, L, se;
24516
- q.value = !0;
24520
+ V.value = !0;
24517
24521
  try {
24518
24522
  if (b.value && o.config.app === "konnect") {
24519
24523
  const he = (O = Ao[o.pluginType]) == null ? void 0 : O.schemaEndpoint, $e = Qv[he];
24520
- T.value = he, y.value = W("", $e, {}), q.value = !1;
24524
+ T.value = he, y.value = W("", $e, {}), V.value = !1;
24521
24525
  } else {
24522
24526
  const he = o.schema ?? (await f.get(N.value)).data;
24523
24527
  if (g.value = he, he)
24524
24528
  if (b.value)
24525
- y.value = W("", he, {}), q.value = !1;
24529
+ y.value = W("", he, {}), V.value = !1;
24526
24530
  else {
24527
24531
  const $e = he.fields.find((ue) => ue.config);
24528
- A.value = $e ? $e.config : he, he.supported_partials && (S.value = Object.keys(he.supported_partials).find((ue) => [ks.REDIS_CE, ks.REDIS_EE].includes(ue)), k.value = (Y = he.supported_partials[S.value]) == null ? void 0 : Y[0]), V();
24532
+ A.value = $e ? $e.config : he, he.supported_partials && (S.value = Object.keys(he.supported_partials).find((ue) => [ks.REDIS_CE, ks.REDIS_EE].includes(ue)), k.value = (Y = he.supported_partials[S.value]) == null ? void 0 : Y[0]), q();
24529
24533
  const Oe = (L = he.fields.find((ue) => ue.protocols)) == null ? void 0 : L.protocols;
24530
24534
  if (Oe) {
24531
24535
  const { default: ue = [], elements: Se = {} } = Oe;
@@ -24542,12 +24546,12 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
24542
24546
  } catch (he) {
24543
24547
  console.error(he), $.value = u(he), n("error:fetch-schema", he);
24544
24548
  } finally {
24545
- q.value = !1;
24549
+ V.value = !1;
24546
24550
  }
24547
24551
  }), (O, Y) => {
24548
24552
  const L = Ee("KSkeleton"), se = Ee("KEmptyState"), he = Ee("KButton"), $e = Ee("KTabs"), Oe = Ee("KSlideout");
24549
24553
  return w(), ee("div", e3, [
24550
- q.value ? (w(), G(L, {
24554
+ V.value ? (w(), G(L, {
24551
24555
  key: 0,
24552
24556
  type: "form"
24553
24557
  })) : $.value ? (w(), G(se, {
@@ -24771,8 +24775,8 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
24771
24775
  },
24772
24776
  emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success", "toggle-enabled"],
24773
24777
  setup(e, { emit: t }) {
24774
- var T, q;
24775
- const n = ot.usePluginMetaData(), o = t, i = e, { i18n: { t: r } } = ot.useI18n(), a = sa(), { axiosInstance: s } = qn((T = i.config) == null ? void 0 : T.axiosRequestConfig), { hasRecords: l, handleStateChange: u } = wh(() => _.value), d = D(() => l.value && i.config.app === "konnect"), c = D(() => !!i.config.entityId), f = D(() => {
24778
+ var T, V;
24779
+ const n = ot.usePluginMetaData(), o = t, i = e, { i18n: { t: r } } = ot.useI18n(), a = sa(), { axiosInstance: s } = Vn((T = i.config) == null ? void 0 : T.axiosRequestConfig), { hasRecords: l, handleStateChange: u } = wh(() => _.value), d = D(() => l.value && i.config.app === "konnect"), c = D(() => !!i.config.entityId), f = D(() => {
24776
24780
  var $;
24777
24781
  return (($ = i.config) == null ? void 0 : $.entityType) === "consumers";
24778
24782
  }), m = D(() => {
@@ -24788,7 +24792,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
24788
24792
  // the Name column is non-hidable
24789
24793
  name: { label: r("plugins.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 }
24790
24794
  };
24791
- (q = i.config) != null && q.entityId || (g.appliedTo = { label: r("plugins.list.table_headers.applied_to"), sortable: !1 }), g.enabled = { label: r("plugins.list.table_headers.enabled"), searchable: !0, sortable: !0 }, h && (g.ordering = { label: r("plugins.list.table_headers.ordering"), sortable: !0 }), g.tags = { label: r("plugins.list.table_headers.tags"), sortable: !1 };
24795
+ (V = i.config) != null && V.entityId || (g.appliedTo = { label: r("plugins.list.table_headers.applied_to"), sortable: !1 }), g.enabled = { label: r("plugins.list.table_headers.enabled"), searchable: !0, sortable: !0 }, h && (g.ordering = { label: r("plugins.list.table_headers.ordering"), sortable: !0 }), g.tags = { label: r("plugins.list.table_headers.tags"), sortable: !1 };
24792
24796
  const y = g, b = D(() => {
24793
24797
  var H, O, Y, L;
24794
24798
  let $ = i.config.entityType ? `${i.config.apiBaseUrl}${dt.list[i.config.app].forEntity}` : `${i.config.apiBaseUrl}${dt.list[i.config.app].all}`;
@@ -24857,7 +24861,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
24857
24861
  I.value = !0, z.value = $;
24858
24862
  }, W = () => {
24859
24863
  I.value = !1, z.value = null;
24860
- }, V = async () => {
24864
+ }, q = async () => {
24861
24865
  var Y, L, se, he, $e, Oe, ue, Se;
24862
24866
  if (!await ((Y = i.canEdit) == null ? void 0 : Y.call(i, z.value)) || !z.value)
24863
24867
  return;
@@ -25033,7 +25037,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
25033
25037
  appliedTo: F(({ row: ue }) => [
25034
25038
  J(ue).length > 0 ? (w(), G(se, { key: 0 }, {
25035
25039
  default: F(() => [
25036
- (w(!0), ee(Le, null, qe(J(ue), (Se) => (w(), G(p(Un), {
25040
+ (w(!0), ee(Le, null, Ve(J(ue), (Se) => (w(), G(p(Un), {
25037
25041
  key: Se.badgeText,
25038
25042
  "auth-function": () => x(Se.type, ue),
25039
25043
  "force-show": ""
@@ -25236,7 +25240,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
25236
25240
  "entity-id": B.value.id,
25237
25241
  "entity-name": B.value.name,
25238
25242
  "entity-type": p(r)("glossary.plugin"),
25239
- "on-confirm": V,
25243
+ "on-confirm": q,
25240
25244
  visible: I.value,
25241
25245
  onCancel: W,
25242
25246
  onProceed: W
@@ -25428,7 +25432,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
25428
25432
  emits: ["closed", "proceed"],
25429
25433
  setup(e, { emit: t }) {
25430
25434
  var h;
25431
- const n = e, o = t, { i18nT: i, i18n: { t: r } } = ot.useI18n(), { getMessageFromError: a } = Qo(), { axiosInstance: s } = qn((h = n.config) == null ? void 0 : h.axiosRequestConfig), l = D(() => {
25435
+ const n = e, o = t, { i18nT: i, i18n: { t: r } } = ot.useI18n(), { getMessageFromError: a } = Qo(), { axiosInstance: s } = Vn((h = n.config) == null ? void 0 : h.axiosRequestConfig), l = D(() => {
25432
25436
  var v;
25433
25437
  return c.value ? r("delete.plugin_schema_in_use_title") : r("delete.title", { name: ((v = n.plugin) == null ? void 0 : v.name) || r("delete.custom_plugin") });
25434
25438
  }), u = re(!1), d = re(""), c = re(!1), f = D(() => {
@@ -25609,7 +25613,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
25609
25613
  class: "plugin-card-container",
25610
25614
  style: Nt(y.value)
25611
25615
  }, [
25612
- (w(!0), ee(Le, null, qe(u.value, (j, Q) => (w(), G(ah, {
25616
+ (w(!0), ee(Le, null, Ve(u.value, (j, Q) => (w(), G(ah, {
25613
25617
  key: `plugin-card-${Q}`,
25614
25618
  ref_for: !0,
25615
25619
  ref_key: "pluginCardRef",
@@ -25724,7 +25728,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
25724
25728
  class: "plugin-card-container",
25725
25729
  style: Nt(c.value)
25726
25730
  }, [
25727
- (w(!0), ee(Le, null, qe(o.plugins, (b) => (w(), G(ah, {
25731
+ (w(!0), ee(Le, null, Ve(o.plugins, (b) => (w(), G(ah, {
25728
25732
  key: `plugin-card-${b.id}`,
25729
25733
  ref_for: !0,
25730
25734
  ref_key: "pluginCardRef",
@@ -25830,7 +25834,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
25830
25834
  plugins: n.highlightedPlugins,
25831
25835
  onPluginClicked: d[1] || (d[1] = (f) => s(f))
25832
25836
  }, null, 8, ["modelValue", "config", "name", "navigate-on-click", "plugins"])) : Ce("", !0),
25833
- (w(!0), ee(Le, null, qe(p(xv), (f) => (w(), ee(Le, null, [
25837
+ (w(!0), ee(Le, null, Ve(p(xv), (f) => (w(), ee(Le, null, [
25834
25838
  l.value[f] ? (w(), ee("div", { key: f }, [
25835
25839
  P(Xd, {
25836
25840
  modelValue: a.value[f],
@@ -25850,7 +25854,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
25850
25854
  key: 3,
25851
25855
  "aria-live": "polite",
25852
25856
  class: "plugins-results-container"
25853
- }, L3 = { "data-testid": "kong-tab" }, K3 = { class: "tab-description" }, B3 = { "data-testid": "custom-tab" }, j3 = { class: "tab-description" }, V3 = /* @__PURE__ */ ve({
25857
+ }, L3 = { "data-testid": "kong-tab" }, K3 = { class: "tab-description" }, B3 = { "data-testid": "custom-tab" }, j3 = { class: "tab-description" }, q3 = /* @__PURE__ */ ve({
25854
25858
  __name: "PluginSelect",
25855
25859
  props: {
25856
25860
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -25934,7 +25938,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
25934
25938
  emits: ["loading", "plugin-clicked", "delete-custom:success"],
25935
25939
  setup(e, { emit: t }) {
25936
25940
  var Z;
25937
- const n = e, o = t, i = Oh(), r = sa(), { i18n: { t: a } } = ot.useI18n(), { pluginMetaData: s } = ot.usePluginMetaData(), { getMessageFromError: l } = Qo(), { sortAlpha: u, objectsAreEqual: d } = aa(), c = re(""), f = re(!0), m = re(!1), h = re(""), v = re([]), g = re([]), y = re({}), b = re([]), { axiosInstance: _ } = qn((Z = n.config) == null ? void 0 : Z.axiosRequestConfig), A = D(() => y.value ? Object.entries(y.value).filter(([K]) => K !== Xe.CUSTOM_PLUGINS).reduce((K, [, U]) => {
25941
+ const n = e, o = t, i = Oh(), r = sa(), { i18n: { t: a } } = ot.useI18n(), { pluginMetaData: s } = ot.usePluginMetaData(), { getMessageFromError: l } = Qo(), { sortAlpha: u, objectsAreEqual: d } = aa(), c = re(""), f = re(!0), m = re(!1), h = re(""), v = re([]), g = re([]), y = re({}), b = re([]), { axiosInstance: _ } = Vn((Z = n.config) == null ? void 0 : Z.axiosRequestConfig), A = D(() => y.value ? Object.entries(y.value).filter(([K]) => K !== Xe.CUSTOM_PLUGINS).reduce((K, [, U]) => {
25938
25942
  for (const ae of U)
25939
25943
  K[ae.id] = ae;
25940
25944
  return K;
@@ -26014,10 +26018,10 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
26014
26018
  $n(async () => {
26015
26019
  B.value = await n.canCreateCustomPlugin(), ie.value = await n.canEditCustomPlugin(), W.value = await n.canDeleteCustomPlugin();
26016
26020
  });
26017
- const V = it("filter-input");
26021
+ const q = it("filter-input");
26018
26022
  return Pt(async () => {
26019
26023
  var K, U;
26020
- (U = (K = V.value) == null ? void 0 : K.input) == null || U.focus();
26024
+ (U = (K = q.value) == null ? void 0 : K.input) == null || U.focus();
26021
26025
  try {
26022
26026
  const { data: ae } = await _.get(x.value);
26023
26027
  if (n.config.app === "konnect") {
@@ -26159,7 +26163,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
26159
26163
  ]);
26160
26164
  };
26161
26165
  }
26162
- }), bB = /* @__PURE__ */ Re(V3, [["__scopeId", "data-v-7b1adaaa"]]), q3 = { class: "kong-ui-entity-plugin-config-card" }, z3 = { class: "name-cell-wrapper" }, U3 = { class: "info-name" }, H3 = { key: 0 }, G3 = { key: 0 }, Y3 = { key: 0 }, W3 = { key: 0 }, X3 = { key: 0 }, vs = "config", Z3 = /* @__PURE__ */ ve({
26166
+ }), bB = /* @__PURE__ */ Re(q3, [["__scopeId", "data-v-7b1adaaa"]]), V3 = { class: "kong-ui-entity-plugin-config-card" }, z3 = { class: "name-cell-wrapper" }, U3 = { class: "info-name" }, H3 = { key: 0 }, G3 = { key: 0 }, Y3 = { key: 0 }, W3 = { key: 0 }, X3 = { key: 0 }, vs = "config", Z3 = /* @__PURE__ */ ve({
26163
26167
  __name: "PluginConfigCard",
26164
26168
  props: {
26165
26169
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -26273,7 +26277,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
26273
26277
  }), a(_, M, j);
26274
26278
  }
26275
26279
  return _;
26276
- }), { getMessageFromError: f } = Qo(), { axiosInstance: m } = qn((b = o.config) == null ? void 0 : b.axiosRequestConfig), h = D(() => {
26280
+ }), { getMessageFromError: f } = Qo(), { axiosInstance: m } = Vn((b = o.config) == null ? void 0 : b.axiosRequestConfig), h = D(() => {
26277
26281
  var A, S;
26278
26282
  let _ = `${o.config.apiBaseUrl}${dt.form[o.config.app].pluginSchema}`;
26279
26283
  return o.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((A = o.config) == null ? void 0 : A.controlPlaneId) || "") : o.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (S = o.config) != null && S.workspace ? `/${o.config.workspace}` : "")), _ = _.replace(/{plugin}/gi, o.config.pluginType), _;
@@ -26292,7 +26296,7 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
26292
26296
  }
26293
26297
  }), (_, A) => {
26294
26298
  const S = Ee("KSkeleton"), k = Ee("KEmptyState"), R = Ee("KCopy");
26295
- return w(), ee("div", q3, [
26299
+ return w(), ee("div", V3, [
26296
26300
  g.value ? (w(), G(S, {
26297
26301
  key: 0,
26298
26302
  "data-testid": "plugin-config-card-loader",
@@ -26406,8 +26410,8 @@ const Hd = fu.options, TK = we.string().min(1).refine((e) => !e.includes("."), "
26406
26410
  type: p(At).LinkInternal
26407
26411
  },
26408
26412
  onNavigationClick: () => {
26409
- var W, V;
26410
- return _.$emit("navigation-click", (V = (W = p(s)("rowValue", M)) == null ? void 0 : W[0]) == null ? void 0 : V.id, "partial");
26413
+ var W, q;
26414
+ return _.$emit("navigation-click", (q = (W = p(s)("rowValue", M)) == null ? void 0 : W[0]) == null ? void 0 : q.id, "partial");
26411
26415
  }
26412
26416
  }, null, 8, ["item", "onNavigationClick"])) : (w(), G(R, {
26413
26417
  key: 2,