@rstest/core 0.9.4 → 0.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/LICENSE.md +0 -228
  2. package/dist/0~8843.js +23 -13
  3. package/dist/0~browserLoader.js +1 -1
  4. package/dist/0~browser~1.js +4 -4
  5. package/dist/0~checkThresholds.js +1 -1
  6. package/dist/0~console.js +1 -1
  7. package/dist/0~fake-timers.js +1483 -0
  8. package/dist/0~generate.js +4 -3
  9. package/dist/0~happyDom.js +1 -1
  10. package/dist/0~jsdom.js +1 -1
  11. package/dist/0~listTests.js +3 -3
  12. package/dist/0~loadModule.js +1 -1
  13. package/dist/0~runTests.js +11 -4
  14. package/dist/0~snapshot.js +2140 -0
  15. package/dist/0~snapshot.js.LICENSE.txt +7 -0
  16. package/dist/0~utils.js +1 -1
  17. package/dist/1949.js +2919 -9808
  18. package/dist/1949.js.LICENSE.txt +1 -49
  19. package/dist/3145.js +318 -36
  20. package/dist/4411.js +232 -47
  21. package/dist/6830.js +61 -9
  22. package/dist/7552.js +22 -4918
  23. package/dist/9743.js +1982 -0
  24. package/dist/9784.js +1343 -0
  25. package/dist/{7552.js.LICENSE.txt → 9784.js.LICENSE.txt} +19 -8
  26. package/dist/browser-runtime/2~fake-timers.js +1653 -0
  27. package/dist/browser-runtime/2~snapshot.js +2138 -0
  28. package/dist/browser-runtime/2~snapshot.js.LICENSE.txt +7 -0
  29. package/dist/browser-runtime/723.js +2055 -10605
  30. package/dist/browser-runtime/723.js.LICENSE.txt +0 -17
  31. package/dist/browser-runtime/index.d.ts +189 -11
  32. package/dist/browser-runtime/rslib-runtime.js +0 -7
  33. package/dist/browser.d.ts +39 -5
  34. package/dist/browser.js +2 -2
  35. package/dist/globalSetupWorker.js +1 -1
  36. package/dist/index.d.ts +39 -5
  37. package/dist/mockRuntimeCode.js +2 -0
  38. package/dist/worker.d.ts +31 -5
  39. package/dist/worker.js +11 -9
  40. package/package.json +21 -22
