@ggui-ai/ui-gen 0.10.0 → 0.12.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 (35) hide show
  1. package/dist/adapters/generation-dispatch.js +328 -24
  2. package/dist/adapters/generation-dispatch.js.map +1 -1
  3. package/dist/advanced/index.d.ts +1 -1
  4. package/dist/advanced/index.js +333 -29
  5. package/dist/advanced/index.js.map +1 -1
  6. package/dist/blueprint-validator.js +307 -3
  7. package/dist/blueprint-validator.js.map +1 -1
  8. package/dist/boilerplate.js +7 -7
  9. package/dist/boilerplate.js.map +1 -1
  10. package/dist/check/index.js +27 -11
  11. package/dist/check/index.js.map +1 -1
  12. package/dist/harness/check/runtime-render/index.d.ts +1 -1
  13. package/dist/harness/check/runtime-render/index.js +307 -3
  14. package/dist/harness/check/runtime-render/index.js.map +1 -1
  15. package/dist/harness/check/runtime-render/render-check-worker.d.ts +2 -0
  16. package/dist/harness/check/runtime-render/render-check-worker.js +1458 -0
  17. package/dist/harness/check/runtime-render/render-check-worker.js.map +1 -0
  18. package/dist/harness/index.js +7 -7
  19. package/dist/harness/index.js.map +1 -1
  20. package/dist/harness/runtime.js +7 -7
  21. package/dist/harness/runtime.js.map +1 -1
  22. package/dist/harness/types-public.js +7 -7
  23. package/dist/harness/types-public.js.map +1 -1
  24. package/dist/index.js +327 -23
  25. package/dist/index.js.map +1 -1
  26. package/dist/provider-adapter-contract.js +1161 -387
  27. package/dist/provider-adapter-contract.js.map +1 -1
  28. package/dist/{render-check-BNYGVDJd.d.ts → render-check-WfOVO9kU.d.ts} +21 -1
  29. package/package.json +12 -12
  30. package/src/boilerplate/system-prompt.ts +7 -7
  31. package/src/check/run-tier0.ts +35 -16
  32. package/src/harness/check/runtime-render/adapter.ts +28 -0
  33. package/src/harness/check/runtime-render/render-check-host.ts +201 -0
  34. package/src/harness/check/runtime-render/render-check-worker.ts +80 -0
  35. package/src/harness/check/runtime-render/render-check.ts +264 -1
@@ -596,7 +596,7 @@ function getRelativePath(from, to) {
596
596
  }
597
597
  return fromParts.concat(toParts).join("/");
598
598
  }
