storybook 9.0.0-alpha.5 → 9.0.0-alpha.7

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 (45) hide show
  1. package/dist/bin/index.cjs +63 -63
  2. package/dist/bin/index.js +63 -63
  3. package/dist/builder-manager/index.cjs +253 -280
  4. package/dist/builder-manager/index.js +305 -332
  5. package/dist/cli/bin/index.cjs +1 -1
  6. package/dist/cli/bin/index.js +1 -1
  7. package/dist/common/index.cjs +63 -63
  8. package/dist/common/index.js +63 -63
  9. package/dist/components/index.cjs +2102 -2069
  10. package/dist/components/index.js +2311 -2278
  11. package/dist/core-server/index.cjs +10816 -10501
  12. package/dist/core-server/index.d.ts +260 -2
  13. package/dist/core-server/index.js +10920 -10611
  14. package/dist/core-server/presets/common-preset.cjs +59 -59
  15. package/dist/core-server/presets/common-preset.js +57 -57
  16. package/dist/csf/index.d.ts +1 -1
  17. package/dist/instrumenter/index.cjs +1784 -1546
  18. package/dist/instrumenter/index.js +2220 -2054
  19. package/dist/manager/globals-module-info.cjs +22 -8
  20. package/dist/manager/globals-module-info.js +20 -6
  21. package/dist/manager/globals-runtime.js +22673 -23887
  22. package/dist/manager/runtime.js +3286 -3200
  23. package/dist/manager-api/index.cjs +3506 -3179
  24. package/dist/manager-api/index.d.ts +325 -24
  25. package/dist/manager-api/index.js +3245 -2957
  26. package/dist/manager-errors.d.ts +25 -1
  27. package/dist/manager-errors.js +42 -26
  28. package/dist/preview/runtime.js +15216 -16734
  29. package/dist/preview-api/index.cjs +1234 -1683
  30. package/dist/preview-api/index.d.ts +3 -309
  31. package/dist/preview-api/index.js +1360 -1785
  32. package/dist/preview-errors.cjs +98 -81
  33. package/dist/preview-errors.d.ts +25 -1
  34. package/dist/preview-errors.js +109 -93
  35. package/dist/server-errors.cjs +92 -75
  36. package/dist/server-errors.d.ts +25 -1
  37. package/dist/server-errors.js +83 -66
  38. package/dist/test/index.cjs +12779 -11872
  39. package/dist/test/index.js +12417 -11582
  40. package/dist/test/preview.cjs +1466 -1467
  41. package/dist/test/preview.js +4 -5
  42. package/dist/test/spy.cjs +11 -12
  43. package/dist/test/spy.js +14 -15
  44. package/dist/types/index.d.ts +271 -13
  45. package/package.json +9 -9
@@ -1,34 +1,34 @@
1
1
  "use strict";
