@everymatrix/cashier-video-modal 1.86.2 → 1.86.4
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/CashierVideoModal-Bpq3MB7x.cjs +18 -0
- package/components/{CashierVideoModal-0LfI1rtL.js → CashierVideoModal-FmlerUse.js} +717 -738
- package/components/{CashierVideoModal-R5-60Ibb.js → CashierVideoModal-Xx56q-gw.js} +702 -723
- package/es2015/cashier-video-modal.cjs +1 -1
- package/es2015/cashier-video-modal.js +1 -1
- package/esnext/cashier-video-modal.js +1 -1
- package/package.json +1 -1
- package/components/CashierVideoModal-D7q0MqRa.cjs +0 -18
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function S() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Ht(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Qe() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function K(e) {
|
|
10
|
+
e.forEach(Ht);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ve(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function wt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let ie;
|
|
19
|
-
function
|
|
19
|
+
function Je(e, t) {
|
|
20
20
|
return e === t ? !0 : (ie || (ie = document.createElement("a")), ie.href = t, e === ie.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function or(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function sr(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,17 +31,17 @@ function ar(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function T(e, t) {
|
|
35
35
|
e.appendChild(t);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
const n =
|
|
37
|
+
function ar(e, t, r) {
|
|
38
|
+
const n = ur(e);
|
|
39
39
|
if (!n.getElementById(t)) {
|
|
40
|
-
const i =
|
|
41
|
-
i.id = t, i.textContent = r,
|
|
40
|
+
const i = O("style");
|
|
41
|
+
i.id = t, i.textContent = r, hr(n, i);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function ur(e) {
|
|
45
45
|
if (!e)
|
|
46
46
|
return document;
|
|
47
47
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -51,47 +51,47 @@ function hr(e) {
|
|
|
51
51
|
t
|
|
52
52
|
) : e.ownerDocument;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
return
|
|
54
|
+
function hr(e, t) {
|
|
55
|
+
return T(
|
|
56
56
|
/** @type {Document} */
|
|
57
57
|
e.head || e,
|
|
58
58
|
t
|
|
59
59
|
), t.sheet;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function ee(e, t, r) {
|
|
62
62
|
e.insertBefore(t, r || null);
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function k(e) {
|
|
65
65
|
e.parentNode && e.parentNode.removeChild(e);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function O(e) {
|
|
68
68
|
return document.createElement(e);
|
|
69
69
|
}
|
|
70
70
|
function fe(e) {
|
|
71
71
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Tt(e) {
|
|
74
74
|
return document.createTextNode(e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return
|
|
76
|
+
function qe() {
|
|
77
|
+
return Tt(" ");
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function lr() {
|
|
80
|
+
return Tt("");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Bt(e, t, r, n) {
|
|
83
83
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
84
84
|
}
|
|
85
85
|
function _(e, t, r) {
|
|
86
86
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function fr(e) {
|
|
89
89
|
return Array.from(e.childNodes);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Ye(e, t, r) {
|
|
92
92
|
e.classList.toggle(t, !!r);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function cr(e) {
|
|
95
95
|
const t = {};
|
|
96
96
|
return e.childNodes.forEach(
|
|
97
97
|
/** @param {Element} node */
|
|
@@ -100,87 +100,87 @@ function pr(e) {
|
|
|
100
100
|
}
|
|
101
101
|
), t;
|
|
102
102
|
}
|
|
103
|
-
let
|
|
104
|
-
function
|
|
105
|
-
|
|
103
|
+
let J;
|
|
104
|
+
function Q(e) {
|
|
105
|
+
J = e;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
if (!
|
|
107
|
+
function pr() {
|
|
108
|
+
if (!J)
|
|
109
109
|
throw new Error("Function called outside component initialization");
|
|
110
|
-
return
|
|
110
|
+
return J;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
112
|
+
function dr(e) {
|
|
113
|
+
pr().$$.on_mount.push(e);
|
|
114
114
|
}
|
|
115
|
-
const $ = [],
|
|
115
|
+
const $ = [], Be = [];
|
|
116
116
|
let U = [];
|
|
117
|
-
const
|
|
118
|
-
let
|
|
119
|
-
function
|
|
120
|
-
|
|
117
|
+
const Ke = [], mr = /* @__PURE__ */ Promise.resolve();
|
|
118
|
+
let Ae = !1;
|
|
119
|
+
function br() {
|
|
120
|
+
Ae || (Ae = !0, mr.then(R));
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Pe(e) {
|
|
123
123
|
U.push(e);
|
|
124
124
|
}
|
|
125
|
-
const
|
|
125
|
+
const ye = /* @__PURE__ */ new Set();
|
|
126
126
|
let N = 0;
|
|
127
127
|
function R() {
|
|
128
128
|
if (N !== 0)
|
|
129
129
|
return;
|
|
130
|
-
const e =
|
|
130
|
+
const e = J;
|
|
131
131
|
do {
|
|
132
132
|
try {
|
|
133
133
|
for (; N < $.length; ) {
|
|
134
134
|
const t = $[N];
|
|
135
|
-
N++,
|
|
135
|
+
N++, Q(t), vr(t.$$);
|
|
136
136
|
}
|
|
137
137
|
} catch (t) {
|
|
138
138
|
throw $.length = 0, N = 0, t;
|
|
139
139
|
}
|
|
140
|
-
for (
|
|
141
|
-
|
|
140
|
+
for (Q(null), $.length = 0, N = 0; Be.length; )
|
|
141
|
+
Be.pop()();
|
|
142
142
|
for (let t = 0; t < U.length; t += 1) {
|
|
143
143
|
const r = U[t];
|
|
144
|
-
|
|
144
|
+
ye.has(r) || (ye.add(r), r());
|
|
145
145
|
}
|
|
146
146
|
U.length = 0;
|
|
147
147
|
} while ($.length);
|
|
148
|
-
for (;
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
for (; Ke.length; )
|
|
149
|
+
Ke.pop()();
|
|
150
|
+
Ae = !1, ye.clear(), Q(e);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function vr(e) {
|
|
153
153
|
if (e.fragment !== null) {
|
|
154
|
-
e.update(),
|
|
154
|
+
e.update(), K(e.before_update);
|
|
155
155
|
const t = e.dirty;
|
|
156
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
156
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Pe);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function gr(e) {
|
|
160
160
|
const t = [], r = [];
|
|
161
161
|
U.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), U = t;
|
|
162
162
|
}
|
|
163
|
-
const
|
|
164
|
-
function
|
|
165
|
-
e && e.i && (
|
|
163
|
+
const yr = /* @__PURE__ */ new Set();
|
|
164
|
+
function _r(e, t) {
|
|
165
|
+
e && e.i && (yr.delete(e), e.i(t));
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function Er(e, t, r) {
|
|
168
168
|
const { fragment: n, after_update: i } = e.$$;
|
|
169
|
-
n && n.m(t, r),
|
|
170
|
-
const o = e.$$.on_mount.map(
|
|
171
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
172
|
-
}), i.forEach(
|
|
169
|
+
n && n.m(t, r), Pe(() => {
|
|
170
|
+
const o = e.$$.on_mount.map(Ht).filter(Ve);
|
|
171
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : K(o), e.$$.on_mount = [];
|
|
172
|
+
}), i.forEach(Pe);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function xr(e, t) {
|
|
175
175
|
const r = e.$$;
|
|
176
|
-
r.fragment !== null && (
|
|
176
|
+
r.fragment !== null && (gr(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
e.$$.dirty[0] === -1 && ($.push(e),
|
|
178
|
+
function Sr(e, t) {
|
|
179
|
+
e.$$.dirty[0] === -1 && ($.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
180
180
|
}
|
|
181
181
|
function Hr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
182
|
-
const h =
|
|
183
|
-
|
|
182
|
+
const h = J;
|
|
183
|
+
Q(e);
|
|
184
184
|
const u = e.$$ = {
|
|
185
185
|
fragment: null,
|
|
186
186
|
ctx: [],
|
|
@@ -188,7 +188,7 @@ function Hr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
188
188
|
props: o,
|
|
189
189
|
update: S,
|
|
190
190
|
not_equal: i,
|
|
191
|
-
bound:
|
|
191
|
+
bound: Qe(),
|
|
192
192
|
// lifecycle
|
|
193
193
|
on_mount: [],
|
|
194
194
|
on_destroy: [],
|
|
@@ -197,28 +197,28 @@ function Hr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
197
197
|
after_update: [],
|
|
198
198
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
199
199
|
// everything else
|
|
200
|
-
callbacks:
|
|
200
|
+
callbacks: Qe(),
|
|
201
201
|
dirty: a,
|
|
202
202
|
skip_bound: !1,
|
|
203
203
|
root: t.target || h.$$.root
|
|
204
204
|
};
|
|
205
205
|
s && s(u.root);
|
|
206
206
|
let l = !1;
|
|
207
|
-
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
208
|
-
const
|
|
209
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
210
|
-
}) : [], u.update(), l = !0,
|
|
207
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...b) => {
|
|
208
|
+
const g = b.length ? b[0] : c;
|
|
209
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = g) && (!u.skip_bound && u.bound[f] && u.bound[f](g), l && Sr(e, f)), c;
|
|
210
|
+
}) : [], u.update(), l = !0, K(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
211
211
|
if (t.hydrate) {
|
|
212
|
-
const f =
|
|
213
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
212
|
+
const f = fr(t.target);
|
|
213
|
+
u.fragment && u.fragment.l(f), f.forEach(k);
|
|
214
214
|
} else
|
|
215
215
|
u.fragment && u.fragment.c();
|
|
216
|
-
t.intro &&
|
|
216
|
+
t.intro && _r(e.$$.fragment), Er(e, t.target, t.anchor), R();
|
|
217
217
|
}
|
|
218
|
-
|
|
218
|
+
Q(h);
|
|
219
219
|
}
|
|
220
|
-
let
|
|
221
|
-
typeof HTMLElement == "function" && (
|
|
220
|
+
let At;
|
|
221
|
+
typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
222
222
|
/** The Svelte component constructor */
|
|
223
223
|
$$ctor;
|
|
224
224
|
/** Slots */
|
|
@@ -260,24 +260,24 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
260
260
|
let o;
|
|
261
261
|
return {
|
|
262
262
|
c: function() {
|
|
263
|
-
o =
|
|
263
|
+
o = O("slot"), i !== "default" && _(o, "name", i);
|
|
264
264
|
},
|
|
265
265
|
/**
|
|
266
266
|
* @param {HTMLElement} target
|
|
267
267
|
* @param {HTMLElement} [anchor]
|
|
268
268
|
*/
|
|
269
269
|
m: function(h, u) {
|
|
270
|
-
|
|
270
|
+
ee(h, o, u);
|
|
271
271
|
},
|
|
272
272
|
d: function(h) {
|
|
273
|
-
h &&
|
|
273
|
+
h && k(o);
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
};
|
|
277
277
|
};
|
|
278
278
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
279
279
|
return;
|
|
280
|
-
const t = {}, r =
|
|
280
|
+
const t = {}, r = cr(this);
|
|
281
281
|
for (const i of this.$$s)
|
|
282
282
|
i in r && (t[i] = [e(i)]);
|
|
283
283
|
for (const i of this.attributes) {
|
|
@@ -364,8 +364,8 @@ function ae(e, t, r, n) {
|
|
|
364
364
|
return t;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
let s = class extends
|
|
367
|
+
function wr(e, t, r, n, i, o) {
|
|
368
|
+
let s = class extends At {
|
|
369
369
|
constructor() {
|
|
370
370
|
super(e, r, i), this.$$p_d = t;
|
|
371
371
|
}
|
|
@@ -393,7 +393,7 @@ function Tr(e, t, r, n, i, o) {
|
|
|
393
393
|
}), e.element = /** @type {any} */
|
|
394
394
|
s, s;
|
|
395
395
|
}
|
|
396
|
-
class
|
|
396
|
+
class Tr {
|
|
397
397
|
/**
|
|
398
398
|
* ### PRIVATE API
|
|
399
399
|
*
|
|
@@ -412,7 +412,7 @@ class Br {
|
|
|
412
412
|
$$set = void 0;
|
|
413
413
|
/** @returns {void} */
|
|
414
414
|
$destroy() {
|
|
415
|
-
|
|
415
|
+
xr(this, 1), this.$destroy = S;
|
|
416
416
|
}
|
|
417
417
|
/**
|
|
418
418
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -421,7 +421,7 @@ class Br {
|
|
|
421
421
|
* @returns {() => void}
|
|
422
422
|
*/
|
|
423
423
|
$on(t, r) {
|
|
424
|
-
if (!
|
|
424
|
+
if (!Ve(r))
|
|
425
425
|
return S;
|
|
426
426
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
427
427
|
return n.push(r), () => {
|
|
@@ -434,18 +434,18 @@ class Br {
|
|
|
434
434
|
* @returns {void}
|
|
435
435
|
*/
|
|
436
436
|
$set(t) {
|
|
437
|
-
this.$$set && !
|
|
437
|
+
this.$$set && !or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
const
|
|
441
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
442
|
-
function
|
|
440
|
+
const Br = "4";
|
|
441
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Br);
|
|
442
|
+
function Ar(e, t) {
|
|
443
443
|
if (e) {
|
|
444
444
|
const r = document.createElement("style");
|
|
445
445
|
r.innerHTML = t, e.appendChild(r);
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function Pr(e, t) {
|
|
449
449
|
if (!e || !t)
|
|
450
450
|
return;
|
|
451
451
|
const r = new URL(t);
|
|
@@ -478,24 +478,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
478
478
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
479
479
|
PERFORMANCE OF THIS SOFTWARE.
|
|
480
480
|
***************************************************************************** */
|
|
481
|
-
var
|
|
482
|
-
return
|
|
481
|
+
var Ce = function(e, t) {
|
|
482
|
+
return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
483
483
|
r.__proto__ = n;
|
|
484
484
|
} || function(r, n) {
|
|
485
485
|
for (var i in n)
|
|
486
486
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
487
|
-
},
|
|
487
|
+
}, Ce(e, t);
|
|
488
488
|
};
|
|
489
|
-
function
|
|
489
|
+
function A(e, t) {
|
|
490
490
|
if (typeof t != "function" && t !== null)
|
|
491
491
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
492
|
-
|
|
492
|
+
Ce(e, t);
|
|
493
493
|
function r() {
|
|
494
494
|
this.constructor = e;
|
|
495
495
|
}
|
|
496
496
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
var m = function() {
|
|
499
|
+
return m = Object.assign || function(t) {
|
|
500
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
501
|
+
r = arguments[n];
|
|
502
|
+
for (var o in r)
|
|
503
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
504
|
+
}
|
|
505
|
+
return t;
|
|
506
|
+
}, m.apply(this, arguments);
|
|
507
|
+
};
|
|
508
|
+
function Or(e, t) {
|
|
509
|
+
var r = {};
|
|
510
|
+
for (var n in e)
|
|
511
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
512
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
513
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
514
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
515
|
+
return r;
|
|
516
|
+
}
|
|
517
|
+
function Oe(e) {
|
|
499
518
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
500
519
|
if (r)
|
|
501
520
|
return r.call(e);
|
|
@@ -507,7 +526,7 @@ function Ie(e) {
|
|
|
507
526
|
};
|
|
508
527
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
509
528
|
}
|
|
510
|
-
function
|
|
529
|
+
function Le(e, t) {
|
|
511
530
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
512
531
|
if (!r)
|
|
513
532
|
return e;
|
|
@@ -527,22 +546,22 @@ function Ne(e, t) {
|
|
|
527
546
|
}
|
|
528
547
|
return o;
|
|
529
548
|
}
|
|
530
|
-
function
|
|
531
|
-
if (arguments.length === 2)
|
|
549
|
+
function D(e, t, r) {
|
|
550
|
+
if (r || arguments.length === 2)
|
|
532
551
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
533
552
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
534
553
|
return e.concat(o || t);
|
|
535
554
|
}
|
|
536
|
-
function
|
|
555
|
+
function B(e) {
|
|
537
556
|
return typeof e == "function";
|
|
538
557
|
}
|
|
539
|
-
function
|
|
558
|
+
function Pt(e) {
|
|
540
559
|
var t = function(n) {
|
|
541
560
|
Error.call(n), n.stack = new Error().stack;
|
|
542
561
|
}, r = e(t);
|
|
543
562
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
544
563
|
}
|
|
545
|
-
var
|
|
564
|
+
var _e = Pt(function(e) {
|
|
546
565
|
return function(r) {
|
|
547
566
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
548
567
|
` + r.map(function(n, i) {
|
|
@@ -551,13 +570,13 @@ var xe = Ct(function(e) {
|
|
|
551
570
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
552
571
|
};
|
|
553
572
|
});
|
|
554
|
-
function
|
|
573
|
+
function Ie(e, t) {
|
|
555
574
|
if (e) {
|
|
556
575
|
var r = e.indexOf(t);
|
|
557
576
|
0 <= r && e.splice(r, 1);
|
|
558
577
|
}
|
|
559
578
|
}
|
|
560
|
-
var
|
|
579
|
+
var de = function() {
|
|
561
580
|
function e(t) {
|
|
562
581
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
563
582
|
}
|
|
@@ -569,12 +588,12 @@ var me = function() {
|
|
|
569
588
|
if (s)
|
|
570
589
|
if (this._parentage = null, Array.isArray(s))
|
|
571
590
|
try {
|
|
572
|
-
for (var a =
|
|
591
|
+
for (var a = Oe(s), h = a.next(); !h.done; h = a.next()) {
|
|
573
592
|
var u = h.value;
|
|
574
593
|
u.remove(this);
|
|
575
594
|
}
|
|
576
|
-
} catch (
|
|
577
|
-
t = { error:
|
|
595
|
+
} catch (v) {
|
|
596
|
+
t = { error: v };
|
|
578
597
|
} finally {
|
|
579
598
|
try {
|
|
580
599
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -586,29 +605,29 @@ var me = function() {
|
|
|
586
605
|
else
|
|
587
606
|
s.remove(this);
|
|
588
607
|
var l = this.initialTeardown;
|
|
589
|
-
if (
|
|
608
|
+
if (B(l))
|
|
590
609
|
try {
|
|
591
610
|
l();
|
|
592
|
-
} catch (
|
|
593
|
-
o =
|
|
611
|
+
} catch (v) {
|
|
612
|
+
o = v instanceof _e ? v.errors : [v];
|
|
594
613
|
}
|
|
595
614
|
var f = this._finalizers;
|
|
596
615
|
if (f) {
|
|
597
616
|
this._finalizers = null;
|
|
598
617
|
try {
|
|
599
|
-
for (var c =
|
|
600
|
-
var
|
|
618
|
+
for (var c = Oe(f), b = c.next(); !b.done; b = c.next()) {
|
|
619
|
+
var g = b.value;
|
|
601
620
|
try {
|
|
602
|
-
|
|
603
|
-
} catch (
|
|
604
|
-
o = o ?? [],
|
|
621
|
+
et(g);
|
|
622
|
+
} catch (v) {
|
|
623
|
+
o = o ?? [], v instanceof _e ? o = D(D([], Le(o)), Le(v.errors)) : o.push(v);
|
|
605
624
|
}
|
|
606
625
|
}
|
|
607
|
-
} catch (
|
|
608
|
-
n = { error:
|
|
626
|
+
} catch (v) {
|
|
627
|
+
n = { error: v };
|
|
609
628
|
} finally {
|
|
610
629
|
try {
|
|
611
|
-
|
|
630
|
+
b && !b.done && (i = c.return) && i.call(c);
|
|
612
631
|
} finally {
|
|
613
632
|
if (n)
|
|
614
633
|
throw n.error;
|
|
@@ -616,13 +635,13 @@ var me = function() {
|
|
|
616
635
|
}
|
|
617
636
|
}
|
|
618
637
|
if (o)
|
|
619
|
-
throw new
|
|
638
|
+
throw new _e(o);
|
|
620
639
|
}
|
|
621
640
|
}, e.prototype.add = function(t) {
|
|
622
641
|
var r;
|
|
623
642
|
if (t && t !== this)
|
|
624
643
|
if (this.closed)
|
|
625
|
-
|
|
644
|
+
et(t);
|
|
626
645
|
else {
|
|
627
646
|
if (t instanceof e) {
|
|
628
647
|
if (t.closed || t._hasParent(this))
|
|
@@ -639,52 +658,56 @@ var me = function() {
|
|
|
639
658
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
640
659
|
}, e.prototype._removeParent = function(t) {
|
|
641
660
|
var r = this._parentage;
|
|
642
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
661
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ie(r, t);
|
|
643
662
|
}, e.prototype.remove = function(t) {
|
|
644
663
|
var r = this._finalizers;
|
|
645
|
-
r &&
|
|
664
|
+
r && Ie(r, t), t instanceof e && t._removeParent(this);
|
|
646
665
|
}, e.EMPTY = function() {
|
|
647
666
|
var t = new e();
|
|
648
667
|
return t.closed = !0, t;
|
|
649
668
|
}(), e;
|
|
650
|
-
}(),
|
|
651
|
-
function
|
|
652
|
-
return e instanceof
|
|
653
|
-
}
|
|
654
|
-
function
|
|
655
|
-
|
|
656
|
-
}
|
|
657
|
-
var
|
|
658
|
-
|
|
659
|
-
|
|
669
|
+
}(), Ct = de.EMPTY;
|
|
670
|
+
function Ot(e) {
|
|
671
|
+
return e instanceof de || e && "closed" in e && B(e.remove) && B(e.add) && B(e.unsubscribe);
|
|
672
|
+
}
|
|
673
|
+
function et(e) {
|
|
674
|
+
B(e) ? e() : e.unsubscribe();
|
|
675
|
+
}
|
|
676
|
+
var Lt = {
|
|
677
|
+
onUnhandledError: null,
|
|
678
|
+
onStoppedNotification: null,
|
|
679
|
+
Promise: void 0,
|
|
680
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
681
|
+
useDeprecatedNextContext: !1
|
|
682
|
+
}, Lr = {
|
|
660
683
|
setTimeout: function(e, t) {
|
|
661
684
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
662
685
|
r[n - 2] = arguments[n];
|
|
663
|
-
return setTimeout.apply(void 0,
|
|
686
|
+
return setTimeout.apply(void 0, D([e, t], Le(r)));
|
|
664
687
|
},
|
|
665
688
|
clearTimeout: function(e) {
|
|
666
689
|
return clearTimeout(e);
|
|
667
690
|
},
|
|
668
691
|
delegate: void 0
|
|
669
692
|
};
|
|
670
|
-
function
|
|
671
|
-
|
|
693
|
+
function Ir(e) {
|
|
694
|
+
Lr.setTimeout(function() {
|
|
672
695
|
throw e;
|
|
673
696
|
});
|
|
674
697
|
}
|
|
675
|
-
function
|
|
698
|
+
function tt() {
|
|
676
699
|
}
|
|
677
700
|
function ue(e) {
|
|
678
701
|
e();
|
|
679
702
|
}
|
|
680
|
-
var
|
|
681
|
-
|
|
703
|
+
var It = function(e) {
|
|
704
|
+
A(t, e);
|
|
682
705
|
function t(r) {
|
|
683
706
|
var n = e.call(this) || this;
|
|
684
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
707
|
+
return n.isStopped = !1, r ? (n.destination = r, Ot(r) && r.add(n)) : n.destination = Rr, n;
|
|
685
708
|
}
|
|
686
709
|
return t.create = function(r, n, i) {
|
|
687
|
-
return new
|
|
710
|
+
return new Ne(r, n, i);
|
|
688
711
|
}, t.prototype.next = function(r) {
|
|
689
712
|
this.isStopped || this._next(r);
|
|
690
713
|
}, t.prototype.error = function(r) {
|
|
@@ -708,7 +731,11 @@ var Nt = function(e) {
|
|
|
708
731
|
this.unsubscribe();
|
|
709
732
|
}
|
|
710
733
|
}, t;
|
|
711
|
-
}(
|
|
734
|
+
}(de), Nr = Function.prototype.bind;
|
|
735
|
+
function Ee(e, t) {
|
|
736
|
+
return Nr.call(e, t);
|
|
737
|
+
}
|
|
738
|
+
var Mr = function() {
|
|
712
739
|
function e(t) {
|
|
713
740
|
this.partialObserver = t;
|
|
714
741
|
}
|
|
@@ -739,29 +766,41 @@ var Nt = function(e) {
|
|
|
739
766
|
oe(r);
|
|
740
767
|
}
|
|
741
768
|
}, e;
|
|
742
|
-
}(),
|
|
743
|
-
|
|
769
|
+
}(), Ne = function(e) {
|
|
770
|
+
A(t, e);
|
|
744
771
|
function t(r, n, i) {
|
|
745
772
|
var o = e.call(this) || this, s;
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
773
|
+
if (B(r) || !r)
|
|
774
|
+
s = {
|
|
775
|
+
next: r ?? void 0,
|
|
776
|
+
error: n ?? void 0,
|
|
777
|
+
complete: i ?? void 0
|
|
778
|
+
};
|
|
779
|
+
else {
|
|
780
|
+
var a;
|
|
781
|
+
o && Lt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
782
|
+
return o.unsubscribe();
|
|
783
|
+
}, s = {
|
|
784
|
+
next: r.next && Ee(r.next, a),
|
|
785
|
+
error: r.error && Ee(r.error, a),
|
|
786
|
+
complete: r.complete && Ee(r.complete, a)
|
|
787
|
+
}) : s = r;
|
|
788
|
+
}
|
|
789
|
+
return o.destination = new Mr(s), o;
|
|
751
790
|
}
|
|
752
791
|
return t;
|
|
753
|
-
}(
|
|
792
|
+
}(It);
|
|
754
793
|
function oe(e) {
|
|
755
|
-
|
|
794
|
+
Ir(e);
|
|
756
795
|
}
|
|
757
796
|
function $r(e) {
|
|
758
797
|
throw e;
|
|
759
798
|
}
|
|
760
799
|
var Rr = {
|
|
761
800
|
closed: !0,
|
|
762
|
-
next:
|
|
801
|
+
next: tt,
|
|
763
802
|
error: $r,
|
|
764
|
-
complete:
|
|
803
|
+
complete: tt
|
|
765
804
|
}, Ur = function() {
|
|
766
805
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
767
806
|
}();
|
|
@@ -775,7 +814,7 @@ function Gr(e) {
|
|
|
775
814
|
}, r);
|
|
776
815
|
};
|
|
777
816
|
}
|
|
778
|
-
var
|
|
817
|
+
var rt = function() {
|
|
779
818
|
function e(t) {
|
|
780
819
|
t && (this._subscribe = t);
|
|
781
820
|
}
|
|
@@ -783,7 +822,7 @@ var it = function() {
|
|
|
783
822
|
var r = new e();
|
|
784
823
|
return r.source = this, r.operator = t, r;
|
|
785
824
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
786
|
-
var i = this, o = jr(t) ? t : new
|
|
825
|
+
var i = this, o = jr(t) ? t : new Ne(t, r, n);
|
|
787
826
|
return ue(function() {
|
|
788
827
|
var s = i, a = s.operator, h = s.source;
|
|
789
828
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -796,8 +835,8 @@ var it = function() {
|
|
|
796
835
|
}
|
|
797
836
|
}, e.prototype.forEach = function(t, r) {
|
|
798
837
|
var n = this;
|
|
799
|
-
return r =
|
|
800
|
-
var s = new
|
|
838
|
+
return r = nt(r), new r(function(i, o) {
|
|
839
|
+
var s = new Ne({
|
|
801
840
|
next: function(a) {
|
|
802
841
|
try {
|
|
803
842
|
t(a);
|
|
@@ -821,7 +860,7 @@ var it = function() {
|
|
|
821
860
|
return Gr(t)(this);
|
|
822
861
|
}, e.prototype.toPromise = function(t) {
|
|
823
862
|
var r = this;
|
|
824
|
-
return t =
|
|
863
|
+
return t = nt(t), new t(function(n, i) {
|
|
825
864
|
var o;
|
|
826
865
|
r.subscribe(function(s) {
|
|
827
866
|
return o = s;
|
|
@@ -835,28 +874,28 @@ var it = function() {
|
|
|
835
874
|
return new e(t);
|
|
836
875
|
}, e;
|
|
837
876
|
}();
|
|
838
|
-
function
|
|
877
|
+
function nt(e) {
|
|
839
878
|
var t;
|
|
840
|
-
return (t = e ??
|
|
879
|
+
return (t = e ?? Lt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
841
880
|
}
|
|
842
881
|
function Fr(e) {
|
|
843
|
-
return e &&
|
|
882
|
+
return e && B(e.next) && B(e.error) && B(e.complete);
|
|
844
883
|
}
|
|
845
884
|
function jr(e) {
|
|
846
|
-
return e && e instanceof
|
|
885
|
+
return e && e instanceof It || Fr(e) && Ot(e);
|
|
847
886
|
}
|
|
848
|
-
var Vr =
|
|
887
|
+
var Vr = Pt(function(e) {
|
|
849
888
|
return function() {
|
|
850
889
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
851
890
|
};
|
|
852
|
-
}),
|
|
853
|
-
|
|
891
|
+
}), Nt = function(e) {
|
|
892
|
+
A(t, e);
|
|
854
893
|
function t() {
|
|
855
894
|
var r = e.call(this) || this;
|
|
856
895
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
857
896
|
}
|
|
858
897
|
return t.prototype.lift = function(r) {
|
|
859
|
-
var n = new
|
|
898
|
+
var n = new it(this, this);
|
|
860
899
|
return n.operator = r, n;
|
|
861
900
|
}, t.prototype._throwIfClosed = function() {
|
|
862
901
|
if (this.closed)
|
|
@@ -868,7 +907,7 @@ var Vr = Ct(function(e) {
|
|
|
868
907
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
869
908
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
870
909
|
try {
|
|
871
|
-
for (var s =
|
|
910
|
+
for (var s = Oe(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
872
911
|
var h = a.value;
|
|
873
912
|
h.next(r);
|
|
874
913
|
}
|
|
@@ -917,20 +956,20 @@ var Vr = Ct(function(e) {
|
|
|
917
956
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
918
957
|
}, t.prototype._innerSubscribe = function(r) {
|
|
919
958
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
920
|
-
return o || s ?
|
|
921
|
-
n.currentObservers = null,
|
|
959
|
+
return o || s ? Ct : (this.currentObservers = null, a.push(r), new de(function() {
|
|
960
|
+
n.currentObservers = null, Ie(a, r);
|
|
922
961
|
}));
|
|
923
962
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
924
963
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
925
964
|
i ? r.error(o) : s && r.complete();
|
|
926
965
|
}, t.prototype.asObservable = function() {
|
|
927
|
-
var r = new
|
|
966
|
+
var r = new rt();
|
|
928
967
|
return r.source = this, r;
|
|
929
968
|
}, t.create = function(r, n) {
|
|
930
|
-
return new
|
|
969
|
+
return new it(r, n);
|
|
931
970
|
}, t;
|
|
932
|
-
}(
|
|
933
|
-
|
|
971
|
+
}(rt), it = function(e) {
|
|
972
|
+
A(t, e);
|
|
934
973
|
function t(r, n) {
|
|
935
974
|
var i = e.call(this) || this;
|
|
936
975
|
return i.destination = r, i.source = n, i;
|
|
@@ -946,17 +985,17 @@ var Vr = Ct(function(e) {
|
|
|
946
985
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
947
986
|
}, t.prototype._subscribe = function(r) {
|
|
948
987
|
var n, i;
|
|
949
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
988
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ct;
|
|
950
989
|
}, t;
|
|
951
|
-
}(
|
|
990
|
+
}(Nt), Mt = {
|
|
952
991
|
now: function() {
|
|
953
|
-
return (
|
|
992
|
+
return (Mt.delegate || Date).now();
|
|
954
993
|
},
|
|
955
994
|
delegate: void 0
|
|
956
995
|
}, kr = function(e) {
|
|
957
|
-
|
|
996
|
+
A(t, e);
|
|
958
997
|
function t(r, n, i) {
|
|
959
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
998
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Mt);
|
|
960
999
|
var o = e.call(this) || this;
|
|
961
1000
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
962
1001
|
}
|
|
@@ -976,24 +1015,24 @@ var Vr = Ct(function(e) {
|
|
|
976
1015
|
u && o.splice(0, u + 1);
|
|
977
1016
|
}
|
|
978
1017
|
}, t;
|
|
979
|
-
}(
|
|
980
|
-
const
|
|
981
|
-
if (
|
|
1018
|
+
}(Nt);
|
|
1019
|
+
const ot = [], st = {}, Xr = (e, t = 0) => {
|
|
1020
|
+
if (ot.indexOf(e) == -1) {
|
|
982
1021
|
const r = new kr(t);
|
|
983
|
-
|
|
1022
|
+
st[e] = r, ot.push(e);
|
|
984
1023
|
}
|
|
985
|
-
return
|
|
1024
|
+
return st[e];
|
|
986
1025
|
}, M = [];
|
|
987
1026
|
function Wr(e, t) {
|
|
988
1027
|
return {
|
|
989
|
-
subscribe:
|
|
1028
|
+
subscribe: me(e, t).subscribe
|
|
990
1029
|
};
|
|
991
1030
|
}
|
|
992
|
-
function
|
|
1031
|
+
function me(e, t = S) {
|
|
993
1032
|
let r;
|
|
994
1033
|
const n = /* @__PURE__ */ new Set();
|
|
995
1034
|
function i(a) {
|
|
996
|
-
if (
|
|
1035
|
+
if (wt(e, a) && (e = a, r)) {
|
|
997
1036
|
const h = !M.length;
|
|
998
1037
|
for (const u of n)
|
|
999
1038
|
u[1](), M.push(u, e);
|
|
@@ -1015,7 +1054,7 @@ function be(e, t = S) {
|
|
|
1015
1054
|
}
|
|
1016
1055
|
return { set: i, update: o, subscribe: s };
|
|
1017
1056
|
}
|
|
1018
|
-
function
|
|
1057
|
+
function X(e, t, r) {
|
|
1019
1058
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1020
1059
|
if (!i.every(Boolean))
|
|
1021
1060
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1028,21 +1067,21 @@ function k(e, t, r) {
|
|
|
1028
1067
|
if (l)
|
|
1029
1068
|
return;
|
|
1030
1069
|
f();
|
|
1031
|
-
const
|
|
1032
|
-
o ? s(
|
|
1033
|
-
},
|
|
1034
|
-
(
|
|
1035
|
-
|
|
1036
|
-
(
|
|
1037
|
-
u[
|
|
1070
|
+
const g = t(n ? u[0] : u, s, a);
|
|
1071
|
+
o ? s(g) : f = Ve(g) ? g : S;
|
|
1072
|
+
}, b = i.map(
|
|
1073
|
+
(g, v) => sr(
|
|
1074
|
+
g,
|
|
1075
|
+
(H) => {
|
|
1076
|
+
u[v] = H, l &= ~(1 << v), h && c();
|
|
1038
1077
|
},
|
|
1039
1078
|
() => {
|
|
1040
|
-
l |= 1 <<
|
|
1079
|
+
l |= 1 << v;
|
|
1041
1080
|
}
|
|
1042
1081
|
)
|
|
1043
1082
|
);
|
|
1044
1083
|
return h = !0, c(), function() {
|
|
1045
|
-
|
|
1084
|
+
K(b), f(), h = !1;
|
|
1046
1085
|
};
|
|
1047
1086
|
});
|
|
1048
1087
|
}
|
|
@@ -1066,29 +1105,29 @@ function Kr(e) {
|
|
|
1066
1105
|
function en(e) {
|
|
1067
1106
|
return Array.isArray(e) ? [] : {};
|
|
1068
1107
|
}
|
|
1069
|
-
function
|
|
1070
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1108
|
+
function q(e, t) {
|
|
1109
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? G(en(e), e, t) : e;
|
|
1071
1110
|
}
|
|
1072
1111
|
function tn(e, t, r) {
|
|
1073
1112
|
return e.concat(t).map(function(n) {
|
|
1074
|
-
return
|
|
1113
|
+
return q(n, r);
|
|
1075
1114
|
});
|
|
1076
1115
|
}
|
|
1077
1116
|
function rn(e, t) {
|
|
1078
1117
|
if (!t.customMerge)
|
|
1079
|
-
return
|
|
1118
|
+
return G;
|
|
1080
1119
|
var r = t.customMerge(e);
|
|
1081
|
-
return typeof r == "function" ? r :
|
|
1120
|
+
return typeof r == "function" ? r : G;
|
|
1082
1121
|
}
|
|
1083
1122
|
function nn(e) {
|
|
1084
1123
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1085
1124
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1086
1125
|
}) : [];
|
|
1087
1126
|
}
|
|
1088
|
-
function
|
|
1127
|
+
function at(e) {
|
|
1089
1128
|
return Object.keys(e).concat(nn(e));
|
|
1090
1129
|
}
|
|
1091
|
-
function
|
|
1130
|
+
function $t(e, t) {
|
|
1092
1131
|
try {
|
|
1093
1132
|
return t in e;
|
|
1094
1133
|
} catch {
|
|
@@ -1096,179 +1135,129 @@ function Rt(e, t) {
|
|
|
1096
1135
|
}
|
|
1097
1136
|
}
|
|
1098
1137
|
function on(e, t) {
|
|
1099
|
-
return
|
|
1138
|
+
return $t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1100
1139
|
}
|
|
1101
1140
|
function sn(e, t, r) {
|
|
1102
1141
|
var n = {};
|
|
1103
|
-
return r.isMergeableObject(e) &&
|
|
1104
|
-
n[i] =
|
|
1105
|
-
}),
|
|
1106
|
-
on(e, i) || (
|
|
1142
|
+
return r.isMergeableObject(e) && at(e).forEach(function(i) {
|
|
1143
|
+
n[i] = q(e[i], r);
|
|
1144
|
+
}), at(t).forEach(function(i) {
|
|
1145
|
+
on(e, i) || ($t(e, i) && r.isMergeableObject(t[i]) ? n[i] = rn(i, r)(e[i], t[i], r) : n[i] = q(t[i], r));
|
|
1107
1146
|
}), n;
|
|
1108
1147
|
}
|
|
1109
|
-
function
|
|
1110
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || tn, r.isMergeableObject = r.isMergeableObject || Zr, r.cloneUnlessOtherwiseSpecified =
|
|
1148
|
+
function G(e, t, r) {
|
|
1149
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || tn, r.isMergeableObject = r.isMergeableObject || Zr, r.cloneUnlessOtherwiseSpecified = q;
|
|
1111
1150
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1112
|
-
return o ? n ? r.arrayMerge(e, t, r) : sn(e, t, r) :
|
|
1151
|
+
return o ? n ? r.arrayMerge(e, t, r) : sn(e, t, r) : q(t, r);
|
|
1113
1152
|
}
|
|
1114
|
-
|
|
1153
|
+
G.all = function(t, r) {
|
|
1115
1154
|
if (!Array.isArray(t))
|
|
1116
1155
|
throw new Error("first argument should be an array");
|
|
1117
1156
|
return t.reduce(function(n, i) {
|
|
1118
|
-
return
|
|
1157
|
+
return G(n, i, r);
|
|
1119
1158
|
}, {});
|
|
1120
1159
|
};
|
|
1121
|
-
var an =
|
|
1160
|
+
var an = G, un = an;
|
|
1122
1161
|
const hn = /* @__PURE__ */ zr(un);
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
r.__proto__ = n;
|
|
1126
|
-
} || function(r, n) {
|
|
1127
|
-
for (var i in n)
|
|
1128
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1129
|
-
}, Ue(e, t);
|
|
1130
|
-
};
|
|
1131
|
-
function ve(e, t) {
|
|
1132
|
-
if (typeof t != "function" && t !== null)
|
|
1133
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1134
|
-
Ue(e, t);
|
|
1135
|
-
function r() {
|
|
1136
|
-
this.constructor = e;
|
|
1137
|
-
}
|
|
1138
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1139
|
-
}
|
|
1140
|
-
var T = function() {
|
|
1141
|
-
return T = Object.assign || function(t) {
|
|
1142
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1143
|
-
r = arguments[n];
|
|
1144
|
-
for (var o in r)
|
|
1145
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1146
|
-
}
|
|
1147
|
-
return t;
|
|
1148
|
-
}, T.apply(this, arguments);
|
|
1149
|
-
};
|
|
1150
|
-
function ln(e, t) {
|
|
1151
|
-
var r = {};
|
|
1152
|
-
for (var n in e)
|
|
1153
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1154
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1155
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1156
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1157
|
-
return r;
|
|
1158
|
-
}
|
|
1159
|
-
function Se(e, t, r) {
|
|
1160
|
-
if (r || arguments.length === 2)
|
|
1161
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1162
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1163
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1164
|
-
}
|
|
1165
|
-
function we(e, t) {
|
|
1166
|
-
var r = t && t.cache ? t.cache : vn, n = t && t.serializer ? t.serializer : mn, i = t && t.strategy ? t.strategy : pn;
|
|
1162
|
+
function xe(e, t) {
|
|
1163
|
+
var r = t && t.cache ? t.cache : mn, n = t && t.serializer ? t.serializer : dn, i = t && t.strategy ? t.strategy : fn;
|
|
1167
1164
|
return i(e, {
|
|
1168
1165
|
cache: r,
|
|
1169
1166
|
serializer: n
|
|
1170
1167
|
});
|
|
1171
1168
|
}
|
|
1172
|
-
function
|
|
1169
|
+
function ln(e) {
|
|
1173
1170
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1174
1171
|
}
|
|
1175
|
-
function
|
|
1176
|
-
var i =
|
|
1172
|
+
function Rt(e, t, r, n) {
|
|
1173
|
+
var i = ln(n) ? n : r(n), o = t.get(i);
|
|
1177
1174
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1178
1175
|
}
|
|
1179
1176
|
function Ut(e, t, r) {
|
|
1180
1177
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1181
1178
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1182
1179
|
}
|
|
1183
|
-
function
|
|
1180
|
+
function ke(e, t, r, n, i) {
|
|
1184
1181
|
return r.bind(t, e, n, i);
|
|
1185
1182
|
}
|
|
1186
|
-
function
|
|
1187
|
-
var r = e.length === 1 ?
|
|
1188
|
-
return
|
|
1183
|
+
function fn(e, t) {
|
|
1184
|
+
var r = e.length === 1 ? Rt : Ut;
|
|
1185
|
+
return ke(e, this, r, t.cache.create(), t.serializer);
|
|
1189
1186
|
}
|
|
1190
|
-
function
|
|
1191
|
-
return
|
|
1187
|
+
function cn(e, t) {
|
|
1188
|
+
return ke(e, this, Ut, t.cache.create(), t.serializer);
|
|
1189
|
+
}
|
|
1190
|
+
function pn(e, t) {
|
|
1191
|
+
return ke(e, this, Rt, t.cache.create(), t.serializer);
|
|
1192
1192
|
}
|
|
1193
|
-
var
|
|
1193
|
+
var dn = function() {
|
|
1194
1194
|
return JSON.stringify(arguments);
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
}()
|
|
1207
|
-
), vn = {
|
|
1195
|
+
};
|
|
1196
|
+
function Xe() {
|
|
1197
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1198
|
+
}
|
|
1199
|
+
Xe.prototype.get = function(e) {
|
|
1200
|
+
return this.cache[e];
|
|
1201
|
+
};
|
|
1202
|
+
Xe.prototype.set = function(e, t) {
|
|
1203
|
+
this.cache[e] = t;
|
|
1204
|
+
};
|
|
1205
|
+
var mn = {
|
|
1208
1206
|
create: function() {
|
|
1209
|
-
return new
|
|
1207
|
+
return new Xe();
|
|
1210
1208
|
}
|
|
1211
|
-
},
|
|
1212
|
-
variadic:
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1216
|
-
r = arguments[n];
|
|
1217
|
-
for (var o in r)
|
|
1218
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1219
|
-
}
|
|
1220
|
-
return t;
|
|
1221
|
-
}, ce.apply(this, arguments);
|
|
1222
|
-
};
|
|
1223
|
-
var p;
|
|
1209
|
+
}, Se = {
|
|
1210
|
+
variadic: cn,
|
|
1211
|
+
monadic: pn
|
|
1212
|
+
}, p;
|
|
1224
1213
|
(function(e) {
|
|
1225
1214
|
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";
|
|
1226
1215
|
})(p || (p = {}));
|
|
1227
|
-
var
|
|
1216
|
+
var y;
|
|
1228
1217
|
(function(e) {
|
|
1229
1218
|
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";
|
|
1230
|
-
})(
|
|
1231
|
-
var
|
|
1219
|
+
})(y || (y = {}));
|
|
1220
|
+
var F;
|
|
1232
1221
|
(function(e) {
|
|
1233
1222
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1234
|
-
})(
|
|
1235
|
-
function
|
|
1236
|
-
return e.type ===
|
|
1223
|
+
})(F || (F = {}));
|
|
1224
|
+
function ut(e) {
|
|
1225
|
+
return e.type === y.literal;
|
|
1237
1226
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return e.type ===
|
|
1227
|
+
function bn(e) {
|
|
1228
|
+
return e.type === y.argument;
|
|
1229
|
+
}
|
|
1230
|
+
function Dt(e) {
|
|
1231
|
+
return e.type === y.number;
|
|
1240
1232
|
}
|
|
1241
1233
|
function Gt(e) {
|
|
1242
|
-
return e.type ===
|
|
1234
|
+
return e.type === y.date;
|
|
1243
1235
|
}
|
|
1244
1236
|
function Ft(e) {
|
|
1245
|
-
return e.type ===
|
|
1237
|
+
return e.type === y.time;
|
|
1246
1238
|
}
|
|
1247
1239
|
function jt(e) {
|
|
1248
|
-
return e.type ===
|
|
1240
|
+
return e.type === y.select;
|
|
1249
1241
|
}
|
|
1250
1242
|
function Vt(e) {
|
|
1251
|
-
return e.type ===
|
|
1243
|
+
return e.type === y.plural;
|
|
1252
1244
|
}
|
|
1253
|
-
function
|
|
1254
|
-
return e.type ===
|
|
1245
|
+
function vn(e) {
|
|
1246
|
+
return e.type === y.pound;
|
|
1255
1247
|
}
|
|
1256
|
-
function
|
|
1257
|
-
return e.type ===
|
|
1248
|
+
function kt(e) {
|
|
1249
|
+
return e.type === y.tag;
|
|
1258
1250
|
}
|
|
1259
1251
|
function Xt(e) {
|
|
1260
|
-
return e.type ===
|
|
1252
|
+
return !!(e && typeof e == "object" && e.type === F.number);
|
|
1261
1253
|
}
|
|
1262
|
-
function
|
|
1263
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1254
|
+
function Me(e) {
|
|
1255
|
+
return !!(e && typeof e == "object" && e.type === F.dateTime);
|
|
1264
1256
|
}
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
}
|
|
1268
|
-
var zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, _n = /(?:[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;
|
|
1269
|
-
function En(e) {
|
|
1257
|
+
var Wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, gn = /(?:[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;
|
|
1258
|
+
function yn(e) {
|
|
1270
1259
|
var t = {};
|
|
1271
|
-
return e.replace(
|
|
1260
|
+
return e.replace(gn, function(r) {
|
|
1272
1261
|
var n = r.length;
|
|
1273
1262
|
switch (r[0]) {
|
|
1274
1263
|
case "G":
|
|
@@ -1357,21 +1346,11 @@ function En(e) {
|
|
|
1357
1346
|
return "";
|
|
1358
1347
|
}), t;
|
|
1359
1348
|
}
|
|
1360
|
-
var
|
|
1361
|
-
|
|
1362
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1363
|
-
r = arguments[n];
|
|
1364
|
-
for (var o in r)
|
|
1365
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1366
|
-
}
|
|
1367
|
-
return t;
|
|
1368
|
-
}, y.apply(this, arguments);
|
|
1369
|
-
};
|
|
1370
|
-
var xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1371
|
-
function Sn(e) {
|
|
1349
|
+
var _n = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1350
|
+
function En(e) {
|
|
1372
1351
|
if (e.length === 0)
|
|
1373
1352
|
throw new Error("Number skeleton cannot be empty");
|
|
1374
|
-
for (var t = e.split(
|
|
1353
|
+
for (var t = e.split(_n).filter(function(c) {
|
|
1375
1354
|
return c.length > 0;
|
|
1376
1355
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1377
1356
|
var o = i[n], s = o.split("/");
|
|
@@ -1386,17 +1365,17 @@ function Sn(e) {
|
|
|
1386
1365
|
}
|
|
1387
1366
|
return r;
|
|
1388
1367
|
}
|
|
1389
|
-
function
|
|
1368
|
+
function xn(e) {
|
|
1390
1369
|
return e.replace(/^(.*?)-/, "");
|
|
1391
1370
|
}
|
|
1392
|
-
var
|
|
1393
|
-
function
|
|
1371
|
+
var ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zt = /^(@+)?(\+|#+)?[rs]?$/g, Sn = /(\*)(0+)|(#+)(0+)|(0+)/g, Zt = /^(0+)$/;
|
|
1372
|
+
function lt(e) {
|
|
1394
1373
|
var t = {};
|
|
1395
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1374
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(zt, function(r, n, i) {
|
|
1396
1375
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1397
1376
|
}), t;
|
|
1398
1377
|
}
|
|
1399
|
-
function
|
|
1378
|
+
function Qt(e) {
|
|
1400
1379
|
switch (e) {
|
|
1401
1380
|
case "sign-auto":
|
|
1402
1381
|
return {
|
|
@@ -1436,7 +1415,7 @@ function Jt(e) {
|
|
|
1436
1415
|
};
|
|
1437
1416
|
}
|
|
1438
1417
|
}
|
|
1439
|
-
function
|
|
1418
|
+
function Hn(e) {
|
|
1440
1419
|
var t;
|
|
1441
1420
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1442
1421
|
notation: "engineering"
|
|
@@ -1444,17 +1423,17 @@ function Tn(e) {
|
|
|
1444
1423
|
notation: "scientific"
|
|
1445
1424
|
}, e = e.slice(1)), t) {
|
|
1446
1425
|
var r = e.slice(0, 2);
|
|
1447
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1426
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Zt.test(e))
|
|
1448
1427
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1449
1428
|
t.minimumIntegerDigits = e.length;
|
|
1450
1429
|
}
|
|
1451
1430
|
return t;
|
|
1452
1431
|
}
|
|
1453
|
-
function
|
|
1454
|
-
var t = {}, r =
|
|
1432
|
+
function ft(e) {
|
|
1433
|
+
var t = {}, r = Qt(e);
|
|
1455
1434
|
return r || t;
|
|
1456
1435
|
}
|
|
1457
|
-
function
|
|
1436
|
+
function wn(e) {
|
|
1458
1437
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1459
1438
|
var i = n[r];
|
|
1460
1439
|
switch (i.stem) {
|
|
@@ -1478,7 +1457,7 @@ function Bn(e) {
|
|
|
1478
1457
|
continue;
|
|
1479
1458
|
case "measure-unit":
|
|
1480
1459
|
case "unit":
|
|
1481
|
-
t.style = "unit", t.unit =
|
|
1460
|
+
t.style = "unit", t.unit = xn(i.options[0]);
|
|
1482
1461
|
continue;
|
|
1483
1462
|
case "compact-short":
|
|
1484
1463
|
case "K":
|
|
@@ -1489,13 +1468,13 @@ function Bn(e) {
|
|
|
1489
1468
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1490
1469
|
continue;
|
|
1491
1470
|
case "scientific":
|
|
1492
|
-
t =
|
|
1493
|
-
return
|
|
1471
|
+
t = m(m(m({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1472
|
+
return m(m({}, h), ft(u));
|
|
1494
1473
|
}, {}));
|
|
1495
1474
|
continue;
|
|
1496
1475
|
case "engineering":
|
|
1497
|
-
t =
|
|
1498
|
-
return
|
|
1476
|
+
t = m(m(m({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1477
|
+
return m(m({}, h), ft(u));
|
|
1499
1478
|
}, {}));
|
|
1500
1479
|
continue;
|
|
1501
1480
|
case "notation-simple":
|
|
@@ -1540,41 +1519,41 @@ function Bn(e) {
|
|
|
1540
1519
|
case "integer-width":
|
|
1541
1520
|
if (i.options.length > 1)
|
|
1542
1521
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1543
|
-
i.options[0].replace(
|
|
1522
|
+
i.options[0].replace(Sn, function(h, u, l, f, c, b) {
|
|
1544
1523
|
if (u)
|
|
1545
1524
|
t.minimumIntegerDigits = l.length;
|
|
1546
1525
|
else {
|
|
1547
1526
|
if (f && c)
|
|
1548
1527
|
throw new Error("We currently do not support maximum integer digits");
|
|
1549
|
-
if (
|
|
1528
|
+
if (b)
|
|
1550
1529
|
throw new Error("We currently do not support exact integer digits");
|
|
1551
1530
|
}
|
|
1552
1531
|
return "";
|
|
1553
1532
|
});
|
|
1554
1533
|
continue;
|
|
1555
1534
|
}
|
|
1556
|
-
if (
|
|
1535
|
+
if (Zt.test(i.stem)) {
|
|
1557
1536
|
t.minimumIntegerDigits = i.stem.length;
|
|
1558
1537
|
continue;
|
|
1559
1538
|
}
|
|
1560
|
-
if (
|
|
1539
|
+
if (ht.test(i.stem)) {
|
|
1561
1540
|
if (i.options.length > 1)
|
|
1562
1541
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1563
|
-
i.stem.replace(
|
|
1564
|
-
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1542
|
+
i.stem.replace(ht, function(h, u, l, f, c, b) {
|
|
1543
|
+
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1565
1544
|
});
|
|
1566
1545
|
var o = i.options[0];
|
|
1567
|
-
o === "w" ? t =
|
|
1546
|
+
o === "w" ? t = m(m({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = m(m({}, t), lt(o)));
|
|
1568
1547
|
continue;
|
|
1569
1548
|
}
|
|
1570
|
-
if (
|
|
1571
|
-
t =
|
|
1549
|
+
if (zt.test(i.stem)) {
|
|
1550
|
+
t = m(m({}, t), lt(i.stem));
|
|
1572
1551
|
continue;
|
|
1573
1552
|
}
|
|
1574
|
-
var s =
|
|
1575
|
-
s && (t =
|
|
1576
|
-
var a =
|
|
1577
|
-
a && (t =
|
|
1553
|
+
var s = Qt(i.stem);
|
|
1554
|
+
s && (t = m(m({}, t), s));
|
|
1555
|
+
var a = Hn(i.stem);
|
|
1556
|
+
a && (t = m(m({}, t), a));
|
|
1578
1557
|
}
|
|
1579
1558
|
return t;
|
|
1580
1559
|
}
|
|
@@ -2993,13 +2972,13 @@ var se = {
|
|
|
2993
2972
|
"h"
|
|
2994
2973
|
]
|
|
2995
2974
|
};
|
|
2996
|
-
function
|
|
2975
|
+
function Tn(e, t) {
|
|
2997
2976
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2998
2977
|
var i = e.charAt(n);
|
|
2999
2978
|
if (i === "j") {
|
|
3000
2979
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3001
2980
|
o++, n++;
|
|
3002
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2981
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Bn(t);
|
|
3003
2982
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3004
2983
|
r += h;
|
|
3005
2984
|
for (; s-- > 0; )
|
|
@@ -3009,7 +2988,7 @@ function An(e, t) {
|
|
|
3009
2988
|
}
|
|
3010
2989
|
return r;
|
|
3011
2990
|
}
|
|
3012
|
-
function
|
|
2991
|
+
function Bn(e) {
|
|
3013
2992
|
var t = e.hourCycle;
|
|
3014
2993
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3015
2994
|
e.hourCycles && // @ts-ignore
|
|
@@ -3031,20 +3010,20 @@ function Pn(e) {
|
|
|
3031
3010
|
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
3032
3011
|
return i[0];
|
|
3033
3012
|
}
|
|
3034
|
-
var
|
|
3013
|
+
var He, An = new RegExp("^".concat(Wt.source, "*")), Pn = new RegExp("".concat(Wt.source, "*$"));
|
|
3035
3014
|
function d(e, t) {
|
|
3036
3015
|
return { start: e, end: t };
|
|
3037
3016
|
}
|
|
3038
|
-
var
|
|
3017
|
+
var Cn = !!String.prototype.startsWith && "_a".startsWith("a", 1), On = !!String.fromCodePoint, Ln = !!Object.fromEntries, In = !!String.prototype.codePointAt, Nn = !!String.prototype.trimStart, Mn = !!String.prototype.trimEnd, $n = !!Number.isSafeInteger, Rn = $n ? Number.isSafeInteger : function(e) {
|
|
3039
3018
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3040
|
-
},
|
|
3019
|
+
}, $e = !0;
|
|
3041
3020
|
try {
|
|
3042
|
-
var
|
|
3043
|
-
|
|
3021
|
+
var Un = qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3022
|
+
$e = ((He = Un.exec("a")) === null || He === void 0 ? void 0 : He[0]) === "a";
|
|
3044
3023
|
} catch {
|
|
3045
|
-
|
|
3024
|
+
$e = !1;
|
|
3046
3025
|
}
|
|
3047
|
-
var
|
|
3026
|
+
var ct = Cn ? (
|
|
3048
3027
|
// Native
|
|
3049
3028
|
function(t, r, n) {
|
|
3050
3029
|
return t.startsWith(r, n);
|
|
@@ -3054,7 +3033,7 @@ var dt = Ln ? (
|
|
|
3054
3033
|
function(t, r, n) {
|
|
3055
3034
|
return t.slice(n, n + r.length) === r;
|
|
3056
3035
|
}
|
|
3057
|
-
),
|
|
3036
|
+
), Re = On ? String.fromCodePoint : (
|
|
3058
3037
|
// IE11
|
|
3059
3038
|
function() {
|
|
3060
3039
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3066,9 +3045,9 @@ var dt = Ln ? (
|
|
|
3066
3045
|
}
|
|
3067
3046
|
return n;
|
|
3068
3047
|
}
|
|
3069
|
-
),
|
|
3048
|
+
), pt = (
|
|
3070
3049
|
// native
|
|
3071
|
-
|
|
3050
|
+
Ln ? Object.fromEntries : (
|
|
3072
3051
|
// Ponyfill
|
|
3073
3052
|
function(t) {
|
|
3074
3053
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3078,7 +3057,7 @@ var dt = Ln ? (
|
|
|
3078
3057
|
return r;
|
|
3079
3058
|
}
|
|
3080
3059
|
)
|
|
3081
|
-
),
|
|
3060
|
+
), Jt = In ? (
|
|
3082
3061
|
// Native
|
|
3083
3062
|
function(t, r) {
|
|
3084
3063
|
return t.codePointAt(r);
|
|
@@ -3092,7 +3071,7 @@ var dt = Ln ? (
|
|
|
3092
3071
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3093
3072
|
}
|
|
3094
3073
|
}
|
|
3095
|
-
),
|
|
3074
|
+
), Dn = Nn ? (
|
|
3096
3075
|
// Native
|
|
3097
3076
|
function(t) {
|
|
3098
3077
|
return t.trimStart();
|
|
@@ -3100,9 +3079,9 @@ var dt = Ln ? (
|
|
|
3100
3079
|
) : (
|
|
3101
3080
|
// Ponyfill
|
|
3102
3081
|
function(t) {
|
|
3103
|
-
return t.replace(
|
|
3082
|
+
return t.replace(An, "");
|
|
3104
3083
|
}
|
|
3105
|
-
),
|
|
3084
|
+
), Gn = Mn ? (
|
|
3106
3085
|
// Native
|
|
3107
3086
|
function(t) {
|
|
3108
3087
|
return t.trimEnd();
|
|
@@ -3110,32 +3089,32 @@ var dt = Ln ? (
|
|
|
3110
3089
|
) : (
|
|
3111
3090
|
// Ponyfill
|
|
3112
3091
|
function(t) {
|
|
3113
|
-
return t.replace(
|
|
3092
|
+
return t.replace(Pn, "");
|
|
3114
3093
|
}
|
|
3115
3094
|
);
|
|
3116
|
-
function
|
|
3095
|
+
function qt(e, t) {
|
|
3117
3096
|
return new RegExp(e, t);
|
|
3118
3097
|
}
|
|
3119
|
-
var
|
|
3120
|
-
if (
|
|
3121
|
-
var
|
|
3122
|
-
|
|
3098
|
+
var Ue;
|
|
3099
|
+
if ($e) {
|
|
3100
|
+
var dt = qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3101
|
+
Ue = function(t, r) {
|
|
3123
3102
|
var n;
|
|
3124
|
-
|
|
3125
|
-
var i =
|
|
3103
|
+
dt.lastIndex = r;
|
|
3104
|
+
var i = dt.exec(t);
|
|
3126
3105
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3127
3106
|
};
|
|
3128
3107
|
} else
|
|
3129
|
-
|
|
3108
|
+
Ue = function(t, r) {
|
|
3130
3109
|
for (var n = []; ; ) {
|
|
3131
|
-
var i =
|
|
3132
|
-
if (i === void 0 ||
|
|
3110
|
+
var i = Jt(t, r);
|
|
3111
|
+
if (i === void 0 || Yt(i) || kn(i))
|
|
3133
3112
|
break;
|
|
3134
3113
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3135
3114
|
}
|
|
3136
|
-
return
|
|
3115
|
+
return Re.apply(void 0, n);
|
|
3137
3116
|
};
|
|
3138
|
-
var
|
|
3117
|
+
var Fn = (
|
|
3139
3118
|
/** @class */
|
|
3140
3119
|
function() {
|
|
3141
3120
|
function e(t, r) {
|
|
@@ -3159,14 +3138,14 @@ var Vn = (
|
|
|
3159
3138
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3160
3139
|
var a = this.clonePosition();
|
|
3161
3140
|
this.bump(), i.push({
|
|
3162
|
-
type:
|
|
3141
|
+
type: y.pound,
|
|
3163
3142
|
location: d(a, this.clonePosition())
|
|
3164
3143
|
});
|
|
3165
3144
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3166
3145
|
if (n)
|
|
3167
3146
|
break;
|
|
3168
3147
|
return this.error(p.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
|
3169
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3148
|
+
} else if (o === 60 && !this.ignoreTag && De(this.peek() || 0)) {
|
|
3170
3149
|
var s = this.parseTag(t, r);
|
|
3171
3150
|
if (s.err)
|
|
3172
3151
|
return s;
|
|
@@ -3187,7 +3166,7 @@ var Vn = (
|
|
|
3187
3166
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3188
3167
|
return {
|
|
3189
3168
|
val: {
|
|
3190
|
-
type:
|
|
3169
|
+
type: y.literal,
|
|
3191
3170
|
value: "<".concat(i, "/>"),
|
|
3192
3171
|
location: d(n, this.clonePosition())
|
|
3193
3172
|
},
|
|
@@ -3199,12 +3178,12 @@ var Vn = (
|
|
|
3199
3178
|
return o;
|
|
3200
3179
|
var s = o.val, a = this.clonePosition();
|
|
3201
3180
|
if (this.bumpIf("</")) {
|
|
3202
|
-
if (this.isEOF() || !
|
|
3181
|
+
if (this.isEOF() || !De(this.char()))
|
|
3203
3182
|
return this.error(p.INVALID_TAG, d(a, this.clonePosition()));
|
|
3204
3183
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3205
3184
|
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, d(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3206
3185
|
val: {
|
|
3207
|
-
type:
|
|
3186
|
+
type: y.tag,
|
|
3208
3187
|
value: i,
|
|
3209
3188
|
children: s,
|
|
3210
3189
|
location: d(n, this.clonePosition())
|
|
@@ -3217,7 +3196,7 @@ var Vn = (
|
|
|
3217
3196
|
return this.error(p.INVALID_TAG, d(n, this.clonePosition()));
|
|
3218
3197
|
}, e.prototype.parseTagName = function() {
|
|
3219
3198
|
var t = this.offset();
|
|
3220
|
-
for (this.bump(); !this.isEOF() &&
|
|
3199
|
+
for (this.bump(); !this.isEOF() && Vn(this.char()); )
|
|
3221
3200
|
this.bump();
|
|
3222
3201
|
return this.message.slice(t, this.offset());
|
|
3223
3202
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3241,12 +3220,12 @@ var Vn = (
|
|
|
3241
3220
|
}
|
|
3242
3221
|
var h = d(n, this.clonePosition());
|
|
3243
3222
|
return {
|
|
3244
|
-
val: { type:
|
|
3223
|
+
val: { type: y.literal, value: i, location: h },
|
|
3245
3224
|
err: null
|
|
3246
3225
|
};
|
|
3247
3226
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3248
3227
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3249
|
-
!
|
|
3228
|
+
!jn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3250
3229
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3251
3230
|
if (this.isEOF() || this.char() !== 39)
|
|
3252
3231
|
return null;
|
|
@@ -3280,12 +3259,12 @@ var Vn = (
|
|
|
3280
3259
|
r.push(n);
|
|
3281
3260
|
this.bump();
|
|
3282
3261
|
}
|
|
3283
|
-
return
|
|
3262
|
+
return Re.apply(void 0, r);
|
|
3284
3263
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3285
3264
|
if (this.isEOF())
|
|
3286
3265
|
return null;
|
|
3287
3266
|
var n = this.char();
|
|
3288
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3267
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Re(n));
|
|
3289
3268
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3290
3269
|
var n = this.clonePosition();
|
|
3291
3270
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3301,7 +3280,7 @@ var Vn = (
|
|
|
3301
3280
|
case 125:
|
|
3302
3281
|
return this.bump(), {
|
|
3303
3282
|
val: {
|
|
3304
|
-
type:
|
|
3283
|
+
type: y.argument,
|
|
3305
3284
|
// value does not include the opening and closing braces.
|
|
3306
3285
|
value: i,
|
|
3307
3286
|
location: d(n, this.clonePosition())
|
|
@@ -3314,7 +3293,7 @@ var Vn = (
|
|
|
3314
3293
|
return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3315
3294
|
}
|
|
3316
3295
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3317
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3296
|
+
var t = this.clonePosition(), r = this.offset(), n = Ue(this.message, r), i = r + n.length;
|
|
3318
3297
|
this.bumpTo(i);
|
|
3319
3298
|
var o = this.clonePosition(), s = d(t, o);
|
|
3320
3299
|
return { value: n, location: s };
|
|
@@ -3333,46 +3312,46 @@ var Vn = (
|
|
|
3333
3312
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3334
3313
|
if (f.err)
|
|
3335
3314
|
return f;
|
|
3336
|
-
var c =
|
|
3315
|
+
var c = Gn(f.val);
|
|
3337
3316
|
if (c.length === 0)
|
|
3338
3317
|
return this.error(p.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
|
3339
|
-
var
|
|
3340
|
-
u = { style: c, styleLocation:
|
|
3318
|
+
var b = d(l, this.clonePosition());
|
|
3319
|
+
u = { style: c, styleLocation: b };
|
|
3341
3320
|
}
|
|
3342
|
-
var
|
|
3343
|
-
if (
|
|
3344
|
-
return
|
|
3345
|
-
var
|
|
3346
|
-
if (u &&
|
|
3347
|
-
var
|
|
3321
|
+
var g = this.tryParseArgumentClose(i);
|
|
3322
|
+
if (g.err)
|
|
3323
|
+
return g;
|
|
3324
|
+
var v = d(i, this.clonePosition());
|
|
3325
|
+
if (u && ct(u?.style, "::", 0)) {
|
|
3326
|
+
var H = Dn(u.style.slice(2));
|
|
3348
3327
|
if (a === "number") {
|
|
3349
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3328
|
+
var f = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
|
3350
3329
|
return f.err ? f : {
|
|
3351
|
-
val: { type:
|
|
3330
|
+
val: { type: y.number, value: n, location: v, style: f.val },
|
|
3352
3331
|
err: null
|
|
3353
3332
|
};
|
|
3354
3333
|
} else {
|
|
3355
|
-
if (
|
|
3356
|
-
return this.error(p.EXPECT_DATE_TIME_SKELETON,
|
|
3357
|
-
var E =
|
|
3358
|
-
this.locale && (E =
|
|
3334
|
+
if (H.length === 0)
|
|
3335
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, v);
|
|
3336
|
+
var E = H;
|
|
3337
|
+
this.locale && (E = Tn(H, this.locale));
|
|
3359
3338
|
var c = {
|
|
3360
|
-
type:
|
|
3339
|
+
type: F.dateTime,
|
|
3361
3340
|
pattern: E,
|
|
3362
3341
|
location: u.styleLocation,
|
|
3363
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3364
|
-
}, I = a === "date" ?
|
|
3342
|
+
parsedOptions: this.shouldParseSkeletons ? yn(E) : {}
|
|
3343
|
+
}, I = a === "date" ? y.date : y.time;
|
|
3365
3344
|
return {
|
|
3366
|
-
val: { type: I, value: n, location:
|
|
3345
|
+
val: { type: I, value: n, location: v, style: c },
|
|
3367
3346
|
err: null
|
|
3368
3347
|
};
|
|
3369
3348
|
}
|
|
3370
3349
|
}
|
|
3371
3350
|
return {
|
|
3372
3351
|
val: {
|
|
3373
|
-
type: a === "number" ?
|
|
3352
|
+
type: a === "number" ? y.number : a === "date" ? y.date : y.time,
|
|
3374
3353
|
value: n,
|
|
3375
|
-
location:
|
|
3354
|
+
location: v,
|
|
3376
3355
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3377
3356
|
},
|
|
3378
3357
|
err: null
|
|
@@ -3381,43 +3360,43 @@ var Vn = (
|
|
|
3381
3360
|
case "plural":
|
|
3382
3361
|
case "selectordinal":
|
|
3383
3362
|
case "select": {
|
|
3384
|
-
var
|
|
3363
|
+
var w = this.clonePosition();
|
|
3385
3364
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3386
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(
|
|
3365
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(w, m({}, w)));
|
|
3387
3366
|
this.bumpSpace();
|
|
3388
|
-
var
|
|
3389
|
-
if (a !== "select" &&
|
|
3367
|
+
var z = this.parseIdentifierIfPossible(), C = 0;
|
|
3368
|
+
if (a !== "select" && z.value === "offset") {
|
|
3390
3369
|
if (!this.bumpIf(":"))
|
|
3391
3370
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
|
3392
3371
|
this.bumpSpace();
|
|
3393
3372
|
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3394
3373
|
if (f.err)
|
|
3395
3374
|
return f;
|
|
3396
|
-
this.bumpSpace(),
|
|
3375
|
+
this.bumpSpace(), z = this.parseIdentifierIfPossible(), C = f.val;
|
|
3397
3376
|
}
|
|
3398
|
-
var ne = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3377
|
+
var ne = this.tryParsePluralOrSelectOptions(t, a, r, z);
|
|
3399
3378
|
if (ne.err)
|
|
3400
3379
|
return ne;
|
|
3401
|
-
var
|
|
3402
|
-
if (
|
|
3403
|
-
return
|
|
3404
|
-
var
|
|
3380
|
+
var g = this.tryParseArgumentClose(i);
|
|
3381
|
+
if (g.err)
|
|
3382
|
+
return g;
|
|
3383
|
+
var Ze = d(i, this.clonePosition());
|
|
3405
3384
|
return a === "select" ? {
|
|
3406
3385
|
val: {
|
|
3407
|
-
type:
|
|
3386
|
+
type: y.select,
|
|
3408
3387
|
value: n,
|
|
3409
|
-
options:
|
|
3410
|
-
location:
|
|
3388
|
+
options: pt(ne.val),
|
|
3389
|
+
location: Ze
|
|
3411
3390
|
},
|
|
3412
3391
|
err: null
|
|
3413
3392
|
} : {
|
|
3414
3393
|
val: {
|
|
3415
|
-
type:
|
|
3394
|
+
type: y.plural,
|
|
3416
3395
|
value: n,
|
|
3417
|
-
options:
|
|
3418
|
-
offset:
|
|
3396
|
+
options: pt(ne.val),
|
|
3397
|
+
offset: C,
|
|
3419
3398
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3420
|
-
location:
|
|
3399
|
+
location: Ze
|
|
3421
3400
|
},
|
|
3422
3401
|
err: null
|
|
3423
3402
|
};
|
|
@@ -3465,16 +3444,16 @@ var Vn = (
|
|
|
3465
3444
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3466
3445
|
var n = [];
|
|
3467
3446
|
try {
|
|
3468
|
-
n =
|
|
3447
|
+
n = En(t);
|
|
3469
3448
|
} catch {
|
|
3470
3449
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3471
3450
|
}
|
|
3472
3451
|
return {
|
|
3473
3452
|
val: {
|
|
3474
|
-
type:
|
|
3453
|
+
type: F.number,
|
|
3475
3454
|
tokens: n,
|
|
3476
3455
|
location: r,
|
|
3477
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3456
|
+
parsedOptions: this.shouldParseSkeletons ? wn(n) : {}
|
|
3478
3457
|
},
|
|
3479
3458
|
err: null
|
|
3480
3459
|
};
|
|
@@ -3493,20 +3472,20 @@ var Vn = (
|
|
|
3493
3472
|
if (h.has(u))
|
|
3494
3473
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3495
3474
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3496
|
-
var
|
|
3475
|
+
var b = this.clonePosition();
|
|
3497
3476
|
if (!this.bumpIf("{"))
|
|
3498
3477
|
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
|
3499
|
-
var
|
|
3478
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
3479
|
+
if (g.err)
|
|
3480
|
+
return g;
|
|
3481
|
+
var v = this.tryParseArgumentClose(b);
|
|
3500
3482
|
if (v.err)
|
|
3501
3483
|
return v;
|
|
3502
|
-
var b = this.tryParseArgumentClose(m);
|
|
3503
|
-
if (b.err)
|
|
3504
|
-
return b;
|
|
3505
3484
|
a.push([
|
|
3506
3485
|
u,
|
|
3507
3486
|
{
|
|
3508
|
-
value:
|
|
3509
|
-
location: d(
|
|
3487
|
+
value: g.val,
|
|
3488
|
+
location: d(b, this.clonePosition())
|
|
3510
3489
|
}
|
|
3511
3490
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3512
3491
|
}
|
|
@@ -3522,7 +3501,7 @@ var Vn = (
|
|
|
3522
3501
|
break;
|
|
3523
3502
|
}
|
|
3524
3503
|
var h = d(i, this.clonePosition());
|
|
3525
|
-
return o ? (s *= n,
|
|
3504
|
+
return o ? (s *= n, Rn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3526
3505
|
}, e.prototype.offset = function() {
|
|
3527
3506
|
return this.position.offset;
|
|
3528
3507
|
}, e.prototype.isEOF = function() {
|
|
@@ -3537,7 +3516,7 @@ var Vn = (
|
|
|
3537
3516
|
var t = this.position.offset;
|
|
3538
3517
|
if (t >= this.message.length)
|
|
3539
3518
|
throw Error("out of bound");
|
|
3540
|
-
var r =
|
|
3519
|
+
var r = Jt(this.message, t);
|
|
3541
3520
|
if (r === void 0)
|
|
3542
3521
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3543
3522
|
return r;
|
|
@@ -3556,7 +3535,7 @@ var Vn = (
|
|
|
3556
3535
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3557
3536
|
}
|
|
3558
3537
|
}, e.prototype.bumpIf = function(t) {
|
|
3559
|
-
if (
|
|
3538
|
+
if (ct(this.message, t, this.offset())) {
|
|
3560
3539
|
for (var r = 0; r < t.length; r++)
|
|
3561
3540
|
this.bump();
|
|
3562
3541
|
return !0;
|
|
@@ -3578,7 +3557,7 @@ var Vn = (
|
|
|
3578
3557
|
break;
|
|
3579
3558
|
}
|
|
3580
3559
|
}, e.prototype.bumpSpace = function() {
|
|
3581
|
-
for (; !this.isEOF() &&
|
|
3560
|
+
for (; !this.isEOF() && Yt(this.char()); )
|
|
3582
3561
|
this.bump();
|
|
3583
3562
|
}, e.prototype.peek = function() {
|
|
3584
3563
|
if (this.isEOF())
|
|
@@ -3588,47 +3567,47 @@ var Vn = (
|
|
|
3588
3567
|
}, e;
|
|
3589
3568
|
}()
|
|
3590
3569
|
);
|
|
3591
|
-
function
|
|
3570
|
+
function De(e) {
|
|
3592
3571
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3593
3572
|
}
|
|
3594
|
-
function
|
|
3595
|
-
return
|
|
3573
|
+
function jn(e) {
|
|
3574
|
+
return De(e) || e === 47;
|
|
3596
3575
|
}
|
|
3597
|
-
function
|
|
3576
|
+
function Vn(e) {
|
|
3598
3577
|
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;
|
|
3599
3578
|
}
|
|
3600
|
-
function
|
|
3579
|
+
function Yt(e) {
|
|
3601
3580
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3602
3581
|
}
|
|
3603
|
-
function
|
|
3582
|
+
function kn(e) {
|
|
3604
3583
|
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;
|
|
3605
3584
|
}
|
|
3606
|
-
function
|
|
3585
|
+
function Ge(e) {
|
|
3607
3586
|
e.forEach(function(t) {
|
|
3608
|
-
if (delete t.location,
|
|
3587
|
+
if (delete t.location, jt(t) || Vt(t))
|
|
3609
3588
|
for (var r in t.options)
|
|
3610
|
-
delete t.options[r].location,
|
|
3589
|
+
delete t.options[r].location, Ge(t.options[r].value);
|
|
3611
3590
|
else
|
|
3612
|
-
|
|
3591
|
+
Dt(t) && Xt(t.style) || (Gt(t) || Ft(t)) && Me(t.style) ? delete t.style.location : kt(t) && Ge(t.children);
|
|
3613
3592
|
});
|
|
3614
3593
|
}
|
|
3615
|
-
function
|
|
3616
|
-
t === void 0 && (t = {}), t =
|
|
3617
|
-
var r = new
|
|
3594
|
+
function Xn(e, t) {
|
|
3595
|
+
t === void 0 && (t = {}), t = m({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3596
|
+
var r = new Fn(e, t).parse();
|
|
3618
3597
|
if (r.err) {
|
|
3619
3598
|
var n = SyntaxError(p[r.err.kind]);
|
|
3620
3599
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3621
3600
|
}
|
|
3622
|
-
return t?.captureLocation ||
|
|
3601
|
+
return t?.captureLocation || Ge(r.val), r.val;
|
|
3623
3602
|
}
|
|
3624
|
-
var
|
|
3603
|
+
var j;
|
|
3625
3604
|
(function(e) {
|
|
3626
3605
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3627
|
-
})(
|
|
3628
|
-
var
|
|
3606
|
+
})(j || (j = {}));
|
|
3607
|
+
var be = (
|
|
3629
3608
|
/** @class */
|
|
3630
3609
|
function(e) {
|
|
3631
|
-
|
|
3610
|
+
A(t, e);
|
|
3632
3611
|
function t(r, n, i) {
|
|
3633
3612
|
var o = e.call(this, r) || this;
|
|
3634
3613
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3637,48 +3616,48 @@ var ge = (
|
|
|
3637
3616
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3638
3617
|
}, t;
|
|
3639
3618
|
}(Error)
|
|
3640
|
-
),
|
|
3619
|
+
), mt = (
|
|
3641
3620
|
/** @class */
|
|
3642
3621
|
function(e) {
|
|
3643
|
-
|
|
3622
|
+
A(t, e);
|
|
3644
3623
|
function t(r, n, i, o) {
|
|
3645
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3624
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), j.INVALID_VALUE, o) || this;
|
|
3646
3625
|
}
|
|
3647
3626
|
return t;
|
|
3648
|
-
}(
|
|
3649
|
-
),
|
|
3627
|
+
}(be)
|
|
3628
|
+
), Wn = (
|
|
3650
3629
|
/** @class */
|
|
3651
3630
|
function(e) {
|
|
3652
|
-
|
|
3631
|
+
A(t, e);
|
|
3653
3632
|
function t(r, n, i) {
|
|
3654
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3633
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), j.INVALID_VALUE, i) || this;
|
|
3655
3634
|
}
|
|
3656
3635
|
return t;
|
|
3657
|
-
}(
|
|
3658
|
-
),
|
|
3636
|
+
}(be)
|
|
3637
|
+
), zn = (
|
|
3659
3638
|
/** @class */
|
|
3660
3639
|
function(e) {
|
|
3661
|
-
|
|
3640
|
+
A(t, e);
|
|
3662
3641
|
function t(r, n) {
|
|
3663
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3642
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), j.MISSING_VALUE, n) || this;
|
|
3664
3643
|
}
|
|
3665
3644
|
return t;
|
|
3666
|
-
}(
|
|
3645
|
+
}(be)
|
|
3667
3646
|
), x;
|
|
3668
3647
|
(function(e) {
|
|
3669
3648
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3670
3649
|
})(x || (x = {}));
|
|
3671
|
-
function
|
|
3650
|
+
function Zn(e) {
|
|
3672
3651
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3673
3652
|
var n = t[t.length - 1];
|
|
3674
3653
|
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3675
3654
|
}, []);
|
|
3676
3655
|
}
|
|
3677
|
-
function
|
|
3656
|
+
function Qn(e) {
|
|
3678
3657
|
return typeof e == "function";
|
|
3679
3658
|
}
|
|
3680
3659
|
function he(e, t, r, n, i, o, s) {
|
|
3681
|
-
if (e.length === 1 &&
|
|
3660
|
+
if (e.length === 1 && ut(e[0]))
|
|
3682
3661
|
return [
|
|
3683
3662
|
{
|
|
3684
3663
|
type: x.literal,
|
|
@@ -3687,14 +3666,14 @@ function he(e, t, r, n, i, o, s) {
|
|
|
3687
3666
|
];
|
|
3688
3667
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3689
3668
|
var l = u[h];
|
|
3690
|
-
if (
|
|
3669
|
+
if (ut(l)) {
|
|
3691
3670
|
a.push({
|
|
3692
3671
|
type: x.literal,
|
|
3693
3672
|
value: l.value
|
|
3694
3673
|
});
|
|
3695
3674
|
continue;
|
|
3696
3675
|
}
|
|
3697
|
-
if (
|
|
3676
|
+
if (vn(l)) {
|
|
3698
3677
|
typeof o == "number" && a.push({
|
|
3699
3678
|
type: x.literal,
|
|
3700
3679
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3703,89 +3682,89 @@ function he(e, t, r, n, i, o, s) {
|
|
|
3703
3682
|
}
|
|
3704
3683
|
var f = l.value;
|
|
3705
3684
|
if (!(i && f in i))
|
|
3706
|
-
throw new
|
|
3685
|
+
throw new zn(f, s);
|
|
3707
3686
|
var c = i[f];
|
|
3708
|
-
if (
|
|
3687
|
+
if (bn(l)) {
|
|
3709
3688
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3710
3689
|
type: typeof c == "string" ? x.literal : x.object,
|
|
3711
3690
|
value: c
|
|
3712
3691
|
});
|
|
3713
3692
|
continue;
|
|
3714
3693
|
}
|
|
3715
|
-
if (
|
|
3716
|
-
var
|
|
3694
|
+
if (Gt(l)) {
|
|
3695
|
+
var b = typeof l.style == "string" ? n.date[l.style] : Me(l.style) ? l.style.parsedOptions : void 0;
|
|
3717
3696
|
a.push({
|
|
3718
3697
|
type: x.literal,
|
|
3719
|
-
value: r.getDateTimeFormat(t,
|
|
3698
|
+
value: r.getDateTimeFormat(t, b).format(c)
|
|
3720
3699
|
});
|
|
3721
3700
|
continue;
|
|
3722
3701
|
}
|
|
3723
|
-
if (
|
|
3724
|
-
var
|
|
3702
|
+
if (Ft(l)) {
|
|
3703
|
+
var b = typeof l.style == "string" ? n.time[l.style] : Me(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3725
3704
|
a.push({
|
|
3726
3705
|
type: x.literal,
|
|
3727
|
-
value: r.getDateTimeFormat(t,
|
|
3706
|
+
value: r.getDateTimeFormat(t, b).format(c)
|
|
3728
3707
|
});
|
|
3729
3708
|
continue;
|
|
3730
3709
|
}
|
|
3731
|
-
if (
|
|
3732
|
-
var
|
|
3733
|
-
|
|
3710
|
+
if (Dt(l)) {
|
|
3711
|
+
var b = typeof l.style == "string" ? n.number[l.style] : Xt(l.style) ? l.style.parsedOptions : void 0;
|
|
3712
|
+
b && b.scale && (c = c * (b.scale || 1)), a.push({
|
|
3734
3713
|
type: x.literal,
|
|
3735
|
-
value: r.getNumberFormat(t,
|
|
3714
|
+
value: r.getNumberFormat(t, b).format(c)
|
|
3736
3715
|
});
|
|
3737
3716
|
continue;
|
|
3738
3717
|
}
|
|
3739
|
-
if (
|
|
3740
|
-
var
|
|
3741
|
-
if (!
|
|
3742
|
-
throw new
|
|
3743
|
-
var E = he(
|
|
3744
|
-
return
|
|
3718
|
+
if (kt(l)) {
|
|
3719
|
+
var g = l.children, v = l.value, H = i[v];
|
|
3720
|
+
if (!Qn(H))
|
|
3721
|
+
throw new Wn(v, "function", s);
|
|
3722
|
+
var E = he(g, t, r, n, i, o), I = H(E.map(function(C) {
|
|
3723
|
+
return C.value;
|
|
3745
3724
|
}));
|
|
3746
|
-
Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(
|
|
3725
|
+
Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(C) {
|
|
3747
3726
|
return {
|
|
3748
|
-
type: typeof
|
|
3749
|
-
value:
|
|
3727
|
+
type: typeof C == "string" ? x.literal : x.object,
|
|
3728
|
+
value: C
|
|
3750
3729
|
};
|
|
3751
3730
|
}));
|
|
3752
3731
|
}
|
|
3753
|
-
if (
|
|
3754
|
-
var
|
|
3755
|
-
if (!
|
|
3756
|
-
throw new
|
|
3757
|
-
a.push.apply(a, he(
|
|
3732
|
+
if (jt(l)) {
|
|
3733
|
+
var w = l.options[c] || l.options.other;
|
|
3734
|
+
if (!w)
|
|
3735
|
+
throw new mt(l.value, c, Object.keys(l.options), s);
|
|
3736
|
+
a.push.apply(a, he(w.value, t, r, n, i));
|
|
3758
3737
|
continue;
|
|
3759
3738
|
}
|
|
3760
|
-
if (
|
|
3761
|
-
var
|
|
3762
|
-
if (!
|
|
3739
|
+
if (Vt(l)) {
|
|
3740
|
+
var w = l.options["=".concat(c)];
|
|
3741
|
+
if (!w) {
|
|
3763
3742
|
if (!Intl.PluralRules)
|
|
3764
|
-
throw new
|
|
3743
|
+
throw new be(`Intl.PluralRules is not available in this environment.
|
|
3765
3744
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3766
|
-
`,
|
|
3767
|
-
var
|
|
3768
|
-
|
|
3745
|
+
`, j.MISSING_INTL_API, s);
|
|
3746
|
+
var z = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3747
|
+
w = l.options[z] || l.options.other;
|
|
3769
3748
|
}
|
|
3770
|
-
if (!
|
|
3771
|
-
throw new
|
|
3772
|
-
a.push.apply(a, he(
|
|
3749
|
+
if (!w)
|
|
3750
|
+
throw new mt(l.value, c, Object.keys(l.options), s);
|
|
3751
|
+
a.push.apply(a, he(w.value, t, r, n, i, c - (l.offset || 0)));
|
|
3773
3752
|
continue;
|
|
3774
3753
|
}
|
|
3775
3754
|
}
|
|
3776
|
-
return
|
|
3755
|
+
return Zn(a);
|
|
3777
3756
|
}
|
|
3778
|
-
function
|
|
3779
|
-
return t ?
|
|
3780
|
-
return r[n] =
|
|
3757
|
+
function Jn(e, t) {
|
|
3758
|
+
return t ? m(m(m({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3759
|
+
return r[n] = m(m({}, e[n]), t[n] || {}), r;
|
|
3781
3760
|
}, {})) : e;
|
|
3782
3761
|
}
|
|
3783
|
-
function
|
|
3762
|
+
function qn(e, t) {
|
|
3784
3763
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3785
|
-
return r[n] =
|
|
3786
|
-
},
|
|
3764
|
+
return r[n] = Jn(e[n], t[n]), r;
|
|
3765
|
+
}, m({}, e)) : e;
|
|
3787
3766
|
}
|
|
3788
|
-
function
|
|
3767
|
+
function we(e) {
|
|
3789
3768
|
return {
|
|
3790
3769
|
create: function() {
|
|
3791
3770
|
return {
|
|
@@ -3799,39 +3778,39 @@ function Be(e) {
|
|
|
3799
3778
|
}
|
|
3800
3779
|
};
|
|
3801
3780
|
}
|
|
3802
|
-
function
|
|
3781
|
+
function Yn(e) {
|
|
3803
3782
|
return e === void 0 && (e = {
|
|
3804
3783
|
number: {},
|
|
3805
3784
|
dateTime: {},
|
|
3806
3785
|
pluralRules: {}
|
|
3807
3786
|
}), {
|
|
3808
|
-
getNumberFormat:
|
|
3787
|
+
getNumberFormat: xe(function() {
|
|
3809
3788
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3810
3789
|
r[n] = arguments[n];
|
|
3811
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3790
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, D([void 0], r, !1)))();
|
|
3812
3791
|
}, {
|
|
3813
|
-
cache:
|
|
3814
|
-
strategy:
|
|
3792
|
+
cache: we(e.number),
|
|
3793
|
+
strategy: Se.variadic
|
|
3815
3794
|
}),
|
|
3816
|
-
getDateTimeFormat:
|
|
3795
|
+
getDateTimeFormat: xe(function() {
|
|
3817
3796
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3818
3797
|
r[n] = arguments[n];
|
|
3819
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3798
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, D([void 0], r, !1)))();
|
|
3820
3799
|
}, {
|
|
3821
|
-
cache:
|
|
3822
|
-
strategy:
|
|
3800
|
+
cache: we(e.dateTime),
|
|
3801
|
+
strategy: Se.variadic
|
|
3823
3802
|
}),
|
|
3824
|
-
getPluralRules:
|
|
3803
|
+
getPluralRules: xe(function() {
|
|
3825
3804
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3826
3805
|
r[n] = arguments[n];
|
|
3827
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3806
|
+
return new ((t = Intl.PluralRules).bind.apply(t, D([void 0], r, !1)))();
|
|
3828
3807
|
}, {
|
|
3829
|
-
cache:
|
|
3830
|
-
strategy:
|
|
3808
|
+
cache: we(e.pluralRules),
|
|
3809
|
+
strategy: Se.variadic
|
|
3831
3810
|
})
|
|
3832
3811
|
};
|
|
3833
3812
|
}
|
|
3834
|
-
var
|
|
3813
|
+
var Kn = (
|
|
3835
3814
|
/** @class */
|
|
3836
3815
|
function() {
|
|
3837
3816
|
function e(t, r, n, i) {
|
|
@@ -3863,13 +3842,13 @@ var ti = (
|
|
|
3863
3842
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3864
3843
|
var s = i || {};
|
|
3865
3844
|
s.formatters;
|
|
3866
|
-
var a =
|
|
3867
|
-
this.ast = e.__parse(t,
|
|
3845
|
+
var a = Or(s, ["formatters"]);
|
|
3846
|
+
this.ast = e.__parse(t, m(m({}, a), { locale: this.resolvedLocale }));
|
|
3868
3847
|
} else
|
|
3869
3848
|
this.ast = t;
|
|
3870
3849
|
if (!Array.isArray(this.ast))
|
|
3871
3850
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3872
|
-
this.formats =
|
|
3851
|
+
this.formats = qn(e.formats, n), this.formatters = i && i.formatters || Yn(this.formatterCache);
|
|
3873
3852
|
}
|
|
3874
3853
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3875
3854
|
get: function() {
|
|
@@ -3882,7 +3861,7 @@ var ti = (
|
|
|
3882
3861
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3883
3862
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3884
3863
|
}
|
|
3885
|
-
}, e.__parse =
|
|
3864
|
+
}, e.__parse = Xn, e.formats = {
|
|
3886
3865
|
number: {
|
|
3887
3866
|
integer: {
|
|
3888
3867
|
maximumFractionDigits: 0
|
|
@@ -3943,7 +3922,7 @@ var ti = (
|
|
|
3943
3922
|
}, e;
|
|
3944
3923
|
}()
|
|
3945
3924
|
);
|
|
3946
|
-
function
|
|
3925
|
+
function ei(e, t) {
|
|
3947
3926
|
if (t == null)
|
|
3948
3927
|
return;
|
|
3949
3928
|
if (t in e)
|
|
@@ -3964,92 +3943,92 @@ function ri(e, t) {
|
|
|
3964
3943
|
n = void 0;
|
|
3965
3944
|
return n;
|
|
3966
3945
|
}
|
|
3967
|
-
const P = {},
|
|
3946
|
+
const P = {}, ti = (e, t, r) => r && (t in P || (P[t] = {}), e in P[t] || (P[t][e] = r), r), Kt = (e, t) => {
|
|
3968
3947
|
if (t == null)
|
|
3969
3948
|
return;
|
|
3970
3949
|
if (t in P && e in P[t])
|
|
3971
3950
|
return P[t][e];
|
|
3972
|
-
const r =
|
|
3951
|
+
const r = ve(t);
|
|
3973
3952
|
for (let n = 0; n < r.length; n++) {
|
|
3974
|
-
const i = r[n], o =
|
|
3953
|
+
const i = r[n], o = ni(i, e);
|
|
3975
3954
|
if (o)
|
|
3976
|
-
return
|
|
3955
|
+
return ti(e, t, o);
|
|
3977
3956
|
}
|
|
3978
3957
|
};
|
|
3979
|
-
let
|
|
3980
|
-
const te =
|
|
3981
|
-
function
|
|
3982
|
-
return
|
|
3958
|
+
let We;
|
|
3959
|
+
const te = me({});
|
|
3960
|
+
function ri(e) {
|
|
3961
|
+
return We[e] || null;
|
|
3983
3962
|
}
|
|
3984
|
-
function
|
|
3985
|
-
return e in
|
|
3963
|
+
function er(e) {
|
|
3964
|
+
return e in We;
|
|
3986
3965
|
}
|
|
3987
|
-
function
|
|
3988
|
-
if (!
|
|
3966
|
+
function ni(e, t) {
|
|
3967
|
+
if (!er(e))
|
|
3989
3968
|
return null;
|
|
3990
|
-
const r =
|
|
3991
|
-
return
|
|
3969
|
+
const r = ri(e);
|
|
3970
|
+
return ei(r, t);
|
|
3992
3971
|
}
|
|
3993
|
-
function
|
|
3972
|
+
function ii(e) {
|
|
3994
3973
|
if (e == null)
|
|
3995
3974
|
return;
|
|
3996
|
-
const t =
|
|
3975
|
+
const t = ve(e);
|
|
3997
3976
|
for (let r = 0; r < t.length; r++) {
|
|
3998
3977
|
const n = t[r];
|
|
3999
|
-
if (
|
|
3978
|
+
if (er(n))
|
|
4000
3979
|
return n;
|
|
4001
3980
|
}
|
|
4002
3981
|
}
|
|
4003
|
-
function
|
|
3982
|
+
function oi(e, ...t) {
|
|
4004
3983
|
delete P[e], te.update((r) => (r[e] = hn.all([r[e] || {}, ...t]), r));
|
|
4005
3984
|
}
|
|
4006
|
-
|
|
3985
|
+
X(
|
|
4007
3986
|
[te],
|
|
4008
3987
|
([e]) => Object.keys(e)
|
|
4009
3988
|
);
|
|
4010
|
-
te.subscribe((e) =>
|
|
3989
|
+
te.subscribe((e) => We = e);
|
|
4011
3990
|
const le = {};
|
|
4012
|
-
function
|
|
3991
|
+
function si(e, t) {
|
|
4013
3992
|
le[e].delete(t), le[e].size === 0 && delete le[e];
|
|
4014
3993
|
}
|
|
4015
|
-
function
|
|
3994
|
+
function tr(e) {
|
|
4016
3995
|
return le[e];
|
|
4017
3996
|
}
|
|
4018
|
-
function
|
|
4019
|
-
return
|
|
4020
|
-
const r =
|
|
3997
|
+
function ai(e) {
|
|
3998
|
+
return ve(e).map((t) => {
|
|
3999
|
+
const r = tr(t);
|
|
4021
4000
|
return [t, r ? [...r] : []];
|
|
4022
4001
|
}).filter(([, t]) => t.length > 0);
|
|
4023
4002
|
}
|
|
4024
|
-
function
|
|
4025
|
-
return e == null ? !1 :
|
|
4003
|
+
function Fe(e) {
|
|
4004
|
+
return e == null ? !1 : ve(e).some(
|
|
4026
4005
|
(t) => {
|
|
4027
4006
|
var r;
|
|
4028
|
-
return (r =
|
|
4007
|
+
return (r = tr(t)) == null ? void 0 : r.size;
|
|
4029
4008
|
}
|
|
4030
4009
|
);
|
|
4031
4010
|
}
|
|
4032
|
-
function
|
|
4011
|
+
function ui(e, t) {
|
|
4033
4012
|
return Promise.all(
|
|
4034
|
-
t.map((n) => (
|
|
4035
|
-
).then((n) =>
|
|
4036
|
-
}
|
|
4037
|
-
const
|
|
4038
|
-
function
|
|
4039
|
-
if (!
|
|
4040
|
-
return e in
|
|
4041
|
-
const t =
|
|
4042
|
-
return
|
|
4013
|
+
t.map((n) => (si(e, n), n().then((i) => i.default || i)))
|
|
4014
|
+
).then((n) => oi(e, ...n));
|
|
4015
|
+
}
|
|
4016
|
+
const Z = {};
|
|
4017
|
+
function rr(e) {
|
|
4018
|
+
if (!Fe(e))
|
|
4019
|
+
return e in Z ? Z[e] : Promise.resolve();
|
|
4020
|
+
const t = ai(e);
|
|
4021
|
+
return Z[e] = Promise.all(
|
|
4043
4022
|
t.map(
|
|
4044
|
-
([r, n]) =>
|
|
4023
|
+
([r, n]) => ui(r, n)
|
|
4045
4024
|
)
|
|
4046
4025
|
).then(() => {
|
|
4047
|
-
if (
|
|
4048
|
-
return
|
|
4049
|
-
delete
|
|
4050
|
-
}),
|
|
4026
|
+
if (Fe(e))
|
|
4027
|
+
return rr(e);
|
|
4028
|
+
delete Z[e];
|
|
4029
|
+
}), Z[e];
|
|
4051
4030
|
}
|
|
4052
|
-
const
|
|
4031
|
+
const hi = {
|
|
4053
4032
|
number: {
|
|
4054
4033
|
scientific: { notation: "scientific" },
|
|
4055
4034
|
engineering: { notation: "engineering" },
|
|
@@ -4078,135 +4057,135 @@ const fi = {
|
|
|
4078
4057
|
timeZoneName: "short"
|
|
4079
4058
|
}
|
|
4080
4059
|
}
|
|
4081
|
-
},
|
|
4060
|
+
}, li = {
|
|
4082
4061
|
fallbackLocale: null,
|
|
4083
4062
|
loadingDelay: 200,
|
|
4084
|
-
formats:
|
|
4063
|
+
formats: hi,
|
|
4085
4064
|
warnOnMissingMessages: !0,
|
|
4086
4065
|
handleMissingMessage: void 0,
|
|
4087
4066
|
ignoreTag: !0
|
|
4088
|
-
},
|
|
4089
|
-
function
|
|
4090
|
-
return
|
|
4067
|
+
}, fi = li;
|
|
4068
|
+
function V() {
|
|
4069
|
+
return fi;
|
|
4091
4070
|
}
|
|
4092
|
-
const
|
|
4093
|
-
var
|
|
4071
|
+
const Te = me(!1);
|
|
4072
|
+
var ci = Object.defineProperty, pi = Object.defineProperties, di = Object.getOwnPropertyDescriptors, bt = Object.getOwnPropertySymbols, mi = Object.prototype.hasOwnProperty, bi = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, vi = (e, t) => {
|
|
4094
4073
|
for (var r in t || (t = {}))
|
|
4095
|
-
|
|
4096
|
-
if (
|
|
4097
|
-
for (var r of
|
|
4098
|
-
|
|
4074
|
+
mi.call(t, r) && vt(e, r, t[r]);
|
|
4075
|
+
if (bt)
|
|
4076
|
+
for (var r of bt(t))
|
|
4077
|
+
bi.call(t, r) && vt(e, r, t[r]);
|
|
4099
4078
|
return e;
|
|
4100
|
-
},
|
|
4101
|
-
let
|
|
4102
|
-
const
|
|
4103
|
-
function
|
|
4079
|
+
}, gi = (e, t) => pi(e, di(t));
|
|
4080
|
+
let je;
|
|
4081
|
+
const ce = me(null);
|
|
4082
|
+
function gt(e) {
|
|
4104
4083
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4105
4084
|
}
|
|
4106
|
-
function
|
|
4107
|
-
const r =
|
|
4108
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4085
|
+
function ve(e, t = V().fallbackLocale) {
|
|
4086
|
+
const r = gt(e);
|
|
4087
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
|
|
4109
4088
|
}
|
|
4110
4089
|
function L() {
|
|
4111
|
-
return
|
|
4090
|
+
return je ?? void 0;
|
|
4112
4091
|
}
|
|
4113
|
-
|
|
4114
|
-
|
|
4092
|
+
ce.subscribe((e) => {
|
|
4093
|
+
je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4115
4094
|
});
|
|
4116
|
-
const
|
|
4117
|
-
if (e &&
|
|
4118
|
-
const { loadingDelay: t } =
|
|
4095
|
+
const yi = (e) => {
|
|
4096
|
+
if (e && ii(e) && Fe(e)) {
|
|
4097
|
+
const { loadingDelay: t } = V();
|
|
4119
4098
|
let r;
|
|
4120
4099
|
return typeof window < "u" && L() != null && t ? r = window.setTimeout(
|
|
4121
|
-
() =>
|
|
4100
|
+
() => Te.set(!0),
|
|
4122
4101
|
t
|
|
4123
|
-
) :
|
|
4124
|
-
|
|
4102
|
+
) : Te.set(!0), rr(e).then(() => {
|
|
4103
|
+
ce.set(e);
|
|
4125
4104
|
}).finally(() => {
|
|
4126
|
-
clearTimeout(r),
|
|
4105
|
+
clearTimeout(r), Te.set(!1);
|
|
4127
4106
|
});
|
|
4128
4107
|
}
|
|
4129
|
-
return
|
|
4130
|
-
}, re =
|
|
4131
|
-
set:
|
|
4132
|
-
}),
|
|
4108
|
+
return ce.set(e);
|
|
4109
|
+
}, re = gi(vi({}, ce), {
|
|
4110
|
+
set: yi
|
|
4111
|
+
}), ge = (e) => {
|
|
4133
4112
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4134
4113
|
return (n) => {
|
|
4135
4114
|
const i = JSON.stringify(n);
|
|
4136
4115
|
return i in t ? t[i] : t[i] = e(n);
|
|
4137
4116
|
};
|
|
4138
4117
|
};
|
|
4139
|
-
var
|
|
4118
|
+
var _i = Object.defineProperty, pe = Object.getOwnPropertySymbols, nr = Object.prototype.hasOwnProperty, ir = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
|
|
4140
4119
|
for (var r in t || (t = {}))
|
|
4141
|
-
|
|
4142
|
-
if (
|
|
4143
|
-
for (var r of
|
|
4144
|
-
|
|
4120
|
+
nr.call(t, r) && yt(e, r, t[r]);
|
|
4121
|
+
if (pe)
|
|
4122
|
+
for (var r of pe(t))
|
|
4123
|
+
ir.call(t, r) && yt(e, r, t[r]);
|
|
4145
4124
|
return e;
|
|
4146
|
-
},
|
|
4125
|
+
}, W = (e, t) => {
|
|
4147
4126
|
var r = {};
|
|
4148
4127
|
for (var n in e)
|
|
4149
|
-
|
|
4150
|
-
if (e != null &&
|
|
4151
|
-
for (var n of
|
|
4152
|
-
t.indexOf(n) < 0 &&
|
|
4128
|
+
nr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4129
|
+
if (e != null && pe)
|
|
4130
|
+
for (var n of pe(e))
|
|
4131
|
+
t.indexOf(n) < 0 && ir.call(e, n) && (r[n] = e[n]);
|
|
4153
4132
|
return r;
|
|
4154
4133
|
};
|
|
4155
|
-
const
|
|
4156
|
-
const { formats: r } =
|
|
4134
|
+
const Y = (e, t) => {
|
|
4135
|
+
const { formats: r } = V();
|
|
4157
4136
|
if (e in r && t in r[e])
|
|
4158
4137
|
return r[e][t];
|
|
4159
4138
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4160
|
-
},
|
|
4139
|
+
}, Ei = ge(
|
|
4161
4140
|
(e) => {
|
|
4162
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4141
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4163
4142
|
if (r == null)
|
|
4164
4143
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4165
|
-
return n && (i =
|
|
4144
|
+
return n && (i = Y("number", n)), new Intl.NumberFormat(r, i);
|
|
4166
4145
|
}
|
|
4167
|
-
),
|
|
4146
|
+
), xi = ge(
|
|
4168
4147
|
(e) => {
|
|
4169
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4148
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4170
4149
|
if (r == null)
|
|
4171
4150
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4172
|
-
return n ? i =
|
|
4151
|
+
return n ? i = Y("date", n) : Object.keys(i).length === 0 && (i = Y("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4173
4152
|
}
|
|
4174
|
-
),
|
|
4153
|
+
), Si = ge(
|
|
4175
4154
|
(e) => {
|
|
4176
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4155
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4177
4156
|
if (r == null)
|
|
4178
4157
|
throw new Error(
|
|
4179
4158
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4180
4159
|
);
|
|
4181
|
-
return n ? i =
|
|
4160
|
+
return n ? i = Y("time", n) : Object.keys(i).length === 0 && (i = Y("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4182
4161
|
}
|
|
4183
|
-
),
|
|
4162
|
+
), Hi = (e = {}) => {
|
|
4184
4163
|
var t = e, {
|
|
4185
4164
|
locale: r = L()
|
|
4186
|
-
} = t, n =
|
|
4165
|
+
} = t, n = W(t, [
|
|
4187
4166
|
"locale"
|
|
4188
4167
|
]);
|
|
4189
|
-
return
|
|
4190
|
-
},
|
|
4168
|
+
return Ei(ze({ locale: r }, n));
|
|
4169
|
+
}, wi = (e = {}) => {
|
|
4191
4170
|
var t = e, {
|
|
4192
4171
|
locale: r = L()
|
|
4193
|
-
} = t, n =
|
|
4172
|
+
} = t, n = W(t, [
|
|
4194
4173
|
"locale"
|
|
4195
4174
|
]);
|
|
4196
|
-
return
|
|
4197
|
-
},
|
|
4175
|
+
return xi(ze({ locale: r }, n));
|
|
4176
|
+
}, Ti = (e = {}) => {
|
|
4198
4177
|
var t = e, {
|
|
4199
4178
|
locale: r = L()
|
|
4200
|
-
} = t, n =
|
|
4179
|
+
} = t, n = W(t, [
|
|
4201
4180
|
"locale"
|
|
4202
4181
|
]);
|
|
4203
|
-
return
|
|
4204
|
-
},
|
|
4182
|
+
return Si(ze({ locale: r }, n));
|
|
4183
|
+
}, Bi = ge(
|
|
4205
4184
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4206
|
-
(e, t = L()) => new
|
|
4207
|
-
ignoreTag:
|
|
4185
|
+
(e, t = L()) => new Kn(e, t, V().formats, {
|
|
4186
|
+
ignoreTag: V().ignoreTag
|
|
4208
4187
|
})
|
|
4209
|
-
),
|
|
4188
|
+
), Ai = (e, t = {}) => {
|
|
4210
4189
|
var r, n, i, o;
|
|
4211
4190
|
let s = t;
|
|
4212
4191
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4219,9 +4198,9 @@ const q = (e, t) => {
|
|
|
4219
4198
|
throw new Error(
|
|
4220
4199
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4221
4200
|
);
|
|
4222
|
-
let l =
|
|
4201
|
+
let l = Kt(e, h);
|
|
4223
4202
|
if (!l)
|
|
4224
|
-
l = (o = (i = (n = (r =
|
|
4203
|
+
l = (o = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4225
4204
|
else if (typeof l != "string")
|
|
4226
4205
|
return console.warn(
|
|
4227
4206
|
`[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.`
|
|
@@ -4230,7 +4209,7 @@ const q = (e, t) => {
|
|
|
4230
4209
|
return l;
|
|
4231
4210
|
let f = l;
|
|
4232
4211
|
try {
|
|
4233
|
-
f =
|
|
4212
|
+
f = Bi(l, h).format(a);
|
|
4234
4213
|
} catch (c) {
|
|
4235
4214
|
c instanceof Error && console.warn(
|
|
4236
4215
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4238,28 +4217,28 @@ const q = (e, t) => {
|
|
|
4238
4217
|
);
|
|
4239
4218
|
}
|
|
4240
4219
|
return f;
|
|
4241
|
-
},
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4220
|
+
}, Pi = (e, t) => Ti(t).format(e), Ci = (e, t) => wi(t).format(e), Oi = (e, t) => Hi(t).format(e), Li = (e, t = L()) => Kt(e, t);
|
|
4221
|
+
X([re, te], () => Ai);
|
|
4222
|
+
X([re], () => Pi);
|
|
4223
|
+
X([re], () => Ci);
|
|
4224
|
+
X([re], () => Oi);
|
|
4225
|
+
X([re, te], () => Li);
|
|
4247
4226
|
window.emWidgets = { topic: Xr };
|
|
4248
|
-
const
|
|
4227
|
+
const _t = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4249
4228
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4250
|
-
function
|
|
4251
|
-
|
|
4229
|
+
function Ii(e) {
|
|
4230
|
+
ar(e, "svelte-1d17c9c", ".CashierVideoWrapper{position:absolute;width:100%;height:100%;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}");
|
|
4252
4231
|
}
|
|
4253
|
-
function
|
|
4232
|
+
function Et(e) {
|
|
4254
4233
|
let t, r, n, i, o, s, a, h = !/*desktopView*/
|
|
4255
|
-
e[2] &&
|
|
4234
|
+
e[2] && xt(e), u = (
|
|
4256
4235
|
/*desktopView*/
|
|
4257
|
-
e[2] &&
|
|
4236
|
+
e[2] && St(e)
|
|
4258
4237
|
);
|
|
4259
4238
|
return {
|
|
4260
4239
|
c() {
|
|
4261
|
-
t =
|
|
4262
|
-
e[0]) || _(s, "src", a), o.autoplay = !0, o.controls = !0, _(o, "controlslist", "nodownload"), _(o, "disablepictureinpicture", ""), _(n, "class", "CashierVideo"), _(t, "class", "CashierVideoWrapper"),
|
|
4240
|
+
t = O("div"), h && h.c(), r = qe(), n = O("div"), u && u.c(), i = qe(), o = O("video"), s = O("source"), Je(s.src, a = /*videosrc*/
|
|
4241
|
+
e[0]) || _(s, "src", a), o.autoplay = !0, o.controls = !0, _(o, "controlslist", "nodownload"), _(o, "disablepictureinpicture", ""), _(n, "class", "CashierVideo"), _(t, "class", "CashierVideoWrapper"), Ye(
|
|
4263
4242
|
t,
|
|
4264
4243
|
"CashierVideoWrapperDesktop",
|
|
4265
4244
|
/*desktopView*/
|
|
@@ -4267,15 +4246,15 @@ function St(e) {
|
|
|
4267
4246
|
);
|
|
4268
4247
|
},
|
|
4269
4248
|
m(l, f) {
|
|
4270
|
-
|
|
4249
|
+
ee(l, t, f), h && h.m(t, null), T(t, r), T(t, n), u && u.m(n, null), T(n, i), T(n, o), T(o, s), e[10](t);
|
|
4271
4250
|
},
|
|
4272
4251
|
p(l, f) {
|
|
4273
4252
|
/*desktopView*/
|
|
4274
|
-
l[2] ? h && (h.d(1), h = null) : h ? h.p(l, f) : (h =
|
|
4275
|
-
l[2] ? u ? u.p(l, f) : (u =
|
|
4276
|
-
1 && !
|
|
4253
|
+
l[2] ? h && (h.d(1), h = null) : h ? h.p(l, f) : (h = xt(l), h.c(), h.m(t, r)), /*desktopView*/
|
|
4254
|
+
l[2] ? u ? u.p(l, f) : (u = St(l), u.c(), u.m(n, i)) : u && (u.d(1), u = null), f & /*videosrc*/
|
|
4255
|
+
1 && !Je(s.src, a = /*videosrc*/
|
|
4277
4256
|
l[0]) && _(s, "src", a), f & /*desktopView*/
|
|
4278
|
-
4 &&
|
|
4257
|
+
4 && Ye(
|
|
4279
4258
|
t,
|
|
4280
4259
|
"CashierVideoWrapperDesktop",
|
|
4281
4260
|
/*desktopView*/
|
|
@@ -4283,18 +4262,18 @@ function St(e) {
|
|
|
4283
4262
|
);
|
|
4284
4263
|
},
|
|
4285
4264
|
d(l) {
|
|
4286
|
-
l &&
|
|
4265
|
+
l && k(t), h && h.d(), u && u.d(), e[10](null);
|
|
4287
4266
|
}
|
|
4288
4267
|
};
|
|
4289
4268
|
}
|
|
4290
|
-
function
|
|
4269
|
+
function xt(e) {
|
|
4291
4270
|
let t, r, n, i, o;
|
|
4292
4271
|
return {
|
|
4293
4272
|
c() {
|
|
4294
|
-
t =
|
|
4273
|
+
t = O("div"), r = fe("svg"), n = fe("path"), _(n, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), _(n, "fill", "#111111"), _(r, "xmlns", "http://www.w3.org/2000/svg"), _(r, "width", "13"), _(r, "height", "13"), _(r, "viewBox", "0 0 13 13"), _(r, "fill", "none"), _(t, "class", "CashierVideoHeader");
|
|
4295
4274
|
},
|
|
4296
4275
|
m(s, a) {
|
|
4297
|
-
|
|
4276
|
+
ee(s, t, a), T(t, r), T(r, n), i || (o = Bt(
|
|
4298
4277
|
r,
|
|
4299
4278
|
"click",
|
|
4300
4279
|
/*click_handler*/
|
|
@@ -4303,18 +4282,18 @@ function wt(e) {
|
|
|
4303
4282
|
},
|
|
4304
4283
|
p: S,
|
|
4305
4284
|
d(s) {
|
|
4306
|
-
s &&
|
|
4285
|
+
s && k(t), i = !1, o();
|
|
4307
4286
|
}
|
|
4308
4287
|
};
|
|
4309
4288
|
}
|
|
4310
|
-
function
|
|
4289
|
+
function St(e) {
|
|
4311
4290
|
let t, r, n, i;
|
|
4312
4291
|
return {
|
|
4313
4292
|
c() {
|
|
4314
4293
|
t = fe("svg"), r = fe("path"), _(r, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), _(r, "fill", "#111111"), _(t, "xmlns", "http://www.w3.org/2000/svg"), _(t, "width", "13"), _(t, "height", "13"), _(t, "viewBox", "0 0 13 13"), _(t, "fill", "none");
|
|
4315
4294
|
},
|
|
4316
4295
|
m(o, s) {
|
|
4317
|
-
|
|
4296
|
+
ee(o, t, s), T(t, r), n || (i = Bt(
|
|
4318
4297
|
t,
|
|
4319
4298
|
"click",
|
|
4320
4299
|
/*click_handler_1*/
|
|
@@ -4323,48 +4302,48 @@ function Ht(e) {
|
|
|
4323
4302
|
},
|
|
4324
4303
|
p: S,
|
|
4325
4304
|
d(o) {
|
|
4326
|
-
o &&
|
|
4305
|
+
o && k(t), n = !1, i();
|
|
4327
4306
|
}
|
|
4328
4307
|
};
|
|
4329
4308
|
}
|
|
4330
|
-
function
|
|
4309
|
+
function Ni(e) {
|
|
4331
4310
|
let t, r = (
|
|
4332
4311
|
/*show*/
|
|
4333
|
-
e[3] &&
|
|
4312
|
+
e[3] && Et(e)
|
|
4334
4313
|
);
|
|
4335
4314
|
return {
|
|
4336
4315
|
c() {
|
|
4337
|
-
r && r.c(), t =
|
|
4316
|
+
r && r.c(), t = lr();
|
|
4338
4317
|
},
|
|
4339
4318
|
m(n, i) {
|
|
4340
|
-
r && r.m(n, i),
|
|
4319
|
+
r && r.m(n, i), ee(n, t, i);
|
|
4341
4320
|
},
|
|
4342
4321
|
p(n, [i]) {
|
|
4343
4322
|
/*show*/
|
|
4344
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
4323
|
+
n[3] ? r ? r.p(n, i) : (r = Et(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4345
4324
|
},
|
|
4346
4325
|
i: S,
|
|
4347
4326
|
o: S,
|
|
4348
4327
|
d(n) {
|
|
4349
|
-
n &&
|
|
4328
|
+
n && k(t), r && r.d(n);
|
|
4350
4329
|
}
|
|
4351
4330
|
};
|
|
4352
4331
|
}
|
|
4353
|
-
function
|
|
4332
|
+
function Mi(e, t, r) {
|
|
4354
4333
|
let { clientstyling: n = "" } = t, { clientstylingurl: i = "" } = t, { videosrc: o } = t, { mbsource: s = "" } = t, a = window.navigator.userAgent, h = !0, u = !1, l;
|
|
4355
4334
|
const f = () => {
|
|
4356
4335
|
r(3, u = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
4357
4336
|
}, c = (E) => {
|
|
4358
4337
|
E.data.type == "ShowCashierVideoModal" && (r(3, u = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), E.data.type == "HideCashierVideoModal" && f();
|
|
4359
|
-
},
|
|
4360
|
-
r(2, h = !
|
|
4338
|
+
}, b = () => {
|
|
4339
|
+
r(2, h = !_t(a));
|
|
4361
4340
|
};
|
|
4362
|
-
|
|
4341
|
+
dr(() => (window.addEventListener("message", c, !1), () => {
|
|
4363
4342
|
window.removeEventListener("message", c);
|
|
4364
4343
|
}));
|
|
4365
|
-
const
|
|
4366
|
-
function
|
|
4367
|
-
|
|
4344
|
+
const g = () => f(), v = () => f();
|
|
4345
|
+
function H(E) {
|
|
4346
|
+
Be[E ? "unshift" : "push"](() => {
|
|
4368
4347
|
l = E, r(1, l);
|
|
4369
4348
|
});
|
|
4370
4349
|
}
|
|
@@ -4372,10 +4351,10 @@ function Ri(e, t, r) {
|
|
|
4372
4351
|
"clientstyling" in E && r(5, n = E.clientstyling), "clientstylingurl" in E && r(6, i = E.clientstylingurl), "videosrc" in E && r(0, o = E.videosrc), "mbsource" in E && r(7, s = E.mbsource);
|
|
4373
4352
|
}, e.$$.update = () => {
|
|
4374
4353
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4375
|
-
34 && n && l &&
|
|
4376
|
-
66 && i && l &&
|
|
4354
|
+
34 && n && l && Ar(l, n), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4355
|
+
66 && i && l && Pr(l, i), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4377
4356
|
130 && s && l && Cr(l, `${s}.Style`);
|
|
4378
|
-
},
|
|
4357
|
+
}, _t(a) && b(), [
|
|
4379
4358
|
o,
|
|
4380
4359
|
l,
|
|
4381
4360
|
h,
|
|
@@ -4384,26 +4363,26 @@ function Ri(e, t, r) {
|
|
|
4384
4363
|
n,
|
|
4385
4364
|
i,
|
|
4386
4365
|
s,
|
|
4366
|
+
g,
|
|
4387
4367
|
v,
|
|
4388
|
-
|
|
4389
|
-
w
|
|
4368
|
+
H
|
|
4390
4369
|
];
|
|
4391
4370
|
}
|
|
4392
|
-
class
|
|
4371
|
+
class $i extends Tr {
|
|
4393
4372
|
constructor(t) {
|
|
4394
4373
|
super(), Hr(
|
|
4395
4374
|
this,
|
|
4396
4375
|
t,
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4376
|
+
Mi,
|
|
4377
|
+
Ni,
|
|
4378
|
+
wt,
|
|
4400
4379
|
{
|
|
4401
4380
|
clientstyling: 5,
|
|
4402
4381
|
clientstylingurl: 6,
|
|
4403
4382
|
videosrc: 0,
|
|
4404
4383
|
mbsource: 7
|
|
4405
4384
|
},
|
|
4406
|
-
|
|
4385
|
+
Ii
|
|
4407
4386
|
);
|
|
4408
4387
|
}
|
|
4409
4388
|
get clientstyling() {
|
|
@@ -4431,7 +4410,7 @@ class Ui extends Br {
|
|
|
4431
4410
|
this.$$set({ mbsource: t }), R();
|
|
4432
4411
|
}
|
|
4433
4412
|
}
|
|
4434
|
-
|
|
4413
|
+
wr($i, { clientstyling: {}, clientstylingurl: {}, videosrc: {}, mbsource: {} }, [], [], !0);
|
|
4435
4414
|
export {
|
|
4436
|
-
|
|
4415
|
+
$i as C
|
|
4437
4416
|
};
|