@everymatrix/cashier-method-details 1.86.4 → 1.86.6
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/CashierError-0ryZiOME.cjs +8 -0
- package/components/{CashierError-BrH4JtME.js → CashierError-KZG3X_VW.js} +817 -849
- package/components/{CashierError-C38DHl9-.js → CashierError-qzZcJhp7.js} +800 -832
- package/components/{CashierMethodDetails-B9-uo6qb.js → CashierMethodDetails-6lPfk4vA.js} +1231 -1166
- package/components/{CashierMethodDetails-ChQ3M-wq.js → CashierMethodDetails-BOFToO5Y.js} +1818 -1753
- package/components/CashierMethodDetails-C8lF4vEY.cjs +100 -0
- package/components/{CashierModal-BvLB_9aG.js → CashierModal-CanJHV2Y.js} +95 -95
- package/components/{CashierModal-B2BegJ8J.cjs → CashierModal-CxGME_Zs.cjs} +1 -1
- package/components/{CashierModal-CRWjrDnj.js → CashierModal-CyCNGsNN.js} +109 -109
- package/components/{CashierNotifications-3BcrYOeA.js → CashierNotifications-Bo4IAEf_.js} +33 -33
- package/components/{CashierNotifications-CSlK-g-S.js → CashierNotifications-DGAnrrsp.js} +33 -33
- package/components/{CashierNotifications-SEdxNl-z.cjs → CashierNotifications-DTeolEy1.cjs} +1 -1
- package/components/{CashierReceiptPage-B35Jarr_.js → CashierReceiptPage-BQT0fo12.js} +634 -641
- package/components/{CashierReceiptPage-BoTTgL6X.cjs → CashierReceiptPage-DL2-Gcdi.cjs} +2 -2
- package/components/{CashierReceiptPage-4k0rJqmU.js → CashierReceiptPage-DmejCpIW.js} +551 -582
- package/es2015/cashier-method-details.cjs +1 -1
- package/es2015/cashier-method-details.js +1 -1
- package/esnext/cashier-method-details.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652-B6BYeRne.js +542 -0
- package/stencil/index-97d17652-BOr4KAqq.js +558 -0
- package/stencil/index-97d17652-zTl06Vn9.cjs +1 -0
- package/stencil/{ui-image-BDXyFHck.cjs → ui-image-BX-FBhad.cjs} +1 -1
- package/stencil/{ui-image-Cc8wLmDe.js → ui-image-CP8Lp7fB.js} +1 -1
- package/stencil/{ui-image-wH6lu7wS.js → ui-image-Ch-GHki1.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-rCWcyktd.js → ui-image-b7b48fe5-BKRtoUuG.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-CBB2FKRZ.js → ui-image-b7b48fe5-HA45CrsG.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DjCO-ZF4.cjs → ui-image-b7b48fe5-MC0x5ZQd.cjs} +1 -1
- package/stencil/{ui-image_2-BESQEo1l.js → ui-image_2-CmVho0dS.js} +2 -2
- package/stencil/{ui-image_2-ZFidgTXM.cjs → ui-image_2-CyqE6j_W.cjs} +1 -1
- package/stencil/{ui-image_2-BfZmduAK.js → ui-image_2-Daq38JGa.js} +2 -2
- package/components/CashierError-Btvxfcrs.cjs +0 -21
- package/components/CashierMethodDetails-2anZaPtI.cjs +0 -87
- package/stencil/index-97d17652-DvplcHtm.js +0 -558
- package/stencil/index-97d17652-ILzgTtTR.cjs +0 -1
- package/stencil/index-97d17652-p-iQtjus.js +0 -542
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../stencil/ui-image-
|
|
1
|
+
import "../stencil/ui-image-Ch-GHki1.js";
|
|
2
2
|
function B() {
|
|
3
3
|
}
|
|
4
4
|
const Nt = (e) => e;
|
|
@@ -16,23 +16,23 @@ function Lt(e) {
|
|
|
16
16
|
function ht() {
|
|
17
17
|
return /* @__PURE__ */ Object.create(null);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function k(e) {
|
|
20
20
|
e.forEach(Lt);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function he(e) {
|
|
23
23
|
return typeof e == "function";
|
|
24
24
|
}
|
|
25
25
|
function $t(e, t) {
|
|
26
26
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
27
27
|
}
|
|
28
|
-
let
|
|
28
|
+
let de;
|
|
29
29
|
function ct(e, t) {
|
|
30
|
-
return e === t ? !0 : (
|
|
30
|
+
return e === t ? !0 : (de || (de = document.createElement("a")), de.href = t, e === de.href);
|
|
31
31
|
}
|
|
32
32
|
function wr(e) {
|
|
33
33
|
return Object.keys(e).length === 0;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function st(e, ...t) {
|
|
36
36
|
if (e == null) {
|
|
37
37
|
for (const n of t)
|
|
38
38
|
n(void 0);
|
|
@@ -41,14 +41,14 @@ function nt(e, ...t) {
|
|
|
41
41
|
const r = e.subscribe(...t);
|
|
42
42
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ki(e) {
|
|
45
45
|
let t;
|
|
46
|
-
return
|
|
46
|
+
return st(e, (r) => t = r)(), t;
|
|
47
47
|
}
|
|
48
48
|
function Tr(e, t, r) {
|
|
49
|
-
e.$$.on_destroy.push(
|
|
49
|
+
e.$$.on_destroy.push(st(t, r));
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function pe(e, t, r, n) {
|
|
52
52
|
if (e) {
|
|
53
53
|
const i = Rt(e, t, r, n);
|
|
54
54
|
return e[0](i);
|
|
@@ -57,28 +57,28 @@ function de(e, t, r, n) {
|
|
|
57
57
|
function Rt(e, t, r, n) {
|
|
58
58
|
return e[1] && n ? xr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function ge(e, t, r, n) {
|
|
61
61
|
if (e[2] && n) {
|
|
62
62
|
const i = e[2](n(r));
|
|
63
63
|
if (t.dirty === void 0)
|
|
64
64
|
return i;
|
|
65
65
|
if (typeof i == "object") {
|
|
66
|
-
const s = [],
|
|
67
|
-
for (let
|
|
68
|
-
s[
|
|
66
|
+
const s = [], o = Math.max(t.dirty.length, i.length);
|
|
67
|
+
for (let a = 0; a < o; a += 1)
|
|
68
|
+
s[a] = t.dirty[a] | i[a];
|
|
69
69
|
return s;
|
|
70
70
|
}
|
|
71
71
|
return t.dirty | i;
|
|
72
72
|
}
|
|
73
73
|
return t.dirty;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function be(e, t, r, n, i, s) {
|
|
76
76
|
if (i) {
|
|
77
|
-
const
|
|
78
|
-
e.p(
|
|
77
|
+
const o = Rt(t, r, n, s);
|
|
78
|
+
e.p(o, i);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function ye(e) {
|
|
82
82
|
if (e.ctx.length > 32) {
|
|
83
83
|
const t = [], r = e.ctx.length / 32;
|
|
84
84
|
for (let n = 0; n < r; n++)
|
|
@@ -88,39 +88,39 @@ function be(e) {
|
|
|
88
88
|
return -1;
|
|
89
89
|
}
|
|
90
90
|
const Dt = typeof window < "u";
|
|
91
|
-
let kt = Dt ? () => window.performance.now() : () => Date.now(),
|
|
92
|
-
const
|
|
91
|
+
let kt = Dt ? () => window.performance.now() : () => Date.now(), ot = Dt ? (e) => requestAnimationFrame(e) : B;
|
|
92
|
+
const X = /* @__PURE__ */ new Set();
|
|
93
93
|
function Ut(e) {
|
|
94
|
-
|
|
95
|
-
t.c(e) || (
|
|
96
|
-
}),
|
|
94
|
+
X.forEach((t) => {
|
|
95
|
+
t.c(e) || (X.delete(t), t.f());
|
|
96
|
+
}), X.size !== 0 && ot(Ut);
|
|
97
97
|
}
|
|
98
98
|
function Gt(e) {
|
|
99
99
|
let t;
|
|
100
|
-
return
|
|
100
|
+
return X.size === 0 && ot(Ut), {
|
|
101
101
|
promise: new Promise((r) => {
|
|
102
|
-
|
|
102
|
+
X.add(t = { c: e, f: r });
|
|
103
103
|
}),
|
|
104
104
|
abort() {
|
|
105
|
-
|
|
105
|
+
X.delete(t);
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
const
|
|
109
|
+
const es = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : (
|
|
110
110
|
// @ts-ignore Node typings have this
|
|
111
111
|
global
|
|
112
112
|
);
|
|
113
|
-
function
|
|
113
|
+
function N(e, t) {
|
|
114
114
|
e.appendChild(t);
|
|
115
115
|
}
|
|
116
116
|
function Hr(e, t, r) {
|
|
117
|
-
const n =
|
|
117
|
+
const n = at(e);
|
|
118
118
|
if (!n.getElementById(t)) {
|
|
119
|
-
const i =
|
|
119
|
+
const i = C("style");
|
|
120
120
|
i.id = t, i.textContent = r, Ft(n, i);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function at(e) {
|
|
124
124
|
if (!e)
|
|
125
125
|
return document;
|
|
126
126
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -131,57 +131,57 @@ function st(e) {
|
|
|
131
131
|
) : e.ownerDocument;
|
|
132
132
|
}
|
|
133
133
|
function Sr(e) {
|
|
134
|
-
const t =
|
|
135
|
-
return t.textContent = "/* empty */", Ft(
|
|
134
|
+
const t = C("style");
|
|
135
|
+
return t.textContent = "/* empty */", Ft(at(e), t), t.sheet;
|
|
136
136
|
}
|
|
137
137
|
function Ft(e, t) {
|
|
138
|
-
return
|
|
138
|
+
return N(
|
|
139
139
|
/** @type {Document} */
|
|
140
140
|
e.head || e,
|
|
141
141
|
t
|
|
142
142
|
), t.sheet;
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function K(e, t, r) {
|
|
145
145
|
e.insertBefore(t, r || null);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function L(e) {
|
|
148
148
|
e.parentNode && e.parentNode.removeChild(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function ts(e, t) {
|
|
151
151
|
for (let r = 0; r < e.length; r += 1)
|
|
152
152
|
e[r] && e[r].d(t);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function C(e) {
|
|
155
155
|
return document.createElement(e);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function rs(e) {
|
|
158
158
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function Ne(e) {
|
|
161
161
|
return document.createTextNode(e);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
return
|
|
163
|
+
function ke() {
|
|
164
|
+
return Ne(" ");
|
|
165
165
|
}
|
|
166
166
|
function Br() {
|
|
167
|
-
return
|
|
167
|
+
return Ne("");
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function We(e, t, r, n) {
|
|
170
170
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function ns(e) {
|
|
173
173
|
return function(t) {
|
|
174
174
|
return t.preventDefault(), e.call(this, t);
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Z(e, t, r) {
|
|
178
178
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function _e(e, t, r) {
|
|
181
181
|
const n = t.toLowerCase();
|
|
182
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
182
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : Z(e, t, r);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function is(e) {
|
|
185
185
|
return e === "" ? null : +e;
|
|
186
186
|
}
|
|
187
187
|
function Ar(e) {
|
|
@@ -191,47 +191,47 @@ function jt(e, t) {
|
|
|
191
191
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
192
192
|
t);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function ss(e, t) {
|
|
195
195
|
e.value = t ?? "";
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function os(e, t, r, n) {
|
|
198
198
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
199
199
|
}
|
|
200
|
-
let
|
|
200
|
+
let ve;
|
|
201
201
|
function Pr() {
|
|
202
|
-
if (
|
|
203
|
-
|
|
202
|
+
if (ve === void 0) {
|
|
203
|
+
ve = !1;
|
|
204
204
|
try {
|
|
205
205
|
typeof window < "u" && window.parent && window.parent.document;
|
|
206
206
|
} catch {
|
|
207
|
-
|
|
207
|
+
ve = !0;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
return
|
|
210
|
+
return ve;
|
|
211
211
|
}
|
|
212
212
|
function as(e, t) {
|
|
213
213
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
214
|
-
const n =
|
|
214
|
+
const n = C("iframe");
|
|
215
215
|
n.setAttribute(
|
|
216
216
|
"style",
|
|
217
217
|
"display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
|
|
218
218
|
), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
|
|
219
219
|
const i = Pr();
|
|
220
220
|
let s;
|
|
221
|
-
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s =
|
|
221
|
+
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = We(
|
|
222
222
|
window,
|
|
223
223
|
"message",
|
|
224
224
|
/** @param {MessageEvent} event */
|
|
225
|
-
(
|
|
226
|
-
|
|
225
|
+
(o) => {
|
|
226
|
+
o.source === n.contentWindow && t();
|
|
227
227
|
}
|
|
228
228
|
)) : (n.src = "about:blank", n.onload = () => {
|
|
229
|
-
s =
|
|
230
|
-
}),
|
|
231
|
-
(i || s && n.contentWindow) && s(),
|
|
229
|
+
s = We(n.contentWindow, "resize", t), t();
|
|
230
|
+
}), N(e, n), () => {
|
|
231
|
+
(i || s && n.contentWindow) && s(), L(n);
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function us(e, t, r) {
|
|
235
235
|
e.classList.toggle(t, !!r);
|
|
236
236
|
}
|
|
237
237
|
function Or(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
|
|
@@ -246,8 +246,8 @@ function Ir(e) {
|
|
|
246
246
|
}
|
|
247
247
|
), t;
|
|
248
248
|
}
|
|
249
|
-
const
|
|
250
|
-
let
|
|
249
|
+
const Be = /* @__PURE__ */ new Map();
|
|
250
|
+
let Ae = 0;
|
|
251
251
|
function Cr(e) {
|
|
252
252
|
let t = 5381, r = e.length;
|
|
253
253
|
for (; r--; )
|
|
@@ -256,146 +256,146 @@ function Cr(e) {
|
|
|
256
256
|
}
|
|
257
257
|
function Mr(e, t) {
|
|
258
258
|
const r = { stylesheet: Sr(t), rules: {} };
|
|
259
|
-
return
|
|
259
|
+
return Be.set(e, r), r;
|
|
260
260
|
}
|
|
261
|
-
function zt(e, t, r, n, i, s,
|
|
261
|
+
function zt(e, t, r, n, i, s, o, a = 0) {
|
|
262
262
|
const h = 16.666 / n;
|
|
263
263
|
let u = `{
|
|
264
264
|
`;
|
|
265
|
-
for (let
|
|
266
|
-
const _ = t + (r - t) * s(
|
|
267
|
-
u +=
|
|
265
|
+
for (let E = 0; E <= 1; E += h) {
|
|
266
|
+
const _ = t + (r - t) * s(E);
|
|
267
|
+
u += E * 100 + `%{${o(_, 1 - _)}}
|
|
268
268
|
`;
|
|
269
269
|
}
|
|
270
|
-
const l = u + `100% {${
|
|
271
|
-
}`, c = `__svelte_${Cr(l)}_${
|
|
270
|
+
const l = u + `100% {${o(r, 1 - r)}}
|
|
271
|
+
}`, c = `__svelte_${Cr(l)}_${a}`, m = at(e), { stylesheet: d, rules: p } = Be.get(m) || Mr(m, e);
|
|
272
272
|
p[c] || (p[c] = !0, d.insertRule(`@keyframes ${c} ${l}`, d.cssRules.length));
|
|
273
273
|
const b = e.style.animation || "";
|
|
274
|
-
return e.style.animation = `${b ? `${b}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`,
|
|
274
|
+
return e.style.animation = `${b ? `${b}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`, Ae += 1, c;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function Ze(e, t) {
|
|
277
277
|
const r = (e.style.animation || "").split(", "), n = r.filter(
|
|
278
278
|
t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
|
|
279
279
|
// remove all Svelte animations
|
|
280
280
|
), i = r.length - n.length;
|
|
281
|
-
i && (e.style.animation = n.join(", "),
|
|
281
|
+
i && (e.style.animation = n.join(", "), Ae -= i, Ae || Nr());
|
|
282
282
|
}
|
|
283
283
|
function Nr() {
|
|
284
|
-
|
|
285
|
-
|
|
284
|
+
ot(() => {
|
|
285
|
+
Ae || (Be.forEach((e) => {
|
|
286
286
|
const { ownerNode: t } = e.stylesheet;
|
|
287
|
-
t &&
|
|
288
|
-
}),
|
|
287
|
+
t && L(t);
|
|
288
|
+
}), Be.clear());
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
|
-
let
|
|
292
|
-
function
|
|
293
|
-
|
|
291
|
+
let oe;
|
|
292
|
+
function se(e) {
|
|
293
|
+
oe = e;
|
|
294
294
|
}
|
|
295
295
|
function Lr() {
|
|
296
|
-
if (!
|
|
296
|
+
if (!oe)
|
|
297
297
|
throw new Error("Function called outside component initialization");
|
|
298
|
-
return
|
|
298
|
+
return oe;
|
|
299
299
|
}
|
|
300
300
|
function $r(e) {
|
|
301
301
|
Lr().$$.on_mount.push(e);
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function ls(e, t) {
|
|
304
304
|
const r = e.$$.callbacks[t.type];
|
|
305
305
|
r && r.slice().forEach((n) => n.call(this, t));
|
|
306
306
|
}
|
|
307
|
-
const
|
|
308
|
-
let
|
|
307
|
+
const z = [], Je = [];
|
|
308
|
+
let W = [];
|
|
309
309
|
const ft = [], Vt = /* @__PURE__ */ Promise.resolve();
|
|
310
|
-
let
|
|
310
|
+
let qe = !1;
|
|
311
311
|
function Xt() {
|
|
312
|
-
|
|
312
|
+
qe || (qe = !0, Vt.then(M));
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function hs() {
|
|
315
315
|
return Xt(), Vt;
|
|
316
316
|
}
|
|
317
317
|
function ae(e) {
|
|
318
|
-
|
|
318
|
+
W.push(e);
|
|
319
319
|
}
|
|
320
|
-
const
|
|
321
|
-
let
|
|
322
|
-
function
|
|
323
|
-
if (
|
|
320
|
+
const Ue = /* @__PURE__ */ new Set();
|
|
321
|
+
let F = 0;
|
|
322
|
+
function M() {
|
|
323
|
+
if (F !== 0)
|
|
324
324
|
return;
|
|
325
|
-
const e =
|
|
325
|
+
const e = oe;
|
|
326
326
|
do {
|
|
327
327
|
try {
|
|
328
|
-
for (;
|
|
329
|
-
const t =
|
|
330
|
-
|
|
328
|
+
for (; F < z.length; ) {
|
|
329
|
+
const t = z[F];
|
|
330
|
+
F++, se(t), Rr(t.$$);
|
|
331
331
|
}
|
|
332
332
|
} catch (t) {
|
|
333
|
-
throw
|
|
333
|
+
throw z.length = 0, F = 0, t;
|
|
334
334
|
}
|
|
335
|
-
for (
|
|
336
|
-
|
|
337
|
-
for (let t = 0; t <
|
|
338
|
-
const r =
|
|
339
|
-
|
|
335
|
+
for (se(null), z.length = 0, F = 0; Je.length; )
|
|
336
|
+
Je.pop()();
|
|
337
|
+
for (let t = 0; t < W.length; t += 1) {
|
|
338
|
+
const r = W[t];
|
|
339
|
+
Ue.has(r) || (Ue.add(r), r());
|
|
340
340
|
}
|
|
341
|
-
|
|
342
|
-
} while (
|
|
341
|
+
W.length = 0;
|
|
342
|
+
} while (z.length);
|
|
343
343
|
for (; ft.length; )
|
|
344
344
|
ft.pop()();
|
|
345
|
-
|
|
345
|
+
qe = !1, Ue.clear(), se(e);
|
|
346
346
|
}
|
|
347
347
|
function Rr(e) {
|
|
348
348
|
if (e.fragment !== null) {
|
|
349
|
-
e.update(),
|
|
349
|
+
e.update(), k(e.before_update);
|
|
350
350
|
const t = e.dirty;
|
|
351
351
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ae);
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
function Dr(e) {
|
|
355
355
|
const t = [], r = [];
|
|
356
|
-
|
|
356
|
+
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
357
357
|
}
|
|
358
|
-
let
|
|
358
|
+
let re;
|
|
359
359
|
function Wt() {
|
|
360
|
-
return
|
|
361
|
-
|
|
362
|
-
})),
|
|
360
|
+
return re || (re = Promise.resolve(), re.then(() => {
|
|
361
|
+
re = null;
|
|
362
|
+
})), re;
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function Pe(e, t, r) {
|
|
365
365
|
e.dispatchEvent(Or(`${t ? "intro" : "outro"}${r}`));
|
|
366
366
|
}
|
|
367
|
-
const
|
|
368
|
-
let
|
|
369
|
-
function
|
|
370
|
-
|
|
367
|
+
const we = /* @__PURE__ */ new Set();
|
|
368
|
+
let R;
|
|
369
|
+
function cs() {
|
|
370
|
+
R = {
|
|
371
371
|
r: 0,
|
|
372
372
|
c: [],
|
|
373
|
-
p:
|
|
373
|
+
p: R
|
|
374
374
|
// parent group
|
|
375
375
|
};
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
|
|
377
|
+
function fs() {
|
|
378
|
+
R.r || k(R.c), R = R.p;
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
e && e.i && (
|
|
380
|
+
function V(e, t) {
|
|
381
|
+
e && e.i && (we.delete(e), e.i(t));
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function Ee(e, t, r, n) {
|
|
384
384
|
if (e && e.o) {
|
|
385
|
-
if (
|
|
385
|
+
if (we.has(e))
|
|
386
386
|
return;
|
|
387
|
-
|
|
388
|
-
|
|
387
|
+
we.add(e), R.c.push(() => {
|
|
388
|
+
we.delete(e), n && (r && e.d(1), n());
|
|
389
389
|
}), e.o(t);
|
|
390
390
|
} else
|
|
391
391
|
n && n();
|
|
392
392
|
}
|
|
393
393
|
const Zt = { duration: 0 };
|
|
394
|
-
function
|
|
394
|
+
function ms(e, t, r) {
|
|
395
395
|
const n = { direction: "in" };
|
|
396
|
-
let i = t(e, r, n), s = !1,
|
|
396
|
+
let i = t(e, r, n), s = !1, o, a, h = 0;
|
|
397
397
|
function u() {
|
|
398
|
-
|
|
398
|
+
o && Ze(e, o);
|
|
399
399
|
}
|
|
400
400
|
function l() {
|
|
401
401
|
const {
|
|
@@ -403,14 +403,14 @@ function fs(e, t, r) {
|
|
|
403
403
|
duration: d = 300,
|
|
404
404
|
easing: p = Nt,
|
|
405
405
|
tick: b = B,
|
|
406
|
-
css:
|
|
406
|
+
css: E
|
|
407
407
|
} = i || Zt;
|
|
408
|
-
|
|
408
|
+
E && (o = zt(e, 0, 1, d, m, p, E, h++)), b(0, 1);
|
|
409
409
|
const _ = kt() + m, f = _ + d;
|
|
410
|
-
|
|
410
|
+
a && a.abort(), s = !0, ae(() => Pe(e, !0, "start")), a = Gt((g) => {
|
|
411
411
|
if (s) {
|
|
412
412
|
if (g >= f)
|
|
413
|
-
return b(1, 0),
|
|
413
|
+
return b(1, 0), Pe(e, !0, "end"), u(), s = !1;
|
|
414
414
|
if (g >= _) {
|
|
415
415
|
const S = p((g - _) / d);
|
|
416
416
|
b(S, 1 - S);
|
|
@@ -422,7 +422,7 @@ function fs(e, t, r) {
|
|
|
422
422
|
let c = !1;
|
|
423
423
|
return {
|
|
424
424
|
start() {
|
|
425
|
-
c || (c = !0,
|
|
425
|
+
c || (c = !0, Ze(e), he(i) ? (i = i(n), Wt().then(l)) : l());
|
|
426
426
|
},
|
|
427
427
|
invalidate() {
|
|
428
428
|
c = !1;
|
|
@@ -432,11 +432,11 @@ function fs(e, t, r) {
|
|
|
432
432
|
}
|
|
433
433
|
};
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function ds(e, t, r) {
|
|
436
436
|
const n = { direction: "out" };
|
|
437
|
-
let i = t(e, r, n), s = !0,
|
|
438
|
-
const
|
|
439
|
-
|
|
437
|
+
let i = t(e, r, n), s = !0, o;
|
|
438
|
+
const a = R;
|
|
439
|
+
a.r += 1;
|
|
440
440
|
let h;
|
|
441
441
|
function u() {
|
|
442
442
|
const {
|
|
@@ -446,13 +446,13 @@ function ms(e, t, r) {
|
|
|
446
446
|
tick: d = B,
|
|
447
447
|
css: p
|
|
448
448
|
} = i || Zt;
|
|
449
|
-
p && (
|
|
450
|
-
const b = kt() + l,
|
|
451
|
-
ae(() =>
|
|
449
|
+
p && (o = zt(e, 1, 0, c, l, m, p));
|
|
450
|
+
const b = kt() + l, E = b + c;
|
|
451
|
+
ae(() => Pe(e, !1, "start")), "inert" in e && (h = /** @type {HTMLElement} */
|
|
452
452
|
e.inert, e.inert = !0), Gt((_) => {
|
|
453
453
|
if (s) {
|
|
454
|
-
if (_ >=
|
|
455
|
-
return d(0, 1),
|
|
454
|
+
if (_ >= E)
|
|
455
|
+
return d(0, 1), Pe(e, !1, "end"), --a.r || k(a.c), !1;
|
|
456
456
|
if (_ >= b) {
|
|
457
457
|
const f = m((_ - b) / c);
|
|
458
458
|
d(1 - f, f);
|
|
@@ -461,64 +461,64 @@ function ms(e, t, r) {
|
|
|
461
461
|
return s;
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
|
-
return
|
|
464
|
+
return he(i) ? Wt().then(() => {
|
|
465
465
|
i = i(n), u();
|
|
466
466
|
}) : u(), {
|
|
467
467
|
end(l) {
|
|
468
|
-
l && "inert" in e && (e.inert = h), l && i.tick && i.tick(1, 0), s && (
|
|
468
|
+
l && "inert" in e && (e.inert = h), l && i.tick && i.tick(1, 0), s && (o && Ze(e, o), s = !1);
|
|
469
469
|
}
|
|
470
470
|
};
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function ps(e) {
|
|
473
473
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function gs(e, t) {
|
|
476
476
|
e.d(1), t.delete(e.key);
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function bs(e, t, r, n, i, s, o, a, h, u, l, c) {
|
|
479
479
|
let m = e.length, d = s.length, p = m;
|
|
480
480
|
const b = {};
|
|
481
481
|
for (; p--; )
|
|
482
482
|
b[e[p].key] = p;
|
|
483
|
-
const
|
|
483
|
+
const E = [], _ = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), g = [];
|
|
484
484
|
for (p = d; p--; ) {
|
|
485
485
|
const T = c(i, s, p), P = r(T);
|
|
486
|
-
let O =
|
|
487
|
-
O ? g.push(() => O.p(T, t)) : (O = u(P, T), O.c()), _.set(P,
|
|
486
|
+
let O = o.get(P);
|
|
487
|
+
O ? g.push(() => O.p(T, t)) : (O = u(P, T), O.c()), _.set(P, E[p] = O), P in b && f.set(P, Math.abs(p - b[P]));
|
|
488
488
|
}
|
|
489
489
|
const S = /* @__PURE__ */ new Set(), A = /* @__PURE__ */ new Set();
|
|
490
|
-
function
|
|
491
|
-
|
|
490
|
+
function $(T) {
|
|
491
|
+
V(T, 1), T.m(a, l), o.set(T.key, T), l = T.first, d--;
|
|
492
492
|
}
|
|
493
493
|
for (; m && d; ) {
|
|
494
|
-
const T =
|
|
495
|
-
T === P ? (l = T.first, m--, d--) : _.has(
|
|
494
|
+
const T = E[d - 1], P = e[m - 1], O = T.key, me = P.key;
|
|
495
|
+
T === P ? (l = T.first, m--, d--) : _.has(me) ? !o.has(O) || S.has(O) ? $(T) : A.has(me) ? m-- : f.get(O) > f.get(me) ? (A.add(O), $(T)) : (S.add(me), m--) : (h(P, o), m--);
|
|
496
496
|
}
|
|
497
497
|
for (; m--; ) {
|
|
498
498
|
const T = e[m];
|
|
499
|
-
_.has(T.key) || h(T,
|
|
499
|
+
_.has(T.key) || h(T, o);
|
|
500
500
|
}
|
|
501
501
|
for (; d; )
|
|
502
|
-
|
|
503
|
-
return
|
|
502
|
+
$(E[d - 1]);
|
|
503
|
+
return k(g), E;
|
|
504
504
|
}
|
|
505
505
|
function kr(e, t, r) {
|
|
506
506
|
const { fragment: n, after_update: i } = e.$$;
|
|
507
507
|
n && n.m(t, r), ae(() => {
|
|
508
|
-
const s = e.$$.on_mount.map(Lt).filter(
|
|
509
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
508
|
+
const s = e.$$.on_mount.map(Lt).filter(he);
|
|
509
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : k(s), e.$$.on_mount = [];
|
|
510
510
|
}), i.forEach(ae);
|
|
511
511
|
}
|
|
512
512
|
function Ur(e, t) {
|
|
513
513
|
const r = e.$$;
|
|
514
|
-
r.fragment !== null && (Dr(r.after_update),
|
|
514
|
+
r.fragment !== null && (Dr(r.after_update), k(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
515
515
|
}
|
|
516
516
|
function Gr(e, t) {
|
|
517
|
-
e.$$.dirty[0] === -1 && (
|
|
517
|
+
e.$$.dirty[0] === -1 && (z.push(e), Xt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
518
518
|
}
|
|
519
|
-
function Fr(e, t, r, n, i, s,
|
|
520
|
-
const h =
|
|
521
|
-
|
|
519
|
+
function Fr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
520
|
+
const h = oe;
|
|
521
|
+
se(e);
|
|
522
522
|
const u = e.$$ = {
|
|
523
523
|
fragment: null,
|
|
524
524
|
ctx: [],
|
|
@@ -536,24 +536,24 @@ function Fr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
536
536
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
537
537
|
// everything else
|
|
538
538
|
callbacks: ht(),
|
|
539
|
-
dirty:
|
|
539
|
+
dirty: a,
|
|
540
540
|
skip_bound: !1,
|
|
541
541
|
root: t.target || h.$$.root
|
|
542
542
|
};
|
|
543
|
-
|
|
543
|
+
o && o(u.root);
|
|
544
544
|
let l = !1;
|
|
545
545
|
if (u.ctx = r ? r(e, t.props || {}, (c, m, ...d) => {
|
|
546
546
|
const p = d.length ? d[0] : m;
|
|
547
547
|
return u.ctx && i(u.ctx[c], u.ctx[c] = p) && (!u.skip_bound && u.bound[c] && u.bound[c](p), l && Gr(e, c)), m;
|
|
548
|
-
}) : [], u.update(), l = !0,
|
|
548
|
+
}) : [], u.update(), l = !0, k(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
549
549
|
if (t.hydrate) {
|
|
550
550
|
const c = Ar(t.target);
|
|
551
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
551
|
+
u.fragment && u.fragment.l(c), c.forEach(L);
|
|
552
552
|
} else
|
|
553
553
|
u.fragment && u.fragment.c();
|
|
554
|
-
t.intro &&
|
|
554
|
+
t.intro && V(e.$$.fragment), kr(e, t.target, t.anchor), M();
|
|
555
555
|
}
|
|
556
|
-
|
|
556
|
+
se(h);
|
|
557
557
|
}
|
|
558
558
|
let Jt;
|
|
559
559
|
typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
@@ -598,17 +598,17 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
598
598
|
let s;
|
|
599
599
|
return {
|
|
600
600
|
c: function() {
|
|
601
|
-
s =
|
|
601
|
+
s = C("slot"), i !== "default" && Z(s, "name", i);
|
|
602
602
|
},
|
|
603
603
|
/**
|
|
604
604
|
* @param {HTMLElement} target
|
|
605
605
|
* @param {HTMLElement} [anchor]
|
|
606
606
|
*/
|
|
607
607
|
m: function(h, u) {
|
|
608
|
-
|
|
608
|
+
K(h, s, u);
|
|
609
609
|
},
|
|
610
610
|
d: function(h) {
|
|
611
|
-
h &&
|
|
611
|
+
h && L(s);
|
|
612
612
|
}
|
|
613
613
|
};
|
|
614
614
|
};
|
|
@@ -620,7 +620,7 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
620
620
|
i in r && (t[i] = [e(i)]);
|
|
621
621
|
for (const i of this.attributes) {
|
|
622
622
|
const s = this.$$g_p(i.name);
|
|
623
|
-
s in this.$$d || (this.$$d[s] =
|
|
623
|
+
s in this.$$d || (this.$$d[s] = Te(s, i.value, this.$$p_d, "toProp"));
|
|
624
624
|
}
|
|
625
625
|
for (const i in this.$$p_d)
|
|
626
626
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -638,7 +638,7 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
638
638
|
this.$$r = !0;
|
|
639
639
|
for (const i in this.$$p_d)
|
|
640
640
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
641
|
-
const s =
|
|
641
|
+
const s = Te(
|
|
642
642
|
i,
|
|
643
643
|
this.$$d[i],
|
|
644
644
|
this.$$p_d,
|
|
@@ -651,8 +651,8 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
651
651
|
this.$$c.$$.after_update.push(n), n();
|
|
652
652
|
for (const i in this.$$l)
|
|
653
653
|
for (const s of this.$$l[i]) {
|
|
654
|
-
const
|
|
655
|
-
this.$$l_u.set(s,
|
|
654
|
+
const o = this.$$c.$on(i, s);
|
|
655
|
+
this.$$l_u.set(s, o);
|
|
656
656
|
}
|
|
657
657
|
this.$$l = {};
|
|
658
658
|
}
|
|
@@ -660,7 +660,7 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
660
660
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
661
661
|
// and setting attributes through setAttribute etc, this is helpful
|
|
662
662
|
attributeChangedCallback(e, t, r) {
|
|
663
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
663
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Te(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
664
664
|
}
|
|
665
665
|
disconnectedCallback() {
|
|
666
666
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -673,7 +673,7 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
673
673
|
) || e;
|
|
674
674
|
}
|
|
675
675
|
});
|
|
676
|
-
function
|
|
676
|
+
function Te(e, t, r, n) {
|
|
677
677
|
const i = r[e]?.type;
|
|
678
678
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
679
679
|
return t;
|
|
@@ -703,33 +703,33 @@ function we(e, t, r, n) {
|
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
705
|
function jr(e, t, r, n, i, s) {
|
|
706
|
-
let
|
|
706
|
+
let o = class extends Jt {
|
|
707
707
|
constructor() {
|
|
708
708
|
super(e, r, i), this.$$p_d = t;
|
|
709
709
|
}
|
|
710
710
|
static get observedAttributes() {
|
|
711
711
|
return Object.keys(t).map(
|
|
712
|
-
(
|
|
712
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
713
713
|
);
|
|
714
714
|
}
|
|
715
715
|
};
|
|
716
|
-
return Object.keys(t).forEach((
|
|
717
|
-
Object.defineProperty(
|
|
716
|
+
return Object.keys(t).forEach((a) => {
|
|
717
|
+
Object.defineProperty(o.prototype, a, {
|
|
718
718
|
get() {
|
|
719
|
-
return this.$$c &&
|
|
719
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
720
720
|
},
|
|
721
721
|
set(h) {
|
|
722
|
-
h =
|
|
722
|
+
h = Te(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
|
723
723
|
}
|
|
724
724
|
});
|
|
725
|
-
}), n.forEach((
|
|
726
|
-
Object.defineProperty(
|
|
725
|
+
}), n.forEach((a) => {
|
|
726
|
+
Object.defineProperty(o.prototype, a, {
|
|
727
727
|
get() {
|
|
728
|
-
return this.$$c?.[
|
|
728
|
+
return this.$$c?.[a];
|
|
729
729
|
}
|
|
730
730
|
});
|
|
731
731
|
}), e.element = /** @type {any} */
|
|
732
|
-
|
|
732
|
+
o, o;
|
|
733
733
|
}
|
|
734
734
|
class zr {
|
|
735
735
|
/**
|
|
@@ -759,7 +759,7 @@ class zr {
|
|
|
759
759
|
* @returns {() => void}
|
|
760
760
|
*/
|
|
761
761
|
$on(t, r) {
|
|
762
|
-
if (!
|
|
762
|
+
if (!he(r))
|
|
763
763
|
return B;
|
|
764
764
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
765
765
|
return n.push(r), () => {
|
|
@@ -777,44 +777,44 @@ class zr {
|
|
|
777
777
|
}
|
|
778
778
|
const Vr = "4";
|
|
779
779
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Vr);
|
|
780
|
-
const
|
|
780
|
+
const j = [];
|
|
781
781
|
function Xr(e, t) {
|
|
782
782
|
return {
|
|
783
|
-
subscribe:
|
|
783
|
+
subscribe: Le(e, t).subscribe
|
|
784
784
|
};
|
|
785
785
|
}
|
|
786
|
-
function
|
|
786
|
+
function Le(e, t = B) {
|
|
787
787
|
let r;
|
|
788
788
|
const n = /* @__PURE__ */ new Set();
|
|
789
|
-
function i(
|
|
790
|
-
if ($t(e,
|
|
791
|
-
const h = !
|
|
789
|
+
function i(a) {
|
|
790
|
+
if ($t(e, a) && (e = a, r)) {
|
|
791
|
+
const h = !j.length;
|
|
792
792
|
for (const u of n)
|
|
793
|
-
u[1](),
|
|
793
|
+
u[1](), j.push(u, e);
|
|
794
794
|
if (h) {
|
|
795
|
-
for (let u = 0; u <
|
|
796
|
-
|
|
797
|
-
|
|
795
|
+
for (let u = 0; u < j.length; u += 2)
|
|
796
|
+
j[u][0](j[u + 1]);
|
|
797
|
+
j.length = 0;
|
|
798
798
|
}
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
|
-
function s(
|
|
802
|
-
i(
|
|
801
|
+
function s(a) {
|
|
802
|
+
i(a(e));
|
|
803
803
|
}
|
|
804
|
-
function a
|
|
805
|
-
const u = [
|
|
806
|
-
return n.add(u), n.size === 1 && (r = t(i, s) || B),
|
|
804
|
+
function o(a, h = B) {
|
|
805
|
+
const u = [a, h];
|
|
806
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || B), a(e), () => {
|
|
807
807
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
808
808
|
};
|
|
809
809
|
}
|
|
810
|
-
return { set: i, update: s, subscribe:
|
|
810
|
+
return { set: i, update: s, subscribe: o };
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function ee(e, t, r) {
|
|
813
813
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
814
814
|
if (!i.every(Boolean))
|
|
815
815
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
816
816
|
const s = t.length < 2;
|
|
817
|
-
return Xr(r, (
|
|
817
|
+
return Xr(r, (o, a) => {
|
|
818
818
|
let h = !1;
|
|
819
819
|
const u = [];
|
|
820
820
|
let l = 0, c = B;
|
|
@@ -822,13 +822,13 @@ function K(e, t, r) {
|
|
|
822
822
|
if (l)
|
|
823
823
|
return;
|
|
824
824
|
c();
|
|
825
|
-
const p = t(n ? u[0] : u,
|
|
826
|
-
s ?
|
|
825
|
+
const p = t(n ? u[0] : u, o, a);
|
|
826
|
+
s ? o(p) : c = he(p) ? p : B;
|
|
827
827
|
}, d = i.map(
|
|
828
|
-
(p, b) =>
|
|
828
|
+
(p, b) => st(
|
|
829
829
|
p,
|
|
830
|
-
(
|
|
831
|
-
u[b] =
|
|
830
|
+
(E) => {
|
|
831
|
+
u[b] = E, l &= ~(1 << b), h && m();
|
|
832
832
|
},
|
|
833
833
|
() => {
|
|
834
834
|
l |= 1 << b;
|
|
@@ -836,11 +836,11 @@ function K(e, t, r) {
|
|
|
836
836
|
)
|
|
837
837
|
);
|
|
838
838
|
return h = !0, m(), function() {
|
|
839
|
-
|
|
839
|
+
k(d), c(), h = !1;
|
|
840
840
|
};
|
|
841
841
|
});
|
|
842
842
|
}
|
|
843
|
-
var
|
|
843
|
+
var ys = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
844
844
|
function Wr(e) {
|
|
845
845
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
846
846
|
}
|
|
@@ -861,19 +861,19 @@ function Kr(e) {
|
|
|
861
861
|
function en(e) {
|
|
862
862
|
return Array.isArray(e) ? [] : {};
|
|
863
863
|
}
|
|
864
|
-
function
|
|
865
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
864
|
+
function ue(e, t) {
|
|
865
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? J(en(e), e, t) : e;
|
|
866
866
|
}
|
|
867
867
|
function tn(e, t, r) {
|
|
868
868
|
return e.concat(t).map(function(n) {
|
|
869
|
-
return
|
|
869
|
+
return ue(n, r);
|
|
870
870
|
});
|
|
871
871
|
}
|
|
872
872
|
function rn(e, t) {
|
|
873
873
|
if (!t.customMerge)
|
|
874
|
-
return
|
|
874
|
+
return J;
|
|
875
875
|
var r = t.customMerge(e);
|
|
876
|
-
return typeof r == "function" ? r :
|
|
876
|
+
return typeof r == "function" ? r : J;
|
|
877
877
|
}
|
|
878
878
|
function nn(e) {
|
|
879
879
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -893,68 +893,54 @@ function qt(e, t) {
|
|
|
893
893
|
function sn(e, t) {
|
|
894
894
|
return qt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function on(e, t, r) {
|
|
897
897
|
var n = {};
|
|
898
898
|
return r.isMergeableObject(e) && mt(e).forEach(function(i) {
|
|
899
|
-
n[i] =
|
|
899
|
+
n[i] = ue(e[i], r);
|
|
900
900
|
}), mt(t).forEach(function(i) {
|
|
901
|
-
sn(e, i) || (qt(e, i) && r.isMergeableObject(t[i]) ? n[i] = rn(i, r)(e[i], t[i], r) : n[i] =
|
|
901
|
+
sn(e, i) || (qt(e, i) && r.isMergeableObject(t[i]) ? n[i] = rn(i, r)(e[i], t[i], r) : n[i] = ue(t[i], r));
|
|
902
902
|
}), n;
|
|
903
903
|
}
|
|
904
|
-
function
|
|
905
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || tn, r.isMergeableObject = r.isMergeableObject || Zr, r.cloneUnlessOtherwiseSpecified =
|
|
904
|
+
function J(e, t, r) {
|
|
905
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || tn, r.isMergeableObject = r.isMergeableObject || Zr, r.cloneUnlessOtherwiseSpecified = ue;
|
|
906
906
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
907
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
907
|
+
return s ? n ? r.arrayMerge(e, t, r) : on(e, t, r) : ue(t, r);
|
|
908
908
|
}
|
|
909
|
-
|
|
909
|
+
J.all = function(t, r) {
|
|
910
910
|
if (!Array.isArray(t))
|
|
911
911
|
throw new Error("first argument should be an array");
|
|
912
912
|
return t.reduce(function(n, i) {
|
|
913
|
-
return
|
|
913
|
+
return J(n, i, r);
|
|
914
914
|
}, {});
|
|
915
915
|
};
|
|
916
|
-
var
|
|
916
|
+
var an = J, un = an;
|
|
917
917
|
const ln = /* @__PURE__ */ Wr(un);
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
922
|
-
purpose with or without fee is hereby granted.
|
|
923
|
-
|
|
924
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
925
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
926
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
927
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
928
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
929
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
930
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
931
|
-
***************************************************************************** */
|
|
932
|
-
var Je = function(e, t) {
|
|
933
|
-
return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
918
|
+
var Qe = function(e, t) {
|
|
919
|
+
return Qe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
934
920
|
r.__proto__ = n;
|
|
935
921
|
} || function(r, n) {
|
|
936
922
|
for (var i in n)
|
|
937
923
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
938
|
-
},
|
|
924
|
+
}, Qe(e, t);
|
|
939
925
|
};
|
|
940
|
-
function
|
|
926
|
+
function $e(e, t) {
|
|
941
927
|
if (typeof t != "function" && t !== null)
|
|
942
928
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
943
|
-
|
|
929
|
+
Qe(e, t);
|
|
944
930
|
function r() {
|
|
945
931
|
this.constructor = e;
|
|
946
932
|
}
|
|
947
933
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
948
934
|
}
|
|
949
|
-
var
|
|
950
|
-
return
|
|
935
|
+
var I = function() {
|
|
936
|
+
return I = Object.assign || function(t) {
|
|
951
937
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
952
938
|
r = arguments[n];
|
|
953
939
|
for (var s in r)
|
|
954
940
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
955
941
|
}
|
|
956
942
|
return t;
|
|
957
|
-
},
|
|
943
|
+
}, I.apply(this, arguments);
|
|
958
944
|
};
|
|
959
945
|
function hn(e, t) {
|
|
960
946
|
var r = {};
|
|
@@ -965,46 +951,14 @@ function hn(e, t) {
|
|
|
965
951
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
966
952
|
return r;
|
|
967
953
|
}
|
|
968
|
-
function
|
|
969
|
-
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
970
|
-
if (r)
|
|
971
|
-
return r.call(e);
|
|
972
|
-
if (e && typeof e.length == "number")
|
|
973
|
-
return {
|
|
974
|
-
next: function() {
|
|
975
|
-
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
976
|
-
}
|
|
977
|
-
};
|
|
978
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
979
|
-
}
|
|
980
|
-
function _s(e, t) {
|
|
981
|
-
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
982
|
-
if (!r)
|
|
983
|
-
return e;
|
|
984
|
-
var n = r.call(e), i, s = [], a;
|
|
985
|
-
try {
|
|
986
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
987
|
-
s.push(i.value);
|
|
988
|
-
} catch (o) {
|
|
989
|
-
a = { error: o };
|
|
990
|
-
} finally {
|
|
991
|
-
try {
|
|
992
|
-
i && !i.done && (r = n.return) && r.call(n);
|
|
993
|
-
} finally {
|
|
994
|
-
if (a)
|
|
995
|
-
throw a.error;
|
|
996
|
-
}
|
|
997
|
-
}
|
|
998
|
-
return s;
|
|
999
|
-
}
|
|
1000
|
-
function ke(e, t, r) {
|
|
954
|
+
function Ge(e, t, r) {
|
|
1001
955
|
if (r || arguments.length === 2)
|
|
1002
956
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
1003
957
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
1004
|
-
return e.concat(s || t);
|
|
958
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
1005
959
|
}
|
|
1006
|
-
function
|
|
1007
|
-
var r = t && t.cache ? t.cache :
|
|
960
|
+
function Fe(e, t) {
|
|
961
|
+
var r = t && t.cache ? t.cache : bn, n = t && t.serializer ? t.serializer : pn, i = t && t.strategy ? t.strategy : mn;
|
|
1008
962
|
return i(e, {
|
|
1009
963
|
cache: r,
|
|
1010
964
|
serializer: n
|
|
@@ -1013,95 +967,103 @@ function Ue(e, t) {
|
|
|
1013
967
|
function cn(e) {
|
|
1014
968
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1015
969
|
}
|
|
1016
|
-
function
|
|
970
|
+
function fn(e, t, r, n) {
|
|
1017
971
|
var i = cn(n) ? n : r(n), s = t.get(i);
|
|
1018
972
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
1019
973
|
}
|
|
1020
|
-
function
|
|
974
|
+
function Qt(e, t, r) {
|
|
1021
975
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
1022
976
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
1023
977
|
}
|
|
1024
|
-
function
|
|
978
|
+
function Yt(e, t, r, n, i) {
|
|
1025
979
|
return r.bind(t, e, n, i);
|
|
1026
980
|
}
|
|
1027
|
-
function fn(e, t) {
|
|
1028
|
-
var r = e.length === 1 ? Qt : Yt;
|
|
1029
|
-
return at(e, this, r, t.cache.create(), t.serializer);
|
|
1030
|
-
}
|
|
1031
981
|
function mn(e, t) {
|
|
1032
|
-
|
|
982
|
+
var r = e.length === 1 ? fn : Qt;
|
|
983
|
+
return Yt(e, this, r, t.cache.create(), t.serializer);
|
|
1033
984
|
}
|
|
1034
985
|
function dn(e, t) {
|
|
1035
|
-
return
|
|
986
|
+
return Yt(e, this, Qt, t.cache.create(), t.serializer);
|
|
1036
987
|
}
|
|
1037
988
|
var pn = function() {
|
|
1038
989
|
return JSON.stringify(arguments);
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
990
|
+
}, gn = (
|
|
991
|
+
/** @class */
|
|
992
|
+
function() {
|
|
993
|
+
function e() {
|
|
994
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
995
|
+
}
|
|
996
|
+
return e.prototype.get = function(t) {
|
|
997
|
+
return this.cache[t];
|
|
998
|
+
}, e.prototype.set = function(t, r) {
|
|
999
|
+
this.cache[t] = r;
|
|
1000
|
+
}, e;
|
|
1001
|
+
}()
|
|
1002
|
+
), bn = {
|
|
1050
1003
|
create: function() {
|
|
1051
|
-
return new
|
|
1004
|
+
return new gn();
|
|
1052
1005
|
}
|
|
1053
|
-
},
|
|
1054
|
-
variadic:
|
|
1055
|
-
|
|
1056
|
-
|
|
1006
|
+
}, je = {
|
|
1007
|
+
variadic: dn
|
|
1008
|
+
}, Oe = function() {
|
|
1009
|
+
return Oe = Object.assign || function(t) {
|
|
1010
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1011
|
+
r = arguments[n];
|
|
1012
|
+
for (var s in r)
|
|
1013
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1014
|
+
}
|
|
1015
|
+
return t;
|
|
1016
|
+
}, Oe.apply(this, arguments);
|
|
1017
|
+
};
|
|
1018
|
+
var y;
|
|
1057
1019
|
(function(e) {
|
|
1058
1020
|
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";
|
|
1059
1021
|
})(y || (y = {}));
|
|
1060
|
-
var
|
|
1022
|
+
var x;
|
|
1061
1023
|
(function(e) {
|
|
1062
1024
|
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";
|
|
1063
|
-
})(
|
|
1064
|
-
var
|
|
1025
|
+
})(x || (x = {}));
|
|
1026
|
+
var q;
|
|
1065
1027
|
(function(e) {
|
|
1066
1028
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1067
|
-
})(
|
|
1029
|
+
})(q || (q = {}));
|
|
1068
1030
|
function dt(e) {
|
|
1069
|
-
return e.type ===
|
|
1031
|
+
return e.type === x.literal;
|
|
1070
1032
|
}
|
|
1071
|
-
function
|
|
1072
|
-
return e.type ===
|
|
1033
|
+
function yn(e) {
|
|
1034
|
+
return e.type === x.argument;
|
|
1073
1035
|
}
|
|
1074
1036
|
function Kt(e) {
|
|
1075
|
-
return e.type ===
|
|
1037
|
+
return e.type === x.number;
|
|
1076
1038
|
}
|
|
1077
1039
|
function er(e) {
|
|
1078
|
-
return e.type ===
|
|
1040
|
+
return e.type === x.date;
|
|
1079
1041
|
}
|
|
1080
1042
|
function tr(e) {
|
|
1081
|
-
return e.type ===
|
|
1043
|
+
return e.type === x.time;
|
|
1082
1044
|
}
|
|
1083
1045
|
function rr(e) {
|
|
1084
|
-
return e.type ===
|
|
1046
|
+
return e.type === x.select;
|
|
1085
1047
|
}
|
|
1086
1048
|
function nr(e) {
|
|
1087
|
-
return e.type ===
|
|
1049
|
+
return e.type === x.plural;
|
|
1088
1050
|
}
|
|
1089
|
-
function
|
|
1090
|
-
return e.type ===
|
|
1051
|
+
function _n(e) {
|
|
1052
|
+
return e.type === x.pound;
|
|
1091
1053
|
}
|
|
1092
1054
|
function ir(e) {
|
|
1093
|
-
return e.type ===
|
|
1055
|
+
return e.type === x.tag;
|
|
1094
1056
|
}
|
|
1095
1057
|
function sr(e) {
|
|
1096
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1058
|
+
return !!(e && typeof e == "object" && e.type === q.number);
|
|
1097
1059
|
}
|
|
1098
|
-
function
|
|
1099
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1060
|
+
function Ye(e) {
|
|
1061
|
+
return !!(e && typeof e == "object" && e.type === q.dateTime);
|
|
1100
1062
|
}
|
|
1101
|
-
var
|
|
1102
|
-
function
|
|
1063
|
+
var or = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, vn = /(?:[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;
|
|
1064
|
+
function En(e) {
|
|
1103
1065
|
var t = {};
|
|
1104
|
-
return e.replace(
|
|
1066
|
+
return e.replace(vn, function(r) {
|
|
1105
1067
|
var n = r.length;
|
|
1106
1068
|
switch (r[0]) {
|
|
1107
1069
|
case "G":
|
|
@@ -1190,32 +1152,42 @@ function vn(e) {
|
|
|
1190
1152
|
return "";
|
|
1191
1153
|
}), t;
|
|
1192
1154
|
}
|
|
1193
|
-
var
|
|
1194
|
-
function
|
|
1155
|
+
var w = function() {
|
|
1156
|
+
return w = Object.assign || function(t) {
|
|
1157
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1158
|
+
r = arguments[n];
|
|
1159
|
+
for (var s in r)
|
|
1160
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1161
|
+
}
|
|
1162
|
+
return t;
|
|
1163
|
+
}, w.apply(this, arguments);
|
|
1164
|
+
};
|
|
1165
|
+
var xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1166
|
+
function wn(e) {
|
|
1195
1167
|
if (e.length === 0)
|
|
1196
1168
|
throw new Error("Number skeleton cannot be empty");
|
|
1197
|
-
for (var t = e.split(
|
|
1169
|
+
for (var t = e.split(xn).filter(function(m) {
|
|
1198
1170
|
return m.length > 0;
|
|
1199
1171
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1200
|
-
var s = i[n],
|
|
1201
|
-
if (
|
|
1172
|
+
var s = i[n], o = s.split("/");
|
|
1173
|
+
if (o.length === 0)
|
|
1202
1174
|
throw new Error("Invalid number skeleton");
|
|
1203
|
-
for (var
|
|
1175
|
+
for (var a = o[0], h = o.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1204
1176
|
var c = l[u];
|
|
1205
1177
|
if (c.length === 0)
|
|
1206
1178
|
throw new Error("Invalid number skeleton");
|
|
1207
1179
|
}
|
|
1208
|
-
r.push({ stem:
|
|
1180
|
+
r.push({ stem: a, options: h });
|
|
1209
1181
|
}
|
|
1210
1182
|
return r;
|
|
1211
1183
|
}
|
|
1212
|
-
function
|
|
1184
|
+
function Tn(e) {
|
|
1213
1185
|
return e.replace(/^(.*?)-/, "");
|
|
1214
1186
|
}
|
|
1215
|
-
var pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
|
1187
|
+
var pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ar = /^(@+)?(\+|#+)?[rs]?$/g, Hn = /(\*)(0+)|(#+)(0+)|(0+)/g, ur = /^(0+)$/;
|
|
1216
1188
|
function gt(e) {
|
|
1217
1189
|
var t = {};
|
|
1218
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1190
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ar, function(r, n, i) {
|
|
1219
1191
|
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)), "";
|
|
1220
1192
|
}), t;
|
|
1221
1193
|
}
|
|
@@ -1259,7 +1231,7 @@ function lr(e) {
|
|
|
1259
1231
|
};
|
|
1260
1232
|
}
|
|
1261
1233
|
}
|
|
1262
|
-
function
|
|
1234
|
+
function Sn(e) {
|
|
1263
1235
|
var t;
|
|
1264
1236
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1265
1237
|
notation: "engineering"
|
|
@@ -1277,7 +1249,7 @@ function bt(e) {
|
|
|
1277
1249
|
var t = {}, r = lr(e);
|
|
1278
1250
|
return r || t;
|
|
1279
1251
|
}
|
|
1280
|
-
function
|
|
1252
|
+
function Bn(e) {
|
|
1281
1253
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1282
1254
|
var i = n[r];
|
|
1283
1255
|
switch (i.stem) {
|
|
@@ -1301,7 +1273,7 @@ function Sn(e) {
|
|
|
1301
1273
|
continue;
|
|
1302
1274
|
case "measure-unit":
|
|
1303
1275
|
case "unit":
|
|
1304
|
-
t.style = "unit", t.unit =
|
|
1276
|
+
t.style = "unit", t.unit = Tn(i.options[0]);
|
|
1305
1277
|
continue;
|
|
1306
1278
|
case "compact-short":
|
|
1307
1279
|
case "K":
|
|
@@ -1312,13 +1284,13 @@ function Sn(e) {
|
|
|
1312
1284
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1313
1285
|
continue;
|
|
1314
1286
|
case "scientific":
|
|
1315
|
-
t =
|
|
1316
|
-
return
|
|
1287
|
+
t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1288
|
+
return w(w({}, h), bt(u));
|
|
1317
1289
|
}, {}));
|
|
1318
1290
|
continue;
|
|
1319
1291
|
case "engineering":
|
|
1320
|
-
t =
|
|
1321
|
-
return
|
|
1292
|
+
t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1293
|
+
return w(w({}, h), bt(u));
|
|
1322
1294
|
}, {}));
|
|
1323
1295
|
continue;
|
|
1324
1296
|
case "notation-simple":
|
|
@@ -1363,7 +1335,7 @@ function Sn(e) {
|
|
|
1363
1335
|
case "integer-width":
|
|
1364
1336
|
if (i.options.length > 1)
|
|
1365
1337
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1366
|
-
i.options[0].replace(
|
|
1338
|
+
i.options[0].replace(Hn, function(h, u, l, c, m, d) {
|
|
1367
1339
|
if (u)
|
|
1368
1340
|
t.minimumIntegerDigits = l.length;
|
|
1369
1341
|
else {
|
|
@@ -1387,21 +1359,21 @@ function Sn(e) {
|
|
|
1387
1359
|
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1388
1360
|
});
|
|
1389
1361
|
var s = i.options[0];
|
|
1390
|
-
s === "w" ? t =
|
|
1362
|
+
s === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = w(w({}, t), gt(s)));
|
|
1391
1363
|
continue;
|
|
1392
1364
|
}
|
|
1393
|
-
if (
|
|
1394
|
-
t =
|
|
1365
|
+
if (ar.test(i.stem)) {
|
|
1366
|
+
t = w(w({}, t), gt(i.stem));
|
|
1395
1367
|
continue;
|
|
1396
1368
|
}
|
|
1397
|
-
var
|
|
1398
|
-
|
|
1399
|
-
var
|
|
1400
|
-
|
|
1369
|
+
var o = lr(i.stem);
|
|
1370
|
+
o && (t = w(w({}, t), o));
|
|
1371
|
+
var a = Sn(i.stem);
|
|
1372
|
+
a && (t = w(w({}, t), a));
|
|
1401
1373
|
}
|
|
1402
1374
|
return t;
|
|
1403
1375
|
}
|
|
1404
|
-
var
|
|
1376
|
+
var xe = {
|
|
1405
1377
|
"001": [
|
|
1406
1378
|
"H",
|
|
1407
1379
|
"h"
|
|
@@ -2816,23 +2788,23 @@ var Ee = {
|
|
|
2816
2788
|
"h"
|
|
2817
2789
|
]
|
|
2818
2790
|
};
|
|
2819
|
-
function
|
|
2791
|
+
function An(e, t) {
|
|
2820
2792
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2821
2793
|
var i = e.charAt(n);
|
|
2822
2794
|
if (i === "j") {
|
|
2823
2795
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2824
2796
|
s++, n++;
|
|
2825
|
-
var
|
|
2826
|
-
for ((u == "H" || u == "k") && (
|
|
2797
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = Pn(t);
|
|
2798
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2827
2799
|
r += h;
|
|
2828
|
-
for (;
|
|
2800
|
+
for (; o-- > 0; )
|
|
2829
2801
|
r = u + r;
|
|
2830
2802
|
} else
|
|
2831
2803
|
i === "J" ? r += "H" : r += i;
|
|
2832
2804
|
}
|
|
2833
2805
|
return r;
|
|
2834
2806
|
}
|
|
2835
|
-
function
|
|
2807
|
+
function Pn(e) {
|
|
2836
2808
|
var t = e.hourCycle;
|
|
2837
2809
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2838
2810
|
e.hourCycles && // @ts-ignore
|
|
@@ -2851,23 +2823,23 @@ function An(e) {
|
|
|
2851
2823
|
}
|
|
2852
2824
|
var r = e.language, n;
|
|
2853
2825
|
r !== "root" && (n = e.maximize().region);
|
|
2854
|
-
var i =
|
|
2826
|
+
var i = xe[n || ""] || xe[r || ""] || xe["".concat(r, "-001")] || xe["001"];
|
|
2855
2827
|
return i[0];
|
|
2856
2828
|
}
|
|
2857
|
-
var
|
|
2829
|
+
var ze, On = new RegExp("^".concat(or.source, "*")), In = new RegExp("".concat(or.source, "*$"));
|
|
2858
2830
|
function v(e, t) {
|
|
2859
2831
|
return { start: e, end: t };
|
|
2860
2832
|
}
|
|
2861
|
-
var
|
|
2833
|
+
var Cn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Mn = !!String.fromCodePoint, Nn = !!Object.fromEntries, Ln = !!String.prototype.codePointAt, $n = !!String.prototype.trimStart, Rn = !!String.prototype.trimEnd, Dn = !!Number.isSafeInteger, kn = Dn ? Number.isSafeInteger : function(e) {
|
|
2862
2834
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2863
|
-
},
|
|
2835
|
+
}, Ke = !0;
|
|
2864
2836
|
try {
|
|
2865
|
-
var
|
|
2866
|
-
|
|
2837
|
+
var Un = cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2838
|
+
Ke = ((ze = Un.exec("a")) === null || ze === void 0 ? void 0 : ze[0]) === "a";
|
|
2867
2839
|
} catch {
|
|
2868
|
-
|
|
2840
|
+
Ke = !1;
|
|
2869
2841
|
}
|
|
2870
|
-
var yt =
|
|
2842
|
+
var yt = Cn ? (
|
|
2871
2843
|
// Native
|
|
2872
2844
|
function(t, r, n) {
|
|
2873
2845
|
return t.startsWith(r, n);
|
|
@@ -2877,31 +2849,31 @@ var yt = In ? (
|
|
|
2877
2849
|
function(t, r, n) {
|
|
2878
2850
|
return t.slice(n, n + r.length) === r;
|
|
2879
2851
|
}
|
|
2880
|
-
),
|
|
2852
|
+
), et = Mn ? String.fromCodePoint : (
|
|
2881
2853
|
// IE11
|
|
2882
2854
|
function() {
|
|
2883
2855
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2884
2856
|
t[r] = arguments[r];
|
|
2885
|
-
for (var n = "", i = t.length, s = 0,
|
|
2886
|
-
if (
|
|
2887
|
-
throw RangeError(
|
|
2888
|
-
n +=
|
|
2857
|
+
for (var n = "", i = t.length, s = 0, o; i > s; ) {
|
|
2858
|
+
if (o = t[s++], o > 1114111)
|
|
2859
|
+
throw RangeError(o + " is not a valid code point");
|
|
2860
|
+
n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
|
|
2889
2861
|
}
|
|
2890
2862
|
return n;
|
|
2891
2863
|
}
|
|
2892
2864
|
), _t = (
|
|
2893
2865
|
// native
|
|
2894
|
-
|
|
2866
|
+
Nn ? Object.fromEntries : (
|
|
2895
2867
|
// Ponyfill
|
|
2896
2868
|
function(t) {
|
|
2897
2869
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2898
|
-
var s = i[n],
|
|
2899
|
-
r[
|
|
2870
|
+
var s = i[n], o = s[0], a = s[1];
|
|
2871
|
+
r[o] = a;
|
|
2900
2872
|
}
|
|
2901
2873
|
return r;
|
|
2902
2874
|
}
|
|
2903
2875
|
)
|
|
2904
|
-
), hr =
|
|
2876
|
+
), hr = Ln ? (
|
|
2905
2877
|
// Native
|
|
2906
2878
|
function(t, r) {
|
|
2907
2879
|
return t.codePointAt(r);
|
|
@@ -2915,7 +2887,7 @@ var yt = In ? (
|
|
|
2915
2887
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2916
2888
|
}
|
|
2917
2889
|
}
|
|
2918
|
-
),
|
|
2890
|
+
), Gn = $n ? (
|
|
2919
2891
|
// Native
|
|
2920
2892
|
function(t) {
|
|
2921
2893
|
return t.trimStart();
|
|
@@ -2923,9 +2895,9 @@ var yt = In ? (
|
|
|
2923
2895
|
) : (
|
|
2924
2896
|
// Ponyfill
|
|
2925
2897
|
function(t) {
|
|
2926
|
-
return t.replace(
|
|
2898
|
+
return t.replace(On, "");
|
|
2927
2899
|
}
|
|
2928
|
-
),
|
|
2900
|
+
), Fn = Rn ? (
|
|
2929
2901
|
// Native
|
|
2930
2902
|
function(t) {
|
|
2931
2903
|
return t.trimEnd();
|
|
@@ -2933,32 +2905,32 @@ var yt = In ? (
|
|
|
2933
2905
|
) : (
|
|
2934
2906
|
// Ponyfill
|
|
2935
2907
|
function(t) {
|
|
2936
|
-
return t.replace(
|
|
2908
|
+
return t.replace(In, "");
|
|
2937
2909
|
}
|
|
2938
2910
|
);
|
|
2939
2911
|
function cr(e, t) {
|
|
2940
2912
|
return new RegExp(e, t);
|
|
2941
2913
|
}
|
|
2942
|
-
var
|
|
2943
|
-
if (
|
|
2914
|
+
var tt;
|
|
2915
|
+
if (Ke) {
|
|
2944
2916
|
var vt = cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2945
|
-
|
|
2917
|
+
tt = function(t, r) {
|
|
2946
2918
|
var n;
|
|
2947
2919
|
vt.lastIndex = r;
|
|
2948
2920
|
var i = vt.exec(t);
|
|
2949
2921
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2950
2922
|
};
|
|
2951
2923
|
} else
|
|
2952
|
-
|
|
2924
|
+
tt = function(t, r) {
|
|
2953
2925
|
for (var n = []; ; ) {
|
|
2954
2926
|
var i = hr(t, r);
|
|
2955
|
-
if (i === void 0 || fr(i) ||
|
|
2927
|
+
if (i === void 0 || fr(i) || Xn(i))
|
|
2956
2928
|
break;
|
|
2957
2929
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2958
2930
|
}
|
|
2959
|
-
return
|
|
2931
|
+
return et.apply(void 0, n);
|
|
2960
2932
|
};
|
|
2961
|
-
var
|
|
2933
|
+
var jn = (
|
|
2962
2934
|
/** @class */
|
|
2963
2935
|
function() {
|
|
2964
2936
|
function e(t, r) {
|
|
@@ -2972,33 +2944,33 @@ var Fn = (
|
|
|
2972
2944
|
for (var i = []; !this.isEOF(); ) {
|
|
2973
2945
|
var s = this.char();
|
|
2974
2946
|
if (s === 123) {
|
|
2975
|
-
var
|
|
2976
|
-
if (
|
|
2977
|
-
return
|
|
2978
|
-
i.push(
|
|
2947
|
+
var o = this.parseArgument(t, n);
|
|
2948
|
+
if (o.err)
|
|
2949
|
+
return o;
|
|
2950
|
+
i.push(o.val);
|
|
2979
2951
|
} else {
|
|
2980
2952
|
if (s === 125 && t > 0)
|
|
2981
2953
|
break;
|
|
2982
2954
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2983
|
-
var
|
|
2955
|
+
var a = this.clonePosition();
|
|
2984
2956
|
this.bump(), i.push({
|
|
2985
|
-
type:
|
|
2986
|
-
location: v(
|
|
2957
|
+
type: x.pound,
|
|
2958
|
+
location: v(a, this.clonePosition())
|
|
2987
2959
|
});
|
|
2988
2960
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2989
2961
|
if (n)
|
|
2990
2962
|
break;
|
|
2991
2963
|
return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
2992
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2993
|
-
var
|
|
2994
|
-
if (
|
|
2995
|
-
return
|
|
2996
|
-
i.push(
|
|
2964
|
+
} else if (s === 60 && !this.ignoreTag && rt(this.peek() || 0)) {
|
|
2965
|
+
var o = this.parseTag(t, r);
|
|
2966
|
+
if (o.err)
|
|
2967
|
+
return o;
|
|
2968
|
+
i.push(o.val);
|
|
2997
2969
|
} else {
|
|
2998
|
-
var
|
|
2999
|
-
if (
|
|
3000
|
-
return
|
|
3001
|
-
i.push(
|
|
2970
|
+
var o = this.parseLiteral(t, r);
|
|
2971
|
+
if (o.err)
|
|
2972
|
+
return o;
|
|
2973
|
+
i.push(o.val);
|
|
3002
2974
|
}
|
|
3003
2975
|
}
|
|
3004
2976
|
}
|
|
@@ -3010,7 +2982,7 @@ var Fn = (
|
|
|
3010
2982
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3011
2983
|
return {
|
|
3012
2984
|
val: {
|
|
3013
|
-
type:
|
|
2985
|
+
type: x.literal,
|
|
3014
2986
|
value: "<".concat(i, "/>"),
|
|
3015
2987
|
location: v(n, this.clonePosition())
|
|
3016
2988
|
},
|
|
@@ -3020,27 +2992,27 @@ var Fn = (
|
|
|
3020
2992
|
var s = this.parseMessage(t + 1, r, !0);
|
|
3021
2993
|
if (s.err)
|
|
3022
2994
|
return s;
|
|
3023
|
-
var
|
|
2995
|
+
var o = s.val, a = this.clonePosition();
|
|
3024
2996
|
if (this.bumpIf("</")) {
|
|
3025
|
-
if (this.isEOF() || !
|
|
3026
|
-
return this.error(y.INVALID_TAG, v(
|
|
2997
|
+
if (this.isEOF() || !rt(this.char()))
|
|
2998
|
+
return this.error(y.INVALID_TAG, v(a, this.clonePosition()));
|
|
3027
2999
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3028
3000
|
return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3029
3001
|
val: {
|
|
3030
|
-
type:
|
|
3002
|
+
type: x.tag,
|
|
3031
3003
|
value: i,
|
|
3032
|
-
children:
|
|
3004
|
+
children: o,
|
|
3033
3005
|
location: v(n, this.clonePosition())
|
|
3034
3006
|
},
|
|
3035
3007
|
err: null
|
|
3036
|
-
} : this.error(y.INVALID_TAG, v(
|
|
3008
|
+
} : this.error(y.INVALID_TAG, v(a, this.clonePosition())));
|
|
3037
3009
|
} else
|
|
3038
3010
|
return this.error(y.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
3039
3011
|
} else
|
|
3040
3012
|
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
|
3041
3013
|
}, e.prototype.parseTagName = function() {
|
|
3042
3014
|
var t = this.offset();
|
|
3043
|
-
for (this.bump(); !this.isEOF() &&
|
|
3015
|
+
for (this.bump(); !this.isEOF() && Vn(this.char()); )
|
|
3044
3016
|
this.bump();
|
|
3045
3017
|
return this.message.slice(t, this.offset());
|
|
3046
3018
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3050,26 +3022,26 @@ var Fn = (
|
|
|
3050
3022
|
i += s;
|
|
3051
3023
|
continue;
|
|
3052
3024
|
}
|
|
3053
|
-
var
|
|
3054
|
-
if (a) {
|
|
3055
|
-
i += a;
|
|
3056
|
-
continue;
|
|
3057
|
-
}
|
|
3058
|
-
var o = this.tryParseLeftAngleBracket();
|
|
3025
|
+
var o = this.tryParseUnquoted(t, r);
|
|
3059
3026
|
if (o) {
|
|
3060
3027
|
i += o;
|
|
3061
3028
|
continue;
|
|
3062
3029
|
}
|
|
3030
|
+
var a = this.tryParseLeftAngleBracket();
|
|
3031
|
+
if (a) {
|
|
3032
|
+
i += a;
|
|
3033
|
+
continue;
|
|
3034
|
+
}
|
|
3063
3035
|
break;
|
|
3064
3036
|
}
|
|
3065
3037
|
var h = v(n, this.clonePosition());
|
|
3066
3038
|
return {
|
|
3067
|
-
val: { type:
|
|
3039
|
+
val: { type: x.literal, value: i, location: h },
|
|
3068
3040
|
err: null
|
|
3069
3041
|
};
|
|
3070
3042
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3071
3043
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3072
|
-
!
|
|
3044
|
+
!zn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3073
3045
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3074
3046
|
if (this.isEOF() || this.char() !== 39)
|
|
3075
3047
|
return null;
|
|
@@ -3103,12 +3075,12 @@ var Fn = (
|
|
|
3103
3075
|
r.push(n);
|
|
3104
3076
|
this.bump();
|
|
3105
3077
|
}
|
|
3106
|
-
return
|
|
3078
|
+
return et.apply(void 0, r);
|
|
3107
3079
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3108
3080
|
if (this.isEOF())
|
|
3109
3081
|
return null;
|
|
3110
3082
|
var n = this.char();
|
|
3111
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3083
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), et(n));
|
|
3112
3084
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3113
3085
|
var n = this.clonePosition();
|
|
3114
3086
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3124,7 +3096,7 @@ var Fn = (
|
|
|
3124
3096
|
case 125:
|
|
3125
3097
|
return this.bump(), {
|
|
3126
3098
|
val: {
|
|
3127
|
-
type:
|
|
3099
|
+
type: x.argument,
|
|
3128
3100
|
// value does not include the opening and closing braces.
|
|
3129
3101
|
value: i,
|
|
3130
3102
|
location: v(n, this.clonePosition())
|
|
@@ -3137,15 +3109,15 @@ var Fn = (
|
|
|
3137
3109
|
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3138
3110
|
}
|
|
3139
3111
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3140
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3112
|
+
var t = this.clonePosition(), r = this.offset(), n = tt(this.message, r), i = r + n.length;
|
|
3141
3113
|
this.bumpTo(i);
|
|
3142
|
-
var s = this.clonePosition(),
|
|
3143
|
-
return { value: n, location:
|
|
3114
|
+
var s = this.clonePosition(), o = v(t, s);
|
|
3115
|
+
return { value: n, location: o };
|
|
3144
3116
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3145
|
-
var s,
|
|
3146
|
-
switch (
|
|
3117
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3118
|
+
switch (a) {
|
|
3147
3119
|
case "":
|
|
3148
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE, v(
|
|
3120
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, v(o, h));
|
|
3149
3121
|
case "number":
|
|
3150
3122
|
case "date":
|
|
3151
3123
|
case "time": {
|
|
@@ -3156,7 +3128,7 @@ var Fn = (
|
|
|
3156
3128
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3157
3129
|
if (c.err)
|
|
3158
3130
|
return c;
|
|
3159
|
-
var m =
|
|
3131
|
+
var m = Fn(c.val);
|
|
3160
3132
|
if (m.length === 0)
|
|
3161
3133
|
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3162
3134
|
var d = v(l, this.clonePosition());
|
|
@@ -3167,24 +3139,24 @@ var Fn = (
|
|
|
3167
3139
|
return p;
|
|
3168
3140
|
var b = v(i, this.clonePosition());
|
|
3169
3141
|
if (u && yt(u?.style, "::", 0)) {
|
|
3170
|
-
var
|
|
3171
|
-
if (
|
|
3172
|
-
var c = this.parseNumberSkeletonFromString(
|
|
3142
|
+
var E = Gn(u.style.slice(2));
|
|
3143
|
+
if (a === "number") {
|
|
3144
|
+
var c = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
3173
3145
|
return c.err ? c : {
|
|
3174
|
-
val: { type:
|
|
3146
|
+
val: { type: x.number, value: n, location: b, style: c.val },
|
|
3175
3147
|
err: null
|
|
3176
3148
|
};
|
|
3177
3149
|
} else {
|
|
3178
|
-
if (
|
|
3150
|
+
if (E.length === 0)
|
|
3179
3151
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
|
3180
|
-
var _ =
|
|
3181
|
-
this.locale && (_ =
|
|
3152
|
+
var _ = E;
|
|
3153
|
+
this.locale && (_ = An(E, this.locale));
|
|
3182
3154
|
var m = {
|
|
3183
|
-
type:
|
|
3155
|
+
type: q.dateTime,
|
|
3184
3156
|
pattern: _,
|
|
3185
3157
|
location: u.styleLocation,
|
|
3186
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3187
|
-
}, f =
|
|
3158
|
+
parsedOptions: this.shouldParseSkeletons ? En(_) : {}
|
|
3159
|
+
}, f = a === "date" ? x.date : x.time;
|
|
3188
3160
|
return {
|
|
3189
3161
|
val: { type: f, value: n, location: b, style: m },
|
|
3190
3162
|
err: null
|
|
@@ -3193,7 +3165,7 @@ var Fn = (
|
|
|
3193
3165
|
}
|
|
3194
3166
|
return {
|
|
3195
3167
|
val: {
|
|
3196
|
-
type:
|
|
3168
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
3197
3169
|
value: n,
|
|
3198
3170
|
location: b,
|
|
3199
3171
|
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
@@ -3206,10 +3178,10 @@ var Fn = (
|
|
|
3206
3178
|
case "select": {
|
|
3207
3179
|
var g = this.clonePosition();
|
|
3208
3180
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3209
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(g,
|
|
3181
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(g, Oe({}, g)));
|
|
3210
3182
|
this.bumpSpace();
|
|
3211
3183
|
var S = this.parseIdentifierIfPossible(), A = 0;
|
|
3212
|
-
if (
|
|
3184
|
+
if (a !== "select" && S.value === "offset") {
|
|
3213
3185
|
if (!this.bumpIf(":"))
|
|
3214
3186
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3215
3187
|
this.bumpSpace();
|
|
@@ -3218,35 +3190,35 @@ var Fn = (
|
|
|
3218
3190
|
return c;
|
|
3219
3191
|
this.bumpSpace(), S = this.parseIdentifierIfPossible(), A = c.val;
|
|
3220
3192
|
}
|
|
3221
|
-
var
|
|
3222
|
-
if (
|
|
3223
|
-
return
|
|
3193
|
+
var $ = this.tryParsePluralOrSelectOptions(t, a, r, S);
|
|
3194
|
+
if ($.err)
|
|
3195
|
+
return $;
|
|
3224
3196
|
var p = this.tryParseArgumentClose(i);
|
|
3225
3197
|
if (p.err)
|
|
3226
3198
|
return p;
|
|
3227
3199
|
var T = v(i, this.clonePosition());
|
|
3228
|
-
return
|
|
3200
|
+
return a === "select" ? {
|
|
3229
3201
|
val: {
|
|
3230
|
-
type:
|
|
3202
|
+
type: x.select,
|
|
3231
3203
|
value: n,
|
|
3232
|
-
options: _t(
|
|
3204
|
+
options: _t($.val),
|
|
3233
3205
|
location: T
|
|
3234
3206
|
},
|
|
3235
3207
|
err: null
|
|
3236
3208
|
} : {
|
|
3237
3209
|
val: {
|
|
3238
|
-
type:
|
|
3210
|
+
type: x.plural,
|
|
3239
3211
|
value: n,
|
|
3240
|
-
options: _t(
|
|
3212
|
+
options: _t($.val),
|
|
3241
3213
|
offset: A,
|
|
3242
|
-
pluralType:
|
|
3214
|
+
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3243
3215
|
location: T
|
|
3244
3216
|
},
|
|
3245
3217
|
err: null
|
|
3246
3218
|
};
|
|
3247
3219
|
}
|
|
3248
3220
|
default:
|
|
3249
|
-
return this.error(y.INVALID_ARGUMENT_TYPE, v(
|
|
3221
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, v(o, h));
|
|
3250
3222
|
}
|
|
3251
3223
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3252
3224
|
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3288,21 +3260,21 @@ var Fn = (
|
|
|
3288
3260
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3289
3261
|
var n = [];
|
|
3290
3262
|
try {
|
|
3291
|
-
n =
|
|
3263
|
+
n = wn(t);
|
|
3292
3264
|
} catch {
|
|
3293
3265
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3294
3266
|
}
|
|
3295
3267
|
return {
|
|
3296
3268
|
val: {
|
|
3297
|
-
type:
|
|
3269
|
+
type: q.number,
|
|
3298
3270
|
tokens: n,
|
|
3299
3271
|
location: r,
|
|
3300
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3272
|
+
parsedOptions: this.shouldParseSkeletons ? Bn(n) : {}
|
|
3301
3273
|
},
|
|
3302
3274
|
err: null
|
|
3303
3275
|
};
|
|
3304
3276
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3305
|
-
for (var s,
|
|
3277
|
+
for (var s, o = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3306
3278
|
if (u.length === 0) {
|
|
3307
3279
|
var c = this.clonePosition();
|
|
3308
3280
|
if (r !== "select" && this.bumpIf("=")) {
|
|
@@ -3315,7 +3287,7 @@ var Fn = (
|
|
|
3315
3287
|
}
|
|
3316
3288
|
if (h.has(u))
|
|
3317
3289
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3318
|
-
u === "other" && (
|
|
3290
|
+
u === "other" && (o = !0), this.bumpSpace();
|
|
3319
3291
|
var d = this.clonePosition();
|
|
3320
3292
|
if (!this.bumpIf("{"))
|
|
3321
3293
|
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
@@ -3325,7 +3297,7 @@ var Fn = (
|
|
|
3325
3297
|
var b = this.tryParseArgumentClose(d);
|
|
3326
3298
|
if (b.err)
|
|
3327
3299
|
return b;
|
|
3328
|
-
|
|
3300
|
+
a.push([
|
|
3329
3301
|
u,
|
|
3330
3302
|
{
|
|
3331
3303
|
value: p.val,
|
|
@@ -3333,19 +3305,19 @@ var Fn = (
|
|
|
3333
3305
|
}
|
|
3334
3306
|
]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
|
|
3335
3307
|
}
|
|
3336
|
-
return
|
|
3308
|
+
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(y.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3337
3309
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3338
3310
|
var n = 1, i = this.clonePosition();
|
|
3339
3311
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3340
|
-
for (var s = !1,
|
|
3341
|
-
var
|
|
3342
|
-
if (
|
|
3343
|
-
s = !0,
|
|
3312
|
+
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
3313
|
+
var a = this.char();
|
|
3314
|
+
if (a >= 48 && a <= 57)
|
|
3315
|
+
s = !0, o = o * 10 + (a - 48), this.bump();
|
|
3344
3316
|
else
|
|
3345
3317
|
break;
|
|
3346
3318
|
}
|
|
3347
3319
|
var h = v(i, this.clonePosition());
|
|
3348
|
-
return s ? (
|
|
3320
|
+
return s ? (o *= n, kn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3349
3321
|
}, e.prototype.offset = function() {
|
|
3350
3322
|
return this.position.offset;
|
|
3351
3323
|
}, e.prototype.isEOF = function() {
|
|
@@ -3411,47 +3383,47 @@ var Fn = (
|
|
|
3411
3383
|
}, e;
|
|
3412
3384
|
}()
|
|
3413
3385
|
);
|
|
3414
|
-
function
|
|
3386
|
+
function rt(e) {
|
|
3415
3387
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3416
3388
|
}
|
|
3417
|
-
function jn(e) {
|
|
3418
|
-
return et(e) || e === 47;
|
|
3419
|
-
}
|
|
3420
3389
|
function zn(e) {
|
|
3390
|
+
return rt(e) || e === 47;
|
|
3391
|
+
}
|
|
3392
|
+
function Vn(e) {
|
|
3421
3393
|
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;
|
|
3422
3394
|
}
|
|
3423
3395
|
function fr(e) {
|
|
3424
3396
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3425
3397
|
}
|
|
3426
|
-
function
|
|
3398
|
+
function Xn(e) {
|
|
3427
3399
|
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;
|
|
3428
3400
|
}
|
|
3429
|
-
function
|
|
3401
|
+
function nt(e) {
|
|
3430
3402
|
e.forEach(function(t) {
|
|
3431
3403
|
if (delete t.location, rr(t) || nr(t))
|
|
3432
3404
|
for (var r in t.options)
|
|
3433
|
-
delete t.options[r].location,
|
|
3405
|
+
delete t.options[r].location, nt(t.options[r].value);
|
|
3434
3406
|
else
|
|
3435
|
-
Kt(t) && sr(t.style) || (er(t) || tr(t)) &&
|
|
3407
|
+
Kt(t) && sr(t.style) || (er(t) || tr(t)) && Ye(t.style) ? delete t.style.location : ir(t) && nt(t.children);
|
|
3436
3408
|
});
|
|
3437
3409
|
}
|
|
3438
|
-
function
|
|
3439
|
-
t === void 0 && (t = {}), t =
|
|
3440
|
-
var r = new
|
|
3410
|
+
function Wn(e, t) {
|
|
3411
|
+
t === void 0 && (t = {}), t = Oe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3412
|
+
var r = new jn(e, t).parse();
|
|
3441
3413
|
if (r.err) {
|
|
3442
3414
|
var n = SyntaxError(y[r.err.kind]);
|
|
3443
3415
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3444
3416
|
}
|
|
3445
|
-
return t?.captureLocation ||
|
|
3417
|
+
return t?.captureLocation || nt(r.val), r.val;
|
|
3446
3418
|
}
|
|
3447
|
-
var
|
|
3419
|
+
var Q;
|
|
3448
3420
|
(function(e) {
|
|
3449
3421
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3450
|
-
})(
|
|
3451
|
-
var
|
|
3422
|
+
})(Q || (Q = {}));
|
|
3423
|
+
var Re = (
|
|
3452
3424
|
/** @class */
|
|
3453
3425
|
function(e) {
|
|
3454
|
-
|
|
3426
|
+
$e(t, e);
|
|
3455
3427
|
function t(r, n, i) {
|
|
3456
3428
|
var s = e.call(this, r) || this;
|
|
3457
3429
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3463,44 +3435,44 @@ var Le = (
|
|
|
3463
3435
|
), Et = (
|
|
3464
3436
|
/** @class */
|
|
3465
3437
|
function(e) {
|
|
3466
|
-
|
|
3438
|
+
$e(t, e);
|
|
3467
3439
|
function t(r, n, i, s) {
|
|
3468
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3440
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Q.INVALID_VALUE, s) || this;
|
|
3469
3441
|
}
|
|
3470
3442
|
return t;
|
|
3471
|
-
}(
|
|
3472
|
-
),
|
|
3443
|
+
}(Re)
|
|
3444
|
+
), Zn = (
|
|
3473
3445
|
/** @class */
|
|
3474
3446
|
function(e) {
|
|
3475
|
-
|
|
3447
|
+
$e(t, e);
|
|
3476
3448
|
function t(r, n, i) {
|
|
3477
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3449
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Q.INVALID_VALUE, i) || this;
|
|
3478
3450
|
}
|
|
3479
3451
|
return t;
|
|
3480
|
-
}(
|
|
3481
|
-
),
|
|
3452
|
+
}(Re)
|
|
3453
|
+
), Jn = (
|
|
3482
3454
|
/** @class */
|
|
3483
3455
|
function(e) {
|
|
3484
|
-
|
|
3456
|
+
$e(t, e);
|
|
3485
3457
|
function t(r, n) {
|
|
3486
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3458
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Q.MISSING_VALUE, n) || this;
|
|
3487
3459
|
}
|
|
3488
3460
|
return t;
|
|
3489
|
-
}(
|
|
3461
|
+
}(Re)
|
|
3490
3462
|
), H;
|
|
3491
3463
|
(function(e) {
|
|
3492
3464
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3493
3465
|
})(H || (H = {}));
|
|
3494
|
-
function
|
|
3466
|
+
function qn(e) {
|
|
3495
3467
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3496
3468
|
var n = t[t.length - 1];
|
|
3497
3469
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3498
3470
|
}, []);
|
|
3499
3471
|
}
|
|
3500
|
-
function
|
|
3472
|
+
function Qn(e) {
|
|
3501
3473
|
return typeof e == "function";
|
|
3502
3474
|
}
|
|
3503
|
-
function
|
|
3475
|
+
function He(e, t, r, n, i, s, o) {
|
|
3504
3476
|
if (e.length === 1 && dt(e[0]))
|
|
3505
3477
|
return [
|
|
3506
3478
|
{
|
|
@@ -3508,17 +3480,17 @@ function Te(e, t, r, n, i, s, a) {
|
|
|
3508
3480
|
value: e[0].value
|
|
3509
3481
|
}
|
|
3510
3482
|
];
|
|
3511
|
-
for (var
|
|
3483
|
+
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3512
3484
|
var l = u[h];
|
|
3513
3485
|
if (dt(l)) {
|
|
3514
|
-
|
|
3486
|
+
a.push({
|
|
3515
3487
|
type: H.literal,
|
|
3516
3488
|
value: l.value
|
|
3517
3489
|
});
|
|
3518
3490
|
continue;
|
|
3519
3491
|
}
|
|
3520
|
-
if (
|
|
3521
|
-
typeof s == "number" &&
|
|
3492
|
+
if (_n(l)) {
|
|
3493
|
+
typeof s == "number" && a.push({
|
|
3522
3494
|
type: H.literal,
|
|
3523
3495
|
value: r.getNumberFormat(t).format(s)
|
|
3524
3496
|
});
|
|
@@ -3526,26 +3498,26 @@ function Te(e, t, r, n, i, s, a) {
|
|
|
3526
3498
|
}
|
|
3527
3499
|
var c = l.value;
|
|
3528
3500
|
if (!(i && c in i))
|
|
3529
|
-
throw new
|
|
3501
|
+
throw new Jn(c, o);
|
|
3530
3502
|
var m = i[c];
|
|
3531
|
-
if (
|
|
3532
|
-
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""),
|
|
3503
|
+
if (yn(l)) {
|
|
3504
|
+
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
|
|
3533
3505
|
type: typeof m == "string" ? H.literal : H.object,
|
|
3534
3506
|
value: m
|
|
3535
3507
|
});
|
|
3536
3508
|
continue;
|
|
3537
3509
|
}
|
|
3538
3510
|
if (er(l)) {
|
|
3539
|
-
var d = typeof l.style == "string" ? n.date[l.style] :
|
|
3540
|
-
|
|
3511
|
+
var d = typeof l.style == "string" ? n.date[l.style] : Ye(l.style) ? l.style.parsedOptions : void 0;
|
|
3512
|
+
a.push({
|
|
3541
3513
|
type: H.literal,
|
|
3542
3514
|
value: r.getDateTimeFormat(t, d).format(m)
|
|
3543
3515
|
});
|
|
3544
3516
|
continue;
|
|
3545
3517
|
}
|
|
3546
3518
|
if (tr(l)) {
|
|
3547
|
-
var d = typeof l.style == "string" ? n.time[l.style] :
|
|
3548
|
-
|
|
3519
|
+
var d = typeof l.style == "string" ? n.time[l.style] : Ye(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3520
|
+
a.push({
|
|
3549
3521
|
type: H.literal,
|
|
3550
3522
|
value: r.getDateTimeFormat(t, d).format(m)
|
|
3551
3523
|
});
|
|
@@ -3553,20 +3525,20 @@ function Te(e, t, r, n, i, s, a) {
|
|
|
3553
3525
|
}
|
|
3554
3526
|
if (Kt(l)) {
|
|
3555
3527
|
var d = typeof l.style == "string" ? n.number[l.style] : sr(l.style) ? l.style.parsedOptions : void 0;
|
|
3556
|
-
d && d.scale && (m = m * (d.scale || 1)),
|
|
3528
|
+
d && d.scale && (m = m * (d.scale || 1)), a.push({
|
|
3557
3529
|
type: H.literal,
|
|
3558
3530
|
value: r.getNumberFormat(t, d).format(m)
|
|
3559
3531
|
});
|
|
3560
3532
|
continue;
|
|
3561
3533
|
}
|
|
3562
3534
|
if (ir(l)) {
|
|
3563
|
-
var p = l.children, b = l.value,
|
|
3564
|
-
if (!
|
|
3565
|
-
throw new
|
|
3566
|
-
var _ =
|
|
3535
|
+
var p = l.children, b = l.value, E = i[b];
|
|
3536
|
+
if (!Qn(E))
|
|
3537
|
+
throw new Zn(b, "function", o);
|
|
3538
|
+
var _ = He(p, t, r, n, i, s), f = E(_.map(function(A) {
|
|
3567
3539
|
return A.value;
|
|
3568
3540
|
}));
|
|
3569
|
-
Array.isArray(f) || (f = [f]),
|
|
3541
|
+
Array.isArray(f) || (f = [f]), a.push.apply(a, f.map(function(A) {
|
|
3570
3542
|
return {
|
|
3571
3543
|
type: typeof A == "string" ? H.literal : H.object,
|
|
3572
3544
|
value: A
|
|
@@ -3576,39 +3548,39 @@ function Te(e, t, r, n, i, s, a) {
|
|
|
3576
3548
|
if (rr(l)) {
|
|
3577
3549
|
var g = l.options[m] || l.options.other;
|
|
3578
3550
|
if (!g)
|
|
3579
|
-
throw new Et(l.value, m, Object.keys(l.options),
|
|
3580
|
-
|
|
3551
|
+
throw new Et(l.value, m, Object.keys(l.options), o);
|
|
3552
|
+
a.push.apply(a, He(g.value, t, r, n, i));
|
|
3581
3553
|
continue;
|
|
3582
3554
|
}
|
|
3583
3555
|
if (nr(l)) {
|
|
3584
3556
|
var g = l.options["=".concat(m)];
|
|
3585
3557
|
if (!g) {
|
|
3586
3558
|
if (!Intl.PluralRules)
|
|
3587
|
-
throw new
|
|
3559
|
+
throw new Re(`Intl.PluralRules is not available in this environment.
|
|
3588
3560
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3589
|
-
`,
|
|
3561
|
+
`, Q.MISSING_INTL_API, o);
|
|
3590
3562
|
var S = r.getPluralRules(t, { type: l.pluralType }).select(m - (l.offset || 0));
|
|
3591
3563
|
g = l.options[S] || l.options.other;
|
|
3592
3564
|
}
|
|
3593
3565
|
if (!g)
|
|
3594
|
-
throw new Et(l.value, m, Object.keys(l.options),
|
|
3595
|
-
|
|
3566
|
+
throw new Et(l.value, m, Object.keys(l.options), o);
|
|
3567
|
+
a.push.apply(a, He(g.value, t, r, n, i, m - (l.offset || 0)));
|
|
3596
3568
|
continue;
|
|
3597
3569
|
}
|
|
3598
3570
|
}
|
|
3599
|
-
return
|
|
3571
|
+
return qn(a);
|
|
3600
3572
|
}
|
|
3601
|
-
function
|
|
3602
|
-
return t ?
|
|
3603
|
-
return r[n] =
|
|
3573
|
+
function Yn(e, t) {
|
|
3574
|
+
return t ? I(I(I({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3575
|
+
return r[n] = I(I({}, e[n]), t[n] || {}), r;
|
|
3604
3576
|
}, {})) : e;
|
|
3605
3577
|
}
|
|
3606
|
-
function
|
|
3578
|
+
function Kn(e, t) {
|
|
3607
3579
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3608
|
-
return r[n] =
|
|
3609
|
-
},
|
|
3580
|
+
return r[n] = Yn(e[n], t[n]), r;
|
|
3581
|
+
}, I({}, e)) : e;
|
|
3610
3582
|
}
|
|
3611
|
-
function
|
|
3583
|
+
function Ve(e) {
|
|
3612
3584
|
return {
|
|
3613
3585
|
create: function() {
|
|
3614
3586
|
return {
|
|
@@ -3622,35 +3594,35 @@ function je(e) {
|
|
|
3622
3594
|
}
|
|
3623
3595
|
};
|
|
3624
3596
|
}
|
|
3625
|
-
function
|
|
3597
|
+
function ei(e) {
|
|
3626
3598
|
return e === void 0 && (e = {
|
|
3627
3599
|
number: {},
|
|
3628
3600
|
dateTime: {},
|
|
3629
3601
|
pluralRules: {}
|
|
3630
3602
|
}), {
|
|
3631
|
-
getNumberFormat:
|
|
3603
|
+
getNumberFormat: Fe(function() {
|
|
3632
3604
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3633
3605
|
r[n] = arguments[n];
|
|
3634
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3606
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ge([void 0], r, !1)))();
|
|
3635
3607
|
}, {
|
|
3636
|
-
cache:
|
|
3637
|
-
strategy:
|
|
3608
|
+
cache: Ve(e.number),
|
|
3609
|
+
strategy: je.variadic
|
|
3638
3610
|
}),
|
|
3639
|
-
getDateTimeFormat:
|
|
3611
|
+
getDateTimeFormat: Fe(function() {
|
|
3640
3612
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3641
3613
|
r[n] = arguments[n];
|
|
3642
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3614
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ge([void 0], r, !1)))();
|
|
3643
3615
|
}, {
|
|
3644
|
-
cache:
|
|
3645
|
-
strategy:
|
|
3616
|
+
cache: Ve(e.dateTime),
|
|
3617
|
+
strategy: je.variadic
|
|
3646
3618
|
}),
|
|
3647
|
-
getPluralRules:
|
|
3619
|
+
getPluralRules: Fe(function() {
|
|
3648
3620
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3649
3621
|
r[n] = arguments[n];
|
|
3650
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3622
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ge([void 0], r, !1)))();
|
|
3651
3623
|
}, {
|
|
3652
|
-
cache:
|
|
3653
|
-
strategy:
|
|
3624
|
+
cache: Ve(e.pluralRules),
|
|
3625
|
+
strategy: je.variadic
|
|
3654
3626
|
})
|
|
3655
3627
|
};
|
|
3656
3628
|
}
|
|
@@ -3673,7 +3645,7 @@ var mr = (
|
|
|
3673
3645
|
}, []);
|
|
3674
3646
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3675
3647
|
}, this.formatToParts = function(h) {
|
|
3676
|
-
return
|
|
3648
|
+
return He(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3677
3649
|
}, this.resolvedOptions = function() {
|
|
3678
3650
|
var h;
|
|
3679
3651
|
return {
|
|
@@ -3684,15 +3656,15 @@ var mr = (
|
|
|
3684
3656
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3685
3657
|
if (this.message = t, !e.__parse)
|
|
3686
3658
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3687
|
-
var
|
|
3688
|
-
|
|
3689
|
-
var
|
|
3690
|
-
this.ast = e.__parse(t,
|
|
3659
|
+
var o = i || {};
|
|
3660
|
+
o.formatters;
|
|
3661
|
+
var a = hn(o, ["formatters"]);
|
|
3662
|
+
this.ast = e.__parse(t, I(I({}, a), { locale: this.resolvedLocale }));
|
|
3691
3663
|
} else
|
|
3692
3664
|
this.ast = t;
|
|
3693
3665
|
if (!Array.isArray(this.ast))
|
|
3694
3666
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3695
|
-
this.formats =
|
|
3667
|
+
this.formats = Kn(e.formats, n), this.formatters = i && i.formatters || ei(this.formatterCache);
|
|
3696
3668
|
}
|
|
3697
3669
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3698
3670
|
get: function() {
|
|
@@ -3705,7 +3677,7 @@ var mr = (
|
|
|
3705
3677
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3706
3678
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3707
3679
|
}
|
|
3708
|
-
}, e.__parse =
|
|
3680
|
+
}, e.__parse = Wn, e.formats = {
|
|
3709
3681
|
number: {
|
|
3710
3682
|
integer: {
|
|
3711
3683
|
maximumFractionDigits: 0
|
|
@@ -3766,7 +3738,7 @@ var mr = (
|
|
|
3766
3738
|
}, e;
|
|
3767
3739
|
}()
|
|
3768
3740
|
);
|
|
3769
|
-
function
|
|
3741
|
+
function ti(e, t) {
|
|
3770
3742
|
if (t == null)
|
|
3771
3743
|
return;
|
|
3772
3744
|
if (t in e)
|
|
@@ -3787,36 +3759,36 @@ function ei(e, t) {
|
|
|
3787
3759
|
n = void 0;
|
|
3788
3760
|
return n;
|
|
3789
3761
|
}
|
|
3790
|
-
const
|
|
3762
|
+
const D = {}, ri = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), dr = (e, t) => {
|
|
3791
3763
|
if (t == null)
|
|
3792
3764
|
return;
|
|
3793
|
-
if (t in
|
|
3794
|
-
return
|
|
3795
|
-
const r =
|
|
3765
|
+
if (t in D && e in D[t])
|
|
3766
|
+
return D[t][e];
|
|
3767
|
+
const r = fe(t);
|
|
3796
3768
|
for (let n = 0; n < r.length; n++) {
|
|
3797
|
-
const i = r[n], s =
|
|
3769
|
+
const i = r[n], s = ii(i, e);
|
|
3798
3770
|
if (s)
|
|
3799
|
-
return
|
|
3771
|
+
return ri(e, t, s);
|
|
3800
3772
|
}
|
|
3801
3773
|
};
|
|
3802
3774
|
let ut;
|
|
3803
|
-
const
|
|
3804
|
-
function
|
|
3775
|
+
const ce = Le({});
|
|
3776
|
+
function ni(e) {
|
|
3805
3777
|
return ut[e] || null;
|
|
3806
3778
|
}
|
|
3807
3779
|
function pr(e) {
|
|
3808
3780
|
return e in ut;
|
|
3809
3781
|
}
|
|
3810
|
-
function
|
|
3782
|
+
function ii(e, t) {
|
|
3811
3783
|
if (!pr(e))
|
|
3812
3784
|
return null;
|
|
3813
|
-
const r =
|
|
3814
|
-
return
|
|
3785
|
+
const r = ni(e);
|
|
3786
|
+
return ti(r, t);
|
|
3815
3787
|
}
|
|
3816
|
-
function
|
|
3788
|
+
function si(e) {
|
|
3817
3789
|
if (e == null)
|
|
3818
3790
|
return;
|
|
3819
|
-
const t =
|
|
3791
|
+
const t = fe(e);
|
|
3820
3792
|
for (let r = 0; r < t.length; r++) {
|
|
3821
3793
|
const n = t[r];
|
|
3822
3794
|
if (pr(n))
|
|
@@ -3824,64 +3796,64 @@ function ii(e) {
|
|
|
3824
3796
|
}
|
|
3825
3797
|
}
|
|
3826
3798
|
function gr(e, ...t) {
|
|
3827
|
-
delete
|
|
3799
|
+
delete D[e], ce.update((r) => (r[e] = ln.all([r[e] || {}, ...t]), r));
|
|
3828
3800
|
}
|
|
3829
|
-
|
|
3830
|
-
[
|
|
3801
|
+
ee(
|
|
3802
|
+
[ce],
|
|
3831
3803
|
([e]) => Object.keys(e)
|
|
3832
3804
|
);
|
|
3833
|
-
|
|
3834
|
-
const
|
|
3835
|
-
function
|
|
3836
|
-
|
|
3805
|
+
ce.subscribe((e) => ut = e);
|
|
3806
|
+
const Se = {};
|
|
3807
|
+
function oi(e, t) {
|
|
3808
|
+
Se[e].delete(t), Se[e].size === 0 && delete Se[e];
|
|
3837
3809
|
}
|
|
3838
3810
|
function br(e) {
|
|
3839
|
-
return
|
|
3811
|
+
return Se[e];
|
|
3840
3812
|
}
|
|
3841
3813
|
function ai(e) {
|
|
3842
|
-
return
|
|
3814
|
+
return fe(e).map((t) => {
|
|
3843
3815
|
const r = br(t);
|
|
3844
3816
|
return [t, r ? [...r] : []];
|
|
3845
3817
|
}).filter(([, t]) => t.length > 0);
|
|
3846
3818
|
}
|
|
3847
|
-
function
|
|
3848
|
-
return e == null ? !1 :
|
|
3819
|
+
function Ie(e) {
|
|
3820
|
+
return e == null ? !1 : fe(e).some(
|
|
3849
3821
|
(t) => {
|
|
3850
3822
|
var r;
|
|
3851
3823
|
return (r = br(t)) == null ? void 0 : r.size;
|
|
3852
3824
|
}
|
|
3853
3825
|
);
|
|
3854
3826
|
}
|
|
3855
|
-
function
|
|
3827
|
+
function ui(e, t) {
|
|
3856
3828
|
return Promise.all(
|
|
3857
|
-
t.map((n) => (
|
|
3829
|
+
t.map((n) => (oi(e, n), n().then((i) => i.default || i)))
|
|
3858
3830
|
).then((n) => gr(e, ...n));
|
|
3859
3831
|
}
|
|
3860
|
-
const
|
|
3832
|
+
const ne = {};
|
|
3861
3833
|
function yr(e) {
|
|
3862
|
-
if (!
|
|
3863
|
-
return e in
|
|
3834
|
+
if (!Ie(e))
|
|
3835
|
+
return e in ne ? ne[e] : Promise.resolve();
|
|
3864
3836
|
const t = ai(e);
|
|
3865
|
-
return
|
|
3837
|
+
return ne[e] = Promise.all(
|
|
3866
3838
|
t.map(
|
|
3867
|
-
([r, n]) =>
|
|
3839
|
+
([r, n]) => ui(r, n)
|
|
3868
3840
|
)
|
|
3869
3841
|
).then(() => {
|
|
3870
|
-
if (
|
|
3842
|
+
if (Ie(e))
|
|
3871
3843
|
return yr(e);
|
|
3872
|
-
delete
|
|
3873
|
-
}),
|
|
3844
|
+
delete ne[e];
|
|
3845
|
+
}), ne[e];
|
|
3874
3846
|
}
|
|
3875
|
-
var xt = Object.getOwnPropertySymbols,
|
|
3847
|
+
var xt = Object.getOwnPropertySymbols, li = Object.prototype.hasOwnProperty, hi = Object.prototype.propertyIsEnumerable, ci = (e, t) => {
|
|
3876
3848
|
var r = {};
|
|
3877
3849
|
for (var n in e)
|
|
3878
|
-
|
|
3850
|
+
li.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3879
3851
|
if (e != null && xt)
|
|
3880
3852
|
for (var n of xt(e))
|
|
3881
|
-
t.indexOf(n) < 0 &&
|
|
3853
|
+
t.indexOf(n) < 0 && hi.call(e, n) && (r[n] = e[n]);
|
|
3882
3854
|
return r;
|
|
3883
3855
|
};
|
|
3884
|
-
const
|
|
3856
|
+
const fi = {
|
|
3885
3857
|
number: {
|
|
3886
3858
|
scientific: { notation: "scientific" },
|
|
3887
3859
|
engineering: { notation: "engineering" },
|
|
@@ -3911,28 +3883,28 @@ const ci = {
|
|
|
3911
3883
|
}
|
|
3912
3884
|
}
|
|
3913
3885
|
};
|
|
3914
|
-
function
|
|
3886
|
+
function mi({ locale: e, id: t }) {
|
|
3915
3887
|
console.warn(
|
|
3916
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3888
|
+
`[svelte-i18n] The message "${t}" was not found in "${fe(
|
|
3917
3889
|
e
|
|
3918
|
-
).join('", "')}".${
|
|
3890
|
+
).join('", "')}".${Ie(U()) ? `
|
|
3919
3891
|
|
|
3920
3892
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3921
3893
|
);
|
|
3922
3894
|
}
|
|
3923
|
-
const
|
|
3895
|
+
const di = {
|
|
3924
3896
|
fallbackLocale: null,
|
|
3925
3897
|
loadingDelay: 200,
|
|
3926
|
-
formats:
|
|
3898
|
+
formats: fi,
|
|
3927
3899
|
warnOnMissingMessages: !0,
|
|
3928
3900
|
handleMissingMessage: void 0,
|
|
3929
3901
|
ignoreTag: !0
|
|
3930
|
-
},
|
|
3931
|
-
function
|
|
3932
|
-
return
|
|
3902
|
+
}, ie = di;
|
|
3903
|
+
function Y() {
|
|
3904
|
+
return ie;
|
|
3933
3905
|
}
|
|
3934
|
-
function
|
|
3935
|
-
const t = e, { formats: r } = t, n =
|
|
3906
|
+
function pi(e) {
|
|
3907
|
+
const t = e, { formats: r } = t, n = ci(t, ["formats"]);
|
|
3936
3908
|
let i = e.fallbackLocale;
|
|
3937
3909
|
if (e.initialLocale)
|
|
3938
3910
|
try {
|
|
@@ -3942,152 +3914,152 @@ function di(e) {
|
|
|
3942
3914
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3943
3915
|
);
|
|
3944
3916
|
}
|
|
3945
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3917
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = mi : console.warn(
|
|
3946
3918
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3947
|
-
)), Object.assign(
|
|
3919
|
+
)), Object.assign(ie, n, { initialLocale: i }), r && ("number" in r && Object.assign(ie.formats.number, r.number), "date" in r && Object.assign(ie.formats.date, r.date), "time" in r && Object.assign(ie.formats.time, r.time)), G.set(i);
|
|
3948
3920
|
}
|
|
3949
|
-
const
|
|
3950
|
-
var
|
|
3921
|
+
const Xe = Le(!1);
|
|
3922
|
+
var gi = Object.defineProperty, bi = Object.defineProperties, yi = Object.getOwnPropertyDescriptors, wt = Object.getOwnPropertySymbols, _i = Object.prototype.hasOwnProperty, vi = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ei = (e, t) => {
|
|
3951
3923
|
for (var r in t || (t = {}))
|
|
3952
|
-
|
|
3924
|
+
_i.call(t, r) && Tt(e, r, t[r]);
|
|
3953
3925
|
if (wt)
|
|
3954
3926
|
for (var r of wt(t))
|
|
3955
|
-
|
|
3927
|
+
vi.call(t, r) && Tt(e, r, t[r]);
|
|
3956
3928
|
return e;
|
|
3957
|
-
},
|
|
3958
|
-
let
|
|
3959
|
-
const
|
|
3929
|
+
}, xi = (e, t) => bi(e, yi(t));
|
|
3930
|
+
let it;
|
|
3931
|
+
const Ce = Le(null);
|
|
3960
3932
|
function Ht(e) {
|
|
3961
3933
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3962
3934
|
}
|
|
3963
|
-
function
|
|
3935
|
+
function fe(e, t = Y().fallbackLocale) {
|
|
3964
3936
|
const r = Ht(e);
|
|
3965
3937
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Ht(t)])] : r;
|
|
3966
3938
|
}
|
|
3967
|
-
function
|
|
3968
|
-
return
|
|
3939
|
+
function U() {
|
|
3940
|
+
return it ?? void 0;
|
|
3969
3941
|
}
|
|
3970
|
-
|
|
3971
|
-
|
|
3942
|
+
Ce.subscribe((e) => {
|
|
3943
|
+
it = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3972
3944
|
});
|
|
3973
|
-
const
|
|
3974
|
-
if (e &&
|
|
3975
|
-
const { loadingDelay: t } =
|
|
3945
|
+
const wi = (e) => {
|
|
3946
|
+
if (e && si(e) && Ie(e)) {
|
|
3947
|
+
const { loadingDelay: t } = Y();
|
|
3976
3948
|
let r;
|
|
3977
|
-
return typeof window < "u" &&
|
|
3978
|
-
() =>
|
|
3949
|
+
return typeof window < "u" && U() != null && t ? r = window.setTimeout(
|
|
3950
|
+
() => Xe.set(!0),
|
|
3979
3951
|
t
|
|
3980
|
-
) :
|
|
3981
|
-
|
|
3952
|
+
) : Xe.set(!0), yr(e).then(() => {
|
|
3953
|
+
Ce.set(e);
|
|
3982
3954
|
}).finally(() => {
|
|
3983
|
-
clearTimeout(r),
|
|
3955
|
+
clearTimeout(r), Xe.set(!1);
|
|
3984
3956
|
});
|
|
3985
3957
|
}
|
|
3986
|
-
return
|
|
3987
|
-
},
|
|
3988
|
-
set:
|
|
3989
|
-
}),
|
|
3958
|
+
return Ce.set(e);
|
|
3959
|
+
}, G = xi(Ei({}, Ce), {
|
|
3960
|
+
set: wi
|
|
3961
|
+
}), De = (e) => {
|
|
3990
3962
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3991
3963
|
return (n) => {
|
|
3992
3964
|
const i = JSON.stringify(n);
|
|
3993
3965
|
return i in t ? t[i] : t[i] = e(n);
|
|
3994
3966
|
};
|
|
3995
3967
|
};
|
|
3996
|
-
var
|
|
3968
|
+
var Ti = Object.defineProperty, Me = Object.getOwnPropertySymbols, _r = Object.prototype.hasOwnProperty, vr = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
|
|
3997
3969
|
for (var r in t || (t = {}))
|
|
3998
3970
|
_r.call(t, r) && St(e, r, t[r]);
|
|
3999
|
-
if (
|
|
4000
|
-
for (var r of
|
|
3971
|
+
if (Me)
|
|
3972
|
+
for (var r of Me(t))
|
|
4001
3973
|
vr.call(t, r) && St(e, r, t[r]);
|
|
4002
3974
|
return e;
|
|
4003
|
-
},
|
|
3975
|
+
}, te = (e, t) => {
|
|
4004
3976
|
var r = {};
|
|
4005
3977
|
for (var n in e)
|
|
4006
3978
|
_r.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4007
|
-
if (e != null &&
|
|
4008
|
-
for (var n of
|
|
3979
|
+
if (e != null && Me)
|
|
3980
|
+
for (var n of Me(e))
|
|
4009
3981
|
t.indexOf(n) < 0 && vr.call(e, n) && (r[n] = e[n]);
|
|
4010
3982
|
return r;
|
|
4011
3983
|
};
|
|
4012
|
-
const
|
|
4013
|
-
const { formats: r } =
|
|
3984
|
+
const le = (e, t) => {
|
|
3985
|
+
const { formats: r } = Y();
|
|
4014
3986
|
if (e in r && t in r[e])
|
|
4015
3987
|
return r[e][t];
|
|
4016
3988
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4017
|
-
},
|
|
3989
|
+
}, Hi = De(
|
|
4018
3990
|
(e) => {
|
|
4019
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3991
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
4020
3992
|
if (r == null)
|
|
4021
3993
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4022
|
-
return n && (i =
|
|
3994
|
+
return n && (i = le("number", n)), new Intl.NumberFormat(r, i);
|
|
4023
3995
|
}
|
|
4024
|
-
),
|
|
3996
|
+
), Si = De(
|
|
4025
3997
|
(e) => {
|
|
4026
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3998
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
4027
3999
|
if (r == null)
|
|
4028
4000
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4029
|
-
return n ? i =
|
|
4001
|
+
return n ? i = le("date", n) : Object.keys(i).length === 0 && (i = le("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4030
4002
|
}
|
|
4031
|
-
),
|
|
4003
|
+
), Bi = De(
|
|
4032
4004
|
(e) => {
|
|
4033
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4005
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
4034
4006
|
if (r == null)
|
|
4035
4007
|
throw new Error(
|
|
4036
4008
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4037
4009
|
);
|
|
4038
|
-
return n ? i =
|
|
4010
|
+
return n ? i = le("time", n) : Object.keys(i).length === 0 && (i = le("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4039
4011
|
}
|
|
4040
|
-
),
|
|
4012
|
+
), Ai = (e = {}) => {
|
|
4041
4013
|
var t = e, {
|
|
4042
|
-
locale: r =
|
|
4043
|
-
} = t, n =
|
|
4044
|
-
"locale"
|
|
4045
|
-
]);
|
|
4046
|
-
return Ti(lt({ locale: r }, n));
|
|
4047
|
-
}, Ai = (e = {}) => {
|
|
4048
|
-
var t = e, {
|
|
4049
|
-
locale: r = k()
|
|
4050
|
-
} = t, n = ee(t, [
|
|
4014
|
+
locale: r = U()
|
|
4015
|
+
} = t, n = te(t, [
|
|
4051
4016
|
"locale"
|
|
4052
4017
|
]);
|
|
4053
4018
|
return Hi(lt({ locale: r }, n));
|
|
4054
4019
|
}, Pi = (e = {}) => {
|
|
4055
4020
|
var t = e, {
|
|
4056
|
-
locale: r =
|
|
4057
|
-
} = t, n =
|
|
4021
|
+
locale: r = U()
|
|
4022
|
+
} = t, n = te(t, [
|
|
4058
4023
|
"locale"
|
|
4059
4024
|
]);
|
|
4060
4025
|
return Si(lt({ locale: r }, n));
|
|
4061
|
-
}, Oi =
|
|
4026
|
+
}, Oi = (e = {}) => {
|
|
4027
|
+
var t = e, {
|
|
4028
|
+
locale: r = U()
|
|
4029
|
+
} = t, n = te(t, [
|
|
4030
|
+
"locale"
|
|
4031
|
+
]);
|
|
4032
|
+
return Bi(lt({ locale: r }, n));
|
|
4033
|
+
}, Ii = De(
|
|
4062
4034
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4063
|
-
(e, t =
|
|
4064
|
-
ignoreTag:
|
|
4035
|
+
(e, t = U()) => new mr(e, t, Y().formats, {
|
|
4036
|
+
ignoreTag: Y().ignoreTag
|
|
4065
4037
|
})
|
|
4066
|
-
),
|
|
4038
|
+
), Ci = (e, t = {}) => {
|
|
4067
4039
|
var r, n, i, s;
|
|
4068
|
-
let
|
|
4069
|
-
typeof e == "object" && (
|
|
4040
|
+
let o = t;
|
|
4041
|
+
typeof e == "object" && (o = e, e = o.id);
|
|
4070
4042
|
const {
|
|
4071
|
-
values:
|
|
4072
|
-
locale: h =
|
|
4043
|
+
values: a,
|
|
4044
|
+
locale: h = U(),
|
|
4073
4045
|
default: u
|
|
4074
|
-
} =
|
|
4046
|
+
} = o;
|
|
4075
4047
|
if (h == null)
|
|
4076
4048
|
throw new Error(
|
|
4077
4049
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4078
4050
|
);
|
|
4079
4051
|
let l = dr(e, h);
|
|
4080
4052
|
if (!l)
|
|
4081
|
-
l = (s = (i = (n = (r =
|
|
4053
|
+
l = (s = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
4082
4054
|
else if (typeof l != "string")
|
|
4083
4055
|
return console.warn(
|
|
4084
4056
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4085
4057
|
), l;
|
|
4086
|
-
if (!
|
|
4058
|
+
if (!a)
|
|
4087
4059
|
return l;
|
|
4088
4060
|
let c = l;
|
|
4089
4061
|
try {
|
|
4090
|
-
c =
|
|
4062
|
+
c = Ii(l, h).format(a);
|
|
4091
4063
|
} catch (m) {
|
|
4092
4064
|
m instanceof Error && console.warn(
|
|
4093
4065
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4095,18 +4067,18 @@ const ue = (e, t) => {
|
|
|
4095
4067
|
);
|
|
4096
4068
|
}
|
|
4097
4069
|
return c;
|
|
4098
|
-
},
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
function
|
|
4070
|
+
}, Mi = (e, t) => Oi(t).format(e), Ni = (e, t) => Pi(t).format(e), Li = (e, t) => Ai(t).format(e), $i = (e, t = U()) => dr(e, t), Ri = ee([G, ce], () => Ci);
|
|
4071
|
+
ee([G], () => Mi);
|
|
4072
|
+
ee([G], () => Ni);
|
|
4073
|
+
ee([G], () => Li);
|
|
4074
|
+
ee([G, ce], () => $i);
|
|
4075
|
+
function Di(e, t) {
|
|
4104
4076
|
if (e) {
|
|
4105
4077
|
const r = document.createElement("style");
|
|
4106
4078
|
r.innerHTML = t, e.appendChild(r);
|
|
4107
4079
|
}
|
|
4108
4080
|
}
|
|
4109
|
-
function
|
|
4081
|
+
function ki(e, t) {
|
|
4110
4082
|
if (!e || !t)
|
|
4111
4083
|
return;
|
|
4112
4084
|
const r = new URL(t);
|
|
@@ -4117,7 +4089,7 @@ function Di(e, t) {
|
|
|
4117
4089
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4118
4090
|
});
|
|
4119
4091
|
}
|
|
4120
|
-
function
|
|
4092
|
+
function Ui(e, t, r) {
|
|
4121
4093
|
if (window.emMessageBus) {
|
|
4122
4094
|
const n = document.createElement("style");
|
|
4123
4095
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4128,10 +4100,10 @@ function ki(e, t, r) {
|
|
|
4128
4100
|
function Bt(e, t) {
|
|
4129
4101
|
gr(e, t);
|
|
4130
4102
|
}
|
|
4131
|
-
function
|
|
4132
|
-
|
|
4103
|
+
function Gi(e) {
|
|
4104
|
+
pi({
|
|
4133
4105
|
fallbackLocale: "en"
|
|
4134
|
-
}),
|
|
4106
|
+
}), G.set(e);
|
|
4135
4107
|
}
|
|
4136
4108
|
const At = {
|
|
4137
4109
|
en: {
|
|
@@ -4187,31 +4159,31 @@ const At = {
|
|
|
4187
4159
|
DeclinedByMerchant: "Özür dileriz, ancak işlem satıcı tarafından kapatıldı. Daha fazla yardım için lütfen Müşteri Desteği ile iletişime geçin."
|
|
4188
4160
|
}
|
|
4189
4161
|
};
|
|
4190
|
-
function
|
|
4162
|
+
function Fi(e) {
|
|
4191
4163
|
Hr(e, "svelte-m958fw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;background-color:transparent;padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #F9C405)}.CashierErrorButton:hover{background:var(--emw--color-hover, #dbac03)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorContent ui-image img{width:300px}");
|
|
4192
4164
|
}
|
|
4193
|
-
const
|
|
4165
|
+
const ji = (e) => ({}), Pt = (e) => ({}), zi = (e) => ({}), Ot = (e) => ({}), Vi = (e) => ({}), It = (e) => ({}), Xi = (e) => ({}), Ct = (e) => ({ class: "CashierErrorIcon" });
|
|
4194
4166
|
function Mt(e) {
|
|
4195
4167
|
let t, r;
|
|
4196
4168
|
return {
|
|
4197
4169
|
c() {
|
|
4198
|
-
t =
|
|
4199
|
-
e[0]}/error-general-icon.png`) ||
|
|
4170
|
+
t = C("ui-image"), ct(t.src, r = `${/*assetsurl*/
|
|
4171
|
+
e[0]}/error-general-icon.png`) || _e(t, "src", r), _e(t, "width", "300px"), _e(t, "alt", "error");
|
|
4200
4172
|
},
|
|
4201
4173
|
m(n, i) {
|
|
4202
|
-
|
|
4174
|
+
K(n, t, i);
|
|
4203
4175
|
},
|
|
4204
4176
|
p(n, i) {
|
|
4205
4177
|
i & /*assetsurl*/
|
|
4206
4178
|
1 && !ct(t.src, r = `${/*assetsurl*/
|
|
4207
|
-
n[0]}/error-general-icon.png`) &&
|
|
4179
|
+
n[0]}/error-general-icon.png`) && _e(t, "src", r);
|
|
4208
4180
|
},
|
|
4209
4181
|
d(n) {
|
|
4210
|
-
n &&
|
|
4182
|
+
n && L(t);
|
|
4211
4183
|
}
|
|
4212
4184
|
};
|
|
4213
4185
|
}
|
|
4214
|
-
function
|
|
4186
|
+
function Wi(e) {
|
|
4215
4187
|
let t, r = (
|
|
4216
4188
|
/*assetsurl*/
|
|
4217
4189
|
e[0] && Mt(e)
|
|
@@ -4221,18 +4193,18 @@ function Xi(e) {
|
|
|
4221
4193
|
r && r.c(), t = Br();
|
|
4222
4194
|
},
|
|
4223
4195
|
m(n, i) {
|
|
4224
|
-
r && r.m(n, i),
|
|
4196
|
+
r && r.m(n, i), K(n, t, i);
|
|
4225
4197
|
},
|
|
4226
4198
|
p(n, i) {
|
|
4227
4199
|
/*assetsurl*/
|
|
4228
4200
|
n[0] ? r ? r.p(n, i) : (r = Mt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4229
4201
|
},
|
|
4230
4202
|
d(n) {
|
|
4231
|
-
n &&
|
|
4203
|
+
n && L(t), r && r.d(n);
|
|
4232
4204
|
}
|
|
4233
4205
|
};
|
|
4234
4206
|
}
|
|
4235
|
-
function
|
|
4207
|
+
function Zi(e) {
|
|
4236
4208
|
let t, r = (
|
|
4237
4209
|
/*$_*/
|
|
4238
4210
|
e[3](`${/*errorcode*/
|
|
@@ -4240,10 +4212,10 @@ function Wi(e) {
|
|
|
4240
4212
|
), n;
|
|
4241
4213
|
return {
|
|
4242
4214
|
c() {
|
|
4243
|
-
t =
|
|
4215
|
+
t = C("span"), n = Ne(r), Z(t, "class", "CashierErrorText");
|
|
4244
4216
|
},
|
|
4245
4217
|
m(i, s) {
|
|
4246
|
-
|
|
4218
|
+
K(i, t, s), N(t, n);
|
|
4247
4219
|
},
|
|
4248
4220
|
p(i, s) {
|
|
4249
4221
|
s & /*$_, errorcode*/
|
|
@@ -4252,52 +4224,52 @@ function Wi(e) {
|
|
|
4252
4224
|
i[1] || "errorGeneralText"}`) + "") && jt(n, r);
|
|
4253
4225
|
},
|
|
4254
4226
|
d(i) {
|
|
4255
|
-
i &&
|
|
4227
|
+
i && L(t);
|
|
4256
4228
|
}
|
|
4257
4229
|
};
|
|
4258
4230
|
}
|
|
4259
|
-
function
|
|
4231
|
+
function Ji(e) {
|
|
4260
4232
|
let t, r, n = (
|
|
4261
4233
|
/*$_*/
|
|
4262
4234
|
e[3]("errorGeneralButton") + ""
|
|
4263
|
-
), i, s,
|
|
4235
|
+
), i, s, o;
|
|
4264
4236
|
return {
|
|
4265
4237
|
c() {
|
|
4266
|
-
t =
|
|
4238
|
+
t = C("button"), r = C("span"), i = Ne(n), Z(t, "class", "CashierErrorButton");
|
|
4267
4239
|
},
|
|
4268
|
-
m(
|
|
4269
|
-
|
|
4240
|
+
m(a, h) {
|
|
4241
|
+
K(a, t, h), N(t, r), N(r, i), s || (o = We(
|
|
4270
4242
|
t,
|
|
4271
4243
|
"click",
|
|
4272
4244
|
/*close*/
|
|
4273
4245
|
e[4]
|
|
4274
4246
|
), s = !0);
|
|
4275
4247
|
},
|
|
4276
|
-
p(
|
|
4248
|
+
p(a, h) {
|
|
4277
4249
|
h & /*$_*/
|
|
4278
4250
|
8 && n !== (n = /*$_*/
|
|
4279
|
-
|
|
4251
|
+
a[3]("errorGeneralButton") + "") && jt(i, n);
|
|
4280
4252
|
},
|
|
4281
|
-
d(
|
|
4282
|
-
|
|
4253
|
+
d(a) {
|
|
4254
|
+
a && L(t), s = !1, o();
|
|
4283
4255
|
}
|
|
4284
4256
|
};
|
|
4285
4257
|
}
|
|
4286
|
-
function
|
|
4287
|
-
let t, r, n, i, s,
|
|
4288
|
-
const
|
|
4258
|
+
function qi(e) {
|
|
4259
|
+
let t, r, n, i, s, o;
|
|
4260
|
+
const a = (
|
|
4289
4261
|
/*#slots*/
|
|
4290
4262
|
e[11].icon
|
|
4291
|
-
), h =
|
|
4292
|
-
|
|
4263
|
+
), h = pe(
|
|
4264
|
+
a,
|
|
4293
4265
|
e,
|
|
4294
4266
|
/*$$scope*/
|
|
4295
4267
|
e[10],
|
|
4296
4268
|
Ct
|
|
4297
|
-
), u = h ||
|
|
4269
|
+
), u = h || Wi(e), l = (
|
|
4298
4270
|
/*#slots*/
|
|
4299
4271
|
e[11].title
|
|
4300
|
-
), c =
|
|
4272
|
+
), c = pe(
|
|
4301
4273
|
l,
|
|
4302
4274
|
e,
|
|
4303
4275
|
/*$$scope*/
|
|
@@ -4306,124 +4278,124 @@ function Ji(e) {
|
|
|
4306
4278
|
), m = (
|
|
4307
4279
|
/*#slots*/
|
|
4308
4280
|
e[11].text
|
|
4309
|
-
), d =
|
|
4281
|
+
), d = pe(
|
|
4310
4282
|
m,
|
|
4311
4283
|
e,
|
|
4312
4284
|
/*$$scope*/
|
|
4313
4285
|
e[10],
|
|
4314
4286
|
Ot
|
|
4315
|
-
), p = d ||
|
|
4287
|
+
), p = d || Zi(e), b = (
|
|
4316
4288
|
/*#slots*/
|
|
4317
4289
|
e[11].button
|
|
4318
|
-
),
|
|
4290
|
+
), E = pe(
|
|
4319
4291
|
b,
|
|
4320
4292
|
e,
|
|
4321
4293
|
/*$$scope*/
|
|
4322
4294
|
e[10],
|
|
4323
4295
|
Pt
|
|
4324
|
-
), _ =
|
|
4296
|
+
), _ = E || Ji(e);
|
|
4325
4297
|
return {
|
|
4326
4298
|
c() {
|
|
4327
|
-
t =
|
|
4299
|
+
t = C("div"), r = C("div"), u && u.c(), n = ke(), c && c.c(), i = ke(), p && p.c(), s = ke(), _ && _.c(), Z(r, "class", "CashierErrorContent"), Z(t, "class", "CashierError");
|
|
4328
4300
|
},
|
|
4329
4301
|
m(f, g) {
|
|
4330
|
-
|
|
4302
|
+
K(f, t, g), N(t, r), u && u.m(r, null), N(r, n), c && c.m(r, null), N(r, i), p && p.m(r, null), N(r, s), _ && _.m(r, null), e[12](t), o = !0;
|
|
4331
4303
|
},
|
|
4332
4304
|
p(f, [g]) {
|
|
4333
|
-
h ? h.p && (!
|
|
4334
|
-
1024) &&
|
|
4305
|
+
h ? h.p && (!o || g & /*$$scope*/
|
|
4306
|
+
1024) && be(
|
|
4335
4307
|
h,
|
|
4336
|
-
|
|
4308
|
+
a,
|
|
4337
4309
|
f,
|
|
4338
4310
|
/*$$scope*/
|
|
4339
4311
|
f[10],
|
|
4340
|
-
|
|
4341
|
-
|
|
4312
|
+
o ? ge(
|
|
4313
|
+
a,
|
|
4342
4314
|
/*$$scope*/
|
|
4343
4315
|
f[10],
|
|
4344
4316
|
g,
|
|
4345
|
-
|
|
4346
|
-
) :
|
|
4317
|
+
Xi
|
|
4318
|
+
) : ye(
|
|
4347
4319
|
/*$$scope*/
|
|
4348
4320
|
f[10]
|
|
4349
4321
|
),
|
|
4350
4322
|
Ct
|
|
4351
|
-
) : u && u.p && (!
|
|
4352
|
-
1) && u.p(f,
|
|
4353
|
-
1024) &&
|
|
4323
|
+
) : u && u.p && (!o || g & /*assetsurl*/
|
|
4324
|
+
1) && u.p(f, o ? g : -1), c && c.p && (!o || g & /*$$scope*/
|
|
4325
|
+
1024) && be(
|
|
4354
4326
|
c,
|
|
4355
4327
|
l,
|
|
4356
4328
|
f,
|
|
4357
4329
|
/*$$scope*/
|
|
4358
4330
|
f[10],
|
|
4359
|
-
|
|
4331
|
+
o ? ge(
|
|
4360
4332
|
l,
|
|
4361
4333
|
/*$$scope*/
|
|
4362
4334
|
f[10],
|
|
4363
4335
|
g,
|
|
4364
|
-
|
|
4365
|
-
) :
|
|
4336
|
+
Vi
|
|
4337
|
+
) : ye(
|
|
4366
4338
|
/*$$scope*/
|
|
4367
4339
|
f[10]
|
|
4368
4340
|
),
|
|
4369
4341
|
It
|
|
4370
|
-
), d ? d.p && (!
|
|
4371
|
-
1024) &&
|
|
4342
|
+
), d ? d.p && (!o || g & /*$$scope*/
|
|
4343
|
+
1024) && be(
|
|
4372
4344
|
d,
|
|
4373
4345
|
m,
|
|
4374
4346
|
f,
|
|
4375
4347
|
/*$$scope*/
|
|
4376
4348
|
f[10],
|
|
4377
|
-
|
|
4349
|
+
o ? ge(
|
|
4378
4350
|
m,
|
|
4379
4351
|
/*$$scope*/
|
|
4380
4352
|
f[10],
|
|
4381
4353
|
g,
|
|
4382
|
-
|
|
4383
|
-
) :
|
|
4354
|
+
zi
|
|
4355
|
+
) : ye(
|
|
4384
4356
|
/*$$scope*/
|
|
4385
4357
|
f[10]
|
|
4386
4358
|
),
|
|
4387
4359
|
Ot
|
|
4388
|
-
) : p && p.p && (!
|
|
4389
|
-
10) && p.p(f,
|
|
4390
|
-
1024) &&
|
|
4391
|
-
|
|
4360
|
+
) : p && p.p && (!o || g & /*$_, errorcode*/
|
|
4361
|
+
10) && p.p(f, o ? g : -1), E ? E.p && (!o || g & /*$$scope*/
|
|
4362
|
+
1024) && be(
|
|
4363
|
+
E,
|
|
4392
4364
|
b,
|
|
4393
4365
|
f,
|
|
4394
4366
|
/*$$scope*/
|
|
4395
4367
|
f[10],
|
|
4396
|
-
|
|
4368
|
+
o ? ge(
|
|
4397
4369
|
b,
|
|
4398
4370
|
/*$$scope*/
|
|
4399
4371
|
f[10],
|
|
4400
4372
|
g,
|
|
4401
|
-
|
|
4402
|
-
) :
|
|
4373
|
+
ji
|
|
4374
|
+
) : ye(
|
|
4403
4375
|
/*$$scope*/
|
|
4404
4376
|
f[10]
|
|
4405
4377
|
),
|
|
4406
4378
|
Pt
|
|
4407
|
-
) : _ && _.p && (!
|
|
4408
|
-
8) && _.p(f,
|
|
4379
|
+
) : _ && _.p && (!o || g & /*$_*/
|
|
4380
|
+
8) && _.p(f, o ? g : -1);
|
|
4409
4381
|
},
|
|
4410
4382
|
i(f) {
|
|
4411
|
-
|
|
4383
|
+
o || (V(u, f), V(c, f), V(p, f), V(_, f), o = !0);
|
|
4412
4384
|
},
|
|
4413
4385
|
o(f) {
|
|
4414
|
-
|
|
4386
|
+
Ee(u, f), Ee(c, f), Ee(p, f), Ee(_, f), o = !1;
|
|
4415
4387
|
},
|
|
4416
4388
|
d(f) {
|
|
4417
|
-
f &&
|
|
4389
|
+
f && L(t), u && u.d(f), c && c.d(f), p && p.d(f), _ && _.d(f), e[12](null);
|
|
4418
4390
|
}
|
|
4419
4391
|
};
|
|
4420
4392
|
}
|
|
4421
|
-
function
|
|
4393
|
+
function Qi(e, t, r) {
|
|
4422
4394
|
let n;
|
|
4423
|
-
Tr(e,
|
|
4424
|
-
let { $$slots: i = {}, $$scope: s } = t, { assetsurl:
|
|
4395
|
+
Tr(e, Ri, (f) => r(3, n = f));
|
|
4396
|
+
let { $$slots: i = {}, $$scope: s } = t, { assetsurl: o = "" } = t, { lang: a = "en" } = t, { errorcode: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { mbsource: m = "" } = t, d;
|
|
4425
4397
|
const p = () => {
|
|
4426
|
-
|
|
4398
|
+
Gi(a);
|
|
4427
4399
|
}, b = () => {
|
|
4428
4400
|
fetch(c).then((g) => g.json()).then((g) => {
|
|
4429
4401
|
Object.keys(g).forEach((S) => {
|
|
@@ -4436,32 +4408,32 @@ function qi(e, t, r) {
|
|
|
4436
4408
|
Object.keys(At).forEach((f) => {
|
|
4437
4409
|
Bt(f, At[f]);
|
|
4438
4410
|
});
|
|
4439
|
-
const
|
|
4411
|
+
const E = () => {
|
|
4440
4412
|
window.postMessage({ type: "ErrorClose" }, window.location.href);
|
|
4441
4413
|
};
|
|
4442
4414
|
$r(() => () => {
|
|
4443
4415
|
});
|
|
4444
4416
|
function _(f) {
|
|
4445
|
-
|
|
4417
|
+
Je[f ? "unshift" : "push"](() => {
|
|
4446
4418
|
d = f, r(2, d);
|
|
4447
4419
|
});
|
|
4448
4420
|
}
|
|
4449
4421
|
return e.$$set = (f) => {
|
|
4450
|
-
"assetsurl" in f && r(0,
|
|
4422
|
+
"assetsurl" in f && r(0, o = f.assetsurl), "lang" in f && r(5, a = f.lang), "errorcode" in f && r(1, h = f.errorcode), "clientstyling" in f && r(6, u = f.clientstyling), "clientstylingurl" in f && r(7, l = f.clientstylingurl), "translationurl" in f && r(8, c = f.translationurl), "mbsource" in f && r(9, m = f.mbsource), "$$scope" in f && r(10, s = f.$$scope);
|
|
4451
4423
|
}, e.$$.update = () => {
|
|
4452
4424
|
e.$$.dirty & /*lang*/
|
|
4453
|
-
32 &&
|
|
4454
|
-
68 && u && d &&
|
|
4455
|
-
132 && l && d &&
|
|
4456
|
-
516 && m && d &&
|
|
4425
|
+
32 && a && p(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4426
|
+
68 && u && d && Di(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4427
|
+
132 && l && d && ki(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4428
|
+
516 && m && d && Ui(d, `${m}.Style`), e.$$.dirty & /*translationurl*/
|
|
4457
4429
|
256 && c && b();
|
|
4458
4430
|
}, [
|
|
4459
|
-
|
|
4431
|
+
o,
|
|
4460
4432
|
h,
|
|
4461
4433
|
d,
|
|
4462
4434
|
n,
|
|
4463
|
-
|
|
4464
|
-
|
|
4435
|
+
E,
|
|
4436
|
+
a,
|
|
4465
4437
|
u,
|
|
4466
4438
|
l,
|
|
4467
4439
|
c,
|
|
@@ -4476,8 +4448,8 @@ class Er extends zr {
|
|
|
4476
4448
|
super(), Fr(
|
|
4477
4449
|
this,
|
|
4478
4450
|
t,
|
|
4451
|
+
Qi,
|
|
4479
4452
|
qi,
|
|
4480
|
-
Ji,
|
|
4481
4453
|
$t,
|
|
4482
4454
|
{
|
|
4483
4455
|
assetsurl: 0,
|
|
@@ -4488,121 +4460,117 @@ class Er extends zr {
|
|
|
4488
4460
|
translationurl: 8,
|
|
4489
4461
|
mbsource: 9
|
|
4490
4462
|
},
|
|
4491
|
-
|
|
4463
|
+
Fi
|
|
4492
4464
|
);
|
|
4493
4465
|
}
|
|
4494
4466
|
get assetsurl() {
|
|
4495
4467
|
return this.$$.ctx[0];
|
|
4496
4468
|
}
|
|
4497
4469
|
set assetsurl(t) {
|
|
4498
|
-
this.$$set({ assetsurl: t }),
|
|
4470
|
+
this.$$set({ assetsurl: t }), M();
|
|
4499
4471
|
}
|
|
4500
4472
|
get lang() {
|
|
4501
4473
|
return this.$$.ctx[5];
|
|
4502
4474
|
}
|
|
4503
4475
|
set lang(t) {
|
|
4504
|
-
this.$$set({ lang: t }),
|
|
4476
|
+
this.$$set({ lang: t }), M();
|
|
4505
4477
|
}
|
|
4506
4478
|
get errorcode() {
|
|
4507
4479
|
return this.$$.ctx[1];
|
|
4508
4480
|
}
|
|
4509
4481
|
set errorcode(t) {
|
|
4510
|
-
this.$$set({ errorcode: t }),
|
|
4482
|
+
this.$$set({ errorcode: t }), M();
|
|
4511
4483
|
}
|
|
4512
4484
|
get clientstyling() {
|
|
4513
4485
|
return this.$$.ctx[6];
|
|
4514
4486
|
}
|
|
4515
4487
|
set clientstyling(t) {
|
|
4516
|
-
this.$$set({ clientstyling: t }),
|
|
4488
|
+
this.$$set({ clientstyling: t }), M();
|
|
4517
4489
|
}
|
|
4518
4490
|
get clientstylingurl() {
|
|
4519
4491
|
return this.$$.ctx[7];
|
|
4520
4492
|
}
|
|
4521
4493
|
set clientstylingurl(t) {
|
|
4522
|
-
this.$$set({ clientstylingurl: t }),
|
|
4494
|
+
this.$$set({ clientstylingurl: t }), M();
|
|
4523
4495
|
}
|
|
4524
4496
|
get translationurl() {
|
|
4525
4497
|
return this.$$.ctx[8];
|
|
4526
4498
|
}
|
|
4527
4499
|
set translationurl(t) {
|
|
4528
|
-
this.$$set({ translationurl: t }),
|
|
4500
|
+
this.$$set({ translationurl: t }), M();
|
|
4529
4501
|
}
|
|
4530
4502
|
get mbsource() {
|
|
4531
4503
|
return this.$$.ctx[9];
|
|
4532
4504
|
}
|
|
4533
4505
|
set mbsource(t) {
|
|
4534
|
-
this.$$set({ mbsource: t }),
|
|
4506
|
+
this.$$set({ mbsource: t }), M();
|
|
4535
4507
|
}
|
|
4536
4508
|
}
|
|
4537
4509
|
jr(Er, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
4538
|
-
const
|
|
4510
|
+
const _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4539
4511
|
__proto__: null,
|
|
4540
4512
|
default: Er
|
|
4541
4513
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4542
4514
|
export {
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4515
|
+
G as $,
|
|
4516
|
+
is as A,
|
|
4517
|
+
_e as B,
|
|
4518
|
+
Br as C,
|
|
4519
|
+
hs as D,
|
|
4520
|
+
us as E,
|
|
4521
|
+
rs as F,
|
|
4522
|
+
ps as G,
|
|
4523
|
+
ct as H,
|
|
4524
|
+
jt as I,
|
|
4525
|
+
bs as J,
|
|
4526
|
+
ns as K,
|
|
4527
|
+
Ne as L,
|
|
4528
|
+
k as M,
|
|
4529
|
+
ss as N,
|
|
4530
|
+
os as O,
|
|
4531
|
+
ts as P,
|
|
4532
|
+
gs as Q,
|
|
4533
|
+
Di as R,
|
|
4562
4534
|
zr as S,
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4535
|
+
ki as T,
|
|
4536
|
+
Ui as U,
|
|
4537
|
+
Ee as V,
|
|
4538
|
+
V as W,
|
|
4539
|
+
cs as X,
|
|
4540
|
+
fs as Y,
|
|
4541
|
+
pe as Z,
|
|
4542
|
+
be as _,
|
|
4571
4543
|
gr as a,
|
|
4572
|
-
|
|
4573
|
-
|
|
4544
|
+
ye as a0,
|
|
4545
|
+
ge as a1,
|
|
4574
4546
|
as as a2,
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
I as o,
|
|
4597
|
-
Re as p,
|
|
4598
|
-
W as q,
|
|
4599
|
-
Y as r,
|
|
4547
|
+
Nt as a3,
|
|
4548
|
+
ds as a4,
|
|
4549
|
+
ms as a5,
|
|
4550
|
+
_s as a6,
|
|
4551
|
+
Ri as b,
|
|
4552
|
+
ys as c,
|
|
4553
|
+
Wr as d,
|
|
4554
|
+
jr as e,
|
|
4555
|
+
Fr as f,
|
|
4556
|
+
Ki as g,
|
|
4557
|
+
M as h,
|
|
4558
|
+
pi as i,
|
|
4559
|
+
Hr as j,
|
|
4560
|
+
ae as k,
|
|
4561
|
+
L as l,
|
|
4562
|
+
K as m,
|
|
4563
|
+
B as n,
|
|
4564
|
+
N as o,
|
|
4565
|
+
We as p,
|
|
4566
|
+
es as q,
|
|
4567
|
+
C as r,
|
|
4600
4568
|
$t as s,
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4569
|
+
ke as t,
|
|
4570
|
+
Z as u,
|
|
4571
|
+
Tr as v,
|
|
4572
|
+
Le as w,
|
|
4573
|
+
$r as x,
|
|
4574
|
+
ls as y,
|
|
4575
|
+
Je as z
|
|
4608
4576
|
};
|