bhl-forms 0.2.9 → 0.3.1

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 (69) hide show
  1. package/dist/bhl-forms.es.js +1013 -590
  2. package/dist/bhl-forms.iife.js +7 -7
  3. package/dist/bhl-forms.modern.es.js +1710 -1221
  4. package/dist/bhl-forms.modern.iife.js +10 -10
  5. package/dist/bhl-forms.modern.umd.js +10 -10
  6. package/dist/bhl-forms.umd.js +7 -7
  7. package/dist/forms/accidentsAndInjuries.es.js +47 -47
  8. package/dist/forms/accidentsAndInjuries.iife.js +1 -1
  9. package/dist/forms/accidentsAndInjuries.json +1 -1
  10. package/dist/forms/appraisals.es.js +2 -2
  11. package/dist/forms/appraisals.iife.js +1 -1
  12. package/dist/forms/childAndFamily.es.js +48 -48
  13. package/dist/forms/childAndFamily.iife.js +1 -1
  14. package/dist/forms/childAndFamily.json +1 -1
  15. package/dist/forms/civilLawsuit.es.js +49 -48
  16. package/dist/forms/civilLawsuit.iife.js +1 -1
  17. package/dist/forms/civilLawsuit.json +1 -1
  18. package/dist/forms/coins.es.js +2 -2
  19. package/dist/forms/coins.iife.js +1 -1
  20. package/dist/forms/contracts.es.js +13 -13
  21. package/dist/forms/contracts.iife.js +1 -1
  22. package/dist/forms/contracts.json +1 -1
  23. package/dist/forms/criminal.es.js +169 -169
  24. package/dist/forms/criminal.iife.js +1 -1
  25. package/dist/forms/criminal.json +1 -1
  26. package/dist/forms/employmentAndWorkplace.es.js +41 -41
  27. package/dist/forms/employmentAndWorkplace.iife.js +1 -1
  28. package/dist/forms/employmentAndWorkplace.json +1 -1
  29. package/dist/forms/generalLegal.es.js +310 -176
  30. package/dist/forms/generalLegal.iife.js +1 -1
  31. package/dist/forms/generalLegal.json +1 -1
  32. package/dist/forms/generalLegalPopUnder.es.js +177 -176
  33. package/dist/forms/generalLegalPopUnder.iife.js +1 -1
  34. package/dist/forms/generalLegalPopUnder.json +1 -1
  35. package/dist/forms/generalLegalPopUnderTF.es.js +169 -169
  36. package/dist/forms/generalLegalPopUnderTF.iife.js +1 -1
  37. package/dist/forms/generalLegalPopUnderTF.json +1 -1
  38. package/dist/forms/generalLegalThankYou.es.js +169 -169
  39. package/dist/forms/generalLegalThankYou.iife.js +1 -1
  40. package/dist/forms/generalLegalThankYou.json +1 -1
  41. package/dist/forms/harassmentAndDiscrimination.es.js +13 -13
  42. package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
  43. package/dist/forms/harassmentAndDiscrimination.json +1 -1
  44. package/dist/forms/malpractice.es.js +19 -19
  45. package/dist/forms/malpractice.iife.js +1 -1
  46. package/dist/forms/malpractice.json +1 -1
  47. package/dist/forms/mechanics.es.js +2 -2
  48. package/dist/forms/mechanics.iife.js +1 -1
  49. package/dist/forms/realEstate.es.js +169 -169
  50. package/dist/forms/realEstate.iife.js +1 -1
  51. package/dist/forms/realEstate.json +1 -1
  52. package/dist/forms/repossession.es.js +15 -15
  53. package/dist/forms/repossession.iife.js +1 -1
  54. package/dist/forms/repossession.json +1 -1
  55. package/dist/forms/ssdi.es.js +7 -7
  56. package/dist/forms/ssdi.iife.js +1 -1
  57. package/dist/forms/ssdi.json +1 -1
  58. package/dist/forms/testForm.es.js +3 -3
  59. package/dist/forms/testForm.iife.js +1 -1
  60. package/dist/forms/testForm.json +1 -1
  61. package/dist/forms/testRedirects.es.js +2 -2
  62. package/dist/forms/testRedirects.iife.js +1 -1
  63. package/dist/forms/vets.es.js +2 -2
  64. package/dist/forms/vets.iife.js +1 -1
  65. package/dist/forms/willsAndTrusts.es.js +41 -41
  66. package/dist/forms/willsAndTrusts.iife.js +1 -1
  67. package/dist/forms/willsAndTrusts.json +1 -1
  68. package/dist/main.css +1 -1
  69. package/package.json +4 -4
