@feedmepos/mf-brand-app-builder 0.5.49-dev.1 → 0.5.49-prod

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.
Files changed (25) hide show
  1. package/dist/{App-BRWdYrrB.js → App-CLNf8LIw.js} +4 -4
  2. package/dist/{AssetsSettings-DtZ6goQl.js → AssetsSettings-Do8rt2sU.js} +22 -22
  3. package/dist/{BrandkitView-7AG4dkWK.js → BrandkitView-CSWCQPdo.js} +1549 -1518
  4. package/dist/{BuilderView-1ecAIwCF.js → BuilderView-Qks-Rk3g.js} +7 -7
  5. package/dist/{CredentialSettings-3eVBw1x8.js → CredentialSettings-BB_Yroul.js} +1 -1
  6. package/dist/{ImageUpload-DbnCBBrk.js → ImageUpload-DHEVQGJp.js} +8 -8
  7. package/dist/{LinkButton-De-YNclu.js → LinkButton-DNXBKGCn.js} +1 -1
  8. package/dist/{ListRepeater-CNLIHsUG.js → ListRepeater-D9IIhvhq.js} +1 -1
  9. package/dist/{ManagementSettings-CWAKkmbz.js → ManagementSettings-CjsGetkI.js} +6 -6
  10. package/dist/{ProjectView-CYK3oA5I.js → ProjectView-DhTWh1zO.js} +3 -3
  11. package/dist/{app-xjlIYnd-.js → app-CHOjSm_R.js} +610 -648
  12. package/dist/app.js +1 -1
  13. package/dist/client/merchant/src/composables/miniprogramPortalEntry.d.ts +0 -19
  14. package/dist/{dayjs.min-V86kHiPB.js → dayjs.min-DEcGBG97.js} +1 -1
  15. package/dist/{image-D_Djf1PS.js → image-S7-2rbQS.js} +7 -7
  16. package/dist/{index-BA2J-Ffh.js → index-BpYD24Jn.js} +1 -1
  17. package/dist/{index-D0LOMBBD.js → index-C6_vWPi0.js} +27 -27
  18. package/dist/index-CP6_oC8N.js +134 -0
  19. package/dist/{index-Bk6TOZrx.js → index-CPs0rWCO.js} +15 -15
  20. package/dist/{main-CMc0YMiV.js → main-Ck7XyZHq.js} +2 -2
  21. package/dist/package.json +1 -1
  22. package/dist/style.css +1 -1
  23. package/dist/{useBusinessFeatureFlag-B7Qvaq-q.js → useBusinessFeatureFlag-BAPhlAX0.js} +1 -1
  24. package/package.json +1 -1
  25. package/dist/index-CVVQJJYY.js +0 -134
@@ -1,7 +1,7 @@
1
- import { isRef as At, ref as z, shallowRef as Oi, watchEffect as pe, computed as be, h as tt, defineComponent as Pt, createBlock as Gi, renderSlot as Ii, createCommentVNode as Ei, unref as Me, openBlock as en, createElementBlock as Yi, createElementVNode as Se, toDisplayString as ya, defineAsyncComponent as W, getCurrentInstance as Ht, markRaw as Lt, watch as _e, reactive as Ke, onMounted as tn, onUnmounted as Hi, inject as ot, provide as Ri, toRef as Ni, onBeforeUnmount as qi, createTextVNode as Qi, resolveComponent as Xi, nextTick as Wi, triggerRef as lt, isReactive as va } from "vue";
1
+ import { isRef as At, ref as z, shallowRef as Oi, watchEffect as pe, computed as be, h as tt, defineComponent as Pt, createBlock as Gi, renderSlot as Ii, createCommentVNode as Ei, unref as Me, openBlock as $a, createElementBlock as Yi, createElementVNode as Se, toDisplayString as ba, defineAsyncComponent as W, getCurrentInstance as Ht, markRaw as Lt, watch as _e, reactive as Ke, onMounted as en, onUnmounted as Hi, inject as ot, provide as Ri, toRef as Ni, onBeforeUnmount as qi, createTextVNode as Qi, resolveComponent as Xi, nextTick as Wi, triggerRef as lt, isReactive as ya } from "vue";
2
2
  import { MiniprogramWorkspace as Ui } from "@feedmepos/mf-miniprogram-v2";
3
3
  import { useRoute as zi } from "vue-router";
4
- import { useCoreStore as aa, useI18n as an } from "@feedmepos/mf-common";
4
+ import { useCoreStore as tn, useI18n as an } from "@feedmepos/mf-common";
5
5
  const Ki = {
6
6
  common: {
7
7
  confirm: "Confirm",
@@ -9831,10 +9831,10 @@ var nn = { exports: {} };
9831
9831
  if (function me(Be, Ue, ze, Fi, jt) {
9832
9832
  if (ze === Ue.length || Be == null)
9833
9833
  return void jt.push([Be, Ue[ze - 1], Fi]);
9834
- var ba = A(Ue, ze);
9835
- if (l(Be) && isNaN(Number(ba)))
9834
+ var fa = A(Ue, ze);
9835
+ if (l(Be) && isNaN(Number(fa)))
9836
9836
  for (var Ft = 0, Vi = Be.length; Ft < Vi; Ft++) me(A(Be, Ft), Ue, ze, Be, jt);
9837
- else me(A(Be, ba), Ue, ze + 1, Be, jt);
9837
+ else me(A(Be, fa), Ue, ze + 1, Be, jt);
9838
9838
  }(g, f, 0, g, k), k.length === 1) {
9839
9839
  var L = k[0];
9840
9840
  return D(u, L[0], L[1], L[2]);
@@ -9993,7 +9993,7 @@ function Nt(e) {
9993
9993
  }), ft(i, n);
9994
9994
  }, Nt(e);
9995
9995
  }
