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