@sfxcode/formkit-primevue 1.2.1 → 1.2.3

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 M, getCurrentInstance as at, watch as ye, watchEffect as ae, reactive as yn, onUnmounted as vn, h as Ae, ref as Me, inject as Oe, onMounted as hn, computed as j, provide as _n, toRef as gn, onBeforeUnmount as $n, markRaw as wn, isRef as kn, createTextVNode as Cn, resolveComponent as R, openBlock as L, createElementBlock as A, createVNode as T, unref as a, toDisplayString as ce, createCommentVNode as oe, normalizeStyle as de, normalizeClass as K, createElementVNode as Bt, Fragment as Sn, renderList as Vn } from "vue";
2
- const zt = [
1
+ import { defineComponent as M, getCurrentInstance as st, watch as pe, watchEffect as ee, reactive as _n, onUnmounted as gn, ref as ne, provide as zt, h as we, computed as R, inject as he, onMounted as $n, toRef as wn, onBeforeUnmount as kn, markRaw as Cn, isRef as Sn, createTextVNode as Vn, resolveComponent as F, openBlock as L, createElementBlock as P, createVNode as D, unref as a, toDisplayString as de, createCommentVNode as oe, normalizeStyle as be, normalizeClass as U, createElementVNode as Ut, Fragment as In, renderList as Ln } from "vue";
2
+ const Kt = [
3
3
  "__key",
4
4
  "__init",
5
5
  "__shim",
@@ -7,33 +7,42 @@ const zt = [
7
7
  "__index",
8
8
  "__prevKey"
9
9
  ];
10
- function Je() {
10
+ function Ye() {
11
11
  return Math.random().toString(36).substring(2, 15);
12
12
  }
13
- function In(e, i) {
13
+ function Pn(e, i) {
14
14
  const t = e instanceof Set ? e : new Set(e);
15
15
  return i && i.forEach((n) => t.add(n)), [...t];
16
16
  }
17
- function E(e, i) {
17
+ function j(e, i) {
18
18
  return Object.prototype.hasOwnProperty.call(e, i);
19
19
  }
20
- function ue(e, i, t = !0, n = ["__key"]) {
20
+ function fe(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
- if (e instanceof Map || e instanceof Set || e instanceof Date || e === null || i === null || Object.keys(e).length !== Object.keys(i).length)
24
+ if (e instanceof Map || e instanceof Set)
25
+ return !1;
26
+ if (e instanceof Date && i instanceof Date)
27
+ return e.getTime() === i.getTime();
28
+ if (e instanceof RegExp && i instanceof RegExp)
29
+ return An(e, i);
30
+ if (e === null || i === null || Object.keys(e).length !== Object.keys(i).length)
25
31
  return !1;
26
32
  for (const l of n)
27
33
  if ((l in e || l in i) && e[l] !== i[l])
28
34
  return !1;
29
35
  for (const l in e)
30
- if (!(l in i) || e[l] !== i[l] && !t || t && !ue(e[l], i[l], t, n))
36
+ if (!(l in i) || e[l] !== i[l] && !t || t && !fe(e[l], i[l], t, n))
31
37
  return !1;
32
38
  return !0;
33
39
  }
34
40
  return !1;
35
41
  }
36
- function kt(e) {
42
+ function An(e, i) {
43
+ return e.source === i.source && e.flags.split("").sort().join("") === i.flags.split("").sort().join("");
44
+ }
45
+ function et(e) {
37
46
  const i = typeof e;
38
47
  if (i === "number")
39
48
  return !1;
@@ -50,43 +59,43 @@ function kt(e) {
50
59
  }
51
60
  return !1;
52
61
  }
53
- function st(e) {
62
+ function rt(e) {
54
63
  return Object.prototype.toString.call(e) === "[object Object]";
55
64
  }
56
- function pt(e) {
57
- return st(e) || Array.isArray(e);
65
+ function xe(e) {
66
+ return rt(e) || Array.isArray(e);
58
67
  }
59
- function _e(e) {
60
- if (st(e) === !1 || e.__FKNode__ || e.__POJO__ === !1)
68
+ function ke(e) {
69
+ if (rt(e) === !1 || e.__FKNode__ || e.__POJO__ === !1)
61
70
  return !1;
62
71
  const i = e.constructor;
63
72
  if (i === void 0)
64
73
  return !0;
65
74
  const t = i.prototype;
66
- return !(st(t) === !1 || t.hasOwnProperty("isPrototypeOf") === !1);
75
+ return !(rt(t) === !1 || t.hasOwnProperty("isPrototypeOf") === !1);
67
76
  }
68
- function Ye(e, i, t = !1, n = !1) {
77
+ function Qe(e, i, t = !1, n = !1) {
69
78
  if (i === null)
70
79
  return null;
71
80
  const l = {};
72
81
  if (typeof i == "string")
73
82
  return i;
74
83
  for (const s in e)
75
- if (E(i, s) && (i[s] !== void 0 || !n)) {
84
+ if (j(i, s) && (i[s] !== void 0 || !n)) {
76
85
  if (t && Array.isArray(e[s]) && Array.isArray(i[s])) {
77
86
  l[s] = e[s].concat(i[s]);
78
87
  continue;
79
88
  }
80
89
  if (i[s] === void 0)
81
90
  continue;
82
- _e(e[s]) && _e(i[s]) ? l[s] = Ye(e[s], i[s], t, n) : l[s] = i[s];
91
+ ke(e[s]) && ke(i[s]) ? l[s] = Qe(e[s], i[s], t, n) : l[s] = i[s];
83
92
  } else
84
93
  l[s] = e[s];
85
94
  for (const s in i)
86
- !E(l, s) && i[s] !== void 0 && (l[s] = i[s]);
95
+ !j(l, s) && i[s] !== void 0 && (l[s] = i[s]);
87
96
  return l;
88
97
  }
89
- function Ln(e) {
98
+ function On(e) {
90
99
  if (e[0] !== '"' && e[0] !== "'" || e[0] !== e[e.length - 1])
91
100
  return !1;
92
101
  const i = e[0];
@@ -95,7 +104,7 @@ function Ln(e) {
95
104
  return !1;
96
105
  return !0;
97
106
  }
98
- function An(e) {
107
+ function xn(e) {
99
108
  if (!e.length)
100
109
  return "";
101
110
  let i = "", t = "";
@@ -105,13 +114,13 @@ function An(e) {
105
114
  }
106
115
  return i;
107
116
  }
108
- function me(...e) {
117
+ function ye(...e) {
109
118
  return e.reduce((i, t) => {
110
119
  const { value: n, name: l, modelValue: s, config: r, plugins: o, ...u } = t;
111
120
  return Object.assign(i, u);
112
121
  }, {});
113
122
  }
114
- function On(e) {
123
+ function Mn(e) {
115
124
  const i = [];
116
125
  let t = "", n = 0, l = "", s = "";
117
126
  for (let r = 0; r < e.length; r++) {
@@ -134,25 +143,25 @@ function St(e, i) {
134
143
  n.some((s) => s.test(l)) && (t[l] = e[l]);
135
144
  }), t;
136
145
  }
137
- function Fe(e) {
146
+ function De(e) {
138
147
  return e.replace(/-([a-z0-9])/gi, (i, t) => t.toUpperCase());
139
148
  }
140
- function Ut(e) {
149
+ function Wt(e) {
141
150
  return e.replace(/([a-z0-9])([A-Z])/g, (i, t, n) => t + "-" + n.toLowerCase()).replace(" ", "-").toLowerCase();
142
151
  }
143
- function Pn(e, i = zt) {
152
+ function En(e, i = Kt) {
144
153
  if (e !== null && typeof e == "object") {
145
154
  let t;
146
- if (Array.isArray(e) ? t = [...e] : _e(e) && (t = { ...e }), t)
147
- return Mn(e, t, i), t;
155
+ if (Array.isArray(e) ? t = [...e] : ke(e) && (t = { ...e }), t)
156
+ return jn(e, t, i), t;
148
157
  }
149
158
  return e;
150
159
  }
151
- function Pe(e, i = zt) {
160
+ function Ee(e, i = Kt) {
152
161
  if (e === null || e instanceof RegExp || e instanceof Date || e instanceof Map || e instanceof Set || typeof File == "function" && e instanceof File)
153
162
  return e;
154
163
  let t;
155
- Array.isArray(e) ? t = e.map((n) => typeof n == "object" ? Pe(n, i) : n) : t = Object.keys(e).reduce((n, l) => (n[l] = typeof e[l] == "object" ? Pe(e[l], i) : e[l], n), {});
164
+ Array.isArray(e) ? t = e.map((n) => typeof n == "object" ? Ee(n, i) : n) : t = Object.keys(e).reduce((n, l) => (n[l] = typeof e[l] == "object" ? Ee(e[l], i) : e[l], n), {});
156
165
  for (const n of i)
157
166
  n in e && Object.defineProperty(t, n, {
158
167
  enumerable: !1,
@@ -160,17 +169,17 @@ function Pe(e, i = zt) {
160
169
  });
161
170
  return t;
162
171
  }
163
- function pe(e) {
164
- return typeof e == "object" ? Pe(e) : e;
172
+ function me(e) {
173
+ return typeof e == "object" ? Ee(e) : e;
165
174
  }
166
- function xn(e, i) {
175
+ function Rn(e, i) {
167
176
  if (!e || typeof e != "object")
168
177
  return null;
169
178
  const t = i.split(".");
170
179
  let n = e;
171
180
  for (const l in t) {
172
181
  const s = t[l];
173
- if (E(n, s) && (n = n[s]), +l === t.length - 1)
182
+ if (j(n, s) && (n = n[s]), +l === t.length - 1)
174
183
  return n;
175
184
  if (!n || typeof n != "object")
176
185
  return null;
@@ -180,7 +189,7 @@ function xn(e, i) {
180
189
  function Y(e) {
181
190
  return e !== void 0 && e !== "false" && e !== !1 ? !0 : void 0;
182
191
  }
183
- function xe(e) {
192
+ function Ce(e) {
184
193
  return Object.isFrozen(e) ? e : Object.defineProperty(e, "__init", {
185
194
  enumerable: !1,
186
195
  value: !0
@@ -189,7 +198,7 @@ function xe(e) {
189
198
  function dt(e) {
190
199
  return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]/g, " ").trim().replace(/\s+/g, "-");
191
200
  }
192
- function Mn(e, i, t) {
201
+ function jn(e, i, t) {
193
202
  for (const n of t)
194
203
  n in e && Object.defineProperty(i, n, {
195
204
  enumerable: !1,
@@ -197,7 +206,7 @@ function Mn(e, i, t) {
197
206
  });
198
207
  return i;
199
208
  }
200
- function jn(e) {
209
+ function Fn(e) {
201
210
  let i = !1;
202
211
  return (...t) => {
203
212
  if (!i)
@@ -216,7 +225,7 @@ function mt() {
216
225
  s > -1 && e.splice(s, 1);
217
226
  }, t;
218
227
  }
219
- function Kt() {
228
+ function Nt() {
220
229
  const e = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
221
230
  let t;
222
231
  const n = (l, s) => {
@@ -231,7 +240,7 @@ function Kt() {
231
240
  return n.flush = () => {
232
241
  e.clear(), i.clear(), t == null || t.clear();
233
242
  }, n.on = (l, s) => {
234
- const [r, ...o] = l.split("."), u = s.receipt || Je(), p = {
243
+ const [r, ...o] = l.split("."), u = s.receipt || Ye(), p = {
235
244
  modifiers: o,
236
245
  event: r,
237
246
  listener: s,
@@ -253,21 +262,22 @@ function Kt() {
253
262
  t = void 0, s.forEach(([r, o]) => n(r, o)), l && l.walk((r) => r._e.play());
254
263
  }, n;
255
264
  }
256
- function En(e, i, t, n, l = !0) {
265
+ function Dn(e, i, t, n, l = !0, s) {
257
266
  return i._e(e, {
258
267
  payload: n,
259
268
  name: t,
260
269
  bubble: l,
261
- origin: e
270
+ origin: e,
271
+ meta: s
262
272
  }), e;
263
273
  }
264
- function Rn(e, i, t) {
265
- return Qe(e.parent) && e.parent._e(e.parent, t), e;
274
+ function Tn(e, i, t) {
275
+ return Xe(e.parent) && e.parent._e(e.parent, t), e;
266
276
  }
267
- function Fn(e, i, t, n) {
277
+ function Bn(e, i, t, n) {
268
278
  return i._e.on(t, n);
269
279
  }
270
- function Tn(e, i, t) {
280
+ function zn(e, i, t) {
271
281
  return i._e.off(t), e;
272
282
  }
273
283
  const bt = mt();
@@ -278,16 +288,16 @@ yt((e, i) => {
278
288
  const t = i(e);
279
289
  return console && typeof console.warn == "function" && console.warn(t.message), t;
280
290
  });
281
- function je(e, i = {}) {
291
+ function Re(e, i = {}) {
282
292
  yt.dispatch({ code: e, data: i });
283
293
  }
284
- function N(e, i = {}) {
294
+ function H(e, i = {}) {
285
295
  throw Error(bt.dispatch({ code: e, data: i }).message);
286
296
  }
287
- function re(e, i) {
297
+ function ue(e, i) {
288
298
  const t = {
289
299
  blocking: !1,
290
- key: Je(),
300
+ key: Ye(),
291
301
  meta: {},
292
302
  type: "state",
293
303
  visible: !0,
@@ -297,30 +307,30 @@ function re(e, i) {
297
307
  }
298
308
  const Vt = {
299
309
  apply: qn,
300
- set: Bn,
301
- remove: qt,
302
- filter: Un,
303
- reduce: Kn,
304
- release: Hn,
305
- touch: zn
310
+ set: Kn,
311
+ remove: Ht,
312
+ filter: Nn,
313
+ reduce: Hn,
314
+ release: Yn,
315
+ touch: Wn
306
316
  };
307
- function Dn(e = !1) {
317
+ function Un(e = !1) {
308
318
  const i = {};
309
319
  let t, n = e, l = [];
310
320
  const s = /* @__PURE__ */ new Map();
311
321
  let r;
312
322
  const o = new Proxy(i, {
313
323
  get(...u) {
314
- const [p, h] = u;
315
- 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);
324
+ const [p, _] = u;
325
+ return _ === "buffer" ? n : _ === "_b" ? l : _ === "_m" ? s : _ === "_r" ? r : j(Vt, _) ? Vt[_].bind(null, i, o, t) : Reflect.get(...u);
316
326
  },
317
- set(u, p, h) {
318
- return p === "_n" ? (t = h, r === "__n" && Wt(t, o), !0) : p === "_b" ? (l = h, !0) : p === "buffer" ? (n = h, !0) : p === "_r" ? (r = h, !0) : (N(101, t), !1);
327
+ set(u, p, _) {
328
+ return p === "_n" ? (t = _, r === "__n" && qt(t, o), !0) : p === "_b" ? (l = _, !0) : p === "buffer" ? (n = _, !0) : p === "_r" ? (r = _, !0) : (H(101, t), !1);
319
329
  }
320
330
  });
321
331
  return o;
322
332
  }
323
- function Bn(e, i, t, n) {
333
+ function Kn(e, i, t, n) {
324
334
  if (i.buffer)
325
335
  return i._b.push([[n]]), i;
326
336
  if (e[n.key] !== n) {
@@ -328,31 +338,31 @@ function Bn(e, i, t, n) {
328
338
  const s = n.value;
329
339
  n.value = t.t(n), n.value !== s && (n.meta.locale = t.props.locale);
330
340
  }
331
- const l = `message-${E(e, n.key) ? "updated" : "added"}`;
341
+ const l = `message-${j(e, n.key) ? "updated" : "added"}`;
332
342
  e[n.key] = Object.freeze(t.hook.message.dispatch(n)), t.emit(l, n);
333
343
  }
334
344
  return i;
335
345
  }
336
- function zn(e, i) {
346
+ function Wn(e, i) {
337
347
  for (const t in e) {
338
348
  const n = { ...e[t] };
339
349
  i.set(n);
340
350
  }
341
351
  }
342
- function qt(e, i, t, n) {
343
- if (E(e, n)) {
352
+ function Ht(e, i, t, n) {
353
+ if (j(e, n)) {
344
354
  const l = e[n];
345
355
  delete e[n], t.emit("message-removed", l);
346
356
  }
347
357
  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;
348
358
  }
349
- function Un(e, i, t, n, l) {
359
+ function Nn(e, i, t, n, l) {
350
360
  for (const s in e) {
351
361
  const r = e[s];
352
- (!l || r.type === l) && !n(r) && qt(e, i, t, s);
362
+ (!l || r.type === l) && !n(r) && Ht(e, i, t, s);
353
363
  }
354
364
  }
355
- function Kn(e, i, t, n, l) {
365
+ function Hn(e, i, t, n, l) {
356
366
  for (const s in e) {
357
367
  const r = e[s];
358
368
  l = n(l, r);
@@ -370,11 +380,11 @@ function qn(e, i, t, n, l) {
370
380
  } else
371
381
  for (const s in n) {
372
382
  const r = t.at(s);
373
- r ? r.store.apply(n[s], l) : Nn(t, i, s, n[s], l);
383
+ r ? r.store.apply(n[s], l) : Jn(t, i, s, n[s], l);
374
384
  }
375
385
  }
376
- function Wn(e, ...i) {
377
- const t = `${e.name}-set`, n = (l) => re({
386
+ function Zn(e, ...i) {
387
+ const t = `${e.name}-set`, n = (l) => ue({
378
388
  key: dt(l),
379
389
  type: "error",
380
390
  value: l,
@@ -391,12 +401,12 @@ function Wn(e, ...i) {
391
401
  }
392
402
  });
393
403
  }
394
- function Nn(e, i, t, n, l) {
404
+ function Jn(e, i, t, n, l) {
395
405
  var s;
396
406
  const r = i._m;
397
- r.has(t) || r.set(t, []), i._r || (i._r = Wt(e, i)), (s = r.get(t)) === null || s === void 0 || s.push([n, l]);
407
+ r.has(t) || r.set(t, []), i._r || (i._r = qt(e, i)), (s = r.get(t)) === null || s === void 0 || s.push([n, l]);
398
408
  }
399
- function Wt(e, i) {
409
+ function qt(e, i) {
400
410
  return e.on("child.deep", ({ payload: t }) => {
401
411
  i._m.forEach((n, l) => {
402
412
  e.at(l) === t && (n.forEach(([s, r]) => {
@@ -405,29 +415,29 @@ function Wt(e, i) {
405
415
  }), i._m.size === 0 && i._r && (e.off(i._r), i._r = void 0);
406
416
  });
407
417
  }
408
- function Hn(e, i) {
418
+ function Yn(e, i) {
409
419
  i.buffer = !1, i._b.forEach(([t, n]) => i.apply(t, n)), i._b = [];
410
420
  }
411
- function Zn() {
421
+ function Qn() {
412
422
  const e = {};
413
423
  let i;
414
424
  return {
415
- count: (...t) => Jn(i, e, ...t),
425
+ count: (...t) => Xn(i, e, ...t),
416
426
  init(t) {
417
427
  i = t, t.on("message-added.deep", It(e, 1)), t.on("message-removed.deep", It(e, -1));
418
428
  },
419
429
  merge: (t) => Lt(i, e, t),
420
430
  settled(t) {
421
- return E(e, t) ? e[t].promise : Promise.resolve();
431
+ return j(e, t) ? e[t].promise : Promise.resolve();
422
432
  },
423
433
  unmerge: (t) => Lt(i, e, t, !0),
424
434
  value(t) {
425
- return E(e, t) ? e[t].count : 0;
435
+ return j(e, t) ? e[t].count : 0;
426
436
  }
427
437
  };
428
438
  }
429
- function Jn(e, i, t, n, l = 0) {
430
- if (n = Yn(n || t), !E(i, t)) {
439
+ function Xn(e, i, t, n, l = 0) {
440
+ if (n = Gn(n || t), !j(i, t)) {
431
441
  const s = {
432
442
  condition: n,
433
443
  count: 0,
@@ -442,12 +452,12 @@ function Jn(e, i, t, n, l = 0) {
442
452
  r.ledger.count(s.name, s.condition), l += r.ledger.value(s.name);
443
453
  });
444
454
  }
445
- return Nt(i[t], l).promise;
455
+ return Zt(i[t], l).promise;
446
456
  }
447
- function Yn(e) {
457
+ function Gn(e) {
448
458
  return typeof e == "function" ? e : (i) => i.type === e;
449
459
  }
450
- function Nt(e, i) {
460
+ function Zt(e, i) {
451
461
  const t = e.count, n = e.count + i;
452
462
  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;
453
463
  }
@@ -455,7 +465,7 @@ function It(e, i) {
455
465
  return (t) => {
456
466
  for (const n in e) {
457
467
  const l = e[n];
458
- l.condition(t.payload) && Nt(l, i);
468
+ l.condition(t.payload) && Zt(l, i);
459
469
  }
460
470
  };
461
471
  }
@@ -470,8 +480,8 @@ function Lt(e, i, t, n = !1) {
470
480
  while (e);
471
481
  }
472
482
  }
473
- const vt = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new Map(), ht = Kt(), Qn = [];
474
- function Xn(e) {
483
+ const vt = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new Map(), ht = Nt(), ei = [];
484
+ function ti(e) {
475
485
  e.props.id && (vt.set(e.props.id, e), Te.set(e, e.props.id), ht(e, {
476
486
  payload: e,
477
487
  name: e.props.id,
@@ -479,7 +489,7 @@ function Xn(e) {
479
489
  origin: e
480
490
  }));
481
491
  }
482
- function Gn(e) {
492
+ function ni(e) {
483
493
  if (Te.has(e)) {
484
494
  const i = Te.get(e);
485
495
  Te.delete(e), vt.delete(i), ht(e, {
@@ -490,26 +500,26 @@ function Gn(e) {
490
500
  });
491
501
  }
492
502
  }
493
- function Ht(e) {
503
+ function Jt(e) {
494
504
  return vt.get(e);
495
505
  }
496
- function ei(e, i) {
497
- Qn.push(ht.on(e, i));
506
+ function ii(e, i) {
507
+ ei.push(ht.on(e, i));
498
508
  }
499
- function At(e, i, t) {
509
+ function Pt(e, i, t) {
500
510
  let n = !0;
501
511
  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;
502
512
  }
503
- function ti(e) {
513
+ function li(e) {
504
514
  const i = document.getElementById(e);
505
515
  if (i instanceof HTMLFormElement) {
506
516
  const t = new Event("submit", { cancelable: !0, bubbles: !0 });
507
517
  i.dispatchEvent(t);
508
518
  return;
509
519
  }
510
- je(151, e);
520
+ Re(151, e);
511
521
  }
512
- function ni(e) {
522
+ function ai(e) {
513
523
  const i = (t) => {
514
524
  for (const n in t.store) {
515
525
  const l = t.store[n];
@@ -518,75 +528,79 @@ function ni(e) {
518
528
  };
519
529
  i(e), e.walk(i);
520
530
  }
521
- function ii(e, i) {
522
- const t = typeof e == "string" ? Ht(e) : e;
531
+ function si(e, i) {
532
+ const t = typeof e == "string" ? Jt(e) : e;
523
533
  if (t) {
524
- const n = (s) => pe(s.props.initial) || (s.type === "group" ? {} : s.type === "list" ? [] : void 0);
534
+ const n = (r) => me(r.props.initial) || (r.type === "group" ? {} : r.type === "list" ? [] : void 0);
525
535
  t._e.pause(t);
526
- const l = pe(i);
527
- return i && !kt(i) && (t.props.initial = pt(l) ? xe(l) : l), t.input(n(t), !1), t.walk((s) => s.input(n(s), !1)), t.input(kt(l) && l ? l : n(t), !1), t._e.play(t), ni(t), t.emit("reset", t), t;
536
+ const l = me(i);
537
+ return i && !et(i) && (t.props.initial = xe(l) ? Ce(l) : l, t.props._init = t.props.initial), t.input(n(t), !1), t.walk((r) => {
538
+ r.type === "list" && r.sync || r.input(n(r), !1);
539
+ }), t.input(et(l) && l ? l : n(t), !1), t.type !== "input" && i && !et(i) && xe(i) && t.walk((r) => {
540
+ r.props.initial = xe(r.value) ? Ce(r.value) : r.value, r.props._init = t.props.initial;
541
+ }), t._e.play(t), ai(t), t.emit("reset", t), t;
528
542
  }
529
- je(152, e);
543
+ Re(152, e);
530
544
  }
531
- const li = {
545
+ const ri = {
532
546
  delimiter: ".",
533
547
  delay: 0,
534
548
  locale: "en",
535
- rootClasses: (e) => ({ [`formkit-${Ut(e)}`]: !0 })
536
- }, Zt = Symbol("index"), rt = Symbol("removed"), ot = Symbol("moved"), Jt = Symbol("inserted");
537
- function ai(e) {
549
+ rootClasses: (e) => ({ [`formkit-${Wt(e)}`]: !0 })
550
+ }, Yt = Symbol("index"), ot = Symbol("removed"), ut = Symbol("moved"), Qt = Symbol("inserted");
551
+ function oi(e) {
538
552
  return e.type === "list" && Array.isArray(e._value);
539
553
  }
540
- function Qe(e) {
554
+ function Xe(e) {
541
555
  return e && typeof e == "object" && e.__FKNode__ === !0;
542
556
  }
543
- const De = (e, i, t) => {
544
- N(102, [e, t]);
545
- }, si = {
546
- _c: C(Ii, De, !1),
547
- add: C(_i),
548
- addProps: C(hi),
549
- address: C(Ai, De, !1),
550
- at: C(Oi),
551
- bubble: C(Rn),
552
- clearErrors: C(Ti),
553
- calm: C(bi),
554
- config: C(!1),
555
- define: C(vi),
556
- disturb: C(mi),
557
- destroy: C(yi),
558
- extend: C(zi),
559
- hydrate: C(pi),
560
- index: C(Vi, Si, !1),
561
- input: C(Xt),
562
- each: C(wi),
563
- emit: C(En),
564
- find: C(xi),
565
- on: C(Fn),
566
- off: C(Tn),
567
- parent: C(!1, gi),
568
- plugins: C(!1),
569
- remove: C($i),
570
- root: C(ji, De, !1),
571
- reset: C(Fi),
572
- resetConfig: C(Ci),
573
- setErrors: C(tn),
574
- submit: C(Ri),
575
- t: C(Ei),
576
- use: C(_t),
577
- name: C(Li, !1, !1),
578
- walk: C(ki)
557
+ const Be = (e, i, t) => {
558
+ H(102, [e, t]);
559
+ }, ui = {
560
+ _c: V(Ai, Be, !1),
561
+ add: V(wi),
562
+ addProps: V($i),
563
+ address: V(xi, Be, !1),
564
+ at: V(Mi),
565
+ bubble: V(Tn),
566
+ clearErrors: V(zi),
567
+ calm: V(hi),
568
+ config: V(!1),
569
+ define: V(gi),
570
+ disturb: V(vi),
571
+ destroy: V(_i),
572
+ extend: V(Wi),
573
+ hydrate: V(bi),
574
+ index: V(Pi, Li, !1),
575
+ input: V(en),
576
+ each: V(Si),
577
+ emit: V(Dn),
578
+ find: V(Ri),
579
+ on: V(Bn),
580
+ off: V(zn),
581
+ parent: V(!1, ki),
582
+ plugins: V(!1),
583
+ remove: V(Ci),
584
+ root: V(Fi, Be, !1),
585
+ reset: V(Bi),
586
+ resetConfig: V(Ii),
587
+ setErrors: V(ln),
588
+ submit: V(Ti),
589
+ t: V(Di),
590
+ use: V(_t),
591
+ name: V(Oi, !1, !1),
592
+ walk: V(Vi)
579
593
  };
580
- function ri() {
581
- return new Map(Object.entries(si));
594
+ function fi() {
595
+ return new Map(Object.entries(ui));
582
596
  }
583
- function C(e, i, t = !0) {
597
+ function V(e, i, t = !0) {
584
598
  return {
585
599
  get: e ? (n, l) => t ? (...s) => e(n, l, ...s) : e(n, l) : !1,
586
- set: i !== void 0 ? i : De.bind(null)
600
+ set: i !== void 0 ? i : Be.bind(null)
587
601
  };
588
602
  }
589
- function oi() {
603
+ function ci() {
590
604
  const e = /* @__PURE__ */ new Map();
591
605
  return new Proxy(e, {
592
606
  get(i, t) {
@@ -594,57 +608,57 @@ function oi() {
594
608
  }
595
609
  });
596
610
  }
597
- let Yt = 0, ui = 0;
598
- function fi(e) {
611
+ let Xt = 0, pi = 0;
612
+ function di(e) {
599
613
  var i, t;
600
- 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"}_${++Yt}`;
614
+ return ((i = e.parent) === null || i === void 0 ? void 0 : i.type) === "list" ? Yt : e.name || `${((t = e.props) === null || t === void 0 ? void 0 : t.type) || "input"}_${++Xt}`;
601
615
  }
602
- function Qt(e) {
603
- return e.type === "group" ? xe(e.value && typeof e.value == "object" && !Array.isArray(e.value) ? e.value : {}) : e.type === "list" ? xe(Array.isArray(e.value) ? e.value : []) : e.value;
616
+ function Gt(e) {
617
+ 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;
604
618
  }
605
- function Xt(e, i, t, n = !0) {
606
- return i._value = ci(e, e.hook.input.dispatch(t)), e.emit("input", i._value), e.isCreated && e.type === "input" && ue(i._value, i.value) ? (e.emit("commitRaw", i.value), i.settled) : (i.isSettled && e.disturb(), n ? (i._tmo && clearTimeout(i._tmo), i._tmo = setTimeout(Ue, e.props.delay, e, i)) : Ue(e, i), i.settled);
619
+ function en(e, i, t, n = !0) {
620
+ return i._value = mi(e, e.hook.input.dispatch(t)), e.emit("input", i._value), e.isCreated && e.type === "input" && fe(i._value, i.value) ? (e.emit("commitRaw", i.value), i.settled) : (i.isSettled && e.disturb(), n ? (i._tmo && clearTimeout(i._tmo), i._tmo = setTimeout(Ke, e.props.delay, e, i)) : Ke(e, i), i.settled);
607
621
  }
608
- function ci(e, i) {
622
+ function mi(e, i) {
609
623
  switch (e.type) {
610
624
  case "input":
611
625
  break;
612
626
  case "group":
613
- (!i || typeof i != "object") && N(107, [e, i]);
627
+ (!i || typeof i != "object") && H(107, [e, i]);
614
628
  break;
615
629
  case "list":
616
- Array.isArray(i) || N(108, [e, i]);
630
+ Array.isArray(i) || H(108, [e, i]);
617
631
  break;
618
632
  }
619
633
  return i;
620
634
  }
621
- function Ue(e, i, t = !0, n = !0) {
635
+ function Ke(e, i, t = !0, n = !0) {
622
636
  i._value = i.value = e.hook.commit.dispatch(i._value), e.type !== "input" && n && e.hydrate(), e.emit("commitRaw", i.value), e.emit("commit", i.value), t && e.calm();
623
637
  }
624
- function Gt(e, { name: i, value: t, from: n }) {
638
+ function tn(e, { name: i, value: t, from: n }) {
625
639
  if (!Object.isFrozen(e._value)) {
626
- if (ai(e)) {
627
- const l = t === rt ? [] : t === ot && typeof n == "number" ? e._value.splice(n, 1) : [t];
628
- e._value.splice(i, t === ot || n === Jt ? 0 : 1, ...l);
640
+ if (oi(e)) {
641
+ const l = t === ot ? [] : t === ut && typeof n == "number" ? e._value.splice(n, 1) : [t];
642
+ e._value.splice(i, t === ut || n === Qt ? 0 : 1, ...l);
629
643
  return;
630
644
  }
631
- t !== rt ? e._value[i] = t : delete e._value[i];
645
+ t !== ot ? e._value[i] = t : delete e._value[i];
632
646
  }
633
647
  }
634
- function pi(e, i) {
648
+ function bi(e, i) {
635
649
  const t = i._value;
636
- return e.type === "list" && e.sync && di(e, i), i.children.forEach((n) => {
650
+ return e.type === "list" && e.sync && yi(e, i), i.children.forEach((n) => {
637
651
  if (typeof t == "object")
638
652
  if (n.name in t) {
639
- const l = n.type !== "input" || t[n.name] && typeof t[n.name] == "object" ? xe(t[n.name]) : t[n.name];
640
- if (!n.isSettled || !pt(l) && ue(l, n._value))
653
+ const l = n.type !== "input" || t[n.name] && typeof t[n.name] == "object" ? Ce(t[n.name]) : t[n.name];
654
+ if (!n.isSettled || !xe(l) && fe(l, n._value))
641
655
  return;
642
656
  n.input(l, !1);
643
657
  } else
644
- (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));
658
+ (e.type !== "list" || typeof n.name == "number") && tn(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));
645
659
  }), e;
646
660
  }
647
- function di(e, i) {
661
+ function yi(e, i) {
648
662
  const t = e._value;
649
663
  if (!Array.isArray(t))
650
664
  return;
@@ -673,65 +687,65 @@ function di(e, i) {
673
687
  n[u] = o, l.delete(o);
674
688
  }
675
689
  r.forEach((o, u) => {
676
- n[o] = Wi({ value: u });
690
+ n[o] = Zi({ value: u });
677
691
  }), l.size && l.forEach((o) => {
678
692
  if (!("__FKP" in o)) {
679
693
  const u = o._c.parent;
680
- if (!u || Ni(u))
694
+ if (!u || Ji(u))
681
695
  return;
682
696
  u.ledger.unmerge(o), o._c.parent = null, o.destroy();
683
697
  }
684
698
  }), i.children = n;
685
699
  }
686
- function mi(e, i) {
700
+ function vi(e, i) {
687
701
  var t;
688
702
  return i._d <= 0 && (i.isSettled = !1, e.emit("settled", !1, !1), i.settled = new Promise((n) => {
689
703
  i._resolve = n;
690
704
  }), e.parent && ((t = e.parent) === null || t === void 0 || t.disturb())), i._d++, e;
691
705
  }
692
- function bi(e, i, t) {
706
+ function hi(e, i, t) {
693
707
  var n;
694
708
  if (t !== void 0 && e.type !== "input")
695
- return Gt(i, t), Ue(e, i, !0, !1);
709
+ return tn(i, t), Ke(e, i, !0, !1);
696
710
  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));
697
711
  }
698
- function yi(e, i) {
699
- e.emit("destroying", e), e.store.filter(() => !1), e.parent && (e.parent.emit("childRemoved", e), e.parent.remove(e)), Gn(e), e.emit("destroyed", e), i._e.flush(), i._value = i.value = void 0;
712
+ function _i(e, i) {
713
+ e.emit("destroying", e), e.store.filter(() => !1), e.parent && (e.parent.emit("childRemoved", e), e.parent.remove(e)), ni(e), e.emit("destroyed", e), i._e.flush(), i._value = i.value = void 0;
700
714
  for (const t in i.context)
701
715
  delete i.context[t];
702
716
  i.plugins.clear(), i.context = null;
703
717
  }
704
- function vi(e, i, t) {
705
- i.type = t.type, i.props.definition = Pe(t), i.value = i._value = Qt({
718
+ function gi(e, i, t) {
719
+ i.type = t.type, i.props.definition = Ee(t), i.value = i._value = Gt({
706
720
  type: e.type,
707
721
  value: i.value
708
722
  }), 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);
709
723
  }
710
- function hi(e, i, t) {
724
+ function $i(e, i, t) {
711
725
  var n;
712
726
  if (e.props.attrs) {
713
727
  const l = { ...e.props.attrs };
714
728
  e.props._emit = !1;
715
729
  for (const r in l) {
716
- const o = Fe(r);
730
+ const o = De(r);
717
731
  t.includes(o) && (e.props[o] = l[r], delete l[r]);
718
732
  }
719
- const s = pe(i._value);
720
- e.props.initial = e.type !== "input" ? xe(s) : s, e.props._emit = !0, e.props.attrs = l, e.props.definition && (e.props.definition.props = [
733
+ const s = me(i._value);
734
+ e.props.initial = e.type !== "input" ? Ce(s) : s, e.props._emit = !0, e.props.attrs = l, e.props.definition && (e.props.definition.props = [
721
735
  ...((n = e.props.definition) === null || n === void 0 ? void 0 : n.props) || [],
722
736
  ...t
723
737
  ]);
724
738
  }
725
739
  return e.emit("added-props", t), e;
726
740
  }
727
- function _i(e, i, t, n) {
728
- if (e.type === "input" && N(100, e), t.parent && t.parent !== e && t.parent.remove(t), !i.children.includes(t)) {
741
+ function wi(e, i, t, n) {
742
+ if (e.type === "input" && H(100, e), t.parent && t.parent !== e && t.parent.remove(t), !i.children.includes(t)) {
729
743
  if (n !== void 0 && e.type === "list") {
730
744
  const l = i.children[n];
731
745
  l && "__FKP" in l ? (t._c.uid = l.uid, i.children.splice(n, 1, t)) : i.children.splice(n, 0, t), Array.isArray(e.value) && e.value.length < i.children.length && e.disturb().calm({
732
746
  name: n,
733
747
  value: t.value,
734
- from: Jt
748
+ from: Qt
735
749
  });
736
750
  } else
737
751
  i.children.push(t);
@@ -742,12 +756,12 @@ function _i(e, i, t, n) {
742
756
  return e.remove(t), t.parent.add(t), e;
743
757
  } else
744
758
  t.use(e.plugins);
745
- return Ue(e, i, !1), e.ledger.merge(t), e.emit("child", t), e;
759
+ return Ke(e, i, !1), e.ledger.merge(t), e.emit("child", t), e;
746
760
  }
747
- function gi(e, i, t, n) {
748
- return Qe(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;
761
+ function ki(e, i, t, n) {
762
+ return Xe(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;
749
763
  }
750
- function $i(e, i, t) {
764
+ function Ci(e, i, t) {
751
765
  const n = i.children.indexOf(t);
752
766
  if (n !== -1) {
753
767
  t.isSettled && e.disturb(), i.children.splice(n, 1);
@@ -756,15 +770,15 @@ function $i(e, i, t) {
756
770
  l = Y(s.props.preserve), s = s.parent;
757
771
  l ? e.calm() : e.calm({
758
772
  name: e.type === "list" ? n : t.name,
759
- value: rt
773
+ value: ot
760
774
  }), t.parent = null, t.config._rmn = t;
761
775
  }
762
776
  return e.ledger.unmerge(t), e;
763
777
  }
764
- function wi(e, i, t) {
778
+ function Si(e, i, t) {
765
779
  i.children.forEach((n) => !("__FKP" in n) && t(n));
766
780
  }
767
- function ki(e, i, t, n = !1, l = !1) {
781
+ function Vi(e, i, t, n = !1, l = !1) {
768
782
  i.children.some((s) => {
769
783
  if ("__FKP" in s)
770
784
  return !1;
@@ -772,38 +786,38 @@ function ki(e, i, t, n = !1, l = !1) {
772
786
  return n && r === !1 ? !0 : l && r === !1 ? !1 : s.walk(t, n, l);
773
787
  });
774
788
  }
775
- function Ci(e, i) {
789
+ function Ii(e, i) {
776
790
  const t = e.parent || void 0;
777
- i.config = en(e.config._t, t), e.walk((n) => n.resetConfig());
791
+ i.config = nn(e.config._t, t), e.walk((n) => n.resetConfig());
778
792
  }
779
793
  function _t(e, i, t, n = !0, l = !0) {
780
794
  return Array.isArray(t) || t instanceof Set ? (t.forEach((s) => _t(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);
781
795
  }
782
- function Si(e, i, t, n) {
783
- if (Qe(e.parent)) {
796
+ function Li(e, i, t, n) {
797
+ if (Xe(e.parent)) {
784
798
  const l = e.parent.children, s = n >= l.length ? l.length - 1 : n < 0 ? 0 : n, r = l.indexOf(e);
785
- 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: ot, from: r }), !0);
799
+ 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: ut, from: r }), !0);
786
800
  }
787
801
  return !1;
788
802
  }
789
- function Vi(e) {
803
+ function Pi(e) {
790
804
  if (e.parent) {
791
805
  const i = [...e.parent.children].indexOf(e);
792
806
  return i === -1 ? e.parent.children.length : i;
793
807
  }
794
808
  return -1;
795
809
  }
796
- function Ii(e, i) {
810
+ function Ai(e, i) {
797
811
  return i;
798
812
  }
799
- function Li(e, i) {
813
+ function Oi(e, i) {
800
814
  var t;
801
- return ((t = e.parent) === null || t === void 0 ? void 0 : t.type) === "list" ? e.index : i.name !== Zt ? i.name : e.index;
815
+ return ((t = e.parent) === null || t === void 0 ? void 0 : t.type) === "list" ? e.index : i.name !== Yt ? i.name : e.index;
802
816
  }
803
- function Ai(e, i) {
817
+ function xi(e, i) {
804
818
  return i.parent ? i.parent.address.concat([e.name]) : [e.name];
805
819
  }
806
- function Oi(e, i, t) {
820
+ function Mi(e, i, t) {
807
821
  const n = typeof t == "string" ? t.split(e.config.delimiter) : t;
808
822
  if (!n.length)
809
823
  return;
@@ -822,12 +836,12 @@ function Oi(e, i, t) {
822
836
  s = e;
823
837
  break;
824
838
  default:
825
- s = s.children.find((o) => !("__FKP" in o) && String(o.name) === String(r)) || Pi(s, r);
839
+ s = s.children.find((o) => !("__FKP" in o) && String(o.name) === String(r)) || Ei(s, r);
826
840
  }
827
841
  }
828
842
  return s || void 0;
829
843
  }
830
- function Pi(e, i) {
844
+ function Ei(e, i) {
831
845
  const t = String(i).match(/^(find)\((.*)\)$/);
832
846
  if (t) {
833
847
  const [, n, l] = t, s = l.split(",").map((r) => r.trim());
@@ -839,10 +853,10 @@ function Pi(e, i) {
839
853
  }
840
854
  }
841
855
  }
842
- function xi(e, i, t, n) {
843
- return Mi(e, t, n);
856
+ function Ri(e, i, t, n) {
857
+ return ji(e, t, n);
844
858
  }
845
- function Mi(e, i, t = "name") {
859
+ function ji(e, i, t = "name") {
846
860
  const n = typeof t == "string" ? (s) => s[t] == i : t, l = [e];
847
861
  for (; l.length; ) {
848
862
  const s = l.shift();
@@ -853,13 +867,13 @@ function Mi(e, i, t = "name") {
853
867
  }
854
868
  }
855
869
  }
856
- function ji(e) {
870
+ function Fi(e) {
857
871
  let i = e;
858
872
  for (; i.parent; )
859
873
  i = i.parent;
860
874
  return i;
861
875
  }
862
- function en(e = {}, i) {
876
+ function nn(e = {}, i) {
863
877
  let t;
864
878
  return new Proxy(e, {
865
879
  get(...n) {
@@ -879,7 +893,7 @@ function en(e = {}, i) {
879
893
  if (r !== void 0)
880
894
  return r;
881
895
  }
882
- return l === "delay" && (t == null ? void 0 : t.type) === "input" ? 20 : li[l];
896
+ return l === "delay" && (t == null ? void 0 : t.type) === "input" ? 20 : ri[l];
883
897
  },
884
898
  set(...n) {
885
899
  const l = n[1], s = n[2];
@@ -887,53 +901,53 @@ function en(e = {}, i) {
887
901
  return t = s, e.rootConfig && e.rootConfig._add(t), !0;
888
902
  if (l === "_rmn")
889
903
  return e.rootConfig && e.rootConfig._rm(t), t = void 0, !0;
890
- if (!ue(e[l], s, !1)) {
904
+ if (!fe(e[l], s, !1)) {
891
905
  const r = Reflect.set(...n);
892
- return t && (t.emit(`config:${l}`, s, !1), At(t, l, s), t.walk((o) => At(o, l, s), !1, !0)), r;
906
+ return t && (t.emit(`config:${l}`, s, !1), Pt(t, l, s), t.walk((o) => Pt(o, l, s), !1, !0)), r;
893
907
  }
894
908
  return !0;
895
909
  }
896
910
  });
897
911
  }
898
- function Ei(e, i, t, n = "ui") {
912
+ function Di(e, i, t, n = "ui") {
899
913
  const l = typeof t == "string" ? { key: t, value: t, type: n } : t, s = e.hook.text.dispatch(l);
900
914
  return e.emit("text", s, !1), s.value;
901
915
  }
902
- function Ri(e) {
916
+ function Ti(e) {
903
917
  const i = e.name;
904
918
  do {
905
919
  if (e.props.isForm === !0)
906
920
  break;
907
- e.parent || N(106, i), e = e.parent;
921
+ e.parent || H(106, i), e = e.parent;
908
922
  } while (e);
909
- e.props.id && ti(e.props.id);
923
+ e.props.id && li(e.props.id);
910
924
  }
911
- function Fi(e, i, t) {
912
- return ii(e, t);
925
+ function Bi(e, i, t) {
926
+ return si(e, t);
913
927
  }
914
- function tn(e, i, t, n) {
928
+ function ln(e, i, t, n) {
915
929
  const l = `${e.name}-set`, s = e.hook.setErrors.dispatch({ localErrors: t, childErrors: n });
916
- return Wn(e, s.localErrors, s.childErrors).forEach((r) => {
930
+ return Zn(e, s.localErrors, s.childErrors).forEach((r) => {
917
931
  e.store.apply(r, (o) => o.meta.source === l);
918
932
  }), e;
919
933
  }
920
- function Ti(e, i, t = !0, n) {
921
- return tn(e, i, []), t && (n = n || `${e.name}-set`, e.walk((l) => {
934
+ function zi(e, i, t = !0, n) {
935
+ return ln(e, i, []), t && (n = n || `${e.name}-set`, e.walk((l) => {
922
936
  l.store.filter((s) => !(s.type === "error" && s.meta && s.meta.source === n));
923
937
  })), e;
924
938
  }
925
- function Di(e) {
926
- return E(e.props, "id") || (e.props.id = `input_${ui++}`), e;
939
+ function Ui(e) {
940
+ return j(e.props, "id") || (e.props.id = `input_${pi++}`), e;
927
941
  }
928
- function Bi(e) {
942
+ function Ki(e) {
929
943
  const i = {
930
- initial: typeof e == "object" ? pe(e) : e
944
+ initial: typeof e == "object" ? me(e) : e
931
945
  };
932
946
  let t, n = !0;
933
947
  return new Proxy(i, {
934
948
  get(...l) {
935
949
  const [s, r] = l;
936
- if (E(i, r))
950
+ if (j(i, r))
937
951
  return Reflect.get(...l);
938
952
  if (t && typeof r == "string" && t.config[r] !== void 0)
939
953
  return t.config[r];
@@ -947,18 +961,18 @@ function Bi(e) {
947
961
  prop: s,
948
962
  value: r
949
963
  });
950
- if (!ue(i[u], p, !1) || typeof p == "object") {
951
- const h = Reflect.set(l, u, p, o);
952
- return n && (t.emit("prop", { prop: u, value: p }), typeof u == "string" && t.emit(`prop:${u}`, p)), h;
964
+ if (!fe(i[u], p, !1) || typeof p == "object") {
965
+ const _ = Reflect.set(l, u, p, o);
966
+ return n && (t.emit("prop", { prop: u, value: p }), typeof u == "string" && t.emit(`prop:${u}`, p)), _;
953
967
  }
954
968
  return !0;
955
969
  }
956
970
  });
957
971
  }
958
- function zi(e, i, t, n) {
972
+ function Wi(e, i, t, n) {
959
973
  return i.traps.set(t, n), e;
960
974
  }
961
- function Ui(e, i) {
975
+ function Ni(e, i) {
962
976
  if (e.props.definition)
963
977
  return e.define(e.props.definition);
964
978
  for (const t of i) {
@@ -967,49 +981,49 @@ function Ui(e, i) {
967
981
  typeof t.library == "function" && t.library(e);
968
982
  }
969
983
  }
970
- function Ki(e) {
971
- const i = Qt(e), t = en(e.config || {}, e.parent);
984
+ function Hi(e) {
985
+ const i = Gt(e), t = nn(e.config || {}, e.parent);
972
986
  return {
973
987
  _d: 0,
974
- _e: Kt(),
988
+ _e: Nt(),
975
989
  uid: Symbol(),
976
990
  _resolve: !1,
977
991
  _tmo: !1,
978
992
  _value: i,
979
- children: In(e.children || []),
993
+ children: Pn(e.children || []),
980
994
  config: t,
981
- hook: oi(),
995
+ hook: ci(),
982
996
  isCreated: !1,
983
997
  isSettled: !0,
984
- ledger: Zn(),
985
- name: fi(e),
998
+ ledger: Qn(),
999
+ name: di(e),
986
1000
  parent: e.parent || null,
987
1001
  plugins: /* @__PURE__ */ new Set(),
988
- props: Bi(i),
1002
+ props: Ki(i),
989
1003
  settled: Promise.resolve(i),
990
- store: Dn(!0),
1004
+ store: Un(!0),
991
1005
  sync: e.sync || !1,
992
- traps: ri(),
1006
+ traps: fi(),
993
1007
  type: e.type || "input",
994
1008
  value: i
995
1009
  };
996
1010
  }
997
1011
  function qi(e, i) {
998
1012
  var t;
999
- if (e.ledger.init(e.store._n = e.props._n = e.config._n = e), e.props._emit = !1, i.props && Object.assign(e.props, i.props), e.props._emit = !0, Ui(e, /* @__PURE__ */ new Set([
1013
+ if (e.ledger.init(e.store._n = e.props._n = e.config._n = e), e.props._emit = !1, i.props && Object.assign(e.props, i.props), e.props._emit = !0, Ni(e, /* @__PURE__ */ new Set([
1000
1014
  ...i.plugins || [],
1001
1015
  ...e.parent ? e.parent.plugins : []
1002
1016
  ])), i.plugins)
1003
1017
  for (const n of i.plugins)
1004
1018
  _t(e, e._c, n, !0, !1);
1005
- return Di(e), e.each((n) => e.add(n)), e.parent && e.parent.add(e, i.index), e.type === "input" && e.children.length && N(100, e), Xt(e, e._c, e._value, !1), e.store.release(), !((t = i.props) === null || t === void 0) && t.id && Xn(e), e.emit("created", e), e.isCreated = !0, e;
1019
+ return Ui(e), e.each((n) => e.add(n)), e.parent && e.parent.add(e, i.index), e.type === "input" && e.children.length && H(100, e), en(e, e._c, e._value, !1), e.store.release(), !((t = i.props) === null || t === void 0) && t.id && ti(e), e.emit("created", e), e.isCreated = !0, e;
1006
1020
  }
1007
- function Wi(e) {
1021
+ function Zi(e) {
1008
1022
  var i, t, n, l;
1009
1023
  return {
1010
1024
  __FKP: !0,
1011
1025
  uid: Symbol(),
1012
- name: (i = e == null ? void 0 : e.name) !== null && i !== void 0 ? i : `p_${Yt++}`,
1026
+ name: (i = e == null ? void 0 : e.name) !== null && i !== void 0 ? i : `p_${Xt++}`,
1013
1027
  value: (t = e == null ? void 0 : e.value) !== null && t !== void 0 ? t : null,
1014
1028
  _value: (n = e == null ? void 0 : e.value) !== null && n !== void 0 ? n : null,
1015
1029
  type: (l = e == null ? void 0 : e.type) !== null && l !== void 0 ? l : "input",
@@ -1021,11 +1035,11 @@ function Wi(e) {
1021
1035
  isSettled: !0
1022
1036
  };
1023
1037
  }
1024
- function Ni(e) {
1038
+ function Ji(e) {
1025
1039
  return "__FKP" in e;
1026
1040
  }
1027
- function Hi(e) {
1028
- const i = e || {}, t = Ki(i), n = new Proxy(t, {
1041
+ function Yi(e) {
1042
+ const i = e || {}, t = Hi(i), n = new Proxy(t, {
1029
1043
  get(...l) {
1030
1044
  const [, s] = l;
1031
1045
  if (s === "__FKNode__")
@@ -1040,25 +1054,25 @@ function Hi(e) {
1040
1054
  });
1041
1055
  return qi(n, i);
1042
1056
  }
1043
- function ut(e) {
1044
- return typeof e != "string" && E(e, "$el");
1045
- }
1046
1057
  function ft(e) {
1047
- return typeof e != "string" && E(e, "$cmp");
1058
+ return typeof e != "string" && j(e, "$el");
1048
1059
  }
1049
- function be(e) {
1050
- return !e || typeof e == "string" ? !1 : E(e, "if") && E(e, "then");
1060
+ function ct(e) {
1061
+ return typeof e != "string" && j(e, "$cmp");
1051
1062
  }
1052
- function Zi(e) {
1063
+ function ve(e) {
1064
+ return !e || typeof e == "string" ? !1 : j(e, "if") && j(e, "then");
1065
+ }
1066
+ function Qi(e) {
1053
1067
  return typeof e != "string" && "$formkit" in e;
1054
1068
  }
1055
- function Ji(e) {
1069
+ function Xi(e) {
1056
1070
  if (typeof e == "string")
1057
1071
  return {
1058
1072
  $el: "text",
1059
1073
  children: e
1060
1074
  };
1061
- if (Zi(e)) {
1075
+ if (Qi(e)) {
1062
1076
  const { $formkit: i, for: t, if: n, children: l, bind: s, ...r } = e;
1063
1077
  return Object.assign({
1064
1078
  $cmp: "FormKit",
@@ -1073,162 +1087,164 @@ function J(e) {
1073
1087
  return typeof d == "function" ? d(m) : d;
1074
1088
  }, l = [
1075
1089
  {
1076
- "&&": (f, d, m) => n(f, m) && n(d, m),
1077
- "||": (f, d, m) => n(f, m) || n(d, m)
1090
+ "&&": (c, d, m) => n(c, m) && n(d, m),
1091
+ "||": (c, d, m) => n(c, m) || n(d, m)
1078
1092
  },
1079
1093
  {
1080
- "===": (f, d, m) => n(f, m) === n(d, m),
1081
- "!==": (f, d, m) => n(f, m) !== n(d, m),
1082
- "==": (f, d, m) => n(f, m) == n(d, m),
1083
- "!=": (f, d, m) => n(f, m) != n(d, m),
1084
- ">=": (f, d, m) => n(f, m) >= n(d, m),
1085
- "<=": (f, d, m) => n(f, m) <= n(d, m),
1086
- ">": (f, d, m) => n(f, m) > n(d, m),
1087
- "<": (f, d, m) => n(f, m) < n(d, m)
1094
+ "===": (c, d, m) => n(c, m) === n(d, m),
1095
+ "!==": (c, d, m) => n(c, m) !== n(d, m),
1096
+ "==": (c, d, m) => n(c, m) == n(d, m),
1097
+ "!=": (c, d, m) => n(c, m) != n(d, m),
1098
+ ">=": (c, d, m) => n(c, m) >= n(d, m),
1099
+ "<=": (c, d, m) => n(c, m) <= n(d, m),
1100
+ ">": (c, d, m) => n(c, m) > n(d, m),
1101
+ "<": (c, d, m) => n(c, m) < n(d, m)
1088
1102
  },
1089
1103
  {
1090
- "+": (f, d, m) => n(f, m) + n(d, m),
1091
- "-": (f, d, m) => n(f, m) - n(d, m)
1104
+ "+": (c, d, m) => n(c, m) + n(d, m),
1105
+ "-": (c, d, m) => n(c, m) - n(d, m)
1092
1106
  },
1093
1107
  {
1094
- "*": (f, d, m) => n(f, m) * n(d, m),
1095
- "/": (f, d, m) => n(f, m) / n(d, m),
1096
- "%": (f, d, m) => n(f, m) % n(d, m)
1097
- }
1098
- ], s = l.reduce((f, d) => f.concat(Object.keys(d)), []), r = new Set(s.map((f) => f.charAt(0)));
1099
- function o(f, d, m, v) {
1100
- const g = f.filter((c) => c.startsWith(d));
1101
- return g.length ? g.find((c) => v.length >= m + c.length && v.substring(m, m + c.length) === c ? c : !1) : !1;
1102
- }
1103
- function u(f, d, m = 1) {
1104
- let v = m ? d.substring(f + 1).trim() : d.substring(0, f).trim();
1105
- if (!v.length)
1108
+ "*": (c, d, m) => n(c, m) * n(d, m),
1109
+ "/": (c, d, m) => n(c, m) / n(d, m),
1110
+ "%": (c, d, m) => n(c, m) % n(d, m)
1111
+ }
1112
+ ], s = l.reduce((c, d) => c.concat(Object.keys(d)), []), r = new Set(s.map((c) => c.charAt(0)));
1113
+ function o(c, d, m, y) {
1114
+ const g = c.filter((v) => v.startsWith(d));
1115
+ return g.length ? g.find((v) => y.length >= m + v.length && y.substring(m, m + v.length) === v ? v : !1) : !1;
1116
+ }
1117
+ function u(c, d, m = 1) {
1118
+ let y = m ? d.substring(c + 1).trim() : d.substring(0, c).trim();
1119
+ if (!y.length)
1106
1120
  return -1;
1107
1121
  if (!m) {
1108
- const c = v.split("").reverse(), y = c.findIndex((b) => r.has(b));
1109
- v = c.slice(y).join("");
1122
+ const v = y.split("").reverse(), w = v.findIndex((f) => r.has(f));
1123
+ y = v.slice(w).join("");
1110
1124
  }
1111
- const g = v[0];
1112
- return l.findIndex((c) => {
1113
- const y = Object.keys(c);
1114
- return !!o(y, g, 0, v);
1125
+ const g = y[0];
1126
+ return l.findIndex((v) => {
1127
+ const w = Object.keys(v);
1128
+ return !!o(w, g, 0, y);
1115
1129
  });
1116
1130
  }
1117
- function p(f, d) {
1131
+ function p(c, d) {
1118
1132
  let m = "";
1119
- const v = d.length;
1133
+ const y = d.length;
1120
1134
  let g = 0;
1121
- for (let c = f; c < v; c++) {
1122
- const y = d.charAt(c);
1123
- if (y === "(")
1135
+ for (let v = c; v < y; v++) {
1136
+ const w = d.charAt(v);
1137
+ if (w === "(")
1124
1138
  g++;
1125
- else if (y === ")")
1139
+ else if (w === ")")
1126
1140
  g--;
1127
- else if (g === 0 && y === " ")
1141
+ else if (g === 0 && w === " ")
1128
1142
  continue;
1129
- if (g === 0 && o(s, y, c, d))
1130
- return [m, c - 1];
1131
- m += y;
1143
+ if (g === 0 && o(s, w, v, d))
1144
+ return [m, v - 1];
1145
+ m += w;
1132
1146
  }
1133
1147
  return [m, d.length - 1];
1134
1148
  }
1135
- function h(f, d = 0) {
1136
- const m = l[d], v = f.length, g = Object.keys(m);
1137
- let c = 0, y = !1, b = null, _ = "", V = null, I, z = "", P = "", F = "", B = "", Z = 0;
1138
- const H = (x, W) => {
1139
- x ? F += W : _ += W;
1149
+ function _(c, d = 0) {
1150
+ const m = l[d], y = c.length, g = Object.keys(m);
1151
+ let v = 0, w = !1, f = null, b = "", k = null, I, B = "", C = "", E = "", O = "", W = 0;
1152
+ const q = (x, N) => {
1153
+ x ? E += N : b += N;
1140
1154
  };
1141
- for (let x = 0; x < v; x++)
1142
- if (z = P, P = f.charAt(x), (P === "'" || P === '"') && z !== "\\" && (c === 0 && !y || c && !B)) {
1143
- c ? B = P : y = P, H(c, P);
1155
+ for (let x = 0; x < y; x++)
1156
+ if (B = C, C = c.charAt(x), (C === "'" || C === '"') && B !== "\\" && (v === 0 && !w || v && !O)) {
1157
+ v ? O = C : w = C, q(v, C);
1144
1158
  continue;
1145
- } else if (y && (P !== y || z === "\\") || B && (P !== B || z === "\\")) {
1146
- H(c, P);
1159
+ } else if (w && (C !== w || B === "\\") || O && (C !== O || B === "\\")) {
1160
+ q(v, C);
1147
1161
  continue;
1148
- } else if (y === P) {
1149
- y = !1, H(c, P);
1162
+ } else if (w === C) {
1163
+ w = !1, q(v, C);
1150
1164
  continue;
1151
- } else if (B === P) {
1152
- B = !1, H(c, P);
1165
+ } else if (O === C) {
1166
+ O = !1, q(v, C);
1153
1167
  continue;
1154
1168
  } else {
1155
- if (P === " ")
1169
+ if (C === " ")
1156
1170
  continue;
1157
- if (P === "(")
1158
- c === 0 ? Z = x : F += P, c++;
1159
- else if (P === ")")
1160
- if (c--, c === 0) {
1161
- const W = typeof _ == "string" && _.startsWith("$") ? _ : void 0, ke = W && f.charAt(x + 1) === ".";
1162
- let le = "";
1163
- ke && ([le, x] = p(x + 2, f));
1164
- const Re = b ? d : u(Z, f, 0), Ce = u(x, f);
1165
- Re === -1 && Ce === -1 ? _ = O(F, -1, W, le) : b && (Re >= Ce || Ce === -1) && d === Re ? (V = b.bind(null, O(F, -1, W, le)), b = null, _ = "") : Ce > Re && d === Ce ? _ = O(F, -1, W, le) : _ += `(${F})${ke ? `.${le}` : ""}`, F = "";
1171
+ if (C === "(")
1172
+ v === 0 ? W = x : E += C, v++;
1173
+ else if (C === ")")
1174
+ if (v--, v === 0) {
1175
+ const N = typeof b == "string" && b.startsWith("$") ? b : void 0, Le = N && c.charAt(x + 1) === ".";
1176
+ let re = "";
1177
+ Le && ([re, x] = p(x + 2, c));
1178
+ const Fe = f ? d : u(W, c, 0), Pe = u(x, c);
1179
+ Fe === -1 && Pe === -1 ? (b = A(E, -1, N, re), typeof b == "string" && (b = E)) : f && (Fe >= Pe || Pe === -1) && d === Fe ? (k = f.bind(null, A(E, -1, N, re)), f = null, b = "") : Pe > Fe && d === Pe ? b = A(E, -1, N, re) : b += `(${E})${Le ? `.${re}` : ""}`, E = "";
1166
1180
  } else
1167
- F += P;
1168
- else if (c === 0 && (I = o(g, P, x, f))) {
1169
- x === 0 && N(103, [I, f]), x += I.length - 1, x === f.length - 1 && N(104, [I, f]), b ? _ && (V = b.bind(null, O(_, d)), b = m[I].bind(null, V), _ = "") : V ? (b = m[I].bind(null, O(V, d)), V = null) : (b = m[I].bind(null, O(_, d)), _ = "");
1181
+ E += C;
1182
+ else if (v === 0 && (I = o(g, C, x, c))) {
1183
+ x === 0 && H(103, [I, c]), x += I.length - 1, x === c.length - 1 && H(104, [I, c]), f ? b && (k = f.bind(null, A(b, d)), f = m[I].bind(null, k), b = "") : k ? (f = m[I].bind(null, A(k, d)), k = null) : (f = m[I].bind(null, A(b, d)), b = "");
1170
1184
  continue;
1171
1185
  } else
1172
- H(c, P);
1186
+ q(v, C);
1173
1187
  }
1174
- return _ && b && (b = b.bind(null, O(_, d))), b = !b && V ? V : b, !b && _ && (b = (x, W) => typeof x == "function" ? x(W) : x, b = b.bind(null, O(_, d))), !b && !_ && N(105, f), b;
1188
+ return b && f && (f = f.bind(null, A(b, d))), f = !f && k ? k : f, !f && b && (f = (x, N) => typeof x == "function" ? x(N) : x, f = f.bind(null, A(b, d))), !f && !b && H(105, c), f;
1175
1189
  }
1176
- function O(f, d, m, v) {
1190
+ function A(c, d, m, y) {
1177
1191
  if (m) {
1178
- const g = O(m, l.length);
1179
- let c, y = v ? J(`$${v}`) : !1;
1192
+ const g = A(m, l.length);
1193
+ let v, w = y ? J(`$${y}`) : !1;
1180
1194
  if (typeof g == "function") {
1181
- const b = On(String(f)).map((_) => O(_, -1));
1182
- return (_) => {
1183
- const V = g(_);
1184
- return typeof V != "function" ? (je(150, m), V) : (c = V(...b.map((I) => typeof I == "function" ? I(_) : I)), y && (y = y.provide((I) => {
1185
- const z = i(I);
1186
- return I.reduce((F, B) => {
1187
- if (B === v || (v == null ? void 0 : v.startsWith(`${B}(`))) {
1188
- const H = xn(c, B);
1189
- F[B] = () => H;
1195
+ const f = Mn(String(c)).map((b) => A(b, -1));
1196
+ return (b) => {
1197
+ const k = g(b);
1198
+ return typeof k != "function" ? (Re(150, m), k) : (v = k(...f.map((I) => typeof I == "function" ? I(b) : I)), w && (w = w.provide((I) => {
1199
+ const B = i(I);
1200
+ return I.reduce((E, O) => {
1201
+ if (O === y || (y == null ? void 0 : y.startsWith(`${O}(`))) {
1202
+ const q = Rn(v, O);
1203
+ E[O] = () => q;
1190
1204
  } else
1191
- F[B] = z[B];
1192
- return F;
1205
+ E[O] = B[O];
1206
+ return E;
1193
1207
  }, {});
1194
- })), y ? y() : c);
1208
+ })), w ? w() : v);
1195
1209
  };
1196
1210
  }
1197
- } else if (typeof f == "string") {
1198
- if (f === "true")
1211
+ } else if (typeof c == "string") {
1212
+ if (c === "true")
1199
1213
  return !0;
1200
- if (f === "false")
1214
+ if (c === "false")
1201
1215
  return !1;
1202
- if (f === "undefined")
1216
+ if (c === "undefined")
1203
1217
  return;
1204
- if (Ln(f))
1205
- return An(f.substring(1, f.length - 1));
1206
- if (!isNaN(+f))
1207
- return Number(f);
1218
+ if (On(c))
1219
+ return xn(c.substring(1, c.length - 1));
1220
+ if (!isNaN(+c))
1221
+ return Number(c);
1208
1222
  if (d < l.length - 1)
1209
- return h(f, d + 1);
1210
- if (f.startsWith("$")) {
1211
- const g = f.substring(1);
1212
- return t.add(g), function(y) {
1213
- return g in y ? y[g]() : void 0;
1223
+ return _(c, d + 1);
1224
+ if (c.startsWith("$")) {
1225
+ const g = c.substring(1);
1226
+ return t.add(g), function(w) {
1227
+ return g in w ? w[g]() : void 0;
1214
1228
  };
1215
1229
  }
1216
- return f;
1230
+ return c;
1217
1231
  }
1218
- return f;
1232
+ return c;
1219
1233
  }
1220
- const w = h(e.startsWith("$:") ? e.substring(2) : e), $ = Array.from(t);
1221
- function S(f) {
1222
- return i = f, Object.assign(w.bind(null, f($)), {
1223
- provide: S
1224
- });
1234
+ const Z = _(e.startsWith("$:") ? e.substring(2) : e), $ = Array.from(t);
1235
+ function h(c) {
1236
+ return i = c, Object.assign(
1237
+ // @ts-ignore - @rollup/plugin-typescript doesn't like this
1238
+ Z.bind(null, c($)),
1239
+ { provide: h }
1240
+ );
1225
1241
  }
1226
- return Object.assign(w, {
1227
- provide: S
1242
+ return Object.assign(Z, {
1243
+ provide: h
1228
1244
  });
1229
1245
  }
1230
- const Ot = "0.17.4";
1231
- function Yi(e) {
1246
+ const At = "0.18.1";
1247
+ function Gi(e) {
1232
1248
  let i = 1;
1233
1249
  return Array.isArray(e) ? e.map((t) => typeof t == "string" || typeof t == "number" ? {
1234
1250
  label: String(t),
@@ -1241,7 +1257,7 @@ function Yi(e) {
1241
1257
  value: t
1242
1258
  }));
1243
1259
  }
1244
- function ge(e, i) {
1260
+ function Se(e, i) {
1245
1261
  if (Array.isArray(e)) {
1246
1262
  for (const t of e)
1247
1263
  if (i == t.value)
@@ -1249,47 +1265,47 @@ function ge(e, i) {
1249
1265
  }
1250
1266
  return i;
1251
1267
  }
1252
- function $e(e, i) {
1253
- return e === null && i === void 0 || e === void 0 && i === null ? !1 : e == i ? !0 : _e(e) && _e(i) ? ue(e, i) : !1;
1268
+ function Ve(e, i) {
1269
+ return e === null && i === void 0 || e === void 0 && i === null ? !1 : e == i ? !0 : ke(e) && ke(i) ? fe(e, i) : !1;
1254
1270
  }
1255
1271
  function gt(e) {
1256
- e.hook.prop((i, t) => (i.prop === "options" && (typeof i.value == "function" ? (e.props.optionsLoader = i.value, i.value = []) : i.value = Yi(i.value)), t(i)));
1272
+ e.hook.prop((i, t) => (i.prop === "options" && (typeof i.value == "function" ? (e.props.optionsLoader = i.value, i.value = []) : i.value = Gi(i.value)), t(i)));
1257
1273
  }
1258
- function k(e, i, t = !1) {
1274
+ function S(e, i, t = !1) {
1259
1275
  return (...n) => {
1260
1276
  const l = (s) => {
1261
1277
  const r = !i || typeof i == "string" ? { $el: i } : i();
1262
- return (ut(r) || ft(r)) && (r.meta || (r.meta = { section: e }), n.length && !r.children && (r.children = [
1278
+ return (ft(r) || ct(r)) && (r.meta || (r.meta = { section: e }), n.length && !r.children && (r.children = [
1263
1279
  ...n.map((o) => typeof o == "string" ? o : o(s))
1264
- ]), ut(r) && (r.attrs = {
1280
+ ]), ft(r) && (r.attrs = {
1265
1281
  class: `$classes.${e}`,
1266
1282
  ...r.attrs || {}
1267
1283
  })), {
1268
1284
  if: `$slots.${e}`,
1269
1285
  then: `$slots.${e}`,
1270
- else: e in s ? Se(r, s[e]) : r
1286
+ else: e in s ? Ae(r, s[e]) : r
1271
1287
  };
1272
1288
  };
1273
- return l._s = e, t ? Qi(l) : l;
1289
+ return l._s = e, t ? el(l) : l;
1274
1290
  };
1275
1291
  }
1276
- function Qi(e) {
1292
+ function el(e) {
1277
1293
  return (i) => [e(i)];
1278
1294
  }
1279
- function Ke(e) {
1295
+ function We(e) {
1280
1296
  return typeof e == "object" && ("$el" in e || "$cmp" in e || "$formkit" in e);
1281
1297
  }
1282
- function Se(e, i = {}) {
1283
- return typeof e == "string" ? Ke(i) || typeof i == "string" ? i : e : Array.isArray(e) ? Ke(i) ? i : e : Ye(e, i);
1298
+ function Ae(e, i = {}) {
1299
+ return typeof e == "string" ? We(i) || typeof i == "string" ? i : e : Array.isArray(e) ? We(i) ? i : e : Qe(e, i);
1284
1300
  }
1285
- const fe = k("outer", () => ({
1301
+ const ce = S("outer", () => ({
1286
1302
  $el: "div",
1287
1303
  attrs: {
1288
1304
  key: "$id",
1289
1305
  "data-family": "$family || undefined",
1290
1306
  "data-type": "$type",
1291
1307
  "data-multiple": '$attrs.multiple || ($type != "select" && $options != undefined) || undefined',
1292
- "data-disabled": "$disabled || undefined",
1308
+ "data-disabled": '$: ($disabled !== "false" && $disabled) || undefined',
1293
1309
  "data-empty": "$state.empty || undefined",
1294
1310
  "data-complete": "$state.complete || undefined",
1295
1311
  "data-invalid": "$state.valid === false && $state.validationVisible || undefined",
@@ -1300,16 +1316,16 @@ const fe = k("outer", () => ({
1300
1316
  "data-prefix-icon-click": "$onPrefixIconClick !== undefined || undefined",
1301
1317
  "data-suffix-icon-click": "$onSuffixIconClick !== undefined || undefined"
1302
1318
  }
1303
- })), te = k("inner", "div"), we = k("wrapper", "div"), Ee = k("label", () => ({
1319
+ })), le = S("inner", "div"), Ie = S("wrapper", "div"), je = S("label", () => ({
1304
1320
  $el: "label",
1305
1321
  if: "$label",
1306
1322
  attrs: {
1307
1323
  for: "$id"
1308
1324
  }
1309
- })), ne = k("messages", () => ({
1325
+ })), ae = S("messages", () => ({
1310
1326
  $el: "ul",
1311
1327
  if: "$defaultMessagePlacement && $fns.length($messages)"
1312
- })), ie = k("message", () => ({
1328
+ })), se = S("message", () => ({
1313
1329
  $el: "li",
1314
1330
  for: ["message", "$messages"],
1315
1331
  attrs: {
@@ -1317,13 +1333,13 @@ const fe = k("outer", () => ({
1317
1333
  id: "$id + '-' + $message.key",
1318
1334
  "data-message-type": "$message.type"
1319
1335
  }
1320
- })), X = k("prefix", null), G = k("suffix", null), ee = k("help", () => ({
1336
+ })), Q = S("prefix", null), X = S("suffix", null), G = S("help", () => ({
1321
1337
  $el: "div",
1322
1338
  if: "$help",
1323
1339
  attrs: {
1324
1340
  id: '$: "help-" + $id'
1325
1341
  }
1326
- })), nn = k("fieldset", () => ({
1342
+ })), an = S("fieldset", () => ({
1327
1343
  $el: "fieldset",
1328
1344
  attrs: {
1329
1345
  id: "$id",
@@ -1333,12 +1349,12 @@ const fe = k("outer", () => ({
1333
1349
  else: void 0
1334
1350
  }
1335
1351
  }
1336
- })), qe = k("decorator", () => ({
1352
+ })), Ne = S("decorator", () => ({
1337
1353
  $el: "span",
1338
1354
  attrs: {
1339
1355
  "aria-hidden": "true"
1340
1356
  }
1341
- })), We = k("input", () => ({
1357
+ })), He = S("input", () => ({
1342
1358
  $el: "input",
1343
1359
  bind: "$attrs",
1344
1360
  attrs: {
@@ -1364,16 +1380,16 @@ const fe = k("outer", () => ({
1364
1380
  }
1365
1381
  }
1366
1382
  }
1367
- })), ln = k("legend", () => ({
1383
+ })), sn = S("legend", () => ({
1368
1384
  $el: "legend",
1369
1385
  if: "$label"
1370
- })), an = k("option", () => ({
1386
+ })), rn = S("option", () => ({
1371
1387
  $el: "li",
1372
1388
  for: ["option", "$options"],
1373
1389
  attrs: {
1374
1390
  "data-disabled": "$option.attrs.disabled || $disabled"
1375
1391
  }
1376
- })), sn = k("options", "ul"), Ne = k("wrapper", () => ({
1392
+ })), on = S("options", "ul"), qe = S("wrapper", () => ({
1377
1393
  $el: "label",
1378
1394
  attrs: {
1379
1395
  "data-disabled": {
@@ -1387,13 +1403,13 @@ const fe = k("outer", () => ({
1387
1403
  else: "$fns.isChecked($option.value) || undefined"
1388
1404
  }
1389
1405
  }
1390
- })), rn = k("optionHelp", () => ({
1406
+ })), un = S("optionHelp", () => ({
1391
1407
  $el: "div",
1392
1408
  if: "$option.help",
1393
1409
  attrs: {
1394
1410
  id: '$: "help-" + $option.attrs.id'
1395
1411
  }
1396
- })), He = k("label", "span"), Xi = k("input", () => ({
1412
+ })), Ze = S("label", "span"), tl = S("input", () => ({
1397
1413
  $el: "button",
1398
1414
  bind: "$attrs",
1399
1415
  attrs: {
@@ -1402,7 +1418,7 @@ const fe = k("outer", () => ({
1402
1418
  name: "$node.name",
1403
1419
  id: "$id"
1404
1420
  }
1405
- })), Gi = k("default", null), el = k("input", () => ({
1421
+ })), nl = S("default", null), il = S("input", () => ({
1406
1422
  $el: "input",
1407
1423
  bind: "$attrs",
1408
1424
  attrs: {
@@ -1414,10 +1430,10 @@ const fe = k("outer", () => ({
1414
1430
  id: "$id",
1415
1431
  "aria-describedby": "$describedBy"
1416
1432
  }
1417
- })), tl = k("fileItem", () => ({
1433
+ })), ll = S("fileItem", () => ({
1418
1434
  $el: "li",
1419
1435
  for: ["file", "$value"]
1420
- })), nl = k("fileList", () => ({
1436
+ })), al = S("fileList", () => ({
1421
1437
  $el: "ul",
1422
1438
  if: "$value.length",
1423
1439
  attrs: {
@@ -1426,20 +1442,20 @@ const fe = k("outer", () => ({
1426
1442
  then: "true"
1427
1443
  }
1428
1444
  }
1429
- })), il = k("fileName", () => ({
1445
+ })), sl = S("fileName", () => ({
1430
1446
  $el: "span",
1431
1447
  attrs: {
1432
1448
  class: "$classes.fileName"
1433
1449
  }
1434
- })), Pt = k("fileRemove", () => ({
1450
+ })), Ot = S("fileRemove", () => ({
1435
1451
  $el: "button",
1436
1452
  attrs: {
1437
1453
  onClick: "$handlers.resetFiles"
1438
1454
  }
1439
- })), ll = k("noFiles", () => ({
1455
+ })), rl = S("noFiles", () => ({
1440
1456
  $el: "span",
1441
1457
  if: "$value.length == 0"
1442
- })), al = k("form", () => ({
1458
+ })), ol = S("form", () => ({
1443
1459
  $el: "form",
1444
1460
  bind: "$attrs",
1445
1461
  attrs: {
@@ -1448,10 +1464,10 @@ const fe = k("outer", () => ({
1448
1464
  onSubmit: "$handlers.submit",
1449
1465
  "data-loading": "$state.loading || undefined"
1450
1466
  }
1451
- })), sl = k("actions", () => ({
1467
+ })), ul = S("actions", () => ({
1452
1468
  $el: "div",
1453
1469
  if: "$actions"
1454
- })), rl = k("submit", () => ({
1470
+ })), fl = S("submit", () => ({
1455
1471
  $cmp: "FormKit",
1456
1472
  bind: "$submitAttrs",
1457
1473
  props: {
@@ -1459,7 +1475,7 @@ const fe = k("outer", () => ({
1459
1475
  disabled: "$disabled",
1460
1476
  label: "$submitLabel"
1461
1477
  }
1462
- })), on = k("input", () => ({
1478
+ })), fn = S("input", () => ({
1463
1479
  $el: "input",
1464
1480
  bind: "$attrs",
1465
1481
  attrs: {
@@ -1472,7 +1488,7 @@ const fe = k("outer", () => ({
1472
1488
  id: "$id",
1473
1489
  "aria-describedby": "$describedBy"
1474
1490
  }
1475
- })), un = k("wrapper", null, !0), ol = k("input", () => ({
1491
+ })), cn = S("wrapper", null, !0), cl = S("input", () => ({
1476
1492
  $el: "select",
1477
1493
  bind: "$attrs",
1478
1494
  attrs: {
@@ -1486,7 +1502,7 @@ const fe = k("outer", () => ({
1486
1502
  onBlur: "$handlers.blur",
1487
1503
  "aria-describedby": "$describedBy"
1488
1504
  }
1489
- })), ul = k("option", () => ({
1505
+ })), pl = S("option", () => ({
1490
1506
  $el: "option",
1491
1507
  for: ["option", "$options"],
1492
1508
  bind: "$option.attrs",
@@ -1495,12 +1511,12 @@ const fe = k("outer", () => ({
1495
1511
  value: "$option.value",
1496
1512
  selected: "$fns.isSelected($option)"
1497
1513
  }
1498
- })), fl = () => ({
1514
+ })), dl = () => ({
1499
1515
  $el: null,
1500
1516
  if: "$options.length",
1501
1517
  for: ["option", "$options"],
1502
1518
  children: "$slots.option"
1503
- }), cl = k("input", () => ({
1519
+ }), ml = S("input", () => ({
1504
1520
  $el: "textarea",
1505
1521
  bind: "$attrs",
1506
1522
  attrs: {
@@ -1513,13 +1529,13 @@ const fe = k("outer", () => ({
1513
1529
  "aria-describedby": "$describedBy"
1514
1530
  },
1515
1531
  children: "$initialValue"
1516
- })), U = (e, i) => k(`${e}Icon`, () => {
1532
+ })), z = (e, i) => S(`${e}Icon`, () => {
1517
1533
  const t = `_raw${e.charAt(0).toUpperCase()}${e.slice(1)}Icon`;
1518
1534
  return {
1519
1535
  if: `$${e}Icon && $${t}`,
1520
1536
  $el: `${i || "span"}`,
1521
1537
  attrs: {
1522
- class: `$classes.${e}Icon + " formkit-icon"`,
1538
+ class: `$classes.${e}Icon + " " + $classes.icon`,
1523
1539
  innerHTML: `$${t}`,
1524
1540
  onClick: `$handlers.iconClick(${e})`,
1525
1541
  for: {
@@ -1529,11 +1545,11 @@ const fe = k("outer", () => ({
1529
1545
  }
1530
1546
  };
1531
1547
  })();
1532
- function fn(e) {
1548
+ function pn(e) {
1533
1549
  return function(i, t) {
1534
1550
  return i.prop === "options" && Array.isArray(i.value) && (i.value = i.value.map((n) => {
1535
1551
  var l;
1536
- return !((l = n.attrs) === null || l === void 0) && l.id ? n : Ye(n, {
1552
+ return !((l = n.attrs) === null || l === void 0) && l.id ? n : Qe(n, {
1537
1553
  attrs: {
1538
1554
  id: `${e.name}-option-${dt(String(n.value))}`
1539
1555
  }
@@ -1543,33 +1559,33 @@ function fn(e) {
1543
1559
  }))), t(i);
1544
1560
  };
1545
1561
  }
1546
- function pl(e, i) {
1562
+ function bl(e, i) {
1547
1563
  const t = i.target;
1548
1564
  if (t instanceof HTMLInputElement) {
1549
- const n = Array.isArray(e.props.options) ? ge(e.props.options, t.value) : t.value;
1550
- Array.isArray(e.props.options) && e.props.options.length ? Array.isArray(e._value) ? e._value.some((l) => $e(n, l)) ? e.input(e._value.filter((l) => !$e(n, l))) : e.input([...e._value, n]) : e.input([n]) : t.checked ? e.input(e.props.onValue) : e.input(e.props.offValue);
1565
+ const n = Array.isArray(e.props.options) ? Se(e.props.options, t.value) : t.value;
1566
+ Array.isArray(e.props.options) && e.props.options.length ? Array.isArray(e._value) ? e._value.some((l) => Ve(n, l)) ? e.input(e._value.filter((l) => !Ve(n, l))) : e.input([...e._value, n]) : e.input([n]) : t.checked ? e.input(e.props.onValue) : e.input(e.props.offValue);
1551
1567
  }
1552
1568
  }
1553
- function dl(e, i) {
1569
+ function yl(e, i) {
1554
1570
  var t, n;
1555
- 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) => $e(ge(e.props.options, i), l)) : !1;
1571
+ 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) => Ve(Se(e.props.options, i), l)) : !1;
1556
1572
  }
1557
- function ml(e) {
1573
+ function vl(e) {
1558
1574
  e.on("created", () => {
1559
1575
  var i, t;
1560
- !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = pl.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = dl.bind(null, e)), E(e.props, "onValue") || (e.props.onValue = !0), E(e.props, "offValue") || (e.props.offValue = !1);
1561
- }), e.hook.prop(fn(e));
1576
+ !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = bl.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = yl.bind(null, e)), j(e.props, "onValue") || (e.props.onValue = !0), j(e.props, "offValue") || (e.props.offValue = !1);
1577
+ }), e.hook.prop(pn(e));
1562
1578
  }
1563
- function Xe(e) {
1579
+ function $t(e) {
1564
1580
  e.on("created", () => {
1565
- e.props.disabled = Y(e.props.disabled), e.config.disabled = Y(e.props.disabled);
1581
+ "disabled" in e.props && (e.props.disabled = Y(e.props.disabled), e.config.disabled = Y(e.props.disabled));
1566
1582
  }), e.hook.prop(({ prop: i, value: t }, n) => (t = i === "disabled" ? Y(t) : t, n({ prop: i, value: t }))), e.on("prop:disabled", ({ payload: i }) => {
1567
1583
  e.config.disabled = Y(i);
1568
1584
  });
1569
1585
  }
1570
- function Be(e, i) {
1586
+ function ze(e, i) {
1571
1587
  return (t) => {
1572
- t.store.set(re({
1588
+ t.store.set(ue({
1573
1589
  key: e,
1574
1590
  type: "ui",
1575
1591
  value: i || e,
@@ -1580,22 +1596,22 @@ function Be(e, i) {
1580
1596
  }));
1581
1597
  };
1582
1598
  }
1583
- const et = typeof window < "u";
1584
- function cn(e) {
1599
+ const tt = typeof window < "u";
1600
+ function dn(e) {
1585
1601
  e.target instanceof HTMLElement && e.target.hasAttribute("data-file-hover") && e.target.removeAttribute("data-file-hover");
1586
1602
  }
1587
1603
  function xt(e, i) {
1588
- i.target instanceof HTMLInputElement ? e === "dragover" && i.target.setAttribute("data-file-hover", "true") : i.preventDefault(), e === "drop" && cn(i);
1604
+ i.target instanceof HTMLInputElement ? e === "dragover" && i.target.setAttribute("data-file-hover", "true") : i.preventDefault(), e === "drop" && dn(i);
1589
1605
  }
1590
- function bl(e) {
1591
- Be("noFiles", "Select file")(e), Be("removeAll", "Remove all")(e), Be("remove")(e), et && (window._FormKit_File_Drop || (window.addEventListener("dragover", xt.bind(null, "dragover")), window.addEventListener("drop", xt.bind(null, "drop")), window.addEventListener("dragleave", cn), window._FormKit_File_Drop = !0)), e.hook.input((i, t) => t(Array.isArray(i) ? i : [])), e.on("reset", () => {
1592
- if (e.props.id && et) {
1606
+ function hl(e) {
1607
+ ze("noFiles", "Select file")(e), ze("removeAll", "Remove all")(e), ze("remove")(e), tt && (window._FormKit_File_Drop || (window.addEventListener("dragover", xt.bind(null, "dragover")), window.addEventListener("drop", xt.bind(null, "drop")), window.addEventListener("dragleave", dn), window._FormKit_File_Drop = !0)), e.hook.input((i, t) => t(Array.isArray(i) ? i : [])), e.on("reset", () => {
1608
+ if (e.props.id && tt) {
1593
1609
  const i = document.getElementById(e.props.id);
1594
1610
  i && (i.value = "");
1595
1611
  }
1596
1612
  }), e.on("created", () => {
1597
1613
  Array.isArray(e.value) || e.input([], !1), e.context && (e.context.handlers.resetFiles = (i) => {
1598
- if (i.preventDefault(), e.input([]), e.props.id && et) {
1614
+ if (i.preventDefault(), e.input([]), e.props.id && tt) {
1599
1615
  const t = document.getElementById(e.props.id);
1600
1616
  t && (t.value = "");
1601
1617
  }
@@ -1613,15 +1629,22 @@ function bl(e) {
1613
1629
  });
1614
1630
  });
1615
1631
  }
1616
- async function yl(e, i) {
1617
- i.preventDefault(), await e.settled;
1618
- const t = (n) => n.store.set(re({
1632
+ const Mt = ue({
1633
+ key: "loading",
1634
+ value: !0,
1635
+ visible: !1
1636
+ });
1637
+ async function _l(e, i) {
1638
+ const t = Math.random();
1639
+ if (e.props._submitNonce = t, i.preventDefault(), await e.settled, e.ledger.value("validating") && (e.store.set(Mt), await e.ledger.settled("validating"), e.store.remove("loading"), e.props._submitNonce !== t))
1640
+ return;
1641
+ const n = (l) => l.store.set(ue({
1619
1642
  key: "submitted",
1620
1643
  value: !0,
1621
1644
  visible: !1
1622
1645
  }));
1623
- if (e.walk(t), t(e), typeof e.props.onSubmitRaw == "function" && e.props.onSubmitRaw(i, e), e.ledger.value("blocking"))
1624
- typeof e.props.onSubmitInvalid == "function" && e.props.onSubmitInvalid(e), e.props.incompleteMessage !== !1 && e.store.set(re({
1646
+ if (e.walk(n), n(e), typeof e.props.onSubmitRaw == "function" && e.props.onSubmitRaw(i, e), e.ledger.value("blocking"))
1647
+ typeof e.props.onSubmitInvalid == "function" && e.props.onSubmitInvalid(e), e.props.incompleteMessage !== !1 && e.store.set(ue({
1625
1648
  blocking: !1,
1626
1649
  key: "incomplete",
1627
1650
  meta: {
@@ -1633,65 +1656,61 @@ async function yl(e, i) {
1633
1656
  value: e.props.incompleteMessage || "Form incomplete."
1634
1657
  }));
1635
1658
  else if (typeof e.props.onSubmit == "function") {
1636
- const n = e.props.onSubmit(e.hook.submit.dispatch(Pe(e.value)), e);
1637
- if (n instanceof Promise) {
1638
- const l = e.props.disabled === void 0 && e.props.submitBehavior !== "live";
1639
- l && (e.props.disabled = !0), e.store.set(re({
1640
- key: "loading",
1641
- value: !0,
1642
- visible: !1
1643
- })), await n, l && (e.props.disabled = !1), e.store.remove("loading");
1659
+ const l = e.props.onSubmit(e.hook.submit.dispatch(Ee(e.value)), e);
1660
+ if (l instanceof Promise) {
1661
+ const s = e.props.disabled === void 0 && e.props.submitBehavior !== "live";
1662
+ s && (e.props.disabled = !0), e.store.set(Mt), await l, s && (e.props.disabled = !1), e.store.remove("loading");
1644
1663
  }
1645
1664
  } else
1646
1665
  i.target instanceof HTMLFormElement && i.target.submit();
1647
1666
  }
1648
- function vl(e) {
1649
- e.props.isForm = !0, e.on("created", () => {
1667
+ function gl(e) {
1668
+ e.props.isForm = !0, e.ledger.count("validating", (i) => i.key === "validating"), e.on("created", () => {
1650
1669
  var i;
1651
- !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.submit = yl.bind(null, e)), E(e.props, "actions") || (e.props.actions = !0);
1670
+ !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.submit = _l.bind(null, e)), j(e.props, "actions") || (e.props.actions = !0);
1652
1671
  }), e.on("settled:blocking", () => e.store.remove("incomplete"));
1653
1672
  }
1654
- function hl(e) {
1673
+ function $l(e) {
1655
1674
  e.props.ignore === void 0 && (e.props.ignore = !0, e.parent = null);
1656
1675
  }
1657
- function _l(e) {
1676
+ function wl(e) {
1658
1677
  e.on("created", () => {
1659
1678
  e.context && (e.context.initialValue = e.value || "");
1660
1679
  });
1661
1680
  }
1662
- function gl(e, i) {
1663
- i.target instanceof HTMLInputElement && e.input(ge(e.props.options, i.target.value));
1681
+ function kl(e, i) {
1682
+ i.target instanceof HTMLInputElement && e.input(Se(e.props.options, i.target.value));
1664
1683
  }
1665
- function $l(e, i) {
1684
+ function Cl(e, i) {
1666
1685
  var t, n;
1667
- return (t = e.context) === null || t === void 0 || t.value, (n = e.context) === null || n === void 0 || n._value, $e(ge(e.props.options, i), e._value);
1686
+ return (t = e.context) === null || t === void 0 || t.value, (n = e.context) === null || n === void 0 || n._value, Ve(Se(e.props.options, i), e._value);
1668
1687
  }
1669
- function wl(e) {
1688
+ function Sl(e) {
1670
1689
  e.on("created", () => {
1671
1690
  var i, t;
1672
- Array.isArray(e.props.options) || je(350, {
1691
+ Array.isArray(e.props.options) || Re(350, {
1673
1692
  node: e,
1674
1693
  inputType: "radio"
1675
- }), !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = gl.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = $l.bind(null, e));
1676
- }), e.hook.prop(fn(e));
1694
+ }), !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = kl.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = Cl.bind(null, e));
1695
+ }), e.hook.prop(pn(e));
1677
1696
  }
1678
- function kl(e, i) {
1697
+ function Vl(e, i) {
1679
1698
  e.context && e.context.value;
1680
1699
  const t = "__original" in i ? i.__original : i.value;
1681
1700
  function n() {
1682
1701
  return !e.props.options.some((l) => ("__original" in l ? l.__original : l.value) === null);
1683
1702
  }
1684
- return Array.isArray(e._value) ? e._value.some((l) => $e(l, t)) : (e._value === void 0 || e._value === null && n()) && i.attrs && i.attrs["data-is-placeholder"] ? !0 : $e(t, e._value);
1703
+ return Array.isArray(e._value) ? e._value.some((l) => Ve(l, t)) : (e._value === void 0 || e._value === null && n()) && i.attrs && i.attrs["data-is-placeholder"] ? !0 : Ve(t, e._value);
1685
1704
  }
1686
- async function Cl(e, i) {
1705
+ async function Il(e, i) {
1687
1706
  var t;
1688
1707
  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));
1689
1708
  }
1690
- function Sl(e, i) {
1691
- const t = i.target, n = t.hasAttribute("multiple") ? Array.from(t.selectedOptions).map((l) => ge(e.props.options, l.value)) : ge(e.props.options, t.value);
1709
+ function Ll(e, i) {
1710
+ const t = i.target, n = t.hasAttribute("multiple") ? Array.from(t.selectedOptions).map((l) => Se(e.props.options, l.value)) : Se(e.props.options, t.value);
1692
1711
  e.input(n);
1693
1712
  }
1694
- function Mt(e, i) {
1713
+ function Et(e, i) {
1695
1714
  return e.some((t) => t.attrs && t.attrs["data-is-placeholder"]) ? e : [
1696
1715
  {
1697
1716
  label: i,
@@ -1705,24 +1724,24 @@ function Mt(e, i) {
1705
1724
  ...e
1706
1725
  ];
1707
1726
  }
1708
- function Vl(e) {
1727
+ function Pl(e) {
1709
1728
  e.on("created", () => {
1710
1729
  var i, t, n;
1711
1730
  const l = Y((i = e.props.attrs) === null || i === void 0 ? void 0 : i.multiple);
1712
- !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, {
1731
+ !l && e.props.placeholder && Array.isArray(e.props.options) && (e.hook.prop(({ prop: s, value: r }, o) => (s === "options" && (r = Et(r, e.props.placeholder)), o({ prop: s, value: r }))), e.props.options = Et(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, {
1713
1732
  value: e._value
1714
1733
  }), e.on("input", ({ payload: s }) => {
1715
1734
  e.props.attrs = Object.assign({}, e.props.attrs, {
1716
1735
  value: s
1717
1736
  });
1718
- })), !((t = e.context) === null || t === void 0) && t.handlers && (e.context.handlers.selectInput = Sl.bind(null, e), e.context.handlers.onChange = Cl.bind(null, e)), !((n = e.context) === null || n === void 0) && n.fns && (e.context.fns.isSelected = kl.bind(null, e), e.context.fns.showPlaceholder = (s, r) => {
1737
+ })), !((t = e.context) === null || t === void 0) && t.handlers && (e.context.handlers.selectInput = Ll.bind(null, e), e.context.handlers.onChange = Il.bind(null, e)), !((n = e.context) === null || n === void 0) && n.fns && (e.context.fns.isSelected = Vl.bind(null, e), e.context.fns.showPlaceholder = (s, r) => {
1719
1738
  if (!Array.isArray(e.props.options))
1720
1739
  return !1;
1721
1740
  const o = e.props.options.some((u) => {
1722
1741
  if (u.attrs && "data-is-placeholder" in u.attrs)
1723
1742
  return !1;
1724
1743
  const p = "__original" in u ? u.__original : u.value;
1725
- return ue(s, p);
1744
+ return fe(s, p);
1726
1745
  });
1727
1746
  return r && !o ? !0 : void 0;
1728
1747
  });
@@ -1731,113 +1750,143 @@ function Vl(e) {
1731
1750
  return !e.props.placeholder && i === void 0 && Array.isArray((n = e.props) === null || n === void 0 ? void 0 : n.options) && e.props.options.length && !Y((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);
1732
1751
  });
1733
1752
  }
1734
- function ve(e, i) {
1753
+ function _e(e, i) {
1735
1754
  return (t) => {
1736
- t.props[`${e}Icon`] === void 0 && (t.props[`${e}Icon`] = `default:${i}`);
1755
+ t.props[`${e}Icon`] === void 0 && (t.props[`${e}Icon`] = i.startsWith("<svg") ? i : `default:${i}`);
1737
1756
  };
1738
1757
  }
1739
- function ct(e) {
1740
- return !!(be(e) && e.if && e.if.startsWith("$slots.") && typeof e.then == "string" && e.then.startsWith("$slots.") && "else" in e);
1758
+ function pt(e) {
1759
+ return !!(ve(e) && e.if && e.if.startsWith("$slots.") && typeof e.then == "string" && e.then.startsWith("$slots.") && "else" in e);
1741
1760
  }
1742
- function Il(e) {
1743
- return fe(we(Ee("$label"), te(X(), e(), G())), ee("$help"), ne(ie("$message.value")));
1761
+ function Al(e) {
1762
+ return ce(Ie(je("$label"), le(Q(), e(), X())), G("$help"), ae(se("$message.value")));
1744
1763
  }
1745
- function Q(e, i, t) {
1764
+ function ie(e, i, t) {
1746
1765
  const n = (l) => {
1747
1766
  const s = i(l);
1748
- if (t || Ke(s) && "if" in s || ct(s)) {
1767
+ if (t || We(s) && "if" in s || pt(s)) {
1749
1768
  const r = {
1750
1769
  if: e,
1751
1770
  then: s
1752
1771
  };
1753
1772
  return t && (r.else = t(l)), r;
1754
1773
  } else
1755
- ct(s) ? Object.assign(s.else, { if: e }) : Ke(s) && Object.assign(s, { if: e });
1774
+ pt(s) ? Object.assign(s.else, { if: e }) : We(s) && Object.assign(s, { if: e });
1756
1775
  return s;
1757
1776
  };
1758
- return n._s = Je(), n;
1777
+ return n._s = Ye(), n;
1759
1778
  }
1760
- function Ie(e, i) {
1779
+ function ge(e, i) {
1761
1780
  const t = (n) => {
1762
1781
  const l = e({});
1763
- return ct(l) ? (Array.isArray(l.else) || (l.else = Se(Se(l.else, i), e._s ? n[e._s] : {})), l) : Se(Se(l, i), e._s ? n[e._s] : {});
1782
+ return pt(l) ? (Array.isArray(l.else) || (l.else = Ae(Ae(l.else, i), e._s ? n[e._s] : {})), l) : Ae(Ae(l, i), e._s ? n[e._s] : {});
1764
1783
  };
1765
1784
  return t._s = e._s, t;
1766
1785
  }
1767
- fe(ne(ie("$message.value")), we(Xi(U("prefix"), X(), Gi("$label || $ui.submit.value"), G(), U("suffix"))), ee("$help")), Be("submit");
1768
- fe(
1769
- Q(
1786
+ const Ol = [
1787
+ "classes",
1788
+ "config",
1789
+ "delay",
1790
+ "errors",
1791
+ "id",
1792
+ "index",
1793
+ "inputErrors",
1794
+ "modelValue",
1795
+ "onUpdate:modelValue",
1796
+ "name",
1797
+ "parent",
1798
+ "plugins",
1799
+ "sectionsSchema",
1800
+ "type",
1801
+ "validation",
1802
+ "validationLabel",
1803
+ "validationMessages",
1804
+ "validationRules",
1805
+ // Runtime event props:
1806
+ "onInput",
1807
+ "onInputRaw",
1808
+ "onUpdate:modelValue",
1809
+ "onNode",
1810
+ "onSubmit",
1811
+ "onSubmitInvalid",
1812
+ "onSubmitRaw"
1813
+ ];
1814
+ ce(ae(se("$message.value")), Ie(tl(z("prefix"), Q(), nl("$label || $ui.submit.value"), X(), z("suffix"))), G("$help")), ze("submit");
1815
+ ce(
1816
+ ie(
1770
1817
  "$options == undefined",
1771
1818
  /**
1772
1819
  * Single checkbox structure.
1773
1820
  */
1774
- Ne(te(X(), We(), qe(U("decorator")), G()), Ie(He("$label"), {
1821
+ qe(le(Q(), He(), Ne(z("decorator")), X()), ge(Ze("$label"), {
1775
1822
  if: "$label"
1776
1823
  })),
1777
1824
  /**
1778
1825
  * Multi checkbox structure.
1779
1826
  */
1780
- nn(ln("$label"), ee("$help"), sn(an(Ne(te(X(), Ie(We(), {
1827
+ an(sn("$label"), G("$help"), on(rn(qe(le(Q(), ge(He(), {
1781
1828
  bind: "$option.attrs",
1782
1829
  attrs: {
1783
1830
  id: "$option.attrs.id",
1784
1831
  value: "$option.value",
1785
1832
  checked: "$fns.isChecked($option.value)"
1786
1833
  }
1787
- }), qe(U("decorator")), G()), Ie(He("$option.label"), {
1834
+ }), Ne(z("decorator")), X()), ge(Ze("$option.label"), {
1788
1835
  if: "$option.label"
1789
- })), rn("$option.help"))))
1836
+ })), un("$option.help"))))
1790
1837
  ),
1791
1838
  // Help text only goes under the input when it is a single.
1792
- Q("$options == undefined && $help", ee("$help")),
1793
- ne(ie("$message.value"))
1794
- ), ve("decorator", "checkboxDecorator");
1795
- fe(we(Ee("$label"), te(U("prefix", "label"), X(), el(), nl(tl(U("fileItem"), il("$file.name"), Q("$value.length === 1", Pt(U("fileRemove"), "$ui.remove.value")))), Q("$value.length > 1", Pt("$ui.removeAll.value")), ll(U("noFiles"), "$ui.noFiles.value"), G(), U("suffix"))), ee("$help"), ne(ie("$message.value"))), ve("fileItem", "fileItem"), ve("fileRemove", "fileRemove"), ve("noFiles", "noFiles");
1796
- al("$slots.default", ne(ie("$message.value")), sl(rl()));
1797
- un("$slots.default");
1798
- on();
1799
- un("$slots.default");
1800
- fe(
1801
- Q(
1839
+ ie("$options == undefined && $help", G("$help")),
1840
+ ae(se("$message.value"))
1841
+ ), _e("decorator", "checkboxDecorator");
1842
+ ce(Ie(je("$label"), le(z("prefix", "label"), Q(), il(), al(ll(z("fileItem"), sl("$file.name"), ie("$value.length === 1", Ot(z("fileRemove"), "$ui.remove.value")))), ie("$value.length > 1", Ot("$ui.removeAll.value")), rl(z("noFiles"), "$ui.noFiles.value"), X(), z("suffix"))), G("$help"), ae(se("$message.value"))), _e("fileItem", "fileItem"), _e("fileRemove", "fileRemove"), _e("noFiles", "noFiles");
1843
+ ol("$slots.default", ae(se("$message.value")), ul(fl()));
1844
+ cn("$slots.default");
1845
+ fn();
1846
+ cn("$slots.default");
1847
+ ce(
1848
+ ie(
1802
1849
  "$options == undefined",
1803
1850
  /**
1804
1851
  * Single radio structure.
1805
1852
  */
1806
- Ne(te(X(), We(), qe(U("decorator")), G()), Q("$label", He("$label"))),
1853
+ qe(le(Q(), He(), Ne(z("decorator")), X()), ge(Ze("$label"), {
1854
+ if: "$label"
1855
+ })),
1807
1856
  /**
1808
1857
  * Multi radio structure.
1809
1858
  */
1810
- nn(ln("$label"), ee("$help"), sn(an(Ne(te(X(), Ie(We(), {
1859
+ an(sn("$label"), G("$help"), on(rn(qe(le(Q(), ge(He(), {
1811
1860
  bind: "$option.attrs",
1812
1861
  attrs: {
1813
1862
  id: "$option.attrs.id",
1814
1863
  value: "$option.value",
1815
1864
  checked: "$fns.isChecked($option.value)"
1816
1865
  }
1817
- }), qe(U("decorator")), G()), Ie(He("$option.label"), {
1866
+ }), Ne(z("decorator")), X()), ge(Ze("$option.label"), {
1818
1867
  if: "$option.label"
1819
- })), rn("$option.help"))))
1868
+ })), un("$option.help"))))
1820
1869
  ),
1821
1870
  // Help text only goes under the input when it is a single.
1822
- Q("$options == undefined && $help", ee("$help")),
1823
- ne(ie("$message.value"))
1824
- ), ve("decorator", "radioDecorator");
1825
- fe(we(Ee("$label"), te(U("prefix"), X(), ol(Q("$slots.default", () => "$slots.default", Q("$slots.option", fl, ul("$option.label")))), Q("$attrs.multiple !== undefined", () => "", U("select")), G(), U("suffix"))), ee("$help"), ne(ie("$message.value"))), ve("select", "select");
1826
- fe(we(Ee("$label"), te(U("prefix", "label"), X(), cl(), G(), U("suffix"))), ee("$help"), ne(ie("$message.value")));
1827
- fe(we(Ee("$label"), te(U("prefix", "label"), X(), on(), G(), U("suffix"))), ee("$help"), ne(ie("$message.value")));
1828
- re({
1871
+ ie("$options == undefined && $help", G("$help")),
1872
+ ae(se("$message.value"))
1873
+ ), _e("decorator", "radioDecorator");
1874
+ ce(Ie(je("$label"), le(z("prefix"), Q(), cl(ie("$slots.default", () => "$slots.default", ie("$slots.option", dl, pl("$option.label")))), ie("$attrs.multiple !== undefined", () => "", z("select")), X(), z("suffix"))), G("$help"), ae(se("$message.value"))), _e("select", "select");
1875
+ ce(Ie(je("$label"), le(z("prefix", "label"), Q(), ml(), X(), z("suffix"))), G("$help"), ae(se("$message.value")));
1876
+ ce(Ie(je("$label"), le(z("prefix", "label"), Q(), fn(), X(), z("suffix"))), G("$help"), ae(se("$message.value")));
1877
+ ue({
1829
1878
  type: "state",
1830
1879
  blocking: !0,
1831
1880
  visible: !1,
1832
1881
  value: !0,
1833
1882
  key: "validating"
1834
1883
  });
1835
- let ze;
1836
- const Ll = new Promise((e) => {
1884
+ let Ue;
1885
+ const xl = new Promise((e) => {
1837
1886
  }), Ge = typeof window < "u" && typeof fetch < "u";
1838
- ze = Ge ? getComputedStyle(document.documentElement) : void 0;
1839
- const Ve = {}, tt = {};
1840
- function nt(e, i) {
1887
+ Ue = Ge ? getComputedStyle(document.documentElement) : void 0;
1888
+ const Oe = {}, nt = {};
1889
+ function it(e, i) {
1841
1890
  return (t) => {
1842
1891
  if (typeof t != "string")
1843
1892
  return;
@@ -1845,33 +1894,33 @@ function nt(e, i) {
1845
1894
  return t;
1846
1895
  const n = t.startsWith("default:");
1847
1896
  t = n ? t.split(":")[1] : t;
1848
- const l = t in Ve;
1897
+ const l = t in Oe;
1849
1898
  let s;
1850
1899
  if (l)
1851
- return Ve[t];
1852
- if (!tt[t]) {
1853
- if (s = Al(t), s = Ge && typeof s > "u" ? Promise.resolve(s) : s, s instanceof Promise)
1854
- tt[t] = s.then((r) => !r && typeof t == "string" && !n ? s = typeof e == "function" ? e(t) : Pl(t, i) : r).then((r) => (typeof t == "string" && (Ve[n ? `default:${t}` : t] = r), r));
1900
+ return Oe[t];
1901
+ if (!nt[t]) {
1902
+ if (s = Ml(t), s = Ge && typeof s > "u" ? Promise.resolve(s) : s, s instanceof Promise)
1903
+ nt[t] = s.then((r) => !r && typeof t == "string" && !n ? s = typeof e == "function" ? e(t) : Rl(t, i) : r).then((r) => (typeof t == "string" && (Oe[n ? `default:${t}` : t] = r), r));
1855
1904
  else if (typeof s == "string")
1856
- return Ve[n ? `default:${t}` : t] = s, s;
1905
+ return Oe[n ? `default:${t}` : t] = s, s;
1857
1906
  }
1858
- return tt[t];
1907
+ return nt[t];
1859
1908
  };
1860
1909
  }
1861
- function Al(e) {
1910
+ function Ml(e) {
1862
1911
  if (Ge)
1863
- return Ll.then(() => Ol(e));
1912
+ return xl.then(() => El(e));
1864
1913
  }
1865
- function Ol(e) {
1866
- const i = ze == null ? void 0 : ze.getPropertyValue(`--fk-icon-${e}`);
1914
+ function El(e) {
1915
+ const i = Ue == null ? void 0 : Ue.getPropertyValue(`--fk-icon-${e}`);
1867
1916
  if (i) {
1868
1917
  const t = atob(i);
1869
1918
  if (t.startsWith("<svg"))
1870
- return Ve[e] = t, t;
1919
+ return Oe[e] = t, t;
1871
1920
  }
1872
1921
  }
1873
- function Pl(e, i) {
1874
- const t = Ot.startsWith("__") ? "latest" : Ot, n = typeof i == "function" ? i(e) : `https://cdn.jsdelivr.net/npm/@formkit/icons@${t}/dist/icons/${e}.svg`;
1922
+ function Rl(e, i) {
1923
+ const t = At.startsWith("__") ? "latest" : At, n = typeof i == "function" ? i(e) : `https://cdn.jsdelivr.net/npm/@formkit/icons@${t}/dist/icons/${e}.svg`;
1875
1924
  if (Ge)
1876
1925
  return fetch(`${n}`).then(async (l) => {
1877
1926
  const s = await l.text();
@@ -1881,8 +1930,8 @@ function Pl(e, i) {
1881
1930
  console.error(l);
1882
1931
  });
1883
1932
  }
1884
- let $t = !1;
1885
- const jt = {
1933
+ let wt = !1;
1934
+ const Rt = {
1886
1935
  /**
1887
1936
  * FormKit errors:
1888
1937
  */
@@ -1904,7 +1953,7 @@ const jt = {
1904
1953
  */
1905
1954
  600: ({ data: e }) => `Unknown input type${typeof e.props.type == "string" ? ' "' + e.props.type + '"' : ""} ("${e.name}")`,
1906
1955
  601: ({ data: e }) => `Input definition${typeof e.props.type == "string" ? ' "' + e.props.type + '"' : ""} is missing a schema or component property (${e.name}).`
1907
- }, Et = {
1956
+ }, jt = {
1908
1957
  /**
1909
1958
  * Core warnings:
1910
1959
  */
@@ -1925,46 +1974,46 @@ const jt = {
1925
1974
  * Deprecation warnings:
1926
1975
  */
1927
1976
  800: ({ data: e }) => `${e} is deprecated.`
1928
- }, xl = (e, i) => {
1929
- if (e.code in jt) {
1930
- const t = jt[e.code];
1977
+ }, jl = (e, i) => {
1978
+ if (e.code in Rt) {
1979
+ const t = Rt[e.code];
1931
1980
  e.message = typeof t == "function" ? t(e) : t;
1932
1981
  }
1933
1982
  return i(e);
1934
1983
  };
1935
- $t || bt(xl);
1936
- const Ml = (e, i) => {
1937
- if (e.code in Et) {
1938
- const t = Et[e.code];
1984
+ wt || bt(jl);
1985
+ const Fl = (e, i) => {
1986
+ if (e.code in jt) {
1987
+ const t = jt[e.code];
1939
1988
  e.message = typeof t == "function" ? t(e) : t;
1940
1989
  }
1941
1990
  return i(e);
1942
1991
  };
1943
- $t || yt(Ml);
1944
- $t = !0;
1945
- const jl = typeof window > "u", it = /* @__PURE__ */ new Map();
1946
- function El(e, i) {
1992
+ wt || yt(Fl);
1993
+ wt = !0;
1994
+ const Dl = typeof window > "u", lt = /* @__PURE__ */ new Map();
1995
+ function Tl(e, i) {
1947
1996
  var t;
1948
- !jl || !e || (it.has(e) || it.set(e, /* @__PURE__ */ new Set()), (t = it.get(e)) === null || t === void 0 || t.add(i));
1997
+ !Dl || !e || (lt.has(e) || lt.set(e, /* @__PURE__ */ new Set()), (t = lt.get(e)) === null || t === void 0 || t.add(i));
1949
1998
  }
1950
- const pn = typeof window > "u", Le = {}, he = {};
1951
- let q;
1952
- const se = /* @__PURE__ */ new WeakMap(), Rl = "__raw__", Fl = /[a-zA-Z0-9\-][cC]lass$/;
1953
- function Tl(e, i) {
1954
- const t = Me(null);
1999
+ const mn = typeof window > "u", Me = {}, $e = {};
2000
+ let K;
2001
+ const te = /* @__PURE__ */ new WeakMap(), Bl = "__raw__", zl = /[a-zA-Z0-9\-][cC]lass$/;
2002
+ function Ul(e, i) {
2003
+ const t = ne(null);
1955
2004
  if (e === "get") {
1956
2005
  const l = {};
1957
- return t.value = Dl.bind(null, l), t;
2006
+ return t.value = Kl.bind(null, l), t;
1958
2007
  }
1959
2008
  const n = e.split(".");
1960
- return ae(() => {
1961
- t.value = wt(kn(i) ? i.value : i, n);
2009
+ return ee(() => {
2010
+ t.value = kt(Sn(i) ? i.value : i, n);
1962
2011
  }), t;
1963
2012
  }
1964
- function wt(e, i) {
2013
+ function kt(e, i) {
1965
2014
  if (Array.isArray(e)) {
1966
2015
  for (const l of e) {
1967
- const s = l !== !1 && wt(l, i);
2016
+ const s = l !== !1 && kt(l, i);
1968
2017
  if (s !== void 0)
1969
2018
  return s;
1970
2019
  }
@@ -1986,209 +2035,209 @@ function wt(e, i) {
1986
2035
  }
1987
2036
  return t;
1988
2037
  }
1989
- function Dl(e, i) {
2038
+ function Kl(e, i) {
1990
2039
  if (typeof i != "string")
1991
- return je(650);
1992
- if (i in e || (e[i] = Me(void 0)), e[i].value === void 0) {
2040
+ return Re(650);
2041
+ if (i in e || (e[i] = ne(void 0)), e[i].value === void 0) {
1993
2042
  e[i].value = null;
1994
- const t = Ht(i);
1995
- t && (e[i].value = t.context), ei(i, ({ payload: n }) => {
1996
- e[i].value = Qe(n) ? n.context : n;
2043
+ const t = Jt(i);
2044
+ t && (e[i].value = t.context), ii(i, ({ payload: n }) => {
2045
+ e[i].value = Xe(n) ? n.context : n;
1997
2046
  });
1998
2047
  }
1999
2048
  return e[i].value;
2000
2049
  }
2001
- function Rt(e, i, t) {
2002
- function n($, S) {
2003
- const f = O(J(S.if), { if: !0 }), d = p($, S.then), m = S.else ? p($, S.else) : null;
2004
- return [f, d, m];
2005
- }
2006
- function l($, S) {
2007
- var f, d;
2008
- const m = O(J($.if));
2009
- let v = () => S, g = () => S;
2010
- return typeof $.then == "object" ? g = s($.then, void 0) : typeof $.then == "string" && (!((f = $.then) === null || f === void 0) && f.startsWith("$")) ? g = O(J($.then)) : g = () => $.then, E($, "else") && (typeof $.else == "object" ? v = s($.else) : typeof $.else == "string" && (!((d = $.else) === null || d === void 0) && d.startsWith("$")) ? v = O(J($.else)) : v = () => $.else), () => m() ? g() : v();
2011
- }
2012
- function s($, S, f = {}) {
2013
- const d = new Set(Object.keys($ || {})), m = S ? O(J(S)) : () => ({}), v = [
2050
+ function Ft(e, i, t) {
2051
+ function n($, h) {
2052
+ const c = A(J(h.if), { if: !0 }), d = p($, h.then), m = h.else ? p($, h.else) : null;
2053
+ return [c, d, m];
2054
+ }
2055
+ function l($, h) {
2056
+ var c, d;
2057
+ const m = A(J($.if));
2058
+ let y = () => h, g = () => h;
2059
+ return typeof $.then == "object" ? g = s($.then, void 0) : typeof $.then == "string" && (!((c = $.then) === null || c === void 0) && c.startsWith("$")) ? g = A(J($.then)) : g = () => $.then, j($, "else") && (typeof $.else == "object" ? y = s($.else) : typeof $.else == "string" && (!((d = $.else) === null || d === void 0) && d.startsWith("$")) ? y = A(J($.else)) : y = () => $.else), () => m() ? g() : y();
2060
+ }
2061
+ function s($, h, c = {}) {
2062
+ const d = new Set(Object.keys($ || {})), m = h ? A(J(h)) : () => ({}), y = [
2014
2063
  (g) => {
2015
- const c = m();
2016
- for (const y in c)
2017
- d.has(y) || (g[y] = c[y]);
2064
+ const v = m();
2065
+ for (const w in v)
2066
+ d.has(w) || (g[w] = v[w]);
2018
2067
  }
2019
2068
  ];
2020
2069
  if ($) {
2021
- if (be($))
2022
- return l($, f);
2070
+ if (ve($))
2071
+ return l($, c);
2023
2072
  for (let g in $) {
2024
- const c = $[g];
2025
- let y;
2026
- const b = typeof c == "string";
2027
- g.startsWith(Rl) ? (g = g.substring(7), y = () => c) : b && c.startsWith("$") && c.length > 1 && !(c.startsWith("$reset") && Fl.test(g)) ? y = O(J(c)) : typeof c == "object" && be(c) ? y = l(c, void 0) : typeof c == "object" && _e(c) ? y = s(c) : y = () => c, v.push((_) => {
2028
- _[g] = y();
2073
+ const v = $[g];
2074
+ let w;
2075
+ const f = typeof v == "string";
2076
+ g.startsWith(Bl) ? (g = g.substring(7), w = () => v) : f && v.startsWith("$") && v.length > 1 && !(v.startsWith("$reset") && zl.test(g)) ? w = A(J(v)) : typeof v == "object" && ve(v) ? w = l(v, void 0) : typeof v == "object" && ke(v) ? w = s(v) : w = () => v, y.push((b) => {
2077
+ b[g] = w();
2029
2078
  });
2030
2079
  }
2031
2080
  }
2032
2081
  return () => {
2033
2082
  const g = Array.isArray($) ? [] : {};
2034
- return v.forEach((c) => c(g)), g;
2083
+ return y.forEach((v) => v(g)), g;
2035
2084
  };
2036
2085
  }
2037
- function r($, S) {
2038
- let f = null, d = () => null, m = !1, v = null, g = null, c = null, y = !1;
2039
- const b = Ji(S);
2040
- if (ut(b) ? (f = b.$el, d = b.$el !== "text" ? s(b.attrs, b.bind) : () => null) : ft(b) ? (typeof b.$cmp == "string" ? E($, b.$cmp) ? f = $[b.$cmp] : (f = b.$cmp, y = !0) : f = b.$cmp, d = s(b.props, b.bind)) : be(b) && ([m, v, g] = n($, b)), !be(b) && "if" in b ? m = O(J(b.if)) : !be(b) && f === null && (m = () => !0), "children" in b && b.children)
2041
- if (typeof b.children == "string")
2042
- if (b.children.startsWith("$slots."))
2043
- f = f === "text" ? "slot" : f, v = O(J(b.children));
2044
- else if (b.children.startsWith("$") && b.children.length > 1) {
2045
- const _ = O(J(b.children));
2046
- v = () => String(_());
2086
+ function r($, h) {
2087
+ let c = null, d = () => null, m = !1, y = null, g = null, v = null, w = !1;
2088
+ const f = Xi(h);
2089
+ if (ft(f) ? (c = f.$el, d = f.$el !== "text" ? s(f.attrs, f.bind) : () => null) : ct(f) ? (typeof f.$cmp == "string" ? j($, f.$cmp) ? c = $[f.$cmp] : (c = f.$cmp, w = !0) : c = f.$cmp, d = s(f.props, f.bind)) : ve(f) && ([m, y, g] = n($, f)), !ve(f) && "if" in f ? m = A(J(f.if)) : !ve(f) && c === null && (m = () => !0), "children" in f && f.children)
2090
+ if (typeof f.children == "string")
2091
+ if (f.children.startsWith("$slots."))
2092
+ c = c === "text" ? "slot" : c, y = A(J(f.children));
2093
+ else if (f.children.startsWith("$") && f.children.length > 1) {
2094
+ const b = A(J(f.children));
2095
+ y = () => String(b());
2047
2096
  } else
2048
- v = () => String(b.children);
2049
- else if (Array.isArray(b.children))
2050
- v = p($, b.children);
2097
+ y = () => String(f.children);
2098
+ else if (Array.isArray(f.children))
2099
+ y = p($, f.children);
2051
2100
  else {
2052
- const [_, V, I] = n($, b.children);
2053
- v = (z) => _ && _() ? V && V(z) : I && I(z);
2101
+ const [b, k, I] = n($, f.children);
2102
+ y = (B) => b && b() ? k && k(B) : I && I(B);
2054
2103
  }
2055
- if (ft(b))
2056
- if (v) {
2057
- const _ = v;
2058
- v = (V) => ({
2059
- default(I, z) {
2060
- var P, F, B, Z;
2061
- const H = q;
2062
- z && (q = z), I && ((P = se.get(q)) === null || P === void 0 || P.unshift(I)), V && ((F = se.get(q)) === null || F === void 0 || F.unshift(V));
2063
- const x = _(V);
2064
- return I && ((B = se.get(q)) === null || B === void 0 || B.shift()), V && ((Z = se.get(q)) === null || Z === void 0 || Z.shift()), q = H, x;
2104
+ if (ct(f))
2105
+ if (y) {
2106
+ const b = y;
2107
+ y = (k) => ({
2108
+ default(I, B) {
2109
+ var C, E, O, W;
2110
+ const q = K;
2111
+ B && (K = B), I && ((C = te.get(K)) === null || C === void 0 || C.unshift(I)), k && ((E = te.get(K)) === null || E === void 0 || E.unshift(k));
2112
+ const x = b(k);
2113
+ return I && ((O = te.get(K)) === null || O === void 0 || O.shift()), k && ((W = te.get(K)) === null || W === void 0 || W.shift()), K = q, x;
2065
2114
  }
2066
- }), v.slot = !0;
2115
+ }), y.slot = !0;
2067
2116
  } else
2068
- v = () => ({});
2069
- if ("for" in b && b.for) {
2070
- const _ = b.for.length === 3 ? b.for[2] : b.for[1];
2071
- c = [
2072
- typeof _ == "string" && _.startsWith("$") ? O(J(_)) : () => _,
2073
- b.for[0],
2074
- b.for.length === 3 ? String(b.for[1]) : null
2117
+ y = () => ({});
2118
+ if ("for" in f && f.for) {
2119
+ const b = f.for.length === 3 ? f.for[2] : f.for[1];
2120
+ v = [
2121
+ typeof b == "string" && b.startsWith("$") ? A(J(b)) : () => b,
2122
+ f.for[0],
2123
+ f.for.length === 3 ? String(f.for[1]) : null
2075
2124
  ];
2076
2125
  }
2077
- return [m, f, d, v, g, c, y];
2126
+ return [m, c, d, y, g, v, w];
2078
2127
  }
2079
- function o($, S) {
2080
- const f = $(S), d = q;
2081
- return Object.keys(f).reduce((m, v) => {
2082
- const g = f && f[v];
2083
- return m[v] = (c) => g && g(c, d) || null, m;
2128
+ function o($, h) {
2129
+ const c = $(h), d = K;
2130
+ return Object.keys(c).reduce((m, y) => {
2131
+ const g = c && c[y];
2132
+ return m[y] = (v) => g && g(v, d) || null, m;
2084
2133
  }, {});
2085
2134
  }
2086
- function u($, S) {
2087
- const [f, d, m, v, g, c, y] = r($, S);
2088
- let b = (_) => {
2089
- if (f && d === null && v)
2090
- return f() ? v(_) : g && g(_);
2091
- if (d && (!f || f())) {
2092
- if (d === "text" && v)
2093
- return Cn(String(v()));
2094
- if (d === "slot" && v)
2095
- return v(_);
2096
- const V = y ? R(d) : d, I = v != null && v.slot ? o(v, _) : null;
2097
- return Ae(V, m(), I || (v ? v(_) : []));
2135
+ function u($, h) {
2136
+ const [c, d, m, y, g, v, w] = r($, h);
2137
+ let f = (b) => {
2138
+ if (c && d === null && y)
2139
+ return c() ? y(b) : g && g(b);
2140
+ if (d && (!c || c())) {
2141
+ if (d === "text" && y)
2142
+ return Vn(String(y()));
2143
+ if (d === "slot" && y)
2144
+ return y(b);
2145
+ const k = w ? F(d) : d, I = y != null && y.slot ? o(y, b) : null;
2146
+ return we(k, m(), I || (y ? y(b) : []));
2098
2147
  }
2099
- return typeof g == "function" ? g(_) : g;
2148
+ return typeof g == "function" ? g(b) : g;
2100
2149
  };
2101
- if (c) {
2102
- const _ = b, [V, I, z] = c;
2103
- b = () => {
2104
- const P = V(), F = Number.isFinite(P) ? Array(Number(P)).fill(0).map((x, W) => W) : P, B = [];
2105
- if (typeof F != "object")
2150
+ if (v) {
2151
+ const b = f, [k, I, B] = v;
2152
+ f = () => {
2153
+ const C = k(), E = Number.isFinite(C) ? Array(Number(C)).fill(0).map((x, N) => N) : C, O = [];
2154
+ if (typeof E != "object")
2106
2155
  return null;
2107
- const Z = se.get(q) || [], H = Array.isArray(F);
2108
- for (const x in F) {
2109
- if (H && x in Array.prototype)
2156
+ const W = te.get(K) || [], q = Array.isArray(E);
2157
+ for (const x in E) {
2158
+ if (q && x in Array.prototype)
2110
2159
  continue;
2111
- const W = Object.defineProperty({
2112
- ...Z.reduce((ke, le) => ke.__idata ? { ...ke, ...le } : le, {}),
2113
- [I]: F[x],
2114
- ...z !== null ? { [z]: H ? Number(x) : x } : {}
2160
+ const N = Object.defineProperty({
2161
+ ...W.reduce((Le, re) => Le.__idata ? { ...Le, ...re } : re, {}),
2162
+ [I]: E[x],
2163
+ ...B !== null ? { [B]: q ? Number(x) : x } : {}
2115
2164
  }, "__idata", { enumerable: !1, value: !0 });
2116
- Z.unshift(W), B.push(_.bind(null, W)()), Z.shift();
2165
+ W.unshift(N), O.push(b.bind(null, N)()), W.shift();
2117
2166
  }
2118
- return B;
2167
+ return O;
2119
2168
  };
2120
2169
  }
2121
- return b;
2170
+ return f;
2122
2171
  }
2123
- function p($, S) {
2124
- if (Array.isArray(S)) {
2125
- const d = S.map(u.bind(null, $));
2126
- return (m) => d.map((v) => v(m));
2172
+ function p($, h) {
2173
+ if (Array.isArray(h)) {
2174
+ const d = h.map(u.bind(null, $));
2175
+ return (m) => d.map((y) => y(m));
2127
2176
  }
2128
- const f = u($, S);
2129
- return (d) => f(d);
2177
+ const c = u($, h);
2178
+ return (d) => c(d);
2130
2179
  }
2131
- const h = [];
2132
- function O($, S = {}) {
2133
- const f = /* @__PURE__ */ new WeakMap();
2134
- return h.push((d, m) => {
2135
- f.set(m, $.provide((v) => d(v, S)));
2136
- }), () => f.get(q)();
2180
+ const _ = [];
2181
+ function A($, h = {}) {
2182
+ const c = /* @__PURE__ */ new WeakMap();
2183
+ return _.push((d, m) => {
2184
+ c.set(m, $.provide((y) => d(y, h)));
2185
+ }), () => c.get(K)();
2137
2186
  }
2138
- function w($, S) {
2139
- var f;
2187
+ function Z($, h) {
2188
+ var c;
2140
2189
  t ?? (t = JSON.stringify(i));
2141
- const [d, m] = E(Le, t) ? Le[t] : [p(e, i), h];
2142
- return pn || ((f = he[t]) !== null && f !== void 0 || (he[t] = 0), he[t]++, Le[t] = [d, m]), m.forEach((v) => {
2143
- v($, S);
2144
- }), () => (q = S, d());
2190
+ const [d, m] = j(Me, t) ? Me[t] : [p(e, i), _];
2191
+ return mn || ((c = $e[t]) !== null && c !== void 0 || ($e[t] = 0), $e[t]++, Me[t] = [d, m]), m.forEach((y) => {
2192
+ y($, h);
2193
+ }), () => (K = h, d());
2145
2194
  }
2146
- return w;
2195
+ return Z;
2147
2196
  }
2148
- function dn(e, i) {
2149
- const t = se.get(q) || [];
2197
+ function bn(e, i) {
2198
+ const t = te.get(K) || [];
2150
2199
  let n;
2151
- return t.length && (n = wt(t, e.split("."))), n === void 0 ? i : n;
2200
+ return t.length && (n = kt(t, e.split("."))), n === void 0 ? i : n;
2152
2201
  }
2153
- function Bl(e, i) {
2202
+ function Wl(e, i) {
2154
2203
  return new Proxy(e, {
2155
2204
  get(...t) {
2156
2205
  let n;
2157
2206
  const l = t[1];
2158
2207
  if (typeof l == "string") {
2159
- const s = q;
2160
- q = i, n = dn(l, void 0), q = s;
2208
+ const s = K;
2209
+ K = i, n = bn(l, void 0), K = s;
2161
2210
  }
2162
2211
  return n !== void 0 ? n : Reflect.get(...t);
2163
2212
  }
2164
2213
  });
2165
2214
  }
2166
- function Ft(e, i, t) {
2215
+ function Dt(e, i, t) {
2167
2216
  return e((n, l = {}) => n.reduce((s, r) => {
2168
2217
  if (r.startsWith("slots.")) {
2169
- const o = r.substring(6), u = () => i.slots && E(i.slots, o) && typeof i.slots[o] == "function";
2218
+ const o = r.substring(6), u = () => i.slots && j(i.slots, o) && typeof i.slots[o] == "function";
2170
2219
  if (l.if)
2171
2220
  s[r] = u;
2172
2221
  else if (i.slots) {
2173
- const p = Bl(i, t);
2222
+ const p = Wl(i, t);
2174
2223
  s[r] = () => u() ? i.slots[o](p) : null;
2175
2224
  }
2176
2225
  } else {
2177
- const o = Tl(r, i);
2178
- s[r] = () => dn(r, o.value);
2226
+ const o = Ul(r, i);
2227
+ s[r] = () => bn(r, o.value);
2179
2228
  }
2180
2229
  return s;
2181
2230
  }, {}), t);
2182
2231
  }
2183
2232
  function Tt(e, i, t) {
2184
- if (i ?? (i = JSON.stringify(e)), he[i]--, he[i] === 0) {
2185
- delete he[i];
2186
- const [, n] = Le[i];
2187
- delete Le[i], n.length = 0;
2233
+ if (i ?? (i = JSON.stringify(e)), $e[i]--, $e[i] === 0) {
2234
+ delete $e[i];
2235
+ const [, n] = Me[i];
2236
+ delete Me[i], n.length = 0;
2188
2237
  }
2189
- se.delete(t);
2238
+ te.delete(t);
2190
2239
  }
2191
- const mn = M({
2240
+ const yn = M({
2192
2241
  name: "FormKitSchema",
2193
2242
  props: {
2194
2243
  schema: {
@@ -2210,138 +2259,70 @@ const mn = M({
2210
2259
  },
2211
2260
  setup(e, i) {
2212
2261
  var t;
2213
- const n = at();
2262
+ const n = st();
2214
2263
  let l = {};
2215
- se.set(l, []);
2216
- let s = Rt(e.library, e.schema, e.memoKey), r, o;
2217
- pn || ye(() => e.schema, (p, h) => {
2218
- var O;
2219
- const w = l;
2220
- l = {}, s = Rt(e.library, e.schema, e.memoKey), r = Ft(s, o, l), p === h && ((O = n == null ? void 0 : n.proxy) === null || O === void 0 ? void 0 : O.$forceUpdate)(), Tt(e.schema, e.memoKey, w);
2221
- }, { deep: !0 }), ae(() => {
2264
+ te.set(l, []);
2265
+ let s = Ft(e.library, e.schema, e.memoKey), r, o;
2266
+ mn || pe(() => e.schema, (p, _) => {
2267
+ var A;
2268
+ const Z = l;
2269
+ l = {}, te.set(l, []), s = Ft(e.library, e.schema, e.memoKey), r = Dt(s, o, l), p === _ && ((A = n == null ? void 0 : n.proxy) === null || A === void 0 ? void 0 : A.$forceUpdate)(), Tt(e.schema, e.memoKey, Z);
2270
+ }, { deep: !0 }), ee(() => {
2222
2271
  var p;
2223
- o = Object.assign(yn((p = e.data) !== null && p !== void 0 ? p : {}), {
2272
+ o = Object.assign(_n((p = e.data) !== null && p !== void 0 ? p : {}), {
2224
2273
  slots: i.slots
2225
- }), i.slots, r = Ft(s, o, l);
2274
+ }), i.slots, r = Dt(s, o, l);
2226
2275
  });
2227
2276
  function u() {
2228
2277
  Tt(e.schema, e.memoKey, l), o.node && o.node.destroy(), o.slots = null, o = null, r = null;
2229
2278
  }
2230
- return vn(u), El((t = at()) === null || t === void 0 ? void 0 : t.appContext.app, u), () => r ? r() : null;
2231
- }
2232
- }), zl = {
2233
- config: {
2234
- type: Object,
2235
- default: {}
2236
- },
2237
- classes: {
2238
- type: Object,
2239
- required: !1
2240
- },
2241
- delay: {
2242
- type: Number,
2243
- required: !1
2244
- },
2245
- dynamic: {
2246
- type: Boolean,
2247
- required: !1
2248
- },
2249
- errors: {
2250
- type: Array,
2251
- default: []
2252
- },
2253
- inputErrors: {
2254
- type: Object,
2255
- default: () => ({})
2256
- },
2257
- index: {
2258
- type: Number,
2259
- required: !1
2260
- },
2261
- id: {
2262
- type: String,
2263
- required: !1
2264
- },
2265
- modelValue: {
2266
- required: !1
2267
- },
2268
- name: {
2269
- type: String,
2270
- required: !1
2271
- },
2272
- parent: {
2273
- type: Object,
2274
- required: !1
2275
- },
2276
- plugins: {
2277
- type: Array,
2278
- default: []
2279
- },
2280
- sectionsSchema: {
2281
- type: Object,
2282
- default: {}
2283
- },
2284
- sync: {
2285
- type: Boolean,
2286
- required: !1
2287
- },
2288
- type: {
2289
- type: [String, Object],
2290
- default: "text"
2291
- },
2292
- validation: {
2293
- type: [String, Array],
2294
- required: !1
2295
- },
2296
- validationMessages: {
2297
- type: Object,
2298
- required: !1
2299
- },
2300
- validationRules: {
2301
- type: Object,
2302
- required: !1
2303
- },
2304
- validationLabel: {
2305
- type: [String, Function],
2306
- required: !1
2279
+ return gn(u), Tl((t = st()) === null || t === void 0 ? void 0 : t.appContext.app, u), () => r ? r() : null;
2307
2280
  }
2308
- }, Ul = zl, Kl = typeof window > "u", Ze = Symbol("FormKitParent");
2309
- M({
2310
- props: Ul,
2311
- emits: {
2312
- /* eslint-disable @typescript-eslint/no-unused-vars */
2313
- input: (e, i) => !0,
2314
- inputRaw: (e, i) => !0,
2315
- "update:modelValue": (e) => !0,
2316
- node: (e) => !!e,
2317
- submit: (e, i) => !0,
2318
- submitRaw: (e, i) => !0,
2319
- submitInvalid: (e) => !0
2320
- /* eslint-enable @typescript-eslint/no-unused-vars */
2321
- },
2322
- inheritAttrs: !1,
2323
- setup(e, i) {
2324
- const t = Wl(e, i);
2325
- if (t.props.definition || N(600, t), t.props.definition.component)
2326
- return () => {
2327
- var o;
2328
- return Ae((o = t.props.definition) === null || o === void 0 ? void 0 : o.component, {
2329
- context: t.context
2330
- }, { ...i.slots });
2331
- };
2332
- const n = Me([]);
2333
- let l = t.props.definition.schemaMemoKey;
2334
- const s = () => {
2335
- var o, u;
2336
- const p = (u = (o = t.props) === null || o === void 0 ? void 0 : o.definition) === null || u === void 0 ? void 0 : u.schema;
2337
- p || N(601, t), typeof p == "function" ? (n.value = p({ ...e.sectionsSchema }), (l && e.sectionsSchema || "memoKey" in p && typeof p.memoKey == "string") && (l = (l ?? (p == null ? void 0 : p.memoKey)) + JSON.stringify(e.sectionsSchema))) : n.value = p;
2281
+ }), Nl = typeof window > "u", Je = Symbol("FormKitParent");
2282
+ function Hl(e, i) {
2283
+ const t = Jl(e, i);
2284
+ if (t.props.definition || H(600, t), t.props.definition.component)
2285
+ return () => {
2286
+ var o;
2287
+ return we((o = t.props.definition) === null || o === void 0 ? void 0 : o.component, {
2288
+ context: t.context
2289
+ }, { ...i.slots });
2338
2290
  };
2339
- s(), Kl || t.on("schema", s), i.emit("node", t);
2340
- const r = t.props.definition.library;
2341
- return i.expose({ node: t }), () => Ae(mn, { schema: n.value, data: t.context, library: r, memoKey: l }, { ...i.slots });
2291
+ const n = ne([]);
2292
+ let l = t.props.definition.schemaMemoKey;
2293
+ const s = () => {
2294
+ var o, u;
2295
+ const p = (u = (o = t.props) === null || o === void 0 ? void 0 : o.definition) === null || u === void 0 ? void 0 : u.schema;
2296
+ p || H(601, t), typeof p == "function" ? (n.value = p({ ...e.sectionsSchema }), (l && e.sectionsSchema || "memoKey" in p && typeof p.memoKey == "string") && (l = (l ?? (p == null ? void 0 : p.memoKey)) + JSON.stringify(e.sectionsSchema))) : n.value = p;
2297
+ };
2298
+ s(), Nl || t.on("schema", () => {
2299
+ l += "♻️", s();
2300
+ }), i.emit("node", t);
2301
+ const r = t.props.definition.library;
2302
+ return i.expose({ node: t }), () => we(yn, { schema: n.value, data: t.context, library: r, memoKey: l }, { ...i.slots });
2303
+ }
2304
+ M(Hl, {
2305
+ props: Ol,
2306
+ inheritAttrs: !1
2307
+ });
2308
+ const vn = Symbol();
2309
+ M((e, i) => {
2310
+ const t = ne(null), n = ne(!1), l = ne(void 0), s = pe(t, (o) => {
2311
+ let u = o, p = null;
2312
+ for (; u = u == null ? void 0 : u.parentNode; )
2313
+ if (p = u, p instanceof ShadowRoot || p instanceof Document) {
2314
+ r(p);
2315
+ break;
2316
+ }
2317
+ s(), n.value = !0;
2318
+ });
2319
+ zt(vn, l);
2320
+ function r(o) {
2321
+ l.value = o;
2342
2322
  }
2323
+ return () => n.value && i.slots.default ? i.slots.default() : we("template", { ref: t });
2343
2324
  });
2344
- const bn = Symbol.for("FormKitOptions"), lt = [
2325
+ const hn = Symbol.for("FormKitOptions"), ql = typeof window < "u", at = [
2345
2326
  "help",
2346
2327
  "label",
2347
2328
  "ignore",
@@ -2354,140 +2335,149 @@ const bn = Symbol.for("FormKitOptions"), lt = [
2354
2335
  "suffixIcon",
2355
2336
  /^[a-zA-Z-]+(?:-icon|Icon)$/
2356
2337
  ];
2357
- function Dt(e, i) {
2338
+ function Bt(e, i) {
2358
2339
  i.classes && Object.keys(i.classes).forEach((t) => {
2359
- typeof t == "string" && (e.props[`_${t}Class`] = i.classes[t], pt(i.classes[t]) && t === "inner" && Object.values(i.classes[t]));
2340
+ typeof t == "string" && (e.props[`_${t}Class`] = i.classes[t], xe(i.classes[t]) && t === "inner" && Object.values(i.classes[t]));
2360
2341
  });
2361
2342
  }
2362
- function ql(e) {
2343
+ function Zl(e) {
2363
2344
  return e ? ["Submit", "SubmitRaw", "SubmitInvalid"].reduce((t, n) => {
2364
2345
  const l = `on${n}`;
2365
2346
  return l in e && typeof e[l] == "function" && (t[l] = e[l]), t;
2366
2347
  }, {}) : {};
2367
2348
  }
2368
- function Wl(e, i, t = {}) {
2369
- const n = Object.assign({}, Oe(bn) || {}, t), l = at(), s = ql(l == null ? void 0 : l.vnode.props), r = ["modelValue", "model-value"].some((c) => {
2370
- var y;
2371
- return c in ((y = l == null ? void 0 : l.vnode.props) !== null && y !== void 0 ? y : {});
2349
+ function Jl(e, i, t = {}) {
2350
+ var n;
2351
+ const l = Object.assign({}, he(hn) || {}, t), s = he(vn, ne(ql ? document : void 0)), r = st(), o = Zl(r == null ? void 0 : r.vnode.props), u = ["modelValue", "model-value"].some((f) => {
2352
+ var b;
2353
+ return f in ((b = r == null ? void 0 : r.vnode.props) !== null && b !== void 0 ? b : {});
2372
2354
  });
2373
- let o = !1;
2374
- hn(() => {
2375
- o = !0;
2355
+ let p = !1;
2356
+ $n(() => {
2357
+ p = !0;
2376
2358
  });
2377
- const u = e.modelValue !== void 0 ? e.modelValue : pe(i.attrs.value);
2378
- function p() {
2379
- const c = {
2380
- ...me(e),
2381
- ...s,
2359
+ const _ = e.modelValue !== void 0 ? e.modelValue : me(i.attrs.value);
2360
+ function A() {
2361
+ var f;
2362
+ const b = {
2363
+ ...ye(e),
2364
+ ...o,
2365
+ type: (f = e.type) !== null && f !== void 0 ? f : "text",
2366
+ __root: s.value,
2382
2367
  __slots: i.slots
2383
- }, y = Ct(me(i.attrs), lt);
2384
- y.key || (y.key = Je()), c.attrs = y;
2385
- const b = St(me(i.attrs), lt);
2386
- for (const V in b)
2387
- c[Fe(V)] = b[V];
2388
- const _ = { props: {} };
2389
- return Dt(_, e), Object.assign(c, _.props), typeof c.type != "string" && (c.definition = c.type, delete c.type), c;
2390
- }
2391
- const h = p(), O = h.ignore ? null : e.parent || Oe(Ze, null), w = Hi(Ye(n || {}, {
2368
+ }, k = Ct(ye(i.attrs), at);
2369
+ k.key || (k.key = Ye()), b.attrs = k;
2370
+ const I = St(ye(i.attrs), at);
2371
+ for (const C in I)
2372
+ b[De(C)] = I[C];
2373
+ const B = { props: {} };
2374
+ return Bt(B, e), Object.assign(b, B.props), typeof b.type != "string" && (b.definition = b.type, delete b.type), b;
2375
+ }
2376
+ const Z = A(), $ = Z.ignore ? null : e.parent || he(Je, null), h = Yi(Qe(l || {}, {
2392
2377
  name: e.name || void 0,
2393
- value: u,
2394
- parent: O,
2395
- plugins: (n.plugins || []).concat(e.plugins),
2396
- config: e.config,
2397
- props: h,
2378
+ value: _,
2379
+ parent: $,
2380
+ plugins: (l.plugins || []).concat((n = e.plugins) !== null && n !== void 0 ? n : []),
2381
+ config: e.config || {},
2382
+ props: Z,
2398
2383
  index: e.index,
2399
- sync: e.sync || e.dynamic
2384
+ sync: !!Y(i.attrs.sync || i.attrs.dynamic)
2400
2385
  }, !1, !0));
2401
- w.props.definition || N(600, w);
2402
- const $ = Me(new Set(w.props.definition.props || []));
2403
- w.on("added-props", ({ payload: c }) => {
2404
- Array.isArray(c) && c.forEach((y) => $.value.add(y));
2386
+ h.props.definition || H(600, h);
2387
+ const c = ne(new Set(h.props.definition.props || []));
2388
+ h.on("added-props", ({ payload: f }) => {
2389
+ Array.isArray(f) && f.forEach((b) => c.value.add(b));
2405
2390
  });
2406
- const S = j(() => lt.concat([...$.value]).reduce((c, y) => (typeof y == "string" ? (c.push(Fe(y)), c.push(Ut(y))) : c.push(y), c), []));
2407
- ae(() => Dt(w, e));
2408
- const f = me(e);
2409
- for (const c in f)
2410
- ye(() => e[c], () => {
2411
- e[c] !== void 0 && (w.props[c] = e[c]);
2391
+ const d = R(() => at.concat([...c.value]).reduce((f, b) => (typeof b == "string" ? (f.push(De(b)), f.push(Wt(b))) : f.push(b), f), []));
2392
+ ee(() => Bt(h, e));
2393
+ const m = ye(e);
2394
+ for (const f in m)
2395
+ pe(() => e[f], () => {
2396
+ e[f] !== void 0 && (h.props[f] = e[f]);
2412
2397
  });
2413
- const d = /* @__PURE__ */ new Set(), m = me(i.attrs);
2414
- ae(() => {
2415
- v(St(m, S.value));
2398
+ ee(() => {
2399
+ h.props.__root = s.value;
2400
+ });
2401
+ const y = /* @__PURE__ */ new Set(), g = ye(i.attrs);
2402
+ ee(() => {
2403
+ v(St(g, d.value));
2416
2404
  });
2417
- function v(c) {
2418
- d.forEach((y) => {
2419
- y(), d.delete(y);
2405
+ function v(f) {
2406
+ y.forEach((b) => {
2407
+ b(), y.delete(b);
2420
2408
  });
2421
- for (const y in c) {
2422
- const b = Fe(y);
2423
- d.add(ye(() => i.attrs[y], () => {
2424
- w.props[b] = i.attrs[y];
2409
+ for (const b in f) {
2410
+ const k = De(b);
2411
+ y.add(pe(() => i.attrs[b], () => {
2412
+ h.props[k] = i.attrs[b];
2425
2413
  }));
2426
2414
  }
2427
2415
  }
2428
- if (ae(() => {
2429
- const c = Ct(me(i.attrs), S.value);
2430
- "multiple" in c && (c.multiple = Y(c.multiple)), typeof c.onBlur == "function" && (c.onBlur = jn(c.onBlur)), w.props.attrs = Object.assign({}, w.props.attrs || {}, c);
2431
- }), ae(() => {
2432
- const c = e.errors.map((y) => re({
2433
- key: dt(y),
2416
+ if (ee(() => {
2417
+ const f = Ct(ye(i.attrs), d.value);
2418
+ "multiple" in f && (f.multiple = Y(f.multiple)), typeof f.onBlur == "function" && (f.onBlur = Fn(f.onBlur)), h.props.attrs = Object.assign({}, h.props.attrs || {}, f);
2419
+ }), ee(() => {
2420
+ var f;
2421
+ const b = ((f = e.errors) !== null && f !== void 0 ? f : []).map((k) => ue({
2422
+ key: dt(k),
2434
2423
  type: "error",
2435
- value: y,
2424
+ value: k,
2436
2425
  meta: { source: "prop" }
2437
2426
  }));
2438
- w.store.apply(c, (y) => y.type === "error" && y.meta.source === "prop");
2439
- }), w.type !== "input") {
2440
- const c = `${w.name}-prop`;
2441
- ae(() => {
2442
- const y = Object.keys(e.inputErrors);
2443
- y.length || w.clearErrors(!0, c);
2444
- const b = y.reduce((_, V) => {
2445
- let I = e.inputErrors[V];
2446
- return typeof I == "string" && (I = [I]), Array.isArray(I) && (_[V] = I.map((z) => re({
2447
- key: z,
2427
+ h.store.apply(b, (k) => k.type === "error" && k.meta.source === "prop");
2428
+ }), h.type !== "input") {
2429
+ const f = `${h.name}-prop`;
2430
+ ee(() => {
2431
+ var b;
2432
+ const k = (b = e.inputErrors) !== null && b !== void 0 ? b : {}, I = Object.keys(k);
2433
+ I.length || h.clearErrors(!0, f);
2434
+ const B = I.reduce((C, E) => {
2435
+ let O = k[E];
2436
+ return typeof O == "string" && (O = [O]), Array.isArray(O) && (C[E] = O.map((W) => ue({
2437
+ key: W,
2448
2438
  type: "error",
2449
- value: z,
2450
- meta: { source: c }
2451
- }))), _;
2439
+ value: W,
2440
+ meta: { source: f }
2441
+ }))), C;
2452
2442
  }, {});
2453
- w.store.apply(b, (_) => _.type === "error" && _.meta.source === c);
2443
+ h.store.apply(B, (C) => C.type === "error" && C.meta.source === f);
2454
2444
  });
2455
2445
  }
2456
- ae(() => Object.assign(w.config, e.config)), w.type !== "input" && _n(Ze, w);
2457
- let g;
2458
- return w.on("modelUpdated", () => {
2459
- var c, y;
2460
- i.emit("inputRaw", (c = w.context) === null || c === void 0 ? void 0 : c.value, w), o && i.emit("input", (y = w.context) === null || y === void 0 ? void 0 : y.value, w), r && w.context && (g = pe(w.value), i.emit("update:modelValue", Pn(w.value)));
2461
- }), r && (ye(gn(e, "modelValue"), (c) => {
2462
- ue(g, c) || w.input(c, !1);
2463
- }, { deep: !0 }), w.value !== u && w.emit("modelUpdated")), $n(() => w.destroy()), w;
2464
- }
2465
- let Nl = 1;
2466
- function Hl(e) {
2446
+ ee(() => Object.assign(h.config, e.config)), h.type !== "input" && zt(Je, h);
2447
+ let w;
2448
+ return h.on("modelUpdated", () => {
2449
+ var f, b;
2450
+ i.emit("inputRaw", (f = h.context) === null || f === void 0 ? void 0 : f.value, h), p && i.emit("input", (b = h.context) === null || b === void 0 ? void 0 : b.value, h), u && h.context && (w = me(h.value), i.emit("update:modelValue", En(h.value)));
2451
+ }), u && (pe(wn(e, "modelValue"), (f) => {
2452
+ fe(w, f) || h.input(f, !1);
2453
+ }, { deep: !0 }), h.value !== _ && h.emit("modelUpdated")), kn(() => h.destroy()), h;
2454
+ }
2455
+ let Yl = 1;
2456
+ function Ql(e) {
2467
2457
  return typeof e == "function" && e.length === 2 || typeof e == "object" && !Array.isArray(e) && !("$el" in e) && !("$cmp" in e) && !("if" in e);
2468
2458
  }
2469
- function D(e, i = {}) {
2459
+ function T(e, i = {}) {
2470
2460
  const t = {
2471
2461
  type: "input",
2472
2462
  ...i
2473
2463
  };
2474
2464
  let n;
2475
- if (Hl(e)) {
2476
- const l = `SchemaComponent${Nl++}`;
2477
- n = k("input", () => ({
2465
+ if (Ql(e)) {
2466
+ const l = `SchemaComponent${Yl++}`;
2467
+ n = S("input", () => ({
2478
2468
  $cmp: l,
2479
2469
  props: {
2480
2470
  context: "$node.context"
2481
2471
  }
2482
- })), t.library = { [l]: wn(e) };
2472
+ })), t.library = { [l]: Cn(e) };
2483
2473
  } else
2484
- typeof e == "function" ? n = e : n = k("input", () => pe(e));
2485
- return t.schema = Il(n || "Schema undefined"), t.schemaMemoKey || (t.schemaMemoKey = `${Math.random()}`), t;
2474
+ typeof e == "function" ? n = e : n = S("input", () => me(e));
2475
+ return t.schema = Al(n || "Schema undefined"), t.schemaMemoKey || (t.schemaMemoKey = `${Math.random()}`), t;
2486
2476
  }
2487
- const Zl = k("messages", () => ({
2477
+ const Xl = S("messages", () => ({
2488
2478
  $el: "ul",
2489
2479
  if: "$fns.length($messages)"
2490
- })), Jl = k("message", () => ({
2480
+ })), Gl = S("message", () => ({
2491
2481
  $el: "li",
2492
2482
  for: ["message", "$messages"],
2493
2483
  attrs: {
@@ -2495,7 +2485,7 @@ const Zl = k("messages", () => ({
2495
2485
  id: "$id + '-' + $message.key",
2496
2486
  "data-message-type": "$message.type"
2497
2487
  }
2498
- })), Yl = Zl(Jl("$message.value"));
2488
+ })), ea = Xl(Gl("$message.value"));
2499
2489
  M({
2500
2490
  props: {
2501
2491
  node: {
@@ -2512,22 +2502,22 @@ M({
2512
2502
  }
2513
2503
  },
2514
2504
  setup(e, i) {
2515
- const t = j(() => e.node || Oe(Ze, void 0));
2516
- ye(t, () => {
2505
+ const t = R(() => e.node || he(Je, void 0));
2506
+ pe(t, () => {
2517
2507
  var s;
2518
2508
  !((s = t.value) === null || s === void 0) && s.context && !Y(e.defaultPosition) && (t.value.context.defaultMessagePlacement = !1);
2519
2509
  }, { immediate: !0 });
2520
- const n = Yl(e.sectionsSchema || {}), l = j(() => {
2521
- var s, r, o, u, p, h;
2510
+ const n = ea(e.sectionsSchema || {}), l = R(() => {
2511
+ var s, r, o, u, p, _;
2522
2512
  return {
2523
2513
  messages: ((r = (s = t.value) === null || s === void 0 ? void 0 : s.context) === null || r === void 0 ? void 0 : r.messages) || {},
2524
2514
  fns: ((u = (o = t.value) === null || o === void 0 ? void 0 : o.context) === null || u === void 0 ? void 0 : u.fns) || {},
2525
- classes: ((h = (p = t.value) === null || p === void 0 ? void 0 : p.context) === null || h === void 0 ? void 0 : h.classes) || {}
2515
+ classes: ((_ = (p = t.value) === null || p === void 0 ? void 0 : p.context) === null || _ === void 0 ? void 0 : _.classes) || {}
2526
2516
  };
2527
2517
  });
2528
2518
  return () => {
2529
2519
  var s;
2530
- return !((s = t.value) === null || s === void 0) && s.context ? Ae(mn, { schema: n, data: l.value }, { ...i.slots }) : null;
2520
+ return !((s = t.value) === null || s === void 0) && s.context ? we(yn, { schema: n, data: l.value }, { ...i.slots }) : null;
2531
2521
  };
2532
2522
  }
2533
2523
  });
@@ -2549,7 +2539,7 @@ M({
2549
2539
  },
2550
2540
  setup(e) {
2551
2541
  var i, t;
2552
- const n = Me(void 0), l = Oe(bn, {}), s = Oe(Ze, null);
2542
+ const n = ne(void 0), l = he(hn, {}), s = he(Je, null);
2553
2543
  let r;
2554
2544
  function o() {
2555
2545
  if (!r || typeof r != "function")
@@ -2560,24 +2550,24 @@ M({
2560
2550
  }) : n.value = u;
2561
2551
  }
2562
2552
  if (e.iconLoader && typeof e.iconLoader == "function")
2563
- r = nt(e.iconLoader);
2553
+ r = it(e.iconLoader);
2564
2554
  else if (s && (!((i = s.props) === null || i === void 0) && i.iconLoader))
2565
- r = nt(s.props.iconLoader);
2555
+ r = it(s.props.iconLoader);
2566
2556
  else if (e.iconLoaderUrl && typeof e.iconLoaderUrl == "function")
2567
- r = nt(r, e.iconLoaderUrl);
2557
+ r = it(r, e.iconLoaderUrl);
2568
2558
  else {
2569
2559
  const u = (t = l == null ? void 0 : l.plugins) === null || t === void 0 ? void 0 : t.find((p) => typeof p.iconHandler == "function");
2570
2560
  u && (r = u.iconHandler);
2571
2561
  }
2572
- return ye(() => e.icon, () => {
2562
+ return pe(() => e.icon, () => {
2573
2563
  o();
2574
- }, { immediate: !0 }), () => e.icon && n.value ? Ae("span", {
2564
+ }, { immediate: !0 }), () => e.icon && n.value ? we("span", {
2575
2565
  class: "formkit-icon",
2576
2566
  innerHTML: n.value
2577
2567
  }) : null;
2578
2568
  }
2579
2569
  });
2580
- const Ql = /* @__PURE__ */ M({
2570
+ const ta = /* @__PURE__ */ M({
2581
2571
  __name: "PrimeCalendar",
2582
2572
  props: {
2583
2573
  context: Object
@@ -2590,13 +2580,13 @@ const Ql = /* @__PURE__ */ M({
2590
2580
  function s(o) {
2591
2581
  t == null || t.node.input(o);
2592
2582
  }
2593
- const r = j(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2583
+ const r = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2594
2584
  return (o, u) => {
2595
- const p = R("Calendar");
2596
- return L(), A("div", null, [
2597
- T(p, {
2585
+ const p = F("Calendar");
2586
+ return L(), P("div", null, [
2587
+ D(p, {
2598
2588
  modelValue: a(t)._value,
2599
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
2589
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
2600
2590
  "input-id": i.context.id,
2601
2591
  disabled: a(n)._disabled ?? !1,
2602
2592
  readonly: a(n)._readonly ?? !1,
@@ -2652,13 +2642,13 @@ const Ql = /* @__PURE__ */ M({
2652
2642
  ]);
2653
2643
  };
2654
2644
  }
2655
- }), Xl = {
2645
+ }), na = {
2656
2646
  key: 0,
2657
2647
  class: "formkit-prime-left"
2658
- }, Gl = {
2648
+ }, ia = {
2659
2649
  key: 1,
2660
2650
  class: "formkit-prime-right"
2661
- }, ea = /* @__PURE__ */ M({
2651
+ }, la = /* @__PURE__ */ M({
2662
2652
  __name: "PrimeCheckbox",
2663
2653
  props: {
2664
2654
  context: Object
@@ -2669,12 +2659,12 @@ const Ql = /* @__PURE__ */ M({
2669
2659
  var o;
2670
2660
  t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
2671
2661
  }
2672
- const s = j(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2662
+ const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2673
2663
  return (r, o) => {
2674
- const u = R("Checkbox");
2675
- return L(), A("div", null, [
2676
- a(t).attrs.labelLeft ? (L(), A("span", Xl, ce(a(t).attrs.labelLeft), 1)) : oe("", !0),
2677
- T(u, {
2664
+ const u = F("Checkbox");
2665
+ return L(), P("div", null, [
2666
+ a(t).attrs.labelLeft ? (L(), P("span", na, de(a(t).attrs.labelLeft), 1)) : oe("", !0),
2667
+ D(u, {
2678
2668
  modelValue: a(t)._value,
2679
2669
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
2680
2670
  "input-id": a(t).id,
@@ -2691,11 +2681,11 @@ const Ql = /* @__PURE__ */ M({
2691
2681
  pt: a(n).pt,
2692
2682
  onInput: l
2693
2683
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "binary", "true-value", "false-value", "pt"]),
2694
- a(t).attrs.labelRight ? (L(), A("span", Gl, ce(a(t).attrs.labelRight), 1)) : oe("", !0)
2684
+ a(t).attrs.labelRight ? (L(), P("span", ia, de(a(t).attrs.labelRight), 1)) : oe("", !0)
2695
2685
  ]);
2696
2686
  };
2697
2687
  }
2698
- }), ta = /* @__PURE__ */ M({
2688
+ }), aa = /* @__PURE__ */ M({
2699
2689
  __name: "PrimeChips",
2700
2690
  props: {
2701
2691
  context: Object
@@ -2706,11 +2696,11 @@ const Ql = /* @__PURE__ */ M({
2706
2696
  var o;
2707
2697
  t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
2708
2698
  }
2709
- const s = j(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2699
+ const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2710
2700
  return (r, o) => {
2711
- const u = R("Chips");
2712
- return L(), A("div", null, [
2713
- T(u, {
2701
+ const u = F("Chips");
2702
+ return L(), P("div", null, [
2703
+ D(u, {
2714
2704
  modelValue: a(t)._value,
2715
2705
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
2716
2706
  "input-id": a(t).id,
@@ -2733,7 +2723,7 @@ const Ql = /* @__PURE__ */ M({
2733
2723
  ]);
2734
2724
  };
2735
2725
  }
2736
- }), na = /* @__PURE__ */ M({
2726
+ }), sa = /* @__PURE__ */ M({
2737
2727
  __name: "PrimeColorPicker",
2738
2728
  props: {
2739
2729
  context: Object
@@ -2745,14 +2735,14 @@ const Ql = /* @__PURE__ */ M({
2745
2735
  t == null || t.node.input((r = i.context) == null ? void 0 : r._value);
2746
2736
  }
2747
2737
  return (s, r) => {
2748
- const o = R("ColorPicker");
2749
- return L(), A("div", null, [
2750
- T(o, {
2738
+ const o = F("ColorPicker");
2739
+ return L(), P("div", null, [
2740
+ D(o, {
2751
2741
  modelValue: a(t)._value,
2752
2742
  "onUpdate:modelValue": r[0] || (r[0] = (u) => a(t)._value = u),
2753
2743
  disabled: a(n)._disabled ?? !1,
2754
2744
  readonly: a(n)._readonly ?? !1,
2755
- style: de(a(n).style),
2745
+ style: be(a(n).style),
2756
2746
  "panel-class": a(n).class,
2757
2747
  tabindex: a(n).tabindex,
2758
2748
  "aria-label": a(n).ariaLabel,
@@ -2766,7 +2756,7 @@ const Ql = /* @__PURE__ */ M({
2766
2756
  ]);
2767
2757
  };
2768
2758
  }
2769
- }), ia = /* @__PURE__ */ M({
2759
+ }), ra = /* @__PURE__ */ M({
2770
2760
  __name: "PrimeDropdown",
2771
2761
  props: {
2772
2762
  context: Object
@@ -2779,13 +2769,13 @@ const Ql = /* @__PURE__ */ M({
2779
2769
  function s(o) {
2780
2770
  t == null || t.node.input(o.value);
2781
2771
  }
2782
- const r = j(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2772
+ const r = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2783
2773
  return (o, u) => {
2784
- const p = R("Dropdown");
2785
- return L(), A("div", null, [
2786
- T(p, {
2774
+ const p = F("Dropdown");
2775
+ return L(), P("div", null, [
2776
+ D(p, {
2787
2777
  modelValue: a(t)._value,
2788
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
2778
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
2789
2779
  "input-id": a(t).id,
2790
2780
  disabled: a(n)._disabled ?? !1,
2791
2781
  readonly: a(n)._readonly ?? !1,
@@ -2807,7 +2797,7 @@ const Ql = /* @__PURE__ */ M({
2807
2797
  ]);
2808
2798
  };
2809
2799
  }
2810
- }), la = /* @__PURE__ */ M({
2800
+ }), oa = /* @__PURE__ */ M({
2811
2801
  __name: "PrimeEditor",
2812
2802
  props: {
2813
2803
  context: Object
@@ -2820,18 +2810,18 @@ const Ql = /* @__PURE__ */ M({
2820
2810
  function s(o) {
2821
2811
  o.range === null && (t == null || t.handlers.blur(o.htmlValue));
2822
2812
  }
2823
- const r = j(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2813
+ const r = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2824
2814
  return (o, u) => {
2825
- const p = R("Editor");
2826
- return L(), A("div", null, [
2827
- T(p, {
2815
+ const p = F("Editor");
2816
+ return L(), P("div", null, [
2817
+ D(p, {
2828
2818
  id: a(t).id,
2829
2819
  modelValue: a(t)._value,
2830
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
2820
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
2831
2821
  disabled: a(n)._disabled ?? !1,
2832
2822
  readonly: a(n)._readonly ?? !1,
2833
2823
  "editor-style": a(n).style,
2834
- class: K(a(r)),
2824
+ class: U(a(r)),
2835
2825
  tabindex: a(n).tabindex,
2836
2826
  "aria-label": a(n).ariaLabel,
2837
2827
  "aria-labelledby": a(n).ariaLabelledby,
@@ -2845,7 +2835,7 @@ const Ql = /* @__PURE__ */ M({
2845
2835
  ]);
2846
2836
  };
2847
2837
  }
2848
- }), aa = /* @__PURE__ */ M({
2838
+ }), ua = /* @__PURE__ */ M({
2849
2839
  __name: "PrimeInputMask",
2850
2840
  props: {
2851
2841
  context: Object
@@ -2856,18 +2846,18 @@ const Ql = /* @__PURE__ */ M({
2856
2846
  var o, u;
2857
2847
  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);
2858
2848
  }
2859
- const s = j(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2849
+ const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2860
2850
  return (r, o) => {
2861
- const u = R("InputMask");
2862
- return L(), A("div", null, [
2863
- T(u, {
2851
+ const u = F("InputMask");
2852
+ return L(), P("div", null, [
2853
+ D(u, {
2864
2854
  id: a(t).id,
2865
2855
  modelValue: a(t)._value,
2866
2856
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
2867
2857
  disabled: a(n)._disabled ?? !1,
2868
2858
  readonly: a(n)._readonly ?? !1,
2869
2859
  "editor-style": a(n).style,
2870
- class: K(a(s)),
2860
+ class: U(a(s)),
2871
2861
  tabindex: a(n).tabindex,
2872
2862
  "aria-label": a(n).ariaLabel,
2873
2863
  "aria-labelledby": a(n).ariaLabelledby,
@@ -2882,7 +2872,7 @@ const Ql = /* @__PURE__ */ M({
2882
2872
  ]);
2883
2873
  };
2884
2874
  }
2885
- }), sa = /* @__PURE__ */ M({
2875
+ }), fa = /* @__PURE__ */ M({
2886
2876
  __name: "PrimeInputNumber",
2887
2877
  props: {
2888
2878
  context: Object
@@ -2895,13 +2885,13 @@ const Ql = /* @__PURE__ */ M({
2895
2885
  function s(o) {
2896
2886
  t == null || t.node.input(o.value);
2897
2887
  }
2898
- const r = j(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2888
+ const r = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2899
2889
  return (o, u) => {
2900
- const p = R("InputNumber");
2901
- return L(), A("div", null, [
2902
- T(p, {
2890
+ const p = F("InputNumber");
2891
+ return L(), P("div", null, [
2892
+ D(p, {
2903
2893
  modelValue: a(t)._value,
2904
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
2894
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
2905
2895
  "input-id": a(t).id,
2906
2896
  disabled: a(n)._disabled ?? !1,
2907
2897
  readonly: a(n)._readonly ?? !1,
@@ -2929,13 +2919,13 @@ const Ql = /* @__PURE__ */ M({
2929
2919
  ]);
2930
2920
  };
2931
2921
  }
2932
- }), ra = {
2922
+ }), ca = {
2933
2923
  key: 0,
2934
2924
  class: "formkit-prime-left"
2935
- }, oa = {
2925
+ }, pa = {
2936
2926
  key: 1,
2937
2927
  class: "formkit-prime-right"
2938
- }, ua = /* @__PURE__ */ M({
2928
+ }, da = /* @__PURE__ */ M({
2939
2929
  __name: "PrimeInputSwitch",
2940
2930
  props: {
2941
2931
  context: Object
@@ -2946,14 +2936,14 @@ const Ql = /* @__PURE__ */ M({
2946
2936
  var o;
2947
2937
  t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
2948
2938
  }
2949
- const s = j(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2939
+ const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2950
2940
  return (r, o) => {
2951
- const u = R("InputSwitch");
2952
- return L(), A("div", {
2953
- class: K(a(n).option_class)
2941
+ const u = F("InputSwitch");
2942
+ return L(), P("div", {
2943
+ class: U(a(n).option_class)
2954
2944
  }, [
2955
- a(t).attrs.labelLeft ? (L(), A("span", ra, ce(a(t).attrs.labelLeft), 1)) : oe("", !0),
2956
- T(u, {
2945
+ a(t).attrs.labelLeft ? (L(), P("span", ca, de(a(t).attrs.labelLeft), 1)) : oe("", !0),
2946
+ D(u, {
2957
2947
  modelValue: a(t)._value,
2958
2948
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
2959
2949
  "input-id": a(t).id,
@@ -2969,11 +2959,11 @@ const Ql = /* @__PURE__ */ M({
2969
2959
  pt: a(n).pt,
2970
2960
  onInput: l
2971
2961
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "true-value", "false-value", "pt"]),
2972
- a(t).attrs.labelRight ? (L(), A("span", oa, ce(a(t).attrs.labelRight), 1)) : oe("", !0)
2962
+ a(t).attrs.labelRight ? (L(), P("span", pa, de(a(t).attrs.labelRight), 1)) : oe("", !0)
2973
2963
  ], 2);
2974
2964
  };
2975
2965
  }
2976
- }), fa = /* @__PURE__ */ M({
2966
+ }), ma = /* @__PURE__ */ M({
2977
2967
  __name: "PrimeInputText",
2978
2968
  props: {
2979
2969
  context: Object
@@ -2987,34 +2977,34 @@ const Ql = /* @__PURE__ */ M({
2987
2977
  return (t == null ? void 0 : t.iconRight) && (t == null ? void 0 : t.iconRight.length) > 0;
2988
2978
  }
2989
2979
  function r() {
2990
- let h = "";
2991
- return l() && (h = `${h}p-input-icon-left `), s() && (h = `${h}p-input-icon-right `), h;
2980
+ let _ = "";
2981
+ return l() && (_ = `${_}p-input-icon-left `), s() && (_ = `${_}p-input-icon-right `), _;
2992
2982
  }
2993
- function o(h) {
2994
- t == null || t.handlers.blur(h.target.value);
2983
+ function o(_) {
2984
+ t == null || t.handlers.blur(_.target.value);
2995
2985
  }
2996
- function u(h) {
2997
- t == null || t.node.input(h.target.value);
2986
+ function u(_) {
2987
+ t == null || t.node.input(_.target.value);
2998
2988
  }
2999
- const p = j(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3000
- return (h, O) => {
3001
- const w = R("InputText");
3002
- return L(), A("div", null, [
3003
- Bt("span", {
3004
- class: K(r())
2989
+ const p = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2990
+ return (_, A) => {
2991
+ const Z = F("InputText");
2992
+ return L(), P("div", null, [
2993
+ Ut("span", {
2994
+ class: U(r())
3005
2995
  }, [
3006
- l() ? (L(), A("i", {
2996
+ l() ? (L(), P("i", {
3007
2997
  key: 0,
3008
- class: K(a(t).iconLeft)
2998
+ class: U(a(t).iconLeft)
3009
2999
  }, null, 2)) : oe("", !0),
3010
- T(w, {
3000
+ D(Z, {
3011
3001
  id: a(t).id,
3012
3002
  modelValue: a(t)._value,
3013
- "onUpdate:modelValue": O[0] || (O[0] = ($) => a(t)._value = $),
3003
+ "onUpdate:modelValue": A[0] || (A[0] = ($) => a(t)._value = $),
3014
3004
  disabled: a(n)._disabled ?? !1,
3015
3005
  readonly: a(n)._readonly ?? !1,
3016
- style: de(a(n).style),
3017
- class: K(a(p)),
3006
+ style: be(a(n).style),
3007
+ class: U(a(p)),
3018
3008
  tabindex: a(n).tabindex,
3019
3009
  "aria-label": a(n).ariaLabel,
3020
3010
  "aria-labelledby": a(n).ariaLabelledby,
@@ -3023,15 +3013,15 @@ const Ql = /* @__PURE__ */ M({
3023
3013
  onInput: u,
3024
3014
  onBlur: o
3025
3015
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "placeholder", "pt"]),
3026
- s ? (L(), A("i", {
3016
+ s ? (L(), P("i", {
3027
3017
  key: 1,
3028
- class: K(a(t).iconRight)
3018
+ class: U(a(t).iconRight)
3029
3019
  }, null, 2)) : oe("", !0)
3030
3020
  ], 2)
3031
3021
  ]);
3032
3022
  };
3033
3023
  }
3034
- }), ca = /* @__PURE__ */ M({
3024
+ }), ba = /* @__PURE__ */ M({
3035
3025
  __name: "PrimeTextarea",
3036
3026
  props: {
3037
3027
  context: Object
@@ -3044,18 +3034,18 @@ const Ql = /* @__PURE__ */ M({
3044
3034
  function s(o) {
3045
3035
  t == null || t.node.input(o.target.value);
3046
3036
  }
3047
- const r = j(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3037
+ const r = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3048
3038
  return (o, u) => {
3049
- const p = R("Textarea");
3050
- return L(), A("div", null, [
3051
- T(p, {
3039
+ const p = F("Textarea");
3040
+ return L(), P("div", null, [
3041
+ D(p, {
3052
3042
  id: a(t).id,
3053
3043
  modelValue: a(t)._value,
3054
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
3044
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
3055
3045
  disabled: a(n)._disabled ?? !1,
3056
3046
  readonly: a(n)._readonly ?? !1,
3057
- style: de(a(n).style),
3058
- class: K(a(r)),
3047
+ style: be(a(n).style),
3048
+ class: U(a(r)),
3059
3049
  tabindex: a(n).tabindex,
3060
3050
  "aria-label": a(n).ariaLabel,
3061
3051
  "aria-labelledby": a(n).ariaLabelledby,
@@ -3068,7 +3058,7 @@ const Ql = /* @__PURE__ */ M({
3068
3058
  ]);
3069
3059
  };
3070
3060
  }
3071
- }), pa = /* @__PURE__ */ M({
3061
+ }), ya = /* @__PURE__ */ M({
3072
3062
  __name: "PrimeKnob",
3073
3063
  props: {
3074
3064
  context: Object
@@ -3078,18 +3068,18 @@ const Ql = /* @__PURE__ */ M({
3078
3068
  function l(r) {
3079
3069
  t == null || t.node.input(r), t == null || t.handlers.blur(r);
3080
3070
  }
3081
- const s = j(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3071
+ const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3082
3072
  return (r, o) => {
3083
- const u = R("Knob");
3084
- return L(), A("div", null, [
3085
- T(u, {
3073
+ const u = F("Knob");
3074
+ return L(), P("div", null, [
3075
+ D(u, {
3086
3076
  id: a(t).id,
3087
3077
  modelValue: a(t)._value,
3088
3078
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
3089
3079
  disabled: a(n)._disabled ?? !1,
3090
3080
  readonly: a(n)._readonly ?? !1,
3091
- style: de(a(n).style),
3092
- class: K(a(s)),
3081
+ style: be(a(n).style),
3082
+ class: U(a(s)),
3093
3083
  tabindex: a(n).tabindex,
3094
3084
  "aria-label": a(n).ariaLabel,
3095
3085
  "aria-labelledby": a(n).ariaLabelledby,
@@ -3109,7 +3099,7 @@ const Ql = /* @__PURE__ */ M({
3109
3099
  ]);
3110
3100
  };
3111
3101
  }
3112
- }), da = /* @__PURE__ */ M({
3102
+ }), va = /* @__PURE__ */ M({
3113
3103
  __name: "PrimeMultiSelect",
3114
3104
  props: {
3115
3105
  context: Object
@@ -3120,18 +3110,18 @@ const Ql = /* @__PURE__ */ M({
3120
3110
  var o;
3121
3111
  t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
3122
3112
  }
3123
- const s = j(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3113
+ const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3124
3114
  return (r, o) => {
3125
- const u = R("MultiSelect");
3126
- return L(), A("div", null, [
3127
- T(u, {
3115
+ const u = F("MultiSelect");
3116
+ return L(), P("div", null, [
3117
+ D(u, {
3128
3118
  modelValue: a(t)._value,
3129
3119
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
3130
3120
  "input-id": a(t).id,
3131
3121
  disabled: a(n)._disabled ?? !1,
3132
3122
  readonly: a(n)._readonly ?? !1,
3133
3123
  "list-style": a(n).style,
3134
- class: K(a(s)),
3124
+ class: U(a(s)),
3135
3125
  tabindex: a(n).tabindex,
3136
3126
  "aria-label": a(n).ariaLabel,
3137
3127
  "aria-labelledby": a(n).ariaLabelledby,
@@ -3145,7 +3135,7 @@ const Ql = /* @__PURE__ */ M({
3145
3135
  ]);
3146
3136
  };
3147
3137
  }
3148
- }), ma = /* @__PURE__ */ M({
3138
+ }), ha = /* @__PURE__ */ M({
3149
3139
  __name: "PrimeListbox",
3150
3140
  props: {
3151
3141
  context: Object
@@ -3156,19 +3146,19 @@ const Ql = /* @__PURE__ */ M({
3156
3146
  var o;
3157
3147
  t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
3158
3148
  }
3159
- const s = j(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3149
+ const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3160
3150
  return (r, o) => {
3161
3151
  var p;
3162
- const u = R("Listbox");
3163
- return L(), A("div", null, [
3164
- T(u, {
3152
+ const u = F("Listbox");
3153
+ return L(), P("div", null, [
3154
+ D(u, {
3165
3155
  id: a(t).id,
3166
3156
  modelValue: a(t)._value,
3167
- "onUpdate:modelValue": o[0] || (o[0] = (h) => a(t)._value = h),
3157
+ "onUpdate:modelValue": o[0] || (o[0] = (_) => a(t)._value = _),
3168
3158
  disabled: a(n)._disabled ?? !1,
3169
3159
  readonly: a(n)._readonly ?? !1,
3170
3160
  "list-style": a(n).style,
3171
- class: K(a(s)),
3161
+ class: U(a(s)),
3172
3162
  tabindex: a(n).tabindex,
3173
3163
  "aria-label": a(n).ariaLabel,
3174
3164
  "aria-labelledby": a(n).ariaLabelledby,
@@ -3189,7 +3179,7 @@ const Ql = /* @__PURE__ */ M({
3189
3179
  ]);
3190
3180
  };
3191
3181
  }
3192
- }), ba = /* @__PURE__ */ M({
3182
+ }), _a = /* @__PURE__ */ M({
3193
3183
  __name: "PrimePassword",
3194
3184
  props: {
3195
3185
  context: Object
@@ -3202,13 +3192,13 @@ const Ql = /* @__PURE__ */ M({
3202
3192
  function s(o) {
3203
3193
  t == null || t.node.input(o.target.value);
3204
3194
  }
3205
- const r = j(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3195
+ const r = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3206
3196
  return (o, u) => {
3207
- const p = R("Password");
3208
- return L(), A("div", null, [
3209
- T(p, {
3197
+ const p = F("Password");
3198
+ return L(), P("div", null, [
3199
+ D(p, {
3210
3200
  modelValue: a(t)._value,
3211
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
3201
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
3212
3202
  "input-id": a(t).id,
3213
3203
  disabled: a(n)._disabled ?? !1,
3214
3204
  readonly: a(n)._readonly ?? !1,
@@ -3235,7 +3225,7 @@ const Ql = /* @__PURE__ */ M({
3235
3225
  ]);
3236
3226
  };
3237
3227
  }
3238
- }), ya = ["for"], va = /* @__PURE__ */ M({
3228
+ }), ga = ["for"], $a = /* @__PURE__ */ M({
3239
3229
  __name: "PrimeRadioButton",
3240
3230
  props: {
3241
3231
  context: Object
@@ -3246,19 +3236,19 @@ const Ql = /* @__PURE__ */ M({
3246
3236
  var o;
3247
3237
  t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
3248
3238
  }
3249
- const s = j(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3239
+ const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3250
3240
  return (r, o) => {
3251
- const u = R("RadioButton");
3252
- return L(), A("div", {
3253
- class: K(a(n).options_class)
3241
+ const u = F("RadioButton");
3242
+ return L(), P("div", {
3243
+ class: U(a(n).options_class)
3254
3244
  }, [
3255
- (L(!0), A(Sn, null, Vn(a(n).options, (p) => (L(), A("div", {
3245
+ (L(!0), P(In, null, Ln(a(n).options, (p) => (L(), P("div", {
3256
3246
  key: p.value,
3257
- class: K(a(n).option_class)
3247
+ class: U(a(n).option_class)
3258
3248
  }, [
3259
- T(u, {
3249
+ D(u, {
3260
3250
  modelValue: a(t)._value,
3261
- "onUpdate:modelValue": o[0] || (o[0] = (h) => a(t)._value = h),
3251
+ "onUpdate:modelValue": o[0] || (o[0] = (_) => a(t)._value = _),
3262
3252
  name: a(n).name,
3263
3253
  value: p.value,
3264
3254
  "input-style": a(n).style,
@@ -3267,14 +3257,14 @@ const Ql = /* @__PURE__ */ M({
3267
3257
  onClick: l,
3268
3258
  onChange: l
3269
3259
  }, null, 8, ["modelValue", "name", "value", "input-style", "input-class", "pt"]),
3270
- Bt("label", {
3260
+ Ut("label", {
3271
3261
  for: p.value
3272
- }, ce(p.label), 9, ya)
3262
+ }, de(p.label), 9, ga)
3273
3263
  ], 2))), 128))
3274
3264
  ], 2);
3275
3265
  };
3276
3266
  }
3277
- }), ha = /* @__PURE__ */ M({
3267
+ }), wa = /* @__PURE__ */ M({
3278
3268
  __name: "PrimeRating",
3279
3269
  props: {
3280
3270
  context: Object
@@ -3285,18 +3275,18 @@ const Ql = /* @__PURE__ */ M({
3285
3275
  var o;
3286
3276
  t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
3287
3277
  }
3288
- const s = j(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3278
+ const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3289
3279
  return (r, o) => {
3290
- const u = R("Rating");
3291
- return L(), A("div", null, [
3292
- T(u, {
3280
+ const u = F("Rating");
3281
+ return L(), P("div", null, [
3282
+ D(u, {
3293
3283
  id: a(t).id,
3294
3284
  modelValue: a(t)._value,
3295
3285
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
3296
3286
  disabled: a(n)._disabled ?? !1,
3297
3287
  readonly: a(n)._readonly ?? !1,
3298
- style: de(a(n).style),
3299
- class: K(a(s)),
3288
+ style: be(a(n).style),
3289
+ class: U(a(s)),
3300
3290
  tabindex: a(n).tabindex,
3301
3291
  "aria-label": a(n).ariaLabel,
3302
3292
  "aria-labelledby": a(n).ariaLabelledby,
@@ -3311,7 +3301,7 @@ const Ql = /* @__PURE__ */ M({
3311
3301
  ]);
3312
3302
  };
3313
3303
  }
3314
- }), _a = /* @__PURE__ */ M({
3304
+ }), ka = /* @__PURE__ */ M({
3315
3305
  __name: "PrimeSlider",
3316
3306
  props: {
3317
3307
  context: Object
@@ -3321,18 +3311,18 @@ const Ql = /* @__PURE__ */ M({
3321
3311
  function l(r) {
3322
3312
  t == null || t.node.input(r), t == null || t.handlers.blur(r);
3323
3313
  }
3324
- const s = j(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3314
+ const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3325
3315
  return (r, o) => {
3326
- const u = R("Slider");
3327
- return L(), A("div", null, [
3328
- T(u, {
3316
+ const u = F("Slider");
3317
+ return L(), P("div", null, [
3318
+ D(u, {
3329
3319
  id: a(t).id,
3330
3320
  modelValue: a(t)._value,
3331
3321
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
3332
3322
  disabled: a(n)._disabled ?? !1,
3333
3323
  readonly: a(n)._readonly ?? !1,
3334
- style: de(a(n).style),
3335
- class: K(a(s)),
3324
+ style: be(a(n).style),
3325
+ class: U(a(s)),
3336
3326
  tabindex: a(n).tabindex,
3337
3327
  "aria-label": a(n).ariaLabel,
3338
3328
  "aria-labelledby": a(n).ariaLabelledby,
@@ -3347,7 +3337,7 @@ const Ql = /* @__PURE__ */ M({
3347
3337
  ]);
3348
3338
  };
3349
3339
  }
3350
- }), ga = /* @__PURE__ */ M({
3340
+ }), Ca = /* @__PURE__ */ M({
3351
3341
  __name: "PrimeToggleButton",
3352
3342
  props: {
3353
3343
  context: Object
@@ -3358,11 +3348,11 @@ const Ql = /* @__PURE__ */ M({
3358
3348
  var o;
3359
3349
  t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
3360
3350
  }
3361
- const s = j(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3351
+ const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3362
3352
  return (r, o) => {
3363
- const u = R("ToggleButton");
3364
- return L(), A("div", null, [
3365
- T(u, {
3353
+ const u = F("ToggleButton");
3354
+ return L(), P("div", null, [
3355
+ D(u, {
3366
3356
  modelValue: a(t)._value,
3367
3357
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
3368
3358
  "input-id": a(t).id,
@@ -3384,7 +3374,7 @@ const Ql = /* @__PURE__ */ M({
3384
3374
  ]);
3385
3375
  };
3386
3376
  }
3387
- }), $a = /* @__PURE__ */ M({
3377
+ }), Sa = /* @__PURE__ */ M({
3388
3378
  __name: "PrimeSelectButton",
3389
3379
  props: {
3390
3380
  context: Object
@@ -3395,18 +3385,18 @@ const Ql = /* @__PURE__ */ M({
3395
3385
  var o;
3396
3386
  t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
3397
3387
  }
3398
- const s = j(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3388
+ const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3399
3389
  return (r, o) => {
3400
- const u = R("SelectButton");
3401
- return L(), A("div", null, [
3402
- T(u, {
3390
+ const u = F("SelectButton");
3391
+ return L(), P("div", null, [
3392
+ D(u, {
3403
3393
  id: a(t).id,
3404
3394
  modelValue: a(t)._value,
3405
3395
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
3406
3396
  disabled: a(n)._disabled ?? !1,
3407
3397
  readonly: a(n)._readonly ?? !1,
3408
- style: de(a(n).style),
3409
- class: K(a(s)),
3398
+ style: be(a(n).style),
3399
+ class: U(a(s)),
3410
3400
  tabindex: a(n).tabindex,
3411
3401
  "aria-label": a(n).ariaLabel,
3412
3402
  "aria-labelledby": a(n).ariaLabelledby,
@@ -3423,13 +3413,13 @@ const Ql = /* @__PURE__ */ M({
3423
3413
  ]);
3424
3414
  };
3425
3415
  }
3426
- }), wa = {
3416
+ }), Va = {
3427
3417
  key: 0,
3428
3418
  class: "formkit-prime-left"
3429
- }, ka = {
3419
+ }, Ia = {
3430
3420
  key: 1,
3431
3421
  class: "formkit-prime-right"
3432
- }, Ca = /* @__PURE__ */ M({
3422
+ }, La = /* @__PURE__ */ M({
3433
3423
  __name: "PrimeTriStateCheckbox",
3434
3424
  props: {
3435
3425
  context: Object
@@ -3440,12 +3430,12 @@ const Ql = /* @__PURE__ */ M({
3440
3430
  var o;
3441
3431
  t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
3442
3432
  }
3443
- const s = j(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3433
+ const s = R(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3444
3434
  return (r, o) => {
3445
- const u = R("TriStateCheckbox");
3446
- return L(), A("div", null, [
3447
- a(t).attrs.labelLeft ? (L(), A("span", wa, ce(a(t).attrs.labelLeft), 1)) : oe("", !0),
3448
- T(u, {
3435
+ const u = F("TriStateCheckbox");
3436
+ return L(), P("div", null, [
3437
+ a(t).attrs.labelLeft ? (L(), P("span", Va, de(a(t).attrs.labelLeft), 1)) : oe("", !0),
3438
+ D(u, {
3449
3439
  modelValue: a(t)._value,
3450
3440
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
3451
3441
  "input-id": a(t).id,
@@ -3459,96 +3449,96 @@ const Ql = /* @__PURE__ */ M({
3459
3449
  pt: a(n).pt,
3460
3450
  onClick: l
3461
3451
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "pt"]),
3462
- a(t).attrs.labelRight ? (L(), A("span", ka, ce(a(t).attrs.labelRight), 1)) : oe("", !0)
3452
+ a(t).attrs.labelRight ? (L(), P("span", Ia, de(a(t).attrs.labelRight), 1)) : oe("", !0)
3463
3453
  ]);
3464
3454
  };
3465
3455
  }
3466
- }), Sa = D(fa, {
3456
+ }), Pa = T(ma, {
3467
3457
  props: ["iconRight", "iconLeft"]
3468
- }), Va = D(sa, {
3458
+ }), Aa = T(fa, {
3469
3459
  props: ["iconRight", "iconLeft"]
3470
- }), Ia = D(aa, {
3460
+ }), Oa = T(ua, {
3471
3461
  props: []
3472
- }), La = D(ba, {
3462
+ }), xa = T(_a, {
3473
3463
  props: ["feedback", "toggleMask"]
3474
- }), Aa = D(ca, {
3464
+ }), Ma = T(ba, {
3475
3465
  props: ["rows"]
3476
- }), Oa = D(ea, {
3466
+ }), Ea = T(la, {
3477
3467
  props: []
3478
- }), Pa = D(ua, {
3468
+ }), Ra = T(da, {
3479
3469
  props: []
3480
- }), xa = D(la, {
3470
+ }), ja = T(oa, {
3481
3471
  props: []
3482
- }), Ma = D(ia, {
3472
+ }), Fa = T(ra, {
3483
3473
  props: []
3484
- }), ja = D(da, {
3474
+ }), Da = T(va, {
3485
3475
  props: []
3486
- }), Ea = D(ma, {
3476
+ }), Ta = T(ha, {
3487
3477
  props: []
3488
- }), Ra = D(Ql, {
3478
+ }), Ba = T(ta, {
3489
3479
  props: []
3490
- }), Fa = D(_a, {
3480
+ }), za = T(ka, {
3491
3481
  props: []
3492
- }), Ta = D(ha, {
3482
+ }), Ua = T(wa, {
3493
3483
  props: []
3494
- }), Da = D(va, {
3484
+ }), Ka = T($a, {
3495
3485
  props: []
3496
- }), Ba = D(ta, {
3486
+ }), Wa = T(aa, {
3497
3487
  props: []
3498
- }), za = D(pa, {
3488
+ }), Na = T(ya, {
3499
3489
  props: []
3500
- }), Ua = D(na, {
3490
+ }), Ha = T(sa, {
3501
3491
  props: []
3502
- }), Ka = D(ga, {
3492
+ }), qa = T(Ca, {
3503
3493
  props: []
3504
- }), qa = D($a, {
3494
+ }), Za = T(Sa, {
3505
3495
  props: []
3506
- }), Wa = D(Ca, {
3496
+ }), Ja = T(La, {
3507
3497
  props: []
3508
- }), Ha = {
3509
- primeInputText: Sa,
3510
- primeInputNumber: Va,
3511
- primeInputMask: Ia,
3512
- primePassword: La,
3513
- primeCheckbox: Oa,
3514
- primeInputSwitch: Pa,
3515
- primeTextarea: Aa,
3516
- primeEditor: xa,
3517
- primeDropdown: Ma,
3518
- primeMultiSelect: ja,
3519
- primeCalendar: Ra,
3520
- primeSlider: Fa,
3521
- primeChips: Ba,
3522
- primeKnob: za,
3523
- primeRating: Ta,
3524
- primeRadioButton: Da,
3525
- primeColorPicker: Ua,
3526
- primeToggleButton: Ka,
3527
- primeListbox: Ea,
3528
- primeSelectButton: qa,
3529
- primeTriStateCheckbox: Wa
3498
+ }), Qa = {
3499
+ primeInputText: Pa,
3500
+ primeInputNumber: Aa,
3501
+ primeInputMask: Oa,
3502
+ primePassword: xa,
3503
+ primeCheckbox: Ea,
3504
+ primeInputSwitch: Ra,
3505
+ primeTextarea: Ma,
3506
+ primeEditor: ja,
3507
+ primeDropdown: Fa,
3508
+ primeMultiSelect: Da,
3509
+ primeCalendar: Ba,
3510
+ primeSlider: za,
3511
+ primeChips: Wa,
3512
+ primeKnob: Na,
3513
+ primeRating: Ua,
3514
+ primeRadioButton: Ka,
3515
+ primeColorPicker: Ha,
3516
+ primeToggleButton: qa,
3517
+ primeListbox: Ta,
3518
+ primeSelectButton: Za,
3519
+ primeTriStateCheckbox: Ja
3530
3520
  };
3531
3521
  export {
3532
- Ra as primeCalendarDefinition,
3533
- Oa as primeCheckboxDefinition,
3534
- Ba as primeChipsDefinition,
3535
- Ua as primeColorPickerDefinition,
3536
- Ma as primeDropdownDefinition,
3537
- xa as primeEditorDefinition,
3538
- Ia as primeInputMaskDefinition,
3539
- Va as primeInputNumberDefinition,
3540
- Pa as primeInputSwitchDefinition,
3541
- Sa as primeInputTextDefinition,
3542
- Ha as primeInputs,
3543
- za as primeKnobDefinition,
3544
- Ea as primeListboxDefinition,
3545
- ja as primeMultiSelectDefinition,
3546
- La as primePasswordDefinition,
3547
- Da as primeRadioButtonDefinition,
3548
- Ta as primeRatingDefinition,
3549
- qa as primeSelectButtonDefinition,
3550
- Fa as primeSliderDefinition,
3551
- Aa as primeTextareaDefinition,
3552
- Ka as primeToggleButtonDefinition,
3553
- Wa as primeTriStateCheckboxDefinition
3522
+ Ba as primeCalendarDefinition,
3523
+ Ea as primeCheckboxDefinition,
3524
+ Wa as primeChipsDefinition,
3525
+ Ha as primeColorPickerDefinition,
3526
+ Fa as primeDropdownDefinition,
3527
+ ja as primeEditorDefinition,
3528
+ Oa as primeInputMaskDefinition,
3529
+ Aa as primeInputNumberDefinition,
3530
+ Ra as primeInputSwitchDefinition,
3531
+ Pa as primeInputTextDefinition,
3532
+ Qa as primeInputs,
3533
+ Na as primeKnobDefinition,
3534
+ Ta as primeListboxDefinition,
3535
+ Da as primeMultiSelectDefinition,
3536
+ xa as primePasswordDefinition,
3537
+ Ka as primeRadioButtonDefinition,
3538
+ Ua as primeRatingDefinition,
3539
+ Za as primeSelectButtonDefinition,
3540
+ za as primeSliderDefinition,
3541
+ Ma as primeTextareaDefinition,
3542
+ qa as primeToggleButtonDefinition,
3543
+ Ja as primeTriStateCheckboxDefinition
3554
3544
  };