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