599
- function isObject2(thing) {
599
+ function isObject3(thing) {
600
600
  return toString4.call(thing) === "[object Object]";
601
601
  }
602
602
  function getLocator(source) {
@@ -1027,7 +1027,7 @@ var init_magic_string_es = __esm({
1027
1027
  }
1028
1028
  indent(indentStr, options) {
1029
1029
  const pattern = /^[^\r\n]/gm;
1030
- if (isObject2(indentStr)) {
1030
+ if (isObject3(indentStr)) {
1031
1031
  options = indentStr;
1032
1032
  indentStr = void 0;
1033
1033
  }
@@ -1347,10 +1347,10 @@ var init_magic_string_es = __esm({
1347
1347
  }
1348
1348
  // TODO deprecate this? not really very useful
1349
1349
  snip(start, end) {
1350
- const clone2 = this.clone();
1351
- clone2.remove(0, start);
1352
- clone2.remove(end, clone2.original.length);
1353
- return clone2;
1350
+ const clone3 = this.clone();
1351
+ clone3.remove(0, start);
1352
+ clone3.remove(end, clone3.original.length);
1353
+ return clone3;
1354
1354
  }
1355
1355
  _split(index2) {
1356
1356
  if (this.byStart[index2] || this.byEnd[index2]) return;
@@ -1565,7 +1565,7 @@ var init_magic_string_es = __esm({
1565
1565
  separator: this.separator
1566
1566
  });
1567
1567
  }
1568
- if (!isObject2(source) || !source.content) {
1568
+ if (!isObject3(source) || !source.content) {
1569
1569
  throw new Error(
1570
1570
  "bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`"
1571
1571
  );
@@ -3270,7 +3270,7 @@ function normaliseOptions({
3270
3270
  // eslint-disable-next-line no-shadow
3271
3271
  truncate: truncate3 = Infinity,
3272
3272
  stylize = String
3273
- } = {}, inspect4) {
3273
+ } = {}, inspect5) {
3274
3274
  const options = {
3275
3275
  showHidden: Boolean(showHidden),
3276
3276
  depth: Number(depth),
@@ -3281,7 +3281,7 @@ function normaliseOptions({
3281
3281
  breakLength: Number(breakLength),
3282
3282
  truncate: Number(truncate3),
3283
3283
  seen,
3284
- inspect: inspect4,
3284
+ inspect: inspect5,
3285
3285
  stylize
3286
3286
  };
3287
3287
  if (options.colors) {
@@ -3764,7 +3764,7 @@ function inspect(value, opts = {}) {
3764
3764
  return options.stylize(String(value), type3);
3765
3765
  }
3766
3766
 
3767
- // ../../node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
3767
+ // ../../node_modules/vitest/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
3768
3768
  var { AsymmetricMatcher, DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent } = plugins;
3769
3769
  var PLUGINS = [
3770
3770
  ReactTestComponent,
@@ -3896,33 +3896,11 @@ function inspect2(obj, options = {}) {
3896
3896
  }
3897
3897
  return inspect(obj, options);
3898
3898
  }
3899
- function objDisplay(obj, options = {}) {
3900
- if (typeof options.truncate === "undefined") {
3901
- options.truncate = 40;
3902
- }
3903
- const str = inspect2(obj, options);
3904
- const type3 = Object.prototype.toString.call(obj);
3905
- if (options.truncate && str.length >= options.truncate) {
3906
- if (type3 === "[object Function]") {
3907
- const fn2 = obj;
3908
- return !fn2.name ? "[Function]" : `[Function: ${fn2.name}]`;
3909
- } else if (type3 === "[object Array]") {
3910
- return `[ Array(${obj.length}) ]`;
3911
- } else if (type3 === "[object Object]") {
3912
- const keys2 = Object.keys(obj);
3913
- const kstr = keys2.length > 2 ? `${keys2.splice(0, 2).join(", ")}, ...` : keys2.join(", ");
3914
- return `{ Object (${kstr}) }`;
3915
- } else {
3916
- return str;
3917
- }
3918
- }
3919
- return str;
3920
- }
3921
3899
  function getDefaultExportFromCjs2(x2) {
3922
3900
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
3923
3901
  }
3924
3902
 
3925
- // ../../node_modules/@vitest/utils/dist/helpers.js
3903
+ // ../../node_modules/vitest/node_modules/@vitest/utils/dist/helpers.js
3926
3904
  function createSimpleStackTrace(options) {
3927
3905
  const { message = "$$stack trace error", stackTraceLimit = 1 } = options || {};
3928
3906
  const limit = Error.stackTraceLimit;
@@ -3942,15 +3920,6 @@ function assertTypes(value, name, types) {
3942
3920
  throw new TypeError(`${name} value must be ${types.join(" or ")}, received "${receivedType}"`);
3943
3921
  }
3944
3922
  }
3945
- function toArray(array2) {
3946
- if (array2 === null || array2 === void 0) {
3947
- array2 = [];
3948
- }
3949
- if (Array.isArray(array2)) {
3950
- return array2;
3951
- }
3952
- return [array2];
3953
- }
3954
3923
  function isObject(item) {
3955
3924
  return item != null && typeof item === "object" && !Array.isArray(item);
3956
3925
  }
@@ -4028,40 +3997,8 @@ function clone(val, seen, options = defaultCloneOptions) {
4028
3997
  }
4029
3998
  function noop() {
4030
3999
  }
4031
- function objectAttr(source, path, defaultValue = void 0) {
4032
- const paths = path.replace(/\[(\d+)\]/g, ".$1").split(".");
4033
- let result = source;
4034
- for (const p5 of paths) {
4035
- result = new Object(result)[p5];
4036
- if (result === void 0) {
4037
- return defaultValue;
4038
- }
4039
- }
4040
- return result;
4041
- }
4042
- function createDefer() {
4043
- let resolve4 = null;
4044
- let reject = null;
4045
- const p5 = new Promise((_resolve, _reject) => {
4046
- resolve4 = _resolve;
4047
- reject = _reject;
4048
- });
4049
- p5.resolve = resolve4;
4050
- p5.reject = reject;
4051
- return p5;
4052
- }
4053
- function isNegativeNaN(val) {
4054
- if (!Number.isNaN(val)) {
4055
- return false;
4056
- }
4057
- const f64 = new Float64Array(1);
4058
- f64[0] = val;
4059
- const u32 = new Uint32Array(f64.buffer);
4060
- const isNegative = u32[1] >>> 31 === 1;
4061
- return isNegative;
4062
- }
4063
4000
 
4064
- // ../../node_modules/@vitest/utils/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
4001
+ // ../../node_modules/vitest/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
4065
4002
  var f2 = {
4066
4003
  reset: [0, 0],
4067
4004
  bold: [1, 22, "\x1B[22m\x1B[1m"],
@@ -4142,7 +4079,7 @@ function p2(n2 = false) {
4142
4079
  var r2 = process.env.FORCE_TTY !== void 0 || isatty(1);
4143
4080
  var u2 = p2(r2);
4144
4081
 
4145
- // ../../node_modules/@vitest/utils/dist/index.js
4082
+ // ../../node_modules/vitest/node_modules/@vitest/utils/dist/index.js
4146
4083
  var jsTokens_1;
4147
4084
  var hasRequiredJsTokens;
4148
4085
  function requireJsTokens() {
@@ -4605,7 +4542,7 @@ function getSafeTimers() {
4605
4542
  };
4606
4543
  }
4607
4544
 
4608
- // ../../node_modules/@vitest/utils/dist/diff.js
4545
+ // ../../node_modules/vitest/node_modules/@vitest/utils/dist/diff.js
4609
4546
  var DIFF_DELETE = -1;
4610
4547
  var DIFF_INSERT = 1;
4611
4548
  var DIFF_EQUAL = 0;
@@ -6201,116 +6138,35 @@ function getCommonAndChangedSubstrings(diffs, op, hasCommonDiff2) {
6201
6138
  return diffs.reduce((reduced, diff2) => reduced + (diff2[0] === DIFF_EQUAL ? diff2[1] : diff2[0] === op ? hasCommonDiff2 ? u2.inverse(diff2[1]) : diff2[1] : ""), "");
6202
6139
  }
6203
6140
 
6204
- // ../../node_modules/vitest/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
6205
- var f3 = {
6206
- reset: [0, 0],
6207
- bold: [1, 22, "\x1B[22m\x1B[1m"],
6208
- dim: [2, 22, "\x1B[22m\x1B[2m"],
6209
- italic: [3, 23],
6210
- underline: [4, 24],
6211
- inverse: [7, 27],
6212
- hidden: [8, 28],
6213
- strikethrough: [9, 29],
6214
- black: [30, 39],
6215
- red: [31, 39],
6216
- green: [32, 39],
6217
- yellow: [33, 39],
6218
- blue: [34, 39],
6219
- magenta: [35, 39],
6220
- cyan: [36, 39],
6221
- white: [37, 39],
6222
- gray: [90, 39],
6223
- bgBlack: [40, 49],
6224
- bgRed: [41, 49],
6225
- bgGreen: [42, 49],
6226
- bgYellow: [43, 49],
6227
- bgBlue: [44, 49],
6228
- bgMagenta: [45, 49],
6229
- bgCyan: [46, 49],
6230
- bgWhite: [47, 49],
6231
- blackBright: [90, 39],
6232
- redBright: [91, 39],
6233
- greenBright: [92, 39],
6234
- yellowBright: [93, 39],
6235
- blueBright: [94, 39],
6236
- magentaBright: [95, 39],
6237
- cyanBright: [96, 39],
6238
- whiteBright: [97, 39],
6239
- bgBlackBright: [100, 49],
6240
- bgRedBright: [101, 49],
6241
- bgGreenBright: [102, 49],
6242
- bgYellowBright: [103, 49],
6243
- bgBlueBright: [104, 49],
6244
- bgMagentaBright: [105, 49],
6245
- bgCyanBright: [106, 49],
6246
- bgWhiteBright: [107, 49]
6247
- };
6248
- var h3 = Object.entries(f3);
6249
- function a3(n2) {
6250
- return String(n2);
6251
- }
6252
- a3.open = "";
6253
- a3.close = "";
6254
- function C3(n2 = false) {
6255
- let e = typeof process != "undefined" ? process : void 0, i = (e == null ? void 0 : e.env) || {}, g = (e == null ? void 0 : e.argv) || [];
6256
- return !("NO_COLOR" in i || g.includes("--no-color")) && ("FORCE_COLOR" in i || g.includes("--color") || (e == null ? void 0 : e.platform) === "win32" || n2 && i.TERM !== "dumb" || "CI" in i) || typeof window != "undefined" && !!window.chrome;
6257
- }
6258
- function p3(n2 = false) {
6259
- let e = C3(n2), i = (r4, t, c, o) => {
6260
- let l2 = "", s4 = 0;
6261
- do
6262
- l2 += r4.substring(s4, o) + c, s4 = o + t.length, o = r4.indexOf(t, s4);
6263
- while (~o);
6264
- return l2 + r4.substring(s4);
6265
- }, g = (r4, t, c = r4) => {
6266
- let o = (l2) => {
6267
- let s4 = String(l2), b2 = s4.indexOf(t, r4.length);
6268
- return ~b2 ? r4 + i(s4, t, c, b2) + t : r4 + s4 + t;
6269
- };
6270
- return o.open = r4, o.close = t, o;
6271
- }, u5 = {
6272
- isColorSupported: e
6273
- }, d = (r4) => `\x1B[${r4}m`;
6274
- for (let [r4, t] of h3)
6275
- u5[r4] = e ? g(
6276
- d(t[0]),
6277
- d(t[1]),
6278
- t[2]
6279
- ) : a3;
6280
- return u5;
6281
- }
6282
- var r3 = process.env.FORCE_TTY !== void 0 || isatty(1);
6283
- var u3 = p3(r3);
6284
-
6285
6141
  // ../../node_modules/tinyspy/dist/index.js
6286
6142
  function S(e, t) {
6287
6143
  if (!e)
6288
6144
  throw new Error(t);
6289
6145
  }
6290
- function f4(e, t) {
6146
+ function f3(e, t) {
6291
6147
  return typeof t === e;
6292
6148
  }
6293
6149
  function w(e) {
6294
6150
  return e instanceof Promise;
6295
6151
  }
6296
- function u4(e, t, r4) {
6152
+ function u3(e, t, r4) {
6297
6153
  Object.defineProperty(e, t, r4);
6298
6154
  }
6299
6155
  function l(e, t, r4) {
6300
- u4(e, t, { value: r4, configurable: true, writable: true });
6156
+ u3(e, t, { value: r4, configurable: true, writable: true });
6301
6157
  }
6302
6158
  var y = /* @__PURE__ */ Symbol.for("tinyspy:spy");
6303
6159
  var x = /* @__PURE__ */ new Set();
6304
- var h4 = (e) => {
6160
+ var h3 = (e) => {
6305
6161
  e.called = false, e.callCount = 0, e.calls = [], e.results = [], e.resolves = [], e.next = [];
6306
6162
  };
6307
- var k = (e) => (u4(e, y, {
6308
- value: { reset: () => h4(e[y]) }
6163
+ var k = (e) => (u3(e, y, {
6164
+ value: { reset: () => h3(e[y]) }
6309
6165
  }), e[y]);
6310
6166
  var T = (e) => e[y] || k(e);
6311
6167
  function R(e) {
6312
6168
  S(
6313
- f4("function", e) || f4("undefined", e),
6169
+ f3("function", e) || f3("undefined", e),
6314
6170
  "cannot spy on a non-function value"
6315
6171
  );
6316
6172
  let t = function(...s4) {
@@ -6361,14 +6217,14 @@ var P = (e, t) => {
6361
6217
  };
6362
6218
  function M(e, t, r4) {
6363
6219
  S(
6364
- !f4("undefined", e),
6220
+ !f3("undefined", e),
6365
6221
  "spyOn could not find an object to spy upon"
6366
6222
  ), S(
6367
- f4("object", e) || f4("function", e),
6223
+ f3("object", e) || f3("function", e),
6368
6224
  "cannot spyOn on a primitive value"
6369
6225
  );
6370
6226
  let [s4, n2] = (() => {
6371
- if (!f4("object", t))
6227
+ if (!f3("object", t))
6372
6228
  return [t, "value"];
6373
6229
  if ("getter" in t && "setter" in t)
6374
6230
  throw new Error("cannot spy on both getter and setter");
@@ -6391,9 +6247,9 @@ function M(e, t, r4) {
6391
6247
  configurable: true,
6392
6248
  writable: true
6393
6249
  };
6394
- n2 !== "value" && delete O.writable, O[n2] = I, u4(e, s4, O);
6250
+ n2 !== "value" && delete O.writable, O[n2] = I, u3(e, s4, O);
6395
6251
  }, a5 = () => {
6396
- d !== e ? Reflect.deleteProperty(e, s4) : o && !p5 ? u4(e, s4, o) : g(p5);
6252
+ d !== e ? Reflect.deleteProperty(e, s4) : o && !p5 ? u3(e, s4, o) : g(p5);
6397
6253
  };
6398
6254
  r4 || (r4 = p5);
6399
6255
  let i = E(R(r4), r4);
@@ -6431,7 +6287,7 @@ function E(e, t) {
6431
6287
  let { properties: r4, descriptors: s4 } = D(t);
6432
6288
  for (let n2 of r4) {
6433
6289
  let d = s4[n2];
6434
- b(e, n2) || u4(e, n2, d);
6290
+ b(e, n2) || u3(e, n2, d);
6435
6291
  }
6436
6292
  return e;
6437
6293
  }
@@ -6629,7 +6485,7 @@ function getDescriptor(obj, method) {
6629
6485
  }
6630
6486
  }
6631
6487
 
6632
- // ../../node_modules/@vitest/utils/dist/error.js
6488
+ // ../../node_modules/vitest/node_modules/@vitest/utils/dist/error.js
6633
6489
  var IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@";
6634
6490
  var IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@";
6635
6491
  function isImmutable(v2) {
@@ -6701,35 +6557,35 @@ function serializeValue(val, seen = /* @__PURE__ */ new WeakMap()) {
6701
6557
  return seen.get(val);
6702
6558
  }
6703
6559
  if (Array.isArray(val)) {
6704
- const clone2 = new Array(val.length);
6705
- seen.set(val, clone2);
6560
+ const clone3 = new Array(val.length);
6561
+ seen.set(val, clone3);
6706
6562
  val.forEach((e, i) => {
6707
6563
  try {
6708
- clone2[i] = serializeValue(e, seen);
6564
+ clone3[i] = serializeValue(e, seen);
6709
6565
  } catch (err) {
6710
- clone2[i] = getUnserializableMessage(err);
6566
+ clone3[i] = getUnserializableMessage(err);
6711
6567
  }
6712
6568
  });
6713
- return clone2;
6569
+ return clone3;
6714
6570
  } else {
6715
- const clone2 = /* @__PURE__ */ Object.create(null);
6716
- seen.set(val, clone2);
6571
+ const clone3 = /* @__PURE__ */ Object.create(null);
6572
+ seen.set(val, clone3);
6717
6573
  let obj = val;
6718
6574
  while (obj && obj !== OBJECT_PROTO) {
6719
6575
  Object.getOwnPropertyNames(obj).forEach((key) => {
6720
- if (key in clone2) {
6576
+ if (key in clone3) {
6721
6577
  return;
6722
6578
  }
6723
6579
  try {
6724
- clone2[key] = serializeValue(val[key], seen);
6580
+ clone3[key] = serializeValue(val[key], seen);
6725
6581
  } catch (err) {
6726
- delete clone2[key];
6727
- clone2[key] = getUnserializableMessage(err);
6582
+ delete clone3[key];
6583
+ clone3[key] = getUnserializableMessage(err);
6728
6584
  }
6729
6585
  });
6730
6586
  obj = Object.getPrototypeOf(obj);
6731
6587
  }
6732
- return clone2;
6588
+ return clone3;
6733
6589
  }
6734
6590
  }
6735
6591
  function safe(fn2) {
@@ -8563,11 +8419,11 @@ function getOperator(obj, args) {
8563
8419
  if (/\shave\s/.test(msg)) {
8564
8420
  return void 0;
8565
8421
  }
8566
- let isObject4 = isObjectType(expected);
8422
+ let isObject5 = isObjectType(expected);
8567
8423
  if (/\snot\s/.test(msg)) {
8568
- return isObject4 ? "notDeepStrictEqual" : "notStrictEqual";
8424
+ return isObject5 ? "notDeepStrictEqual" : "notStrictEqual";
8569
8425
  }
8570
- return isObject4 ? "deepStrictEqual" : "strictEqual";
8426
+ return isObject5 ? "deepStrictEqual" : "strictEqual";
8571
8427
  }
8572
8428
  __name(getOperator, "getOperator");
8573
8429
  function getName(fn2) {
@@ -10847,11 +10703,11 @@ ${printReceived3(actual)}`
10847
10703
  };
10848
10704
  }
10849
10705
  };
10850
- var EXPECTED_COLOR = u3.green;
10851
- var RECEIVED_COLOR = u3.red;
10852
- var INVERTED_COLOR = u3.inverse;
10853
- var BOLD_WEIGHT = u3.bold;
10854
- var DIM_COLOR = u3.dim;
10706
+ var EXPECTED_COLOR = u2.green;
10707
+ var RECEIVED_COLOR = u2.red;
10708
+ var INVERTED_COLOR = u2.inverse;
10709
+ var BOLD_WEIGHT = u2.bold;
10710
+ var DIM_COLOR = u2.dim;
10855
10711
  function matcherHint(matcherName, received = "received", expected = "expected", options = {}) {
10856
10712
  const { comment = "", isDirectExpectCall = false, isNot = false, promise = "", secondArgument = "", expectedColor = EXPECTED_COLOR, receivedColor = RECEIVED_COLOR, secondArgumentColor = EXPECTED_COLOR } = options;
10857
10713
  let hint = "";
@@ -12319,12 +12175,12 @@ function ordinalOf(i) {
12319
12175
  }
12320
12176
  function formatCalls(spy, msg, showActualCall) {
12321
12177
  if (spy.mock.calls.length) {
12322
- msg += u3.gray(`
12178
+ msg += u2.gray(`
12323
12179
 
12324
12180
  Received:
12325
12181
 
12326
12182
  ${spy.mock.calls.map((callArg, i) => {
12327
- let methodCall = u3.bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call:
12183
+ let methodCall = u2.bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call:
12328
12184
 
12329
12185
  `);
12330
12186
  if (showActualCall) {
@@ -12336,20 +12192,20 @@ ${spy.mock.calls.map((callArg, i) => {
12336
12192
  return methodCall;
12337
12193
  }).join("\n")}`);
12338
12194
  }
12339
- msg += u3.gray(`
12195
+ msg += u2.gray(`
12340
12196
 
12341
- Number of calls: ${u3.bold(spy.mock.calls.length)}
12197
+ Number of calls: ${u2.bold(spy.mock.calls.length)}
12342
12198
  `);
12343
12199
  return msg;
12344
12200
  }
12345
12201
  function formatReturns(spy, results, msg, showActualReturn) {
12346
12202
  if (results.length) {
12347
- msg += u3.gray(`
12203
+ msg += u2.gray(`
12348
12204
 
12349
12205
  Received:
12350
12206
 
12351
12207
  ${results.map((callReturn, i) => {
12352
- let methodCall = u3.bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call return:
12208
+ let methodCall = u2.bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call return:
12353
12209
 
12354
12210
  `);
12355
12211
  if (showActualReturn) {
@@ -12361,9 +12217,9 @@ ${results.map((callReturn, i) => {
12361
12217
  return methodCall;
12362
12218
  }).join("\n")}`);
12363
12219
  }
12364
- msg += u3.gray(`
12220
+ msg += u2.gray(`
12365
12221
 
12366
- Number of calls: ${u3.bold(spy.mock.calls.length)}
12222
+ Number of calls: ${u2.bold(spy.mock.calls.length)}
12367
12223
  `);
12368
12224
  return msg;
12369
12225
  }
@@ -12469,115 +12325,823 @@ var JestExtend = (chai2, utils) => {
12469
12325
  use(JestExtendPlugin(chai2, expect2, expects));
12470
12326
  });
12471
12327
  };
12472
- var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
12473
- var intToChar = new Uint8Array(64);
12474
- var charToInt = new Uint8Array(128);
12475
- for (let i = 0; i < chars.length; i++) {
12476
- const c = chars.charCodeAt(i);
12477
- intToChar[i] = c;
12478
- charToInt[c] = i;
12479
- }
12480
- var UrlType;
12481
- (function(UrlType3) {
12482
- UrlType3[UrlType3["Empty"] = 1] = "Empty";
12483
- UrlType3[UrlType3["Hash"] = 2] = "Hash";
12484
- UrlType3[UrlType3["Query"] = 3] = "Query";
12485
- UrlType3[UrlType3["RelativePath"] = 4] = "RelativePath";
12486
- UrlType3[UrlType3["AbsolutePath"] = 5] = "AbsolutePath";
12487
- UrlType3[UrlType3["SchemeRelative"] = 6] = "SchemeRelative";
12488
- UrlType3[UrlType3["Absolute"] = 7] = "Absolute";
12489
- })(UrlType || (UrlType = {}));
12490
- var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
12491
- function normalizeWindowsPath(input = "") {
12492
- if (!input) {
12493
- return input;
12494
- }
12495
- return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r4) => r4.toUpperCase());
12496
- }
12497
- var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
12498
- function cwd() {
12499
- if (typeof process !== "undefined" && typeof process.cwd === "function") {
12500
- return process.cwd().replace(/\\/g, "/");
12501
- }
12502
- return "/";
12503
- }
12504
- var resolve = function(...arguments_) {
12505
- arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
12506
- let resolvedPath = "";
12507
- let resolvedAbsolute = false;
12508
- for (let index2 = arguments_.length - 1; index2 >= -1 && !resolvedAbsolute; index2--) {
12509
- const path = index2 >= 0 ? arguments_[index2] : cwd();
12510
- if (!path || path.length === 0) {
12511
- continue;
12328
+ var formatRegExp2 = /%[sdjifoOc%]/g;
12329
+ function format3(...args) {
12330
+ if (typeof args[0] !== "string") {
12331
+ const objects = [];
12332
+ for (let i2 = 0; i2 < args.length; i2++) {
12333
+ objects.push(inspect4(args[i2], {
12334
+ depth: 0,
12335
+ colors: false
12336
+ }));
12512
12337
  }
12513
- resolvedPath = `${path}/${resolvedPath}`;
12514
- resolvedAbsolute = isAbsolute(path);
12515
- }
12516
- resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
12517
- if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
12518
- return `/${resolvedPath}`;
12338
+ return objects.join(" ");
12519
12339
  }
12520
- return resolvedPath.length > 0 ? resolvedPath : ".";
12521
- };
12522
- function normalizeString(path, allowAboveRoot) {
12523
- let res = "";
12524
- let lastSegmentLength = 0;
12525
- let lastSlash = -1;
12526
- let dots = 0;
12527
- let char = null;
12528
- for (let index2 = 0; index2 <= path.length; ++index2) {
12529
- if (index2 < path.length) {
12530
- char = path[index2];
12531
- } else if (char === "/") {
12532
- break;
12533
- } else {
12534
- char = "/";
12340
+ const len = args.length;
12341
+ let i = 1;
12342
+ const template = args[0];
12343
+ let str = String(template).replace(formatRegExp2, (x2) => {
12344
+ if (x2 === "%%") {
12345
+ return "%";
12535
12346
  }
12536
- if (char === "/") {
12537
- if (lastSlash === index2 - 1 || dots === 1) ;
12538
- else if (dots === 2) {
12539
- if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
12540
- if (res.length > 2) {
12541
- const lastSlashIndex = res.lastIndexOf("/");
12542
- if (lastSlashIndex === -1) {
12543
- res = "";
12544
- lastSegmentLength = 0;
12545
- } else {
12546
- res = res.slice(0, lastSlashIndex);
12547
- lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
12548
- }
12549
- lastSlash = index2;
12550
- dots = 0;
12551
- continue;
12552
- } else if (res.length > 0) {
12553
- res = "";
12554
- lastSegmentLength = 0;
12555
- lastSlash = index2;
12556
- dots = 0;
12557
- continue;
12558
- }
12347
+ if (i >= len) {
12348
+ return x2;
12349
+ }
12350
+ switch (x2) {
12351
+ case "%s": {
12352
+ const value = args[i++];
12353
+ if (typeof value === "bigint") {
12354
+ return `${value.toString()}n`;
12559
12355
  }
12560
- if (allowAboveRoot) {
12561
- res += res.length > 0 ? "/.." : "..";
12562
- lastSegmentLength = 2;
12356
+ if (typeof value === "number" && value === 0 && 1 / value < 0) {
12357
+ return "-0";
12563
12358
  }
12564
- } else {
12565
- if (res.length > 0) {
12566
- res += `/${path.slice(lastSlash + 1, index2)}`;
12567
- } else {
12568
- res = path.slice(lastSlash + 1, index2);
12359
+ if (typeof value === "object" && value !== null) {
12360
+ if (typeof value.toString === "function" && value.toString !== Object.prototype.toString) {
12361
+ return value.toString();
12362
+ }
12363
+ return inspect4(value, {
12364
+ depth: 0,
12365
+ colors: false
12366
+ });
12569
12367
  }
12570
- lastSegmentLength = index2 - lastSlash - 1;
12368
+ return String(value);
12571
12369
  }
12572
- lastSlash = index2;
12573
- dots = 0;
12574
- } else if (char === "." && dots !== -1) {
12575
- ++dots;
12576
- } else {
12577
- dots = -1;
12578
- }
12579
- }
12580
- return res;
12370
+ case "%d": {
12371
+ const value = args[i++];
12372
+ if (typeof value === "bigint") {
12373
+ return `${value.toString()}n`;
12374
+ }
12375
+ return Number(value).toString();
12376
+ }
12377
+ case "%i": {
12378
+ const value = args[i++];
12379
+ if (typeof value === "bigint") {
12380
+ return `${value.toString()}n`;
12381
+ }
12382
+ return Number.parseInt(String(value)).toString();
12383
+ }
12384
+ case "%f":
12385
+ return Number.parseFloat(String(args[i++])).toString();
12386
+ case "%o":
12387
+ return inspect4(args[i++], {
12388
+ showHidden: true,
12389
+ showProxy: true
12390
+ });
12391
+ case "%O":
12392
+ return inspect4(args[i++]);
12393
+ case "%c": {
12394
+ i++;
12395
+ return "";
12396
+ }
12397
+ case "%j":
12398
+ try {
12399
+ return JSON.stringify(args[i++]);
12400
+ } catch (err) {
12401
+ const m4 = err.message;
12402
+ if (m4.includes("circular structure") || m4.includes("cyclic structures") || m4.includes("cyclic object")) {
12403
+ return "[Circular]";
12404
+ }
12405
+ throw err;
12406
+ }
12407
+ default:
12408
+ return x2;
12409
+ }
12410
+ });
12411
+ for (let x2 = args[i]; i < len; x2 = args[++i]) {
12412
+ if (x2 === null || typeof x2 !== "object") {
12413
+ str += ` ${x2}`;
12414
+ } else {
12415
+ str += ` ${inspect4(x2)}`;
12416
+ }
12417
+ }
12418
+ return str;
12419
+ }
12420
+ function inspect4(obj, options = {}) {
12421
+ if (options.truncate === 0) {
12422
+ options.truncate = Number.POSITIVE_INFINITY;
12423
+ }
12424
+ return inspect(obj, options);
12425
+ }
12426
+ function objDisplay3(obj, options = {}) {
12427
+ if (typeof options.truncate === "undefined") {
12428
+ options.truncate = 40;
12429
+ }
12430
+ const str = inspect4(obj, options);
12431
+ const type3 = Object.prototype.toString.call(obj);
12432
+ if (options.truncate && str.length >= options.truncate) {
12433
+ if (type3 === "[object Function]") {
12434
+ const fn2 = obj;
12435
+ return !fn2.name ? "[Function]" : `[Function: ${fn2.name}]`;
12436
+ } else if (type3 === "[object Array]") {
12437
+ return `[ Array(${obj.length}) ]`;
12438
+ } else if (type3 === "[object Object]") {
12439
+ const keys2 = Object.keys(obj);
12440
+ const kstr = keys2.length > 2 ? `${keys2.splice(0, 2).join(", ")}, ...` : keys2.join(", ");
12441
+ return `{ Object (${kstr}) }`;
12442
+ } else {
12443
+ return str;
12444
+ }
12445
+ }
12446
+ return str;
12447
+ }
12448
+ function toArray2(array2) {
12449
+ if (array2 === null || array2 === void 0) {
12450
+ array2 = [];
12451
+ }
12452
+ if (Array.isArray(array2)) {
12453
+ return array2;
12454
+ }
12455
+ return [array2];
12456
+ }
12457
+ function isObject2(item) {
12458
+ return item != null && typeof item === "object" && !Array.isArray(item);
12459
+ }
12460
+ function objectAttr2(source, path, defaultValue = void 0) {
12461
+ const paths = path.replace(/\[(\d+)\]/g, ".$1").split(".");
12462
+ let result = source;
12463
+ for (const p5 of paths) {
12464
+ result = new Object(result)[p5];
12465
+ if (result === void 0) {
12466
+ return defaultValue;
12467
+ }
12468
+ }
12469
+ return result;
12470
+ }
12471
+ function createDefer2() {
12472
+ let resolve5 = null;
12473
+ let reject = null;
12474
+ const p5 = new Promise((_resolve, _reject) => {
12475
+ resolve5 = _resolve;
12476
+ reject = _reject;
12477
+ });
12478
+ p5.resolve = resolve5;
12479
+ p5.reject = reject;
12480
+ return p5;
12481
+ }
12482
+ function isNegativeNaN2(val) {
12483
+ if (!Number.isNaN(val)) {
12484
+ return false;
12485
+ }
12486
+ const f64 = new Float64Array(1);
12487
+ f64[0] = val;
12488
+ const u32 = new Uint32Array(f64.buffer);
12489
+ const isNegative = u32[1] >>> 31 === 1;
12490
+ return isNegative;
12491
+ }
12492
+
12493
+ // ../../node_modules/@vitest/runner/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
12494
+ var f4 = {
12495
+ reset: [0, 0],
12496
+ bold: [1, 22, "\x1B[22m\x1B[1m"],
12497
+ dim: [2, 22, "\x1B[22m\x1B[2m"],
12498
+ italic: [3, 23],
12499
+ underline: [4, 24],
12500
+ inverse: [7, 27],
12501
+ hidden: [8, 28],
12502
+ strikethrough: [9, 29],
12503
+ black: [30, 39],
12504
+ red: [31, 39],
12505
+ green: [32, 39],
12506
+ yellow: [33, 39],
12507
+ blue: [34, 39],
12508
+ magenta: [35, 39],
12509
+ cyan: [36, 39],
12510
+ white: [37, 39],
12511
+ gray: [90, 39],
12512
+ bgBlack: [40, 49],
12513
+ bgRed: [41, 49],
12514
+ bgGreen: [42, 49],
12515
+ bgYellow: [43, 49],
12516
+ bgBlue: [44, 49],
12517
+ bgMagenta: [45, 49],
12518
+ bgCyan: [46, 49],
12519
+ bgWhite: [47, 49],
12520
+ blackBright: [90, 39],
12521
+ redBright: [91, 39],
12522
+ greenBright: [92, 39],
12523
+ yellowBright: [93, 39],
12524
+ blueBright: [94, 39],
12525
+ magentaBright: [95, 39],
12526
+ cyanBright: [96, 39],
12527
+ whiteBright: [97, 39],
12528
+ bgBlackBright: [100, 49],
12529
+ bgRedBright: [101, 49],
12530
+ bgGreenBright: [102, 49],
12531
+ bgYellowBright: [103, 49],
12532
+ bgBlueBright: [104, 49],
12533
+ bgMagentaBright: [105, 49],
12534
+ bgCyanBright: [106, 49],
12535
+ bgWhiteBright: [107, 49]
12536
+ };
12537
+ var h4 = Object.entries(f4);
12538
+ function a3(n2) {
12539
+ return String(n2);
12540
+ }
12541
+ a3.open = "";
12542
+ a3.close = "";
12543
+ function C3(n2 = false) {
12544
+ let e = typeof process != "undefined" ? process : void 0, i = (e == null ? void 0 : e.env) || {}, g = (e == null ? void 0 : e.argv) || [];
12545
+ return !("NO_COLOR" in i || g.includes("--no-color")) && ("FORCE_COLOR" in i || g.includes("--color") || (e == null ? void 0 : e.platform) === "win32" || n2 && i.TERM !== "dumb" || "CI" in i) || typeof window != "undefined" && !!window.chrome;
12546
+ }
12547
+ function p3(n2 = false) {
12548
+ let e = C3(n2), i = (r4, t, c, o) => {
12549
+ let l2 = "", s4 = 0;
12550
+ do
12551
+ l2 += r4.substring(s4, o) + c, s4 = o + t.length, o = r4.indexOf(t, s4);
12552
+ while (~o);
12553
+ return l2 + r4.substring(s4);
12554
+ }, g = (r4, t, c = r4) => {
12555
+ let o = (l2) => {
12556
+ let s4 = String(l2), b2 = s4.indexOf(t, r4.length);
12557
+ return ~b2 ? r4 + i(s4, t, c, b2) + t : r4 + s4 + t;
12558
+ };
12559
+ return o.open = r4, o.close = t, o;
12560
+ }, u5 = {
12561
+ isColorSupported: e
12562
+ }, d = (r4) => `\x1B[${r4}m`;
12563
+ for (let [r4, t] of h4)
12564
+ u5[r4] = e ? g(
12565
+ d(t[0]),
12566
+ d(t[1]),
12567
+ t[2]
12568
+ ) : a3;
12569
+ return u5;
12570
+ }
12571
+ var r3 = process.env.FORCE_TTY !== void 0 || isatty(1);
12572
+ p3(r3);
12573
+
12574
+ // ../../node_modules/@vitest/runner/node_modules/@vitest/utils/dist/index.js
12575
+ var jsTokens_12;
12576
+ var hasRequiredJsTokens2;
12577
+ function requireJsTokens2() {
12578
+ if (hasRequiredJsTokens2) return jsTokens_12;
12579
+ hasRequiredJsTokens2 = 1;
12580
+ var Identifier, JSXIdentifier, JSXPunctuator, JSXString, JSXText, KeywordsWithExpressionAfter, KeywordsWithNoLineTerminatorAfter, LineTerminatorSequence, MultiLineComment, Newline, NumericLiteral, Punctuator, RegularExpressionLiteral, SingleLineComment, StringLiteral, Template, TokensNotPrecedingObjectLiteral, TokensPrecedingExpression, WhiteSpace;
12581
+ RegularExpressionLiteral = /\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;
12582
+ Punctuator = /--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;
12583
+ Identifier = /(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;
12584
+ StringLiteral = /(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y;
12585
+ NumericLiteral = /(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;
12586
+ Template = /[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y;
12587
+ WhiteSpace = /[\t\v\f\ufeff\p{Zs}]+/yu;
12588
+ LineTerminatorSequence = /\r?\n|[\r\u2028\u2029]/y;
12589
+ MultiLineComment = /\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y;
12590
+ SingleLineComment = /\/\/.*/y;
12591
+ JSXPunctuator = /[<>.:={}]|\/(?![\/*])/y;
12592
+ JSXIdentifier = /[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;
12593
+ JSXString = /(['"])(?:(?!\1)[^])*(\1)?/y;
12594
+ JSXText = /[^<>{}]+/y;
12595
+ TokensPrecedingExpression = /^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;
12596
+ TokensNotPrecedingObjectLiteral = /^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;
12597
+ KeywordsWithExpressionAfter = /^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;
12598
+ KeywordsWithNoLineTerminatorAfter = /^(?:return|throw|yield)$/;
12599
+ Newline = RegExp(LineTerminatorSequence.source);
12600
+ jsTokens_12 = function* (input, { jsx = false } = {}) {
12601
+ var braces, firstCodePoint, isExpression, lastIndex, lastSignificantToken, length, match, mode, nextLastIndex, nextLastSignificantToken, parenNesting, postfixIncDec, punctuator, stack;
12602
+ ({ length } = input);
12603
+ lastIndex = 0;
12604
+ lastSignificantToken = "";
12605
+ stack = [
12606
+ { tag: "JS" }
12607
+ ];
12608
+ braces = [];
12609
+ parenNesting = 0;
12610
+ postfixIncDec = false;
12611
+ while (lastIndex < length) {
12612
+ mode = stack[stack.length - 1];
12613
+ switch (mode.tag) {
12614
+ case "JS":
12615
+ case "JSNonExpressionParen":
12616
+ case "InterpolationInTemplate":
12617
+ case "InterpolationInJSX":
12618
+ if (input[lastIndex] === "/" && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) {
12619
+ RegularExpressionLiteral.lastIndex = lastIndex;
12620
+ if (match = RegularExpressionLiteral.exec(input)) {
12621
+ lastIndex = RegularExpressionLiteral.lastIndex;
12622
+ lastSignificantToken = match[0];
12623
+ postfixIncDec = true;
12624
+ yield {
12625
+ type: "RegularExpressionLiteral",
12626
+ value: match[0],
12627
+ closed: match[1] !== void 0 && match[1] !== "\\"
12628
+ };
12629
+ continue;
12630
+ }
12631
+ }
12632
+ Punctuator.lastIndex = lastIndex;
12633
+ if (match = Punctuator.exec(input)) {
12634
+ punctuator = match[0];
12635
+ nextLastIndex = Punctuator.lastIndex;
12636
+ nextLastSignificantToken = punctuator;
12637
+ switch (punctuator) {
12638
+ case "(":
12639
+ if (lastSignificantToken === "?NonExpressionParenKeyword") {
12640
+ stack.push({
12641
+ tag: "JSNonExpressionParen",
12642
+ nesting: parenNesting
12643
+ });
12644
+ }
12645
+ parenNesting++;
12646
+ postfixIncDec = false;
12647
+ break;
12648
+ case ")":
12649
+ parenNesting--;
12650
+ postfixIncDec = true;
12651
+ if (mode.tag === "JSNonExpressionParen" && parenNesting === mode.nesting) {
12652
+ stack.pop();
12653
+ nextLastSignificantToken = "?NonExpressionParenEnd";
12654
+ postfixIncDec = false;
12655
+ }
12656
+ break;
12657
+ case "{":
12658
+ Punctuator.lastIndex = 0;
12659
+ isExpression = !TokensNotPrecedingObjectLiteral.test(lastSignificantToken) && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken));
12660
+ braces.push(isExpression);
12661
+ postfixIncDec = false;
12662
+ break;
12663
+ case "}":
12664
+ switch (mode.tag) {
12665
+ case "InterpolationInTemplate":
12666
+ if (braces.length === mode.nesting) {
12667
+ Template.lastIndex = lastIndex;
12668
+ match = Template.exec(input);
12669
+ lastIndex = Template.lastIndex;
12670
+ lastSignificantToken = match[0];
12671
+ if (match[1] === "${") {
12672
+ lastSignificantToken = "?InterpolationInTemplate";
12673
+ postfixIncDec = false;
12674
+ yield {
12675
+ type: "TemplateMiddle",
12676
+ value: match[0]
12677
+ };
12678
+ } else {
12679
+ stack.pop();
12680
+ postfixIncDec = true;
12681
+ yield {
12682
+ type: "TemplateTail",
12683
+ value: match[0],
12684
+ closed: match[1] === "`"
12685
+ };
12686
+ }
12687
+ continue;
12688
+ }
12689
+ break;
12690
+ case "InterpolationInJSX":
12691
+ if (braces.length === mode.nesting) {
12692
+ stack.pop();
12693
+ lastIndex += 1;
12694
+ lastSignificantToken = "}";
12695
+ yield {
12696
+ type: "JSXPunctuator",
12697
+ value: "}"
12698
+ };
12699
+ continue;
12700
+ }
12701
+ }
12702
+ postfixIncDec = braces.pop();
12703
+ nextLastSignificantToken = postfixIncDec ? "?ExpressionBraceEnd" : "}";
12704
+ break;
12705
+ case "]":
12706
+ postfixIncDec = true;
12707
+ break;
12708
+ case "++":
12709
+ case "--":
12710
+ nextLastSignificantToken = postfixIncDec ? "?PostfixIncDec" : "?UnaryIncDec";
12711
+ break;
12712
+ case "<":
12713
+ if (jsx && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) {
12714
+ stack.push({ tag: "JSXTag" });
12715
+ lastIndex += 1;
12716
+ lastSignificantToken = "<";
12717
+ yield {
12718
+ type: "JSXPunctuator",
12719
+ value: punctuator
12720
+ };
12721
+ continue;
12722
+ }
12723
+ postfixIncDec = false;
12724
+ break;
12725
+ default:
12726
+ postfixIncDec = false;
12727
+ }
12728
+ lastIndex = nextLastIndex;
12729
+ lastSignificantToken = nextLastSignificantToken;
12730
+ yield {
12731
+ type: "Punctuator",
12732
+ value: punctuator
12733
+ };
12734
+ continue;
12735
+ }
12736
+ Identifier.lastIndex = lastIndex;
12737
+ if (match = Identifier.exec(input)) {
12738
+ lastIndex = Identifier.lastIndex;
12739
+ nextLastSignificantToken = match[0];
12740
+ switch (match[0]) {
12741
+ case "for":
12742
+ case "if":
12743
+ case "while":
12744
+ case "with":
12745
+ if (lastSignificantToken !== "." && lastSignificantToken !== "?.") {
12746
+ nextLastSignificantToken = "?NonExpressionParenKeyword";
12747
+ }
12748
+ }
12749
+ lastSignificantToken = nextLastSignificantToken;
12750
+ postfixIncDec = !KeywordsWithExpressionAfter.test(match[0]);
12751
+ yield {
12752
+ type: match[1] === "#" ? "PrivateIdentifier" : "IdentifierName",
12753
+ value: match[0]
12754
+ };
12755
+ continue;
12756
+ }
12757
+ StringLiteral.lastIndex = lastIndex;
12758
+ if (match = StringLiteral.exec(input)) {
12759
+ lastIndex = StringLiteral.lastIndex;
12760
+ lastSignificantToken = match[0];
12761
+ postfixIncDec = true;
12762
+ yield {
12763
+ type: "StringLiteral",
12764
+ value: match[0],
12765
+ closed: match[2] !== void 0
12766
+ };
12767
+ continue;
12768
+ }
12769
+ NumericLiteral.lastIndex = lastIndex;
12770
+ if (match = NumericLiteral.exec(input)) {
12771
+ lastIndex = NumericLiteral.lastIndex;
12772
+ lastSignificantToken = match[0];
12773
+ postfixIncDec = true;
12774
+ yield {
12775
+ type: "NumericLiteral",
12776
+ value: match[0]
12777
+ };
12778
+ continue;
12779
+ }
12780
+ Template.lastIndex = lastIndex;
12781
+ if (match = Template.exec(input)) {
12782
+ lastIndex = Template.lastIndex;
12783
+ lastSignificantToken = match[0];
12784
+ if (match[1] === "${") {
12785
+ lastSignificantToken = "?InterpolationInTemplate";
12786
+ stack.push({
12787
+ tag: "InterpolationInTemplate",
12788
+ nesting: braces.length
12789
+ });
12790
+ postfixIncDec = false;
12791
+ yield {
12792
+ type: "TemplateHead",
12793
+ value: match[0]
12794
+ };
12795
+ } else {
12796
+ postfixIncDec = true;
12797
+ yield {
12798
+ type: "NoSubstitutionTemplate",
12799
+ value: match[0],
12800
+ closed: match[1] === "`"
12801
+ };
12802
+ }
12803
+ continue;
12804
+ }
12805
+ break;
12806
+ case "JSXTag":
12807
+ case "JSXTagEnd":
12808
+ JSXPunctuator.lastIndex = lastIndex;
12809
+ if (match = JSXPunctuator.exec(input)) {
12810
+ lastIndex = JSXPunctuator.lastIndex;
12811
+ nextLastSignificantToken = match[0];
12812
+ switch (match[0]) {
12813
+ case "<":
12814
+ stack.push({ tag: "JSXTag" });
12815
+ break;
12816
+ case ">":
12817
+ stack.pop();
12818
+ if (lastSignificantToken === "/" || mode.tag === "JSXTagEnd") {
12819
+ nextLastSignificantToken = "?JSX";
12820
+ postfixIncDec = true;
12821
+ } else {
12822
+ stack.push({ tag: "JSXChildren" });
12823
+ }
12824
+ break;
12825
+ case "{":
12826
+ stack.push({
12827
+ tag: "InterpolationInJSX",
12828
+ nesting: braces.length
12829
+ });
12830
+ nextLastSignificantToken = "?InterpolationInJSX";
12831
+ postfixIncDec = false;
12832
+ break;
12833
+ case "/":
12834
+ if (lastSignificantToken === "<") {
12835
+ stack.pop();
12836
+ if (stack[stack.length - 1].tag === "JSXChildren") {
12837
+ stack.pop();
12838
+ }
12839
+ stack.push({ tag: "JSXTagEnd" });
12840
+ }
12841
+ }
12842
+ lastSignificantToken = nextLastSignificantToken;
12843
+ yield {
12844
+ type: "JSXPunctuator",
12845
+ value: match[0]
12846
+ };
12847
+ continue;
12848
+ }
12849
+ JSXIdentifier.lastIndex = lastIndex;
12850
+ if (match = JSXIdentifier.exec(input)) {
12851
+ lastIndex = JSXIdentifier.lastIndex;
12852
+ lastSignificantToken = match[0];
12853
+ yield {
12854
+ type: "JSXIdentifier",
12855
+ value: match[0]
12856
+ };
12857
+ continue;
12858
+ }
12859
+ JSXString.lastIndex = lastIndex;
12860
+ if (match = JSXString.exec(input)) {
12861
+ lastIndex = JSXString.lastIndex;
12862
+ lastSignificantToken = match[0];
12863
+ yield {
12864
+ type: "JSXString",
12865
+ value: match[0],
12866
+ closed: match[2] !== void 0
12867
+ };
12868
+ continue;
12869
+ }
12870
+ break;
12871
+ case "JSXChildren":
12872
+ JSXText.lastIndex = lastIndex;
12873
+ if (match = JSXText.exec(input)) {
12874
+ lastIndex = JSXText.lastIndex;
12875
+ lastSignificantToken = match[0];
12876
+ yield {
12877
+ type: "JSXText",
12878
+ value: match[0]
12879
+ };
12880
+ continue;
12881
+ }
12882
+ switch (input[lastIndex]) {
12883
+ case "<":
12884
+ stack.push({ tag: "JSXTag" });
12885
+ lastIndex++;
12886
+ lastSignificantToken = "<";
12887
+ yield {
12888
+ type: "JSXPunctuator",
12889
+ value: "<"
12890
+ };
12891
+ continue;
12892
+ case "{":
12893
+ stack.push({
12894
+ tag: "InterpolationInJSX",
12895
+ nesting: braces.length
12896
+ });
12897
+ lastIndex++;
12898
+ lastSignificantToken = "?InterpolationInJSX";
12899
+ postfixIncDec = false;
12900
+ yield {
12901
+ type: "JSXPunctuator",
12902
+ value: "{"
12903
+ };
12904
+ continue;
12905
+ }
12906
+ }
12907
+ WhiteSpace.lastIndex = lastIndex;
12908
+ if (match = WhiteSpace.exec(input)) {
12909
+ lastIndex = WhiteSpace.lastIndex;
12910
+ yield {
12911
+ type: "WhiteSpace",
12912
+ value: match[0]
12913
+ };
12914
+ continue;
12915
+ }
12916
+ LineTerminatorSequence.lastIndex = lastIndex;
12917
+ if (match = LineTerminatorSequence.exec(input)) {
12918
+ lastIndex = LineTerminatorSequence.lastIndex;
12919
+ postfixIncDec = false;
12920
+ if (KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)) {
12921
+ lastSignificantToken = "?NoLineTerminatorHere";
12922
+ }
12923
+ yield {
12924
+ type: "LineTerminatorSequence",
12925
+ value: match[0]
12926
+ };
12927
+ continue;
12928
+ }
12929
+ MultiLineComment.lastIndex = lastIndex;
12930
+ if (match = MultiLineComment.exec(input)) {
12931
+ lastIndex = MultiLineComment.lastIndex;
12932
+ if (Newline.test(match[0])) {
12933
+ postfixIncDec = false;
12934
+ if (KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)) {
12935
+ lastSignificantToken = "?NoLineTerminatorHere";
12936
+ }
12937
+ }
12938
+ yield {
12939
+ type: "MultiLineComment",
12940
+ value: match[0],
12941
+ closed: match[1] !== void 0
12942
+ };
12943
+ continue;
12944
+ }
12945
+ SingleLineComment.lastIndex = lastIndex;
12946
+ if (match = SingleLineComment.exec(input)) {
12947
+ lastIndex = SingleLineComment.lastIndex;
12948
+ postfixIncDec = false;
12949
+ yield {
12950
+ type: "SingleLineComment",
12951
+ value: match[0]
12952
+ };
12953
+ continue;
12954
+ }
12955
+ firstCodePoint = String.fromCodePoint(input.codePointAt(lastIndex));
12956
+ lastIndex += firstCodePoint.length;
12957
+ lastSignificantToken = firstCodePoint;
12958
+ postfixIncDec = false;
12959
+ yield {
12960
+ type: mode.tag.startsWith("JSX") ? "JSXInvalid" : "Invalid",
12961
+ value: firstCodePoint
12962
+ };
12963
+ }
12964
+ return void 0;
12965
+ };
12966
+ return jsTokens_12;
12967
+ }
12968
+ requireJsTokens2();
12969
+ var reservedWords2 = {
12970
+ keyword: [
12971
+ "break",
12972
+ "case",
12973
+ "catch",
12974
+ "continue",
12975
+ "debugger",
12976
+ "default",
12977
+ "do",
12978
+ "else",
12979
+ "finally",
12980
+ "for",
12981
+ "function",
12982
+ "if",
12983
+ "return",
12984
+ "switch",
12985
+ "throw",
12986
+ "try",
12987
+ "var",
12988
+ "const",
12989
+ "while",
12990
+ "with",
12991
+ "new",
12992
+ "this",
12993
+ "super",
12994
+ "class",
12995
+ "extends",
12996
+ "export",
12997
+ "import",
12998
+ "null",
12999
+ "true",
13000
+ "false",
13001
+ "in",
13002
+ "instanceof",
13003
+ "typeof",
13004
+ "void",
13005
+ "delete"
13006
+ ],
13007
+ strict: [
13008
+ "implements",
13009
+ "interface",
13010
+ "let",
13011
+ "package",
13012
+ "private",
13013
+ "protected",
13014
+ "public",
13015
+ "static",
13016
+ "yield"
13017
+ ]
13018
+ };
13019
+ new Set(reservedWords2.keyword);
13020
+ new Set(reservedWords2.strict);
13021
+ var SAFE_TIMERS_SYMBOL2 = /* @__PURE__ */ Symbol("vitest:SAFE_TIMERS");
13022
+ function getSafeTimers2() {
13023
+ const { setTimeout: safeSetTimeout, setInterval: safeSetInterval, clearInterval: safeClearInterval, clearTimeout: safeClearTimeout, setImmediate: safeSetImmediate, clearImmediate: safeClearImmediate, queueMicrotask: safeQueueMicrotask } = globalThis[SAFE_TIMERS_SYMBOL2] || globalThis;
13024
+ const { nextTick: safeNextTick } = globalThis[SAFE_TIMERS_SYMBOL2] || globalThis.process || { nextTick: (cb) => cb() };
13025
+ return {
13026
+ nextTick: safeNextTick,
13027
+ setTimeout: safeSetTimeout,
13028
+ setInterval: safeSetInterval,
13029
+ clearInterval: safeClearInterval,
13030
+ clearTimeout: safeClearTimeout,
13031
+ setImmediate: safeSetImmediate,
13032
+ clearImmediate: safeClearImmediate,
13033
+ queueMicrotask: safeQueueMicrotask
13034
+ };
13035
+ }
13036
+ var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
13037
+ var intToChar = new Uint8Array(64);
13038
+ var charToInt = new Uint8Array(128);
13039
+ for (let i = 0; i < chars.length; i++) {
13040
+ const c = chars.charCodeAt(i);
13041
+ intToChar[i] = c;
13042
+ charToInt[c] = i;
13043
+ }
13044
+ var UrlType;
13045
+ (function(UrlType4) {
13046
+ UrlType4[UrlType4["Empty"] = 1] = "Empty";
13047
+ UrlType4[UrlType4["Hash"] = 2] = "Hash";
13048
+ UrlType4[UrlType4["Query"] = 3] = "Query";
13049
+ UrlType4[UrlType4["RelativePath"] = 4] = "RelativePath";
13050
+ UrlType4[UrlType4["AbsolutePath"] = 5] = "AbsolutePath";
13051
+ UrlType4[UrlType4["SchemeRelative"] = 6] = "SchemeRelative";
13052
+ UrlType4[UrlType4["Absolute"] = 7] = "Absolute";
13053
+ })(UrlType || (UrlType = {}));
13054
+ var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
13055
+ function normalizeWindowsPath(input = "") {
13056
+ if (!input) {
13057
+ return input;
13058
+ }
13059
+ return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r4) => r4.toUpperCase());
13060
+ }
13061
+ var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
13062
+ function cwd() {
13063
+ if (typeof process !== "undefined" && typeof process.cwd === "function") {
13064
+ return process.cwd().replace(/\\/g, "/");
13065
+ }
13066
+ return "/";
13067
+ }
13068
+ var resolve = function(...arguments_) {
13069
+ arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
13070
+ let resolvedPath = "";
13071
+ let resolvedAbsolute = false;
13072
+ for (let index2 = arguments_.length - 1; index2 >= -1 && !resolvedAbsolute; index2--) {
13073
+ const path = index2 >= 0 ? arguments_[index2] : cwd();
13074
+ if (!path || path.length === 0) {
13075
+ continue;
13076
+ }
13077
+ resolvedPath = `${path}/${resolvedPath}`;
13078
+ resolvedAbsolute = isAbsolute(path);
13079
+ }
13080
+ resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
13081
+ if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
13082
+ return `/${resolvedPath}`;
13083
+ }
13084
+ return resolvedPath.length > 0 ? resolvedPath : ".";
13085
+ };
13086
+ function normalizeString(path, allowAboveRoot) {
13087
+ let res = "";
13088
+ let lastSegmentLength = 0;
13089
+ let lastSlash = -1;
13090
+ let dots = 0;
13091
+ let char = null;
13092
+ for (let index2 = 0; index2 <= path.length; ++index2) {
13093
+ if (index2 < path.length) {
13094
+ char = path[index2];
13095
+ } else if (char === "/") {
13096
+ break;
13097
+ } else {
13098
+ char = "/";
13099
+ }
13100
+ if (char === "/") {
13101
+ if (lastSlash === index2 - 1 || dots === 1) ;
13102
+ else if (dots === 2) {
13103
+ if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
13104
+ if (res.length > 2) {
13105
+ const lastSlashIndex = res.lastIndexOf("/");
13106
+ if (lastSlashIndex === -1) {
13107
+ res = "";
13108
+ lastSegmentLength = 0;
13109
+ } else {
13110
+ res = res.slice(0, lastSlashIndex);
13111
+ lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
13112
+ }
13113
+ lastSlash = index2;
13114
+ dots = 0;
13115
+ continue;
13116
+ } else if (res.length > 0) {
13117
+ res = "";
13118
+ lastSegmentLength = 0;
13119
+ lastSlash = index2;
13120
+ dots = 0;
13121
+ continue;
13122
+ }
13123
+ }
13124
+ if (allowAboveRoot) {
13125
+ res += res.length > 0 ? "/.." : "..";
13126
+ lastSegmentLength = 2;
13127
+ }
13128
+ } else {
13129
+ if (res.length > 0) {
13130
+ res += `/${path.slice(lastSlash + 1, index2)}`;
13131
+ } else {
13132
+ res = path.slice(lastSlash + 1, index2);
13133
+ }
13134
+ lastSegmentLength = index2 - lastSlash - 1;
13135
+ }
13136
+ lastSlash = index2;
13137
+ dots = 0;
13138
+ } else if (char === "." && dots !== -1) {
13139
+ ++dots;
13140
+ } else {
13141
+ dots = -1;
13142
+ }
13143
+ }
13144
+ return res;
12581
13145
  }
12582
13146
  var isAbsolute = function(p5) {
12583
13147
  return _IS_ABSOLUTE_RE.test(p5);
@@ -12897,7 +13461,7 @@ function mergeContextFixtures(fixtures, context, runner2) {
12897
13461
  ];
12898
13462
  const fixtureArray = Object.entries(fixtures).map(([prop, value]) => {
12899
13463
  const fixtureItem = { value };
12900
- if (Array.isArray(value) && value.length >= 2 && isObject(value[1]) && Object.keys(value[1]).some((key) => fixtureOptionKeys.includes(key))) {
13464
+ if (Array.isArray(value) && value.length >= 2 && isObject2(value[1]) && Object.keys(value[1]).some((key) => fixtureOptionKeys.includes(key))) {
12901
13465
  var _runner$injectValue;
12902
13466
  Object.assign(fixtureItem, value[1]);
12903
13467
  const userValue = value[0];
@@ -13034,12 +13598,12 @@ function resolveFixtureValue(runner2, fixture, context, cleanupFnArray) {
13034
13598
  return promise;
13035
13599
  }
13036
13600
  async function resolveFixtureFunction(fixtureFn, context, cleanupFnArray) {
13037
- const useFnArgPromise = createDefer();
13601
+ const useFnArgPromise = createDefer2();
13038
13602
  let isUseFnArgResolved = false;
13039
13603
  const fixtureReturn = fixtureFn(context, async (useFnArg) => {
13040
13604
  isUseFnArgResolved = true;
13041
13605
  useFnArgPromise.resolve(useFnArg);
13042
- const useReturnPromise = createDefer();
13606
+ const useReturnPromise = createDefer2();
13043
13607
  cleanupFnArray.push(async () => {
13044
13608
  useReturnPromise.resolve();
13045
13609
  await fixtureReturn;
@@ -13425,7 +13989,7 @@ function createSuite() {
13425
13989
  const name_ = formatName(name);
13426
13990
  const { options, handler } = parseArguments(optionsOrFn, fnOrOptions);
13427
13991
  cases.forEach((item, idx) => {
13428
- suite(formatTitle(name_, toArray(item), idx), options, () => handler(item));
13992
+ suite(formatTitle(name_, toArray2(item), idx), options, () => handler(item));
13429
13993
  });
13430
13994
  };
13431
13995
  };
@@ -13484,7 +14048,7 @@ function createTaskCollector(fn2, context) {
13484
14048
  const handlerWrapper = (ctx) => handler(item, ctx);
13485
14049
  handlerWrapper.__VITEST_FIXTURE_INDEX__ = 1;
13486
14050
  handlerWrapper.toString = () => handler.toString();
13487
- test5(formatTitle(_name, toArray(item), idx), options, handlerWrapper);
14051
+ test5(formatTitle(_name, toArray2(item), idx), options, handlerWrapper);
13488
14052
  });
13489
14053
  };
13490
14054
  };
@@ -13540,7 +14104,7 @@ function formatTitle(template, items, idx) {
13540
14104
  if (template.includes("%f")) {
13541
14105
  const placeholders = template.match(/%f/g) || [];
13542
14106
  placeholders.forEach((_, i) => {
13543
- if (isNegativeNaN(items[i]) || Object.is(items[i], -0)) {
14107
+ if (isNegativeNaN2(items[i]) || Object.is(items[i], -0)) {
13544
14108
  let occurrence = 0;
13545
14109
  template = template.replace(/%f/g, (match) => {
13546
14110
  occurrence++;
@@ -13549,16 +14113,16 @@ function formatTitle(template, items, idx) {
13549
14113
  }
13550
14114
  });
13551
14115
  }
13552
- let formatted = format2(template, ...items.slice(0, count));
13553
- const isObjectItem = isObject(items[0]);
14116
+ let formatted = format3(template, ...items.slice(0, count));
14117
+ const isObjectItem = isObject2(items[0]);
13554
14118
  formatted = formatted.replace(/\$([$\w.]+)/g, (_, key) => {
13555
14119
  const isArrayKey = /^\d+$/.test(key);
13556
14120
  if (!isObjectItem && !isArrayKey) {
13557
14121
  return `$${key}`;
13558
14122
  }
13559
- const arrayElement = isArrayKey ? objectAttr(items, key) : void 0;
13560
- const value = isObjectItem ? objectAttr(items[0], key, arrayElement) : arrayElement;
13561
- return objDisplay(value, { truncate: void 0 });
14123
+ const arrayElement = isArrayKey ? objectAttr2(items, key) : void 0;
14124
+ const value = isObjectItem ? objectAttr2(items[0], key, arrayElement) : arrayElement;
14125
+ return objDisplay3(value, { truncate: void 0 });
13562
14126
  });
13563
14127
  return formatted;
13564
14128
  }
@@ -13603,7 +14167,7 @@ function getNames(task) {
13603
14167
  return names;
13604
14168
  }
13605
14169
  globalThis.performance ? globalThis.performance.now.bind(globalThis.performance) : Date.now;
13606
- getSafeTimers();
14170
+ getSafeTimers2();
13607
14171
  var packs = /* @__PURE__ */ new Map();
13608
14172
  var eventsPacks = [];
13609
14173
  var pendingTasksUpdates = [];
@@ -13649,7 +14213,7 @@ function withTimeout(fn2, timeout, isHook = false, stackTraceError, onTimeout) {
13649
14213
  if (timeout <= 0 || timeout === Number.POSITIVE_INFINITY) {
13650
14214
  return fn2;
13651
14215
  }
13652
- const { setTimeout: setTimeout2, clearTimeout: clearTimeout2 } = getSafeTimers();
14216
+ const { setTimeout: setTimeout2, clearTimeout: clearTimeout2 } = getSafeTimers2();
13653
14217
  return function runWithTimeout(...args) {
13654
14218
  const startTime = now();
13655
14219
  const runner2 = getRunner();
@@ -13667,7 +14231,7 @@ function withTimeout(fn2, timeout, isHook = false, stackTraceError, onTimeout) {
13667
14231
  onTimeout === null || onTimeout === void 0 ? void 0 : onTimeout(args, error);
13668
14232
  reject_(error);
13669
14233
  }
13670
- function resolve4(result) {
14234
+ function resolve5(result) {
13671
14235
  runner2._currentTaskStartTime = void 0;
13672
14236
  runner2._currentTaskTimeout = void 0;
13673
14237
  clearTimeout2(timer);
@@ -13686,9 +14250,9 @@ function withTimeout(fn2, timeout, isHook = false, stackTraceError, onTimeout) {
13686
14250
  try {
13687
14251
  const result = fn2(...args);
13688
14252
  if (typeof result === "object" && result != null && typeof result.then === "function") {
13689
- result.then(resolve4, reject);
14253
+ result.then(resolve5, reject);
13690
14254
  } else {
13691
- resolve4(result);
14255
+ resolve5(result);
13692
14256
  }
13693
14257
  } catch (error) {
13694
14258
  reject(error);
@@ -13893,7 +14457,7 @@ function resetModules(modules, resetMocks = false) {
13893
14457
  }
13894
14458
  function waitNextTick() {
13895
14459
  const { setTimeout: setTimeout2 } = getSafeTimers();
13896
- return new Promise((resolve4) => setTimeout2(resolve4, 0));
14460
+ return new Promise((resolve5) => setTimeout2(resolve5, 0));
13897
14461
  }
13898
14462
  async function waitForImportsToResolve() {
13899
14463
  await waitNextTick();
@@ -14018,14 +14582,14 @@ var schemeRegex = /^[\w+.-]+:\/\//;
14018
14582
  var urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;
14019
14583
  var fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;
14020
14584
  var UrlType2;
14021
- (function(UrlType3) {
14022
- UrlType3[UrlType3["Empty"] = 1] = "Empty";
14023
- UrlType3[UrlType3["Hash"] = 2] = "Hash";
14024
- UrlType3[UrlType3["Query"] = 3] = "Query";
14025
- UrlType3[UrlType3["RelativePath"] = 4] = "RelativePath";
14026
- UrlType3[UrlType3["AbsolutePath"] = 5] = "AbsolutePath";
14027
- UrlType3[UrlType3["SchemeRelative"] = 6] = "SchemeRelative";
14028
- UrlType3[UrlType3["Absolute"] = 7] = "Absolute";
14585
+ (function(UrlType4) {
14586
+ UrlType4[UrlType4["Empty"] = 1] = "Empty";
14587
+ UrlType4[UrlType4["Hash"] = 2] = "Hash";
14588
+ UrlType4[UrlType4["Query"] = 3] = "Query";
14589
+ UrlType4[UrlType4["RelativePath"] = 4] = "RelativePath";
14590
+ UrlType4[UrlType4["AbsolutePath"] = 5] = "AbsolutePath";
14591
+ UrlType4[UrlType4["SchemeRelative"] = 6] = "SchemeRelative";
14592
+ UrlType4[UrlType4["Absolute"] = 7] = "Absolute";
14029
14593
  })(UrlType2 || (UrlType2 = {}));
14030
14594
  function isAbsoluteUrl(input) {
14031
14595
  return schemeRegex.test(input);
@@ -14372,16 +14936,16 @@ function traceSegmentInternal(segments, memo, line, column, bias) {
14372
14936
  return -1;
14373
14937
  return index2;
14374
14938
  }
14375
- function notNullish2(v2) {
14939
+ function notNullish3(v2) {
14376
14940
  return v2 != null;
14377
14941
  }
14378
- function isPrimitive3(value) {
14942
+ function isPrimitive4(value) {
14379
14943
  return value === null || typeof value !== "function" && typeof value !== "object";
14380
14944
  }
14381
- function isObject3(item) {
14945
+ function isObject4(item) {
14382
14946
  return item != null && typeof item === "object" && !Array.isArray(item);
14383
14947
  }
14384
- function getCallLastIndex2(code) {
14948
+ function getCallLastIndex3(code) {
14385
14949
  let charIndex = -1;
14386
14950
  let inString = null;
14387
14951
  let startedBracers = 0;
@@ -14564,13 +15128,13 @@ function shouldFilter(ignoreStackEntries, file) {
14564
15128
  return ignoreStackEntries.some((p5) => file.match(p5));
14565
15129
  }
14566
15130
  function parseFFOrSafariStackTrace(stack) {
14567
- return stack.split("\n").map((line) => parseSingleFFOrSafariStack2(line)).filter(notNullish2);
15131
+ return stack.split("\n").map((line) => parseSingleFFOrSafariStack2(line)).filter(notNullish3);
14568
15132
  }
14569
15133
  function parseV8Stacktrace(stack) {
14570
- return stack.split("\n").map((line) => parseSingleV8Stack2(line)).filter(notNullish2);
15134
+ return stack.split("\n").map((line) => parseSingleV8Stack2(line)).filter(notNullish3);
14571
15135
  }
14572
15136
  function parseErrorStacktrace(e, options = {}) {
14573
- if (!e || isPrimitive3(e)) {
15137
+ if (!e || isPrimitive4(e)) {
14574
15138
  return [];
14575
15139
  }
14576
15140
  if (e.stacks) {
@@ -14610,11 +15174,11 @@ try {
14610
15174
  function getDefaultExportFromCjs4(x2) {
14611
15175
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
14612
15176
  }
14613
- var jsTokens_12;
14614
- var hasRequiredJsTokens2;
14615
- function requireJsTokens2() {
14616
- if (hasRequiredJsTokens2) return jsTokens_12;
14617
- hasRequiredJsTokens2 = 1;
15177
+ var jsTokens_13;
15178
+ var hasRequiredJsTokens3;
15179
+ function requireJsTokens3() {
15180
+ if (hasRequiredJsTokens3) return jsTokens_13;
15181
+ hasRequiredJsTokens3 = 1;
14618
15182
  var Identifier, JSXIdentifier, JSXPunctuator, JSXString, JSXText, KeywordsWithExpressionAfter, KeywordsWithNoLineTerminatorAfter, LineTerminatorSequence, MultiLineComment, Newline, NumericLiteral, Punctuator, RegularExpressionLiteral, SingleLineComment, StringLiteral, Template, TokensNotPrecedingObjectLiteral, TokensPrecedingExpression, WhiteSpace;
14619
15183
  RegularExpressionLiteral = /\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;
14620
15184
  Punctuator = /--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;
@@ -14635,7 +15199,7 @@ function requireJsTokens2() {
14635
15199
  KeywordsWithExpressionAfter = /^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;
14636
15200
  KeywordsWithNoLineTerminatorAfter = /^(?:return|throw|yield)$/;
14637
15201
  Newline = RegExp(LineTerminatorSequence.source);
14638
- jsTokens_12 = function* (input, { jsx = false } = {}) {
15202
+ jsTokens_13 = function* (input, { jsx = false } = {}) {
14639
15203
  var braces, firstCodePoint, isExpression, lastIndex, lastSignificantToken, length, match, mode, nextLastIndex, nextLastSignificantToken, parenNesting, postfixIncDec, punctuator, stack;
14640
15204
  ({ length } = input);
14641
15205
  lastIndex = 0;
@@ -15001,10 +15565,10 @@ function requireJsTokens2() {
15001
15565
  }
15002
15566
  return void 0;
15003
15567
  };
15004
- return jsTokens_12;
15568
+ return jsTokens_13;
15005
15569
  }
15006
- requireJsTokens2();
15007
- var reservedWords2 = {
15570
+ requireJsTokens3();
15571
+ var reservedWords3 = {
15008
15572
  keyword: [
15009
15573
  "break",
15010
15574
  "case",
@@ -15054,8 +15618,8 @@ var reservedWords2 = {
15054
15618
  "yield"
15055
15619
  ]
15056
15620
  };
15057
- new Set(reservedWords2.keyword);
15058
- new Set(reservedWords2.strict);
15621
+ new Set(reservedWords3.keyword);
15622
+ new Set(reservedWords3.strict);
15059
15623
  var f5 = {
15060
15624
  reset: [0, 0],
15061
15625
  bold: [1, 22, "\x1B[22m\x1B[1m"],
@@ -15189,7 +15753,7 @@ function replaceObjectSnap(code, s4, index2, newSnap) {
15189
15753
  return false;
15190
15754
  }
15191
15755
  _code = _code.slice(startMatch.index);
15192
- let callEnd = getCallLastIndex2(_code);
15756
+ let callEnd = getCallLastIndex3(_code);
15193
15757
  if (callEnd === null) {
15194
15758
  return false;
15195
15759
  }
@@ -15362,14 +15926,14 @@ var plugin2 = {
15362
15926
  serialize: serialize$12,
15363
15927
  test: test4
15364
15928
  };
15365
- var { DOMCollection: DOMCollection3, DOMElement: DOMElement3, Immutable: Immutable3, ReactElement: ReactElement3, ReactTestComponent: ReactTestComponent3, AsymmetricMatcher: AsymmetricMatcher4 } = plugins;
15929
+ var { DOMCollection: DOMCollection4, DOMElement: DOMElement4, Immutable: Immutable4, ReactElement: ReactElement4, ReactTestComponent: ReactTestComponent4, AsymmetricMatcher: AsymmetricMatcher5 } = plugins;
15366
15930
  var PLUGINS3 = [
15367
- ReactTestComponent3,
15368
- ReactElement3,
15369
- DOMElement3,
15370
- DOMCollection3,
15371
- Immutable3,
15372
- AsymmetricMatcher4,
15931
+ ReactTestComponent4,
15932
+ ReactElement4,
15933
+ DOMElement4,
15934
+ DOMCollection4,
15935
+ Immutable4,
15936
+ AsymmetricMatcher5,
15373
15937
  plugin2
15374
15938
  ];
15375
15939
  function addSerializer(plugin3) {
@@ -15456,7 +16020,7 @@ function deepMergeArray(target = [], source = []) {
15456
16020
  const targetElement = mergedOutput[index2];
15457
16021
  if (Array.isArray(target[index2])) {
15458
16022
  mergedOutput[index2] = deepMergeArray(target[index2], sourceElement);
15459
- } else if (isObject3(targetElement)) {
16023
+ } else if (isObject4(targetElement)) {
15460
16024
  mergedOutput[index2] = deepMergeSnapshot(target[index2], sourceElement);
15461
16025
  } else {
15462
16026
  mergedOutput[index2] = sourceElement;
@@ -15465,10 +16029,10 @@ function deepMergeArray(target = [], source = []) {
15465
16029
  return mergedOutput;
15466
16030
  }
15467
16031
  function deepMergeSnapshot(target, source) {
15468
- if (isObject3(target) && isObject3(source)) {
16032
+ if (isObject4(target) && isObject4(source)) {
15469
16033
  const mergedOutput = { ...target };
15470
16034
  Object.keys(source).forEach((key) => {
15471
- if (isObject3(source[key]) && !source[key].$$typeof) {
16035
+ if (isObject4(source[key]) && !source[key].$$typeof) {
15472
16036
  if (!(key in target)) {
15473
16037
  Object.assign(mergedOutput, { [key]: source[key] });
15474
16038
  } else {
@@ -15941,6 +16505,216 @@ var SnapshotClient = class {
15941
16505
  this.snapshotStateMap.clear();
15942
16506
  }
15943
16507
  };
16508
+ var chars4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
16509
+ var intToChar4 = new Uint8Array(64);
16510
+ var charToInt4 = new Uint8Array(128);
16511
+ for (let i = 0; i < chars4.length; i++) {
16512
+ const c = chars4.charCodeAt(i);
16513
+ intToChar4[i] = c;
16514
+ charToInt4[c] = i;
16515
+ }
16516
+ var UrlType3;
16517
+ (function(UrlType4) {
16518
+ UrlType4[UrlType4["Empty"] = 1] = "Empty";
16519
+ UrlType4[UrlType4["Hash"] = 2] = "Hash";
16520
+ UrlType4[UrlType4["Query"] = 3] = "Query";
16521
+ UrlType4[UrlType4["RelativePath"] = 4] = "RelativePath";
16522
+ UrlType4[UrlType4["AbsolutePath"] = 5] = "AbsolutePath";
16523
+ UrlType4[UrlType4["SchemeRelative"] = 6] = "SchemeRelative";
16524
+ UrlType4[UrlType4["Absolute"] = 7] = "Absolute";
16525
+ })(UrlType3 || (UrlType3 = {}));
16526
+ var _DRIVE_LETTER_START_RE3 = /^[A-Za-z]:\//;
16527
+ function normalizeWindowsPath3(input = "") {
16528
+ if (!input) {
16529
+ return input;
16530
+ }
16531
+ return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE3, (r4) => r4.toUpperCase());
16532
+ }
16533
+ var _IS_ABSOLUTE_RE3 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
16534
+ function cwd3() {
16535
+ if (typeof process !== "undefined" && typeof process.cwd === "function") {
16536
+ return process.cwd().replace(/\\/g, "/");
16537
+ }
16538
+ return "/";
16539
+ }
16540
+ var resolve4 = function(...arguments_) {
16541
+ arguments_ = arguments_.map((argument) => normalizeWindowsPath3(argument));
16542
+ let resolvedPath = "";
16543
+ let resolvedAbsolute = false;
16544
+ for (let index2 = arguments_.length - 1; index2 >= -1 && !resolvedAbsolute; index2--) {
16545
+ const path = index2 >= 0 ? arguments_[index2] : cwd3();
16546
+ if (!path || path.length === 0) {
16547
+ continue;
16548
+ }
16549
+ resolvedPath = `${path}/${resolvedPath}`;
16550
+ resolvedAbsolute = isAbsolute3(path);
16551
+ }
16552
+ resolvedPath = normalizeString3(resolvedPath, !resolvedAbsolute);
16553
+ if (resolvedAbsolute && !isAbsolute3(resolvedPath)) {
16554
+ return `/${resolvedPath}`;
16555
+ }
16556
+ return resolvedPath.length > 0 ? resolvedPath : ".";
16557
+ };
16558
+ function normalizeString3(path, allowAboveRoot) {
16559
+ let res = "";
16560
+ let lastSegmentLength = 0;
16561
+ let lastSlash = -1;
16562
+ let dots = 0;
16563
+ let char = null;
16564
+ for (let index2 = 0; index2 <= path.length; ++index2) {
16565
+ if (index2 < path.length) {
16566
+ char = path[index2];
16567
+ } else if (char === "/") {
16568
+ break;
16569
+ } else {
16570
+ char = "/";
16571
+ }
16572
+ if (char === "/") {
16573
+ if (lastSlash === index2 - 1 || dots === 1) ;
16574
+ else if (dots === 2) {
16575
+ if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
16576
+ if (res.length > 2) {
16577
+ const lastSlashIndex = res.lastIndexOf("/");
16578
+ if (lastSlashIndex === -1) {
16579
+ res = "";
16580
+ lastSegmentLength = 0;
16581
+ } else {
16582
+ res = res.slice(0, lastSlashIndex);
16583
+ lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
16584
+ }
16585
+ lastSlash = index2;
16586
+ dots = 0;
16587
+ continue;
16588
+ } else if (res.length > 0) {
16589
+ res = "";
16590
+ lastSegmentLength = 0;
16591
+ lastSlash = index2;
16592
+ dots = 0;
16593
+ continue;
16594
+ }
16595
+ }
16596
+ if (allowAboveRoot) {
16597
+ res += res.length > 0 ? "/.." : "..";
16598
+ lastSegmentLength = 2;
16599
+ }
16600
+ } else {
16601
+ if (res.length > 0) {
16602
+ res += `/${path.slice(lastSlash + 1, index2)}`;
16603
+ } else {
16604
+ res = path.slice(lastSlash + 1, index2);
16605
+ }
16606
+ lastSegmentLength = index2 - lastSlash - 1;
16607
+ }
16608
+ lastSlash = index2;
16609
+ dots = 0;
16610
+ } else if (char === "." && dots !== -1) {
16611
+ ++dots;
16612
+ } else {
16613
+ dots = -1;
16614
+ }
16615
+ }
16616
+ return res;
16617
+ }
16618
+ var isAbsolute3 = function(p5) {
16619
+ return _IS_ABSOLUTE_RE3.test(p5);
16620
+ };
16621
+ var CHROME_IE_STACK_REGEXP3 = /^\s*at .*(?:\S:\d+|\(native\))/m;
16622
+ var SAFARI_NATIVE_CODE_REGEXP3 = /^(?:eval@)?(?:\[native code\])?$/;
16623
+ function extractLocation3(urlLike) {
16624
+ if (!urlLike.includes(":")) {
16625
+ return [urlLike];
16626
+ }
16627
+ const regExp = /(.+?)(?::(\d+))?(?::(\d+))?$/;
16628
+ const parts = regExp.exec(urlLike.replace(/^\(|\)$/g, ""));
16629
+ if (!parts) {
16630
+ return [urlLike];
16631
+ }
16632
+ let url = parts[1];
16633
+ if (url.startsWith("async ")) {
16634
+ url = url.slice(6);
16635
+ }
16636
+ if (url.startsWith("http:") || url.startsWith("https:")) {
16637
+ const urlObj = new URL(url);
16638
+ urlObj.searchParams.delete("import");
16639
+ urlObj.searchParams.delete("browserv");
16640
+ url = urlObj.pathname + urlObj.hash + urlObj.search;
16641
+ }
16642
+ if (url.startsWith("/@fs/")) {
16643
+ const isWindows = /^\/@fs\/[a-zA-Z]:\//.test(url);
16644
+ url = url.slice(isWindows ? 5 : 4);
16645
+ }
16646
+ return [
16647
+ url,
16648
+ parts[2] || void 0,
16649
+ parts[3] || void 0
16650
+ ];
16651
+ }
16652
+ function parseSingleFFOrSafariStack3(raw) {
16653
+ let line = raw.trim();
16654
+ if (SAFARI_NATIVE_CODE_REGEXP3.test(line)) {
16655
+ return null;
16656
+ }
16657
+ if (line.includes(" > eval")) {
16658
+ line = line.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1");
16659
+ }
16660
+ if (!line.includes("@") && !line.includes(":")) {
16661
+ return null;
16662
+ }
16663
+ const functionNameRegex = /((.*".+"[^@]*)?[^@]*)(@)/;
16664
+ const matches = line.match(functionNameRegex);
16665
+ const functionName2 = matches && matches[1] ? matches[1] : void 0;
16666
+ const [url, lineNumber, columnNumber] = extractLocation3(line.replace(functionNameRegex, ""));
16667
+ if (!url || !lineNumber || !columnNumber) {
16668
+ return null;
16669
+ }
16670
+ return {
16671
+ file: url,
16672
+ method: functionName2 || "",
16673
+ line: Number.parseInt(lineNumber),
16674
+ column: Number.parseInt(columnNumber)
16675
+ };
16676
+ }
16677
+ function parseSingleStack2(raw) {
16678
+ const line = raw.trim();
16679
+ if (!CHROME_IE_STACK_REGEXP3.test(line)) {
16680
+ return parseSingleFFOrSafariStack3(line);
16681
+ }
16682
+ return parseSingleV8Stack3(line);
16683
+ }
16684
+ function parseSingleV8Stack3(raw) {
16685
+ let line = raw.trim();
16686
+ if (!CHROME_IE_STACK_REGEXP3.test(line)) {
16687
+ return null;
16688
+ }
16689
+ if (line.includes("(eval ")) {
16690
+ line = line.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(,.*$)/g, "");
16691
+ }
16692
+ let sanitizedLine = line.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, "");
16693
+ const location = sanitizedLine.match(/ (\(.+\)$)/);
16694
+ sanitizedLine = location ? sanitizedLine.replace(location[0], "") : sanitizedLine;
16695
+ const [url, lineNumber, columnNumber] = extractLocation3(location ? location[1] : sanitizedLine);
16696
+ let method = location && sanitizedLine || "";
16697
+ let file = url && ["eval", "<anonymous>"].includes(url) ? void 0 : url;
16698
+ if (!file || !lineNumber || !columnNumber) {
16699
+ return null;
16700
+ }
16701
+ if (method.startsWith("async ")) {
16702
+ method = method.slice(6);
16703
+ }
16704
+ if (file.startsWith("file://")) {
16705
+ file = file.slice(7);
16706
+ }
16707
+ file = file.startsWith("node:") || file.startsWith("internal:") ? file : resolve4(file);
16708
+ if (method) {
16709
+ method = method.replace(/__vite_ssr_import_\d+__\./g, "");
16710
+ }
16711
+ return {
16712
+ method,
16713
+ file,
16714
+ line: Number.parseInt(lineNumber),
16715
+ column: Number.parseInt(columnNumber)
16716
+ };
16717
+ }
15944
16718
 
15945
16719
  // ../../node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js
15946
16720
  var RealDate = Date;
@@ -16019,7 +16793,7 @@ function createExpectPoll(expect2) {
16019
16793
  if (typeof key === "string" && unsupported.includes(key)) throw new SyntaxError(`expect.poll() is not supported in combination with .${key}(). Use vi.waitFor() if your assertion condition is unstable.`);
16020
16794
  return function(...args) {
16021
16795
  const STACK_TRACE_ERROR = new Error("STACK_TRACE_ERROR");
16022
- const promise = () => new Promise((resolve4, reject) => {
16796
+ const promise = () => new Promise((resolve5, reject) => {
16023
16797
  let intervalId;
16024
16798
  let timeoutId;
16025
16799
  let lastError;
@@ -16029,7 +16803,7 @@ function createExpectPoll(expect2) {
16029
16803
  utils_exports.flag(assertion, "_name", key);
16030
16804
  const obj = await fn2();
16031
16805
  utils_exports.flag(assertion, "object", obj);
16032
- resolve4(await assertionFunction.call(assertion, ...args));
16806
+ resolve5(await assertionFunction.call(assertion, ...args));
16033
16807
  clearTimeout2(intervalId);
16034
16808
  clearTimeout2(timeoutId);
16035
16809
  } catch (err) {
@@ -17557,9 +18331,9 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
17557
18331
  };
17558
18332
  if (typeof _global.Promise !== "undefined" && utilPromisify) {
17559
18333
  clock.setTimeout[utilPromisify.custom] = function promisifiedSetTimeout(timeout, arg) {
17560
- return new _global.Promise(function setTimeoutExecutor(resolve4) {
18334
+ return new _global.Promise(function setTimeoutExecutor(resolve5) {
17561
18335
  addTimer(clock, {
17562
- func: resolve4,
18336
+ func: resolve5,
17563
18337
  args: [arg],
17564
18338
  delay: timeout
17565
18339
  });
@@ -17602,9 +18376,9 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
17602
18376
  if (typeof _global.Promise !== "undefined" && utilPromisify) {
17603
18377
  clock.setImmediate[utilPromisify.custom] = function promisifiedSetImmediate(arg) {
17604
18378
  return new _global.Promise(
17605
- function setImmediateExecutor(resolve4) {
18379
+ function setImmediateExecutor(resolve5) {
17606
18380
  addTimer(clock, {
17607
- func: resolve4,
18381
+ func: resolve5,
17608
18382
  args: [arg],
17609
18383
  immediate: true
17610
18384
  });
@@ -17636,7 +18410,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
17636
18410
  clock.runMicrotasks = function runMicrotasks() {
17637
18411
  runJobs(clock);
17638
18412
  };
17639
- function doTick(tickValue, isAsync, resolve4, reject) {
18413
+ function doTick(tickValue, isAsync, resolve5, reject) {
17640
18414
  const msFloat = typeof tickValue === "number" ? tickValue : parseTime(tickValue);
17641
18415
  const ms = Math.floor(msFloat);
17642
18416
  const remainder = nanoRemainder(msFloat);
@@ -17703,7 +18477,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
17703
18477
  throw firstException;
17704
18478
  }
17705
18479
  if (isAsync) {
17706
- resolve4(clock.now);
18480
+ resolve5(clock.now);
17707
18481
  } else {
17708
18482
  return clock.now;
17709
18483
  }
@@ -17735,10 +18509,10 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
17735
18509
  };
17736
18510
  if (typeof _global.Promise !== "undefined") {
17737
18511
  clock.tickAsync = function tickAsync(tickValue) {
17738
- return new _global.Promise(function(resolve4, reject) {
18512
+ return new _global.Promise(function(resolve5, reject) {
17739
18513
  originalSetTimeout(function() {
17740
18514
  try {
17741
- doTick(tickValue, true, resolve4, reject);
18515
+ doTick(tickValue, true, resolve5, reject);
17742
18516
  } catch (e) {
17743
18517
  reject(e);
17744
18518
  }
@@ -17764,12 +18538,12 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
17764
18538
  };
17765
18539
  if (typeof _global.Promise !== "undefined") {
17766
18540
  clock.nextAsync = function nextAsync() {
17767
- return new _global.Promise(function(resolve4, reject) {
18541
+ return new _global.Promise(function(resolve5, reject) {
17768
18542
  originalSetTimeout(function() {
17769
18543
  try {
17770
18544
  const timer = firstTimer(clock);
17771
18545
  if (!timer) {
17772
- resolve4(clock.now);
18546
+ resolve5(clock.now);
17773
18547
  return;
17774
18548
  }
17775
18549
  let err;
@@ -17785,7 +18559,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
17785
18559
  if (err) {
17786
18560
  reject(err);
17787
18561
  } else {
17788
- resolve4(clock.now);
18562
+ resolve5(clock.now);
17789
18563
  }
17790
18564
  });
17791
18565
  } catch (e) {
@@ -17819,7 +18593,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
17819
18593
  };
17820
18594
  if (typeof _global.Promise !== "undefined") {
17821
18595
  clock.runAllAsync = function runAllAsync() {
17822
- return new _global.Promise(function(resolve4, reject) {
18596
+ return new _global.Promise(function(resolve5, reject) {
17823
18597
  let i = 0;
17824
18598
  function doRun() {
17825
18599
  originalSetTimeout(function() {
@@ -17829,7 +18603,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
17829
18603
  if (i < clock.loopLimit) {
17830
18604
  if (!clock.timers) {
17831
18605
  resetIsNearInfiniteLimit();
17832
- resolve4(clock.now);
18606
+ resolve5(clock.now);
17833
18607
  return;
17834
18608
  }
17835
18609
  numTimers = Object.keys(
@@ -17837,7 +18611,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
17837
18611
  ).length;
17838
18612
  if (numTimers === 0) {
17839
18613
  resetIsNearInfiniteLimit();
17840
- resolve4(clock.now);
18614
+ resolve5(clock.now);
17841
18615
  return;
17842
18616
  }
17843
18617
  clock.next();
@@ -17867,15 +18641,15 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
17867
18641
  };
17868
18642
  if (typeof _global.Promise !== "undefined") {
17869
18643
  clock.runToLastAsync = function runToLastAsync() {
17870
- return new _global.Promise(function(resolve4, reject) {
18644
+ return new _global.Promise(function(resolve5, reject) {
17871
18645
  originalSetTimeout(function() {
17872
18646
  try {
17873
18647
  const timer = lastTimer(clock);
17874
18648
  if (!timer) {
17875
18649
  runJobs(clock);
17876
- resolve4(clock.now);
18650
+ resolve5(clock.now);
17877
18651
  }
17878
- resolve4(clock.tickAsync(timer.callAt - clock.now));
18652
+ resolve5(clock.tickAsync(timer.callAt - clock.now));
17879
18653
  } catch (e) {
17880
18654
  reject(e);
17881
18655
  }
@@ -18036,7 +18810,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
18036
18810
  methodName: "setTimeout",
18037
18811
  original: timersPromisesModule.setTimeout
18038
18812
  });
18039
- timersPromisesModule.setTimeout = (delay, value, options = {}) => new Promise((resolve4, reject) => {
18813
+ timersPromisesModule.setTimeout = (delay, value, options = {}) => new Promise((resolve5, reject) => {
18040
18814
  const abort = () => {
18041
18815
  options.signal.removeEventListener(
18042
18816
  "abort",
@@ -18054,7 +18828,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
18054
18828
  );
18055
18829
  clock.abortListenerMap.delete(abort);
18056
18830
  }
18057
- resolve4(value);
18831
+ resolve5(value);
18058
18832
  }, delay);
18059
18833
  if (options.signal) {
18060
18834
  if (options.signal.aborted) {
@@ -18076,7 +18850,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
18076
18850
  methodName: "setImmediate",
18077
18851
  original: timersPromisesModule.setImmediate
18078
18852
  });
18079
- timersPromisesModule.setImmediate = (value, options = {}) => new Promise((resolve4, reject) => {
18853
+ timersPromisesModule.setImmediate = (value, options = {}) => new Promise((resolve5, reject) => {
18080
18854
  const abort = () => {
18081
18855
  options.signal.removeEventListener(
18082
18856
  "abort",
@@ -18094,7 +18868,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
18094
18868
  );
18095
18869
  clock.abortListenerMap.delete(abort);
18096
18870
  }
18097
- resolve4(value);
18871
+ resolve5(value);
18098
18872
  });
18099
18873
  if (options.signal) {
18100
18874
  if (options.signal.aborted) {
@@ -18119,12 +18893,12 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
18119
18893
  timersPromisesModule.setInterval = (delay, value, options = {}) => ({
18120
18894
  [Symbol.asyncIterator]: () => {
18121
18895
  const createResolvable = () => {
18122
- let resolve4, reject;
18896
+ let resolve5, reject;
18123
18897
  const promise = new Promise((res, rej) => {
18124
- resolve4 = res;
18898
+ resolve5 = res;
18125
18899
  reject = rej;
18126
18900
  });
18127
- promise.resolve = resolve4;
18901
+ promise.resolve = resolve5;
18128
18902
  promise.reject = reject;
18129
18903
  return promise;
18130
18904
  };
@@ -18370,7 +19144,7 @@ function waitFor(callback, options = {}) {
18370
19144
  const { setTimeout: setTimeout2, setInterval, clearTimeout: clearTimeout2, clearInterval } = getSafeTimers();
18371
19145
  const { interval = 50, timeout = 1e3 } = typeof options === "number" ? { timeout: options } : options;
18372
19146
  const STACK_TRACE_ERROR = new Error("STACK_TRACE_ERROR");
18373
- return new Promise((resolve4, reject) => {
19147
+ return new Promise((resolve5, reject) => {
18374
19148
  let lastError;
18375
19149
  let promiseStatus = "idle";
18376
19150
  let timeoutId;
@@ -18378,7 +19152,7 @@ function waitFor(callback, options = {}) {
18378
19152
  const onResolve = (result) => {
18379
19153
  if (timeoutId) clearTimeout2(timeoutId);
18380
19154
  if (intervalId) clearInterval(intervalId);
18381
- resolve4(result);
19155
+ resolve5(result);
18382
19156
  };
18383
19157
  const handleTimeout = () => {
18384
19158
  if (intervalId) clearInterval(intervalId);
@@ -18418,7 +19192,7 @@ function waitUntil(callback, options = {}) {
18418
19192
  const { setTimeout: setTimeout2, setInterval, clearTimeout: clearTimeout2, clearInterval } = getSafeTimers();
18419
19193
  const { interval = 50, timeout = 1e3 } = typeof options === "number" ? { timeout: options } : options;
18420
19194
  const STACK_TRACE_ERROR = new Error("STACK_TRACE_ERROR");
18421
- return new Promise((resolve4, reject) => {
19195
+ return new Promise((resolve5, reject) => {
18422
19196
  let promiseStatus = "idle";
18423
19197
  let timeoutId;
18424
19198
  let intervalId;
@@ -18431,7 +19205,7 @@ function waitUntil(callback, options = {}) {
18431
19205
  if (!result) return;
18432
19206
  if (timeoutId) clearTimeout2(timeoutId);
18433
19207
  if (intervalId) clearInterval(intervalId);
18434
- resolve4(result);
19208
+ resolve5(result);
18435
19209
  return true;
18436
19210
  };
18437
19211
  const checkCallback = () => {
@@ -18667,7 +19441,7 @@ function getImporter(name) {
18667
19441
  const importerStackIndex = stackArray.findIndex((stack2) => {
18668
19442
  return stack2.includes(` at Object.${name}`) || stack2.includes(`${name}@`);
18669
19443
  });
18670
- const stack = parseSingleStack(stackArray[importerStackIndex + 1]);
19444
+ const stack = parseSingleStack2(stackArray[importerStackIndex + 1]);
18671
19445
  return stack?.file || "";
18672
19446
  }
18673
19447