@everymatrix/cashier-error 1.76.13 → 1.76.14
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-BCqmWzi6.js → CashierError-BSGImoIf.js} +640 -644
- package/components/CashierError-DO4j-mBX.cjs +18 -0
- package/components/{CashierError-DwFWeqw8.js → CashierError-qtaUhJG2.js} +650 -654
- package/es2015/cashier-error.cjs +1 -1
- package/es2015/cashier-error.js +1 -1
- package/esnext/cashier-error.js +1 -1
- package/package.json +1 -1
- package/stencil/index-242ac81a-Bl2OSy8h.js +538 -0
- package/stencil/index-242ac81a-Czg480dJ.js +554 -0
- package/stencil/index-242ac81a-DDPF_SYN.cjs +1 -0
- package/stencil/{ui-image-2ff23cd5-BHGIWJop.cjs → ui-image-2ff23cd5-BU5r6gJa.cjs} +1 -1
- package/stencil/{ui-image-2ff23cd5-DCLQ0SIO.js → ui-image-2ff23cd5-CBX1vdMZ.js} +1 -1
- package/stencil/{ui-image-2ff23cd5-D0rXudCW.js → ui-image-2ff23cd5-DZZYCsK1.js} +1 -1
- package/stencil/{ui-image-DmRWEjrp.js → ui-image-BhXCYysO.js} +1 -1
- package/stencil/{ui-image-C0Jfm_O4.js → ui-image-CVwHW7a_.js} +1 -1
- package/stencil/{ui-image-EfKW3THf.cjs → ui-image-DrDalrqH.cjs} +1 -1
- package/stencil/{ui-image_2-CLk629jW.cjs → ui-image_2-Bsl4RJfi.cjs} +1 -1
- package/stencil/{ui-image_2-VgK3B8gQ.js → ui-image_2-ID_1Oi3k.js} +2 -2
- package/stencil/{ui-image_2-B21W_djK.js → ui-image_2-exO7RXKL.js} +2 -2
- package/components/CashierError-DTlSKWyG.cjs +0 -5
- package/stencil/index-242ac81a-BqeIndhr.js +0 -554
- package/stencil/index-242ac81a-CI4JxPRf.js +0 -538
- package/stencil/index-242ac81a-CjjM4VND.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../stencil/ui-image-
|
|
2
|
-
function
|
|
1
|
+
import "../stencil/ui-image-CVwHW7a_.js";
|
|
2
|
+
function A() {
|
|
3
3
|
}
|
|
4
4
|
function Qt(e, t) {
|
|
5
5
|
for (const r in t)
|
|
@@ -15,18 +15,18 @@ function vt(e) {
|
|
|
15
15
|
function Qe() {
|
|
16
16
|
return /* @__PURE__ */ Object.create(null);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Z(e) {
|
|
19
19
|
e.forEach(vt);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function ze(e) {
|
|
22
22
|
return typeof e == "function";
|
|
23
23
|
}
|
|
24
24
|
function xt(e, t) {
|
|
25
25
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
26
26
|
}
|
|
27
|
-
let
|
|
27
|
+
let ae;
|
|
28
28
|
function Ye(e, t) {
|
|
29
|
-
return e === t ? !0 : (
|
|
29
|
+
return e === t ? !0 : (ae || (ae = document.createElement("a")), ae.href = t, e === ae.href);
|
|
30
30
|
}
|
|
31
31
|
function Yt(e) {
|
|
32
32
|
return Object.keys(e).length === 0;
|
|
@@ -35,7 +35,7 @@ function Tt(e, ...t) {
|
|
|
35
35
|
if (e == null) {
|
|
36
36
|
for (const n of t)
|
|
37
37
|
n(void 0);
|
|
38
|
-
return
|
|
38
|
+
return A;
|
|
39
39
|
}
|
|
40
40
|
const r = e.subscribe(...t);
|
|
41
41
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
@@ -43,7 +43,7 @@ function Tt(e, ...t) {
|
|
|
43
43
|
function Kt(e, t, r) {
|
|
44
44
|
e.$$.on_destroy.push(Tt(t, r));
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function he(e, t, r, n) {
|
|
47
47
|
if (e) {
|
|
48
48
|
const i = Ht(e, t, r, n);
|
|
49
49
|
return e[0](i);
|
|
@@ -52,7 +52,7 @@ function ce(e, t, r, n) {
|
|
|
52
52
|
function Ht(e, t, r, n) {
|
|
53
53
|
return e[1] && n ? Qt(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function ce(e, t, r, n) {
|
|
56
56
|
if (e[2] && n) {
|
|
57
57
|
const i = e[2](n(r));
|
|
58
58
|
if (t.dirty === void 0)
|
|
@@ -67,13 +67,13 @@ function fe(e, t, r, n) {
|
|
|
67
67
|
}
|
|
68
68
|
return t.dirty;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function fe(e, t, r, n, i, o) {
|
|
71
71
|
if (i) {
|
|
72
72
|
const s = Ht(t, r, n, o);
|
|
73
73
|
e.p(s, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function me(e) {
|
|
77
77
|
if (e.ctx.length > 32) {
|
|
78
78
|
const t = [], r = e.ctx.length / 32;
|
|
79
79
|
for (let n = 0; n < r; n++)
|
|
@@ -82,13 +82,13 @@ function de(e) {
|
|
|
82
82
|
}
|
|
83
83
|
return -1;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function O(e, t) {
|
|
86
86
|
e.appendChild(t);
|
|
87
87
|
}
|
|
88
88
|
function er(e, t, r) {
|
|
89
89
|
const n = tr(e);
|
|
90
90
|
if (!n.getElementById(t)) {
|
|
91
|
-
const i =
|
|
91
|
+
const i = P("style");
|
|
92
92
|
i.id = t, i.textContent = r, rr(n, i);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -103,44 +103,44 @@ function tr(e) {
|
|
|
103
103
|
) : e.ownerDocument;
|
|
104
104
|
}
|
|
105
105
|
function rr(e, t) {
|
|
106
|
-
return
|
|
106
|
+
return O(
|
|
107
107
|
/** @type {Document} */
|
|
108
108
|
e.head || e,
|
|
109
109
|
t
|
|
110
110
|
), t.sheet;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function M(e, t, r) {
|
|
113
113
|
e.insertBefore(t, r || null);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function I(e) {
|
|
116
116
|
e.parentNode && e.parentNode.removeChild(e);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function P(e) {
|
|
119
119
|
return document.createElement(e);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function ne(e) {
|
|
122
122
|
return document.createTextNode(e);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
return
|
|
124
|
+
function Be() {
|
|
125
|
+
return ne(" ");
|
|
126
126
|
}
|
|
127
127
|
function nr() {
|
|
128
|
-
return
|
|
128
|
+
return ne("");
|
|
129
129
|
}
|
|
130
130
|
function ir(e, t, r, n) {
|
|
131
131
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function L(e, t, r) {
|
|
134
134
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function ue(e, t, r) {
|
|
137
137
|
const n = t.toLowerCase();
|
|
138
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
138
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : L(e, t, r);
|
|
139
139
|
}
|
|
140
140
|
function or(e) {
|
|
141
141
|
return Array.from(e.childNodes);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Ve(e, t) {
|
|
144
144
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
145
145
|
t);
|
|
146
146
|
}
|
|
@@ -153,115 +153,115 @@ function sr(e) {
|
|
|
153
153
|
}
|
|
154
154
|
), t;
|
|
155
155
|
}
|
|
156
|
-
let
|
|
157
|
-
function
|
|
158
|
-
|
|
156
|
+
let ee;
|
|
157
|
+
function K(e) {
|
|
158
|
+
ee = e;
|
|
159
159
|
}
|
|
160
160
|
function ar() {
|
|
161
|
-
if (!
|
|
161
|
+
if (!ee)
|
|
162
162
|
throw new Error("Function called outside component initialization");
|
|
163
|
-
return
|
|
163
|
+
return ee;
|
|
164
164
|
}
|
|
165
165
|
function ur(e) {
|
|
166
166
|
ar().$$.on_mount.push(e);
|
|
167
167
|
}
|
|
168
|
-
const
|
|
169
|
-
let
|
|
168
|
+
const G = [], Ne = [];
|
|
169
|
+
let j = [];
|
|
170
170
|
const Ke = [], lr = /* @__PURE__ */ Promise.resolve();
|
|
171
|
-
let
|
|
171
|
+
let Le = !1;
|
|
172
172
|
function hr() {
|
|
173
|
-
|
|
173
|
+
Le || (Le = !0, lr.then(S));
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
|
|
175
|
+
function Me(e) {
|
|
176
|
+
j.push(e);
|
|
177
177
|
}
|
|
178
|
-
const
|
|
179
|
-
let
|
|
180
|
-
function
|
|
181
|
-
if (
|
|
178
|
+
const we = /* @__PURE__ */ new Set();
|
|
179
|
+
let U = 0;
|
|
180
|
+
function S() {
|
|
181
|
+
if (U !== 0)
|
|
182
182
|
return;
|
|
183
|
-
const e =
|
|
183
|
+
const e = ee;
|
|
184
184
|
do {
|
|
185
185
|
try {
|
|
186
|
-
for (;
|
|
187
|
-
const t =
|
|
188
|
-
|
|
186
|
+
for (; U < G.length; ) {
|
|
187
|
+
const t = G[U];
|
|
188
|
+
U++, K(t), cr(t.$$);
|
|
189
189
|
}
|
|
190
190
|
} catch (t) {
|
|
191
|
-
throw
|
|
191
|
+
throw G.length = 0, U = 0, t;
|
|
192
192
|
}
|
|
193
|
-
for (
|
|
194
|
-
|
|
195
|
-
for (let t = 0; t <
|
|
196
|
-
const r =
|
|
197
|
-
|
|
193
|
+
for (K(null), G.length = 0, U = 0; Ne.length; )
|
|
194
|
+
Ne.pop()();
|
|
195
|
+
for (let t = 0; t < j.length; t += 1) {
|
|
196
|
+
const r = j[t];
|
|
197
|
+
we.has(r) || (we.add(r), r());
|
|
198
198
|
}
|
|
199
|
-
|
|
200
|
-
} while (
|
|
199
|
+
j.length = 0;
|
|
200
|
+
} while (G.length);
|
|
201
201
|
for (; Ke.length; )
|
|
202
202
|
Ke.pop()();
|
|
203
|
-
|
|
203
|
+
Le = !1, we.clear(), K(e);
|
|
204
204
|
}
|
|
205
205
|
function cr(e) {
|
|
206
206
|
if (e.fragment !== null) {
|
|
207
|
-
e.update(),
|
|
207
|
+
e.update(), Z(e.before_update);
|
|
208
208
|
const t = e.dirty;
|
|
209
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
209
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
function fr(e) {
|
|
213
213
|
const t = [], r = [];
|
|
214
|
-
|
|
214
|
+
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
215
215
|
}
|
|
216
|
-
const
|
|
217
|
-
let
|
|
216
|
+
const de = /* @__PURE__ */ new Set();
|
|
217
|
+
let R;
|
|
218
218
|
function mr() {
|
|
219
|
-
|
|
219
|
+
R = {
|
|
220
220
|
r: 0,
|
|
221
221
|
c: [],
|
|
222
|
-
p:
|
|
222
|
+
p: R
|
|
223
223
|
// parent group
|
|
224
224
|
};
|
|
225
225
|
}
|
|
226
226
|
function dr() {
|
|
227
|
-
|
|
227
|
+
R.r || Z(R.c), R = R.p;
|
|
228
228
|
}
|
|
229
|
-
function
|
|
230
|
-
e && e.i && (
|
|
229
|
+
function C(e, t) {
|
|
230
|
+
e && e.i && (de.delete(e), e.i(t));
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function F(e, t, r, n) {
|
|
233
233
|
if (e && e.o) {
|
|
234
|
-
if (
|
|
234
|
+
if (de.has(e))
|
|
235
235
|
return;
|
|
236
|
-
|
|
237
|
-
|
|
236
|
+
de.add(e), R.c.push(() => {
|
|
237
|
+
de.delete(e), n && (r && e.d(1), n());
|
|
238
238
|
}), e.o(t);
|
|
239
239
|
} else
|
|
240
240
|
n && n();
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function br(e, t, r) {
|
|
243
243
|
const { fragment: n, after_update: i } = e.$$;
|
|
244
|
-
n && n.m(t, r),
|
|
245
|
-
const o = e.$$.on_mount.map(vt).filter(
|
|
246
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
247
|
-
}), i.forEach(
|
|
244
|
+
n && n.m(t, r), Me(() => {
|
|
245
|
+
const o = e.$$.on_mount.map(vt).filter(ze);
|
|
246
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Z(o), e.$$.on_mount = [];
|
|
247
|
+
}), i.forEach(Me);
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function pr(e, t) {
|
|
250
250
|
const r = e.$$;
|
|
251
|
-
r.fragment !== null && (fr(r.after_update),
|
|
251
|
+
r.fragment !== null && (fr(r.after_update), Z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
252
252
|
}
|
|
253
253
|
function gr(e, t) {
|
|
254
|
-
e.$$.dirty[0] === -1 && (
|
|
254
|
+
e.$$.dirty[0] === -1 && (G.push(e), hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
255
255
|
}
|
|
256
256
|
function yr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
257
|
-
const h =
|
|
258
|
-
|
|
257
|
+
const h = ee;
|
|
258
|
+
K(e);
|
|
259
259
|
const u = e.$$ = {
|
|
260
260
|
fragment: null,
|
|
261
261
|
ctx: [],
|
|
262
262
|
// state
|
|
263
263
|
props: o,
|
|
264
|
-
update:
|
|
264
|
+
update: A,
|
|
265
265
|
not_equal: i,
|
|
266
266
|
bound: Qe(),
|
|
267
267
|
// lifecycle
|
|
@@ -280,20 +280,20 @@ function yr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
280
280
|
s && s(u.root);
|
|
281
281
|
let l = !1;
|
|
282
282
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...y) => {
|
|
283
|
-
const
|
|
284
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
285
|
-
}) : [], u.update(), l = !0,
|
|
283
|
+
const b = y.length ? y[0] : c;
|
|
284
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), l && gr(e, f)), c;
|
|
285
|
+
}) : [], u.update(), l = !0, Z(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
286
286
|
if (t.hydrate) {
|
|
287
287
|
const f = or(t.target);
|
|
288
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
288
|
+
u.fragment && u.fragment.l(f), f.forEach(I);
|
|
289
289
|
} else
|
|
290
290
|
u.fragment && u.fragment.c();
|
|
291
|
-
t.intro &&
|
|
291
|
+
t.intro && C(e.$$.fragment), br(e, t.target, t.anchor), S();
|
|
292
292
|
}
|
|
293
|
-
|
|
293
|
+
K(h);
|
|
294
294
|
}
|
|
295
|
-
let
|
|
296
|
-
typeof HTMLElement == "function" && (
|
|
295
|
+
let Bt;
|
|
296
|
+
typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
297
297
|
/** The Svelte component constructor */
|
|
298
298
|
$$ctor;
|
|
299
299
|
/** Slots */
|
|
@@ -335,17 +335,17 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
335
335
|
let o;
|
|
336
336
|
return {
|
|
337
337
|
c: function() {
|
|
338
|
-
o =
|
|
338
|
+
o = P("slot"), i !== "default" && L(o, "name", i);
|
|
339
339
|
},
|
|
340
340
|
/**
|
|
341
341
|
* @param {HTMLElement} target
|
|
342
342
|
* @param {HTMLElement} [anchor]
|
|
343
343
|
*/
|
|
344
344
|
m: function(h, u) {
|
|
345
|
-
|
|
345
|
+
M(h, o, u);
|
|
346
346
|
},
|
|
347
347
|
d: function(h) {
|
|
348
|
-
h &&
|
|
348
|
+
h && I(o);
|
|
349
349
|
}
|
|
350
350
|
};
|
|
351
351
|
};
|
|
@@ -440,7 +440,7 @@ function be(e, t, r, n) {
|
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
function _r(e, t, r, n, i, o) {
|
|
443
|
-
let s = class extends
|
|
443
|
+
let s = class extends Bt {
|
|
444
444
|
constructor() {
|
|
445
445
|
super(e, r, i), this.$$p_d = t;
|
|
446
446
|
}
|
|
@@ -487,7 +487,7 @@ class Er {
|
|
|
487
487
|
$$set = void 0;
|
|
488
488
|
/** @returns {void} */
|
|
489
489
|
$destroy() {
|
|
490
|
-
|
|
490
|
+
pr(this, 1), this.$destroy = A;
|
|
491
491
|
}
|
|
492
492
|
/**
|
|
493
493
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -496,8 +496,8 @@ class Er {
|
|
|
496
496
|
* @returns {() => void}
|
|
497
497
|
*/
|
|
498
498
|
$on(t, r) {
|
|
499
|
-
if (!
|
|
500
|
-
return
|
|
499
|
+
if (!ze(r))
|
|
500
|
+
return A;
|
|
501
501
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
502
502
|
return n.push(r), () => {
|
|
503
503
|
const i = n.indexOf(r);
|
|
@@ -537,73 +537,73 @@ function Hr(e, t, r) {
|
|
|
537
537
|
});
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
const
|
|
541
|
-
function
|
|
540
|
+
const k = [];
|
|
541
|
+
function Br(e, t) {
|
|
542
542
|
return {
|
|
543
|
-
subscribe:
|
|
543
|
+
subscribe: ve(e, t).subscribe
|
|
544
544
|
};
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function ve(e, t = A) {
|
|
547
547
|
let r;
|
|
548
548
|
const n = /* @__PURE__ */ new Set();
|
|
549
549
|
function i(a) {
|
|
550
550
|
if (xt(e, a) && (e = a, r)) {
|
|
551
|
-
const h = !
|
|
551
|
+
const h = !k.length;
|
|
552
552
|
for (const u of n)
|
|
553
|
-
u[1](),
|
|
553
|
+
u[1](), k.push(u, e);
|
|
554
554
|
if (h) {
|
|
555
|
-
for (let u = 0; u <
|
|
556
|
-
|
|
557
|
-
|
|
555
|
+
for (let u = 0; u < k.length; u += 2)
|
|
556
|
+
k[u][0](k[u + 1]);
|
|
557
|
+
k.length = 0;
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
function o(a) {
|
|
562
562
|
i(a(e));
|
|
563
563
|
}
|
|
564
|
-
function s(a, h =
|
|
564
|
+
function s(a, h = A) {
|
|
565
565
|
const u = [a, h];
|
|
566
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
566
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || A), a(e), () => {
|
|
567
567
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
568
568
|
};
|
|
569
569
|
}
|
|
570
570
|
return { set: i, update: o, subscribe: s };
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function J(e, t, r) {
|
|
573
573
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
574
574
|
if (!i.every(Boolean))
|
|
575
575
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
576
576
|
const o = t.length < 2;
|
|
577
|
-
return
|
|
577
|
+
return Br(r, (s, a) => {
|
|
578
578
|
let h = !1;
|
|
579
579
|
const u = [];
|
|
580
|
-
let l = 0, f =
|
|
580
|
+
let l = 0, f = A;
|
|
581
581
|
const c = () => {
|
|
582
582
|
if (l)
|
|
583
583
|
return;
|
|
584
584
|
f();
|
|
585
|
-
const
|
|
586
|
-
o ? s(
|
|
585
|
+
const b = t(n ? u[0] : u, s, a);
|
|
586
|
+
o ? s(b) : f = ze(b) ? b : A;
|
|
587
587
|
}, y = i.map(
|
|
588
|
-
(
|
|
589
|
-
|
|
590
|
-
(
|
|
591
|
-
u[
|
|
588
|
+
(b, v) => Tt(
|
|
589
|
+
b,
|
|
590
|
+
(E) => {
|
|
591
|
+
u[v] = E, l &= ~(1 << v), h && c();
|
|
592
592
|
},
|
|
593
593
|
() => {
|
|
594
|
-
l |= 1 <<
|
|
594
|
+
l |= 1 << v;
|
|
595
595
|
}
|
|
596
596
|
)
|
|
597
597
|
);
|
|
598
598
|
return h = !0, c(), function() {
|
|
599
|
-
|
|
599
|
+
Z(y), f(), h = !1;
|
|
600
600
|
};
|
|
601
601
|
});
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function wr(e) {
|
|
604
604
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
605
605
|
}
|
|
606
|
-
var
|
|
606
|
+
var Sr = function(t) {
|
|
607
607
|
return Ar(t) && !Pr(t);
|
|
608
608
|
};
|
|
609
609
|
function Ar(e) {
|
|
@@ -620,19 +620,19 @@ function Cr(e) {
|
|
|
620
620
|
function Nr(e) {
|
|
621
621
|
return Array.isArray(e) ? [] : {};
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
623
|
+
function te(e, t) {
|
|
624
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? z(Nr(e), e, t) : e;
|
|
625
625
|
}
|
|
626
626
|
function Lr(e, t, r) {
|
|
627
627
|
return e.concat(t).map(function(n) {
|
|
628
|
-
return
|
|
628
|
+
return te(n, r);
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
631
|
function Mr(e, t) {
|
|
632
632
|
if (!t.customMerge)
|
|
633
|
-
return
|
|
633
|
+
return z;
|
|
634
634
|
var r = t.customMerge(e);
|
|
635
|
-
return typeof r == "function" ? r :
|
|
635
|
+
return typeof r == "function" ? r : z;
|
|
636
636
|
}
|
|
637
637
|
function $r(e) {
|
|
638
638
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -642,7 +642,7 @@ function $r(e) {
|
|
|
642
642
|
function et(e) {
|
|
643
643
|
return Object.keys(e).concat($r(e));
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function wt(e, t) {
|
|
646
646
|
try {
|
|
647
647
|
return t in e;
|
|
648
648
|
} catch {
|
|
@@ -650,56 +650,70 @@ function Bt(e, t) {
|
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
652
|
function Rr(e, t) {
|
|
653
|
-
return
|
|
653
|
+
return wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
654
654
|
}
|
|
655
655
|
function Dr(e, t, r) {
|
|
656
656
|
var n = {};
|
|
657
657
|
return r.isMergeableObject(e) && et(e).forEach(function(i) {
|
|
658
|
-
n[i] =
|
|
658
|
+
n[i] = te(e[i], r);
|
|
659
659
|
}), et(t).forEach(function(i) {
|
|
660
|
-
Rr(e, i) || (
|
|
660
|
+
Rr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Mr(i, r)(e[i], t[i], r) : n[i] = te(t[i], r));
|
|
661
661
|
}), n;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
664
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Lr, r.isMergeableObject = r.isMergeableObject ||
|
|
663
|
+
function z(e, t, r) {
|
|
664
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Lr, r.isMergeableObject = r.isMergeableObject || Sr, r.cloneUnlessOtherwiseSpecified = te;
|
|
665
665
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
666
|
-
return o ? n ? r.arrayMerge(e, t, r) : Dr(e, t, r) :
|
|
666
|
+
return o ? n ? r.arrayMerge(e, t, r) : Dr(e, t, r) : te(t, r);
|
|
667
667
|
}
|
|
668
|
-
|
|
668
|
+
z.all = function(t, r) {
|
|
669
669
|
if (!Array.isArray(t))
|
|
670
670
|
throw new Error("first argument should be an array");
|
|
671
671
|
return t.reduce(function(n, i) {
|
|
672
|
-
return
|
|
672
|
+
return z(n, i, r);
|
|
673
673
|
}, {});
|
|
674
674
|
};
|
|
675
|
-
var Ur =
|
|
676
|
-
const Gr = /* @__PURE__ */
|
|
677
|
-
|
|
678
|
-
|
|
675
|
+
var Ur = z, kr = Ur;
|
|
676
|
+
const Gr = /* @__PURE__ */ wr(kr);
|
|
677
|
+
/*! *****************************************************************************
|
|
678
|
+
Copyright (c) Microsoft Corporation.
|
|
679
|
+
|
|
680
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
681
|
+
purpose with or without fee is hereby granted.
|
|
682
|
+
|
|
683
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
684
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
685
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
686
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
687
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
688
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
689
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
690
|
+
***************************************************************************** */
|
|
691
|
+
var $e = function(e, t) {
|
|
692
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
679
693
|
r.__proto__ = n;
|
|
680
694
|
} || function(r, n) {
|
|
681
695
|
for (var i in n)
|
|
682
696
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
683
|
-
},
|
|
697
|
+
}, $e(e, t);
|
|
684
698
|
};
|
|
685
|
-
function
|
|
699
|
+
function xe(e, t) {
|
|
686
700
|
if (typeof t != "function" && t !== null)
|
|
687
701
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
688
|
-
|
|
702
|
+
$e(e, t);
|
|
689
703
|
function r() {
|
|
690
704
|
this.constructor = e;
|
|
691
705
|
}
|
|
692
706
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
693
707
|
}
|
|
694
|
-
var
|
|
695
|
-
return
|
|
708
|
+
var _ = function() {
|
|
709
|
+
return _ = Object.assign || function(t) {
|
|
696
710
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
697
711
|
r = arguments[n];
|
|
698
712
|
for (var o in r)
|
|
699
713
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
700
714
|
}
|
|
701
715
|
return t;
|
|
702
|
-
},
|
|
716
|
+
}, _.apply(this, arguments);
|
|
703
717
|
};
|
|
704
718
|
function Fr(e, t) {
|
|
705
719
|
var r = {};
|
|
@@ -710,14 +724,14 @@ function Fr(e, t) {
|
|
|
710
724
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
711
725
|
return r;
|
|
712
726
|
}
|
|
713
|
-
function
|
|
714
|
-
if (
|
|
727
|
+
function Se(e, t, r) {
|
|
728
|
+
if (arguments.length === 2)
|
|
715
729
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
716
730
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
717
|
-
return e.concat(o ||
|
|
731
|
+
return e.concat(o || t);
|
|
718
732
|
}
|
|
719
|
-
function
|
|
720
|
-
var r = t && t.cache ? t.cache :
|
|
733
|
+
function Ae(e, t) {
|
|
734
|
+
var r = t && t.cache ? t.cache : Zr, n = t && t.serializer ? t.serializer : Wr, i = t && t.strategy ? t.strategy : zr;
|
|
721
735
|
return i(e, {
|
|
722
736
|
cache: r,
|
|
723
737
|
serializer: n
|
|
@@ -726,103 +740,95 @@ function Oe(e, t) {
|
|
|
726
740
|
function jr(e) {
|
|
727
741
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
728
742
|
}
|
|
729
|
-
function
|
|
743
|
+
function St(e, t, r, n) {
|
|
730
744
|
var i = jr(n) ? n : r(n), o = t.get(i);
|
|
731
745
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
732
746
|
}
|
|
733
|
-
function
|
|
747
|
+
function At(e, t, r) {
|
|
734
748
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
735
749
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
736
750
|
}
|
|
737
|
-
function
|
|
751
|
+
function Xe(e, t, r, n, i) {
|
|
738
752
|
return r.bind(t, e, n, i);
|
|
739
753
|
}
|
|
754
|
+
function zr(e, t) {
|
|
755
|
+
var r = e.length === 1 ? St : At;
|
|
756
|
+
return Xe(e, this, r, t.cache.create(), t.serializer);
|
|
757
|
+
}
|
|
740
758
|
function Vr(e, t) {
|
|
741
|
-
|
|
742
|
-
return At(e, this, r, t.cache.create(), t.serializer);
|
|
759
|
+
return Xe(e, this, At, t.cache.create(), t.serializer);
|
|
743
760
|
}
|
|
744
761
|
function Xr(e, t) {
|
|
745
|
-
return
|
|
762
|
+
return Xe(e, this, St, t.cache.create(), t.serializer);
|
|
746
763
|
}
|
|
747
764
|
var Wr = function() {
|
|
748
765
|
return JSON.stringify(arguments);
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
}()
|
|
761
|
-
), Jr = {
|
|
766
|
+
};
|
|
767
|
+
function We() {
|
|
768
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
769
|
+
}
|
|
770
|
+
We.prototype.get = function(e) {
|
|
771
|
+
return this.cache[e];
|
|
772
|
+
};
|
|
773
|
+
We.prototype.set = function(e, t) {
|
|
774
|
+
this.cache[e] = t;
|
|
775
|
+
};
|
|
776
|
+
var Zr = {
|
|
762
777
|
create: function() {
|
|
763
|
-
return new
|
|
778
|
+
return new We();
|
|
764
779
|
}
|
|
765
|
-
},
|
|
766
|
-
variadic:
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
770
|
-
r = arguments[n];
|
|
771
|
-
for (var o in r)
|
|
772
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
773
|
-
}
|
|
774
|
-
return t;
|
|
775
|
-
}, _e.apply(this, arguments);
|
|
776
|
-
};
|
|
777
|
-
var b;
|
|
780
|
+
}, Pe = {
|
|
781
|
+
variadic: Vr,
|
|
782
|
+
monadic: Xr
|
|
783
|
+
}, p;
|
|
778
784
|
(function(e) {
|
|
779
785
|
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";
|
|
780
|
-
})(
|
|
781
|
-
var
|
|
786
|
+
})(p || (p = {}));
|
|
787
|
+
var T;
|
|
782
788
|
(function(e) {
|
|
783
789
|
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";
|
|
784
|
-
})(
|
|
785
|
-
var
|
|
790
|
+
})(T || (T = {}));
|
|
791
|
+
var V;
|
|
786
792
|
(function(e) {
|
|
787
793
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
788
|
-
})(
|
|
794
|
+
})(V || (V = {}));
|
|
789
795
|
function tt(e) {
|
|
790
|
-
return e.type ===
|
|
796
|
+
return e.type === T.literal;
|
|
791
797
|
}
|
|
792
|
-
function
|
|
793
|
-
return e.type ===
|
|
798
|
+
function Jr(e) {
|
|
799
|
+
return e.type === T.argument;
|
|
794
800
|
}
|
|
795
801
|
function Pt(e) {
|
|
796
|
-
return e.type ===
|
|
802
|
+
return e.type === T.number;
|
|
797
803
|
}
|
|
798
804
|
function Ot(e) {
|
|
799
|
-
return e.type ===
|
|
805
|
+
return e.type === T.date;
|
|
800
806
|
}
|
|
801
807
|
function It(e) {
|
|
802
|
-
return e.type ===
|
|
808
|
+
return e.type === T.time;
|
|
803
809
|
}
|
|
804
810
|
function Ct(e) {
|
|
805
|
-
return e.type ===
|
|
811
|
+
return e.type === T.select;
|
|
806
812
|
}
|
|
807
813
|
function Nt(e) {
|
|
808
|
-
return e.type ===
|
|
814
|
+
return e.type === T.plural;
|
|
809
815
|
}
|
|
810
|
-
function
|
|
811
|
-
return e.type ===
|
|
816
|
+
function qr(e) {
|
|
817
|
+
return e.type === T.pound;
|
|
812
818
|
}
|
|
813
819
|
function Lt(e) {
|
|
814
|
-
return e.type ===
|
|
820
|
+
return e.type === T.tag;
|
|
815
821
|
}
|
|
816
822
|
function Mt(e) {
|
|
817
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
823
|
+
return !!(e && typeof e == "object" && e.type === V.number);
|
|
818
824
|
}
|
|
819
|
-
function
|
|
820
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
825
|
+
function Re(e) {
|
|
826
|
+
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
821
827
|
}
|
|
822
|
-
var $t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
823
|
-
function
|
|
828
|
+
var $t = /[ \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;
|
|
829
|
+
function Yr(e) {
|
|
824
830
|
var t = {};
|
|
825
|
-
return e.replace(
|
|
831
|
+
return e.replace(Qr, function(r) {
|
|
826
832
|
var n = r.length;
|
|
827
833
|
switch (r[0]) {
|
|
828
834
|
case "G":
|
|
@@ -911,21 +917,11 @@ function Kr(e) {
|
|
|
911
917
|
return "";
|
|
912
918
|
}), t;
|
|
913
919
|
}
|
|
914
|
-
var
|
|
915
|
-
|
|
916
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
917
|
-
r = arguments[n];
|
|
918
|
-
for (var o in r)
|
|
919
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
920
|
-
}
|
|
921
|
-
return t;
|
|
922
|
-
}, T.apply(this, arguments);
|
|
923
|
-
};
|
|
924
|
-
var en = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
925
|
-
function tn(e) {
|
|
920
|
+
var Kr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
921
|
+
function en(e) {
|
|
926
922
|
if (e.length === 0)
|
|
927
923
|
throw new Error("Number skeleton cannot be empty");
|
|
928
|
-
for (var t = e.split(
|
|
924
|
+
for (var t = e.split(Kr).filter(function(c) {
|
|
929
925
|
return c.length > 0;
|
|
930
926
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
931
927
|
var o = i[n], s = o.split("/");
|
|
@@ -940,10 +936,10 @@ function tn(e) {
|
|
|
940
936
|
}
|
|
941
937
|
return r;
|
|
942
938
|
}
|
|
943
|
-
function
|
|
939
|
+
function tn(e) {
|
|
944
940
|
return e.replace(/^(.*?)-/, "");
|
|
945
941
|
}
|
|
946
|
-
var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
942
|
+
var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g, rn = /(\*)(0+)|(#+)(0+)|(0+)/g, Dt = /^(0+)$/;
|
|
947
943
|
function nt(e) {
|
|
948
944
|
var t = {};
|
|
949
945
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Rt, function(r, n, i) {
|
|
@@ -990,7 +986,7 @@ function Ut(e) {
|
|
|
990
986
|
};
|
|
991
987
|
}
|
|
992
988
|
}
|
|
993
|
-
function
|
|
989
|
+
function nn(e) {
|
|
994
990
|
var t;
|
|
995
991
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
996
992
|
notation: "engineering"
|
|
@@ -1008,7 +1004,7 @@ function it(e) {
|
|
|
1008
1004
|
var t = {}, r = Ut(e);
|
|
1009
1005
|
return r || t;
|
|
1010
1006
|
}
|
|
1011
|
-
function
|
|
1007
|
+
function on(e) {
|
|
1012
1008
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1013
1009
|
var i = n[r];
|
|
1014
1010
|
switch (i.stem) {
|
|
@@ -1032,7 +1028,7 @@ function sn(e) {
|
|
|
1032
1028
|
continue;
|
|
1033
1029
|
case "measure-unit":
|
|
1034
1030
|
case "unit":
|
|
1035
|
-
t.style = "unit", t.unit =
|
|
1031
|
+
t.style = "unit", t.unit = tn(i.options[0]);
|
|
1036
1032
|
continue;
|
|
1037
1033
|
case "compact-short":
|
|
1038
1034
|
case "K":
|
|
@@ -1043,13 +1039,13 @@ function sn(e) {
|
|
|
1043
1039
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1044
1040
|
continue;
|
|
1045
1041
|
case "scientific":
|
|
1046
|
-
t =
|
|
1047
|
-
return
|
|
1042
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1043
|
+
return _(_({}, h), it(u));
|
|
1048
1044
|
}, {}));
|
|
1049
1045
|
continue;
|
|
1050
1046
|
case "engineering":
|
|
1051
|
-
t =
|
|
1052
|
-
return
|
|
1047
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1048
|
+
return _(_({}, h), it(u));
|
|
1053
1049
|
}, {}));
|
|
1054
1050
|
continue;
|
|
1055
1051
|
case "notation-simple":
|
|
@@ -1094,7 +1090,7 @@ function sn(e) {
|
|
|
1094
1090
|
case "integer-width":
|
|
1095
1091
|
if (i.options.length > 1)
|
|
1096
1092
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1097
|
-
i.options[0].replace(
|
|
1093
|
+
i.options[0].replace(rn, function(h, u, l, f, c, y) {
|
|
1098
1094
|
if (u)
|
|
1099
1095
|
t.minimumIntegerDigits = l.length;
|
|
1100
1096
|
else {
|
|
@@ -1118,21 +1114,21 @@ function sn(e) {
|
|
|
1118
1114
|
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), "";
|
|
1119
1115
|
});
|
|
1120
1116
|
var o = i.options[0];
|
|
1121
|
-
o === "w" ? t =
|
|
1117
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), nt(o)));
|
|
1122
1118
|
continue;
|
|
1123
1119
|
}
|
|
1124
1120
|
if (Rt.test(i.stem)) {
|
|
1125
|
-
t =
|
|
1121
|
+
t = _(_({}, t), nt(i.stem));
|
|
1126
1122
|
continue;
|
|
1127
1123
|
}
|
|
1128
1124
|
var s = Ut(i.stem);
|
|
1129
|
-
s && (t =
|
|
1130
|
-
var a =
|
|
1131
|
-
a && (t =
|
|
1125
|
+
s && (t = _(_({}, t), s));
|
|
1126
|
+
var a = nn(i.stem);
|
|
1127
|
+
a && (t = _(_({}, t), a));
|
|
1132
1128
|
}
|
|
1133
1129
|
return t;
|
|
1134
1130
|
}
|
|
1135
|
-
var
|
|
1131
|
+
var le = {
|
|
1136
1132
|
"001": [
|
|
1137
1133
|
"H",
|
|
1138
1134
|
"h"
|
|
@@ -2547,13 +2543,13 @@ var he = {
|
|
|
2547
2543
|
"h"
|
|
2548
2544
|
]
|
|
2549
2545
|
};
|
|
2550
|
-
function
|
|
2546
|
+
function sn(e, t) {
|
|
2551
2547
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2552
2548
|
var i = e.charAt(n);
|
|
2553
2549
|
if (i === "j") {
|
|
2554
2550
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2555
2551
|
o++, n++;
|
|
2556
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2552
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = an(t);
|
|
2557
2553
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2558
2554
|
r += h;
|
|
2559
2555
|
for (; s-- > 0; )
|
|
@@ -2563,7 +2559,7 @@ function an(e, t) {
|
|
|
2563
2559
|
}
|
|
2564
2560
|
return r;
|
|
2565
2561
|
}
|
|
2566
|
-
function
|
|
2562
|
+
function an(e) {
|
|
2567
2563
|
var t = e.hourCycle;
|
|
2568
2564
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2569
2565
|
e.hourCycles && // @ts-ignore
|
|
@@ -2582,23 +2578,23 @@ function un(e) {
|
|
|
2582
2578
|
}
|
|
2583
2579
|
var r = e.language, n;
|
|
2584
2580
|
r !== "root" && (n = e.maximize().region);
|
|
2585
|
-
var i =
|
|
2581
|
+
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
2586
2582
|
return i[0];
|
|
2587
2583
|
}
|
|
2588
|
-
var
|
|
2584
|
+
var Oe, un = new RegExp("^".concat($t.source, "*")), ln = new RegExp("".concat($t.source, "*$"));
|
|
2589
2585
|
function g(e, t) {
|
|
2590
2586
|
return { start: e, end: t };
|
|
2591
2587
|
}
|
|
2592
|
-
var
|
|
2588
|
+
var hn = !!String.prototype.startsWith && "_a".startsWith("a", 1), cn = !!String.fromCodePoint, fn = !!Object.fromEntries, mn = !!String.prototype.codePointAt, dn = !!String.prototype.trimStart, bn = !!String.prototype.trimEnd, pn = !!Number.isSafeInteger, gn = pn ? Number.isSafeInteger : function(e) {
|
|
2593
2589
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2594
|
-
},
|
|
2590
|
+
}, De = !0;
|
|
2595
2591
|
try {
|
|
2596
|
-
var
|
|
2597
|
-
|
|
2592
|
+
var yn = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2593
|
+
De = ((Oe = yn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2598
2594
|
} catch {
|
|
2599
|
-
|
|
2595
|
+
De = !1;
|
|
2600
2596
|
}
|
|
2601
|
-
var ot =
|
|
2597
|
+
var ot = hn ? (
|
|
2602
2598
|
// Native
|
|
2603
2599
|
function(t, r, n) {
|
|
2604
2600
|
return t.startsWith(r, n);
|
|
@@ -2608,7 +2604,7 @@ var ot = cn ? (
|
|
|
2608
2604
|
function(t, r, n) {
|
|
2609
2605
|
return t.slice(n, n + r.length) === r;
|
|
2610
2606
|
}
|
|
2611
|
-
),
|
|
2607
|
+
), Ue = cn ? String.fromCodePoint : (
|
|
2612
2608
|
// IE11
|
|
2613
2609
|
function() {
|
|
2614
2610
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2622,7 +2618,7 @@ var ot = cn ? (
|
|
|
2622
2618
|
}
|
|
2623
2619
|
), st = (
|
|
2624
2620
|
// native
|
|
2625
|
-
|
|
2621
|
+
fn ? Object.fromEntries : (
|
|
2626
2622
|
// Ponyfill
|
|
2627
2623
|
function(t) {
|
|
2628
2624
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2632,7 +2628,7 @@ var ot = cn ? (
|
|
|
2632
2628
|
return r;
|
|
2633
2629
|
}
|
|
2634
2630
|
)
|
|
2635
|
-
), kt =
|
|
2631
|
+
), kt = mn ? (
|
|
2636
2632
|
// Native
|
|
2637
2633
|
function(t, r) {
|
|
2638
2634
|
return t.codePointAt(r);
|
|
@@ -2646,7 +2642,7 @@ var ot = cn ? (
|
|
|
2646
2642
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2647
2643
|
}
|
|
2648
2644
|
}
|
|
2649
|
-
),
|
|
2645
|
+
), _n = dn ? (
|
|
2650
2646
|
// Native
|
|
2651
2647
|
function(t) {
|
|
2652
2648
|
return t.trimStart();
|
|
@@ -2654,9 +2650,9 @@ var ot = cn ? (
|
|
|
2654
2650
|
) : (
|
|
2655
2651
|
// Ponyfill
|
|
2656
2652
|
function(t) {
|
|
2657
|
-
return t.replace(
|
|
2653
|
+
return t.replace(un, "");
|
|
2658
2654
|
}
|
|
2659
|
-
),
|
|
2655
|
+
), En = bn ? (
|
|
2660
2656
|
// Native
|
|
2661
2657
|
function(t) {
|
|
2662
2658
|
return t.trimEnd();
|
|
@@ -2664,32 +2660,32 @@ var ot = cn ? (
|
|
|
2664
2660
|
) : (
|
|
2665
2661
|
// Ponyfill
|
|
2666
2662
|
function(t) {
|
|
2667
|
-
return t.replace(
|
|
2663
|
+
return t.replace(ln, "");
|
|
2668
2664
|
}
|
|
2669
2665
|
);
|
|
2670
2666
|
function Gt(e, t) {
|
|
2671
2667
|
return new RegExp(e, t);
|
|
2672
2668
|
}
|
|
2673
|
-
var
|
|
2674
|
-
if (
|
|
2669
|
+
var ke;
|
|
2670
|
+
if (De) {
|
|
2675
2671
|
var at = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2676
|
-
|
|
2672
|
+
ke = function(t, r) {
|
|
2677
2673
|
var n;
|
|
2678
2674
|
at.lastIndex = r;
|
|
2679
2675
|
var i = at.exec(t);
|
|
2680
2676
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2681
2677
|
};
|
|
2682
2678
|
} else
|
|
2683
|
-
|
|
2679
|
+
ke = function(t, r) {
|
|
2684
2680
|
for (var n = []; ; ) {
|
|
2685
2681
|
var i = kt(t, r);
|
|
2686
|
-
if (i === void 0 || Ft(i) ||
|
|
2682
|
+
if (i === void 0 || Ft(i) || Hn(i))
|
|
2687
2683
|
break;
|
|
2688
2684
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2689
2685
|
}
|
|
2690
|
-
return
|
|
2686
|
+
return Ue.apply(void 0, n);
|
|
2691
2687
|
};
|
|
2692
|
-
var
|
|
2688
|
+
var vn = (
|
|
2693
2689
|
/** @class */
|
|
2694
2690
|
function() {
|
|
2695
2691
|
function e(t, r) {
|
|
@@ -2713,14 +2709,14 @@ var xn = (
|
|
|
2713
2709
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2714
2710
|
var a = this.clonePosition();
|
|
2715
2711
|
this.bump(), i.push({
|
|
2716
|
-
type:
|
|
2712
|
+
type: T.pound,
|
|
2717
2713
|
location: g(a, this.clonePosition())
|
|
2718
2714
|
});
|
|
2719
2715
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2720
2716
|
if (n)
|
|
2721
2717
|
break;
|
|
2722
|
-
return this.error(
|
|
2723
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2718
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
2719
|
+
} else if (o === 60 && !this.ignoreTag && Ge(this.peek() || 0)) {
|
|
2724
2720
|
var s = this.parseTag(t, r);
|
|
2725
2721
|
if (s.err)
|
|
2726
2722
|
return s;
|
|
@@ -2741,7 +2737,7 @@ var xn = (
|
|
|
2741
2737
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2742
2738
|
return {
|
|
2743
2739
|
val: {
|
|
2744
|
-
type:
|
|
2740
|
+
type: T.literal,
|
|
2745
2741
|
value: "<".concat(i, "/>"),
|
|
2746
2742
|
location: g(n, this.clonePosition())
|
|
2747
2743
|
},
|
|
@@ -2753,25 +2749,25 @@ var xn = (
|
|
|
2753
2749
|
return o;
|
|
2754
2750
|
var s = o.val, a = this.clonePosition();
|
|
2755
2751
|
if (this.bumpIf("</")) {
|
|
2756
|
-
if (this.isEOF() || !
|
|
2757
|
-
return this.error(
|
|
2752
|
+
if (this.isEOF() || !Ge(this.char()))
|
|
2753
|
+
return this.error(p.INVALID_TAG, g(a, this.clonePosition()));
|
|
2758
2754
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2759
|
-
return i !== u ? this.error(
|
|
2755
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2760
2756
|
val: {
|
|
2761
|
-
type:
|
|
2757
|
+
type: T.tag,
|
|
2762
2758
|
value: i,
|
|
2763
2759
|
children: s,
|
|
2764
2760
|
location: g(n, this.clonePosition())
|
|
2765
2761
|
},
|
|
2766
2762
|
err: null
|
|
2767
|
-
} : this.error(
|
|
2763
|
+
} : this.error(p.INVALID_TAG, g(a, this.clonePosition())));
|
|
2768
2764
|
} else
|
|
2769
|
-
return this.error(
|
|
2765
|
+
return this.error(p.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
2770
2766
|
} else
|
|
2771
|
-
return this.error(
|
|
2767
|
+
return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
|
|
2772
2768
|
}, e.prototype.parseTagName = function() {
|
|
2773
2769
|
var t = this.offset();
|
|
2774
|
-
for (this.bump(); !this.isEOF() &&
|
|
2770
|
+
for (this.bump(); !this.isEOF() && Tn(this.char()); )
|
|
2775
2771
|
this.bump();
|
|
2776
2772
|
return this.message.slice(t, this.offset());
|
|
2777
2773
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2795,12 +2791,12 @@ var xn = (
|
|
|
2795
2791
|
}
|
|
2796
2792
|
var h = g(n, this.clonePosition());
|
|
2797
2793
|
return {
|
|
2798
|
-
val: { type:
|
|
2794
|
+
val: { type: T.literal, value: i, location: h },
|
|
2799
2795
|
err: null
|
|
2800
2796
|
};
|
|
2801
2797
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2802
2798
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2803
|
-
!
|
|
2799
|
+
!xn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2804
2800
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2805
2801
|
if (this.isEOF() || this.char() !== 39)
|
|
2806
2802
|
return null;
|
|
@@ -2834,28 +2830,28 @@ var xn = (
|
|
|
2834
2830
|
r.push(n);
|
|
2835
2831
|
this.bump();
|
|
2836
2832
|
}
|
|
2837
|
-
return
|
|
2833
|
+
return Ue.apply(void 0, r);
|
|
2838
2834
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2839
2835
|
if (this.isEOF())
|
|
2840
2836
|
return null;
|
|
2841
2837
|
var n = this.char();
|
|
2842
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2838
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ue(n));
|
|
2843
2839
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2844
2840
|
var n = this.clonePosition();
|
|
2845
2841
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2846
|
-
return this.error(
|
|
2842
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
2847
2843
|
if (this.char() === 125)
|
|
2848
|
-
return this.bump(), this.error(
|
|
2844
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
2849
2845
|
var i = this.parseIdentifierIfPossible().value;
|
|
2850
2846
|
if (!i)
|
|
2851
|
-
return this.error(
|
|
2847
|
+
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
2852
2848
|
if (this.bumpSpace(), this.isEOF())
|
|
2853
|
-
return this.error(
|
|
2849
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
2854
2850
|
switch (this.char()) {
|
|
2855
2851
|
case 125:
|
|
2856
2852
|
return this.bump(), {
|
|
2857
2853
|
val: {
|
|
2858
|
-
type:
|
|
2854
|
+
type: T.argument,
|
|
2859
2855
|
// value does not include the opening and closing braces.
|
|
2860
2856
|
value: i,
|
|
2861
2857
|
location: g(n, this.clonePosition())
|
|
@@ -2863,12 +2859,12 @@ var xn = (
|
|
|
2863
2859
|
err: null
|
|
2864
2860
|
};
|
|
2865
2861
|
case 44:
|
|
2866
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2862
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2867
2863
|
default:
|
|
2868
|
-
return this.error(
|
|
2864
|
+
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
2869
2865
|
}
|
|
2870
2866
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2871
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2867
|
+
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
2872
2868
|
this.bumpTo(i);
|
|
2873
2869
|
var o = this.clonePosition(), s = g(t, o);
|
|
2874
2870
|
return { value: n, location: s };
|
|
@@ -2876,7 +2872,7 @@ var xn = (
|
|
|
2876
2872
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2877
2873
|
switch (a) {
|
|
2878
2874
|
case "":
|
|
2879
|
-
return this.error(
|
|
2875
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, g(s, h));
|
|
2880
2876
|
case "number":
|
|
2881
2877
|
case "date":
|
|
2882
2878
|
case "time": {
|
|
@@ -2887,46 +2883,46 @@ var xn = (
|
|
|
2887
2883
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2888
2884
|
if (f.err)
|
|
2889
2885
|
return f;
|
|
2890
|
-
var c =
|
|
2886
|
+
var c = En(f.val);
|
|
2891
2887
|
if (c.length === 0)
|
|
2892
|
-
return this.error(
|
|
2888
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
2893
2889
|
var y = g(l, this.clonePosition());
|
|
2894
2890
|
u = { style: c, styleLocation: y };
|
|
2895
2891
|
}
|
|
2896
|
-
var
|
|
2897
|
-
if (
|
|
2898
|
-
return
|
|
2899
|
-
var
|
|
2892
|
+
var b = this.tryParseArgumentClose(i);
|
|
2893
|
+
if (b.err)
|
|
2894
|
+
return b;
|
|
2895
|
+
var v = g(i, this.clonePosition());
|
|
2900
2896
|
if (u && ot(u?.style, "::", 0)) {
|
|
2901
|
-
var
|
|
2897
|
+
var E = _n(u.style.slice(2));
|
|
2902
2898
|
if (a === "number") {
|
|
2903
|
-
var f = this.parseNumberSkeletonFromString(
|
|
2899
|
+
var f = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
2904
2900
|
return f.err ? f : {
|
|
2905
|
-
val: { type:
|
|
2901
|
+
val: { type: T.number, value: n, location: v, style: f.val },
|
|
2906
2902
|
err: null
|
|
2907
2903
|
};
|
|
2908
2904
|
} else {
|
|
2909
|
-
if (
|
|
2910
|
-
return this.error(
|
|
2911
|
-
var m =
|
|
2912
|
-
this.locale && (m =
|
|
2905
|
+
if (E.length === 0)
|
|
2906
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, v);
|
|
2907
|
+
var m = E;
|
|
2908
|
+
this.locale && (m = sn(E, this.locale));
|
|
2913
2909
|
var c = {
|
|
2914
|
-
type:
|
|
2910
|
+
type: V.dateTime,
|
|
2915
2911
|
pattern: m,
|
|
2916
2912
|
location: u.styleLocation,
|
|
2917
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2918
|
-
},
|
|
2913
|
+
parsedOptions: this.shouldParseSkeletons ? Yr(m) : {}
|
|
2914
|
+
}, x = a === "date" ? T.date : T.time;
|
|
2919
2915
|
return {
|
|
2920
|
-
val: { type:
|
|
2916
|
+
val: { type: x, value: n, location: v, style: c },
|
|
2921
2917
|
err: null
|
|
2922
2918
|
};
|
|
2923
2919
|
}
|
|
2924
2920
|
}
|
|
2925
2921
|
return {
|
|
2926
2922
|
val: {
|
|
2927
|
-
type: a === "number" ?
|
|
2923
|
+
type: a === "number" ? T.number : a === "date" ? T.date : T.time,
|
|
2928
2924
|
value: n,
|
|
2929
|
-
location:
|
|
2925
|
+
location: v,
|
|
2930
2926
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
2931
2927
|
},
|
|
2932
2928
|
err: null
|
|
@@ -2937,39 +2933,39 @@ var xn = (
|
|
|
2937
2933
|
case "select": {
|
|
2938
2934
|
var d = this.clonePosition();
|
|
2939
2935
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2940
|
-
return this.error(
|
|
2936
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, g(d, _({}, d)));
|
|
2941
2937
|
this.bumpSpace();
|
|
2942
|
-
var
|
|
2943
|
-
if (a !== "select" &&
|
|
2938
|
+
var B = this.parseIdentifierIfPossible(), w = 0;
|
|
2939
|
+
if (a !== "select" && B.value === "offset") {
|
|
2944
2940
|
if (!this.bumpIf(":"))
|
|
2945
|
-
return this.error(
|
|
2941
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
2946
2942
|
this.bumpSpace();
|
|
2947
|
-
var f = this.tryParseDecimalInteger(
|
|
2943
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2948
2944
|
if (f.err)
|
|
2949
2945
|
return f;
|
|
2950
|
-
this.bumpSpace(),
|
|
2946
|
+
this.bumpSpace(), B = this.parseIdentifierIfPossible(), w = f.val;
|
|
2951
2947
|
}
|
|
2952
|
-
var
|
|
2953
|
-
if (
|
|
2954
|
-
return
|
|
2955
|
-
var
|
|
2956
|
-
if (
|
|
2957
|
-
return
|
|
2948
|
+
var se = this.tryParsePluralOrSelectOptions(t, a, r, B);
|
|
2949
|
+
if (se.err)
|
|
2950
|
+
return se;
|
|
2951
|
+
var b = this.tryParseArgumentClose(i);
|
|
2952
|
+
if (b.err)
|
|
2953
|
+
return b;
|
|
2958
2954
|
var qe = g(i, this.clonePosition());
|
|
2959
2955
|
return a === "select" ? {
|
|
2960
2956
|
val: {
|
|
2961
|
-
type:
|
|
2957
|
+
type: T.select,
|
|
2962
2958
|
value: n,
|
|
2963
|
-
options: st(
|
|
2959
|
+
options: st(se.val),
|
|
2964
2960
|
location: qe
|
|
2965
2961
|
},
|
|
2966
2962
|
err: null
|
|
2967
2963
|
} : {
|
|
2968
2964
|
val: {
|
|
2969
|
-
type:
|
|
2965
|
+
type: T.plural,
|
|
2970
2966
|
value: n,
|
|
2971
|
-
options: st(
|
|
2972
|
-
offset:
|
|
2967
|
+
options: st(se.val),
|
|
2968
|
+
offset: w,
|
|
2973
2969
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2974
2970
|
location: qe
|
|
2975
2971
|
},
|
|
@@ -2977,10 +2973,10 @@ var xn = (
|
|
|
2977
2973
|
};
|
|
2978
2974
|
}
|
|
2979
2975
|
default:
|
|
2980
|
-
return this.error(
|
|
2976
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, g(s, h));
|
|
2981
2977
|
}
|
|
2982
2978
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2983
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2979
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2984
2980
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2985
2981
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2986
2982
|
var n = this.char();
|
|
@@ -2989,7 +2985,7 @@ var xn = (
|
|
|
2989
2985
|
this.bump();
|
|
2990
2986
|
var i = this.clonePosition();
|
|
2991
2987
|
if (!this.bumpUntil("'"))
|
|
2992
|
-
return this.error(
|
|
2988
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
2993
2989
|
this.bump();
|
|
2994
2990
|
break;
|
|
2995
2991
|
}
|
|
@@ -3019,16 +3015,16 @@ var xn = (
|
|
|
3019
3015
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3020
3016
|
var n = [];
|
|
3021
3017
|
try {
|
|
3022
|
-
n =
|
|
3018
|
+
n = en(t);
|
|
3023
3019
|
} catch {
|
|
3024
|
-
return this.error(
|
|
3020
|
+
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3025
3021
|
}
|
|
3026
3022
|
return {
|
|
3027
3023
|
val: {
|
|
3028
|
-
type:
|
|
3024
|
+
type: V.number,
|
|
3029
3025
|
tokens: n,
|
|
3030
3026
|
location: r,
|
|
3031
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3027
|
+
parsedOptions: this.shouldParseSkeletons ? on(n) : {}
|
|
3032
3028
|
},
|
|
3033
3029
|
err: null
|
|
3034
3030
|
};
|
|
@@ -3037,7 +3033,7 @@ var xn = (
|
|
|
3037
3033
|
if (u.length === 0) {
|
|
3038
3034
|
var f = this.clonePosition();
|
|
3039
3035
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3040
|
-
var c = this.tryParseDecimalInteger(
|
|
3036
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3041
3037
|
if (c.err)
|
|
3042
3038
|
return c;
|
|
3043
3039
|
l = g(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
@@ -3045,26 +3041,26 @@ var xn = (
|
|
|
3045
3041
|
break;
|
|
3046
3042
|
}
|
|
3047
3043
|
if (h.has(u))
|
|
3048
|
-
return this.error(r === "select" ?
|
|
3044
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3049
3045
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3050
3046
|
var y = this.clonePosition();
|
|
3051
3047
|
if (!this.bumpIf("{"))
|
|
3052
|
-
return this.error(r === "select" ?
|
|
3053
|
-
var
|
|
3054
|
-
if (
|
|
3055
|
-
return
|
|
3056
|
-
var
|
|
3057
|
-
if (
|
|
3058
|
-
return
|
|
3048
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3049
|
+
var b = this.parseMessage(t + 1, r, n);
|
|
3050
|
+
if (b.err)
|
|
3051
|
+
return b;
|
|
3052
|
+
var v = this.tryParseArgumentClose(y);
|
|
3053
|
+
if (v.err)
|
|
3054
|
+
return v;
|
|
3059
3055
|
a.push([
|
|
3060
3056
|
u,
|
|
3061
3057
|
{
|
|
3062
|
-
value:
|
|
3058
|
+
value: b.val,
|
|
3063
3059
|
location: g(y, this.clonePosition())
|
|
3064
3060
|
}
|
|
3065
3061
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3066
3062
|
}
|
|
3067
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3063
|
+
return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3068
3064
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3069
3065
|
var n = 1, i = this.clonePosition();
|
|
3070
3066
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3076,7 +3072,7 @@ var xn = (
|
|
|
3076
3072
|
break;
|
|
3077
3073
|
}
|
|
3078
3074
|
var h = g(i, this.clonePosition());
|
|
3079
|
-
return o ? (s *= n,
|
|
3075
|
+
return o ? (s *= n, gn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3080
3076
|
}, e.prototype.offset = function() {
|
|
3081
3077
|
return this.position.offset;
|
|
3082
3078
|
}, e.prototype.isEOF = function() {
|
|
@@ -3142,47 +3138,47 @@ var xn = (
|
|
|
3142
3138
|
}, e;
|
|
3143
3139
|
}()
|
|
3144
3140
|
);
|
|
3145
|
-
function
|
|
3141
|
+
function Ge(e) {
|
|
3146
3142
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3147
3143
|
}
|
|
3148
|
-
function
|
|
3149
|
-
return
|
|
3144
|
+
function xn(e) {
|
|
3145
|
+
return Ge(e) || e === 47;
|
|
3150
3146
|
}
|
|
3151
|
-
function
|
|
3147
|
+
function Tn(e) {
|
|
3152
3148
|
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;
|
|
3153
3149
|
}
|
|
3154
3150
|
function Ft(e) {
|
|
3155
3151
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3156
3152
|
}
|
|
3157
|
-
function
|
|
3153
|
+
function Hn(e) {
|
|
3158
3154
|
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;
|
|
3159
3155
|
}
|
|
3160
|
-
function
|
|
3156
|
+
function Fe(e) {
|
|
3161
3157
|
e.forEach(function(t) {
|
|
3162
3158
|
if (delete t.location, Ct(t) || Nt(t))
|
|
3163
3159
|
for (var r in t.options)
|
|
3164
|
-
delete t.options[r].location,
|
|
3160
|
+
delete t.options[r].location, Fe(t.options[r].value);
|
|
3165
3161
|
else
|
|
3166
|
-
Pt(t) && Mt(t.style) || (Ot(t) || It(t)) &&
|
|
3162
|
+
Pt(t) && Mt(t.style) || (Ot(t) || It(t)) && Re(t.style) ? delete t.style.location : Lt(t) && Fe(t.children);
|
|
3167
3163
|
});
|
|
3168
3164
|
}
|
|
3169
3165
|
function Bn(e, t) {
|
|
3170
|
-
t === void 0 && (t = {}), t =
|
|
3171
|
-
var r = new
|
|
3166
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3167
|
+
var r = new vn(e, t).parse();
|
|
3172
3168
|
if (r.err) {
|
|
3173
|
-
var n = SyntaxError(
|
|
3169
|
+
var n = SyntaxError(p[r.err.kind]);
|
|
3174
3170
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3175
3171
|
}
|
|
3176
|
-
return t?.captureLocation ||
|
|
3172
|
+
return t?.captureLocation || Fe(r.val), r.val;
|
|
3177
3173
|
}
|
|
3178
|
-
var
|
|
3174
|
+
var X;
|
|
3179
3175
|
(function(e) {
|
|
3180
3176
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3181
|
-
})(
|
|
3182
|
-
var
|
|
3177
|
+
})(X || (X = {}));
|
|
3178
|
+
var Te = (
|
|
3183
3179
|
/** @class */
|
|
3184
3180
|
function(e) {
|
|
3185
|
-
|
|
3181
|
+
xe(t, e);
|
|
3186
3182
|
function t(r, n, i) {
|
|
3187
3183
|
var o = e.call(this, r) || this;
|
|
3188
3184
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3194,44 +3190,44 @@ var Se = (
|
|
|
3194
3190
|
), ut = (
|
|
3195
3191
|
/** @class */
|
|
3196
3192
|
function(e) {
|
|
3197
|
-
|
|
3193
|
+
xe(t, e);
|
|
3198
3194
|
function t(r, n, i, o) {
|
|
3199
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3195
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, o) || this;
|
|
3200
3196
|
}
|
|
3201
3197
|
return t;
|
|
3202
|
-
}(
|
|
3198
|
+
}(Te)
|
|
3203
3199
|
), wn = (
|
|
3204
3200
|
/** @class */
|
|
3205
3201
|
function(e) {
|
|
3206
|
-
|
|
3202
|
+
xe(t, e);
|
|
3207
3203
|
function t(r, n, i) {
|
|
3208
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3204
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
|
|
3209
3205
|
}
|
|
3210
3206
|
return t;
|
|
3211
|
-
}(
|
|
3212
|
-
),
|
|
3207
|
+
}(Te)
|
|
3208
|
+
), Sn = (
|
|
3213
3209
|
/** @class */
|
|
3214
3210
|
function(e) {
|
|
3215
|
-
|
|
3211
|
+
xe(t, e);
|
|
3216
3212
|
function t(r, n) {
|
|
3217
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3213
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
|
|
3218
3214
|
}
|
|
3219
3215
|
return t;
|
|
3220
|
-
}(
|
|
3216
|
+
}(Te)
|
|
3221
3217
|
), H;
|
|
3222
3218
|
(function(e) {
|
|
3223
3219
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3224
3220
|
})(H || (H = {}));
|
|
3225
|
-
function
|
|
3221
|
+
function An(e) {
|
|
3226
3222
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3227
3223
|
var n = t[t.length - 1];
|
|
3228
3224
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3229
3225
|
}, []);
|
|
3230
3226
|
}
|
|
3231
|
-
function
|
|
3227
|
+
function Pn(e) {
|
|
3232
3228
|
return typeof e == "function";
|
|
3233
3229
|
}
|
|
3234
|
-
function
|
|
3230
|
+
function pe(e, t, r, n, i, o, s) {
|
|
3235
3231
|
if (e.length === 1 && tt(e[0]))
|
|
3236
3232
|
return [
|
|
3237
3233
|
{
|
|
@@ -3248,7 +3244,7 @@ function ge(e, t, r, n, i, o, s) {
|
|
|
3248
3244
|
});
|
|
3249
3245
|
continue;
|
|
3250
3246
|
}
|
|
3251
|
-
if (
|
|
3247
|
+
if (qr(l)) {
|
|
3252
3248
|
typeof o == "number" && a.push({
|
|
3253
3249
|
type: H.literal,
|
|
3254
3250
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3257,9 +3253,9 @@ function ge(e, t, r, n, i, o, s) {
|
|
|
3257
3253
|
}
|
|
3258
3254
|
var f = l.value;
|
|
3259
3255
|
if (!(i && f in i))
|
|
3260
|
-
throw new
|
|
3256
|
+
throw new Sn(f, s);
|
|
3261
3257
|
var c = i[f];
|
|
3262
|
-
if (
|
|
3258
|
+
if (Jr(l)) {
|
|
3263
3259
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3264
3260
|
type: typeof c == "string" ? H.literal : H.object,
|
|
3265
3261
|
value: c
|
|
@@ -3267,7 +3263,7 @@ function ge(e, t, r, n, i, o, s) {
|
|
|
3267
3263
|
continue;
|
|
3268
3264
|
}
|
|
3269
3265
|
if (Ot(l)) {
|
|
3270
|
-
var y = typeof l.style == "string" ? n.date[l.style] :
|
|
3266
|
+
var y = typeof l.style == "string" ? n.date[l.style] : Re(l.style) ? l.style.parsedOptions : void 0;
|
|
3271
3267
|
a.push({
|
|
3272
3268
|
type: H.literal,
|
|
3273
3269
|
value: r.getDateTimeFormat(t, y).format(c)
|
|
@@ -3275,7 +3271,7 @@ function ge(e, t, r, n, i, o, s) {
|
|
|
3275
3271
|
continue;
|
|
3276
3272
|
}
|
|
3277
3273
|
if (It(l)) {
|
|
3278
|
-
var y = typeof l.style == "string" ? n.time[l.style] :
|
|
3274
|
+
var y = typeof l.style == "string" ? n.time[l.style] : Re(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3279
3275
|
a.push({
|
|
3280
3276
|
type: H.literal,
|
|
3281
3277
|
value: r.getDateTimeFormat(t, y).format(c)
|
|
@@ -3291,16 +3287,16 @@ function ge(e, t, r, n, i, o, s) {
|
|
|
3291
3287
|
continue;
|
|
3292
3288
|
}
|
|
3293
3289
|
if (Lt(l)) {
|
|
3294
|
-
var
|
|
3295
|
-
if (!
|
|
3296
|
-
throw new wn(
|
|
3297
|
-
var m =
|
|
3298
|
-
return
|
|
3290
|
+
var b = l.children, v = l.value, E = i[v];
|
|
3291
|
+
if (!Pn(E))
|
|
3292
|
+
throw new wn(v, "function", s);
|
|
3293
|
+
var m = pe(b, t, r, n, i, o), x = E(m.map(function(w) {
|
|
3294
|
+
return w.value;
|
|
3299
3295
|
}));
|
|
3300
|
-
Array.isArray(
|
|
3296
|
+
Array.isArray(x) || (x = [x]), a.push.apply(a, x.map(function(w) {
|
|
3301
3297
|
return {
|
|
3302
|
-
type: typeof
|
|
3303
|
-
value:
|
|
3298
|
+
type: typeof w == "string" ? H.literal : H.object,
|
|
3299
|
+
value: w
|
|
3304
3300
|
};
|
|
3305
3301
|
}));
|
|
3306
3302
|
}
|
|
@@ -3308,38 +3304,38 @@ function ge(e, t, r, n, i, o, s) {
|
|
|
3308
3304
|
var d = l.options[c] || l.options.other;
|
|
3309
3305
|
if (!d)
|
|
3310
3306
|
throw new ut(l.value, c, Object.keys(l.options), s);
|
|
3311
|
-
a.push.apply(a,
|
|
3307
|
+
a.push.apply(a, pe(d.value, t, r, n, i));
|
|
3312
3308
|
continue;
|
|
3313
3309
|
}
|
|
3314
3310
|
if (Nt(l)) {
|
|
3315
3311
|
var d = l.options["=".concat(c)];
|
|
3316
3312
|
if (!d) {
|
|
3317
3313
|
if (!Intl.PluralRules)
|
|
3318
|
-
throw new
|
|
3314
|
+
throw new Te(`Intl.PluralRules is not available in this environment.
|
|
3319
3315
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3320
|
-
`,
|
|
3321
|
-
var
|
|
3322
|
-
d = l.options[
|
|
3316
|
+
`, X.MISSING_INTL_API, s);
|
|
3317
|
+
var B = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3318
|
+
d = l.options[B] || l.options.other;
|
|
3323
3319
|
}
|
|
3324
3320
|
if (!d)
|
|
3325
3321
|
throw new ut(l.value, c, Object.keys(l.options), s);
|
|
3326
|
-
a.push.apply(a,
|
|
3322
|
+
a.push.apply(a, pe(d.value, t, r, n, i, c - (l.offset || 0)));
|
|
3327
3323
|
continue;
|
|
3328
3324
|
}
|
|
3329
3325
|
}
|
|
3330
|
-
return
|
|
3326
|
+
return An(a);
|
|
3331
3327
|
}
|
|
3332
|
-
function
|
|
3333
|
-
return t ?
|
|
3334
|
-
return r[n] =
|
|
3328
|
+
function On(e, t) {
|
|
3329
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3330
|
+
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
|
3335
3331
|
}, {})) : e;
|
|
3336
3332
|
}
|
|
3337
|
-
function
|
|
3333
|
+
function In(e, t) {
|
|
3338
3334
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3339
|
-
return r[n] =
|
|
3340
|
-
},
|
|
3335
|
+
return r[n] = On(e[n], t[n]), r;
|
|
3336
|
+
}, _({}, e)) : e;
|
|
3341
3337
|
}
|
|
3342
|
-
function
|
|
3338
|
+
function Ie(e) {
|
|
3343
3339
|
return {
|
|
3344
3340
|
create: function() {
|
|
3345
3341
|
return {
|
|
@@ -3353,35 +3349,35 @@ function Ne(e) {
|
|
|
3353
3349
|
}
|
|
3354
3350
|
};
|
|
3355
3351
|
}
|
|
3356
|
-
function
|
|
3352
|
+
function Cn(e) {
|
|
3357
3353
|
return e === void 0 && (e = {
|
|
3358
3354
|
number: {},
|
|
3359
3355
|
dateTime: {},
|
|
3360
3356
|
pluralRules: {}
|
|
3361
3357
|
}), {
|
|
3362
|
-
getNumberFormat:
|
|
3358
|
+
getNumberFormat: Ae(function() {
|
|
3363
3359
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3364
3360
|
r[n] = arguments[n];
|
|
3365
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3361
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3366
3362
|
}, {
|
|
3367
|
-
cache:
|
|
3368
|
-
strategy:
|
|
3363
|
+
cache: Ie(e.number),
|
|
3364
|
+
strategy: Pe.variadic
|
|
3369
3365
|
}),
|
|
3370
|
-
getDateTimeFormat:
|
|
3366
|
+
getDateTimeFormat: Ae(function() {
|
|
3371
3367
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3372
3368
|
r[n] = arguments[n];
|
|
3373
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3369
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3374
3370
|
}, {
|
|
3375
|
-
cache:
|
|
3376
|
-
strategy:
|
|
3371
|
+
cache: Ie(e.dateTime),
|
|
3372
|
+
strategy: Pe.variadic
|
|
3377
3373
|
}),
|
|
3378
|
-
getPluralRules:
|
|
3374
|
+
getPluralRules: Ae(function() {
|
|
3379
3375
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3380
3376
|
r[n] = arguments[n];
|
|
3381
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3377
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Se([void 0], r, !1)))();
|
|
3382
3378
|
}, {
|
|
3383
|
-
cache:
|
|
3384
|
-
strategy:
|
|
3379
|
+
cache: Ie(e.pluralRules),
|
|
3380
|
+
strategy: Pe.variadic
|
|
3385
3381
|
})
|
|
3386
3382
|
};
|
|
3387
3383
|
}
|
|
@@ -3404,7 +3400,7 @@ var jt = (
|
|
|
3404
3400
|
}, []);
|
|
3405
3401
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3406
3402
|
}, this.formatToParts = function(h) {
|
|
3407
|
-
return
|
|
3403
|
+
return pe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3408
3404
|
}, this.resolvedOptions = function() {
|
|
3409
3405
|
var h;
|
|
3410
3406
|
return {
|
|
@@ -3418,12 +3414,12 @@ var jt = (
|
|
|
3418
3414
|
var s = i || {};
|
|
3419
3415
|
s.formatters;
|
|
3420
3416
|
var a = Fr(s, ["formatters"]);
|
|
3421
|
-
this.ast = e.__parse(t,
|
|
3417
|
+
this.ast = e.__parse(t, _(_({}, a), { locale: this.resolvedLocale }));
|
|
3422
3418
|
} else
|
|
3423
3419
|
this.ast = t;
|
|
3424
3420
|
if (!Array.isArray(this.ast))
|
|
3425
3421
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3426
|
-
this.formats =
|
|
3422
|
+
this.formats = In(e.formats, n), this.formatters = i && i.formatters || Cn(this.formatterCache);
|
|
3427
3423
|
}
|
|
3428
3424
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3429
3425
|
get: function() {
|
|
@@ -3497,7 +3493,7 @@ var jt = (
|
|
|
3497
3493
|
}, e;
|
|
3498
3494
|
}()
|
|
3499
3495
|
);
|
|
3500
|
-
function
|
|
3496
|
+
function Nn(e, t) {
|
|
3501
3497
|
if (t == null)
|
|
3502
3498
|
return;
|
|
3503
3499
|
if (t in e)
|
|
@@ -3518,36 +3514,36 @@ function Ln(e, t) {
|
|
|
3518
3514
|
n = void 0;
|
|
3519
3515
|
return n;
|
|
3520
3516
|
}
|
|
3521
|
-
const
|
|
3517
|
+
const N = {}, Ln = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), zt = (e, t) => {
|
|
3522
3518
|
if (t == null)
|
|
3523
3519
|
return;
|
|
3524
|
-
if (t in
|
|
3525
|
-
return
|
|
3526
|
-
const r =
|
|
3520
|
+
if (t in N && e in N[t])
|
|
3521
|
+
return N[t][e];
|
|
3522
|
+
const r = oe(t);
|
|
3527
3523
|
for (let n = 0; n < r.length; n++) {
|
|
3528
|
-
const i = r[n], o =
|
|
3524
|
+
const i = r[n], o = $n(i, e);
|
|
3529
3525
|
if (o)
|
|
3530
|
-
return
|
|
3526
|
+
return Ln(e, t, o);
|
|
3531
3527
|
}
|
|
3532
3528
|
};
|
|
3533
3529
|
let Ze;
|
|
3534
|
-
const
|
|
3535
|
-
function
|
|
3530
|
+
const ie = ve({});
|
|
3531
|
+
function Mn(e) {
|
|
3536
3532
|
return Ze[e] || null;
|
|
3537
3533
|
}
|
|
3538
3534
|
function Vt(e) {
|
|
3539
3535
|
return e in Ze;
|
|
3540
3536
|
}
|
|
3541
|
-
function
|
|
3537
|
+
function $n(e, t) {
|
|
3542
3538
|
if (!Vt(e))
|
|
3543
3539
|
return null;
|
|
3544
|
-
const r =
|
|
3545
|
-
return
|
|
3540
|
+
const r = Mn(e);
|
|
3541
|
+
return Nn(r, t);
|
|
3546
3542
|
}
|
|
3547
|
-
function
|
|
3543
|
+
function Rn(e) {
|
|
3548
3544
|
if (e == null)
|
|
3549
3545
|
return;
|
|
3550
|
-
const t =
|
|
3546
|
+
const t = oe(e);
|
|
3551
3547
|
for (let r = 0; r < t.length; r++) {
|
|
3552
3548
|
const n = t[r];
|
|
3553
3549
|
if (Vt(n))
|
|
@@ -3555,64 +3551,64 @@ function Dn(e) {
|
|
|
3555
3551
|
}
|
|
3556
3552
|
}
|
|
3557
3553
|
function Xt(e, ...t) {
|
|
3558
|
-
delete
|
|
3554
|
+
delete N[e], ie.update((r) => (r[e] = Gr.all([r[e] || {}, ...t]), r));
|
|
3559
3555
|
}
|
|
3560
|
-
|
|
3561
|
-
[
|
|
3556
|
+
J(
|
|
3557
|
+
[ie],
|
|
3562
3558
|
([e]) => Object.keys(e)
|
|
3563
3559
|
);
|
|
3564
|
-
|
|
3565
|
-
const
|
|
3566
|
-
function
|
|
3567
|
-
|
|
3560
|
+
ie.subscribe((e) => Ze = e);
|
|
3561
|
+
const ge = {};
|
|
3562
|
+
function Dn(e, t) {
|
|
3563
|
+
ge[e].delete(t), ge[e].size === 0 && delete ge[e];
|
|
3568
3564
|
}
|
|
3569
3565
|
function Wt(e) {
|
|
3570
|
-
return
|
|
3566
|
+
return ge[e];
|
|
3571
3567
|
}
|
|
3572
|
-
function
|
|
3573
|
-
return
|
|
3568
|
+
function Un(e) {
|
|
3569
|
+
return oe(e).map((t) => {
|
|
3574
3570
|
const r = Wt(t);
|
|
3575
3571
|
return [t, r ? [...r] : []];
|
|
3576
3572
|
}).filter(([, t]) => t.length > 0);
|
|
3577
3573
|
}
|
|
3578
|
-
function
|
|
3579
|
-
return e == null ? !1 :
|
|
3574
|
+
function ye(e) {
|
|
3575
|
+
return e == null ? !1 : oe(e).some(
|
|
3580
3576
|
(t) => {
|
|
3581
3577
|
var r;
|
|
3582
3578
|
return (r = Wt(t)) == null ? void 0 : r.size;
|
|
3583
3579
|
}
|
|
3584
3580
|
);
|
|
3585
3581
|
}
|
|
3586
|
-
function
|
|
3582
|
+
function kn(e, t) {
|
|
3587
3583
|
return Promise.all(
|
|
3588
|
-
t.map((n) => (
|
|
3584
|
+
t.map((n) => (Dn(e, n), n().then((i) => i.default || i)))
|
|
3589
3585
|
).then((n) => Xt(e, ...n));
|
|
3590
3586
|
}
|
|
3591
|
-
const
|
|
3587
|
+
const Q = {};
|
|
3592
3588
|
function Zt(e) {
|
|
3593
|
-
if (!
|
|
3594
|
-
return e in
|
|
3595
|
-
const t =
|
|
3596
|
-
return
|
|
3589
|
+
if (!ye(e))
|
|
3590
|
+
return e in Q ? Q[e] : Promise.resolve();
|
|
3591
|
+
const t = Un(e);
|
|
3592
|
+
return Q[e] = Promise.all(
|
|
3597
3593
|
t.map(
|
|
3598
|
-
([r, n]) =>
|
|
3594
|
+
([r, n]) => kn(r, n)
|
|
3599
3595
|
)
|
|
3600
3596
|
).then(() => {
|
|
3601
|
-
if (
|
|
3597
|
+
if (ye(e))
|
|
3602
3598
|
return Zt(e);
|
|
3603
|
-
delete
|
|
3604
|
-
}),
|
|
3599
|
+
delete Q[e];
|
|
3600
|
+
}), Q[e];
|
|
3605
3601
|
}
|
|
3606
|
-
var lt = Object.getOwnPropertySymbols,
|
|
3602
|
+
var lt = Object.getOwnPropertySymbols, Gn = Object.prototype.hasOwnProperty, Fn = Object.prototype.propertyIsEnumerable, jn = (e, t) => {
|
|
3607
3603
|
var r = {};
|
|
3608
3604
|
for (var n in e)
|
|
3609
|
-
|
|
3605
|
+
Gn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3610
3606
|
if (e != null && lt)
|
|
3611
3607
|
for (var n of lt(e))
|
|
3612
|
-
t.indexOf(n) < 0 &&
|
|
3608
|
+
t.indexOf(n) < 0 && Fn.call(e, n) && (r[n] = e[n]);
|
|
3613
3609
|
return r;
|
|
3614
3610
|
};
|
|
3615
|
-
const
|
|
3611
|
+
const zn = {
|
|
3616
3612
|
number: {
|
|
3617
3613
|
scientific: { notation: "scientific" },
|
|
3618
3614
|
engineering: { notation: "engineering" },
|
|
@@ -3642,28 +3638,28 @@ const Vn = {
|
|
|
3642
3638
|
}
|
|
3643
3639
|
}
|
|
3644
3640
|
};
|
|
3645
|
-
function
|
|
3641
|
+
function Vn({ locale: e, id: t }) {
|
|
3646
3642
|
console.warn(
|
|
3647
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3643
|
+
`[svelte-i18n] The message "${t}" was not found in "${oe(
|
|
3648
3644
|
e
|
|
3649
|
-
).join('", "')}".${
|
|
3645
|
+
).join('", "')}".${ye($()) ? `
|
|
3650
3646
|
|
|
3651
3647
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3652
3648
|
);
|
|
3653
3649
|
}
|
|
3654
|
-
const
|
|
3650
|
+
const Xn = {
|
|
3655
3651
|
fallbackLocale: null,
|
|
3656
3652
|
loadingDelay: 200,
|
|
3657
|
-
formats:
|
|
3653
|
+
formats: zn,
|
|
3658
3654
|
warnOnMissingMessages: !0,
|
|
3659
3655
|
handleMissingMessage: void 0,
|
|
3660
3656
|
ignoreTag: !0
|
|
3661
|
-
},
|
|
3662
|
-
function
|
|
3663
|
-
return
|
|
3657
|
+
}, Y = Xn;
|
|
3658
|
+
function W() {
|
|
3659
|
+
return Y;
|
|
3664
3660
|
}
|
|
3665
|
-
function
|
|
3666
|
-
const t = e, { formats: r } = t, n =
|
|
3661
|
+
function Wn(e) {
|
|
3662
|
+
const t = e, { formats: r } = t, n = jn(t, ["formats"]);
|
|
3667
3663
|
let i = e.fallbackLocale;
|
|
3668
3664
|
if (e.initialLocale)
|
|
3669
3665
|
try {
|
|
@@ -3673,134 +3669,134 @@ function Zn(e) {
|
|
|
3673
3669
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3674
3670
|
);
|
|
3675
3671
|
}
|
|
3676
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3672
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Vn : console.warn(
|
|
3677
3673
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3678
|
-
)), Object.assign(
|
|
3674
|
+
)), Object.assign(Y, n, { initialLocale: i }), r && ("number" in r && Object.assign(Y.formats.number, r.number), "date" in r && Object.assign(Y.formats.date, r.date), "time" in r && Object.assign(Y.formats.time, r.time)), D.set(i);
|
|
3679
3675
|
}
|
|
3680
|
-
const
|
|
3681
|
-
var
|
|
3676
|
+
const Ce = ve(!1);
|
|
3677
|
+
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) => {
|
|
3682
3678
|
for (var r in t || (t = {}))
|
|
3683
|
-
|
|
3679
|
+
Qn.call(t, r) && ct(e, r, t[r]);
|
|
3684
3680
|
if (ht)
|
|
3685
3681
|
for (var r of ht(t))
|
|
3686
|
-
|
|
3682
|
+
Yn.call(t, r) && ct(e, r, t[r]);
|
|
3687
3683
|
return e;
|
|
3688
|
-
},
|
|
3689
|
-
let
|
|
3690
|
-
const
|
|
3684
|
+
}, ei = (e, t) => Jn(e, qn(t));
|
|
3685
|
+
let je;
|
|
3686
|
+
const _e = ve(null);
|
|
3691
3687
|
function ft(e) {
|
|
3692
3688
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3693
3689
|
}
|
|
3694
|
-
function
|
|
3690
|
+
function oe(e, t = W().fallbackLocale) {
|
|
3695
3691
|
const r = ft(e);
|
|
3696
3692
|
return t ? [.../* @__PURE__ */ new Set([...r, ...ft(t)])] : r;
|
|
3697
3693
|
}
|
|
3698
|
-
function
|
|
3699
|
-
return
|
|
3694
|
+
function $() {
|
|
3695
|
+
return je ?? void 0;
|
|
3700
3696
|
}
|
|
3701
|
-
|
|
3702
|
-
|
|
3697
|
+
_e.subscribe((e) => {
|
|
3698
|
+
je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3703
3699
|
});
|
|
3704
|
-
const
|
|
3705
|
-
if (e &&
|
|
3706
|
-
const { loadingDelay: t } =
|
|
3700
|
+
const ti = (e) => {
|
|
3701
|
+
if (e && Rn(e) && ye(e)) {
|
|
3702
|
+
const { loadingDelay: t } = W();
|
|
3707
3703
|
let r;
|
|
3708
|
-
return typeof window < "u" &&
|
|
3709
|
-
() =>
|
|
3704
|
+
return typeof window < "u" && $() != null && t ? r = window.setTimeout(
|
|
3705
|
+
() => Ce.set(!0),
|
|
3710
3706
|
t
|
|
3711
|
-
) :
|
|
3712
|
-
|
|
3707
|
+
) : Ce.set(!0), Zt(e).then(() => {
|
|
3708
|
+
_e.set(e);
|
|
3713
3709
|
}).finally(() => {
|
|
3714
|
-
clearTimeout(r),
|
|
3710
|
+
clearTimeout(r), Ce.set(!1);
|
|
3715
3711
|
});
|
|
3716
3712
|
}
|
|
3717
|
-
return
|
|
3718
|
-
},
|
|
3719
|
-
set:
|
|
3720
|
-
}),
|
|
3713
|
+
return _e.set(e);
|
|
3714
|
+
}, D = ei(Kn({}, _e), {
|
|
3715
|
+
set: ti
|
|
3716
|
+
}), He = (e) => {
|
|
3721
3717
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3722
3718
|
return (n) => {
|
|
3723
3719
|
const i = JSON.stringify(n);
|
|
3724
3720
|
return i in t ? t[i] : t[i] = e(n);
|
|
3725
3721
|
};
|
|
3726
3722
|
};
|
|
3727
|
-
var
|
|
3723
|
+
var ri = Object.defineProperty, Ee = Object.getOwnPropertySymbols, Jt = 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) => {
|
|
3728
3724
|
for (var r in t || (t = {}))
|
|
3729
3725
|
Jt.call(t, r) && mt(e, r, t[r]);
|
|
3730
|
-
if (
|
|
3731
|
-
for (var r of
|
|
3726
|
+
if (Ee)
|
|
3727
|
+
for (var r of Ee(t))
|
|
3732
3728
|
qt.call(t, r) && mt(e, r, t[r]);
|
|
3733
3729
|
return e;
|
|
3734
|
-
},
|
|
3730
|
+
}, q = (e, t) => {
|
|
3735
3731
|
var r = {};
|
|
3736
3732
|
for (var n in e)
|
|
3737
3733
|
Jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3738
|
-
if (e != null &&
|
|
3739
|
-
for (var n of
|
|
3734
|
+
if (e != null && Ee)
|
|
3735
|
+
for (var n of Ee(e))
|
|
3740
3736
|
t.indexOf(n) < 0 && qt.call(e, n) && (r[n] = e[n]);
|
|
3741
3737
|
return r;
|
|
3742
3738
|
};
|
|
3743
|
-
const
|
|
3744
|
-
const { formats: r } =
|
|
3739
|
+
const re = (e, t) => {
|
|
3740
|
+
const { formats: r } = W();
|
|
3745
3741
|
if (e in r && t in r[e])
|
|
3746
3742
|
return r[e][t];
|
|
3747
3743
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3748
|
-
},
|
|
3744
|
+
}, ni = He(
|
|
3749
3745
|
(e) => {
|
|
3750
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3746
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3751
3747
|
if (r == null)
|
|
3752
3748
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3753
|
-
return n && (i =
|
|
3749
|
+
return n && (i = re("number", n)), new Intl.NumberFormat(r, i);
|
|
3754
3750
|
}
|
|
3755
|
-
),
|
|
3751
|
+
), ii = He(
|
|
3756
3752
|
(e) => {
|
|
3757
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3753
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3758
3754
|
if (r == null)
|
|
3759
3755
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3760
|
-
return n ? i =
|
|
3756
|
+
return n ? i = re("date", n) : Object.keys(i).length === 0 && (i = re("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3761
3757
|
}
|
|
3762
|
-
),
|
|
3758
|
+
), oi = He(
|
|
3763
3759
|
(e) => {
|
|
3764
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3760
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3765
3761
|
if (r == null)
|
|
3766
3762
|
throw new Error(
|
|
3767
3763
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3768
3764
|
);
|
|
3769
|
-
return n ? i =
|
|
3765
|
+
return n ? i = re("time", n) : Object.keys(i).length === 0 && (i = re("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3770
3766
|
}
|
|
3771
|
-
),
|
|
3767
|
+
), si = (e = {}) => {
|
|
3772
3768
|
var t = e, {
|
|
3773
|
-
locale: r =
|
|
3774
|
-
} = t, n =
|
|
3769
|
+
locale: r = $()
|
|
3770
|
+
} = t, n = q(t, [
|
|
3775
3771
|
"locale"
|
|
3776
3772
|
]);
|
|
3777
|
-
return
|
|
3778
|
-
},
|
|
3773
|
+
return ni(Je({ locale: r }, n));
|
|
3774
|
+
}, ai = (e = {}) => {
|
|
3779
3775
|
var t = e, {
|
|
3780
|
-
locale: r =
|
|
3781
|
-
} = t, n =
|
|
3776
|
+
locale: r = $()
|
|
3777
|
+
} = t, n = q(t, [
|
|
3782
3778
|
"locale"
|
|
3783
3779
|
]);
|
|
3784
|
-
return
|
|
3785
|
-
},
|
|
3780
|
+
return ii(Je({ locale: r }, n));
|
|
3781
|
+
}, ui = (e = {}) => {
|
|
3786
3782
|
var t = e, {
|
|
3787
|
-
locale: r =
|
|
3788
|
-
} = t, n =
|
|
3783
|
+
locale: r = $()
|
|
3784
|
+
} = t, n = q(t, [
|
|
3789
3785
|
"locale"
|
|
3790
3786
|
]);
|
|
3791
|
-
return
|
|
3792
|
-
},
|
|
3787
|
+
return oi(Je({ locale: r }, n));
|
|
3788
|
+
}, li = He(
|
|
3793
3789
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3794
|
-
(e, t =
|
|
3795
|
-
ignoreTag:
|
|
3790
|
+
(e, t = $()) => new jt(e, t, W().formats, {
|
|
3791
|
+
ignoreTag: W().ignoreTag
|
|
3796
3792
|
})
|
|
3797
|
-
),
|
|
3793
|
+
), hi = (e, t = {}) => {
|
|
3798
3794
|
var r, n, i, o;
|
|
3799
3795
|
let s = t;
|
|
3800
3796
|
typeof e == "object" && (s = e, e = s.id);
|
|
3801
3797
|
const {
|
|
3802
3798
|
values: a,
|
|
3803
|
-
locale: h =
|
|
3799
|
+
locale: h = $(),
|
|
3804
3800
|
default: u
|
|
3805
3801
|
} = s;
|
|
3806
3802
|
if (h == null)
|
|
@@ -3809,7 +3805,7 @@ const ne = (e, t) => {
|
|
|
3809
3805
|
);
|
|
3810
3806
|
let l = zt(e, h);
|
|
3811
3807
|
if (!l)
|
|
3812
|
-
l = (o = (i = (n = (r =
|
|
3808
|
+
l = (o = (i = (n = (r = W()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3813
3809
|
else if (typeof l != "string")
|
|
3814
3810
|
return console.warn(
|
|
3815
3811
|
`[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.`
|
|
@@ -3818,7 +3814,7 @@ const ne = (e, t) => {
|
|
|
3818
3814
|
return l;
|
|
3819
3815
|
let f = l;
|
|
3820
3816
|
try {
|
|
3821
|
-
f =
|
|
3817
|
+
f = li(l, h).format(a);
|
|
3822
3818
|
} catch (c) {
|
|
3823
3819
|
c instanceof Error && console.warn(
|
|
3824
3820
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3826,20 +3822,20 @@ const ne = (e, t) => {
|
|
|
3826
3822
|
);
|
|
3827
3823
|
}
|
|
3828
3824
|
return f;
|
|
3829
|
-
},
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3825
|
+
}, ci = (e, t) => ui(t).format(e), fi = (e, t) => ai(t).format(e), mi = (e, t) => si(t).format(e), di = (e, t = $()) => zt(e, t), bi = J([D, ie], () => hi);
|
|
3826
|
+
J([D], () => ci);
|
|
3827
|
+
J([D], () => fi);
|
|
3828
|
+
J([D], () => mi);
|
|
3829
|
+
J([D, ie], () => di);
|
|
3834
3830
|
function dt(e, t) {
|
|
3835
3831
|
Xt(e, t);
|
|
3836
3832
|
}
|
|
3837
|
-
function
|
|
3838
|
-
|
|
3833
|
+
function pi(e) {
|
|
3834
|
+
Wn({
|
|
3839
3835
|
fallbackLocale: "en"
|
|
3840
|
-
}),
|
|
3836
|
+
}), D.set(e);
|
|
3841
3837
|
}
|
|
3842
|
-
const
|
|
3838
|
+
const bt = {
|
|
3843
3839
|
en: {
|
|
3844
3840
|
errorGeneralTitle: "Error Occurred",
|
|
3845
3841
|
errorGeneralText: "Something went wrong",
|
|
@@ -3893,51 +3889,51 @@ const pt = {
|
|
|
3893
3889
|
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."
|
|
3894
3890
|
}
|
|
3895
3891
|
};
|
|
3896
|
-
function
|
|
3892
|
+
function gi(e) {
|
|
3897
3893
|
er(e, "svelte-s6qloq", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto}.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}.ImagePlaceholder{margin-top:20px;height:200px;width:100%;background:#E6E6E6}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-white, #FFF);text-align:center;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:120%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E)}.CashierErrorButton:hover{background:var(--emw--color-main-button-hover, #71B11B)}.CashierErrorButton:active{background:var(--emw--color-main-button-active, #5C950F)}.CashierErrorContent ui-image img{width:300px}");
|
|
3898
3894
|
}
|
|
3899
|
-
const
|
|
3900
|
-
function
|
|
3895
|
+
const yi = (e) => ({}), pt = (e) => ({}), _i = (e) => ({}), gt = (e) => ({}), Ei = (e) => ({}), yt = (e) => ({}), vi = (e) => ({}), _t = (e) => ({ class: "CashierErrorIcon" });
|
|
3896
|
+
function xi(e) {
|
|
3901
3897
|
let t;
|
|
3902
3898
|
return {
|
|
3903
3899
|
c() {
|
|
3904
|
-
t =
|
|
3900
|
+
t = P("div"), L(t, "class", "ImagePlaceholder Error");
|
|
3905
3901
|
},
|
|
3906
3902
|
m(r, n) {
|
|
3907
|
-
|
|
3903
|
+
M(r, t, n);
|
|
3908
3904
|
},
|
|
3909
|
-
p:
|
|
3905
|
+
p: A,
|
|
3910
3906
|
d(r) {
|
|
3911
|
-
r &&
|
|
3907
|
+
r && I(t);
|
|
3912
3908
|
}
|
|
3913
3909
|
};
|
|
3914
3910
|
}
|
|
3915
|
-
function
|
|
3911
|
+
function Ti(e) {
|
|
3916
3912
|
let t, r;
|
|
3917
3913
|
return {
|
|
3918
3914
|
c() {
|
|
3919
|
-
t =
|
|
3920
|
-
e[0]}/error-general-icon.png`) ||
|
|
3915
|
+
t = P("ui-image"), Ye(t.src, r = `${/*assetsurl*/
|
|
3916
|
+
e[0]}/error-general-icon.png`) || ue(t, "src", r), ue(t, "width", "300px"), ue(t, "alt", "error");
|
|
3921
3917
|
},
|
|
3922
3918
|
m(n, i) {
|
|
3923
|
-
|
|
3919
|
+
M(n, t, i);
|
|
3924
3920
|
},
|
|
3925
3921
|
p(n, i) {
|
|
3926
3922
|
i & /*assetsurl*/
|
|
3927
3923
|
1 && !Ye(t.src, r = `${/*assetsurl*/
|
|
3928
|
-
n[0]}/error-general-icon.png`) &&
|
|
3924
|
+
n[0]}/error-general-icon.png`) && ue(t, "src", r);
|
|
3929
3925
|
},
|
|
3930
3926
|
d(n) {
|
|
3931
|
-
n &&
|
|
3927
|
+
n && I(t);
|
|
3932
3928
|
}
|
|
3933
3929
|
};
|
|
3934
3930
|
}
|
|
3935
|
-
function
|
|
3931
|
+
function Hi(e) {
|
|
3936
3932
|
let t;
|
|
3937
3933
|
function r(o, s) {
|
|
3938
3934
|
return (
|
|
3939
3935
|
/*assetsurl*/
|
|
3940
|
-
o[0] ?
|
|
3936
|
+
o[0] ? Ti : xi
|
|
3941
3937
|
);
|
|
3942
3938
|
}
|
|
3943
3939
|
let n = r(e), i = n(e);
|
|
@@ -3946,13 +3942,13 @@ function Si(e) {
|
|
|
3946
3942
|
i.c(), t = nr();
|
|
3947
3943
|
},
|
|
3948
3944
|
m(o, s) {
|
|
3949
|
-
i.m(o, s),
|
|
3945
|
+
i.m(o, s), M(o, t, s);
|
|
3950
3946
|
},
|
|
3951
3947
|
p(o, s) {
|
|
3952
3948
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t.parentNode, t)));
|
|
3953
3949
|
},
|
|
3954
3950
|
d(o) {
|
|
3955
|
-
o &&
|
|
3951
|
+
o && I(t), i.d(o);
|
|
3956
3952
|
}
|
|
3957
3953
|
};
|
|
3958
3954
|
}
|
|
@@ -3963,18 +3959,18 @@ function Bi(e) {
|
|
|
3963
3959
|
), n;
|
|
3964
3960
|
return {
|
|
3965
3961
|
c() {
|
|
3966
|
-
t =
|
|
3962
|
+
t = P("span"), n = ne(r), L(t, "class", "CashierErrorTitle");
|
|
3967
3963
|
},
|
|
3968
3964
|
m(i, o) {
|
|
3969
|
-
|
|
3965
|
+
M(i, t, o), O(t, n);
|
|
3970
3966
|
},
|
|
3971
3967
|
p(i, o) {
|
|
3972
3968
|
o & /*$_*/
|
|
3973
3969
|
16 && r !== (r = /*$_*/
|
|
3974
|
-
i[4]("errorGeneralTitle") + "") &&
|
|
3970
|
+
i[4]("errorGeneralTitle") + "") && Ve(n, r);
|
|
3975
3971
|
},
|
|
3976
3972
|
d(i) {
|
|
3977
|
-
i &&
|
|
3973
|
+
i && I(t);
|
|
3978
3974
|
}
|
|
3979
3975
|
};
|
|
3980
3976
|
}
|
|
@@ -3986,19 +3982,19 @@ function wi(e) {
|
|
|
3986
3982
|
), n;
|
|
3987
3983
|
return {
|
|
3988
3984
|
c() {
|
|
3989
|
-
t =
|
|
3985
|
+
t = P("span"), n = ne(r), L(t, "class", "CashierErrorText");
|
|
3990
3986
|
},
|
|
3991
3987
|
m(i, o) {
|
|
3992
|
-
|
|
3988
|
+
M(i, t, o), O(t, n);
|
|
3993
3989
|
},
|
|
3994
3990
|
p(i, o) {
|
|
3995
3991
|
o & /*$_, errorcode*/
|
|
3996
3992
|
20 && r !== (r = /*$_*/
|
|
3997
3993
|
i[4](`${/*errorcode*/
|
|
3998
|
-
i[2] || "errorGeneralText"}`) + "") &&
|
|
3994
|
+
i[2] || "errorGeneralText"}`) + "") && Ve(n, r);
|
|
3999
3995
|
},
|
|
4000
3996
|
d(i) {
|
|
4001
|
-
i &&
|
|
3997
|
+
i && I(t);
|
|
4002
3998
|
}
|
|
4003
3999
|
};
|
|
4004
4000
|
}
|
|
@@ -4007,13 +4003,13 @@ function Et(e) {
|
|
|
4007
4003
|
const r = (
|
|
4008
4004
|
/*#slots*/
|
|
4009
4005
|
e[12].button
|
|
4010
|
-
), n =
|
|
4006
|
+
), n = he(
|
|
4011
4007
|
r,
|
|
4012
4008
|
e,
|
|
4013
4009
|
/*$$scope*/
|
|
4014
4010
|
e[11],
|
|
4015
|
-
|
|
4016
|
-
), i = n ||
|
|
4011
|
+
pt
|
|
4012
|
+
), i = n || Si(e);
|
|
4017
4013
|
return {
|
|
4018
4014
|
c() {
|
|
4019
4015
|
i && i.c();
|
|
@@ -4023,48 +4019,48 @@ function Et(e) {
|
|
|
4023
4019
|
},
|
|
4024
4020
|
p(o, s) {
|
|
4025
4021
|
n ? n.p && (!t || s & /*$$scope*/
|
|
4026
|
-
2048) &&
|
|
4022
|
+
2048) && fe(
|
|
4027
4023
|
n,
|
|
4028
4024
|
r,
|
|
4029
4025
|
o,
|
|
4030
4026
|
/*$$scope*/
|
|
4031
4027
|
o[11],
|
|
4032
|
-
t ?
|
|
4028
|
+
t ? ce(
|
|
4033
4029
|
r,
|
|
4034
4030
|
/*$$scope*/
|
|
4035
4031
|
o[11],
|
|
4036
4032
|
s,
|
|
4037
|
-
|
|
4038
|
-
) :
|
|
4033
|
+
yi
|
|
4034
|
+
) : me(
|
|
4039
4035
|
/*$$scope*/
|
|
4040
4036
|
o[11]
|
|
4041
4037
|
),
|
|
4042
|
-
|
|
4038
|
+
pt
|
|
4043
4039
|
) : i && i.p && (!t || s & /*$_*/
|
|
4044
4040
|
16) && i.p(o, t ? s : -1);
|
|
4045
4041
|
},
|
|
4046
4042
|
i(o) {
|
|
4047
|
-
t || (
|
|
4043
|
+
t || (C(i, o), t = !0);
|
|
4048
4044
|
},
|
|
4049
4045
|
o(o) {
|
|
4050
|
-
|
|
4046
|
+
F(i, o), t = !1;
|
|
4051
4047
|
},
|
|
4052
4048
|
d(o) {
|
|
4053
4049
|
i && i.d(o);
|
|
4054
4050
|
}
|
|
4055
4051
|
};
|
|
4056
4052
|
}
|
|
4057
|
-
function
|
|
4053
|
+
function Si(e) {
|
|
4058
4054
|
let t, r, n = (
|
|
4059
4055
|
/*$_*/
|
|
4060
4056
|
e[4]("errorGeneralButton") + ""
|
|
4061
4057
|
), i, o, s;
|
|
4062
4058
|
return {
|
|
4063
4059
|
c() {
|
|
4064
|
-
t =
|
|
4060
|
+
t = P("button"), r = P("span"), i = ne(n), L(t, "class", "CashierErrorButton");
|
|
4065
4061
|
},
|
|
4066
4062
|
m(a, h) {
|
|
4067
|
-
|
|
4063
|
+
M(a, t, h), O(t, r), O(r, i), o || (s = ir(
|
|
4068
4064
|
t,
|
|
4069
4065
|
"click",
|
|
4070
4066
|
/*close*/
|
|
@@ -4074,28 +4070,28 @@ function Ai(e) {
|
|
|
4074
4070
|
p(a, h) {
|
|
4075
4071
|
h & /*$_*/
|
|
4076
4072
|
16 && n !== (n = /*$_*/
|
|
4077
|
-
a[4]("errorGeneralButton") + "") &&
|
|
4073
|
+
a[4]("errorGeneralButton") + "") && Ve(i, n);
|
|
4078
4074
|
},
|
|
4079
4075
|
d(a) {
|
|
4080
|
-
a &&
|
|
4076
|
+
a && I(t), o = !1, s();
|
|
4081
4077
|
}
|
|
4082
4078
|
};
|
|
4083
4079
|
}
|
|
4084
|
-
function
|
|
4080
|
+
function Ai(e) {
|
|
4085
4081
|
let t, r, n, i, o, s;
|
|
4086
4082
|
const a = (
|
|
4087
4083
|
/*#slots*/
|
|
4088
4084
|
e[12].icon
|
|
4089
|
-
), h =
|
|
4085
|
+
), h = he(
|
|
4090
4086
|
a,
|
|
4091
4087
|
e,
|
|
4092
4088
|
/*$$scope*/
|
|
4093
4089
|
e[11],
|
|
4094
4090
|
_t
|
|
4095
|
-
), u = h ||
|
|
4091
|
+
), u = h || Hi(e), l = (
|
|
4096
4092
|
/*#slots*/
|
|
4097
4093
|
e[12].title
|
|
4098
|
-
), f =
|
|
4094
|
+
), f = he(
|
|
4099
4095
|
l,
|
|
4100
4096
|
e,
|
|
4101
4097
|
/*$$scope*/
|
|
@@ -4104,141 +4100,141 @@ function Pi(e) {
|
|
|
4104
4100
|
), c = f || Bi(e), y = (
|
|
4105
4101
|
/*#slots*/
|
|
4106
4102
|
e[12].text
|
|
4107
|
-
),
|
|
4103
|
+
), b = he(
|
|
4108
4104
|
y,
|
|
4109
4105
|
e,
|
|
4110
4106
|
/*$$scope*/
|
|
4111
4107
|
e[11],
|
|
4112
4108
|
gt
|
|
4113
|
-
),
|
|
4114
|
-
let
|
|
4109
|
+
), v = b || wi(e);
|
|
4110
|
+
let E = (!/*hidebuttons*/
|
|
4115
4111
|
e[1] || /*hidebuttons*/
|
|
4116
4112
|
e[1] === "false") && Et(e);
|
|
4117
4113
|
return {
|
|
4118
4114
|
c() {
|
|
4119
|
-
t =
|
|
4115
|
+
t = P("div"), r = P("div"), u && u.c(), n = Be(), c && c.c(), i = Be(), v && v.c(), o = Be(), E && E.c(), L(r, "class", "CashierErrorContent"), L(t, "class", "CashierError");
|
|
4120
4116
|
},
|
|
4121
|
-
m(m,
|
|
4122
|
-
|
|
4117
|
+
m(m, x) {
|
|
4118
|
+
M(m, t, x), O(t, r), u && u.m(r, null), O(r, n), c && c.m(r, null), O(r, i), v && v.m(r, null), O(r, o), E && E.m(r, null), e[13](t), s = !0;
|
|
4123
4119
|
},
|
|
4124
|
-
p(m, [
|
|
4125
|
-
h ? h.p && (!s ||
|
|
4126
|
-
2048) &&
|
|
4120
|
+
p(m, [x]) {
|
|
4121
|
+
h ? h.p && (!s || x & /*$$scope*/
|
|
4122
|
+
2048) && fe(
|
|
4127
4123
|
h,
|
|
4128
4124
|
a,
|
|
4129
4125
|
m,
|
|
4130
4126
|
/*$$scope*/
|
|
4131
4127
|
m[11],
|
|
4132
|
-
s ?
|
|
4128
|
+
s ? ce(
|
|
4133
4129
|
a,
|
|
4134
4130
|
/*$$scope*/
|
|
4135
4131
|
m[11],
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
) :
|
|
4132
|
+
x,
|
|
4133
|
+
vi
|
|
4134
|
+
) : me(
|
|
4139
4135
|
/*$$scope*/
|
|
4140
4136
|
m[11]
|
|
4141
4137
|
),
|
|
4142
4138
|
_t
|
|
4143
|
-
) : u && u.p && (!s ||
|
|
4144
|
-
1) && u.p(m, s ?
|
|
4145
|
-
2048) &&
|
|
4139
|
+
) : u && u.p && (!s || x & /*assetsurl*/
|
|
4140
|
+
1) && u.p(m, s ? x : -1), f ? f.p && (!s || x & /*$$scope*/
|
|
4141
|
+
2048) && fe(
|
|
4146
4142
|
f,
|
|
4147
4143
|
l,
|
|
4148
4144
|
m,
|
|
4149
4145
|
/*$$scope*/
|
|
4150
4146
|
m[11],
|
|
4151
|
-
s ?
|
|
4147
|
+
s ? ce(
|
|
4152
4148
|
l,
|
|
4153
4149
|
/*$$scope*/
|
|
4154
4150
|
m[11],
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
) :
|
|
4151
|
+
x,
|
|
4152
|
+
Ei
|
|
4153
|
+
) : me(
|
|
4158
4154
|
/*$$scope*/
|
|
4159
4155
|
m[11]
|
|
4160
4156
|
),
|
|
4161
4157
|
yt
|
|
4162
|
-
) : c && c.p && (!s ||
|
|
4163
|
-
16) && c.p(m, s ?
|
|
4164
|
-
2048) &&
|
|
4165
|
-
|
|
4158
|
+
) : c && c.p && (!s || x & /*$_*/
|
|
4159
|
+
16) && c.p(m, s ? x : -1), b ? b.p && (!s || x & /*$$scope*/
|
|
4160
|
+
2048) && fe(
|
|
4161
|
+
b,
|
|
4166
4162
|
y,
|
|
4167
4163
|
m,
|
|
4168
4164
|
/*$$scope*/
|
|
4169
4165
|
m[11],
|
|
4170
|
-
s ?
|
|
4166
|
+
s ? ce(
|
|
4171
4167
|
y,
|
|
4172
4168
|
/*$$scope*/
|
|
4173
4169
|
m[11],
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
) :
|
|
4170
|
+
x,
|
|
4171
|
+
_i
|
|
4172
|
+
) : me(
|
|
4177
4173
|
/*$$scope*/
|
|
4178
4174
|
m[11]
|
|
4179
4175
|
),
|
|
4180
4176
|
gt
|
|
4181
|
-
) :
|
|
4182
|
-
20) &&
|
|
4177
|
+
) : v && v.p && (!s || x & /*$_, errorcode*/
|
|
4178
|
+
20) && v.p(m, s ? x : -1), !/*hidebuttons*/
|
|
4183
4179
|
m[1] || /*hidebuttons*/
|
|
4184
|
-
m[1] === "false" ?
|
|
4185
|
-
2 &&
|
|
4186
|
-
|
|
4180
|
+
m[1] === "false" ? E ? (E.p(m, x), x & /*hidebuttons*/
|
|
4181
|
+
2 && C(E, 1)) : (E = Et(m), E.c(), C(E, 1), E.m(r, null)) : E && (mr(), F(E, 1, 1, () => {
|
|
4182
|
+
E = null;
|
|
4187
4183
|
}), dr());
|
|
4188
4184
|
},
|
|
4189
4185
|
i(m) {
|
|
4190
|
-
s || (
|
|
4186
|
+
s || (C(u, m), C(c, m), C(v, m), C(E), s = !0);
|
|
4191
4187
|
},
|
|
4192
4188
|
o(m) {
|
|
4193
|
-
|
|
4189
|
+
F(u, m), F(c, m), F(v, m), F(E), s = !1;
|
|
4194
4190
|
},
|
|
4195
4191
|
d(m) {
|
|
4196
|
-
m &&
|
|
4192
|
+
m && I(t), u && u.d(m), c && c.d(m), v && v.d(m), E && E.d(), e[13](null);
|
|
4197
4193
|
}
|
|
4198
4194
|
};
|
|
4199
4195
|
}
|
|
4200
|
-
function
|
|
4196
|
+
function Pi(e, t, r) {
|
|
4201
4197
|
let n;
|
|
4202
4198
|
Kt(e, bi, (d) => r(4, n = d));
|
|
4203
|
-
let { $$slots: i = {}, $$scope: o } = t, { assetsurl: s = "" } = t, { lang: a = "en" } = t, { hidebuttons: h = "" } = t, { errorcode: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: c = "" } = t, { mbsource: y = "" } = t,
|
|
4204
|
-
const
|
|
4205
|
-
|
|
4206
|
-
},
|
|
4207
|
-
fetch(c).then((
|
|
4208
|
-
Object.keys(
|
|
4209
|
-
dt(
|
|
4199
|
+
let { $$slots: i = {}, $$scope: o } = t, { assetsurl: s = "" } = t, { lang: a = "en" } = t, { hidebuttons: h = "" } = t, { errorcode: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: c = "" } = t, { mbsource: y = "" } = t, b;
|
|
4200
|
+
const v = () => {
|
|
4201
|
+
pi(a);
|
|
4202
|
+
}, E = () => {
|
|
4203
|
+
fetch(c).then((B) => B.json()).then((B) => {
|
|
4204
|
+
Object.keys(B).forEach((w) => {
|
|
4205
|
+
dt(w, B[w]);
|
|
4210
4206
|
});
|
|
4211
|
-
}).catch((
|
|
4212
|
-
console.error(
|
|
4207
|
+
}).catch((B) => {
|
|
4208
|
+
console.error(B);
|
|
4213
4209
|
});
|
|
4214
4210
|
};
|
|
4215
|
-
Object.keys(
|
|
4216
|
-
dt(d,
|
|
4211
|
+
Object.keys(bt).forEach((d) => {
|
|
4212
|
+
dt(d, bt[d]);
|
|
4217
4213
|
});
|
|
4218
4214
|
const m = () => {
|
|
4219
4215
|
window.postMessage({ type: "ErrorClose" }, window.location.href);
|
|
4220
4216
|
};
|
|
4221
4217
|
ur(() => () => {
|
|
4222
4218
|
});
|
|
4223
|
-
function
|
|
4224
|
-
|
|
4225
|
-
|
|
4219
|
+
function x(d) {
|
|
4220
|
+
Ne[d ? "unshift" : "push"](() => {
|
|
4221
|
+
b = d, r(3, b);
|
|
4226
4222
|
});
|
|
4227
4223
|
}
|
|
4228
4224
|
return e.$$set = (d) => {
|
|
4229
4225
|
"assetsurl" in d && r(0, s = 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, o = d.$$scope);
|
|
4230
4226
|
}, e.$$.update = () => {
|
|
4231
4227
|
e.$$.dirty & /*lang*/
|
|
4232
|
-
64 && a &&
|
|
4233
|
-
136 && l &&
|
|
4234
|
-
264 && f &&
|
|
4235
|
-
1032 && y &&
|
|
4236
|
-
512 && c &&
|
|
4228
|
+
64 && a && v(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4229
|
+
136 && l && b && xr(b, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4230
|
+
264 && f && b && Tr(b, f), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4231
|
+
1032 && y && b && Hr(b, `${y}.Style`), e.$$.dirty & /*translationurl*/
|
|
4232
|
+
512 && c && E();
|
|
4237
4233
|
}, [
|
|
4238
4234
|
s,
|
|
4239
4235
|
h,
|
|
4240
4236
|
u,
|
|
4241
|
-
|
|
4237
|
+
b,
|
|
4242
4238
|
n,
|
|
4243
4239
|
m,
|
|
4244
4240
|
a,
|
|
@@ -4248,16 +4244,16 @@ function Oi(e, t, r) {
|
|
|
4248
4244
|
y,
|
|
4249
4245
|
o,
|
|
4250
4246
|
i,
|
|
4251
|
-
|
|
4247
|
+
x
|
|
4252
4248
|
];
|
|
4253
4249
|
}
|
|
4254
|
-
class
|
|
4250
|
+
class Oi extends Er {
|
|
4255
4251
|
constructor(t) {
|
|
4256
4252
|
super(), yr(
|
|
4257
4253
|
this,
|
|
4258
4254
|
t,
|
|
4259
|
-
Oi,
|
|
4260
4255
|
Pi,
|
|
4256
|
+
Ai,
|
|
4261
4257
|
xt,
|
|
4262
4258
|
{
|
|
4263
4259
|
assetsurl: 0,
|
|
@@ -4269,59 +4265,59 @@ class Ii extends Er {
|
|
|
4269
4265
|
translationurl: 9,
|
|
4270
4266
|
mbsource: 10
|
|
4271
4267
|
},
|
|
4272
|
-
|
|
4268
|
+
gi
|
|
4273
4269
|
);
|
|
4274
4270
|
}
|
|
4275
4271
|
get assetsurl() {
|
|
4276
4272
|
return this.$$.ctx[0];
|
|
4277
4273
|
}
|
|
4278
4274
|
set assetsurl(t) {
|
|
4279
|
-
this.$$set({ assetsurl: t }),
|
|
4275
|
+
this.$$set({ assetsurl: t }), S();
|
|
4280
4276
|
}
|
|
4281
4277
|
get lang() {
|
|
4282
4278
|
return this.$$.ctx[6];
|
|
4283
4279
|
}
|
|
4284
4280
|
set lang(t) {
|
|
4285
|
-
this.$$set({ lang: t }),
|
|
4281
|
+
this.$$set({ lang: t }), S();
|
|
4286
4282
|
}
|
|
4287
4283
|
get hidebuttons() {
|
|
4288
4284
|
return this.$$.ctx[1];
|
|
4289
4285
|
}
|
|
4290
4286
|
set hidebuttons(t) {
|
|
4291
|
-
this.$$set({ hidebuttons: t }),
|
|
4287
|
+
this.$$set({ hidebuttons: t }), S();
|
|
4292
4288
|
}
|
|
4293
4289
|
get errorcode() {
|
|
4294
4290
|
return this.$$.ctx[2];
|
|
4295
4291
|
}
|
|
4296
4292
|
set errorcode(t) {
|
|
4297
|
-
this.$$set({ errorcode: t }),
|
|
4293
|
+
this.$$set({ errorcode: t }), S();
|
|
4298
4294
|
}
|
|
4299
4295
|
get clientstyling() {
|
|
4300
4296
|
return this.$$.ctx[7];
|
|
4301
4297
|
}
|
|
4302
4298
|
set clientstyling(t) {
|
|
4303
|
-
this.$$set({ clientstyling: t }),
|
|
4299
|
+
this.$$set({ clientstyling: t }), S();
|
|
4304
4300
|
}
|
|
4305
4301
|
get clientstylingurl() {
|
|
4306
4302
|
return this.$$.ctx[8];
|
|
4307
4303
|
}
|
|
4308
4304
|
set clientstylingurl(t) {
|
|
4309
|
-
this.$$set({ clientstylingurl: t }),
|
|
4305
|
+
this.$$set({ clientstylingurl: t }), S();
|
|
4310
4306
|
}
|
|
4311
4307
|
get translationurl() {
|
|
4312
4308
|
return this.$$.ctx[9];
|
|
4313
4309
|
}
|
|
4314
4310
|
set translationurl(t) {
|
|
4315
|
-
this.$$set({ translationurl: t }),
|
|
4311
|
+
this.$$set({ translationurl: t }), S();
|
|
4316
4312
|
}
|
|
4317
4313
|
get mbsource() {
|
|
4318
4314
|
return this.$$.ctx[10];
|
|
4319
4315
|
}
|
|
4320
4316
|
set mbsource(t) {
|
|
4321
|
-
this.$$set({ mbsource: t }),
|
|
4317
|
+
this.$$set({ mbsource: t }), S();
|
|
4322
4318
|
}
|
|
4323
4319
|
}
|
|
4324
|
-
_r(
|
|
4320
|
+
_r(Oi, { assetsurl: {}, lang: {}, hidebuttons: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
4325
4321
|
export {
|
|
4326
|
-
|
|
4322
|
+
Oi as C
|
|
4327
4323
|
};
|