@everymatrix/general-player-sms-verification-form 1.44.0 → 1.45.2

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.
@@ -0,0 +1,4232 @@
1
+ var Kt = Object.defineProperty, er = Object.defineProperties;
2
+ var tr = Object.getOwnPropertyDescriptors;
3
+ var tt = Object.getOwnPropertySymbols;
4
+ var rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable;
5
+ var Ce = (e, t, r) => t in e ? Kt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
6
+ for (var r in t || (t = {}))
7
+ rr.call(t, r) && Ce(e, r, t[r]);
8
+ if (tt)
9
+ for (var r of tt(t))
10
+ nr.call(t, r) && Ce(e, r, t[r]);
11
+ return e;
12
+ }, nt = (e, t) => er(e, tr(t));
13
+ var $ = (e, t, r) => Ce(e, typeof t != "symbol" ? t + "" : t, r);
14
+ var ge = (e, t, r) => new Promise((n, i) => {
15
+ var o = (l) => {
16
+ try {
17
+ a(r.next(l));
18
+ } catch (u) {
19
+ i(u);
20
+ }
21
+ }, s = (l) => {
22
+ try {
23
+ a(r.throw(l));
24
+ } catch (u) {
25
+ i(u);
26
+ }
27
+ }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
28
+ a((r = r.apply(e, t)).next());
29
+ });
30
+ function U() {
31
+ }
32
+ function Ht(e) {
33
+ return e();
34
+ }
35
+ function it() {
36
+ return /* @__PURE__ */ Object.create(null);
37
+ }
38
+ function se(e) {
39
+ e.forEach(Ht);
40
+ }
41
+ function Qe(e) {
42
+ return typeof e == "function";
43
+ }
44
+ function At(e, t) {
45
+ return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
+ }
47
+ function ir(e) {
48
+ return Object.keys(e).length === 0;
49
+ }
50
+ function Bt(e, ...t) {
51
+ if (e == null) {
52
+ for (const n of t)
53
+ n(void 0);
54
+ return U;
55
+ }
56
+ const r = e.subscribe(...t);
57
+ return r.unsubscribe ? () => r.unsubscribe() : r;
58
+ }
59
+ function or(e, t, r) {
60
+ e.$$.on_destroy.push(Bt(t, r));
61
+ }
62
+ function E(e, t) {
63
+ e.appendChild(t);
64
+ }
65
+ function sr(e, t, r) {
66
+ const n = ar(e);
67
+ if (!n.getElementById(t)) {
68
+ const i = M("style");
69
+ i.id = t, i.textContent = r, ur(n, i);
70
+ }
71
+ }
72
+ function ar(e) {
73
+ if (!e) return document;
74
+ const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
75
+ return t && /** @type {ShadowRoot} */
76
+ t.host ? (
77
+ /** @type {ShadowRoot} */
78
+ t
79
+ ) : e.ownerDocument;
80
+ }
81
+ function ur(e, t) {
82
+ return E(
83
+ /** @type {Document} */
84
+ e.head || e,
85
+ t
86
+ ), t.sheet;
87
+ }
88
+ function Z(e, t, r) {
89
+ e.insertBefore(t, r || null);
90
+ }
91
+ function j(e) {
92
+ e.parentNode && e.parentNode.removeChild(e);
93
+ }
94
+ function M(e) {
95
+ return document.createElement(e);
96
+ }
97
+ function L(e) {
98
+ return document.createTextNode(e);
99
+ }
100
+ function z() {
101
+ return L(" ");
102
+ }
103
+ function ve(e, t, r, n) {
104
+ return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
105
+ }
106
+ function A(e, t, r) {
107
+ r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
108
+ }
109
+ function lr(e) {
110
+ return Array.from(e.childNodes);
111
+ }
112
+ function G(e, t) {
113
+ t = "" + t, e.data !== t && (e.data = /** @type {string} */
114
+ t);
115
+ }
116
+ function ot(e, t) {
117
+ e.value = t == null ? "" : t;
118
+ }
119
+ function hr(e) {
120
+ const t = {};
121
+ return e.childNodes.forEach(
122
+ /** @param {Element} node */
123
+ (r) => {
124
+ t[r.slot || "default"] = !0;
125
+ }
126
+ ), t;
127
+ }
128
+ let fe;
129
+ function ce(e) {
130
+ fe = e;
131
+ }
132
+ function cr() {
133
+ if (!fe) throw new Error("Function called outside component initialization");
134
+ return fe;
135
+ }
136
+ function fr(e) {
137
+ cr().$$.on_mount.push(e);
138
+ }
139
+ const ee = [], Ue = [];
140
+ let te = [];
141
+ const st = [], dr = /* @__PURE__ */ Promise.resolve();
142
+ let De = !1;
143
+ function mr() {
144
+ De || (De = !0, dr.then(F));
145
+ }
146
+ function Fe(e) {
147
+ te.push(e);
148
+ }
149
+ const Ne = /* @__PURE__ */ new Set();
150
+ let Y = 0;
151
+ function F() {
152
+ if (Y !== 0)
153
+ return;
154
+ const e = fe;
155
+ do {
156
+ try {
157
+ for (; Y < ee.length; ) {
158
+ const t = ee[Y];
159
+ Y++, ce(t), pr(t.$$);
160
+ }
161
+ } catch (t) {
162
+ throw ee.length = 0, Y = 0, t;
163
+ }
164
+ for (ce(null), ee.length = 0, Y = 0; Ue.length; ) Ue.pop()();
165
+ for (let t = 0; t < te.length; t += 1) {
166
+ const r = te[t];
167
+ Ne.has(r) || (Ne.add(r), r());
168
+ }
169
+ te.length = 0;
170
+ } while (ee.length);
171
+ for (; st.length; )
172
+ st.pop()();
173
+ De = !1, Ne.clear(), ce(e);
174
+ }
175
+ function pr(e) {
176
+ if (e.fragment !== null) {
177
+ e.update(), se(e.before_update);
178
+ const t = e.dirty;
179
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Fe);
180
+ }
181
+ }
182
+ function br(e) {
183
+ const t = [], r = [];
184
+ te.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), te = t;
185
+ }
186
+ const gr = /* @__PURE__ */ new Set();
187
+ function vr(e, t) {
188
+ e && e.i && (gr.delete(e), e.i(t));
189
+ }
190
+ function yr(e, t, r) {
191
+ const { fragment: n, after_update: i } = e.$$;
192
+ n && n.m(t, r), Fe(() => {
193
+ const o = e.$$.on_mount.map(Ht).filter(Qe);
194
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
195
+ }), i.forEach(Fe);
196
+ }
197
+ function Er(e, t) {
198
+ const r = e.$$;
199
+ r.fragment !== null && (br(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
200
+ }
201
+ function xr(e, t) {
202
+ e.$$.dirty[0] === -1 && (ee.push(e), mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
203
+ }
204
+ function _r(e, t, r, n, i, o, s = null, a = [-1]) {
205
+ const l = fe;
206
+ ce(e);
207
+ const u = e.$$ = {
208
+ fragment: null,
209
+ ctx: [],
210
+ // state
211
+ props: o,
212
+ update: U,
213
+ not_equal: i,
214
+ bound: it(),
215
+ // lifecycle
216
+ on_mount: [],
217
+ on_destroy: [],
218
+ on_disconnect: [],
219
+ before_update: [],
220
+ after_update: [],
221
+ context: new Map(t.context || (l ? l.$$.context : [])),
222
+ // everything else
223
+ callbacks: it(),
224
+ dirty: a,
225
+ skip_bound: !1,
226
+ root: t.target || l.$$.root
227
+ };
228
+ s && s(u.root);
229
+ let h = !1;
230
+ if (u.ctx = r ? r(e, t.props || {}, (f, d, ...b) => {
231
+ const v = b.length ? b[0] : d;
232
+ return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), h && xr(e, f)), d;
233
+ }) : [], u.update(), h = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
234
+ if (t.hydrate) {
235
+ const f = lr(t.target);
236
+ u.fragment && u.fragment.l(f), f.forEach(j);
237
+ } else
238
+ u.fragment && u.fragment.c();
239
+ t.intro && vr(e.$$.fragment), yr(e, t.target, t.anchor), F();
240
+ }
241
+ ce(l);
242
+ }
243
+ let wt;
244
+ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
245
+ constructor(t, r, n) {
246
+ super();
247
+ /** The Svelte component constructor */
248
+ $(this, "$$ctor");
249
+ /** Slots */
250
+ $(this, "$$s");
251
+ /** The Svelte component instance */
252
+ $(this, "$$c");
253
+ /** Whether or not the custom element is connected */
254
+ $(this, "$$cn", !1);
255
+ /** Component props data */
256
+ $(this, "$$d", {});
257
+ /** `true` if currently in the process of reflecting component props back to attributes */
258
+ $(this, "$$r", !1);
259
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
260
+ $(this, "$$p_d", {});
261
+ /** @type {Record<string, Function[]>} Event listeners */
262
+ $(this, "$$l", {});
263
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
264
+ $(this, "$$l_u", /* @__PURE__ */ new Map());
265
+ this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
266
+ }
267
+ addEventListener(t, r, n) {
268
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
269
+ const i = this.$$c.$on(t, r);
270
+ this.$$l_u.set(r, i);
271
+ }
272
+ super.addEventListener(t, r, n);
273
+ }
274
+ removeEventListener(t, r, n) {
275
+ if (super.removeEventListener(t, r, n), this.$$c) {
276
+ const i = this.$$l_u.get(r);
277
+ i && (i(), this.$$l_u.delete(r));
278
+ }
279
+ }
280
+ connectedCallback() {
281
+ return ge(this, null, function* () {
282
+ if (this.$$cn = !0, !this.$$c) {
283
+ let t = function(o) {
284
+ return () => {
285
+ let s;
286
+ return {
287
+ c: function() {
288
+ s = M("slot"), o !== "default" && A(s, "name", o);
289
+ },
290
+ /**
291
+ * @param {HTMLElement} target
292
+ * @param {HTMLElement} [anchor]
293
+ */
294
+ m: function(u, h) {
295
+ Z(u, s, h);
296
+ },
297
+ d: function(u) {
298
+ u && j(s);
299
+ }
300
+ };
301
+ };
302
+ };
303
+ if (yield Promise.resolve(), !this.$$cn || this.$$c)
304
+ return;
305
+ const r = {}, n = hr(this);
306
+ for (const o of this.$$s)
307
+ o in n && (r[o] = [t(o)]);
308
+ for (const o of this.attributes) {
309
+ const s = this.$$g_p(o.name);
310
+ s in this.$$d || (this.$$d[s] = Ee(s, o.value, this.$$p_d, "toProp"));
311
+ }
312
+ for (const o in this.$$p_d)
313
+ !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
314
+ this.$$c = new this.$$ctor({
315
+ target: this.shadowRoot || this,
316
+ props: nt(rt({}, this.$$d), {
317
+ $$slots: r,
318
+ $$scope: {
319
+ ctx: []
320
+ }
321
+ })
322
+ });
323
+ const i = () => {
324
+ this.$$r = !0;
325
+ for (const o in this.$$p_d)
326
+ if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
327
+ const s = Ee(
328
+ o,
329
+ this.$$d[o],
330
+ this.$$p_d,
331
+ "toAttribute"
332
+ );
333
+ s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
334
+ }
335
+ this.$$r = !1;
336
+ };
337
+ this.$$c.$$.after_update.push(i), i();
338
+ for (const o in this.$$l)
339
+ for (const s of this.$$l[o]) {
340
+ const a = this.$$c.$on(o, s);
341
+ this.$$l_u.set(s, a);
342
+ }
343
+ this.$$l = {};
344
+ }
345
+ });
346
+ }
347
+ // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
348
+ // and setting attributes through setAttribute etc, this is helpful
349
+ attributeChangedCallback(t, r, n) {
350
+ var i;
351
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ee(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
352
+ }
353
+ disconnectedCallback() {
354
+ this.$$cn = !1, Promise.resolve().then(() => {
355
+ !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
356
+ });
357
+ }
358
+ $$g_p(t) {
359
+ return Object.keys(this.$$p_d).find(
360
+ (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
361
+ ) || t;
362
+ }
363
+ });
364
+ function Ee(e, t, r, n) {
365
+ var o;
366
+ const i = (o = r[e]) == null ? void 0 : o.type;
367
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
368
+ return t;
369
+ if (n === "toAttribute")
370
+ switch (i) {
371
+ case "Object":
372
+ case "Array":
373
+ return t == null ? null : JSON.stringify(t);
374
+ case "Boolean":
375
+ return t ? "" : null;
376
+ case "Number":
377
+ return t == null ? null : t;
378
+ default:
379
+ return t;
380
+ }
381
+ else
382
+ switch (i) {
383
+ case "Object":
384
+ case "Array":
385
+ return t && JSON.parse(t);
386
+ case "Boolean":
387
+ return t;
388
+ case "Number":
389
+ return t != null ? +t : t;
390
+ default:
391
+ return t;
392
+ }
393
+ }
394
+ function Sr(e, t, r, n, i, o) {
395
+ let s = class extends wt {
396
+ constructor() {
397
+ super(e, r, i), this.$$p_d = t;
398
+ }
399
+ static get observedAttributes() {
400
+ return Object.keys(t).map(
401
+ (a) => (t[a].attribute || a).toLowerCase()
402
+ );
403
+ }
404
+ };
405
+ return Object.keys(t).forEach((a) => {
406
+ Object.defineProperty(s.prototype, a, {
407
+ get() {
408
+ return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
409
+ },
410
+ set(l) {
411
+ var u;
412
+ l = Ee(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
413
+ }
414
+ });
415
+ }), n.forEach((a) => {
416
+ Object.defineProperty(s.prototype, a, {
417
+ get() {
418
+ var l;
419
+ return (l = this.$$c) == null ? void 0 : l[a];
420
+ }
421
+ });
422
+ }), e.element = /** @type {any} */
423
+ s, s;
424
+ }
425
+ class Tr {
426
+ constructor() {
427
+ /**
428
+ * ### PRIVATE API
429
+ *
430
+ * Do not use, may change at any time
431
+ *
432
+ * @type {any}
433
+ */
434
+ $(this, "$$");
435
+ /**
436
+ * ### PRIVATE API
437
+ *
438
+ * Do not use, may change at any time
439
+ *
440
+ * @type {any}
441
+ */
442
+ $(this, "$$set");
443
+ }
444
+ /** @returns {void} */
445
+ $destroy() {
446
+ Er(this, 1), this.$destroy = U;
447
+ }
448
+ /**
449
+ * @template {Extract<keyof Events, string>} K
450
+ * @param {K} type
451
+ * @param {((e: Events[K]) => void) | null | undefined} callback
452
+ * @returns {() => void}
453
+ */
454
+ $on(t, r) {
455
+ if (!Qe(r))
456
+ return U;
457
+ const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
458
+ return n.push(r), () => {
459
+ const i = n.indexOf(r);
460
+ i !== -1 && n.splice(i, 1);
461
+ };
462
+ }
463
+ /**
464
+ * @param {Partial<Props>} props
465
+ * @returns {void}
466
+ */
467
+ $set(t) {
468
+ this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
469
+ }
470
+ }
471
+ const Hr = "4";
472
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hr);
473
+ const K = [];
474
+ function Ar(e, t) {
475
+ return {
476
+ subscribe: He(e, t).subscribe
477
+ };
478
+ }
479
+ function He(e, t = U) {
480
+ let r;
481
+ const n = /* @__PURE__ */ new Set();
482
+ function i(a) {
483
+ if (At(e, a) && (e = a, r)) {
484
+ const l = !K.length;
485
+ for (const u of n)
486
+ u[1](), K.push(u, e);
487
+ if (l) {
488
+ for (let u = 0; u < K.length; u += 2)
489
+ K[u][0](K[u + 1]);
490
+ K.length = 0;
491
+ }
492
+ }
493
+ }
494
+ function o(a) {
495
+ i(a(e));
496
+ }
497
+ function s(a, l = U) {
498
+ const u = [a, l];
499
+ return n.add(u), n.size === 1 && (r = t(i, o) || U), a(e), () => {
500
+ n.delete(u), n.size === 0 && r && (r(), r = null);
501
+ };
502
+ }
503
+ return { set: i, update: o, subscribe: s };
504
+ }
505
+ function ae(e, t, r) {
506
+ const n = !Array.isArray(e), i = n ? [e] : e;
507
+ if (!i.every(Boolean))
508
+ throw new Error("derived() expects stores as input, got a falsy value");
509
+ const o = t.length < 2;
510
+ return Ar(r, (s, a) => {
511
+ let l = !1;
512
+ const u = [];
513
+ let h = 0, f = U;
514
+ const d = () => {
515
+ if (h)
516
+ return;
517
+ f();
518
+ const v = t(n ? u[0] : u, s, a);
519
+ o ? s(v) : f = Qe(v) ? v : U;
520
+ }, b = i.map(
521
+ (v, _) => Bt(
522
+ v,
523
+ (S) => {
524
+ u[_] = S, h &= ~(1 << _), l && d();
525
+ },
526
+ () => {
527
+ h |= 1 << _;
528
+ }
529
+ )
530
+ );
531
+ return l = !0, d(), function() {
532
+ se(b), f(), l = !1;
533
+ };
534
+ });
535
+ }
536
+ function Br(e) {
537
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
538
+ }
539
+ var wr = function(t) {
540
+ return Pr(t) && !Cr(t);
541
+ };
542
+ function Pr(e) {
543
+ return !!e && typeof e == "object";
544
+ }
545
+ function Cr(e) {
546
+ var t = Object.prototype.toString.call(e);
547
+ return t === "[object RegExp]" || t === "[object Date]" || Or(e);
548
+ }
549
+ var Nr = typeof Symbol == "function" && Symbol.for, Ir = Nr ? Symbol.for("react.element") : 60103;
550
+ function Or(e) {
551
+ return e.$$typeof === Ir;
552
+ }
553
+ function Mr(e) {
554
+ return Array.isArray(e) ? [] : {};
555
+ }
556
+ function de(e, t) {
557
+ return t.clone !== !1 && t.isMergeableObject(e) ? re(Mr(e), e, t) : e;
558
+ }
559
+ function Lr(e, t, r) {
560
+ return e.concat(t).map(function(n) {
561
+ return de(n, r);
562
+ });
563
+ }
564
+ function Rr(e, t) {
565
+ if (!t.customMerge)
566
+ return re;
567
+ var r = t.customMerge(e);
568
+ return typeof r == "function" ? r : re;
569
+ }
570
+ function $r(e) {
571
+ return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
572
+ return Object.propertyIsEnumerable.call(e, t);
573
+ }) : [];
574
+ }
575
+ function at(e) {
576
+ return Object.keys(e).concat($r(e));
577
+ }
578
+ function Pt(e, t) {
579
+ try {
580
+ return t in e;
581
+ } catch (r) {
582
+ return !1;
583
+ }
584
+ }
585
+ function Ur(e, t) {
586
+ return Pt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
587
+ }
588
+ function Dr(e, t, r) {
589
+ var n = {};
590
+ return r.isMergeableObject(e) && at(e).forEach(function(i) {
591
+ n[i] = de(e[i], r);
592
+ }), at(t).forEach(function(i) {
593
+ Ur(e, i) || (Pt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Rr(i, r)(e[i], t[i], r) : n[i] = de(t[i], r));
594
+ }), n;
595
+ }
596
+ function re(e, t, r) {
597
+ r = r || {}, r.arrayMerge = r.arrayMerge || Lr, r.isMergeableObject = r.isMergeableObject || wr, r.cloneUnlessOtherwiseSpecified = de;
598
+ var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
599
+ return o ? n ? r.arrayMerge(e, t, r) : Dr(e, t, r) : de(t, r);
600
+ }
601
+ re.all = function(t, r) {
602
+ if (!Array.isArray(t))
603
+ throw new Error("first argument should be an array");
604
+ return t.reduce(function(n, i) {
605
+ return re(n, i, r);
606
+ }, {});
607
+ };
608
+ var Fr = re, Gr = Fr;
609
+ const kr = /* @__PURE__ */ Br(Gr);
610
+ var Ge = function(e, t) {
611
+ return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
612
+ r.__proto__ = n;
613
+ } || function(r, n) {
614
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
615
+ }, Ge(e, t);
616
+ };
617
+ function Ae(e, t) {
618
+ if (typeof t != "function" && t !== null)
619
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
620
+ Ge(e, t);
621
+ function r() {
622
+ this.constructor = e;
623
+ }
624
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
625
+ }
626
+ var g = function() {
627
+ return g = Object.assign || function(t) {
628
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
629
+ r = arguments[n];
630
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
631
+ }
632
+ return t;
633
+ }, g.apply(this, arguments);
634
+ };
635
+ function jr(e, t) {
636
+ var r = {};
637
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
638
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
639
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
640
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
641
+ return r;
642
+ }
643
+ function Ie(e, t, r) {
644
+ if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
645
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
646
+ return e.concat(o || Array.prototype.slice.call(t));
647
+ }
648
+ var m;
649
+ (function(e) {
650
+ 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";
651
+ })(m || (m = {}));
652
+ var x;
653
+ (function(e) {
654
+ 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";
655
+ })(x || (x = {}));
656
+ var ne;
657
+ (function(e) {
658
+ e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
659
+ })(ne || (ne = {}));
660
+ function ut(e) {
661
+ return e.type === x.literal;
662
+ }
663
+ function Vr(e) {
664
+ return e.type === x.argument;
665
+ }
666
+ function Ct(e) {
667
+ return e.type === x.number;
668
+ }
669
+ function Nt(e) {
670
+ return e.type === x.date;
671
+ }
672
+ function It(e) {
673
+ return e.type === x.time;
674
+ }
675
+ function Ot(e) {
676
+ return e.type === x.select;
677
+ }
678
+ function Mt(e) {
679
+ return e.type === x.plural;
680
+ }
681
+ function Xr(e) {
682
+ return e.type === x.pound;
683
+ }
684
+ function Lt(e) {
685
+ return e.type === x.tag;
686
+ }
687
+ function Rt(e) {
688
+ return !!(e && typeof e == "object" && e.type === ne.number);
689
+ }
690
+ function ke(e) {
691
+ return !!(e && typeof e == "object" && e.type === ne.dateTime);
692
+ }
693
+ var $t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, zr = /(?:[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;
694
+ function Wr(e) {
695
+ var t = {};
696
+ return e.replace(zr, function(r) {
697
+ var n = r.length;
698
+ switch (r[0]) {
699
+ case "G":
700
+ t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
701
+ break;
702
+ case "y":
703
+ t.year = n === 2 ? "2-digit" : "numeric";
704
+ break;
705
+ case "Y":
706
+ case "u":
707
+ case "U":
708
+ case "r":
709
+ throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
710
+ case "q":
711
+ case "Q":
712
+ throw new RangeError("`q/Q` (quarter) patterns are not supported");
713
+ case "M":
714
+ case "L":
715
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
716
+ break;
717
+ case "w":
718
+ case "W":
719
+ throw new RangeError("`w/W` (week) patterns are not supported");
720
+ case "d":
721
+ t.day = ["numeric", "2-digit"][n - 1];
722
+ break;
723
+ case "D":
724
+ case "F":
725
+ case "g":
726
+ throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
727
+ case "E":
728
+ t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
729
+ break;
730
+ case "e":
731
+ if (n < 4)
732
+ throw new RangeError("`e..eee` (weekday) patterns are not supported");
733
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
734
+ break;
735
+ case "c":
736
+ if (n < 4)
737
+ throw new RangeError("`c..ccc` (weekday) patterns are not supported");
738
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
739
+ break;
740
+ case "a":
741
+ t.hour12 = !0;
742
+ break;
743
+ case "b":
744
+ case "B":
745
+ throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
746
+ case "h":
747
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
748
+ break;
749
+ case "H":
750
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
751
+ break;
752
+ case "K":
753
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
754
+ break;
755
+ case "k":
756
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
757
+ break;
758
+ case "j":
759
+ case "J":
760
+ case "C":
761
+ throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
762
+ case "m":
763
+ t.minute = ["numeric", "2-digit"][n - 1];
764
+ break;
765
+ case "s":
766
+ t.second = ["numeric", "2-digit"][n - 1];
767
+ break;
768
+ case "S":
769
+ case "A":
770
+ throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
771
+ case "z":
772
+ t.timeZoneName = n < 4 ? "short" : "long";
773
+ break;
774
+ case "Z":
775
+ case "O":
776
+ case "v":
777
+ case "V":
778
+ case "X":
779
+ case "x":
780
+ throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
781
+ }
782
+ return "";
783
+ }), t;
784
+ }
785
+ var Zr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
786
+ function Jr(e) {
787
+ if (e.length === 0)
788
+ throw new Error("Number skeleton cannot be empty");
789
+ for (var t = e.split(Zr).filter(function(d) {
790
+ return d.length > 0;
791
+ }), r = [], n = 0, i = t; n < i.length; n++) {
792
+ var o = i[n], s = o.split("/");
793
+ if (s.length === 0)
794
+ throw new Error("Invalid number skeleton");
795
+ for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
796
+ var f = h[u];
797
+ if (f.length === 0)
798
+ throw new Error("Invalid number skeleton");
799
+ }
800
+ r.push({ stem: a, options: l });
801
+ }
802
+ return r;
803
+ }
804
+ function Qr(e) {
805
+ return e.replace(/^(.*?)-/, "");
806
+ }
807
+ var lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ut = /^(@+)?(\+|#+)?[rs]?$/g, qr = /(\*)(0+)|(#+)(0+)|(0+)/g, Dt = /^(0+)$/;
808
+ function ht(e) {
809
+ var t = {};
810
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ut, function(r, n, i) {
811
+ return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
812
+ }), t;
813
+ }
814
+ function Ft(e) {
815
+ switch (e) {
816
+ case "sign-auto":
817
+ return {
818
+ signDisplay: "auto"
819
+ };
820
+ case "sign-accounting":
821
+ case "()":
822
+ return {
823
+ currencySign: "accounting"
824
+ };
825
+ case "sign-always":
826
+ case "+!":
827
+ return {
828
+ signDisplay: "always"
829
+ };
830
+ case "sign-accounting-always":
831
+ case "()!":
832
+ return {
833
+ signDisplay: "always",
834
+ currencySign: "accounting"
835
+ };
836
+ case "sign-except-zero":
837
+ case "+?":
838
+ return {
839
+ signDisplay: "exceptZero"
840
+ };
841
+ case "sign-accounting-except-zero":
842
+ case "()?":
843
+ return {
844
+ signDisplay: "exceptZero",
845
+ currencySign: "accounting"
846
+ };
847
+ case "sign-never":
848
+ case "+_":
849
+ return {
850
+ signDisplay: "never"
851
+ };
852
+ }
853
+ }
854
+ function Yr(e) {
855
+ var t;
856
+ if (e[0] === "E" && e[1] === "E" ? (t = {
857
+ notation: "engineering"
858
+ }, e = e.slice(2)) : e[0] === "E" && (t = {
859
+ notation: "scientific"
860
+ }, e = e.slice(1)), t) {
861
+ var r = e.slice(0, 2);
862
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Dt.test(e))
863
+ throw new Error("Malformed concise eng/scientific notation");
864
+ t.minimumIntegerDigits = e.length;
865
+ }
866
+ return t;
867
+ }
868
+ function ct(e) {
869
+ var t = {}, r = Ft(e);
870
+ return r || t;
871
+ }
872
+ function Kr(e) {
873
+ for (var t = {}, r = 0, n = e; r < n.length; r++) {
874
+ var i = n[r];
875
+ switch (i.stem) {
876
+ case "percent":
877
+ case "%":
878
+ t.style = "percent";
879
+ continue;
880
+ case "%x100":
881
+ t.style = "percent", t.scale = 100;
882
+ continue;
883
+ case "currency":
884
+ t.style = "currency", t.currency = i.options[0];
885
+ continue;
886
+ case "group-off":
887
+ case ",_":
888
+ t.useGrouping = !1;
889
+ continue;
890
+ case "precision-integer":
891
+ case ".":
892
+ t.maximumFractionDigits = 0;
893
+ continue;
894
+ case "measure-unit":
895
+ case "unit":
896
+ t.style = "unit", t.unit = Qr(i.options[0]);
897
+ continue;
898
+ case "compact-short":
899
+ case "K":
900
+ t.notation = "compact", t.compactDisplay = "short";
901
+ continue;
902
+ case "compact-long":
903
+ case "KK":
904
+ t.notation = "compact", t.compactDisplay = "long";
905
+ continue;
906
+ case "scientific":
907
+ t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
908
+ return g(g({}, l), ct(u));
909
+ }, {}));
910
+ continue;
911
+ case "engineering":
912
+ t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
913
+ return g(g({}, l), ct(u));
914
+ }, {}));
915
+ continue;
916
+ case "notation-simple":
917
+ t.notation = "standard";
918
+ continue;
919
+ case "unit-width-narrow":
920
+ t.currencyDisplay = "narrowSymbol", t.unitDisplay = "narrow";
921
+ continue;
922
+ case "unit-width-short":
923
+ t.currencyDisplay = "code", t.unitDisplay = "short";
924
+ continue;
925
+ case "unit-width-full-name":
926
+ t.currencyDisplay = "name", t.unitDisplay = "long";
927
+ continue;
928
+ case "unit-width-iso-code":
929
+ t.currencyDisplay = "symbol";
930
+ continue;
931
+ case "scale":
932
+ t.scale = parseFloat(i.options[0]);
933
+ continue;
934
+ case "rounding-mode-floor":
935
+ t.roundingMode = "floor";
936
+ continue;
937
+ case "rounding-mode-ceiling":
938
+ t.roundingMode = "ceil";
939
+ continue;
940
+ case "rounding-mode-down":
941
+ t.roundingMode = "trunc";
942
+ continue;
943
+ case "rounding-mode-up":
944
+ t.roundingMode = "expand";
945
+ continue;
946
+ case "rounding-mode-half-even":
947
+ t.roundingMode = "halfEven";
948
+ continue;
949
+ case "rounding-mode-half-down":
950
+ t.roundingMode = "halfTrunc";
951
+ continue;
952
+ case "rounding-mode-half-up":
953
+ t.roundingMode = "halfExpand";
954
+ continue;
955
+ case "integer-width":
956
+ if (i.options.length > 1)
957
+ throw new RangeError("integer-width stems only accept a single optional option");
958
+ i.options[0].replace(qr, function(l, u, h, f, d, b) {
959
+ if (u)
960
+ t.minimumIntegerDigits = h.length;
961
+ else {
962
+ if (f && d)
963
+ throw new Error("We currently do not support maximum integer digits");
964
+ if (b)
965
+ throw new Error("We currently do not support exact integer digits");
966
+ }
967
+ return "";
968
+ });
969
+ continue;
970
+ }
971
+ if (Dt.test(i.stem)) {
972
+ t.minimumIntegerDigits = i.stem.length;
973
+ continue;
974
+ }
975
+ if (lt.test(i.stem)) {
976
+ if (i.options.length > 1)
977
+ throw new RangeError("Fraction-precision stems only accept a single optional option");
978
+ i.stem.replace(lt, function(l, u, h, f, d, b) {
979
+ return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : d && b ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
980
+ });
981
+ var o = i.options[0];
982
+ o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), ht(o)));
983
+ continue;
984
+ }
985
+ if (Ut.test(i.stem)) {
986
+ t = g(g({}, t), ht(i.stem));
987
+ continue;
988
+ }
989
+ var s = Ft(i.stem);
990
+ s && (t = g(g({}, t), s));
991
+ var a = Yr(i.stem);
992
+ a && (t = g(g({}, t), a));
993
+ }
994
+ return t;
995
+ }
996
+ var ye = {
997
+ "001": [
998
+ "H",
999
+ "h"
1000
+ ],
1001
+ AC: [
1002
+ "H",
1003
+ "h",
1004
+ "hb",
1005
+ "hB"
1006
+ ],
1007
+ AD: [
1008
+ "H",
1009
+ "hB"
1010
+ ],
1011
+ AE: [
1012
+ "h",
1013
+ "hB",
1014
+ "hb",
1015
+ "H"
1016
+ ],
1017
+ AF: [
1018
+ "H",
1019
+ "hb",
1020
+ "hB",
1021
+ "h"
1022
+ ],
1023
+ AG: [
1024
+ "h",
1025
+ "hb",
1026
+ "H",
1027
+ "hB"
1028
+ ],
1029
+ AI: [
1030
+ "H",
1031
+ "h",
1032
+ "hb",
1033
+ "hB"
1034
+ ],
1035
+ AL: [
1036
+ "h",
1037
+ "H",
1038
+ "hB"
1039
+ ],
1040
+ AM: [
1041
+ "H",
1042
+ "hB"
1043
+ ],
1044
+ AO: [
1045
+ "H",
1046
+ "hB"
1047
+ ],
1048
+ AR: [
1049
+ "H",
1050
+ "h",
1051
+ "hB",
1052
+ "hb"
1053
+ ],
1054
+ AS: [
1055
+ "h",
1056
+ "H"
1057
+ ],
1058
+ AT: [
1059
+ "H",
1060
+ "hB"
1061
+ ],
1062
+ AU: [
1063
+ "h",
1064
+ "hb",
1065
+ "H",
1066
+ "hB"
1067
+ ],
1068
+ AW: [
1069
+ "H",
1070
+ "hB"
1071
+ ],
1072
+ AX: [
1073
+ "H"
1074
+ ],
1075
+ AZ: [
1076
+ "H",
1077
+ "hB",
1078
+ "h"
1079
+ ],
1080
+ BA: [
1081
+ "H",
1082
+ "hB",
1083
+ "h"
1084
+ ],
1085
+ BB: [
1086
+ "h",
1087
+ "hb",
1088
+ "H",
1089
+ "hB"
1090
+ ],
1091
+ BD: [
1092
+ "h",
1093
+ "hB",
1094
+ "H"
1095
+ ],
1096
+ BE: [
1097
+ "H",
1098
+ "hB"
1099
+ ],
1100
+ BF: [
1101
+ "H",
1102
+ "hB"
1103
+ ],
1104
+ BG: [
1105
+ "H",
1106
+ "hB",
1107
+ "h"
1108
+ ],
1109
+ BH: [
1110
+ "h",
1111
+ "hB",
1112
+ "hb",
1113
+ "H"
1114
+ ],
1115
+ BI: [
1116
+ "H",
1117
+ "h"
1118
+ ],
1119
+ BJ: [
1120
+ "H",
1121
+ "hB"
1122
+ ],
1123
+ BL: [
1124
+ "H",
1125
+ "hB"
1126
+ ],
1127
+ BM: [
1128
+ "h",
1129
+ "hb",
1130
+ "H",
1131
+ "hB"
1132
+ ],
1133
+ BN: [
1134
+ "hb",
1135
+ "hB",
1136
+ "h",
1137
+ "H"
1138
+ ],
1139
+ BO: [
1140
+ "H",
1141
+ "hB",
1142
+ "h",
1143
+ "hb"
1144
+ ],
1145
+ BQ: [
1146
+ "H"
1147
+ ],
1148
+ BR: [
1149
+ "H",
1150
+ "hB"
1151
+ ],
1152
+ BS: [
1153
+ "h",
1154
+ "hb",
1155
+ "H",
1156
+ "hB"
1157
+ ],
1158
+ BT: [
1159
+ "h",
1160
+ "H"
1161
+ ],
1162
+ BW: [
1163
+ "H",
1164
+ "h",
1165
+ "hb",
1166
+ "hB"
1167
+ ],
1168
+ BY: [
1169
+ "H",
1170
+ "h"
1171
+ ],
1172
+ BZ: [
1173
+ "H",
1174
+ "h",
1175
+ "hb",
1176
+ "hB"
1177
+ ],
1178
+ CA: [
1179
+ "h",
1180
+ "hb",
1181
+ "H",
1182
+ "hB"
1183
+ ],
1184
+ CC: [
1185
+ "H",
1186
+ "h",
1187
+ "hb",
1188
+ "hB"
1189
+ ],
1190
+ CD: [
1191
+ "hB",
1192
+ "H"
1193
+ ],
1194
+ CF: [
1195
+ "H",
1196
+ "h",
1197
+ "hB"
1198
+ ],
1199
+ CG: [
1200
+ "H",
1201
+ "hB"
1202
+ ],
1203
+ CH: [
1204
+ "H",
1205
+ "hB",
1206
+ "h"
1207
+ ],
1208
+ CI: [
1209
+ "H",
1210
+ "hB"
1211
+ ],
1212
+ CK: [
1213
+ "H",
1214
+ "h",
1215
+ "hb",
1216
+ "hB"
1217
+ ],
1218
+ CL: [
1219
+ "H",
1220
+ "h",
1221
+ "hB",
1222
+ "hb"
1223
+ ],
1224
+ CM: [
1225
+ "H",
1226
+ "h",
1227
+ "hB"
1228
+ ],
1229
+ CN: [
1230
+ "H",
1231
+ "hB",
1232
+ "hb",
1233
+ "h"
1234
+ ],
1235
+ CO: [
1236
+ "h",
1237
+ "H",
1238
+ "hB",
1239
+ "hb"
1240
+ ],
1241
+ CP: [
1242
+ "H"
1243
+ ],
1244
+ CR: [
1245
+ "H",
1246
+ "h",
1247
+ "hB",
1248
+ "hb"
1249
+ ],
1250
+ CU: [
1251
+ "H",
1252
+ "h",
1253
+ "hB",
1254
+ "hb"
1255
+ ],
1256
+ CV: [
1257
+ "H",
1258
+ "hB"
1259
+ ],
1260
+ CW: [
1261
+ "H",
1262
+ "hB"
1263
+ ],
1264
+ CX: [
1265
+ "H",
1266
+ "h",
1267
+ "hb",
1268
+ "hB"
1269
+ ],
1270
+ CY: [
1271
+ "h",
1272
+ "H",
1273
+ "hb",
1274
+ "hB"
1275
+ ],
1276
+ CZ: [
1277
+ "H"
1278
+ ],
1279
+ DE: [
1280
+ "H",
1281
+ "hB"
1282
+ ],
1283
+ DG: [
1284
+ "H",
1285
+ "h",
1286
+ "hb",
1287
+ "hB"
1288
+ ],
1289
+ DJ: [
1290
+ "h",
1291
+ "H"
1292
+ ],
1293
+ DK: [
1294
+ "H"
1295
+ ],
1296
+ DM: [
1297
+ "h",
1298
+ "hb",
1299
+ "H",
1300
+ "hB"
1301
+ ],
1302
+ DO: [
1303
+ "h",
1304
+ "H",
1305
+ "hB",
1306
+ "hb"
1307
+ ],
1308
+ DZ: [
1309
+ "h",
1310
+ "hB",
1311
+ "hb",
1312
+ "H"
1313
+ ],
1314
+ EA: [
1315
+ "H",
1316
+ "h",
1317
+ "hB",
1318
+ "hb"
1319
+ ],
1320
+ EC: [
1321
+ "H",
1322
+ "hB",
1323
+ "h",
1324
+ "hb"
1325
+ ],
1326
+ EE: [
1327
+ "H",
1328
+ "hB"
1329
+ ],
1330
+ EG: [
1331
+ "h",
1332
+ "hB",
1333
+ "hb",
1334
+ "H"
1335
+ ],
1336
+ EH: [
1337
+ "h",
1338
+ "hB",
1339
+ "hb",
1340
+ "H"
1341
+ ],
1342
+ ER: [
1343
+ "h",
1344
+ "H"
1345
+ ],
1346
+ ES: [
1347
+ "H",
1348
+ "hB",
1349
+ "h",
1350
+ "hb"
1351
+ ],
1352
+ ET: [
1353
+ "hB",
1354
+ "hb",
1355
+ "h",
1356
+ "H"
1357
+ ],
1358
+ FI: [
1359
+ "H"
1360
+ ],
1361
+ FJ: [
1362
+ "h",
1363
+ "hb",
1364
+ "H",
1365
+ "hB"
1366
+ ],
1367
+ FK: [
1368
+ "H",
1369
+ "h",
1370
+ "hb",
1371
+ "hB"
1372
+ ],
1373
+ FM: [
1374
+ "h",
1375
+ "hb",
1376
+ "H",
1377
+ "hB"
1378
+ ],
1379
+ FO: [
1380
+ "H",
1381
+ "h"
1382
+ ],
1383
+ FR: [
1384
+ "H",
1385
+ "hB"
1386
+ ],
1387
+ GA: [
1388
+ "H",
1389
+ "hB"
1390
+ ],
1391
+ GB: [
1392
+ "H",
1393
+ "h",
1394
+ "hb",
1395
+ "hB"
1396
+ ],
1397
+ GD: [
1398
+ "h",
1399
+ "hb",
1400
+ "H",
1401
+ "hB"
1402
+ ],
1403
+ GE: [
1404
+ "H",
1405
+ "hB",
1406
+ "h"
1407
+ ],
1408
+ GF: [
1409
+ "H",
1410
+ "hB"
1411
+ ],
1412
+ GG: [
1413
+ "H",
1414
+ "h",
1415
+ "hb",
1416
+ "hB"
1417
+ ],
1418
+ GH: [
1419
+ "h",
1420
+ "H"
1421
+ ],
1422
+ GI: [
1423
+ "H",
1424
+ "h",
1425
+ "hb",
1426
+ "hB"
1427
+ ],
1428
+ GL: [
1429
+ "H",
1430
+ "h"
1431
+ ],
1432
+ GM: [
1433
+ "h",
1434
+ "hb",
1435
+ "H",
1436
+ "hB"
1437
+ ],
1438
+ GN: [
1439
+ "H",
1440
+ "hB"
1441
+ ],
1442
+ GP: [
1443
+ "H",
1444
+ "hB"
1445
+ ],
1446
+ GQ: [
1447
+ "H",
1448
+ "hB",
1449
+ "h",
1450
+ "hb"
1451
+ ],
1452
+ GR: [
1453
+ "h",
1454
+ "H",
1455
+ "hb",
1456
+ "hB"
1457
+ ],
1458
+ GT: [
1459
+ "H",
1460
+ "h",
1461
+ "hB",
1462
+ "hb"
1463
+ ],
1464
+ GU: [
1465
+ "h",
1466
+ "hb",
1467
+ "H",
1468
+ "hB"
1469
+ ],
1470
+ GW: [
1471
+ "H",
1472
+ "hB"
1473
+ ],
1474
+ GY: [
1475
+ "h",
1476
+ "hb",
1477
+ "H",
1478
+ "hB"
1479
+ ],
1480
+ HK: [
1481
+ "h",
1482
+ "hB",
1483
+ "hb",
1484
+ "H"
1485
+ ],
1486
+ HN: [
1487
+ "H",
1488
+ "h",
1489
+ "hB",
1490
+ "hb"
1491
+ ],
1492
+ HR: [
1493
+ "H",
1494
+ "hB"
1495
+ ],
1496
+ HU: [
1497
+ "H",
1498
+ "h"
1499
+ ],
1500
+ IC: [
1501
+ "H",
1502
+ "h",
1503
+ "hB",
1504
+ "hb"
1505
+ ],
1506
+ ID: [
1507
+ "H"
1508
+ ],
1509
+ IE: [
1510
+ "H",
1511
+ "h",
1512
+ "hb",
1513
+ "hB"
1514
+ ],
1515
+ IL: [
1516
+ "H",
1517
+ "hB"
1518
+ ],
1519
+ IM: [
1520
+ "H",
1521
+ "h",
1522
+ "hb",
1523
+ "hB"
1524
+ ],
1525
+ IN: [
1526
+ "h",
1527
+ "H"
1528
+ ],
1529
+ IO: [
1530
+ "H",
1531
+ "h",
1532
+ "hb",
1533
+ "hB"
1534
+ ],
1535
+ IQ: [
1536
+ "h",
1537
+ "hB",
1538
+ "hb",
1539
+ "H"
1540
+ ],
1541
+ IR: [
1542
+ "hB",
1543
+ "H"
1544
+ ],
1545
+ IS: [
1546
+ "H"
1547
+ ],
1548
+ IT: [
1549
+ "H",
1550
+ "hB"
1551
+ ],
1552
+ JE: [
1553
+ "H",
1554
+ "h",
1555
+ "hb",
1556
+ "hB"
1557
+ ],
1558
+ JM: [
1559
+ "h",
1560
+ "hb",
1561
+ "H",
1562
+ "hB"
1563
+ ],
1564
+ JO: [
1565
+ "h",
1566
+ "hB",
1567
+ "hb",
1568
+ "H"
1569
+ ],
1570
+ JP: [
1571
+ "H",
1572
+ "K",
1573
+ "h"
1574
+ ],
1575
+ KE: [
1576
+ "hB",
1577
+ "hb",
1578
+ "H",
1579
+ "h"
1580
+ ],
1581
+ KG: [
1582
+ "H",
1583
+ "h",
1584
+ "hB",
1585
+ "hb"
1586
+ ],
1587
+ KH: [
1588
+ "hB",
1589
+ "h",
1590
+ "H",
1591
+ "hb"
1592
+ ],
1593
+ KI: [
1594
+ "h",
1595
+ "hb",
1596
+ "H",
1597
+ "hB"
1598
+ ],
1599
+ KM: [
1600
+ "H",
1601
+ "h",
1602
+ "hB",
1603
+ "hb"
1604
+ ],
1605
+ KN: [
1606
+ "h",
1607
+ "hb",
1608
+ "H",
1609
+ "hB"
1610
+ ],
1611
+ KP: [
1612
+ "h",
1613
+ "H",
1614
+ "hB",
1615
+ "hb"
1616
+ ],
1617
+ KR: [
1618
+ "h",
1619
+ "H",
1620
+ "hB",
1621
+ "hb"
1622
+ ],
1623
+ KW: [
1624
+ "h",
1625
+ "hB",
1626
+ "hb",
1627
+ "H"
1628
+ ],
1629
+ KY: [
1630
+ "h",
1631
+ "hb",
1632
+ "H",
1633
+ "hB"
1634
+ ],
1635
+ KZ: [
1636
+ "H",
1637
+ "hB"
1638
+ ],
1639
+ LA: [
1640
+ "H",
1641
+ "hb",
1642
+ "hB",
1643
+ "h"
1644
+ ],
1645
+ LB: [
1646
+ "h",
1647
+ "hB",
1648
+ "hb",
1649
+ "H"
1650
+ ],
1651
+ LC: [
1652
+ "h",
1653
+ "hb",
1654
+ "H",
1655
+ "hB"
1656
+ ],
1657
+ LI: [
1658
+ "H",
1659
+ "hB",
1660
+ "h"
1661
+ ],
1662
+ LK: [
1663
+ "H",
1664
+ "h",
1665
+ "hB",
1666
+ "hb"
1667
+ ],
1668
+ LR: [
1669
+ "h",
1670
+ "hb",
1671
+ "H",
1672
+ "hB"
1673
+ ],
1674
+ LS: [
1675
+ "h",
1676
+ "H"
1677
+ ],
1678
+ LT: [
1679
+ "H",
1680
+ "h",
1681
+ "hb",
1682
+ "hB"
1683
+ ],
1684
+ LU: [
1685
+ "H",
1686
+ "h",
1687
+ "hB"
1688
+ ],
1689
+ LV: [
1690
+ "H",
1691
+ "hB",
1692
+ "hb",
1693
+ "h"
1694
+ ],
1695
+ LY: [
1696
+ "h",
1697
+ "hB",
1698
+ "hb",
1699
+ "H"
1700
+ ],
1701
+ MA: [
1702
+ "H",
1703
+ "h",
1704
+ "hB",
1705
+ "hb"
1706
+ ],
1707
+ MC: [
1708
+ "H",
1709
+ "hB"
1710
+ ],
1711
+ MD: [
1712
+ "H",
1713
+ "hB"
1714
+ ],
1715
+ ME: [
1716
+ "H",
1717
+ "hB",
1718
+ "h"
1719
+ ],
1720
+ MF: [
1721
+ "H",
1722
+ "hB"
1723
+ ],
1724
+ MG: [
1725
+ "H",
1726
+ "h"
1727
+ ],
1728
+ MH: [
1729
+ "h",
1730
+ "hb",
1731
+ "H",
1732
+ "hB"
1733
+ ],
1734
+ MK: [
1735
+ "H",
1736
+ "h",
1737
+ "hb",
1738
+ "hB"
1739
+ ],
1740
+ ML: [
1741
+ "H"
1742
+ ],
1743
+ MM: [
1744
+ "hB",
1745
+ "hb",
1746
+ "H",
1747
+ "h"
1748
+ ],
1749
+ MN: [
1750
+ "H",
1751
+ "h",
1752
+ "hb",
1753
+ "hB"
1754
+ ],
1755
+ MO: [
1756
+ "h",
1757
+ "hB",
1758
+ "hb",
1759
+ "H"
1760
+ ],
1761
+ MP: [
1762
+ "h",
1763
+ "hb",
1764
+ "H",
1765
+ "hB"
1766
+ ],
1767
+ MQ: [
1768
+ "H",
1769
+ "hB"
1770
+ ],
1771
+ MR: [
1772
+ "h",
1773
+ "hB",
1774
+ "hb",
1775
+ "H"
1776
+ ],
1777
+ MS: [
1778
+ "H",
1779
+ "h",
1780
+ "hb",
1781
+ "hB"
1782
+ ],
1783
+ MT: [
1784
+ "H",
1785
+ "h"
1786
+ ],
1787
+ MU: [
1788
+ "H",
1789
+ "h"
1790
+ ],
1791
+ MV: [
1792
+ "H",
1793
+ "h"
1794
+ ],
1795
+ MW: [
1796
+ "h",
1797
+ "hb",
1798
+ "H",
1799
+ "hB"
1800
+ ],
1801
+ MX: [
1802
+ "H",
1803
+ "h",
1804
+ "hB",
1805
+ "hb"
1806
+ ],
1807
+ MY: [
1808
+ "hb",
1809
+ "hB",
1810
+ "h",
1811
+ "H"
1812
+ ],
1813
+ MZ: [
1814
+ "H",
1815
+ "hB"
1816
+ ],
1817
+ NA: [
1818
+ "h",
1819
+ "H",
1820
+ "hB",
1821
+ "hb"
1822
+ ],
1823
+ NC: [
1824
+ "H",
1825
+ "hB"
1826
+ ],
1827
+ NE: [
1828
+ "H"
1829
+ ],
1830
+ NF: [
1831
+ "H",
1832
+ "h",
1833
+ "hb",
1834
+ "hB"
1835
+ ],
1836
+ NG: [
1837
+ "H",
1838
+ "h",
1839
+ "hb",
1840
+ "hB"
1841
+ ],
1842
+ NI: [
1843
+ "H",
1844
+ "h",
1845
+ "hB",
1846
+ "hb"
1847
+ ],
1848
+ NL: [
1849
+ "H",
1850
+ "hB"
1851
+ ],
1852
+ NO: [
1853
+ "H",
1854
+ "h"
1855
+ ],
1856
+ NP: [
1857
+ "H",
1858
+ "h",
1859
+ "hB"
1860
+ ],
1861
+ NR: [
1862
+ "H",
1863
+ "h",
1864
+ "hb",
1865
+ "hB"
1866
+ ],
1867
+ NU: [
1868
+ "H",
1869
+ "h",
1870
+ "hb",
1871
+ "hB"
1872
+ ],
1873
+ NZ: [
1874
+ "h",
1875
+ "hb",
1876
+ "H",
1877
+ "hB"
1878
+ ],
1879
+ OM: [
1880
+ "h",
1881
+ "hB",
1882
+ "hb",
1883
+ "H"
1884
+ ],
1885
+ PA: [
1886
+ "h",
1887
+ "H",
1888
+ "hB",
1889
+ "hb"
1890
+ ],
1891
+ PE: [
1892
+ "H",
1893
+ "hB",
1894
+ "h",
1895
+ "hb"
1896
+ ],
1897
+ PF: [
1898
+ "H",
1899
+ "h",
1900
+ "hB"
1901
+ ],
1902
+ PG: [
1903
+ "h",
1904
+ "H"
1905
+ ],
1906
+ PH: [
1907
+ "h",
1908
+ "hB",
1909
+ "hb",
1910
+ "H"
1911
+ ],
1912
+ PK: [
1913
+ "h",
1914
+ "hB",
1915
+ "H"
1916
+ ],
1917
+ PL: [
1918
+ "H",
1919
+ "h"
1920
+ ],
1921
+ PM: [
1922
+ "H",
1923
+ "hB"
1924
+ ],
1925
+ PN: [
1926
+ "H",
1927
+ "h",
1928
+ "hb",
1929
+ "hB"
1930
+ ],
1931
+ PR: [
1932
+ "h",
1933
+ "H",
1934
+ "hB",
1935
+ "hb"
1936
+ ],
1937
+ PS: [
1938
+ "h",
1939
+ "hB",
1940
+ "hb",
1941
+ "H"
1942
+ ],
1943
+ PT: [
1944
+ "H",
1945
+ "hB"
1946
+ ],
1947
+ PW: [
1948
+ "h",
1949
+ "H"
1950
+ ],
1951
+ PY: [
1952
+ "H",
1953
+ "h",
1954
+ "hB",
1955
+ "hb"
1956
+ ],
1957
+ QA: [
1958
+ "h",
1959
+ "hB",
1960
+ "hb",
1961
+ "H"
1962
+ ],
1963
+ RE: [
1964
+ "H",
1965
+ "hB"
1966
+ ],
1967
+ RO: [
1968
+ "H",
1969
+ "hB"
1970
+ ],
1971
+ RS: [
1972
+ "H",
1973
+ "hB",
1974
+ "h"
1975
+ ],
1976
+ RU: [
1977
+ "H"
1978
+ ],
1979
+ RW: [
1980
+ "H",
1981
+ "h"
1982
+ ],
1983
+ SA: [
1984
+ "h",
1985
+ "hB",
1986
+ "hb",
1987
+ "H"
1988
+ ],
1989
+ SB: [
1990
+ "h",
1991
+ "hb",
1992
+ "H",
1993
+ "hB"
1994
+ ],
1995
+ SC: [
1996
+ "H",
1997
+ "h",
1998
+ "hB"
1999
+ ],
2000
+ SD: [
2001
+ "h",
2002
+ "hB",
2003
+ "hb",
2004
+ "H"
2005
+ ],
2006
+ SE: [
2007
+ "H"
2008
+ ],
2009
+ SG: [
2010
+ "h",
2011
+ "hb",
2012
+ "H",
2013
+ "hB"
2014
+ ],
2015
+ SH: [
2016
+ "H",
2017
+ "h",
2018
+ "hb",
2019
+ "hB"
2020
+ ],
2021
+ SI: [
2022
+ "H",
2023
+ "hB"
2024
+ ],
2025
+ SJ: [
2026
+ "H"
2027
+ ],
2028
+ SK: [
2029
+ "H"
2030
+ ],
2031
+ SL: [
2032
+ "h",
2033
+ "hb",
2034
+ "H",
2035
+ "hB"
2036
+ ],
2037
+ SM: [
2038
+ "H",
2039
+ "h",
2040
+ "hB"
2041
+ ],
2042
+ SN: [
2043
+ "H",
2044
+ "h",
2045
+ "hB"
2046
+ ],
2047
+ SO: [
2048
+ "h",
2049
+ "H"
2050
+ ],
2051
+ SR: [
2052
+ "H",
2053
+ "hB"
2054
+ ],
2055
+ SS: [
2056
+ "h",
2057
+ "hb",
2058
+ "H",
2059
+ "hB"
2060
+ ],
2061
+ ST: [
2062
+ "H",
2063
+ "hB"
2064
+ ],
2065
+ SV: [
2066
+ "H",
2067
+ "h",
2068
+ "hB",
2069
+ "hb"
2070
+ ],
2071
+ SX: [
2072
+ "H",
2073
+ "h",
2074
+ "hb",
2075
+ "hB"
2076
+ ],
2077
+ SY: [
2078
+ "h",
2079
+ "hB",
2080
+ "hb",
2081
+ "H"
2082
+ ],
2083
+ SZ: [
2084
+ "h",
2085
+ "hb",
2086
+ "H",
2087
+ "hB"
2088
+ ],
2089
+ TA: [
2090
+ "H",
2091
+ "h",
2092
+ "hb",
2093
+ "hB"
2094
+ ],
2095
+ TC: [
2096
+ "h",
2097
+ "hb",
2098
+ "H",
2099
+ "hB"
2100
+ ],
2101
+ TD: [
2102
+ "h",
2103
+ "H",
2104
+ "hB"
2105
+ ],
2106
+ TF: [
2107
+ "H",
2108
+ "h",
2109
+ "hB"
2110
+ ],
2111
+ TG: [
2112
+ "H",
2113
+ "hB"
2114
+ ],
2115
+ TH: [
2116
+ "H",
2117
+ "h"
2118
+ ],
2119
+ TJ: [
2120
+ "H",
2121
+ "h"
2122
+ ],
2123
+ TL: [
2124
+ "H",
2125
+ "hB",
2126
+ "hb",
2127
+ "h"
2128
+ ],
2129
+ TM: [
2130
+ "H",
2131
+ "h"
2132
+ ],
2133
+ TN: [
2134
+ "h",
2135
+ "hB",
2136
+ "hb",
2137
+ "H"
2138
+ ],
2139
+ TO: [
2140
+ "h",
2141
+ "H"
2142
+ ],
2143
+ TR: [
2144
+ "H",
2145
+ "hB"
2146
+ ],
2147
+ TT: [
2148
+ "h",
2149
+ "hb",
2150
+ "H",
2151
+ "hB"
2152
+ ],
2153
+ TW: [
2154
+ "hB",
2155
+ "hb",
2156
+ "h",
2157
+ "H"
2158
+ ],
2159
+ TZ: [
2160
+ "hB",
2161
+ "hb",
2162
+ "H",
2163
+ "h"
2164
+ ],
2165
+ UA: [
2166
+ "H",
2167
+ "hB",
2168
+ "h"
2169
+ ],
2170
+ UG: [
2171
+ "hB",
2172
+ "hb",
2173
+ "H",
2174
+ "h"
2175
+ ],
2176
+ UM: [
2177
+ "h",
2178
+ "hb",
2179
+ "H",
2180
+ "hB"
2181
+ ],
2182
+ US: [
2183
+ "h",
2184
+ "hb",
2185
+ "H",
2186
+ "hB"
2187
+ ],
2188
+ UY: [
2189
+ "H",
2190
+ "h",
2191
+ "hB",
2192
+ "hb"
2193
+ ],
2194
+ UZ: [
2195
+ "H",
2196
+ "hB",
2197
+ "h"
2198
+ ],
2199
+ VA: [
2200
+ "H",
2201
+ "h",
2202
+ "hB"
2203
+ ],
2204
+ VC: [
2205
+ "h",
2206
+ "hb",
2207
+ "H",
2208
+ "hB"
2209
+ ],
2210
+ VE: [
2211
+ "h",
2212
+ "H",
2213
+ "hB",
2214
+ "hb"
2215
+ ],
2216
+ VG: [
2217
+ "h",
2218
+ "hb",
2219
+ "H",
2220
+ "hB"
2221
+ ],
2222
+ VI: [
2223
+ "h",
2224
+ "hb",
2225
+ "H",
2226
+ "hB"
2227
+ ],
2228
+ VN: [
2229
+ "H",
2230
+ "h"
2231
+ ],
2232
+ VU: [
2233
+ "h",
2234
+ "H"
2235
+ ],
2236
+ WF: [
2237
+ "H",
2238
+ "hB"
2239
+ ],
2240
+ WS: [
2241
+ "h",
2242
+ "H"
2243
+ ],
2244
+ XK: [
2245
+ "H",
2246
+ "hB",
2247
+ "h"
2248
+ ],
2249
+ YE: [
2250
+ "h",
2251
+ "hB",
2252
+ "hb",
2253
+ "H"
2254
+ ],
2255
+ YT: [
2256
+ "H",
2257
+ "hB"
2258
+ ],
2259
+ ZA: [
2260
+ "H",
2261
+ "h",
2262
+ "hb",
2263
+ "hB"
2264
+ ],
2265
+ ZM: [
2266
+ "h",
2267
+ "hb",
2268
+ "H",
2269
+ "hB"
2270
+ ],
2271
+ ZW: [
2272
+ "H",
2273
+ "h"
2274
+ ],
2275
+ "af-ZA": [
2276
+ "H",
2277
+ "h",
2278
+ "hB",
2279
+ "hb"
2280
+ ],
2281
+ "ar-001": [
2282
+ "h",
2283
+ "hB",
2284
+ "hb",
2285
+ "H"
2286
+ ],
2287
+ "ca-ES": [
2288
+ "H",
2289
+ "h",
2290
+ "hB"
2291
+ ],
2292
+ "en-001": [
2293
+ "h",
2294
+ "hb",
2295
+ "H",
2296
+ "hB"
2297
+ ],
2298
+ "es-BO": [
2299
+ "H",
2300
+ "h",
2301
+ "hB",
2302
+ "hb"
2303
+ ],
2304
+ "es-BR": [
2305
+ "H",
2306
+ "h",
2307
+ "hB",
2308
+ "hb"
2309
+ ],
2310
+ "es-EC": [
2311
+ "H",
2312
+ "h",
2313
+ "hB",
2314
+ "hb"
2315
+ ],
2316
+ "es-ES": [
2317
+ "H",
2318
+ "h",
2319
+ "hB",
2320
+ "hb"
2321
+ ],
2322
+ "es-GQ": [
2323
+ "H",
2324
+ "h",
2325
+ "hB",
2326
+ "hb"
2327
+ ],
2328
+ "es-PE": [
2329
+ "H",
2330
+ "h",
2331
+ "hB",
2332
+ "hb"
2333
+ ],
2334
+ "fr-CA": [
2335
+ "H",
2336
+ "h",
2337
+ "hB"
2338
+ ],
2339
+ "gl-ES": [
2340
+ "H",
2341
+ "h",
2342
+ "hB"
2343
+ ],
2344
+ "gu-IN": [
2345
+ "hB",
2346
+ "hb",
2347
+ "h",
2348
+ "H"
2349
+ ],
2350
+ "hi-IN": [
2351
+ "hB",
2352
+ "h",
2353
+ "H"
2354
+ ],
2355
+ "it-CH": [
2356
+ "H",
2357
+ "h",
2358
+ "hB"
2359
+ ],
2360
+ "it-IT": [
2361
+ "H",
2362
+ "h",
2363
+ "hB"
2364
+ ],
2365
+ "kn-IN": [
2366
+ "hB",
2367
+ "h",
2368
+ "H"
2369
+ ],
2370
+ "ml-IN": [
2371
+ "hB",
2372
+ "h",
2373
+ "H"
2374
+ ],
2375
+ "mr-IN": [
2376
+ "hB",
2377
+ "hb",
2378
+ "h",
2379
+ "H"
2380
+ ],
2381
+ "pa-IN": [
2382
+ "hB",
2383
+ "hb",
2384
+ "h",
2385
+ "H"
2386
+ ],
2387
+ "ta-IN": [
2388
+ "hB",
2389
+ "h",
2390
+ "hb",
2391
+ "H"
2392
+ ],
2393
+ "te-IN": [
2394
+ "hB",
2395
+ "h",
2396
+ "H"
2397
+ ],
2398
+ "zu-ZA": [
2399
+ "H",
2400
+ "hB",
2401
+ "hb",
2402
+ "h"
2403
+ ]
2404
+ };
2405
+ function en(e, t) {
2406
+ for (var r = "", n = 0; n < e.length; n++) {
2407
+ var i = e.charAt(n);
2408
+ if (i === "j") {
2409
+ for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2410
+ o++, n++;
2411
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = tn(t);
2412
+ for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2413
+ r += l;
2414
+ for (; s-- > 0; )
2415
+ r = u + r;
2416
+ } else i === "J" ? r += "H" : r += i;
2417
+ }
2418
+ return r;
2419
+ }
2420
+ function tn(e) {
2421
+ var t = e.hourCycle;
2422
+ if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2423
+ e.hourCycles && // @ts-ignore
2424
+ e.hourCycles.length && (t = e.hourCycles[0]), t)
2425
+ switch (t) {
2426
+ case "h24":
2427
+ return "k";
2428
+ case "h23":
2429
+ return "H";
2430
+ case "h12":
2431
+ return "h";
2432
+ case "h11":
2433
+ return "K";
2434
+ default:
2435
+ throw new Error("Invalid hourCycle");
2436
+ }
2437
+ var r = e.language, n;
2438
+ r !== "root" && (n = e.maximize().region);
2439
+ var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
2440
+ return i[0];
2441
+ }
2442
+ var Oe, rn = new RegExp("^".concat($t.source, "*")), nn = new RegExp("".concat($t.source, "*$"));
2443
+ function p(e, t) {
2444
+ return { start: e, end: t };
2445
+ }
2446
+ var on = !!String.prototype.startsWith && "_a".startsWith("a", 1), sn = !!String.fromCodePoint, an = !!Object.fromEntries, un = !!String.prototype.codePointAt, ln = !!String.prototype.trimStart, hn = !!String.prototype.trimEnd, cn = !!Number.isSafeInteger, fn = cn ? Number.isSafeInteger : function(e) {
2447
+ return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2448
+ }, je = !0;
2449
+ try {
2450
+ var dn = kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2451
+ je = ((Oe = dn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
2452
+ } catch (e) {
2453
+ je = !1;
2454
+ }
2455
+ var ft = on ? (
2456
+ // Native
2457
+ function(t, r, n) {
2458
+ return t.startsWith(r, n);
2459
+ }
2460
+ ) : (
2461
+ // For IE11
2462
+ function(t, r, n) {
2463
+ return t.slice(n, n + r.length) === r;
2464
+ }
2465
+ ), Ve = sn ? String.fromCodePoint : (
2466
+ // IE11
2467
+ function() {
2468
+ for (var t = [], r = 0; r < arguments.length; r++)
2469
+ t[r] = arguments[r];
2470
+ for (var n = "", i = t.length, o = 0, s; i > o; ) {
2471
+ if (s = t[o++], s > 1114111)
2472
+ throw RangeError(s + " is not a valid code point");
2473
+ n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
2474
+ }
2475
+ return n;
2476
+ }
2477
+ ), dt = (
2478
+ // native
2479
+ an ? Object.fromEntries : (
2480
+ // Ponyfill
2481
+ function(t) {
2482
+ for (var r = {}, n = 0, i = t; n < i.length; n++) {
2483
+ var o = i[n], s = o[0], a = o[1];
2484
+ r[s] = a;
2485
+ }
2486
+ return r;
2487
+ }
2488
+ )
2489
+ ), Gt = un ? (
2490
+ // Native
2491
+ function(t, r) {
2492
+ return t.codePointAt(r);
2493
+ }
2494
+ ) : (
2495
+ // IE 11
2496
+ function(t, r) {
2497
+ var n = t.length;
2498
+ if (!(r < 0 || r >= n)) {
2499
+ var i = t.charCodeAt(r), o;
2500
+ return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2501
+ }
2502
+ }
2503
+ ), mn = ln ? (
2504
+ // Native
2505
+ function(t) {
2506
+ return t.trimStart();
2507
+ }
2508
+ ) : (
2509
+ // Ponyfill
2510
+ function(t) {
2511
+ return t.replace(rn, "");
2512
+ }
2513
+ ), pn = hn ? (
2514
+ // Native
2515
+ function(t) {
2516
+ return t.trimEnd();
2517
+ }
2518
+ ) : (
2519
+ // Ponyfill
2520
+ function(t) {
2521
+ return t.replace(nn, "");
2522
+ }
2523
+ );
2524
+ function kt(e, t) {
2525
+ return new RegExp(e, t);
2526
+ }
2527
+ var Xe;
2528
+ if (je) {
2529
+ var mt = kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2530
+ Xe = function(t, r) {
2531
+ var n;
2532
+ mt.lastIndex = r;
2533
+ var i = mt.exec(t);
2534
+ return (n = i[1]) !== null && n !== void 0 ? n : "";
2535
+ };
2536
+ } else
2537
+ Xe = function(t, r) {
2538
+ for (var n = []; ; ) {
2539
+ var i = Gt(t, r);
2540
+ if (i === void 0 || jt(i) || yn(i))
2541
+ break;
2542
+ n.push(i), r += i >= 65536 ? 2 : 1;
2543
+ }
2544
+ return Ve.apply(void 0, n);
2545
+ };
2546
+ var bn = (
2547
+ /** @class */
2548
+ function() {
2549
+ function e(t, r) {
2550
+ r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
2551
+ }
2552
+ return e.prototype.parse = function() {
2553
+ if (this.offset() !== 0)
2554
+ throw Error("parser can only be used once");
2555
+ return this.parseMessage(0, "", !1);
2556
+ }, e.prototype.parseMessage = function(t, r, n) {
2557
+ for (var i = []; !this.isEOF(); ) {
2558
+ var o = this.char();
2559
+ if (o === 123) {
2560
+ var s = this.parseArgument(t, n);
2561
+ if (s.err)
2562
+ return s;
2563
+ i.push(s.val);
2564
+ } else {
2565
+ if (o === 125 && t > 0)
2566
+ break;
2567
+ if (o === 35 && (r === "plural" || r === "selectordinal")) {
2568
+ var a = this.clonePosition();
2569
+ this.bump(), i.push({
2570
+ type: x.pound,
2571
+ location: p(a, this.clonePosition())
2572
+ });
2573
+ } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2574
+ if (n)
2575
+ break;
2576
+ return this.error(m.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
2577
+ } else if (o === 60 && !this.ignoreTag && ze(this.peek() || 0)) {
2578
+ var s = this.parseTag(t, r);
2579
+ if (s.err)
2580
+ return s;
2581
+ i.push(s.val);
2582
+ } else {
2583
+ var s = this.parseLiteral(t, r);
2584
+ if (s.err)
2585
+ return s;
2586
+ i.push(s.val);
2587
+ }
2588
+ }
2589
+ }
2590
+ return { val: i, err: null };
2591
+ }, e.prototype.parseTag = function(t, r) {
2592
+ var n = this.clonePosition();
2593
+ this.bump();
2594
+ var i = this.parseTagName();
2595
+ if (this.bumpSpace(), this.bumpIf("/>"))
2596
+ return {
2597
+ val: {
2598
+ type: x.literal,
2599
+ value: "<".concat(i, "/>"),
2600
+ location: p(n, this.clonePosition())
2601
+ },
2602
+ err: null
2603
+ };
2604
+ if (this.bumpIf(">")) {
2605
+ var o = this.parseMessage(t + 1, r, !0);
2606
+ if (o.err)
2607
+ return o;
2608
+ var s = o.val, a = this.clonePosition();
2609
+ if (this.bumpIf("</")) {
2610
+ if (this.isEOF() || !ze(this.char()))
2611
+ return this.error(m.INVALID_TAG, p(a, this.clonePosition()));
2612
+ var l = this.clonePosition(), u = this.parseTagName();
2613
+ return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, p(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2614
+ val: {
2615
+ type: x.tag,
2616
+ value: i,
2617
+ children: s,
2618
+ location: p(n, this.clonePosition())
2619
+ },
2620
+ err: null
2621
+ } : this.error(m.INVALID_TAG, p(a, this.clonePosition())));
2622
+ } else
2623
+ return this.error(m.UNCLOSED_TAG, p(n, this.clonePosition()));
2624
+ } else
2625
+ return this.error(m.INVALID_TAG, p(n, this.clonePosition()));
2626
+ }, e.prototype.parseTagName = function() {
2627
+ var t = this.offset();
2628
+ for (this.bump(); !this.isEOF() && vn(this.char()); )
2629
+ this.bump();
2630
+ return this.message.slice(t, this.offset());
2631
+ }, e.prototype.parseLiteral = function(t, r) {
2632
+ for (var n = this.clonePosition(), i = ""; ; ) {
2633
+ var o = this.tryParseQuote(r);
2634
+ if (o) {
2635
+ i += o;
2636
+ continue;
2637
+ }
2638
+ var s = this.tryParseUnquoted(t, r);
2639
+ if (s) {
2640
+ i += s;
2641
+ continue;
2642
+ }
2643
+ var a = this.tryParseLeftAngleBracket();
2644
+ if (a) {
2645
+ i += a;
2646
+ continue;
2647
+ }
2648
+ break;
2649
+ }
2650
+ var l = p(n, this.clonePosition());
2651
+ return {
2652
+ val: { type: x.literal, value: i, location: l },
2653
+ err: null
2654
+ };
2655
+ }, e.prototype.tryParseLeftAngleBracket = function() {
2656
+ return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2657
+ !gn(this.peek() || 0)) ? (this.bump(), "<") : null;
2658
+ }, e.prototype.tryParseQuote = function(t) {
2659
+ if (this.isEOF() || this.char() !== 39)
2660
+ return null;
2661
+ switch (this.peek()) {
2662
+ case 39:
2663
+ return this.bump(), this.bump(), "'";
2664
+ case 123:
2665
+ case 60:
2666
+ case 62:
2667
+ case 125:
2668
+ break;
2669
+ case 35:
2670
+ if (t === "plural" || t === "selectordinal")
2671
+ break;
2672
+ return null;
2673
+ default:
2674
+ return null;
2675
+ }
2676
+ this.bump();
2677
+ var r = [this.char()];
2678
+ for (this.bump(); !this.isEOF(); ) {
2679
+ var n = this.char();
2680
+ if (n === 39)
2681
+ if (this.peek() === 39)
2682
+ r.push(39), this.bump();
2683
+ else {
2684
+ this.bump();
2685
+ break;
2686
+ }
2687
+ else
2688
+ r.push(n);
2689
+ this.bump();
2690
+ }
2691
+ return Ve.apply(void 0, r);
2692
+ }, e.prototype.tryParseUnquoted = function(t, r) {
2693
+ if (this.isEOF())
2694
+ return null;
2695
+ var n = this.char();
2696
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ve(n));
2697
+ }, e.prototype.parseArgument = function(t, r) {
2698
+ var n = this.clonePosition();
2699
+ if (this.bump(), this.bumpSpace(), this.isEOF())
2700
+ return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
2701
+ if (this.char() === 125)
2702
+ return this.bump(), this.error(m.EMPTY_ARGUMENT, p(n, this.clonePosition()));
2703
+ var i = this.parseIdentifierIfPossible().value;
2704
+ if (!i)
2705
+ return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
2706
+ if (this.bumpSpace(), this.isEOF())
2707
+ return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
2708
+ switch (this.char()) {
2709
+ case 125:
2710
+ return this.bump(), {
2711
+ val: {
2712
+ type: x.argument,
2713
+ // value does not include the opening and closing braces.
2714
+ value: i,
2715
+ location: p(n, this.clonePosition())
2716
+ },
2717
+ err: null
2718
+ };
2719
+ case 44:
2720
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2721
+ default:
2722
+ return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
2723
+ }
2724
+ }, e.prototype.parseIdentifierIfPossible = function() {
2725
+ var t = this.clonePosition(), r = this.offset(), n = Xe(this.message, r), i = r + n.length;
2726
+ this.bumpTo(i);
2727
+ var o = this.clonePosition(), s = p(t, o);
2728
+ return { value: n, location: s };
2729
+ }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2730
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2731
+ switch (a) {
2732
+ case "":
2733
+ return this.error(m.EXPECT_ARGUMENT_TYPE, p(s, l));
2734
+ case "number":
2735
+ case "date":
2736
+ case "time": {
2737
+ this.bumpSpace();
2738
+ var u = null;
2739
+ if (this.bumpIf(",")) {
2740
+ this.bumpSpace();
2741
+ var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2742
+ if (f.err)
2743
+ return f;
2744
+ var d = pn(f.val);
2745
+ if (d.length === 0)
2746
+ return this.error(m.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
2747
+ var b = p(h, this.clonePosition());
2748
+ u = { style: d, styleLocation: b };
2749
+ }
2750
+ var v = this.tryParseArgumentClose(i);
2751
+ if (v.err)
2752
+ return v;
2753
+ var _ = p(i, this.clonePosition());
2754
+ if (u && ft(u == null ? void 0 : u.style, "::", 0)) {
2755
+ var S = mn(u.style.slice(2));
2756
+ if (a === "number") {
2757
+ var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
2758
+ return f.err ? f : {
2759
+ val: { type: x.number, value: n, location: _, style: f.val },
2760
+ err: null
2761
+ };
2762
+ } else {
2763
+ if (S.length === 0)
2764
+ return this.error(m.EXPECT_DATE_TIME_SKELETON, _);
2765
+ var R = S;
2766
+ this.locale && (R = en(S, this.locale));
2767
+ var d = {
2768
+ type: ne.dateTime,
2769
+ pattern: R,
2770
+ location: u.styleLocation,
2771
+ parsedOptions: this.shouldParseSkeletons ? Wr(R) : {}
2772
+ }, I = a === "date" ? x.date : x.time;
2773
+ return {
2774
+ val: { type: I, value: n, location: _, style: d },
2775
+ err: null
2776
+ };
2777
+ }
2778
+ }
2779
+ return {
2780
+ val: {
2781
+ type: a === "number" ? x.number : a === "date" ? x.date : x.time,
2782
+ value: n,
2783
+ location: _,
2784
+ style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
2785
+ },
2786
+ err: null
2787
+ };
2788
+ }
2789
+ case "plural":
2790
+ case "selectordinal":
2791
+ case "select": {
2792
+ var T = this.clonePosition();
2793
+ if (this.bumpSpace(), !this.bumpIf(","))
2794
+ return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(T, g({}, T)));
2795
+ this.bumpSpace();
2796
+ var H = this.parseIdentifierIfPossible(), N = 0;
2797
+ if (a !== "select" && H.value === "offset") {
2798
+ if (!this.bumpIf(":"))
2799
+ return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
2800
+ this.bumpSpace();
2801
+ var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2802
+ if (f.err)
2803
+ return f;
2804
+ this.bumpSpace(), H = this.parseIdentifierIfPossible(), N = f.val;
2805
+ }
2806
+ var D = this.tryParsePluralOrSelectOptions(t, a, r, H);
2807
+ if (D.err)
2808
+ return D;
2809
+ var v = this.tryParseArgumentClose(i);
2810
+ if (v.err)
2811
+ return v;
2812
+ var V = p(i, this.clonePosition());
2813
+ return a === "select" ? {
2814
+ val: {
2815
+ type: x.select,
2816
+ value: n,
2817
+ options: dt(D.val),
2818
+ location: V
2819
+ },
2820
+ err: null
2821
+ } : {
2822
+ val: {
2823
+ type: x.plural,
2824
+ value: n,
2825
+ options: dt(D.val),
2826
+ offset: N,
2827
+ pluralType: a === "plural" ? "cardinal" : "ordinal",
2828
+ location: V
2829
+ },
2830
+ err: null
2831
+ };
2832
+ }
2833
+ default:
2834
+ return this.error(m.INVALID_ARGUMENT_TYPE, p(s, l));
2835
+ }
2836
+ }, e.prototype.tryParseArgumentClose = function(t) {
2837
+ return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2838
+ }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2839
+ for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2840
+ var n = this.char();
2841
+ switch (n) {
2842
+ case 39: {
2843
+ this.bump();
2844
+ var i = this.clonePosition();
2845
+ if (!this.bumpUntil("'"))
2846
+ return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, p(i, this.clonePosition()));
2847
+ this.bump();
2848
+ break;
2849
+ }
2850
+ case 123: {
2851
+ t += 1, this.bump();
2852
+ break;
2853
+ }
2854
+ case 125: {
2855
+ if (t > 0)
2856
+ t -= 1;
2857
+ else
2858
+ return {
2859
+ val: this.message.slice(r.offset, this.offset()),
2860
+ err: null
2861
+ };
2862
+ break;
2863
+ }
2864
+ default:
2865
+ this.bump();
2866
+ break;
2867
+ }
2868
+ }
2869
+ return {
2870
+ val: this.message.slice(r.offset, this.offset()),
2871
+ err: null
2872
+ };
2873
+ }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2874
+ var n = [];
2875
+ try {
2876
+ n = Jr(t);
2877
+ } catch (i) {
2878
+ return this.error(m.INVALID_NUMBER_SKELETON, r);
2879
+ }
2880
+ return {
2881
+ val: {
2882
+ type: ne.number,
2883
+ tokens: n,
2884
+ location: r,
2885
+ parsedOptions: this.shouldParseSkeletons ? Kr(n) : {}
2886
+ },
2887
+ err: null
2888
+ };
2889
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2890
+ for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
2891
+ if (u.length === 0) {
2892
+ var f = this.clonePosition();
2893
+ if (r !== "select" && this.bumpIf("=")) {
2894
+ var d = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
2895
+ if (d.err)
2896
+ return d;
2897
+ h = p(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
2898
+ } else
2899
+ break;
2900
+ }
2901
+ if (l.has(u))
2902
+ return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2903
+ u === "other" && (s = !0), this.bumpSpace();
2904
+ var b = this.clonePosition();
2905
+ if (!this.bumpIf("{"))
2906
+ return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
2907
+ var v = this.parseMessage(t + 1, r, n);
2908
+ if (v.err)
2909
+ return v;
2910
+ var _ = this.tryParseArgumentClose(b);
2911
+ if (_.err)
2912
+ return _;
2913
+ a.push([
2914
+ u,
2915
+ {
2916
+ value: v.val,
2917
+ location: p(b, this.clonePosition())
2918
+ }
2919
+ ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
2920
+ }
2921
+ return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(m.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
2922
+ }, e.prototype.tryParseDecimalInteger = function(t, r) {
2923
+ var n = 1, i = this.clonePosition();
2924
+ this.bumpIf("+") || this.bumpIf("-") && (n = -1);
2925
+ for (var o = !1, s = 0; !this.isEOF(); ) {
2926
+ var a = this.char();
2927
+ if (a >= 48 && a <= 57)
2928
+ o = !0, s = s * 10 + (a - 48), this.bump();
2929
+ else
2930
+ break;
2931
+ }
2932
+ var l = p(i, this.clonePosition());
2933
+ return o ? (s *= n, fn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
2934
+ }, e.prototype.offset = function() {
2935
+ return this.position.offset;
2936
+ }, e.prototype.isEOF = function() {
2937
+ return this.offset() === this.message.length;
2938
+ }, e.prototype.clonePosition = function() {
2939
+ return {
2940
+ offset: this.position.offset,
2941
+ line: this.position.line,
2942
+ column: this.position.column
2943
+ };
2944
+ }, e.prototype.char = function() {
2945
+ var t = this.position.offset;
2946
+ if (t >= this.message.length)
2947
+ throw Error("out of bound");
2948
+ var r = Gt(this.message, t);
2949
+ if (r === void 0)
2950
+ throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
2951
+ return r;
2952
+ }, e.prototype.error = function(t, r) {
2953
+ return {
2954
+ val: null,
2955
+ err: {
2956
+ kind: t,
2957
+ message: this.message,
2958
+ location: r
2959
+ }
2960
+ };
2961
+ }, e.prototype.bump = function() {
2962
+ if (!this.isEOF()) {
2963
+ var t = this.char();
2964
+ t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
2965
+ }
2966
+ }, e.prototype.bumpIf = function(t) {
2967
+ if (ft(this.message, t, this.offset())) {
2968
+ for (var r = 0; r < t.length; r++)
2969
+ this.bump();
2970
+ return !0;
2971
+ }
2972
+ return !1;
2973
+ }, e.prototype.bumpUntil = function(t) {
2974
+ var r = this.offset(), n = this.message.indexOf(t, r);
2975
+ return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
2976
+ }, e.prototype.bumpTo = function(t) {
2977
+ if (this.offset() > t)
2978
+ throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
2979
+ for (t = Math.min(t, this.message.length); ; ) {
2980
+ var r = this.offset();
2981
+ if (r === t)
2982
+ break;
2983
+ if (r > t)
2984
+ throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
2985
+ if (this.bump(), this.isEOF())
2986
+ break;
2987
+ }
2988
+ }, e.prototype.bumpSpace = function() {
2989
+ for (; !this.isEOF() && jt(this.char()); )
2990
+ this.bump();
2991
+ }, e.prototype.peek = function() {
2992
+ if (this.isEOF())
2993
+ return null;
2994
+ var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
2995
+ return n != null ? n : null;
2996
+ }, e;
2997
+ }()
2998
+ );
2999
+ function ze(e) {
3000
+ return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3001
+ }
3002
+ function gn(e) {
3003
+ return ze(e) || e === 47;
3004
+ }
3005
+ function vn(e) {
3006
+ 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;
3007
+ }
3008
+ function jt(e) {
3009
+ return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3010
+ }
3011
+ function yn(e) {
3012
+ 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;
3013
+ }
3014
+ function We(e) {
3015
+ e.forEach(function(t) {
3016
+ if (delete t.location, Ot(t) || Mt(t))
3017
+ for (var r in t.options)
3018
+ delete t.options[r].location, We(t.options[r].value);
3019
+ else Ct(t) && Rt(t.style) || (Nt(t) || It(t)) && ke(t.style) ? delete t.style.location : Lt(t) && We(t.children);
3020
+ });
3021
+ }
3022
+ function En(e, t) {
3023
+ t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3024
+ var r = new bn(e, t).parse();
3025
+ if (r.err) {
3026
+ var n = SyntaxError(m[r.err.kind]);
3027
+ throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3028
+ }
3029
+ return t != null && t.captureLocation || We(r.val), r.val;
3030
+ }
3031
+ function Me(e, t) {
3032
+ var r = t && t.cache ? t.cache : An, n = t && t.serializer ? t.serializer : Hn, i = t && t.strategy ? t.strategy : _n;
3033
+ return i(e, {
3034
+ cache: r,
3035
+ serializer: n
3036
+ });
3037
+ }
3038
+ function xn(e) {
3039
+ return e == null || typeof e == "number" || typeof e == "boolean";
3040
+ }
3041
+ function Vt(e, t, r, n) {
3042
+ var i = xn(n) ? n : r(n), o = t.get(i);
3043
+ return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
3044
+ }
3045
+ function Xt(e, t, r) {
3046
+ var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
3047
+ return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
3048
+ }
3049
+ function qe(e, t, r, n, i) {
3050
+ return r.bind(t, e, n, i);
3051
+ }
3052
+ function _n(e, t) {
3053
+ var r = e.length === 1 ? Vt : Xt;
3054
+ return qe(e, this, r, t.cache.create(), t.serializer);
3055
+ }
3056
+ function Sn(e, t) {
3057
+ return qe(e, this, Xt, t.cache.create(), t.serializer);
3058
+ }
3059
+ function Tn(e, t) {
3060
+ return qe(e, this, Vt, t.cache.create(), t.serializer);
3061
+ }
3062
+ var Hn = function() {
3063
+ return JSON.stringify(arguments);
3064
+ };
3065
+ function Ye() {
3066
+ this.cache = /* @__PURE__ */ Object.create(null);
3067
+ }
3068
+ Ye.prototype.get = function(e) {
3069
+ return this.cache[e];
3070
+ };
3071
+ Ye.prototype.set = function(e, t) {
3072
+ this.cache[e] = t;
3073
+ };
3074
+ var An = {
3075
+ create: function() {
3076
+ return new Ye();
3077
+ }
3078
+ }, Le = {
3079
+ variadic: Sn,
3080
+ monadic: Tn
3081
+ }, ie;
3082
+ (function(e) {
3083
+ e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3084
+ })(ie || (ie = {}));
3085
+ var Be = (
3086
+ /** @class */
3087
+ function(e) {
3088
+ Ae(t, e);
3089
+ function t(r, n, i) {
3090
+ var o = e.call(this, r) || this;
3091
+ return o.code = n, o.originalMessage = i, o;
3092
+ }
3093
+ return t.prototype.toString = function() {
3094
+ return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3095
+ }, t;
3096
+ }(Error)
3097
+ ), pt = (
3098
+ /** @class */
3099
+ function(e) {
3100
+ Ae(t, e);
3101
+ function t(r, n, i, o) {
3102
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ie.INVALID_VALUE, o) || this;
3103
+ }
3104
+ return t;
3105
+ }(Be)
3106
+ ), Bn = (
3107
+ /** @class */
3108
+ function(e) {
3109
+ Ae(t, e);
3110
+ function t(r, n, i) {
3111
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ie.INVALID_VALUE, i) || this;
3112
+ }
3113
+ return t;
3114
+ }(Be)
3115
+ ), wn = (
3116
+ /** @class */
3117
+ function(e) {
3118
+ Ae(t, e);
3119
+ function t(r, n) {
3120
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ie.MISSING_VALUE, n) || this;
3121
+ }
3122
+ return t;
3123
+ }(Be)
3124
+ ), C;
3125
+ (function(e) {
3126
+ e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3127
+ })(C || (C = {}));
3128
+ function Pn(e) {
3129
+ return e.length < 2 ? e : e.reduce(function(t, r) {
3130
+ var n = t[t.length - 1];
3131
+ return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
3132
+ }, []);
3133
+ }
3134
+ function Cn(e) {
3135
+ return typeof e == "function";
3136
+ }
3137
+ function xe(e, t, r, n, i, o, s) {
3138
+ if (e.length === 1 && ut(e[0]))
3139
+ return [
3140
+ {
3141
+ type: C.literal,
3142
+ value: e[0].value
3143
+ }
3144
+ ];
3145
+ for (var a = [], l = 0, u = e; l < u.length; l++) {
3146
+ var h = u[l];
3147
+ if (ut(h)) {
3148
+ a.push({
3149
+ type: C.literal,
3150
+ value: h.value
3151
+ });
3152
+ continue;
3153
+ }
3154
+ if (Xr(h)) {
3155
+ typeof o == "number" && a.push({
3156
+ type: C.literal,
3157
+ value: r.getNumberFormat(t).format(o)
3158
+ });
3159
+ continue;
3160
+ }
3161
+ var f = h.value;
3162
+ if (!(i && f in i))
3163
+ throw new wn(f, s);
3164
+ var d = i[f];
3165
+ if (Vr(h)) {
3166
+ (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), a.push({
3167
+ type: typeof d == "string" ? C.literal : C.object,
3168
+ value: d
3169
+ });
3170
+ continue;
3171
+ }
3172
+ if (Nt(h)) {
3173
+ var b = typeof h.style == "string" ? n.date[h.style] : ke(h.style) ? h.style.parsedOptions : void 0;
3174
+ a.push({
3175
+ type: C.literal,
3176
+ value: r.getDateTimeFormat(t, b).format(d)
3177
+ });
3178
+ continue;
3179
+ }
3180
+ if (It(h)) {
3181
+ var b = typeof h.style == "string" ? n.time[h.style] : ke(h.style) ? h.style.parsedOptions : n.time.medium;
3182
+ a.push({
3183
+ type: C.literal,
3184
+ value: r.getDateTimeFormat(t, b).format(d)
3185
+ });
3186
+ continue;
3187
+ }
3188
+ if (Ct(h)) {
3189
+ var b = typeof h.style == "string" ? n.number[h.style] : Rt(h.style) ? h.style.parsedOptions : void 0;
3190
+ b && b.scale && (d = d * (b.scale || 1)), a.push({
3191
+ type: C.literal,
3192
+ value: r.getNumberFormat(t, b).format(d)
3193
+ });
3194
+ continue;
3195
+ }
3196
+ if (Lt(h)) {
3197
+ var v = h.children, _ = h.value, S = i[_];
3198
+ if (!Cn(S))
3199
+ throw new Bn(_, "function", s);
3200
+ var R = xe(v, t, r, n, i, o), I = S(R.map(function(N) {
3201
+ return N.value;
3202
+ }));
3203
+ Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(N) {
3204
+ return {
3205
+ type: typeof N == "string" ? C.literal : C.object,
3206
+ value: N
3207
+ };
3208
+ }));
3209
+ }
3210
+ if (Ot(h)) {
3211
+ var T = h.options[d] || h.options.other;
3212
+ if (!T)
3213
+ throw new pt(h.value, d, Object.keys(h.options), s);
3214
+ a.push.apply(a, xe(T.value, t, r, n, i));
3215
+ continue;
3216
+ }
3217
+ if (Mt(h)) {
3218
+ var T = h.options["=".concat(d)];
3219
+ if (!T) {
3220
+ if (!Intl.PluralRules)
3221
+ throw new Be(`Intl.PluralRules is not available in this environment.
3222
+ Try polyfilling it using "@formatjs/intl-pluralrules"
3223
+ `, ie.MISSING_INTL_API, s);
3224
+ var H = r.getPluralRules(t, { type: h.pluralType }).select(d - (h.offset || 0));
3225
+ T = h.options[H] || h.options.other;
3226
+ }
3227
+ if (!T)
3228
+ throw new pt(h.value, d, Object.keys(h.options), s);
3229
+ a.push.apply(a, xe(T.value, t, r, n, i, d - (h.offset || 0)));
3230
+ continue;
3231
+ }
3232
+ }
3233
+ return Pn(a);
3234
+ }
3235
+ function Nn(e, t) {
3236
+ return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3237
+ return r[n] = g(g({}, e[n]), t[n] || {}), r;
3238
+ }, {})) : e;
3239
+ }
3240
+ function In(e, t) {
3241
+ return t ? Object.keys(e).reduce(function(r, n) {
3242
+ return r[n] = Nn(e[n], t[n]), r;
3243
+ }, g({}, e)) : e;
3244
+ }
3245
+ function Re(e) {
3246
+ return {
3247
+ create: function() {
3248
+ return {
3249
+ get: function(t) {
3250
+ return e[t];
3251
+ },
3252
+ set: function(t, r) {
3253
+ e[t] = r;
3254
+ }
3255
+ };
3256
+ }
3257
+ };
3258
+ }
3259
+ function On(e) {
3260
+ return e === void 0 && (e = {
3261
+ number: {},
3262
+ dateTime: {},
3263
+ pluralRules: {}
3264
+ }), {
3265
+ getNumberFormat: Me(function() {
3266
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3267
+ r[n] = arguments[n];
3268
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ie([void 0], r, !1)))();
3269
+ }, {
3270
+ cache: Re(e.number),
3271
+ strategy: Le.variadic
3272
+ }),
3273
+ getDateTimeFormat: Me(function() {
3274
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3275
+ r[n] = arguments[n];
3276
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ie([void 0], r, !1)))();
3277
+ }, {
3278
+ cache: Re(e.dateTime),
3279
+ strategy: Le.variadic
3280
+ }),
3281
+ getPluralRules: Me(function() {
3282
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3283
+ r[n] = arguments[n];
3284
+ return new ((t = Intl.PluralRules).bind.apply(t, Ie([void 0], r, !1)))();
3285
+ }, {
3286
+ cache: Re(e.pluralRules),
3287
+ strategy: Le.variadic
3288
+ })
3289
+ };
3290
+ }
3291
+ var Mn = (
3292
+ /** @class */
3293
+ function() {
3294
+ function e(t, r, n, i) {
3295
+ var o = this;
3296
+ if (r === void 0 && (r = e.defaultLocale), this.formatterCache = {
3297
+ number: {},
3298
+ dateTime: {},
3299
+ pluralRules: {}
3300
+ }, this.format = function(l) {
3301
+ var u = o.formatToParts(l);
3302
+ if (u.length === 1)
3303
+ return u[0].value;
3304
+ var h = u.reduce(function(f, d) {
3305
+ return !f.length || d.type !== C.literal || typeof f[f.length - 1] != "string" ? f.push(d.value) : f[f.length - 1] += d.value, f;
3306
+ }, []);
3307
+ return h.length <= 1 ? h[0] || "" : h;
3308
+ }, this.formatToParts = function(l) {
3309
+ return xe(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3310
+ }, this.resolvedOptions = function() {
3311
+ var l;
3312
+ return {
3313
+ locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3314
+ };
3315
+ }, this.getAst = function() {
3316
+ return o.ast;
3317
+ }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3318
+ if (this.message = t, !e.__parse)
3319
+ throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3320
+ var s = i || {};
3321
+ s.formatters;
3322
+ var a = jr(s, ["formatters"]);
3323
+ this.ast = e.__parse(t, g(g({}, a), { locale: this.resolvedLocale }));
3324
+ } else
3325
+ this.ast = t;
3326
+ if (!Array.isArray(this.ast))
3327
+ throw new TypeError("A message must be provided as a String or AST.");
3328
+ this.formats = In(e.formats, n), this.formatters = i && i.formatters || On(this.formatterCache);
3329
+ }
3330
+ return Object.defineProperty(e, "defaultLocale", {
3331
+ get: function() {
3332
+ return e.memoizedDefaultLocale || (e.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), e.memoizedDefaultLocale;
3333
+ },
3334
+ enumerable: !1,
3335
+ configurable: !0
3336
+ }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3337
+ if (typeof Intl.Locale != "undefined") {
3338
+ var r = Intl.NumberFormat.supportedLocalesOf(t);
3339
+ return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3340
+ }
3341
+ }, e.__parse = En, e.formats = {
3342
+ number: {
3343
+ integer: {
3344
+ maximumFractionDigits: 0
3345
+ },
3346
+ currency: {
3347
+ style: "currency"
3348
+ },
3349
+ percent: {
3350
+ style: "percent"
3351
+ }
3352
+ },
3353
+ date: {
3354
+ short: {
3355
+ month: "numeric",
3356
+ day: "numeric",
3357
+ year: "2-digit"
3358
+ },
3359
+ medium: {
3360
+ month: "short",
3361
+ day: "numeric",
3362
+ year: "numeric"
3363
+ },
3364
+ long: {
3365
+ month: "long",
3366
+ day: "numeric",
3367
+ year: "numeric"
3368
+ },
3369
+ full: {
3370
+ weekday: "long",
3371
+ month: "long",
3372
+ day: "numeric",
3373
+ year: "numeric"
3374
+ }
3375
+ },
3376
+ time: {
3377
+ short: {
3378
+ hour: "numeric",
3379
+ minute: "numeric"
3380
+ },
3381
+ medium: {
3382
+ hour: "numeric",
3383
+ minute: "numeric",
3384
+ second: "numeric"
3385
+ },
3386
+ long: {
3387
+ hour: "numeric",
3388
+ minute: "numeric",
3389
+ second: "numeric",
3390
+ timeZoneName: "short"
3391
+ },
3392
+ full: {
3393
+ hour: "numeric",
3394
+ minute: "numeric",
3395
+ second: "numeric",
3396
+ timeZoneName: "short"
3397
+ }
3398
+ }
3399
+ }, e;
3400
+ }()
3401
+ );
3402
+ function Ln(e, t) {
3403
+ if (t == null)
3404
+ return;
3405
+ if (t in e)
3406
+ return e[t];
3407
+ const r = t.split(".");
3408
+ let n = e;
3409
+ for (let i = 0; i < r.length; i++)
3410
+ if (typeof n == "object") {
3411
+ if (i > 0) {
3412
+ const o = r.slice(i, r.length).join(".");
3413
+ if (o in n) {
3414
+ n = n[o];
3415
+ break;
3416
+ }
3417
+ }
3418
+ n = n[r[i]];
3419
+ } else
3420
+ n = void 0;
3421
+ return n;
3422
+ }
3423
+ const k = {}, Rn = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), zt = (e, t) => {
3424
+ if (t == null)
3425
+ return;
3426
+ if (t in k && e in k[t])
3427
+ return k[t][e];
3428
+ const r = we(t);
3429
+ for (let n = 0; n < r.length; n++) {
3430
+ const i = r[n], o = Un(i, e);
3431
+ if (o)
3432
+ return Rn(e, t, o);
3433
+ }
3434
+ };
3435
+ let Ke;
3436
+ const ue = He({});
3437
+ function $n(e) {
3438
+ return Ke[e] || null;
3439
+ }
3440
+ function Wt(e) {
3441
+ return e in Ke;
3442
+ }
3443
+ function Un(e, t) {
3444
+ if (!Wt(e))
3445
+ return null;
3446
+ const r = $n(e);
3447
+ return Ln(r, t);
3448
+ }
3449
+ function Dn(e) {
3450
+ if (e == null)
3451
+ return;
3452
+ const t = we(e);
3453
+ for (let r = 0; r < t.length; r++) {
3454
+ const n = t[r];
3455
+ if (Wt(n))
3456
+ return n;
3457
+ }
3458
+ }
3459
+ function Zt(e, ...t) {
3460
+ delete k[e], ue.update((r) => (r[e] = kr.all([r[e] || {}, ...t]), r));
3461
+ }
3462
+ ae(
3463
+ [ue],
3464
+ ([e]) => Object.keys(e)
3465
+ );
3466
+ ue.subscribe((e) => Ke = e);
3467
+ const _e = {};
3468
+ function Fn(e, t) {
3469
+ _e[e].delete(t), _e[e].size === 0 && delete _e[e];
3470
+ }
3471
+ function Jt(e) {
3472
+ return _e[e];
3473
+ }
3474
+ function Gn(e) {
3475
+ return we(e).map((t) => {
3476
+ const r = Jt(t);
3477
+ return [t, r ? [...r] : []];
3478
+ }).filter(([, t]) => t.length > 0);
3479
+ }
3480
+ function Ze(e) {
3481
+ return e == null ? !1 : we(e).some(
3482
+ (t) => {
3483
+ var r;
3484
+ return (r = Jt(t)) == null ? void 0 : r.size;
3485
+ }
3486
+ );
3487
+ }
3488
+ function kn(e, t) {
3489
+ return Promise.all(
3490
+ t.map((n) => (Fn(e, n), n().then((i) => i.default || i)))
3491
+ ).then((n) => Zt(e, ...n));
3492
+ }
3493
+ const he = {};
3494
+ function Qt(e) {
3495
+ if (!Ze(e))
3496
+ return e in he ? he[e] : Promise.resolve();
3497
+ const t = Gn(e);
3498
+ return he[e] = Promise.all(
3499
+ t.map(
3500
+ ([r, n]) => kn(r, n)
3501
+ )
3502
+ ).then(() => {
3503
+ if (Ze(e))
3504
+ return Qt(e);
3505
+ delete he[e];
3506
+ }), he[e];
3507
+ }
3508
+ const jn = {
3509
+ number: {
3510
+ scientific: { notation: "scientific" },
3511
+ engineering: { notation: "engineering" },
3512
+ compactLong: { notation: "compact", compactDisplay: "long" },
3513
+ compactShort: { notation: "compact", compactDisplay: "short" }
3514
+ },
3515
+ date: {
3516
+ short: { month: "numeric", day: "numeric", year: "2-digit" },
3517
+ medium: { month: "short", day: "numeric", year: "numeric" },
3518
+ long: { month: "long", day: "numeric", year: "numeric" },
3519
+ full: { weekday: "long", month: "long", day: "numeric", year: "numeric" }
3520
+ },
3521
+ time: {
3522
+ short: { hour: "numeric", minute: "numeric" },
3523
+ medium: { hour: "numeric", minute: "numeric", second: "numeric" },
3524
+ long: {
3525
+ hour: "numeric",
3526
+ minute: "numeric",
3527
+ second: "numeric",
3528
+ timeZoneName: "short"
3529
+ },
3530
+ full: {
3531
+ hour: "numeric",
3532
+ minute: "numeric",
3533
+ second: "numeric",
3534
+ timeZoneName: "short"
3535
+ }
3536
+ }
3537
+ }, Vn = {
3538
+ fallbackLocale: null,
3539
+ loadingDelay: 200,
3540
+ formats: jn,
3541
+ warnOnMissingMessages: !0,
3542
+ handleMissingMessage: void 0,
3543
+ ignoreTag: !0
3544
+ }, Xn = Vn;
3545
+ function oe() {
3546
+ return Xn;
3547
+ }
3548
+ const $e = He(!1);
3549
+ var zn = Object.defineProperty, Wn = Object.defineProperties, Zn = Object.getOwnPropertyDescriptors, bt = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qn = (e, t) => {
3550
+ for (var r in t || (t = {}))
3551
+ Jn.call(t, r) && gt(e, r, t[r]);
3552
+ if (bt)
3553
+ for (var r of bt(t))
3554
+ Qn.call(t, r) && gt(e, r, t[r]);
3555
+ return e;
3556
+ }, Yn = (e, t) => Wn(e, Zn(t));
3557
+ let Je;
3558
+ const Se = He(null);
3559
+ function vt(e) {
3560
+ return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3561
+ }
3562
+ function we(e, t = oe().fallbackLocale) {
3563
+ const r = vt(e);
3564
+ return t ? [.../* @__PURE__ */ new Set([...r, ...vt(t)])] : r;
3565
+ }
3566
+ function J() {
3567
+ return Je != null ? Je : void 0;
3568
+ }
3569
+ Se.subscribe((e) => {
3570
+ Je = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3571
+ });
3572
+ const Kn = (e) => {
3573
+ if (e && Dn(e) && Ze(e)) {
3574
+ const { loadingDelay: t } = oe();
3575
+ let r;
3576
+ return typeof window != "undefined" && J() != null && t ? r = window.setTimeout(
3577
+ () => $e.set(!0),
3578
+ t
3579
+ ) : $e.set(!0), Qt(e).then(() => {
3580
+ Se.set(e);
3581
+ }).finally(() => {
3582
+ clearTimeout(r), $e.set(!1);
3583
+ });
3584
+ }
3585
+ return Se.set(e);
3586
+ }, W = Yn(qn({}, Se), {
3587
+ set: Kn
3588
+ }), Pe = (e) => {
3589
+ const t = /* @__PURE__ */ Object.create(null);
3590
+ return (n) => {
3591
+ const i = JSON.stringify(n);
3592
+ return i in t ? t[i] : t[i] = e(n);
3593
+ };
3594
+ };
3595
+ var ei = Object.defineProperty, Te = Object.getOwnPropertySymbols, qt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
3596
+ for (var r in t || (t = {}))
3597
+ qt.call(t, r) && yt(e, r, t[r]);
3598
+ if (Te)
3599
+ for (var r of Te(t))
3600
+ Yt.call(t, r) && yt(e, r, t[r]);
3601
+ return e;
3602
+ }, le = (e, t) => {
3603
+ var r = {};
3604
+ for (var n in e)
3605
+ qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3606
+ if (e != null && Te)
3607
+ for (var n of Te(e))
3608
+ t.indexOf(n) < 0 && Yt.call(e, n) && (r[n] = e[n]);
3609
+ return r;
3610
+ };
3611
+ const me = (e, t) => {
3612
+ const { formats: r } = oe();
3613
+ if (e in r && t in r[e])
3614
+ return r[e][t];
3615
+ throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3616
+ }, ti = Pe(
3617
+ (e) => {
3618
+ var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
3619
+ if (r == null)
3620
+ throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3621
+ return n && (i = me("number", n)), new Intl.NumberFormat(r, i);
3622
+ }
3623
+ ), ri = Pe(
3624
+ (e) => {
3625
+ var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
3626
+ if (r == null)
3627
+ throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3628
+ return n ? i = me("date", n) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(r, i);
3629
+ }
3630
+ ), ni = Pe(
3631
+ (e) => {
3632
+ var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
3633
+ if (r == null)
3634
+ throw new Error(
3635
+ '[svelte-i18n] A "locale" must be set to format time values'
3636
+ );
3637
+ return n ? i = me("time", n) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(r, i);
3638
+ }
3639
+ ), ii = (e = {}) => {
3640
+ var t = e, {
3641
+ locale: r = J()
3642
+ } = t, n = le(t, [
3643
+ "locale"
3644
+ ]);
3645
+ return ti(et({ locale: r }, n));
3646
+ }, oi = (e = {}) => {
3647
+ var t = e, {
3648
+ locale: r = J()
3649
+ } = t, n = le(t, [
3650
+ "locale"
3651
+ ]);
3652
+ return ri(et({ locale: r }, n));
3653
+ }, si = (e = {}) => {
3654
+ var t = e, {
3655
+ locale: r = J()
3656
+ } = t, n = le(t, [
3657
+ "locale"
3658
+ ]);
3659
+ return ni(et({ locale: r }, n));
3660
+ }, ai = Pe(
3661
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3662
+ (e, t = J()) => new Mn(e, t, oe().formats, {
3663
+ ignoreTag: oe().ignoreTag
3664
+ })
3665
+ ), ui = (e, t = {}) => {
3666
+ var r, n, i, o;
3667
+ let s = t;
3668
+ typeof e == "object" && (s = e, e = s.id);
3669
+ const {
3670
+ values: a,
3671
+ locale: l = J(),
3672
+ default: u
3673
+ } = s;
3674
+ if (l == null)
3675
+ throw new Error(
3676
+ "[svelte-i18n] Cannot format a message without first setting the initial locale."
3677
+ );
3678
+ let h = zt(e, l);
3679
+ if (!h)
3680
+ h = (o = (i = (n = (r = oe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3681
+ else if (typeof h != "string")
3682
+ return console.warn(
3683
+ `[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.`
3684
+ ), h;
3685
+ if (!a)
3686
+ return h;
3687
+ let f = h;
3688
+ try {
3689
+ f = ai(h, l).format(a);
3690
+ } catch (d) {
3691
+ d instanceof Error && console.warn(
3692
+ `[svelte-i18n] Message "${e}" has syntax error:`,
3693
+ d.message
3694
+ );
3695
+ }
3696
+ return f;
3697
+ }, li = (e, t) => si(t).format(e), hi = (e, t) => oi(t).format(e), ci = (e, t) => ii(t).format(e), fi = (e, t = J()) => zt(e, t), di = ae([W, ue], () => ui);
3698
+ ae([W], () => li);
3699
+ ae([W], () => hi);
3700
+ ae([W], () => ci);
3701
+ ae([W, ue], () => fi);
3702
+ function mi({ withLocale: e, translations: t }) {
3703
+ W.subscribe((r) => {
3704
+ r == null && (ue.set(t), W.set(e));
3705
+ });
3706
+ }
3707
+ function Et(e, t) {
3708
+ Zt(e, t);
3709
+ }
3710
+ const xt = {
3711
+ en: {
3712
+ title: "Please enter the verification code you received on your number",
3713
+ errorTitle: "Your code was invalid, you can resend the code and try again",
3714
+ code: "Sms code",
3715
+ smsCodeError: "Invalid sms code, you can resend the code",
3716
+ resendMessage: "A new verification code has been sent to your phone number.",
3717
+ activate: "Activate Account",
3718
+ resend: "Resend",
3719
+ loginSMSHint: "A new verification code has been sent to your phone number"
3720
+ },
3721
+ "zh-hk": {
3722
+ title: "请输入您在号码上收到的验证码",
3723
+ errorTitle: "您的代码无效,您可以重新发送代码并重试",
3724
+ code: "短信代码",
3725
+ smsCodeError: "短信验证码无效,请重新发送验证码",
3726
+ resendMessage: "新的验证码已发送至您的手机号码",
3727
+ activate: "激活账户",
3728
+ resend: "重发"
3729
+ },
3730
+ fr: {
3731
+ title: "Veuillez entrer le code de vérification que vous avez reçu sur votre numéro",
3732
+ errorTitle: "Votre code n'était pas valide, vous pouvez renvoyer le code et réessayer",
3733
+ code: "Code SMS",
3734
+ smsCodeError: "Code sms invalide, vous pouvez renvoyer le code",
3735
+ resendMessage: "Un nouveau code de vérification a été envoyé à votre numéro de téléphone.",
3736
+ activate: "Activer le compte",
3737
+ resend: "Renvoyer"
3738
+ },
3739
+ tr: {
3740
+ title: "Please enter the verification code you received on your number",
3741
+ errorTitle: "Kodunuz geçersizdi, kodu tekrar gönderip tekrar deneyebilirsiniz",
3742
+ code: "SMS kodu",
3743
+ smsCodeError: "Geçersiz sms kodu, kodu tekrar gönderebilirsiniz",
3744
+ resendMessage: "Telefon numaranıza yeni bir doğrulama kodu gönderildi.",
3745
+ activate: "Aktif hesap",
3746
+ resend: "Yeniden gönder",
3747
+ loginSMSHint: "Telefon numaranıza yeni bir doğrulama kodu gönderildi"
3748
+ },
3749
+ ro: {
3750
+ title: "Please enter the verification code you received on your number",
3751
+ errorTitle: "Your code was invalid, you can resend the code and try again",
3752
+ code: "Sms code",
3753
+ smsCodeError: "Invalid sms code, you can resend the code",
3754
+ resendMessage: "Un nou cod de verificare a fost trimis catre numarul dumneavoastra.",
3755
+ activate: "Activate Account",
3756
+ resend: "Resend"
3757
+ },
3758
+ es: {
3759
+ title: "Por favor ingrese su código de verificación enviado por mensaje de texto a su número de telefono",
3760
+ errorTitle: "Su código es invalido",
3761
+ code: "Código SMS",
3762
+ smsCodeError: "Código SMS invalido",
3763
+ resendMessage: "Un nuevo codigo de verificación ha sido enviado a tu número celular.",
3764
+ activate: "Activar Cuenta",
3765
+ resend: "Reenviar"
3766
+ },
3767
+ pt: {
3768
+ title: "Please enter the verification code you received on your number",
3769
+ errorTitle: "Your code was invalid, you can resend the code and try again",
3770
+ code: "Sms code",
3771
+ smsCodeError: "Invalid sms code, you can resend the code",
3772
+ resendMessage: "Um novo código de verificação foi enviado para o seu número de telefone.",
3773
+ activate: "Activate Account",
3774
+ resend: "Resend"
3775
+ },
3776
+ hr: {
3777
+ title: "Unesite verifikacijski kod koji ste primili na svoj broj telefona",
3778
+ errorTitle: "Vaš kod je nevažeći",
3779
+ code: "Sms kod",
3780
+ smsCodeError: "Nevažeći sms kod",
3781
+ resendMessage: "Novi verifkacijski kod poslan je na vaš broj telefona.",
3782
+ activate: "Aktiviraj račun",
3783
+ resend: "Ponovno pošalji",
3784
+ loginSMSHint: "Novi verifkacijski kod poslan je na vaš broj telefona"
3785
+ },
3786
+ "pt-br": {
3787
+ title: "Por favor, insira o código de verificação que você recebeu no seu número de celular",
3788
+ errorTitle: "Código inválido,vôce pode reenviar o código e tentar novamente",
3789
+ code: "Código SMS",
3790
+ smsCodeError: "Código SMS inválido,vôce pode reenviar o código",
3791
+ resendMessage: "Um novo código de verificação foi enviado para o seu número de celular.",
3792
+ activate: "Ativar conta",
3793
+ resend: "Reenviar",
3794
+ loginSMSHint: "Um novo código de verificação foi enviado para o seu número de celular."
3795
+ },
3796
+ "es-mx": {
3797
+ title: "Por favor ingrese el código de verificación que recibió en su número móvil",
3798
+ errorTitle: "Código inválido,Puede enviar el código e intentar de nuevo",
3799
+ code: "Código SMS",
3800
+ smsCodeError: "Código SMS inválido,Puede reenviar el código",
3801
+ resendMessage: "Un nuevo código de verificación ha sido enviado a su número móvil .",
3802
+ activate: "Activar Cuenta",
3803
+ resend: "Reenviar",
3804
+ loginSMSHint: "Un nuevo código de verificación ha sido enviado a su número móvil ."
3805
+ }
3806
+ };
3807
+ function pi(e) {
3808
+ sr(e, "svelte-6sviug", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emfe-w-registration-contrast, var(--emfe-w-color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input,.Field select{width:100%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));background:var(--emfe-w-color-pale, #FBECF4);color:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C))}.Field.Hidden{display:none}.LoginSMSHint{margin-top:20px}.InvalidInput{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.Button{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emfe-w-registration-color-bg, var(--emfe-w-color-gray-50, #F9F8F8));color:var(--emfe-w-registration-typography, var(--emfe-w-color-contrast, #07072A))}");
3809
+ }
3810
+ function bi(e) {
3811
+ let t = (
3812
+ /*$_*/
3813
+ e[5]("errorTitle") + ""
3814
+ ), r;
3815
+ return {
3816
+ c() {
3817
+ r = L(t);
3818
+ },
3819
+ m(n, i) {
3820
+ Z(n, r, i);
3821
+ },
3822
+ p(n, i) {
3823
+ i & /*$_*/
3824
+ 32 && t !== (t = /*$_*/
3825
+ n[5]("errorTitle") + "") && G(r, t);
3826
+ },
3827
+ d(n) {
3828
+ n && j(r);
3829
+ }
3830
+ };
3831
+ }
3832
+ function gi(e) {
3833
+ let t = (
3834
+ /*$_*/
3835
+ e[5]("title") + ""
3836
+ ), r;
3837
+ return {
3838
+ c() {
3839
+ r = L(t);
3840
+ },
3841
+ m(n, i) {
3842
+ Z(n, r, i);
3843
+ },
3844
+ p(n, i) {
3845
+ i & /*$_*/
3846
+ 32 && t !== (t = /*$_*/
3847
+ n[5]("title") + "") && G(r, t);
3848
+ },
3849
+ d(n) {
3850
+ n && j(r);
3851
+ }
3852
+ };
3853
+ }
3854
+ function _t(e) {
3855
+ let t, r = (
3856
+ /*$_*/
3857
+ e[5]("smsCodeError") + ""
3858
+ ), n;
3859
+ return {
3860
+ c() {
3861
+ t = M("p"), n = L(r), A(t, "class", "InvalidInput");
3862
+ },
3863
+ m(i, o) {
3864
+ Z(i, t, o), E(t, n);
3865
+ },
3866
+ p(i, o) {
3867
+ o & /*$_*/
3868
+ 32 && r !== (r = /*$_*/
3869
+ i[5]("smsCodeError") + "") && G(n, r);
3870
+ },
3871
+ d(i) {
3872
+ i && j(t);
3873
+ }
3874
+ };
3875
+ }
3876
+ function St(e) {
3877
+ let t, r = (
3878
+ /*$_*/
3879
+ e[5]("resendMessage") + ""
3880
+ ), n;
3881
+ return {
3882
+ c() {
3883
+ t = M("p"), n = L(r), A(t, "class", "SmsVerificationResendMessage");
3884
+ },
3885
+ m(i, o) {
3886
+ Z(i, t, o), E(t, n);
3887
+ },
3888
+ p(i, o) {
3889
+ o & /*$_*/
3890
+ 32 && r !== (r = /*$_*/
3891
+ i[5]("resendMessage") + "") && G(n, r);
3892
+ },
3893
+ d(i) {
3894
+ i && j(t);
3895
+ }
3896
+ };
3897
+ }
3898
+ function Tt(e) {
3899
+ let t, r, n = (
3900
+ /*secondsLeft*/
3901
+ e[4] < 10 ? "0" : ""
3902
+ ), i, o, s;
3903
+ return {
3904
+ c() {
3905
+ t = M("span"), r = L("(0:"), i = L(n), o = L(
3906
+ /*secondsLeft*/
3907
+ e[4]
3908
+ ), s = L(")"), A(t, "class", "SmsVerificationResendTimer");
3909
+ },
3910
+ m(a, l) {
3911
+ Z(a, t, l), E(t, r), E(t, i), E(t, o), E(t, s);
3912
+ },
3913
+ p(a, l) {
3914
+ l & /*secondsLeft*/
3915
+ 16 && n !== (n = /*secondsLeft*/
3916
+ a[4] < 10 ? "0" : "") && G(i, n), l & /*secondsLeft*/
3917
+ 16 && G(
3918
+ o,
3919
+ /*secondsLeft*/
3920
+ a[4]
3921
+ );
3922
+ },
3923
+ d(a) {
3924
+ a && j(t);
3925
+ }
3926
+ };
3927
+ }
3928
+ function vi(e) {
3929
+ let t, r, n, i, o, s = (
3930
+ /*$_*/
3931
+ e[5]("code") + ""
3932
+ ), a, l, u, h, f, d, b, v, _, S, R = (
3933
+ /*$_*/
3934
+ e[5]("activate") + ""
3935
+ ), I, T, H, N = (
3936
+ /*$_*/
3937
+ e[5]("resend") + ""
3938
+ ), D, V, Q, pe;
3939
+ function be(c, y) {
3940
+ return (
3941
+ /*isSmsValid*/
3942
+ c[2] ? gi : bi
3943
+ );
3944
+ }
3945
+ let X = be(e), O = X(e), B = !/*isSmsValid*/
3946
+ e[2] && _t(e), w = (
3947
+ /*timer*/
3948
+ e[3] && St(e)
3949
+ ), P = (
3950
+ /*timer*/
3951
+ e[3] && Tt(e)
3952
+ );
3953
+ return {
3954
+ c() {
3955
+ t = M("div"), r = M("h3"), O.c(), n = z(), i = M("div"), o = M("label"), a = L(s), l = L(":"), u = M("span"), u.textContent = "*", h = z(), f = M("input"), d = z(), B && B.c(), v = z(), w && w.c(), _ = z(), S = M("button"), I = L(R), T = z(), H = M("button"), D = L(N), V = z(), P && P.c(), A(r, "class", "Title"), A(u, "class", "FormRequired"), A(o, "for", "SmsCode"), A(f, "type", "text"), A(f, "id", "SmsCode"), A(f, "inputmode", "numeric"), A(f, "pattern", "[0-9]*"), A(f, "maxlength", "6"), A(i, "class", b = "Field SmsVerificationField " + (/*isSmsValid*/
3956
+ e[2] ? "" : "InvalidField")), A(S, "class", "Button SmsVerificationValidate"), A(H, "class", "Button SmsVerificationResend"), H.disabled = /*timer*/
3957
+ e[3], A(t, "class", "Container SmsVerificationContainer");
3958
+ },
3959
+ m(c, y) {
3960
+ Z(c, t, y), E(t, r), O.m(r, null), E(t, n), E(t, i), E(i, o), E(o, a), E(o, l), E(o, u), E(i, h), E(i, f), ot(
3961
+ f,
3962
+ /*smsCode*/
3963
+ e[1]
3964
+ ), E(i, d), B && B.m(i, null), E(t, v), w && w.m(t, null), E(t, _), E(t, S), E(S, I), E(t, T), E(t, H), E(H, D), E(H, V), P && P.m(H, null), e[19](t), Q || (pe = [
3965
+ ve(
3966
+ f,
3967
+ "input",
3968
+ /*input_input_handler*/
3969
+ e[17]
3970
+ ),
3971
+ ve(
3972
+ f,
3973
+ "keydown",
3974
+ /*keydown_handler*/
3975
+ e[18]
3976
+ ),
3977
+ ve(
3978
+ S,
3979
+ "click",
3980
+ /*activateUser*/
3981
+ e[6]
3982
+ ),
3983
+ ve(
3984
+ H,
3985
+ "click",
3986
+ /*resendCode*/
3987
+ e[7]
3988
+ )
3989
+ ], Q = !0);
3990
+ },
3991
+ p(c, [y]) {
3992
+ X === (X = be(c)) && O ? O.p(c, y) : (O.d(1), O = X(c), O && (O.c(), O.m(r, null))), y & /*$_*/
3993
+ 32 && s !== (s = /*$_*/
3994
+ c[5]("code") + "") && G(a, s), y & /*smsCode*/
3995
+ 2 && f.value !== /*smsCode*/
3996
+ c[1] && ot(
3997
+ f,
3998
+ /*smsCode*/
3999
+ c[1]
4000
+ ), /*isSmsValid*/
4001
+ c[2] ? B && (B.d(1), B = null) : B ? B.p(c, y) : (B = _t(c), B.c(), B.m(i, null)), y & /*isSmsValid*/
4002
+ 4 && b !== (b = "Field SmsVerificationField " + (/*isSmsValid*/
4003
+ c[2] ? "" : "InvalidField")) && A(i, "class", b), /*timer*/
4004
+ c[3] ? w ? w.p(c, y) : (w = St(c), w.c(), w.m(t, _)) : w && (w.d(1), w = null), y & /*$_*/
4005
+ 32 && R !== (R = /*$_*/
4006
+ c[5]("activate") + "") && G(I, R), y & /*$_*/
4007
+ 32 && N !== (N = /*$_*/
4008
+ c[5]("resend") + "") && G(D, N), /*timer*/
4009
+ c[3] ? P ? P.p(c, y) : (P = Tt(c), P.c(), P.m(H, null)) : P && (P.d(1), P = null), y & /*timer*/
4010
+ 8 && (H.disabled = /*timer*/
4011
+ c[3]);
4012
+ },
4013
+ i: U,
4014
+ o: U,
4015
+ d(c) {
4016
+ c && j(t), O.d(), B && B.d(), w && w.d(), P && P.d(), e[19](null), Q = !1, se(pe);
4017
+ }
4018
+ };
4019
+ }
4020
+ function yi(e, t, r) {
4021
+ let n;
4022
+ or(e, di, (c) => r(5, n = c));
4023
+ let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: s = "" } = t, { smstemplate: a = "Please use this code {0} to activate your accout" } = t, { number: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, d, b = !0, v = !1, _, S, R = +localStorage.getItem("smsTimer") || 0, I = Date.now() / 1e3 - R, T = 60 - Math.floor(I);
4024
+ const H = { numeric: /^[0-9]{0,6}$/ };
4025
+ mi({ withLocale: "en", translations: {} });
4026
+ const N = () => {
4027
+ fetch(f).then((y) => y.json()).then((y) => {
4028
+ Object.keys(y).forEach((q) => {
4029
+ Et(q, y[q]);
4030
+ });
4031
+ }).catch((y) => {
4032
+ console.log(y);
4033
+ });
4034
+ };
4035
+ Object.keys(xt).forEach((c) => {
4036
+ Et(c, xt[c]);
4037
+ });
4038
+ const D = () => ge(this, null, function* () {
4039
+ try {
4040
+ if ((yield fetch(`${i}/v1/player/${s}/activateSMS?tokenId=${o}&validationCode=${d}`, {
4041
+ headers: {
4042
+ "Content-Type": "application/json",
4043
+ accept: "application/json"
4044
+ }
4045
+ })).ok)
4046
+ r(2, b = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
4047
+ else
4048
+ throw window.postMessage(
4049
+ {
4050
+ type: "WidgetNotification",
4051
+ data: {
4052
+ type: "error",
4053
+ message: "Could not activate user"
4054
+ }
4055
+ },
4056
+ window.location.href
4057
+ ), r(2, b = !1), new Error("Could not activate user");
4058
+ } catch (c) {
4059
+ console.log(c);
4060
+ }
4061
+ }), V = () => ge(this, null, function* () {
4062
+ localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), X();
4063
+ try {
4064
+ const c = yield fetch(`${i}/v1/player/sms/token`, {
4065
+ method: "POST",
4066
+ headers: {
4067
+ "Content-Type": "application/json",
4068
+ accept: "application/json"
4069
+ },
4070
+ body: JSON.stringify({
4071
+ userId: s,
4072
+ messageTemplate: a,
4073
+ destination: l
4074
+ })
4075
+ }), y = yield c.json();
4076
+ if (c.ok)
4077
+ r(9, o = y.id), v = !1, Q();
4078
+ else
4079
+ throw v = !0, new Error("Failed to fetch");
4080
+ } catch (c) {
4081
+ v = !0, console.error(c);
4082
+ }
4083
+ }), Q = () => {
4084
+ T > 0 ? r(4, T--, T) : (clearInterval(_), r(3, _ = !1), r(4, T = 60));
4085
+ }, pe = () => {
4086
+ let c = document.createElement("style");
4087
+ c.innerHTML = u, S.appendChild(c);
4088
+ }, be = () => {
4089
+ let c = new URL(h), y = document.createElement("style");
4090
+ fetch(c.href).then((q) => q.text()).then((q) => {
4091
+ y.innerHTML = q, setTimeout(
4092
+ () => {
4093
+ S.appendChild(y);
4094
+ },
4095
+ 1
4096
+ ), setTimeout(
4097
+ () => {
4098
+ },
4099
+ 500
4100
+ );
4101
+ });
4102
+ }, X = () => {
4103
+ I < 60 && r(3, _ = setInterval(
4104
+ () => {
4105
+ Q();
4106
+ },
4107
+ 1e3
4108
+ ));
4109
+ }, O = (c) => {
4110
+ !H.numeric.test(c.key) && c.keyCode !== 8 && c.keyCode !== 9 && c.keyCode !== 46 && c.preventDefault();
4111
+ };
4112
+ fr(() => {
4113
+ if (!s || !l) {
4114
+ let c = JSON.parse(localStorage.getItem("playerData"));
4115
+ r(10, s = c.playerid), r(11, l = c.number);
4116
+ }
4117
+ X();
4118
+ });
4119
+ function B() {
4120
+ d = this.value, r(1, d);
4121
+ }
4122
+ const w = (c) => O(c);
4123
+ function P(c) {
4124
+ Ue[c ? "unshift" : "push"](() => {
4125
+ S = c, r(0, S);
4126
+ });
4127
+ }
4128
+ return e.$$set = (c) => {
4129
+ "endpoint" in c && r(12, i = c.endpoint), "tokenid" in c && r(9, o = c.tokenid), "playerid" in c && r(10, s = c.playerid), "smstemplate" in c && r(13, a = c.smstemplate), "number" in c && r(11, l = c.number), "clientstyling" in c && r(14, u = c.clientstyling), "clientstylingurl" in c && r(15, h = c.clientstylingurl), "translationurl" in c && r(16, f = c.translationurl);
4130
+ }, e.$$.update = () => {
4131
+ e.$$.dirty & /*tokenid, playerid, endpoint*/
4132
+ 5632, e.$$.dirty & /*clientstyling, customStylingContainer*/
4133
+ 16385 && u && S && pe(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4134
+ 32769 && h && S && be(), e.$$.dirty & /*translationurl*/
4135
+ 65536 && f && N();
4136
+ }, [
4137
+ S,
4138
+ d,
4139
+ b,
4140
+ _,
4141
+ T,
4142
+ n,
4143
+ D,
4144
+ V,
4145
+ O,
4146
+ o,
4147
+ s,
4148
+ l,
4149
+ i,
4150
+ a,
4151
+ u,
4152
+ h,
4153
+ f,
4154
+ B,
4155
+ w,
4156
+ P
4157
+ ];
4158
+ }
4159
+ class Ei extends Tr {
4160
+ constructor(t) {
4161
+ super(), _r(
4162
+ this,
4163
+ t,
4164
+ yi,
4165
+ vi,
4166
+ At,
4167
+ {
4168
+ endpoint: 12,
4169
+ tokenid: 9,
4170
+ playerid: 10,
4171
+ smstemplate: 13,
4172
+ number: 11,
4173
+ clientstyling: 14,
4174
+ clientstylingurl: 15,
4175
+ translationurl: 16
4176
+ },
4177
+ pi
4178
+ );
4179
+ }
4180
+ get endpoint() {
4181
+ return this.$$.ctx[12];
4182
+ }
4183
+ set endpoint(t) {
4184
+ this.$$set({ endpoint: t }), F();
4185
+ }
4186
+ get tokenid() {
4187
+ return this.$$.ctx[9];
4188
+ }
4189
+ set tokenid(t) {
4190
+ this.$$set({ tokenid: t }), F();
4191
+ }
4192
+ get playerid() {
4193
+ return this.$$.ctx[10];
4194
+ }
4195
+ set playerid(t) {
4196
+ this.$$set({ playerid: t }), F();
4197
+ }
4198
+ get smstemplate() {
4199
+ return this.$$.ctx[13];
4200
+ }
4201
+ set smstemplate(t) {
4202
+ this.$$set({ smstemplate: t }), F();
4203
+ }
4204
+ get number() {
4205
+ return this.$$.ctx[11];
4206
+ }
4207
+ set number(t) {
4208
+ this.$$set({ number: t }), F();
4209
+ }
4210
+ get clientstyling() {
4211
+ return this.$$.ctx[14];
4212
+ }
4213
+ set clientstyling(t) {
4214
+ this.$$set({ clientstyling: t }), F();
4215
+ }
4216
+ get clientstylingurl() {
4217
+ return this.$$.ctx[15];
4218
+ }
4219
+ set clientstylingurl(t) {
4220
+ this.$$set({ clientstylingurl: t }), F();
4221
+ }
4222
+ get translationurl() {
4223
+ return this.$$.ctx[16];
4224
+ }
4225
+ set translationurl(t) {
4226
+ this.$$set({ translationurl: t }), F();
4227
+ }
4228
+ }
4229
+ Sr(Ei, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4230
+ export {
4231
+ Ei as default
4232
+ };