@@ -52,16 +52,16 @@ var __async = (__this, __arguments, generator) => {
52
52
  function makeMap(str, expectsLowerCase) {
53
53
  const map = /* @__PURE__ */ Object.create(null);
54
54
  const list2 = str.split(",");
55
- for (let i3 = 0; i3 < list2.length; i3++) {
56
- map[list2[i3]] = true;
55
+ for (let i2 = 0; i2 < list2.length; i2++) {
56
+ map[list2[i2]] = true;
57
57
  }
58
58
  return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
59
59
  }
60
60
  function normalizeStyle(value) {
61
61
  if (isArray(value)) {
62
62
  const res = {};
63
- for (let i3 = 0; i3 < value.length; i3++) {
64
- const item = value[i3];
63
+ for (let i2 = 0; i2 < value.length; i2++) {
64
+ const item = value[i2];
65
65
  const normalized = isString(item) ? parseStringStyle(item) : normalizeStyle(item);
66
66
  if (normalized) {
67
67
  for (const key in normalized) {
@@ -72,7 +72,7 @@ function normalizeStyle(value) {
72
72
  return res;
73
73
  } else if (isString(value)) {
74
74
  return value;
75
- } else if (isObject$1(value)) {
75
+ } else if (isObject$2(value)) {
76
76
  return value;
77
77
  }
78
78
  }
@@ -94,13 +94,13 @@ function normalizeClass(value) {
94
94
  if (isString(value)) {
95
95
  res = value;
96
96
  } else if (isArray(value)) {
97
- for (let i3 = 0; i3 < value.length; i3++) {
98
- const normalized = normalizeClass(value[i3]);
97
+ for (let i2 = 0; i2 < value.length; i2++) {
98
+ const normalized = normalizeClass(value[i2]);
99
99
  if (normalized) {
100
100
  res += normalized + " ";
101
101
  }
102
102
  }
103
- } else if (isObject$1(value)) {
103
+ } else if (isObject$2(value)) {
104
104
  for (const name in value) {
105
105
  if (value[name]) {
106
106
  res += name + " ";
@@ -115,7 +115,7 @@ function includeBooleanAttr(value) {
115
115
  return !!value || value === "";
116
116
  }
117
117
  const toDisplayString = (val) => {
118
- return isString(val) ? val : val == null ? "" : isArray(val) || isObject$1(val) && (val.toString === objectToString || !isFunction(val.toString)) ? JSON.stringify(val, replacer, 2) : String(val);
118
+ return isString(val) ? val : val == null ? "" : isArray(val) || isObject$2(val) && (val.toString === objectToString || !isFunction(val.toString)) ? JSON.stringify(val, replacer, 2) : String(val);
119
119
  };
120
120
  const replacer = (_key, val) => {
121
121
  if (val && val.__v_isRef) {
@@ -131,7 +131,7 @@ const replacer = (_key, val) => {
131
131
  return {
132
132
  [`Set(${val.size})`]: [...val.values()]
133
133
  };
134
- } else if (isObject$1(val) && !isArray(val) && !isPlainObject(val)) {
134
+ } else if (isObject$2(val) && !isArray(val) && !isPlainObject(val)) {
135
135
  return String(val);
136
136
  }
137
137
  return val;
@@ -144,11 +144,11 @@ const NO = () => false;
144
144
  const onRE = /^on[^a-z]/;
145
145
  const isOn = (key) => onRE.test(key);
146
146
  const isModelListener = (key) => key.startsWith("onUpdate:");
147
- const extend$1 = Object.assign;
147
+ const extend$3 = Object.assign;
148
148
  const remove = (arr, el) => {
149
- const i3 = arr.indexOf(el);
150
- if (i3 > -1) {
151
- arr.splice(i3, 1);
149
+ const i2 = arr.indexOf(el);
150
+ if (i2 > -1) {
151
+ arr.splice(i2, 1);
152
152
  }
153
153
  };
154
154
  const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
@@ -159,9 +159,9 @@ const isSet = (val) => toTypeString(val) === "[object Set]";
159
159
  const isFunction = (val) => typeof val === "function";
160
160
  const isString = (val) => typeof val === "string";
161
161
  const isSymbol = (val) => typeof val === "symbol";
162
- const isObject$1 = (val) => val !== null && typeof val === "object";
162
+ const isObject$2 = (val) => val !== null && typeof val === "object";
163
163
  const isPromise = (val) => {
164
- return isObject$1(val) && isFunction(val.then) && isFunction(val.catch);
164
+ return isObject$2(val) && isFunction(val.then) && isFunction(val.catch);
165
165
  };
166
166
  const objectToString = Object.prototype.toString;
167
167
  const toTypeString = (value) => objectToString.call(value);
@@ -190,8 +190,8 @@ const capitalize = cacheStringFunction((str) => str.charAt(0).toUpperCase() + st
190
190
  const toHandlerKey = cacheStringFunction((str) => str ? `on${capitalize(str)}` : ``);
191
191
  const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
192
192
  const invokeArrayFns = (fns, arg) => {
193
- for (let i3 = 0; i3 < fns.length; i3++) {
194
- fns[i3](arg);
193
+ for (let i2 = 0; i2 < fns.length; i2++) {
194
+ fns[i2](arg);
195
195
  }
196
196
  };
197
197
  const def = (obj, key, value) => {
@@ -243,16 +243,16 @@ class EffectScope {
243
243
  }
244
244
  stop(fromParent) {
245
245
  if (this._active) {
246
- let i3, l;
247
- for (i3 = 0, l = this.effects.length; i3 < l; i3++) {
248
- this.effects[i3].stop();
246
+ let i2, l;
247
+ for (i2 = 0, l = this.effects.length; i2 < l; i2++) {
248
+ this.effects[i2].stop();
249
249
  }
250
- for (i3 = 0, l = this.cleanups.length; i3 < l; i3++) {
251
- this.cleanups[i3]();
250
+ for (i2 = 0, l = this.cleanups.length; i2 < l; i2++) {
251
+ this.cleanups[i2]();
252
252
  }
253
253
  if (this.scopes) {
254
- for (i3 = 0, l = this.scopes.length; i3 < l; i3++) {
255
- this.scopes[i3].stop(true);
254
+ for (i2 = 0, l = this.scopes.length; i2 < l; i2++) {
255
+ this.scopes[i2].stop(true);
256
256
  }
257
257
  }
258
258
  if (!this.detached && this.parent && !fromParent) {
@@ -285,8 +285,8 @@ const wasTracked = (dep) => (dep.w & trackOpBit) > 0;
285
285
  const newTracked = (dep) => (dep.n & trackOpBit) > 0;
286
286
  const initDepMarkers = ({ deps }) => {
287
287
  if (deps.length) {
288
- for (let i3 = 0; i3 < deps.length; i3++) {
289
- deps[i3].w |= trackOpBit;
288
+ for (let i2 = 0; i2 < deps.length; i2++) {
289
+ deps[i2].w |= trackOpBit;
290
290
  }
291
291
  }
292
292
  };
@@ -294,8 +294,8 @@ const finalizeDepMarkers = (effect) => {
294
294
  const { deps } = effect;
295
295
  if (deps.length) {
296
296
  let ptr = 0;
297
- for (let i3 = 0; i3 < deps.length; i3++) {
298
- const dep = deps[i3];
297
+ for (let i2 = 0; i2 < deps.length; i2++) {
298
+ const dep = deps[i2];
299
299
  if (wasTracked(dep) && !newTracked(dep)) {
300
300
  dep.delete(effect);
301
301
  } else {
@@ -374,8 +374,8 @@ class ReactiveEffect {
374
374
  function cleanupEffect(effect) {
375
375
  const { deps } = effect;
376
376
  if (deps.length) {
377
- for (let i3 = 0; i3 < deps.length; i3++) {
378
- deps[i3].delete(effect);
377
+ for (let i2 = 0; i2 < deps.length; i2++) {
378
+ deps[i2].delete(effect);
379
379
  }
380
380
  deps.length = 0;
381
381
  }
@@ -511,7 +511,7 @@ const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`
511
511
  const builtInSymbols = new Set(
512
512
  /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key) => key !== "arguments" && key !== "caller").map((key) => Symbol[key]).filter(isSymbol)
513
513
  );
514
- const get$1$1 = /* @__PURE__ */ createGetter();
514
+ const get$1 = /* @__PURE__ */ createGetter();
515
515
  const shallowGet = /* @__PURE__ */ createGetter(false, true);
516
516
  const readonlyGet = /* @__PURE__ */ createGetter(true);
517
517
  const arrayInstrumentations = /* @__PURE__ */ createArrayInstrumentations();
@@ -520,8 +520,8 @@ function createArrayInstrumentations() {
520
520
  ["includes", "indexOf", "lastIndexOf"].forEach((key) => {
521
521
  instrumentations[key] = function(...args) {
522
522
  const arr = toRaw(this);
523
- for (let i3 = 0, l = this.length; i3 < l; i3++) {
524
- track(arr, "get", i3 + "");
523
+ for (let i2 = 0, l = this.length; i2 < l; i2++) {
524
+ track(arr, "get", i2 + "");
525
525
  }
526
526
  const res = arr[key](...args);
527
527
  if (res === -1 || res === false) {
@@ -579,7 +579,7 @@ function createGetter(isReadonly2 = false, shallow = false) {
579
579
  if (isRef(res)) {
580
580
  return targetIsArray && isIntegerKey(key) ? res : res.value;
581
581
  }
582
- if (isObject$1(res)) {
582
+ if (isObject$2(res)) {
583
583
  return isReadonly2 ? readonly(res) : reactive(res);
584
584
  }
585
585
  return res;
@@ -636,7 +636,7 @@ function ownKeys(target) {
636
636
  return Reflect.ownKeys(target);
637
637
  }
638
638
  const mutableHandlers = {
639
- get: get$1$1,
639
+ get: get$1,
640
640
  set: set$1,
641
641
  deleteProperty,
642
642
  has: has$1,
@@ -651,7 +651,7 @@ const readonlyHandlers = {
651
651
  return true;
652
652
  }
653
653
  };
654
- const shallowReactiveHandlers = /* @__PURE__ */ extend$1({}, mutableHandlers, {
654
+ const shallowReactiveHandlers = /* @__PURE__ */ extend$3({}, mutableHandlers, {
655
655
  get: shallowGet,
656
656
  set: shallowSet
657
657
  });
@@ -920,7 +920,7 @@ function readonly(target) {
920
920
  return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);
921
921
  }
922
922
  function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) {
923
- if (!isObject$1(target)) {
923
+ if (!isObject$2(target)) {
924
924
  return target;
925
925
  }
926
926
  if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) {
@@ -961,8 +961,8 @@ function markRaw(value) {
961
961
  def(value, "__v_skip", true);
962
962
  return value;
963
963
  }
964
- const toReactive = (value) => isObject$1(value) ? reactive(value) : value;
965
- const toReadonly = (value) => isObject$1(value) ? readonly(value) : value;
964
+ const toReactive = (value) => isObject$2(value) ? reactive(value) : value;
965
+ const toReadonly = (value) => isObject$2(value) ? readonly(value) : value;
966
966
  function trackRefValue(ref2) {
967
967
  if (shouldTrack && activeEffect) {
968
968
  ref2 = toRaw(ref2);
@@ -1126,8 +1126,8 @@ function callWithAsyncErrorHandling(fn, instance, type, args) {
1126
1126
  return res;
1127
1127
  }
1128
1128
  const values = [];
1129
- for (let i3 = 0; i3 < fn.length; i3++) {
1130
- values.push(callWithAsyncErrorHandling(fn[i3], instance, type, args));
1129
+ for (let i2 = 0; i2 < fn.length; i2++) {
1130
+ values.push(callWithAsyncErrorHandling(fn[i2], instance, type, args));
1131
1131
  }
1132
1132
  return values;
1133
1133
  }
@@ -1140,8 +1140,8 @@ function handleError(err, instance, type, throwInDev = true) {
1140
1140
  while (cur) {
1141
1141
  const errorCapturedHooks = cur.ec;
1142
1142
  if (errorCapturedHooks) {
1143
- for (let i3 = 0; i3 < errorCapturedHooks.length; i3++) {
1144
- if (errorCapturedHooks[i3](err, exposedInstance, errorInfo) === false) {
1143
+ for (let i2 = 0; i2 < errorCapturedHooks.length; i2++) {
1144
+ if (errorCapturedHooks[i2](err, exposedInstance, errorInfo) === false) {
1145
1145
  return;
1146
1146
  }
1147
1147
  }
@@ -1201,9 +1201,9 @@ function queueFlush() {
1201
1201
  }
1202
1202
  }
1203
1203
  function invalidateJob(job) {
1204
- const i3 = queue.indexOf(job);
1205
- if (i3 > flushIndex) {
1206
- queue.splice(i3, 1);
1204
+ const i2 = queue.indexOf(job);
1205
+ if (i2 > flushIndex) {
1206
+ queue.splice(i2, 1);
1207
1207
  }
1208
1208
  }
1209
1209
  function queuePostFlushCb(cb) {
@@ -1216,12 +1216,12 @@ function queuePostFlushCb(cb) {
1216
1216
  }
1217
1217
  queueFlush();
1218
1218
  }
1219
- function flushPreFlushCbs(seen, i3 = isFlushing ? flushIndex + 1 : 0) {
1220
- for (; i3 < queue.length; i3++) {
1221
- const cb = queue[i3];
1219
+ function flushPreFlushCbs(seen, i2 = isFlushing ? flushIndex + 1 : 0) {
1220
+ for (; i2 < queue.length; i2++) {
1221
+ const cb = queue[i2];
1222
1222
  if (cb && cb.pre) {
1223
- queue.splice(i3, 1);
1224
- i3--;
1223
+ queue.splice(i2, 1);
1224
+ i2--;
1225
1225
  cb();
1226
1226
  }
1227
1227
  }
@@ -1288,11 +1288,11 @@ function emit$3(instance, event, ...rawArgs) {
1288
1288
  const modelArg = isModelListener2 && event.slice(7);
1289
1289
  if (modelArg && modelArg in props2) {
1290
1290
  const modifiersKey = `${modelArg === "modelValue" ? "model" : modelArg}Modifiers`;
1291
- const { number: number3, trim } = props2[modifiersKey] || EMPTY_OBJ;
1291
+ const { number: number4, trim } = props2[modifiersKey] || EMPTY_OBJ;
1292
1292
  if (trim) {
1293
1293
  args = rawArgs.map((a3) => isString(a3) ? a3.trim() : a3);
1294
1294
  }
1295
- if (number3) {
1295
+ if (number4) {
1296
1296
  args = rawArgs.map(looseToNumber);
1297
1297
  }
1298
1298
  }
@@ -1329,7 +1329,7 @@ function normalizeEmitsOptions(comp, appContext, asMixin = false) {
1329
1329
  const normalizedFromExtend = normalizeEmitsOptions(raw3, appContext, true);
1330
1330
  if (normalizedFromExtend) {
1331
1331
  hasExtends = true;
1332
- extend$1(normalized, normalizedFromExtend);
1332
+ extend$3(normalized, normalizedFromExtend);
1333
1333
  }
1334
1334
  };
1335
1335
  if (!asMixin && appContext.mixins.length) {
@@ -1343,7 +1343,7 @@ function normalizeEmitsOptions(comp, appContext, asMixin = false) {
1343
1343
  }
1344
1344
  }
1345
1345
  if (!raw2 && !hasExtends) {
1346
- if (isObject$1(comp)) {
1346
+ if (isObject$2(comp)) {
1347
1347
  cache.set(comp, null);
1348
1348
  }
1349
1349
  return null;
@@ -1351,9 +1351,9 @@ function normalizeEmitsOptions(comp, appContext, asMixin = false) {
1351
1351
  if (isArray(raw2)) {
1352
1352
  raw2.forEach((key) => normalized[key] = null);
1353
1353
  } else {
1354
- extend$1(normalized, raw2);
1354
+ extend$3(normalized, raw2);
1355
1355
  }
1356
- if (isObject$1(comp)) {
1356
+ if (isObject$2(comp)) {
1357
1357
  cache.set(comp, normalized);
1358
1358
  }
1359
1359
  return normalized;
@@ -1500,8 +1500,8 @@ function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
1500
1500
  return hasPropsChanged(prevProps, nextProps, emits);
1501
1501
  } else if (patchFlag & 8) {
1502
1502
  const dynamicProps = nextVNode.dynamicProps;
1503
- for (let i3 = 0; i3 < dynamicProps.length; i3++) {
1504
- const key = dynamicProps[i3];
1503
+ for (let i2 = 0; i2 < dynamicProps.length; i2++) {
1504
+ const key = dynamicProps[i2];
1505
1505
  if (nextProps[key] !== prevProps[key] && !isEmitListener(emits, key)) {
1506
1506
  return true;
1507
1507
  }
@@ -1531,8 +1531,8 @@ function hasPropsChanged(prevProps, nextProps, emitsOptions) {
1531
1531
  if (nextKeys.length !== Object.keys(prevProps).length) {
1532
1532
  return true;
1533
1533
  }
1534
- for (let i3 = 0; i3 < nextKeys.length; i3++) {
1535
- const key = nextKeys[i3];
1534
+ for (let i2 = 0; i2 < nextKeys.length; i2++) {
1535
+ const key = nextKeys[i2];
1536
1536
  if (nextProps[key] !== prevProps[key] && !isEmitListener(emitsOptions, key)) {
1537
1537
  return true;
1538
1538
  }
@@ -1665,7 +1665,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
1665
1665
  }
1666
1666
  if (cb) {
1667
1667
  const newValue = effect.run();
1668
- if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i3) => hasChanged(v, oldValue[i3])) : hasChanged(newValue, oldValue)) || false) {
1668
+ if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i2) => hasChanged(v, oldValue[i2])) : hasChanged(newValue, oldValue)) || false) {
1669
1669
  if (cleanup) {
1670
1670
  cleanup();
1671
1671
  }
@@ -1738,14 +1738,14 @@ function createPathGetter(ctx, path) {
1738
1738
  const segments = path.split(".");
1739
1739
  return () => {
1740
1740
  let cur = ctx;
1741
- for (let i3 = 0; i3 < segments.length && cur; i3++) {
1742
- cur = cur[segments[i3]];
1741
+ for (let i2 = 0; i2 < segments.length && cur; i2++) {
1742
+ cur = cur[segments[i2]];
1743
1743
  }
1744
1744
  return cur;
1745
1745
  };
1746
1746
  }
1747
1747
  function traverse(value, seen) {
1748
- if (!isObject$1(value) || value["__v_skip"]) {
1748
+ if (!isObject$2(value) || value["__v_skip"]) {
1749
1749
  return value;
1750
1750
  }
1751
1751
  seen = seen || /* @__PURE__ */ new Set();
@@ -1756,8 +1756,8 @@ function traverse(value, seen) {
1756
1756
  if (isRef(value)) {
1757
1757
  traverse(value.value, seen);
1758
1758
  } else if (isArray(value)) {
1759
- for (let i3 = 0; i3 < value.length; i3++) {
1760
- traverse(value[i3], seen);
1759
+ for (let i2 = 0; i2 < value.length; i2++) {
1760
+ traverse(value[i2], seen);
1761
1761
  }
1762
1762
  } else if (isSet(value) || isMap(value)) {
1763
1763
  value.forEach((v) => {
@@ -1773,7 +1773,7 @@ function traverse(value, seen) {
1773
1773
  function defineComponent(options2) {
1774
1774
  return isFunction(options2) ? { setup: options2, name: options2.name } : options2;
1775
1775
  }
1776
- const isAsyncWrapper = (i3) => !!i3.type.__asyncLoader;
1776
+ const isAsyncWrapper = (i2) => !!i2.type.__asyncLoader;
1777
1777
  const isKeepAlive = (vnode) => vnode.type.__isKeepAlive;
1778
1778
  function onActivated(hook, target) {
1779
1779
  registerKeepAliveHook(hook, "a", target);
@@ -1851,8 +1851,8 @@ function withDirectives(vnode, directives) {
1851
1851
  }
1852
1852
  const instance = getExposeProxy(internalInstance) || internalInstance.proxy;
1853
1853
  const bindings = vnode.dirs || (vnode.dirs = []);
1854
- for (let i3 = 0; i3 < directives.length; i3++) {
1855
- let [dir, value, arg, modifiers = EMPTY_OBJ] = directives[i3];
1854
+ for (let i2 = 0; i2 < directives.length; i2++) {
1855
+ let [dir, value, arg, modifiers = EMPTY_OBJ] = directives[i2];
1856
1856
  if (dir) {
1857
1857
  if (isFunction(dir)) {
1858
1858
  dir = {
@@ -1878,10 +1878,10 @@ function withDirectives(vnode, directives) {
1878
1878
  function invokeDirectiveHook(vnode, prevVNode, instance, name) {
1879
1879
  const bindings = vnode.dirs;
1880
1880
  const oldBindings = prevVNode && prevVNode.dirs;
1881
- for (let i3 = 0; i3 < bindings.length; i3++) {
1882
- const binding = bindings[i3];
1881
+ for (let i2 = 0; i2 < bindings.length; i2++) {
1882
+ const binding = bindings[i2];
1883
1883
  if (oldBindings) {
1884
- binding.oldValue = oldBindings[i3].value;
1884
+ binding.oldValue = oldBindings[i2].value;
1885
1885
  }
1886
1886
  let hook = binding.dir[name];
1887
1887
  if (hook) {
@@ -1933,23 +1933,23 @@ function renderList(source, renderItem, cache, index2) {
1933
1933
  const cached = cache && cache[index2];
1934
1934
  if (isArray(source) || isString(source)) {
1935
1935
  ret = new Array(source.length);
1936
- for (let i3 = 0, l = source.length; i3 < l; i3++) {
1937
- ret[i3] = renderItem(source[i3], i3, void 0, cached && cached[i3]);
1936
+ for (let i2 = 0, l = source.length; i2 < l; i2++) {
1937
+ ret[i2] = renderItem(source[i2], i2, void 0, cached && cached[i2]);
1938
1938
  }
1939
1939
  } else if (typeof source === "number") {
1940
1940
  ret = new Array(source);
1941
- for (let i3 = 0; i3 < source; i3++) {
1942
- ret[i3] = renderItem(i3 + 1, i3, void 0, cached && cached[i3]);
1941
+ for (let i2 = 0; i2 < source; i2++) {
1942
+ ret[i2] = renderItem(i2 + 1, i2, void 0, cached && cached[i2]);
1943
1943
  }
1944
- } else if (isObject$1(source)) {
1944
+ } else if (isObject$2(source)) {
1945
1945
  if (source[Symbol.iterator]) {
1946
- ret = Array.from(source, (item, i3) => renderItem(item, i3, void 0, cached && cached[i3]));
1946
+ ret = Array.from(source, (item, i2) => renderItem(item, i2, void 0, cached && cached[i2]));
1947
1947
  } else {
1948
1948
  const keys = Object.keys(source);
1949
1949
  ret = new Array(keys.length);
1950
- for (let i3 = 0, l = keys.length; i3 < l; i3++) {
1951
- const key = keys[i3];
1952
- ret[i3] = renderItem(source[key], key, i3, cached && cached[i3]);
1950
+ for (let i2 = 0, l = keys.length; i2 < l; i2++) {
1951
+ const key = keys[i2];
1952
+ ret[i2] = renderItem(source[key], key, i2, cached && cached[i2]);
1953
1953
  }
1954
1954
  }
1955
1955
  } else {
@@ -1994,28 +1994,28 @@ function ensureValidVNode(vnodes) {
1994
1994
  return true;
1995
1995
  }) ? vnodes : null;
1996
1996
  }
1997
- const getPublicInstance = (i3) => {
1998
- if (!i3)
1997
+ const getPublicInstance = (i2) => {
1998
+ if (!i2)
1999
1999
  return null;
2000
- if (isStatefulComponent(i3))
2001
- return getExposeProxy(i3) || i3.proxy;
2002
- return getPublicInstance(i3.parent);
2000
+ if (isStatefulComponent(i2))
2001
+ return getExposeProxy(i2) || i2.proxy;
2002
+ return getPublicInstance(i2.parent);
2003
2003
  };
2004
- const publicPropertiesMap = /* @__PURE__ */ extend$1(/* @__PURE__ */ Object.create(null), {
2005
- $: (i3) => i3,
2006
- $el: (i3) => i3.vnode.el,
2007
- $data: (i3) => i3.data,
2008
- $props: (i3) => i3.props,
2009
- $attrs: (i3) => i3.attrs,
2010
- $slots: (i3) => i3.slots,
2011
- $refs: (i3) => i3.refs,
2012
- $parent: (i3) => getPublicInstance(i3.parent),
2013
- $root: (i3) => getPublicInstance(i3.root),
2014
- $emit: (i3) => i3.emit,
2015
- $options: (i3) => resolveMergedOptions(i3),
2016
- $forceUpdate: (i3) => i3.f || (i3.f = () => queueJob(i3.update)),
2017
- $nextTick: (i3) => i3.n || (i3.n = nextTick.bind(i3.proxy)),
2018
- $watch: (i3) => instanceWatch.bind(i3)
2004
+ const publicPropertiesMap = /* @__PURE__ */ extend$3(/* @__PURE__ */ Object.create(null), {
2005
+ $: (i2) => i2,
2006
+ $el: (i2) => i2.vnode.el,
2007
+ $data: (i2) => i2.data,
2008
+ $props: (i2) => i2.props,
2009
+ $attrs: (i2) => i2.attrs,
2010
+ $slots: (i2) => i2.slots,
2011
+ $refs: (i2) => i2.refs,
2012
+ $parent: (i2) => getPublicInstance(i2.parent),
2013
+ $root: (i2) => getPublicInstance(i2.root),
2014
+ $emit: (i2) => i2.emit,
2015
+ $options: (i2) => resolveMergedOptions(i2),
2016
+ $forceUpdate: (i2) => i2.f || (i2.f = () => queueJob(i2.update)),
2017
+ $nextTick: (i2) => i2.n || (i2.n = nextTick.bind(i2.proxy)),
2018
+ $watch: (i2) => instanceWatch.bind(i2)
2019
2019
  });
2020
2020
  const hasSetupBinding = (state, key) => state !== EMPTY_OBJ && !state.__isScriptSetup && hasOwn(state, key);
2021
2021
  const PublicInstanceProxyHandlers = {
@@ -2157,7 +2157,7 @@ function applyOptions(instance) {
2157
2157
  }
2158
2158
  if (dataOptions) {
2159
2159
  const data = dataOptions.call(publicThis, publicThis);
2160
- if (!isObject$1(data))
2160
+ if (!isObject$2(data))
2161
2161
  ;
2162
2162
  else {
2163
2163
  instance.data = reactive(data);
@@ -2245,7 +2245,7 @@ function resolveInjections(injectOptions, ctx, checkDuplicateProperties = NOOP,
2245
2245
  for (const key in injectOptions) {
2246
2246
  const opt = injectOptions[key];
2247
2247
  let injected;
2248
- if (isObject$1(opt)) {
2248
+ if (isObject$2(opt)) {
2249
2249
  if ("default" in opt) {
2250
2250
  injected = inject(opt.from || key, opt.default, true);
2251
2251
  } else {
@@ -2282,7 +2282,7 @@ function createWatcher(raw2, ctx, publicThis, key) {
2282
2282
  }
2283
2283
  } else if (isFunction(raw2)) {
2284
2284
  watch$1(getter, raw2.bind(publicThis));
2285
- } else if (isObject$1(raw2)) {
2285
+ } else if (isObject$2(raw2)) {
2286
2286
  if (isArray(raw2)) {
2287
2287
  raw2.forEach((r) => createWatcher(r, ctx, publicThis, key));
2288
2288
  } else {
@@ -2313,7 +2313,7 @@ function resolveMergedOptions(instance) {
2313
2313
  }
2314
2314
  mergeOptions(resolved, base, optionMergeStrategies);
2315
2315
  }
2316
- if (isObject$1(base)) {
2316
+ if (isObject$2(base)) {
2317
2317
  cache.set(base, resolved);
2318
2318
  }
2319
2319
  return resolved;
@@ -2370,7 +2370,7 @@ function mergeDataFn(to, from) {
2370
2370
  return from;
2371
2371
  }
2372
2372
  return function mergedDataFn() {
2373
- return extend$1(isFunction(to) ? to.call(this, this) : to, isFunction(from) ? from.call(this, this) : from);
2373
+ return extend$3(isFunction(to) ? to.call(this, this) : to, isFunction(from) ? from.call(this, this) : from);
2374
2374
  };
2375
2375
  }
2376
2376
  function mergeInject(to, from) {
@@ -2379,8 +2379,8 @@ function mergeInject(to, from) {
2379
2379
  function normalizeInject(raw2) {
2380
2380
  if (isArray(raw2)) {
2381
2381
  const res = {};
2382
- for (let i3 = 0; i3 < raw2.length; i3++) {
2383
- res[raw2[i3]] = raw2[i3];
2382
+ for (let i2 = 0; i2 < raw2.length; i2++) {
2383
+ res[raw2[i2]] = raw2[i2];
2384
2384
  }
2385
2385
  return res;
2386
2386
  }
@@ -2390,14 +2390,14 @@ function mergeAsArray(to, from) {
2390
2390
  return to ? [...new Set([].concat(to, from))] : from;
2391
2391
  }
2392
2392
  function mergeObjectOptions(to, from) {
2393
- return to ? extend$1(extend$1(/* @__PURE__ */ Object.create(null), to), from) : from;
2393
+ return to ? extend$3(extend$3(/* @__PURE__ */ Object.create(null), to), from) : from;
2394
2394
  }
2395
2395
  function mergeWatchOptions(to, from) {
2396
2396
  if (!to)
2397
2397
  return from;
2398
2398
  if (!from)
2399
2399
  return to;
2400
- const merged = extend$1(/* @__PURE__ */ Object.create(null), to);
2400
+ const merged = extend$3(/* @__PURE__ */ Object.create(null), to);
2401
2401
  for (const key in from) {
2402
2402
  merged[key] = mergeAsArray(to[key], from[key]);
2403
2403
  }
@@ -2433,8 +2433,8 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
2433
2433
  if ((optimized || patchFlag > 0) && !(patchFlag & 16)) {
2434
2434
  if (patchFlag & 8) {
2435
2435
  const propsToUpdate = instance.vnode.dynamicProps;
2436
- for (let i3 = 0; i3 < propsToUpdate.length; i3++) {
2437
- let key = propsToUpdate[i3];
2436
+ for (let i2 = 0; i2 < propsToUpdate.length; i2++) {
2437
+ let key = propsToUpdate[i2];
2438
2438
  if (isEmitListener(instance.emitsOptions, key)) {
2439
2439
  continue;
2440
2440
  }
@@ -2514,8 +2514,8 @@ function setFullProps(instance, rawProps, props2, attrs) {
2514
2514
  if (needCastKeys) {
2515
2515
  const rawCurrentProps = toRaw(props2);
2516
2516
  const castValues = rawCastValues || EMPTY_OBJ;
2517
- for (let i3 = 0; i3 < needCastKeys.length; i3++) {
2518
- const key = needCastKeys[i3];
2517
+ for (let i2 = 0; i2 < needCastKeys.length; i2++) {
2518
+ const key = needCastKeys[i2];
2519
2519
  props2[key] = resolvePropValue(options2, rawCurrentProps, key, castValues[key], instance, !hasOwn(castValues, key));
2520
2520
  }
2521
2521
  }
@@ -2564,7 +2564,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
2564
2564
  const extendProps = (raw3) => {
2565
2565
  hasExtends = true;
2566
2566
  const [props2, keys] = normalizePropsOptions(raw3, appContext, true);
2567
- extend$1(normalized, props2);
2567
+ extend$3(normalized, props2);
2568
2568
  if (keys)
2569
2569
  needCastKeys.push(...keys);
2570
2570
  };
@@ -2579,14 +2579,14 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
2579
2579
  }
2580
2580
  }
2581
2581
  if (!raw2 && !hasExtends) {
2582
- if (isObject$1(comp)) {
2582
+ if (isObject$2(comp)) {
2583
2583
  cache.set(comp, EMPTY_ARR);
2584
2584
  }
2585
2585
  return EMPTY_ARR;
2586
2586
  }
2587
2587
  if (isArray(raw2)) {
2588
- for (let i3 = 0; i3 < raw2.length; i3++) {
2589
- const normalizedKey = camelize(raw2[i3]);
2588
+ for (let i2 = 0; i2 < raw2.length; i2++) {
2589
+ const normalizedKey = camelize(raw2[i2]);
2590
2590
  if (validatePropName(normalizedKey)) {
2591
2591
  normalized[normalizedKey] = EMPTY_OBJ;
2592
2592
  }
@@ -2610,7 +2610,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
2610
2610
  }
2611
2611
  }
2612
2612
  const res = [normalized, needCastKeys];
2613
- if (isObject$1(comp)) {
2613
+ if (isObject$2(comp)) {
2614
2614
  cache.set(comp, res);
2615
2615
  }
2616
2616
  return res;
@@ -2695,7 +2695,7 @@ const updateSlots = (instance, children, optimized) => {
2695
2695
  if (optimized && type === 1) {
2696
2696
  needDeletionCheck = false;
2697
2697
  } else {
2698
- extend$1(slots, children);
2698
+ extend$3(slots, children);
2699
2699
  if (!optimized && type === 1) {
2700
2700
  delete slots._;
2701
2701
  }
@@ -2744,7 +2744,7 @@ function createAppAPI(render2, hydrate2) {
2744
2744
  if (!isFunction(rootComponent)) {
2745
2745
  rootComponent = Object.assign({}, rootComponent);
2746
2746
  }
2747
- if (rootProps != null && !isObject$1(rootProps)) {
2747
+ if (rootProps != null && !isObject$2(rootProps)) {
2748
2748
  rootProps = null;
2749
2749
  }
2750
2750
  const context = createAppContext();
@@ -2829,7 +2829,7 @@ function createAppAPI(render2, hydrate2) {
2829
2829
  }
2830
2830
  function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
2831
2831
  if (isArray(rawRef)) {
2832
- rawRef.forEach((r, i3) => setRef(r, oldRawRef && (isArray(oldRawRef) ? oldRawRef[i3] : oldRawRef), parentSuspense, vnode, isUnmount));
2832
+ rawRef.forEach((r, i2) => setRef(r, oldRawRef && (isArray(oldRawRef) ? oldRawRef[i2] : oldRawRef), parentSuspense, vnode, isUnmount));
2833
2833
  return;
2834
2834
  }
2835
2835
  if (isAsyncWrapper(vnode) && !isUnmount) {
@@ -3046,8 +3046,8 @@ function baseCreateRenderer(options2, createHydrationFns) {
3046
3046
  hostSetScopeId(el, scopeId);
3047
3047
  }
3048
3048
  if (slotScopeIds) {
3049
- for (let i3 = 0; i3 < slotScopeIds.length; i3++) {
3050
- hostSetScopeId(el, slotScopeIds[i3]);
3049
+ for (let i2 = 0; i2 < slotScopeIds.length; i2++) {
3050
+ hostSetScopeId(el, slotScopeIds[i2]);
3051
3051
  }
3052
3052
  }
3053
3053
  if (parentComponent) {
@@ -3059,8 +3059,8 @@ function baseCreateRenderer(options2, createHydrationFns) {
3059
3059
  }
3060
3060
  };
3061
3061
  const mountChildren = (children, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, start = 0) => {
3062
- for (let i3 = start; i3 < children.length; i3++) {
3063
- const child = children[i3] = optimized ? cloneIfMounted(children[i3]) : normalizeVNode(children[i3]);
3062
+ for (let i2 = start; i2 < children.length; i2++) {
3063
+ const child = children[i2] = optimized ? cloneIfMounted(children[i2]) : normalizeVNode(children[i2]);
3064
3064
  patch(null, child, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
3065
3065
  }
3066
3066
  };
@@ -3099,8 +3099,8 @@ function baseCreateRenderer(options2, createHydrationFns) {
3099
3099
  }
3100
3100
  if (patchFlag & 8) {
3101
3101
  const propsToUpdate = n2.dynamicProps;
3102
- for (let i3 = 0; i3 < propsToUpdate.length; i3++) {
3103
- const key = propsToUpdate[i3];
3102
+ for (let i2 = 0; i2 < propsToUpdate.length; i2++) {
3103
+ const key = propsToUpdate[i2];
3104
3104
  const prev = oldProps[key];
3105
3105
  const next = newProps[key];
3106
3106
  if (next !== prev || key === "value") {
@@ -3125,9 +3125,9 @@ function baseCreateRenderer(options2, createHydrationFns) {
3125
3125
  }
3126
3126
  };
3127
3127
  const patchBlockChildren = (oldChildren, newChildren, fallbackContainer, parentComponent, parentSuspense, isSVG, slotScopeIds) => {
3128
- for (let i3 = 0; i3 < newChildren.length; i3++) {
3129
- const oldVNode = oldChildren[i3];
3130
- const newVNode = newChildren[i3];
3128
+ for (let i2 = 0; i2 < newChildren.length; i2++) {
3129
+ const oldVNode = oldChildren[i2];
3130
+ const newVNode = newChildren[i2];
3131
3131
  const container = oldVNode.el && (oldVNode.type === Fragment || !isSameVNodeType(oldVNode, newVNode) || oldVNode.shapeFlag & (6 | 64)) ? hostParentNode(oldVNode.el) : fallbackContainer;
3132
3132
  patch(oldVNode, newVNode, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, true);
3133
3133
  }
@@ -3374,10 +3374,10 @@ function baseCreateRenderer(options2, createHydrationFns) {
3374
3374
  const oldLength = c1.length;
3375
3375
  const newLength = c2.length;
3376
3376
  const commonLength = Math.min(oldLength, newLength);
3377
- let i3;
3378
- for (i3 = 0; i3 < commonLength; i3++) {
3379
- const nextChild = c2[i3] = optimized ? cloneIfMounted(c2[i3]) : normalizeVNode(c2[i3]);
3380
- patch(c1[i3], nextChild, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
3377
+ let i2;
3378
+ for (i2 = 0; i2 < commonLength; i2++) {
3379
+ const nextChild = c2[i2] = optimized ? cloneIfMounted(c2[i2]) : normalizeVNode(c2[i2]);
3380
+ patch(c1[i2], nextChild, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
3381
3381
  }
3382
3382
  if (oldLength > newLength) {
3383
3383
  unmountChildren(c1, parentComponent, parentSuspense, true, false, commonLength);
@@ -3386,21 +3386,21 @@ function baseCreateRenderer(options2, createHydrationFns) {
3386
3386
  }
3387
3387
  };
3388
3388
  const patchKeyedChildren = (c1, c2, container, parentAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
3389
- let i3 = 0;
3389
+ let i2 = 0;
3390
3390
  const l2 = c2.length;
3391
3391
  let e1 = c1.length - 1;
3392
3392
  let e2 = l2 - 1;
3393
- while (i3 <= e1 && i3 <= e2) {
3394
- const n1 = c1[i3];
3395
- const n2 = c2[i3] = optimized ? cloneIfMounted(c2[i3]) : normalizeVNode(c2[i3]);
3393
+ while (i2 <= e1 && i2 <= e2) {
3394
+ const n1 = c1[i2];
3395
+ const n2 = c2[i2] = optimized ? cloneIfMounted(c2[i2]) : normalizeVNode(c2[i2]);
3396
3396
  if (isSameVNodeType(n1, n2)) {
3397
3397
  patch(n1, n2, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
3398
3398
  } else {
3399
3399
  break;
3400
3400
  }
3401
- i3++;
3401
+ i2++;
3402
3402
  }
3403
- while (i3 <= e1 && i3 <= e2) {
3403
+ while (i2 <= e1 && i2 <= e2) {
3404
3404
  const n1 = c1[e1];
3405
3405
  const n2 = c2[e2] = optimized ? cloneIfMounted(c2[e2]) : normalizeVNode(c2[e2]);
3406
3406
  if (isSameVNodeType(n1, n2)) {
@@ -3411,28 +3411,28 @@ function baseCreateRenderer(options2, createHydrationFns) {
3411
3411
  e1--;
3412
3412
  e2--;
3413
3413
  }
3414
- if (i3 > e1) {
3415
- if (i3 <= e2) {
3414
+ if (i2 > e1) {
3415
+ if (i2 <= e2) {
3416
3416
  const nextPos = e2 + 1;
3417
3417
  const anchor = nextPos < l2 ? c2[nextPos].el : parentAnchor;
3418
- while (i3 <= e2) {
3419
- patch(null, c2[i3] = optimized ? cloneIfMounted(c2[i3]) : normalizeVNode(c2[i3]), container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
3420
- i3++;
3418
+ while (i2 <= e2) {
3419
+ patch(null, c2[i2] = optimized ? cloneIfMounted(c2[i2]) : normalizeVNode(c2[i2]), container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
3420
+ i2++;
3421
3421
  }
3422
3422
  }
3423
- } else if (i3 > e2) {
3424
- while (i3 <= e1) {
3425
- unmount(c1[i3], parentComponent, parentSuspense, true);
3426
- i3++;
3423
+ } else if (i2 > e2) {
3424
+ while (i2 <= e1) {
3425
+ unmount(c1[i2], parentComponent, parentSuspense, true);
3426
+ i2++;
3427
3427
  }
3428
3428
  } else {
3429
- const s1 = i3;
3430
- const s22 = i3;
3429
+ const s1 = i2;
3430
+ const s22 = i2;
3431
3431
  const keyToNewIndexMap = /* @__PURE__ */ new Map();
3432
- for (i3 = s22; i3 <= e2; i3++) {
3433
- const nextChild = c2[i3] = optimized ? cloneIfMounted(c2[i3]) : normalizeVNode(c2[i3]);
3432
+ for (i2 = s22; i2 <= e2; i2++) {
3433
+ const nextChild = c2[i2] = optimized ? cloneIfMounted(c2[i2]) : normalizeVNode(c2[i2]);
3434
3434
  if (nextChild.key != null) {
3435
- keyToNewIndexMap.set(nextChild.key, i3);
3435
+ keyToNewIndexMap.set(nextChild.key, i2);
3436
3436
  }
3437
3437
  }
3438
3438
  let j;
@@ -3441,10 +3441,10 @@ function baseCreateRenderer(options2, createHydrationFns) {
3441
3441
  let moved = false;
3442
3442
  let maxNewIndexSoFar = 0;
3443
3443
  const newIndexToOldIndexMap = new Array(toBePatched);
3444
- for (i3 = 0; i3 < toBePatched; i3++)
3445
- newIndexToOldIndexMap[i3] = 0;
3446
- for (i3 = s1; i3 <= e1; i3++) {
3447
- const prevChild = c1[i3];
3444
+ for (i2 = 0; i2 < toBePatched; i2++)
3445
+ newIndexToOldIndexMap[i2] = 0;
3446
+ for (i2 = s1; i2 <= e1; i2++) {
3447
+ const prevChild = c1[i2];
3448
3448
  if (patched >= toBePatched) {
3449
3449
  unmount(prevChild, parentComponent, parentSuspense, true);
3450
3450
  continue;
@@ -3463,7 +3463,7 @@ function baseCreateRenderer(options2, createHydrationFns) {
3463
3463
  if (newIndex === void 0) {
3464
3464
  unmount(prevChild, parentComponent, parentSuspense, true);
3465
3465
  } else {
3466
- newIndexToOldIndexMap[newIndex - s22] = i3 + 1;
3466
+ newIndexToOldIndexMap[newIndex - s22] = i2 + 1;
3467
3467
  if (newIndex >= maxNewIndexSoFar) {
3468
3468
  maxNewIndexSoFar = newIndex;
3469
3469
  } else {
@@ -3475,14 +3475,14 @@ function baseCreateRenderer(options2, createHydrationFns) {
3475
3475
  }
3476
3476
  const increasingNewIndexSequence = moved ? getSequence(newIndexToOldIndexMap) : EMPTY_ARR;
3477
3477
  j = increasingNewIndexSequence.length - 1;
3478
- for (i3 = toBePatched - 1; i3 >= 0; i3--) {
3479
- const nextIndex = s22 + i3;
3478
+ for (i2 = toBePatched - 1; i2 >= 0; i2--) {
3479
+ const nextIndex = s22 + i2;
3480
3480
  const nextChild = c2[nextIndex];
3481
3481
  const anchor = nextIndex + 1 < l2 ? c2[nextIndex + 1].el : parentAnchor;
3482
- if (newIndexToOldIndexMap[i3] === 0) {
3482
+ if (newIndexToOldIndexMap[i2] === 0) {
3483
3483
  patch(null, nextChild, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
3484
3484
  } else if (moved) {
3485
- if (j < 0 || i3 !== increasingNewIndexSequence[j]) {
3485
+ if (j < 0 || i2 !== increasingNewIndexSequence[j]) {
3486
3486
  move(nextChild, container, anchor, 2);
3487
3487
  } else {
3488
3488
  j--;
@@ -3507,8 +3507,8 @@ function baseCreateRenderer(options2, createHydrationFns) {
3507
3507
  }
3508
3508
  if (type === Fragment) {
3509
3509
  hostInsert(el, container, anchor);
3510
- for (let i3 = 0; i3 < children.length; i3++) {
3511
- move(children[i3], container, anchor, moveType);
3510
+ for (let i2 = 0; i2 < children.length; i2++) {
3511
+ move(children[i2], container, anchor, moveType);
3512
3512
  }
3513
3513
  hostInsert(vnode.anchor, container, anchor);
3514
3514
  return;
@@ -3648,8 +3648,8 @@ function baseCreateRenderer(options2, createHydrationFns) {
3648
3648
  }
3649
3649
  };
3650
3650
  const unmountChildren = (children, parentComponent, parentSuspense, doRemove = false, optimized = false, start = 0) => {
3651
- for (let i3 = start; i3 < children.length; i3++) {
3652
- unmount(children[i3], parentComponent, parentSuspense, doRemove, optimized);
3651
+ for (let i2 = start; i2 < children.length; i2++) {
3652
+ unmount(children[i2], parentComponent, parentSuspense, doRemove, optimized);
3653
3653
  }
3654
3654
  };
3655
3655
  const getNextHostNode = (vnode) => {
@@ -3703,12 +3703,12 @@ function traverseStaticChildren(n1, n2, shallow = false) {
3703
3703
  const ch1 = n1.children;
3704
3704
  const ch2 = n2.children;
3705
3705
  if (isArray(ch1) && isArray(ch2)) {
3706
- for (let i3 = 0; i3 < ch1.length; i3++) {
3707
- const c1 = ch1[i3];
3708
- let c2 = ch2[i3];
3706
+ for (let i2 = 0; i2 < ch1.length; i2++) {
3707
+ const c1 = ch1[i2];
3708
+ let c2 = ch2[i2];
3709
3709
  if (c2.shapeFlag & 1 && !c2.dynamicChildren) {
3710
3710
  if (c2.patchFlag <= 0 || c2.patchFlag === 32) {
3711
- c2 = ch2[i3] = cloneIfMounted(ch2[i3]);
3711
+ c2 = ch2[i2] = cloneIfMounted(ch2[i2]);
3712
3712
  c2.el = c1.el;
3713
3713
  }
3714
3714
  if (!shallow)
@@ -3723,15 +3723,15 @@ function traverseStaticChildren(n1, n2, shallow = false) {
3723
3723
  function getSequence(arr) {
3724
3724
  const p2 = arr.slice();
3725
3725
  const result = [0];
3726
- let i3, j, u2, v, c2;
3726
+ let i2, j, u2, v, c2;
3727
3727
  const len = arr.length;
3728
- for (i3 = 0; i3 < len; i3++) {
3729
- const arrI = arr[i3];
3728
+ for (i2 = 0; i2 < len; i2++) {
3729
+ const arrI = arr[i2];
3730
3730
  if (arrI !== 0) {
3731
3731
  j = result[result.length - 1];
3732
3732
  if (arr[j] < arrI) {
3733
- p2[i3] = j;
3734
- result.push(i3);
3733
+ p2[i2] = j;
3734
+ result.push(i2);
3735
3735
  continue;
3736
3736
  }
3737
3737
  u2 = 0;
@@ -3746,9 +3746,9 @@ function getSequence(arr) {
3746
3746
  }
3747
3747
  if (arrI < arr[result[u2]]) {
3748
3748
  if (u2 > 0) {
3749
- p2[i3] = result[u2 - 1];
3749
+ p2[i2] = result[u2 - 1];
3750
3750
  }
3751
- result[u2] = i3;
3751
+ result[u2] = i2;
3752
3752
  }
3753
3753
  }
3754
3754
  }
@@ -3871,20 +3871,20 @@ function _createVNode(type, props2 = null, children = null, patchFlag = 0, dynam
3871
3871
  if (klass && !isString(klass)) {
3872
3872
  props2.class = normalizeClass(klass);
3873
3873
  }
3874
- if (isObject$1(style)) {
3874
+ if (isObject$2(style)) {
3875
3875
  if (isProxy(style) && !isArray(style)) {
3876
- style = extend$1({}, style);
3876
+ style = extend$3({}, style);
3877
3877
  }
3878
3878
  props2.style = normalizeStyle(style);
3879
3879
  }
3880
3880
  }
3881
- const shapeFlag = isString(type) ? 1 : isSuspense(type) ? 128 : isTeleport(type) ? 64 : isObject$1(type) ? 4 : isFunction(type) ? 2 : 0;
3881
+ const shapeFlag = isString(type) ? 1 : isSuspense(type) ? 128 : isTeleport(type) ? 64 : isObject$2(type) ? 4 : isFunction(type) ? 2 : 0;
3882
3882
  return createBaseVNode(type, props2, children, patchFlag, dynamicProps, shapeFlag, isBlockNode, true);
3883
3883
  }
3884
3884
  function guardReactiveProps(props2) {
3885
3885
  if (!props2)
3886
3886
  return null;
3887
- return isProxy(props2) || InternalObjectKey in props2 ? extend$1({}, props2) : props2;
3887
+ return isProxy(props2) || InternalObjectKey in props2 ? extend$3({}, props2) : props2;
3888
3888
  }
3889
3889
  function cloneVNode(vnode, extraProps, mergeRef = false) {
3890
3890
  const { props: props2, ref: ref2, patchFlag, children } = vnode;
@@ -3991,8 +3991,8 @@ function normalizeChildren(vnode, children) {
3991
3991
  }
3992
3992
  function mergeProps(...args) {
3993
3993
  const ret = {};
3994
- for (let i3 = 0; i3 < args.length; i3++) {
3995
- const toMerge = args[i3];
3994
+ for (let i2 = 0; i2 < args.length; i2++) {
3995
+ const toMerge = args[i2];
3996
3996
  for (const key in toMerge) {
3997
3997
  if (key === "class") {
3998
3998
  if (ret.class !== toMerge.class) {
@@ -4153,7 +4153,7 @@ function handleSetupResult(instance, setupResult, isSSR) {
4153
4153
  } else {
4154
4154
  instance.render = setupResult;
4155
4155
  }
4156
- } else if (isObject$1(setupResult)) {
4156
+ } else if (isObject$2(setupResult)) {
4157
4157
  instance.setupState = proxyRefs(setupResult);
4158
4158
  } else
4159
4159
  ;
@@ -4168,7 +4168,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
4168
4168
  if (template) {
4169
4169
  const { isCustomElement, compilerOptions } = instance.appContext.config;
4170
4170
  const { delimiters, compilerOptions: componentCompilerOptions } = Component;
4171
- const finalCompilerOptions = extend$1(extend$1({
4171
+ const finalCompilerOptions = extend$3(extend$3({
4172
4172
  isCustomElement,
4173
4173
  delimiters
4174
4174
  }, compilerOptions), componentCompilerOptions);
@@ -4237,7 +4237,7 @@ const computed = (getterOrOptions, debugOptions) => {
4237
4237
  function h(type, propsOrChildren, children) {
4238
4238
  const l = arguments.length;
4239
4239
  if (l === 2) {
4240
- if (isObject$1(propsOrChildren) && !isArray(propsOrChildren)) {
4240
+ if (isObject$2(propsOrChildren) && !isArray(propsOrChildren)) {
4241
4241
  if (isVNode(propsOrChildren)) {
4242
4242
  return createVNode(type, null, [propsOrChildren]);
4243
4243
  }
@@ -4394,8 +4394,8 @@ function autoPrefix(style, rawName) {
4394
4394
  return prefixCache[rawName] = name;
4395
4395
  }
4396
4396
  name = capitalize(name);
4397
- for (let i3 = 0; i3 < prefixes.length; i3++) {
4398
- const prefixed = prefixes[i3] + name;
4397
+ for (let i2 = 0; i2 < prefixes.length; i2++) {
4398
+ const prefixed = prefixes[i2] + name;
4399
4399
  if (prefixed in style) {
4400
4400
  return prefixCache[rawName] = prefixed;
4401
4401
  }
@@ -4584,9 +4584,9 @@ function onCompositionEnd(e2) {
4584
4584
  }
4585
4585
  }
4586
4586
  const vModelText = {
4587
- created(el, { modifiers: { lazy, trim, number: number3 } }, vnode) {
4587
+ created(el, { modifiers: { lazy, trim, number: number4 } }, vnode) {
4588
4588
  el._assign = getModelAssigner(vnode);
4589
- const castToNumber = number3 || vnode.props && vnode.props.type === "number";
4589
+ const castToNumber = number4 || vnode.props && vnode.props.type === "number";
4590
4590
  addEventListener(el, lazy ? "change" : "input", (e2) => {
4591
4591
  if (e2.target.composing)
4592
4592
  return;
@@ -4613,7 +4613,7 @@ const vModelText = {
4613
4613
  mounted(el, { value }) {
4614
4614
  el.value = value == null ? "" : value;
4615
4615
  },
4616
- beforeUpdate(el, { value, modifiers: { lazy, trim, number: number3 } }, vnode) {
4616
+ beforeUpdate(el, { value, modifiers: { lazy, trim, number: number4 } }, vnode) {
4617
4617
  el._assign = getModelAssigner(vnode);
4618
4618
  if (el.composing)
4619
4619
  return;
@@ -4624,7 +4624,7 @@ const vModelText = {
4624
4624
  if (trim && el.value.trim() === value) {
4625
4625
  return;
4626
4626
  }
4627
- if ((number3 || el.type === "number") && looseToNumber(el.value) === value) {
4627
+ if ((number4 || el.type === "number") && looseToNumber(el.value) === value) {
4628
4628
  return;
4629
4629
  }
4630
4630
  }
@@ -4650,8 +4650,8 @@ const modifierGuards = {
4650
4650
  };
4651
4651
  const withModifiers = (fn, modifiers) => {
4652
4652
  return (event, ...args) => {
4653
- for (let i3 = 0; i3 < modifiers.length; i3++) {
4654
- const guard = modifierGuards[modifiers[i3]];
4653
+ for (let i2 = 0; i2 < modifiers.length; i2++) {
4654
+ const guard = modifierGuards[modifiers[i2]];
4655
4655
  if (guard && guard(event, modifiers))
4656
4656
  return;
4657
4657
  }
@@ -4696,7 +4696,7 @@ const vShow = {
4696
4696
  function setDisplay(el, value) {
4697
4697
  el.style.display = value ? el._vod : "none";
4698
4698
  }
4699
- const rendererOptions = /* @__PURE__ */ extend$1({ patchProp }, nodeOps);
4699
+ const rendererOptions = /* @__PURE__ */ extend$3({ patchProp }, nodeOps);
4700
4700
  let renderer;
4701
4701
  function ensureRenderer() {
4702
4702
  return renderer || (renderer = createRenderer(rendererOptions));
@@ -4870,8 +4870,8 @@ function usePrepop() {
4870
4870
  if (value) {
4871
4871
  if (node.props.options) {
4872
4872
  let found = false;
4873
- for (var i3 = 0; i3 < node.props.options.length; i3++) {
4874
- if (node.props.options[i3].value == value) {
4873
+ for (var i2 = 0; i2 < node.props.options.length; i2++) {
4874
+ if (node.props.options[i2].value == value) {
4875
4875
  found = true;
4876
4876
  break;
4877
4877
  }
@@ -4929,6 +4929,34 @@ function eq$1(valA, valB, deep = true, explicit = ["__key"]) {
4929
4929
  }
4930
4930
  return false;
4931
4931
  }
4932
+ function empty$1(value) {
4933
+ const type = typeof value;
4934
+ if (type === "number")
4935
+ return false;
4936
+ if (value === void 0)
4937
+ return true;
4938
+ if (type === "string") {
4939
+ return value === "";
4940
+ }
4941
+ if (type === "object") {
4942
+ if (value === null)
4943
+ return true;
4944
+ for (const _i in value)
4945
+ return false;
4946
+ if (value instanceof RegExp)
4947
+ return false;
4948
+ if (value instanceof Date)
4949
+ return false;
4950
+ return true;
4951
+ }
4952
+ return false;
4953
+ }
4954
+ function isRecord$1(o) {
4955
+ return Object.prototype.toString.call(o) === "[object Object]";
4956
+ }
4957
+ function isObject$1(o) {
4958
+ return isRecord$1(o) || Array.isArray(o);
4959
+ }
4932
4960
  function camel$1(str) {
4933
4961
  return str.replace(/-([a-z0-9])/gi, (_s, g) => g.toUpperCase());
4934
4962
  }
@@ -4976,7 +5004,7 @@ function init$2(obj) {
4976
5004
  function slugify$1(str) {
4977
5005
  return str.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]/g, " ").trim().replace(/\s+/g, "-");
4978
5006
  }
4979
- function createDispatcher$2() {
5007
+ function createDispatcher$1() {
4980
5008
  const middleware = [];
4981
5009
  let currentIndex = 0;
4982
5010
  const use2 = (dispatchable) => middleware.push(dispatchable);
@@ -5020,6 +5048,11 @@ function createEmitter$1() {
5020
5048
  node.bubble(event);
5021
5049
  }
5022
5050
  };
5051
+ emitter.flush = () => {
5052
+ listeners.clear();
5053
+ receipts2.clear();
5054
+ buffer === null || buffer === void 0 ? void 0 : buffer.clear();
5055
+ };
5023
5056
  emitter.on = (eventName, listener) => {
5024
5057
  const [event, ...modifiers] = eventName.split(".");
5025
5058
  const receipt = listener.receipt || token$1();
@@ -5086,13 +5119,13 @@ function off$1(node, context, receipt) {
5086
5119
  context._e.off(receipt);
5087
5120
  return node;
5088
5121
  }
5089
- const errorHandler$1 = createDispatcher$2();
5122
+ const errorHandler$1 = createDispatcher$1();
5090
5123
  errorHandler$1((error2, next) => {
5091
5124
  if (!error2.message)
5092
5125
  error2.message = String(`E${error2.code}`);
5093
5126
  return next(error2);
5094
5127
  });
5095
- const warningHandler$1 = createDispatcher$2();
5128
+ const warningHandler$1 = createDispatcher$1();
5096
5129
  warningHandler$1((warning, next) => {
5097
5130
  if (!warning.message)
5098
5131
  warning.message = String(`W${warning.code}`);
@@ -5203,10 +5236,13 @@ function reset$1(id, resetTo) {
5203
5236
  if (node) {
5204
5237
  const initial = (n) => cloneAny$1(n.props.initial) || (n.type === "group" ? {} : n.type === "list" ? [] : void 0);
5205
5238
  node._e.pause(node);
5206
- node.input(cloneAny$1(resetTo) || initial(node), false);
5239
+ const resetValue2 = cloneAny$1(resetTo);
5240
+ if (resetTo && !empty$1(resetTo)) {
5241
+ node.props.initial = isObject$1(resetValue2) ? init$2(resetValue2) : resetValue2;
5242
+ }
5243
+ node.input(initial(node), false);
5207
5244
  node.walk((child) => child.input(initial(child), false));
5208
- const finalInit = initial(node);
5209
- node.input(typeof finalInit === "object" ? cloneAny$1(resetTo) || init$2(finalInit) : finalInit, false);
5245
+ node.input(empty$1(resetValue2) && resetValue2 ? resetValue2 : initial(node), false);
5210
5246
  node._e.play(node);
5211
5247
  clearState$1(node);
5212
5248
  node.emit("reset", node);
@@ -5247,6 +5283,7 @@ const invalidSetter$1 = (node, _context, property) => {
5247
5283
  define: trap$1(define$1),
5248
5284
  disturb: trap$1(disturb$1),
5249
5285
  destroy: trap$1(destroy$1),
5286
+ extend: trap$1(extend$2),
5250
5287
  hydrate: trap$1(hydrate$1),
5251
5288
  index: trap$1(getIndex$1, setIndex$1, false),
5252
5289
  input: trap$1(input$1),
@@ -5274,6 +5311,7 @@ function trap$1(getter, setter, curryGetter = true) {
5274
5311
  set: setter !== void 0 ? setter : invalidSetter$1.bind(null)
5275
5312
  };
5276
5313
  }
5314
+ let nameCount$1 = 0;
5277
5315
  function createValue$1(options2) {
5278
5316
  if (options2.type === "group") {
5279
5317
  return init$2(options2.value && typeof options2.value === "object" && !Array.isArray(options2.value) ? options2.value : {});
@@ -5285,6 +5323,10 @@ function createValue$1(options2) {
5285
5323
  function input$1(node, context, value, async = true) {
5286
5324
  context._value = validateInput$1(node, node.hook.input.dispatch(value));
5287
5325
  node.emit("input", context._value);
5326
+ if (node.isCreated && node.type === "input" && eq$1(context._value, context.value)) {
5327
+ node.emit("commitRaw", context.value);
5328
+ return context.settled;
5329
+ }
5288
5330
  if (context.isSettled)
5289
5331
  node.disturb();
5290
5332
  if (async) {
@@ -5315,6 +5357,7 @@ function commit$1(node, context, calm2 = true, hydrate2 = true) {
5315
5357
  context._value = context.value = node.hook.commit.dispatch(context._value);
5316
5358
  if (node.type !== "input" && hydrate2)
5317
5359
  node.hydrate();
5360
+ node.emit("commitRaw", context.value);
5318
5361
  node.emit("commit", context.value);
5319
5362
  if (calm2)
5320
5363
  node.calm();
@@ -5335,11 +5378,15 @@ function partial$1(context, { name, value, from }) {
5335
5378
  }
5336
5379
  function hydrate$1(node, context) {
5337
5380
  const _value = context._value;
5381
+ if (node.type === "list" && node.sync)
5382
+ syncListNodes$1(node, context);
5338
5383
  context.children.forEach((child) => {
5339
5384
  if (typeof _value !== "object")
5340
5385
  return;
5341
5386
  if (child.name in _value) {
5342
5387
  const childValue = child.type !== "input" || _value[child.name] && typeof _value[child.name] === "object" ? init$2(_value[child.name]) : _value[child.name];
5388
+ if (!child.isSettled || !isObject$1(childValue) && eq$1(childValue, child._value))
5389
+ return;
5343
5390
  child.input(childValue, false);
5344
5391
  } else {
5345
5392
  if (node.type !== "list" || typeof child.name === "number") {
@@ -5357,6 +5404,58 @@ function hydrate$1(node, context) {
5357
5404
  });
5358
5405
  return node;
5359
5406
  }
5407
+ function syncListNodes$1(node, context) {
5408
+ const _value = node._value;
5409
+ if (!Array.isArray(_value))
5410
+ return;
5411
+ const newChildren = [];
5412
+ const unused = new Set(context.children);
5413
+ const placeholderValues = /* @__PURE__ */ new Map();
5414
+ _value.forEach((value, i2) => {
5415
+ if (context.children[i2] && context.children[i2]._value === value) {
5416
+ newChildren.push(context.children[i2]);
5417
+ unused.delete(context.children[i2]);
5418
+ } else {
5419
+ newChildren.push(null);
5420
+ placeholderValues.set(value, i2);
5421
+ }
5422
+ });
5423
+ if (unused.size && placeholderValues.size) {
5424
+ unused.forEach((child) => {
5425
+ if (placeholderValues.has(child._value)) {
5426
+ newChildren[placeholderValues.get(child._value)] = child;
5427
+ unused.delete(child);
5428
+ placeholderValues.delete(child._value);
5429
+ }
5430
+ });
5431
+ }
5432
+ while (unused.size && placeholderValues.size) {
5433
+ const child = unused.values().next().value;
5434
+ const placeholders = placeholderValues[Symbol.iterator]();
5435
+ const [value, index2] = placeholders.next().value;
5436
+ newChildren[index2] = child;
5437
+ unused.delete(child);
5438
+ placeholderValues.delete(value);
5439
+ }
5440
+ if (placeholderValues.size) {
5441
+ placeholderValues.forEach((index2, value) => {
5442
+ newChildren[index2] = createPlaceholder$1({ value });
5443
+ });
5444
+ }
5445
+ if (unused.size) {
5446
+ unused.forEach((child) => {
5447
+ if (!("__FKP" in child)) {
5448
+ const parent = child._c.parent;
5449
+ if (!parent || isPlaceholder$1(parent))
5450
+ return;
5451
+ parent.ledger.unmerge(child);
5452
+ child._c.parent = null;
5453
+ child.destroy();
5454
+ }
5455
+ });
5456
+ }
5457
+ context.children = newChildren;
5458
+ }
5360
5459
  function disturb$1(node, context) {
5361
5460
  var _a;
5362
5461
  if (context._d <= 0) {
@@ -5396,8 +5495,14 @@ function destroy$1(node, context) {
5396
5495
  node.parent.remove(node);
5397
5496
  }
5398
5497
  deregister$1(node);
5399
- context._value = context.value = void 0;
5400
5498
  node.emit("destroyed", node);
5499
+ context._e.flush();
5500
+ context._value = context.value = void 0;
5501
+ for (const property in context.context) {
5502
+ delete context.context[property];
5503
+ }
5504
+ context.plugins.clear();
5505
+ context.context = null;
5401
5506
  }
5402
5507
  function define$1(node, context, definition2) {
5403
5508
  context.type = definition2.type;
@@ -5456,7 +5561,13 @@ function addChild$1(parent, parentContext, child, listIndex) {
5456
5561
  }
5457
5562
  if (!parentContext.children.includes(child)) {
5458
5563
  if (listIndex !== void 0 && parent.type === "list") {
5459
- parentContext.children.splice(listIndex, 0, child);
5564
+ const existingNode = parentContext.children[listIndex];
5565
+ if (existingNode && "__FKP" in existingNode) {
5566
+ child._c.uid = existingNode.uid;
5567
+ parentContext.children.splice(listIndex, 1, child);
5568
+ } else {
5569
+ parentContext.children.splice(listIndex, 0, child);
5570
+ }
5460
5571
  if (Array.isArray(parent.value) && parent.value.length < parentContext.children.length) {
5461
5572
  parent.disturb().calm({
5462
5573
  name: listIndex,
@@ -5528,13 +5639,18 @@ function removeChild$1(node, context, child) {
5528
5639
  return node;
5529
5640
  }
5530
5641
  function eachChild$1(_node, context, callback) {
5531
- context.children.forEach((child) => callback(child));
5642
+ context.children.forEach((child) => !("__FKP" in child) && callback(child));
5532
5643
  }
5533
- function walkTree$1(_node, context, callback, stopIfFalse = false) {
5534
- context.children.forEach((child) => {
5535
- if (callback(child) !== false || !stopIfFalse) {
5536
- child.walk(callback, stopIfFalse);
5537
- }
5644
+ function walkTree$1(_node, context, callback, stopIfFalse = false, skipSubtreeOnFalse = false) {
5645
+ context.children.some((child) => {
5646
+ if ("__FKP" in child)
5647
+ return false;
5648
+ const val = callback(child);
5649
+ if (stopIfFalse && val === false)
5650
+ return true;
5651
+ if (skipSubtreeOnFalse && val === false)
5652
+ return false;
5653
+ return child.walk(callback, stopIfFalse, skipSubtreeOnFalse);
5538
5654
  });
5539
5655
  }
5540
5656
  function resetConfig$1(node, context) {
@@ -5618,7 +5734,7 @@ function getNode$2(node, _context, locator) {
5618
5734
  pointer = node;
5619
5735
  break;
5620
5736
  default:
5621
- pointer = pointer.children.find((c2) => String(c2.name) === String(name)) || select$3(pointer, name);
5737
+ pointer = pointer.children.find((c2) => !("__FKP" in c2) && String(c2.name) === String(name)) || select$3(pointer, name);
5622
5738
  }
5623
5739
  }
5624
5740
  return pointer || void 0;
@@ -5645,6 +5761,8 @@ function bfs$1(tree, searchValue, searchGoal = "name") {
5645
5761
  const stack = [tree];
5646
5762
  while (stack.length) {
5647
5763
  const node = stack.shift();
5764
+ if ("__FKP" in node)
5765
+ continue;
5648
5766
  if (search(node, searchValue))
5649
5767
  return node;
5650
5768
  stack.push(...node.children);
@@ -5702,7 +5820,7 @@ function createConfig$2(target = {}, parent) {
5702
5820
  if (node) {
5703
5821
  node.emit(`config:${prop}`, value, false);
5704
5822
  configChange$1(node, prop, value);
5705
- node.walk((n) => configChange$1(n, prop, value), true);
5823
+ node.walk((n) => configChange$1(n, prop, value), false, true);
5706
5824
  }
5707
5825
  return didSet;
5708
5826
  }
@@ -5752,6 +5870,32 @@ function clearErrors$1$1(node, context, clearChildErrors = true, sourceKey) {
5752
5870
  }
5753
5871
  return node;
5754
5872
  }
5873
+ function extend$2(node, context, property, trap2) {
5874
+ context.traps.set(property, trap2);
5875
+ return node;
5876
+ }
5877
+ function createPlaceholder$1(options2) {
5878
+ var _a, _b, _f, _g;
5879
+ return {
5880
+ __FKP: true,
5881
+ uid: Symbol(),
5882
+ name: (_a = options2 === null || options2 === void 0 ? void 0 : options2.name) !== null && _a !== void 0 ? _a : `p_${nameCount$1++}`,
5883
+ value: (_b = options2 === null || options2 === void 0 ? void 0 : options2.value) !== null && _b !== void 0 ? _b : null,
5884
+ _value: (_f = options2 === null || options2 === void 0 ? void 0 : options2.value) !== null && _f !== void 0 ? _f : null,
5885
+ type: (_g = options2 === null || options2 === void 0 ? void 0 : options2.type) !== null && _g !== void 0 ? _g : "input",
5886
+ use: () => {
5887
+ },
5888
+ input(value) {
5889
+ this._value = value;
5890
+ this.value = value;
5891
+ return Promise.resolve();
5892
+ },
5893
+ isSettled: true
5894
+ };
5895
+ }
5896
+ function isPlaceholder$1(node) {
5897
+ return "__FKP" in node;
5898
+ }
5755
5899
  const autoFocusTypes = [
5756
5900
  "email",
5757
5901
  "number",
@@ -5772,8 +5916,8 @@ function useSteps() {
5772
5916
  return x2.value[x2.value.length - 1];
5773
5917
  };
5774
5918
  const findFirstInput = (n) => {
5775
- for (var i3 = 0; i3 < n.children.length; i3++) {
5776
- const child = n.children[i3];
5919
+ for (var i2 = 0; i2 < n.children.length; i2++) {
5920
+ const child = n.children[i2];
5777
5921
  if ((child.type === "input" || child.type === "list") && !(child.context.type === "hidden")) {
5778
5922
  return child;
5779
5923
  }
@@ -5862,14 +6006,15 @@ function useSteps() {
5862
6006
  return false;
5863
6007
  }
5864
6008
  }
6009
+ var nextStepsOverride;
5865
6010
  if (preStep) {
5866
- preStep(node);
6011
+ nextStepsOverride = preStep(node);
5867
6012
  }
5868
- if (node.props.attrs.nextStepMap) {
5869
- const nextSteps = getNextStepsFromMap(node, node.props.attrs.nextStepMap);
5870
- if (nextSteps) {
5871
- setStepQueue([activeStep2.value, ...nextSteps]);
5872
- }
6013
+ if (!nextStepsOverride && node.props.attrs.nextStepMap) {
6014
+ nextStepsOverride = getNextStepsFromMap(node, node.props.attrs.nextStepMap);
6015
+ }
6016
+ if (nextStepsOverride) {
6017
+ setStepQueue([activeStep2.value, ...nextStepsOverride]);
5873
6018
  }
5874
6019
  if (typeof nextStep === "number") {
5875
6020
  advanceStep(nextStep);
@@ -6169,7 +6314,7 @@ function isPojo(o) {
6169
6314
  }
6170
6315
  return true;
6171
6316
  }
6172
- function extend(original, additional, extendArrays = false, ignoreUndefined = false) {
6317
+ function extend$1(original, additional, extendArrays = false, ignoreUndefined = false) {
6173
6318
  if (additional === null)
6174
6319
  return null;
6175
6320
  const merged = {};
@@ -6185,7 +6330,7 @@ function extend(original, additional, extendArrays = false, ignoreUndefined = fa
6185
6330
  continue;
6186
6331
  }
6187
6332
  if (isPojo(original[key]) && isPojo(additional[key])) {
6188
- merged[key] = extend(original[key], additional[key], extendArrays, ignoreUndefined);
6333
+ merged[key] = extend$1(original[key], additional[key], extendArrays, ignoreUndefined);
6189
6334
  } else {
6190
6335
  merged[key] = additional[key];
6191
6336
  }
@@ -6216,16 +6361,16 @@ function isQuotedString(str) {
6216
6361
  function rmEscapes(str) {
6217
6362
  if (!str.length)
6218
6363
  return "";
6219
- let clean = "";
6364
+ let clean2 = "";
6220
6365
  let lastChar = "";
6221
6366
  for (let p2 = 0; p2 < str.length; p2++) {
6222
6367
  const char = str.charAt(p2);
6223
6368
  if (char !== "\\" || lastChar === "\\") {
6224
- clean += char;
6369
+ clean2 += char;
6225
6370
  }
6226
6371
  lastChar = char;
6227
6372
  }
6228
- return clean;
6373
+ return clean2;
6229
6374
  }
6230
6375
  function nodeProps(...sets) {
6231
6376
  return sets.reduce((valid, props2) => {
@@ -6264,30 +6409,30 @@ function parseArgs(str) {
6264
6409
  return args;
6265
6410
  }
6266
6411
  function except(obj, toRemove) {
6267
- const clean = {};
6412
+ const clean2 = {};
6268
6413
  const exps = toRemove.filter((n) => n instanceof RegExp);
6269
6414
  const keysToRemove = new Set(toRemove);
6270
6415
  for (const key in obj) {
6271
6416
  if (!keysToRemove.has(key) && !exps.some((exp) => exp.test(key))) {
6272
- clean[key] = obj[key];
6417
+ clean2[key] = obj[key];
6273
6418
  }
6274
6419
  }
6275
- return clean;
6420
+ return clean2;
6276
6421
  }
6277
6422
  function only(obj, include) {
6278
- const clean = {};
6423
+ const clean2 = {};
6279
6424
  const exps = include.filter((n) => n instanceof RegExp);
6280
6425
  include.forEach((key) => {
6281
6426
  if (!(key instanceof RegExp)) {
6282
- clean[key] = obj[key];
6427
+ clean2[key] = obj[key];
6283
6428
  }
6284
6429
  });
6285
6430
  Object.keys(obj).forEach((key) => {
6286
6431
  if (exps.some((exp) => exp.test(key))) {
6287
- clean[key] = obj[key];
6432
+ clean2[key] = obj[key];
6288
6433
  }
6289
6434
  });
6290
- return clean;
6435
+ return clean2;
6291
6436
  }
6292
6437
  function camel(str) {
6293
6438
  return str.replace(/-([a-z0-9])/gi, (_s, g) => g.toUpperCase());
@@ -6343,12 +6488,12 @@ function getAt(obj, addr) {
6343
6488
  return null;
6344
6489
  const segments = addr.split(".");
6345
6490
  let o = obj;
6346
- for (const i3 in segments) {
6347
- const segment = segments[i3];
6491
+ for (const i2 in segments) {
6492
+ const segment = segments[i2];
6348
6493
  if (has(o, segment)) {
6349
6494
  o = o[segment];
6350
6495
  }
6351
- if (+i3 === segments.length - 1)
6496
+ if (+i2 === segments.length - 1)
6352
6497
  return o;
6353
6498
  if (!o || typeof o !== "object")
6354
6499
  return null;
@@ -6378,7 +6523,17 @@ function applyExplicit(original, obj, explicit) {
6378
6523
  }
6379
6524
  return obj;
6380
6525
  }
6381
- function createDispatcher$1() {
6526
+ function oncePerTick(fn) {
6527
+ let called = false;
6528
+ return (...args) => {
6529
+ if (called)
6530
+ return;
6531
+ called = true;
6532
+ queueMicrotask(() => called = false);
6533
+ return fn(...args);
6534
+ };
6535
+ }
6536
+ function createDispatcher() {
6382
6537
  const middleware = [];
6383
6538
  let currentIndex = 0;
6384
6539
  const use2 = (dispatchable) => middleware.push(dispatchable);
@@ -6422,6 +6577,11 @@ function createEmitter() {
6422
6577
  node.bubble(event);
6423
6578
  }
6424
6579
  };
6580
+ emitter.flush = () => {
6581
+ listeners.clear();
6582
+ receipts2.clear();
6583
+ buffer === null || buffer === void 0 ? void 0 : buffer.clear();
6584
+ };
6425
6585
  emitter.on = (eventName, listener) => {
6426
6586
  const [event, ...modifiers] = eventName.split(".");
6427
6587
  const receipt = listener.receipt || token();
@@ -6488,13 +6648,13 @@ function off(node, context, receipt) {
6488
6648
  context._e.off(receipt);
6489
6649
  return node;
6490
6650
  }
6491
- const errorHandler = createDispatcher$1();
6651
+ const errorHandler = createDispatcher();
6492
6652
  errorHandler((error2, next) => {
6493
6653
  if (!error2.message)
6494
6654
  error2.message = String(`E${error2.code}`);
6495
6655
  return next(error2);
6496
6656
  });
6497
- const warningHandler = createDispatcher$1();
6657
+ const warningHandler = createDispatcher();
6498
6658
  warningHandler((warning, next) => {
6499
6659
  if (!warning.message)
6500
6660
  warning.message = String(`W${warning.code}`);
@@ -6886,10 +7046,13 @@ function reset(id, resetTo) {
6886
7046
  if (node) {
6887
7047
  const initial = (n) => cloneAny(n.props.initial) || (n.type === "group" ? {} : n.type === "list" ? [] : void 0);
6888
7048
  node._e.pause(node);
6889
- node.input(cloneAny(resetTo) || initial(node), false);
7049
+ const resetValue2 = cloneAny(resetTo);
7050
+ if (resetTo && !empty(resetTo)) {
7051
+ node.props.initial = isObject(resetValue2) ? init$1(resetValue2) : resetValue2;
7052
+ }
7053
+ node.input(initial(node), false);
6890
7054
  node.walk((child) => child.input(initial(child), false));
6891
- const finalInit = initial(node);
6892
- node.input(typeof finalInit === "object" ? cloneAny(resetTo) || init$1(finalInit) : finalInit, false);
7055
+ node.input(empty(resetValue2) && resetValue2 ? resetValue2 : initial(node), false);
6893
7056
  node._e.play(node);
6894
7057
  clearState(node);
6895
7058
  node.emit("reset", node);
@@ -6930,6 +7093,7 @@ const traps = {
6930
7093
  define: trap(define),
6931
7094
  disturb: trap(disturb),
6932
7095
  destroy: trap(destroy),
7096
+ extend: trap(extend),
6933
7097
  hydrate: trap(hydrate),
6934
7098
  index: trap(getIndex, setIndex, false),
6935
7099
  input: trap(input),
@@ -6965,7 +7129,7 @@ function createHooks() {
6965
7129
  return new Proxy(hooks, {
6966
7130
  get(_, property) {
6967
7131
  if (!hooks.has(property)) {
6968
- hooks.set(property, createDispatcher$1());
7132
+ hooks.set(property, createDispatcher());
6969
7133
  }
6970
7134
  return hooks.get(property);
6971
7135
  }
@@ -6990,6 +7154,10 @@ function createValue(options2) {
6990
7154
  function input(node, context, value, async = true) {
6991
7155
  context._value = validateInput(node, node.hook.input.dispatch(value));
6992
7156
  node.emit("input", context._value);
7157
+ if (node.isCreated && node.type === "input" && eq(context._value, context.value)) {
7158
+ node.emit("commitRaw", context.value);
7159
+ return context.settled;
7160
+ }
6993
7161
  if (context.isSettled)
6994
7162
  node.disturb();
6995
7163
  if (async) {
@@ -7020,6 +7188,7 @@ function commit(node, context, calm2 = true, hydrate2 = true) {
7020
7188
  context._value = context.value = node.hook.commit.dispatch(context._value);
7021
7189
  if (node.type !== "input" && hydrate2)
7022
7190
  node.hydrate();
7191
+ node.emit("commitRaw", context.value);
7023
7192
  node.emit("commit", context.value);
7024
7193
  if (calm2)
7025
7194
  node.calm();
@@ -7040,11 +7209,15 @@ function partial(context, { name, value, from }) {
7040
7209
  }
7041
7210
  function hydrate(node, context) {
7042
7211
  const _value = context._value;
7212
+ if (node.type === "list" && node.sync)
7213
+ syncListNodes(node, context);
7043
7214
  context.children.forEach((child) => {
7044
7215
  if (typeof _value !== "object")
7045
7216
  return;
7046
7217
  if (child.name in _value) {
7047
7218
  const childValue = child.type !== "input" || _value[child.name] && typeof _value[child.name] === "object" ? init$1(_value[child.name]) : _value[child.name];
7219
+ if (!child.isSettled || !isObject(childValue) && eq(childValue, child._value))
7220
+ return;
7048
7221
  child.input(childValue, false);
7049
7222
  } else {
7050
7223
  if (node.type !== "list" || typeof child.name === "number") {
@@ -7062,6 +7235,58 @@ function hydrate(node, context) {
7062
7235
  });
7063
7236
  return node;
7064
7237
  }
7238
+ function syncListNodes(node, context) {
7239
+ const _value = node._value;
7240
+ if (!Array.isArray(_value))
7241
+ return;
7242
+ const newChildren = [];
7243
+ const unused = new Set(context.children);
7244
+ const placeholderValues = /* @__PURE__ */ new Map();
7245
+ _value.forEach((value, i2) => {
7246
+ if (context.children[i2] && context.children[i2]._value === value) {
7247
+ newChildren.push(context.children[i2]);
7248
+ unused.delete(context.children[i2]);
7249
+ } else {
7250
+ newChildren.push(null);
7251
+ placeholderValues.set(value, i2);
7252
+ }
7253
+ });
7254
+ if (unused.size && placeholderValues.size) {
7255
+ unused.forEach((child) => {
7256
+ if (placeholderValues.has(child._value)) {
7257
+ newChildren[placeholderValues.get(child._value)] = child;
7258
+ unused.delete(child);
7259
+ placeholderValues.delete(child._value);
7260
+ }
7261
+ });
7262
+ }
7263
+ while (unused.size && placeholderValues.size) {
7264
+ const child = unused.values().next().value;
7265
+ const placeholders = placeholderValues[Symbol.iterator]();
7266
+ const [value, index2] = placeholders.next().value;
7267
+ newChildren[index2] = child;
7268
+ unused.delete(child);
7269
+ placeholderValues.delete(value);
7270
+ }
7271
+ if (placeholderValues.size) {
7272
+ placeholderValues.forEach((index2, value) => {
7273
+ newChildren[index2] = createPlaceholder({ value });
7274
+ });
7275
+ }
7276
+ if (unused.size) {
7277
+ unused.forEach((child) => {
7278
+ if (!("__FKP" in child)) {
7279
+ const parent = child._c.parent;
7280
+ if (!parent || isPlaceholder(parent))
7281
+ return;
7282
+ parent.ledger.unmerge(child);
7283
+ child._c.parent = null;
7284
+ child.destroy();
7285
+ }
7286
+ });
7287
+ }
7288
+ context.children = newChildren;
7289
+ }
7065
7290
  function disturb(node, context) {
7066
7291
  var _a;
7067
7292
  if (context._d <= 0) {
@@ -7101,8 +7326,14 @@ function destroy(node, context) {
7101
7326
  node.parent.remove(node);
7102
7327
  }
7103
7328
  deregister(node);
7104
- context._value = context.value = void 0;
7105
7329
  node.emit("destroyed", node);
7330
+ context._e.flush();
7331
+ context._value = context.value = void 0;
7332
+ for (const property in context.context) {
7333
+ delete context.context[property];
7334
+ }
7335
+ context.plugins.clear();
7336
+ context.context = null;
7106
7337
  }
7107
7338
  function define(node, context, definition2) {
7108
7339
  context.type = definition2.type;
@@ -7161,7 +7392,13 @@ function addChild(parent, parentContext, child, listIndex) {
7161
7392
  }
7162
7393
  if (!parentContext.children.includes(child)) {
7163
7394
  if (listIndex !== void 0 && parent.type === "list") {
7164
- parentContext.children.splice(listIndex, 0, child);
7395
+ const existingNode = parentContext.children[listIndex];
7396
+ if (existingNode && "__FKP" in existingNode) {
7397
+ child._c.uid = existingNode.uid;
7398
+ parentContext.children.splice(listIndex, 1, child);
7399
+ } else {
7400
+ parentContext.children.splice(listIndex, 0, child);
7401
+ }
7165
7402
  if (Array.isArray(parent.value) && parent.value.length < parentContext.children.length) {
7166
7403
  parent.disturb().calm({
7167
7404
  name: listIndex,
@@ -7233,13 +7470,18 @@ function removeChild(node, context, child) {
7233
7470
  return node;
7234
7471
  }
7235
7472
  function eachChild(_node, context, callback) {
7236
- context.children.forEach((child) => callback(child));
7473
+ context.children.forEach((child) => !("__FKP" in child) && callback(child));
7237
7474
  }
7238
- function walkTree(_node, context, callback, stopIfFalse = false) {
7239
- context.children.forEach((child) => {
7240
- if (callback(child) !== false || !stopIfFalse) {
7241
- child.walk(callback, stopIfFalse);
7242
- }
7475
+ function walkTree(_node, context, callback, stopIfFalse = false, skipSubtreeOnFalse = false) {
7476
+ context.children.some((child) => {
7477
+ if ("__FKP" in child)
7478
+ return false;
7479
+ const val = callback(child);
7480
+ if (stopIfFalse && val === false)
7481
+ return true;
7482
+ if (skipSubtreeOnFalse && val === false)
7483
+ return false;
7484
+ return child.walk(callback, stopIfFalse, skipSubtreeOnFalse);
7243
7485
  });
7244
7486
  }
7245
7487
  function resetConfig(node, context) {
@@ -7323,7 +7565,7 @@ function getNode(node, _context, locator) {
7323
7565
  pointer = node;
7324
7566
  break;
7325
7567
  default:
7326
- pointer = pointer.children.find((c2) => String(c2.name) === String(name)) || select$2(pointer, name);
7568
+ pointer = pointer.children.find((c2) => !("__FKP" in c2) && String(c2.name) === String(name)) || select$2(pointer, name);
7327
7569
  }
7328
7570
  }
7329
7571
  return pointer || void 0;
@@ -7350,6 +7592,8 @@ function bfs(tree, searchValue, searchGoal = "name") {
7350
7592
  const stack = [tree];
7351
7593
  while (stack.length) {
7352
7594
  const node = stack.shift();
7595
+ if ("__FKP" in node)
7596
+ continue;
7353
7597
  if (search(node, searchValue))
7354
7598
  return node;
7355
7599
  stack.push(...node.children);
@@ -7407,7 +7651,7 @@ function createConfig(target = {}, parent) {
7407
7651
  if (node) {
7408
7652
  node.emit(`config:${prop}`, value, false);
7409
7653
  configChange(node, prop, value);
7410
- node.walk((n) => configChange(n, prop, value), true);
7654
+ node.walk((n) => configChange(n, prop, value), false, true);
7411
7655
  }
7412
7656
  return didSet;
7413
7657
  }
@@ -7503,6 +7747,10 @@ function createProps(initial) {
7503
7747
  }
7504
7748
  });
7505
7749
  }
7750
+ function extend(node, context, property, trap2) {
7751
+ context.traps.set(property, trap2);
7752
+ return node;
7753
+ }
7506
7754
  function findDefinition(node, plugins) {
7507
7755
  if (node.props.definition)
7508
7756
  return node.define(node.props.definition);
@@ -7520,6 +7768,7 @@ function createContext(options2) {
7520
7768
  return {
7521
7769
  _d: 0,
7522
7770
  _e: createEmitter(),
7771
+ uid: Symbol(),
7523
7772
  _resolve: false,
7524
7773
  _tmo: false,
7525
7774
  _value: value,
@@ -7535,6 +7784,7 @@ function createContext(options2) {
7535
7784
  props: createProps(value),
7536
7785
  settled: Promise.resolve(value),
7537
7786
  store: createStore(true),
7787
+ sync: options2.sync || false,
7538
7788
  traps: createTraps(),
7539
7789
  type: options2.type || "input",
7540
7790
  value
@@ -7570,6 +7820,28 @@ function nodeInit(node, options2) {
7570
7820
  node.isCreated = true;
7571
7821
  return node;
7572
7822
  }
7823
+ function createPlaceholder(options2) {
7824
+ var _a, _b, _f, _g;
7825
+ return {
7826
+ __FKP: true,
7827
+ uid: Symbol(),
7828
+ name: (_a = options2 === null || options2 === void 0 ? void 0 : options2.name) !== null && _a !== void 0 ? _a : `p_${nameCount++}`,
7829
+ value: (_b = options2 === null || options2 === void 0 ? void 0 : options2.value) !== null && _b !== void 0 ? _b : null,
7830
+ _value: (_f = options2 === null || options2 === void 0 ? void 0 : options2.value) !== null && _f !== void 0 ? _f : null,
7831
+ type: (_g = options2 === null || options2 === void 0 ? void 0 : options2.type) !== null && _g !== void 0 ? _g : "input",
7832
+ use: () => {
7833
+ },
7834
+ input(value) {
7835
+ this._value = value;
7836
+ this.value = value;
7837
+ return Promise.resolve();
7838
+ },
7839
+ isSettled: true
7840
+ };
7841
+ }
7842
+ function isPlaceholder(node) {
7843
+ return "__FKP" in node;
7844
+ }
7573
7845
  function createNode(options2) {
7574
7846
  const ops = options2 || {};
7575
7847
  const context = createContext(ops);
@@ -7662,11 +7934,11 @@ function compile(expr) {
7662
7934
  const candidates = symbols.filter((s3) => s3.startsWith(char));
7663
7935
  if (!candidates.length)
7664
7936
  return false;
7665
- return candidates.find((symbol) => {
7666
- if (expression.length >= p2 + symbol.length) {
7667
- const nextChars = expression.substring(p2, p2 + symbol.length);
7668
- if (nextChars === symbol)
7669
- return symbol;
7937
+ return candidates.find((symbol2) => {
7938
+ if (expression.length >= p2 + symbol2.length) {
7939
+ const nextChars = expression.substring(p2, p2 + symbol2.length);
7940
+ if (nextChars === symbol2)
7941
+ return symbol2;
7670
7942
  }
7671
7943
  return false;
7672
7944
  });
@@ -7952,9 +8224,9 @@ function clearErrors(id, clearChildren = true) {
7952
8224
  warn(652, id);
7953
8225
  }
7954
8226
  }
7955
- const FORMKIT_VERSION = "0.16.4";
8227
+ const FORMKIT_VERSION = "0.17.0";
7956
8228
  function createLibraryPlugin(...libraries) {
7957
- const library = libraries.reduce((merged, lib) => extend(merged, lib), {});
8229
+ const library = libraries.reduce((merged, lib) => extend$1(merged, lib), {});
7958
8230
  const plugin2 = () => {
7959
8231
  };
7960
8232
  plugin2.library = function(node) {
@@ -7966,7 +8238,7 @@ function createLibraryPlugin(...libraries) {
7966
8238
  return plugin2;
7967
8239
  }
7968
8240
  function normalizeOptions(options2) {
7969
- let i3 = 1;
8241
+ let i2 = 1;
7970
8242
  if (Array.isArray(options2)) {
7971
8243
  return options2.map((option2) => {
7972
8244
  if (typeof option2 === "string" || typeof option2 === "number") {
@@ -7978,7 +8250,7 @@ function normalizeOptions(options2) {
7978
8250
  if (typeof option2 == "object") {
7979
8251
  if ("value" in option2 && typeof option2.value !== "string") {
7980
8252
  Object.assign(option2, {
7981
- value: `__mask_${i3++}`,
8253
+ value: `__mask_${i2++}`,
7982
8254
  __original: option2.value
7983
8255
  });
7984
8256
  }
@@ -8025,6 +8297,51 @@ function options(node) {
8025
8297
  return next(prop);
8026
8298
  });
8027
8299
  }
8300
+ function createSection(section, el, fragment2 = false) {
8301
+ return (...children) => {
8302
+ const extendable = (extensions) => {
8303
+ const node = !el || typeof el === "string" ? { $el: el } : el();
8304
+ if (isDOM(node) || isComponent$1(node)) {
8305
+ if (!node.meta) {
8306
+ node.meta = { section };
8307
+ }
8308
+ if (children.length && !node.children) {
8309
+ node.children = [
8310
+ ...children.map((child) => typeof child === "string" ? child : child(extensions))
8311
+ ];
8312
+ }
8313
+ if (isDOM(node)) {
8314
+ node.attrs = __spreadValues({
8315
+ class: `$classes.${section}`
8316
+ }, node.attrs || {});
8317
+ }
8318
+ }
8319
+ return {
8320
+ if: `$slots.${section}`,
8321
+ then: `$slots.${section}`,
8322
+ else: section in extensions ? extendSchema(node, extensions[section]) : node
8323
+ };
8324
+ };
8325
+ extendable._s = section;
8326
+ return fragment2 ? createRoot(extendable) : extendable;
8327
+ };
8328
+ }
8329
+ function createRoot(rootSection) {
8330
+ return (extensions) => {
8331
+ return [rootSection(extensions)];
8332
+ };
8333
+ }
8334
+ function isSchemaObject(schema) {
8335
+ return typeof schema === "object" && ("$el" in schema || "$cmp" in schema || "$formkit" in schema);
8336
+ }
8337
+ function extendSchema(schema, extension = {}) {
8338
+ if (typeof schema === "string") {
8339
+ return isSchemaObject(extension) || typeof extension === "string" ? extension : schema;
8340
+ } else if (Array.isArray(schema)) {
8341
+ return isSchemaObject(extension) ? extension : schema;
8342
+ }
8343
+ return extend$1(schema, extension);
8344
+ }
8028
8345
  const outer = createSection("outer", () => ({
8029
8346
  $el: "div",
8030
8347
  attrs: {
@@ -8042,7 +8359,7 @@ const outer = createSection("outer", () => ({
8042
8359
  "data-prefix-icon-click": "$onPrefixIconClick !== undefined || undefined",
8043
8360
  "data-suffix-icon-click": "$onSuffixIconClick !== undefined || undefined"
8044
8361
  }
8045
- }), true);
8362
+ }));
8046
8363
  const inner = createSection("inner", "div");
8047
8364
  const wrapper = createSection("wrapper", "div");
8048
8365
  const label = createSection("label", () => ({
@@ -8216,7 +8533,7 @@ const formInput = createSection("form", () => ({
8216
8533
  onSubmit: "$handlers.submit",
8217
8534
  "data-loading": "$state.loading || undefined"
8218
8535
  }
8219
- }), true);
8536
+ }));
8220
8537
  const actions = createSection("actions", () => ({
8221
8538
  $el: "div",
8222
8539
  if: "$actions"
@@ -8314,7 +8631,7 @@ function normalizeBoxes(node) {
8314
8631
  prop.value = prop.value.map((option2) => {
8315
8632
  var _a;
8316
8633
  if (!((_a = option2.attrs) === null || _a === void 0 ? void 0 : _a.id)) {
8317
- return extend(option2, {
8634
+ return extend$1(option2, {
8318
8635
  attrs: {
8319
8636
  id: `${node.name}-option-${slugify(String(option2.value))}`
8320
8637
  }
@@ -8386,6 +8703,7 @@ function checkboxes(node) {
8386
8703
  function disables(node) {
8387
8704
  node.on("created", () => {
8388
8705
  node.props.disabled = undefine(node.props.disabled);
8706
+ node.config.disabled = undefine(node.props.disabled);
8389
8707
  });
8390
8708
  node.hook.prop(({ prop, value }, next) => {
8391
8709
  value = prop === "disabled" ? undefine(value) : value;
@@ -8394,9 +8712,6 @@ function disables(node) {
8394
8712
  node.on("prop:disabled", ({ payload: value }) => {
8395
8713
  node.config.disabled = undefine(value);
8396
8714
  });
8397
- node.on("created", () => {
8398
- node.config.disabled = undefine(node.props.disabled);
8399
- });
8400
8715
  }
8401
8716
  function localize$2(key, value) {
8402
8717
  return (node) => {
@@ -8458,9 +8773,9 @@ function files(node) {
8458
8773
  var _a, _b;
8459
8774
  const files2 = [];
8460
8775
  if (e2.target instanceof HTMLInputElement && e2.target.files) {
8461
- for (let i3 = 0; i3 < e2.target.files.length; i3++) {
8776
+ for (let i2 = 0; i2 < e2.target.files.length; i2++) {
8462
8777
  let file2;
8463
- if (file2 = e2.target.files.item(i3)) {
8778
+ if (file2 = e2.target.files.item(i2)) {
8464
8779
  files2.push({ name: file2.name, file: file2 });
8465
8780
  }
8466
8781
  }
@@ -8571,7 +8886,10 @@ function radios(node) {
8571
8886
  node.on("created", () => {
8572
8887
  var _a, _b;
8573
8888
  if (!Array.isArray(node.props.options)) {
8574
- warn(350, node);
8889
+ warn(350, {
8890
+ node,
8891
+ inputType: "radio"
8892
+ });
8575
8893
  }
8576
8894
  if ((_a = node.context) === null || _a === void 0 ? void 0 : _a.handlers) {
8577
8895
  node.context.handlers.toggleChecked = toggleChecked.bind(null, node);
@@ -8683,60 +9001,15 @@ function defaultIcon(sectionKey, defaultIcon2) {
8683
9001
  }
8684
9002
  };
8685
9003
  }
8686
- function isSchemaObject(schema) {
8687
- return typeof schema === "object" && ("$el" in schema || "$cmp" in schema || "$formkit" in schema);
8688
- }
8689
9004
  function isSlotCondition(node) {
8690
9005
  if (isConditional(node) && node.if && node.if.startsWith("$slots.") && typeof node.then === "string" && node.then.startsWith("$slots.") && "else" in node) {
8691
9006
  return true;
8692
9007
  }
8693
9008
  return false;
8694
9009
  }
8695
- function extendSchema(schema, extension = {}) {
8696
- if (typeof schema === "string") {
8697
- return isSchemaObject(extension) || typeof extension === "string" ? extension : schema;
8698
- } else if (Array.isArray(schema)) {
8699
- return isSchemaObject(extension) ? extension : schema;
8700
- }
8701
- return extend(schema, extension);
8702
- }
8703
9010
  function useSchema(inputSection) {
8704
9011
  return outer(wrapper(label("$label"), inner(prefix(), inputSection(), suffix())), help("$help"), messages$1(message$1("$message.value")));
8705
9012
  }
8706
- function createSection(section, el, root = false) {
8707
- return (...children) => {
8708
- const extendable = (extensions) => {
8709
- const node = !el || typeof el === "string" ? { $el: el } : el();
8710
- if (isDOM(node) || isComponent$1(node)) {
8711
- if (!node.meta) {
8712
- node.meta = { section };
8713
- }
8714
- if (children.length && !node.children) {
8715
- node.children = [
8716
- ...children.map((child) => typeof child === "string" ? child : child(extensions))
8717
- ];
8718
- }
8719
- if (isDOM(node)) {
8720
- node.attrs = __spreadValues({
8721
- class: `$classes.${section}`
8722
- }, node.attrs || {});
8723
- }
8724
- }
8725
- return {
8726
- if: `$slots.${section}`,
8727
- then: `$slots.${section}`,
8728
- else: section in extensions ? extendSchema(node, extensions[section]) : node
8729
- };
8730
- };
8731
- extendable._s = section;
8732
- return root ? createRoot(extendable) : extendable;
8733
- };
8734
- }
8735
- function createRoot(rootSection) {
8736
- return (extensions) => {
8737
- return [rootSection(extensions)];
8738
- };
8739
- }
8740
9013
  function $if(condition, then, otherwise) {
8741
9014
  const extendable = (extensions) => {
8742
9015
  const node = then(extensions);
@@ -8773,15 +9046,13 @@ function $extend(section, extendWith) {
8773
9046
  extendable._s = section._s;
8774
9047
  return extendable;
8775
9048
  }
8776
- function $root(section) {
8777
- return createRoot(section);
8778
- }
8779
9049
  const button = {
8780
9050
  schema: outer(messages$1(message$1("$message.value")), wrapper(buttonInput(icon("prefix"), prefix(), buttonLabel("$label || $ui.submit.value"), suffix(), icon("suffix"))), help("$help")),
8781
9051
  type: "input",
8782
9052
  family: "button",
8783
9053
  props: [],
8784
- features: [localize$2("submit"), ignore]
9054
+ features: [localize$2("submit"), ignore],
9055
+ schemaMemoKey: "h6st4epl3j8"
8785
9056
  };
8786
9057
  const checkbox = {
8787
9058
  schema: outer(
@@ -8811,7 +9082,8 @@ const checkbox = {
8811
9082
  options,
8812
9083
  checkboxes,
8813
9084
  defaultIcon("decorator", "checkboxDecorator")
8814
- ]
9085
+ ],
9086
+ schemaMemoKey: "qje02tb3gu8"
8815
9087
  };
8816
9088
  const file = {
8817
9089
  schema: outer(wrapper(label("$label"), inner(icon("prefix", "label"), prefix(), fileInput(), fileList(fileItem(icon("fileItem"), fileName("$file.name"), $if("$value.length === 1", fileRemove(icon("fileRemove"), "$ui.remove.value")))), $if("$value.length > 1", fileRemove("$ui.removeAll.value")), noFiles(icon("noFiles"), "$ui.noFiles.value"), suffix(), icon("suffix"))), help("$help"), messages$1(message$1("$message.value"))),
@@ -8823,7 +9095,8 @@ const file = {
8823
9095
  defaultIcon("fileItem", "fileItem"),
8824
9096
  defaultIcon("fileRemove", "fileRemove"),
8825
9097
  defaultIcon("noFiles", "noFiles")
8826
- ]
9098
+ ],
9099
+ schemaMemoKey: "9kqc4852fv8"
8827
9100
  };
8828
9101
  const form = {
8829
9102
  schema: formInput("$slots.default", messages$1(message$1("$message.value")), actions(submitInput())),
@@ -8836,7 +9109,8 @@ const form = {
8836
9109
  "submitBehavior",
8837
9110
  "incompleteMessage"
8838
9111
  ],
8839
- features: [form$1, disables]
9112
+ features: [form$1, disables],
9113
+ schemaMemoKey: "5bg016redjo"
8840
9114
  };
8841
9115
  const group = {
8842
9116
  schema: fragment("$slots.default"),
@@ -8845,7 +9119,7 @@ const group = {
8845
9119
  features: [disables]
8846
9120
  };
8847
9121
  const hidden = {
8848
- schema: $root(textInput()),
9122
+ schema: textInput(),
8849
9123
  type: "input",
8850
9124
  props: [],
8851
9125
  features: []
@@ -8868,9 +9142,11 @@ const radio = {
8868
9142
  value: "$option.value",
8869
9143
  checked: "$fns.isChecked($option.value)"
8870
9144
  }
8871
- }), decorator(icon("decorator")), suffix()), $if("$option.label", boxLabel("$option.label"))), boxHelp("$option.help"))))
9145
+ }), decorator(icon("decorator")), suffix()), $extend(boxLabel("$option.label"), {
9146
+ if: "$option.label"
9147
+ })), boxHelp("$option.help"))))
8872
9148
  ),
8873
- $if("$options === undefined && $help", help("$help")),
9149
+ $if("$options == undefined && $help", help("$help")),
8874
9150
  messages$1(message$1("$message.value"))
8875
9151
  ),
8876
9152
  type: "input",
@@ -8881,26 +9157,30 @@ const radio = {
8881
9157
  options,
8882
9158
  radios,
8883
9159
  defaultIcon("decorator", "radioDecorator")
8884
- ]
9160
+ ],
9161
+ schemaMemoKey: "qje02tb3gu8"
8885
9162
  };
8886
9163
  const select = {
8887
9164
  schema: outer(wrapper(label("$label"), inner(icon("prefix"), prefix(), selectInput$1($if("$slots.default", () => "$slots.default", $if("$slots.option", optionSlot, option("$option.label")))), $if("$attrs.multiple !== undefined", () => "", icon("select")), suffix(), icon("suffix"))), help("$help"), messages$1(message$1("$message.value"))),
8888
9165
  type: "input",
8889
9166
  props: ["options", "placeholder", "optionsLoader"],
8890
- features: [options, select$1, defaultIcon("select", "select")]
9167
+ features: [options, select$1, defaultIcon("select", "select")],
9168
+ schemaMemoKey: "cb119h43krg"
8891
9169
  };
8892
9170
  const textarea = {
8893
9171
  schema: outer(wrapper(label("$label"), inner(icon("prefix", "label"), prefix(), textareaInput(), suffix(), icon("suffix"))), help("$help"), messages$1(message$1("$message.value"))),
8894
9172
  type: "input",
8895
9173
  props: [],
8896
- features: [initialValue]
9174
+ features: [initialValue],
9175
+ schemaMemoKey: "b1n0td79m9g"
8897
9176
  };
8898
9177
  const text = {
8899
9178
  schema: outer(wrapper(label("$label"), inner(icon("prefix", "label"), prefix(), textInput(), suffix(), icon("suffix"))), help("$help"), messages$1(message$1("$message.value"))),
8900
9179
  type: "input",
8901
9180
  family: "text",
8902
9181
  props: [],
8903
- features: []
9182
+ features: [],
9183
+ schemaMemoKey: "c3cc4kflsg"
8904
9184
  };
8905
9185
  var index$1 = /* @__PURE__ */ Object.freeze({
8906
9186
  __proto__: null,
@@ -8941,7 +9221,7 @@ const date_after = function({ value }, compare = false) {
8941
9221
  };
8942
9222
  const alpha = function({ value }, set2 = "default") {
8943
9223
  const sets = {
8944
- default: /^[a-zA-ZÀ-ÖØ-öø-ÿĄąĆćČčĎďĘęĚ죳ŃńŇňŘřŚśŠšŤťŮůŹźŻŽžż]+$/,
9224
+ default: /^[\p{Lu}\p{L}]+$/u,
8945
9225
  latin: /^[a-zA-Z]+$/
8946
9226
  };
8947
9227
  const selectedSet = has(sets, set2) ? set2 : "default";
@@ -8949,7 +9229,7 @@ const alpha = function({ value }, set2 = "default") {
8949
9229
  };
8950
9230
  const alpha_spaces = function({ value }, set2 = "default") {
8951
9231
  const sets = {
8952
- default: /^[a-zA-ZÀ-ÖØ-öø-ÿĄąĆćČčĎďĘęĚ죳ŃńŇňŘřŚśŠšŤťŮůŹźŻŽžż ]+$/,
9232
+ default: /^[\p{Lu}\p{L} ]+$/u,
8953
9233
  latin: /^[a-zA-Z ]+$/
8954
9234
  };
8955
9235
  const selectedSet = has(sets, set2) ? set2 : "default";
@@ -8957,8 +9237,8 @@ const alpha_spaces = function({ value }, set2 = "default") {
8957
9237
  };
8958
9238
  const alphanumeric = function({ value }, set2 = "default") {
8959
9239
  const sets = {
8960
- default: /^[a-zA-Z0-9À-ÖØ-öø-ÿĄąĆćĘꣳŃńŚśŹźŻż]+$/,
8961
- latin: /^[a-zA-Z0-9]+$/
9240
+ default: /^[0-9[\p{Lu}\p{L}]+$/u,
9241
+ latin: /^[0-9\p{Latin}]+$/
8962
9242
  };
8963
9243
  const selectedSet = has(sets, set2) ? set2 : "default";
8964
9244
  return sets[selectedSet].test(String(value));
@@ -8987,6 +9267,52 @@ const confirm = function confirm2(node, address, comparison = "loose") {
8987
9267
  const foreignValue = (_a = node.at(address)) === null || _a === void 0 ? void 0 : _a.value;
8988
9268
  return comparison === "strict" ? node.value === foreignValue : node.value == foreignValue;
8989
9269
  };
9270
+ const contains_alpha = function({ value }, set2 = "default") {
9271
+ const sets = {
9272
+ default: /[\p{Lu}\p{L}]/u,
9273
+ latin: /[a-zA-Z]/
9274
+ };
9275
+ const selectedSet = has(sets, set2) ? set2 : "default";
9276
+ return sets[selectedSet].test(String(value));
9277
+ };
9278
+ const contains_alpha_spaces = function({ value }, set2 = "default") {
9279
+ const sets = {
9280
+ default: /[\p{Lu}\p{L} ]/u,
9281
+ latin: /[a-zA-Z ]/
9282
+ };
9283
+ const selectedSet = has(sets, set2) ? set2 : "default";
9284
+ return sets[selectedSet].test(String(value));
9285
+ };
9286
+ const contains_alphanumeric = function({ value }, set2 = "default") {
9287
+ const sets = {
9288
+ default: /[0-9[\p{Lu}\p{L}]/u,
9289
+ latin: /[0-9\p{Latin}]/
9290
+ };
9291
+ const selectedSet = has(sets, set2) ? set2 : "default";
9292
+ return sets[selectedSet].test(String(value));
9293
+ };
9294
+ const contains_lowercase = function({ value }, set2 = "default") {
9295
+ const sets = {
9296
+ default: /[\p{Ll}]/u,
9297
+ latin: /[a-z]/
9298
+ };
9299
+ const selectedSet = has(sets, set2) ? set2 : "default";
9300
+ return sets[selectedSet].test(String(value));
9301
+ };
9302
+ const contains_numeric = function number({ value }) {
9303
+ return /[0-9]/.test(String(value));
9304
+ };
9305
+ const contains_symbol = function({ value }) {
9306
+ return /[!-/:-@[-`{-~]/.test(String(value));
9307
+ };
9308
+ const contains_uppercase = function({ value }, set2 = "default") {
9309
+ const sets = {
9310
+ default: /[\p{Lu}]/u,
9311
+ latin: /[A-Z]/
9312
+ };
9313
+ const selectedSet = has(sets, set2) ? set2 : "default";
9314
+ return sets[selectedSet].test(String(value));
9315
+ };
8990
9316
  const date_between = function date_between2({ value }, dateA, dateB) {
8991
9317
  dateA = dateA instanceof Date ? dateA.getTime() : Date.parse(dateA);
8992
9318
  dateB = dateB instanceof Date ? dateB.getTime() : Date.parse(dateB);
@@ -9040,6 +9366,14 @@ const length = function length2({ value }, first = 0, second = Infinity) {
9040
9366
  }
9041
9367
  return false;
9042
9368
  };
9369
+ const lowercase = function({ value }, set2 = "default") {
9370
+ const sets = {
9371
+ default: /^[\p{Ll}]+$/u,
9372
+ latin: /^[a-z]+$/
9373
+ };
9374
+ const selectedSet = has(sets, set2) ? set2 : "default";
9375
+ return sets[selectedSet].test(String(value));
9376
+ };
9043
9377
  const matches = function matches2({ value }, ...stack) {
9044
9378
  return stack.some((pattern) => {
9045
9379
  if (typeof pattern === "string" && pattern.substr(0, 1) === "/" && pattern.substr(-1) === "/") {
@@ -9071,9 +9405,19 @@ const not = function not2({ value }, ...stack) {
9071
9405
  return item === value;
9072
9406
  });
9073
9407
  };
9074
- const number = function number2({ value }) {
9408
+ const number2 = function number3({ value }) {
9075
9409
  return !isNaN(value);
9076
9410
  };
9411
+ const require_one = function(node, ...inputNames) {
9412
+ if (!empty(node.value))
9413
+ return true;
9414
+ const values = inputNames.map((name) => {
9415
+ var _a;
9416
+ return (_a = node.at(name)) === null || _a === void 0 ? void 0 : _a.value;
9417
+ });
9418
+ return values.some((value) => !empty(value));
9419
+ };
9420
+ require_one.skipEmpty = false;
9077
9421
  const required = function required2({ value }, action = "default") {
9078
9422
  return action === "trim" && typeof value === "string" ? !empty(value.trim()) : !empty(value);
9079
9423
  };
@@ -9088,6 +9432,17 @@ const starts_with = function starts_with2({ value }, ...stack) {
9088
9432
  }
9089
9433
  return false;
9090
9434
  };
9435
+ const symbol = function({ value }) {
9436
+ return /^[!-/:-@[-`{-~]+$/.test(String(value));
9437
+ };
9438
+ const uppercase = function({ value }, set2 = "default") {
9439
+ const sets = {
9440
+ default: /^[\p{Lu}]+$/u,
9441
+ latin: /^[A-Z]+$/
9442
+ };
9443
+ const selectedSet = has(sets, set2) ? set2 : "default";
9444
+ return sets[selectedSet].test(String(value));
9445
+ };
9091
9446
  const url = function url2({ value }, ...stack) {
9092
9447
  try {
9093
9448
  const protocols = stack.length ? stack : ["http:", "https:"];
@@ -9105,6 +9460,13 @@ var defaultRules = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
9105
9460
  alphanumeric,
9106
9461
  between,
9107
9462
  confirm,
9463
+ contains_alpha,
9464
+ contains_alpha_spaces,
9465
+ contains_alphanumeric,
9466
+ contains_lowercase,
9467
+ contains_numeric,
9468
+ contains_symbol,
9469
+ contains_uppercase,
9108
9470
  date_after,
9109
9471
  date_before,
9110
9472
  date_between,
@@ -9113,13 +9475,17 @@ var defaultRules = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
9113
9475
  ends_with,
9114
9476
  is,
9115
9477
  length,
9478
+ lowercase,
9116
9479
  matches,
9117
9480
  max,
9118
9481
  min,
9119
9482
  not,
9120
- number,
9483
+ number: number2,
9484
+ require_one,
9121
9485
  required,
9122
9486
  starts_with,
9487
+ symbol,
9488
+ uppercase,
9123
9489
  url
9124
9490
  }, Symbol.toStringTag, { value: "Module" }));
9125
9491
  const revokedObservers = /* @__PURE__ */ new WeakSet();
@@ -9161,6 +9527,8 @@ function createObserver(node, dependencies) {
9161
9527
  }
9162
9528
  if (property === "value")
9163
9529
  addDependency("commit");
9530
+ if (property === "_value")
9531
+ addDependency("input");
9164
9532
  if (property === "props")
9165
9533
  return observeProps(value);
9166
9534
  if (property === "ledger")
@@ -9581,7 +9949,7 @@ function date2(date3) {
9581
9949
  function order(first, second) {
9582
9950
  return Number(first) >= Number(second) ? [second, first] : [first, second];
9583
9951
  }
9584
- const ui$u = {
9952
+ const ui$v = {
9585
9953
  add: "Add",
9586
9954
  remove: "Remove",
9587
9955
  removeAll: "Remove all",
@@ -9602,7 +9970,7 @@ const ui$u = {
9602
9970
  changeDate: "Change date",
9603
9971
  invalidDate: "The selected date is invalid."
9604
9972
  };
9605
- const validation$u = {
9973
+ const validation$v = {
9606
9974
  accepted({ name }) {
9607
9975
  return `Please accept the ${name}.`;
9608
9976
  },
@@ -9621,6 +9989,36 @@ const validation$u = {
9621
9989
  alpha_spaces({ name }) {
9622
9990
  return `${sentence(name)} can only contain letters and spaces.`;
9623
9991
  },
9992
+ contains_alpha({ name }) {
9993
+ return `${sentence(name)} must contain alphabetical characters.`;
9994
+ },
9995
+ contains_alphanumeric({ name }) {
9996
+ return `${sentence(name)} must contain letters or numbers.`;
9997
+ },
9998
+ contains_alpha_spaces({ name }) {
9999
+ return `${sentence(name)} must contain letters or spaces.`;
10000
+ },
10001
+ contains_symbol({ name }) {
10002
+ return `${sentence(name)} must contain a symbol.`;
10003
+ },
10004
+ contains_uppercase({ name }) {
10005
+ return `${sentence(name)} must contain an uppercase letter.`;
10006
+ },
10007
+ contains_lowercase({ name }) {
10008
+ return `${sentence(name)} must contain a lowercase letter.`;
10009
+ },
10010
+ contains_numeric({ name }) {
10011
+ return `${sentence(name)} must contain numbers.`;
10012
+ },
10013
+ symbol({ name }) {
10014
+ return `${sentence(name)} must be a symbol.`;
10015
+ },
10016
+ uppercase({ name }) {
10017
+ return `${sentence(name)} can only contain uppercase letters.`;
10018
+ },
10019
+ lowercase({ name }) {
10020
+ return `${sentence(name)} can only contain lowercase letters.`;
10021
+ },
9624
10022
  date_before({ name, args }) {
9625
10023
  if (Array.isArray(args) && args.length) {
9626
10024
  return `${sentence(name)} must be before ${date2(args[0])}.`;
@@ -9697,6 +10095,17 @@ const validation$u = {
9697
10095
  number({ name }) {
9698
10096
  return `${sentence(name)} must be a number.`;
9699
10097
  },
10098
+ require_one: ({ name, node, args: inputNames }) => {
10099
+ const labels = inputNames.map((name2) => {
10100
+ const dependentNode = node.at(name2);
10101
+ if (dependentNode) {
10102
+ return createMessageName(dependentNode);
10103
+ }
10104
+ return false;
10105
+ }).filter((name2) => !!name2);
10106
+ labels.unshift(name);
10107
+ return `${labels.join(" or ")} is required.`;
10108
+ },
9700
10109
  required({ name }) {
9701
10110
  return `${sentence(name)} is required.`;
9702
10111
  },
@@ -9709,8 +10118,8 @@ const validation$u = {
9709
10118
  };
9710
10119
  var en = /* @__PURE__ */ Object.freeze({
9711
10120
  __proto__: null,
9712
- ui: ui$u,
9713
- validation: validation$u
10121
+ ui: ui$v,
10122
+ validation: validation$v
9714
10123
  });
9715
10124
  function createI18nPlugin(registry2) {
9716
10125
  return function i18nPlugin(node) {
@@ -10006,7 +10415,7 @@ const warnings = {
10006
10415
  150: ({ data: fn }) => `Schema function "${fn}()" is not a valid function.`,
10007
10416
  151: ({ data: id }) => `No form element with id: ${id}`,
10008
10417
  152: ({ data: id }) => `No input element with id: ${id}`,
10009
- 350: ({ data: node }) => `Invalid options prop for radio input (${node.name}). See https://formkit.com/inputs/radio`,
10418
+ 350: ({ data: { node, inputType } }) => `Invalid options prop for ${node.name} input (${inputType}). See https://formkit.com/inputs/${inputType}`,
10010
10419
  650: 'Schema "$get()" must use the id of an input to access.',
10011
10420
  651: ({ data: id }) => `Cannot setErrors() on "${id}" because no such id exists.`,
10012
10421
  652: ({ data: id }) => `Cannot clearErrors() on "${id}" because no such id exists.`,
@@ -10031,16 +10440,28 @@ const decodeWarnings = (warning, next) => {
10031
10440
  if (!registered)
10032
10441
  warningHandler(decodeWarnings);
10033
10442
  registered = true;
10443
+ const isServer$2 = typeof window === "undefined";
10444
+ const ssrCompleteRegistry = /* @__PURE__ */ new Map();
10445
+ function onSSRComplete(app, callback) {
10446
+ var _a;
10447
+ if (!isServer$2 || !app)
10448
+ return;
10449
+ if (!ssrCompleteRegistry.has(app))
10450
+ ssrCompleteRegistry.set(app, /* @__PURE__ */ new Set());
10451
+ (_a = ssrCompleteRegistry.get(app)) === null || _a === void 0 ? void 0 : _a.add(callback);
10452
+ }
10453
+ const isServer$1 = typeof window === "undefined";
10034
10454
  const memo = {};
10455
+ const memoKeys = {};
10035
10456
  let instanceKey;
10036
- const instanceScopes = /* @__PURE__ */ new Map();
10457
+ const instanceScopes = /* @__PURE__ */ new WeakMap();
10037
10458
  const raw = "__raw__";
10038
10459
  const isClassProp = /[a-zA-Z0-9\-][cC]lass$/;
10039
10460
  function getRef(token2, data) {
10040
10461
  const value = ref(null);
10041
10462
  if (token2 === "get") {
10042
10463
  const nodeRefs = {};
10043
- value.value = get$1.bind(null, nodeRefs);
10464
+ value.value = get.bind(null, nodeRefs);
10044
10465
  return value;
10045
10466
  }
10046
10467
  const path = token2.split(".");
@@ -10060,14 +10481,14 @@ function getValue(set2, path) {
10060
10481
  }
10061
10482
  let foundValue = void 0;
10062
10483
  let obj = set2;
10063
- for (const i3 in path) {
10064
- const key = path[i3];
10484
+ for (const i2 in path) {
10485
+ const key = path[i2];
10065
10486
  if (typeof obj !== "object" || obj === null) {
10066
10487
  foundValue = void 0;
10067
10488
  break;
10068
10489
  }
10069
10490
  const currentValue = obj[key];
10070
- if (Number(i3) === path.length - 1 && currentValue !== void 0) {
10491
+ if (Number(i2) === path.length - 1 && currentValue !== void 0) {
10071
10492
  foundValue = typeof currentValue === "function" ? currentValue.bind(obj) : currentValue;
10072
10493
  break;
10073
10494
  }
@@ -10075,7 +10496,7 @@ function getValue(set2, path) {
10075
10496
  }
10076
10497
  return foundValue;
10077
10498
  }
10078
- function get$1(nodeRefs, id) {
10499
+ function get(nodeRefs, id) {
10079
10500
  if (typeof id !== "string")
10080
10501
  return warn(650);
10081
10502
  if (!(id in nodeRefs))
@@ -10091,7 +10512,7 @@ function get$1(nodeRefs, id) {
10091
10512
  }
10092
10513
  return nodeRefs[id].value;
10093
10514
  }
10094
- function parseSchema(library, schema) {
10515
+ function parseSchema(library, schema, memoKey) {
10095
10516
  function parseCondition2(library2, node) {
10096
10517
  const condition = provider(compile(node.if), { if: true });
10097
10518
  const children = createElements(library2, node.then);
@@ -10290,7 +10711,7 @@ function parseSchema(library, schema) {
10290
10711
  const [getValues, valueName, keyName] = iterator;
10291
10712
  createNodes = () => {
10292
10713
  const _v = getValues();
10293
- const values = !isNaN(_v) ? Array(Number(_v)).fill(0).map((_, i3) => i3) : _v;
10714
+ const values = Number.isFinite(_v) ? Array(Number(_v)).fill(0).map((_, i2) => i2) : _v;
10294
10715
  const fragment2 = [];
10295
10716
  if (typeof values !== "object")
10296
10717
  return null;
@@ -10326,16 +10747,21 @@ function parseSchema(library, schema) {
10326
10747
  }
10327
10748
  const providers = [];
10328
10749
  function provider(compiled, hints = {}) {
10329
- const compiledFns = {};
10750
+ const compiledFns = /* @__PURE__ */ new WeakMap();
10330
10751
  providers.push((callback, key) => {
10331
- compiledFns[key] = compiled.provide((tokens) => callback(tokens, hints));
10752
+ compiledFns.set(key, compiled.provide((tokens) => callback(tokens, hints)));
10332
10753
  });
10333
- return () => compiledFns[instanceKey]();
10754
+ return () => compiledFns.get(instanceKey)();
10334
10755
  }
10335
- return function createInstance(providerCallback, key) {
10336
- const memoKey = JSON.stringify(schema);
10756
+ function createInstance(providerCallback, key) {
10757
+ var _a;
10758
+ memoKey !== null && memoKey !== void 0 ? memoKey : memoKey = JSON.stringify(schema);
10337
10759
  const [render2, compiledProviders] = has(memo, memoKey) ? memo[memoKey] : [createElements(library, schema), providers];
10338
- memo[memoKey] = [render2, compiledProviders];
10760
+ if (!isServer$1) {
10761
+ (_a = memoKeys[memoKey]) !== null && _a !== void 0 ? _a : memoKeys[memoKey] = 0;
10762
+ memoKeys[memoKey]++;
10763
+ memo[memoKey] = [render2, compiledProviders];
10764
+ }
10339
10765
  compiledProviders.forEach((compiledProvider) => {
10340
10766
  compiledProvider(providerCallback, key);
10341
10767
  });
@@ -10343,7 +10769,8 @@ function parseSchema(library, schema) {
10343
10769
  instanceKey = key;
10344
10770
  return render2();
10345
10771
  };
10346
- };
10772
+ }
10773
+ return createInstance;
10347
10774
  }
10348
10775
  function useScope(token2, defaultValue) {
10349
10776
  const scopedData = instanceScopes.get(instanceKey) || [];
@@ -10388,7 +10815,17 @@ function createRenderFn(instanceCreator, data, instanceKey2) {
10388
10815
  }, {});
10389
10816
  }, instanceKey2);
10390
10817
  }
10391
- let i = 0;
10818
+ function clean(schema, memoKey, instanceKey2) {
10819
+ memoKey !== null && memoKey !== void 0 ? memoKey : memoKey = JSON.stringify(schema);
10820
+ memoKeys[memoKey]--;
10821
+ if (memoKeys[memoKey] === 0) {
10822
+ delete memoKeys[memoKey];
10823
+ const [, providers] = memo[memoKey];
10824
+ delete memo[memoKey];
10825
+ providers.length = 0;
10826
+ }
10827
+ instanceScopes.delete(instanceKey2);
10828
+ }
10392
10829
  const FormKitSchema = defineComponent({
10393
10830
  name: "FormKitSchema",
10394
10831
  props: {
@@ -10403,31 +10840,52 @@ const FormKitSchema = defineComponent({
10403
10840
  library: {
10404
10841
  type: Object,
10405
10842
  default: () => ({})
10843
+ },
10844
+ memoKey: {
10845
+ type: String,
10846
+ required: false
10406
10847
  }
10407
10848
  },
10408
10849
  setup(props2, context) {
10850
+ var _a;
10409
10851
  const instance = getCurrentInstance();
10410
- let instanceKey2 = Symbol(String(i++));
10852
+ let instanceKey2 = {};
10411
10853
  instanceScopes.set(instanceKey2, []);
10412
- let provider = parseSchema(props2.library, props2.schema);
10854
+ let provider = parseSchema(props2.library, props2.schema, props2.memoKey);
10413
10855
  let render2;
10414
10856
  let data;
10415
- watch$1(() => props2.schema, (newSchema, oldSchema) => {
10416
- var _a;
10417
- instanceKey2 = Symbol(String(i++));
10418
- provider = parseSchema(props2.library, props2.schema);
10419
- render2 = createRenderFn(provider, data, instanceKey2);
10420
- if (newSchema === oldSchema) {
10421
- ((_a = instance === null || instance === void 0 ? void 0 : instance.proxy) === null || _a === void 0 ? void 0 : _a.$forceUpdate)();
10422
- }
10423
- }, { deep: true });
10857
+ if (!isServer$1) {
10858
+ watch$1(() => props2.schema, (newSchema, oldSchema) => {
10859
+ var _a2;
10860
+ const oldKey = instanceKey2;
10861
+ instanceKey2 = {};
10862
+ provider = parseSchema(props2.library, props2.schema, props2.memoKey);
10863
+ render2 = createRenderFn(provider, data, instanceKey2);
10864
+ if (newSchema === oldSchema) {
10865
+ ((_a2 = instance === null || instance === void 0 ? void 0 : instance.proxy) === null || _a2 === void 0 ? void 0 : _a2.$forceUpdate)();
10866
+ }
10867
+ clean(props2.schema, props2.memoKey, oldKey);
10868
+ }, { deep: true });
10869
+ }
10424
10870
  watchEffect(() => {
10425
- data = Object.assign(reactive(props2.data), {
10871
+ var _a2;
10872
+ data = Object.assign(reactive((_a2 = props2.data) !== null && _a2 !== void 0 ? _a2 : {}), {
10426
10873
  slots: context.slots
10427
10874
  });
10875
+ context.slots;
10428
10876
  render2 = createRenderFn(provider, data, instanceKey2);
10429
10877
  });
10430
- return () => render2();
10878
+ function cleanUp() {
10879
+ clean(props2.schema, props2.memoKey, instanceKey2);
10880
+ if (data.node)
10881
+ data.node.destroy();
10882
+ data.slots = null;
10883
+ data = null;
10884
+ render2 = null;
10885
+ }
10886
+ onUnmounted(cleanUp);
10887
+ onSSRComplete((_a = getCurrentInstance()) === null || _a === void 0 ? void 0 : _a.appContext.app, cleanUp);
10888
+ return () => render2 ? render2() : null;
10431
10889
  }
10432
10890
  });
10433
10891
  const nativeProps = {
@@ -10443,6 +10901,10 @@ const nativeProps = {
10443
10901
  type: Number,
10444
10902
  required: false
10445
10903
  },
10904
+ dynamic: {
10905
+ type: Boolean,
10906
+ required: false
10907
+ },
10446
10908
  errors: {
10447
10909
  type: Array,
10448
10910
  default: []
@@ -10478,6 +10940,10 @@ const nativeProps = {
10478
10940
  type: Object,
10479
10941
  default: {}
10480
10942
  },
10943
+ sync: {
10944
+ type: Boolean,
10945
+ required: false
10946
+ },
10481
10947
  type: {
10482
10948
  type: [String, Object],
10483
10949
  default: "text"
@@ -10500,6 +10966,7 @@ const nativeProps = {
10500
10966
  }
10501
10967
  };
10502
10968
  const props = nativeProps;
10969
+ const isServer = typeof window === "undefined";
10503
10970
  const parentSymbol = Symbol("FormKitParent");
10504
10971
  const FormKit = defineComponent({
10505
10972
  props,
@@ -10526,19 +10993,29 @@ const FormKit = defineComponent({
10526
10993
  };
10527
10994
  }
10528
10995
  const schema = ref([]);
10996
+ let memoKey = node.props.definition.schemaMemoKey;
10529
10997
  const generateSchema = () => {
10530
10998
  var _a, _b;
10531
10999
  const schemaDefinition = (_b = (_a = node.props) === null || _a === void 0 ? void 0 : _a.definition) === null || _b === void 0 ? void 0 : _b.schema;
10532
11000
  if (!schemaDefinition)
10533
11001
  error(601, node);
10534
- schema.value = typeof schemaDefinition === "function" ? schemaDefinition(__spreadValues({}, props2.sectionsSchema)) : schemaDefinition;
11002
+ if (typeof schemaDefinition === "function") {
11003
+ schema.value = schemaDefinition(__spreadValues({}, props2.sectionsSchema));
11004
+ if (memoKey && props2.sectionsSchema || "memoKey" in schemaDefinition && typeof schemaDefinition.memoKey === "string") {
11005
+ memoKey = (memoKey !== null && memoKey !== void 0 ? memoKey : schemaDefinition === null || schemaDefinition === void 0 ? void 0 : schemaDefinition.memoKey) + JSON.stringify(props2.sectionsSchema);
11006
+ }
11007
+ } else {
11008
+ schema.value = schemaDefinition;
11009
+ }
10535
11010
  };
10536
11011
  generateSchema();
10537
- node.on("schema", generateSchema);
11012
+ if (!isServer) {
11013
+ node.on("schema", generateSchema);
11014
+ }
10538
11015
  context.emit("node", node);
10539
11016
  const library = node.props.definition.library;
10540
11017
  context.expose({ node });
10541
- return () => h(FormKitSchema, { schema: schema.value, data: node.context, library }, __spreadValues({}, context.slots));
11018
+ return () => h(FormKitSchema, { schema: schema.value, data: node.context, library, memoKey }, __spreadValues({}, context.slots));
10542
11019
  }
10543
11020
  });
10544
11021
  function createPlugin$3(app, options2) {
@@ -10572,100 +11049,6 @@ const plugin$1 = {
10572
11049
  app.provide(configSymbol, rootConfig);
10573
11050
  }
10574
11051
  };
10575
- const invalidGet = Symbol();
10576
- function watchVerbose(obj, callback) {
10577
- const watchers = {};
10578
- const applyWatch = (paths) => {
10579
- for (const path of paths) {
10580
- if (path.__str in watchers)
10581
- watchers[path.__str]();
10582
- watchers[path.__str] = watch$1(touch.bind(null, obj, path), dispatcher.bind(null, path), { deep: false });
10583
- }
10584
- };
10585
- const clearWatch = (path) => {
10586
- if (!path.length)
10587
- return;
10588
- for (const key in watchers) {
10589
- if (`${key}`.startsWith(`${path.__str}.`)) {
10590
- watchers[key]();
10591
- delete watchers[key];
10592
- }
10593
- }
10594
- };
10595
- const dispatcher = createDispatcher(obj, callback, applyWatch, clearWatch);
10596
- applyWatch(getPaths(obj));
10597
- }
10598
- function createDispatcher(obj, callback, applyWatch, clearChildWatches) {
10599
- return (path) => {
10600
- const value = get(obj, path);
10601
- if (value === invalidGet)
10602
- return;
10603
- if (path.__deep)
10604
- clearChildWatches(path);
10605
- if (typeof value === "object")
10606
- applyWatch(getPaths(value, [path], ...path));
10607
- callback(path, value, obj);
10608
- };
10609
- }
10610
- function touch(obj, path) {
10611
- const value = get(obj, path);
10612
- return value && typeof value === "object" ? Object.keys(value) : value;
10613
- }
10614
- function get(obj, path) {
10615
- if (isRef(obj)) {
10616
- if (path.length === 0)
10617
- return obj.value;
10618
- obj = obj.value;
10619
- }
10620
- return path.reduce((value, segment) => {
10621
- if (value === invalidGet)
10622
- return value;
10623
- if (value === null || typeof value !== "object") {
10624
- return invalidGet;
10625
- }
10626
- return value[segment];
10627
- }, obj);
10628
- }
10629
- function getPaths(obj, paths = [], ...parents) {
10630
- if (obj === null)
10631
- return paths;
10632
- if (!parents.length) {
10633
- const path = Object.defineProperty([], "__str", {
10634
- value: ""
10635
- });
10636
- obj = isRef(obj) ? obj.value : obj;
10637
- if (obj && typeof obj === "object") {
10638
- Object.defineProperty(path, "__deep", { value: true });
10639
- paths.push(path);
10640
- } else {
10641
- return [path];
10642
- }
10643
- }
10644
- if (obj === null || typeof obj !== "object")
10645
- return paths;
10646
- for (const key in obj) {
10647
- const path = parents.concat(key);
10648
- Object.defineProperty(path, "__str", { value: path.join(".") });
10649
- const value = obj[key];
10650
- if (isPojo(value) || Array.isArray(value)) {
10651
- paths.push(Object.defineProperty(path, "__deep", { value: true }));
10652
- paths = paths.concat(getPaths(value, [], ...path));
10653
- } else {
10654
- paths.push(path);
10655
- }
10656
- }
10657
- return paths;
10658
- }
10659
- function useRaw(obj) {
10660
- if (obj === null || typeof obj !== "object")
10661
- return obj;
10662
- if (isReactive(obj)) {
10663
- obj = toRaw(obj);
10664
- } else if (isRef(obj)) {
10665
- obj = isReactive(obj.value) ? useRaw(obj.value) : obj.value;
10666
- }
10667
- return obj;
10668
- }
10669
11052
  const pseudoProps = [
10670
11053
  "help",
10671
11054
  "label",
@@ -10710,6 +11093,10 @@ function useInput(props2, context, options2 = {}) {
10710
11093
  const instance = getCurrentInstance();
10711
11094
  const listeners = onlyListeners(instance === null || instance === void 0 ? void 0 : instance.vnode.props);
10712
11095
  const isVModeled = "modelValue" in ((_a = instance === null || instance === void 0 ? void 0 : instance.vnode.props) !== null && _a !== void 0 ? _a : {});
11096
+ let isMounted = false;
11097
+ onMounted(() => {
11098
+ isMounted = true;
11099
+ });
10713
11100
  const value = props2.modelValue !== void 0 ? props2.modelValue : cloneAny(context.attrs.value);
10714
11101
  function createInitialProps() {
10715
11102
  const initialProps2 = __spreadValues(__spreadValues({}, nodeProps(props2)), listeners);
@@ -10732,14 +11119,15 @@ function useInput(props2, context, options2 = {}) {
10732
11119
  }
10733
11120
  const initialProps = createInitialProps();
10734
11121
  const parent = initialProps.ignore ? null : props2.parent || inject(parentSymbol, null);
10735
- const node = createNode(extend(config || {}, {
11122
+ const node = createNode(extend$1(config || {}, {
10736
11123
  name: props2.name || void 0,
10737
11124
  value,
10738
11125
  parent,
10739
11126
  plugins: (config.plugins || []).concat(props2.plugins),
10740
11127
  config: props2.config,
10741
11128
  props: initialProps,
10742
- index: props2.index
11129
+ index: props2.index,
11130
+ sync: props2.sync || props2.dynamic
10743
11131
  }, false, true));
10744
11132
  if (!node.props.definition)
10745
11133
  error(600, node);
@@ -10787,6 +11175,9 @@ function useInput(props2, context, options2 = {}) {
10787
11175
  const attrs = except(nodeProps(context.attrs), pseudoPropNames.value);
10788
11176
  if ("multiple" in attrs)
10789
11177
  attrs.multiple = undefine(attrs.multiple);
11178
+ if (typeof attrs.onBlur === "function") {
11179
+ attrs.onBlur = oncePerTick(attrs.onBlur);
11180
+ }
10790
11181
  node.props.attrs = Object.assign({}, node.props.attrs || {}, attrs);
10791
11182
  });
10792
11183
  watchEffect(() => {
@@ -10825,33 +11216,24 @@ function useInput(props2, context, options2 = {}) {
10825
11216
  if (node.type !== "input") {
10826
11217
  provide(parentSymbol, node);
10827
11218
  }
10828
- let inputTimeout;
10829
- const mutex = /* @__PURE__ */ new WeakSet();
11219
+ let clonedValueBeforeVmodel = void 0;
10830
11220
  node.on("modelUpdated", () => {
10831
11221
  var _a2, _b;
10832
11222
  context.emit("inputRaw", (_a2 = node.context) === null || _a2 === void 0 ? void 0 : _a2.value, node);
10833
- clearTimeout(inputTimeout);
10834
- inputTimeout = setTimeout(context.emit, 20, "input", (_b = node.context) === null || _b === void 0 ? void 0 : _b.value, node);
11223
+ if (isMounted) {
11224
+ context.emit("input", (_b = node.context) === null || _b === void 0 ? void 0 : _b.value, node);
11225
+ }
10835
11226
  if (isVModeled && node.context) {
10836
- const newValue = useRaw(node.context.value);
10837
- if (isObject(newValue) && useRaw(props2.modelValue) !== newValue) {
10838
- mutex.add(newValue);
10839
- }
10840
- context.emit("update:modelValue", newValue);
11227
+ clonedValueBeforeVmodel = cloneAny(node.value);
11228
+ context.emit("update:modelValue", node.value);
10841
11229
  }
10842
11230
  });
10843
11231
  if (isVModeled) {
10844
- watchVerbose(toRef(props2, "modelValue"), (path, value2) => {
10845
- var _a2;
10846
- const rawValue = useRaw(value2);
10847
- if (isObject(rawValue) && mutex.has(rawValue)) {
10848
- return mutex.delete(rawValue);
10849
- }
10850
- if (!path.length)
11232
+ watch$1(toRef(props2, "modelValue"), (value2) => {
11233
+ if (!eq(clonedValueBeforeVmodel, value2)) {
10851
11234
  node.input(value2, false);
10852
- else
10853
- (_a2 = node.at(path)) === null || _a2 === void 0 ? void 0 : _a2.input(value2, false);
10854
- });
11235
+ }
11236
+ }, { deep: true });
10855
11237
  if (node.value !== value) {
10856
11238
  node.emit("modelUpdated");
10857
11239
  }
@@ -10888,7 +11270,7 @@ function createInput(schemaOrComponent, definitionOptions = {}) {
10888
11270
  const messages = createSection("messages", () => ({
10889
11271
  $el: "ul",
10890
11272
  if: "$fns.length($messages)"
10891
- }), true);
11273
+ }));
10892
11274
  const message = createSection("message", () => ({
10893
11275
  $el: "li",
10894
11276
  for: ["message", "$messages"],
@@ -10959,6 +11341,7 @@ const vueBindings = function vueBindings2(node) {
10959
11341
  validationVisibility.value = payload;
10960
11342
  });
10961
11343
  const hasShownErrors = ref(validationVisibility.value === "live");
11344
+ const items = ref(node.children.map((child) => child.uid));
10962
11345
  const validationVisible = computed(() => {
10963
11346
  if (context.state.submitted)
10964
11347
  return true;
@@ -11067,6 +11450,7 @@ const vueBindings = function vueBindings2(node) {
11067
11450
  },
11068
11451
  help: node.props.help,
11069
11452
  id: node.props.id,
11453
+ items,
11070
11454
  label: node.props.label,
11071
11455
  messages: messages2,
11072
11456
  node: markRaw(node),
@@ -11098,7 +11482,8 @@ const vueBindings = function vueBindings2(node) {
11098
11482
  }
11099
11483
  (() => __async(this, null, function* () {
11100
11484
  yield node.settled;
11101
- node.props._init = cloneAny(node.value);
11485
+ if (node)
11486
+ node.props._init = cloneAny(node.value);
11102
11487
  }))();
11103
11488
  });
11104
11489
  node.on("settled", ({ payload: isSettled }) => {
@@ -11149,14 +11534,12 @@ const vueBindings = function vueBindings2(node) {
11149
11534
  triggerRef(_value);
11150
11535
  }
11151
11536
  });
11152
- node.on("commit", ({ payload }) => {
11153
- if (node.type !== "input" && !isRef(payload) && !isReactive(payload)) {
11154
- value.value = _value.value = shallowClone(payload);
11155
- } else {
11156
- value.value = _value.value = payload;
11157
- triggerRef(value);
11158
- }
11537
+ node.on("commitRaw", ({ payload }) => {
11538
+ value.value = _value.value = payload;
11539
+ triggerRef(value);
11159
11540
  node.emit("modelUpdated");
11541
+ });
11542
+ node.on("commit", () => {
11160
11543
  if ((!context.state.dirty || context.dirtyBehavior === "compare") && node.isCreated && hasTicked) {
11161
11544
  context.handlers.touch();
11162
11545
  }
@@ -11166,6 +11549,9 @@ const vueBindings = function vueBindings2(node) {
11166
11549
  return !(message2.type === "error" && ((_a = message2.meta) === null || _a === void 0 ? void 0 : _a.autoClear) === true);
11167
11550
  });
11168
11551
  }
11552
+ if (node.type === "list" && node.sync) {
11553
+ items.value = node.children.map((child) => child.uid);
11554
+ }
11169
11555
  });
11170
11556
  const updateState = (message2) => __async(this, null, function* () {
11171
11557
  if (message2.type === "ui" && message2.visible && !message2.meta.showAsMessage) {
@@ -11202,14 +11588,18 @@ const vueBindings = function vueBindings2(node) {
11202
11588
  });
11203
11589
  node.context = context;
11204
11590
  node.emit("context", node, false);
11591
+ node.on("destroyed", () => {
11592
+ node.context = void 0;
11593
+ node = null;
11594
+ });
11205
11595
  };
11206
11596
  const defaultConfig = (options2 = {}) => {
11207
11597
  const _a = options2, { rules = {}, locales = {}, inputs: inputs$1 = {}, messages: messages2 = {}, locale: locale2 = void 0, theme: theme2 = void 0, iconLoaderUrl = void 0, iconLoader = void 0, icons = {} } = _a, nodeOptions = __objRest(_a, ["rules", "locales", "inputs", "messages", "locale", "theme", "iconLoaderUrl", "iconLoader", "icons"]);
11208
11598
  const validation = createValidationPlugin(__spreadValues(__spreadValues({}, defaultRules), rules || {}));
11209
- const i18n = createI18nPlugin(extend(__spreadValues({ en }, locales || {}), messages2));
11599
+ const i18n = createI18nPlugin(extend$1(__spreadValues({ en }, locales || {}), messages2));
11210
11600
  const library = createLibraryPlugin(index$1, inputs$1);
11211
11601
  const themePlugin = createThemePlugin(theme2, icons, iconLoaderUrl, iconLoader);
11212
- return extend(__spreadValues({
11602
+ return extend$1(__spreadValues({
11213
11603
  plugins: [library, themePlugin, vueBindings, i18n, validation]
11214
11604
  }, !locale2 ? {} : { config: { locale: locale2 } }), nodeOptions || {}, true);
11215
11605
  };
@@ -11607,6 +11997,31 @@ const preStepFunc = (formNode) => (stepNode) => {
11607
11997
  console.warn(msg);
11608
11998
  rollbar("warning", msg);
11609
11999
  }
12000
+ if (stepNode.name === "legalCrossSells") {
12001
+ const cross_sells = stepNode.value["Legal_CrossSells"];
12002
+ if (cross_sells) {
12003
+ if (cross_sells.includes("Auto and Car Accidents")) {
12004
+ return ["autoAndCarAccidentCrossSellQuestions", "firstAndLast", "contactInfo"];
12005
+ } else if (cross_sells.includes("Personal Injury")) {
12006
+ return ["personalInjuryCrossSellQuestions", "firstAndLast", "contactInfo"];
12007
+ } else if (cross_sells.includes("Workers Compensation")) {
12008
+ return ["workersCompensationCrossSellQuestions", "firstAndLast", "contactInfo"];
12009
+ } else if (cross_sells.includes("DUI and DWI")) {
12010
+ return ["duiAndDWICrossSellQuestions", "firstAndLast", "contactInfo"];
12011
+ } else if (cross_sells.includes("Long Term Disability")) {
12012
+ return ["longTermDisabilityCrossSellQuestions", "firstAndLast", "contactInfo"];
12013
+ } else if (cross_sells.includes("Power of Attorney")) {
12014
+ return ["powerOfAttorneyCrossSellQuestions", "firstAndLast", "contactInfo"];
12015
+ } else if (cross_sells.includes("Wills and Trusts")) {
12016
+ return ["willsAndTrustsCrossSellQuestions", "firstAndLast", "contactInfo"];
12017
+ } else if (cross_sells.includes("Divorce and Separation")) {
12018
+ return ["divorceAndSeparationCrossSellQuestions", "firstAndLast", "contactInfo"];
12019
+ } else if (cross_sells.includes("Child Custody")) {
12020
+ return ["childCustodyCrossSellQuestions", "firstAndLast", "contactInfo"];
12021
+ }
12022
+ }
12023
+ return ["firstAndLast", "contactInfo"];
12024
+ }
11610
12025
  };
11611
12026
  const fireStepEvent = (formNode) => (stepResult, stepHistory2, stepQueue2) => {
11612
12027
  if (!stepResult) {
@@ -11814,11 +12229,11 @@ function toInteger(dirtyNumber) {
11814
12229
  if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
11815
12230
  return NaN;
11816
12231
  }
11817
- var number3 = Number(dirtyNumber);
11818
- if (isNaN(number3)) {
11819
- return number3;
12232
+ var number4 = Number(dirtyNumber);
12233
+ if (isNaN(number4)) {
12234
+ return number4;
11820
12235
  }
11821
- return number3 < 0 ? Math.ceil(number3) : Math.floor(number3);
12236
+ return number4 < 0 ? Math.ceil(number4) : Math.floor(number4);
11822
12237
  }
11823
12238
  function requiredArgs(required3, args) {
11824
12239
  if (args.length < required3) {
@@ -12212,9 +12627,9 @@ function getUTCWeek(dirtyDate, options2) {
12212
12627
  var diff = startOfUTCWeek(date3, options2).getTime() - startOfUTCWeekYear(date3, options2).getTime();
12213
12628
  return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
12214
12629
  }
12215
- function addLeadingZeros(number3, targetLength) {
12216
- var sign = number3 < 0 ? "-" : "";
12217
- var output = Math.abs(number3).toString();
12630
+ function addLeadingZeros(number4, targetLength) {
12631
+ var sign = number4 < 0 ? "-" : "";
12632
+ var output = Math.abs(number4).toString();
12218
12633
  while (output.length < targetLength) {
12219
12634
  output = "0" + output;
12220
12635
  }
@@ -12579,7 +12994,7 @@ var formatters = {
12579
12994
  });
12580
12995
  }
12581
12996
  },
12582
- i: function i2(date3, token2, localize2) {
12997
+ i: function i(date3, token2, localize2) {
12583
12998
  var dayOfWeek = date3.getUTCDay();
12584
12999
  var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
12585
13000
  switch (token2) {
@@ -13203,19 +13618,19 @@ var formattingDayPeriodValues = {
13203
13618
  }
13204
13619
  };
13205
13620
  var ordinalNumber = function ordinalNumber2(dirtyNumber, _options) {
13206
- var number3 = Number(dirtyNumber);
13207
- var rem100 = number3 % 100;
13621
+ var number4 = Number(dirtyNumber);
13622
+ var rem100 = number4 % 100;
13208
13623
  if (rem100 > 20 || rem100 < 10) {
13209
13624
  switch (rem100 % 10) {
13210
13625
  case 1:
13211
- return number3 + "st";
13626
+ return number4 + "st";
13212
13627
  case 2:
13213
- return number3 + "nd";
13628
+ return number4 + "nd";
13214
13629
  case 3:
13215
- return number3 + "rd";
13630
+ return number4 + "rd";
13216
13631
  }
13217
13632
  }
13218
- return number3 + "th";
13633
+ return number4 + "th";
13219
13634
  };
13220
13635
  var localize = {
13221
13636
  ordinalNumber,
@@ -13616,8 +14031,8 @@ function _classCallCheck$w(instance, Constructor) {
13616
14031
  }
13617
14032
  }
13618
14033
  function _defineProperties$w(target, props2) {
13619
- for (var i3 = 0; i3 < props2.length; i3++) {
13620
- var descriptor = props2[i3];
14034
+ for (var i2 = 0; i2 < props2.length; i2++) {
14035
+ var descriptor = props2[i2];
13621
14036
  descriptor.enumerable = descriptor.enumerable || false;
13622
14037
  descriptor.configurable = true;
13623
14038
  if ("value" in descriptor)
@@ -13717,8 +14132,8 @@ function _classCallCheck$v(instance, Constructor) {
13717
14132
  }
13718
14133
  }
13719
14134
  function _defineProperties$v(target, props2) {
13720
- for (var i3 = 0; i3 < props2.length; i3++) {
13721
- var descriptor = props2[i3];
14135
+ for (var i2 = 0; i2 < props2.length; i2++) {
14136
+ var descriptor = props2[i2];
13722
14137
  descriptor.enumerable = descriptor.enumerable || false;
13723
14138
  descriptor.configurable = true;
13724
14139
  if ("value" in descriptor)
@@ -13776,8 +14191,8 @@ function _classCallCheck$u(instance, Constructor) {
13776
14191
  }
13777
14192
  }
13778
14193
  function _defineProperties$u(target, props2) {
13779
- for (var i3 = 0; i3 < props2.length; i3++) {
13780
- var descriptor = props2[i3];
14194
+ for (var i2 = 0; i2 < props2.length; i2++) {
14195
+ var descriptor = props2[i2];
13781
14196
  descriptor.enumerable = descriptor.enumerable || false;
13782
14197
  descriptor.configurable = true;
13783
14198
  if ("value" in descriptor)
@@ -14064,8 +14479,8 @@ function _classCallCheck$t(instance, Constructor) {
14064
14479
  }
14065
14480
  }
14066
14481
  function _defineProperties$t(target, props2) {
14067
- for (var i3 = 0; i3 < props2.length; i3++) {
14068
- var descriptor = props2[i3];
14482
+ for (var i2 = 0; i2 < props2.length; i2++) {
14483
+ var descriptor = props2[i2];
14069
14484
  descriptor.enumerable = descriptor.enumerable || false;
14070
14485
  descriptor.configurable = true;
14071
14486
  if ("value" in descriptor)
@@ -14225,8 +14640,8 @@ function _classCallCheck$s(instance, Constructor) {
14225
14640
  }
14226
14641
  }
14227
14642
  function _defineProperties$s(target, props2) {
14228
- for (var i3 = 0; i3 < props2.length; i3++) {
14229
- var descriptor = props2[i3];
14643
+ for (var i2 = 0; i2 < props2.length; i2++) {
14644
+ var descriptor = props2[i2];
14230
14645
  descriptor.enumerable = descriptor.enumerable || false;
14231
14646
  descriptor.configurable = true;
14232
14647
  if ("value" in descriptor)
@@ -14386,8 +14801,8 @@ function _classCallCheck$r(instance, Constructor) {
14386
14801
  }
14387
14802
  }
14388
14803
  function _defineProperties$r(target, props2) {
14389
- for (var i3 = 0; i3 < props2.length; i3++) {
14390
- var descriptor = props2[i3];
14804
+ for (var i2 = 0; i2 < props2.length; i2++) {
14805
+ var descriptor = props2[i2];
14391
14806
  descriptor.enumerable = descriptor.enumerable || false;
14392
14807
  descriptor.configurable = true;
14393
14808
  if ("value" in descriptor)
@@ -14523,8 +14938,8 @@ function _classCallCheck$q(instance, Constructor) {
14523
14938
  }
14524
14939
  }
14525
14940
  function _defineProperties$q(target, props2) {
14526
- for (var i3 = 0; i3 < props2.length; i3++) {
14527
- var descriptor = props2[i3];
14941
+ for (var i2 = 0; i2 < props2.length; i2++) {
14942
+ var descriptor = props2[i2];
14528
14943
  descriptor.enumerable = descriptor.enumerable || false;
14529
14944
  descriptor.configurable = true;
14530
14945
  if ("value" in descriptor)
@@ -14659,8 +15074,8 @@ function _classCallCheck$p(instance, Constructor) {
14659
15074
  }
14660
15075
  }
14661
15076
  function _defineProperties$p(target, props2) {
14662
- for (var i3 = 0; i3 < props2.length; i3++) {
14663
- var descriptor = props2[i3];
15077
+ for (var i2 = 0; i2 < props2.length; i2++) {
15078
+ var descriptor = props2[i2];
14664
15079
  descriptor.enumerable = descriptor.enumerable || false;
14665
15080
  descriptor.configurable = true;
14666
15081
  if ("value" in descriptor)
@@ -14830,8 +15245,8 @@ function _classCallCheck$o(instance, Constructor) {
14830
15245
  }
14831
15246
  }
14832
15247
  function _defineProperties$o(target, props2) {
14833
- for (var i3 = 0; i3 < props2.length; i3++) {
14834
- var descriptor = props2[i3];
15248
+ for (var i2 = 0; i2 < props2.length; i2++) {
15249
+ var descriptor = props2[i2];
14835
15250
  descriptor.enumerable = descriptor.enumerable || false;
14836
15251
  descriptor.configurable = true;
14837
15252
  if ("value" in descriptor)
@@ -15001,8 +15416,8 @@ function _classCallCheck$n(instance, Constructor) {
15001
15416
  }
15002
15417
  }
15003
15418
  function _defineProperties$n(target, props2) {
15004
- for (var i3 = 0; i3 < props2.length; i3++) {
15005
- var descriptor = props2[i3];
15419
+ for (var i2 = 0; i2 < props2.length; i2++) {
15420
+ var descriptor = props2[i2];
15006
15421
  descriptor.enumerable = descriptor.enumerable || false;
15007
15422
  descriptor.configurable = true;
15008
15423
  if ("value" in descriptor)
@@ -15176,8 +15591,8 @@ function _classCallCheck$m(instance, Constructor) {
15176
15591
  }
15177
15592
  }
15178
15593
  function _defineProperties$m(target, props2) {
15179
- for (var i3 = 0; i3 < props2.length; i3++) {
15180
- var descriptor = props2[i3];
15594
+ for (var i2 = 0; i2 < props2.length; i2++) {
15595
+ var descriptor = props2[i2];
15181
15596
  descriptor.enumerable = descriptor.enumerable || false;
15182
15597
  descriptor.configurable = true;
15183
15598
  if ("value" in descriptor)
@@ -15359,8 +15774,8 @@ function _classCallCheck$l(instance, Constructor) {
15359
15774
  }
15360
15775
  }
15361
15776
  function _defineProperties$l(target, props2) {
15362
- for (var i3 = 0; i3 < props2.length; i3++) {
15363
- var descriptor = props2[i3];
15777
+ for (var i2 = 0; i2 < props2.length; i2++) {
15778
+ var descriptor = props2[i2];
15364
15779
  descriptor.enumerable = descriptor.enumerable || false;
15365
15780
  descriptor.configurable = true;
15366
15781
  if ("value" in descriptor)
@@ -15512,8 +15927,8 @@ function _classCallCheck$k(instance, Constructor) {
15512
15927
  }
15513
15928
  }
15514
15929
  function _defineProperties$k(target, props2) {
15515
- for (var i3 = 0; i3 < props2.length; i3++) {
15516
- var descriptor = props2[i3];
15930
+ for (var i2 = 0; i2 < props2.length; i2++) {
15931
+ var descriptor = props2[i2];
15517
15932
  descriptor.enumerable = descriptor.enumerable || false;
15518
15933
  descriptor.configurable = true;
15519
15934
  if ("value" in descriptor)
@@ -15657,8 +16072,8 @@ function _classCallCheck$j(instance, Constructor) {
15657
16072
  }
15658
16073
  }
15659
16074
  function _defineProperties$j(target, props2) {
15660
- for (var i3 = 0; i3 < props2.length; i3++) {
15661
- var descriptor = props2[i3];
16075
+ for (var i2 = 0; i2 < props2.length; i2++) {
16076
+ var descriptor = props2[i2];
15662
16077
  descriptor.enumerable = descriptor.enumerable || false;
15663
16078
  descriptor.configurable = true;
15664
16079
  if ("value" in descriptor)
@@ -15814,8 +16229,8 @@ function _classCallCheck$i(instance, Constructor) {
15814
16229
  }
15815
16230
  }
15816
16231
  function _defineProperties$i(target, props2) {
15817
- for (var i3 = 0; i3 < props2.length; i3++) {
15818
- var descriptor = props2[i3];
16232
+ for (var i2 = 0; i2 < props2.length; i2++) {
16233
+ var descriptor = props2[i2];
15819
16234
  descriptor.enumerable = descriptor.enumerable || false;
15820
16235
  descriptor.configurable = true;
15821
16236
  if ("value" in descriptor)
@@ -15986,8 +16401,8 @@ function _classCallCheck$h(instance, Constructor) {
15986
16401
  }
15987
16402
  }
15988
16403
  function _defineProperties$h(target, props2) {
15989
- for (var i3 = 0; i3 < props2.length; i3++) {
15990
- var descriptor = props2[i3];
16404
+ for (var i2 = 0; i2 < props2.length; i2++) {
16405
+ var descriptor = props2[i2];
15991
16406
  descriptor.enumerable = descriptor.enumerable || false;
15992
16407
  descriptor.configurable = true;
15993
16408
  if ("value" in descriptor)
@@ -16166,8 +16581,8 @@ function _classCallCheck$g(instance, Constructor) {
16166
16581
  }
16167
16582
  }
16168
16583
  function _defineProperties$g(target, props2) {
16169
- for (var i3 = 0; i3 < props2.length; i3++) {
16170
- var descriptor = props2[i3];
16584
+ for (var i2 = 0; i2 < props2.length; i2++) {
16585
+ var descriptor = props2[i2];
16171
16586
  descriptor.enumerable = descriptor.enumerable || false;
16172
16587
  descriptor.configurable = true;
16173
16588
  if ("value" in descriptor)
@@ -16355,8 +16770,8 @@ function _classCallCheck$f(instance, Constructor) {
16355
16770
  }
16356
16771
  }
16357
16772
  function _defineProperties$f(target, props2) {
16358
- for (var i3 = 0; i3 < props2.length; i3++) {
16359
- var descriptor = props2[i3];
16773
+ for (var i2 = 0; i2 < props2.length; i2++) {
16774
+ var descriptor = props2[i2];
16360
16775
  descriptor.enumerable = descriptor.enumerable || false;
16361
16776
  descriptor.configurable = true;
16362
16777
  if ("value" in descriptor)
@@ -16559,8 +16974,8 @@ function _classCallCheck$e(instance, Constructor) {
16559
16974
  }
16560
16975
  }
16561
16976
  function _defineProperties$e(target, props2) {
16562
- for (var i3 = 0; i3 < props2.length; i3++) {
16563
- var descriptor = props2[i3];
16977
+ for (var i2 = 0; i2 < props2.length; i2++) {
16978
+ var descriptor = props2[i2];
16564
16979
  descriptor.enumerable = descriptor.enumerable || false;
16565
16980
  descriptor.configurable = true;
16566
16981
  if ("value" in descriptor)
@@ -16750,8 +17165,8 @@ function _classCallCheck$d(instance, Constructor) {
16750
17165
  }
16751
17166
  }
16752
17167
  function _defineProperties$d(target, props2) {
16753
- for (var i3 = 0; i3 < props2.length; i3++) {
16754
- var descriptor = props2[i3];
17168
+ for (var i2 = 0; i2 < props2.length; i2++) {
17169
+ var descriptor = props2[i2];
16755
17170
  descriptor.enumerable = descriptor.enumerable || false;
16756
17171
  descriptor.configurable = true;
16757
17172
  if ("value" in descriptor)
@@ -16910,8 +17325,8 @@ function _classCallCheck$c(instance, Constructor) {
16910
17325
  }
16911
17326
  }
16912
17327
  function _defineProperties$c(target, props2) {
16913
- for (var i3 = 0; i3 < props2.length; i3++) {
16914
- var descriptor = props2[i3];
17328
+ for (var i2 = 0; i2 < props2.length; i2++) {
17329
+ var descriptor = props2[i2];
16915
17330
  descriptor.enumerable = descriptor.enumerable || false;
16916
17331
  descriptor.configurable = true;
16917
17332
  if ("value" in descriptor)
@@ -17070,8 +17485,8 @@ function _classCallCheck$b(instance, Constructor) {
17070
17485
  }
17071
17486
  }
17072
17487
  function _defineProperties$b(target, props2) {
17073
- for (var i3 = 0; i3 < props2.length; i3++) {
17074
- var descriptor = props2[i3];
17488
+ for (var i2 = 0; i2 < props2.length; i2++) {
17489
+ var descriptor = props2[i2];
17075
17490
  descriptor.enumerable = descriptor.enumerable || false;
17076
17491
  descriptor.configurable = true;
17077
17492
  if ("value" in descriptor)
@@ -17230,8 +17645,8 @@ function _classCallCheck$a(instance, Constructor) {
17230
17645
  }
17231
17646
  }
17232
17647
  function _defineProperties$a(target, props2) {
17233
- for (var i3 = 0; i3 < props2.length; i3++) {
17234
- var descriptor = props2[i3];
17648
+ for (var i2 = 0; i2 < props2.length; i2++) {
17649
+ var descriptor = props2[i2];
17235
17650
  descriptor.enumerable = descriptor.enumerable || false;
17236
17651
  descriptor.configurable = true;
17237
17652
  if ("value" in descriptor)
@@ -17383,8 +17798,8 @@ function _classCallCheck$9(instance, Constructor) {
17383
17798
  }
17384
17799
  }
17385
17800
  function _defineProperties$9(target, props2) {
17386
- for (var i3 = 0; i3 < props2.length; i3++) {
17387
- var descriptor = props2[i3];
17801
+ for (var i2 = 0; i2 < props2.length; i2++) {
17802
+ var descriptor = props2[i2];
17388
17803
  descriptor.enumerable = descriptor.enumerable || false;
17389
17804
  descriptor.configurable = true;
17390
17805
  if ("value" in descriptor)
@@ -17529,8 +17944,8 @@ function _classCallCheck$8(instance, Constructor) {
17529
17944
  }
17530
17945
  }
17531
17946
  function _defineProperties$8(target, props2) {
17532
- for (var i3 = 0; i3 < props2.length; i3++) {
17533
- var descriptor = props2[i3];
17947
+ for (var i2 = 0; i2 < props2.length; i2++) {
17948
+ var descriptor = props2[i2];
17534
17949
  descriptor.enumerable = descriptor.enumerable || false;
17535
17950
  descriptor.configurable = true;
17536
17951
  if ("value" in descriptor)
@@ -17680,8 +18095,8 @@ function _classCallCheck$7(instance, Constructor) {
17680
18095
  }
17681
18096
  }
17682
18097
  function _defineProperties$7(target, props2) {
17683
- for (var i3 = 0; i3 < props2.length; i3++) {
17684
- var descriptor = props2[i3];
18098
+ for (var i2 = 0; i2 < props2.length; i2++) {
18099
+ var descriptor = props2[i2];
17685
18100
  descriptor.enumerable = descriptor.enumerable || false;
17686
18101
  descriptor.configurable = true;
17687
18102
  if ("value" in descriptor)
@@ -17827,8 +18242,8 @@ function _classCallCheck$6(instance, Constructor) {
17827
18242
  }
17828
18243
  }
17829
18244
  function _defineProperties$6(target, props2) {
17830
- for (var i3 = 0; i3 < props2.length; i3++) {
17831
- var descriptor = props2[i3];
18245
+ for (var i2 = 0; i2 < props2.length; i2++) {
18246
+ var descriptor = props2[i2];
17832
18247
  descriptor.enumerable = descriptor.enumerable || false;
17833
18248
  descriptor.configurable = true;
17834
18249
  if ("value" in descriptor)
@@ -17973,8 +18388,8 @@ function _classCallCheck$5(instance, Constructor) {
17973
18388
  }
17974
18389
  }
17975
18390
  function _defineProperties$5(target, props2) {
17976
- for (var i3 = 0; i3 < props2.length; i3++) {
17977
- var descriptor = props2[i3];
18391
+ for (var i2 = 0; i2 < props2.length; i2++) {
18392
+ var descriptor = props2[i2];
17978
18393
  descriptor.enumerable = descriptor.enumerable || false;
17979
18394
  descriptor.configurable = true;
17980
18395
  if ("value" in descriptor)
@@ -18119,8 +18534,8 @@ function _classCallCheck$4(instance, Constructor) {
18119
18534
  }
18120
18535
  }
18121
18536
  function _defineProperties$4(target, props2) {
18122
- for (var i3 = 0; i3 < props2.length; i3++) {
18123
- var descriptor = props2[i3];
18537
+ for (var i2 = 0; i2 < props2.length; i2++) {
18538
+ var descriptor = props2[i2];
18124
18539
  descriptor.enumerable = descriptor.enumerable || false;
18125
18540
  descriptor.configurable = true;
18126
18541
  if ("value" in descriptor)
@@ -18254,8 +18669,8 @@ function _classCallCheck$3(instance, Constructor) {
18254
18669
  }
18255
18670
  }
18256
18671
  function _defineProperties$3(target, props2) {
18257
- for (var i3 = 0; i3 < props2.length; i3++) {
18258
- var descriptor = props2[i3];
18672
+ for (var i2 = 0; i2 < props2.length; i2++) {
18673
+ var descriptor = props2[i2];
18259
18674
  descriptor.enumerable = descriptor.enumerable || false;
18260
18675
  descriptor.configurable = true;
18261
18676
  if ("value" in descriptor)
@@ -18400,8 +18815,8 @@ function _classCallCheck$2(instance, Constructor) {
18400
18815
  }
18401
18816
  }
18402
18817
  function _defineProperties$2(target, props2) {
18403
- for (var i3 = 0; i3 < props2.length; i3++) {
18404
- var descriptor = props2[i3];
18818
+ for (var i2 = 0; i2 < props2.length; i2++) {
18819
+ var descriptor = props2[i2];
18405
18820
  descriptor.enumerable = descriptor.enumerable || false;
18406
18821
  descriptor.configurable = true;
18407
18822
  if ("value" in descriptor)
@@ -18546,8 +18961,8 @@ function _classCallCheck$1(instance, Constructor) {
18546
18961
  }
18547
18962
  }
18548
18963
  function _defineProperties$1(target, props2) {
18549
- for (var i3 = 0; i3 < props2.length; i3++) {
18550
- var descriptor = props2[i3];
18964
+ for (var i2 = 0; i2 < props2.length; i2++) {
18965
+ var descriptor = props2[i2];
18551
18966
  descriptor.enumerable = descriptor.enumerable || false;
18552
18967
  descriptor.configurable = true;
18553
18968
  if ("value" in descriptor)
@@ -18679,8 +19094,8 @@ function _classCallCheck(instance, Constructor) {
18679
19094
  }
18680
19095
  }
18681
19096
  function _defineProperties(target, props2) {
18682
- for (var i3 = 0; i3 < props2.length; i3++) {
18683
- var descriptor = props2[i3];
19097
+ for (var i2 = 0; i2 < props2.length; i2++) {
19098
+ var descriptor = props2[i2];
18684
19099
  descriptor.enumerable = descriptor.enumerable || false;
18685
19100
  descriptor.configurable = true;
18686
19101
  if ("value" in descriptor)
@@ -18845,13 +19260,13 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
18845
19260
  if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
18846
19261
  if (it)
18847
19262
  o = it;
18848
- var i3 = 0;
19263
+ var i2 = 0;
18849
19264
  var F = function F2() {
18850
19265
  };
18851
19266
  return { s: F, n: function n() {
18852
- if (i3 >= o.length)
19267
+ if (i2 >= o.length)
18853
19268
  return { done: true };
18854
- return { done: false, value: o[i3++] };
19269
+ return { done: false, value: o[i2++] };
18855
19270
  }, e: function e2(_e) {
18856
19271
  throw _e;
18857
19272
  }, f: F };
@@ -18894,8 +19309,8 @@ function _unsupportedIterableToArray(o, minLen) {
18894
19309
  function _arrayLikeToArray(arr, len) {
18895
19310
  if (len == null || len > arr.length)
18896
19311
  len = arr.length;
18897
- for (var i3 = 0, arr2 = new Array(len); i3 < len; i3++) {
18898
- arr2[i3] = arr[i3];
19312
+ for (var i2 = 0, arr2 = new Array(len); i2 < len; i2++) {
19313
+ arr2[i2] = arr[i2];
18899
19314
  }
18900
19315
  return arr2;
18901
19316
  }
@@ -19597,7 +20012,7 @@ var script$2 = defineComponent({
19597
20012
  type: Number,
19598
20013
  required: false,
19599
20014
  default: 1,
19600
- validator: (i3) => typeof i3 === "number" && Number.isInteger(i3) && i3 >= 0 && i3 <= 6
20015
+ validator: (i2) => typeof i2 === "number" && Number.isInteger(i2) && i2 >= 0 && i2 <= 6
19601
20016
  },
19602
20017
  lowerLimit: {
19603
20018
  type: Date,
@@ -19634,7 +20049,7 @@ var script$2 = defineComponent({
19634
20049
  const weekDays = computed(() => {
19635
20050
  const initial = props2.weekStartsOn;
19636
20051
  const dayFormat = format2.value(props2.weekdayFormat);
19637
- return Array.from(Array(7)).map((_, i3) => (initial + i3) % 7).map((v) => setDay(new Date(), v, {
20052
+ return Array.from(Array(7)).map((_, i2) => (initial + i2) % 7).map((v) => setDay(new Date(), v, {
19638
20053
  weekStartsOn: props2.weekStartsOn
19639
20054
  })).map(dayFormat);
19640
20055
  });
@@ -20247,6 +20662,14 @@ const init = () => {
20247
20662
  data.fireStepEvent = data.fireStepEvent || fireStepEvent;
20248
20663
  data.handleRedirect = data.handleRedirect || handleRedirect;
20249
20664
  data.scrollAnchor = data.scrollAnchor || scrollAnchor;
20665
+ data.inList = (list2, item) => {
20666
+ if (!list2 || !item) {
20667
+ console.log("inList blank", list2, item);
20668
+ return false;
20669
+ }
20670
+ console.log("inList", list2, item, list2.includes(item));
20671
+ return list2.includes(item);
20672
+ };
20250
20673
  data.getVal = (formNode, key) => {
20251
20674
  if (!formNode || !key) {
20252
20675
  return;