@everymatrix/cashier-page 1.77.15 → 1.77.16

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