@everymatrix/cashier-methods-list 1.0.69 → 1.0.71

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