storybook 9.1.0-alpha.9 → 9.1.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -75,8 +75,8 @@ function jt(e = !1) {
75
75
  return p + c.substring(l);
76
76
  }, "i"), r = /* @__PURE__ */ i((c, a, u = c) => {
77
77
  let m = /* @__PURE__ */ i((p) => {
78
- let l = String(p), S = l.indexOf(a, c.length);
79
- return ~S ? c + n(l, a, u, S) + a : c + l + a;
78
+ let l = String(p), b = l.indexOf(a, c.length);
79
+ return ~b ? c + n(l, a, u, b) + a : c + l + a;
80
80
  }, "o");
81
81
  return m.open = c, m.close = a, m;
82
82
  }, "g"), o = {
@@ -130,8 +130,8 @@ function Ee(e, t, n, r, o, s, c = ": ") {
130
130
  a += "\u2026";
131
131
  break;
132
132
  }
133
- let l = s(m.value[0], t, p, r, o), S = s(m.value[1], t, p, r, o);
134
- a += l + c + S, m = e.next(), m.done ? t.min || (a += ",") : a += `,${t.spacingInner}`;
133
+ let l = s(m.value[0], t, p, r, o), b = s(m.value[1], t, p, r, o);
134
+ a += l + c + b, m = e.next(), m.done ? t.min || (a += ",") : a += `,${t.spacingInner}`;
135
135
  }
136
136
  a += t.spacingOuter + n;
137
137
  }
@@ -155,7 +155,7 @@ function Qe(e, t, n, r, o, s) {
155
155
  return c;
156
156
  }
157
157
  i(Qe, "printIteratorValues");
