@sfxcode/formkit-primevue 1.2.9 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { defineComponent as M, getCurrentInstance as st, watch as ce, watchEffect as ee, reactive as $n, onUnmounted as wn, ref as ne, provide as Kt, h as we, computed as E, inject as he, onMounted as kn, toRef as Cn, onBeforeUnmount as Sn, markRaw as Vn, isRef as In, createTextVNode as Ln, resolveComponent as j, openBlock as L, createElementBlock as P, createVNode as D, unref as a, toDisplayString as pe, createCommentVNode as re, normalizeStyle as be, normalizeClass as U, createElementVNode as Nt, Fragment as Pn, renderList as An } from "vue";
2
- const Wt = [
1
+ import { defineComponent as O, getCurrentInstance as st, watch as ce, watchEffect as te, reactive as $n, onUnmounted as wn, ref as Q, provide as Nt, h as de, computed as E, inject as pe, nextTick as kn, onMounted as Cn, toRef as Sn, onBeforeUnmount as Vn, markRaw as In, isRef as Ln, createTextVNode as Pn, resolveComponent as j, openBlock as P, createElementBlock as A, createVNode as T, unref as a, toDisplayString as me, createCommentVNode as re, normalizeStyle as ve, normalizeClass as U, createElementVNode as Wt, Fragment as An, renderList as On } from "vue";
2
+ const Ht = [
3
3
  "__key",
4
4
  "__init",
5
5
  "__shim",
@@ -7,10 +7,10 @@ const Wt = [
7
7
  "__index",
8
8
  "__prevKey"
9
9
  ];
10
- function Ye() {
10
+ function Fe() {
11
11
  return Math.random().toString(36).substring(2, 15);
12
12
  }
13
- function On(e, i) {
13
+ function xn(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
  }
@@ -26,7 +26,7 @@ function ue(e, i, t = !0, n = ["__key"]) {
26
26
  if (e instanceof Date && i instanceof Date)
27
27
  return e.getTime() === i.getTime();
28
28
  if (e instanceof RegExp && i instanceof RegExp)
29
- return xn(e, i);
29
+ return Mn(e, i);
30
30
  if (e === null || i === null || Object.keys(e).length !== Object.keys(i).length)
31
31
  return !1;
32
32
  for (const l of n)
@@ -39,7 +39,7 @@ function ue(e, i, t = !0, n = ["__key"]) {
39
39
  }
40
40
  return !1;
41
41
  }
42
- function xn(e, i) {
42
+ function Mn(e, i) {
43
43
  return e.source === i.source && e.flags.split("").sort().join("") === i.flags.split("").sort().join("");
44
44
  }
45
45
  function et(e) {
@@ -95,7 +95,7 @@ function Qe(e, i, t = !1, n = !1) {
95
95
  !F(l, s) && i[s] !== void 0 && (l[s] = i[s]);
96
96
  return l;
97
97
  }
98
- function Mn(e) {
98
+ function En(e) {
99
99
  if (e[0] !== '"' && e[0] !== "'" || e[0] !== e[e.length - 1])
100
100
  return !1;
101
101
  const i = e[0];
@@ -114,13 +114,13 @@ function Rn(e) {
114
114
  }
115
115
  return i;
116
116
  }
117
- function ye(...e) {
117
+ function he(...e) {
118
118
  return e.reduce((i, t) => {
119
119
  const { value: n, name: l, modelValue: s, config: r, plugins: o, ...u } = t;
120
120
  return Object.assign(i, u);
121
121
  }, {});
122
122
  }
123
- function En(e) {
123
+ function jn(e) {
124
124
  const i = [];
125
125
  let t = "", n = 0, l = "", s = "";
126
126
  for (let r = 0; r < e.length; r++) {
@@ -129,13 +129,13 @@ function En(e) {
129
129
  }
130
130
  return t && i.push(t), i;
131
131
  }
132
- function St(e, i) {
132
+ function Vt(e, i) {
133
133
  const t = {}, n = i.filter((s) => s instanceof RegExp), l = new Set(i);
134
134
  for (const s in e)
135
135
  !l.has(s) && !n.some((r) => r.test(s)) && (t[s] = e[s]);
136
136
  return t;
137
137
  }
138
- function Vt(e, i) {
138
+ function It(e, i) {
139
139
  const t = {}, n = i.filter((l) => l instanceof RegExp);
140
140
  return i.forEach((l) => {
141
141
  l instanceof RegExp || (t[l] = e[l]);
@@ -143,13 +143,13 @@ function Vt(e, i) {
143
143
  n.some((s) => s.test(l)) && (t[l] = e[l]);
144
144
  }), t;
145
145
  }
146
- function De(e) {
146
+ function ze(e) {
147
147
  return e.replace(/-([a-z0-9])/gi, (i, t) => t.toUpperCase());
148
148
  }
149
- function Ht(e) {
149
+ function qt(e) {
150
150
  return e.replace(/([a-z0-9])([A-Z])/g, (i, t, n) => t + "-" + n.toLowerCase()).replace(" ", "-").toLowerCase();
151
151
  }
152
- function jn(e, i = Wt) {
152
+ function Fn(e, i = Ht) {
153
153
  if (e !== null && typeof e == "object") {
154
154
  let t;
155
155
  if (Array.isArray(e) ? t = [...e] : ke(e) && (t = { ...e }), t)
@@ -157,7 +157,7 @@ function jn(e, i = Wt) {
157
157
  }
158
158
  return e;
159
159
  }
160
- function Re(e, i = Wt) {
160
+ function Re(e, i = Ht) {
161
161
  if (e === null || e instanceof RegExp || e instanceof Date || e instanceof Map || e instanceof Set || typeof File == "function" && e instanceof File)
162
162
  return e;
163
163
  let t;
@@ -169,10 +169,10 @@ function Re(e, i = Wt) {
169
169
  });
170
170
  return t;
171
171
  }
172
- function de(e) {
172
+ function be(e) {
173
173
  return typeof e == "object" ? Re(e) : e;
174
174
  }
175
- function Fn(e, i) {
175
+ function Tn(e, i) {
176
176
  if (!e || typeof e != "object")
177
177
  return null;
178
178
  const t = i.split(".");
@@ -206,7 +206,7 @@ function Dn(e, i, t) {
206
206
  });
207
207
  return i;
208
208
  }
209
- function Tn(e) {
209
+ function Bn(e) {
210
210
  let i = !1;
211
211
  return (...t) => {
212
212
  if (!i)
@@ -225,7 +225,7 @@ function mt() {
225
225
  s > -1 && e.splice(s, 1);
226
226
  }, t;
227
227
  }
228
- function qt() {
228
+ function Zt() {
229
229
  const e = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
230
230
  let t;
231
231
  const n = (l, s) => {
@@ -240,7 +240,7 @@ function qt() {
240
240
  return n.flush = () => {
241
241
  e.clear(), i.clear(), t == null || t.clear();
242
242
  }, n.on = (l, s) => {
243
- const [r, ...o] = l.split("."), u = s.receipt || Ye(), p = {
243
+ const [r, ...o] = l.split("."), u = s.receipt || Fe(), p = {
244
244
  modifiers: o,
245
245
  event: r,
246
246
  listener: s,
@@ -262,7 +262,7 @@ function qt() {
262
262
  t = void 0, s.forEach(([r, o]) => n(r, o)), l && l.walk((r) => r._e.play());
263
263
  }, n;
264
264
  }
265
- function Bn(e, i, t, n, l = !0, s) {
265
+ function zn(e, i, t, n, l = !0, s) {
266
266
  return i._e(e, {
267
267
  payload: n,
268
268
  name: t,
@@ -271,13 +271,13 @@ function Bn(e, i, t, n, l = !0, s) {
271
271
  meta: s
272
272
  }), e;
273
273
  }
274
- function zn(e, i, t) {
274
+ function Un(e, i, t) {
275
275
  return Xe(e.parent) && e.parent._e(e.parent, t), e;
276
276
  }
277
- function Un(e, i, t, n) {
277
+ function Kn(e, i, t, n) {
278
278
  return i._e.on(t, n);
279
279
  }
280
- function Kn(e, i, t) {
280
+ function Nn(e, i, t) {
281
281
  return i._e.off(t), e;
282
282
  }
283
283
  const bt = mt();
@@ -288,16 +288,16 @@ yt((e, i) => {
288
288
  const t = i(e);
289
289
  return console && typeof console.warn == "function" && console.warn(t.message), t;
290
290
  });
291
- function Ee(e, i = {}) {
291
+ function Te(e, i = {}) {
292
292
  yt.dispatch({ code: e, data: i });
293
293
  }
294
- function H(e, i = {}) {
294
+ function q(e, i = {}) {
295
295
  throw Error(bt.dispatch({ code: e, data: i }).message);
296
296
  }
297
297
  function oe(e, i) {
298
298
  const t = {
299
299
  blocking: !1,
300
- key: Ye(),
300
+ key: Fe(),
301
301
  meta: {},
302
302
  type: "state",
303
303
  visible: !0,
@@ -305,32 +305,32 @@ function oe(e, i) {
305
305
  };
306
306
  return i && t.value && t.meta.localize !== !1 && (t.value = i.t(t), t.meta.locale = i.config.locale), t;
307
307
  }
308
- const It = {
309
- apply: Jn,
310
- set: Wn,
311
- remove: Zt,
312
- filter: qn,
313
- reduce: Zn,
314
- release: Xn,
315
- touch: Hn
308
+ const Lt = {
309
+ apply: Yn,
310
+ set: Hn,
311
+ remove: Jt,
312
+ filter: Zn,
313
+ reduce: Jn,
314
+ release: Gn,
315
+ touch: qn
316
316
  };
317
- function Nn(e = !1) {
317
+ function Wn(e = !1) {
318
318
  const i = {};
319
319
  let t, n = e, l = [];
320
320
  const s = /* @__PURE__ */ new Map();
321
321
  let r;
322
322
  const o = new Proxy(i, {
323
323
  get(...u) {
324
- const [p, _] = u;
325
- return _ === "buffer" ? n : _ === "_b" ? l : _ === "_m" ? s : _ === "_r" ? r : F(It, _) ? It[_].bind(null, i, o, t) : Reflect.get(...u);
324
+ const [p, g] = u;
325
+ return g === "buffer" ? n : g === "_b" ? l : g === "_m" ? s : g === "_r" ? r : F(Lt, g) ? Lt[g].bind(null, i, o, t) : Reflect.get(...u);
326
326
  },
327
- set(u, p, _) {
328
- return p === "_n" ? (t = _, r === "__n" && Jt(t, o), !0) : p === "_b" ? (l = _, !0) : p === "buffer" ? (n = _, !0) : p === "_r" ? (r = _, !0) : (H(101, t), !1);
327
+ set(u, p, g) {
328
+ return p === "_n" ? (t = g, r === "__n" && Yt(t, o), !0) : p === "_b" ? (l = g, !0) : p === "buffer" ? (n = g, !0) : p === "_r" ? (r = g, !0) : (q(101, t), !1);
329
329
  }
330
330
  });
331
331
  return o;
332
332
  }
333
- function Wn(e, i, t, n) {
333
+ function Hn(e, i, t, n) {
334
334
  if (i.buffer)
335
335
  return i._b.push([[n]]), i;
336
336
  if (e[n.key] !== n) {
@@ -343,33 +343,33 @@ function Wn(e, i, t, n) {
343
343
  }
344
344
  return i;
345
345
  }
346
- function Hn(e, i) {
346
+ function qn(e, i) {
347
347
  for (const t in e) {
348
348
  const n = { ...e[t] };
349
349
  i.set(n);
350
350
  }
351
351
  }
352
- function Zt(e, i, t, n) {
352
+ function Jt(e, i, t, n) {
353
353
  if (F(e, n)) {
354
354
  const l = e[n];
355
355
  delete e[n], t.emit("message-removed", l);
356
356
  }
357
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;
358
358
  }
359
- function qn(e, i, t, n, l) {
359
+ function Zn(e, i, t, n, l) {
360
360
  for (const s in e) {
361
361
  const r = e[s];
362
- (!l || r.type === l) && !n(r) && Zt(e, i, t, s);
362
+ (!l || r.type === l) && !n(r) && Jt(e, i, t, s);
363
363
  }
364
364
  }
365
- function Zn(e, i, t, n, l) {
365
+ function Jn(e, i, t, n, l) {
366
366
  for (const s in e) {
367
367
  const r = e[s];
368
368
  l = n(l, r);
369
369
  }
370
370
  return l;
371
371
  }
372
- function Jn(e, i, t, n, l) {
372
+ function Yn(e, i, t, n, l) {
373
373
  if (Array.isArray(n)) {
374
374
  if (i.buffer) {
375
375
  i._b.push([n, l]);
@@ -380,10 +380,10 @@ function Jn(e, i, t, n, l) {
380
380
  } else
381
381
  for (const s in n) {
382
382
  const r = t.at(s);
383
- r ? r.store.apply(n[s], l) : Qn(t, i, s, n[s], l);
383
+ r ? r.store.apply(n[s], l) : Xn(t, i, s, n[s], l);
384
384
  }
385
385
  }
386
- function Yn(e, ...i) {
386
+ function Qn(e, ...i) {
387
387
  const t = `${e.name}-set`, n = (l) => oe({
388
388
  key: dt(l),
389
389
  type: "error",
@@ -401,12 +401,12 @@ function Yn(e, ...i) {
401
401
  }
402
402
  });
403
403
  }
404
- function Qn(e, i, t, n, l) {
404
+ function Xn(e, i, t, n, l) {
405
405
  var s;
406
406
  const r = i._m;
407
- r.has(t) || r.set(t, []), i._r || (i._r = Jt(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 = Yt(e, i)), (s = r.get(t)) === null || s === void 0 || s.push([n, l]);
408
408
  }
409
- function Jt(e, i) {
409
+ function Yt(e, i) {
410
410
  return e.on("child.deep", ({ payload: t }) => {
411
411
  i._m.forEach((n, l) => {
412
412
  e.at(l) === t && (n.forEach(([s, r]) => {
@@ -415,29 +415,29 @@ function Jt(e, i) {
415
415
  }), i._m.size === 0 && i._r && (e.off(i._r), i._r = void 0);
416
416
  });
417
417
  }
418
- function Xn(e, i) {
418
+ function Gn(e, i) {
419
419
  i.buffer = !1, i._b.forEach(([t, n]) => i.apply(t, n)), i._b = [];
420
420
  }
421
- function Gn() {
421
+ function ei() {
422
422
  const e = {};
423
423
  let i;
424
424
  return {
425
- count: (...t) => ei(i, e, ...t),
425
+ count: (...t) => ti(i, e, ...t),
426
426
  init(t) {
427
- i = t, t.on("message-added.deep", Lt(e, 1)), t.on("message-removed.deep", Lt(e, -1));
427
+ i = t, t.on("message-added.deep", Pt(e, 1)), t.on("message-removed.deep", Pt(e, -1));
428
428
  },
429
- merge: (t) => Pt(i, e, t),
429
+ merge: (t) => At(i, e, t),
430
430
  settled(t) {
431
431
  return F(e, t) ? e[t].promise : Promise.resolve();
432
432
  },
433
- unmerge: (t) => Pt(i, e, t, !0),
433
+ unmerge: (t) => At(i, e, t, !0),
434
434
  value(t) {
435
435
  return F(e, t) ? e[t].count : 0;
436
436
  }
437
437
  };
438
438
  }
439
- function ei(e, i, t, n, l = 0) {
440
- if (n = ti(n || t), !F(i, t)) {
439
+ function ti(e, i, t, n, l = 0) {
440
+ if (n = ni(n || t), !F(i, t)) {
441
441
  const s = {
442
442
  condition: n,
443
443
  count: 0,
@@ -452,24 +452,24 @@ function ei(e, i, t, n, l = 0) {
452
452
  r.ledger.count(s.name, s.condition), l += r.ledger.value(s.name);
453
453
  });
454
454
  }
455
- return Yt(i[t], l).promise;
455
+ return Qt(i[t], l).promise;
456
456
  }
457
- function ti(e) {
457
+ function ni(e) {
458
458
  return typeof e == "function" ? e : (i) => i.type === e;
459
459
  }
460
- function Yt(e, i) {
460
+ function Qt(e, i) {
461
461
  const t = e.count, n = e.count + i;
462
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;
463
463
  }
464
- function Lt(e, i) {
464
+ function Pt(e, i) {
465
465
  return (t) => {
466
466
  for (const n in e) {
467
467
  const l = e[n];
468
- l.condition(t.payload) && Yt(l, i);
468
+ l.condition(t.payload) && Qt(l, i);
469
469
  }
470
470
  };
471
471
  }
472
- function Pt(e, i, t, n = !1) {
472
+ function At(e, i, t, n = !1) {
473
473
  const l = e;
474
474
  for (const s in i) {
475
475
  const r = i[s].condition;
@@ -483,19 +483,19 @@ function Pt(e, i, t, n = !1) {
483
483
  }
484
484
  }
485
485
  }
486
- const vt = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new Map(), ht = qt(), ni = [];
487
- function ii(e) {
488
- e.props.id && (vt.set(e.props.id, e), Te.set(e, e.props.id), ht(e, {
486
+ const vt = /* @__PURE__ */ new Map(), Ue = /* @__PURE__ */ new Map(), ht = Zt(), ii = [];
487
+ function li(e) {
488
+ e.props.id && (vt.set(e.props.id, e), Ue.set(e, e.props.id), ht(e, {
489
489
  payload: e,
490
490
  name: e.props.id,
491
491
  bubble: !1,
492
492
  origin: e
493
493
  }));
494
494
  }
495
- function li(e) {
496
- if (Te.has(e)) {
497
- const i = Te.get(e);
498
- Te.delete(e), vt.delete(i), ht(e, {
495
+ function ai(e) {
496
+ if (Ue.has(e)) {
497
+ const i = Ue.get(e);
498
+ Ue.delete(e), vt.delete(i), ht(e, {
499
499
  payload: null,
500
500
  name: i,
501
501
  bubble: !1,
@@ -503,26 +503,26 @@ function li(e) {
503
503
  });
504
504
  }
505
505
  }
506
- function Qt(e) {
506
+ function Xt(e) {
507
507
  return vt.get(e);
508
508
  }
509
- function ai(e, i) {
510
- ni.push(ht.on(e, i));
509
+ function si(e, i) {
510
+ ii.push(ht.on(e, i));
511
511
  }
512
- function At(e, i, t) {
512
+ function Ot(e, i, t) {
513
513
  let n = !0;
514
514
  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;
515
515
  }
516
- function si(e) {
516
+ function ri(e) {
517
517
  const i = document.getElementById(e);
518
518
  if (i instanceof HTMLFormElement) {
519
519
  const t = new Event("submit", { cancelable: !0, bubbles: !0 });
520
520
  i.dispatchEvent(t);
521
521
  return;
522
522
  }
523
- Ee(151, e);
523
+ Te(151, e);
524
524
  }
525
- function ri(e) {
525
+ function oi(e) {
526
526
  const i = (t) => {
527
527
  for (const n in t.store) {
528
528
  const l = t.store[n];
@@ -531,79 +531,79 @@ function ri(e) {
531
531
  };
532
532
  i(e), e.walk(i);
533
533
  }
534
- function oi(e, i) {
535
- const t = typeof e == "string" ? Qt(e) : e;
534
+ function ui(e, i) {
535
+ const t = typeof e == "string" ? Xt(e) : e;
536
536
  if (t) {
537
- const n = (r) => de(r.props.initial) || (r.type === "group" ? {} : r.type === "list" ? [] : void 0);
537
+ const n = (r) => be(r.props.initial) || (r.type === "group" ? {} : r.type === "list" ? [] : void 0);
538
538
  t._e.pause(t);
539
- const l = de(i);
539
+ const l = be(i);
540
540
  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) => {
541
541
  r.type === "list" && r.sync || r.input(n(r), !1);
542
542
  }), t.input(et(l) && l ? l : n(t), !1), t.type !== "input" && i && !et(i) && xe(i) && t.walk((r) => {
543
543
  r.props.initial = xe(r.value) ? Ce(r.value) : r.value, r.props._init = t.props.initial;
544
- }), t._e.play(t), ri(t), t.emit("reset", t), t;
544
+ }), t._e.play(t), oi(t), t.emit("reset", t), t;
545
545
  }
546
- Ee(152, e);
546
+ Te(152, e);
547
547
  }
548
- const ui = {
548
+ const fi = {
549
549
  delimiter: ".",
550
550
  delay: 0,
551
551
  locale: "en",
552
- rootClasses: (e) => ({ [`formkit-${Ht(e)}`]: !0 })
553
- }, Xt = Symbol("index"), ot = Symbol("removed"), ut = Symbol("moved"), Gt = Symbol("inserted");
554
- function fi(e) {
552
+ rootClasses: (e) => ({ [`formkit-${qt(e)}`]: !0 })
553
+ }, Gt = Symbol("index"), ot = Symbol("removed"), ut = Symbol("moved"), en = Symbol("inserted");
554
+ function ci(e) {
555
555
  return e.type === "list" && Array.isArray(e._value);
556
556
  }
557
557
  function Xe(e) {
558
558
  return e && typeof e == "object" && e.__FKNode__ === !0;
559
559
  }
560
- const Be = (e, i, t) => {
561
- H(102, [e, t]);
562
- }, ci = {
563
- _c: V(xi, Be, !1),
564
- add: V(Ci),
565
- addProps: V(ki),
566
- address: V(Ri, Be, !1),
567
- at: V(Ei),
568
- bubble: V(zn),
569
- clearErrors: V(Ki),
570
- calm: V(gi),
560
+ const Ke = (e, i, t) => {
561
+ q(102, [e, t]);
562
+ }, pi = {
563
+ _c: V(Mi, Ke, !1),
564
+ add: V(Si),
565
+ addProps: V(Ci),
566
+ address: V(Ri, Ke, !1),
567
+ at: V(ji),
568
+ bubble: V(Un),
569
+ clearErrors: V(Ni),
570
+ calm: V($i),
571
571
  config: V(!1),
572
- define: V(wi),
573
- disturb: V(_i),
574
- destroy: V($i),
575
- extend: V(Wi),
576
- hydrate: V(vi),
577
- index: V(Oi, Ai, !1),
578
- input: V(nn),
579
- each: V(Ii),
580
- emit: V(Bn),
581
- find: V(Fi),
582
- on: V(Un),
583
- off: V(Kn),
584
- parent: V(!1, Si),
572
+ define: V(ki),
573
+ disturb: V(gi),
574
+ destroy: V(wi),
575
+ extend: V(Hi),
576
+ hydrate: V(hi),
577
+ index: V(xi, Oi, !1),
578
+ input: V(ln),
579
+ each: V(Li),
580
+ emit: V(zn),
581
+ find: V(Ti),
582
+ on: V(Kn),
583
+ off: V(Nn),
584
+ parent: V(!1, Vi),
585
585
  plugins: V(!1),
586
- remove: V(Vi),
587
- root: V(Ti, Be, !1),
588
- reset: V(Ui),
589
- resetConfig: V(Pi),
590
- setErrors: V(sn),
591
- submit: V(zi),
592
- t: V(Bi),
586
+ remove: V(Ii),
587
+ root: V(Bi, Ke, !1),
588
+ reset: V(Ki),
589
+ resetConfig: V(Ai),
590
+ setErrors: V(rn),
591
+ submit: V(Ui),
592
+ t: V(zi),
593
593
  use: V(_t),
594
- name: V(Mi, !1, !1),
595
- walk: V(Li)
594
+ name: V(Ei, !1, !1),
595
+ walk: V(Pi)
596
596
  };
597
- function pi() {
598
- return new Map(Object.entries(ci));
597
+ function di() {
598
+ return new Map(Object.entries(pi));
599
599
  }
600
600
  function V(e, i, t = !0) {
601
601
  return {
602
602
  get: e ? (n, l) => t ? (...s) => e(n, l, ...s) : e(n, l) : !1,
603
- set: i !== void 0 ? i : Be.bind(null)
603
+ set: i !== void 0 ? i : Ke.bind(null)
604
604
  };
605
605
  }
606
- function di() {
606
+ function mi() {
607
607
  const e = /* @__PURE__ */ new Map();
608
608
  return new Proxy(e, {
609
609
  get(i, t) {
@@ -611,46 +611,46 @@ function di() {
611
611
  }
612
612
  });
613
613
  }
614
- let en = 0, mi = 0;
615
- function bi(e) {
614
+ let tn = 0, bi = 0;
615
+ function yi(e) {
616
616
  var i, t;
617
- return ((i = e.parent) === null || i === void 0 ? void 0 : i.type) === "list" ? Xt : e.name || `${((t = e.props) === null || t === void 0 ? void 0 : t.type) || "input"}_${++en}`;
617
+ return ((i = e.parent) === null || i === void 0 ? void 0 : i.type) === "list" ? Gt : e.name || `${((t = e.props) === null || t === void 0 ? void 0 : t.type) || "input"}_${++tn}`;
618
618
  }
619
- function tn(e) {
619
+ function nn(e) {
620
620
  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;
621
621
  }
622
- function nn(e, i, t, n = !0) {
623
- return i._value = yi(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(Ke, e.props.delay, e, i)) : Ke(e, i), i.settled);
622
+ function ln(e, i, t, n = !0) {
623
+ return i._value = vi(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(We, e.props.delay, e, i)) : We(e, i), i.settled);
624
624
  }
625
- function yi(e, i) {
625
+ function vi(e, i) {
626
626
  switch (e.type) {
627
627
  case "input":
628
628
  break;
629
629
  case "group":
630
- (!i || typeof i != "object") && H(107, [e, i]);
630
+ (!i || typeof i != "object") && q(107, [e, i]);
631
631
  break;
632
632
  case "list":
633
- Array.isArray(i) || H(108, [e, i]);
633
+ Array.isArray(i) || q(108, [e, i]);
634
634
  break;
635
635
  }
636
636
  return i;
637
637
  }
638
- function Ke(e, i, t = !0, n = !0) {
638
+ function We(e, i, t = !0, n = !0) {
639
639
  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();
640
640
  }
641
- function ln(e, { name: i, value: t, from: n }) {
641
+ function an(e, { name: i, value: t, from: n }) {
642
642
  if (!Object.isFrozen(e._value)) {
643
- if (fi(e)) {
643
+ if (ci(e)) {
644
644
  const l = t === ot ? [] : t === ut && typeof n == "number" ? e._value.splice(n, 1) : [t];
645
- e._value.splice(i, t === ut || n === Gt ? 0 : 1, ...l);
645
+ e._value.splice(i, t === ut || n === en ? 0 : 1, ...l);
646
646
  return;
647
647
  }
648
648
  t !== ot ? e._value[i] = t : delete e._value[i];
649
649
  }
650
650
  }
651
- function vi(e, i) {
651
+ function hi(e, i) {
652
652
  const t = i._value;
653
- return e.type === "list" && e.sync && hi(e, i), i.children.forEach((n) => {
653
+ return e.type === "list" && e.sync && _i(e, i), i.children.forEach((n) => {
654
654
  if (typeof t == "object")
655
655
  if (n.name in t) {
656
656
  const l = n.type !== "input" || t[n.name] && typeof t[n.name] == "object" ? Ce(t[n.name]) : t[n.name];
@@ -658,10 +658,10 @@ function vi(e, i) {
658
658
  return;
659
659
  n.input(l, !1);
660
660
  } else
661
- (e.type !== "list" || typeof n.name == "number") && ln(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));
661
+ (e.type !== "list" || typeof n.name == "number") && an(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));
662
662
  }), e;
663
663
  }
664
- function hi(e, i) {
664
+ function _i(e, i) {
665
665
  const t = e._value;
666
666
  if (!Array.isArray(t))
667
667
  return;
@@ -690,50 +690,50 @@ function hi(e, i) {
690
690
  n[u] = o, l.delete(o);
691
691
  }
692
692
  r.forEach((o, u) => {
693
- n[o] = Ji({ value: u });
693
+ n[o] = Yi({ value: u });
694
694
  }), l.size && l.forEach((o) => {
695
695
  if (!("__FKP" in o)) {
696
696
  const u = o._c.parent;
697
- if (!u || Yi(u))
697
+ if (!u || Qi(u))
698
698
  return;
699
699
  u.ledger.unmerge(o), o._c.parent = null, o.destroy();
700
700
  }
701
701
  }), i.children = n;
702
702
  }
703
- function _i(e, i) {
703
+ function gi(e, i) {
704
704
  var t;
705
705
  return i._d <= 0 && (i.isSettled = !1, e.emit("settled", !1, !1), i.settled = new Promise((n) => {
706
706
  i._resolve = n;
707
707
  }), e.parent && ((t = e.parent) === null || t === void 0 || t.disturb())), i._d++, e;
708
708
  }
709
- function gi(e, i, t) {
709
+ function $i(e, i, t) {
710
710
  var n;
711
711
  if (t !== void 0 && e.type !== "input")
712
- return ln(i, t), Ke(e, i, !0, !1);
712
+ return an(i, t), We(e, i, !0, !1);
713
713
  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));
714
714
  }
715
- function $i(e, i) {
716
- e.emit("destroying", e), e.store.filter(() => !1), e.parent && (e.parent.emit("childRemoved", e), e.parent.remove(e)), li(e), e.emit("destroyed", e), i._e.flush(), i._value = i.value = void 0;
715
+ function wi(e, i) {
716
+ e.emit("destroying", e), e.store.filter(() => !1), e.parent && (e.parent.emit("childRemoved", e), e.parent.remove(e)), ai(e), e.emit("destroyed", e), i._e.flush(), i._value = i.value = void 0;
717
717
  for (const t in i.context)
718
718
  delete i.context[t];
719
719
  i.plugins.clear(), i.context = null;
720
720
  }
721
- function wi(e, i, t) {
722
- i.type = t.type, i.props.definition = Re(t), i.value = i._value = tn({
721
+ function ki(e, i, t) {
722
+ i.type = t.type, i.props.definition = Re(t), i.value = i._value = nn({
723
723
  type: e.type,
724
724
  value: i.value
725
725
  }), 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);
726
726
  }
727
- function ki(e, i, t) {
727
+ function Ci(e, i, t) {
728
728
  var n;
729
729
  if (e.props.attrs) {
730
730
  const l = { ...e.props.attrs };
731
731
  e.props._emit = !1;
732
732
  for (const r in l) {
733
- const o = De(r);
733
+ const o = ze(r);
734
734
  t.includes(o) && (e.props[o] = l[r], delete l[r]);
735
735
  }
736
- const s = de(i._value);
736
+ const s = be(i._value);
737
737
  e.props.initial = e.type !== "input" ? Ce(s) : s, e.props._emit = !0, e.props.attrs = l, e.props.definition && (e.props.definition.props = [
738
738
  ...((n = e.props.definition) === null || n === void 0 ? void 0 : n.props) || [],
739
739
  ...t
@@ -741,14 +741,14 @@ function ki(e, i, t) {
741
741
  }
742
742
  return e.emit("added-props", t), e;
743
743
  }
744
- function Ci(e, i, t, n) {
745
- if (e.type === "input" && H(100, e), t.parent && t.parent !== e && t.parent.remove(t), !i.children.includes(t)) {
744
+ function Si(e, i, t, n) {
745
+ if (e.type === "input" && q(100, e), t.parent && t.parent !== e && t.parent.remove(t), !i.children.includes(t)) {
746
746
  if (n !== void 0 && e.type === "list") {
747
747
  const l = i.children[n];
748
748
  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({
749
749
  name: n,
750
750
  value: t.value,
751
- from: Gt
751
+ from: en
752
752
  });
753
753
  } else
754
754
  i.children.push(t);
@@ -759,12 +759,12 @@ function Ci(e, i, t, n) {
759
759
  return e.remove(t), t.parent.add(t), e;
760
760
  } else
761
761
  t.use(e.plugins);
762
- return Ke(e, i, !1), e.ledger.merge(t), e.emit("child", t), e;
762
+ return We(e, i, !1), e.ledger.merge(t), e.emit("child", t), e;
763
763
  }
764
- function Si(e, i, t, n) {
764
+ function Vi(e, i, t, n) {
765
765
  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;
766
766
  }
767
- function Vi(e, i, t) {
767
+ function Ii(e, i, t) {
768
768
  const n = i.children.indexOf(t);
769
769
  if (n !== -1) {
770
770
  t.isSettled && e.disturb(), i.children.splice(n, 1);
@@ -778,10 +778,10 @@ function Vi(e, i, t) {
778
778
  }
779
779
  return e.ledger.unmerge(t), e;
780
780
  }
781
- function Ii(e, i, t) {
781
+ function Li(e, i, t) {
782
782
  i.children.forEach((n) => !("__FKP" in n) && t(n));
783
783
  }
784
- function Li(e, i, t, n = !1, l = !1) {
784
+ function Pi(e, i, t, n = !1, l = !1) {
785
785
  i.children.some((s) => {
786
786
  if ("__FKP" in s)
787
787
  return !1;
@@ -789,38 +789,38 @@ function Li(e, i, t, n = !1, l = !1) {
789
789
  return n && r === !1 ? !0 : l && r === !1 ? !1 : s.walk(t, n, l);
790
790
  });
791
791
  }
792
- function Pi(e, i) {
792
+ function Ai(e, i) {
793
793
  const t = e.parent || void 0;
794
- i.config = an(e.config._t, t), e.walk((n) => n.resetConfig());
794
+ i.config = sn(e.config._t, t), e.walk((n) => n.resetConfig());
795
795
  }
796
796
  function _t(e, i, t, n = !0, l = !0) {
797
797
  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);
798
798
  }
799
- function Ai(e, i, t, n) {
799
+ function Oi(e, i, t, n) {
800
800
  if (Xe(e.parent)) {
801
801
  const l = e.parent.children, s = n >= l.length ? l.length - 1 : n < 0 ? 0 : n, r = l.indexOf(e);
802
802
  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);
803
803
  }
804
804
  return !1;
805
805
  }
806
- function Oi(e) {
806
+ function xi(e) {
807
807
  if (e.parent) {
808
808
  const i = [...e.parent.children].indexOf(e);
809
809
  return i === -1 ? e.parent.children.length : i;
810
810
  }
811
811
  return -1;
812
812
  }
813
- function xi(e, i) {
813
+ function Mi(e, i) {
814
814
  return i;
815
815
  }
816
- function Mi(e, i) {
816
+ function Ei(e, i) {
817
817
  var t;
818
- return ((t = e.parent) === null || t === void 0 ? void 0 : t.type) === "list" ? e.index : i.name !== Xt ? i.name : e.index;
818
+ return ((t = e.parent) === null || t === void 0 ? void 0 : t.type) === "list" ? e.index : i.name !== Gt ? i.name : e.index;
819
819
  }
820
820
  function Ri(e, i) {
821
821
  return i.parent ? i.parent.address.concat([e.name]) : [e.name];
822
822
  }
823
- function Ei(e, i, t) {
823
+ function ji(e, i, t) {
824
824
  const n = typeof t == "string" ? t.split(e.config.delimiter) : t;
825
825
  if (!n.length)
826
826
  return;
@@ -839,12 +839,12 @@ function Ei(e, i, t) {
839
839
  s = e;
840
840
  break;
841
841
  default:
842
- s = s.children.find((o) => !("__FKP" in o) && String(o.name) === String(r)) || ji(s, r);
842
+ s = s.children.find((o) => !("__FKP" in o) && String(o.name) === String(r)) || Fi(s, r);
843
843
  }
844
844
  }
845
845
  return s || void 0;
846
846
  }
847
- function ji(e, i) {
847
+ function Fi(e, i) {
848
848
  const t = String(i).match(/^(find)\((.*)\)$/);
849
849
  if (t) {
850
850
  const [, n, l] = t, s = l.split(",").map((r) => r.trim());
@@ -856,7 +856,7 @@ function ji(e, i) {
856
856
  }
857
857
  }
858
858
  }
859
- function Fi(e, i, t, n) {
859
+ function Ti(e, i, t, n) {
860
860
  return Di(e, t, n);
861
861
  }
862
862
  function Di(e, i, t = "name") {
@@ -870,13 +870,13 @@ function Di(e, i, t = "name") {
870
870
  }
871
871
  }
872
872
  }
873
- function Ti(e) {
873
+ function Bi(e) {
874
874
  let i = e;
875
875
  for (; i.parent; )
876
876
  i = i.parent;
877
877
  return i;
878
878
  }
879
- function an(e = {}, i) {
879
+ function sn(e = {}, i) {
880
880
  let t;
881
881
  return new Proxy(e, {
882
882
  get(...n) {
@@ -896,7 +896,7 @@ function an(e = {}, i) {
896
896
  if (r !== void 0)
897
897
  return r;
898
898
  }
899
- return l === "delay" && (t == null ? void 0 : t.type) === "input" ? 20 : ui[l];
899
+ return l === "delay" && (t == null ? void 0 : t.type) === "input" ? 20 : fi[l];
900
900
  },
901
901
  set(...n) {
902
902
  const l = n[1], s = n[2];
@@ -906,42 +906,42 @@ function an(e = {}, i) {
906
906
  return e.rootConfig && e.rootConfig._rm(t), t = void 0, !0;
907
907
  if (!ue(e[l], s, !1)) {
908
908
  const r = Reflect.set(...n);
909
- return t && (t.emit(`config:${l}`, s, !1), At(t, l, s), t.walk((o) => At(o, l, s), !1, !0)), r;
909
+ return t && (t.emit(`config:${l}`, s, !1), Ot(t, l, s), t.walk((o) => Ot(o, l, s), !1, !0)), r;
910
910
  }
911
911
  return !0;
912
912
  }
913
913
  });
914
914
  }
915
- function Bi(e, i, t, n = "ui") {
915
+ function zi(e, i, t, n = "ui") {
916
916
  const l = typeof t == "string" ? { key: t, value: t, type: n } : t, s = e.hook.text.dispatch(l);
917
917
  return e.emit("text", s, !1), s.value;
918
918
  }
919
- function zi(e) {
919
+ function Ui(e) {
920
920
  const i = e.name;
921
921
  do {
922
922
  if (e.props.isForm === !0)
923
923
  break;
924
- e.parent || H(106, i), e = e.parent;
924
+ e.parent || q(106, i), e = e.parent;
925
925
  } while (e);
926
- e.props.id && si(e.props.id);
926
+ e.props.id && ri(e.props.id);
927
927
  }
928
- function Ui(e, i, t) {
929
- return oi(e, t);
928
+ function Ki(e, i, t) {
929
+ return ui(e, t);
930
930
  }
931
- function sn(e, i, t, n) {
931
+ function rn(e, i, t, n) {
932
932
  const l = `${e.name}-set`, s = e.hook.setErrors.dispatch({ localErrors: t, childErrors: n });
933
- return Yn(e, s.localErrors, s.childErrors).forEach((r) => {
933
+ return Qn(e, s.localErrors, s.childErrors).forEach((r) => {
934
934
  e.store.apply(r, (o) => o.meta.source === l);
935
935
  }), e;
936
936
  }
937
- function Ki(e, i, t = !0, n) {
938
- return sn(e, i, []), t && (n = n || `${e.name}-set`, e.walk((l) => {
937
+ function Ni(e, i, t = !0, n) {
938
+ return rn(e, i, []), t && (n = n || `${e.name}-set`, e.walk((l) => {
939
939
  l.store.filter((s) => !(s.type === "error" && s.meta && s.meta.source === n));
940
940
  })), e;
941
941
  }
942
- function Ni(e) {
942
+ function Wi(e) {
943
943
  const i = {
944
- initial: typeof e == "object" ? de(e) : e
944
+ initial: typeof e == "object" ? be(e) : e
945
945
  };
946
946
  let t, n = !0;
947
947
  return new Proxy(i, {
@@ -962,17 +962,17 @@ function Ni(e) {
962
962
  value: r
963
963
  });
964
964
  if (!ue(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)), _;
965
+ const g = Reflect.set(l, u, p, o);
966
+ return n && (t.emit("prop", { prop: u, value: p }), typeof u == "string" && t.emit(`prop:${u}`, p)), g;
967
967
  }
968
968
  return !0;
969
969
  }
970
970
  });
971
971
  }
972
- function Wi(e, i, t, n) {
972
+ function Hi(e, i, t, n) {
973
973
  return i.traps.set(t, n), e;
974
974
  }
975
- function Hi(e, i) {
975
+ function qi(e, i) {
976
976
  if (e.props.definition)
977
977
  return e.define(e.props.definition);
978
978
  for (const t of i) {
@@ -981,50 +981,50 @@ function Hi(e, i) {
981
981
  typeof t.library == "function" && t.library(e);
982
982
  }
983
983
  }
984
- function qi(e) {
985
- const i = tn(e), t = an(e.config || {}, e.parent);
984
+ function Zi(e) {
985
+ const i = nn(e), t = sn(e.config || {}, e.parent);
986
986
  return {
987
987
  _d: 0,
988
- _e: qt(),
988
+ _e: Zt(),
989
989
  uid: Symbol(),
990
990
  _resolve: !1,
991
991
  _tmo: !1,
992
992
  _value: i,
993
- children: On(e.children || []),
993
+ children: xn(e.children || []),
994
994
  config: t,
995
- hook: di(),
995
+ hook: mi(),
996
996
  isCreated: !1,
997
997
  isSettled: !0,
998
- ledger: Gn(),
999
- name: bi(e),
998
+ ledger: ei(),
999
+ name: yi(e),
1000
1000
  parent: e.parent || null,
1001
1001
  plugins: /* @__PURE__ */ new Set(),
1002
- props: Ni(i),
1002
+ props: Wi(i),
1003
1003
  settled: Promise.resolve(i),
1004
- store: Nn(!0),
1004
+ store: Wn(!0),
1005
1005
  sync: e.sync || !1,
1006
- traps: pi(),
1006
+ traps: di(),
1007
1007
  type: e.type || "input",
1008
1008
  value: i
1009
1009
  };
1010
1010
  }
1011
- function Zi(e, i) {
1011
+ function Ji(e, i) {
1012
1012
  var t, n, l;
1013
1013
  const s = (t = i.props) === null || t === void 0 ? void 0 : t.id;
1014
- if (s || (n = i.props) === null || n === void 0 || delete n.id, e.ledger.init(e.store._n = e.props._n = e.config._n = e), e.props._emit = !1, Object.assign(e.props, s ? {} : { id: `input_${mi++}` }, (l = i.props) !== null && l !== void 0 ? l : {}), e.props._emit = !0, Hi(e, /* @__PURE__ */ new Set([
1014
+ if (s || (n = i.props) === null || n === void 0 || delete n.id, e.ledger.init(e.store._n = e.props._n = e.config._n = e), e.props._emit = !1, Object.assign(e.props, s ? {} : { id: `input_${bi++}` }, (l = i.props) !== null && l !== void 0 ? l : {}), e.props._emit = !0, qi(e, /* @__PURE__ */ new Set([
1015
1015
  ...i.plugins || [],
1016
1016
  ...e.parent ? e.parent.plugins : []
1017
1017
  ])), i.plugins)
1018
1018
  for (const r of i.plugins)
1019
1019
  _t(e, e._c, r, !0, !1);
1020
- return e.each((r) => e.add(r)), e.parent && e.parent.add(e, i.index), e.type === "input" && e.children.length && H(100, e), nn(e, e._c, e._value, !1), e.store.release(), s && ii(e), e.emit("created", e), e.isCreated = !0, e;
1020
+ return e.each((r) => e.add(r)), e.parent && e.parent.add(e, i.index), e.type === "input" && e.children.length && q(100, e), ln(e, e._c, e._value, !1), e.store.release(), s && li(e), e.emit("created", e), e.isCreated = !0, e;
1021
1021
  }
1022
- function Ji(e) {
1022
+ function Yi(e) {
1023
1023
  var i, t, n, l;
1024
1024
  return {
1025
1025
  __FKP: !0,
1026
1026
  uid: Symbol(),
1027
- name: (i = e == null ? void 0 : e.name) !== null && i !== void 0 ? i : `p_${en++}`,
1027
+ name: (i = e == null ? void 0 : e.name) !== null && i !== void 0 ? i : `p_${tn++}`,
1028
1028
  value: (t = e == null ? void 0 : e.value) !== null && t !== void 0 ? t : null,
1029
1029
  _value: (n = e == null ? void 0 : e.value) !== null && n !== void 0 ? n : null,
1030
1030
  type: (l = e == null ? void 0 : e.type) !== null && l !== void 0 ? l : "input",
@@ -1036,11 +1036,11 @@ function Ji(e) {
1036
1036
  isSettled: !0
1037
1037
  };
1038
1038
  }
1039
- function Yi(e) {
1039
+ function Qi(e) {
1040
1040
  return "__FKP" in e;
1041
1041
  }
1042
- function Qi(e) {
1043
- const i = e || {}, t = qi(i), n = new Proxy(t, {
1042
+ function Xi(e) {
1043
+ const i = e || {}, t = Zi(i), n = new Proxy(t, {
1044
1044
  get(...l) {
1045
1045
  const [, s] = l;
1046
1046
  if (s === "__FKNode__")
@@ -1053,7 +1053,7 @@ function Qi(e) {
1053
1053
  return o && o.set ? o.set(n, t, s, r) : Reflect.set(...l);
1054
1054
  }
1055
1055
  });
1056
- return Zi(n, i);
1056
+ return Ji(n, i);
1057
1057
  }
1058
1058
  function ft(e) {
1059
1059
  return typeof e != "string" && F(e, "$el");
@@ -1061,19 +1061,19 @@ function ft(e) {
1061
1061
  function ct(e) {
1062
1062
  return typeof e != "string" && F(e, "$cmp");
1063
1063
  }
1064
- function ve(e) {
1064
+ function _e(e) {
1065
1065
  return !e || typeof e == "string" ? !1 : F(e, "if") && F(e, "then");
1066
1066
  }
1067
- function Xi(e) {
1067
+ function Gi(e) {
1068
1068
  return typeof e != "string" && "$formkit" in e;
1069
1069
  }
1070
- function Gi(e) {
1070
+ function el(e) {
1071
1071
  if (typeof e == "string")
1072
1072
  return {
1073
1073
  $el: "text",
1074
1074
  children: e
1075
1075
  };
1076
- if (Xi(e)) {
1076
+ if (Gi(e)) {
1077
1077
  const { $formkit: i, for: t, if: n, children: l, bind: s, ...r } = e;
1078
1078
  return Object.assign({
1079
1079
  $cmp: "FormKit",
@@ -1088,164 +1088,164 @@ function J(e) {
1088
1088
  return typeof d == "function" ? d(m) : d;
1089
1089
  }, l = [
1090
1090
  {
1091
- "&&": (c, d, m) => n(c, m) && n(d, m),
1092
- "||": (c, d, m) => n(c, m) || n(d, m)
1091
+ "&&": (f, d, m) => n(f, m) && n(d, m),
1092
+ "||": (f, d, m) => n(f, m) || n(d, m)
1093
1093
  },
1094
1094
  {
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),
1102
- "<": (c, d, m) => n(c, 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
+ "==": (f, d, m) => n(f, m) == n(d, m),
1098
+ "!=": (f, d, m) => n(f, m) != n(d, m),
1099
+ ">=": (f, d, m) => n(f, m) >= n(d, m),
1100
+ "<=": (f, d, m) => n(f, m) <= n(d, m),
1101
+ ">": (f, d, m) => n(f, m) > n(d, m),
1102
+ "<": (f, d, m) => n(f, m) < n(d, m)
1103
1103
  },
1104
1104
  {
1105
- "+": (c, d, m) => n(c, m) + n(d, m),
1106
- "-": (c, d, m) => n(c, m) - n(d, m)
1105
+ "+": (f, d, m) => n(f, m) + n(d, m),
1106
+ "-": (f, d, m) => n(f, m) - n(d, m)
1107
1107
  },
1108
1108
  {
1109
- "*": (c, d, m) => n(c, m) * n(d, m),
1110
- "/": (c, d, m) => n(c, m) / n(d, m),
1111
- "%": (c, d, m) => n(c, m) % n(d, m)
1112
- }
1113
- ], s = l.reduce((c, d) => c.concat(Object.keys(d)), []), r = new Set(s.map((c) => c.charAt(0)));
1114
- function o(c, d, m, y) {
1115
- const g = c.filter((v) => v.startsWith(d));
1116
- return g.length ? g.find((v) => y.length >= m + v.length && y.substring(m, m + v.length) === v ? v : !1) : !1;
1117
- }
1118
- function u(c, d, m = 1) {
1119
- let y = m ? d.substring(c + 1).trim() : d.substring(0, c).trim();
1120
- if (!y.length)
1109
+ "*": (f, d, m) => n(f, m) * n(d, m),
1110
+ "/": (f, d, m) => n(f, m) / n(d, m),
1111
+ "%": (f, d, m) => n(f, m) % n(d, m)
1112
+ }
1113
+ ], s = l.reduce((f, d) => f.concat(Object.keys(d)), []), r = new Set(s.map((f) => f.charAt(0)));
1114
+ function o(f, d, m, h) {
1115
+ const $ = f.filter((_) => _.startsWith(d));
1116
+ return $.length ? $.find((_) => h.length >= m + _.length && h.substring(m, m + _.length) === _ ? _ : !1) : !1;
1117
+ }
1118
+ function u(f, d, m = 1) {
1119
+ let h = m ? d.substring(f + 1).trim() : d.substring(0, f).trim();
1120
+ if (!h.length)
1121
1121
  return -1;
1122
1122
  if (!m) {
1123
- const v = y.split("").reverse(), w = v.findIndex((f) => r.has(f));
1124
- y = v.slice(w).join("");
1123
+ const _ = h.split("").reverse(), k = _.findIndex((c) => r.has(c));
1124
+ h = _.slice(k).join("");
1125
1125
  }
1126
- const g = y[0];
1127
- return l.findIndex((v) => {
1128
- const w = Object.keys(v);
1129
- return !!o(w, g, 0, y);
1126
+ const $ = h[0];
1127
+ return l.findIndex((_) => {
1128
+ const k = Object.keys(_);
1129
+ return !!o(k, $, 0, h);
1130
1130
  });
1131
1131
  }
1132
- function p(c, d) {
1132
+ function p(f, d) {
1133
1133
  let m = "";
1134
- const y = d.length;
1135
- let g = 0;
1136
- for (let v = c; v < y; v++) {
1137
- const w = d.charAt(v);
1138
- if (w === "(")
1139
- g++;
1140
- else if (w === ")")
1141
- g--;
1142
- else if (g === 0 && w === " ")
1134
+ const h = d.length;
1135
+ let $ = 0;
1136
+ for (let _ = f; _ < h; _++) {
1137
+ const k = d.charAt(_);
1138
+ if (k === "(")
1139
+ $++;
1140
+ else if (k === ")")
1141
+ $--;
1142
+ else if ($ === 0 && k === " ")
1143
1143
  continue;
1144
- if (g === 0 && o(s, w, v, d))
1145
- return [m, v - 1];
1146
- m += w;
1144
+ if ($ === 0 && o(s, k, _, d))
1145
+ return [m, _ - 1];
1146
+ m += k;
1147
1147
  }
1148
1148
  return [m, d.length - 1];
1149
1149
  }
1150
- function _(c, d = 0) {
1151
- const m = l[d], y = c.length, g = Object.keys(m);
1152
- let v = 0, w = !1, f = null, b = "", k = null, I, B = "", S = "", R = "", O = "", N = 0;
1153
- const q = (x, W) => {
1154
- x ? R += W : b += W;
1150
+ function g(f, d = 0) {
1151
+ const m = l[d], h = f.length, $ = Object.keys(m);
1152
+ let _ = 0, k = !1, c = null, b = "", C = null, L, B = "", S = "", R = "", x = "", N = 0;
1153
+ const Z = (M, W) => {
1154
+ M ? R += W : b += W;
1155
1155
  };
1156
- for (let x = 0; x < y; x++)
1157
- if (B = S, S = c.charAt(x), (S === "'" || S === '"') && B !== "\\" && (v === 0 && !w || v && !O)) {
1158
- v ? O = S : w = S, q(v, S);
1156
+ for (let M = 0; M < h; M++)
1157
+ if (B = S, S = f.charAt(M), (S === "'" || S === '"') && B !== "\\" && (_ === 0 && !k || _ && !x)) {
1158
+ _ ? x = S : k = S, Z(_, S);
1159
1159
  continue;
1160
- } else if (w && (S !== w || B === "\\") || O && (S !== O || B === "\\")) {
1161
- q(v, S);
1160
+ } else if (k && (S !== k || B === "\\") || x && (S !== x || B === "\\")) {
1161
+ Z(_, S);
1162
1162
  continue;
1163
- } else if (w === S) {
1164
- w = !1, q(v, S);
1163
+ } else if (k === S) {
1164
+ k = !1, Z(_, S);
1165
1165
  continue;
1166
- } else if (O === S) {
1167
- O = !1, q(v, S);
1166
+ } else if (x === S) {
1167
+ x = !1, Z(_, S);
1168
1168
  continue;
1169
1169
  } else {
1170
1170
  if (S === " ")
1171
1171
  continue;
1172
1172
  if (S === "(")
1173
- v === 0 ? N = x : R += S, v++;
1173
+ _ === 0 ? N = M : R += S, _++;
1174
1174
  else if (S === ")")
1175
- if (v--, v === 0) {
1176
- const W = typeof b == "string" && b.startsWith("$") ? b : void 0, Le = W && c.charAt(x + 1) === ".";
1175
+ if (_--, _ === 0) {
1176
+ const W = typeof b == "string" && b.startsWith("$") ? b : void 0, Le = W && f.charAt(M + 1) === ".";
1177
1177
  let se = "";
1178
- Le && ([se, x] = p(x + 2, c));
1179
- const Fe = f ? d : u(N, c, 0), Pe = u(x, c);
1180
- Fe === -1 && Pe === -1 ? (b = A(R, -1, W, se), typeof b == "string" && (b = R)) : f && (Fe >= Pe || Pe === -1) && d === Fe ? (k = f.bind(null, A(R, -1, W, se)), f = null, b = "") : Pe > Fe && d === Pe ? b = A(R, -1, W, se) : b += `(${R})${Le ? `.${se}` : ""}`, R = "";
1178
+ Le && ([se, M] = p(M + 2, f));
1179
+ const Be = c ? d : u(N, f, 0), Pe = u(M, f);
1180
+ Be === -1 && Pe === -1 ? (b = I(R, -1, W, se), typeof b == "string" && (b = R)) : c && (Be >= Pe || Pe === -1) && d === Be ? (C = c.bind(null, I(R, -1, W, se)), c = null, b = "") : Pe > Be && d === Pe ? b = I(R, -1, W, se) : b += `(${R})${Le ? `.${se}` : ""}`, R = "";
1181
1181
  } else
1182
1182
  R += S;
1183
- else if (v === 0 && (I = o(g, S, x, c))) {
1184
- 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 = "");
1183
+ else if (_ === 0 && (L = o($, S, M, f))) {
1184
+ M === 0 && q(103, [L, f]), M += L.length - 1, M === f.length - 1 && q(104, [L, f]), c ? b && (C = c.bind(null, I(b, d)), c = m[L].bind(null, C), b = "") : C ? (c = m[L].bind(null, I(C, d)), C = null) : (c = m[L].bind(null, I(b, d)), b = "");
1185
1185
  continue;
1186
1186
  } else
1187
- q(v, S);
1187
+ Z(_, S);
1188
1188
  }
1189
- return b && f && (f = f.bind(null, A(b, d))), f = !f && k ? k : f, !f && b && (f = (x, W) => typeof x == "function" ? x(W) : x, f = f.bind(null, A(b, d))), !f && !b && H(105, c), f;
1189
+ return b && c && (c = c.bind(null, I(b, d))), c = !c && C ? C : c, !c && b && (c = (M, W) => typeof M == "function" ? M(W) : M, c = c.bind(null, I(b, d))), !c && !b && q(105, f), c;
1190
1190
  }
1191
- function A(c, d, m, y) {
1191
+ function I(f, d, m, h) {
1192
1192
  if (m) {
1193
- const g = A(m, l.length);
1194
- let v, w = y ? J(`$${y}`) : !1;
1195
- if (typeof g == "function") {
1196
- const f = En(String(c)).map((b) => A(b, -1));
1193
+ const $ = I(m, l.length);
1194
+ let _, k = h ? J(`$${h}`) : !1;
1195
+ if (typeof $ == "function") {
1196
+ const c = jn(String(f)).map((b) => I(b, -1));
1197
1197
  return (b) => {
1198
- const k = g(b);
1199
- return typeof k != "function" ? (Ee(150, m), k) : (v = k(...f.map((I) => typeof I == "function" ? I(b) : I)), w && (w = w.provide((I) => {
1200
- const B = i(I);
1201
- return I.reduce((R, O) => {
1202
- if (O === y || (y == null ? void 0 : y.startsWith(`${O}(`))) {
1203
- const q = Fn(v, O);
1204
- R[O] = () => q;
1198
+ const C = $(b);
1199
+ return typeof C != "function" ? (Te(150, m), C) : (_ = C(...c.map((L) => typeof L == "function" ? L(b) : L)), k && (k = k.provide((L) => {
1200
+ const B = i(L);
1201
+ return L.reduce((R, x) => {
1202
+ if (x === h || (h == null ? void 0 : h.startsWith(`${x}(`))) {
1203
+ const Z = Tn(_, x);
1204
+ R[x] = () => Z;
1205
1205
  } else
1206
- R[O] = B[O];
1206
+ R[x] = B[x];
1207
1207
  return R;
1208
1208
  }, {});
1209
- })), w ? w() : v);
1209
+ })), k ? k() : _);
1210
1210
  };
1211
1211
  }
1212
- } else if (typeof c == "string") {
1213
- if (c === "true")
1212
+ } else if (typeof f == "string") {
1213
+ if (f === "true")
1214
1214
  return !0;
1215
- if (c === "false")
1215
+ if (f === "false")
1216
1216
  return !1;
1217
- if (c === "undefined")
1217
+ if (f === "undefined")
1218
1218
  return;
1219
- if (Mn(c))
1220
- return Rn(c.substring(1, c.length - 1));
1221
- if (!isNaN(+c))
1222
- return Number(c);
1219
+ if (En(f))
1220
+ return Rn(f.substring(1, f.length - 1));
1221
+ if (!isNaN(+f))
1222
+ return Number(f);
1223
1223
  if (d < l.length - 1)
1224
- return _(c, d + 1);
1225
- if (c.startsWith("$")) {
1226
- const g = c.substring(1);
1227
- return t.add(g), function(w) {
1228
- return g in w ? w[g]() : void 0;
1224
+ return g(f, d + 1);
1225
+ if (f.startsWith("$")) {
1226
+ const $ = f.substring(1);
1227
+ return t.add($), function(k) {
1228
+ return $ in k ? k[$]() : void 0;
1229
1229
  };
1230
1230
  }
1231
- return c;
1231
+ return f;
1232
1232
  }
1233
- return c;
1233
+ return f;
1234
1234
  }
1235
- const Z = _(e.startsWith("$:") ? e.substring(2) : e), $ = Array.from(t);
1236
- function h(c) {
1237
- return i = c, Object.assign(
1235
+ const H = g(e.startsWith("$:") ? e.substring(2) : e), v = Array.from(t);
1236
+ function y(f) {
1237
+ return i = f, Object.assign(
1238
1238
  // @ts-ignore - @rollup/plugin-typescript doesn't like this
1239
- Z.bind(null, c($)),
1240
- { provide: h }
1239
+ H.bind(null, f(v)),
1240
+ { provide: y }
1241
1241
  );
1242
1242
  }
1243
- return Object.assign(Z, {
1244
- provide: h
1243
+ return Object.assign(H, {
1244
+ provide: y
1245
1245
  });
1246
1246
  }
1247
- const Ot = "0.19.0";
1248
- function el(e) {
1247
+ const xt = "1.0.0";
1248
+ function tl(e) {
1249
1249
  let i = 1;
1250
1250
  return Array.isArray(e) ? e.map((t) => typeof t == "string" || typeof t == "number" ? {
1251
1251
  label: String(t),
@@ -1270,9 +1270,9 @@ function Ve(e, i) {
1270
1270
  return e === null && i === void 0 || e === void 0 && i === null ? !1 : e == i ? !0 : ke(e) && ke(i) ? ue(e, i) : !1;
1271
1271
  }
1272
1272
  function gt(e) {
1273
- e.hook.prop((i, t) => (i.prop === "options" && (typeof i.value == "function" ? (e.props.optionsLoader = i.value, i.value = []) : i.value = el(i.value)), t(i)));
1273
+ e.hook.prop((i, t) => (i.prop === "options" && (typeof i.value == "function" ? (e.props.optionsLoader = i.value, i.value = []) : i.value = tl(i.value)), t(i)));
1274
1274
  }
1275
- function C(e, i, t = !1) {
1275
+ function w(e, i, t = !1) {
1276
1276
  return (...n) => {
1277
1277
  const l = (s) => {
1278
1278
  const r = !i || typeof i == "string" ? { $el: i } : i();
@@ -1287,22 +1287,22 @@ function C(e, i, t = !1) {
1287
1287
  else: e in s ? Ae(r, s[e]) : r
1288
1288
  };
1289
1289
  };
1290
- return l._s = e, t ? tl(l) : l;
1290
+ return l._s = e, t ? nl(l) : l;
1291
1291
  };
1292
1292
  }
1293
- function tl(e) {
1293
+ function nl(e) {
1294
1294
  return (i) => [e(i)];
1295
1295
  }
1296
- function Ne(e) {
1296
+ function He(e) {
1297
1297
  return typeof e == "object" && ("$el" in e || "$cmp" in e || "$formkit" in e);
1298
1298
  }
1299
1299
  function Ae(e, i = {}) {
1300
- return typeof e == "string" ? Ne(i) || typeof i == "string" ? i : e : Array.isArray(e) ? Ne(i) ? i : e : Qe(e, i);
1300
+ return typeof e == "string" ? He(i) || typeof i == "string" ? i : e : Array.isArray(e) ? He(i) ? i : e : Qe(e, i);
1301
1301
  }
1302
- const nl = C("actions", () => ({
1302
+ const il = w("actions", () => ({
1303
1303
  $el: "div",
1304
1304
  if: "$actions"
1305
- })), We = C("input", () => ({
1305
+ })), qe = w("input", () => ({
1306
1306
  $el: "input",
1307
1307
  bind: "$attrs",
1308
1308
  attrs: {
@@ -1328,19 +1328,19 @@ const nl = C("actions", () => ({
1328
1328
  }
1329
1329
  }
1330
1330
  }
1331
- })), rn = C("optionHelp", () => ({
1331
+ })), on = w("optionHelp", () => ({
1332
1332
  $el: "div",
1333
1333
  if: "$option.help",
1334
1334
  attrs: {
1335
1335
  id: '$: "help-" + $option.attrs.id'
1336
1336
  }
1337
- })), xt = C("inner", "span"), He = C("label", "span"), on = C("option", () => ({
1337
+ })), Mt = w("inner", "span"), Ze = w("label", "span"), un = w("option", () => ({
1338
1338
  $el: "li",
1339
1339
  for: ["option", "$options"],
1340
1340
  attrs: {
1341
1341
  "data-disabled": "$option.attrs.disabled || $disabled"
1342
1342
  }
1343
- })), un = C("options", "ul"), qe = C("wrapper", () => ({
1343
+ })), fn = w("options", "ul"), Je = w("wrapper", () => ({
1344
1344
  $el: "label",
1345
1345
  attrs: {
1346
1346
  "data-disabled": {
@@ -1354,7 +1354,7 @@ const nl = C("actions", () => ({
1354
1354
  else: "$fns.isChecked($option.value) || undefined"
1355
1355
  }
1356
1356
  }
1357
- })), il = C("input", () => ({
1357
+ })), ll = w("input", () => ({
1358
1358
  $el: "button",
1359
1359
  bind: "$attrs",
1360
1360
  attrs: {
@@ -1363,12 +1363,12 @@ const nl = C("actions", () => ({
1363
1363
  name: "$node.name",
1364
1364
  id: "$id"
1365
1365
  }
1366
- })), ll = C("default", null), Ze = C("decorator", () => ({
1366
+ })), al = w("default", null), Ye = w("decorator", () => ({
1367
1367
  $el: "span",
1368
1368
  attrs: {
1369
1369
  "aria-hidden": "true"
1370
1370
  }
1371
- })), fn = C("fieldset", () => ({
1371
+ })), cn = w("fieldset", () => ({
1372
1372
  $el: "fieldset",
1373
1373
  attrs: {
1374
1374
  id: "$id",
@@ -1378,7 +1378,7 @@ const nl = C("actions", () => ({
1378
1378
  else: void 0
1379
1379
  }
1380
1380
  }
1381
- })), al = C("input", () => ({
1381
+ })), sl = w("input", () => ({
1382
1382
  $el: "input",
1383
1383
  bind: "$attrs",
1384
1384
  attrs: {
@@ -1390,10 +1390,10 @@ const nl = C("actions", () => ({
1390
1390
  id: "$id",
1391
1391
  "aria-describedby": "$describedBy"
1392
1392
  }
1393
- })), sl = C("fileItem", () => ({
1393
+ })), rl = w("fileItem", () => ({
1394
1394
  $el: "li",
1395
1395
  for: ["file", "$value"]
1396
- })), rl = C("fileList", () => ({
1396
+ })), ol = w("fileList", () => ({
1397
1397
  $el: "ul",
1398
1398
  if: "$value.length",
1399
1399
  attrs: {
@@ -1402,17 +1402,18 @@ const nl = C("actions", () => ({
1402
1402
  then: "true"
1403
1403
  }
1404
1404
  }
1405
- })), ol = C("fileName", () => ({
1405
+ })), ul = w("fileName", () => ({
1406
1406
  $el: "span",
1407
1407
  attrs: {
1408
1408
  class: "$classes.fileName"
1409
1409
  }
1410
- })), Mt = C("fileRemove", () => ({
1410
+ })), Et = w("fileRemove", () => ({
1411
1411
  $el: "button",
1412
1412
  attrs: {
1413
+ type: "button",
1413
1414
  onClick: "$handlers.resetFiles"
1414
1415
  }
1415
- })), ul = C("form", () => ({
1416
+ })), fl = w("form", () => ({
1416
1417
  $el: "form",
1417
1418
  bind: "$attrs",
1418
1419
  attrs: {
@@ -1421,13 +1422,13 @@ const nl = C("actions", () => ({
1421
1422
  onSubmit: "$handlers.submit",
1422
1423
  "data-loading": "$state.loading || undefined"
1423
1424
  }
1424
- })), $t = C("wrapper", null, !0), Q = C("help", () => ({
1425
+ })), $t = w("wrapper", null, !0), X = w("help", () => ({
1425
1426
  $el: "div",
1426
1427
  if: "$help",
1427
1428
  attrs: {
1428
1429
  id: '$: "help-" + $id'
1429
1430
  }
1430
- })), z = (e, i) => C(`${e}Icon`, () => {
1431
+ })), z = (e, i) => w(`${e}Icon`, () => {
1431
1432
  const t = `_raw${e.charAt(0).toUpperCase()}${e.slice(1)}Icon`;
1432
1433
  return {
1433
1434
  if: `$${e}Icon && $${t}`,
@@ -1442,16 +1443,16 @@ const nl = C("actions", () => ({
1442
1443
  }
1443
1444
  }
1444
1445
  };
1445
- })(), me = C("inner", "div"), je = C("label", () => ({
1446
+ })(), ye = w("inner", "div"), De = w("label", () => ({
1446
1447
  $el: "label",
1447
1448
  if: "$label",
1448
1449
  attrs: {
1449
1450
  for: "$id"
1450
1451
  }
1451
- })), cn = C("legend", () => ({
1452
+ })), pn = w("legend", () => ({
1452
1453
  $el: "legend",
1453
1454
  if: "$label"
1454
- })), le = C("message", () => ({
1455
+ })), le = w("message", () => ({
1455
1456
  $el: "li",
1456
1457
  for: ["message", "$messages"],
1457
1458
  attrs: {
@@ -1459,13 +1460,13 @@ const nl = C("actions", () => ({
1459
1460
  id: "$id + '-' + $message.key",
1460
1461
  "data-message-type": "$message.type"
1461
1462
  }
1462
- })), ae = C("messages", () => ({
1463
+ })), ae = w("messages", () => ({
1463
1464
  $el: "ul",
1464
1465
  if: "$defaultMessagePlacement && $fns.length($messages)"
1465
- })), fl = C("noFiles", () => ({
1466
+ })), cl = w("noFiles", () => ({
1466
1467
  $el: "span",
1467
1468
  if: "$value.length == 0"
1468
- })), cl = C("option", () => ({
1469
+ })), pl = w("option", () => ({
1469
1470
  $el: "option",
1470
1471
  for: ["option", "$options"],
1471
1472
  bind: "$option.attrs",
@@ -1474,12 +1475,12 @@ const nl = C("actions", () => ({
1474
1475
  value: "$option.value",
1475
1476
  selected: "$fns.isSelected($option)"
1476
1477
  }
1477
- })), pl = () => ({
1478
+ })), dl = () => ({
1478
1479
  $el: null,
1479
1480
  if: "$options.length",
1480
1481
  for: ["option", "$options"],
1481
1482
  children: "$slots.option"
1482
- }), fe = C("outer", () => ({
1483
+ }), fe = w("outer", () => ({
1483
1484
  $el: "div",
1484
1485
  attrs: {
1485
1486
  key: "$id",
@@ -1497,7 +1498,7 @@ const nl = C("actions", () => ({
1497
1498
  "data-prefix-icon-click": "$onPrefixIconClick !== undefined || undefined",
1498
1499
  "data-suffix-icon-click": "$onSuffixIconClick !== undefined || undefined"
1499
1500
  }
1500
- })), X = C("prefix", null), dl = C("input", () => ({
1501
+ })), G = w("prefix", null), ml = w("input", () => ({
1501
1502
  $el: "select",
1502
1503
  bind: "$attrs",
1503
1504
  attrs: {
@@ -1511,7 +1512,7 @@ const nl = C("actions", () => ({
1511
1512
  onBlur: "$handlers.blur",
1512
1513
  "aria-describedby": "$describedBy"
1513
1514
  }
1514
- })), ml = C("submit", () => ({
1515
+ })), bl = w("submit", () => ({
1515
1516
  $cmp: "FormKit",
1516
1517
  bind: "$submitAttrs",
1517
1518
  props: {
@@ -1519,7 +1520,7 @@ const nl = C("actions", () => ({
1519
1520
  disabled: "$disabled",
1520
1521
  label: "$submitLabel"
1521
1522
  }
1522
- })), G = C("suffix", null), pn = C("input", () => ({
1523
+ })), ee = w("suffix", null), dn = w("input", () => ({
1523
1524
  $el: "input",
1524
1525
  bind: "$attrs",
1525
1526
  attrs: {
@@ -1532,7 +1533,7 @@ const nl = C("actions", () => ({
1532
1533
  id: "$id",
1533
1534
  "aria-describedby": "$describedBy"
1534
1535
  }
1535
- })), bl = C("input", () => ({
1536
+ })), yl = w("input", () => ({
1536
1537
  $el: "textarea",
1537
1538
  bind: "$attrs",
1538
1539
  attrs: {
@@ -1545,8 +1546,8 @@ const nl = C("actions", () => ({
1545
1546
  "aria-describedby": "$describedBy"
1546
1547
  },
1547
1548
  children: "$initialValue"
1548
- })), Ie = C("wrapper", "div");
1549
- function dn(e) {
1549
+ })), Ie = w("wrapper", "div");
1550
+ function mn(e) {
1550
1551
  return function(i, t) {
1551
1552
  return i.prop === "options" && Array.isArray(i.value) && (i.value = i.value.map((n) => {
1552
1553
  var l;
@@ -1560,24 +1561,24 @@ function dn(e) {
1560
1561
  }))), t(i);
1561
1562
  };
1562
1563
  }
1563
- function yl(e, i) {
1564
+ function vl(e, i) {
1564
1565
  const t = i.target;
1565
1566
  if (t instanceof HTMLInputElement) {
1566
1567
  const n = Array.isArray(e.props.options) ? Se(e.props.options, t.value) : t.value;
1567
1568
  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);
1568
1569
  }
1569
1570
  }
1570
- function vl(e, i) {
1571
+ function hl(e, i) {
1571
1572
  var t, n;
1572
1573
  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;
1573
1574
  }
1574
- function hl(e) {
1575
+ function _l(e) {
1575
1576
  e.on("created", () => {
1576
1577
  var i, t;
1577
- !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = yl.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = vl.bind(null, e)), F(e.props, "onValue") || (e.props.onValue = !0), F(e.props, "offValue") || (e.props.offValue = !1);
1578
- }), e.hook.prop(dn(e));
1578
+ !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = vl.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = hl.bind(null, e)), F(e.props, "onValue") || (e.props.onValue = !0), F(e.props, "offValue") || (e.props.offValue = !1);
1579
+ }), e.hook.prop(mn(e));
1579
1580
  }
1580
- function _e(e, i) {
1581
+ function ge(e, i) {
1581
1582
  return (t) => {
1582
1583
  t.props[`${e}Icon`] === void 0 && (t.props[`${e}Icon`] = i.startsWith("<svg") ? i : `default:${i}`);
1583
1584
  };
@@ -1589,7 +1590,7 @@ function wt(e) {
1589
1590
  e.config.disabled = Y(i);
1590
1591
  });
1591
1592
  }
1592
- function ze(e, i) {
1593
+ function Me(e, i) {
1593
1594
  return (t) => {
1594
1595
  t.store.set(oe({
1595
1596
  key: e,
@@ -1603,14 +1604,14 @@ function ze(e, i) {
1603
1604
  };
1604
1605
  }
1605
1606
  const tt = typeof window < "u";
1606
- function mn(e) {
1607
+ function bn(e) {
1607
1608
  e.target instanceof HTMLElement && e.target.hasAttribute("data-file-hover") && e.target.removeAttribute("data-file-hover");
1608
1609
  }
1609
1610
  function Rt(e, i) {
1610
- i.target instanceof HTMLInputElement ? e === "dragover" && i.target.setAttribute("data-file-hover", "true") : i.preventDefault(), e === "drop" && mn(i);
1611
+ i.target instanceof HTMLInputElement ? e === "dragover" && i.target.setAttribute("data-file-hover", "true") : i.preventDefault(), e === "drop" && bn(i);
1611
1612
  }
1612
- function _l(e) {
1613
- ze("noFiles", "Select file")(e), ze("removeAll", "Remove all")(e), ze("remove")(e), tt && (window._FormKit_File_Drop || (window.addEventListener("dragover", Rt.bind(null, "dragover")), window.addEventListener("drop", Rt.bind(null, "drop")), window.addEventListener("dragleave", mn), window._FormKit_File_Drop = !0)), e.hook.input((i, t) => t(Array.isArray(i) ? i : [])), e.on("reset", () => {
1613
+ function gl(e) {
1614
+ Me("noFiles", "Select file")(e), Me("removeAll", "Remove all")(e), Me("remove")(e), tt && (window._FormKit_File_Drop || (window.addEventListener("dragover", Rt.bind(null, "dragover")), window.addEventListener("drop", Rt.bind(null, "drop")), window.addEventListener("dragleave", bn), window._FormKit_File_Drop = !0)), e.hook.input((i, t) => t(Array.isArray(i) ? i : [])), e.on("reset", () => {
1614
1615
  if (e.props.id && tt) {
1615
1616
  const i = document.getElementById(e.props.id);
1616
1617
  i && (i.value = "");
@@ -1619,7 +1620,7 @@ function _l(e) {
1619
1620
  Array.isArray(e.value) || e.input([], !1), e.context && (e.context.handlers.resetFiles = (i) => {
1620
1621
  if (i.preventDefault(), e.input([]), e.props.id && tt) {
1621
1622
  const t = document.getElementById(e.props.id);
1622
- t && (t.value = "");
1623
+ t && (t.value = ""), t == null || t.focus();
1623
1624
  }
1624
1625
  }, e.context.handlers.files = (i) => {
1625
1626
  var t, n;
@@ -1635,21 +1636,21 @@ function _l(e) {
1635
1636
  });
1636
1637
  });
1637
1638
  }
1638
- const Et = oe({
1639
+ const jt = oe({
1639
1640
  key: "loading",
1640
1641
  value: !0,
1641
1642
  visible: !1
1642
1643
  });
1643
- async function gl(e, i) {
1644
+ async function $l(e, i) {
1644
1645
  const t = Math.random();
1645
- if (e.props._submitNonce = t, i.preventDefault(), await e.settled, e.ledger.value("validating") && (e.store.set(Et), await e.ledger.settled("validating"), e.store.remove("loading"), e.props._submitNonce !== t))
1646
+ if (e.props._submitNonce = t, i.preventDefault(), await e.settled, e.ledger.value("validating") && (e.store.set(jt), await e.ledger.settled("validating"), e.store.remove("loading"), e.props._submitNonce !== t))
1646
1647
  return;
1647
1648
  const n = (l) => l.store.set(oe({
1648
1649
  key: "submitted",
1649
1650
  value: !0,
1650
1651
  visible: !1
1651
1652
  }));
1652
- if (e.walk(n), n(e), typeof e.props.onSubmitRaw == "function" && e.props.onSubmitRaw(i, e), e.ledger.value("blocking"))
1653
+ if (e.walk(n), n(e), e.emit("submit-raw"), typeof e.props.onSubmitRaw == "function" && e.props.onSubmitRaw(i, e), e.ledger.value("blocking"))
1653
1654
  typeof e.props.onSubmitInvalid == "function" && e.props.onSubmitInvalid(e), e.props.incompleteMessage !== !1 && e.store.set(oe({
1654
1655
  blocking: !1,
1655
1656
  key: "incomplete",
@@ -1665,26 +1666,26 @@ async function gl(e, i) {
1665
1666
  const l = e.props.onSubmit(e.hook.submit.dispatch(Re(e.value)), e);
1666
1667
  if (l instanceof Promise) {
1667
1668
  const s = e.props.disabled === void 0 && e.props.submitBehavior !== "live";
1668
- s && (e.props.disabled = !0), e.store.set(Et), await l, s && (e.props.disabled = !1), e.store.remove("loading");
1669
+ s && (e.props.disabled = !0), e.store.set(jt), await l, s && (e.props.disabled = !1), e.store.remove("loading");
1669
1670
  }
1670
1671
  } else
1671
1672
  i.target instanceof HTMLFormElement && i.target.submit();
1672
1673
  }
1673
- function $l(e) {
1674
+ function wl(e) {
1674
1675
  e.props.isForm = !0, e.ledger.count("validating", (i) => i.key === "validating"), e.on("created", () => {
1675
1676
  var i;
1676
- !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.submit = gl.bind(null, e)), F(e.props, "actions") || (e.props.actions = !0);
1677
+ !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.submit = $l.bind(null, e)), F(e.props, "actions") || (e.props.actions = !0);
1677
1678
  }), e.on("settled:blocking", () => e.store.remove("incomplete"));
1678
1679
  }
1679
- function wl(e) {
1680
+ function kl(e) {
1680
1681
  e.props.ignore === void 0 && (e.props.ignore = !0, e.parent = null);
1681
1682
  }
1682
- function kl(e) {
1683
+ function Cl(e) {
1683
1684
  e.on("created", () => {
1684
1685
  e.context && (e.context.initialValue = e.value || "");
1685
1686
  });
1686
1687
  }
1687
- function bn(e) {
1688
+ function yn(e) {
1688
1689
  if (typeof e.props.number > "u")
1689
1690
  return;
1690
1691
  const i = ["number", "range", "hidden"].includes(e.props.type);
@@ -1695,30 +1696,30 @@ function bn(e) {
1695
1696
  return Number.isFinite(l) ? n(l) : n(i ? void 0 : t);
1696
1697
  });
1697
1698
  }
1698
- function Cl(e, i) {
1699
+ function Sl(e, i) {
1699
1700
  i.target instanceof HTMLInputElement && e.input(Se(e.props.options, i.target.value));
1700
1701
  }
1701
- function Sl(e, i) {
1702
+ function Vl(e, i) {
1702
1703
  var t, n;
1703
1704
  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);
1704
1705
  }
1705
- function Vl(e) {
1706
+ function Il(e) {
1706
1707
  e.on("created", () => {
1707
1708
  var i, t;
1708
- Array.isArray(e.props.options) || Ee(350, {
1709
+ Array.isArray(e.props.options) || Te(350, {
1709
1710
  node: e,
1710
1711
  inputType: "radio"
1711
- }), !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = Cl.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = Sl.bind(null, e));
1712
- }), e.hook.prop(dn(e));
1713
- }
1714
- let Il = 0;
1715
- function Ll(e) {
1716
- e.sync && e.plugins.add(Pl);
1712
+ }), !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = Sl.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = Vl.bind(null, e));
1713
+ }), e.hook.prop(mn(e));
1717
1714
  }
1715
+ let Ll = 0;
1718
1716
  function Pl(e) {
1719
- e.props.type === "radio" && (e.props.altName = `${e.name}_${Il++}`);
1717
+ e.sync && e.plugins.add(Al);
1718
+ }
1719
+ function Al(e) {
1720
+ e.props.type === "radio" && (e.props.altName = `${e.name}_${Ll++}`);
1720
1721
  }
1721
- function Al(e, i) {
1722
+ function Ol(e, i) {
1722
1723
  e.context && e.context.value;
1723
1724
  const t = "__original" in i ? i.__original : i.value;
1724
1725
  function n() {
@@ -1726,15 +1727,15 @@ function Al(e, i) {
1726
1727
  }
1727
1728
  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);
1728
1729
  }
1729
- async function Ol(e, i) {
1730
+ async function xl(e, i) {
1730
1731
  var t;
1731
1732
  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));
1732
1733
  }
1733
- function xl(e, i) {
1734
+ function Ml(e, i) {
1734
1735
  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);
1735
1736
  e.input(n);
1736
1737
  }
1737
- function jt(e, i) {
1738
+ function Ft(e, i) {
1738
1739
  return e.some((t) => t.attrs && t.attrs["data-is-placeholder"]) ? e : [
1739
1740
  {
1740
1741
  label: i,
@@ -1748,17 +1749,17 @@ function jt(e, i) {
1748
1749
  ...e
1749
1750
  ];
1750
1751
  }
1751
- function Ml(e) {
1752
+ function El(e) {
1752
1753
  e.on("created", () => {
1753
1754
  var i, t, n;
1754
1755
  const l = Y((i = e.props.attrs) === null || i === void 0 ? void 0 : i.multiple);
1755
- !l && e.props.placeholder && Array.isArray(e.props.options) && (e.hook.prop(({ prop: s, value: r }, o) => (s === "options" && (r = jt(r, e.props.placeholder)), o({ prop: s, value: r }))), e.props.options = jt(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, {
1756
+ !l && e.props.placeholder && Array.isArray(e.props.options) && (e.hook.prop(({ prop: s, value: r }, o) => (s === "options" && (r = Ft(r, e.props.placeholder)), o({ prop: s, value: r }))), e.props.options = Ft(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, {
1756
1757
  value: e._value
1757
1758
  }), e.on("input", ({ payload: s }) => {
1758
1759
  e.props.attrs = Object.assign({}, e.props.attrs, {
1759
1760
  value: s
1760
1761
  });
1761
- })), !((t = e.context) === null || t === void 0) && t.handlers && (e.context.handlers.selectInput = xl.bind(null, e), e.context.handlers.onChange = Ol.bind(null, e)), !((n = e.context) === null || n === void 0) && n.fns && (e.context.fns.isSelected = Al.bind(null, e), e.context.fns.showPlaceholder = (s, r) => {
1762
+ })), !((t = e.context) === null || t === void 0) && t.handlers && (e.context.handlers.selectInput = Ml.bind(null, e), e.context.handlers.onChange = xl.bind(null, e)), !((n = e.context) === null || n === void 0) && n.fns && (e.context.fns.isSelected = Ol.bind(null, e), e.context.fns.showPlaceholder = (s, r) => {
1762
1763
  if (!Array.isArray(e.props.options))
1763
1764
  return !1;
1764
1765
  const o = e.props.options.some((u) => {
@@ -1775,34 +1776,34 @@ function Ml(e) {
1775
1776
  });
1776
1777
  }
1777
1778
  function pt(e) {
1778
- return !!(ve(e) && e.if && e.if.startsWith("$slots.") && typeof e.then == "string" && e.then.startsWith("$slots.") && "else" in e);
1779
+ return !!(_e(e) && e.if && e.if.startsWith("$slots.") && typeof e.then == "string" && e.then.startsWith("$slots.") && "else" in e);
1779
1780
  }
1780
1781
  function Rl(e) {
1781
- return fe(Ie(je("$label"), me(X(), e(), G())), Q("$help"), ae(le("$message.value")));
1782
+ return fe(Ie(De("$label"), ye(G(), e(), ee())), X("$help"), ae(le("$message.value")));
1782
1783
  }
1783
1784
  function ie(e, i, t) {
1784
1785
  const n = (l) => {
1785
1786
  const s = i(l);
1786
- if (t || Ne(s) && "if" in s || pt(s)) {
1787
+ if (t || He(s) && "if" in s || pt(s)) {
1787
1788
  const r = {
1788
1789
  if: e,
1789
1790
  then: s
1790
1791
  };
1791
1792
  return t && (r.else = t(l)), r;
1792
1793
  } else
1793
- pt(s) ? Object.assign(s.else, { if: e }) : Ne(s) && Object.assign(s, { if: e });
1794
+ pt(s) ? Object.assign(s.else, { if: e }) : He(s) && Object.assign(s, { if: e });
1794
1795
  return s;
1795
1796
  };
1796
- return n._s = Ye(), n;
1797
+ return n._s = Fe(), n;
1797
1798
  }
1798
- function ge(e, i) {
1799
+ function $e(e, i) {
1799
1800
  const t = (n) => {
1800
1801
  const l = e({});
1801
1802
  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] : {});
1802
1803
  };
1803
1804
  return t._s = e._s, t;
1804
1805
  }
1805
- const El = [
1806
+ const jl = [
1806
1807
  "classes",
1807
1808
  "config",
1808
1809
  "delay",
@@ -1831,38 +1832,38 @@ const El = [
1831
1832
  "onSubmitInvalid",
1832
1833
  "onSubmitRaw"
1833
1834
  ];
1834
- fe(ae(le("$message.value")), Ie(il(z("prefix"), X(), ll("$label || $ui.submit.value"), G(), z("suffix"))), Q("$help")), ze("submit");
1835
+ fe(ae(le("$message.value")), Ie(ll(z("prefix"), G(), al("$label || $ui.submit.value"), ee(), z("suffix"))), X("$help")), Me("submit");
1835
1836
  fe(
1836
1837
  ie(
1837
1838
  "$options == undefined",
1838
1839
  /**
1839
1840
  * Single checkbox structure.
1840
1841
  */
1841
- qe(xt(X(), We(), Ze(z("decorator")), G()), ge(He("$label"), {
1842
+ Je(Mt(G(), qe(), Ye(z("decorator")), ee()), $e(Ze("$label"), {
1842
1843
  if: "$label"
1843
1844
  })),
1844
1845
  /**
1845
1846
  * Multi checkbox structure.
1846
1847
  */
1847
- fn(cn("$label"), Q("$help"), un(on(qe(xt(X(), ge(We(), {
1848
+ cn(pn("$label"), X("$help"), fn(un(Je(Mt(G(), $e(qe(), {
1848
1849
  bind: "$option.attrs",
1849
1850
  attrs: {
1850
1851
  id: "$option.attrs.id",
1851
1852
  value: "$option.value",
1852
1853
  checked: "$fns.isChecked($option.value)"
1853
1854
  }
1854
- }), Ze(z("decorator")), G()), ge(He("$option.label"), {
1855
+ }), Ye(z("decorator")), ee()), $e(Ze("$option.label"), {
1855
1856
  if: "$option.label"
1856
- })), rn("$option.help"))))
1857
+ })), on("$option.help"))))
1857
1858
  ),
1858
1859
  // Help text only goes under the input when it is a single.
1859
- ie("$options == undefined && $help", Q("$help")),
1860
+ ie("$options == undefined && $help", X("$help")),
1860
1861
  ae(le("$message.value"))
1861
- ), _e("decorator", "checkboxDecorator");
1862
- fe(Ie(je("$label"), me(z("prefix", "label"), X(), al(), rl(sl(z("fileItem"), ol("$file.name"), ie("$value.length === 1", Mt(z("fileRemove"), "$ui.remove.value")))), ie("$value.length > 1", Mt("$ui.removeAll.value")), fl(z("noFiles"), "$ui.noFiles.value"), G(), z("suffix"))), Q("$help"), ae(le("$message.value"))), _e("fileItem", "fileItem"), _e("fileRemove", "fileRemove"), _e("noFiles", "noFiles");
1863
- ul("$slots.default", ae(le("$message.value")), nl(ml()));
1862
+ ), ge("decorator", "checkboxDecorator");
1863
+ fe(Ie(De("$label"), ye(z("prefix", "label"), G(), sl(), ol(rl(z("fileItem"), ul("$file.name"), ie("$value.length === 1", Et(z("fileRemove"), '$ui.remove.value + " " + $file.name')))), ie("$value.length > 1", Et("$ui.removeAll.value")), cl(z("noFiles"), "$ui.noFiles.value"), ee(), z("suffix"))), X("$help"), ae(le("$message.value"))), ge("fileItem", "fileItem"), ge("fileRemove", "fileRemove"), ge("noFiles", "noFiles");
1864
+ fl("$slots.default", ae(le("$message.value")), il(bl()));
1864
1865
  $t("$slots.default");
1865
- pn();
1866
+ dn();
1866
1867
  $t("$slots.default");
1867
1868
  $t();
1868
1869
  fe(
@@ -1871,30 +1872,30 @@ fe(
1871
1872
  /**
1872
1873
  * Single radio structure.
1873
1874
  */
1874
- qe(me(X(), We(), Ze(z("decorator")), G()), ge(He("$label"), {
1875
+ Je(ye(G(), qe(), Ye(z("decorator")), ee()), $e(Ze("$label"), {
1875
1876
  if: "$label"
1876
1877
  })),
1877
1878
  /**
1878
1879
  * Multi radio structure.
1879
1880
  */
1880
- fn(cn("$label"), Q("$help"), un(on(qe(me(X(), ge(We(), {
1881
+ cn(pn("$label"), X("$help"), fn(un(Je(ye(G(), $e(qe(), {
1881
1882
  bind: "$option.attrs",
1882
1883
  attrs: {
1883
1884
  id: "$option.attrs.id",
1884
1885
  value: "$option.value",
1885
1886
  checked: "$fns.isChecked($option.value)"
1886
1887
  }
1887
- }), Ze(z("decorator")), G()), ge(He("$option.label"), {
1888
+ }), Ye(z("decorator")), ee()), $e(Ze("$option.label"), {
1888
1889
  if: "$option.label"
1889
- })), rn("$option.help"))))
1890
+ })), on("$option.help"))))
1890
1891
  ),
1891
1892
  // Help text only goes under the input when it is a single.
1892
- ie("$options == undefined && $help", Q("$help")),
1893
+ ie("$options == undefined && $help", X("$help")),
1893
1894
  ae(le("$message.value"))
1894
- ), _e("decorator", "radioDecorator");
1895
- fe(Ie(je("$label"), me(z("prefix"), X(), dl(ie("$slots.default", () => "$slots.default", ie("$slots.option", pl, cl("$option.label")))), ie("$attrs.multiple !== undefined", () => "", z("select")), G(), z("suffix"))), Q("$help"), ae(le("$message.value"))), _e("select", "select");
1896
- fe(Ie(je("$label"), me(z("prefix", "label"), X(), bl(), G(), z("suffix"))), Q("$help"), ae(le("$message.value")));
1897
- fe(Ie(je("$label"), me(z("prefix", "label"), X(), pn(), G(), z("suffix"))), Q("$help"), ae(le("$message.value")));
1895
+ ), ge("decorator", "radioDecorator");
1896
+ fe(Ie(De("$label"), ye(z("prefix"), G(), ml(ie("$slots.default", () => "$slots.default", ie("$slots.option", dl, pl("$option.label")))), ie("$attrs.multiple !== undefined", () => "", z("select")), ee(), z("suffix"))), X("$help"), ae(le("$message.value"))), ge("select", "select");
1897
+ fe(Ie(De("$label"), ye(z("prefix", "label"), G(), yl(), ee(), z("suffix"))), X("$help"), ae(le("$message.value")));
1898
+ fe(Ie(De("$label"), ye(z("prefix", "label"), G(), dn(), ee(), z("suffix"))), X("$help"), ae(le("$message.value")));
1898
1899
  oe({
1899
1900
  type: "state",
1900
1901
  blocking: !0,
@@ -1902,10 +1903,10 @@ oe({
1902
1903
  value: !0,
1903
1904
  key: "validating"
1904
1905
  });
1905
- let Ue;
1906
- const jl = new Promise((e) => {
1906
+ let Ne;
1907
+ const Fl = new Promise((e) => {
1907
1908
  }), Ge = typeof window < "u" && typeof fetch < "u";
1908
- Ue = Ge ? getComputedStyle(document.documentElement) : void 0;
1909
+ Ne = Ge ? getComputedStyle(document.documentElement) : void 0;
1909
1910
  const Oe = {}, nt = {};
1910
1911
  function it(e, i) {
1911
1912
  return (t) => {
@@ -1920,28 +1921,28 @@ function it(e, i) {
1920
1921
  if (l)
1921
1922
  return Oe[t];
1922
1923
  if (!nt[t]) {
1923
- if (s = Fl(t), s = Ge && typeof s > "u" ? Promise.resolve(s) : s, s instanceof Promise)
1924
- nt[t] = s.then((r) => !r && typeof t == "string" && !n ? s = typeof e == "function" ? e(t) : Tl(t, i) : r).then((r) => (typeof t == "string" && (Oe[n ? `default:${t}` : t] = r), r));
1924
+ if (s = Tl(t), s = Ge && typeof s > "u" ? Promise.resolve(s) : s, s instanceof Promise)
1925
+ nt[t] = s.then((r) => !r && typeof t == "string" && !n ? s = typeof e == "function" ? e(t) : Bl(t, i) : r).then((r) => (typeof t == "string" && (Oe[n ? `default:${t}` : t] = r), r));
1925
1926
  else if (typeof s == "string")
1926
1927
  return Oe[n ? `default:${t}` : t] = s, s;
1927
1928
  }
1928
1929
  return nt[t];
1929
1930
  };
1930
1931
  }
1931
- function Fl(e) {
1932
+ function Tl(e) {
1932
1933
  if (Ge)
1933
- return jl.then(() => Dl(e));
1934
+ return Fl.then(() => Dl(e));
1934
1935
  }
1935
1936
  function Dl(e) {
1936
- const i = Ue == null ? void 0 : Ue.getPropertyValue(`--fk-icon-${e}`);
1937
+ const i = Ne == null ? void 0 : Ne.getPropertyValue(`--fk-icon-${e}`);
1937
1938
  if (i) {
1938
1939
  const t = atob(i);
1939
1940
  if (t.startsWith("<svg"))
1940
1941
  return Oe[e] = t, t;
1941
1942
  }
1942
1943
  }
1943
- function Tl(e, i) {
1944
- const t = Ot.startsWith("__") ? "latest" : Ot, n = typeof i == "function" ? i(e) : `https://cdn.jsdelivr.net/npm/@formkit/icons@${t}/dist/icons/${e}.svg`;
1944
+ function Bl(e, i) {
1945
+ const t = xt.startsWith("__") ? "latest" : xt, n = typeof i == "function" ? i(e) : `https://cdn.jsdelivr.net/npm/@formkit/icons@${t}/dist/icons/${e}.svg`;
1945
1946
  if (Ge)
1946
1947
  return fetch(`${n}`).then(async (l) => {
1947
1948
  const s = await l.text();
@@ -1952,7 +1953,7 @@ function Tl(e, i) {
1952
1953
  });
1953
1954
  }
1954
1955
  let kt = !1;
1955
- const Ft = {
1956
+ const Tt = {
1956
1957
  /**
1957
1958
  * FormKit errors:
1958
1959
  */
@@ -1995,40 +1996,40 @@ const Ft = {
1995
1996
  * Deprecation warnings:
1996
1997
  */
1997
1998
  800: ({ data: e }) => `${e} is deprecated.`
1998
- }, Bl = (e, i) => {
1999
- if (e.code in Ft) {
2000
- const t = Ft[e.code];
1999
+ }, zl = (e, i) => {
2000
+ if (e.code in Tt) {
2001
+ const t = Tt[e.code];
2001
2002
  e.message = typeof t == "function" ? t(e) : t;
2002
2003
  }
2003
2004
  return i(e);
2004
2005
  };
2005
- kt || bt(Bl);
2006
- const zl = (e, i) => {
2006
+ kt || bt(zl);
2007
+ const Ul = (e, i) => {
2007
2008
  if (e.code in Dt) {
2008
2009
  const t = Dt[e.code];
2009
2010
  e.message = typeof t == "function" ? t(e) : t;
2010
2011
  }
2011
2012
  return i(e);
2012
2013
  };
2013
- kt || yt(zl);
2014
+ kt || yt(Ul);
2014
2015
  kt = !0;
2015
- const Ul = typeof window > "u", lt = /* @__PURE__ */ new Map();
2016
- function Kl(e, i) {
2016
+ const Kl = typeof window > "u", lt = /* @__PURE__ */ new Map();
2017
+ function Nl(e, i) {
2017
2018
  var t;
2018
- !Ul || !e || (lt.has(e) || lt.set(e, /* @__PURE__ */ new Set()), (t = lt.get(e)) === null || t === void 0 || t.add(i));
2019
+ !Kl || !e || (lt.has(e) || lt.set(e, /* @__PURE__ */ new Set()), (t = lt.get(e)) === null || t === void 0 || t.add(i));
2019
2020
  }
2020
- const yn = typeof window > "u", Me = {}, $e = {};
2021
+ const vn = typeof window > "u", Ee = {}, we = {};
2021
2022
  let K;
2022
- const te = /* @__PURE__ */ new WeakMap(), Nl = "__raw__", Wl = /[a-zA-Z0-9\-][cC]lass$/;
2023
- function Hl(e, i) {
2024
- const t = ne(null);
2023
+ const ne = /* @__PURE__ */ new WeakMap(), Wl = "__raw__", Hl = /[a-zA-Z0-9\-][cC]lass$/;
2024
+ function ql(e, i) {
2025
+ const t = Q(null);
2025
2026
  if (e === "get") {
2026
2027
  const l = {};
2027
- return t.value = ql.bind(null, l), t;
2028
+ return t.value = Zl.bind(null, l), t;
2028
2029
  }
2029
2030
  const n = e.split(".");
2030
- return ee(() => {
2031
- t.value = Ct(In(i) ? i.value : i, n);
2031
+ return te(() => {
2032
+ t.value = Ct(Ln(i) ? i.value : i, n);
2032
2033
  }), t;
2033
2034
  }
2034
2035
  function Ct(e, i) {
@@ -2056,209 +2057,209 @@ function Ct(e, i) {
2056
2057
  }
2057
2058
  return t;
2058
2059
  }
2059
- function ql(e, i) {
2060
+ function Zl(e, i) {
2060
2061
  if (typeof i != "string")
2061
- return Ee(650);
2062
- if (i in e || (e[i] = ne(void 0)), e[i].value === void 0) {
2062
+ return Te(650);
2063
+ if (i in e || (e[i] = Q(void 0)), e[i].value === void 0) {
2063
2064
  e[i].value = null;
2064
- const t = Qt(i);
2065
- t && (e[i].value = t.context), ai(i, ({ payload: n }) => {
2065
+ const t = Xt(i);
2066
+ t && (e[i].value = t.context), si(i, ({ payload: n }) => {
2066
2067
  e[i].value = Xe(n) ? n.context : n;
2067
2068
  });
2068
2069
  }
2069
2070
  return e[i].value;
2070
2071
  }
2071
- function Tt(e, i, t) {
2072
- function n($, h) {
2073
- const c = A(J(h.if), { if: !0 }), d = p($, h.then), m = h.else ? p($, h.else) : null;
2074
- return [c, d, m];
2075
- }
2076
- function l($, h) {
2077
- var c, d;
2078
- const m = A(J($.if));
2079
- let y = () => h, g = () => h;
2080
- 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, F($, "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();
2081
- }
2082
- function s($, h, c = {}) {
2083
- const d = new Set(Object.keys($ || {})), m = h ? A(J(h)) : () => ({}), y = [
2084
- (g) => {
2085
- const v = m();
2086
- for (const w in v)
2087
- d.has(w) || (g[w] = v[w]);
2072
+ function Bt(e, i, t) {
2073
+ function n(v, y) {
2074
+ const f = I(J(y.if), { if: !0 }), d = p(v, y.then), m = y.else ? p(v, y.else) : null;
2075
+ return [f, d, m];
2076
+ }
2077
+ function l(v, y) {
2078
+ var f, d;
2079
+ const m = I(J(v.if));
2080
+ let h = () => y, $ = () => y;
2081
+ return typeof v.then == "object" ? $ = s(v.then, void 0) : typeof v.then == "string" && (!((f = v.then) === null || f === void 0) && f.startsWith("$")) ? $ = I(J(v.then)) : $ = () => v.then, F(v, "else") && (typeof v.else == "object" ? h = s(v.else) : typeof v.else == "string" && (!((d = v.else) === null || d === void 0) && d.startsWith("$")) ? h = I(J(v.else)) : h = () => v.else), () => m() ? $() : h();
2082
+ }
2083
+ function s(v, y, f = {}) {
2084
+ const d = new Set(Object.keys(v || {})), m = y ? I(J(y)) : () => ({}), h = [
2085
+ ($) => {
2086
+ const _ = m();
2087
+ for (const k in _)
2088
+ d.has(k) || ($[k] = _[k]);
2088
2089
  }
2089
2090
  ];
2090
- if ($) {
2091
- if (ve($))
2092
- return l($, c);
2093
- for (let g in $) {
2094
- const v = $[g];
2095
- let w;
2096
- const f = typeof v == "string";
2097
- g.startsWith(Nl) ? (g = g.substring(7), w = () => v) : f && v.startsWith("$") && v.length > 1 && !(v.startsWith("$reset") && Wl.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) => {
2098
- b[g] = w();
2091
+ if (v) {
2092
+ if (_e(v))
2093
+ return l(v, f);
2094
+ for (let $ in v) {
2095
+ const _ = v[$];
2096
+ let k;
2097
+ const c = typeof _ == "string";
2098
+ $.startsWith(Wl) ? ($ = $.substring(7), k = () => _) : c && _.startsWith("$") && _.length > 1 && !(_.startsWith("$reset") && Hl.test($)) ? k = I(J(_)) : typeof _ == "object" && _e(_) ? k = l(_, void 0) : typeof _ == "object" && ke(_) ? k = s(_) : k = () => _, h.push((b) => {
2099
+ b[$] = k();
2099
2100
  });
2100
2101
  }
2101
2102
  }
2102
2103
  return () => {
2103
- const g = Array.isArray($) ? [] : {};
2104
- return y.forEach((v) => v(g)), g;
2104
+ const $ = Array.isArray(v) ? [] : {};
2105
+ return h.forEach((_) => _($)), $;
2105
2106
  };
2106
2107
  }
2107
- function r($, h) {
2108
- let c = null, d = () => null, m = !1, y = null, g = null, v = null, w = !1;
2109
- const f = Gi(h);
2110
- if (ft(f) ? (c = f.$el, d = f.$el !== "text" ? s(f.attrs, f.bind) : () => null) : ct(f) ? (typeof f.$cmp == "string" ? F($, 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)
2111
- if (typeof f.children == "string")
2112
- if (f.children.startsWith("$slots."))
2113
- c = c === "text" ? "slot" : c, y = A(J(f.children));
2114
- else if (f.children.startsWith("$") && f.children.length > 1) {
2115
- const b = A(J(f.children));
2116
- y = () => String(b());
2108
+ function r(v, y) {
2109
+ let f = null, d = () => null, m = !1, h = null, $ = null, _ = null, k = !1;
2110
+ const c = el(y);
2111
+ if (ft(c) ? (f = c.$el, d = c.$el !== "text" ? s(c.attrs, c.bind) : () => null) : ct(c) ? (typeof c.$cmp == "string" ? F(v, c.$cmp) ? f = v[c.$cmp] : (f = c.$cmp, k = !0) : f = c.$cmp, d = s(c.props, c.bind)) : _e(c) && ([m, h, $] = n(v, c)), !_e(c) && "if" in c ? m = I(J(c.if)) : !_e(c) && f === null && (m = () => !0), "children" in c && c.children)
2112
+ if (typeof c.children == "string")
2113
+ if (c.children.startsWith("$slots."))
2114
+ f = f === "text" ? "slot" : f, h = I(J(c.children));
2115
+ else if (c.children.startsWith("$") && c.children.length > 1) {
2116
+ const b = I(J(c.children));
2117
+ h = () => String(b());
2117
2118
  } else
2118
- y = () => String(f.children);
2119
- else if (Array.isArray(f.children))
2120
- y = p($, f.children);
2119
+ h = () => String(c.children);
2120
+ else if (Array.isArray(c.children))
2121
+ h = p(v, c.children);
2121
2122
  else {
2122
- const [b, k, I] = n($, f.children);
2123
- y = (B) => b && b() ? k && k(B) : I && I(B);
2123
+ const [b, C, L] = n(v, c.children);
2124
+ h = (B) => b && b() ? C && C(B) : L && L(B);
2124
2125
  }
2125
- if (ct(f))
2126
- if (y) {
2127
- const b = y;
2128
- y = (k) => ({
2129
- default(I, B) {
2130
- var S, R, O, N;
2131
- const q = K;
2132
- B && (K = B), I && ((S = te.get(K)) === null || S === void 0 || S.unshift(I)), k && ((R = te.get(K)) === null || R === void 0 || R.unshift(k));
2133
- const x = b(k);
2134
- return I && ((O = te.get(K)) === null || O === void 0 || O.shift()), k && ((N = te.get(K)) === null || N === void 0 || N.shift()), K = q, x;
2126
+ if (ct(c))
2127
+ if (h) {
2128
+ const b = h;
2129
+ h = (C) => ({
2130
+ default(L, B) {
2131
+ var S, R, x, N;
2132
+ const Z = K;
2133
+ B && (K = B), L && ((S = ne.get(K)) === null || S === void 0 || S.unshift(L)), C && ((R = ne.get(K)) === null || R === void 0 || R.unshift(C));
2134
+ const M = b(C);
2135
+ return L && ((x = ne.get(K)) === null || x === void 0 || x.shift()), C && ((N = ne.get(K)) === null || N === void 0 || N.shift()), K = Z, M;
2135
2136
  }
2136
- }), y.slot = !0;
2137
+ }), h.slot = !0;
2137
2138
  } else
2138
- y = () => ({});
2139
- if ("for" in f && f.for) {
2140
- const b = f.for.length === 3 ? f.for[2] : f.for[1];
2141
- v = [
2142
- typeof b == "string" && b.startsWith("$") ? A(J(b)) : () => b,
2143
- f.for[0],
2144
- f.for.length === 3 ? String(f.for[1]) : null
2139
+ h = () => ({});
2140
+ if ("for" in c && c.for) {
2141
+ const b = c.for.length === 3 ? c.for[2] : c.for[1];
2142
+ _ = [
2143
+ typeof b == "string" && b.startsWith("$") ? I(J(b)) : () => b,
2144
+ c.for[0],
2145
+ c.for.length === 3 ? String(c.for[1]) : null
2145
2146
  ];
2146
2147
  }
2147
- return [m, c, d, y, g, v, w];
2148
+ return [m, f, d, h, $, _, k];
2148
2149
  }
2149
- function o($, h) {
2150
- const c = $(h), d = K;
2151
- return Object.keys(c).reduce((m, y) => {
2152
- const g = c && c[y];
2153
- return m[y] = (v) => g && g(v, d) || null, m;
2150
+ function o(v, y) {
2151
+ const f = v(y), d = K;
2152
+ return Object.keys(f).reduce((m, h) => {
2153
+ const $ = f && f[h];
2154
+ return m[h] = (_) => $ && $(_, d) || null, m;
2154
2155
  }, {});
2155
2156
  }
2156
- function u($, h) {
2157
- const [c, d, m, y, g, v, w] = r($, h);
2158
- let f = (b) => {
2159
- if (c && d === null && y)
2160
- return c() ? y(b) : g && g(b);
2161
- if (d && (!c || c())) {
2162
- if (d === "text" && y)
2163
- return Ln(String(y()));
2164
- if (d === "slot" && y)
2165
- return y(b);
2166
- const k = w ? j(d) : d, I = y != null && y.slot ? o(y, b) : null;
2167
- return we(k, m(), I || (y ? y(b) : []));
2157
+ function u(v, y) {
2158
+ const [f, d, m, h, $, _, k] = r(v, y);
2159
+ let c = (b) => {
2160
+ if (f && d === null && h)
2161
+ return f() ? h(b) : $ && $(b);
2162
+ if (d && (!f || f())) {
2163
+ if (d === "text" && h)
2164
+ return Pn(String(h()));
2165
+ if (d === "slot" && h)
2166
+ return h(b);
2167
+ const C = k ? j(d) : d, L = h != null && h.slot ? o(h, b) : null;
2168
+ return de(C, m(), L || (h ? h(b) : []));
2168
2169
  }
2169
- return typeof g == "function" ? g(b) : g;
2170
+ return typeof $ == "function" ? $(b) : $;
2170
2171
  };
2171
- if (v) {
2172
- const b = f, [k, I, B] = v;
2173
- f = () => {
2174
- const S = k(), R = Number.isFinite(S) ? Array(Number(S)).fill(0).map((x, W) => W) : S, O = [];
2172
+ if (_) {
2173
+ const b = c, [C, L, B] = _;
2174
+ c = () => {
2175
+ const S = C(), R = Number.isFinite(S) ? Array(Number(S)).fill(0).map((M, W) => W) : S, x = [];
2175
2176
  if (typeof R != "object")
2176
2177
  return null;
2177
- const N = te.get(K) || [], q = Array.isArray(R);
2178
- for (const x in R) {
2179
- if (q && x in Array.prototype)
2178
+ const N = ne.get(K) || [], Z = Array.isArray(R);
2179
+ for (const M in R) {
2180
+ if (Z && M in Array.prototype)
2180
2181
  continue;
2181
2182
  const W = Object.defineProperty({
2182
2183
  ...N.reduce((Le, se) => Le.__idata ? { ...Le, ...se } : se, {}),
2183
- [I]: R[x],
2184
- ...B !== null ? { [B]: q ? Number(x) : x } : {}
2184
+ [L]: R[M],
2185
+ ...B !== null ? { [B]: Z ? Number(M) : M } : {}
2185
2186
  }, "__idata", { enumerable: !1, value: !0 });
2186
- N.unshift(W), O.push(b.bind(null, W)()), N.shift();
2187
+ N.unshift(W), x.push(b.bind(null, W)()), N.shift();
2187
2188
  }
2188
- return O;
2189
+ return x;
2189
2190
  };
2190
2191
  }
2191
- return f;
2192
+ return c;
2192
2193
  }
2193
- function p($, h) {
2194
- if (Array.isArray(h)) {
2195
- const d = h.map(u.bind(null, $));
2196
- return (m) => d.map((y) => y(m));
2194
+ function p(v, y) {
2195
+ if (Array.isArray(y)) {
2196
+ const d = y.map(u.bind(null, v));
2197
+ return (m) => d.map((h) => h(m));
2197
2198
  }
2198
- const c = u($, h);
2199
- return (d) => c(d);
2199
+ const f = u(v, y);
2200
+ return (d) => f(d);
2200
2201
  }
2201
- const _ = [];
2202
- function A($, h = {}) {
2203
- const c = /* @__PURE__ */ new WeakMap();
2204
- return _.push((d, m) => {
2205
- c.set(m, $.provide((y) => d(y, h)));
2206
- }), () => c.get(K)();
2202
+ const g = [];
2203
+ function I(v, y = {}) {
2204
+ const f = /* @__PURE__ */ new WeakMap();
2205
+ return g.push((d, m) => {
2206
+ f.set(m, v.provide((h) => d(h, y)));
2207
+ }), () => f.get(K)();
2207
2208
  }
2208
- function Z($, h) {
2209
- var c;
2209
+ function H(v, y) {
2210
+ var f;
2210
2211
  t ?? (t = JSON.stringify(i));
2211
- const [d, m] = F(Me, t) ? Me[t] : [p(e, i), _];
2212
- return yn || ((c = $e[t]) !== null && c !== void 0 || ($e[t] = 0), $e[t]++, Me[t] = [d, m]), m.forEach((y) => {
2213
- y($, h);
2214
- }), () => (K = h, d());
2212
+ const [d, m] = F(Ee, t) ? Ee[t] : [p(e, i), g];
2213
+ return vn || ((f = we[t]) !== null && f !== void 0 || (we[t] = 0), we[t]++, Ee[t] = [d, m]), m.forEach((h) => {
2214
+ h(v, y);
2215
+ }), () => (K = y, d());
2215
2216
  }
2216
- return Z;
2217
+ return H;
2217
2218
  }
2218
- function vn(e, i) {
2219
- const t = te.get(K) || [];
2219
+ function hn(e, i) {
2220
+ const t = ne.get(K) || [];
2220
2221
  let n;
2221
2222
  return t.length && (n = Ct(t, e.split("."))), n === void 0 ? i : n;
2222
2223
  }
2223
- function Zl(e, i) {
2224
+ function Jl(e, i) {
2224
2225
  return new Proxy(e, {
2225
2226
  get(...t) {
2226
2227
  let n;
2227
2228
  const l = t[1];
2228
2229
  if (typeof l == "string") {
2229
2230
  const s = K;
2230
- K = i, n = vn(l, void 0), K = s;
2231
+ K = i, n = hn(l, void 0), K = s;
2231
2232
  }
2232
2233
  return n !== void 0 ? n : Reflect.get(...t);
2233
2234
  }
2234
2235
  });
2235
2236
  }
2236
- function Bt(e, i, t) {
2237
+ function zt(e, i, t) {
2237
2238
  return e((n, l = {}) => n.reduce((s, r) => {
2238
2239
  if (r.startsWith("slots.")) {
2239
2240
  const o = r.substring(6), u = () => i.slots && F(i.slots, o) && typeof i.slots[o] == "function";
2240
2241
  if (l.if)
2241
2242
  s[r] = u;
2242
2243
  else if (i.slots) {
2243
- const p = Zl(i, t);
2244
+ const p = Jl(i, t);
2244
2245
  s[r] = () => u() ? i.slots[o](p) : null;
2245
2246
  }
2246
2247
  } else {
2247
- const o = Hl(r, i);
2248
- s[r] = () => vn(r, o.value);
2248
+ const o = ql(r, i);
2249
+ s[r] = () => hn(r, o.value);
2249
2250
  }
2250
2251
  return s;
2251
2252
  }, {}), t);
2252
2253
  }
2253
- function zt(e, i, t) {
2254
- if (i ?? (i = JSON.stringify(e)), $e[i]--, $e[i] === 0) {
2255
- delete $e[i];
2256
- const [, n] = Me[i];
2257
- delete Me[i], n.length = 0;
2254
+ function Ut(e, i, t) {
2255
+ if (i ?? (i = JSON.stringify(e)), we[i]--, we[i] === 0) {
2256
+ delete we[i];
2257
+ const [, n] = Ee[i];
2258
+ delete Ee[i], n.length = 0;
2258
2259
  }
2259
- te.delete(t);
2260
+ ne.delete(t);
2260
2261
  }
2261
- const hn = M({
2262
+ const St = O({
2262
2263
  name: "FormKitSchema",
2263
2264
  props: {
2264
2265
  schema: {
@@ -2282,53 +2283,53 @@ const hn = M({
2282
2283
  var t;
2283
2284
  const n = st();
2284
2285
  let l = {};
2285
- te.set(l, []);
2286
- let s = Tt(e.library, e.schema, e.memoKey), r, o;
2287
- yn || ce(() => e.schema, (p, _) => {
2288
- var A;
2289
- const Z = l;
2290
- l = {}, te.set(l, []), s = Tt(e.library, e.schema, e.memoKey), r = Bt(s, o, l), p === _ && ((A = n == null ? void 0 : n.proxy) === null || A === void 0 ? void 0 : A.$forceUpdate)(), zt(e.schema, e.memoKey, Z);
2291
- }, { deep: !0 }), ee(() => {
2286
+ ne.set(l, []);
2287
+ let s = Bt(e.library, e.schema, e.memoKey), r, o;
2288
+ vn || ce(() => e.schema, (p, g) => {
2289
+ var I;
2290
+ const H = l;
2291
+ l = {}, ne.set(l, []), s = Bt(e.library, e.schema, e.memoKey), r = zt(s, o, l), p === g && ((I = n == null ? void 0 : n.proxy) === null || I === void 0 ? void 0 : I.$forceUpdate)(), Ut(e.schema, e.memoKey, H);
2292
+ }, { deep: !0 }), te(() => {
2292
2293
  var p;
2293
2294
  o = Object.assign($n((p = e.data) !== null && p !== void 0 ? p : {}), {
2294
2295
  slots: i.slots
2295
- }), i.slots, r = Bt(s, o, l);
2296
+ }), i.slots, r = zt(s, o, l);
2296
2297
  });
2297
2298
  function u() {
2298
- zt(e.schema, e.memoKey, l), o.node && o.node.destroy(), o.slots = null, o = null, r = null;
2299
+ Ut(e.schema, e.memoKey, l), o.node && o.node.destroy(), o.slots = null, o = null, r = null;
2299
2300
  }
2300
- return wn(u), Kl((t = st()) === null || t === void 0 ? void 0 : t.appContext.app, u), () => r ? r() : null;
2301
+ return wn(u), Nl((t = st()) === null || t === void 0 ? void 0 : t.appContext.app, u), () => r ? r() : null;
2301
2302
  }
2302
- }), Jl = typeof window > "u", Je = Symbol("FormKitParent");
2303
- function Yl(e, i) {
2304
- const t = Gl(e, i);
2305
- if (t.props.definition || H(600, t), t.props.definition.component)
2303
+ }), Yl = typeof window > "u", je = Symbol("FormKitParent");
2304
+ function Ql(e, i) {
2305
+ const t = ea(e, i);
2306
+ if (t.props.definition || q(600, t), t.props.definition.component)
2306
2307
  return () => {
2307
2308
  var o;
2308
- return we((o = t.props.definition) === null || o === void 0 ? void 0 : o.component, {
2309
+ return de((o = t.props.definition) === null || o === void 0 ? void 0 : o.component, {
2309
2310
  context: t.context
2310
2311
  }, { ...i.slots });
2311
2312
  };
2312
- const n = ne([]);
2313
+ const n = Q([]);
2313
2314
  let l = t.props.definition.schemaMemoKey;
2314
2315
  const s = () => {
2315
2316
  var o, u;
2316
2317
  const p = (u = (o = t.props) === null || o === void 0 ? void 0 : o.definition) === null || u === void 0 ? void 0 : u.schema;
2317
- 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;
2318
+ p || q(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;
2318
2319
  };
2319
- s(), Jl || t.on("schema", () => {
2320
+ s(), Yl || t.on("schema", () => {
2320
2321
  l += "♻️", s();
2321
2322
  }), i.emit("node", t);
2322
2323
  const r = t.props.definition.library;
2323
- return i.expose({ node: t }), () => we(hn, { schema: n.value, data: t.context, library: r, memoKey: l }, { ...i.slots });
2324
+ return i.expose({ node: t }), () => de(St, { schema: n.value, data: t.context, library: r, memoKey: l }, { ...i.slots });
2324
2325
  }
2325
- M(Yl, {
2326
- props: El,
2326
+ O(Ql, {
2327
+ props: jl,
2327
2328
  inheritAttrs: !1
2328
2329
  });
2329
2330
  const _n = Symbol();
2330
- M((e, i) => {
2331
- const t = ne(null), n = ne(!1), l = ne(void 0), s = ce(t, (o) => {
2331
+ O((e, i) => {
2332
+ const t = Q(null), n = Q(!1), l = Q(void 0), s = ce(t, (o) => {
2332
2333
  let u = o, p = null;
2333
2334
  for (; u = u == null ? void 0 : u.parentNode; )
2334
2335
  if (p = u, p instanceof ShadowRoot || p instanceof Document) {
@@ -2337,13 +2338,13 @@ M((e, i) => {
2337
2338
  }
2338
2339
  s(), n.value = !0;
2339
2340
  });
2340
- Kt(_n, l);
2341
+ Nt(_n, l);
2341
2342
  function r(o) {
2342
2343
  l.value = o;
2343
2344
  }
2344
- return () => n.value && i.slots.default ? i.slots.default() : we("template", { ref: t });
2345
+ return () => n.value && i.slots.default ? i.slots.default() : de("template", { ref: t });
2345
2346
  });
2346
- const gn = Symbol.for("FormKitOptions"), Ql = typeof window < "u", at = [
2347
+ const gn = Symbol.for("FormKitOptions"), Xl = typeof window < "u", at = [
2347
2348
  "help",
2348
2349
  "label",
2349
2350
  "ignore",
@@ -2356,149 +2357,149 @@ const gn = Symbol.for("FormKitOptions"), Ql = typeof window < "u", at = [
2356
2357
  "suffixIcon",
2357
2358
  /^[a-zA-Z-]+(?:-icon|Icon)$/
2358
2359
  ];
2359
- function Ut(e, i) {
2360
+ function Kt(e, i) {
2360
2361
  i.classes && Object.keys(i.classes).forEach((t) => {
2361
2362
  typeof t == "string" && (e.props[`_${t}Class`] = i.classes[t], xe(i.classes[t]) && t === "inner" && Object.values(i.classes[t]));
2362
2363
  });
2363
2364
  }
2364
- function Xl(e) {
2365
+ function Gl(e) {
2365
2366
  return e ? ["Submit", "SubmitRaw", "SubmitInvalid"].reduce((t, n) => {
2366
2367
  const l = `on${n}`;
2367
2368
  return l in e && typeof e[l] == "function" && (t[l] = e[l]), t;
2368
2369
  }, {}) : {};
2369
2370
  }
2370
- function Gl(e, i, t = {}) {
2371
+ function ea(e, i, t = {}) {
2371
2372
  var n;
2372
- const l = Object.assign({}, he(gn) || {}, t), s = he(_n, ne(Ql ? document : void 0)), r = st(), o = Xl(r == null ? void 0 : r.vnode.props), u = ["modelValue", "model-value"].some((f) => {
2373
+ const l = Object.assign({}, pe(gn) || {}, t), s = pe(_n, Q(Xl ? document : void 0)), r = st(), o = Gl(r == null ? void 0 : r.vnode.props), u = ["modelValue", "model-value"].some((c) => {
2373
2374
  var b;
2374
- return f in ((b = r == null ? void 0 : r.vnode.props) !== null && b !== void 0 ? b : {});
2375
+ return c in ((b = r == null ? void 0 : r.vnode.props) !== null && b !== void 0 ? b : {});
2375
2376
  });
2376
2377
  let p = !1;
2377
- kn(() => {
2378
+ Cn(() => {
2378
2379
  p = !0;
2379
2380
  });
2380
- const _ = e.modelValue !== void 0 ? e.modelValue : de(i.attrs.value);
2381
- function A() {
2382
- var f;
2381
+ const g = e.modelValue !== void 0 ? e.modelValue : be(i.attrs.value);
2382
+ function I() {
2383
+ var c;
2383
2384
  const b = {
2384
- ...ye(e),
2385
+ ...he(e),
2385
2386
  ...o,
2386
- type: (f = e.type) !== null && f !== void 0 ? f : "text",
2387
+ type: (c = e.type) !== null && c !== void 0 ? c : "text",
2387
2388
  __root: s.value,
2388
2389
  __slots: i.slots
2389
- }, k = St(ye(i.attrs), at);
2390
- k.key || (k.key = Ye()), b.attrs = k;
2391
- const I = Vt(ye(i.attrs), at);
2392
- for (const S in I)
2393
- b[De(S)] = I[S];
2390
+ }, C = Vt(he(i.attrs), at);
2391
+ C.key || (C.key = Fe()), b.attrs = C;
2392
+ const L = It(he(i.attrs), at);
2393
+ for (const S in L)
2394
+ b[ze(S)] = L[S];
2394
2395
  const B = { props: {} };
2395
- return Ut(B, e), Object.assign(b, B.props), typeof b.type != "string" && (b.definition = b.type, delete b.type), b;
2396
+ return Kt(B, e), Object.assign(b, B.props), typeof b.type != "string" && (b.definition = b.type, delete b.type), b;
2396
2397
  }
2397
- const Z = A(), $ = Z.ignore ? null : e.parent || he(Je, null), h = Qi(Qe(l || {}, {
2398
+ const H = I(), v = H.ignore ? null : e.parent || pe(je, null), y = Xi(Qe(l || {}, {
2398
2399
  name: e.name || void 0,
2399
- value: _,
2400
- parent: $,
2400
+ value: g,
2401
+ parent: v,
2401
2402
  plugins: (l.plugins || []).concat((n = e.plugins) !== null && n !== void 0 ? n : []),
2402
2403
  config: e.config || {},
2403
- props: Z,
2404
+ props: H,
2404
2405
  index: e.index,
2405
2406
  sync: !!Y(i.attrs.sync || i.attrs.dynamic)
2406
2407
  }, !1, !0));
2407
- h.props.definition || H(600, h);
2408
- const c = ne(new Set(h.props.definition.props || []));
2409
- h.on("added-props", ({ payload: f }) => {
2410
- Array.isArray(f) && f.forEach((b) => c.value.add(b));
2408
+ y.props.definition || q(600, y);
2409
+ const f = Q(new Set(y.props.definition.props || []));
2410
+ y.on("added-props", ({ payload: c }) => {
2411
+ Array.isArray(c) && c.forEach((b) => f.value.add(b));
2411
2412
  });
2412
- const d = E(() => at.concat([...c.value]).reduce((f, b) => (typeof b == "string" ? (f.push(De(b)), f.push(Ht(b))) : f.push(b), f), []));
2413
- ee(() => Ut(h, e));
2414
- const m = ye(e);
2415
- for (const f in m)
2416
- ce(() => e[f], () => {
2417
- e[f] !== void 0 && (h.props[f] = e[f]);
2413
+ const d = E(() => at.concat([...f.value]).reduce((c, b) => (typeof b == "string" ? (c.push(ze(b)), c.push(qt(b))) : c.push(b), c), []));
2414
+ te(() => Kt(y, e));
2415
+ const m = he(e);
2416
+ for (const c in m)
2417
+ ce(() => e[c], () => {
2418
+ e[c] !== void 0 && (y.props[c] = e[c]);
2418
2419
  });
2419
- ee(() => {
2420
- h.props.__root = s.value;
2420
+ te(() => {
2421
+ y.props.__root = s.value;
2421
2422
  });
2422
- const y = /* @__PURE__ */ new Set(), g = ye(i.attrs);
2423
- ee(() => {
2424
- v(Vt(g, d.value));
2423
+ const h = /* @__PURE__ */ new Set(), $ = he(i.attrs);
2424
+ te(() => {
2425
+ _(It($, d.value));
2425
2426
  });
2426
- function v(f) {
2427
- y.forEach((b) => {
2428
- b(), y.delete(b);
2427
+ function _(c) {
2428
+ h.forEach((b) => {
2429
+ b(), h.delete(b);
2429
2430
  });
2430
- for (const b in f) {
2431
- const k = De(b);
2432
- y.add(ce(() => i.attrs[b], () => {
2433
- h.props[k] = i.attrs[b];
2431
+ for (const b in c) {
2432
+ const C = ze(b);
2433
+ h.add(ce(() => i.attrs[b], () => {
2434
+ y.props[C] = i.attrs[b];
2434
2435
  }));
2435
2436
  }
2436
2437
  }
2437
- if (ee(() => {
2438
- const f = St(ye(i.attrs), d.value);
2439
- "multiple" in f && (f.multiple = Y(f.multiple)), typeof f.onBlur == "function" && (f.onBlur = Tn(f.onBlur)), h.props.attrs = Object.assign({}, h.props.attrs || {}, f);
2440
- }), ee(() => {
2441
- var f;
2442
- const b = ((f = e.errors) !== null && f !== void 0 ? f : []).map((k) => oe({
2443
- key: dt(k),
2438
+ if (te(() => {
2439
+ const c = Vt(he(i.attrs), d.value);
2440
+ "multiple" in c && (c.multiple = Y(c.multiple)), typeof c.onBlur == "function" && (c.onBlur = Bn(c.onBlur)), y.props.attrs = Object.assign({}, y.props.attrs || {}, c);
2441
+ }), te(() => {
2442
+ var c;
2443
+ const b = ((c = e.errors) !== null && c !== void 0 ? c : []).map((C) => oe({
2444
+ key: dt(C),
2444
2445
  type: "error",
2445
- value: k,
2446
+ value: C,
2446
2447
  meta: { source: "prop" }
2447
2448
  }));
2448
- h.store.apply(b, (k) => k.type === "error" && k.meta.source === "prop");
2449
- }), h.type !== "input") {
2450
- const f = `${h.name}-prop`;
2451
- ee(() => {
2449
+ y.store.apply(b, (C) => C.type === "error" && C.meta.source === "prop");
2450
+ }), y.type !== "input") {
2451
+ const c = `${y.name}-prop`;
2452
+ te(() => {
2452
2453
  var b;
2453
- const k = (b = e.inputErrors) !== null && b !== void 0 ? b : {}, I = Object.keys(k);
2454
- I.length || h.clearErrors(!0, f);
2455
- const B = I.reduce((S, R) => {
2456
- let O = k[R];
2457
- return typeof O == "string" && (O = [O]), Array.isArray(O) && (S[R] = O.map((N) => oe({
2454
+ const C = (b = e.inputErrors) !== null && b !== void 0 ? b : {}, L = Object.keys(C);
2455
+ L.length || y.clearErrors(!0, c);
2456
+ const B = L.reduce((S, R) => {
2457
+ let x = C[R];
2458
+ return typeof x == "string" && (x = [x]), Array.isArray(x) && (S[R] = x.map((N) => oe({
2458
2459
  key: N,
2459
2460
  type: "error",
2460
2461
  value: N,
2461
- meta: { source: f }
2462
+ meta: { source: c }
2462
2463
  }))), S;
2463
2464
  }, {});
2464
- h.store.apply(B, (S) => S.type === "error" && S.meta.source === f);
2465
+ y.store.apply(B, (S) => S.type === "error" && S.meta.source === c);
2465
2466
  });
2466
2467
  }
2467
- ee(() => Object.assign(h.config, e.config)), h.type !== "input" && Kt(Je, h);
2468
- let w;
2469
- return h.on("modelUpdated", () => {
2470
- var f, b;
2471
- 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 = de(h.value), i.emit("update:modelValue", jn(h.value)));
2472
- }), u && (ce(Cn(e, "modelValue"), (f) => {
2473
- ue(w, f) || h.input(f, !1);
2474
- }, { deep: !0 }), h.value !== _ && h.emit("modelUpdated")), Sn(() => h.destroy()), h;
2475
- }
2476
- let ea = 1;
2477
- function ta(e) {
2468
+ te(() => Object.assign(y.config, e.config)), y.type !== "input" && Nt(je, y);
2469
+ let k;
2470
+ return y.on("modelUpdated", () => {
2471
+ var c, b;
2472
+ i.emit("inputRaw", (c = y.context) === null || c === void 0 ? void 0 : c.value, y), p && i.emit("input", (b = y.context) === null || b === void 0 ? void 0 : b.value, y), u && y.context && (k = be(y.value), i.emit("update:modelValue", Fn(y.value)));
2473
+ }), u && (ce(Sn(e, "modelValue"), (c) => {
2474
+ ue(k, c) || y.input(c, !1);
2475
+ }, { deep: !0 }), y.value !== g && y.emit("modelUpdated")), Vn(() => y.destroy()), y;
2476
+ }
2477
+ let ta = 1;
2478
+ function na(e) {
2478
2479
  return typeof e == "function" && e.length === 2 || typeof e == "object" && !Array.isArray(e) && !("$el" in e) && !("$cmp" in e) && !("if" in e);
2479
2480
  }
2480
- function T(e, i = {}) {
2481
+ function D(e, i = {}) {
2481
2482
  const t = {
2482
2483
  type: "input",
2483
2484
  ...i
2484
2485
  };
2485
2486
  let n;
2486
- if (ta(e)) {
2487
- const l = `SchemaComponent${ea++}`;
2488
- n = C("input", () => ({
2487
+ if (na(e)) {
2488
+ const l = `SchemaComponent${ta++}`;
2489
+ n = w("input", () => ({
2489
2490
  $cmp: l,
2490
2491
  props: {
2491
2492
  context: "$node.context"
2492
2493
  }
2493
- })), t.library = { [l]: Vn(e) };
2494
+ })), t.library = { [l]: In(e) };
2494
2495
  } else
2495
- typeof e == "function" ? n = e : n = C("input", () => de(e));
2496
+ typeof e == "function" ? n = e : n = w("input", () => be(e));
2496
2497
  return t.schema = Rl(n || "Schema undefined"), t.schemaMemoKey || (t.schemaMemoKey = `${Math.random()}`), t;
2497
2498
  }
2498
- const na = C("messages", () => ({
2499
+ const ia = w("messages", () => ({
2499
2500
  $el: "ul",
2500
2501
  if: "$fns.length($messages)"
2501
- })), ia = C("message", () => ({
2502
+ })), la = w("message", () => ({
2502
2503
  $el: "li",
2503
2504
  for: ["message", "$messages"],
2504
2505
  attrs: {
@@ -2506,8 +2507,8 @@ const na = C("messages", () => ({
2506
2507
  id: "$id + '-' + $message.key",
2507
2508
  "data-message-type": "$message.type"
2508
2509
  }
2509
- })), la = na(ia("$message.value"));
2510
- M({
2510
+ })), aa = ia(la("$message.value"));
2511
+ O({
2511
2512
  props: {
2512
2513
  node: {
2513
2514
  type: Object,
@@ -2523,26 +2524,125 @@ M({
2523
2524
  }
2524
2525
  },
2525
2526
  setup(e, i) {
2526
- const t = E(() => e.node || he(Je, void 0));
2527
+ const t = E(() => e.node || pe(je, void 0));
2527
2528
  ce(t, () => {
2528
2529
  var s;
2529
2530
  !((s = t.value) === null || s === void 0) && s.context && !Y(e.defaultPosition) && (t.value.context.defaultMessagePlacement = !1);
2530
2531
  }, { immediate: !0 });
2531
- const n = la(e.sectionsSchema || {}), l = E(() => {
2532
- var s, r, o, u, p, _;
2532
+ const n = aa(e.sectionsSchema || {}), l = E(() => {
2533
+ var s, r, o, u, p, g;
2533
2534
  return {
2534
2535
  messages: ((r = (s = t.value) === null || s === void 0 ? void 0 : s.context) === null || r === void 0 ? void 0 : r.messages) || {},
2535
2536
  fns: ((u = (o = t.value) === null || o === void 0 ? void 0 : o.context) === null || u === void 0 ? void 0 : u.fns) || {},
2536
- classes: ((_ = (p = t.value) === null || p === void 0 ? void 0 : p.context) === null || _ === void 0 ? void 0 : _.classes) || {}
2537
+ classes: ((g = (p = t.value) === null || p === void 0 ? void 0 : p.context) === null || g === void 0 ? void 0 : g.classes) || {}
2537
2538
  };
2538
2539
  });
2539
2540
  return () => {
2540
2541
  var s;
2541
- return !((s = t.value) === null || s === void 0) && s.context ? we(hn, { schema: n, data: l.value }, { ...i.slots }) : null;
2542
+ return !((s = t.value) === null || s === void 0) && s.context ? de(St, { schema: n, data: l.value }, { ...i.slots }) : null;
2543
+ };
2544
+ }
2545
+ });
2546
+ const sa = w("summary", () => ({
2547
+ $el: "div",
2548
+ attrs: {
2549
+ "aria-live": "polite"
2550
+ }
2551
+ })), ra = w("summaryInner", () => ({
2552
+ $el: "div",
2553
+ if: "$summaries.length && $showSummaries"
2554
+ })), oa = w("messages", () => ({
2555
+ $el: "ul",
2556
+ if: "$summaries.length && $showSummaries"
2557
+ })), ua = w("message", () => ({
2558
+ $el: "li",
2559
+ for: ["summary", "$summaries"],
2560
+ attrs: {
2561
+ key: "$summary.key",
2562
+ "data-message-type": "$summary.type"
2563
+ }
2564
+ })), fa = w("summaryHeader", () => ({
2565
+ $el: "h2",
2566
+ attrs: {
2567
+ id: "$id"
2568
+ }
2569
+ })), ca = w("messageLink", () => ({
2570
+ $el: "a",
2571
+ attrs: {
2572
+ id: "$summary.key",
2573
+ href: '$: "#" + $summary.id',
2574
+ onClick: "$jumpLink"
2575
+ }
2576
+ })), pa = sa(ra(fa("$summaryHeader"), oa(ua(ca("$summary.message")))));
2577
+ O({
2578
+ props: {
2579
+ node: {
2580
+ type: Object,
2581
+ required: !1
2582
+ },
2583
+ sectionsSchema: {
2584
+ type: Object,
2585
+ default: {}
2586
+ }
2587
+ },
2588
+ emits: {
2589
+ /* eslint-disable-next-line @typescript-eslint/no-unused-vars */
2590
+ show: (e) => !0
2591
+ },
2592
+ setup(e, i) {
2593
+ var t, n;
2594
+ const l = `summary-${Fe()}`, s = E(() => e.node || pe(je, void 0));
2595
+ if (!s)
2596
+ throw new Error("FormKitSummary must have a FormKit parent or use the node prop.");
2597
+ const r = Q([]), o = Q(!1), u = E(() => {
2598
+ const v = [];
2599
+ return r.value.forEach((y) => {
2600
+ for (const f in y.messages) {
2601
+ const d = y.messages[f];
2602
+ typeof d.value == "string" && v.push({
2603
+ message: d.value,
2604
+ id: y.id,
2605
+ key: `${y.id}-${d.key}`,
2606
+ type: d.type
2607
+ });
2608
+ }
2609
+ }), v;
2610
+ }), p = () => {
2611
+ var v;
2612
+ r.value = [], (v = s.value) === null || v === void 0 || v.walk((y) => y.context && r.value.push(y.context));
2613
+ };
2614
+ (t = s.value) === null || t === void 0 || t.on("submit-raw", async () => {
2615
+ var v, y;
2616
+ p(), u.value.length !== 0 && (i.emit("show", u.value), o.value = !0, await kn(), typeof window < "u" && ((v = document.getElementById(l)) === null || v === void 0 || v.scrollIntoView({ behavior: "smooth" }), u.value[0] && ((y = document.getElementById(u.value[0].key)) === null || y === void 0 || y.focus())));
2617
+ }), (n = s.value) === null || n === void 0 || n.on("child", p);
2618
+ function g(v) {
2619
+ var y, f, d;
2620
+ if (v.target instanceof HTMLAnchorElement) {
2621
+ v.preventDefault();
2622
+ const m = (y = v.target.getAttribute("href")) === null || y === void 0 ? void 0 : y.substring(1);
2623
+ m && ((f = document.getElementById(m)) === null || f === void 0 || f.scrollIntoView({ behavior: "smooth" }), (d = document.getElementById(m)) === null || d === void 0 || d.focus());
2624
+ }
2625
+ }
2626
+ Me("summaryHeader", "There were errors in your form.")(s.value);
2627
+ const I = pa(e.sectionsSchema || {}), H = E(() => {
2628
+ var v, y, f, d, m, h, $, _;
2629
+ return {
2630
+ id: l,
2631
+ fns: ((y = (v = s.value) === null || v === void 0 ? void 0 : v.context) === null || y === void 0 ? void 0 : y.fns) || {},
2632
+ classes: ((d = (f = s.value) === null || f === void 0 ? void 0 : f.context) === null || d === void 0 ? void 0 : d.classes) || {},
2633
+ summaries: u.value,
2634
+ showSummaries: o.value,
2635
+ summaryHeader: ((_ = ($ = (h = (m = s.value) === null || m === void 0 ? void 0 : m.context) === null || h === void 0 ? void 0 : h.ui) === null || $ === void 0 ? void 0 : $.summaryHeader) === null || _ === void 0 ? void 0 : _.value) || "",
2636
+ jumpLink: g
2637
+ };
2638
+ });
2639
+ return () => {
2640
+ var v;
2641
+ return !((v = s.value) === null || v === void 0) && v.context ? de(St, { schema: I, data: H.value }, { ...i.slots }) : null;
2542
2642
  };
2543
2643
  }
2544
2644
  });
2545
- M({
2645
+ O({
2546
2646
  name: "FormKitIcon",
2547
2647
  props: {
2548
2648
  icon: {
@@ -2560,7 +2660,7 @@ M({
2560
2660
  },
2561
2661
  setup(e) {
2562
2662
  var i, t;
2563
- const n = ne(void 0), l = he(gn, {}), s = he(Je, null);
2663
+ const n = Q(void 0), l = pe(gn, {}), s = pe(je, null);
2564
2664
  let r;
2565
2665
  function o() {
2566
2666
  if (!r || typeof r != "function")
@@ -2582,13 +2682,13 @@ M({
2582
2682
  }
2583
2683
  return ce(() => e.icon, () => {
2584
2684
  o();
2585
- }, { immediate: !0 }), () => e.icon && n.value ? we("span", {
2685
+ }, { immediate: !0 }), () => e.icon && n.value ? de("span", {
2586
2686
  class: "formkit-icon",
2587
2687
  innerHTML: n.value
2588
2688
  }) : null;
2589
2689
  }
2590
2690
  });
2591
- const aa = /* @__PURE__ */ M({
2691
+ const da = /* @__PURE__ */ O({
2592
2692
  __name: "PrimeCalendar",
2593
2693
  props: {
2594
2694
  context: Object
@@ -2604,10 +2704,10 @@ const aa = /* @__PURE__ */ M({
2604
2704
  const r = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2605
2705
  return (o, u) => {
2606
2706
  const p = j("Calendar");
2607
- return L(), P("div", null, [
2608
- D(p, {
2707
+ return P(), A("div", null, [
2708
+ T(p, {
2609
2709
  modelValue: a(t)._value,
2610
- "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
2710
+ "onUpdate:modelValue": u[0] || (u[0] = (g) => a(t)._value = g),
2611
2711
  "input-id": i.context.id,
2612
2712
  disabled: a(n)._disabled ?? !1,
2613
2713
  readonly: a(n)._readonly ?? !1,
@@ -2663,13 +2763,13 @@ const aa = /* @__PURE__ */ M({
2663
2763
  ]);
2664
2764
  };
2665
2765
  }
2666
- }), sa = {
2766
+ }), ma = {
2667
2767
  key: 0,
2668
2768
  class: "formkit-prime-left"
2669
- }, ra = {
2769
+ }, ba = {
2670
2770
  key: 1,
2671
2771
  class: "formkit-prime-right"
2672
- }, oa = /* @__PURE__ */ M({
2772
+ }, ya = /* @__PURE__ */ O({
2673
2773
  __name: "PrimeCheckbox",
2674
2774
  props: {
2675
2775
  context: Object
@@ -2683,9 +2783,9 @@ const aa = /* @__PURE__ */ M({
2683
2783
  const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2684
2784
  return (r, o) => {
2685
2785
  const u = j("Checkbox");
2686
- return L(), P("div", null, [
2687
- a(t).attrs.labelLeft ? (L(), P("span", sa, pe(a(t).attrs.labelLeft), 1)) : re("", !0),
2688
- D(u, {
2786
+ return P(), A("div", null, [
2787
+ a(t).attrs.labelLeft ? (P(), A("span", ma, me(a(t).attrs.labelLeft), 1)) : re("", !0),
2788
+ T(u, {
2689
2789
  modelValue: a(t)._value,
2690
2790
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
2691
2791
  "input-id": a(t).id,
@@ -2702,11 +2802,11 @@ const aa = /* @__PURE__ */ M({
2702
2802
  pt: a(n).pt,
2703
2803
  onInput: l
2704
2804
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "binary", "true-value", "false-value", "pt"]),
2705
- a(t).attrs.labelRight ? (L(), P("span", ra, pe(a(t).attrs.labelRight), 1)) : re("", !0)
2805
+ a(t).attrs.labelRight ? (P(), A("span", ba, me(a(t).attrs.labelRight), 1)) : re("", !0)
2706
2806
  ]);
2707
2807
  };
2708
2808
  }
2709
- }), ua = /* @__PURE__ */ M({
2809
+ }), va = /* @__PURE__ */ O({
2710
2810
  __name: "PrimeChips",
2711
2811
  props: {
2712
2812
  context: Object
@@ -2720,8 +2820,8 @@ const aa = /* @__PURE__ */ M({
2720
2820
  const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2721
2821
  return (r, o) => {
2722
2822
  const u = j("Chips");
2723
- return L(), P("div", null, [
2724
- D(u, {
2823
+ return P(), A("div", null, [
2824
+ T(u, {
2725
2825
  modelValue: a(t)._value,
2726
2826
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
2727
2827
  "input-id": a(t).id,
@@ -2744,7 +2844,7 @@ const aa = /* @__PURE__ */ M({
2744
2844
  ]);
2745
2845
  };
2746
2846
  }
2747
- }), fa = /* @__PURE__ */ M({
2847
+ }), ha = /* @__PURE__ */ O({
2748
2848
  __name: "PrimeColorPicker",
2749
2849
  props: {
2750
2850
  context: Object
@@ -2757,13 +2857,13 @@ const aa = /* @__PURE__ */ M({
2757
2857
  }
2758
2858
  return (s, r) => {
2759
2859
  const o = j("ColorPicker");
2760
- return L(), P("div", null, [
2761
- D(o, {
2860
+ return P(), A("div", null, [
2861
+ T(o, {
2762
2862
  modelValue: a(t)._value,
2763
2863
  "onUpdate:modelValue": r[0] || (r[0] = (u) => a(t)._value = u),
2764
2864
  disabled: a(n)._disabled ?? !1,
2765
2865
  readonly: a(n)._readonly ?? !1,
2766
- style: be(a(n).style),
2866
+ style: ve(a(n).style),
2767
2867
  "panel-class": a(n).class,
2768
2868
  tabindex: a(n).tabindex,
2769
2869
  "aria-label": a(n).ariaLabel,
@@ -2777,7 +2877,7 @@ const aa = /* @__PURE__ */ M({
2777
2877
  ]);
2778
2878
  };
2779
2879
  }
2780
- }), ca = /* @__PURE__ */ M({
2880
+ }), _a = /* @__PURE__ */ O({
2781
2881
  __name: "PrimeDropdown",
2782
2882
  props: {
2783
2883
  context: Object
@@ -2793,10 +2893,10 @@ const aa = /* @__PURE__ */ M({
2793
2893
  const r = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2794
2894
  return (o, u) => {
2795
2895
  const p = j("Dropdown");
2796
- return L(), P("div", null, [
2797
- D(p, {
2896
+ return P(), A("div", null, [
2897
+ T(p, {
2798
2898
  modelValue: a(t)._value,
2799
- "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
2899
+ "onUpdate:modelValue": u[0] || (u[0] = (g) => a(t)._value = g),
2800
2900
  "input-id": a(t).id,
2801
2901
  disabled: a(n)._disabled ?? !1,
2802
2902
  readonly: a(n)._readonly ?? !1,
@@ -2818,7 +2918,7 @@ const aa = /* @__PURE__ */ M({
2818
2918
  ]);
2819
2919
  };
2820
2920
  }
2821
- }), pa = /* @__PURE__ */ M({
2921
+ }), ga = /* @__PURE__ */ O({
2822
2922
  __name: "PrimeEditor",
2823
2923
  props: {
2824
2924
  context: Object
@@ -2834,11 +2934,11 @@ const aa = /* @__PURE__ */ M({
2834
2934
  const r = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2835
2935
  return (o, u) => {
2836
2936
  const p = j("Editor");
2837
- return L(), P("div", null, [
2838
- D(p, {
2937
+ return P(), A("div", null, [
2938
+ T(p, {
2839
2939
  id: a(t).id,
2840
2940
  modelValue: a(t)._value,
2841
- "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
2941
+ "onUpdate:modelValue": u[0] || (u[0] = (g) => a(t)._value = g),
2842
2942
  disabled: a(n)._disabled ?? !1,
2843
2943
  readonly: a(n)._readonly ?? !1,
2844
2944
  "editor-style": a(n).style,
@@ -2856,7 +2956,7 @@ const aa = /* @__PURE__ */ M({
2856
2956
  ]);
2857
2957
  };
2858
2958
  }
2859
- }), da = /* @__PURE__ */ M({
2959
+ }), $a = /* @__PURE__ */ O({
2860
2960
  __name: "PrimeInputMask",
2861
2961
  props: {
2862
2962
  context: Object
@@ -2870,8 +2970,8 @@ const aa = /* @__PURE__ */ M({
2870
2970
  const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2871
2971
  return (r, o) => {
2872
2972
  const u = j("InputMask");
2873
- return L(), P("div", null, [
2874
- D(u, {
2973
+ return P(), A("div", null, [
2974
+ T(u, {
2875
2975
  id: a(t).id,
2876
2976
  modelValue: a(t)._value,
2877
2977
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
@@ -2893,7 +2993,7 @@ const aa = /* @__PURE__ */ M({
2893
2993
  ]);
2894
2994
  };
2895
2995
  }
2896
- }), ma = /* @__PURE__ */ M({
2996
+ }), wa = /* @__PURE__ */ O({
2897
2997
  __name: "PrimeInputNumber",
2898
2998
  props: {
2899
2999
  context: Object
@@ -2909,10 +3009,10 @@ const aa = /* @__PURE__ */ M({
2909
3009
  const r = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2910
3010
  return (o, u) => {
2911
3011
  const p = j("InputNumber");
2912
- return L(), P("div", null, [
2913
- D(p, {
3012
+ return P(), A("div", null, [
3013
+ T(p, {
2914
3014
  modelValue: a(t)._value,
2915
- "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
3015
+ "onUpdate:modelValue": u[0] || (u[0] = (g) => a(t)._value = g),
2916
3016
  "input-id": a(t).id,
2917
3017
  disabled: a(n)._disabled ?? !1,
2918
3018
  readonly: a(n)._readonly ?? !1,
@@ -2940,13 +3040,13 @@ const aa = /* @__PURE__ */ M({
2940
3040
  ]);
2941
3041
  };
2942
3042
  }
2943
- }), ba = {
3043
+ }), ka = {
2944
3044
  key: 0,
2945
3045
  class: "formkit-prime-left"
2946
- }, ya = {
3046
+ }, Ca = {
2947
3047
  key: 1,
2948
3048
  class: "formkit-prime-right"
2949
- }, va = /* @__PURE__ */ M({
3049
+ }, Sa = /* @__PURE__ */ O({
2950
3050
  __name: "PrimeInputSwitch",
2951
3051
  props: {
2952
3052
  context: Object
@@ -2960,11 +3060,11 @@ const aa = /* @__PURE__ */ M({
2960
3060
  const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2961
3061
  return (r, o) => {
2962
3062
  const u = j("InputSwitch");
2963
- return L(), P("div", {
3063
+ return P(), A("div", {
2964
3064
  class: U(a(n).option_class)
2965
3065
  }, [
2966
- a(t).attrs.labelLeft ? (L(), P("span", ba, pe(a(t).attrs.labelLeft), 1)) : re("", !0),
2967
- D(u, {
3066
+ a(t).attrs.labelLeft ? (P(), A("span", ka, me(a(t).attrs.labelLeft), 1)) : re("", !0),
3067
+ T(u, {
2968
3068
  modelValue: a(t)._value,
2969
3069
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
2970
3070
  "input-id": a(t).id,
@@ -2980,11 +3080,11 @@ const aa = /* @__PURE__ */ M({
2980
3080
  pt: a(n).pt,
2981
3081
  onInput: l
2982
3082
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "true-value", "false-value", "pt"]),
2983
- a(t).attrs.labelRight ? (L(), P("span", ya, pe(a(t).attrs.labelRight), 1)) : re("", !0)
3083
+ a(t).attrs.labelRight ? (P(), A("span", Ca, me(a(t).attrs.labelRight), 1)) : re("", !0)
2984
3084
  ], 2);
2985
3085
  };
2986
3086
  }
2987
- }), ha = /* @__PURE__ */ M({
3087
+ }), Va = /* @__PURE__ */ O({
2988
3088
  __name: "PrimeInputText",
2989
3089
  props: {
2990
3090
  context: Object
@@ -2998,33 +3098,33 @@ const aa = /* @__PURE__ */ M({
2998
3098
  return (t == null ? void 0 : t.iconRight) && (t == null ? void 0 : t.iconRight.length) > 0;
2999
3099
  }
3000
3100
  function r() {
3001
- let _ = "";
3002
- return l() && (_ = `${_}p-input-icon-left `), s() && (_ = `${_}p-input-icon-right `), _;
3101
+ let g = "";
3102
+ return l() && (g = `${g}p-input-icon-left `), s() && (g = `${g}p-input-icon-right `), g;
3003
3103
  }
3004
- function o(_) {
3005
- t == null || t.handlers.blur(_.target.value);
3104
+ function o(g) {
3105
+ t == null || t.handlers.blur(g.target.value);
3006
3106
  }
3007
- function u(_) {
3008
- t == null || t.node.input(_.target.value);
3107
+ function u(g) {
3108
+ t == null || t.node.input(g.target.value);
3009
3109
  }
3010
3110
  const p = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3011
- return (_, A) => {
3012
- const Z = j("InputText");
3013
- return L(), P("div", null, [
3014
- Nt("span", {
3111
+ return (g, I) => {
3112
+ const H = j("InputText");
3113
+ return P(), A("div", null, [
3114
+ Wt("span", {
3015
3115
  class: U(r())
3016
3116
  }, [
3017
- l() ? (L(), P("i", {
3117
+ l() ? (P(), A("i", {
3018
3118
  key: 0,
3019
3119
  class: U(a(t).iconLeft)
3020
3120
  }, null, 2)) : re("", !0),
3021
- D(Z, {
3121
+ T(H, {
3022
3122
  id: a(t).id,
3023
3123
  modelValue: a(t)._value,
3024
- "onUpdate:modelValue": A[0] || (A[0] = ($) => a(t)._value = $),
3124
+ "onUpdate:modelValue": I[0] || (I[0] = (v) => a(t)._value = v),
3025
3125
  disabled: a(n)._disabled ?? !1,
3026
3126
  readonly: a(n)._readonly ?? !1,
3027
- style: be(a(n).style),
3127
+ style: ve(a(n).style),
3028
3128
  class: U(a(p)),
3029
3129
  tabindex: a(n).tabindex,
3030
3130
  "aria-label": a(n).ariaLabel,
@@ -3034,7 +3134,7 @@ const aa = /* @__PURE__ */ M({
3034
3134
  onInput: u,
3035
3135
  onBlur: o
3036
3136
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "placeholder", "pt"]),
3037
- s ? (L(), P("i", {
3137
+ s ? (P(), A("i", {
3038
3138
  key: 1,
3039
3139
  class: U(a(t).iconRight)
3040
3140
  }, null, 2)) : re("", !0)
@@ -3042,7 +3142,7 @@ const aa = /* @__PURE__ */ M({
3042
3142
  ]);
3043
3143
  };
3044
3144
  }
3045
- }), _a = /* @__PURE__ */ M({
3145
+ }), Ia = /* @__PURE__ */ O({
3046
3146
  __name: "PrimeTextarea",
3047
3147
  props: {
3048
3148
  context: Object
@@ -3058,14 +3158,14 @@ const aa = /* @__PURE__ */ M({
3058
3158
  const r = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3059
3159
  return (o, u) => {
3060
3160
  const p = j("Textarea");
3061
- return L(), P("div", null, [
3062
- D(p, {
3161
+ return P(), A("div", null, [
3162
+ T(p, {
3063
3163
  id: a(t).id,
3064
3164
  modelValue: a(t)._value,
3065
- "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
3165
+ "onUpdate:modelValue": u[0] || (u[0] = (g) => a(t)._value = g),
3066
3166
  disabled: a(n)._disabled ?? !1,
3067
3167
  readonly: a(n)._readonly ?? !1,
3068
- style: be(a(n).style),
3168
+ style: ve(a(n).style),
3069
3169
  class: U(a(r)),
3070
3170
  tabindex: a(n).tabindex,
3071
3171
  "aria-label": a(n).ariaLabel,
@@ -3079,7 +3179,7 @@ const aa = /* @__PURE__ */ M({
3079
3179
  ]);
3080
3180
  };
3081
3181
  }
3082
- }), ga = /* @__PURE__ */ M({
3182
+ }), La = /* @__PURE__ */ O({
3083
3183
  __name: "PrimeKnob",
3084
3184
  props: {
3085
3185
  context: Object
@@ -3092,14 +3192,14 @@ const aa = /* @__PURE__ */ M({
3092
3192
  const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3093
3193
  return (r, o) => {
3094
3194
  const u = j("Knob");
3095
- return L(), P("div", null, [
3096
- D(u, {
3195
+ return P(), A("div", null, [
3196
+ T(u, {
3097
3197
  id: a(t).id,
3098
3198
  modelValue: a(t)._value,
3099
3199
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
3100
3200
  disabled: a(n)._disabled ?? !1,
3101
3201
  readonly: a(n)._readonly ?? !1,
3102
- style: be(a(n).style),
3202
+ style: ve(a(n).style),
3103
3203
  class: U(a(s)),
3104
3204
  tabindex: a(n).tabindex,
3105
3205
  "aria-label": a(n).ariaLabel,
@@ -3120,7 +3220,7 @@ const aa = /* @__PURE__ */ M({
3120
3220
  ]);
3121
3221
  };
3122
3222
  }
3123
- }), $a = /* @__PURE__ */ M({
3223
+ }), Pa = /* @__PURE__ */ O({
3124
3224
  __name: "PrimeMultiSelect",
3125
3225
  props: {
3126
3226
  context: Object
@@ -3134,8 +3234,8 @@ const aa = /* @__PURE__ */ M({
3134
3234
  const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3135
3235
  return (r, o) => {
3136
3236
  const u = j("MultiSelect");
3137
- return L(), P("div", null, [
3138
- D(u, {
3237
+ return P(), A("div", null, [
3238
+ T(u, {
3139
3239
  modelValue: a(t)._value,
3140
3240
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
3141
3241
  "input-id": a(t).id,
@@ -3156,7 +3256,7 @@ const aa = /* @__PURE__ */ M({
3156
3256
  ]);
3157
3257
  };
3158
3258
  }
3159
- }), wa = /* @__PURE__ */ M({
3259
+ }), Aa = /* @__PURE__ */ O({
3160
3260
  __name: "PrimeListbox",
3161
3261
  props: {
3162
3262
  context: Object
@@ -3171,11 +3271,11 @@ const aa = /* @__PURE__ */ M({
3171
3271
  return (r, o) => {
3172
3272
  var p;
3173
3273
  const u = j("Listbox");
3174
- return L(), P("div", null, [
3175
- D(u, {
3274
+ return P(), A("div", null, [
3275
+ T(u, {
3176
3276
  id: a(t).id,
3177
3277
  modelValue: a(t)._value,
3178
- "onUpdate:modelValue": o[0] || (o[0] = (_) => a(t)._value = _),
3278
+ "onUpdate:modelValue": o[0] || (o[0] = (g) => a(t)._value = g),
3179
3279
  disabled: a(n)._disabled ?? !1,
3180
3280
  readonly: a(n)._readonly ?? !1,
3181
3281
  "list-style": a(n).style,
@@ -3200,7 +3300,7 @@ const aa = /* @__PURE__ */ M({
3200
3300
  ]);
3201
3301
  };
3202
3302
  }
3203
- }), ka = /* @__PURE__ */ M({
3303
+ }), Oa = /* @__PURE__ */ O({
3204
3304
  __name: "PrimePassword",
3205
3305
  props: {
3206
3306
  context: Object
@@ -3216,10 +3316,10 @@ const aa = /* @__PURE__ */ M({
3216
3316
  const r = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3217
3317
  return (o, u) => {
3218
3318
  const p = j("Password");
3219
- return L(), P("div", null, [
3220
- D(p, {
3319
+ return P(), A("div", null, [
3320
+ T(p, {
3221
3321
  modelValue: a(t)._value,
3222
- "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
3322
+ "onUpdate:modelValue": u[0] || (u[0] = (g) => a(t)._value = g),
3223
3323
  "input-id": a(t).id,
3224
3324
  disabled: a(n)._disabled ?? !1,
3225
3325
  readonly: a(n)._readonly ?? !1,
@@ -3246,7 +3346,7 @@ const aa = /* @__PURE__ */ M({
3246
3346
  ]);
3247
3347
  };
3248
3348
  }
3249
- }), Ca = ["for"], Sa = /* @__PURE__ */ M({
3349
+ }), xa = ["for"], Ma = /* @__PURE__ */ O({
3250
3350
  __name: "PrimeRadioButton",
3251
3351
  props: {
3252
3352
  context: Object
@@ -3260,16 +3360,16 @@ const aa = /* @__PURE__ */ M({
3260
3360
  const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3261
3361
  return (r, o) => {
3262
3362
  const u = j("RadioButton");
3263
- return L(), P("div", {
3363
+ return P(), A("div", {
3264
3364
  class: U(a(n).options_class)
3265
3365
  }, [
3266
- (L(!0), P(Pn, null, An(a(n).options, (p) => (L(), P("div", {
3366
+ (P(!0), A(An, null, On(a(n).options, (p) => (P(), A("div", {
3267
3367
  key: p.value,
3268
3368
  class: U(a(n).option_class)
3269
3369
  }, [
3270
- D(u, {
3370
+ T(u, {
3271
3371
  modelValue: a(t)._value,
3272
- "onUpdate:modelValue": o[0] || (o[0] = (_) => a(t)._value = _),
3372
+ "onUpdate:modelValue": o[0] || (o[0] = (g) => a(t)._value = g),
3273
3373
  name: a(n).name,
3274
3374
  value: p.value,
3275
3375
  "input-style": a(n).style,
@@ -3278,14 +3378,14 @@ const aa = /* @__PURE__ */ M({
3278
3378
  onClick: l,
3279
3379
  onChange: l
3280
3380
  }, null, 8, ["modelValue", "name", "value", "input-style", "input-class", "pt"]),
3281
- Nt("label", {
3381
+ Wt("label", {
3282
3382
  for: p.value
3283
- }, pe(p.label), 9, Ca)
3383
+ }, me(p.label), 9, xa)
3284
3384
  ], 2))), 128))
3285
3385
  ], 2);
3286
3386
  };
3287
3387
  }
3288
- }), Va = /* @__PURE__ */ M({
3388
+ }), Ea = /* @__PURE__ */ O({
3289
3389
  __name: "PrimeRating",
3290
3390
  props: {
3291
3391
  context: Object
@@ -3299,14 +3399,14 @@ const aa = /* @__PURE__ */ M({
3299
3399
  const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3300
3400
  return (r, o) => {
3301
3401
  const u = j("Rating");
3302
- return L(), P("div", null, [
3303
- D(u, {
3402
+ return P(), A("div", null, [
3403
+ T(u, {
3304
3404
  id: a(t).id,
3305
3405
  modelValue: a(t)._value,
3306
3406
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
3307
3407
  disabled: a(n)._disabled ?? !1,
3308
3408
  readonly: a(n)._readonly ?? !1,
3309
- style: be(a(n).style),
3409
+ style: ve(a(n).style),
3310
3410
  class: U(a(s)),
3311
3411
  tabindex: a(n).tabindex,
3312
3412
  "aria-label": a(n).ariaLabel,
@@ -3322,7 +3422,7 @@ const aa = /* @__PURE__ */ M({
3322
3422
  ]);
3323
3423
  };
3324
3424
  }
3325
- }), Ia = /* @__PURE__ */ M({
3425
+ }), Ra = /* @__PURE__ */ O({
3326
3426
  __name: "PrimeSlider",
3327
3427
  props: {
3328
3428
  context: Object
@@ -3335,14 +3435,14 @@ const aa = /* @__PURE__ */ M({
3335
3435
  const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3336
3436
  return (r, o) => {
3337
3437
  const u = j("Slider");
3338
- return L(), P("div", null, [
3339
- D(u, {
3438
+ return P(), A("div", null, [
3439
+ T(u, {
3340
3440
  id: a(t).id,
3341
3441
  modelValue: a(t)._value,
3342
3442
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
3343
3443
  disabled: a(n)._disabled ?? !1,
3344
3444
  readonly: a(n)._readonly ?? !1,
3345
- style: be(a(n).style),
3445
+ style: ve(a(n).style),
3346
3446
  class: U(a(s)),
3347
3447
  tabindex: a(n).tabindex,
3348
3448
  "aria-label": a(n).ariaLabel,
@@ -3358,7 +3458,7 @@ const aa = /* @__PURE__ */ M({
3358
3458
  ]);
3359
3459
  };
3360
3460
  }
3361
- }), La = /* @__PURE__ */ M({
3461
+ }), ja = /* @__PURE__ */ O({
3362
3462
  __name: "PrimeToggleButton",
3363
3463
  props: {
3364
3464
  context: Object
@@ -3372,8 +3472,8 @@ const aa = /* @__PURE__ */ M({
3372
3472
  const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3373
3473
  return (r, o) => {
3374
3474
  const u = j("ToggleButton");
3375
- return L(), P("div", null, [
3376
- D(u, {
3475
+ return P(), A("div", null, [
3476
+ T(u, {
3377
3477
  modelValue: a(t)._value,
3378
3478
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
3379
3479
  "input-id": a(t).id,
@@ -3395,7 +3495,7 @@ const aa = /* @__PURE__ */ M({
3395
3495
  ]);
3396
3496
  };
3397
3497
  }
3398
- }), Pa = /* @__PURE__ */ M({
3498
+ }), Fa = /* @__PURE__ */ O({
3399
3499
  __name: "PrimeSelectButton",
3400
3500
  props: {
3401
3501
  context: Object
@@ -3409,14 +3509,14 @@ const aa = /* @__PURE__ */ M({
3409
3509
  const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3410
3510
  return (r, o) => {
3411
3511
  const u = j("SelectButton");
3412
- return L(), P("div", null, [
3413
- D(u, {
3512
+ return P(), A("div", null, [
3513
+ T(u, {
3414
3514
  id: a(t).id,
3415
3515
  modelValue: a(t)._value,
3416
3516
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
3417
3517
  disabled: a(n)._disabled ?? !1,
3418
3518
  readonly: a(n)._readonly ?? !1,
3419
- style: be(a(n).style),
3519
+ style: ve(a(n).style),
3420
3520
  class: U(a(s)),
3421
3521
  tabindex: a(n).tabindex,
3422
3522
  "aria-label": a(n).ariaLabel,
@@ -3434,13 +3534,13 @@ const aa = /* @__PURE__ */ M({
3434
3534
  ]);
3435
3535
  };
3436
3536
  }
3437
- }), Aa = {
3537
+ }), Ta = {
3438
3538
  key: 0,
3439
3539
  class: "formkit-prime-left"
3440
- }, Oa = {
3540
+ }, Da = {
3441
3541
  key: 1,
3442
3542
  class: "formkit-prime-right"
3443
- }, xa = /* @__PURE__ */ M({
3543
+ }, Ba = /* @__PURE__ */ O({
3444
3544
  __name: "PrimeTriStateCheckbox",
3445
3545
  props: {
3446
3546
  context: Object
@@ -3454,9 +3554,9 @@ const aa = /* @__PURE__ */ M({
3454
3554
  const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3455
3555
  return (r, o) => {
3456
3556
  const u = j("TriStateCheckbox");
3457
- return L(), P("div", null, [
3458
- a(t).attrs.labelLeft ? (L(), P("span", Aa, pe(a(t).attrs.labelLeft), 1)) : re("", !0),
3459
- D(u, {
3557
+ return P(), A("div", null, [
3558
+ a(t).attrs.labelLeft ? (P(), A("span", Ta, me(a(t).attrs.labelLeft), 1)) : re("", !0),
3559
+ T(u, {
3460
3560
  modelValue: a(t)._value,
3461
3561
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
3462
3562
  "input-id": a(t).id,
@@ -3470,96 +3570,96 @@ const aa = /* @__PURE__ */ M({
3470
3570
  pt: a(n).pt,
3471
3571
  onClick: l
3472
3572
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "pt"]),
3473
- a(t).attrs.labelRight ? (L(), P("span", Oa, pe(a(t).attrs.labelRight), 1)) : re("", !0)
3573
+ a(t).attrs.labelRight ? (P(), A("span", Da, me(a(t).attrs.labelRight), 1)) : re("", !0)
3474
3574
  ]);
3475
3575
  };
3476
3576
  }
3477
- }), Ma = T(ha, {
3577
+ }), za = D(Va, {
3478
3578
  props: ["iconRight", "iconLeft"]
3479
- }), Ra = T(ma, {
3579
+ }), Ua = D(wa, {
3480
3580
  props: ["iconRight", "iconLeft"]
3481
- }), Ea = T(da, {
3581
+ }), Ka = D($a, {
3482
3582
  props: []
3483
- }), ja = T(ka, {
3583
+ }), Na = D(Oa, {
3484
3584
  props: ["feedback", "toggleMask"]
3485
- }), Fa = T(_a, {
3585
+ }), Wa = D(Ia, {
3486
3586
  props: ["rows"]
3487
- }), Da = T(oa, {
3587
+ }), Ha = D(ya, {
3488
3588
  props: []
3489
- }), Ta = T(va, {
3589
+ }), qa = D(Sa, {
3490
3590
  props: []
3491
- }), Ba = T(pa, {
3591
+ }), Za = D(ga, {
3492
3592
  props: []
3493
- }), za = T(ca, {
3593
+ }), Ja = D(_a, {
3494
3594
  props: []
3495
- }), Ua = T($a, {
3595
+ }), Ya = D(Pa, {
3496
3596
  props: []
3497
- }), Ka = T(wa, {
3597
+ }), Qa = D(Aa, {
3498
3598
  props: []
3499
- }), Na = T(aa, {
3599
+ }), Xa = D(da, {
3500
3600
  props: []
3501
- }), Wa = T(Ia, {
3601
+ }), Ga = D(Ra, {
3502
3602
  props: []
3503
- }), Ha = T(Va, {
3603
+ }), es = D(Ea, {
3504
3604
  props: []
3505
- }), qa = T(Sa, {
3605
+ }), ts = D(Ma, {
3506
3606
  props: []
3507
- }), Za = T(ua, {
3607
+ }), ns = D(va, {
3508
3608
  props: []
3509
- }), Ja = T(ga, {
3609
+ }), is = D(La, {
3510
3610
  props: []
3511
- }), Ya = T(fa, {
3611
+ }), ls = D(ha, {
3512
3612
  props: []
3513
- }), Qa = T(La, {
3613
+ }), as = D(ja, {
3514
3614
  props: []
3515
- }), Xa = T(Pa, {
3615
+ }), ss = D(Fa, {
3516
3616
  props: []
3517
- }), Ga = T(xa, {
3617
+ }), rs = D(Ba, {
3518
3618
  props: []
3519
- }), ts = {
3520
- primeInputText: Ma,
3521
- primeInputNumber: Ra,
3522
- primeInputMask: Ea,
3523
- primePassword: ja,
3524
- primeCheckbox: Da,
3525
- primeInputSwitch: Ta,
3526
- primeTextarea: Fa,
3527
- primeEditor: Ba,
3528
- primeDropdown: za,
3529
- primeMultiSelect: Ua,
3530
- primeCalendar: Na,
3531
- primeSlider: Wa,
3532
- primeChips: Za,
3533
- primeKnob: Ja,
3534
- primeRating: Ha,
3535
- primeRadioButton: qa,
3536
- primeColorPicker: Ya,
3537
- primeToggleButton: Qa,
3538
- primeListbox: Ka,
3539
- primeSelectButton: Xa,
3540
- primeTriStateCheckbox: Ga
3619
+ }), us = {
3620
+ primeInputText: za,
3621
+ primeInputNumber: Ua,
3622
+ primeInputMask: Ka,
3623
+ primePassword: Na,
3624
+ primeCheckbox: Ha,
3625
+ primeInputSwitch: qa,
3626
+ primeTextarea: Wa,
3627
+ primeEditor: Za,
3628
+ primeDropdown: Ja,
3629
+ primeMultiSelect: Ya,
3630
+ primeCalendar: Xa,
3631
+ primeSlider: Ga,
3632
+ primeChips: ns,
3633
+ primeKnob: is,
3634
+ primeRating: es,
3635
+ primeRadioButton: ts,
3636
+ primeColorPicker: ls,
3637
+ primeToggleButton: as,
3638
+ primeListbox: Qa,
3639
+ primeSelectButton: ss,
3640
+ primeTriStateCheckbox: rs
3541
3641
  };
3542
3642
  export {
3543
- Na as primeCalendarDefinition,
3544
- Da as primeCheckboxDefinition,
3545
- Za as primeChipsDefinition,
3546
- Ya as primeColorPickerDefinition,
3547
- za as primeDropdownDefinition,
3548
- Ba as primeEditorDefinition,
3549
- Ea as primeInputMaskDefinition,
3550
- Ra as primeInputNumberDefinition,
3551
- Ta as primeInputSwitchDefinition,
3552
- Ma as primeInputTextDefinition,
3553
- ts as primeInputs,
3554
- Ja as primeKnobDefinition,
3555
- Ka as primeListboxDefinition,
3556
- Ua as primeMultiSelectDefinition,
3557
- ja as primePasswordDefinition,
3558
- qa as primeRadioButtonDefinition,
3559
- Ha as primeRatingDefinition,
3560
- Xa as primeSelectButtonDefinition,
3561
- Wa as primeSliderDefinition,
3562
- Fa as primeTextareaDefinition,
3563
- Qa as primeToggleButtonDefinition,
3564
- Ga as primeTriStateCheckboxDefinition
3643
+ Xa as primeCalendarDefinition,
3644
+ Ha as primeCheckboxDefinition,
3645
+ ns as primeChipsDefinition,
3646
+ ls as primeColorPickerDefinition,
3647
+ Ja as primeDropdownDefinition,
3648
+ Za as primeEditorDefinition,
3649
+ Ka as primeInputMaskDefinition,
3650
+ Ua as primeInputNumberDefinition,
3651
+ qa as primeInputSwitchDefinition,
3652
+ za as primeInputTextDefinition,
3653
+ us as primeInputs,
3654
+ is as primeKnobDefinition,
3655
+ Qa as primeListboxDefinition,
3656
+ Ya as primeMultiSelectDefinition,
3657
+ Na as primePasswordDefinition,
3658
+ ts as primeRadioButtonDefinition,
3659
+ es as primeRatingDefinition,
3660
+ ss as primeSelectButtonDefinition,
3661
+ Ga as primeSliderDefinition,
3662
+ Wa as primeTextareaDefinition,
3663
+ as as primeToggleButtonDefinition,
3664
+ rs as primeTriStateCheckboxDefinition
3565
3665
  };