@shopify/create-app 3.60.0 → 3.61.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.
Files changed (52) hide show
  1. package/dist/{chunk-2EVDXDJS.js → chunk-5NBS5LAW.js} +1 -1
  2. package/dist/{chunk-P6YJ2CQU.js → chunk-7F4FS2WD.js} +7 -7
  3. package/dist/{chunk-P3DMHVBI.js → chunk-GQNJWQKC.js} +22 -17
  4. package/dist/{chunk-P6N3DVYZ.js → chunk-H3UBEY47.js} +3 -3
  5. package/dist/{chunk-ZDU6ZNVH.js → chunk-H4N7DG5X.js} +23 -19
  6. package/dist/{chunk-TMGCRPEZ.js → chunk-HTYJDJRZ.js} +685 -215
  7. package/dist/{chunk-3L6KY7Q3.js → chunk-I3IYXB26.js} +23 -6
  8. package/dist/{chunk-OYLUVGUB.js → chunk-J3QAMMY2.js} +1 -1
  9. package/dist/{chunk-ZPB26OWQ.js → chunk-K5EEGEVV.js} +34 -14
  10. package/dist/{chunk-BMMDEPWI.js → chunk-LLFZPH5K.js} +12 -9
  11. package/dist/{chunk-GKVC3752.js → chunk-LR725A3N.js} +3 -3
  12. package/dist/{chunk-P4TVG45N.js → chunk-LUP5VDI4.js} +10 -3
  13. package/dist/{chunk-L5LPMIFP.js → chunk-PGYGWMK7.js} +5 -5
  14. package/dist/{chunk-2YPXES4K.js → chunk-PKFDUXG6.js} +1 -1
  15. package/dist/{chunk-JOQ4LR3M.js → chunk-R5KQZMEG.js} +1 -1
  16. package/dist/{chunk-YLEF4RUH.js → chunk-RAFFEFML.js} +4 -0
  17. package/dist/{chunk-3JNB3A7C.js → chunk-U4YACXEW.js} +567 -357
  18. package/dist/{chunk-Q737A7ZQ.js → chunk-X2I3FAVD.js} +3 -3
  19. package/dist/{chunk-JA2XDFAC.js → chunk-XKDB3ST7.js} +3603 -4080
  20. package/dist/{chunk-ZWN4YW5O.js → chunk-YI3MHBSD.js} +1 -1
  21. package/dist/commands/init.js +19 -19
  22. package/dist/commands/init.js.map +1 -1
  23. package/dist/commands/init.test.js +20 -20
  24. package/dist/{constants-K3R4N3N3.js → constants-NNLQHFRJ.js} +3 -1
  25. package/dist/{custom-oclif-loader-3GZ6YYAB.js → custom-oclif-loader-KLTAWG4B.js} +7 -6
  26. package/dist/{del-A5YM6R3Y.js → del-ICEHOC6W.js} +2 -2
  27. package/dist/{devtools-KQM4GF6J.js → devtools-6HZ2IPFU.js} +154 -252
  28. package/dist/{error-handler-SPIUKOES.js → error-handler-ND7WBMC3.js} +13 -13
  29. package/dist/hooks/postrun.js +12 -12
  30. package/dist/hooks/prerun.js +8 -8
  31. package/dist/index.js +4 -4
  32. package/dist/{lib-TQDGEQFC.js → lib-76RCE6WZ.js} +3 -3
  33. package/dist/{local-7KWUTHJN.js → local-3LWDOA7J.js} +5 -5
  34. package/dist/{magic-string.es-6WMSFIAX.js → magic-string.es-6DE547FE.js} +79 -18
  35. package/dist/{multipart-parser-O2BQODS2.js → multipart-parser-ENLY4BKU.js} +1 -1
  36. package/dist/{node-package-manager-MI2KGR6B.js → node-package-manager-TFY2ROCP.js} +6 -6
  37. package/dist/{out-JZ52TJE3.js → out-M5MRQZP5.js} +1 -1
  38. package/dist/prompts/init.js +6 -6
  39. package/dist/prompts/init.test.js +7 -7
  40. package/dist/services/init.d.ts +3 -0
  41. package/dist/services/init.js +13 -13
  42. package/dist/services/init.js.map +1 -1
  43. package/dist/services/init.test.js +1 -1
  44. package/dist/{system-KQGQETIF.js → system-FTT76GKS.js} +5 -5
  45. package/dist/tsconfig.tsbuildinfo +1 -1
  46. package/dist/{ui-HO5KGT27.js → ui-MUGCNPLG.js} +5 -5
  47. package/dist/utils/template/cleanup.js +6 -6
  48. package/dist/utils/template/cleanup.test.js +7 -7
  49. package/dist/utils/template/npm.js +8 -8
  50. package/dist/utils/template/npm.test.js +9 -9
  51. package/oclif.manifest.json +1 -1
  52. package/package.json +1 -1
@@ -145,9 +145,9 @@ var require_ansi_styles = __commonJS({
145
145
  }
146
146
  });
147
147
 
