@sfxcode/formkit-primevue 1.0.5 → 1.0.6

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,5 +1,5 @@
1
- import { defineComponent as P, getCurrentInstance as zt, watch as me, watchEffect as le, reactive as yn, h as Ce, ref as Le, inject as Se, computed as M, provide as vn, toRef as hn, onBeforeUnmount as _n, isRef as He, isReactive as kt, toRaw as gn, markRaw as $n, createTextVNode as wn, resolveComponent as T, openBlock as A, createElementBlock as x, createVNode as D, unref as a, toDisplayString as be, createCommentVNode as se, normalizeStyle as fe, normalizeClass as q, createElementVNode as kn } from "vue";
2
- const Cn = [
1
+ import { defineComponent as P, getCurrentInstance as zt, watch as de, watchEffect as ie, reactive as yn, h as we, ref as Ie, inject as ke, computed as nt, provide as hn, toRef as vn, onBeforeUnmount as _n, isRef as Ke, isReactive as wt, toRaw as gn, markRaw as $n, createTextVNode as xn, resolveComponent as j, openBlock as O, createElementBlock as A, createVNode as F, unref as l, toDisplayString as me, createCommentVNode as le, normalizeStyle as ue, normalizeClass as U, createElementVNode as wn } from "vue";
2
+ const kn = [
3
3
  "__key",
4
4
  "__init",
5
5
  "__shim",
@@ -7,7 +7,7 @@ const Cn = [
7
7
  "__index",
8
8
  "__prevKey"
9
9
  ];
10
- function Ze() {
10
+ function He() {
11
11
  return Math.random().toString(36).substring(2, 15);
12
12
  }
13
13
  function Sn(e, i) {
@@ -17,17 +17,17 @@ function Sn(e, i) {
17
17
  function E(e, i) {
18
18
  return Object.prototype.hasOwnProperty.call(e, i);
19
19
  }
20
- function Oe(e, i, t = !0, n = ["__key"]) {
20
+ function Ve(e, i, t = !0, n = ["__key"]) {
21
21
  if (e === i)
22
22
  return !0;
23
23
  if (typeof i == "object" && typeof e == "object") {
24
24
  if (e instanceof Map || e instanceof Set || e instanceof Date || e === null || i === null || Object.keys(e).length !== Object.keys(i).length)
25
25
  return !1;
26
- for (const l of n)
27
- if ((l in e || l in i) && e[l] !== i[l])
26
+ for (const r of n)
27
+ if ((r in e || r in i) && e[r] !== i[r])
28
28
  return !1;
29
- for (const l in e)
30
- if (!(l in i) || e[l] !== i[l] && !t || t && !Oe(e[l], i[l], t, n))
29
+ for (const r in e)
30
+ if (!(r in i) || e[r] !== i[r] && !t || t && !Ve(e[r], i[r], t, n))
31
31
  return !1;
32
32
  return !0;
33
33
  }
@@ -36,10 +36,10 @@ function Oe(e, i, t = !0, n = ["__key"]) {
36
36
  function it(e) {
37
37
  return Object.prototype.toString.call(e) === "[object Object]";
38
38
  }
39
- function lt(e) {
39
+ function rt(e) {
40
40
  return it(e) || Array.isArray(e);
41
41
  }
42
- function ye(e) {
42
+ function be(e) {
43
43
  if (it(e) === !1 || e.__FKNode__ || e.__POJO__ === !1)
44
44
  return !1;
45
45
  const i = e.constructor;
@@ -48,28 +48,28 @@ function ye(e) {
48
48
  const t = i.prototype;
49
49
  return !(it(t) === !1 || t.hasOwnProperty("isPrototypeOf") === !1);
50
50
  }
51
- function Ye(e, i, t = !1, n = !1) {
51
+ function Ze(e, i, t = !1, n = !1) {
52
52
  if (i === null)
53
53
  return null;
54
- const l = {};
54
+ const r = {};
55
55
  if (typeof i == "string")
56
56
  return i;
57
- for (const s in e)
58
- if (E(i, s) && (i[s] !== void 0 || !n)) {
59
- if (t && Array.isArray(e[s]) && Array.isArray(i[s])) {
60
- l[s] = e[s].concat(i[s]);
57
+ for (const a in e)
58
+ if (E(i, a) && (i[a] !== void 0 || !n)) {
59
+ if (t && Array.isArray(e[a]) && Array.isArray(i[a])) {
60
+ r[a] = e[a].concat(i[a]);
61
61
  continue;
62
62
  }
63
- if (i[s] === void 0)
63
+ if (i[a] === void 0)
64
64
  continue;
65
- ye(e[s]) && ye(i[s]) ? l[s] = Ye(e[s], i[s], t, n) : l[s] = i[s];
65
+ be(e[a]) && be(i[a]) ? r[a] = Ze(e[a], i[a], t, n) : r[a] = i[a];
66
66
  } else
67
- l[s] = e[s];
68
- for (const s in i)
69
- !E(l, s) && i[s] !== void 0 && (l[s] = i[s]);
70
- return l;
67
+ r[a] = e[a];
68
+ for (const a in i)
69
+ !E(r, a) && i[a] !== void 0 && (r[a] = i[a]);
70
+ return r;
71
71
  }
72
- function Vn(e) {
72
+ function Cn(e) {
73
73
  if (e[0] !== '"' && e[0] !== "'" || e[0] !== e[e.length - 1])
74
74
  return !1;
75
75
  const i = e[0];
@@ -83,51 +83,51 @@ function In(e) {
83
83
  return "";
84
84
  let i = "", t = "";
85
85
  for (let n = 0; n < e.length; n++) {
86
- const l = e.charAt(n);
87
- (l !== "\\" || t === "\\") && (i += l), t = l;
86
+ const r = e.charAt(n);
87
+ (r !== "\\" || t === "\\") && (i += r), t = r;
88
88
  }
89
89
  return i;
90
90
  }
91
- function ce(...e) {
91
+ function fe(...e) {
92
92
  return e.reduce((i, t) => {
93
- const { value: n, name: l, modelValue: s, config: r, plugins: o, ...u } = t;
94
- return Object.assign(i, u);
93
+ const { value: n, name: r, modelValue: a, config: s, plugins: o, ...c } = t;
94
+ return Object.assign(i, c);
95
95
  }, {});
96
96
  }
97
- function Ln(e) {
97
+ function Vn(e) {
98
98
  const i = [];
99
- let t = "", n = 0, l = "", s = "";
100
- for (let r = 0; r < e.length; r++) {
101
- const o = e.charAt(r);
102
- o === l && s !== "\\" ? l = "" : (o === "'" || o === '"') && !l && s !== "\\" ? l = o : o === "(" && !l ? n++ : o === ")" && !l && n--, o === "," && !l && n === 0 ? (i.push(t), t = "") : (o !== " " || l) && (t += o), s = o;
99
+ let t = "", n = 0, r = "", a = "";
100
+ for (let s = 0; s < e.length; s++) {
101
+ const o = e.charAt(s);
102
+ o === r && a !== "\\" ? r = "" : (o === "'" || o === '"') && !r && a !== "\\" ? r = o : o === "(" && !r ? n++ : o === ")" && !r && n--, o === "," && !r && n === 0 ? (i.push(t), t = "") : (o !== " " || r) && (t += o), a = o;
103
103
  }
104
104
  return t && i.push(t), i;
105
105
  }
106
- function Ct(e, i) {
107
- const t = {}, n = i.filter((s) => s instanceof RegExp), l = new Set(i);
108
- for (const s in e)
109
- !l.has(s) && !n.some((r) => r.test(s)) && (t[s] = e[s]);
106
+ function kt(e, i) {
107
+ const t = {}, n = i.filter((a) => a instanceof RegExp), r = new Set(i);
108
+ for (const a in e)
109
+ !r.has(a) && !n.some((s) => s.test(a)) && (t[a] = e[a]);
110
110
  return t;
111
111
  }
112
112
  function St(e, i) {
113
- const t = {}, n = i.filter((l) => l instanceof RegExp);
114
- return i.forEach((l) => {
115
- l instanceof RegExp || (t[l] = e[l]);
116
- }), Object.keys(e).forEach((l) => {
117
- n.some((s) => s.test(l)) && (t[l] = e[l]);
113
+ const t = {}, n = i.filter((r) => r instanceof RegExp);
114
+ return i.forEach((r) => {
115
+ r instanceof RegExp || (t[r] = e[r]);
116
+ }), Object.keys(e).forEach((r) => {
117
+ n.some((a) => a.test(r)) && (t[r] = e[r]);
118
118
  }), t;
119
119
  }
120
- function Ee(e) {
120
+ function Pe(e) {
121
121
  return e.replace(/-([a-z0-9])/gi, (i, t) => t.toUpperCase());
122
122
  }
123
123
  function Wt(e) {
124
124
  return e.replace(/([a-z0-9])([A-Z])/g, (i, t, n) => t + "-" + n.toLowerCase()).replace(" ", "-").toLowerCase();
125
125
  }
126
- function Ve(e, i = Cn) {
126
+ function Se(e, i = kn) {
127
127
  if (e === null || e instanceof RegExp || e instanceof Date || e instanceof Map || e instanceof Set || typeof File == "function" && e instanceof File)
128
128
  return e;
129
129
  let t;
130
- Array.isArray(e) ? t = e.map((n) => typeof n == "object" ? Ve(n, i) : n) : t = Object.keys(e).reduce((n, l) => (n[l] = typeof e[l] == "object" ? Ve(e[l], i) : e[l], n), {});
130
+ Array.isArray(e) ? t = e.map((n) => typeof n == "object" ? Se(n, i) : n) : t = Object.keys(e).reduce((n, r) => (n[r] = typeof e[r] == "object" ? Se(e[r], i) : e[r], n), {});
131
131
  for (const n of i)
132
132
  n in e && Object.defineProperty(t, n, {
133
133
  enumerable: !1,
@@ -135,27 +135,27 @@ function Ve(e, i = Cn) {
135
135
  });
136
136
  return t;
137
137
  }
138
- function ue(e) {
139
- return typeof e == "object" ? Ve(e) : e;
138
+ function oe(e) {
139
+ return typeof e == "object" ? Se(e) : e;
140
140
  }
141
- function On(e, i) {
141
+ function Ln(e, i) {
142
142
  if (!e || typeof e != "object")
143
143
  return null;
144
144
  const t = i.split(".");
145
145
  let n = e;
146
- for (const l in t) {
147
- const s = t[l];
148
- if (E(n, s) && (n = n[s]), +l === t.length - 1)
146
+ for (const r in t) {
147
+ const a = t[r];
148
+ if (E(n, a) && (n = n[a]), +r === t.length - 1)
149
149
  return n;
150
150
  if (!n || typeof n != "object")
151
151
  return null;
152
152
  }
153
153
  return null;
154
154
  }
155
- function Q(e) {
155
+ function J(e) {
156
156
  return e !== void 0 && e !== "false" && e !== !1 ? !0 : void 0;
157
157
  }
158
- function Ie(e) {
158
+ function Ce(e) {
159
159
  return Object.isFrozen(e) ? e : Object.defineProperty(e, "__init", {
160
160
  enumerable: !1,
161
161
  value: !0
@@ -167,60 +167,60 @@ function ct(e) {
167
167
  function pt() {
168
168
  const e = [];
169
169
  let i = 0;
170
- const t = (l) => e.push(l), n = (l) => {
171
- const s = e[i];
172
- return typeof s == "function" ? s(l, (r) => (i++, n(r === void 0 ? l : r))) : (i = 0, l);
170
+ const t = (r) => e.push(r), n = (r) => {
171
+ const a = e[i];
172
+ return typeof a == "function" ? a(r, (s) => (i++, n(s === void 0 ? r : s))) : (i = 0, r);
173
173
  };
174
- return t.dispatch = n, t.unshift = (l) => e.unshift(l), t.remove = (l) => {
175
- const s = e.indexOf(l);
176
- s > -1 && e.splice(s, 1);
174
+ return t.dispatch = n, t.unshift = (r) => e.unshift(r), t.remove = (r) => {
175
+ const a = e.indexOf(r);
176
+ a > -1 && e.splice(a, 1);
177
177
  }, t;
178
178
  }
179
179
  function Ut() {
180
180
  const e = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
181
181
  let t;
182
- const n = (l, s) => {
182
+ const n = (r, a) => {
183
183
  if (t) {
184
- t.set(s.name, [l, s]);
184
+ t.set(a.name, [r, a]);
185
185
  return;
186
186
  }
187
- e.has(s.name) && e.get(s.name).forEach((r) => {
188
- (s.origin === l || r.modifiers.includes("deep")) && r.listener(s);
189
- }), s.bubble && l.bubble(s);
187
+ e.has(a.name) && e.get(a.name).forEach((s) => {
188
+ (a.origin === r || s.modifiers.includes("deep")) && s.listener(a);
189
+ }), a.bubble && r.bubble(a);
190
190
  };
191
- return n.on = (l, s) => {
192
- const [r, ...o] = l.split("."), u = s.receipt || Ze(), b = {
191
+ return n.on = (r, a) => {
192
+ const [s, ...o] = r.split("."), c = a.receipt || He(), y = {
193
193
  modifiers: o,
194
- event: r,
195
- listener: s,
196
- receipt: u
194
+ event: s,
195
+ listener: a,
196
+ receipt: c
197
197
  };
198
- return e.has(r) ? e.get(r).push(b) : e.set(r, [b]), i.has(u) ? i.get(u).push(r) : i.set(u, [r]), u;
199
- }, n.off = (l) => {
200
- var s;
201
- i.has(l) && ((s = i.get(l)) === null || s === void 0 || s.forEach((r) => {
202
- const o = e.get(r);
203
- Array.isArray(o) && e.set(r, o.filter((u) => u.receipt !== l));
204
- }), i.delete(l));
205
- }, n.pause = (l) => {
206
- t || (t = /* @__PURE__ */ new Map()), l && l.walk((s) => s._e.pause());
207
- }, n.play = (l) => {
198
+ return e.has(s) ? e.get(s).push(y) : e.set(s, [y]), i.has(c) ? i.get(c).push(s) : i.set(c, [s]), c;
199
+ }, n.off = (r) => {
200
+ var a;
201
+ i.has(r) && ((a = i.get(r)) === null || a === void 0 || a.forEach((s) => {
202
+ const o = e.get(s);
203
+ Array.isArray(o) && e.set(s, o.filter((c) => c.receipt !== r));
204
+ }), i.delete(r));
205
+ }, n.pause = (r) => {
206
+ t || (t = /* @__PURE__ */ new Map()), r && r.walk((a) => a._e.pause());
207
+ }, n.play = (r) => {
208
208
  if (!t)
209
209
  return;
210
- const s = t;
211
- t = void 0, s.forEach(([r, o]) => n(r, o)), l && l.walk((r) => r._e.play());
210
+ const a = t;
211
+ t = void 0, a.forEach(([s, o]) => n(s, o)), r && r.walk((s) => s._e.play());
212
212
  }, n;
213
213
  }
214
- function An(e, i, t, n, l = !0) {
214
+ function On(e, i, t, n, r = !0) {
215
215
  return i._e(e, {
216
216
  payload: n,
217
217
  name: t,
218
- bubble: l,
218
+ bubble: r,
219
219
  origin: e
220
220
  }), e;
221
221
  }
222
- function xn(e, i, t) {
223
- return Je(e.parent) && e.parent._e(e.parent, t), e;
222
+ function An(e, i, t) {
223
+ return Ye(e.parent) && e.parent._e(e.parent, t), e;
224
224
  }
225
225
  function Pn(e, i, t, n) {
226
226
  return i._e.on(t, n);
@@ -236,16 +236,16 @@ mt((e, i) => {
236
236
  const t = i(e);
237
237
  return console && typeof console.warn == "function" && console.warn(t.message), t;
238
238
  });
239
- function Ae(e, i = {}) {
239
+ function Le(e, i = {}) {
240
240
  mt.dispatch({ code: e, data: i });
241
241
  }
242
- function N(e, i = {}) {
242
+ function q(e, i = {}) {
243
243
  throw Error(dt.dispatch({ code: e, data: i }).message);
244
244
  }
245
- function ae(e, i) {
245
+ function re(e, i) {
246
246
  const t = {
247
247
  blocking: !1,
248
- key: Ze(),
248
+ key: He(),
249
249
  meta: {},
250
250
  type: "state",
251
251
  visible: !0,
@@ -253,7 +253,7 @@ function ae(e, i) {
253
253
  };
254
254
  return i && t.value && t.meta.localize !== !1 && (t.value = i.t(t), t.meta.locale = i.config.locale), t;
255
255
  }
256
- const Vt = {
256
+ const Ct = {
257
257
  apply: Dn,
258
258
  set: Rn,
259
259
  remove: qt,
@@ -264,16 +264,16 @@ const Vt = {
264
264
  };
265
265
  function Mn(e = !1) {
266
266
  const i = {};
267
- let t, n = e, l = [];
268
- const s = /* @__PURE__ */ new Map();
269
- let r;
267
+ let t, n = e, r = [];
268
+ const a = /* @__PURE__ */ new Map();
269
+ let s;
270
270
  const o = new Proxy(i, {
271
- get(...u) {
272
- const [b, h] = u;
273
- return h === "buffer" ? n : h === "_b" ? l : h === "_m" ? s : h === "_r" ? r : E(Vt, h) ? Vt[h].bind(null, i, o, t) : Reflect.get(...u);
271
+ get(...c) {
272
+ const [y, w] = c;
273
+ return w === "buffer" ? n : w === "_b" ? r : w === "_m" ? a : w === "_r" ? s : E(Ct, w) ? Ct[w].bind(null, i, o, t) : Reflect.get(...c);
274
274
  },
275
- set(u, b, h) {
276
- return b === "_n" ? (t = h, r === "__n" && Nt(t, o), !0) : b === "_b" ? (l = h, !0) : b === "buffer" ? (n = h, !0) : b === "_r" ? (r = h, !0) : (N(101, t), !1);
275
+ set(c, y, w) {
276
+ return y === "_n" ? (t = w, s === "__n" && Nt(t, o), !0) : y === "_b" ? (r = w, !0) : y === "buffer" ? (n = w, !0) : y === "_r" ? (s = w, !0) : (q(101, t), !1);
277
277
  }
278
278
  });
279
279
  return o;
@@ -283,11 +283,11 @@ function Rn(e, i, t, n) {
283
283
  return i._b.push([[n]]), i;
284
284
  if (e[n.key] !== n) {
285
285
  if (typeof n.value == "string" && n.meta.localize !== !1) {
286
- const s = n.value;
287
- n.value = t.t(n), n.value !== s && (n.meta.locale = t.props.locale);
286
+ const a = n.value;
287
+ n.value = t.t(n), n.value !== a && (n.meta.locale = t.props.locale);
288
288
  }
289
- const l = `message-${E(e, n.key) ? "updated" : "added"}`;
290
- e[n.key] = Object.freeze(t.hook.message.dispatch(n)), t.emit(l, n);
289
+ const r = `message-${E(e, n.key) ? "updated" : "added"}`;
290
+ e[n.key] = Object.freeze(t.hook.message.dispatch(n)), t.emit(r, n);
291
291
  }
292
292
  return i;
293
293
  }
@@ -299,67 +299,67 @@ function jn(e, i) {
299
299
  }
300
300
  function qt(e, i, t, n) {
301
301
  if (E(e, n)) {
302
- const l = e[n];
303
- delete e[n], t.emit("message-removed", l);
302
+ const r = e[n];
303
+ delete e[n], t.emit("message-removed", r);
304
304
  }
305
- return i.buffer === !0 && (i._b = i._b.filter((l) => (l[0] = l[0].filter((s) => s.key !== n), l[1] || l[0].length))), i;
305
+ return i.buffer === !0 && (i._b = i._b.filter((r) => (r[0] = r[0].filter((a) => a.key !== n), r[1] || r[0].length))), i;
306
306
  }
307
- function Tn(e, i, t, n, l) {
308
- for (const s in e) {
309
- const r = e[s];
310
- (!l || r.type === l) && !n(r) && qt(e, i, t, s);
307
+ function Tn(e, i, t, n, r) {
308
+ for (const a in e) {
309
+ const s = e[a];
310
+ (!r || s.type === r) && !n(s) && qt(e, i, t, a);
311
311
  }
312
312
  }
313
- function Fn(e, i, t, n, l) {
314
- for (const s in e) {
315
- const r = e[s];
316
- l = n(l, r);
313
+ function Fn(e, i, t, n, r) {
314
+ for (const a in e) {
315
+ const s = e[a];
316
+ r = n(r, s);
317
317
  }
318
- return l;
318
+ return r;
319
319
  }
320
- function Dn(e, i, t, n, l) {
320
+ function Dn(e, i, t, n, r) {
321
321
  if (Array.isArray(n)) {
322
322
  if (i.buffer) {
323
- i._b.push([n, l]);
323
+ i._b.push([n, r]);
324
324
  return;
325
325
  }
326
- const s = new Set(n.map((r) => (i.set(r), r.key)));
327
- typeof l == "string" ? i.filter((r) => r.type !== l || s.has(r.key)) : typeof l == "function" && i.filter((r) => !l(r) || s.has(r.key));
326
+ const a = new Set(n.map((s) => (i.set(s), s.key)));
327
+ typeof r == "string" ? i.filter((s) => s.type !== r || a.has(s.key)) : typeof r == "function" && i.filter((s) => !r(s) || a.has(s.key));
328
328
  } else
329
- for (const s in n) {
330
- const r = t.at(s);
331
- r ? r.store.apply(n[s], l) : zn(t, i, s, n[s], l);
329
+ for (const a in n) {
330
+ const s = t.at(a);
331
+ s ? s.store.apply(n[a], r) : zn(t, i, a, n[a], r);
332
332
  }
333
333
  }
334
334
  function Bn(e, ...i) {
335
- const t = `${e.name}-set`, n = (l) => ae({
336
- key: ct(l),
335
+ const t = `${e.name}-set`, n = (r) => re({
336
+ key: ct(r),
337
337
  type: "error",
338
- value: l,
338
+ value: r,
339
339
  meta: { source: t, autoClear: !0 }
340
340
  });
341
- return i.filter((l) => !!l).map((l) => {
342
- if (typeof l == "string" && (l = [l]), Array.isArray(l))
343
- return l.map((s) => n(s));
341
+ return i.filter((r) => !!r).map((r) => {
342
+ if (typeof r == "string" && (r = [r]), Array.isArray(r))
343
+ return r.map((a) => n(a));
344
344
  {
345
- const s = {};
346
- for (const r in l)
347
- Array.isArray(l[r]) ? s[r] = l[r].map((o) => n(o)) : s[r] = [n(l[r])];
348
- return s;
345
+ const a = {};
346
+ for (const s in r)
347
+ Array.isArray(r[s]) ? a[s] = r[s].map((o) => n(o)) : a[s] = [n(r[s])];
348
+ return a;
349
349
  }
350
350
  });
351
351
  }
352
- function zn(e, i, t, n, l) {
353
- var s;
354
- const r = i._m;
355
- r.has(t) || r.set(t, []), i._r || (i._r = Nt(e, i)), (s = r.get(t)) === null || s === void 0 || s.push([n, l]);
352
+ function zn(e, i, t, n, r) {
353
+ var a;
354
+ const s = i._m;
355
+ s.has(t) || s.set(t, []), i._r || (i._r = Nt(e, i)), (a = s.get(t)) === null || a === void 0 || a.push([n, r]);
356
356
  }
357
357
  function Nt(e, i) {
358
358
  return e.on("child.deep", ({ payload: t }) => {
359
- i._m.forEach((n, l) => {
360
- e.at(l) === t && (n.forEach(([s, r]) => {
361
- t.store.apply(s, r);
362
- }), i._m.delete(l));
359
+ i._m.forEach((n, r) => {
360
+ e.at(r) === t && (n.forEach(([a, s]) => {
361
+ t.store.apply(a, s);
362
+ }), i._m.delete(r));
363
363
  }), i._m.size === 0 && i._r && (e.off(i._r), i._r = void 0);
364
364
  });
365
365
  }
@@ -374,19 +374,19 @@ function Un() {
374
374
  init(t) {
375
375
  i = t, t.on("message-added.deep", It(e, 1)), t.on("message-removed.deep", It(e, -1));
376
376
  },
377
- merge: (t) => Lt(i, e, t),
377
+ merge: (t) => Vt(i, e, t),
378
378
  settled(t) {
379
379
  return E(e, t) ? e[t].promise : Promise.resolve();
380
380
  },
381
- unmerge: (t) => Lt(i, e, t, !0),
381
+ unmerge: (t) => Vt(i, e, t, !0),
382
382
  value(t) {
383
383
  return E(e, t) ? e[t].count : 0;
384
384
  }
385
385
  };
386
386
  }
387
- function qn(e, i, t, n, l = 0) {
387
+ function qn(e, i, t, n, r = 0) {
388
388
  if (n = Nn(n || t), !E(i, t)) {
389
- const s = {
389
+ const a = {
390
390
  condition: n,
391
391
  count: 0,
392
392
  name: t,
@@ -396,41 +396,41 @@ function qn(e, i, t, n, l = 0) {
396
396
  }
397
397
  // eslint-disable-line @typescript-eslint/no-empty-function
398
398
  };
399
- i[t] = s, l = e.store.reduce((r, o) => r + s.condition(o) * 1, l), e.each((r) => {
400
- r.ledger.count(s.name, s.condition), l += r.ledger.value(s.name);
399
+ i[t] = a, r = e.store.reduce((s, o) => s + a.condition(o) * 1, r), e.each((s) => {
400
+ s.ledger.count(a.name, a.condition), r += s.ledger.value(a.name);
401
401
  });
402
402
  }
403
- return Kt(i[t], l).promise;
403
+ return Kt(i[t], r).promise;
404
404
  }
405
405
  function Nn(e) {
406
406
  return typeof e == "function" ? e : (i) => i.type === e;
407
407
  }
408
408
  function Kt(e, i) {
409
409
  const t = e.count, n = e.count + i;
410
- return e.count = n, t === 0 && n !== 0 ? (e.node.emit(`unsettled:${e.name}`, e.count, !1), e.promise = new Promise((l) => e.resolve = l)) : t !== 0 && n === 0 && (e.node.emit(`settled:${e.name}`, e.count, !1), e.resolve()), e.node.emit(`count:${e.name}`, e.count, !1), e;
410
+ return e.count = n, t === 0 && n !== 0 ? (e.node.emit(`unsettled:${e.name}`, e.count, !1), e.promise = new Promise((r) => e.resolve = r)) : t !== 0 && n === 0 && (e.node.emit(`settled:${e.name}`, e.count, !1), e.resolve()), e.node.emit(`count:${e.name}`, e.count, !1), e;
411
411
  }
412
412
  function It(e, i) {
413
413
  return (t) => {
414
414
  for (const n in e) {
415
- const l = e[n];
416
- l.condition(t.payload) && Kt(l, i);
415
+ const r = e[n];
416
+ r.condition(t.payload) && Kt(r, i);
417
417
  }
418
418
  };
419
419
  }
420
- function Lt(e, i, t, n = !1) {
421
- for (const l in i) {
422
- const s = i[l].condition;
423
- n || t.ledger.count(l, s);
424
- const r = t.ledger.value(l) * (n ? -1 : 1);
420
+ function Vt(e, i, t, n = !1) {
421
+ for (const r in i) {
422
+ const a = i[r].condition;
423
+ n || t.ledger.count(r, a);
424
+ const s = t.ledger.value(r) * (n ? -1 : 1);
425
425
  if (e)
426
426
  do
427
- e.ledger.count(l, s, r), e = e.parent;
427
+ e.ledger.count(r, a, s), e = e.parent;
428
428
  while (e);
429
429
  }
430
430
  }
431
- const bt = /* @__PURE__ */ new Map(), Me = /* @__PURE__ */ new Map(), yt = Ut(), Kn = [];
431
+ const bt = /* @__PURE__ */ new Map(), Ee = /* @__PURE__ */ new Map(), yt = Ut(), Kn = [];
432
432
  function Hn(e) {
433
- e.props.id && (bt.set(e.props.id, e), Me.set(e, e.props.id), yt(e, {
433
+ e.props.id && (bt.set(e.props.id, e), Ee.set(e, e.props.id), yt(e, {
434
434
  payload: e,
435
435
  name: e.props.id,
436
436
  bubble: !1,
@@ -438,9 +438,9 @@ function Hn(e) {
438
438
  }));
439
439
  }
440
440
  function Zn(e) {
441
- if (Me.has(e)) {
442
- const i = Me.get(e);
443
- Me.delete(e), bt.delete(i), yt(e, {
441
+ if (Ee.has(e)) {
442
+ const i = Ee.get(e);
443
+ Ee.delete(e), bt.delete(i), yt(e, {
444
444
  payload: null,
445
445
  name: i,
446
446
  bubble: !1,
@@ -454,7 +454,7 @@ function Ht(e) {
454
454
  function Yn(e, i) {
455
455
  Kn.push(yt.on(e, i));
456
456
  }
457
- function Ot(e, i, t) {
457
+ function Lt(e, i, t) {
458
458
  let n = !0;
459
459
  return i in e.config._t ? n = !1 : e.emit(`config:${i}`, t, !1), i in e.props || (e.emit("prop", { prop: i, value: t }), e.emit(`prop:${i}`, t)), n;
460
460
  }
@@ -465,13 +465,13 @@ function Jn(e) {
465
465
  i.dispatchEvent(t);
466
466
  return;
467
467
  }
468
- Ae(151, e);
468
+ Le(151, e);
469
469
  }
470
470
  function Qn(e) {
471
471
  const i = (t) => {
472
472
  for (const n in t.store) {
473
- const l = t.store[n];
474
- l.type === "error" || l.type === "ui" && n === "incomplete" ? t.store.remove(n) : l.type === "state" && t.store.set({ ...l, value: !1 });
473
+ const r = t.store[n];
474
+ r.type === "error" || r.type === "ui" && n === "incomplete" ? t.store.remove(n) : r.type === "state" && t.store.set({ ...r, value: !1 });
475
475
  }
476
476
  };
477
477
  i(e), e.walk(i);
@@ -479,68 +479,68 @@ function Qn(e) {
479
479
  function Gn(e, i) {
480
480
  const t = typeof e == "string" ? Ht(e) : e;
481
481
  if (t) {
482
- const n = (s) => ue(s.props.initial) || (s.type === "group" ? {} : s.type === "list" ? [] : void 0);
483
- t._e.pause(t), t.input(ue(i) || n(t), !1), t.walk((s) => s.input(n(s), !1));
484
- const l = n(t);
485
- return t.input(typeof l == "object" ? ue(i) || Ie(l) : l, !1), t._e.play(t), Qn(t), t.emit("reset", t), t;
482
+ const n = (a) => oe(a.props.initial) || (a.type === "group" ? {} : a.type === "list" ? [] : void 0);
483
+ t._e.pause(t), t.input(oe(i) || n(t), !1), t.walk((a) => a.input(n(a), !1));
484
+ const r = n(t);
485
+ return t.input(typeof r == "object" ? oe(i) || Ce(r) : r, !1), t._e.play(t), Qn(t), t.emit("reset", t), t;
486
486
  }
487
- Ae(152, e);
487
+ Le(152, e);
488
488
  }
489
489
  const Xn = {
490
490
  delimiter: ".",
491
491
  delay: 0,
492
492
  locale: "en",
493
493
  rootClasses: (e) => ({ [`formkit-${Wt(e)}`]: !0 })
494
- }, Zt = Symbol("index"), at = Symbol("removed"), st = Symbol("moved"), Yt = Symbol("inserted");
494
+ }, Zt = Symbol("index"), lt = Symbol("removed"), at = Symbol("moved"), Yt = Symbol("inserted");
495
495
  function ei(e) {
496
496
  return e.type === "list" && Array.isArray(e._value);
497
497
  }
498
- function Je(e) {
498
+ function Ye(e) {
499
499
  return e && typeof e == "object" && e.__FKNode__ === !0;
500
500
  }
501
- const Re = (e, i, t) => {
502
- N(102, [e, t]);
501
+ const Me = (e, i, t) => {
502
+ q(102, [e, t]);
503
503
  }, ti = {
504
- _c: L(wi, Re, !1),
505
- add: L(mi),
506
- addProps: L(di),
507
- address: L(Ci, Re, !1),
508
- at: L(Si),
509
- bubble: L(xn),
510
- clearErrors: L(Ei),
511
- calm: L(fi),
512
- config: L(!1),
513
- define: L(pi),
514
- disturb: L(ui),
515
- destroy: L(ci),
516
- hydrate: L(oi),
517
- index: L($i, gi, !1),
518
- input: L(Qt),
519
- each: L(vi),
520
- emit: L(An),
521
- find: L(Ii),
522
- on: L(Pn),
523
- off: L(En),
524
- parent: L(!1, bi),
525
- plugins: L(!1),
526
- remove: L(yi),
527
- root: L(Oi, Re, !1),
528
- reset: L(Pi),
529
- resetConfig: L(_i),
530
- setErrors: L(en),
531
- submit: L(xi),
532
- t: L(Ai),
533
- use: L(vt),
534
- name: L(ki, !1, !1),
535
- walk: L(hi)
504
+ _c: V(xi, Me, !1),
505
+ add: V(mi),
506
+ addProps: V(di),
507
+ address: V(ki, Me, !1),
508
+ at: V(Si),
509
+ bubble: V(An),
510
+ clearErrors: V(Ei),
511
+ calm: V(fi),
512
+ config: V(!1),
513
+ define: V(pi),
514
+ disturb: V(ui),
515
+ destroy: V(ci),
516
+ hydrate: V(oi),
517
+ index: V($i, gi, !1),
518
+ input: V(Qt),
519
+ each: V(hi),
520
+ emit: V(On),
521
+ find: V(Ii),
522
+ on: V(Pn),
523
+ off: V(En),
524
+ parent: V(!1, bi),
525
+ plugins: V(!1),
526
+ remove: V(yi),
527
+ root: V(Li, Me, !1),
528
+ reset: V(Pi),
529
+ resetConfig: V(_i),
530
+ setErrors: V(en),
531
+ submit: V(Ai),
532
+ t: V(Oi),
533
+ use: V(ht),
534
+ name: V(wi, !1, !1),
535
+ walk: V(vi)
536
536
  };
537
537
  function ni() {
538
538
  return new Map(Object.entries(ti));
539
539
  }
540
- function L(e, i, t = !0) {
540
+ function V(e, i, t = !0) {
541
541
  return {
542
- get: e ? (n, l) => t ? (...s) => e(n, l, ...s) : e(n, l) : !1,
543
- set: i !== void 0 ? i : Re.bind(null)
542
+ get: e ? (n, r) => t ? (...a) => e(n, r, ...a) : e(n, r) : !1,
543
+ set: i !== void 0 ? i : Me.bind(null)
544
544
  };
545
545
  }
546
546
  function ii() {
@@ -551,41 +551,41 @@ function ii() {
551
551
  }
552
552
  });
553
553
  }
554
- let li = 0, ai = 0;
555
- function si(e) {
554
+ let ri = 0, li = 0;
555
+ function ai(e) {
556
556
  var i, t;
557
- return ((i = e.parent) === null || i === void 0 ? void 0 : i.type) === "list" ? Zt : e.name || `${((t = e.props) === null || t === void 0 ? void 0 : t.type) || "input"}_${++li}`;
557
+ return ((i = e.parent) === null || i === void 0 ? void 0 : i.type) === "list" ? Zt : e.name || `${((t = e.props) === null || t === void 0 ? void 0 : t.type) || "input"}_${++ri}`;
558
558
  }
559
559
  function Jt(e) {
560
- return e.type === "group" ? Ie(e.value && typeof e.value == "object" && !Array.isArray(e.value) ? e.value : {}) : e.type === "list" ? Ie(Array.isArray(e.value) ? e.value : []) : e.value;
560
+ return e.type === "group" ? Ce(e.value && typeof e.value == "object" && !Array.isArray(e.value) ? e.value : {}) : e.type === "list" ? Ce(Array.isArray(e.value) ? e.value : []) : e.value;
561
561
  }
562
562
  function Qt(e, i, t, n = !0) {
563
- return i._value = ri(e, e.hook.input.dispatch(t)), e.emit("input", i._value), i.isSettled && e.disturb(), n ? (i._tmo && clearTimeout(i._tmo), i._tmo = setTimeout(Be, e.props.delay, e, i)) : Be(e, i), i.settled;
563
+ return i._value = si(e, e.hook.input.dispatch(t)), e.emit("input", i._value), i.isSettled && e.disturb(), n ? (i._tmo && clearTimeout(i._tmo), i._tmo = setTimeout(De, e.props.delay, e, i)) : De(e, i), i.settled;
564
564
  }
565
- function ri(e, i) {
565
+ function si(e, i) {
566
566
  switch (e.type) {
567
567
  case "input":
568
568
  break;
569
569
  case "group":
570
- (!i || typeof i != "object") && N(107, [e, i]);
570
+ (!i || typeof i != "object") && q(107, [e, i]);
571
571
  break;
572
572
  case "list":
573
- Array.isArray(i) || N(108, [e, i]);
573
+ Array.isArray(i) || q(108, [e, i]);
574
574
  break;
575
575
  }
576
576
  return i;
577
577
  }
578
- function Be(e, i, t = !0, n = !0) {
578
+ function De(e, i, t = !0, n = !0) {
579
579
  i._value = i.value = e.hook.commit.dispatch(i._value), e.type !== "input" && n && e.hydrate(), e.emit("commit", i.value), t && e.calm();
580
580
  }
581
581
  function Gt(e, { name: i, value: t, from: n }) {
582
582
  if (!Object.isFrozen(e._value)) {
583
583
  if (ei(e)) {
584
- const l = t === at ? [] : t === st && typeof n == "number" ? e._value.splice(n, 1) : [t];
585
- e._value.splice(i, t === st || n === Yt ? 0 : 1, ...l);
584
+ const r = t === lt ? [] : t === at && typeof n == "number" ? e._value.splice(n, 1) : [t];
585
+ e._value.splice(i, t === at || n === Yt ? 0 : 1, ...r);
586
586
  return;
587
587
  }
588
- t !== at ? e._value[i] = t : delete e._value[i];
588
+ t !== lt ? e._value[i] = t : delete e._value[i];
589
589
  }
590
590
  }
591
591
  function oi(e, i) {
@@ -593,8 +593,8 @@ function oi(e, i) {
593
593
  return i.children.forEach((n) => {
594
594
  if (typeof t == "object")
595
595
  if (n.name in t) {
596
- const l = n.type !== "input" || t[n.name] && typeof t[n.name] == "object" ? Ie(t[n.name]) : t[n.name];
597
- n.input(l, !1);
596
+ const r = n.type !== "input" || t[n.name] && typeof t[n.name] == "object" ? Ce(t[n.name]) : t[n.name];
597
+ n.input(r, !1);
598
598
  } else
599
599
  (e.type !== "list" || typeof n.name == "number") && Gt(i, { name: n.name, value: n.value }), t.__init || (n.type === "group" ? n.input({}, !1) : n.type === "list" ? n.input([], !1) : n.input(void 0, !1));
600
600
  }), e;
@@ -608,14 +608,14 @@ function ui(e, i) {
608
608
  function fi(e, i, t) {
609
609
  var n;
610
610
  if (t !== void 0 && e.type !== "input")
611
- return Gt(i, t), Be(e, i, !0, !1);
611
+ return Gt(i, t), De(e, i, !0, !1);
612
612
  i._d > 0 && i._d--, i._d === 0 && (i.isSettled = !0, e.emit("settled", !0, !1), e.parent && ((n = e.parent) === null || n === void 0 || n.calm({ name: e.name, value: i.value })), i._resolve && i._resolve(i.value));
613
613
  }
614
614
  function ci(e, i) {
615
615
  e.emit("destroying", e), e.store.filter(() => !1), e.parent && (e.parent.emit("childRemoved", e), e.parent.remove(e)), Zn(e), i._value = i.value = void 0, e.emit("destroyed", e);
616
616
  }
617
617
  function pi(e, i, t) {
618
- i.type = t.type, i.props.definition = Ve(t), i.value = i._value = Jt({
618
+ i.type = t.type, i.props.definition = Se(t), i.value = i._value = Jt({
619
619
  type: e.type,
620
620
  value: i.value
621
621
  }), t.forceTypeProp && (e.props.type && (e.props.originalType = e.props.type), i.props.type = t.forceTypeProp), t.family && (i.props.family = t.family), t.features && t.features.forEach((n) => n(e)), t.props && e.addProps(t.props), e.emit("defined", t);
@@ -623,14 +623,14 @@ function pi(e, i, t) {
623
623
  function di(e, i, t) {
624
624
  var n;
625
625
  if (e.props.attrs) {
626
- const l = { ...e.props.attrs };
626
+ const r = { ...e.props.attrs };
627
627
  e.props._emit = !1;
628
- for (const r in l) {
629
- const o = Ee(r);
630
- t.includes(o) && (e.props[o] = l[r], delete l[r]);
628
+ for (const s in r) {
629
+ const o = Pe(s);
630
+ t.includes(o) && (e.props[o] = r[s], delete r[s]);
631
631
  }
632
- const s = ue(i._value);
633
- e.props.initial = e.type !== "input" ? Ie(s) : s, e.props._emit = !0, e.props.attrs = l, e.props.definition && (e.props.definition.props = [
632
+ const a = oe(i._value);
633
+ e.props.initial = e.type !== "input" ? Ce(a) : a, e.props._emit = !0, e.props.attrs = r, e.props.definition && (e.props.definition.props = [
634
634
  ...((n = e.props.definition) === null || n === void 0 ? void 0 : n.props) || [],
635
635
  ...t
636
636
  ]);
@@ -638,7 +638,7 @@ function di(e, i, t) {
638
638
  return e.emit("added-props", t), e;
639
639
  }
640
640
  function mi(e, i, t, n) {
641
- if (e.type === "input" && N(100, e), t.parent && t.parent !== e && t.parent.remove(t), i.children.includes(t) || (n !== void 0 && e.type === "list" ? (i.children.splice(n, 0, t), Array.isArray(e.value) && e.value.length < i.children.length && e.disturb().calm({
641
+ if (e.type === "input" && q(100, e), t.parent && t.parent !== e && t.parent.remove(t), i.children.includes(t) || (n !== void 0 && e.type === "list" ? (i.children.splice(n, 0, t), Array.isArray(e.value) && e.value.length < i.children.length && e.disturb().calm({
642
642
  name: n,
643
643
  value: t.value,
644
644
  from: Yt
@@ -647,44 +647,44 @@ function mi(e, i, t, n) {
647
647
  return e.remove(t), t.parent.add(t), e;
648
648
  } else
649
649
  t.use(e.plugins);
650
- return Be(e, i, !1), e.ledger.merge(t), e.emit("child", t), e;
650
+ return De(e, i, !1), e.ledger.merge(t), e.emit("child", t), e;
651
651
  }
652
652
  function bi(e, i, t, n) {
653
- return Je(n) ? (e.parent && e.parent !== n && e.parent.remove(e), i.parent = n, e.resetConfig(), n.children.includes(e) ? e.use(n.plugins) : n.add(e), !0) : n === null ? (i.parent = null, !0) : !1;
653
+ return Ye(n) ? (e.parent && e.parent !== n && e.parent.remove(e), i.parent = n, e.resetConfig(), n.children.includes(e) ? e.use(n.plugins) : n.add(e), !0) : n === null ? (i.parent = null, !0) : !1;
654
654
  }
655
655
  function yi(e, i, t) {
656
656
  const n = i.children.indexOf(t);
657
657
  if (n !== -1) {
658
658
  t.isSettled && e.disturb(), i.children.splice(n, 1);
659
- let l = Q(t.props.preserve), s = t.parent;
660
- for (; l === void 0 && s; )
661
- l = Q(s.props.preserve), s = s.parent;
662
- l ? e.calm() : e.calm({
659
+ let r = J(t.props.preserve), a = t.parent;
660
+ for (; r === void 0 && a; )
661
+ r = J(a.props.preserve), a = a.parent;
662
+ r ? e.calm() : e.calm({
663
663
  name: e.type === "list" ? n : t.name,
664
- value: at
664
+ value: lt
665
665
  }), t.parent = null, t.config._rmn = t;
666
666
  }
667
667
  return e.ledger.unmerge(t), e;
668
668
  }
669
- function vi(e, i, t) {
669
+ function hi(e, i, t) {
670
670
  i.children.forEach((n) => t(n));
671
671
  }
672
- function hi(e, i, t, n = !1) {
673
- i.children.forEach((l) => {
674
- (t(l) !== !1 || !n) && l.walk(t, n);
672
+ function vi(e, i, t, n = !1) {
673
+ i.children.forEach((r) => {
674
+ (t(r) !== !1 || !n) && r.walk(t, n);
675
675
  });
676
676
  }
677
677
  function _i(e, i) {
678
678
  const t = e.parent || void 0;
679
679
  i.config = Xt(e.config._t, t), e.walk((n) => n.resetConfig());
680
680
  }
681
- function vt(e, i, t, n = !0, l = !0) {
682
- return Array.isArray(t) || t instanceof Set ? (t.forEach((s) => vt(e, i, s)), e) : (i.plugins.has(t) || (l && typeof t.library == "function" && t.library(e), n && t(e) !== !1 && (i.plugins.add(t), e.children.forEach((s) => s.use(t)))), e);
681
+ function ht(e, i, t, n = !0, r = !0) {
682
+ return Array.isArray(t) || t instanceof Set ? (t.forEach((a) => ht(e, i, a)), e) : (i.plugins.has(t) || (r && typeof t.library == "function" && t.library(e), n && t(e) !== !1 && (i.plugins.add(t), e.children.forEach((a) => a.use(t)))), e);
683
683
  }
684
684
  function gi(e, i, t, n) {
685
- if (Je(e.parent)) {
686
- const l = e.parent.children, s = n >= l.length ? l.length - 1 : n < 0 ? 0 : n, r = l.indexOf(e);
687
- return r === -1 ? !1 : (l.splice(r, 1), l.splice(s, 0, e), e.parent.children = l, e.parent.type === "list" && e.parent.disturb().calm({ name: s, value: st, from: r }), !0);
685
+ if (Ye(e.parent)) {
686
+ const r = e.parent.children, a = n >= r.length ? r.length - 1 : n < 0 ? 0 : n, s = r.indexOf(e);
687
+ return s === -1 ? !1 : (r.splice(s, 1), r.splice(a, 0, e), e.parent.children = r, e.parent.type === "list" && e.parent.disturb().calm({ name: a, value: at, from: s }), !0);
688
688
  }
689
689
  return !1;
690
690
  }
@@ -695,65 +695,65 @@ function $i(e) {
695
695
  }
696
696
  return -1;
697
697
  }
698
- function wi(e, i) {
698
+ function xi(e, i) {
699
699
  return i;
700
700
  }
701
- function ki(e, i) {
701
+ function wi(e, i) {
702
702
  var t;
703
703
  return ((t = e.parent) === null || t === void 0 ? void 0 : t.type) === "list" ? e.index : i.name !== Zt ? i.name : e.index;
704
704
  }
705
- function Ci(e, i) {
705
+ function ki(e, i) {
706
706
  return i.parent ? i.parent.address.concat([e.name]) : [e.name];
707
707
  }
708
708
  function Si(e, i, t) {
709
709
  const n = typeof t == "string" ? t.split(e.config.delimiter) : t;
710
710
  if (!n.length)
711
711
  return;
712
- const l = n[0];
713
- let s = e.parent;
714
- for (s || (String(n[0]) === String(e.name) && n.shift(), s = e), l === "$parent" && n.shift(); s && n.length; ) {
715
- const r = n.shift();
716
- switch (r) {
712
+ const r = n[0];
713
+ let a = e.parent;
714
+ for (a || (String(n[0]) === String(e.name) && n.shift(), a = e), r === "$parent" && n.shift(); a && n.length; ) {
715
+ const s = n.shift();
716
+ switch (s) {
717
717
  case "$root":
718
- s = e.root;
718
+ a = e.root;
719
719
  break;
720
720
  case "$parent":
721
- s = s.parent;
721
+ a = a.parent;
722
722
  break;
723
723
  case "$self":
724
- s = e;
724
+ a = e;
725
725
  break;
726
726
  default:
727
- s = s.children.find((o) => String(o.name) === String(r)) || Vi(s, r);
727
+ a = a.children.find((o) => String(o.name) === String(s)) || Ci(a, s);
728
728
  }
729
729
  }
730
- return s || void 0;
730
+ return a || void 0;
731
731
  }
732
- function Vi(e, i) {
732
+ function Ci(e, i) {
733
733
  const t = String(i).match(/^(find)\((.*)\)$/);
734
734
  if (t) {
735
- const [, n, l] = t, s = l.split(",").map((r) => r.trim());
735
+ const [, n, r] = t, a = r.split(",").map((s) => s.trim());
736
736
  switch (n) {
737
737
  case "find":
738
- return e.find(s[0], s[1]);
738
+ return e.find(a[0], a[1]);
739
739
  default:
740
740
  return;
741
741
  }
742
742
  }
743
743
  }
744
744
  function Ii(e, i, t, n) {
745
- return Li(e, t, n);
745
+ return Vi(e, t, n);
746
746
  }
747
- function Li(e, i, t = "name") {
748
- const n = typeof t == "string" ? (s) => s[t] == i : t, l = [e];
749
- for (; l.length; ) {
750
- const s = l.shift();
751
- if (n(s, i))
752
- return s;
753
- l.push(...s.children);
747
+ function Vi(e, i, t = "name") {
748
+ const n = typeof t == "string" ? (a) => a[t] == i : t, r = [e];
749
+ for (; r.length; ) {
750
+ const a = r.shift();
751
+ if (n(a, i))
752
+ return a;
753
+ r.push(...a.children);
754
754
  }
755
755
  }
756
- function Oi(e) {
756
+ function Li(e) {
757
757
  let i = e;
758
758
  for (; i.parent; )
759
759
  i = i.parent;
@@ -763,48 +763,48 @@ function Xt(e = {}, i) {
763
763
  let t;
764
764
  return new Proxy(e, {
765
765
  get(...n) {
766
- const l = n[1];
767
- if (l === "_t")
766
+ const r = n[1];
767
+ if (r === "_t")
768
768
  return e;
769
- const s = Reflect.get(...n);
770
- if (s !== void 0)
771
- return s;
769
+ const a = Reflect.get(...n);
770
+ if (a !== void 0)
771
+ return a;
772
772
  if (i) {
773
- const r = i.config[l];
774
- if (r !== void 0)
775
- return r;
773
+ const s = i.config[r];
774
+ if (s !== void 0)
775
+ return s;
776
776
  }
777
- if (e.rootConfig && typeof l == "string") {
778
- const r = e.rootConfig[l];
779
- if (r !== void 0)
780
- return r;
777
+ if (e.rootConfig && typeof r == "string") {
778
+ const s = e.rootConfig[r];
779
+ if (s !== void 0)
780
+ return s;
781
781
  }
782
- return l === "delay" && (t == null ? void 0 : t.type) === "input" ? 20 : Xn[l];
782
+ return r === "delay" && (t == null ? void 0 : t.type) === "input" ? 20 : Xn[r];
783
783
  },
784
784
  set(...n) {
785
- const l = n[1], s = n[2];
786
- if (l === "_n")
787
- return t = s, e.rootConfig && e.rootConfig._add(t), !0;
788
- if (l === "_rmn")
785
+ const r = n[1], a = n[2];
786
+ if (r === "_n")
787
+ return t = a, e.rootConfig && e.rootConfig._add(t), !0;
788
+ if (r === "_rmn")
789
789
  return e.rootConfig && e.rootConfig._rm(t), t = void 0, !0;
790
- if (!Oe(e[l], s, !1)) {
791
- const r = Reflect.set(...n);
792
- return t && (t.emit(`config:${l}`, s, !1), Ot(t, l, s), t.walk((o) => Ot(o, l, s), !0)), r;
790
+ if (!Ve(e[r], a, !1)) {
791
+ const s = Reflect.set(...n);
792
+ return t && (t.emit(`config:${r}`, a, !1), Lt(t, r, a), t.walk((o) => Lt(o, r, a), !0)), s;
793
793
  }
794
794
  return !0;
795
795
  }
796
796
  });
797
797
  }
798
- function Ai(e, i, t, n = "ui") {
799
- const l = typeof t == "string" ? { key: t, value: t, type: n } : t, s = e.hook.text.dispatch(l);
800
- return e.emit("text", s, !1), s.value;
798
+ function Oi(e, i, t, n = "ui") {
799
+ const r = typeof t == "string" ? { key: t, value: t, type: n } : t, a = e.hook.text.dispatch(r);
800
+ return e.emit("text", a, !1), a.value;
801
801
  }
802
- function xi(e) {
802
+ function Ai(e) {
803
803
  const i = e.name;
804
804
  do {
805
805
  if (e.props.isForm === !0)
806
806
  break;
807
- e.parent || N(106, i), e = e.parent;
807
+ e.parent || q(106, i), e = e.parent;
808
808
  } while (e);
809
809
  e.props.id && Jn(e.props.id);
810
810
  }
@@ -812,44 +812,44 @@ function Pi(e, i, t) {
812
812
  return Gn(e, t);
813
813
  }
814
814
  function en(e, i, t, n) {
815
- const l = `${e.name}-set`, s = e.hook.setErrors.dispatch({ localErrors: t, childErrors: n });
816
- return Bn(e, s.localErrors, s.childErrors).forEach((r) => {
817
- e.store.apply(r, (o) => o.meta.source === l);
815
+ const r = `${e.name}-set`, a = e.hook.setErrors.dispatch({ localErrors: t, childErrors: n });
816
+ return Bn(e, a.localErrors, a.childErrors).forEach((s) => {
817
+ e.store.apply(s, (o) => o.meta.source === r);
818
818
  }), e;
819
819
  }
820
820
  function Ei(e, i, t = !0, n) {
821
- return en(e, i, []), t && (n = n || `${e.name}-set`, e.walk((l) => {
822
- l.store.filter((s) => !(s.type === "error" && s.meta && s.meta.source === n));
821
+ return en(e, i, []), t && (n = n || `${e.name}-set`, e.walk((r) => {
822
+ r.store.filter((a) => !(a.type === "error" && a.meta && a.meta.source === n));
823
823
  })), e;
824
824
  }
825
825
  function Mi(e) {
826
- return E(e.props, "id") || (e.props.id = `input_${ai++}`), e;
826
+ return E(e.props, "id") || (e.props.id = `input_${li++}`), e;
827
827
  }
828
828
  function Ri(e) {
829
829
  const i = {
830
- initial: typeof e == "object" ? ue(e) : e
830
+ initial: typeof e == "object" ? oe(e) : e
831
831
  };
832
832
  let t, n = !0;
833
833
  return new Proxy(i, {
834
- get(...l) {
835
- const [s, r] = l;
836
- if (E(i, r))
837
- return Reflect.get(...l);
838
- if (t && typeof r == "string" && t.config[r] !== void 0)
839
- return t.config[r];
834
+ get(...r) {
835
+ const [a, s] = r;
836
+ if (E(i, s))
837
+ return Reflect.get(...r);
838
+ if (t && typeof s == "string" && t.config[s] !== void 0)
839
+ return t.config[s];
840
840
  },
841
- set(l, s, r, o) {
842
- if (s === "_n")
843
- return t = r, !0;
844
- if (s === "_emit")
845
- return n = r, !0;
846
- const { prop: u, value: b } = t.hook.prop.dispatch({
847
- prop: s,
848
- value: r
841
+ set(r, a, s, o) {
842
+ if (a === "_n")
843
+ return t = s, !0;
844
+ if (a === "_emit")
845
+ return n = s, !0;
846
+ const { prop: c, value: y } = t.hook.prop.dispatch({
847
+ prop: a,
848
+ value: s
849
849
  });
850
- if (!Oe(i[u], b, !1) || typeof b == "object") {
851
- const h = Reflect.set(l, u, b, o);
852
- return n && (t.emit("prop", { prop: u, value: b }), typeof u == "string" && t.emit(`prop:${u}`, b)), h;
850
+ if (!Ve(i[c], y, !1) || typeof y == "object") {
851
+ const w = Reflect.set(r, c, y, o);
852
+ return n && (t.emit("prop", { prop: c, value: y }), typeof c == "string" && t.emit(`prop:${c}`, y)), w;
853
853
  }
854
854
  return !0;
855
855
  }
@@ -878,7 +878,7 @@ function Ti(e) {
878
878
  isCreated: !1,
879
879
  isSettled: !0,
880
880
  ledger: Un(),
881
- name: si(e),
881
+ name: ai(e),
882
882
  parent: e.parent || null,
883
883
  plugins: /* @__PURE__ */ new Set(),
884
884
  props: Ri(i),
@@ -896,32 +896,32 @@ function Fi(e, i) {
896
896
  ...e.parent ? e.parent.plugins : []
897
897
  ])), i.plugins)
898
898
  for (const n of i.plugins)
899
- vt(e, e._c, n, !0, !1);
900
- return Mi(e), e.each((n) => e.add(n)), e.parent && e.parent.add(e, i.index), e.type === "input" && e.children.length && N(100, e), Qt(e, e._c, e._value, !1), e.store.release(), !((t = i.props) === null || t === void 0) && t.id && Hn(e), e.emit("created", e), e.isCreated = !0, e;
899
+ ht(e, e._c, n, !0, !1);
900
+ return Mi(e), e.each((n) => e.add(n)), e.parent && e.parent.add(e, i.index), e.type === "input" && e.children.length && q(100, e), Qt(e, e._c, e._value, !1), e.store.release(), !((t = i.props) === null || t === void 0) && t.id && Hn(e), e.emit("created", e), e.isCreated = !0, e;
901
901
  }
902
902
  function Di(e) {
903
903
  const i = e || {}, t = Ti(i), n = new Proxy(t, {
904
- get(...l) {
905
- const [, s] = l;
906
- if (s === "__FKNode__")
904
+ get(...r) {
905
+ const [, a] = r;
906
+ if (a === "__FKNode__")
907
907
  return !0;
908
- const r = t.traps.get(s);
909
- return r && r.get ? r.get(n, t) : Reflect.get(...l);
908
+ const s = t.traps.get(a);
909
+ return s && s.get ? s.get(n, t) : Reflect.get(...r);
910
910
  },
911
- set(...l) {
912
- const [, s, r] = l, o = t.traps.get(s);
913
- return o && o.set ? o.set(n, t, s, r) : Reflect.set(...l);
911
+ set(...r) {
912
+ const [, a, s] = r, o = t.traps.get(a);
913
+ return o && o.set ? o.set(n, t, a, s) : Reflect.set(...r);
914
914
  }
915
915
  });
916
916
  return Fi(n, i);
917
917
  }
918
- function rt(e) {
918
+ function st(e) {
919
919
  return typeof e != "string" && E(e, "$el");
920
920
  }
921
921
  function ot(e) {
922
922
  return typeof e != "string" && E(e, "$cmp");
923
923
  }
924
- function pe(e) {
924
+ function ce(e) {
925
925
  return !e || typeof e == "string" ? !1 : E(e, "if") && E(e, "then");
926
926
  }
927
927
  function Bi(e) {
@@ -934,137 +934,137 @@ function zi(e) {
934
934
  children: e
935
935
  };
936
936
  if (Bi(e)) {
937
- const { $formkit: i, for: t, if: n, children: l, bind: s, ...r } = e;
937
+ const { $formkit: i, for: t, if: n, children: r, bind: a, ...s } = e;
938
938
  return Object.assign({
939
939
  $cmp: "FormKit",
940
- props: { ...r, type: i }
941
- }, n ? { if: n } : {}, t ? { for: t } : {}, l ? { children: l } : {}, s ? { bind: s } : {});
940
+ props: { ...s, type: i }
941
+ }, n ? { if: n } : {}, t ? { for: t } : {}, r ? { children: r } : {}, a ? { bind: a } : {});
942
942
  }
943
943
  return e;
944
944
  }
945
- function Y(e) {
945
+ function Z(e) {
946
946
  let i;
947
- const t = /* @__PURE__ */ new Set(), n = function(f, c) {
948
- return typeof f == "function" ? f(c) : f;
949
- }, l = [
947
+ const t = /* @__PURE__ */ new Set(), n = function(u, f) {
948
+ return typeof u == "function" ? u(f) : u;
949
+ }, r = [
950
950
  {
951
- "&&": (p, f, c) => n(p, c) && n(f, c),
952
- "||": (p, f, c) => n(p, c) || n(f, c)
951
+ "&&": (p, u, f) => n(p, f) && n(u, f),
952
+ "||": (p, u, f) => n(p, f) || n(u, f)
953
953
  },
954
954
  {
955
- "===": (p, f, c) => n(p, c) === n(f, c),
956
- "!==": (p, f, c) => n(p, c) !== n(f, c),
957
- "==": (p, f, c) => n(p, c) == n(f, c),
958
- "!=": (p, f, c) => n(p, c) != n(f, c),
959
- ">=": (p, f, c) => n(p, c) >= n(f, c),
960
- "<=": (p, f, c) => n(p, c) <= n(f, c),
961
- ">": (p, f, c) => n(p, c) > n(f, c),
962
- "<": (p, f, c) => n(p, c) < n(f, c)
955
+ "===": (p, u, f) => n(p, f) === n(u, f),
956
+ "!==": (p, u, f) => n(p, f) !== n(u, f),
957
+ "==": (p, u, f) => n(p, f) == n(u, f),
958
+ "!=": (p, u, f) => n(p, f) != n(u, f),
959
+ ">=": (p, u, f) => n(p, f) >= n(u, f),
960
+ "<=": (p, u, f) => n(p, f) <= n(u, f),
961
+ ">": (p, u, f) => n(p, f) > n(u, f),
962
+ "<": (p, u, f) => n(p, f) < n(u, f)
963
963
  },
964
964
  {
965
- "+": (p, f, c) => n(p, c) + n(f, c),
966
- "-": (p, f, c) => n(p, c) - n(f, c)
965
+ "+": (p, u, f) => n(p, f) + n(u, f),
966
+ "-": (p, u, f) => n(p, f) - n(u, f)
967
967
  },
968
968
  {
969
- "*": (p, f, c) => n(p, c) * n(f, c),
970
- "/": (p, f, c) => n(p, c) / n(f, c),
971
- "%": (p, f, c) => n(p, c) % n(f, c)
972
- }
973
- ], s = l.reduce((p, f) => p.concat(Object.keys(f)), []), r = new Set(s.map((p) => p.charAt(0)));
974
- function o(p, f, c, $) {
975
- const C = p.filter((m) => m.startsWith(f));
976
- return C.length ? C.find((m) => $.length >= c + m.length && $.substring(c, c + m.length) === m ? m : !1) : !1;
977
- }
978
- function u(p, f, c = 1) {
979
- let $ = c ? f.substring(p + 1).trim() : f.substring(0, p).trim();
980
- if (!$.length)
969
+ "*": (p, u, f) => n(p, f) * n(u, f),
970
+ "/": (p, u, f) => n(p, f) / n(u, f),
971
+ "%": (p, u, f) => n(p, f) % n(u, f)
972
+ }
973
+ ], a = r.reduce((p, u) => p.concat(Object.keys(u)), []), s = new Set(a.map((p) => p.charAt(0)));
974
+ function o(p, u, f, g) {
975
+ const k = p.filter((m) => m.startsWith(u));
976
+ return k.length ? k.find((m) => g.length >= f + m.length && g.substring(f, f + m.length) === m ? m : !1) : !1;
977
+ }
978
+ function c(p, u, f = 1) {
979
+ let g = f ? u.substring(p + 1).trim() : u.substring(0, p).trim();
980
+ if (!g.length)
981
981
  return -1;
982
- if (!c) {
983
- const m = $.split("").reverse(), d = m.findIndex((y) => r.has(y));
984
- $ = m.slice(d).join("");
982
+ if (!f) {
983
+ const m = g.split("").reverse(), d = m.findIndex((b) => s.has(b));
984
+ g = m.slice(d).join("");
985
985
  }
986
- const C = $[0];
987
- return l.findIndex((m) => {
986
+ const k = g[0];
987
+ return r.findIndex((m) => {
988
988
  const d = Object.keys(m);
989
- return !!o(d, C, 0, $);
989
+ return !!o(d, k, 0, g);
990
990
  });
991
991
  }
992
- function b(p, f) {
993
- let c = "";
994
- const $ = f.length;
995
- let C = 0;
996
- for (let m = p; m < $; m++) {
997
- const d = f.charAt(m);
992
+ function y(p, u) {
993
+ let f = "";
994
+ const g = u.length;
995
+ let k = 0;
996
+ for (let m = p; m < g; m++) {
997
+ const d = u.charAt(m);
998
998
  if (d === "(")
999
- C++;
999
+ k++;
1000
1000
  else if (d === ")")
1001
- C--;
1002
- else if (C === 0 && d === " ")
1001
+ k--;
1002
+ else if (k === 0 && d === " ")
1003
1003
  continue;
1004
- if (C === 0 && o(s, d, m, f))
1005
- return [c, m - 1];
1006
- c += d;
1004
+ if (k === 0 && o(a, d, m, u))
1005
+ return [f, m - 1];
1006
+ f += d;
1007
1007
  }
1008
- return [c, f.length - 1];
1008
+ return [f, u.length - 1];
1009
1009
  }
1010
- function h(p, f = 0) {
1011
- const c = l[f], $ = p.length, C = Object.keys(c);
1012
- let m = 0, d = !1, y = null, g = "", V = null, O, R = "", I = "", F = "", z = "", Z = 0;
1013
- const K = (j, H) => {
1014
- j ? F += H : g += H;
1010
+ function w(p, u = 0) {
1011
+ const f = r[u], g = p.length, k = Object.keys(f);
1012
+ let m = 0, d = !1, b = null, _ = "", C = null, L, M = "", I = "", T = "", B = "", H = 0;
1013
+ const N = (R, K) => {
1014
+ R ? T += K : _ += K;
1015
1015
  };
1016
- for (let j = 0; j < $; j++)
1017
- if (R = I, I = p.charAt(j), (I === "'" || I === '"') && R !== "\\" && (m === 0 && !d || m && !z)) {
1018
- m ? z = I : d = I, K(m, I);
1016
+ for (let R = 0; R < g; R++)
1017
+ if (M = I, I = p.charAt(R), (I === "'" || I === '"') && M !== "\\" && (m === 0 && !d || m && !B)) {
1018
+ m ? B = I : d = I, N(m, I);
1019
1019
  continue;
1020
- } else if (d && (I !== d || R === "\\") || z && (I !== z || R === "\\")) {
1021
- K(m, I);
1020
+ } else if (d && (I !== d || M === "\\") || B && (I !== B || M === "\\")) {
1021
+ N(m, I);
1022
1022
  continue;
1023
1023
  } else if (d === I) {
1024
- d = !1, K(m, I);
1024
+ d = !1, N(m, I);
1025
1025
  continue;
1026
- } else if (z === I) {
1027
- z = !1, K(m, I);
1026
+ } else if (B === I) {
1027
+ B = !1, N(m, I);
1028
1028
  continue;
1029
1029
  } else {
1030
1030
  if (I === " ")
1031
1031
  continue;
1032
1032
  if (I === "(")
1033
- m === 0 ? Z = j : F += I, m++;
1033
+ m === 0 ? H = R : T += I, m++;
1034
1034
  else if (I === ")")
1035
1035
  if (m--, m === 0) {
1036
- const H = typeof g == "string" && g.startsWith("$") ? g : void 0, wt = H && p.charAt(j + 1) === ".";
1037
- let ge = "";
1038
- wt && ([ge, j] = b(j + 2, p));
1039
- const Pe = y ? f : u(Z, p, 0), $e = u(j, p);
1040
- Pe === -1 && $e === -1 ? g = _(F, -1, H, ge) : y && (Pe >= $e || $e === -1) && f === Pe ? (V = y.bind(null, _(F, -1, H, ge)), y = null, g = "") : $e > Pe && f === $e ? g = _(F, -1, H, ge) : g += `(${F})${wt ? `.${ge}` : ""}`, F = "";
1036
+ const K = typeof _ == "string" && _.startsWith("$") ? _ : void 0, xt = K && p.charAt(R + 1) === ".";
1037
+ let _e = "";
1038
+ xt && ([_e, R] = y(R + 2, p));
1039
+ const Ae = b ? u : c(H, p, 0), ge = c(R, p);
1040
+ Ae === -1 && ge === -1 ? _ = v(T, -1, K, _e) : b && (Ae >= ge || ge === -1) && u === Ae ? (C = b.bind(null, v(T, -1, K, _e)), b = null, _ = "") : ge > Ae && u === ge ? _ = v(T, -1, K, _e) : _ += `(${T})${xt ? `.${_e}` : ""}`, T = "";
1041
1041
  } else
1042
- F += I;
1043
- else if (m === 0 && (O = o(C, I, j, p))) {
1044
- j === 0 && N(103, [O, p]), j += O.length - 1, j === p.length - 1 && N(104, [O, p]), y ? g && (V = y.bind(null, _(g, f)), y = c[O].bind(null, V), g = "") : V ? (y = c[O].bind(null, _(V, f)), V = null) : (y = c[O].bind(null, _(g, f)), g = "");
1042
+ T += I;
1043
+ else if (m === 0 && (L = o(k, I, R, p))) {
1044
+ R === 0 && q(103, [L, p]), R += L.length - 1, R === p.length - 1 && q(104, [L, p]), b ? _ && (C = b.bind(null, v(_, u)), b = f[L].bind(null, C), _ = "") : C ? (b = f[L].bind(null, v(C, u)), C = null) : (b = f[L].bind(null, v(_, u)), _ = "");
1045
1045
  continue;
1046
1046
  } else
1047
- K(m, I);
1047
+ N(m, I);
1048
1048
  }
1049
- return g && y && (y = y.bind(null, _(g, f))), y = !y && V ? V : y, !y && g && (y = (j, H) => typeof j == "function" ? j(H) : j, y = y.bind(null, _(g, f))), !y && !g && N(105, p), y;
1050
- }
1051
- function _(p, f, c, $) {
1052
- if (c) {
1053
- const C = _(c, l.length);
1054
- let m, d = $ ? Y(`$${$}`) : !1;
1055
- if (typeof C == "function") {
1056
- const y = Ln(String(p)).map((g) => _(g, -1));
1057
- return (g) => {
1058
- const V = C(g);
1059
- return typeof V != "function" ? (Ae(150, c), V) : (m = V(...y.map((O) => typeof O == "function" ? O(g) : O)), d && (d = d.provide((O) => {
1060
- const R = i(O);
1061
- return O.reduce((F, z) => {
1062
- if (z === $ || ($ == null ? void 0 : $.startsWith(`${z}(`))) {
1063
- const K = On(m, z);
1064
- F[z] = () => K;
1049
+ return _ && b && (b = b.bind(null, v(_, u))), b = !b && C ? C : b, !b && _ && (b = (R, K) => typeof R == "function" ? R(K) : R, b = b.bind(null, v(_, u))), !b && !_ && q(105, p), b;
1050
+ }
1051
+ function v(p, u, f, g) {
1052
+ if (f) {
1053
+ const k = v(f, r.length);
1054
+ let m, d = g ? Z(`$${g}`) : !1;
1055
+ if (typeof k == "function") {
1056
+ const b = Vn(String(p)).map((_) => v(_, -1));
1057
+ return (_) => {
1058
+ const C = k(_);
1059
+ return typeof C != "function" ? (Le(150, f), C) : (m = C(...b.map((L) => typeof L == "function" ? L(_) : L)), d && (d = d.provide((L) => {
1060
+ const M = i(L);
1061
+ return L.reduce((T, B) => {
1062
+ if (B === g || (g == null ? void 0 : g.startsWith(`${B}(`))) {
1063
+ const N = Ln(m, B);
1064
+ T[B] = () => N;
1065
1065
  } else
1066
- F[z] = R[z];
1067
- return F;
1066
+ T[B] = M[B];
1067
+ return T;
1068
1068
  }, {});
1069
1069
  })), d ? d() : m);
1070
1070
  };
@@ -1076,33 +1076,33 @@ function Y(e) {
1076
1076
  return !1;
1077
1077
  if (p === "undefined")
1078
1078
  return;
1079
- if (Vn(p))
1079
+ if (Cn(p))
1080
1080
  return In(p.substring(1, p.length - 1));
1081
1081
  if (!isNaN(+p))
1082
1082
  return Number(p);
1083
- if (f < l.length - 1)
1084
- return h(p, f + 1);
1083
+ if (u < r.length - 1)
1084
+ return w(p, u + 1);
1085
1085
  if (p.startsWith("$")) {
1086
- const C = p.substring(1);
1087
- return t.add(C), function(d) {
1088
- return C in d ? d[C]() : void 0;
1086
+ const k = p.substring(1);
1087
+ return t.add(k), function(d) {
1088
+ return k in d ? d[k]() : void 0;
1089
1089
  };
1090
1090
  }
1091
1091
  return p;
1092
1092
  }
1093
1093
  return p;
1094
1094
  }
1095
- const v = h(e.startsWith("$:") ? e.substring(2) : e), w = Array.from(t);
1095
+ const h = w(e.startsWith("$:") ? e.substring(2) : e), $ = Array.from(t);
1096
1096
  function S(p) {
1097
- return i = p, Object.assign(v.bind(null, p(w)), {
1097
+ return i = p, Object.assign(h.bind(null, p($)), {
1098
1098
  provide: S
1099
1099
  });
1100
1100
  }
1101
- return Object.assign(v, {
1101
+ return Object.assign(h, {
1102
1102
  provide: S
1103
1103
  });
1104
1104
  }
1105
- const At = "0.16.4";
1105
+ const Ot = "0.16.4";
1106
1106
  function Wi(e) {
1107
1107
  let i = 1;
1108
1108
  return Array.isArray(e) ? e.map((t) => typeof t == "string" || typeof t == "number" ? {
@@ -1116,7 +1116,7 @@ function Wi(e) {
1116
1116
  value: t
1117
1117
  }));
1118
1118
  }
1119
- function ve(e, i) {
1119
+ function ye(e, i) {
1120
1120
  if (Array.isArray(e)) {
1121
1121
  for (const t of e)
1122
1122
  if (i == t.value)
@@ -1125,12 +1125,12 @@ function ve(e, i) {
1125
1125
  return i;
1126
1126
  }
1127
1127
  function he(e, i) {
1128
- return e === null && i === void 0 || e === void 0 && i === null ? !1 : e == i ? !0 : ye(e) && ye(i) ? Oe(e, i) : !1;
1128
+ return e === null && i === void 0 || e === void 0 && i === null ? !1 : e == i ? !0 : be(e) && be(i) ? Ve(e, i) : !1;
1129
1129
  }
1130
- function ht(e) {
1130
+ function vt(e) {
1131
1131
  e.hook.prop((i, t) => (i.prop === "options" && (typeof i.value == "function" ? (e.props.optionsLoader = i.value, i.value = []) : i.value = Wi(i.value)), t(i)));
1132
1132
  }
1133
- const re = k("outer", () => ({
1133
+ const ae = x("outer", () => ({
1134
1134
  $el: "div",
1135
1135
  attrs: {
1136
1136
  key: "$id",
@@ -1147,16 +1147,16 @@ const re = k("outer", () => ({
1147
1147
  "data-prefix-icon-click": "$onPrefixIconClick !== undefined || undefined",
1148
1148
  "data-suffix-icon-click": "$onSuffixIconClick !== undefined || undefined"
1149
1149
  }
1150
- }), !0), te = k("inner", "div"), _e = k("wrapper", "div"), xe = k("label", () => ({
1150
+ }), !0), ee = x("inner", "div"), ve = x("wrapper", "div"), Oe = x("label", () => ({
1151
1151
  $el: "label",
1152
1152
  if: "$label",
1153
1153
  attrs: {
1154
1154
  for: "$id"
1155
1155
  }
1156
- })), ne = k("messages", () => ({
1156
+ })), te = x("messages", () => ({
1157
1157
  $el: "ul",
1158
1158
  if: "$defaultMessagePlacement && $fns.length($messages)"
1159
- })), ie = k("message", () => ({
1159
+ })), ne = x("message", () => ({
1160
1160
  $el: "li",
1161
1161
  for: ["message", "$messages"],
1162
1162
  attrs: {
@@ -1164,13 +1164,13 @@ const re = k("outer", () => ({
1164
1164
  id: "$id + '-' + $message.key",
1165
1165
  "data-message-type": "$message.type"
1166
1166
  }
1167
- })), G = k("prefix", null), X = k("suffix", null), ee = k("help", () => ({
1167
+ })), Q = x("prefix", null), G = x("suffix", null), X = x("help", () => ({
1168
1168
  $el: "div",
1169
1169
  if: "$help",
1170
1170
  attrs: {
1171
1171
  id: '$: "help-" + $id'
1172
1172
  }
1173
- })), tn = k("fieldset", () => ({
1173
+ })), tn = x("fieldset", () => ({
1174
1174
  $el: "fieldset",
1175
1175
  attrs: {
1176
1176
  id: "$id",
@@ -1180,12 +1180,12 @@ const re = k("outer", () => ({
1180
1180
  else: void 0
1181
1181
  }
1182
1182
  }
1183
- })), ze = k("decorator", () => ({
1183
+ })), Be = x("decorator", () => ({
1184
1184
  $el: "span",
1185
1185
  attrs: {
1186
1186
  "aria-hidden": "true"
1187
1187
  }
1188
- })), We = k("input", () => ({
1188
+ })), ze = x("input", () => ({
1189
1189
  $el: "input",
1190
1190
  bind: "$attrs",
1191
1191
  attrs: {
@@ -1211,16 +1211,16 @@ const re = k("outer", () => ({
1211
1211
  }
1212
1212
  }
1213
1213
  }
1214
- })), nn = k("legend", () => ({
1214
+ })), nn = x("legend", () => ({
1215
1215
  $el: "legend",
1216
1216
  if: "$label"
1217
- })), ln = k("option", () => ({
1217
+ })), rn = x("option", () => ({
1218
1218
  $el: "li",
1219
1219
  for: ["option", "$options"],
1220
1220
  attrs: {
1221
1221
  "data-disabled": "$option.attrs.disabled || $disabled"
1222
1222
  }
1223
- })), an = k("options", "ul"), Ue = k("wrapper", () => ({
1223
+ })), ln = x("options", "ul"), We = x("wrapper", () => ({
1224
1224
  $el: "label",
1225
1225
  attrs: {
1226
1226
  "data-disabled": {
@@ -1234,13 +1234,13 @@ const re = k("outer", () => ({
1234
1234
  else: "$fns.isChecked($option.value) || undefined"
1235
1235
  }
1236
1236
  }
1237
- })), sn = k("optionHelp", () => ({
1237
+ })), an = x("optionHelp", () => ({
1238
1238
  $el: "div",
1239
1239
  if: "$option.help",
1240
1240
  attrs: {
1241
1241
  id: '$: "help-" + $option.attrs.id'
1242
1242
  }
1243
- })), qe = k("label", "span"), Ui = k("input", () => ({
1243
+ })), Ue = x("label", "span"), Ui = x("input", () => ({
1244
1244
  $el: "button",
1245
1245
  bind: "$attrs",
1246
1246
  attrs: {
@@ -1249,7 +1249,7 @@ const re = k("outer", () => ({
1249
1249
  name: "$node.name",
1250
1250
  id: "$id"
1251
1251
  }
1252
- })), qi = k("default", null), Ni = k("input", () => ({
1252
+ })), qi = x("default", null), Ni = x("input", () => ({
1253
1253
  $el: "input",
1254
1254
  bind: "$attrs",
1255
1255
  attrs: {
@@ -1261,10 +1261,10 @@ const re = k("outer", () => ({
1261
1261
  id: "$id",
1262
1262
  "aria-describedby": "$describedBy"
1263
1263
  }
1264
- })), Ki = k("fileItem", () => ({
1264
+ })), Ki = x("fileItem", () => ({
1265
1265
  $el: "li",
1266
1266
  for: ["file", "$value"]
1267
- })), Hi = k("fileList", () => ({
1267
+ })), Hi = x("fileList", () => ({
1268
1268
  $el: "ul",
1269
1269
  if: "$value.length",
1270
1270
  attrs: {
@@ -1273,20 +1273,20 @@ const re = k("outer", () => ({
1273
1273
  then: "true"
1274
1274
  }
1275
1275
  }
1276
- })), Zi = k("fileName", () => ({
1276
+ })), Zi = x("fileName", () => ({
1277
1277
  $el: "span",
1278
1278
  attrs: {
1279
1279
  class: "$classes.fileName"
1280
1280
  }
1281
- })), xt = k("fileRemove", () => ({
1281
+ })), At = x("fileRemove", () => ({
1282
1282
  $el: "button",
1283
1283
  attrs: {
1284
1284
  onClick: "$handlers.resetFiles"
1285
1285
  }
1286
- })), Yi = k("noFiles", () => ({
1286
+ })), Yi = x("noFiles", () => ({
1287
1287
  $el: "span",
1288
1288
  if: "$value.length == 0"
1289
- })), Ji = k("form", () => ({
1289
+ })), Ji = x("form", () => ({
1290
1290
  $el: "form",
1291
1291
  bind: "$attrs",
1292
1292
  attrs: {
@@ -1295,10 +1295,10 @@ const re = k("outer", () => ({
1295
1295
  onSubmit: "$handlers.submit",
1296
1296
  "data-loading": "$state.loading || undefined"
1297
1297
  }
1298
- }), !0), Qi = k("actions", () => ({
1298
+ }), !0), Qi = x("actions", () => ({
1299
1299
  $el: "div",
1300
1300
  if: "$actions"
1301
- })), Gi = k("submit", () => ({
1301
+ })), Gi = x("submit", () => ({
1302
1302
  $cmp: "FormKit",
1303
1303
  bind: "$submitAttrs",
1304
1304
  props: {
@@ -1306,7 +1306,7 @@ const re = k("outer", () => ({
1306
1306
  disabled: "$disabled",
1307
1307
  label: "$submitLabel"
1308
1308
  }
1309
- })), rn = k("input", () => ({
1309
+ })), sn = x("input", () => ({
1310
1310
  $el: "input",
1311
1311
  bind: "$attrs",
1312
1312
  attrs: {
@@ -1319,7 +1319,7 @@ const re = k("outer", () => ({
1319
1319
  id: "$id",
1320
1320
  "aria-describedby": "$describedBy"
1321
1321
  }
1322
- })), on = k("wrapper", null, !0), Xi = k("input", () => ({
1322
+ })), on = x("wrapper", null, !0), Xi = x("input", () => ({
1323
1323
  $el: "select",
1324
1324
  bind: "$attrs",
1325
1325
  attrs: {
@@ -1333,7 +1333,7 @@ const re = k("outer", () => ({
1333
1333
  onBlur: "$handlers.blur",
1334
1334
  "aria-describedby": "$describedBy"
1335
1335
  }
1336
- })), el = k("option", () => ({
1336
+ })), er = x("option", () => ({
1337
1337
  $el: "option",
1338
1338
  for: ["option", "$options"],
1339
1339
  bind: "$option.attrs",
@@ -1342,12 +1342,12 @@ const re = k("outer", () => ({
1342
1342
  value: "$option.value",
1343
1343
  selected: "$fns.isSelected($option)"
1344
1344
  }
1345
- })), tl = () => ({
1345
+ })), tr = () => ({
1346
1346
  $el: null,
1347
1347
  if: "$options.length",
1348
1348
  for: ["option", "$options"],
1349
1349
  children: "$slots.option"
1350
- }), nl = k("input", () => ({
1350
+ }), nr = x("input", () => ({
1351
1351
  $el: "textarea",
1352
1352
  bind: "$attrs",
1353
1353
  attrs: {
@@ -1360,7 +1360,7 @@ const re = k("outer", () => ({
1360
1360
  "aria-describedby": "$describedBy"
1361
1361
  },
1362
1362
  children: "$initialValue"
1363
- })), W = (e, i) => k(`${e}Icon`, () => {
1363
+ })), z = (e, i) => x(`${e}Icon`, () => {
1364
1364
  const t = `_raw${e.charAt(0).toUpperCase()}${e.slice(1)}Icon`;
1365
1365
  return {
1366
1366
  if: `$${e}Icon && $${t}`,
@@ -1379,8 +1379,8 @@ const re = k("outer", () => ({
1379
1379
  function un(e) {
1380
1380
  return function(i, t) {
1381
1381
  return i.prop === "options" && Array.isArray(i.value) && (i.value = i.value.map((n) => {
1382
- var l;
1383
- return !((l = n.attrs) === null || l === void 0) && l.id ? n : Ye(n, {
1382
+ var r;
1383
+ return !((r = n.attrs) === null || r === void 0) && r.id ? n : Ze(n, {
1384
1384
  attrs: {
1385
1385
  id: `${e.name}-option-${ct(String(n.value))}`
1386
1386
  }
@@ -1390,35 +1390,35 @@ function un(e) {
1390
1390
  }))), t(i);
1391
1391
  };
1392
1392
  }
1393
- function il(e, i) {
1393
+ function ir(e, i) {
1394
1394
  const t = i.target;
1395
1395
  if (t instanceof HTMLInputElement) {
1396
- const n = Array.isArray(e.props.options) ? ve(e.props.options, t.value) : t.value;
1397
- Array.isArray(e.props.options) && e.props.options.length ? Array.isArray(e._value) ? e._value.some((l) => he(n, l)) ? e.input(e._value.filter((l) => !he(n, l))) : e.input([...e._value, n]) : e.input([n]) : t.checked ? e.input(e.props.onValue) : e.input(e.props.offValue);
1396
+ const n = Array.isArray(e.props.options) ? ye(e.props.options, t.value) : t.value;
1397
+ Array.isArray(e.props.options) && e.props.options.length ? Array.isArray(e._value) ? e._value.some((r) => he(n, r)) ? e.input(e._value.filter((r) => !he(n, r))) : e.input([...e._value, n]) : e.input([n]) : t.checked ? e.input(e.props.onValue) : e.input(e.props.offValue);
1398
1398
  }
1399
1399
  }
1400
- function ll(e, i) {
1400
+ function rr(e, i) {
1401
1401
  var t, n;
1402
- return (t = e.context) === null || t === void 0 || t.value, (n = e.context) === null || n === void 0 || n._value, Array.isArray(e._value) ? e._value.some((l) => he(ve(e.props.options, i), l)) : !1;
1402
+ return (t = e.context) === null || t === void 0 || t.value, (n = e.context) === null || n === void 0 || n._value, Array.isArray(e._value) ? e._value.some((r) => he(ye(e.props.options, i), r)) : !1;
1403
1403
  }
1404
- function al(e) {
1404
+ function lr(e) {
1405
1405
  e.on("created", () => {
1406
1406
  var i, t;
1407
- !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = il.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = ll.bind(null, e)), E(e.props, "onValue") || (e.props.onValue = !0), E(e.props, "offValue") || (e.props.offValue = !1);
1407
+ !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = ir.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = rr.bind(null, e)), E(e.props, "onValue") || (e.props.onValue = !0), E(e.props, "offValue") || (e.props.offValue = !1);
1408
1408
  }), e.hook.prop(un(e));
1409
1409
  }
1410
- function Qe(e) {
1410
+ function Je(e) {
1411
1411
  e.on("created", () => {
1412
- e.props.disabled = Q(e.props.disabled);
1413
- }), e.hook.prop(({ prop: i, value: t }, n) => (t = i === "disabled" ? Q(t) : t, n({ prop: i, value: t }))), e.on("prop:disabled", ({ payload: i }) => {
1414
- e.config.disabled = Q(i);
1412
+ e.props.disabled = J(e.props.disabled);
1413
+ }), e.hook.prop(({ prop: i, value: t }, n) => (t = i === "disabled" ? J(t) : t, n({ prop: i, value: t }))), e.on("prop:disabled", ({ payload: i }) => {
1414
+ e.config.disabled = J(i);
1415
1415
  }), e.on("created", () => {
1416
- e.config.disabled = Q(e.props.disabled);
1416
+ e.config.disabled = J(e.props.disabled);
1417
1417
  });
1418
1418
  }
1419
- function je(e, i) {
1419
+ function Re(e, i) {
1420
1420
  return (t) => {
1421
- t.store.set(ae({
1421
+ t.store.set(re({
1422
1422
  key: e,
1423
1423
  type: "ui",
1424
1424
  value: i || e,
@@ -1436,8 +1436,8 @@ function fn(e) {
1436
1436
  function Et(e, i) {
1437
1437
  i.target instanceof HTMLInputElement ? e === "dragover" && i.target.setAttribute("data-file-hover", "true") : i.preventDefault(), e === "drop" && fn(i);
1438
1438
  }
1439
- function sl(e) {
1440
- je("noFiles", "Select file")(e), je("removeAll", "Remove all")(e), je("remove")(e), Pt && (window._FormKit_File_Drop || (window.addEventListener("dragover", Et.bind(null, "dragover")), window.addEventListener("drop", Et.bind(null, "drop")), window.addEventListener("dragleave", fn), window._FormKit_File_Drop = !0)), e.hook.input((i, t) => t(Array.isArray(i) ? i : [])), e.on("created", () => {
1439
+ function ar(e) {
1440
+ Re("noFiles", "Select file")(e), Re("removeAll", "Remove all")(e), Re("remove")(e), Pt && (window._FormKit_File_Drop || (window.addEventListener("dragover", Et.bind(null, "dragover")), window.addEventListener("drop", Et.bind(null, "drop")), window.addEventListener("dragleave", fn), window._FormKit_File_Drop = !0)), e.hook.input((i, t) => t(Array.isArray(i) ? i : [])), e.on("created", () => {
1441
1441
  Array.isArray(e.value) || e.input([], !1), e.context && (e.context.handlers.resetFiles = (i) => {
1442
1442
  if (i.preventDefault(), e.input([]), e.props.id && Pt) {
1443
1443
  const t = document.getElementById(e.props.id);
@@ -1445,27 +1445,27 @@ function sl(e) {
1445
1445
  }
1446
1446
  }, e.context.handlers.files = (i) => {
1447
1447
  var t, n;
1448
- const l = [];
1448
+ const r = [];
1449
1449
  if (i.target instanceof HTMLInputElement && i.target.files) {
1450
- for (let s = 0; s < i.target.files.length; s++) {
1451
- let r;
1452
- (r = i.target.files.item(s)) && l.push({ name: r.name, file: r });
1450
+ for (let a = 0; a < i.target.files.length; a++) {
1451
+ let s;
1452
+ (s = i.target.files.item(a)) && r.push({ name: s.name, file: s });
1453
1453
  }
1454
- e.input(l);
1454
+ e.input(r);
1455
1455
  }
1456
- e.context && (e.context.files = l), typeof ((t = e.props.attrs) === null || t === void 0 ? void 0 : t.onChange) == "function" && ((n = e.props.attrs) === null || n === void 0 || n.onChange(i));
1456
+ e.context && (e.context.files = r), typeof ((t = e.props.attrs) === null || t === void 0 ? void 0 : t.onChange) == "function" && ((n = e.props.attrs) === null || n === void 0 || n.onChange(i));
1457
1457
  });
1458
1458
  });
1459
1459
  }
1460
- async function rl(e, i) {
1460
+ async function sr(e, i) {
1461
1461
  i.preventDefault(), await e.settled;
1462
- const t = (n) => n.store.set(ae({
1462
+ const t = (n) => n.store.set(re({
1463
1463
  key: "submitted",
1464
1464
  value: !0,
1465
1465
  visible: !1
1466
1466
  }));
1467
1467
  if (e.walk(t), t(e), typeof e.props.onSubmitRaw == "function" && e.props.onSubmitRaw(i, e), e.ledger.value("blocking"))
1468
- typeof e.props.onSubmitInvalid == "function" && e.props.onSubmitInvalid(e), e.props.incompleteMessage !== !1 && e.store.set(ae({
1468
+ typeof e.props.onSubmitInvalid == "function" && e.props.onSubmitInvalid(e), e.props.incompleteMessage !== !1 && e.store.set(re({
1469
1469
  blocking: !1,
1470
1470
  key: "incomplete",
1471
1471
  meta: {
@@ -1477,59 +1477,59 @@ async function rl(e, i) {
1477
1477
  value: e.props.incompleteMessage || "Form incomplete."
1478
1478
  }));
1479
1479
  else if (typeof e.props.onSubmit == "function") {
1480
- const n = e.props.onSubmit(e.hook.submit.dispatch(Ve(e.value)), e);
1480
+ const n = e.props.onSubmit(e.hook.submit.dispatch(Se(e.value)), e);
1481
1481
  if (n instanceof Promise) {
1482
- const l = e.props.disabled === void 0 && e.props.submitBehavior !== "live";
1483
- l && (e.props.disabled = !0), e.store.set(ae({
1482
+ const r = e.props.disabled === void 0 && e.props.submitBehavior !== "live";
1483
+ r && (e.props.disabled = !0), e.store.set(re({
1484
1484
  key: "loading",
1485
1485
  value: !0,
1486
1486
  visible: !1
1487
- })), await n, l && (e.props.disabled = !1), e.store.remove("loading");
1487
+ })), await n, r && (e.props.disabled = !1), e.store.remove("loading");
1488
1488
  }
1489
1489
  } else
1490
1490
  i.target instanceof HTMLFormElement && i.target.submit();
1491
1491
  }
1492
- function ol(e) {
1492
+ function or(e) {
1493
1493
  e.props.isForm = !0, e.on("created", () => {
1494
1494
  var i;
1495
- !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.submit = rl.bind(null, e)), E(e.props, "actions") || (e.props.actions = !0);
1495
+ !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.submit = sr.bind(null, e)), E(e.props, "actions") || (e.props.actions = !0);
1496
1496
  }), e.on("settled:blocking", () => e.store.remove("incomplete"));
1497
1497
  }
1498
- function ul(e) {
1498
+ function ur(e) {
1499
1499
  e.props.ignore === void 0 && (e.props.ignore = !0, e.parent = null);
1500
1500
  }
1501
- function fl(e) {
1501
+ function fr(e) {
1502
1502
  e.on("created", () => {
1503
1503
  e.context && (e.context.initialValue = e.value || "");
1504
1504
  });
1505
1505
  }
1506
- function cl(e, i) {
1507
- i.target instanceof HTMLInputElement && e.input(ve(e.props.options, i.target.value));
1506
+ function cr(e, i) {
1507
+ i.target instanceof HTMLInputElement && e.input(ye(e.props.options, i.target.value));
1508
1508
  }
1509
- function pl(e, i) {
1509
+ function pr(e, i) {
1510
1510
  var t, n;
1511
- return (t = e.context) === null || t === void 0 || t.value, (n = e.context) === null || n === void 0 || n._value, he(ve(e.props.options, i), e._value);
1511
+ return (t = e.context) === null || t === void 0 || t.value, (n = e.context) === null || n === void 0 || n._value, he(ye(e.props.options, i), e._value);
1512
1512
  }
1513
- function dl(e) {
1513
+ function dr(e) {
1514
1514
  e.on("created", () => {
1515
1515
  var i, t;
1516
- Array.isArray(e.props.options) || Ae(350, e), !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = cl.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = pl.bind(null, e));
1516
+ Array.isArray(e.props.options) || Le(350, e), !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = cr.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = pr.bind(null, e));
1517
1517
  }), e.hook.prop(un(e));
1518
1518
  }
1519
- function ml(e, i) {
1519
+ function mr(e, i) {
1520
1520
  e.context && e.context.value;
1521
1521
  const t = "__original" in i ? i.__original : i.value;
1522
1522
  function n() {
1523
- return !e.props.options.some((l) => ("__original" in l ? l.__original : l.value) === null);
1523
+ return !e.props.options.some((r) => ("__original" in r ? r.__original : r.value) === null);
1524
1524
  }
1525
- return Array.isArray(e._value) ? e._value.some((l) => he(l, t)) : (e._value === void 0 || e._value === null && n()) && i.attrs && i.attrs["data-is-placeholder"] ? !0 : he(t, e._value);
1525
+ return Array.isArray(e._value) ? e._value.some((r) => he(r, t)) : (e._value === void 0 || e._value === null && n()) && i.attrs && i.attrs["data-is-placeholder"] ? !0 : he(t, e._value);
1526
1526
  }
1527
- async function bl(e, i) {
1527
+ async function br(e, i) {
1528
1528
  var t;
1529
1529
  typeof ((t = e.props.attrs) === null || t === void 0 ? void 0 : t.onChange) == "function" && (await new Promise((n) => setTimeout(n, 0)), await e.settled, e.props.attrs.onChange(i));
1530
1530
  }
1531
- function yl(e, i) {
1532
- const t = i.target, n = t.hasAttribute("multiple") ? Array.from(t.selectedOptions).map((l) => ve(e.props.options, l.value)) : ve(e.props.options, t.value);
1531
+ function yr(e, i) {
1532
+ const t = i.target, n = t.hasAttribute("multiple") ? Array.from(t.selectedOptions).map((r) => ye(e.props.options, r.value)) : ye(e.props.options, t.value);
1533
1533
  e.input(n);
1534
1534
  }
1535
1535
  function Mt(e, i) {
@@ -1546,167 +1546,167 @@ function Mt(e, i) {
1546
1546
  ...e
1547
1547
  ];
1548
1548
  }
1549
- function vl(e) {
1549
+ function hr(e) {
1550
1550
  e.on("created", () => {
1551
1551
  var i, t, n;
1552
- const l = Q((i = e.props.attrs) === null || i === void 0 ? void 0 : i.multiple);
1553
- !l && e.props.placeholder && Array.isArray(e.props.options) && (e.hook.prop(({ prop: s, value: r }, o) => (s === "options" && (r = Mt(r, e.props.placeholder)), o({ prop: s, value: r }))), e.props.options = Mt(e.props.options, e.props.placeholder)), l ? e.value === void 0 && e.input([], !1) : e.context && !e.context.options && (e.props.attrs = Object.assign({}, e.props.attrs, {
1552
+ const r = J((i = e.props.attrs) === null || i === void 0 ? void 0 : i.multiple);
1553
+ !r && e.props.placeholder && Array.isArray(e.props.options) && (e.hook.prop(({ prop: a, value: s }, o) => (a === "options" && (s = Mt(s, e.props.placeholder)), o({ prop: a, value: s }))), e.props.options = Mt(e.props.options, e.props.placeholder)), r ? e.value === void 0 && e.input([], !1) : e.context && !e.context.options && (e.props.attrs = Object.assign({}, e.props.attrs, {
1554
1554
  value: e._value
1555
- }), e.on("input", ({ payload: s }) => {
1555
+ }), e.on("input", ({ payload: a }) => {
1556
1556
  e.props.attrs = Object.assign({}, e.props.attrs, {
1557
- value: s
1557
+ value: a
1558
1558
  });
1559
- })), !((t = e.context) === null || t === void 0) && t.handlers && (e.context.handlers.selectInput = yl.bind(null, e), e.context.handlers.onChange = bl.bind(null, e)), !((n = e.context) === null || n === void 0) && n.fns && (e.context.fns.isSelected = ml.bind(null, e), e.context.fns.showPlaceholder = (s, r) => {
1559
+ })), !((t = e.context) === null || t === void 0) && t.handlers && (e.context.handlers.selectInput = yr.bind(null, e), e.context.handlers.onChange = br.bind(null, e)), !((n = e.context) === null || n === void 0) && n.fns && (e.context.fns.isSelected = mr.bind(null, e), e.context.fns.showPlaceholder = (a, s) => {
1560
1560
  if (!Array.isArray(e.props.options))
1561
1561
  return !1;
1562
- const o = e.props.options.some((u) => {
1563
- if (u.attrs && "data-is-placeholder" in u.attrs)
1562
+ const o = e.props.options.some((c) => {
1563
+ if (c.attrs && "data-is-placeholder" in c.attrs)
1564
1564
  return !1;
1565
- const b = "__original" in u ? u.__original : u.value;
1566
- return Oe(s, b);
1565
+ const y = "__original" in c ? c.__original : c.value;
1566
+ return Ve(a, y);
1567
1567
  });
1568
- return r && !o ? !0 : void 0;
1568
+ return s && !o ? !0 : void 0;
1569
1569
  });
1570
1570
  }), e.hook.input((i, t) => {
1571
- var n, l, s;
1572
- return !e.props.placeholder && i === void 0 && Array.isArray((n = e.props) === null || n === void 0 ? void 0 : n.options) && e.props.options.length && !Q((s = (l = e.props) === null || l === void 0 ? void 0 : l.attrs) === null || s === void 0 ? void 0 : s.multiple) && (i = "__original" in e.props.options[0] ? e.props.options[0].__original : e.props.options[0].value), t(i);
1571
+ var n, r, a;
1572
+ return !e.props.placeholder && i === void 0 && Array.isArray((n = e.props) === null || n === void 0 ? void 0 : n.options) && e.props.options.length && !J((a = (r = e.props) === null || r === void 0 ? void 0 : r.attrs) === null || a === void 0 ? void 0 : a.multiple) && (i = "__original" in e.props.options[0] ? e.props.options[0].__original : e.props.options[0].value), t(i);
1573
1573
  });
1574
1574
  }
1575
- function de(e, i) {
1575
+ function pe(e, i) {
1576
1576
  return (t) => {
1577
1577
  t.props[`${e}Icon`] === void 0 && (t.props[`${e}Icon`] = `default:${i}`);
1578
1578
  };
1579
1579
  }
1580
- function Ne(e) {
1580
+ function qe(e) {
1581
1581
  return typeof e == "object" && ("$el" in e || "$cmp" in e || "$formkit" in e);
1582
1582
  }
1583
1583
  function ut(e) {
1584
- return !!(pe(e) && e.if && e.if.startsWith("$slots.") && typeof e.then == "string" && e.then.startsWith("$slots.") && "else" in e);
1584
+ return !!(ce(e) && e.if && e.if.startsWith("$slots.") && typeof e.then == "string" && e.then.startsWith("$slots.") && "else" in e);
1585
1585
  }
1586
- function we(e, i = {}) {
1587
- return typeof e == "string" ? Ne(i) || typeof i == "string" ? i : e : Array.isArray(e) ? Ne(i) ? i : e : Ye(e, i);
1586
+ function $e(e, i = {}) {
1587
+ return typeof e == "string" ? qe(i) || typeof i == "string" ? i : e : Array.isArray(e) ? qe(i) ? i : e : Ze(e, i);
1588
1588
  }
1589
- function hl(e) {
1590
- return re(_e(xe("$label"), te(G(), e(), X())), ee("$help"), ne(ie("$message.value")));
1589
+ function vr(e) {
1590
+ return ae(ve(Oe("$label"), ee(Q(), e(), G())), X("$help"), te(ne("$message.value")));
1591
1591
  }
1592
- function k(e, i, t = !1) {
1592
+ function x(e, i, t = !1) {
1593
1593
  return (...n) => {
1594
- const l = (s) => {
1595
- const r = !i || typeof i == "string" ? { $el: i } : i();
1596
- return (rt(r) || ot(r)) && (r.meta || (r.meta = { section: e }), n.length && !r.children && (r.children = [
1597
- ...n.map((o) => typeof o == "string" ? o : o(s))
1598
- ]), rt(r) && (r.attrs = {
1594
+ const r = (a) => {
1595
+ const s = !i || typeof i == "string" ? { $el: i } : i();
1596
+ return (st(s) || ot(s)) && (s.meta || (s.meta = { section: e }), n.length && !s.children && (s.children = [
1597
+ ...n.map((o) => typeof o == "string" ? o : o(a))
1598
+ ]), st(s) && (s.attrs = {
1599
1599
  class: `$classes.${e}`,
1600
- ...r.attrs || {}
1600
+ ...s.attrs || {}
1601
1601
  })), {
1602
1602
  if: `$slots.${e}`,
1603
1603
  then: `$slots.${e}`,
1604
- else: e in s ? we(r, s[e]) : r
1604
+ else: e in a ? $e(s, a[e]) : s
1605
1605
  };
1606
1606
  };
1607
- return l._s = e, t ? cn(l) : l;
1607
+ return r._s = e, t ? cn(r) : r;
1608
1608
  };
1609
1609
  }
1610
1610
  function cn(e) {
1611
1611
  return (i) => [e(i)];
1612
1612
  }
1613
- function J(e, i, t) {
1614
- const n = (l) => {
1615
- const s = i(l);
1616
- if (t || Ne(s) && "if" in s || ut(s)) {
1617
- const r = {
1613
+ function Y(e, i, t) {
1614
+ const n = (r) => {
1615
+ const a = i(r);
1616
+ if (t || qe(a) && "if" in a || ut(a)) {
1617
+ const s = {
1618
1618
  if: e,
1619
- then: s
1619
+ then: a
1620
1620
  };
1621
- return t && (r.else = t(l)), r;
1621
+ return t && (s.else = t(r)), s;
1622
1622
  } else
1623
- ut(s) ? Object.assign(s.else, { if: e }) : Ne(s) && Object.assign(s, { if: e });
1624
- return s;
1623
+ ut(a) ? Object.assign(a.else, { if: e }) : qe(a) && Object.assign(a, { if: e });
1624
+ return a;
1625
1625
  };
1626
- return n._s = Ze(), n;
1626
+ return n._s = He(), n;
1627
1627
  }
1628
- function Te(e, i) {
1628
+ function je(e, i) {
1629
1629
  const t = (n) => {
1630
- const l = e({});
1631
- return ut(l) ? (Array.isArray(l.else) || (l.else = we(we(l.else, i), e._s ? n[e._s] : {})), l) : we(we(l, i), e._s ? n[e._s] : {});
1630
+ const r = e({});
1631
+ return ut(r) ? (Array.isArray(r.else) || (r.else = $e($e(r.else, i), e._s ? n[e._s] : {})), r) : $e($e(r, i), e._s ? n[e._s] : {});
1632
1632
  };
1633
1633
  return t._s = e._s, t;
1634
1634
  }
1635
- function _l(e) {
1635
+ function _r(e) {
1636
1636
  return cn(e);
1637
1637
  }
1638
- re(ne(ie("$message.value")), _e(Ui(W("prefix"), G(), qi("$label || $ui.submit.value"), X(), W("suffix"))), ee("$help")), je("submit");
1639
- re(
1640
- J(
1638
+ ae(te(ne("$message.value")), ve(Ui(z("prefix"), Q(), qi("$label || $ui.submit.value"), G(), z("suffix"))), X("$help")), Re("submit");
1639
+ ae(
1640
+ Y(
1641
1641
  "$options == undefined",
1642
1642
  /**
1643
1643
  * Single checkbox structure.
1644
1644
  */
1645
- Ue(te(G(), We(), ze(W("decorator")), X()), Te(qe("$label"), {
1645
+ We(ee(Q(), ze(), Be(z("decorator")), G()), je(Ue("$label"), {
1646
1646
  if: "$label"
1647
1647
  })),
1648
1648
  /**
1649
1649
  * Multi checkbox structure.
1650
1650
  */
1651
- tn(nn("$label"), ee("$help"), an(ln(Ue(te(G(), Te(We(), {
1651
+ tn(nn("$label"), X("$help"), ln(rn(We(ee(Q(), je(ze(), {
1652
1652
  bind: "$option.attrs",
1653
1653
  attrs: {
1654
1654
  id: "$option.attrs.id",
1655
1655
  value: "$option.value",
1656
1656
  checked: "$fns.isChecked($option.value)"
1657
1657
  }
1658
- }), ze(W("decorator")), X()), Te(qe("$option.label"), {
1658
+ }), Be(z("decorator")), G()), je(Ue("$option.label"), {
1659
1659
  if: "$option.label"
1660
- })), sn("$option.help"))))
1660
+ })), an("$option.help"))))
1661
1661
  ),
1662
1662
  // Help text only goes under the input when it is a single.
1663
- J("$options == undefined && $help", ee("$help")),
1664
- ne(ie("$message.value"))
1665
- ), de("decorator", "checkboxDecorator");
1666
- re(_e(xe("$label"), te(W("prefix", "label"), G(), Ni(), Hi(Ki(W("fileItem"), Zi("$file.name"), J("$value.length === 1", xt(W("fileRemove"), "$ui.remove.value")))), J("$value.length > 1", xt("$ui.removeAll.value")), Yi(W("noFiles"), "$ui.noFiles.value"), X(), W("suffix"))), ee("$help"), ne(ie("$message.value"))), de("fileItem", "fileItem"), de("fileRemove", "fileRemove"), de("noFiles", "noFiles");
1667
- Ji("$slots.default", ne(ie("$message.value")), Qi(Gi()));
1663
+ Y("$options == undefined && $help", X("$help")),
1664
+ te(ne("$message.value"))
1665
+ ), pe("decorator", "checkboxDecorator");
1666
+ ae(ve(Oe("$label"), ee(z("prefix", "label"), Q(), Ni(), Hi(Ki(z("fileItem"), Zi("$file.name"), Y("$value.length === 1", At(z("fileRemove"), "$ui.remove.value")))), Y("$value.length > 1", At("$ui.removeAll.value")), Yi(z("noFiles"), "$ui.noFiles.value"), G(), z("suffix"))), X("$help"), te(ne("$message.value"))), pe("fileItem", "fileItem"), pe("fileRemove", "fileRemove"), pe("noFiles", "noFiles");
1667
+ Ji("$slots.default", te(ne("$message.value")), Qi(Gi()));
1668
1668
  on("$slots.default");
1669
- _l(rn());
1669
+ _r(sn());
1670
1670
  on("$slots.default");
1671
- re(
1672
- J(
1671
+ ae(
1672
+ Y(
1673
1673
  "$options == undefined",
1674
1674
  /**
1675
1675
  * Single radio structure.
1676
1676
  */
1677
- Ue(te(G(), We(), ze(W("decorator")), X()), J("$label", qe("$label"))),
1677
+ We(ee(Q(), ze(), Be(z("decorator")), G()), Y("$label", Ue("$label"))),
1678
1678
  /**
1679
1679
  * Multi radio structure.
1680
1680
  */
1681
- tn(nn("$label"), ee("$help"), an(ln(Ue(te(G(), Te(We(), {
1681
+ tn(nn("$label"), X("$help"), ln(rn(We(ee(Q(), je(ze(), {
1682
1682
  bind: "$option.attrs",
1683
1683
  attrs: {
1684
1684
  id: "$option.attrs.id",
1685
1685
  value: "$option.value",
1686
1686
  checked: "$fns.isChecked($option.value)"
1687
1687
  }
1688
- }), ze(W("decorator")), X()), J("$option.label", qe("$option.label"))), sn("$option.help"))))
1688
+ }), Be(z("decorator")), G()), Y("$option.label", Ue("$option.label"))), an("$option.help"))))
1689
1689
  ),
1690
1690
  // Help text only goes under the input when it is a single.
1691
- J("$options === undefined && $help", ee("$help")),
1692
- ne(ie("$message.value"))
1693
- ), de("decorator", "radioDecorator");
1694
- re(_e(xe("$label"), te(W("prefix"), G(), Xi(J("$slots.default", () => "$slots.default", J("$slots.option", tl, el("$option.label")))), J("$attrs.multiple !== undefined", () => "", W("select")), X(), W("suffix"))), ee("$help"), ne(ie("$message.value"))), de("select", "select");
1695
- re(_e(xe("$label"), te(W("prefix", "label"), G(), nl(), X(), W("suffix"))), ee("$help"), ne(ie("$message.value")));
1696
- re(_e(xe("$label"), te(W("prefix", "label"), G(), rn(), X(), W("suffix"))), ee("$help"), ne(ie("$message.value")));
1697
- ae({
1691
+ Y("$options === undefined && $help", X("$help")),
1692
+ te(ne("$message.value"))
1693
+ ), pe("decorator", "radioDecorator");
1694
+ ae(ve(Oe("$label"), ee(z("prefix"), Q(), Xi(Y("$slots.default", () => "$slots.default", Y("$slots.option", tr, er("$option.label")))), Y("$attrs.multiple !== undefined", () => "", z("select")), G(), z("suffix"))), X("$help"), te(ne("$message.value"))), pe("select", "select");
1695
+ ae(ve(Oe("$label"), ee(z("prefix", "label"), Q(), nr(), G(), z("suffix"))), X("$help"), te(ne("$message.value")));
1696
+ ae(ve(Oe("$label"), ee(z("prefix", "label"), Q(), sn(), G(), z("suffix"))), X("$help"), te(ne("$message.value")));
1697
+ re({
1698
1698
  type: "state",
1699
1699
  blocking: !0,
1700
1700
  visible: !1,
1701
1701
  value: !0,
1702
1702
  key: "validating"
1703
1703
  });
1704
- let Fe;
1705
- const gl = new Promise((e) => {
1706
- }), Ge = typeof window < "u" && typeof fetch < "u";
1707
- Fe = Ge ? getComputedStyle(document.documentElement) : void 0;
1708
- const ke = {}, Xe = {};
1709
- function et(e, i) {
1704
+ let Te;
1705
+ const gr = new Promise((e) => {
1706
+ }), Qe = typeof window < "u" && typeof fetch < "u";
1707
+ Te = Qe ? getComputedStyle(document.documentElement) : void 0;
1708
+ const xe = {}, Ge = {};
1709
+ function Xe(e, i) {
1710
1710
  return (t) => {
1711
1711
  if (typeof t == "boolean")
1712
1712
  return;
@@ -1716,40 +1716,40 @@ function et(e, i) {
1716
1716
  return;
1717
1717
  const n = t.startsWith("default:");
1718
1718
  t = n ? t.split(":")[1] : t;
1719
- const l = t in ke;
1720
- let s;
1721
- if (l)
1722
- return ke[t];
1723
- if (!Xe[t]) {
1724
- if (s = $l(t), s = Ge && typeof s > "u" ? Promise.resolve(s) : s, s instanceof Promise)
1725
- Xe[t] = s.then((r) => !r && typeof t == "string" && !n ? s = typeof e == "function" ? e(t) : kl(t, i) : r).then((r) => (typeof t == "string" && (ke[n ? `default:${t}` : t] = r), r));
1726
- else if (typeof s == "string")
1727
- return ke[n ? `default:${t}` : t] = s, s;
1728
- }
1729
- return Xe[t];
1719
+ const r = t in xe;
1720
+ let a;
1721
+ if (r)
1722
+ return xe[t];
1723
+ if (!Ge[t]) {
1724
+ if (a = $r(t), a = Qe && typeof a > "u" ? Promise.resolve(a) : a, a instanceof Promise)
1725
+ Ge[t] = a.then((s) => !s && typeof t == "string" && !n ? a = typeof e == "function" ? e(t) : wr(t, i) : s).then((s) => (typeof t == "string" && (xe[n ? `default:${t}` : t] = s), s));
1726
+ else if (typeof a == "string")
1727
+ return xe[n ? `default:${t}` : t] = a, a;
1728
+ }
1729
+ return Ge[t];
1730
1730
  };
1731
1731
  }
1732
- function $l(e) {
1733
- if (Ge)
1734
- return gl.then(() => wl(e));
1732
+ function $r(e) {
1733
+ if (Qe)
1734
+ return gr.then(() => xr(e));
1735
1735
  }
1736
- function wl(e) {
1737
- const i = Fe == null ? void 0 : Fe.getPropertyValue(`--fk-icon-${e}`);
1736
+ function xr(e) {
1737
+ const i = Te == null ? void 0 : Te.getPropertyValue(`--fk-icon-${e}`);
1738
1738
  if (i) {
1739
1739
  const t = atob(i);
1740
1740
  if (t.startsWith("<svg"))
1741
- return ke[e] = t, t;
1742
- }
1743
- }
1744
- function kl(e, i) {
1745
- const t = At.startsWith("__") ? "latest" : At, n = typeof i == "function" ? i(e) : `https://cdn.jsdelivr.net/npm/@formkit/icons@${t}/dist/icons/${e}.svg`;
1746
- if (Ge)
1747
- return fetch(`${n}`).then(async (l) => {
1748
- const s = await l.text();
1749
- if (s.startsWith("<svg"))
1750
- return s;
1751
- }).catch((l) => {
1752
- console.error(l);
1741
+ return xe[e] = t, t;
1742
+ }
1743
+ }
1744
+ function wr(e, i) {
1745
+ const t = Ot.startsWith("__") ? "latest" : Ot, n = typeof i == "function" ? i(e) : `https://cdn.jsdelivr.net/npm/@formkit/icons@${t}/dist/icons/${e}.svg`;
1746
+ if (Qe)
1747
+ return fetch(`${n}`).then(async (r) => {
1748
+ const a = await r.text();
1749
+ if (a.startsWith("<svg"))
1750
+ return a;
1751
+ }).catch((r) => {
1752
+ console.error(r);
1753
1753
  });
1754
1754
  }
1755
1755
  let _t = !1;
@@ -1796,251 +1796,251 @@ const Rt = {
1796
1796
  * Deprecation warnings:
1797
1797
  */
1798
1798
  800: ({ data: e }) => `${e} is deprecated.`
1799
- }, Cl = (e, i) => {
1799
+ }, kr = (e, i) => {
1800
1800
  if (e.code in Rt) {
1801
1801
  const t = Rt[e.code];
1802
1802
  e.message = typeof t == "function" ? t(e) : t;
1803
1803
  }
1804
1804
  return i(e);
1805
1805
  };
1806
- _t || dt(Cl);
1807
- const Sl = (e, i) => {
1806
+ _t || dt(kr);
1807
+ const Sr = (e, i) => {
1808
1808
  if (e.code in jt) {
1809
1809
  const t = jt[e.code];
1810
1810
  e.message = typeof t == "function" ? t(e) : t;
1811
1811
  }
1812
1812
  return i(e);
1813
1813
  };
1814
- _t || mt(Sl);
1814
+ _t || mt(Sr);
1815
1815
  _t = !0;
1816
- const tt = {};
1817
- let U;
1818
- const oe = /* @__PURE__ */ new Map(), Vl = "__raw__", Il = /[a-zA-Z0-9\-][cC]lass$/;
1819
- function Ll(e, i) {
1820
- const t = Le(null);
1816
+ const et = {};
1817
+ let W;
1818
+ const se = /* @__PURE__ */ new Map(), Cr = "__raw__", Ir = /[a-zA-Z0-9\-][cC]lass$/;
1819
+ function Vr(e, i) {
1820
+ const t = Ie(null);
1821
1821
  if (e === "get") {
1822
- const l = {};
1823
- return t.value = Ol.bind(null, l), t;
1822
+ const r = {};
1823
+ return t.value = Lr.bind(null, r), t;
1824
1824
  }
1825
1825
  const n = e.split(".");
1826
- return le(() => {
1827
- t.value = gt(He(i) ? i.value : i, n);
1826
+ return ie(() => {
1827
+ t.value = gt(Ke(i) ? i.value : i, n);
1828
1828
  }), t;
1829
1829
  }
1830
1830
  function gt(e, i) {
1831
1831
  if (Array.isArray(e)) {
1832
- for (const l of e) {
1833
- const s = l !== !1 && gt(l, i);
1834
- if (s !== void 0)
1835
- return s;
1832
+ for (const r of e) {
1833
+ const a = r !== !1 && gt(r, i);
1834
+ if (a !== void 0)
1835
+ return a;
1836
1836
  }
1837
1837
  return;
1838
1838
  }
1839
1839
  let t, n = e;
1840
- for (const l in i) {
1841
- const s = i[l];
1840
+ for (const r in i) {
1841
+ const a = i[r];
1842
1842
  if (typeof n != "object" || n === null) {
1843
1843
  t = void 0;
1844
1844
  break;
1845
1845
  }
1846
- const r = n[s];
1847
- if (Number(l) === i.length - 1 && r !== void 0) {
1848
- t = typeof r == "function" ? r.bind(n) : r;
1846
+ const s = n[a];
1847
+ if (Number(r) === i.length - 1 && s !== void 0) {
1848
+ t = typeof s == "function" ? s.bind(n) : s;
1849
1849
  break;
1850
1850
  }
1851
- n = r;
1851
+ n = s;
1852
1852
  }
1853
1853
  return t;
1854
1854
  }
1855
- function Ol(e, i) {
1855
+ function Lr(e, i) {
1856
1856
  if (typeof i != "string")
1857
- return Ae(650);
1858
- if (i in e || (e[i] = Le(void 0)), e[i].value === void 0) {
1857
+ return Le(650);
1858
+ if (i in e || (e[i] = Ie(void 0)), e[i].value === void 0) {
1859
1859
  e[i].value = null;
1860
1860
  const t = Ht(i);
1861
1861
  t && (e[i].value = t.context), Yn(i, ({ payload: n }) => {
1862
- e[i].value = Je(n) ? n.context : n;
1862
+ e[i].value = Ye(n) ? n.context : n;
1863
1863
  });
1864
1864
  }
1865
1865
  return e[i].value;
1866
1866
  }
1867
1867
  function Tt(e, i) {
1868
- function t(_, v) {
1869
- const w = h(Y(v.if), { if: !0 }), S = u(_, v.then), p = v.else ? u(_, v.else) : null;
1870
- return [w, S, p];
1871
- }
1872
- function n(_, v) {
1873
- var w, S;
1874
- const p = h(Y(_.if));
1875
- let f = () => v, c = () => v;
1876
- return typeof _.then == "object" ? c = l(_.then, void 0) : typeof _.then == "string" && (!((w = _.then) === null || w === void 0) && w.startsWith("$")) ? c = h(Y(_.then)) : c = () => _.then, E(_, "else") && (typeof _.else == "object" ? f = l(_.else) : typeof _.else == "string" && (!((S = _.else) === null || S === void 0) && S.startsWith("$")) ? f = h(Y(_.else)) : f = () => _.else), () => p() ? c() : f();
1877
- }
1878
- function l(_, v, w = {}) {
1879
- const S = new Set(Object.keys(_ || {})), p = v ? h(Y(v)) : () => ({}), f = [
1880
- (c) => {
1881
- const $ = p();
1882
- for (const C in $)
1883
- S.has(C) || (c[C] = $[C]);
1868
+ function t(v, h) {
1869
+ const $ = w(Z(h.if), { if: !0 }), S = c(v, h.then), p = h.else ? c(v, h.else) : null;
1870
+ return [$, S, p];
1871
+ }
1872
+ function n(v, h) {
1873
+ var $, S;
1874
+ const p = w(Z(v.if));
1875
+ let u = () => h, f = () => h;
1876
+ return typeof v.then == "object" ? f = r(v.then, void 0) : typeof v.then == "string" && (!(($ = v.then) === null || $ === void 0) && $.startsWith("$")) ? f = w(Z(v.then)) : f = () => v.then, E(v, "else") && (typeof v.else == "object" ? u = r(v.else) : typeof v.else == "string" && (!((S = v.else) === null || S === void 0) && S.startsWith("$")) ? u = w(Z(v.else)) : u = () => v.else), () => p() ? f() : u();
1877
+ }
1878
+ function r(v, h, $ = {}) {
1879
+ const S = new Set(Object.keys(v || {})), p = h ? w(Z(h)) : () => ({}), u = [
1880
+ (f) => {
1881
+ const g = p();
1882
+ for (const k in g)
1883
+ S.has(k) || (f[k] = g[k]);
1884
1884
  }
1885
1885
  ];
1886
- if (_) {
1887
- if (pe(_))
1888
- return n(_, w);
1889
- for (let c in _) {
1890
- const $ = _[c];
1891
- let C;
1892
- const m = typeof $ == "string";
1893
- c.startsWith(Vl) ? (c = c.substring(7), C = () => $) : m && $.startsWith("$") && $.length > 1 && !($.startsWith("$reset") && Il.test(c)) ? C = h(Y($)) : typeof $ == "object" && pe($) ? C = n($, void 0) : typeof $ == "object" && ye($) ? C = l($) : C = () => $, f.push((d) => {
1894
- d[c] = C();
1886
+ if (v) {
1887
+ if (ce(v))
1888
+ return n(v, $);
1889
+ for (let f in v) {
1890
+ const g = v[f];
1891
+ let k;
1892
+ const m = typeof g == "string";
1893
+ f.startsWith(Cr) ? (f = f.substring(7), k = () => g) : m && g.startsWith("$") && g.length > 1 && !(g.startsWith("$reset") && Ir.test(f)) ? k = w(Z(g)) : typeof g == "object" && ce(g) ? k = n(g, void 0) : typeof g == "object" && be(g) ? k = r(g) : k = () => g, u.push((d) => {
1894
+ d[f] = k();
1895
1895
  });
1896
1896
  }
1897
1897
  }
1898
1898
  return () => {
1899
- const c = Array.isArray(_) ? [] : {};
1900
- return f.forEach(($) => $(c)), c;
1899
+ const f = Array.isArray(v) ? [] : {};
1900
+ return u.forEach((g) => g(f)), f;
1901
1901
  };
1902
1902
  }
1903
- function s(_, v) {
1904
- let w = null, S = () => null, p = !1, f = null, c = null, $ = null, C = !1;
1905
- const m = zi(v);
1906
- if (rt(m) ? (w = m.$el, S = m.$el !== "text" ? l(m.attrs, m.bind) : () => null) : ot(m) ? (typeof m.$cmp == "string" ? E(_, m.$cmp) ? w = _[m.$cmp] : (w = m.$cmp, C = !0) : w = m.$cmp, S = l(m.props, m.bind)) : pe(m) && ([p, f, c] = t(_, m)), !pe(m) && "if" in m ? p = h(Y(m.if)) : !pe(m) && w === null && (p = () => !0), "children" in m && m.children)
1903
+ function a(v, h) {
1904
+ let $ = null, S = () => null, p = !1, u = null, f = null, g = null, k = !1;
1905
+ const m = zi(h);
1906
+ if (st(m) ? ($ = m.$el, S = m.$el !== "text" ? r(m.attrs, m.bind) : () => null) : ot(m) ? (typeof m.$cmp == "string" ? E(v, m.$cmp) ? $ = v[m.$cmp] : ($ = m.$cmp, k = !0) : $ = m.$cmp, S = r(m.props, m.bind)) : ce(m) && ([p, u, f] = t(v, m)), !ce(m) && "if" in m ? p = w(Z(m.if)) : !ce(m) && $ === null && (p = () => !0), "children" in m && m.children)
1907
1907
  if (typeof m.children == "string")
1908
1908
  if (m.children.startsWith("$slots."))
1909
- w = w === "text" ? "slot" : w, f = h(Y(m.children));
1909
+ $ = $ === "text" ? "slot" : $, u = w(Z(m.children));
1910
1910
  else if (m.children.startsWith("$") && m.children.length > 1) {
1911
- const d = h(Y(m.children));
1912
- f = () => String(d());
1911
+ const d = w(Z(m.children));
1912
+ u = () => String(d());
1913
1913
  } else
1914
- f = () => String(m.children);
1914
+ u = () => String(m.children);
1915
1915
  else if (Array.isArray(m.children))
1916
- f = u(_, m.children);
1916
+ u = c(v, m.children);
1917
1917
  else {
1918
- const [d, y, g] = t(_, m.children);
1919
- f = (V) => d && d() ? y && y(V) : g && g(V);
1918
+ const [d, b, _] = t(v, m.children);
1919
+ u = (C) => d && d() ? b && b(C) : _ && _(C);
1920
1920
  }
1921
1921
  if (ot(m))
1922
- if (f) {
1923
- const d = f;
1924
- f = (y) => ({
1925
- default(g, V) {
1926
- var O, R, I, F;
1927
- const z = U;
1928
- V && (U = V), g && ((O = oe.get(U)) === null || O === void 0 || O.unshift(g)), y && ((R = oe.get(U)) === null || R === void 0 || R.unshift(y));
1929
- const Z = d(y);
1930
- return g && ((I = oe.get(U)) === null || I === void 0 || I.shift()), y && ((F = oe.get(U)) === null || F === void 0 || F.shift()), U = z, Z;
1922
+ if (u) {
1923
+ const d = u;
1924
+ u = (b) => ({
1925
+ default(_, C) {
1926
+ var L, M, I, T;
1927
+ const B = W;
1928
+ C && (W = C), _ && ((L = se.get(W)) === null || L === void 0 || L.unshift(_)), b && ((M = se.get(W)) === null || M === void 0 || M.unshift(b));
1929
+ const H = d(b);
1930
+ return _ && ((I = se.get(W)) === null || I === void 0 || I.shift()), b && ((T = se.get(W)) === null || T === void 0 || T.shift()), W = B, H;
1931
1931
  }
1932
- }), f.slot = !0;
1932
+ }), u.slot = !0;
1933
1933
  } else
1934
- f = () => ({});
1934
+ u = () => ({});
1935
1935
  if ("for" in m && m.for) {
1936
1936
  const d = m.for.length === 3 ? m.for[2] : m.for[1];
1937
- $ = [
1938
- typeof d == "string" && d.startsWith("$") ? h(Y(d)) : () => d,
1937
+ g = [
1938
+ typeof d == "string" && d.startsWith("$") ? w(Z(d)) : () => d,
1939
1939
  m.for[0],
1940
1940
  m.for.length === 3 ? String(m.for[1]) : null
1941
1941
  ];
1942
1942
  }
1943
- return [p, w, S, f, c, $, C];
1943
+ return [p, $, S, u, f, g, k];
1944
1944
  }
1945
- function r(_, v) {
1946
- const w = _(v), S = U;
1947
- return Object.keys(w).reduce((p, f) => {
1948
- const c = w && w[f];
1949
- return p[f] = ($) => c && c($, S) || null, p;
1945
+ function s(v, h) {
1946
+ const $ = v(h), S = W;
1947
+ return Object.keys($).reduce((p, u) => {
1948
+ const f = $ && $[u];
1949
+ return p[u] = (g) => f && f(g, S) || null, p;
1950
1950
  }, {});
1951
1951
  }
1952
- function o(_, v) {
1953
- const [w, S, p, f, c, $, C] = s(_, v);
1952
+ function o(v, h) {
1953
+ const [$, S, p, u, f, g, k] = a(v, h);
1954
1954
  let m = (d) => {
1955
- if (w && S === null && f)
1956
- return w() ? f(d) : c && c(d);
1957
- if (S && (!w || w())) {
1958
- if (S === "text" && f)
1959
- return wn(String(f()));
1960
- if (S === "slot" && f)
1961
- return f(d);
1962
- const y = C ? T(S) : S, g = f != null && f.slot ? r(f, d) : null;
1963
- return Ce(y, p(), g || (f ? f(d) : []));
1955
+ if ($ && S === null && u)
1956
+ return $() ? u(d) : f && f(d);
1957
+ if (S && (!$ || $())) {
1958
+ if (S === "text" && u)
1959
+ return xn(String(u()));
1960
+ if (S === "slot" && u)
1961
+ return u(d);
1962
+ const b = k ? j(S) : S, _ = u != null && u.slot ? s(u, d) : null;
1963
+ return we(b, p(), _ || (u ? u(d) : []));
1964
1964
  }
1965
- return typeof c == "function" ? c(d) : c;
1965
+ return typeof f == "function" ? f(d) : f;
1966
1966
  };
1967
- if ($) {
1968
- const d = m, [y, g, V] = $;
1967
+ if (g) {
1968
+ const d = m, [b, _, C] = g;
1969
1969
  m = () => {
1970
- const O = y(), R = isNaN(O) ? O : Array(Number(O)).fill(0).map((Z, K) => K), I = [];
1971
- if (typeof R != "object")
1970
+ const L = b(), M = isNaN(L) ? L : Array(Number(L)).fill(0).map((H, N) => N), I = [];
1971
+ if (typeof M != "object")
1972
1972
  return null;
1973
- const F = oe.get(U) || [], z = Array.isArray(R);
1974
- for (const Z in R) {
1975
- if (z && Z in Array.prototype)
1973
+ const T = se.get(W) || [], B = Array.isArray(M);
1974
+ for (const H in M) {
1975
+ if (B && H in Array.prototype)
1976
1976
  continue;
1977
- const K = Object.defineProperty({
1978
- ...F.reduce((j, H) => j.__idata ? { ...j, ...H } : H, {}),
1979
- [g]: R[Z],
1980
- ...V !== null ? { [V]: z ? Number(Z) : Z } : {}
1977
+ const N = Object.defineProperty({
1978
+ ...T.reduce((R, K) => R.__idata ? { ...R, ...K } : K, {}),
1979
+ [_]: M[H],
1980
+ ...C !== null ? { [C]: B ? Number(H) : H } : {}
1981
1981
  }, "__idata", { enumerable: !1, value: !0 });
1982
- F.unshift(K), I.push(d.bind(null, K)()), F.shift();
1982
+ T.unshift(N), I.push(d.bind(null, N)()), T.shift();
1983
1983
  }
1984
1984
  return I;
1985
1985
  };
1986
1986
  }
1987
1987
  return m;
1988
1988
  }
1989
- function u(_, v) {
1990
- if (Array.isArray(v)) {
1991
- const S = v.map(o.bind(null, _));
1992
- return (p) => S.map((f) => f(p));
1993
- }
1994
- const w = o(_, v);
1995
- return (S) => w(S);
1996
- }
1997
- const b = [];
1998
- function h(_, v = {}) {
1999
- const w = {};
2000
- return b.push((S, p) => {
2001
- w[p] = _.provide((f) => S(f, v));
2002
- }), () => w[U]();
2003
- }
2004
- return function(v, w) {
2005
- const S = JSON.stringify(i), [p, f] = E(tt, S) ? tt[S] : [u(e, i), b];
2006
- return tt[S] = [p, f], f.forEach((c) => {
2007
- c(v, w);
2008
- }), () => (U = w, p());
1989
+ function c(v, h) {
1990
+ if (Array.isArray(h)) {
1991
+ const S = h.map(o.bind(null, v));
1992
+ return (p) => S.map((u) => u(p));
1993
+ }
1994
+ const $ = o(v, h);
1995
+ return (S) => $(S);
1996
+ }
1997
+ const y = [];
1998
+ function w(v, h = {}) {
1999
+ const $ = {};
2000
+ return y.push((S, p) => {
2001
+ $[p] = v.provide((u) => S(u, h));
2002
+ }), () => $[W]();
2003
+ }
2004
+ return function(h, $) {
2005
+ const S = JSON.stringify(i), [p, u] = E(et, S) ? et[S] : [c(e, i), y];
2006
+ return et[S] = [p, u], u.forEach((f) => {
2007
+ f(h, $);
2008
+ }), () => (W = $, p());
2009
2009
  };
2010
2010
  }
2011
2011
  function pn(e, i) {
2012
- const t = oe.get(U) || [];
2012
+ const t = se.get(W) || [];
2013
2013
  let n;
2014
2014
  return t.length && (n = gt(t, e.split("."))), n === void 0 ? i : n;
2015
2015
  }
2016
- function Al(e, i) {
2016
+ function Or(e, i) {
2017
2017
  return new Proxy(e, {
2018
2018
  get(...t) {
2019
2019
  let n;
2020
- const l = t[1];
2021
- if (typeof l == "string") {
2022
- const s = U;
2023
- U = i, n = pn(l, void 0), U = s;
2020
+ const r = t[1];
2021
+ if (typeof r == "string") {
2022
+ const a = W;
2023
+ W = i, n = pn(r, void 0), W = a;
2024
2024
  }
2025
2025
  return n !== void 0 ? n : Reflect.get(...t);
2026
2026
  }
2027
2027
  });
2028
2028
  }
2029
2029
  function Ft(e, i, t) {
2030
- return e((n, l = {}) => n.reduce((s, r) => {
2031
- if (r.startsWith("slots.")) {
2032
- const o = r.substring(6), u = () => i.slots && E(i.slots, o) && typeof i.slots[o] == "function";
2033
- if (l.if)
2034
- s[r] = u;
2030
+ return e((n, r = {}) => n.reduce((a, s) => {
2031
+ if (s.startsWith("slots.")) {
2032
+ const o = s.substring(6), c = () => i.slots && E(i.slots, o) && typeof i.slots[o] == "function";
2033
+ if (r.if)
2034
+ a[s] = c;
2035
2035
  else if (i.slots) {
2036
- const b = Al(i, t);
2037
- s[r] = () => u() ? i.slots[o](b) : null;
2036
+ const y = Or(i, t);
2037
+ a[s] = () => c() ? i.slots[o](y) : null;
2038
2038
  }
2039
2039
  } else {
2040
- const o = Ll(r, i);
2041
- s[r] = () => pn(r, o.value);
2040
+ const o = Vr(s, i);
2041
+ a[s] = () => pn(s, o.value);
2042
2042
  }
2043
- return s;
2043
+ return a;
2044
2044
  }, {}), t);
2045
2045
  }
2046
2046
  let Dt = 0;
@@ -2063,18 +2063,18 @@ const dn = P({
2063
2063
  setup(e, i) {
2064
2064
  const t = zt();
2065
2065
  let n = Symbol(String(Dt++));
2066
- oe.set(n, []);
2067
- let l = Tt(e.library, e.schema), s, r;
2068
- return me(() => e.schema, (o, u) => {
2069
- var b;
2070
- n = Symbol(String(Dt++)), l = Tt(e.library, e.schema), s = Ft(l, r, n), o === u && ((b = t == null ? void 0 : t.proxy) === null || b === void 0 ? void 0 : b.$forceUpdate)();
2071
- }, { deep: !0 }), le(() => {
2072
- r = Object.assign(yn(e.data), {
2066
+ se.set(n, []);
2067
+ let r = Tt(e.library, e.schema), a, s;
2068
+ return de(() => e.schema, (o, c) => {
2069
+ var y;
2070
+ n = Symbol(String(Dt++)), r = Tt(e.library, e.schema), a = Ft(r, s, n), o === c && ((y = t == null ? void 0 : t.proxy) === null || y === void 0 ? void 0 : y.$forceUpdate)();
2071
+ }, { deep: !0 }), ie(() => {
2072
+ s = Object.assign(yn(e.data), {
2073
2073
  slots: i.slots
2074
- }), s = Ft(l, r, n);
2075
- }), () => s();
2074
+ }), a = Ft(r, s, n);
2075
+ }), () => a();
2076
2076
  }
2077
- }), xl = {
2077
+ }), Ar = {
2078
2078
  config: {
2079
2079
  type: Object,
2080
2080
  default: {}
@@ -2142,9 +2142,9 @@ const dn = P({
2142
2142
  type: [String, Function],
2143
2143
  required: !1
2144
2144
  }
2145
- }, Pl = xl, Ke = Symbol("FormKitParent");
2145
+ }, Pr = Ar, Ne = Symbol("FormKitParent");
2146
2146
  P({
2147
- props: Pl,
2147
+ props: Pr,
2148
2148
  emits: {
2149
2149
  /* eslint-disable @typescript-eslint/no-unused-vars */
2150
2150
  input: (e, i) => !0,
@@ -2158,48 +2158,48 @@ P({
2158
2158
  },
2159
2159
  inheritAttrs: !1,
2160
2160
  setup(e, i) {
2161
- const t = Tl(e, i);
2162
- if (t.props.definition || N(600, t), t.props.definition.component)
2161
+ const t = Tr(e, i);
2162
+ if (t.props.definition || q(600, t), t.props.definition.component)
2163
2163
  return () => {
2164
- var r;
2165
- return Ce((r = t.props.definition) === null || r === void 0 ? void 0 : r.component, {
2164
+ var s;
2165
+ return we((s = t.props.definition) === null || s === void 0 ? void 0 : s.component, {
2166
2166
  context: t.context
2167
2167
  }, { ...i.slots });
2168
2168
  };
2169
- const n = Le([]), l = () => {
2170
- var r, o;
2171
- const u = (o = (r = t.props) === null || r === void 0 ? void 0 : r.definition) === null || o === void 0 ? void 0 : o.schema;
2172
- u || N(601, t), n.value = typeof u == "function" ? u({ ...e.sectionsSchema }) : u;
2169
+ const n = Ie([]), r = () => {
2170
+ var s, o;
2171
+ const c = (o = (s = t.props) === null || s === void 0 ? void 0 : s.definition) === null || o === void 0 ? void 0 : o.schema;
2172
+ c || q(601, t), n.value = typeof c == "function" ? c({ ...e.sectionsSchema }) : c;
2173
2173
  };
2174
- l(), t.on("schema", l), i.emit("node", t);
2175
- const s = t.props.definition.library;
2176
- return i.expose({ node: t }), () => Ce(dn, { schema: n.value, data: t.context, library: s }, { ...i.slots });
2174
+ r(), t.on("schema", r), i.emit("node", t);
2175
+ const a = t.props.definition.library;
2176
+ return i.expose({ node: t }), () => we(dn, { schema: n.value, data: t.context, library: a }, { ...i.slots });
2177
2177
  }
2178
2178
  });
2179
2179
  const mn = Symbol.for("FormKitOptions"), ft = Symbol();
2180
- function El(e, i) {
2181
- const t = {}, n = (r) => {
2182
- for (const o of r)
2183
- o.__str in t && t[o.__str](), t[o.__str] = me(Rl.bind(null, e, o), s.bind(null, o), { deep: !1 });
2184
- }, s = Ml(e, i, n, (r) => {
2185
- if (r.length)
2180
+ function Er(e, i) {
2181
+ const t = {}, n = (s) => {
2182
+ for (const o of s)
2183
+ o.__str in t && t[o.__str](), t[o.__str] = de(Rr.bind(null, e, o), a.bind(null, o), { deep: !1 });
2184
+ }, a = Mr(e, i, n, (s) => {
2185
+ if (s.length)
2186
2186
  for (const o in t)
2187
- `${o}`.startsWith(`${r.__str}.`) && (t[o](), delete t[o]);
2187
+ `${o}`.startsWith(`${s.__str}.`) && (t[o](), delete t[o]);
2188
2188
  });
2189
2189
  n($t(e));
2190
2190
  }
2191
- function Ml(e, i, t, n) {
2192
- return (l) => {
2193
- const s = bn(e, l);
2194
- s !== ft && (l.__deep && n(l), typeof s == "object" && t($t(s, [l], ...l)), i(l, s, e));
2191
+ function Mr(e, i, t, n) {
2192
+ return (r) => {
2193
+ const a = bn(e, r);
2194
+ a !== ft && (r.__deep && n(r), typeof a == "object" && t($t(a, [r], ...r)), i(r, a, e));
2195
2195
  };
2196
2196
  }
2197
- function Rl(e, i) {
2197
+ function Rr(e, i) {
2198
2198
  const t = bn(e, i);
2199
2199
  return t && typeof t == "object" ? Object.keys(t) : t;
2200
2200
  }
2201
2201
  function bn(e, i) {
2202
- if (He(e)) {
2202
+ if (Ke(e)) {
2203
2203
  if (i.length === 0)
2204
2204
  return e.value;
2205
2205
  e = e.value;
@@ -2213,7 +2213,7 @@ function $t(e, i = [], ...t) {
2213
2213
  const n = Object.defineProperty([], "__str", {
2214
2214
  value: ""
2215
2215
  });
2216
- if (e = He(e) ? e.value : e, e && typeof e == "object")
2216
+ if (e = Ke(e) ? e.value : e, e && typeof e == "object")
2217
2217
  Object.defineProperty(n, "__deep", { value: !0 }), i.push(n);
2218
2218
  else
2219
2219
  return [n];
@@ -2221,17 +2221,17 @@ function $t(e, i = [], ...t) {
2221
2221
  if (e === null || typeof e != "object")
2222
2222
  return i;
2223
2223
  for (const n in e) {
2224
- const l = t.concat(n);
2225
- Object.defineProperty(l, "__str", { value: l.join(".") });
2226
- const s = e[n];
2227
- ye(s) || Array.isArray(s) ? (i.push(Object.defineProperty(l, "__deep", { value: !0 })), i = i.concat($t(s, [], ...l))) : i.push(l);
2224
+ const r = t.concat(n);
2225
+ Object.defineProperty(r, "__str", { value: r.join(".") });
2226
+ const a = e[n];
2227
+ be(a) || Array.isArray(a) ? (i.push(Object.defineProperty(r, "__deep", { value: !0 })), i = i.concat($t(a, [], ...r))) : i.push(r);
2228
2228
  }
2229
2229
  return i;
2230
2230
  }
2231
- function De(e) {
2232
- return e === null || typeof e != "object" || (kt(e) ? e = gn(e) : He(e) && (e = kt(e.value) ? De(e.value) : e.value)), e;
2231
+ function Fe(e) {
2232
+ return e === null || typeof e != "object" || (wt(e) ? e = gn(e) : Ke(e) && (e = wt(e.value) ? Fe(e.value) : e.value)), e;
2233
2233
  }
2234
- const nt = [
2234
+ const tt = [
2235
2235
  "help",
2236
2236
  "label",
2237
2237
  "ignore",
@@ -2246,137 +2246,137 @@ const nt = [
2246
2246
  ];
2247
2247
  function Bt(e, i) {
2248
2248
  i.classes && Object.keys(i.classes).forEach((t) => {
2249
- typeof t == "string" && (e.props[`_${t}Class`] = i.classes[t], lt(i.classes[t]) && t === "inner" && Object.values(i.classes[t]));
2249
+ typeof t == "string" && (e.props[`_${t}Class`] = i.classes[t], rt(i.classes[t]) && t === "inner" && Object.values(i.classes[t]));
2250
2250
  });
2251
2251
  }
2252
- function jl(e) {
2252
+ function jr(e) {
2253
2253
  return e ? ["Submit", "SubmitRaw", "SubmitInvalid"].reduce((t, n) => {
2254
- const l = `on${n}`;
2255
- return l in e && typeof e[l] == "function" && (t[l] = e[l]), t;
2254
+ const r = `on${n}`;
2255
+ return r in e && typeof e[r] == "function" && (t[r] = e[r]), t;
2256
2256
  }, {}) : {};
2257
2257
  }
2258
- function Tl(e, i, t = {}) {
2258
+ function Tr(e, i, t = {}) {
2259
2259
  var n;
2260
- const l = Object.assign({}, Se(mn) || {}, t), s = zt(), r = jl(s == null ? void 0 : s.vnode.props), o = "modelValue" in ((n = s == null ? void 0 : s.vnode.props) !== null && n !== void 0 ? n : {}), u = e.modelValue !== void 0 ? e.modelValue : ue(i.attrs.value);
2261
- function b() {
2260
+ const r = Object.assign({}, ke(mn) || {}, t), a = zt(), s = jr(a == null ? void 0 : a.vnode.props), o = "modelValue" in ((n = a == null ? void 0 : a.vnode.props) !== null && n !== void 0 ? n : {}), c = e.modelValue !== void 0 ? e.modelValue : oe(i.attrs.value);
2261
+ function y() {
2262
2262
  const d = {
2263
- ...ce(e),
2264
- ...r
2265
- }, y = Ct(ce(i.attrs), nt);
2266
- y.key || (y.key = Ze()), d.attrs = y;
2267
- const g = St(ce(i.attrs), nt);
2268
- for (const O in g)
2269
- d[Ee(O)] = g[O];
2270
- const V = { props: {} };
2271
- return Bt(V, e), Object.assign(d, V.props), typeof d.type != "string" && (d.definition = d.type, delete d.type), d;
2272
- }
2273
- const h = b(), _ = h.ignore ? null : e.parent || Se(Ke, null), v = Di(Ye(l || {}, {
2263
+ ...fe(e),
2264
+ ...s
2265
+ }, b = kt(fe(i.attrs), tt);
2266
+ b.key || (b.key = He()), d.attrs = b;
2267
+ const _ = St(fe(i.attrs), tt);
2268
+ for (const L in _)
2269
+ d[Pe(L)] = _[L];
2270
+ const C = { props: {} };
2271
+ return Bt(C, e), Object.assign(d, C.props), typeof d.type != "string" && (d.definition = d.type, delete d.type), d;
2272
+ }
2273
+ const w = y(), v = w.ignore ? null : e.parent || ke(Ne, null), h = Di(Ze(r || {}, {
2274
2274
  name: e.name || void 0,
2275
- value: u,
2276
- parent: _,
2277
- plugins: (l.plugins || []).concat(e.plugins),
2275
+ value: c,
2276
+ parent: v,
2277
+ plugins: (r.plugins || []).concat(e.plugins),
2278
2278
  config: e.config,
2279
- props: h,
2279
+ props: w,
2280
2280
  index: e.index
2281
2281
  }, !1, !0));
2282
- v.props.definition || N(600, v);
2283
- const w = Le(new Set(v.props.definition.props || []));
2284
- v.on("added-props", ({ payload: d }) => {
2285
- Array.isArray(d) && d.forEach((y) => w.value.add(y));
2282
+ h.props.definition || q(600, h);
2283
+ const $ = Ie(new Set(h.props.definition.props || []));
2284
+ h.on("added-props", ({ payload: d }) => {
2285
+ Array.isArray(d) && d.forEach((b) => $.value.add(b));
2286
2286
  });
2287
- const S = M(() => nt.concat([...w.value]).reduce((d, y) => (typeof y == "string" ? (d.push(Ee(y)), d.push(Wt(y))) : d.push(y), d), []));
2288
- le(() => Bt(v, e));
2289
- const p = ce(e);
2287
+ const S = nt(() => tt.concat([...$.value]).reduce((d, b) => (typeof b == "string" ? (d.push(Pe(b)), d.push(Wt(b))) : d.push(b), d), []));
2288
+ ie(() => Bt(h, e));
2289
+ const p = fe(e);
2290
2290
  for (const d in p)
2291
- me(() => e[d], () => {
2292
- e[d] !== void 0 && (v.props[d] = e[d]);
2291
+ de(() => e[d], () => {
2292
+ e[d] !== void 0 && (h.props[d] = e[d]);
2293
2293
  });
2294
- const f = /* @__PURE__ */ new Set(), c = ce(i.attrs);
2295
- le(() => {
2296
- $(St(c, S.value));
2294
+ const u = /* @__PURE__ */ new Set(), f = fe(i.attrs);
2295
+ ie(() => {
2296
+ g(St(f, S.value));
2297
2297
  });
2298
- function $(d) {
2299
- f.forEach((y) => {
2300
- y(), f.delete(y);
2298
+ function g(d) {
2299
+ u.forEach((b) => {
2300
+ b(), u.delete(b);
2301
2301
  });
2302
- for (const y in d) {
2303
- const g = Ee(y);
2304
- f.add(me(() => i.attrs[y], () => {
2305
- v.props[g] = i.attrs[y];
2302
+ for (const b in d) {
2303
+ const _ = Pe(b);
2304
+ u.add(de(() => i.attrs[b], () => {
2305
+ h.props[_] = i.attrs[b];
2306
2306
  }));
2307
2307
  }
2308
2308
  }
2309
- if (le(() => {
2310
- const d = Ct(ce(i.attrs), S.value);
2311
- "multiple" in d && (d.multiple = Q(d.multiple)), v.props.attrs = Object.assign({}, v.props.attrs || {}, d);
2312
- }), le(() => {
2313
- const d = e.errors.map((y) => ae({
2314
- key: ct(y),
2309
+ if (ie(() => {
2310
+ const d = kt(fe(i.attrs), S.value);
2311
+ "multiple" in d && (d.multiple = J(d.multiple)), h.props.attrs = Object.assign({}, h.props.attrs || {}, d);
2312
+ }), ie(() => {
2313
+ const d = e.errors.map((b) => re({
2314
+ key: ct(b),
2315
2315
  type: "error",
2316
- value: y,
2316
+ value: b,
2317
2317
  meta: { source: "prop" }
2318
2318
  }));
2319
- v.store.apply(d, (y) => y.type === "error" && y.meta.source === "prop");
2320
- }), v.type !== "input") {
2321
- const d = `${v.name}-prop`;
2322
- le(() => {
2323
- const y = Object.keys(e.inputErrors);
2324
- y.length || v.clearErrors(!0, d);
2325
- const g = y.reduce((V, O) => {
2326
- let R = e.inputErrors[O];
2327
- return typeof R == "string" && (R = [R]), Array.isArray(R) && (V[O] = R.map((I) => ae({
2319
+ h.store.apply(d, (b) => b.type === "error" && b.meta.source === "prop");
2320
+ }), h.type !== "input") {
2321
+ const d = `${h.name}-prop`;
2322
+ ie(() => {
2323
+ const b = Object.keys(e.inputErrors);
2324
+ b.length || h.clearErrors(!0, d);
2325
+ const _ = b.reduce((C, L) => {
2326
+ let M = e.inputErrors[L];
2327
+ return typeof M == "string" && (M = [M]), Array.isArray(M) && (C[L] = M.map((I) => re({
2328
2328
  key: I,
2329
2329
  type: "error",
2330
2330
  value: I,
2331
2331
  meta: { source: d }
2332
- }))), V;
2332
+ }))), C;
2333
2333
  }, {});
2334
- v.store.apply(g, (V) => V.type === "error" && V.meta.source === d);
2334
+ h.store.apply(_, (C) => C.type === "error" && C.meta.source === d);
2335
2335
  });
2336
2336
  }
2337
- le(() => Object.assign(v.config, e.config)), v.type !== "input" && vn(Ke, v);
2338
- let C;
2337
+ ie(() => Object.assign(h.config, e.config)), h.type !== "input" && hn(Ne, h);
2338
+ let k;
2339
2339
  const m = /* @__PURE__ */ new WeakSet();
2340
- return v.on("modelUpdated", () => {
2341
- var d, y;
2342
- if (i.emit("inputRaw", (d = v.context) === null || d === void 0 ? void 0 : d.value, v), clearTimeout(C), C = setTimeout(i.emit, 20, "input", (y = v.context) === null || y === void 0 ? void 0 : y.value, v), o && v.context) {
2343
- const g = De(v.context.value);
2344
- lt(g) && De(e.modelValue) !== g && m.add(g), i.emit("update:modelValue", g);
2345
- }
2346
- }), o && (El(hn(e, "modelValue"), (d, y) => {
2347
- var g;
2348
- const V = De(y);
2349
- if (lt(V) && m.has(V))
2350
- return m.delete(V);
2351
- d.length ? (g = v.at(d)) === null || g === void 0 || g.input(y, !1) : v.input(y, !1);
2352
- }), v.value !== u && v.emit("modelUpdated")), _n(() => v.destroy()), v;
2353
- }
2354
- let Fl = 1;
2355
- function Dl(e) {
2340
+ return h.on("modelUpdated", () => {
2341
+ var d, b;
2342
+ if (i.emit("inputRaw", (d = h.context) === null || d === void 0 ? void 0 : d.value, h), clearTimeout(k), k = setTimeout(i.emit, 20, "input", (b = h.context) === null || b === void 0 ? void 0 : b.value, h), o && h.context) {
2343
+ const _ = Fe(h.context.value);
2344
+ rt(_) && Fe(e.modelValue) !== _ && m.add(_), i.emit("update:modelValue", _);
2345
+ }
2346
+ }), o && (Er(vn(e, "modelValue"), (d, b) => {
2347
+ var _;
2348
+ const C = Fe(b);
2349
+ if (rt(C) && m.has(C))
2350
+ return m.delete(C);
2351
+ d.length ? (_ = h.at(d)) === null || _ === void 0 || _.input(b, !1) : h.input(b, !1);
2352
+ }), h.value !== c && h.emit("modelUpdated")), _n(() => h.destroy()), h;
2353
+ }
2354
+ let Fr = 1;
2355
+ function Dr(e) {
2356
2356
  return typeof e == "function" && e.length === 2 || typeof e == "object" && !Array.isArray(e) && !("$el" in e) && !("$cmp" in e) && !("if" in e);
2357
2357
  }
2358
- function B(e, i = {}) {
2358
+ function D(e, i = {}) {
2359
2359
  const t = {
2360
2360
  type: "input",
2361
2361
  ...i
2362
2362
  };
2363
2363
  let n;
2364
- if (Dl(e)) {
2365
- const l = `SchemaComponent${Fl++}`;
2366
- n = k("input", () => ({
2367
- $cmp: l,
2364
+ if (Dr(e)) {
2365
+ const r = `SchemaComponent${Fr++}`;
2366
+ n = x("input", () => ({
2367
+ $cmp: r,
2368
2368
  props: {
2369
2369
  context: "$node.context"
2370
2370
  }
2371
- })), t.library = { [l]: $n(e) };
2371
+ })), t.library = { [r]: $n(e) };
2372
2372
  } else
2373
- typeof e == "function" ? n = e : n = k("input", () => ue(e));
2374
- return t.schema = hl(n || "Schema undefined"), t;
2373
+ typeof e == "function" ? n = e : n = x("input", () => oe(e));
2374
+ return t.schema = vr(n || "Schema undefined"), t;
2375
2375
  }
2376
- const Bl = k("messages", () => ({
2376
+ const Br = x("messages", () => ({
2377
2377
  $el: "ul",
2378
2378
  if: "$fns.length($messages)"
2379
- }), !0), zl = k("message", () => ({
2379
+ }), !0), zr = x("message", () => ({
2380
2380
  $el: "li",
2381
2381
  for: ["message", "$messages"],
2382
2382
  attrs: {
@@ -2384,7 +2384,7 @@ const Bl = k("messages", () => ({
2384
2384
  id: "$id + '-' + $message.key",
2385
2385
  "data-message-type": "$message.type"
2386
2386
  }
2387
- })), Wl = Bl(zl("$message.value"));
2387
+ })), Wr = Br(zr("$message.value"));
2388
2388
  P({
2389
2389
  props: {
2390
2390
  node: {
@@ -2401,22 +2401,22 @@ P({
2401
2401
  }
2402
2402
  },
2403
2403
  setup(e, i) {
2404
- const t = M(() => e.node || Se(Ke, void 0));
2405
- me(t, () => {
2406
- var s;
2407
- !((s = t.value) === null || s === void 0) && s.context && !Q(e.defaultPosition) && (t.value.context.defaultMessagePlacement = !1);
2404
+ const t = nt(() => e.node || ke(Ne, void 0));
2405
+ de(t, () => {
2406
+ var a;
2407
+ !((a = t.value) === null || a === void 0) && a.context && !J(e.defaultPosition) && (t.value.context.defaultMessagePlacement = !1);
2408
2408
  }, { immediate: !0 });
2409
- const n = Wl(e.sectionsSchema || {}), l = M(() => {
2410
- var s, r, o, u, b, h;
2409
+ const n = Wr(e.sectionsSchema || {}), r = nt(() => {
2410
+ var a, s, o, c, y, w;
2411
2411
  return {
2412
- messages: ((r = (s = t.value) === null || s === void 0 ? void 0 : s.context) === null || r === void 0 ? void 0 : r.messages) || {},
2413
- fns: ((u = (o = t.value) === null || o === void 0 ? void 0 : o.context) === null || u === void 0 ? void 0 : u.fns) || {},
2414
- classes: ((h = (b = t.value) === null || b === void 0 ? void 0 : b.context) === null || h === void 0 ? void 0 : h.classes) || {}
2412
+ messages: ((s = (a = t.value) === null || a === void 0 ? void 0 : a.context) === null || s === void 0 ? void 0 : s.messages) || {},
2413
+ fns: ((c = (o = t.value) === null || o === void 0 ? void 0 : o.context) === null || c === void 0 ? void 0 : c.fns) || {},
2414
+ classes: ((w = (y = t.value) === null || y === void 0 ? void 0 : y.context) === null || w === void 0 ? void 0 : w.classes) || {}
2415
2415
  };
2416
2416
  });
2417
2417
  return () => {
2418
- var s;
2419
- return !((s = t.value) === null || s === void 0) && s.context ? Ce(dn, { schema: n, data: l.value }, { ...i.slots }) : null;
2418
+ var a;
2419
+ return !((a = t.value) === null || a === void 0) && a.context ? we(dn, { schema: n, data: r.value }, { ...i.slots }) : null;
2420
2420
  };
2421
2421
  }
2422
2422
  });
@@ -2438,940 +2438,915 @@ P({
2438
2438
  },
2439
2439
  setup(e) {
2440
2440
  var i, t;
2441
- const n = Le(void 0), l = Se(mn, {}), s = Se(Ke, null);
2442
- let r;
2441
+ const n = Ie(void 0), r = ke(mn, {}), a = ke(Ne, null);
2442
+ let s;
2443
2443
  function o() {
2444
- if (!r || typeof r != "function")
2444
+ if (!s || typeof s != "function")
2445
2445
  return;
2446
- const u = r(e.icon);
2447
- u instanceof Promise ? u.then((b) => {
2448
- n.value = b;
2449
- }) : n.value = u;
2446
+ const c = s(e.icon);
2447
+ c instanceof Promise ? c.then((y) => {
2448
+ n.value = y;
2449
+ }) : n.value = c;
2450
2450
  }
2451
2451
  if (e.iconLoader && typeof e.iconLoader == "function")
2452
- r = et(e.iconLoader);
2453
- else if (s && (!((i = s.props) === null || i === void 0) && i.iconLoader))
2454
- r = et(s.props.iconLoader);
2452
+ s = Xe(e.iconLoader);
2453
+ else if (a && (!((i = a.props) === null || i === void 0) && i.iconLoader))
2454
+ s = Xe(a.props.iconLoader);
2455
2455
  else if (e.iconLoaderUrl && typeof e.iconLoaderUrl == "function")
2456
- r = et(r, e.iconLoaderUrl);
2456
+ s = Xe(s, e.iconLoaderUrl);
2457
2457
  else {
2458
- const u = (t = l == null ? void 0 : l.plugins) === null || t === void 0 ? void 0 : t.find((b) => typeof b.iconHandler == "function");
2459
- u && (r = u.iconHandler);
2458
+ const c = (t = r == null ? void 0 : r.plugins) === null || t === void 0 ? void 0 : t.find((y) => typeof y.iconHandler == "function");
2459
+ c && (s = c.iconHandler);
2460
2460
  }
2461
- return me(() => e.icon, () => {
2461
+ return de(() => e.icon, () => {
2462
2462
  o();
2463
- }, { immediate: !0 }), () => e.icon && n.value ? Ce("span", {
2463
+ }, { immediate: !0 }), () => e.icon && n.value ? we("span", {
2464
2464
  class: "formkit-icon",
2465
2465
  innerHTML: n.value
2466
2466
  }) : null;
2467
2467
  }
2468
2468
  });
2469
- const Ul = /* @__PURE__ */ P({
2469
+ const Ur = /* @__PURE__ */ P({
2470
2470
  __name: "PrimeCalendar",
2471
2471
  props: {
2472
2472
  context: Object
2473
2473
  },
2474
2474
  setup(e) {
2475
2475
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
2476
- function l(o) {
2476
+ function r(s) {
2477
2477
  t == null || t.node.input(t == null ? void 0 : t._value);
2478
2478
  }
2479
- function s(o) {
2480
- t == null || t.node.input(o);
2479
+ function a(s) {
2480
+ t == null || t.node.input(s);
2481
2481
  }
2482
- const r = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2483
- return (o, u) => {
2484
- const b = T("Calendar");
2485
- return A(), x("div", null, [
2486
- D(b, {
2487
- modelValue: a(t)._value,
2488
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
2482
+ return (s, o) => {
2483
+ const c = j("Calendar");
2484
+ return O(), A("div", null, [
2485
+ F(c, {
2486
+ modelValue: l(t)._value,
2487
+ "onUpdate:modelValue": o[0] || (o[0] = (y) => l(t)._value = y),
2489
2488
  "input-id": i.context.id,
2490
- disabled: a(n)._disabled ?? !1,
2491
- readonly: a(n)._readonly ?? !1,
2492
- "input-style": a(n).style,
2493
- "input-class": a(r),
2494
- tabindex: a(n).tabindex,
2495
- "aria-label": a(n).ariaLabel,
2496
- "aria-labelledby": a(n).ariaLabelledby,
2497
- "date-format": a(n).dateFormat,
2498
- "selection-mode": a(n).selectionMode ?? "single",
2499
- inline: a(n).inline ?? !1,
2500
- "show-other-months": a(n).showOtherMonths ?? !0,
2501
- "select-other-months": a(n).selectOtherMonths ?? !1,
2502
- icon: a(n).icon,
2503
- "show-icon": a(t).showIcon,
2504
- "previous-icon": a(n).previousIcon ?? "pi pi-chevron-left",
2505
- "next-icon": a(n).nextIcon ?? "pi pi-chevron-right",
2506
- "increment-icon": a(n).incrementIcon ?? "pi pi-chevron-up",
2507
- "decrement-icon": a(n).decrementIcon ?? "pi pi-chevron-down",
2508
- "number-of-months": a(n).numberOfMonths ?? 1,
2509
- "responsive-options": a(n).responsiveOptions,
2510
- view: a(n).view ?? "date",
2511
- "touch-u-i": a(n).touchUI ?? !1,
2512
- "min-date": a(n).minDate,
2513
- "max-date": a(n).maxDate,
2514
- "disabled-dates": a(n).disabledDates,
2515
- "disabled-days": a(n).disabledDays,
2516
- "max-date-count": a(n).maxDateCount,
2517
- "show-on-focus": a(n).showOnFocus ?? !0,
2518
- "auto-z-index": a(n).autoZIndex ?? !0,
2519
- "base-z-index": a(n).baseZIndex ?? 0,
2520
- "show-button-bar": a(n).showButtonBar ?? !1,
2521
- "show-time": a(n).showTime ?? !1,
2522
- "time-only": a(n).timeOnly ?? !1,
2523
- "short-year-cutoff": a(n).shortYearCutoff ?? "+10",
2524
- "hour-format": a(n).hourFormat ?? "24",
2525
- "step-hour": a(n).stepHour ?? 1,
2526
- "step-minute": a(n).stepMinute ?? 1,
2527
- "step-second": a(n).stepSecond ?? 1,
2528
- "show-seconds": a(n).showSeconds ?? !1,
2529
- "hide-on-date-time-select": a(n).hideOnDateTimeSelect ?? !1,
2530
- "hide-on-range-selection": a(n).hideOnRangeSelection ?? !1,
2531
- "time-separator": a(n).timeSeparator ?? ":",
2532
- "show-week": a(n).showWeek ?? !1,
2533
- "manual-input": a(n).manualInput ?? !0,
2534
- "append-to": a(n).appendTo ?? "body",
2535
- "panel-style": a(n).panelStyle,
2536
- "panel-class": a(n).panelClass,
2537
- onDateSelect: s,
2538
- onInput: l
2489
+ disabled: l(n)._disabled ?? !1,
2490
+ readonly: l(n)._readonly ?? !1,
2491
+ "input-style": l(n).style,
2492
+ "input-class": l(n).class,
2493
+ tabindex: l(n).tabindex,
2494
+ "aria-label": l(n).ariaLabel,
2495
+ "aria-labelledby": l(n).ariaLabelledby,
2496
+ "date-format": l(n).dateFormat,
2497
+ "selection-mode": l(n).selectionMode ?? "single",
2498
+ inline: l(n).inline ?? !1,
2499
+ "show-other-months": l(n).showOtherMonths ?? !0,
2500
+ "select-other-months": l(n).selectOtherMonths ?? !1,
2501
+ icon: l(n).icon,
2502
+ "show-icon": l(t).showIcon,
2503
+ "previous-icon": l(n).previousIcon ?? "pi pi-calendar",
2504
+ "next-icon": l(n).nextIcon ?? "pi pi-chevron-right",
2505
+ "increment-icon": l(n).incrementIcon ?? "pi pi-chevron-up",
2506
+ "decrement-icon": l(n).decrementIcon ?? "pi pi-chevron-down",
2507
+ "number-of-months": l(n).numberOfMonths ?? 1,
2508
+ "responsive-options": l(n).responsiveOptions,
2509
+ view: l(n).view ?? "date",
2510
+ "touch-u-i": l(n).touchUI ?? !1,
2511
+ "min-date": l(n).minDate,
2512
+ "max-date": l(n).maxDate,
2513
+ "disabled-dates": l(n).disabledDates,
2514
+ "disabled-days": l(n).disabledDays,
2515
+ "max-date-count": l(n).maxDateCount,
2516
+ "show-on-focus": l(n).showOnFocus ?? !0,
2517
+ "auto-z-index": l(n).autoZIndex ?? !0,
2518
+ "base-z-index": l(n).baseZIndex ?? 0,
2519
+ "show-button-bar": l(n).showButtonBar ?? !1,
2520
+ "show-time": l(n).showTime ?? !1,
2521
+ "time-only": l(n).timeOnly ?? !1,
2522
+ "short-year-cutoff": l(n).shortYearCutoff ?? "+10",
2523
+ "hour-format": l(n).hourFormat ?? "24",
2524
+ "step-hour": l(n).stepHour ?? 1,
2525
+ "step-minute": l(n).stepMinute ?? 1,
2526
+ "step-second": l(n).stepSecond ?? 1,
2527
+ "show-seconds": l(n).showSeconds ?? !1,
2528
+ "hide-on-date-time-select": l(n).hideOnDateTimeSelect ?? !1,
2529
+ "hide-on-range-selection": l(n).hideOnRangeSelection ?? !1,
2530
+ "time-separator": l(n).timeSeparator ?? ":",
2531
+ "show-week": l(n).showWeek ?? !1,
2532
+ "manual-input": l(n).manualInput ?? !0,
2533
+ "append-to": l(n).appendTo ?? "body",
2534
+ "panel-style": l(n).panelStyle,
2535
+ "panel-class": l(n).panelClass,
2536
+ onDateSelect: a,
2537
+ onInput: r
2539
2538
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "date-format", "selection-mode", "inline", "show-other-months", "select-other-months", "icon", "show-icon", "previous-icon", "next-icon", "increment-icon", "decrement-icon", "number-of-months", "responsive-options", "view", "touch-u-i", "min-date", "max-date", "disabled-dates", "disabled-days", "max-date-count", "show-on-focus", "auto-z-index", "base-z-index", "show-button-bar", "show-time", "time-only", "short-year-cutoff", "hour-format", "step-hour", "step-minute", "step-second", "show-seconds", "hide-on-date-time-select", "hide-on-range-selection", "time-separator", "show-week", "manual-input", "append-to", "panel-style", "panel-class"])
2540
2539
  ]);
2541
2540
  };
2542
2541
  }
2543
- }), ql = {
2542
+ }), qr = {
2544
2543
  key: 0,
2545
2544
  class: "formkit-prime-left"
2546
- }, Nl = {
2545
+ }, Nr = {
2547
2546
  key: 1,
2548
2547
  class: "formkit-prime-right"
2549
- }, Kl = /* @__PURE__ */ P({
2548
+ }, Kr = /* @__PURE__ */ P({
2550
2549
  __name: "PrimeCheckbox",
2551
2550
  props: {
2552
2551
  context: Object
2553
2552
  },
2554
2553
  setup(e) {
2555
2554
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
2556
- function l(r) {
2557
- var o;
2558
- t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
2559
- }
2560
- const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2561
- return (r, o) => {
2562
- const u = T("Checkbox");
2563
- return A(), x("div", null, [
2564
- a(t).attrs.labelLeft ? (A(), x("span", ql, be(a(t).attrs.labelLeft), 1)) : se("", !0),
2565
- D(u, {
2566
- modelValue: a(t)._value,
2567
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
2568
- "input-id": a(t).id,
2569
- disabled: a(n)._disabled ?? !1,
2570
- readonly: a(n)._readonly ?? !1,
2571
- "input-style": a(n).style,
2572
- "input-class": a(s),
2573
- tabindex: a(n).tabindex,
2574
- "aria-label": a(n).ariaLabel,
2575
- "aria-labelledby": a(n).ariaLabelledby,
2576
- binary: a(n).binary ?? !0,
2577
- "true-value": a(n).trueValue ?? void 0,
2578
- "false-value": a(n).falseValue ?? void 0,
2579
- onInput: l
2555
+ function r(a) {
2556
+ var s;
2557
+ t == null || t.node.input((s = i.context) == null ? void 0 : s._value);
2558
+ }
2559
+ return (a, s) => {
2560
+ const o = j("Checkbox");
2561
+ return O(), A("div", null, [
2562
+ l(t).attrs.labelLeft ? (O(), A("span", qr, me(l(t).attrs.labelLeft), 1)) : le("", !0),
2563
+ F(o, {
2564
+ modelValue: l(t)._value,
2565
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
2566
+ "input-id": l(t).id,
2567
+ disabled: l(n)._disabled ?? !1,
2568
+ readonly: l(n)._readonly ?? !1,
2569
+ "input-style": l(n).style,
2570
+ "input-class": l(n).class,
2571
+ tabindex: l(n).tabindex,
2572
+ "aria-label": l(n).ariaLabel,
2573
+ "aria-labelledby": l(n).ariaLabelledby,
2574
+ binary: l(n).binary ?? !0,
2575
+ "true-value": l(n).trueValue ?? void 0,
2576
+ "false-value": l(n).falseValue ?? void 0,
2577
+ onInput: r
2580
2578
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "binary", "true-value", "false-value"]),
2581
- a(t).attrs.labelRight ? (A(), x("span", Nl, be(a(t).attrs.labelRight), 1)) : se("", !0)
2579
+ l(t).attrs.labelRight ? (O(), A("span", Nr, me(l(t).attrs.labelRight), 1)) : le("", !0)
2582
2580
  ]);
2583
2581
  };
2584
2582
  }
2585
- }), Hl = /* @__PURE__ */ P({
2583
+ }), Hr = /* @__PURE__ */ P({
2586
2584
  __name: "PrimeChips",
2587
2585
  props: {
2588
2586
  context: Object
2589
2587
  },
2590
2588
  setup(e) {
2591
2589
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
2592
- function l(r) {
2593
- var o;
2594
- t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
2595
- }
2596
- const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2597
- return (r, o) => {
2598
- const u = T("Chips");
2599
- return A(), x("div", null, [
2600
- D(u, {
2601
- modelValue: a(t)._value,
2602
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
2603
- "input-id": a(t).id,
2604
- disabled: a(n)._disabled ?? !1,
2605
- readonly: a(n)._readonly ?? !1,
2606
- "input-style": a(n).style,
2607
- "input-class": a(s),
2608
- tabindex: a(n).tabindex,
2609
- "aria-label": a(n).ariaLabel,
2610
- "aria-labelledby": a(n).ariaLabelledby,
2611
- "allow-duplicate": a(n).allowDuplicate ?? !0,
2612
- "add-on-blur": a(n).addOnBlur ?? !1,
2613
- max: a(n).max ?? void 0,
2614
- placeholder: a(n).placeholder,
2615
- separator: a(n).separator,
2616
- onAdd: l,
2617
- onRemove: l
2590
+ function r(a) {
2591
+ var s;
2592
+ t == null || t.node.input((s = i.context) == null ? void 0 : s._value);
2593
+ }
2594
+ return (a, s) => {
2595
+ const o = j("Chips");
2596
+ return O(), A("div", null, [
2597
+ F(o, {
2598
+ modelValue: l(t)._value,
2599
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
2600
+ "input-id": l(t).id,
2601
+ disabled: l(n)._disabled ?? !1,
2602
+ readonly: l(n)._readonly ?? !1,
2603
+ "input-style": l(n).style,
2604
+ "input-class": l(n).class,
2605
+ tabindex: l(n).tabindex,
2606
+ "aria-label": l(n).ariaLabel,
2607
+ "aria-labelledby": l(n).ariaLabelledby,
2608
+ "allow-duplicate": l(n).allowDuplicate ?? !0,
2609
+ "add-on-blur": l(n).addOnBlur ?? !1,
2610
+ max: l(n).max ?? void 0,
2611
+ placeholder: l(n).placeholder,
2612
+ separator: l(n).separator,
2613
+ onAdd: r,
2614
+ onRemove: r
2618
2615
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "allow-duplicate", "add-on-blur", "max", "placeholder", "separator"])
2619
2616
  ]);
2620
2617
  };
2621
2618
  }
2622
- }), Zl = /* @__PURE__ */ P({
2619
+ }), Zr = /* @__PURE__ */ P({
2623
2620
  __name: "PrimeColorPicker",
2624
2621
  props: {
2625
2622
  context: Object
2626
2623
  },
2627
2624
  setup(e) {
2628
2625
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
2629
- function l(s) {
2630
- var r;
2631
- t == null || t.node.input((r = i.context) == null ? void 0 : r._value);
2632
- }
2633
- return (s, r) => {
2634
- const o = T("ColorPicker");
2635
- return A(), x("div", null, [
2636
- D(o, {
2637
- modelValue: a(t)._value,
2638
- "onUpdate:modelValue": r[0] || (r[0] = (u) => a(t)._value = u),
2639
- disabled: a(n)._disabled ?? !1,
2640
- readonly: a(n)._readonly ?? !1,
2641
- style: fe(a(n).style),
2642
- "panel-class": a(n).class,
2643
- tabindex: a(n).tabindex,
2644
- "aria-label": a(n).ariaLabel,
2645
- "aria-labelledby": a(n).ariaLabelledby,
2646
- "default-color": a(n).defaultColor ?? "ff0000",
2647
- inline: a(n).inline ?? !1,
2648
- format: a(n).format,
2649
- onChange: l
2626
+ function r(a) {
2627
+ var s;
2628
+ t == null || t.node.input((s = i.context) == null ? void 0 : s._value);
2629
+ }
2630
+ return (a, s) => {
2631
+ const o = j("ColorPicker");
2632
+ return O(), A("div", null, [
2633
+ F(o, {
2634
+ modelValue: l(t)._value,
2635
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
2636
+ disabled: l(n)._disabled ?? !1,
2637
+ readonly: l(n)._readonly ?? !1,
2638
+ style: ue(l(n).style),
2639
+ "panel-class": l(n).class,
2640
+ tabindex: l(n).tabindex,
2641
+ "aria-label": l(n).ariaLabel,
2642
+ "aria-labelledby": l(n).ariaLabelledby,
2643
+ "default-color": l(n).defaultColor ?? "ff0000",
2644
+ inline: l(n).inline ?? !1,
2645
+ format: l(n).format,
2646
+ onChange: r
2650
2647
  }, null, 8, ["modelValue", "disabled", "readonly", "style", "panel-class", "tabindex", "aria-label", "aria-labelledby", "default-color", "inline", "format"])
2651
2648
  ]);
2652
2649
  };
2653
2650
  }
2654
- }), Yl = /* @__PURE__ */ P({
2651
+ }), Yr = /* @__PURE__ */ P({
2655
2652
  __name: "PrimeDropdown",
2656
2653
  props: {
2657
2654
  context: Object
2658
2655
  },
2659
2656
  setup(e) {
2660
2657
  const t = e.context, n = t == null ? void 0 : t.attrs;
2661
- function l(o) {
2662
- t == null || t.handlers.blur(o.value);
2663
- }
2664
- function s(o) {
2665
- t == null || t.node.input(o.value);
2666
- }
2667
- const r = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2668
- return (o, u) => {
2669
- const b = T("Dropdown");
2670
- return A(), x("div", null, [
2671
- D(b, {
2672
- modelValue: a(t)._value,
2673
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
2674
- "input-id": a(t).id,
2675
- disabled: a(n)._disabled ?? !1,
2676
- readonly: a(n)._readonly ?? !1,
2677
- "input-style": a(r),
2678
- "input-class": a(n).class,
2679
- tabindex: a(n).tabindex,
2680
- "aria-label": a(n).ariaLabel,
2681
- "aria-labelledby": a(n).ariaLabelledby,
2682
- options: a(n).options,
2683
- "option-label": a(n).optionLabel ?? "label",
2684
- "option-value": a(n).optionValue ?? "value",
2685
- placeholder: a(n).placeholder,
2686
- filter: a(n).filter ?? !1,
2687
- "show-clear": a(n).showClear ?? !1,
2688
- onChange: s,
2689
- onBlur: l
2658
+ function r(s) {
2659
+ t == null || t.handlers.blur(s.value);
2660
+ }
2661
+ function a(s) {
2662
+ t == null || t.node.input(s.value);
2663
+ }
2664
+ return (s, o) => {
2665
+ const c = j("Dropdown");
2666
+ return O(), A("div", null, [
2667
+ F(c, {
2668
+ modelValue: l(t)._value,
2669
+ "onUpdate:modelValue": o[0] || (o[0] = (y) => l(t)._value = y),
2670
+ "input-id": l(t).id,
2671
+ disabled: l(n)._disabled ?? !1,
2672
+ readonly: l(n)._readonly ?? !1,
2673
+ "input-style": l(n).style,
2674
+ "input-class": l(n).class,
2675
+ tabindex: l(n).tabindex,
2676
+ "aria-label": l(n).ariaLabel,
2677
+ "aria-labelledby": l(n).ariaLabelledby,
2678
+ options: l(n).options,
2679
+ "option-label": l(n).optionLabel ?? "label",
2680
+ "option-value": l(n).optionValue ?? "value",
2681
+ placeholder: l(n).placeholder,
2682
+ filter: l(n).filter ?? !1,
2683
+ "show-clear": l(n).showClear ?? !1,
2684
+ onChange: a,
2685
+ onBlur: r
2690
2686
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "options", "option-label", "option-value", "placeholder", "filter", "show-clear"])
2691
2687
  ]);
2692
2688
  };
2693
2689
  }
2694
- }), Jl = /* @__PURE__ */ P({
2690
+ }), Jr = /* @__PURE__ */ P({
2695
2691
  __name: "PrimeEditor",
2696
2692
  props: {
2697
2693
  context: Object
2698
2694
  },
2699
2695
  setup(e) {
2700
2696
  const t = e.context, n = t == null ? void 0 : t.attrs;
2701
- function l(o) {
2702
- t == null || t.node.input(o.htmlValue);
2703
- }
2704
- function s(o) {
2705
- o.range === null && (t == null || t.handlers.blur(o.htmlValue));
2706
- }
2707
- const r = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2708
- return (o, u) => {
2709
- const b = T("Editor");
2710
- return A(), x("div", null, [
2711
- D(b, {
2712
- id: a(t).id,
2713
- modelValue: a(t)._value,
2714
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
2715
- disabled: a(n)._disabled ?? !1,
2716
- readonly: a(n)._readonly ?? !1,
2717
- "editor-style": a(n).style,
2718
- class: q(a(r)),
2719
- tabindex: a(n).tabindex,
2720
- "aria-label": a(n).ariaLabel,
2721
- "aria-labelledby": a(n).ariaLabelledby,
2722
- placeholder: a(n).placeholder,
2723
- formats: a(n).formats,
2724
- modules: a(n).modules,
2725
- onTextChange: l,
2726
- onSelectionChange: s
2697
+ function r(s) {
2698
+ t == null || t.node.input(s.htmlValue);
2699
+ }
2700
+ function a(s) {
2701
+ s.range === null && (t == null || t.handlers.blur(s.htmlValue));
2702
+ }
2703
+ return (s, o) => {
2704
+ const c = j("Editor");
2705
+ return O(), A("div", null, [
2706
+ F(c, {
2707
+ id: l(t).id,
2708
+ modelValue: l(t)._value,
2709
+ "onUpdate:modelValue": o[0] || (o[0] = (y) => l(t)._value = y),
2710
+ disabled: l(n)._disabled ?? !1,
2711
+ readonly: l(n)._readonly ?? !1,
2712
+ "editor-style": l(n).style,
2713
+ class: U(l(n).class),
2714
+ tabindex: l(n).tabindex,
2715
+ "aria-label": l(n).ariaLabel,
2716
+ "aria-labelledby": l(n).ariaLabelledby,
2717
+ placeholder: l(n).placeholder,
2718
+ formats: l(n).formats,
2719
+ modules: l(n).modules,
2720
+ onTextChange: r,
2721
+ onSelectionChange: a
2727
2722
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "editor-style", "class", "tabindex", "aria-label", "aria-labelledby", "placeholder", "formats", "modules"])
2728
2723
  ]);
2729
2724
  };
2730
2725
  }
2731
- }), Ql = /* @__PURE__ */ P({
2726
+ }), Qr = /* @__PURE__ */ P({
2732
2727
  __name: "PrimeInputMask",
2733
2728
  props: {
2734
2729
  context: Object
2735
2730
  },
2736
2731
  setup(e) {
2737
2732
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
2738
- function l(r) {
2739
- var o, u;
2740
- t == null || t.node.input((o = i.context) == null ? void 0 : o._value), t == null || t.handlers.blur((u = i.context) == null ? void 0 : u._value);
2741
- }
2742
- const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2743
- return (r, o) => {
2744
- const u = T("InputMask");
2745
- return A(), x("div", null, [
2746
- D(u, {
2747
- id: a(t).id,
2748
- modelValue: a(t)._value,
2749
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
2750
- disabled: a(n)._disabled ?? !1,
2751
- readonly: a(n)._readonly ?? !1,
2752
- "editor-style": a(n).style,
2753
- class: q(a(s)),
2754
- tabindex: a(n).tabindex,
2755
- "aria-label": a(n).ariaLabel,
2756
- "aria-labelledby": a(n).ariaLabelledby,
2757
- placeholder: a(n).placeholder,
2758
- mask: a(n).mask ?? void 0,
2759
- "slot-char": a(n).slotChar ?? "_",
2760
- "auto-clear": a(n).autoClear ?? !0,
2761
- unmask: a(n).unmask ?? !1,
2762
- onBlur: l
2733
+ function r(a) {
2734
+ var s, o;
2735
+ t == null || t.node.input((s = i.context) == null ? void 0 : s._value), t == null || t.handlers.blur((o = i.context) == null ? void 0 : o._value);
2736
+ }
2737
+ return (a, s) => {
2738
+ const o = j("InputMask");
2739
+ return O(), A("div", null, [
2740
+ F(o, {
2741
+ id: l(t).id,
2742
+ modelValue: l(t)._value,
2743
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
2744
+ disabled: l(n)._disabled ?? !1,
2745
+ readonly: l(n)._readonly ?? !1,
2746
+ "editor-style": l(n).style,
2747
+ class: U(l(n).class),
2748
+ tabindex: l(n).tabindex,
2749
+ "aria-label": l(n).ariaLabel,
2750
+ "aria-labelledby": l(n).ariaLabelledby,
2751
+ placeholder: l(n).placeholder,
2752
+ mask: l(n).mask ?? void 0,
2753
+ "slot-char": l(n).slotChar ?? "_",
2754
+ "auto-clear": l(n).autoClear ?? !0,
2755
+ unmask: l(n).unmask ?? !1,
2756
+ onBlur: r
2763
2757
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "editor-style", "class", "tabindex", "aria-label", "aria-labelledby", "placeholder", "mask", "slot-char", "auto-clear", "unmask"])
2764
2758
  ]);
2765
2759
  };
2766
2760
  }
2767
- }), Gl = /* @__PURE__ */ P({
2761
+ }), Gr = /* @__PURE__ */ P({
2768
2762
  __name: "PrimeInputNumber",
2769
2763
  props: {
2770
2764
  context: Object
2771
2765
  },
2772
2766
  setup(e) {
2773
2767
  const t = e.context, n = t == null ? void 0 : t.attrs;
2774
- function l(o) {
2775
- t == null || t.handlers.blur(o.value);
2776
- }
2777
- function s(o) {
2778
- t == null || t.node.input(o.value);
2779
- }
2780
- const r = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2781
- return (o, u) => {
2782
- const b = T("InputNumber");
2783
- return A(), x("div", null, [
2784
- D(b, {
2785
- modelValue: a(t)._value,
2786
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
2787
- "input-id": a(t).id,
2788
- disabled: a(n)._disabled ?? !1,
2789
- readonly: a(n)._readonly ?? !1,
2790
- "input-style": a(n).style,
2791
- "input-class": a(r),
2792
- tabindex: a(n).tabindex,
2793
- "aria-label": a(n).ariaLabel,
2794
- "aria-labelledby": a(n).ariaLabelledby,
2795
- placeholder: a(n).placeholder,
2796
- "use-grouping": a(n).useGrouping ?? !0,
2797
- "min-fraction-digits": a(n).minFractionDigits ?? void 0,
2798
- "max-fraction-digits": a(n).maxFractionDigits ?? void 0,
2799
- locale: a(n).locale ?? void 0,
2800
- mode: a(n).mode ?? void 0,
2801
- currency: a(n).currency ?? void 0,
2802
- prefix: a(n).prefix ?? void 0,
2803
- suffix: a(n).suffix ?? void 0,
2804
- "show-buttons": a(n).showButtons ?? void 0,
2805
- "button-layout": a(n).buttonLayout ?? "stacked",
2806
- step: a(n).step ?? void 0,
2807
- onInput: s,
2808
- onBlur: l
2768
+ function r(s) {
2769
+ t == null || t.handlers.blur(s.value);
2770
+ }
2771
+ function a(s) {
2772
+ t == null || t.node.input(s.value);
2773
+ }
2774
+ return (s, o) => {
2775
+ const c = j("InputNumber");
2776
+ return O(), A("div", null, [
2777
+ F(c, {
2778
+ modelValue: l(t)._value,
2779
+ "onUpdate:modelValue": o[0] || (o[0] = (y) => l(t)._value = y),
2780
+ "input-id": l(t).id,
2781
+ disabled: l(n)._disabled ?? !1,
2782
+ readonly: l(n)._readonly ?? !1,
2783
+ "input-style": l(n).style,
2784
+ "input-class": l(n).class,
2785
+ tabindex: l(n).tabindex,
2786
+ "aria-label": l(n).ariaLabel,
2787
+ "aria-labelledby": l(n).ariaLabelledby,
2788
+ placeholder: l(n).placeholder,
2789
+ "use-grouping": l(n).useGrouping ?? !0,
2790
+ "min-fraction-digits": l(n).minFractionDigits ?? void 0,
2791
+ "max-fraction-digits": l(n).maxFractionDigits ?? void 0,
2792
+ locale: l(n).locale ?? void 0,
2793
+ mode: l(n).mode ?? void 0,
2794
+ currency: l(n).currency ?? void 0,
2795
+ prefix: l(n).prefix ?? void 0,
2796
+ suffix: l(n).suffix ?? void 0,
2797
+ "show-buttons": l(n).showButtons ?? void 0,
2798
+ "button-layout": l(n).buttonLayout ?? "stacked",
2799
+ step: l(n).step ?? void 0,
2800
+ onInput: a,
2801
+ onBlur: r
2809
2802
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "placeholder", "use-grouping", "min-fraction-digits", "max-fraction-digits", "locale", "mode", "currency", "prefix", "suffix", "show-buttons", "button-layout", "step"])
2810
2803
  ]);
2811
2804
  };
2812
2805
  }
2813
- }), Xl = {
2806
+ }), Xr = {
2814
2807
  key: 0,
2815
2808
  class: "formkit-prime-left"
2816
- }, ea = {
2809
+ }, el = {
2817
2810
  key: 1,
2818
2811
  class: "formkit-prime-right"
2819
- }, ta = /* @__PURE__ */ P({
2812
+ }, tl = /* @__PURE__ */ P({
2820
2813
  __name: "PrimeInputSwitch",
2821
2814
  props: {
2822
2815
  context: Object
2823
2816
  },
2824
2817
  setup(e) {
2825
2818
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
2826
- function l(r) {
2827
- var o;
2828
- t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
2829
- }
2830
- const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2831
- return (r, o) => {
2832
- const u = T("InputSwitch");
2833
- return A(), x("div", null, [
2834
- a(t).attrs.labelLeft ? (A(), x("span", Xl, be(a(t).attrs.labelLeft), 1)) : se("", !0),
2835
- D(u, {
2836
- modelValue: a(t)._value,
2837
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
2838
- "input-id": a(t).id,
2839
- disabled: a(n)._disabled ?? !1,
2840
- readonly: a(n)._readonly ?? !1,
2841
- "input-style": a(n).style,
2842
- "input-class": a(s),
2843
- tabindex: a(n).tabindex,
2844
- "aria-label": a(n).ariaLabel,
2845
- "aria-labelledby": a(n).ariaLabelledby,
2846
- "true-value": a(n).trueValue ?? void 0,
2847
- "false-value": a(n).falseValue ?? void 0,
2848
- onInput: l
2819
+ function r(a) {
2820
+ var s;
2821
+ t == null || t.node.input((s = i.context) == null ? void 0 : s._value);
2822
+ }
2823
+ return (a, s) => {
2824
+ const o = j("InputSwitch");
2825
+ return O(), A("div", null, [
2826
+ l(t).attrs.labelLeft ? (O(), A("span", Xr, me(l(t).attrs.labelLeft), 1)) : le("", !0),
2827
+ F(o, {
2828
+ modelValue: l(t)._value,
2829
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
2830
+ "input-id": l(t).id,
2831
+ disabled: l(n)._disabled ?? !1,
2832
+ readonly: l(n)._readonly ?? !1,
2833
+ "input-style": l(n).style,
2834
+ "input-class": l(n).class,
2835
+ tabindex: l(n).tabindex,
2836
+ "aria-label": l(n).ariaLabel,
2837
+ "aria-labelledby": l(n).ariaLabelledby,
2838
+ "true-value": l(n).trueValue ?? void 0,
2839
+ "false-value": l(n).falseValue ?? void 0,
2840
+ onInput: r
2849
2841
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "true-value", "false-value"]),
2850
- a(t).attrs.labelRight ? (A(), x("span", ea, be(a(t).attrs.labelRight), 1)) : se("", !0)
2842
+ l(t).attrs.labelRight ? (O(), A("span", el, me(l(t).attrs.labelRight), 1)) : le("", !0)
2851
2843
  ]);
2852
2844
  };
2853
2845
  }
2854
- }), na = /* @__PURE__ */ P({
2846
+ }), nl = /* @__PURE__ */ P({
2855
2847
  __name: "PrimeInputText",
2856
2848
  props: {
2857
2849
  context: Object
2858
2850
  },
2859
2851
  setup(e) {
2860
- const t = e.context, n = t == null ? void 0 : t.attrs;
2861
- function l() {
2862
- return (t == null ? void 0 : t.iconLeft) && (t == null ? void 0 : t.iconLeft.length) > 0;
2863
- }
2864
- function s() {
2865
- return (t == null ? void 0 : t.iconRight) && (t == null ? void 0 : t.iconRight.length) > 0;
2866
- }
2867
- function r() {
2868
- let h = "";
2869
- return l() && (h = `${h}p-input-icon-left `), s() && (h = `${h}p-input-icon-right `), h;
2870
- }
2871
- function o(h) {
2872
- t == null || t.handlers.blur(h.target.value);
2852
+ const t = e.context, n = t == null ? void 0 : t.attrs, r = () => (t == null ? void 0 : t.iconLeft) && (t == null ? void 0 : t.iconLeft.length) > 0, a = () => (t == null ? void 0 : t.iconRight) && (t == null ? void 0 : t.iconRight.length) > 0, s = () => {
2853
+ let y = "";
2854
+ return r() && (y = `${y}p-input-icon-left `), a() && (y = `${y}p-input-icon-right `), y;
2855
+ };
2856
+ function o(y) {
2857
+ t == null || t.handlers.blur(y.target.value);
2873
2858
  }
2874
- function u(h) {
2875
- t == null || t.node.input(h.target.value);
2859
+ function c(y) {
2860
+ t == null || t.node.input(y.target.value);
2876
2861
  }
2877
- const b = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2878
- return (h, _) => {
2879
- const v = T("InputText");
2880
- return A(), x("div", null, [
2881
- kn("span", {
2882
- class: q(r())
2862
+ return (y, w) => {
2863
+ const v = j("InputText");
2864
+ return O(), A("div", null, [
2865
+ wn("span", {
2866
+ class: U(s())
2883
2867
  }, [
2884
- l() ? (A(), x("i", {
2868
+ r() ? (O(), A("i", {
2885
2869
  key: 0,
2886
- class: q(a(t).iconLeft)
2887
- }, null, 2)) : se("", !0),
2888
- D(v, {
2889
- id: a(t).id,
2890
- modelValue: a(t)._value,
2891
- "onUpdate:modelValue": _[0] || (_[0] = (w) => a(t)._value = w),
2892
- disabled: a(n)._disabled ?? !1,
2893
- readonly: a(n)._readonly ?? !1,
2894
- style: fe(a(n).style),
2895
- class: q(a(b)),
2896
- tabindex: a(n).tabindex,
2897
- "aria-label": a(n).ariaLabel,
2898
- "aria-labelledby": a(n).ariaLabelledby,
2899
- placeholder: a(n).placeholder,
2900
- onInput: u,
2870
+ class: U(l(t).iconLeft)
2871
+ }, null, 2)) : le("", !0),
2872
+ F(v, {
2873
+ id: l(t).id,
2874
+ modelValue: l(t)._value,
2875
+ "onUpdate:modelValue": w[0] || (w[0] = (h) => l(t)._value = h),
2876
+ disabled: l(n)._disabled ?? !1,
2877
+ readonly: l(n)._readonly ?? !1,
2878
+ style: ue(l(n).style),
2879
+ class: U(l(n).class),
2880
+ tabindex: l(n).tabindex,
2881
+ "aria-label": l(n).ariaLabel,
2882
+ "aria-labelledby": l(n).ariaLabelledby,
2883
+ placeholder: l(n).placeholder,
2884
+ onInput: c,
2901
2885
  onBlur: o
2902
2886
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "placeholder"]),
2903
- s ? (A(), x("i", {
2887
+ a ? (O(), A("i", {
2904
2888
  key: 1,
2905
- class: q(a(t).iconRight)
2906
- }, null, 2)) : se("", !0)
2889
+ class: U(l(t).iconRight)
2890
+ }, null, 2)) : le("", !0)
2907
2891
  ], 2)
2908
2892
  ]);
2909
2893
  };
2910
2894
  }
2911
- }), ia = /* @__PURE__ */ P({
2895
+ }), il = /* @__PURE__ */ P({
2912
2896
  __name: "PrimeTextarea",
2913
2897
  props: {
2914
2898
  context: Object
2915
2899
  },
2916
2900
  setup(e) {
2917
2901
  const t = e.context, n = t == null ? void 0 : t.attrs;
2918
- function l(o) {
2919
- t == null || t.handlers.blur(o.target.value);
2920
- }
2921
- function s(o) {
2922
- t == null || t.node.input(o.target.value);
2923
- }
2924
- const r = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2925
- return (o, u) => {
2926
- const b = T("Textarea");
2927
- return A(), x("div", null, [
2928
- D(b, {
2929
- id: a(t).id,
2930
- modelValue: a(t)._value,
2931
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
2932
- disabled: a(n)._disabled ?? !1,
2933
- readonly: a(n)._readonly ?? !1,
2934
- style: fe(a(n).style),
2935
- class: q(a(r)),
2936
- tabindex: a(n).tabindex,
2937
- "aria-label": a(n).ariaLabel,
2938
- "aria-labelledby": a(n).ariaLabelledby,
2939
- placeholder: a(n).placeholder,
2940
- rows: a(t).rows ?? 3,
2941
- onInput: s,
2942
- onBlur: l
2902
+ function r(s) {
2903
+ t == null || t.handlers.blur(s.target.value);
2904
+ }
2905
+ function a(s) {
2906
+ t == null || t.node.input(s.target.value);
2907
+ }
2908
+ return (s, o) => {
2909
+ const c = j("Textarea");
2910
+ return O(), A("div", null, [
2911
+ F(c, {
2912
+ id: l(t).id,
2913
+ modelValue: l(t)._value,
2914
+ "onUpdate:modelValue": o[0] || (o[0] = (y) => l(t)._value = y),
2915
+ disabled: l(n)._disabled ?? !1,
2916
+ readonly: l(n)._readonly ?? !1,
2917
+ style: ue(l(n).style),
2918
+ class: U(l(n).class),
2919
+ tabindex: l(n).tabindex,
2920
+ "aria-label": l(n).ariaLabel,
2921
+ "aria-labelledby": l(n).ariaLabelledby,
2922
+ placeholder: l(n).placeholder,
2923
+ rows: l(t).rows ?? 3,
2924
+ onInput: a,
2925
+ onBlur: r
2943
2926
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "placeholder", "rows"])
2944
2927
  ]);
2945
2928
  };
2946
2929
  }
2947
- }), la = /* @__PURE__ */ P({
2930
+ }), rl = /* @__PURE__ */ P({
2948
2931
  __name: "PrimeKnob",
2949
2932
  props: {
2950
2933
  context: Object
2951
2934
  },
2952
2935
  setup(e) {
2953
2936
  const t = e.context, n = t == null ? void 0 : t.attrs;
2954
- function l(s) {
2955
- t == null || t.node.input(s), t == null || t.handlers.blur(s);
2956
- }
2957
- return M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class), (s, r) => {
2958
- const o = T("Knob");
2959
- return A(), x("div", null, [
2960
- D(o, {
2961
- id: a(t).id,
2962
- modelValue: a(t)._value,
2963
- "onUpdate:modelValue": r[0] || (r[0] = (u) => a(t)._value = u),
2964
- disabled: a(n)._disabled ?? !1,
2965
- readonly: a(n)._readonly ?? !1,
2966
- style: fe(a(n).style),
2967
- class: q(s.styleClasss),
2968
- tabindex: a(n).tabindex,
2969
- "aria-label": a(n).ariaLabel,
2970
- "aria-labelledby": a(n).ariaLabelledby,
2971
- min: a(n).min ?? 0,
2972
- max: a(n).max ?? 100,
2973
- step: a(n).step ?? void 0,
2974
- size: a(n).size ?? 100,
2975
- "stroke-width": a(n).strokeWidth ?? 14,
2976
- "show-value": a(n).showValue ?? !0,
2977
- "value-color": a(n).valueColor ?? void 0,
2978
- "range-color": a(n).rangeColor ?? void 0,
2979
- "text-color": a(n).textColor ?? void 0,
2980
- "value-template": a(n).valueTemplate ?? void 0,
2981
- onChange: l
2937
+ function r(a) {
2938
+ t == null || t.node.input(a), t == null || t.handlers.blur(a);
2939
+ }
2940
+ return (a, s) => {
2941
+ const o = j("Knob");
2942
+ return O(), A("div", null, [
2943
+ F(o, {
2944
+ id: l(t).id,
2945
+ modelValue: l(t)._value,
2946
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
2947
+ disabled: l(n)._disabled ?? !1,
2948
+ readonly: l(n)._readonly ?? !1,
2949
+ style: ue(l(n).style),
2950
+ class: U(l(n).class),
2951
+ tabindex: l(n).tabindex,
2952
+ "aria-label": l(n).ariaLabel,
2953
+ "aria-labelledby": l(n).ariaLabelledby,
2954
+ min: l(n).min ?? 0,
2955
+ max: l(n).max ?? 100,
2956
+ step: l(n).step ?? void 0,
2957
+ size: l(n).size ?? 100,
2958
+ "stroke-width": l(n).strokeWidth ?? 14,
2959
+ "show-value": l(n).showValue ?? !0,
2960
+ "value-color": l(n).valueColor ?? void 0,
2961
+ "range-color": l(n).rangeColor ?? void 0,
2962
+ "text-color": l(n).textColor ?? void 0,
2963
+ "value-template": l(n).valueTemplate ?? void 0,
2964
+ onChange: r
2982
2965
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "min", "max", "step", "size", "stroke-width", "show-value", "value-color", "range-color", "text-color", "value-template"])
2983
2966
  ]);
2984
2967
  };
2985
2968
  }
2986
- }), aa = /* @__PURE__ */ P({
2969
+ }), ll = /* @__PURE__ */ P({
2987
2970
  __name: "PrimeMultiSelect",
2988
2971
  props: {
2989
2972
  context: Object
2990
2973
  },
2991
2974
  setup(e) {
2992
2975
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
2993
- function l(r) {
2994
- var o;
2995
- t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
2996
- }
2997
- const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2998
- return (r, o) => {
2999
- const u = T("MultiSelect");
3000
- return A(), x("div", null, [
3001
- D(u, {
3002
- modelValue: a(t)._value,
3003
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3004
- "input-id": a(t).id,
3005
- disabled: a(n)._disabled ?? !1,
3006
- readonly: a(n)._readonly ?? !1,
3007
- "list-style": a(n).style,
3008
- class: q(a(s)),
3009
- tabindex: a(n).tabindex,
3010
- "aria-label": a(n).ariaLabel,
3011
- "aria-labelledby": a(n).ariaLabelledby,
3012
- options: a(n).options,
3013
- "option-label": a(n).optionLabel ?? "label",
3014
- "option-value": a(n).optionValue ?? "value",
3015
- filter: a(n).filter ?? !1,
3016
- onChange: l
2976
+ function r(a) {
2977
+ var s;
2978
+ t == null || t.node.input((s = i.context) == null ? void 0 : s._value);
2979
+ }
2980
+ return (a, s) => {
2981
+ const o = j("MultiSelect");
2982
+ return O(), A("div", null, [
2983
+ F(o, {
2984
+ modelValue: l(t)._value,
2985
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
2986
+ "input-id": l(t).id,
2987
+ disabled: l(n)._disabled ?? !1,
2988
+ readonly: l(n)._readonly ?? !1,
2989
+ "list-style": l(n).style,
2990
+ class: U(l(n).class),
2991
+ tabindex: l(n).tabindex,
2992
+ "aria-label": l(n).ariaLabel,
2993
+ "aria-labelledby": l(n).ariaLabelledby,
2994
+ options: l(n).options,
2995
+ "option-label": l(n).optionLabel ?? "label",
2996
+ "option-value": l(n).optionValue ?? "value",
2997
+ filter: l(n).filter ?? !1,
2998
+ onChange: r
3017
2999
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "list-style", "class", "tabindex", "aria-label", "aria-labelledby", "options", "option-label", "option-value", "filter"])
3018
3000
  ]);
3019
3001
  };
3020
3002
  }
3021
- }), sa = /* @__PURE__ */ P({
3003
+ }), al = /* @__PURE__ */ P({
3022
3004
  __name: "PrimeListbox",
3023
3005
  props: {
3024
3006
  context: Object
3025
3007
  },
3026
3008
  setup(e) {
3027
3009
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
3028
- function l(r) {
3029
- var o;
3030
- t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
3031
- }
3032
- const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3033
- return (r, o) => {
3034
- var b;
3035
- const u = T("Listbox");
3036
- return A(), x("div", null, [
3037
- D(u, {
3038
- id: a(t).id,
3039
- modelValue: a(t)._value,
3040
- "onUpdate:modelValue": o[0] || (o[0] = (h) => a(t)._value = h),
3041
- disabled: a(n)._disabled ?? !1,
3042
- readonly: a(n)._readonly ?? !1,
3043
- "list-style": a(n).style,
3044
- class: q(a(s)),
3045
- tabindex: a(n).tabindex,
3046
- "aria-label": a(n).ariaLabel,
3047
- "aria-labelledby": a(n).ariaLabelledby,
3048
- options: (b = a(n)) == null ? void 0 : b.options,
3049
- "option-label": a(n).optionLabel ?? "label",
3050
- "option-value": a(n).optionValue ?? "value",
3051
- multiple: a(n).multiple ?? !1,
3052
- filter: a(n).filter ?? !1,
3053
- "filter-icon": a(n).filterIcon,
3054
- "filter-placeholder": a(n).filterPlaceholder,
3055
- "filter-locale": a(n).filterLocale,
3056
- "filter-match-mode": a(n).filterMatchMode,
3057
- "auto-option-focus": a(n).autoOptionFocus ?? !0,
3058
- "select-on-focus": a(n).selectOnFocus ?? !1,
3059
- onChange: l
3010
+ function r(a) {
3011
+ var s;
3012
+ t == null || t.node.input((s = i.context) == null ? void 0 : s._value);
3013
+ }
3014
+ return (a, s) => {
3015
+ var c;
3016
+ const o = j("Listbox");
3017
+ return O(), A("div", null, [
3018
+ F(o, {
3019
+ id: l(t).id,
3020
+ modelValue: l(t)._value,
3021
+ "onUpdate:modelValue": s[0] || (s[0] = (y) => l(t)._value = y),
3022
+ disabled: l(n)._disabled ?? !1,
3023
+ readonly: l(n)._readonly ?? !1,
3024
+ "list-style": l(n).style,
3025
+ class: U(l(n).class),
3026
+ tabindex: l(n).tabindex,
3027
+ "aria-label": l(n).ariaLabel,
3028
+ "aria-labelledby": l(n).ariaLabelledby,
3029
+ options: (c = l(n)) == null ? void 0 : c.options,
3030
+ "option-label": l(n).optionLabel ?? "label",
3031
+ "option-value": l(n).optionValue ?? "value",
3032
+ multiple: l(n).multiple ?? !1,
3033
+ filter: l(n).filter ?? !1,
3034
+ "filter-icon": l(n).filterIcon,
3035
+ "filter-placeholder": l(n).filterPlaceholder,
3036
+ "filter-locale": l(n).filterLocale,
3037
+ "filter-match-mode": l(n).filterMatchMode,
3038
+ "auto-option-focus": l(n).autoOptionFocus ?? !0,
3039
+ "select-on-focus": l(n).selectOnFocus ?? !1,
3040
+ onChange: r
3060
3041
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "list-style", "class", "tabindex", "aria-label", "aria-labelledby", "options", "option-label", "option-value", "multiple", "filter", "filter-icon", "filter-placeholder", "filter-locale", "filter-match-mode", "auto-option-focus", "select-on-focus"])
3061
3042
  ]);
3062
3043
  };
3063
3044
  }
3064
- }), ra = /* @__PURE__ */ P({
3045
+ }), sl = /* @__PURE__ */ P({
3065
3046
  __name: "PrimePassword",
3066
3047
  props: {
3067
3048
  context: Object
3068
3049
  },
3069
3050
  setup(e) {
3070
3051
  const t = e.context, n = t == null ? void 0 : t.attrs;
3071
- function l(o) {
3072
- t == null || t.handlers.blur(o.target.value);
3073
- }
3074
- function s(o) {
3075
- t == null || t.node.input(o.target.value);
3076
- }
3077
- const r = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3078
- return (o, u) => {
3079
- const b = T("Password");
3080
- return A(), x("div", null, [
3081
- D(b, {
3082
- modelValue: a(t)._value,
3083
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
3084
- "input-id": a(t).id,
3085
- disabled: a(n)._disabled ?? !1,
3086
- readonly: a(n)._readonly ?? !1,
3087
- "input-style": a(n).style,
3088
- "input-class": a(r),
3089
- tabindex: a(n).tabindex,
3090
- "aria-label": a(n).ariaLabel,
3091
- "aria-labelledby": a(n).ariaLabelledby,
3092
- placeholder: a(n).placeholder,
3093
- "medium-regex": a(n).mediumRegex ?? "^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})",
3094
- "strong-regex": a(n).strongRegex ?? "^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})",
3095
- "prompt-label": a(n).promptLabel,
3096
- "weak-label": a(n).weakLabel,
3097
- "medium-label": a(n).mediumLabel,
3098
- "strong-label": a(n).strongLabel,
3099
- "hide-icon": a(n).hideIcon ?? "pi pi-eye-slash",
3100
- "show-icon": a(n).showIcon ?? "pi pi-eye",
3101
- feedback: a(t).feedback ?? !1,
3102
- "toggle-mask": a(t).toggleMask ?? !1,
3103
- onInput: s,
3104
- onBlur: l
3052
+ function r(s) {
3053
+ t == null || t.handlers.blur(s.target.value);
3054
+ }
3055
+ function a(s) {
3056
+ t == null || t.node.input(s.target.value);
3057
+ }
3058
+ return (s, o) => {
3059
+ const c = j("Password");
3060
+ return O(), A("div", null, [
3061
+ F(c, {
3062
+ modelValue: l(t)._value,
3063
+ "onUpdate:modelValue": o[0] || (o[0] = (y) => l(t)._value = y),
3064
+ "input-id": l(t).id,
3065
+ disabled: l(n)._disabled ?? !1,
3066
+ readonly: l(n)._readonly ?? !1,
3067
+ "input-style": l(n).style,
3068
+ "input-class": l(n).class,
3069
+ tabindex: l(n).tabindex,
3070
+ "aria-label": l(n).ariaLabel,
3071
+ "aria-labelledby": l(n).ariaLabelledby,
3072
+ placeholder: l(n).placeholder,
3073
+ "medium-regex": l(n).mediumRegex ?? "^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})",
3074
+ "strong-regex": l(n).strongRegex ?? "^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})",
3075
+ "prompt-label": l(n).promptLabel,
3076
+ "weak-label": l(n).weakLabel,
3077
+ "medium-label": l(n).mediumLabel,
3078
+ "strong-label": l(n).strongLabel,
3079
+ "hide-icon": l(n).hideIcon ?? "pi pi-eye-slash",
3080
+ "show-icon": l(n).showIcon ?? "pi pi-eye",
3081
+ feedback: l(t).feedback ?? !1,
3082
+ "toggle-mask": l(t).toggleMask ?? !1,
3083
+ onInput: a,
3084
+ onBlur: r
3105
3085
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "placeholder", "medium-regex", "strong-regex", "prompt-label", "weak-label", "medium-label", "strong-label", "hide-icon", "show-icon", "feedback", "toggle-mask"])
3106
3086
  ]);
3107
3087
  };
3108
3088
  }
3109
- }), oa = /* @__PURE__ */ P({
3089
+ }), ol = /* @__PURE__ */ P({
3110
3090
  __name: "PrimeRating",
3111
3091
  props: {
3112
3092
  context: Object
3113
3093
  },
3114
3094
  setup(e) {
3115
3095
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
3116
- function l(r) {
3117
- var o;
3118
- t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
3119
- }
3120
- const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3121
- return (r, o) => {
3122
- const u = T("Rating");
3123
- return A(), x("div", null, [
3124
- D(u, {
3125
- id: a(t).id,
3126
- modelValue: a(t)._value,
3127
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3128
- disabled: a(n)._disabled ?? !1,
3129
- readonly: a(n)._readonly ?? !1,
3130
- style: fe(a(n).style),
3131
- class: q(a(s)),
3132
- tabindex: a(n).tabindex,
3133
- "aria-label": a(n).ariaLabel,
3134
- "aria-labelledby": a(n).ariaLabelledby,
3135
- stars: a(n).stars ?? 5,
3136
- cancel: a(n).cancel ?? !1,
3137
- "on-icon": a(n).onIcon ?? "pi pi-star-fill",
3138
- "off-icon": a(n).offIcon ?? "pi pi-star",
3139
- "cancel-icon": a(n).cancelIcon ?? "pi pi-ban",
3140
- onChange: l
3096
+ function r(a) {
3097
+ var s;
3098
+ t == null || t.node.input((s = i.context) == null ? void 0 : s._value);
3099
+ }
3100
+ return (a, s) => {
3101
+ const o = j("Rating");
3102
+ return O(), A("div", null, [
3103
+ F(o, {
3104
+ id: l(t).id,
3105
+ modelValue: l(t)._value,
3106
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
3107
+ disabled: l(n)._disabled ?? !1,
3108
+ readonly: l(n)._readonly ?? !1,
3109
+ style: ue(l(n).style),
3110
+ class: U(l(n).class),
3111
+ tabindex: l(n).tabindex,
3112
+ "aria-label": l(n).ariaLabel,
3113
+ "aria-labelledby": l(n).ariaLabelledby,
3114
+ stars: l(n).stars ?? 5,
3115
+ cancel: l(n).cancel ?? !1,
3116
+ "on-icon": l(n).onIcon ?? "pi pi-star-fill",
3117
+ "off-icon": l(n).offIcon ?? "pi pi-star",
3118
+ "cancel-icon": l(n).cancelIcon ?? "pi pi-ban",
3119
+ onChange: r
3141
3120
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "stars", "cancel", "on-icon", "off-icon", "cancel-icon"])
3142
3121
  ]);
3143
3122
  };
3144
3123
  }
3145
- }), ua = /* @__PURE__ */ P({
3124
+ }), ul = /* @__PURE__ */ P({
3146
3125
  __name: "PrimeSlider",
3147
3126
  props: {
3148
3127
  context: Object
3149
3128
  },
3150
3129
  setup(e) {
3151
3130
  const t = e.context, n = t == null ? void 0 : t.attrs;
3152
- function l(r) {
3153
- t == null || t.node.input(r), t == null || t.handlers.blur(r);
3154
- }
3155
- const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3156
- return (r, o) => {
3157
- const u = T("Slider");
3158
- return A(), x("div", null, [
3159
- D(u, {
3160
- id: a(t).id,
3161
- modelValue: a(t)._value,
3162
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3163
- disabled: a(n)._disabled ?? !1,
3164
- readonly: a(n)._readonly ?? !1,
3165
- style: fe(a(n).style),
3166
- class: q(a(s)),
3167
- tabindex: a(n).tabindex,
3168
- "aria-label": a(n).ariaLabel,
3169
- "aria-labelledby": a(n).ariaLabelledby,
3170
- min: a(n).min ?? 0,
3171
- max: a(n).max ?? 100,
3172
- step: a(n).step ?? void 0,
3173
- range: a(n).range ?? !1,
3174
- orientation: a(n).orientation ?? "horizontal",
3175
- onChange: l
3131
+ function r(a) {
3132
+ t == null || t.node.input(a), t == null || t.handlers.blur(a);
3133
+ }
3134
+ return (a, s) => {
3135
+ const o = j("Slider");
3136
+ return O(), A("div", null, [
3137
+ F(o, {
3138
+ id: l(t).id,
3139
+ modelValue: l(t)._value,
3140
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
3141
+ disabled: l(n)._disabled ?? !1,
3142
+ readonly: l(n)._readonly ?? !1,
3143
+ style: ue(l(n).style),
3144
+ class: U(l(n).class),
3145
+ tabindex: l(n).tabindex,
3146
+ "aria-label": l(n).ariaLabel,
3147
+ "aria-labelledby": l(n).ariaLabelledby,
3148
+ min: l(n).min ?? 0,
3149
+ max: l(n).max ?? 100,
3150
+ step: l(n).step ?? void 0,
3151
+ range: l(n).range ?? !1,
3152
+ orientation: l(n).orientation ?? "horizontal",
3153
+ onChange: r
3176
3154
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "min", "max", "step", "range", "orientation"])
3177
3155
  ]);
3178
3156
  };
3179
3157
  }
3180
- }), fa = /* @__PURE__ */ P({
3158
+ }), fl = /* @__PURE__ */ P({
3181
3159
  __name: "PrimeToggleButton",
3182
3160
  props: {
3183
3161
  context: Object
3184
3162
  },
3185
3163
  setup(e) {
3186
3164
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
3187
- function l(r) {
3188
- var o;
3189
- t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
3190
- }
3191
- const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3192
- return (r, o) => {
3193
- const u = T("ToggleButton");
3194
- return A(), x("div", null, [
3195
- D(u, {
3196
- modelValue: a(t)._value,
3197
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3198
- "input-id": a(t).id,
3199
- disabled: a(n)._disabled ?? !1,
3200
- readonly: a(n)._readonly ?? !1,
3201
- "input-style": a(n).style,
3202
- "input-class": a(s),
3203
- tabindex: a(n).tabindex,
3204
- "aria-label": a(n).ariaLabel,
3205
- "aria-labelledby": a(n).ariaLabelledby,
3206
- "on-label": a(n).onLabel ?? "Yes",
3207
- "off-label": a(n).offLabel ?? "No",
3208
- "on-icon": a(n).onIcon ?? "pi pi-check",
3209
- "off-icon": a(n).offIcon ?? "pi pi-times",
3210
- "icon-pos": a(n).iconPos ?? "left",
3211
- onChange: l
3165
+ function r(a) {
3166
+ var s;
3167
+ t == null || t.node.input((s = i.context) == null ? void 0 : s._value);
3168
+ }
3169
+ return (a, s) => {
3170
+ const o = j("ToggleButton");
3171
+ return O(), A("div", null, [
3172
+ F(o, {
3173
+ modelValue: l(t)._value,
3174
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
3175
+ "input-id": l(t).id,
3176
+ disabled: l(n)._disabled ?? !1,
3177
+ readonly: l(n)._readonly ?? !1,
3178
+ "input-style": l(n).style,
3179
+ "input-class": l(n).class,
3180
+ tabindex: l(n).tabindex,
3181
+ "aria-label": l(n).ariaLabel,
3182
+ "aria-labelledby": l(n).ariaLabelledby,
3183
+ "on-label": l(n).onLabel ?? "Yes",
3184
+ "off-label": l(n).offLabel ?? "No",
3185
+ "on-icon": l(n).onIcon ?? "pi pi-check",
3186
+ "off-icon": l(n).offIcon ?? "pi pi-times",
3187
+ "icon-pos": l(n).iconPos ?? "left",
3188
+ onChange: r
3212
3189
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "on-label", "off-label", "on-icon", "off-icon", "icon-pos"])
3213
3190
  ]);
3214
3191
  };
3215
3192
  }
3216
- }), ca = /* @__PURE__ */ P({
3193
+ }), cl = /* @__PURE__ */ P({
3217
3194
  __name: "PrimeSelectButton",
3218
3195
  props: {
3219
3196
  context: Object
3220
3197
  },
3221
3198
  setup(e) {
3222
3199
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
3223
- function l(r) {
3224
- var o;
3225
- t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
3226
- }
3227
- const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3228
- return (r, o) => {
3229
- const u = T("SelectButton");
3230
- return A(), x("div", null, [
3231
- D(u, {
3232
- id: a(t).id,
3233
- modelValue: a(t)._value,
3234
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3235
- disabled: a(n)._disabled ?? !1,
3236
- readonly: a(n)._readonly ?? !1,
3237
- style: fe(a(n).style),
3238
- class: q(a(s)),
3239
- tabindex: a(n).tabindex,
3240
- "aria-label": a(n).ariaLabel,
3241
- "aria-labelledby": a(n).ariaLabelledby,
3242
- options: a(n).options,
3243
- "option-label": a(n).optionLabel ?? "label",
3244
- "option-value": a(n).optionValue ?? "value",
3245
- "option-disabled": a(n).optionDisabled,
3246
- multiple: a(n).multiple ?? !1,
3247
- unselectable: a(n).unselectable ?? !0,
3248
- "data-key": a(n).dataKey,
3249
- onChange: l
3200
+ function r(a) {
3201
+ var s;
3202
+ t == null || t.node.input((s = i.context) == null ? void 0 : s._value);
3203
+ }
3204
+ return (a, s) => {
3205
+ const o = j("SelectButton");
3206
+ return O(), A("div", null, [
3207
+ F(o, {
3208
+ id: l(t).id,
3209
+ modelValue: l(t)._value,
3210
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
3211
+ disabled: l(n)._disabled ?? !1,
3212
+ readonly: l(n)._readonly ?? !1,
3213
+ style: ue(l(n).style),
3214
+ class: U(l(n).class),
3215
+ tabindex: l(n).tabindex,
3216
+ "aria-label": l(n).ariaLabel,
3217
+ "aria-labelledby": l(n).ariaLabelledby,
3218
+ options: l(n).options,
3219
+ "option-label": l(n).optionLabel ?? "label",
3220
+ "option-value": l(n).optionValue ?? "value",
3221
+ "option-disabled": l(n).optionDisabled,
3222
+ multiple: l(n).multiple ?? !1,
3223
+ unselectable: l(n).unselectable ?? !0,
3224
+ "data-key": l(n).dataKey,
3225
+ onChange: r
3250
3226
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "options", "option-label", "option-value", "option-disabled", "multiple", "unselectable", "data-key"])
3251
3227
  ]);
3252
3228
  };
3253
3229
  }
3254
- }), pa = {
3230
+ }), pl = {
3255
3231
  key: 0,
3256
3232
  class: "formkit-prime-left"
3257
- }, da = {
3233
+ }, dl = {
3258
3234
  key: 1,
3259
3235
  class: "formkit-prime-right"
3260
- }, ma = /* @__PURE__ */ P({
3236
+ }, ml = /* @__PURE__ */ P({
3261
3237
  __name: "PrimeTriStateCheckbox",
3262
3238
  props: {
3263
3239
  context: Object
3264
3240
  },
3265
3241
  setup(e) {
3266
3242
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
3267
- function l(r) {
3268
- var o;
3269
- t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
3270
- }
3271
- const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3272
- return (r, o) => {
3273
- const u = T("TriStateCheckbox");
3274
- return A(), x("div", null, [
3275
- a(t).attrs.labelLeft ? (A(), x("span", pa, be(a(t).attrs.labelLeft), 1)) : se("", !0),
3276
- D(u, {
3277
- modelValue: a(t)._value,
3278
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3279
- "input-id": a(t).id,
3280
- disabled: a(n)._disabled ?? !1,
3281
- readonly: a(n)._readonly ?? !1,
3282
- "input-style": a(n).style,
3283
- "input-class": a(s),
3284
- tabindex: a(n).tabindex,
3285
- "aria-label": a(n).ariaLabel,
3286
- "aria-labelledby": a(n).ariaLabelledby,
3287
- onClick: l
3243
+ function r(a) {
3244
+ var s;
3245
+ t == null || t.node.input((s = i.context) == null ? void 0 : s._value);
3246
+ }
3247
+ return (a, s) => {
3248
+ const o = j("TriStateCheckbox");
3249
+ return O(), A("div", null, [
3250
+ l(t).attrs.labelLeft ? (O(), A("span", pl, me(l(t).attrs.labelLeft), 1)) : le("", !0),
3251
+ F(o, {
3252
+ modelValue: l(t)._value,
3253
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
3254
+ "input-id": l(t).id,
3255
+ disabled: l(n)._disabled ?? !1,
3256
+ readonly: l(n)._readonly ?? !1,
3257
+ "input-style": l(n).style,
3258
+ "input-class": l(n).class,
3259
+ tabindex: l(n).tabindex,
3260
+ "aria-label": l(n).ariaLabel,
3261
+ "aria-labelledby": l(n).ariaLabelledby,
3262
+ onClick: r
3288
3263
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby"]),
3289
- a(t).attrs.labelRight ? (A(), x("span", da, be(a(t).attrs.labelRight), 1)) : se("", !0)
3264
+ l(t).attrs.labelRight ? (O(), A("span", dl, me(l(t).attrs.labelRight), 1)) : le("", !0)
3290
3265
  ]);
3291
3266
  };
3292
3267
  }
3293
- }), ba = B(na, {
3268
+ }), bl = D(nl, {
3294
3269
  props: ["iconRight", "iconLeft"]
3295
- }), ya = B(Gl, {
3270
+ }), yl = D(Gr, {
3296
3271
  props: ["iconRight", "iconLeft"]
3297
- }), va = B(Ql, {
3272
+ }), hl = D(Qr, {
3298
3273
  props: []
3299
- }), ha = B(ra, {
3274
+ }), vl = D(sl, {
3300
3275
  props: ["feedback", "toggleMask"]
3301
- }), _a = B(ia, {
3276
+ }), _l = D(il, {
3302
3277
  props: ["rows"]
3303
- }), ga = B(Kl, {
3278
+ }), gl = D(Kr, {
3304
3279
  props: []
3305
- }), $a = B(ta, {
3280
+ }), $l = D(tl, {
3306
3281
  props: []
3307
- }), wa = B(Jl, {
3282
+ }), xl = D(Jr, {
3308
3283
  props: []
3309
- }), ka = B(Yl, {
3284
+ }), wl = D(Yr, {
3310
3285
  props: []
3311
- }), Ca = B(aa, {
3286
+ }), kl = D(ll, {
3312
3287
  props: []
3313
- }), Sa = B(sa, {
3288
+ }), Sl = D(al, {
3314
3289
  props: []
3315
- }), Va = B(Ul, {
3290
+ }), Cl = D(Ur, {
3316
3291
  props: []
3317
- }), Ia = B(ua, {
3292
+ }), Il = D(ul, {
3318
3293
  props: []
3319
- }), La = B(oa, {
3294
+ }), Vl = D(ol, {
3320
3295
  props: []
3321
- }), Oa = B(Hl, {
3296
+ }), Ll = D(Hr, {
3322
3297
  props: []
3323
- }), Aa = B(la, {
3298
+ }), Ol = D(rl, {
3324
3299
  props: []
3325
- }), xa = B(Zl, {
3300
+ }), Al = D(Zr, {
3326
3301
  props: []
3327
- }), Pa = B(fa, {
3302
+ }), Pl = D(fl, {
3328
3303
  props: []
3329
- }), Ea = B(ca, {
3304
+ }), El = D(cl, {
3330
3305
  props: []
3331
- }), Ma = B(ma, {
3306
+ }), Ml = D(ml, {
3332
3307
  props: []
3333
- }), ja = {
3334
- primeInputText: ba,
3335
- primeInputNumber: ya,
3336
- primeInputMask: va,
3337
- primePassword: ha,
3338
- primeCheckbox: ga,
3339
- primeInputSwitch: $a,
3340
- primeTextarea: _a,
3341
- primeEditor: wa,
3342
- primeDropdown: ka,
3343
- primeMultiSelect: Ca,
3344
- primeCalendar: Va,
3345
- primeSlider: Ia,
3346
- primeChips: Oa,
3347
- primeKnob: Aa,
3348
- primeRating: La,
3349
- primeColorPicker: xa,
3350
- primeToggleButton: Pa,
3351
- primeListbox: Sa,
3352
- primeSelectButton: Ea,
3353
- primeTriStateCheckbox: Ma
3308
+ }), jl = {
3309
+ primeInputText: bl,
3310
+ primeInputNumber: yl,
3311
+ primeInputMask: hl,
3312
+ primePassword: vl,
3313
+ primeCheckbox: gl,
3314
+ primeInputSwitch: $l,
3315
+ primeTextarea: _l,
3316
+ primeEditor: xl,
3317
+ primeDropdown: wl,
3318
+ primeMultiSelect: kl,
3319
+ primeCalendar: Cl,
3320
+ primeSlider: Il,
3321
+ primeChips: Ll,
3322
+ primeKnob: Ol,
3323
+ primeRating: Vl,
3324
+ primeColorPicker: Al,
3325
+ primeToggleButton: Pl,
3326
+ primeListbox: Sl,
3327
+ primeSelectButton: El,
3328
+ primeTriStateCheckbox: Ml
3354
3329
  };
3355
3330
  export {
3356
- Va as primeCalendarDefinition,
3357
- ga as primeCheckboxDefinition,
3358
- Oa as primeChipsDefinition,
3359
- xa as primeColorPickerDefinition,
3360
- ka as primeDropdownDefinition,
3361
- wa as primeEditorDefinition,
3362
- va as primeInputMaskDefinition,
3363
- ya as primeInputNumberDefinition,
3364
- $a as primeInputSwitchDefinition,
3365
- ba as primeInputTextDefinition,
3366
- ja as primeInputs,
3367
- Aa as primeKnobDefinition,
3368
- Sa as primeListboxDefinition,
3369
- Ca as primeMultiSelectDefinition,
3370
- ha as primePasswordDefinition,
3371
- La as primeRatingDefinition,
3372
- Ea as primeSelectButtonDefinition,
3373
- Ia as primeSliderDefinition,
3374
- _a as primeTextareaDefinition,
3375
- Pa as primeToggleButtonDefinition,
3376
- Ma as primeTriStateCheckboxDefinition
3331
+ Cl as primeCalendarDefinition,
3332
+ gl as primeCheckboxDefinition,
3333
+ Ll as primeChipsDefinition,
3334
+ Al as primeColorPickerDefinition,
3335
+ wl as primeDropdownDefinition,
3336
+ xl as primeEditorDefinition,
3337
+ hl as primeInputMaskDefinition,
3338
+ yl as primeInputNumberDefinition,
3339
+ $l as primeInputSwitchDefinition,
3340
+ bl as primeInputTextDefinition,
3341
+ jl as primeInputs,
3342
+ Ol as primeKnobDefinition,
3343
+ Sl as primeListboxDefinition,
3344
+ kl as primeMultiSelectDefinition,
3345
+ vl as primePasswordDefinition,
3346
+ Vl as primeRatingDefinition,
3347
+ El as primeSelectButtonDefinition,
3348
+ Il as primeSliderDefinition,
3349
+ _l as primeTextareaDefinition,
3350
+ Pl as primeToggleButtonDefinition,
3351
+ Ml as primeTriStateCheckboxDefinition
3377
3352
  };