@everymatrix/cashier-receipt-page 1.0.69 → 1.0.71

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