148
- // ../../node_modules/.pnpm/pretty-format@29.6.2/node_modules/pretty-format/build/collections.js
148
+ // ../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/collections.js
149
149
  var require_collections = __commonJS({
150
- "../../node_modules/.pnpm/pretty-format@29.6.2/node_modules/pretty-format/build/collections.js"(exports) {
150
+ "../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/collections.js"(exports) {
151
151
  "use strict";
152
152
  init_cjs_shims();
153
153
  Object.defineProperty(exports, "__esModule", {
@@ -281,9 +281,9 @@ var require_collections = __commonJS({
281
281
  }
282
282
  });
283
283
 
284
- // ../../node_modules/.pnpm/pretty-format@29.6.2/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js
284
+ // ../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js
285
285
  var require_AsymmetricMatcher = __commonJS({
286
- "../../node_modules/.pnpm/pretty-format@29.6.2/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(exports) {
286
+ "../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(exports) {
287
287
  "use strict";
288
288
  init_cjs_shims();
289
289
  Object.defineProperty(exports, "__esModule", {
@@ -347,9 +347,9 @@ var require_AsymmetricMatcher = __commonJS({
347
347
  }
348
348
  });
349
349
 
350
- // ../../node_modules/.pnpm/pretty-format@29.6.2/node_modules/pretty-format/build/plugins/DOMCollection.js
350
+ // ../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/DOMCollection.js
351
351
  var require_DOMCollection = __commonJS({
352
- "../../node_modules/.pnpm/pretty-format@29.6.2/node_modules/pretty-format/build/plugins/DOMCollection.js"(exports) {
352
+ "../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/DOMCollection.js"(exports) {
353
353
  "use strict";
354
354
  init_cjs_shims();
355
355
  Object.defineProperty(exports, "__esModule", {
@@ -400,9 +400,9 @@ var require_DOMCollection = __commonJS({
400
400
  }
401
401
  });
402
402
 
403
- // ../../node_modules/.pnpm/pretty-format@29.6.2/node_modules/pretty-format/build/plugins/lib/escapeHTML.js
403
+ // ../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/lib/escapeHTML.js
404
404
  var require_escapeHTML = __commonJS({
405
- "../../node_modules/.pnpm/pretty-format@29.6.2/node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(exports) {
405
+ "../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(exports) {
406
406
  "use strict";
407
407
  init_cjs_shims();
408
408
  Object.defineProperty(exports, "__esModule", {
@@ -415,9 +415,9 @@ var require_escapeHTML = __commonJS({
415
415
  }
416
416
  });
417
417
 
418
- // ../../node_modules/.pnpm/pretty-format@29.6.2/node_modules/pretty-format/build/plugins/lib/markup.js
418
+ // ../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/lib/markup.js
419
419
  var require_markup = __commonJS({
420
- "../../node_modules/.pnpm/pretty-format@29.6.2/node_modules/pretty-format/build/plugins/lib/markup.js"(exports) {
420
+ "../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/lib/markup.js"(exports) {
421
421
  "use strict";
422
422
  init_cjs_shims();
423
423
  Object.defineProperty(exports, "__esModule", {
@@ -471,9 +471,9 @@ var require_markup = __commonJS({
471
471
  }
472
472
  });
473
473
 
474
- // ../../node_modules/.pnpm/pretty-format@29.6.2/node_modules/pretty-format/build/plugins/DOMElement.js
474
+ // ../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/DOMElement.js
475
475
  var require_DOMElement = __commonJS({
476
- "../../node_modules/.pnpm/pretty-format@29.6.2/node_modules/pretty-format/build/plugins/DOMElement.js"(exports) {
476
+ "../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/DOMElement.js"(exports) {
477
477
  "use strict";
478
478
  init_cjs_shims();
479
479
  Object.defineProperty(exports, "__esModule", {
@@ -524,7 +524,7 @@ var require_DOMElement = __commonJS({
524
524
  return (0, _markup.printElement)(
525
525
  type2,
526
526
  (0, _markup.printProps)(
527
- nodeIsFragment(node) ? [] : Array.from(node.attributes).map((attr) => attr.name).sort(),
527
+ nodeIsFragment(node) ? [] : Array.from(node.attributes, (attr) => attr.name).sort(),
528
528
  nodeIsFragment(node) ? {} : Array.from(node.attributes).reduce((props, attribute) => {
529
529
  props[attribute.name] = attribute.value;
530
530
  return props;
@@ -557,9 +557,9 @@ var require_DOMElement = __commonJS({
557
557
  }
558
558
  });
559
559
 
560
- // ../../node_modules/.pnpm/pretty-format@29.6.2/node_modules/pretty-format/build/plugins/Immutable.js
560
+ // ../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/Immutable.js
561
561
  var require_Immutable = __commonJS({
562
- "../../node_modules/.pnpm/pretty-format@29.6.2/node_modules/pretty-format/build/plugins/Immutable.js"(exports) {
562
+ "../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/Immutable.js"(exports) {
563
563
  "use strict";
564
564
  init_cjs_shims();
565
565
  Object.defineProperty(exports, "__esModule", {
@@ -715,27 +715,27 @@ var require_Immutable = __commonJS({
715
715
  }
716
716
  });
717
717
 
718
- // ../../node_modules/.pnpm/react-is@18.2.0/node_modules/react-is/cjs/react-is.production.min.js
718
+ // ../../node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/cjs/react-is.production.min.js
719
719
  var require_react_is_production_min = __commonJS({
720
- "../../node_modules/.pnpm/react-is@18.2.0/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
720
+ "../../node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
721
721
  "use strict";
722
722
  init_cjs_shims();
723
723
  var b2 = Symbol.for("react.element");
724
- var c = Symbol.for("react.portal");
724
+ var c2 = Symbol.for("react.portal");
725
725
  var d = Symbol.for("react.fragment");
726
726
  var e = Symbol.for("react.strict_mode");
727
727
  var f2 = Symbol.for("react.profiler");
728
728
  var g2 = Symbol.for("react.provider");
729
729
  var h = Symbol.for("react.context");
730
- var k = Symbol.for("react.server_context");
731
- var l2 = Symbol.for("react.forward_ref");
732
- var m2 = Symbol.for("react.suspense");
730
+ var k2 = Symbol.for("react.server_context");
731
+ var l = Symbol.for("react.forward_ref");
732
+ var m = Symbol.for("react.suspense");
733
733
  var n = Symbol.for("react.suspense_list");
734
734
  var p = Symbol.for("react.memo");
735
735
  var q = Symbol.for("react.lazy");
736
736
  var t = Symbol.for("react.offscreen");
737
- var u;
738
- u = Symbol.for("react.module.reference");
737
+ var u2;
738
+ u2 = Symbol.for("react.module.reference");
739
739
  function v(a) {
740
740
  if ("object" === typeof a && null !== a) {
741
741
  var r = a.$$typeof;
@@ -745,14 +745,14 @@ var require_react_is_production_min = __commonJS({
745
745
  case d:
746
746
  case f2:
747
747
  case e:
748
- case m2:
748
+ case m:
749
749
  case n:
750
750
  return a;
751
751
  default:
752
752
  switch (a = a && a.$$typeof, a) {
753
- case k:
753
+ case k2:
754
754
  case h:
755
- case l2:
755
+ case l:
756
756
  case q:
757
757
  case p:
758
758
  case g2:
@@ -761,7 +761,7 @@ var require_react_is_production_min = __commonJS({
761
761
  return r;
762
762
  }
763
763
  }
764
- case c:
764
+ case c2:
765
765
  return r;
766
766
  }
767
767
  }
@@ -769,14 +769,14 @@ var require_react_is_production_min = __commonJS({
769
769
  exports.ContextConsumer = h;
770
770
  exports.ContextProvider = g2;
771
771
  exports.Element = b2;
772
- exports.ForwardRef = l2;
772
+ exports.ForwardRef = l;
773
773
  exports.Fragment = d;
774
774
  exports.Lazy = q;
775
775
  exports.Memo = p;
776
- exports.Portal = c;
776
+ exports.Portal = c2;
777
777
  exports.Profiler = f2;
778
778
  exports.StrictMode = e;
779
- exports.Suspense = m2;
779
+ exports.Suspense = m;
780
780
  exports.SuspenseList = n;
781
781
  exports.isAsyncMode = function() {
782
782
  return false;
@@ -794,7 +794,7 @@ var require_react_is_production_min = __commonJS({
794
794
  return "object" === typeof a && null !== a && a.$$typeof === b2;
795
795
  };
796
796
  exports.isForwardRef = function(a) {
797
- return v(a) === l2;
797
+ return v(a) === l;
798
798
  };
799
799
  exports.isFragment = function(a) {
800
800
  return v(a) === d;
@@ -806,7 +806,7 @@ var require_react_is_production_min = __commonJS({
806
806
  return v(a) === p;
807
807
  };
808
808
  exports.isPortal = function(a) {
809
- return v(a) === c;
809
+ return v(a) === c2;
810
810
  };
811
811
  exports.isProfiler = function(a) {
812
812
  return v(a) === f2;
@@ -815,21 +815,21 @@ var require_react_is_production_min = __commonJS({
815
815
  return v(a) === e;
816
816
  };
817
817
  exports.isSuspense = function(a) {
818
- return v(a) === m2;
818
+ return v(a) === m;
819
819
  };
820
820
  exports.isSuspenseList = function(a) {
821
821
  return v(a) === n;
822
822
  };
823
823
  exports.isValidElementType = function(a) {
824
- return "string" === typeof a || "function" === typeof a || a === d || a === f2 || a === e || a === m2 || a === n || a === t || "object" === typeof a && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g2 || a.$$typeof === h || a.$$typeof === l2 || a.$$typeof === u || void 0 !== a.getModuleId) ? true : false;
824
+ return "string" === typeof a || "function" === typeof a || a === d || a === f2 || a === e || a === m || a === n || 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;
825
825
  };
826
826
  exports.typeOf = v;
827
827
  }
828
828
  });
829
829
 
830
- // ../../node_modules/.pnpm/react-is@18.2.0/node_modules/react-is/cjs/react-is.development.js
830
+ // ../../node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/cjs/react-is.development.js
831
831
  var require_react_is_development = __commonJS({
832
- "../../node_modules/.pnpm/react-is@18.2.0/node_modules/react-is/cjs/react-is.development.js"(exports) {
832
+ "../../node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/cjs/react-is.development.js"(exports) {
833
833
  "use strict";
834
834
  init_cjs_shims();
835
835
  if (process.env.NODE_ENV !== "production") {
@@ -1010,9 +1010,9 @@ var require_react_is_development = __commonJS({
1010
1010
  }
1011
1011
  });
1012
1012
 
1013
- // ../../node_modules/.pnpm/react-is@18.2.0/node_modules/react-is/index.js
1013
+ // ../../node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/index.js
1014
1014
  var require_react_is = __commonJS({
1015
- "../../node_modules/.pnpm/react-is@18.2.0/node_modules/react-is/index.js"(exports, module) {
1015
+ "../../node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/index.js"(exports, module) {
1016
1016
  "use strict";
1017
1017
  init_cjs_shims();
1018
1018
  if (process.env.NODE_ENV === "production") {
@@ -1023,9 +1023,9 @@ var require_react_is = __commonJS({
1023
1023
  }
1024
1024
  });
1025
1025
 
1026
- // ../../node_modules/.pnpm/pretty-format@29.6.2/node_modules/pretty-format/build/plugins/ReactElement.js
1026
+ // ../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/ReactElement.js
1027
1027
  var require_ReactElement = __commonJS({
1028
- "../../node_modules/.pnpm/pretty-format@29.6.2/node_modules/pretty-format/build/plugins/ReactElement.js"(exports) {
1028
+ "../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/ReactElement.js"(exports) {
1029
1029
  "use strict";
1030
1030
  init_cjs_shims();
1031
1031
  Object.defineProperty(exports, "__esModule", {
@@ -1155,9 +1155,9 @@ var require_ReactElement = __commonJS({
1155
1155
  }
1156
1156
  });
1157
1157
 
1158
- // ../../node_modules/.pnpm/pretty-format@29.6.2/node_modules/pretty-format/build/plugins/ReactTestComponent.js
1158
+ // ../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/ReactTestComponent.js
1159
1159
  var require_ReactTestComponent = __commonJS({
1160
- "../../node_modules/.pnpm/pretty-format@29.6.2/node_modules/pretty-format/build/plugins/ReactTestComponent.js"(exports) {
1160
+ "../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/ReactTestComponent.js"(exports) {
1161
1161
  "use strict";
1162
1162
  init_cjs_shims();
1163
1163
  Object.defineProperty(exports, "__esModule", {
@@ -1205,9 +1205,9 @@ var require_ReactTestComponent = __commonJS({
1205
1205
  }
1206
1206
  });
1207
1207
 
1208
- // ../../node_modules/.pnpm/pretty-format@29.6.2/node_modules/pretty-format/build/index.js
1208
+ // ../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/index.js
1209
1209
  var require_build = __commonJS({
1210
- "../../node_modules/.pnpm/pretty-format@29.6.2/node_modules/pretty-format/build/index.js"(exports) {
1210
+ "../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/index.js"(exports) {
1211
1211
  "use strict";
1212
1212
  init_cjs_shims();
1213
1213
  Object.defineProperty(exports, "__esModule", {
@@ -1577,9 +1577,9 @@ ${indentationNext}`);
1577
1577
  }
1578
1578
  });
1579
1579
 
1580
- // ../../node_modules/.pnpm/loupe@2.3.6/node_modules/loupe/loupe.js
1580
+ // ../../node_modules/.pnpm/loupe@2.3.7/node_modules/loupe/loupe.js
1581
1581
  var require_loupe = __commonJS({
1582
- "../../node_modules/.pnpm/loupe@2.3.6/node_modules/loupe/loupe.js"(exports, module) {
1582
+ "../../node_modules/.pnpm/loupe@2.3.7/node_modules/loupe/loupe.js"(exports, module) {
1583
1583
  init_cjs_shims();
1584
1584
  (function(global3, factory) {
1585
1585
  typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global3 = typeof globalThis !== "undefined" ? globalThis : global3 || self, factory(global3.loupe = {}));
@@ -1809,13 +1809,18 @@ var require_loupe = __commonJS({
1809
1809
  }
1810
1810
  var toString = Function.prototype.toString;
1811
1811
  var functionNameMatch = /\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;
1812
+ var maxFunctionSourceLength = 512;
1812
1813
  function getFuncName(aFunc) {
1813
1814
  if (typeof aFunc !== "function") {
1814
1815
  return null;
1815
1816
  }
1816
1817
  var name = "";
1817
1818
  if (typeof Function.prototype.name === "undefined" && typeof aFunc.name === "undefined") {
1818
- var match = toString.call(aFunc).match(functionNameMatch);
1819
+ var functionSource = toString.call(aFunc);
1820
+ if (functionSource.indexOf("(") > maxFunctionSourceLength) {
1821
+ return name;
1822
+ }
1823
+ var match = functionSource.match(functionNameMatch);
1819
1824
  if (match) {
1820
1825
  name = match[1];
1821
1826
  }
@@ -2256,9 +2261,9 @@ var require_loupe = __commonJS({
2256
2261
  }
2257
2262
  });
2258
2263
 
2259
- // ../../node_modules/.pnpm/diff-sequences@29.4.3/node_modules/diff-sequences/build/index.js
2264
+ // ../../node_modules/.pnpm/diff-sequences@29.6.3/node_modules/diff-sequences/build/index.js
2260
2265
  var require_build2 = __commonJS({
2261
- "../../node_modules/.pnpm/diff-sequences@29.4.3/node_modules/diff-sequences/build/index.js"(exports) {
2266
+ "../../node_modules/.pnpm/diff-sequences@29.6.3/node_modules/diff-sequences/build/index.js"(exports) {
2262
2267
  "use strict";
2263
2268
  init_cjs_shims();
2264
2269
  Object.defineProperty(exports, "__esModule", {
@@ -2891,9 +2896,9 @@ var require_pathval = __commonJS({
2891
2896
  }
2892
2897
  });
2893
2898
 
2894
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js
2899
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/flag.js
2895
2900
  var require_flag = __commonJS({
2896
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js"(exports, module) {
2901
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/flag.js"(exports, module) {
2897
2902
  init_cjs_shims();
2898
2903
  module.exports = function flag(obj, key, value) {
2899
2904
  var flags = obj.__flags || (obj.__flags = /* @__PURE__ */ Object.create(null));
@@ -2906,9 +2911,9 @@ var require_flag = __commonJS({
2906
2911
  }
2907
2912
  });
2908
2913
 
2909
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/test.js
2914
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/test.js
2910
2915
  var require_test = __commonJS({
2911
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/test.js"(exports, module) {
2916
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/test.js"(exports, module) {
2912
2917
  init_cjs_shims();
2913
2918
  var flag = require_flag();
2914
2919
  module.exports = function test3(obj, args) {
@@ -3038,9 +3043,9 @@ var require_type_detect = __commonJS({
3038
3043
  }
3039
3044
  });
3040
3045
 
3041
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/expectTypes.js
3046
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/expectTypes.js
3042
3047
  var require_expectTypes = __commonJS({
3043
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/expectTypes.js"(exports, module) {
3048
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/expectTypes.js"(exports, module) {
3044
3049
  init_cjs_shims();
3045
3050
  var AssertionError2 = require_assertion_error();
3046
3051
  var flag = require_flag();
@@ -3073,9 +3078,9 @@ var require_expectTypes = __commonJS({
3073
3078
  }
3074
3079
  });
3075
3080
 
3076
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getActual.js
3081
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/getActual.js
3077
3082
  var require_getActual = __commonJS({
3078
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getActual.js"(exports, module) {
3083
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/getActual.js"(exports, module) {
3079
3084
  init_cjs_shims();
3080
3085
  module.exports = function getActual(obj, args) {
3081
3086
  return args.length > 4 ? args[4] : obj._obj;
@@ -3083,20 +3088,25 @@ var require_getActual = __commonJS({
3083
3088
  }
3084
3089
  });
3085
3090
 
3086
- // ../../node_modules/.pnpm/get-func-name@2.0.0/node_modules/get-func-name/index.js
3091
+ // ../../node_modules/.pnpm/get-func-name@2.0.2/node_modules/get-func-name/index.js
3087
3092
  var require_get_func_name = __commonJS({
3088
- "../../node_modules/.pnpm/get-func-name@2.0.0/node_modules/get-func-name/index.js"(exports, module) {
3093
+ "../../node_modules/.pnpm/get-func-name@2.0.2/node_modules/get-func-name/index.js"(exports, module) {
3089
3094
  "use strict";
3090
3095
  init_cjs_shims();
3091
3096
  var toString = Function.prototype.toString;
3092
3097
  var functionNameMatch = /\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;
3098
+ var maxFunctionSourceLength = 512;
3093
3099
  function getFuncName(aFunc) {
3094
3100
  if (typeof aFunc !== "function") {
3095
3101
  return null;
3096
3102
  }
3097
3103
  var name = "";
3098
3104
  if (typeof Function.prototype.name === "undefined" && typeof aFunc.name === "undefined") {
3099
- var match = toString.call(aFunc).match(functionNameMatch);
3105
+ var functionSource = toString.call(aFunc);
3106
+ if (functionSource.indexOf("(") > maxFunctionSourceLength) {
3107
+ return name;
3108
+ }
3109
+ var match = functionSource.match(functionNameMatch);
3100
3110
  if (match) {
3101
3111
  name = match[1];
3102
3112
  }
@@ -3109,9 +3119,9 @@ var require_get_func_name = __commonJS({
3109
3119
  }
3110
3120
  });
3111
3121
 
3112
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js
3122
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/config.js
3113
3123
  var require_config = __commonJS({
3114
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js"(exports, module) {
3124
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/config.js"(exports, module) {
3115
3125
  init_cjs_shims();
3116
3126
  module.exports = {
3117
3127
  /**
@@ -3195,14 +3205,37 @@ var require_config = __commonJS({
3195
3205
  * @param {Array}
3196
3206
  * @api public
3197
3207
  */
3198
- proxyExcludedKeys: ["then", "catch", "inspect", "toJSON"]
3208
+ proxyExcludedKeys: ["then", "catch", "inspect", "toJSON"],
3209
+ /**
3210
+ * ### config.deepEqual
3211
+ *
3212
+ * User configurable property, defines which a custom function to use for deepEqual
3213
+ * comparisons.
3214
+ * By default, the function used is the one from the `deep-eql` package without custom comparator.
3215
+ *
3216
+ * // use a custom comparator
3217
+ * chai.config.deepEqual = (expected, actual) => {
3218
+ * return chai.util.eql(expected, actual, {
3219
+ * comparator: (expected, actual) => {
3220
+ * // for non number comparison, use the default behavior
3221
+ * if(typeof expected !== 'number') return null;
3222
+ * // allow a difference of 10 between compared numbers
3223
+ * return typeof actual === 'number' && Math.abs(actual - expected) < 10
3224
+ * }
3225
+ * })
3226
+ * };
3227
+ *
3228
+ * @param {Function}
3229
+ * @api public
3230
+ */
3231
+ deepEqual: null
3199
3232
  };
3200
3233
  }
3201
3234
  });
3202
3235
 
3203
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/inspect.js
3236
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/inspect.js
3204
3237
  var require_inspect = __commonJS({
3205
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/inspect.js"(exports, module) {
3238
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/inspect.js"(exports, module) {
3206
3239
  init_cjs_shims();
3207
3240
  var getName = require_get_func_name();
3208
3241
  var loupe = require_loupe();
@@ -3220,9 +3253,9 @@ var require_inspect = __commonJS({
3220
3253
  }
3221
3254
  });
3222
3255
 
3223
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/objDisplay.js
3256
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/objDisplay.js
3224
3257
  var require_objDisplay = __commonJS({
3225
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/objDisplay.js"(exports, module) {
3258
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/objDisplay.js"(exports, module) {
3226
3259
  init_cjs_shims();
3227
3260
  var inspect2 = require_inspect();
3228
3261
  var config2 = require_config();
@@ -3246,9 +3279,9 @@ var require_objDisplay = __commonJS({
3246
3279
  }
3247
3280
  });
3248
3281
 
3249
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getMessage.js
3282
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/getMessage.js
3250
3283
  var require_getMessage = __commonJS({
3251
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getMessage.js"(exports, module) {
3284
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/getMessage.js"(exports, module) {
3252
3285
  init_cjs_shims();
3253
3286
  var flag = require_flag();
3254
3287
  var getActual = require_getActual();
@@ -3270,9 +3303,9 @@ var require_getMessage = __commonJS({
3270
3303
  }
3271
3304
  });
3272
3305
 
3273
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js
3306
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/transferFlags.js
3274
3307
  var require_transferFlags = __commonJS({
3275
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js"(exports, module) {
3308
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/transferFlags.js"(exports, module) {
3276
3309
  init_cjs_shims();
3277
3310
  module.exports = function transferFlags(assertion, object2, includeAll) {
3278
3311
  var flags = assertion.__flags || (assertion.__flags = /* @__PURE__ */ Object.create(null));
@@ -3582,9 +3615,9 @@ var require_deep_eql = __commonJS({
3582
3615
  }
3583
3616
  });
3584
3617
 
3585
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isProxyEnabled.js
3618
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/isProxyEnabled.js
3586
3619
  var require_isProxyEnabled = __commonJS({
3587
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isProxyEnabled.js"(exports, module) {
3620
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/isProxyEnabled.js"(exports, module) {
3588
3621
  init_cjs_shims();
3589
3622
  var config2 = require_config();
3590
3623
  module.exports = function isProxyEnabled() {
@@ -3593,9 +3626,9 @@ var require_isProxyEnabled = __commonJS({
3593
3626
  }
3594
3627
  });
3595
3628
 
3596
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addProperty.js
3629
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/addProperty.js
3597
3630
  var require_addProperty = __commonJS({
3598
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addProperty.js"(exports, module) {
3631
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/addProperty.js"(exports, module) {
3599
3632
  init_cjs_shims();
3600
3633
  var chai3 = require_chai();
3601
3634
  var flag = require_flag();
@@ -3626,9 +3659,9 @@ var require_addProperty = __commonJS({
3626
3659
  }
3627
3660
  });
3628
3661
 
3629
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addLengthGuard.js
3662
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/addLengthGuard.js
3630
3663
  var require_addLengthGuard = __commonJS({
3631
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addLengthGuard.js"(exports, module) {
3664
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/addLengthGuard.js"(exports, module) {
3632
3665
  init_cjs_shims();
3633
3666
  var fnLengthDesc = Object.getOwnPropertyDescriptor(function() {
3634
3667
  }, "length");
@@ -3648,9 +3681,9 @@ var require_addLengthGuard = __commonJS({
3648
3681
  }
3649
3682
  });
3650
3683
 
3651
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getProperties.js
3684
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/getProperties.js
3652
3685
  var require_getProperties = __commonJS({
3653
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getProperties.js"(exports, module) {
3686
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/getProperties.js"(exports, module) {
3654
3687
  init_cjs_shims();
3655
3688
  module.exports = function getProperties(object2) {
3656
3689
  var result = Object.getOwnPropertyNames(object2);
@@ -3669,9 +3702,9 @@ var require_getProperties = __commonJS({
3669
3702
  }
3670
3703
  });
3671
3704
 
3672
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/proxify.js
3705
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/proxify.js
3673
3706
  var require_proxify = __commonJS({
3674
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/proxify.js"(exports, module) {
3707
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/proxify.js"(exports, module) {
3675
3708
  init_cjs_shims();
3676
3709
  var config2 = require_config();
3677
3710
  var flag = require_flag();
@@ -3746,9 +3779,9 @@ var require_proxify = __commonJS({
3746
3779
  }
3747
3780
  });
3748
3781
 
3749
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addMethod.js
3782
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/addMethod.js
3750
3783
  var require_addMethod = __commonJS({
3751
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addMethod.js"(exports, module) {
3784
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/addMethod.js"(exports, module) {
3752
3785
  init_cjs_shims();
3753
3786
  var addLengthGuard = require_addLengthGuard();
3754
3787
  var chai3 = require_chai();
@@ -3773,9 +3806,9 @@ var require_addMethod = __commonJS({
3773
3806
  }
3774
3807
  });
3775
3808
 
3776
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteProperty.js
3809
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/overwriteProperty.js
3777
3810
  var require_overwriteProperty = __commonJS({
3778
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteProperty.js"(exports, module) {
3811
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/overwriteProperty.js"(exports, module) {
3779
3812
  init_cjs_shims();
3780
3813
  var chai3 = require_chai();
3781
3814
  var flag = require_flag();
@@ -3812,9 +3845,9 @@ var require_overwriteProperty = __commonJS({
3812
3845
  }
3813
3846
  });
3814
3847
 
3815
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteMethod.js
3848
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/overwriteMethod.js
3816
3849
  var require_overwriteMethod = __commonJS({
3817
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteMethod.js"(exports, module) {
3850
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/overwriteMethod.js"(exports, module) {
3818
3851
  init_cjs_shims();
3819
3852
  var addLengthGuard = require_addLengthGuard();
3820
3853
  var chai3 = require_chai();
@@ -3848,9 +3881,9 @@ var require_overwriteMethod = __commonJS({
3848
3881
  }
3849
3882
  });
3850
3883
 
3851
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addChainableMethod.js
3884
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/addChainableMethod.js
3852
3885
  var require_addChainableMethod = __commonJS({
3853
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addChainableMethod.js"(exports, module) {
3886
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/addChainableMethod.js"(exports, module) {
3854
3887
  init_cjs_shims();
3855
3888
  var addLengthGuard = require_addLengthGuard();
3856
3889
  var chai3 = require_chai();
@@ -3925,9 +3958,9 @@ var require_addChainableMethod = __commonJS({
3925
3958
  }
3926
3959
  });
3927
3960
 
3928
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js
3961
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js
3929
3962
  var require_overwriteChainableMethod = __commonJS({
3930
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js"(exports, module) {
3963
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js"(exports, module) {
3931
3964
  init_cjs_shims();
3932
3965
  var chai3 = require_chai();
3933
3966
  var transferFlags = require_transferFlags();
@@ -3957,9 +3990,9 @@ var require_overwriteChainableMethod = __commonJS({
3957
3990
  }
3958
3991
  });
3959
3992
 
3960
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/compareByInspect.js
3993
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/compareByInspect.js
3961
3994
  var require_compareByInspect = __commonJS({
3962
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/compareByInspect.js"(exports, module) {
3995
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/compareByInspect.js"(exports, module) {
3963
3996
  init_cjs_shims();
3964
3997
  var inspect2 = require_inspect();
3965
3998
  module.exports = function compareByInspect(a, b2) {
@@ -3968,9 +4001,9 @@ var require_compareByInspect = __commonJS({
3968
4001
  }
3969
4002
  });
3970
4003
 
3971
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js
4004
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js
3972
4005
  var require_getOwnEnumerablePropertySymbols = __commonJS({
3973
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js"(exports, module) {
4006
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js"(exports, module) {
3974
4007
  init_cjs_shims();
3975
4008
  module.exports = function getOwnEnumerablePropertySymbols(obj) {
3976
4009
  if (typeof Object.getOwnPropertySymbols !== "function")
@@ -3982,9 +4015,9 @@ var require_getOwnEnumerablePropertySymbols = __commonJS({
3982
4015
  }
3983
4016
  });
3984
4017
 
3985
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js
4018
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js
3986
4019
  var require_getOwnEnumerableProperties = __commonJS({
3987
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js"(exports, module) {
4020
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js"(exports, module) {
3988
4021
  init_cjs_shims();
3989
4022
  var getOwnEnumerablePropertySymbols = require_getOwnEnumerablePropertySymbols();
3990
4023
  module.exports = function getOwnEnumerableProperties(obj) {
@@ -3993,11 +4026,12 @@ var require_getOwnEnumerableProperties = __commonJS({
3993
4026
  }
3994
4027
  });
3995
4028
 
3996
- // ../../node_modules/.pnpm/check-error@1.0.2/node_modules/check-error/index.js
4029
+ // ../../node_modules/.pnpm/check-error@1.0.3/node_modules/check-error/index.js
3997
4030
  var require_check_error = __commonJS({
3998
- "../../node_modules/.pnpm/check-error@1.0.2/node_modules/check-error/index.js"(exports, module) {
4031
+ "../../node_modules/.pnpm/check-error@1.0.3/node_modules/check-error/index.js"(exports, module) {
3999
4032
  "use strict";
4000
4033
  init_cjs_shims();
4034
+ var getFunctionName = require_get_func_name();
4001
4035
  function compatibleInstance(thrown, errorLike) {
4002
4036
  return errorLike instanceof Error && thrown === errorLike;
4003
4037
  }
@@ -4018,25 +4052,16 @@ var require_check_error = __commonJS({
4018
4052
  }
4019
4053
  return false;
4020
4054
  }
4021
- var functionNameMatch = /\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\(\/]+)/;
4022
- function getFunctionName(constructorFn) {
4023
- var name = "";
4024
- if (typeof constructorFn.name === "undefined") {
4025
- var match = String(constructorFn).match(functionNameMatch);
4026
- if (match) {
4027
- name = match[1];
4028
- }
4029
- } else {
4030
- name = constructorFn.name;
4031
- }
4032
- return name;
4033
- }
4034
4055
  function getConstructorName(errorLike) {
4035
4056
  var constructorName = errorLike;
4036
4057
  if (errorLike instanceof Error) {
4037
4058
  constructorName = getFunctionName(errorLike.constructor);
4038
4059
  } else if (typeof errorLike === "function") {
4039
- constructorName = getFunctionName(errorLike).trim() || getFunctionName(new errorLike());
4060
+ constructorName = getFunctionName(errorLike);
4061
+ if (constructorName === "") {
4062
+ var newConstructorName = getFunctionName(new errorLike());
4063
+ constructorName = newConstructorName || constructorName;
4064
+ }
4040
4065
  }
4041
4066
  return constructorName;
4042
4067
  }
@@ -4059,9 +4084,9 @@ var require_check_error = __commonJS({
4059
4084
  }
4060
4085
  });
4061
4086
 
4062
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isNaN.js
4087
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/isNaN.js
4063
4088
  var require_isNaN = __commonJS({
4064
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isNaN.js"(exports, module) {
4089
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/isNaN.js"(exports, module) {
4065
4090
  init_cjs_shims();
4066
4091
  function isNaN2(value) {
4067
4092
  return value !== value;
@@ -4070,9 +4095,9 @@ var require_isNaN = __commonJS({
4070
4095
  }
4071
4096
  });
4072
4097
 
4073
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOperator.js
4098
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/getOperator.js
4074
4099
  var require_getOperator = __commonJS({
4075
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOperator.js"(exports, module) {
4100
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/getOperator.js"(exports, module) {
4076
4101
  init_cjs_shims();
4077
4102
  var type2 = require_type_detect();
4078
4103
  var flag = require_flag();
@@ -4107,9 +4132,9 @@ var require_getOperator = __commonJS({
4107
4132
  }
4108
4133
  });
4109
4134
 
4110
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/index.js
4135
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/index.js
4111
4136
  var require_utils = __commonJS({
4112
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/index.js"(exports) {
4137
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/utils/index.js"(exports) {
4113
4138
  init_cjs_shims();
4114
4139
  var pathval = require_pathval();
4115
4140
  exports.test = require_test();
@@ -4143,9 +4168,9 @@ var require_utils = __commonJS({
4143
4168
  }
4144
4169
  });
4145
4170
 
4146
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/assertion.js
4171
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/assertion.js
4147
4172
  var require_assertion = __commonJS({
4148
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/assertion.js"(exports, module) {
4173
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/assertion.js"(exports, module) {
4149
4174
  init_cjs_shims();
4150
4175
  var config2 = require_config();
4151
4176
  module.exports = function(_chai, util2) {
@@ -4156,6 +4181,7 @@ var require_assertion = __commonJS({
4156
4181
  flag(this, "lockSsfi", lockSsfi);
4157
4182
  flag(this, "object", obj);
4158
4183
  flag(this, "message", msg);
4184
+ flag(this, "eql", config2.deepEqual || util2.eql);
4159
4185
  return util2.proxify(this);
4160
4186
  }
4161
4187
  Object.defineProperty(Assertion2, "includeStack", {
@@ -4239,9 +4265,9 @@ var require_assertion = __commonJS({
4239
4265
  }
4240
4266
  });
4241
4267
 
4242
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/core/assertions.js
4268
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/core/assertions.js
4243
4269
  var require_assertions = __commonJS({
4244
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/core/assertions.js"(exports, module) {
4270
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/core/assertions.js"(exports, module) {
4245
4271
  init_cjs_shims();
4246
4272
  module.exports = function(chai3, _) {
4247
4273
  var Assertion2 = chai3.Assertion, AssertionError2 = chai3.AssertionError, flag = _.flag;
@@ -4311,7 +4337,7 @@ var require_assertions = __commonJS({
4311
4337
  function include(val, msg) {
4312
4338
  if (msg)
4313
4339
  flag(this, "message", msg);
4314
- var obj = flag(this, "object"), objType = _.type(obj).toLowerCase(), flagMsg = flag(this, "message"), negate = flag(this, "negate"), ssfi = flag(this, "ssfi"), isDeep = flag(this, "deep"), descriptor = isDeep ? "deep " : "";
4340
+ var obj = flag(this, "object"), objType = _.type(obj).toLowerCase(), flagMsg = flag(this, "message"), negate = flag(this, "negate"), ssfi = flag(this, "ssfi"), isDeep = flag(this, "deep"), descriptor = isDeep ? "deep " : "", isEql = isDeep ? flag(this, "eql") : SameValueZero;
4315
4341
  flagMsg = flagMsg ? flagMsg + ": " : "";
4316
4342
  var included = false;
4317
4343
  switch (objType) {
@@ -4329,7 +4355,6 @@ var require_assertions = __commonJS({
4329
4355
  included = obj.has(val);
4330
4356
  break;
4331
4357
  case "map":
4332
- var isEql = isDeep ? _.eql : SameValueZero;
4333
4358
  obj.forEach(function(item) {
4334
4359
  included = included || isEql(item, val);
4335
4360
  });
@@ -4337,7 +4362,7 @@ var require_assertions = __commonJS({
4337
4362
  case "set":
4338
4363
  if (isDeep) {
4339
4364
  obj.forEach(function(item) {
4340
- included = included || _.eql(item, val);
4365
+ included = included || isEql(item, val);
4341
4366
  });
4342
4367
  } else {
4343
4368
  included = obj.has(val);
@@ -4346,7 +4371,7 @@ var require_assertions = __commonJS({
4346
4371
  case "array":
4347
4372
  if (isDeep) {
4348
4373
  included = obj.some(function(item) {
4349
- return _.eql(item, val);
4374
+ return isEql(item, val);
4350
4375
  });
4351
4376
  } else {
4352
4377
  included = obj.indexOf(val) !== -1;
@@ -4523,8 +4548,9 @@ var require_assertions = __commonJS({
4523
4548
  function assertEql(obj, msg) {
4524
4549
  if (msg)
4525
4550
  flag(this, "message", msg);
4551
+ var eql = flag(this, "eql");
4526
4552
  this.assert(
4527
- _.eql(obj, flag(this, "object")),
4553
+ eql(obj, flag(this, "object")),
4528
4554
  "expected #{this} to deeply equal #{exp}",
4529
4555
  "expected #{this} to not deeply equal #{exp}",
4530
4556
  obj,
@@ -4831,7 +4857,8 @@ var require_assertions = __commonJS({
4831
4857
  ssfi
4832
4858
  );
4833
4859
  }
4834
- var isDeep = flag(this, "deep"), negate = flag(this, "negate"), pathInfo = isNested ? _.getPathInfo(obj, name) : null, value = isNested ? pathInfo.value : obj[name];
4860
+ var isDeep = flag(this, "deep"), negate = flag(this, "negate"), pathInfo = isNested ? _.getPathInfo(obj, name) : null, value = isNested ? pathInfo.value : obj[name], isEql = isDeep ? flag(this, "eql") : (val1, val2) => val1 === val2;
4861
+ ;
4835
4862
  var descriptor = "";
4836
4863
  if (isDeep)
4837
4864
  descriptor += "deep ";
@@ -4856,7 +4883,7 @@ var require_assertions = __commonJS({
4856
4883
  }
4857
4884
  if (arguments.length > 1) {
4858
4885
  this.assert(
4859
- hasProperty && (isDeep ? _.eql(val, value) : val === value),
4886
+ hasProperty && isEql(val, value),
4860
4887
  "expected #{this} to have " + descriptor + _.inspect(name) + " of #{exp}, but got #{act}",
4861
4888
  "expected #{this} to not have " + descriptor + _.inspect(name) + " of #{act}",
4862
4889
  val,
@@ -4881,9 +4908,10 @@ var require_assertions = __commonJS({
4881
4908
  flag(this, "message", msg);
4882
4909
  var obj = flag(this, "object");
4883
4910
  var actualDescriptor = Object.getOwnPropertyDescriptor(Object(obj), name);
4911
+ var eql = flag(this, "eql");
4884
4912
  if (actualDescriptor && descriptor) {
4885
4913
  this.assert(
4886
- _.eql(descriptor, actualDescriptor),
4914
+ eql(descriptor, actualDescriptor),
4887
4915
  "expected the own property descriptor for " + _.inspect(name) + " on #{this} to match " + _.inspect(descriptor) + ", got " + _.inspect(actualDescriptor),
4888
4916
  "expected the own property descriptor for " + _.inspect(name) + " on #{this} to not match " + _.inspect(descriptor),
4889
4917
  descriptor,
@@ -4988,29 +5016,21 @@ var require_assertions = __commonJS({
4988
5016
  if (!keys2.length) {
4989
5017
  throw new AssertionError2(flagMsg + "keys required", void 0, ssfi);
4990
5018
  }
4991
- var len = keys2.length, any = flag(this, "any"), all = flag(this, "all"), expected = keys2;
5019
+ var len = keys2.length, any = flag(this, "any"), all = flag(this, "all"), expected = keys2, isEql = isDeep ? flag(this, "eql") : (val1, val2) => val1 === val2;
4992
5020
  if (!any && !all) {
4993
5021
  all = true;
4994
5022
  }
4995
5023
  if (any) {
4996
5024
  ok = expected.some(function(expectedKey) {
4997
5025
  return actual.some(function(actualKey) {
4998
- if (isDeep) {
4999
- return _.eql(expectedKey, actualKey);
5000
- } else {
5001
- return expectedKey === actualKey;
5002
- }
5026
+ return isEql(expectedKey, actualKey);
5003
5027
  });
5004
5028
  });
5005
5029
  }
5006
5030
  if (all) {
5007
5031
  ok = expected.every(function(expectedKey) {
5008
5032
  return actual.some(function(actualKey) {
5009
- if (isDeep) {
5010
- return _.eql(expectedKey, actualKey);
5011
- } else {
5012
- return expectedKey === actualKey;
5013
- }
5033
+ return isEql(expectedKey, actualKey);
5014
5034
  });
5015
5035
  });
5016
5036
  if (!flag(this, "contains")) {
@@ -5241,7 +5261,7 @@ var require_assertions = __commonJS({
5241
5261
  failMsg = "expected #{this} to have the same " + subject + " as #{exp}";
5242
5262
  failNegateMsg = "expected #{this} to not have the same " + subject + " as #{exp}";
5243
5263
  }
5244
- var cmp = flag(this, "deep") ? _.eql : void 0;
5264
+ var cmp = flag(this, "deep") ? flag(this, "eql") : void 0;
5245
5265
  this.assert(
5246
5266
  isSubsetOf(subset, obj, cmp, contains, ordered),
5247
5267
  failMsg,
@@ -5254,7 +5274,7 @@ var require_assertions = __commonJS({
5254
5274
  function oneOf(list, msg) {
5255
5275
  if (msg)
5256
5276
  flag(this, "message", msg);
5257
- var expected = flag(this, "object"), flagMsg = flag(this, "message"), ssfi = flag(this, "ssfi"), contains = flag(this, "contains"), isDeep = flag(this, "deep");
5277
+ var expected = flag(this, "object"), flagMsg = flag(this, "message"), ssfi = flag(this, "ssfi"), contains = flag(this, "contains"), isDeep = flag(this, "deep"), eql = flag(this, "eql");
5258
5278
  new Assertion2(list, flagMsg, ssfi, true).to.be.an("array");
5259
5279
  if (contains) {
5260
5280
  this.assert(
@@ -5270,7 +5290,7 @@ var require_assertions = __commonJS({
5270
5290
  if (isDeep) {
5271
5291
  this.assert(
5272
5292
  list.some(function(possibility) {
5273
- return _.eql(expected, possibility);
5293
+ return eql(expected, possibility);
5274
5294
  }),
5275
5295
  "expected #{this} to deeply equal one of #{exp}",
5276
5296
  "expected #{this} to deeply equal one of #{exp}",
@@ -5438,9 +5458,9 @@ var require_assertions = __commonJS({
5438
5458
  }
5439
5459
  });
5440
5460
 
5441
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/expect.js
5461
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/interface/expect.js
5442
5462
  var require_expect = __commonJS({
5443
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/expect.js"(exports, module) {
5463
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/interface/expect.js"(exports, module) {
5444
5464
  init_cjs_shims();
5445
5465
  module.exports = function(chai3, util2) {
5446
5466
  chai3.expect = function(val, message) {
@@ -5462,9 +5482,9 @@ var require_expect = __commonJS({
5462
5482
  }
5463
5483
  });
5464
5484
 
5465
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/should.js
5485
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/interface/should.js
5466
5486
  var require_should = __commonJS({
5467
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/should.js"(exports, module) {
5487
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/interface/should.js"(exports, module) {
5468
5488
  init_cjs_shims();
5469
5489
  module.exports = function(chai3, util2) {
5470
5490
  var Assertion2 = chai3.Assertion;
@@ -5531,9 +5551,9 @@ var require_should = __commonJS({
5531
5551
  }
5532
5552
  });
5533
5553
 
5534
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/assert.js
5554
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/interface/assert.js
5535
5555
  var require_assert = __commonJS({
5536
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/assert.js"(exports, module) {
5556
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai/interface/assert.js"(exports, module) {
5537
5557
  init_cjs_shims();
5538
5558
  module.exports = function(chai3, util2) {
5539
5559
  var Assertion2 = chai3.Assertion, flag = util2.flag;
@@ -6095,12 +6115,12 @@ var require_assert = __commonJS({
6095
6115
  }
6096
6116
  });
6097
6117
 
6098
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js
6118
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai.js
6099
6119
  var require_chai = __commonJS({
6100
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js"(exports) {
6120
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/lib/chai.js"(exports) {
6101
6121
  init_cjs_shims();
6102
6122
  var used = [];
6103
- exports.version = "4.3.3";
6123
+ exports.version = "4.3.8";
6104
6124
  exports.AssertionError = require_assertion_error();
6105
6125
  var util2 = require_utils();
6106
6126
  exports.use = function(fn2) {
@@ -6126,21 +6146,21 @@ var require_chai = __commonJS({
6126
6146
  }
6127
6147
  });
6128
6148
 
6129
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js
6149
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/index.js
6130
6150
  var require_chai2 = __commonJS({
6131
- "../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js"(exports, module) {
6151
+ "../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/index.js"(exports, module) {
6132
6152
  init_cjs_shims();
6133
6153
  module.exports = require_chai();
6134
6154
  }
6135
6155
  });
6136
6156
 
6137
- // ../../node_modules/.pnpm/@vitest+runner@0.34.4/node_modules/@vitest/runner/dist/index.js
6157
+ // ../../node_modules/.pnpm/@vitest+runner@0.34.6/node_modules/@vitest/runner/dist/index.js
6138
6158
  init_cjs_shims();
6139
6159
 
6140
- // ../../node_modules/.pnpm/@vitest+utils@0.34.4/node_modules/@vitest/utils/dist/index.js
6160
+ // ../../node_modules/.pnpm/@vitest+utils@0.34.6/node_modules/@vitest/utils/dist/index.js
6141
6161
  init_cjs_shims();
6142
6162
 
6143
- // ../../node_modules/.pnpm/@vitest+utils@0.34.4/node_modules/@vitest/utils/dist/helpers.js
6163
+ // ../../node_modules/.pnpm/@vitest+utils@0.34.6/node_modules/@vitest/utils/dist/helpers.js
6144
6164
  init_cjs_shims();
6145
6165
  function assertTypes(value, name, types) {
6146
6166
  const receivedType = typeof value;
@@ -6175,34 +6195,34 @@ function deepClone(val, options = defaultCloneOptions) {
6175
6195
  return clone(val, seen, options);
6176
6196
  }
6177
6197
  function clone(val, seen, options = defaultCloneOptions) {
6178
- let k, out;
6198
+ let k2, out;
6179
6199
  if (seen.has(val))
6180
6200
  return seen.get(val);
6181
6201
  if (Array.isArray(val)) {
6182
- out = Array(k = val.length);
6202
+ out = Array(k2 = val.length);
6183
6203
  seen.set(val, out);
6184
- while (k--)
6185
- out[k] = clone(val[k], seen);
6204
+ while (k2--)
6205
+ out[k2] = clone(val[k2], seen);
6186
6206
  return out;
6187
6207
  }
6188
6208
  if (Object.prototype.toString.call(val) === "[object Object]") {
6189
6209
  out = Object.create(Object.getPrototypeOf(val));
6190
6210
  seen.set(val, out);
6191
6211
  const props = getOwnProperties(val);
6192
- for (const k2 of props) {
6193
- const descriptor = Object.getOwnPropertyDescriptor(val, k2);
6212
+ for (const k22 of props) {
6213
+ const descriptor = Object.getOwnPropertyDescriptor(val, k22);
6194
6214
  if (!descriptor)
6195
6215
  continue;
6196
- const cloned = clone(val[k2], seen);
6216
+ const cloned = clone(val[k22], seen);
6197
6217
  if ("get" in descriptor) {
6198
- Object.defineProperty(out, k2, {
6218
+ Object.defineProperty(out, k22, {
6199
6219
  ...descriptor,
6200
6220
  get() {
6201
6221
  return cloned;
6202
6222
  }
6203
6223
  });
6204
6224
  } else {
6205
- Object.defineProperty(out, k2, {
6225
+ Object.defineProperty(out, k22, {
6206
6226
  ...descriptor,
6207
6227
  writable: options.forceWritable ? true : descriptor.writable,
6208
6228
  value: cloned
@@ -6226,7 +6246,7 @@ function objectAttr(source, path, defaultValue = void 0) {
6226
6246
  return result;
6227
6247
  }
6228
6248
 
6229
- // ../../node_modules/.pnpm/@vitest+utils@0.34.4/node_modules/@vitest/utils/dist/chunk-display.js
6249
+ // ../../node_modules/.pnpm/@vitest+utils@0.34.6/node_modules/@vitest/utils/dist/chunk-display.js
6230
6250
  init_cjs_shims();
6231
6251
  var import_pretty_format = __toESM(require_build(), 1);
6232
6252
  var import_loupe = __toESM(require_loupe(), 1);
@@ -6322,10 +6342,10 @@ function format(...args) {
6322
6342
  try {
6323
6343
  return JSON.stringify(args[i2++]);
6324
6344
  } catch (err) {
6325
- const m2 = err.message;
6345
+ const m = err.message;
6326
6346
  if (
6327
6347
  // chromium
6328
- m2.includes("circular structure") || m2.includes("cyclic structures") || m2.includes("cyclic object")
6348
+ m.includes("circular structure") || m.includes("cyclic structures") || m.includes("cyclic object")
6329
6349
  )
6330
6350
  return "[Circular]";
6331
6351
  throw err;
@@ -6368,7 +6388,7 @@ function objDisplay(obj, options = {}) {
6368
6388
  return str;
6369
6389
  }
6370
6390
 
6371
- // ../../node_modules/.pnpm/@vitest+utils@0.34.4/node_modules/@vitest/utils/dist/chunk-colors.js
6391
+ // ../../node_modules/.pnpm/@vitest+utils@0.34.6/node_modules/@vitest/utils/dist/chunk-colors.js
6372
6392
  init_cjs_shims();
6373
6393
  var SAFE_TIMERS_SYMBOL = Symbol("vitest:SAFE_TIMERS");
6374
6394
  var SAFE_COLORS_SYMBOL = Symbol("vitest:SAFE_COLORS");
@@ -6412,7 +6432,7 @@ function getColors() {
6412
6432
  return globalThis[SAFE_COLORS_SYMBOL] || defaultColors;
6413
6433
  }
6414
6434
 
6415
- // ../../node_modules/.pnpm/@vitest+utils@0.34.4/node_modules/@vitest/utils/dist/index.js
6435
+ // ../../node_modules/.pnpm/@vitest+utils@0.34.6/node_modules/@vitest/utils/dist/index.js
6416
6436
  var import_pretty_format2 = __toESM(require_build(), 1);
6417
6437
  var import_loupe2 = __toESM(require_loupe(), 1);
6418
6438
  function getSafeTimers() {
@@ -6450,10 +6470,10 @@ function createSimpleStackTrace(options) {
6450
6470
  return stackTrace;
6451
6471
  }
6452
6472
 
6453
- // ../../node_modules/.pnpm/@vitest+utils@0.34.4/node_modules/@vitest/utils/dist/error.js
6473
+ // ../../node_modules/.pnpm/@vitest+utils@0.34.6/node_modules/@vitest/utils/dist/error.js
6454
6474
  init_cjs_shims();
6455
6475
 
6456
- // ../../node_modules/.pnpm/@vitest+utils@0.34.4/node_modules/@vitest/utils/dist/diff.js
6476
+ // ../../node_modules/.pnpm/@vitest+utils@0.34.6/node_modules/@vitest/utils/dist/diff.js
6457
6477
  init_cjs_shims();
6458
6478
  var import_pretty_format3 = __toESM(require_build(), 1);
6459
6479
  var diff$1 = __toESM(require_build2(), 1);
@@ -6705,17 +6725,17 @@ function joinAlignedDiffsExpand(diffs, options) {
6705
6725
  var noColor = (string3) => string3;
6706
6726
  var DIFF_CONTEXT_DEFAULT = 5;
6707
6727
  function getDefaultOptions() {
6708
- const c = getColors();
6728
+ const c2 = getColors();
6709
6729
  return {
6710
6730
  aAnnotation: "Expected",
6711
- aColor: c.green,
6731
+ aColor: c2.green,
6712
6732
  aIndicator: "-",
6713
6733
  bAnnotation: "Received",
6714
- bColor: c.red,
6734
+ bColor: c2.red,
6715
6735
  bIndicator: "+",
6716
- changeColor: c.inverse,
6736
+ changeColor: c2.inverse,
6717
6737
  changeLineTrailingSpaceColor: noColor,
6718
- commonColor: c.dim,
6738
+ commonColor: c2.dim,
6719
6739
  commonIndicator: " ",
6720
6740
  commonLineTrailingSpaceColor: noColor,
6721
6741
  compareKeys: void 0,
@@ -6724,7 +6744,7 @@ function getDefaultOptions() {
6724
6744
  expand: true,
6725
6745
  includeChangeCounts: false,
6726
6746
  omitAnnotationLines: false,
6727
- patchColor: c.yellow
6747
+ patchColor: c2.yellow
6728
6748
  };
6729
6749
  }
6730
6750
  function getCompareKeys(compareKeys) {
@@ -6994,7 +7014,7 @@ function getObjectsDifference(a, b2, formatOptions, options) {
6994
7014
  }
6995
7015
  }
6996
7016
 
6997
- // ../../node_modules/.pnpm/@vitest+utils@0.34.4/node_modules/@vitest/utils/dist/error.js
7017
+ // ../../node_modules/.pnpm/@vitest+utils@0.34.6/node_modules/@vitest/utils/dist/error.js
6998
7018
  var import_pretty_format4 = __toESM(require_build(), 1);
6999
7019
  var import_diff_sequences = __toESM(require_build2(), 1);
7000
7020
  var import_loupe3 = __toESM(require_loupe(), 1);
@@ -7064,7 +7084,7 @@ function serializeError(val, seen = /* @__PURE__ */ new WeakMap()) {
7064
7084
  function normalizeErrorMessage(message) {
7065
7085
  return message.replace(/__vite_ssr_import_\d+__\./g, "");
7066
7086
  }
7067
- function processError(err) {
7087
+ function processError(err, diffOptions) {
7068
7088
  if (!err || typeof err !== "object")
7069
7089
  return { message: err };
7070
7090
  if (err.stack)
@@ -7075,7 +7095,7 @@ function processError(err) {
7075
7095
  const clonedActual = deepClone(err.actual, { forceWritable: true });
7076
7096
  const clonedExpected = deepClone(err.expected, { forceWritable: true });
7077
7097
  const { replacedActual, replacedExpected } = replaceAsymmetricMatcher(clonedActual, clonedExpected);
7078
- err.diff = diff(replacedExpected, replacedActual);
7098
+ err.diff = diff(replacedExpected, replacedActual, diffOptions);
7079
7099
  }
7080
7100
  if (typeof err.expected !== "string")
7081
7101
  err.expected = stringify(err.expected, 10);
@@ -7137,7 +7157,7 @@ function replaceAsymmetricMatcher(actual, expected, actualReplaced = /* @__PURE_
7137
7157
  };
7138
7158
  }
7139
7159
 
7140
- // ../../node_modules/.pnpm/@vitest+runner@0.34.4/node_modules/@vitest/runner/dist/utils.js
7160
+ // ../../node_modules/.pnpm/@vitest+runner@0.34.6/node_modules/@vitest/runner/dist/utils.js
7141
7161
  init_cjs_shims();
7142
7162
  function createChainable(keys2, fn2) {
7143
7163
  function create(context) {
@@ -7176,12 +7196,19 @@ function getNames(task) {
7176
7196
  return names;
7177
7197
  }
7178
7198
 
7179
- // ../../node_modules/.pnpm/@vitest+runner@0.34.4/node_modules/@vitest/runner/dist/index.js
7199
+ // ../../node_modules/.pnpm/@vitest+runner@0.34.6/node_modules/@vitest/runner/dist/index.js
7180
7200
  var fnMap = /* @__PURE__ */ new WeakMap();
7201
+ var fixtureMap = /* @__PURE__ */ new WeakMap();
7181
7202
  var hooksMap = /* @__PURE__ */ new WeakMap();
7182
7203
  function setFn(key, fn2) {
7183
7204
  fnMap.set(key, fn2);
7184
7205
  }
7206
+ function setFixture(key, fixture) {
7207
+ fixtureMap.set(key, fixture);
7208
+ }
7209
+ function getFixture(key) {
7210
+ return fixtureMap.get(key);
7211
+ }
7185
7212
  function setHooks(key, hooks) {
7186
7213
  hooksMap.set(key, hooks);
7187
7214
  }
@@ -7270,28 +7297,62 @@ function mergeContextFixtures(fixtures, context = {}) {
7270
7297
  });
7271
7298
  return context;
7272
7299
  }
7273
- function withFixtures(fn2, fixtures, context) {
7274
- if (!fixtures.length)
7275
- return () => fn2(context);
7276
- const usedProps = getUsedProps(fn2);
7277
- if (!usedProps.length)
7278
- return () => fn2(context);
7279
- const usedFixtures = fixtures.filter(({ prop }) => usedProps.includes(prop));
7280
- const pendingFixtures = resolveDeps(usedFixtures);
7281
- let cursor = 0;
7282
- async function use2(fixtureValue) {
7283
- const { prop } = pendingFixtures[cursor++];
7284
- context[prop] = fixtureValue;
7285
- if (cursor < pendingFixtures.length)
7286
- await next();
7287
- else
7288
- await fn2(context);
7289
- }
7290
- async function next() {
7291
- const { value } = pendingFixtures[cursor];
7292
- typeof value === "function" ? await value(context, use2) : await use2(value);
7293
- }
7294
- return () => next();
7300
+ var fixtureValueMap = /* @__PURE__ */ new Map();
7301
+ var fixtureCleanupFnMap = /* @__PURE__ */ new Map();
7302
+ function withFixtures(fn2, testContext) {
7303
+ return (hookContext) => {
7304
+ const context = hookContext || testContext;
7305
+ if (!context)
7306
+ return fn2({});
7307
+ let cleanupFnArray = fixtureCleanupFnMap.get(context.task.suite.id);
7308
+ if (!cleanupFnArray) {
7309
+ cleanupFnArray = [];
7310
+ fixtureCleanupFnMap.set(context.task.suite.id, cleanupFnArray);
7311
+ }
7312
+ const fixtures = getFixture(context);
7313
+ if (!(fixtures == null ? void 0 : fixtures.length))
7314
+ return fn2(context);
7315
+ const usedProps = getUsedProps(fn2);
7316
+ if (!usedProps.length)
7317
+ return fn2(context);
7318
+ const usedFixtures = fixtures.filter(({ prop }) => usedProps.includes(prop));
7319
+ const pendingFixtures = resolveDeps(usedFixtures);
7320
+ let cursor = 0;
7321
+ return new Promise((resolve2, reject) => {
7322
+ async function use2(fixtureValue) {
7323
+ const fixture = pendingFixtures[cursor++];
7324
+ context[fixture.prop] = fixtureValue;
7325
+ if (!fixtureValueMap.has(fixture)) {
7326
+ fixtureValueMap.set(fixture, fixtureValue);
7327
+ cleanupFnArray.unshift(() => {
7328
+ fixtureValueMap.delete(fixture);
7329
+ });
7330
+ }
7331
+ if (cursor < pendingFixtures.length) {
7332
+ await next();
7333
+ } else {
7334
+ try {
7335
+ resolve2(await fn2(context));
7336
+ } catch (err) {
7337
+ reject(err);
7338
+ }
7339
+ return new Promise((resolve22) => {
7340
+ cleanupFnArray.push(resolve22);
7341
+ });
7342
+ }
7343
+ }
7344
+ async function next() {
7345
+ const fixture = pendingFixtures[cursor];
7346
+ const { isFn, value } = fixture;
7347
+ if (fixtureValueMap.has(fixture))
7348
+ return use2(fixtureValueMap.get(fixture));
7349
+ else
7350
+ return isFn ? value(context, use2) : use2(value);
7351
+ }
7352
+ const setupFixturePromise = next();
7353
+ cleanupFnArray.unshift(() => setupFixturePromise);
7354
+ });
7355
+ };
7295
7356
  }
7296
7357
  function resolveDeps(fixtures, depSet = /* @__PURE__ */ new Set(), pendingFixtures = []) {
7297
7358
  fixtures.forEach((fixture) => {
@@ -7407,8 +7468,9 @@ function createSuiteCollector(name, factory = () => {
7407
7468
  value: context,
7408
7469
  enumerable: false
7409
7470
  });
7471
+ setFixture(context, this.fixtures);
7410
7472
  setFn(test3, withTimeout(
7411
- this.fixtures ? withFixtures(fn2, this.fixtures, context) : () => fn2(context),
7473
+ withFixtures(fn2, context),
7412
7474
  (options == null ? void 0 : options.timeout) ?? runner.config.testTimeout
7413
7475
  ));
7414
7476
  tasks.push(test3);
@@ -7592,10 +7654,10 @@ function afterAll(fn2, timeout) {
7592
7654
  return getCurrentSuite().on("afterAll", withTimeout(fn2, timeout ?? getDefaultHookTimeout(), true));
7593
7655
  }
7594
7656
  function beforeEach(fn2, timeout) {
7595
- return getCurrentSuite().on("beforeEach", withTimeout(fn2, timeout ?? getDefaultHookTimeout(), true));
7657
+ return getCurrentSuite().on("beforeEach", withTimeout(withFixtures(fn2), timeout ?? getDefaultHookTimeout(), true));
7596
7658
  }
7597
7659
  function afterEach(fn2, timeout) {
7598
- return getCurrentSuite().on("afterEach", withTimeout(fn2, timeout ?? getDefaultHookTimeout(), true));
7660
+ return getCurrentSuite().on("afterEach", withTimeout(withFixtures(fn2), timeout ?? getDefaultHookTimeout(), true));
7599
7661
  }
7600
7662
  var onTestFailed = createTestHook("onTestFailed", (test3, handler) => {
7601
7663
  test3.onFailed || (test3.onFailed = []);
@@ -7610,13 +7672,13 @@ function createTestHook(name, handler) {
7610
7672
  };
7611
7673
  }
7612
7674
 
7613
- // ../../node_modules/.pnpm/vitest@0.34.4_jsdom@20.0.3/node_modules/vitest/dist/vendor-vi.befc11a6.js
7675
+ // ../../node_modules/.pnpm/vitest@0.34.6_jsdom@20.0.3/node_modules/vitest/dist/vendor-vi.6873a1c1.js
7614
7676
  init_cjs_shims();
7615
7677
 
7616
- // ../../node_modules/.pnpm/vitest@0.34.4_jsdom@20.0.3/node_modules/vitest/dist/vendor-index.29282562.js
7678
+ // ../../node_modules/.pnpm/vitest@0.34.6_jsdom@20.0.3/node_modules/vitest/dist/vendor-index.29282562.js
7617
7679
  init_cjs_shims();
7618
7680
 
7619
- // ../../node_modules/.pnpm/vitest@0.34.4_jsdom@20.0.3/node_modules/vitest/dist/vendor-global.97e4527c.js
7681
+ // ../../node_modules/.pnpm/vitest@0.34.6_jsdom@20.0.3/node_modules/vitest/dist/vendor-global.97e4527c.js
7620
7682
  init_cjs_shims();
7621
7683
  function getWorkerState() {
7622
7684
  return globalThis.__vitest_worker__;
@@ -7626,7 +7688,7 @@ function getCurrentEnvironment() {
7626
7688
  return state == null ? void 0 : state.environment.name;
7627
7689
  }
7628
7690
 
7629
- // ../../node_modules/.pnpm/vitest@0.34.4_jsdom@20.0.3/node_modules/vitest/dist/vendor-index.29282562.js
7691
+ // ../../node_modules/.pnpm/vitest@0.34.6_jsdom@20.0.3/node_modules/vitest/dist/vendor-index.29282562.js
7630
7692
  var _a;
7631
7693
  var isNode = typeof process < "u" && typeof process.stdout < "u" && !((_a = process.versions) == null ? void 0 : _a.deno) && !globalThis.window;
7632
7694
  var isWindows = isNode && process.platform === "win32";
@@ -7637,7 +7699,7 @@ function isRunningInBenchmark() {
7637
7699
  return getRunMode() === "benchmark";
7638
7700
  }
7639
7701
 
7640
- // ../../node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.mjs
7702
+ // ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/index.mjs
7641
7703
  var chai_exports = {};
7642
7704
  __export(chai_exports, {
7643
7705
  Assertion: () => Assertion,
@@ -7666,79 +7728,85 @@ var assert = import_index.default.assert;
7666
7728
  var core = import_index.default.core;
7667
7729
  var chai_default = import_index.default;
7668
7730
 
7669
- // ../../node_modules/.pnpm/vitest@0.34.4_jsdom@20.0.3/node_modules/vitest/dist/vendor-_commonjsHelpers.7d1333e8.js
7731
+ // ../../node_modules/.pnpm/vitest@0.34.6_jsdom@20.0.3/node_modules/vitest/dist/vendor-_commonjsHelpers.7d1333e8.js
7670
7732
  init_cjs_shims();
7671
7733
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
7672
7734
  function getDefaultExportFromCjs(x) {
7673
7735
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
7674
7736
  }
7675
7737
 
7676
- // ../../node_modules/.pnpm/@vitest+expect@0.34.4/node_modules/@vitest/expect/dist/index.js
7738
+ // ../../node_modules/.pnpm/@vitest+expect@0.34.6/node_modules/@vitest/expect/dist/index.js
7677
7739
  init_cjs_shims();
7678
7740
 
7679
- // ../../node_modules/.pnpm/@vitest+spy@0.34.4/node_modules/@vitest/spy/dist/index.js
7741
+ // ../../node_modules/.pnpm/@vitest+spy@0.34.6/node_modules/@vitest/spy/dist/index.js
7680
7742
  init_cjs_shims();
7681
7743
 
7682
- // ../../node_modules/.pnpm/tinyspy@2.1.1/node_modules/tinyspy/dist/index.js
7744
+ // ../../node_modules/.pnpm/tinyspy@2.2.1/node_modules/tinyspy/dist/index.js
7683
7745
  init_cjs_shims();
7684
- function g(e, t) {
7746
+ function R(e, t) {
7685
7747
  if (!e)
7686
7748
  throw new Error(t);
7687
7749
  }
7688
- function i(e, t) {
7750
+ function u(e, t) {
7689
7751
  return typeof t === e;
7690
7752
  }
7691
7753
  function b(e) {
7692
7754
  return e instanceof Promise;
7693
7755
  }
7694
- function f(e, t, r) {
7695
- Object.defineProperty(e, t, r);
7756
+ function f(e, t, n) {
7757
+ Object.defineProperty(e, t, n);
7696
7758
  }
7697
- function l(e, t, r) {
7698
- Object.defineProperty(e, t, { value: r });
7759
+ function i(e, t, n) {
7760
+ Object.defineProperty(e, t, { value: n });
7699
7761
  }
7700
- var y = Symbol.for("tinyspy:spy");
7701
- var m = /* @__PURE__ */ new Set();
7702
- var M = (e) => {
7703
- e.called = false, e.callCount = 0, e.calls = [], e.results = [];
7762
+ var c = Symbol.for("tinyspy:spy");
7763
+ var g = /* @__PURE__ */ new Set();
7764
+ var C = (e) => {
7765
+ e.called = false, e.callCount = 0, e.calls = [], e.results = [], e.next = [];
7704
7766
  };
7705
- var C = (e) => (f(e, y, { value: { reset: () => M(e[y]) } }), e[y]);
7706
- var A = (e) => e[y] || C(e);
7767
+ var M = (e) => (f(e, c, { value: { reset: () => C(e[c]) } }), e[c]);
7768
+ var A = (e) => e[c] || M(e);
7707
7769
  function I(e) {
7708
- g(i("function", e) || i("undefined", e), "cannot spy on a non-function value");
7709
- let t = function(...o) {
7710
- let n = A(t);
7711
- if (n.called = true, n.callCount++, n.calls.push(o), n.next) {
7712
- let [p, s] = n.next;
7713
- if (n.results.push(n.next), n.next = null, p === "ok")
7714
- return s;
7715
- throw s;
7716
- }
7717
- let a, d = "ok";
7718
- if (n.impl)
7770
+ R(u("function", e) || u("undefined", e), "cannot spy on a non-function value");
7771
+ let t = function(...s) {
7772
+ let r = A(t);
7773
+ r.called = true, r.callCount++, r.calls.push(s);
7774
+ let m = r.next.shift();
7775
+ if (m) {
7776
+ r.results.push(m);
7777
+ let [l, o] = m;
7778
+ if (l === "ok")
7779
+ return o;
7780
+ throw o;
7781
+ }
7782
+ let p, d = "ok";
7783
+ if (r.impl)
7719
7784
  try {
7720
- a = n.impl.apply(this, o), d = "ok";
7721
- } catch (p) {
7722
- throw a = p, d = "error", n.results.push([d, p]), p;
7723
- }
7724
- let u = [d, a];
7725
- if (b(a)) {
7726
- let p = a.then((s) => u[1] = s).catch((s) => {
7727
- throw u[0] = "error", u[1] = s, s;
7785
+ new.target ? p = Reflect.construct(r.impl, s, new.target) : p = r.impl.apply(this, s), d = "ok";
7786
+ } catch (l) {
7787
+ throw p = l, d = "error", r.results.push([d, l]), l;
7788
+ }
7789
+ let a = [d, p];
7790
+ if (b(p)) {
7791
+ let l = p.then((o) => a[1] = o).catch((o) => {
7792
+ throw a[0] = "error", a[1] = o, o;
7728
7793
  });
7729
- Object.assign(p, a), a = p;
7794
+ Object.assign(l, p), p = l;
7730
7795
  }
7731
- return n.results.push(u), a;
7796
+ return r.results.push(a), p;
7732
7797
  };
7733
- l(t, "_isMockFunction", true), l(t, "length", e ? e.length : 0), l(t, "name", e && e.name || "spy");
7734
- let r = A(t);
7735
- return r.reset(), r.impl = e, t;
7736
- }
7737
- var P = (e, t) => Object.getOwnPropertyDescriptor(e, t);
7738
- function E(e, t, r) {
7739
- g(!i("undefined", e), "spyOn could not find an object to spy upon"), g(i("object", e) || i("function", e), "cannot spyOn on a primitive value");
7740
- let o = () => {
7741
- if (!i("object", t))
7798
+ i(t, "_isMockFunction", true), i(t, "length", e ? e.length : 0), i(t, "name", e && e.name || "spy");
7799
+ let n = A(t);
7800
+ return n.reset(), n.impl = e, t;
7801
+ }
7802
+ var k = (e, t) => Object.getOwnPropertyDescriptor(e, t);
7803
+ var P = (e, t) => {
7804
+ t != null && typeof t == "function" && t.prototype != null && Object.setPrototypeOf(e.prototype, t.prototype);
7805
+ };
7806
+ function E(e, t, n) {
7807
+ 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");
7808
+ let [s, r] = (() => {
7809
+ if (!u("object", t))
7742
7810
  return [t, "value"];
7743
7811
  if ("getter" in t && "setter" in t)
7744
7812
  throw new Error("cannot spy on both getter and setter");
@@ -7747,23 +7815,25 @@ function E(e, t, r) {
7747
7815
  if ("setter" in t)
7748
7816
  return [t.setter, "set"];
7749
7817
  throw new Error("specify getter or setter to spy on");
7750
- }, [n, a] = o(), d = P(e, n), u = Object.getPrototypeOf(e), p = u && P(u, n), s = d || p;
7751
- g(s || n in e, `${String(n)} does not exist`);
7752
- let w = false;
7753
- a === "value" && s && !s.value && s.get && (a = "get", w = true, r = s.get());
7754
- let c;
7755
- s ? c = s[a] : a !== "value" ? c = () => e[n] : c = e[n], r || (r = c);
7756
- let x = I(r), O = (h) => {
7757
- let { value: G, ...k } = s || {
7818
+ })(), m = k(e, s), p = Object.getPrototypeOf(e), d = p && k(p, s), a = m || d;
7819
+ R(a || s in e, `${String(s)} does not exist`);
7820
+ let l = false;
7821
+ r === "value" && a && !a.value && a.get && (r = "get", l = true, n = a.get());
7822
+ let o;
7823
+ a ? o = a[r] : r !== "value" ? o = () => e[s] : o = e[s], n || (n = o);
7824
+ let y = I(n);
7825
+ r === "value" && P(y, o);
7826
+ let O = (h) => {
7827
+ let { value: G, ...w } = a || {
7758
7828
  configurable: true,
7759
7829
  writable: true
7760
7830
  };
7761
- a !== "value" && delete k.writable, k[a] = h, f(e, n, k);
7762
- }, K = () => s ? f(e, n, s) : O(c), T = x[y];
7763
- return l(T, "restore", K), l(T, "getOriginal", () => w ? c() : c), l(T, "willCall", (h) => (T.impl = h, x)), O(w ? () => x : x), m.add(x), x;
7831
+ r !== "value" && delete w.writable, w[r] = h, f(e, s, w);
7832
+ }, K = () => a ? f(e, s, a) : O(o), T = y[c];
7833
+ return i(T, "restore", K), i(T, "getOriginal", () => l ? o() : o), i(T, "willCall", (h) => (T.impl = h, y)), O(l ? () => (P(y, n), y) : y), g.add(y), y;
7764
7834
  }
7765
7835
 
7766
- // ../../node_modules/.pnpm/@vitest+spy@0.34.4/node_modules/@vitest/spy/dist/index.js
7836
+ // ../../node_modules/.pnpm/@vitest+spy@0.34.6/node_modules/@vitest/spy/dist/index.js
7767
7837
  var spies = /* @__PURE__ */ new Set();
7768
7838
  function isMockFunction(fn2) {
7769
7839
  return typeof fn2 === "function" && "_isMockFunction" in fn2 && fn2._isMockFunction;
@@ -7891,7 +7961,7 @@ function fn(implementation) {
7891
7961
  return enhancedSpy;
7892
7962
  }
7893
7963
 
7894
- // ../../node_modules/.pnpm/@vitest+expect@0.34.4/node_modules/@vitest/expect/dist/index.js
7964
+ // ../../node_modules/.pnpm/@vitest+expect@0.34.6/node_modules/@vitest/expect/dist/index.js
7895
7965
  var MATCHERS_OBJECT = Symbol.for("matchers-object");
7896
7966
  var JEST_MATCHERS_OBJECT = Symbol.for("$$jest-matchers-object");
7897
7967
  var GLOBAL_EXPECT = Symbol.for("expect-global");
@@ -7919,12 +7989,12 @@ function setState(state, expect2) {
7919
7989
  map2.set(expect2, current);
7920
7990
  }
7921
7991
  function getMatcherUtils() {
7922
- const c = () => getColors();
7923
- const EXPECTED_COLOR = c().green;
7924
- const RECEIVED_COLOR = c().red;
7925
- const INVERTED_COLOR = c().inverse;
7926
- const BOLD_WEIGHT = c().bold;
7927
- const DIM_COLOR = c().dim;
7992
+ const c2 = () => getColors();
7993
+ const EXPECTED_COLOR = c2().green;
7994
+ const RECEIVED_COLOR = c2().red;
7995
+ const INVERTED_COLOR = c2().inverse;
7996
+ const BOLD_WEIGHT = c2().bold;
7997
+ const DIM_COLOR = c2().dim;
7928
7998
  function matcherHint(matcherName, received = "received", expected = "expected", options = {}) {
7929
7999
  const {
7930
8000
  comment = "",
@@ -8512,7 +8582,8 @@ function wrapSoft(utils, fn2) {
8512
8582
  };
8513
8583
  }
8514
8584
  var JestChaiExpect = (chai3, utils) => {
8515
- const c = () => getColors();
8585
+ const { AssertionError: AssertionError2 } = chai3;
8586
+ const c2 = () => getColors();
8516
8587
  function def(name, fn2) {
8517
8588
  const addMethod = (n) => {
8518
8589
  const softWrapper = wrapSoft(utils, fn2);
@@ -8524,8 +8595,8 @@ var JestChaiExpect = (chai3, utils) => {
8524
8595
  else
8525
8596
  addMethod(name);
8526
8597
  }
8527
- ["throw", "throws", "Throw"].forEach((m2) => {
8528
- utils.overwriteMethod(chai3.Assertion.prototype, m2, (_super) => {
8598
+ ["throw", "throws", "Throw"].forEach((m) => {
8599
+ utils.overwriteMethod(chai3.Assertion.prototype, m, (_super) => {
8529
8600
  return function(...args) {
8530
8601
  const promise = utils.flag(this, "promise");
8531
8602
  const object2 = utils.flag(this, "object");
@@ -8540,7 +8611,7 @@ var JestChaiExpect = (chai3, utils) => {
8540
8611
  const error = {
8541
8612
  showDiff: false
8542
8613
  };
8543
- throw new AssertionError(message, error, utils.flag(this, "ssfi"));
8614
+ throw new AssertionError2(message, error, utils.flag(this, "ssfi"));
8544
8615
  } else {
8545
8616
  return;
8546
8617
  }
@@ -8815,23 +8886,23 @@ var JestChaiExpect = (chai3, utils) => {
8815
8886
  };
8816
8887
  const ordinalOf = (i2) => {
8817
8888
  const j = i2 % 10;
8818
- const k = i2 % 100;
8819
- if (j === 1 && k !== 11)
8889
+ const k2 = i2 % 100;
8890
+ if (j === 1 && k2 !== 11)
8820
8891
  return `${i2}st`;
8821
- if (j === 2 && k !== 12)
8892
+ if (j === 2 && k2 !== 12)
8822
8893
  return `${i2}nd`;
8823
- if (j === 3 && k !== 13)
8894
+ if (j === 3 && k2 !== 13)
8824
8895
  return `${i2}rd`;
8825
8896
  return `${i2}th`;
8826
8897
  };
8827
8898
  const formatCalls = (spy, msg, actualCall) => {
8828
8899
  if (spy.mock.calls) {
8829
- msg += c().gray(`
8900
+ msg += c2().gray(`
8830
8901
 
8831
8902
  Received:
8832
8903
 
8833
8904
  ${spy.mock.calls.map((callArg, i2) => {
8834
- let methodCall = c().bold(` ${ordinalOf(i2 + 1)} ${spy.getMockName()} call:
8905
+ let methodCall = c2().bold(` ${ordinalOf(i2 + 1)} ${spy.getMockName()} call:
8835
8906
 
8836
8907
  `);
8837
8908
  if (actualCall)
@@ -8842,19 +8913,19 @@ ${spy.mock.calls.map((callArg, i2) => {
8842
8913
  return methodCall;
8843
8914
  }).join("\n")}`);
8844
8915
  }
8845
- msg += c().gray(`
8916
+ msg += c2().gray(`
8846
8917
 
8847
- Number of calls: ${c().bold(spy.mock.calls.length)}
8918
+ Number of calls: ${c2().bold(spy.mock.calls.length)}
8848
8919
  `);
8849
8920
  return msg;
8850
8921
  };
8851
8922
  const formatReturns = (spy, msg, actualReturn) => {
8852
- msg += c().gray(`
8923
+ msg += c2().gray(`
8853
8924
 
8854
8925
  Received:
8855
8926
 
8856
8927
  ${spy.mock.results.map((callReturn, i2) => {
8857
- let methodCall = c().bold(` ${ordinalOf(i2 + 1)} ${spy.getMockName()} call return:
8928
+ let methodCall = c2().bold(` ${ordinalOf(i2 + 1)} ${spy.getMockName()} call return:
8858
8929
 
8859
8930
  `);
8860
8931
  if (actualReturn)
@@ -8864,9 +8935,9 @@ ${spy.mock.results.map((callReturn, i2) => {
8864
8935
  methodCall += "\n";
8865
8936
  return methodCall;
8866
8937
  }).join("\n")}`);
8867
- msg += c().gray(`
8938
+ msg += c2().gray(`
8868
8939
 
8869
- Number of calls: ${c().bold(spy.mock.calls.length)}
8940
+ Number of calls: ${c2().bold(spy.mock.calls.length)}
8870
8941
  `);
8871
8942
  return msg;
8872
8943
  };
@@ -8914,18 +8985,15 @@ Number of calls: ${c().bold(spy.mock.calls.length)}
8914
8985
  );
8915
8986
  if (called && isNot)
8916
8987
  msg = formatCalls(spy, msg);
8917
- if (called && isNot || !called && !isNot) {
8918
- const err = new Error(msg);
8919
- err.name = "AssertionError";
8920
- throw err;
8921
- }
8988
+ if (called && isNot || !called && !isNot)
8989
+ throw new AssertionError2(msg);
8922
8990
  });
8923
8991
  def(["toHaveBeenCalledWith", "toBeCalledWith"], function(...args) {
8924
8992
  const spy = getSpy(this);
8925
8993
  const spyName = spy.getMockName();
8926
8994
  const pass = spy.mock.calls.some((callArg) => equals(callArg, args, [iterableEquality]));
8927
8995
  const isNot = utils.flag(this, "negate");
8928
- let msg = utils.getMessage(
8996
+ const msg = utils.getMessage(
8929
8997
  this,
8930
8998
  [
8931
8999
  pass,
@@ -8934,12 +9002,8 @@ Number of calls: ${c().bold(spy.mock.calls.length)}
8934
9002
  args
8935
9003
  ]
8936
9004
  );
8937
- if (pass && isNot || !pass && !isNot) {
8938
- msg = formatCalls(spy, msg, args);
8939
- const err = new Error(msg);
8940
- err.name = "AssertionError";
8941
- throw err;
8942
- }
9005
+ if (pass && isNot || !pass && !isNot)
9006
+ throw new AssertionError2(formatCalls(spy, msg, args));
8943
9007
  });
8944
9008
  def(["toHaveBeenNthCalledWith", "nthCalledWith"], function(times, ...args) {
8945
9009
  const spy = getSpy(this);
@@ -8980,16 +9044,25 @@ Number of calls: ${c().bold(spy.mock.calls.length)}
8980
9044
  const error = {
8981
9045
  showDiff: false
8982
9046
  };
8983
- throw new AssertionError(message, error, utils.flag(this, "ssfi"));
9047
+ throw new AssertionError2(message, error, utils.flag(this, "ssfi"));
8984
9048
  } else {
8985
9049
  return;
8986
9050
  }
8987
9051
  } else {
9052
+ let isThrow = false;
8988
9053
  try {
8989
9054
  obj();
8990
9055
  } catch (err) {
9056
+ isThrow = true;
8991
9057
  thrown = err;
8992
9058
  }
9059
+ if (!isThrow && !isNot) {
9060
+ const message = utils.flag(this, "message") || "expected function to throw an error, but it didn't";
9061
+ const error = {
9062
+ showDiff: false
9063
+ };
9064
+ throw new AssertionError2(message, error, utils.flag(this, "ssfi"));
9065
+ }
8993
9066
  }
8994
9067
  if (typeof expected === "function") {
8995
9068
  const name = expected.name || expected.prototype.constructor.name;
@@ -9055,7 +9128,7 @@ Number of calls: ${c().bold(spy.mock.calls.length)}
9055
9128
  const spyName = spy.getMockName();
9056
9129
  const pass = spy.mock.results.some(({ type: type2, value: result }) => type2 === "return" && equals(value, result));
9057
9130
  const isNot = utils.flag(this, "negate");
9058
- let msg = utils.getMessage(
9131
+ const msg = utils.getMessage(
9059
9132
  this,
9060
9133
  [
9061
9134
  pass,
@@ -9064,12 +9137,8 @@ Number of calls: ${c().bold(spy.mock.calls.length)}
9064
9137
  value
9065
9138
  ]
9066
9139
  );
9067
- if (pass && isNot || !pass && !isNot) {
9068
- msg = formatReturns(spy, msg, value);
9069
- const err = new Error(msg);
9070
- err.name = "AssertionError";
9071
- throw err;
9072
- }
9140
+ if (pass && isNot || !pass && !isNot)
9141
+ throw new AssertionError2(formatReturns(spy, msg, value));
9073
9142
  });
9074
9143
  def(["toHaveLastReturnedWith", "lastReturnedWith"], function(value) {
9075
9144
  const spy = getSpy(this);
@@ -9105,8 +9174,9 @@ Number of calls: ${c().bold(spy.mock.calls.length)}
9105
9174
  return this.be.satisfy(matcher, message);
9106
9175
  });
9107
9176
  utils.addProperty(chai3.Assertion.prototype, "resolves", function __VITEST_RESOLVES__() {
9177
+ const error = new Error("resolves");
9108
9178
  utils.flag(this, "promise", "resolves");
9109
- utils.flag(this, "error", new Error("resolves"));
9179
+ utils.flag(this, "error", error);
9110
9180
  const test3 = utils.flag(this, "vitest-test");
9111
9181
  const obj = utils.flag(this, "object");
9112
9182
  if (typeof (obj == null ? void 0 : obj.then) !== "function")
@@ -9123,7 +9193,12 @@ Number of calls: ${c().bold(spy.mock.calls.length)}
9123
9193
  return result.call(this, ...args);
9124
9194
  },
9125
9195
  (err) => {
9126
- throw new Error(`promise rejected "${String(err)}" instead of resolving`);
9196
+ const _error = new AssertionError2(
9197
+ `promise rejected "${utils.inspect(err)}" instead of resolving`,
9198
+ { showDiff: false }
9199
+ );
9200
+ _error.stack = error.stack.replace(error.message, _error.message);
9201
+ throw _error;
9127
9202
  }
9128
9203
  );
9129
9204
  return recordAsyncExpect(test3, promise);
@@ -9133,8 +9208,9 @@ Number of calls: ${c().bold(spy.mock.calls.length)}
9133
9208
  return proxy;
9134
9209
  });
9135
9210
  utils.addProperty(chai3.Assertion.prototype, "rejects", function __VITEST_REJECTS__() {
9211
+ const error = new Error("rejects");
9136
9212
  utils.flag(this, "promise", "rejects");
9137
- utils.flag(this, "error", new Error("rejects"));
9213
+ utils.flag(this, "error", error);
9138
9214
  const test3 = utils.flag(this, "vitest-test");
9139
9215
  const obj = utils.flag(this, "object");
9140
9216
  const wrapper = typeof obj === "function" ? obj() : obj;
@@ -9148,7 +9224,12 @@ Number of calls: ${c().bold(spy.mock.calls.length)}
9148
9224
  return async (...args) => {
9149
9225
  const promise = wrapper.then(
9150
9226
  (value) => {
9151
- throw new Error(`promise resolved "${String(value)}" instead of rejecting`);
9227
+ const _error = new AssertionError2(
9228
+ `promise resolved "${utils.inspect(value)}" instead of rejecting`,
9229
+ { showDiff: false }
9230
+ );
9231
+ _error.stack = error.stack.replace(error.message, _error.message);
9232
+ throw _error;
9152
9233
  },
9153
9234
  (err) => {
9154
9235
  utils.flag(this, "object", err);
@@ -9196,7 +9277,7 @@ var JestExtendError = class extends Error {
9196
9277
  }
9197
9278
  };
9198
9279
  function JestExtendPlugin(expect2, matchers) {
9199
- return (c, utils) => {
9280
+ return (c2, utils) => {
9200
9281
  Object.entries(matchers).forEach(([expectAssertionName, expectAssertion]) => {
9201
9282
  function expectWrapper(...args) {
9202
9283
  const { state, isNot, obj } = getMatcherState(this, expect2);
@@ -9213,7 +9294,7 @@ function JestExtendPlugin(expect2, matchers) {
9213
9294
  }
9214
9295
  const softWrapper = wrapSoft(utils, expectWrapper);
9215
9296
  utils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers, expectAssertionName, softWrapper);
9216
- utils.addMethod(c.Assertion.prototype, expectAssertionName, softWrapper);
9297
+ utils.addMethod(c2.Assertion.prototype, expectAssertionName, softWrapper);
9217
9298
  class CustomMatcher extends AsymmetricMatcher3 {
9218
9299
  constructor(inverse = false, ...sample) {
9219
9300
  super(sample, inverse);
@@ -9257,7 +9338,7 @@ var JestExtend = (chai3, utils) => {
9257
9338
  });
9258
9339
  };
9259
9340
 
9260
- // ../../node_modules/.pnpm/@vitest+snapshot@0.34.4/node_modules/@vitest/snapshot/dist/index.js
9341
+ // ../../node_modules/.pnpm/@vitest+snapshot@0.34.6/node_modules/@vitest/snapshot/dist/index.js
9261
9342
  init_cjs_shims();
9262
9343
  var import_pretty_format5 = __toESM(require_build(), 1);
9263
9344
  function getDefaultExportFromCjs2(x) {
@@ -9643,9 +9724,9 @@ var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
9643
9724
  var intToChar = new Uint8Array(64);
9644
9725
  var charToInt = new Uint8Array(128);
9645
9726
  for (let i2 = 0; i2 < chars.length; i2++) {
9646
- const c = chars.charCodeAt(i2);
9647
- intToChar[i2] = c;
9648
- charToInt[c] = i2;
9727
+ const c2 = chars.charCodeAt(i2);
9728
+ intToChar[i2] = c2;
9729
+ charToInt[c2] = i2;
9649
9730
  }
9650
9731
  function decode(mappings) {
9651
9732
  const state = new Int32Array(5);
@@ -9695,8 +9776,8 @@ function decodeInteger(mappings, pos, state, j) {
9695
9776
  let shift = 0;
9696
9777
  let integer = 0;
9697
9778
  do {
9698
- const c = mappings.charCodeAt(pos++);
9699
- integer = charToInt[c];
9779
+ const c2 = mappings.charCodeAt(pos++);
9780
+ integer = charToInt[c2];
9700
9781
  value |= (integer & 31) << shift;
9701
9782
  shift += 5;
9702
9783
  } while (integer & 32);
@@ -10185,7 +10266,7 @@ function parseErrorStacktrace(e, options = {}) {
10185
10266
  return stackFrames;
10186
10267
  }
10187
10268
  async function saveInlineSnapshots(environment, snapshots) {
10188
- const MagicString = (await import("./magic-string.es-6WMSFIAX.js")).default;
10269
+ const MagicString = (await import("./magic-string.es-6DE547FE.js")).default;
10189
10270
  const files = new Set(snapshots.map((i2) => i2.file));
10190
10271
  await Promise.all(Array.from(files).map(async (file) => {
10191
10272
  const snaps = snapshots.filter((i2) => i2.file === file);
@@ -10250,8 +10331,10 @@ ${indent}${quote}`;
10250
10331
  }
10251
10332
  var startRegex = /(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\S\s]*\*\/\s*|\/\/.*\s+)*\s*[\w_$]*(['"`\)])/m;
10252
10333
  function replaceInlineSnap(code, s, index2, newSnap) {
10253
- const startMatch = startRegex.exec(code.slice(index2));
10254
- if (!startMatch)
10334
+ const codeStartingAtIndex = code.slice(index2);
10335
+ const startMatch = startRegex.exec(codeStartingAtIndex);
10336
+ const firstKeywordMatch = /toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec(codeStartingAtIndex);
10337
+ if (!startMatch || startMatch.index !== (firstKeywordMatch == null ? void 0 : firstKeywordMatch.index))
10255
10338
  return replaceObjectSnap(code, s, index2, newSnap);
10256
10339
  const quote = startMatch[1];
10257
10340
  const startIndex = index2 + startMatch.index + startMatch[0].length;
@@ -10675,13 +10758,13 @@ var SnapshotClient = class {
10675
10758
  }
10676
10759
  };
10677
10760
 
10678
- // ../../node_modules/.pnpm/vitest@0.34.4_jsdom@20.0.3/node_modules/vitest/dist/vendor-tasks.f9d75aed.js
10761
+ // ../../node_modules/.pnpm/vitest@0.34.6_jsdom@20.0.3/node_modules/vitest/dist/vendor-tasks.f9d75aed.js
10679
10762
  init_cjs_shims();
10680
10763
  function getFullName(task, separator = " > ") {
10681
10764
  return getNames(task).join(separator);
10682
10765
  }
10683
10766
 
10684
- // ../../node_modules/.pnpm/@vitest+utils@0.34.4/node_modules/@vitest/utils/dist/source-map.js
10767
+ // ../../node_modules/.pnpm/@vitest+utils@0.34.6/node_modules/@vitest/utils/dist/source-map.js
10685
10768
  init_cjs_shims();
10686
10769
  function normalizeWindowsPath2(input = "") {
10687
10770
  if (!input || !input.includes("\\")) {
@@ -10783,9 +10866,9 @@ var chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
10783
10866
  var intToChar2 = new Uint8Array(64);
10784
10867
  var charToInt2 = new Uint8Array(128);
10785
10868
  for (let i2 = 0; i2 < chars2.length; i2++) {
10786
- const c = chars2.charCodeAt(i2);
10787
- intToChar2[i2] = c;
10788
- charToInt2[c] = i2;
10869
+ const c2 = chars2.charCodeAt(i2);
10870
+ intToChar2[i2] = c2;
10871
+ charToInt2[c2] = i2;
10789
10872
  }
10790
10873
  function decode2(mappings) {
10791
10874
  const state = new Int32Array(5);
@@ -10835,8 +10918,8 @@ function decodeInteger2(mappings, pos, state, j) {
10835
10918
  let shift = 0;
10836
10919
  let integer = 0;
10837
10920
  do {
10838
- const c = mappings.charCodeAt(pos++);
10839
- integer = charToInt2[c];
10921
+ const c2 = mappings.charCodeAt(pos++);
10922
+ integer = charToInt2[c2];
10840
10923
  value |= (integer & 31) << shift;
10841
10924
  shift += 5;
10842
10925
  } while (integer & 32);
@@ -11130,15 +11213,15 @@ function parseSingleV8Stack2(raw) {
11130
11213
  };
11131
11214
  }
11132
11215
 
11133
- // ../../node_modules/.pnpm/vitest@0.34.4_jsdom@20.0.3/node_modules/vitest/dist/vendor-vi.befc11a6.js
11216
+ // ../../node_modules/.pnpm/vitest@0.34.6_jsdom@20.0.3/node_modules/vitest/dist/vendor-vi.6873a1c1.js
11134
11217
  import require$$2 from "util";
11135
11218
 
11136
- // ../../node_modules/.pnpm/vitest@0.34.4_jsdom@20.0.3/node_modules/vitest/dist/vendor-date.6e993429.js
11219
+ // ../../node_modules/.pnpm/vitest@0.34.6_jsdom@20.0.3/node_modules/vitest/dist/vendor-date.6e993429.js
11137
11220
  init_cjs_shims();
11138
11221
  var RealDate = Date;
11139
11222
  var now2 = null;
11140
11223
  var MockDate = class extends RealDate {
11141
- constructor(y2, m2, d, h, M2, s, ms) {
11224
+ constructor(y, m, d, h, M2, s, ms) {
11142
11225
  super();
11143
11226
  let date;
11144
11227
  switch (arguments.length) {
@@ -11149,7 +11232,7 @@ var MockDate = class extends RealDate {
11149
11232
  date = new RealDate();
11150
11233
  break;
11151
11234
  case 1:
11152
- date = new RealDate(y2);
11235
+ date = new RealDate(y);
11153
11236
  break;
11154
11237
  default:
11155
11238
  d = typeof d === "undefined" ? 1 : d;
@@ -11157,7 +11240,7 @@ var MockDate = class extends RealDate {
11157
11240
  M2 = M2 || 0;
11158
11241
  s = s || 0;
11159
11242
  ms = ms || 0;
11160
- date = new RealDate(y2, m2, d, h, M2, s, ms);
11243
+ date = new RealDate(y, m, d, h, M2, s, ms);
11161
11244
  break;
11162
11245
  }
11163
11246
  return date;
@@ -11184,7 +11267,7 @@ function resetDate() {
11184
11267
  globalThis.Date = RealDate;
11185
11268
  }
11186
11269
 
11187
- // ../../node_modules/.pnpm/vitest@0.34.4_jsdom@20.0.3/node_modules/vitest/dist/vendor-vi.befc11a6.js
11270
+ // ../../node_modules/.pnpm/vitest@0.34.6_jsdom@20.0.3/node_modules/vitest/dist/vendor-vi.6873a1c1.js
11188
11271
  function resetModules(modules, resetMocks = false) {
11189
11272
  const skipPaths = [
11190
11273
  // Vitest
@@ -11964,11 +12047,11 @@ var lib = {
11964
12047
  return 0;
11965
12048
  }
11966
12049
  const strings = str.split(":");
11967
- const l2 = strings.length;
11968
- let i2 = l2;
12050
+ const l = strings.length;
12051
+ let i2 = l;
11969
12052
  let ms = 0;
11970
12053
  let parsed;
11971
- if (l2 > 3 || !/^(\d\d:){0,2}\d\d?$/.test(str)) {
12054
+ if (l > 3 || !/^(\d\d:){0,2}\d\d?$/.test(str)) {
11972
12055
  throw new Error(
11973
12056
  "tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits"
11974
12057
  );
@@ -11978,7 +12061,7 @@ var lib = {
11978
12061
  if (parsed >= 60) {
11979
12062
  throw new Error(`Invalid time ${str}`);
11980
12063
  }
11981
- ms += parsed * Math.pow(60, l2 - i2 - 1);
12064
+ ms += parsed * Math.pow(60, l - i2 - 1);
11982
12065
  }
11983
12066
  return ms * 1e3;
11984
12067
  }
@@ -12341,10 +12424,10 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
12341
12424
  }
12342
12425
  }
12343
12426
  function uninstall(clock, config2) {
12344
- let method, i2, l2;
12427
+ let method, i2, l;
12345
12428
  const installedHrTime = "_hrtime";
12346
12429
  const installedNextTick = "_nextTick";
12347
- for (i2 = 0, l2 = clock.methods.length; i2 < l2; i2++) {
12430
+ for (i2 = 0, l = clock.methods.length; i2 < l; i2++) {
12348
12431
  method = clock.methods[i2];
12349
12432
  if (method === "hrtime" && _global.process) {
12350
12433
  _global.process.hrtime = clock[installedHrTime];
@@ -12933,7 +13016,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
12933
13016
  "config.target is no longer supported. Use `withGlobal(target)` instead."
12934
13017
  );
12935
13018
  }
12936
- let i2, l2;
13019
+ let i2, l;
12937
13020
  const clock = createClock(config2.now, config2.loopLimit);
12938
13021
  clock.shouldClearNativeTimers = config2.shouldClearNativeTimers;
12939
13022
  clock.uninstall = function() {
@@ -12981,7 +13064,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
12981
13064
  if (_global === globalObject2 && timersModule) {
12982
13065
  clock.timersModuleMethods = [];
12983
13066
  }
12984
- for (i2 = 0, l2 = clock.methods.length; i2 < l2; i2++) {
13067
+ for (i2 = 0, l = clock.methods.length; i2 < l; i2++) {
12985
13068
  const nameOfMethodToReplace = clock.methods[i2];
12986
13069
  if (nameOfMethodToReplace === "hrtime") {
12987
13070
  if (_global.process && typeof _global.process.hrtime === "function") {
@@ -13143,6 +13226,9 @@ var FakeTimers = class {
13143
13226
  configure(config2) {
13144
13227
  this._userConfig = config2;
13145
13228
  }
13229
+ isFakeTimers() {
13230
+ return this._fakingTime;
13231
+ }
13146
13232
  _checkFakeTimers() {
13147
13233
  if (!this._fakingTime) {
13148
13234
  throw new Error(
@@ -13152,6 +13238,123 @@ var FakeTimers = class {
13152
13238
  return this._fakingTime;
13153
13239
  }
13154
13240
  };
13241
+ function copyStackTrace(target, source) {
13242
+ if (source.stack !== void 0)
13243
+ target.stack = source.stack.replace(source.message, target.message);
13244
+ return target;
13245
+ }
13246
+ function waitFor(callback, options = {}) {
13247
+ const { setTimeout, setInterval, clearTimeout, clearInterval } = getSafeTimers();
13248
+ const { interval = 50, timeout = 1e3 } = typeof options === "number" ? { timeout: options } : options;
13249
+ const STACK_TRACE_ERROR = new Error("STACK_TRACE_ERROR");
13250
+ return new Promise((resolve2, reject) => {
13251
+ let lastError;
13252
+ let promiseStatus = "idle";
13253
+ let timeoutId;
13254
+ let intervalId;
13255
+ const onResolve = (result) => {
13256
+ if (timeoutId)
13257
+ clearTimeout(timeoutId);
13258
+ if (intervalId)
13259
+ clearInterval(intervalId);
13260
+ resolve2(result);
13261
+ };
13262
+ const handleTimeout = () => {
13263
+ let error = lastError;
13264
+ if (!error)
13265
+ error = copyStackTrace(new Error("Timed out in waitFor!"), STACK_TRACE_ERROR);
13266
+ reject(error);
13267
+ };
13268
+ const checkCallback = () => {
13269
+ if (vi.isFakeTimers())
13270
+ vi.advanceTimersByTime(interval);
13271
+ if (promiseStatus === "pending")
13272
+ return;
13273
+ try {
13274
+ const result = callback();
13275
+ if (result !== null && typeof result === "object" && typeof result.then === "function") {
13276
+ const thenable = result;
13277
+ promiseStatus = "pending";
13278
+ thenable.then(
13279
+ (resolvedValue) => {
13280
+ promiseStatus = "resolved";
13281
+ onResolve(resolvedValue);
13282
+ },
13283
+ (rejectedValue) => {
13284
+ promiseStatus = "rejected";
13285
+ lastError = rejectedValue;
13286
+ }
13287
+ );
13288
+ } else {
13289
+ onResolve(result);
13290
+ return true;
13291
+ }
13292
+ } catch (error) {
13293
+ lastError = error;
13294
+ }
13295
+ };
13296
+ if (checkCallback() === true)
13297
+ return;
13298
+ timeoutId = setTimeout(handleTimeout, timeout);
13299
+ intervalId = setInterval(checkCallback, interval);
13300
+ });
13301
+ }
13302
+ function waitUntil(callback, options = {}) {
13303
+ const { setTimeout, setInterval, clearTimeout, clearInterval } = getSafeTimers();
13304
+ const { interval = 50, timeout = 1e3 } = typeof options === "number" ? { timeout: options } : options;
13305
+ const STACK_TRACE_ERROR = new Error("STACK_TRACE_ERROR");
13306
+ return new Promise((resolve2, reject) => {
13307
+ let promiseStatus = "idle";
13308
+ let timeoutId;
13309
+ let intervalId;
13310
+ const onReject = (error) => {
13311
+ if (!error)
13312
+ error = copyStackTrace(new Error("Timed out in waitUntil!"), STACK_TRACE_ERROR);
13313
+ reject(error);
13314
+ };
13315
+ const onResolve = (result) => {
13316
+ if (!result)
13317
+ return;
13318
+ if (timeoutId)
13319
+ clearTimeout(timeoutId);
13320
+ if (intervalId)
13321
+ clearInterval(intervalId);
13322
+ resolve2(result);
13323
+ return true;
13324
+ };
13325
+ const checkCallback = () => {
13326
+ if (vi.isFakeTimers())
13327
+ vi.advanceTimersByTime(interval);
13328
+ if (promiseStatus === "pending")
13329
+ return;
13330
+ try {
13331
+ const result = callback();
13332
+ if (result !== null && typeof result === "object" && typeof result.then === "function") {
13333
+ const thenable = result;
13334
+ promiseStatus = "pending";
13335
+ thenable.then(
13336
+ (resolvedValue) => {
13337
+ promiseStatus = "resolved";
13338
+ onResolve(resolvedValue);
13339
+ },
13340
+ (rejectedValue) => {
13341
+ promiseStatus = "rejected";
13342
+ onReject(rejectedValue);
13343
+ }
13344
+ );
13345
+ } else {
13346
+ return onResolve(result);
13347
+ }
13348
+ } catch (error) {
13349
+ onReject(error);
13350
+ }
13351
+ };
13352
+ if (checkCallback() === true)
13353
+ return;
13354
+ timeoutId = setTimeout(onReject, timeout);
13355
+ intervalId = setInterval(checkCallback, interval);
13356
+ });
13357
+ }
13155
13358
  function createVitest() {
13156
13359
  const _mocker = typeof __vitest_mocker__ !== "undefined" ? __vitest_mocker__ : new Proxy({}, {
13157
13360
  get(_, name) {
@@ -13190,6 +13393,9 @@ function createVitest() {
13190
13393
  _timers.useFakeTimers();
13191
13394
  return utils;
13192
13395
  },
13396
+ isFakeTimers() {
13397
+ return _timers.isFakeTimers();
13398
+ },
13193
13399
  useRealTimers() {
13194
13400
  _timers.useRealTimers();
13195
13401
  _mockedDate = null;
@@ -13253,6 +13459,8 @@ function createVitest() {
13253
13459
  // mocks
13254
13460
  spyOn,
13255
13461
  fn,
13462
+ waitFor,
13463
+ waitUntil,
13256
13464
  hoisted(factory) {
13257
13465
  assertTypes(factory, '"vi.hoisted" factory', ["function"]);
13258
13466
  return factory();
@@ -13361,10 +13569,10 @@ function createVitest() {
13361
13569
  var vitest = createVitest();
13362
13570
  var vi = vitest;
13363
13571
 
13364
- // ../../node_modules/.pnpm/vitest@0.34.4_jsdom@20.0.3/node_modules/vitest/dist/index.js
13572
+ // ../../node_modules/.pnpm/vitest@0.34.6_jsdom@20.0.3/node_modules/vitest/dist/index.js
13365
13573
  init_cjs_shims();
13366
13574
 
13367
- // ../../node_modules/.pnpm/vitest@0.34.4_jsdom@20.0.3/node_modules/vitest/dist/vendor-run-once.3e5ef7d7.js
13575
+ // ../../node_modules/.pnpm/vitest@0.34.6_jsdom@20.0.3/node_modules/vitest/dist/vendor-run-once.3e5ef7d7.js
13368
13576
  init_cjs_shims();
13369
13577
  var filesCount = /* @__PURE__ */ new Map();
13370
13578
  var cache = /* @__PURE__ */ new Map();
@@ -13387,7 +13595,7 @@ function isFirstRun() {
13387
13595
  return firstRun;
13388
13596
  }
13389
13597
 
13390
- // ../../node_modules/.pnpm/vitest@0.34.4_jsdom@20.0.3/node_modules/vitest/dist/vendor-index.e951dd92.js
13598
+ // ../../node_modules/.pnpm/vitest@0.34.6_jsdom@20.0.3/node_modules/vitest/dist/vendor-index.7646b3af.js
13391
13599
  init_cjs_shims();
13392
13600
  function getRunningMode() {
13393
13601
  return process.env.VITEST_MODE === "WATCH" ? "watch" : "run";
@@ -13476,7 +13684,7 @@ var index = /* @__PURE__ */ Object.freeze({
13476
13684
  vitest
13477
13685
  });
13478
13686
 
13479
- // ../../node_modules/.pnpm/vitest@0.34.4_jsdom@20.0.3/node_modules/vitest/dist/index.js
13687
+ // ../../node_modules/.pnpm/vitest@0.34.6_jsdom@20.0.3/node_modules/vitest/dist/index.js
13480
13688
  var expectTypeOf = dist.expectTypeOf;
13481
13689
 
13482
13690
  export {
@@ -13965,6 +14173,8 @@ chai/lib/chai/assertion.js:
13965
14173
  * from within another assertion. It's also temporarily set to `true` before
13966
14174
  * an overwritten assertion gets called by the overwriting assertion.
13967
14175
  *
14176
+ * - `eql`: This flag contains the deepEqual function to be used by the assertion.
14177
+ *
13968
14178
  * @param {Mixed} obj target of the assertion
13969
14179
  * @param {String} msg (optional) custom error message
13970
14180
  * @param {Function} ssfi (optional) starting point for removing stack frames