@everymatrix/cashier-header 1.54.4 → 1.54.8

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