9996
- function Ca(e) {
9996
+ function va(e) {
9997
9997
  if (e === void 0)
9998
9998
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
9999
9999
  return e;
@@ -10013,7 +10013,7 @@ var rn = function(t) {
10013
10013
  };
10014
10014
  function t(n, i) {
10015
10015
  var r;
10016
- return i === void 0 && (i = {}), r = e.call(this, n) || this, r._setMetadata(i), r.message = n || ct(Ca(r)), r._customMessage = null, typeof Error.captureStackTrace == "function" && (r.name = r.constructor.name, Error.captureStackTrace(Ca(r), r.constructor)), r;
10016
+ return i === void 0 && (i = {}), r = e.call(this, n) || this, r._setMetadata(i), r.message = n || ct(va(r)), r._customMessage = null, typeof Error.captureStackTrace == "function" && (r.name = r.constructor.name, Error.captureStackTrace(va(r), r.constructor)), r;
10017
10017
  }
10018
10018
  var a = t.prototype;
10019
10019
  return a.setMessage = function(i) {
@@ -10079,19 +10079,19 @@ var Os = /* @__PURE__ */ function() {
10079
10079
  }, t.matchesField = function(n) {
10080
10080
  return typeof this._fieldsPattern > "u" && (this._fieldsPattern = this.fields.join("").indexOf("*") === -1 ? null : Vs(this.fields)), this._fieldsPattern === null || n.indexOf("*") !== -1 ? this.fields.indexOf(n) !== -1 : this._fieldsPattern.test(n);
10081
10081
  }, e;
10082
- }(), ee = typeof Symbol < "u" ? Symbol("private") : "__" + Date.now(), wa = {
10082
+ }(), ee = typeof Symbol < "u" ? Symbol("private") : "__" + Date.now(), Ca = {
10083
10083
  crud: ["create", "read", "update", "delete"]
10084
10084
  };
10085
- function ka(e, t) {
10085
+ function wa(e, t) {
10086
10086
  return e === t || Array.isArray(t) && t.indexOf(e) !== -1;
10087
10087
  }
10088
10088
  var Gs = /* @__PURE__ */ function() {
10089
10089
  e.addAlias = function(n, i) {
10090
- if (n === "manage" || ka("manage", i))
10090
+ if (n === "manage" || wa("manage", i))
10091
10091
  throw new Error('Cannot add alias for "manage" action because it represents any action');
10092
- if (ka(n, i))
10092
+ if (wa(n, i))
10093
10093
  throw new Error("Attempt to alias action to itself: " + n + " -> " + i.toString());
10094
- return wa[n] = i, this;
10094
+ return Ca[n] = i, this;
10095
10095
  };
10096
10096
  function e(a, n) {
10097
10097
  n === void 0 && (n = {}), Object.defineProperty(this, "subjectName", {
@@ -10103,7 +10103,7 @@ var Gs = /* @__PURE__ */ function() {
10103
10103
  indexedRules: /* @__PURE__ */ Object.create(null),
10104
10104
  mergedRules: /* @__PURE__ */ Object.create(null),
10105
10105
  events: {},
10106
- aliases: Ms(wa)
10106
+ aliases: Ms(Ca)
10107
10107
  }, this.update(a);
10108
10108
  }
10109
10109
  var t = e.prototype;
@@ -10698,7 +10698,7 @@ const J = [
10698
10698
  subject: F.inventory,
10699
10699
  actions: [o.read]
10700
10700
  }
10701
- ], na = [
10701
+ ], aa = [
10702
10702
  ...J,
10703
10703
  {
10704
10704
  label: "Stock",
@@ -10748,11 +10748,11 @@ const J = [
10748
10748
  }
10749
10749
  ];
10750
10750
  [
10751
- ...na,
10751
+ ...aa,
10752
10752
  ...kn,
10753
10753
  ...Dn
10754
10754
  ];
10755
- const ia = [
10755
+ const na = [
10756
10756
  ...J,
10757
10757
  {
10758
10758
  label: "Closing",
@@ -10815,7 +10815,7 @@ const ia = [
10815
10815
  }
10816
10816
  ];
10817
10817
  [
10818
- ...ia,
10818
+ ...na,
10819
10819
  ...Bn,
10820
10820
  ...Tn
10821
10821
  ];
@@ -11025,14 +11025,14 @@ const Ao = [
11025
11025
  ];
11026
11026
  [
11027
11027
  ...J,
11028
- ...na,
11029
- ...ia
11028
+ ...aa,
11029
+ ...na
11030
11030
  ];
11031
11031
  const Co = {
11032
11032
  [`set_${d.inventory_stockBalance}`]: {
11033
11033
  key: "sys:inventory:stock_balance",
11034
11034
  name: "Stock Balance",
11035
- permissions: na
11035
+ permissions: aa
11036
11036
  },
11037
11037
  [`set_${d.inventory_stockAdjustment}`]: {
11038
11038
  key: "sys:inventory:stock_adjustment",
@@ -11052,7 +11052,7 @@ const Co = {
11052
11052
  [`set_${d.inventory_closingHistory}`]: {
11053
11053
  key: "sys:inventory:closing_history",
11054
11054
  name: "Closing History",
11055
- permissions: ia
11055
+ permissions: na
11056
11056
  },
11057
11057
  [`set_${d.inventory_closingTemplate}`]: {
11058
11058
  key: "sys:inventory:closing_template",
@@ -11207,7 +11207,7 @@ const wo = {
11207
11207
  }
11208
11208
  };
11209
11209
  var Sn = /* @__PURE__ */ ((e) => (e.payment_terminals = "payment::terminals", e))(Sn || {});
11210
- const Da = [
11210
+ const ka = [
11211
11211
  {
11212
11212
  label: "Payout Account",
11213
11213
  subject: d.payment_payoutAccount,
@@ -11222,12 +11222,12 @@ const Da = [
11222
11222
  [`set_${d.payment_transactions}`]: {
11223
11223
  key: "sys:payment:transactions",
11224
11224
  name: "Payment Transactions Access",
11225
- permissions: Da
11225
+ permissions: ka
11226
11226
  },
11227
11227
  [`set_${d.payment_settlements}`]: {
11228
11228
  key: "sys:payment:settlements",
11229
11229
  name: "Payment Settlements Access",
11230
- permissions: Da
11230
+ permissions: ka
11231
11231
  }
11232
11232
  }, Do = {
11233
11233
  ...lo,
@@ -11353,7 +11353,7 @@ async function xo(e, t) {
11353
11353
  }
11354
11354
  var Qt = /* @__PURE__ */ ((e) => (e.Loading = "loading", e.Allowed = "allowed", e.Denied = "denied", e))(Qt || {});
11355
11355
  function So() {
11356
- const e = zi(), { sessionUser: t } = aa();
11356
+ const e = zi(), { sessionUser: t } = tn();
11357
11357
  return Po(
11358
11358
  async () => {
11359
11359
  e.matched;
@@ -11403,7 +11403,7 @@ const jo = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
11403
11403
  "th-TH": Ho
11404
11404
  }
11405
11405
  });
11406
- return (a, n) => (en(), Yi("div", Ro, [
11406
+ return (a, n) => ($a(), Yi("div", Ro, [
11407
11407
  Se("div", No, [
11408
11408
  Se("div", qo, [
11409
11409
  Se("img", {
@@ -11412,8 +11412,8 @@ const jo = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
11412
11412
  }, null, 8, Qo)
11413
11413
  ]),
11414
11414
  Se("div", null, [
11415
- Se("h1", Xo, ya(Me(t)("noPermission.title")), 1),
11416
- Se("h2", Wo, ya(Me(t)("noPermission.subtitle")), 1)
11415
+ Se("h1", Xo, ba(Me(t)("noPermission.title")), 1),
11416
+ Se("h2", Wo, ba(Me(t)("noPermission.subtitle")), 1)
11417
11417
  ])
11418
11418
  ])
11419
11419
  ]));
@@ -11422,7 +11422,7 @@ const jo = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
11422
11422
  __name: "PermissionWrapper",
11423
11423
  setup(e) {
11424
11424
  const t = So();
11425
- return (a, n) => Me(t) === Me(Qt).Denied ? (en(), Gi(Uo, { key: 0 })) : Me(t) === Me(Qt).Allowed ? Ii(a.$slots, "default", { key: 1 }) : Ei("", !0);
11425
+ return (a, n) => Me(t) === Me(Qt).Denied ? ($a(), Gi(Uo, { key: 0 })) : Me(t) === Me(Qt).Allowed ? Ii(a.$slots, "default", { key: 1 }) : Ei("", !0);
11426
11426
  }
11427
11427
  });
11428
11428
  function Le(e) {
@@ -11449,12 +11449,12 @@ const Ko = {
11449
11449
  };
11450
11450
  function Fn(e) {
11451
11451
  var n;
11452
- const a = ((n = aa().sessionUser.value) == null ? void 0 : n.permissions) ?? [];
11452
+ const a = ((n = tn().sessionUser.value) == null ? void 0 : n.permissions) ?? [];
11453
11453
  return e.some(
11454
11454
  (i) => jn([i], a).granted
11455
11455
  );
11456
11456
  }
11457
- function ig() {
11457
+ function ag() {
11458
11458
  return {
11459
11459
  canPublish: be(
11460
11460
  () => Fn([
@@ -11463,92 +11463,55 @@ function ig() {
11463
11463
  )
11464
11464
  };
11465
11465
  }
11466
- function Zo(e, t, a) {
11467
- const n = {};
11468
- for (const s of ["businessId", "country", "restaurantId"]) {
11469
- const l = t[s] ?? e[s];
11470
- typeof l == "string" && l && (n[s] = l);
11471
- }
11472
- const i = a === "prod" ? "https://portal.feedme.cc" : "https://portal.feedmedev.cc", r = new URLSearchParams(n).toString();
11473
- return {
11474
- name: "miniprogram-v2-ecosystem",
11475
- query: n,
11476
- href: `${i}/miniprogram-v2${r ? `?${r}` : ""}`
11477
- };
11478
- }
11479
- function Jo(e, t, a, n) {
11480
- return n.toLowerCase().includes("dev") && a === "dev" ? {
11481
- path: "/miniprogram-v2",
11482
- query: Zo(e, t, a).query
11483
- } : { name: "brandkit", query: e };
11484
- }
11485
11466
  const at = (e) => ({
11486
11467
  validationManifest: {
11487
11468
  customValidationFunction: async () => ({
11488
11469
  canAccess: Fn(e)
11489
11470
  })
11490
11471
  }
11491
- }), _o = Le(
11492
- W(() => import("./BrandkitView-7AG4dkWK.js"))
11472
+ }), Zo = Le(
11473
+ W(() => import("./BrandkitView-CSWCQPdo.js"))
11474
+ ), Jo = Le(
11475
+ W(() => import("./ProjectView-DhTWh1zO.js"))
11476
+ ), _o = Le(
11477
+ W(() => import("./BuilderView-Qks-Rk3g.js"))
11493
11478
  ), $o = Le(
11494
- W(() => import("./ProjectView-CYK3oA5I.js"))
11495
- ), el = Le(
11496
- W(() => import("./BuilderView-1ecAIwCF.js"))
11497
- ), tl = Le(
11498
11479
  W(
11499
- () => import("./AssetsSettings-DtZ6goQl.js")
11480
+ () => import("./AssetsSettings-Do8rt2sU.js")
11500
11481
  )
11501
- ), al = Le(
11482
+ ), el = Le(
11502
11483
  W(
11503
- () => import("./ManagementSettings-CWAKkmbz.js")
11484
+ () => import("./ManagementSettings-CjsGetkI.js")
11504
11485
  )
11505
11486
  );
11506
11487
  Le(
11507
11488
  W(
11508
- () => import("./CredentialSettings-3eVBw1x8.js")
11489
+ () => import("./CredentialSettings-BB_Yroul.js")
11509
11490
  )
11510
11491
  );
11511
- const nl = Le(Ui), il = at([
11492
+ const tl = Le(Ui), al = at([
11512
11493
  Qe(ie.Action.manage, "brandkit")
11513
11494
  ]), Vt = at([
11514
11495
  Qe(ie.Action.manage, "template")
11515
- ]), rl = at([
11496
+ ]), nl = at([
11516
11497
  Qe(ie.Action.manage, "assets")
11517
- ]), sl = at([
11498
+ ]), il = at([
11518
11499
  Qe(ie.Action.manage, "profile")
11519
11500
  ]);
11520
11501
  at([
11521
11502
  Qe(ie.Action.manage, "nativeCredentials")
11522
11503
  ]);
11523
- const ol = [], rg = [
11504
+ const rl = [], ng = [
11524
11505
  {
11525
11506
  path: "/",
11526
- name: "miniprogram-home",
11527
- redirect: (e) => {
11528
- var a, n;
11529
- const t = aa();
11530
- return Jo(
11531
- e.query,
11532
- {
11533
- businessId: (a = t.currentBusiness.value) == null ? void 0 : a._id,
11534
- country: t.currentCountry.value,
11535
- restaurantId: (n = t.currentRestaurant.value) == null ? void 0 : n._id
11536
- },
11537
- t.namespace.value,
11538
- "fmmf:dev"
11539
- );
11540
- }
11541
- },
11542
- {
11543
- path: "/brandkit",
11544
11507
  name: "brandkit",
11545
- component: _o,
11546
- meta: il
11508
+ component: Zo,
11509
+ meta: al
11547
11510
  },
11548
11511
  {
11549
11512
  path: "/projects",
11550
11513
  name: "projects",
11551
- component: $o,
11514
+ component: Jo,
11552
11515
  meta: Vt
11553
11516
  },
11554
11517
  {
@@ -11558,7 +11521,7 @@ const ol = [], rg = [
11558
11521
  {
11559
11522
  path: ":templateId(.*)*",
11560
11523
  name: "builder",
11561
- component: el,
11524
+ component: _o,
11562
11525
  meta: Vt
11563
11526
  }
11564
11527
  ]
@@ -11566,7 +11529,7 @@ const ol = [], rg = [
11566
11529
  {
11567
11530
  path: "/miniprogram-workspace",
11568
11531
  name: "miniprogram-workspace",
11569
- component: nl,
11532
+ component: tl,
11570
11533
  meta: Vt
11571
11534
  },
11572
11535
  {
@@ -11578,16 +11541,16 @@ const ol = [], rg = [
11578
11541
  {
11579
11542
  path: "assets",
11580
11543
  name: "settings-assets",
11581
- component: tl,
11582
- meta: rl
11544
+ component: $o,
11545
+ meta: nl
11583
11546
  },
11584
11547
  {
11585
11548
  path: "management",
11586
11549
  name: "settings-management",
11587
- component: al,
11588
- meta: sl
11550
+ component: el,
11551
+ meta: il
11589
11552
  },
11590
- ...ol
11553
+ ...rl
11591
11554
  ]
11592
11555
  },
11593
11556
  // temp until home view is done
@@ -11615,7 +11578,7 @@ var Vn = [
11615
11578
  function Xe() {
11616
11579
  return Math.random().toString(36).substring(2, 15);
11617
11580
  }
11618
- function ll(e, t) {
11581
+ function sl(e, t) {
11619
11582
  return [...e instanceof Set ? e : new Set(e)];
11620
11583
  }
11621
11584
  function G(e, t) {
@@ -11630,7 +11593,7 @@ function Z(e, t, a = !0, n = ["__key"]) {
11630
11593
  if (e instanceof Date && t instanceof Date)
11631
11594
  return e.getTime() === t.getTime();
11632
11595
  if (e instanceof RegExp && t instanceof RegExp)
11633
- return cl(e, t);
11596
+ return ol(e, t);
11634
11597
  if (e === null || t === null || Object.keys(e).length !== Object.keys(t).length)
11635
11598
  return !1;
11636
11599
  for (const i of n)
@@ -11643,7 +11606,7 @@ function Z(e, t, a = !0, n = ["__key"]) {
11643
11606
  }
11644
11607
  return !1;
11645
11608
  }
11646
- function cl(e, t) {
11609
+ function ol(e, t) {
11647
11610
  return e.source === t.source && e.flags.split("").sort().join("") === t.flags.split("").sort().join("");
11648
11611
  }
11649
11612
  function se(e) {
@@ -11663,11 +11626,11 @@ function se(e) {
11663
11626
  }
11664
11627
  return !1;
11665
11628
  }
11666
- function ul(e) {
11629
+ function ll(e) {
11667
11630
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
11668
11631
  }
11669
- function dl(e) {
11670
- const t = `^${ul(e)}$`, a = {
11632
+ function cl(e) {
11633
+ const t = `^${ll(e)}$`, a = {
11671
11634
  MM: "(0[1-9]|1[012])",
11672
11635
  M: "([1-9]|1[012])",
11673
11636
  DD: "([012][0-9]|3[01])",
@@ -11720,7 +11683,7 @@ var we = /* @__NO_SIDE_EFFECTS__ */ (e, t, a = !1, n = !1) => {
11720
11683
  !G(i, r) && t[r] !== void 0 && (i[r] = t[r]);
11721
11684
  return i;
11722
11685
  };
11723
- function ml(e) {
11686
+ function ul(e) {
11724
11687
  if (e[0] !== '"' && e[0] !== "'" || e[0] !== e[e.length - 1])
11725
11688
  return !1;
11726
11689
  const t = e[0];
@@ -11729,7 +11692,7 @@ function ml(e) {
11729
11692
  return !1;
11730
11693
  return !0;
11731
11694
  }
11732
- function gl(e) {
11695
+ function dl(e) {
11733
11696
  if (!e.length)
11734
11697
  return "";
11735
11698
  let t = "", a = "";
@@ -11745,7 +11708,7 @@ function je(...e) {
11745
11708
  return Object.assign(t, m);
11746
11709
  }, {});
11747
11710
  }
11748
- function pl(e) {
11711
+ function ml(e) {
11749
11712
  const t = [];
11750
11713
  let a = "", n = 0, i = "", r = "";
11751
11714
  for (let s = 0; s < e.length; s++) {
@@ -11754,13 +11717,13 @@ function pl(e) {
11754
11717
  }
11755
11718
  return a && t.push(a), t;
11756
11719
  }
11757
- function Ba(e, t) {
11720
+ function Da(e, t) {
11758
11721
  const a = {}, n = t.filter((r) => r instanceof RegExp), i = new Set(t);
11759
11722
  for (const r in e)
11760
11723
  !i.has(r) && !n.some((s) => s.test(r)) && (a[r] = e[r]);
11761
11724
  return a;
11762
11725
  }
11763
- function Ta(e, t) {
11726
+ function Ba(e, t) {
11764
11727
  const a = {}, n = t.filter((i) => i instanceof RegExp);
11765
11728
  return t.forEach((i) => {
11766
11729
  i instanceof RegExp || (a[i] = e[i]);
@@ -11784,7 +11747,7 @@ function Xt(e, t = Vn) {
11784
11747
  if (e !== null && typeof e == "object") {
11785
11748
  let a;
11786
11749
  if (Array.isArray(e) ? a = [...e] : He(e) && (a = { ...e }), a)
11787
- return Al(e, a, t), a;
11750
+ return pl(e, a, t), a;
11788
11751
  }
11789
11752
  return e;
11790
11753
  }
@@ -11803,7 +11766,7 @@ function Re(e, t = Vn) {
11803
11766
  function re(e) {
11804
11767
  return typeof e == "object" ? Re(e) : e;
11805
11768
  }
11806
- function hl(e, t) {
11769
+ function gl(e, t) {
11807
11770
  if (!e || typeof e != "object")
11808
11771
  return null;
11809
11772
  const a = t.split(".");
@@ -11826,10 +11789,10 @@ function Ne(e) {
11826
11789
  value: !0
11827
11790
  });
11828
11791
  }
11829
- function ra(e) {
11792
+ function ia(e) {
11830
11793
  return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]/g, " ").trim().replace(/\s+/g, "-");
11831
11794
  }
11832
- function Al(e, t, a) {
11795
+ function pl(e, t, a) {
11833
11796
  for (const n of a)
11834
11797
  n in e && Object.defineProperty(t, n, {
11835
11798
  enumerable: !1,
@@ -11837,18 +11800,18 @@ function Al(e, t, a) {
11837
11800
  });
11838
11801
  return t;
11839
11802
  }
11840
- function fl(e) {
11803
+ function hl(e) {
11841
11804
  let t = !1;
11842
11805
  return (...a) => {
11843
11806
  if (!t)
11844
11807
  return t = !0, queueMicrotask(() => t = !1), e(...a);
11845
11808
  };
11846
11809
  }
11847
- function bl(e) {
11810
+ function Al(e) {
11848
11811
  if (!(e === "false" || e === !1))
11849
11812
  return !0;
11850
11813
  }
11851
- function sa() {
11814
+ function ra() {
11852
11815
  const e = [];
11853
11816
  let t = 0;
11854
11817
  const a = (i) => e.push(i), n = (i) => {
@@ -11900,7 +11863,7 @@ function Gn() {
11900
11863
  a = void 0, r.forEach(([s, l]) => n(s, l)), i && i.walk((s) => s._e.play());
11901
11864
  }, n;
11902
11865
  }
11903
- function yl(e, t, a, n, i = !0, r) {
11866
+ function fl(e, t, a, n, i = !0, r) {
11904
11867
  return t._e(e, {
11905
11868
  payload: n,
11906
11869
  name: a,
@@ -11909,28 +11872,28 @@ function yl(e, t, a, n, i = !0, r) {
11909
11872
  meta: r
11910
11873
  }), e;
11911
11874
  }
11912
- function vl(e, t, a) {
11875
+ function bl(e, t, a) {
11913
11876
  return it(e.parent) && e.parent._e(e.parent, a), e;
11914
11877
  }
11915
- function Cl(e, t, a, n, i) {
11878
+ function yl(e, t, a, n, i) {
11916
11879
  return t._e.on(a, n, i);
11917
11880
  }
11918
- function wl(e, t, a) {
11881
+ function vl(e, t, a) {
11919
11882
  return t._e.off(a), e;
11920
11883
  }
11921
- var oa = sa();
11922
- oa((e, t) => (e.message || (e.message = `E${e.code}`), t(e)));
11923
- var la = sa();
11924
- la((e, t) => {
11884
+ var sa = ra();
11885
+ sa((e, t) => (e.message || (e.message = `E${e.code}`), t(e)));
11886
+ var oa = ra();
11887
+ oa((e, t) => {
11925
11888
  e.message || (e.message = `W${e.code}`);
11926
11889
  const a = t(e);
11927
11890
  return console && typeof console.warn == "function" && console.warn(a.message), a;
11928
11891
  });
11929
11892
  function xe(e, t = {}) {
11930
- la.dispatch({ code: e, data: t });
11893
+ oa.dispatch({ code: e, data: t });
11931
11894
  }
11932
11895
  function te(e, t = {}) {
11933
- throw Error(oa.dispatch({ code: e, data: t }).message);
11896
+ throw Error(sa.dispatch({ code: e, data: t }).message);
11934
11897
  }
11935
11898
  function ae(e, t) {
11936
11899
  return {
@@ -11942,16 +11905,16 @@ function ae(e, t) {
11942
11905
  ...e
11943
11906
  };
11944
11907
  }
11945
- var Ma = {
11946
- apply: Pl,
11947
- set: Dl,
11908
+ var Ta = {
11909
+ apply: Tl,
11910
+ set: wl,
11948
11911
  remove: In,
11949
- filter: Tl,
11950
- reduce: Ml,
11951
- release: Sl,
11952
- touch: Bl
11912
+ filter: Dl,
11913
+ reduce: Bl,
11914
+ release: Ll,
11915
+ touch: kl
11953
11916
  };
11954
- function kl(e = !1) {
11917
+ function Cl(e = !1) {
11955
11918
  const t = {};
11956
11919
  let a, n = e, i = [];
11957
11920
  const r = /* @__PURE__ */ new Map();
@@ -11959,7 +11922,7 @@ function kl(e = !1) {
11959
11922
  const l = new Proxy(t, {
11960
11923
  get(...m) {
11961
11924
  const [b, A] = m;
11962
- return A === "buffer" ? n : A === "_b" ? i : A === "_m" ? r : A === "_r" ? s : G(Ma, A) ? Ma[A].bind(
11925
+ return A === "buffer" ? n : A === "_b" ? i : A === "_m" ? r : A === "_r" ? s : G(Ta, A) ? Ta[A].bind(
11963
11926
  null,
11964
11927
  t,
11965
11928
  l,
@@ -11972,7 +11935,7 @@ function kl(e = !1) {
11972
11935
  });
11973
11936
  return l;
11974
11937
  }
11975
- function Dl(e, t, a, n) {
11938
+ function wl(e, t, a, n) {
11976
11939
  if (t.buffer)
11977
11940
  return t._b.push([[n]]), t;
11978
11941
  if (e[n.key] !== n) {
@@ -11987,7 +11950,7 @@ function Dl(e, t, a, n) {
11987
11950
  }
11988
11951
  return t;
11989
11952
  }
11990
- function Bl(e, t) {
11953
+ function kl(e, t) {
11991
11954
  for (const a in e) {
11992
11955
  const n = { ...e[a] };
11993
11956
  t.set(n);
@@ -12000,20 +11963,20 @@ function In(e, t, a, n) {
12000
11963
  }
12001
11964
  return t.buffer === !0 && (t._b = t._b.filter((i) => (i[0] = i[0].filter((r) => r.key !== n), i[1] || i[0].length))), t;
12002
11965
  }
12003
- function Tl(e, t, a, n, i) {
11966
+ function Dl(e, t, a, n, i) {
12004
11967
  for (const r in e) {
12005
11968
  const s = e[r];
12006
11969
  (!i || s.type === i) && !n(s) && In(e, t, a, r);
12007
11970
  }
12008
11971
  }
12009
- function Ml(e, t, a, n, i) {
11972
+ function Bl(e, t, a, n, i) {
12010
11973
  for (const r in e) {
12011
11974
  const s = e[r];
12012
11975
  i = n(i, s);
12013
11976
  }
12014
11977
  return i;
12015
11978
  }
12016
- function Pl(e, t, a, n, i) {
11979
+ function Tl(e, t, a, n, i) {
12017
11980
  if (Array.isArray(n)) {
12018
11981
  if (t.buffer) {
12019
11982
  t._b.push([n, i]);
@@ -12028,12 +11991,12 @@ function Pl(e, t, a, n, i) {
12028
11991
  } else
12029
11992
  for (const r in n) {
12030
11993
  const s = a.at(r);
12031
- s ? s.store.apply(n[r], i) : xl(a, t, r, n[r], i);
11994
+ s ? s.store.apply(n[r], i) : Pl(a, t, r, n[r], i);
12032
11995
  }
12033
11996
  }
12034
- function Ll(e, ...t) {
11997
+ function Ml(e, ...t) {
12035
11998
  const a = `${e.name}-set`, n = (i) => /* @__PURE__ */ ae({
12036
- key: ra(i),
11999
+ key: ia(i),
12037
12000
  type: "error",
12038
12001
  value: i,
12039
12002
  meta: { source: a, autoClear: !0 }
@@ -12051,7 +12014,7 @@ function Ll(e, ...t) {
12051
12014
  }
12052
12015
  });
12053
12016
  }
12054
- function xl(e, t, a, n, i) {
12017
+ function Pl(e, t, a, n, i) {
12055
12018
  var s;
12056
12019
  const r = t._m;
12057
12020
  r.has(a) || r.set(a, []), t._r || (t._r = En(e, t)), (s = r.get(a)) == null || s.push([n, i]);
@@ -12068,29 +12031,29 @@ function En(e, t) {
12068
12031
  }
12069
12032
  );
12070
12033
  }
12071
- function Sl(e, t) {
12034
+ function Ll(e, t) {
12072
12035
  t.buffer = !1, t._b.forEach(([a, n]) => t.apply(a, n)), t._b = [];
12073
12036
  }
12074
- function jl() {
12037
+ function xl() {
12075
12038
  const e = {};
12076
12039
  let t;
12077
12040
  return {
12078
- count: (...a) => Fl(t, e, ...a),
12041
+ count: (...a) => Sl(t, e, ...a),
12079
12042
  init(a) {
12080
- t = a, a.on("message-added.deep", Pa(e, 1)), a.on("message-removed.deep", Pa(e, -1));
12043
+ t = a, a.on("message-added.deep", Ma(e, 1)), a.on("message-removed.deep", Ma(e, -1));
12081
12044
  },
12082
- merge: (a) => La(t, e, a),
12045
+ merge: (a) => Pa(t, e, a),
12083
12046
  settled(a) {
12084
12047
  return G(e, a) ? e[a].promise : Promise.resolve();
12085
12048
  },
12086
- unmerge: (a) => La(t, e, a, !0),
12049
+ unmerge: (a) => Pa(t, e, a, !0),
12087
12050
  value(a) {
12088
12051
  return G(e, a) ? e[a].count : 0;
12089
12052
  }
12090
12053
  };
12091
12054
  }
12092
- function Fl(e, t, a, n, i = 0) {
12093
- if (n = Vl(n || a), !G(t, a)) {
12055
+ function Sl(e, t, a, n, i = 0) {
12056
+ if (n = jl(n || a), !G(t, a)) {
12094
12057
  const r = {
12095
12058
  condition: n,
12096
12059
  count: 0,
@@ -12110,14 +12073,14 @@ function Fl(e, t, a, n, i = 0) {
12110
12073
  }
12111
12074
  return Yn(t[a], i).promise;
12112
12075
  }
12113
- function Vl(e) {
12076
+ function jl(e) {
12114
12077
  return typeof e == "function" ? e : (t) => t.type === e;
12115
12078
  }
12116
12079
  function Yn(e, t) {
12117
12080
  const a = e.count, n = e.count + t;
12118
12081
  return e.count = n, a === 0 && n !== 0 ? (e.node.emit(`unsettled:${e.name}`, e.count, !1), e.promise = new Promise((i) => e.resolve = i)) : a !== 0 && n === 0 && (e.node.emit(`settled:${e.name}`, e.count, !1), e.resolve()), e.node.emit(`count:${e.name}`, e.count, !1), e;
12119
12082
  }
12120
- function Pa(e, t) {
12083
+ function Ma(e, t) {
12121
12084
  return (a) => {
12122
12085
  for (const n in e) {
12123
12086
  const i = e[n];
@@ -12125,7 +12088,7 @@ function Pa(e, t) {
12125
12088
  }
12126
12089
  };
12127
12090
  }
12128
- function La(e, t, a, n = !1) {
12091
+ function Pa(e, t, a, n = !1) {
12129
12092
  const i = e;
12130
12093
  for (const r in t) {
12131
12094
  const s = t[r].condition;
@@ -12139,19 +12102,19 @@ function La(e, t, a, n = !1) {
12139
12102
  }
12140
12103
  }
12141
12104
  }
12142
- var ca = /* @__PURE__ */ new Map(), mt = /* @__PURE__ */ new Map(), ua = Gn();
12143
- function Ol(e) {
12144
- e.props.id && (ca.set(e.props.id, e), mt.set(e, e.props.id), ua(e, {
12105
+ var la = /* @__PURE__ */ new Map(), mt = /* @__PURE__ */ new Map(), ca = Gn();
12106
+ function Fl(e) {
12107
+ e.props.id && (la.set(e.props.id, e), mt.set(e, e.props.id), ca(e, {
12145
12108
  payload: e,
12146
12109
  name: e.props.id,
12147
12110
  bubble: !1,
12148
12111
  origin: e
12149
12112
  }));
12150
12113
  }
12151
- function Gl(e) {
12114
+ function Vl(e) {
12152
12115
  if (mt.has(e)) {
12153
12116
  const t = mt.get(e);
12154
- mt.delete(e), ca.delete(t), ua(e, {
12117
+ mt.delete(e), la.delete(t), ca(e, {
12155
12118
  payload: null,
12156
12119
  name: t,
12157
12120
  bubble: !1,
@@ -12160,16 +12123,16 @@ function Gl(e) {
12160
12123
  }
12161
12124
  }
12162
12125
  function nt(e) {
12163
- return ca.get(e);
12126
+ return la.get(e);
12164
12127
  }
12165
- function Il(e, t) {
12166
- return ua.on(e, t);
12128
+ function Ol(e, t) {
12129
+ return ca.on(e, t);
12167
12130
  }
12168
12131
  function Wt(e, t, a) {
12169
12132
  let n = !0;
12170
12133
  return t in e.config._t ? n = !1 : e.emit(`config:${t}`, a, !1), t in e.props || (e.emit("prop", { prop: t, value: a }), e.emit(`prop:${t}`, a)), n;
12171
12134
  }
12172
- function El(e = {}) {
12135
+ function Gl(e = {}) {
12173
12136
  const t = /* @__PURE__ */ new Set(), a = {
12174
12137
  ...e,
12175
12138
  _add: (i) => t.add(i),
@@ -12190,7 +12153,7 @@ function Hn(e, t) {
12190
12153
  }
12191
12154
  xe(151, e);
12192
12155
  }
12193
- function Yl(e) {
12156
+ function Il(e) {
12194
12157
  const t = (a) => {
12195
12158
  for (const n in a.store) {
12196
12159
  const i = a.store[n];
@@ -12215,17 +12178,17 @@ function Rn(e, t) {
12215
12178
  !1
12216
12179
  ), a.type !== "input" && t && !se(t) && $e(t) && a.walk((s) => {
12217
12180
  s.props.initial = $e(s.value) ? Ne(s.value) : s.value, s.props._init = s.props.initial;
12218
- }), a._e.play(a), Yl(a), a.emit("reset", a), a;
12181
+ }), a._e.play(a), Il(a), a.emit("reset", a), a;
12219
12182
  }
12220
12183
  xe(152, e);
12221
12184
  }
12222
- var Hl = {
12185
+ var El = {
12223
12186
  delimiter: ".",
12224
12187
  delay: 0,
12225
12188
  locale: "en",
12226
12189
  rootClasses: (e) => ({ [`formkit-${On(e)}`]: !0 })
12227
12190
  }, Nn = Symbol("index"), Ut = Symbol("removed"), zt = Symbol("moved"), qn = Symbol("inserted");
12228
- function Rl(e) {
12191
+ function Yl(e) {
12229
12192
  return e.type === "list" && Array.isArray(e._value);
12230
12193
  }
12231
12194
  function it(e) {
@@ -12233,43 +12196,43 @@ function it(e) {
12233
12196
  }
12234
12197
  var gt = (e, t, a) => {
12235
12198
  te(102, [e, a]);
12236
- }, Nl = {
12237
- _c: H(cc, gt, !1),
12238
- add: H(tc),
12239
- addProps: H(ec),
12240
- address: H(dc, gt, !1),
12241
- at: H(mc),
12242
- bubble: H(vl),
12243
- clearErrors: H(Cc),
12244
- calm: H(Jl),
12199
+ }, Hl = {
12200
+ _c: H(oc, gt, !1),
12201
+ add: H($l),
12202
+ addProps: H(_l),
12203
+ address: H(cc, gt, !1),
12204
+ at: H(uc),
12205
+ bubble: H(bl),
12206
+ clearErrors: H(yc),
12207
+ calm: H(Kl),
12245
12208
  config: H(!1),
12246
- define: H($l),
12247
- disturb: H(Zl),
12248
- destroy: H(_l),
12249
- extend: H(kc),
12250
- hydrate: H(zl),
12251
- index: H(lc, oc, !1),
12209
+ define: H(Jl),
12210
+ disturb: H(zl),
12211
+ destroy: H(Zl),
12212
+ extend: H(Cc),
12213
+ hydrate: H(Wl),
12214
+ index: H(sc, rc, !1),
12252
12215
  input: H(Wn),
12253
- each: H(ic),
12254
- emit: H(yl),
12255
- find: H(pc),
12256
- on: H(Cl),
12257
- off: H(wl),
12258
- parent: H(!1, ac),
12216
+ each: H(ac),
12217
+ emit: H(fl),
12218
+ find: H(mc),
12219
+ on: H(yl),
12220
+ off: H(vl),
12221
+ parent: H(!1, ec),
12259
12222
  plugins: H(!1),
12260
- remove: H(nc),
12261
- root: H(Ac, gt, !1),
12262
- reset: H(yc),
12263
- resetConfig: H(sc),
12264
- setErrors: H(vc),
12265
- submit: H(bc),
12266
- t: H(fc),
12267
- use: H(da),
12268
- name: H(uc, !1, !1),
12269
- walk: H(rc)
12223
+ remove: H(tc),
12224
+ root: H(pc, gt, !1),
12225
+ reset: H(fc),
12226
+ resetConfig: H(ic),
12227
+ setErrors: H(bc),
12228
+ submit: H(Ac),
12229
+ t: H(hc),
12230
+ use: H(ua),
12231
+ name: H(lc, !1, !1),
12232
+ walk: H(nc)
12270
12233
  };
12271
- function ql() {
12272
- return new Map(Object.entries(Nl));
12234
+ function Rl() {
12235
+ return new Map(Object.entries(Hl));
12273
12236
  }
12274
12237
  function H(e, t, a = !0) {
12275
12238
  return {
@@ -12277,16 +12240,16 @@ function H(e, t, a = !0) {
12277
12240
  set: t !== void 0 ? t : gt.bind(null)
12278
12241
  };
12279
12242
  }
12280
- function Ql() {
12243
+ function Nl() {
12281
12244
  const e = /* @__PURE__ */ new Map();
12282
12245
  return new Proxy(e, {
12283
12246
  get(t, a) {
12284
- return e.has(a) || e.set(a, sa()), e.get(a);
12247
+ return e.has(a) || e.set(a, ra()), e.get(a);
12285
12248
  }
12286
12249
  });
12287
12250
  }
12288
- var Qn = 0, Xl = 0;
12289
- function Wl(e) {
12251
+ var Qn = 0, ql = 0;
12252
+ function Ql(e) {
12290
12253
  var t, a;
12291
12254
  return ((t = e.parent) == null ? void 0 : t.type) === "list" ? Nn : e.name || `${((a = e.props) == null ? void 0 : a.type) || "input"}_${++Qn}`;
12292
12255
  }
@@ -12296,14 +12259,14 @@ function Xn(e) {
12296
12259
  ) : e.type === "list" ? Ne(Array.isArray(e.value) ? e.value : []) : e.value;
12297
12260
  }
12298
12261
  function Wn(e, t, a, n = !0) {
12299
- return t._value = Ul(e, e.hook.input.dispatch(a)), e.emit("input", t._value), e.isCreated && e.type === "input" && Z(t._value, t.value) && !e.props.mergeStrategy ? (e.emit("commitRaw", t.value), t.settled) : (t.isSettled && e.disturb(), n ? (t._tmo && clearTimeout(t._tmo), t._tmo = setTimeout(
12262
+ return t._value = Xl(e, e.hook.input.dispatch(a)), e.emit("input", t._value), e.isCreated && e.type === "input" && Z(t._value, t.value) && !e.props.mergeStrategy ? (e.emit("commitRaw", t.value), t.settled) : (t.isSettled && e.disturb(), n ? (t._tmo && clearTimeout(t._tmo), t._tmo = setTimeout(
12300
12263
  yt,
12301
12264
  e.props.delay,
12302
12265
  e,
12303
12266
  t
12304
12267
  )) : yt(e, t), t.settled);
12305
12268
  }
12306
- function Ul(e, t) {
12269
+ function Xl(e, t) {
12307
12270
  switch (e.type) {
12308
12271
  case "input":
12309
12272
  break;
@@ -12321,7 +12284,7 @@ function yt(e, t, a = !0, n = !0) {
12321
12284
  }
12322
12285
  function Un(e, { name: t, value: a, from: n }) {
12323
12286
  if (!Object.isFrozen(e._value)) {
12324
- if (Rl(e)) {
12287
+ if (Yl(e)) {
12325
12288
  const i = a === Ut ? [] : a === zt && typeof n == "number" ? e._value.splice(n, 1) : [a];
12326
12289
  e._value.splice(
12327
12290
  t,
@@ -12333,9 +12296,9 @@ function Un(e, { name: t, value: a, from: n }) {
12333
12296
  a !== Ut ? e._value[t] = a : delete e._value[t];
12334
12297
  }
12335
12298
  }
12336
- function zl(e, t) {
12299
+ function Wl(e, t) {
12337
12300
  const a = t._value;
12338
- return e.type === "list" && e.sync && Kl(e, t), t.children.forEach((n) => {
12301
+ return e.type === "list" && e.sync && Ul(e, t), t.children.forEach((n) => {
12339
12302
  if (typeof a == "object")
12340
12303
  if (n.name in a) {
12341
12304
  const i = n.type !== "input" || a[n.name] && typeof a[n.name] == "object" ? Ne(a[n.name]) : a[n.name];
@@ -12346,7 +12309,7 @@ function zl(e, t) {
12346
12309
  (e.type !== "list" || typeof n.name == "number") && Un(t, { name: n.name, value: n.value }), a.__init || (n.type === "group" ? n.input({}, !1) : n.type === "list" ? n.input([], !1) : n.input(void 0, !1));
12347
12310
  }), e;
12348
12311
  }
12349
- function Kl(e, t) {
12312
+ function Ul(e, t) {
12350
12313
  const a = e._value;
12351
12314
  if (!Array.isArray(a))
12352
12315
  return;
@@ -12375,23 +12338,23 @@ function Kl(e, t) {
12375
12338
  n[m] = l, i.delete(l);
12376
12339
  }
12377
12340
  s.forEach((l, m) => {
12378
- n[l] = Mc({ value: m });
12341
+ n[l] = Bc({ value: m });
12379
12342
  }), i.size && i.forEach((l) => {
12380
12343
  if (!("__FKP" in l)) {
12381
12344
  const m = l._c.parent;
12382
- if (!m || Pc(m))
12345
+ if (!m || Tc(m))
12383
12346
  return;
12384
12347
  m.ledger.unmerge(l), l._c.parent = null, l.destroy();
12385
12348
  }
12386
12349
  }), t.children = n;
12387
12350
  }
12388
- function Zl(e, t) {
12351
+ function zl(e, t) {
12389
12352
  var a;
12390
12353
  return t._d <= 0 && (t.isSettled = !1, e.emit("settled", !1, !1), t.settled = new Promise((n) => {
12391
12354
  t._resolve = n;
12392
12355
  }), e.parent && ((a = e.parent) == null || a.disturb())), t._d++, e;
12393
12356
  }
12394
- function Jl(e, t, a) {
12357
+ function Kl(e, t, a) {
12395
12358
  var n;
12396
12359
  if (a !== void 0 && e.type !== "input") {
12397
12360
  Un(t, a);
@@ -12400,13 +12363,13 @@ function Jl(e, t, a) {
12400
12363
  }
12401
12364
  t._d > 0 && t._d--, t._d === 0 && (t.isSettled = !0, e.emit("settled", !0, !1), e.parent && ((n = e.parent) == null || n.calm({ name: e.name, value: t.value })), t._resolve && t._resolve(t.value));
12402
12365
  }
12403
- function _l(e, t) {
12404
- e.emit("destroying", e), e.store.filter(() => !1), e.parent && e.parent.remove(e), Gl(e), e.emit("destroyed", e), t._e.flush(), t._value = t.value = void 0;
12366
+ function Zl(e, t) {
12367
+ e.emit("destroying", e), e.store.filter(() => !1), e.parent && e.parent.remove(e), Vl(e), e.emit("destroyed", e), t._e.flush(), t._value = t.value = void 0;
12405
12368
  for (const a in t.context)
12406
12369
  delete t.context[a];
12407
12370
  t.plugins.clear(), t.context = null;
12408
12371
  }
12409
- function $l(e, t, a) {
12372
+ function Jl(e, t, a) {
12410
12373
  t.type = a.type;
12411
12374
  const n = Re(a);
12412
12375
  e.props.__propDefs = zn(
@@ -12417,7 +12380,7 @@ function $l(e, t, a) {
12417
12380
  value: t.value
12418
12381
  }), a.forceTypeProp && (e.props.type && (e.props.originalType = e.props.type), t.props.type = a.forceTypeProp), a.family && (t.props.family = a.family), a.features && a.features.forEach((i) => i(e)), a.props && e.addProps(a.props), e.emit("defined", a);
12419
12382
  }
12420
- function ec(e, t, a) {
12383
+ function _l(e, t, a) {
12421
12384
  const n = Array.isArray(a) ? a : Object.keys(a), i = Array.isArray(a) ? {} : n.reduce((s, l) => ("default" in a[l] && (s[l] = a[l].default), s), {});
12422
12385
  if (e.props.attrs) {
12423
12386
  const s = { ...e.props.attrs };
@@ -12441,7 +12404,7 @@ function Kt(e) {
12441
12404
  function zn(e, t) {
12442
12405
  return Array.isArray(e) && Array.isArray(t) ? e.concat(t) : we(Kt(e), Kt(t));
12443
12406
  }
12444
- function tc(e, t, a, n) {
12407
+ function $l(e, t, a, n) {
12445
12408
  if (e.type === "input" && te(100, e), a.parent && a.parent !== e && a.parent.remove(a), !t.children.includes(a)) {
12446
12409
  if (n !== void 0 && e.type === "list") {
12447
12410
  const i = t.children[n];
@@ -12461,10 +12424,10 @@ function tc(e, t, a, n) {
12461
12424
  a.use(e.plugins);
12462
12425
  return yt(e, t, !1), e.ledger.merge(a), e.emit("child", a), e;
12463
12426
  }
12464
- function ac(e, t, a, n) {
12427
+ function ec(e, t, a, n) {
12465
12428
  return it(n) ? (e.parent && e.parent !== n && e.parent.remove(e), t.parent = n, e.resetConfig(), n.children.includes(e) ? e.use(n.plugins) : n.add(e), !0) : n === null ? (t.parent = null, !0) : !1;
12466
12429
  }
12467
- function nc(e, t, a) {
12430
+ function tc(e, t, a) {
12468
12431
  const n = t.children.indexOf(a);
12469
12432
  if (n !== -1) {
12470
12433
  a.isSettled && e.disturb(), t.children.splice(n, 1);
@@ -12478,10 +12441,10 @@ function nc(e, t, a) {
12478
12441
  }
12479
12442
  return e.ledger.unmerge(a), e.emit("childRemoved", a), e;
12480
12443
  }
12481
- function ic(e, t, a) {
12444
+ function ac(e, t, a) {
12482
12445
  t.children.forEach((n) => !("__FKP" in n) && a(n));
12483
12446
  }
12484
- function rc(e, t, a, n = !1, i = !1) {
12447
+ function nc(e, t, a, n = !1, i = !1) {
12485
12448
  t.children.some((r) => {
12486
12449
  if ("__FKP" in r)
12487
12450
  return !1;
@@ -12489,38 +12452,38 @@ function rc(e, t, a, n = !1, i = !1) {
12489
12452
  return n && s === !1 ? !0 : i && s === !1 ? !1 : r.walk(a, n, i);
12490
12453
  });
12491
12454
  }
12492
- function sc(e, t) {
12455
+ function ic(e, t) {
12493
12456
  const a = e.parent || void 0;
12494
12457
  t.config = Kn(e.config._t, a), e.walk((n) => n.resetConfig());
12495
12458
  }
12496
- function da(e, t, a, n = !0, i = !0) {
12497
- return Array.isArray(a) || a instanceof Set ? (a.forEach((r) => da(e, t, r)), e) : (t.plugins.has(a) || (i && typeof a.library == "function" && a.library(e), n && a(e) !== !1 && (t.plugins.add(a), e.children.forEach((r) => r.use(a)))), e);
12459
+ function ua(e, t, a, n = !0, i = !0) {
12460
+ return Array.isArray(a) || a instanceof Set ? (a.forEach((r) => ua(e, t, r)), e) : (t.plugins.has(a) || (i && typeof a.library == "function" && a.library(e), n && a(e) !== !1 && (t.plugins.add(a), e.children.forEach((r) => r.use(a)))), e);
12498
12461
  }
12499
- function oc(e, t, a, n) {
12462
+ function rc(e, t, a, n) {
12500
12463
  if (it(e.parent)) {
12501
12464
  const i = e.parent.children, r = n >= i.length ? i.length - 1 : n < 0 ? 0 : n, s = i.indexOf(e);
12502
12465
  return s === -1 ? !1 : (i.splice(s, 1), i.splice(r, 0, e), e.parent.children = i, e.parent.type === "list" && e.parent.disturb().calm({ name: r, value: zt, from: s }), !0);
12503
12466
  }
12504
12467
  return !1;
12505
12468
  }
12506
- function lc(e) {
12469
+ function sc(e) {
12507
12470
  if (e.parent) {
12508
12471
  const t = [...e.parent.children].indexOf(e);
12509
12472
  return t === -1 ? e.parent.children.length : t;
12510
12473
  }
12511
12474
  return -1;
12512
12475
  }
12513
- function cc(e, t) {
12476
+ function oc(e, t) {
12514
12477
  return t;
12515
12478
  }
12516
- function uc(e, t) {
12479
+ function lc(e, t) {
12517
12480
  var a;
12518
12481
  return ((a = e.parent) == null ? void 0 : a.type) === "list" ? e.index : t.name !== Nn ? t.name : e.index;
12519
12482
  }
12520
- function dc(e, t) {
12483
+ function cc(e, t) {
12521
12484
  return t.parent ? t.parent.address.concat([e.name]) : [e.name];
12522
12485
  }
12523
- function mc(e, t, a) {
12486
+ function uc(e, t, a) {
12524
12487
  const n = typeof a == "string" ? a.split(e.config.delimiter) : a;
12525
12488
  if (!n.length)
12526
12489
  return;
@@ -12541,12 +12504,12 @@ function mc(e, t, a) {
12541
12504
  default:
12542
12505
  r = r.children.find(
12543
12506
  (l) => !("__FKP" in l) && String(l.name) === String(s)
12544
- ) || gc(r, s);
12507
+ ) || dc(r, s);
12545
12508
  }
12546
12509
  }
12547
12510
  return r || void 0;
12548
12511
  }
12549
- function gc(e, t) {
12512
+ function dc(e, t) {
12550
12513
  const a = String(t).match(/^(find)\((.*)\)$/);
12551
12514
  if (a) {
12552
12515
  const [, n, i] = a, r = i.split(",").map((s) => s.trim());
@@ -12558,10 +12521,10 @@ function gc(e, t) {
12558
12521
  }
12559
12522
  }
12560
12523
  }
12561
- function pc(e, t, a, n) {
12562
- return hc(e, a, n);
12524
+ function mc(e, t, a, n) {
12525
+ return gc(e, a, n);
12563
12526
  }
12564
- function hc(e, t, a = "name") {
12527
+ function gc(e, t, a = "name") {
12565
12528
  const n = typeof a == "string" ? (r) => r[a] == t : a, i = [e];
12566
12529
  for (; i.length; ) {
12567
12530
  const r = i.shift();
@@ -12572,7 +12535,7 @@ function hc(e, t, a = "name") {
12572
12535
  }
12573
12536
  }
12574
12537
  }
12575
- function Ac(e) {
12538
+ function pc(e) {
12576
12539
  let t = e;
12577
12540
  for (; t.parent; )
12578
12541
  t = t.parent;
@@ -12598,7 +12561,7 @@ function Kn(e = {}, t) {
12598
12561
  if (s !== void 0)
12599
12562
  return s;
12600
12563
  }
12601
- return i === "delay" && (a == null ? void 0 : a.type) === "input" ? 20 : Hl[i];
12564
+ return i === "delay" && (a == null ? void 0 : a.type) === "input" ? 20 : El[i];
12602
12565
  },
12603
12566
  set(...n) {
12604
12567
  const i = n[1], r = n[2];
@@ -12614,11 +12577,11 @@ function Kn(e = {}, t) {
12614
12577
  }
12615
12578
  });
12616
12579
  }
12617
- function fc(e, t, a, n = "ui") {
12580
+ function hc(e, t, a, n = "ui") {
12618
12581
  const i = typeof a == "string" ? { key: a, value: a, type: n } : a, r = e.hook.text.dispatch(i);
12619
12582
  return e.emit("text", r, !1), r.value;
12620
12583
  }
12621
- function bc(e) {
12584
+ function Ac(e) {
12622
12585
  const t = e.name;
12623
12586
  do {
12624
12587
  if (e.props.isForm === !0)
@@ -12627,23 +12590,23 @@ function bc(e) {
12627
12590
  } while (e);
12628
12591
  e.props.id && Hn(e.props.id, e.props.__root);
12629
12592
  }
12630
- function yc(e, t, a) {
12593
+ function fc(e, t, a) {
12631
12594
  return Rn(e, a);
12632
12595
  }
12633
- function vc(e, t, a, n) {
12596
+ function bc(e, t, a, n) {
12634
12597
  const i = `${e.name}-set`, r = e.hook.setErrors.dispatch({ localErrors: a, childErrors: n });
12635
- return Ll(e, r.localErrors, r.childErrors).forEach(
12598
+ return Ml(e, r.localErrors, r.childErrors).forEach(
12636
12599
  (s) => {
12637
12600
  e.store.apply(s, (l) => l.meta.source === i);
12638
12601
  }
12639
12602
  ), e;
12640
12603
  }
12641
- function Cc(e, t, a = !0, n) {
12604
+ function yc(e, t, a = !0, n) {
12642
12605
  return e.store.filter((i) => !(n === void 0 || i.meta.source === n), "error"), a && (n = n || `${e.name}-set`, e.walk((i) => {
12643
12606
  i.store.filter((r) => !(r.type === "error" && r.meta && r.meta.source === n));
12644
12607
  })), e;
12645
12608
  }
12646
- function wc(e) {
12609
+ function vc(e) {
12647
12610
  const t = {
12648
12611
  initial: typeof e == "object" ? re(e) : e
12649
12612
  };
@@ -12653,7 +12616,7 @@ function wc(e) {
12653
12616
  var A, B, I, D;
12654
12617
  const [s, l] = r;
12655
12618
  let m;
12656
- G(t, l) ? (m = Reflect.get(...r), (A = i[l]) != null && A.boolean && (m = bl(m))) : a && typeof l == "string" && a.config[l] !== void 0 ? (m = a.config[l], l === "mergeStrategy" && (a == null ? void 0 : a.type) === "input" && bt(m) && a.name in m && (m = m[a.name])) : m = (B = i[l]) == null ? void 0 : B.default;
12619
+ G(t, l) ? (m = Reflect.get(...r), (A = i[l]) != null && A.boolean && (m = Al(m))) : a && typeof l == "string" && a.config[l] !== void 0 ? (m = a.config[l], l === "mergeStrategy" && (a == null ? void 0 : a.type) === "input" && bt(m) && a.name in m && (m = m[a.name])) : m = (B = i[l]) == null ? void 0 : B.default;
12657
12620
  const b = (I = i[l]) == null ? void 0 : I.getter;
12658
12621
  return (D = i[l]) != null && D.boolean && (m = !!m), b ? b(m, a) : m;
12659
12622
  },
@@ -12676,10 +12639,10 @@ function wc(e) {
12676
12639
  }
12677
12640
  });
12678
12641
  }
12679
- function kc(e, t, a, n) {
12642
+ function Cc(e, t, a, n) {
12680
12643
  return t.traps.set(a, n), e;
12681
12644
  }
12682
- function Dc(e, t) {
12645
+ function wc(e, t) {
12683
12646
  if (e.props.definition)
12684
12647
  return e.define(e.props.definition);
12685
12648
  for (const a of t) {
@@ -12688,7 +12651,7 @@ function Dc(e, t) {
12688
12651
  typeof a.library == "function" && a.library(e);
12689
12652
  }
12690
12653
  }
12691
- function Bc(e) {
12654
+ function kc(e) {
12692
12655
  const t = Xn(e), a = Kn(e.config || {}, e.parent);
12693
12656
  return {
12694
12657
  _d: 0,
@@ -12697,32 +12660,32 @@ function Bc(e) {
12697
12660
  _resolve: !1,
12698
12661
  _tmo: !1,
12699
12662
  _value: t,
12700
- children: ll(e.children || []),
12663
+ children: sl(e.children || []),
12701
12664
  config: a,
12702
- hook: Ql(),
12665
+ hook: Nl(),
12703
12666
  isCreated: !1,
12704
12667
  isSettled: !0,
12705
- ledger: jl(),
12706
- name: Wl(e),
12668
+ ledger: xl(),
12669
+ name: Ql(e),
12707
12670
  parent: e.parent || null,
12708
12671
  plugins: /* @__PURE__ */ new Set(),
12709
- props: wc(t),
12672
+ props: vc(t),
12710
12673
  settled: Promise.resolve(t),
12711
- store: kl(!0),
12674
+ store: Cl(!0),
12712
12675
  sync: e.sync || !1,
12713
- traps: ql(),
12676
+ traps: Rl(),
12714
12677
  type: e.type || "input",
12715
12678
  value: t
12716
12679
  };
12717
12680
  }
12718
- function Tc(e, t) {
12681
+ function Dc(e, t) {
12719
12682
  var n, i;
12720
12683
  const a = (n = t.props) == null ? void 0 : n.id;
12721
12684
  if (a || (i = t.props) == null || delete i.id, e.ledger.init(e.store._n = e.props._n = e.config._n = e), e.props._emit = !1, Object.assign(
12722
12685
  e.props,
12723
- a ? {} : { id: `input_${Xl++}` },
12686
+ a ? {} : { id: `input_${ql++}` },
12724
12687
  t.props ?? {}
12725
- ), e.props._emit = !0, Dc(
12688
+ ), e.props._emit = !0, wc(
12726
12689
  e,
12727
12690
  /* @__PURE__ */ new Set([
12728
12691
  ...t.plugins || [],
@@ -12730,10 +12693,10 @@ function Tc(e, t) {
12730
12693
  ])
12731
12694
  ), t.plugins)
12732
12695
  for (const r of t.plugins)
12733
- da(e, e._c, r, !0, !1);
12734
- return e.each((r) => e.add(r)), e.parent && e.parent.add(e, t.index), e.type === "input" && e.children.length && te(100, e), Wn(e, e._c, e._value, !1), e.store.release(), a && Ol(e), e.emit("created", e), e.isCreated = !0, e;
12696
+ ua(e, e._c, r, !0, !1);
12697
+ return e.each((r) => e.add(r)), e.parent && e.parent.add(e, t.index), e.type === "input" && e.children.length && te(100, e), Wn(e, e._c, e._value, !1), e.store.release(), a && Fl(e), e.emit("created", e), e.isCreated = !0, e;
12735
12698
  }
12736
- function Mc(e) {
12699
+ function Bc(e) {
12737
12700
  return {
12738
12701
  __FKP: !0,
12739
12702
  uid: Symbol(),
@@ -12750,11 +12713,11 @@ function Mc(e) {
12750
12713
  isSettled: !0
12751
12714
  };
12752
12715
  }
12753
- function Pc(e) {
12716
+ function Tc(e) {
12754
12717
  return "__FKP" in e;
12755
12718
  }
12756
- function Lc(e) {
12757
- const t = e || {}, a = Bc(t), n = new Proxy(a, {
12719
+ function Mc(e) {
12720
+ const t = e || {}, a = kc(t), n = new Proxy(a, {
12758
12721
  get(...i) {
12759
12722
  const [, r] = i;
12760
12723
  if (r === "__FKNode__")
@@ -12767,7 +12730,7 @@ function Lc(e) {
12767
12730
  return l && l.set ? l.set(n, a, r, s) : Reflect.set(...i);
12768
12731
  }
12769
12732
  });
12770
- return Tc(n, t);
12733
+ return Dc(n, t);
12771
12734
  }
12772
12735
  function Zt(e) {
12773
12736
  return typeof e != "string" && G(e, "$el");
@@ -12778,16 +12741,16 @@ function Jt(e) {
12778
12741
  function Ve(e) {
12779
12742
  return !e || typeof e == "string" ? !1 : G(e, "if") && G(e, "then");
12780
12743
  }
12781
- function xc(e) {
12744
+ function Pc(e) {
12782
12745
  return typeof e != "string" && "$formkit" in e;
12783
12746
  }
12784
- function Sc(e) {
12747
+ function Lc(e) {
12785
12748
  if (typeof e == "string")
12786
12749
  return {
12787
12750
  $el: "text",
12788
12751
  children: e
12789
12752
  };
12790
- if (xc(e)) {
12753
+ if (Pc(e)) {
12791
12754
  const {
12792
12755
  $formkit: t,
12793
12756
  for: a,
@@ -12920,7 +12883,7 @@ function ce(e) {
12920
12883
  const S = B(w, i.length);
12921
12884
  let M, j = P ? ce(`$${P}`) : !1;
12922
12885
  if (typeof S == "function") {
12923
- const p = pl(String(h)).map(
12886
+ const p = ml(String(h)).map(
12924
12887
  (y) => B(y, -1)
12925
12888
  );
12926
12889
  return (y) => {
@@ -12934,7 +12897,7 @@ function ce(e) {
12934
12897
  return c.reduce(
12935
12898
  (u, v) => {
12936
12899
  if (v === P || (P == null ? void 0 : P.startsWith(`${v}(`))) {
12937
- const L = hl(M, v);
12900
+ const L = gl(M, v);
12938
12901
  u[v] = () => L;
12939
12902
  } else
12940
12903
  u[v] = g[v];
@@ -12952,8 +12915,8 @@ function ce(e) {
12952
12915
  return !1;
12953
12916
  if (h === "undefined")
12954
12917
  return;
12955
- if (ml(h))
12956
- return gl(h.substring(1, h.length - 1));
12918
+ if (ul(h))
12919
+ return dl(h.substring(1, h.length - 1));
12957
12920
  if (!isNaN(+h))
12958
12921
  return Number(h);
12959
12922
  if (C < i.length - 1)
@@ -12992,7 +12955,7 @@ function pt(e, t, a) {
12992
12955
  a(t, e)
12993
12956
  ) : a : {};
12994
12957
  }
12995
- function jc(e, t, ...a) {
12958
+ function xc(e, t, ...a) {
12996
12959
  const n = a.reduce((i, r) => {
12997
12960
  if (!r)
12998
12961
  return Ot(i);
@@ -13012,11 +12975,11 @@ function Ot(e) {
13012
12975
  e[s] = !1, e[r] = !1;
13013
12976
  }), e;
13014
12977
  }
13015
- function Fc(e, t, a) {
12978
+ function Sc(e, t, a) {
13016
12979
  const n = nt(e);
13017
12980
  n ? n.setErrors(t, a) : xe(651, e);
13018
12981
  }
13019
- function Vc(e, t = !0) {
12982
+ function jc(e, t = !0) {
13020
12983
  const a = nt(e);
13021
12984
  a ? a.clearErrors(t) : xe(652, e);
13022
12985
  }
@@ -13135,56 +13098,56 @@ function ei(e, t) {
13135
13098
  }
13136
13099
  }), [a, n];
13137
13100
  }
13138
- function ma(e) {
13101
+ function da(e) {
13139
13102
  return Zn.has(e);
13140
13103
  }
13141
13104
  var ti = function({ value: t }) {
13142
13105
  return ["yes", "on", "1", 1, !0, "true"].includes(t);
13143
13106
  };
13144
13107
  ti.skipEmpty = !1;
13145
- var Oc = ti, Gc = function({ value: e }, t = !1) {
13108
+ var Fc = ti, Vc = function({ value: e }, t = !1) {
13146
13109
  const a = Date.parse(t || /* @__PURE__ */ new Date()), n = Date.parse(String(e));
13147
13110
  return isNaN(n) ? !1 : n > a;
13148
- }, Ic = Gc, Ec = function({ value: e }, t = !1) {
13111
+ }, Oc = Vc, Gc = function({ value: e }, t = !1) {
13149
13112
  const a = Date.parse(t || /* @__PURE__ */ new Date()), n = Date.parse(String(e));
13150
13113
  return isNaN(n) ? !1 : n > a || n === a;
13151
- }, Yc = Ec, Hc = function(e, t) {
13114
+ }, Ic = Gc, Ec = function(e, t) {
13152
13115
  var i;
13153
13116
  if (!t)
13154
13117
  return !1;
13155
13118
  const a = Date.parse(String(e.value)), n = Date.parse(String((i = e.at(t)) == null ? void 0 : i.value));
13156
13119
  return isNaN(n) ? !0 : isNaN(a) ? !1 : a > n;
13157
- }, Rc = Hc, Nc = function({ value: e }, t = "default") {
13120
+ }, Yc = Ec, Hc = function({ value: e }, t = "default") {
13158
13121
  const a = {
13159
13122
  default: new RegExp("^\\p{L}+$", "u"),
13160
13123
  latin: /^[a-z]+$/i
13161
13124
  }, n = G(a, t) ? t : "default";
13162
13125
  return a[n].test(String(e));
13163
- }, qc = Nc, Qc = function({ value: e }, t = "default") {
13126
+ }, Rc = Hc, Nc = function({ value: e }, t = "default") {
13164
13127
  const a = {
13165
13128
  default: /^[\p{L} ]+$/u,
13166
13129
  latin: /^[a-z ]+$/i
13167
13130
  }, n = G(a, t) ? t : "default";
13168
13131
  return a[n].test(String(e));
13169
- }, Xc = Qc, Wc = function({ value: e }, t = "default") {
13132
+ }, qc = Nc, Qc = function({ value: e }, t = "default") {
13170
13133
  const a = {
13171
13134
  default: /^[0-9\p{L}]+$/u,
13172
13135
  latin: /^[0-9a-z]+$/i
13173
13136
  }, n = G(a, t) ? t : "default";
13174
13137
  return a[n].test(String(e));
13175
- }, Uc = Wc, zc = function({ value: e }, t = !1) {
13138
+ }, Xc = Qc, Wc = function({ value: e }, t = !1) {
13176
13139
  const a = Date.parse(t || /* @__PURE__ */ new Date()), n = Date.parse(String(e));
13177
13140
  return isNaN(n) ? !1 : n < a;
13178
- }, Kc = zc, Zc = function(e, t) {
13141
+ }, Uc = Wc, zc = function(e, t) {
13179
13142
  var i;
13180
13143
  if (!t)
13181
13144
  return !1;
13182
13145
  const a = Date.parse(String(e.value)), n = Date.parse(String((i = e.at(t)) == null ? void 0 : i.value));
13183
13146
  return isNaN(n) ? !0 : isNaN(a) ? !1 : a < n;
13184
- }, Jc = Zc, _c = function({ value: e }, t = !1) {
13147
+ }, Kc = zc, Zc = function({ value: e }, t = !1) {
13185
13148
  const a = Date.parse(t || /* @__PURE__ */ new Date()), n = Date.parse(String(e));
13186
13149
  return isNaN(n) ? !1 : n < a || n === a;
13187
- }, $c = _c, eu = function({ value: t }, a, n) {
13150
+ }, Jc = Zc, _c = function({ value: t }, a, n) {
13188
13151
  if (!isNaN(t) && !isNaN(a) && !isNaN(n)) {
13189
13152
  const i = 1 * t;
13190
13153
  a = Number(a), n = Number(n);
@@ -13192,46 +13155,46 @@ var Oc = ti, Gc = function({ value: e }, t = !1) {
13192
13155
  return i >= 1 * r && i <= 1 * s;
13193
13156
  }
13194
13157
  return !1;
13195
- }, tu = eu, xa = /(_confirm(?:ed)?)$/, au = function(t, a, n = "loose") {
13158
+ }, $c = _c, La = /(_confirm(?:ed)?)$/, eu = function(t, a, n = "loose") {
13196
13159
  var r;
13197
- a || (a = xa.test(t.name) ? t.name.replace(xa, "") : `${t.name}_confirm`);
13160
+ a || (a = La.test(t.name) ? t.name.replace(La, "") : `${t.name}_confirm`);
13198
13161
  const i = (r = t.at(a)) == null ? void 0 : r.value;
13199
13162
  return n === "strict" ? t.value === i : t.value == i;
13200
- }, nu = au, iu = function({ value: e }, t = "default") {
13163
+ }, tu = eu, au = function({ value: e }, t = "default") {
13201
13164
  const a = {
13202
13165
  default: new RegExp("\\p{L}", "u"),
13203
13166
  latin: /[a-z]/i
13204
13167
  }, n = G(a, t) ? t : "default";
13205
13168
  return a[n].test(String(e));
13206
- }, ru = iu, su = function({ value: e }, t = "default") {
13169
+ }, nu = au, iu = function({ value: e }, t = "default") {
13207
13170
  const a = {
13208
13171
  default: /[\p{L} ]/u,
13209
13172
  latin: /[a-z ]/i
13210
13173
  }, n = G(a, t) ? t : "default";
13211
13174
  return a[n].test(String(e));
13212
- }, ou = su, lu = function({ value: e }, t = "default") {
13175
+ }, ru = iu, su = function({ value: e }, t = "default") {
13213
13176
  const a = {
13214
13177
  default: /[0-9\p{L}]/u,
13215
13178
  latin: /[0-9a-z]/i
13216
13179
  }, n = G(a, t) ? t : "default";
13217
13180
  return a[n].test(String(e));
13218
- }, cu = lu, uu = function({ value: e }, t = "default") {
13181
+ }, ou = su, lu = function({ value: e }, t = "default") {
13219
13182
  const a = {
13220
13183
  default: new RegExp("\\p{Ll}", "u"),
13221
13184
  latin: /[a-z]/
13222
13185
  }, n = G(a, t) ? t : "default";
13223
13186
  return a[n].test(String(e));
13224
- }, du = uu, mu = function({ value: t }) {
13187
+ }, cu = lu, uu = function({ value: t }) {
13225
13188
  return /[0-9]/.test(String(t));
13226
- }, gu = mu, pu = function({ value: e }) {
13189
+ }, du = uu, mu = function({ value: e }) {
13227
13190
  return /[!-/:-@[-`{-~]/.test(String(e));
13228
- }, hu = pu, Au = function({ value: e }, t = "default") {
13191
+ }, gu = mu, pu = function({ value: e }, t = "default") {
13229
13192
  const a = {
13230
13193
  default: new RegExp("\\p{Lu}", "u"),
13231
13194
  latin: /[A-Z]/
13232
13195
  }, n = G(a, t) ? t : "default";
13233
13196
  return a[n].test(String(e));
13234
- }, fu = Au, bu = function({ value: t }, a, n) {
13197
+ }, hu = pu, Au = function({ value: t }, a, n) {
13235
13198
  a = a instanceof Date ? a.getTime() : Date.parse(a), n = n instanceof Date ? n.getTime() : Date.parse(n);
13236
13199
  const i = t instanceof Date ? t.getTime() : Date.parse(String(t));
13237
13200
  if (a && !n)
@@ -13239,15 +13202,15 @@ var Oc = ti, Gc = function({ value: e }, t = !1) {
13239
13202
  else if (!a || !i)
13240
13203
  return !1;
13241
13204
  return i >= a && i <= n;
13242
- }, yu = bu, vu = function({ value: t }, a) {
13243
- return a && typeof a == "string" ? dl(a).test(String(t)) : !isNaN(Date.parse(String(t)));
13244
- }, Cu = vu, wu = function({ value: t }) {
13205
+ }, fu = Au, bu = function({ value: t }, a) {
13206
+ return a && typeof a == "string" ? cl(a).test(String(t)) : !isNaN(Date.parse(String(t)));
13207
+ }, yu = bu, vu = function({ value: t }) {
13245
13208
  return /^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(String(t));
13246
- }, ku = wu, Du = function({ value: t }, ...a) {
13209
+ }, Cu = vu, wu = function({ value: t }, ...a) {
13247
13210
  return typeof t == "string" && a.length ? a.some((n) => t.endsWith(n)) : typeof t == "string" && a.length === 0;
13248
- }, Bu = Du, Tu = function({ value: t }, ...a) {
13211
+ }, ku = wu, Du = function({ value: t }, ...a) {
13249
13212
  return a.some((n) => typeof n == "object" ? Z(n, t) : n == t);
13250
- }, Mu = Tu, Pu = function({ value: t }, a = 0, n = 1 / 0) {
13213
+ }, Bu = Du, Tu = function({ value: t }, a = 0, n = 1 / 0) {
13251
13214
  a = parseInt(a), n = isNaN(parseInt(n)) ? 1 / 0 : parseInt(n);
13252
13215
  const i = a <= n ? a : n, r = n >= a ? n : a;
13253
13216
  if (typeof t == "string" || Array.isArray(t))
@@ -13257,7 +13220,7 @@ var Oc = ti, Gc = function({ value: e }, t = !1) {
13257
13220
  return s >= i && s <= r;
13258
13221
  }
13259
13222
  return !1;
13260
- }, Lu = Pu, xu = function({ value: e }, t = "default") {
13223
+ }, Mu = Tu, Pu = function({ value: e }, t = "default") {
13261
13224
  const a = {
13262
13225
  default: new RegExp("^\\p{Ll}+$", "u"),
13263
13226
  allow_non_alpha: /^[0-9\p{Ll}!-/:-@[-`{-~]+$/u,
@@ -13266,84 +13229,84 @@ var Oc = ti, Gc = function({ value: e }, t = !1) {
13266
13229
  latin: /^[a-z]+$/
13267
13230
  }, n = G(a, t) ? t : "default";
13268
13231
  return a[n].test(String(e));
13269
- }, Su = xu, ju = function({ value: t }, ...a) {
13232
+ }, Lu = Pu, xu = function({ value: t }, ...a) {
13270
13233
  return a.some((n) => (typeof n == "string" && n.substr(0, 1) === "/" && n.substr(-1) === "/" && (n = new RegExp(n.substr(1, n.length - 2))), n instanceof RegExp ? n.test(String(t)) : n === t));
13271
- }, Fu = ju, Vu = function({ value: t }, a = 10) {
13234
+ }, Su = xu, ju = function({ value: t }, a = 10) {
13272
13235
  return Array.isArray(t) ? t.length <= a : Number(t) <= Number(a);
13273
- }, Ou = Vu, Gu = function({ value: t }, a = 1) {
13236
+ }, Fu = ju, Vu = function({ value: t }, a = 1) {
13274
13237
  return Array.isArray(t) ? t.length >= a : Number(t) >= Number(a);
13275
- }, Iu = Gu, Eu = function({ value: t }, ...a) {
13238
+ }, Ou = Vu, Gu = function({ value: t }, ...a) {
13276
13239
  return !a.some((n) => typeof n == "object" ? Z(n, t) : n === t);
13277
- }, Yu = Eu, Hu = function({ value: t }) {
13240
+ }, Iu = Gu, Eu = function({ value: t }) {
13278
13241
  return !isNaN(t);
13279
- }, Ru = Hu, ai = function(e, ...t) {
13242
+ }, Yu = Eu, ai = function(e, ...t) {
13280
13243
  return se(e.value) ? t.map((n) => {
13281
13244
  var i;
13282
13245
  return (i = e.at(n)) == null ? void 0 : i.value;
13283
13246
  }).some((n) => !se(n)) : !0;
13284
13247
  };
13285
13248
  ai.skipEmpty = !1;
13286
- var Nu = ai, ni = function({ value: t }, a = "default") {
13249
+ var Hu = ai, ni = function({ value: t }, a = "default") {
13287
13250
  return a === "trim" && typeof t == "string" ? !se(t.trim()) : !se(t);
13288
13251
  };
13289
13252
  ni.skipEmpty = !1;
13290
- var qu = ni, Qu = function({ value: t }, ...a) {
13253
+ var Ru = ni, Nu = function({ value: t }, ...a) {
13291
13254
  return typeof t == "string" && a.length ? a.some((n) => t.startsWith(n)) : typeof t == "string" && a.length === 0;
13292
- }, Xu = Qu, Wu = function({ value: e }) {
13255
+ }, qu = Nu, Qu = function({ value: e }) {
13293
13256
  return /^[!-/:-@[-`{-~]+$/.test(String(e));
13294
- }, Uu = Wu, zu = function({ value: e }, t = "default") {
13257
+ }, Xu = Qu, Wu = function({ value: e }, t = "default") {
13295
13258
  const a = {
13296
13259
  default: new RegExp("^\\p{Lu}+$", "u"),
13297
13260
  latin: /^[A-Z]+$/
13298
13261
  }, n = G(a, t) ? t : "default";
13299
13262
  return a[n].test(String(e));
13300
- }, Ku = zu, Zu = function({ value: t }, ...a) {
13263
+ }, Uu = Wu, zu = function({ value: t }, ...a) {
13301
13264
  try {
13302
13265
  const n = a.length ? a : ["http:", "https:"], i = new URL(String(t));
13303
13266
  return n.includes(i.protocol);
13304
13267
  } catch {
13305
13268
  return !1;
13306
13269
  }
13307
- }, Ju = Zu;
13308
- const _u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13270
+ }, Ku = zu;
13271
+ const Zu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13309
13272
  __proto__: null,
13310
- accepted: Oc,
13311
- alpha: qc,
13312
- alpha_spaces: Xc,
13313
- alphanumeric: Uc,
13314
- between: tu,
13315
- confirm: nu,
13316
- contains_alpha: ru,
13317
- contains_alpha_spaces: ou,
13318
- contains_alphanumeric: cu,
13319
- contains_lowercase: du,
13320
- contains_numeric: gu,
13321
- contains_symbol: hu,
13322
- contains_uppercase: fu,
13323
- date_after: Ic,
13324
- date_after_node: Rc,
13325
- date_after_or_equal: Yc,
13326
- date_before: Kc,
13327
- date_before_node: Jc,
13328
- date_before_or_equal: $c,
13329
- date_between: yu,
13330
- date_format: Cu,
13331
- email: ku,
13332
- ends_with: Bu,
13333
- is: Mu,
13334
- length: Lu,
13335
- lowercase: Su,
13336
- matches: Fu,
13337
- max: Ou,
13338
- min: Iu,
13339
- not: Yu,
13340
- number: Ru,
13341
- require_one: Nu,
13342
- required: qu,
13343
- starts_with: Xu,
13344
- symbol: Uu,
13345
- uppercase: Ku,
13346
- url: Ju
13273
+ accepted: Fc,
13274
+ alpha: Rc,
13275
+ alpha_spaces: qc,
13276
+ alphanumeric: Xc,
13277
+ between: $c,
13278
+ confirm: tu,
13279
+ contains_alpha: nu,
13280
+ contains_alpha_spaces: ru,
13281
+ contains_alphanumeric: ou,
13282
+ contains_lowercase: cu,
13283
+ contains_numeric: du,
13284
+ contains_symbol: gu,
13285
+ contains_uppercase: hu,
13286
+ date_after: Oc,
13287
+ date_after_node: Yc,
13288
+ date_after_or_equal: Ic,
13289
+ date_before: Uc,
13290
+ date_before_node: Kc,
13291
+ date_before_or_equal: Jc,
13292
+ date_between: fu,
13293
+ date_format: yu,
13294
+ email: Cu,
13295
+ ends_with: ku,
13296
+ is: Bu,
13297
+ length: Mu,
13298
+ lowercase: Lu,
13299
+ matches: Su,
13300
+ max: Fu,
13301
+ min: Ou,
13302
+ not: Iu,
13303
+ number: Yu,
13304
+ require_one: Hu,
13305
+ required: Ru,
13306
+ starts_with: qu,
13307
+ symbol: Xu,
13308
+ uppercase: Uu,
13309
+ url: Ku
13347
13310
  }, Symbol.toStringTag, { value: "Module" }));
13348
13311
  var _t = /* @__PURE__ */ ae({
13349
13312
  type: "state",
@@ -13352,7 +13315,7 @@ var _t = /* @__PURE__ */ ae({
13352
13315
  value: !0,
13353
13316
  key: "validating"
13354
13317
  });
13355
- function $u(e = {}) {
13318
+ function Ju(e = {}) {
13356
13319
  return function(a) {
13357
13320
  let n = re(a.props.validationRules || {}), i = { ...e, ...n };
13358
13321
  const r = { input: Xe(), rerun: null, isPassing: !0 };
@@ -13365,13 +13328,13 @@ function $u(e = {}) {
13365
13328
  var A;
13366
13329
  Z(Object.keys(n || {}), Object.keys(b || {})) && Z(s, m) || (n = re(b), s = re(m), i = { ...e, ...n }, (A = a.props.parsedRules) == null || A.forEach((B) => {
13367
13330
  ii(B), _n(B.observer.receipts), B.observer.kill();
13368
- }), a.store.filter(() => !1, "validation"), a.props.parsedRules = ja(m, i, a), r.isPassing = !0, $t(a, a.props.parsedRules, r));
13331
+ }), a.store.filter(() => !1, "validation"), a.props.parsedRules = Sa(m, i, a), r.isPassing = !0, $t(a, a.props.parsedRules, r));
13369
13332
  }
13370
- a.props.parsedRules = ja(s, i, a), $t(a, a.props.parsedRules, r);
13333
+ a.props.parsedRules = Sa(s, i, a), $t(a, a.props.parsedRules, r);
13371
13334
  };
13372
13335
  }
13373
13336
  function $t(e, t, a) {
13374
- ma(e) || (a.input = Xe(), e.store.set(
13337
+ da(e) || (a.input = Xe(), e.store.set(
13375
13338
  /* @__PURE__ */ ae({
13376
13339
  key: "failing",
13377
13340
  value: !a.isPassing,
@@ -13394,7 +13357,7 @@ function ea(e, t, a, n, i) {
13394
13357
  if (!r)
13395
13358
  return i();
13396
13359
  const s = r.observer;
13397
- if (ma(s))
13360
+ if (da(s))
13398
13361
  return;
13399
13362
  const l = a.input;
13400
13363
  r.state = null;
@@ -13421,17 +13384,17 @@ function ea(e, t, a, n, i) {
13421
13384
  },
13422
13385
  "unshift"
13423
13386
  // We want these listeners to run before other events are emitted so the 'state.validating' will be reliable.
13424
- ), r.deps = B, r.state = A, A === !1 ? td(r, n || b) : ii(r), t.length > e + 1) {
13387
+ ), r.deps = B, r.state = A, A === !1 ? $u(r, n || b) : ii(r), t.length > e + 1) {
13425
13388
  const D = t[e + 1];
13426
13389
  (A || D.force || !D.skipEmpty) && D.state === null && (D.queued = !0), ea(e + 1, t, a, n || b, i);
13427
13390
  } else
13428
13391
  i();
13429
13392
  }
13430
- (!se(s.value) || !r.skipEmpty) && (a.isPassing || r.force) ? r.queued ? ed(r, s, (b) => {
13393
+ (!se(s.value) || !r.skipEmpty) && (a.isPassing || r.force) ? r.queued ? _u(r, s, (b) => {
13431
13394
  b instanceof Promise ? b.then((A) => m(!0, A)) : m(!1, b);
13432
13395
  }) : ea(e + 1, t, a, n, i) : se(s.value) && r.skipEmpty && a.isPassing ? (s.observe(), s.value, m(!1, a.isPassing)) : m(!1, null);
13433
13396
  }
13434
- function ed(e, t, a) {
13397
+ function _u(e, t, a) {
13435
13398
  e.debounce ? e.timer = setTimeout(() => {
13436
13399
  t.observe(), a(e.rule(t, ...e.args));
13437
13400
  }, e.debounce) : (t.observe(), a(e.rule(t, ...e.args)));
@@ -13440,15 +13403,15 @@ function ii(e) {
13440
13403
  const t = `rule_${e.name}`;
13441
13404
  e.messageObserver && (e.messageObserver = e.messageObserver.kill()), G(e.observer.store, t) && e.observer.store.remove(t);
13442
13405
  }
13443
- function td(e, t) {
13406
+ function $u(e, t) {
13444
13407
  const a = e.observer;
13445
- ma(a) || (e.messageObserver || (e.messageObserver = xt(a._node)), e.messageObserver.watch(
13446
- (n) => nd(
13408
+ da(a) || (e.messageObserver || (e.messageObserver = xt(a._node)), e.messageObserver.watch(
13409
+ (n) => td(
13447
13410
  n,
13448
13411
  e
13449
13412
  ),
13450
13413
  (n) => {
13451
- const i = ad(a, e, n), r = /* @__PURE__ */ ae({
13414
+ const i = ed(a, e, n), r = /* @__PURE__ */ ae({
13452
13415
  blocking: e.blocking,
13453
13416
  key: `rule_${e.name}`,
13454
13417
  meta: {
@@ -13479,11 +13442,11 @@ function td(e, t) {
13479
13442
  }
13480
13443
  ));
13481
13444
  }
13482
- function ad(e, t, a) {
13445
+ function ed(e, t, a) {
13483
13446
  const n = e.props.validationMessages && G(e.props.validationMessages, t.name) ? e.props.validationMessages[t.name] : void 0;
13484
13447
  return typeof n == "function" ? n(...a) : n;
13485
13448
  }
13486
- function nd(e, t) {
13449
+ function td(e, t) {
13487
13450
  return [
13488
13451
  {
13489
13452
  node: e,
@@ -13495,22 +13458,22 @@ function nd(e, t) {
13495
13458
  function ri(e) {
13496
13459
  return typeof e.props.validationLabel == "function" ? e.props.validationLabel(e) : e.props.validationLabel || e.props.label || e.props.name || String(e.name);
13497
13460
  }
13498
- var si = "(?:[\\*+?()0-9]+)", oi = "[a-zA-Z][a-zA-Z0-9_]+", id = new RegExp(
13461
+ var si = "(?:[\\*+?()0-9]+)", oi = "[a-zA-Z][a-zA-Z0-9_]+", ad = new RegExp(
13499
13462
  `^(${si}?${oi})(?:\\:(.*)+)?$`,
13500
13463
  "i"
13501
- ), rd = new RegExp(`^(${si})(${oi})$`, "i"), sd = /([\*+?]+)?(\(\d+\))([\*+?]+)?/, Sa = /\(\d+\)/, od = {
13464
+ ), nd = new RegExp(`^(${si})(${oi})$`, "i"), id = /([\*+?]+)?(\(\d+\))([\*+?]+)?/, xa = /\(\d+\)/, rd = {
13502
13465
  blocking: !0,
13503
13466
  debounce: 0,
13504
13467
  force: !1,
13505
13468
  skipEmpty: !0,
13506
13469
  name: ""
13507
13470
  };
13508
- function ja(e, t, a) {
13509
- return e ? (typeof e == "string" ? ld(e) : Re(e)).reduce((i, r) => {
13471
+ function Sa(e, t, a) {
13472
+ return e ? (typeof e == "string" ? sd(e) : Re(e)).reduce((i, r) => {
13510
13473
  let s = r.shift();
13511
13474
  const l = {};
13512
13475
  if (typeof s == "string") {
13513
- const [m, b] = ud(s);
13476
+ const [m, b] = ld(s);
13514
13477
  G(t, m) && (s = t[m], Object.assign(l, b));
13515
13478
  }
13516
13479
  return typeof s == "function" && i.push({
@@ -13521,21 +13484,21 @@ function ja(e, t, a) {
13521
13484
  state: null,
13522
13485
  queued: !0,
13523
13486
  deps: /* @__PURE__ */ new Map(),
13524
- ...od,
13525
- ...dd(l, s)
13487
+ ...rd,
13488
+ ...cd(l, s)
13526
13489
  }), i;
13527
13490
  }, []) : [];
13528
13491
  }
13529
- function ld(e) {
13492
+ function sd(e) {
13530
13493
  return e.split("|").reduce((t, a) => {
13531
- const n = cd(a);
13494
+ const n = od(a);
13532
13495
  return n && t.push(n), t;
13533
13496
  }, []);
13534
13497
  }
13535
- function cd(e) {
13498
+ function od(e) {
13536
13499
  const t = e.trim();
13537
13500
  if (t) {
13538
- const a = t.match(id);
13501
+ const a = t.match(ad);
13539
13502
  if (a && typeof a[1] == "string") {
13540
13503
  const n = a[1].trim(), i = a[2] && typeof a[2] == "string" ? a[2].split(",").map((r) => r.trim()) : [];
13541
13504
  return [n, ...i];
@@ -13543,26 +13506,26 @@ function cd(e) {
13543
13506
  }
13544
13507
  return !1;
13545
13508
  }
13546
- function ud(e) {
13547
- const t = e.match(rd);
13509
+ function ld(e) {
13510
+ const t = e.match(nd);
13548
13511
  if (!t)
13549
13512
  return [e, { name: e }];
13550
13513
  const a = {
13551
13514
  "*": { force: !0 },
13552
13515
  "+": { skipEmpty: !1 },
13553
13516
  "?": { blocking: !1 }
13554
- }, [, n, i] = t, r = Sa.test(n) ? n.match(sd) || [] : [, n];
13517
+ }, [, n, i] = t, r = xa.test(n) ? n.match(id) || [] : [, n];
13555
13518
  return [
13556
13519
  i,
13557
13520
  [r[1], r[2], r[3]].reduce(
13558
- (s, l) => (l && (Sa.test(l) ? s.debounce = parseInt(l.substr(1, l.length - 1)) : l.split("").forEach(
13521
+ (s, l) => (l && (xa.test(l) ? s.debounce = parseInt(l.substr(1, l.length - 1)) : l.split("").forEach(
13559
13522
  (m) => G(a, m) && Object.assign(s, a[m])
13560
13523
  )), s),
13561
13524
  { name: i }
13562
13525
  )
13563
13526
  ];
13564
13527
  }
13565
- function dd(e, t) {
13528
+ function cd(e, t) {
13566
13529
  return e.name || (e.name = t.ruleName || t.name), ["skipEmpty", "force", "debounce", "blocking"].reduce(
13567
13530
  (a, n) => (G(t, n) && !G(a, n) && Object.assign(a, {
13568
13531
  [n]: t[n]
@@ -13573,7 +13536,7 @@ function dd(e, t) {
13573
13536
  function Y(e) {
13574
13537
  return e[0].toUpperCase() + e.substr(1);
13575
13538
  }
13576
- function Fa(e, t = "or") {
13539
+ function ja(e, t = "or") {
13577
13540
  return e.reduce((a, n, i) => (a += n, i <= e.length - 2 && e.length > 2 && (a += ", "), i === e.length - 2 && (a += `${e.length === 2 ? " " : ""}${t} `), a), "");
13578
13541
  }
13579
13542
  function ut(e) {
@@ -13583,10 +13546,10 @@ function ut(e) {
13583
13546
  timeZone: "UTC"
13584
13547
  }).format(t) : "(unknown)";
13585
13548
  }
13586
- function md(e, t) {
13549
+ function ud(e, t) {
13587
13550
  return Number(e) >= Number(t) ? [t, e] : [e, t];
13588
13551
  }
13589
- var gd = {
13552
+ var dd = {
13590
13553
  /**
13591
13554
  * Shown on a button for adding additional items.
13592
13555
  */
@@ -13672,7 +13635,7 @@ var gd = {
13672
13635
  * Shown when there is something to open.
13673
13636
  */
13674
13637
  open: "Open"
13675
- }, pd = {
13638
+ }, md = {
13676
13639
  /**
13677
13640
  * The value is not an accepted value.
13678
13641
  * @see {@link https://formkit.com/essentials/validation#accepted}
@@ -13793,7 +13756,7 @@ var gd = {
13793
13756
  between({ name: e, args: t }) {
13794
13757
  if (isNaN(t[0]) || isNaN(t[1]))
13795
13758
  return "This field was configured incorrectly and can’t be submitted.";
13796
- const [a, n] = md(t[0], t[1]);
13759
+ const [a, n] = ud(t[0], t[1]);
13797
13760
  return `${Y(e)} must be between ${a} and ${n}.`;
13798
13761
  },
13799
13762
  /**
@@ -13827,7 +13790,7 @@ var gd = {
13827
13790
  * @see {@link https://formkit.com/essentials/validation#ends-with}
13828
13791
  */
13829
13792
  ends_with({ name: e, args: t }) {
13830
- return `${Y(e)} doesn’t end with ${Fa(t)}.`;
13793
+ return `${Y(e)} doesn’t end with ${ja(t)}.`;
13831
13794
  },
13832
13795
  /**
13833
13796
  * Is not an allowed value
@@ -13909,7 +13872,7 @@ var gd = {
13909
13872
  * @see {@link https://formkit.com/essentials/validation#starts-with}
13910
13873
  */
13911
13874
  starts_with({ name: e, args: t }) {
13912
- return `${Y(e)} doesn’t start with ${Fa(t)}.`;
13875
+ return `${Y(e)} doesn’t start with ${ja(t)}.`;
13913
13876
  },
13914
13877
  /**
13915
13878
  * Is not a url
@@ -13922,13 +13885,13 @@ var gd = {
13922
13885
  * Shown when the date is invalid.
13923
13886
  */
13924
13887
  invalidDate: "The selected date is invalid."
13925
- }, hd = { ui: gd, validation: pd }, Va = /* @__PURE__ */ new Set();
13926
- function Ad(e) {
13888
+ }, gd = { ui: dd, validation: md }, Fa = /* @__PURE__ */ new Set();
13889
+ function pd(e) {
13927
13890
  return function(a) {
13928
- Va.add(a), a.on("destroying", () => Va.delete(a));
13929
- let n = Oa(a.config.locale, e), i = n ? e[n] : {};
13891
+ Fa.add(a), a.on("destroying", () => Fa.delete(a));
13892
+ let n = Va(a.config.locale, e), i = n ? e[n] : {};
13930
13893
  a.on("prop:locale", ({ payload: r }) => {
13931
- n = Oa(r, e), i = n ? e[n] : {}, a.store.touch();
13894
+ n = Va(r, e), i = n ? e[n] : {}, a.store.touch();
13932
13895
  }), a.on("prop:label", () => a.store.touch()), a.on("prop:validationLabel", () => a.store.touch()), a.hook.text((r, s) => {
13933
13896
  var m, b;
13934
13897
  const l = ((m = r.meta) == null ? void 0 : m.messageKey) || r.key;
@@ -13940,7 +13903,7 @@ function Ad(e) {
13940
13903
  });
13941
13904
  };
13942
13905
  }
13943
- function Oa(e, t) {
13906
+ function Va(e, t) {
13944
13907
  if (G(t, e))
13945
13908
  return e;
13946
13909
  const [a] = e.split("-");
@@ -13950,7 +13913,7 @@ function Oa(e, t) {
13950
13913
  return n;
13951
13914
  return !1;
13952
13915
  }
13953
- function fd(...e) {
13916
+ function hd(...e) {
13954
13917
  const t = e.reduce(
13955
13918
  (n, i) => we(n, i),
13956
13919
  {}
@@ -13961,7 +13924,7 @@ function fd(...e) {
13961
13924
  G(t, i) && n.define(t[i]);
13962
13925
  }, a;
13963
13926
  }
13964
- var bd = [
13927
+ var Ad = [
13965
13928
  "classes",
13966
13929
  "config",
13967
13930
  "delay",
@@ -14034,7 +13997,7 @@ function Pe(e, t, a = !1) {
14034
13997
  function qe(e, t) {
14035
13998
  return e === null && t === void 0 || e === void 0 && t === null ? !1 : e == t ? !0 : He(e) && He(t) ? Z(e, t) : !1;
14036
13999
  }
14037
- function ga(e) {
14000
+ function ma(e) {
14038
14001
  e.hook.prop((t, a) => {
14039
14002
  var n;
14040
14003
  return t.prop === "options" && (typeof t.value == "function" ? (e.props.optionsLoader = t.value, t.value = []) : ((n = e.props)._normalizeCounter ?? (n._normalizeCounter = { count: 1 }), t.value = li(t.value, e.props._normalizeCounter))), a(t);
@@ -14058,11 +14021,11 @@ function V(e, t, a = !1) {
14058
14021
  else: e in r ? /* @__PURE__ */ Ze(s, r[e]) : s
14059
14022
  };
14060
14023
  };
14061
- return i._s = e, a ? /* @__PURE__ */ yd(i) : i;
14024
+ return i._s = e, a ? /* @__PURE__ */ fd(i) : i;
14062
14025
  };
14063
14026
  }
14064
14027
  // @__NO_SIDE_EFFECTS__
14065
- function yd(e) {
14028
+ function fd(e) {
14066
14029
  return (t) => [e(t)];
14067
14030
  }
14068
14031
  function Ct(e) {
@@ -14072,7 +14035,7 @@ function Ct(e) {
14072
14035
  function Ze(e, t = {}) {
14073
14036
  return typeof e == "string" ? Ct(t) || typeof t == "string" ? t : e : Array.isArray(e) ? Ct(t) ? t : e : we(e, t);
14074
14037
  }
14075
- var vd = /* @__PURE__ */ V("actions", () => ({
14038
+ var bd = /* @__PURE__ */ V("actions", () => ({
14076
14039
  $el: "div",
14077
14040
  if: "$actions"
14078
14041
  })), wt = /* @__PURE__ */ V("input", () => ({
@@ -14127,7 +14090,7 @@ var vd = /* @__PURE__ */ V("actions", () => ({
14127
14090
  else: "$fns.isChecked($option.value) || undefined"
14128
14091
  }
14129
14092
  }
14130
- })), Cd = /* @__PURE__ */ V("input", () => ({
14093
+ })), yd = /* @__PURE__ */ V("input", () => ({
14131
14094
  $el: "button",
14132
14095
  bind: "$attrs",
14133
14096
  attrs: {
@@ -14136,7 +14099,7 @@ var vd = /* @__PURE__ */ V("actions", () => ({
14136
14099
  name: "$node.name",
14137
14100
  id: "$id"
14138
14101
  }
14139
- })), wd = /* @__PURE__ */ V("default", null), Tt = /* @__PURE__ */ V("decorator", () => ({
14102
+ })), vd = /* @__PURE__ */ V("default", null), Tt = /* @__PURE__ */ V("decorator", () => ({
14140
14103
  $el: "span",
14141
14104
  attrs: {
14142
14105
  "aria-hidden": "true"
@@ -14151,7 +14114,7 @@ var vd = /* @__PURE__ */ V("actions", () => ({
14151
14114
  else: void 0
14152
14115
  }
14153
14116
  }
14154
- })), kd = /* @__PURE__ */ V("input", () => ({
14117
+ })), Cd = /* @__PURE__ */ V("input", () => ({
14155
14118
  $el: "input",
14156
14119
  bind: "$attrs",
14157
14120
  attrs: {
@@ -14164,27 +14127,27 @@ var vd = /* @__PURE__ */ V("actions", () => ({
14164
14127
  "aria-describedby": "$describedBy",
14165
14128
  "aria-required": "$state.required || undefined"
14166
14129
  }
14167
- })), Dd = /* @__PURE__ */ V("fileItem", () => ({
14130
+ })), wd = /* @__PURE__ */ V("fileItem", () => ({
14168
14131
  $el: "li",
14169
14132
  for: ["file", "$value"]
14170
- })), Bd = /* @__PURE__ */ V("fileList", () => ({
14133
+ })), kd = /* @__PURE__ */ V("fileList", () => ({
14171
14134
  $el: "ul",
14172
14135
  if: "$value.length",
14173
14136
  attrs: {
14174
14137
  "data-has-multiple": "$_hasMultipleFiles"
14175
14138
  }
14176
- })), Td = /* @__PURE__ */ V("fileName", () => ({
14139
+ })), Dd = /* @__PURE__ */ V("fileName", () => ({
14177
14140
  $el: "span",
14178
14141
  attrs: {
14179
14142
  class: "$classes.fileName"
14180
14143
  }
14181
- })), Ga = /* @__PURE__ */ V("fileRemove", () => ({
14144
+ })), Oa = /* @__PURE__ */ V("fileRemove", () => ({
14182
14145
  $el: "button",
14183
14146
  attrs: {
14184
14147
  type: "button",
14185
14148
  onClick: "$handlers.resetFiles"
14186
14149
  }
14187
- })), Md = /* @__PURE__ */ V("form", () => ({
14150
+ })), Bd = /* @__PURE__ */ V("form", () => ({
14188
14151
  $el: "form",
14189
14152
  bind: "$attrs",
14190
14153
  meta: {
@@ -14196,7 +14159,7 @@ var vd = /* @__PURE__ */ V("actions", () => ({
14196
14159
  onSubmit: "$handlers.submit",
14197
14160
  "data-loading": "$state.loading || undefined"
14198
14161
  }
14199
- })), pa = /* @__PURE__ */ V("wrapper", null, !0), he = /* @__PURE__ */ V("help", () => ({
14162
+ })), ga = /* @__PURE__ */ V("wrapper", null, !0), he = /* @__PURE__ */ V("help", () => ({
14200
14163
  $el: "div",
14201
14164
  if: "$help",
14202
14165
  attrs: {
@@ -14239,16 +14202,16 @@ var vd = /* @__PURE__ */ V("actions", () => ({
14239
14202
  })), De = /* @__PURE__ */ V("messages", () => ({
14240
14203
  $el: "ul",
14241
14204
  if: "$defaultMessagePlacement && $fns.length($messages)"
14242
- })), Pd = /* @__PURE__ */ V("noFiles", () => ({
14205
+ })), Td = /* @__PURE__ */ V("noFiles", () => ({
14243
14206
  $el: "span",
14244
14207
  if: "$value == null || $value.length == 0"
14245
- })), Ld = /* @__PURE__ */ V("optGroup", () => ({
14208
+ })), Md = /* @__PURE__ */ V("optGroup", () => ({
14246
14209
  $el: "optgroup",
14247
14210
  bind: "$option.attrs",
14248
14211
  attrs: {
14249
14212
  label: "$option.group"
14250
14213
  }
14251
- })), Ia = /* @__PURE__ */ V("option", () => ({
14214
+ })), Ga = /* @__PURE__ */ V("option", () => ({
14252
14215
  $el: "option",
14253
14216
  bind: "$option.attrs",
14254
14217
  attrs: {
@@ -14256,7 +14219,7 @@ var vd = /* @__PURE__ */ V("actions", () => ({
14256
14219
  value: "$option.value",
14257
14220
  selected: "$fns.isSelected($option)"
14258
14221
  }
14259
- })), Ea = /* @__PURE__ */ V("options", () => ({
14222
+ })), Ia = /* @__PURE__ */ V("options", () => ({
14260
14223
  $el: null,
14261
14224
  if: "$options.length",
14262
14225
  for: ["option", "$option.options || $options"]
@@ -14282,7 +14245,7 @@ var vd = /* @__PURE__ */ V("actions", () => ({
14282
14245
  "data-prefix-icon-click": "$onPrefixIconClick !== undefined || undefined",
14283
14246
  "data-suffix-icon-click": "$onSuffixIconClick !== undefined || undefined"
14284
14247
  }
14285
- })), Ae = /* @__PURE__ */ V("prefix", null), xd = /* @__PURE__ */ V("input", () => ({
14248
+ })), Ae = /* @__PURE__ */ V("prefix", null), Pd = /* @__PURE__ */ V("input", () => ({
14286
14249
  $el: "select",
14287
14250
  bind: "$attrs",
14288
14251
  attrs: {
@@ -14297,7 +14260,7 @@ var vd = /* @__PURE__ */ V("actions", () => ({
14297
14260
  "aria-describedby": "$describedBy",
14298
14261
  "aria-required": "$state.required || undefined"
14299
14262
  }
14300
- })), Sd = /* @__PURE__ */ V("submit", () => ({
14263
+ })), Ld = /* @__PURE__ */ V("submit", () => ({
14301
14264
  $cmp: "FormKit",
14302
14265
  bind: "$submitAttrs",
14303
14266
  props: {
@@ -14318,7 +14281,7 @@ var vd = /* @__PURE__ */ V("actions", () => ({
14318
14281
  "aria-describedby": "$describedBy",
14319
14282
  "aria-required": "$state.required || undefined"
14320
14283
  }
14321
- })), jd = /* @__PURE__ */ V("input", () => ({
14284
+ })), xd = /* @__PURE__ */ V("input", () => ({
14322
14285
  $el: "textarea",
14323
14286
  bind: "$attrs",
14324
14287
  attrs: {
@@ -14332,12 +14295,12 @@ var vd = /* @__PURE__ */ V("actions", () => ({
14332
14295
  "aria-required": "$state.required || undefined"
14333
14296
  },
14334
14297
  children: "$initialValue"
14335
- })), We = /* @__PURE__ */ V("wrapper", "div"), Fd = 0;
14298
+ })), We = /* @__PURE__ */ V("wrapper", "div"), Sd = 0;
14336
14299
  function hi(e) {
14337
- (e.type === "group" || e.type === "list") && e.plugins.add(Vd);
14300
+ (e.type === "group" || e.type === "list") && e.plugins.add(jd);
14338
14301
  }
14339
- function Vd(e) {
14340
- e.props.type === "radio" && (e.addProps(["altName"]), e.props.altName = `${e.name}_${Fd++}`);
14302
+ function jd(e) {
14303
+ e.props.type === "radio" && (e.addProps(["altName"]), e.props.altName = `${e.name}_${Sd++}`);
14341
14304
  }
14342
14305
  function Ai(e) {
14343
14306
  return function(t, a) {
@@ -14345,7 +14308,7 @@ function Ai(e) {
14345
14308
  var i;
14346
14309
  return (i = n.attrs) != null && i.id ? n : we(n, {
14347
14310
  attrs: {
14348
- id: `${e.props.id}-option-${ra(String(n.value))}`
14311
+ id: `${e.props.id}-option-${ia(String(n.value))}`
14349
14312
  }
14350
14313
  });
14351
14314
  }), e.props.type === "checkbox" && !Array.isArray(e.value) && (e.isCreated ? e.input([], !1) : e.on("created", () => {
@@ -14353,7 +14316,7 @@ function Ai(e) {
14353
14316
  }))), a(t);
14354
14317
  };
14355
14318
  }
14356
- function Od(e, t) {
14319
+ function Fd(e, t) {
14357
14320
  const a = t.target;
14358
14321
  if (a instanceof HTMLInputElement) {
14359
14322
  const n = Array.isArray(e.props.options) ? Pe(e.props.options, a.value) : a.value;
@@ -14364,16 +14327,16 @@ function Od(e, t) {
14364
14327
  ) : e.input([...e._value, n]) : e.input([n]) : a.checked ? e.input(e.props.onValue) : e.input(e.props.offValue);
14365
14328
  }
14366
14329
  }
14367
- function Gd(e, t) {
14330
+ function Vd(e, t) {
14368
14331
  var a, n;
14369
14332
  return (a = e.context) == null || a.value, (n = e.context) == null || n._value, Array.isArray(e._value) ? e._value.some(
14370
14333
  (i) => qe(Pe(e.props.options, t), i)
14371
14334
  ) : !1;
14372
14335
  }
14373
- function Id(e) {
14336
+ function Od(e) {
14374
14337
  e.on("created", () => {
14375
14338
  var t, a;
14376
- (t = e.context) != null && t.handlers && (e.context.handlers.toggleChecked = Od.bind(null, e)), (a = e.context) != null && a.fns && (e.context.fns.isChecked = Gd.bind(null, e)), G(e.props, "onValue") || (e.props.onValue = !0), G(e.props, "offValue") || (e.props.offValue = !1);
14339
+ (t = e.context) != null && t.handlers && (e.context.handlers.toggleChecked = Fd.bind(null, e)), (a = e.context) != null && a.fns && (e.context.fns.isChecked = Vd.bind(null, e)), G(e.props, "onValue") || (e.props.onValue = !0), G(e.props, "offValue") || (e.props.offValue = !1);
14377
14340
  }), e.hook.prop(Ai(e));
14378
14341
  }
14379
14342
  function Ie(e, t) {
@@ -14381,7 +14344,7 @@ function Ie(e, t) {
14381
14344
  a.props[`${e}Icon`] === void 0 && (a.props[`${e}Icon`] = t.startsWith("<svg") ? t : `default:${t}`);
14382
14345
  };
14383
14346
  }
14384
- function ha(e) {
14347
+ function pa(e) {
14385
14348
  e.on("created", () => {
14386
14349
  "disabled" in e.props && (e.props.disabled = ue(e.props.disabled), e.config.disabled = ue(e.props.disabled));
14387
14350
  }), e.hook.prop(({ prop: t, value: a }, n) => (a = t === "disabled" ? ue(a) : a, n({ prop: t, value: a }))), e.on("prop:disabled", ({ payload: t }) => {
@@ -14407,14 +14370,14 @@ var Gt = typeof window < "u";
14407
14370
  function fi(e) {
14408
14371
  e.target instanceof HTMLElement && e.target.hasAttribute("data-file-hover") && e.target.removeAttribute("data-file-hover");
14409
14372
  }
14410
- function Ya(e, t) {
14373
+ function Ea(e, t) {
14411
14374
  t.target instanceof HTMLInputElement ? e === "dragover" && t.target.setAttribute("data-file-hover", "true") : t.preventDefault(), e === "drop" && fi(t);
14412
14375
  }
14413
- function Ed(e) {
14376
+ function Gd(e) {
14414
14377
  ht("noFiles", "Select file")(e), ht("removeAll", "Remove all")(e), ht("remove")(e), e.addProps(["_hasMultipleFiles"]), Gt && (window._FormKit_File_Drop || (window.addEventListener(
14415
14378
  "dragover",
14416
- Ya.bind(null, "dragover")
14417
- ), window.addEventListener("drop", Ya.bind(null, "drop")), window.addEventListener("dragleave", fi), window._FormKit_File_Drop = !0)), e.hook.input((t, a) => a(Array.isArray(t) ? t : [])), e.on("input", ({ payload: t }) => {
14379
+ Ea.bind(null, "dragover")
14380
+ ), window.addEventListener("drop", Ea.bind(null, "drop")), window.addEventListener("dragleave", fi), window._FormKit_File_Drop = !0)), e.hook.input((t, a) => a(Array.isArray(t) ? t : [])), e.on("input", ({ payload: t }) => {
14418
14381
  e.props._hasMultipleFiles = Array.isArray(t) && t.length > 1 ? !0 : void 0;
14419
14382
  }), e.on("reset", () => {
14420
14383
  if (e.props.id && Gt) {
@@ -14441,14 +14404,14 @@ function Ed(e) {
14441
14404
  });
14442
14405
  });
14443
14406
  }
14444
- var Ha = /* @__PURE__ */ ae({
14407
+ var Ya = /* @__PURE__ */ ae({
14445
14408
  key: "loading",
14446
14409
  value: !0,
14447
14410
  visible: !1
14448
14411
  });
14449
- async function Yd(e, t) {
14412
+ async function Id(e, t) {
14450
14413
  const a = Math.random();
14451
- if (e.props._submitNonce = a, t.preventDefault(), await e.settled, e.ledger.value("validating") && (e.store.set(Ha), await e.ledger.settled("validating"), e.store.remove("loading"), e.props._submitNonce !== a))
14414
+ if (e.props._submitNonce = a, t.preventDefault(), await e.settled, e.ledger.value("validating") && (e.store.set(Ya), await e.ledger.settled("validating"), e.store.remove("loading"), e.props._submitNonce !== a))
14452
14415
  return;
14453
14416
  const n = (i) => i.store.set(
14454
14417
  /* @__PURE__ */ ae({
@@ -14466,7 +14429,7 @@ async function Yd(e, t) {
14466
14429
  );
14467
14430
  if (i instanceof Promise) {
14468
14431
  const r = e.props.disabled === void 0 && e.props.submitBehavior !== "live";
14469
- r && (e.props.disabled = !0), e.store.set(Ha), await i, r && (e.props.disabled = !1), e.store.remove("loading");
14432
+ r && (e.props.disabled = !0), e.store.set(Ya), await i, r && (e.props.disabled = !1), e.store.remove("loading");
14470
14433
  }
14471
14434
  } else
14472
14435
  t.target instanceof HTMLFormElement && t.target.submit();
@@ -14486,7 +14449,7 @@ function bi(e) {
14486
14449
  })
14487
14450
  );
14488
14451
  }
14489
- function Hd(e) {
14452
+ function Ed(e) {
14490
14453
  var t;
14491
14454
  e.props.isForm = !0, e.ledger.count("validating", (a) => a.key === "validating"), (t = e.props).submitAttrs ?? (t.submitAttrs = {
14492
14455
  disabled: e.props.disabled
@@ -14494,15 +14457,15 @@ function Hd(e) {
14494
14457
  e.props.submitAttrs = { ...e.props.submitAttrs, disabled: a };
14495
14458
  }), e.on("created", () => {
14496
14459
  var a;
14497
- (a = e.context) != null && a.handlers && (e.context.handlers.submit = Yd.bind(null, e)), G(e.props, "actions") || (e.props.actions = !0);
14460
+ (a = e.context) != null && a.handlers && (e.context.handlers.submit = Id.bind(null, e)), G(e.props, "actions") || (e.props.actions = !0);
14498
14461
  }), e.on("prop:incompleteMessage", () => {
14499
14462
  e.store.incomplete && bi(e);
14500
14463
  }), e.on("settled:blocking", () => e.store.remove("incomplete"));
14501
14464
  }
14502
- function Rd(e) {
14465
+ function Yd(e) {
14503
14466
  e.props.ignore === void 0 && (e.props.ignore = !0, e.parent = null);
14504
14467
  }
14505
- function Nd(e) {
14468
+ function Hd(e) {
14506
14469
  e.on("created", () => {
14507
14470
  e.context && (e.context.initialValue = e.value || "");
14508
14471
  });
@@ -14518,23 +14481,23 @@ function yi(e) {
14518
14481
  return Number.isFinite(i) ? n(i) : n(t ? void 0 : a);
14519
14482
  });
14520
14483
  }
14521
- function qd(e, t) {
14484
+ function Rd(e, t) {
14522
14485
  t.target instanceof HTMLInputElement && e.input(Pe(e.props.options, t.target.value));
14523
14486
  }
14524
- function Qd(e, t) {
14487
+ function Nd(e, t) {
14525
14488
  var a, n;
14526
14489
  return (a = e.context) == null || a.value, (n = e.context) == null || n._value, qe(Pe(e.props.options, t), e._value);
14527
14490
  }
14528
- function Xd(e) {
14491
+ function qd(e) {
14529
14492
  e.on("created", () => {
14530
14493
  var t, a;
14531
14494
  Array.isArray(e.props.options) || xe(350, {
14532
14495
  node: e,
14533
14496
  inputType: "radio"
14534
- }), (t = e.context) != null && t.handlers && (e.context.handlers.toggleChecked = qd.bind(null, e)), (a = e.context) != null && a.fns && (e.context.fns.isChecked = Qd.bind(null, e));
14497
+ }), (t = e.context) != null && t.handlers && (e.context.handlers.toggleChecked = Rd.bind(null, e)), (a = e.context) != null && a.fns && (e.context.fns.isChecked = Nd.bind(null, e));
14535
14498
  }), e.hook.prop(Ai(e));
14536
14499
  }
14537
- function Wd(e, t) {
14500
+ function Qd(e, t) {
14538
14501
  if (St(t))
14539
14502
  return !1;
14540
14503
  e.context && e.context.value;
@@ -14544,17 +14507,17 @@ function Wd(e, t) {
14544
14507
  function vi(e, t) {
14545
14508
  return e.some((a) => St(a) ? vi(a.options, t) : ("__original" in a ? a.__original : a.value) === t);
14546
14509
  }
14547
- async function Ud(e, t) {
14510
+ async function Xd(e, t) {
14548
14511
  var a;
14549
14512
  typeof ((a = e.props.attrs) == null ? void 0 : a.onChange) == "function" && (await new Promise((n) => setTimeout(n, 0)), await e.settled, e.props.attrs.onChange(t));
14550
14513
  }
14551
- function zd(e, t) {
14514
+ function Wd(e, t) {
14552
14515
  const a = t.target, n = a.hasAttribute("multiple") ? Array.from(a.selectedOptions).map(
14553
14516
  (i) => Pe(e.props.options, i.value)
14554
14517
  ) : Pe(e.props.options, a.value);
14555
14518
  e.input(n);
14556
14519
  }
14557
- function Ra(e, t) {
14520
+ function Ha(e, t) {
14558
14521
  return e.some(
14559
14522
  (a) => a.attrs && a.attrs["data-is-placeholder"]
14560
14523
  ) ? e : [
@@ -14575,11 +14538,11 @@ function Ci(e) {
14575
14538
  if (t)
14576
14539
  return St(t) ? Ci(t.options) : "__original" in t ? t.__original : t.value;
14577
14540
  }
14578
- function Kd(e) {
14541
+ function Ud(e) {
14579
14542
  e.on("created", () => {
14580
14543
  var a, n, i;
14581
14544
  const t = ue((a = e.props.attrs) == null ? void 0 : a.multiple);
14582
- !t && e.props.placeholder && Array.isArray(e.props.options) && (e.hook.prop(({ prop: r, value: s }, l) => (r === "options" && (s = Ra(s, e.props.placeholder)), l({ prop: r, value: s }))), e.props.options = Ra(
14545
+ !t && e.props.placeholder && Array.isArray(e.props.options) && (e.hook.prop(({ prop: r, value: s }, l) => (r === "options" && (s = Ha(s, e.props.placeholder)), l({ prop: r, value: s }))), e.props.options = Ha(
14583
14546
  e.props.options,
14584
14547
  e.props.placeholder
14585
14548
  )), t ? e.value === void 0 && e.input([], !1) : e.context && !e.context.options && (e.props.attrs = Object.assign({}, e.props.attrs, {
@@ -14588,7 +14551,7 @@ function Kd(e) {
14588
14551
  e.props.attrs = Object.assign({}, e.props.attrs, {
14589
14552
  value: r
14590
14553
  });
14591
- })), (n = e.context) != null && n.handlers && (e.context.handlers.selectInput = zd.bind(null, e), e.context.handlers.onChange = Ud.bind(null, e)), (i = e.context) != null && i.fns && (e.context.fns.isSelected = Wd.bind(null, e), e.context.fns.showPlaceholder = (r, s) => {
14554
+ })), (n = e.context) != null && n.handlers && (e.context.handlers.selectInput = Wd.bind(null, e), e.context.handlers.onChange = Xd.bind(null, e)), (i = e.context) != null && i.fns && (e.context.fns.isSelected = Qd.bind(null, e), e.context.fns.showPlaceholder = (r, s) => {
14592
14555
  if (!Array.isArray(e.props.options))
14593
14556
  return !1;
14594
14557
  const l = e.props.options.some(
@@ -14611,7 +14574,7 @@ function ta(e) {
14611
14574
  return !!(Ve(e) && e.if && e.if.startsWith("$slots.") && typeof e.then == "string" && e.then.startsWith("$slots.") && "else" in e);
14612
14575
  }
14613
14576
  // @__NO_SIDE_EFFECTS__
14614
- function Zd(e, t = {}) {
14577
+ function zd(e, t = {}) {
14615
14578
  const a = /* @__PURE__ */ Te(
14616
14579
  /* @__PURE__ */ We(
14617
14580
  /* @__PURE__ */ st("$label"),
@@ -14651,17 +14614,17 @@ function Ee(e, t) {
14651
14614
  };
14652
14615
  return a._s = e._s, a;
14653
14616
  }
14654
- var Na = {
14617
+ var Ra = {
14655
14618
  /**
14656
14619
  * The actual schema of the input, or a function that returns the schema.
14657
14620
  */
14658
14621
  schema: /* @__PURE__ */ Te(
14659
14622
  /* @__PURE__ */ De(/* @__PURE__ */ ke("$message.value")),
14660
14623
  /* @__PURE__ */ We(
14661
- /* @__PURE__ */ Cd(
14624
+ /* @__PURE__ */ yd(
14662
14625
  /* @__PURE__ */ X("prefix"),
14663
14626
  /* @__PURE__ */ Ae(),
14664
- /* @__PURE__ */ wd("$label || $ui.submit.value"),
14627
+ /* @__PURE__ */ vd("$label || $ui.submit.value"),
14665
14628
  /* @__PURE__ */ fe(),
14666
14629
  /* @__PURE__ */ X("suffix")
14667
14630
  )
@@ -14684,13 +14647,13 @@ var Na = {
14684
14647
  /**
14685
14648
  * Additional features that should be added to your input
14686
14649
  */
14687
- features: [ht("submit"), Rd],
14650
+ features: [ht("submit"), Yd],
14688
14651
  /**
14689
14652
  * A key to use for memoizing the schema. This is used to prevent the schema
14690
14653
  * from needing to be stringified when performing a memo lookup.
14691
14654
  */
14692
14655
  schemaMemoKey: "h6st4epl3j8"
14693
- }, Jd = {
14656
+ }, Kd = {
14694
14657
  /**
14695
14658
  * The actual schema of the input, or a function that returns the schema.
14696
14659
  */
@@ -14758,15 +14721,15 @@ var Na = {
14758
14721
  * Additional features that should be added to your input
14759
14722
  */
14760
14723
  features: [
14761
- ga,
14762
- Id,
14724
+ ma,
14725
+ Od,
14763
14726
  Ie("decorator", "checkboxDecorator")
14764
14727
  ],
14765
14728
  /**
14766
14729
  * The key used to memoize the schema.
14767
14730
  */
14768
14731
  schemaMemoKey: "qje02tb3gu8"
14769
- }, _d = {
14732
+ }, Zd = {
14770
14733
  /**
14771
14734
  * The actual schema of the input, or a function that returns the schema.
14772
14735
  */
@@ -14776,22 +14739,22 @@ var Na = {
14776
14739
  /* @__PURE__ */ rt(
14777
14740
  /* @__PURE__ */ X("prefix", "label"),
14778
14741
  /* @__PURE__ */ Ae(),
14779
- /* @__PURE__ */ kd(),
14780
- /* @__PURE__ */ Bd(
14781
- /* @__PURE__ */ Dd(
14742
+ /* @__PURE__ */ Cd(),
14743
+ /* @__PURE__ */ kd(
14744
+ /* @__PURE__ */ wd(
14782
14745
  /* @__PURE__ */ X("fileItem"),
14783
- /* @__PURE__ */ Td("$file.name"),
14746
+ /* @__PURE__ */ Dd("$file.name"),
14784
14747
  /* @__PURE__ */ ve(
14785
14748
  "$value.length === 1",
14786
- /* @__PURE__ */ Ga(
14749
+ /* @__PURE__ */ Oa(
14787
14750
  /* @__PURE__ */ X("fileRemove"),
14788
14751
  '$ui.remove.value + " " + $file.name'
14789
14752
  )
14790
14753
  )
14791
14754
  )
14792
14755
  ),
14793
- /* @__PURE__ */ ve("$value.length > 1", /* @__PURE__ */ Ga("$ui.removeAll.value")),
14794
- /* @__PURE__ */ Pd(/* @__PURE__ */ X("noFiles"), "$ui.noFiles.value"),
14756
+ /* @__PURE__ */ ve("$value.length > 1", /* @__PURE__ */ Oa("$ui.removeAll.value")),
14757
+ /* @__PURE__ */ Td(/* @__PURE__ */ X("noFiles"), "$ui.noFiles.value"),
14795
14758
  /* @__PURE__ */ fe(),
14796
14759
  /* @__PURE__ */ X("suffix")
14797
14760
  )
@@ -14816,7 +14779,7 @@ var Na = {
14816
14779
  * Additional features that should be added to your input
14817
14780
  */
14818
14781
  features: [
14819
- Ed,
14782
+ Gd,
14820
14783
  Ie("fileItem", "fileItem"),
14821
14784
  Ie("fileRemove", "fileRemove"),
14822
14785
  Ie("noFiles", "noFiles")
@@ -14825,14 +14788,14 @@ var Na = {
14825
14788
  * The key used to memoize the schema.
14826
14789
  */
14827
14790
  schemaMemoKey: "9kqc4852fv8"
14828
- }, $d = {
14791
+ }, Jd = {
14829
14792
  /**
14830
14793
  * The actual schema of the input, or a function that returns the schema.
14831
14794
  */
14832
- schema: /* @__PURE__ */ Md(
14795
+ schema: /* @__PURE__ */ Bd(
14833
14796
  "$slots.default",
14834
14797
  /* @__PURE__ */ De(/* @__PURE__ */ ke("$message.value")),
14835
- /* @__PURE__ */ vd(/* @__PURE__ */ Sd())
14798
+ /* @__PURE__ */ bd(/* @__PURE__ */ Ld())
14836
14799
  ),
14837
14800
  /**
14838
14801
  * The type of node, can be a list, group, or input.
@@ -14852,16 +14815,16 @@ var Na = {
14852
14815
  /**
14853
14816
  * Additional features that should be added to your input
14854
14817
  */
14855
- features: [Hd, ha],
14818
+ features: [Ed, pa],
14856
14819
  /**
14857
14820
  * The key used to memoize the schema.
14858
14821
  */
14859
14822
  schemaMemoKey: "5bg016redjo"
14860
- }, em = {
14823
+ }, _d = {
14861
14824
  /**
14862
14825
  * The actual schema of the input, or a function that returns the schema.
14863
14826
  */
14864
- schema: /* @__PURE__ */ pa("$slots.default"),
14827
+ schema: /* @__PURE__ */ ga("$slots.default"),
14865
14828
  /**
14866
14829
  * The type of node, can be a list, group, or input.
14867
14830
  */
@@ -14873,8 +14836,8 @@ var Na = {
14873
14836
  /**
14874
14837
  * Additional features that should be added to your input
14875
14838
  */
14876
- features: [ha, hi]
14877
- }, tm = {
14839
+ features: [pa, hi]
14840
+ }, $d = {
14878
14841
  /**
14879
14842
  * The actual schema of the input, or a function that returns the schema.
14880
14843
  */
@@ -14891,11 +14854,11 @@ var Na = {
14891
14854
  * Additional features that should be added to your input
14892
14855
  */
14893
14856
  features: [yi]
14894
- }, am = {
14857
+ }, em = {
14895
14858
  /**
14896
14859
  * The actual schema of the input, or a function that returns the schema.
14897
14860
  */
14898
- schema: /* @__PURE__ */ pa("$slots.default"),
14861
+ schema: /* @__PURE__ */ ga("$slots.default"),
14899
14862
  /**
14900
14863
  * The type of node, can be a list, group, or input.
14901
14864
  */
@@ -14907,12 +14870,12 @@ var Na = {
14907
14870
  /**
14908
14871
  * Additional features that should be added to your input
14909
14872
  */
14910
- features: [ha, hi]
14911
- }, nm = {
14873
+ features: [pa, hi]
14874
+ }, tm = {
14912
14875
  /**
14913
14876
  * The actual schema of the input, or a function that returns the schema.
14914
14877
  */
14915
- schema: /* @__PURE__ */ pa(),
14878
+ schema: /* @__PURE__ */ ga(),
14916
14879
  /**
14917
14880
  * The type of node, can be a list, group, or input.
14918
14881
  */
@@ -14925,7 +14888,7 @@ var Na = {
14925
14888
  * Additional features that should be added to your input
14926
14889
  */
14927
14890
  features: []
14928
- }, im = {
14891
+ }, am = {
14929
14892
  /**
14930
14893
  * The actual schema of the input, or a function that returns the schema.
14931
14894
  */
@@ -14992,12 +14955,12 @@ var Na = {
14992
14955
  /**
14993
14956
  * Additional features that should be added to your input
14994
14957
  */
14995
- features: [ga, Xd, Ie("decorator", "radioDecorator")],
14958
+ features: [ma, qd, Ie("decorator", "radioDecorator")],
14996
14959
  /**
14997
14960
  * The key used to memoize the schema.
14998
14961
  */
14999
14962
  schemaMemoKey: "qje02tb3gu8"
15000
- }, rm = {
14963
+ }, nm = {
15001
14964
  /**
15002
14965
  * The actual schema of the input, or a function that returns the schema.
15003
14966
  */
@@ -15007,15 +14970,15 @@ var Na = {
15007
14970
  /* @__PURE__ */ rt(
15008
14971
  /* @__PURE__ */ X("prefix"),
15009
14972
  /* @__PURE__ */ Ae(),
15010
- /* @__PURE__ */ xd(
14973
+ /* @__PURE__ */ Pd(
15011
14974
  /* @__PURE__ */ ve(
15012
14975
  "$slots.default",
15013
14976
  () => "$slots.default",
15014
- /* @__PURE__ */ Ea(
14977
+ /* @__PURE__ */ Ia(
15015
14978
  /* @__PURE__ */ ve(
15016
14979
  "$option.group",
15017
- /* @__PURE__ */ Ld(/* @__PURE__ */ Ea(/* @__PURE__ */ Ia("$option.label"))),
15018
- /* @__PURE__ */ Ia("$option.label")
14980
+ /* @__PURE__ */ Md(/* @__PURE__ */ Ia(/* @__PURE__ */ Ga("$option.label"))),
14981
+ /* @__PURE__ */ Ga("$option.label")
15019
14982
  )
15020
14983
  )
15021
14984
  )
@@ -15039,12 +15002,12 @@ var Na = {
15039
15002
  /**
15040
15003
  * Additional features that should be added to your input
15041
15004
  */
15042
- features: [ga, Kd, Ie("select", "select")],
15005
+ features: [ma, Ud, Ie("select", "select")],
15043
15006
  /**
15044
15007
  * The key used to memoize the schema.
15045
15008
  */
15046
15009
  schemaMemoKey: "cb119h43krg"
15047
- }, sm = {
15010
+ }, im = {
15048
15011
  /**
15049
15012
  * The actual schema of the input, or a function that returns the schema.
15050
15013
  */
@@ -15054,7 +15017,7 @@ var Na = {
15054
15017
  /* @__PURE__ */ rt(
15055
15018
  /* @__PURE__ */ X("prefix", "label"),
15056
15019
  /* @__PURE__ */ Ae(),
15057
- /* @__PURE__ */ jd(),
15020
+ /* @__PURE__ */ xd(),
15058
15021
  /* @__PURE__ */ fe(),
15059
15022
  /* @__PURE__ */ X("suffix")
15060
15023
  )
@@ -15073,7 +15036,7 @@ var Na = {
15073
15036
  /**
15074
15037
  * Additional features that should be added to your input
15075
15038
  */
15076
- features: [Nd],
15039
+ features: [Hd],
15077
15040
  /**
15078
15041
  * The key used to memoize the schema.
15079
15042
  */
@@ -15117,19 +15080,19 @@ var Na = {
15117
15080
  * The key used to memoize the schema.
15118
15081
  */
15119
15082
  schemaMemoKey: "c3cc4kflsg"
15120
- }, om = {
15121
- button: Na,
15122
- submit: Na,
15123
- checkbox: Jd,
15124
- file: _d,
15125
- form: $d,
15126
- group: em,
15127
- hidden: tm,
15128
- list: am,
15129
- meta: nm,
15130
- radio: im,
15131
- select: rm,
15132
- textarea: sm,
15083
+ }, rm = {
15084
+ button: Ra,
15085
+ submit: Ra,
15086
+ checkbox: Kd,
15087
+ file: Zd,
15088
+ form: Jd,
15089
+ group: _d,
15090
+ hidden: $d,
15091
+ list: em,
15092
+ meta: tm,
15093
+ radio: am,
15094
+ select: nm,
15095
+ textarea: im,
15133
15096
  text: _,
15134
15097
  color: _,
15135
15098
  date: _,
@@ -15144,21 +15107,21 @@ var Na = {
15144
15107
  url: _,
15145
15108
  week: _,
15146
15109
  range: _
15147
- }, de = void 0, ge = null, Mt, wi = !1, Je = !1, lm = /* @__PURE__ */ new Promise((e) => {
15110
+ }, de = void 0, ge = null, Mt, wi = !1, Je = !1, sm = /* @__PURE__ */ new Promise((e) => {
15148
15111
  Mt = () => {
15149
15112
  wi = !0, e();
15150
15113
  };
15151
15114
  }), Ce = typeof window < "u" && typeof fetch < "u";
15152
15115
  de = Ce ? /* @__PURE__ */ getComputedStyle(document.documentElement) : void 0;
15153
15116
  var Oe = {}, It = {};
15154
- function cm(e, t, a, n) {
15155
- t && Object.assign(Oe, t), Ce && !Je && (de != null && de.getPropertyValue("--formkit-theme")) ? (Mt(), Je = !0) : e && !Je && Ce ? um(e) : !Je && Ce && Mt();
15117
+ function om(e, t, a, n) {
15118
+ t && Object.assign(Oe, t), Ce && !Je && (de != null && de.getPropertyValue("--formkit-theme")) ? (Mt(), Je = !0) : e && !Je && Ce ? lm(e) : !Je && Ce && Mt();
15156
15119
  const i = function(s) {
15157
15120
  var l, m;
15158
- s.addProps(["iconLoader", "iconLoaderUrl"]), s.props.iconHandler = qa(
15121
+ s.addProps(["iconLoader", "iconLoaderUrl"]), s.props.iconHandler = Na(
15159
15122
  (l = s.props) != null && l.iconLoader ? s.props.iconLoader : n,
15160
15123
  (m = s.props) != null && m.iconLoaderUrl ? s.props.iconLoaderUrl : a
15161
- ), gm(s, s.props.iconHandler), s.on("created", () => {
15124
+ ), dm(s, s.props.iconHandler), s.on("created", () => {
15162
15125
  var b, A;
15163
15126
  (b = s == null ? void 0 : s.context) != null && b.handlers && (s.context.handlers.iconClick = (B) => {
15164
15127
  const I = `on${B.charAt(0).toUpperCase()}${B.slice(1)}IconClick`, D = s.props[I];
@@ -15170,9 +15133,9 @@ function cm(e, t, a, n) {
15170
15133
  });
15171
15134
  });
15172
15135
  };
15173
- return i.iconHandler = qa(n, a), i;
15136
+ return i.iconHandler = Na(n, a), i;
15174
15137
  }
15175
- function um(e) {
15138
+ function lm(e) {
15176
15139
  if (!(!e || !Ce || typeof getComputedStyle != "function") && (Je = !0, ge = document.getElementById("formkit-theme"), e && // if we have a window object
15177
15140
  Ce && // we don't have an existing theme OR the theme being set up is different
15178
15141
  (!(de != null && de.getPropertyValue("--formkit-theme")) && !ge || ge != null && ge.getAttribute("data-theme") && (ge == null ? void 0 : ge.getAttribute("data-theme")) !== e))) {
@@ -15182,7 +15145,7 @@ function um(e) {
15182
15145
  }, document.head.appendChild(n), n.href = a, ge && ge.remove();
15183
15146
  }
15184
15147
  }
15185
- function qa(e, t) {
15148
+ function Na(e, t) {
15186
15149
  return (a) => {
15187
15150
  if (typeof a != "string")
15188
15151
  return;
@@ -15195,19 +15158,19 @@ function qa(e, t) {
15195
15158
  if (i)
15196
15159
  return Oe[a];
15197
15160
  if (!It[a]) {
15198
- if (r = dm(a), r = Ce && typeof r > "u" ? Promise.resolve(r) : r, r instanceof Promise)
15199
- It[a] = r.then((s) => !s && typeof a == "string" && !n ? r = typeof e == "function" ? e(a) : mm(a, t) : s).then((s) => (typeof a == "string" && (Oe[n ? `default:${a}` : a] = s), s));
15161
+ if (r = cm(a), r = Ce && typeof r > "u" ? Promise.resolve(r) : r, r instanceof Promise)
15162
+ It[a] = r.then((s) => !s && typeof a == "string" && !n ? r = typeof e == "function" ? e(a) : um(a, t) : s).then((s) => (typeof a == "string" && (Oe[n ? `default:${a}` : a] = s), s));
15200
15163
  else if (typeof r == "string")
15201
15164
  return Oe[n ? `default:${a}` : a] = r, r;
15202
15165
  }
15203
15166
  return It[a];
15204
15167
  };
15205
15168
  }
15206
- function dm(e) {
15169
+ function cm(e) {
15207
15170
  if (Ce)
15208
- return wi ? Qa(e) : lm.then(() => Qa(e));
15171
+ return wi ? qa(e) : sm.then(() => qa(e));
15209
15172
  }
15210
- function Qa(e) {
15173
+ function qa(e) {
15211
15174
  const t = de == null ? void 0 : de.getPropertyValue(`--fk-icon-${e}`);
15212
15175
  if (t) {
15213
15176
  const a = atob(t);
@@ -15215,7 +15178,7 @@ function Qa(e) {
15215
15178
  return Oe[e] = a, a;
15216
15179
  }
15217
15180
  }
15218
- function mm(e, t) {
15181
+ function um(e, t) {
15219
15182
  const a = vt.startsWith("__") ? "latest" : vt, n = typeof t == "function" ? t(e) : `https://cdn.jsdelivr.net/npm/@formkit/icons@${a}/dist/icons/${e}.svg`;
15220
15183
  if (Ce)
15221
15184
  return fetch(`${n}`).then(async (i) => {
@@ -15226,19 +15189,19 @@ function mm(e, t) {
15226
15189
  console.error(i);
15227
15190
  });
15228
15191
  }
15229
- function gm(e, t) {
15192
+ function dm(e, t) {
15230
15193
  const a = /^[a-zA-Z-]+(?:-icon|Icon)$/;
15231
- Object.keys(e.props).filter((i) => a.test(i)).forEach((i) => pm(e, t, i));
15194
+ Object.keys(e.props).filter((i) => a.test(i)).forEach((i) => mm(e, t, i));
15232
15195
  }
15233
- function pm(e, t, a) {
15196
+ function mm(e, t, a) {
15234
15197
  const n = e.props[a], i = t(n), r = `_raw${a.charAt(0).toUpperCase()}${a.slice(1)}`, s = `on${a.charAt(0).toUpperCase()}${a.slice(1)}Click`;
15235
- if (e.addProps([r, s]), e.on(`prop:${a}`, hm), i instanceof Promise)
15198
+ if (e.addProps([r, s]), e.on(`prop:${a}`, gm), i instanceof Promise)
15236
15199
  return i.then((l) => {
15237
15200
  e.props[r] = l;
15238
15201
  });
15239
15202
  e.props[r] = i;
15240
15203
  }
15241
- function hm(e) {
15204
+ function gm(e) {
15242
15205
  var s;
15243
15206
  const t = e.origin, a = e.payload, n = (s = t == null ? void 0 : t.props) == null ? void 0 : s.iconHandler, i = e.name.split(":")[1], r = `_raw${i.charAt(0).toUpperCase()}${i.slice(1)}`;
15244
15207
  if (n && typeof n == "function") {
@@ -15250,7 +15213,7 @@ function hm(e) {
15250
15213
  t.props[r] = l;
15251
15214
  }
15252
15215
  }
15253
- var Xa = {
15216
+ var Qa = {
15254
15217
  /**
15255
15218
  * FormKit errors:
15256
15219
  */
@@ -15274,7 +15237,7 @@ var Xa = {
15274
15237
  */
15275
15238
  600: ({ data: e }) => `Unknown input type${typeof e.props.type == "string" ? ' "' + e.props.type + '"' : ""} ("${e.name}")`,
15276
15239
  601: ({ data: e }) => `Input definition${typeof e.props.type == "string" ? ' "' + e.props.type + '"' : ""} is missing a schema or component property (${e.name}).`
15277
- }, Wa = {
15240
+ }, Xa = {
15278
15241
  /**
15279
15242
  * Core warnings:
15280
15243
  */
@@ -15297,30 +15260,30 @@ var Xa = {
15297
15260
  * Deprecation warnings:
15298
15261
  */
15299
15262
  800: ({ data: e }) => `${e} is deprecated.`
15300
- }, Am = (e, t) => {
15301
- if (e.code in Xa) {
15302
- const a = Xa[e.code];
15263
+ }, pm = (e, t) => {
15264
+ if (e.code in Qa) {
15265
+ const a = Qa[e.code];
15303
15266
  e.message = typeof a == "function" ? a(e) : a;
15304
15267
  }
15305
15268
  return t(e);
15306
- }, Ua = !1;
15307
- function fm() {
15308
- Ua || (oa(Am), la(bm), Ua = !0);
15269
+ }, Wa = !1;
15270
+ function hm() {
15271
+ Wa || (sa(pm), oa(Am), Wa = !0);
15309
15272
  }
15310
- var bm = (e, t) => {
15311
- if (e.code in Wa) {
15312
- const a = Wa[e.code];
15273
+ var Am = (e, t) => {
15274
+ if (e.code in Xa) {
15275
+ const a = Xa[e.code];
15313
15276
  e.message = typeof a == "function" ? a(e) : a;
15314
15277
  }
15315
15278
  return t(e);
15316
- }, ym = Object.defineProperty, vm = Object.getOwnPropertyNames, ki = (e, t) => function() {
15317
- return e && (t = (0, e[vm(e)[0]])(e = 0)), t;
15318
- }, Cm = (e, t) => {
15279
+ }, fm = Object.defineProperty, bm = Object.getOwnPropertyNames, ki = (e, t) => function() {
15280
+ return e && (t = (0, e[bm(e)[0]])(e = 0)), t;
15281
+ }, ym = (e, t) => {
15319
15282
  for (var a in t)
15320
- ym(e, a, { get: t[a], enumerable: !0 });
15321
- }, za, Di, Bi = ki({
15283
+ fm(e, a, { get: t[a], enumerable: !0 });
15284
+ }, Ua, Di, Bi = ki({
15322
15285
  "packages/vue/src/bindings.ts"() {
15323
- za = function(t) {
15286
+ Ua = function(t) {
15324
15287
  t.ledger.count("blocking", (u) => u.blocking);
15325
15288
  const a = z(!t.ledger.value("blocking"));
15326
15289
  t.ledger.count("errors", (u) => u.type === "error");
@@ -15391,7 +15354,7 @@ var bm = (e, t) => {
15391
15354
  E,
15392
15355
  E.props[`${k}Class`]
15393
15356
  );
15394
- L = jc(
15357
+ L = xc(
15395
15358
  E,
15396
15359
  k,
15397
15360
  q,
@@ -15513,9 +15476,9 @@ var bm = (e, t) => {
15513
15476
  u.props && O(u.props);
15514
15477
  }
15515
15478
  t.props.definition && g(t.props.definition), t.on("added-props", ({ payload: u }) => O(u)), t.on("input", ({ payload: u }) => {
15516
- t.type !== "input" && !At(u) && !va(u) ? p.value = Xt(u) : (p.value = u, lt(p));
15479
+ t.type !== "input" && !At(u) && !ya(u) ? p.value = Xt(u) : (p.value = u, lt(p));
15517
15480
  }), t.on("commitRaw", ({ payload: u }) => {
15518
- t.type !== "input" && !At(u) && !va(u) ? j.value = p.value = Xt(u) : (j.value = p.value = u, lt(j)), t.emit("modelUpdated");
15481
+ t.type !== "input" && !At(u) && !ya(u) ? j.value = p.value = Xt(u) : (j.value = p.value = u, lt(j)), t.emit("modelUpdated");
15519
15482
  }), t.on("commit", ({ payload: u }) => {
15520
15483
  var v;
15521
15484
  if ((!y.state.dirty || y.dirtyBehavior === "compare") && t.isCreated && i)
@@ -15551,16 +15514,16 @@ var bm = (e, t) => {
15551
15514
  }), t.context = y, t.emit("context", t, !1), t.on("destroyed", () => {
15552
15515
  t.context = void 0, t = null;
15553
15516
  });
15554
- }, Di = za;
15517
+ }, Di = Ua;
15555
15518
  }
15556
- }), wm = {};
15557
- Cm(wm, {
15558
- defaultConfig: () => Aa
15519
+ }), vm = {};
15520
+ ym(vm, {
15521
+ defaultConfig: () => ha
15559
15522
  });
15560
- var Aa, km = ki({
15523
+ var ha, Cm = ki({
15561
15524
  "packages/vue/src/defaultConfig.ts"() {
15562
- Bi(), Aa = (e = {}) => {
15563
- fm();
15525
+ Bi(), ha = (e = {}) => {
15526
+ hm();
15564
15527
  const {
15565
15528
  rules: t = {},
15566
15529
  locales: a = {},
@@ -15572,12 +15535,12 @@ var Aa, km = ki({
15572
15535
  iconLoader: m = void 0,
15573
15536
  icons: b = {},
15574
15537
  ...A
15575
- } = e, B = $u({
15576
- ..._u,
15538
+ } = e, B = Ju({
15539
+ ...Zu,
15577
15540
  ...t || {}
15578
- }), I = Ad(
15579
- we({ en: hd, ...a || {} }, i)
15580
- ), D = fd(om, n), T = cm(s, b, l, m);
15541
+ }), I = pd(
15542
+ we({ en: gd, ...a || {} }, i)
15543
+ ), D = hd(rm, n), T = om(s, b, l, m);
15581
15544
  return we(
15582
15545
  {
15583
15546
  plugins: [D, T, Di, I, B],
@@ -15588,30 +15551,30 @@ var Aa, km = ki({
15588
15551
  );
15589
15552
  };
15590
15553
  }
15591
- }), Dm = typeof window > "u", Et = /* @__PURE__ */ new Map();
15592
- function Bm(e, t) {
15554
+ }), wm = typeof window > "u", Et = /* @__PURE__ */ new Map();
15555
+ function km(e, t) {
15593
15556
  var a;
15594
- !Dm || !e || (Et.has(e) || Et.set(e, /* @__PURE__ */ new Set()), (a = Et.get(e)) == null || a.add(t));
15557
+ !wm || !e || (Et.has(e) || Et.set(e, /* @__PURE__ */ new Set()), (a = Et.get(e)) == null || a.add(t));
15595
15558
  }
15596
- var Ti = typeof window > "u", et = {}, Ye = {}, K, ye = /* @__PURE__ */ new WeakMap(), Tm = "__raw__", Mm = /[a-zA-Z0-9\-][cC]lass$/;
15597
- function Pm(e, t) {
15559
+ var Ti = typeof window > "u", et = {}, Ye = {}, K, ye = /* @__PURE__ */ new WeakMap(), Dm = "__raw__", Bm = /[a-zA-Z0-9\-][cC]lass$/;
15560
+ function Tm(e, t) {
15598
15561
  const a = z(null);
15599
15562
  if (e === "get") {
15600
15563
  const i = {};
15601
- return a.value = Lm.bind(null, i), a;
15564
+ return a.value = Mm.bind(null, i), a;
15602
15565
  }
15603
15566
  const n = e.split(".");
15604
15567
  return pe(() => {
15605
- a.value = fa(
15568
+ a.value = Aa(
15606
15569
  At(t) ? t.value : t,
15607
15570
  n
15608
15571
  );
15609
15572
  }), a;
15610
15573
  }
15611
- function fa(e, t) {
15574
+ function Aa(e, t) {
15612
15575
  if (Array.isArray(e)) {
15613
15576
  for (const i of e) {
15614
- const r = i !== !1 && fa(i, t);
15577
+ const r = i !== !1 && Aa(i, t);
15615
15578
  if (r !== void 0)
15616
15579
  return r;
15617
15580
  }
@@ -15633,19 +15596,19 @@ function fa(e, t) {
15633
15596
  }
15634
15597
  return a;
15635
15598
  }
15636
- function Lm(e, t) {
15599
+ function Mm(e, t) {
15637
15600
  if (typeof t != "string")
15638
15601
  return xe(650);
15639
15602
  if (t in e || (e[t] = z(void 0)), e[t].value === void 0) {
15640
15603
  e[t].value = null;
15641
15604
  const a = nt(t);
15642
- a && (e[t].value = a.context), Il(t, ({ payload: n }) => {
15605
+ a && (e[t].value = a.context), Ol(t, ({ payload: n }) => {
15643
15606
  e[t].value = it(n) ? n.context : n;
15644
15607
  });
15645
15608
  }
15646
15609
  return e[t].value;
15647
15610
  }
15648
- function Ka(e, t, a) {
15611
+ function za(e, t, a) {
15649
15612
  function n(D, T) {
15650
15613
  const h = B(ce(T.if), { if: !0 }), C = b(D, T.then), w = T.else ? b(D, T.else) : null;
15651
15614
  return [h, C, w];
@@ -15674,7 +15637,7 @@ function Ka(e, t, a) {
15674
15637
  const M = D[S];
15675
15638
  let j;
15676
15639
  const p = typeof M == "string";
15677
- S.startsWith(Tm) ? (S = S.substring(7), j = () => M) : p && M.startsWith("$") && M.length > 1 && !(M.startsWith("$reset") && Mm.test(S)) ? j = B(ce(M)) : typeof M == "object" && Ve(M) ? j = i(M, void 0) : typeof M == "object" && He(M) ? j = r(M) : j = () => M, P.push((y) => {
15640
+ S.startsWith(Dm) ? (S = S.substring(7), j = () => M) : p && M.startsWith("$") && M.length > 1 && !(M.startsWith("$reset") && Bm.test(S)) ? j = B(ce(M)) : typeof M == "object" && Ve(M) ? j = i(M, void 0) : typeof M == "object" && He(M) ? j = r(M) : j = () => M, P.push((y) => {
15678
15641
  y[S] = j();
15679
15642
  });
15680
15643
  }
@@ -15686,7 +15649,7 @@ function Ka(e, t, a) {
15686
15649
  }
15687
15650
  function s(D, T) {
15688
15651
  let h = null, C = () => null, w = !1, P = null, S = null, M = null, j = !1;
15689
- const p = Sc(T);
15652
+ const p = Lc(T);
15690
15653
  if (Zt(p) ? (h = p.$el, C = p.$el !== "text" ? r(p.attrs, p.bind) : () => null) : Jt(p) ? (typeof p.$cmp == "string" ? G(D, p.$cmp) ? h = D[p.$cmp] : (h = p.$cmp, j = !0) : h = p.$cmp, C = r(p.props, p.bind)) : Ve(p) && ([w, P, S] = n(D, p)), !Ve(p) && "if" in p ? w = B(ce(p.if)) : !Ve(p) && h === null && (w = () => !0), "children" in p && p.children)
15691
15654
  if (typeof p.children == "string")
15692
15655
  if (p.children.startsWith("$slots."))
@@ -15811,9 +15774,9 @@ function Ka(e, t, a) {
15811
15774
  function Mi(e, t) {
15812
15775
  const a = ye.get(K) || [];
15813
15776
  let n;
15814
- return a.length && (n = fa(a, e.split("."))), n === void 0 ? t : n;
15777
+ return a.length && (n = Aa(a, e.split("."))), n === void 0 ? t : n;
15815
15778
  }
15816
- function xm(e, t) {
15779
+ function Pm(e, t) {
15817
15780
  return new Proxy(e, {
15818
15781
  get(...a) {
15819
15782
  let n;
@@ -15826,7 +15789,7 @@ function xm(e, t) {
15826
15789
  }
15827
15790
  });
15828
15791
  }
15829
- function Za(e, t, a) {
15792
+ function Ka(e, t, a) {
15830
15793
  return e(
15831
15794
  (n, i = {}) => n.reduce((r, s) => {
15832
15795
  if (s.startsWith("slots.")) {
@@ -15834,11 +15797,11 @@ function Za(e, t, a) {
15834
15797
  if (i.if)
15835
15798
  r[s] = m;
15836
15799
  else if (t.slots) {
15837
- const b = xm(t, a);
15800
+ const b = Pm(t, a);
15838
15801
  r[s] = () => m() ? t.slots[l](b) : null;
15839
15802
  }
15840
15803
  } else {
15841
- const l = Pm(s, t);
15804
+ const l = Tm(s, t);
15842
15805
  r[s] = () => Mi(s, l.value);
15843
15806
  }
15844
15807
  return r;
@@ -15846,7 +15809,7 @@ function Za(e, t, a) {
15846
15809
  a
15847
15810
  );
15848
15811
  }
15849
- function Ja(e, t, a) {
15812
+ function Za(e, t, a) {
15850
15813
  if (t ?? (t = Pi(e)), Ye[t]--, Ye[t] === 0) {
15851
15814
  delete Ye[t];
15852
15815
  const [, n] = et[t];
@@ -15884,28 +15847,28 @@ var Li = /* @__PURE__ */ Pt({
15884
15847
  let n = {};
15885
15848
  ye.set(n, []);
15886
15849
  const i = { FormKit: Lt(Si), ...e.library };
15887
- let r = Ka(i, e.schema, e.memoKey), s, l;
15850
+ let r = za(i, e.schema, e.memoKey), s, l;
15888
15851
  Ti || _e(
15889
15852
  () => e.schema,
15890
15853
  (A, B) => {
15891
15854
  var D;
15892
15855
  const I = n;
15893
- n = {}, ye.set(n, []), r = Ka(i, e.schema, e.memoKey), s = Za(r, l, n), A === B && ((D = a == null ? void 0 : a.proxy) == null ? void 0 : D.$forceUpdate).call(D), Ja(e.schema, e.memoKey, I);
15856
+ n = {}, ye.set(n, []), r = za(i, e.schema, e.memoKey), s = Ka(r, l, n), A === B && ((D = a == null ? void 0 : a.proxy) == null ? void 0 : D.$forceUpdate).call(D), Za(e.schema, e.memoKey, I);
15894
15857
  },
15895
15858
  { deep: !0 }
15896
15859
  ), pe(() => {
15897
15860
  l = Object.assign(Ke(e.data ?? {}), {
15898
15861
  slots: t.slots
15899
- }), t.slots, s = Za(r, l, n);
15862
+ }), t.slots, s = Ka(r, l, n);
15900
15863
  });
15901
15864
  function m() {
15902
- Ja(e.schema, e.memoKey, n), l && (l.node && l.node.destroy(), l.slots = null, l = null), s = null;
15865
+ Za(e.schema, e.memoKey, n), l && (l.node && l.node.destroy(), l.slots = null, l = null), s = null;
15903
15866
  }
15904
- return tn(() => t.emit("mounted")), Hi(m), Bm((b = Ht()) == null ? void 0 : b.appContext.app, m), () => s ? s() : null;
15867
+ return en(() => t.emit("mounted")), Hi(m), km((b = Ht()) == null ? void 0 : b.appContext.app, m), () => s ? s() : null;
15905
15868
  }
15906
- }), Sm = Li, jm = typeof window > "u", _a = Symbol("FormKitParent"), Fm = Symbol("FormKitComponentCallback");
15907
- function Vm(e, t) {
15908
- const a = Nm(e, t);
15869
+ }), Lm = Li, xm = typeof window > "u", Ja = Symbol("FormKitParent"), Sm = Symbol("FormKitComponentCallback");
15870
+ function jm(e, t) {
15871
+ const a = Hm(e, t);
15909
15872
  if (a.props.definition || te(600, a), a.props.definition.component)
15910
15873
  return () => {
15911
15874
  var b;
@@ -15924,7 +15887,7 @@ function Vm(e, t) {
15924
15887
  const b = (B = (A = a.props) == null ? void 0 : A.definition) == null ? void 0 : B.schema;
15925
15888
  b || te(601, a), typeof b == "function" ? (n.value = b({ ...e.sectionsSchema || {} }), (i && e.sectionsSchema || "memoKey" in b && typeof b.memoKey == "string") && (i = (i ?? (b == null ? void 0 : b.memoKey)) + JSON.stringify(e.sectionsSchema))) : n.value = b;
15926
15889
  };
15927
- r(), jm || a.on("schema", () => {
15890
+ r(), xm || a.on("schema", () => {
15928
15891
  i += "♻️", r();
15929
15892
  }), t.emit("node", a);
15930
15893
  const s = a.props.definition.library, l = {
@@ -15948,26 +15911,26 @@ function Vm(e, t) {
15948
15911
  );
15949
15912
  }
15950
15913
  var xi = /* @__PURE__ */ Pt(
15951
- Vm,
15914
+ jm,
15952
15915
  {
15953
- props: bd,
15916
+ props: Ad,
15954
15917
  inheritAttrs: !1
15955
15918
  }
15956
- ), Si = xi, Om = Symbol();
15957
- function Gm(e, t) {
15958
- return e.component(t.alias || "FormKit", Si).component(t.schemaAlias || "FormKitSchema", Sm), {
15919
+ ), Si = xi, Fm = Symbol();
15920
+ function Vm(e, t) {
15921
+ return e.component(t.alias || "FormKit", Si).component(t.schemaAlias || "FormKitSchema", Lm), {
15959
15922
  get: nt,
15960
15923
  setLocale: (a) => {
15961
15924
  var n;
15962
15925
  (n = t.config) != null && n.rootConfig && (t.config.rootConfig.locale = a);
15963
15926
  },
15964
- clearErrors: Vc,
15965
- setErrors: Fc,
15927
+ clearErrors: jc,
15928
+ setErrors: Sc,
15966
15929
  submit: Hn,
15967
15930
  reset: Rn
15968
15931
  };
15969
15932
  }
15970
- var ji = Symbol.for("FormKitOptions"), Im = Symbol.for("FormKitConfig"), Em = {
15933
+ var ji = Symbol.for("FormKitOptions"), Om = Symbol.for("FormKitConfig"), Gm = {
15971
15934
  install(e, t) {
15972
15935
  const a = Object.assign(
15973
15936
  {
@@ -15975,10 +15938,10 @@ var ji = Symbol.for("FormKitOptions"), Im = Symbol.for("FormKitConfig"), Em = {
15975
15938
  schemaAlias: "FormKitSchema"
15976
15939
  },
15977
15940
  typeof t == "function" ? t() : t
15978
- ), n = El(a.config || {});
15979
- a.config = { rootConfig: n }, e.config.globalProperties.$formkit = Gm(e, a), e.provide(ji, a), e.provide(Im, n), typeof window < "u" && (globalThis.__FORMKIT_CONFIGS__ = (globalThis.__FORMKIT_CONFIGS__ || []).concat([n]));
15941
+ ), n = Gl(a.config || {});
15942
+ a.config = { rootConfig: n }, e.config.globalProperties.$formkit = Vm(e, a), e.provide(ji, a), e.provide(Om, n), typeof window < "u" && (globalThis.__FORMKIT_CONFIGS__ = (globalThis.__FORMKIT_CONFIGS__ || []).concat([n]));
15980
15943
  }
15981
- }, Ym = typeof window < "u", Yt = [
15944
+ }, Im = typeof window < "u", Yt = [
15982
15945
  // Boolean props
15983
15946
  "ignore",
15984
15947
  "disabled",
@@ -15992,15 +15955,15 @@ var ji = Symbol.for("FormKitOptions"), Im = Symbol.for("FormKitConfig"), Em = {
15992
15955
  "prefixIcon",
15993
15956
  "suffixIcon",
15994
15957
  /^[a-zA-Z-]+(?:-icon|Icon)$/
15995
- ], Hm = ["disabled", "ignore", "preserve"];
15996
- function $a(e, t) {
15958
+ ], Em = ["disabled", "ignore", "preserve"];
15959
+ function _a(e, t) {
15997
15960
  t.classes && Object.keys(t.classes).forEach(
15998
15961
  (a) => {
15999
15962
  typeof a == "string" && (e.props[`_${a}Class`] = t.classes[a], $e(t.classes[a]) && a === "inner" && Object.values(t.classes[a]));
16000
15963
  }
16001
15964
  );
16002
15965
  }
16003
- function Rm(e) {
15966
+ function Ym(e) {
16004
15967
  return e ? ["Submit", "SubmitRaw", "SubmitInvalid"].reduce(
16005
15968
  (a, n) => {
16006
15969
  const i = `on${n}`;
@@ -16009,13 +15972,13 @@ function Rm(e) {
16009
15972
  {}
16010
15973
  ) : {};
16011
15974
  }
16012
- function Nm(e, t, a = {}) {
16013
- const n = Object.assign({}, ot(ji) || {}, a), i = ot(Om, z(Ym ? document : void 0)), r = ot(Fm, () => {
16014
- }), s = Ht(), l = Rm(s == null ? void 0 : s.vnode.props), m = ["modelValue", "model-value"].some(
15975
+ function Hm(e, t, a = {}) {
15976
+ const n = Object.assign({}, ot(ji) || {}, a), i = ot(Fm, z(Im ? document : void 0)), r = ot(Sm, () => {
15977
+ }), s = Ht(), l = Ym(s == null ? void 0 : s.vnode.props), m = ["modelValue", "model-value"].some(
16015
15978
  (p) => p in ((s == null ? void 0 : s.vnode.props) ?? {})
16016
15979
  );
16017
15980
  let b = !1;
16018
- tn(() => {
15981
+ en(() => {
16019
15982
  b = !0;
16020
15983
  });
16021
15984
  const A = e.modelValue !== void 0 ? e.modelValue : re(t.attrs.value);
@@ -16026,15 +15989,15 @@ function Nm(e, t, a = {}) {
16026
15989
  type: e.type ?? "text",
16027
15990
  __root: i.value,
16028
15991
  __slots: t.slots
16029
- }, y = Ba(je(t.attrs), Yt);
15992
+ }, y = Da(je(t.attrs), Yt);
16030
15993
  y.key || (y.key = Xe()), p.attrs = y;
16031
- const O = Ta(je(t.attrs), Yt);
15994
+ const O = Ba(je(t.attrs), Yt);
16032
15995
  for (const g in O)
16033
- Hm.includes(g) && O[g] === "" && (O[g] = !0), p[Ge(g)] = O[g];
15996
+ Em.includes(g) && O[g] === "" && (O[g] = !0), p[Ge(g)] = O[g];
16034
15997
  const c = { props: {} };
16035
- return $a(c, e), Object.assign(p, c.props), typeof p.type != "string" && (p.definition = p.type, delete p.type), p;
15998
+ return _a(c, e), Object.assign(p, c.props), typeof p.type != "string" && (p.definition = p.type, delete p.type), p;
16036
15999
  }
16037
- const I = B(), D = I.ignore ? null : e.parent || ot(_a, null), T = Lc(
16000
+ const I = B(), D = I.ignore ? null : e.parent || ot(Ja, null), T = Mc(
16038
16001
  we(
16039
16002
  n || {},
16040
16003
  {
@@ -16066,7 +16029,7 @@ function Nm(e, t, a = {}) {
16066
16029
  const C = be(
16067
16030
  () => Yt.concat([...h.value]).reduce((p, y) => (typeof y == "string" ? (p.push(Ge(y)), p.push(On(y))) : p.push(y), p), [])
16068
16031
  );
16069
- pe(() => $a(T, e));
16032
+ pe(() => _a(T, e));
16070
16033
  const w = je(e);
16071
16034
  for (const p in w)
16072
16035
  _e(
@@ -16080,7 +16043,7 @@ function Nm(e, t, a = {}) {
16080
16043
  });
16081
16044
  const P = /* @__PURE__ */ new Set(), S = je(t.attrs);
16082
16045
  pe(() => {
16083
- M(Ta(S, C.value));
16046
+ M(Ba(S, C.value));
16084
16047
  });
16085
16048
  function M(p) {
16086
16049
  P.forEach((y) => {
@@ -16099,12 +16062,12 @@ function Nm(e, t, a = {}) {
16099
16062
  }
16100
16063
  }
16101
16064
  if (pe(() => {
16102
- const p = Ba(je(t.attrs), C.value);
16103
- "multiple" in p && (p.multiple = ue(p.multiple)), typeof p.onBlur == "function" && (p.onBlur = fl(p.onBlur)), T.props.attrs = Object.assign({}, T.props.attrs || {}, p);
16065
+ const p = Da(je(t.attrs), C.value);
16066
+ "multiple" in p && (p.multiple = ue(p.multiple)), typeof p.onBlur == "function" && (p.onBlur = hl(p.onBlur)), T.props.attrs = Object.assign({}, T.props.attrs || {}, p);
16104
16067
  }), pe(() => {
16105
16068
  const p = (e.errors ?? []).map(
16106
16069
  (y) => /* @__PURE__ */ ae({
16107
- key: ra(y),
16070
+ key: ia(y),
16108
16071
  type: "error",
16109
16072
  value: y,
16110
16073
  meta: { source: "prop" }
@@ -16136,7 +16099,7 @@ function Nm(e, t, a = {}) {
16136
16099
  );
16137
16100
  });
16138
16101
  }
16139
- pe(() => Object.assign(T.config, e.config)), T.type !== "input" && Ri(_a, T);
16102
+ pe(() => Object.assign(T.config, e.config)), T.type !== "input" && Ri(Ja, T);
16140
16103
  let j;
16141
16104
  return T.on("modelUpdated", () => {
16142
16105
  var p, y;
@@ -16149,8 +16112,8 @@ function Nm(e, t, a = {}) {
16149
16112
  { deep: !0 }
16150
16113
  ), T.value !== A && T.emit("modelUpdated")), qi(() => T.destroy()), T;
16151
16114
  }
16152
- var qm = 1;
16153
- function Qm(e) {
16115
+ var Rm = 1;
16116
+ function Nm(e) {
16154
16117
  return typeof e == "function" && e.length === 2 || typeof e == "object" && !Array.isArray(e) && !("$el" in e) && !("$cmp" in e) && !("if" in e);
16155
16118
  }
16156
16119
  function ne(e, t = {}, a = {}) {
@@ -16159,8 +16122,8 @@ function ne(e, t = {}, a = {}) {
16159
16122
  ...t
16160
16123
  };
16161
16124
  let i;
16162
- if (Qm(e)) {
16163
- const r = `SchemaComponent${qm++}`;
16125
+ if (Nm(e)) {
16126
+ const r = `SchemaComponent${Rm++}`;
16164
16127
  i = /* @__PURE__ */ V("input", () => ({
16165
16128
  $cmp: r,
16166
16129
  props: {
@@ -16168,12 +16131,12 @@ function ne(e, t = {}, a = {}) {
16168
16131
  }
16169
16132
  })), n.library = { [r]: Lt(e) };
16170
16133
  } else typeof e == "function" ? i = e : i = /* @__PURE__ */ V("input", () => re(e));
16171
- return n.schema = /* @__PURE__ */ Zd(i || "Schema undefined", a), n.schemaMemoKey || (n.schemaMemoKey = `${Math.random()}`), n;
16134
+ return n.schema = /* @__PURE__ */ zd(i || "Schema undefined", a), n.schemaMemoKey || (n.schemaMemoKey = `${Math.random()}`), n;
16172
16135
  }
16173
- var Xm = /* @__PURE__ */ V("messages", () => ({
16136
+ var qm = /* @__PURE__ */ V("messages", () => ({
16174
16137
  $el: "ul",
16175
16138
  if: "$fns.length($messages)"
16176
- })), Wm = /* @__PURE__ */ V("message", () => ({
16139
+ })), Qm = /* @__PURE__ */ V("message", () => ({
16177
16140
  $el: "li",
16178
16141
  for: ["message", "$messages"],
16179
16142
  attrs: {
@@ -16182,31 +16145,31 @@ var Xm = /* @__PURE__ */ V("messages", () => ({
16182
16145
  "data-message-type": "$message.type"
16183
16146
  }
16184
16147
  }));
16185
- Xm(Wm("$message.value"));
16186
- var Um = /* @__PURE__ */ V("summary", () => ({
16148
+ qm(Qm("$message.value"));
16149
+ var Xm = /* @__PURE__ */ V("summary", () => ({
16187
16150
  $el: "div",
16188
16151
  attrs: {
16189
16152
  "aria-live": "polite"
16190
16153
  }
16191
- })), zm = /* @__PURE__ */ V("summaryInner", () => ({
16154
+ })), Wm = /* @__PURE__ */ V("summaryInner", () => ({
16192
16155
  $el: "div",
16193
16156
  if: "$summaries.length && $showSummaries"
16194
- })), Km = /* @__PURE__ */ V("messages", () => ({
16157
+ })), Um = /* @__PURE__ */ V("messages", () => ({
16195
16158
  $el: "ul",
16196
16159
  if: "$summaries.length && $showSummaries"
16197
- })), Zm = /* @__PURE__ */ V("message", () => ({
16160
+ })), zm = /* @__PURE__ */ V("message", () => ({
16198
16161
  $el: "li",
16199
16162
  for: ["summary", "$summaries"],
16200
16163
  attrs: {
16201
16164
  key: "$summary.key",
16202
16165
  "data-message-type": "$summary.type"
16203
16166
  }
16204
- })), Jm = /* @__PURE__ */ V("summaryHeader", () => ({
16167
+ })), Km = /* @__PURE__ */ V("summaryHeader", () => ({
16205
16168
  $el: "h2",
16206
16169
  attrs: {
16207
16170
  id: "$id"
16208
16171
  }
16209
- })), _m = /* @__PURE__ */ V("messageLink", () => ({
16172
+ })), Zm = /* @__PURE__ */ V("messageLink", () => ({
16210
16173
  $el: "a",
16211
16174
  attrs: {
16212
16175
  id: "$summary.key",
@@ -16214,15 +16177,15 @@ var Um = /* @__PURE__ */ V("summary", () => ({
16214
16177
  onClick: "$jumpLink"
16215
16178
  }
16216
16179
  }));
16217
- Um(
16218
- zm(
16219
- Jm("$summaryHeader"),
16220
- Km(Zm(_m("$summary.message")))
16180
+ Xm(
16181
+ Wm(
16182
+ Km("$summaryHeader"),
16183
+ Um(zm(Zm("$summary.message")))
16221
16184
  )
16222
16185
  );
16223
- km();
16186
+ Cm();
16224
16187
  Bi();
16225
- function $m(e) {
16188
+ function Jm(e) {
16226
16189
  const { t } = an();
16227
16190
  ["label"].forEach((n) => {
16228
16191
  e.hook.input((i, r) => {
@@ -16231,11 +16194,11 @@ function $m(e) {
16231
16194
  });
16232
16195
  });
16233
16196
  }
16234
- const sg = (e) => {
16197
+ const ig = (e) => {
16235
16198
  e.use(
16236
- Em,
16237
- Aa({
16238
- plugins: [$m],
16199
+ Gm,
16200
+ ha({
16201
+ plugins: [Jm],
16239
16202
  inputs: {
16240
16203
  BaTextField: ne(
16241
16204
  W(
@@ -16264,7 +16227,7 @@ const sg = (e) => {
16264
16227
  ),
16265
16228
  BaListRepeater: ne(
16266
16229
  W(
16267
- () => import("./ListRepeater-CNLIHsUG.js")
16230
+ () => import("./ListRepeater-D9IIhvhq.js")
16268
16231
  )
16269
16232
  ),
16270
16233
  BaTextStyleList: ne(
@@ -16284,13 +16247,13 @@ const sg = (e) => {
16284
16247
  ),
16285
16248
  BaImageUpload: ne(
16286
16249
  W(
16287
- () => import("./ImageUpload-DbnCBBrk.js")
16250
+ () => import("./ImageUpload-DHEVQGJp.js")
16288
16251
  ),
16289
16252
  { props: ["ignoreUpdate"] }
16290
16253
  ),
16291
16254
  BaLinkButton: ne(
16292
16255
  W(
16293
- () => import("./LinkButton-De-YNclu.js")
16256
+ () => import("./LinkButton-DNXBKGCn.js")
16294
16257
  )
16295
16258
  ),
16296
16259
  BaSwitch: ne(
@@ -16305,7 +16268,7 @@ const sg = (e) => {
16305
16268
  }
16306
16269
  })
16307
16270
  );
16308
- }, og = {
16271
+ }, rg = {
16309
16272
  "en-US": { ...Zi, ...Fr },
16310
16273
  "zh-CN": { ...$i, ...Yr },
16311
16274
  "zh-TW": { ...tr, ...Xr },
@@ -16313,23 +16276,22 @@ const sg = (e) => {
16313
16276
  "ko-KR": { ...dr, ...ns },
16314
16277
  "vi-VN": { ...yr, ...cs },
16315
16278
  "ms-MY": { ...Mr, ...hs }
16316
- }, lg = W(() => import("./App-BRWdYrrB.js"));
16279
+ }, sg = W(() => import("./App-CLNf8LIw.js"));
16317
16280
  export {
16318
16281
  Si as F,
16319
16282
  Li as a,
16320
- hs as b,
16283
+ Yr as b,
16321
16284
  As as c,
16322
- Yr as d,
16285
+ sg as d,
16323
16286
  Fr as e,
16324
- lg as f,
16287
+ ig as f,
16325
16288
  fs as g,
16326
- sg as h,
16327
- og as i,
16289
+ rg as i,
16328
16290
  ns as k,
16329
- Zo as m,
16330
- rg as r,
16291
+ hs as m,
16292
+ ng as r,
16331
16293
  Jr as t,
16332
- ig as u,
16294
+ ag as u,
16333
16295
  cs as v,
16334
16296
  Xr as z
16335
16297
  };