@everymatrix/general-player-sms-verification-form 1.54.6 → 1.54.9

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