2
- var Tt = Object.defineProperty;
3
- var or = Object.getOwnPropertyDescriptor;
4
- var sr = Object.getOwnPropertyNames;
5
- var ir = Object.prototype.hasOwnProperty;
6
- var c = (t, e) => Tt(t, "name", { value: e, configurable: !0 });
7
- var cr = (t, e) => {
2
+ var Pt = Object.defineProperty;
3
+ var gr = Object.getOwnPropertyDescriptor;
4
+ var hr = Object.getOwnPropertyNames;
5
+ var yr = Object.prototype.hasOwnProperty;
6
+ var c = (t, e) => Pt(t, "name", { value: e, configurable: !0 });
7
+ var dr = (t, e) => {
8
8
  for (var n in e)
9
- Tt(t, n, { get: e[n], enumerable: !0 });
10
- }, ur = (t, e, n, r) => {
9
+ Pt(t, n, { get: e[n], enumerable: !0 });
10
+ }, br = (t, e, n, r) => {
11
11
  if (e && typeof e == "object" || typeof e == "function")
12
- for (let o of sr(e))
13
- !ir.call(t, o) && o !== n && Tt(t, o, { get: () => e[o], enumerable: !(r = or(e, o)) || r.enumerable });
12
+ for (let o of hr(e))
13
+ !yr.call(t, o) && o !== n && Pt(t, o, { get: () => e[o], enumerable: !(r = gr(e, o)) || r.enumerable });
14
14
  return t;
15
15
  };
16
- var lr = (t) => ur(Tt({}, "__esModule", { value: !0 }), t);
16
+ var Sr = (t) => br(Pt({}, "__esModule", { value: !0 }), t);
17
17
 
18
18
  // src/instrumenter/index.ts
19
- var zs = {};
20
- cr(zs, {
21
- CallStates: () => Zn,
22
- EVENTS: () => nt,
23
- instrument: () => nr
19
+ var ii = {};
20
+ dr(ii, {
21
+ CallStates: () => cr,
22
+ EVENTS: () => ot,
23
+ instrument: () => mr
24
24
  });
25
- module.exports = lr(zs);
25
+ module.exports = Sr(ii);
26
26
 
27
27
  // src/instrumenter/instrumenter.ts
28
- var er = require("storybook/internal/client-logger"), gt = require("storybook/internal/core-events"), U = require("@storybook/global");
28
+ var fr = require("storybook/internal/client-logger"), yt = require("storybook/internal/core-events"), W = require("@storybook/global");
29
29
 
30
- // ../node_modules/@vitest/utils/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
31
- var ar = {
30
+ // ../node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
31
+ var Er = {
32
32
  reset: [0, 0],
33
33
  bold: [1, 22, "\x1B[22m\x1B[1m"],
34
34
  dim: [2, 22, "\x1B[22m\x1B[2m"],
@@ -70,147 +70,165 @@ var ar = {
70
70
  bgMagentaBright: [105, 49],
71
71
  bgCyanBright: [106, 49],
72
72
  bgWhiteBright: [107, 49]
73
- }, fr = Object.entries(ar);
74
- function Jt(t) {
73
+ }, _r = Object.entries(Er);
74
+ function vt(t) {
75
75
  return String(t);
76
76
  }
77
- c(Jt, "a");
78
- Jt.open = "";
79
- Jt.close = "";
80
- function Pe(t = !1) {
77
+ c(vt, "a");
78
+ vt.open = "";
79
+ vt.close = "";
80
+ function xe(t = !1) {
81
81
  let e = typeof process < "u" ? process : void 0, n = e?.env || {}, r = e?.argv || [];
82
82
  return !("NO_COLOR" in n || r.includes("--no-color")) && ("FORCE_COLOR" in n || r.includes("--color") || e?.platform === "win32" || t && n.
83
83
  TERM !== "dumb" || "CI" in n) || typeof window < "u" && !!window.chrome;
84
84
  }
85
- c(Pe, "C");
86
- function Me(t = !1) {
87
- let e = Pe(t), n = /* @__PURE__ */ c((i, l, u, f) => {
88
- let m = "", a = 0;
85
+ c(xe, "C");
86
+ function Fe(t = !1) {
87
+ let e = xe(t), n = /* @__PURE__ */ c((i, a, l, m) => {
88
+ let p = "", f = 0;
89
89
  do
90
- m += i.substring(a, f) + u, a = f + l.length, f = i.indexOf(l, a);
91
- while (~f);
92
- return m + i.substring(a);
93
- }, "i"), r = /* @__PURE__ */ c((i, l, u = i) => {
94
- let f = /* @__PURE__ */ c((m) => {
95
- let a = String(m), S = a.indexOf(l, i.length);
96
- return ~S ? i + n(a, l, u, S) + l : i + a + l;
90
+ p += i.substring(f, m) + l, f = m + a.length, m = i.indexOf(a, f);
91
+ while (~m);
92
+ return p + i.substring(f);
93
+ }, "i"), r = /* @__PURE__ */ c((i, a, l = i) => {
94
+ let m = /* @__PURE__ */ c((p) => {
95
+ let f = String(p), S = f.indexOf(a, i.length);
96
+ return ~S ? i + n(f, a, l, S) + a : i + f + a;
97
97
  }, "o");
98
- return f.open = i, f.close = l, f;
98
+ return m.open = i, m.close = a, m;
99
99
  }, "g"), o = {
100
100
  isColorSupported: e
101
101
  }, s = /* @__PURE__ */ c((i) => `\x1B[${i}m`, "d");
102
- for (let [i, l] of fr)
102
+ for (let [i, a] of _r)
103
103
  o[i] = e ? r(
104
- s(l[0]),
105
- s(l[1]),
106
- l[2]
107
- ) : Jt;
104
+ s(a[0]),
105
+ s(a[1]),
106
+ a[2]
107
+ ) : vt;
108
108
  return o;
109
109
  }
110
- c(Me, "p");
110
+ c(Fe, "p");
111
111
 
112
- // ../node_modules/@vitest/utils/node_modules/tinyrainbow/dist/node.js
113
- var Le = require("tty"), v = Me((0, Le.isatty)(1));
112
+ // ../node_modules/tinyrainbow/dist/node.js
113
+ var De = require("tty");
114
+ var Cr = process.env.FORCE_TTY !== void 0 || (0, De.isatty)(1);
115
+ var et = Fe(Cr);
114
116
 
115
- // ../node_modules/@vitest/utils/node_modules/@vitest/pretty-format/dist/index.js
116
- function mr(t, e) {
117
+ // ../node_modules/@vitest/pretty-format/dist/index.js
118
+ function Ze(t, e) {
119
+ return e.forEach(function(n) {
120
+ n && typeof n != "string" && !Array.isArray(n) && Object.keys(n).forEach(function(r) {
121
+ if (r !== "default" && !(r in t)) {
122
+ var o = Object.getOwnPropertyDescriptor(n, r);
123
+ Object.defineProperty(t, r, o.get ? o : {
124
+ enumerable: !0,
125
+ get: /* @__PURE__ */ c(function() {
126
+ return n[r];
127
+ }, "get")
128
+ });
129
+ }
130
+ });
131
+ }), Object.freeze(t);
132
+ }
133
+ c(Ze, "_mergeNamespaces");
134
+ function Tr(t, e) {
117
135
  let n = Object.keys(t), r = e === null ? n : n.sort(e);
118
136
  if (Object.getOwnPropertySymbols)
119
137
  for (let o of Object.getOwnPropertySymbols(t))
120
138
  Object.getOwnPropertyDescriptor(t, o).enumerable && r.push(o);
121
139
  return r;
122
140
  }
123
- c(mr, "getKeysOfEnumerableProperties");
124
- function Pt(t, e, n, r, o, s, i = ": ") {
125
- let l = "", u = 0, f = t.next();
126
- if (!f.done) {
127
- l += e.spacingOuter;
128
- let m = n + e.indent;
129
- for (; !f.done; ) {
130
- if (l += m, u++ === e.maxWidth) {
131
- l += "\u2026";
141
+ c(Tr, "getKeysOfEnumerableProperties");
142
+ function Ot(t, e, n, r, o, s, i = ": ") {
143
+ let a = "", l = 0, m = t.next();
144
+ if (!m.done) {
145
+ a += e.spacingOuter;
146
+ let p = n + e.indent;
147
+ for (; !m.done; ) {
148
+ if (a += p, l++ === e.maxWidth) {
149
+ a += "\u2026";
132
150
  break;
133
151
  }
134
- let a = s(
135
- f.value[0],
152
+ let f = s(
153
+ m.value[0],
136
154
  e,
137
- m,
155
+ p,
138
156
  r,
139
157
  o
140
158
  ), S = s(
141
- f.value[1],
159
+ m.value[1],
142
160
  e,
143
- m,
161
+ p,
144
162
  r,
145
163
  o
146
164
  );
147
- l += a + i + S, f = t.next(), f.done ? e.min || (l += ",") : l += `,${e.spacingInner}`;
165
+ a += f + i + S, m = t.next(), m.done ? e.min || (a += ",") : a += `,${e.spacingInner}`;
148
166
  }
149
- l += e.spacingOuter + n;
167
+ a += e.spacingOuter + n;
150
168
  }
151
- return l;
169
+ return a;
152
170
  }
153
- c(Pt, "printIteratorEntries");
154
- function vt(t, e, n, r, o, s) {
155
- let i = "", l = 0, u = t.next();
156
- if (!u.done) {
171
+ c(Ot, "printIteratorEntries");
172
+ function ne(t, e, n, r, o, s) {
173
+ let i = "", a = 0, l = t.next();
174
+ if (!l.done) {
157
175
  i += e.spacingOuter;
158
- let f = n + e.indent;
159
- for (; !u.done; ) {
160
- if (i += f, l++ === e.maxWidth) {
176
+ let m = n + e.indent;
177
+ for (; !l.done; ) {
178
+ if (i += m, a++ === e.maxWidth) {
161
179
  i += "\u2026";
162
180
  break;
163
181
  }
164
- i += s(u.value, e, f, r, o), u = t.next(), u.done ? e.min || (i += ",") : i += `,${e.spacingInner}`;
182
+ i += s(l.value, e, m, r, o), l = t.next(), l.done ? e.min || (i += ",") : i += `,${e.spacingInner}`;
165
183
  }
166
184
  i += e.spacingOuter + n;
167
185
  }
168
186
  return i;
169
187
  }
170
- c(vt, "printIteratorValues");
171
- function It(t, e, n, r, o, s) {
188
+ c(ne, "printIteratorValues");
189
+ function Ft(t, e, n, r, o, s) {
172
190
  let i = "";
173
191
  t = t instanceof ArrayBuffer ? new DataView(t) : t;
174
- let l = /* @__PURE__ */ c((f) => f instanceof DataView, "isDataView"), u = l(t) ? t.byteLength : t.length;
175
- if (u > 0) {
192
+ let a = /* @__PURE__ */ c((m) => m instanceof DataView, "isDataView"), l = a(t) ? t.byteLength : t.length;
193
+ if (l > 0) {
176
194
  i += e.spacingOuter;
177
- let f = n + e.indent;
178
- for (let m = 0; m < u; m++) {
179
- if (i += f, m === e.maxWidth) {
195
+ let m = n + e.indent;
196
+ for (let p = 0; p < l; p++) {
197
+ if (i += m, p === e.maxWidth) {
180
198
  i += "\u2026";
181
199
  break;
182
200
  }
183
- (l(t) || m in t) && (i += s(
184
- l(t) ? t.getInt8(m) : t[m],
201
+ (a(t) || p in t) && (i += s(
202
+ a(t) ? t.getInt8(p) : t[p],
185
203
  e,
186
- f,
204
+ m,
187
205
  r,
188
206
  o
189
- )), m < u - 1 ? i += `,${e.spacingInner}` : e.min || (i += ",");
207
+ )), p < l - 1 ? i += `,${e.spacingInner}` : e.min || (i += ",");
190
208
  }
191
209
  i += e.spacingOuter + n;
192
210
  }
193
211
  return i;
194
212
  }
195
- c(It, "printListItems");
196
- function te(t, e, n, r, o, s) {
197
- let i = "", l = mr(t, e.compareKeys);
198
- if (l.length > 0) {
213
+ c(Ft, "printListItems");
214
+ function re(t, e, n, r, o, s) {
215
+ let i = "", a = Tr(t, e.compareKeys);
216
+ if (a.length > 0) {
199
217
  i += e.spacingOuter;
200
- let u = n + e.indent;
201
- for (let f = 0; f < l.length; f++) {
202
- let m = l[f], a = s(m, e, u, r, o), S = s(t[m], e, u, r, o);
203
- i += `${u + a}: ${S}`, f < l.length - 1 ? i += `,${e.spacingInner}` : e.min || (i += ",");
218
+ let l = n + e.indent;
219
+ for (let m = 0; m < a.length; m++) {
220
+ let p = a[m], f = s(p, e, l, r, o), S = s(t[p], e, l, r, o);
221
+ i += `${l + f}: ${S}`, m < a.length - 1 ? i += `,${e.spacingInner}` : e.min || (i += ",");
204
222
  }
205
223
  i += e.spacingOuter + n;
206
224
  }
207
225
  return i;
208
226
  }
209
- c(te, "printObjectProperties");
210
- var pr = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621, At = " ", gr = /* @__PURE__ */ c((t, e, n, r, o, s) => {
227
+ c(re, "printObjectProperties");
228
+ var Or = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621, It = " ", $r = /* @__PURE__ */ c((t, e, n, r, o, s) => {
211
229
  let i = t.toString();
212
230
  if (i === "ArrayContaining" || i === "ArrayNotContaining")
213
- return ++r > e.maxDepth ? `[${i}]` : `${i + At}[${It(
231
+ return ++r > e.maxDepth ? `[${i}]` : `${i + It}[${Ft(
214
232
  t.sample,
215
233
  e,
216
234
  n,
@@ -219,7 +237,7 @@ var pr = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetric
219
237
  s
220
238
  )}]`;
221
239
  if (i === "ObjectContaining" || i === "ObjectNotContaining")
222
- return ++r > e.maxDepth ? `[${i}]` : `${i + At}{${te(
240
+ return ++r > e.maxDepth ? `[${i}]` : `${i + It}{${re(
223
241
  t.sample,
224
242
  e,
225
243
  n,
@@ -228,28 +246,28 @@ var pr = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetric
228
246
  s
229
247
  )}}`;
230
248
  if (i === "StringMatching" || i === "StringNotMatching" || i === "StringContaining" || i === "StringNotContaining")
231
- return i + At + s(t.sample, e, n, r, o);
249
+ return i + It + s(t.sample, e, n, r, o);
232
250
  if (typeof t.toAsymmetricMatcher != "function")
233
251
  throw new TypeError(
234
252
  `Asymmetric matcher ${t.constructor.name} does not implement toAsymmetricMatcher()`
235
253
  );
236
254
  return t.toAsymmetricMatcher();
237
- }, "serialize$5"), hr = /* @__PURE__ */ c((t) => t && t.$$typeof === pr, "test$5"), yr = { serialize: gr, test: hr }, dr = " ", Ke = /* @__PURE__ */ new Set(
238
- ["DOMStringMap", "NamedNodeMap"]), br = /^(?:HTML\w*Collection|NodeList)$/;
239
- function Sr(t) {
240
- return Ke.has(t) || br.test(t);
241
- }
242
- c(Sr, "testName");
243
- var _r = /* @__PURE__ */ c((t) => t && t.constructor && !!t.constructor.name && Sr(t.constructor.name), "test$4");
244
- function Er(t) {
255
+ }, "serialize$5"), wr = /* @__PURE__ */ c((t) => t && t.$$typeof === Or, "test$5"), Ar = { serialize: $r, test: wr }, Rr = " ", Qe = /* @__PURE__ */ new Set(
256
+ ["DOMStringMap", "NamedNodeMap"]), Nr = /^(?:HTML\w*Collection|NodeList)$/;
257
+ function Pr(t) {
258
+ return Qe.has(t) || Nr.test(t);
259
+ }
260
+ c(Pr, "testName");
261
+ var Ir = /* @__PURE__ */ c((t) => t && t.constructor && !!t.constructor.name && Pr(t.constructor.name), "test$4");
262
+ function Mr(t) {
245
263
  return t.constructor.name === "NamedNodeMap";
246
264
  }
247
- c(Er, "isNamedNodeMap");
248
- var Or = /* @__PURE__ */ c((t, e, n, r, o, s) => {
265
+ c(Mr, "isNamedNodeMap");
266
+ var Lr = /* @__PURE__ */ c((t, e, n, r, o, s) => {
249
267
  let i = t.constructor.name;
250
- return ++r > e.maxDepth ? `[${i}]` : (e.min ? "" : i + dr) + (Ke.has(i) ? `{${te(
251
- Er(t) ? [...t].reduce(
252
- (l, u) => (l[u.name] = u.value, l),
268
+ return ++r > e.maxDepth ? `[${i}]` : (e.min ? "" : i + Rr) + (Qe.has(i) ? `{${re(
269
+ Mr(t) ? [...t].reduce(
270
+ (a, l) => (a[l.name] = l.value, a),
253
271
  {}
254
272
  ) : { ...t },
255
273
  e,
@@ -257,7 +275,7 @@ var Or = /* @__PURE__ */ c((t, e, n, r, o, s) => {
257
275
  r,
258
276
  o,
259
277
  s
260
- )}}` : `[${It(
278
+ )}}` : `[${Ft(
261
279
  [...t],
262
280
  e,
263
281
  n,
@@ -265,90 +283,90 @@ var Or = /* @__PURE__ */ c((t, e, n, r, o, s) => {
265
283
  o,
266
284
  s
267
285
  )}]`);
268
- }, "serialize$4"), Cr = { serialize: Or, test: _r };
269
- function qe(t) {
286
+ }, "serialize$4"), xr = { serialize: Lr, test: Ir };
287
+ function ve(t) {
270
288
  return t.replaceAll("<", "&lt;").replaceAll(">", "&gt;");
271
289
  }
272
- c(qe, "escapeHTML");
273
- function ee(t, e, n, r, o, s, i) {
274
- let l = r + n.indent, u = n.colors;
275
- return t.map((f) => {
276
- let m = e[f], a = i(m, n, l, o, s);
277
- return typeof m != "string" && (a.includes(`
278
- `) && (a = n.spacingOuter + l + a + n.spacingOuter + r), a = `{${a}}`), `${n.spacingInner + r + u.prop.open + f + u.prop.close}=${u.value.open}${a}${u.
290
+ c(ve, "escapeHTML");
291
+ function oe(t, e, n, r, o, s, i) {
292
+ let a = r + n.indent, l = n.colors;
293
+ return t.map((m) => {
294
+ let p = e[m], f = i(p, n, a, o, s);
295
+ return typeof p != "string" && (f.includes(`
296
+ `) && (f = n.spacingOuter + a + f + n.spacingOuter + r), f = `{${f}}`), `${n.spacingInner + r + l.prop.open + m + l.prop.close}=${l.value.open}${f}${l.
279
297
  value.close}`;
280
298
  }).join("");
281
299
  }
282
- c(ee, "printProps");
283
- function ne(t, e, n, r, o, s) {
300
+ c(oe, "printProps");
301
+ function se(t, e, n, r, o, s) {
284
302
  return t.map(
285
- (i) => e.spacingOuter + n + (typeof i == "string" ? Ge(i, e) : s(i, e, n, r, o))
303
+ (i) => e.spacingOuter + n + (typeof i == "string" ? tn(i, e) : s(i, e, n, r, o))
286
304
  ).join("");
287
305
  }
288
- c(ne, "printChildren");
289
- function Ge(t, e) {
306
+ c(se, "printChildren");
307
+ function tn(t, e) {
290
308
  let n = e.colors.content;
291
- return n.open + qe(t) + n.close;
309
+ return n.open + ve(t) + n.close;
292
310
  }
293
- c(Ge, "printText");
294
- function wr(t, e) {
311
+ c(tn, "printText");
312
+ function Fr(t, e) {
295
313
  let n = e.colors.comment;
296
- return `${n.open}<!--${qe(t)}-->${n.close}`;
314
+ return `${n.open}<!--${ve(t)}-->${n.close}`;
297
315
  }
298
- c(wr, "printComment");
299
- function re(t, e, n, r, o) {
316
+ c(Fr, "printComment");
317
+ function ie(t, e, n, r, o) {
300
318
  let s = r.colors.tag;
301
319
  return `${s.open}<${t}${e && s.close + e + r.spacingOuter + o + s.open}${n ? `>${s.close}${n}${r.spacingOuter}${o}${s.open}</${t}` : `${e &&
302
320
  !r.min ? "" : " "}/`}>${s.close}`;
303
321
  }
304
- c(re, "printElement");
305
- function oe(t, e) {
322
+ c(ie, "printElement");
323
+ function ce(t, e) {
306
324
  let n = e.colors.tag;
307
325
  return `${n.open}<${t}${n.close} \u2026${n.open} />${n.close}`;
308
326
  }
309
- c(oe, "printElementAsLeaf");
310
- var $r = 1, He = 3, Je = 8, Xe = 11, Tr = /^(?:(?:HTML|SVG)\w*)?Element$/;
311
- function Ar(t) {
327
+ c(ce, "printElementAsLeaf");
328
+ var Dr = 1, en = 3, nn = 8, rn = 11, jr = /^(?:(?:HTML|SVG)\w*)?Element$/;
329
+ function Br(t) {
312
330
  try {
313
331
  return typeof t.hasAttribute == "function" && t.hasAttribute("is");
314
332
  } catch {
315
333
  return !1;
316
334
  }
317
335
  }
318
- c(Ar, "testHasAttribute");
319
- function Nr(t) {
320
- let e = t.constructor.name, { nodeType: n, tagName: r } = t, o = typeof r == "string" && r.includes("-") || Ar(t);
321
- return n === $r && (Tr.test(e) || o) || n === He && e === "Text" || n === Je && e === "Comment" || n === Xe && e === "DocumentFragment";
336
+ c(Br, "testHasAttribute");
337
+ function kr(t) {
338
+ let e = t.constructor.name, { nodeType: n, tagName: r } = t, o = typeof r == "string" && r.includes("-") || Br(t);
339
+ return n === Dr && (jr.test(e) || o) || n === en && e === "Text" || n === nn && e === "Comment" || n === rn && e === "DocumentFragment";
322
340
  }
323
- c(Nr, "testNode");
324
- var Ir = /* @__PURE__ */ c((t) => {
341
+ c(kr, "testNode");
342
+ var zr = /* @__PURE__ */ c((t) => {
325
343
  var e;
326
- return ((e = t?.constructor) == null ? void 0 : e.name) && Nr(t);
344
+ return ((e = t?.constructor) == null ? void 0 : e.name) && kr(t);
327
345
  }, "test$3");
328
- function Rr(t) {
329
- return t.nodeType === He;
330
- }
331
- c(Rr, "nodeIsText");
332
- function Pr(t) {
333
- return t.nodeType === Je;
334
- }
335
- c(Pr, "nodeIsComment");
336
- function Xt(t) {
337
- return t.nodeType === Xe;
338
- }
339
- c(Xt, "nodeIsFragment");
340
- var Mr = /* @__PURE__ */ c((t, e, n, r, o, s) => {
341
- if (Rr(t))
342
- return Ge(t.data, e);
343
- if (Pr(t))
344
- return wr(t.data, e);
345
- let i = Xt(t) ? "DocumentFragment" : t.tagName.toLowerCase();
346
- return ++r > e.maxDepth ? oe(i, e) : re(
346
+ function Yr(t) {
347
+ return t.nodeType === en;
348
+ }
349
+ c(Yr, "nodeIsText");
350
+ function Ur(t) {
351
+ return t.nodeType === nn;
352
+ }
353
+ c(Ur, "nodeIsComment");
354
+ function te(t) {
355
+ return t.nodeType === rn;
356
+ }
357
+ c(te, "nodeIsFragment");
358
+ var Wr = /* @__PURE__ */ c((t, e, n, r, o, s) => {
359
+ if (Yr(t))
360
+ return tn(t.data, e);
361
+ if (Ur(t))
362
+ return Fr(t.data, e);
363
+ let i = te(t) ? "DocumentFragment" : t.tagName.toLowerCase();
364
+ return ++r > e.maxDepth ? ce(i, e) : ie(
347
365
  i,
348
- ee(
349
- Xt(t) ? [] : Array.from(t.attributes, (l) => l.name).sort(),
350
- Xt(t) ? {} : [...t.attributes].reduce(
351
- (l, u) => (l[u.name] = u.value, l),
366
+ oe(
367
+ te(t) ? [] : Array.from(t.attributes, (a) => a.name).sort(),
368
+ te(t) ? {} : [...t.attributes].reduce(
369
+ (a, l) => (a[l.name] = l.value, a),
352
370
  {}
353
371
  ),
354
372
  e,
@@ -357,7 +375,7 @@ var Mr = /* @__PURE__ */ c((t, e, n, r, o, s) => {
357
375
  o,
358
376
  s
359
377
  ),
360
- ne(
378
+ se(
361
379
  Array.prototype.slice.call(t.childNodes || t.children),
362
380
  e,
363
381
  n + e.indent,
@@ -368,12 +386,12 @@ var Mr = /* @__PURE__ */ c((t, e, n, r, o, s) => {
368
386
  e,
369
387
  n
370
388
  );
371
- }, "serialize$3"), Lr = { serialize: Mr, test: Ir }, xr = "@@__IMMUTABLE_ITERABLE__@@", jr = "@@__IMMUTABLE_LIST__@@", Dr = "@@__IMMUTABLE_K\
372
- EYED__@@", Fr = "@@__IMMUTABLE_MAP__@@", xe = "@@__IMMUTABLE_ORDERED__@@", kr = "@@__IMMUTABLE_RECORD__@@", Br = "@@__IMMUTABLE_SEQ__@@", zr = "\
373
- @@__IMMUTABLE_SET__@@", Ur = "@@__IMMUTABLE_STACK__@@", yt = /* @__PURE__ */ c((t) => `Immutable.${t}`, "getImmutableName"), Mt = /* @__PURE__ */ c(
374
- (t) => `[${t}]`, "printAsLeaf"), Et = " ", je = "\u2026";
375
- function Yr(t, e, n, r, o, s, i) {
376
- return ++r > e.maxDepth ? Mt(yt(i)) : `${yt(i) + Et}{${Pt(
389
+ }, "serialize$3"), Vr = { serialize: Wr, test: zr }, qr = "@@__IMMUTABLE_ITERABLE__@@", Kr = "@@__IMMUTABLE_LIST__@@", Gr = "@@__IMMUTABLE_K\
390
+ EYED__@@", Hr = "@@__IMMUTABLE_MAP__@@", je = "@@__IMMUTABLE_ORDERED__@@", Jr = "@@__IMMUTABLE_RECORD__@@", Xr = "@@__IMMUTABLE_SEQ__@@", Zr = "\
391
+ @@__IMMUTABLE_SET__@@", Qr = "@@__IMMUTABLE_STACK__@@", bt = /* @__PURE__ */ c((t) => `Immutable.${t}`, "getImmutableName"), jt = /* @__PURE__ */ c(
392
+ (t) => `[${t}]`, "printAsLeaf"), Tt = " ", Be = "\u2026";
393
+ function vr(t, e, n, r, o, s, i) {
394
+ return ++r > e.maxDepth ? jt(bt(i)) : `${bt(i) + Tt}{${Ot(
377
395
  t.entries(),
378
396
  e,
379
397
  n,
@@ -382,8 +400,8 @@ function Yr(t, e, n, r, o, s, i) {
382
400
  s
383
401
  )}}`;
384
402
  }
385
- c(Yr, "printImmutableEntries");
386
- function Wr(t) {
403
+ c(vr, "printImmutableEntries");
404
+ function to(t) {
387
405
  let e = 0;
388
406
  return {
389
407
  next() {
@@ -395,11 +413,11 @@ function Wr(t) {
395
413
  }
396
414
  };
397
415
  }
398
- c(Wr, "getRecordEntries");
399
- function Vr(t, e, n, r, o, s) {
400
- let i = yt(t._name || "Record");
401
- return ++r > e.maxDepth ? Mt(i) : `${i + Et}{${Pt(
402
- Wr(t),
416
+ c(to, "getRecordEntries");
417
+ function eo(t, e, n, r, o, s) {
418
+ let i = bt(t._name || "Record");
419
+ return ++r > e.maxDepth ? jt(i) : `${i + Tt}{${Ot(
420
+ to(t),
403
421
  e,
404
422
  n,
405
423
  r,
@@ -407,29 +425,29 @@ function Vr(t, e, n, r, o, s) {
407
425
  s
408
426
  )}}`;
409
427
  }
410
- c(Vr, "printImmutableRecord");
411
- function Kr(t, e, n, r, o, s) {
412
- let i = yt("Seq");
413
- return ++r > e.maxDepth ? Mt(i) : t[Dr] ? `${i + Et}{${// from Immutable collection of entries or from ECMAScript object
414
- t._iter || t._object ? Pt(
428
+ c(eo, "printImmutableRecord");
429
+ function no(t, e, n, r, o, s) {
430
+ let i = bt("Seq");
431
+ return ++r > e.maxDepth ? jt(i) : t[Gr] ? `${i + Tt}{${// from Immutable collection of entries or from ECMAScript object
432
+ t._iter || t._object ? Ot(
415
433
  t.entries(),
416
434
  e,
417
435
  n,
418
436
  r,
419
437
  o,
420
438
  s
421
- ) : je}}` : `${i + Et}[${t._iter || t._array || t._collection || t._iterable ? vt(
439
+ ) : Be}}` : `${i + Tt}[${t._iter || t._array || t._collection || t._iterable ? ne(
422
440
  t.values(),
423
441
  e,
424
442
  n,
425
443
  r,
426
444
  o,
427
445
  s
428
- ) : je}]`;
446
+ ) : Be}]`;
429
447
  }
430
- c(Kr, "printImmutableSeq");
431
- function Zt(t, e, n, r, o, s, i) {
432
- return ++r > e.maxDepth ? Mt(yt(i)) : `${yt(i) + Et}[${vt(
448
+ c(no, "printImmutableSeq");
449
+ function ee(t, e, n, r, o, s, i) {
450
+ return ++r > e.maxDepth ? jt(bt(i)) : `${bt(i) + Tt}[${ne(
433
451
  t.values(),
434
452
  e,
435
453
  n,
@@ -438,16 +456,16 @@ function Zt(t, e, n, r, o, s, i) {
438
456
  s
439
457
  )}]`;
440
458
  }
441
- c(Zt, "printImmutableValues");
442
- var qr = /* @__PURE__ */ c((t, e, n, r, o, s) => t[Fr] ? Yr(
459
+ c(ee, "printImmutableValues");
460
+ var ro = /* @__PURE__ */ c((t, e, n, r, o, s) => t[Hr] ? vr(
443
461
  t,
444
462
  e,
445
463
  n,
446
464
  r,
447
465
  o,
448
466
  s,
449
- t[xe] ? "OrderedMap" : "Map"
450
- ) : t[jr] ? Zt(
467
+ t[je] ? "OrderedMap" : "Map"
468
+ ) : t[Kr] ? ee(
451
469
  t,
452
470
  e,
453
471
  n,
@@ -455,15 +473,15 @@ var qr = /* @__PURE__ */ c((t, e, n, r, o, s) => t[Fr] ? Yr(
455
473
  o,
456
474
  s,
457
475
  "List"
458
- ) : t[zr] ? Zt(
476
+ ) : t[Zr] ? ee(
459
477
  t,
460
478
  e,
461
479
  n,
462
480
  r,
463
481
  o,
464
482
  s,
465
- t[xe] ? "OrderedSet" : "Set"
466
- ) : t[Ur] ? Zt(
483
+ t[je] ? "OrderedSet" : "Set"
484
+ ) : t[Qr] ? ee(
467
485
  t,
468
486
  e,
469
487
  n,
@@ -471,38 +489,194 @@ var qr = /* @__PURE__ */ c((t, e, n, r, o, s) => t[Fr] ? Yr(
471
489
  o,
472
490
  s,
473
491
  "Stack"
474
- ) : t[Br] ? Kr(t, e, n, r, o, s) : Vr(t, e, n, r, o, s), "serialize$2"), Gr = /* @__PURE__ */ c((t) => t && (t[xr] === !0 || t[kr] === !0), "\
475
- test$2"), Hr = { serialize: qr, test: Gr }, Nt = { exports: {} }, T = {};
476
- var De;
477
- function Jr() {
478
- if (De) return T;
479
- De = 1;
492
+ ) : t[Xr] ? no(t, e, n, r, o, s) : eo(t, e, n, r, o, s), "serialize$2"), oo = /* @__PURE__ */ c((t) => t && (t[qr] === !0 || t[Jr] === !0), "\
493
+ test$2"), so = { serialize: ro, test: oo };
494
+ function on(t) {
495
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
496
+ }
497
+ c(on, "getDefaultExportFromCjs");
498
+ var Mt = { exports: {} }, N = {};
499
+ var ke;
500
+ function io() {
501
+ if (ke) return N;
502
+ ke = 1;
503
+ var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.\
504
+ strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), i = Symbol.for("react.context"), a = Symbol.for("react.fo\
505
+ rward_ref"), l = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), f = Symbol.for("react.la\
506
+ zy"), S = Symbol.for("react.offscreen"), y = Symbol.for("react.client.reference");
507
+ function g(u) {
508
+ if (typeof u == "object" && u !== null) {
509
+ var h = u.$$typeof;
510
+ switch (h) {
511
+ case t:
512
+ switch (u = u.type, u) {
513
+ case n:
514
+ case o:
515
+ case r:
516
+ case l:
517
+ case m:
518
+ return u;
519
+ default:
520
+ switch (u = u && u.$$typeof, u) {
521
+ case i:
522
+ case a:
523
+ case f:
524
+ case p:
525
+ return u;
526
+ case s:
527
+ return u;
528
+ default:
529
+ return h;
530
+ }
531
+ }
532
+ case e:
533
+ return h;
534
+ }
535
+ }
536
+ }
537
+ return c(g, "typeOf"), N.ContextConsumer = s, N.ContextProvider = i, N.Element = t, N.ForwardRef = a, N.Fragment = n, N.Lazy = f, N.Memo =
538
+ p, N.Portal = e, N.Profiler = o, N.StrictMode = r, N.Suspense = l, N.SuspenseList = m, N.isContextConsumer = function(u) {
539
+ return g(u) === s;
540
+ }, N.isContextProvider = function(u) {
541
+ return g(u) === i;
542
+ }, N.isElement = function(u) {
543
+ return typeof u == "object" && u !== null && u.$$typeof === t;
544
+ }, N.isForwardRef = function(u) {
545
+ return g(u) === a;
546
+ }, N.isFragment = function(u) {
547
+ return g(u) === n;
548
+ }, N.isLazy = function(u) {
549
+ return g(u) === f;
550
+ }, N.isMemo = function(u) {
551
+ return g(u) === p;
552
+ }, N.isPortal = function(u) {
553
+ return g(u) === e;
554
+ }, N.isProfiler = function(u) {
555
+ return g(u) === o;
556
+ }, N.isStrictMode = function(u) {
557
+ return g(u) === r;
558
+ }, N.isSuspense = function(u) {
559
+ return g(u) === l;
560
+ }, N.isSuspenseList = function(u) {
561
+ return g(u) === m;
562
+ }, N.isValidElementType = function(u) {
563
+ return typeof u == "string" || typeof u == "function" || u === n || u === o || u === r || u === l || u === m || u === S || typeof u == "\
564
+ object" && u !== null && (u.$$typeof === f || u.$$typeof === p || u.$$typeof === i || u.$$typeof === s || u.$$typeof === a || u.$$typeof ===
565
+ y || u.getModuleId !== void 0);
566
+ }, N.typeOf = g, N;
567
+ }
568
+ c(io, "requireReactIs_production");
569
+ var P = {};
570
+ var ze;
571
+ function co() {
572
+ return ze || (ze = 1, process.env.NODE_ENV !== "production" && function() {
573
+ function t(u) {
574
+ if (typeof u == "object" && u !== null) {
575
+ var h = u.$$typeof;
576
+ switch (h) {
577
+ case e:
578
+ switch (u = u.type, u) {
579
+ case r:
580
+ case s:
581
+ case o:
582
+ case m:
583
+ case p:
584
+ return u;
585
+ default:
586
+ switch (u = u && u.$$typeof, u) {
587
+ case a:
588
+ case l:
589
+ case S:
590
+ case f:
591
+ return u;
592
+ case i:
593
+ return u;
594
+ default:
595
+ return h;
596
+ }
597
+ }
598
+ case n:
599
+ return h;
600
+ }
601
+ }
602
+ }
603
+ c(t, "typeOf");
604
+ var e = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("reac\
605
+ t.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), a = Symbol.for("react.context"), l = Symbol.for("react.\
606
+ forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), S = Symbol.for("react.\
607
+ lazy"), y = Symbol.for("react.offscreen"), g = Symbol.for("react.client.reference");
608
+ P.ContextConsumer = i, P.ContextProvider = a, P.Element = e, P.ForwardRef = l, P.Fragment = r, P.Lazy = S, P.Memo = f, P.Portal = n, P.Profiler =
609
+ s, P.StrictMode = o, P.Suspense = m, P.SuspenseList = p, P.isContextConsumer = function(u) {
610
+ return t(u) === i;
611
+ }, P.isContextProvider = function(u) {
612
+ return t(u) === a;
613
+ }, P.isElement = function(u) {
614
+ return typeof u == "object" && u !== null && u.$$typeof === e;
615
+ }, P.isForwardRef = function(u) {
616
+ return t(u) === l;
617
+ }, P.isFragment = function(u) {
618
+ return t(u) === r;
619
+ }, P.isLazy = function(u) {
620
+ return t(u) === S;
621
+ }, P.isMemo = function(u) {
622
+ return t(u) === f;
623
+ }, P.isPortal = function(u) {
624
+ return t(u) === n;
625
+ }, P.isProfiler = function(u) {
626
+ return t(u) === s;
627
+ }, P.isStrictMode = function(u) {
628
+ return t(u) === o;
629
+ }, P.isSuspense = function(u) {
630
+ return t(u) === m;
631
+ }, P.isSuspenseList = function(u) {
632
+ return t(u) === p;
633
+ }, P.isValidElementType = function(u) {
634
+ return typeof u == "string" || typeof u == "function" || u === r || u === s || u === o || u === m || u === p || u === y || typeof u ==
635
+ "object" && u !== null && (u.$$typeof === S || u.$$typeof === f || u.$$typeof === a || u.$$typeof === i || u.$$typeof === l || u.$$typeof ===
636
+ g || u.getModuleId !== void 0);
637
+ }, P.typeOf = t;
638
+ }()), P;
639
+ }
640
+ c(co, "requireReactIs_development$1");
641
+ var Ye;
642
+ function uo() {
643
+ return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? Mt.exports = io() : Mt.exports = co()), Mt.exports;
644
+ }
645
+ c(uo, "requireReactIs$1");
646
+ var sn = /* @__PURE__ */ uo(), lo = /* @__PURE__ */ on(sn), ao = /* @__PURE__ */ Ze({
647
+ __proto__: null,
648
+ default: lo
649
+ }, [sn]), Lt = { exports: {} }, w = {};
650
+ var Ue;
651
+ function fo() {
652
+ if (Ue) return w;
653
+ Ue = 1;
480
654
  var t = Symbol.for("react.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"),
481
- o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = Symbol.for("react.server_context"),
482
- u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), a = Symbol.for("react.memo"),
483
- S = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), h;
484
- h = Symbol.for("react.module.reference");
485
- function y(p) {
486
- if (typeof p == "object" && p !== null) {
487
- var b = p.$$typeof;
655
+ o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), a = Symbol.for("react.server_context"),
656
+ l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"),
657
+ S = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), g;
658
+ g = Symbol.for("react.module.reference");
659
+ function u(h) {
660
+ if (typeof h == "object" && h !== null) {
661
+ var b = h.$$typeof;
488
662
  switch (b) {
489
663
  case t:
490
- switch (p = p.type, p) {
664
+ switch (h = h.type, h) {
491
665
  case n:
492
666
  case o:
493
667
  case r:
494
- case f:
495
668
  case m:
496
- return p;
669
+ case p:
670
+ return h;
497
671
  default:
498
- switch (p = p && p.$$typeof, p) {
499
- case l:
672
+ switch (h = h && h.$$typeof, h) {
673
+ case a:
500
674
  case i:
501
- case u:
675
+ case l:
502
676
  case S:
503
- case a:
677
+ case f:
504
678
  case s:
505
- return p;
679
+ return h;
506
680
  default:
507
681
  return b;
508
682
  }
@@ -512,209 +686,230 @@ function Jr() {
512
686
  }
513
687
  }
514
688
  }
515
- return c(y, "v"), T.ContextConsumer = i, T.ContextProvider = s, T.Element = t, T.ForwardRef = u, T.Fragment = n, T.Lazy = S, T.Memo = a, T.
516
- Portal = e, T.Profiler = o, T.StrictMode = r, T.Suspense = f, T.SuspenseList = m, T.isAsyncMode = function() {
689
+ return c(u, "v"), w.ContextConsumer = i, w.ContextProvider = s, w.Element = t, w.ForwardRef = l, w.Fragment = n, w.Lazy = S, w.Memo = f, w.
690
+ Portal = e, w.Profiler = o, w.StrictMode = r, w.Suspense = m, w.SuspenseList = p, w.isAsyncMode = function() {
517
691
  return !1;
518
- }, T.isConcurrentMode = function() {
692
+ }, w.isConcurrentMode = function() {
519
693
  return !1;
520
- }, T.isContextConsumer = function(p) {
521
- return y(p) === i;
522
- }, T.isContextProvider = function(p) {
523
- return y(p) === s;
524
- }, T.isElement = function(p) {
525
- return typeof p == "object" && p !== null && p.$$typeof === t;
526
- }, T.isForwardRef = function(p) {
527
- return y(p) === u;
528
- }, T.isFragment = function(p) {
529
- return y(p) === n;
530
- }, T.isLazy = function(p) {
531
- return y(p) === S;
532
- }, T.isMemo = function(p) {
533
- return y(p) === a;
534
- }, T.isPortal = function(p) {
535
- return y(p) === e;
536
- }, T.isProfiler = function(p) {
537
- return y(p) === o;
538
- }, T.isStrictMode = function(p) {
539
- return y(p) === r;
540
- }, T.isSuspense = function(p) {
541
- return y(p) === f;
542
- }, T.isSuspenseList = function(p) {
543
- return y(p) === m;
544
- }, T.isValidElementType = function(p) {
545
- return typeof p == "string" || typeof p == "function" || p === n || p === o || p === r || p === f || p === m || p === g || typeof p == "\
546
- object" && p !== null && (p.$$typeof === S || p.$$typeof === a || p.$$typeof === s || p.$$typeof === i || p.$$typeof === u || p.$$typeof ===
547
- h || p.getModuleId !== void 0);
548
- }, T.typeOf = y, T;
549
- }
550
- c(Jr, "requireReactIs_production_min");
694
+ }, w.isContextConsumer = function(h) {
695
+ return u(h) === i;
696
+ }, w.isContextProvider = function(h) {
697
+ return u(h) === s;
698
+ }, w.isElement = function(h) {
699
+ return typeof h == "object" && h !== null && h.$$typeof === t;
700
+ }, w.isForwardRef = function(h) {
701
+ return u(h) === l;
702
+ }, w.isFragment = function(h) {
703
+ return u(h) === n;
704
+ }, w.isLazy = function(h) {
705
+ return u(h) === S;
706
+ }, w.isMemo = function(h) {
707
+ return u(h) === f;
708
+ }, w.isPortal = function(h) {
709
+ return u(h) === e;
710
+ }, w.isProfiler = function(h) {
711
+ return u(h) === o;
712
+ }, w.isStrictMode = function(h) {
713
+ return u(h) === r;
714
+ }, w.isSuspense = function(h) {
715
+ return u(h) === m;
716
+ }, w.isSuspenseList = function(h) {
717
+ return u(h) === p;
718
+ }, w.isValidElementType = function(h) {
719
+ return typeof h == "string" || typeof h == "function" || h === n || h === o || h === r || h === m || h === p || h === y || typeof h == "\
720
+ object" && h !== null && (h.$$typeof === S || h.$$typeof === f || h.$$typeof === s || h.$$typeof === i || h.$$typeof === l || h.$$typeof ===
721
+ g || h.getModuleId !== void 0);
722
+ }, w.typeOf = u, w;
723
+ }
724
+ c(fo, "requireReactIs_production_min");
551
725
  var A = {};
552
- var Fe;
553
- function Xr() {
554
- return Fe || (Fe = 1, process.env.NODE_ENV !== "production" && function() {
726
+ var We;
727
+ function mo() {
728
+ return We || (We = 1, process.env.NODE_ENV !== "production" && function() {
555
729
  var t = Symbol.for("react.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"),
556
- o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = Symbol.for("react.server_contex\
557
- t"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), a = Symbol.for("react.mem\
558
- o"), S = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), h = !1, y = !1, p = !1, b = !1, E = !1, $;
559
- $ = Symbol.for("react.module.reference");
560
- function d(C) {
561
- return !!(typeof C == "string" || typeof C == "function" || C === n || C === o || E || C === r || C === f || C === m || b || C === g ||
562
- h || y || p || typeof C == "object" && C !== null && (C.$$typeof === S || C.$$typeof === a || C.$$typeof === s || C.$$typeof === i || C.
563
- $$typeof === u || // This needs to include all possible module reference object
730
+ o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), a = Symbol.for("react.server_contex\
731
+ t"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), f = Symbol.for("react.mem\
732
+ o"), S = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), g = !1, u = !1, h = !1, b = !1, _ = !1, O;
733
+ O = Symbol.for("react.module.reference");
734
+ function d(T) {
735
+ return !!(typeof T == "string" || typeof T == "function" || T === n || T === o || _ || T === r || T === m || T === p || b || T === y ||
736
+ g || u || h || typeof T == "object" && T !== null && (T.$$typeof === S || T.$$typeof === f || T.$$typeof === s || T.$$typeof === i || T.
737
+ $$typeof === l || // This needs to include all possible module reference object
564
738
  // types supported by any Flight configuration anywhere since
565
739
  // we don't know which Flight build this will end up being used
566
740
  // with.
567
- C.$$typeof === $ || C.getModuleId !== void 0));
741
+ T.$$typeof === O || T.getModuleId !== void 0));
568
742
  }
569
743
  c(d, "isValidElementType");
570
- function _(C) {
571
- if (typeof C == "object" && C !== null) {
572
- var Ht = C.$$typeof;
573
- switch (Ht) {
744
+ function E(T) {
745
+ if (typeof T == "object" && T !== null) {
746
+ var Qt = T.$$typeof;
747
+ switch (Qt) {
574
748
  case t:
575
- var $t = C.type;
576
- switch ($t) {
749
+ var Nt = T.type;
750
+ switch (Nt) {
577
751
  case n:
578
752
  case o:
579
753
  case r:
580
- case f:
581
754
  case m:
582
- return $t;
755
+ case p:
756
+ return Nt;
583
757
  default:
584
- var Re = $t && $t.$$typeof;
585
- switch (Re) {
586
- case l:
758
+ var Le = Nt && Nt.$$typeof;
759
+ switch (Le) {
760
+ case a:
587
761
  case i:
588
- case u:
762
+ case l:
589
763
  case S:
590
- case a:
764
+ case f:
591
765
  case s:
592
- return Re;
766
+ return Le;
593
767
  default:
594
- return Ht;
768
+ return Qt;
595
769
  }
596
770
  }
597
771
  case e:
598
- return Ht;
772
+ return Qt;
599
773
  }
600
774
  }
601
775
  }
602
- c(_, "typeOf");
603
- var w = i, O = s, N = t, G = u, Q = n, P = S, k = a, H = e, Y = o, R = r, L = f, x = m, J = !1, D = !1;
604
- function V(C) {
605
- return J || (J = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
776
+ c(E, "typeOf");
777
+ var $ = i, C = s, R = t, J = l, tt = n, L = S, z = f, X = e, V = o, M = r, F = m, D = p, Z = !1, B = !1;
778
+ function K(T) {
779
+ return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
606
780
  }
607
- c(V, "isAsyncMode");
608
- function rt(C) {
609
- return D || (D = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
781
+ c(K, "isAsyncMode");
782
+ function st(T) {
783
+ return B || (B = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
610
784
  }
611
- c(rt, "isConcurrentMode");
612
- function K(C) {
613
- return _(C) === i;
785
+ c(st, "isConcurrentMode");
786
+ function G(T) {
787
+ return E(T) === i;
614
788
  }
615
- c(K, "isContextConsumer");
616
- function q(C) {
617
- return _(C) === s;
789
+ c(G, "isContextConsumer");
790
+ function H(T) {
791
+ return E(T) === s;
618
792
  }
619
- c(q, "isContextProvider");
620
- function st(C) {
621
- return typeof C == "object" && C !== null && C.$$typeof === t;
793
+ c(H, "isContextProvider");
794
+ function ct(T) {
795
+ return typeof T == "object" && T !== null && T.$$typeof === t;
622
796
  }
623
- c(st, "isElement");
624
- function X(C) {
625
- return _(C) === u;
797
+ c(ct, "isElement");
798
+ function Q(T) {
799
+ return E(T) === l;
626
800
  }
627
- c(X, "isForwardRef");
628
- function W(C) {
629
- return _(C) === n;
801
+ c(Q, "isForwardRef");
802
+ function q(T) {
803
+ return E(T) === n;
630
804
  }
631
- c(W, "isFragment");
632
- function ot(C) {
633
- return _(C) === S;
805
+ c(q, "isFragment");
806
+ function it(T) {
807
+ return E(T) === S;
634
808
  }
635
- c(ot, "isLazy");
636
- function ht(C) {
637
- return _(C) === a;
809
+ c(it, "isLazy");
810
+ function dt(T) {
811
+ return E(T) === f;
638
812
  }
639
- c(ht, "isMemo");
640
- function ut(C) {
641
- return _(C) === e;
813
+ c(dt, "isMemo");
814
+ function at(T) {
815
+ return E(T) === e;
642
816
  }
643
- c(ut, "isPortal");
644
- function _t(C) {
645
- return _(C) === o;
817
+ c(at, "isPortal");
818
+ function Ct(T) {
819
+ return E(T) === o;
646
820
  }
647
- c(_t, "isProfiler");
648
- function Ct(C) {
649
- return _(C) === r;
821
+ c(Ct, "isProfiler");
822
+ function At(T) {
823
+ return E(T) === r;
650
824
  }
651
- c(Ct, "isStrictMode");
652
- function wt(C) {
653
- return _(C) === f;
825
+ c(At, "isStrictMode");
826
+ function Rt(T) {
827
+ return E(T) === m;
654
828
  }
655
- c(wt, "isSuspense");
656
- function rr(C) {
657
- return _(C) === m;
829
+ c(Rt, "isSuspense");
830
+ function pr(T) {
831
+ return E(T) === p;
658
832
  }
659
- c(rr, "isSuspenseList"), A.ContextConsumer = w, A.ContextProvider = O, A.Element = N, A.ForwardRef = G, A.Fragment = Q, A.Lazy = P, A.Memo =
660
- k, A.Portal = H, A.Profiler = Y, A.StrictMode = R, A.Suspense = L, A.SuspenseList = x, A.isAsyncMode = V, A.isConcurrentMode = rt, A.isContextConsumer =
661
- K, A.isContextProvider = q, A.isElement = st, A.isForwardRef = X, A.isFragment = W, A.isLazy = ot, A.isMemo = ht, A.isPortal = ut, A.isProfiler =
662
- _t, A.isStrictMode = Ct, A.isSuspense = wt, A.isSuspenseList = rr, A.isValidElementType = d, A.typeOf = _;
833
+ c(pr, "isSuspenseList"), A.ContextConsumer = $, A.ContextProvider = C, A.Element = R, A.ForwardRef = J, A.Fragment = tt, A.Lazy = L, A.Memo =
834
+ z, A.Portal = X, A.Profiler = V, A.StrictMode = M, A.Suspense = F, A.SuspenseList = D, A.isAsyncMode = K, A.isConcurrentMode = st, A.isContextConsumer =
835
+ G, A.isContextProvider = H, A.isElement = ct, A.isForwardRef = Q, A.isFragment = q, A.isLazy = it, A.isMemo = dt, A.isPortal = at, A.isProfiler =
836
+ Ct, A.isStrictMode = At, A.isSuspense = Rt, A.isSuspenseList = pr, A.isValidElementType = d, A.typeOf = E;
663
837
  }()), A;
664
838
  }
665
- c(Xr, "requireReactIs_development");
666
- var ke;
667
- function Zr() {
668
- return ke || (ke = 1, process.env.NODE_ENV === "production" ? Nt.exports = Jr() : Nt.exports = Xr()), Nt.exports;
669
- }
670
- c(Zr, "requireReactIs");
671
- var at = Zr();
672
- function Ze(t, e = []) {
839
+ c(mo, "requireReactIs_development");
840
+ var Ve;
841
+ function po() {
842
+ return Ve || (Ve = 1, process.env.NODE_ENV === "production" ? Lt.exports = fo() : Lt.exports = mo()), Lt.exports;
843
+ }
844
+ c(po, "requireReactIs");
845
+ var cn = po(), go = /* @__PURE__ */ on(cn), ho = /* @__PURE__ */ Ze({
846
+ __proto__: null,
847
+ default: go
848
+ }, [cn]), yo = [
849
+ "isAsyncMode",
850
+ "isConcurrentMode",
851
+ "isContextConsumer",
852
+ "isContextProvider",
853
+ "isElement",
854
+ "isForwardRef",
855
+ "isFragment",
856
+ "isLazy",
857
+ "isMemo",
858
+ "isPortal",
859
+ "isProfiler",
860
+ "isStrictMode",
861
+ "isSuspense",
862
+ "isSuspenseList",
863
+ "isValidElementType"
864
+ ], mt = Object.fromEntries(
865
+ yo.map((t) => [t, (e) => ho[t](e) || ao[t](e)])
866
+ );
867
+ function un(t, e = []) {
673
868
  if (Array.isArray(t))
674
869
  for (let n of t)
675
- Ze(n, e);
870
+ un(n, e);
676
871
  else t != null && t !== !1 && t !== "" && e.push(t);
677
872
  return e;
678
873
  }
679
- c(Ze, "getChildren");
680
- function Be(t) {
874
+ c(un, "getChildren");
875
+ function qe(t) {
681
876
  let e = t.type;
682
877
  if (typeof e == "string")
683
878
  return e;
684
879
  if (typeof e == "function")
685
880
  return e.displayName || e.name || "Unknown";
686
- if (at.isFragment(t))
881
+ if (mt.isFragment(t))
687
882
  return "React.Fragment";
688
- if (at.isSuspense(t))
883
+ if (mt.isSuspense(t))
689
884
  return "React.Suspense";
690
885
  if (typeof e == "object" && e !== null) {
691
- if (at.isContextProvider(t))
886
+ if (mt.isContextProvider(t))
692
887
  return "Context.Provider";
693
- if (at.isContextConsumer(t))
888
+ if (mt.isContextConsumer(t))
694
889
  return "Context.Consumer";
695
- if (at.isForwardRef(t)) {
890
+ if (mt.isForwardRef(t)) {
696
891
  if (e.displayName)
697
892
  return e.displayName;
698
893
  let n = e.render.displayName || e.render.name || "";
699
894
  return n === "" ? "ForwardRef" : `ForwardRef(${n})`;
700
895
  }
701
- if (at.isMemo(t)) {
896
+ if (mt.isMemo(t)) {
702
897
  let n = e.displayName || e.type.displayName || e.type.name || "";
703
898
  return n === "" ? "Memo" : `Memo(${n})`;
704
899
  }
705
900
  }
706
901
  return "UNDEFINED";
707
902
  }
708
- c(Be, "getType");
709
- function Qr(t) {
903
+ c(qe, "getType");
904
+ function bo(t) {
710
905
  let { props: e } = t;
711
906
  return Object.keys(e).filter((n) => n !== "children" && e[n] !== void 0).sort();
712
907
  }
713
- c(Qr, "getPropKeys$1");
714
- var vr = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? oe(Be(t), e) : re(
715
- Be(t),
716
- ee(
717
- Qr(t),
908
+ c(bo, "getPropKeys$1");
909
+ var So = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? ce(qe(t), e) : ie(
910
+ qe(t),
911
+ oe(
912
+ bo(t),
718
913
  t.props,
719
914
  e,
720
915
  n + e.indent,
@@ -722,8 +917,8 @@ var vr = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? oe(Be(t), e)
722
917
  o,
723
918
  s
724
919
  ),
725
- ne(
726
- Ze(t.props.children),
920
+ se(
921
+ un(t.props.children),
727
922
  e,
728
923
  n + e.indent,
729
924
  r,
@@ -732,17 +927,17 @@ var vr = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? oe(Be(t), e)
732
927
  ),
733
928
  e,
734
929
  n
735
- ), "serialize$1"), to = /* @__PURE__ */ c((t) => t != null && at.isElement(t), "test$1"), eo = { serialize: vr, test: to }, no = typeof Symbol ==
930
+ ), "serialize$1"), Eo = /* @__PURE__ */ c((t) => t != null && mt.isElement(t), "test$1"), _o = { serialize: So, test: Eo }, Co = typeof Symbol ==
736
931
  "function" && Symbol.for ? Symbol.for("react.test.json") : 245830487;
737
- function ro(t) {
932
+ function To(t) {
738
933
  let { props: e } = t;
739
934
  return e ? Object.keys(e).filter((n) => e[n] !== void 0).sort() : [];
740
935
  }
741
- c(ro, "getPropKeys");
742
- var oo = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? oe(t.type, e) : re(
936
+ c(To, "getPropKeys");
937
+ var Oo = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? ce(t.type, e) : ie(
743
938
  t.type,
744
- t.props ? ee(
745
- ro(t),
939
+ t.props ? oe(
940
+ To(t),
746
941
  t.props,
747
942
  e,
748
943
  n + e.indent,
@@ -750,7 +945,7 @@ var oo = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? oe(t.type, e
750
945
  o,
751
946
  s
752
947
  ) : "",
753
- t.children ? ne(
948
+ t.children ? se(
754
949
  t.children,
755
950
  e,
756
951
  n + e.indent,
@@ -760,17 +955,17 @@ var oo = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? oe(t.type, e
760
955
  ) : "",
761
956
  e,
762
957
  n
763
- ), "serialize"), so = /* @__PURE__ */ c((t) => t && t.$$typeof === no, "test"), io = { serialize: oo, test: so }, Qe = Object.prototype.toString,
764
- co = Date.prototype.toISOString, uo = Error.prototype.toString, ze = RegExp.prototype.toString;
765
- function Qt(t) {
958
+ ), "serialize"), $o = /* @__PURE__ */ c((t) => t && t.$$typeof === Co, "test"), wo = { serialize: Oo, test: $o }, ln = Object.prototype.toString,
959
+ Ao = Date.prototype.toISOString, Ro = Error.prototype.toString, Ke = RegExp.prototype.toString;
960
+ function xt(t) {
766
961
  return typeof t.constructor == "function" && t.constructor.name || "Object";
767
962
  }
768
- c(Qt, "getConstructorName");
769
- function lo(t) {
963
+ c(xt, "getConstructorName");
964
+ function No(t) {
770
965
  return typeof window < "u" && t === window;
771
966
  }
772
- c(lo, "isWindow");
773
- var ao = /^Symbol\((.*)\)(.*)$/, fo = /\n/g, Rt = class extends Error {
967
+ c(No, "isWindow");
968
+ var Po = /^Symbol\((.*)\)(.*)$/, Io = /\n/g, Dt = class extends Error {
774
969
  static {
775
970
  c(this, "PrettyFormatPluginError");
776
971
  }
@@ -778,33 +973,33 @@ var ao = /^Symbol\((.*)\)(.*)$/, fo = /\n/g, Rt = class extends Error {
778
973
  super(e), this.stack = n, this.name = this.constructor.name;
779
974
  }
780
975
  };
781
- function mo(t) {
976
+ function Mo(t) {
782
977
  return t === "[object Array]" || t === "[object ArrayBuffer]" || t === "[object DataView]" || t === "[object Float32Array]" || t === "[obj\
783
978
  ect Float64Array]" || t === "[object Int8Array]" || t === "[object Int16Array]" || t === "[object Int32Array]" || t === "[object Uint8Array]" ||
784
979
  t === "[object Uint8ClampedArray]" || t === "[object Uint16Array]" || t === "[object Uint32Array]";
785
980
  }
786
- c(mo, "isToStringedArrayType");
787
- function po(t) {
981
+ c(Mo, "isToStringedArrayType");
982
+ function Lo(t) {
788
983
  return Object.is(t, -0) ? "-0" : String(t);
789
984
  }
790
- c(po, "printNumber");
791
- function go(t) {
985
+ c(Lo, "printNumber");
986
+ function xo(t) {
792
987
  return `${t}n`;
793
988
  }
794
- c(go, "printBigInt");
795
- function Ue(t, e) {
989
+ c(xo, "printBigInt");
990
+ function Ge(t, e) {
796
991
  return e ? `[Function ${t.name || "anonymous"}]` : "[Function]";
797
992
  }
798
- c(Ue, "printFunction");
799
- function Ye(t) {
800
- return String(t).replace(ao, "Symbol($1)");
993
+ c(Ge, "printFunction");
994
+ function He(t) {
995
+ return String(t).replace(Po, "Symbol($1)");
801
996
  }
802
- c(Ye, "printSymbol");
803
- function We(t) {
804
- return `[${uo.call(t)}]`;
997
+ c(He, "printSymbol");
998
+ function Je(t) {
999
+ return `[${Ro.call(t)}]`;
805
1000
  }
806
- c(We, "printError");
807
- function ve(t, e, n, r) {
1001
+ c(Je, "printError");
1002
+ function an(t, e, n, r) {
808
1003
  if (t === !0 || t === !1)
809
1004
  return `${t}`;
810
1005
  if (t === void 0)
@@ -813,77 +1008,99 @@ function ve(t, e, n, r) {
813
1008
  return "null";
814
1009
  let o = typeof t;
815
1010
  if (o === "number")
816
- return po(t);
1011
+ return Lo(t);
817
1012
  if (o === "bigint")
818
- return go(t);
1013
+ return xo(t);
819
1014
  if (o === "string")
820
1015
  return r ? `"${t.replaceAll(/"|\\/g, "\\$&")}"` : `"${t}"`;
821
1016
  if (o === "function")
822
- return Ue(t, e);
1017
+ return Ge(t, e);
823
1018
  if (o === "symbol")
824
- return Ye(t);
825
- let s = Qe.call(t);
1019
+ return He(t);
1020
+ let s = ln.call(t);
826
1021
  return s === "[object WeakMap]" ? "WeakMap {}" : s === "[object WeakSet]" ? "WeakSet {}" : s === "[object Function]" || s === "[object Gen\
827
- eratorFunction]" ? Ue(t, e) : s === "[object Symbol]" ? Ye(t) : s === "[object Date]" ? Number.isNaN(+t) ? "Date { NaN }" : co.call(t) : s ===
828
- "[object Error]" ? We(t) : s === "[object RegExp]" ? n ? ze.call(t).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&") : ze.call(t) : t instanceof Error ?
829
- We(t) : null;
1022
+ eratorFunction]" ? Ge(t, e) : s === "[object Symbol]" ? He(t) : s === "[object Date]" ? Number.isNaN(+t) ? "Date { NaN }" : Ao.call(t) : s ===
1023
+ "[object Error]" ? Je(t) : s === "[object RegExp]" ? n ? Ke.call(t).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&") : Ke.call(t) : t instanceof Error ?
1024
+ Je(t) : null;
830
1025
  }
831
- c(ve, "printBasicValue");
832
- function tn(t, e, n, r, o, s) {
1026
+ c(an, "printBasicValue");
1027
+ function fn(t, e, n, r, o, s) {
833
1028
  if (o.includes(t))
834
1029
  return "[Circular]";
835
1030
  o = [...o], o.push(t);
836
- let i = ++r > e.maxDepth, l = e.min;
1031
+ let i = ++r > e.maxDepth, a = e.min;
837
1032
  if (e.callToJSON && !i && t.toJSON && typeof t.toJSON == "function" && !s)
838
- return lt(t.toJSON(), e, n, r, o, !0);
839
- let u = Qe.call(t);
840
- return u === "[object Arguments]" ? i ? "[Arguments]" : `${l ? "" : "Arguments "}[${It(
1033
+ return ft(t.toJSON(), e, n, r, o, !0);
1034
+ let l = ln.call(t);
1035
+ return l === "[object Arguments]" ? i ? "[Arguments]" : `${a ? "" : "Arguments "}[${Ft(
841
1036
  t,
842
1037
  e,
843
1038
  n,
844
1039
  r,
845
1040
  o,
846
- lt
847
- )}]` : mo(u) ? i ? `[${t.constructor.name}]` : `${l || !e.printBasicPrototype && t.constructor.name === "Array" ? "" : `${t.constructor.name}\
848
- `}[${It(t, e, n, r, o, lt)}]` : u === "[object Map]" ? i ? "[Map]" : `Map {${Pt(
1041
+ ft
1042
+ )}]` : Mo(l) ? i ? `[${t.constructor.name}]` : `${a || !e.printBasicPrototype && t.constructor.name === "Array" ? "" : `${t.constructor.name}\
1043
+ `}[${Ft(t, e, n, r, o, ft)}]` : l === "[object Map]" ? i ? "[Map]" : `Map {${Ot(
849
1044
  t.entries(),
850
1045
  e,
851
1046
  n,
852
1047
  r,
853
1048
  o,
854
- lt,
1049
+ ft,
855
1050
  " => "
856
- )}}` : u === "[object Set]" ? i ? "[Set]" : `Set {${vt(
1051
+ )}}` : l === "[object Set]" ? i ? "[Set]" : `Set {${ne(
857
1052
  t.values(),
858
1053
  e,
859
1054
  n,
860
1055
  r,
861
1056
  o,
862
- lt
863
- )}}` : i || lo(t) ? `[${Qt(t)}]` : `${l || !e.printBasicPrototype && Qt(t) === "Object" ? "" : `${Qt(t)} `}{${te(
1057
+ ft
1058
+ )}}` : i || No(t) ? `[${xt(t)}]` : `${a || !e.printBasicPrototype && xt(t) === "Object" ? "" : `${xt(t)} `}{${re(
864
1059
  t,
865
1060
  e,
866
1061
  n,
867
1062
  r,
868
1063
  o,
869
- lt
1064
+ ft
870
1065
  )}}`;
871
1066
  }
872
- c(tn, "printComplexValue");
873
- function ho(t) {
1067
+ c(fn, "printComplexValue");
1068
+ var Fo = {
1069
+ test: /* @__PURE__ */ c((t) => t && t instanceof Error, "test"),
1070
+ serialize(t, e, n, r, o, s) {
1071
+ if (o.includes(t))
1072
+ return "[Circular]";
1073
+ o = [...o, t];
1074
+ let i = ++r > e.maxDepth, { message: a, cause: l, ...m } = t, p = {
1075
+ message: a,
1076
+ ...typeof l < "u" ? { cause: l } : {},
1077
+ ...t instanceof AggregateError ? { errors: t.errors } : {},
1078
+ ...m
1079
+ }, f = t.name !== "Error" ? t.name : xt(t);
1080
+ return i ? `[${f}]` : `${f} {${Ot(
1081
+ Object.entries(p).values(),
1082
+ e,
1083
+ n,
1084
+ r,
1085
+ o,
1086
+ s
1087
+ )}}`;
1088
+ }
1089
+ };
1090
+ function Do(t) {
874
1091
  return t.serialize != null;
875
1092
  }
876
- c(ho, "isNewPlugin");
877
- function en(t, e, n, r, o, s) {
1093
+ c(Do, "isNewPlugin");
1094
+ function mn(t, e, n, r, o, s) {
878
1095
  let i;
879
1096
  try {
880
- i = ho(t) ? t.serialize(e, n, r, o, s, lt) : t.print(
1097
+ i = Do(t) ? t.serialize(e, n, r, o, s, ft) : t.print(
881
1098
  e,
882
- (l) => lt(l, n, r, o, s),
883
- (l) => {
884
- let u = r + n.indent;
885
- return u + l.replaceAll(fo, `
886
- ${u}`);
1099
+ (a) => ft(a, n, r, o, s),
1100
+ (a) => {
1101
+ let l = r + n.indent;
1102
+ return l + a.replaceAll(Io, `
1103
+ ${l}`);
887
1104
  },
888
1105
  {
889
1106
  edgeSpacing: n.spacingOuter,
@@ -892,8 +1109,8 @@ ${u}`);
892
1109
  },
893
1110
  n.colors
894
1111
  );
895
- } catch (l) {
896
- throw new Rt(l.message, l.stack);
1112
+ } catch (a) {
1113
+ throw new Dt(a.message, a.stack);
897
1114
  }
898
1115
  if (typeof i != "string")
899
1116
  throw new TypeError(
@@ -901,29 +1118,29 @@ ${u}`);
901
1118
  );
902
1119
  return i;
903
1120
  }
904
- c(en, "printPlugin");
905
- function nn(t, e) {
1121
+ c(mn, "printPlugin");
1122
+ function pn(t, e) {
906
1123
  for (let n of t)
907
1124
  try {
908
1125
  if (n.test(e))
909
1126
  return n;
910
1127
  } catch (r) {
911
- throw new Rt(r.message, r.stack);
1128
+ throw new Dt(r.message, r.stack);
912
1129
  }
913
1130
  return null;
914
1131
  }
915
- c(nn, "findPlugin");
916
- function lt(t, e, n, r, o, s) {
917
- let i = nn(e.plugins, t);
1132
+ c(pn, "findPlugin");
1133
+ function ft(t, e, n, r, o, s) {
1134
+ let i = pn(e.plugins, t);
918
1135
  if (i !== null)
919
- return en(i, t, e, n, r, o);
920
- let l = ve(
1136
+ return mn(i, t, e, n, r, o);
1137
+ let a = an(
921
1138
  t,
922
1139
  e.printFunctionName,
923
1140
  e.escapeRegex,
924
1141
  e.escapeString
925
1142
  );
926
- return l !== null ? l : tn(
1143
+ return a !== null ? a : fn(
927
1144
  t,
928
1145
  e,
929
1146
  n,
@@ -932,14 +1149,14 @@ function lt(t, e, n, r, o, s) {
932
1149
  s
933
1150
  );
934
1151
  }
935
- c(lt, "printer");
936
- var se = {
1152
+ c(ft, "printer");
1153
+ var ue = {
937
1154
  comment: "gray",
938
1155
  content: "reset",
939
1156
  prop: "yellow",
940
1157
  tag: "cyan",
941
1158
  value: "green"
942
- }, rn = Object.keys(se), tt = {
1159
+ }, gn = Object.keys(ue), nt = {
943
1160
  callToJSON: !0,
944
1161
  compareKeys: void 0,
945
1162
  escapeRegex: !1,
@@ -952,21 +1169,21 @@ var se = {
952
1169
  plugins: [],
953
1170
  printBasicPrototype: !0,
954
1171
  printFunctionName: !0,
955
- theme: se
1172
+ theme: ue
956
1173
  };
957
- function yo(t) {
1174
+ function jo(t) {
958
1175
  for (let e of Object.keys(t))
959
- if (!Object.prototype.hasOwnProperty.call(tt, e))
1176
+ if (!Object.prototype.hasOwnProperty.call(nt, e))
960
1177
  throw new Error(`pretty-format: Unknown option "${e}".`);
961
1178
  if (t.min && t.indent !== void 0 && t.indent !== 0)
962
1179
  throw new Error(
963
1180
  'pretty-format: Options "min" and "indent" cannot be used together.'
964
1181
  );
965
1182
  }
966
- c(yo, "validateOptions");
967
- function bo() {
968
- return rn.reduce((t, e) => {
969
- let n = se[e], r = n && v[n];
1183
+ c(jo, "validateOptions");
1184
+ function Bo() {
1185
+ return gn.reduce((t, e) => {
1186
+ let n = ue[e], r = n && et[n];
970
1187
  if (r && typeof r.close == "string" && typeof r.open == "string")
971
1188
  t[e] = r;
972
1189
  else
@@ -976,74 +1193,75 @@ function bo() {
976
1193
  return t;
977
1194
  }, /* @__PURE__ */ Object.create(null));
978
1195
  }
979
- c(bo, "getColorsHighlight");
980
- function So() {
981
- return rn.reduce((t, e) => (t[e] = { close: "", open: "" }, t), /* @__PURE__ */ Object.create(null));
1196
+ c(Bo, "getColorsHighlight");
1197
+ function ko() {
1198
+ return gn.reduce((t, e) => (t[e] = { close: "", open: "" }, t), /* @__PURE__ */ Object.create(null));
982
1199
  }
983
- c(So, "getColorsEmpty");
984
- function on(t) {
985
- return t?.printFunctionName ?? tt.printFunctionName;
1200
+ c(ko, "getColorsEmpty");
1201
+ function hn(t) {
1202
+ return t?.printFunctionName ?? nt.printFunctionName;
986
1203
  }
987
- c(on, "getPrintFunctionName");
988
- function sn(t) {
989
- return t?.escapeRegex ?? tt.escapeRegex;
1204
+ c(hn, "getPrintFunctionName");
1205
+ function yn(t) {
1206
+ return t?.escapeRegex ?? nt.escapeRegex;
990
1207
  }
991
- c(sn, "getEscapeRegex");
992
- function cn(t) {
993
- return t?.escapeString ?? tt.escapeString;
1208
+ c(yn, "getEscapeRegex");
1209
+ function dn(t) {
1210
+ return t?.escapeString ?? nt.escapeString;
994
1211
  }
995
- c(cn, "getEscapeString");
996
- function Ve(t) {
1212
+ c(dn, "getEscapeString");
1213
+ function Xe(t) {
997
1214
  return {
998
- callToJSON: t?.callToJSON ?? tt.callToJSON,
999
- colors: t?.highlight ? bo() : So(),
1000
- compareKeys: typeof t?.compareKeys == "function" || t?.compareKeys === null ? t.compareKeys : tt.compareKeys,
1001
- escapeRegex: sn(t),
1002
- escapeString: cn(t),
1003
- indent: t?.min ? "" : _o(t?.indent ?? tt.indent),
1004
- maxDepth: t?.maxDepth ?? tt.maxDepth,
1005
- maxWidth: t?.maxWidth ?? tt.maxWidth,
1006
- min: t?.min ?? tt.min,
1007
- plugins: t?.plugins ?? tt.plugins,
1215
+ callToJSON: t?.callToJSON ?? nt.callToJSON,
1216
+ colors: t?.highlight ? Bo() : ko(),
1217
+ compareKeys: typeof t?.compareKeys == "function" || t?.compareKeys === null ? t.compareKeys : nt.compareKeys,
1218
+ escapeRegex: yn(t),
1219
+ escapeString: dn(t),
1220
+ indent: t?.min ? "" : zo(t?.indent ?? nt.indent),
1221
+ maxDepth: t?.maxDepth ?? nt.maxDepth,
1222
+ maxWidth: t?.maxWidth ?? nt.maxWidth,
1223
+ min: t?.min ?? nt.min,
1224
+ plugins: t?.plugins ?? nt.plugins,
1008
1225
  printBasicPrototype: t?.printBasicPrototype ?? !0,
1009
- printFunctionName: on(t),
1226
+ printFunctionName: hn(t),
1010
1227
  spacingInner: t?.min ? " " : `
1011
1228
  `,
1012
1229
  spacingOuter: t?.min ? "" : `
1013
1230
  `
1014
1231
  };
1015
1232
  }
1016
- c(Ve, "getConfig");
1017
- function _o(t) {
1233
+ c(Xe, "getConfig");
1234
+ function zo(t) {
1018
1235
  return Array.from({ length: t + 1 }).join(" ");
1019
1236
  }
1020
- c(_o, "createIndent");
1021
- function Z(t, e) {
1022
- if (e && (yo(e), e.plugins)) {
1023
- let r = nn(e.plugins, t);
1237
+ c(zo, "createIndent");
1238
+ function v(t, e) {
1239
+ if (e && (jo(e), e.plugins)) {
1240
+ let r = pn(e.plugins, t);
1024
1241
  if (r !== null)
1025
- return en(r, t, Ve(e), "", 0, []);
1242
+ return mn(r, t, Xe(e), "", 0, []);
1026
1243
  }
1027
- let n = ve(
1244
+ let n = an(
1028
1245
  t,
1029
- on(e),
1030
- sn(e),
1031
- cn(e)
1246
+ hn(e),
1247
+ yn(e),
1248
+ dn(e)
1032
1249
  );
1033
- return n !== null ? n : tn(t, Ve(e), "", 0, []);
1034
- }
1035
- c(Z, "format");
1036
- var Lt = {
1037
- AsymmetricMatcher: yr,
1038
- DOMCollection: Cr,
1039
- DOMElement: Lr,
1040
- Immutable: Hr,
1041
- ReactElement: eo,
1042
- ReactTestComponent: io
1250
+ return n !== null ? n : fn(t, Xe(e), "", 0, []);
1251
+ }
1252
+ c(v, "format");
1253
+ var $t = {
1254
+ AsymmetricMatcher: Ar,
1255
+ DOMCollection: xr,
1256
+ DOMElement: Vr,
1257
+ Immutable: so,
1258
+ ReactElement: _o,
1259
+ ReactTestComponent: wo,
1260
+ Error: Fo
1043
1261
  };
1044
1262
 
1045
1263
  // ../node_modules/loupe/lib/helpers.js
1046
- var un = {
1264
+ var bn = {
1047
1265
  bold: ["1", "22"],
1048
1266
  dim: ["2", "22"],
1049
1267
  italic: ["3", "23"],
@@ -1071,7 +1289,7 @@ var un = {
1071
1289
  brightcyan: ["36;1", "39"],
1072
1290
  brightwhite: ["37;1", "39"],
1073
1291
  grey: ["90", "39"]
1074
- }, Eo = {
1292
+ }, Yo = {
1075
1293
  special: "cyan",
1076
1294
  number: "yellow",
1077
1295
  bigint: "yellow",
@@ -1082,13 +1300,13 @@ var un = {
1082
1300
  symbol: "green",
1083
1301
  date: "magenta",
1084
1302
  regexp: "red"
1085
- }, it = "\u2026";
1086
- function Oo(t, e) {
1087
- let n = un[Eo[e]] || un[e] || "";
1303
+ }, ut = "\u2026";
1304
+ function Uo(t, e) {
1305
+ let n = bn[Yo[e]] || bn[e] || "";
1088
1306
  return n ? `\x1B[${n[0]}m${String(t)}\x1B[${n[1]}m` : String(t);
1089
1307
  }
1090
- c(Oo, "colorise");
1091
- function ln({
1308
+ c(Uo, "colorise");
1309
+ function Sn({
1092
1310
  showHidden: t = !1,
1093
1311
  depth: e = 2,
1094
1312
  colors: n = !1,
@@ -1096,12 +1314,12 @@ function ln({
1096
1314
  showProxy: o = !1,
1097
1315
  maxArrayLength: s = 1 / 0,
1098
1316
  breakLength: i = 1 / 0,
1099
- seen: l = [],
1317
+ seen: a = [],
1100
1318
  // eslint-disable-next-line no-shadow
1101
- truncate: u = 1 / 0,
1102
- stylize: f = String
1103
- } = {}, m) {
1104
- let a = {
1319
+ truncate: l = 1 / 0,
1320
+ stylize: m = String
1321
+ } = {}, p) {
1322
+ let f = {
1105
1323
  showHidden: !!t,
1106
1324
  depth: Number(e),
1107
1325
  colors: !!n,
@@ -1109,66 +1327,66 @@ function ln({
1109
1327
  showProxy: !!o,
1110
1328
  maxArrayLength: Number(s),
1111
1329
  breakLength: Number(i),
1112
- truncate: Number(u),
1113
- seen: l,
1114
- inspect: m,
1115
- stylize: f
1330
+ truncate: Number(l),
1331
+ seen: a,
1332
+ inspect: p,
1333
+ stylize: m
1116
1334
  };
1117
- return a.colors && (a.stylize = Oo), a;
1335
+ return f.colors && (f.stylize = Uo), f;
1118
1336
  }
1119
- c(ln, "normaliseOptions");
1120
- function Co(t) {
1337
+ c(Sn, "normaliseOptions");
1338
+ function Wo(t) {
1121
1339
  return t >= "\uD800" && t <= "\uDBFF";
1122
1340
  }
1123
- c(Co, "isHighSurrogate");
1124
- function B(t, e, n = it) {
1341
+ c(Wo, "isHighSurrogate");
1342
+ function Y(t, e, n = ut) {
1125
1343
  t = String(t);
1126
1344
  let r = n.length, o = t.length;
1127
1345
  if (r > e && o > r)
1128
1346
  return n;
1129
1347
  if (o > e && o > r) {
1130
1348
  let s = e - r;
1131
- return s > 0 && Co(t[s - 1]) && (s = s - 1), `${t.slice(0, s)}${n}`;
1349
+ return s > 0 && Wo(t[s - 1]) && (s = s - 1), `${t.slice(0, s)}${n}`;
1132
1350
  }
1133
1351
  return t;
1134
1352
  }
1135
- c(B, "truncate");
1353
+ c(Y, "truncate");
1136
1354
  function j(t, e, n, r = ", ") {
1137
1355
  n = n || e.inspect;
1138
1356
  let o = t.length;
1139
1357
  if (o === 0)
1140
1358
  return "";
1141
- let s = e.truncate, i = "", l = "", u = "";
1142
- for (let f = 0; f < o; f += 1) {
1143
- let m = f + 1 === t.length, a = f + 2 === t.length;
1144
- u = `${it}(${t.length - f})`;
1145
- let S = t[f];
1146
- e.truncate = s - i.length - (m ? 0 : r.length);
1147
- let g = l || n(S, e) + (m ? "" : r), h = i.length + g.length, y = h + u.length;
1148
- if (m && h > s && i.length + u.length <= s || !m && !a && y > s || (l = m ? "" : n(t[f + 1], e) + (a ? "" : r), !m && a && y > s && h + l.
1359
+ let s = e.truncate, i = "", a = "", l = "";
1360
+ for (let m = 0; m < o; m += 1) {
1361
+ let p = m + 1 === t.length, f = m + 2 === t.length;
1362
+ l = `${ut}(${t.length - m})`;
1363
+ let S = t[m];
1364
+ e.truncate = s - i.length - (p ? 0 : r.length);
1365
+ let y = a || n(S, e) + (p ? "" : r), g = i.length + y.length, u = g + l.length;
1366
+ if (p && g > s && i.length + l.length <= s || !p && !f && u > s || (a = p ? "" : n(t[m + 1], e) + (f ? "" : r), !p && f && u > s && g + a.
1149
1367
  length > s))
1150
1368
  break;
1151
- if (i += g, !m && !a && h + l.length >= s) {
1152
- u = `${it}(${t.length - f - 1})`;
1369
+ if (i += y, !p && !f && g + a.length >= s) {
1370
+ l = `${ut}(${t.length - m - 1})`;
1153
1371
  break;
1154
1372
  }
1155
- u = "";
1373
+ l = "";
1156
1374
  }
1157
- return `${i}${u}`;
1375
+ return `${i}${l}`;
1158
1376
  }
1159
1377
  c(j, "inspectList");
1160
- function wo(t) {
1378
+ function Vo(t) {
1161
1379
  return t.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/) ? t : JSON.stringify(t).replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
1162
1380
  }
1163
- c(wo, "quoteComplexKey");
1164
- function ct([t, e], n) {
1165
- return n.truncate -= 2, typeof t == "string" ? t = wo(t) : typeof t != "number" && (t = `[${n.inspect(t, n)}]`), n.truncate -= t.length, e =
1381
+ c(Vo, "quoteComplexKey");
1382
+ function lt([t, e], n) {
1383
+ return n.truncate -= 2, typeof t == "string" ? t = Vo(t) : typeof t != "number" && (t = `[${n.inspect(t, n)}]`), n.truncate -= t.length, e =
1166
1384
  n.inspect(e, n), `${t}: ${e}`;
1167
1385
  }
1168
- c(ct, "inspectProperty");
1386
+ c(lt, "inspectProperty");
1169
1387
 
1170
1388
  // ../node_modules/loupe/lib/array.js
1171
- function ie(t, e) {
1389
+ function le(t, e) {
1172
1390
  let n = Object.keys(t).slice(t.length);
1173
1391
  if (!t.length && !n.length)
1174
1392
  return "[]";
@@ -1176,105 +1394,105 @@ function ie(t, e) {
1176
1394
  let r = j(t, e);
1177
1395
  e.truncate -= r.length;
1178
1396
  let o = "";
1179
- return n.length && (o = j(n.map((s) => [s, t[s]]), e, ct)), `[ ${r}${o ? `, ${o}` : ""} ]`;
1397
+ return n.length && (o = j(n.map((s) => [s, t[s]]), e, lt)), `[ ${r}${o ? `, ${o}` : ""} ]`;
1180
1398
  }
1181
- c(ie, "inspectArray");
1399
+ c(le, "inspectArray");
1182
1400
 
1183
1401
  // ../node_modules/loupe/lib/typedarray.js
1184
- var $o = /* @__PURE__ */ c((t) => typeof Buffer == "function" && t instanceof Buffer ? "Buffer" : t[Symbol.toStringTag] ? t[Symbol.toStringTag] :
1402
+ var qo = /* @__PURE__ */ c((t) => typeof Buffer == "function" && t instanceof Buffer ? "Buffer" : t[Symbol.toStringTag] ? t[Symbol.toStringTag] :
1185
1403
  t.constructor.name, "getArrayName");
1186
- function et(t, e) {
1187
- let n = $o(t);
1404
+ function rt(t, e) {
1405
+ let n = qo(t);
1188
1406
  e.truncate -= n.length + 4;
1189
1407
  let r = Object.keys(t).slice(t.length);
1190
1408
  if (!t.length && !r.length)
1191
1409
  return `${n}[]`;
1192
1410
  let o = "";
1193
1411
  for (let i = 0; i < t.length; i++) {
1194
- let l = `${e.stylize(B(t[i], e.truncate), "number")}${i === t.length - 1 ? "" : ", "}`;
1195
- if (e.truncate -= l.length, t[i] !== t.length && e.truncate <= 3) {
1196
- o += `${it}(${t.length - t[i] + 1})`;
1412
+ let a = `${e.stylize(Y(t[i], e.truncate), "number")}${i === t.length - 1 ? "" : ", "}`;
1413
+ if (e.truncate -= a.length, t[i] !== t.length && e.truncate <= 3) {
1414
+ o += `${ut}(${t.length - t[i] + 1})`;
1197
1415
  break;
1198
1416
  }
1199
- o += l;
1417
+ o += a;
1200
1418
  }
1201
1419
  let s = "";
1202
- return r.length && (s = j(r.map((i) => [i, t[i]]), e, ct)), `${n}[ ${o}${s ? `, ${s}` : ""} ]`;
1420
+ return r.length && (s = j(r.map((i) => [i, t[i]]), e, lt)), `${n}[ ${o}${s ? `, ${s}` : ""} ]`;
1203
1421
  }
1204
- c(et, "inspectTypedArray");
1422
+ c(rt, "inspectTypedArray");
1205
1423
 
1206
1424
  // ../node_modules/loupe/lib/date.js
1207
- function ce(t, e) {
1425
+ function ae(t, e) {
1208
1426
  let n = t.toJSON();
1209
1427
  if (n === null)
1210
1428
  return "Invalid Date";
1211
1429
  let r = n.split("T"), o = r[0];
1212
- return e.stylize(`${o}T${B(r[1], e.truncate - o.length - 1)}`, "date");
1430
+ return e.stylize(`${o}T${Y(r[1], e.truncate - o.length - 1)}`, "date");
1213
1431
  }
1214
- c(ce, "inspectDate");
1432
+ c(ae, "inspectDate");
1215
1433
 
1216
1434
  // ../node_modules/loupe/lib/function.js
1217
- function xt(t, e) {
1435
+ function Bt(t, e) {
1218
1436
  let n = t[Symbol.toStringTag] || "Function", r = t.name;
1219
- return r ? e.stylize(`[${n} ${B(r, e.truncate - 11)}]`, "special") : e.stylize(`[${n}]`, "special");
1437
+ return r ? e.stylize(`[${n} ${Y(r, e.truncate - 11)}]`, "special") : e.stylize(`[${n}]`, "special");
1220
1438
  }
1221
- c(xt, "inspectFunction");
1439
+ c(Bt, "inspectFunction");
1222
1440
 
1223
1441
  // ../node_modules/loupe/lib/map.js
1224
- function To([t, e], n) {
1442
+ function Ko([t, e], n) {
1225
1443
  return n.truncate -= 4, t = n.inspect(t, n), n.truncate -= t.length, e = n.inspect(e, n), `${t} => ${e}`;
1226
1444
  }
1227
- c(To, "inspectMapEntry");
1228
- function Ao(t) {
1445
+ c(Ko, "inspectMapEntry");
1446
+ function Go(t) {
1229
1447
  let e = [];
1230
1448
  return t.forEach((n, r) => {
1231
1449
  e.push([r, n]);
1232
1450
  }), e;
1233
1451
  }
1234
- c(Ao, "mapToEntries");
1235
- function ue(t, e) {
1236
- return t.size - 1 <= 0 ? "Map{}" : (e.truncate -= 7, `Map{ ${j(Ao(t), e, To)} }`);
1452
+ c(Go, "mapToEntries");
1453
+ function fe(t, e) {
1454
+ return t.size === 0 ? "Map{}" : (e.truncate -= 7, `Map{ ${j(Go(t), e, Ko)} }`);
1237
1455
  }
1238
- c(ue, "inspectMap");
1456
+ c(fe, "inspectMap");
1239
1457
 
1240
1458
  // ../node_modules/loupe/lib/number.js
1241
- var No = Number.isNaN || ((t) => t !== t);
1242
- function jt(t, e) {
1243
- return No(t) ? e.stylize("NaN", "number") : t === 1 / 0 ? e.stylize("Infinity", "number") : t === -1 / 0 ? e.stylize("-Infinity", "number") :
1244
- t === 0 ? e.stylize(1 / t === 1 / 0 ? "+0" : "-0", "number") : e.stylize(B(String(t), e.truncate), "number");
1459
+ var Ho = Number.isNaN || ((t) => t !== t);
1460
+ function kt(t, e) {
1461
+ return Ho(t) ? e.stylize("NaN", "number") : t === 1 / 0 ? e.stylize("Infinity", "number") : t === -1 / 0 ? e.stylize("-Infinity", "number") :
1462
+ t === 0 ? e.stylize(1 / t === 1 / 0 ? "+0" : "-0", "number") : e.stylize(Y(String(t), e.truncate), "number");
1245
1463
  }
1246
- c(jt, "inspectNumber");
1464
+ c(kt, "inspectNumber");
1247
1465
 
1248
1466
  // ../node_modules/loupe/lib/bigint.js
1249
- function Dt(t, e) {
1250
- let n = B(t.toString(), e.truncate - 1);
1251
- return n !== it && (n += "n"), e.stylize(n, "bigint");
1467
+ function zt(t, e) {
1468
+ let n = Y(t.toString(), e.truncate - 1);
1469
+ return n !== ut && (n += "n"), e.stylize(n, "bigint");
1252
1470
  }
1253
- c(Dt, "inspectBigInt");
1471
+ c(zt, "inspectBigInt");
1254
1472
 
1255
1473
  // ../node_modules/loupe/lib/regexp.js
1256
- function le(t, e) {
1474
+ function me(t, e) {
1257
1475
  let n = t.toString().split("/")[2], r = e.truncate - (2 + n.length), o = t.source;
1258
- return e.stylize(`/${B(o, r)}/${n}`, "regexp");
1476
+ return e.stylize(`/${Y(o, r)}/${n}`, "regexp");
1259
1477
  }
1260
- c(le, "inspectRegExp");
1478
+ c(me, "inspectRegExp");
1261
1479
 
1262
1480
  // ../node_modules/loupe/lib/set.js
1263
- function Io(t) {
1481
+ function Jo(t) {
1264
1482
  let e = [];
1265
1483
  return t.forEach((n) => {
1266
1484
  e.push(n);
1267
1485
  }), e;
1268
1486
  }
1269
- c(Io, "arrayFromSet");
1270
- function ae(t, e) {
1271
- return t.size === 0 ? "Set{}" : (e.truncate -= 7, `Set{ ${j(Io(t), e)} }`);
1487
+ c(Jo, "arrayFromSet");
1488
+ function pe(t, e) {
1489
+ return t.size === 0 ? "Set{}" : (e.truncate -= 7, `Set{ ${j(Jo(t), e)} }`);
1272
1490
  }
1273
- c(ae, "inspectSet");
1491
+ c(pe, "inspectSet");
1274
1492
 
1275
1493
  // ../node_modules/loupe/lib/string.js
1276
- var an = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\u\
1277
- ffff]", "g"), Ro = {
1494
+ var En = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\u\
1495
+ ffff]", "g"), Xo = {
1278
1496
  "\b": "\\b",
1279
1497
  " ": "\\t",
1280
1498
  "\n": "\\n",
@@ -1282,66 +1500,66 @@ ffff]", "g"), Ro = {
1282
1500
  "\r": "\\r",
1283
1501
  "'": "\\'",
1284
1502
  "\\": "\\\\"
1285
- }, Po = 16, Mo = 4;
1286
- function Lo(t) {
1287
- return Ro[t] || `\\u${`0000${t.charCodeAt(0).toString(Po)}`.slice(-Mo)}`;
1503
+ }, Zo = 16, Qo = 4;
1504
+ function vo(t) {
1505
+ return Xo[t] || `\\u${`0000${t.charCodeAt(0).toString(Zo)}`.slice(-Qo)}`;
1288
1506
  }
1289
- c(Lo, "escape");
1290
- function Ft(t, e) {
1291
- return an.test(t) && (t = t.replace(an, Lo)), e.stylize(`'${B(t, e.truncate - 2)}'`, "string");
1507
+ c(vo, "escape");
1508
+ function Yt(t, e) {
1509
+ return En.test(t) && (t = t.replace(En, vo)), e.stylize(`'${Y(t, e.truncate - 2)}'`, "string");
1292
1510
  }
1293
- c(Ft, "inspectString");
1511
+ c(Yt, "inspectString");
1294
1512
 
1295
1513
  // ../node_modules/loupe/lib/symbol.js
1296
- function kt(t) {
1514
+ function Ut(t) {
1297
1515
  return "description" in Symbol.prototype ? t.description ? `Symbol(${t.description})` : "Symbol()" : t.toString();
1298
1516
  }
1299
- c(kt, "inspectSymbol");
1517
+ c(Ut, "inspectSymbol");
1300
1518
 
1301
1519
  // ../node_modules/loupe/lib/promise.js
1302
- var fn = /* @__PURE__ */ c(() => "Promise{\u2026}", "getPromiseValue");
1520
+ var _n = /* @__PURE__ */ c(() => "Promise{\u2026}", "getPromiseValue");
1303
1521
  try {
1304
1522
  let { getPromiseDetails: t, kPending: e, kRejected: n } = process.binding("util");
1305
- Array.isArray(t(Promise.resolve())) && (fn = /* @__PURE__ */ c((r, o) => {
1523
+ Array.isArray(t(Promise.resolve())) && (_n = /* @__PURE__ */ c((r, o) => {
1306
1524
  let [s, i] = t(r);
1307
1525
  return s === e ? "Promise{<pending>}" : `Promise${s === n ? "!" : ""}{${o.inspect(i, o)}}`;
1308
1526
  }, "getPromiseValue"));
1309
1527
  } catch {
1310
1528
  }
1311
- var mn = fn;
1529
+ var Cn = _n;
1312
1530
 
1313
1531
  // ../node_modules/loupe/lib/object.js
1314
- function ft(t, e) {
1532
+ function pt(t, e) {
1315
1533
  let n = Object.getOwnPropertyNames(t), r = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t) : [];
1316
1534
  if (n.length === 0 && r.length === 0)
1317
1535
  return "{}";
1318
1536
  if (e.truncate -= 4, e.seen = e.seen || [], e.seen.includes(t))
1319
1537
  return "[Circular]";
1320
1538
  e.seen.push(t);
1321
- let o = j(n.map((l) => [l, t[l]]), e, ct), s = j(r.map((l) => [l, t[l]]), e, ct);
1539
+ let o = j(n.map((a) => [a, t[a]]), e, lt), s = j(r.map((a) => [a, t[a]]), e, lt);
1322
1540
  e.seen.pop();
1323
1541
  let i = "";
1324
1542
  return o && s && (i = ", "), `{ ${o}${i}${s} }`;
1325
1543
  }
1326
- c(ft, "inspectObject");
1544
+ c(pt, "inspectObject");
1327
1545
 
1328
1546
  // ../node_modules/loupe/lib/class.js
1329
- var fe = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : !1;
1330
- function me(t, e) {
1547
+ var ge = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : !1;
1548
+ function he(t, e) {
1331
1549
  let n = "";
1332
- return fe && fe in t && (n = t[fe]), n = n || t.constructor.name, (!n || n === "_class") && (n = "<Anonymous Class>"), e.truncate -= n.length,
1333
- `${n}${ft(t, e)}`;
1550
+ return ge && ge in t && (n = t[ge]), n = n || t.constructor.name, (!n || n === "_class") && (n = "<Anonymous Class>"), e.truncate -= n.length,
1551
+ `${n}${pt(t, e)}`;
1334
1552
  }
1335
- c(me, "inspectClass");
1553
+ c(he, "inspectClass");
1336
1554
 
1337
1555
  // ../node_modules/loupe/lib/arguments.js
1338
- function pe(t, e) {
1556
+ function ye(t, e) {
1339
1557
  return t.length === 0 ? "Arguments[]" : (e.truncate -= 13, `Arguments[ ${j(t, e)} ]`);
1340
1558
  }
1341
- c(pe, "inspectArguments");
1559
+ c(ye, "inspectArguments");
1342
1560
 
1343
1561
  // ../node_modules/loupe/lib/error.js
1344
- var xo = [
1562
+ var ts = [
1345
1563
  "stack",
1346
1564
  "line",
1347
1565
  "column",
@@ -1354,155 +1572,155 @@ var xo = [
1354
1572
  "description",
1355
1573
  "cause"
1356
1574
  ];
1357
- function ge(t, e) {
1358
- let n = Object.getOwnPropertyNames(t).filter((i) => xo.indexOf(i) === -1), r = t.name;
1575
+ function de(t, e) {
1576
+ let n = Object.getOwnPropertyNames(t).filter((i) => ts.indexOf(i) === -1), r = t.name;
1359
1577
  e.truncate -= r.length;
1360
1578
  let o = "";
1361
- if (typeof t.message == "string" ? o = B(t.message, e.truncate) : n.unshift("message"), o = o ? `: ${o}` : "", e.truncate -= o.length + 5,
1579
+ if (typeof t.message == "string" ? o = Y(t.message, e.truncate) : n.unshift("message"), o = o ? `: ${o}` : "", e.truncate -= o.length + 5,
1362
1580
  e.seen = e.seen || [], e.seen.includes(t))
1363
1581
  return "[Circular]";
1364
1582
  e.seen.push(t);
1365
- let s = j(n.map((i) => [i, t[i]]), e, ct);
1583
+ let s = j(n.map((i) => [i, t[i]]), e, lt);
1366
1584
  return `${r}${o}${s ? ` { ${s} }` : ""}`;
1367
1585
  }
1368
- c(ge, "inspectObject");
1586
+ c(de, "inspectObject");
1369
1587
 
1370
1588
  // ../node_modules/loupe/lib/html.js
1371
- function jo([t, e], n) {
1589
+ function es([t, e], n) {
1372
1590
  return n.truncate -= 3, e ? `${n.stylize(String(t), "yellow")}=${n.stylize(`"${e}"`, "string")}` : `${n.stylize(String(t), "yellow")}`;
1373
1591
  }
1374
- c(jo, "inspectAttribute");
1375
- function Bt(t, e) {
1376
- return j(t, e, zt, `
1592
+ c(es, "inspectAttribute");
1593
+ function Wt(t, e) {
1594
+ return j(t, e, Vt, `
1377
1595
  `);
1378
1596
  }
1379
- c(Bt, "inspectHTMLCollection");
1380
- function zt(t, e) {
1597
+ c(Wt, "inspectHTMLCollection");
1598
+ function Vt(t, e) {
1381
1599
  let n = t.getAttributeNames(), r = t.tagName.toLowerCase(), o = e.stylize(`<${r}`, "special"), s = e.stylize(">", "special"), i = e.stylize(
1382
1600
  `</${r}>`, "special");
1383
1601
  e.truncate -= r.length * 2 + 5;
1384
- let l = "";
1385
- n.length > 0 && (l += " ", l += j(n.map((m) => [m, t.getAttribute(m)]), e, jo, " ")), e.truncate -= l.length;
1386
- let u = e.truncate, f = Bt(t.children, e);
1387
- return f && f.length > u && (f = `${it}(${t.children.length})`), `${o}${l}${s}${f}${i}`;
1602
+ let a = "";
1603
+ n.length > 0 && (a += " ", a += j(n.map((p) => [p, t.getAttribute(p)]), e, es, " ")), e.truncate -= a.length;
1604
+ let l = e.truncate, m = Wt(t.children, e);
1605
+ return m && m.length > l && (m = `${ut}(${t.children.length})`), `${o}${a}${s}${m}${i}`;
1388
1606
  }
1389
- c(zt, "inspectHTML");
1607
+ c(Vt, "inspectHTML");
1390
1608
 
1391
1609
  // ../node_modules/loupe/lib/index.js
1392
- var Do = typeof Symbol == "function" && typeof Symbol.for == "function", he = Do ? Symbol.for("chai/inspect") : "@@chai/inspect", dt = !1;
1610
+ var ns = typeof Symbol == "function" && typeof Symbol.for == "function", be = ns ? Symbol.for("chai/inspect") : "@@chai/inspect", St = !1;
1393
1611
  try {
1394
1612
  let t = require("util");
1395
- dt = t.inspect ? t.inspect.custom : !1;
1613
+ St = t.inspect ? t.inspect.custom : !1;
1396
1614
  } catch {
1397
- dt = !1;
1615
+ St = !1;
1398
1616
  }
1399
- var pn = /* @__PURE__ */ new WeakMap(), gn = {}, hn = {
1617
+ var Tn = /* @__PURE__ */ new WeakMap(), On = {}, $n = {
1400
1618
  undefined: /* @__PURE__ */ c((t, e) => e.stylize("undefined", "undefined"), "undefined"),
1401
1619
  null: /* @__PURE__ */ c((t, e) => e.stylize("null", "null"), "null"),
1402
1620
  boolean: /* @__PURE__ */ c((t, e) => e.stylize(String(t), "boolean"), "boolean"),
1403
1621
  Boolean: /* @__PURE__ */ c((t, e) => e.stylize(String(t), "boolean"), "Boolean"),
1404
- number: jt,
1405
- Number: jt,
1406
- bigint: Dt,
1407
- BigInt: Dt,
1408
- string: Ft,
1409
- String: Ft,
1410
- function: xt,
1411
- Function: xt,
1412
- symbol: kt,
1622
+ number: kt,
1623
+ Number: kt,
1624
+ bigint: zt,
1625
+ BigInt: zt,
1626
+ string: Yt,
1627
+ String: Yt,
1628
+ function: Bt,
1629
+ Function: Bt,
1630
+ symbol: Ut,
1413
1631
  // A Symbol polyfill will return `Symbol` not `symbol` from typedetect
1414
- Symbol: kt,
1415
- Array: ie,
1416
- Date: ce,
1417
- Map: ue,
1418
- Set: ae,
1419
- RegExp: le,
1420
- Promise: mn,
1632
+ Symbol: Ut,
1633
+ Array: le,
1634
+ Date: ae,
1635
+ Map: fe,
1636
+ Set: pe,
1637
+ RegExp: me,
1638
+ Promise: Cn,
1421
1639
  // WeakSet, WeakMap are totally opaque to us
1422
1640
  WeakSet: /* @__PURE__ */ c((t, e) => e.stylize("WeakSet{\u2026}", "special"), "WeakSet"),
1423
1641
  WeakMap: /* @__PURE__ */ c((t, e) => e.stylize("WeakMap{\u2026}", "special"), "WeakMap"),
1424
- Arguments: pe,
1425
- Int8Array: et,
1426
- Uint8Array: et,
1427
- Uint8ClampedArray: et,
1428
- Int16Array: et,
1429
- Uint16Array: et,
1430
- Int32Array: et,
1431
- Uint32Array: et,
1432
- Float32Array: et,
1433
- Float64Array: et,
1642
+ Arguments: ye,
1643
+ Int8Array: rt,
1644
+ Uint8Array: rt,
1645
+ Uint8ClampedArray: rt,
1646
+ Int16Array: rt,
1647
+ Uint16Array: rt,
1648
+ Int32Array: rt,
1649
+ Uint32Array: rt,
1650
+ Float32Array: rt,
1651
+ Float64Array: rt,
1434
1652
  Generator: /* @__PURE__ */ c(() => "", "Generator"),
1435
1653
  DataView: /* @__PURE__ */ c(() => "", "DataView"),
1436
1654
  ArrayBuffer: /* @__PURE__ */ c(() => "", "ArrayBuffer"),
1437
- Error: ge,
1438
- HTMLCollection: Bt,
1439
- NodeList: Bt
1440
- }, Fo = /* @__PURE__ */ c((t, e, n) => he in t && typeof t[he] == "function" ? t[he](e) : dt && dt in t && typeof t[dt] == "function" ? t[dt](
1441
- e.depth, e) : "inspect" in t && typeof t.inspect == "function" ? t.inspect(e.depth, e) : "constructor" in t && pn.has(t.constructor) ? pn.get(
1442
- t.constructor)(t, e) : gn[n] ? gn[n](t, e) : "", "inspectCustom"), ko = Object.prototype.toString;
1443
- function Ut(t, e = {}) {
1444
- let n = ln(e, Ut), { customInspect: r } = n, o = t === null ? "null" : typeof t;
1445
- if (o === "object" && (o = ko.call(t).slice(8, -1)), o in hn)
1446
- return hn[o](t, n);
1655
+ Error: de,
1656
+ HTMLCollection: Wt,
1657
+ NodeList: Wt
1658
+ }, rs = /* @__PURE__ */ c((t, e, n) => be in t && typeof t[be] == "function" ? t[be](e) : St && St in t && typeof t[St] == "function" ? t[St](
1659
+ e.depth, e) : "inspect" in t && typeof t.inspect == "function" ? t.inspect(e.depth, e) : "constructor" in t && Tn.has(t.constructor) ? Tn.get(
1660
+ t.constructor)(t, e) : On[n] ? On[n](t, e) : "", "inspectCustom"), os = Object.prototype.toString;
1661
+ function qt(t, e = {}) {
1662
+ let n = Sn(e, qt), { customInspect: r } = n, o = t === null ? "null" : typeof t;
1663
+ if (o === "object" && (o = os.call(t).slice(8, -1)), o in $n)
1664
+ return $n[o](t, n);
1447
1665
  if (r && t) {
1448
- let i = Fo(t, n, o);
1666
+ let i = rs(t, n, o);
1449
1667
  if (i)
1450
- return typeof i == "string" ? i : Ut(i, n);
1668
+ return typeof i == "string" ? i : qt(i, n);
1451
1669
  }
1452
1670
  let s = t ? Object.getPrototypeOf(t) : !1;
1453
- return s === Object.prototype || s === null ? ft(t, n) : t && typeof HTMLElement == "function" && t instanceof HTMLElement ? zt(t, n) : "c\
1454
- onstructor" in t ? t.constructor !== Object ? me(t, n) : ft(t, n) : t === Object(t) ? ft(t, n) : n.stylize(String(t), o);
1671
+ return s === Object.prototype || s === null ? pt(t, n) : t && typeof HTMLElement == "function" && t instanceof HTMLElement ? Vt(t, n) : "c\
1672
+ onstructor" in t ? t.constructor !== Object ? he(t, n) : pt(t, n) : t === Object(t) ? pt(t, n) : n.stylize(String(t), o);
1455
1673
  }
1456
- c(Ut, "inspect");
1674
+ c(qt, "inspect");
1457
1675
 
1458
1676
  // ../node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
1459
1677
  var {
1460
- AsymmetricMatcher: zo,
1461
- DOMCollection: Uo,
1462
- DOMElement: Yo,
1463
- Immutable: Wo,
1464
- ReactElement: Vo,
1465
- ReactTestComponent: Ko
1466
- } = Lt, yn = [
1467
- Ko,
1468
- Vo,
1469
- Yo,
1470
- Uo,
1471
- Wo,
1472
- zo
1678
+ AsymmetricMatcher: is,
1679
+ DOMCollection: cs,
1680
+ DOMElement: us,
1681
+ Immutable: ls,
1682
+ ReactElement: as,
1683
+ ReactTestComponent: fs
1684
+ } = $t, wn = [
1685
+ fs,
1686
+ as,
1687
+ us,
1688
+ cs,
1689
+ ls,
1690
+ is
1473
1691
  ];
1474
- function mt(t, e = 10, { maxLength: n, ...r } = {}) {
1692
+ function gt(t, e = 10, { maxLength: n, ...r } = {}) {
1475
1693
  let o = n ?? 1e4, s;
1476
1694
  try {
1477
- s = Z(t, {
1695
+ s = v(t, {
1478
1696
  maxDepth: e,
1479
1697
  escapeString: !1,
1480
1698
  // min: true,
1481
- plugins: yn,
1699
+ plugins: wn,
1482
1700
  ...r
1483
1701
  });
1484
1702
  } catch {
1485
- s = Z(t, {
1703
+ s = v(t, {
1486
1704
  callToJSON: !1,
1487
1705
  maxDepth: e,
1488
1706
  escapeString: !1,
1489
1707
  // min: true,
1490
- plugins: yn,
1708
+ plugins: wn,
1491
1709
  ...r
1492
1710
  });
1493
1711
  }
1494
- return s.length >= o && e > 1 ? mt(t, Math.floor(e / 2)) : s;
1712
+ return s.length >= o && e > 1 ? gt(t, Math.floor(Math.min(e, Number.MAX_SAFE_INTEGER) / 2), { maxLength: n, ...r }) : s;
1495
1713
  }
1496
- c(mt, "stringify");
1497
- var qo = /%[sdjifoOc%]/g;
1498
- function dn(...t) {
1714
+ c(gt, "stringify");
1715
+ var ms = /%[sdjifoOc%]/g;
1716
+ function An(...t) {
1499
1717
  if (typeof t[0] != "string") {
1500
1718
  let s = [];
1501
1719
  for (let i = 0; i < t.length; i++)
1502
- s.push(Ot(t[i], { depth: 0, colors: !1 }));
1720
+ s.push(wt(t[i], { depth: 0, colors: !1 }));
1503
1721
  return s.join(" ");
1504
1722
  }
1505
- let e = t.length, n = 1, r = t[0], o = String(r).replace(qo, (s) => {
1723
+ let e = t.length, n = 1, r = t[0], o = String(r).replace(ms, (s) => {
1506
1724
  if (s === "%%")
1507
1725
  return "%";
1508
1726
  if (n >= e)
@@ -1511,7 +1729,8 @@ function dn(...t) {
1511
1729
  case "%s": {
1512
1730
  let i = t[n++];
1513
1731
  return typeof i == "bigint" ? `${i.toString()}n` : typeof i == "number" && i === 0 && 1 / i < 0 ? "-0" : typeof i == "object" && i !==
1514
- null ? Ot(i, { depth: 0, colors: !1 }) : String(i);
1732
+ null ? typeof i.toString == "function" && i.toString !== Object.prototype.toString ? i.toString() : wt(i, { depth: 0, colors: !1 }) :
1733
+ String(i);
1515
1734
  }
1516
1735
  case "%d": {
1517
1736
  let i = t[n++];
@@ -1524,19 +1743,19 @@ function dn(...t) {
1524
1743
  case "%f":
1525
1744
  return Number.parseFloat(String(t[n++])).toString();
1526
1745
  case "%o":
1527
- return Ot(t[n++], { showHidden: !0, showProxy: !0 });
1746
+ return wt(t[n++], { showHidden: !0, showProxy: !0 });
1528
1747
  case "%O":
1529
- return Ot(t[n++]);
1748
+ return wt(t[n++]);
1530
1749
  case "%c":
1531
1750
  return n++, "";
1532
1751
  case "%j":
1533
1752
  try {
1534
1753
  return JSON.stringify(t[n++]);
1535
1754
  } catch (i) {
1536
- let l = i.message;
1755
+ let a = i.message;
1537
1756
  if (
1538
1757
  // chromium
1539
- l.includes("circular structure") || l.includes("cyclic structures") || l.includes("cyclic object")
1758
+ a.includes("circular structure") || a.includes("cyclic structures") || a.includes("cyclic object")
1540
1759
  )
1541
1760
  return "[Circular]";
1542
1761
  throw i;
@@ -1546,117 +1765,83 @@ function dn(...t) {
1546
1765
  }
1547
1766
  });
1548
1767
  for (let s = t[n]; n < e; s = t[++n])
1549
- s === null || typeof s != "object" ? o += ` ${s}` : o += ` ${Ot(s)}`;
1768
+ s === null || typeof s != "object" ? o += ` ${s}` : o += ` ${wt(s)}`;
1550
1769
  return o;
1551
1770
  }
1552
- c(dn, "format");
1553
- function Ot(t, e = {}) {
1554
- return e.truncate === 0 && (e.truncate = Number.POSITIVE_INFINITY), Ut(t, e);
1771
+ c(An, "format");
1772
+ function wt(t, e = {}) {
1773
+ return e.truncate === 0 && (e.truncate = Number.POSITIVE_INFINITY), qt(t, e);
1555
1774
  }
1556
- c(Ot, "inspect");
1557
- function bn(t) {
1775
+ c(wt, "inspect");
1776
+ function Rn(t) {
1558
1777
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1559
1778
  }
1560
- c(bn, "getDefaultExportFromCjs");
1779
+ c(Rn, "getDefaultExportFromCjs");
1561
1780
 
1562
1781
  // ../node_modules/@vitest/utils/dist/helpers.js
1563
- function Go(t) {
1782
+ function ps(t) {
1564
1783
  return t === Object.prototype || t === Function.prototype || t === RegExp.prototype;
1565
1784
  }
1566
- c(Go, "isFinalObj");
1567
- function Yt(t) {
1785
+ c(ps, "isFinalObj");
1786
+ function Kt(t) {
1568
1787
  return Object.prototype.toString.apply(t).slice(8, -1);
1569
1788
  }
1570
- c(Yt, "getType");
1571
- function Ho(t, e) {
1789
+ c(Kt, "getType");
1790
+ function gs(t, e) {
1572
1791
  let n = typeof e == "function" ? e : (r) => e.add(r);
1573
1792
  Object.getOwnPropertyNames(t).forEach(n), Object.getOwnPropertySymbols(t).forEach(n);
1574
1793
  }
1575
- c(Ho, "collectOwnProperties");
1576
- function de(t) {
1794
+ c(gs, "collectOwnProperties");
1795
+ function Ee(t) {
1577
1796
  let e = /* @__PURE__ */ new Set();
1578
- return Go(t) ? [] : (Ho(t, e), Array.from(e));
1797
+ return ps(t) ? [] : (gs(t, e), Array.from(e));
1579
1798
  }
1580
- c(de, "getOwnProperties");
1581
- var Sn = { forceWritable: !1 };
1582
- function be(t, e = Sn) {
1583
- return ye(t, /* @__PURE__ */ new WeakMap(), e);
1799
+ c(Ee, "getOwnProperties");
1800
+ var Nn = { forceWritable: !1 };
1801
+ function _e(t, e = Nn) {
1802
+ return Se(t, /* @__PURE__ */ new WeakMap(), e);
1584
1803
  }
1585
- c(be, "deepClone");
1586
- function ye(t, e, n = Sn) {
1804
+ c(_e, "deepClone");
1805
+ function Se(t, e, n = Nn) {
1587
1806
  let r, o;
1588
1807
  if (e.has(t))
1589
1808
  return e.get(t);
1590
1809
  if (Array.isArray(t)) {
1591
1810
  for (o = Array.from({ length: r = t.length }), e.set(t, o); r--; )
1592
- o[r] = ye(t[r], e, n);
1811
+ o[r] = Se(t[r], e, n);
1593
1812
  return o;
1594
1813
  }
1595
1814
  if (Object.prototype.toString.call(t) === "[object Object]") {
1596
1815
  o = Object.create(Object.getPrototypeOf(t)), e.set(t, o);
1597
- let s = de(t);
1816
+ let s = Ee(t);
1598
1817
  for (let i of s) {
1599
- let l = Object.getOwnPropertyDescriptor(t, i);
1600
- if (!l)
1818
+ let a = Object.getOwnPropertyDescriptor(t, i);
1819
+ if (!a)
1601
1820
  continue;
1602
- let u = ye(t[i], e, n);
1821
+ let l = Se(t[i], e, n);
1603
1822
  n.forceWritable ? Object.defineProperty(o, i, {
1604
- enumerable: l.enumerable,
1823
+ enumerable: a.enumerable,
1605
1824
  configurable: !0,
1606
1825
  writable: !0,
1607
- value: u
1608
- }) : "get" in l ? Object.defineProperty(o, i, {
1609
- ...l,
1826
+ value: l
1827
+ }) : "get" in a ? Object.defineProperty(o, i, {
1828
+ ...a,
1610
1829
  get() {
1611
- return u;
1830
+ return l;
1612
1831
  }
1613
1832
  }) : Object.defineProperty(o, i, {
1614
- ...l,
1615
- value: u
1833
+ ...a,
1834
+ value: l
1616
1835
  });
1617
1836
  }
1618
1837
  return o;
1619
1838
  }
1620
1839
  return t;
1621
1840
  }
1622
- c(ye, "clone");
1841
+ c(Se, "clone");
1623
1842
 
1624
1843
  // ../node_modules/@vitest/utils/dist/diff.js
1625
- function _n(t) {
1626
- if (t === void 0)
1627
- return "undefined";
1628
- if (t === null)
1629
- return "null";
1630
- if (Array.isArray(t))
1631
- return "array";
1632
- if (typeof t == "boolean")
1633
- return "boolean";
1634
- if (typeof t == "function")
1635
- return "function";
1636
- if (typeof t == "number")
1637
- return "number";
1638
- if (typeof t == "string")
1639
- return "string";
1640
- if (typeof t == "bigint")
1641
- return "bigint";
1642
- if (typeof t == "object") {
1643
- if (t != null) {
1644
- if (t.constructor === RegExp)
1645
- return "regexp";
1646
- if (t.constructor === Map)
1647
- return "map";
1648
- if (t.constructor === Set)
1649
- return "set";
1650
- if (t.constructor === Date)
1651
- return "date";
1652
- }
1653
- return "object";
1654
- } else if (typeof t == "symbol")
1655
- return "symbol";
1656
- throw new Error(`value of unknown type: ${t}`);
1657
- }
1658
- c(_n, "getType");
1659
- var z = -1, F = 1, M = 0, I = class {
1844
+ var U = -1, k = 1, x = 0, I = class {
1660
1845
  static {
1661
1846
  c(this, "Diff");
1662
1847
  }
@@ -1665,14 +1850,17 @@ var z = -1, F = 1, M = 0, I = class {
1665
1850
  constructor(e, n) {
1666
1851
  this[0] = e, this[1] = n;
1667
1852
  }
1668
- }, Jo = /* @__PURE__ */ c(function(t, e) {
1853
+ };
1854
+ function hs(t, e) {
1669
1855
  if (!t || !e || t.charAt(0) !== e.charAt(0))
1670
1856
  return 0;
1671
1857
  let n = 0, r = Math.min(t.length, e.length), o = r, s = 0;
1672
1858
  for (; n < o; )
1673
1859
  t.substring(s, o) === e.substring(s, o) ? (n = o, s = n) : r = o, o = Math.floor((r - n) / 2 + n);
1674
1860
  return o;
1675
- }, "diff_commonPrefix"), jn = /* @__PURE__ */ c(function(t, e) {
1861
+ }
1862
+ c(hs, "diff_commonPrefix");
1863
+ function qn(t, e) {
1676
1864
  if (!t || !e || t.charAt(t.length - 1) !== e.charAt(e.length - 1))
1677
1865
  return 0;
1678
1866
  let n = 0, r = Math.min(t.length, e.length), o = r, s = 0;
@@ -1680,7 +1868,9 @@ var z = -1, F = 1, M = 0, I = class {
1680
1868
  t.substring(t.length - o, t.length - s) === e.substring(e.length - o, e.length - s) ? (n = o, s = n) : r = o, o = Math.floor((r - n) / 2 +
1681
1869
  n);
1682
1870
  return o;
1683
- }, "diff_commonSuffix"), En = /* @__PURE__ */ c(function(t, e) {
1871
+ }
1872
+ c(qn, "diff_commonSuffix");
1873
+ function Pn(t, e) {
1684
1874
  let n = t.length, r = e.length;
1685
1875
  if (n === 0 || r === 0)
1686
1876
  return 0;
@@ -1690,391 +1880,395 @@ var z = -1, F = 1, M = 0, I = class {
1690
1880
  return o;
1691
1881
  let s = 0, i = 1;
1692
1882
  for (; ; ) {
1693
- let l = t.substring(o - i), u = e.indexOf(l);
1694
- if (u === -1)
1883
+ let a = t.substring(o - i), l = e.indexOf(a);
1884
+ if (l === -1)
1695
1885
  return s;
1696
- i += u, (u === 0 || t.substring(o - i) === e.substring(0, i)) && (s = i, i++);
1886
+ i += l, (l === 0 || t.substring(o - i) === e.substring(0, i)) && (s = i, i++);
1697
1887
  }
1698
- }, "diff_commonOverlap_"), Xo = /* @__PURE__ */ c(function(t) {
1699
- let e = !1, n = [], r = 0, o = null, s = 0, i = 0, l = 0, u = 0, f = 0;
1888
+ }
1889
+ c(Pn, "diff_commonOverlap_");
1890
+ function ys(t) {
1891
+ let e = !1, n = [], r = 0, o = null, s = 0, i = 0, a = 0, l = 0, m = 0;
1700
1892
  for (; s < t.length; )
1701
- t[s][0] === M ? (n[r++] = s, i = u, l = f, u = 0, f = 0, o = t[s][1]) : (t[s][0] === F ? u += t[s][1].length : f += t[s][1].length, o &&
1702
- o.length <= Math.max(i, l) && o.length <= Math.max(u, f) && (t.splice(
1893
+ t[s][0] === x ? (n[r++] = s, i = l, a = m, l = 0, m = 0, o = t[s][1]) : (t[s][0] === k ? l += t[s][1].length : m += t[s][1].length, o &&
1894
+ o.length <= Math.max(i, a) && o.length <= Math.max(l, m) && (t.splice(
1703
1895
  n[r - 1],
1704
1896
  0,
1705
- new I(z, o)
1706
- ), t[n[r - 1] + 1][0] = F, r--, r--, s = r > 0 ? n[r - 1] : -1, i = 0, l = 0, u = 0, f = 0, o = null, e = !0)), s++;
1707
- for (e && Dn(t), vo(t), s = 1; s < t.length; ) {
1708
- if (t[s - 1][0] === z && t[s][0] === F) {
1709
- let m = t[s - 1][1], a = t[s][1], S = En(m, a), g = En(a, m);
1710
- S >= g ? (S >= m.length / 2 || S >= a.length / 2) && (t.splice(
1897
+ new I(U, o)
1898
+ ), t[n[r - 1] + 1][0] = k, r--, r--, s = r > 0 ? n[r - 1] : -1, i = 0, a = 0, l = 0, m = 0, o = null, e = !0)), s++;
1899
+ for (e && Kn(t), Ss(t), s = 1; s < t.length; ) {
1900
+ if (t[s - 1][0] === U && t[s][0] === k) {
1901
+ let p = t[s - 1][1], f = t[s][1], S = Pn(p, f), y = Pn(f, p);
1902
+ S >= y ? (S >= p.length / 2 || S >= f.length / 2) && (t.splice(
1711
1903
  s,
1712
1904
  0,
1713
- new I(M, a.substring(0, S))
1714
- ), t[s - 1][1] = m.substring(
1905
+ new I(x, f.substring(0, S))
1906
+ ), t[s - 1][1] = p.substring(
1715
1907
  0,
1716
- m.length - S
1717
- ), t[s + 1][1] = a.substring(S), s++) : (g >= m.length / 2 || g >= a.length / 2) && (t.splice(
1908
+ p.length - S
1909
+ ), t[s + 1][1] = f.substring(S), s++) : (y >= p.length / 2 || y >= f.length / 2) && (t.splice(
1718
1910
  s,
1719
1911
  0,
1720
- new I(M, m.substring(0, g))
1721
- ), t[s - 1][0] = F, t[s - 1][1] = a.substring(
1912
+ new I(x, p.substring(0, y))
1913
+ ), t[s - 1][0] = k, t[s - 1][1] = f.substring(
1722
1914
  0,
1723
- a.length - g
1724
- ), t[s + 1][0] = z, t[s + 1][1] = m.substring(g), s++), s++;
1915
+ f.length - y
1916
+ ), t[s + 1][0] = U, t[s + 1][1] = p.substring(y), s++), s++;
1725
1917
  }
1726
1918
  s++;
1727
1919
  }
1728
- }, "diff_cleanupSemantic"), On = /[^a-z0-9]/i, Cn = /\s/, wn = /[\r\n]/, Zo = /\n\r?\n$/, Qo = /^\r?\n\r?\n/;
1729
- function vo(t) {
1920
+ }
1921
+ c(ys, "diff_cleanupSemantic");
1922
+ var In = /[^a-z0-9]/i, Mn = /\s/, Ln = /[\r\n]/, ds = /\n\r?\n$/, bs = /^\r?\n\r?\n/;
1923
+ function Ss(t) {
1730
1924
  let e = 1;
1731
1925
  for (; e < t.length - 1; ) {
1732
- if (t[e - 1][0] === M && t[e + 1][0] === M) {
1733
- let n = t[e - 1][1], r = t[e][1], o = t[e + 1][1], s = jn(n, r);
1926
+ if (t[e - 1][0] === x && t[e + 1][0] === x) {
1927
+ let n = t[e - 1][1], r = t[e][1], o = t[e + 1][1], s = qn(n, r);
1734
1928
  if (s) {
1735
- let m = r.substring(r.length - s);
1736
- n = n.substring(0, n.length - s), r = m + r.substring(0, r.length - s), o = m + o;
1929
+ let p = r.substring(r.length - s);
1930
+ n = n.substring(0, n.length - s), r = p + r.substring(0, r.length - s), o = p + o;
1737
1931
  }
1738
- let i = n, l = r, u = o, f = Wt(n, r) + Wt(r, o);
1932
+ let i = n, a = r, l = o, m = Gt(n, r) + Gt(r, o);
1739
1933
  for (; r.charAt(0) === o.charAt(0); ) {
1740
1934
  n += r.charAt(0), r = r.substring(1) + o.charAt(0), o = o.substring(1);
1741
- let m = Wt(n, r) + Wt(r, o);
1742
- m >= f && (f = m, i = n, l = r, u = o);
1935
+ let p = Gt(n, r) + Gt(r, o);
1936
+ p >= m && (m = p, i = n, a = r, l = o);
1743
1937
  }
1744
- t[e - 1][1] !== i && (i ? t[e - 1][1] = i : (t.splice(e - 1, 1), e--), t[e][1] = l, u ? t[e + 1][1] = u : (t.splice(e + 1, 1), e--));
1938
+ t[e - 1][1] !== i && (i ? t[e - 1][1] = i : (t.splice(e - 1, 1), e--), t[e][1] = a, l ? t[e + 1][1] = l : (t.splice(e + 1, 1), e--));
1745
1939
  }
1746
1940
  e++;
1747
1941
  }
1748
1942
  }
1749
- c(vo, "diff_cleanupSemanticLossless");
1750
- function Dn(t) {
1751
- t.push(new I(M, ""));
1943
+ c(Ss, "diff_cleanupSemanticLossless");
1944
+ function Kn(t) {
1945
+ t.push(new I(x, ""));
1752
1946
  let e = 0, n = 0, r = 0, o = "", s = "", i;
1753
1947
  for (; e < t.length; )
1754
1948
  switch (t[e][0]) {
1755
- case F:
1949
+ case k:
1756
1950
  r++, s += t[e][1], e++;
1757
1951
  break;
1758
- case z:
1952
+ case U:
1759
1953
  n++, o += t[e][1], e++;
1760
1954
  break;
1761
- case M:
1762
- n + r > 1 ? (n !== 0 && r !== 0 && (i = Jo(s, o), i !== 0 && (e - n - r > 0 && t[e - n - r - 1][0] === M ? t[e - n - r - 1][1] += s.
1955
+ case x:
1956
+ n + r > 1 ? (n !== 0 && r !== 0 && (i = hs(s, o), i !== 0 && (e - n - r > 0 && t[e - n - r - 1][0] === x ? t[e - n - r - 1][1] += s.
1763
1957
  substring(0, i) : (t.splice(
1764
1958
  0,
1765
1959
  0,
1766
- new I(M, s.substring(0, i))
1767
- ), e++), s = s.substring(i), o = o.substring(i)), i = jn(s, o), i !== 0 && (t[e][1] = s.substring(s.length - i) + t[e][1], s = s.substring(
1960
+ new I(x, s.substring(0, i))
1961
+ ), e++), s = s.substring(i), o = o.substring(i)), i = qn(s, o), i !== 0 && (t[e][1] = s.substring(s.length - i) + t[e][1], s = s.substring(
1768
1962
  0,
1769
1963
  s.length - i
1770
1964
  ), o = o.substring(
1771
1965
  0,
1772
1966
  o.length - i
1773
- ))), e -= n + r, t.splice(e, n + r), o.length && (t.splice(e, 0, new I(z, o)), e++), s.length && (t.splice(e, 0, new I(F, s)), e++),
1774
- e++) : e !== 0 && t[e - 1][0] === M ? (t[e - 1][1] += t[e][1], t.splice(e, 1)) : e++, r = 0, n = 0, o = "", s = "";
1967
+ ))), e -= n + r, t.splice(e, n + r), o.length && (t.splice(e, 0, new I(U, o)), e++), s.length && (t.splice(e, 0, new I(k, s)), e++),
1968
+ e++) : e !== 0 && t[e - 1][0] === x ? (t[e - 1][1] += t[e][1], t.splice(e, 1)) : e++, r = 0, n = 0, o = "", s = "";
1775
1969
  break;
1776
1970
  }
1777
1971
  t[t.length - 1][1] === "" && t.pop();
1778
- let l = !1;
1972
+ let a = !1;
1779
1973
  for (e = 1; e < t.length - 1; )
1780
- t[e - 1][0] === M && t[e + 1][0] === M && (t[e][1].substring(
1974
+ t[e - 1][0] === x && t[e + 1][0] === x && (t[e][1].substring(
1781
1975
  t[e][1].length - t[e - 1][1].length
1782
1976
  ) === t[e - 1][1] ? (t[e][1] = t[e - 1][1] + t[e][1].substring(
1783
1977
  0,
1784
1978
  t[e][1].length - t[e - 1][1].length
1785
- ), t[e + 1][1] = t[e - 1][1] + t[e + 1][1], t.splice(e - 1, 1), l = !0) : t[e][1].substring(0, t[e + 1][1].length) === t[e + 1][1] && (t[e -
1786
- 1][1] += t[e + 1][1], t[e][1] = t[e][1].substring(t[e + 1][1].length) + t[e + 1][1], t.splice(e + 1, 1), l = !0)), e++;
1787
- l && Dn(t);
1979
+ ), t[e + 1][1] = t[e - 1][1] + t[e + 1][1], t.splice(e - 1, 1), a = !0) : t[e][1].substring(0, t[e + 1][1].length) === t[e + 1][1] && (t[e -
1980
+ 1][1] += t[e + 1][1], t[e][1] = t[e][1].substring(t[e + 1][1].length) + t[e + 1][1], t.splice(e + 1, 1), a = !0)), e++;
1981
+ a && Kn(t);
1788
1982
  }
1789
- c(Dn, "diff_cleanupMerge");
1790
- function Wt(t, e) {
1983
+ c(Kn, "diff_cleanupMerge");
1984
+ function Gt(t, e) {
1791
1985
  if (!t || !e)
1792
1986
  return 6;
1793
- let n = t.charAt(t.length - 1), r = e.charAt(0), o = n.match(On), s = r.match(On), i = o && n.match(Cn), l = s && r.match(Cn), u = i && n.
1794
- match(wn), f = l && r.match(wn), m = u && t.match(Zo), a = f && e.match(Qo);
1795
- return m || a ? 5 : u || f ? 4 : o && !i && l ? 3 : i || l ? 2 : o || s ? 1 : 0;
1796
- }
1797
- c(Wt, "diff_cleanupSemanticScore_");
1798
- var Fn = "Compared values have no visual difference.", ts = "Compared values serialize to the same structure.\nPrinting internal object struc\
1799
- ture without calling `toJSON` instead.", Vt = {}, $n;
1800
- function es() {
1801
- if ($n) return Vt;
1802
- $n = 1, Object.defineProperty(Vt, "__esModule", {
1987
+ let n = t.charAt(t.length - 1), r = e.charAt(0), o = n.match(In), s = r.match(In), i = o && n.match(Mn), a = s && r.match(Mn), l = i && n.
1988
+ match(Ln), m = a && r.match(Ln), p = l && t.match(ds), f = m && e.match(bs);
1989
+ return p || f ? 5 : l || m ? 4 : o && !i && a ? 3 : i || a ? 2 : o || s ? 1 : 0;
1990
+ }
1991
+ c(Gt, "diff_cleanupSemanticScore_");
1992
+ var Gn = "Compared values have no visual difference.", Es = "Compared values serialize to the same structure.\nPrinting internal object struc\
1993
+ ture without calling `toJSON` instead.", Ht = {}, xn;
1994
+ function _s() {
1995
+ if (xn) return Ht;
1996
+ xn = 1, Object.defineProperty(Ht, "__esModule", {
1803
1997
  value: !0
1804
- }), Vt.default = S;
1805
- let t = "diff-sequences", e = 0, n = /* @__PURE__ */ c((g, h, y, p, b) => {
1806
- let E = 0;
1807
- for (; g < h && y < p && b(g, y); )
1808
- g += 1, y += 1, E += 1;
1809
- return E;
1810
- }, "countCommonItemsF"), r = /* @__PURE__ */ c((g, h, y, p, b) => {
1811
- let E = 0;
1812
- for (; g <= h && y <= p && b(h, p); )
1813
- h -= 1, p -= 1, E += 1;
1814
- return E;
1815
- }, "countCommonItemsR"), o = /* @__PURE__ */ c((g, h, y, p, b, E, $) => {
1816
- let d = 0, _ = -g, w = E[d], O = w;
1817
- E[d] += n(
1818
- w + 1,
1819
- h,
1820
- p + w - _ + 1,
1821
- y,
1998
+ }), Ht.default = S;
1999
+ let t = "diff-sequences", e = 0, n = /* @__PURE__ */ c((y, g, u, h, b) => {
2000
+ let _ = 0;
2001
+ for (; y < g && u < h && b(y, u); )
2002
+ y += 1, u += 1, _ += 1;
2003
+ return _;
2004
+ }, "countCommonItemsF"), r = /* @__PURE__ */ c((y, g, u, h, b) => {
2005
+ let _ = 0;
2006
+ for (; y <= g && u <= h && b(g, h); )
2007
+ g -= 1, h -= 1, _ += 1;
2008
+ return _;
2009
+ }, "countCommonItemsR"), o = /* @__PURE__ */ c((y, g, u, h, b, _, O) => {
2010
+ let d = 0, E = -y, $ = _[d], C = $;
2011
+ _[d] += n(
2012
+ $ + 1,
2013
+ g,
2014
+ h + $ - E + 1,
2015
+ u,
1822
2016
  b
1823
2017
  );
1824
- let N = g < $ ? g : $;
1825
- for (d += 1, _ += 2; d <= N; d += 1, _ += 2) {
1826
- if (d !== g && O < E[d])
1827
- w = E[d];
1828
- else if (w = O + 1, h <= w)
2018
+ let R = y < O ? y : O;
2019
+ for (d += 1, E += 2; d <= R; d += 1, E += 2) {
2020
+ if (d !== y && C < _[d])
2021
+ $ = _[d];
2022
+ else if ($ = C + 1, g <= $)
1829
2023
  return d - 1;
1830
- O = E[d], E[d] = w + n(w + 1, h, p + w - _ + 1, y, b);
2024
+ C = _[d], _[d] = $ + n($ + 1, g, h + $ - E + 1, u, b);
1831
2025
  }
1832
- return $;
1833
- }, "extendPathsF"), s = /* @__PURE__ */ c((g, h, y, p, b, E, $) => {
1834
- let d = 0, _ = g, w = E[d], O = w;
1835
- E[d] -= r(
1836
- h,
1837
- w - 1,
1838
- y,
1839
- p + w - _ - 1,
2026
+ return O;
2027
+ }, "extendPathsF"), s = /* @__PURE__ */ c((y, g, u, h, b, _, O) => {
2028
+ let d = 0, E = y, $ = _[d], C = $;
2029
+ _[d] -= r(
2030
+ g,
2031
+ $ - 1,
2032
+ u,
2033
+ h + $ - E - 1,
1840
2034
  b
1841
2035
  );
1842
- let N = g < $ ? g : $;
1843
- for (d += 1, _ -= 2; d <= N; d += 1, _ -= 2) {
1844
- if (d !== g && E[d] < O)
1845
- w = E[d];
1846
- else if (w = O - 1, w < h)
2036
+ let R = y < O ? y : O;
2037
+ for (d += 1, E -= 2; d <= R; d += 1, E -= 2) {
2038
+ if (d !== y && _[d] < C)
2039
+ $ = _[d];
2040
+ else if ($ = C - 1, $ < g)
1847
2041
  return d - 1;
1848
- O = E[d], E[d] = w - r(
1849
- h,
1850
- w - 1,
1851
- y,
1852
- p + w - _ - 1,
2042
+ C = _[d], _[d] = $ - r(
2043
+ g,
2044
+ $ - 1,
2045
+ u,
2046
+ h + $ - E - 1,
1853
2047
  b
1854
2048
  );
1855
2049
  }
1856
- return $;
1857
- }, "extendPathsR"), i = /* @__PURE__ */ c((g, h, y, p, b, E, $, d, _, w, O) => {
1858
- let N = p - h, G = y - h, P = b - p - G, k = -P - (g - 1), H = -P + (g - 1), Y = e, R = g < d ? g : d;
1859
- for (let L = 0, x = -g; L <= R; L += 1, x += 2) {
1860
- let J = L === 0 || L !== g && Y < $[L], D = J ? $[L] : Y, V = J ? D : D + 1, rt = N + V - x, K = n(
1861
- V + 1,
1862
- y,
1863
- rt + 1,
2050
+ return O;
2051
+ }, "extendPathsR"), i = /* @__PURE__ */ c((y, g, u, h, b, _, O, d, E, $, C) => {
2052
+ let R = h - g, J = u - g, L = b - h - J, z = -L - (y - 1), X = -L + (y - 1), V = e, M = y < d ? y : d;
2053
+ for (let F = 0, D = -y; F <= M; F += 1, D += 2) {
2054
+ let Z = F === 0 || F !== y && V < O[F], B = Z ? O[F] : V, K = Z ? B : B + 1, st = R + K - D, G = n(
2055
+ K + 1,
2056
+ u,
2057
+ st + 1,
1864
2058
  b,
1865
- E
1866
- ), q = V + K;
1867
- if (Y = $[L], $[L] = q, k <= x && x <= H) {
1868
- let st = (g - 1 - (x + P)) / 2;
1869
- if (st <= w && _[st] - 1 <= q) {
1870
- let X = N + D - (J ? x + 1 : x - 1), W = r(
2059
+ _
2060
+ ), H = K + G;
2061
+ if (V = O[F], O[F] = H, z <= D && D <= X) {
2062
+ let ct = (y - 1 - (D + L)) / 2;
2063
+ if (ct <= $ && E[ct] - 1 <= H) {
2064
+ let Q = R + B - (Z ? D + 1 : D - 1), q = r(
2065
+ g,
2066
+ B,
1871
2067
  h,
1872
- D,
1873
- p,
1874
- X,
1875
- E
1876
- ), ot = D - W, ht = X - W, ut = ot + 1, _t = ht + 1;
1877
- O.nChangePreceding = g - 1, g - 1 === ut + _t - h - p ? (O.aEndPreceding = h, O.bEndPreceding = p) : (O.aEndPreceding = ut, O.bEndPreceding =
1878
- _t), O.nCommonPreceding = W, W !== 0 && (O.aCommonPreceding = ut, O.bCommonPreceding = _t), O.nCommonFollowing = K, K !== 0 && (O.
1879
- aCommonFollowing = V + 1, O.bCommonFollowing = rt + 1);
1880
- let Ct = q + 1, wt = rt + K + 1;
1881
- return O.nChangeFollowing = g - 1, g - 1 === y + b - Ct - wt ? (O.aStartFollowing = y, O.bStartFollowing = b) : (O.aStartFollowing =
1882
- Ct, O.bStartFollowing = wt), !0;
2068
+ Q,
2069
+ _
2070
+ ), it = B - q, dt = Q - q, at = it + 1, Ct = dt + 1;
2071
+ C.nChangePreceding = y - 1, y - 1 === at + Ct - g - h ? (C.aEndPreceding = g, C.bEndPreceding = h) : (C.aEndPreceding = at, C.bEndPreceding =
2072
+ Ct), C.nCommonPreceding = q, q !== 0 && (C.aCommonPreceding = at, C.bCommonPreceding = Ct), C.nCommonFollowing = G, G !== 0 && (C.
2073
+ aCommonFollowing = K + 1, C.bCommonFollowing = st + 1);
2074
+ let At = H + 1, Rt = st + G + 1;
2075
+ return C.nChangeFollowing = y - 1, y - 1 === u + b - At - Rt ? (C.aStartFollowing = u, C.bStartFollowing = b) : (C.aStartFollowing =
2076
+ At, C.bStartFollowing = Rt), !0;
1883
2077
  }
1884
2078
  }
1885
2079
  }
1886
2080
  return !1;
1887
- }, "extendOverlappablePathsF"), l = /* @__PURE__ */ c((g, h, y, p, b, E, $, d, _, w, O) => {
1888
- let N = b - y, G = y - h, P = b - p - G, k = P - g, H = P + g, Y = e, R = g < w ? g : w;
1889
- for (let L = 0, x = g; L <= R; L += 1, x -= 2) {
1890
- let J = L === 0 || L !== g && _[L] < Y, D = J ? _[L] : Y, V = J ? D : D - 1, rt = N + V - x, K = r(
2081
+ }, "extendOverlappablePathsF"), a = /* @__PURE__ */ c((y, g, u, h, b, _, O, d, E, $, C) => {
2082
+ let R = b - u, J = u - g, L = b - h - J, z = L - y, X = L + y, V = e, M = y < $ ? y : $;
2083
+ for (let F = 0, D = y; F <= M; F += 1, D -= 2) {
2084
+ let Z = F === 0 || F !== y && E[F] < V, B = Z ? E[F] : V, K = Z ? B : B - 1, st = R + K - D, G = r(
2085
+ g,
2086
+ K - 1,
1891
2087
  h,
1892
- V - 1,
1893
- p,
1894
- rt - 1,
1895
- E
1896
- ), q = V - K;
1897
- if (Y = _[L], _[L] = q, k <= x && x <= H) {
1898
- let st = (g + (x - P)) / 2;
1899
- if (st <= d && q - 1 <= $[st]) {
1900
- let X = rt - K;
1901
- if (O.nChangePreceding = g, g === q + X - h - p ? (O.aEndPreceding = h, O.bEndPreceding = p) : (O.aEndPreceding = q, O.bEndPreceding =
1902
- X), O.nCommonPreceding = K, K !== 0 && (O.aCommonPreceding = q, O.bCommonPreceding = X), O.nChangeFollowing = g - 1, g === 1)
1903
- O.nCommonFollowing = 0, O.aStartFollowing = y, O.bStartFollowing = b;
2088
+ st - 1,
2089
+ _
2090
+ ), H = K - G;
2091
+ if (V = E[F], E[F] = H, z <= D && D <= X) {
2092
+ let ct = (y + (D - L)) / 2;
2093
+ if (ct <= d && H - 1 <= O[ct]) {
2094
+ let Q = st - G;
2095
+ if (C.nChangePreceding = y, y === H + Q - g - h ? (C.aEndPreceding = g, C.bEndPreceding = h) : (C.aEndPreceding = H, C.bEndPreceding =
2096
+ Q), C.nCommonPreceding = G, G !== 0 && (C.aCommonPreceding = H, C.bCommonPreceding = Q), C.nChangeFollowing = y - 1, y === 1)
2097
+ C.nCommonFollowing = 0, C.aStartFollowing = u, C.bStartFollowing = b;
1904
2098
  else {
1905
- let W = N + D - (J ? x - 1 : x + 1), ot = n(
1906
- D,
1907
- y,
1908
- W,
2099
+ let q = R + B - (Z ? D - 1 : D + 1), it = n(
2100
+ B,
2101
+ u,
2102
+ q,
1909
2103
  b,
1910
- E
2104
+ _
1911
2105
  );
1912
- O.nCommonFollowing = ot, ot !== 0 && (O.aCommonFollowing = D, O.bCommonFollowing = W);
1913
- let ht = D + ot, ut = W + ot;
1914
- g - 1 === y + b - ht - ut ? (O.aStartFollowing = y, O.bStartFollowing = b) : (O.aStartFollowing = ht, O.bStartFollowing = ut);
2106
+ C.nCommonFollowing = it, it !== 0 && (C.aCommonFollowing = B, C.bCommonFollowing = q);
2107
+ let dt = B + it, at = q + it;
2108
+ y - 1 === u + b - dt - at ? (C.aStartFollowing = u, C.bStartFollowing = b) : (C.aStartFollowing = dt, C.bStartFollowing = at);
1915
2109
  }
1916
2110
  return !0;
1917
2111
  }
1918
2112
  }
1919
2113
  }
1920
2114
  return !1;
1921
- }, "extendOverlappablePathsR"), u = /* @__PURE__ */ c((g, h, y, p, b, E, $, d, _) => {
1922
- let w = p - h, O = b - y, N = y - h, G = b - p, Q = G - N, P = N, k = N;
1923
- if ($[0] = h - 1, d[0] = y, Q % 2 === 0) {
1924
- let H = (g || Q) / 2, Y = (N + G) / 2;
1925
- for (let R = 1; R <= Y; R += 1)
1926
- if (P = o(R, y, b, w, E, $, P), R < H)
1927
- k = s(R, h, p, O, E, d, k);
2115
+ }, "extendOverlappablePathsR"), l = /* @__PURE__ */ c((y, g, u, h, b, _, O, d, E) => {
2116
+ let $ = h - g, C = b - u, R = u - g, J = b - h, tt = J - R, L = R, z = R;
2117
+ if (O[0] = g - 1, d[0] = u, tt % 2 === 0) {
2118
+ let X = (y || tt) / 2, V = (R + J) / 2;
2119
+ for (let M = 1; M <= V; M += 1)
2120
+ if (L = o(M, u, b, $, _, O, L), M < X)
2121
+ z = s(M, g, h, C, _, d, z);
1928
2122
  else if (
1929
2123
  // If a reverse path overlaps a forward path in the same diagonal,
1930
2124
  // return a division of the index intervals at the middle change.
1931
- l(
1932
- R,
2125
+ a(
2126
+ M,
2127
+ g,
2128
+ u,
1933
2129
  h,
1934
- y,
1935
- p,
1936
2130
  b,
1937
- E,
1938
- $,
1939
- P,
2131
+ _,
2132
+ O,
2133
+ L,
1940
2134
  d,
1941
- k,
1942
- _
2135
+ z,
2136
+ E
1943
2137
  )
1944
2138
  )
1945
2139
  return;
1946
2140
  } else {
1947
- let H = ((g || Q) + 1) / 2, Y = (N + G + 1) / 2, R = 1;
1948
- for (P = o(R, y, b, w, E, $, P), R += 1; R <= Y; R += 1)
1949
- if (k = s(
1950
- R - 1,
2141
+ let X = ((y || tt) + 1) / 2, V = (R + J + 1) / 2, M = 1;
2142
+ for (L = o(M, u, b, $, _, O, L), M += 1; M <= V; M += 1)
2143
+ if (z = s(
2144
+ M - 1,
2145
+ g,
1951
2146
  h,
1952
- p,
1953
- O,
1954
- E,
2147
+ C,
2148
+ _,
1955
2149
  d,
1956
- k
1957
- ), R < H)
1958
- P = o(R, y, b, w, E, $, P);
2150
+ z
2151
+ ), M < X)
2152
+ L = o(M, u, b, $, _, O, L);
1959
2153
  else if (
1960
2154
  // If a forward path overlaps a reverse path in the same diagonal,
1961
2155
  // return a division of the index intervals at the middle change.
1962
2156
  i(
1963
- R,
2157
+ M,
2158
+ g,
2159
+ u,
1964
2160
  h,
1965
- y,
1966
- p,
1967
2161
  b,
1968
- E,
1969
- $,
1970
- P,
2162
+ _,
2163
+ O,
2164
+ L,
1971
2165
  d,
1972
- k,
1973
- _
2166
+ z,
2167
+ E
1974
2168
  )
1975
2169
  )
1976
2170
  return;
1977
2171
  }
1978
2172
  throw new Error(
1979
- `${t}: no overlap aStart=${h} aEnd=${y} bStart=${p} bEnd=${b}`
2173
+ `${t}: no overlap aStart=${g} aEnd=${u} bStart=${h} bEnd=${b}`
1980
2174
  );
1981
- }, "divide"), f = /* @__PURE__ */ c((g, h, y, p, b, E, $, d, _, w) => {
1982
- if (b - p < y - h) {
1983
- if (E = !E, E && $.length === 1) {
1984
- let { foundSubsequence: q, isCommon: st } = $[0];
1985
- $[1] = {
1986
- foundSubsequence: /* @__PURE__ */ c((X, W, ot) => {
1987
- q(X, ot, W);
2175
+ }, "divide"), m = /* @__PURE__ */ c((y, g, u, h, b, _, O, d, E, $) => {
2176
+ if (b - h < u - g) {
2177
+ if (_ = !_, _ && O.length === 1) {
2178
+ let { foundSubsequence: H, isCommon: ct } = O[0];
2179
+ O[1] = {
2180
+ foundSubsequence: /* @__PURE__ */ c((Q, q, it) => {
2181
+ H(Q, it, q);
1988
2182
  }, "foundSubsequence"),
1989
- isCommon: /* @__PURE__ */ c((X, W) => st(W, X), "isCommon")
2183
+ isCommon: /* @__PURE__ */ c((Q, q) => ct(q, Q), "isCommon")
1990
2184
  };
1991
2185
  }
1992
- let rt = h, K = y;
1993
- h = p, y = b, p = rt, b = K;
2186
+ let st = g, G = u;
2187
+ g = h, u = b, h = st, b = G;
1994
2188
  }
1995
- let { foundSubsequence: O, isCommon: N } = $[E ? 1 : 0];
1996
- u(
2189
+ let { foundSubsequence: C, isCommon: R } = O[_ ? 1 : 0];
2190
+ l(
2191
+ y,
1997
2192
  g,
2193
+ u,
1998
2194
  h,
1999
- y,
2000
- p,
2001
2195
  b,
2002
- N,
2196
+ R,
2003
2197
  d,
2004
- _,
2005
- w
2198
+ E,
2199
+ $
2006
2200
  );
2007
2201
  let {
2008
- nChangePreceding: G,
2009
- aEndPreceding: Q,
2010
- bEndPreceding: P,
2011
- nCommonPreceding: k,
2012
- aCommonPreceding: H,
2013
- bCommonPreceding: Y,
2014
- nCommonFollowing: R,
2015
- aCommonFollowing: L,
2016
- bCommonFollowing: x,
2017
- nChangeFollowing: J,
2018
- aStartFollowing: D,
2019
- bStartFollowing: V
2020
- } = w;
2021
- h < Q && p < P && f(
2022
- G,
2202
+ nChangePreceding: J,
2203
+ aEndPreceding: tt,
2204
+ bEndPreceding: L,
2205
+ nCommonPreceding: z,
2206
+ aCommonPreceding: X,
2207
+ bCommonPreceding: V,
2208
+ nCommonFollowing: M,
2209
+ aCommonFollowing: F,
2210
+ bCommonFollowing: D,
2211
+ nChangeFollowing: Z,
2212
+ aStartFollowing: B,
2213
+ bStartFollowing: K
2214
+ } = $;
2215
+ g < tt && h < L && m(
2216
+ J,
2217
+ g,
2218
+ tt,
2023
2219
  h,
2024
- Q,
2025
- p,
2026
- P,
2027
- E,
2028
- $,
2029
- d,
2220
+ L,
2030
2221
  _,
2031
- w
2032
- ), k !== 0 && O(k, H, Y), R !== 0 && O(R, L, x), D < y && V < b && f(
2033
- J,
2034
- D,
2035
- y,
2036
- V,
2037
- b,
2038
- E,
2039
- $,
2222
+ O,
2040
2223
  d,
2224
+ E,
2225
+ $
2226
+ ), z !== 0 && C(z, X, V), M !== 0 && C(M, F, D), B < u && K < b && m(
2227
+ Z,
2228
+ B,
2229
+ u,
2230
+ K,
2231
+ b,
2041
2232
  _,
2042
- w
2233
+ O,
2234
+ d,
2235
+ E,
2236
+ $
2043
2237
  );
2044
- }, "findSubsequences"), m = /* @__PURE__ */ c((g, h) => {
2045
- if (typeof h != "number")
2046
- throw new TypeError(`${t}: ${g} typeof ${typeof h} is not a number`);
2047
- if (!Number.isSafeInteger(h))
2048
- throw new RangeError(`${t}: ${g} value ${h} is not a safe integer`);
2049
- if (h < 0)
2050
- throw new RangeError(`${t}: ${g} value ${h} is a negative integer`);
2051
- }, "validateLength"), a = /* @__PURE__ */ c((g, h) => {
2052
- let y = typeof h;
2053
- if (y !== "function")
2054
- throw new TypeError(`${t}: ${g} typeof ${y} is not a function`);
2238
+ }, "findSubsequences"), p = /* @__PURE__ */ c((y, g) => {
2239
+ if (typeof g != "number")
2240
+ throw new TypeError(`${t}: ${y} typeof ${typeof g} is not a number`);
2241
+ if (!Number.isSafeInteger(g))
2242
+ throw new RangeError(`${t}: ${y} value ${g} is not a safe integer`);
2243
+ if (g < 0)
2244
+ throw new RangeError(`${t}: ${y} value ${g} is a negative integer`);
2245
+ }, "validateLength"), f = /* @__PURE__ */ c((y, g) => {
2246
+ let u = typeof g;
2247
+ if (u !== "function")
2248
+ throw new TypeError(`${t}: ${y} typeof ${u} is not a function`);
2055
2249
  }, "validateCallback");
2056
- function S(g, h, y, p) {
2057
- m("aLength", g), m("bLength", h), a("isCommon", y), a("foundSubsequence", p);
2058
- let b = n(0, g, 0, h, y);
2059
- if (b !== 0 && p(b, 0, 0), g !== b || h !== b) {
2060
- let E = b, $ = b, d = r(
2061
- E,
2250
+ function S(y, g, u, h) {
2251
+ p("aLength", y), p("bLength", g), f("isCommon", u), f("foundSubsequence", h);
2252
+ let b = n(0, y, 0, g, u);
2253
+ if (b !== 0 && h(b, 0, 0), y !== b || g !== b) {
2254
+ let _ = b, O = b, d = r(
2255
+ _,
2256
+ y - 1,
2257
+ O,
2062
2258
  g - 1,
2063
- $,
2064
- h - 1,
2065
- y
2066
- ), _ = g - d, w = h - d, O = b + d;
2067
- g !== O && h !== O && f(
2259
+ u
2260
+ ), E = y - d, $ = g - d, C = b + d;
2261
+ y !== C && g !== C && m(
2068
2262
  0,
2069
- E,
2070
2263
  _,
2264
+ E,
2265
+ O,
2071
2266
  $,
2072
- w,
2073
2267
  !1,
2074
2268
  [
2075
2269
  {
2076
- foundSubsequence: p,
2077
- isCommon: y
2270
+ foundSubsequence: h,
2271
+ isCommon: u
2078
2272
  }
2079
2273
  ],
2080
2274
  [e],
@@ -2093,30 +2287,30 @@ function es() {
2093
2287
  nCommonFollowing: e,
2094
2288
  nCommonPreceding: e
2095
2289
  }
2096
- ), d !== 0 && p(d, _, w);
2290
+ ), d !== 0 && h(d, E, $);
2097
2291
  }
2098
2292
  }
2099
- return c(S, "diffSequence"), Vt;
2293
+ return c(S, "diffSequence"), Ht;
2100
2294
  }
2101
- c(es, "requireBuild");
2102
- var ns = es(), kn = /* @__PURE__ */ bn(ns);
2103
- function rs(t, e) {
2295
+ c(_s, "requireBuild");
2296
+ var Cs = _s(), Hn = /* @__PURE__ */ Rn(Cs);
2297
+ function Ts(t, e) {
2104
2298
  return t.replace(/\s+$/, (n) => e(n));
2105
2299
  }
2106
- c(rs, "formatTrailingSpaces");
2107
- function $e(t, e, n, r, o, s) {
2300
+ c(Ts, "formatTrailingSpaces");
2301
+ function Re(t, e, n, r, o, s) {
2108
2302
  return t.length !== 0 ? n(
2109
- `${r} ${rs(t, o)}`
2303
+ `${r} ${Ts(t, o)}`
2110
2304
  ) : r !== " " ? n(r) : e && s.length !== 0 ? n(`${r} ${s}`) : "";
2111
2305
  }
2112
- c($e, "printDiffLine");
2113
- function Bn(t, e, {
2306
+ c(Re, "printDiffLine");
2307
+ function Jn(t, e, {
2114
2308
  aColor: n,
2115
2309
  aIndicator: r,
2116
2310
  changeLineTrailingSpaceColor: o,
2117
2311
  emptyFirstOrLastLinePlaceholder: s
2118
2312
  }) {
2119
- return $e(
2313
+ return Re(
2120
2314
  t,
2121
2315
  e,
2122
2316
  n,
@@ -2125,14 +2319,14 @@ function Bn(t, e, {
2125
2319
  s
2126
2320
  );
2127
2321
  }
2128
- c(Bn, "printDeleteLine");
2129
- function zn(t, e, {
2322
+ c(Jn, "printDeleteLine");
2323
+ function Xn(t, e, {
2130
2324
  bColor: n,
2131
2325
  bIndicator: r,
2132
2326
  changeLineTrailingSpaceColor: o,
2133
2327
  emptyFirstOrLastLinePlaceholder: s
2134
2328
  }) {
2135
- return $e(
2329
+ return Re(
2136
2330
  t,
2137
2331
  e,
2138
2332
  n,
@@ -2141,14 +2335,14 @@ function zn(t, e, {
2141
2335
  s
2142
2336
  );
2143
2337
  }
2144
- c(zn, "printInsertLine");
2145
- function Un(t, e, {
2338
+ c(Xn, "printInsertLine");
2339
+ function Zn(t, e, {
2146
2340
  commonColor: n,
2147
2341
  commonIndicator: r,
2148
2342
  commonLineTrailingSpaceColor: o,
2149
2343
  emptyFirstOrLastLinePlaceholder: s
2150
2344
  }) {
2151
- return $e(
2345
+ return Re(
2152
2346
  t,
2153
2347
  e,
2154
2348
  n,
@@ -2157,167 +2351,168 @@ function Un(t, e, {
2157
2351
  s
2158
2352
  );
2159
2353
  }
2160
- c(Un, "printCommonLine");
2161
- function Tn(t, e, n, r, { patchColor: o }) {
2354
+ c(Zn, "printCommonLine");
2355
+ function Fn(t, e, n, r, { patchColor: o }) {
2162
2356
  return o(
2163
2357
  `@@ -${t + 1},${e - t} +${n + 1},${r - n} @@`
2164
2358
  );
2165
2359
  }
2166
- c(Tn, "createPatchMark");
2167
- function os(t, e) {
2168
- let n = t.length, r = e.contextLines, o = r + r, s = n, i = !1, l = 0, u = 0;
2169
- for (; u !== n; ) {
2170
- let d = u;
2171
- for (; u !== n && t[u][0] === M; )
2172
- u += 1;
2173
- if (d !== u)
2360
+ c(Fn, "createPatchMark");
2361
+ function Os(t, e) {
2362
+ let n = t.length, r = e.contextLines, o = r + r, s = n, i = !1, a = 0, l = 0;
2363
+ for (; l !== n; ) {
2364
+ let d = l;
2365
+ for (; l !== n && t[l][0] === x; )
2366
+ l += 1;
2367
+ if (d !== l)
2174
2368
  if (d === 0)
2175
- u > r && (s -= u - r, i = !0);
2176
- else if (u === n) {
2177
- let _ = u - d;
2178
- _ > r && (s -= _ - r, i = !0);
2369
+ l > r && (s -= l - r, i = !0);
2370
+ else if (l === n) {
2371
+ let E = l - d;
2372
+ E > r && (s -= E - r, i = !0);
2179
2373
  } else {
2180
- let _ = u - d;
2181
- _ > o && (s -= _ - o, l += 1);
2374
+ let E = l - d;
2375
+ E > o && (s -= E - o, a += 1);
2182
2376
  }
2183
- for (; u !== n && t[u][0] !== M; )
2184
- u += 1;
2185
- }
2186
- let f = l !== 0 || i;
2187
- l !== 0 ? s += l + 1 : i && (s += 1);
2188
- let m = s - 1, a = [], S = 0;
2189
- f && a.push("");
2190
- let g = 0, h = 0, y = 0, p = 0, b = /* @__PURE__ */ c((d) => {
2191
- let _ = a.length;
2192
- a.push(Un(d, _ === 0 || _ === m, e)), y += 1, p += 1;
2193
- }, "pushCommonLine"), E = /* @__PURE__ */ c((d) => {
2194
- let _ = a.length;
2195
- a.push(Bn(d, _ === 0 || _ === m, e)), y += 1;
2196
- }, "pushDeleteLine"), $ = /* @__PURE__ */ c((d) => {
2197
- let _ = a.length;
2198
- a.push(zn(d, _ === 0 || _ === m, e)), p += 1;
2377
+ for (; l !== n && t[l][0] !== x; )
2378
+ l += 1;
2379
+ }
2380
+ let m = a !== 0 || i;
2381
+ a !== 0 ? s += a + 1 : i && (s += 1);
2382
+ let p = s - 1, f = [], S = 0;
2383
+ m && f.push("");
2384
+ let y = 0, g = 0, u = 0, h = 0, b = /* @__PURE__ */ c((d) => {
2385
+ let E = f.length;
2386
+ f.push(Zn(d, E === 0 || E === p, e)), u += 1, h += 1;
2387
+ }, "pushCommonLine"), _ = /* @__PURE__ */ c((d) => {
2388
+ let E = f.length;
2389
+ f.push(Jn(d, E === 0 || E === p, e)), u += 1;
2390
+ }, "pushDeleteLine"), O = /* @__PURE__ */ c((d) => {
2391
+ let E = f.length;
2392
+ f.push(Xn(d, E === 0 || E === p, e)), h += 1;
2199
2393
  }, "pushInsertLine");
2200
- for (u = 0; u !== n; ) {
2201
- let d = u;
2202
- for (; u !== n && t[u][0] === M; )
2203
- u += 1;
2204
- if (d !== u)
2394
+ for (l = 0; l !== n; ) {
2395
+ let d = l;
2396
+ for (; l !== n && t[l][0] === x; )
2397
+ l += 1;
2398
+ if (d !== l)
2205
2399
  if (d === 0) {
2206
- u > r && (d = u - r, g = d, h = d, y = g, p = h);
2207
- for (let _ = d; _ !== u; _ += 1)
2208
- b(t[_][1]);
2209
- } else if (u === n) {
2210
- let _ = u - d > r ? d + r : u;
2211
- for (let w = d; w !== _; w += 1)
2212
- b(t[w][1]);
2400
+ l > r && (d = l - r, y = d, g = d, u = y, h = g);
2401
+ for (let E = d; E !== l; E += 1)
2402
+ b(t[E][1]);
2403
+ } else if (l === n) {
2404
+ let E = l - d > r ? d + r : l;
2405
+ for (let $ = d; $ !== E; $ += 1)
2406
+ b(t[$][1]);
2213
2407
  } else {
2214
- let _ = u - d;
2215
- if (_ > o) {
2216
- let w = d + r;
2217
- for (let N = d; N !== w; N += 1)
2218
- b(t[N][1]);
2219
- a[S] = Tn(
2220
- g,
2408
+ let E = l - d;
2409
+ if (E > o) {
2410
+ let $ = d + r;
2411
+ for (let R = d; R !== $; R += 1)
2412
+ b(t[R][1]);
2413
+ f[S] = Fn(
2221
2414
  y,
2415
+ u,
2416
+ g,
2222
2417
  h,
2223
- p,
2224
2418
  e
2225
- ), S = a.length, a.push("");
2226
- let O = _ - o;
2227
- g = y + O, h = p + O, y = g, p = h;
2228
- for (let N = u - r; N !== u; N += 1)
2229
- b(t[N][1]);
2419
+ ), S = f.length, f.push("");
2420
+ let C = E - o;
2421
+ y = u + C, g = h + C, u = y, h = g;
2422
+ for (let R = l - r; R !== l; R += 1)
2423
+ b(t[R][1]);
2230
2424
  } else
2231
- for (let w = d; w !== u; w += 1)
2232
- b(t[w][1]);
2425
+ for (let $ = d; $ !== l; $ += 1)
2426
+ b(t[$][1]);
2233
2427
  }
2234
- for (; u !== n && t[u][0] === z; )
2235
- E(t[u][1]), u += 1;
2236
- for (; u !== n && t[u][0] === F; )
2237
- $(t[u][1]), u += 1;
2428
+ for (; l !== n && t[l][0] === U; )
2429
+ _(t[l][1]), l += 1;
2430
+ for (; l !== n && t[l][0] === k; )
2431
+ O(t[l][1]), l += 1;
2238
2432
  }
2239
- return f && (a[S] = Tn(g, y, h, p, e)), a.join(`
2433
+ return m && (f[S] = Fn(y, u, g, h, e)), f.join(`
2240
2434
  `);
2241
2435
  }
2242
- c(os, "joinAlignedDiffsNoExpand");
2243
- function ss(t, e) {
2436
+ c(Os, "joinAlignedDiffsNoExpand");
2437
+ function $s(t, e) {
2244
2438
  return t.map((n, r, o) => {
2245
2439
  let s = n[1], i = r === 0 || r === o.length - 1;
2246
2440
  switch (n[0]) {
2247
- case z:
2248
- return Bn(s, i, e);
2249
- case F:
2250
- return zn(s, i, e);
2441
+ case U:
2442
+ return Jn(s, i, e);
2443
+ case k:
2444
+ return Xn(s, i, e);
2251
2445
  default:
2252
- return Un(s, i, e);
2446
+ return Zn(s, i, e);
2253
2447
  }
2254
2448
  }).join(`
2255
2449
  `);
2256
2450
  }
2257
- c(ss, "joinAlignedDiffsExpand");
2258
- var Se = /* @__PURE__ */ c((t) => t, "noColor"), Yn = 5, is = 0;
2259
- function cs() {
2451
+ c($s, "joinAlignedDiffsExpand");
2452
+ var Ce = /* @__PURE__ */ c((t) => t, "noColor"), Qn = 5, ws = 0;
2453
+ function As() {
2260
2454
  return {
2261
2455
  aAnnotation: "Expected",
2262
- aColor: v.green,
2456
+ aColor: et.green,
2263
2457
  aIndicator: "-",
2264
2458
  bAnnotation: "Received",
2265
- bColor: v.red,
2459
+ bColor: et.red,
2266
2460
  bIndicator: "+",
2267
- changeColor: v.inverse,
2268
- changeLineTrailingSpaceColor: Se,
2269
- commonColor: v.dim,
2461
+ changeColor: et.inverse,
2462
+ changeLineTrailingSpaceColor: Ce,
2463
+ commonColor: et.dim,
2270
2464
  commonIndicator: " ",
2271
- commonLineTrailingSpaceColor: Se,
2465
+ commonLineTrailingSpaceColor: Ce,
2272
2466
  compareKeys: void 0,
2273
- contextLines: Yn,
2467
+ contextLines: Qn,
2274
2468
  emptyFirstOrLastLinePlaceholder: "",
2275
2469
  expand: !0,
2276
2470
  includeChangeCounts: !1,
2277
2471
  omitAnnotationLines: !1,
2278
- patchColor: v.yellow,
2279
- truncateThreshold: is,
2472
+ patchColor: et.yellow,
2473
+ printBasicPrototype: !1,
2474
+ truncateThreshold: ws,
2280
2475
  truncateAnnotation: "... Diff result is truncated",
2281
- truncateAnnotationColor: Se
2476
+ truncateAnnotationColor: Ce
2282
2477
  };
2283
2478
  }
2284
- c(cs, "getDefaultOptions");
2285
- function us(t) {
2479
+ c(As, "getDefaultOptions");
2480
+ function Rs(t) {
2286
2481
  return t && typeof t == "function" ? t : void 0;
2287
2482
  }
2288
- c(us, "getCompareKeys");
2289
- function ls(t) {
2290
- return typeof t == "number" && Number.isSafeInteger(t) && t >= 0 ? t : Yn;
2483
+ c(Rs, "getCompareKeys");
2484
+ function Ns(t) {
2485
+ return typeof t == "number" && Number.isSafeInteger(t) && t >= 0 ? t : Qn;
2291
2486
  }
2292
- c(ls, "getContextLines");
2293
- function pt(t = {}) {
2487
+ c(Ns, "getContextLines");
2488
+ function ht(t = {}) {
2294
2489
  return {
2295
- ...cs(),
2490
+ ...As(),
2296
2491
  ...t,
2297
- compareKeys: us(t.compareKeys),
2298
- contextLines: ls(t.contextLines)
2492
+ compareKeys: Rs(t.compareKeys),
2493
+ contextLines: Ns(t.contextLines)
2299
2494
  };
2300
2495
  }
2301
- c(pt, "normalizeDiffOptions");
2302
- function bt(t) {
2496
+ c(ht, "normalizeDiffOptions");
2497
+ function Et(t) {
2303
2498
  return t.length === 1 && t[0].length === 0;
2304
2499
  }
2305
- c(bt, "isEmptyString");
2306
- function as(t) {
2500
+ c(Et, "isEmptyString");
2501
+ function Ps(t) {
2307
2502
  let e = 0, n = 0;
2308
2503
  return t.forEach((r) => {
2309
2504
  switch (r[0]) {
2310
- case z:
2505
+ case U:
2311
2506
  e += 1;
2312
2507
  break;
2313
- case F:
2508
+ case k:
2314
2509
  n += 1;
2315
2510
  break;
2316
2511
  }
2317
2512
  }), { a: e, b: n };
2318
2513
  }
2319
- c(as, "countChanges");
2320
- function fs({
2514
+ c(Ps, "countChanges");
2515
+ function Is({
2321
2516
  aAnnotation: t,
2322
2517
  aColor: e,
2323
2518
  aIndicator: n,
@@ -2325,114 +2520,148 @@ function fs({
2325
2520
  bColor: o,
2326
2521
  bIndicator: s,
2327
2522
  includeChangeCounts: i,
2328
- omitAnnotationLines: l
2329
- }, u) {
2330
- if (l)
2523
+ omitAnnotationLines: a
2524
+ }, l) {
2525
+ if (a)
2331
2526
  return "";
2332
- let f = "", m = "";
2527
+ let m = "", p = "";
2333
2528
  if (i) {
2334
- let g = String(u.a), h = String(u.b), y = r.length - t.length, p = " ".repeat(Math.max(0, y)), b = " ".repeat(Math.max(0, -y)), E = h.length -
2335
- g.length, $ = " ".repeat(Math.max(0, E)), d = " ".repeat(Math.max(0, -E));
2336
- f = `${p} ${n} ${$}${g}`, m = `${b} ${s} ${d}${h}`;
2529
+ let y = String(l.a), g = String(l.b), u = r.length - t.length, h = " ".repeat(Math.max(0, u)), b = " ".repeat(Math.max(0, -u)), _ = g.length -
2530
+ y.length, O = " ".repeat(Math.max(0, _)), d = " ".repeat(Math.max(0, -_));
2531
+ m = `${h} ${n} ${O}${y}`, p = `${b} ${s} ${d}${g}`;
2337
2532
  }
2338
- let a = `${n} ${t}${f}`, S = `${s} ${r}${m}`;
2339
- return `${e(a)}
2533
+ let f = `${n} ${t}${m}`, S = `${s} ${r}${p}`;
2534
+ return `${e(f)}
2340
2535
  ${o(S)}
2341
2536
 
2342
2537
  `;
2343
2538
  }
2344
- c(fs, "printAnnotation");
2345
- function Te(t, e, n) {
2346
- return fs(n, as(t)) + (n.expand ? ss(t, n) : os(t, n)) + (e ? n.truncateAnnotationColor(`
2539
+ c(Is, "printAnnotation");
2540
+ function Ne(t, e, n) {
2541
+ return Is(n, Ps(t)) + (n.expand ? $s(t, n) : Os(t, n)) + (e ? n.truncateAnnotationColor(`
2347
2542
  ${n.truncateAnnotation}`) : "");
2348
2543
  }
2349
- c(Te, "printDiffLines");
2350
- function qt(t, e, n) {
2351
- let r = pt(n), [o, s] = Wn(
2352
- bt(t) ? [] : t,
2353
- bt(e) ? [] : e,
2544
+ c(Ne, "printDiffLines");
2545
+ function Xt(t, e, n) {
2546
+ let r = ht(n), [o, s] = vn(
2547
+ Et(t) ? [] : t,
2548
+ Et(e) ? [] : e,
2354
2549
  r
2355
2550
  );
2356
- return Te(o, s, r);
2551
+ return Ne(o, s, r);
2357
2552
  }
2358
- c(qt, "diffLinesUnified");
2359
- function ms(t, e, n, r, o) {
2360
- if (bt(t) && bt(n) && (t = [], n = []), bt(e) && bt(r) && (e = [], r = []), t.length !== n.length || e.length !== r.length)
2361
- return qt(t, e, o);
2362
- let [s, i] = Wn(
2553
+ c(Xt, "diffLinesUnified");
2554
+ function Ms(t, e, n, r, o) {
2555
+ if (Et(t) && Et(n) && (t = [], n = []), Et(e) && Et(r) && (e = [], r = []), t.length !== n.length || e.length !== r.length)
2556
+ return Xt(t, e, o);
2557
+ let [s, i] = vn(
2363
2558
  n,
2364
2559
  r,
2365
2560
  o
2366
- ), l = 0, u = 0;
2367
- return s.forEach((f) => {
2368
- switch (f[0]) {
2369
- case z:
2370
- f[1] = t[l], l += 1;
2561
+ ), a = 0, l = 0;
2562
+ return s.forEach((m) => {
2563
+ switch (m[0]) {
2564
+ case U:
2565
+ m[1] = t[a], a += 1;
2371
2566
  break;
2372
- case F:
2373
- f[1] = e[u], u += 1;
2567
+ case k:
2568
+ m[1] = e[l], l += 1;
2374
2569
  break;
2375
2570
  default:
2376
- f[1] = e[u], l += 1, u += 1;
2571
+ m[1] = e[l], a += 1, l += 1;
2377
2572
  }
2378
- }), Te(s, i, pt(o));
2573
+ }), Ne(s, i, ht(o));
2379
2574
  }
2380
- c(ms, "diffLinesUnified2");
2381
- function Wn(t, e, n) {
2575
+ c(Ms, "diffLinesUnified2");
2576
+ function vn(t, e, n) {
2382
2577
  let r = n?.truncateThreshold ?? !1, o = Math.max(
2383
2578
  Math.floor(n?.truncateThreshold ?? 0),
2384
2579
  0
2385
- ), s = r ? Math.min(t.length, o) : t.length, i = r ? Math.min(e.length, o) : e.length, l = s !== t.length || i !== e.length, u = /* @__PURE__ */ c(
2386
- (g, h) => t[g] === e[h], "isCommon"), f = [], m = 0, a = 0;
2387
- for (kn(s, i, u, /* @__PURE__ */ c((g, h, y) => {
2388
- for (; m !== h; m += 1)
2389
- f.push(new I(z, t[m]));
2390
- for (; a !== y; a += 1)
2391
- f.push(new I(F, e[a]));
2392
- for (; g !== 0; g -= 1, m += 1, a += 1)
2393
- f.push(new I(M, e[a]));
2394
- }, "foundSubsequence")); m !== s; m += 1)
2395
- f.push(new I(z, t[m]));
2396
- for (; a !== i; a += 1)
2397
- f.push(new I(F, e[a]));
2398
- return [f, l];
2399
- }
2400
- c(Wn, "diffLinesRaw");
2401
- function An(t) {
2580
+ ), s = r ? Math.min(t.length, o) : t.length, i = r ? Math.min(e.length, o) : e.length, a = s !== t.length || i !== e.length, l = /* @__PURE__ */ c(
2581
+ (y, g) => t[y] === e[g], "isCommon"), m = [], p = 0, f = 0;
2582
+ for (Hn(s, i, l, /* @__PURE__ */ c((y, g, u) => {
2583
+ for (; p !== g; p += 1)
2584
+ m.push(new I(U, t[p]));
2585
+ for (; f !== u; f += 1)
2586
+ m.push(new I(k, e[f]));
2587
+ for (; y !== 0; y -= 1, p += 1, f += 1)
2588
+ m.push(new I(x, e[f]));
2589
+ }, "foundSubsequence")); p !== s; p += 1)
2590
+ m.push(new I(U, t[p]));
2591
+ for (; f !== i; f += 1)
2592
+ m.push(new I(k, e[f]));
2593
+ return [m, a];
2594
+ }
2595
+ c(vn, "diffLinesRaw");
2596
+ function Dn(t) {
2597
+ if (t === void 0)
2598
+ return "undefined";
2599
+ if (t === null)
2600
+ return "null";
2601
+ if (Array.isArray(t))
2602
+ return "array";
2603
+ if (typeof t == "boolean")
2604
+ return "boolean";
2605
+ if (typeof t == "function")
2606
+ return "function";
2607
+ if (typeof t == "number")
2608
+ return "number";
2609
+ if (typeof t == "string")
2610
+ return "string";
2611
+ if (typeof t == "bigint")
2612
+ return "bigint";
2613
+ if (typeof t == "object") {
2614
+ if (t != null) {
2615
+ if (t.constructor === RegExp)
2616
+ return "regexp";
2617
+ if (t.constructor === Map)
2618
+ return "map";
2619
+ if (t.constructor === Set)
2620
+ return "set";
2621
+ if (t.constructor === Date)
2622
+ return "date";
2623
+ }
2624
+ return "object";
2625
+ } else if (typeof t == "symbol")
2626
+ return "symbol";
2627
+ throw new Error(`value of unknown type: ${t}`);
2628
+ }
2629
+ c(Dn, "getType");
2630
+ function jn(t) {
2402
2631
  return t.includes(`\r
2403
2632
  `) ? `\r
2404
2633
  ` : `
2405
2634
  `;
2406
2635
  }
2407
- c(An, "getNewLineSymbol");
2408
- function ps(t, e, n) {
2636
+ c(jn, "getNewLineSymbol");
2637
+ function Ls(t, e, n) {
2409
2638
  let r = n?.truncateThreshold ?? !1, o = Math.max(
2410
2639
  Math.floor(n?.truncateThreshold ?? 0),
2411
2640
  0
2412
2641
  ), s = t.length, i = e.length;
2413
2642
  if (r) {
2414
- let g = t.includes(`
2415
- `), h = e.includes(`
2416
- `), y = An(t), p = An(e), b = g ? `${t.split(y, o).join(y)}
2417
- ` : t, E = h ? `${e.split(p, o).join(p)}
2643
+ let y = t.includes(`
2644
+ `), g = e.includes(`
2645
+ `), u = jn(t), h = jn(e), b = y ? `${t.split(u, o).join(u)}
2646
+ ` : t, _ = g ? `${e.split(h, o).join(h)}
2418
2647
  ` : e;
2419
- s = b.length, i = E.length;
2648
+ s = b.length, i = _.length;
2420
2649
  }
2421
- let l = s !== t.length || i !== e.length, u = /* @__PURE__ */ c((g, h) => t[g] === e[h], "isCommon"), f = 0, m = 0, a = [];
2422
- return kn(s, i, u, /* @__PURE__ */ c((g, h, y) => {
2423
- f !== h && a.push(new I(z, t.slice(f, h))), m !== y && a.push(new I(F, e.slice(m, y))), f = h + g, m = y + g, a.push(new I(M, e.slice(y,
2424
- m)));
2425
- }, "foundSubsequence")), f !== s && a.push(new I(z, t.slice(f))), m !== i && a.push(new I(F, e.slice(m))), [a, l];
2650
+ let a = s !== t.length || i !== e.length, l = /* @__PURE__ */ c((y, g) => t[y] === e[g], "isCommon"), m = 0, p = 0, f = [];
2651
+ return Hn(s, i, l, /* @__PURE__ */ c((y, g, u) => {
2652
+ m !== g && f.push(new I(U, t.slice(m, g))), p !== u && f.push(new I(k, e.slice(p, u))), m = g + y, p = u + y, f.push(new I(x, e.slice(u,
2653
+ p)));
2654
+ }, "foundSubsequence")), m !== s && f.push(new I(U, t.slice(m))), p !== i && f.push(new I(k, e.slice(p))), [f, a];
2426
2655
  }
2427
- c(ps, "diffStrings");
2428
- function gs(t, e, n) {
2656
+ c(Ls, "diffStrings");
2657
+ function xs(t, e, n) {
2429
2658
  return e.reduce(
2430
- (r, o) => r + (o[0] === M ? o[1] : o[0] === t && o[1].length !== 0 ? n(o[1]) : ""),
2659
+ (r, o) => r + (o[0] === x ? o[1] : o[0] === t && o[1].length !== 0 ? n(o[1]) : ""),
2431
2660
  ""
2432
2661
  );
2433
2662
  }
2434
- c(gs, "concatenateRelevantDiffs");
2435
- var Kt = class {
2663
+ c(xs, "concatenateRelevantDiffs");
2664
+ var Jt = class {
2436
2665
  static {
2437
2666
  c(this, "ChangeBuffer");
2438
2667
  }
@@ -2452,7 +2681,7 @@ var Kt = class {
2452
2681
  this.lines.push(
2453
2682
  this.line.length !== 1 ? new I(
2454
2683
  this.op,
2455
- gs(this.op, this.line, this.changeColor)
2684
+ xs(this.op, this.line, this.changeColor)
2456
2685
  ) : this.line[0][0] === this.op ? this.line[0] : new I(this.op, this.line[0][1])
2457
2686
  // was common diff
2458
2687
  ), this.line.length = 0;
@@ -2481,7 +2710,7 @@ var Kt = class {
2481
2710
  moveLinesTo(e) {
2482
2711
  this.isLineEmpty() || this.pushLine(), e.push(...this.lines), this.lines.length = 0;
2483
2712
  }
2484
- }, Ee = class {
2713
+ }, Oe = class {
2485
2714
  static {
2486
2715
  c(this, "CommonBuffer");
2487
2716
  }
@@ -2509,12 +2738,12 @@ var Kt = class {
2509
2738
  `)) {
2510
2739
  let o = r.split(`
2511
2740
  `), s = o.length - 1;
2512
- o.forEach((i, l) => {
2513
- if (l === 0) {
2514
- let u = new I(n, i);
2515
- this.deleteBuffer.isLineEmpty() && this.insertBuffer.isLineEmpty() ? (this.flushChangeLines(), this.pushDiffCommonLine(u)) : (this.
2516
- pushDiffChangeLines(u), this.flushChangeLines());
2517
- } else l < s ? this.pushDiffCommonLine(new I(n, i)) : i.length !== 0 && this.pushDiffChangeLines(new I(n, i));
2741
+ o.forEach((i, a) => {
2742
+ if (a === 0) {
2743
+ let l = new I(n, i);
2744
+ this.deleteBuffer.isLineEmpty() && this.insertBuffer.isLineEmpty() ? (this.flushChangeLines(), this.pushDiffCommonLine(l)) : (this.
2745
+ pushDiffChangeLines(l), this.flushChangeLines());
2746
+ } else a < s ? this.pushDiffCommonLine(new I(n, i)) : i.length !== 0 && this.pushDiffChangeLines(new I(n, i));
2518
2747
  });
2519
2748
  } else
2520
2749
  this.pushDiffChangeLines(e);
@@ -2524,14 +2753,14 @@ var Kt = class {
2524
2753
  return this.flushChangeLines(), this.lines;
2525
2754
  }
2526
2755
  };
2527
- function hs(t, e) {
2528
- let n = new Kt(z, e), r = new Kt(F, e), o = new Ee(n, r);
2756
+ function Fs(t, e) {
2757
+ let n = new Jt(U, e), r = new Jt(k, e), o = new Oe(n, r);
2529
2758
  return t.forEach((s) => {
2530
2759
  switch (s[0]) {
2531
- case z:
2760
+ case U:
2532
2761
  n.align(s);
2533
2762
  break;
2534
- case F:
2763
+ case k:
2535
2764
  r.align(s);
2536
2765
  break;
2537
2766
  default:
@@ -2539,23 +2768,23 @@ function hs(t, e) {
2539
2768
  }
2540
2769
  }), o.getLines();
2541
2770
  }
2542
- c(hs, "getAlignedDiffs");
2543
- function ys(t, e) {
2771
+ c(Fs, "getAlignedDiffs");
2772
+ function Ds(t, e) {
2544
2773
  if (e) {
2545
2774
  let n = t.length - 1;
2546
2775
  return t.some(
2547
- (r, o) => r[0] === M && (o !== n || r[1] !== `
2776
+ (r, o) => r[0] === x && (o !== n || r[1] !== `
2548
2777
  `)
2549
2778
  );
2550
2779
  }
2551
- return t.some((n) => n[0] === M);
2780
+ return t.some((n) => n[0] === x);
2552
2781
  }
2553
- c(ys, "hasCommonDiff");
2554
- function ds(t, e, n) {
2782
+ c(Ds, "hasCommonDiff");
2783
+ function js(t, e, n) {
2555
2784
  if (t !== e && t.length !== 0 && e.length !== 0) {
2556
2785
  let r = t.includes(`
2557
2786
  `) || e.includes(`
2558
- `), [o, s] = Vn(
2787
+ `), [o, s] = tr(
2559
2788
  r ? `${t}
2560
2789
  ` : t,
2561
2790
  r ? `${e}
@@ -2564,111 +2793,116 @@ function ds(t, e, n) {
2564
2793
  // cleanupSemantic
2565
2794
  n
2566
2795
  );
2567
- if (ys(o, r)) {
2568
- let i = pt(n), l = hs(o, i.changeColor);
2569
- return Te(l, s, i);
2796
+ if (Ds(o, r)) {
2797
+ let i = ht(n), a = Fs(o, i.changeColor);
2798
+ return Ne(a, s, i);
2570
2799
  }
2571
2800
  }
2572
- return qt(t.split(`
2801
+ return Xt(t.split(`
2573
2802
  `), e.split(`
2574
2803
  `), n);
2575
2804
  }
2576
- c(ds, "diffStringsUnified");
2577
- function Vn(t, e, n, r) {
2578
- let [o, s] = ps(t, e, r);
2579
- return n && Xo(o), [o, s];
2805
+ c(js, "diffStringsUnified");
2806
+ function tr(t, e, n, r) {
2807
+ let [o, s] = Ls(t, e, r);
2808
+ return n && ys(o), [o, s];
2580
2809
  }
2581
- c(Vn, "diffStringsRaw");
2582
- function Oe(t, e) {
2583
- let { commonColor: n } = pt(e);
2810
+ c(tr, "diffStringsRaw");
2811
+ function $e(t, e) {
2812
+ let { commonColor: n } = ht(e);
2584
2813
  return n(t);
2585
2814
  }
2586
- c(Oe, "getCommonMessage");
2815
+ c($e, "getCommonMessage");
2587
2816
  var {
2588
- AsymmetricMatcher: bs,
2589
- DOMCollection: Ss,
2590
- DOMElement: _s,
2591
- Immutable: Es,
2592
- ReactElement: Os,
2593
- ReactTestComponent: Cs
2594
- } = Lt, Kn = [
2595
- Cs,
2596
- Os,
2597
- _s,
2598
- Ss,
2599
- Es,
2600
- bs
2601
- ], Ce = {
2602
- plugins: Kn
2603
- }, qn = {
2817
+ AsymmetricMatcher: Bs,
2818
+ DOMCollection: ks,
2819
+ DOMElement: zs,
2820
+ Immutable: Ys,
2821
+ ReactElement: Us,
2822
+ ReactTestComponent: Ws
2823
+ } = $t, er = [
2824
+ Ws,
2825
+ Us,
2826
+ zs,
2827
+ ks,
2828
+ Ys,
2829
+ Bs,
2830
+ $t.Error
2831
+ ], we = {
2832
+ plugins: er
2833
+ }, nr = {
2604
2834
  callToJSON: !1,
2605
- maxDepth: 10,
2606
- plugins: Kn
2835
+ maxDepth: 8,
2836
+ plugins: er
2607
2837
  };
2608
- function ws(t, e, n) {
2838
+ function Vs(t, e, n) {
2609
2839
  if (Object.is(t, e))
2610
2840
  return "";
2611
- let r = _n(t), o = r, s = !1;
2841
+ let r = Dn(t), o = r, s = !1;
2612
2842
  if (r === "object" && typeof t.asymmetricMatch == "function") {
2613
2843
  if (t.$$typeof !== Symbol.for("jest.asymmetricMatcher") || typeof t.getExpectedType != "function")
2614
2844
  return;
2615
2845
  o = t.getExpectedType(), s = o === "string";
2616
2846
  }
2617
- if (o !== _n(e)) {
2618
- let { aAnnotation: i, aColor: l, aIndicator: u, bAnnotation: f, bColor: m, bIndicator: a } = pt(n), S = we(qn, n), g = Z(t, S), h = Z(e,
2619
- S), y = `${l(`${u} ${i}:`)}
2620
- ${g}`, p = `${m(`${a} ${f}:`)}
2621
- ${h}`;
2622
- return `${y}
2847
+ if (o !== Dn(e)) {
2848
+ let i = /* @__PURE__ */ c(function(O) {
2849
+ return O.length <= h ? O : `${O.slice(0, h)}...`;
2850
+ }, "truncate2"), { aAnnotation: a, aColor: l, aIndicator: m, bAnnotation: p, bColor: f, bIndicator: S } = ht(n), y = Ae(nr, n), g = v(t,
2851
+ y), u = v(e, y), h = 1e5;
2852
+ g = i(g), u = i(u);
2853
+ let b = `${l(`${m} ${a}:`)}
2854
+ ${g}`, _ = `${f(`${S} ${p}:`)}
2855
+ ${u}`;
2856
+ return `${b}
2623
2857
 
2624
- ${p}`;
2858
+ ${_}`;
2625
2859
  }
2626
2860
  if (!s)
2627
2861
  switch (r) {
2628
2862
  case "string":
2629
- return qt(t.split(`
2863
+ return Xt(t.split(`
2630
2864
  `), e.split(`
2631
2865
  `), n);
2632
2866
  case "boolean":
2633
2867
  case "number":
2634
- return $s(t, e, n);
2868
+ return qs(t, e, n);
2635
2869
  case "map":
2636
- return _e(Nn(t), Nn(e), n);
2870
+ return Te(Bn(t), Bn(e), n);
2637
2871
  case "set":
2638
- return _e(In(t), In(e), n);
2872
+ return Te(kn(t), kn(e), n);
2639
2873
  default:
2640
- return _e(t, e, n);
2874
+ return Te(t, e, n);
2641
2875
  }
2642
2876
  }
2643
- c(ws, "diff");
2644
- function $s(t, e, n) {
2645
- let r = Z(t, Ce), o = Z(e, Ce);
2646
- return r === o ? "" : qt(r.split(`
2877
+ c(Vs, "diff");
2878
+ function qs(t, e, n) {
2879
+ let r = v(t, we), o = v(e, we);
2880
+ return r === o ? "" : Xt(r.split(`
2647
2881
  `), o.split(`
2648
2882
  `), n);
2649
2883
  }
2650
- c($s, "comparePrimitive");
2651
- function Nn(t) {
2884
+ c(qs, "comparePrimitive");
2885
+ function Bn(t) {
2652
2886
  return new Map(Array.from(t.entries()).sort());
2653
2887
  }
2654
- c(Nn, "sortMap");
2655
- function In(t) {
2888
+ c(Bn, "sortMap");
2889
+ function kn(t) {
2656
2890
  return new Set(Array.from(t.values()).sort());
2657
2891
  }
2658
- c(In, "sortSet");
2659
- function _e(t, e, n) {
2892
+ c(kn, "sortSet");
2893
+ function Te(t, e, n) {
2660
2894
  let r, o = !1;
2661
2895
  try {
2662
- let i = we(Ce, n);
2663
- r = Rn(t, e, i, n);
2896
+ let i = Ae(we, n);
2897
+ r = zn(t, e, i, n);
2664
2898
  } catch {
2665
2899
  o = !0;
2666
2900
  }
2667
- let s = Oe(Fn, n);
2901
+ let s = $e(Gn, n);
2668
2902
  if (r === void 0 || r === s) {
2669
- let i = we(qn, n);
2670
- r = Rn(t, e, i, n), r !== s && !o && (r = `${Oe(
2671
- ts,
2903
+ let i = Ae(nr, n);
2904
+ r = zn(t, e, i, n), r !== s && !o && (r = `${$e(
2905
+ Es,
2672
2906
  n
2673
2907
  )}
2674
2908
 
@@ -2676,25 +2910,26 @@ ${r}`);
2676
2910
  }
2677
2911
  return r;
2678
2912
  }
2679
- c(_e, "compareObjects");
2680
- function we(t, e) {
2681
- let { compareKeys: n } = pt(e);
2913
+ c(Te, "compareObjects");
2914
+ function Ae(t, e) {
2915
+ let { compareKeys: n, printBasicPrototype: r } = ht(e);
2682
2916
  return {
2683
2917
  ...t,
2684
- compareKeys: n
2918
+ compareKeys: n,
2919
+ printBasicPrototype: r
2685
2920
  };
2686
2921
  }
2687
- c(we, "getFormatOptions");
2688
- function Rn(t, e, n, r) {
2689
- let o = { ...n, indent: 0 }, s = Z(t, o), i = Z(e, o);
2922
+ c(Ae, "getFormatOptions");
2923
+ function zn(t, e, n, r) {
2924
+ let o = { ...n, indent: 0 }, s = v(t, o), i = v(e, o);
2690
2925
  if (s === i)
2691
- return Oe(Fn, r);
2926
+ return $e(Gn, r);
2692
2927
  {
2693
- let l = Z(t, n), u = Z(e, n);
2694
- return ms(
2695
- l.split(`
2928
+ let a = v(t, n), l = v(e, n);
2929
+ return Ms(
2930
+ a.split(`
2696
2931
  `),
2697
- u.split(`
2932
+ l.split(`
2698
2933
  `),
2699
2934
  s.split(`
2700
2935
  `),
@@ -2704,99 +2939,102 @@ function Rn(t, e, n, r) {
2704
2939
  );
2705
2940
  }
2706
2941
  }
2707
- c(Rn, "getObjectsDifference");
2708
- var Pn = 2e4;
2709
- function Mn(t) {
2710
- return Yt(t) === "Object" && typeof t.asymmetricMatch == "function";
2942
+ c(zn, "getObjectsDifference");
2943
+ var Yn = 2e4;
2944
+ function Un(t) {
2945
+ return Kt(t) === "Object" && typeof t.asymmetricMatch == "function";
2711
2946
  }
2712
- c(Mn, "isAsymmetricMatcher");
2713
- function Ln(t, e) {
2714
- let n = Yt(t), r = Yt(e);
2947
+ c(Un, "isAsymmetricMatcher");
2948
+ function Wn(t, e) {
2949
+ let n = Kt(t), r = Kt(e);
2715
2950
  return n === r && (n === "Object" || n === "Array");
2716
2951
  }
2717
- c(Ln, "isReplaceable");
2718
- function Gn(t, e, n) {
2719
- let { aAnnotation: r, bAnnotation: o } = pt(n);
2720
- if (typeof t == "string" && typeof e == "string" && t.length > 0 && e.length > 0 && t.length <= Pn && e.length <= Pn && t !== e) {
2721
- if (t.includes(`
2722
- `) || e.includes(`
2952
+ c(Wn, "isReplaceable");
2953
+ function rr(t, e, n) {
2954
+ let { aAnnotation: r, bAnnotation: o } = ht(n);
2955
+ if (typeof e == "string" && typeof t == "string" && e.length > 0 && t.length > 0 && e.length <= Yn && t.length <= Yn && e !== t) {
2956
+ if (e.includes(`
2957
+ `) || t.includes(`
2723
2958
  `))
2724
- return ds(e, t, n);
2725
- let [m] = Vn(e, t, !0), a = m.some((y) => y[0] === M), S = Ts(r, o), g = S(r) + Is(
2726
- xn(m, z, a)
2727
- ), h = S(o) + Ns(
2728
- xn(m, F, a)
2959
+ return js(e, t, n);
2960
+ let [p] = tr(e, t, !0), f = p.some((u) => u[0] === x), S = Ks(r, o), y = S(r) + Js(
2961
+ Vn(p, U, f)
2962
+ ), g = S(o) + Hs(
2963
+ Vn(p, k, f)
2729
2964
  );
2730
- return `${g}
2731
- ${h}`;
2965
+ return `${y}
2966
+ ${g}`;
2732
2967
  }
2733
- let s = be(t, { forceWritable: !0 }), i = be(e, { forceWritable: !0 }), { replacedExpected: l, replacedActual: u } = Hn(s, i);
2734
- return ws(l, u, n);
2968
+ let s = _e(e, { forceWritable: !0 }), i = _e(t, { forceWritable: !0 }), { replacedExpected: a, replacedActual: l } = or(i, s);
2969
+ return Vs(a, l, n);
2735
2970
  }
2736
- c(Gn, "printDiffOrStringify");
2737
- function Hn(t, e, n = /* @__PURE__ */ new WeakSet(), r = /* @__PURE__ */ new WeakSet()) {
2738
- return Ln(t, e) ? n.has(t) || r.has(e) ? { replacedActual: t, replacedExpected: e } : (n.add(t), r.add(e), de(e).forEach((o) => {
2971
+ c(rr, "printDiffOrStringify");
2972
+ function or(t, e, n = /* @__PURE__ */ new WeakSet(), r = /* @__PURE__ */ new WeakSet()) {
2973
+ return t instanceof Error && e instanceof Error && typeof t.cause < "u" && typeof e.cause > "u" ? (delete t.cause, {
2974
+ replacedActual: t,
2975
+ replacedExpected: e
2976
+ }) : Wn(t, e) ? n.has(t) || r.has(e) ? { replacedActual: t, replacedExpected: e } : (n.add(t), r.add(e), Ee(e).forEach((o) => {
2739
2977
  let s = e[o], i = t[o];
2740
- if (Mn(s))
2978
+ if (Un(s))
2741
2979
  s.asymmetricMatch(i) && (t[o] = s);
2742
- else if (Mn(i))
2980
+ else if (Un(i))
2743
2981
  i.asymmetricMatch(s) && (e[o] = i);
2744
- else if (Ln(i, s)) {
2745
- let l = Hn(
2982
+ else if (Wn(i, s)) {
2983
+ let a = or(
2746
2984
  i,
2747
2985
  s,
2748
2986
  n,
2749
2987
  r
2750
2988
  );
2751
- t[o] = l.replacedActual, e[o] = l.replacedExpected;
2989
+ t[o] = a.replacedActual, e[o] = a.replacedExpected;
2752
2990
  }
2753
2991
  }), {
2754
2992
  replacedActual: t,
2755
2993
  replacedExpected: e
2756
2994
  }) : { replacedActual: t, replacedExpected: e };
2757
2995
  }
2758
- c(Hn, "replaceAsymmetricMatcher");
2759
- function Ts(...t) {
2996
+ c(or, "replaceAsymmetricMatcher");
2997
+ function Ks(...t) {
2760
2998
  let e = t.reduce(
2761
2999
  (n, r) => r.length > n ? r.length : n,
2762
3000
  0
2763
3001
  );
2764
3002
  return (n) => `${n}: ${" ".repeat(e - n.length)}`;
2765
3003
  }
2766
- c(Ts, "getLabelPrinter");
2767
- var As = "\xB7";
2768
- function Jn(t) {
2769
- return t.replace(/\s+$/gm, (e) => As.repeat(e.length));
3004
+ c(Ks, "getLabelPrinter");
3005
+ var Gs = "\xB7";
3006
+ function sr(t) {
3007
+ return t.replace(/\s+$/gm, (e) => Gs.repeat(e.length));
2770
3008
  }
2771
- c(Jn, "replaceTrailingSpaces");
2772
- function Ns(t) {
2773
- return v.red(Jn(mt(t)));
3009
+ c(sr, "replaceTrailingSpaces");
3010
+ function Hs(t) {
3011
+ return et.red(sr(gt(t)));
2774
3012
  }
2775
- c(Ns, "printReceived");
2776
- function Is(t) {
2777
- return v.green(Jn(mt(t)));
3013
+ c(Hs, "printReceived");
3014
+ function Js(t) {
3015
+ return et.green(sr(gt(t)));
2778
3016
  }
2779
- c(Is, "printExpected");
2780
- function xn(t, e, n) {
3017
+ c(Js, "printExpected");
3018
+ function Vn(t, e, n) {
2781
3019
  return t.reduce(
2782
- (r, o) => r + (o[0] === M ? o[1] : o[0] === e ? n ? v.inverse(o[1]) : o[1] : ""),
3020
+ (r, o) => r + (o[0] === x ? o[1] : o[0] === e ? n ? et.inverse(o[1]) : o[1] : ""),
2783
3021
  ""
2784
3022
  );
2785
3023
  }
2786
- c(xn, "getCommonAndChangedSubstrings");
3024
+ c(Vn, "getCommonAndChangedSubstrings");
2787
3025
 
2788
3026
  // ../node_modules/@vitest/utils/dist/error.js
2789
- var Rs = "@@__IMMUTABLE_RECORD__@@", Ps = "@@__IMMUTABLE_ITERABLE__@@";
2790
- function Ms(t) {
2791
- return t && (t[Ps] || t[Rs]);
3027
+ var Xs = "@@__IMMUTABLE_RECORD__@@", Zs = "@@__IMMUTABLE_ITERABLE__@@";
3028
+ function Qs(t) {
3029
+ return t && (t[Zs] || t[Xs]);
2792
3030
  }
2793
- c(Ms, "isImmutable");
2794
- var Ls = Object.getPrototypeOf({});
2795
- function Xn(t) {
3031
+ c(Qs, "isImmutable");
3032
+ var vs = Object.getPrototypeOf({});
3033
+ function ir(t) {
2796
3034
  return t instanceof Error ? `<unserializable>: ${t.message}` : typeof t == "string" ? `<unserializable>: ${t}` : "<unserializable>";
2797
3035
  }
2798
- c(Xn, "getUnserializableMessage");
2799
- function St(t, e = /* @__PURE__ */ new WeakMap()) {
3036
+ c(ir, "getUnserializableMessage");
3037
+ function _t(t, e = /* @__PURE__ */ new WeakMap()) {
2800
3038
  if (!t || typeof t == "string")
2801
3039
  return t;
2802
3040
  if (typeof t == "function")
@@ -2805,69 +3043,69 @@ function St(t, e = /* @__PURE__ */ new WeakMap()) {
2805
3043
  return t.toString();
2806
3044
  if (typeof t != "object")
2807
3045
  return t;
2808
- if (Ms(t))
2809
- return St(t.toJSON(), e);
3046
+ if (Qs(t))
3047
+ return _t(t.toJSON(), e);
2810
3048
  if (t instanceof Promise || t.constructor && t.constructor.prototype === "AsyncFunction")
2811
3049
  return "Promise";
2812
3050
  if (typeof Element < "u" && t instanceof Element)
2813
3051
  return t.tagName;
2814
3052
  if (typeof t.asymmetricMatch == "function")
2815
- return `${t.toString()} ${dn(t.sample)}`;
3053
+ return `${t.toString()} ${An(t.sample)}`;
2816
3054
  if (typeof t.toJSON == "function")
2817
- return St(t.toJSON(), e);
3055
+ return _t(t.toJSON(), e);
2818
3056
  if (e.has(t))
2819
3057
  return e.get(t);
2820
3058
  if (Array.isArray(t)) {
2821
3059
  let n = new Array(t.length);
2822
3060
  return e.set(t, n), t.forEach((r, o) => {
2823
3061
  try {
2824
- n[o] = St(r, e);
3062
+ n[o] = _t(r, e);
2825
3063
  } catch (s) {
2826
- n[o] = Xn(s);
3064
+ n[o] = ir(s);
2827
3065
  }
2828
3066
  }), n;
2829
3067
  } else {
2830
3068
  let n = /* @__PURE__ */ Object.create(null);
2831
3069
  e.set(t, n);
2832
3070
  let r = t;
2833
- for (; r && r !== Ls; )
3071
+ for (; r && r !== vs; )
2834
3072
  Object.getOwnPropertyNames(r).forEach((o) => {
2835
3073
  if (!(o in n))
2836
3074
  try {
2837
- n[o] = St(t[o], e);
3075
+ n[o] = _t(t[o], e);
2838
3076
  } catch (s) {
2839
- delete n[o], n[o] = Xn(s);
3077
+ delete n[o], n[o] = ir(s);
2840
3078
  }
2841
3079
  }), r = Object.getPrototypeOf(r);
2842
3080
  return n;
2843
3081
  }
2844
3082
  }
2845
- c(St, "serializeValue");
2846
- function xs(t) {
3083
+ c(_t, "serializeValue");
3084
+ function ti(t) {
2847
3085
  return t.replace(/__(vite_ssr_import|vi_import)_\d+__\./g, "");
2848
3086
  }
2849
- c(xs, "normalizeErrorMessage");
2850
- function Ae(t, e, n = /* @__PURE__ */ new WeakSet()) {
3087
+ c(ti, "normalizeErrorMessage");
3088
+ function Pe(t, e, n = /* @__PURE__ */ new WeakSet()) {
2851
3089
  if (!t || typeof t != "object")
2852
3090
  return { message: String(t) };
2853
3091
  let r = t;
2854
3092
  r.stack && (r.stackStr = String(r.stack)), r.name && (r.nameStr = String(r.name)), (r.showDiff || r.showDiff === void 0 && r.expected !== void 0 &&
2855
- r.actual !== void 0) && (r.diff = Gn(r.actual, r.expected, {
3093
+ r.actual !== void 0) && (r.diff = rr(r.actual, r.expected, {
2856
3094
  ...e,
2857
3095
  ...r.diffOptions
2858
- })), typeof r.expected != "string" && (r.expected = mt(r.expected, 10)), typeof r.actual != "string" && (r.actual = mt(r.actual, 10));
3096
+ })), typeof r.expected != "string" && (r.expected = gt(r.expected, 10)), typeof r.actual != "string" && (r.actual = gt(r.actual, 10));
2859
3097
  try {
2860
- typeof r.message == "string" && (r.message = xs(r.message));
3098
+ typeof r.message == "string" && (r.message = ti(r.message));
2861
3099
  } catch {
2862
3100
  }
2863
3101
  try {
2864
- !n.has(r) && typeof r.cause == "object" && (n.add(r), r.cause = Ae(r.cause, e, n));
3102
+ !n.has(r) && typeof r.cause == "object" && (n.add(r), r.cause = Pe(r.cause, e, n));
2865
3103
  } catch {
2866
3104
  }
2867
3105
  try {
2868
- return St(r);
3106
+ return _t(r);
2869
3107
  } catch (o) {
2870
- return St(
3108
+ return _t(
2871
3109
  new Error(
2872
3110
  `Failed to fully serialize error: ${o?.message}
2873
3111
  Inner error message: ${r?.message}`
@@ -2875,16 +3113,16 @@ Inner error message: ${r?.message}`
2875
3113
  );
2876
3114
  }
2877
3115
  }
2878
- c(Ae, "processError");
3116
+ c(Pe, "processError");
2879
3117
 
2880
3118
  // src/instrumenter/instrumenter.ts
2881
- var Gt = require("storybook/preview-api");
3119
+ var Zt = require("storybook/preview-api");
2882
3120
 
2883
3121
  // src/instrumenter/types.ts
2884
- var Zn = /* @__PURE__ */ ((o) => (o.DONE = "done", o.ERROR = "error", o.ACTIVE = "active", o.WAITING = "waiting", o))(Zn || {});
3122
+ var cr = /* @__PURE__ */ ((o) => (o.DONE = "done", o.ERROR = "error", o.ACTIVE = "active", o.WAITING = "waiting", o))(cr || {});
2885
3123
 
2886
3124
  // src/instrumenter/instrumenter.ts
2887
- var nt = {
3125
+ var ot = {
2888
3126
  CALL: "storybook/instrumenter/call",
2889
3127
  SYNC: "storybook/instrumenter/sync",
2890
3128
  START: "storybook/instrumenter/start",
@@ -2892,29 +3130,29 @@ var nt = {
2892
3130
  GOTO: "storybook/instrumenter/goto",
2893
3131
  NEXT: "storybook/instrumenter/next",
2894
3132
  END: "storybook/instrumenter/end"
2895
- }, Qn = {
3133
+ }, ur = {
2896
3134
  start: !1,
2897
3135
  back: !1,
2898
3136
  goto: !1,
2899
3137
  next: !1,
2900
3138
  end: !1
2901
- }, js = new Error(
3139
+ }, ei = new Error(
2902
3140
  "This function ran after the play function completed. Did you forget to `await` it?"
2903
- ), vn = /* @__PURE__ */ c((t) => Object.prototype.toString.call(t) === "[object Object]", "isObject"), Ds = /* @__PURE__ */ c((t) => Object.
2904
- prototype.toString.call(t) === "[object Module]", "isModule"), Fs = /* @__PURE__ */ c((t) => {
2905
- if (!vn(t) && !Ds(t))
3141
+ ), lr = /* @__PURE__ */ c((t) => Object.prototype.toString.call(t) === "[object Object]", "isObject"), ni = /* @__PURE__ */ c((t) => Object.
3142
+ prototype.toString.call(t) === "[object Module]", "isModule"), ri = /* @__PURE__ */ c((t) => {
3143
+ if (!lr(t) && !ni(t))
2906
3144
  return !1;
2907
3145
  if (t.constructor === void 0)
2908
3146
  return !0;
2909
3147
  let e = t.constructor.prototype;
2910
- return !!vn(e);
2911
- }, "isInstrumentable"), ks = /* @__PURE__ */ c((t) => {
3148
+ return !!lr(e);
3149
+ }, "isInstrumentable"), oi = /* @__PURE__ */ c((t) => {
2912
3150
  try {
2913
3151
  return new t.constructor();
2914
3152
  } catch {
2915
3153
  return {};
2916
3154
  }
2917
- }, "construct"), Ne = /* @__PURE__ */ c(() => ({
3155
+ }, "construct"), Ie = /* @__PURE__ */ c(() => ({
2918
3156
  renderPhase: void 0,
2919
3157
  isDebugging: !1,
2920
3158
  isPlaying: !1,
@@ -2928,7 +3166,7 @@ prototype.toString.call(t) === "[object Module]", "isModule"), Fs = /* @__PURE__
2928
3166
  playUntil: void 0,
2929
3167
  resolvers: {},
2930
3168
  syncTimeout: void 0
2931
- }), "getInitialState"), tr = /* @__PURE__ */ c((t, e = !1) => {
3169
+ }), "getInitialState"), ar = /* @__PURE__ */ c((t, e = !1) => {
2932
3170
  let n = (e ? t.shadowCalls : t.calls).filter((o) => o.retain);
2933
3171
  if (!n.length)
2934
3172
  return;
@@ -2936,256 +3174,256 @@ prototype.toString.call(t) === "[object Module]", "isModule"), Fs = /* @__PURE__
2936
3174
  Array.from(t.callRefsByResult.entries()).filter(([, o]) => o.retain)
2937
3175
  );
2938
3176
  return { cursor: n.length, calls: n, callRefsByResult: r };
2939
- }, "getRetainedState"), Ie = class {
3177
+ }, "getRetainedState"), Me = class {
2940
3178
  constructor() {
2941
3179
  this.initialized = !1;
2942
- this.state = U.global.window?.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ || {};
3180
+ this.state = W.global.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ || {};
2943
3181
  let e = /* @__PURE__ */ c(({
2944
- storyId: u,
2945
- isPlaying: f = !0,
2946
- isDebugging: m = !1
3182
+ storyId: l,
3183
+ isPlaying: m = !0,
3184
+ isDebugging: p = !1
2947
3185
  }) => {
2948
- let a = this.getState(u);
2949
- this.setState(u, {
2950
- ...Ne(),
2951
- ...tr(a, m),
2952
- shadowCalls: m ? a.shadowCalls : [],
2953
- chainedCallIds: m ? a.chainedCallIds : /* @__PURE__ */ new Set(),
2954
- playUntil: m ? a.playUntil : void 0,
2955
- isPlaying: f,
2956
- isDebugging: m
2957
- }), this.sync(u);
2958
- }, "resetState"), n = /* @__PURE__ */ c((u) => ({ storyId: f, playUntil: m }) => {
2959
- this.getState(f).isDebugging || this.setState(f, ({ calls: S }) => ({
3186
+ let f = this.getState(l);
3187
+ this.setState(l, {
3188
+ ...Ie(),
3189
+ ...ar(f, p),
3190
+ shadowCalls: p ? f.shadowCalls : [],
3191
+ chainedCallIds: p ? f.chainedCallIds : /* @__PURE__ */ new Set(),
3192
+ playUntil: p ? f.playUntil : void 0,
3193
+ isPlaying: m,
3194
+ isDebugging: p
3195
+ }), this.sync(l);
3196
+ }, "resetState"), n = /* @__PURE__ */ c((l) => ({ storyId: m, playUntil: p }) => {
3197
+ this.getState(m).isDebugging || this.setState(m, ({ calls: S }) => ({
2960
3198
  calls: [],
2961
- shadowCalls: S.map((g) => ({ ...g, status: "waiting" })),
3199
+ shadowCalls: S.map((y) => ({ ...y, status: "waiting" })),
2962
3200
  isDebugging: !0
2963
3201
  }));
2964
- let a = this.getLog(f);
2965
- this.setState(f, ({ shadowCalls: S }) => {
2966
- if (m || !a.length)
2967
- return { playUntil: m };
2968
- let g = S.findIndex((h) => h.id === a[0].callId);
3202
+ let f = this.getLog(m);
3203
+ this.setState(m, ({ shadowCalls: S }) => {
3204
+ if (p || !f.length)
3205
+ return { playUntil: p };
3206
+ let y = S.findIndex((g) => g.id === f[0].callId);
2969
3207
  return {
2970
- playUntil: S.slice(0, g).filter((h) => h.interceptable && !h.ancestors?.length).slice(-1)[0]?.id
3208
+ playUntil: S.slice(0, y).filter((g) => g.interceptable && !g.ancestors?.length).slice(-1)[0]?.id
2971
3209
  };
2972
- }), u.emit(gt.FORCE_REMOUNT, { storyId: f, isDebugging: !0 });
2973
- }, "start"), r = /* @__PURE__ */ c((u) => ({ storyId: f }) => {
2974
- let m = this.getLog(f).filter((S) => !S.ancestors?.length), a = m.reduceRight((S, g, h) => S >= 0 || g.status === "waiting" ? S : h, -1);
2975
- n(u)({ storyId: f, playUntil: m[a - 1]?.callId });
2976
- }, "back"), o = /* @__PURE__ */ c((u) => ({ storyId: f, callId: m }) => {
2977
- let { calls: a, shadowCalls: S, resolvers: g } = this.getState(f), h = a.find(({ id: p }) => p === m), y = S.find(({ id: p }) => p ===
2978
- m);
2979
- if (!h && y && Object.values(g).length > 0) {
2980
- let p = this.getLog(f).find((b) => b.status === "waiting")?.callId;
2981
- y.id !== p && this.setState(f, { playUntil: y.id }), Object.values(g).forEach((b) => b());
3210
+ }), l.emit(yt.FORCE_REMOUNT, { storyId: m, isDebugging: !0 });
3211
+ }, "start"), r = /* @__PURE__ */ c((l) => ({ storyId: m }) => {
3212
+ let p = this.getLog(m).filter((S) => !S.ancestors?.length), f = p.reduceRight((S, y, g) => S >= 0 || y.status === "waiting" ? S : g, -1);
3213
+ n(l)({ storyId: m, playUntil: p[f - 1]?.callId });
3214
+ }, "back"), o = /* @__PURE__ */ c((l) => ({ storyId: m, callId: p }) => {
3215
+ let { calls: f, shadowCalls: S, resolvers: y } = this.getState(m), g = f.find(({ id: h }) => h === p), u = S.find(({ id: h }) => h ===
3216
+ p);
3217
+ if (!g && u && Object.values(y).length > 0) {
3218
+ let h = this.getLog(m).find((b) => b.status === "waiting")?.callId;
3219
+ u.id !== h && this.setState(m, { playUntil: u.id }), Object.values(y).forEach((b) => b());
2982
3220
  } else
2983
- n(u)({ storyId: f, playUntil: m });
2984
- }, "goto"), s = /* @__PURE__ */ c((u) => ({ storyId: f }) => {
2985
- let { resolvers: m } = this.getState(f);
2986
- if (Object.values(m).length > 0)
2987
- Object.values(m).forEach((a) => a());
3221
+ n(l)({ storyId: m, playUntil: p });
3222
+ }, "goto"), s = /* @__PURE__ */ c((l) => ({ storyId: m }) => {
3223
+ let { resolvers: p } = this.getState(m);
3224
+ if (Object.values(p).length > 0)
3225
+ Object.values(p).forEach((f) => f());
2988
3226
  else {
2989
- let a = this.getLog(f).find((S) => S.status === "waiting")?.callId;
2990
- a ? n(u)({ storyId: f, playUntil: a }) : i({ storyId: f });
3227
+ let f = this.getLog(m).find((S) => S.status === "waiting")?.callId;
3228
+ f ? n(l)({ storyId: m, playUntil: f }) : i({ storyId: m });
2991
3229
  }
2992
- }, "next"), i = /* @__PURE__ */ c(({ storyId: u }) => {
2993
- this.setState(u, { playUntil: void 0, isDebugging: !1 }), Object.values(this.getState(u).resolvers).forEach((f) => f());
2994
- }, "end"), l = /* @__PURE__ */ c(({ storyId: u, newPhase: f }) => {
2995
- let { isDebugging: m } = this.getState(u);
2996
- this.setState(u, { renderPhase: f }), f === "preparing" && m && e({ storyId: u }), f === "playing" && e({ storyId: u, isDebugging: m }),
2997
- f === "played" && this.setState(u, {
3230
+ }, "next"), i = /* @__PURE__ */ c(({ storyId: l }) => {
3231
+ this.setState(l, { playUntil: void 0, isDebugging: !1 }), Object.values(this.getState(l).resolvers).forEach((m) => m());
3232
+ }, "end"), a = /* @__PURE__ */ c(({ storyId: l, newPhase: m }) => {
3233
+ let { isDebugging: p } = this.getState(l);
3234
+ this.setState(l, { renderPhase: m }), m === "preparing" && p && e({ storyId: l }), m === "playing" && e({ storyId: l, isDebugging: p }),
3235
+ m === "played" && this.setState(l, {
2998
3236
  isLocked: !1,
2999
3237
  isPlaying: !1,
3000
3238
  isDebugging: !1
3001
- }), f === "errored" && this.setState(u, {
3239
+ }), m === "errored" && this.setState(l, {
3002
3240
  isLocked: !1,
3003
3241
  isPlaying: !1
3004
3242
  });
3005
3243
  }, "renderPhaseChanged");
3006
- (Gt.addons ? Gt.addons.ready() : Promise.resolve()).then(() => {
3007
- this.channel = Gt.addons.getChannel(), this.channel.on(gt.FORCE_REMOUNT, e), this.channel.on(gt.STORY_RENDER_PHASE_CHANGED, l), this.channel.
3008
- on(gt.SET_CURRENT_STORY, () => {
3244
+ (Zt.addons ? Zt.addons.ready() : Promise.resolve()).then(() => {
3245
+ this.channel = Zt.addons.getChannel(), this.channel.on(yt.FORCE_REMOUNT, e), this.channel.on(yt.STORY_RENDER_PHASE_CHANGED, a), this.channel.
3246
+ on(yt.SET_CURRENT_STORY, () => {
3009
3247
  this.initialized ? this.cleanup() : this.initialized = !0;
3010
- }), this.channel.on(nt.START, n(this.channel)), this.channel.on(nt.BACK, r(this.channel)), this.channel.on(nt.GOTO, o(this.channel)), this.
3011
- channel.on(nt.NEXT, s(this.channel)), this.channel.on(nt.END, i);
3248
+ }), this.channel.on(ot.START, n(this.channel)), this.channel.on(ot.BACK, r(this.channel)), this.channel.on(ot.GOTO, o(this.channel)), this.
3249
+ channel.on(ot.NEXT, s(this.channel)), this.channel.on(ot.END, i);
3012
3250
  });
3013
3251
  }
3014
3252
  static {
3015
3253
  c(this, "Instrumenter");
3016
3254
  }
3017
3255
  getState(e) {
3018
- return this.state[e] || Ne();
3256
+ return this.state[e] || Ie();
3019
3257
  }
3020
3258
  setState(e, n) {
3021
3259
  let r = this.getState(e), o = typeof n == "function" ? n(r) : n;
3022
- this.state = { ...this.state, [e]: { ...r, ...o } }, U.global.window?.parent && (U.global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ =
3260
+ this.state = { ...this.state, [e]: { ...r, ...o } }, W.global.window?.parent && (W.global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ =
3023
3261
  this.state);
3024
3262
  }
3025
3263
  cleanup() {
3026
3264
  this.state = Object.entries(this.state).reduce(
3027
3265
  (n, [r, o]) => {
3028
- let s = tr(o);
3029
- return s && (n[r] = Object.assign(Ne(), s)), n;
3266
+ let s = ar(o);
3267
+ return s && (n[r] = Object.assign(Ie(), s)), n;
3030
3268
  },
3031
3269
  {}
3032
3270
  );
3033
- let e = { controlStates: Qn, logItems: [] };
3034
- this.channel?.emit(nt.SYNC, e), U.global.window?.parent && (U.global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ =
3271
+ let e = { controlStates: ur, logItems: [] };
3272
+ this.channel?.emit(ot.SYNC, e), W.global.window?.parent && (W.global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ =
3035
3273
  this.state);
3036
3274
  }
3037
3275
  getLog(e) {
3038
3276
  let { calls: n, shadowCalls: r } = this.getState(e), o = [...r];
3039
- n.forEach((i, l) => {
3040
- o[l] = i;
3277
+ n.forEach((i, a) => {
3278
+ o[a] = i;
3041
3279
  });
3042
3280
  let s = /* @__PURE__ */ new Set();
3043
- return o.reduceRight((i, l) => (l.args.forEach((u) => {
3044
- u?.__callId__ && s.add(u.__callId__);
3045
- }), l.path.forEach((u) => {
3046
- u.__callId__ && s.add(u.__callId__);
3047
- }), (l.interceptable || l.exception) && !s.has(l.id) && (i.unshift({ callId: l.id, status: l.status, ancestors: l.ancestors }), s.add(l.
3281
+ return o.reduceRight((i, a) => (a.args.forEach((l) => {
3282
+ l?.__callId__ && s.add(l.__callId__);
3283
+ }), a.path.forEach((l) => {
3284
+ l.__callId__ && s.add(l.__callId__);
3285
+ }), (a.interceptable || a.exception) && !s.has(a.id) && (i.unshift({ callId: a.id, status: a.status, ancestors: a.ancestors }), s.add(a.
3048
3286
  id)), i), []);
3049
3287
  }
3050
3288
  // Traverses the object structure to recursively patch all function properties.
3051
3289
  // Returns the original object, or a new object with the same constructor,
3052
3290
  // depending on whether it should mutate.
3053
3291
  instrument(e, n, r = 0) {
3054
- if (!Fs(e))
3292
+ if (!ri(e))
3055
3293
  return e;
3056
3294
  let { mutate: o = !1, path: s = [] } = n, i = n.getKeys ? n.getKeys(e, r) : Object.keys(e);
3057
3295
  return r += 1, i.reduce(
3058
- (l, u) => {
3059
- let f = Bs(e, u);
3060
- if (typeof f?.get == "function") {
3061
- let a = /* @__PURE__ */ c(() => f?.get?.bind(e)?.(), "getter");
3062
- return Object.defineProperty(l, u, {
3063
- get: /* @__PURE__ */ c(() => this.instrument(a(), { ...n, path: s.concat(u) }, r), "get")
3064
- }), l;
3296
+ (a, l) => {
3297
+ let m = si(e, l);
3298
+ if (typeof m?.get == "function") {
3299
+ let f = /* @__PURE__ */ c(() => m?.get?.bind(e)?.(), "getter");
3300
+ return Object.defineProperty(a, l, {
3301
+ get: /* @__PURE__ */ c(() => this.instrument(f(), { ...n, path: s.concat(l) }, r), "get")
3302
+ }), a;
3065
3303
  }
3066
- let m = e[u];
3067
- return typeof m != "function" ? (l[u] = this.instrument(m, { ...n, path: s.concat(u) }, r), l) : "__originalFn__" in m && typeof m.__originalFn__ ==
3068
- "function" ? (l[u] = m, l) : (l[u] = (...a) => this.track(u, m, e, a, n), l[u].__originalFn__ = m, Object.defineProperty(l[u], "name",
3069
- { value: u, writable: !1 }), Object.keys(m).length > 0 && Object.assign(
3070
- l[u],
3071
- this.instrument({ ...m }, { ...n, path: s.concat(u) }, r)
3072
- ), l);
3304
+ let p = e[l];
3305
+ return typeof p != "function" ? (a[l] = this.instrument(p, { ...n, path: s.concat(l) }, r), a) : "__originalFn__" in p && typeof p.__originalFn__ ==
3306
+ "function" ? (a[l] = p, a) : (a[l] = (...f) => this.track(l, p, e, f, n), a[l].__originalFn__ = p, Object.defineProperty(a[l], "name",
3307
+ { value: l, writable: !1 }), Object.keys(p).length > 0 && Object.assign(
3308
+ a[l],
3309
+ this.instrument({ ...p }, { ...n, path: s.concat(l) }, r)
3310
+ ), a);
3073
3311
  },
3074
- o ? e : ks(e)
3312
+ o ? e : oi(e)
3075
3313
  );
3076
3314
  }
3077
3315
  // Monkey patch an object method to record calls.
3078
3316
  // Returns a function that invokes the original function, records the invocation ("call") and
3079
3317
  // returns the original result.
3080
3318
  track(e, n, r, o, s) {
3081
- let i = o?.[0]?.__storyId__ || U.global.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId, { cursor: l, ancestors: u } = this.getState(
3319
+ let i = o?.[0]?.__storyId__ || W.global.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId, { cursor: a, ancestors: l } = this.getState(
3082
3320
  i);
3083
- this.setState(i, { cursor: l + 1 });
3084
- let f = `${u.slice(-1)[0] || i} [${l}] ${e}`, { path: m = [], intercept: a = !1, retain: S = !1 } = s, g = typeof a == "function" ? a(e,
3085
- m) : a, h = { id: f, cursor: l, storyId: i, ancestors: u, path: m, method: e, args: o, interceptable: g, retain: S }, p = (g && !u.length ?
3086
- this.intercept : this.invoke).call(this, n, r, h, s);
3087
- return this.instrument(p, { ...s, mutate: !0, path: [{ __callId__: h.id }] });
3321
+ this.setState(i, { cursor: a + 1 });
3322
+ let m = `${l.slice(-1)[0] || i} [${a}] ${e}`, { path: p = [], intercept: f = !1, retain: S = !1 } = s, y = typeof f == "function" ? f(e,
3323
+ p) : f, g = { id: m, cursor: a, storyId: i, ancestors: l, path: p, method: e, args: o, interceptable: y, retain: S }, h = (y && !l.length ?
3324
+ this.intercept : this.invoke).call(this, n, r, g, s);
3325
+ return this.instrument(h, { ...s, mutate: !0, path: [{ __callId__: g.id }] });
3088
3326
  }
3089
3327
  intercept(e, n, r, o) {
3090
- let { chainedCallIds: s, isDebugging: i, playUntil: l } = this.getState(r.storyId), u = s.has(r.id);
3091
- return !i || u || l ? (l === r.id && this.setState(r.storyId, { playUntil: void 0 }), this.invoke(e, n, r, o)) : new Promise((f) => {
3092
- this.setState(r.storyId, ({ resolvers: m }) => ({
3328
+ let { chainedCallIds: s, isDebugging: i, playUntil: a } = this.getState(r.storyId), l = s.has(r.id);
3329
+ return !i || l || a ? (a === r.id && this.setState(r.storyId, { playUntil: void 0 }), this.invoke(e, n, r, o)) : new Promise((m) => {
3330
+ this.setState(r.storyId, ({ resolvers: p }) => ({
3093
3331
  isLocked: !1,
3094
- resolvers: { ...m, [r.id]: f }
3332
+ resolvers: { ...p, [r.id]: m }
3095
3333
  }));
3096
- }).then(() => (this.setState(r.storyId, (f) => {
3097
- let { [r.id]: m, ...a } = f.resolvers;
3098
- return { isLocked: !0, resolvers: a };
3334
+ }).then(() => (this.setState(r.storyId, (m) => {
3335
+ let { [r.id]: p, ...f } = m.resolvers;
3336
+ return { isLocked: !0, resolvers: f };
3099
3337
  }), this.invoke(e, n, r, o)));
3100
3338
  }
3101
3339
  invoke(e, n, r, o) {
3102
- let { callRefsByResult: s, renderPhase: i } = this.getState(r.storyId), l = 25, u = /* @__PURE__ */ c((a, S, g) => {
3103
- if (g.includes(a))
3340
+ let { callRefsByResult: s, renderPhase: i } = this.getState(r.storyId), a = 25, l = /* @__PURE__ */ c((f, S, y) => {
3341
+ if (y.includes(f))
3104
3342
  return "[Circular]";
3105
- if (g = [...g, a], S > l)
3343
+ if (y = [...y, f], S > a)
3106
3344
  return "...";
3107
- if (s.has(a))
3108
- return s.get(a);
3109
- if (a instanceof Array)
3110
- return a.map((h) => u(h, ++S, g));
3111
- if (a instanceof Date)
3112
- return { __date__: { value: a.toISOString() } };
3113
- if (a instanceof Error) {
3114
- let { name: h, message: y, stack: p } = a;
3115
- return { __error__: { name: h, message: y, stack: p } };
3345
+ if (s.has(f))
3346
+ return s.get(f);
3347
+ if (f instanceof Array)
3348
+ return f.map((g) => l(g, ++S, y));
3349
+ if (f instanceof Date)
3350
+ return { __date__: { value: f.toISOString() } };
3351
+ if (f instanceof Error) {
3352
+ let { name: g, message: u, stack: h } = f;
3353
+ return { __error__: { name: g, message: u, stack: h } };
3116
3354
  }
3117
- if (a instanceof RegExp) {
3118
- let { flags: h, source: y } = a;
3119
- return { __regexp__: { flags: h, source: y } };
3355
+ if (f instanceof RegExp) {
3356
+ let { flags: g, source: u } = f;
3357
+ return { __regexp__: { flags: g, source: u } };
3120
3358
  }
3121
- if (a instanceof U.global.window?.HTMLElement) {
3122
- let { prefix: h, localName: y, id: p, classList: b, innerText: E } = a, $ = Array.from(b);
3123
- return { __element__: { prefix: h, localName: y, id: p, classNames: $, innerText: E } };
3359
+ if (f instanceof W.global.window?.HTMLElement) {
3360
+ let { prefix: g, localName: u, id: h, classList: b, innerText: _ } = f, O = Array.from(b);
3361
+ return { __element__: { prefix: g, localName: u, id: h, classNames: O, innerText: _ } };
3124
3362
  }
3125
- return typeof a == "function" ? {
3126
- __function__: { name: "getMockName" in a ? a.getMockName() : a.name }
3127
- } : typeof a == "symbol" ? { __symbol__: { description: a.description } } : typeof a == "object" && a?.constructor?.name && a?.constructor?.
3128
- name !== "Object" ? { __class__: { name: a.constructor.name } } : Object.prototype.toString.call(a) === "[object Object]" ? Object.fromEntries(
3129
- Object.entries(a).map(([h, y]) => [h, u(y, ++S, g)])
3130
- ) : a;
3131
- }, "serializeValues"), f = {
3363
+ return typeof f == "function" ? {
3364
+ __function__: { name: "getMockName" in f ? f.getMockName() : f.name }
3365
+ } : typeof f == "symbol" ? { __symbol__: { description: f.description } } : typeof f == "object" && f?.constructor?.name && f?.constructor?.
3366
+ name !== "Object" ? { __class__: { name: f.constructor.name } } : Object.prototype.toString.call(f) === "[object Object]" ? Object.fromEntries(
3367
+ Object.entries(f).map(([g, u]) => [g, l(u, ++S, y)])
3368
+ ) : f;
3369
+ }, "serializeValues"), m = {
3132
3370
  ...r,
3133
- args: r.args.map((a) => u(a, 0, []))
3371
+ args: r.args.map((f) => l(f, 0, []))
3134
3372
  };
3135
- r.path.forEach((a) => {
3136
- a?.__callId__ && this.setState(r.storyId, ({ chainedCallIds: S }) => ({
3137
- chainedCallIds: new Set(Array.from(S).concat(a.__callId__))
3373
+ r.path.forEach((f) => {
3374
+ f?.__callId__ && this.setState(r.storyId, ({ chainedCallIds: S }) => ({
3375
+ chainedCallIds: new Set(Array.from(S).concat(f.__callId__))
3138
3376
  }));
3139
3377
  });
3140
- let m = /* @__PURE__ */ c((a) => {
3141
- if (a instanceof Error) {
3142
- let { name: S, message: g, stack: h, callId: y = r.id } = a, {
3143
- showDiff: p = void 0,
3378
+ let p = /* @__PURE__ */ c((f) => {
3379
+ if (f instanceof Error) {
3380
+ let { name: S, message: y, stack: g, callId: u = r.id } = f, {
3381
+ showDiff: h = void 0,
3144
3382
  diff: b = void 0,
3145
- actual: E = void 0,
3146
- expected: $ = void 0
3147
- } = a.name === "AssertionError" ? Ae(a) : a, d = { name: S, message: g, stack: h, callId: y, showDiff: p, diff: b, actual: E, expected: $ };
3148
- if (this.update({ ...f, status: "error", exception: d }), this.setState(r.storyId, (_) => ({
3383
+ actual: _ = void 0,
3384
+ expected: O = void 0
3385
+ } = f.name === "AssertionError" ? Pe(f) : f, d = { name: S, message: y, stack: g, callId: u, showDiff: h, diff: b, actual: _, expected: O };
3386
+ if (this.update({ ...m, status: "error", exception: d }), this.setState(r.storyId, (E) => ({
3149
3387
  callRefsByResult: new Map([
3150
- ...Array.from(_.callRefsByResult.entries()),
3151
- [a, { __callId__: r.id, retain: r.retain }]
3388
+ ...Array.from(E.callRefsByResult.entries()),
3389
+ [f, { __callId__: r.id, retain: r.retain }]
3152
3390
  ])
3153
3391
  })), r.ancestors?.length)
3154
- throw Object.prototype.hasOwnProperty.call(a, "callId") || Object.defineProperty(a, "callId", { value: r.id }), a;
3392
+ throw Object.prototype.hasOwnProperty.call(f, "callId") || Object.defineProperty(f, "callId", { value: r.id }), f;
3155
3393
  }
3156
- throw a;
3394
+ throw f;
3157
3395
  }, "handleException");
3158
3396
  try {
3159
3397
  if (i === "played" && !r.retain)
3160
- throw js;
3161
- let S = (o.getArgs ? o.getArgs(r, this.getState(r.storyId)) : r.args).map((h) => typeof h != "function" || Object.keys(h).length ? h :
3162
- (...y) => {
3163
- let { cursor: p, ancestors: b } = this.getState(r.storyId);
3398
+ throw ei;
3399
+ let S = (o.getArgs ? o.getArgs(r, this.getState(r.storyId)) : r.args).map((g) => typeof g != "function" || Object.keys(g).length ? g :
3400
+ (...u) => {
3401
+ let { cursor: h, ancestors: b } = this.getState(r.storyId);
3164
3402
  this.setState(r.storyId, { cursor: 0, ancestors: [...b, r.id] });
3165
- let E = /* @__PURE__ */ c(() => this.setState(r.storyId, { cursor: p, ancestors: b }), "restore"), $ = !1;
3403
+ let _ = /* @__PURE__ */ c(() => this.setState(r.storyId, { cursor: h, ancestors: b }), "restore"), O = !1;
3166
3404
  try {
3167
- let d = h(...y);
3168
- return d instanceof Promise ? ($ = !0, d.finally(E)) : d;
3405
+ let d = g(...u);
3406
+ return d instanceof Promise ? (O = !0, d.finally(_)) : d;
3169
3407
  } finally {
3170
- $ || E();
3408
+ O || _();
3171
3409
  }
3172
- }), g = e.apply(n, S);
3173
- return g && ["object", "function", "symbol"].includes(typeof g) && this.setState(r.storyId, (h) => ({
3410
+ }), y = e.apply(n, S);
3411
+ return y && ["object", "function", "symbol"].includes(typeof y) && this.setState(r.storyId, (g) => ({
3174
3412
  callRefsByResult: new Map([
3175
- ...Array.from(h.callRefsByResult.entries()),
3176
- [g, { __callId__: r.id, retain: r.retain }]
3413
+ ...Array.from(g.callRefsByResult.entries()),
3414
+ [y, { __callId__: r.id, retain: r.retain }]
3177
3415
  ])
3178
3416
  })), this.update({
3179
- ...f,
3180
- status: g instanceof Promise ? "active" : "done"
3181
- }), g instanceof Promise ? g.then((h) => (this.update({ ...f, status: "done" }), h), m) : g;
3182
- } catch (a) {
3183
- return m(a);
3417
+ ...m,
3418
+ status: y instanceof Promise ? "active" : "done"
3419
+ }), y instanceof Promise ? y.then((g) => (this.update({ ...m, status: "done" }), g), p) : y;
3420
+ } catch (f) {
3421
+ return p(f);
3184
3422
  }
3185
3423
  }
3186
3424
  // Sends the call info to the manager and synchronizes the log.
3187
3425
  update(e) {
3188
- this.channel?.emit(nt.CALL, e), this.setState(e.storyId, ({ calls: n }) => {
3426
+ this.channel?.emit(ot.CALL, e), this.setState(e.storyId, ({ calls: n }) => {
3189
3427
  let r = n.concat(e).reduce((o, s) => Object.assign(o, { [s.id]: s }), {});
3190
3428
  return {
3191
3429
  // Calls are sorted to ensure parent calls always come before calls in their callback.
@@ -3199,40 +3437,40 @@ prototype.toString.call(t) === "[object Module]", "isModule"), Fs = /* @__PURE__
3199
3437
  // Uses a 0ms debounce because this might get called many times in one tick.
3200
3438
  sync(e) {
3201
3439
  let n = /* @__PURE__ */ c(() => {
3202
- let { isLocked: r, isPlaying: o } = this.getState(e), s = this.getLog(e), i = s.filter(({ ancestors: a }) => !a.length).find((a) => a.
3203
- status === "waiting")?.callId, l = s.some((a) => a.status === "active");
3204
- if (r || l || s.length === 0) {
3205
- let a = { controlStates: Qn, logItems: s };
3206
- this.channel?.emit(nt.SYNC, a);
3440
+ let { isLocked: r, isPlaying: o } = this.getState(e), s = this.getLog(e), i = s.filter(({ ancestors: f }) => !f.length).find((f) => f.
3441
+ status === "waiting")?.callId, a = s.some((f) => f.status === "active");
3442
+ if (r || a || s.length === 0) {
3443
+ let f = { controlStates: ur, logItems: s };
3444
+ this.channel?.emit(ot.SYNC, f);
3207
3445
  return;
3208
3446
  }
3209
- let u = s.some(
3210
- (a) => a.status === "done" || a.status === "error"
3211
- ), m = { controlStates: {
3212
- start: u,
3213
- back: u,
3447
+ let l = s.some(
3448
+ (f) => f.status === "done" || f.status === "error"
3449
+ ), p = { controlStates: {
3450
+ start: l,
3451
+ back: l,
3214
3452
  goto: !0,
3215
3453
  next: o,
3216
3454
  end: o
3217
3455
  }, logItems: s, pausedAt: i };
3218
- this.channel?.emit(nt.SYNC, m);
3456
+ this.channel?.emit(ot.SYNC, p);
3219
3457
  }, "synchronize");
3220
3458
  this.setState(e, ({ syncTimeout: r }) => (clearTimeout(r), { syncTimeout: setTimeout(n, 0) }));
3221
3459
  }
3222
3460
  };
3223
- function nr(t, e = {}) {
3461
+ function mr(t, e = {}) {
3224
3462
  try {
3225
3463
  let n = !1, r = !1;
3226
- return U.global.window?.location?.search?.includes("instrument=true") ? n = !0 : U.global.window?.location?.search?.includes("instrument\
3227
- =false") && (r = !0), U.global.window?.parent === U.global.window && !n || r ? t : (U.global.window && !U.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ &&
3228
- (U.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ = new Ie()), (U.global.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).
3464
+ return W.global.window?.location?.search?.includes("instrument=true") ? n = !0 : W.global.window?.location?.search?.includes("instrument\
3465
+ =false") && (r = !0), W.global.window?.parent === W.global.window && !n || r ? t : (W.global.window && !W.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ &&
3466
+ (W.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ = new Me()), (W.global.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).
3229
3467
  instrument(t, e));
3230
3468
  } catch (n) {
3231
- return er.once.warn(n), t;
3469
+ return fr.once.warn(n), t;
3232
3470
  }
3233
3471
  }
3234
- c(nr, "instrument");
3235
- function Bs(t, e) {
3472
+ c(mr, "instrument");
3473
+ function si(t, e) {
3236
3474
  let n = t;
3237
3475
  for (; n != null; ) {
3238
3476
  let r = Object.getOwnPropertyDescriptor(n, e);
@@ -3241,4 +3479,4 @@ function Bs(t, e) {
3241
3479
  n = Object.getPrototypeOf(n);
3242
3480
  }
3243
3481
  }
3244
- c(Bs, "getPropertyDescriptor");
3482
+ c(si, "getPropertyDescriptor");