@uva-glass/component-library 3.0.3 → 3.0.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 (121) hide show
  1. package/dist/{Lexical.prod-CQl7J8uU.js → Lexical.prod-DTADK2yJ.js} +1498 -1471
  2. package/dist/Lexical.prod-DTADK2yJ.js.map +1 -0
  3. package/dist/LexicalClipboard.prod-Dx5Fm6e5.js +258 -0
  4. package/dist/LexicalClipboard.prod-Dx5Fm6e5.js.map +1 -0
  5. package/dist/{LexicalComposerContext.prod-DxxjdrXB.js → LexicalComposerContext.prod-BCXERl09.js} +6 -7
  6. package/dist/{LexicalComposerContext.prod-DxxjdrXB.js.map → LexicalComposerContext.prod-BCXERl09.js.map} +1 -1
  7. package/dist/{LexicalLink.prod-D8-zZW0o.js → LexicalLink.prod-JpC4y56U.js} +25 -25
  8. package/dist/LexicalLink.prod-JpC4y56U.js.map +1 -0
  9. package/dist/LexicalList.prod-w0kSq9sB.js +579 -0
  10. package/dist/LexicalList.prod-w0kSq9sB.js.map +1 -0
  11. package/dist/LexicalSelection.prod-DQLHaigk.js +78 -0
  12. package/dist/LexicalSelection.prod-DQLHaigk.js.map +1 -0
  13. package/dist/{LexicalTable.prod-BvJxbarH.js → LexicalTable.prod-DjfZc87j.js} +352 -334
  14. package/dist/LexicalTable.prod-DjfZc87j.js.map +1 -0
  15. package/dist/{LexicalUtils.prod-D9KKqgU7.js → LexicalUtils.prod-BBwue2Aj.js} +39 -39
  16. package/dist/LexicalUtils.prod-BBwue2Aj.js.map +1 -0
  17. package/dist/{SortableProvider-RaH_ZXB3.js → SortableProvider-Ck_XnBVq.js} +10 -10
  18. package/dist/{SortableProvider-RaH_ZXB3.js.map → SortableProvider-Ck_XnBVq.js.map} +1 -1
  19. package/dist/{TablePlugin-CPEwD-wi.js → TablePlugin-Co5vgBHF.js} +87 -88
  20. package/dist/{TablePlugin-CPEwD-wi.js.map → TablePlugin-Co5vgBHF.js.map} +1 -1
  21. package/dist/__mocks__/fileMock.d.ts +2 -0
  22. package/dist/__mocks__/svgrMock.d.ts +3 -0
  23. package/dist/__mocks__/svgrMock.js +10 -0
  24. package/dist/__mocks__/svgrMock.js.map +1 -0
  25. package/dist/client-CTOhtEms.js +33 -0
  26. package/dist/client-CTOhtEms.js.map +1 -0
  27. package/dist/components/AccordionCard/AccordionCard.stories.js +1 -1
  28. package/dist/components/Buttons/Button.stories.js +2 -2
  29. package/dist/components/Buttons/LinkButton.stories.js +2 -2
  30. package/dist/components/Buttons/MenuButton.stories.js +2 -2
  31. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  32. package/dist/components/CheckboxButton/CheckboxButton.stories.js +1 -1
  33. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
  34. package/dist/components/CheckboxTree/CheckboxTree.js +2 -2
  35. package/dist/components/CheckboxTree/CheckboxTree.stories.js +11 -11
  36. package/dist/components/Chip/Chip.stories.js +1 -1
  37. package/dist/components/Drawer/Drawer.stories.js +1 -1
  38. package/dist/components/FormInput/FormInput.js +3 -3
  39. package/dist/components/FormInput/FormInput.stories.js +1 -1
  40. package/dist/components/IconButton/IconButton.stories.js +1 -1
  41. package/dist/components/InputField/InputField.stories.js +3 -3
  42. package/dist/components/Label/Label.test.d.ts +0 -0
  43. package/dist/components/Label/Label.test.js +4257 -0
  44. package/dist/components/Label/Label.test.js.map +1 -0
  45. package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
  46. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  47. package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
  48. package/dist/components/MultiSelect/components/MultiSelectHeader.js +2 -2
  49. package/dist/components/MultiSelect/index.js +1 -1
  50. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
  51. package/dist/components/OverlayStepBar/OverlayStepBar.js +2 -2
  52. package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
  53. package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
  54. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +4 -4
  55. package/dist/components/Repeater/Repeater.stories.js +1 -1
  56. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +2 -2
  57. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +4 -4
  58. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +4 -4
  59. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +3 -3
  60. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  61. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +48 -48
  62. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  63. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +28 -28
  64. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +8 -8
  65. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +2 -2
  66. package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +1 -1
  67. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +5 -5
  68. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +20 -20
  69. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  70. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +15 -15
  71. package/dist/components/RteEditor/Plugins/index.js +1 -1
  72. package/dist/components/RteEditor/Providers/LanguageProvider.js +3 -3
  73. package/dist/components/RteEditor/RteEditor.js +454 -454
  74. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  75. package/dist/components/RteEditor/helpers.js +4 -4
  76. package/dist/components/RteEditor/hooks/components/Flyout.js +12 -13
  77. package/dist/components/RteEditor/hooks/components/Flyout.js.map +1 -1
  78. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  79. package/dist/components/SelectListbox/SelectListbox.js +8 -9
  80. package/dist/components/SelectListbox/SelectListbox.js.map +1 -1
  81. package/dist/components/SelectListbox/SelectProvider.js +3 -3
  82. package/dist/components/Sortable/Sortable.js +1 -1
  83. package/dist/components/Sortable/Sortable.stories.js +1 -1
  84. package/dist/components/Sortable/SortableProvider.js +1 -1
  85. package/dist/components/Sortable/actions.js +8 -8
  86. package/dist/components/Sortable/components/SortableContainer.js +1 -1
  87. package/dist/components/Sortable/components/SortableItem.js +1 -1
  88. package/dist/components/Spinner/Spinner.js +11 -12
  89. package/dist/components/Spinner/Spinner.js.map +1 -1
  90. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
  91. package/dist/components/index.js +1 -1
  92. package/dist/{helpers-C_Mib4v3.js → helpers-DgTW1vIO.js} +33 -33
  93. package/dist/{helpers-C_Mib4v3.js.map → helpers-DgTW1vIO.js.map} +1 -1
  94. package/dist/index-BqHyOZsF.js +10322 -0
  95. package/dist/index-BqHyOZsF.js.map +1 -0
  96. package/dist/{index-Sh2oo6_C.js → index-DkNZhwJb.js} +399 -392
  97. package/dist/index-DkNZhwJb.js.map +1 -0
  98. package/dist/index.js +1 -1
  99. package/dist/react-18-CcyoHPTJ.js +38 -0
  100. package/dist/react-18-CcyoHPTJ.js.map +1 -0
  101. package/dist/setupTests.d.ts +0 -0
  102. package/dist/setupTests.js +1573 -0
  103. package/dist/setupTests.js.map +1 -0
  104. package/dist/storybook__react.d.js +538 -1657
  105. package/dist/storybook__react.d.js.map +1 -1
  106. package/dist/test-utils-CTqdUiUm.js +1126 -0
  107. package/dist/test-utils-CTqdUiUm.js.map +1 -0
  108. package/package.json +52 -33
  109. package/dist/Lexical.prod-CQl7J8uU.js.map +0 -1
  110. package/dist/LexicalClipboard.prod-C48GDxiy.js +0 -258
  111. package/dist/LexicalClipboard.prod-C48GDxiy.js.map +0 -1
  112. package/dist/LexicalLink.prod-D8-zZW0o.js.map +0 -1
  113. package/dist/LexicalList.prod-B4_DTbPB.js +0 -576
  114. package/dist/LexicalList.prod-B4_DTbPB.js.map +0 -1
  115. package/dist/LexicalSelection.prod-BU3GAQB4.js +0 -86
  116. package/dist/LexicalSelection.prod-BU3GAQB4.js.map +0 -1
  117. package/dist/LexicalTable.prod-BvJxbarH.js.map +0 -1
  118. package/dist/LexicalUtils.prod-D9KKqgU7.js.map +0 -1
  119. package/dist/index-Sh2oo6_C.js.map +0 -1
  120. package/dist/react-18-C9Y1Flwa.js +0 -65
  121. package/dist/react-18-C9Y1Flwa.js.map +0 -1
