@everymatrix/cashier-receipt-page 1.77.25 → 1.77.26
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-Dp1LS5S6.js → CashierError-BtA7CFaR.js} +866 -834
- package/components/{CashierError-RSXEVpmF.js → CashierError-CgTnVEH5.js} +804 -772
- package/components/CashierError-DpZZh44q.cjs +18 -0
- package/components/{CashierReceiptPage-IT8fEUKO.cjs → CashierReceiptPage-BXeWpsMC.cjs} +3 -16
- package/components/{CashierReceiptPage-BGGspUa0.js → CashierReceiptPage-CqbKD4Ho.js} +246 -295
- package/components/{CashierReceiptPage-B0V8IVKa.js → CashierReceiptPage-WTCaJUbr.js} +246 -295
- package/es2015/cashier-receipt-page.cjs +1 -1
- package/es2015/cashier-receipt-page.js +1 -1
- package/esnext/cashier-receipt-page.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652-BD-QREJe.js +558 -0
- package/stencil/index-97d17652-DJqGt8q2.js +542 -0
- package/stencil/index-97d17652-tiiCeQFu.cjs +1 -0
- package/stencil/{ui-image-BaHsVAxH.cjs → ui-image-BMiZteNE.cjs} +1 -1
- package/stencil/{ui-image-CHeV8e9p.js → ui-image-BW8AeEVd.js} +1 -1
- package/stencil/{ui-image-C7s6Uvn5.js → ui-image-CX3MBBZL.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-2Ir9VtWc.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-AJGQkQBu.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-pdIH5TBa.cjs} +1 -1
- package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-BGf0VFLf.cjs} +1 -1
- package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-Dh5Eqdlm.js} +2 -2
- package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-_K8Pt3w9.js} +2 -2
- package/components/CashierError-Dp1UI5rY.cjs +0 -5
- package/stencil/index-97d17652--F7PvMq9.js +0 -542
- package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
- package/stencil/index-97d17652-CCFHkzJw.js +0 -558
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../stencil/ui-image-
|
|
2
|
-
function
|
|
1
|
+
import "../stencil/ui-image-BW8AeEVd.js";
|
|
2
|
+
function P() {
|
|
3
3
|
}
|
|
4
4
|
function Kt(e, t) {
|
|
5
5
|
for (const r in t)
|
|
@@ -15,18 +15,18 @@ function xt(e) {
|
|
|
15
15
|
function Qe() {
|
|
16
16
|
return /* @__PURE__ */ Object.create(null);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Z(e) {
|
|
19
19
|
e.forEach(xt);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function ze(e) {
|
|
22
22
|
return typeof e == "function";
|
|
23
23
|
}
|
|
24
24
|
function Tt(e, t) {
|
|
25
25
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
26
26
|
}
|
|
27
|
-
let
|
|
27
|
+
let oe;
|
|
28
28
|
function Ye(e, t) {
|
|
29
|
-
return e === t ? !0 : (
|
|
29
|
+
return e === t ? !0 : (oe || (oe = document.createElement("a")), oe.href = t, e === oe.href);
|
|
30
30
|
}
|
|
31
31
|
function er(e) {
|
|
32
32
|
return Object.keys(e).length === 0;
|
|
@@ -35,7 +35,7 @@ function Ht(e, ...t) {
|
|
|
35
35
|
if (e == null) {
|
|
36
36
|
for (const n of t)
|
|
37
37
|
n(void 0);
|
|
38
|
-
return
|
|
38
|
+
return P;
|
|
39
39
|
}
|
|
40
40
|
const r = e.subscribe(...t);
|
|
41
41
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
@@ -43,7 +43,7 @@ function Ht(e, ...t) {
|
|
|
43
43
|
function tr(e, t, r) {
|
|
44
44
|
e.$$.on_destroy.push(Ht(t, r));
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function he(e, t, r, n) {
|
|
47
47
|
if (e) {
|
|
48
48
|
const i = wt(e, t, r, n);
|
|
49
49
|
return e[0](i);
|
|
@@ -52,28 +52,28 @@ function ce(e, t, r, n) {
|
|
|
52
52
|
function wt(e, t, r, n) {
|
|
53
53
|
return e[1] && n ? Kt(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function ce(e, t, r, n) {
|
|
56
56
|
if (e[2] && n) {
|
|
57
57
|
const i = e[2](n(r));
|
|
58
58
|
if (t.dirty === void 0)
|
|
59
59
|
return i;
|
|
60
60
|
if (typeof i == "object") {
|
|
61
|
-
const
|
|
62
|
-
for (let
|
|
63
|
-
|
|
64
|
-
return
|
|
61
|
+
const a = [], s = Math.max(t.dirty.length, i.length);
|
|
62
|
+
for (let o = 0; o < s; o += 1)
|
|
63
|
+
a[o] = t.dirty[o] | i[o];
|
|
64
|
+
return a;
|
|
65
65
|
}
|
|
66
66
|
return t.dirty | i;
|
|
67
67
|
}
|
|
68
68
|
return t.dirty;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function fe(e, t, r, n, i, a) {
|
|
71
71
|
if (i) {
|
|
72
|
-
const
|
|
73
|
-
e.p(
|
|
72
|
+
const s = wt(t, r, n, a);
|
|
73
|
+
e.p(s, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function me(e) {
|
|
77
77
|
if (e.ctx.length > 32) {
|
|
78
78
|
const t = [], r = e.ctx.length / 32;
|
|
79
79
|
for (let n = 0; n < r; n++)
|
|
@@ -82,13 +82,13 @@ function de(e) {
|
|
|
82
82
|
}
|
|
83
83
|
return -1;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function A(e, t) {
|
|
86
86
|
e.appendChild(t);
|
|
87
87
|
}
|
|
88
88
|
function rr(e, t, r) {
|
|
89
89
|
const n = nr(e);
|
|
90
90
|
if (!n.getElementById(t)) {
|
|
91
|
-
const i =
|
|
91
|
+
const i = O("style");
|
|
92
92
|
i.id = t, i.textContent = r, ir(n, i);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -103,51 +103,51 @@ function nr(e) {
|
|
|
103
103
|
) : e.ownerDocument;
|
|
104
104
|
}
|
|
105
105
|
function ir(e, t) {
|
|
106
|
-
return
|
|
106
|
+
return A(
|
|
107
107
|
/** @type {Document} */
|
|
108
108
|
e.head || e,
|
|
109
109
|
t
|
|
110
110
|
), t.sheet;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function R(e, t, r) {
|
|
113
113
|
e.insertBefore(t, r || null);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function N(e) {
|
|
116
116
|
e.parentNode && e.parentNode.removeChild(e);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Ii(e, t) {
|
|
119
119
|
for (let r = 0; r < e.length; r += 1)
|
|
120
120
|
e[r] && e[r].d(t);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function O(e) {
|
|
123
123
|
return document.createElement(e);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Ci(e) {
|
|
126
126
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function ne(e) {
|
|
129
129
|
return document.createTextNode(e);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
return
|
|
131
|
+
function we() {
|
|
132
|
+
return ne(" ");
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
return
|
|
134
|
+
function ar() {
|
|
135
|
+
return ne("");
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function sr(e, t, r, n) {
|
|
138
138
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function $(e, t, r) {
|
|
141
141
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function ue(e, t, r) {
|
|
144
144
|
const n = t.toLowerCase();
|
|
145
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
145
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : $(e, t, r);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function or(e) {
|
|
148
148
|
return Array.from(e.childNodes);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Ve(e, t) {
|
|
151
151
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
152
152
|
t);
|
|
153
153
|
}
|
|
@@ -160,118 +160,118 @@ function ur(e) {
|
|
|
160
160
|
}
|
|
161
161
|
), t;
|
|
162
162
|
}
|
|
163
|
-
let
|
|
164
|
-
function
|
|
165
|
-
|
|
163
|
+
let ee;
|
|
164
|
+
function K(e) {
|
|
165
|
+
ee = e;
|
|
166
166
|
}
|
|
167
167
|
function lr() {
|
|
168
|
-
if (!
|
|
168
|
+
if (!ee)
|
|
169
169
|
throw new Error("Function called outside component initialization");
|
|
170
|
-
return
|
|
170
|
+
return ee;
|
|
171
171
|
}
|
|
172
172
|
function hr(e) {
|
|
173
173
|
lr().$$.on_mount.push(e);
|
|
174
174
|
}
|
|
175
|
-
const
|
|
176
|
-
let
|
|
175
|
+
const k = [], Ne = [];
|
|
176
|
+
let j = [];
|
|
177
177
|
const Ke = [], cr = /* @__PURE__ */ Promise.resolve();
|
|
178
|
-
let
|
|
178
|
+
let Le = !1;
|
|
179
179
|
function fr() {
|
|
180
|
-
|
|
180
|
+
Le || (Le = !0, cr.then(B));
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
|
|
182
|
+
function Me(e) {
|
|
183
|
+
j.push(e);
|
|
184
184
|
}
|
|
185
|
-
const
|
|
186
|
-
let
|
|
185
|
+
const Se = /* @__PURE__ */ new Set();
|
|
186
|
+
let U = 0;
|
|
187
187
|
function B() {
|
|
188
|
-
if (
|
|
188
|
+
if (U !== 0)
|
|
189
189
|
return;
|
|
190
|
-
const e =
|
|
190
|
+
const e = ee;
|
|
191
191
|
do {
|
|
192
192
|
try {
|
|
193
|
-
for (;
|
|
194
|
-
const t =
|
|
195
|
-
|
|
193
|
+
for (; U < k.length; ) {
|
|
194
|
+
const t = k[U];
|
|
195
|
+
U++, K(t), mr(t.$$);
|
|
196
196
|
}
|
|
197
197
|
} catch (t) {
|
|
198
|
-
throw
|
|
198
|
+
throw k.length = 0, U = 0, t;
|
|
199
199
|
}
|
|
200
|
-
for (
|
|
201
|
-
|
|
202
|
-
for (let t = 0; t <
|
|
203
|
-
const r =
|
|
204
|
-
|
|
200
|
+
for (K(null), k.length = 0, U = 0; Ne.length; )
|
|
201
|
+
Ne.pop()();
|
|
202
|
+
for (let t = 0; t < j.length; t += 1) {
|
|
203
|
+
const r = j[t];
|
|
204
|
+
Se.has(r) || (Se.add(r), r());
|
|
205
205
|
}
|
|
206
|
-
|
|
207
|
-
} while (
|
|
206
|
+
j.length = 0;
|
|
207
|
+
} while (k.length);
|
|
208
208
|
for (; Ke.length; )
|
|
209
209
|
Ke.pop()();
|
|
210
|
-
|
|
210
|
+
Le = !1, Se.clear(), K(e);
|
|
211
211
|
}
|
|
212
212
|
function mr(e) {
|
|
213
213
|
if (e.fragment !== null) {
|
|
214
|
-
e.update(),
|
|
214
|
+
e.update(), Z(e.before_update);
|
|
215
215
|
const t = e.dirty;
|
|
216
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
216
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
function dr(e) {
|
|
220
220
|
const t = [], r = [];
|
|
221
|
-
|
|
221
|
+
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
222
222
|
}
|
|
223
|
-
const
|
|
224
|
-
let
|
|
225
|
-
function
|
|
226
|
-
|
|
223
|
+
const de = /* @__PURE__ */ new Set();
|
|
224
|
+
let M;
|
|
225
|
+
function br() {
|
|
226
|
+
M = {
|
|
227
227
|
r: 0,
|
|
228
228
|
c: [],
|
|
229
|
-
p:
|
|
229
|
+
p: M
|
|
230
230
|
// parent group
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
|
|
233
|
+
function pr() {
|
|
234
|
+
M.r || Z(M.c), M = M.p;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
237
|
-
e && e.i && (
|
|
236
|
+
function I(e, t) {
|
|
237
|
+
e && e.i && (de.delete(e), e.i(t));
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function F(e, t, r, n) {
|
|
240
240
|
if (e && e.o) {
|
|
241
|
-
if (
|
|
241
|
+
if (de.has(e))
|
|
242
242
|
return;
|
|
243
|
-
|
|
244
|
-
|
|
243
|
+
de.add(e), M.c.push(() => {
|
|
244
|
+
de.delete(e), n && (r && e.d(1), n());
|
|
245
245
|
}), e.o(t);
|
|
246
246
|
} else
|
|
247
247
|
n && n();
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Ni(e) {
|
|
250
250
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
251
251
|
}
|
|
252
252
|
function gr(e, t, r) {
|
|
253
253
|
const { fragment: n, after_update: i } = e.$$;
|
|
254
|
-
n && n.m(t, r),
|
|
255
|
-
const
|
|
256
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
257
|
-
}), i.forEach(
|
|
254
|
+
n && n.m(t, r), Me(() => {
|
|
255
|
+
const a = e.$$.on_mount.map(xt).filter(ze);
|
|
256
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...a) : Z(a), e.$$.on_mount = [];
|
|
257
|
+
}), i.forEach(Me);
|
|
258
258
|
}
|
|
259
259
|
function yr(e, t) {
|
|
260
260
|
const r = e.$$;
|
|
261
|
-
r.fragment !== null && (dr(r.after_update),
|
|
261
|
+
r.fragment !== null && (dr(r.after_update), Z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
262
262
|
}
|
|
263
263
|
function _r(e, t) {
|
|
264
|
-
e.$$.dirty[0] === -1 && (
|
|
264
|
+
e.$$.dirty[0] === -1 && (k.push(e), fr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
265
265
|
}
|
|
266
|
-
function Er(e, t, r, n, i,
|
|
267
|
-
const h =
|
|
268
|
-
|
|
266
|
+
function Er(e, t, r, n, i, a, s = null, o = [-1]) {
|
|
267
|
+
const h = ee;
|
|
268
|
+
K(e);
|
|
269
269
|
const u = e.$$ = {
|
|
270
270
|
fragment: null,
|
|
271
271
|
ctx: [],
|
|
272
272
|
// state
|
|
273
|
-
props:
|
|
274
|
-
update:
|
|
273
|
+
props: a,
|
|
274
|
+
update: P,
|
|
275
275
|
not_equal: i,
|
|
276
276
|
bound: Qe(),
|
|
277
277
|
// lifecycle
|
|
@@ -283,24 +283,24 @@ function Er(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
283
283
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
284
284
|
// everything else
|
|
285
285
|
callbacks: Qe(),
|
|
286
|
-
dirty:
|
|
286
|
+
dirty: o,
|
|
287
287
|
skip_bound: !1,
|
|
288
288
|
root: t.target || h.$$.root
|
|
289
289
|
};
|
|
290
|
-
|
|
290
|
+
s && s(u.root);
|
|
291
291
|
let l = !1;
|
|
292
292
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...y) => {
|
|
293
|
-
const
|
|
294
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
295
|
-
}) : [], u.update(), l = !0,
|
|
293
|
+
const b = y.length ? y[0] : c;
|
|
294
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), l && _r(e, f)), c;
|
|
295
|
+
}) : [], u.update(), l = !0, Z(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
296
296
|
if (t.hydrate) {
|
|
297
|
-
const f =
|
|
298
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
297
|
+
const f = or(t.target);
|
|
298
|
+
u.fragment && u.fragment.l(f), f.forEach(N);
|
|
299
299
|
} else
|
|
300
300
|
u.fragment && u.fragment.c();
|
|
301
|
-
t.intro &&
|
|
301
|
+
t.intro && I(e.$$.fragment), gr(e, t.target, t.anchor), B();
|
|
302
302
|
}
|
|
303
|
-
|
|
303
|
+
K(h);
|
|
304
304
|
}
|
|
305
305
|
let St;
|
|
306
306
|
typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
@@ -342,20 +342,20 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
342
342
|
if (this.$$cn = !0, !this.$$c) {
|
|
343
343
|
let e = function(i) {
|
|
344
344
|
return () => {
|
|
345
|
-
let
|
|
345
|
+
let a;
|
|
346
346
|
return {
|
|
347
347
|
c: function() {
|
|
348
|
-
|
|
348
|
+
a = O("slot"), i !== "default" && $(a, "name", i);
|
|
349
349
|
},
|
|
350
350
|
/**
|
|
351
351
|
* @param {HTMLElement} target
|
|
352
352
|
* @param {HTMLElement} [anchor]
|
|
353
353
|
*/
|
|
354
354
|
m: function(h, u) {
|
|
355
|
-
|
|
355
|
+
R(h, a, u);
|
|
356
356
|
},
|
|
357
357
|
d: function(h) {
|
|
358
|
-
h &&
|
|
358
|
+
h && N(a);
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
361
|
};
|
|
@@ -366,8 +366,8 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
366
366
|
for (const i of this.$$s)
|
|
367
367
|
i in r && (t[i] = [e(i)]);
|
|
368
368
|
for (const i of this.attributes) {
|
|
369
|
-
const
|
|
370
|
-
|
|
369
|
+
const a = this.$$g_p(i.name);
|
|
370
|
+
a in this.$$d || (this.$$d[a] = be(a, i.value, this.$$p_d, "toProp"));
|
|
371
371
|
}
|
|
372
372
|
for (const i in this.$$p_d)
|
|
373
373
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -385,21 +385,21 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
385
385
|
this.$$r = !0;
|
|
386
386
|
for (const i in this.$$p_d)
|
|
387
387
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
388
|
-
const
|
|
388
|
+
const a = be(
|
|
389
389
|
i,
|
|
390
390
|
this.$$d[i],
|
|
391
391
|
this.$$p_d,
|
|
392
392
|
"toAttribute"
|
|
393
393
|
);
|
|
394
|
-
|
|
394
|
+
a == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, a);
|
|
395
395
|
}
|
|
396
396
|
this.$$r = !1;
|
|
397
397
|
};
|
|
398
398
|
this.$$c.$$.after_update.push(n), n();
|
|
399
399
|
for (const i in this.$$l)
|
|
400
|
-
for (const
|
|
401
|
-
const
|
|
402
|
-
this.$$l_u.set(
|
|
400
|
+
for (const a of this.$$l[i]) {
|
|
401
|
+
const s = this.$$c.$on(i, a);
|
|
402
|
+
this.$$l_u.set(a, s);
|
|
403
403
|
}
|
|
404
404
|
this.$$l = {};
|
|
405
405
|
}
|
|
@@ -449,34 +449,34 @@ function be(e, t, r, n) {
|
|
|
449
449
|
return t;
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
|
-
function vr(e, t, r, n, i,
|
|
453
|
-
let
|
|
452
|
+
function vr(e, t, r, n, i, a) {
|
|
453
|
+
let s = class extends St {
|
|
454
454
|
constructor() {
|
|
455
455
|
super(e, r, i), this.$$p_d = t;
|
|
456
456
|
}
|
|
457
457
|
static get observedAttributes() {
|
|
458
458
|
return Object.keys(t).map(
|
|
459
|
-
(
|
|
459
|
+
(o) => (t[o].attribute || o).toLowerCase()
|
|
460
460
|
);
|
|
461
461
|
}
|
|
462
462
|
};
|
|
463
|
-
return Object.keys(t).forEach((
|
|
464
|
-
Object.defineProperty(
|
|
463
|
+
return Object.keys(t).forEach((o) => {
|
|
464
|
+
Object.defineProperty(s.prototype, o, {
|
|
465
465
|
get() {
|
|
466
|
-
return this.$$c &&
|
|
466
|
+
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
467
467
|
},
|
|
468
468
|
set(h) {
|
|
469
|
-
h = be(
|
|
469
|
+
h = be(o, h, t), this.$$d[o] = h, this.$$c?.$set({ [o]: h });
|
|
470
470
|
}
|
|
471
471
|
});
|
|
472
|
-
}), n.forEach((
|
|
473
|
-
Object.defineProperty(
|
|
472
|
+
}), n.forEach((o) => {
|
|
473
|
+
Object.defineProperty(s.prototype, o, {
|
|
474
474
|
get() {
|
|
475
|
-
return this.$$c?.[
|
|
475
|
+
return this.$$c?.[o];
|
|
476
476
|
}
|
|
477
477
|
});
|
|
478
478
|
}), e.element = /** @type {any} */
|
|
479
|
-
|
|
479
|
+
s, s;
|
|
480
480
|
}
|
|
481
481
|
class xr {
|
|
482
482
|
/**
|
|
@@ -497,7 +497,7 @@ class xr {
|
|
|
497
497
|
$$set = void 0;
|
|
498
498
|
/** @returns {void} */
|
|
499
499
|
$destroy() {
|
|
500
|
-
yr(this, 1), this.$destroy =
|
|
500
|
+
yr(this, 1), this.$destroy = P;
|
|
501
501
|
}
|
|
502
502
|
/**
|
|
503
503
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -506,8 +506,8 @@ class xr {
|
|
|
506
506
|
* @returns {() => void}
|
|
507
507
|
*/
|
|
508
508
|
$on(t, r) {
|
|
509
|
-
if (!
|
|
510
|
-
return
|
|
509
|
+
if (!ze(r))
|
|
510
|
+
return P;
|
|
511
511
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
512
512
|
return n.push(r), () => {
|
|
513
513
|
const i = n.indexOf(r);
|
|
@@ -524,70 +524,70 @@ class xr {
|
|
|
524
524
|
}
|
|
525
525
|
const Tr = "4";
|
|
526
526
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Tr);
|
|
527
|
-
const
|
|
527
|
+
const G = [];
|
|
528
528
|
function Hr(e, t) {
|
|
529
529
|
return {
|
|
530
|
-
subscribe:
|
|
530
|
+
subscribe: ve(e, t).subscribe
|
|
531
531
|
};
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function ve(e, t = P) {
|
|
534
534
|
let r;
|
|
535
535
|
const n = /* @__PURE__ */ new Set();
|
|
536
|
-
function i(
|
|
537
|
-
if (Tt(e,
|
|
538
|
-
const h = !
|
|
536
|
+
function i(o) {
|
|
537
|
+
if (Tt(e, o) && (e = o, r)) {
|
|
538
|
+
const h = !G.length;
|
|
539
539
|
for (const u of n)
|
|
540
|
-
u[1](),
|
|
540
|
+
u[1](), G.push(u, e);
|
|
541
541
|
if (h) {
|
|
542
|
-
for (let u = 0; u <
|
|
543
|
-
|
|
544
|
-
|
|
542
|
+
for (let u = 0; u < G.length; u += 2)
|
|
543
|
+
G[u][0](G[u + 1]);
|
|
544
|
+
G.length = 0;
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
function
|
|
549
|
-
i(
|
|
548
|
+
function a(o) {
|
|
549
|
+
i(o(e));
|
|
550
550
|
}
|
|
551
|
-
function o
|
|
552
|
-
const u = [
|
|
553
|
-
return n.add(u), n.size === 1 && (r = t(i,
|
|
551
|
+
function s(o, h = P) {
|
|
552
|
+
const u = [o, h];
|
|
553
|
+
return n.add(u), n.size === 1 && (r = t(i, a) || P), o(e), () => {
|
|
554
554
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
|
-
return { set: i, update:
|
|
557
|
+
return { set: i, update: a, subscribe: s };
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function J(e, t, r) {
|
|
560
560
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
561
561
|
if (!i.every(Boolean))
|
|
562
562
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
563
|
-
const
|
|
564
|
-
return Hr(r, (
|
|
563
|
+
const a = t.length < 2;
|
|
564
|
+
return Hr(r, (s, o) => {
|
|
565
565
|
let h = !1;
|
|
566
566
|
const u = [];
|
|
567
|
-
let l = 0, f =
|
|
567
|
+
let l = 0, f = P;
|
|
568
568
|
const c = () => {
|
|
569
569
|
if (l)
|
|
570
570
|
return;
|
|
571
571
|
f();
|
|
572
|
-
const
|
|
573
|
-
|
|
572
|
+
const b = t(n ? u[0] : u, s, o);
|
|
573
|
+
a ? s(b) : f = ze(b) ? b : P;
|
|
574
574
|
}, y = i.map(
|
|
575
|
-
(
|
|
576
|
-
|
|
577
|
-
(
|
|
578
|
-
u[
|
|
575
|
+
(b, v) => Ht(
|
|
576
|
+
b,
|
|
577
|
+
(E) => {
|
|
578
|
+
u[v] = E, l &= ~(1 << v), h && c();
|
|
579
579
|
},
|
|
580
580
|
() => {
|
|
581
|
-
l |= 1 <<
|
|
581
|
+
l |= 1 << v;
|
|
582
582
|
}
|
|
583
583
|
)
|
|
584
584
|
);
|
|
585
585
|
return h = !0, c(), function() {
|
|
586
|
-
|
|
586
|
+
Z(y), f(), h = !1;
|
|
587
587
|
};
|
|
588
588
|
});
|
|
589
589
|
}
|
|
590
|
-
var
|
|
590
|
+
var Li = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
591
591
|
function wr(e) {
|
|
592
592
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
593
593
|
}
|
|
@@ -608,19 +608,19 @@ function Ir(e) {
|
|
|
608
608
|
function Cr(e) {
|
|
609
609
|
return Array.isArray(e) ? [] : {};
|
|
610
610
|
}
|
|
611
|
-
function
|
|
612
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
611
|
+
function te(e, t) {
|
|
612
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? z(Cr(e), e, t) : e;
|
|
613
613
|
}
|
|
614
614
|
function Nr(e, t, r) {
|
|
615
615
|
return e.concat(t).map(function(n) {
|
|
616
|
-
return
|
|
616
|
+
return te(n, r);
|
|
617
617
|
});
|
|
618
618
|
}
|
|
619
619
|
function Lr(e, t) {
|
|
620
620
|
if (!t.customMerge)
|
|
621
|
-
return
|
|
621
|
+
return z;
|
|
622
622
|
var r = t.customMerge(e);
|
|
623
|
-
return typeof r == "function" ? r :
|
|
623
|
+
return typeof r == "function" ? r : z;
|
|
624
624
|
}
|
|
625
625
|
function Mr(e) {
|
|
626
626
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -643,51 +643,65 @@ function $r(e, t) {
|
|
|
643
643
|
function Rr(e, t, r) {
|
|
644
644
|
var n = {};
|
|
645
645
|
return r.isMergeableObject(e) && et(e).forEach(function(i) {
|
|
646
|
-
n[i] =
|
|
646
|
+
n[i] = te(e[i], r);
|
|
647
647
|
}), et(t).forEach(function(i) {
|
|
648
|
-
$r(e, i) || (Bt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Lr(i, r)(e[i], t[i], r) : n[i] =
|
|
648
|
+
$r(e, i) || (Bt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Lr(i, r)(e[i], t[i], r) : n[i] = te(t[i], r));
|
|
649
649
|
}), n;
|
|
650
650
|
}
|
|
651
|
-
function
|
|
652
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Nr, r.isMergeableObject = r.isMergeableObject || Sr, r.cloneUnlessOtherwiseSpecified =
|
|
653
|
-
var n = Array.isArray(t), i = Array.isArray(e),
|
|
654
|
-
return
|
|
651
|
+
function z(e, t, r) {
|
|
652
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Nr, r.isMergeableObject = r.isMergeableObject || Sr, r.cloneUnlessOtherwiseSpecified = te;
|
|
653
|
+
var n = Array.isArray(t), i = Array.isArray(e), a = n === i;
|
|
654
|
+
return a ? n ? r.arrayMerge(e, t, r) : Rr(e, t, r) : te(t, r);
|
|
655
655
|
}
|
|
656
|
-
|
|
656
|
+
z.all = function(t, r) {
|
|
657
657
|
if (!Array.isArray(t))
|
|
658
658
|
throw new Error("first argument should be an array");
|
|
659
659
|
return t.reduce(function(n, i) {
|
|
660
|
-
return
|
|
660
|
+
return z(n, i, r);
|
|
661
661
|
}, {});
|
|
662
662
|
};
|
|
663
|
-
var Dr =
|
|
663
|
+
var Dr = z, Ur = Dr;
|
|
664
664
|
const Gr = /* @__PURE__ */ wr(Ur);
|
|
665
|
-
|
|
666
|
-
|
|
665
|
+
/*! *****************************************************************************
|
|
666
|
+
Copyright (c) Microsoft Corporation.
|
|
667
|
+
|
|
668
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
669
|
+
purpose with or without fee is hereby granted.
|
|
670
|
+
|
|
671
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
672
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
673
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
674
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
675
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
676
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
677
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
678
|
+
***************************************************************************** */
|
|
679
|
+
var $e = function(e, t) {
|
|
680
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
667
681
|
r.__proto__ = n;
|
|
668
682
|
} || function(r, n) {
|
|
669
683
|
for (var i in n)
|
|
670
684
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
671
|
-
},
|
|
685
|
+
}, $e(e, t);
|
|
672
686
|
};
|
|
673
|
-
function
|
|
687
|
+
function xe(e, t) {
|
|
674
688
|
if (typeof t != "function" && t !== null)
|
|
675
689
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
676
|
-
|
|
690
|
+
$e(e, t);
|
|
677
691
|
function r() {
|
|
678
692
|
this.constructor = e;
|
|
679
693
|
}
|
|
680
694
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
681
695
|
}
|
|
682
|
-
var
|
|
683
|
-
return
|
|
696
|
+
var _ = function() {
|
|
697
|
+
return _ = Object.assign || function(t) {
|
|
684
698
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
685
699
|
r = arguments[n];
|
|
686
|
-
for (var
|
|
687
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
700
|
+
for (var a in r)
|
|
701
|
+
Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
|
|
688
702
|
}
|
|
689
703
|
return t;
|
|
690
|
-
},
|
|
704
|
+
}, _.apply(this, arguments);
|
|
691
705
|
};
|
|
692
706
|
function kr(e, t) {
|
|
693
707
|
var r = {};
|
|
@@ -698,14 +712,46 @@ function kr(e, t) {
|
|
|
698
712
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
699
713
|
return r;
|
|
700
714
|
}
|
|
701
|
-
function
|
|
715
|
+
function Mi(e) {
|
|
716
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
717
|
+
if (r)
|
|
718
|
+
return r.call(e);
|
|
719
|
+
if (e && typeof e.length == "number")
|
|
720
|
+
return {
|
|
721
|
+
next: function() {
|
|
722
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
723
|
+
}
|
|
724
|
+
};
|
|
725
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
726
|
+
}
|
|
727
|
+
function $i(e, t) {
|
|
728
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
729
|
+
if (!r)
|
|
730
|
+
return e;
|
|
731
|
+
var n = r.call(e), i, a = [], s;
|
|
732
|
+
try {
|
|
733
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
734
|
+
a.push(i.value);
|
|
735
|
+
} catch (o) {
|
|
736
|
+
s = { error: o };
|
|
737
|
+
} finally {
|
|
738
|
+
try {
|
|
739
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
740
|
+
} finally {
|
|
741
|
+
if (s)
|
|
742
|
+
throw s.error;
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
return a;
|
|
746
|
+
}
|
|
747
|
+
function Be(e, t, r) {
|
|
702
748
|
if (r || arguments.length === 2)
|
|
703
|
-
for (var n = 0, i = t.length,
|
|
704
|
-
(
|
|
705
|
-
return e.concat(
|
|
749
|
+
for (var n = 0, i = t.length, a; n < i; n++)
|
|
750
|
+
(a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]);
|
|
751
|
+
return e.concat(a || t);
|
|
706
752
|
}
|
|
707
|
-
function
|
|
708
|
-
var r = t && t.cache ? t.cache :
|
|
753
|
+
function Ae(e, t) {
|
|
754
|
+
var r = t && t.cache ? t.cache : Wr, n = t && t.serializer ? t.serializer : Xr, i = t && t.strategy ? t.strategy : jr;
|
|
709
755
|
return i(e, {
|
|
710
756
|
cache: r,
|
|
711
757
|
serializer: n
|
|
@@ -714,103 +760,95 @@ function Oe(e, t) {
|
|
|
714
760
|
function Fr(e) {
|
|
715
761
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
716
762
|
}
|
|
717
|
-
function
|
|
718
|
-
var i = Fr(n) ? n : r(n),
|
|
719
|
-
return typeof
|
|
763
|
+
function At(e, t, r, n) {
|
|
764
|
+
var i = Fr(n) ? n : r(n), a = t.get(i);
|
|
765
|
+
return typeof a > "u" && (a = e.call(this, n), t.set(i, a)), a;
|
|
720
766
|
}
|
|
721
|
-
function
|
|
722
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
|
723
|
-
return typeof
|
|
767
|
+
function Pt(e, t, r) {
|
|
768
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), a = t.get(i);
|
|
769
|
+
return typeof a > "u" && (a = e.apply(this, n), t.set(i, a)), a;
|
|
724
770
|
}
|
|
725
|
-
function
|
|
771
|
+
function Xe(e, t, r, n, i) {
|
|
726
772
|
return r.bind(t, e, n, i);
|
|
727
773
|
}
|
|
774
|
+
function jr(e, t) {
|
|
775
|
+
var r = e.length === 1 ? At : Pt;
|
|
776
|
+
return Xe(e, this, r, t.cache.create(), t.serializer);
|
|
777
|
+
}
|
|
728
778
|
function zr(e, t) {
|
|
729
|
-
|
|
730
|
-
return Pt(e, this, r, t.cache.create(), t.serializer);
|
|
779
|
+
return Xe(e, this, Pt, t.cache.create(), t.serializer);
|
|
731
780
|
}
|
|
732
781
|
function Vr(e, t) {
|
|
733
|
-
return
|
|
782
|
+
return Xe(e, this, At, t.cache.create(), t.serializer);
|
|
734
783
|
}
|
|
735
784
|
var Xr = function() {
|
|
736
785
|
return JSON.stringify(arguments);
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
}()
|
|
749
|
-
), Zr = {
|
|
786
|
+
};
|
|
787
|
+
function We() {
|
|
788
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
789
|
+
}
|
|
790
|
+
We.prototype.get = function(e) {
|
|
791
|
+
return this.cache[e];
|
|
792
|
+
};
|
|
793
|
+
We.prototype.set = function(e, t) {
|
|
794
|
+
this.cache[e] = t;
|
|
795
|
+
};
|
|
796
|
+
var Wr = {
|
|
750
797
|
create: function() {
|
|
751
|
-
return new
|
|
798
|
+
return new We();
|
|
752
799
|
}
|
|
753
|
-
},
|
|
754
|
-
variadic:
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
758
|
-
r = arguments[n];
|
|
759
|
-
for (var s in r)
|
|
760
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
761
|
-
}
|
|
762
|
-
return t;
|
|
763
|
-
}, _e.apply(this, arguments);
|
|
764
|
-
};
|
|
765
|
-
var b;
|
|
800
|
+
}, Pe = {
|
|
801
|
+
variadic: zr,
|
|
802
|
+
monadic: Vr
|
|
803
|
+
}, p;
|
|
766
804
|
(function(e) {
|
|
767
805
|
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";
|
|
768
|
-
})(
|
|
769
|
-
var
|
|
806
|
+
})(p || (p = {}));
|
|
807
|
+
var T;
|
|
770
808
|
(function(e) {
|
|
771
809
|
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";
|
|
772
|
-
})(
|
|
773
|
-
var
|
|
810
|
+
})(T || (T = {}));
|
|
811
|
+
var V;
|
|
774
812
|
(function(e) {
|
|
775
813
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
776
|
-
})(
|
|
814
|
+
})(V || (V = {}));
|
|
777
815
|
function tt(e) {
|
|
778
|
-
return e.type ===
|
|
816
|
+
return e.type === T.literal;
|
|
779
817
|
}
|
|
780
|
-
function
|
|
781
|
-
return e.type ===
|
|
818
|
+
function Zr(e) {
|
|
819
|
+
return e.type === T.argument;
|
|
782
820
|
}
|
|
783
821
|
function Ot(e) {
|
|
784
|
-
return e.type ===
|
|
822
|
+
return e.type === T.number;
|
|
785
823
|
}
|
|
786
824
|
function It(e) {
|
|
787
|
-
return e.type ===
|
|
825
|
+
return e.type === T.date;
|
|
788
826
|
}
|
|
789
827
|
function Ct(e) {
|
|
790
|
-
return e.type ===
|
|
828
|
+
return e.type === T.time;
|
|
791
829
|
}
|
|
792
830
|
function Nt(e) {
|
|
793
|
-
return e.type ===
|
|
831
|
+
return e.type === T.select;
|
|
794
832
|
}
|
|
795
833
|
function Lt(e) {
|
|
796
|
-
return e.type ===
|
|
834
|
+
return e.type === T.plural;
|
|
797
835
|
}
|
|
798
|
-
function
|
|
799
|
-
return e.type ===
|
|
836
|
+
function Jr(e) {
|
|
837
|
+
return e.type === T.pound;
|
|
800
838
|
}
|
|
801
839
|
function Mt(e) {
|
|
802
|
-
return e.type ===
|
|
840
|
+
return e.type === T.tag;
|
|
803
841
|
}
|
|
804
842
|
function $t(e) {
|
|
805
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
843
|
+
return !!(e && typeof e == "object" && e.type === V.number);
|
|
806
844
|
}
|
|
807
|
-
function
|
|
808
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
845
|
+
function Re(e) {
|
|
846
|
+
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
809
847
|
}
|
|
810
|
-
var Rt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
811
|
-
function
|
|
848
|
+
var Rt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, qr = /(?:[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;
|
|
849
|
+
function Qr(e) {
|
|
812
850
|
var t = {};
|
|
813
|
-
return e.replace(
|
|
851
|
+
return e.replace(qr, function(r) {
|
|
814
852
|
var n = r.length;
|
|
815
853
|
switch (r[0]) {
|
|
816
854
|
case "G":
|
|
@@ -899,39 +937,29 @@ function Yr(e) {
|
|
|
899
937
|
return "";
|
|
900
938
|
}), t;
|
|
901
939
|
}
|
|
902
|
-
var
|
|
903
|
-
|
|
904
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
905
|
-
r = arguments[n];
|
|
906
|
-
for (var s in r)
|
|
907
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
908
|
-
}
|
|
909
|
-
return t;
|
|
910
|
-
}, T.apply(this, arguments);
|
|
911
|
-
};
|
|
912
|
-
var Kr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
913
|
-
function en(e) {
|
|
940
|
+
var Yr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
941
|
+
function Kr(e) {
|
|
914
942
|
if (e.length === 0)
|
|
915
943
|
throw new Error("Number skeleton cannot be empty");
|
|
916
|
-
for (var t = e.split(
|
|
944
|
+
for (var t = e.split(Yr).filter(function(c) {
|
|
917
945
|
return c.length > 0;
|
|
918
946
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
919
|
-
var
|
|
920
|
-
if (
|
|
947
|
+
var a = i[n], s = a.split("/");
|
|
948
|
+
if (s.length === 0)
|
|
921
949
|
throw new Error("Invalid number skeleton");
|
|
922
|
-
for (var
|
|
950
|
+
for (var o = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
923
951
|
var f = l[u];
|
|
924
952
|
if (f.length === 0)
|
|
925
953
|
throw new Error("Invalid number skeleton");
|
|
926
954
|
}
|
|
927
|
-
r.push({ stem:
|
|
955
|
+
r.push({ stem: o, options: h });
|
|
928
956
|
}
|
|
929
957
|
return r;
|
|
930
958
|
}
|
|
931
|
-
function
|
|
959
|
+
function en(e) {
|
|
932
960
|
return e.replace(/^(.*?)-/, "");
|
|
933
961
|
}
|
|
934
|
-
var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Dt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
962
|
+
var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Dt = /^(@+)?(\+|#+)?[rs]?$/g, tn = /(\*)(0+)|(#+)(0+)|(0+)/g, Ut = /^(0+)$/;
|
|
935
963
|
function nt(e) {
|
|
936
964
|
var t = {};
|
|
937
965
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Dt, function(r, n, i) {
|
|
@@ -978,7 +1006,7 @@ function Gt(e) {
|
|
|
978
1006
|
};
|
|
979
1007
|
}
|
|
980
1008
|
}
|
|
981
|
-
function
|
|
1009
|
+
function rn(e) {
|
|
982
1010
|
var t;
|
|
983
1011
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
984
1012
|
notation: "engineering"
|
|
@@ -996,7 +1024,7 @@ function it(e) {
|
|
|
996
1024
|
var t = {}, r = Gt(e);
|
|
997
1025
|
return r || t;
|
|
998
1026
|
}
|
|
999
|
-
function
|
|
1027
|
+
function nn(e) {
|
|
1000
1028
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1001
1029
|
var i = n[r];
|
|
1002
1030
|
switch (i.stem) {
|
|
@@ -1020,7 +1048,7 @@ function sn(e) {
|
|
|
1020
1048
|
continue;
|
|
1021
1049
|
case "measure-unit":
|
|
1022
1050
|
case "unit":
|
|
1023
|
-
t.style = "unit", t.unit =
|
|
1051
|
+
t.style = "unit", t.unit = en(i.options[0]);
|
|
1024
1052
|
continue;
|
|
1025
1053
|
case "compact-short":
|
|
1026
1054
|
case "K":
|
|
@@ -1031,13 +1059,13 @@ function sn(e) {
|
|
|
1031
1059
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1032
1060
|
continue;
|
|
1033
1061
|
case "scientific":
|
|
1034
|
-
t =
|
|
1035
|
-
return
|
|
1062
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1063
|
+
return _(_({}, h), it(u));
|
|
1036
1064
|
}, {}));
|
|
1037
1065
|
continue;
|
|
1038
1066
|
case "engineering":
|
|
1039
|
-
t =
|
|
1040
|
-
return
|
|
1067
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1068
|
+
return _(_({}, h), it(u));
|
|
1041
1069
|
}, {}));
|
|
1042
1070
|
continue;
|
|
1043
1071
|
case "notation-simple":
|
|
@@ -1082,7 +1110,7 @@ function sn(e) {
|
|
|
1082
1110
|
case "integer-width":
|
|
1083
1111
|
if (i.options.length > 1)
|
|
1084
1112
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1085
|
-
i.options[0].replace(
|
|
1113
|
+
i.options[0].replace(tn, function(h, u, l, f, c, y) {
|
|
1086
1114
|
if (u)
|
|
1087
1115
|
t.minimumIntegerDigits = l.length;
|
|
1088
1116
|
else {
|
|
@@ -1105,22 +1133,22 @@ function sn(e) {
|
|
|
1105
1133
|
i.stem.replace(rt, function(h, u, l, f, c, y) {
|
|
1106
1134
|
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && y ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1107
1135
|
});
|
|
1108
|
-
var
|
|
1109
|
-
|
|
1136
|
+
var a = i.options[0];
|
|
1137
|
+
a === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = _(_({}, t), nt(a)));
|
|
1110
1138
|
continue;
|
|
1111
1139
|
}
|
|
1112
1140
|
if (Dt.test(i.stem)) {
|
|
1113
|
-
t =
|
|
1141
|
+
t = _(_({}, t), nt(i.stem));
|
|
1114
1142
|
continue;
|
|
1115
1143
|
}
|
|
1116
|
-
var
|
|
1117
|
-
|
|
1118
|
-
var
|
|
1119
|
-
|
|
1144
|
+
var s = Gt(i.stem);
|
|
1145
|
+
s && (t = _(_({}, t), s));
|
|
1146
|
+
var o = rn(i.stem);
|
|
1147
|
+
o && (t = _(_({}, t), o));
|
|
1120
1148
|
}
|
|
1121
1149
|
return t;
|
|
1122
1150
|
}
|
|
1123
|
-
var
|
|
1151
|
+
var le = {
|
|
1124
1152
|
"001": [
|
|
1125
1153
|
"H",
|
|
1126
1154
|
"h"
|
|
@@ -2535,23 +2563,23 @@ var he = {
|
|
|
2535
2563
|
"h"
|
|
2536
2564
|
]
|
|
2537
2565
|
};
|
|
2538
|
-
function
|
|
2566
|
+
function an(e, t) {
|
|
2539
2567
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2540
2568
|
var i = e.charAt(n);
|
|
2541
2569
|
if (i === "j") {
|
|
2542
|
-
for (var
|
|
2543
|
-
|
|
2544
|
-
var
|
|
2545
|
-
for ((u == "H" || u == "k") && (
|
|
2570
|
+
for (var a = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2571
|
+
a++, n++;
|
|
2572
|
+
var s = 1 + (a & 1), o = a < 2 ? 1 : 3 + (a >> 1), h = "a", u = sn(t);
|
|
2573
|
+
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2546
2574
|
r += h;
|
|
2547
|
-
for (;
|
|
2575
|
+
for (; s-- > 0; )
|
|
2548
2576
|
r = u + r;
|
|
2549
2577
|
} else
|
|
2550
2578
|
i === "J" ? r += "H" : r += i;
|
|
2551
2579
|
}
|
|
2552
2580
|
return r;
|
|
2553
2581
|
}
|
|
2554
|
-
function
|
|
2582
|
+
function sn(e) {
|
|
2555
2583
|
var t = e.hourCycle;
|
|
2556
2584
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2557
2585
|
e.hourCycles && // @ts-ignore
|
|
@@ -2570,23 +2598,23 @@ function an(e) {
|
|
|
2570
2598
|
}
|
|
2571
2599
|
var r = e.language, n;
|
|
2572
2600
|
r !== "root" && (n = e.maximize().region);
|
|
2573
|
-
var i =
|
|
2601
|
+
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
2574
2602
|
return i[0];
|
|
2575
2603
|
}
|
|
2576
|
-
var
|
|
2604
|
+
var Oe, on = new RegExp("^".concat(Rt.source, "*")), un = new RegExp("".concat(Rt.source, "*$"));
|
|
2577
2605
|
function g(e, t) {
|
|
2578
2606
|
return { start: e, end: t };
|
|
2579
2607
|
}
|
|
2580
|
-
var
|
|
2608
|
+
var ln = !!String.prototype.startsWith && "_a".startsWith("a", 1), hn = !!String.fromCodePoint, cn = !!Object.fromEntries, fn = !!String.prototype.codePointAt, mn = !!String.prototype.trimStart, dn = !!String.prototype.trimEnd, bn = !!Number.isSafeInteger, pn = bn ? Number.isSafeInteger : function(e) {
|
|
2581
2609
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2582
|
-
},
|
|
2610
|
+
}, De = !0;
|
|
2583
2611
|
try {
|
|
2584
|
-
var
|
|
2585
|
-
|
|
2612
|
+
var gn = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2613
|
+
De = ((Oe = gn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2586
2614
|
} catch {
|
|
2587
|
-
|
|
2615
|
+
De = !1;
|
|
2588
2616
|
}
|
|
2589
|
-
var
|
|
2617
|
+
var at = ln ? (
|
|
2590
2618
|
// Native
|
|
2591
2619
|
function(t, r, n) {
|
|
2592
2620
|
return t.startsWith(r, n);
|
|
@@ -2596,31 +2624,31 @@ var st = hn ? (
|
|
|
2596
2624
|
function(t, r, n) {
|
|
2597
2625
|
return t.slice(n, n + r.length) === r;
|
|
2598
2626
|
}
|
|
2599
|
-
),
|
|
2627
|
+
), Ue = hn ? String.fromCodePoint : (
|
|
2600
2628
|
// IE11
|
|
2601
2629
|
function() {
|
|
2602
2630
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2603
2631
|
t[r] = arguments[r];
|
|
2604
|
-
for (var n = "", i = t.length,
|
|
2605
|
-
if (
|
|
2606
|
-
throw RangeError(
|
|
2607
|
-
n +=
|
|
2632
|
+
for (var n = "", i = t.length, a = 0, s; i > a; ) {
|
|
2633
|
+
if (s = t[a++], s > 1114111)
|
|
2634
|
+
throw RangeError(s + " is not a valid code point");
|
|
2635
|
+
n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
|
2608
2636
|
}
|
|
2609
2637
|
return n;
|
|
2610
2638
|
}
|
|
2611
|
-
),
|
|
2639
|
+
), st = (
|
|
2612
2640
|
// native
|
|
2613
|
-
|
|
2641
|
+
cn ? Object.fromEntries : (
|
|
2614
2642
|
// Ponyfill
|
|
2615
2643
|
function(t) {
|
|
2616
2644
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2617
|
-
var
|
|
2618
|
-
r[
|
|
2645
|
+
var a = i[n], s = a[0], o = a[1];
|
|
2646
|
+
r[s] = o;
|
|
2619
2647
|
}
|
|
2620
2648
|
return r;
|
|
2621
2649
|
}
|
|
2622
2650
|
)
|
|
2623
|
-
), kt =
|
|
2651
|
+
), kt = fn ? (
|
|
2624
2652
|
// Native
|
|
2625
2653
|
function(t, r) {
|
|
2626
2654
|
return t.codePointAt(r);
|
|
@@ -2630,11 +2658,11 @@ var st = hn ? (
|
|
|
2630
2658
|
function(t, r) {
|
|
2631
2659
|
var n = t.length;
|
|
2632
2660
|
if (!(r < 0 || r >= n)) {
|
|
2633
|
-
var i = t.charCodeAt(r),
|
|
2634
|
-
return i < 55296 || i > 56319 || r + 1 === n || (
|
|
2661
|
+
var i = t.charCodeAt(r), a;
|
|
2662
|
+
return i < 55296 || i > 56319 || r + 1 === n || (a = t.charCodeAt(r + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
|
|
2635
2663
|
}
|
|
2636
2664
|
}
|
|
2637
|
-
),
|
|
2665
|
+
), yn = mn ? (
|
|
2638
2666
|
// Native
|
|
2639
2667
|
function(t) {
|
|
2640
2668
|
return t.trimStart();
|
|
@@ -2642,9 +2670,9 @@ var st = hn ? (
|
|
|
2642
2670
|
) : (
|
|
2643
2671
|
// Ponyfill
|
|
2644
2672
|
function(t) {
|
|
2645
|
-
return t.replace(
|
|
2673
|
+
return t.replace(on, "");
|
|
2646
2674
|
}
|
|
2647
|
-
),
|
|
2675
|
+
), _n = dn ? (
|
|
2648
2676
|
// Native
|
|
2649
2677
|
function(t) {
|
|
2650
2678
|
return t.trimEnd();
|
|
@@ -2652,32 +2680,32 @@ var st = hn ? (
|
|
|
2652
2680
|
) : (
|
|
2653
2681
|
// Ponyfill
|
|
2654
2682
|
function(t) {
|
|
2655
|
-
return t.replace(
|
|
2683
|
+
return t.replace(un, "");
|
|
2656
2684
|
}
|
|
2657
2685
|
);
|
|
2658
2686
|
function Ft(e, t) {
|
|
2659
2687
|
return new RegExp(e, t);
|
|
2660
2688
|
}
|
|
2661
|
-
var
|
|
2662
|
-
if (
|
|
2663
|
-
var
|
|
2664
|
-
|
|
2689
|
+
var Ge;
|
|
2690
|
+
if (De) {
|
|
2691
|
+
var ot = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2692
|
+
Ge = function(t, r) {
|
|
2665
2693
|
var n;
|
|
2666
|
-
|
|
2667
|
-
var i =
|
|
2694
|
+
ot.lastIndex = r;
|
|
2695
|
+
var i = ot.exec(t);
|
|
2668
2696
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2669
2697
|
};
|
|
2670
2698
|
} else
|
|
2671
|
-
|
|
2699
|
+
Ge = function(t, r) {
|
|
2672
2700
|
for (var n = []; ; ) {
|
|
2673
2701
|
var i = kt(t, r);
|
|
2674
|
-
if (i === void 0 || jt(i) ||
|
|
2702
|
+
if (i === void 0 || jt(i) || Tn(i))
|
|
2675
2703
|
break;
|
|
2676
2704
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2677
2705
|
}
|
|
2678
|
-
return
|
|
2706
|
+
return Ue.apply(void 0, n);
|
|
2679
2707
|
};
|
|
2680
|
-
var
|
|
2708
|
+
var En = (
|
|
2681
2709
|
/** @class */
|
|
2682
2710
|
function() {
|
|
2683
2711
|
function e(t, r) {
|
|
@@ -2689,35 +2717,35 @@ var vn = (
|
|
|
2689
2717
|
return this.parseMessage(0, "", !1);
|
|
2690
2718
|
}, e.prototype.parseMessage = function(t, r, n) {
|
|
2691
2719
|
for (var i = []; !this.isEOF(); ) {
|
|
2692
|
-
var
|
|
2693
|
-
if (
|
|
2694
|
-
var
|
|
2695
|
-
if (
|
|
2696
|
-
return
|
|
2697
|
-
i.push(
|
|
2720
|
+
var a = this.char();
|
|
2721
|
+
if (a === 123) {
|
|
2722
|
+
var s = this.parseArgument(t, n);
|
|
2723
|
+
if (s.err)
|
|
2724
|
+
return s;
|
|
2725
|
+
i.push(s.val);
|
|
2698
2726
|
} else {
|
|
2699
|
-
if (
|
|
2727
|
+
if (a === 125 && t > 0)
|
|
2700
2728
|
break;
|
|
2701
|
-
if (
|
|
2702
|
-
var
|
|
2729
|
+
if (a === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2730
|
+
var o = this.clonePosition();
|
|
2703
2731
|
this.bump(), i.push({
|
|
2704
|
-
type:
|
|
2705
|
-
location: g(
|
|
2732
|
+
type: T.pound,
|
|
2733
|
+
location: g(o, this.clonePosition())
|
|
2706
2734
|
});
|
|
2707
|
-
} else if (
|
|
2735
|
+
} else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2708
2736
|
if (n)
|
|
2709
2737
|
break;
|
|
2710
|
-
return this.error(
|
|
2711
|
-
} else if (
|
|
2712
|
-
var
|
|
2713
|
-
if (
|
|
2714
|
-
return
|
|
2715
|
-
i.push(
|
|
2738
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
2739
|
+
} else if (a === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
|
|
2740
|
+
var s = this.parseTag(t, r);
|
|
2741
|
+
if (s.err)
|
|
2742
|
+
return s;
|
|
2743
|
+
i.push(s.val);
|
|
2716
2744
|
} else {
|
|
2717
|
-
var
|
|
2718
|
-
if (
|
|
2719
|
-
return
|
|
2720
|
-
i.push(
|
|
2745
|
+
var s = this.parseLiteral(t, r);
|
|
2746
|
+
if (s.err)
|
|
2747
|
+
return s;
|
|
2748
|
+
i.push(s.val);
|
|
2721
2749
|
}
|
|
2722
2750
|
}
|
|
2723
2751
|
}
|
|
@@ -2729,66 +2757,66 @@ var vn = (
|
|
|
2729
2757
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2730
2758
|
return {
|
|
2731
2759
|
val: {
|
|
2732
|
-
type:
|
|
2760
|
+
type: T.literal,
|
|
2733
2761
|
value: "<".concat(i, "/>"),
|
|
2734
2762
|
location: g(n, this.clonePosition())
|
|
2735
2763
|
},
|
|
2736
2764
|
err: null
|
|
2737
2765
|
};
|
|
2738
2766
|
if (this.bumpIf(">")) {
|
|
2739
|
-
var
|
|
2740
|
-
if (
|
|
2741
|
-
return
|
|
2742
|
-
var
|
|
2767
|
+
var a = this.parseMessage(t + 1, r, !0);
|
|
2768
|
+
if (a.err)
|
|
2769
|
+
return a;
|
|
2770
|
+
var s = a.val, o = this.clonePosition();
|
|
2743
2771
|
if (this.bumpIf("</")) {
|
|
2744
|
-
if (this.isEOF() || !
|
|
2745
|
-
return this.error(
|
|
2772
|
+
if (this.isEOF() || !ke(this.char()))
|
|
2773
|
+
return this.error(p.INVALID_TAG, g(o, this.clonePosition()));
|
|
2746
2774
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2747
|
-
return i !== u ? this.error(
|
|
2775
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2748
2776
|
val: {
|
|
2749
|
-
type:
|
|
2777
|
+
type: T.tag,
|
|
2750
2778
|
value: i,
|
|
2751
|
-
children:
|
|
2779
|
+
children: s,
|
|
2752
2780
|
location: g(n, this.clonePosition())
|
|
2753
2781
|
},
|
|
2754
2782
|
err: null
|
|
2755
|
-
} : this.error(
|
|
2783
|
+
} : this.error(p.INVALID_TAG, g(o, this.clonePosition())));
|
|
2756
2784
|
} else
|
|
2757
|
-
return this.error(
|
|
2785
|
+
return this.error(p.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
2758
2786
|
} else
|
|
2759
|
-
return this.error(
|
|
2787
|
+
return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
|
|
2760
2788
|
}, e.prototype.parseTagName = function() {
|
|
2761
2789
|
var t = this.offset();
|
|
2762
|
-
for (this.bump(); !this.isEOF() &&
|
|
2790
|
+
for (this.bump(); !this.isEOF() && xn(this.char()); )
|
|
2763
2791
|
this.bump();
|
|
2764
2792
|
return this.message.slice(t, this.offset());
|
|
2765
2793
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
2766
2794
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
2767
|
-
var
|
|
2795
|
+
var a = this.tryParseQuote(r);
|
|
2796
|
+
if (a) {
|
|
2797
|
+
i += a;
|
|
2798
|
+
continue;
|
|
2799
|
+
}
|
|
2800
|
+
var s = this.tryParseUnquoted(t, r);
|
|
2768
2801
|
if (s) {
|
|
2769
2802
|
i += s;
|
|
2770
2803
|
continue;
|
|
2771
2804
|
}
|
|
2772
|
-
var o = this.
|
|
2805
|
+
var o = this.tryParseLeftAngleBracket();
|
|
2773
2806
|
if (o) {
|
|
2774
2807
|
i += o;
|
|
2775
2808
|
continue;
|
|
2776
2809
|
}
|
|
2777
|
-
var a = this.tryParseLeftAngleBracket();
|
|
2778
|
-
if (a) {
|
|
2779
|
-
i += a;
|
|
2780
|
-
continue;
|
|
2781
|
-
}
|
|
2782
2810
|
break;
|
|
2783
2811
|
}
|
|
2784
2812
|
var h = g(n, this.clonePosition());
|
|
2785
2813
|
return {
|
|
2786
|
-
val: { type:
|
|
2814
|
+
val: { type: T.literal, value: i, location: h },
|
|
2787
2815
|
err: null
|
|
2788
2816
|
};
|
|
2789
2817
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2790
2818
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2791
|
-
!
|
|
2819
|
+
!vn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2792
2820
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2793
2821
|
if (this.isEOF() || this.char() !== 39)
|
|
2794
2822
|
return null;
|
|
@@ -2822,28 +2850,28 @@ var vn = (
|
|
|
2822
2850
|
r.push(n);
|
|
2823
2851
|
this.bump();
|
|
2824
2852
|
}
|
|
2825
|
-
return
|
|
2853
|
+
return Ue.apply(void 0, r);
|
|
2826
2854
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2827
2855
|
if (this.isEOF())
|
|
2828
2856
|
return null;
|
|
2829
2857
|
var n = this.char();
|
|
2830
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2858
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ue(n));
|
|
2831
2859
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2832
2860
|
var n = this.clonePosition();
|
|
2833
2861
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2834
|
-
return this.error(
|
|
2862
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
2835
2863
|
if (this.char() === 125)
|
|
2836
|
-
return this.bump(), this.error(
|
|
2864
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
2837
2865
|
var i = this.parseIdentifierIfPossible().value;
|
|
2838
2866
|
if (!i)
|
|
2839
|
-
return this.error(
|
|
2867
|
+
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
2840
2868
|
if (this.bumpSpace(), this.isEOF())
|
|
2841
|
-
return this.error(
|
|
2869
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
2842
2870
|
switch (this.char()) {
|
|
2843
2871
|
case 125:
|
|
2844
2872
|
return this.bump(), {
|
|
2845
2873
|
val: {
|
|
2846
|
-
type:
|
|
2874
|
+
type: T.argument,
|
|
2847
2875
|
// value does not include the opening and closing braces.
|
|
2848
2876
|
value: i,
|
|
2849
2877
|
location: g(n, this.clonePosition())
|
|
@@ -2851,20 +2879,20 @@ var vn = (
|
|
|
2851
2879
|
err: null
|
|
2852
2880
|
};
|
|
2853
2881
|
case 44:
|
|
2854
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2882
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2855
2883
|
default:
|
|
2856
|
-
return this.error(
|
|
2884
|
+
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
2857
2885
|
}
|
|
2858
2886
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2859
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2887
|
+
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
2860
2888
|
this.bumpTo(i);
|
|
2861
|
-
var
|
|
2862
|
-
return { value: n, location:
|
|
2889
|
+
var a = this.clonePosition(), s = g(t, a);
|
|
2890
|
+
return { value: n, location: s };
|
|
2863
2891
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2864
|
-
var
|
|
2865
|
-
switch (
|
|
2892
|
+
var a, s = this.clonePosition(), o = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2893
|
+
switch (o) {
|
|
2866
2894
|
case "":
|
|
2867
|
-
return this.error(
|
|
2895
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, g(s, h));
|
|
2868
2896
|
case "number":
|
|
2869
2897
|
case "date":
|
|
2870
2898
|
case "time": {
|
|
@@ -2875,47 +2903,47 @@ var vn = (
|
|
|
2875
2903
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2876
2904
|
if (f.err)
|
|
2877
2905
|
return f;
|
|
2878
|
-
var c =
|
|
2906
|
+
var c = _n(f.val);
|
|
2879
2907
|
if (c.length === 0)
|
|
2880
|
-
return this.error(
|
|
2908
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
2881
2909
|
var y = g(l, this.clonePosition());
|
|
2882
2910
|
u = { style: c, styleLocation: y };
|
|
2883
2911
|
}
|
|
2884
|
-
var
|
|
2885
|
-
if (
|
|
2886
|
-
return
|
|
2887
|
-
var
|
|
2888
|
-
if (u &&
|
|
2889
|
-
var
|
|
2890
|
-
if (
|
|
2891
|
-
var f = this.parseNumberSkeletonFromString(
|
|
2912
|
+
var b = this.tryParseArgumentClose(i);
|
|
2913
|
+
if (b.err)
|
|
2914
|
+
return b;
|
|
2915
|
+
var v = g(i, this.clonePosition());
|
|
2916
|
+
if (u && at(u?.style, "::", 0)) {
|
|
2917
|
+
var E = yn(u.style.slice(2));
|
|
2918
|
+
if (o === "number") {
|
|
2919
|
+
var f = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
2892
2920
|
return f.err ? f : {
|
|
2893
|
-
val: { type:
|
|
2921
|
+
val: { type: T.number, value: n, location: v, style: f.val },
|
|
2894
2922
|
err: null
|
|
2895
2923
|
};
|
|
2896
2924
|
} else {
|
|
2897
|
-
if (
|
|
2898
|
-
return this.error(
|
|
2899
|
-
var m =
|
|
2900
|
-
this.locale && (m =
|
|
2925
|
+
if (E.length === 0)
|
|
2926
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, v);
|
|
2927
|
+
var m = E;
|
|
2928
|
+
this.locale && (m = an(E, this.locale));
|
|
2901
2929
|
var c = {
|
|
2902
|
-
type:
|
|
2930
|
+
type: V.dateTime,
|
|
2903
2931
|
pattern: m,
|
|
2904
2932
|
location: u.styleLocation,
|
|
2905
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2906
|
-
},
|
|
2933
|
+
parsedOptions: this.shouldParseSkeletons ? Qr(m) : {}
|
|
2934
|
+
}, x = o === "date" ? T.date : T.time;
|
|
2907
2935
|
return {
|
|
2908
|
-
val: { type:
|
|
2936
|
+
val: { type: x, value: n, location: v, style: c },
|
|
2909
2937
|
err: null
|
|
2910
2938
|
};
|
|
2911
2939
|
}
|
|
2912
2940
|
}
|
|
2913
2941
|
return {
|
|
2914
2942
|
val: {
|
|
2915
|
-
type:
|
|
2943
|
+
type: o === "number" ? T.number : o === "date" ? T.date : T.time,
|
|
2916
2944
|
value: n,
|
|
2917
|
-
location:
|
|
2918
|
-
style: (
|
|
2945
|
+
location: v,
|
|
2946
|
+
style: (a = u?.style) !== null && a !== void 0 ? a : null
|
|
2919
2947
|
},
|
|
2920
2948
|
err: null
|
|
2921
2949
|
};
|
|
@@ -2925,50 +2953,50 @@ var vn = (
|
|
|
2925
2953
|
case "select": {
|
|
2926
2954
|
var d = this.clonePosition();
|
|
2927
2955
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2928
|
-
return this.error(
|
|
2956
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, g(d, _({}, d)));
|
|
2929
2957
|
this.bumpSpace();
|
|
2930
2958
|
var w = this.parseIdentifierIfPossible(), S = 0;
|
|
2931
|
-
if (
|
|
2959
|
+
if (o !== "select" && w.value === "offset") {
|
|
2932
2960
|
if (!this.bumpIf(":"))
|
|
2933
|
-
return this.error(
|
|
2961
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
2934
2962
|
this.bumpSpace();
|
|
2935
|
-
var f = this.tryParseDecimalInteger(
|
|
2963
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2936
2964
|
if (f.err)
|
|
2937
2965
|
return f;
|
|
2938
2966
|
this.bumpSpace(), w = this.parseIdentifierIfPossible(), S = f.val;
|
|
2939
2967
|
}
|
|
2940
|
-
var
|
|
2941
|
-
if (
|
|
2942
|
-
return
|
|
2943
|
-
var
|
|
2944
|
-
if (
|
|
2945
|
-
return
|
|
2968
|
+
var se = this.tryParsePluralOrSelectOptions(t, o, r, w);
|
|
2969
|
+
if (se.err)
|
|
2970
|
+
return se;
|
|
2971
|
+
var b = this.tryParseArgumentClose(i);
|
|
2972
|
+
if (b.err)
|
|
2973
|
+
return b;
|
|
2946
2974
|
var qe = g(i, this.clonePosition());
|
|
2947
|
-
return
|
|
2975
|
+
return o === "select" ? {
|
|
2948
2976
|
val: {
|
|
2949
|
-
type:
|
|
2977
|
+
type: T.select,
|
|
2950
2978
|
value: n,
|
|
2951
|
-
options:
|
|
2979
|
+
options: st(se.val),
|
|
2952
2980
|
location: qe
|
|
2953
2981
|
},
|
|
2954
2982
|
err: null
|
|
2955
2983
|
} : {
|
|
2956
2984
|
val: {
|
|
2957
|
-
type:
|
|
2985
|
+
type: T.plural,
|
|
2958
2986
|
value: n,
|
|
2959
|
-
options:
|
|
2987
|
+
options: st(se.val),
|
|
2960
2988
|
offset: S,
|
|
2961
|
-
pluralType:
|
|
2989
|
+
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2962
2990
|
location: qe
|
|
2963
2991
|
},
|
|
2964
2992
|
err: null
|
|
2965
2993
|
};
|
|
2966
2994
|
}
|
|
2967
2995
|
default:
|
|
2968
|
-
return this.error(
|
|
2996
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, g(s, h));
|
|
2969
2997
|
}
|
|
2970
2998
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2971
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2999
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2972
3000
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2973
3001
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2974
3002
|
var n = this.char();
|
|
@@ -2977,7 +3005,7 @@ var vn = (
|
|
|
2977
3005
|
this.bump();
|
|
2978
3006
|
var i = this.clonePosition();
|
|
2979
3007
|
if (!this.bumpUntil("'"))
|
|
2980
|
-
return this.error(
|
|
3008
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
2981
3009
|
this.bump();
|
|
2982
3010
|
break;
|
|
2983
3011
|
}
|
|
@@ -3007,25 +3035,25 @@ var vn = (
|
|
|
3007
3035
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3008
3036
|
var n = [];
|
|
3009
3037
|
try {
|
|
3010
|
-
n =
|
|
3038
|
+
n = Kr(t);
|
|
3011
3039
|
} catch {
|
|
3012
|
-
return this.error(
|
|
3040
|
+
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3013
3041
|
}
|
|
3014
3042
|
return {
|
|
3015
3043
|
val: {
|
|
3016
|
-
type:
|
|
3044
|
+
type: V.number,
|
|
3017
3045
|
tokens: n,
|
|
3018
3046
|
location: r,
|
|
3019
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3047
|
+
parsedOptions: this.shouldParseSkeletons ? nn(n) : {}
|
|
3020
3048
|
},
|
|
3021
3049
|
err: null
|
|
3022
3050
|
};
|
|
3023
3051
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3024
|
-
for (var
|
|
3052
|
+
for (var a, s = !1, o = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3025
3053
|
if (u.length === 0) {
|
|
3026
3054
|
var f = this.clonePosition();
|
|
3027
3055
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3028
|
-
var c = this.tryParseDecimalInteger(
|
|
3056
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3029
3057
|
if (c.err)
|
|
3030
3058
|
return c;
|
|
3031
3059
|
l = g(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
@@ -3033,38 +3061,38 @@ var vn = (
|
|
|
3033
3061
|
break;
|
|
3034
3062
|
}
|
|
3035
3063
|
if (h.has(u))
|
|
3036
|
-
return this.error(r === "select" ?
|
|
3037
|
-
u === "other" && (
|
|
3064
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3065
|
+
u === "other" && (s = !0), this.bumpSpace();
|
|
3038
3066
|
var y = this.clonePosition();
|
|
3039
3067
|
if (!this.bumpIf("{"))
|
|
3040
|
-
return this.error(r === "select" ?
|
|
3041
|
-
var
|
|
3042
|
-
if (
|
|
3043
|
-
return
|
|
3044
|
-
var
|
|
3045
|
-
if (
|
|
3046
|
-
return
|
|
3047
|
-
|
|
3068
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3069
|
+
var b = this.parseMessage(t + 1, r, n);
|
|
3070
|
+
if (b.err)
|
|
3071
|
+
return b;
|
|
3072
|
+
var v = this.tryParseArgumentClose(y);
|
|
3073
|
+
if (v.err)
|
|
3074
|
+
return v;
|
|
3075
|
+
o.push([
|
|
3048
3076
|
u,
|
|
3049
3077
|
{
|
|
3050
|
-
value:
|
|
3078
|
+
value: b.val,
|
|
3051
3079
|
location: g(y, this.clonePosition())
|
|
3052
3080
|
}
|
|
3053
|
-
]), h.add(u), this.bumpSpace(),
|
|
3081
|
+
]), h.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, l = a.location;
|
|
3054
3082
|
}
|
|
3055
|
-
return
|
|
3083
|
+
return o.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3056
3084
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3057
3085
|
var n = 1, i = this.clonePosition();
|
|
3058
3086
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3059
|
-
for (var
|
|
3060
|
-
var
|
|
3061
|
-
if (
|
|
3062
|
-
|
|
3087
|
+
for (var a = !1, s = 0; !this.isEOF(); ) {
|
|
3088
|
+
var o = this.char();
|
|
3089
|
+
if (o >= 48 && o <= 57)
|
|
3090
|
+
a = !0, s = s * 10 + (o - 48), this.bump();
|
|
3063
3091
|
else
|
|
3064
3092
|
break;
|
|
3065
3093
|
}
|
|
3066
3094
|
var h = g(i, this.clonePosition());
|
|
3067
|
-
return
|
|
3095
|
+
return a ? (s *= n, pn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3068
3096
|
}, e.prototype.offset = function() {
|
|
3069
3097
|
return this.position.offset;
|
|
3070
3098
|
}, e.prototype.isEOF = function() {
|
|
@@ -3098,7 +3126,7 @@ var vn = (
|
|
|
3098
3126
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3099
3127
|
}
|
|
3100
3128
|
}, e.prototype.bumpIf = function(t) {
|
|
3101
|
-
if (
|
|
3129
|
+
if (at(this.message, t, this.offset())) {
|
|
3102
3130
|
for (var r = 0; r < t.length; r++)
|
|
3103
3131
|
this.bump();
|
|
3104
3132
|
return !0;
|
|
@@ -3130,50 +3158,50 @@ var vn = (
|
|
|
3130
3158
|
}, e;
|
|
3131
3159
|
}()
|
|
3132
3160
|
);
|
|
3133
|
-
function
|
|
3161
|
+
function ke(e) {
|
|
3134
3162
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3135
3163
|
}
|
|
3136
|
-
function
|
|
3137
|
-
return
|
|
3164
|
+
function vn(e) {
|
|
3165
|
+
return ke(e) || e === 47;
|
|
3138
3166
|
}
|
|
3139
|
-
function
|
|
3167
|
+
function xn(e) {
|
|
3140
3168
|
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;
|
|
3141
3169
|
}
|
|
3142
3170
|
function jt(e) {
|
|
3143
3171
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3144
3172
|
}
|
|
3145
|
-
function
|
|
3173
|
+
function Tn(e) {
|
|
3146
3174
|
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;
|
|
3147
3175
|
}
|
|
3148
|
-
function
|
|
3176
|
+
function Fe(e) {
|
|
3149
3177
|
e.forEach(function(t) {
|
|
3150
3178
|
if (delete t.location, Nt(t) || Lt(t))
|
|
3151
3179
|
for (var r in t.options)
|
|
3152
|
-
delete t.options[r].location,
|
|
3180
|
+
delete t.options[r].location, Fe(t.options[r].value);
|
|
3153
3181
|
else
|
|
3154
|
-
Ot(t) && $t(t.style) || (It(t) || Ct(t)) &&
|
|
3182
|
+
Ot(t) && $t(t.style) || (It(t) || Ct(t)) && Re(t.style) ? delete t.style.location : Mt(t) && Fe(t.children);
|
|
3155
3183
|
});
|
|
3156
3184
|
}
|
|
3157
|
-
function
|
|
3158
|
-
t === void 0 && (t = {}), t =
|
|
3159
|
-
var r = new
|
|
3185
|
+
function Hn(e, t) {
|
|
3186
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3187
|
+
var r = new En(e, t).parse();
|
|
3160
3188
|
if (r.err) {
|
|
3161
|
-
var n = SyntaxError(
|
|
3189
|
+
var n = SyntaxError(p[r.err.kind]);
|
|
3162
3190
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3163
3191
|
}
|
|
3164
|
-
return t?.captureLocation ||
|
|
3192
|
+
return t?.captureLocation || Fe(r.val), r.val;
|
|
3165
3193
|
}
|
|
3166
|
-
var
|
|
3194
|
+
var X;
|
|
3167
3195
|
(function(e) {
|
|
3168
3196
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3169
|
-
})(
|
|
3170
|
-
var
|
|
3197
|
+
})(X || (X = {}));
|
|
3198
|
+
var Te = (
|
|
3171
3199
|
/** @class */
|
|
3172
3200
|
function(e) {
|
|
3173
|
-
|
|
3201
|
+
xe(t, e);
|
|
3174
3202
|
function t(r, n, i) {
|
|
3175
|
-
var
|
|
3176
|
-
return
|
|
3203
|
+
var a = e.call(this, r) || this;
|
|
3204
|
+
return a.code = n, a.originalMessage = i, a;
|
|
3177
3205
|
}
|
|
3178
3206
|
return t.prototype.toString = function() {
|
|
3179
3207
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
@@ -3182,44 +3210,44 @@ var we = (
|
|
|
3182
3210
|
), ut = (
|
|
3183
3211
|
/** @class */
|
|
3184
3212
|
function(e) {
|
|
3185
|
-
|
|
3186
|
-
function t(r, n, i,
|
|
3187
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3213
|
+
xe(t, e);
|
|
3214
|
+
function t(r, n, i, a) {
|
|
3215
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, a) || this;
|
|
3188
3216
|
}
|
|
3189
3217
|
return t;
|
|
3190
|
-
}(
|
|
3191
|
-
),
|
|
3218
|
+
}(Te)
|
|
3219
|
+
), wn = (
|
|
3192
3220
|
/** @class */
|
|
3193
3221
|
function(e) {
|
|
3194
|
-
|
|
3222
|
+
xe(t, e);
|
|
3195
3223
|
function t(r, n, i) {
|
|
3196
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3224
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
|
|
3197
3225
|
}
|
|
3198
3226
|
return t;
|
|
3199
|
-
}(
|
|
3200
|
-
),
|
|
3227
|
+
}(Te)
|
|
3228
|
+
), Sn = (
|
|
3201
3229
|
/** @class */
|
|
3202
3230
|
function(e) {
|
|
3203
|
-
|
|
3231
|
+
xe(t, e);
|
|
3204
3232
|
function t(r, n) {
|
|
3205
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3233
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
|
|
3206
3234
|
}
|
|
3207
3235
|
return t;
|
|
3208
|
-
}(
|
|
3236
|
+
}(Te)
|
|
3209
3237
|
), H;
|
|
3210
3238
|
(function(e) {
|
|
3211
3239
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3212
3240
|
})(H || (H = {}));
|
|
3213
|
-
function
|
|
3241
|
+
function Bn(e) {
|
|
3214
3242
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3215
3243
|
var n = t[t.length - 1];
|
|
3216
3244
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3217
3245
|
}, []);
|
|
3218
3246
|
}
|
|
3219
|
-
function
|
|
3247
|
+
function An(e) {
|
|
3220
3248
|
return typeof e == "function";
|
|
3221
3249
|
}
|
|
3222
|
-
function
|
|
3250
|
+
function pe(e, t, r, n, i, a, s) {
|
|
3223
3251
|
if (e.length === 1 && tt(e[0]))
|
|
3224
3252
|
return [
|
|
3225
3253
|
{
|
|
@@ -3227,44 +3255,44 @@ function ge(e, t, r, n, i, s, o) {
|
|
|
3227
3255
|
value: e[0].value
|
|
3228
3256
|
}
|
|
3229
3257
|
];
|
|
3230
|
-
for (var
|
|
3258
|
+
for (var o = [], h = 0, u = e; h < u.length; h++) {
|
|
3231
3259
|
var l = u[h];
|
|
3232
3260
|
if (tt(l)) {
|
|
3233
|
-
|
|
3261
|
+
o.push({
|
|
3234
3262
|
type: H.literal,
|
|
3235
3263
|
value: l.value
|
|
3236
3264
|
});
|
|
3237
3265
|
continue;
|
|
3238
3266
|
}
|
|
3239
|
-
if (
|
|
3240
|
-
typeof
|
|
3267
|
+
if (Jr(l)) {
|
|
3268
|
+
typeof a == "number" && o.push({
|
|
3241
3269
|
type: H.literal,
|
|
3242
|
-
value: r.getNumberFormat(t).format(
|
|
3270
|
+
value: r.getNumberFormat(t).format(a)
|
|
3243
3271
|
});
|
|
3244
3272
|
continue;
|
|
3245
3273
|
}
|
|
3246
3274
|
var f = l.value;
|
|
3247
3275
|
if (!(i && f in i))
|
|
3248
|
-
throw new
|
|
3276
|
+
throw new Sn(f, s);
|
|
3249
3277
|
var c = i[f];
|
|
3250
|
-
if (
|
|
3251
|
-
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""),
|
|
3278
|
+
if (Zr(l)) {
|
|
3279
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3252
3280
|
type: typeof c == "string" ? H.literal : H.object,
|
|
3253
3281
|
value: c
|
|
3254
3282
|
});
|
|
3255
3283
|
continue;
|
|
3256
3284
|
}
|
|
3257
3285
|
if (It(l)) {
|
|
3258
|
-
var y = typeof l.style == "string" ? n.date[l.style] :
|
|
3259
|
-
|
|
3286
|
+
var y = typeof l.style == "string" ? n.date[l.style] : Re(l.style) ? l.style.parsedOptions : void 0;
|
|
3287
|
+
o.push({
|
|
3260
3288
|
type: H.literal,
|
|
3261
3289
|
value: r.getDateTimeFormat(t, y).format(c)
|
|
3262
3290
|
});
|
|
3263
3291
|
continue;
|
|
3264
3292
|
}
|
|
3265
3293
|
if (Ct(l)) {
|
|
3266
|
-
var y = typeof l.style == "string" ? n.time[l.style] :
|
|
3267
|
-
|
|
3294
|
+
var y = typeof l.style == "string" ? n.time[l.style] : Re(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3295
|
+
o.push({
|
|
3268
3296
|
type: H.literal,
|
|
3269
3297
|
value: r.getDateTimeFormat(t, y).format(c)
|
|
3270
3298
|
});
|
|
@@ -3272,20 +3300,20 @@ function ge(e, t, r, n, i, s, o) {
|
|
|
3272
3300
|
}
|
|
3273
3301
|
if (Ot(l)) {
|
|
3274
3302
|
var y = typeof l.style == "string" ? n.number[l.style] : $t(l.style) ? l.style.parsedOptions : void 0;
|
|
3275
|
-
y && y.scale && (c = c * (y.scale || 1)),
|
|
3303
|
+
y && y.scale && (c = c * (y.scale || 1)), o.push({
|
|
3276
3304
|
type: H.literal,
|
|
3277
3305
|
value: r.getNumberFormat(t, y).format(c)
|
|
3278
3306
|
});
|
|
3279
3307
|
continue;
|
|
3280
3308
|
}
|
|
3281
3309
|
if (Mt(l)) {
|
|
3282
|
-
var
|
|
3283
|
-
if (!
|
|
3284
|
-
throw new
|
|
3285
|
-
var m =
|
|
3310
|
+
var b = l.children, v = l.value, E = i[v];
|
|
3311
|
+
if (!An(E))
|
|
3312
|
+
throw new wn(v, "function", s);
|
|
3313
|
+
var m = pe(b, t, r, n, i, a), x = E(m.map(function(S) {
|
|
3286
3314
|
return S.value;
|
|
3287
3315
|
}));
|
|
3288
|
-
Array.isArray(
|
|
3316
|
+
Array.isArray(x) || (x = [x]), o.push.apply(o, x.map(function(S) {
|
|
3289
3317
|
return {
|
|
3290
3318
|
type: typeof S == "string" ? H.literal : H.object,
|
|
3291
3319
|
value: S
|
|
@@ -3295,39 +3323,39 @@ function ge(e, t, r, n, i, s, o) {
|
|
|
3295
3323
|
if (Nt(l)) {
|
|
3296
3324
|
var d = l.options[c] || l.options.other;
|
|
3297
3325
|
if (!d)
|
|
3298
|
-
throw new ut(l.value, c, Object.keys(l.options),
|
|
3299
|
-
|
|
3326
|
+
throw new ut(l.value, c, Object.keys(l.options), s);
|
|
3327
|
+
o.push.apply(o, pe(d.value, t, r, n, i));
|
|
3300
3328
|
continue;
|
|
3301
3329
|
}
|
|
3302
3330
|
if (Lt(l)) {
|
|
3303
3331
|
var d = l.options["=".concat(c)];
|
|
3304
3332
|
if (!d) {
|
|
3305
3333
|
if (!Intl.PluralRules)
|
|
3306
|
-
throw new
|
|
3334
|
+
throw new Te(`Intl.PluralRules is not available in this environment.
|
|
3307
3335
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3308
|
-
`,
|
|
3336
|
+
`, X.MISSING_INTL_API, s);
|
|
3309
3337
|
var w = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3310
3338
|
d = l.options[w] || l.options.other;
|
|
3311
3339
|
}
|
|
3312
3340
|
if (!d)
|
|
3313
|
-
throw new ut(l.value, c, Object.keys(l.options),
|
|
3314
|
-
|
|
3341
|
+
throw new ut(l.value, c, Object.keys(l.options), s);
|
|
3342
|
+
o.push.apply(o, pe(d.value, t, r, n, i, c - (l.offset || 0)));
|
|
3315
3343
|
continue;
|
|
3316
3344
|
}
|
|
3317
3345
|
}
|
|
3318
|
-
return
|
|
3346
|
+
return Bn(o);
|
|
3319
3347
|
}
|
|
3320
|
-
function
|
|
3321
|
-
return t ?
|
|
3322
|
-
return r[n] =
|
|
3348
|
+
function Pn(e, t) {
|
|
3349
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3350
|
+
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
|
3323
3351
|
}, {})) : e;
|
|
3324
3352
|
}
|
|
3325
|
-
function
|
|
3353
|
+
function On(e, t) {
|
|
3326
3354
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3327
|
-
return r[n] =
|
|
3328
|
-
},
|
|
3355
|
+
return r[n] = Pn(e[n], t[n]), r;
|
|
3356
|
+
}, _({}, e)) : e;
|
|
3329
3357
|
}
|
|
3330
|
-
function
|
|
3358
|
+
function Ie(e) {
|
|
3331
3359
|
return {
|
|
3332
3360
|
create: function() {
|
|
3333
3361
|
return {
|
|
@@ -3341,35 +3369,35 @@ function Ne(e) {
|
|
|
3341
3369
|
}
|
|
3342
3370
|
};
|
|
3343
3371
|
}
|
|
3344
|
-
function
|
|
3372
|
+
function In(e) {
|
|
3345
3373
|
return e === void 0 && (e = {
|
|
3346
3374
|
number: {},
|
|
3347
3375
|
dateTime: {},
|
|
3348
3376
|
pluralRules: {}
|
|
3349
3377
|
}), {
|
|
3350
|
-
getNumberFormat:
|
|
3378
|
+
getNumberFormat: Ae(function() {
|
|
3351
3379
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3352
3380
|
r[n] = arguments[n];
|
|
3353
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3381
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3354
3382
|
}, {
|
|
3355
|
-
cache:
|
|
3356
|
-
strategy:
|
|
3383
|
+
cache: Ie(e.number),
|
|
3384
|
+
strategy: Pe.variadic
|
|
3357
3385
|
}),
|
|
3358
|
-
getDateTimeFormat:
|
|
3386
|
+
getDateTimeFormat: Ae(function() {
|
|
3359
3387
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3360
3388
|
r[n] = arguments[n];
|
|
3361
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3389
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3362
3390
|
}, {
|
|
3363
|
-
cache:
|
|
3364
|
-
strategy:
|
|
3391
|
+
cache: Ie(e.dateTime),
|
|
3392
|
+
strategy: Pe.variadic
|
|
3365
3393
|
}),
|
|
3366
|
-
getPluralRules:
|
|
3394
|
+
getPluralRules: Ae(function() {
|
|
3367
3395
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3368
3396
|
r[n] = arguments[n];
|
|
3369
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3397
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
|
|
3370
3398
|
}, {
|
|
3371
|
-
cache:
|
|
3372
|
-
strategy:
|
|
3399
|
+
cache: Ie(e.pluralRules),
|
|
3400
|
+
strategy: Pe.variadic
|
|
3373
3401
|
})
|
|
3374
3402
|
};
|
|
3375
3403
|
}
|
|
@@ -3378,13 +3406,13 @@ var zt = (
|
|
|
3378
3406
|
function() {
|
|
3379
3407
|
function e(t, r, n, i) {
|
|
3380
3408
|
r === void 0 && (r = e.defaultLocale);
|
|
3381
|
-
var
|
|
3409
|
+
var a = this;
|
|
3382
3410
|
if (this.formatterCache = {
|
|
3383
3411
|
number: {},
|
|
3384
3412
|
dateTime: {},
|
|
3385
3413
|
pluralRules: {}
|
|
3386
3414
|
}, this.format = function(h) {
|
|
3387
|
-
var u =
|
|
3415
|
+
var u = a.formatToParts(h);
|
|
3388
3416
|
if (u.length === 1)
|
|
3389
3417
|
return u[0].value;
|
|
3390
3418
|
var l = u.reduce(function(f, c) {
|
|
@@ -3392,26 +3420,26 @@ var zt = (
|
|
|
3392
3420
|
}, []);
|
|
3393
3421
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3394
3422
|
}, this.formatToParts = function(h) {
|
|
3395
|
-
return
|
|
3423
|
+
return pe(a.ast, a.locales, a.formatters, a.formats, h, void 0, a.message);
|
|
3396
3424
|
}, this.resolvedOptions = function() {
|
|
3397
3425
|
var h;
|
|
3398
3426
|
return {
|
|
3399
|
-
locale: ((h =
|
|
3427
|
+
locale: ((h = a.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
|
|
3400
3428
|
};
|
|
3401
3429
|
}, this.getAst = function() {
|
|
3402
|
-
return
|
|
3430
|
+
return a.ast;
|
|
3403
3431
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3404
3432
|
if (this.message = t, !e.__parse)
|
|
3405
3433
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3406
|
-
var
|
|
3407
|
-
|
|
3408
|
-
var
|
|
3409
|
-
this.ast = e.__parse(t,
|
|
3434
|
+
var s = i || {};
|
|
3435
|
+
s.formatters;
|
|
3436
|
+
var o = kr(s, ["formatters"]);
|
|
3437
|
+
this.ast = e.__parse(t, _(_({}, o), { locale: this.resolvedLocale }));
|
|
3410
3438
|
} else
|
|
3411
3439
|
this.ast = t;
|
|
3412
3440
|
if (!Array.isArray(this.ast))
|
|
3413
3441
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3414
|
-
this.formats =
|
|
3442
|
+
this.formats = On(e.formats, n), this.formatters = i && i.formatters || In(this.formatterCache);
|
|
3415
3443
|
}
|
|
3416
3444
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3417
3445
|
get: function() {
|
|
@@ -3424,7 +3452,7 @@ var zt = (
|
|
|
3424
3452
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3425
3453
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3426
3454
|
}
|
|
3427
|
-
}, e.__parse =
|
|
3455
|
+
}, e.__parse = Hn, e.formats = {
|
|
3428
3456
|
number: {
|
|
3429
3457
|
integer: {
|
|
3430
3458
|
maximumFractionDigits: 0
|
|
@@ -3485,7 +3513,7 @@ var zt = (
|
|
|
3485
3513
|
}, e;
|
|
3486
3514
|
}()
|
|
3487
3515
|
);
|
|
3488
|
-
function
|
|
3516
|
+
function Cn(e, t) {
|
|
3489
3517
|
if (t == null)
|
|
3490
3518
|
return;
|
|
3491
3519
|
if (t in e)
|
|
@@ -3495,9 +3523,9 @@ function Nn(e, t) {
|
|
|
3495
3523
|
for (let i = 0; i < r.length; i++)
|
|
3496
3524
|
if (typeof n == "object") {
|
|
3497
3525
|
if (i > 0) {
|
|
3498
|
-
const
|
|
3499
|
-
if (
|
|
3500
|
-
n = n[
|
|
3526
|
+
const a = r.slice(i, r.length).join(".");
|
|
3527
|
+
if (a in n) {
|
|
3528
|
+
n = n[a];
|
|
3501
3529
|
break;
|
|
3502
3530
|
}
|
|
3503
3531
|
}
|
|
@@ -3506,36 +3534,36 @@ function Nn(e, t) {
|
|
|
3506
3534
|
n = void 0;
|
|
3507
3535
|
return n;
|
|
3508
3536
|
}
|
|
3509
|
-
const
|
|
3537
|
+
const C = {}, Nn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), Vt = (e, t) => {
|
|
3510
3538
|
if (t == null)
|
|
3511
3539
|
return;
|
|
3512
|
-
if (t in
|
|
3513
|
-
return
|
|
3514
|
-
const r =
|
|
3540
|
+
if (t in C && e in C[t])
|
|
3541
|
+
return C[t][e];
|
|
3542
|
+
const r = ae(t);
|
|
3515
3543
|
for (let n = 0; n < r.length; n++) {
|
|
3516
|
-
const i = r[n],
|
|
3517
|
-
if (
|
|
3518
|
-
return
|
|
3544
|
+
const i = r[n], a = Mn(i, e);
|
|
3545
|
+
if (a)
|
|
3546
|
+
return Nn(e, t, a);
|
|
3519
3547
|
}
|
|
3520
3548
|
};
|
|
3521
3549
|
let Ze;
|
|
3522
|
-
const
|
|
3523
|
-
function
|
|
3550
|
+
const ie = ve({});
|
|
3551
|
+
function Ln(e) {
|
|
3524
3552
|
return Ze[e] || null;
|
|
3525
3553
|
}
|
|
3526
3554
|
function Xt(e) {
|
|
3527
3555
|
return e in Ze;
|
|
3528
3556
|
}
|
|
3529
|
-
function
|
|
3557
|
+
function Mn(e, t) {
|
|
3530
3558
|
if (!Xt(e))
|
|
3531
3559
|
return null;
|
|
3532
|
-
const r =
|
|
3533
|
-
return
|
|
3560
|
+
const r = Ln(e);
|
|
3561
|
+
return Cn(r, t);
|
|
3534
3562
|
}
|
|
3535
|
-
function
|
|
3563
|
+
function $n(e) {
|
|
3536
3564
|
if (e == null)
|
|
3537
3565
|
return;
|
|
3538
|
-
const t =
|
|
3566
|
+
const t = ae(e);
|
|
3539
3567
|
for (let r = 0; r < t.length; r++) {
|
|
3540
3568
|
const n = t[r];
|
|
3541
3569
|
if (Xt(n))
|
|
@@ -3543,64 +3571,64 @@ function Rn(e) {
|
|
|
3543
3571
|
}
|
|
3544
3572
|
}
|
|
3545
3573
|
function Wt(e, ...t) {
|
|
3546
|
-
delete
|
|
3574
|
+
delete C[e], ie.update((r) => (r[e] = Gr.all([r[e] || {}, ...t]), r));
|
|
3547
3575
|
}
|
|
3548
|
-
|
|
3549
|
-
[
|
|
3576
|
+
J(
|
|
3577
|
+
[ie],
|
|
3550
3578
|
([e]) => Object.keys(e)
|
|
3551
3579
|
);
|
|
3552
|
-
|
|
3553
|
-
const
|
|
3554
|
-
function
|
|
3555
|
-
|
|
3580
|
+
ie.subscribe((e) => Ze = e);
|
|
3581
|
+
const ge = {};
|
|
3582
|
+
function Rn(e, t) {
|
|
3583
|
+
ge[e].delete(t), ge[e].size === 0 && delete ge[e];
|
|
3556
3584
|
}
|
|
3557
3585
|
function Zt(e) {
|
|
3558
|
-
return
|
|
3586
|
+
return ge[e];
|
|
3559
3587
|
}
|
|
3560
|
-
function
|
|
3561
|
-
return
|
|
3588
|
+
function Dn(e) {
|
|
3589
|
+
return ae(e).map((t) => {
|
|
3562
3590
|
const r = Zt(t);
|
|
3563
3591
|
return [t, r ? [...r] : []];
|
|
3564
3592
|
}).filter(([, t]) => t.length > 0);
|
|
3565
3593
|
}
|
|
3566
|
-
function
|
|
3567
|
-
return e == null ? !1 :
|
|
3594
|
+
function ye(e) {
|
|
3595
|
+
return e == null ? !1 : ae(e).some(
|
|
3568
3596
|
(t) => {
|
|
3569
3597
|
var r;
|
|
3570
3598
|
return (r = Zt(t)) == null ? void 0 : r.size;
|
|
3571
3599
|
}
|
|
3572
3600
|
);
|
|
3573
3601
|
}
|
|
3574
|
-
function
|
|
3602
|
+
function Un(e, t) {
|
|
3575
3603
|
return Promise.all(
|
|
3576
|
-
t.map((n) => (
|
|
3604
|
+
t.map((n) => (Rn(e, n), n().then((i) => i.default || i)))
|
|
3577
3605
|
).then((n) => Wt(e, ...n));
|
|
3578
3606
|
}
|
|
3579
|
-
const
|
|
3607
|
+
const Q = {};
|
|
3580
3608
|
function Jt(e) {
|
|
3581
|
-
if (!
|
|
3582
|
-
return e in
|
|
3583
|
-
const t =
|
|
3584
|
-
return
|
|
3609
|
+
if (!ye(e))
|
|
3610
|
+
return e in Q ? Q[e] : Promise.resolve();
|
|
3611
|
+
const t = Dn(e);
|
|
3612
|
+
return Q[e] = Promise.all(
|
|
3585
3613
|
t.map(
|
|
3586
|
-
([r, n]) =>
|
|
3614
|
+
([r, n]) => Un(r, n)
|
|
3587
3615
|
)
|
|
3588
3616
|
).then(() => {
|
|
3589
|
-
if (
|
|
3617
|
+
if (ye(e))
|
|
3590
3618
|
return Jt(e);
|
|
3591
|
-
delete
|
|
3592
|
-
}),
|
|
3619
|
+
delete Q[e];
|
|
3620
|
+
}), Q[e];
|
|
3593
3621
|
}
|
|
3594
|
-
var lt = Object.getOwnPropertySymbols,
|
|
3622
|
+
var lt = Object.getOwnPropertySymbols, Gn = Object.prototype.hasOwnProperty, kn = Object.prototype.propertyIsEnumerable, Fn = (e, t) => {
|
|
3595
3623
|
var r = {};
|
|
3596
3624
|
for (var n in e)
|
|
3597
|
-
|
|
3625
|
+
Gn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3598
3626
|
if (e != null && lt)
|
|
3599
3627
|
for (var n of lt(e))
|
|
3600
|
-
t.indexOf(n) < 0 &&
|
|
3628
|
+
t.indexOf(n) < 0 && kn.call(e, n) && (r[n] = e[n]);
|
|
3601
3629
|
return r;
|
|
3602
3630
|
};
|
|
3603
|
-
const
|
|
3631
|
+
const jn = {
|
|
3604
3632
|
number: {
|
|
3605
3633
|
scientific: { notation: "scientific" },
|
|
3606
3634
|
engineering: { notation: "engineering" },
|
|
@@ -3630,28 +3658,28 @@ const zn = {
|
|
|
3630
3658
|
}
|
|
3631
3659
|
}
|
|
3632
3660
|
};
|
|
3633
|
-
function
|
|
3661
|
+
function zn({ locale: e, id: t }) {
|
|
3634
3662
|
console.warn(
|
|
3635
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3663
|
+
`[svelte-i18n] The message "${t}" was not found in "${ae(
|
|
3636
3664
|
e
|
|
3637
|
-
).join('", "')}".${
|
|
3665
|
+
).join('", "')}".${ye(L()) ? `
|
|
3638
3666
|
|
|
3639
3667
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3640
3668
|
);
|
|
3641
3669
|
}
|
|
3642
|
-
const
|
|
3670
|
+
const Vn = {
|
|
3643
3671
|
fallbackLocale: null,
|
|
3644
3672
|
loadingDelay: 200,
|
|
3645
|
-
formats:
|
|
3673
|
+
formats: jn,
|
|
3646
3674
|
warnOnMissingMessages: !0,
|
|
3647
3675
|
handleMissingMessage: void 0,
|
|
3648
3676
|
ignoreTag: !0
|
|
3649
|
-
},
|
|
3650
|
-
function
|
|
3651
|
-
return
|
|
3677
|
+
}, Y = Vn;
|
|
3678
|
+
function W() {
|
|
3679
|
+
return Y;
|
|
3652
3680
|
}
|
|
3653
|
-
function
|
|
3654
|
-
const t = e, { formats: r } = t, n =
|
|
3681
|
+
function Xn(e) {
|
|
3682
|
+
const t = e, { formats: r } = t, n = Fn(t, ["formats"]);
|
|
3655
3683
|
let i = e.fallbackLocale;
|
|
3656
3684
|
if (e.initialLocale)
|
|
3657
3685
|
try {
|
|
@@ -3661,152 +3689,152 @@ function Wn(e) {
|
|
|
3661
3689
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3662
3690
|
);
|
|
3663
3691
|
}
|
|
3664
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3692
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = zn : console.warn(
|
|
3665
3693
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3666
|
-
)), Object.assign(
|
|
3694
|
+
)), Object.assign(Y, n, { initialLocale: i }), r && ("number" in r && Object.assign(Y.formats.number, r.number), "date" in r && Object.assign(Y.formats.date, r.date), "time" in r && Object.assign(Y.formats.time, r.time)), D.set(i);
|
|
3667
3695
|
}
|
|
3668
|
-
const
|
|
3669
|
-
var
|
|
3696
|
+
const Ce = ve(!1);
|
|
3697
|
+
var Wn = Object.defineProperty, Zn = Object.defineProperties, Jn = Object.getOwnPropertyDescriptors, ht = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Yn = (e, t) => {
|
|
3670
3698
|
for (var r in t || (t = {}))
|
|
3671
|
-
|
|
3699
|
+
qn.call(t, r) && ct(e, r, t[r]);
|
|
3672
3700
|
if (ht)
|
|
3673
3701
|
for (var r of ht(t))
|
|
3674
|
-
|
|
3702
|
+
Qn.call(t, r) && ct(e, r, t[r]);
|
|
3675
3703
|
return e;
|
|
3676
|
-
},
|
|
3677
|
-
let
|
|
3678
|
-
const
|
|
3704
|
+
}, Kn = (e, t) => Zn(e, Jn(t));
|
|
3705
|
+
let je;
|
|
3706
|
+
const _e = ve(null);
|
|
3679
3707
|
function ft(e) {
|
|
3680
3708
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3681
3709
|
}
|
|
3682
|
-
function
|
|
3710
|
+
function ae(e, t = W().fallbackLocale) {
|
|
3683
3711
|
const r = ft(e);
|
|
3684
3712
|
return t ? [.../* @__PURE__ */ new Set([...r, ...ft(t)])] : r;
|
|
3685
3713
|
}
|
|
3686
|
-
function
|
|
3687
|
-
return
|
|
3714
|
+
function L() {
|
|
3715
|
+
return je ?? void 0;
|
|
3688
3716
|
}
|
|
3689
|
-
|
|
3690
|
-
|
|
3717
|
+
_e.subscribe((e) => {
|
|
3718
|
+
je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3691
3719
|
});
|
|
3692
|
-
const
|
|
3693
|
-
if (e &&
|
|
3694
|
-
const { loadingDelay: t } =
|
|
3720
|
+
const ei = (e) => {
|
|
3721
|
+
if (e && $n(e) && ye(e)) {
|
|
3722
|
+
const { loadingDelay: t } = W();
|
|
3695
3723
|
let r;
|
|
3696
|
-
return typeof window < "u" &&
|
|
3697
|
-
() =>
|
|
3724
|
+
return typeof window < "u" && L() != null && t ? r = window.setTimeout(
|
|
3725
|
+
() => Ce.set(!0),
|
|
3698
3726
|
t
|
|
3699
|
-
) :
|
|
3700
|
-
|
|
3727
|
+
) : Ce.set(!0), Jt(e).then(() => {
|
|
3728
|
+
_e.set(e);
|
|
3701
3729
|
}).finally(() => {
|
|
3702
|
-
clearTimeout(r),
|
|
3730
|
+
clearTimeout(r), Ce.set(!1);
|
|
3703
3731
|
});
|
|
3704
3732
|
}
|
|
3705
|
-
return
|
|
3706
|
-
},
|
|
3707
|
-
set:
|
|
3708
|
-
}),
|
|
3733
|
+
return _e.set(e);
|
|
3734
|
+
}, D = Kn(Yn({}, _e), {
|
|
3735
|
+
set: ei
|
|
3736
|
+
}), He = (e) => {
|
|
3709
3737
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3710
3738
|
return (n) => {
|
|
3711
3739
|
const i = JSON.stringify(n);
|
|
3712
3740
|
return i in t ? t[i] : t[i] = e(n);
|
|
3713
3741
|
};
|
|
3714
3742
|
};
|
|
3715
|
-
var
|
|
3743
|
+
var ti = Object.defineProperty, Ee = Object.getOwnPropertySymbols, qt = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
3716
3744
|
for (var r in t || (t = {}))
|
|
3717
3745
|
qt.call(t, r) && mt(e, r, t[r]);
|
|
3718
|
-
if (
|
|
3719
|
-
for (var r of
|
|
3746
|
+
if (Ee)
|
|
3747
|
+
for (var r of Ee(t))
|
|
3720
3748
|
Qt.call(t, r) && mt(e, r, t[r]);
|
|
3721
3749
|
return e;
|
|
3722
|
-
},
|
|
3750
|
+
}, q = (e, t) => {
|
|
3723
3751
|
var r = {};
|
|
3724
3752
|
for (var n in e)
|
|
3725
3753
|
qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3726
|
-
if (e != null &&
|
|
3727
|
-
for (var n of
|
|
3754
|
+
if (e != null && Ee)
|
|
3755
|
+
for (var n of Ee(e))
|
|
3728
3756
|
t.indexOf(n) < 0 && Qt.call(e, n) && (r[n] = e[n]);
|
|
3729
3757
|
return r;
|
|
3730
3758
|
};
|
|
3731
|
-
const
|
|
3732
|
-
const { formats: r } =
|
|
3759
|
+
const re = (e, t) => {
|
|
3760
|
+
const { formats: r } = W();
|
|
3733
3761
|
if (e in r && t in r[e])
|
|
3734
3762
|
return r[e][t];
|
|
3735
3763
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3736
|
-
},
|
|
3764
|
+
}, ri = He(
|
|
3737
3765
|
(e) => {
|
|
3738
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3766
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3739
3767
|
if (r == null)
|
|
3740
3768
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3741
|
-
return n && (i =
|
|
3769
|
+
return n && (i = re("number", n)), new Intl.NumberFormat(r, i);
|
|
3742
3770
|
}
|
|
3743
|
-
),
|
|
3771
|
+
), ni = He(
|
|
3744
3772
|
(e) => {
|
|
3745
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3773
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3746
3774
|
if (r == null)
|
|
3747
3775
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3748
|
-
return n ? i =
|
|
3776
|
+
return n ? i = re("date", n) : Object.keys(i).length === 0 && (i = re("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3749
3777
|
}
|
|
3750
|
-
),
|
|
3778
|
+
), ii = He(
|
|
3751
3779
|
(e) => {
|
|
3752
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3780
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3753
3781
|
if (r == null)
|
|
3754
3782
|
throw new Error(
|
|
3755
3783
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3756
3784
|
);
|
|
3757
|
-
return n ? i =
|
|
3785
|
+
return n ? i = re("time", n) : Object.keys(i).length === 0 && (i = re("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3758
3786
|
}
|
|
3759
|
-
),
|
|
3787
|
+
), ai = (e = {}) => {
|
|
3760
3788
|
var t = e, {
|
|
3761
|
-
locale: r =
|
|
3762
|
-
} = t, n =
|
|
3789
|
+
locale: r = L()
|
|
3790
|
+
} = t, n = q(t, [
|
|
3763
3791
|
"locale"
|
|
3764
3792
|
]);
|
|
3765
|
-
return
|
|
3766
|
-
},
|
|
3793
|
+
return ri(Je({ locale: r }, n));
|
|
3794
|
+
}, si = (e = {}) => {
|
|
3767
3795
|
var t = e, {
|
|
3768
|
-
locale: r =
|
|
3769
|
-
} = t, n =
|
|
3796
|
+
locale: r = L()
|
|
3797
|
+
} = t, n = q(t, [
|
|
3770
3798
|
"locale"
|
|
3771
3799
|
]);
|
|
3772
|
-
return
|
|
3773
|
-
},
|
|
3800
|
+
return ni(Je({ locale: r }, n));
|
|
3801
|
+
}, oi = (e = {}) => {
|
|
3774
3802
|
var t = e, {
|
|
3775
|
-
locale: r =
|
|
3776
|
-
} = t, n =
|
|
3803
|
+
locale: r = L()
|
|
3804
|
+
} = t, n = q(t, [
|
|
3777
3805
|
"locale"
|
|
3778
3806
|
]);
|
|
3779
|
-
return
|
|
3780
|
-
},
|
|
3807
|
+
return ii(Je({ locale: r }, n));
|
|
3808
|
+
}, ui = He(
|
|
3781
3809
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3782
|
-
(e, t =
|
|
3783
|
-
ignoreTag:
|
|
3810
|
+
(e, t = L()) => new zt(e, t, W().formats, {
|
|
3811
|
+
ignoreTag: W().ignoreTag
|
|
3784
3812
|
})
|
|
3785
|
-
),
|
|
3786
|
-
var r, n, i,
|
|
3787
|
-
let
|
|
3788
|
-
typeof e == "object" && (
|
|
3813
|
+
), li = (e, t = {}) => {
|
|
3814
|
+
var r, n, i, a;
|
|
3815
|
+
let s = t;
|
|
3816
|
+
typeof e == "object" && (s = e, e = s.id);
|
|
3789
3817
|
const {
|
|
3790
|
-
values:
|
|
3791
|
-
locale: h =
|
|
3818
|
+
values: o,
|
|
3819
|
+
locale: h = L(),
|
|
3792
3820
|
default: u
|
|
3793
|
-
} =
|
|
3821
|
+
} = s;
|
|
3794
3822
|
if (h == null)
|
|
3795
3823
|
throw new Error(
|
|
3796
3824
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3797
3825
|
);
|
|
3798
3826
|
let l = Vt(e, h);
|
|
3799
3827
|
if (!l)
|
|
3800
|
-
l = (
|
|
3828
|
+
l = (a = (i = (n = (r = W()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
|
|
3801
3829
|
else if (typeof l != "string")
|
|
3802
3830
|
return console.warn(
|
|
3803
3831
|
`[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.`
|
|
3804
3832
|
), l;
|
|
3805
|
-
if (!
|
|
3833
|
+
if (!o)
|
|
3806
3834
|
return l;
|
|
3807
3835
|
let f = l;
|
|
3808
3836
|
try {
|
|
3809
|
-
f =
|
|
3837
|
+
f = ui(l, h).format(o);
|
|
3810
3838
|
} catch (c) {
|
|
3811
3839
|
c instanceof Error && console.warn(
|
|
3812
3840
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3814,18 +3842,18 @@ const ne = (e, t) => {
|
|
|
3814
3842
|
);
|
|
3815
3843
|
}
|
|
3816
3844
|
return f;
|
|
3817
|
-
},
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3845
|
+
}, hi = (e, t) => oi(t).format(e), ci = (e, t) => si(t).format(e), fi = (e, t) => ai(t).format(e), mi = (e, t = L()) => Vt(e, t), di = J([D, ie], () => li);
|
|
3846
|
+
J([D], () => hi);
|
|
3847
|
+
J([D], () => ci);
|
|
3848
|
+
J([D], () => fi);
|
|
3849
|
+
J([D, ie], () => mi);
|
|
3822
3850
|
function bi(e, t) {
|
|
3823
3851
|
if (e) {
|
|
3824
3852
|
const r = document.createElement("style");
|
|
3825
3853
|
r.innerHTML = t, e.appendChild(r);
|
|
3826
3854
|
}
|
|
3827
3855
|
}
|
|
3828
|
-
function
|
|
3856
|
+
function pi(e, t) {
|
|
3829
3857
|
const r = new URL(t);
|
|
3830
3858
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3831
3859
|
const i = document.createElement("style");
|
|
@@ -3834,7 +3862,7 @@ function gi(e, t) {
|
|
|
3834
3862
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3835
3863
|
});
|
|
3836
3864
|
}
|
|
3837
|
-
function
|
|
3865
|
+
function gi(e, t, r) {
|
|
3838
3866
|
if (window.emMessageBus) {
|
|
3839
3867
|
const n = document.createElement("style");
|
|
3840
3868
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3845,12 +3873,12 @@ function yi(e, t, r) {
|
|
|
3845
3873
|
function dt(e, t) {
|
|
3846
3874
|
Wt(e, t);
|
|
3847
3875
|
}
|
|
3848
|
-
function
|
|
3849
|
-
|
|
3876
|
+
function yi(e) {
|
|
3877
|
+
Xn({
|
|
3850
3878
|
fallbackLocale: "en"
|
|
3851
|
-
}),
|
|
3879
|
+
}), D.set(e);
|
|
3852
3880
|
}
|
|
3853
|
-
const
|
|
3881
|
+
const bt = {
|
|
3854
3882
|
en: {
|
|
3855
3883
|
errorGeneralTitle: "Error Occurred",
|
|
3856
3884
|
errorGeneralText: "Something went wrong",
|
|
@@ -3904,74 +3932,74 @@ const pt = {
|
|
|
3904
3932
|
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."
|
|
3905
3933
|
}
|
|
3906
3934
|
};
|
|
3907
|
-
function
|
|
3935
|
+
function _i(e) {
|
|
3908
3936
|
rr(e, "svelte-1dt5wyw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;border-radius:10px;border:1px solid var(--emw--color-grey-105, #E8E9EB);background-color:var(--emw--color-white, #ffffff);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-black, #000);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-gray-290, #666);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-white, #fff);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, #3854FF)}.CashierErrorButton:hover{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:active{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorContent ui-image img{width:300px}");
|
|
3909
3937
|
}
|
|
3910
|
-
const
|
|
3938
|
+
const Ei = (e) => ({}), pt = (e) => ({}), vi = (e) => ({}), gt = (e) => ({}), xi = (e) => ({}), yt = (e) => ({}), Ti = (e) => ({}), _t = (e) => ({ class: "CashierErrorIcon" });
|
|
3911
3939
|
function Et(e) {
|
|
3912
3940
|
let t, r;
|
|
3913
3941
|
return {
|
|
3914
3942
|
c() {
|
|
3915
|
-
t =
|
|
3916
|
-
e[0]}/error-general-icon.png`) ||
|
|
3943
|
+
t = O("ui-image"), Ye(t.src, r = `${/*assetsurl*/
|
|
3944
|
+
e[0]}/error-general-icon.png`) || ue(t, "src", r), ue(t, "width", "300px"), ue(t, "alt", "error");
|
|
3917
3945
|
},
|
|
3918
3946
|
m(n, i) {
|
|
3919
|
-
|
|
3947
|
+
R(n, t, i);
|
|
3920
3948
|
},
|
|
3921
3949
|
p(n, i) {
|
|
3922
3950
|
i & /*assetsurl*/
|
|
3923
3951
|
1 && !Ye(t.src, r = `${/*assetsurl*/
|
|
3924
|
-
n[0]}/error-general-icon.png`) &&
|
|
3952
|
+
n[0]}/error-general-icon.png`) && ue(t, "src", r);
|
|
3925
3953
|
},
|
|
3926
3954
|
d(n) {
|
|
3927
|
-
n &&
|
|
3955
|
+
n && N(t);
|
|
3928
3956
|
}
|
|
3929
3957
|
};
|
|
3930
3958
|
}
|
|
3931
|
-
function
|
|
3959
|
+
function Hi(e) {
|
|
3932
3960
|
let t, r = (
|
|
3933
3961
|
/*assetsurl*/
|
|
3934
3962
|
e[0] && Et(e)
|
|
3935
3963
|
);
|
|
3936
3964
|
return {
|
|
3937
3965
|
c() {
|
|
3938
|
-
r && r.c(), t =
|
|
3966
|
+
r && r.c(), t = ar();
|
|
3939
3967
|
},
|
|
3940
3968
|
m(n, i) {
|
|
3941
|
-
r && r.m(n, i),
|
|
3969
|
+
r && r.m(n, i), R(n, t, i);
|
|
3942
3970
|
},
|
|
3943
3971
|
p(n, i) {
|
|
3944
3972
|
/*assetsurl*/
|
|
3945
3973
|
n[0] ? r ? r.p(n, i) : (r = Et(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3946
3974
|
},
|
|
3947
3975
|
d(n) {
|
|
3948
|
-
n &&
|
|
3976
|
+
n && N(t), r && r.d(n);
|
|
3949
3977
|
}
|
|
3950
3978
|
};
|
|
3951
3979
|
}
|
|
3952
|
-
function
|
|
3980
|
+
function wi(e) {
|
|
3953
3981
|
let t, r = (
|
|
3954
3982
|
/*$_*/
|
|
3955
3983
|
e[4]("errorGeneralTitle") + ""
|
|
3956
3984
|
), n;
|
|
3957
3985
|
return {
|
|
3958
3986
|
c() {
|
|
3959
|
-
t =
|
|
3987
|
+
t = O("span"), n = ne(r), $(t, "class", "CashierErrorTitle");
|
|
3960
3988
|
},
|
|
3961
|
-
m(i,
|
|
3962
|
-
|
|
3989
|
+
m(i, a) {
|
|
3990
|
+
R(i, t, a), A(t, n);
|
|
3963
3991
|
},
|
|
3964
|
-
p(i,
|
|
3965
|
-
|
|
3992
|
+
p(i, a) {
|
|
3993
|
+
a & /*$_*/
|
|
3966
3994
|
16 && r !== (r = /*$_*/
|
|
3967
|
-
i[4]("errorGeneralTitle") + "") &&
|
|
3995
|
+
i[4]("errorGeneralTitle") + "") && Ve(n, r);
|
|
3968
3996
|
},
|
|
3969
3997
|
d(i) {
|
|
3970
|
-
i &&
|
|
3998
|
+
i && N(t);
|
|
3971
3999
|
}
|
|
3972
4000
|
};
|
|
3973
4001
|
}
|
|
3974
|
-
function
|
|
4002
|
+
function Si(e) {
|
|
3975
4003
|
let t, r = (
|
|
3976
4004
|
/*$_*/
|
|
3977
4005
|
e[4](`${/*errorcode*/
|
|
@@ -3979,19 +4007,19 @@ function Bi(e) {
|
|
|
3979
4007
|
), n;
|
|
3980
4008
|
return {
|
|
3981
4009
|
c() {
|
|
3982
|
-
t =
|
|
4010
|
+
t = O("span"), n = ne(r), $(t, "class", "CashierErrorText");
|
|
3983
4011
|
},
|
|
3984
|
-
m(i,
|
|
3985
|
-
|
|
4012
|
+
m(i, a) {
|
|
4013
|
+
R(i, t, a), A(t, n);
|
|
3986
4014
|
},
|
|
3987
|
-
p(i,
|
|
3988
|
-
|
|
4015
|
+
p(i, a) {
|
|
4016
|
+
a & /*$_, errorcode*/
|
|
3989
4017
|
20 && r !== (r = /*$_*/
|
|
3990
4018
|
i[4](`${/*errorcode*/
|
|
3991
|
-
i[2] || "errorGeneralText"}`) + "") &&
|
|
4019
|
+
i[2] || "errorGeneralText"}`) + "") && Ve(n, r);
|
|
3992
4020
|
},
|
|
3993
4021
|
d(i) {
|
|
3994
|
-
i &&
|
|
4022
|
+
i && N(t);
|
|
3995
4023
|
}
|
|
3996
4024
|
};
|
|
3997
4025
|
}
|
|
@@ -4000,203 +4028,203 @@ function vt(e) {
|
|
|
4000
4028
|
const r = (
|
|
4001
4029
|
/*#slots*/
|
|
4002
4030
|
e[12].button
|
|
4003
|
-
), n =
|
|
4031
|
+
), n = he(
|
|
4004
4032
|
r,
|
|
4005
4033
|
e,
|
|
4006
4034
|
/*$$scope*/
|
|
4007
4035
|
e[11],
|
|
4008
|
-
|
|
4009
|
-
), i = n ||
|
|
4036
|
+
pt
|
|
4037
|
+
), i = n || Bi(e);
|
|
4010
4038
|
return {
|
|
4011
4039
|
c() {
|
|
4012
4040
|
i && i.c();
|
|
4013
4041
|
},
|
|
4014
|
-
m(
|
|
4015
|
-
i && i.m(
|
|
4042
|
+
m(a, s) {
|
|
4043
|
+
i && i.m(a, s), t = !0;
|
|
4016
4044
|
},
|
|
4017
|
-
p(
|
|
4018
|
-
n ? n.p && (!t ||
|
|
4019
|
-
2048) &&
|
|
4045
|
+
p(a, s) {
|
|
4046
|
+
n ? n.p && (!t || s & /*$$scope*/
|
|
4047
|
+
2048) && fe(
|
|
4020
4048
|
n,
|
|
4021
4049
|
r,
|
|
4022
|
-
|
|
4050
|
+
a,
|
|
4023
4051
|
/*$$scope*/
|
|
4024
|
-
|
|
4025
|
-
t ?
|
|
4052
|
+
a[11],
|
|
4053
|
+
t ? ce(
|
|
4026
4054
|
r,
|
|
4027
4055
|
/*$$scope*/
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
) :
|
|
4056
|
+
a[11],
|
|
4057
|
+
s,
|
|
4058
|
+
Ei
|
|
4059
|
+
) : me(
|
|
4032
4060
|
/*$$scope*/
|
|
4033
|
-
|
|
4061
|
+
a[11]
|
|
4034
4062
|
),
|
|
4035
|
-
|
|
4036
|
-
) : i && i.p && (!t ||
|
|
4037
|
-
16) && i.p(
|
|
4063
|
+
pt
|
|
4064
|
+
) : i && i.p && (!t || s & /*$_*/
|
|
4065
|
+
16) && i.p(a, t ? s : -1);
|
|
4038
4066
|
},
|
|
4039
|
-
i(
|
|
4040
|
-
t || (
|
|
4067
|
+
i(a) {
|
|
4068
|
+
t || (I(i, a), t = !0);
|
|
4041
4069
|
},
|
|
4042
|
-
o(
|
|
4043
|
-
|
|
4070
|
+
o(a) {
|
|
4071
|
+
F(i, a), t = !1;
|
|
4044
4072
|
},
|
|
4045
|
-
d(
|
|
4046
|
-
i && i.d(
|
|
4073
|
+
d(a) {
|
|
4074
|
+
i && i.d(a);
|
|
4047
4075
|
}
|
|
4048
4076
|
};
|
|
4049
4077
|
}
|
|
4050
|
-
function
|
|
4078
|
+
function Bi(e) {
|
|
4051
4079
|
let t, r, n = (
|
|
4052
4080
|
/*$_*/
|
|
4053
4081
|
e[4]("errorGeneralButton") + ""
|
|
4054
|
-
), i,
|
|
4082
|
+
), i, a, s;
|
|
4055
4083
|
return {
|
|
4056
4084
|
c() {
|
|
4057
|
-
t =
|
|
4085
|
+
t = O("button"), r = O("span"), i = ne(n), $(t, "class", "CashierErrorButton");
|
|
4058
4086
|
},
|
|
4059
|
-
m(
|
|
4060
|
-
|
|
4087
|
+
m(o, h) {
|
|
4088
|
+
R(o, t, h), A(t, r), A(r, i), a || (s = sr(
|
|
4061
4089
|
t,
|
|
4062
4090
|
"click",
|
|
4063
4091
|
/*close*/
|
|
4064
4092
|
e[5]
|
|
4065
|
-
),
|
|
4093
|
+
), a = !0);
|
|
4066
4094
|
},
|
|
4067
|
-
p(
|
|
4095
|
+
p(o, h) {
|
|
4068
4096
|
h & /*$_*/
|
|
4069
4097
|
16 && n !== (n = /*$_*/
|
|
4070
|
-
|
|
4098
|
+
o[4]("errorGeneralButton") + "") && Ve(i, n);
|
|
4071
4099
|
},
|
|
4072
|
-
d(
|
|
4073
|
-
|
|
4100
|
+
d(o) {
|
|
4101
|
+
o && N(t), a = !1, s();
|
|
4074
4102
|
}
|
|
4075
4103
|
};
|
|
4076
4104
|
}
|
|
4077
|
-
function
|
|
4078
|
-
let t, r, n, i,
|
|
4079
|
-
const
|
|
4105
|
+
function Ai(e) {
|
|
4106
|
+
let t, r, n, i, a, s;
|
|
4107
|
+
const o = (
|
|
4080
4108
|
/*#slots*/
|
|
4081
4109
|
e[12].icon
|
|
4082
|
-
), h =
|
|
4083
|
-
|
|
4110
|
+
), h = he(
|
|
4111
|
+
o,
|
|
4084
4112
|
e,
|
|
4085
4113
|
/*$$scope*/
|
|
4086
4114
|
e[11],
|
|
4087
4115
|
_t
|
|
4088
|
-
), u = h ||
|
|
4116
|
+
), u = h || Hi(e), l = (
|
|
4089
4117
|
/*#slots*/
|
|
4090
4118
|
e[12].title
|
|
4091
|
-
), f =
|
|
4119
|
+
), f = he(
|
|
4092
4120
|
l,
|
|
4093
4121
|
e,
|
|
4094
4122
|
/*$$scope*/
|
|
4095
4123
|
e[11],
|
|
4096
4124
|
yt
|
|
4097
|
-
), c = f ||
|
|
4125
|
+
), c = f || wi(e), y = (
|
|
4098
4126
|
/*#slots*/
|
|
4099
4127
|
e[12].text
|
|
4100
|
-
),
|
|
4128
|
+
), b = he(
|
|
4101
4129
|
y,
|
|
4102
4130
|
e,
|
|
4103
4131
|
/*$$scope*/
|
|
4104
4132
|
e[11],
|
|
4105
4133
|
gt
|
|
4106
|
-
),
|
|
4107
|
-
let
|
|
4134
|
+
), v = b || Si(e);
|
|
4135
|
+
let E = (!/*hidebuttons*/
|
|
4108
4136
|
e[1] || /*hidebuttons*/
|
|
4109
4137
|
e[1] === "false") && vt(e);
|
|
4110
4138
|
return {
|
|
4111
4139
|
c() {
|
|
4112
|
-
t =
|
|
4140
|
+
t = O("div"), r = O("div"), u && u.c(), n = we(), c && c.c(), i = we(), v && v.c(), a = we(), E && E.c(), $(r, "class", "CashierErrorContent"), $(t, "class", "CashierError");
|
|
4113
4141
|
},
|
|
4114
|
-
m(m,
|
|
4115
|
-
|
|
4142
|
+
m(m, x) {
|
|
4143
|
+
R(m, t, x), A(t, r), u && u.m(r, null), A(r, n), c && c.m(r, null), A(r, i), v && v.m(r, null), A(r, a), E && E.m(r, null), e[13](t), s = !0;
|
|
4116
4144
|
},
|
|
4117
|
-
p(m, [
|
|
4118
|
-
h ? h.p && (!
|
|
4119
|
-
2048) &&
|
|
4145
|
+
p(m, [x]) {
|
|
4146
|
+
h ? h.p && (!s || x & /*$$scope*/
|
|
4147
|
+
2048) && fe(
|
|
4120
4148
|
h,
|
|
4121
|
-
|
|
4149
|
+
o,
|
|
4122
4150
|
m,
|
|
4123
4151
|
/*$$scope*/
|
|
4124
4152
|
m[11],
|
|
4125
|
-
|
|
4126
|
-
|
|
4153
|
+
s ? ce(
|
|
4154
|
+
o,
|
|
4127
4155
|
/*$$scope*/
|
|
4128
4156
|
m[11],
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
) :
|
|
4157
|
+
x,
|
|
4158
|
+
Ti
|
|
4159
|
+
) : me(
|
|
4132
4160
|
/*$$scope*/
|
|
4133
4161
|
m[11]
|
|
4134
4162
|
),
|
|
4135
4163
|
_t
|
|
4136
|
-
) : u && u.p && (!
|
|
4137
|
-
1) && u.p(m,
|
|
4138
|
-
2048) &&
|
|
4164
|
+
) : u && u.p && (!s || x & /*assetsurl*/
|
|
4165
|
+
1) && u.p(m, s ? x : -1), f ? f.p && (!s || x & /*$$scope*/
|
|
4166
|
+
2048) && fe(
|
|
4139
4167
|
f,
|
|
4140
4168
|
l,
|
|
4141
4169
|
m,
|
|
4142
4170
|
/*$$scope*/
|
|
4143
4171
|
m[11],
|
|
4144
|
-
|
|
4172
|
+
s ? ce(
|
|
4145
4173
|
l,
|
|
4146
4174
|
/*$$scope*/
|
|
4147
4175
|
m[11],
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
) :
|
|
4176
|
+
x,
|
|
4177
|
+
xi
|
|
4178
|
+
) : me(
|
|
4151
4179
|
/*$$scope*/
|
|
4152
4180
|
m[11]
|
|
4153
4181
|
),
|
|
4154
4182
|
yt
|
|
4155
|
-
) : c && c.p && (!
|
|
4156
|
-
16) && c.p(m,
|
|
4157
|
-
2048) &&
|
|
4158
|
-
|
|
4183
|
+
) : c && c.p && (!s || x & /*$_*/
|
|
4184
|
+
16) && c.p(m, s ? x : -1), b ? b.p && (!s || x & /*$$scope*/
|
|
4185
|
+
2048) && fe(
|
|
4186
|
+
b,
|
|
4159
4187
|
y,
|
|
4160
4188
|
m,
|
|
4161
4189
|
/*$$scope*/
|
|
4162
4190
|
m[11],
|
|
4163
|
-
|
|
4191
|
+
s ? ce(
|
|
4164
4192
|
y,
|
|
4165
4193
|
/*$$scope*/
|
|
4166
4194
|
m[11],
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
) :
|
|
4195
|
+
x,
|
|
4196
|
+
vi
|
|
4197
|
+
) : me(
|
|
4170
4198
|
/*$$scope*/
|
|
4171
4199
|
m[11]
|
|
4172
4200
|
),
|
|
4173
4201
|
gt
|
|
4174
|
-
) :
|
|
4175
|
-
20) &&
|
|
4202
|
+
) : v && v.p && (!s || x & /*$_, errorcode*/
|
|
4203
|
+
20) && v.p(m, s ? x : -1), !/*hidebuttons*/
|
|
4176
4204
|
m[1] || /*hidebuttons*/
|
|
4177
|
-
m[1] === "false" ?
|
|
4178
|
-
2 &&
|
|
4179
|
-
|
|
4180
|
-
}),
|
|
4205
|
+
m[1] === "false" ? E ? (E.p(m, x), x & /*hidebuttons*/
|
|
4206
|
+
2 && I(E, 1)) : (E = vt(m), E.c(), I(E, 1), E.m(r, null)) : E && (br(), F(E, 1, 1, () => {
|
|
4207
|
+
E = null;
|
|
4208
|
+
}), pr());
|
|
4181
4209
|
},
|
|
4182
4210
|
i(m) {
|
|
4183
|
-
|
|
4211
|
+
s || (I(u, m), I(c, m), I(v, m), I(E), s = !0);
|
|
4184
4212
|
},
|
|
4185
4213
|
o(m) {
|
|
4186
|
-
|
|
4214
|
+
F(u, m), F(c, m), F(v, m), F(E), s = !1;
|
|
4187
4215
|
},
|
|
4188
4216
|
d(m) {
|
|
4189
|
-
m &&
|
|
4217
|
+
m && N(t), u && u.d(m), c && c.d(m), v && v.d(m), E && E.d(), e[13](null);
|
|
4190
4218
|
}
|
|
4191
4219
|
};
|
|
4192
4220
|
}
|
|
4193
|
-
function
|
|
4221
|
+
function Pi(e, t, r) {
|
|
4194
4222
|
let n;
|
|
4195
|
-
tr(e,
|
|
4196
|
-
let { $$slots: i = {}, $$scope:
|
|
4197
|
-
const
|
|
4198
|
-
|
|
4199
|
-
},
|
|
4223
|
+
tr(e, di, (d) => r(4, n = d));
|
|
4224
|
+
let { $$slots: i = {}, $$scope: a } = t, { assetsurl: s = "" } = t, { lang: o = "en" } = t, { hidebuttons: h = "" } = t, { errorcode: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: c = "" } = t, { mbsource: y = "" } = t, b;
|
|
4225
|
+
const v = () => {
|
|
4226
|
+
yi(o);
|
|
4227
|
+
}, E = () => {
|
|
4200
4228
|
fetch(c).then((w) => w.json()).then((w) => {
|
|
4201
4229
|
Object.keys(w).forEach((S) => {
|
|
4202
4230
|
dt(S, w[S]);
|
|
@@ -4205,43 +4233,43 @@ function Oi(e, t, r) {
|
|
|
4205
4233
|
console.error(w);
|
|
4206
4234
|
});
|
|
4207
4235
|
};
|
|
4208
|
-
Object.keys(
|
|
4209
|
-
dt(d,
|
|
4236
|
+
Object.keys(bt).forEach((d) => {
|
|
4237
|
+
dt(d, bt[d]);
|
|
4210
4238
|
});
|
|
4211
4239
|
const m = () => {
|
|
4212
4240
|
window.postMessage({ type: "ErrorClose" }, window.location.href);
|
|
4213
4241
|
};
|
|
4214
4242
|
hr(() => () => {
|
|
4215
4243
|
});
|
|
4216
|
-
function
|
|
4217
|
-
|
|
4218
|
-
|
|
4244
|
+
function x(d) {
|
|
4245
|
+
Ne[d ? "unshift" : "push"](() => {
|
|
4246
|
+
b = d, r(3, b);
|
|
4219
4247
|
});
|
|
4220
4248
|
}
|
|
4221
4249
|
return e.$$set = (d) => {
|
|
4222
|
-
"assetsurl" in d && r(0,
|
|
4250
|
+
"assetsurl" in d && r(0, s = d.assetsurl), "lang" in d && r(6, o = d.lang), "hidebuttons" in d && r(1, h = d.hidebuttons), "errorcode" in d && r(2, u = d.errorcode), "clientstyling" in d && r(7, l = d.clientstyling), "clientstylingurl" in d && r(8, f = d.clientstylingurl), "translationurl" in d && r(9, c = d.translationurl), "mbsource" in d && r(10, y = d.mbsource), "$$scope" in d && r(11, a = d.$$scope);
|
|
4223
4251
|
}, e.$$.update = () => {
|
|
4224
4252
|
e.$$.dirty & /*lang*/
|
|
4225
|
-
64 &&
|
|
4226
|
-
136 && l &&
|
|
4227
|
-
264 && f &&
|
|
4228
|
-
1032 && y &&
|
|
4229
|
-
512 && c &&
|
|
4253
|
+
64 && o && v(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4254
|
+
136 && l && b && bi(b, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4255
|
+
264 && f && b && pi(b, f), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4256
|
+
1032 && y && b && gi(b, `${y}.Style`), e.$$.dirty & /*translationurl*/
|
|
4257
|
+
512 && c && E();
|
|
4230
4258
|
}, [
|
|
4231
|
-
|
|
4259
|
+
s,
|
|
4232
4260
|
h,
|
|
4233
4261
|
u,
|
|
4234
|
-
|
|
4262
|
+
b,
|
|
4235
4263
|
n,
|
|
4236
4264
|
m,
|
|
4237
|
-
|
|
4265
|
+
o,
|
|
4238
4266
|
l,
|
|
4239
4267
|
f,
|
|
4240
4268
|
c,
|
|
4241
4269
|
y,
|
|
4242
|
-
|
|
4270
|
+
a,
|
|
4243
4271
|
i,
|
|
4244
|
-
|
|
4272
|
+
x
|
|
4245
4273
|
];
|
|
4246
4274
|
}
|
|
4247
4275
|
class Yt extends xr {
|
|
@@ -4249,8 +4277,8 @@ class Yt extends xr {
|
|
|
4249
4277
|
super(), Er(
|
|
4250
4278
|
this,
|
|
4251
4279
|
t,
|
|
4252
|
-
Oi,
|
|
4253
4280
|
Pi,
|
|
4281
|
+
Ai,
|
|
4254
4282
|
Tt,
|
|
4255
4283
|
{
|
|
4256
4284
|
assetsurl: 0,
|
|
@@ -4262,7 +4290,7 @@ class Yt extends xr {
|
|
|
4262
4290
|
translationurl: 9,
|
|
4263
4291
|
mbsource: 10
|
|
4264
4292
|
},
|
|
4265
|
-
|
|
4293
|
+
_i
|
|
4266
4294
|
);
|
|
4267
4295
|
}
|
|
4268
4296
|
get assetsurl() {
|
|
@@ -4315,44 +4343,48 @@ class Yt extends xr {
|
|
|
4315
4343
|
}
|
|
4316
4344
|
}
|
|
4317
4345
|
vr(Yt, { assetsurl: {}, lang: {}, hidebuttons: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
4318
|
-
const
|
|
4346
|
+
const Ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4319
4347
|
__proto__: null,
|
|
4320
4348
|
default: Yt
|
|
4321
4349
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4322
4350
|
export {
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4351
|
+
D as $,
|
|
4352
|
+
ne as A,
|
|
4353
|
+
ar as B,
|
|
4354
|
+
A as C,
|
|
4355
|
+
sr as D,
|
|
4356
|
+
Ve as E,
|
|
4357
|
+
Ni as F,
|
|
4358
|
+
Ii as G,
|
|
4359
|
+
Ye as H,
|
|
4360
|
+
Ci as I,
|
|
4361
|
+
Ri as J,
|
|
4331
4362
|
xr as S,
|
|
4363
|
+
Mi as _,
|
|
4332
4364
|
Wt as a,
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4365
|
+
Be as b,
|
|
4366
|
+
Li as c,
|
|
4367
|
+
$i as d,
|
|
4368
|
+
xe as e,
|
|
4369
|
+
vr as f,
|
|
4338
4370
|
wr as g,
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4371
|
+
Er as h,
|
|
4372
|
+
Xn as i,
|
|
4373
|
+
B as j,
|
|
4374
|
+
rr as k,
|
|
4375
|
+
O as l,
|
|
4376
|
+
$ as m,
|
|
4377
|
+
R as n,
|
|
4378
|
+
P as o,
|
|
4379
|
+
N as p,
|
|
4380
|
+
tr as q,
|
|
4381
|
+
hr as r,
|
|
4350
4382
|
Tt as s,
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4383
|
+
pi as t,
|
|
4384
|
+
gi as u,
|
|
4385
|
+
Ne as v,
|
|
4386
|
+
bi as w,
|
|
4387
|
+
di as x,
|
|
4388
|
+
ue as y,
|
|
4389
|
+
we as z
|
|
4358
4390
|
};
|