misraj-mushaf-renderer 1.1.15 → 1.1.17
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/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as c, jsxs as L, Fragment as X3 } from "react/jsx-runtime";
|
|
2
|
-
import R4, { useState as
|
|
3
|
-
var
|
|
2
|
+
import R4, { useState as D, useEffect as q0, useRef as Y3, useCallback as $, useMemo as Q, createContext as e4, useContext as r4, memo as t4 } from "react";
|
|
3
|
+
var J = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
4
|
function a4(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
6
|
}
|
|
@@ -54,7 +54,7 @@ const I = /* @__PURE__ */ a4(H4), x4 = "MushafReader-container", I4 = "MushafRea
|
|
|
54
54
|
blue: "#2A5D73",
|
|
55
55
|
sepia: "#A97C50"
|
|
56
56
|
}, B4 = (e) => {
|
|
57
|
-
const [r, t] =
|
|
57
|
+
const [r, t] = D(!1);
|
|
58
58
|
return q0(() => {
|
|
59
59
|
const a = window.matchMedia(e), i = () => t(a.matches);
|
|
60
60
|
return i(), a.addEventListener("change", i), () => {
|
|
@@ -83,42 +83,44 @@ const n4 = e4(void 0), i4 = e4(void 0), Ve = ({
|
|
|
83
83
|
hasBorder: i = !0,
|
|
84
84
|
initialIsTwoPagesView: n = !1
|
|
85
85
|
}) => {
|
|
86
|
-
const s = B4("(min-width: 1024px)"), [u, o] =
|
|
87
|
-
|
|
88
|
-
const
|
|
89
|
-
|
|
86
|
+
const s = B4("(min-width: 1024px)"), [u, o] = D(a), [C, h] = D(null), [f, l] = D(null), [d, T] = D(null), [q, y] = D(null), [_, v] = D(!1), w = Y3(null), p = s && n, A = $(async () => {
|
|
87
|
+
w.current?.abort();
|
|
88
|
+
const M = new AbortController();
|
|
89
|
+
w.current = M, v(!0), y(null);
|
|
90
90
|
try {
|
|
91
|
-
const
|
|
92
|
-
let
|
|
93
|
-
if (
|
|
91
|
+
const g = I0(t, r, M.signal), x = p ? I0(t + 1, r, M.signal) : Promise.resolve(void 0), H = await g;
|
|
92
|
+
let z;
|
|
93
|
+
if (p)
|
|
94
94
|
try {
|
|
95
|
-
|
|
95
|
+
z = await x;
|
|
96
96
|
} catch {
|
|
97
|
-
|
|
97
|
+
z = void 0;
|
|
98
98
|
}
|
|
99
|
-
l(
|
|
100
|
-
} catch (
|
|
101
|
-
if (
|
|
102
|
-
|
|
99
|
+
l(H), T(z);
|
|
100
|
+
} catch (g) {
|
|
101
|
+
if (g?.name === "AbortError") return;
|
|
102
|
+
y(g instanceof Error ? g : new Error("Unknown error")), l(null), T(null);
|
|
103
103
|
} finally {
|
|
104
|
+
v(!1);
|
|
104
105
|
}
|
|
105
|
-
}, [t, r,
|
|
106
|
-
q0(() => (
|
|
107
|
-
const
|
|
108
|
-
o((
|
|
109
|
-
}, []),
|
|
110
|
-
o((
|
|
111
|
-
}, []),
|
|
106
|
+
}, [t, r, p]);
|
|
107
|
+
q0(() => (A(), () => w.current?.abort()), [A]);
|
|
108
|
+
const m = $(() => {
|
|
109
|
+
o((M) => M < 10 ? M + 1 : M);
|
|
110
|
+
}, []), b = $(() => {
|
|
111
|
+
o((M) => M > 3 ? M - 1 : M);
|
|
112
|
+
}, []), P = Q(
|
|
112
113
|
() => ({
|
|
113
114
|
fontScale: u,
|
|
114
115
|
selectedVerse: C,
|
|
115
116
|
ayat: f,
|
|
116
117
|
nextPageAyat: d,
|
|
117
118
|
error: q,
|
|
119
|
+
loading: _,
|
|
118
120
|
pageNumber: t,
|
|
119
121
|
dataId: r,
|
|
120
122
|
hasBorder: i,
|
|
121
|
-
isTwoPagesView:
|
|
123
|
+
isTwoPagesView: p
|
|
122
124
|
}),
|
|
123
125
|
[
|
|
124
126
|
u,
|
|
@@ -126,21 +128,22 @@ const n4 = e4(void 0), i4 = e4(void 0), Ve = ({
|
|
|
126
128
|
f,
|
|
127
129
|
d,
|
|
128
130
|
q,
|
|
131
|
+
_,
|
|
129
132
|
t,
|
|
130
133
|
r,
|
|
131
134
|
i,
|
|
132
|
-
|
|
135
|
+
p
|
|
133
136
|
]
|
|
134
|
-
),
|
|
137
|
+
), R = Q(
|
|
135
138
|
() => ({
|
|
136
|
-
increaseFontScale:
|
|
137
|
-
decreaseFontScale:
|
|
139
|
+
increaseFontScale: m,
|
|
140
|
+
decreaseFontScale: b,
|
|
138
141
|
setSelectedVerse: h,
|
|
139
|
-
refresh:
|
|
142
|
+
refresh: A
|
|
140
143
|
}),
|
|
141
|
-
[
|
|
144
|
+
[m, b, h, A]
|
|
142
145
|
);
|
|
143
|
-
return /* @__PURE__ */ c(n4.Provider, { value:
|
|
146
|
+
return /* @__PURE__ */ c(n4.Provider, { value: P, children: /* @__PURE__ */ c(i4.Provider, { value: R, children: e }) });
|
|
144
147
|
}, N4 = () => {
|
|
145
148
|
const e = r4(n4);
|
|
146
149
|
if (!e) throw new Error("useMushafPageState must be used within a MushafPageProvider");
|
|
@@ -149,30 +152,30 @@ const n4 = e4(void 0), i4 = e4(void 0), Ve = ({
|
|
|
149
152
|
const e = r4(i4);
|
|
150
153
|
if (!e) throw new Error("useMushafPageActions must be used within a MushafPageProvider");
|
|
151
154
|
return e;
|
|
152
|
-
},
|
|
155
|
+
}, j = () => {
|
|
153
156
|
const e = N4(), r = j4();
|
|
154
157
|
return { ...e, ...r };
|
|
155
|
-
}, V4 = "Line-line", F4 = "Line-container", G4 = "Line-mobileInline",
|
|
158
|
+
}, V4 = "Line-line", F4 = "Line-container", G4 = "Line-mobileInline", F = {
|
|
156
159
|
line: V4,
|
|
157
160
|
container: F4,
|
|
158
161
|
mobileInline: G4
|
|
159
162
|
}, Z4 = "ChapterHeader-bismillahContainer", K4 = "ChapterHeader-header", m0 = {
|
|
160
163
|
bismillahContainer: Z4,
|
|
161
164
|
header: K4
|
|
162
|
-
}, $4 = "ChapterIconContainer-iconContainer", k4 = "ChapterIconContainer-border", U4 = "ChapterIconContainer-blueBorder", W4 = "ChapterIconContainer-sepiaBorder",
|
|
165
|
+
}, $4 = "ChapterIconContainer-iconContainer", k4 = "ChapterIconContainer-border", U4 = "ChapterIconContainer-blueBorder", W4 = "ChapterIconContainer-sepiaBorder", G = {
|
|
163
166
|
iconContainer: $4,
|
|
164
167
|
border: k4,
|
|
165
168
|
blueBorder: U4,
|
|
166
169
|
sepiaBorder: W4
|
|
167
170
|
}, L0 = ({ id: e }) => /* @__PURE__ */ c("span", { translate: "no", children: e?.padStart(3, "0") }), J4 = ({ chapterId: e, hasSurahPrefix: r = !0, borderColor: t }) => {
|
|
168
|
-
const { hasBorder: a } =
|
|
171
|
+
const { hasBorder: a } = j();
|
|
169
172
|
return /* @__PURE__ */ L(
|
|
170
173
|
"span",
|
|
171
174
|
{
|
|
172
|
-
className: I(
|
|
173
|
-
[
|
|
174
|
-
[
|
|
175
|
-
[
|
|
175
|
+
className: I(G.iconContainer, G.iconContainerLarge, {
|
|
176
|
+
[G.border]: a,
|
|
177
|
+
[G.blueBorder]: a && t === "blue",
|
|
178
|
+
[G.sepiaBorder]: a && t === "sepia"
|
|
176
179
|
}),
|
|
177
180
|
style: { color: "black" },
|
|
178
181
|
children: [
|
|
@@ -297,7 +300,7 @@ const n4 = e4(void 0), i4 = e4(void 0), Ve = ({
|
|
|
297
300
|
var c4 = /* @__PURE__ */ ((e) => (e.MadaniV1 = "code_v1", e.MadaniV2 = "code_v2", e.Uthmani = "text_uthmani", e.IndoPak = "text_indopak", e.QPCHafs = "qpc_uthmani_hafs", e.Tajweed = "tajweed", e))(c4 || {});
|
|
298
301
|
const g6 = "qpc_uthmani_hafs";
|
|
299
302
|
var C4 = /* @__PURE__ */ ((e) => (e.FifteenLines = "15_lines", e.SixteenLines = "16_lines", e))(C4 || {});
|
|
300
|
-
const _6 = (e, r, t, a = !1) => e === c4.IndoPak ? `${e}_${t}-font-size-${r}` : a ? `fallback_${e}-font-size-${r}` : `${e}-font-size-${r}`, v6 = "MushafWord-container", p6 = "MushafWord-colored", y6 = "MushafWord-filled", b6 = "MushafWord-highlightOnHover", m6 = "MushafWord-highlighted",
|
|
303
|
+
const _6 = (e, r, t, a = !1) => e === c4.IndoPak ? `${e}_${t}-font-size-${r}` : a ? `fallback_${e}-font-size-${r}` : `${e}-font-size-${r}`, v6 = "MushafWord-container", p6 = "MushafWord-colored", y6 = "MushafWord-filled", b6 = "MushafWord-highlightOnHover", m6 = "MushafWord-highlighted", N = {
|
|
301
304
|
container: v6,
|
|
302
305
|
colored: p6,
|
|
303
306
|
filled: y6,
|
|
@@ -343,12 +346,12 @@ const _6 = (e, r, t, a = !1) => e === c4.IndoPak ? `${e}_${t}-font-size-${r}` :
|
|
|
343
346
|
}
|
|
344
347
|
return r;
|
|
345
348
|
}, T6 = "data-word-location", A6 = ({ word: e, onWordClick: r, onWordHover: t }) => {
|
|
346
|
-
const { selectedVerse: a, dataId: i } =
|
|
349
|
+
const { selectedVerse: a, dataId: i } = j(), n = d6(e.verse_key, e.position), s = /* @__PURE__ */ c("span", { className: N.UthmanicHafs, children: e.text }), u = a?.numberInSurah === e.verse.numberInSurah, o = q6(i), C = $(
|
|
347
350
|
(f) => {
|
|
348
351
|
r && r(e, f);
|
|
349
352
|
},
|
|
350
353
|
[r, e]
|
|
351
|
-
), h =
|
|
354
|
+
), h = $(
|
|
352
355
|
(f) => {
|
|
353
356
|
t && t(e, f);
|
|
354
357
|
},
|
|
@@ -362,10 +365,10 @@ const _6 = (e, r, t, a = !1) => e === c4.IndoPak ? `${e}_${t}-font-size-${r}` :
|
|
|
362
365
|
role: "button",
|
|
363
366
|
tabIndex: 0,
|
|
364
367
|
[T6]: n,
|
|
365
|
-
className: I(
|
|
366
|
-
[
|
|
367
|
-
[
|
|
368
|
-
[
|
|
368
|
+
className: I(N.container, N[o], {
|
|
369
|
+
[N.highlightOnHover]: !0,
|
|
370
|
+
[N.colored]: !u,
|
|
371
|
+
[N.highlighted]: u
|
|
369
372
|
}),
|
|
370
373
|
children: s
|
|
371
374
|
}
|
|
@@ -377,25 +380,25 @@ const _6 = (e, r, t, a = !1) => e === c4.IndoPak ? `${e}_${t}-font-size-${r}` :
|
|
|
377
380
|
onWordClick: a,
|
|
378
381
|
onWordHover: i
|
|
379
382
|
}) => {
|
|
380
|
-
const { fontScale: n } =
|
|
383
|
+
const { fontScale: n } = j(), [s] = e, {
|
|
381
384
|
line_number: u,
|
|
382
385
|
page_number: o,
|
|
383
386
|
location: C,
|
|
384
387
|
verse_key: h
|
|
385
|
-
} = s, f =
|
|
388
|
+
} = s, f = Q(
|
|
386
389
|
() => i6(o, u),
|
|
387
390
|
[o, u]
|
|
388
|
-
), l = h6(C), d = n > 3, { chapterId:
|
|
391
|
+
), l = h6(C), d = n > 3, { chapterId: T } = l, q = t ? "h1" : "div", y = _6(g6, n, C4.FifteenLines, !0);
|
|
389
392
|
return /* @__PURE__ */ c(X3, { children: /* @__PURE__ */ c(
|
|
390
393
|
q,
|
|
391
394
|
{
|
|
392
395
|
"data-verse-key": h,
|
|
393
396
|
"data-page": o,
|
|
394
|
-
"data-chapter-id":
|
|
397
|
+
"data-chapter-id": T,
|
|
395
398
|
className: I(B.verseTextContainer, {
|
|
396
399
|
[B.largeMushafTextLayoutContainer]: d,
|
|
397
400
|
[B.highlighted]: r,
|
|
398
|
-
[B[
|
|
401
|
+
[B[y]]: !0
|
|
399
402
|
}),
|
|
400
403
|
children: /* @__PURE__ */ c(
|
|
401
404
|
"div",
|
|
@@ -429,14 +432,14 @@ const _6 = (e, r, t, a = !1) => e === c4.IndoPak ? `${e}_${t}-font-size-${r}` :
|
|
|
429
432
|
onWordHover: s,
|
|
430
433
|
borderColor: u
|
|
431
434
|
}) => {
|
|
432
|
-
const { pageNumber: o } =
|
|
435
|
+
const { pageNumber: o } = j(), C = o4(r[0].location), h = C[1] === "1" && C[2] === "1", f = o === 1 || o === 2, l = !1;
|
|
433
436
|
return /* @__PURE__ */ L(
|
|
434
437
|
"div",
|
|
435
438
|
{
|
|
436
439
|
id: e,
|
|
437
|
-
className: I(
|
|
438
|
-
[
|
|
439
|
-
[
|
|
440
|
+
className: I(F.container, {
|
|
441
|
+
[F.highlighted]: l,
|
|
442
|
+
[F.mobileInline]: t
|
|
440
443
|
}),
|
|
441
444
|
role: "button",
|
|
442
445
|
tabIndex: 0,
|
|
@@ -452,8 +455,8 @@ const _6 = (e, r, t, a = !1) => e === c4.IndoPak ? `${e}_${t}-font-size-${r}` :
|
|
|
452
455
|
/* @__PURE__ */ c(
|
|
453
456
|
"div",
|
|
454
457
|
{
|
|
455
|
-
className: I(
|
|
456
|
-
[
|
|
458
|
+
className: I(F.line, {
|
|
459
|
+
[F.mobileInline]: t
|
|
457
460
|
}),
|
|
458
461
|
children: /* @__PURE__ */ c(
|
|
459
462
|
P6,
|
|
@@ -470,7 +473,7 @@ const _6 = (e, r, t, a = !1) => e === c4.IndoPak ? `${e}_${t}-font-size-${r}` :
|
|
|
470
473
|
]
|
|
471
474
|
}
|
|
472
475
|
);
|
|
473
|
-
}, S6 = (e, r) => e.lineKey === r.lineKey && e.isBigTextLayout === r.isBigTextLayout && e.borderColor === r.borderColor, H6 = t4(R6, S6), x6 = "Page-container", I6 = "Page-border", L6 = "Page-blueBorder", O6 = "Page-sepiaBorder", E6 = "Page-bottomBorder", B6 = "Page-blueBottomBorder", z6 = "Page-sepiaBottomBorder", D6 = "Page-mobileCenterText", N6 = "Page-firstTwoPagesBorder", j6 = "Page-blueFirstTwoPagesBorder", V6 = "Page-sepiaFirstTwoPagesBorder", F6 = "Page-pageNumberContainer", G6 = "Page-pageNumber", Z6 = "Page-surah", K6 = "Page-juz",
|
|
476
|
+
}, S6 = (e, r) => e.lineKey === r.lineKey && e.isBigTextLayout === r.isBigTextLayout && e.borderColor === r.borderColor, H6 = t4(R6, S6), x6 = "Page-container", I6 = "Page-border", L6 = "Page-blueBorder", O6 = "Page-sepiaBorder", E6 = "Page-bottomBorder", B6 = "Page-blueBottomBorder", z6 = "Page-sepiaBottomBorder", D6 = "Page-mobileCenterText", N6 = "Page-firstTwoPagesBorder", j6 = "Page-blueFirstTwoPagesBorder", V6 = "Page-sepiaFirstTwoPagesBorder", F6 = "Page-pageNumberContainer", G6 = "Page-pageNumber", Z6 = "Page-surah", K6 = "Page-juz", S = {
|
|
474
477
|
container: x6,
|
|
475
478
|
border: I6,
|
|
476
479
|
blueBorder: L6,
|
|
@@ -491,7 +494,7 @@ var i1, O0;
|
|
|
491
494
|
function f4() {
|
|
492
495
|
if (O0) return i1;
|
|
493
496
|
O0 = 1;
|
|
494
|
-
var e = typeof
|
|
497
|
+
var e = typeof J == "object" && J && J.Object === Object && J;
|
|
495
498
|
return i1 = e, i1;
|
|
496
499
|
}
|
|
497
500
|
var s1, E0;
|
|
@@ -502,7 +505,7 @@ function O() {
|
|
|
502
505
|
return s1 = t, s1;
|
|
503
506
|
}
|
|
504
507
|
var u1, B0;
|
|
505
|
-
function
|
|
508
|
+
function X() {
|
|
506
509
|
if (B0) return u1;
|
|
507
510
|
B0 = 1;
|
|
508
511
|
var e = O(), r = e.Symbol;
|
|
@@ -512,7 +515,7 @@ var o1, z0;
|
|
|
512
515
|
function $6() {
|
|
513
516
|
if (z0) return o1;
|
|
514
517
|
z0 = 1;
|
|
515
|
-
var e =
|
|
518
|
+
var e = X(), r = Object.prototype, t = r.hasOwnProperty, a = r.toString, i = e ? e.toStringTag : void 0;
|
|
516
519
|
function n(s) {
|
|
517
520
|
var u = t.call(s, i), o = s[i];
|
|
518
521
|
try {
|
|
@@ -536,10 +539,10 @@ function k6() {
|
|
|
536
539
|
return c1 = t, c1;
|
|
537
540
|
}
|
|
538
541
|
var C1, N0;
|
|
539
|
-
function
|
|
542
|
+
function k() {
|
|
540
543
|
if (N0) return C1;
|
|
541
544
|
N0 = 1;
|
|
542
|
-
var e =
|
|
545
|
+
var e = X(), r = $6(), t = k6(), a = "[object Null]", i = "[object Undefined]", n = e ? e.toStringTag : void 0;
|
|
543
546
|
function s(u) {
|
|
544
547
|
return u == null ? u === void 0 ? i : a : n && n in Object(u) ? r(u) : t(u);
|
|
545
548
|
}
|
|
@@ -559,7 +562,7 @@ var h1, V0;
|
|
|
559
562
|
function h4() {
|
|
560
563
|
if (V0) return h1;
|
|
561
564
|
V0 = 1;
|
|
562
|
-
var e =
|
|
565
|
+
var e = k(), r = T0(), t = "[object AsyncFunction]", a = "[object Function]", i = "[object GeneratorFunction]", n = "[object Proxy]";
|
|
563
566
|
function s(u) {
|
|
564
567
|
if (!r(u))
|
|
565
568
|
return !1;
|
|
@@ -633,7 +636,7 @@ function Q6() {
|
|
|
633
636
|
return v1 = e, v1;
|
|
634
637
|
}
|
|
635
638
|
var p1, k0;
|
|
636
|
-
function
|
|
639
|
+
function V() {
|
|
637
640
|
if (k0) return p1;
|
|
638
641
|
k0 = 1;
|
|
639
642
|
var e = J6(), r = Q6();
|
|
@@ -647,7 +650,7 @@ var y1, U0;
|
|
|
647
650
|
function X6() {
|
|
648
651
|
if (U0) return y1;
|
|
649
652
|
U0 = 1;
|
|
650
|
-
var e =
|
|
653
|
+
var e = V(), r = (function() {
|
|
651
654
|
try {
|
|
652
655
|
var t = e(Object, "defineProperty");
|
|
653
656
|
return t({}, "", {}), t;
|
|
@@ -719,7 +722,7 @@ function a5() {
|
|
|
719
722
|
return A1 = e, A1;
|
|
720
723
|
}
|
|
721
724
|
var w1, e9;
|
|
722
|
-
function
|
|
725
|
+
function U() {
|
|
723
726
|
if (e9) return w1;
|
|
724
727
|
e9 = 1;
|
|
725
728
|
function e(r) {
|
|
@@ -731,7 +734,7 @@ var M1, r9;
|
|
|
731
734
|
function n5() {
|
|
732
735
|
if (r9) return M1;
|
|
733
736
|
r9 = 1;
|
|
734
|
-
var e =
|
|
737
|
+
var e = k(), r = U(), t = "[object Arguments]";
|
|
735
738
|
function a(i) {
|
|
736
739
|
return r(i) && e(i) == t;
|
|
737
740
|
}
|
|
@@ -741,7 +744,7 @@ var P1, t9;
|
|
|
741
744
|
function d4() {
|
|
742
745
|
if (t9) return P1;
|
|
743
746
|
t9 = 1;
|
|
744
|
-
var e = n5(), r =
|
|
747
|
+
var e = n5(), r = U(), t = Object.prototype, a = t.hasOwnProperty, i = t.propertyIsEnumerable, n = e(/* @__PURE__ */ (function() {
|
|
745
748
|
return arguments;
|
|
746
749
|
})()) ? e : function(s) {
|
|
747
750
|
return r(s) && a.call(s, "callee") && !i.call(s, "callee");
|
|
@@ -755,7 +758,7 @@ function E() {
|
|
|
755
758
|
var e = Array.isArray;
|
|
756
759
|
return R1 = e, R1;
|
|
757
760
|
}
|
|
758
|
-
var
|
|
761
|
+
var Z = { exports: {} }, S1, n9;
|
|
759
762
|
function i5() {
|
|
760
763
|
if (n9) return S1;
|
|
761
764
|
n9 = 1;
|
|
@@ -764,13 +767,13 @@ function i5() {
|
|
|
764
767
|
}
|
|
765
768
|
return S1 = e, S1;
|
|
766
769
|
}
|
|
767
|
-
|
|
770
|
+
Z.exports;
|
|
768
771
|
var i9;
|
|
769
772
|
function g4() {
|
|
770
773
|
return i9 || (i9 = 1, (function(e, r) {
|
|
771
774
|
var t = O(), a = i5(), i = r && !r.nodeType && r, n = i && !0 && e && !e.nodeType && e, s = n && n.exports === i, u = s ? t.Buffer : void 0, o = u ? u.isBuffer : void 0, C = o || a;
|
|
772
775
|
e.exports = C;
|
|
773
|
-
})(
|
|
776
|
+
})(Z, Z.exports)), Z.exports;
|
|
774
777
|
}
|
|
775
778
|
var H1, s9;
|
|
776
779
|
function _4() {
|
|
@@ -797,12 +800,12 @@ var I1, o9;
|
|
|
797
800
|
function s5() {
|
|
798
801
|
if (o9) return I1;
|
|
799
802
|
o9 = 1;
|
|
800
|
-
var e =
|
|
801
|
-
|
|
802
|
-
function
|
|
803
|
-
return t(
|
|
803
|
+
var e = k(), r = A0(), t = U(), a = "[object Arguments]", i = "[object Array]", n = "[object Boolean]", s = "[object Date]", u = "[object Error]", o = "[object Function]", C = "[object Map]", h = "[object Number]", f = "[object Object]", l = "[object RegExp]", d = "[object Set]", T = "[object String]", q = "[object WeakMap]", y = "[object ArrayBuffer]", _ = "[object DataView]", v = "[object Float32Array]", w = "[object Float64Array]", p = "[object Int8Array]", A = "[object Int16Array]", m = "[object Int32Array]", b = "[object Uint8Array]", P = "[object Uint8ClampedArray]", R = "[object Uint16Array]", M = "[object Uint32Array]", g = {};
|
|
804
|
+
g[v] = g[w] = g[p] = g[A] = g[m] = g[b] = g[P] = g[R] = g[M] = !0, g[a] = g[i] = g[y] = g[n] = g[_] = g[s] = g[u] = g[o] = g[C] = g[h] = g[f] = g[l] = g[d] = g[T] = g[q] = !1;
|
|
805
|
+
function x(H) {
|
|
806
|
+
return t(H) && r(H.length) && !!g[e(H)];
|
|
804
807
|
}
|
|
805
|
-
return I1 =
|
|
808
|
+
return I1 = x, I1;
|
|
806
809
|
}
|
|
807
810
|
var L1, c9;
|
|
808
811
|
function u5() {
|
|
@@ -815,8 +818,8 @@ function u5() {
|
|
|
815
818
|
}
|
|
816
819
|
return L1 = e, L1;
|
|
817
820
|
}
|
|
818
|
-
var
|
|
819
|
-
|
|
821
|
+
var K = { exports: {} };
|
|
822
|
+
K.exports;
|
|
820
823
|
var C9;
|
|
821
824
|
function o5() {
|
|
822
825
|
return C9 || (C9 = 1, (function(e, r) {
|
|
@@ -828,7 +831,7 @@ function o5() {
|
|
|
828
831
|
}
|
|
829
832
|
})();
|
|
830
833
|
e.exports = u;
|
|
831
|
-
})(
|
|
834
|
+
})(K, K.exports)), K.exports;
|
|
832
835
|
}
|
|
833
836
|
var O1, f9;
|
|
834
837
|
function v4() {
|
|
@@ -843,14 +846,14 @@ function c5() {
|
|
|
843
846
|
h9 = 1;
|
|
844
847
|
var e = a5(), r = d4(), t = E(), a = g4(), i = _4(), n = v4(), s = Object.prototype, u = s.hasOwnProperty;
|
|
845
848
|
function o(C, h) {
|
|
846
|
-
var f = t(C), l = !f && r(C), d = !f && !l && a(C),
|
|
847
|
-
for (var
|
|
848
|
-
(h || u.call(C,
|
|
849
|
-
(
|
|
850
|
-
d && (
|
|
851
|
-
|
|
852
|
-
i(
|
|
853
|
-
return
|
|
849
|
+
var f = t(C), l = !f && r(C), d = !f && !l && a(C), T = !f && !l && !d && n(C), q = f || l || d || T, y = q ? e(C.length, String) : [], _ = y.length;
|
|
850
|
+
for (var v in C)
|
|
851
|
+
(h || u.call(C, v)) && !(q && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
852
|
+
(v == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
853
|
+
d && (v == "offset" || v == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
854
|
+
T && (v == "buffer" || v == "byteLength" || v == "byteOffset") || // Skip index properties.
|
|
855
|
+
i(v, _))) && y.push(v);
|
|
856
|
+
return y;
|
|
854
857
|
}
|
|
855
858
|
return E1 = o, E1;
|
|
856
859
|
}
|
|
@@ -984,7 +987,7 @@ function y4() {
|
|
|
984
987
|
return k1 = e, k1;
|
|
985
988
|
}
|
|
986
989
|
var U1, w9;
|
|
987
|
-
function
|
|
990
|
+
function Y() {
|
|
988
991
|
if (w9) return U1;
|
|
989
992
|
w9 = 1;
|
|
990
993
|
var e = y4();
|
|
@@ -1000,7 +1003,7 @@ var W1, M9;
|
|
|
1000
1003
|
function y5() {
|
|
1001
1004
|
if (M9) return W1;
|
|
1002
1005
|
M9 = 1;
|
|
1003
|
-
var e =
|
|
1006
|
+
var e = Y(), r = Array.prototype, t = r.splice;
|
|
1004
1007
|
function a(i) {
|
|
1005
1008
|
var n = this.__data__, s = e(n, i);
|
|
1006
1009
|
if (s < 0)
|
|
@@ -1014,7 +1017,7 @@ var J1, P9;
|
|
|
1014
1017
|
function b5() {
|
|
1015
1018
|
if (P9) return J1;
|
|
1016
1019
|
P9 = 1;
|
|
1017
|
-
var e =
|
|
1020
|
+
var e = Y();
|
|
1018
1021
|
function r(t) {
|
|
1019
1022
|
var a = this.__data__, i = e(a, t);
|
|
1020
1023
|
return i < 0 ? void 0 : a[i][1];
|
|
@@ -1025,7 +1028,7 @@ var Q1, R9;
|
|
|
1025
1028
|
function m5() {
|
|
1026
1029
|
if (R9) return Q1;
|
|
1027
1030
|
R9 = 1;
|
|
1028
|
-
var e =
|
|
1031
|
+
var e = Y();
|
|
1029
1032
|
function r(t) {
|
|
1030
1033
|
return e(this.__data__, t) > -1;
|
|
1031
1034
|
}
|
|
@@ -1035,7 +1038,7 @@ var X1, S9;
|
|
|
1035
1038
|
function q5() {
|
|
1036
1039
|
if (S9) return X1;
|
|
1037
1040
|
S9 = 1;
|
|
1038
|
-
var e =
|
|
1041
|
+
var e = Y();
|
|
1039
1042
|
function r(t, a) {
|
|
1040
1043
|
var i = this.__data__, n = e(i, t);
|
|
1041
1044
|
return n < 0 ? (++this.size, i.push([t, a])) : i[n][1] = a, this;
|
|
@@ -1043,7 +1046,7 @@ function q5() {
|
|
|
1043
1046
|
return X1 = r, X1;
|
|
1044
1047
|
}
|
|
1045
1048
|
var Y1, H9;
|
|
1046
|
-
function
|
|
1049
|
+
function e1() {
|
|
1047
1050
|
if (H9) return Y1;
|
|
1048
1051
|
H9 = 1;
|
|
1049
1052
|
var e = p5(), r = y5(), t = b5(), a = m5(), i = q5();
|
|
@@ -1060,7 +1063,7 @@ var e2, x9;
|
|
|
1060
1063
|
function T5() {
|
|
1061
1064
|
if (x9) return e2;
|
|
1062
1065
|
x9 = 1;
|
|
1063
|
-
var e =
|
|
1066
|
+
var e = e1();
|
|
1064
1067
|
function r() {
|
|
1065
1068
|
this.__data__ = new e(), this.size = 0;
|
|
1066
1069
|
}
|
|
@@ -1098,21 +1101,21 @@ var n2, E9;
|
|
|
1098
1101
|
function M0() {
|
|
1099
1102
|
if (E9) return n2;
|
|
1100
1103
|
E9 = 1;
|
|
1101
|
-
var e =
|
|
1104
|
+
var e = V(), r = O(), t = e(r, "Map");
|
|
1102
1105
|
return n2 = t, n2;
|
|
1103
1106
|
}
|
|
1104
1107
|
var i2, B9;
|
|
1105
|
-
function
|
|
1108
|
+
function r1() {
|
|
1106
1109
|
if (B9) return i2;
|
|
1107
1110
|
B9 = 1;
|
|
1108
|
-
var e =
|
|
1111
|
+
var e = V(), r = e(Object, "create");
|
|
1109
1112
|
return i2 = r, i2;
|
|
1110
1113
|
}
|
|
1111
1114
|
var s2, z9;
|
|
1112
1115
|
function P5() {
|
|
1113
1116
|
if (z9) return s2;
|
|
1114
1117
|
z9 = 1;
|
|
1115
|
-
var e =
|
|
1118
|
+
var e = r1();
|
|
1116
1119
|
function r() {
|
|
1117
1120
|
this.__data__ = e ? e(null) : {}, this.size = 0;
|
|
1118
1121
|
}
|
|
@@ -1132,7 +1135,7 @@ var o2, N9;
|
|
|
1132
1135
|
function S5() {
|
|
1133
1136
|
if (N9) return o2;
|
|
1134
1137
|
N9 = 1;
|
|
1135
|
-
var e =
|
|
1138
|
+
var e = r1(), r = "__lodash_hash_undefined__", t = Object.prototype, a = t.hasOwnProperty;
|
|
1136
1139
|
function i(n) {
|
|
1137
1140
|
var s = this.__data__;
|
|
1138
1141
|
if (e) {
|
|
@@ -1147,7 +1150,7 @@ var c2, j9;
|
|
|
1147
1150
|
function H5() {
|
|
1148
1151
|
if (j9) return c2;
|
|
1149
1152
|
j9 = 1;
|
|
1150
|
-
var e =
|
|
1153
|
+
var e = r1(), r = Object.prototype, t = r.hasOwnProperty;
|
|
1151
1154
|
function a(i) {
|
|
1152
1155
|
var n = this.__data__;
|
|
1153
1156
|
return e ? n[i] !== void 0 : t.call(n, i);
|
|
@@ -1158,7 +1161,7 @@ var C2, V9;
|
|
|
1158
1161
|
function x5() {
|
|
1159
1162
|
if (V9) return C2;
|
|
1160
1163
|
V9 = 1;
|
|
1161
|
-
var e =
|
|
1164
|
+
var e = r1(), r = "__lodash_hash_undefined__";
|
|
1162
1165
|
function t(a, i) {
|
|
1163
1166
|
var n = this.__data__;
|
|
1164
1167
|
return this.size += this.has(a) ? 0 : 1, n[a] = e && i === void 0 ? r : i, this;
|
|
@@ -1183,7 +1186,7 @@ var h2, G9;
|
|
|
1183
1186
|
function L5() {
|
|
1184
1187
|
if (G9) return h2;
|
|
1185
1188
|
G9 = 1;
|
|
1186
|
-
var e = I5(), r =
|
|
1189
|
+
var e = I5(), r = e1(), t = M0();
|
|
1187
1190
|
function a() {
|
|
1188
1191
|
this.size = 0, this.__data__ = {
|
|
1189
1192
|
hash: new e(),
|
|
@@ -1204,7 +1207,7 @@ function O5() {
|
|
|
1204
1207
|
return l2 = e, l2;
|
|
1205
1208
|
}
|
|
1206
1209
|
var d2, K9;
|
|
1207
|
-
function
|
|
1210
|
+
function t1() {
|
|
1208
1211
|
if (K9) return d2;
|
|
1209
1212
|
K9 = 1;
|
|
1210
1213
|
var e = O5();
|
|
@@ -1218,7 +1221,7 @@ var g2, $9;
|
|
|
1218
1221
|
function E5() {
|
|
1219
1222
|
if ($9) return g2;
|
|
1220
1223
|
$9 = 1;
|
|
1221
|
-
var e =
|
|
1224
|
+
var e = t1();
|
|
1222
1225
|
function r(t) {
|
|
1223
1226
|
var a = e(this, t).delete(t);
|
|
1224
1227
|
return this.size -= a ? 1 : 0, a;
|
|
@@ -1229,7 +1232,7 @@ var _2, k9;
|
|
|
1229
1232
|
function B5() {
|
|
1230
1233
|
if (k9) return _2;
|
|
1231
1234
|
k9 = 1;
|
|
1232
|
-
var e =
|
|
1235
|
+
var e = t1();
|
|
1233
1236
|
function r(t) {
|
|
1234
1237
|
return e(this, t).get(t);
|
|
1235
1238
|
}
|
|
@@ -1239,7 +1242,7 @@ var v2, U9;
|
|
|
1239
1242
|
function z5() {
|
|
1240
1243
|
if (U9) return v2;
|
|
1241
1244
|
U9 = 1;
|
|
1242
|
-
var e =
|
|
1245
|
+
var e = t1();
|
|
1243
1246
|
function r(t) {
|
|
1244
1247
|
return e(this, t).has(t);
|
|
1245
1248
|
}
|
|
@@ -1249,7 +1252,7 @@ var p2, W9;
|
|
|
1249
1252
|
function D5() {
|
|
1250
1253
|
if (W9) return p2;
|
|
1251
1254
|
W9 = 1;
|
|
1252
|
-
var e =
|
|
1255
|
+
var e = t1();
|
|
1253
1256
|
function r(t, a) {
|
|
1254
1257
|
var i = e(this, t), n = i.size;
|
|
1255
1258
|
return i.set(t, a), this.size += i.size == n ? 0 : 1, this;
|
|
@@ -1274,7 +1277,7 @@ var b2, Q9;
|
|
|
1274
1277
|
function N5() {
|
|
1275
1278
|
if (Q9) return b2;
|
|
1276
1279
|
Q9 = 1;
|
|
1277
|
-
var e =
|
|
1280
|
+
var e = e1(), r = M0(), t = P0(), a = 200;
|
|
1278
1281
|
function i(n, s) {
|
|
1279
1282
|
var u = this.__data__;
|
|
1280
1283
|
if (u instanceof e) {
|
|
@@ -1291,7 +1294,7 @@ var m2, X9;
|
|
|
1291
1294
|
function b4() {
|
|
1292
1295
|
if (X9) return m2;
|
|
1293
1296
|
X9 = 1;
|
|
1294
|
-
var e =
|
|
1297
|
+
var e = e1(), r = T5(), t = A5(), a = w5(), i = M5(), n = N5();
|
|
1295
1298
|
function s(u) {
|
|
1296
1299
|
var o = this.__data__ = new e(u);
|
|
1297
1300
|
this.size = o.size;
|
|
@@ -1356,37 +1359,37 @@ function m4() {
|
|
|
1356
1359
|
n3 = 1;
|
|
1357
1360
|
var e = F5(), r = G5(), t = Z5(), a = 1, i = 2;
|
|
1358
1361
|
function n(s, u, o, C, h, f) {
|
|
1359
|
-
var l = o & a, d = s.length,
|
|
1360
|
-
if (d !=
|
|
1362
|
+
var l = o & a, d = s.length, T = u.length;
|
|
1363
|
+
if (d != T && !(l && T > d))
|
|
1361
1364
|
return !1;
|
|
1362
|
-
var q = f.get(s),
|
|
1363
|
-
if (q &&
|
|
1364
|
-
return q == u &&
|
|
1365
|
-
var _ = -1,
|
|
1365
|
+
var q = f.get(s), y = f.get(u);
|
|
1366
|
+
if (q && y)
|
|
1367
|
+
return q == u && y == s;
|
|
1368
|
+
var _ = -1, v = !0, w = o & i ? new e() : void 0;
|
|
1366
1369
|
for (f.set(s, u), f.set(u, s); ++_ < d; ) {
|
|
1367
|
-
var p = s[_],
|
|
1370
|
+
var p = s[_], A = u[_];
|
|
1368
1371
|
if (C)
|
|
1369
|
-
var m = l ? C(
|
|
1372
|
+
var m = l ? C(A, p, _, u, s, f) : C(p, A, _, s, u, f);
|
|
1370
1373
|
if (m !== void 0) {
|
|
1371
1374
|
if (m)
|
|
1372
1375
|
continue;
|
|
1373
|
-
|
|
1376
|
+
v = !1;
|
|
1374
1377
|
break;
|
|
1375
1378
|
}
|
|
1376
1379
|
if (w) {
|
|
1377
|
-
if (!r(u, function(
|
|
1378
|
-
if (!t(w,
|
|
1379
|
-
return w.push(
|
|
1380
|
+
if (!r(u, function(b, P) {
|
|
1381
|
+
if (!t(w, P) && (p === b || h(p, b, o, C, f)))
|
|
1382
|
+
return w.push(P);
|
|
1380
1383
|
})) {
|
|
1381
|
-
|
|
1384
|
+
v = !1;
|
|
1382
1385
|
break;
|
|
1383
1386
|
}
|
|
1384
|
-
} else if (!(p ===
|
|
1385
|
-
|
|
1387
|
+
} else if (!(p === A || h(p, A, o, C, f))) {
|
|
1388
|
+
v = !1;
|
|
1386
1389
|
break;
|
|
1387
1390
|
}
|
|
1388
1391
|
}
|
|
1389
|
-
return f.delete(s), f.delete(u),
|
|
1392
|
+
return f.delete(s), f.delete(u), v;
|
|
1390
1393
|
}
|
|
1391
1394
|
return P2 = n, P2;
|
|
1392
1395
|
}
|
|
@@ -1425,43 +1428,43 @@ var x2, o3;
|
|
|
1425
1428
|
function U5() {
|
|
1426
1429
|
if (o3) return x2;
|
|
1427
1430
|
o3 = 1;
|
|
1428
|
-
var e =
|
|
1429
|
-
function
|
|
1430
|
-
switch (
|
|
1431
|
-
case
|
|
1432
|
-
if (m.byteLength !=
|
|
1431
|
+
var e = X(), r = K5(), t = y4(), a = m4(), i = $5(), n = k5(), s = 1, u = 2, o = "[object Boolean]", C = "[object Date]", h = "[object Error]", f = "[object Map]", l = "[object Number]", d = "[object RegExp]", T = "[object Set]", q = "[object String]", y = "[object Symbol]", _ = "[object ArrayBuffer]", v = "[object DataView]", w = e ? e.prototype : void 0, p = w ? w.valueOf : void 0;
|
|
1432
|
+
function A(m, b, P, R, M, g, x) {
|
|
1433
|
+
switch (P) {
|
|
1434
|
+
case v:
|
|
1435
|
+
if (m.byteLength != b.byteLength || m.byteOffset != b.byteOffset)
|
|
1433
1436
|
return !1;
|
|
1434
|
-
m = m.buffer,
|
|
1437
|
+
m = m.buffer, b = b.buffer;
|
|
1435
1438
|
case _:
|
|
1436
|
-
return !(m.byteLength !=
|
|
1439
|
+
return !(m.byteLength != b.byteLength || !g(new r(m), new r(b)));
|
|
1437
1440
|
case o:
|
|
1438
1441
|
case C:
|
|
1439
1442
|
case l:
|
|
1440
|
-
return t(+m, +
|
|
1443
|
+
return t(+m, +b);
|
|
1441
1444
|
case h:
|
|
1442
|
-
return m.name ==
|
|
1445
|
+
return m.name == b.name && m.message == b.message;
|
|
1443
1446
|
case d:
|
|
1444
1447
|
case q:
|
|
1445
|
-
return m ==
|
|
1448
|
+
return m == b + "";
|
|
1446
1449
|
case f:
|
|
1447
|
-
var
|
|
1448
|
-
case
|
|
1449
|
-
var
|
|
1450
|
-
if (
|
|
1450
|
+
var H = i;
|
|
1451
|
+
case T:
|
|
1452
|
+
var z = R & s;
|
|
1453
|
+
if (H || (H = n), m.size != b.size && !z)
|
|
1451
1454
|
return !1;
|
|
1452
|
-
var
|
|
1453
|
-
if (
|
|
1454
|
-
return
|
|
1455
|
-
|
|
1456
|
-
var P4 = a(
|
|
1457
|
-
return
|
|
1458
|
-
case
|
|
1455
|
+
var W = x.get(m);
|
|
1456
|
+
if (W)
|
|
1457
|
+
return W == b;
|
|
1458
|
+
R |= u, x.set(m, b);
|
|
1459
|
+
var P4 = a(H(m), H(b), R, M, g, x);
|
|
1460
|
+
return x.delete(m), P4;
|
|
1461
|
+
case y:
|
|
1459
1462
|
if (p)
|
|
1460
|
-
return p.call(m) == p.call(
|
|
1463
|
+
return p.call(m) == p.call(b);
|
|
1461
1464
|
}
|
|
1462
1465
|
return !1;
|
|
1463
1466
|
}
|
|
1464
|
-
return x2 =
|
|
1467
|
+
return x2 = A, x2;
|
|
1465
1468
|
}
|
|
1466
1469
|
var I2, c3;
|
|
1467
1470
|
function W5() {
|
|
@@ -1534,33 +1537,33 @@ function re() {
|
|
|
1534
1537
|
g3 = 1;
|
|
1535
1538
|
var e = ee(), r = 1, t = Object.prototype, a = t.hasOwnProperty;
|
|
1536
1539
|
function i(n, s, u, o, C, h) {
|
|
1537
|
-
var f = u & r, l = e(n), d = l.length,
|
|
1540
|
+
var f = u & r, l = e(n), d = l.length, T = e(s), q = T.length;
|
|
1538
1541
|
if (d != q && !f)
|
|
1539
1542
|
return !1;
|
|
1540
|
-
for (var
|
|
1541
|
-
var _ = l[
|
|
1543
|
+
for (var y = d; y--; ) {
|
|
1544
|
+
var _ = l[y];
|
|
1542
1545
|
if (!(f ? _ in s : a.call(s, _)))
|
|
1543
1546
|
return !1;
|
|
1544
1547
|
}
|
|
1545
|
-
var
|
|
1546
|
-
if (
|
|
1547
|
-
return
|
|
1548
|
+
var v = h.get(n), w = h.get(s);
|
|
1549
|
+
if (v && w)
|
|
1550
|
+
return v == s && w == n;
|
|
1548
1551
|
var p = !0;
|
|
1549
1552
|
h.set(n, s), h.set(s, n);
|
|
1550
|
-
for (var
|
|
1551
|
-
_ = l[
|
|
1552
|
-
var m = n[_],
|
|
1553
|
+
for (var A = f; ++y < d; ) {
|
|
1554
|
+
_ = l[y];
|
|
1555
|
+
var m = n[_], b = s[_];
|
|
1553
1556
|
if (o)
|
|
1554
|
-
var
|
|
1555
|
-
if (!(
|
|
1557
|
+
var P = f ? o(b, m, _, s, n, h) : o(m, b, _, n, s, h);
|
|
1558
|
+
if (!(P === void 0 ? m === b || C(m, b, u, o, h) : P)) {
|
|
1556
1559
|
p = !1;
|
|
1557
1560
|
break;
|
|
1558
1561
|
}
|
|
1559
|
-
|
|
1562
|
+
A || (A = _ == "constructor");
|
|
1560
1563
|
}
|
|
1561
|
-
if (p && !
|
|
1562
|
-
var
|
|
1563
|
-
|
|
1564
|
+
if (p && !A) {
|
|
1565
|
+
var R = n.constructor, M = s.constructor;
|
|
1566
|
+
R != M && "constructor" in n && "constructor" in s && !(typeof R == "function" && R instanceof R && typeof M == "function" && M instanceof M) && (p = !1);
|
|
1564
1567
|
}
|
|
1565
1568
|
return h.delete(n), h.delete(s), p;
|
|
1566
1569
|
}
|
|
@@ -1570,85 +1573,85 @@ var N2, _3;
|
|
|
1570
1573
|
function te() {
|
|
1571
1574
|
if (_3) return N2;
|
|
1572
1575
|
_3 = 1;
|
|
1573
|
-
var e =
|
|
1576
|
+
var e = V(), r = O(), t = e(r, "DataView");
|
|
1574
1577
|
return N2 = t, N2;
|
|
1575
1578
|
}
|
|
1576
1579
|
var j2, v3;
|
|
1577
1580
|
function ae() {
|
|
1578
1581
|
if (v3) return j2;
|
|
1579
1582
|
v3 = 1;
|
|
1580
|
-
var e =
|
|
1583
|
+
var e = V(), r = O(), t = e(r, "Promise");
|
|
1581
1584
|
return j2 = t, j2;
|
|
1582
1585
|
}
|
|
1583
1586
|
var V2, p3;
|
|
1584
1587
|
function ne() {
|
|
1585
1588
|
if (p3) return V2;
|
|
1586
1589
|
p3 = 1;
|
|
1587
|
-
var e =
|
|
1590
|
+
var e = V(), r = O(), t = e(r, "Set");
|
|
1588
1591
|
return V2 = t, V2;
|
|
1589
1592
|
}
|
|
1590
1593
|
var F2, y3;
|
|
1591
1594
|
function ie() {
|
|
1592
1595
|
if (y3) return F2;
|
|
1593
1596
|
y3 = 1;
|
|
1594
|
-
var e =
|
|
1597
|
+
var e = V(), r = O(), t = e(r, "WeakMap");
|
|
1595
1598
|
return F2 = t, F2;
|
|
1596
1599
|
}
|
|
1597
1600
|
var G2, b3;
|
|
1598
1601
|
function se() {
|
|
1599
1602
|
if (b3) return G2;
|
|
1600
1603
|
b3 = 1;
|
|
1601
|
-
var e = te(), r = M0(), t = ae(), a = ne(), i = ie(), n =
|
|
1602
|
-
return (e &&
|
|
1603
|
-
var p = n(w),
|
|
1604
|
+
var e = te(), r = M0(), t = ae(), a = ne(), i = ie(), n = k(), s = l4(), u = "[object Map]", o = "[object Object]", C = "[object Promise]", h = "[object Set]", f = "[object WeakMap]", l = "[object DataView]", d = s(e), T = s(r), q = s(t), y = s(a), _ = s(i), v = n;
|
|
1605
|
+
return (e && v(new e(new ArrayBuffer(1))) != l || r && v(new r()) != u || t && v(t.resolve()) != C || a && v(new a()) != h || i && v(new i()) != f) && (v = function(w) {
|
|
1606
|
+
var p = n(w), A = p == o ? w.constructor : void 0, m = A ? s(A) : "";
|
|
1604
1607
|
if (m)
|
|
1605
1608
|
switch (m) {
|
|
1606
1609
|
case d:
|
|
1607
1610
|
return l;
|
|
1608
|
-
case
|
|
1611
|
+
case T:
|
|
1609
1612
|
return u;
|
|
1610
1613
|
case q:
|
|
1611
1614
|
return C;
|
|
1612
|
-
case
|
|
1615
|
+
case y:
|
|
1613
1616
|
return h;
|
|
1614
1617
|
case _:
|
|
1615
1618
|
return f;
|
|
1616
1619
|
}
|
|
1617
1620
|
return p;
|
|
1618
|
-
}), G2 =
|
|
1621
|
+
}), G2 = v, G2;
|
|
1619
1622
|
}
|
|
1620
1623
|
var Z2, m3;
|
|
1621
1624
|
function ue() {
|
|
1622
1625
|
if (m3) return Z2;
|
|
1623
1626
|
m3 = 1;
|
|
1624
1627
|
var e = b4(), r = m4(), t = U5(), a = re(), i = se(), n = E(), s = g4(), u = v4(), o = 1, C = "[object Arguments]", h = "[object Array]", f = "[object Object]", l = Object.prototype, d = l.hasOwnProperty;
|
|
1625
|
-
function
|
|
1626
|
-
var
|
|
1627
|
-
|
|
1628
|
-
var
|
|
1629
|
-
if (
|
|
1630
|
-
if (!s(
|
|
1628
|
+
function T(q, y, _, v, w, p) {
|
|
1629
|
+
var A = n(q), m = n(y), b = A ? h : i(q), P = m ? h : i(y);
|
|
1630
|
+
b = b == C ? f : b, P = P == C ? f : P;
|
|
1631
|
+
var R = b == f, M = P == f, g = b == P;
|
|
1632
|
+
if (g && s(q)) {
|
|
1633
|
+
if (!s(y))
|
|
1631
1634
|
return !1;
|
|
1632
|
-
|
|
1635
|
+
A = !0, R = !1;
|
|
1633
1636
|
}
|
|
1634
|
-
if (
|
|
1635
|
-
return p || (p = new e()),
|
|
1637
|
+
if (g && !R)
|
|
1638
|
+
return p || (p = new e()), A || u(q) ? r(q, y, _, v, w, p) : t(q, y, b, _, v, w, p);
|
|
1636
1639
|
if (!(_ & o)) {
|
|
1637
|
-
var
|
|
1638
|
-
if (
|
|
1639
|
-
var
|
|
1640
|
-
return p || (p = new e()), w(
|
|
1640
|
+
var x = R && d.call(q, "__wrapped__"), H = M && d.call(y, "__wrapped__");
|
|
1641
|
+
if (x || H) {
|
|
1642
|
+
var z = x ? q.value() : q, W = H ? y.value() : y;
|
|
1643
|
+
return p || (p = new e()), w(z, W, _, v, p);
|
|
1641
1644
|
}
|
|
1642
1645
|
}
|
|
1643
|
-
return
|
|
1646
|
+
return g ? (p || (p = new e()), a(q, y, _, v, w, p)) : !1;
|
|
1644
1647
|
}
|
|
1645
|
-
return Z2 =
|
|
1648
|
+
return Z2 = T, Z2;
|
|
1646
1649
|
}
|
|
1647
1650
|
var K2, q3;
|
|
1648
1651
|
function q4() {
|
|
1649
1652
|
if (q3) return K2;
|
|
1650
1653
|
q3 = 1;
|
|
1651
|
-
var e = ue(), r =
|
|
1654
|
+
var e = ue(), r = U();
|
|
1652
1655
|
function t(a, i, n, s, u) {
|
|
1653
1656
|
return a === i ? !0 : a == null || i == null || !r(a) && !r(i) ? a !== a && i !== i : e(a, i, n, s, t, u);
|
|
1654
1657
|
}
|
|
@@ -1670,15 +1673,15 @@ function oe() {
|
|
|
1670
1673
|
}
|
|
1671
1674
|
for (; ++C < h; ) {
|
|
1672
1675
|
l = u[C];
|
|
1673
|
-
var d = l[0],
|
|
1676
|
+
var d = l[0], T = n[d], q = l[1];
|
|
1674
1677
|
if (f && l[2]) {
|
|
1675
|
-
if (
|
|
1678
|
+
if (T === void 0 && !(d in n))
|
|
1676
1679
|
return !1;
|
|
1677
1680
|
} else {
|
|
1678
|
-
var
|
|
1681
|
+
var y = new e();
|
|
1679
1682
|
if (o)
|
|
1680
|
-
var _ = o(
|
|
1681
|
-
if (!(_ === void 0 ? r(q,
|
|
1683
|
+
var _ = o(T, q, d, n, s, y);
|
|
1684
|
+
if (!(_ === void 0 ? r(q, T, t | a, o, y) : _))
|
|
1682
1685
|
return !1;
|
|
1683
1686
|
}
|
|
1684
1687
|
}
|
|
@@ -1738,7 +1741,7 @@ var Q2, R3;
|
|
|
1738
1741
|
function R0() {
|
|
1739
1742
|
if (R3) return Q2;
|
|
1740
1743
|
R3 = 1;
|
|
1741
|
-
var e =
|
|
1744
|
+
var e = k(), r = U(), t = "[object Symbol]";
|
|
1742
1745
|
function a(i) {
|
|
1743
1746
|
return typeof i == "symbol" || r(i) && e(i) == t;
|
|
1744
1747
|
}
|
|
@@ -1816,7 +1819,7 @@ var a0, O3;
|
|
|
1816
1819
|
function ge() {
|
|
1817
1820
|
if (O3) return a0;
|
|
1818
1821
|
O3 = 1;
|
|
1819
|
-
var e =
|
|
1822
|
+
var e = X(), r = de(), t = E(), a = R0(), i = e ? e.prototype : void 0, n = i ? i.toString : void 0;
|
|
1820
1823
|
function s(u) {
|
|
1821
1824
|
if (typeof u == "string")
|
|
1822
1825
|
return u;
|
|
@@ -1850,7 +1853,7 @@ function w4() {
|
|
|
1850
1853
|
return i0 = i, i0;
|
|
1851
1854
|
}
|
|
1852
1855
|
var s0, z3;
|
|
1853
|
-
function
|
|
1856
|
+
function a1() {
|
|
1854
1857
|
if (z3) return s0;
|
|
1855
1858
|
z3 = 1;
|
|
1856
1859
|
var e = R0();
|
|
@@ -1866,7 +1869,7 @@ var u0, D3;
|
|
|
1866
1869
|
function M4() {
|
|
1867
1870
|
if (D3) return u0;
|
|
1868
1871
|
D3 = 1;
|
|
1869
|
-
var e = w4(), r =
|
|
1872
|
+
var e = w4(), r = a1();
|
|
1870
1873
|
function t(a, i) {
|
|
1871
1874
|
i = e(i, a);
|
|
1872
1875
|
for (var n = 0, s = i.length; a != null && n < s; )
|
|
@@ -1899,7 +1902,7 @@ var C0, V3;
|
|
|
1899
1902
|
function ye() {
|
|
1900
1903
|
if (V3) return C0;
|
|
1901
1904
|
V3 = 1;
|
|
1902
|
-
var e = w4(), r = d4(), t = E(), a = _4(), i = A0(), n =
|
|
1905
|
+
var e = w4(), r = d4(), t = E(), a = _4(), i = A0(), n = a1();
|
|
1903
1906
|
function s(u, o, C) {
|
|
1904
1907
|
o = e(o, u);
|
|
1905
1908
|
for (var h = -1, f = o.length, l = !1; ++h < f; ) {
|
|
@@ -1926,7 +1929,7 @@ var h0, G3;
|
|
|
1926
1929
|
function me() {
|
|
1927
1930
|
if (G3) return h0;
|
|
1928
1931
|
G3 = 1;
|
|
1929
|
-
var e = q4(), r = ve(), t = be(), a = S0(), i = T4(), n = A4(), s =
|
|
1932
|
+
var e = q4(), r = ve(), t = be(), a = S0(), i = T4(), n = A4(), s = a1(), u = 1, o = 2;
|
|
1930
1933
|
function C(h, f) {
|
|
1931
1934
|
return a(h) && i(f) ? n(s(h), f) : function(l) {
|
|
1932
1935
|
var d = r(l, h);
|
|
@@ -1971,7 +1974,7 @@ var _0, k3;
|
|
|
1971
1974
|
function we() {
|
|
1972
1975
|
if (k3) return _0;
|
|
1973
1976
|
k3 = 1;
|
|
1974
|
-
var e = Te(), r = Ae(), t = S0(), a =
|
|
1977
|
+
var e = Te(), r = Ae(), t = S0(), a = a1();
|
|
1975
1978
|
function i(n) {
|
|
1976
1979
|
return t(n) ? e(a(n)) : r(n);
|
|
1977
1980
|
}
|
|
@@ -2019,9 +2022,9 @@ const He = /* @__PURE__ */ a4(Se), xe = (e) => {
|
|
|
2019
2022
|
green: Ie,
|
|
2020
2023
|
blue: Le,
|
|
2021
2024
|
sepia: Oe
|
|
2022
|
-
}, Be = ({ value: e, borderColor: r }) => /* @__PURE__ */ L("div", { className:
|
|
2025
|
+
}, Be = ({ value: e, borderColor: r }) => /* @__PURE__ */ L("div", { className: S.pageNumberContainer, children: [
|
|
2023
2026
|
/* @__PURE__ */ c("img", { src: Ee[r || "green"] }),
|
|
2024
|
-
/* @__PURE__ */ c("p", { className:
|
|
2027
|
+
/* @__PURE__ */ c("p", { className: S.pageNumber, children: e })
|
|
2025
2028
|
] }), Q3 = ({
|
|
2026
2029
|
className: e,
|
|
2027
2030
|
children: r,
|
|
@@ -2374,7 +2377,7 @@ const He = /* @__PURE__ */ a4(Se), xe = (e) => {
|
|
|
2374
2377
|
fontSize: "16",
|
|
2375
2378
|
fontWeight: "500",
|
|
2376
2379
|
fontFamily: "UthmanicHafs",
|
|
2377
|
-
className:
|
|
2380
|
+
className: N.filled,
|
|
2378
2381
|
children: r
|
|
2379
2382
|
}
|
|
2380
2383
|
)
|
|
@@ -2420,7 +2423,7 @@ const He = /* @__PURE__ */ a4(Se), xe = (e) => {
|
|
|
2420
2423
|
onWordHover: i,
|
|
2421
2424
|
borderColor: n
|
|
2422
2425
|
}) => {
|
|
2423
|
-
const { fontScale: s, hasBorder: u } =
|
|
2426
|
+
const { fontScale: s, hasBorder: u } = j(), o = Q(
|
|
2424
2427
|
() => e && e.length ? xe(e) : {},
|
|
2425
2428
|
[e]
|
|
2426
2429
|
), C = s > 3, h = e && e.length ? e[0] : void 0, f = r === 1 || r === 2;
|
|
@@ -2428,25 +2431,25 @@ const He = /* @__PURE__ */ a4(Se), xe = (e) => {
|
|
|
2428
2431
|
"div",
|
|
2429
2432
|
{
|
|
2430
2433
|
id: `page-${r}`,
|
|
2431
|
-
className: I(
|
|
2432
|
-
[
|
|
2433
|
-
[
|
|
2434
|
-
[
|
|
2435
|
-
[
|
|
2434
|
+
className: I(S.container, {
|
|
2435
|
+
[S.mobileCenterText]: C,
|
|
2436
|
+
[S.border]: u,
|
|
2437
|
+
[S.blueBorder]: u && n === "blue",
|
|
2438
|
+
[S.sepiaBorder]: u && n === "sepia"
|
|
2436
2439
|
}),
|
|
2437
2440
|
style: { position: "relative" },
|
|
2438
2441
|
children: [
|
|
2439
2442
|
u && /* @__PURE__ */ L(X3, { children: [
|
|
2440
|
-
/* @__PURE__ */ c(Q3, { borderColor: n, className:
|
|
2441
|
-
/* @__PURE__ */ c(Q3, { borderColor: n, className:
|
|
2443
|
+
/* @__PURE__ */ c(Q3, { borderColor: n, className: S.surah, children: h?.surah?.name }),
|
|
2444
|
+
/* @__PURE__ */ c(Q3, { borderColor: n, className: S.juz, children: De(h?.juz || 1) })
|
|
2442
2445
|
] }),
|
|
2443
2446
|
/* @__PURE__ */ L(
|
|
2444
2447
|
"div",
|
|
2445
2448
|
{
|
|
2446
2449
|
className: I({
|
|
2447
|
-
[
|
|
2448
|
-
[
|
|
2449
|
-
[
|
|
2450
|
+
[S.bottomBorder]: u && f,
|
|
2451
|
+
[S.blueBottomBorder]: u && f && n === "blue",
|
|
2452
|
+
[S.sepiaBottomBorder]: u && f && n === "sepia"
|
|
2450
2453
|
}),
|
|
2451
2454
|
style: { width: "100%" },
|
|
2452
2455
|
children: [
|
|
@@ -2462,9 +2465,9 @@ const He = /* @__PURE__ */ a4(Se), xe = (e) => {
|
|
|
2462
2465
|
"div",
|
|
2463
2466
|
{
|
|
2464
2467
|
className: I({
|
|
2465
|
-
[
|
|
2466
|
-
[
|
|
2467
|
-
[
|
|
2468
|
+
[S.firstTwoPagesBorder]: u && f,
|
|
2469
|
+
[S.blueFirstTwoPagesBorder]: u && f && n === "blue",
|
|
2470
|
+
[S.sepiaFirstTwoPagesBorder]: u && f && n === "sepia"
|
|
2468
2471
|
}),
|
|
2469
2472
|
children: [
|
|
2470
2473
|
r === 2 && /* @__PURE__ */ c("div", { className: m0.bismillahContainer, children: /* @__PURE__ */ c(s4, {}) }),
|
|
@@ -2493,7 +2496,7 @@ const He = /* @__PURE__ */ a4(Se), xe = (e) => {
|
|
|
2493
2496
|
}
|
|
2494
2497
|
);
|
|
2495
2498
|
}, Fe = ({ onWordClick: e, onWordHover: r, styleOverride: t }) => {
|
|
2496
|
-
const { ayat: a, nextPageAyat: i, pageNumber: n } =
|
|
2499
|
+
const { ayat: a, nextPageAyat: i, pageNumber: n } = j();
|
|
2497
2500
|
q0(() => {
|
|
2498
2501
|
t?.borderColor && document.documentElement.style.setProperty(
|
|
2499
2502
|
"--word-highlight-color",
|
|
@@ -2509,7 +2512,7 @@ const He = /* @__PURE__ */ a4(Se), xe = (e) => {
|
|
|
2509
2512
|
t?.primaryFontColor
|
|
2510
2513
|
);
|
|
2511
2514
|
}, [t]);
|
|
2512
|
-
const { isTwoPagesView: s } =
|
|
2515
|
+
const { isTwoPagesView: s } = j(), u = Number(n);
|
|
2513
2516
|
return /* @__PURE__ */ c("div", { className: I(x0.container), children: /* @__PURE__ */ c("div", { className: I(O4.container), children: s && i ? /* @__PURE__ */ L("div", { className: x0.twoPagesRow, children: [
|
|
2514
2517
|
/* @__PURE__ */ c(
|
|
2515
2518
|
b0,
|
|
@@ -2552,6 +2555,6 @@ export {
|
|
|
2552
2555
|
Fe as Mushaf,
|
|
2553
2556
|
Ve as MushafPageProvider,
|
|
2554
2557
|
r6 as classnames,
|
|
2555
|
-
|
|
2558
|
+
j as useMushafContext
|
|
2556
2559
|
};
|
|
2557
2560
|
//# sourceMappingURL=index.es.js.map
|