@blocknote/xl-multi-column 0.19.0 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocknote-xl-multi-column.js +243 -228
- package/dist/blocknote-xl-multi-column.js.map +1 -1
- package/dist/blocknote-xl-multi-column.umd.cjs +18 -18
- package/dist/blocknote-xl-multi-column.umd.cjs.map +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +4 -4
- package/src/extensions/ColumnResize/ColumnResizeExtension.ts +5 -3
- package/src/extensions/DropCursor/MultiColumnDropCursorPlugin.ts +34 -12
- package/src/test/commands/__snapshots__/removeBlocks.test.ts.snap +226 -0
- package/src/test/commands/__snapshots__/replaceBlocks.test.ts.snap +175 -0
- package/src/test/commands/removeBlocks.test.ts +19 -0
- package/src/test/commands/replaceBlocks.test.ts +40 -0
- package/types/src/test/commands/removeBlocks.test.d.ts +1 -0
- package/types/src/test/commands/replaceBlocks.test.d.ts +1 -0
- package/types/src/test/setupTestEnv.d.ts +0 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var pn = Object.defineProperty;
|
|
2
2
|
var hn = (s, n, a) => n in s ? pn(s, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : s[n] = a;
|
|
3
|
-
var
|
|
4
|
-
import { getNodeById as wr, createStronglyTypedTiptapNode as Nr, createBlockSpecFromStronglyTypedTiptapNode as Mr, BlockNoteSchema as Lr, getBlockInfo as mn, nodeToBlock as Gt, UniqueID as vn,
|
|
3
|
+
var ue = (s, n, a) => hn(s, typeof n != "symbol" ? n + "" : n, a);
|
|
4
|
+
import { getNodeById as wr, createStronglyTypedTiptapNode as Nr, createBlockSpecFromStronglyTypedTiptapNode as Mr, BlockNoteSchema as Lr, getBlockInfo as mn, nodeToBlock as Gt, UniqueID as vn, getNearestBlockPos as yn, insertOrUpdateBlock as Cr } from "@blocknote/core";
|
|
5
5
|
import { Extension as gn } from "@tiptap/core";
|
|
6
6
|
import { PluginKey as bn, Plugin as Fr } from "prosemirror-state";
|
|
7
7
|
import { DecorationSet as Er, Decoration as Rr } from "prosemirror-view";
|
|
@@ -257,11 +257,11 @@ function Sr(s) {
|
|
|
257
257
|
const ke = new bn("ColumnResizePlugin");
|
|
258
258
|
class Mn {
|
|
259
259
|
constructor(n, a) {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
260
|
+
ue(this, "editor");
|
|
261
|
+
ue(this, "view");
|
|
262
|
+
ue(this, "RESIZE_MARGIN_WIDTH_PX", 20);
|
|
263
|
+
ue(this, "COLUMN_MIN_WIDTH_PERCENT", 0.5);
|
|
264
|
+
ue(this, "getColumnHoverOrDefaultState", (n) => {
|
|
265
265
|
const a = n.target;
|
|
266
266
|
if (!this.view.dom.contains(a))
|
|
267
267
|
return { type: "default" };
|
|
@@ -270,21 +270,21 @@ class Mn {
|
|
|
270
270
|
);
|
|
271
271
|
if (!c)
|
|
272
272
|
return { type: "default" };
|
|
273
|
-
const E = n.clientX,
|
|
273
|
+
const E = n.clientX, D = c.getBoundingClientRect(), R = E < D.left + this.RESIZE_MARGIN_WIDTH_PX ? "left" : E > D.right - this.RESIZE_MARGIN_WIDTH_PX ? "right" : "none", C = R === "left" ? c.previousElementSibling : R === "right" ? c.nextElementSibling : void 0;
|
|
274
274
|
if (!C)
|
|
275
275
|
return { type: "default" };
|
|
276
|
-
const m = R === "left" ? C : c, U = R === "left" ? c : C, _ = m.getAttribute("data-id"), b = U.getAttribute("data-id"),
|
|
276
|
+
const m = R === "left" ? C : c, U = R === "left" ? c : C, _ = m.getAttribute("data-id"), b = U.getAttribute("data-id"), j = wr(_, this.view.state.doc), N = wr(
|
|
277
277
|
b,
|
|
278
278
|
this.view.state.doc
|
|
279
279
|
);
|
|
280
|
-
if (!
|
|
280
|
+
if (!j || !N || !j.posBeforeNode)
|
|
281
281
|
throw new Error("Column not found");
|
|
282
282
|
return {
|
|
283
283
|
type: "hover",
|
|
284
284
|
leftColumn: {
|
|
285
285
|
element: m,
|
|
286
286
|
id: _,
|
|
287
|
-
...
|
|
287
|
+
...j
|
|
288
288
|
},
|
|
289
289
|
rightColumn: {
|
|
290
290
|
element: U,
|
|
@@ -296,12 +296,12 @@ class Mn {
|
|
|
296
296
|
// When the user mouses down near the boundary between two columns, we
|
|
297
297
|
// want to set the plugin state to resize, so the columns can be resized
|
|
298
298
|
// by moving the mouse.
|
|
299
|
-
|
|
299
|
+
ue(this, "mouseDownHandler", (n) => {
|
|
300
300
|
let a = this.getColumnHoverOrDefaultState(n);
|
|
301
301
|
if (a.type === "default")
|
|
302
302
|
return;
|
|
303
303
|
n.preventDefault();
|
|
304
|
-
const c = n.clientX, E = a.leftColumn.element.getBoundingClientRect().width,
|
|
304
|
+
const c = n.clientX, E = a.leftColumn.element.getBoundingClientRect().width, D = a.rightColumn.element.getBoundingClientRect().width, R = a.leftColumn.node.attrs.width, C = a.rightColumn.node.attrs.width;
|
|
305
305
|
a = {
|
|
306
306
|
type: "resize",
|
|
307
307
|
startPos: c,
|
|
@@ -312,7 +312,7 @@ class Mn {
|
|
|
312
312
|
},
|
|
313
313
|
rightColumn: {
|
|
314
314
|
...a.rightColumn,
|
|
315
|
-
widthPx:
|
|
315
|
+
widthPx: D,
|
|
316
316
|
widthPercent: C
|
|
317
317
|
}
|
|
318
318
|
}, this.view.dispatch(
|
|
@@ -323,22 +323,22 @@ class Mn {
|
|
|
323
323
|
// hover state if the mouse is near the boundary between two columns, or
|
|
324
324
|
// default otherwise. If the plugin is in a resize state, we want to
|
|
325
325
|
// update the column widths based on the horizontal mouse movement.
|
|
326
|
-
|
|
326
|
+
ue(this, "mouseMoveHandler", (n) => {
|
|
327
327
|
var m, U;
|
|
328
328
|
const a = ke.getState(this.view.state);
|
|
329
329
|
if (!a)
|
|
330
330
|
return;
|
|
331
331
|
if (a.type !== "resize") {
|
|
332
|
-
const _ = this.getColumnHoverOrDefaultState(n), b = a.type === "default" && _.type === "default",
|
|
333
|
-
if (b ||
|
|
332
|
+
const _ = this.getColumnHoverOrDefaultState(n), b = a.type === "default" && _.type === "default", j = a.type !== "default" && _.type !== "default" && a.leftColumn.id === _.leftColumn.id && a.rightColumn.id === _.rightColumn.id;
|
|
333
|
+
if (b || j || _.type === "hover" && ((U = (m = this.editor.sideMenu.view) == null ? void 0 : m.state) != null && U.show))
|
|
334
334
|
return;
|
|
335
335
|
this.view.dispatch(
|
|
336
336
|
this.view.state.tr.setMeta(ke, _)
|
|
337
337
|
);
|
|
338
338
|
return;
|
|
339
339
|
}
|
|
340
|
-
const E = (n.clientX - a.startPos) * a.leftColumn.widthPercent,
|
|
341
|
-
let R = a.leftColumn.widthPercent +
|
|
340
|
+
const E = (n.clientX - a.startPos) * a.leftColumn.widthPercent, D = (a.leftColumn.widthPx + E) / a.leftColumn.widthPx - 1;
|
|
341
|
+
let R = a.leftColumn.widthPercent + D, C = a.rightColumn.widthPercent - D;
|
|
342
342
|
R < this.COLUMN_MIN_WIDTH_PERCENT ? (C -= this.COLUMN_MIN_WIDTH_PERCENT - R, R = this.COLUMN_MIN_WIDTH_PERCENT) : C < this.COLUMN_MIN_WIDTH_PERCENT && (R -= this.COLUMN_MIN_WIDTH_PERCENT - C, C = this.COLUMN_MIN_WIDTH_PERCENT), this.view.dispatch(
|
|
343
343
|
this.view.state.tr.setNodeAttribute(
|
|
344
344
|
a.leftColumn.posBeforeNode,
|
|
@@ -354,7 +354,7 @@ class Mn {
|
|
|
354
354
|
// If the plugin is in a resize state, we want to revert it to a default
|
|
355
355
|
// or hover, depending on where the mouse cursor is, when the user
|
|
356
356
|
// releases the mouse button.
|
|
357
|
-
|
|
357
|
+
ue(this, "mouseUpHandler", (n) => {
|
|
358
358
|
const a = ke.getState(this.view.state);
|
|
359
359
|
if (!a || a.type !== "resize")
|
|
360
360
|
return;
|
|
@@ -363,11 +363,11 @@ class Mn {
|
|
|
363
363
|
this.view.state.tr.setMeta(ke, c)
|
|
364
364
|
), this.editor.sideMenu.unfreezeMenu();
|
|
365
365
|
});
|
|
366
|
-
// This is a required method for PluginView, so we get a type error if we
|
|
367
|
-
// don't implement it.
|
|
368
|
-
oe(this, "update");
|
|
369
366
|
this.editor = n, this.view = a, this.view.dom.addEventListener("mousedown", this.mouseDownHandler), document.body.addEventListener("mousemove", this.mouseMoveHandler), document.body.addEventListener("mouseup", this.mouseUpHandler);
|
|
370
367
|
}
|
|
368
|
+
destroy() {
|
|
369
|
+
this.view.dom.removeEventListener("mousedown", this.mouseDownHandler), document.body.removeEventListener("mousemove", this.mouseMoveHandler), document.body.removeEventListener("mouseup", this.mouseUpHandler);
|
|
370
|
+
}
|
|
371
371
|
}
|
|
372
372
|
const Ln = (s) => new Fr({
|
|
373
373
|
key: ke,
|
|
@@ -523,7 +523,7 @@ function ho(s) {
|
|
|
523
523
|
return new Vn(a, s);
|
|
524
524
|
},
|
|
525
525
|
props: {
|
|
526
|
-
handleDrop(a, c, E,
|
|
526
|
+
handleDrop(a, c, E, D) {
|
|
527
527
|
const R = a.posAtCoords($n(c));
|
|
528
528
|
if (!R)
|
|
529
529
|
throw new Error("Could not get event position");
|
|
@@ -531,7 +531,7 @@ function ho(s) {
|
|
|
531
531
|
let b = "regular";
|
|
532
532
|
if (c.clientX <= _.left + _.width * Ct && (b = "left"), c.clientX >= _.right - _.width * Ct && (b = "right"), b === "regular")
|
|
533
533
|
return !1;
|
|
534
|
-
const
|
|
534
|
+
const j = Gt(
|
|
535
535
|
E.content.child(0),
|
|
536
536
|
n.schema.blockSchema,
|
|
537
537
|
n.schema.inlineContentSchema,
|
|
@@ -546,30 +546,31 @@ function ho(s) {
|
|
|
546
546
|
n.schema.styleSchema
|
|
547
547
|
);
|
|
548
548
|
let ee = 0;
|
|
549
|
-
M.children.forEach((
|
|
550
|
-
ee +=
|
|
549
|
+
M.children.forEach((te) => {
|
|
550
|
+
ee += te.props.width;
|
|
551
551
|
});
|
|
552
552
|
const X = ee / M.children.length;
|
|
553
553
|
if (X < 0.99 || X > 1.01) {
|
|
554
|
-
const
|
|
555
|
-
M.children.forEach((
|
|
556
|
-
|
|
554
|
+
const te = 1 / X;
|
|
555
|
+
M.children.forEach((ie) => {
|
|
556
|
+
ie.props.width = ie.props.width * te;
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
|
-
const
|
|
560
|
-
(
|
|
561
|
-
), z = M.children.
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
559
|
+
const ce = M.children.findIndex(
|
|
560
|
+
(te) => te.id === m.bnBlock.node.attrs.id
|
|
561
|
+
), z = M.children.map((te) => ({
|
|
562
|
+
...te,
|
|
563
|
+
children: te.children.filter(
|
|
564
|
+
(ie) => ie.id !== j.id
|
|
565
|
+
)
|
|
566
|
+
})).filter((te) => te.children.length > 0).toSpliced(b === "left" ? ce : ce + 1, 0, {
|
|
567
|
+
type: "column",
|
|
568
|
+
children: [j],
|
|
569
|
+
props: {},
|
|
570
|
+
content: void 0,
|
|
571
|
+
id: vn.options.generateID()
|
|
572
|
+
});
|
|
573
|
+
n.removeBlocks([j]), n.updateBlock(M, {
|
|
573
574
|
children: z
|
|
574
575
|
});
|
|
575
576
|
} else {
|
|
@@ -578,8 +579,8 @@ function ho(s) {
|
|
|
578
579
|
n.schema.blockSchema,
|
|
579
580
|
n.schema.inlineContentSchema,
|
|
580
581
|
n.schema.styleSchema
|
|
581
|
-
), M = b === "left" ? [
|
|
582
|
-
n.removeBlocks([
|
|
582
|
+
), M = b === "left" ? [j, N] : [N, j];
|
|
583
|
+
n.removeBlocks([j]), n.replaceBlocks(
|
|
583
584
|
[N],
|
|
584
585
|
[
|
|
585
586
|
{
|
|
@@ -599,23 +600,34 @@ function ho(s) {
|
|
|
599
600
|
}
|
|
600
601
|
class Vn {
|
|
601
602
|
constructor(n, a) {
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
603
|
+
ue(this, "width");
|
|
604
|
+
ue(this, "color");
|
|
605
|
+
ue(this, "class");
|
|
606
|
+
ue(this, "cursorPos");
|
|
607
|
+
ue(this, "element", null);
|
|
608
|
+
ue(this, "timeout");
|
|
609
|
+
ue(this, "handlers");
|
|
609
610
|
this.editorView = n, this.width = a.width ?? 1, this.color = a.color === !1 ? void 0 : a.color || "black", this.class = a.class, this.handlers = ["dragover", "dragend", "drop", "dragleave"].map((c) => {
|
|
610
|
-
const E = (
|
|
611
|
-
this[c](
|
|
611
|
+
const E = (D) => {
|
|
612
|
+
this[c](D);
|
|
612
613
|
};
|
|
613
|
-
return n.dom.addEventListener(
|
|
614
|
+
return n.dom.addEventListener(
|
|
615
|
+
c,
|
|
616
|
+
E,
|
|
617
|
+
// drop event captured in bubbling phase to make sure
|
|
618
|
+
// "cursorPos" is set to undefined before the "handleDrop" handler is called
|
|
619
|
+
// (otherwise an error could be thrown, see https://github.com/TypeCellOS/BlockNote/pull/1240)
|
|
620
|
+
c === "drop" ? !0 : void 0
|
|
621
|
+
), { name: c, handler: E };
|
|
614
622
|
});
|
|
615
623
|
}
|
|
616
624
|
destroy() {
|
|
617
625
|
this.handlers.forEach(
|
|
618
|
-
({ name: n, handler: a }) => this.editorView.dom.removeEventListener(
|
|
626
|
+
({ name: n, handler: a }) => this.editorView.dom.removeEventListener(
|
|
627
|
+
n,
|
|
628
|
+
a,
|
|
629
|
+
n === "drop" ? !0 : void 0
|
|
630
|
+
)
|
|
619
631
|
);
|
|
620
632
|
}
|
|
621
633
|
update(n, a) {
|
|
@@ -630,12 +642,15 @@ class Vn {
|
|
|
630
642
|
throw new Error("updateOverlay called with no cursor position");
|
|
631
643
|
const n = this.editorView.state.doc.resolve(this.cursorPos.pos), a = !n.parent.inlineContent;
|
|
632
644
|
let c;
|
|
633
|
-
const E = this.editorView.dom,
|
|
645
|
+
const E = this.editorView.dom, D = E.getBoundingClientRect(), R = D.width / E.offsetWidth, C = D.height / E.offsetHeight;
|
|
634
646
|
if (a) {
|
|
635
|
-
const b = n.nodeBefore,
|
|
636
|
-
if (b ||
|
|
647
|
+
const b = n.nodeBefore, j = n.nodeAfter;
|
|
648
|
+
if (b || j)
|
|
637
649
|
if (this.cursorPos.position === "left" || this.cursorPos.position === "right") {
|
|
638
|
-
const
|
|
650
|
+
const N = this.editorView.nodeDOM(this.cursorPos.pos);
|
|
651
|
+
if (!N)
|
|
652
|
+
throw new Error("nodeDOM returned null in updateOverlay");
|
|
653
|
+
const M = N.getBoundingClientRect(), ee = this.width / 2 * C, X = this.cursorPos.position === "left" ? M.left : M.right;
|
|
639
654
|
c = {
|
|
640
655
|
left: X - ee,
|
|
641
656
|
right: X + ee,
|
|
@@ -651,7 +666,7 @@ class Vn {
|
|
|
651
666
|
if (N) {
|
|
652
667
|
const M = N.getBoundingClientRect();
|
|
653
668
|
let ee = b ? M.bottom : M.top;
|
|
654
|
-
b &&
|
|
669
|
+
b && j && (ee = (ee + this.editorView.nodeDOM(this.cursorPos.pos).getBoundingClientRect().top) / 2);
|
|
655
670
|
const X = this.width / 2 * C;
|
|
656
671
|
this.cursorPos.position === "regular" && (c = {
|
|
657
672
|
left: M.left,
|
|
@@ -663,10 +678,10 @@ class Vn {
|
|
|
663
678
|
}
|
|
664
679
|
}
|
|
665
680
|
if (!c) {
|
|
666
|
-
const b = this.editorView.coordsAtPos(this.cursorPos.pos),
|
|
681
|
+
const b = this.editorView.coordsAtPos(this.cursorPos.pos), j = this.width / 2 * R;
|
|
667
682
|
c = {
|
|
668
|
-
left: b.left -
|
|
669
|
-
right: b.left +
|
|
683
|
+
left: b.left - j,
|
|
684
|
+
right: b.left + j,
|
|
670
685
|
top: b.top,
|
|
671
686
|
bottom: b.bottom
|
|
672
687
|
};
|
|
@@ -680,8 +695,8 @@ class Vn {
|
|
|
680
695
|
if (!m || m === document.body && getComputedStyle(m).position === "static")
|
|
681
696
|
U = -window.scrollX, _ = -window.scrollY;
|
|
682
697
|
else {
|
|
683
|
-
const b = m.getBoundingClientRect(),
|
|
684
|
-
U = b.left - m.scrollLeft *
|
|
698
|
+
const b = m.getBoundingClientRect(), j = b.width / m.offsetWidth, N = b.height / m.offsetHeight;
|
|
699
|
+
U = b.left - m.scrollLeft * j, _ = b.top - m.scrollTop * N;
|
|
685
700
|
}
|
|
686
701
|
this.element.style.left = (c.left - U) / R + "px", this.element.style.top = (c.top - _) / C + "px", this.element.style.width = (c.right - c.left) / R + "px", this.element.style.height = (c.bottom - c.top) / C + "px";
|
|
687
702
|
}
|
|
@@ -695,8 +710,8 @@ class Vn {
|
|
|
695
710
|
const a = this.editorView.posAtCoords({
|
|
696
711
|
left: n.clientX,
|
|
697
712
|
top: n.clientY
|
|
698
|
-
}), c = a && a.inside >= 0 && this.editorView.state.doc.nodeAt(a.inside), E = c && c.type.spec.disableDropCursor,
|
|
699
|
-
if (a && !
|
|
713
|
+
}), c = a && a.inside >= 0 && this.editorView.state.doc.nodeAt(a.inside), E = c && c.type.spec.disableDropCursor, D = typeof E == "function" ? E(this.editorView, a, n) : E;
|
|
714
|
+
if (a && !D) {
|
|
700
715
|
let R = "regular", C = a.pos;
|
|
701
716
|
const m = $r(this.editorView.state, a), _ = this.editorView.nodeDOM(m.posBeforeNode).getBoundingClientRect();
|
|
702
717
|
if (n.clientX <= _.left + _.width * Ct && (R = "left", C = m.posBeforeNode), n.clientX >= _.right - _.width * Ct && (R = "right", C = m.posBeforeNode), R === "regular" && this.editorView.dragging && this.editorView.dragging.slice) {
|
|
@@ -714,7 +729,7 @@ class Vn {
|
|
|
714
729
|
this.scheduleRemoval(20);
|
|
715
730
|
}
|
|
716
731
|
drop() {
|
|
717
|
-
this.
|
|
732
|
+
this.setCursor(void 0);
|
|
718
733
|
}
|
|
719
734
|
dragleave(n) {
|
|
720
735
|
(n.target === this.editorView.dom || !this.editorView.dom.contains(n.relatedTarget)) && this.setCursor(void 0);
|
|
@@ -745,8 +760,8 @@ var Or;
|
|
|
745
760
|
function zn() {
|
|
746
761
|
if (Or) return k;
|
|
747
762
|
Or = 1;
|
|
748
|
-
var s = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"),
|
|
749
|
-
function
|
|
763
|
+
var s = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), D = Symbol.for("react.provider"), R = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), U = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), b = Symbol.iterator;
|
|
764
|
+
function j(o) {
|
|
750
765
|
return o === null || typeof o != "object" ? null : (o = b && o[b] || o["@@iterator"], typeof o == "function" ? o : null);
|
|
751
766
|
}
|
|
752
767
|
var N = { isMounted: function() {
|
|
@@ -764,15 +779,15 @@ function zn() {
|
|
|
764
779
|
}, X.prototype.forceUpdate = function(o) {
|
|
765
780
|
this.updater.enqueueForceUpdate(this, o, "forceUpdate");
|
|
766
781
|
};
|
|
767
|
-
function
|
|
782
|
+
function ce() {
|
|
768
783
|
}
|
|
769
|
-
|
|
784
|
+
ce.prototype = X.prototype;
|
|
770
785
|
function z(o, f, O) {
|
|
771
786
|
this.props = o, this.context = f, this.refs = ee, this.updater = O || N;
|
|
772
787
|
}
|
|
773
|
-
var
|
|
774
|
-
|
|
775
|
-
var
|
|
788
|
+
var te = z.prototype = new ce();
|
|
789
|
+
te.constructor = z, M(te, X.prototype), te.isPureReactComponent = !0;
|
|
790
|
+
var ie = Array.isArray, J = Object.prototype.hasOwnProperty, le = { current: null }, he = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
776
791
|
function ye(o, f, O) {
|
|
777
792
|
var P, A = {}, V = null, W = null;
|
|
778
793
|
if (f != null) for (P in f.ref !== void 0 && (W = f.ref), f.key !== void 0 && (V = "" + f.key), f) J.call(f, P) && !he.hasOwnProperty(P) && (A[P] = f[P]);
|
|
@@ -783,7 +798,7 @@ function zn() {
|
|
|
783
798
|
A.children = L;
|
|
784
799
|
}
|
|
785
800
|
if (o && o.defaultProps) for (P in B = o.defaultProps, B) A[P] === void 0 && (A[P] = B[P]);
|
|
786
|
-
return { $$typeof: s, type: o, key: V, ref: W, props: A, _owner:
|
|
801
|
+
return { $$typeof: s, type: o, key: V, ref: W, props: A, _owner: le.current };
|
|
787
802
|
}
|
|
788
803
|
function Oe(o, f) {
|
|
789
804
|
return { $$typeof: s, type: o.type, key: f, ref: o.ref, props: o.props, _owner: o._owner };
|
|
@@ -798,7 +813,7 @@ function zn() {
|
|
|
798
813
|
});
|
|
799
814
|
}
|
|
800
815
|
var Pe = /\/+/g;
|
|
801
|
-
function
|
|
816
|
+
function ae(o, f) {
|
|
802
817
|
return typeof o == "object" && o !== null && o.key != null ? He("" + o.key) : f.toString(36);
|
|
803
818
|
}
|
|
804
819
|
function fe(o, f, O, P, A) {
|
|
@@ -818,19 +833,19 @@ function zn() {
|
|
|
818
833
|
W = !0;
|
|
819
834
|
}
|
|
820
835
|
}
|
|
821
|
-
if (W) return W = o, A = A(W), o = P === "" ? "." +
|
|
836
|
+
if (W) return W = o, A = A(W), o = P === "" ? "." + ae(W, 0) : P, ie(A) ? (O = "", o != null && (O = o.replace(Pe, "$&/") + "/"), fe(A, f, O, "", function(Z) {
|
|
822
837
|
return Z;
|
|
823
838
|
})) : A != null && (Te(A) && (A = Oe(A, O + (!A.key || W && W.key === A.key ? "" : ("" + A.key).replace(Pe, "$&/") + "/") + o)), f.push(A)), 1;
|
|
824
|
-
if (W = 0, P = P === "" ? "." : P + ":",
|
|
839
|
+
if (W = 0, P = P === "" ? "." : P + ":", ie(o)) for (var B = 0; B < o.length; B++) {
|
|
825
840
|
V = o[B];
|
|
826
|
-
var L = P +
|
|
841
|
+
var L = P + ae(V, B);
|
|
827
842
|
W += fe(V, f, O, L, A);
|
|
828
843
|
}
|
|
829
|
-
else if (L =
|
|
844
|
+
else if (L = j(o), typeof L == "function") for (o = L.call(o), B = 0; !(V = o.next()).done; ) V = V.value, L = P + ae(V, B++), W += fe(V, f, O, L, A);
|
|
830
845
|
else if (V === "object") throw f = String(o), Error("Objects are not valid as a React child (found: " + (f === "[object Object]" ? "object with keys {" + Object.keys(o).join(", ") + "}" : f) + "). If you meant to render a collection of children, use an array instead.");
|
|
831
846
|
return W;
|
|
832
847
|
}
|
|
833
|
-
function
|
|
848
|
+
function re(o, f, O) {
|
|
834
849
|
if (o == null) return o;
|
|
835
850
|
var P = [], A = 0;
|
|
836
851
|
return fe(o, P, "", "", function(V) {
|
|
@@ -849,21 +864,21 @@ function zn() {
|
|
|
849
864
|
if (o._status === 1) return o._result.default;
|
|
850
865
|
throw o._result;
|
|
851
866
|
}
|
|
852
|
-
var v = { current: null }, me = { transition: null }, je = { ReactCurrentDispatcher: v, ReactCurrentBatchConfig: me, ReactCurrentOwner:
|
|
867
|
+
var v = { current: null }, me = { transition: null }, je = { ReactCurrentDispatcher: v, ReactCurrentBatchConfig: me, ReactCurrentOwner: le };
|
|
853
868
|
function ge() {
|
|
854
869
|
throw Error("act(...) is not supported in production builds of React.");
|
|
855
870
|
}
|
|
856
|
-
return k.Children = { map:
|
|
857
|
-
|
|
871
|
+
return k.Children = { map: re, forEach: function(o, f, O) {
|
|
872
|
+
re(o, function() {
|
|
858
873
|
f.apply(this, arguments);
|
|
859
874
|
}, O);
|
|
860
875
|
}, count: function(o) {
|
|
861
876
|
var f = 0;
|
|
862
|
-
return
|
|
877
|
+
return re(o, function() {
|
|
863
878
|
f++;
|
|
864
879
|
}), f;
|
|
865
880
|
}, toArray: function(o) {
|
|
866
|
-
return
|
|
881
|
+
return re(o, function(f) {
|
|
867
882
|
return f;
|
|
868
883
|
}) || [];
|
|
869
884
|
}, only: function(o) {
|
|
@@ -873,7 +888,7 @@ function zn() {
|
|
|
873
888
|
if (o == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + o + ".");
|
|
874
889
|
var P = M({}, o.props), A = o.key, V = o.ref, W = o._owner;
|
|
875
890
|
if (f != null) {
|
|
876
|
-
if (f.ref !== void 0 && (V = f.ref, W =
|
|
891
|
+
if (f.ref !== void 0 && (V = f.ref, W = le.current), f.key !== void 0 && (A = "" + f.key), o.type && o.type.defaultProps) var B = o.type.defaultProps;
|
|
877
892
|
for (L in f) J.call(f, L) && !he.hasOwnProperty(L) && (P[L] = f[L] === void 0 && B !== void 0 ? B[L] : f[L]);
|
|
878
893
|
}
|
|
879
894
|
var L = arguments.length - 2;
|
|
@@ -885,7 +900,7 @@ function zn() {
|
|
|
885
900
|
}
|
|
886
901
|
return { $$typeof: s, type: o.type, key: A, ref: V, props: P, _owner: W };
|
|
887
902
|
}, k.createContext = function(o) {
|
|
888
|
-
return o = { $$typeof: R, _currentValue: o, _currentValue2: o, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, o.Provider = { $$typeof:
|
|
903
|
+
return o = { $$typeof: R, _currentValue: o, _currentValue2: o, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, o.Provider = { $$typeof: D, _context: o }, o.Consumer = o;
|
|
889
904
|
}, k.createElement = ye, k.createFactory = function(o) {
|
|
890
905
|
var f = ye.bind(null, o);
|
|
891
906
|
return f.type = o, f;
|
|
@@ -952,27 +967,27 @@ function Yn() {
|
|
|
952
967
|
return Tr || (Tr = 1, function(s, n) {
|
|
953
968
|
process.env.NODE_ENV !== "production" && function() {
|
|
954
969
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
955
|
-
var a = "18.3.1", c = Symbol.for("react.element"), E = Symbol.for("react.portal"),
|
|
970
|
+
var a = "18.3.1", c = Symbol.for("react.element"), E = Symbol.for("react.portal"), D = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), U = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), ee = Symbol.for("react.offscreen"), X = Symbol.iterator, ce = "@@iterator";
|
|
956
971
|
function z(e) {
|
|
957
972
|
if (e === null || typeof e != "object")
|
|
958
973
|
return null;
|
|
959
|
-
var t = X && e[X] || e[
|
|
974
|
+
var t = X && e[X] || e[ce];
|
|
960
975
|
return typeof t == "function" ? t : null;
|
|
961
976
|
}
|
|
962
|
-
var
|
|
977
|
+
var te = {
|
|
963
978
|
/**
|
|
964
979
|
* @internal
|
|
965
980
|
* @type {ReactComponent}
|
|
966
981
|
*/
|
|
967
982
|
current: null
|
|
968
|
-
},
|
|
983
|
+
}, ie = {
|
|
969
984
|
transition: null
|
|
970
985
|
}, J = {
|
|
971
986
|
current: null,
|
|
972
987
|
// Used to reproduce behavior of `batchedUpdates` in legacy mode.
|
|
973
988
|
isBatchingLegacy: !1,
|
|
974
989
|
didScheduleLegacyUpdate: !1
|
|
975
|
-
},
|
|
990
|
+
}, le = {
|
|
976
991
|
/**
|
|
977
992
|
* @internal
|
|
978
993
|
* @type {ReactComponent}
|
|
@@ -990,12 +1005,12 @@ function Yn() {
|
|
|
990
1005
|
var t = he.getCurrentStack;
|
|
991
1006
|
return t && (e += t() || ""), e;
|
|
992
1007
|
};
|
|
993
|
-
var Te = !1, He = !1, Pe = !1,
|
|
994
|
-
ReactCurrentDispatcher:
|
|
995
|
-
ReactCurrentBatchConfig:
|
|
996
|
-
ReactCurrentOwner:
|
|
1008
|
+
var Te = !1, He = !1, Pe = !1, ae = !1, fe = !1, re = {
|
|
1009
|
+
ReactCurrentDispatcher: te,
|
|
1010
|
+
ReactCurrentBatchConfig: ie,
|
|
1011
|
+
ReactCurrentOwner: le
|
|
997
1012
|
};
|
|
998
|
-
|
|
1013
|
+
re.ReactDebugCurrentFrame = he, re.ReactCurrentActQueue = J;
|
|
999
1014
|
function pe(e) {
|
|
1000
1015
|
{
|
|
1001
1016
|
for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), u = 1; u < t; u++)
|
|
@@ -1012,7 +1027,7 @@ function Yn() {
|
|
|
1012
1027
|
}
|
|
1013
1028
|
function me(e, t, i) {
|
|
1014
1029
|
{
|
|
1015
|
-
var u =
|
|
1030
|
+
var u = re.ReactDebugCurrentFrame, p = u.getStackAddendum();
|
|
1016
1031
|
p !== "" && (t += "%s", i = i.concat([p]));
|
|
1017
1032
|
var y = i.map(function(h) {
|
|
1018
1033
|
return String(h);
|
|
@@ -1171,7 +1186,7 @@ function Yn() {
|
|
|
1171
1186
|
if (typeof e == "string")
|
|
1172
1187
|
return e;
|
|
1173
1188
|
switch (e) {
|
|
1174
|
-
case
|
|
1189
|
+
case D:
|
|
1175
1190
|
return "Fragment";
|
|
1176
1191
|
case E:
|
|
1177
1192
|
return "Portal";
|
|
@@ -1181,7 +1196,7 @@ function Yn() {
|
|
|
1181
1196
|
return "StrictMode";
|
|
1182
1197
|
case b:
|
|
1183
1198
|
return "Suspense";
|
|
1184
|
-
case
|
|
1199
|
+
case j:
|
|
1185
1200
|
return "SuspenseList";
|
|
1186
1201
|
}
|
|
1187
1202
|
if (typeof e == "object")
|
|
@@ -1250,8 +1265,8 @@ function Yn() {
|
|
|
1250
1265
|
});
|
|
1251
1266
|
}
|
|
1252
1267
|
function at(e) {
|
|
1253
|
-
if (typeof e.ref == "string" &&
|
|
1254
|
-
var t = ve(
|
|
1268
|
+
if (typeof e.ref == "string" && le.current && e.__self && le.current.stateNode !== e.__self) {
|
|
1269
|
+
var t = ve(le.current.type);
|
|
1255
1270
|
Ve[t] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', t, e.ref), Ve[t] = !0);
|
|
1256
1271
|
}
|
|
1257
1272
|
}
|
|
@@ -1285,9 +1300,9 @@ function Yn() {
|
|
|
1285
1300
|
}), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
|
|
1286
1301
|
};
|
|
1287
1302
|
function Tt(e, t, i) {
|
|
1288
|
-
var u, p = {}, y = null, h = null, w = null,
|
|
1303
|
+
var u, p = {}, y = null, h = null, w = null, x = null;
|
|
1289
1304
|
if (t != null) {
|
|
1290
|
-
Ke(t) && (h = t.ref, at(t)), Ce(t) && (xe(t.key), y = "" + t.key), w = t.__self === void 0 ? null : t.__self,
|
|
1305
|
+
Ke(t) && (h = t.ref, at(t)), Ce(t) && (xe(t.key), y = "" + t.key), w = t.__self === void 0 ? null : t.__self, x = t.__source === void 0 ? null : t.__source;
|
|
1291
1306
|
for (u in t)
|
|
1292
1307
|
Ae.call(t, u) && !$e.hasOwnProperty(u) && (p[u] = t[u]);
|
|
1293
1308
|
}
|
|
@@ -1308,7 +1323,7 @@ function Yn() {
|
|
|
1308
1323
|
var Q = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
1309
1324
|
y && Ot(p, Q), h && it(p, Q);
|
|
1310
1325
|
}
|
|
1311
|
-
return Ie(e, y, h, w,
|
|
1326
|
+
return Ie(e, y, h, w, x, le.current, p);
|
|
1312
1327
|
}
|
|
1313
1328
|
function Pt(e, t) {
|
|
1314
1329
|
var i = Ie(e.type, t, e.ref, e._self, e._source, e._owner, e.props);
|
|
@@ -1317,9 +1332,9 @@ function Yn() {
|
|
|
1317
1332
|
function jt(e, t, i) {
|
|
1318
1333
|
if (e == null)
|
|
1319
1334
|
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
|
|
1320
|
-
var u, p = f({}, e.props), y = e.key, h = e.ref, w = e._self,
|
|
1335
|
+
var u, p = f({}, e.props), y = e.key, h = e.ref, w = e._self, x = e._source, $ = e._owner;
|
|
1321
1336
|
if (t != null) {
|
|
1322
|
-
Ke(t) && (h = t.ref, $ =
|
|
1337
|
+
Ke(t) && (h = t.ref, $ = le.current), Ce(t) && (xe(t.key), y = "" + t.key);
|
|
1323
1338
|
var Y;
|
|
1324
1339
|
e.type && e.type.defaultProps && (Y = e.type.defaultProps);
|
|
1325
1340
|
for (u in t)
|
|
@@ -1333,7 +1348,7 @@ function Yn() {
|
|
|
1333
1348
|
G[Q] = arguments[Q + 2];
|
|
1334
1349
|
p.children = G;
|
|
1335
1350
|
}
|
|
1336
|
-
return Ie(e.type, y, h, w,
|
|
1351
|
+
return Ie(e.type, y, h, w, x, $, p);
|
|
1337
1352
|
}
|
|
1338
1353
|
function Ee(e) {
|
|
1339
1354
|
return typeof e == "object" && e !== null && e.$$typeof === c;
|
|
@@ -1375,36 +1390,36 @@ function Yn() {
|
|
|
1375
1390
|
}
|
|
1376
1391
|
}
|
|
1377
1392
|
if (h) {
|
|
1378
|
-
var w = e,
|
|
1379
|
-
if (Be(
|
|
1393
|
+
var w = e, x = p(w), $ = u === "" ? st + Ne(w, 0) : u;
|
|
1394
|
+
if (Be(x)) {
|
|
1380
1395
|
var Y = "";
|
|
1381
|
-
$ != null && (Y = be($) + "/"), Re(
|
|
1396
|
+
$ != null && (Y = be($) + "/"), Re(x, t, Y, "", function(dn) {
|
|
1382
1397
|
return dn;
|
|
1383
1398
|
});
|
|
1384
|
-
} else
|
|
1385
|
-
|
|
1399
|
+
} else x != null && (Ee(x) && (x.key && (!w || w.key !== x.key) && xe(x.key), x = Pt(
|
|
1400
|
+
x,
|
|
1386
1401
|
// Keep both the (mapped) and old keys if they differ, just as
|
|
1387
1402
|
// traverseAllChildren used to do for objects as children
|
|
1388
1403
|
i + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
1389
|
-
(
|
|
1404
|
+
(x.key && (!w || w.key !== x.key) ? (
|
|
1390
1405
|
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
1391
1406
|
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
1392
|
-
be("" +
|
|
1407
|
+
be("" + x.key) + "/"
|
|
1393
1408
|
) : "") + $
|
|
1394
|
-
)), t.push(
|
|
1409
|
+
)), t.push(x));
|
|
1395
1410
|
return 1;
|
|
1396
1411
|
}
|
|
1397
|
-
var H, G, Q = 0,
|
|
1412
|
+
var H, G, Q = 0, oe = u === "" ? st : u + xt;
|
|
1398
1413
|
if (Be(e))
|
|
1399
1414
|
for (var _t = 0; _t < e.length; _t++)
|
|
1400
|
-
H = e[_t], G =
|
|
1415
|
+
H = e[_t], G = oe + Ne(H, _t), Q += Re(H, t, i, G, p);
|
|
1401
1416
|
else {
|
|
1402
1417
|
var Kt = z(e);
|
|
1403
1418
|
if (typeof Kt == "function") {
|
|
1404
1419
|
var gr = e;
|
|
1405
1420
|
Kt === gr.entries && (Ue || pe("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), Ue = !0);
|
|
1406
1421
|
for (var cn = Kt.call(gr), br, fn = 0; !(br = cn.next()).done; )
|
|
1407
|
-
H = br.value, G =
|
|
1422
|
+
H = br.value, G = oe + Ne(H, fn++), Q += Re(H, t, i, G, p);
|
|
1408
1423
|
} else if (y === "object") {
|
|
1409
1424
|
var _r = String(e);
|
|
1410
1425
|
throw new Error("Objects are not valid as a React child (found: " + (_r === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : _r) + "). If you meant to render a collection of children, use an array instead.");
|
|
@@ -1617,7 +1632,7 @@ Your code should look like:
|
|
|
1617
1632
|
var pt;
|
|
1618
1633
|
pt = Symbol.for("react.module.reference");
|
|
1619
1634
|
function r(e) {
|
|
1620
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
1635
|
+
return !!(typeof e == "string" || typeof e == "function" || e === D || e === C || fe || e === R || e === b || e === j || ae || e === ee || Te || He || Pe || typeof e == "object" && e !== null && (e.$$typeof === M || e.$$typeof === N || e.$$typeof === m || e.$$typeof === U || e.$$typeof === _ || // This needs to include all possible module reference object
|
|
1621
1636
|
// types supported by any Flight configuration anywhere since
|
|
1622
1637
|
// we don't know which Flight build this will end up being used
|
|
1623
1638
|
// with.
|
|
@@ -1646,7 +1661,7 @@ Your code should look like:
|
|
|
1646
1661
|
return i;
|
|
1647
1662
|
}
|
|
1648
1663
|
function d() {
|
|
1649
|
-
var e =
|
|
1664
|
+
var e = te.current;
|
|
1650
1665
|
return e === null && v(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
1651
1666
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
1652
1667
|
2. You might be breaking the Rules of Hooks
|
|
@@ -1677,7 +1692,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1677
1692
|
var i = d();
|
|
1678
1693
|
return i.useEffect(e, t);
|
|
1679
1694
|
}
|
|
1680
|
-
function
|
|
1695
|
+
function ne(e, t) {
|
|
1681
1696
|
var i = d();
|
|
1682
1697
|
return i.useInsertionEffect(e, t);
|
|
1683
1698
|
}
|
|
@@ -1703,7 +1718,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1703
1718
|
return i.useDebugValue(e, t);
|
|
1704
1719
|
}
|
|
1705
1720
|
}
|
|
1706
|
-
function
|
|
1721
|
+
function se() {
|
|
1707
1722
|
var e = d();
|
|
1708
1723
|
return e.useTransition();
|
|
1709
1724
|
}
|
|
@@ -1781,7 +1796,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1781
1796
|
Je < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1782
1797
|
}
|
|
1783
1798
|
}
|
|
1784
|
-
var Wt =
|
|
1799
|
+
var Wt = re.ReactCurrentDispatcher, $t;
|
|
1785
1800
|
function ht(e, t, i) {
|
|
1786
1801
|
{
|
|
1787
1802
|
if ($t === void 0)
|
|
@@ -1826,37 +1841,37 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1826
1841
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1827
1842
|
try {
|
|
1828
1843
|
Reflect.construct(h, []);
|
|
1829
|
-
} catch (
|
|
1830
|
-
u =
|
|
1844
|
+
} catch (oe) {
|
|
1845
|
+
u = oe;
|
|
1831
1846
|
}
|
|
1832
1847
|
Reflect.construct(e, [], h);
|
|
1833
1848
|
} else {
|
|
1834
1849
|
try {
|
|
1835
1850
|
h.call();
|
|
1836
|
-
} catch (
|
|
1837
|
-
u =
|
|
1851
|
+
} catch (oe) {
|
|
1852
|
+
u = oe;
|
|
1838
1853
|
}
|
|
1839
1854
|
e.call(h.prototype);
|
|
1840
1855
|
}
|
|
1841
1856
|
} else {
|
|
1842
1857
|
try {
|
|
1843
1858
|
throw Error();
|
|
1844
|
-
} catch (
|
|
1845
|
-
u =
|
|
1859
|
+
} catch (oe) {
|
|
1860
|
+
u = oe;
|
|
1846
1861
|
}
|
|
1847
1862
|
e();
|
|
1848
1863
|
}
|
|
1849
|
-
} catch (
|
|
1850
|
-
if (
|
|
1851
|
-
for (var w =
|
|
1852
|
-
`),
|
|
1853
|
-
`), $ = w.length - 1, Y =
|
|
1864
|
+
} catch (oe) {
|
|
1865
|
+
if (oe && u && typeof oe.stack == "string") {
|
|
1866
|
+
for (var w = oe.stack.split(`
|
|
1867
|
+
`), x = u.stack.split(`
|
|
1868
|
+
`), $ = w.length - 1, Y = x.length - 1; $ >= 1 && Y >= 0 && w[$] !== x[Y]; )
|
|
1854
1869
|
Y--;
|
|
1855
1870
|
for (; $ >= 1 && Y >= 0; $--, Y--)
|
|
1856
|
-
if (w[$] !==
|
|
1871
|
+
if (w[$] !== x[Y]) {
|
|
1857
1872
|
if ($ !== 1 || Y !== 1)
|
|
1858
1873
|
do
|
|
1859
|
-
if ($--, Y--, Y < 0 || w[$] !==
|
|
1874
|
+
if ($--, Y--, Y < 0 || w[$] !== x[Y]) {
|
|
1860
1875
|
var H = `
|
|
1861
1876
|
` + w[$].replace(" at new ", " at ");
|
|
1862
1877
|
return e.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", e.displayName)), typeof e == "function" && mt.set(e, H), H;
|
|
@@ -1888,7 +1903,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1888
1903
|
switch (e) {
|
|
1889
1904
|
case b:
|
|
1890
1905
|
return ht("Suspense");
|
|
1891
|
-
case
|
|
1906
|
+
case j:
|
|
1892
1907
|
return ht("SuspenseList");
|
|
1893
1908
|
}
|
|
1894
1909
|
if (typeof e == "object")
|
|
@@ -1907,7 +1922,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1907
1922
|
}
|
|
1908
1923
|
return "";
|
|
1909
1924
|
}
|
|
1910
|
-
var ar = {}, sr =
|
|
1925
|
+
var ar = {}, sr = re.ReactDebugCurrentFrame;
|
|
1911
1926
|
function yt(e) {
|
|
1912
1927
|
if (e) {
|
|
1913
1928
|
var t = e._owner, i = vt(e.type, e._source, t ? t.type : null);
|
|
@@ -1923,8 +1938,8 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1923
1938
|
var w = void 0;
|
|
1924
1939
|
try {
|
|
1925
1940
|
if (typeof e[h] != "function") {
|
|
1926
|
-
var
|
|
1927
|
-
throw
|
|
1941
|
+
var x = Error((u || "React class") + ": " + i + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1942
|
+
throw x.name = "Invariant Violation", x;
|
|
1928
1943
|
}
|
|
1929
1944
|
w = e[h](t, h, u, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1930
1945
|
} catch ($) {
|
|
@@ -1944,8 +1959,8 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1944
1959
|
var Ut;
|
|
1945
1960
|
Ut = !1;
|
|
1946
1961
|
function ur() {
|
|
1947
|
-
if (
|
|
1948
|
-
var e = ve(
|
|
1962
|
+
if (le.current) {
|
|
1963
|
+
var e = ve(le.current.type);
|
|
1949
1964
|
if (e)
|
|
1950
1965
|
return `
|
|
1951
1966
|
|
|
@@ -1983,7 +1998,7 @@ Check the top-level render call using <` + i + ">.");
|
|
|
1983
1998
|
if (!lr[i]) {
|
|
1984
1999
|
lr[i] = !0;
|
|
1985
2000
|
var u = "";
|
|
1986
|
-
e && e._owner && e._owner !==
|
|
2001
|
+
e && e._owner && e._owner !== le.current && (u = " It was passed a child from " + ve(e._owner.type) + "."), ze(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, u), ze(null);
|
|
1987
2002
|
}
|
|
1988
2003
|
}
|
|
1989
2004
|
}
|
|
@@ -2055,9 +2070,9 @@ Check the top-level render call using <` + i + ">.");
|
|
|
2055
2070
|
if (w == null)
|
|
2056
2071
|
return w;
|
|
2057
2072
|
if (u)
|
|
2058
|
-
for (var
|
|
2059
|
-
fr(arguments[
|
|
2060
|
-
return e ===
|
|
2073
|
+
for (var x = 2; x < arguments.length; x++)
|
|
2074
|
+
fr(arguments[x], e);
|
|
2075
|
+
return e === D ? en(w) : dr(w), w;
|
|
2061
2076
|
}
|
|
2062
2077
|
var hr = !1;
|
|
2063
2078
|
function tn(e) {
|
|
@@ -2077,14 +2092,14 @@ Check the top-level render call using <` + i + ">.");
|
|
|
2077
2092
|
return dr(u), u;
|
|
2078
2093
|
}
|
|
2079
2094
|
function nn(e, t) {
|
|
2080
|
-
var i =
|
|
2081
|
-
|
|
2082
|
-
var u =
|
|
2083
|
-
|
|
2095
|
+
var i = ie.transition;
|
|
2096
|
+
ie.transition = {};
|
|
2097
|
+
var u = ie.transition;
|
|
2098
|
+
ie.transition._updatedFibers = /* @__PURE__ */ new Set();
|
|
2084
2099
|
try {
|
|
2085
2100
|
e();
|
|
2086
2101
|
} finally {
|
|
2087
|
-
if (
|
|
2102
|
+
if (ie.transition = i, i === null && u._updatedFibers) {
|
|
2088
2103
|
var p = u._updatedFibers.size;
|
|
2089
2104
|
p > 10 && pe("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), u._updatedFibers.clear();
|
|
2090
2105
|
}
|
|
@@ -2124,10 +2139,10 @@ Check the top-level render call using <` + i + ">.");
|
|
|
2124
2139
|
if (u !== null && typeof u == "object" && typeof u.then == "function") {
|
|
2125
2140
|
var y = u, h = !1, w = {
|
|
2126
2141
|
then: function(G, Q) {
|
|
2127
|
-
h = !0, y.then(function(
|
|
2128
|
-
bt(t), Ye === 0 ? zt(
|
|
2129
|
-
}, function(
|
|
2130
|
-
bt(t), Q(
|
|
2142
|
+
h = !0, y.then(function(oe) {
|
|
2143
|
+
bt(t), Ye === 0 ? zt(oe, G, Q) : G(oe);
|
|
2144
|
+
}, function(oe) {
|
|
2145
|
+
bt(t), Q(oe);
|
|
2131
2146
|
});
|
|
2132
2147
|
}
|
|
2133
2148
|
};
|
|
@@ -2136,20 +2151,20 @@ Check the top-level render call using <` + i + ">.");
|
|
|
2136
2151
|
h || (vr = !0, v("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
|
|
2137
2152
|
}), w;
|
|
2138
2153
|
} else {
|
|
2139
|
-
var
|
|
2154
|
+
var x = u;
|
|
2140
2155
|
if (bt(t), Ye === 0) {
|
|
2141
2156
|
var $ = J.current;
|
|
2142
2157
|
$ !== null && (Ht($), J.current = null);
|
|
2143
2158
|
var Y = {
|
|
2144
2159
|
then: function(G, Q) {
|
|
2145
|
-
J.current === null ? (J.current = [], zt(
|
|
2160
|
+
J.current === null ? (J.current = [], zt(x, G, Q)) : G(x);
|
|
2146
2161
|
}
|
|
2147
2162
|
};
|
|
2148
2163
|
return Y;
|
|
2149
2164
|
} else {
|
|
2150
2165
|
var H = {
|
|
2151
2166
|
then: function(G, Q) {
|
|
2152
|
-
G(
|
|
2167
|
+
G(x);
|
|
2153
2168
|
}
|
|
2154
2169
|
};
|
|
2155
2170
|
return H;
|
|
@@ -2202,7 +2217,7 @@ Check the top-level render call using <` + i + ">.");
|
|
|
2202
2217
|
toArray: It,
|
|
2203
2218
|
only: ct
|
|
2204
2219
|
};
|
|
2205
|
-
n.Children = ln, n.Component = P, n.Fragment =
|
|
2220
|
+
n.Children = ln, n.Component = P, n.Fragment = D, n.Profiler = C, n.PureComponent = L, n.StrictMode = R, n.Suspense = b, n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = re, n.act = yr, n.cloneElement = sn, n.createContext = ft, n.createElement = an, n.createFactory = un, n.createRef = St, n.forwardRef = Lt, n.isValidElement = Ee, n.lazy = Mt, n.memo = l, n.startTransition = nn, n.unstable_act = yr, n.useCallback = q, n.useContext = g, n.useDebugValue = _e, n.useDeferredValue = Xe, n.useEffect = S, n.useId = Ft, n.useImperativeHandle = Se, n.useInsertionEffect = ne, n.useLayoutEffect = K, n.useMemo = de, n.useReducer = F, n.useRef = T, n.useState = I, n.useSyncExternalStore = Bt, n.useTransition = se, n.version = a, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
2206
2221
|
}();
|
|
2207
2222
|
}(et, et.exports)), et.exports;
|
|
2208
2223
|
}
|
|
@@ -2223,13 +2238,13 @@ var jr;
|
|
|
2223
2238
|
function Hn() {
|
|
2224
2239
|
if (jr) return Ze;
|
|
2225
2240
|
jr = 1;
|
|
2226
|
-
var s = Xt(), n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, E = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
2241
|
+
var s = Xt(), n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, E = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, D = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
2227
2242
|
function R(C, m, U) {
|
|
2228
|
-
var _, b = {},
|
|
2229
|
-
U !== void 0 && (
|
|
2230
|
-
for (_ in m) c.call(m, _) && !
|
|
2243
|
+
var _, b = {}, j = null, N = null;
|
|
2244
|
+
U !== void 0 && (j = "" + U), m.key !== void 0 && (j = "" + m.key), m.ref !== void 0 && (N = m.ref);
|
|
2245
|
+
for (_ in m) c.call(m, _) && !D.hasOwnProperty(_) && (b[_] = m[_]);
|
|
2231
2246
|
if (C && C.defaultProps) for (_ in m = C.defaultProps, m) b[_] === void 0 && (b[_] = m[_]);
|
|
2232
|
-
return { $$typeof: n, type: C, key:
|
|
2247
|
+
return { $$typeof: n, type: C, key: j, ref: N, props: b, _owner: E.current };
|
|
2233
2248
|
}
|
|
2234
2249
|
return Ze.Fragment = a, Ze.jsx = R, Ze.jsxs = R, Ze;
|
|
2235
2250
|
}
|
|
@@ -2246,24 +2261,24 @@ var Qe = {};
|
|
|
2246
2261
|
var xr;
|
|
2247
2262
|
function Kn() {
|
|
2248
2263
|
return xr || (xr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2249
|
-
var s = Xt(), n = Symbol.for("react.element"), a = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"),
|
|
2264
|
+
var s = Xt(), n = Symbol.for("react.element"), a = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), D = Symbol.for("react.profiler"), R = Symbol.for("react.provider"), C = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), M = Symbol.iterator, ee = "@@iterator";
|
|
2250
2265
|
function X(r) {
|
|
2251
2266
|
if (r === null || typeof r != "object")
|
|
2252
2267
|
return null;
|
|
2253
2268
|
var l = M && r[M] || r[ee];
|
|
2254
2269
|
return typeof l == "function" ? l : null;
|
|
2255
2270
|
}
|
|
2256
|
-
var
|
|
2271
|
+
var ce = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
2257
2272
|
function z(r) {
|
|
2258
2273
|
{
|
|
2259
2274
|
for (var l = arguments.length, d = new Array(l > 1 ? l - 1 : 0), g = 1; g < l; g++)
|
|
2260
2275
|
d[g - 1] = arguments[g];
|
|
2261
|
-
|
|
2276
|
+
te("error", r, d);
|
|
2262
2277
|
}
|
|
2263
2278
|
}
|
|
2264
|
-
function
|
|
2279
|
+
function te(r, l, d) {
|
|
2265
2280
|
{
|
|
2266
|
-
var g =
|
|
2281
|
+
var g = ce.ReactDebugCurrentFrame, I = g.getStackAddendum();
|
|
2267
2282
|
I !== "" && (l += "%s", d = d.concat([I]));
|
|
2268
2283
|
var F = d.map(function(T) {
|
|
2269
2284
|
return String(T);
|
|
@@ -2271,10 +2286,10 @@ function Kn() {
|
|
|
2271
2286
|
F.unshift("Warning: " + l), Function.prototype.apply.call(console[r], console, F);
|
|
2272
2287
|
}
|
|
2273
2288
|
}
|
|
2274
|
-
var
|
|
2289
|
+
var ie = !1, J = !1, le = !1, he = !1, ye = !1, Oe;
|
|
2275
2290
|
Oe = Symbol.for("react.module.reference");
|
|
2276
2291
|
function Te(r) {
|
|
2277
|
-
return !!(typeof r == "string" || typeof r == "function" || r === c || r ===
|
|
2292
|
+
return !!(typeof r == "string" || typeof r == "function" || r === c || r === D || ye || r === E || r === U || r === _ || he || r === N || ie || J || le || typeof r == "object" && r !== null && (r.$$typeof === j || r.$$typeof === b || r.$$typeof === R || r.$$typeof === C || r.$$typeof === m || // This needs to include all possible module reference object
|
|
2278
2293
|
// types supported by any Flight configuration anywhere since
|
|
2279
2294
|
// we don't know which Flight build this will end up being used
|
|
2280
2295
|
// with.
|
|
@@ -2290,7 +2305,7 @@ function Kn() {
|
|
|
2290
2305
|
function Pe(r) {
|
|
2291
2306
|
return r.displayName || "Context";
|
|
2292
2307
|
}
|
|
2293
|
-
function
|
|
2308
|
+
function ae(r) {
|
|
2294
2309
|
if (r == null)
|
|
2295
2310
|
return null;
|
|
2296
2311
|
if (typeof r.tag == "number" && z("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
|
|
@@ -2302,7 +2317,7 @@ function Kn() {
|
|
|
2302
2317
|
return "Fragment";
|
|
2303
2318
|
case a:
|
|
2304
2319
|
return "Portal";
|
|
2305
|
-
case
|
|
2320
|
+
case D:
|
|
2306
2321
|
return "Profiler";
|
|
2307
2322
|
case E:
|
|
2308
2323
|
return "StrictMode";
|
|
@@ -2323,11 +2338,11 @@ function Kn() {
|
|
|
2323
2338
|
return He(r, r.render, "ForwardRef");
|
|
2324
2339
|
case b:
|
|
2325
2340
|
var g = r.displayName || null;
|
|
2326
|
-
return g !== null ? g :
|
|
2327
|
-
case
|
|
2341
|
+
return g !== null ? g : ae(r.type) || "Memo";
|
|
2342
|
+
case j: {
|
|
2328
2343
|
var I = r, F = I._payload, T = I._init;
|
|
2329
2344
|
try {
|
|
2330
|
-
return
|
|
2345
|
+
return ae(T(F));
|
|
2331
2346
|
} catch {
|
|
2332
2347
|
return null;
|
|
2333
2348
|
}
|
|
@@ -2335,13 +2350,13 @@ function Kn() {
|
|
|
2335
2350
|
}
|
|
2336
2351
|
return null;
|
|
2337
2352
|
}
|
|
2338
|
-
var fe = Object.assign,
|
|
2353
|
+
var fe = Object.assign, re = 0, pe, v, me, je, ge, o, f;
|
|
2339
2354
|
function O() {
|
|
2340
2355
|
}
|
|
2341
2356
|
O.__reactDisabledLog = !0;
|
|
2342
2357
|
function P() {
|
|
2343
2358
|
{
|
|
2344
|
-
if (
|
|
2359
|
+
if (re === 0) {
|
|
2345
2360
|
pe = console.log, v = console.info, me = console.warn, je = console.error, ge = console.group, o = console.groupCollapsed, f = console.groupEnd;
|
|
2346
2361
|
var r = {
|
|
2347
2362
|
configurable: !0,
|
|
@@ -2359,12 +2374,12 @@ function Kn() {
|
|
|
2359
2374
|
groupEnd: r
|
|
2360
2375
|
});
|
|
2361
2376
|
}
|
|
2362
|
-
|
|
2377
|
+
re++;
|
|
2363
2378
|
}
|
|
2364
2379
|
}
|
|
2365
2380
|
function A() {
|
|
2366
2381
|
{
|
|
2367
|
-
if (
|
|
2382
|
+
if (re--, re === 0) {
|
|
2368
2383
|
var r = {
|
|
2369
2384
|
configurable: !0,
|
|
2370
2385
|
enumerable: !0,
|
|
@@ -2394,10 +2409,10 @@ function Kn() {
|
|
|
2394
2409
|
})
|
|
2395
2410
|
});
|
|
2396
2411
|
}
|
|
2397
|
-
|
|
2412
|
+
re < 0 && z("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
2398
2413
|
}
|
|
2399
2414
|
}
|
|
2400
|
-
var V =
|
|
2415
|
+
var V = ce.ReactCurrentDispatcher, W;
|
|
2401
2416
|
function B(r, l, d) {
|
|
2402
2417
|
{
|
|
2403
2418
|
if (W === void 0)
|
|
@@ -2442,37 +2457,37 @@ function Kn() {
|
|
|
2442
2457
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
2443
2458
|
try {
|
|
2444
2459
|
Reflect.construct(T, []);
|
|
2445
|
-
} catch (
|
|
2446
|
-
g =
|
|
2460
|
+
} catch (se) {
|
|
2461
|
+
g = se;
|
|
2447
2462
|
}
|
|
2448
2463
|
Reflect.construct(r, [], T);
|
|
2449
2464
|
} else {
|
|
2450
2465
|
try {
|
|
2451
2466
|
T.call();
|
|
2452
|
-
} catch (
|
|
2453
|
-
g =
|
|
2467
|
+
} catch (se) {
|
|
2468
|
+
g = se;
|
|
2454
2469
|
}
|
|
2455
2470
|
r.call(T.prototype);
|
|
2456
2471
|
}
|
|
2457
2472
|
} else {
|
|
2458
2473
|
try {
|
|
2459
2474
|
throw Error();
|
|
2460
|
-
} catch (
|
|
2461
|
-
g =
|
|
2475
|
+
} catch (se) {
|
|
2476
|
+
g = se;
|
|
2462
2477
|
}
|
|
2463
2478
|
r();
|
|
2464
2479
|
}
|
|
2465
|
-
} catch (
|
|
2466
|
-
if (
|
|
2467
|
-
for (var S =
|
|
2468
|
-
`),
|
|
2469
|
-
`), K = S.length - 1, q =
|
|
2480
|
+
} catch (se) {
|
|
2481
|
+
if (se && g && typeof se.stack == "string") {
|
|
2482
|
+
for (var S = se.stack.split(`
|
|
2483
|
+
`), ne = g.stack.split(`
|
|
2484
|
+
`), K = S.length - 1, q = ne.length - 1; K >= 1 && q >= 0 && S[K] !== ne[q]; )
|
|
2470
2485
|
q--;
|
|
2471
2486
|
for (; K >= 1 && q >= 0; K--, q--)
|
|
2472
|
-
if (S[K] !==
|
|
2487
|
+
if (S[K] !== ne[q]) {
|
|
2473
2488
|
if (K !== 1 || q !== 1)
|
|
2474
2489
|
do
|
|
2475
|
-
if (K--, q--, q < 0 || S[K] !==
|
|
2490
|
+
if (K--, q--, q < 0 || S[K] !== ne[q]) {
|
|
2476
2491
|
var de = `
|
|
2477
2492
|
` + S[K].replace(" at new ", " at ");
|
|
2478
2493
|
return r.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", r.displayName)), typeof r == "function" && Z.set(r, de), de;
|
|
@@ -2513,7 +2528,7 @@ function Kn() {
|
|
|
2513
2528
|
return Be(r.render);
|
|
2514
2529
|
case b:
|
|
2515
2530
|
return We(r.type, l, d);
|
|
2516
|
-
case
|
|
2531
|
+
case j: {
|
|
2517
2532
|
var g = r, I = g._payload, F = g._init;
|
|
2518
2533
|
try {
|
|
2519
2534
|
return We(F(I), l, d);
|
|
@@ -2523,7 +2538,7 @@ function Kn() {
|
|
|
2523
2538
|
}
|
|
2524
2539
|
return "";
|
|
2525
2540
|
}
|
|
2526
|
-
var we = Object.prototype.hasOwnProperty, xe = {}, rt =
|
|
2541
|
+
var we = Object.prototype.hasOwnProperty, xe = {}, rt = ce.ReactDebugCurrentFrame;
|
|
2527
2542
|
function De(r) {
|
|
2528
2543
|
if (r) {
|
|
2529
2544
|
var l = r._owner, d = We(r.type, r._source, l ? l.type : null);
|
|
@@ -2539,8 +2554,8 @@ function Kn() {
|
|
|
2539
2554
|
var S = void 0;
|
|
2540
2555
|
try {
|
|
2541
2556
|
if (typeof r[T] != "function") {
|
|
2542
|
-
var
|
|
2543
|
-
throw
|
|
2557
|
+
var ne = Error((g || "React class") + ": " + d + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
2558
|
+
throw ne.name = "Invariant Violation", ne;
|
|
2544
2559
|
}
|
|
2545
2560
|
S = r[T](l, T, g, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
2546
2561
|
} catch (K) {
|
|
@@ -2574,7 +2589,7 @@ function Kn() {
|
|
|
2574
2589
|
if (ot(r))
|
|
2575
2590
|
return z("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nt(r)), Ve(r);
|
|
2576
2591
|
}
|
|
2577
|
-
var Ce =
|
|
2592
|
+
var Ce = ce.ReactCurrentOwner, Ot = {
|
|
2578
2593
|
key: !0,
|
|
2579
2594
|
ref: !0,
|
|
2580
2595
|
__self: !0,
|
|
@@ -2599,8 +2614,8 @@ function Kn() {
|
|
|
2599
2614
|
}
|
|
2600
2615
|
function jt(r, l) {
|
|
2601
2616
|
if (typeof r.ref == "string" && Ce.current && l && Ce.current.stateNode !== l) {
|
|
2602
|
-
var d =
|
|
2603
|
-
Ie[d] || (z('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',
|
|
2617
|
+
var d = ae(Ce.current.type);
|
|
2618
|
+
Ie[d] || (z('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', ae(Ce.current.type), r.ref), Ie[d] = !0);
|
|
2604
2619
|
}
|
|
2605
2620
|
}
|
|
2606
2621
|
function Ee(r, l) {
|
|
@@ -2656,8 +2671,8 @@ function Kn() {
|
|
|
2656
2671
|
};
|
|
2657
2672
|
function Dt(r, l, d, g, I) {
|
|
2658
2673
|
{
|
|
2659
|
-
var F, T = {}, S = null,
|
|
2660
|
-
d !== void 0 && (Ke(d), S = "" + d), Pt(l) && (Ke(l.key), S = "" + l.key), Tt(l) && (
|
|
2674
|
+
var F, T = {}, S = null, ne = null;
|
|
2675
|
+
d !== void 0 && (Ke(d), S = "" + d), Pt(l) && (Ke(l.key), S = "" + l.key), Tt(l) && (ne = l.ref, jt(l, I));
|
|
2661
2676
|
for (F in l)
|
|
2662
2677
|
we.call(l, F) && !Ot.hasOwnProperty(F) && (T[F] = l[F]);
|
|
2663
2678
|
if (r && r.defaultProps) {
|
|
@@ -2665,14 +2680,14 @@ function Kn() {
|
|
|
2665
2680
|
for (F in K)
|
|
2666
2681
|
T[F] === void 0 && (T[F] = K[F]);
|
|
2667
2682
|
}
|
|
2668
|
-
if (S ||
|
|
2683
|
+
if (S || ne) {
|
|
2669
2684
|
var q = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
2670
|
-
S && Ee(T, q),
|
|
2685
|
+
S && Ee(T, q), ne && st(T, q);
|
|
2671
2686
|
}
|
|
2672
|
-
return xt(r, S,
|
|
2687
|
+
return xt(r, S, ne, I, g, Ce.current, T);
|
|
2673
2688
|
}
|
|
2674
2689
|
}
|
|
2675
|
-
var Ue =
|
|
2690
|
+
var Ue = ce.ReactCurrentOwner, ut = ce.ReactDebugCurrentFrame;
|
|
2676
2691
|
function be(r) {
|
|
2677
2692
|
if (r) {
|
|
2678
2693
|
var l = r._owner, d = We(r.type, r._source, l ? l.type : null);
|
|
@@ -2688,7 +2703,7 @@ function Kn() {
|
|
|
2688
2703
|
function Me() {
|
|
2689
2704
|
{
|
|
2690
2705
|
if (Ue.current) {
|
|
2691
|
-
var r =
|
|
2706
|
+
var r = ae(Ue.current.type);
|
|
2692
2707
|
if (r)
|
|
2693
2708
|
return `
|
|
2694
2709
|
|
|
@@ -2723,7 +2738,7 @@ Check the top-level render call using <` + d + ">.");
|
|
|
2723
2738
|
return;
|
|
2724
2739
|
lt[d] = !0;
|
|
2725
2740
|
var g = "";
|
|
2726
|
-
r && r._owner && r._owner !== Ue.current && (g = " It was passed a child from " +
|
|
2741
|
+
r && r._owner && r._owner !== Ue.current && (g = " It was passed a child from " + ae(r._owner.type) + "."), be(r), z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, g), be(null);
|
|
2727
2742
|
}
|
|
2728
2743
|
}
|
|
2729
2744
|
function ft(r, l) {
|
|
@@ -2760,11 +2775,11 @@ Check the top-level render call using <` + d + ">.");
|
|
|
2760
2775
|
else
|
|
2761
2776
|
return;
|
|
2762
2777
|
if (d) {
|
|
2763
|
-
var g =
|
|
2778
|
+
var g = ae(l);
|
|
2764
2779
|
ve(d, r.props, "prop", g, r);
|
|
2765
2780
|
} else if (l.PropTypes !== void 0 && !Ne) {
|
|
2766
2781
|
Ne = !0;
|
|
2767
|
-
var I =
|
|
2782
|
+
var I = ae(l);
|
|
2768
2783
|
z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I || "Unknown");
|
|
2769
2784
|
}
|
|
2770
2785
|
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -2789,10 +2804,10 @@ Check the top-level render call using <` + d + ">.");
|
|
|
2789
2804
|
if (!T) {
|
|
2790
2805
|
var S = "";
|
|
2791
2806
|
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (S += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
2792
|
-
var
|
|
2793
|
-
|
|
2807
|
+
var ne = At();
|
|
2808
|
+
ne ? S += ne : S += Me();
|
|
2794
2809
|
var K;
|
|
2795
|
-
r === null ? K = "null" : $e(r) ? K = "array" : r !== void 0 && r.$$typeof === n ? (K = "<" + (
|
|
2810
|
+
r === null ? K = "null" : $e(r) ? K = "array" : r !== void 0 && r.$$typeof === n ? (K = "<" + (ae(r.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : K = typeof r, z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", K, S);
|
|
2796
2811
|
}
|
|
2797
2812
|
var q = Dt(r, l, d, I, F);
|
|
2798
2813
|
if (q == null)
|
|
@@ -2811,11 +2826,11 @@ Check the top-level render call using <` + d + ">.");
|
|
|
2811
2826
|
ft(de, r);
|
|
2812
2827
|
}
|
|
2813
2828
|
if (we.call(l, "key")) {
|
|
2814
|
-
var _e =
|
|
2829
|
+
var _e = ae(r), se = Object.keys(l).filter(function(Bt) {
|
|
2815
2830
|
return Bt !== "key";
|
|
2816
|
-
}), Xe =
|
|
2831
|
+
}), Xe = se.length > 0 ? "{key: someKey, " + se.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
2817
2832
|
if (!qe[_e + Xe]) {
|
|
2818
|
-
var Ft =
|
|
2833
|
+
var Ft = se.length > 0 ? "{" + se.join(": ..., ") + ": ...}" : "{}";
|
|
2819
2834
|
z(`A props object containing a "key" prop is being spread into JSX:
|
|
2820
2835
|
let props = %s;
|
|
2821
2836
|
<%s {...props} />
|
|
@@ -2851,9 +2866,9 @@ function Xn(s, n) {
|
|
|
2851
2866
|
if (s == null) return {};
|
|
2852
2867
|
var a = Jn(s, n), c, E;
|
|
2853
2868
|
if (Object.getOwnPropertySymbols) {
|
|
2854
|
-
var
|
|
2855
|
-
for (E = 0; E <
|
|
2856
|
-
c =
|
|
2869
|
+
var D = Object.getOwnPropertySymbols(s);
|
|
2870
|
+
for (E = 0; E < D.length; E++)
|
|
2871
|
+
c = D[E], !(n.indexOf(c) >= 0) && Object.prototype.propertyIsEnumerable.call(s, c) && (a[c] = s[c]);
|
|
2857
2872
|
}
|
|
2858
2873
|
return a;
|
|
2859
2874
|
}
|
|
@@ -2930,7 +2945,7 @@ function to(s) {
|
|
|
2930
2945
|
var {
|
|
2931
2946
|
attr: c,
|
|
2932
2947
|
size: E,
|
|
2933
|
-
title:
|
|
2948
|
+
title: D
|
|
2934
2949
|
} = s, R = Xn(s, qn), C = E || a.size || "1em", m;
|
|
2935
2950
|
return a.className && (m = a.className), s.className && (m = (m ? m + " " : "") + s.className), /* @__PURE__ */ Fe.createElement("svg", Et({
|
|
2936
2951
|
stroke: "currentColor",
|
|
@@ -2944,7 +2959,7 @@ function to(s) {
|
|
|
2944
2959
|
height: C,
|
|
2945
2960
|
width: C,
|
|
2946
2961
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2947
|
-
}),
|
|
2962
|
+
}), D && /* @__PURE__ */ Fe.createElement("title", null, D), s.children);
|
|
2948
2963
|
};
|
|
2949
2964
|
return Ar !== void 0 ? /* @__PURE__ */ Fe.createElement(Ar.Consumer, null, (a) => n(a)) : n(Vr);
|
|
2950
2965
|
}
|