@procore/hammer-test-jest 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -272,16 +272,16 @@ var require_collections = __commonJS({
272
272
  if (list.length) {
273
273
  result += config2.spacingOuter;
274
274
  const indentationNext = indentation + config2.indent;
275
- for (let i = 0; i < list.length; i++) {
275
+ for (let i2 = 0; i2 < list.length; i2++) {
276
276
  result += indentationNext;
277
- if (i === config2.maxWidth) {
277
+ if (i2 === config2.maxWidth) {
278
278
  result += "\u2026";
279
279
  break;
280
280
  }
281
- if (i in list) {
282
- result += printer(list[i], config2, indentationNext, depth, refs);
281
+ if (i2 in list) {
282
+ result += printer(list[i2], config2, indentationNext, depth, refs);
283
283
  }
284
- if (i < list.length - 1) {
284
+ if (i2 < list.length - 1) {
285
285
  result += `,${config2.spacingInner}`;
286
286
  } else if (!config2.min) {
287
287
  result += ",";
@@ -297,12 +297,12 @@ var require_collections = __commonJS({
297
297
  if (keys2.length) {
298
298
  result += config2.spacingOuter;
299
299
  const indentationNext = indentation + config2.indent;
300
- for (let i = 0; i < keys2.length; i++) {
301
- const key = keys2[i];
300
+ for (let i2 = 0; i2 < keys2.length; i2++) {
301
+ const key = keys2[i2];
302
302
  const name = printer(key, config2, indentationNext, depth, refs);
303
303
  const value = printer(val[key], config2, indentationNext, depth, refs);
304
304
  result += `${indentationNext + name}: ${value}`;
305
- if (i < keys2.length - 1) {
305
+ if (i2 < keys2.length - 1) {
306
306
  result += `,${config2.spacingInner}`;
307
307
  } else if (!config2.min) {
308
308
  result += ",";
@@ -623,11 +623,11 @@ var require_Immutable = __commonJS({
623
623
  printer
624
624
  )}}`;
625
625
  function getRecordEntries(val) {
626
- let i = 0;
626
+ let i2 = 0;
627
627
  return {
628
628
  next() {
629
- if (i < val._keys.length) {
630
- const key = val._keys[i++];
629
+ if (i2 < val._keys.length) {
630
+ const key = val._keys[i2++];
631
631
  return {
632
632
  done: false,
633
633
  value: [key, val.get(key)]
@@ -755,62 +755,62 @@ var require_react_is_production_min = __commonJS({
755
755
  "use strict";
756
756
  init_cjs_shims();
757
757
  var b2 = Symbol.for("react.element");
758
- var c = Symbol.for("react.portal");
759
- var d2 = Symbol.for("react.fragment");
758
+ var c2 = Symbol.for("react.portal");
759
+ var d = Symbol.for("react.fragment");
760
760
  var e = Symbol.for("react.strict_mode");
761
- var f = Symbol.for("react.profiler");
762
- var g = Symbol.for("react.provider");
761
+ var f2 = Symbol.for("react.profiler");
762
+ var g2 = Symbol.for("react.provider");
763
763
  var h = Symbol.for("react.context");
764
- var k = Symbol.for("react.server_context");
764
+ var k2 = Symbol.for("react.server_context");
765
765
  var l = Symbol.for("react.forward_ref");
766
- var m2 = Symbol.for("react.suspense");
766
+ var m = Symbol.for("react.suspense");
767
767
  var n2 = Symbol.for("react.suspense_list");
768
- var p2 = Symbol.for("react.memo");
768
+ var p = Symbol.for("react.memo");
769
769
  var q = Symbol.for("react.lazy");
770
770
  var t = Symbol.for("react.offscreen");
771
771
  var u2;
772
772
  u2 = Symbol.for("react.module.reference");
773
- function v2(a) {
773
+ function v(a) {
774
774
  if ("object" === typeof a && null !== a) {
775
775
  var r = a.$$typeof;
776
776
  switch (r) {
777
777
  case b2:
778
778
  switch (a = a.type, a) {
779
- case d2:
780
- case f:
779
+ case d:
780
+ case f2:
781
781
  case e:
782
- case m2:
782
+ case m:
783
783
  case n2:
784
784
  return a;
785
785
  default:
786
786
  switch (a = a && a.$$typeof, a) {
787
- case k:
787
+ case k2:
788
788
  case h:
789
789
  case l:
790
790
  case q:
791
- case p2:
792
- case g:
791
+ case p:
792
+ case g2:
793
793
  return a;
794
794
  default:
795
795
  return r;
796
796
  }
797
797
  }
798
- case c:
798
+ case c2:
799
799
  return r;
800
800
  }
801
801
  }
802
802
  }
803
803
  exports2.ContextConsumer = h;
804
- exports2.ContextProvider = g;
804
+ exports2.ContextProvider = g2;
805
805
  exports2.Element = b2;
806
806
  exports2.ForwardRef = l;
807
- exports2.Fragment = d2;
807
+ exports2.Fragment = d;
808
808
  exports2.Lazy = q;
809
- exports2.Memo = p2;
810
- exports2.Portal = c;
811
- exports2.Profiler = f;
809
+ exports2.Memo = p;
810
+ exports2.Portal = c2;
811
+ exports2.Profiler = f2;
812
812
  exports2.StrictMode = e;
813
- exports2.Suspense = m2;
813
+ exports2.Suspense = m;
814
814
  exports2.SuspenseList = n2;
815
815
  exports2.isAsyncMode = function() {
816
816
  return false;
@@ -819,45 +819,45 @@ var require_react_is_production_min = __commonJS({
819
819
  return false;
820
820
  };
821
821
  exports2.isContextConsumer = function(a) {
822
- return v2(a) === h;
822
+ return v(a) === h;
823
823
  };
824
824
  exports2.isContextProvider = function(a) {
825
- return v2(a) === g;
825
+ return v(a) === g2;
826
826
  };
827
827
  exports2.isElement = function(a) {
828
828
  return "object" === typeof a && null !== a && a.$$typeof === b2;
829
829
  };
830
830
  exports2.isForwardRef = function(a) {
831
- return v2(a) === l;
831
+ return v(a) === l;
832
832
  };
833
833
  exports2.isFragment = function(a) {
834
- return v2(a) === d2;
834
+ return v(a) === d;
835
835
  };
836
836
  exports2.isLazy = function(a) {
837
- return v2(a) === q;
837
+ return v(a) === q;
838
838
  };
839
839
  exports2.isMemo = function(a) {
840
- return v2(a) === p2;
840
+ return v(a) === p;
841
841
  };
842
842
  exports2.isPortal = function(a) {
843
- return v2(a) === c;
843
+ return v(a) === c2;
844
844
  };
845
845
  exports2.isProfiler = function(a) {
846
- return v2(a) === f;
846
+ return v(a) === f2;
847
847
  };
848
848
  exports2.isStrictMode = function(a) {
849
- return v2(a) === e;
849
+ return v(a) === e;
850
850
  };
851
851
  exports2.isSuspense = function(a) {
852
- return v2(a) === m2;
852
+ return v(a) === m;
853
853
  };
854
854
  exports2.isSuspenseList = function(a) {
855
- return v2(a) === n2;
855
+ return v(a) === n2;
856
856
  };
857
857
  exports2.isValidElementType = function(a) {
858
- return "string" === typeof a || "function" === typeof a || a === d2 || a === f || a === e || a === m2 || a === n2 || a === t || "object" === typeof a && null !== a && (a.$$typeof === q || a.$$typeof === p2 || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u2 || void 0 !== a.getModuleId) ? true : false;
858
+ return "string" === typeof a || "function" === typeof a || a === d || a === f2 || a === e || a === m || a === n2 || a === t || "object" === typeof a && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g2 || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u2 || void 0 !== a.getModuleId) ? true : false;
859
859
  };
860
- exports2.typeOf = v2;
860
+ exports2.typeOf = v;
861
861
  }
862
862
  });
863
863
 
@@ -1454,10 +1454,10 @@ ${indentationNext}`);
1454
1454
  return printed;
1455
1455
  }
1456
1456
  function findPlugin(plugins5, val) {
1457
- for (let p2 = 0; p2 < plugins5.length; p2++) {
1457
+ for (let p = 0; p < plugins5.length; p++) {
1458
1458
  try {
1459
- if (plugins5[p2].test(val)) {
1460
- return plugins5[p2];
1459
+ if (plugins5[p].test(val)) {
1460
+ return plugins5[p];
1461
1461
  }
1462
1462
  } catch (error) {
1463
1463
  throw new PrettyFormatPluginError(error.message, error.stack);
@@ -1670,11 +1670,11 @@ function inspectList(list, options, inspectItem, separator = ", ") {
1670
1670
  let output = "";
1671
1671
  let peek = "";
1672
1672
  let truncated = "";
1673
- for (let i = 0; i < size; i += 1) {
1674
- const last = i + 1 === list.length;
1675
- const secondToLast = i + 2 === list.length;
1676
- truncated = `${truncator}(${list.length - i})`;
1677
- const value = list[i];
1673
+ for (let i2 = 0; i2 < size; i2 += 1) {
1674
+ const last = i2 + 1 === list.length;
1675
+ const secondToLast = i2 + 2 === list.length;
1676
+ truncated = `${truncator}(${list.length - i2})`;
1677
+ const value = list[i2];
1678
1678
  options.truncate = originalLength - output.length - (last ? 0 : separator.length);
1679
1679
  const string3 = peek || inspectItem(value, options) + (last ? "" : separator);
1680
1680
  const nextLength = output.length + string3.length;
@@ -1685,13 +1685,13 @@ function inspectList(list, options, inspectItem, separator = ", ") {
1685
1685
  if (!last && !secondToLast && truncatedLength > originalLength) {
1686
1686
  break;
1687
1687
  }
1688
- peek = last ? "" : inspectItem(list[i + 1], options) + (secondToLast ? "" : separator);
1688
+ peek = last ? "" : inspectItem(list[i2 + 1], options) + (secondToLast ? "" : separator);
1689
1689
  if (!last && secondToLast && truncatedLength > originalLength && nextLength + peek.length > originalLength) {
1690
1690
  break;
1691
1691
  }
1692
1692
  output += string3;
1693
1693
  if (!last && !secondToLast && nextLength + peek.length >= originalLength) {
1694
- truncated = `${truncator}(${list.length - i - 1})`;
1694
+ truncated = `${truncator}(${list.length - i2 - 1})`;
1695
1695
  break;
1696
1696
  }
1697
1697
  truncated = "";
@@ -1830,11 +1830,11 @@ function inspectTypedArray(array2, options) {
1830
1830
  if (!array2.length && !nonIndexProperties.length)
1831
1831
  return `${name}[]`;
1832
1832
  let output = "";
1833
- for (let i = 0; i < array2.length; i++) {
1834
- const string3 = `${options.stylize(truncate(array2[i], options.truncate), "number")}${i === array2.length - 1 ? "" : ", "}`;
1833
+ for (let i2 = 0; i2 < array2.length; i2++) {
1834
+ const string3 = `${options.stylize(truncate(array2[i2], options.truncate), "number")}${i2 === array2.length - 1 ? "" : ", "}`;
1835
1835
  options.truncate -= string3.length;
1836
- if (array2[i] !== array2.length && options.truncate <= 3) {
1837
- output += `${truncator}(${array2.length - array2[i] + 1})`;
1836
+ if (array2[i2] !== array2.length && options.truncate <= 3) {
1837
+ output += `${truncator}(${array2.length - array2[i2] + 1})`;
1838
1838
  break;
1839
1839
  }
1840
1840
  output += string3;
@@ -1957,7 +1957,7 @@ var init_number = __esm({
1957
1957
  "use strict";
1958
1958
  init_cjs_shims();
1959
1959
  init_helpers();
1960
- isNaN2 = Number.isNaN || ((i) => i !== i);
1960
+ isNaN2 = Number.isNaN || ((i2) => i2 !== i2);
1961
1961
  }
1962
1962
  });
1963
1963
 
@@ -2459,9 +2459,9 @@ var require_build2 = __commonJS({
2459
2459
  }
2460
2460
  return nCommon;
2461
2461
  };
2462
- var extendPathsF = (d2, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF) => {
2462
+ var extendPathsF = (d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF) => {
2463
2463
  let iF = 0;
2464
- let kF = -d2;
2464
+ let kF = -d;
2465
2465
  let aFirst = aIndexesF[iF];
2466
2466
  let aIndexPrev1 = aFirst;
2467
2467
  aIndexesF[iF] += countCommonItemsF(
@@ -2471,9 +2471,9 @@ var require_build2 = __commonJS({
2471
2471
  bEnd,
2472
2472
  isCommon
2473
2473
  );
2474
- const nF = d2 < iMaxF ? d2 : iMaxF;
2474
+ const nF = d < iMaxF ? d : iMaxF;
2475
2475
  for (iF += 1, kF += 2; iF <= nF; iF += 1, kF += 2) {
2476
- if (iF !== d2 && aIndexPrev1 < aIndexesF[iF]) {
2476
+ if (iF !== d && aIndexPrev1 < aIndexesF[iF]) {
2477
2477
  aFirst = aIndexesF[iF];
2478
2478
  } else {
2479
2479
  aFirst = aIndexPrev1 + 1;
@@ -2486,9 +2486,9 @@ var require_build2 = __commonJS({
2486
2486
  }
2487
2487
  return iMaxF;
2488
2488
  };
2489
- var extendPathsR = (d2, aStart, bStart, bR, isCommon, aIndexesR, iMaxR) => {
2489
+ var extendPathsR = (d, aStart, bStart, bR, isCommon, aIndexesR, iMaxR) => {
2490
2490
  let iR = 0;
2491
- let kR = d2;
2491
+ let kR = d;
2492
2492
  let aFirst = aIndexesR[iR];
2493
2493
  let aIndexPrev1 = aFirst;
2494
2494
  aIndexesR[iR] -= countCommonItemsR(
@@ -2498,9 +2498,9 @@ var require_build2 = __commonJS({
2498
2498
  bR + aFirst - kR - 1,
2499
2499
  isCommon
2500
2500
  );
2501
- const nR = d2 < iMaxR ? d2 : iMaxR;
2501
+ const nR = d < iMaxR ? d : iMaxR;
2502
2502
  for (iR += 1, kR -= 2; iR <= nR; iR += 1, kR -= 2) {
2503
- if (iR !== d2 && aIndexesR[iR] < aIndexPrev1) {
2503
+ if (iR !== d && aIndexesR[iR] < aIndexPrev1) {
2504
2504
  aFirst = aIndexesR[iR];
2505
2505
  } else {
2506
2506
  aFirst = aIndexPrev1 - 1;
@@ -2519,17 +2519,17 @@ var require_build2 = __commonJS({
2519
2519
  }
2520
2520
  return iMaxR;
2521
2521
  };
2522
- var extendOverlappablePathsF = (d2, aStart, aEnd, bStart, bEnd, isCommon, aIndexesF, iMaxF, aIndexesR, iMaxR, division) => {
2522
+ var extendOverlappablePathsF = (d, aStart, aEnd, bStart, bEnd, isCommon, aIndexesF, iMaxF, aIndexesR, iMaxR, division) => {
2523
2523
  const bF = bStart - aStart;
2524
2524
  const aLength = aEnd - aStart;
2525
2525
  const bLength = bEnd - bStart;
2526
2526
  const baDeltaLength = bLength - aLength;
2527
- const kMinOverlapF = -baDeltaLength - (d2 - 1);
2528
- const kMaxOverlapF = -baDeltaLength + (d2 - 1);
2527
+ const kMinOverlapF = -baDeltaLength - (d - 1);
2528
+ const kMaxOverlapF = -baDeltaLength + (d - 1);
2529
2529
  let aIndexPrev1 = NOT_YET_SET;
2530
- const nF = d2 < iMaxF ? d2 : iMaxF;
2531
- for (let iF = 0, kF = -d2; iF <= nF; iF += 1, kF += 2) {
2532
- const insert2 = iF === 0 || iF !== d2 && aIndexPrev1 < aIndexesF[iF];
2530
+ const nF = d < iMaxF ? d : iMaxF;
2531
+ for (let iF = 0, kF = -d; iF <= nF; iF += 1, kF += 2) {
2532
+ const insert2 = iF === 0 || iF !== d && aIndexPrev1 < aIndexesF[iF];
2533
2533
  const aLastPrev = insert2 ? aIndexesF[iF] : aIndexPrev1;
2534
2534
  const aFirst = insert2 ? aLastPrev : aLastPrev + 1;
2535
2535
  const bFirst = bF + aFirst - kF;
@@ -2544,7 +2544,7 @@ var require_build2 = __commonJS({
2544
2544
  aIndexPrev1 = aIndexesF[iF];
2545
2545
  aIndexesF[iF] = aLast;
2546
2546
  if (kMinOverlapF <= kF && kF <= kMaxOverlapF) {
2547
- const iR = (d2 - 1 - (kF + baDeltaLength)) / 2;
2547
+ const iR = (d - 1 - (kF + baDeltaLength)) / 2;
2548
2548
  if (iR <= iMaxR && aIndexesR[iR] - 1 <= aLast) {
2549
2549
  const bLastPrev = bF + aLastPrev - (insert2 ? kF + 1 : kF - 1);
2550
2550
  const nCommonR = countCommonItemsR(
@@ -2558,8 +2558,8 @@ var require_build2 = __commonJS({
2558
2558
  const bIndexPrevFirst = bLastPrev - nCommonR;
2559
2559
  const aEndPreceding = aIndexPrevFirst + 1;
2560
2560
  const bEndPreceding = bIndexPrevFirst + 1;
2561
- division.nChangePreceding = d2 - 1;
2562
- if (d2 - 1 === aEndPreceding + bEndPreceding - aStart - bStart) {
2561
+ division.nChangePreceding = d - 1;
2562
+ if (d - 1 === aEndPreceding + bEndPreceding - aStart - bStart) {
2563
2563
  division.aEndPreceding = aStart;
2564
2564
  division.bEndPreceding = bStart;
2565
2565
  } else {
@@ -2578,8 +2578,8 @@ var require_build2 = __commonJS({
2578
2578
  }
2579
2579
  const aStartFollowing = aLast + 1;
2580
2580
  const bStartFollowing = bFirst + nCommonF + 1;
2581
- division.nChangeFollowing = d2 - 1;
2582
- if (d2 - 1 === aEnd + bEnd - aStartFollowing - bStartFollowing) {
2581
+ division.nChangeFollowing = d - 1;
2582
+ if (d - 1 === aEnd + bEnd - aStartFollowing - bStartFollowing) {
2583
2583
  division.aStartFollowing = aEnd;
2584
2584
  division.bStartFollowing = bEnd;
2585
2585
  } else {
@@ -2592,17 +2592,17 @@ var require_build2 = __commonJS({
2592
2592
  }
2593
2593
  return false;
2594
2594
  };
2595
- var extendOverlappablePathsR = (d2, aStart, aEnd, bStart, bEnd, isCommon, aIndexesF, iMaxF, aIndexesR, iMaxR, division) => {
2595
+ var extendOverlappablePathsR = (d, aStart, aEnd, bStart, bEnd, isCommon, aIndexesF, iMaxF, aIndexesR, iMaxR, division) => {
2596
2596
  const bR = bEnd - aEnd;
2597
2597
  const aLength = aEnd - aStart;
2598
2598
  const bLength = bEnd - bStart;
2599
2599
  const baDeltaLength = bLength - aLength;
2600
- const kMinOverlapR = baDeltaLength - d2;
2601
- const kMaxOverlapR = baDeltaLength + d2;
2600
+ const kMinOverlapR = baDeltaLength - d;
2601
+ const kMaxOverlapR = baDeltaLength + d;
2602
2602
  let aIndexPrev1 = NOT_YET_SET;
2603
- const nR = d2 < iMaxR ? d2 : iMaxR;
2604
- for (let iR = 0, kR = d2; iR <= nR; iR += 1, kR -= 2) {
2605
- const insert2 = iR === 0 || iR !== d2 && aIndexesR[iR] < aIndexPrev1;
2603
+ const nR = d < iMaxR ? d : iMaxR;
2604
+ for (let iR = 0, kR = d; iR <= nR; iR += 1, kR -= 2) {
2605
+ const insert2 = iR === 0 || iR !== d && aIndexesR[iR] < aIndexPrev1;
2606
2606
  const aLastPrev = insert2 ? aIndexesR[iR] : aIndexPrev1;
2607
2607
  const aFirst = insert2 ? aLastPrev : aLastPrev - 1;
2608
2608
  const bFirst = bR + aFirst - kR;
@@ -2617,11 +2617,11 @@ var require_build2 = __commonJS({
2617
2617
  aIndexPrev1 = aIndexesR[iR];
2618
2618
  aIndexesR[iR] = aLast;
2619
2619
  if (kMinOverlapR <= kR && kR <= kMaxOverlapR) {
2620
- const iF = (d2 + (kR - baDeltaLength)) / 2;
2620
+ const iF = (d + (kR - baDeltaLength)) / 2;
2621
2621
  if (iF <= iMaxF && aLast - 1 <= aIndexesF[iF]) {
2622
2622
  const bLast = bFirst - nCommonR;
2623
- division.nChangePreceding = d2;
2624
- if (d2 === aLast + bLast - aStart - bStart) {
2623
+ division.nChangePreceding = d;
2624
+ if (d === aLast + bLast - aStart - bStart) {
2625
2625
  division.aEndPreceding = aStart;
2626
2626
  division.bEndPreceding = bStart;
2627
2627
  } else {
@@ -2633,8 +2633,8 @@ var require_build2 = __commonJS({
2633
2633
  division.aCommonPreceding = aLast;
2634
2634
  division.bCommonPreceding = bLast;
2635
2635
  }
2636
- division.nChangeFollowing = d2 - 1;
2637
- if (d2 === 1) {
2636
+ division.nChangeFollowing = d - 1;
2637
+ if (d === 1) {
2638
2638
  division.nCommonFollowing = 0;
2639
2639
  division.aStartFollowing = aEnd;
2640
2640
  division.bStartFollowing = bEnd;
@@ -2654,7 +2654,7 @@ var require_build2 = __commonJS({
2654
2654
  }
2655
2655
  const aStartFollowing = aLastPrev + nCommonF;
2656
2656
  const bStartFollowing = bLastPrev + nCommonF;
2657
- if (d2 - 1 === aEnd + bEnd - aStartFollowing - bStartFollowing) {
2657
+ if (d - 1 === aEnd + bEnd - aStartFollowing - bStartFollowing) {
2658
2658
  division.aStartFollowing = aEnd;
2659
2659
  division.bStartFollowing = bEnd;
2660
2660
  } else {
@@ -2681,15 +2681,15 @@ var require_build2 = __commonJS({
2681
2681
  if (baDeltaLength % 2 === 0) {
2682
2682
  const dMin = (nChange || baDeltaLength) / 2;
2683
2683
  const dMax = (aLength + bLength) / 2;
2684
- for (let d2 = 1; d2 <= dMax; d2 += 1) {
2685
- iMaxF = extendPathsF(d2, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF);
2686
- if (d2 < dMin) {
2687
- iMaxR = extendPathsR(d2, aStart, bStart, bR, isCommon, aIndexesR, iMaxR);
2684
+ for (let d = 1; d <= dMax; d += 1) {
2685
+ iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF);
2686
+ if (d < dMin) {
2687
+ iMaxR = extendPathsR(d, aStart, bStart, bR, isCommon, aIndexesR, iMaxR);
2688
2688
  } else if (
2689
2689
  // If a reverse path overlaps a forward path in the same diagonal,
2690
2690
  // return a division of the index intervals at the middle change.
2691
2691
  extendOverlappablePathsR(
2692
- d2,
2692
+ d,
2693
2693
  aStart,
2694
2694
  aEnd,
2695
2695
  bStart,
@@ -2708,11 +2708,11 @@ var require_build2 = __commonJS({
2708
2708
  } else {
2709
2709
  const dMin = ((nChange || baDeltaLength) + 1) / 2;
2710
2710
  const dMax = (aLength + bLength + 1) / 2;
2711
- let d2 = 1;
2712
- iMaxF = extendPathsF(d2, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF);
2713
- for (d2 += 1; d2 <= dMax; d2 += 1) {
2711
+ let d = 1;
2712
+ iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF);
2713
+ for (d += 1; d <= dMax; d += 1) {
2714
2714
  iMaxR = extendPathsR(
2715
- d2 - 1,
2715
+ d - 1,
2716
2716
  aStart,
2717
2717
  bStart,
2718
2718
  bR,
@@ -2720,13 +2720,13 @@ var require_build2 = __commonJS({
2720
2720
  aIndexesR,
2721
2721
  iMaxR
2722
2722
  );
2723
- if (d2 < dMin) {
2724
- iMaxF = extendPathsF(d2, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF);
2723
+ if (d < dMin) {
2724
+ iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF);
2725
2725
  } else if (
2726
2726
  // If a forward path overlaps a reverse path in the same diagonal,
2727
2727
  // return a division of the index intervals at the middle change.
2728
2728
  extendOverlappablePathsF(
2729
- d2,
2729
+ d,
2730
2730
  aStart,
2731
2731
  aEnd,
2732
2732
  bStart,
@@ -2926,9 +2926,9 @@ var require_assertion_error = __commonJS({
2926
2926
  });
2927
2927
  }
2928
2928
  return function extendExclude() {
2929
- var args = [].slice.call(arguments), i = 0, res = {};
2930
- for (; i < args.length; i++) {
2931
- excludeProps(res, args[i]);
2929
+ var args = [].slice.call(arguments), i2 = 0, res = {};
2930
+ for (; i2 < args.length; i2++) {
2931
+ excludeProps(res, args[i2]);
2932
2932
  }
2933
2933
  return res;
2934
2934
  };
@@ -2998,15 +2998,15 @@ var require_pathval = __commonJS({
2998
2998
  var temporaryValue = obj;
2999
2999
  var res = null;
3000
3000
  pathDepth = typeof pathDepth === "undefined" ? parsed.length : pathDepth;
3001
- for (var i = 0; i < pathDepth; i++) {
3002
- var part = parsed[i];
3001
+ for (var i2 = 0; i2 < pathDepth; i2++) {
3002
+ var part = parsed[i2];
3003
3003
  if (temporaryValue) {
3004
3004
  if (typeof part.p === "undefined") {
3005
3005
  temporaryValue = temporaryValue[part.i];
3006
3006
  } else {
3007
3007
  temporaryValue = temporaryValue[part.p];
3008
3008
  }
3009
- if (i === pathDepth - 1) {
3009
+ if (i2 === pathDepth - 1) {
3010
3010
  res = temporaryValue;
3011
3011
  }
3012
3012
  }
@@ -3017,11 +3017,11 @@ var require_pathval = __commonJS({
3017
3017
  var tempObj = obj;
3018
3018
  var pathDepth = parsed.length;
3019
3019
  var part = null;
3020
- for (var i = 0; i < pathDepth; i++) {
3020
+ for (var i2 = 0; i2 < pathDepth; i2++) {
3021
3021
  var propName = null;
3022
3022
  var propVal = null;
3023
- part = parsed[i];
3024
- if (i === pathDepth - 1) {
3023
+ part = parsed[i2];
3024
+ if (i2 === pathDepth - 1) {
3025
3025
  propName = typeof part.p === "undefined" ? part.i : part.p;
3026
3026
  tempObj[propName] = val;
3027
3027
  } else if (typeof part.p !== "undefined" && tempObj[part.p]) {
@@ -3029,7 +3029,7 @@ var require_pathval = __commonJS({
3029
3029
  } else if (typeof part.i !== "undefined" && tempObj[part.i]) {
3030
3030
  tempObj = tempObj[part.i];
3031
3031
  } else {
3032
- var next = parsed[i + 1];
3032
+ var next = parsed[i2 + 1];
3033
3033
  propName = typeof part.p === "undefined" ? part.i : part.p;
3034
3034
  propVal = typeof next.p === "undefined" ? [] : {};
3035
3035
  tempObj[propName] = propVal;
@@ -3705,8 +3705,8 @@ var require_deep_eql = __commonJS({
3705
3705
  function getEnumerableSymbols(target) {
3706
3706
  var keys2 = [];
3707
3707
  var allKeys = Object.getOwnPropertySymbols(target);
3708
- for (var i = 0; i < allKeys.length; i += 1) {
3709
- var key = allKeys[i];
3708
+ for (var i2 = 0; i2 < allKeys.length; i2 += 1) {
3709
+ var key = allKeys[i2];
3710
3710
  if (Object.getOwnPropertyDescriptor(target, key).enumerable) {
3711
3711
  keys2.push(key);
3712
3712
  }
@@ -3718,8 +3718,8 @@ var require_deep_eql = __commonJS({
3718
3718
  if (length === 0) {
3719
3719
  return true;
3720
3720
  }
3721
- for (var i = 0; i < length; i += 1) {
3722
- if (deepEqual(leftHandOperand[keys2[i]], rightHandOperand[keys2[i]], options) === false) {
3721
+ for (var i2 = 0; i2 < length; i2 += 1) {
3722
+ if (deepEqual(leftHandOperand[keys2[i2]], rightHandOperand[keys2[i2]], options) === false) {
3723
3723
  return false;
3724
3724
  }
3725
3725
  }
@@ -3907,24 +3907,24 @@ var require_proxify = __commonJS({
3907
3907
  return cap;
3908
3908
  }
3909
3909
  var memo = [];
3910
- for (var i = 0; i <= strA.length; i++) {
3911
- memo[i] = Array(strB.length + 1).fill(0);
3912
- memo[i][0] = i;
3910
+ for (var i2 = 0; i2 <= strA.length; i2++) {
3911
+ memo[i2] = Array(strB.length + 1).fill(0);
3912
+ memo[i2][0] = i2;
3913
3913
  }
3914
3914
  for (var j = 0; j < strB.length; j++) {
3915
3915
  memo[0][j] = j;
3916
3916
  }
3917
- for (var i = 1; i <= strA.length; i++) {
3918
- var ch = strA.charCodeAt(i - 1);
3917
+ for (var i2 = 1; i2 <= strA.length; i2++) {
3918
+ var ch = strA.charCodeAt(i2 - 1);
3919
3919
  for (var j = 1; j <= strB.length; j++) {
3920
- if (Math.abs(i - j) >= cap) {
3921
- memo[i][j] = cap;
3920
+ if (Math.abs(i2 - j) >= cap) {
3921
+ memo[i2][j] = cap;
3922
3922
  continue;
3923
3923
  }
3924
- memo[i][j] = Math.min(
3925
- memo[i - 1][j] + 1,
3926
- memo[i][j - 1] + 1,
3927
- memo[i - 1][j - 1] + (ch === strB.charCodeAt(j - 1) ? 0 : 1)
3924
+ memo[i2][j] = Math.min(
3925
+ memo[i2 - 1][j] + 1,
3926
+ memo[i2][j - 1] + 1,
3927
+ memo[i2 - 1][j - 1] + (ch === strB.charCodeAt(j - 1) ? 0 : 1)
3928
3928
  );
3929
3929
  }
3930
3930
  }
@@ -6335,9 +6335,9 @@ function encode(decoded) {
6335
6335
  const sub = buf.subarray(0, subLength);
6336
6336
  let pos = 0;
6337
6337
  let out = "";
6338
- for (let i = 0; i < decoded.length; i++) {
6339
- const line = decoded[i];
6340
- if (i > 0) {
6338
+ for (let i2 = 0; i2 < decoded.length; i2++) {
6339
+ const line = decoded[i2];
6340
+ if (i2 > 0) {
6341
6341
  if (pos === bufLength) {
6342
6342
  out += td.decode(buf);
6343
6343
  pos = 0;
@@ -6393,10 +6393,10 @@ var init_sourcemap_codec = __esm({
6393
6393
  chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
6394
6394
  intToChar = new Uint8Array(64);
6395
6395
  charToInt = new Uint8Array(128);
6396
- for (let i = 0; i < chars.length; i++) {
6397
- const c = chars.charCodeAt(i);
6398
- intToChar[i] = c;
6399
- charToInt[c] = i;
6396
+ for (let i2 = 0; i2 < chars.length; i2++) {
6397
+ const c2 = chars.charCodeAt(i2);
6398
+ intToChar[i2] = c2;
6399
+ charToInt[c2] = i2;
6400
6400
  }
6401
6401
  td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? {
6402
6402
  decode(buf) {
@@ -6406,8 +6406,8 @@ var init_sourcemap_codec = __esm({
6406
6406
  } : {
6407
6407
  decode(buf) {
6408
6408
  let out = "";
6409
- for (let i = 0; i < buf.length; i++) {
6410
- out += String.fromCharCode(buf[i]);
6409
+ for (let i2 = 0; i2 < buf.length; i2++) {
6410
+ out += String.fromCharCode(buf[i2]);
6411
6411
  }
6412
6412
  return out;
6413
6413
  }
@@ -6423,8 +6423,8 @@ __export(magic_string_es_exports, {
6423
6423
  default: () => MagicString
6424
6424
  });
6425
6425
  function getBtoa() {
6426
- if (typeof window !== "undefined" && typeof window.btoa === "function") {
6427
- return (str) => window.btoa(unescape(encodeURIComponent(str)));
6426
+ if (typeof globalThis !== "undefined" && typeof globalThis.btoa === "function") {
6427
+ return (str) => globalThis.btoa(unescape(encodeURIComponent(str)));
6428
6428
  } else if (typeof Buffer === "function") {
6429
6429
  return (str) => Buffer.from(str, "utf-8").toString("base64");
6430
6430
  } else {
@@ -6458,9 +6458,9 @@ function getRelativePath(from, to) {
6458
6458
  toParts.shift();
6459
6459
  }
6460
6460
  if (fromParts.length) {
6461
- let i = fromParts.length;
6462
- while (i--)
6463
- fromParts[i] = "..";
6461
+ let i2 = fromParts.length;
6462
+ while (i2--)
6463
+ fromParts[i2] = "..";
6464
6464
  }
6465
6465
  return fromParts.concat(toParts).join("/");
6466
6466
  }
@@ -6470,22 +6470,22 @@ function isObject2(thing) {
6470
6470
  function getLocator(source) {
6471
6471
  const originalLines = source.split("\n");
6472
6472
  const lineOffsets = [];
6473
- for (let i = 0, pos = 0; i < originalLines.length; i++) {
6473
+ for (let i2 = 0, pos = 0; i2 < originalLines.length; i2++) {
6474
6474
  lineOffsets.push(pos);
6475
- pos += originalLines[i].length + 1;
6475
+ pos += originalLines[i2].length + 1;
6476
6476
  }
6477
6477
  return function locate(index) {
6478
- let i = 0;
6478
+ let i2 = 0;
6479
6479
  let j = lineOffsets.length;
6480
- while (i < j) {
6481
- const m2 = i + j >> 1;
6482
- if (index < lineOffsets[m2]) {
6483
- j = m2;
6480
+ while (i2 < j) {
6481
+ const m = i2 + j >> 1;
6482
+ if (index < lineOffsets[m]) {
6483
+ j = m;
6484
6484
  } else {
6485
- i = m2 + 1;
6485
+ i2 = m + 1;
6486
6486
  }
6487
6487
  }
6488
- const line = i - 1;
6488
+ const line = i2 - 1;
6489
6489
  const column = index - lineOffsets[line];
6490
6490
  return { line, column };
6491
6491
  };
@@ -6570,6 +6570,15 @@ var init_magic_string_es = __esm({
6570
6570
  prependRight(content) {
6571
6571
  this.intro = content + this.intro;
6572
6572
  }
6573
+ reset() {
6574
+ this.intro = "";
6575
+ this.outro = "";
6576
+ if (this.edited) {
6577
+ this.content = this.original;
6578
+ this.storeName = false;
6579
+ this.edited = false;
6580
+ }
6581
+ }
6573
6582
  split(index) {
6574
6583
  const sliceIndex = index - this.start;
6575
6584
  const originalBefore = this.original.slice(0, sliceIndex);
@@ -6670,9 +6679,10 @@ var init_magic_string_es = __esm({
6670
6679
  }
6671
6680
  addEdit(sourceIndex, content, loc, nameIndex) {
6672
6681
  if (content.length) {
6682
+ const contentLengthMinusOne = content.length - 1;
6673
6683
  let contentLineEnd = content.indexOf("\n", 0);
6674
6684
  let previousContentLineEnd = -1;
6675
- while (contentLineEnd >= 0) {
6685
+ while (contentLineEnd >= 0 && contentLengthMinusOne > contentLineEnd) {
6676
6686
  const segment2 = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
6677
6687
  if (nameIndex >= 0) {
6678
6688
  segment2.push(nameIndex);
@@ -6738,7 +6748,7 @@ var init_magic_string_es = __esm({
6738
6748
  return;
6739
6749
  const lines = str.split("\n");
6740
6750
  if (lines.length > 1) {
6741
- for (let i = 0; i < lines.length - 1; i++) {
6751
+ for (let i2 = 0; i2 < lines.length - 1; i2++) {
6742
6752
  this.generatedCodeLine++;
6743
6753
  this.raw[this.generatedCodeLine] = this.rawSegments = [];
6744
6754
  }
@@ -6903,8 +6913,8 @@ var init_magic_string_es = __esm({
6903
6913
  if (options.exclude) {
6904
6914
  const exclusions = typeof options.exclude[0] === "number" ? [options.exclude] : options.exclude;
6905
6915
  exclusions.forEach((exclusion) => {
6906
- for (let i = exclusion[0]; i < exclusion[1]; i += 1) {
6907
- isExcluded[i] = true;
6916
+ for (let i2 = exclusion[0]; i2 < exclusion[1]; i2 += 1) {
6917
+ isExcluded[i2] = true;
6908
6918
  }
6909
6919
  });
6910
6920
  }
@@ -7122,6 +7132,26 @@ var init_magic_string_es = __esm({
7122
7132
  }
7123
7133
  return this;
7124
7134
  }
7135
+ reset(start, end) {
7136
+ while (start < 0)
7137
+ start += this.original.length;
7138
+ while (end < 0)
7139
+ end += this.original.length;
7140
+ if (start === end)
7141
+ return this;
7142
+ if (start < 0 || end > this.original.length)
7143
+ throw new Error("Character is out of bounds");
7144
+ if (start > end)
7145
+ throw new Error("end must be greater than start");
7146
+ this._split(start);
7147
+ this._split(end);
7148
+ let chunk = this.byStart[start];
7149
+ while (chunk) {
7150
+ chunk.reset();
7151
+ chunk = end > chunk.end ? this.byStart[chunk.end] : null;
7152
+ }
7153
+ return this;
7154
+ }
7125
7155
  lastChar() {
7126
7156
  if (this.outro.length)
7127
7157
  return this.outro[this.outro.length - 1];
@@ -7329,15 +7359,15 @@ var init_magic_string_es = __esm({
7329
7359
  _replaceRegexp(searchValue, replacement) {
7330
7360
  function getReplacement(match, str) {
7331
7361
  if (typeof replacement === "string") {
7332
- return replacement.replace(/\$(\$|&|\d+)/g, (_, i) => {
7333
- if (i === "$")
7362
+ return replacement.replace(/\$(\$|&|\d+)/g, (_, i2) => {
7363
+ if (i2 === "$")
7334
7364
  return "$";
7335
- if (i === "&")
7365
+ if (i2 === "&")
7336
7366
  return match[0];
7337
- const num = +i;
7367
+ const num = +i2;
7338
7368
  if (num < match.length)
7339
- return match[+i];
7340
- return `$${i}`;
7369
+ return match[+i2];
7370
+ return `$${i2}`;
7341
7371
  });
7342
7372
  } else {
7343
7373
  return replacement(...match, match.index, str, match.groups);
@@ -7483,8 +7513,8 @@ var init_magic_string_es = __esm({
7483
7513
  if (this.intro) {
7484
7514
  mappings.advance(this.intro);
7485
7515
  }
7486
- this.sources.forEach((source, i) => {
7487
- if (i > 0) {
7516
+ this.sources.forEach((source, i2) => {
7517
+ if (i2 > 0) {
7488
7518
  mappings.advance(this.separator);
7489
7519
  }
7490
7520
  const sourceIndex = source.filename ? this.uniqueSourceIndexByFilename[source.filename] : -1;
@@ -7567,9 +7597,9 @@ var init_magic_string_es = __esm({
7567
7597
  if (indentStr === "")
7568
7598
  return this;
7569
7599
  let trailingNewline = !this.intro || this.intro.slice(-1) === "\n";
7570
- this.sources.forEach((source, i) => {
7600
+ this.sources.forEach((source, i2) => {
7571
7601
  const separator = source.separator !== void 0 ? source.separator : this.separator;
7572
- const indentStart = trailingNewline || i > 0 && /\r?\n$/.test(separator);
7602
+ const indentStart = trailingNewline || i2 > 0 && /\r?\n$/.test(separator);
7573
7603
  source.content.indent(indentStr, {
7574
7604
  exclude: source.indentExclusionRanges,
7575
7605
  indentStart
@@ -7589,9 +7619,9 @@ var init_magic_string_es = __esm({
7589
7619
  return this;
7590
7620
  }
7591
7621
  toString() {
7592
- const body = this.sources.map((source, i) => {
7622
+ const body = this.sources.map((source, i2) => {
7593
7623
  const separator = source.separator !== void 0 ? source.separator : this.separator;
7594
- const str = (i > 0 ? separator : "") + source.content.toString();
7624
+ const str = (i2 > 0 ? separator : "") + source.content.toString();
7595
7625
  return str;
7596
7626
  }).join("");
7597
7627
  return this.intro + body;
@@ -7620,9 +7650,9 @@ var init_magic_string_es = __esm({
7620
7650
  this.intro = this.intro.replace(rx, "");
7621
7651
  if (!this.intro) {
7622
7652
  let source;
7623
- let i = 0;
7653
+ let i2 = 0;
7624
7654
  do {
7625
- source = this.sources[i++];
7655
+ source = this.sources[i2++];
7626
7656
  if (!source) {
7627
7657
  break;
7628
7658
  }
@@ -7633,9 +7663,9 @@ var init_magic_string_es = __esm({
7633
7663
  trimEnd(charType) {
7634
7664
  const rx = new RegExp((charType || "\\s") + "+$");
7635
7665
  let source;
7636
- let i = this.sources.length - 1;
7666
+ let i2 = this.sources.length - 1;
7637
7667
  do {
7638
- source = this.sources[i--];
7668
+ source = this.sources[i2--];
7639
7669
  if (!source) {
7640
7670
  this.intro = this.intro.replace(rx, "");
7641
7671
  break;
@@ -7656,16 +7686,16 @@ var require_camelcase = __commonJS({
7656
7686
  let isLastCharLower = false;
7657
7687
  let isLastCharUpper = false;
7658
7688
  let isLastLastCharUpper = false;
7659
- for (let i = 0; i < string3.length; i++) {
7660
- const character = string3[i];
7689
+ for (let i2 = 0; i2 < string3.length; i2++) {
7690
+ const character = string3[i2];
7661
7691
  if (isLastCharLower && /[a-zA-Z]/.test(character) && character.toUpperCase() === character) {
7662
- string3 = string3.slice(0, i) + "-" + string3.slice(i);
7692
+ string3 = string3.slice(0, i2) + "-" + string3.slice(i2);
7663
7693
  isLastCharLower = false;
7664
7694
  isLastLastCharUpper = isLastCharUpper;
7665
7695
  isLastCharUpper = true;
7666
- i++;
7696
+ i2++;
7667
7697
  } else if (isLastCharUpper && isLastLastCharUpper && /[a-zA-Z]/.test(character) && character.toLowerCase() === character) {
7668
- string3 = string3.slice(0, i - 1) + "-" + string3.slice(i - 1);
7698
+ string3 = string3.slice(0, i2 - 1) + "-" + string3.slice(i2 - 1);
7669
7699
  isLastLastCharUpper = isLastCharUpper;
7670
7700
  isLastCharUpper = false;
7671
7701
  isLastCharLower = true;
@@ -7700,7 +7730,7 @@ var require_camelcase = __commonJS({
7700
7730
  if (hasUpperCase) {
7701
7731
  input = preserveCamelCase(input);
7702
7732
  }
7703
- input = input.replace(/^[_.\- ]+/, "").toLowerCase().replace(/[_.\- ]+(\w|$)/g, (_, p1) => p1.toUpperCase()).replace(/\d+(\w|$)/g, (m2) => m2.toUpperCase());
7733
+ input = input.replace(/^[_.\- ]+/, "").toLowerCase().replace(/[_.\- ]+(\w|$)/g, (_, p1) => p1.toUpperCase()).replace(/\d+(\w|$)/g, (m) => m.toUpperCase());
7704
7734
  return postProcess(input);
7705
7735
  };
7706
7736
  module2.exports = camelCase;
@@ -7798,34 +7828,34 @@ function deepClone(val, options = defaultCloneOptions) {
7798
7828
  return clone(val, seen, options);
7799
7829
  }
7800
7830
  function clone(val, seen, options = defaultCloneOptions) {
7801
- let k, out;
7831
+ let k2, out;
7802
7832
  if (seen.has(val))
7803
7833
  return seen.get(val);
7804
7834
  if (Array.isArray(val)) {
7805
- out = Array(k = val.length);
7835
+ out = Array(k2 = val.length);
7806
7836
  seen.set(val, out);
7807
- while (k--)
7808
- out[k] = clone(val[k], seen, options);
7837
+ while (k2--)
7838
+ out[k2] = clone(val[k2], seen, options);
7809
7839
  return out;
7810
7840
  }
7811
7841
  if (Object.prototype.toString.call(val) === "[object Object]") {
7812
7842
  out = Object.create(Object.getPrototypeOf(val));
7813
7843
  seen.set(val, out);
7814
7844
  const props = getOwnProperties(val);
7815
- for (const k2 of props) {
7816
- const descriptor = Object.getOwnPropertyDescriptor(val, k2);
7845
+ for (const k22 of props) {
7846
+ const descriptor = Object.getOwnPropertyDescriptor(val, k22);
7817
7847
  if (!descriptor)
7818
7848
  continue;
7819
- const cloned = clone(val[k2], seen, options);
7849
+ const cloned = clone(val[k22], seen, options);
7820
7850
  if ("get" in descriptor) {
7821
- Object.defineProperty(out, k2, {
7851
+ Object.defineProperty(out, k22, {
7822
7852
  ...descriptor,
7823
7853
  get() {
7824
7854
  return cloned;
7825
7855
  }
7826
7856
  });
7827
7857
  } else {
7828
- Object.defineProperty(out, k2, {
7858
+ Object.defineProperty(out, k22, {
7829
7859
  ...descriptor,
7830
7860
  writable: options.forceWritable ? true : descriptor.writable,
7831
7861
  value: cloned
@@ -7841,8 +7871,8 @@ function noop() {
7841
7871
  function objectAttr(source, path2, defaultValue = void 0) {
7842
7872
  const paths = path2.replace(/\[(\d+)\]/g, ".$1").split(".");
7843
7873
  let result = source;
7844
- for (const p2 of paths) {
7845
- result = Object(result)[p2];
7874
+ for (const p of paths) {
7875
+ result = Object(result)[p];
7846
7876
  if (result === void 0)
7847
7877
  return defaultValue;
7848
7878
  }
@@ -7851,13 +7881,13 @@ function objectAttr(source, path2, defaultValue = void 0) {
7851
7881
  function createDefer() {
7852
7882
  let resolve3 = null;
7853
7883
  let reject = null;
7854
- const p2 = new Promise((_resolve, _reject) => {
7884
+ const p = new Promise((_resolve, _reject) => {
7855
7885
  resolve3 = _resolve;
7856
7886
  reject = _reject;
7857
7887
  });
7858
- p2.resolve = resolve3;
7859
- p2.reject = reject;
7860
- return p2;
7888
+ p.resolve = resolve3;
7889
+ p.reject = reject;
7890
+ return p;
7861
7891
  }
7862
7892
 
7863
7893
  // ../../node_modules/@vitest/utils/dist/chunk-display.js
@@ -7907,21 +7937,21 @@ var formatRegExp = /%[sdjifoOcj%]/g;
7907
7937
  function format(...args) {
7908
7938
  if (typeof args[0] !== "string") {
7909
7939
  const objects = [];
7910
- for (let i2 = 0; i2 < args.length; i2++)
7911
- objects.push(inspect2(args[i2], { depth: 0, colors: false, compact: 3 }));
7940
+ for (let i22 = 0; i22 < args.length; i22++)
7941
+ objects.push(inspect2(args[i22], { depth: 0, colors: false, compact: 3 }));
7912
7942
  return objects.join(" ");
7913
7943
  }
7914
7944
  const len = args.length;
7915
- let i = 1;
7945
+ let i2 = 1;
7916
7946
  const template = args[0];
7917
7947
  let str = String(template).replace(formatRegExp, (x) => {
7918
7948
  if (x === "%%")
7919
7949
  return "%";
7920
- if (i >= len)
7950
+ if (i2 >= len)
7921
7951
  return x;
7922
7952
  switch (x) {
7923
7953
  case "%s": {
7924
- const value = args[i++];
7954
+ const value = args[i2++];
7925
7955
  if (typeof value === "bigint")
7926
7956
  return `${value.toString()}n`;
7927
7957
  if (typeof value === "number" && value === 0 && 1 / value < 0)
@@ -7931,35 +7961,35 @@ function format(...args) {
7931
7961
  return String(value);
7932
7962
  }
7933
7963
  case "%d": {
7934
- const value = args[i++];
7964
+ const value = args[i2++];
7935
7965
  if (typeof value === "bigint")
7936
7966
  return `${value.toString()}n`;
7937
7967
  return Number(value).toString();
7938
7968
  }
7939
7969
  case "%i": {
7940
- const value = args[i++];
7970
+ const value = args[i2++];
7941
7971
  if (typeof value === "bigint")
7942
7972
  return `${value.toString()}n`;
7943
7973
  return Number.parseInt(String(value)).toString();
7944
7974
  }
7945
7975
  case "%f":
7946
- return Number.parseFloat(String(args[i++])).toString();
7976
+ return Number.parseFloat(String(args[i2++])).toString();
7947
7977
  case "%o":
7948
- return inspect2(args[i++], { showHidden: true, showProxy: true });
7978
+ return inspect2(args[i2++], { showHidden: true, showProxy: true });
7949
7979
  case "%O":
7950
- return inspect2(args[i++]);
7980
+ return inspect2(args[i2++]);
7951
7981
  case "%c": {
7952
- i++;
7982
+ i2++;
7953
7983
  return "";
7954
7984
  }
7955
7985
  case "%j":
7956
7986
  try {
7957
- return JSON.stringify(args[i++]);
7987
+ return JSON.stringify(args[i2++]);
7958
7988
  } catch (err) {
7959
- const m2 = err.message;
7989
+ const m = err.message;
7960
7990
  if (
7961
7991
  // chromium
7962
- m2.includes("circular structure") || m2.includes("cyclic structures") || m2.includes("cyclic object")
7992
+ m.includes("circular structure") || m.includes("cyclic structures") || m.includes("cyclic object")
7963
7993
  )
7964
7994
  return "[Circular]";
7965
7995
  throw err;
@@ -7968,7 +7998,7 @@ function format(...args) {
7968
7998
  return x;
7969
7999
  }
7970
8000
  });
7971
- for (let x = args[i]; i < len; x = args[++i]) {
8001
+ for (let x = args[i2]; i2 < len; x = args[++i2]) {
7972
8002
  if (x === null || typeof x !== "object")
7973
8003
  str += ` ${x}`;
7974
8004
  else
@@ -8294,33 +8324,33 @@ function joinAlignedDiffsNoExpand(diffs, options) {
8294
8324
  let jLength = iLength;
8295
8325
  let hasExcessAtStartOrEnd = false;
8296
8326
  let nExcessesBetweenChanges = 0;
8297
- let i = 0;
8298
- while (i !== iLength) {
8299
- const iStart = i;
8300
- while (i !== iLength && diffs[i][0] === DIFF_EQUAL)
8301
- i += 1;
8302
- if (iStart !== i) {
8327
+ let i2 = 0;
8328
+ while (i2 !== iLength) {
8329
+ const iStart = i2;
8330
+ while (i2 !== iLength && diffs[i2][0] === DIFF_EQUAL)
8331
+ i2 += 1;
8332
+ if (iStart !== i2) {
8303
8333
  if (iStart === 0) {
8304
- if (i > nContextLines) {
8305
- jLength -= i - nContextLines;
8334
+ if (i2 > nContextLines) {
8335
+ jLength -= i2 - nContextLines;
8306
8336
  hasExcessAtStartOrEnd = true;
8307
8337
  }
8308
- } else if (i === iLength) {
8309
- const n2 = i - iStart;
8338
+ } else if (i2 === iLength) {
8339
+ const n2 = i2 - iStart;
8310
8340
  if (n2 > nContextLines) {
8311
8341
  jLength -= n2 - nContextLines;
8312
8342
  hasExcessAtStartOrEnd = true;
8313
8343
  }
8314
8344
  } else {
8315
- const n2 = i - iStart;
8345
+ const n2 = i2 - iStart;
8316
8346
  if (n2 > nContextLines2) {
8317
8347
  jLength -= n2 - nContextLines2;
8318
8348
  nExcessesBetweenChanges += 1;
8319
8349
  }
8320
8350
  }
8321
8351
  }
8322
- while (i !== iLength && diffs[i][0] !== DIFF_EQUAL)
8323
- i += 1;
8352
+ while (i2 !== iLength && diffs[i2][0] !== DIFF_EQUAL)
8353
+ i2 += 1;
8324
8354
  }
8325
8355
  const hasPatch = nExcessesBetweenChanges !== 0 || hasExcessAtStartOrEnd;
8326
8356
  if (nExcessesBetweenChanges !== 0)
@@ -8352,28 +8382,28 @@ function joinAlignedDiffsNoExpand(diffs, options) {
8352
8382
  lines.push(printInsertLine(line, j === 0 || j === jLast, options));
8353
8383
  bEnd += 1;
8354
8384
  };
8355
- i = 0;
8356
- while (i !== iLength) {
8357
- let iStart = i;
8358
- while (i !== iLength && diffs[i][0] === DIFF_EQUAL)
8359
- i += 1;
8360
- if (iStart !== i) {
8385
+ i2 = 0;
8386
+ while (i2 !== iLength) {
8387
+ let iStart = i2;
8388
+ while (i2 !== iLength && diffs[i2][0] === DIFF_EQUAL)
8389
+ i2 += 1;
8390
+ if (iStart !== i2) {
8361
8391
  if (iStart === 0) {
8362
- if (i > nContextLines) {
8363
- iStart = i - nContextLines;
8392
+ if (i2 > nContextLines) {
8393
+ iStart = i2 - nContextLines;
8364
8394
  aStart = iStart;
8365
8395
  bStart = iStart;
8366
8396
  aEnd = aStart;
8367
8397
  bEnd = bStart;
8368
8398
  }
8369
- for (let iCommon = iStart; iCommon !== i; iCommon += 1)
8399
+ for (let iCommon = iStart; iCommon !== i2; iCommon += 1)
8370
8400
  pushCommonLine(diffs[iCommon][1]);
8371
- } else if (i === iLength) {
8372
- const iEnd = i - iStart > nContextLines ? iStart + nContextLines : i;
8401
+ } else if (i2 === iLength) {
8402
+ const iEnd = i2 - iStart > nContextLines ? iStart + nContextLines : i2;
8373
8403
  for (let iCommon = iStart; iCommon !== iEnd; iCommon += 1)
8374
8404
  pushCommonLine(diffs[iCommon][1]);
8375
8405
  } else {
8376
- const nCommon = i - iStart;
8406
+ const nCommon = i2 - iStart;
8377
8407
  if (nCommon > nContextLines2) {
8378
8408
  const iEnd = iStart + nContextLines;
8379
8409
  for (let iCommon = iStart; iCommon !== iEnd; iCommon += 1)
@@ -8392,21 +8422,21 @@ function joinAlignedDiffsNoExpand(diffs, options) {
8392
8422
  bStart = bEnd + nOmit;
8393
8423
  aEnd = aStart;
8394
8424
  bEnd = bStart;
8395
- for (let iCommon = i - nContextLines; iCommon !== i; iCommon += 1)
8425
+ for (let iCommon = i2 - nContextLines; iCommon !== i2; iCommon += 1)
8396
8426
  pushCommonLine(diffs[iCommon][1]);
8397
8427
  } else {
8398
- for (let iCommon = iStart; iCommon !== i; iCommon += 1)
8428
+ for (let iCommon = iStart; iCommon !== i2; iCommon += 1)
8399
8429
  pushCommonLine(diffs[iCommon][1]);
8400
8430
  }
8401
8431
  }
8402
8432
  }
8403
- while (i !== iLength && diffs[i][0] === DIFF_DELETE) {
8404
- pushDeleteLine(diffs[i][1]);
8405
- i += 1;
8433
+ while (i2 !== iLength && diffs[i2][0] === DIFF_DELETE) {
8434
+ pushDeleteLine(diffs[i2][1]);
8435
+ i2 += 1;
8406
8436
  }
8407
- while (i !== iLength && diffs[i][0] === DIFF_INSERT) {
8408
- pushInsertLine(diffs[i][1]);
8409
- i += 1;
8437
+ while (i2 !== iLength && diffs[i2][0] === DIFF_INSERT) {
8438
+ pushInsertLine(diffs[i2][1]);
8439
+ i2 += 1;
8410
8440
  }
8411
8441
  }
8412
8442
  if (hasPatch)
@@ -8414,9 +8444,9 @@ function joinAlignedDiffsNoExpand(diffs, options) {
8414
8444
  return lines.join("\n");
8415
8445
  }
8416
8446
  function joinAlignedDiffsExpand(diffs, options) {
8417
- return diffs.map((diff2, i, diffs2) => {
8447
+ return diffs.map((diff2, i2, diffs2) => {
8418
8448
  const line = diff2[1];
8419
- const isFirstOrLast = i === 0 || i === diffs2.length - 1;
8449
+ const isFirstOrLast = i2 === 0 || i2 === diffs2.length - 1;
8420
8450
  switch (diff2[0]) {
8421
8451
  case DIFF_DELETE:
8422
8452
  return printDeleteLine(line, isFirstOrLast, options);
@@ -8430,17 +8460,17 @@ function joinAlignedDiffsExpand(diffs, options) {
8430
8460
  var noColor = (string3) => string3;
8431
8461
  var DIFF_CONTEXT_DEFAULT = 5;
8432
8462
  function getDefaultOptions() {
8433
- const c = getColors();
8463
+ const c2 = getColors();
8434
8464
  return {
8435
8465
  aAnnotation: "Expected",
8436
- aColor: c.green,
8466
+ aColor: c2.green,
8437
8467
  aIndicator: "-",
8438
8468
  bAnnotation: "Received",
8439
- bColor: c.red,
8469
+ bColor: c2.red,
8440
8470
  bIndicator: "+",
8441
- changeColor: c.inverse,
8471
+ changeColor: c2.inverse,
8442
8472
  changeLineTrailingSpaceColor: noColor,
8443
- commonColor: c.dim,
8473
+ commonColor: c2.dim,
8444
8474
  commonIndicator: " ",
8445
8475
  commonLineTrailingSpaceColor: noColor,
8446
8476
  compareKeys: void 0,
@@ -8449,7 +8479,7 @@ function getDefaultOptions() {
8449
8479
  expand: true,
8450
8480
  includeChangeCounts: false,
8451
8481
  omitAnnotationLines: false,
8452
- patchColor: c.yellow
8482
+ patchColor: c2.yellow
8453
8483
  };
8454
8484
  }
8455
8485
  function getCompareKeys(compareKeys) {
@@ -8725,8 +8755,8 @@ var import_diff_sequences = __toESM(require_build2(), 1);
8725
8755
  init_loupe();
8726
8756
  var IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@";
8727
8757
  var IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@";
8728
- function isImmutable(v2) {
8729
- return v2 && (v2[IS_COLLECTION_SYMBOL] || v2[IS_RECORD_SYMBOL]);
8758
+ function isImmutable(v) {
8759
+ return v && (v[IS_COLLECTION_SYMBOL] || v[IS_RECORD_SYMBOL]);
8730
8760
  }
8731
8761
  var OBJECT_PROTO = Object.getPrototypeOf({});
8732
8762
  function getUnserializableMessage(err) {
@@ -8758,11 +8788,11 @@ function serializeError(val, seen = /* @__PURE__ */ new WeakMap()) {
8758
8788
  if (Array.isArray(val)) {
8759
8789
  const clone2 = new Array(val.length);
8760
8790
  seen.set(val, clone2);
8761
- val.forEach((e, i) => {
8791
+ val.forEach((e, i2) => {
8762
8792
  try {
8763
- clone2[i] = serializeError(e, seen);
8793
+ clone2[i2] = serializeError(e, seen);
8764
8794
  } catch (err) {
8765
- clone2[i] = getUnserializableMessage(err);
8795
+ clone2[i2] = getUnserializableMessage(err);
8766
8796
  }
8767
8797
  });
8768
8798
  return clone2;
@@ -8827,7 +8857,7 @@ function isAsymmetricMatcher(data) {
8827
8857
  function isReplaceable(obj1, obj2) {
8828
8858
  const obj1Type = getType(obj1);
8829
8859
  const obj2Type = getType(obj2);
8830
- return obj1Type === obj2Type && obj1Type === "Object";
8860
+ return obj1Type === obj2Type && (obj1Type === "Object" || obj1Type === "Array");
8831
8861
  }
8832
8862
  function replaceAsymmetricMatcher(actual, expected, actualReplaced = /* @__PURE__ */ new WeakSet(), expectedReplaced = /* @__PURE__ */ new WeakSet()) {
8833
8863
  if (!isReplaceable(actual, expected))
@@ -8862,7 +8892,7 @@ function replaceAsymmetricMatcher(actual, expected, actualReplaced = /* @__PURE_
8862
8892
  };
8863
8893
  }
8864
8894
 
8865
- // ../../node_modules/@vitest/runner/dist/utils.js
8895
+ // ../../node_modules/@vitest/runner/dist/chunk-tasks.js
8866
8896
  init_cjs_shims();
8867
8897
  function createChainable(keys2, fn2) {
8868
8898
  function create(context) {
@@ -8999,8 +9029,8 @@ function normalizeString(path2, allowAboveRoot) {
8999
9029
  }
9000
9030
  return res;
9001
9031
  }
9002
- var isAbsolute = function(p2) {
9003
- return _IS_ABSOLUTE_RE.test(p2);
9032
+ var isAbsolute = function(p) {
9033
+ return _IS_ABSOLUTE_RE.test(p);
9004
9034
  };
9005
9035
 
9006
9036
  // ../../node_modules/@vitest/runner/dist/index.js
@@ -9074,6 +9104,10 @@ function createTestContext(test3, runner2) {
9074
9104
  test3.onFailed || (test3.onFailed = []);
9075
9105
  test3.onFailed.push(fn2);
9076
9106
  };
9107
+ context.onTestFinished = (fn2) => {
9108
+ test3.onFinished || (test3.onFinished = []);
9109
+ test3.onFinished.push(fn2);
9110
+ };
9077
9111
  return ((_a2 = runner2.extendTaskContext) == null ? void 0 : _a2.call(runner2, context)) || context;
9078
9112
  }
9079
9113
  function makeTimeoutMsg(isHook, timeout) {
@@ -9081,14 +9115,16 @@ function makeTimeoutMsg(isHook, timeout) {
9081
9115
  If this is a long-running ${isHook ? "hook" : "test"}, pass a timeout value as the last argument or configure it globally with "${isHook ? "hookTimeout" : "testTimeout"}".`;
9082
9116
  }
9083
9117
  function mergeContextFixtures(fixtures, context = {}) {
9084
- const fixtureArray = Object.entries(fixtures).map(([prop, value], index) => {
9085
- const isFn = typeof value === "function";
9086
- return {
9087
- prop,
9088
- value,
9089
- index,
9090
- isFn
9091
- };
9118
+ const fixtureOptionKeys = ["auto"];
9119
+ const fixtureArray = Object.entries(fixtures).map(([prop, value]) => {
9120
+ const fixtureItem = { value };
9121
+ if (Array.isArray(value) && value.length >= 2 && isObject(value[1]) && Object.keys(value[1]).some((key) => fixtureOptionKeys.includes(key))) {
9122
+ Object.assign(fixtureItem, value[1]);
9123
+ fixtureItem.value = value[0];
9124
+ }
9125
+ fixtureItem.prop = prop;
9126
+ fixtureItem.isFn = typeof fixtureItem.value === "function";
9127
+ return fixtureItem;
9092
9128
  });
9093
9129
  if (Array.isArray(context.fixtures))
9094
9130
  context.fixtures = context.fixtures.concat(fixtureArray);
@@ -9114,7 +9150,8 @@ function withFixtures(fn2, testContext) {
9114
9150
  if (!(fixtures == null ? void 0 : fixtures.length))
9115
9151
  return fn2(context);
9116
9152
  const usedProps = getUsedProps(fn2);
9117
- if (!usedProps.length)
9153
+ const hasAutoFixture = fixtures.some(({ auto }) => auto);
9154
+ if (!usedProps.length && !hasAutoFixture)
9118
9155
  return fn2(context);
9119
9156
  if (!fixtureValueMaps.get(context))
9120
9157
  fixtureValueMaps.set(context, /* @__PURE__ */ new Map());
@@ -9122,7 +9159,7 @@ function withFixtures(fn2, testContext) {
9122
9159
  if (!cleanupFnArrayMap.has(context))
9123
9160
  cleanupFnArrayMap.set(context, []);
9124
9161
  const cleanupFnArray = cleanupFnArrayMap.get(context);
9125
- const usedFixtures = fixtures.filter(({ prop }) => usedProps.includes(prop));
9162
+ const usedFixtures = fixtures.filter(({ prop, auto }) => auto || usedProps.includes(prop));
9126
9163
  const pendingFixtures = resolveDeps(usedFixtures);
9127
9164
  if (!pendingFixtures.length)
9128
9165
  return fn2(context);
@@ -9171,7 +9208,7 @@ function resolveDeps(fixtures, depSet = /* @__PURE__ */ new Set(), pendingFixtur
9171
9208
  return;
9172
9209
  }
9173
9210
  if (depSet.has(fixture))
9174
- throw new Error(`Circular fixture dependency detected: ${fixture.prop} <- ${[...depSet].reverse().map((d2) => d2.prop).join(" <- ")}`);
9211
+ throw new Error(`Circular fixture dependency detected: ${fixture.prop} <- ${[...depSet].reverse().map((d) => d.prop).join(" <- ")}`);
9175
9212
  depSet.add(fixture);
9176
9213
  resolveDeps(fixture.deps, depSet, pendingFixtures);
9177
9214
  pendingFixtures.push(fixture);
@@ -9202,16 +9239,16 @@ function splitByComma(s) {
9202
9239
  const result = [];
9203
9240
  const stack = [];
9204
9241
  let start = 0;
9205
- for (let i = 0; i < s.length; i++) {
9206
- if (s[i] === "{" || s[i] === "[") {
9207
- stack.push(s[i] === "{" ? "}" : "]");
9208
- } else if (s[i] === stack[stack.length - 1]) {
9242
+ for (let i2 = 0; i2 < s.length; i2++) {
9243
+ if (s[i2] === "{" || s[i2] === "[") {
9244
+ stack.push(s[i2] === "{" ? "}" : "]");
9245
+ } else if (s[i2] === stack[stack.length - 1]) {
9209
9246
  stack.pop();
9210
- } else if (!stack.length && s[i] === ",") {
9211
- const token = s.substring(start, i).trim();
9247
+ } else if (!stack.length && s[i2] === ",") {
9248
+ const token = s.substring(start, i2).trim();
9212
9249
  if (token)
9213
9250
  result.push(token);
9214
- start = i + 1;
9251
+ start = i2 + 1;
9215
9252
  }
9216
9253
  }
9217
9254
  const lastToken = s.substring(start).trim();
@@ -9225,10 +9262,10 @@ function getCurrentTest() {
9225
9262
  }
9226
9263
  var suite = createSuite();
9227
9264
  var test = createTest(
9228
- function(name, fn2, options) {
9265
+ function(name, optionsOrFn, optionsOrTest) {
9229
9266
  if (getCurrentTest())
9230
9267
  throw new Error('Calling the test function inside another test function is not allowed. Please put it inside "describe" or "suite" so it can be properly collected.');
9231
- getCurrentSuite().test.fn.call(this, formatName(name), fn2, options);
9268
+ getCurrentSuite().test.fn.call(this, formatName(name), optionsOrFn, optionsOrTest);
9232
9269
  }
9233
9270
  );
9234
9271
  var describe = suite;
@@ -9249,8 +9286,33 @@ function createSuiteHooks() {
9249
9286
  afterEach: []
9250
9287
  };
9251
9288
  }
9289
+ function parseArguments(optionsOrFn, optionsOrTest) {
9290
+ let options = {};
9291
+ let fn2 = () => {
9292
+ };
9293
+ if (typeof optionsOrTest === "object") {
9294
+ if (typeof optionsOrFn === "object")
9295
+ throw new TypeError("Cannot use two objects as arguments. Please provide options and a function callback in that order.");
9296
+ options = optionsOrTest;
9297
+ } else if (typeof optionsOrTest === "number") {
9298
+ options = { timeout: optionsOrTest };
9299
+ } else if (typeof optionsOrFn === "object") {
9300
+ options = optionsOrFn;
9301
+ }
9302
+ if (typeof optionsOrFn === "function") {
9303
+ if (typeof optionsOrTest === "function")
9304
+ throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");
9305
+ fn2 = optionsOrFn;
9306
+ } else if (typeof optionsOrTest === "function") {
9307
+ fn2 = optionsOrTest;
9308
+ }
9309
+ return {
9310
+ options,
9311
+ handler: fn2
9312
+ };
9313
+ }
9252
9314
  function createSuiteCollector(name, factory = () => {
9253
- }, mode, concurrent, sequential, shuffle2, each, suiteOptions) {
9315
+ }, mode, shuffle2, each, suiteOptions) {
9254
9316
  const tasks = [];
9255
9317
  const factoryQueue = [];
9256
9318
  let suite2;
@@ -9289,16 +9351,18 @@ function createSuiteCollector(name, factory = () => {
9289
9351
  tasks.push(task2);
9290
9352
  return task2;
9291
9353
  };
9292
- const test22 = createTest(function(name2, fn2 = noop, options = {}) {
9293
- if (typeof options === "number")
9294
- options = { timeout: options };
9354
+ const test22 = createTest(function(name2, optionsOrFn, optionsOrTest) {
9355
+ let { options, handler } = parseArguments(
9356
+ optionsOrFn,
9357
+ optionsOrTest
9358
+ );
9295
9359
  if (typeof suiteOptions === "object")
9296
9360
  options = Object.assign({}, suiteOptions, options);
9297
9361
  options.concurrent = this.concurrent || !this.sequential && (options == null ? void 0 : options.concurrent);
9298
9362
  options.sequential = this.sequential || !this.concurrent && (options == null ? void 0 : options.sequential);
9299
9363
  const test3 = task(
9300
9364
  formatName(name2),
9301
- { ...this, ...options, handler: fn2 }
9365
+ { ...this, ...options, handler }
9302
9366
  );
9303
9367
  test3.type = "test";
9304
9368
  });
@@ -9343,8 +9407,8 @@ function createSuiteCollector(name, factory = () => {
9343
9407
  if (factory)
9344
9408
  await runWithSuite(collector, () => factory(test22));
9345
9409
  const allChildren = [];
9346
- for (const i of [...factoryQueue, ...tasks])
9347
- allChildren.push(i.type === "collector" ? await i.collect(file) : i);
9410
+ for (const i2 of [...factoryQueue, ...tasks])
9411
+ allChildren.push(i2.type === "collector" ? await i2.collect(file) : i2);
9348
9412
  suite2.file = file;
9349
9413
  suite2.tasks = allChildren;
9350
9414
  allChildren.forEach((task2) => {
@@ -9358,28 +9422,34 @@ function createSuiteCollector(name, factory = () => {
9358
9422
  return collector;
9359
9423
  }
9360
9424
  function createSuite() {
9361
- function suiteFn(name, factory, options = {}) {
9425
+ function suiteFn(name, factoryOrOptions, optionsOrFactory = {}) {
9362
9426
  const mode = this.only ? "only" : this.skip ? "skip" : this.todo ? "todo" : "run";
9363
9427
  const currentSuite = getCurrentSuite();
9364
- if (typeof options === "number")
9365
- options = { timeout: options };
9428
+ let { options, handler: factory } = parseArguments(
9429
+ factoryOrOptions,
9430
+ optionsOrFactory
9431
+ );
9366
9432
  if (currentSuite == null ? void 0 : currentSuite.options)
9367
9433
  options = { ...currentSuite.options, ...options };
9368
9434
  options.concurrent = this.concurrent || !this.sequential && (options == null ? void 0 : options.concurrent);
9369
9435
  options.sequential = this.sequential || !this.concurrent && (options == null ? void 0 : options.sequential);
9370
- return createSuiteCollector(formatName(name), factory, mode, this.concurrent, this.sequential, this.shuffle, this.each, options);
9436
+ return createSuiteCollector(formatName(name), factory, mode, this.shuffle, this.each, options);
9371
9437
  }
9372
9438
  suiteFn.each = function(cases, ...args) {
9373
9439
  const suite2 = this.withContext();
9374
9440
  this.setContext("each", true);
9375
9441
  if (Array.isArray(cases) && args.length)
9376
9442
  cases = formatTemplateString(cases, args);
9377
- return (name, fn2, options) => {
9443
+ return (name, optionsOrFn, fnOrOptions) => {
9378
9444
  const _name = formatName(name);
9379
9445
  const arrayOnlyCases = cases.every(Array.isArray);
9380
- cases.forEach((i, idx) => {
9381
- const items = Array.isArray(i) ? i : [i];
9382
- arrayOnlyCases ? suite2(formatTitle(_name, items, idx), () => fn2(...items), options) : suite2(formatTitle(_name, items, idx), () => fn2(i), options);
9446
+ const { options, handler } = parseArguments(
9447
+ optionsOrFn,
9448
+ fnOrOptions
9449
+ );
9450
+ cases.forEach((i2, idx) => {
9451
+ const items = Array.isArray(i2) ? i2 : [i2];
9452
+ arrayOnlyCases ? suite2(formatTitle(_name, items, idx), options, () => handler(...items)) : suite2(formatTitle(_name, items, idx), options, () => handler(i2));
9383
9453
  });
9384
9454
  this.setContext("each", void 0);
9385
9455
  };
@@ -9398,12 +9468,16 @@ function createTaskCollector(fn2, context) {
9398
9468
  this.setContext("each", true);
9399
9469
  if (Array.isArray(cases) && args.length)
9400
9470
  cases = formatTemplateString(cases, args);
9401
- return (name, fn22, options) => {
9471
+ return (name, optionsOrFn, fnOrOptions) => {
9402
9472
  const _name = formatName(name);
9403
9473
  const arrayOnlyCases = cases.every(Array.isArray);
9404
- cases.forEach((i, idx) => {
9405
- const items = Array.isArray(i) ? i : [i];
9406
- arrayOnlyCases ? test22(formatTitle(_name, items, idx), () => fn22(...items), options) : test22(formatTitle(_name, items, idx), () => fn22(i), options);
9474
+ const { options, handler } = parseArguments(
9475
+ optionsOrFn,
9476
+ fnOrOptions
9477
+ );
9478
+ cases.forEach((i2, idx) => {
9479
+ const items = Array.isArray(i2) ? i2 : [i2];
9480
+ arrayOnlyCases ? test22(formatTitle(_name, items, idx), options, () => handler(...items)) : test22(formatTitle(_name, items, idx), options, () => handler(i2));
9407
9481
  });
9408
9482
  this.setContext("each", void 0);
9409
9483
  };
@@ -9416,8 +9490,8 @@ function createTaskCollector(fn2, context) {
9416
9490
  };
9417
9491
  taskFn.extend = function(fixtures) {
9418
9492
  const _context = mergeContextFixtures(fixtures, context);
9419
- return createTest(function fn22(name, fn22, options) {
9420
- getCurrentSuite().test.fn.call(this, formatName(name), fn22, options);
9493
+ return createTest(function fn22(name, optionsOrFn, optionsOrTest) {
9494
+ getCurrentSuite().test.fn.call(this, formatName(name), optionsOrFn, optionsOrTest);
9421
9495
  }, _context);
9422
9496
  };
9423
9497
  const _test2 = createChainable(
@@ -9453,12 +9527,12 @@ function formatTitle(template, items, idx) {
9453
9527
  return formatted;
9454
9528
  }
9455
9529
  function formatTemplateString(cases, args) {
9456
- const header = cases.join("").trim().replace(/ /g, "").split("\n").map((i) => i.split("|"))[0];
9530
+ const header = cases.join("").trim().replace(/ /g, "").split("\n").map((i2) => i2.split("|"))[0];
9457
9531
  const res = [];
9458
- for (let i = 0; i < Math.floor(args.length / header.length); i++) {
9532
+ for (let i2 = 0; i2 < Math.floor(args.length / header.length); i2++) {
9459
9533
  const oneCase = {};
9460
9534
  for (let j = 0; j < header.length; j++)
9461
- oneCase[header[j]] = args[i * header.length + j];
9535
+ oneCase[header[j]] = args[i2 * header.length + j];
9462
9536
  res.push(oneCase);
9463
9537
  }
9464
9538
  return res;
@@ -9484,19 +9558,26 @@ var onTestFailed = createTestHook("onTestFailed", (test3, handler) => {
9484
9558
  test3.onFailed || (test3.onFailed = []);
9485
9559
  test3.onFailed.push(handler);
9486
9560
  });
9561
+ var onTestFinished = createTestHook("onTestFinished", (test3, handler) => {
9562
+ test3.onFinished || (test3.onFinished = []);
9563
+ test3.onFinished.push(handler);
9564
+ });
9487
9565
  function createTestHook(name, handler) {
9488
9566
  return (fn2) => {
9489
9567
  const current = getCurrentTest();
9490
9568
  if (!current)
9491
9569
  throw new Error(`Hook ${name}() can only be called inside a test`);
9492
- handler(current, fn2);
9570
+ return handler(current, fn2);
9493
9571
  };
9494
9572
  }
9495
9573
 
9496
- // ../../node_modules/vitest/dist/vendor/benchmark.IlKmJkUU.js
9574
+ // ../../node_modules/vitest/dist/vendor/benchmark.eeqk2rd8.js
9497
9575
  init_cjs_shims();
9498
9576
 
9499
- // ../../node_modules/vitest/dist/vendor/index.rJjbcrrp.js
9577
+ // ../../node_modules/@vitest/runner/dist/utils.js
9578
+ init_cjs_shims();
9579
+
9580
+ // ../../node_modules/vitest/dist/vendor/index.ir9i0ywP.js
9500
9581
  init_cjs_shims();
9501
9582
 
9502
9583
  // ../../node_modules/vitest/dist/vendor/global.CkGT_TMy.js
@@ -9514,7 +9595,7 @@ function getCurrentEnvironment() {
9514
9595
  return state == null ? void 0 : state.environment.name;
9515
9596
  }
9516
9597
 
9517
- // ../../node_modules/vitest/dist/vendor/index.rJjbcrrp.js
9598
+ // ../../node_modules/vitest/dist/vendor/index.ir9i0ywP.js
9518
9599
  var _a;
9519
9600
  var isNode = typeof process < "u" && typeof process.stdout < "u" && !((_a = process.versions) == null ? void 0 : _a.deno) && !globalThis.window;
9520
9601
  var isWindows = isNode && process.platform === "win32";
@@ -9525,7 +9606,7 @@ function isRunningInBenchmark() {
9525
9606
  return getRunMode() === "benchmark";
9526
9607
  }
9527
9608
 
9528
- // ../../node_modules/vitest/dist/vendor/benchmark.IlKmJkUU.js
9609
+ // ../../node_modules/vitest/dist/vendor/benchmark.eeqk2rd8.js
9529
9610
  var benchFns = /* @__PURE__ */ new WeakMap();
9530
9611
  var benchOptsMap = /* @__PURE__ */ new WeakMap();
9531
9612
  var bench = createBenchmark(
@@ -9578,7 +9659,7 @@ function isFirstRun() {
9578
9659
  return firstRun;
9579
9660
  }
9580
9661
 
9581
- // ../../node_modules/vitest/dist/vendor/vi.Bw2UL9c9.js
9662
+ // ../../node_modules/vitest/dist/vendor/vi.C5mroSoP.js
9582
9663
  init_cjs_shims();
9583
9664
 
9584
9665
  // ../../node_modules/chai/index.mjs
@@ -9625,67 +9706,70 @@ init_cjs_shims();
9625
9706
 
9626
9707
  // ../../node_modules/tinyspy/dist/index.js
9627
9708
  init_cjs_shims();
9628
- function m(e, t) {
9709
+ function R(e, t) {
9629
9710
  if (!e)
9630
9711
  throw new Error(t);
9631
9712
  }
9632
- function y(e, t) {
9713
+ function u(e, t) {
9633
9714
  return typeof t === e;
9634
9715
  }
9635
9716
  function b(e) {
9636
9717
  return e instanceof Promise;
9637
9718
  }
9638
- function d(e, t, n2) {
9719
+ function f(e, t, n2) {
9639
9720
  Object.defineProperty(e, t, n2);
9640
9721
  }
9641
- function p(e, t, n2) {
9722
+ function i(e, t, n2) {
9642
9723
  Object.defineProperty(e, t, { value: n2 });
9643
9724
  }
9644
- var u = Symbol.for("tinyspy:spy");
9645
- var I = /* @__PURE__ */ new Set();
9646
- var M = (e) => {
9725
+ var c = Symbol.for("tinyspy:spy");
9726
+ var g = /* @__PURE__ */ new Set();
9727
+ var C = (e) => {
9647
9728
  e.called = false, e.callCount = 0, e.calls = [], e.results = [], e.next = [];
9648
9729
  };
9649
- var C = (e) => (d(e, u, { value: { reset: () => M(e[u]) } }), e[u]);
9650
- var v = (e) => e[u] || C(e);
9651
- function T(e) {
9652
- m(y("function", e) || y("undefined", e), "cannot spy on a non-function value");
9653
- let t = function(...a) {
9654
- let r = v(t);
9655
- r.called = true, r.callCount++, r.calls.push(a);
9656
- let i = r.next.shift();
9657
- if (i) {
9658
- r.results.push(i);
9659
- let [s, l] = i;
9660
- if (s === "ok")
9661
- return l;
9662
- throw l;
9663
- }
9664
- let o, c = "ok";
9730
+ var M = (e) => (f(e, c, { value: { reset: () => C(e[c]) } }), e[c]);
9731
+ var A = (e) => e[c] || M(e);
9732
+ function I(e) {
9733
+ R(u("function", e) || u("undefined", e), "cannot spy on a non-function value");
9734
+ let t = function(...s) {
9735
+ let r = A(t);
9736
+ r.called = true, r.callCount++, r.calls.push(s);
9737
+ let m = r.next.shift();
9738
+ if (m) {
9739
+ r.results.push(m);
9740
+ let [l, o] = m;
9741
+ if (l === "ok")
9742
+ return o;
9743
+ throw o;
9744
+ }
9745
+ let p, d = "ok";
9665
9746
  if (r.impl)
9666
9747
  try {
9667
- new.target ? o = Reflect.construct(r.impl, a, new.target) : o = r.impl.apply(this, a), c = "ok";
9668
- } catch (s) {
9669
- throw o = s, c = "error", r.results.push([c, s]), s;
9670
- }
9671
- let x = [c, o];
9672
- if (b(o)) {
9673
- let s = o.then((l) => x[1] = l).catch((l) => {
9674
- throw x[0] = "error", x[1] = l, l;
9748
+ new.target ? p = Reflect.construct(r.impl, s, new.target) : p = r.impl.apply(this, s), d = "ok";
9749
+ } catch (l) {
9750
+ throw p = l, d = "error", r.results.push([d, l]), l;
9751
+ }
9752
+ let a = [d, p];
9753
+ if (b(p)) {
9754
+ let l = p.then((o) => a[1] = o).catch((o) => {
9755
+ throw a[0] = "error", a[1] = o, o;
9675
9756
  });
9676
- Object.assign(s, o), o = s;
9757
+ Object.assign(l, p), p = l;
9677
9758
  }
9678
- return r.results.push(x), o;
9759
+ return r.results.push(a), p;
9679
9760
  };
9680
- p(t, "_isMockFunction", true), p(t, "length", e ? e.length : 0), p(t, "name", e && e.name || "spy");
9681
- let n2 = v(t);
9761
+ i(t, "_isMockFunction", true), i(t, "length", e ? e.length : 0), i(t, "name", e && e.name || "spy");
9762
+ let n2 = A(t);
9682
9763
  return n2.reset(), n2.impl = e, t;
9683
9764
  }
9684
- var P = (e, t) => Object.getOwnPropertyDescriptor(e, t);
9765
+ var k = (e, t) => Object.getOwnPropertyDescriptor(e, t);
9766
+ var P = (e, t) => {
9767
+ t != null && typeof t == "function" && t.prototype != null && Object.setPrototypeOf(e.prototype, t.prototype);
9768
+ };
9685
9769
  function E(e, t, n2) {
9686
- m(!y("undefined", e), "spyOn could not find an object to spy upon"), m(y("object", e) || y("function", e), "cannot spyOn on a primitive value");
9687
- let a = () => {
9688
- if (!y("object", t))
9770
+ R(!u("undefined", e), "spyOn could not find an object to spy upon"), R(u("object", e) || u("function", e), "cannot spyOn on a primitive value");
9771
+ let [s, r] = (() => {
9772
+ if (!u("object", t))
9689
9773
  return [t, "value"];
9690
9774
  if ("getter" in t && "setter" in t)
9691
9775
  throw new Error("cannot spy on both getter and setter");
@@ -9694,20 +9778,22 @@ function E(e, t, n2) {
9694
9778
  if ("setter" in t)
9695
9779
  return [t.setter, "set"];
9696
9780
  throw new Error("specify getter or setter to spy on");
9697
- }, [r, i] = a(), o = P(e, r), c = Object.getPrototypeOf(e), x = c && P(c, r), s = o || x;
9698
- m(s || r in e, `${String(r)} does not exist`);
9781
+ })(), m = k(e, s), p = Object.getPrototypeOf(e), d = p && k(p, s), a = m || d;
9782
+ R(a || s in e, `${String(s)} does not exist`);
9699
9783
  let l = false;
9700
- i === "value" && s && !s.value && s.get && (i = "get", l = true, n2 = s.get());
9701
- let f;
9702
- s ? f = s[i] : i !== "value" ? f = () => e[r] : f = e[r], n2 || (n2 = f);
9703
- let S = T(n2), O = (w) => {
9704
- let { value: G, ...k } = s || {
9784
+ r === "value" && a && !a.value && a.get && (r = "get", l = true, n2 = a.get());
9785
+ let o;
9786
+ a ? o = a[r] : r !== "value" ? o = () => e[s] : o = e[s], n2 || (n2 = o);
9787
+ let y = I(n2);
9788
+ r === "value" && P(y, o);
9789
+ let O = (h) => {
9790
+ let { value: G, ...w } = a || {
9705
9791
  configurable: true,
9706
9792
  writable: true
9707
9793
  };
9708
- i !== "value" && delete k.writable, k[i] = w, d(e, r, k);
9709
- }, K = () => s ? d(e, r, s) : O(f), A = S[u];
9710
- return p(A, "restore", K), p(A, "getOriginal", () => l ? f() : f), p(A, "willCall", (w) => (A.impl = w, S)), O(l ? () => S : S), I.add(S), S;
9794
+ r !== "value" && delete w.writable, w[r] = h, f(e, s, w);
9795
+ }, K = () => a ? f(e, s, a) : O(o), T = y[c];
9796
+ return i(T, "restore", K), i(T, "getOriginal", () => l ? o() : o), i(T, "willCall", (h) => (T.impl = h, y)), O(l ? () => (P(y, n2), y) : y), g.add(y), y;
9711
9797
  }
9712
9798
 
9713
9799
  // ../../node_modules/@vitest/spy/dist/index.js
@@ -9730,7 +9816,7 @@ function enhanceSpy(spy) {
9730
9816
  let implementation;
9731
9817
  let instances = [];
9732
9818
  let invocations = [];
9733
- const state = v(spy);
9819
+ const state = A(spy);
9734
9820
  const mockContext = {
9735
9821
  get calls() {
9736
9822
  return state.calls;
@@ -9873,12 +9959,12 @@ function setState(state, expect2) {
9873
9959
  map2.set(expect2, current);
9874
9960
  }
9875
9961
  function getMatcherUtils() {
9876
- const c = () => getColors();
9877
- const EXPECTED_COLOR = c().green;
9878
- const RECEIVED_COLOR = c().red;
9879
- const INVERTED_COLOR = c().inverse;
9880
- const BOLD_WEIGHT = c().bold;
9881
- const DIM_COLOR = c().dim;
9962
+ const c2 = () => getColors();
9963
+ const EXPECTED_COLOR = c2().green;
9964
+ const RECEIVED_COLOR = c2().red;
9965
+ const INVERTED_COLOR = c2().inverse;
9966
+ const BOLD_WEIGHT = c2().bold;
9967
+ const DIM_COLOR = c2().dim;
9882
9968
  function matcherHint(matcherName, received = "received", expected = "expected", options = {}) {
9883
9969
  const {
9884
9970
  comment = "",
@@ -9979,8 +10065,8 @@ function eq(a, b2, aStack, bStack, customTesters, hasKey2) {
9979
10065
  if (asymmetricResult !== void 0)
9980
10066
  return asymmetricResult;
9981
10067
  const testerContext = { equals };
9982
- for (let i = 0; i < customTesters.length; i++) {
9983
- const customTesterResult = customTesters[i].call(testerContext, a, b2, customTesters);
10068
+ for (let i2 = 0; i2 < customTesters.length; i2++) {
10069
+ const customTesterResult = customTesters[i2].call(testerContext, a, b2, customTesters);
9984
10070
  if (customTesterResult !== void 0)
9985
10071
  return customTesterResult;
9986
10072
  }
@@ -10214,8 +10300,8 @@ function arrayBufferEquality(a, b2) {
10214
10300
  }
10215
10301
  if (dataViewA.byteLength !== dataViewB.byteLength)
10216
10302
  return false;
10217
- for (let i = 0; i < dataViewA.byteLength; i++) {
10218
- if (dataViewA.getUint8(i) !== dataViewB.getUint8(i))
10303
+ for (let i2 = 0; i2 < dataViewA.byteLength; i2++) {
10304
+ if (dataViewA.getUint8(i2) !== dataViewB.getUint8(i2))
10219
10305
  return false;
10220
10306
  }
10221
10307
  return true;
@@ -10552,7 +10638,7 @@ function wrapSoft(utils, fn2) {
10552
10638
  }
10553
10639
  var JestChaiExpect = (chai3, utils) => {
10554
10640
  const { AssertionError: AssertionError2 } = chai3;
10555
- const c = () => getColors();
10641
+ const c2 = () => getColors();
10556
10642
  const customTesters = getCustomEqualityTesters();
10557
10643
  function def(name, fn2) {
10558
10644
  const addMethod = (n2) => {
@@ -10565,8 +10651,8 @@ var JestChaiExpect = (chai3, utils) => {
10565
10651
  else
10566
10652
  addMethod(name);
10567
10653
  }
10568
- ["throw", "throws", "Throw"].forEach((m2) => {
10569
- utils.overwriteMethod(chai3.Assertion.prototype, m2, (_super) => {
10654
+ ["throw", "throws", "Throw"].forEach((m) => {
10655
+ utils.overwriteMethod(chai3.Assertion.prototype, m, (_super) => {
10570
10656
  return function(...args) {
10571
10657
  const promise = utils.flag(this, "promise");
10572
10658
  const object2 = utils.flag(this, "object");
@@ -10883,25 +10969,25 @@ var JestChaiExpect = (chai3, utils) => {
10883
10969
  assertIsMock(assertion);
10884
10970
  return assertion._obj;
10885
10971
  };
10886
- const ordinalOf = (i) => {
10887
- const j = i % 10;
10888
- const k = i % 100;
10889
- if (j === 1 && k !== 11)
10890
- return `${i}st`;
10891
- if (j === 2 && k !== 12)
10892
- return `${i}nd`;
10893
- if (j === 3 && k !== 13)
10894
- return `${i}rd`;
10895
- return `${i}th`;
10972
+ const ordinalOf = (i2) => {
10973
+ const j = i2 % 10;
10974
+ const k2 = i2 % 100;
10975
+ if (j === 1 && k2 !== 11)
10976
+ return `${i2}st`;
10977
+ if (j === 2 && k2 !== 12)
10978
+ return `${i2}nd`;
10979
+ if (j === 3 && k2 !== 13)
10980
+ return `${i2}rd`;
10981
+ return `${i2}th`;
10896
10982
  };
10897
10983
  const formatCalls = (spy, msg, actualCall) => {
10898
10984
  if (spy.mock.calls) {
10899
- msg += c().gray(`
10985
+ msg += c2().gray(`
10900
10986
 
10901
10987
  Received:
10902
10988
 
10903
- ${spy.mock.calls.map((callArg, i) => {
10904
- let methodCall = c().bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call:
10989
+ ${spy.mock.calls.map((callArg, i2) => {
10990
+ let methodCall = c2().bold(` ${ordinalOf(i2 + 1)} ${spy.getMockName()} call:
10905
10991
 
10906
10992
  `);
10907
10993
  if (actualCall)
@@ -10912,19 +10998,19 @@ ${spy.mock.calls.map((callArg, i) => {
10912
10998
  return methodCall;
10913
10999
  }).join("\n")}`);
10914
11000
  }
10915
- msg += c().gray(`
11001
+ msg += c2().gray(`
10916
11002
 
10917
- Number of calls: ${c().bold(spy.mock.calls.length)}
11003
+ Number of calls: ${c2().bold(spy.mock.calls.length)}
10918
11004
  `);
10919
11005
  return msg;
10920
11006
  };
10921
11007
  const formatReturns = (spy, msg, actualReturn) => {
10922
- msg += c().gray(`
11008
+ msg += c2().gray(`
10923
11009
 
10924
11010
  Received:
10925
11011
 
10926
- ${spy.mock.results.map((callReturn, i) => {
10927
- let methodCall = c().bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call return:
11012
+ ${spy.mock.results.map((callReturn, i2) => {
11013
+ let methodCall = c2().bold(` ${ordinalOf(i2 + 1)} ${spy.getMockName()} call return:
10928
11014
 
10929
11015
  `);
10930
11016
  if (actualReturn)
@@ -10934,9 +11020,9 @@ ${spy.mock.results.map((callReturn, i) => {
10934
11020
  methodCall += "\n";
10935
11021
  return methodCall;
10936
11022
  }).join("\n")}`);
10937
- msg += c().gray(`
11023
+ msg += c2().gray(`
10938
11024
 
10939
- Number of calls: ${c().bold(spy.mock.calls.length)}
11025
+ Number of calls: ${c2().bold(spy.mock.calls.length)}
10940
11026
  `);
10941
11027
  return msg;
10942
11028
  };
@@ -11070,8 +11156,7 @@ Number of calls: ${c().bold(spy.mock.calls.length)}
11070
11156
  `expected error to be instance of ${name}`,
11071
11157
  `expected error not to be instance of ${name}`,
11072
11158
  expected,
11073
- thrown,
11074
- false
11159
+ thrown
11075
11160
  );
11076
11161
  }
11077
11162
  if (expected instanceof Error) {
@@ -11089,9 +11174,8 @@ Number of calls: ${c().bold(spy.mock.calls.length)}
11089
11174
  thrown && matcher.asymmetricMatch(thrown),
11090
11175
  "expected error to match asymmetric matcher",
11091
11176
  "expected error not to match asymmetric matcher",
11092
- matcher.toString(),
11093
- thrown,
11094
- false
11177
+ matcher,
11178
+ thrown
11095
11179
  );
11096
11180
  }
11097
11181
  throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof expected}"`);
@@ -11278,7 +11362,7 @@ var JestExtendError = class extends Error {
11278
11362
  }
11279
11363
  };
11280
11364
  function JestExtendPlugin(expect2, matchers) {
11281
- return (c, utils) => {
11365
+ return (c2, utils) => {
11282
11366
  Object.entries(matchers).forEach(([expectAssertionName, expectAssertion]) => {
11283
11367
  function expectWrapper(...args) {
11284
11368
  const { state, isNot, obj } = getMatcherState(this, expect2);
@@ -11295,7 +11379,7 @@ function JestExtendPlugin(expect2, matchers) {
11295
11379
  }
11296
11380
  const softWrapper = wrapSoft(utils, expectWrapper);
11297
11381
  utils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers, expectAssertionName, softWrapper);
11298
- utils.addMethod(c.Assertion.prototype, expectAssertionName, softWrapper);
11382
+ utils.addMethod(c2.Assertion.prototype, expectAssertionName, softWrapper);
11299
11383
  class CustomMatcher extends AsymmetricMatcher3 {
11300
11384
  constructor(inverse = false, ...sample) {
11301
11385
  super(sample, inverse);
@@ -11354,12 +11438,12 @@ function getDefaultExportFromCjs2(x) {
11354
11438
  }
11355
11439
  var naturalCompare$2 = { exports: {} };
11356
11440
  var naturalCompare = function(a, b2) {
11357
- var i, codeA, codeB = 1, posA = 0, posB = 0, alphabet = String.alphabet;
11441
+ var i2, codeA, codeB = 1, posA = 0, posB = 0, alphabet = String.alphabet;
11358
11442
  function getCode(str, pos, code) {
11359
11443
  if (code) {
11360
- for (i = pos; code = getCode(str, i), code < 76 && code > 65; )
11361
- ++i;
11362
- return +str.slice(pos - 1, i);
11444
+ for (i2 = pos; code = getCode(str, i2), code < 76 && code > 65; )
11445
+ ++i2;
11446
+ return +str.slice(pos - 1, i2);
11363
11447
  }
11364
11448
  code = alphabet && alphabet.indexOf(str.charAt(pos));
11365
11449
  return code > -1 ? code + 76 : (code = str.charCodeAt(pos) || 0, code < 45 || code > 127) ? code : code < 46 ? 65 : code < 48 ? code - 1 : code < 58 ? code + 18 : code < 65 ? code - 11 : code < 91 ? code + 11 : code < 97 ? code - 37 : code < 123 ? code + 5 : code - 63;
@@ -11370,8 +11454,8 @@ var naturalCompare = function(a, b2) {
11370
11454
  codeB = getCode(b2, posB++);
11371
11455
  if (codeA < 76 && codeB < 76 && codeA > 66 && codeB > 66) {
11372
11456
  codeA = getCode(a, posA, posA);
11373
- codeB = getCode(b2, posB, posA = i);
11374
- posB = i;
11457
+ codeB = getCode(b2, posB, posA = i2);
11458
+ posB = i2;
11375
11459
  }
11376
11460
  if (codeA != codeB)
11377
11461
  return codeA < codeB ? -1 : 1;
@@ -11385,8 +11469,8 @@ try {
11385
11469
  }
11386
11470
  var naturalCompareExports = naturalCompare$2.exports;
11387
11471
  var naturalCompare$1 = /* @__PURE__ */ getDefaultExportFromCjs2(naturalCompareExports);
11388
- function notNullish2(v2) {
11389
- return v2 != null;
11472
+ function notNullish2(v) {
11473
+ return v != null;
11390
11474
  }
11391
11475
  function isPrimitive2(value) {
11392
11476
  return value === null || typeof value !== "function" && typeof value !== "object";
@@ -11450,8 +11534,8 @@ function positionToOffset(source, lineNumber, columnNumber) {
11450
11534
  let start = 0;
11451
11535
  if (lineNumber > lines.length)
11452
11536
  return source.length;
11453
- for (let i = 0; i < lineNumber - 1; i++)
11454
- start += lines[i].length + nl;
11537
+ for (let i2 = 0; i2 < lineNumber - 1; i2++)
11538
+ start += lines[i2].length + nl;
11455
11539
  return start + columnNumber;
11456
11540
  }
11457
11541
  function offsetToLineNumber(source, offset) {
@@ -11691,10 +11775,10 @@ var comma2 = ",".charCodeAt(0);
11691
11775
  var chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
11692
11776
  var intToChar2 = new Uint8Array(64);
11693
11777
  var charToInt2 = new Uint8Array(128);
11694
- for (let i = 0; i < chars2.length; i++) {
11695
- const c = chars2.charCodeAt(i);
11696
- intToChar2[i] = c;
11697
- charToInt2[c] = i;
11778
+ for (let i2 = 0; i2 < chars2.length; i2++) {
11779
+ const c2 = chars2.charCodeAt(i2);
11780
+ intToChar2[i2] = c2;
11781
+ charToInt2[c2] = i2;
11698
11782
  }
11699
11783
  function decode(mappings) {
11700
11784
  const state = new Int32Array(5);
@@ -11706,19 +11790,19 @@ function decode(mappings) {
11706
11790
  let sorted = true;
11707
11791
  let lastCol = 0;
11708
11792
  state[0] = 0;
11709
- for (let i = index; i < semi; i++) {
11793
+ for (let i2 = index; i2 < semi; i2++) {
11710
11794
  let seg;
11711
- i = decodeInteger(mappings, i, state, 0);
11795
+ i2 = decodeInteger(mappings, i2, state, 0);
11712
11796
  const col = state[0];
11713
11797
  if (col < lastCol)
11714
11798
  sorted = false;
11715
11799
  lastCol = col;
11716
- if (hasMoreVlq(mappings, i, semi)) {
11717
- i = decodeInteger(mappings, i, state, 1);
11718
- i = decodeInteger(mappings, i, state, 2);
11719
- i = decodeInteger(mappings, i, state, 3);
11720
- if (hasMoreVlq(mappings, i, semi)) {
11721
- i = decodeInteger(mappings, i, state, 4);
11800
+ if (hasMoreVlq(mappings, i2, semi)) {
11801
+ i2 = decodeInteger(mappings, i2, state, 1);
11802
+ i2 = decodeInteger(mappings, i2, state, 2);
11803
+ i2 = decodeInteger(mappings, i2, state, 3);
11804
+ if (hasMoreVlq(mappings, i2, semi)) {
11805
+ i2 = decodeInteger(mappings, i2, state, 4);
11722
11806
  seg = [col, state[1], state[2], state[3], state[4]];
11723
11807
  } else {
11724
11808
  seg = [col, state[1], state[2], state[3]];
@@ -11744,8 +11828,8 @@ function decodeInteger(mappings, pos, state, j) {
11744
11828
  let shift = 0;
11745
11829
  let integer = 0;
11746
11830
  do {
11747
- const c = mappings.charCodeAt(pos++);
11748
- integer = charToInt2[c];
11831
+ const c2 = mappings.charCodeAt(pos++);
11832
+ integer = charToInt2[c2];
11749
11833
  value |= (integer & 31) << shift;
11750
11834
  shift += 5;
11751
11835
  } while (integer & 32);
@@ -11757,10 +11841,10 @@ function decodeInteger(mappings, pos, state, j) {
11757
11841
  state[j] += value;
11758
11842
  return pos;
11759
11843
  }
11760
- function hasMoreVlq(mappings, i, length) {
11761
- if (i >= length)
11844
+ function hasMoreVlq(mappings, i2, length) {
11845
+ if (i2 >= length)
11762
11846
  return false;
11763
- return mappings.charCodeAt(i) !== comma2;
11847
+ return mappings.charCodeAt(i2) !== comma2;
11764
11848
  }
11765
11849
  function sort(line) {
11766
11850
  line.sort(sortComparator$1);
@@ -11861,8 +11945,8 @@ function normalizePath(url, type2) {
11861
11945
  let pointer = 1;
11862
11946
  let positive = 0;
11863
11947
  let addTrailingSlash = false;
11864
- for (let i = 1; i < pieces.length; i++) {
11865
- const piece = pieces[i];
11948
+ for (let i2 = 1; i2 < pieces.length; i2++) {
11949
+ const piece = pieces[i2];
11866
11950
  if (!piece) {
11867
11951
  addTrailingSlash = true;
11868
11952
  continue;
@@ -11884,8 +11968,8 @@ function normalizePath(url, type2) {
11884
11968
  positive++;
11885
11969
  }
11886
11970
  let path2 = "";
11887
- for (let i = 1; i < pointer; i++) {
11888
- path2 += "/" + pieces[i];
11971
+ for (let i2 = 1; i2 < pointer; i2++) {
11972
+ path2 += "/" + pieces[i2];
11889
11973
  }
11890
11974
  if (!path2 || addTrailingSlash && !path2.endsWith("/..")) {
11891
11975
  path2 += "/";
@@ -11961,15 +12045,15 @@ function maybeSort(mappings, owned) {
11961
12045
  return mappings;
11962
12046
  if (!owned)
11963
12047
  mappings = mappings.slice();
11964
- for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) {
11965
- mappings[i] = sortSegments(mappings[i], owned);
12048
+ for (let i2 = unsortedIndex; i2 < mappings.length; i2 = nextUnsortedSegmentLine(mappings, i2 + 1)) {
12049
+ mappings[i2] = sortSegments(mappings[i2], owned);
11966
12050
  }
11967
12051
  return mappings;
11968
12052
  }
11969
12053
  function nextUnsortedSegmentLine(mappings, start) {
11970
- for (let i = start; i < mappings.length; i++) {
11971
- if (!isSorted(mappings[i]))
11972
- return i;
12054
+ for (let i2 = start; i2 < mappings.length; i2++) {
12055
+ if (!isSorted(mappings[i2]))
12056
+ return i2;
11973
12057
  }
11974
12058
  return mappings.length;
11975
12059
  }
@@ -12008,15 +12092,15 @@ function binarySearch(haystack, needle, low, high) {
12008
12092
  return low - 1;
12009
12093
  }
12010
12094
  function upperBound(haystack, needle, index) {
12011
- for (let i = index + 1; i < haystack.length; index = i++) {
12012
- if (haystack[i][COLUMN] !== needle)
12095
+ for (let i2 = index + 1; i2 < haystack.length; index = i2++) {
12096
+ if (haystack[i2][COLUMN] !== needle)
12013
12097
  break;
12014
12098
  }
12015
12099
  return index;
12016
12100
  }
12017
12101
  function lowerBound(haystack, needle, index) {
12018
- for (let i = index - 1; i >= 0; index = i--) {
12019
- if (haystack[i][COLUMN] !== needle)
12102
+ for (let i2 = index - 1; i2 >= 0; index = i2--) {
12103
+ if (haystack[i2][COLUMN] !== needle)
12020
12104
  break;
12021
12105
  }
12022
12106
  return index;
@@ -12204,7 +12288,7 @@ function parseStacktrace(stack, options = {}) {
12204
12288
  const { ignoreStackEntries = stackIgnorePatterns } = options;
12205
12289
  let stacks = !CHROME_IE_STACK_REGEXP.test(stack) ? parseFFOrSafariStackTrace(stack) : parseV8Stacktrace(stack);
12206
12290
  if (ignoreStackEntries.length)
12207
- stacks = stacks.filter((stack2) => !ignoreStackEntries.some((p2) => stack2.file.match(p2)));
12291
+ stacks = stacks.filter((stack2) => !ignoreStackEntries.some((p) => stack2.file.match(p)));
12208
12292
  return stacks.map((stack2) => {
12209
12293
  var _a2;
12210
12294
  const map2 = (_a2 = options.getSourceMap) == null ? void 0 : _a2.call(options, stack2.file);
@@ -12231,15 +12315,15 @@ function parseErrorStacktrace(e, options = {}) {
12231
12315
  const stackStr = e.stack || e.stackStr || "";
12232
12316
  let stackFrames = parseStacktrace(stackStr, options);
12233
12317
  if (options.frameFilter)
12234
- stackFrames = stackFrames.filter((f) => options.frameFilter(e, f) !== false);
12318
+ stackFrames = stackFrames.filter((f2) => options.frameFilter(e, f2) !== false);
12235
12319
  e.stacks = stackFrames;
12236
12320
  return stackFrames;
12237
12321
  }
12238
12322
  async function saveInlineSnapshots(environment, snapshots) {
12239
12323
  const MagicString2 = (await Promise.resolve().then(() => (init_magic_string_es(), magic_string_es_exports))).default;
12240
- const files = new Set(snapshots.map((i) => i.file));
12324
+ const files = new Set(snapshots.map((i2) => i2.file));
12241
12325
  await Promise.all(Array.from(files).map(async (file) => {
12242
- const snaps = snapshots.filter((i) => i.file === file);
12326
+ const snaps = snapshots.filter((i2) => i2.file === file);
12243
12327
  const code = await environment.readSnapshotFile(file);
12244
12328
  const s = new MagicString2(code);
12245
12329
  for (const snap of snaps) {
@@ -12295,7 +12379,7 @@ function prepareSnapString(snap, source, index) {
12295
12379
  if (isOneline)
12296
12380
  return `${quote}${lines.join("\n").replace(/`/g, "\\`").replace(/\${/g, "\\${")}${quote}`;
12297
12381
  return `${quote}
12298
- ${lines.map((i) => i ? indentNext + i : "").join("\n").replace(/`/g, "\\`").replace(/\${/g, "\\${")}
12382
+ ${lines.map((i2) => i2 ? indentNext + i2 : "").join("\n").replace(/`/g, "\\`").replace(/\${/g, "\\${")}
12299
12383
  ${indent}${quote}`;
12300
12384
  }
12301
12385
  var startRegex = /(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\S\s]*\*\/\s*|\/\/.*\s+)*\s*[\w_$]*(['"`\)])/m;
@@ -12334,12 +12418,12 @@ function stripSnapshotIndentation(inlineSnapshot) {
12334
12418
  if (lines[0].trim() !== "" || lines[lines.length - 1].trim() !== "") {
12335
12419
  return inlineSnapshot;
12336
12420
  }
12337
- for (let i = 1; i < lines.length - 1; i++) {
12338
- if (lines[i] !== "") {
12339
- if (lines[i].indexOf(indentation) !== 0) {
12421
+ for (let i2 = 1; i2 < lines.length - 1; i2++) {
12422
+ if (lines[i2] !== "") {
12423
+ if (lines[i2].indexOf(indentation) !== 0) {
12340
12424
  return inlineSnapshot;
12341
12425
  }
12342
- lines[i] = lines[i].substring(indentation.length);
12426
+ lines[i2] = lines[i2].substring(indentation.length);
12343
12427
  }
12344
12428
  }
12345
12429
  lines[lines.length - 1] = "";
@@ -12412,10 +12496,10 @@ var SnapshotState = class _SnapshotState {
12412
12496
  });
12413
12497
  }
12414
12498
  _inferInlineSnapshotStack(stacks) {
12415
- const promiseIndex = stacks.findIndex((i) => i.method.match(/__VITEST_(RESOLVES|REJECTS)__/));
12499
+ const promiseIndex = stacks.findIndex((i2) => i2.method.match(/__VITEST_(RESOLVES|REJECTS)__/));
12416
12500
  if (promiseIndex !== -1)
12417
12501
  return stacks[promiseIndex + 3];
12418
- const stackIndex = stacks.findIndex((i) => i.method.includes("__INLINE_SNAPSHOT__"));
12502
+ const stackIndex = stacks.findIndex((i2) => i2.method.includes("__INLINE_SNAPSHOT__"));
12419
12503
  return stackIndex !== -1 ? stacks[stackIndex + 2] : null;
12420
12504
  }
12421
12505
  _addSnapshot(key, receivedSerialized, options) {
@@ -12822,17 +12906,17 @@ function normalizeString2(path2, allowAboveRoot) {
12822
12906
  }
12823
12907
  return res;
12824
12908
  }
12825
- var isAbsolute2 = function(p2) {
12826
- return _IS_ABSOLUTE_RE2.test(p2);
12909
+ var isAbsolute2 = function(p) {
12910
+ return _IS_ABSOLUTE_RE2.test(p);
12827
12911
  };
12828
12912
  var comma3 = ",".charCodeAt(0);
12829
12913
  var chars3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
12830
12914
  var intToChar3 = new Uint8Array(64);
12831
12915
  var charToInt3 = new Uint8Array(128);
12832
- for (let i = 0; i < chars3.length; i++) {
12833
- const c = chars3.charCodeAt(i);
12834
- intToChar3[i] = c;
12835
- charToInt3[c] = i;
12916
+ for (let i2 = 0; i2 < chars3.length; i2++) {
12917
+ const c2 = chars3.charCodeAt(i2);
12918
+ intToChar3[i2] = c2;
12919
+ charToInt3[c2] = i2;
12836
12920
  }
12837
12921
  function decode2(mappings) {
12838
12922
  const state = new Int32Array(5);
@@ -12844,19 +12928,19 @@ function decode2(mappings) {
12844
12928
  let sorted = true;
12845
12929
  let lastCol = 0;
12846
12930
  state[0] = 0;
12847
- for (let i = index; i < semi; i++) {
12931
+ for (let i2 = index; i2 < semi; i2++) {
12848
12932
  let seg;
12849
- i = decodeInteger2(mappings, i, state, 0);
12933
+ i2 = decodeInteger2(mappings, i2, state, 0);
12850
12934
  const col = state[0];
12851
12935
  if (col < lastCol)
12852
12936
  sorted = false;
12853
12937
  lastCol = col;
12854
- if (hasMoreVlq2(mappings, i, semi)) {
12855
- i = decodeInteger2(mappings, i, state, 1);
12856
- i = decodeInteger2(mappings, i, state, 2);
12857
- i = decodeInteger2(mappings, i, state, 3);
12858
- if (hasMoreVlq2(mappings, i, semi)) {
12859
- i = decodeInteger2(mappings, i, state, 4);
12938
+ if (hasMoreVlq2(mappings, i2, semi)) {
12939
+ i2 = decodeInteger2(mappings, i2, state, 1);
12940
+ i2 = decodeInteger2(mappings, i2, state, 2);
12941
+ i2 = decodeInteger2(mappings, i2, state, 3);
12942
+ if (hasMoreVlq2(mappings, i2, semi)) {
12943
+ i2 = decodeInteger2(mappings, i2, state, 4);
12860
12944
  seg = [col, state[1], state[2], state[3], state[4]];
12861
12945
  } else {
12862
12946
  seg = [col, state[1], state[2], state[3]];
@@ -12882,8 +12966,8 @@ function decodeInteger2(mappings, pos, state, j) {
12882
12966
  let shift = 0;
12883
12967
  let integer = 0;
12884
12968
  do {
12885
- const c = mappings.charCodeAt(pos++);
12886
- integer = charToInt3[c];
12969
+ const c2 = mappings.charCodeAt(pos++);
12970
+ integer = charToInt3[c2];
12887
12971
  value |= (integer & 31) << shift;
12888
12972
  shift += 5;
12889
12973
  } while (integer & 32);
@@ -12895,10 +12979,10 @@ function decodeInteger2(mappings, pos, state, j) {
12895
12979
  state[j] += value;
12896
12980
  return pos;
12897
12981
  }
12898
- function hasMoreVlq2(mappings, i, length) {
12899
- if (i >= length)
12982
+ function hasMoreVlq2(mappings, i2, length) {
12983
+ if (i2 >= length)
12900
12984
  return false;
12901
- return mappings.charCodeAt(i) !== comma3;
12985
+ return mappings.charCodeAt(i2) !== comma3;
12902
12986
  }
12903
12987
  function sort2(line) {
12904
12988
  line.sort(sortComparator$12);
@@ -12942,15 +13026,15 @@ function binarySearch2(haystack, needle, low, high) {
12942
13026
  return low - 1;
12943
13027
  }
12944
13028
  function upperBound2(haystack, needle, index) {
12945
- for (let i = index + 1; i < haystack.length; index = i++) {
12946
- if (haystack[i][COLUMN2] !== needle)
13029
+ for (let i2 = index + 1; i2 < haystack.length; index = i2++) {
13030
+ if (haystack[i2][COLUMN2] !== needle)
12947
13031
  break;
12948
13032
  }
12949
13033
  return index;
12950
13034
  }
12951
13035
  function lowerBound2(haystack, needle, index) {
12952
- for (let i = index - 1; i >= 0; index = i--) {
12953
- if (haystack[i][COLUMN2] !== needle)
13036
+ for (let i2 = index - 1; i2 >= 0; index = i2--) {
13037
+ if (haystack[i2][COLUMN2] !== needle)
12954
13038
  break;
12955
13039
  }
12956
13040
  return index;
@@ -12983,8 +13067,8 @@ function memoizedBinarySearch2(haystack, needle, state, key) {
12983
13067
  }
12984
13068
  function buildBySources(decoded, memos) {
12985
13069
  const sources = memos.map(buildNullArray);
12986
- for (let i = 0; i < decoded.length; i++) {
12987
- const line = decoded[i];
13070
+ for (let i2 = 0; i2 < decoded.length; i2++) {
13071
+ const line = decoded[i2];
12988
13072
  for (let j = 0; j < line.length; j++) {
12989
13073
  const seg = line[j];
12990
13074
  if (seg.length === 1)
@@ -12996,14 +13080,14 @@ function buildBySources(decoded, memos) {
12996
13080
  const originalLine = originalSource[sourceLine] || (originalSource[sourceLine] = []);
12997
13081
  const memo = memos[sourceIndex];
12998
13082
  const index = upperBound2(originalLine, sourceColumn, memoizedBinarySearch2(originalLine, sourceColumn, memo, sourceLine));
12999
- insert(originalLine, memo.lastIndex = index + 1, [sourceColumn, i, seg[COLUMN2]]);
13083
+ insert(originalLine, memo.lastIndex = index + 1, [sourceColumn, i2, seg[COLUMN2]]);
13000
13084
  }
13001
13085
  }
13002
13086
  return sources;
13003
13087
  }
13004
13088
  function insert(array2, index, value) {
13005
- for (let i = array2.length; i > index; i--) {
13006
- array2[i] = array2[i - 1];
13089
+ for (let i2 = array2.length; i2 > index; i2--) {
13090
+ array2[i2] = array2[i2 - 1];
13007
13091
  }
13008
13092
  array2[index] = value;
13009
13093
  }
@@ -13177,7 +13261,7 @@ function parseSingleV8Stack2(raw) {
13177
13261
  };
13178
13262
  }
13179
13263
 
13180
- // ../../node_modules/vitest/dist/vendor/base.QYERqzkH.js
13264
+ // ../../node_modules/vitest/dist/vendor/base.N3JkKp7j.js
13181
13265
  init_cjs_shims();
13182
13266
  function isChildProcess() {
13183
13267
  return typeof process !== "undefined" && !!process.send;
@@ -13188,7 +13272,7 @@ init_cjs_shims();
13188
13272
  var RealDate = Date;
13189
13273
  var now2 = null;
13190
13274
  var MockDate = class _MockDate extends RealDate {
13191
- constructor(y2, m2, d2, h, M2, s, ms) {
13275
+ constructor(y, m, d, h, M2, s, ms) {
13192
13276
  super();
13193
13277
  let date;
13194
13278
  switch (arguments.length) {
@@ -13199,15 +13283,15 @@ var MockDate = class _MockDate extends RealDate {
13199
13283
  date = new RealDate();
13200
13284
  break;
13201
13285
  case 1:
13202
- date = new RealDate(y2);
13286
+ date = new RealDate(y);
13203
13287
  break;
13204
13288
  default:
13205
- d2 = typeof d2 === "undefined" ? 1 : d2;
13289
+ d = typeof d === "undefined" ? 1 : d;
13206
13290
  h = h || 0;
13207
13291
  M2 = M2 || 0;
13208
13292
  s = s || 0;
13209
13293
  ms = ms || 0;
13210
- date = new RealDate(y2, m2, d2, h, M2, s, ms);
13294
+ date = new RealDate(y, m, d, h, M2, s, ms);
13211
13295
  break;
13212
13296
  }
13213
13297
  Object.setPrototypeOf(date, _MockDate.prototype);
@@ -13235,7 +13319,7 @@ function resetDate() {
13235
13319
  globalThis.Date = RealDate;
13236
13320
  }
13237
13321
 
13238
- // ../../node_modules/vitest/dist/vendor/vi.Bw2UL9c9.js
13322
+ // ../../node_modules/vitest/dist/vendor/vi.C5mroSoP.js
13239
13323
  function resetModules(modules, resetMocks = false) {
13240
13324
  const skipPaths = [
13241
13325
  // Vitest
@@ -13969,8 +14053,8 @@ function withGlobal(_global) {
13969
14053
  return isFinite(num);
13970
14054
  }
13971
14055
  let isNearInfiniteLimit = false;
13972
- function checkIsNearInfiniteLimit(clock, i) {
13973
- if (clock.loopLimit && i === clock.loopLimit - 1) {
14056
+ function checkIsNearInfiniteLimit(clock, i2) {
14057
+ if (clock.loopLimit && i2 === clock.loopLimit - 1) {
13974
14058
  isNearInfiniteLimit = true;
13975
14059
  }
13976
14060
  }
@@ -13983,7 +14067,7 @@ function withGlobal(_global) {
13983
14067
  }
13984
14068
  const strings = str.split(":");
13985
14069
  const l = strings.length;
13986
- let i = l;
14070
+ let i2 = l;
13987
14071
  let ms = 0;
13988
14072
  let parsed;
13989
14073
  if (l > 3 || !/^(\d\d:){0,2}\d\d?$/.test(str)) {
@@ -13991,12 +14075,12 @@ function withGlobal(_global) {
13991
14075
  "tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits"
13992
14076
  );
13993
14077
  }
13994
- while (i--) {
13995
- parsed = parseInt(strings[i], 10);
14078
+ while (i2--) {
14079
+ parsed = parseInt(strings[i2], 10);
13996
14080
  if (parsed >= 60) {
13997
14081
  throw new Error(`Invalid time ${str}`);
13998
14082
  }
13999
- ms += parsed * Math.pow(60, l - i - 1);
14083
+ ms += parsed * Math.pow(60, l - i2 - 1);
14000
14084
  }
14001
14085
  return ms * 1e3;
14002
14086
  }
@@ -14038,15 +14122,15 @@ function withGlobal(_global) {
14038
14122
  );
14039
14123
  }
14040
14124
  let matchedLineIndex = -1;
14041
- job.error.stack.split("\n").some(function(line, i) {
14125
+ job.error.stack.split("\n").some(function(line, i2) {
14042
14126
  const matchedComputedTarget = line.match(computedTargetPattern);
14043
14127
  if (matchedComputedTarget) {
14044
- matchedLineIndex = i;
14128
+ matchedLineIndex = i2;
14045
14129
  return true;
14046
14130
  }
14047
14131
  const matchedClockMethod = line.match(clockMethodPattern);
14048
14132
  if (matchedClockMethod) {
14049
- matchedLineIndex = i;
14133
+ matchedLineIndex = i2;
14050
14134
  return false;
14051
14135
  }
14052
14136
  return matchedLineIndex >= 0;
@@ -14167,11 +14251,11 @@ ${job.error.stack.split("\n").slice(matchedLineIndex + 1).join("\n")}`;
14167
14251
  if (!clock.jobs) {
14168
14252
  return;
14169
14253
  }
14170
- for (let i = 0; i < clock.jobs.length; i++) {
14171
- const job = clock.jobs[i];
14254
+ for (let i2 = 0; i2 < clock.jobs.length; i2++) {
14255
+ const job = clock.jobs[i2];
14172
14256
  job.func.apply(null, job.args);
14173
- checkIsNearInfiniteLimit(clock, i);
14174
- if (clock.loopLimit && i > clock.loopLimit) {
14257
+ checkIsNearInfiniteLimit(clock, i2);
14258
+ if (clock.loopLimit && i2 > clock.loopLimit) {
14175
14259
  throw getInfiniteLoopError(clock, job);
14176
14260
  }
14177
14261
  }
@@ -14382,11 +14466,11 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
14382
14466
  }
14383
14467
  }
14384
14468
  function uninstall(clock, config2) {
14385
- let method, i, l;
14469
+ let method, i2, l;
14386
14470
  const installedHrTime = "_hrtime";
14387
14471
  const installedNextTick = "_nextTick";
14388
- for (i = 0, l = clock.methods.length; i < l; i++) {
14389
- method = clock.methods[i];
14472
+ for (i2 = 0, l = clock.methods.length; i2 < l; i2++) {
14473
+ method = clock.methods[i2];
14390
14474
  if (method === "hrtime" && _global.process) {
14391
14475
  _global.process.hrtime = clock[installedHrTime];
14392
14476
  } else if (method === "nextTick" && _global.process) {
@@ -14835,9 +14919,9 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
14835
14919
  };
14836
14920
  }
14837
14921
  clock.runAll = function runAll() {
14838
- let numTimers, i;
14922
+ let numTimers, i2;
14839
14923
  runJobs(clock);
14840
- for (i = 0; i < clock.loopLimit; i++) {
14924
+ for (i2 = 0; i2 < clock.loopLimit; i2++) {
14841
14925
  if (!clock.timers) {
14842
14926
  resetIsNearInfiniteLimit();
14843
14927
  return clock.now;
@@ -14848,7 +14932,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
14848
14932
  return clock.now;
14849
14933
  }
14850
14934
  clock.next();
14851
- checkIsNearInfiniteLimit(clock, i);
14935
+ checkIsNearInfiniteLimit(clock, i2);
14852
14936
  }
14853
14937
  const excessJob = firstTimer(clock);
14854
14938
  throw getInfiniteLoopError(clock, excessJob);
@@ -14859,12 +14943,12 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
14859
14943
  if (typeof _global.Promise !== "undefined") {
14860
14944
  clock.runAllAsync = function runAllAsync() {
14861
14945
  return new _global.Promise(function(resolve3, reject) {
14862
- let i = 0;
14946
+ let i2 = 0;
14863
14947
  function doRun() {
14864
14948
  originalSetTimeout(function() {
14865
14949
  try {
14866
14950
  let numTimers;
14867
- if (i < clock.loopLimit) {
14951
+ if (i2 < clock.loopLimit) {
14868
14952
  if (!clock.timers) {
14869
14953
  resetIsNearInfiniteLimit();
14870
14954
  resolve3(clock.now);
@@ -14879,9 +14963,9 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
14879
14963
  return;
14880
14964
  }
14881
14965
  clock.next();
14882
- i++;
14966
+ i2++;
14883
14967
  doRun();
14884
- checkIsNearInfiniteLimit(clock, i);
14968
+ checkIsNearInfiniteLimit(clock, i2);
14885
14969
  return;
14886
14970
  }
14887
14971
  const excessJob = firstTimer(clock);
@@ -14983,7 +15067,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
14983
15067
  "config.target is no longer supported. Use `withGlobal(target)` instead."
14984
15068
  );
14985
15069
  }
14986
- let i, l;
15070
+ let i2, l;
14987
15071
  const clock = createClock(config2.now, config2.loopLimit);
14988
15072
  clock.shouldClearNativeTimers = config2.shouldClearNativeTimers;
14989
15073
  clock.uninstall = function() {
@@ -15031,8 +15115,8 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
15031
15115
  if (_global === globalObject && timersModule) {
15032
15116
  clock.timersModuleMethods = [];
15033
15117
  }
15034
- for (i = 0, l = clock.methods.length; i < l; i++) {
15035
- const nameOfMethodToReplace = clock.methods[i];
15118
+ for (i2 = 0, l = clock.methods.length; i2 < l; i2++) {
15119
+ const nameOfMethodToReplace = clock.methods[i2];
15036
15120
  if (nameOfMethodToReplace === "hrtime") {
15037
15121
  if (_global.process && typeof _global.process.hrtime === "function") {
15038
15122
  hijackMethod(_global.process, nameOfMethodToReplace, clock);
@@ -15068,6 +15152,7 @@ defaultImplementation.createClock;
15068
15152
  defaultImplementation.install;
15069
15153
  var withGlobal_1 = withGlobal;
15070
15154
  var FakeTimers = class {
15155
+ _global;
15071
15156
  _clock;
15072
15157
  _fakingTime;
15073
15158
  _fakingDate;
@@ -15082,6 +15167,7 @@ var FakeTimers = class {
15082
15167
  this._fakingDate = false;
15083
15168
  this._fakingTime = false;
15084
15169
  this._fakeTimers = withGlobal_1(global3);
15170
+ this._global = global3;
15085
15171
  }
15086
15172
  clearAllTimers() {
15087
15173
  if (this._fakingTime)
@@ -15108,7 +15194,7 @@ var FakeTimers = class {
15108
15194
  }
15109
15195
  advanceTimersToNextTimer(steps = 1) {
15110
15196
  if (this._checkFakeTimers()) {
15111
- for (let i = steps; i > 0; i--) {
15197
+ for (let i2 = steps; i2 > 0; i2--) {
15112
15198
  this._clock.next();
15113
15199
  this._clock.tick(0);
15114
15200
  if (this._clock.countTimers() === 0)
@@ -15118,7 +15204,7 @@ var FakeTimers = class {
15118
15204
  }
15119
15205
  async advanceTimersToNextTimerAsync(steps = 1) {
15120
15206
  if (this._checkFakeTimers()) {
15121
- for (let i = steps; i > 0; i--) {
15207
+ for (let i2 = steps; i2 > 0; i2--) {
15122
15208
  await this._clock.nextAsync();
15123
15209
  this._clock.tick(0);
15124
15210
  if (this._clock.countTimers() === 0)
@@ -15162,11 +15248,11 @@ var FakeTimers = class {
15162
15248
  throw new Error("process.nextTick cannot be mocked inside child_process");
15163
15249
  const existingFakedMethods = (((_c = this._userConfig) == null ? void 0 : _c.toFake) || toFake).filter((method) => {
15164
15250
  switch (method) {
15165
- case "hrtime":
15166
- case "nextTick":
15167
- return typeof process !== "undefined" && method in process && process[method];
15251
+ case "setImmediate":
15252
+ case "clearImmediate":
15253
+ return method in this._global && this._global[method];
15168
15254
  default:
15169
- return method in globalThis && globalThis[method];
15255
+ return true;
15170
15256
  }
15171
15257
  });
15172
15258
  this._clock = this._fakeTimers.install({
@@ -15478,6 +15564,7 @@ function createVitest() {
15478
15564
  async importMock(path2) {
15479
15565
  return _mocker.importMock(path2, getImporter());
15480
15566
  },
15567
+ // this is typed in the interface so it's not necessary to type it here
15481
15568
  mocked(item, _options = {}) {
15482
15569
  return item;
15483
15570
  },
@@ -15555,7 +15642,7 @@ function createVitest() {
15555
15642
  var vitest = createVitest();
15556
15643
  var vi = vitest;
15557
15644
 
15558
- // ../../node_modules/vitest/dist/vendor/index.vs_-lzuF.js
15645
+ // ../../node_modules/vitest/dist/vendor/index.JZMafwT-.js
15559
15646
  init_cjs_shims();
15560
15647
  function getRunningMode() {
15561
15648
  return process.env.VITEST_MODE === "WATCH" ? "watch" : "run";
@@ -15641,6 +15728,7 @@ var VitestIndex = /* @__PURE__ */ Object.freeze({
15641
15728
  isWatchMode,
15642
15729
  it,
15643
15730
  onTestFailed,
15731
+ onTestFinished,
15644
15732
  runOnce,
15645
15733
  should,
15646
15734
  suite,