-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.js
10377 lines (10230 loc) · 304 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import Gs, { jsx as S, jsxs as Pe, Fragment as Rr } from "react/jsx-runtime";
import { Button as Ks, Autocomplete as Xs, TextField as gi, FormControlLabel as mo, FormLabel as Ys, Checkbox as Js, MenuItem as Zs, ListItemText as Qs, ListItemIcon as bi, Menu as ea, Grid as vi, List as ta, IconButton as yi, Paper as na, Slider as ra, Snackbar as oa, Switch as ia, AppBar as sa, Toolbar as aa, Drawer as la } from "@mui/material";
import * as T from "react";
import Ct, { useMemo as Dt, useState as ut, useCallback as ct, useRef as gr, useEffect as jn } from "react";
import ca, { ThemeContext as ua, internal_processStyles as da } from "@mui/styled-engine";
import * as pa from "react-dom";
import vn from "react-dom";
import { offsetBook as go, FIRST_SCR_BOOK_NUM as fa, offsetChapter as bo, FIRST_SCR_CHAPTER_NUM as ha, getChaptersForBook as ma, offsetVerse as vo, FIRST_SCR_VERSE_NUM as ga } from "platform-bible-utils";
import ba, { SelectColumn as va } from "react-data-grid";
function vt({
id: e,
isDisabled: t = !1,
className: n,
onClick: r,
onContextMenu: o,
children: i
}) {
return /* @__PURE__ */ S(
Ks,
{
id: e,
disabled: t,
className: `papi-button ${n ?? ""}`,
onClick: r,
onContextMenu: o,
children: i
}
);
}
function br({
id: e,
title: t,
isDisabled: n = !1,
isClearable: r = !0,
hasError: o = !1,
isFullWidth: i = !1,
width: a,
options: l = [],
className: c,
value: u,
onChange: d,
onFocus: f,
onBlur: p,
getOptionLabel: b
}) {
return /* @__PURE__ */ S(
Xs,
{
id: e,
disablePortal: !0,
disabled: n,
disableClearable: !r,
fullWidth: i,
options: l,
className: `papi-combo-box ${o ? "error" : ""} ${c ?? ""}`,
value: u,
onChange: d,
onFocus: f,
onBlur: p,
getOptionLabel: b,
renderInput: (v) => /* @__PURE__ */ S(
gi,
{
...v,
error: o,
fullWidth: i,
disabled: n,
label: t,
style: { width: a }
}
)
}
);
}
function Ff({
startChapter: e,
endChapter: t,
handleSelectStartChapter: n,
handleSelectEndChapter: r,
isDisabled: o,
chapterCount: i
}) {
const a = Dt(
() => Array.from({ length: i }, (u, d) => d + 1),
[i]
), l = (u, d) => {
n(d), d > t && r(d);
}, c = (u, d) => {
r(d), d < e && n(d);
};
return /* @__PURE__ */ Pe(Rr, { children: [
/* @__PURE__ */ S(
mo,
{
className: "book-selection-chapter-form-label start",
disabled: o,
control: /* @__PURE__ */ S(
br,
{
onChange: (u, d) => l(u, d),
className: "book-selection-chapter",
isClearable: !1,
options: a,
getOptionLabel: (u) => u.toString(),
value: e,
isDisabled: o
},
"start chapter"
),
label: "Chapters",
labelPlacement: "start"
}
),
/* @__PURE__ */ S(
mo,
{
className: "book-selection-chapter-form-label end",
disabled: o,
control: /* @__PURE__ */ S(
br,
{
onChange: (u, d) => c(u, d),
className: "book-selection-chapter",
isClearable: !1,
options: a,
getOptionLabel: (u) => u.toString(),
value: t,
isDisabled: o
},
"end chapter"
),
label: "to",
labelPlacement: "start"
}
)
] });
}
var Pt = /* @__PURE__ */ ((e) => (e.After = "after", e.Before = "before", e.Above = "above", e.Below = "below", e))(Pt || {});
function ya({
id: e,
isChecked: t,
labelText: n = "",
labelPosition: r = Pt.After,
isIndeterminate: o = !1,
isDefaultChecked: i,
isDisabled: a = !1,
hasError: l = !1,
className: c,
onChange: u
}) {
const d = /* @__PURE__ */ S(
Js,
{
id: e,
checked: t,
indeterminate: o,
defaultChecked: i,
disabled: a,
className: `papi-checkbox ${l ? "error" : ""} ${c ?? ""}`,
onChange: u
}
);
let f;
if (n) {
const p = r === Pt.Before || r === Pt.Above, b = /* @__PURE__ */ S("span", { className: `papi-checkbox-label ${l ? "error" : ""} ${c ?? ""}`, children: n }), v = r === Pt.Before || r === Pt.After, m = v ? b : /* @__PURE__ */ S("div", { children: b }), h = v ? d : /* @__PURE__ */ S("div", { children: d });
f = /* @__PURE__ */ Pe(
Ys,
{
className: `papi-checkbox ${r.toString()}`,
disabled: a,
error: l,
children: [
p && m,
h,
!p && m
]
}
);
} else
f = d;
return f;
}
function ce(e, t) {
if (e == null)
return {};
var n = {}, r = Object.keys(e), o, i;
for (i = 0; i < r.length; i++)
o = r[i], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
return n;
}
function w() {
return w = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
}, w.apply(this, arguments);
}
function Ea(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
function xa(e) {
if (e.__esModule)
return e;
var t = e.default;
if (typeof t == "function") {
var n = function r() {
return this instanceof r ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
};
n.prototype = t.prototype;
} else
n = {};
return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
var o = Object.getOwnPropertyDescriptor(e, r);
Object.defineProperty(n, r, o.get ? o : {
enumerable: !0,
get: function() {
return e[r];
}
});
}), n;
}
var vr = { exports: {} }, yn = { exports: {} }, ie = {};
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var yo;
function Ta() {
if (yo)
return ie;
yo = 1;
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, h = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, $ = e ? Symbol.for("react.scope") : 60119;
function y(g) {
if (typeof g == "object" && g !== null) {
var P = g.$$typeof;
switch (P) {
case t:
switch (g = g.type, g) {
case c:
case u:
case r:
case i:
case o:
case f:
return g;
default:
switch (g = g && g.$$typeof, g) {
case l:
case d:
case v:
case b:
case a:
return g;
default:
return P;
}
}
case n:
return P;
}
}
}
function E(g) {
return y(g) === u;
}
return ie.AsyncMode = c, ie.ConcurrentMode = u, ie.ContextConsumer = l, ie.ContextProvider = a, ie.Element = t, ie.ForwardRef = d, ie.Fragment = r, ie.Lazy = v, ie.Memo = b, ie.Portal = n, ie.Profiler = i, ie.StrictMode = o, ie.Suspense = f, ie.isAsyncMode = function(g) {
return E(g) || y(g) === c;
}, ie.isConcurrentMode = E, ie.isContextConsumer = function(g) {
return y(g) === l;
}, ie.isContextProvider = function(g) {
return y(g) === a;
}, ie.isElement = function(g) {
return typeof g == "object" && g !== null && g.$$typeof === t;
}, ie.isForwardRef = function(g) {
return y(g) === d;
}, ie.isFragment = function(g) {
return y(g) === r;
}, ie.isLazy = function(g) {
return y(g) === v;
}, ie.isMemo = function(g) {
return y(g) === b;
}, ie.isPortal = function(g) {
return y(g) === n;
}, ie.isProfiler = function(g) {
return y(g) === i;
}, ie.isStrictMode = function(g) {
return y(g) === o;
}, ie.isSuspense = function(g) {
return y(g) === f;
}, ie.isValidElementType = function(g) {
return typeof g == "string" || typeof g == "function" || g === r || g === u || g === i || g === o || g === f || g === p || typeof g == "object" && g !== null && (g.$$typeof === v || g.$$typeof === b || g.$$typeof === a || g.$$typeof === l || g.$$typeof === d || g.$$typeof === h || g.$$typeof === x || g.$$typeof === $ || g.$$typeof === m);
}, ie.typeOf = y, ie;
}
var se = {};
/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Eo;
function wa() {
return Eo || (Eo = 1, process.env.NODE_ENV !== "production" && function() {
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, h = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, $ = e ? Symbol.for("react.scope") : 60119;
function y(N) {
return typeof N == "string" || typeof N == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
N === r || N === u || N === i || N === o || N === f || N === p || typeof N == "object" && N !== null && (N.$$typeof === v || N.$$typeof === b || N.$$typeof === a || N.$$typeof === l || N.$$typeof === d || N.$$typeof === h || N.$$typeof === x || N.$$typeof === $ || N.$$typeof === m);
}
function E(N) {
if (typeof N == "object" && N !== null) {
var J = N.$$typeof;
switch (J) {
case t:
var C = N.type;
switch (C) {
case c:
case u:
case r:
case i:
case o:
case f:
return C;
default:
var re = C && C.$$typeof;
switch (re) {
case l:
case d:
case v:
case b:
case a:
return re;
default:
return J;
}
}
case n:
return J;
}
}
}
var g = c, P = u, k = l, D = a, A = t, I = d, B = r, z = v, G = b, L = n, _ = i, R = o, j = f, Q = !1;
function Z(N) {
return Q || (Q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), O(N) || E(N) === c;
}
function O(N) {
return E(N) === u;
}
function M(N) {
return E(N) === l;
}
function V(N) {
return E(N) === a;
}
function K(N) {
return typeof N == "object" && N !== null && N.$$typeof === t;
}
function F(N) {
return E(N) === d;
}
function U(N) {
return E(N) === r;
}
function W(N) {
return E(N) === v;
}
function q(N) {
return E(N) === b;
}
function H(N) {
return E(N) === n;
}
function X(N) {
return E(N) === i;
}
function Y(N) {
return E(N) === o;
}
function ne(N) {
return E(N) === f;
}
se.AsyncMode = g, se.ConcurrentMode = P, se.ContextConsumer = k, se.ContextProvider = D, se.Element = A, se.ForwardRef = I, se.Fragment = B, se.Lazy = z, se.Memo = G, se.Portal = L, se.Profiler = _, se.StrictMode = R, se.Suspense = j, se.isAsyncMode = Z, se.isConcurrentMode = O, se.isContextConsumer = M, se.isContextProvider = V, se.isElement = K, se.isForwardRef = F, se.isFragment = U, se.isLazy = W, se.isMemo = q, se.isPortal = H, se.isProfiler = X, se.isStrictMode = Y, se.isSuspense = ne, se.isValidElementType = y, se.typeOf = E;
}()), se;
}
var xo;
function Ei() {
return xo || (xo = 1, process.env.NODE_ENV === "production" ? yn.exports = Ta() : yn.exports = wa()), yn.exports;
}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var tr, To;
function Oa() {
if (To)
return tr;
To = 1;
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
function r(i) {
if (i == null)
throw new TypeError("Object.assign cannot be called with null or undefined");
return Object(i);
}
function o() {
try {
if (!Object.assign)
return !1;
var i = new String("abc");
if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
return !1;
for (var a = {}, l = 0; l < 10; l++)
a["_" + String.fromCharCode(l)] = l;
var c = Object.getOwnPropertyNames(a).map(function(d) {
return a[d];
});
if (c.join("") !== "0123456789")
return !1;
var u = {};
return "abcdefghijklmnopqrst".split("").forEach(function(d) {
u[d] = d;
}), Object.keys(Object.assign({}, u)).join("") === "abcdefghijklmnopqrst";
} catch {
return !1;
}
}
return tr = o() ? Object.assign : function(i, a) {
for (var l, c = r(i), u, d = 1; d < arguments.length; d++) {
l = Object(arguments[d]);
for (var f in l)
t.call(l, f) && (c[f] = l[f]);
if (e) {
u = e(l);
for (var p = 0; p < u.length; p++)
n.call(l, u[p]) && (c[u[p]] = l[u[p]]);
}
}
return c;
}, tr;
}
var nr, wo;
function Nr() {
if (wo)
return nr;
wo = 1;
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
return nr = e, nr;
}
var rr, Oo;
function xi() {
return Oo || (Oo = 1, rr = Function.call.bind(Object.prototype.hasOwnProperty)), rr;
}
var or, Po;
function Pa() {
if (Po)
return or;
Po = 1;
var e = function() {
};
if (process.env.NODE_ENV !== "production") {
var t = Nr(), n = {}, r = xi();
e = function(i) {
var a = "Warning: " + i;
typeof console < "u" && console.error(a);
try {
throw new Error(a);
} catch {
}
};
}
function o(i, a, l, c, u) {
if (process.env.NODE_ENV !== "production") {
for (var d in i)
if (r(i, d)) {
var f;
try {
if (typeof i[d] != "function") {
var p = Error(
(c || "React class") + ": " + l + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
);
throw p.name = "Invariant Violation", p;
}
f = i[d](a, d, c, l, null, t);
} catch (v) {
f = v;
}
if (f && !(f instanceof Error) && e(
(c || "React class") + ": type specification of " + l + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
), f instanceof Error && !(f.message in n)) {
n[f.message] = !0;
var b = u ? u() : "";
e(
"Failed " + l + " type: " + f.message + (b ?? "")
);
}
}
}
}
return o.resetWarningCache = function() {
process.env.NODE_ENV !== "production" && (n = {});
}, or = o, or;
}
var ir, ko;
function ka() {
if (ko)
return ir;
ko = 1;
var e = Ei(), t = Oa(), n = Nr(), r = xi(), o = Pa(), i = function() {
};
process.env.NODE_ENV !== "production" && (i = function(l) {
var c = "Warning: " + l;
typeof console < "u" && console.error(c);
try {
throw new Error(c);
} catch {
}
});
function a() {
return null;
}
return ir = function(l, c) {
var u = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
function f(O) {
var M = O && (u && O[u] || O[d]);
if (typeof M == "function")
return M;
}
var p = "<<anonymous>>", b = {
array: x("array"),
bigint: x("bigint"),
bool: x("boolean"),
func: x("function"),
number: x("number"),
object: x("object"),
string: x("string"),
symbol: x("symbol"),
any: $(),
arrayOf: y,
element: E(),
elementType: g(),
instanceOf: P,
node: I(),
objectOf: D,
oneOf: k,
oneOfType: A,
shape: z,
exact: G
};
function v(O, M) {
return O === M ? O !== 0 || 1 / O === 1 / M : O !== O && M !== M;
}
function m(O, M) {
this.message = O, this.data = M && typeof M == "object" ? M : {}, this.stack = "";
}
m.prototype = Error.prototype;
function h(O) {
if (process.env.NODE_ENV !== "production")
var M = {}, V = 0;
function K(U, W, q, H, X, Y, ne) {
if (H = H || p, Y = Y || q, ne !== n) {
if (c) {
var N = new Error(
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
);
throw N.name = "Invariant Violation", N;
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
var J = H + ":" + q;
!M[J] && // Avoid spamming the console because they are often not actionable except for lib authors
V < 3 && (i(
"You are manually calling a React.PropTypes validation function for the `" + Y + "` prop on `" + H + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
), M[J] = !0, V++);
}
}
return W[q] == null ? U ? W[q] === null ? new m("The " + X + " `" + Y + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new m("The " + X + " `" + Y + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : O(W, q, H, X, Y);
}
var F = K.bind(null, !1);
return F.isRequired = K.bind(null, !0), F;
}
function x(O) {
function M(V, K, F, U, W, q) {
var H = V[K], X = R(H);
if (X !== O) {
var Y = j(H);
return new m(
"Invalid " + U + " `" + W + "` of type " + ("`" + Y + "` supplied to `" + F + "`, expected ") + ("`" + O + "`."),
{ expectedType: O }
);
}
return null;
}
return h(M);
}
function $() {
return h(a);
}
function y(O) {
function M(V, K, F, U, W) {
if (typeof O != "function")
return new m("Property `" + W + "` of component `" + F + "` has invalid PropType notation inside arrayOf.");
var q = V[K];
if (!Array.isArray(q)) {
var H = R(q);
return new m("Invalid " + U + " `" + W + "` of type " + ("`" + H + "` supplied to `" + F + "`, expected an array."));
}
for (var X = 0; X < q.length; X++) {
var Y = O(q, X, F, U, W + "[" + X + "]", n);
if (Y instanceof Error)
return Y;
}
return null;
}
return h(M);
}
function E() {
function O(M, V, K, F, U) {
var W = M[V];
if (!l(W)) {
var q = R(W);
return new m("Invalid " + F + " `" + U + "` of type " + ("`" + q + "` supplied to `" + K + "`, expected a single ReactElement."));
}
return null;
}
return h(O);
}
function g() {
function O(M, V, K, F, U) {
var W = M[V];
if (!e.isValidElementType(W)) {
var q = R(W);
return new m("Invalid " + F + " `" + U + "` of type " + ("`" + q + "` supplied to `" + K + "`, expected a single ReactElement type."));
}
return null;
}
return h(O);
}
function P(O) {
function M(V, K, F, U, W) {
if (!(V[K] instanceof O)) {
var q = O.name || p, H = Z(V[K]);
return new m("Invalid " + U + " `" + W + "` of type " + ("`" + H + "` supplied to `" + F + "`, expected ") + ("instance of `" + q + "`."));
}
return null;
}
return h(M);
}
function k(O) {
if (!Array.isArray(O))
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
) : i("Invalid argument supplied to oneOf, expected an array.")), a;
function M(V, K, F, U, W) {
for (var q = V[K], H = 0; H < O.length; H++)
if (v(q, O[H]))
return null;
var X = JSON.stringify(O, function(ne, N) {
var J = j(N);
return J === "symbol" ? String(N) : N;
});
return new m("Invalid " + U + " `" + W + "` of value `" + String(q) + "` " + ("supplied to `" + F + "`, expected one of " + X + "."));
}
return h(M);
}
function D(O) {
function M(V, K, F, U, W) {
if (typeof O != "function")
return new m("Property `" + W + "` of component `" + F + "` has invalid PropType notation inside objectOf.");
var q = V[K], H = R(q);
if (H !== "object")
return new m("Invalid " + U + " `" + W + "` of type " + ("`" + H + "` supplied to `" + F + "`, expected an object."));
for (var X in q)
if (r(q, X)) {
var Y = O(q, X, F, U, W + "." + X, n);
if (Y instanceof Error)
return Y;
}
return null;
}
return h(M);
}
function A(O) {
if (!Array.isArray(O))
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), a;
for (var M = 0; M < O.length; M++) {
var V = O[M];
if (typeof V != "function")
return i(
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Q(V) + " at index " + M + "."
), a;
}
function K(F, U, W, q, H) {
for (var X = [], Y = 0; Y < O.length; Y++) {
var ne = O[Y], N = ne(F, U, W, q, H, n);
if (N == null)
return null;
N.data && r(N.data, "expectedType") && X.push(N.data.expectedType);
}
var J = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
return new m("Invalid " + q + " `" + H + "` supplied to " + ("`" + W + "`" + J + "."));
}
return h(K);
}
function I() {
function O(M, V, K, F, U) {
return L(M[V]) ? null : new m("Invalid " + F + " `" + U + "` supplied to " + ("`" + K + "`, expected a ReactNode."));
}
return h(O);
}
function B(O, M, V, K, F) {
return new m(
(O || "React class") + ": " + M + " type `" + V + "." + K + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + F + "`."
);
}
function z(O) {
function M(V, K, F, U, W) {
var q = V[K], H = R(q);
if (H !== "object")
return new m("Invalid " + U + " `" + W + "` of type `" + H + "` " + ("supplied to `" + F + "`, expected `object`."));
for (var X in O) {
var Y = O[X];
if (typeof Y != "function")
return B(F, U, W, X, j(Y));
var ne = Y(q, X, F, U, W + "." + X, n);
if (ne)
return ne;
}
return null;
}
return h(M);
}
function G(O) {
function M(V, K, F, U, W) {
var q = V[K], H = R(q);
if (H !== "object")
return new m("Invalid " + U + " `" + W + "` of type `" + H + "` " + ("supplied to `" + F + "`, expected `object`."));
var X = t({}, V[K], O);
for (var Y in X) {
var ne = O[Y];
if (r(O, Y) && typeof ne != "function")
return B(F, U, W, Y, j(ne));
if (!ne)
return new m(
"Invalid " + U + " `" + W + "` key `" + Y + "` supplied to `" + F + "`.\nBad object: " + JSON.stringify(V[K], null, " ") + `
Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
);
var N = ne(q, Y, F, U, W + "." + Y, n);
if (N)
return N;
}
return null;
}
return h(M);
}
function L(O) {
switch (typeof O) {
case "number":
case "string":
case "undefined":
return !0;
case "boolean":
return !O;
case "object":
if (Array.isArray(O))
return O.every(L);
if (O === null || l(O))
return !0;
var M = f(O);
if (M) {
var V = M.call(O), K;
if (M !== O.entries) {
for (; !(K = V.next()).done; )
if (!L(K.value))
return !1;
} else
for (; !(K = V.next()).done; ) {
var F = K.value;
if (F && !L(F[1]))
return !1;
}
} else
return !1;
return !0;
default:
return !1;
}
}
function _(O, M) {
return O === "symbol" ? !0 : M ? M["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && M instanceof Symbol : !1;
}
function R(O) {
var M = typeof O;
return Array.isArray(O) ? "array" : O instanceof RegExp ? "object" : _(M, O) ? "symbol" : M;
}
function j(O) {
if (typeof O > "u" || O === null)
return "" + O;
var M = R(O);
if (M === "object") {
if (O instanceof Date)
return "date";
if (O instanceof RegExp)
return "regexp";
}
return M;
}
function Q(O) {
var M = j(O);
switch (M) {
case "array":
case "object":
return "an " + M;
case "boolean":
case "date":
case "regexp":
return "a " + M;
default:
return M;
}
}
function Z(O) {
return !O.constructor || !O.constructor.name ? p : O.constructor.name;
}
return b.checkPropTypes = o, b.resetWarningCache = o.resetWarningCache, b.PropTypes = b, b;
}, ir;
}
var sr, So;
function Sa() {
if (So)
return sr;
So = 1;
var e = Nr();
function t() {
}
function n() {
}
return n.resetWarningCache = t, sr = function() {
function r(a, l, c, u, d, f) {
if (f !== e) {
var p = new Error(
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
);
throw p.name = "Invariant Violation", p;
}
}
r.isRequired = r;
function o() {
return r;
}
var i = {
array: r,
bigint: r,
bool: r,
func: r,
number: r,
object: r,
string: r,
symbol: r,
any: r,
arrayOf: o,
element: r,
elementType: r,
instanceOf: o,
node: r,
objectOf: o,
oneOf: o,
oneOfType: o,
shape: o,
exact: o,
checkPropTypes: n,
resetWarningCache: t
};
return i.PropTypes = i, i;
}, sr;
}
if (process.env.NODE_ENV !== "production") {
var Ca = Ei(), Ra = !0;
vr.exports = ka()(Ca.isElement, Ra);
} else
vr.exports = Sa()();
var Na = vr.exports;
const s = /* @__PURE__ */ Ea(Na);
function Ti(e) {
var t, n, r = "";
if (typeof e == "string" || typeof e == "number")
r += e;
else if (typeof e == "object")
if (Array.isArray(e)) {
var o = e.length;
for (t = 0; t < o; t++)
e[t] && (n = Ti(e[t])) && (r && (r += " "), r += n);
} else
for (n in e)
e[n] && (r && (r += " "), r += n);
return r;
}
function be() {
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++)
(e = arguments[n]) && (t = Ti(e)) && (r && (r += " "), r += t);
return r;
}
function jt(e, t) {
return process.env.NODE_ENV === "production" ? () => null : function(...r) {
return e(...r) || t(...r);
};
}
function lt(e) {
if (typeof e != "object" || e === null)
return !1;
const t = Object.getPrototypeOf(e);
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
}
function wi(e) {
if (!lt(e))
return e;
const t = {};
return Object.keys(e).forEach((n) => {
t[n] = wi(e[n]);
}), t;
}
function qe(e, t, n = {
clone: !0
}) {
const r = n.clone ? w({}, e) : e;
return lt(e) && lt(t) && Object.keys(t).forEach((o) => {
o !== "__proto__" && (lt(t[o]) && o in e && lt(e[o]) ? r[o] = qe(e[o], t[o], n) : n.clone ? r[o] = lt(t[o]) ? wi(t[o]) : t[o] : r[o] = t[o]);
}), r;
}
function $a(e) {
const {
prototype: t = {}
} = e;
return !!t.isReactComponent;
}
function Oi(e, t, n, r, o) {
const i = e[t], a = o || t;
if (i == null || // When server-side rendering React doesn't warn either.
// This is not an accurate check for SSR.
// This is only in place for Emotion compat.
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
typeof window > "u")
return null;
let l;
const c = i.type;
return typeof c == "function" && !$a(c) && (l = "Did you accidentally use a plain function component for an element instead?"), l !== void 0 ? new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
}
const Pi = jt(s.element, Oi);
Pi.isRequired = jt(s.element.isRequired, Oi);
const ln = Pi;
function Ma(e) {
const {
prototype: t = {}
} = e;
return !!t.isReactComponent;
}
function _a(e, t, n, r, o) {
const i = e[t], a = o || t;
if (i == null || // When server-side rendering React doesn't warn either.
// This is not an accurate check for SSR.
// This is only in place for emotion compat.
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
typeof window > "u")
return null;
let l;
return typeof i == "function" && !Ma(i) && (l = "Did you accidentally provide a plain function component instead?"), l !== void 0 ? new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
}
const Ia = jt(s.elementType, _a), Aa = "exact-prop: ";
function ki(e) {
return process.env.NODE_ENV === "production" ? e : w({}, e, {
[Aa]: (t) => {
const n = Object.keys(t).filter((r) => !e.hasOwnProperty(r));
return n.length > 0 ? new Error(`The following props are not supported: ${n.map((r) => `\`${r}\``).join(", ")}. Please remove them.`) : null;
}
});
}
function Nt(e) {
let t = "https://mui.com/production-error/?code=" + e;
for (let n = 1; n < arguments.length; n += 1)
t += "&args[]=" + encodeURIComponent(arguments[n]);
return "Minified MUI error #" + e + "; visit " + t + " for the full message.";
}
var yr = { exports: {} }, ae = {};
/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Co;
function Da() {
if (Co)