@everymatrix/player-account-timeout 1.68.0 → 1.69.0
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/PlayerAccountGeneralConfirmationModal-BAzIqzPO.cjs +18 -0
- package/components/{PlayerAccountGeneralConfirmationModal-uYwTgnnB.js → PlayerAccountGeneralConfirmationModal-D1513x8q.js} +488 -493
- package/components/{PlayerAccountGeneralConfirmationModal-Zyz_OEuJ.js → PlayerAccountGeneralConfirmationModal-DdwHxQsA.js} +494 -499
- package/components/{PlayerAccountTimeout-D7bfp5da.js → PlayerAccountTimeout-ChvZ8Xd6.js} +2 -2
- package/components/{PlayerAccountTimeout-Cp5KUUpP.js → PlayerAccountTimeout-DI-1KC-E.js} +2 -2
- package/components/{PlayerAccountTimeout-CiYC4keu.cjs → PlayerAccountTimeout-jLvYnBNK.cjs} +2 -2
- package/es2015/player-account-timeout.cjs +1 -1
- package/es2015/player-account-timeout.js +1 -1
- package/esnext/player-account-timeout.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGeneralConfirmationModal-FkuCh0hP.cjs +0 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function N() {
|
|
2
2
|
}
|
|
3
3
|
function br(e, t) {
|
|
4
4
|
for (const r in t)
|
|
@@ -14,10 +14,10 @@ function Ot(e) {
|
|
|
14
14
|
function nt() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function W(e) {
|
|
18
18
|
e.forEach(Ot);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Ye(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
23
|
function It(e, t) {
|
|
@@ -30,7 +30,7 @@ function Mt(e, ...t) {
|
|
|
30
30
|
if (e == null) {
|
|
31
31
|
for (const n of t)
|
|
32
32
|
n(void 0);
|
|
33
|
-
return
|
|
33
|
+
return N;
|
|
34
34
|
}
|
|
35
35
|
const r = e.subscribe(...t);
|
|
36
36
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
@@ -83,7 +83,7 @@ function B(e, t) {
|
|
|
83
83
|
function Sr(e, t, r) {
|
|
84
84
|
const n = wr(e);
|
|
85
85
|
if (!n.getElementById(t)) {
|
|
86
|
-
const i =
|
|
86
|
+
const i = I("style");
|
|
87
87
|
i.id = t, i.textContent = r, Tr(n, i);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -104,45 +104,45 @@ function Tr(e, t) {
|
|
|
104
104
|
t
|
|
105
105
|
), t.sheet;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function ne(e, t, r) {
|
|
108
108
|
e.insertBefore(t, r || null);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Z(e) {
|
|
111
111
|
e.parentNode && e.parentNode.removeChild(e);
|
|
112
112
|
}
|
|
113
113
|
function ro(e, t) {
|
|
114
114
|
for (let r = 0; r < e.length; r += 1)
|
|
115
115
|
e[r] && e[r].d(t);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function I(e) {
|
|
118
118
|
return document.createElement(e);
|
|
119
119
|
}
|
|
120
120
|
function it(e) {
|
|
121
121
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function ie(e) {
|
|
124
124
|
return document.createTextNode(e);
|
|
125
125
|
}
|
|
126
126
|
function ue() {
|
|
127
|
-
return
|
|
127
|
+
return ie(" ");
|
|
128
128
|
}
|
|
129
129
|
function no() {
|
|
130
|
-
return
|
|
130
|
+
return ie("");
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Me(e, t, r, n) {
|
|
133
133
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function T(e, t, r) {
|
|
136
136
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
137
137
|
}
|
|
138
138
|
function io(e, t, r) {
|
|
139
139
|
const n = t.toLowerCase();
|
|
140
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
140
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : T(e, t, r);
|
|
141
141
|
}
|
|
142
142
|
function Hr(e) {
|
|
143
143
|
return Array.from(e.childNodes);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function Ke(e, t) {
|
|
146
146
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
147
147
|
t);
|
|
148
148
|
}
|
|
@@ -166,7 +166,7 @@ function uo(e) {
|
|
|
166
166
|
const t = e.querySelector(":checked");
|
|
167
167
|
return t && t.__value;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Ar(e) {
|
|
170
170
|
const t = {};
|
|
171
171
|
return e.childNodes.forEach(
|
|
172
172
|
/** @param {Element} node */
|
|
@@ -175,65 +175,65 @@ function Br(e) {
|
|
|
175
175
|
}
|
|
176
176
|
), t;
|
|
177
177
|
}
|
|
178
|
-
let
|
|
179
|
-
function
|
|
180
|
-
|
|
178
|
+
let ee;
|
|
179
|
+
function K(e) {
|
|
180
|
+
ee = e;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
if (!
|
|
182
|
+
function Br() {
|
|
183
|
+
if (!ee)
|
|
184
184
|
throw new Error("Function called outside component initialization");
|
|
185
|
-
return
|
|
185
|
+
return ee;
|
|
186
186
|
}
|
|
187
187
|
function Cr(e) {
|
|
188
|
-
|
|
188
|
+
Br().$$.on_mount.push(e);
|
|
189
189
|
}
|
|
190
|
-
const
|
|
191
|
-
let
|
|
190
|
+
const F = [], Ne = [];
|
|
191
|
+
let j = [];
|
|
192
192
|
const ot = [], Pr = /* @__PURE__ */ Promise.resolve();
|
|
193
|
-
let
|
|
193
|
+
let Le = !1;
|
|
194
194
|
function Or() {
|
|
195
|
-
|
|
195
|
+
Le || (Le = !0, Pr.then(O));
|
|
196
196
|
}
|
|
197
|
-
function
|
|
198
|
-
|
|
197
|
+
function Re(e) {
|
|
198
|
+
j.push(e);
|
|
199
199
|
}
|
|
200
|
-
const
|
|
201
|
-
let
|
|
200
|
+
const Te = /* @__PURE__ */ new Set();
|
|
201
|
+
let U = 0;
|
|
202
202
|
function O() {
|
|
203
|
-
if (
|
|
203
|
+
if (U !== 0)
|
|
204
204
|
return;
|
|
205
|
-
const e =
|
|
205
|
+
const e = ee;
|
|
206
206
|
do {
|
|
207
207
|
try {
|
|
208
|
-
for (;
|
|
209
|
-
const t =
|
|
210
|
-
|
|
208
|
+
for (; U < F.length; ) {
|
|
209
|
+
const t = F[U];
|
|
210
|
+
U++, K(t), Ir(t.$$);
|
|
211
211
|
}
|
|
212
212
|
} catch (t) {
|
|
213
|
-
throw
|
|
213
|
+
throw F.length = 0, U = 0, t;
|
|
214
214
|
}
|
|
215
|
-
for (
|
|
216
|
-
|
|
217
|
-
for (let t = 0; t <
|
|
218
|
-
const r =
|
|
219
|
-
|
|
215
|
+
for (K(null), F.length = 0, U = 0; Ne.length; )
|
|
216
|
+
Ne.pop()();
|
|
217
|
+
for (let t = 0; t < j.length; t += 1) {
|
|
218
|
+
const r = j[t];
|
|
219
|
+
Te.has(r) || (Te.add(r), r());
|
|
220
220
|
}
|
|
221
|
-
|
|
222
|
-
} while (
|
|
221
|
+
j.length = 0;
|
|
222
|
+
} while (F.length);
|
|
223
223
|
for (; ot.length; )
|
|
224
224
|
ot.pop()();
|
|
225
|
-
|
|
225
|
+
Le = !1, Te.clear(), K(e);
|
|
226
226
|
}
|
|
227
227
|
function Ir(e) {
|
|
228
228
|
if (e.fragment !== null) {
|
|
229
|
-
e.update(),
|
|
229
|
+
e.update(), W(e.before_update);
|
|
230
230
|
const t = e.dirty;
|
|
231
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
231
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
function Mr(e) {
|
|
235
235
|
const t = [], r = [];
|
|
236
|
-
|
|
236
|
+
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
237
237
|
}
|
|
238
238
|
const ce = /* @__PURE__ */ new Set();
|
|
239
239
|
let Nr;
|
|
@@ -254,27 +254,27 @@ function lo(e) {
|
|
|
254
254
|
}
|
|
255
255
|
function Rr(e, t, r) {
|
|
256
256
|
const { fragment: n, after_update: i } = e.$$;
|
|
257
|
-
n && n.m(t, r),
|
|
258
|
-
const o = e.$$.on_mount.map(Ot).filter(
|
|
259
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
260
|
-
}), i.forEach(
|
|
257
|
+
n && n.m(t, r), Re(() => {
|
|
258
|
+
const o = e.$$.on_mount.map(Ot).filter(Ye);
|
|
259
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : W(o), e.$$.on_mount = [];
|
|
260
|
+
}), i.forEach(Re);
|
|
261
261
|
}
|
|
262
262
|
function $r(e, t) {
|
|
263
263
|
const r = e.$$;
|
|
264
|
-
r.fragment !== null && (Mr(r.after_update),
|
|
264
|
+
r.fragment !== null && (Mr(r.after_update), W(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
265
265
|
}
|
|
266
266
|
function Gr(e, t) {
|
|
267
|
-
e.$$.dirty[0] === -1 && (
|
|
267
|
+
e.$$.dirty[0] === -1 && (F.push(e), Or(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
268
268
|
}
|
|
269
269
|
function Ur(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
270
|
-
const l =
|
|
271
|
-
|
|
270
|
+
const l = ee;
|
|
271
|
+
K(e);
|
|
272
272
|
const u = e.$$ = {
|
|
273
273
|
fragment: null,
|
|
274
274
|
ctx: [],
|
|
275
275
|
// state
|
|
276
276
|
props: o,
|
|
277
|
-
update:
|
|
277
|
+
update: N,
|
|
278
278
|
not_equal: i,
|
|
279
279
|
bound: nt(),
|
|
280
280
|
// lifecycle
|
|
@@ -293,17 +293,17 @@ function Ur(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
293
293
|
s && s(u.root);
|
|
294
294
|
let h = !1;
|
|
295
295
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
296
|
-
const
|
|
297
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
298
|
-
}) : [], u.update(), h = !0,
|
|
296
|
+
const y = m.length ? m[0] : f;
|
|
297
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h && Gr(e, c)), f;
|
|
298
|
+
}) : [], u.update(), h = !0, W(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
299
299
|
if (t.hydrate) {
|
|
300
300
|
const c = Hr(t.target);
|
|
301
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
301
|
+
u.fragment && u.fragment.l(c), c.forEach(Z);
|
|
302
302
|
} else
|
|
303
303
|
u.fragment && u.fragment.c();
|
|
304
304
|
t.intro && Lt(e.$$.fragment), Rr(e, t.target, t.anchor), O();
|
|
305
305
|
}
|
|
306
|
-
|
|
306
|
+
K(l);
|
|
307
307
|
}
|
|
308
308
|
let Rt;
|
|
309
309
|
typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
@@ -348,24 +348,24 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
348
348
|
let o;
|
|
349
349
|
return {
|
|
350
350
|
c: function() {
|
|
351
|
-
o =
|
|
351
|
+
o = I("slot"), i !== "default" && T(o, "name", i);
|
|
352
352
|
},
|
|
353
353
|
/**
|
|
354
354
|
* @param {HTMLElement} target
|
|
355
355
|
* @param {HTMLElement} [anchor]
|
|
356
356
|
*/
|
|
357
357
|
m: function(l, u) {
|
|
358
|
-
|
|
358
|
+
ne(l, o, u);
|
|
359
359
|
},
|
|
360
360
|
d: function(l) {
|
|
361
|
-
l &&
|
|
361
|
+
l && Z(o);
|
|
362
362
|
}
|
|
363
363
|
};
|
|
364
364
|
};
|
|
365
365
|
};
|
|
366
366
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
367
367
|
return;
|
|
368
|
-
const t = {}, r =
|
|
368
|
+
const t = {}, r = Ar(this);
|
|
369
369
|
for (const i of this.$$s)
|
|
370
370
|
i in r && (t[i] = [e(i)]);
|
|
371
371
|
for (const i of this.attributes) {
|
|
@@ -500,7 +500,7 @@ class Fr {
|
|
|
500
500
|
$$set = void 0;
|
|
501
501
|
/** @returns {void} */
|
|
502
502
|
$destroy() {
|
|
503
|
-
$r(this, 1), this.$destroy =
|
|
503
|
+
$r(this, 1), this.$destroy = N;
|
|
504
504
|
}
|
|
505
505
|
/**
|
|
506
506
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -509,8 +509,8 @@ class Fr {
|
|
|
509
509
|
* @returns {() => void}
|
|
510
510
|
*/
|
|
511
511
|
$on(t, r) {
|
|
512
|
-
if (!
|
|
513
|
-
return
|
|
512
|
+
if (!Ye(r))
|
|
513
|
+
return N;
|
|
514
514
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
515
515
|
return n.push(r), () => {
|
|
516
516
|
const i = n.indexOf(r);
|
|
@@ -545,24 +545,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
545
545
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
546
546
|
PERFORMANCE OF THIS SOFTWARE.
|
|
547
547
|
***************************************************************************** */
|
|
548
|
-
var
|
|
549
|
-
return
|
|
548
|
+
var $e = function(e, t) {
|
|
549
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
550
550
|
r.__proto__ = n;
|
|
551
551
|
} || function(r, n) {
|
|
552
552
|
for (var i in n)
|
|
553
553
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
554
|
-
},
|
|
554
|
+
}, $e(e, t);
|
|
555
555
|
};
|
|
556
|
-
function
|
|
556
|
+
function oe(e, t) {
|
|
557
557
|
if (typeof t != "function" && t !== null)
|
|
558
558
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
559
|
-
|
|
559
|
+
$e(e, t);
|
|
560
560
|
function r() {
|
|
561
561
|
this.constructor = e;
|
|
562
562
|
}
|
|
563
563
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function Ge(e) {
|
|
566
566
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
567
567
|
if (r)
|
|
568
568
|
return r.call(e);
|
|
@@ -574,7 +574,7 @@ function Ue(e) {
|
|
|
574
574
|
};
|
|
575
575
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function Ue(e, t) {
|
|
578
578
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
579
579
|
if (!r)
|
|
580
580
|
return e;
|
|
@@ -594,13 +594,13 @@ function De(e, t) {
|
|
|
594
594
|
}
|
|
595
595
|
return o;
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function De(e, t, r) {
|
|
598
598
|
if (arguments.length === 2)
|
|
599
599
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
600
600
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
601
601
|
return e.concat(o || t);
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function L(e) {
|
|
604
604
|
return typeof e == "function";
|
|
605
605
|
}
|
|
606
606
|
function $t(e) {
|
|
@@ -609,7 +609,7 @@ function $t(e) {
|
|
|
609
609
|
}, r = e(t);
|
|
610
610
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
611
611
|
}
|
|
612
|
-
var
|
|
612
|
+
var He = $t(function(e) {
|
|
613
613
|
return function(r) {
|
|
614
614
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
615
615
|
` + r.map(function(n, i) {
|
|
@@ -618,13 +618,13 @@ var Be = $t(function(e) {
|
|
|
618
618
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
619
619
|
};
|
|
620
620
|
});
|
|
621
|
-
function
|
|
621
|
+
function Fe(e, t) {
|
|
622
622
|
if (e) {
|
|
623
623
|
var r = e.indexOf(t);
|
|
624
624
|
0 <= r && e.splice(r, 1);
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
|
-
var
|
|
627
|
+
var ve = function() {
|
|
628
628
|
function e(t) {
|
|
629
629
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
630
630
|
}
|
|
@@ -636,7 +636,7 @@ var _e = function() {
|
|
|
636
636
|
if (s)
|
|
637
637
|
if (this._parentage = null, Array.isArray(s))
|
|
638
638
|
try {
|
|
639
|
-
for (var a =
|
|
639
|
+
for (var a = Ge(s), l = a.next(); !l.done; l = a.next()) {
|
|
640
640
|
var u = l.value;
|
|
641
641
|
u.remove(this);
|
|
642
642
|
}
|
|
@@ -653,22 +653,22 @@ var _e = function() {
|
|
|
653
653
|
else
|
|
654
654
|
s.remove(this);
|
|
655
655
|
var h = this.initialTeardown;
|
|
656
|
-
if (
|
|
656
|
+
if (L(h))
|
|
657
657
|
try {
|
|
658
658
|
h();
|
|
659
659
|
} catch (d) {
|
|
660
|
-
o = d instanceof
|
|
660
|
+
o = d instanceof He ? d.errors : [d];
|
|
661
661
|
}
|
|
662
662
|
var c = this._finalizers;
|
|
663
663
|
if (c) {
|
|
664
664
|
this._finalizers = null;
|
|
665
665
|
try {
|
|
666
|
-
for (var f =
|
|
667
|
-
var
|
|
666
|
+
for (var f = Ge(c), m = f.next(); !m.done; m = f.next()) {
|
|
667
|
+
var y = m.value;
|
|
668
668
|
try {
|
|
669
|
-
st(
|
|
669
|
+
st(y);
|
|
670
670
|
} catch (d) {
|
|
671
|
-
o = o ?? [], d instanceof
|
|
671
|
+
o = o ?? [], d instanceof He ? o = De(De([], Ue(o)), Ue(d.errors)) : o.push(d);
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
674
|
} catch (d) {
|
|
@@ -683,7 +683,7 @@ var _e = function() {
|
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
685
|
if (o)
|
|
686
|
-
throw new
|
|
686
|
+
throw new He(o);
|
|
687
687
|
}
|
|
688
688
|
}, e.prototype.add = function(t) {
|
|
689
689
|
var r;
|
|
@@ -706,20 +706,20 @@ var _e = function() {
|
|
|
706
706
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
707
707
|
}, e.prototype._removeParent = function(t) {
|
|
708
708
|
var r = this._parentage;
|
|
709
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
709
|
+
r === t ? this._parentage = null : Array.isArray(r) && Fe(r, t);
|
|
710
710
|
}, e.prototype.remove = function(t) {
|
|
711
711
|
var r = this._finalizers;
|
|
712
|
-
r &&
|
|
712
|
+
r && Fe(r, t), t instanceof e && t._removeParent(this);
|
|
713
713
|
}, e.EMPTY = function() {
|
|
714
714
|
var t = new e();
|
|
715
715
|
return t.closed = !0, t;
|
|
716
716
|
}(), e;
|
|
717
|
-
}(), Gt =
|
|
717
|
+
}(), Gt = ve.EMPTY;
|
|
718
718
|
function Ut(e) {
|
|
719
|
-
return e instanceof
|
|
719
|
+
return e instanceof ve || e && "closed" in e && L(e.remove) && L(e.add) && L(e.unsubscribe);
|
|
720
720
|
}
|
|
721
721
|
function st(e) {
|
|
722
|
-
|
|
722
|
+
L(e) ? e() : e.unsubscribe();
|
|
723
723
|
}
|
|
724
724
|
var Vr = {
|
|
725
725
|
Promise: void 0
|
|
@@ -727,7 +727,7 @@ var Vr = {
|
|
|
727
727
|
setTimeout: function(e, t) {
|
|
728
728
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
729
729
|
r[n - 2] = arguments[n];
|
|
730
|
-
return setTimeout.apply(void 0,
|
|
730
|
+
return setTimeout.apply(void 0, De([e, t], Ue(r)));
|
|
731
731
|
},
|
|
732
732
|
clearTimeout: function(e) {
|
|
733
733
|
return clearTimeout(e);
|
|
@@ -745,13 +745,13 @@ function me(e) {
|
|
|
745
745
|
e();
|
|
746
746
|
}
|
|
747
747
|
var Dt = function(e) {
|
|
748
|
-
|
|
748
|
+
oe(t, e);
|
|
749
749
|
function t(r) {
|
|
750
750
|
var n = e.call(this) || this;
|
|
751
751
|
return n.isStopped = !1, r ? (n.destination = r, Ut(r) && r.add(n)) : n.destination = Qr, n;
|
|
752
752
|
}
|
|
753
753
|
return t.create = function(r, n, i) {
|
|
754
|
-
return new
|
|
754
|
+
return new je(r, n, i);
|
|
755
755
|
}, t.prototype.next = function(r) {
|
|
756
756
|
this.isStopped || this._next(r);
|
|
757
757
|
}, t.prototype.error = function(r) {
|
|
@@ -775,7 +775,7 @@ var Dt = function(e) {
|
|
|
775
775
|
this.unsubscribe();
|
|
776
776
|
}
|
|
777
777
|
}, t;
|
|
778
|
-
}(
|
|
778
|
+
}(ve), Wr = function() {
|
|
779
779
|
function e(t) {
|
|
780
780
|
this.partialObserver = t;
|
|
781
781
|
}
|
|
@@ -806,11 +806,11 @@ var Dt = function(e) {
|
|
|
806
806
|
le(r);
|
|
807
807
|
}
|
|
808
808
|
}, e;
|
|
809
|
-
}(),
|
|
810
|
-
|
|
809
|
+
}(), je = function(e) {
|
|
810
|
+
oe(t, e);
|
|
811
811
|
function t(r, n, i) {
|
|
812
812
|
var o = e.call(this) || this, s;
|
|
813
|
-
return
|
|
813
|
+
return L(r) || !r ? s = {
|
|
814
814
|
next: r ?? void 0,
|
|
815
815
|
error: n ?? void 0,
|
|
816
816
|
complete: i ?? void 0
|
|
@@ -850,7 +850,7 @@ var ut = function() {
|
|
|
850
850
|
var r = new e();
|
|
851
851
|
return r.source = this, r.operator = t, r;
|
|
852
852
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
853
|
-
var i = this, o = en(t) ? t : new
|
|
853
|
+
var i = this, o = en(t) ? t : new je(t, r, n);
|
|
854
854
|
return me(function() {
|
|
855
855
|
var s = i, a = s.operator, l = s.source;
|
|
856
856
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -864,7 +864,7 @@ var ut = function() {
|
|
|
864
864
|
}, e.prototype.forEach = function(t, r) {
|
|
865
865
|
var n = this;
|
|
866
866
|
return r = lt(r), new r(function(i, o) {
|
|
867
|
-
var s = new
|
|
867
|
+
var s = new je({
|
|
868
868
|
next: function(a) {
|
|
869
869
|
try {
|
|
870
870
|
t(a);
|
|
@@ -907,7 +907,7 @@ function lt(e) {
|
|
|
907
907
|
return (t = e ?? Vr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
908
908
|
}
|
|
909
909
|
function Kr(e) {
|
|
910
|
-
return e &&
|
|
910
|
+
return e && L(e.next) && L(e.error) && L(e.complete);
|
|
911
911
|
}
|
|
912
912
|
function en(e) {
|
|
913
913
|
return e && e instanceof Dt || Kr(e) && Ut(e);
|
|
@@ -917,7 +917,7 @@ var tn = $t(function(e) {
|
|
|
917
917
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
918
918
|
};
|
|
919
919
|
}), Ft = function(e) {
|
|
920
|
-
|
|
920
|
+
oe(t, e);
|
|
921
921
|
function t() {
|
|
922
922
|
var r = e.call(this) || this;
|
|
923
923
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
@@ -935,7 +935,7 @@ var tn = $t(function(e) {
|
|
|
935
935
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
936
936
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
937
937
|
try {
|
|
938
|
-
for (var s =
|
|
938
|
+
for (var s = Ge(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
939
939
|
var l = a.value;
|
|
940
940
|
l.next(r);
|
|
941
941
|
}
|
|
@@ -984,8 +984,8 @@ var tn = $t(function(e) {
|
|
|
984
984
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
985
985
|
}, t.prototype._innerSubscribe = function(r) {
|
|
986
986
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
987
|
-
return o || s ? Gt : (this.currentObservers = null, a.push(r), new
|
|
988
|
-
n.currentObservers = null,
|
|
987
|
+
return o || s ? Gt : (this.currentObservers = null, a.push(r), new ve(function() {
|
|
988
|
+
n.currentObservers = null, Fe(a, r);
|
|
989
989
|
}));
|
|
990
990
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
991
991
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
@@ -997,7 +997,7 @@ var tn = $t(function(e) {
|
|
|
997
997
|
return new ht(r, n);
|
|
998
998
|
}, t;
|
|
999
999
|
}(ut), ht = function(e) {
|
|
1000
|
-
|
|
1000
|
+
oe(t, e);
|
|
1001
1001
|
function t(r, n) {
|
|
1002
1002
|
var i = e.call(this) || this;
|
|
1003
1003
|
return i.destination = r, i.source = n, i;
|
|
@@ -1021,7 +1021,7 @@ var tn = $t(function(e) {
|
|
|
1021
1021
|
},
|
|
1022
1022
|
delegate: void 0
|
|
1023
1023
|
}, rn = function(e) {
|
|
1024
|
-
|
|
1024
|
+
oe(t, e);
|
|
1025
1025
|
function t(r, n, i) {
|
|
1026
1026
|
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = jt);
|
|
1027
1027
|
var o = e.call(this) || this;
|
|
@@ -1050,39 +1050,39 @@ const ct = [], ft = {}, nn = (e, t = 0) => {
|
|
|
1050
1050
|
ft[e] = r, ct.push(e);
|
|
1051
1051
|
}
|
|
1052
1052
|
return ft[e];
|
|
1053
|
-
},
|
|
1053
|
+
}, D = [];
|
|
1054
1054
|
function on(e, t) {
|
|
1055
1055
|
return {
|
|
1056
|
-
subscribe:
|
|
1056
|
+
subscribe: _e(e, t).subscribe
|
|
1057
1057
|
};
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function _e(e, t = N) {
|
|
1060
1060
|
let r;
|
|
1061
1061
|
const n = /* @__PURE__ */ new Set();
|
|
1062
1062
|
function i(a) {
|
|
1063
1063
|
if (It(e, a) && (e = a, r)) {
|
|
1064
|
-
const l = !
|
|
1064
|
+
const l = !D.length;
|
|
1065
1065
|
for (const u of n)
|
|
1066
|
-
u[1](),
|
|
1066
|
+
u[1](), D.push(u, e);
|
|
1067
1067
|
if (l) {
|
|
1068
|
-
for (let u = 0; u <
|
|
1069
|
-
|
|
1070
|
-
|
|
1068
|
+
for (let u = 0; u < D.length; u += 2)
|
|
1069
|
+
D[u][0](D[u + 1]);
|
|
1070
|
+
D.length = 0;
|
|
1071
1071
|
}
|
|
1072
1072
|
}
|
|
1073
1073
|
}
|
|
1074
1074
|
function o(a) {
|
|
1075
1075
|
i(a(e));
|
|
1076
1076
|
}
|
|
1077
|
-
function s(a, l =
|
|
1077
|
+
function s(a, l = N) {
|
|
1078
1078
|
const u = [a, l];
|
|
1079
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1079
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || N), a(e), () => {
|
|
1080
1080
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1081
1081
|
};
|
|
1082
1082
|
}
|
|
1083
1083
|
return { set: i, update: o, subscribe: s };
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function Q(e, t, r) {
|
|
1086
1086
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1087
1087
|
if (!i.every(Boolean))
|
|
1088
1088
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1090,16 +1090,16 @@ function q(e, t, r) {
|
|
|
1090
1090
|
return on(r, (s, a) => {
|
|
1091
1091
|
let l = !1;
|
|
1092
1092
|
const u = [];
|
|
1093
|
-
let h = 0, c =
|
|
1093
|
+
let h = 0, c = N;
|
|
1094
1094
|
const f = () => {
|
|
1095
1095
|
if (h)
|
|
1096
1096
|
return;
|
|
1097
1097
|
c();
|
|
1098
|
-
const
|
|
1099
|
-
o ? s(
|
|
1098
|
+
const y = t(n ? u[0] : u, s, a);
|
|
1099
|
+
o ? s(y) : c = Ye(y) ? y : N;
|
|
1100
1100
|
}, m = i.map(
|
|
1101
|
-
(
|
|
1102
|
-
|
|
1101
|
+
(y, d) => Mt(
|
|
1102
|
+
y,
|
|
1103
1103
|
(S) => {
|
|
1104
1104
|
u[d] = S, h &= ~(1 << d), l && f();
|
|
1105
1105
|
},
|
|
@@ -1109,7 +1109,7 @@ function q(e, t, r) {
|
|
|
1109
1109
|
)
|
|
1110
1110
|
);
|
|
1111
1111
|
return l = !0, f(), function() {
|
|
1112
|
-
|
|
1112
|
+
W(m), c(), l = !1;
|
|
1113
1113
|
};
|
|
1114
1114
|
});
|
|
1115
1115
|
}
|
|
@@ -1130,19 +1130,19 @@ function cn(e) {
|
|
|
1130
1130
|
function fn(e) {
|
|
1131
1131
|
return Array.isArray(e) ? [] : {};
|
|
1132
1132
|
}
|
|
1133
|
-
function
|
|
1134
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1133
|
+
function te(e, t) {
|
|
1134
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(fn(e), e, t) : e;
|
|
1135
1135
|
}
|
|
1136
1136
|
function mn(e, t, r) {
|
|
1137
1137
|
return e.concat(t).map(function(n) {
|
|
1138
|
-
return
|
|
1138
|
+
return te(n, r);
|
|
1139
1139
|
});
|
|
1140
1140
|
}
|
|
1141
1141
|
function pn(e, t) {
|
|
1142
1142
|
if (!t.customMerge)
|
|
1143
|
-
return
|
|
1143
|
+
return k;
|
|
1144
1144
|
var r = t.customMerge(e);
|
|
1145
|
-
return typeof r == "function" ? r :
|
|
1145
|
+
return typeof r == "function" ? r : k;
|
|
1146
1146
|
}
|
|
1147
1147
|
function dn(e) {
|
|
1148
1148
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -1165,51 +1165,51 @@ function bn(e, t) {
|
|
|
1165
1165
|
function gn(e, t, r) {
|
|
1166
1166
|
var n = {};
|
|
1167
1167
|
return r.isMergeableObject(e) && mt(e).forEach(function(i) {
|
|
1168
|
-
n[i] =
|
|
1168
|
+
n[i] = te(e[i], r);
|
|
1169
1169
|
}), mt(t).forEach(function(i) {
|
|
1170
|
-
bn(e, i) || (kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = pn(i, r)(e[i], t[i], r) : n[i] =
|
|
1170
|
+
bn(e, i) || (kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = pn(i, r)(e[i], t[i], r) : n[i] = te(t[i], r));
|
|
1171
1171
|
}), n;
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1174
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || mn, r.isMergeableObject = r.isMergeableObject || sn, r.cloneUnlessOtherwiseSpecified =
|
|
1173
|
+
function k(e, t, r) {
|
|
1174
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || mn, r.isMergeableObject = r.isMergeableObject || sn, r.cloneUnlessOtherwiseSpecified = te;
|
|
1175
1175
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1176
|
-
return o ? n ? r.arrayMerge(e, t, r) : gn(e, t, r) :
|
|
1176
|
+
return o ? n ? r.arrayMerge(e, t, r) : gn(e, t, r) : te(t, r);
|
|
1177
1177
|
}
|
|
1178
|
-
|
|
1178
|
+
k.all = function(t, r) {
|
|
1179
1179
|
if (!Array.isArray(t))
|
|
1180
1180
|
throw new Error("first argument should be an array");
|
|
1181
1181
|
return t.reduce(function(n, i) {
|
|
1182
|
-
return
|
|
1182
|
+
return k(n, i, r);
|
|
1183
1183
|
}, {});
|
|
1184
1184
|
};
|
|
1185
|
-
var yn =
|
|
1185
|
+
var yn = k, vn = yn;
|
|
1186
1186
|
const _n = /* @__PURE__ */ kr(vn);
|
|
1187
|
-
var
|
|
1188
|
-
return
|
|
1187
|
+
var ke = function(e, t) {
|
|
1188
|
+
return ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1189
1189
|
r.__proto__ = n;
|
|
1190
1190
|
} || function(r, n) {
|
|
1191
1191
|
for (var i in n)
|
|
1192
1192
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1193
|
-
},
|
|
1193
|
+
}, ke(e, t);
|
|
1194
1194
|
};
|
|
1195
|
-
function
|
|
1195
|
+
function xe(e, t) {
|
|
1196
1196
|
if (typeof t != "function" && t !== null)
|
|
1197
1197
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1198
|
-
|
|
1198
|
+
ke(e, t);
|
|
1199
1199
|
function r() {
|
|
1200
1200
|
this.constructor = e;
|
|
1201
1201
|
}
|
|
1202
1202
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1203
1203
|
}
|
|
1204
|
-
var
|
|
1205
|
-
return
|
|
1204
|
+
var M = function() {
|
|
1205
|
+
return M = Object.assign || function(t) {
|
|
1206
1206
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1207
1207
|
r = arguments[n];
|
|
1208
1208
|
for (var o in r)
|
|
1209
1209
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1210
1210
|
}
|
|
1211
1211
|
return t;
|
|
1212
|
-
},
|
|
1212
|
+
}, M.apply(this, arguments);
|
|
1213
1213
|
};
|
|
1214
1214
|
function xn(e, t) {
|
|
1215
1215
|
var r = {};
|
|
@@ -1226,8 +1226,8 @@ function Ae(e, t, r) {
|
|
|
1226
1226
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1227
1227
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1230
|
-
var r = t && t.cache ? t.cache :
|
|
1229
|
+
function Be(e, t) {
|
|
1230
|
+
var r = t && t.cache ? t.cache : Bn, n = t && t.serializer ? t.serializer : Hn, i = t && t.strategy ? t.strategy : wn;
|
|
1231
1231
|
return i(e, {
|
|
1232
1232
|
cache: r,
|
|
1233
1233
|
serializer: n
|
|
@@ -1256,7 +1256,7 @@ function Tn(e, t) {
|
|
|
1256
1256
|
}
|
|
1257
1257
|
var Hn = function() {
|
|
1258
1258
|
return JSON.stringify(arguments);
|
|
1259
|
-
},
|
|
1259
|
+
}, An = (
|
|
1260
1260
|
/** @class */
|
|
1261
1261
|
function() {
|
|
1262
1262
|
function e() {
|
|
@@ -1268,34 +1268,34 @@ var Hn = function() {
|
|
|
1268
1268
|
this.cache[t] = r;
|
|
1269
1269
|
}, e;
|
|
1270
1270
|
}()
|
|
1271
|
-
),
|
|
1271
|
+
), Bn = {
|
|
1272
1272
|
create: function() {
|
|
1273
|
-
return new
|
|
1273
|
+
return new An();
|
|
1274
1274
|
}
|
|
1275
|
-
},
|
|
1275
|
+
}, Ce = {
|
|
1276
1276
|
variadic: Tn
|
|
1277
|
-
},
|
|
1278
|
-
return
|
|
1277
|
+
}, be = function() {
|
|
1278
|
+
return be = Object.assign || function(t) {
|
|
1279
1279
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1280
1280
|
r = arguments[n];
|
|
1281
1281
|
for (var o in r)
|
|
1282
1282
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1283
1283
|
}
|
|
1284
1284
|
return t;
|
|
1285
|
-
},
|
|
1285
|
+
}, be.apply(this, arguments);
|
|
1286
1286
|
};
|
|
1287
|
-
var
|
|
1287
|
+
var p;
|
|
1288
1288
|
(function(e) {
|
|
1289
1289
|
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";
|
|
1290
|
-
})(
|
|
1290
|
+
})(p || (p = {}));
|
|
1291
1291
|
var E;
|
|
1292
1292
|
(function(e) {
|
|
1293
1293
|
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";
|
|
1294
1294
|
})(E || (E = {}));
|
|
1295
|
-
var
|
|
1295
|
+
var V;
|
|
1296
1296
|
(function(e) {
|
|
1297
1297
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1298
|
-
})(
|
|
1298
|
+
})(V || (V = {}));
|
|
1299
1299
|
function pt(e) {
|
|
1300
1300
|
return e.type === E.literal;
|
|
1301
1301
|
}
|
|
@@ -1324,10 +1324,10 @@ function qt(e) {
|
|
|
1324
1324
|
return e.type === E.tag;
|
|
1325
1325
|
}
|
|
1326
1326
|
function Yt(e) {
|
|
1327
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1327
|
+
return !!(e && typeof e == "object" && e.type === V.number);
|
|
1328
1328
|
}
|
|
1329
|
-
function
|
|
1330
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1329
|
+
function Ve(e) {
|
|
1330
|
+
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
1331
1331
|
}
|
|
1332
1332
|
var Kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, On = /(?:[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;
|
|
1333
1333
|
function In(e) {
|
|
@@ -1421,15 +1421,15 @@ function In(e) {
|
|
|
1421
1421
|
return "";
|
|
1422
1422
|
}), t;
|
|
1423
1423
|
}
|
|
1424
|
-
var
|
|
1425
|
-
return
|
|
1424
|
+
var w = function() {
|
|
1425
|
+
return w = Object.assign || function(t) {
|
|
1426
1426
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1427
1427
|
r = arguments[n];
|
|
1428
1428
|
for (var o in r)
|
|
1429
1429
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1430
1430
|
}
|
|
1431
1431
|
return t;
|
|
1432
|
-
},
|
|
1432
|
+
}, w.apply(this, arguments);
|
|
1433
1433
|
};
|
|
1434
1434
|
var Mn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1435
1435
|
function Nn(e) {
|
|
@@ -1553,13 +1553,13 @@ function Gn(e) {
|
|
|
1553
1553
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1554
1554
|
continue;
|
|
1555
1555
|
case "scientific":
|
|
1556
|
-
t =
|
|
1557
|
-
return
|
|
1556
|
+
t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1557
|
+
return w(w({}, l), gt(u));
|
|
1558
1558
|
}, {}));
|
|
1559
1559
|
continue;
|
|
1560
1560
|
case "engineering":
|
|
1561
|
-
t =
|
|
1562
|
-
return
|
|
1561
|
+
t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1562
|
+
return w(w({}, l), gt(u));
|
|
1563
1563
|
}, {}));
|
|
1564
1564
|
continue;
|
|
1565
1565
|
case "notation-simple":
|
|
@@ -1628,17 +1628,17 @@ function Gn(e) {
|
|
|
1628
1628
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1629
1629
|
});
|
|
1630
1630
|
var o = i.options[0];
|
|
1631
|
-
o === "w" ? t =
|
|
1631
|
+
o === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = w(w({}, t), bt(o)));
|
|
1632
1632
|
continue;
|
|
1633
1633
|
}
|
|
1634
1634
|
if (er.test(i.stem)) {
|
|
1635
|
-
t =
|
|
1635
|
+
t = w(w({}, t), bt(i.stem));
|
|
1636
1636
|
continue;
|
|
1637
1637
|
}
|
|
1638
1638
|
var s = rr(i.stem);
|
|
1639
|
-
s && (t =
|
|
1639
|
+
s && (t = w(w({}, t), s));
|
|
1640
1640
|
var a = $n(i.stem);
|
|
1641
|
-
a && (t =
|
|
1641
|
+
a && (t = w(w({}, t), a));
|
|
1642
1642
|
}
|
|
1643
1643
|
return t;
|
|
1644
1644
|
}
|
|
@@ -3095,18 +3095,18 @@ function Dn(e) {
|
|
|
3095
3095
|
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
3096
3096
|
return i[0];
|
|
3097
3097
|
}
|
|
3098
|
-
var
|
|
3099
|
-
function
|
|
3098
|
+
var Pe, Fn = new RegExp("^".concat(Kt.source, "*")), jn = new RegExp("".concat(Kt.source, "*$"));
|
|
3099
|
+
function g(e, t) {
|
|
3100
3100
|
return { start: e, end: t };
|
|
3101
3101
|
}
|
|
3102
3102
|
var kn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Vn = !!String.fromCodePoint, Xn = !!Object.fromEntries, zn = !!String.prototype.codePointAt, Wn = !!String.prototype.trimStart, Zn = !!String.prototype.trimEnd, Qn = !!Number.isSafeInteger, Jn = Qn ? Number.isSafeInteger : function(e) {
|
|
3103
3103
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3104
|
-
},
|
|
3104
|
+
}, Xe = !0;
|
|
3105
3105
|
try {
|
|
3106
3106
|
var qn = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3107
|
-
|
|
3107
|
+
Xe = ((Pe = qn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
3108
3108
|
} catch {
|
|
3109
|
-
|
|
3109
|
+
Xe = !1;
|
|
3110
3110
|
}
|
|
3111
3111
|
var yt = kn ? (
|
|
3112
3112
|
// Native
|
|
@@ -3118,7 +3118,7 @@ var yt = kn ? (
|
|
|
3118
3118
|
function(t, r, n) {
|
|
3119
3119
|
return t.slice(n, n + r.length) === r;
|
|
3120
3120
|
}
|
|
3121
|
-
),
|
|
3121
|
+
), ze = Vn ? String.fromCodePoint : (
|
|
3122
3122
|
// IE11
|
|
3123
3123
|
function() {
|
|
3124
3124
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3180,24 +3180,24 @@ var yt = kn ? (
|
|
|
3180
3180
|
function ir(e, t) {
|
|
3181
3181
|
return new RegExp(e, t);
|
|
3182
3182
|
}
|
|
3183
|
-
var
|
|
3184
|
-
if (
|
|
3183
|
+
var We;
|
|
3184
|
+
if (Xe) {
|
|
3185
3185
|
var _t = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3186
|
-
|
|
3186
|
+
We = function(t, r) {
|
|
3187
3187
|
var n;
|
|
3188
3188
|
_t.lastIndex = r;
|
|
3189
3189
|
var i = _t.exec(t);
|
|
3190
3190
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3191
3191
|
};
|
|
3192
3192
|
} else
|
|
3193
|
-
|
|
3193
|
+
We = function(t, r) {
|
|
3194
3194
|
for (var n = []; ; ) {
|
|
3195
3195
|
var i = nr(t, r);
|
|
3196
3196
|
if (i === void 0 || or(i) || ni(i))
|
|
3197
3197
|
break;
|
|
3198
3198
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3199
3199
|
}
|
|
3200
|
-
return
|
|
3200
|
+
return ze.apply(void 0, n);
|
|
3201
3201
|
};
|
|
3202
3202
|
var ei = (
|
|
3203
3203
|
/** @class */
|
|
@@ -3224,13 +3224,13 @@ var ei = (
|
|
|
3224
3224
|
var a = this.clonePosition();
|
|
3225
3225
|
this.bump(), i.push({
|
|
3226
3226
|
type: E.pound,
|
|
3227
|
-
location:
|
|
3227
|
+
location: g(a, this.clonePosition())
|
|
3228
3228
|
});
|
|
3229
3229
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3230
3230
|
if (n)
|
|
3231
3231
|
break;
|
|
3232
|
-
return this.error(
|
|
3233
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3232
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3233
|
+
} else if (o === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
|
|
3234
3234
|
var s = this.parseTag(t, r);
|
|
3235
3235
|
if (s.err)
|
|
3236
3236
|
return s;
|
|
@@ -3253,7 +3253,7 @@ var ei = (
|
|
|
3253
3253
|
val: {
|
|
3254
3254
|
type: E.literal,
|
|
3255
3255
|
value: "<".concat(i, "/>"),
|
|
3256
|
-
location:
|
|
3256
|
+
location: g(n, this.clonePosition())
|
|
3257
3257
|
},
|
|
3258
3258
|
err: null
|
|
3259
3259
|
};
|
|
@@ -3263,22 +3263,22 @@ var ei = (
|
|
|
3263
3263
|
return o;
|
|
3264
3264
|
var s = o.val, a = this.clonePosition();
|
|
3265
3265
|
if (this.bumpIf("</")) {
|
|
3266
|
-
if (this.isEOF() || !
|
|
3267
|
-
return this.error(
|
|
3266
|
+
if (this.isEOF() || !Ze(this.char()))
|
|
3267
|
+
return this.error(p.INVALID_TAG, g(a, this.clonePosition()));
|
|
3268
3268
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3269
|
-
return i !== u ? this.error(
|
|
3269
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3270
3270
|
val: {
|
|
3271
3271
|
type: E.tag,
|
|
3272
3272
|
value: i,
|
|
3273
3273
|
children: s,
|
|
3274
|
-
location:
|
|
3274
|
+
location: g(n, this.clonePosition())
|
|
3275
3275
|
},
|
|
3276
3276
|
err: null
|
|
3277
|
-
} : this.error(
|
|
3277
|
+
} : this.error(p.INVALID_TAG, g(a, this.clonePosition())));
|
|
3278
3278
|
} else
|
|
3279
|
-
return this.error(
|
|
3279
|
+
return this.error(p.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
3280
3280
|
} else
|
|
3281
|
-
return this.error(
|
|
3281
|
+
return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
|
|
3282
3282
|
}, e.prototype.parseTagName = function() {
|
|
3283
3283
|
var t = this.offset();
|
|
3284
3284
|
for (this.bump(); !this.isEOF() && ri(this.char()); )
|
|
@@ -3303,7 +3303,7 @@ var ei = (
|
|
|
3303
3303
|
}
|
|
3304
3304
|
break;
|
|
3305
3305
|
}
|
|
3306
|
-
var l =
|
|
3306
|
+
var l = g(n, this.clonePosition());
|
|
3307
3307
|
return {
|
|
3308
3308
|
val: { type: E.literal, value: i, location: l },
|
|
3309
3309
|
err: null
|
|
@@ -3344,23 +3344,23 @@ var ei = (
|
|
|
3344
3344
|
r.push(n);
|
|
3345
3345
|
this.bump();
|
|
3346
3346
|
}
|
|
3347
|
-
return
|
|
3347
|
+
return ze.apply(void 0, r);
|
|
3348
3348
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3349
3349
|
if (this.isEOF())
|
|
3350
3350
|
return null;
|
|
3351
3351
|
var n = this.char();
|
|
3352
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3352
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ze(n));
|
|
3353
3353
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3354
3354
|
var n = this.clonePosition();
|
|
3355
3355
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3356
|
-
return this.error(
|
|
3356
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3357
3357
|
if (this.char() === 125)
|
|
3358
|
-
return this.bump(), this.error(
|
|
3358
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
3359
3359
|
var i = this.parseIdentifierIfPossible().value;
|
|
3360
3360
|
if (!i)
|
|
3361
|
-
return this.error(
|
|
3361
|
+
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3362
3362
|
if (this.bumpSpace(), this.isEOF())
|
|
3363
|
-
return this.error(
|
|
3363
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3364
3364
|
switch (this.char()) {
|
|
3365
3365
|
case 125:
|
|
3366
3366
|
return this.bump(), {
|
|
@@ -3368,25 +3368,25 @@ var ei = (
|
|
|
3368
3368
|
type: E.argument,
|
|
3369
3369
|
// value does not include the opening and closing braces.
|
|
3370
3370
|
value: i,
|
|
3371
|
-
location:
|
|
3371
|
+
location: g(n, this.clonePosition())
|
|
3372
3372
|
},
|
|
3373
3373
|
err: null
|
|
3374
3374
|
};
|
|
3375
3375
|
case 44:
|
|
3376
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3376
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3377
3377
|
default:
|
|
3378
|
-
return this.error(
|
|
3378
|
+
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3379
3379
|
}
|
|
3380
3380
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3381
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3381
|
+
var t = this.clonePosition(), r = this.offset(), n = We(this.message, r), i = r + n.length;
|
|
3382
3382
|
this.bumpTo(i);
|
|
3383
|
-
var o = this.clonePosition(), s =
|
|
3383
|
+
var o = this.clonePosition(), s = g(t, o);
|
|
3384
3384
|
return { value: n, location: s };
|
|
3385
3385
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3386
3386
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3387
3387
|
switch (a) {
|
|
3388
3388
|
case "":
|
|
3389
|
-
return this.error(
|
|
3389
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, g(s, l));
|
|
3390
3390
|
case "number":
|
|
3391
3391
|
case "date":
|
|
3392
3392
|
case "time": {
|
|
@@ -3399,14 +3399,14 @@ var ei = (
|
|
|
3399
3399
|
return c;
|
|
3400
3400
|
var f = Kn(c.val);
|
|
3401
3401
|
if (f.length === 0)
|
|
3402
|
-
return this.error(
|
|
3403
|
-
var m =
|
|
3402
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3403
|
+
var m = g(h, this.clonePosition());
|
|
3404
3404
|
u = { style: f, styleLocation: m };
|
|
3405
3405
|
}
|
|
3406
|
-
var
|
|
3407
|
-
if (
|
|
3408
|
-
return
|
|
3409
|
-
var d =
|
|
3406
|
+
var y = this.tryParseArgumentClose(i);
|
|
3407
|
+
if (y.err)
|
|
3408
|
+
return y;
|
|
3409
|
+
var d = g(i, this.clonePosition());
|
|
3410
3410
|
if (u && yt(u?.style, "::", 0)) {
|
|
3411
3411
|
var S = Yn(u.style.slice(2));
|
|
3412
3412
|
if (a === "number") {
|
|
@@ -3417,17 +3417,17 @@ var ei = (
|
|
|
3417
3417
|
};
|
|
3418
3418
|
} else {
|
|
3419
3419
|
if (S.length === 0)
|
|
3420
|
-
return this.error(
|
|
3421
|
-
var
|
|
3422
|
-
this.locale && (
|
|
3420
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, d);
|
|
3421
|
+
var P = S;
|
|
3422
|
+
this.locale && (P = Un(S, this.locale));
|
|
3423
3423
|
var f = {
|
|
3424
|
-
type:
|
|
3425
|
-
pattern:
|
|
3424
|
+
type: V.dateTime,
|
|
3425
|
+
pattern: P,
|
|
3426
3426
|
location: u.styleLocation,
|
|
3427
|
-
parsedOptions: this.shouldParseSkeletons ? In(
|
|
3428
|
-
},
|
|
3427
|
+
parsedOptions: this.shouldParseSkeletons ? In(P) : {}
|
|
3428
|
+
}, H = a === "date" ? E.date : E.time;
|
|
3429
3429
|
return {
|
|
3430
|
-
val: { type:
|
|
3430
|
+
val: { type: H, value: n, location: d, style: f },
|
|
3431
3431
|
err: null
|
|
3432
3432
|
};
|
|
3433
3433
|
}
|
|
@@ -3445,52 +3445,52 @@ var ei = (
|
|
|
3445
3445
|
case "plural":
|
|
3446
3446
|
case "selectordinal":
|
|
3447
3447
|
case "select": {
|
|
3448
|
-
var
|
|
3448
|
+
var _ = this.clonePosition();
|
|
3449
3449
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3450
|
-
return this.error(
|
|
3450
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, g(_, be({}, _)));
|
|
3451
3451
|
this.bumpSpace();
|
|
3452
|
-
var
|
|
3453
|
-
if (a !== "select" &&
|
|
3452
|
+
var x = this.parseIdentifierIfPossible(), v = 0;
|
|
3453
|
+
if (a !== "select" && x.value === "offset") {
|
|
3454
3454
|
if (!this.bumpIf(":"))
|
|
3455
|
-
return this.error(
|
|
3455
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
3456
3456
|
this.bumpSpace();
|
|
3457
|
-
var c = this.tryParseDecimalInteger(
|
|
3457
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3458
3458
|
if (c.err)
|
|
3459
3459
|
return c;
|
|
3460
|
-
this.bumpSpace(),
|
|
3460
|
+
this.bumpSpace(), x = this.parseIdentifierIfPossible(), v = c.val;
|
|
3461
3461
|
}
|
|
3462
|
-
var
|
|
3463
|
-
if (
|
|
3464
|
-
return
|
|
3465
|
-
var
|
|
3466
|
-
if (
|
|
3467
|
-
return
|
|
3468
|
-
var
|
|
3462
|
+
var A = this.tryParsePluralOrSelectOptions(t, a, r, x);
|
|
3463
|
+
if (A.err)
|
|
3464
|
+
return A;
|
|
3465
|
+
var y = this.tryParseArgumentClose(i);
|
|
3466
|
+
if (y.err)
|
|
3467
|
+
return y;
|
|
3468
|
+
var ae = g(i, this.clonePosition());
|
|
3469
3469
|
return a === "select" ? {
|
|
3470
3470
|
val: {
|
|
3471
3471
|
type: E.select,
|
|
3472
3472
|
value: n,
|
|
3473
|
-
options: vt(
|
|
3474
|
-
location:
|
|
3473
|
+
options: vt(A.val),
|
|
3474
|
+
location: ae
|
|
3475
3475
|
},
|
|
3476
3476
|
err: null
|
|
3477
3477
|
} : {
|
|
3478
3478
|
val: {
|
|
3479
3479
|
type: E.plural,
|
|
3480
3480
|
value: n,
|
|
3481
|
-
options: vt(
|
|
3482
|
-
offset:
|
|
3481
|
+
options: vt(A.val),
|
|
3482
|
+
offset: v,
|
|
3483
3483
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3484
|
-
location:
|
|
3484
|
+
location: ae
|
|
3485
3485
|
},
|
|
3486
3486
|
err: null
|
|
3487
3487
|
};
|
|
3488
3488
|
}
|
|
3489
3489
|
default:
|
|
3490
|
-
return this.error(
|
|
3490
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, g(s, l));
|
|
3491
3491
|
}
|
|
3492
3492
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3493
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3493
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3494
3494
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3495
3495
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3496
3496
|
var n = this.char();
|
|
@@ -3499,7 +3499,7 @@ var ei = (
|
|
|
3499
3499
|
this.bump();
|
|
3500
3500
|
var i = this.clonePosition();
|
|
3501
3501
|
if (!this.bumpUntil("'"))
|
|
3502
|
-
return this.error(
|
|
3502
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
3503
3503
|
this.bump();
|
|
3504
3504
|
break;
|
|
3505
3505
|
}
|
|
@@ -3531,11 +3531,11 @@ var ei = (
|
|
|
3531
3531
|
try {
|
|
3532
3532
|
n = Nn(t);
|
|
3533
3533
|
} catch {
|
|
3534
|
-
return this.error(
|
|
3534
|
+
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3535
3535
|
}
|
|
3536
3536
|
return {
|
|
3537
3537
|
val: {
|
|
3538
|
-
type:
|
|
3538
|
+
type: V.number,
|
|
3539
3539
|
tokens: n,
|
|
3540
3540
|
location: r,
|
|
3541
3541
|
parsedOptions: this.shouldParseSkeletons ? Gn(n) : {}
|
|
@@ -3547,34 +3547,34 @@ var ei = (
|
|
|
3547
3547
|
if (u.length === 0) {
|
|
3548
3548
|
var c = this.clonePosition();
|
|
3549
3549
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3550
|
-
var f = this.tryParseDecimalInteger(
|
|
3550
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3551
3551
|
if (f.err)
|
|
3552
3552
|
return f;
|
|
3553
|
-
h =
|
|
3553
|
+
h = g(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3554
3554
|
} else
|
|
3555
3555
|
break;
|
|
3556
3556
|
}
|
|
3557
3557
|
if (l.has(u))
|
|
3558
|
-
return this.error(r === "select" ?
|
|
3558
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3559
3559
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3560
3560
|
var m = this.clonePosition();
|
|
3561
3561
|
if (!this.bumpIf("{"))
|
|
3562
|
-
return this.error(r === "select" ?
|
|
3563
|
-
var
|
|
3564
|
-
if (
|
|
3565
|
-
return
|
|
3562
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3563
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
3564
|
+
if (y.err)
|
|
3565
|
+
return y;
|
|
3566
3566
|
var d = this.tryParseArgumentClose(m);
|
|
3567
3567
|
if (d.err)
|
|
3568
3568
|
return d;
|
|
3569
3569
|
a.push([
|
|
3570
3570
|
u,
|
|
3571
3571
|
{
|
|
3572
|
-
value:
|
|
3573
|
-
location:
|
|
3572
|
+
value: y.val,
|
|
3573
|
+
location: g(m, this.clonePosition())
|
|
3574
3574
|
}
|
|
3575
3575
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3576
3576
|
}
|
|
3577
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3577
|
+
return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3578
3578
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3579
3579
|
var n = 1, i = this.clonePosition();
|
|
3580
3580
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3585,7 +3585,7 @@ var ei = (
|
|
|
3585
3585
|
else
|
|
3586
3586
|
break;
|
|
3587
3587
|
}
|
|
3588
|
-
var l =
|
|
3588
|
+
var l = g(i, this.clonePosition());
|
|
3589
3589
|
return o ? (s *= n, Jn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3590
3590
|
}, e.prototype.offset = function() {
|
|
3591
3591
|
return this.position.offset;
|
|
@@ -3652,11 +3652,11 @@ var ei = (
|
|
|
3652
3652
|
}, e;
|
|
3653
3653
|
}()
|
|
3654
3654
|
);
|
|
3655
|
-
function
|
|
3655
|
+
function Ze(e) {
|
|
3656
3656
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3657
3657
|
}
|
|
3658
3658
|
function ti(e) {
|
|
3659
|
-
return
|
|
3659
|
+
return Ze(e) || e === 47;
|
|
3660
3660
|
}
|
|
3661
3661
|
function ri(e) {
|
|
3662
3662
|
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;
|
|
@@ -3667,32 +3667,32 @@ function or(e) {
|
|
|
3667
3667
|
function ni(e) {
|
|
3668
3668
|
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;
|
|
3669
3669
|
}
|
|
3670
|
-
function
|
|
3670
|
+
function Qe(e) {
|
|
3671
3671
|
e.forEach(function(t) {
|
|
3672
3672
|
if (delete t.location, Qt(t) || Jt(t))
|
|
3673
3673
|
for (var r in t.options)
|
|
3674
|
-
delete t.options[r].location,
|
|
3674
|
+
delete t.options[r].location, Qe(t.options[r].value);
|
|
3675
3675
|
else
|
|
3676
|
-
zt(t) && Yt(t.style) || (Wt(t) || Zt(t)) &&
|
|
3676
|
+
zt(t) && Yt(t.style) || (Wt(t) || Zt(t)) && Ve(t.style) ? delete t.style.location : qt(t) && Qe(t.children);
|
|
3677
3677
|
});
|
|
3678
3678
|
}
|
|
3679
3679
|
function ii(e, t) {
|
|
3680
|
-
t === void 0 && (t = {}), t =
|
|
3680
|
+
t === void 0 && (t = {}), t = be({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3681
3681
|
var r = new ei(e, t).parse();
|
|
3682
3682
|
if (r.err) {
|
|
3683
|
-
var n = SyntaxError(
|
|
3683
|
+
var n = SyntaxError(p[r.err.kind]);
|
|
3684
3684
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3685
3685
|
}
|
|
3686
|
-
return t?.captureLocation ||
|
|
3686
|
+
return t?.captureLocation || Qe(r.val), r.val;
|
|
3687
3687
|
}
|
|
3688
|
-
var
|
|
3688
|
+
var X;
|
|
3689
3689
|
(function(e) {
|
|
3690
3690
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3691
|
-
})(
|
|
3692
|
-
var
|
|
3691
|
+
})(X || (X = {}));
|
|
3692
|
+
var Ee = (
|
|
3693
3693
|
/** @class */
|
|
3694
3694
|
function(e) {
|
|
3695
|
-
|
|
3695
|
+
xe(t, e);
|
|
3696
3696
|
function t(r, n, i) {
|
|
3697
3697
|
var o = e.call(this, r) || this;
|
|
3698
3698
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3704,38 +3704,38 @@ var Se = (
|
|
|
3704
3704
|
), xt = (
|
|
3705
3705
|
/** @class */
|
|
3706
3706
|
function(e) {
|
|
3707
|
-
|
|
3707
|
+
xe(t, e);
|
|
3708
3708
|
function t(r, n, i, o) {
|
|
3709
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3709
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, o) || this;
|
|
3710
3710
|
}
|
|
3711
3711
|
return t;
|
|
3712
|
-
}(
|
|
3712
|
+
}(Ee)
|
|
3713
3713
|
), oi = (
|
|
3714
3714
|
/** @class */
|
|
3715
3715
|
function(e) {
|
|
3716
|
-
|
|
3716
|
+
xe(t, e);
|
|
3717
3717
|
function t(r, n, i) {
|
|
3718
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3718
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
|
|
3719
3719
|
}
|
|
3720
3720
|
return t;
|
|
3721
|
-
}(
|
|
3721
|
+
}(Ee)
|
|
3722
3722
|
), si = (
|
|
3723
3723
|
/** @class */
|
|
3724
3724
|
function(e) {
|
|
3725
|
-
|
|
3725
|
+
xe(t, e);
|
|
3726
3726
|
function t(r, n) {
|
|
3727
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3727
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
|
|
3728
3728
|
}
|
|
3729
3729
|
return t;
|
|
3730
|
-
}(
|
|
3731
|
-
),
|
|
3730
|
+
}(Ee)
|
|
3731
|
+
), C;
|
|
3732
3732
|
(function(e) {
|
|
3733
3733
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3734
|
-
})(
|
|
3734
|
+
})(C || (C = {}));
|
|
3735
3735
|
function ai(e) {
|
|
3736
3736
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3737
3737
|
var n = t[t.length - 1];
|
|
3738
|
-
return !n || n.type !==
|
|
3738
|
+
return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
|
|
3739
3739
|
}, []);
|
|
3740
3740
|
}
|
|
3741
3741
|
function ui(e) {
|
|
@@ -3745,7 +3745,7 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3745
3745
|
if (e.length === 1 && pt(e[0]))
|
|
3746
3746
|
return [
|
|
3747
3747
|
{
|
|
3748
|
-
type:
|
|
3748
|
+
type: C.literal,
|
|
3749
3749
|
value: e[0].value
|
|
3750
3750
|
}
|
|
3751
3751
|
];
|
|
@@ -3753,14 +3753,14 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3753
3753
|
var h = u[l];
|
|
3754
3754
|
if (pt(h)) {
|
|
3755
3755
|
a.push({
|
|
3756
|
-
type:
|
|
3756
|
+
type: C.literal,
|
|
3757
3757
|
value: h.value
|
|
3758
3758
|
});
|
|
3759
3759
|
continue;
|
|
3760
3760
|
}
|
|
3761
3761
|
if (Pn(h)) {
|
|
3762
3762
|
typeof o == "number" && a.push({
|
|
3763
|
-
type:
|
|
3763
|
+
type: C.literal,
|
|
3764
3764
|
value: r.getNumberFormat(t).format(o)
|
|
3765
3765
|
});
|
|
3766
3766
|
continue;
|
|
@@ -3771,23 +3771,23 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3771
3771
|
var f = i[c];
|
|
3772
3772
|
if (Cn(h)) {
|
|
3773
3773
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3774
|
-
type: typeof f == "string" ?
|
|
3774
|
+
type: typeof f == "string" ? C.literal : C.object,
|
|
3775
3775
|
value: f
|
|
3776
3776
|
});
|
|
3777
3777
|
continue;
|
|
3778
3778
|
}
|
|
3779
3779
|
if (Wt(h)) {
|
|
3780
|
-
var m = typeof h.style == "string" ? n.date[h.style] :
|
|
3780
|
+
var m = typeof h.style == "string" ? n.date[h.style] : Ve(h.style) ? h.style.parsedOptions : void 0;
|
|
3781
3781
|
a.push({
|
|
3782
|
-
type:
|
|
3782
|
+
type: C.literal,
|
|
3783
3783
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3784
3784
|
});
|
|
3785
3785
|
continue;
|
|
3786
3786
|
}
|
|
3787
3787
|
if (Zt(h)) {
|
|
3788
|
-
var m = typeof h.style == "string" ? n.time[h.style] :
|
|
3788
|
+
var m = typeof h.style == "string" ? n.time[h.style] : Ve(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3789
3789
|
a.push({
|
|
3790
|
-
type:
|
|
3790
|
+
type: C.literal,
|
|
3791
3791
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3792
3792
|
});
|
|
3793
3793
|
continue;
|
|
@@ -3795,61 +3795,61 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3795
3795
|
if (zt(h)) {
|
|
3796
3796
|
var m = typeof h.style == "string" ? n.number[h.style] : Yt(h.style) ? h.style.parsedOptions : void 0;
|
|
3797
3797
|
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3798
|
-
type:
|
|
3798
|
+
type: C.literal,
|
|
3799
3799
|
value: r.getNumberFormat(t, m).format(f)
|
|
3800
3800
|
});
|
|
3801
3801
|
continue;
|
|
3802
3802
|
}
|
|
3803
3803
|
if (qt(h)) {
|
|
3804
|
-
var
|
|
3804
|
+
var y = h.children, d = h.value, S = i[d];
|
|
3805
3805
|
if (!ui(S))
|
|
3806
3806
|
throw new oi(d, "function", s);
|
|
3807
|
-
var
|
|
3808
|
-
return
|
|
3807
|
+
var P = pe(y, t, r, n, i, o), H = S(P.map(function(v) {
|
|
3808
|
+
return v.value;
|
|
3809
3809
|
}));
|
|
3810
|
-
Array.isArray(
|
|
3810
|
+
Array.isArray(H) || (H = [H]), a.push.apply(a, H.map(function(v) {
|
|
3811
3811
|
return {
|
|
3812
|
-
type: typeof
|
|
3813
|
-
value:
|
|
3812
|
+
type: typeof v == "string" ? C.literal : C.object,
|
|
3813
|
+
value: v
|
|
3814
3814
|
};
|
|
3815
3815
|
}));
|
|
3816
3816
|
}
|
|
3817
3817
|
if (Qt(h)) {
|
|
3818
|
-
var
|
|
3819
|
-
if (!
|
|
3818
|
+
var _ = h.options[f] || h.options.other;
|
|
3819
|
+
if (!_)
|
|
3820
3820
|
throw new xt(h.value, f, Object.keys(h.options), s);
|
|
3821
|
-
a.push.apply(a, pe(
|
|
3821
|
+
a.push.apply(a, pe(_.value, t, r, n, i));
|
|
3822
3822
|
continue;
|
|
3823
3823
|
}
|
|
3824
3824
|
if (Jt(h)) {
|
|
3825
|
-
var
|
|
3826
|
-
if (!
|
|
3825
|
+
var _ = h.options["=".concat(f)];
|
|
3826
|
+
if (!_) {
|
|
3827
3827
|
if (!Intl.PluralRules)
|
|
3828
|
-
throw new
|
|
3828
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3829
3829
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3830
|
-
`,
|
|
3831
|
-
var
|
|
3832
|
-
|
|
3830
|
+
`, X.MISSING_INTL_API, s);
|
|
3831
|
+
var x = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3832
|
+
_ = h.options[x] || h.options.other;
|
|
3833
3833
|
}
|
|
3834
|
-
if (!
|
|
3834
|
+
if (!_)
|
|
3835
3835
|
throw new xt(h.value, f, Object.keys(h.options), s);
|
|
3836
|
-
a.push.apply(a, pe(
|
|
3836
|
+
a.push.apply(a, pe(_.value, t, r, n, i, f - (h.offset || 0)));
|
|
3837
3837
|
continue;
|
|
3838
3838
|
}
|
|
3839
3839
|
}
|
|
3840
3840
|
return ai(a);
|
|
3841
3841
|
}
|
|
3842
3842
|
function li(e, t) {
|
|
3843
|
-
return t ?
|
|
3844
|
-
return r[n] =
|
|
3843
|
+
return t ? M(M(M({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3844
|
+
return r[n] = M(M({}, e[n]), t[n] || {}), r;
|
|
3845
3845
|
}, {})) : e;
|
|
3846
3846
|
}
|
|
3847
3847
|
function hi(e, t) {
|
|
3848
3848
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3849
3849
|
return r[n] = li(e[n], t[n]), r;
|
|
3850
|
-
},
|
|
3850
|
+
}, M({}, e)) : e;
|
|
3851
3851
|
}
|
|
3852
|
-
function
|
|
3852
|
+
function Oe(e) {
|
|
3853
3853
|
return {
|
|
3854
3854
|
create: function() {
|
|
3855
3855
|
return {
|
|
@@ -3869,29 +3869,29 @@ function ci(e) {
|
|
|
3869
3869
|
dateTime: {},
|
|
3870
3870
|
pluralRules: {}
|
|
3871
3871
|
}), {
|
|
3872
|
-
getNumberFormat:
|
|
3872
|
+
getNumberFormat: Be(function() {
|
|
3873
3873
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3874
3874
|
r[n] = arguments[n];
|
|
3875
3875
|
return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3876
3876
|
}, {
|
|
3877
|
-
cache:
|
|
3878
|
-
strategy:
|
|
3877
|
+
cache: Oe(e.number),
|
|
3878
|
+
strategy: Ce.variadic
|
|
3879
3879
|
}),
|
|
3880
|
-
getDateTimeFormat:
|
|
3880
|
+
getDateTimeFormat: Be(function() {
|
|
3881
3881
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3882
3882
|
r[n] = arguments[n];
|
|
3883
3883
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3884
3884
|
}, {
|
|
3885
|
-
cache:
|
|
3886
|
-
strategy:
|
|
3885
|
+
cache: Oe(e.dateTime),
|
|
3886
|
+
strategy: Ce.variadic
|
|
3887
3887
|
}),
|
|
3888
|
-
getPluralRules:
|
|
3888
|
+
getPluralRules: Be(function() {
|
|
3889
3889
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3890
3890
|
r[n] = arguments[n];
|
|
3891
3891
|
return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3892
3892
|
}, {
|
|
3893
|
-
cache:
|
|
3894
|
-
strategy:
|
|
3893
|
+
cache: Oe(e.pluralRules),
|
|
3894
|
+
strategy: Ce.variadic
|
|
3895
3895
|
})
|
|
3896
3896
|
};
|
|
3897
3897
|
}
|
|
@@ -3910,7 +3910,7 @@ var fi = (
|
|
|
3910
3910
|
if (u.length === 1)
|
|
3911
3911
|
return u[0].value;
|
|
3912
3912
|
var h = u.reduce(function(c, f) {
|
|
3913
|
-
return !c.length || f.type !==
|
|
3913
|
+
return !c.length || f.type !== C.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3914
3914
|
}, []);
|
|
3915
3915
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3916
3916
|
}, this.formatToParts = function(l) {
|
|
@@ -3928,7 +3928,7 @@ var fi = (
|
|
|
3928
3928
|
var s = i || {};
|
|
3929
3929
|
s.formatters;
|
|
3930
3930
|
var a = xn(s, ["formatters"]);
|
|
3931
|
-
this.ast = e.__parse(t,
|
|
3931
|
+
this.ast = e.__parse(t, M(M({}, a), { locale: this.resolvedLocale }));
|
|
3932
3932
|
} else
|
|
3933
3933
|
this.ast = t;
|
|
3934
3934
|
if (!Array.isArray(this.ast))
|
|
@@ -4028,12 +4028,12 @@ function mi(e, t) {
|
|
|
4028
4028
|
n = void 0;
|
|
4029
4029
|
return n;
|
|
4030
4030
|
}
|
|
4031
|
-
const
|
|
4031
|
+
const R = {}, pi = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = r), r), sr = (e, t) => {
|
|
4032
4032
|
if (t == null)
|
|
4033
4033
|
return;
|
|
4034
|
-
if (t in
|
|
4035
|
-
return
|
|
4036
|
-
const r =
|
|
4034
|
+
if (t in R && e in R[t])
|
|
4035
|
+
return R[t][e];
|
|
4036
|
+
const r = Se(t);
|
|
4037
4037
|
for (let n = 0; n < r.length; n++) {
|
|
4038
4038
|
const i = r[n], o = bi(i, e);
|
|
4039
4039
|
if (o)
|
|
@@ -4041,7 +4041,7 @@ const $ = {}, pi = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][
|
|
|
4041
4041
|
}
|
|
4042
4042
|
};
|
|
4043
4043
|
let et;
|
|
4044
|
-
const
|
|
4044
|
+
const se = _e({});
|
|
4045
4045
|
function di(e) {
|
|
4046
4046
|
return et[e] || null;
|
|
4047
4047
|
}
|
|
@@ -4057,7 +4057,7 @@ function bi(e, t) {
|
|
|
4057
4057
|
function gi(e) {
|
|
4058
4058
|
if (e == null)
|
|
4059
4059
|
return;
|
|
4060
|
-
const t =
|
|
4060
|
+
const t = Se(e);
|
|
4061
4061
|
for (let r = 0; r < t.length; r++) {
|
|
4062
4062
|
const n = t[r];
|
|
4063
4063
|
if (ar(n))
|
|
@@ -4065,13 +4065,13 @@ function gi(e) {
|
|
|
4065
4065
|
}
|
|
4066
4066
|
}
|
|
4067
4067
|
function ur(e, ...t) {
|
|
4068
|
-
delete
|
|
4068
|
+
delete R[e], se.update((r) => (r[e] = _n.all([r[e] || {}, ...t]), r));
|
|
4069
4069
|
}
|
|
4070
|
-
|
|
4071
|
-
[
|
|
4070
|
+
Q(
|
|
4071
|
+
[se],
|
|
4072
4072
|
([e]) => Object.keys(e)
|
|
4073
4073
|
);
|
|
4074
|
-
|
|
4074
|
+
se.subscribe((e) => et = e);
|
|
4075
4075
|
const de = {};
|
|
4076
4076
|
function yi(e, t) {
|
|
4077
4077
|
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
@@ -4080,13 +4080,13 @@ function lr(e) {
|
|
|
4080
4080
|
return de[e];
|
|
4081
4081
|
}
|
|
4082
4082
|
function vi(e) {
|
|
4083
|
-
return
|
|
4083
|
+
return Se(e).map((t) => {
|
|
4084
4084
|
const r = lr(t);
|
|
4085
4085
|
return [t, r ? [...r] : []];
|
|
4086
4086
|
}).filter(([, t]) => t.length > 0);
|
|
4087
4087
|
}
|
|
4088
|
-
function
|
|
4089
|
-
return e == null ? !1 :
|
|
4088
|
+
function Je(e) {
|
|
4089
|
+
return e == null ? !1 : Se(e).some(
|
|
4090
4090
|
(t) => {
|
|
4091
4091
|
var r;
|
|
4092
4092
|
return (r = lr(t)) == null ? void 0 : r.size;
|
|
@@ -4098,20 +4098,20 @@ function _i(e, t) {
|
|
|
4098
4098
|
t.map((n) => (yi(e, n), n().then((i) => i.default || i)))
|
|
4099
4099
|
).then((n) => ur(e, ...n));
|
|
4100
4100
|
}
|
|
4101
|
-
const
|
|
4101
|
+
const Y = {};
|
|
4102
4102
|
function hr(e) {
|
|
4103
|
-
if (!
|
|
4104
|
-
return e in
|
|
4103
|
+
if (!Je(e))
|
|
4104
|
+
return e in Y ? Y[e] : Promise.resolve();
|
|
4105
4105
|
const t = vi(e);
|
|
4106
|
-
return
|
|
4106
|
+
return Y[e] = Promise.all(
|
|
4107
4107
|
t.map(
|
|
4108
4108
|
([r, n]) => _i(r, n)
|
|
4109
4109
|
)
|
|
4110
4110
|
).then(() => {
|
|
4111
|
-
if (
|
|
4111
|
+
if (Je(e))
|
|
4112
4112
|
return hr(e);
|
|
4113
|
-
delete
|
|
4114
|
-
}),
|
|
4113
|
+
delete Y[e];
|
|
4114
|
+
}), Y[e];
|
|
4115
4115
|
}
|
|
4116
4116
|
const xi = {
|
|
4117
4117
|
number: {
|
|
@@ -4150,125 +4150,125 @@ const xi = {
|
|
|
4150
4150
|
handleMissingMessage: void 0,
|
|
4151
4151
|
ignoreTag: !0
|
|
4152
4152
|
}, Si = Ei;
|
|
4153
|
-
function
|
|
4153
|
+
function z() {
|
|
4154
4154
|
return Si;
|
|
4155
4155
|
}
|
|
4156
|
-
const
|
|
4157
|
-
var wi = Object.defineProperty, Ti = Object.defineProperties, Hi = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols,
|
|
4156
|
+
const Ie = _e(!1);
|
|
4157
|
+
var wi = Object.defineProperty, Ti = Object.defineProperties, Hi = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Ai = Object.prototype.hasOwnProperty, Bi = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ci = (e, t) => {
|
|
4158
4158
|
for (var r in t || (t = {}))
|
|
4159
|
-
|
|
4159
|
+
Ai.call(t, r) && St(e, r, t[r]);
|
|
4160
4160
|
if (Et)
|
|
4161
4161
|
for (var r of Et(t))
|
|
4162
|
-
|
|
4162
|
+
Bi.call(t, r) && St(e, r, t[r]);
|
|
4163
4163
|
return e;
|
|
4164
4164
|
}, Pi = (e, t) => Ti(e, Hi(t));
|
|
4165
|
-
let
|
|
4166
|
-
const
|
|
4165
|
+
let qe;
|
|
4166
|
+
const ge = _e(null);
|
|
4167
4167
|
function wt(e) {
|
|
4168
4168
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4169
4169
|
}
|
|
4170
|
-
function
|
|
4170
|
+
function Se(e, t = z().fallbackLocale) {
|
|
4171
4171
|
const r = wt(e);
|
|
4172
4172
|
return t ? [.../* @__PURE__ */ new Set([...r, ...wt(t)])] : r;
|
|
4173
4173
|
}
|
|
4174
|
-
function
|
|
4175
|
-
return
|
|
4174
|
+
function $() {
|
|
4175
|
+
return qe ?? void 0;
|
|
4176
4176
|
}
|
|
4177
|
-
|
|
4178
|
-
|
|
4177
|
+
ge.subscribe((e) => {
|
|
4178
|
+
qe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4179
4179
|
});
|
|
4180
4180
|
const Oi = (e) => {
|
|
4181
|
-
if (e && gi(e) &&
|
|
4182
|
-
const { loadingDelay: t } =
|
|
4181
|
+
if (e && gi(e) && Je(e)) {
|
|
4182
|
+
const { loadingDelay: t } = z();
|
|
4183
4183
|
let r;
|
|
4184
|
-
return typeof window < "u" &&
|
|
4185
|
-
() =>
|
|
4184
|
+
return typeof window < "u" && $() != null && t ? r = window.setTimeout(
|
|
4185
|
+
() => Ie.set(!0),
|
|
4186
4186
|
t
|
|
4187
|
-
) :
|
|
4188
|
-
|
|
4187
|
+
) : Ie.set(!0), hr(e).then(() => {
|
|
4188
|
+
ge.set(e);
|
|
4189
4189
|
}).finally(() => {
|
|
4190
|
-
clearTimeout(r),
|
|
4190
|
+
clearTimeout(r), Ie.set(!1);
|
|
4191
4191
|
});
|
|
4192
4192
|
}
|
|
4193
|
-
return
|
|
4194
|
-
},
|
|
4193
|
+
return ge.set(e);
|
|
4194
|
+
}, J = Pi(Ci({}, ge), {
|
|
4195
4195
|
set: Oi
|
|
4196
|
-
}),
|
|
4196
|
+
}), we = (e) => {
|
|
4197
4197
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4198
4198
|
return (n) => {
|
|
4199
4199
|
const i = JSON.stringify(n);
|
|
4200
4200
|
return i in t ? t[i] : t[i] = e(n);
|
|
4201
4201
|
};
|
|
4202
4202
|
};
|
|
4203
|
-
var Ii = Object.defineProperty,
|
|
4203
|
+
var Ii = Object.defineProperty, ye = Object.getOwnPropertySymbols, cr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
4204
4204
|
for (var r in t || (t = {}))
|
|
4205
4205
|
cr.call(t, r) && Tt(e, r, t[r]);
|
|
4206
|
-
if (
|
|
4207
|
-
for (var r of
|
|
4206
|
+
if (ye)
|
|
4207
|
+
for (var r of ye(t))
|
|
4208
4208
|
fr.call(t, r) && Tt(e, r, t[r]);
|
|
4209
4209
|
return e;
|
|
4210
|
-
},
|
|
4210
|
+
}, q = (e, t) => {
|
|
4211
4211
|
var r = {};
|
|
4212
4212
|
for (var n in e)
|
|
4213
4213
|
cr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4214
|
-
if (e != null &&
|
|
4215
|
-
for (var n of
|
|
4214
|
+
if (e != null && ye)
|
|
4215
|
+
for (var n of ye(e))
|
|
4216
4216
|
t.indexOf(n) < 0 && fr.call(e, n) && (r[n] = e[n]);
|
|
4217
4217
|
return r;
|
|
4218
4218
|
};
|
|
4219
|
-
const
|
|
4220
|
-
const { formats: r } =
|
|
4219
|
+
const re = (e, t) => {
|
|
4220
|
+
const { formats: r } = z();
|
|
4221
4221
|
if (e in r && t in r[e])
|
|
4222
4222
|
return r[e][t];
|
|
4223
4223
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4224
|
-
}, Mi =
|
|
4224
|
+
}, Mi = we(
|
|
4225
4225
|
(e) => {
|
|
4226
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4226
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4227
4227
|
if (r == null)
|
|
4228
4228
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4229
|
-
return n && (i =
|
|
4229
|
+
return n && (i = re("number", n)), new Intl.NumberFormat(r, i);
|
|
4230
4230
|
}
|
|
4231
|
-
), Ni =
|
|
4231
|
+
), Ni = we(
|
|
4232
4232
|
(e) => {
|
|
4233
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4233
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4234
4234
|
if (r == null)
|
|
4235
4235
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4236
|
-
return n ? i =
|
|
4236
|
+
return n ? i = re("date", n) : Object.keys(i).length === 0 && (i = re("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4237
4237
|
}
|
|
4238
|
-
), Li =
|
|
4238
|
+
), Li = we(
|
|
4239
4239
|
(e) => {
|
|
4240
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4240
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4241
4241
|
if (r == null)
|
|
4242
4242
|
throw new Error(
|
|
4243
4243
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4244
4244
|
);
|
|
4245
|
-
return n ? i =
|
|
4245
|
+
return n ? i = re("time", n) : Object.keys(i).length === 0 && (i = re("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4246
4246
|
}
|
|
4247
4247
|
), Ri = (e = {}) => {
|
|
4248
4248
|
var t = e, {
|
|
4249
|
-
locale: r =
|
|
4250
|
-
} = t, n =
|
|
4249
|
+
locale: r = $()
|
|
4250
|
+
} = t, n = q(t, [
|
|
4251
4251
|
"locale"
|
|
4252
4252
|
]);
|
|
4253
4253
|
return Mi(tt({ locale: r }, n));
|
|
4254
4254
|
}, $i = (e = {}) => {
|
|
4255
4255
|
var t = e, {
|
|
4256
|
-
locale: r =
|
|
4257
|
-
} = t, n =
|
|
4256
|
+
locale: r = $()
|
|
4257
|
+
} = t, n = q(t, [
|
|
4258
4258
|
"locale"
|
|
4259
4259
|
]);
|
|
4260
4260
|
return Ni(tt({ locale: r }, n));
|
|
4261
4261
|
}, Gi = (e = {}) => {
|
|
4262
4262
|
var t = e, {
|
|
4263
|
-
locale: r =
|
|
4264
|
-
} = t, n =
|
|
4263
|
+
locale: r = $()
|
|
4264
|
+
} = t, n = q(t, [
|
|
4265
4265
|
"locale"
|
|
4266
4266
|
]);
|
|
4267
4267
|
return Li(tt({ locale: r }, n));
|
|
4268
|
-
}, Ui =
|
|
4268
|
+
}, Ui = we(
|
|
4269
4269
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4270
|
-
(e, t =
|
|
4271
|
-
ignoreTag:
|
|
4270
|
+
(e, t = $()) => new fi(e, t, z().formats, {
|
|
4271
|
+
ignoreTag: z().ignoreTag
|
|
4272
4272
|
})
|
|
4273
4273
|
), Di = (e, t = {}) => {
|
|
4274
4274
|
var r, n, i, o;
|
|
@@ -4276,7 +4276,7 @@ const ie = (e, t) => {
|
|
|
4276
4276
|
typeof e == "object" && (s = e, e = s.id);
|
|
4277
4277
|
const {
|
|
4278
4278
|
values: a,
|
|
4279
|
-
locale: l =
|
|
4279
|
+
locale: l = $(),
|
|
4280
4280
|
default: u
|
|
4281
4281
|
} = s;
|
|
4282
4282
|
if (l == null)
|
|
@@ -4285,7 +4285,7 @@ const ie = (e, t) => {
|
|
|
4285
4285
|
);
|
|
4286
4286
|
let h = sr(e, l);
|
|
4287
4287
|
if (!h)
|
|
4288
|
-
h = (o = (i = (n = (r =
|
|
4288
|
+
h = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4289
4289
|
else if (typeof h != "string")
|
|
4290
4290
|
return console.warn(
|
|
4291
4291
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4302,11 +4302,11 @@ const ie = (e, t) => {
|
|
|
4302
4302
|
);
|
|
4303
4303
|
}
|
|
4304
4304
|
return c;
|
|
4305
|
-
}, Fi = (e, t) => Gi(t).format(e), ji = (e, t) => $i(t).format(e), ki = (e, t) => Ri(t).format(e), Vi = (e, t =
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4305
|
+
}, Fi = (e, t) => Gi(t).format(e), ji = (e, t) => $i(t).format(e), ki = (e, t) => Ri(t).format(e), Vi = (e, t = $()) => sr(e, t), Xi = Q([J, se], () => Di);
|
|
4306
|
+
Q([J], () => Fi);
|
|
4307
|
+
Q([J], () => ji);
|
|
4308
|
+
Q([J], () => ki);
|
|
4309
|
+
Q([J, se], () => Vi);
|
|
4310
4310
|
window.emWidgets = { topic: nn };
|
|
4311
4311
|
const zi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4312
4312
|
function Wi(e, t) {
|
|
@@ -4336,9 +4336,9 @@ function Ht(e, t) {
|
|
|
4336
4336
|
ur(e, t);
|
|
4337
4337
|
}
|
|
4338
4338
|
function Ji(e) {
|
|
4339
|
-
|
|
4339
|
+
J.set(e);
|
|
4340
4340
|
}
|
|
4341
|
-
const
|
|
4341
|
+
const At = {
|
|
4342
4342
|
en: {
|
|
4343
4343
|
cancel: "Cancel",
|
|
4344
4344
|
confirm: "Confirm"
|
|
@@ -4385,21 +4385,21 @@ const Bt = {
|
|
|
4385
4385
|
}
|
|
4386
4386
|
};
|
|
4387
4387
|
function qi(e) {
|
|
4388
|
-
Sr(e, "svelte-
|
|
4388
|
+
Sr(e, "svelte-8g0wf4", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GeneralConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #ffffff)}.GeneralConfirmationTitle{margin-bottom:20px}.GeneralConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013e5c));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px);text-align:center}.GeneralConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22b04e), color-mix(in srgb, var(--emw--color-secondary, #e98b0f) 80%, black 20%), #22b04e);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GeneralConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013e5c) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GeneralConfirmationContainerMobile{padding:40px;max-width:330px}.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralCancelButton,.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GeneralConfirmationContent{font-size:var(--emw--font-size-medium, 18px);font-weight:300}.GeneralConfirmationControlArea{display:flex;gap:10px;direction:ltr;margin-top:30px}.GeneralConfirmationControlArea .GeneralCancelButton,.GeneralConfirmationControlArea .GeneralConfirmButton{flex:1;background:transparent;border:1px solid var(--emw--color-gray-100, #bfcbc3);color:var(--emw--color-gray-100, #bfcbc3);cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-small, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GeneralConfirmationControlArea .GeneralConfirmButton{background-color:var(--emw--color-primary, #22b04e);border:2px solid var(--emw--button-border-color, #063b17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #ffffff))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GeneralConfirmationMobileWrapper{border:none;padding:0}');
|
|
4389
4389
|
}
|
|
4390
|
-
const Yi = (e) => ({}),
|
|
4390
|
+
const Yi = (e) => ({}), Bt = (e) => ({});
|
|
4391
4391
|
function Ki(e) {
|
|
4392
4392
|
let t, r;
|
|
4393
4393
|
return {
|
|
4394
4394
|
c() {
|
|
4395
|
-
t = it("svg"), r = it("path"),
|
|
4395
|
+
t = it("svg"), r = it("path"), T(r, "stroke-linecap", "round"), T(r, "stroke-linejoin", "round"), T(r, "stroke-width", "2"), T(r, "d", "M6 18L18 6M6 6l12 12"), T(t, "class", "w-6 h-6"), T(t, "fill", "none"), T(t, "stroke", "currentColor"), T(t, "viewBox", "0 0 24 24"), T(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4396
4396
|
},
|
|
4397
4397
|
m(n, i) {
|
|
4398
|
-
|
|
4398
|
+
ne(n, t, i), B(t, r);
|
|
4399
4399
|
},
|
|
4400
|
-
p:
|
|
4400
|
+
p: N,
|
|
4401
4401
|
d(n) {
|
|
4402
|
-
n &&
|
|
4402
|
+
n && Z(t);
|
|
4403
4403
|
}
|
|
4404
4404
|
};
|
|
4405
4405
|
}
|
|
@@ -4407,24 +4407,24 @@ function Ct(e) {
|
|
|
4407
4407
|
let t, r, n;
|
|
4408
4408
|
return {
|
|
4409
4409
|
c() {
|
|
4410
|
-
t =
|
|
4410
|
+
t = I("div"), r = I("h2"), n = ie(
|
|
4411
4411
|
/*modaltitle*/
|
|
4412
4412
|
e[1]
|
|
4413
|
-
),
|
|
4413
|
+
), T(t, "class", "GeneralConfirmationTitle");
|
|
4414
4414
|
},
|
|
4415
4415
|
m(i, o) {
|
|
4416
|
-
|
|
4416
|
+
ne(i, t, o), B(t, r), B(r, n);
|
|
4417
4417
|
},
|
|
4418
4418
|
p(i, o) {
|
|
4419
4419
|
o & /*modaltitle*/
|
|
4420
|
-
2 &&
|
|
4420
|
+
2 && Ke(
|
|
4421
4421
|
n,
|
|
4422
4422
|
/*modaltitle*/
|
|
4423
4423
|
i[1]
|
|
4424
4424
|
);
|
|
4425
4425
|
},
|
|
4426
4426
|
d(i) {
|
|
4427
|
-
i &&
|
|
4427
|
+
i && Z(t);
|
|
4428
4428
|
}
|
|
4429
4429
|
};
|
|
4430
4430
|
}
|
|
@@ -4435,10 +4435,10 @@ function Pt(e) {
|
|
|
4435
4435
|
), n, i, o;
|
|
4436
4436
|
return {
|
|
4437
4437
|
c() {
|
|
4438
|
-
t =
|
|
4438
|
+
t = I("button"), n = ie(r), T(t, "class", "GeneralCancelButton");
|
|
4439
4439
|
},
|
|
4440
4440
|
m(s, a) {
|
|
4441
|
-
|
|
4441
|
+
ne(s, t, a), B(t, n), i || (o = Me(
|
|
4442
4442
|
t,
|
|
4443
4443
|
"click",
|
|
4444
4444
|
/*click_handler*/
|
|
@@ -4448,28 +4448,28 @@ function Pt(e) {
|
|
|
4448
4448
|
p(s, a) {
|
|
4449
4449
|
a & /*$_*/
|
|
4450
4450
|
16 && r !== (r = /*$_*/
|
|
4451
|
-
s[4]("cancel") + "") &&
|
|
4451
|
+
s[4]("cancel") + "") && Ke(n, r);
|
|
4452
4452
|
},
|
|
4453
4453
|
d(s) {
|
|
4454
|
-
s &&
|
|
4454
|
+
s && Z(t), i = !1, o();
|
|
4455
4455
|
}
|
|
4456
4456
|
};
|
|
4457
4457
|
}
|
|
4458
4458
|
function eo(e) {
|
|
4459
|
-
let t, r, n, i, o, s, a, l, u, h, c
|
|
4459
|
+
let t, r, n, i, o, s, a, l, u, h, c = (
|
|
4460
4460
|
/*$_*/
|
|
4461
4461
|
e[4]("confirm") + ""
|
|
4462
|
-
), m,
|
|
4463
|
-
const
|
|
4462
|
+
), f, m, y, d;
|
|
4463
|
+
const S = (
|
|
4464
4464
|
/*#slots*/
|
|
4465
4465
|
e[16].close
|
|
4466
|
-
),
|
|
4467
|
-
|
|
4466
|
+
), P = vr(
|
|
4467
|
+
S,
|
|
4468
4468
|
e,
|
|
4469
4469
|
/*$$scope*/
|
|
4470
4470
|
e[15],
|
|
4471
|
-
|
|
4472
|
-
),
|
|
4471
|
+
Bt
|
|
4472
|
+
), H = P || Ki();
|
|
4473
4473
|
let _ = (
|
|
4474
4474
|
/*modaltitle*/
|
|
4475
4475
|
e[1] && Ct(e)
|
|
@@ -4479,130 +4479,125 @@ function eo(e) {
|
|
|
4479
4479
|
);
|
|
4480
4480
|
return {
|
|
4481
4481
|
c() {
|
|
4482
|
-
t =
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
), l = ue(), u = M("div"), x && x.c(), h = ue(), c = M("button"), m = V(f), H(n, "class", "ModalCloseBtn"), H(n, "role", "button"), H(s, "class", "GeneralConfirmationContent"), H(c, "class", "GeneralConfirmButton"), H(u, "class", "GeneralConfirmationControlArea " + /*isMobile*/
|
|
4486
|
-
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")), H(r, "class", "GeneralConfirmationContainer " + /*isMobile*/
|
|
4487
|
-
(e[5] ? "GeneralConfirmationContainerMobile" : "")), H(t, "class", "GeneralConfirmationWrapper " + /*isMobile*/
|
|
4482
|
+
t = I("div"), r = I("div"), n = I("span"), H && H.c(), i = ue(), _ && _.c(), o = ue(), s = I("div"), a = ue(), l = I("div"), x && x.c(), u = ue(), h = I("button"), f = ie(c), T(n, "class", "ModalCloseBtn"), T(n, "role", "button"), T(s, "class", "GeneralConfirmationContent"), T(h, "class", "GeneralConfirmButton"), T(l, "class", "GeneralConfirmationControlArea " + /*isMobile*/
|
|
4483
|
+
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")), T(r, "class", "GeneralConfirmationContainer " + /*isMobile*/
|
|
4484
|
+
(e[5] ? "GeneralConfirmationContainerMobile" : "")), T(t, "class", "GeneralConfirmationWrapper " + /*isMobile*/
|
|
4488
4485
|
(e[5] ? "GeneralConfirmationMobileWrapper" : ""));
|
|
4489
4486
|
},
|
|
4490
|
-
m(v,
|
|
4491
|
-
|
|
4492
|
-
|
|
4487
|
+
m(v, A) {
|
|
4488
|
+
ne(v, t, A), B(t, r), B(r, n), H && H.m(n, null), B(r, i), _ && _.m(r, null), B(r, o), B(r, s), s.innerHTML = /*modaltext*/
|
|
4489
|
+
e[0], B(r, a), B(r, l), x && x.m(l, null), B(l, u), B(l, h), B(h, f), e[19](t), m = !0, y || (d = [
|
|
4490
|
+
Me(
|
|
4493
4491
|
n,
|
|
4494
4492
|
"click",
|
|
4495
4493
|
/*close*/
|
|
4496
4494
|
e[6]
|
|
4497
4495
|
),
|
|
4498
|
-
|
|
4499
|
-
|
|
4496
|
+
Me(
|
|
4497
|
+
h,
|
|
4500
4498
|
"click",
|
|
4501
4499
|
/*click_handler_1*/
|
|
4502
4500
|
e[18]
|
|
4503
4501
|
)
|
|
4504
|
-
],
|
|
4502
|
+
], y = !0);
|
|
4505
4503
|
},
|
|
4506
|
-
p(v, [
|
|
4507
|
-
|
|
4504
|
+
p(v, [A]) {
|
|
4505
|
+
P && P.p && (!m || A & /*$$scope*/
|
|
4508
4506
|
32768) && xr(
|
|
4509
|
-
|
|
4510
|
-
|
|
4507
|
+
P,
|
|
4508
|
+
S,
|
|
4511
4509
|
v,
|
|
4512
4510
|
/*$$scope*/
|
|
4513
4511
|
v[15],
|
|
4514
|
-
|
|
4515
|
-
|
|
4512
|
+
m ? _r(
|
|
4513
|
+
S,
|
|
4516
4514
|
/*$$scope*/
|
|
4517
4515
|
v[15],
|
|
4518
|
-
|
|
4516
|
+
A,
|
|
4519
4517
|
Yi
|
|
4520
4518
|
) : Er(
|
|
4521
4519
|
/*$$scope*/
|
|
4522
4520
|
v[15]
|
|
4523
4521
|
),
|
|
4524
|
-
|
|
4522
|
+
Bt
|
|
4525
4523
|
), /*modaltitle*/
|
|
4526
|
-
v[1] ? _ ? _.p(v,
|
|
4527
|
-
1) &&
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
),
|
|
4532
|
-
v[2] ? x ? x.p(v, P) : (x = Pt(v), x.c(), x.m(u, h)) : x && (x.d(1), x = null), (!p || P & /*$_*/
|
|
4533
|
-
16) && f !== (f = /*$_*/
|
|
4534
|
-
v[4]("confirm") + "") && be(m, f);
|
|
4524
|
+
v[1] ? _ ? _.p(v, A) : (_ = Ct(v), _.c(), _.m(r, o)) : _ && (_.d(1), _ = null), (!m || A & /*modaltext*/
|
|
4525
|
+
1) && (s.innerHTML = /*modaltext*/
|
|
4526
|
+
v[0]), /*hascancelbutton*/
|
|
4527
|
+
v[2] ? x ? x.p(v, A) : (x = Pt(v), x.c(), x.m(l, u)) : x && (x.d(1), x = null), (!m || A & /*$_*/
|
|
4528
|
+
16) && c !== (c = /*$_*/
|
|
4529
|
+
v[4]("confirm") + "") && Ke(f, c);
|
|
4535
4530
|
},
|
|
4536
4531
|
i(v) {
|
|
4537
|
-
|
|
4532
|
+
m || (Lt(H, v), m = !0);
|
|
4538
4533
|
},
|
|
4539
4534
|
o(v) {
|
|
4540
|
-
Lr(
|
|
4535
|
+
Lr(H, v), m = !1;
|
|
4541
4536
|
},
|
|
4542
4537
|
d(v) {
|
|
4543
|
-
v &&
|
|
4538
|
+
v && Z(t), H && H.d(v), _ && _.d(), x && x.d(), e[19](null), y = !1, W(d);
|
|
4544
4539
|
}
|
|
4545
4540
|
};
|
|
4546
4541
|
}
|
|
4547
4542
|
function to(e, t, r) {
|
|
4548
4543
|
let n;
|
|
4549
|
-
yr(e, Xi, (
|
|
4550
|
-
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modaltitle: a = "" } = t, { hascancelbutton: l = !1 } = t, { modalconfirmevent: u = {} } = t, { modalcancelevent: h = {} } = t, { lang: c = "en" } = t, { clientstyling: f = "" } = t, { clientstylingurl: m = "" } = t, { translationurl:
|
|
4551
|
-
const
|
|
4544
|
+
yr(e, Xi, (b) => r(4, n = b));
|
|
4545
|
+
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modaltitle: a = "" } = t, { hascancelbutton: l = !1 } = t, { modalconfirmevent: u = {} } = t, { modalcancelevent: h = {} } = t, { lang: c = "en" } = t, { clientstyling: f = "" } = t, { clientstylingurl: m = "" } = t, { translationurl: y = "" } = t, { mbsource: d } = t, S, P = window.navigator.userAgent, H = zi(P) !== "PC";
|
|
4546
|
+
const _ = () => {
|
|
4552
4547
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4553
|
-
},
|
|
4554
|
-
|
|
4555
|
-
},
|
|
4556
|
-
fetch(
|
|
4557
|
-
Object.keys(
|
|
4558
|
-
Ht(rt,
|
|
4548
|
+
}, x = (b) => {
|
|
4549
|
+
b === "confirm" && u && window.postMessage(u, window.location.href), b === "cancel" && h && window.postMessage(h, window.location.href), _();
|
|
4550
|
+
}, v = () => {
|
|
4551
|
+
fetch(y).then((G) => G.json()).then((G) => {
|
|
4552
|
+
Object.keys(G).forEach((rt) => {
|
|
4553
|
+
Ht(rt, G[rt]);
|
|
4559
4554
|
});
|
|
4560
|
-
}).catch((
|
|
4561
|
-
console.log(
|
|
4555
|
+
}).catch((G) => {
|
|
4556
|
+
console.log(G);
|
|
4562
4557
|
});
|
|
4563
4558
|
};
|
|
4564
|
-
Object.keys(
|
|
4565
|
-
Ht(
|
|
4559
|
+
Object.keys(At).forEach((b) => {
|
|
4560
|
+
Ht(b, At[b]);
|
|
4566
4561
|
});
|
|
4567
|
-
const
|
|
4562
|
+
const A = () => {
|
|
4568
4563
|
Ji(c);
|
|
4569
4564
|
};
|
|
4570
4565
|
Cr(() => () => {
|
|
4571
4566
|
});
|
|
4572
|
-
const
|
|
4573
|
-
function dr(
|
|
4574
|
-
|
|
4575
|
-
S =
|
|
4567
|
+
const ae = () => x("cancel"), pr = () => x("confirm");
|
|
4568
|
+
function dr(b) {
|
|
4569
|
+
Ne[b ? "unshift" : "push"](() => {
|
|
4570
|
+
S = b, r(3, S);
|
|
4576
4571
|
});
|
|
4577
4572
|
}
|
|
4578
|
-
return e.$$set = (
|
|
4579
|
-
"modaltext" in
|
|
4573
|
+
return e.$$set = (b) => {
|
|
4574
|
+
"modaltext" in b && r(0, s = b.modaltext), "modaltitle" in b && r(1, a = b.modaltitle), "hascancelbutton" in b && r(2, l = b.hascancelbutton), "modalconfirmevent" in b && r(8, u = b.modalconfirmevent), "modalcancelevent" in b && r(9, h = b.modalcancelevent), "lang" in b && r(10, c = b.lang), "clientstyling" in b && r(11, f = b.clientstyling), "clientstylingurl" in b && r(12, m = b.clientstylingurl), "translationurl" in b && r(13, y = b.translationurl), "mbsource" in b && r(14, d = b.mbsource), "$$scope" in b && r(15, o = b.$$scope);
|
|
4580
4575
|
}, e.$$.update = () => {
|
|
4581
4576
|
e.$$.dirty & /*modaltext, lang*/
|
|
4582
|
-
1025 && s && c &&
|
|
4577
|
+
1025 && s && c && A(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4583
4578
|
2056 && f && S && Wi(S, f), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4584
4579
|
4104 && m && S && Zi(S, m), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4585
4580
|
16392 && d && S && Qi(S, `${d}.Style`), e.$$.dirty & /*translationurl*/
|
|
4586
|
-
8192 &&
|
|
4581
|
+
8192 && y && v();
|
|
4587
4582
|
}, [
|
|
4588
4583
|
s,
|
|
4589
4584
|
a,
|
|
4590
4585
|
l,
|
|
4591
4586
|
S,
|
|
4592
4587
|
n,
|
|
4593
|
-
|
|
4594
|
-
w,
|
|
4588
|
+
H,
|
|
4595
4589
|
_,
|
|
4590
|
+
x,
|
|
4596
4591
|
u,
|
|
4597
4592
|
h,
|
|
4598
4593
|
c,
|
|
4599
4594
|
f,
|
|
4600
4595
|
m,
|
|
4601
|
-
|
|
4596
|
+
y,
|
|
4602
4597
|
d,
|
|
4603
4598
|
o,
|
|
4604
4599
|
i,
|
|
4605
|
-
|
|
4600
|
+
ae,
|
|
4606
4601
|
pr,
|
|
4607
4602
|
dr
|
|
4608
4603
|
];
|
|
@@ -4697,12 +4692,12 @@ const co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4697
4692
|
default: mr
|
|
4698
4693
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4699
4694
|
export {
|
|
4700
|
-
|
|
4695
|
+
J as $,
|
|
4701
4696
|
ao as A,
|
|
4702
|
-
|
|
4703
|
-
|
|
4697
|
+
Me as B,
|
|
4698
|
+
ie as C,
|
|
4704
4699
|
no as D,
|
|
4705
|
-
|
|
4700
|
+
Re as E,
|
|
4706
4701
|
it as F,
|
|
4707
4702
|
oo as G,
|
|
4708
4703
|
Xi as H,
|
|
@@ -4715,26 +4710,26 @@ export {
|
|
|
4715
4710
|
Dr as b,
|
|
4716
4711
|
ho as c,
|
|
4717
4712
|
Sr as d,
|
|
4718
|
-
|
|
4713
|
+
Z as e,
|
|
4719
4714
|
O as f,
|
|
4720
4715
|
kr as g,
|
|
4721
|
-
|
|
4716
|
+
ne as h,
|
|
4722
4717
|
Ur as i,
|
|
4723
|
-
|
|
4718
|
+
I as j,
|
|
4724
4719
|
yr as k,
|
|
4725
4720
|
zi as l,
|
|
4726
4721
|
uo as m,
|
|
4727
|
-
|
|
4722
|
+
N as n,
|
|
4728
4723
|
Cr as o,
|
|
4729
|
-
|
|
4724
|
+
Ne as p,
|
|
4730
4725
|
B as q,
|
|
4731
4726
|
ue as r,
|
|
4732
4727
|
It as s,
|
|
4733
4728
|
io as t,
|
|
4734
4729
|
so as u,
|
|
4735
|
-
|
|
4730
|
+
T as v,
|
|
4736
4731
|
lo as w,
|
|
4737
4732
|
ro as x,
|
|
4738
|
-
|
|
4739
|
-
|
|
4733
|
+
W as y,
|
|
4734
|
+
Ke as z
|
|
4740
4735
|
};
|