package/dist/9784.js ADDED
@@ -0,0 +1,1343 @@
1
+ /*! LICENSE: 9784.js.LICENSE.txt */
2
+ import "node:module";
3
+ import { __webpack_require__ } from "./rslib-runtime.js";
4
+ import { isatty } from "node:tty";
5
+ var dist_namespaceObject = {};
6
+ __webpack_require__.r(dist_namespaceObject);
7
+ __webpack_require__.d(dist_namespaceObject, {
8
+ DEFAULT_OPTIONS: ()=>DEFAULT_OPTIONS,
9
+ format: ()=>format,
10
+ plugins: ()=>dist_plugins
11
+ });
12
+ var chunk_BVHSVHOK_f = {
13
+ reset: [
14
+ 0,
15
+ 0
16
+ ],
17
+ bold: [
18
+ 1,
19
+ 22,
20
+ "\x1B[22m\x1B[1m"
21
+ ],
22
+ dim: [
23
+ 2,
24
+ 22,
25
+ "\x1B[22m\x1B[2m"
26
+ ],
27
+ italic: [
28
+ 3,
29
+ 23
30
+ ],
31
+ underline: [
32
+ 4,
33
+ 24
34
+ ],
35
+ inverse: [
36
+ 7,
37
+ 27
38
+ ],
39
+ hidden: [
40
+ 8,
41
+ 28
42
+ ],
43
+ strikethrough: [
44
+ 9,
45
+ 29
46
+ ],
47
+ black: [
48
+ 30,
49
+ 39
50
+ ],
51
+ red: [
52
+ 31,
53
+ 39
54
+ ],
55
+ green: [
56
+ 32,
57
+ 39
58
+ ],
59
+ yellow: [
60
+ 33,
61
+ 39
62
+ ],
63
+ blue: [
64
+ 34,
65
+ 39
66
+ ],
67
+ magenta: [
68
+ 35,
69
+ 39
70
+ ],
71
+ cyan: [
72
+ 36,
73
+ 39
74
+ ],
75
+ white: [
76
+ 37,
77
+ 39
78
+ ],
79
+ gray: [
80
+ 90,
81
+ 39
82
+ ],
83
+ bgBlack: [
84
+ 40,
85
+ 49
86
+ ],
87
+ bgRed: [
88
+ 41,
89
+ 49
90
+ ],
91
+ bgGreen: [
92
+ 42,
93
+ 49
94
+ ],
95
+ bgYellow: [
96
+ 43,
97
+ 49
98
+ ],
99
+ bgBlue: [
100
+ 44,
101
+ 49
102
+ ],
103
+ bgMagenta: [
104
+ 45,
105
+ 49
106
+ ],
107
+ bgCyan: [
108
+ 46,
109
+ 49
110
+ ],
111
+ bgWhite: [
112
+ 47,
113
+ 49
114
+ ],
115
+ blackBright: [
116
+ 90,
117
+ 39
118
+ ],
119
+ redBright: [
120
+ 91,
121
+ 39
122
+ ],
123
+ greenBright: [
124
+ 92,
125
+ 39
126
+ ],
127
+ yellowBright: [
128
+ 93,
129
+ 39
130
+ ],
131
+ blueBright: [
132
+ 94,
133
+ 39
134
+ ],
135
+ magentaBright: [
136
+ 95,
137
+ 39
138
+ ],
139
+ cyanBright: [
140
+ 96,
141
+ 39
142
+ ],
143
+ whiteBright: [
144
+ 97,
145
+ 39
146
+ ],
147
+ bgBlackBright: [
148
+ 100,
149
+ 49
150
+ ],
151
+ bgRedBright: [
152
+ 101,
153
+ 49
154
+ ],
155
+ bgGreenBright: [
156
+ 102,
157
+ 49
158
+ ],
159
+ bgYellowBright: [
160
+ 103,
161
+ 49
162
+ ],
163
+ bgBlueBright: [
164
+ 104,
165
+ 49
166
+ ],
167
+ bgMagentaBright: [
168
+ 105,
169
+ 49
170
+ ],
171
+ bgCyanBright: [
172
+ 106,
173
+ 49
174
+ ],
175
+ bgWhiteBright: [
176
+ 107,
177
+ 49
178
+ ]
179
+ }, chunk_BVHSVHOK_h = Object.entries(chunk_BVHSVHOK_f);
180
+ function chunk_BVHSVHOK_a(n) {
181
+ return String(n);
182
+ }
183
+ chunk_BVHSVHOK_a.open = "";
184
+ chunk_BVHSVHOK_a.close = "";
185
+ function C(n = !1) {
186
+ let e = "u" > typeof process ? process : void 0, i = (null == e ? void 0 : e.env) || {}, g = (null == e ? void 0 : e.argv) || [];
187
+ return !("NO_COLOR" in i || g.includes("--no-color")) && ("FORCE_COLOR" in i || g.includes("--color") || (null == e ? void 0 : e.platform) === "win32" || n && "dumb" !== i.TERM || "CI" in i) || "u" > typeof window && !!window.chrome;
188
+ }
189
+ function chunk_BVHSVHOK_p(n = !1) {
190
+ let e = C(n), i = (r, t, c, o)=>{
191
+ let l = "", s = 0;
192
+ do l += r.substring(s, o) + c, s = o + t.length, o = r.indexOf(t, s);
193
+ while (~o);
194
+ return l + r.substring(s);
195
+ }, g = (r, t, c = r)=>{
196
+ let o = (l)=>{
197
+ let s = String(l), b = s.indexOf(t, r.length);
198
+ return ~b ? r + i(s, t, c, b) + t : r + s + t;
199
+ };
200
+ return o.open = r, o.close = t, o;
201
+ }, u = {
202
+ isColorSupported: e
203
+ }, d = (r)=>`\x1B[${r}m`;
204
+ for (let [r, t] of chunk_BVHSVHOK_h)u[r] = e ? g(d(t[0]), d(t[1]), t[2]) : chunk_BVHSVHOK_a;
205
+ return u;
206
+ }
207
+ var node_r = void 0 !== process.env.FORCE_TTY || isatty(1);
208
+ var node_u = chunk_BVHSVHOK_p(node_r);
209
+ function _mergeNamespaces(n, m) {
210
+ m.forEach(function(e) {
211
+ e && 'string' != typeof e && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
212
+ if ('default' !== k && !(k in n)) {
213
+ var d = Object.getOwnPropertyDescriptor(e, k);
214
+ Object.defineProperty(n, k, d.get ? d : {
215
+ enumerable: true,
216
+ get: function() {
217
+ return e[k];
218
+ }
219
+ });
220
+ }
221
+ });
222
+ });
223
+ return Object.freeze(n);
224
+ }
225
+ function getKeysOfEnumerableProperties(object, compareKeys) {
226
+ const rawKeys = Object.keys(object);
227
+ const keys = null === compareKeys ? rawKeys : rawKeys.sort(compareKeys);
228
+ if (Object.getOwnPropertySymbols) {
229
+ for (const symbol of Object.getOwnPropertySymbols(object))if (Object.getOwnPropertyDescriptor(object, symbol).enumerable) keys.push(symbol);
230
+ }
231
+ return keys;
232
+ }
233
+ function printIteratorEntries(iterator, config, indentation, depth, refs, printer, separator = ": ") {
234
+ let result = "";
235
+ let width = 0;
236
+ let current = iterator.next();
237
+ if (!current.done) {
238
+ result += config.spacingOuter;
239
+ const indentationNext = indentation + config.indent;
240
+ while(!current.done){
241
+ result += indentationNext;
242
+ if (width++ === config.maxWidth) {
243
+ result += "…";
244
+ break;
245
+ }
246
+ const name = printer(current.value[0], config, indentationNext, depth, refs);
247
+ const value = printer(current.value[1], config, indentationNext, depth, refs);
248
+ result += name + separator + value;
249
+ current = iterator.next();
250
+ if (current.done) {
251
+ if (!config.min) result += ",";
252
+ } else result += `,${config.spacingInner}`;
253
+ }
254
+ result += config.spacingOuter + indentation;
255
+ }
256
+ return result;
257
+ }
258
+ function printIteratorValues(iterator, config, indentation, depth, refs, printer) {
259
+ let result = "";
260
+ let width = 0;
261
+ let current = iterator.next();
262
+ if (!current.done) {
263
+ result += config.spacingOuter;
264
+ const indentationNext = indentation + config.indent;
265
+ while(!current.done){
266
+ result += indentationNext;
267
+ if (width++ === config.maxWidth) {
268
+ result += "…";
269
+ break;
270
+ }
271
+ result += printer(current.value, config, indentationNext, depth, refs);
272
+ current = iterator.next();
273
+ if (current.done) {
274
+ if (!config.min) result += ",";
275
+ } else result += `,${config.spacingInner}`;
276
+ }
277
+ result += config.spacingOuter + indentation;
278
+ }
279
+ return result;
280
+ }
281
+ function printListItems(list, config, indentation, depth, refs, printer) {
282
+ let result = "";
283
+ list = list instanceof ArrayBuffer ? new DataView(list) : list;
284
+ const isDataView = (l)=>l instanceof DataView;
285
+ const length = isDataView(list) ? list.byteLength : list.length;
286
+ if (length > 0) {
287
+ result += config.spacingOuter;
288
+ const indentationNext = indentation + config.indent;
289
+ for(let i = 0; i < length; i++){
290
+ result += indentationNext;
291
+ if (i === config.maxWidth) {
292
+ result += "…";
293
+ break;
294
+ }
295
+ if (isDataView(list) || i in list) result += printer(isDataView(list) ? list.getInt8(i) : list[i], config, indentationNext, depth, refs);
296
+ if (i < length - 1) result += `,${config.spacingInner}`;
297
+ else if (!config.min) result += ",";
298
+ }
299
+ result += config.spacingOuter + indentation;
300
+ }
301
+ return result;
302
+ }
303
+ function printObjectProperties(val, config, indentation, depth, refs, printer) {
304
+ let result = "";
305
+ const keys = getKeysOfEnumerableProperties(val, config.compareKeys);
306
+ if (keys.length > 0) {
307
+ result += config.spacingOuter;
308
+ const indentationNext = indentation + config.indent;
309
+ for(let i = 0; i < keys.length; i++){
310
+ const key = keys[i];
311
+ const name = printer(key, config, indentationNext, depth, refs);
312
+ const value = printer(val[key], config, indentationNext, depth, refs);
313
+ result += `${indentationNext + name}: ${value}`;
314
+ if (i < keys.length - 1) result += `,${config.spacingInner}`;
315
+ else if (!config.min) result += ",";
316
+ }
317
+ result += config.spacingOuter + indentation;
318
+ }
319
+ return result;
320
+ }
321
+ const asymmetricMatcher = "function" == typeof Symbol && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621;
322
+ const SPACE$2 = " ";
323
+ const serialize$5 = (val, config, indentation, depth, refs, printer)=>{
324
+ const stringedValue = val.toString();
325
+ if ("ArrayContaining" === stringedValue || "ArrayNotContaining" === stringedValue) {
326
+ if (++depth > config.maxDepth) return `[${stringedValue}]`;
327
+ return `${stringedValue + SPACE$2}[${printListItems(val.sample, config, indentation, depth, refs, printer)}]`;
328
+ }
329
+ if ("ObjectContaining" === stringedValue || "ObjectNotContaining" === stringedValue) {
330
+ if (++depth > config.maxDepth) return `[${stringedValue}]`;
331
+ return `${stringedValue + SPACE$2}{${printObjectProperties(val.sample, config, indentation, depth, refs, printer)}}`;
332
+ }
333
+ if ("StringMatching" === stringedValue || "StringNotMatching" === stringedValue) return stringedValue + SPACE$2 + printer(val.sample, config, indentation, depth, refs);
334
+ if ("StringContaining" === stringedValue || "StringNotContaining" === stringedValue) return stringedValue + SPACE$2 + printer(val.sample, config, indentation, depth, refs);
335
+ if ("function" != typeof val.toAsymmetricMatcher) throw new TypeError(`Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`);
336
+ return val.toAsymmetricMatcher();
337
+ };
338
+ const test$5 = (val)=>val && val.$$typeof === asymmetricMatcher;
339
+ const plugin$5 = {
340
+ serialize: serialize$5,
341
+ test: test$5
342
+ };
343
+ const SPACE$1 = " ";
344
+ const OBJECT_NAMES = new Set([
345
+ "DOMStringMap",
346
+ "NamedNodeMap"
347
+ ]);
348
+ const ARRAY_REGEXP = /^(?:HTML\w*Collection|NodeList)$/;
349
+ function testName(name) {
350
+ return OBJECT_NAMES.has(name) || ARRAY_REGEXP.test(name);
351
+ }
352
+ const test$4 = (val)=>val && val.constructor && !!val.constructor.name && testName(val.constructor.name);
353
+ function isNamedNodeMap(collection) {
354
+ return "NamedNodeMap" === collection.constructor.name;
355
+ }
356
+ const serialize$4 = (collection, config, indentation, depth, refs, printer)=>{
357
+ const name = collection.constructor.name;
358
+ if (++depth > config.maxDepth) return `[${name}]`;
359
+ return (config.min ? "" : name + SPACE$1) + (OBJECT_NAMES.has(name) ? `{${printObjectProperties(isNamedNodeMap(collection) ? [
360
+ ...collection
361
+ ].reduce((props, attribute)=>{
362
+ props[attribute.name] = attribute.value;
363
+ return props;
364
+ }, {}) : {
365
+ ...collection
366
+ }, config, indentation, depth, refs, printer)}}` : `[${printListItems([
367
+ ...collection
368
+ ], config, indentation, depth, refs, printer)}]`);
369
+ };
370
+ const plugin$4 = {
371
+ serialize: serialize$4,
372
+ test: test$4
373
+ };
374
+ function escapeHTML(str) {
375
+ return str.replaceAll("<", "&lt;").replaceAll(">", "&gt;");
376
+ }
377
+ function printProps(keys, props, config, indentation, depth, refs, printer) {
378
+ const indentationNext = indentation + config.indent;
379
+ const colors = config.colors;
380
+ return keys.map((key)=>{
381
+ const value = props[key];
382
+ let printed = printer(value, config, indentationNext, depth, refs);
383
+ if ("string" != typeof value) {
384
+ if (printed.includes("\n")) printed = config.spacingOuter + indentationNext + printed + config.spacingOuter + indentation;
385
+ printed = `{${printed}}`;
386
+ }
387
+ return `${config.spacingInner + indentation + colors.prop.open + key + colors.prop.close}=${colors.value.open}${printed}${colors.value.close}`;
388
+ }).join("");
389
+ }
390
+ function printChildren(children, config, indentation, depth, refs, printer) {
391
+ return children.map((child)=>config.spacingOuter + indentation + ("string" == typeof child ? printText(child, config) : printer(child, config, indentation, depth, refs))).join("");
392
+ }
393
+ function printText(text, config) {
394
+ const contentColor = config.colors.content;
395
+ return contentColor.open + escapeHTML(text) + contentColor.close;
396
+ }
397
+ function printComment(comment, config) {
398
+ const commentColor = config.colors.comment;
399
+ return `${commentColor.open}<!--${escapeHTML(comment)}-->${commentColor.close}`;
400
+ }
401
+ function printElement(type, printedProps, printedChildren, config, indentation) {
402
+ const tagColor = config.colors.tag;
403
+ return `${tagColor.open}<${type}${printedProps && tagColor.close + printedProps + config.spacingOuter + indentation + tagColor.open}${printedChildren ? `>${tagColor.close}${printedChildren}${config.spacingOuter}${indentation}${tagColor.open}</${type}` : `${printedProps && !config.min ? "" : " "}/`}>${tagColor.close}`;
404
+ }
405
+ function printElementAsLeaf(type, config) {
406
+ const tagColor = config.colors.tag;
407
+ return `${tagColor.open}<${type}${tagColor.close} …${tagColor.open} />${tagColor.close}`;
408
+ }
409
+ const ELEMENT_NODE = 1;
410
+ const TEXT_NODE = 3;
411
+ const COMMENT_NODE = 8;
412
+ const FRAGMENT_NODE = 11;
413
+ const ELEMENT_REGEXP = /^(?:(?:HTML|SVG)\w*)?Element$/;
414
+ function testHasAttribute(val) {
415
+ try {
416
+ return "function" == typeof val.hasAttribute && val.hasAttribute("is");
417
+ } catch {
418
+ return false;
419
+ }
420
+ }
421
+ function testNode(val) {
422
+ const constructorName = val.constructor.name;
423
+ const { nodeType, tagName } = val;
424
+ const isCustomElement = "string" == typeof tagName && tagName.includes("-") || testHasAttribute(val);
425
+ return nodeType === ELEMENT_NODE && (ELEMENT_REGEXP.test(constructorName) || isCustomElement) || nodeType === TEXT_NODE && "Text" === constructorName || nodeType === COMMENT_NODE && "Comment" === constructorName || nodeType === FRAGMENT_NODE && "DocumentFragment" === constructorName;
426
+ }
427
+ const test$3 = (val)=>{
428
+ var _val$constructor;
429
+ return (null == val || null == (_val$constructor = val.constructor) ? void 0 : _val$constructor.name) && testNode(val);
430
+ };
431
+ function nodeIsText(node) {
432
+ return node.nodeType === TEXT_NODE;
433
+ }
434
+ function nodeIsComment(node) {
435
+ return node.nodeType === COMMENT_NODE;
436
+ }
437
+ function nodeIsFragment(node) {
438
+ return node.nodeType === FRAGMENT_NODE;
439
+ }
440
+ const serialize$3 = (node, config, indentation, depth, refs, printer)=>{
441
+ if (nodeIsText(node)) return printText(node.data, config);
442
+ if (nodeIsComment(node)) return printComment(node.data, config);
443
+ const type = nodeIsFragment(node) ? "DocumentFragment" : node.tagName.toLowerCase();
444
+ if (++depth > config.maxDepth) return printElementAsLeaf(type, config);
445
+ return printElement(type, printProps(nodeIsFragment(node) ? [] : Array.from(node.attributes, (attr)=>attr.name).sort(), nodeIsFragment(node) ? {} : [
446
+ ...node.attributes
447
+ ].reduce((props, attribute)=>{
448
+ props[attribute.name] = attribute.value;
449
+ return props;
450
+ }, {}), config, indentation + config.indent, depth, refs, printer), printChildren(Array.prototype.slice.call(node.childNodes || node.children), config, indentation + config.indent, depth, refs, printer), config, indentation);
451
+ };
452
+ const plugin$3 = {
453
+ serialize: serialize$3,
454
+ test: test$3
455
+ };
456
+ const IS_ITERABLE_SENTINEL = "@@__IMMUTABLE_ITERABLE__@@";
457
+ const IS_LIST_SENTINEL = "@@__IMMUTABLE_LIST__@@";
458
+ const IS_KEYED_SENTINEL = "@@__IMMUTABLE_KEYED__@@";
459
+ const IS_MAP_SENTINEL = "@@__IMMUTABLE_MAP__@@";
460
+ const IS_ORDERED_SENTINEL = "@@__IMMUTABLE_ORDERED__@@";
461
+ const IS_RECORD_SENTINEL = "@@__IMMUTABLE_RECORD__@@";
462
+ const IS_SEQ_SENTINEL = "@@__IMMUTABLE_SEQ__@@";
463
+ const IS_SET_SENTINEL = "@@__IMMUTABLE_SET__@@";
464
+ const IS_STACK_SENTINEL = "@@__IMMUTABLE_STACK__@@";
465
+ const getImmutableName = (name)=>`Immutable.${name}`;
466
+ const printAsLeaf = (name)=>`[${name}]`;
467
+ const SPACE = " ";
468
+ const LAZY = "…";
469
+ function printImmutableEntries(val, config, indentation, depth, refs, printer, type) {
470
+ return ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}{${printIteratorEntries(val.entries(), config, indentation, depth, refs, printer)}}`;
471
+ }
472
+ function getRecordEntries(val) {
473
+ let i = 0;
474
+ return {
475
+ next () {
476
+ if (i < val._keys.length) {
477
+ const key = val._keys[i++];
478
+ return {
479
+ done: false,
480
+ value: [
481
+ key,
482
+ val.get(key)
483
+ ]
484
+ };
485
+ }
486
+ return {
487
+ done: true,
488
+ value: void 0
489
+ };
490
+ }
491
+ };
492
+ }
493
+ function printImmutableRecord(val, config, indentation, depth, refs, printer) {
494
+ const name = getImmutableName(val._name || "Record");
495
+ return ++depth > config.maxDepth ? printAsLeaf(name) : `${name + SPACE}{${printIteratorEntries(getRecordEntries(val), config, indentation, depth, refs, printer)}}`;
496
+ }
497
+ function printImmutableSeq(val, config, indentation, depth, refs, printer) {
498
+ const name = getImmutableName("Seq");
499
+ if (++depth > config.maxDepth) return printAsLeaf(name);
500
+ if (val[IS_KEYED_SENTINEL]) return `${name + SPACE}{${val._iter || val._object ? printIteratorEntries(val.entries(), config, indentation, depth, refs, printer) : LAZY}}`;
501
+ return `${name + SPACE}[${val._iter || val._array || val._collection || val._iterable ? printIteratorValues(val.values(), config, indentation, depth, refs, printer) : LAZY}]`;
502
+ }
503
+ function printImmutableValues(val, config, indentation, depth, refs, printer, type) {
504
+ return ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}[${printIteratorValues(val.values(), config, indentation, depth, refs, printer)}]`;
505
+ }
506
+ const serialize$2 = (val, config, indentation, depth, refs, printer)=>{
507
+ if (val[IS_MAP_SENTINEL]) return printImmutableEntries(val, config, indentation, depth, refs, printer, val[IS_ORDERED_SENTINEL] ? "OrderedMap" : "Map");
508
+ if (val[IS_LIST_SENTINEL]) return printImmutableValues(val, config, indentation, depth, refs, printer, "List");
509
+ if (val[IS_SET_SENTINEL]) return printImmutableValues(val, config, indentation, depth, refs, printer, val[IS_ORDERED_SENTINEL] ? "OrderedSet" : "Set");
510
+ if (val[IS_STACK_SENTINEL]) return printImmutableValues(val, config, indentation, depth, refs, printer, "Stack");
511
+ if (val[IS_SEQ_SENTINEL]) return printImmutableSeq(val, config, indentation, depth, refs, printer);
512
+ return printImmutableRecord(val, config, indentation, depth, refs, printer);
513
+ };
514
+ const test$2 = (val)=>val && (true === val[IS_ITERABLE_SENTINEL] || true === val[IS_RECORD_SENTINEL]);
515
+ const plugin$2 = {
516
+ serialize: serialize$2,
517
+ test: test$2
518
+ };
519
+ function getDefaultExportFromCjs(x) {
520
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
521
+ }
522
+ var reactIs$1 = {
523
+ exports: {}
524
+ };
525
+ var reactIs_production = {};
526
+ /**
527
+ * @license React
528
+ * react-is.production.js
529
+ *
530
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
531
+ *
532
+ * This source code is licensed under the MIT license found in the
533
+ * LICENSE file in the root directory of this source tree.
534
+ */ var hasRequiredReactIs_production;
535
+ function requireReactIs_production() {
536
+ if (hasRequiredReactIs_production) return reactIs_production;
537
+ hasRequiredReactIs_production = 1;
538
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
539
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
540
+ function typeOf(object) {
541
+ if ("object" == typeof object && null !== object) {
542
+ var $$typeof = object.$$typeof;
543
+ switch($$typeof){
544
+ case REACT_ELEMENT_TYPE:
545
+ switch(object = object.type){
546
+ case REACT_FRAGMENT_TYPE:
547
+ case REACT_PROFILER_TYPE:
548
+ case REACT_STRICT_MODE_TYPE:
549
+ case REACT_SUSPENSE_TYPE:
550
+ case REACT_SUSPENSE_LIST_TYPE:
551
+ case REACT_VIEW_TRANSITION_TYPE:
552
+ return object;
553
+ default:
554
+ switch(object = object && object.$$typeof){
555
+ case REACT_CONTEXT_TYPE:
556
+ case REACT_FORWARD_REF_TYPE:
557
+ case REACT_LAZY_TYPE:
558
+ case REACT_MEMO_TYPE:
559
+ return object;
560
+ case REACT_CONSUMER_TYPE:
561
+ return object;
562
+ default:
563
+ return $$typeof;
564
+ }
565
+ }
566
+ case REACT_PORTAL_TYPE:
567
+ return $$typeof;
568
+ }
569
+ }
570
+ }
571
+ reactIs_production.ContextConsumer = REACT_CONSUMER_TYPE;
572
+ reactIs_production.ContextProvider = REACT_CONTEXT_TYPE;
573
+ reactIs_production.Element = REACT_ELEMENT_TYPE;
574
+ reactIs_production.ForwardRef = REACT_FORWARD_REF_TYPE;
575
+ reactIs_production.Fragment = REACT_FRAGMENT_TYPE;
576
+ reactIs_production.Lazy = REACT_LAZY_TYPE;
577
+ reactIs_production.Memo = REACT_MEMO_TYPE;
578
+ reactIs_production.Portal = REACT_PORTAL_TYPE;
579
+ reactIs_production.Profiler = REACT_PROFILER_TYPE;
580
+ reactIs_production.StrictMode = REACT_STRICT_MODE_TYPE;
581
+ reactIs_production.Suspense = REACT_SUSPENSE_TYPE;
582
+ reactIs_production.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
583
+ reactIs_production.isContextConsumer = function(object) {
584
+ return typeOf(object) === REACT_CONSUMER_TYPE;
585
+ };
586
+ reactIs_production.isContextProvider = function(object) {
587
+ return typeOf(object) === REACT_CONTEXT_TYPE;
588
+ };
589
+ reactIs_production.isElement = function(object) {
590
+ return "object" == typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
591
+ };
592
+ reactIs_production.isForwardRef = function(object) {
593
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
594
+ };
595
+ reactIs_production.isFragment = function(object) {
596
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
597
+ };
598
+ reactIs_production.isLazy = function(object) {
599
+ return typeOf(object) === REACT_LAZY_TYPE;
600
+ };
601
+ reactIs_production.isMemo = function(object) {
602
+ return typeOf(object) === REACT_MEMO_TYPE;
603
+ };
604
+ reactIs_production.isPortal = function(object) {
605
+ return typeOf(object) === REACT_PORTAL_TYPE;
606
+ };
607
+ reactIs_production.isProfiler = function(object) {
608
+ return typeOf(object) === REACT_PROFILER_TYPE;
609
+ };
610
+ reactIs_production.isStrictMode = function(object) {
611
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
612
+ };
613
+ reactIs_production.isSuspense = function(object) {
614
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
615
+ };
616
+ reactIs_production.isSuspenseList = function(object) {
617
+ return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
618
+ };
619
+ reactIs_production.isValidElementType = function(type) {
620
+ return "string" == typeof type || "function" == typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" == typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId);
621
+ };
622
+ reactIs_production.typeOf = typeOf;
623
+ return reactIs_production;
624
+ }
625
+ var reactIs_development$1 = {};
626
+ /**
627
+ * @license React
628
+ * react-is.development.js
629
+ *
630
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
631
+ *
632
+ * This source code is licensed under the MIT license found in the
633
+ * LICENSE file in the root directory of this source tree.
634
+ */ var hasRequiredReactIs_development$1;
635
+ function requireReactIs_development$1() {
636
+ if (hasRequiredReactIs_development$1) return reactIs_development$1;
637
+ hasRequiredReactIs_development$1 = 1;
638
+ "production" !== process.env.NODE_ENV && function() {
639
+ function typeOf(object) {
640
+ if ("object" == typeof object && null !== object) {
641
+ var $$typeof = object.$$typeof;
642
+ switch($$typeof){
643
+ case REACT_ELEMENT_TYPE:
644
+ switch(object = object.type){
645
+ case REACT_FRAGMENT_TYPE:
646
+ case REACT_PROFILER_TYPE:
647
+ case REACT_STRICT_MODE_TYPE:
648
+ case REACT_SUSPENSE_TYPE:
649
+ case REACT_SUSPENSE_LIST_TYPE:
650
+ case REACT_VIEW_TRANSITION_TYPE:
651
+ return object;
652
+ default:
653
+ switch(object = object && object.$$typeof){
654
+ case REACT_CONTEXT_TYPE:
655
+ case REACT_FORWARD_REF_TYPE:
656
+ case REACT_LAZY_TYPE:
657
+ case REACT_MEMO_TYPE:
658
+ return object;
659
+ case REACT_CONSUMER_TYPE:
660
+ return object;
661
+ default:
662
+ return $$typeof;
663
+ }
664
+ }
665
+ case REACT_PORTAL_TYPE:
666
+ return $$typeof;
667
+ }
668
+ }
669
+ }
670
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
671
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
672
+ reactIs_development$1.ContextConsumer = REACT_CONSUMER_TYPE;
673
+ reactIs_development$1.ContextProvider = REACT_CONTEXT_TYPE;
674
+ reactIs_development$1.Element = REACT_ELEMENT_TYPE;
675
+ reactIs_development$1.ForwardRef = REACT_FORWARD_REF_TYPE;
676
+ reactIs_development$1.Fragment = REACT_FRAGMENT_TYPE;
677
+ reactIs_development$1.Lazy = REACT_LAZY_TYPE;
678
+ reactIs_development$1.Memo = REACT_MEMO_TYPE;
679
+ reactIs_development$1.Portal = REACT_PORTAL_TYPE;
680
+ reactIs_development$1.Profiler = REACT_PROFILER_TYPE;
681
+ reactIs_development$1.StrictMode = REACT_STRICT_MODE_TYPE;
682
+ reactIs_development$1.Suspense = REACT_SUSPENSE_TYPE;
683
+ reactIs_development$1.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
684
+ reactIs_development$1.isContextConsumer = function(object) {
685
+ return typeOf(object) === REACT_CONSUMER_TYPE;
686
+ };
687
+ reactIs_development$1.isContextProvider = function(object) {
688
+ return typeOf(object) === REACT_CONTEXT_TYPE;
689
+ };
690
+ reactIs_development$1.isElement = function(object) {
691
+ return "object" == typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
692
+ };
693
+ reactIs_development$1.isForwardRef = function(object) {
694
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
695
+ };
696
+ reactIs_development$1.isFragment = function(object) {
697
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
698
+ };
699
+ reactIs_development$1.isLazy = function(object) {
700
+ return typeOf(object) === REACT_LAZY_TYPE;
701
+ };
702
+ reactIs_development$1.isMemo = function(object) {
703
+ return typeOf(object) === REACT_MEMO_TYPE;
704
+ };
705
+ reactIs_development$1.isPortal = function(object) {
706
+ return typeOf(object) === REACT_PORTAL_TYPE;
707
+ };
708
+ reactIs_development$1.isProfiler = function(object) {
709
+ return typeOf(object) === REACT_PROFILER_TYPE;
710
+ };
711
+ reactIs_development$1.isStrictMode = function(object) {
712
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
713
+ };
714
+ reactIs_development$1.isSuspense = function(object) {
715
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
716
+ };
717
+ reactIs_development$1.isSuspenseList = function(object) {
718
+ return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
719
+ };
720
+ reactIs_development$1.isValidElementType = function(type) {
721
+ return "string" == typeof type || "function" == typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" == typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId);
722
+ };
723
+ reactIs_development$1.typeOf = typeOf;
724
+ }();
725
+ return reactIs_development$1;
726
+ }
727
+ var hasRequiredReactIs$1;
728
+ function requireReactIs$1() {
729
+ if (hasRequiredReactIs$1) return reactIs$1.exports;
730
+ hasRequiredReactIs$1 = 1;
731
+ if ('production' === process.env.NODE_ENV) reactIs$1.exports = requireReactIs_production();
732
+ else reactIs$1.exports = requireReactIs_development$1();
733
+ return reactIs$1.exports;
734
+ }
735
+ var reactIsExports$1 = requireReactIs$1();
736
+ var index$1 = /*@__PURE__*/ getDefaultExportFromCjs(reactIsExports$1);
737
+ var ReactIs19 = /*#__PURE__*/ _mergeNamespaces({
738
+ __proto__: null,
739
+ default: index$1
740
+ }, [
741
+ reactIsExports$1
742
+ ]);
743
+ var reactIs = {
744
+ exports: {}
745
+ };
746
+ var reactIs_production_min = {};
747
+ /**
748
+ * @license React
749
+ * react-is.production.min.js
750
+ *
751
+ * Copyright (c) Facebook, Inc. and its affiliates.
752
+ *
753
+ * This source code is licensed under the MIT license found in the
754
+ * LICENSE file in the root directory of this source tree.
755
+ */ var hasRequiredReactIs_production_min;
756
+ function requireReactIs_production_min() {
757
+ if (hasRequiredReactIs_production_min) return reactIs_production_min;
758
+ hasRequiredReactIs_production_min = 1;
759
+ var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u;
760
+ u = Symbol.for("react.module.reference");
761
+ function v(a) {
762
+ if ("object" == typeof a && null !== a) {
763
+ var r = a.$$typeof;
764
+ switch(r){
765
+ case b:
766
+ switch(a = a.type){
767
+ case d:
768
+ case f:
769
+ case e:
770
+ case m:
771
+ case n:
772
+ return a;
773
+ default:
774
+ switch(a = a && a.$$typeof){
775
+ case k:
776
+ case h:
777
+ case l:
778
+ case q:
779
+ case p:
780
+ case g:
781
+ return a;
782
+ default:
783
+ return r;
784
+ }
785
+ }
786
+ case c:
787
+ return r;
788
+ }
789
+ }
790
+ }
791
+ reactIs_production_min.ContextConsumer = h;
792
+ reactIs_production_min.ContextProvider = g;
793
+ reactIs_production_min.Element = b;
794
+ reactIs_production_min.ForwardRef = l;
795
+ reactIs_production_min.Fragment = d;
796
+ reactIs_production_min.Lazy = q;
797
+ reactIs_production_min.Memo = p;
798
+ reactIs_production_min.Portal = c;
799
+ reactIs_production_min.Profiler = f;
800
+ reactIs_production_min.StrictMode = e;
801
+ reactIs_production_min.Suspense = m;
802
+ reactIs_production_min.SuspenseList = n;
803
+ reactIs_production_min.isAsyncMode = function() {
804
+ return false;
805
+ };
806
+ reactIs_production_min.isConcurrentMode = function() {
807
+ return false;
808
+ };
809
+ reactIs_production_min.isContextConsumer = function(a) {
810
+ return v(a) === h;
811
+ };
812
+ reactIs_production_min.isContextProvider = function(a) {
813
+ return v(a) === g;
814
+ };
815
+ reactIs_production_min.isElement = function(a) {
816
+ return "object" == typeof a && null !== a && a.$$typeof === b;
817
+ };
818
+ reactIs_production_min.isForwardRef = function(a) {
819
+ return v(a) === l;
820
+ };
821
+ reactIs_production_min.isFragment = function(a) {
822
+ return v(a) === d;
823
+ };
824
+ reactIs_production_min.isLazy = function(a) {
825
+ return v(a) === q;
826
+ };
827
+ reactIs_production_min.isMemo = function(a) {
828
+ return v(a) === p;
829
+ };
830
+ reactIs_production_min.isPortal = function(a) {
831
+ return v(a) === c;
832
+ };
833
+ reactIs_production_min.isProfiler = function(a) {
834
+ return v(a) === f;
835
+ };
836
+ reactIs_production_min.isStrictMode = function(a) {
837
+ return v(a) === e;
838
+ };
839
+ reactIs_production_min.isSuspense = function(a) {
840
+ return v(a) === m;
841
+ };
842
+ reactIs_production_min.isSuspenseList = function(a) {
843
+ return v(a) === n;
844
+ };
845
+ reactIs_production_min.isValidElementType = function(a) {
846
+ return "string" == typeof a || "function" == typeof a || a === d || a === f || a === e || a === m || a === n || a === t || "object" == typeof a && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || void 0 !== a.getModuleId);
847
+ };
848
+ reactIs_production_min.typeOf = v;
849
+ return reactIs_production_min;
850
+ }
851
+ var reactIs_development = {};
852
+ /**
853
+ * @license React
854
+ * react-is.development.js
855
+ *
856
+ * Copyright (c) Facebook, Inc. and its affiliates.
857
+ *
858
+ * This source code is licensed under the MIT license found in the
859
+ * LICENSE file in the root directory of this source tree.
860
+ */ var hasRequiredReactIs_development;
861
+ function requireReactIs_development() {
862
+ if (hasRequiredReactIs_development) return reactIs_development;
863
+ hasRequiredReactIs_development = 1;
864
+ if ("production" !== process.env.NODE_ENV) (function() {
865
+ var REACT_ELEMENT_TYPE = Symbol.for('react.element');
866
+ var REACT_PORTAL_TYPE = Symbol.for('react.portal');
867
+ var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
868
+ var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
869
+ var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
870
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
871
+ var REACT_CONTEXT_TYPE = Symbol.for('react.context');
872
+ var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
873
+ var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
874
+ var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
875
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
876
+ var REACT_MEMO_TYPE = Symbol.for('react.memo');
877
+ var REACT_LAZY_TYPE = Symbol.for('react.lazy');
878
+ var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
879
+ var enableScopeAPI = false;
880
+ var enableCacheElement = false;
881
+ var enableTransitionTracing = false;
882
+ var enableLegacyHidden = false;
883
+ var enableDebugTracing = false;
884
+ var REACT_MODULE_REFERENCE;
885
+ REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
886
+ function isValidElementType(type) {
887
+ if ('string' == typeof type || 'function' == typeof type) return true;
888
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) return true;
889
+ if ('object' == typeof type && null !== type) {
890
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MODULE_REFERENCE || void 0 !== type.getModuleId) return true;
891
+ }
892
+ return false;
893
+ }
894
+ function typeOf(object) {
895
+ if ('object' == typeof object && null !== object) {
896
+ var $$typeof = object.$$typeof;
897
+ switch($$typeof){
898
+ case REACT_ELEMENT_TYPE:
899
+ var type = object.type;
900
+ switch(type){
901
+ case REACT_FRAGMENT_TYPE:
902
+ case REACT_PROFILER_TYPE:
903
+ case REACT_STRICT_MODE_TYPE:
904
+ case REACT_SUSPENSE_TYPE:
905
+ case REACT_SUSPENSE_LIST_TYPE:
906
+ return type;
907
+ default:
908
+ var $$typeofType = type && type.$$typeof;
909
+ switch($$typeofType){
910
+ case REACT_SERVER_CONTEXT_TYPE:
911
+ case REACT_CONTEXT_TYPE:
912
+ case REACT_FORWARD_REF_TYPE:
913
+ case REACT_LAZY_TYPE:
914
+ case REACT_MEMO_TYPE:
915
+ case REACT_PROVIDER_TYPE:
916
+ return $$typeofType;
917
+ default:
918
+ return $$typeof;
919
+ }
920
+ }
921
+ case REACT_PORTAL_TYPE:
922
+ return $$typeof;
923
+ }
924
+ }
925
+ }
926
+ var ContextConsumer = REACT_CONTEXT_TYPE;
927
+ var ContextProvider = REACT_PROVIDER_TYPE;
928
+ var Element = REACT_ELEMENT_TYPE;
929
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
930
+ var Fragment = REACT_FRAGMENT_TYPE;
931
+ var Lazy = REACT_LAZY_TYPE;
932
+ var Memo = REACT_MEMO_TYPE;
933
+ var Portal = REACT_PORTAL_TYPE;
934
+ var Profiler = REACT_PROFILER_TYPE;
935
+ var StrictMode = REACT_STRICT_MODE_TYPE;
936
+ var Suspense = REACT_SUSPENSE_TYPE;
937
+ var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
938
+ var hasWarnedAboutDeprecatedIsAsyncMode = false;
939
+ var hasWarnedAboutDeprecatedIsConcurrentMode = false;
940
+ function isAsyncMode(object) {
941
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
942
+ hasWarnedAboutDeprecatedIsAsyncMode = true;
943
+ console['warn']("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.");
944
+ }
945
+ return false;
946
+ }
947
+ function isConcurrentMode(object) {
948
+ if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
949
+ hasWarnedAboutDeprecatedIsConcurrentMode = true;
950
+ console['warn']("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.");
951
+ }
952
+ return false;
953
+ }
954
+ function isContextConsumer(object) {
955
+ return typeOf(object) === REACT_CONTEXT_TYPE;
956
+ }
957
+ function isContextProvider(object) {
958
+ return typeOf(object) === REACT_PROVIDER_TYPE;
959
+ }
960
+ function isElement(object) {
961
+ return 'object' == typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
962
+ }
963
+ function isForwardRef(object) {
964
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
965
+ }
966
+ function isFragment(object) {
967
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
968
+ }
969
+ function isLazy(object) {
970
+ return typeOf(object) === REACT_LAZY_TYPE;
971
+ }
972
+ function isMemo(object) {
973
+ return typeOf(object) === REACT_MEMO_TYPE;
974
+ }
975
+ function isPortal(object) {
976
+ return typeOf(object) === REACT_PORTAL_TYPE;
977
+ }
978
+ function isProfiler(object) {
979
+ return typeOf(object) === REACT_PROFILER_TYPE;
980
+ }
981
+ function isStrictMode(object) {
982
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
983
+ }
984
+ function isSuspense(object) {
985
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
986
+ }
987
+ function isSuspenseList(object) {
988
+ return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
989
+ }
990
+ reactIs_development.ContextConsumer = ContextConsumer;
991
+ reactIs_development.ContextProvider = ContextProvider;
992
+ reactIs_development.Element = Element;
993
+ reactIs_development.ForwardRef = ForwardRef;
994
+ reactIs_development.Fragment = Fragment;
995
+ reactIs_development.Lazy = Lazy;
996
+ reactIs_development.Memo = Memo;
997
+ reactIs_development.Portal = Portal;
998
+ reactIs_development.Profiler = Profiler;
999
+ reactIs_development.StrictMode = StrictMode;
1000
+ reactIs_development.Suspense = Suspense;
1001
+ reactIs_development.SuspenseList = SuspenseList;
1002
+ reactIs_development.isAsyncMode = isAsyncMode;
1003
+ reactIs_development.isConcurrentMode = isConcurrentMode;
1004
+ reactIs_development.isContextConsumer = isContextConsumer;
1005
+ reactIs_development.isContextProvider = isContextProvider;
1006
+ reactIs_development.isElement = isElement;
1007
+ reactIs_development.isForwardRef = isForwardRef;
1008
+ reactIs_development.isFragment = isFragment;
1009
+ reactIs_development.isLazy = isLazy;
1010
+ reactIs_development.isMemo = isMemo;
1011
+ reactIs_development.isPortal = isPortal;
1012
+ reactIs_development.isProfiler = isProfiler;
1013
+ reactIs_development.isStrictMode = isStrictMode;
1014
+ reactIs_development.isSuspense = isSuspense;
1015
+ reactIs_development.isSuspenseList = isSuspenseList;
1016
+ reactIs_development.isValidElementType = isValidElementType;
1017
+ reactIs_development.typeOf = typeOf;
1018
+ })();
1019
+ return reactIs_development;
1020
+ }
1021
+ var hasRequiredReactIs;
1022
+ function requireReactIs() {
1023
+ if (hasRequiredReactIs) return reactIs.exports;
1024
+ hasRequiredReactIs = 1;
1025
+ if ('production' === process.env.NODE_ENV) reactIs.exports = requireReactIs_production_min();
1026
+ else reactIs.exports = requireReactIs_development();
1027
+ return reactIs.exports;
1028
+ }
1029
+ var reactIsExports = requireReactIs();
1030
+ var index = /*@__PURE__*/ getDefaultExportFromCjs(reactIsExports);
1031
+ var ReactIs18 = /*#__PURE__*/ _mergeNamespaces({
1032
+ __proto__: null,
1033
+ default: index
1034
+ }, [
1035
+ reactIsExports
1036
+ ]);
1037
+ const reactIsMethods = [
1038
+ "isAsyncMode",
1039
+ "isConcurrentMode",
1040
+ "isContextConsumer",
1041
+ "isContextProvider",
1042
+ "isElement",
1043
+ "isForwardRef",
1044
+ "isFragment",
1045
+ "isLazy",
1046
+ "isMemo",
1047
+ "isPortal",
1048
+ "isProfiler",
1049
+ "isStrictMode",
1050
+ "isSuspense",
1051
+ "isSuspenseList",
1052
+ "isValidElementType"
1053
+ ];
1054
+ const ReactIs = Object.fromEntries(reactIsMethods.map((m)=>[
1055
+ m,
1056
+ (v)=>ReactIs18[m](v) || ReactIs19[m](v)
1057
+ ]));
1058
+ function getChildren(arg, children = []) {
1059
+ if (Array.isArray(arg)) for (const item of arg)getChildren(item, children);
1060
+ else if (null != arg && false !== arg && "" !== arg) children.push(arg);
1061
+ return children;
1062
+ }
1063
+ function getType(element) {
1064
+ const type = element.type;
1065
+ if ("string" == typeof type) return type;
1066
+ if ("function" == typeof type) return type.displayName || type.name || "Unknown";
1067
+ if (ReactIs.isFragment(element)) return "React.Fragment";
1068
+ if (ReactIs.isSuspense(element)) return "React.Suspense";
1069
+ if ("object" == typeof type && null !== type) {
1070
+ if (ReactIs.isContextProvider(element)) return "Context.Provider";
1071
+ if (ReactIs.isContextConsumer(element)) return "Context.Consumer";
1072
+ if (ReactIs.isForwardRef(element)) {
1073
+ if (type.displayName) return type.displayName;
1074
+ const functionName = type.render.displayName || type.render.name || "";
1075
+ return "" === functionName ? "ForwardRef" : `ForwardRef(${functionName})`;
1076
+ }
1077
+ if (ReactIs.isMemo(element)) {
1078
+ const functionName = type.displayName || type.type.displayName || type.type.name || "";
1079
+ return "" === functionName ? "Memo" : `Memo(${functionName})`;
1080
+ }
1081
+ }
1082
+ return "UNDEFINED";
1083
+ }
1084
+ function getPropKeys$1(element) {
1085
+ const { props } = element;
1086
+ return Object.keys(props).filter((key)=>"children" !== key && void 0 !== props[key]).sort();
1087
+ }
1088
+ const serialize$1 = (element, config, indentation, depth, refs, printer)=>++depth > config.maxDepth ? printElementAsLeaf(getType(element), config) : printElement(getType(element), printProps(getPropKeys$1(element), element.props, config, indentation + config.indent, depth, refs, printer), printChildren(getChildren(element.props.children), config, indentation + config.indent, depth, refs, printer), config, indentation);
1089
+ const test$1 = (val)=>null != val && ReactIs.isElement(val);
1090
+ const plugin$1 = {
1091
+ serialize: serialize$1,
1092
+ test: test$1
1093
+ };
1094
+ const testSymbol = "function" == typeof Symbol && Symbol.for ? Symbol.for("react.test.json") : 245830487;
1095
+ function getPropKeys(object) {
1096
+ const { props } = object;
1097
+ return props ? Object.keys(props).filter((key)=>void 0 !== props[key]).sort() : [];
1098
+ }
1099
+ const serialize = (object, config, indentation, depth, refs, printer)=>++depth > config.maxDepth ? printElementAsLeaf(object.type, config) : printElement(object.type, object.props ? printProps(getPropKeys(object), object.props, config, indentation + config.indent, depth, refs, printer) : "", object.children ? printChildren(object.children, config, indentation + config.indent, depth, refs, printer) : "", config, indentation);
1100
+ const test = (val)=>val && val.$$typeof === testSymbol;
1101
+ const dist_plugin = {
1102
+ serialize: serialize,
1103
+ test: test
1104
+ };
1105
+ const dist_toString = Object.prototype.toString;
1106
+ const toISOString = Date.prototype.toISOString;
1107
+ const errorToString = Error.prototype.toString;
1108
+ const regExpToString = RegExp.prototype.toString;
1109
+ function getConstructorName(val) {
1110
+ return "function" == typeof val.constructor && val.constructor.name || "Object";
1111
+ }
1112
+ function isWindow(val) {
1113
+ return "u" > typeof window && val === window;
1114
+ }
1115
+ const SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/;
1116
+ const NEWLINE_REGEXP = /\n/g;
1117
+ class PrettyFormatPluginError extends Error {
1118
+ constructor(message, stack){
1119
+ super(message);
1120
+ this.stack = stack;
1121
+ this.name = this.constructor.name;
1122
+ }
1123
+ }
1124
+ function isToStringedArrayType(toStringed) {
1125
+ return "[object Array]" === toStringed || "[object ArrayBuffer]" === toStringed || "[object DataView]" === toStringed || "[object Float32Array]" === toStringed || "[object Float64Array]" === toStringed || "[object Int8Array]" === toStringed || "[object Int16Array]" === toStringed || "[object Int32Array]" === toStringed || "[object Uint8Array]" === toStringed || "[object Uint8ClampedArray]" === toStringed || "[object Uint16Array]" === toStringed || "[object Uint32Array]" === toStringed;
1126
+ }
1127
+ function printNumber(val) {
1128
+ return Object.is(val, -0) ? "-0" : String(val);
1129
+ }
1130
+ function printBigInt(val) {
1131
+ return String(`${val}n`);
1132
+ }
1133
+ function printFunction(val, printFunctionName) {
1134
+ if (!printFunctionName) return "[Function]";
1135
+ return `[Function ${val.name || "anonymous"}]`;
1136
+ }
1137
+ function printSymbol(val) {
1138
+ return String(val).replace(SYMBOL_REGEXP, "Symbol($1)");
1139
+ }
1140
+ function printError(val) {
1141
+ return `[${errorToString.call(val)}]`;
1142
+ }
1143
+ function printBasicValue(val, printFunctionName, escapeRegex, escapeString) {
1144
+ if (true === val || false === val) return `${val}`;
1145
+ if (void 0 === val) return "undefined";
1146
+ if (null === val) return "null";
1147
+ const typeOf = typeof val;
1148
+ if ("number" === typeOf) return printNumber(val);
1149
+ if ("bigint" === typeOf) return printBigInt(val);
1150
+ if ("string" === typeOf) {
1151
+ if (escapeString) return `"${val.replaceAll(/"|\\/g, "\\$&")}"`;
1152
+ return `"${val}"`;
1153
+ }
1154
+ if ("function" === typeOf) return printFunction(val, printFunctionName);
1155
+ if ("symbol" === typeOf) return printSymbol(val);
1156
+ const toStringed = dist_toString.call(val);
1157
+ if ("[object WeakMap]" === toStringed) return "WeakMap {}";
1158
+ if ("[object WeakSet]" === toStringed) return "WeakSet {}";
1159
+ if ("[object Function]" === toStringed || "[object GeneratorFunction]" === toStringed) return printFunction(val, printFunctionName);
1160
+ if ("[object Symbol]" === toStringed) return printSymbol(val);
1161
+ if ("[object Date]" === toStringed) return Number.isNaN(+val) ? "Date { NaN }" : toISOString.call(val);
1162
+ if ("[object Error]" === toStringed) return printError(val);
1163
+ if ("[object RegExp]" === toStringed) {
1164
+ if (escapeRegex) return regExpToString.call(val).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&");
1165
+ return regExpToString.call(val);
1166
+ }
1167
+ if (val instanceof Error) return printError(val);
1168
+ return null;
1169
+ }
1170
+ function printComplexValue(val, config, indentation, depth, refs, hasCalledToJSON) {
1171
+ if (refs.includes(val)) return "[Circular]";
1172
+ refs = [
1173
+ ...refs
1174
+ ];
1175
+ refs.push(val);
1176
+ const hitMaxDepth = ++depth > config.maxDepth;
1177
+ const min = config.min;
1178
+ if (config.callToJSON && !hitMaxDepth && val.toJSON && "function" == typeof val.toJSON && !hasCalledToJSON) return dist_printer(val.toJSON(), config, indentation, depth, refs, true);
1179
+ const toStringed = dist_toString.call(val);
1180
+ if ("[object Arguments]" === toStringed) return hitMaxDepth ? "[Arguments]" : `${min ? "" : "Arguments "}[${printListItems(val, config, indentation, depth, refs, dist_printer)}]`;
1181
+ if (isToStringedArrayType(toStringed)) return hitMaxDepth ? `[${val.constructor.name}]` : `${min ? "" : !config.printBasicPrototype && "Array" === val.constructor.name ? "" : `${val.constructor.name} `}[${printListItems(val, config, indentation, depth, refs, dist_printer)}]`;
1182
+ if ("[object Map]" === toStringed) return hitMaxDepth ? "[Map]" : `Map {${printIteratorEntries(val.entries(), config, indentation, depth, refs, dist_printer, " => ")}}`;
1183
+ if ("[object Set]" === toStringed) return hitMaxDepth ? "[Set]" : `Set {${printIteratorValues(val.values(), config, indentation, depth, refs, dist_printer)}}`;
1184
+ return hitMaxDepth || isWindow(val) ? `[${getConstructorName(val)}]` : `${min ? "" : !config.printBasicPrototype && "Object" === getConstructorName(val) ? "" : `${getConstructorName(val)} `}{${printObjectProperties(val, config, indentation, depth, refs, dist_printer)}}`;
1185
+ }
1186
+ const ErrorPlugin = {
1187
+ test: (val)=>val && val instanceof Error,
1188
+ serialize (val, config, indentation, depth, refs, printer) {
1189
+ if (refs.includes(val)) return "[Circular]";
1190
+ refs = [
1191
+ ...refs,
1192
+ val
1193
+ ];
1194
+ const hitMaxDepth = ++depth > config.maxDepth;
1195
+ const { message, cause, ...rest } = val;
1196
+ const entries = {
1197
+ message,
1198
+ ...void 0 !== cause ? {
1199
+ cause
1200
+ } : {},
1201
+ ...val instanceof AggregateError ? {
1202
+ errors: val.errors
1203
+ } : {},
1204
+ ...rest
1205
+ };
1206
+ const name = "Error" !== val.name ? val.name : getConstructorName(val);
1207
+ return hitMaxDepth ? `[${name}]` : `${name} {${printIteratorEntries(Object.entries(entries).values(), config, indentation, depth, refs, printer)}}`;
1208
+ }
1209
+ };
1210
+ function isNewPlugin(plugin) {
1211
+ return null != plugin.serialize;
1212
+ }
1213
+ function printPlugin(plugin, val, config, indentation, depth, refs) {
1214
+ let printed;
1215
+ try {
1216
+ printed = isNewPlugin(plugin) ? plugin.serialize(val, config, indentation, depth, refs, dist_printer) : plugin.print(val, (valChild)=>dist_printer(valChild, config, indentation, depth, refs), (str)=>{
1217
+ const indentationNext = indentation + config.indent;
1218
+ return indentationNext + str.replaceAll(NEWLINE_REGEXP, `\n${indentationNext}`);
1219
+ }, {
1220
+ edgeSpacing: config.spacingOuter,
1221
+ min: config.min,
1222
+ spacing: config.spacingInner
1223
+ }, config.colors);
1224
+ } catch (error) {
1225
+ throw new PrettyFormatPluginError(error.message, error.stack);
1226
+ }
1227
+ if ("string" != typeof printed) throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`);
1228
+ return printed;
1229
+ }
1230
+ function findPlugin(plugins, val) {
1231
+ for (const plugin of plugins)try {
1232
+ if (plugin.test(val)) return plugin;
1233
+ } catch (error) {
1234
+ throw new PrettyFormatPluginError(error.message, error.stack);
1235
+ }
1236
+ return null;
1237
+ }
1238
+ function dist_printer(val, config, indentation, depth, refs, hasCalledToJSON) {
1239
+ const plugin = findPlugin(config.plugins, val);
1240
+ if (null !== plugin) return printPlugin(plugin, val, config, indentation, depth, refs);
1241
+ const basicResult = printBasicValue(val, config.printFunctionName, config.escapeRegex, config.escapeString);
1242
+ if (null !== basicResult) return basicResult;
1243
+ return printComplexValue(val, config, indentation, depth, refs, hasCalledToJSON);
1244
+ }
1245
+ const DEFAULT_THEME = {
1246
+ comment: "gray",
1247
+ content: "reset",
1248
+ prop: "yellow",
1249
+ tag: "cyan",
1250
+ value: "green"
1251
+ };
1252
+ const DEFAULT_THEME_KEYS = Object.keys(DEFAULT_THEME);
1253
+ const DEFAULT_OPTIONS = {
1254
+ callToJSON: true,
1255
+ compareKeys: void 0,
1256
+ escapeRegex: false,
1257
+ escapeString: true,
1258
+ highlight: false,
1259
+ indent: 2,
1260
+ maxDepth: 1 / 0,
1261
+ maxWidth: 1 / 0,
1262
+ min: false,
1263
+ plugins: [],
1264
+ printBasicPrototype: true,
1265
+ printFunctionName: true,
1266
+ theme: DEFAULT_THEME
1267
+ };
1268
+ function validateOptions(options) {
1269
+ for (const key of Object.keys(options))if (!Object.prototype.hasOwnProperty.call(DEFAULT_OPTIONS, key)) throw new Error(`pretty-format: Unknown option "${key}".`);
1270
+ if (options.min && void 0 !== options.indent && 0 !== options.indent) throw new Error("pretty-format: Options \"min\" and \"indent\" cannot be used together.");
1271
+ }
1272
+ function getColorsHighlight() {
1273
+ return DEFAULT_THEME_KEYS.reduce((colors, key)=>{
1274
+ const value = DEFAULT_THEME[key];
1275
+ const color = value && node_u[value];
1276
+ if (color && "string" == typeof color.close && "string" == typeof color.open) colors[key] = color;
1277
+ else throw new Error(`pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`);
1278
+ return colors;
1279
+ }, Object.create(null));
1280
+ }
1281
+ function getColorsEmpty() {
1282
+ return DEFAULT_THEME_KEYS.reduce((colors, key)=>{
1283
+ colors[key] = {
1284
+ close: "",
1285
+ open: ""
1286
+ };
1287
+ return colors;
1288
+ }, Object.create(null));
1289
+ }
1290
+ function getPrintFunctionName(options) {
1291
+ return (null == options ? void 0 : options.printFunctionName) ?? DEFAULT_OPTIONS.printFunctionName;
1292
+ }
1293
+ function getEscapeRegex(options) {
1294
+ return (null == options ? void 0 : options.escapeRegex) ?? DEFAULT_OPTIONS.escapeRegex;
1295
+ }
1296
+ function getEscapeString(options) {
1297
+ return (null == options ? void 0 : options.escapeString) ?? DEFAULT_OPTIONS.escapeString;
1298
+ }
1299
+ function getConfig(options) {
1300
+ return {
1301
+ callToJSON: (null == options ? void 0 : options.callToJSON) ?? DEFAULT_OPTIONS.callToJSON,
1302
+ colors: (null == options ? void 0 : options.highlight) ? getColorsHighlight() : getColorsEmpty(),
1303
+ compareKeys: "function" == typeof (null == options ? void 0 : options.compareKeys) || (null == options ? void 0 : options.compareKeys) === null ? options.compareKeys : DEFAULT_OPTIONS.compareKeys,
1304
+ escapeRegex: getEscapeRegex(options),
1305
+ escapeString: getEscapeString(options),
1306
+ indent: (null == options ? void 0 : options.min) ? "" : createIndent((null == options ? void 0 : options.indent) ?? DEFAULT_OPTIONS.indent),
1307
+ maxDepth: (null == options ? void 0 : options.maxDepth) ?? DEFAULT_OPTIONS.maxDepth,
1308
+ maxWidth: (null == options ? void 0 : options.maxWidth) ?? DEFAULT_OPTIONS.maxWidth,
1309
+ min: (null == options ? void 0 : options.min) ?? DEFAULT_OPTIONS.min,
1310
+ plugins: (null == options ? void 0 : options.plugins) ?? DEFAULT_OPTIONS.plugins,
1311
+ printBasicPrototype: (null == options ? void 0 : options.printBasicPrototype) ?? true,
1312
+ printFunctionName: getPrintFunctionName(options),
1313
+ spacingInner: (null == options ? void 0 : options.min) ? " " : "\n",
1314
+ spacingOuter: (null == options ? void 0 : options.min) ? "" : "\n"
1315
+ };
1316
+ }
1317
+ function createIndent(indent) {
1318
+ return Array.from({
1319
+ length: indent + 1
1320
+ }).join(" ");
1321
+ }
1322
+ function format(val, options) {
1323
+ if (options) {
1324
+ validateOptions(options);
1325
+ if (options.plugins) {
1326
+ const plugin = findPlugin(options.plugins, val);
1327
+ if (null !== plugin) return printPlugin(plugin, val, getConfig(options), "", 0, []);
1328
+ }
1329
+ }
1330
+ const basicResult = printBasicValue(val, getPrintFunctionName(options), getEscapeRegex(options), getEscapeString(options));
1331
+ if (null !== basicResult) return basicResult;
1332
+ return printComplexValue(val, getConfig(options), "", 0, []);
1333
+ }
1334
+ const dist_plugins = {
1335
+ AsymmetricMatcher: plugin$5,
1336
+ DOMCollection: plugin$4,
1337
+ DOMElement: plugin$3,
1338
+ Immutable: plugin$2,
1339
+ ReactElement: plugin$1,
1340
+ ReactTestComponent: dist_plugin,
1341
+ Error: ErrorPlugin
1342
+ };
1343
+ export { dist_namespaceObject, dist_plugins, format, node_u };