@everymatrix/casino-page 1.55.0 → 1.56.0
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/components/CasinoCalendar-BUWW4Xzj.cjs +6 -0
- package/components/{CasinoCalendar-C1drIkmy.js → CasinoCalendar-DwKH1vl3.js} +1101 -1101
- package/components/{CasinoCalendar-Dp2YIBXE.js → CasinoCalendar-tMtCN0uW.js} +960 -960
- package/components/CasinoCalendarDailyDetails-B1yNq5WP.cjs +1 -0
- package/components/CasinoCalendarDailyDetails-BP_ANGdX.js +693 -0
- package/components/CasinoCalendarDailyDetails-CehhK4Vt.js +693 -0
- package/components/CasinoCalendarDailyItem-C08Z_td-.cjs +1 -0
- package/components/CasinoCalendarDailyItem-Cf-elj80.js +306 -0
- package/components/CasinoCalendarDailyItem-DE7Q_O2x.js +306 -0
- package/components/CasinoCollectionsProviders-C0mIOrt5.cjs +1 -0
- package/components/{CasinoCollectionsProviders-BzqyvgJV.js → CasinoCollectionsProviders-DoRepmON.js} +54 -54
- package/components/{CasinoCollectionsProviders-CSskAm-D.js → CasinoCollectionsProviders-Yt2ApEP5.js} +52 -52
- package/components/{CasinoFavoritesSection-CPFXr99O.js → CasinoFavoritesSection-M3wz4Hsn.js} +32 -31
- package/components/{CasinoFavoritesSection-BMxE9u9W.js → CasinoFavoritesSection-UtUw8bHl.js} +32 -31
- package/components/CasinoFavoritesSection-eK-e7FeC.cjs +1 -0
- package/components/CasinoFilter-BYz1zKUs.cjs +1 -0
- package/components/{CasinoFilter-Bm5nGmim.js → CasinoFilter-BbKgy4VX.js} +246 -247
- package/components/{CasinoFilter-xEI9NRP7.js → CasinoFilter-Cb7FySTm.js} +235 -234
- package/components/CasinoGameThumbnail-10TTv4CH.cjs +47 -0
- package/components/{CasinoGameThumbnail-CfP973nP.js → CasinoGameThumbnail-BZ8OnqL9.js} +569 -553
- package/components/{CasinoGameThumbnail-hqC7YEtD.js → CasinoGameThumbnail-BokqjU_3.js} +1116 -1132
- package/components/CasinoGamesCategorySection-BtYQ_Cmz.cjs +1 -0
- package/components/{CasinoGamesCategorySection-B2K0Knl1.js → CasinoGamesCategorySection-CeuGEQJP.js} +659 -695
- package/components/{CasinoGamesCategorySection-CD0rjXbd.js → CasinoGamesCategorySection-mejOW_4O.js} +1084 -1120
- package/components/{CasinoJackpotBanner-rIlKc9yB.js → CasinoJackpotBanner-BaqwOwIt.js} +146 -144
- package/components/CasinoJackpotBanner-DZZsX8IW.cjs +1 -0
- package/components/{CasinoJackpotBanner-BIHc0ZJN.js → CasinoJackpotBanner-Dnu1YGvy.js} +149 -147
- package/components/CasinoLastPlayedSection-1vrPgQaO.cjs +1 -0
- package/components/{CasinoLastPlayedSection-BrUPu7bW.js → CasinoLastPlayedSection-BSbuszLI.js} +48 -48
- package/components/{CasinoLastPlayedSection-CbftznEu.js → CasinoLastPlayedSection-D1gqQwzF.js} +48 -48
- package/components/{CasinoMostPlayedSection-CK_65V_H.js → CasinoMostPlayedSection-CgUwp5nt.js} +170 -161
- package/components/CasinoMostPlayedSection-DtSDqrXG.cjs +1 -0
- package/components/{CasinoMostPlayedSection-Cn5hGmEL.js → CasinoMostPlayedSection-jWqnrmjv.js} +170 -161
- package/components/{CasinoMyGames-Bl1r6y2U.js → CasinoMyGames-BRGZxXY6.js} +331 -298
- package/components/CasinoMyGames-CPWV0sSu.cjs +1 -0
- package/components/{CasinoMyGames-RRWE3bwH.js → CasinoMyGames-DrnKvqrj.js} +333 -300
- package/components/CasinoPage-BxqUNSyB.cjs +1 -0
- package/components/{CasinoPage-Co3MjNG2.js → CasinoPage-CP0TDj2s.js} +593 -530
- package/components/{CasinoPage-DgRtBnkW.js → CasinoPage-oah0JVVU.js} +708 -645
- package/components/{CasinoRandomGame-XLB_bCSb.cjs → CasinoRandomGame-B2FGgsW1.cjs} +2 -2
- package/components/{CasinoRandomGame-BB1xnS-3.js → CasinoRandomGame-D9BEuIS2.js} +60 -60
- package/components/{CasinoRandomGame-Os6RvrQW.js → CasinoRandomGame-T1GVZYOt.js} +60 -60
- package/components/{CasinoSearch-noyB94iJ.js → CasinoSearch-BX1qMF6U.js} +69 -69
- package/components/{CasinoSearch-B8ow9TRS.js → CasinoSearch-Cfj0uLun.js} +69 -69
- package/components/{CasinoSearch-8dLpmGZC.cjs → CasinoSearch-DvRie_tr.cjs} +1 -1
- package/components/CasinoSort-BmkqSaqQ.cjs +1 -0
- package/components/CasinoSort-BwNRVsYT.js +427 -0
- package/components/CasinoSort-DykEVPy1.js +428 -0
- package/components/{CasinoWinners-CGsgZ7OE.cjs → CasinoWinners-4fX-Jkcx.cjs} +1 -1
- package/components/{CasinoWinners-DNTYhXqC.js → CasinoWinners-DbNw8Ecj.js} +151 -151
- package/components/{CasinoWinners-BhzxeUZ8.js → CasinoWinners-Dn6mLcJT.js} +171 -171
- package/components/GeneralAnimationLoading-C3AulHDZ.js +84 -0
- package/components/GeneralAnimationLoading-CKfD84TR.js +84 -0
- package/components/GeneralAnimationLoading-D4L1aOk8.cjs +1 -0
- package/es2015/casino-page.cjs +1 -1
- package/es2015/casino-page.js +1 -1
- package/esnext/casino-page.js +1 -1
- package/package.json +1 -1
- package/stencil/{casino-play-random-game-B5g4-G4Z.js → casino-play-random-game-CBXhEsCq.js} +55 -30
- package/stencil/{casino-play-random-game-Cphp76Jq.js → casino-play-random-game-PZXnDzfs.js} +74 -49
- package/stencil/{casino-play-random-game-CQe5iDJ8.cjs → casino-play-random-game-y8flXwPv.cjs} +2 -2
- package/stencil/index-29915e18-B3XYTzEC.cjs +1 -0
- package/stencil/index-29915e18-CQ_kWzEh.js +630 -0
- package/stencil/index-29915e18-MPiqo7vY.js +646 -0
- package/components/CasinoCalendar-hlupOGnG.cjs +0 -6
- package/components/CasinoCalendarDailyDetails-BVWbjQFD.js +0 -701
- package/components/CasinoCalendarDailyDetails-CUTyAice.cjs +0 -1
- package/components/CasinoCalendarDailyDetails-D7SMZkT6.js +0 -701
- package/components/CasinoCalendarDailyItem-BTxF_iOC.js +0 -315
- package/components/CasinoCalendarDailyItem-CSD4crn_.cjs +0 -1
- package/components/CasinoCalendarDailyItem-Cpx3YOPg.js +0 -315
- package/components/CasinoCollectionsProviders-CAOXt4qM.cjs +0 -1
- package/components/CasinoFavoritesSection-C8XipeGx.cjs +0 -1
- package/components/CasinoFilter-Dca8BAHj.cjs +0 -1
- package/components/CasinoGameThumbnail-C-Tt8tAv.cjs +0 -47
- package/components/CasinoGamesCategorySection-CppaXkzh.cjs +0 -1
- package/components/CasinoJackpotBanner-C7IpKgXw.cjs +0 -1
- package/components/CasinoLastPlayedSection-BVjRebLJ.cjs +0 -1
- package/components/CasinoMostPlayedSection-C_4j7zs2.cjs +0 -1
- package/components/CasinoMyGames-20ibf19k.cjs +0 -1
- package/components/CasinoPage-DVD4VGGZ.cjs +0 -1
- package/components/CasinoSort-85kTtPeQ.cjs +0 -1
- package/components/CasinoSort-B6tKDPof.js +0 -428
- package/components/CasinoSort-D05yyakn.js +0 -427
- package/components/GeneralAnimationLoading--i35RrmV.cjs +0 -1
- package/components/GeneralAnimationLoading-BTpSb-no.js +0 -75
- package/components/GeneralAnimationLoading-DUpN0ANa.js +0 -75
- package/stencil/index-eac6b960-BaE9i06M.cjs +0 -1
- package/stencil/index-eac6b960-DXIu1GM6.js +0 -579
- package/stencil/index-eac6b960-Dvyvd5zP.js +0 -563
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
function P() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function yr(e, t) {
|
|
4
4
|
for (const r in t) e[r] = t[r];
|
|
5
5
|
return (
|
|
6
6
|
/** @type {T & S} */
|
|
7
7
|
e
|
|
8
8
|
);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function Ot(e) {
|
|
11
11
|
return e();
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function tt() {
|
|
14
14
|
return /* @__PURE__ */ Object.create(null);
|
|
15
15
|
}
|
|
16
16
|
function X(e) {
|
|
17
|
-
e.forEach(
|
|
17
|
+
e.forEach(Ot);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function we(e) {
|
|
20
20
|
return typeof e == "function";
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function It(e, t) {
|
|
23
23
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
24
24
|
}
|
|
25
|
-
let
|
|
26
|
-
function
|
|
27
|
-
return e === t ? !0 : (
|
|
25
|
+
let fe;
|
|
26
|
+
function eo(e, t) {
|
|
27
|
+
return e === t ? !0 : (fe || (fe = document.createElement("a")), fe.href = t, e === fe.href);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function gr(e) {
|
|
30
30
|
return Object.keys(e).length === 0;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Ct(e, ...t) {
|
|
33
33
|
if (e == null) {
|
|
34
34
|
for (const n of t)
|
|
35
35
|
n(void 0);
|
|
@@ -38,19 +38,19 @@ function Rt(e, ...t) {
|
|
|
38
38
|
const r = e.subscribe(...t);
|
|
39
39
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
e.$$.on_destroy.push(
|
|
41
|
+
function vr(e, t, r) {
|
|
42
|
+
e.$$.on_destroy.push(Ct(t, r));
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function to(e, t, r, n) {
|
|
45
45
|
if (e) {
|
|
46
|
-
const i =
|
|
46
|
+
const i = Lt(e, t, r, n);
|
|
47
47
|
return e[0](i);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return e[1] && n ?
|
|
50
|
+
function Lt(e, t, r, n) {
|
|
51
|
+
return e[1] && n ? yr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function ro(e, t, r, n) {
|
|
54
54
|
if (e[2] && n) {
|
|
55
55
|
const i = e[2](n(r));
|
|
56
56
|
if (t.dirty === void 0)
|
|
@@ -65,13 +65,13 @@ function so(e, t, r, n) {
|
|
|
65
65
|
}
|
|
66
66
|
return t.dirty;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function no(e, t, r, n, i, o) {
|
|
69
69
|
if (i) {
|
|
70
|
-
const a =
|
|
70
|
+
const a = Lt(t, r, n, o);
|
|
71
71
|
e.p(a, i);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function io(e) {
|
|
75
75
|
if (e.ctx.length > 32) {
|
|
76
76
|
const t = [], r = e.ctx.length / 32;
|
|
77
77
|
for (let n = 0; n < r; n++)
|
|
@@ -80,20 +80,20 @@ function uo(e) {
|
|
|
80
80
|
}
|
|
81
81
|
return -1;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
return e &&
|
|
83
|
+
function oo(e) {
|
|
84
|
+
return e && we(e.destroy) ? e.destroy : P;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function he(e, t) {
|
|
87
87
|
e.appendChild(t);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
const n =
|
|
89
|
+
function _r(e, t, r) {
|
|
90
|
+
const n = Er(e);
|
|
91
91
|
if (!n.getElementById(t)) {
|
|
92
92
|
const i = L("style");
|
|
93
|
-
i.id = t, i.textContent = r,
|
|
93
|
+
i.id = t, i.textContent = r, xr(n, i);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Er(e) {
|
|
97
97
|
if (!e) return document;
|
|
98
98
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
99
99
|
return t && /** @type {ShadowRoot} */
|
|
@@ -102,88 +102,88 @@ function Hr(e) {
|
|
|
102
102
|
t
|
|
103
103
|
) : e.ownerDocument;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
return
|
|
105
|
+
function xr(e, t) {
|
|
106
|
+
return he(
|
|
107
107
|
/** @type {Document} */
|
|
108
108
|
e.head || e,
|
|
109
109
|
t
|
|
110
110
|
), t.sheet;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function k(e, t, r) {
|
|
113
113
|
e.insertBefore(t, r || null);
|
|
114
114
|
}
|
|
115
115
|
function $(e) {
|
|
116
116
|
e.parentNode && e.parentNode.removeChild(e);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function wr(e, t) {
|
|
119
119
|
for (let r = 0; r < e.length; r += 1)
|
|
120
120
|
e[r] && e[r].d(t);
|
|
121
121
|
}
|
|
122
122
|
function L(e) {
|
|
123
123
|
return document.createElement(e);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Sr(e) {
|
|
126
126
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Ye(e) {
|
|
129
129
|
return document.createTextNode(e);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
return
|
|
131
|
+
function Tr() {
|
|
132
|
+
return Ye(" ");
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
return
|
|
134
|
+
function so() {
|
|
135
|
+
return Ye("");
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function rt(e, t, r, n) {
|
|
138
138
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function ao(e) {
|
|
141
141
|
return function(t) {
|
|
142
142
|
return t.stopPropagation(), e.call(this, t);
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function j(e, t, r) {
|
|
146
146
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function p(e, t, r) {
|
|
149
149
|
const n = t.toLowerCase();
|
|
150
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
150
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : j(e, t, r);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Hr(e) {
|
|
153
153
|
return Array.from(e.childNodes);
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Br(e, t) {
|
|
156
156
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
157
157
|
t);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function uo(e, t) {
|
|
160
160
|
e.value = t ?? "";
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function lo(e, t, r, n) {
|
|
163
163
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
164
164
|
}
|
|
165
|
-
let
|
|
166
|
-
function
|
|
167
|
-
if (
|
|
168
|
-
|
|
165
|
+
let de;
|
|
166
|
+
function Pr() {
|
|
167
|
+
if (de === void 0) {
|
|
168
|
+
de = !1;
|
|
169
169
|
try {
|
|
170
170
|
typeof window < "u" && window.parent && window.parent.document;
|
|
171
171
|
} catch {
|
|
172
|
-
|
|
172
|
+
de = !0;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
return
|
|
175
|
+
return de;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function ho(e, t) {
|
|
178
178
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
179
179
|
const n = L("iframe");
|
|
180
180
|
n.setAttribute(
|
|
181
181
|
"style",
|
|
182
182
|
"display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
|
|
183
183
|
), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
|
|
184
|
-
const i =
|
|
184
|
+
const i = Pr();
|
|
185
185
|
let o;
|
|
186
|
-
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o =
|
|
186
|
+
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = rt(
|
|
187
187
|
window,
|
|
188
188
|
"message",
|
|
189
189
|
/** @param {MessageEvent} event */
|
|
@@ -191,15 +191,15 @@ function mo(e, t) {
|
|
|
191
191
|
a.source === n.contentWindow && t();
|
|
192
192
|
}
|
|
193
193
|
)) : (n.src = "about:blank", n.onload = () => {
|
|
194
|
-
o =
|
|
195
|
-
}),
|
|
194
|
+
o = rt(n.contentWindow, "resize", t), t();
|
|
195
|
+
}), he(e, n), () => {
|
|
196
196
|
(i || o && n.contentWindow) && o(), $(n);
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function co(e, t, r) {
|
|
200
200
|
e.classList.toggle(t, !!r);
|
|
201
201
|
}
|
|
202
|
-
class
|
|
202
|
+
class fo {
|
|
203
203
|
/**
|
|
204
204
|
* @private
|
|
205
205
|
* @default false
|
|
@@ -230,7 +230,7 @@ class yo {
|
|
|
230
230
|
* @returns {void}
|
|
231
231
|
*/
|
|
232
232
|
m(t, r, n = null) {
|
|
233
|
-
this.e || (this.is_svg ? this.e =
|
|
233
|
+
this.e || (this.is_svg ? this.e = Sr(
|
|
234
234
|
/** @type {keyof SVGElementTagNameMap} */
|
|
235
235
|
r.nodeName
|
|
236
236
|
) : this.e = L(
|
|
@@ -254,7 +254,7 @@ class yo {
|
|
|
254
254
|
* @returns {void} */
|
|
255
255
|
i(t) {
|
|
256
256
|
for (let r = 0; r < this.n.length; r += 1)
|
|
257
|
-
|
|
257
|
+
k(this.t, this.n[r], t);
|
|
258
258
|
}
|
|
259
259
|
/**
|
|
260
260
|
* @param {string} html
|
|
@@ -269,7 +269,7 @@ class yo {
|
|
|
269
269
|
this.n.forEach($);
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function Ar(e) {
|
|
273
273
|
const t = {};
|
|
274
274
|
return e.childNodes.forEach(
|
|
275
275
|
/** @param {Element} node */
|
|
@@ -278,142 +278,142 @@ function Mr(e) {
|
|
|
278
278
|
}
|
|
279
279
|
), t;
|
|
280
280
|
}
|
|
281
|
-
let
|
|
282
|
-
function
|
|
283
|
-
|
|
281
|
+
let ae;
|
|
282
|
+
function se(e) {
|
|
283
|
+
ae = e;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
if (!
|
|
287
|
-
return
|
|
285
|
+
function Nt() {
|
|
286
|
+
if (!ae) throw new Error("Function called outside component initialization");
|
|
287
|
+
return ae;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
|
|
289
|
+
function Or(e) {
|
|
290
|
+
Nt().$$.on_mount.push(e);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
293
|
-
|
|
292
|
+
function po(e) {
|
|
293
|
+
Nt().$$.on_destroy.push(e);
|
|
294
294
|
}
|
|
295
|
-
const Q = [],
|
|
295
|
+
const Q = [], Re = [];
|
|
296
296
|
let J = [];
|
|
297
|
-
const
|
|
298
|
-
let
|
|
299
|
-
function
|
|
300
|
-
|
|
297
|
+
const nt = [], Mt = /* @__PURE__ */ Promise.resolve();
|
|
298
|
+
let $e = !1;
|
|
299
|
+
function Rt() {
|
|
300
|
+
$e || ($e = !0, Mt.then(R));
|
|
301
301
|
}
|
|
302
|
-
function
|
|
303
|
-
return
|
|
302
|
+
function mo() {
|
|
303
|
+
return Rt(), Mt;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function De(e) {
|
|
306
306
|
J.push(e);
|
|
307
307
|
}
|
|
308
|
-
const
|
|
309
|
-
let
|
|
308
|
+
const Ae = /* @__PURE__ */ new Set();
|
|
309
|
+
let z = 0;
|
|
310
310
|
function R() {
|
|
311
|
-
if (
|
|
311
|
+
if (z !== 0)
|
|
312
312
|
return;
|
|
313
|
-
const e =
|
|
313
|
+
const e = ae;
|
|
314
314
|
do {
|
|
315
315
|
try {
|
|
316
|
-
for (;
|
|
317
|
-
const t = Q[
|
|
318
|
-
|
|
316
|
+
for (; z < Q.length; ) {
|
|
317
|
+
const t = Q[z];
|
|
318
|
+
z++, se(t), Ir(t.$$);
|
|
319
319
|
}
|
|
320
320
|
} catch (t) {
|
|
321
|
-
throw Q.length = 0,
|
|
321
|
+
throw Q.length = 0, z = 0, t;
|
|
322
322
|
}
|
|
323
|
-
for (
|
|
323
|
+
for (se(null), Q.length = 0, z = 0; Re.length; ) Re.pop()();
|
|
324
324
|
for (let t = 0; t < J.length; t += 1) {
|
|
325
325
|
const r = J[t];
|
|
326
|
-
|
|
326
|
+
Ae.has(r) || (Ae.add(r), r());
|
|
327
327
|
}
|
|
328
328
|
J.length = 0;
|
|
329
329
|
} while (Q.length);
|
|
330
|
-
for (;
|
|
331
|
-
|
|
332
|
-
|
|
330
|
+
for (; nt.length; )
|
|
331
|
+
nt.pop()();
|
|
332
|
+
$e = !1, Ae.clear(), se(e);
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function Ir(e) {
|
|
335
335
|
if (e.fragment !== null) {
|
|
336
336
|
e.update(), X(e.before_update);
|
|
337
337
|
const t = e.dirty;
|
|
338
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
338
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(De);
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function Cr(e) {
|
|
342
342
|
const t = [], r = [];
|
|
343
343
|
J.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), J = t;
|
|
344
344
|
}
|
|
345
|
-
const
|
|
346
|
-
let
|
|
347
|
-
function
|
|
348
|
-
|
|
345
|
+
const be = /* @__PURE__ */ new Set();
|
|
346
|
+
let V;
|
|
347
|
+
function bo() {
|
|
348
|
+
V = {
|
|
349
349
|
r: 0,
|
|
350
350
|
c: [],
|
|
351
|
-
p:
|
|
351
|
+
p: V
|
|
352
352
|
// parent group
|
|
353
353
|
};
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
|
|
355
|
+
function yo() {
|
|
356
|
+
V.r || X(V.c), V = V.p;
|
|
357
357
|
}
|
|
358
|
-
function
|
|
359
|
-
e && e.i && (
|
|
358
|
+
function $t(e, t) {
|
|
359
|
+
e && e.i && (be.delete(e), e.i(t));
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function go(e, t, r, n) {
|
|
362
362
|
if (e && e.o) {
|
|
363
|
-
if (
|
|
364
|
-
|
|
365
|
-
|
|
363
|
+
if (be.has(e)) return;
|
|
364
|
+
be.add(e), V.c.push(() => {
|
|
365
|
+
be.delete(e), n && (r && e.d(1), n());
|
|
366
366
|
}), e.o(t);
|
|
367
367
|
} else n && n();
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function it(e) {
|
|
370
370
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function vo(e, t) {
|
|
373
373
|
e.d(1), t.delete(e.key);
|
|
374
374
|
}
|
|
375
|
-
function
|
|
376
|
-
let c = e.length,
|
|
375
|
+
function _o(e, t, r, n, i, o, a, s, l, u, h, f) {
|
|
376
|
+
let c = e.length, m = o.length, b = c;
|
|
377
377
|
const g = {};
|
|
378
378
|
for (; b--; ) g[e[b].key] = b;
|
|
379
379
|
const w = [], A = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), S = [];
|
|
380
|
-
for (b =
|
|
381
|
-
const x = f(i, o, b),
|
|
382
|
-
let
|
|
383
|
-
|
|
380
|
+
for (b = m; b--; ) {
|
|
381
|
+
const x = f(i, o, b), B = r(x);
|
|
382
|
+
let I = a.get(B);
|
|
383
|
+
I ? S.push(() => I.p(x, t)) : (I = u(B, x), I.c()), A.set(B, w[b] = I), B in g && H.set(B, Math.abs(b - g[B]));
|
|
384
384
|
}
|
|
385
|
-
const
|
|
386
|
-
function
|
|
387
|
-
|
|
385
|
+
const N = /* @__PURE__ */ new Set(), O = /* @__PURE__ */ new Set();
|
|
386
|
+
function M(x) {
|
|
387
|
+
$t(x, 1), x.m(s, h), a.set(x.key, x), h = x.first, m--;
|
|
388
388
|
}
|
|
389
|
-
for (; c &&
|
|
390
|
-
const x = w[
|
|
391
|
-
x ===
|
|
389
|
+
for (; c && m; ) {
|
|
390
|
+
const x = w[m - 1], B = e[c - 1], I = x.key, d = B.key;
|
|
391
|
+
x === B ? (h = x.first, c--, m--) : A.has(d) ? !a.has(I) || N.has(I) ? M(x) : O.has(d) ? c-- : H.get(I) > H.get(d) ? (O.add(I), M(x)) : (N.add(d), c--) : (l(B, a), c--);
|
|
392
392
|
}
|
|
393
393
|
for (; c--; ) {
|
|
394
394
|
const x = e[c];
|
|
395
395
|
A.has(x.key) || l(x, a);
|
|
396
396
|
}
|
|
397
|
-
for (;
|
|
397
|
+
for (; m; ) M(w[m - 1]);
|
|
398
398
|
return X(S), w;
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Lr(e, t, r) {
|
|
401
401
|
const { fragment: n, after_update: i } = e.$$;
|
|
402
|
-
n && n.m(t, r),
|
|
403
|
-
const o = e.$$.on_mount.map(
|
|
402
|
+
n && n.m(t, r), De(() => {
|
|
403
|
+
const o = e.$$.on_mount.map(Ot).filter(we);
|
|
404
404
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : X(o), e.$$.on_mount = [];
|
|
405
|
-
}), i.forEach(
|
|
405
|
+
}), i.forEach(De);
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Nr(e, t) {
|
|
408
408
|
const r = e.$$;
|
|
409
|
-
r.fragment !== null && (
|
|
409
|
+
r.fragment !== null && (Cr(r.after_update), X(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
410
410
|
}
|
|
411
|
-
function
|
|
412
|
-
e.$$.dirty[0] === -1 && (Q.push(e),
|
|
411
|
+
function Mr(e, t) {
|
|
412
|
+
e.$$.dirty[0] === -1 && (Q.push(e), Rt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
415
|
-
const l =
|
|
416
|
-
|
|
414
|
+
function Rr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
415
|
+
const l = ae;
|
|
416
|
+
se(e);
|
|
417
417
|
const u = e.$$ = {
|
|
418
418
|
fragment: null,
|
|
419
419
|
ctx: [],
|
|
@@ -421,7 +421,7 @@ function Fr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
421
421
|
props: o,
|
|
422
422
|
update: P,
|
|
423
423
|
not_equal: i,
|
|
424
|
-
bound:
|
|
424
|
+
bound: tt(),
|
|
425
425
|
// lifecycle
|
|
426
426
|
on_mount: [],
|
|
427
427
|
on_destroy: [],
|
|
@@ -430,28 +430,28 @@ function Fr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
430
430
|
after_update: [],
|
|
431
431
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
432
432
|
// everything else
|
|
433
|
-
callbacks:
|
|
433
|
+
callbacks: tt(),
|
|
434
434
|
dirty: s,
|
|
435
435
|
skip_bound: !1,
|
|
436
436
|
root: t.target || l.$$.root
|
|
437
437
|
};
|
|
438
438
|
a && a(u.root);
|
|
439
439
|
let h = !1;
|
|
440
|
-
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
441
|
-
const b =
|
|
442
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), h &&
|
|
440
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
|
|
441
|
+
const b = m.length ? m[0] : c;
|
|
442
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), h && Mr(e, f)), c;
|
|
443
443
|
}) : [], u.update(), h = !0, X(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
444
444
|
if (t.hydrate) {
|
|
445
|
-
const f =
|
|
445
|
+
const f = Hr(t.target);
|
|
446
446
|
u.fragment && u.fragment.l(f), f.forEach($);
|
|
447
447
|
} else
|
|
448
448
|
u.fragment && u.fragment.c();
|
|
449
|
-
t.intro &&
|
|
449
|
+
t.intro && $t(e.$$.fragment), Lr(e, t.target, t.anchor), R();
|
|
450
450
|
}
|
|
451
|
-
|
|
451
|
+
se(l);
|
|
452
452
|
}
|
|
453
|
-
let
|
|
454
|
-
typeof HTMLElement == "function" && (
|
|
453
|
+
let Dt;
|
|
454
|
+
typeof HTMLElement == "function" && (Dt = class extends HTMLElement {
|
|
455
455
|
/** The Svelte component constructor */
|
|
456
456
|
$$ctor;
|
|
457
457
|
/** Slots */
|
|
@@ -493,14 +493,14 @@ typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
|
|
493
493
|
let o;
|
|
494
494
|
return {
|
|
495
495
|
c: function() {
|
|
496
|
-
o = L("slot"), i !== "default" &&
|
|
496
|
+
o = L("slot"), i !== "default" && j(o, "name", i);
|
|
497
497
|
},
|
|
498
498
|
/**
|
|
499
499
|
* @param {HTMLElement} target
|
|
500
500
|
* @param {HTMLElement} [anchor]
|
|
501
501
|
*/
|
|
502
502
|
m: function(l, u) {
|
|
503
|
-
|
|
503
|
+
k(l, o, u);
|
|
504
504
|
},
|
|
505
505
|
d: function(l) {
|
|
506
506
|
l && $(o);
|
|
@@ -510,12 +510,12 @@ typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
|
|
510
510
|
};
|
|
511
511
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
512
512
|
return;
|
|
513
|
-
const t = {}, r =
|
|
513
|
+
const t = {}, r = Ar(this);
|
|
514
514
|
for (const i of this.$$s)
|
|
515
515
|
i in r && (t[i] = [e(i)]);
|
|
516
516
|
for (const i of this.attributes) {
|
|
517
517
|
const o = this.$$g_p(i.name);
|
|
518
|
-
o in this.$$d || (this.$$d[o] =
|
|
518
|
+
o in this.$$d || (this.$$d[o] = ye(o, i.value, this.$$p_d, "toProp"));
|
|
519
519
|
}
|
|
520
520
|
for (const i in this.$$p_d)
|
|
521
521
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -533,7 +533,7 @@ typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
|
|
533
533
|
this.$$r = !0;
|
|
534
534
|
for (const i in this.$$p_d)
|
|
535
535
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
536
|
-
const o =
|
|
536
|
+
const o = ye(
|
|
537
537
|
i,
|
|
538
538
|
this.$$d[i],
|
|
539
539
|
this.$$p_d,
|
|
@@ -555,7 +555,7 @@ typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
|
|
555
555
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
556
556
|
// and setting attributes through setAttribute etc, this is helpful
|
|
557
557
|
attributeChangedCallback(e, t, r) {
|
|
558
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
558
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ye(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
559
559
|
}
|
|
560
560
|
disconnectedCallback() {
|
|
561
561
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -568,7 +568,7 @@ typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
|
|
568
568
|
) || e;
|
|
569
569
|
}
|
|
570
570
|
});
|
|
571
|
-
function
|
|
571
|
+
function ye(e, t, r, n) {
|
|
572
572
|
const i = r[e]?.type;
|
|
573
573
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
574
574
|
return t;
|
|
@@ -597,8 +597,8 @@ function ge(e, t, r, n) {
|
|
|
597
597
|
return t;
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
let a = class extends
|
|
600
|
+
function $r(e, t, r, n, i, o) {
|
|
601
|
+
let a = class extends Dt {
|
|
602
602
|
constructor() {
|
|
603
603
|
super(e, r, i), this.$$p_d = t;
|
|
604
604
|
}
|
|
@@ -614,7 +614,7 @@ function jr(e, t, r, n, i, o) {
|
|
|
614
614
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
615
615
|
},
|
|
616
616
|
set(l) {
|
|
617
|
-
l =
|
|
617
|
+
l = ye(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
|
|
618
618
|
}
|
|
619
619
|
});
|
|
620
620
|
}), n.forEach((s) => {
|
|
@@ -626,7 +626,7 @@ function jr(e, t, r, n, i, o) {
|
|
|
626
626
|
}), e.element = /** @type {any} */
|
|
627
627
|
a, a;
|
|
628
628
|
}
|
|
629
|
-
class
|
|
629
|
+
class Dr {
|
|
630
630
|
/**
|
|
631
631
|
* ### PRIVATE API
|
|
632
632
|
*
|
|
@@ -645,7 +645,7 @@ class kr {
|
|
|
645
645
|
$$set = void 0;
|
|
646
646
|
/** @returns {void} */
|
|
647
647
|
$destroy() {
|
|
648
|
-
|
|
648
|
+
Nr(this, 1), this.$destroy = P;
|
|
649
649
|
}
|
|
650
650
|
/**
|
|
651
651
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -654,7 +654,7 @@ class kr {
|
|
|
654
654
|
* @returns {() => void}
|
|
655
655
|
*/
|
|
656
656
|
$on(t, r) {
|
|
657
|
-
if (!
|
|
657
|
+
if (!we(r))
|
|
658
658
|
return P;
|
|
659
659
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
660
660
|
return n.push(r), () => {
|
|
@@ -667,37 +667,37 @@ class kr {
|
|
|
667
667
|
* @returns {void}
|
|
668
668
|
*/
|
|
669
669
|
$set(t) {
|
|
670
|
-
this.$$set && !
|
|
670
|
+
this.$$set && !gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
|
-
const
|
|
674
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
675
|
-
var
|
|
676
|
-
return
|
|
673
|
+
const Ur = "4";
|
|
674
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ur);
|
|
675
|
+
var Ue = function(e, t) {
|
|
676
|
+
return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
677
677
|
r.__proto__ = n;
|
|
678
678
|
} || function(r, n) {
|
|
679
679
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
680
|
-
},
|
|
680
|
+
}, Ue(e, t);
|
|
681
681
|
};
|
|
682
682
|
function U(e, t) {
|
|
683
683
|
if (typeof t != "function" && t !== null)
|
|
684
684
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
685
|
-
|
|
685
|
+
Ue(e, t);
|
|
686
686
|
function r() {
|
|
687
687
|
this.constructor = e;
|
|
688
688
|
}
|
|
689
689
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
690
690
|
}
|
|
691
|
-
var
|
|
692
|
-
return
|
|
691
|
+
var _ = function() {
|
|
692
|
+
return _ = Object.assign || function(t) {
|
|
693
693
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
694
694
|
r = arguments[n];
|
|
695
695
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
696
696
|
}
|
|
697
697
|
return t;
|
|
698
|
-
},
|
|
698
|
+
}, _.apply(this, arguments);
|
|
699
699
|
};
|
|
700
|
-
function
|
|
700
|
+
function Gr(e, t) {
|
|
701
701
|
var r = {};
|
|
702
702
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
703
703
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -705,7 +705,7 @@ function Xr(e, t) {
|
|
|
705
705
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
706
706
|
return r;
|
|
707
707
|
}
|
|
708
|
-
function
|
|
708
|
+
function Ge(e) {
|
|
709
709
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
710
710
|
if (r) return r.call(e);
|
|
711
711
|
if (e && typeof e.length == "number") return {
|
|
@@ -715,7 +715,7 @@ function je(e) {
|
|
|
715
715
|
};
|
|
716
716
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
717
717
|
}
|
|
718
|
-
function
|
|
718
|
+
function Fe(e, t) {
|
|
719
719
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
720
720
|
if (!r) return e;
|
|
721
721
|
var n = r.call(e), i, o = [], a;
|
|
@@ -732,7 +732,7 @@ function ke(e, t) {
|
|
|
732
732
|
}
|
|
733
733
|
return o;
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function q(e, t, r) {
|
|
736
736
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
737
737
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
738
738
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
@@ -740,13 +740,13 @@ function Y(e, t, r) {
|
|
|
740
740
|
function D(e) {
|
|
741
741
|
return typeof e == "function";
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function Ut(e) {
|
|
744
744
|
var t = function(n) {
|
|
745
745
|
Error.call(n), n.stack = new Error().stack;
|
|
746
746
|
}, r = e(t);
|
|
747
747
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
748
748
|
}
|
|
749
|
-
var
|
|
749
|
+
var Oe = Ut(function(e) {
|
|
750
750
|
return function(r) {
|
|
751
751
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
752
752
|
` + r.map(function(n, i) {
|
|
@@ -755,13 +755,13 @@ var Ie = kt(function(e) {
|
|
|
755
755
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
756
756
|
};
|
|
757
757
|
});
|
|
758
|
-
function
|
|
758
|
+
function je(e, t) {
|
|
759
759
|
if (e) {
|
|
760
760
|
var r = e.indexOf(t);
|
|
761
761
|
0 <= r && e.splice(r, 1);
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
|
-
var
|
|
764
|
+
var Se = function() {
|
|
765
765
|
function e(t) {
|
|
766
766
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
767
767
|
}
|
|
@@ -773,7 +773,7 @@ var Te = function() {
|
|
|
773
773
|
if (a)
|
|
774
774
|
if (this._parentage = null, Array.isArray(a))
|
|
775
775
|
try {
|
|
776
|
-
for (var s =
|
|
776
|
+
for (var s = Ge(a), l = s.next(); !l.done; l = s.next()) {
|
|
777
777
|
var u = l.value;
|
|
778
778
|
u.remove(this);
|
|
779
779
|
}
|
|
@@ -793,38 +793,38 @@ var Te = function() {
|
|
|
793
793
|
try {
|
|
794
794
|
h();
|
|
795
795
|
} catch (g) {
|
|
796
|
-
o = g instanceof
|
|
796
|
+
o = g instanceof Oe ? g.errors : [g];
|
|
797
797
|
}
|
|
798
798
|
var f = this._finalizers;
|
|
799
799
|
if (f) {
|
|
800
800
|
this._finalizers = null;
|
|
801
801
|
try {
|
|
802
|
-
for (var c =
|
|
803
|
-
var b =
|
|
802
|
+
for (var c = Ge(f), m = c.next(); !m.done; m = c.next()) {
|
|
803
|
+
var b = m.value;
|
|
804
804
|
try {
|
|
805
|
-
|
|
805
|
+
ot(b);
|
|
806
806
|
} catch (g) {
|
|
807
|
-
o = o ?? [], g instanceof
|
|
807
|
+
o = o ?? [], g instanceof Oe ? o = q(q([], Fe(o)), Fe(g.errors)) : o.push(g);
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
810
|
} catch (g) {
|
|
811
811
|
n = { error: g };
|
|
812
812
|
} finally {
|
|
813
813
|
try {
|
|
814
|
-
|
|
814
|
+
m && !m.done && (i = c.return) && i.call(c);
|
|
815
815
|
} finally {
|
|
816
816
|
if (n) throw n.error;
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
820
|
if (o)
|
|
821
|
-
throw new
|
|
821
|
+
throw new Oe(o);
|
|
822
822
|
}
|
|
823
823
|
}, e.prototype.add = function(t) {
|
|
824
824
|
var r;
|
|
825
825
|
if (t && t !== this)
|
|
826
826
|
if (this.closed)
|
|
827
|
-
|
|
827
|
+
ot(t);
|
|
828
828
|
else {
|
|
829
829
|
if (t instanceof e) {
|
|
830
830
|
if (t.closed || t._hasParent(this))
|
|
@@ -841,56 +841,52 @@ var Te = function() {
|
|
|
841
841
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
842
842
|
}, e.prototype._removeParent = function(t) {
|
|
843
843
|
var r = this._parentage;
|
|
844
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
844
|
+
r === t ? this._parentage = null : Array.isArray(r) && je(r, t);
|
|
845
845
|
}, e.prototype.remove = function(t) {
|
|
846
846
|
var r = this._finalizers;
|
|
847
|
-
r &&
|
|
847
|
+
r && je(r, t), t instanceof e && t._removeParent(this);
|
|
848
848
|
}, e.EMPTY = function() {
|
|
849
849
|
var t = new e();
|
|
850
850
|
return t.closed = !0, t;
|
|
851
851
|
}(), e;
|
|
852
|
-
}(),
|
|
853
|
-
function
|
|
854
|
-
return e instanceof
|
|
852
|
+
}(), Gt = Se.EMPTY;
|
|
853
|
+
function Ft(e) {
|
|
854
|
+
return e instanceof Se || e && "closed" in e && D(e.remove) && D(e.add) && D(e.unsubscribe);
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function ot(e) {
|
|
857
857
|
D(e) ? e() : e.unsubscribe();
|
|
858
858
|
}
|
|
859
|
-
var
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
Promise: void 0,
|
|
863
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
864
|
-
useDeprecatedNextContext: !1
|
|
865
|
-
}, Wr = {
|
|
859
|
+
var Fr = {
|
|
860
|
+
Promise: void 0
|
|
861
|
+
}, jr = {
|
|
866
862
|
setTimeout: function(e, t) {
|
|
867
863
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
868
864
|
r[n - 2] = arguments[n];
|
|
869
|
-
return setTimeout.apply(void 0,
|
|
865
|
+
return setTimeout.apply(void 0, q([e, t], Fe(r)));
|
|
870
866
|
},
|
|
871
867
|
clearTimeout: function(e) {
|
|
872
868
|
return clearTimeout(e);
|
|
873
869
|
},
|
|
874
870
|
delegate: void 0
|
|
875
871
|
};
|
|
876
|
-
function
|
|
877
|
-
|
|
872
|
+
function kr(e) {
|
|
873
|
+
jr.setTimeout(function() {
|
|
878
874
|
throw e;
|
|
879
875
|
});
|
|
880
876
|
}
|
|
881
|
-
function
|
|
877
|
+
function st() {
|
|
882
878
|
}
|
|
883
|
-
function
|
|
879
|
+
function ge(e) {
|
|
884
880
|
e();
|
|
885
881
|
}
|
|
886
|
-
var
|
|
882
|
+
var jt = function(e) {
|
|
887
883
|
U(t, e);
|
|
888
884
|
function t(r) {
|
|
889
885
|
var n = e.call(this) || this;
|
|
890
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
886
|
+
return n.isStopped = !1, r ? (n.destination = r, Ft(r) && r.add(n)) : n.destination = Wr, n;
|
|
891
887
|
}
|
|
892
888
|
return t.create = function(r, n, i) {
|
|
893
|
-
return new
|
|
889
|
+
return new ke(r, n, i);
|
|
894
890
|
}, t.prototype.next = function(r) {
|
|
895
891
|
this.isStopped || this._next(r);
|
|
896
892
|
}, t.prototype.error = function(r) {
|
|
@@ -914,11 +910,7 @@ var zt = function(e) {
|
|
|
914
910
|
this.unsubscribe();
|
|
915
911
|
}
|
|
916
912
|
}, t;
|
|
917
|
-
}(
|
|
918
|
-
function Ce(e, t) {
|
|
919
|
-
return qr.call(e, t);
|
|
920
|
-
}
|
|
921
|
-
var Zr = function() {
|
|
913
|
+
}(Se), Vr = function() {
|
|
922
914
|
function e(t) {
|
|
923
915
|
this.partialObserver = t;
|
|
924
916
|
}
|
|
@@ -928,7 +920,7 @@ var Zr = function() {
|
|
|
928
920
|
try {
|
|
929
921
|
r.next(t);
|
|
930
922
|
} catch (n) {
|
|
931
|
-
|
|
923
|
+
pe(n);
|
|
932
924
|
}
|
|
933
925
|
}, e.prototype.error = function(t) {
|
|
934
926
|
var r = this.partialObserver;
|
|
@@ -936,68 +928,56 @@ var Zr = function() {
|
|
|
936
928
|
try {
|
|
937
929
|
r.error(t);
|
|
938
930
|
} catch (n) {
|
|
939
|
-
|
|
931
|
+
pe(n);
|
|
940
932
|
}
|
|
941
933
|
else
|
|
942
|
-
|
|
934
|
+
pe(t);
|
|
943
935
|
}, e.prototype.complete = function() {
|
|
944
936
|
var t = this.partialObserver;
|
|
945
937
|
if (t.complete)
|
|
946
938
|
try {
|
|
947
939
|
t.complete();
|
|
948
940
|
} catch (r) {
|
|
949
|
-
|
|
941
|
+
pe(r);
|
|
950
942
|
}
|
|
951
943
|
}, e;
|
|
952
|
-
}(),
|
|
944
|
+
}(), ke = function(e) {
|
|
953
945
|
U(t, e);
|
|
954
946
|
function t(r, n, i) {
|
|
955
947
|
var o = e.call(this) || this, a;
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
};
|
|
962
|
-
else {
|
|
963
|
-
var s;
|
|
964
|
-
o && Wt.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
965
|
-
return o.unsubscribe();
|
|
966
|
-
}, a = {
|
|
967
|
-
next: r.next && Ce(r.next, s),
|
|
968
|
-
error: r.error && Ce(r.error, s),
|
|
969
|
-
complete: r.complete && Ce(r.complete, s)
|
|
970
|
-
}) : a = r;
|
|
971
|
-
}
|
|
972
|
-
return o.destination = new Zr(a), o;
|
|
948
|
+
return D(r) || !r ? a = {
|
|
949
|
+
next: r ?? void 0,
|
|
950
|
+
error: n ?? void 0,
|
|
951
|
+
complete: i ?? void 0
|
|
952
|
+
} : a = r, o.destination = new Vr(a), o;
|
|
973
953
|
}
|
|
974
954
|
return t;
|
|
975
|
-
}(
|
|
976
|
-
function
|
|
977
|
-
|
|
955
|
+
}(jt);
|
|
956
|
+
function pe(e) {
|
|
957
|
+
kr(e);
|
|
978
958
|
}
|
|
979
|
-
function
|
|
959
|
+
function Xr(e) {
|
|
980
960
|
throw e;
|
|
981
961
|
}
|
|
982
|
-
var
|
|
962
|
+
var Wr = {
|
|
983
963
|
closed: !0,
|
|
984
|
-
next:
|
|
985
|
-
error:
|
|
986
|
-
complete:
|
|
987
|
-
},
|
|
964
|
+
next: st,
|
|
965
|
+
error: Xr,
|
|
966
|
+
complete: st
|
|
967
|
+
}, zr = function() {
|
|
988
968
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
989
969
|
}();
|
|
990
|
-
function
|
|
970
|
+
function Zr(e) {
|
|
991
971
|
return e;
|
|
992
972
|
}
|
|
993
|
-
function
|
|
994
|
-
return e.length === 0 ?
|
|
973
|
+
function Qr(e) {
|
|
974
|
+
return e.length === 0 ? Zr : e.length === 1 ? e[0] : function(r) {
|
|
995
975
|
return e.reduce(function(n, i) {
|
|
996
976
|
return i(n);
|
|
997
977
|
}, r);
|
|
998
978
|
};
|
|
999
979
|
}
|
|
1000
|
-
var
|
|
980
|
+
var at = function() {
|
|
1001
981
|
function e(t) {
|
|
1002
982
|
t && (this._subscribe = t);
|
|
1003
983
|
}
|
|
@@ -1005,8 +985,8 @@ var ct = function() {
|
|
|
1005
985
|
var r = new e();
|
|
1006
986
|
return r.source = this, r.operator = t, r;
|
|
1007
987
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
1008
|
-
var i = this, o =
|
|
1009
|
-
return
|
|
988
|
+
var i = this, o = qr(t) ? t : new ke(t, r, n);
|
|
989
|
+
return ge(function() {
|
|
1010
990
|
var a = i, s = a.operator, l = a.source;
|
|
1011
991
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
1012
992
|
}), o;
|
|
@@ -1018,8 +998,8 @@ var ct = function() {
|
|
|
1018
998
|
}
|
|
1019
999
|
}, e.prototype.forEach = function(t, r) {
|
|
1020
1000
|
var n = this;
|
|
1021
|
-
return r =
|
|
1022
|
-
var a = new
|
|
1001
|
+
return r = ut(r), new r(function(i, o) {
|
|
1002
|
+
var a = new ke({
|
|
1023
1003
|
next: function(s) {
|
|
1024
1004
|
try {
|
|
1025
1005
|
t(s);
|
|
@@ -1035,15 +1015,15 @@ var ct = function() {
|
|
|
1035
1015
|
}, e.prototype._subscribe = function(t) {
|
|
1036
1016
|
var r;
|
|
1037
1017
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
1038
|
-
}, e.prototype[
|
|
1018
|
+
}, e.prototype[zr] = function() {
|
|
1039
1019
|
return this;
|
|
1040
1020
|
}, e.prototype.pipe = function() {
|
|
1041
1021
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
1042
1022
|
t[r] = arguments[r];
|
|
1043
|
-
return
|
|
1023
|
+
return Qr(t)(this);
|
|
1044
1024
|
}, e.prototype.toPromise = function(t) {
|
|
1045
1025
|
var r = this;
|
|
1046
|
-
return t =
|
|
1026
|
+
return t = ut(t), new t(function(n, i) {
|
|
1047
1027
|
var o;
|
|
1048
1028
|
r.subscribe(function(a) {
|
|
1049
1029
|
return o = a;
|
|
@@ -1057,40 +1037,40 @@ var ct = function() {
|
|
|
1057
1037
|
return new e(t);
|
|
1058
1038
|
}, e;
|
|
1059
1039
|
}();
|
|
1060
|
-
function
|
|
1040
|
+
function ut(e) {
|
|
1061
1041
|
var t;
|
|
1062
|
-
return (t = e ??
|
|
1042
|
+
return (t = e ?? Fr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1063
1043
|
}
|
|
1064
|
-
function
|
|
1044
|
+
function Jr(e) {
|
|
1065
1045
|
return e && D(e.next) && D(e.error) && D(e.complete);
|
|
1066
1046
|
}
|
|
1067
|
-
function
|
|
1068
|
-
return e && e instanceof
|
|
1047
|
+
function qr(e) {
|
|
1048
|
+
return e && e instanceof jt || Jr(e) && Ft(e);
|
|
1069
1049
|
}
|
|
1070
|
-
var
|
|
1050
|
+
var Yr = Ut(function(e) {
|
|
1071
1051
|
return function() {
|
|
1072
1052
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1073
1053
|
};
|
|
1074
|
-
}),
|
|
1054
|
+
}), kt = function(e) {
|
|
1075
1055
|
U(t, e);
|
|
1076
1056
|
function t() {
|
|
1077
1057
|
var r = e.call(this) || this;
|
|
1078
1058
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
1079
1059
|
}
|
|
1080
1060
|
return t.prototype.lift = function(r) {
|
|
1081
|
-
var n = new
|
|
1061
|
+
var n = new lt(this, this);
|
|
1082
1062
|
return n.operator = r, n;
|
|
1083
1063
|
}, t.prototype._throwIfClosed = function() {
|
|
1084
1064
|
if (this.closed)
|
|
1085
|
-
throw new
|
|
1065
|
+
throw new Yr();
|
|
1086
1066
|
}, t.prototype.next = function(r) {
|
|
1087
1067
|
var n = this;
|
|
1088
|
-
|
|
1068
|
+
ge(function() {
|
|
1089
1069
|
var i, o;
|
|
1090
1070
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
1091
1071
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
1092
1072
|
try {
|
|
1093
|
-
for (var a =
|
|
1073
|
+
for (var a = Ge(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
1094
1074
|
var l = s.value;
|
|
1095
1075
|
l.next(r);
|
|
1096
1076
|
}
|
|
@@ -1107,7 +1087,7 @@ var nn = kt(function(e) {
|
|
|
1107
1087
|
});
|
|
1108
1088
|
}, t.prototype.error = function(r) {
|
|
1109
1089
|
var n = this;
|
|
1110
|
-
|
|
1090
|
+
ge(function() {
|
|
1111
1091
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
1112
1092
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
1113
1093
|
for (var i = n.observers; i.length; )
|
|
@@ -1116,7 +1096,7 @@ var nn = kt(function(e) {
|
|
|
1116
1096
|
});
|
|
1117
1097
|
}, t.prototype.complete = function() {
|
|
1118
1098
|
var r = this;
|
|
1119
|
-
|
|
1099
|
+
ge(function() {
|
|
1120
1100
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
1121
1101
|
r.isStopped = !0;
|
|
1122
1102
|
for (var n = r.observers; n.length; )
|
|
@@ -1138,19 +1118,19 @@ var nn = kt(function(e) {
|
|
|
1138
1118
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1139
1119
|
}, t.prototype._innerSubscribe = function(r) {
|
|
1140
1120
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
1141
|
-
return o || a ?
|
|
1142
|
-
n.currentObservers = null,
|
|
1121
|
+
return o || a ? Gt : (this.currentObservers = null, s.push(r), new Se(function() {
|
|
1122
|
+
n.currentObservers = null, je(s, r);
|
|
1143
1123
|
}));
|
|
1144
1124
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1145
1125
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
1146
1126
|
i ? r.error(o) : a && r.complete();
|
|
1147
1127
|
}, t.prototype.asObservable = function() {
|
|
1148
|
-
var r = new
|
|
1128
|
+
var r = new at();
|
|
1149
1129
|
return r.source = this, r;
|
|
1150
1130
|
}, t.create = function(r, n) {
|
|
1151
|
-
return new
|
|
1131
|
+
return new lt(r, n);
|
|
1152
1132
|
}, t;
|
|
1153
|
-
}(
|
|
1133
|
+
}(at), lt = function(e) {
|
|
1154
1134
|
U(t, e);
|
|
1155
1135
|
function t(r, n) {
|
|
1156
1136
|
var i = e.call(this) || this;
|
|
@@ -1167,17 +1147,17 @@ var nn = kt(function(e) {
|
|
|
1167
1147
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1168
1148
|
}, t.prototype._subscribe = function(r) {
|
|
1169
1149
|
var n, i;
|
|
1170
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1150
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Gt;
|
|
1171
1151
|
}, t;
|
|
1172
|
-
}(
|
|
1152
|
+
}(kt), Vt = {
|
|
1173
1153
|
now: function() {
|
|
1174
|
-
return (
|
|
1154
|
+
return (Vt.delegate || Date).now();
|
|
1175
1155
|
},
|
|
1176
1156
|
delegate: void 0
|
|
1177
|
-
},
|
|
1157
|
+
}, Kr = function(e) {
|
|
1178
1158
|
U(t, e);
|
|
1179
1159
|
function t(r, n, i) {
|
|
1180
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1160
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Vt);
|
|
1181
1161
|
var o = e.call(this) || this;
|
|
1182
1162
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
1183
1163
|
}
|
|
@@ -1197,24 +1177,24 @@ var nn = kt(function(e) {
|
|
|
1197
1177
|
u && o.splice(0, u + 1);
|
|
1198
1178
|
}
|
|
1199
1179
|
}, t;
|
|
1200
|
-
}(
|
|
1201
|
-
const
|
|
1202
|
-
if (
|
|
1203
|
-
const r = new
|
|
1204
|
-
|
|
1180
|
+
}(kt);
|
|
1181
|
+
const ht = [], ct = {}, en = (e, t = 0) => {
|
|
1182
|
+
if (ht.indexOf(e) == -1) {
|
|
1183
|
+
const r = new Kr(t);
|
|
1184
|
+
ct[e] = r, ht.push(e);
|
|
1205
1185
|
}
|
|
1206
|
-
return
|
|
1186
|
+
return ct[e];
|
|
1207
1187
|
}, Z = [];
|
|
1208
|
-
function
|
|
1188
|
+
function tn(e, t) {
|
|
1209
1189
|
return {
|
|
1210
|
-
subscribe:
|
|
1190
|
+
subscribe: Te(e, t).subscribe
|
|
1211
1191
|
};
|
|
1212
1192
|
}
|
|
1213
|
-
function
|
|
1193
|
+
function Te(e, t = P) {
|
|
1214
1194
|
let r;
|
|
1215
1195
|
const n = /* @__PURE__ */ new Set();
|
|
1216
1196
|
function i(s) {
|
|
1217
|
-
if (
|
|
1197
|
+
if (It(e, s) && (e = s, r)) {
|
|
1218
1198
|
const l = !Z.length;
|
|
1219
1199
|
for (const u of n)
|
|
1220
1200
|
u[1](), Z.push(u, e);
|
|
@@ -1236,12 +1216,12 @@ function He(e, t = P) {
|
|
|
1236
1216
|
}
|
|
1237
1217
|
return { set: i, update: o, subscribe: a };
|
|
1238
1218
|
}
|
|
1239
|
-
function
|
|
1219
|
+
function re(e, t, r) {
|
|
1240
1220
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1241
1221
|
if (!i.every(Boolean))
|
|
1242
1222
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1243
1223
|
const o = t.length < 2;
|
|
1244
|
-
return
|
|
1224
|
+
return tn(r, (a, s) => {
|
|
1245
1225
|
let l = !1;
|
|
1246
1226
|
const u = [];
|
|
1247
1227
|
let h = 0, f = P;
|
|
@@ -1250,9 +1230,9 @@ function ne(e, t, r) {
|
|
|
1250
1230
|
return;
|
|
1251
1231
|
f();
|
|
1252
1232
|
const b = t(n ? u[0] : u, a, s);
|
|
1253
|
-
o ? a(b) : f =
|
|
1254
|
-
},
|
|
1255
|
-
(b, g) =>
|
|
1233
|
+
o ? a(b) : f = we(b) ? b : P;
|
|
1234
|
+
}, m = i.map(
|
|
1235
|
+
(b, g) => Ct(
|
|
1256
1236
|
b,
|
|
1257
1237
|
(w) => {
|
|
1258
1238
|
u[g] = w, h &= ~(1 << g), l && c();
|
|
@@ -1263,134 +1243,132 @@ function ne(e, t, r) {
|
|
|
1263
1243
|
)
|
|
1264
1244
|
);
|
|
1265
1245
|
return l = !0, c(), function() {
|
|
1266
|
-
X(
|
|
1246
|
+
X(m), f(), l = !1;
|
|
1267
1247
|
};
|
|
1268
1248
|
});
|
|
1269
1249
|
}
|
|
1270
|
-
function
|
|
1250
|
+
function rn(e) {
|
|
1271
1251
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1272
1252
|
}
|
|
1273
|
-
var
|
|
1274
|
-
return
|
|
1253
|
+
var nn = function(t) {
|
|
1254
|
+
return on(t) && !sn(t);
|
|
1275
1255
|
};
|
|
1276
|
-
function
|
|
1256
|
+
function on(e) {
|
|
1277
1257
|
return !!e && typeof e == "object";
|
|
1278
1258
|
}
|
|
1279
|
-
function
|
|
1259
|
+
function sn(e) {
|
|
1280
1260
|
var t = Object.prototype.toString.call(e);
|
|
1281
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1261
|
+
return t === "[object RegExp]" || t === "[object Date]" || ln(e);
|
|
1282
1262
|
}
|
|
1283
|
-
var
|
|
1284
|
-
function
|
|
1285
|
-
return e.$$typeof ===
|
|
1263
|
+
var an = typeof Symbol == "function" && Symbol.for, un = an ? Symbol.for("react.element") : 60103;
|
|
1264
|
+
function ln(e) {
|
|
1265
|
+
return e.$$typeof === un;
|
|
1286
1266
|
}
|
|
1287
|
-
function
|
|
1267
|
+
function hn(e) {
|
|
1288
1268
|
return Array.isArray(e) ? [] : {};
|
|
1289
1269
|
}
|
|
1290
|
-
function
|
|
1291
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1270
|
+
function ue(e, t) {
|
|
1271
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Y(hn(e), e, t) : e;
|
|
1292
1272
|
}
|
|
1293
|
-
function
|
|
1273
|
+
function cn(e, t, r) {
|
|
1294
1274
|
return e.concat(t).map(function(n) {
|
|
1295
|
-
return
|
|
1275
|
+
return ue(n, r);
|
|
1296
1276
|
});
|
|
1297
1277
|
}
|
|
1298
|
-
function
|
|
1278
|
+
function fn(e, t) {
|
|
1299
1279
|
if (!t.customMerge)
|
|
1300
|
-
return
|
|
1280
|
+
return Y;
|
|
1301
1281
|
var r = t.customMerge(e);
|
|
1302
|
-
return typeof r == "function" ? r :
|
|
1282
|
+
return typeof r == "function" ? r : Y;
|
|
1303
1283
|
}
|
|
1304
|
-
function
|
|
1284
|
+
function dn(e) {
|
|
1305
1285
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1306
1286
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1307
1287
|
}) : [];
|
|
1308
1288
|
}
|
|
1309
|
-
function
|
|
1310
|
-
return Object.keys(e).concat(
|
|
1289
|
+
function ft(e) {
|
|
1290
|
+
return Object.keys(e).concat(dn(e));
|
|
1311
1291
|
}
|
|
1312
|
-
function
|
|
1292
|
+
function Xt(e, t) {
|
|
1313
1293
|
try {
|
|
1314
1294
|
return t in e;
|
|
1315
1295
|
} catch {
|
|
1316
1296
|
return !1;
|
|
1317
1297
|
}
|
|
1318
1298
|
}
|
|
1319
|
-
function
|
|
1320
|
-
return
|
|
1299
|
+
function pn(e, t) {
|
|
1300
|
+
return Xt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1321
1301
|
}
|
|
1322
|
-
function
|
|
1302
|
+
function mn(e, t, r) {
|
|
1323
1303
|
var n = {};
|
|
1324
|
-
return r.isMergeableObject(e) &&
|
|
1325
|
-
n[i] =
|
|
1326
|
-
}),
|
|
1327
|
-
|
|
1304
|
+
return r.isMergeableObject(e) && ft(e).forEach(function(i) {
|
|
1305
|
+
n[i] = ue(e[i], r);
|
|
1306
|
+
}), ft(t).forEach(function(i) {
|
|
1307
|
+
pn(e, i) || (Xt(e, i) && r.isMergeableObject(t[i]) ? n[i] = fn(i, r)(e[i], t[i], r) : n[i] = ue(t[i], r));
|
|
1328
1308
|
}), n;
|
|
1329
1309
|
}
|
|
1330
|
-
function
|
|
1331
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1310
|
+
function Y(e, t, r) {
|
|
1311
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || cn, r.isMergeableObject = r.isMergeableObject || nn, r.cloneUnlessOtherwiseSpecified = ue;
|
|
1332
1312
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1333
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1313
|
+
return o ? n ? r.arrayMerge(e, t, r) : mn(e, t, r) : ue(t, r);
|
|
1334
1314
|
}
|
|
1335
|
-
|
|
1315
|
+
Y.all = function(t, r) {
|
|
1336
1316
|
if (!Array.isArray(t))
|
|
1337
1317
|
throw new Error("first argument should be an array");
|
|
1338
1318
|
return t.reduce(function(n, i) {
|
|
1339
|
-
return
|
|
1319
|
+
return Y(n, i, r);
|
|
1340
1320
|
}, {});
|
|
1341
1321
|
};
|
|
1342
|
-
var
|
|
1343
|
-
const
|
|
1344
|
-
function
|
|
1345
|
-
var r = t && t.cache ? t.cache :
|
|
1322
|
+
var bn = Y, yn = bn;
|
|
1323
|
+
const gn = /* @__PURE__ */ rn(yn);
|
|
1324
|
+
function Ie(e, t) {
|
|
1325
|
+
var r = t && t.cache ? t.cache : Tn, n = t && t.serializer ? t.serializer : wn, i = t && t.strategy ? t.strategy : En;
|
|
1346
1326
|
return i(e, {
|
|
1347
1327
|
cache: r,
|
|
1348
1328
|
serializer: n
|
|
1349
1329
|
});
|
|
1350
1330
|
}
|
|
1351
|
-
function
|
|
1331
|
+
function vn(e) {
|
|
1352
1332
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1353
1333
|
}
|
|
1354
|
-
function
|
|
1355
|
-
var i =
|
|
1334
|
+
function _n(e, t, r, n) {
|
|
1335
|
+
var i = vn(n) ? n : r(n), o = t.get(i);
|
|
1356
1336
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1357
1337
|
}
|
|
1358
|
-
function
|
|
1338
|
+
function Wt(e, t, r) {
|
|
1359
1339
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1360
1340
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1361
1341
|
}
|
|
1362
|
-
function
|
|
1342
|
+
function zt(e, t, r, n, i) {
|
|
1363
1343
|
return r.bind(t, e, n, i);
|
|
1364
1344
|
}
|
|
1365
|
-
function
|
|
1366
|
-
var r = e.length === 1 ?
|
|
1367
|
-
return
|
|
1345
|
+
function En(e, t) {
|
|
1346
|
+
var r = e.length === 1 ? _n : Wt;
|
|
1347
|
+
return zt(e, this, r, t.cache.create(), t.serializer);
|
|
1368
1348
|
}
|
|
1369
|
-
function
|
|
1370
|
-
return
|
|
1349
|
+
function xn(e, t) {
|
|
1350
|
+
return zt(e, this, Wt, t.cache.create(), t.serializer);
|
|
1371
1351
|
}
|
|
1372
|
-
function
|
|
1373
|
-
return tt(e, this, Jt, t.cache.create(), t.serializer);
|
|
1374
|
-
}
|
|
1375
|
-
var Pn = function() {
|
|
1352
|
+
var wn = function() {
|
|
1376
1353
|
return JSON.stringify(arguments);
|
|
1377
|
-
}
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1354
|
+
}, Sn = (
|
|
1355
|
+
/** @class */
|
|
1356
|
+
function() {
|
|
1357
|
+
function e() {
|
|
1358
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1359
|
+
}
|
|
1360
|
+
return e.prototype.get = function(t) {
|
|
1361
|
+
return this.cache[t];
|
|
1362
|
+
}, e.prototype.set = function(t, r) {
|
|
1363
|
+
this.cache[t] = r;
|
|
1364
|
+
}, e;
|
|
1365
|
+
}()
|
|
1366
|
+
), Tn = {
|
|
1388
1367
|
create: function() {
|
|
1389
|
-
return new
|
|
1368
|
+
return new Sn();
|
|
1390
1369
|
}
|
|
1391
|
-
},
|
|
1392
|
-
variadic:
|
|
1393
|
-
monadic: Bn
|
|
1370
|
+
}, Ce = {
|
|
1371
|
+
variadic: xn
|
|
1394
1372
|
}, y;
|
|
1395
1373
|
(function(e) {
|
|
1396
1374
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
@@ -1399,47 +1377,47 @@ var E;
|
|
|
1399
1377
|
(function(e) {
|
|
1400
1378
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1401
1379
|
})(E || (E = {}));
|
|
1402
|
-
var
|
|
1380
|
+
var K;
|
|
1403
1381
|
(function(e) {
|
|
1404
1382
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1405
|
-
})(
|
|
1406
|
-
function
|
|
1383
|
+
})(K || (K = {}));
|
|
1384
|
+
function dt(e) {
|
|
1407
1385
|
return e.type === E.literal;
|
|
1408
1386
|
}
|
|
1409
|
-
function
|
|
1387
|
+
function Hn(e) {
|
|
1410
1388
|
return e.type === E.argument;
|
|
1411
1389
|
}
|
|
1412
|
-
function
|
|
1390
|
+
function Zt(e) {
|
|
1413
1391
|
return e.type === E.number;
|
|
1414
1392
|
}
|
|
1415
|
-
function
|
|
1393
|
+
function Qt(e) {
|
|
1416
1394
|
return e.type === E.date;
|
|
1417
1395
|
}
|
|
1418
|
-
function
|
|
1396
|
+
function Jt(e) {
|
|
1419
1397
|
return e.type === E.time;
|
|
1420
1398
|
}
|
|
1421
|
-
function
|
|
1399
|
+
function qt(e) {
|
|
1422
1400
|
return e.type === E.select;
|
|
1423
1401
|
}
|
|
1424
|
-
function
|
|
1402
|
+
function Yt(e) {
|
|
1425
1403
|
return e.type === E.plural;
|
|
1426
1404
|
}
|
|
1427
|
-
function
|
|
1405
|
+
function Bn(e) {
|
|
1428
1406
|
return e.type === E.pound;
|
|
1429
1407
|
}
|
|
1430
|
-
function
|
|
1408
|
+
function Kt(e) {
|
|
1431
1409
|
return e.type === E.tag;
|
|
1432
1410
|
}
|
|
1433
|
-
function
|
|
1434
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1411
|
+
function er(e) {
|
|
1412
|
+
return !!(e && typeof e == "object" && e.type === K.number);
|
|
1435
1413
|
}
|
|
1436
|
-
function
|
|
1437
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1414
|
+
function Ve(e) {
|
|
1415
|
+
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
|
1438
1416
|
}
|
|
1439
|
-
var
|
|
1440
|
-
function
|
|
1417
|
+
var tr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1418
|
+
function An(e) {
|
|
1441
1419
|
var t = {};
|
|
1442
|
-
return e.replace(
|
|
1420
|
+
return e.replace(Pn, function(r) {
|
|
1443
1421
|
var n = r.length;
|
|
1444
1422
|
switch (r[0]) {
|
|
1445
1423
|
case "G":
|
|
@@ -1528,11 +1506,11 @@ function Ln(e) {
|
|
|
1528
1506
|
return "";
|
|
1529
1507
|
}), t;
|
|
1530
1508
|
}
|
|
1531
|
-
var
|
|
1532
|
-
function
|
|
1509
|
+
var On = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1510
|
+
function In(e) {
|
|
1533
1511
|
if (e.length === 0)
|
|
1534
1512
|
throw new Error("Number skeleton cannot be empty");
|
|
1535
|
-
for (var t = e.split(
|
|
1513
|
+
for (var t = e.split(On).filter(function(c) {
|
|
1536
1514
|
return c.length > 0;
|
|
1537
1515
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1538
1516
|
var o = i[n], a = o.split("/");
|
|
@@ -1547,17 +1525,17 @@ function Nn(e) {
|
|
|
1547
1525
|
}
|
|
1548
1526
|
return r;
|
|
1549
1527
|
}
|
|
1550
|
-
function
|
|
1528
|
+
function Cn(e) {
|
|
1551
1529
|
return e.replace(/^(.*?)-/, "");
|
|
1552
1530
|
}
|
|
1553
|
-
var
|
|
1554
|
-
function
|
|
1531
|
+
var pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, rr = /^(@+)?(\+|#+)?[rs]?$/g, Ln = /(\*)(0+)|(#+)(0+)|(0+)/g, nr = /^(0+)$/;
|
|
1532
|
+
function mt(e) {
|
|
1555
1533
|
var t = {};
|
|
1556
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1534
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(rr, function(r, n, i) {
|
|
1557
1535
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1558
1536
|
}), t;
|
|
1559
1537
|
}
|
|
1560
|
-
function
|
|
1538
|
+
function ir(e) {
|
|
1561
1539
|
switch (e) {
|
|
1562
1540
|
case "sign-auto":
|
|
1563
1541
|
return {
|
|
@@ -1597,7 +1575,7 @@ function lr(e) {
|
|
|
1597
1575
|
};
|
|
1598
1576
|
}
|
|
1599
1577
|
}
|
|
1600
|
-
function
|
|
1578
|
+
function Nn(e) {
|
|
1601
1579
|
var t;
|
|
1602
1580
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1603
1581
|
notation: "engineering"
|
|
@@ -1605,17 +1583,17 @@ function Dn(e) {
|
|
|
1605
1583
|
notation: "scientific"
|
|
1606
1584
|
}, e = e.slice(1)), t) {
|
|
1607
1585
|
var r = e.slice(0, 2);
|
|
1608
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1586
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !nr.test(e))
|
|
1609
1587
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1610
1588
|
t.minimumIntegerDigits = e.length;
|
|
1611
1589
|
}
|
|
1612
1590
|
return t;
|
|
1613
1591
|
}
|
|
1614
|
-
function
|
|
1615
|
-
var t = {}, r =
|
|
1592
|
+
function bt(e) {
|
|
1593
|
+
var t = {}, r = ir(e);
|
|
1616
1594
|
return r || t;
|
|
1617
1595
|
}
|
|
1618
|
-
function
|
|
1596
|
+
function Mn(e) {
|
|
1619
1597
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1620
1598
|
var i = n[r];
|
|
1621
1599
|
switch (i.stem) {
|
|
@@ -1639,7 +1617,7 @@ function Un(e) {
|
|
|
1639
1617
|
continue;
|
|
1640
1618
|
case "measure-unit":
|
|
1641
1619
|
case "unit":
|
|
1642
|
-
t.style = "unit", t.unit =
|
|
1620
|
+
t.style = "unit", t.unit = Cn(i.options[0]);
|
|
1643
1621
|
continue;
|
|
1644
1622
|
case "compact-short":
|
|
1645
1623
|
case "K":
|
|
@@ -1650,13 +1628,13 @@ function Un(e) {
|
|
|
1650
1628
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1651
1629
|
continue;
|
|
1652
1630
|
case "scientific":
|
|
1653
|
-
t =
|
|
1654
|
-
return
|
|
1631
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1632
|
+
return _(_({}, l), bt(u));
|
|
1655
1633
|
}, {}));
|
|
1656
1634
|
continue;
|
|
1657
1635
|
case "engineering":
|
|
1658
|
-
t =
|
|
1659
|
-
return
|
|
1636
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1637
|
+
return _(_({}, l), bt(u));
|
|
1660
1638
|
}, {}));
|
|
1661
1639
|
continue;
|
|
1662
1640
|
case "notation-simple":
|
|
@@ -1701,45 +1679,45 @@ function Un(e) {
|
|
|
1701
1679
|
case "integer-width":
|
|
1702
1680
|
if (i.options.length > 1)
|
|
1703
1681
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1704
|
-
i.options[0].replace(
|
|
1682
|
+
i.options[0].replace(Ln, function(l, u, h, f, c, m) {
|
|
1705
1683
|
if (u)
|
|
1706
1684
|
t.minimumIntegerDigits = h.length;
|
|
1707
1685
|
else {
|
|
1708
1686
|
if (f && c)
|
|
1709
1687
|
throw new Error("We currently do not support maximum integer digits");
|
|
1710
|
-
if (
|
|
1688
|
+
if (m)
|
|
1711
1689
|
throw new Error("We currently do not support exact integer digits");
|
|
1712
1690
|
}
|
|
1713
1691
|
return "";
|
|
1714
1692
|
});
|
|
1715
1693
|
continue;
|
|
1716
1694
|
}
|
|
1717
|
-
if (
|
|
1695
|
+
if (nr.test(i.stem)) {
|
|
1718
1696
|
t.minimumIntegerDigits = i.stem.length;
|
|
1719
1697
|
continue;
|
|
1720
1698
|
}
|
|
1721
|
-
if (
|
|
1699
|
+
if (pt.test(i.stem)) {
|
|
1722
1700
|
if (i.options.length > 1)
|
|
1723
1701
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1724
|
-
i.stem.replace(
|
|
1725
|
-
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1702
|
+
i.stem.replace(pt, function(l, u, h, f, c, m) {
|
|
1703
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1726
1704
|
});
|
|
1727
1705
|
var o = i.options[0];
|
|
1728
|
-
o === "w" ? t =
|
|
1706
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), mt(o)));
|
|
1729
1707
|
continue;
|
|
1730
1708
|
}
|
|
1731
|
-
if (
|
|
1732
|
-
t =
|
|
1709
|
+
if (rr.test(i.stem)) {
|
|
1710
|
+
t = _(_({}, t), mt(i.stem));
|
|
1733
1711
|
continue;
|
|
1734
1712
|
}
|
|
1735
|
-
var a =
|
|
1736
|
-
a && (t =
|
|
1737
|
-
var s =
|
|
1738
|
-
s && (t =
|
|
1713
|
+
var a = ir(i.stem);
|
|
1714
|
+
a && (t = _(_({}, t), a));
|
|
1715
|
+
var s = Nn(i.stem);
|
|
1716
|
+
s && (t = _(_({}, t), s));
|
|
1739
1717
|
}
|
|
1740
1718
|
return t;
|
|
1741
1719
|
}
|
|
1742
|
-
var
|
|
1720
|
+
var me = {
|
|
1743
1721
|
"001": [
|
|
1744
1722
|
"H",
|
|
1745
1723
|
"h"
|
|
@@ -3154,13 +3132,13 @@ var be = {
|
|
|
3154
3132
|
"h"
|
|
3155
3133
|
]
|
|
3156
3134
|
};
|
|
3157
|
-
function
|
|
3135
|
+
function Rn(e, t) {
|
|
3158
3136
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3159
3137
|
var i = e.charAt(n);
|
|
3160
3138
|
if (i === "j") {
|
|
3161
3139
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3162
3140
|
o++, n++;
|
|
3163
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3141
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = $n(t);
|
|
3164
3142
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
3165
3143
|
r += l;
|
|
3166
3144
|
for (; a-- > 0; )
|
|
@@ -3169,7 +3147,7 @@ function Gn(e, t) {
|
|
|
3169
3147
|
}
|
|
3170
3148
|
return r;
|
|
3171
3149
|
}
|
|
3172
|
-
function
|
|
3150
|
+
function $n(e) {
|
|
3173
3151
|
var t = e.hourCycle;
|
|
3174
3152
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3175
3153
|
e.hourCycles && // @ts-ignore
|
|
@@ -3188,23 +3166,23 @@ function Fn(e) {
|
|
|
3188
3166
|
}
|
|
3189
3167
|
var r = e.language, n;
|
|
3190
3168
|
r !== "root" && (n = e.maximize().region);
|
|
3191
|
-
var i =
|
|
3169
|
+
var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
|
|
3192
3170
|
return i[0];
|
|
3193
3171
|
}
|
|
3194
|
-
var
|
|
3195
|
-
function
|
|
3172
|
+
var Le, Dn = new RegExp("^".concat(tr.source, "*")), Un = new RegExp("".concat(tr.source, "*$"));
|
|
3173
|
+
function v(e, t) {
|
|
3196
3174
|
return { start: e, end: t };
|
|
3197
3175
|
}
|
|
3198
|
-
var
|
|
3176
|
+
var Gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fn = !!String.fromCodePoint, jn = !!Object.fromEntries, kn = !!String.prototype.codePointAt, Vn = !!String.prototype.trimStart, Xn = !!String.prototype.trimEnd, Wn = !!Number.isSafeInteger, zn = Wn ? Number.isSafeInteger : function(e) {
|
|
3199
3177
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3200
|
-
},
|
|
3178
|
+
}, Xe = !0;
|
|
3201
3179
|
try {
|
|
3202
|
-
var
|
|
3203
|
-
|
|
3180
|
+
var Zn = sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3181
|
+
Xe = ((Le = Zn.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
|
|
3204
3182
|
} catch {
|
|
3205
|
-
|
|
3183
|
+
Xe = !1;
|
|
3206
3184
|
}
|
|
3207
|
-
var
|
|
3185
|
+
var yt = Gn ? (
|
|
3208
3186
|
// Native
|
|
3209
3187
|
function(t, r, n) {
|
|
3210
3188
|
return t.startsWith(r, n);
|
|
@@ -3214,7 +3192,7 @@ var Et = Vn ? (
|
|
|
3214
3192
|
function(t, r, n) {
|
|
3215
3193
|
return t.slice(n, n + r.length) === r;
|
|
3216
3194
|
}
|
|
3217
|
-
),
|
|
3195
|
+
), We = Fn ? String.fromCodePoint : (
|
|
3218
3196
|
// IE11
|
|
3219
3197
|
function() {
|
|
3220
3198
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3226,9 +3204,9 @@ var Et = Vn ? (
|
|
|
3226
3204
|
}
|
|
3227
3205
|
return n;
|
|
3228
3206
|
}
|
|
3229
|
-
),
|
|
3207
|
+
), gt = (
|
|
3230
3208
|
// native
|
|
3231
|
-
|
|
3209
|
+
jn ? Object.fromEntries : (
|
|
3232
3210
|
// Ponyfill
|
|
3233
3211
|
function(t) {
|
|
3234
3212
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3238,7 +3216,7 @@ var Et = Vn ? (
|
|
|
3238
3216
|
return r;
|
|
3239
3217
|
}
|
|
3240
3218
|
)
|
|
3241
|
-
),
|
|
3219
|
+
), or = kn ? (
|
|
3242
3220
|
// Native
|
|
3243
3221
|
function(t, r) {
|
|
3244
3222
|
return t.codePointAt(r);
|
|
@@ -3252,7 +3230,7 @@ var Et = Vn ? (
|
|
|
3252
3230
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3253
3231
|
}
|
|
3254
3232
|
}
|
|
3255
|
-
),
|
|
3233
|
+
), Qn = Vn ? (
|
|
3256
3234
|
// Native
|
|
3257
3235
|
function(t) {
|
|
3258
3236
|
return t.trimStart();
|
|
@@ -3260,9 +3238,9 @@ var Et = Vn ? (
|
|
|
3260
3238
|
) : (
|
|
3261
3239
|
// Ponyfill
|
|
3262
3240
|
function(t) {
|
|
3263
|
-
return t.replace(
|
|
3241
|
+
return t.replace(Dn, "");
|
|
3264
3242
|
}
|
|
3265
|
-
),
|
|
3243
|
+
), Jn = Xn ? (
|
|
3266
3244
|
// Native
|
|
3267
3245
|
function(t) {
|
|
3268
3246
|
return t.trimEnd();
|
|
@@ -3270,32 +3248,32 @@ var Et = Vn ? (
|
|
|
3270
3248
|
) : (
|
|
3271
3249
|
// Ponyfill
|
|
3272
3250
|
function(t) {
|
|
3273
|
-
return t.replace(
|
|
3251
|
+
return t.replace(Un, "");
|
|
3274
3252
|
}
|
|
3275
3253
|
);
|
|
3276
|
-
function
|
|
3254
|
+
function sr(e, t) {
|
|
3277
3255
|
return new RegExp(e, t);
|
|
3278
3256
|
}
|
|
3279
|
-
var
|
|
3280
|
-
if (
|
|
3281
|
-
var
|
|
3282
|
-
|
|
3257
|
+
var ze;
|
|
3258
|
+
if (Xe) {
|
|
3259
|
+
var vt = sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3260
|
+
ze = function(t, r) {
|
|
3283
3261
|
var n;
|
|
3284
|
-
|
|
3285
|
-
var i =
|
|
3262
|
+
vt.lastIndex = r;
|
|
3263
|
+
var i = vt.exec(t);
|
|
3286
3264
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3287
3265
|
};
|
|
3288
3266
|
} else
|
|
3289
|
-
|
|
3267
|
+
ze = function(t, r) {
|
|
3290
3268
|
for (var n = []; ; ) {
|
|
3291
|
-
var i =
|
|
3292
|
-
if (i === void 0 ||
|
|
3269
|
+
var i = or(t, r);
|
|
3270
|
+
if (i === void 0 || ar(i) || ei(i))
|
|
3293
3271
|
break;
|
|
3294
3272
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3295
3273
|
}
|
|
3296
|
-
return
|
|
3274
|
+
return We.apply(void 0, n);
|
|
3297
3275
|
};
|
|
3298
|
-
var
|
|
3276
|
+
var qn = (
|
|
3299
3277
|
/** @class */
|
|
3300
3278
|
function() {
|
|
3301
3279
|
function e(t, r) {
|
|
@@ -3320,13 +3298,13 @@ var ti = (
|
|
|
3320
3298
|
var s = this.clonePosition();
|
|
3321
3299
|
this.bump(), i.push({
|
|
3322
3300
|
type: E.pound,
|
|
3323
|
-
location:
|
|
3301
|
+
location: v(s, this.clonePosition())
|
|
3324
3302
|
});
|
|
3325
3303
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3326
3304
|
if (n)
|
|
3327
3305
|
break;
|
|
3328
|
-
return this.error(y.UNMATCHED_CLOSING_TAG,
|
|
3329
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3306
|
+
return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3307
|
+
} else if (o === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
|
|
3330
3308
|
var a = this.parseTag(t, r);
|
|
3331
3309
|
if (a.err)
|
|
3332
3310
|
return a;
|
|
@@ -3349,7 +3327,7 @@ var ti = (
|
|
|
3349
3327
|
val: {
|
|
3350
3328
|
type: E.literal,
|
|
3351
3329
|
value: "<".concat(i, "/>"),
|
|
3352
|
-
location:
|
|
3330
|
+
location: v(n, this.clonePosition())
|
|
3353
3331
|
},
|
|
3354
3332
|
err: null
|
|
3355
3333
|
};
|
|
@@ -3359,25 +3337,25 @@ var ti = (
|
|
|
3359
3337
|
return o;
|
|
3360
3338
|
var a = o.val, s = this.clonePosition();
|
|
3361
3339
|
if (this.bumpIf("</")) {
|
|
3362
|
-
if (this.isEOF() || !
|
|
3363
|
-
return this.error(y.INVALID_TAG,
|
|
3340
|
+
if (this.isEOF() || !Ze(this.char()))
|
|
3341
|
+
return this.error(y.INVALID_TAG, v(s, this.clonePosition()));
|
|
3364
3342
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3365
|
-
return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG,
|
|
3343
|
+
return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3366
3344
|
val: {
|
|
3367
3345
|
type: E.tag,
|
|
3368
3346
|
value: i,
|
|
3369
3347
|
children: a,
|
|
3370
|
-
location:
|
|
3348
|
+
location: v(n, this.clonePosition())
|
|
3371
3349
|
},
|
|
3372
3350
|
err: null
|
|
3373
|
-
} : this.error(y.INVALID_TAG,
|
|
3351
|
+
} : this.error(y.INVALID_TAG, v(s, this.clonePosition())));
|
|
3374
3352
|
} else
|
|
3375
|
-
return this.error(y.UNCLOSED_TAG,
|
|
3353
|
+
return this.error(y.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
3376
3354
|
} else
|
|
3377
|
-
return this.error(y.INVALID_TAG,
|
|
3355
|
+
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
|
3378
3356
|
}, e.prototype.parseTagName = function() {
|
|
3379
3357
|
var t = this.offset();
|
|
3380
|
-
for (this.bump(); !this.isEOF() &&
|
|
3358
|
+
for (this.bump(); !this.isEOF() && Kn(this.char()); )
|
|
3381
3359
|
this.bump();
|
|
3382
3360
|
return this.message.slice(t, this.offset());
|
|
3383
3361
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3399,14 +3377,14 @@ var ti = (
|
|
|
3399
3377
|
}
|
|
3400
3378
|
break;
|
|
3401
3379
|
}
|
|
3402
|
-
var l =
|
|
3380
|
+
var l = v(n, this.clonePosition());
|
|
3403
3381
|
return {
|
|
3404
3382
|
val: { type: E.literal, value: i, location: l },
|
|
3405
3383
|
err: null
|
|
3406
3384
|
};
|
|
3407
3385
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3408
3386
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3409
|
-
!
|
|
3387
|
+
!Yn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3410
3388
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3411
3389
|
if (this.isEOF() || this.char() !== 39)
|
|
3412
3390
|
return null;
|
|
@@ -3440,23 +3418,23 @@ var ti = (
|
|
|
3440
3418
|
r.push(n);
|
|
3441
3419
|
this.bump();
|
|
3442
3420
|
}
|
|
3443
|
-
return
|
|
3421
|
+
return We.apply(void 0, r);
|
|
3444
3422
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3445
3423
|
if (this.isEOF())
|
|
3446
3424
|
return null;
|
|
3447
3425
|
var n = this.char();
|
|
3448
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3426
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), We(n));
|
|
3449
3427
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3450
3428
|
var n = this.clonePosition();
|
|
3451
3429
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3452
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3430
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3453
3431
|
if (this.char() === 125)
|
|
3454
|
-
return this.bump(), this.error(y.EMPTY_ARGUMENT,
|
|
3432
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
3455
3433
|
var i = this.parseIdentifierIfPossible().value;
|
|
3456
3434
|
if (!i)
|
|
3457
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
|
3435
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3458
3436
|
if (this.bumpSpace(), this.isEOF())
|
|
3459
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3437
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3460
3438
|
switch (this.char()) {
|
|
3461
3439
|
case 125:
|
|
3462
3440
|
return this.bump(), {
|
|
@@ -3464,25 +3442,25 @@ var ti = (
|
|
|
3464
3442
|
type: E.argument,
|
|
3465
3443
|
// value does not include the opening and closing braces.
|
|
3466
3444
|
value: i,
|
|
3467
|
-
location:
|
|
3445
|
+
location: v(n, this.clonePosition())
|
|
3468
3446
|
},
|
|
3469
3447
|
err: null
|
|
3470
3448
|
};
|
|
3471
3449
|
case 44:
|
|
3472
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3450
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3473
3451
|
default:
|
|
3474
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
|
3452
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3475
3453
|
}
|
|
3476
3454
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3477
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3455
|
+
var t = this.clonePosition(), r = this.offset(), n = ze(this.message, r), i = r + n.length;
|
|
3478
3456
|
this.bumpTo(i);
|
|
3479
|
-
var o = this.clonePosition(), a =
|
|
3457
|
+
var o = this.clonePosition(), a = v(t, o);
|
|
3480
3458
|
return { value: n, location: a };
|
|
3481
3459
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3482
3460
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3483
3461
|
switch (s) {
|
|
3484
3462
|
case "":
|
|
3485
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE,
|
|
3463
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, v(a, l));
|
|
3486
3464
|
case "number":
|
|
3487
3465
|
case "date":
|
|
3488
3466
|
case "time": {
|
|
@@ -3493,18 +3471,18 @@ var ti = (
|
|
|
3493
3471
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3494
3472
|
if (f.err)
|
|
3495
3473
|
return f;
|
|
3496
|
-
var c =
|
|
3474
|
+
var c = Jn(f.val);
|
|
3497
3475
|
if (c.length === 0)
|
|
3498
|
-
return this.error(y.EXPECT_ARGUMENT_STYLE,
|
|
3499
|
-
var
|
|
3500
|
-
u = { style: c, styleLocation:
|
|
3476
|
+
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3477
|
+
var m = v(h, this.clonePosition());
|
|
3478
|
+
u = { style: c, styleLocation: m };
|
|
3501
3479
|
}
|
|
3502
3480
|
var b = this.tryParseArgumentClose(i);
|
|
3503
3481
|
if (b.err)
|
|
3504
3482
|
return b;
|
|
3505
|
-
var g =
|
|
3506
|
-
if (u &&
|
|
3507
|
-
var w =
|
|
3483
|
+
var g = v(i, this.clonePosition());
|
|
3484
|
+
if (u && yt(u?.style, "::", 0)) {
|
|
3485
|
+
var w = Qn(u.style.slice(2));
|
|
3508
3486
|
if (s === "number") {
|
|
3509
3487
|
var f = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3510
3488
|
return f.err ? f : {
|
|
@@ -3515,12 +3493,12 @@ var ti = (
|
|
|
3515
3493
|
if (w.length === 0)
|
|
3516
3494
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
3517
3495
|
var A = w;
|
|
3518
|
-
this.locale && (A =
|
|
3496
|
+
this.locale && (A = Rn(w, this.locale));
|
|
3519
3497
|
var c = {
|
|
3520
|
-
type:
|
|
3498
|
+
type: K.dateTime,
|
|
3521
3499
|
pattern: A,
|
|
3522
3500
|
location: u.styleLocation,
|
|
3523
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3501
|
+
parsedOptions: this.shouldParseSkeletons ? An(A) : {}
|
|
3524
3502
|
}, H = s === "date" ? E.date : E.time;
|
|
3525
3503
|
return {
|
|
3526
3504
|
val: { type: H, value: n, location: g, style: c },
|
|
@@ -3543,30 +3521,30 @@ var ti = (
|
|
|
3543
3521
|
case "select": {
|
|
3544
3522
|
var S = this.clonePosition();
|
|
3545
3523
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3546
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3524
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(S, _({}, S)));
|
|
3547
3525
|
this.bumpSpace();
|
|
3548
|
-
var
|
|
3549
|
-
if (s !== "select" &&
|
|
3526
|
+
var N = this.parseIdentifierIfPossible(), O = 0;
|
|
3527
|
+
if (s !== "select" && N.value === "offset") {
|
|
3550
3528
|
if (!this.bumpIf(":"))
|
|
3551
|
-
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3529
|
+
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3552
3530
|
this.bumpSpace();
|
|
3553
3531
|
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3554
3532
|
if (f.err)
|
|
3555
3533
|
return f;
|
|
3556
|
-
this.bumpSpace(),
|
|
3534
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), O = f.val;
|
|
3557
3535
|
}
|
|
3558
|
-
var
|
|
3559
|
-
if (
|
|
3560
|
-
return
|
|
3536
|
+
var M = this.tryParsePluralOrSelectOptions(t, s, r, N);
|
|
3537
|
+
if (M.err)
|
|
3538
|
+
return M;
|
|
3561
3539
|
var b = this.tryParseArgumentClose(i);
|
|
3562
3540
|
if (b.err)
|
|
3563
3541
|
return b;
|
|
3564
|
-
var x =
|
|
3542
|
+
var x = v(i, this.clonePosition());
|
|
3565
3543
|
return s === "select" ? {
|
|
3566
3544
|
val: {
|
|
3567
3545
|
type: E.select,
|
|
3568
3546
|
value: n,
|
|
3569
|
-
options:
|
|
3547
|
+
options: gt(M.val),
|
|
3570
3548
|
location: x
|
|
3571
3549
|
},
|
|
3572
3550
|
err: null
|
|
@@ -3574,7 +3552,7 @@ var ti = (
|
|
|
3574
3552
|
val: {
|
|
3575
3553
|
type: E.plural,
|
|
3576
3554
|
value: n,
|
|
3577
|
-
options:
|
|
3555
|
+
options: gt(M.val),
|
|
3578
3556
|
offset: O,
|
|
3579
3557
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3580
3558
|
location: x
|
|
@@ -3583,10 +3561,10 @@ var ti = (
|
|
|
3583
3561
|
};
|
|
3584
3562
|
}
|
|
3585
3563
|
default:
|
|
3586
|
-
return this.error(y.INVALID_ARGUMENT_TYPE,
|
|
3564
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, v(a, l));
|
|
3587
3565
|
}
|
|
3588
3566
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3589
|
-
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3567
|
+
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3590
3568
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3591
3569
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3592
3570
|
var n = this.char();
|
|
@@ -3595,7 +3573,7 @@ var ti = (
|
|
|
3595
3573
|
this.bump();
|
|
3596
3574
|
var i = this.clonePosition();
|
|
3597
3575
|
if (!this.bumpUntil("'"))
|
|
3598
|
-
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3576
|
+
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
3599
3577
|
this.bump();
|
|
3600
3578
|
break;
|
|
3601
3579
|
}
|
|
@@ -3625,16 +3603,16 @@ var ti = (
|
|
|
3625
3603
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3626
3604
|
var n = [];
|
|
3627
3605
|
try {
|
|
3628
|
-
n =
|
|
3606
|
+
n = In(t);
|
|
3629
3607
|
} catch {
|
|
3630
3608
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3631
3609
|
}
|
|
3632
3610
|
return {
|
|
3633
3611
|
val: {
|
|
3634
|
-
type:
|
|
3612
|
+
type: K.number,
|
|
3635
3613
|
tokens: n,
|
|
3636
3614
|
location: r,
|
|
3637
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3615
|
+
parsedOptions: this.shouldParseSkeletons ? Mn(n) : {}
|
|
3638
3616
|
},
|
|
3639
3617
|
err: null
|
|
3640
3618
|
};
|
|
@@ -3646,31 +3624,31 @@ var ti = (
|
|
|
3646
3624
|
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3647
3625
|
if (c.err)
|
|
3648
3626
|
return c;
|
|
3649
|
-
h =
|
|
3627
|
+
h = v(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3650
3628
|
} else
|
|
3651
3629
|
break;
|
|
3652
3630
|
}
|
|
3653
3631
|
if (l.has(u))
|
|
3654
3632
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3655
3633
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3656
|
-
var
|
|
3634
|
+
var m = this.clonePosition();
|
|
3657
3635
|
if (!this.bumpIf("{"))
|
|
3658
|
-
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3636
|
+
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3659
3637
|
var b = this.parseMessage(t + 1, r, n);
|
|
3660
3638
|
if (b.err)
|
|
3661
3639
|
return b;
|
|
3662
|
-
var g = this.tryParseArgumentClose(
|
|
3640
|
+
var g = this.tryParseArgumentClose(m);
|
|
3663
3641
|
if (g.err)
|
|
3664
3642
|
return g;
|
|
3665
3643
|
s.push([
|
|
3666
3644
|
u,
|
|
3667
3645
|
{
|
|
3668
3646
|
value: b.val,
|
|
3669
|
-
location:
|
|
3647
|
+
location: v(m, this.clonePosition())
|
|
3670
3648
|
}
|
|
3671
3649
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3672
3650
|
}
|
|
3673
|
-
return s.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3651
|
+
return s.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(y.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3674
3652
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3675
3653
|
var n = 1, i = this.clonePosition();
|
|
3676
3654
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3681,8 +3659,8 @@ var ti = (
|
|
|
3681
3659
|
else
|
|
3682
3660
|
break;
|
|
3683
3661
|
}
|
|
3684
|
-
var l =
|
|
3685
|
-
return o ? (a *= n,
|
|
3662
|
+
var l = v(i, this.clonePosition());
|
|
3663
|
+
return o ? (a *= n, zn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3686
3664
|
}, e.prototype.offset = function() {
|
|
3687
3665
|
return this.position.offset;
|
|
3688
3666
|
}, e.prototype.isEOF = function() {
|
|
@@ -3697,7 +3675,7 @@ var ti = (
|
|
|
3697
3675
|
var t = this.position.offset;
|
|
3698
3676
|
if (t >= this.message.length)
|
|
3699
3677
|
throw Error("out of bound");
|
|
3700
|
-
var r =
|
|
3678
|
+
var r = or(this.message, t);
|
|
3701
3679
|
if (r === void 0)
|
|
3702
3680
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3703
3681
|
return r;
|
|
@@ -3716,7 +3694,7 @@ var ti = (
|
|
|
3716
3694
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3717
3695
|
}
|
|
3718
3696
|
}, e.prototype.bumpIf = function(t) {
|
|
3719
|
-
if (
|
|
3697
|
+
if (yt(this.message, t, this.offset())) {
|
|
3720
3698
|
for (var r = 0; r < t.length; r++)
|
|
3721
3699
|
this.bump();
|
|
3722
3700
|
return !0;
|
|
@@ -3738,7 +3716,7 @@ var ti = (
|
|
|
3738
3716
|
break;
|
|
3739
3717
|
}
|
|
3740
3718
|
}, e.prototype.bumpSpace = function() {
|
|
3741
|
-
for (; !this.isEOF() &&
|
|
3719
|
+
for (; !this.isEOF() && ar(this.char()); )
|
|
3742
3720
|
this.bump();
|
|
3743
3721
|
}, e.prototype.peek = function() {
|
|
3744
3722
|
if (this.isEOF())
|
|
@@ -3748,43 +3726,43 @@ var ti = (
|
|
|
3748
3726
|
}, e;
|
|
3749
3727
|
}()
|
|
3750
3728
|
);
|
|
3751
|
-
function
|
|
3729
|
+
function Ze(e) {
|
|
3752
3730
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3753
3731
|
}
|
|
3754
|
-
function
|
|
3755
|
-
return
|
|
3732
|
+
function Yn(e) {
|
|
3733
|
+
return Ze(e) || e === 47;
|
|
3756
3734
|
}
|
|
3757
|
-
function
|
|
3735
|
+
function Kn(e) {
|
|
3758
3736
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3759
3737
|
}
|
|
3760
|
-
function
|
|
3738
|
+
function ar(e) {
|
|
3761
3739
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3762
3740
|
}
|
|
3763
|
-
function
|
|
3741
|
+
function ei(e) {
|
|
3764
3742
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3765
3743
|
}
|
|
3766
|
-
function
|
|
3744
|
+
function Qe(e) {
|
|
3767
3745
|
e.forEach(function(t) {
|
|
3768
|
-
if (delete t.location,
|
|
3746
|
+
if (delete t.location, qt(t) || Yt(t))
|
|
3769
3747
|
for (var r in t.options)
|
|
3770
|
-
delete t.options[r].location,
|
|
3771
|
-
else
|
|
3748
|
+
delete t.options[r].location, Qe(t.options[r].value);
|
|
3749
|
+
else Zt(t) && er(t.style) || (Qt(t) || Jt(t)) && Ve(t.style) ? delete t.style.location : Kt(t) && Qe(t.children);
|
|
3772
3750
|
});
|
|
3773
3751
|
}
|
|
3774
|
-
function
|
|
3775
|
-
t === void 0 && (t = {}), t =
|
|
3776
|
-
var r = new
|
|
3752
|
+
function ti(e, t) {
|
|
3753
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3754
|
+
var r = new qn(e, t).parse();
|
|
3777
3755
|
if (r.err) {
|
|
3778
3756
|
var n = SyntaxError(y[r.err.kind]);
|
|
3779
3757
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3780
3758
|
}
|
|
3781
|
-
return t?.captureLocation ||
|
|
3759
|
+
return t?.captureLocation || Qe(r.val), r.val;
|
|
3782
3760
|
}
|
|
3783
|
-
var
|
|
3761
|
+
var ee;
|
|
3784
3762
|
(function(e) {
|
|
3785
3763
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3786
|
-
})(
|
|
3787
|
-
var
|
|
3764
|
+
})(ee || (ee = {}));
|
|
3765
|
+
var He = (
|
|
3788
3766
|
/** @class */
|
|
3789
3767
|
function(e) {
|
|
3790
3768
|
U(t, e);
|
|
@@ -3796,48 +3774,48 @@ var Be = (
|
|
|
3796
3774
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3797
3775
|
}, t;
|
|
3798
3776
|
}(Error)
|
|
3799
|
-
),
|
|
3777
|
+
), _t = (
|
|
3800
3778
|
/** @class */
|
|
3801
3779
|
function(e) {
|
|
3802
3780
|
U(t, e);
|
|
3803
3781
|
function t(r, n, i, o) {
|
|
3804
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3782
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, o) || this;
|
|
3805
3783
|
}
|
|
3806
3784
|
return t;
|
|
3807
|
-
}(
|
|
3808
|
-
),
|
|
3785
|
+
}(He)
|
|
3786
|
+
), ri = (
|
|
3809
3787
|
/** @class */
|
|
3810
3788
|
function(e) {
|
|
3811
3789
|
U(t, e);
|
|
3812
3790
|
function t(r, n, i) {
|
|
3813
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3791
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
|
|
3814
3792
|
}
|
|
3815
3793
|
return t;
|
|
3816
|
-
}(
|
|
3817
|
-
),
|
|
3794
|
+
}(He)
|
|
3795
|
+
), ni = (
|
|
3818
3796
|
/** @class */
|
|
3819
3797
|
function(e) {
|
|
3820
3798
|
U(t, e);
|
|
3821
3799
|
function t(r, n) {
|
|
3822
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3800
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
|
|
3823
3801
|
}
|
|
3824
3802
|
return t;
|
|
3825
|
-
}(
|
|
3803
|
+
}(He)
|
|
3826
3804
|
), T;
|
|
3827
3805
|
(function(e) {
|
|
3828
3806
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3829
3807
|
})(T || (T = {}));
|
|
3830
|
-
function
|
|
3808
|
+
function ii(e) {
|
|
3831
3809
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3832
3810
|
var n = t[t.length - 1];
|
|
3833
3811
|
return !n || n.type !== T.literal || r.type !== T.literal ? t.push(r) : n.value += r.value, t;
|
|
3834
3812
|
}, []);
|
|
3835
3813
|
}
|
|
3836
|
-
function
|
|
3814
|
+
function oi(e) {
|
|
3837
3815
|
return typeof e == "function";
|
|
3838
3816
|
}
|
|
3839
3817
|
function ve(e, t, r, n, i, o, a) {
|
|
3840
|
-
if (e.length === 1 &&
|
|
3818
|
+
if (e.length === 1 && dt(e[0]))
|
|
3841
3819
|
return [
|
|
3842
3820
|
{
|
|
3843
3821
|
type: T.literal,
|
|
@@ -3846,14 +3824,14 @@ function ve(e, t, r, n, i, o, a) {
|
|
|
3846
3824
|
];
|
|
3847
3825
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3848
3826
|
var h = u[l];
|
|
3849
|
-
if (
|
|
3827
|
+
if (dt(h)) {
|
|
3850
3828
|
s.push({
|
|
3851
3829
|
type: T.literal,
|
|
3852
3830
|
value: h.value
|
|
3853
3831
|
});
|
|
3854
3832
|
continue;
|
|
3855
3833
|
}
|
|
3856
|
-
if (
|
|
3834
|
+
if (Bn(h)) {
|
|
3857
3835
|
typeof o == "number" && s.push({
|
|
3858
3836
|
type: T.literal,
|
|
3859
3837
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3862,43 +3840,43 @@ function ve(e, t, r, n, i, o, a) {
|
|
|
3862
3840
|
}
|
|
3863
3841
|
var f = h.value;
|
|
3864
3842
|
if (!(i && f in i))
|
|
3865
|
-
throw new
|
|
3843
|
+
throw new ni(f, a);
|
|
3866
3844
|
var c = i[f];
|
|
3867
|
-
if (
|
|
3845
|
+
if (Hn(h)) {
|
|
3868
3846
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3869
3847
|
type: typeof c == "string" ? T.literal : T.object,
|
|
3870
3848
|
value: c
|
|
3871
3849
|
});
|
|
3872
3850
|
continue;
|
|
3873
3851
|
}
|
|
3874
|
-
if (
|
|
3875
|
-
var
|
|
3852
|
+
if (Qt(h)) {
|
|
3853
|
+
var m = typeof h.style == "string" ? n.date[h.style] : Ve(h.style) ? h.style.parsedOptions : void 0;
|
|
3876
3854
|
s.push({
|
|
3877
3855
|
type: T.literal,
|
|
3878
|
-
value: r.getDateTimeFormat(t,
|
|
3856
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3879
3857
|
});
|
|
3880
3858
|
continue;
|
|
3881
3859
|
}
|
|
3882
|
-
if (
|
|
3883
|
-
var
|
|
3860
|
+
if (Jt(h)) {
|
|
3861
|
+
var m = typeof h.style == "string" ? n.time[h.style] : Ve(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3884
3862
|
s.push({
|
|
3885
3863
|
type: T.literal,
|
|
3886
|
-
value: r.getDateTimeFormat(t,
|
|
3864
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3887
3865
|
});
|
|
3888
3866
|
continue;
|
|
3889
3867
|
}
|
|
3890
|
-
if (
|
|
3891
|
-
var
|
|
3892
|
-
|
|
3868
|
+
if (Zt(h)) {
|
|
3869
|
+
var m = typeof h.style == "string" ? n.number[h.style] : er(h.style) ? h.style.parsedOptions : void 0;
|
|
3870
|
+
m && m.scale && (c = c * (m.scale || 1)), s.push({
|
|
3893
3871
|
type: T.literal,
|
|
3894
|
-
value: r.getNumberFormat(t,
|
|
3872
|
+
value: r.getNumberFormat(t, m).format(c)
|
|
3895
3873
|
});
|
|
3896
3874
|
continue;
|
|
3897
3875
|
}
|
|
3898
|
-
if (
|
|
3876
|
+
if (Kt(h)) {
|
|
3899
3877
|
var b = h.children, g = h.value, w = i[g];
|
|
3900
|
-
if (!
|
|
3901
|
-
throw new
|
|
3878
|
+
if (!oi(w))
|
|
3879
|
+
throw new ri(g, "function", a);
|
|
3902
3880
|
var A = ve(b, t, r, n, i, o), H = w(A.map(function(O) {
|
|
3903
3881
|
return O.value;
|
|
3904
3882
|
}));
|
|
@@ -3909,42 +3887,42 @@ function ve(e, t, r, n, i, o, a) {
|
|
|
3909
3887
|
};
|
|
3910
3888
|
}));
|
|
3911
3889
|
}
|
|
3912
|
-
if (
|
|
3890
|
+
if (qt(h)) {
|
|
3913
3891
|
var S = h.options[c] || h.options.other;
|
|
3914
3892
|
if (!S)
|
|
3915
|
-
throw new
|
|
3893
|
+
throw new _t(h.value, c, Object.keys(h.options), a);
|
|
3916
3894
|
s.push.apply(s, ve(S.value, t, r, n, i));
|
|
3917
3895
|
continue;
|
|
3918
3896
|
}
|
|
3919
|
-
if (
|
|
3897
|
+
if (Yt(h)) {
|
|
3920
3898
|
var S = h.options["=".concat(c)];
|
|
3921
3899
|
if (!S) {
|
|
3922
3900
|
if (!Intl.PluralRules)
|
|
3923
|
-
throw new
|
|
3901
|
+
throw new He(`Intl.PluralRules is not available in this environment.
|
|
3924
3902
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3925
|
-
`,
|
|
3926
|
-
var
|
|
3927
|
-
S = h.options[
|
|
3903
|
+
`, ee.MISSING_INTL_API, a);
|
|
3904
|
+
var N = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3905
|
+
S = h.options[N] || h.options.other;
|
|
3928
3906
|
}
|
|
3929
3907
|
if (!S)
|
|
3930
|
-
throw new
|
|
3908
|
+
throw new _t(h.value, c, Object.keys(h.options), a);
|
|
3931
3909
|
s.push.apply(s, ve(S.value, t, r, n, i, c - (h.offset || 0)));
|
|
3932
3910
|
continue;
|
|
3933
3911
|
}
|
|
3934
3912
|
}
|
|
3935
|
-
return
|
|
3913
|
+
return ii(s);
|
|
3936
3914
|
}
|
|
3937
|
-
function
|
|
3938
|
-
return t ?
|
|
3939
|
-
return r[n] =
|
|
3915
|
+
function si(e, t) {
|
|
3916
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3917
|
+
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
|
3940
3918
|
}, {})) : e;
|
|
3941
3919
|
}
|
|
3942
|
-
function
|
|
3920
|
+
function ai(e, t) {
|
|
3943
3921
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3944
|
-
return r[n] =
|
|
3945
|
-
},
|
|
3922
|
+
return r[n] = si(e[n], t[n]), r;
|
|
3923
|
+
}, _({}, e)) : e;
|
|
3946
3924
|
}
|
|
3947
|
-
function
|
|
3925
|
+
function Ne(e) {
|
|
3948
3926
|
return {
|
|
3949
3927
|
create: function() {
|
|
3950
3928
|
return {
|
|
@@ -3958,39 +3936,39 @@ function Re(e) {
|
|
|
3958
3936
|
}
|
|
3959
3937
|
};
|
|
3960
3938
|
}
|
|
3961
|
-
function
|
|
3939
|
+
function ui(e) {
|
|
3962
3940
|
return e === void 0 && (e = {
|
|
3963
3941
|
number: {},
|
|
3964
3942
|
dateTime: {},
|
|
3965
3943
|
pluralRules: {}
|
|
3966
3944
|
}), {
|
|
3967
|
-
getNumberFormat:
|
|
3945
|
+
getNumberFormat: Ie(function() {
|
|
3968
3946
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3969
3947
|
r[n] = arguments[n];
|
|
3970
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3948
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, q([void 0], r, !1)))();
|
|
3971
3949
|
}, {
|
|
3972
|
-
cache:
|
|
3973
|
-
strategy:
|
|
3950
|
+
cache: Ne(e.number),
|
|
3951
|
+
strategy: Ce.variadic
|
|
3974
3952
|
}),
|
|
3975
|
-
getDateTimeFormat:
|
|
3953
|
+
getDateTimeFormat: Ie(function() {
|
|
3976
3954
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3977
3955
|
r[n] = arguments[n];
|
|
3978
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3956
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, q([void 0], r, !1)))();
|
|
3979
3957
|
}, {
|
|
3980
|
-
cache:
|
|
3981
|
-
strategy:
|
|
3958
|
+
cache: Ne(e.dateTime),
|
|
3959
|
+
strategy: Ce.variadic
|
|
3982
3960
|
}),
|
|
3983
|
-
getPluralRules:
|
|
3961
|
+
getPluralRules: Ie(function() {
|
|
3984
3962
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3985
3963
|
r[n] = arguments[n];
|
|
3986
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3964
|
+
return new ((t = Intl.PluralRules).bind.apply(t, q([void 0], r, !1)))();
|
|
3987
3965
|
}, {
|
|
3988
|
-
cache:
|
|
3989
|
-
strategy:
|
|
3966
|
+
cache: Ne(e.pluralRules),
|
|
3967
|
+
strategy: Ce.variadic
|
|
3990
3968
|
})
|
|
3991
3969
|
};
|
|
3992
3970
|
}
|
|
3993
|
-
var
|
|
3971
|
+
var li = (
|
|
3994
3972
|
/** @class */
|
|
3995
3973
|
function() {
|
|
3996
3974
|
function e(t, r, n, i) {
|
|
@@ -4022,13 +4000,13 @@ var di = (
|
|
|
4022
4000
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4023
4001
|
var a = i || {};
|
|
4024
4002
|
a.formatters;
|
|
4025
|
-
var s =
|
|
4026
|
-
this.ast = e.__parse(t,
|
|
4003
|
+
var s = Gr(a, ["formatters"]);
|
|
4004
|
+
this.ast = e.__parse(t, _(_({}, s), { locale: this.resolvedLocale }));
|
|
4027
4005
|
} else
|
|
4028
4006
|
this.ast = t;
|
|
4029
4007
|
if (!Array.isArray(this.ast))
|
|
4030
4008
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
4031
|
-
this.formats =
|
|
4009
|
+
this.formats = ai(e.formats, n), this.formatters = i && i.formatters || ui(this.formatterCache);
|
|
4032
4010
|
}
|
|
4033
4011
|
return Object.defineProperty(e, "defaultLocale", {
|
|
4034
4012
|
get: function() {
|
|
@@ -4041,7 +4019,7 @@ var di = (
|
|
|
4041
4019
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
4042
4020
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
4043
4021
|
}
|
|
4044
|
-
}, e.__parse =
|
|
4022
|
+
}, e.__parse = ti, e.formats = {
|
|
4045
4023
|
number: {
|
|
4046
4024
|
integer: {
|
|
4047
4025
|
maximumFractionDigits: 0
|
|
@@ -4102,7 +4080,7 @@ var di = (
|
|
|
4102
4080
|
}, e;
|
|
4103
4081
|
}()
|
|
4104
4082
|
);
|
|
4105
|
-
function
|
|
4083
|
+
function hi(e, t) {
|
|
4106
4084
|
if (t == null)
|
|
4107
4085
|
return;
|
|
4108
4086
|
if (t in e)
|
|
@@ -4123,92 +4101,92 @@ function pi(e, t) {
|
|
|
4123
4101
|
n = void 0;
|
|
4124
4102
|
return n;
|
|
4125
4103
|
}
|
|
4126
|
-
const F = {},
|
|
4104
|
+
const F = {}, ci = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), ur = (e, t) => {
|
|
4127
4105
|
if (t == null)
|
|
4128
4106
|
return;
|
|
4129
4107
|
if (t in F && e in F[t])
|
|
4130
4108
|
return F[t][e];
|
|
4131
|
-
const r =
|
|
4109
|
+
const r = Be(t);
|
|
4132
4110
|
for (let n = 0; n < r.length; n++) {
|
|
4133
|
-
const i = r[n], o =
|
|
4111
|
+
const i = r[n], o = di(i, e);
|
|
4134
4112
|
if (o)
|
|
4135
|
-
return
|
|
4113
|
+
return ci(e, t, o);
|
|
4136
4114
|
}
|
|
4137
4115
|
};
|
|
4138
|
-
let
|
|
4139
|
-
const
|
|
4140
|
-
function
|
|
4141
|
-
return
|
|
4116
|
+
let Ke;
|
|
4117
|
+
const ce = Te({});
|
|
4118
|
+
function fi(e) {
|
|
4119
|
+
return Ke[e] || null;
|
|
4142
4120
|
}
|
|
4143
|
-
function
|
|
4144
|
-
return e in
|
|
4121
|
+
function lr(e) {
|
|
4122
|
+
return e in Ke;
|
|
4145
4123
|
}
|
|
4146
|
-
function
|
|
4147
|
-
if (!
|
|
4124
|
+
function di(e, t) {
|
|
4125
|
+
if (!lr(e))
|
|
4148
4126
|
return null;
|
|
4149
|
-
const r =
|
|
4150
|
-
return
|
|
4127
|
+
const r = fi(e);
|
|
4128
|
+
return hi(r, t);
|
|
4151
4129
|
}
|
|
4152
|
-
function
|
|
4130
|
+
function pi(e) {
|
|
4153
4131
|
if (e == null)
|
|
4154
4132
|
return;
|
|
4155
|
-
const t =
|
|
4133
|
+
const t = Be(e);
|
|
4156
4134
|
for (let r = 0; r < t.length; r++) {
|
|
4157
4135
|
const n = t[r];
|
|
4158
|
-
if (
|
|
4136
|
+
if (lr(n))
|
|
4159
4137
|
return n;
|
|
4160
4138
|
}
|
|
4161
4139
|
}
|
|
4162
|
-
function
|
|
4163
|
-
delete F[e],
|
|
4140
|
+
function hr(e, ...t) {
|
|
4141
|
+
delete F[e], ce.update((r) => (r[e] = gn.all([r[e] || {}, ...t]), r));
|
|
4164
4142
|
}
|
|
4165
|
-
|
|
4166
|
-
[
|
|
4143
|
+
re(
|
|
4144
|
+
[ce],
|
|
4167
4145
|
([e]) => Object.keys(e)
|
|
4168
4146
|
);
|
|
4169
|
-
|
|
4170
|
-
const
|
|
4171
|
-
function
|
|
4172
|
-
|
|
4147
|
+
ce.subscribe((e) => Ke = e);
|
|
4148
|
+
const _e = {};
|
|
4149
|
+
function mi(e, t) {
|
|
4150
|
+
_e[e].delete(t), _e[e].size === 0 && delete _e[e];
|
|
4173
4151
|
}
|
|
4174
|
-
function
|
|
4175
|
-
return
|
|
4152
|
+
function cr(e) {
|
|
4153
|
+
return _e[e];
|
|
4176
4154
|
}
|
|
4177
|
-
function
|
|
4178
|
-
return
|
|
4179
|
-
const r =
|
|
4155
|
+
function bi(e) {
|
|
4156
|
+
return Be(e).map((t) => {
|
|
4157
|
+
const r = cr(t);
|
|
4180
4158
|
return [t, r ? [...r] : []];
|
|
4181
4159
|
}).filter(([, t]) => t.length > 0);
|
|
4182
4160
|
}
|
|
4183
|
-
function
|
|
4184
|
-
return e == null ? !1 :
|
|
4161
|
+
function Je(e) {
|
|
4162
|
+
return e == null ? !1 : Be(e).some(
|
|
4185
4163
|
(t) => {
|
|
4186
4164
|
var r;
|
|
4187
|
-
return (r =
|
|
4165
|
+
return (r = cr(t)) == null ? void 0 : r.size;
|
|
4188
4166
|
}
|
|
4189
4167
|
);
|
|
4190
4168
|
}
|
|
4191
|
-
function
|
|
4169
|
+
function yi(e, t) {
|
|
4192
4170
|
return Promise.all(
|
|
4193
|
-
t.map((n) => (
|
|
4194
|
-
).then((n) =>
|
|
4195
|
-
}
|
|
4196
|
-
const
|
|
4197
|
-
function
|
|
4198
|
-
if (!
|
|
4199
|
-
return e in
|
|
4200
|
-
const t =
|
|
4201
|
-
return
|
|
4171
|
+
t.map((n) => (mi(e, n), n().then((i) => i.default || i)))
|
|
4172
|
+
).then((n) => hr(e, ...n));
|
|
4173
|
+
}
|
|
4174
|
+
const oe = {};
|
|
4175
|
+
function fr(e) {
|
|
4176
|
+
if (!Je(e))
|
|
4177
|
+
return e in oe ? oe[e] : Promise.resolve();
|
|
4178
|
+
const t = bi(e);
|
|
4179
|
+
return oe[e] = Promise.all(
|
|
4202
4180
|
t.map(
|
|
4203
|
-
([r, n]) =>
|
|
4181
|
+
([r, n]) => yi(r, n)
|
|
4204
4182
|
)
|
|
4205
4183
|
).then(() => {
|
|
4206
|
-
if (
|
|
4207
|
-
return
|
|
4208
|
-
delete
|
|
4209
|
-
}),
|
|
4184
|
+
if (Je(e))
|
|
4185
|
+
return fr(e);
|
|
4186
|
+
delete oe[e];
|
|
4187
|
+
}), oe[e];
|
|
4210
4188
|
}
|
|
4211
|
-
const
|
|
4189
|
+
const gi = {
|
|
4212
4190
|
number: {
|
|
4213
4191
|
scientific: { notation: "scientific" },
|
|
4214
4192
|
engineering: { notation: "engineering" },
|
|
@@ -4237,135 +4215,135 @@ const xi = {
|
|
|
4237
4215
|
timeZoneName: "short"
|
|
4238
4216
|
}
|
|
4239
4217
|
}
|
|
4240
|
-
},
|
|
4218
|
+
}, vi = {
|
|
4241
4219
|
fallbackLocale: null,
|
|
4242
4220
|
loadingDelay: 200,
|
|
4243
|
-
formats:
|
|
4221
|
+
formats: gi,
|
|
4244
4222
|
warnOnMissingMessages: !0,
|
|
4245
4223
|
handleMissingMessage: void 0,
|
|
4246
4224
|
ignoreTag: !0
|
|
4247
|
-
},
|
|
4248
|
-
function
|
|
4249
|
-
return
|
|
4225
|
+
}, _i = vi;
|
|
4226
|
+
function te() {
|
|
4227
|
+
return _i;
|
|
4250
4228
|
}
|
|
4251
|
-
const
|
|
4252
|
-
var
|
|
4229
|
+
const Me = Te(!1);
|
|
4230
|
+
var Ei = Object.defineProperty, xi = Object.defineProperties, wi = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Si = Object.prototype.hasOwnProperty, Ti = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Hi = (e, t) => {
|
|
4253
4231
|
for (var r in t || (t = {}))
|
|
4254
|
-
|
|
4255
|
-
if (
|
|
4256
|
-
for (var r of
|
|
4257
|
-
|
|
4232
|
+
Si.call(t, r) && xt(e, r, t[r]);
|
|
4233
|
+
if (Et)
|
|
4234
|
+
for (var r of Et(t))
|
|
4235
|
+
Ti.call(t, r) && xt(e, r, t[r]);
|
|
4258
4236
|
return e;
|
|
4259
|
-
},
|
|
4260
|
-
let
|
|
4261
|
-
const
|
|
4262
|
-
function
|
|
4237
|
+
}, Bi = (e, t) => xi(e, wi(t));
|
|
4238
|
+
let qe;
|
|
4239
|
+
const Ee = Te(null);
|
|
4240
|
+
function wt(e) {
|
|
4263
4241
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4264
4242
|
}
|
|
4265
|
-
function
|
|
4266
|
-
const r =
|
|
4267
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4243
|
+
function Be(e, t = te().fallbackLocale) {
|
|
4244
|
+
const r = wt(e);
|
|
4245
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...wt(t)])] : r;
|
|
4268
4246
|
}
|
|
4269
4247
|
function W() {
|
|
4270
|
-
return
|
|
4248
|
+
return qe ?? void 0;
|
|
4271
4249
|
}
|
|
4272
|
-
|
|
4273
|
-
|
|
4250
|
+
Ee.subscribe((e) => {
|
|
4251
|
+
qe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4274
4252
|
});
|
|
4275
|
-
const
|
|
4276
|
-
if (e &&
|
|
4277
|
-
const { loadingDelay: t } =
|
|
4253
|
+
const Pi = (e) => {
|
|
4254
|
+
if (e && pi(e) && Je(e)) {
|
|
4255
|
+
const { loadingDelay: t } = te();
|
|
4278
4256
|
let r;
|
|
4279
4257
|
return typeof window < "u" && W() != null && t ? r = window.setTimeout(
|
|
4280
|
-
() =>
|
|
4258
|
+
() => Me.set(!0),
|
|
4281
4259
|
t
|
|
4282
|
-
) :
|
|
4283
|
-
|
|
4260
|
+
) : Me.set(!0), fr(e).then(() => {
|
|
4261
|
+
Ee.set(e);
|
|
4284
4262
|
}).finally(() => {
|
|
4285
|
-
clearTimeout(r),
|
|
4263
|
+
clearTimeout(r), Me.set(!1);
|
|
4286
4264
|
});
|
|
4287
4265
|
}
|
|
4288
|
-
return
|
|
4289
|
-
},
|
|
4290
|
-
set:
|
|
4291
|
-
}),
|
|
4266
|
+
return Ee.set(e);
|
|
4267
|
+
}, ne = Bi(Hi({}, Ee), {
|
|
4268
|
+
set: Pi
|
|
4269
|
+
}), Pe = (e) => {
|
|
4292
4270
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4293
4271
|
return (n) => {
|
|
4294
4272
|
const i = JSON.stringify(n);
|
|
4295
4273
|
return i in t ? t[i] : t[i] = e(n);
|
|
4296
4274
|
};
|
|
4297
4275
|
};
|
|
4298
|
-
var
|
|
4276
|
+
var Ai = Object.defineProperty, xe = Object.getOwnPropertySymbols, dr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
|
|
4299
4277
|
for (var r in t || (t = {}))
|
|
4300
|
-
|
|
4301
|
-
if (
|
|
4302
|
-
for (var r of
|
|
4303
|
-
|
|
4278
|
+
dr.call(t, r) && St(e, r, t[r]);
|
|
4279
|
+
if (xe)
|
|
4280
|
+
for (var r of xe(t))
|
|
4281
|
+
pr.call(t, r) && St(e, r, t[r]);
|
|
4304
4282
|
return e;
|
|
4305
|
-
},
|
|
4283
|
+
}, ie = (e, t) => {
|
|
4306
4284
|
var r = {};
|
|
4307
4285
|
for (var n in e)
|
|
4308
|
-
|
|
4309
|
-
if (e != null &&
|
|
4310
|
-
for (var n of
|
|
4311
|
-
t.indexOf(n) < 0 &&
|
|
4286
|
+
dr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4287
|
+
if (e != null && xe)
|
|
4288
|
+
for (var n of xe(e))
|
|
4289
|
+
t.indexOf(n) < 0 && pr.call(e, n) && (r[n] = e[n]);
|
|
4312
4290
|
return r;
|
|
4313
4291
|
};
|
|
4314
|
-
const
|
|
4315
|
-
const { formats: r } =
|
|
4292
|
+
const le = (e, t) => {
|
|
4293
|
+
const { formats: r } = te();
|
|
4316
4294
|
if (e in r && t in r[e])
|
|
4317
4295
|
return r[e][t];
|
|
4318
4296
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4319
|
-
},
|
|
4297
|
+
}, Oi = Pe(
|
|
4320
4298
|
(e) => {
|
|
4321
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4299
|
+
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
|
4322
4300
|
if (r == null)
|
|
4323
4301
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4324
|
-
return n && (i =
|
|
4302
|
+
return n && (i = le("number", n)), new Intl.NumberFormat(r, i);
|
|
4325
4303
|
}
|
|
4326
|
-
),
|
|
4304
|
+
), Ii = Pe(
|
|
4327
4305
|
(e) => {
|
|
4328
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4306
|
+
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
|
4329
4307
|
if (r == null)
|
|
4330
4308
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4331
|
-
return n ? i =
|
|
4309
|
+
return n ? i = le("date", n) : Object.keys(i).length === 0 && (i = le("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4332
4310
|
}
|
|
4333
|
-
),
|
|
4311
|
+
), Ci = Pe(
|
|
4334
4312
|
(e) => {
|
|
4335
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4313
|
+
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
|
4336
4314
|
if (r == null)
|
|
4337
4315
|
throw new Error(
|
|
4338
4316
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4339
4317
|
);
|
|
4340
|
-
return n ? i =
|
|
4318
|
+
return n ? i = le("time", n) : Object.keys(i).length === 0 && (i = le("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4341
4319
|
}
|
|
4342
|
-
),
|
|
4320
|
+
), Li = (e = {}) => {
|
|
4343
4321
|
var t = e, {
|
|
4344
4322
|
locale: r = W()
|
|
4345
|
-
} = t, n =
|
|
4323
|
+
} = t, n = ie(t, [
|
|
4346
4324
|
"locale"
|
|
4347
4325
|
]);
|
|
4348
|
-
return
|
|
4349
|
-
},
|
|
4326
|
+
return Oi(et({ locale: r }, n));
|
|
4327
|
+
}, Ni = (e = {}) => {
|
|
4350
4328
|
var t = e, {
|
|
4351
4329
|
locale: r = W()
|
|
4352
|
-
} = t, n =
|
|
4330
|
+
} = t, n = ie(t, [
|
|
4353
4331
|
"locale"
|
|
4354
4332
|
]);
|
|
4355
|
-
return
|
|
4356
|
-
},
|
|
4333
|
+
return Ii(et({ locale: r }, n));
|
|
4334
|
+
}, Mi = (e = {}) => {
|
|
4357
4335
|
var t = e, {
|
|
4358
4336
|
locale: r = W()
|
|
4359
|
-
} = t, n =
|
|
4337
|
+
} = t, n = ie(t, [
|
|
4360
4338
|
"locale"
|
|
4361
4339
|
]);
|
|
4362
|
-
return
|
|
4363
|
-
},
|
|
4340
|
+
return Ci(et({ locale: r }, n));
|
|
4341
|
+
}, Ri = Pe(
|
|
4364
4342
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4365
|
-
(e, t = W()) => new
|
|
4366
|
-
ignoreTag:
|
|
4343
|
+
(e, t = W()) => new li(e, t, te().formats, {
|
|
4344
|
+
ignoreTag: te().ignoreTag
|
|
4367
4345
|
})
|
|
4368
|
-
),
|
|
4346
|
+
), $i = (e, t = {}) => {
|
|
4369
4347
|
var r, n, i, o;
|
|
4370
4348
|
let a = t;
|
|
4371
4349
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -4378,9 +4356,9 @@ const he = (e, t) => {
|
|
|
4378
4356
|
throw new Error(
|
|
4379
4357
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4380
4358
|
);
|
|
4381
|
-
let h =
|
|
4359
|
+
let h = ur(e, l);
|
|
4382
4360
|
if (!h)
|
|
4383
|
-
h = (o = (i = (n = (r =
|
|
4361
|
+
h = (o = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4384
4362
|
else if (typeof h != "string")
|
|
4385
4363
|
return console.warn(
|
|
4386
4364
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4389,7 +4367,7 @@ const he = (e, t) => {
|
|
|
4389
4367
|
return h;
|
|
4390
4368
|
let f = h;
|
|
4391
4369
|
try {
|
|
4392
|
-
f =
|
|
4370
|
+
f = Ri(h, l).format(s);
|
|
4393
4371
|
} catch (c) {
|
|
4394
4372
|
c instanceof Error && console.warn(
|
|
4395
4373
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4397,16 +4375,16 @@ const he = (e, t) => {
|
|
|
4397
4375
|
);
|
|
4398
4376
|
}
|
|
4399
4377
|
return f;
|
|
4400
|
-
},
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
window.emWidgets = { topic:
|
|
4406
|
-
const
|
|
4407
|
-
function
|
|
4378
|
+
}, Di = (e, t) => Mi(t).format(e), Ui = (e, t) => Ni(t).format(e), Gi = (e, t) => Li(t).format(e), Fi = (e, t = W()) => ur(e, t), ji = re([ne, ce], () => $i);
|
|
4379
|
+
re([ne], () => Di);
|
|
4380
|
+
re([ne], () => Ui);
|
|
4381
|
+
re([ne], () => Gi);
|
|
4382
|
+
re([ne, ce], () => Fi);
|
|
4383
|
+
window.emWidgets = { topic: en };
|
|
4384
|
+
const mr = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), ki = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4385
|
+
function Eo(e, t) {
|
|
4408
4386
|
const r = window.navigator.userAgent;
|
|
4409
|
-
return
|
|
4387
|
+
return mr(r) ? t = e.filter((n) => {
|
|
4410
4388
|
if (n.gameModel && (n.gameModel.platform.includes("iPad") || n.gameModel.platform.includes("iPhone") || n.gameModel.platform.includes("Android")))
|
|
4411
4389
|
return n;
|
|
4412
4390
|
}) : t = e.filter((n) => {
|
|
@@ -4414,13 +4392,13 @@ function To(e, t) {
|
|
|
4414
4392
|
return n;
|
|
4415
4393
|
}), t;
|
|
4416
4394
|
}
|
|
4417
|
-
function
|
|
4395
|
+
function Vi(e, t) {
|
|
4418
4396
|
if (e) {
|
|
4419
4397
|
const r = document.createElement("style");
|
|
4420
4398
|
r.innerHTML = t, e.appendChild(r);
|
|
4421
4399
|
}
|
|
4422
4400
|
}
|
|
4423
|
-
function
|
|
4401
|
+
function Xi(e, t) {
|
|
4424
4402
|
const r = new URL(t);
|
|
4425
4403
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4426
4404
|
const i = document.createElement("style");
|
|
@@ -4429,7 +4407,7 @@ function Zi(e, t) {
|
|
|
4429
4407
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4430
4408
|
});
|
|
4431
4409
|
}
|
|
4432
|
-
function
|
|
4410
|
+
function Wi(e, t, r) {
|
|
4433
4411
|
if (window.emMessageBus) {
|
|
4434
4412
|
const n = document.createElement("style");
|
|
4435
4413
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4437,13 +4415,13 @@ function Qi(e, t, r) {
|
|
|
4437
4415
|
});
|
|
4438
4416
|
}
|
|
4439
4417
|
}
|
|
4440
|
-
function
|
|
4441
|
-
|
|
4418
|
+
function Tt(e, t) {
|
|
4419
|
+
hr(e, t);
|
|
4442
4420
|
}
|
|
4443
|
-
function
|
|
4444
|
-
|
|
4421
|
+
function zi(e) {
|
|
4422
|
+
ne.set(e);
|
|
4445
4423
|
}
|
|
4446
|
-
const
|
|
4424
|
+
const Ht = {
|
|
4447
4425
|
en: {
|
|
4448
4426
|
error: "500 Error - Internal Server Error"
|
|
4449
4427
|
},
|
|
@@ -4475,7 +4453,7 @@ if (typeof window < "u") {
|
|
|
4475
4453
|
}
|
|
4476
4454
|
};
|
|
4477
4455
|
};
|
|
4478
|
-
customElements.define = e(customElements.define), import("./CasinoCalendarDailyDetails-
|
|
4456
|
+
customElements.define = e(customElements.define), import("./CasinoCalendarDailyDetails-BP_ANGdX.js").then(({ default: t }) => {
|
|
4479
4457
|
!customElements.get("casino-calendar-daily-details") && customElements.define("casino-calendar-daily-details", t.element);
|
|
4480
4458
|
});
|
|
4481
4459
|
}
|
|
@@ -4491,77 +4469,77 @@ if (typeof window < "u") {
|
|
|
4491
4469
|
}
|
|
4492
4470
|
};
|
|
4493
4471
|
};
|
|
4494
|
-
customElements.define = e(customElements.define), import("./CasinoCalendarDailyItem-
|
|
4472
|
+
customElements.define = e(customElements.define), import("./CasinoCalendarDailyItem-DE7Q_O2x.js").then(({ default: t }) => {
|
|
4495
4473
|
!customElements.get("casino-calendar-daily-item") && customElements.define("casino-calendar-daily-item", t.element);
|
|
4496
4474
|
});
|
|
4497
4475
|
}
|
|
4498
|
-
function
|
|
4499
|
-
|
|
4500
|
-
}.LoadingSpinner.svelte-
|
|
4476
|
+
function Zi(e) {
|
|
4477
|
+
_r(e, "svelte-61avp5", `.svelte-61avp5{font-family:inherit}.CasinoCalendarItem.svelte-61avp5{display:flex;flex-direction:row;flex-wrap:nowrap;text-align:left;gap:10px;overflow-x:auto;overflow-y:hidden;justify-content:space-evenly}.Mobile.svelte-61avp5{padding:0 10px;height:286px;overflow-y:visible;overflow-x:scroll;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.CalendarDetailsWrapper.svelte-61avp5{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:var(--emw--color-dark-gray, rgba(0, 0, 0, 0.9))}.LoadingSpinner.svelte-61avp5{display:block;width:80px;height:80px;margin:0 auto
|
|
4478
|
+
}.LoadingSpinner.svelte-61avp5:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:svelte-61avp5-LoadingSpinner 1.2s linear infinite}@keyframes svelte-61avp5-LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}`);
|
|
4501
4479
|
}
|
|
4502
|
-
function
|
|
4480
|
+
function Bt(e, t, r) {
|
|
4503
4481
|
const n = e.slice();
|
|
4504
4482
|
return n[25] = t[r], n[27] = r, n;
|
|
4505
4483
|
}
|
|
4506
|
-
function
|
|
4507
|
-
let t, r, n, i =
|
|
4484
|
+
function Qi(e) {
|
|
4485
|
+
let t, r, n, i = it(
|
|
4508
4486
|
/*calendarCollections*/
|
|
4509
|
-
e[
|
|
4487
|
+
e[6]
|
|
4510
4488
|
), o = [];
|
|
4511
4489
|
for (let s = 0; s < i.length; s += 1)
|
|
4512
|
-
o[s] =
|
|
4490
|
+
o[s] = Pt(Bt(e, i, s));
|
|
4513
4491
|
let a = (
|
|
4514
4492
|
/*calendarModalOpened*/
|
|
4515
|
-
e[
|
|
4493
|
+
e[11] == !0 && At(e)
|
|
4516
4494
|
);
|
|
4517
4495
|
return {
|
|
4518
4496
|
c() {
|
|
4519
4497
|
t = L("div");
|
|
4520
4498
|
for (let s = 0; s < o.length; s += 1)
|
|
4521
4499
|
o[s].c();
|
|
4522
|
-
r =
|
|
4523
|
-
(e[
|
|
4500
|
+
r = Tr(), a && a.c(), j(t, "class", n = "CasinoCalendarItem " + /*mobileView*/
|
|
4501
|
+
(e[10] ? "Mobile" : "") + " svelte-61avp5");
|
|
4524
4502
|
},
|
|
4525
4503
|
m(s, l) {
|
|
4526
|
-
|
|
4504
|
+
k(s, t, l);
|
|
4527
4505
|
for (let u = 0; u < o.length; u += 1)
|
|
4528
4506
|
o[u] && o[u].m(t, null);
|
|
4529
|
-
|
|
4507
|
+
he(t, r), a && a.m(t, null);
|
|
4530
4508
|
},
|
|
4531
4509
|
p(s, l) {
|
|
4532
|
-
if (l & /*calendarCollections, lang, clientstyling, clientstylingurl, translationurl*/
|
|
4533
|
-
|
|
4534
|
-
i =
|
|
4510
|
+
if (l & /*calendarCollections, lang, clientstyling, clientstylingurl, mbsource, translationurl*/
|
|
4511
|
+
95) {
|
|
4512
|
+
i = it(
|
|
4535
4513
|
/*calendarCollections*/
|
|
4536
|
-
s[
|
|
4514
|
+
s[6]
|
|
4537
4515
|
);
|
|
4538
4516
|
let u;
|
|
4539
4517
|
for (u = 0; u < i.length; u += 1) {
|
|
4540
|
-
const h =
|
|
4541
|
-
o[u] ? o[u].p(h, l) : (o[u] =
|
|
4518
|
+
const h = Bt(s, i, u);
|
|
4519
|
+
o[u] ? o[u].p(h, l) : (o[u] = Pt(h), o[u].c(), o[u].m(t, r));
|
|
4542
4520
|
}
|
|
4543
4521
|
for (; u < o.length; u += 1)
|
|
4544
4522
|
o[u].d(1);
|
|
4545
4523
|
o.length = i.length;
|
|
4546
4524
|
}
|
|
4547
4525
|
/*calendarModalOpened*/
|
|
4548
|
-
s[
|
|
4549
|
-
|
|
4550
|
-
(s[
|
|
4526
|
+
s[11] == !0 ? a ? a.p(s, l) : (a = At(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null), l & /*mobileView*/
|
|
4527
|
+
1024 && n !== (n = "CasinoCalendarItem " + /*mobileView*/
|
|
4528
|
+
(s[10] ? "Mobile" : "") + " svelte-61avp5") && j(t, "class", n);
|
|
4551
4529
|
},
|
|
4552
4530
|
d(s) {
|
|
4553
|
-
s && $(t),
|
|
4531
|
+
s && $(t), wr(o, s), a && a.d();
|
|
4554
4532
|
}
|
|
4555
4533
|
};
|
|
4556
4534
|
}
|
|
4557
|
-
function
|
|
4535
|
+
function Ji(e) {
|
|
4558
4536
|
let t;
|
|
4559
4537
|
return {
|
|
4560
4538
|
c() {
|
|
4561
|
-
t = L("div"),
|
|
4539
|
+
t = L("div"), j(t, "class", "LoadingSpinner svelte-61avp5");
|
|
4562
4540
|
},
|
|
4563
4541
|
m(r, n) {
|
|
4564
|
-
|
|
4542
|
+
k(r, t, n);
|
|
4565
4543
|
},
|
|
4566
4544
|
p: P,
|
|
4567
4545
|
d(r) {
|
|
@@ -4569,98 +4547,109 @@ function eo(e) {
|
|
|
4569
4547
|
}
|
|
4570
4548
|
};
|
|
4571
4549
|
}
|
|
4572
|
-
function
|
|
4550
|
+
function qi(e) {
|
|
4573
4551
|
let t, r = (
|
|
4574
4552
|
/*$_*/
|
|
4575
|
-
e[
|
|
4553
|
+
e[12]("error") + ""
|
|
4576
4554
|
), n;
|
|
4577
4555
|
return {
|
|
4578
4556
|
c() {
|
|
4579
|
-
t = L("p"), n =
|
|
4557
|
+
t = L("p"), n = Ye(r), j(t, "class", "SearchLoading svelte-61avp5");
|
|
4580
4558
|
},
|
|
4581
4559
|
m(i, o) {
|
|
4582
|
-
|
|
4560
|
+
k(i, t, o), he(t, n);
|
|
4583
4561
|
},
|
|
4584
4562
|
p(i, o) {
|
|
4585
4563
|
o & /*$_*/
|
|
4586
|
-
|
|
4587
|
-
i[
|
|
4564
|
+
4096 && r !== (r = /*$_*/
|
|
4565
|
+
i[12]("error") + "") && Br(n, r);
|
|
4588
4566
|
},
|
|
4589
4567
|
d(i) {
|
|
4590
4568
|
i && $(t);
|
|
4591
4569
|
}
|
|
4592
4570
|
};
|
|
4593
4571
|
}
|
|
4594
|
-
function
|
|
4572
|
+
function Pt(e) {
|
|
4595
4573
|
let t, r, n, i, o, a;
|
|
4596
4574
|
return {
|
|
4597
4575
|
c() {
|
|
4598
|
-
t = L("casino-calendar-daily-item"),
|
|
4599
|
-
e[25].dailyBackground),
|
|
4600
|
-
e[25].dailyIcon),
|
|
4601
|
-
e[25].dailyDay),
|
|
4602
|
-
e[25].dailyDescription),
|
|
4603
|
-
e[25].dailyButtonTitle),
|
|
4576
|
+
t = L("casino-calendar-daily-item"), p(t, "dailybackground", r = /*dailyCalendarData*/
|
|
4577
|
+
e[25].dailyBackground), p(t, "dailyicon", n = /*dailyCalendarData*/
|
|
4578
|
+
e[25].dailyIcon), p(t, "dailyday", i = /*dailyCalendarData*/
|
|
4579
|
+
e[25].dailyDay), p(t, "dailydescription", o = /*dailyCalendarData*/
|
|
4580
|
+
e[25].dailyDescription), p(t, "dailybuttontitle", a = /*dailyCalendarData*/
|
|
4581
|
+
e[25].dailyButtonTitle), p(
|
|
4604
4582
|
t,
|
|
4605
4583
|
"index",
|
|
4606
4584
|
/*index*/
|
|
4607
4585
|
e[27]
|
|
4608
|
-
),
|
|
4586
|
+
), p(
|
|
4609
4587
|
t,
|
|
4610
4588
|
"lang",
|
|
4611
4589
|
/*lang*/
|
|
4612
4590
|
e[0]
|
|
4613
|
-
),
|
|
4591
|
+
), p(
|
|
4614
4592
|
t,
|
|
4615
4593
|
"clientstyling",
|
|
4616
4594
|
/*clientstyling*/
|
|
4617
4595
|
e[1]
|
|
4618
|
-
),
|
|
4596
|
+
), p(
|
|
4619
4597
|
t,
|
|
4620
4598
|
"clientstylingurl",
|
|
4621
4599
|
/*clientstylingurl*/
|
|
4622
4600
|
e[2]
|
|
4623
|
-
),
|
|
4601
|
+
), p(
|
|
4602
|
+
t,
|
|
4603
|
+
"mbsource",
|
|
4604
|
+
/*mbsource*/
|
|
4605
|
+
e[4]
|
|
4606
|
+
), p(
|
|
4624
4607
|
t,
|
|
4625
4608
|
"translationurl",
|
|
4626
4609
|
/*translationurl*/
|
|
4627
4610
|
e[3]
|
|
4628
|
-
);
|
|
4611
|
+
), p(t, "class", "svelte-61avp5");
|
|
4629
4612
|
},
|
|
4630
4613
|
m(s, l) {
|
|
4631
|
-
|
|
4614
|
+
k(s, t, l);
|
|
4632
4615
|
},
|
|
4633
4616
|
p(s, l) {
|
|
4634
4617
|
l & /*calendarCollections*/
|
|
4635
|
-
|
|
4636
|
-
s[25].dailyBackground) &&
|
|
4637
|
-
|
|
4638
|
-
s[25].dailyIcon) &&
|
|
4639
|
-
|
|
4640
|
-
s[25].dailyDay) &&
|
|
4641
|
-
|
|
4642
|
-
s[25].dailyDescription) &&
|
|
4643
|
-
|
|
4644
|
-
s[25].dailyButtonTitle) &&
|
|
4645
|
-
1 &&
|
|
4618
|
+
64 && r !== (r = /*dailyCalendarData*/
|
|
4619
|
+
s[25].dailyBackground) && p(t, "dailybackground", r), l & /*calendarCollections*/
|
|
4620
|
+
64 && n !== (n = /*dailyCalendarData*/
|
|
4621
|
+
s[25].dailyIcon) && p(t, "dailyicon", n), l & /*calendarCollections*/
|
|
4622
|
+
64 && i !== (i = /*dailyCalendarData*/
|
|
4623
|
+
s[25].dailyDay) && p(t, "dailyday", i), l & /*calendarCollections*/
|
|
4624
|
+
64 && o !== (o = /*dailyCalendarData*/
|
|
4625
|
+
s[25].dailyDescription) && p(t, "dailydescription", o), l & /*calendarCollections*/
|
|
4626
|
+
64 && a !== (a = /*dailyCalendarData*/
|
|
4627
|
+
s[25].dailyButtonTitle) && p(t, "dailybuttontitle", a), l & /*lang*/
|
|
4628
|
+
1 && p(
|
|
4646
4629
|
t,
|
|
4647
4630
|
"lang",
|
|
4648
4631
|
/*lang*/
|
|
4649
4632
|
s[0]
|
|
4650
4633
|
), l & /*clientstyling*/
|
|
4651
|
-
2 &&
|
|
4634
|
+
2 && p(
|
|
4652
4635
|
t,
|
|
4653
4636
|
"clientstyling",
|
|
4654
4637
|
/*clientstyling*/
|
|
4655
4638
|
s[1]
|
|
4656
4639
|
), l & /*clientstylingurl*/
|
|
4657
|
-
4 &&
|
|
4640
|
+
4 && p(
|
|
4658
4641
|
t,
|
|
4659
4642
|
"clientstylingurl",
|
|
4660
4643
|
/*clientstylingurl*/
|
|
4661
4644
|
s[2]
|
|
4645
|
+
), l & /*mbsource*/
|
|
4646
|
+
16 && p(
|
|
4647
|
+
t,
|
|
4648
|
+
"mbsource",
|
|
4649
|
+
/*mbsource*/
|
|
4650
|
+
s[4]
|
|
4662
4651
|
), l & /*translationurl*/
|
|
4663
|
-
8 &&
|
|
4652
|
+
8 && p(
|
|
4664
4653
|
t,
|
|
4665
4654
|
"translationurl",
|
|
4666
4655
|
/*translationurl*/
|
|
@@ -4672,110 +4661,121 @@ function Ct(e) {
|
|
|
4672
4661
|
}
|
|
4673
4662
|
};
|
|
4674
4663
|
}
|
|
4675
|
-
function
|
|
4664
|
+
function At(e) {
|
|
4676
4665
|
let t, r, n, i, o, a, s, l;
|
|
4677
4666
|
return {
|
|
4678
4667
|
c() {
|
|
4679
|
-
t = L("div"), r = L("casino-calendar-daily-details"),
|
|
4680
|
-
e[
|
|
4668
|
+
t = L("div"), r = L("casino-calendar-daily-details"), p(r, "dailybackground", n = /*calendarCollections*/
|
|
4669
|
+
e[6][
|
|
4681
4670
|
/*selectedIndex*/
|
|
4682
|
-
e[
|
|
4683
|
-
].dailyBackground),
|
|
4684
|
-
e[
|
|
4671
|
+
e[7]
|
|
4672
|
+
].dailyBackground), p(r, "dailybuttontitle", i = /*calendarCollections*/
|
|
4673
|
+
e[6][
|
|
4685
4674
|
/*selectedIndex*/
|
|
4686
|
-
e[
|
|
4687
|
-
].dailyButtonTitle),
|
|
4688
|
-
e[
|
|
4675
|
+
e[7]
|
|
4676
|
+
].dailyButtonTitle), p(r, "dailyday", o = /*calendarCollections*/
|
|
4677
|
+
e[6][
|
|
4689
4678
|
/*selectedIndex*/
|
|
4690
|
-
e[
|
|
4691
|
-
].dailyDay),
|
|
4692
|
-
e[
|
|
4679
|
+
e[7]
|
|
4680
|
+
].dailyDay), p(r, "dailydescription", a = /*calendarCollections*/
|
|
4681
|
+
e[6][
|
|
4693
4682
|
/*selectedIndex*/
|
|
4694
|
-
e[
|
|
4695
|
-
].dailyDescription),
|
|
4696
|
-
e[
|
|
4683
|
+
e[7]
|
|
4684
|
+
].dailyDescription), p(r, "dailyicon", s = /*calendarCollections*/
|
|
4685
|
+
e[6][
|
|
4697
4686
|
/*selectedIndex*/
|
|
4698
|
-
e[
|
|
4699
|
-
].dailyIcon),
|
|
4700
|
-
e[
|
|
4687
|
+
e[7]
|
|
4688
|
+
].dailyIcon), p(r, "dailytitle", l = /*calendarCollections*/
|
|
4689
|
+
e[6][
|
|
4701
4690
|
/*selectedIndex*/
|
|
4702
|
-
e[
|
|
4703
|
-
].dailyTitle),
|
|
4691
|
+
e[7]
|
|
4692
|
+
].dailyTitle), p(
|
|
4704
4693
|
r,
|
|
4705
4694
|
"lang",
|
|
4706
4695
|
/*lang*/
|
|
4707
4696
|
e[0]
|
|
4708
|
-
),
|
|
4697
|
+
), p(
|
|
4709
4698
|
r,
|
|
4710
4699
|
"clientstyling",
|
|
4711
4700
|
/*clientstyling*/
|
|
4712
4701
|
e[1]
|
|
4713
|
-
),
|
|
4702
|
+
), p(
|
|
4714
4703
|
r,
|
|
4715
4704
|
"clientstylingurl",
|
|
4716
4705
|
/*clientstylingurl*/
|
|
4717
4706
|
e[2]
|
|
4718
|
-
),
|
|
4707
|
+
), p(
|
|
4708
|
+
r,
|
|
4709
|
+
"mbsource",
|
|
4710
|
+
/*mbsource*/
|
|
4711
|
+
e[4]
|
|
4712
|
+
), p(
|
|
4719
4713
|
r,
|
|
4720
4714
|
"translationurl",
|
|
4721
4715
|
/*translationurl*/
|
|
4722
4716
|
e[3]
|
|
4723
|
-
),
|
|
4717
|
+
), p(r, "class", "svelte-61avp5"), j(t, "class", "CalendarDetailsWrapper svelte-61avp5");
|
|
4724
4718
|
},
|
|
4725
4719
|
m(u, h) {
|
|
4726
|
-
|
|
4720
|
+
k(u, t, h), he(t, r);
|
|
4727
4721
|
},
|
|
4728
4722
|
p(u, h) {
|
|
4729
4723
|
h & /*calendarCollections, selectedIndex*/
|
|
4730
|
-
|
|
4731
|
-
u[
|
|
4724
|
+
192 && n !== (n = /*calendarCollections*/
|
|
4725
|
+
u[6][
|
|
4732
4726
|
/*selectedIndex*/
|
|
4733
|
-
u[
|
|
4734
|
-
].dailyBackground) &&
|
|
4735
|
-
|
|
4736
|
-
u[
|
|
4727
|
+
u[7]
|
|
4728
|
+
].dailyBackground) && p(r, "dailybackground", n), h & /*calendarCollections, selectedIndex*/
|
|
4729
|
+
192 && i !== (i = /*calendarCollections*/
|
|
4730
|
+
u[6][
|
|
4737
4731
|
/*selectedIndex*/
|
|
4738
|
-
u[
|
|
4739
|
-
].dailyButtonTitle) &&
|
|
4740
|
-
|
|
4741
|
-
u[
|
|
4732
|
+
u[7]
|
|
4733
|
+
].dailyButtonTitle) && p(r, "dailybuttontitle", i), h & /*calendarCollections, selectedIndex*/
|
|
4734
|
+
192 && o !== (o = /*calendarCollections*/
|
|
4735
|
+
u[6][
|
|
4742
4736
|
/*selectedIndex*/
|
|
4743
|
-
u[
|
|
4744
|
-
].dailyDay) &&
|
|
4745
|
-
|
|
4746
|
-
u[
|
|
4737
|
+
u[7]
|
|
4738
|
+
].dailyDay) && p(r, "dailyday", o), h & /*calendarCollections, selectedIndex*/
|
|
4739
|
+
192 && a !== (a = /*calendarCollections*/
|
|
4740
|
+
u[6][
|
|
4747
4741
|
/*selectedIndex*/
|
|
4748
|
-
u[
|
|
4749
|
-
].dailyDescription) &&
|
|
4750
|
-
|
|
4751
|
-
u[
|
|
4742
|
+
u[7]
|
|
4743
|
+
].dailyDescription) && p(r, "dailydescription", a), h & /*calendarCollections, selectedIndex*/
|
|
4744
|
+
192 && s !== (s = /*calendarCollections*/
|
|
4745
|
+
u[6][
|
|
4752
4746
|
/*selectedIndex*/
|
|
4753
|
-
u[
|
|
4754
|
-
].dailyIcon) &&
|
|
4755
|
-
|
|
4756
|
-
u[
|
|
4747
|
+
u[7]
|
|
4748
|
+
].dailyIcon) && p(r, "dailyicon", s), h & /*calendarCollections, selectedIndex*/
|
|
4749
|
+
192 && l !== (l = /*calendarCollections*/
|
|
4750
|
+
u[6][
|
|
4757
4751
|
/*selectedIndex*/
|
|
4758
|
-
u[
|
|
4759
|
-
].dailyTitle) &&
|
|
4760
|
-
1 &&
|
|
4752
|
+
u[7]
|
|
4753
|
+
].dailyTitle) && p(r, "dailytitle", l), h & /*lang*/
|
|
4754
|
+
1 && p(
|
|
4761
4755
|
r,
|
|
4762
4756
|
"lang",
|
|
4763
4757
|
/*lang*/
|
|
4764
4758
|
u[0]
|
|
4765
4759
|
), h & /*clientstyling*/
|
|
4766
|
-
2 &&
|
|
4760
|
+
2 && p(
|
|
4767
4761
|
r,
|
|
4768
4762
|
"clientstyling",
|
|
4769
4763
|
/*clientstyling*/
|
|
4770
4764
|
u[1]
|
|
4771
4765
|
), h & /*clientstylingurl*/
|
|
4772
|
-
4 &&
|
|
4766
|
+
4 && p(
|
|
4773
4767
|
r,
|
|
4774
4768
|
"clientstylingurl",
|
|
4775
4769
|
/*clientstylingurl*/
|
|
4776
4770
|
u[2]
|
|
4771
|
+
), h & /*mbsource*/
|
|
4772
|
+
16 && p(
|
|
4773
|
+
r,
|
|
4774
|
+
"mbsource",
|
|
4775
|
+
/*mbsource*/
|
|
4776
|
+
u[4]
|
|
4777
4777
|
), h & /*translationurl*/
|
|
4778
|
-
8 &&
|
|
4778
|
+
8 && p(
|
|
4779
4779
|
r,
|
|
4780
4780
|
"translationurl",
|
|
4781
4781
|
/*translationurl*/
|
|
@@ -4787,29 +4787,29 @@ function Lt(e) {
|
|
|
4787
4787
|
}
|
|
4788
4788
|
};
|
|
4789
4789
|
}
|
|
4790
|
-
function
|
|
4790
|
+
function Yi(e) {
|
|
4791
4791
|
let t;
|
|
4792
4792
|
function r(o, a) {
|
|
4793
4793
|
if (
|
|
4794
4794
|
/*hasErrors*/
|
|
4795
|
-
o[
|
|
4796
|
-
) return
|
|
4795
|
+
o[9]
|
|
4796
|
+
) return qi;
|
|
4797
4797
|
if (
|
|
4798
4798
|
/*isLoading*/
|
|
4799
|
-
o[
|
|
4800
|
-
) return
|
|
4799
|
+
o[8]
|
|
4800
|
+
) return Ji;
|
|
4801
4801
|
if (
|
|
4802
4802
|
/*calendarCollections*/
|
|
4803
|
-
o[
|
|
4804
|
-
) return
|
|
4803
|
+
o[6]?.length
|
|
4804
|
+
) return Qi;
|
|
4805
4805
|
}
|
|
4806
4806
|
let n = r(e), i = n && n(e);
|
|
4807
4807
|
return {
|
|
4808
4808
|
c() {
|
|
4809
|
-
t = L("div"), i && i.c();
|
|
4809
|
+
t = L("div"), i && i.c(), j(t, "class", "svelte-61avp5");
|
|
4810
4810
|
},
|
|
4811
4811
|
m(o, a) {
|
|
4812
|
-
|
|
4812
|
+
k(o, t, a), i && i.m(t, null), e[16](t);
|
|
4813
4813
|
},
|
|
4814
4814
|
p(o, [a]) {
|
|
4815
4815
|
n === (n = r(o)) && i ? i.p(o, a) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
|
|
@@ -4821,42 +4821,42 @@ function ro(e) {
|
|
|
4821
4821
|
}
|
|
4822
4822
|
};
|
|
4823
4823
|
}
|
|
4824
|
-
function
|
|
4824
|
+
function Ki(e, t, r) {
|
|
4825
4825
|
let n;
|
|
4826
|
-
|
|
4827
|
-
let { cmsendpoint: i = "" } = t, { env: o = "" } = t, { userroles: a = "" } = t, { lang: s = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h } = t, { mbsource: f } = t, c,
|
|
4828
|
-
const
|
|
4829
|
-
|
|
4826
|
+
vr(e, ji, (d) => r(12, n = d));
|
|
4827
|
+
let { cmsendpoint: i = "" } = t, { env: o = "" } = t, { userroles: a = "" } = t, { lang: s = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h } = t, { mbsource: f } = t, c, m, b = 0, g = !0, w = !1, A = !1, H = window.navigator.userAgent, S = !1;
|
|
4828
|
+
const N = () => {
|
|
4829
|
+
zi(s);
|
|
4830
4830
|
};
|
|
4831
|
-
Object.keys(
|
|
4832
|
-
|
|
4831
|
+
Object.keys(Ht).forEach((d) => {
|
|
4832
|
+
Tt(d, Ht[d]);
|
|
4833
4833
|
});
|
|
4834
|
-
const
|
|
4835
|
-
let
|
|
4836
|
-
if (
|
|
4837
|
-
return fetch(
|
|
4834
|
+
const O = () => {
|
|
4835
|
+
let d = h;
|
|
4836
|
+
if (d)
|
|
4837
|
+
return fetch(d).then((C) => C.json()).then((C) => {
|
|
4838
4838
|
Object.keys(C).forEach((G) => {
|
|
4839
|
-
|
|
4839
|
+
Tt(G, C[G]);
|
|
4840
4840
|
});
|
|
4841
4841
|
}).catch((C) => {
|
|
4842
4842
|
console.log(C);
|
|
4843
4843
|
});
|
|
4844
|
-
},
|
|
4845
|
-
r(
|
|
4846
|
-
let
|
|
4847
|
-
|
|
4848
|
-
let C =
|
|
4849
|
-
C && (C === "PC" ?
|
|
4850
|
-
r(
|
|
4844
|
+
}, M = () => {
|
|
4845
|
+
r(8, g = !0);
|
|
4846
|
+
let d = new URL(`${i}/${s}/daily-calendar`);
|
|
4847
|
+
d.searchParams.append("userRoles", a), d.searchParams.append("env", o);
|
|
4848
|
+
let C = ki(H);
|
|
4849
|
+
C && (C === "PC" ? d.searchParams.append("device", "dk") : C === "iPad" || C === "iPhone" ? d.searchParams.append("device", "ios") : d.searchParams.append("device", "mtWeb")), fetch(d.href).then((G) => G.json()).then((G) => {
|
|
4850
|
+
r(6, m = G);
|
|
4851
4851
|
}).catch((G) => {
|
|
4852
|
-
console.log(G), r(
|
|
4852
|
+
console.log(G), r(9, w = !0);
|
|
4853
4853
|
}).finally(() => {
|
|
4854
|
-
r(
|
|
4854
|
+
r(8, g = !1);
|
|
4855
4855
|
});
|
|
4856
|
-
},
|
|
4857
|
-
|
|
4858
|
-
}, B = (
|
|
4859
|
-
|
|
4856
|
+
}, x = () => {
|
|
4857
|
+
M();
|
|
4858
|
+
}, B = (d) => {
|
|
4859
|
+
d.data && d.data.type == "OpenCalendar" && (r(7, b = d.data.index), r(11, S = !0), window.postMessage(
|
|
4860
4860
|
{
|
|
4861
4861
|
type: "ShowModal",
|
|
4862
4862
|
selectedIndex: b,
|
|
@@ -4865,34 +4865,35 @@ function no(e, t, r) {
|
|
|
4865
4865
|
window.location.href
|
|
4866
4866
|
), window.postMessage({
|
|
4867
4867
|
type: "DailyEventsData",
|
|
4868
|
-
data:
|
|
4869
|
-
})),
|
|
4868
|
+
data: m[b]?.dailyEvents
|
|
4869
|
+
})), d.data && d.data.type == "ModalClosed" && r(11, S = !1);
|
|
4870
4870
|
};
|
|
4871
|
-
|
|
4872
|
-
window.
|
|
4871
|
+
Or(() => (window.addEventListener("message", B, !1), mr(H) && r(10, A = !0), () => {
|
|
4872
|
+
window.removeEventListener("message", B);
|
|
4873
4873
|
}));
|
|
4874
|
-
function
|
|
4875
|
-
|
|
4876
|
-
c =
|
|
4874
|
+
function I(d) {
|
|
4875
|
+
Re[d ? "unshift" : "push"](() => {
|
|
4876
|
+
c = d, r(5, c);
|
|
4877
4877
|
});
|
|
4878
4878
|
}
|
|
4879
|
-
return e.$$set = (
|
|
4880
|
-
"cmsendpoint" in
|
|
4879
|
+
return e.$$set = (d) => {
|
|
4880
|
+
"cmsendpoint" in d && r(13, i = d.cmsendpoint), "env" in d && r(14, o = d.env), "userroles" in d && r(15, a = d.userroles), "lang" in d && r(0, s = d.lang), "clientstyling" in d && r(1, l = d.clientstyling), "clientstylingurl" in d && r(2, u = d.clientstylingurl), "translationurl" in d && r(3, h = d.translationurl), "mbsource" in d && r(4, f = d.mbsource);
|
|
4881
4881
|
}, e.$$.update = () => {
|
|
4882
4882
|
e.$$.dirty & /*cmsendpoint, lang, env, userroles*/
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
1 && s &&
|
|
4888
|
-
9 && s && h &&
|
|
4883
|
+
57345 && i && s && o && a && x(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4884
|
+
34 && l && c && Vi(c, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4885
|
+
36 && u && c && Xi(c, u), e.$$.dirty & /*customStylingContainer, mbsource*/
|
|
4886
|
+
48 && c && Wi(c, `${f}.Style`), e.$$.dirty & /*lang*/
|
|
4887
|
+
1 && s && N(), e.$$.dirty & /*lang, translationurl*/
|
|
4888
|
+
9 && s && h && O();
|
|
4889
4889
|
}, [
|
|
4890
4890
|
s,
|
|
4891
4891
|
l,
|
|
4892
4892
|
u,
|
|
4893
4893
|
h,
|
|
4894
|
+
f,
|
|
4894
4895
|
c,
|
|
4895
|
-
|
|
4896
|
+
m,
|
|
4896
4897
|
b,
|
|
4897
4898
|
g,
|
|
4898
4899
|
w,
|
|
@@ -4902,45 +4903,44 @@ function no(e, t, r) {
|
|
|
4902
4903
|
i,
|
|
4903
4904
|
o,
|
|
4904
4905
|
a,
|
|
4905
|
-
|
|
4906
|
-
z
|
|
4906
|
+
I
|
|
4907
4907
|
];
|
|
4908
4908
|
}
|
|
4909
|
-
class
|
|
4909
|
+
class br extends Dr {
|
|
4910
4910
|
constructor(t) {
|
|
4911
|
-
super(),
|
|
4911
|
+
super(), Rr(
|
|
4912
4912
|
this,
|
|
4913
4913
|
t,
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4914
|
+
Ki,
|
|
4915
|
+
Yi,
|
|
4916
|
+
It,
|
|
4917
4917
|
{
|
|
4918
|
-
cmsendpoint:
|
|
4919
|
-
env:
|
|
4920
|
-
userroles:
|
|
4918
|
+
cmsendpoint: 13,
|
|
4919
|
+
env: 14,
|
|
4920
|
+
userroles: 15,
|
|
4921
4921
|
lang: 0,
|
|
4922
4922
|
clientstyling: 1,
|
|
4923
4923
|
clientstylingurl: 2,
|
|
4924
4924
|
translationurl: 3,
|
|
4925
|
-
mbsource:
|
|
4925
|
+
mbsource: 4
|
|
4926
4926
|
},
|
|
4927
|
-
|
|
4927
|
+
Zi
|
|
4928
4928
|
);
|
|
4929
4929
|
}
|
|
4930
4930
|
get cmsendpoint() {
|
|
4931
|
-
return this.$$.ctx[
|
|
4931
|
+
return this.$$.ctx[13];
|
|
4932
4932
|
}
|
|
4933
4933
|
set cmsendpoint(t) {
|
|
4934
4934
|
this.$$set({ cmsendpoint: t }), R();
|
|
4935
4935
|
}
|
|
4936
4936
|
get env() {
|
|
4937
|
-
return this.$$.ctx[
|
|
4937
|
+
return this.$$.ctx[14];
|
|
4938
4938
|
}
|
|
4939
4939
|
set env(t) {
|
|
4940
4940
|
this.$$set({ env: t }), R();
|
|
4941
4941
|
}
|
|
4942
4942
|
get userroles() {
|
|
4943
|
-
return this.$$.ctx[
|
|
4943
|
+
return this.$$.ctx[15];
|
|
4944
4944
|
}
|
|
4945
4945
|
set userroles(t) {
|
|
4946
4946
|
this.$$set({ userroles: t }), R();
|
|
@@ -4970,74 +4970,74 @@ class Er extends kr {
|
|
|
4970
4970
|
this.$$set({ translationurl: t }), R();
|
|
4971
4971
|
}
|
|
4972
4972
|
get mbsource() {
|
|
4973
|
-
return this.$$.ctx[
|
|
4973
|
+
return this.$$.ctx[4];
|
|
4974
4974
|
}
|
|
4975
4975
|
set mbsource(t) {
|
|
4976
4976
|
this.$$set({ mbsource: t }), R();
|
|
4977
4977
|
}
|
|
4978
4978
|
}
|
|
4979
|
-
|
|
4980
|
-
const
|
|
4979
|
+
$r(br, { cmsendpoint: {}, env: {}, userroles: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4980
|
+
const xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4981
4981
|
__proto__: null,
|
|
4982
|
-
default:
|
|
4982
|
+
default: br
|
|
4983
4983
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4984
4984
|
export {
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
4985
|
+
ne as $,
|
|
4986
|
+
rt as A,
|
|
4987
|
+
Tr as B,
|
|
4988
|
+
Re as C,
|
|
4989
|
+
eo as D,
|
|
4990
|
+
Sr as E,
|
|
4991
|
+
so as F,
|
|
4992
|
+
lo as G,
|
|
4993
|
+
fo as H,
|
|
4994
|
+
Vi as I,
|
|
4995
|
+
Xi as J,
|
|
4996
|
+
Wi as K,
|
|
4997
|
+
$r as L,
|
|
4998
|
+
ji as M,
|
|
4999
|
+
ho as N,
|
|
5000
|
+
De as O,
|
|
5001
5001
|
X as P,
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5002
|
+
ao as Q,
|
|
5003
|
+
ce as R,
|
|
5004
|
+
Dr as S,
|
|
5005
|
+
p as T,
|
|
5006
|
+
ki as U,
|
|
5007
|
+
uo as V,
|
|
5008
|
+
co as W,
|
|
5009
|
+
mo as X,
|
|
5010
|
+
Eo as Y,
|
|
5011
|
+
_o as Z,
|
|
5012
|
+
vo as _,
|
|
5013
|
+
hr as a,
|
|
5014
|
+
po as a0,
|
|
5015
|
+
oo as a1,
|
|
5016
|
+
we as a2,
|
|
5017
|
+
xo as a3,
|
|
5018
|
+
_r as b,
|
|
5019
|
+
$t as c,
|
|
5020
|
+
$ as d,
|
|
5021
|
+
yo as e,
|
|
5022
5022
|
R as f,
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5023
|
+
bo as g,
|
|
5024
|
+
k as h,
|
|
5025
|
+
Rr as i,
|
|
5026
|
+
L as j,
|
|
5027
|
+
vr as k,
|
|
5028
|
+
mr as l,
|
|
5029
|
+
Br as m,
|
|
5030
|
+
P as n,
|
|
5031
|
+
Or as o,
|
|
5032
|
+
he as p,
|
|
5033
|
+
Ye as q,
|
|
5034
|
+
j as r,
|
|
5035
|
+
It as s,
|
|
5036
|
+
go as t,
|
|
5037
|
+
to as u,
|
|
5038
|
+
it as v,
|
|
5039
|
+
wr as w,
|
|
5040
|
+
no as x,
|
|
5041
|
+
io as y,
|
|
5042
|
+
ro as z
|
|
5043
5043
|
};
|