158
- function Re(e, t, n, r, o, s) {
158
+ function Ae(e, t, n, r, o, s) {
159
159
  let c = "";
160
160
  e = e instanceof ArrayBuffer ? new DataView(e) : e;
161
161
  let a = /* @__PURE__ */ i((m) => m instanceof DataView, "isDataView"), u = a(e) ? e.byteLength : e.length;
@@ -173,15 +173,15 @@ function Re(e, t, n, r, o, s) {
173
173
  }
174
174
  return c;
175
175
  }
176
- i(Re, "printListItems");
176
+ i(Ae, "printListItems");
177
177
  function ve(e, t, n, r, o, s) {
178
178
  let c = "", a = pr(e, t.compareKeys);
179
179
  if (a.length > 0) {
180
180
  c += t.spacingOuter;
181
181
  let u = n + t.indent;
182
182
  for (let m = 0; m < a.length; m++) {
183
- let p = a[m], l = s(p, t, u, r, o), S = s(e[p], t, u, r, o);
184
- c += `${u + l}: ${S}`, m < a.length - 1 ? c += `,${t.spacingInner}` : t.min || (c += ",");
183
+ let p = a[m], l = s(p, t, u, r, o), b = s(e[p], t, u, r, o);
184
+ c += `${u + l}: ${b}`, m < a.length - 1 ? c += `,${t.spacingInner}` : t.min || (c += ",");
185
185
  }
186
186
  c += t.spacingOuter + n;
187
187
  }
@@ -191,7 +191,7 @@ i(ve, "printObjectProperties");
191
191
  var gr = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621, we = " ", hr = /* @__PURE__ */ i((e, t, n, r, o, s) => {
192
192
  let c = e.toString();
193
193
  if (c === "ArrayContaining" || c === "ArrayNotContaining")
194
- return ++r > t.maxDepth ? `[${c}]` : `${c + we}[${Re(e.sample, t, n, r, o, s)}]`;
194
+ return ++r > t.maxDepth ? `[${c}]` : `${c + we}[${Ae(e.sample, t, n, r, o, s)}]`;
195
195
  if (c === "ObjectContaining" || c === "ObjectNotContaining")
196
196
  return ++r > t.maxDepth ? `[${c}]` : `${c + we}{${ve(e.sample, t, n, r, o, s)}}`;
197
197
  if (c === "StringMatching" || c === "StringNotMatching" || c === "StringContaining" || c === "StringNotContaining")
@@ -215,7 +215,7 @@ i(Tr, "isNamedNodeMap");
215
215
  var Cr = /* @__PURE__ */ i((e, t, n, r, o, s) => {
216
216
  let c = e.constructor.name;
217
217
  return ++r > t.maxDepth ? `[${c}]` : (t.min ? "" : c + br) + (Zt.has(c) ? `{${ve(Tr(e) ? [...e].reduce((a, u) => (a[u.name] = u.value, a),
218
- {}) : { ...e }, t, n, r, o, s)}}` : `[${Re([...e], t, n, r, o, s)}]`);
218
+ {}) : { ...e }, t, n, r, o, s)}}` : `[${Ae([...e], t, n, r, o, s)}]`);
219
219
  }, "serialize$4"), Or = {
220
220
  serialize: Cr,
221
221
  test: _r
@@ -259,23 +259,23 @@ function rt(e, t) {
259
259
  return `${n.open}<${e}${n.close} \u2026${n.open} />${n.close}`;
260
260
  }
261
261
  i(rt, "printElementAsLeaf");
262
- var wr = 1, en = 3, tn = 8, nn = 11, Ar = /^(?:(?:HTML|SVG)\w*)?Element$/;
263
- function Rr(e) {
262
+ var wr = 1, en = 3, tn = 8, nn = 11, Rr = /^(?:(?:HTML|SVG)\w*)?Element$/;
263
+ function Ar(e) {
264
264
  try {
265
265
  return typeof e.hasAttribute == "function" && e.hasAttribute("is");
266
266
  } catch {
267
267
  return !1;
268
268
  }
269
269
  }
270
- i(Rr, "testHasAttribute");
271
- function Nr(e) {
272
- let t = e.constructor.name, { nodeType: n, tagName: r } = e, o = typeof r == "string" && r.includes("-") || Rr(e);
273
- return n === wr && (Ar.test(t) || o) || n === en && t === "Text" || n === tn && t === "Comment" || n === nn && t === "DocumentFragment";
270
+ i(Ar, "testHasAttribute");
271
+ function Pr(e) {
272
+ let t = e.constructor.name, { nodeType: n, tagName: r } = e, o = typeof r == "string" && r.includes("-") || Ar(e);
273
+ return n === wr && (Rr.test(t) || o) || n === en && t === "Text" || n === tn && t === "Comment" || n === nn && t === "DocumentFragment";
274
274
  }
275
- i(Nr, "testNode");
276
- var Pr = /* @__PURE__ */ i((e) => {
275
+ i(Pr, "testNode");
276
+ var Nr = /* @__PURE__ */ i((e) => {
277
277
  var t;
278
- return (e == null || (t = e.constructor) === null || t === void 0 ? void 0 : t.name) && Nr(e);
278
+ return (e == null || (t = e.constructor) === null || t === void 0 ? void 0 : t.name) && Pr(e);
279
279
  }, "test$3");
280
280
  function Ir(e) {
281
281
  return e.nodeType === en;
@@ -300,13 +300,13 @@ var Lr = /* @__PURE__ */ i((e, t, n, r, o, s) => {
300
300
  t.indent, r, o, s), t, n);
301
301
  }, "serialize$3"), xr = {
302
302
  serialize: Lr,
303
- test: Pr
303
+ test: Nr
304
304
  }, Dr = "@@__IMMUTABLE_ITERABLE__@@", Fr = "@@__IMMUTABLE_LIST__@@", jr = "@@__IMMUTABLE_KEYED__@@", kr = "@@__IMMUTABLE_MAP__@@", kt = "@@_\
305
305
  _IMMUTABLE_ORDERED__@@", Br = "@@__IMMUTABLE_RECORD__@@", zr = "@@__IMMUTABLE_SEQ__@@", Yr = "@@__IMMUTABLE_SET__@@", Ur = "@@__IMMUTABLE_ST\
306
- ACK__@@", de = /* @__PURE__ */ i((e) => `Immutable.${e}`, "getImmutableName"), Pe = /* @__PURE__ */ i((e) => `[${e}]`, "printAsLeaf"), Se = "\
306
+ ACK__@@", de = /* @__PURE__ */ i((e) => `Immutable.${e}`, "getImmutableName"), Ne = /* @__PURE__ */ i((e) => `[${e}]`, "printAsLeaf"), Se = "\
307
307
  ", Bt = "\u2026";
308
308
  function Wr(e, t, n, r, o, s, c) {
309
- return ++r > t.maxDepth ? Pe(de(c)) : `${de(c) + Se}{${Ee(e.entries(), t, n, r, o, s)}}`;
309
+ return ++r > t.maxDepth ? Ne(de(c)) : `${de(c) + Se}{${Ee(e.entries(), t, n, r, o, s)}}`;
310
310
  }
311
311
  i(Wr, "printImmutableEntries");
312
312
  function Vr(e) {
@@ -328,17 +328,17 @@ function Vr(e) {
328
328
  i(Vr, "getRecordEntries");
329
329
  function qr(e, t, n, r, o, s) {
330
330
  let c = de(e._name || "Record");
331
- return ++r > t.maxDepth ? Pe(c) : `${c + Se}{${Ee(Vr(e), t, n, r, o, s)}}`;
331
+ return ++r > t.maxDepth ? Ne(c) : `${c + Se}{${Ee(Vr(e), t, n, r, o, s)}}`;
332
332
  }
333
333
  i(qr, "printImmutableRecord");
334
334
  function Kr(e, t, n, r, o, s) {
335
335
  let c = de("Seq");
336
- return ++r > t.maxDepth ? Pe(c) : e[jr] ? `${c + Se}{${e._iter || e._object ? Ee(e.entries(), t, n, r, o, s) : Bt}}` : `${c + Se}[${e._iter ||
336
+ return ++r > t.maxDepth ? Ne(c) : e[jr] ? `${c + Se}{${e._iter || e._object ? Ee(e.entries(), t, n, r, o, s) : Bt}}` : `${c + Se}[${e._iter ||
337
337
  e._array || e._collection || e._iterable ? Qe(e.values(), t, n, r, o, s) : Bt}]`;
338
338
  }
339
339
  i(Kr, "printImmutableSeq");
340
340
  function Je(e, t, n, r, o, s, c) {
341
- return ++r > t.maxDepth ? Pe(de(c)) : `${de(c) + Se}[${Qe(e.values(), t, n, r, o, s)}]`;
341
+ return ++r > t.maxDepth ? Ne(de(c)) : `${de(c) + Se}[${Qe(e.values(), t, n, r, o, s)}]`;
342
342
  }
343
343
  i(Je, "printImmutableValues");
344
344
  var Gr = /* @__PURE__ */ i((e, t, n, r, o, s) => e[kr] ? Wr(e, t, n, r, o, s, e[kt] ? "OrderedMap" : "Map") : e[Fr] ? Je(e, t, n, r, o, s, "\
@@ -352,7 +352,7 @@ function rn(e) {
352
352
  }
353
353
  i(rn, "getDefaultExportFromCjs");
354
354
  var Xe = { exports: {} };
355
- var R = {};
355
+ var A = {};
356
356
  var zt;
357
357
  function Xr() {
358
358
  return zt || (zt = 1, function() {
@@ -373,7 +373,7 @@ function Xr() {
373
373
  switch (f = f && f.$$typeof, f) {
374
374
  case a:
375
375
  case u:
376
- case S:
376
+ case b:
377
377
  case l:
378
378
  return f;
379
379
  case c:
@@ -390,39 +390,39 @@ function Xr() {
390
390
  i(e, "typeOf");
391
391
  var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("reac\
392
392
  t.strict_mode"), s = Symbol.for("react.profiler"), c = Symbol.for("react.consumer"), a = Symbol.for("react.context"), u = Symbol.for("react.\
393
- forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), S = Symbol.for("react.\
393
+ forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), b = Symbol.for("react.\
394
394
  lazy"), g = Symbol.for("react.view_transition"), h = Symbol.for("react.client.reference");
395
- R.ContextConsumer = c, R.ContextProvider = a, R.Element = t, R.ForwardRef = u, R.Fragment = r, R.Lazy = S, R.Memo = l, R.Portal = n, R.Profiler =
396
- s, R.StrictMode = o, R.Suspense = m, R.SuspenseList = p, R.isContextConsumer = function(f) {
395
+ A.ContextConsumer = c, A.ContextProvider = a, A.Element = t, A.ForwardRef = u, A.Fragment = r, A.Lazy = b, A.Memo = l, A.Portal = n, A.Profiler =
396
+ s, A.StrictMode = o, A.Suspense = m, A.SuspenseList = p, A.isContextConsumer = function(f) {
397
397
  return e(f) === c;
398
- }, R.isContextProvider = function(f) {
398
+ }, A.isContextProvider = function(f) {
399
399
  return e(f) === a;
400
- }, R.isElement = function(f) {
400
+ }, A.isElement = function(f) {
401
401
  return typeof f == "object" && f !== null && f.$$typeof === t;
402
- }, R.isForwardRef = function(f) {
402
+ }, A.isForwardRef = function(f) {
403
403
  return e(f) === u;
404
- }, R.isFragment = function(f) {
404
+ }, A.isFragment = function(f) {
405
405
  return e(f) === r;
406
- }, R.isLazy = function(f) {
407
- return e(f) === S;
408
- }, R.isMemo = function(f) {
406
+ }, A.isLazy = function(f) {
407
+ return e(f) === b;
408
+ }, A.isMemo = function(f) {
409
409
  return e(f) === l;
410
- }, R.isPortal = function(f) {
410
+ }, A.isPortal = function(f) {
411
411
  return e(f) === n;
412
- }, R.isProfiler = function(f) {
412
+ }, A.isProfiler = function(f) {
413
413
  return e(f) === s;
414
- }, R.isStrictMode = function(f) {
414
+ }, A.isStrictMode = function(f) {
415
415
  return e(f) === o;
416
- }, R.isSuspense = function(f) {
416
+ }, A.isSuspense = function(f) {
417
417
  return e(f) === m;
418
- }, R.isSuspenseList = function(f) {
418
+ }, A.isSuspenseList = function(f) {
419
419
  return e(f) === p;
420
- }, R.isValidElementType = function(f) {
420
+ }, A.isValidElementType = function(f) {
421
421
  return typeof f == "string" || typeof f == "function" || f === r || f === s || f === o || f === m || f === p || typeof f == "object" &&
422
- f !== null && (f.$$typeof === S || f.$$typeof === l || f.$$typeof === a || f.$$typeof === c || f.$$typeof === u || f.$$typeof === h ||
422
+ f !== null && (f.$$typeof === b || f.$$typeof === l || f.$$typeof === a || f.$$typeof === c || f.$$typeof === u || f.$$typeof === h ||
423
423
  f.getModuleId !== void 0);
424
- }, R.typeOf = e;
425
- }()), R;
424
+ }, A.typeOf = e;
425
+ }()), A;
426
426
  }
427
427
  i(Xr, "requireReactIs_development$1");
428
428
  var Yt;
@@ -441,11 +441,11 @@ function eo() {
441
441
  var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"),
442
442
  o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), c = Symbol.for("react.context"), a = Symbol.for("react.server_contex\
443
443
  t"), u = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), l = Symbol.for("react.mem\
444
- o"), S = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), h = !1, f = !1, d = !1, b = !1, _ = !1, O;
444
+ o"), b = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), h = !1, f = !1, d = !1, S = !1, _ = !1, O;
445
445
  O = Symbol.for("react.module.reference");
446
446
  function y(C) {
447
- return !!(typeof C == "string" || typeof C == "function" || C === n || C === o || _ || C === r || C === m || C === p || b || C === g ||
448
- h || f || d || typeof C == "object" && C !== null && (C.$$typeof === S || C.$$typeof === l || C.$$typeof === s || C.$$typeof === c || C.
447
+ return !!(typeof C == "string" || typeof C == "function" || C === n || C === o || _ || C === r || C === m || C === p || S || C === g ||
448
+ h || f || d || typeof C == "object" && C !== null && (C.$$typeof === b || C.$$typeof === l || C.$$typeof === s || C.$$typeof === c || C.
449
449
  $$typeof === u || // This needs to include all possible module reference object
450
450
  // types supported by any Flight configuration anywhere since
451
451
  // we don't know which Flight build this will end up being used
@@ -472,7 +472,7 @@ o"), S = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), h = !1, f
472
472
  case a:
473
473
  case c:
474
474
  case u:
475
- case S:
475
+ case b:
476
476
  case l:
477
477
  case s:
478
478
  return Dt;
@@ -486,7 +486,7 @@ o"), S = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), h = !1, f
486
486
  }
487
487
  }
488
488
  i(E, "typeOf");
489
- var $ = c, T = s, A = e, K = u, Q = n, I = S, k = l, G = t, Y = o, P = r, L = m, x = p, H = !1, F = !1;
489
+ var $ = c, T = s, R = e, K = u, Q = n, I = b, k = l, G = t, Y = o, N = r, L = m, x = p, H = !1, F = !1;
490
490
  function W(C) {
491
491
  return H || (H = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
492
492
  }
@@ -516,7 +516,7 @@ o"), S = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), h = !1, f
516
516
  }
517
517
  i(U, "isFragment");
518
518
  function oe(C) {
519
- return E(C) === S;
519
+ return E(C) === b;
520
520
  }
521
521
  i(oe, "isLazy");
522
522
  function he(C) {
@@ -542,8 +542,8 @@ o"), S = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), h = !1, f
542
542
  function ar(C) {
543
543
  return E(C) === p;
544
544
  }
545
- i(ar, "isSuspenseList"), w.ContextConsumer = $, w.ContextProvider = T, w.Element = A, w.ForwardRef = K, w.Fragment = Q, w.Lazy = I, w.Memo =
546
- k, w.Portal = G, w.Profiler = Y, w.StrictMode = P, w.Suspense = L, w.SuspenseList = x, w.isAsyncMode = W, w.isConcurrentMode = re, w.isContextConsumer =
545
+ i(ar, "isSuspenseList"), w.ContextConsumer = $, w.ContextProvider = T, w.Element = R, w.ForwardRef = K, w.Fragment = Q, w.Lazy = I, w.Memo =
546
+ k, w.Portal = G, w.Profiler = Y, w.StrictMode = N, w.Suspense = L, w.SuspenseList = x, w.isAsyncMode = W, w.isConcurrentMode = re, w.isContextConsumer =
547
547
  V, w.isContextProvider = q, w.isElement = se, w.isForwardRef = J, w.isFragment = U, w.isLazy = oe, w.isMemo = he, w.isPortal = ue, w.isProfiler =
548
548
  be, w.isStrictMode = Ce, w.isSuspense = Oe, w.isSuspenseList = ar, w.isValidElementType = y, w.typeOf = E;
549
549
  }()), w;
@@ -633,10 +633,10 @@ ao, "test"), po = {
633
633
  serialize: fo,
634
634
  test: mo
635
635
  }, un = Object.prototype.toString, go = Date.prototype.toISOString, ho = Error.prototype.toString, qt = RegExp.prototype.toString;
636
- function Ae(e) {
636
+ function Re(e) {
637
637
  return typeof e.constructor == "function" && e.constructor.name || "Object";
638
638
  }
639
- i(Ae, "getConstructorName");
639
+ i(Re, "getConstructorName");
640
640
  function yo(e) {
641
641
  return typeof window < "u" && e === window;
642
642
  }
@@ -647,7 +647,7 @@ var bo = /^Symbol\((.*)\)(.*)$/, So = /\n/g, st = class st extends Error {
647
647
  }
648
648
  };
649
649
  i(st, "PrettyFormatPluginError");
650
- var Ne = st;
650
+ var Pe = st;
651
651
  function Eo(e) {
652
652
  return e === "[object Array]" || e === "[object ArrayBuffer]" || e === "[object DataView]" || e === "[object Float32Array]" || e === "[obj\
653
653
  ect Float64Array]" || e === "[object Int8Array]" || e === "[object Int16Array]" || e === "[object Int32Array]" || e === "[object Uint8Array]" ||
@@ -707,10 +707,10 @@ function ln(e, t, n, r, o, s) {
707
707
  if (t.callToJSON && !c && e.toJSON && typeof e.toJSON == "function" && !s)
708
708
  return ae(e.toJSON(), t, n, r, o, !0);
709
709
  let u = un.call(e);
710
- return u === "[object Arguments]" ? c ? "[Arguments]" : `${a ? "" : "Arguments "}[${Re(e, t, n, r, o, ae)}]` : Eo(u) ? c ? `[${e.constructor.
711
- name}]` : `${a || !t.printBasicPrototype && e.constructor.name === "Array" ? "" : `${e.constructor.name} `}[${Re(e, t, n, r, o, ae)}]` : u ===
710
+ return u === "[object Arguments]" ? c ? "[Arguments]" : `${a ? "" : "Arguments "}[${Ae(e, t, n, r, o, ae)}]` : Eo(u) ? c ? `[${e.constructor.
711
+ name}]` : `${a || !t.printBasicPrototype && e.constructor.name === "Array" ? "" : `${e.constructor.name} `}[${Ae(e, t, n, r, o, ae)}]` : u ===
712
712
  "[object Map]" ? c ? "[Map]" : `Map {${Ee(e.entries(), t, n, r, o, ae, " => ")}}` : u === "[object Set]" ? c ? "[Set]" : `Set {${Qe(e.values(),
713
- t, n, r, o, ae)}}` : c || yo(e) ? `[${Ae(e)}]` : `${a || !t.printBasicPrototype && Ae(e) === "Object" ? "" : `${Ae(e)} `}{${ve(e, t, n, r,
713
+ t, n, r, o, ae)}}` : c || yo(e) ? `[${Re(e)}]` : `${a || !t.printBasicPrototype && Re(e) === "Object" ? "" : `${Re(e)} `}{${ve(e, t, n, r,
714
714
  o, ae)}}`;
715
715
  }
716
716
  i(ln, "printComplexValue");
@@ -725,7 +725,7 @@ var Co = {
725
725
  ...typeof u < "u" ? { cause: u } : {},
726
726
  ...e instanceof AggregateError ? { errors: e.errors } : {},
727
727
  ...m
728
- }, l = e.name !== "Error" ? e.name : Ae(e);
728
+ }, l = e.name !== "Error" ? e.name : Re(e);
729
729
  return c ? `[${l}]` : `${l} {${Ee(Object.entries(p).values(), t, n, r, o, s)}}`;
730
730
  }
731
731
  };
@@ -746,7 +746,7 @@ ${u}`);
746
746
  spacing: n.spacingInner
747
747
  }, n.colors);
748
748
  } catch (a) {
749
- throw new Ne(a.message, a.stack);
749
+ throw new Pe(a.message, a.stack);
750
750
  }
751
751
  if (typeof c != "string")
752
752
  throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof c}".`);
@@ -759,7 +759,7 @@ function mn(e, t) {
759
759
  if (n.test(t))
760
760
  return n;
761
761
  } catch (r) {
762
- throw new Ne(r.message, r.stack);
762
+ throw new Pe(r.message, r.stack);
763
763
  }
764
764
  return null;
765
765
  }
@@ -812,13 +812,13 @@ function wo() {
812
812
  }, /* @__PURE__ */ Object.create(null));
813
813
  }
814
814
  i(wo, "getColorsHighlight");
815
- function Ao() {
815
+ function Ro() {
816
816
  return pn.reduce((e, t) => (e[t] = {
817
817
  close: "",
818
818
  open: ""
819
819
  }, e), /* @__PURE__ */ Object.create(null));
820
820
  }
821
- i(Ao, "getColorsEmpty");
821
+ i(Ro, "getColorsEmpty");
822
822
  function gn(e) {
823
823
  return e?.printFunctionName ?? ee.printFunctionName;
824
824
  }
@@ -834,11 +834,11 @@ i(dn, "getEscapeString");
834
834
  function Jt(e) {
835
835
  return {
836
836
  callToJSON: e?.callToJSON ?? ee.callToJSON,
837
- colors: e?.highlight ? wo() : Ao(),
837
+ colors: e?.highlight ? wo() : Ro(),
838
838
  compareKeys: typeof e?.compareKeys == "function" || e?.compareKeys === null ? e.compareKeys : ee.compareKeys,
839
839
  escapeRegex: hn(e),
840
840
  escapeString: dn(e),
841
- indent: e?.min ? "" : Ro(e?.indent ?? ee.indent),
841
+ indent: e?.min ? "" : Ao(e?.indent ?? ee.indent),
842
842
  maxDepth: e?.maxDepth ?? ee.maxDepth,
843
843
  maxWidth: e?.maxWidth ?? ee.maxWidth,
844
844
  min: e?.min ?? ee.min,
@@ -852,10 +852,10 @@ function Jt(e) {
852
852
  };
853
853
  }
854
854
  i(Jt, "getConfig");
855
- function Ro(e) {
855
+ function Ao(e) {
856
856
  return Array.from({ length: e + 1 }).join(" ");
857
857
  }
858
- i(Ro, "createIndent");
858
+ i(Ao, "createIndent");
859
859
  function X(e, t) {
860
860
  if (t && ($o(t), t.plugins)) {
861
861
  let r = mn(t.plugins, e);
@@ -905,7 +905,7 @@ var yn = {
905
905
  brightcyan: ["36;1", "39"],
906
906
  brightwhite: ["37;1", "39"],
907
907
  grey: ["90", "39"]
908
- }, No = {
908
+ }, Po = {
909
909
  special: "cyan",
910
910
  number: "yellow",
911
911
  bigint: "yellow",
@@ -917,11 +917,11 @@ var yn = {
917
917
  date: "magenta",
918
918
  regexp: "red"
919
919
  }, ie = "\u2026";
920
- function Po(e, t) {
921
- let n = yn[No[t]] || yn[t] || "";
920
+ function No(e, t) {
921
+ let n = yn[Po[t]] || yn[t] || "";
922
922
  return n ? `\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m` : String(e);
923
923
  }
924
- i(Po, "colorise");
924
+ i(No, "colorise");
925
925
  function bn({
926
926
  showHidden: e = !1,
927
927
  depth: t = 2,
@@ -948,7 +948,7 @@ function bn({
948
948
  inspect: p,
949
949
  stylize: m
950
950
  };
951
- return l.colors && (l.stylize = Po), l;
951
+ return l.colors && (l.stylize = No), l;
952
952
  }
953
953
  i(bn, "normaliseOptions");
954
954
  function Io(e) {
@@ -976,9 +976,9 @@ function D(e, t, n, r = ", ") {
976
976
  for (let m = 0; m < o; m += 1) {
977
977
  let p = m + 1 === e.length, l = m + 2 === e.length;
978
978
  u = `${ie}(${e.length - m})`;
979
- let S = e[m];
979
+ let b = e[m];
980
980
  t.truncate = s - c.length - (p ? 0 : r.length);
981
- let g = a || n(S, t) + (p ? "" : r), h = c.length + g.length, f = h + u.length;
981
+ let g = a || n(b, t) + (p ? "" : r), h = c.length + g.length, f = h + u.length;
982
982
  if (p && h > s && c.length + u.length <= s || !p && !l && f > s || (a = p ? "" : n(e[m + 1], t) + (l ? "" : r), !p && l && f > s && h + a.
983
983
  length > s))
984
984
  break;
@@ -1393,10 +1393,10 @@ function Te(e, t = {}) {
1393
1393
  return t.truncate === 0 && (t.truncate = Number.POSITIVE_INFINITY), ke(e, t);
1394
1394
  }
1395
1395
  i(Te, "inspect");
1396
- function An(e) {
1396
+ function Rn(e) {
1397
1397
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1398
1398
  }
1399
- i(An, "getDefaultExportFromCjs");
1399
+ i(Rn, "getDefaultExportFromCjs");
1400
1400
 
1401
1401
  // ../node_modules/@vitest/utils/dist/helpers.js
1402
1402
  function ns(e) {
@@ -1417,12 +1417,12 @@ function bt(e) {
1417
1417
  return ns(e) ? [] : (rs(e, t), Array.from(t));
1418
1418
  }
1419
1419
  i(bt, "getOwnProperties");
1420
- var Rn = { forceWritable: !1 };
1421
- function St(e, t = Rn) {
1420
+ var An = { forceWritable: !1 };
1421
+ function St(e, t = An) {
1422
1422
  return yt(e, /* @__PURE__ */ new WeakMap(), t);
1423
1423
  }
1424
1424
  i(St, "deepClone");
1425
- function yt(e, t, n = Rn) {
1425
+ function yt(e, t, n = An) {
1426
1426
  let r, o;
1427
1427
  if (t.has(e))
1428
1428
  return t.get(e);
@@ -1461,15 +1461,15 @@ function yt(e, t, n = Rn) {
1461
1461
  i(yt, "clone");
1462
1462
 
1463
1463
  // ../node_modules/@vitest/utils/dist/diff.js
1464
- var z = -1, j = 1, M = 0, Rt = class Rt {
1464
+ var z = -1, j = 1, M = 0, At = class At {
1465
1465
  0;
1466
1466
  1;
1467
1467
  constructor(t, n) {
1468
1468
  this[0] = t, this[1] = n;
1469
1469
  }
1470
1470
  };
1471
- i(Rt, "Diff");
1472
- var N = Rt;
1471
+ i(At, "Diff");
1472
+ var P = At;
1473
1473
  function os(e, t) {
1474
1474
  if (!e || !t || e.charAt(0) !== t.charAt(0))
1475
1475
  return 0;
@@ -1489,7 +1489,7 @@ function Vn(e, t) {
1489
1489
  return o;
1490
1490
  }
1491
1491
  i(Vn, "diff_commonSuffix");
1492
- function Nn(e, t) {
1492
+ function Pn(e, t) {
1493
1493
  let n = e.length, r = t.length;
1494
1494
  if (n === 0 || r === 0)
1495
1495
  return 0;
@@ -1505,25 +1505,25 @@ function Nn(e, t) {
1505
1505
  c += u, (u === 0 || e.substring(o - c) === t.substring(0, c)) && (s = c, c++);
1506
1506
  }
1507
1507
  }
1508
- i(Nn, "diff_commonOverlap_");
1508
+ i(Pn, "diff_commonOverlap_");
1509
1509
  function ss(e) {
1510
1510
  let t = !1, n = [], r = 0, o = null, s = 0, c = 0, a = 0, u = 0, m = 0;
1511
1511
  for (; s < e.length; )
1512
1512
  e[s][0] === M ? (n[r++] = s, c = u, a = m, u = 0, m = 0, o = e[s][1]) : (e[s][0] === j ? u += e[s][1].length : m += e[s][1].length, o &&
1513
- o.length <= Math.max(c, a) && o.length <= Math.max(u, m) && (e.splice(n[r - 1], 0, new N(z, o)), e[n[r - 1] + 1][0] = j, r--, r--, s = r >
1513
+ o.length <= Math.max(c, a) && o.length <= Math.max(u, m) && (e.splice(n[r - 1], 0, new P(z, o)), e[n[r - 1] + 1][0] = j, r--, r--, s = r >
1514
1514
  0 ? n[r - 1] : -1, c = 0, a = 0, u = 0, m = 0, o = null, t = !0)), s++;
1515
1515
  for (t && qn(e), us(e), s = 1; s < e.length; ) {
1516
1516
  if (e[s - 1][0] === z && e[s][0] === j) {
1517
- let p = e[s - 1][1], l = e[s][1], S = Nn(p, l), g = Nn(l, p);
1518
- S >= g ? (S >= p.length / 2 || S >= l.length / 2) && (e.splice(s, 0, new N(M, l.substring(0, S))), e[s - 1][1] = p.substring(0, p.length -
1519
- S), e[s + 1][1] = l.substring(S), s++) : (g >= p.length / 2 || g >= l.length / 2) && (e.splice(s, 0, new N(M, p.substring(0, g))), e[s -
1517
+ let p = e[s - 1][1], l = e[s][1], b = Pn(p, l), g = Pn(l, p);
1518
+ b >= g ? (b >= p.length / 2 || b >= l.length / 2) && (e.splice(s, 0, new P(M, l.substring(0, b))), e[s - 1][1] = p.substring(0, p.length -
1519
+ b), e[s + 1][1] = l.substring(b), s++) : (g >= p.length / 2 || g >= l.length / 2) && (e.splice(s, 0, new P(M, p.substring(0, g))), e[s -
1520
1520
  1][0] = j, e[s - 1][1] = l.substring(0, l.length - g), e[s + 1][0] = z, e[s + 1][1] = p.substring(g), s++), s++;
1521
1521
  }
1522
1522
  s++;
1523
1523
  }
1524
1524
  }
1525
1525
  i(ss, "diff_cleanupSemantic");
1526
- var Pn = /[^a-z0-9]/i, In = /\s/, Mn = /[\r\n]/, is = /\n\r?\n$/, cs = /^\r?\n\r?\n/;
1526
+ var Nn = /[^a-z0-9]/i, In = /\s/, Mn = /[\r\n]/, is = /\n\r?\n$/, cs = /^\r?\n\r?\n/;
1527
1527
  function us(e) {
1528
1528
  let t = 1;
1529
1529
  for (; t < e.length - 1; ) {
@@ -1546,7 +1546,7 @@ function us(e) {
1546
1546
  }
1547
1547
  i(us, "diff_cleanupSemanticLossless");
1548
1548
  function qn(e) {
1549
- e.push(new N(M, ""));
1549
+ e.push(new P(M, ""));
1550
1550
  let t = 0, n = 0, r = 0, o = "", s = "", c;
1551
1551
  for (; t < e.length; )
1552
1552
  switch (e[t][0]) {
@@ -1558,9 +1558,9 @@ function qn(e) {
1558
1558
  break;
1559
1559
  case M:
1560
1560
  n + r > 1 ? (n !== 0 && r !== 0 && (c = os(s, o), c !== 0 && (t - n - r > 0 && e[t - n - r - 1][0] === M ? e[t - n - r - 1][1] += s.
1561
- substring(0, c) : (e.splice(0, 0, new N(M, s.substring(0, c))), t++), s = s.substring(c), o = o.substring(c)), c = Vn(s, o), c !== 0 &&
1561
+ substring(0, c) : (e.splice(0, 0, new P(M, s.substring(0, c))), t++), s = s.substring(c), o = o.substring(c)), c = Vn(s, o), c !== 0 &&
1562
1562
  (e[t][1] = s.substring(s.length - c) + e[t][1], s = s.substring(0, s.length - c), o = o.substring(0, o.length - c))), t -= n + r, e.
1563
- splice(t, n + r), o.length && (e.splice(t, 0, new N(z, o)), t++), s.length && (e.splice(t, 0, new N(j, s)), t++), t++) : t !== 0 && e[t -
1563
+ splice(t, n + r), o.length && (e.splice(t, 0, new P(z, o)), t++), s.length && (e.splice(t, 0, new P(j, s)), t++), t++) : t !== 0 && e[t -
1564
1564
  1][0] === M ? (e[t - 1][1] += e[t][1], e.splice(t, 1)) : t++, r = 0, n = 0, o = "", s = "";
1565
1565
  break;
1566
1566
  }
@@ -1577,7 +1577,7 @@ i(qn, "diff_cleanupMerge");
1577
1577
  function ze(e, t) {
1578
1578
  if (!e || !t)
1579
1579
  return 6;
1580
- let n = e.charAt(e.length - 1), r = t.charAt(0), o = n.match(Pn), s = r.match(Pn), c = o && n.match(In), a = s && r.match(In), u = c && n.
1580
+ let n = e.charAt(e.length - 1), r = t.charAt(0), o = n.match(Nn), s = r.match(Nn), c = o && n.match(In), a = s && r.match(In), u = c && n.
1581
1581
  match(Mn), m = a && r.match(Mn), p = u && e.match(is), l = m && t.match(cs);
1582
1582
  return p || l ? 5 : u || m ? 4 : o && !c && a ? 3 : c || a ? 2 : o || s ? 1 : 0;
1583
1583
  }
@@ -1588,46 +1588,46 @@ function ls() {
1588
1588
  if (Ln) return Ye;
1589
1589
  Ln = 1, Object.defineProperty(Ye, "__esModule", {
1590
1590
  value: !0
1591
- }), Ye.default = S;
1592
- let e = "diff-sequences", t = 0, n = /* @__PURE__ */ i((g, h, f, d, b) => {
1591
+ }), Ye.default = b;
1592
+ let e = "diff-sequences", t = 0, n = /* @__PURE__ */ i((g, h, f, d, S) => {
1593
1593
  let _ = 0;
1594
- for (; g < h && f < d && b(g, f); )
1594
+ for (; g < h && f < d && S(g, f); )
1595
1595
  g += 1, f += 1, _ += 1;
1596
1596
  return _;
1597
- }, "countCommonItemsF"), r = /* @__PURE__ */ i((g, h, f, d, b) => {
1597
+ }, "countCommonItemsF"), r = /* @__PURE__ */ i((g, h, f, d, S) => {
1598
1598
  let _ = 0;
1599
- for (; g <= h && f <= d && b(h, d); )
1599
+ for (; g <= h && f <= d && S(h, d); )
1600
1600
  h -= 1, d -= 1, _ += 1;
1601
1601
  return _;
1602
- }, "countCommonItemsR"), o = /* @__PURE__ */ i((g, h, f, d, b, _, O) => {
1602
+ }, "countCommonItemsR"), o = /* @__PURE__ */ i((g, h, f, d, S, _, O) => {
1603
1603
  let y = 0, E = -g, $ = _[y], T = $;
1604
1604
  _[y] += n(
1605
1605
  $ + 1,
1606
1606
  h,
1607
1607
  d + $ - E + 1,
1608
1608
  f,
1609
- b
1609
+ S
1610
1610
  );
1611
- let A = g < O ? g : O;
1612
- for (y += 1, E += 2; y <= A; y += 1, E += 2) {
1611
+ let R = g < O ? g : O;
1612
+ for (y += 1, E += 2; y <= R; y += 1, E += 2) {
1613
1613
  if (y !== g && T < _[y])
1614
1614
  $ = _[y];
1615
1615
  else if ($ = T + 1, h <= $)
1616
1616
  return y - 1;
1617
- T = _[y], _[y] = $ + n($ + 1, h, d + $ - E + 1, f, b);
1617
+ T = _[y], _[y] = $ + n($ + 1, h, d + $ - E + 1, f, S);
1618
1618
  }
1619
1619
  return O;
1620
- }, "extendPathsF"), s = /* @__PURE__ */ i((g, h, f, d, b, _, O) => {
1620
+ }, "extendPathsF"), s = /* @__PURE__ */ i((g, h, f, d, S, _, O) => {
1621
1621
  let y = 0, E = g, $ = _[y], T = $;
1622
1622
  _[y] -= r(
1623
1623
  h,
1624
1624
  $ - 1,
1625
1625
  f,
1626
1626
  d + $ - E - 1,
1627
- b
1627
+ S
1628
1628
  );
1629
- let A = g < O ? g : O;
1630
- for (y += 1, E -= 2; y <= A; y += 1, E -= 2) {
1629
+ let R = g < O ? g : O;
1630
+ for (y += 1, E -= 2; y <= R; y += 1, E -= 2) {
1631
1631
  if (y !== g && _[y] < T)
1632
1632
  $ = _[y];
1633
1633
  else if ($ = T - 1, $ < h)
@@ -1637,24 +1637,24 @@ function ls() {
1637
1637
  $ - 1,
1638
1638
  f,
1639
1639
  d + $ - E - 1,
1640
- b
1640
+ S
1641
1641
  );
1642
1642
  }
1643
1643
  return O;
1644
- }, "extendPathsR"), c = /* @__PURE__ */ i((g, h, f, d, b, _, O, y, E, $, T) => {
1645
- let A = d - h, K = f - h, I = b - d - K, k = -I - (g - 1), G = -I + (g - 1), Y = t, P = g < y ? g : y;
1646
- for (let L = 0, x = -g; L <= P; L += 1, x += 2) {
1647
- let H = L === 0 || L !== g && Y < O[L], F = H ? O[L] : Y, W = H ? F : F + 1, re = A + W - x, V = n(
1644
+ }, "extendPathsR"), c = /* @__PURE__ */ i((g, h, f, d, S, _, O, y, E, $, T) => {
1645
+ let R = d - h, K = f - h, I = S - d - K, k = -I - (g - 1), G = -I + (g - 1), Y = t, N = g < y ? g : y;
1646
+ for (let L = 0, x = -g; L <= N; L += 1, x += 2) {
1647
+ let H = L === 0 || L !== g && Y < O[L], F = H ? O[L] : Y, W = H ? F : F + 1, re = R + W - x, V = n(
1648
1648
  W + 1,
1649
1649
  f,
1650
1650
  re + 1,
1651
- b,
1651
+ S,
1652
1652
  _
1653
1653
  ), q = W + V;
1654
1654
  if (Y = O[L], O[L] = q, k <= x && x <= G) {
1655
1655
  let se = (g - 1 - (x + I)) / 2;
1656
1656
  if (se <= $ && E[se] - 1 <= q) {
1657
- let J = A + F - (H ? x + 1 : x - 1), U = r(
1657
+ let J = R + F - (H ? x + 1 : x - 1), U = r(
1658
1658
  h,
1659
1659
  F,
1660
1660
  d,
@@ -1665,16 +1665,16 @@ function ls() {
1665
1665
  be), T.nCommonPreceding = U, U !== 0 && (T.aCommonPreceding = ue, T.bCommonPreceding = be), T.nCommonFollowing = V, V !== 0 && (T.
1666
1666
  aCommonFollowing = W + 1, T.bCommonFollowing = re + 1);
1667
1667
  let Ce = q + 1, Oe = re + V + 1;
1668
- return T.nChangeFollowing = g - 1, g - 1 === f + b - Ce - Oe ? (T.aStartFollowing = f, T.bStartFollowing = b) : (T.aStartFollowing =
1668
+ return T.nChangeFollowing = g - 1, g - 1 === f + S - Ce - Oe ? (T.aStartFollowing = f, T.bStartFollowing = S) : (T.aStartFollowing =
1669
1669
  Ce, T.bStartFollowing = Oe), !0;
1670
1670
  }
1671
1671
  }
1672
1672
  }
1673
1673
  return !1;
1674
- }, "extendOverlappablePathsF"), a = /* @__PURE__ */ i((g, h, f, d, b, _, O, y, E, $, T) => {
1675
- let A = b - f, K = f - h, I = b - d - K, k = I - g, G = I + g, Y = t, P = g < $ ? g : $;
1676
- for (let L = 0, x = g; L <= P; L += 1, x -= 2) {
1677
- let H = L === 0 || L !== g && E[L] < Y, F = H ? E[L] : Y, W = H ? F : F - 1, re = A + W - x, V = r(
1674
+ }, "extendOverlappablePathsF"), a = /* @__PURE__ */ i((g, h, f, d, S, _, O, y, E, $, T) => {
1675
+ let R = S - f, K = f - h, I = S - d - K, k = I - g, G = I + g, Y = t, N = g < $ ? g : $;
1676
+ for (let L = 0, x = g; L <= N; L += 1, x -= 2) {
1677
+ let H = L === 0 || L !== g && E[L] < Y, F = H ? E[L] : Y, W = H ? F : F - 1, re = R + W - x, V = r(
1678
1678
  h,
1679
1679
  W - 1,
1680
1680
  d,
@@ -1687,40 +1687,40 @@ function ls() {
1687
1687
  let J = re - V;
1688
1688
  if (T.nChangePreceding = g, g === q + J - h - d ? (T.aEndPreceding = h, T.bEndPreceding = d) : (T.aEndPreceding = q, T.bEndPreceding =
1689
1689
  J), T.nCommonPreceding = V, V !== 0 && (T.aCommonPreceding = q, T.bCommonPreceding = J), T.nChangeFollowing = g - 1, g === 1)
1690
- T.nCommonFollowing = 0, T.aStartFollowing = f, T.bStartFollowing = b;
1690
+ T.nCommonFollowing = 0, T.aStartFollowing = f, T.bStartFollowing = S;
1691
1691
  else {
1692
- let U = A + F - (H ? x - 1 : x + 1), oe = n(
1692
+ let U = R + F - (H ? x - 1 : x + 1), oe = n(
1693
1693
  F,
1694
1694
  f,
1695
1695
  U,
1696
- b,
1696
+ S,
1697
1697
  _
1698
1698
  );
1699
1699
  T.nCommonFollowing = oe, oe !== 0 && (T.aCommonFollowing = F, T.bCommonFollowing = U);
1700
1700
  let he = F + oe, ue = U + oe;
1701
- g - 1 === f + b - he - ue ? (T.aStartFollowing = f, T.bStartFollowing = b) : (T.aStartFollowing = he, T.bStartFollowing = ue);
1701
+ g - 1 === f + S - he - ue ? (T.aStartFollowing = f, T.bStartFollowing = S) : (T.aStartFollowing = he, T.bStartFollowing = ue);
1702
1702
  }
1703
1703
  return !0;
1704
1704
  }
1705
1705
  }
1706
1706
  }
1707
1707
  return !1;
1708
- }, "extendOverlappablePathsR"), u = /* @__PURE__ */ i((g, h, f, d, b, _, O, y, E) => {
1709
- let $ = d - h, T = b - f, A = f - h, K = b - d, Q = K - A, I = A, k = A;
1708
+ }, "extendOverlappablePathsR"), u = /* @__PURE__ */ i((g, h, f, d, S, _, O, y, E) => {
1709
+ let $ = d - h, T = S - f, R = f - h, K = S - d, Q = K - R, I = R, k = R;
1710
1710
  if (O[0] = h - 1, y[0] = f, Q % 2 === 0) {
1711
- let G = (g || Q) / 2, Y = (A + K) / 2;
1712
- for (let P = 1; P <= Y; P += 1)
1713
- if (I = o(P, f, b, $, _, O, I), P < G)
1714
- k = s(P, h, d, T, _, y, k);
1711
+ let G = (g || Q) / 2, Y = (R + K) / 2;
1712
+ for (let N = 1; N <= Y; N += 1)
1713
+ if (I = o(N, f, S, $, _, O, I), N < G)
1714
+ k = s(N, h, d, T, _, y, k);
1715
1715
  else if (
1716
1716
  // If a reverse path overlaps a forward path in the same diagonal,
1717
1717
  // return a division of the index intervals at the middle change.
1718
1718
  a(
1719
- P,
1719
+ N,
1720
1720
  h,
1721
1721
  f,
1722
1722
  d,
1723
- b,
1723
+ S,
1724
1724
  _,
1725
1725
  O,
1726
1726
  I,
@@ -1731,27 +1731,27 @@ function ls() {
1731
1731
  )
1732
1732
  return;
1733
1733
  } else {
1734
- let G = ((g || Q) + 1) / 2, Y = (A + K + 1) / 2, P = 1;
1735
- for (I = o(P, f, b, $, _, O, I), P += 1; P <= Y; P += 1)
1734
+ let G = ((g || Q) + 1) / 2, Y = (R + K + 1) / 2, N = 1;
1735
+ for (I = o(N, f, S, $, _, O, I), N += 1; N <= Y; N += 1)
1736
1736
  if (k = s(
1737
- P - 1,
1737
+ N - 1,
1738
1738
  h,
1739
1739
  d,
1740
1740
  T,
1741
1741
  _,
1742
1742
  y,
1743
1743
  k
1744
- ), P < G)
1745
- I = o(P, f, b, $, _, O, I);
1744
+ ), N < G)
1745
+ I = o(N, f, S, $, _, O, I);
1746
1746
  else if (
1747
1747
  // If a forward path overlaps a reverse path in the same diagonal,
1748
1748
  // return a division of the index intervals at the middle change.
1749
1749
  c(
1750
- P,
1750
+ N,
1751
1751
  h,
1752
1752
  f,
1753
1753
  d,
1754
- b,
1754
+ S,
1755
1755
  _,
1756
1756
  O,
1757
1757
  I,
@@ -1763,10 +1763,10 @@ function ls() {
1763
1763
  return;
1764
1764
  }
1765
1765
  throw new Error(
1766
- `${e}: no overlap aStart=${h} aEnd=${f} bStart=${d} bEnd=${b}`
1766
+ `${e}: no overlap aStart=${h} aEnd=${f} bStart=${d} bEnd=${S}`
1767
1767
  );
1768
- }, "divide"), m = /* @__PURE__ */ i((g, h, f, d, b, _, O, y, E, $) => {
1769
- if (b - d < f - h) {
1768
+ }, "divide"), m = /* @__PURE__ */ i((g, h, f, d, S, _, O, y, E, $) => {
1769
+ if (S - d < f - h) {
1770
1770
  if (_ = !_, _ && O.length === 1) {
1771
1771
  let { foundSubsequence: q, isCommon: se } = O[0];
1772
1772
  O[1] = {
@@ -1777,16 +1777,16 @@ function ls() {
1777
1777
  };
1778
1778
  }
1779
1779
  let re = h, V = f;
1780
- h = d, f = b, d = re, b = V;
1780
+ h = d, f = S, d = re, S = V;
1781
1781
  }
1782
- let { foundSubsequence: T, isCommon: A } = O[_ ? 1 : 0];
1782
+ let { foundSubsequence: T, isCommon: R } = O[_ ? 1 : 0];
1783
1783
  u(
1784
1784
  g,
1785
1785
  h,
1786
1786
  f,
1787
1787
  d,
1788
- b,
1789
- A,
1788
+ S,
1789
+ R,
1790
1790
  y,
1791
1791
  E,
1792
1792
  $
@@ -1798,7 +1798,7 @@ function ls() {
1798
1798
  nCommonPreceding: k,
1799
1799
  aCommonPreceding: G,
1800
1800
  bCommonPreceding: Y,
1801
- nCommonFollowing: P,
1801
+ nCommonFollowing: N,
1802
1802
  aCommonFollowing: L,
1803
1803
  bCommonFollowing: x,
1804
1804
  nChangeFollowing: H,
@@ -1816,12 +1816,12 @@ function ls() {
1816
1816
  y,
1817
1817
  E,
1818
1818
  $
1819
- ), k !== 0 && T(k, G, Y), P !== 0 && T(P, L, x), F < f && W < b && m(
1819
+ ), k !== 0 && T(k, G, Y), N !== 0 && T(N, L, x), F < f && W < S && m(
1820
1820
  H,
1821
1821
  F,
1822
1822
  f,
1823
1823
  W,
1824
- b,
1824
+ S,
1825
1825
  _,
1826
1826
  O,
1827
1827
  y,
@@ -1840,17 +1840,17 @@ function ls() {
1840
1840
  if (f !== "function")
1841
1841
  throw new TypeError(`${e}: ${g} typeof ${f} is not a function`);
1842
1842
  }, "validateCallback");
1843
- function S(g, h, f, d) {
1843
+ function b(g, h, f, d) {
1844
1844
  p("aLength", g), p("bLength", h), l("isCommon", f), l("foundSubsequence", d);
1845
- let b = n(0, g, 0, h, f);
1846
- if (b !== 0 && d(b, 0, 0), g !== b || h !== b) {
1847
- let _ = b, O = b, y = r(
1845
+ let S = n(0, g, 0, h, f);
1846
+ if (S !== 0 && d(S, 0, 0), g !== S || h !== S) {
1847
+ let _ = S, O = S, y = r(
1848
1848
  _,
1849
1849
  g - 1,
1850
1850
  O,
1851
1851
  h - 1,
1852
1852
  f
1853
- ), E = g - y, $ = h - y, T = b + y;
1853
+ ), E = g - y, $ = h - y, T = S + y;
1854
1854
  g !== T && h !== T && m(
1855
1855
  0,
1856
1856
  _,
@@ -1883,10 +1883,10 @@ function ls() {
1883
1883
  ), y !== 0 && d(y, E, $);
1884
1884
  }
1885
1885
  }
1886
- return i(S, "diffSequence"), Ye;
1886
+ return i(b, "diffSequence"), Ye;
1887
1887
  }
1888
1888
  i(ls, "requireBuild");
1889
- var fs = ls(), Gn = /* @__PURE__ */ An(fs);
1889
+ var fs = ls(), Gn = /* @__PURE__ */ Rn(fs);
1890
1890
  function ms(e, t) {
1891
1891
  return e.replace(/\s+$/, (n) => t(n));
1892
1892
  }
@@ -1932,9 +1932,9 @@ function ps(e, t) {
1932
1932
  }
1933
1933
  let m = a !== 0 || c;
1934
1934
  a !== 0 ? s += a + 1 : c && (s += 1);
1935
- let p = s - 1, l = [], S = 0;
1935
+ let p = s - 1, l = [], b = 0;
1936
1936
  m && l.push("");
1937
- let g = 0, h = 0, f = 0, d = 0, b = /* @__PURE__ */ i((y) => {
1937
+ let g = 0, h = 0, f = 0, d = 0, S = /* @__PURE__ */ i((y) => {
1938
1938
  let E = l.length;
1939
1939
  l.push(Xn(y, E === 0 || E === p, t)), f += 1, d += 1;
1940
1940
  }, "pushCommonLine"), _ = /* @__PURE__ */ i((y) => {
@@ -1952,32 +1952,32 @@ function ps(e, t) {
1952
1952
  if (y === 0) {
1953
1953
  u > r && (y = u - r, g = y, h = y, f = g, d = h);
1954
1954
  for (let E = y; E !== u; E += 1)
1955
- b(e[E][1]);
1955
+ S(e[E][1]);
1956
1956
  } else if (u === n) {
1957
1957
  let E = u - y > r ? y + r : u;
1958
1958
  for (let $ = y; $ !== E; $ += 1)
1959
- b(e[$][1]);
1959
+ S(e[$][1]);
1960
1960
  } else {
1961
1961
  let E = u - y;
1962
1962
  if (E > o) {
1963
1963
  let $ = y + r;
1964
- for (let A = y; A !== $; A += 1)
1965
- b(e[A][1]);
1966
- l[S] = xn(g, f, h, d, t), S = l.length, l.push("");
1964
+ for (let R = y; R !== $; R += 1)
1965
+ S(e[R][1]);
1966
+ l[b] = xn(g, f, h, d, t), b = l.length, l.push("");
1967
1967
  let T = E - o;
1968
1968
  g = f + T, h = d + T, f = g, d = h;
1969
- for (let A = u - r; A !== u; A += 1)
1970
- b(e[A][1]);
1969
+ for (let R = u - r; R !== u; R += 1)
1970
+ S(e[R][1]);
1971
1971
  } else
1972
1972
  for (let $ = y; $ !== u; $ += 1)
1973
- b(e[$][1]);
1973
+ S(e[$][1]);
1974
1974
  }
1975
1975
  for (; u !== n && e[u][0] === z; )
1976
1976
  _(e[u][1]), u += 1;
1977
1977
  for (; u !== n && e[u][0] === j; )
1978
1978
  O(e[u][1]), u += 1;
1979
1979
  }
1980
- return m && (l[S] = xn(g, f, h, d, t)), l.join(`
1980
+ return m && (l[b] = xn(g, f, h, d, t)), l.join(`
1981
1981
  `);
1982
1982
  }
1983
1983
  i(ps, "joinAlignedDiffsNoExpand");
@@ -2067,25 +2067,25 @@ function Es({ aAnnotation: e, aColor: t, aIndicator: n, bAnnotation: r, bColor:
2067
2067
  return "";
2068
2068
  let m = "", p = "";
2069
2069
  if (c) {
2070
- let g = String(u.a), h = String(u.b), f = r.length - e.length, d = " ".repeat(Math.max(0, f)), b = " ".repeat(Math.max(0, -f)), _ = h.length -
2070
+ let g = String(u.a), h = String(u.b), f = r.length - e.length, d = " ".repeat(Math.max(0, f)), S = " ".repeat(Math.max(0, -f)), _ = h.length -
2071
2071
  g.length, O = " ".repeat(Math.max(0, _)), y = " ".repeat(Math.max(0, -_));
2072
- m = `${d} ${n} ${O}${g}`, p = `${b} ${s} ${y}${h}`;
2072
+ m = `${d} ${n} ${O}${g}`, p = `${S} ${s} ${y}${h}`;
2073
2073
  }
2074
- let l = `${n} ${e}${m}`, S = `${s} ${r}${p}`;
2074
+ let l = `${n} ${e}${m}`, b = `${s} ${r}${p}`;
2075
2075
  return `${t(l)}
2076
- ${o(S)}
2076
+ ${o(b)}
2077
2077
 
2078
2078
  `;
2079
2079
  }
2080
2080
  i(Es, "printAnnotation");
2081
- function At(e, t, n) {
2081
+ function Rt(e, t, n) {
2082
2082
  return Es(n, Ss(e)) + (n.expand ? gs(e, n) : ps(e, n)) + (t ? n.truncateAnnotationColor(`
2083
2083
  ${n.truncateAnnotation}`) : "");
2084
2084
  }
2085
- i(At, "printDiffLines");
2085
+ i(Rt, "printDiffLines");
2086
2086
  function We(e, t, n) {
2087
2087
  let r = ge(n), [o, s] = Qn(ye(e) ? [] : e, ye(t) ? [] : t, r);
2088
- return At(o, s, r);
2088
+ return Rt(o, s, r);
2089
2089
  }
2090
2090
  i(We, "diffLinesUnified");
2091
2091
  function _s(e, t, n, r, o) {
@@ -2103,7 +2103,7 @@ function _s(e, t, n, r, o) {
2103
2103
  default:
2104
2104
  m[1] = t[u], a += 1, u += 1;
2105
2105
  }
2106
- }), At(s, c, ge(o));
2106
+ }), Rt(s, c, ge(o));
2107
2107
  }
2108
2108
  i(_s, "diffLinesUnified2");
2109
2109
  function Qn(e, t, n) {
@@ -2112,15 +2112,15 @@ function Qn(e, t, n) {
2112
2112
  p = 0, l = 0;
2113
2113
  for (Gn(s, c, u, /* @__PURE__ */ i((g, h, f) => {
2114
2114
  for (; p !== h; p += 1)
2115
- m.push(new N(z, e[p]));
2115
+ m.push(new P(z, e[p]));
2116
2116
  for (; l !== f; l += 1)
2117
- m.push(new N(j, t[l]));
2117
+ m.push(new P(j, t[l]));
2118
2118
  for (; g !== 0; g -= 1, p += 1, l += 1)
2119
- m.push(new N(M, t[l]));
2119
+ m.push(new P(M, t[l]));
2120
2120
  }, "foundSubsequence")); p !== s; p += 1)
2121
- m.push(new N(z, e[p]));
2121
+ m.push(new P(z, e[p]));
2122
2122
  for (; l !== c; l += 1)
2123
- m.push(new N(j, t[l]));
2123
+ m.push(new P(j, t[l]));
2124
2124
  return [m, a];
2125
2125
  }
2126
2126
  i(Qn, "diffLinesRaw");
@@ -2170,23 +2170,23 @@ function Ts(e, t, n) {
2170
2170
  if (r) {
2171
2171
  let g = e.includes(`
2172
2172
  `), h = t.includes(`
2173
- `), f = Fn(e), d = Fn(t), b = g ? `${e.split(f, o).join(f)}
2173
+ `), f = Fn(e), d = Fn(t), S = g ? `${e.split(f, o).join(f)}
2174
2174
  ` : e, _ = h ? `${t.split(d, o).join(d)}
2175
2175
  ` : t;
2176
- s = b.length, c = _.length;
2176
+ s = S.length, c = _.length;
2177
2177
  }
2178
2178
  let a = s !== e.length || c !== t.length, u = /* @__PURE__ */ i((g, h) => e[g] === t[h], "isCommon"), m = 0, p = 0, l = [];
2179
2179
  return Gn(s, c, u, /* @__PURE__ */ i((g, h, f) => {
2180
- m !== h && l.push(new N(z, e.slice(m, h))), p !== f && l.push(new N(j, t.slice(p, f))), m = h + g, p = f + g, l.push(new N(M, t.slice(f,
2180
+ m !== h && l.push(new P(z, e.slice(m, h))), p !== f && l.push(new P(j, t.slice(p, f))), m = h + g, p = f + g, l.push(new P(M, t.slice(f,
2181
2181
  p)));
2182
- }, "foundSubsequence")), m !== s && l.push(new N(z, e.slice(m))), p !== c && l.push(new N(j, t.slice(p))), [l, a];
2182
+ }, "foundSubsequence")), m !== s && l.push(new P(z, e.slice(m))), p !== c && l.push(new P(j, t.slice(p))), [l, a];
2183
2183
  }
2184
2184
  i(Ts, "diffStrings");
2185
2185
  function Cs(e, t, n) {
2186
2186
  return t.reduce((r, o) => r + (o[0] === M ? o[1] : o[0] === e && o[1].length !== 0 ? n(o[1]) : ""), "");
2187
2187
  }
2188
2188
  i(Cs, "concatenateRelevantDiffs");
2189
- var Nt = class Nt {
2189
+ var Pt = class Pt {
2190
2190
  op;
2191
2191
  line;
2192
2192
  lines;
@@ -2195,11 +2195,11 @@ var Nt = class Nt {
2195
2195
  this.op = t, this.line = [], this.lines = [], this.changeColor = n;
2196
2196
  }
2197
2197
  pushSubstring(t) {
2198
- this.pushDiff(new N(this.op, t));
2198
+ this.pushDiff(new P(this.op, t));
2199
2199
  }
2200
2200
  pushLine() {
2201
- this.lines.push(this.line.length !== 1 ? new N(this.op, Cs(this.op, this.line, this.changeColor)) : this.line[0][0] === this.op ? this.line[0] :
2202
- new N(this.op, this.line[0][1])), this.line.length = 0;
2201
+ this.lines.push(this.line.length !== 1 ? new P(this.op, Cs(this.op, this.line, this.changeColor)) : this.line[0][0] === this.op ? this.line[0] :
2202
+ new P(this.op, this.line[0][1])), this.line.length = 0;
2203
2203
  }
2204
2204
  isLineEmpty() {
2205
2205
  return this.line.length === 0;
@@ -2226,8 +2226,8 @@ var Nt = class Nt {
2226
2226
  this.isLineEmpty() || this.pushLine(), t.push(...this.lines), this.lines.length = 0;
2227
2227
  }
2228
2228
  };
2229
- i(Nt, "ChangeBuffer");
2230
- var Ue = Nt, Pt = class Pt {
2229
+ i(Pt, "ChangeBuffer");
2230
+ var Ue = Pt, Nt = class Nt {
2231
2231
  deleteBuffer;
2232
2232
  insertBuffer;
2233
2233
  lines;
@@ -2254,10 +2254,10 @@ var Ue = Nt, Pt = class Pt {
2254
2254
  `), s = o.length - 1;
2255
2255
  o.forEach((c, a) => {
2256
2256
  if (a === 0) {
2257
- let u = new N(n, c);
2257
+ let u = new P(n, c);
2258
2258
  this.deleteBuffer.isLineEmpty() && this.insertBuffer.isLineEmpty() ? (this.flushChangeLines(), this.pushDiffCommonLine(u)) : (this.
2259
2259
  pushDiffChangeLines(u), this.flushChangeLines());
2260
- } else a < s ? this.pushDiffCommonLine(new N(n, c)) : c.length !== 0 && this.pushDiffChangeLines(new N(n, c));
2260
+ } else a < s ? this.pushDiffCommonLine(new P(n, c)) : c.length !== 0 && this.pushDiffChangeLines(new P(n, c));
2261
2261
  });
2262
2262
  } else
2263
2263
  this.pushDiffChangeLines(t);
@@ -2267,8 +2267,8 @@ var Ue = Nt, Pt = class Pt {
2267
2267
  return this.flushChangeLines(), this.lines;
2268
2268
  }
2269
2269
  };
2270
- i(Pt, "CommonBuffer");
2271
- var Tt = Pt;
2270
+ i(Nt, "CommonBuffer");
2271
+ var Tt = Nt;
2272
2272
  function Os(e, t) {
2273
2273
  let n = new Ue(z, t), r = new Ue(j, t), o = new Tt(n, r);
2274
2274
  return e.forEach((s) => {
@@ -2303,7 +2303,7 @@ function ws(e, t, n) {
2303
2303
  ` : t, !0, n);
2304
2304
  if ($s(o, r)) {
2305
2305
  let c = ge(n), a = Os(o, c.changeColor);
2306
- return At(a, s, c);
2306
+ return Rt(a, s, c);
2307
2307
  }
2308
2308
  }
2309
2309
  return We(e.split(`
@@ -2321,13 +2321,13 @@ function Ct(e, t) {
2321
2321
  return n(e);
2322
2322
  }
2323
2323
  i(Ct, "getCommonMessage");
2324
- var { AsymmetricMatcher: As, DOMCollection: Rs, DOMElement: Ns, Immutable: Ps, ReactElement: Is, ReactTestComponent: Ms } = _e, er = [
2324
+ var { AsymmetricMatcher: Rs, DOMCollection: As, DOMElement: Ps, Immutable: Ns, ReactElement: Is, ReactTestComponent: Ms } = _e, er = [
2325
2325
  Ms,
2326
2326
  Is,
2327
- Ns,
2328
- Rs,
2329
2327
  Ps,
2330
2328
  As,
2329
+ Ns,
2330
+ Rs,
2331
2331
  _e.Error
2332
2332
  ], Ot = {
2333
2333
  maxDepth: 20,
@@ -2351,13 +2351,13 @@ function Ls(e, t, n) {
2351
2351
  return O.length <= f ? O : `${O.slice(0, f)}...`;
2352
2352
  };
2353
2353
  i(d, "truncate");
2354
- let { aAnnotation: c, aColor: a, aIndicator: u, bAnnotation: m, bColor: p, bIndicator: l } = ge(n), S = $t(tr, n), g = X(e, S), h = X(t,
2355
- S), f = 1e5;
2354
+ let { aAnnotation: c, aColor: a, aIndicator: u, bAnnotation: m, bColor: p, bIndicator: l } = ge(n), b = $t(tr, n), g = X(e, b), h = X(t,
2355
+ b), f = 1e5;
2356
2356
  g = d(g), h = d(h);
2357
- let b = `${a(`${u} ${c}:`)}
2357
+ let S = `${a(`${u} ${c}:`)}
2358
2358
  ${g}`, _ = `${p(`${l} ${m}:`)}
2359
2359
  ${h}`;
2360
- return `${b}
2360
+ return `${S}
2361
2361
 
2362
2362
  ${_}`;
2363
2363
  }
@@ -2456,7 +2456,7 @@ function nr(e, t, n) {
2456
2456
  `) || e.includes(`
2457
2457
  `))
2458
2458
  return ws(t, e, n);
2459
- let [p] = vn(t, e, !0), l = p.some((f) => f[0] === M), S = Ds(r, o), g = S(r) + ks(Wn(p, z, l)), h = S(o) + js(Wn(p, j, l));
2459
+ let [p] = vn(t, e, !0), l = p.some((f) => f[0] === M), b = Ds(r, o), g = b(r) + ks(Wn(p, z, l)), h = b(o) + js(Wn(p, j, l));
2460
2460
  return `${g}
2461
2461
  ${h}`;
2462
2462
  }
@@ -2653,7 +2653,7 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2653
2653
  return {};
2654
2654
  }
2655
2655
  }, "construct"), Mt = /* @__PURE__ */ i(() => ({
2656
- renderPhase: void 0,
2656
+ renderPhase: "preparing",
2657
2657
  isDebugging: !1,
2658
2658
  isPlaying: !1,
2659
2659
  isLocked: !1,
@@ -2697,43 +2697,45 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2697
2697
  this.loadParentWindowState();
2698
2698
  let t = /* @__PURE__ */ i(({
2699
2699
  storyId: u,
2700
- isPlaying: m = !0,
2701
- isDebugging: p = !1
2700
+ renderPhase: m,
2701
+ isPlaying: p = !0,
2702
+ isDebugging: l = !1
2702
2703
  }) => {
2703
- let l = this.getState(u);
2704
+ let b = this.getState(u);
2704
2705
  this.setState(u, {
2705
2706
  ...Mt(),
2706
- ...ur(l, p),
2707
- shadowCalls: p ? l.shadowCalls : [],
2708
- chainedCallIds: p ? l.chainedCallIds : /* @__PURE__ */ new Set(),
2709
- playUntil: p ? l.playUntil : void 0,
2710
- isPlaying: m,
2711
- isDebugging: p
2707
+ ...ur(b, l),
2708
+ renderPhase: m || b.renderPhase,
2709
+ shadowCalls: l ? b.shadowCalls : [],
2710
+ chainedCallIds: l ? b.chainedCallIds : /* @__PURE__ */ new Set(),
2711
+ playUntil: l ? b.playUntil : void 0,
2712
+ isPlaying: p,
2713
+ isDebugging: l
2712
2714
  }), this.sync(u);
2713
2715
  }, "resetState"), n = /* @__PURE__ */ i((u) => ({ storyId: m, playUntil: p }) => {
2714
- this.getState(m).isDebugging || this.setState(m, ({ calls: S }) => ({
2716
+ this.getState(m).isDebugging || this.setState(m, ({ calls: b }) => ({
2715
2717
  calls: [],
2716
- shadowCalls: S.map((g) => ({ ...g, status: "waiting" })),
2718
+ shadowCalls: b.map((g) => ({ ...g, status: "waiting" })),
2717
2719
  isDebugging: !0
2718
2720
  }));
2719
2721
  let l = this.getLog(m);
2720
- this.setState(m, ({ shadowCalls: S }) => {
2722
+ this.setState(m, ({ shadowCalls: b }) => {
2721
2723
  if (p || !l.length)
2722
2724
  return { playUntil: p };
2723
- let g = S.findIndex((h) => h.id === l[0].callId);
2725
+ let g = b.findIndex((h) => h.id === l[0].callId);
2724
2726
  return {
2725
- playUntil: S.slice(0, g).filter((h) => h.interceptable && !h.ancestors?.length).slice(-1)[0]?.id
2727
+ playUntil: b.slice(0, g).filter((h) => h.interceptable && !h.ancestors?.length).slice(-1)[0]?.id
2726
2728
  };
2727
2729
  }), u.emit(ir, { storyId: m, isDebugging: !0 });
2728
2730
  }, "start"), r = /* @__PURE__ */ i((u) => ({ storyId: m }) => {
2729
- let p = this.getLog(m).filter((S) => !S.ancestors?.length), l = p.reduceRight((S, g, h) => S >= 0 || g.status === "waiting" ? S : h, -1);
2731
+ let p = this.getLog(m).filter((b) => !b.ancestors?.length), l = p.reduceRight((b, g, h) => b >= 0 || g.status === "waiting" ? b : h, -1);
2730
2732
  n(u)({ storyId: m, playUntil: p[l - 1]?.callId });
2731
2733
  }, "back"), o = /* @__PURE__ */ i((u) => ({ storyId: m, callId: p }) => {
2732
- let { calls: l, shadowCalls: S, resolvers: g } = this.getState(m), h = l.find(({ id: d }) => d === p), f = S.find(({ id: d }) => d ===
2734
+ let { calls: l, shadowCalls: b, resolvers: g } = this.getState(m), h = l.find(({ id: d }) => d === p), f = b.find(({ id: d }) => d ===
2733
2735
  p);
2734
2736
  if (!h && f && Object.values(g).length > 0) {
2735
- let d = this.getLog(m).find((b) => b.status === "waiting")?.callId;
2736
- f.id !== d && this.setState(m, { playUntil: f.id }), Object.values(g).forEach((b) => b());
2737
+ let d = this.getLog(m).find((S) => S.status === "waiting")?.callId;
2738
+ f.id !== d && this.setState(m, { playUntil: f.id }), Object.values(g).forEach((S) => S());
2737
2739
  } else
2738
2740
  n(u)({ storyId: m, playUntil: p });
2739
2741
  }, "goto"), s = /* @__PURE__ */ i((u) => ({ storyId: m }) => {
@@ -2741,22 +2743,36 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2741
2743
  if (Object.values(p).length > 0)
2742
2744
  Object.values(p).forEach((l) => l());
2743
2745
  else {
2744
- let l = this.getLog(m).find((S) => S.status === "waiting")?.callId;
2746
+ let l = this.getLog(m).find((b) => b.status === "waiting")?.callId;
2745
2747
  l ? n(u)({ storyId: m, playUntil: l }) : c({ storyId: m });
2746
2748
  }
2747
2749
  }, "next"), c = /* @__PURE__ */ i(({ storyId: u }) => {
2748
2750
  this.setState(u, { playUntil: void 0, isDebugging: !1 }), Object.values(this.getState(u).resolvers).forEach((m) => m());
2749
- }, "end"), a = /* @__PURE__ */ i(({ storyId: u, newPhase: m }) => {
2751
+ }, "end"), a = /* @__PURE__ */ i(({
2752
+ storyId: u,
2753
+ newPhase: m
2754
+ }) => {
2750
2755
  let { isDebugging: p } = this.getState(u);
2751
- this.setState(u, { renderPhase: m }), m === "preparing" && p && t({ storyId: u }), m === "playing" && t({ storyId: u, isDebugging: p }),
2752
- m === "played" && this.setState(u, {
2756
+ if (m === "preparing" && p)
2757
+ return t({ storyId: u, renderPhase: m });
2758
+ if (m === "playing")
2759
+ return t({ storyId: u, renderPhase: m, isDebugging: p });
2760
+ m === "played" ? this.setState(u, {
2761
+ renderPhase: m,
2753
2762
  isLocked: !1,
2754
2763
  isPlaying: !1,
2755
2764
  isDebugging: !1
2756
- }), m === "errored" && this.setState(u, {
2765
+ }) : m === "errored" ? this.setState(u, {
2766
+ renderPhase: m,
2757
2767
  isLocked: !1,
2758
2768
  isPlaying: !1
2759
- });
2769
+ }) : m === "aborted" ? this.setState(u, {
2770
+ renderPhase: m,
2771
+ isLocked: !0,
2772
+ isPlaying: !1
2773
+ }) : this.setState(u, {
2774
+ renderPhase: m
2775
+ }), this.sync(u);
2760
2776
  }, "renderPhaseChanged");
2761
2777
  qe && qe.ready().then(() => {
2762
2778
  this.channel = qe.getChannel(), this.channel.on(ir, t), this.channel.on(Gs, a), this.channel.on(Ks, () => {
@@ -2769,8 +2785,10 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2769
2785
  return this.state[t] || Mt();
2770
2786
  }
2771
2787
  setState(t, n) {
2772
- let r = this.getState(t), o = typeof n == "function" ? n(r) : n;
2773
- this.state = { ...this.state, [t]: { ...r, ...o } }, this.updateParentWindowState();
2788
+ if (t) {
2789
+ let r = this.getState(t), o = typeof n == "function" ? n(r) : n;
2790
+ this.state = { ...this.state, [t]: { ...r, ...o } }, this.updateParentWindowState();
2791
+ }
2774
2792
  }
2775
2793
  cleanup() {
2776
2794
  this.state = Object.entries(this.state).reduce(
@@ -2840,8 +2858,8 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2840
2858
  let c = o?.[0]?.__storyId__ || Z.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId, { cursor: a, ancestors: u } = this.getState(
2841
2859
  c);
2842
2860
  this.setState(c, { cursor: a + 1 });
2843
- let m = `${u.slice(-1)[0] || c} [${a}] ${t}`, { path: p = [], intercept: l = !1, retain: S = !1 } = s, g = typeof l == "function" ? l(t,
2844
- p) : l, h = { id: m, cursor: a, storyId: c, ancestors: u, path: p, method: t, args: o, interceptable: g, retain: S }, d = (g && !u.length ?
2861
+ let m = `${u.slice(-1)[0] || c} [${a}] ${t}`, { path: p = [], intercept: l = !1, retain: b = !1 } = s, g = typeof l == "function" ? l(t,
2862
+ p) : l, h = { id: m, cursor: a, storyId: c, ancestors: u, path: p, method: t, args: o, interceptable: g, retain: b }, d = (g && !u.length ?
2845
2863
  this.intercept : this.invoke).call(this, n, r, h, s);
2846
2864
  return this.instrument(d, { ...s, mutate: !0, path: [{ __callId__: h.id }] });
2847
2865
  }
@@ -2858,15 +2876,15 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2858
2876
  }), this.invoke(t, n, r, o)));
2859
2877
  }
2860
2878
  invoke(t, n, r, o) {
2861
- let { callRefsByResult: s, renderPhase: c } = this.getState(r.storyId), a = 25, u = /* @__PURE__ */ i((l, S, g) => {
2879
+ let { callRefsByResult: s, renderPhase: c } = this.getState(r.storyId), a = 25, u = /* @__PURE__ */ i((l, b, g) => {
2862
2880
  if (g.includes(l))
2863
2881
  return "[Circular]";
2864
- if (g = [...g, l], S > a)
2882
+ if (g = [...g, l], b > a)
2865
2883
  return "...";
2866
2884
  if (s.has(l))
2867
2885
  return s.get(l);
2868
2886
  if (l instanceof Array)
2869
- return l.map((h) => u(h, ++S, g));
2887
+ return l.map((h) => u(h, ++b, g));
2870
2888
  if (l instanceof Date)
2871
2889
  return { __date__: { value: l.toISOString() } };
2872
2890
  if (l instanceof Error) {
@@ -2878,32 +2896,32 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2878
2896
  return { __regexp__: { flags: h, source: f } };
2879
2897
  }
2880
2898
  if (l instanceof Z.window?.HTMLElement) {
2881
- let { prefix: h, localName: f, id: d, classList: b, innerText: _ } = l, O = Array.from(b);
2899
+ let { prefix: h, localName: f, id: d, classList: S, innerText: _ } = l, O = Array.from(S);
2882
2900
  return { __element__: { prefix: h, localName: f, id: d, classNames: O, innerText: _ } };
2883
2901
  }
2884
2902
  return typeof l == "function" ? {
2885
2903
  __function__: { name: "getMockName" in l ? l.getMockName() : l.name }
2886
2904
  } : typeof l == "symbol" ? { __symbol__: { description: l.description } } : typeof l == "object" && l?.constructor?.name && l?.constructor?.
2887
2905
  name !== "Object" ? { __class__: { name: l.constructor.name } } : Object.prototype.toString.call(l) === "[object Object]" ? Object.fromEntries(
2888
- Object.entries(l).map(([h, f]) => [h, u(f, ++S, g)])
2906
+ Object.entries(l).map(([h, f]) => [h, u(f, ++b, g)])
2889
2907
  ) : l;
2890
2908
  }, "serializeValues"), m = {
2891
2909
  ...r,
2892
2910
  args: r.args.map((l) => u(l, 0, []))
2893
2911
  };
2894
2912
  r.path.forEach((l) => {
2895
- l?.__callId__ && this.setState(r.storyId, ({ chainedCallIds: S }) => ({
2896
- chainedCallIds: new Set(Array.from(S).concat(l.__callId__))
2913
+ l?.__callId__ && this.setState(r.storyId, ({ chainedCallIds: b }) => ({
2914
+ chainedCallIds: new Set(Array.from(b).concat(l.__callId__))
2897
2915
  }));
2898
2916
  });
2899
2917
  let p = /* @__PURE__ */ i((l) => {
2900
2918
  if (l instanceof Error) {
2901
- let { name: S, message: g, stack: h, callId: f = r.id } = l, {
2919
+ let { name: b, message: g, stack: h, callId: f = r.id } = l, {
2902
2920
  showDiff: d = void 0,
2903
- diff: b = void 0,
2921
+ diff: S = void 0,
2904
2922
  actual: _ = void 0,
2905
2923
  expected: O = void 0
2906
- } = l.name === "AssertionError" ? It(l) : l, y = { name: S, message: g, stack: h, callId: f, showDiff: d, diff: b, actual: _, expected: O };
2924
+ } = l.name === "AssertionError" ? It(l) : l, y = { name: b, message: g, stack: h, callId: f, showDiff: d, diff: S, actual: _, expected: O };
2907
2925
  if (this.update({ ...m, status: "error", exception: y }), this.setState(r.storyId, (E) => ({
2908
2926
  callRefsByResult: new Map([
2909
2927
  ...Array.from(E.callRefsByResult.entries()),
@@ -2917,18 +2935,18 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2917
2935
  try {
2918
2936
  if (c === "played" && !r.retain)
2919
2937
  throw Hs;
2920
- let S = (o.getArgs ? o.getArgs(r, this.getState(r.storyId)) : r.args).map((h) => typeof h != "function" || ei(h) || Object.keys(h).length ?
2938
+ let b = (o.getArgs ? o.getArgs(r, this.getState(r.storyId)) : r.args).map((h) => typeof h != "function" || ei(h) || Object.keys(h).length ?
2921
2939
  h : (...f) => {
2922
- let { cursor: d, ancestors: b } = this.getState(r.storyId);
2923
- this.setState(r.storyId, { cursor: 0, ancestors: [...b, r.id] });
2924
- let _ = /* @__PURE__ */ i(() => this.setState(r.storyId, { cursor: d, ancestors: b }), "restore"), O = !1;
2940
+ let { cursor: d, ancestors: S } = this.getState(r.storyId);
2941
+ this.setState(r.storyId, { cursor: 0, ancestors: [...S, r.id] });
2942
+ let _ = /* @__PURE__ */ i(() => this.setState(r.storyId, { cursor: d, ancestors: S }), "restore"), O = !1;
2925
2943
  try {
2926
2944
  let y = h(...f);
2927
2945
  return y instanceof Promise ? (O = !0, y.finally(_)) : y;
2928
2946
  } finally {
2929
2947
  O || _();
2930
2948
  }
2931
- }), g = t.apply(n, S);
2949
+ }), g = t.apply(n, b);
2932
2950
  return g && ["object", "function", "symbol"].includes(typeof g) && this.setState(r.storyId, (h) => ({
2933
2951
  callRefsByResult: new Map([
2934
2952
  ...Array.from(h.callRefsByResult.entries()),
@@ -2961,7 +2979,7 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2961
2979
  let { isLocked: r, isPlaying: o } = this.getState(t), s = this.getLog(t), c = s.filter(({ ancestors: l }) => !l.length).find((l) => l.
2962
2980
  status === "waiting")?.callId, a = s.some((l) => l.status === "active");
2963
2981
  if (this.detached || r || a || s.length === 0) {
2964
- let S = { controlStates: {
2982
+ let b = { controlStates: {
2965
2983
  detached: this.detached,
2966
2984
  start: !1,
2967
2985
  back: !1,
@@ -2969,7 +2987,7 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2969
2987
  next: !1,
2970
2988
  end: !1
2971
2989
  }, logItems: s };
2972
- this.channel?.emit(ne.SYNC, S);
2990
+ this.channel?.emit(ne.SYNC, b);
2973
2991
  return;
2974
2992
  }
2975
2993
  let u = s.some(