@@ -0,0 +1,1126 @@
1
+ import lt from "react";
2
+ import ct from "react-dom";
3
+ var De = { exports: {} }, m = {};
4
+ /**
5
+ * @license React
6
+ * react-dom-test-utils.production.min.js
7
+ *
8
+ * Copyright (c) Facebook, Inc. and its affiliates.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */
13
+ var it;
14
+ function At() {
15
+ if (it) return m;
16
+ it = 1;
17
+ var b = lt, A = ct;
18
+ function Q(t) {
19
+ var i = t, o = t;
20
+ if (t.alternate) for (; i.return; ) i = i.return;
21
+ else {
22
+ t = i;
23
+ do
24
+ i = t, i.flags & 4098 && (o = i.return), t = i.return;
25
+ while (t);
26
+ }
27
+ return i.tag === 3 ? o : null;
28
+ }
29
+ function ue(t) {
30
+ if (Q(t) !== t) throw Error("Unable to find node on an unmounted component.");
31
+ }
32
+ function ee(t) {
33
+ var i = t.alternate;
34
+ if (!i) {
35
+ if (i = Q(t), i === null) throw Error("Unable to find node on an unmounted component.");
36
+ return i !== t ? null : t;
37
+ }
38
+ for (var o = t, s = i; ; ) {
39
+ var d = o.return;
40
+ if (d === null) break;
41
+ var f = d.alternate;
42
+ if (f === null) {
43
+ if (s = d.return, s !== null) {
44
+ o = s;
45
+ continue;
46
+ }
47
+ break;
48
+ }
49
+ if (d.child === f.child) {
50
+ for (f = d.child; f; ) {
51
+ if (f === o) return ue(d), t;
52
+ if (f === s) return ue(d), i;
53
+ f = f.sibling;
54
+ }
55
+ throw Error("Unable to find node on an unmounted component.");
56
+ }
57
+ if (o.return !== s.return) o = d, s = f;
58
+ else {
59
+ for (var l = !1, p = d.child; p; ) {
60
+ if (p === o) {
61
+ l = !0, o = d, s = f;
62
+ break;
63
+ }
64
+ if (p === s) {
65
+ l = !0, s = d, o = f;
66
+ break;
67
+ }
68
+ p = p.sibling;
69
+ }
70
+ if (!l) {
71
+ for (p = f.child; p; ) {
72
+ if (p === o) {
73
+ l = !0, o = f, s = d;
74
+ break;
75
+ }
76
+ if (p === s) {
77
+ l = !0, s = f, o = d;
78
+ break;
79
+ }
80
+ p = p.sibling;
81
+ }
82
+ if (!l) throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.");
83
+ }
84
+ }
85
+ if (o.alternate !== s) throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.");
86
+ }
87
+ if (o.tag !== 3) throw Error("Unable to find node on an unmounted component.");
88
+ return o.stateNode.current === o ? t : i;
89
+ }
90
+ var y = Object.assign;
91
+ function x(t) {
92
+ var i = t.keyCode;
93
+ return "charCode" in t ? (t = t.charCode, t === 0 && i === 13 && (t = 13)) : t = i, t === 10 && (t = 13), 32 <= t || t === 13 ? t : 0;
94
+ }
95
+ function G() {
96
+ return !0;
97
+ }
98
+ function le() {
99
+ return !1;
100
+ }
101
+ function g(t) {
102
+ function i(o, s, d, f, l) {
103
+ this._reactName = o, this._targetInst = d, this.type = s, this.nativeEvent = f, this.target = l, this.currentTarget = null;
104
+ for (var p in t) t.hasOwnProperty(p) && (o = t[p], this[p] = o ? o(f) : f[p]);
105
+ return this.isDefaultPrevented = (f.defaultPrevented != null ? f.defaultPrevented : f.returnValue === !1) ? G : le, this.isPropagationStopped = le, this;
106
+ }
107
+ return y(i.prototype, { preventDefault: function() {
108
+ this.defaultPrevented = !0;
109
+ var o = this.nativeEvent;
110
+ o && (o.preventDefault ? o.preventDefault() : typeof o.returnValue != "unknown" && (o.returnValue = !1), this.isDefaultPrevented = G);
111
+ }, stopPropagation: function() {
112
+ var o = this.nativeEvent;
113
+ o && (o.stopPropagation ? o.stopPropagation() : typeof o.cancelBubble != "unknown" && (o.cancelBubble = !0), this.isPropagationStopped = G);
114
+ }, persist: function() {
115
+ }, isPersistent: G }), i;
116
+ }
117
+ var O = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(t) {
118
+ return t.timeStamp || Date.now();
119
+ }, defaultPrevented: 0, isTrusted: 0 }, ke = g(O), N = y({}, O, { view: 0, detail: 0 });
120
+ g(N);
121
+ var te, ne, U, K = y({}, N, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: Y, button: 0, buttons: 0, relatedTarget: function(t) {
122
+ return t.relatedTarget === void 0 ? t.fromElement === t.srcElement ? t.toElement : t.fromElement : t.relatedTarget;
123
+ }, movementX: function(t) {
124
+ return "movementX" in t ? t.movementX : (t !== U && (U && t.type === "mousemove" ? (te = t.screenX - U.screenX, ne = t.screenY - U.screenY) : ne = te = 0, U = t), te);
125
+ }, movementY: function(t) {
126
+ return "movementY" in t ? t.movementY : ne;
127
+ } });
128
+ g(K);
129
+ var Te = y({}, K, { dataTransfer: 0 });
130
+ g(Te);
131
+ var w = y({}, N, { relatedTarget: 0 });
132
+ g(w);
133
+ var re = y({}, O, { animationName: 0, elapsedTime: 0, pseudoElement: 0 });
134
+ g(re);
135
+ var z = y({}, O, { clipboardData: function(t) {
136
+ return "clipboardData" in t ? t.clipboardData : window.clipboardData;
137
+ } });
138
+ g(z);
139
+ var ce = y({}, O, { data: 0 });
140
+ g(ce);
141
+ var C = { Esc: "Escape", Spacebar: " ", Left: "ArrowLeft", Up: "ArrowUp", Right: "ArrowRight", Down: "ArrowDown", Del: "Delete", Win: "OS", Menu: "ContextMenu", Apps: "ContextMenu", Scroll: "ScrollLock", MozPrintableKey: "Unidentified" }, L = {
142
+ 8: "Backspace",
143
+ 9: "Tab",
144
+ 12: "Clear",
145
+ 13: "Enter",
146
+ 16: "Shift",
147
+ 17: "Control",
148
+ 18: "Alt",
149
+ 19: "Pause",
150
+ 20: "CapsLock",
151
+ 27: "Escape",
152
+ 32: " ",
153
+ 33: "PageUp",
154
+ 34: "PageDown",
155
+ 35: "End",
156
+ 36: "Home",
157
+ 37: "ArrowLeft",
158
+ 38: "ArrowUp",
159
+ 39: "ArrowRight",
160
+ 40: "ArrowDown",
161
+ 45: "Insert",
162
+ 46: "Delete",
163
+ 112: "F1",
164
+ 113: "F2",
165
+ 114: "F3",
166
+ 115: "F4",
167
+ 116: "F5",
168
+ 117: "F6",
169
+ 118: "F7",
170
+ 119: "F8",
171
+ 120: "F9",
172
+ 121: "F10",
173
+ 122: "F11",
174
+ 123: "F12",
175
+ 144: "NumLock",
176
+ 145: "ScrollLock",
177
+ 224: "Meta"
178
+ }, Me = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" };
179
+ function F(t) {
180
+ var i = this.nativeEvent;
181
+ return i.getModifierState ? i.getModifierState(t) : (t = Me[t]) ? !!i[t] : !1;
182
+ }
183
+ function Y() {
184
+ return F;
185
+ }
186
+ var oe = y({}, N, { key: function(t) {
187
+ if (t.key) {
188
+ var i = C[t.key] || t.key;
189
+ if (i !== "Unidentified") return i;
190
+ }
191
+ return t.type === "keypress" ? (t = x(t), t === 13 ? "Enter" : String.fromCharCode(t)) : t.type === "keydown" || t.type === "keyup" ? L[t.keyCode] || "Unidentified" : "";
192
+ }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: Y, charCode: function(t) {
193
+ return t.type === "keypress" ? x(t) : 0;
194
+ }, keyCode: function(t) {
195
+ return t.type === "keydown" || t.type === "keyup" ? t.keyCode : 0;
196
+ }, which: function(t) {
197
+ return t.type === "keypress" ? x(t) : t.type === "keydown" || t.type === "keyup" ? t.keyCode : 0;
198
+ } });
199
+ g(oe);
200
+ var X = y({}, K, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 });
201
+ g(X);
202
+ var Re = y({}, N, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: Y });
203
+ g(Re);
204
+ var H = y({}, O, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 });
205
+ g(H);
206
+ var Se = y({}, K, { deltaX: function(t) {
207
+ return "deltaX" in t ? t.deltaX : "wheelDeltaX" in t ? -t.wheelDeltaX : 0;
208
+ }, deltaY: function(t) {
209
+ return "deltaY" in t ? t.deltaY : "wheelDeltaY" in t ? -t.wheelDeltaY : "wheelDelta" in t ? -t.wheelDelta : 0;
210
+ }, deltaZ: 0, deltaMode: 0 });
211
+ g(Se);
212
+ function Oe(t, i, o, s, d, f, l, p, D) {
213
+ var S = Array.prototype.slice.call(arguments, 3);
214
+ try {
215
+ i.apply(o, S);
216
+ } catch (Fe) {
217
+ this.onError(Fe);
218
+ }
219
+ }
220
+ var j = !1, B = null, Z = !1, ae = null, Ie = { onError: function(t) {
221
+ j = !0, B = t;
222
+ } };
223
+ function Pe(t, i, o, s, d, f, l, p, D) {
224
+ j = !1, B = null, Oe.apply(Ie, arguments);
225
+ }
226
+ function _e(t, i, o, s, d, f, l, p, D) {
227
+ if (Pe.apply(this, arguments), j) {
228
+ if (j) {
229
+ var S = B;
230
+ j = !1, B = null;
231
+ } else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.");
232
+ Z || (Z = !0, ae = S);
233
+ }
234
+ }
235
+ var ie = Array.isArray, I = A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events, Ue = I[0], Le = I[1], We = I[2], Ae = I[3], xe = I[4], de = b.unstable_act;
236
+ function fe() {
237
+ }
238
+ function pe(t, i) {
239
+ if (!t) return [];
240
+ if (t = ee(t), !t) return [];
241
+ for (var o = t, s = []; ; ) {
242
+ if (o.tag === 5 || o.tag === 6 || o.tag === 1 || o.tag === 0) {
243
+ var d = o.stateNode;
244
+ i(d) && s.push(d);
245
+ }
246
+ if (o.child) o.child.return = o, o = o.child;
247
+ else {
248
+ if (o === t) return s;
249
+ for (; !o.sibling; ) {
250
+ if (!o.return || o.return === t) return s;
251
+ o = o.return;
252
+ }
253
+ o.sibling.return = o.return, o = o.sibling;
254
+ }
255
+ }
256
+ }
257
+ function R(t, i) {
258
+ if (t && !t._reactInternals) {
259
+ var o = String(t);
260
+ throw t = ie(t) ? "an array" : t && t.nodeType === 1 && t.tagName ? "a DOM node" : o === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : o, Error(i + "(...): the first argument must be a React class instance. Instead received: " + (t + "."));
261
+ }
262
+ }
263
+ function $(t) {
264
+ return !(!t || t.nodeType !== 1 || !t.tagName);
265
+ }
266
+ function P(t) {
267
+ return $(t) ? !1 : t != null && typeof t.render == "function" && typeof t.setState == "function";
268
+ }
269
+ function V(t, i) {
270
+ return P(t) ? t._reactInternals.type === i : !1;
271
+ }
272
+ function _(t, i) {
273
+ return R(t, "findAllInRenderedTree"), t ? pe(t._reactInternals, i) : [];
274
+ }
275
+ function J(t, i) {
276
+ return R(t, "scryRenderedDOMComponentsWithClass"), _(t, function(o) {
277
+ if ($(o)) {
278
+ var s = o.className;
279
+ typeof s != "string" && (s = o.getAttribute("class") || "");
280
+ var d = s.split(/\s+/);
281
+ if (!ie(i)) {
282
+ if (i === void 0) throw Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.");
283
+ i = i.split(/\s+/);
284
+ }
285
+ return i.every(function(f) {
286
+ return d.indexOf(f) !== -1;
287
+ });
288
+ }
289
+ return !1;
290
+ });
291
+ }
292
+ function he(t, i) {
293
+ return R(t, "scryRenderedDOMComponentsWithTag"), _(t, function(o) {
294
+ return $(o) && o.tagName.toUpperCase() === i.toUpperCase();
295
+ });
296
+ }
297
+ function me(t, i) {
298
+ return R(t, "scryRenderedComponentsWithType"), _(t, function(o) {
299
+ return V(o, i);
300
+ });
301
+ }
302
+ function ve(t, i, o) {
303
+ var s = t.type || "unknown-event";
304
+ t.currentTarget = Le(o), _e(s, i, void 0, t), t.currentTarget = null;
305
+ }
306
+ function ye(t, i, o) {
307
+ for (var s = []; t; ) {
308
+ s.push(t);
309
+ do
310
+ t = t.return;
311
+ while (t && t.tag !== 5);
312
+ t = t || null;
313
+ }
314
+ for (t = s.length; 0 < t--; ) i(s[t], "captured", o);
315
+ for (t = 0; t < s.length; t++) i(s[t], "bubbled", o);
316
+ }
317
+ function ge(t, i) {
318
+ var o = t.stateNode;
319
+ if (!o) return null;
320
+ var s = We(o);
321
+ if (!s) return null;
322
+ o = s[i];
323
+ e: switch (i) {
324
+ case "onClick":
325
+ case "onClickCapture":
326
+ case "onDoubleClick":
327
+ case "onDoubleClickCapture":
328
+ case "onMouseDown":
329
+ case "onMouseDownCapture":
330
+ case "onMouseMove":
331
+ case "onMouseMoveCapture":
332
+ case "onMouseUp":
333
+ case "onMouseUpCapture":
334
+ case "onMouseEnter":
335
+ (s = !s.disabled) || (t = t.type, s = !(t === "button" || t === "input" || t === "select" || t === "textarea")), t = !s;
336
+ break e;
337
+ default:
338
+ t = !1;
339
+ }
340
+ if (t) return null;
341
+ if (o && typeof o != "function") throw Error("Expected `" + i + "` listener to be a function, instead got a value of `" + typeof o + "` type.");
342
+ return o;
343
+ }
344
+ function Ne(t, i, o) {
345
+ t && o && o._reactName && (i = ge(t, o._reactName)) && (o._dispatchListeners == null && (o._dispatchListeners = []), o._dispatchInstances == null && (o._dispatchInstances = []), o._dispatchListeners.push(i), o._dispatchInstances.push(t));
346
+ }
347
+ function se(t, i, o) {
348
+ var s = o._reactName;
349
+ i === "captured" && (s += "Capture"), (i = ge(t, s)) && (o._dispatchListeners == null && (o._dispatchListeners = []), o._dispatchInstances == null && (o._dispatchInstances = []), o._dispatchListeners.push(i), o._dispatchInstances.push(t));
350
+ }
351
+ var we = {}, q = /* @__PURE__ */ new Set(["mouseEnter", "mouseLeave", "pointerEnter", "pointerLeave"]);
352
+ function Ke(t) {
353
+ return function(i, o) {
354
+ if (b.isValidElement(i)) throw Error("TestUtils.Simulate expected a DOM node as the first argument but received a React element. Pass the DOM node you wish to simulate the event on instead. Note that TestUtils.Simulate will not work if you are using shallow rendering.");
355
+ if (P(i)) throw Error("TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead.");
356
+ var s = "on" + t[0].toUpperCase() + t.slice(1), d = new fe();
357
+ d.target = i, d.type = t.toLowerCase();
358
+ var f = Ue(i), l = new ke(s, d.type, f, d, i);
359
+ l.persist(), y(l, o), q.has(t) ? l && l._reactName && Ne(l._targetInst, null, l) : l && l._reactName && ye(l._targetInst, se, l), A.unstable_batchedUpdates(function() {
360
+ if (Ae(i), l) {
361
+ var p = l._dispatchListeners, D = l._dispatchInstances;
362
+ if (ie(p)) for (var S = 0; S < p.length && !l.isPropagationStopped(); S++) ve(l, p[S], D[S]);
363
+ else p && ve(l, p, D);
364
+ l._dispatchListeners = null, l._dispatchInstances = null, l.isPersistent() || l.constructor.release(l);
365
+ }
366
+ if (Z) throw p = ae, Z = !1, ae = null, p;
367
+ }), xe();
368
+ };
369
+ }
370
+ return "blur cancel click close contextMenu copy cut auxClick doubleClick dragEnd dragStart drop focus input invalid keyDown keyPress keyUp mouseDown mouseUp paste pause play pointerCancel pointerDown pointerUp rateChange reset resize seeked submit touchCancel touchEnd touchStart volumeChange drag dragEnter dragExit dragLeave dragOver mouseMove mouseOut mouseOver pointerMove pointerOut pointerOver scroll toggle touchMove wheel abort animationEnd animationIteration animationStart canPlay canPlayThrough durationChange emptied encrypted ended error gotPointerCapture load loadedData loadedMetadata loadStart lostPointerCapture playing progress seeking stalled suspend timeUpdate transitionEnd waiting mouseEnter mouseLeave pointerEnter pointerLeave change select beforeInput compositionEnd compositionStart compositionUpdate".split(" ").forEach(function(t) {
371
+ we[t] = Ke(t);
372
+ }), m.Simulate = we, m.act = de, m.findAllInRenderedTree = _, m.findRenderedComponentWithType = function(t, i) {
373
+ if (R(t, "findRenderedComponentWithType"), t = me(t, i), t.length !== 1) throw Error("Did not find exactly one match (found: " + t.length + ") for componentType:" + i);
374
+ return t[0];
375
+ }, m.findRenderedDOMComponentWithClass = function(t, i) {
376
+ if (R(t, "findRenderedDOMComponentWithClass"), t = J(t, i), t.length !== 1) throw Error("Did not find exactly one match (found: " + t.length + ") for class:" + i);
377
+ return t[0];
378
+ }, m.findRenderedDOMComponentWithTag = function(t, i) {
379
+ if (R(t, "findRenderedDOMComponentWithTag"), t = he(t, i), t.length !== 1) throw Error("Did not find exactly one match (found: " + t.length + ") for tag:" + i);
380
+ return t[0];
381
+ }, m.isCompositeComponent = P, m.isCompositeComponentWithType = V, m.isDOMComponent = $, m.isDOMComponentElement = function(t) {
382
+ return !!(t && b.isValidElement(t) && t.tagName);
383
+ }, m.isElement = function(t) {
384
+ return b.isValidElement(t);
385
+ }, m.isElementOfType = function(t, i) {
386
+ return b.isValidElement(t) && t.type === i;
387
+ }, m.mockComponent = function(t, i) {
388
+ return i = i || t.mockTagName || "div", t.prototype.render.mockImplementation(function() {
389
+ return b.createElement(i, null, this.props.children);
390
+ }), this;
391
+ }, m.nativeTouchData = function(t, i) {
392
+ return { touches: [{ pageX: t, pageY: i }] };
393
+ }, m.renderIntoDocument = function(t) {
394
+ var i = document.createElement("div");
395
+ return A.render(t, i);
396
+ }, m.scryRenderedComponentsWithType = me, m.scryRenderedDOMComponentsWithClass = J, m.scryRenderedDOMComponentsWithTag = he, m.traverseTwoPhase = ye, m;
397
+ }
398
+ var v = {};
399
+ /**
400
+ * @license React
401
+ * react-dom-test-utils.development.js
402
+ *
403
+ * Copyright (c) Facebook, Inc. and its affiliates.
404
+ *
405
+ * This source code is licensed under the MIT license found in the
406
+ * LICENSE file in the root directory of this source tree.
407
+ */
408
+ var st;
409
+ function xt() {
410
+ return st || (st = 1, process.env.NODE_ENV !== "production" && function() {
411
+ var b = lt, A = ct, Q = b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
412
+ function ue(e) {
413
+ {
414
+ for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
415
+ r[a - 1] = arguments[a];
416
+ y("warn", e, r);
417
+ }
418
+ }
419
+ function ee(e) {
420
+ {
421
+ for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
422
+ r[a - 1] = arguments[a];
423
+ y("error", e, r);
424
+ }
425
+ }
426
+ function y(e, n, r) {
427
+ {
428
+ var a = Q.ReactDebugCurrentFrame, u = a.getStackAddendum();
429
+ u !== "" && (n += "%s", r = r.concat([u]));
430
+ var c = r.map(function(h) {
431
+ return String(h);
432
+ });
433
+ c.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, c);
434
+ }
435
+ }
436
+ function x(e) {
437
+ return e._reactInternals;
438
+ }
439
+ var G = 0, le = 1, g = 3, O = 5, ke = 6, N = (
440
+ /* */
441
+ 0
442
+ ), te = (
443
+ /* */
444
+ 2
445
+ ), ne = (
446
+ /* */
447
+ 4096
448
+ );
449
+ Q.ReactCurrentOwner;
450
+ function U(e) {
451
+ var n = e, r = e;
452
+ if (e.alternate)
453
+ for (; n.return; )
454
+ n = n.return;
455
+ else {
456
+ var a = n;
457
+ do
458
+ n = a, (n.flags & (te | ne)) !== N && (r = n.return), a = n.return;
459
+ while (a);
460
+ }
461
+ return n.tag === g ? r : null;
462
+ }
463
+ function K(e) {
464
+ if (U(e) !== e)
465
+ throw new Error("Unable to find node on an unmounted component.");
466
+ }
467
+ function Te(e) {
468
+ var n = e.alternate;
469
+ if (!n) {
470
+ var r = U(e);
471
+ if (r === null)
472
+ throw new Error("Unable to find node on an unmounted component.");
473
+ return r !== e ? null : e;
474
+ }
475
+ for (var a = e, u = n; ; ) {
476
+ var c = a.return;
477
+ if (c === null)
478
+ break;
479
+ var h = c.alternate;
480
+ if (h === null) {
481
+ var T = c.return;
482
+ if (T !== null) {
483
+ a = u = T;
484
+ continue;
485
+ }
486
+ break;
487
+ }
488
+ if (c.child === h.child) {
489
+ for (var M = c.child; M; ) {
490
+ if (M === a)
491
+ return K(c), e;
492
+ if (M === u)
493
+ return K(c), n;
494
+ M = M.sibling;
495
+ }
496
+ throw new Error("Unable to find node on an unmounted component.");
497
+ }
498
+ if (a.return !== u.return)
499
+ a = c, u = h;
500
+ else {
501
+ for (var k = !1, E = c.child; E; ) {
502
+ if (E === a) {
503
+ k = !0, a = c, u = h;
504
+ break;
505
+ }
506
+ if (E === u) {
507
+ k = !0, u = c, a = h;
508
+ break;
509
+ }
510
+ E = E.sibling;
511
+ }
512
+ if (!k) {
513
+ for (E = h.child; E; ) {
514
+ if (E === a) {
515
+ k = !0, a = h, u = c;
516
+ break;
517
+ }
518
+ if (E === u) {
519
+ k = !0, u = h, a = c;
520
+ break;
521
+ }
522
+ E = E.sibling;
523
+ }
524
+ if (!k)
525
+ throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.");
526
+ }
527
+ }
528
+ if (a.alternate !== u)
529
+ throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.");
530
+ }
531
+ if (a.tag !== g)
532
+ throw new Error("Unable to find node on an unmounted component.");
533
+ return a.stateNode.current === a ? e : n;
534
+ }
535
+ var w = Object.assign;
536
+ function re(e) {
537
+ var n, r = e.keyCode;
538
+ return "charCode" in e ? (n = e.charCode, n === 0 && r === 13 && (n = 13)) : n = r, n === 10 && (n = 13), n >= 32 || n === 13 ? n : 0;
539
+ }
540
+ function z() {
541
+ return !0;
542
+ }
543
+ function ce() {
544
+ return !1;
545
+ }
546
+ function C(e) {
547
+ function n(r, a, u, c, h) {
548
+ this._reactName = r, this._targetInst = u, this.type = a, this.nativeEvent = c, this.target = h, this.currentTarget = null;
549
+ for (var T in e)
550
+ if (e.hasOwnProperty(T)) {
551
+ var M = e[T];
552
+ M ? this[T] = M(c) : this[T] = c[T];
553
+ }
554
+ var k = c.defaultPrevented != null ? c.defaultPrevented : c.returnValue === !1;
555
+ return k ? this.isDefaultPrevented = z : this.isDefaultPrevented = ce, this.isPropagationStopped = ce, this;
556
+ }
557
+ return w(n.prototype, {
558
+ preventDefault: function() {
559
+ this.defaultPrevented = !0;
560
+ var r = this.nativeEvent;
561
+ r && (r.preventDefault ? r.preventDefault() : typeof r.returnValue != "unknown" && (r.returnValue = !1), this.isDefaultPrevented = z);
562
+ },
563
+ stopPropagation: function() {
564
+ var r = this.nativeEvent;
565
+ r && (r.stopPropagation ? r.stopPropagation() : typeof r.cancelBubble != "unknown" && (r.cancelBubble = !0), this.isPropagationStopped = z);
566
+ },
567
+ /**
568
+ * We release all dispatched `SyntheticEvent`s after each event loop, adding
569
+ * them back into the pool. This allows a way to hold onto a reference that
570
+ * won't be added back into the pool.
571
+ */
572
+ persist: function() {
573
+ },
574
+ /**
575
+ * Checks if this event should be released back into the pool.
576
+ *
577
+ * @return {boolean} True if this should not be released, false otherwise.
578
+ */
579
+ isPersistent: z
580
+ }), n;
581
+ }
582
+ var L = {
583
+ eventPhase: 0,
584
+ bubbles: 0,
585
+ cancelable: 0,
586
+ timeStamp: function(e) {
587
+ return e.timeStamp || Date.now();
588
+ },
589
+ defaultPrevented: 0,
590
+ isTrusted: 0
591
+ }, Me = C(L), F = w({}, L, {
592
+ view: 0,
593
+ detail: 0
594
+ });
595
+ C(F);
596
+ var Y, oe, X;
597
+ function Re(e) {
598
+ e !== X && (X && e.type === "mousemove" ? (Y = e.screenX - X.screenX, oe = e.screenY - X.screenY) : (Y = 0, oe = 0), X = e);
599
+ }
600
+ var H = w({}, F, {
601
+ screenX: 0,
602
+ screenY: 0,
603
+ clientX: 0,
604
+ clientY: 0,
605
+ pageX: 0,
606
+ pageY: 0,
607
+ ctrlKey: 0,
608
+ shiftKey: 0,
609
+ altKey: 0,
610
+ metaKey: 0,
611
+ getModifierState: I,
612
+ button: 0,
613
+ buttons: 0,
614
+ relatedTarget: function(e) {
615
+ return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget;
616
+ },
617
+ movementX: function(e) {
618
+ return "movementX" in e ? e.movementX : (Re(e), Y);
619
+ },
620
+ movementY: function(e) {
621
+ return "movementY" in e ? e.movementY : oe;
622
+ }
623
+ });
624
+ C(H);
625
+ var Se = w({}, H, {
626
+ dataTransfer: 0
627
+ });
628
+ C(Se);
629
+ var Oe = w({}, F, {
630
+ relatedTarget: 0
631
+ });
632
+ C(Oe);
633
+ var j = w({}, L, {
634
+ animationName: 0,
635
+ elapsedTime: 0,
636
+ pseudoElement: 0
637
+ });
638
+ C(j);
639
+ var B = w({}, L, {
640
+ clipboardData: function(e) {
641
+ return "clipboardData" in e ? e.clipboardData : window.clipboardData;
642
+ }
643
+ });
644
+ C(B);
645
+ var Z = w({}, L, {
646
+ data: 0
647
+ });
648
+ C(Z);
649
+ var ae = {
650
+ Esc: "Escape",
651
+ Spacebar: " ",
652
+ Left: "ArrowLeft",
653
+ Up: "ArrowUp",
654
+ Right: "ArrowRight",
655
+ Down: "ArrowDown",
656
+ Del: "Delete",
657
+ Win: "OS",
658
+ Menu: "ContextMenu",
659
+ Apps: "ContextMenu",
660
+ Scroll: "ScrollLock",
661
+ MozPrintableKey: "Unidentified"
662
+ }, Ie = {
663
+ 8: "Backspace",
664
+ 9: "Tab",
665
+ 12: "Clear",
666
+ 13: "Enter",
667
+ 16: "Shift",
668
+ 17: "Control",
669
+ 18: "Alt",
670
+ 19: "Pause",
671
+ 20: "CapsLock",
672
+ 27: "Escape",
673
+ 32: " ",
674
+ 33: "PageUp",
675
+ 34: "PageDown",
676
+ 35: "End",
677
+ 36: "Home",
678
+ 37: "ArrowLeft",
679
+ 38: "ArrowUp",
680
+ 39: "ArrowRight",
681
+ 40: "ArrowDown",
682
+ 45: "Insert",
683
+ 46: "Delete",
684
+ 112: "F1",
685
+ 113: "F2",
686
+ 114: "F3",
687
+ 115: "F4",
688
+ 116: "F5",
689
+ 117: "F6",
690
+ 118: "F7",
691
+ 119: "F8",
692
+ 120: "F9",
693
+ 121: "F10",
694
+ 122: "F11",
695
+ 123: "F12",
696
+ 144: "NumLock",
697
+ 145: "ScrollLock",
698
+ 224: "Meta"
699
+ };
700
+ function Pe(e) {
701
+ if (e.key) {
702
+ var n = ae[e.key] || e.key;
703
+ if (n !== "Unidentified")
704
+ return n;
705
+ }
706
+ if (e.type === "keypress") {
707
+ var r = re(e);
708
+ return r === 13 ? "Enter" : String.fromCharCode(r);
709
+ }
710
+ return e.type === "keydown" || e.type === "keyup" ? Ie[e.keyCode] || "Unidentified" : "";
711
+ }
712
+ var _e = {
713
+ Alt: "altKey",
714
+ Control: "ctrlKey",
715
+ Meta: "metaKey",
716
+ Shift: "shiftKey"
717
+ };
718
+ function ie(e) {
719
+ var n = this, r = n.nativeEvent;
720
+ if (r.getModifierState)
721
+ return r.getModifierState(e);
722
+ var a = _e[e];
723
+ return a ? !!r[a] : !1;
724
+ }
725
+ function I(e) {
726
+ return ie;
727
+ }
728
+ var Ue = w({}, F, {
729
+ key: Pe,
730
+ code: 0,
731
+ location: 0,
732
+ ctrlKey: 0,
733
+ shiftKey: 0,
734
+ altKey: 0,
735
+ metaKey: 0,
736
+ repeat: 0,
737
+ locale: 0,
738
+ getModifierState: I,
739
+ // Legacy Interface
740
+ charCode: function(e) {
741
+ return e.type === "keypress" ? re(e) : 0;
742
+ },
743
+ keyCode: function(e) {
744
+ return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
745
+ },
746
+ which: function(e) {
747
+ return e.type === "keypress" ? re(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
748
+ }
749
+ });
750
+ C(Ue);
751
+ var Le = w({}, H, {
752
+ pointerId: 0,
753
+ width: 0,
754
+ height: 0,
755
+ pressure: 0,
756
+ tangentialPressure: 0,
757
+ tiltX: 0,
758
+ tiltY: 0,
759
+ twist: 0,
760
+ pointerType: 0,
761
+ isPrimary: 0
762
+ });
763
+ C(Le);
764
+ var We = w({}, F, {
765
+ touches: 0,
766
+ targetTouches: 0,
767
+ changedTouches: 0,
768
+ altKey: 0,
769
+ metaKey: 0,
770
+ ctrlKey: 0,
771
+ shiftKey: 0,
772
+ getModifierState: I
773
+ });
774
+ C(We);
775
+ var Ae = w({}, L, {
776
+ propertyName: 0,
777
+ elapsedTime: 0,
778
+ pseudoElement: 0
779
+ });
780
+ C(Ae);
781
+ var xe = w({}, H, {
782
+ deltaX: function(e) {
783
+ return "deltaX" in e ? e.deltaX : (
784
+ // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
785
+ "wheelDeltaX" in e ? -e.wheelDeltaX : 0
786
+ );
787
+ },
788
+ deltaY: function(e) {
789
+ return "deltaY" in e ? e.deltaY : (
790
+ // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
791
+ "wheelDeltaY" in e ? -e.wheelDeltaY : (
792
+ // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
793
+ "wheelDelta" in e ? -e.wheelDelta : 0
794
+ )
795
+ );
796
+ },
797
+ deltaZ: 0,
798
+ // Browsers without "deltaMode" is reporting in raw wheel delta where one
799
+ // notch on the scroll is always +/- 120, roughly equivalent to pixels.
800
+ // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
801
+ // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
802
+ deltaMode: 0
803
+ });
804
+ C(xe);
805
+ var de = 1;
806
+ function fe(e, n, r, a, u, c, h, T, M) {
807
+ var k = Array.prototype.slice.call(arguments, 3);
808
+ try {
809
+ n.apply(r, k);
810
+ } catch (E) {
811
+ this.onError(E);
812
+ }
813
+ }
814
+ var pe = fe;
815
+ if (typeof window < "u" && typeof window.dispatchEvent == "function" && typeof document < "u" && typeof document.createEvent == "function") {
816
+ var R = document.createElement("react");
817
+ pe = function(n, r, a, u, c, h, T, M, k) {
818
+ if (typeof document > "u" || document === null)
819
+ throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");
820
+ var E = document.createEvent("Event"), Xe = !1, Qe = !0, Lt = window.event, et = Object.getOwnPropertyDescriptor(window, "event");
821
+ function tt() {
822
+ R.removeEventListener(je, nt, !1), typeof window.event < "u" && window.hasOwnProperty("event") && (window.event = Lt);
823
+ }
824
+ var Wt = Array.prototype.slice.call(arguments, 3);
825
+ function nt() {
826
+ Xe = !0, tt(), r.apply(a, Wt), Qe = !1;
827
+ }
828
+ var W, rt = !1, ot = !1;
829
+ function at(be) {
830
+ if (W = be.error, rt = !0, W === null && be.colno === 0 && be.lineno === 0 && (ot = !0), be.defaultPrevented && W != null && typeof W == "object")
831
+ try {
832
+ W._suppressLogging = !0;
833
+ } catch {
834
+ }
835
+ }
836
+ var je = "react-" + (n || "invokeguardedcallback");
837
+ if (window.addEventListener("error", at), R.addEventListener(je, nt, !1), E.initEvent(je, !1, !1), R.dispatchEvent(E), et && Object.defineProperty(window, "event", et), Xe && Qe && (rt ? ot && (W = new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")) : W = new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`), this.onError(W)), window.removeEventListener("error", at), !Xe)
838
+ return tt(), fe.apply(this, arguments);
839
+ };
840
+ }
841
+ var $ = pe, P = !1, V = null, _ = !1, J = null, he = {
842
+ onError: function(e) {
843
+ P = !0, V = e;
844
+ }
845
+ };
846
+ function me(e, n, r, a, u, c, h, T, M) {
847
+ P = !1, V = null, $.apply(he, arguments);
848
+ }
849
+ function ve(e, n, r, a, u, c, h, T, M) {
850
+ if (me.apply(this, arguments), P) {
851
+ var k = ge();
852
+ _ || (_ = !0, J = k);
853
+ }
854
+ }
855
+ function ye() {
856
+ if (_) {
857
+ var e = J;
858
+ throw _ = !1, J = null, e;
859
+ }
860
+ }
861
+ function ge() {
862
+ if (P) {
863
+ var e = V;
864
+ return P = !1, V = null, e;
865
+ } else
866
+ throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.");
867
+ }
868
+ var Ne = Array.isArray;
869
+ function se(e) {
870
+ return Ne(e);
871
+ }
872
+ var we = A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, q = we.Events, Ke = q[0], t = q[1], i = q[2], o = q[3], s = q[4], d = b.unstable_act;
873
+ function f(e) {
874
+ }
875
+ var l = !1;
876
+ function p(e, n) {
877
+ if (!e)
878
+ return [];
879
+ var r = Te(e);
880
+ if (!r)
881
+ return [];
882
+ for (var a = r, u = []; ; ) {
883
+ if (a.tag === O || a.tag === ke || a.tag === le || a.tag === G) {
884
+ var c = a.stateNode;
885
+ n(c) && u.push(c);
886
+ }
887
+ if (a.child) {
888
+ a.child.return = a, a = a.child;
889
+ continue;
890
+ }
891
+ if (a === r)
892
+ return u;
893
+ for (; !a.sibling; ) {
894
+ if (!a.return || a.return === r)
895
+ return u;
896
+ a = a.return;
897
+ }
898
+ a.sibling.return = a.return, a = a.sibling;
899
+ }
900
+ }
901
+ function D(e, n) {
902
+ if (e && !x(e)) {
903
+ var r, a = String(e);
904
+ throw se(e) ? r = "an array" : e && e.nodeType === de && e.tagName ? r = "a DOM node" : a === "[object Object]" ? r = "object with keys {" + Object.keys(e).join(", ") + "}" : r = a, new Error(n + "(...): the first argument must be a React class instance. " + ("Instead received: " + r + "."));
905
+ }
906
+ }
907
+ var S = !1;
908
+ function Fe(e) {
909
+ S || (S = !0, ee("ReactDOMTestUtils is deprecated and will be removed in a future major release, because it exposes internal implementation details that are highly likely to change between releases. Upgrade to a modern testing library, such as @testing-library/react. See https://react.dev/warnings/react-dom-test-utils for more info."));
910
+ var n = document.createElement("div");
911
+ return A.render(e, n);
912
+ }
913
+ function dt(e) {
914
+ return b.isValidElement(e);
915
+ }
916
+ function ft(e, n) {
917
+ return b.isValidElement(e) && e.type === n;
918
+ }
919
+ function Ee(e) {
920
+ return !!(e && e.nodeType === de && e.tagName);
921
+ }
922
+ function pt(e) {
923
+ return !!(e && b.isValidElement(e) && e.tagName);
924
+ }
925
+ function Ye(e) {
926
+ return Ee(e) ? !1 : e != null && typeof e.render == "function" && typeof e.setState == "function";
927
+ }
928
+ function Ve(e, n) {
929
+ if (!Ye(e))
930
+ return !1;
931
+ var r = x(e), a = r.type;
932
+ return a === n;
933
+ }
934
+ function Ce(e, n) {
935
+ if (D(e, "findAllInRenderedTree"), !e)
936
+ return [];
937
+ var r = x(e);
938
+ return p(r, n);
939
+ }
940
+ function qe(e, n) {
941
+ return D(e, "scryRenderedDOMComponentsWithClass"), Ce(e, function(r) {
942
+ if (Ee(r)) {
943
+ var a = r.className;
944
+ typeof a != "string" && (a = r.getAttribute("class") || "");
945
+ var u = a.split(/\s+/);
946
+ if (!se(n)) {
947
+ if (n === void 0)
948
+ throw new Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.");
949
+ n = n.split(/\s+/);
950
+ }
951
+ return n.every(function(c) {
952
+ return u.indexOf(c) !== -1;
953
+ });
954
+ }
955
+ return !1;
956
+ });
957
+ }
958
+ function ht(e, n) {
959
+ D(e, "findRenderedDOMComponentWithClass");
960
+ var r = qe(e, n);
961
+ if (r.length !== 1)
962
+ throw new Error("Did not find exactly one match (found: " + r.length + ") for class:" + n);
963
+ return r[0];
964
+ }
965
+ function Ge(e, n) {
966
+ return D(e, "scryRenderedDOMComponentsWithTag"), Ce(e, function(r) {
967
+ return Ee(r) && r.tagName.toUpperCase() === n.toUpperCase();
968
+ });
969
+ }
970
+ function mt(e, n) {
971
+ D(e, "findRenderedDOMComponentWithTag");
972
+ var r = Ge(e, n);
973
+ if (r.length !== 1)
974
+ throw new Error("Did not find exactly one match (found: " + r.length + ") for tag:" + n);
975
+ return r[0];
976
+ }
977
+ function ze(e, n) {
978
+ return D(e, "scryRenderedComponentsWithType"), Ce(e, function(r) {
979
+ return Ve(r, n);
980
+ });
981
+ }
982
+ function vt(e, n) {
983
+ D(e, "findRenderedComponentWithType");
984
+ var r = ze(e, n);
985
+ if (r.length !== 1)
986
+ throw new Error("Did not find exactly one match (found: " + r.length + ") for componentType:" + n);
987
+ return r[0];
988
+ }
989
+ function yt(e, n) {
990
+ return l || (l = !0, ue(`ReactTestUtils.mockComponent() is deprecated. Use shallow rendering or jest.mock() instead.
991
+
992
+ See https://reactjs.org/link/test-utils-mock-component for more information.`)), n = n || e.mockTagName || "div", e.prototype.render.mockImplementation(function() {
993
+ return b.createElement(n, null, this.props.children);
994
+ }), this;
995
+ }
996
+ function gt(e, n) {
997
+ return {
998
+ touches: [{
999
+ pageX: e,
1000
+ pageY: n
1001
+ }]
1002
+ };
1003
+ }
1004
+ function He(e, n, r) {
1005
+ var a = e.type || "unknown-event";
1006
+ e.currentTarget = t(r), ve(a, n, void 0, e), e.currentTarget = null;
1007
+ }
1008
+ function wt(e) {
1009
+ var n = e._dispatchListeners, r = e._dispatchInstances;
1010
+ if (se(n))
1011
+ for (var a = 0; a < n.length && !e.isPropagationStopped(); a++)
1012
+ He(e, n[a], r[a]);
1013
+ else n && He(e, n, r);
1014
+ e._dispatchListeners = null, e._dispatchInstances = null;
1015
+ }
1016
+ var Et = function(e) {
1017
+ e && (wt(e), e.isPersistent() || e.constructor.release(e));
1018
+ };
1019
+ function Ct(e) {
1020
+ return e === "button" || e === "input" || e === "select" || e === "textarea";
1021
+ }
1022
+ function bt(e) {
1023
+ do
1024
+ e = e.return;
1025
+ while (e && e.tag !== O);
1026
+ return e || null;
1027
+ }
1028
+ function Be(e, n, r) {
1029
+ for (var a = []; e; )
1030
+ a.push(e), e = bt(e);
1031
+ var u;
1032
+ for (u = a.length; u-- > 0; )
1033
+ n(a[u], "captured", r);
1034
+ for (u = 0; u < a.length; u++)
1035
+ n(a[u], "bubbled", r);
1036
+ }
1037
+ function Dt(e, n, r) {
1038
+ switch (e) {
1039
+ case "onClick":
1040
+ case "onClickCapture":
1041
+ case "onDoubleClick":
1042
+ case "onDoubleClickCapture":
1043
+ case "onMouseDown":
1044
+ case "onMouseDownCapture":
1045
+ case "onMouseMove":
1046
+ case "onMouseMoveCapture":
1047
+ case "onMouseUp":
1048
+ case "onMouseUpCapture":
1049
+ case "onMouseEnter":
1050
+ return !!(r.disabled && Ct(n));
1051
+ default:
1052
+ return !1;
1053
+ }
1054
+ }
1055
+ function Ze(e, n) {
1056
+ var r = e.stateNode;
1057
+ if (!r)
1058
+ return null;
1059
+ var a = i(r);
1060
+ if (!a)
1061
+ return null;
1062
+ var u = a[n];
1063
+ if (Dt(n, e.type, a))
1064
+ return null;
1065
+ if (u && typeof u != "function")
1066
+ throw new Error("Expected `" + n + "` listener to be a function, instead got a value of `" + typeof u + "` type.");
1067
+ return u;
1068
+ }
1069
+ function kt(e, n, r) {
1070
+ var a = n._reactName;
1071
+ return r === "captured" && (a += "Capture"), Ze(e, a);
1072
+ }
1073
+ function Tt(e, n, r) {
1074
+ if (e && r && r._reactName) {
1075
+ var a = r._reactName, u = Ze(e, a);
1076
+ u && (r._dispatchListeners == null && (r._dispatchListeners = []), r._dispatchInstances == null && (r._dispatchInstances = []), r._dispatchListeners.push(u), r._dispatchInstances.push(e));
1077
+ }
1078
+ }
1079
+ function Mt(e, n, r) {
1080
+ e || ee("Dispatching inst must not be null");
1081
+ var a = kt(e, r, n);
1082
+ a && (r._dispatchListeners == null && (r._dispatchListeners = []), r._dispatchInstances == null && (r._dispatchInstances = []), r._dispatchListeners.push(a), r._dispatchInstances.push(e));
1083
+ }
1084
+ function Rt(e) {
1085
+ e && e._reactName && Tt(e._targetInst, null, e);
1086
+ }
1087
+ function St(e) {
1088
+ e && e._reactName && Be(e._targetInst, Mt, e);
1089
+ }
1090
+ var $e = {}, Ot = /* @__PURE__ */ new Set(["mouseEnter", "mouseLeave", "pointerEnter", "pointerLeave"]);
1091
+ function It(e) {
1092
+ return function(n, r) {
1093
+ if (b.isValidElement(n))
1094
+ throw new Error("TestUtils.Simulate expected a DOM node as the first argument but received a React element. Pass the DOM node you wish to simulate the event on instead. Note that TestUtils.Simulate will not work if you are using shallow rendering.");
1095
+ if (Ye(n))
1096
+ throw new Error("TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead.");
1097
+ var a = "on" + e[0].toUpperCase() + e.slice(1), u = new f();
1098
+ u.target = n, u.type = e.toLowerCase();
1099
+ var c = Ke(n), h = new Me(a, u.type, c, u, n);
1100
+ h.persist(), w(h, r), Ot.has(e) ? Rt(h) : St(h), A.unstable_batchedUpdates(function() {
1101
+ o(n), Et(h), ye();
1102
+ }), s();
1103
+ };
1104
+ }
1105
+ var Pt = ["blur", "cancel", "click", "close", "contextMenu", "copy", "cut", "auxClick", "doubleClick", "dragEnd", "dragStart", "drop", "focus", "input", "invalid", "keyDown", "keyPress", "keyUp", "mouseDown", "mouseUp", "paste", "pause", "play", "pointerCancel", "pointerDown", "pointerUp", "rateChange", "reset", "resize", "seeked", "submit", "touchCancel", "touchEnd", "touchStart", "volumeChange", "drag", "dragEnter", "dragExit", "dragLeave", "dragOver", "mouseMove", "mouseOut", "mouseOver", "pointerMove", "pointerOut", "pointerOver", "scroll", "toggle", "touchMove", "wheel", "abort", "animationEnd", "animationIteration", "animationStart", "canPlay", "canPlayThrough", "durationChange", "emptied", "encrypted", "ended", "error", "gotPointerCapture", "load", "loadedData", "loadedMetadata", "loadStart", "lostPointerCapture", "playing", "progress", "seeking", "stalled", "suspend", "timeUpdate", "transitionEnd", "waiting", "mouseEnter", "mouseLeave", "pointerEnter", "pointerLeave", "change", "select", "beforeInput", "compositionEnd", "compositionStart", "compositionUpdate"];
1106
+ function _t() {
1107
+ Pt.forEach(function(e) {
1108
+ $e[e] = It(e);
1109
+ });
1110
+ }
1111
+ _t();
1112
+ var Je = !1, Ut = function(n) {
1113
+ return Je || (Je = !0, ee("`ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.")), d(n);
1114
+ };
1115
+ v.Simulate = $e, v.act = Ut, v.findAllInRenderedTree = Ce, v.findRenderedComponentWithType = vt, v.findRenderedDOMComponentWithClass = ht, v.findRenderedDOMComponentWithTag = mt, v.isCompositeComponent = Ye, v.isCompositeComponentWithType = Ve, v.isDOMComponent = Ee, v.isDOMComponentElement = pt, v.isElement = dt, v.isElementOfType = ft, v.mockComponent = yt, v.nativeTouchData = gt, v.renderIntoDocument = Fe, v.scryRenderedComponentsWithType = ze, v.scryRenderedDOMComponentsWithClass = qe, v.scryRenderedDOMComponentsWithTag = Ge, v.traverseTwoPhase = Be;
1116
+ }()), v;
1117
+ }
1118
+ var ut;
1119
+ function Nt() {
1120
+ return ut || (ut = 1, process.env.NODE_ENV === "production" ? De.exports = At() : De.exports = xt()), De.exports;
1121
+ }
1122
+ var Xt = Nt();
1123
+ export {
1124
+ Xt as t
1125
+ };
1126
+ //# sourceMappingURL=test-utils-CTqdUiUm.js.map