@everymatrix/cashier-verifications 1.75.1 → 1.76.1

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.
@@ -1,109 +1,109 @@
1
- import { n as me, s as Qt, a as kr, r as Ur, i as Fr, c as Vr, S as Gr, b as jr, f as ie, d as $r, e as he, t as ye, g as fe, h as K, j as oe, k as Et, o as zr, l as Wr, m as Ne, p as wt, q as Xr, u as He, v as qr, w as ne, x as bt, y as Yr, z as Zr, A as Jr, B as Qr, C as Kr } from "./CashierModal-CJNZu7RJ.js";
2
- const be = [];
3
- function ei(e, t) {
1
+ import { n as ve, s as Fr, r as Vr, a as Qt, i as Gr, c as jr, S as $r, b as zr, f as ne, d as Wr, e as z, g as j, t as Ee, h as oe, j as se, k as _t, o as Xr, l as qr, m as Yr, p as Zr, q as Et, u as xe, v as wt, w as Y, x as Z, y as Jr, z as mt, A as Qr, B as Kr, C as ei } from "./CashierModal-QwoYnwWm.js";
2
+ const ye = [];
3
+ function ti(e, t) {
4
4
  return {
5
- subscribe: Me(e, t).subscribe
5
+ subscribe: De(e, t).subscribe
6
6
  };
7
7
  }
8
- function Me(e, t = me) {
8
+ function De(e, t = ve) {
9
9
  let r;
10
10
  const i = /* @__PURE__ */ new Set();
11
11
  function n(a) {
12
12
  if (Qt(e, a) && (e = a, r)) {
13
- const u = !be.length;
14
- for (const l of i)
15
- l[1](), be.push(l, e);
16
- if (u) {
17
- for (let l = 0; l < be.length; l += 2)
18
- be[l][0](be[l + 1]);
19
- be.length = 0;
13
+ const l = !ye.length;
14
+ for (const f of i)
15
+ f[1](), ye.push(f, e);
16
+ if (l) {
17
+ for (let f = 0; f < ye.length; f += 2)
18
+ ye[f][0](ye[f + 1]);
19
+ ye.length = 0;
20
20
  }
21
21
  }
22
22
  }
23
23
  function o(a) {
24
24
  n(a(e));
25
25
  }
26
- function s(a, u = me) {
27
- const l = [a, u];
28
- return i.add(l), i.size === 1 && (r = t(n, o) || me), a(e), () => {
29
- i.delete(l), i.size === 0 && r && (r(), r = null);
26
+ function s(a, l = ve) {
27
+ const f = [a, l];
28
+ return i.add(f), i.size === 1 && (r = t(n, o) || ve), a(e), () => {
29
+ i.delete(f), i.size === 0 && r && (r(), r = null);
30
30
  };
31
31
  }
32
32
  return { set: n, update: o, subscribe: s };
33
33
  }
34
- function Se(e, t, r) {
34
+ function He(e, t, r) {
35
35
  const i = !Array.isArray(e), n = i ? [e] : e;
36
36
  if (!n.every(Boolean))
37
37
  throw new Error("derived() expects stores as input, got a falsy value");
38
38
  const o = t.length < 2;
39
- return ei(r, (s, a) => {
40
- let u = !1;
41
- const l = [];
42
- let f = 0, g = me;
43
- const p = () => {
44
- if (f)
39
+ return ti(r, (s, a) => {
40
+ let l = !1;
41
+ const f = [];
42
+ let h = 0, m = ve;
43
+ const d = () => {
44
+ if (h)
45
45
  return;
46
- g();
47
- const S = t(i ? l[0] : l, s, a);
48
- o ? s(S) : g = Fr(S) ? S : me;
49
- }, x = n.map(
50
- (S, d) => kr(
51
- S,
52
- (M) => {
53
- l[d] = M, f &= ~(1 << d), u && p();
46
+ m();
47
+ const _ = t(i ? f[0] : f, s, a);
48
+ o ? s(_) : m = Gr(_) ? _ : ve;
49
+ }, y = n.map(
50
+ (_, c) => Fr(
51
+ _,
52
+ (b) => {
53
+ f[c] = b, h &= ~(1 << c), l && d();
54
54
  },
55
55
  () => {
56
- f |= 1 << d;
56
+ h |= 1 << c;
57
57
  }
58
58
  )
59
59
  );
60
- return u = !0, p(), function() {
61
- Ur(x), g(), u = !1;
60
+ return l = !0, d(), function() {
61
+ Vr(y), m(), l = !1;
62
62
  };
63
63
  });
64
64
  }
65
65
  var Kt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
66
- function yt(e) {
66
+ function vt(e) {
67
67
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
68
68
  }
69
- var ti = function(t) {
70
- return ri(t) && !ii(t);
69
+ var ri = function(t) {
70
+ return ii(t) && !ni(t);
71
71
  };
72
- function ri(e) {
72
+ function ii(e) {
73
73
  return !!e && typeof e == "object";
74
74
  }
75
- function ii(e) {
75
+ function ni(e) {
76
76
  var t = Object.prototype.toString.call(e);
77
- return t === "[object RegExp]" || t === "[object Date]" || si(e);
78
- }
79
- var ni = typeof Symbol == "function" && Symbol.for, oi = ni ? Symbol.for("react.element") : 60103;
80
- function si(e) {
81
- return e.$$typeof === oi;
77
+ return t === "[object RegExp]" || t === "[object Date]" || ai(e);
82
78
  }
79
+ var oi = typeof Symbol == "function" && Symbol.for, si = oi ? Symbol.for("react.element") : 60103;
83
80
  function ai(e) {
81
+ return e.$$typeof === si;
82
+ }
83
+ function ui(e) {
84
84
  return Array.isArray(e) ? [] : {};
85
85
  }
86
- function Ae(e, t) {
87
- return t.clone !== !1 && t.isMergeableObject(e) ? xe(ai(e), e, t) : e;
86
+ function Me(e, t) {
87
+ return t.clone !== !1 && t.isMergeableObject(e) ? we(ui(e), e, t) : e;
88
88
  }
89
- function ui(e, t, r) {
89
+ function li(e, t, r) {
90
90
  return e.concat(t).map(function(i) {
91
- return Ae(i, r);
91
+ return Me(i, r);
92
92
  });
93
93
  }
94
- function li(e, t) {
94
+ function hi(e, t) {
95
95
  if (!t.customMerge)
96
- return xe;
96
+ return we;
97
97
  var r = t.customMerge(e);
98
- return typeof r == "function" ? r : xe;
98
+ return typeof r == "function" ? r : we;
99
99
  }
100
- function hi(e) {
100
+ function fi(e) {
101
101
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
102
102
  return Object.propertyIsEnumerable.call(e, t);
103
103
  }) : [];
104
104
  }
105
105
  function St(e) {
106
- return Object.keys(e).concat(hi(e));
106
+ return Object.keys(e).concat(fi(e));
107
107
  }
108
108
  function er(e, t) {
109
109
  try {
@@ -112,59 +112,73 @@ function er(e, t) {
112
112
  return !1;
113
113
  }
114
114
  }
115
- function fi(e, t) {
115
+ function ci(e, t) {
116
116
  return er(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
117
117
  }
118
- function ci(e, t, r) {
118
+ function di(e, t, r) {
119
119
  var i = {};
120
120
  return r.isMergeableObject(e) && St(e).forEach(function(n) {
121
- i[n] = Ae(e[n], r);
121
+ i[n] = Me(e[n], r);
122
122
  }), St(t).forEach(function(n) {
123
- fi(e, n) || (er(e, n) && r.isMergeableObject(t[n]) ? i[n] = li(n, r)(e[n], t[n], r) : i[n] = Ae(t[n], r));
123
+ ci(e, n) || (er(e, n) && r.isMergeableObject(t[n]) ? i[n] = hi(n, r)(e[n], t[n], r) : i[n] = Me(t[n], r));
124
124
  }), i;
125
125
  }
126
- function xe(e, t, r) {
127
- r = r || {}, r.arrayMerge = r.arrayMerge || ui, r.isMergeableObject = r.isMergeableObject || ti, r.cloneUnlessOtherwiseSpecified = Ae;
126
+ function we(e, t, r) {
127
+ r = r || {}, r.arrayMerge = r.arrayMerge || li, r.isMergeableObject = r.isMergeableObject || ri, r.cloneUnlessOtherwiseSpecified = Me;
128
128
  var i = Array.isArray(t), n = Array.isArray(e), o = i === n;
129
- return o ? i ? r.arrayMerge(e, t, r) : ci(e, t, r) : Ae(t, r);
129
+ return o ? i ? r.arrayMerge(e, t, r) : di(e, t, r) : Me(t, r);
130
130
  }
131
- xe.all = function(t, r) {
131
+ we.all = function(t, r) {
132
132
  if (!Array.isArray(t))
133
133
  throw new Error("first argument should be an array");
134
134
  return t.reduce(function(i, n) {
135
- return xe(i, n, r);
135
+ return we(i, n, r);
136
136
  }, {});
137
137
  };
138
- var di = xe, pi = di;
139
- const mi = /* @__PURE__ */ yt(pi);
140
- var nt = function(e, t) {
141
- return nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
138
+ var pi = we, mi = pi;
139
+ const vi = /* @__PURE__ */ vt(mi);
140
+ /*! *****************************************************************************
141
+ Copyright (c) Microsoft Corporation.
142
+
143
+ Permission to use, copy, modify, and/or distribute this software for any
144
+ purpose with or without fee is hereby granted.
145
+
146
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
147
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
148
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
149
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
150
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
151
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
152
+ PERFORMANCE OF THIS SOFTWARE.
153
+ ***************************************************************************** */
154
+ var it = function(e, t) {
155
+ return it = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
142
156
  r.__proto__ = i;
143
157
  } || function(r, i) {
144
158
  for (var n in i)
145
159
  Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
146
- }, nt(e, t);
160
+ }, it(e, t);
147
161
  };
148
- function We(e, t) {
162
+ function ue(e, t) {
149
163
  if (typeof t != "function" && t !== null)
150
164
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
151
- nt(e, t);
165
+ it(e, t);
152
166
  function r() {
153
167
  this.constructor = e;
154
168
  }
155
169
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
156
170
  }
157
- var Q = function() {
158
- return Q = Object.assign || function(t) {
171
+ var C = function() {
172
+ return C = Object.assign || function(t) {
159
173
  for (var r, i = 1, n = arguments.length; i < n; i++) {
160
174
  r = arguments[i];
161
175
  for (var o in r)
162
176
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
163
177
  }
164
178
  return t;
165
- }, Q.apply(this, arguments);
179
+ }, C.apply(this, arguments);
166
180
  };
167
- function vi(e, t) {
181
+ function gi(e, t) {
168
182
  var r = {};
169
183
  for (var i in e)
170
184
  Object.prototype.hasOwnProperty.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
@@ -173,117 +187,141 @@ function vi(e, t) {
173
187
  t.indexOf(i[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[n]) && (r[i[n]] = e[i[n]]);
174
188
  return r;
175
189
  }
176
- function Je(e, t, r) {
190
+ function nt(e) {
191
+ var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], i = 0;
192
+ if (r)
193
+ return r.call(e);
194
+ if (e && typeof e.length == "number")
195
+ return {
196
+ next: function() {
197
+ return e && i >= e.length && (e = void 0), { value: e && e[i++], done: !e };
198
+ }
199
+ };
200
+ throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
201
+ }
202
+ function ot(e, t) {
203
+ var r = typeof Symbol == "function" && e[Symbol.iterator];
204
+ if (!r)
205
+ return e;
206
+ var i = r.call(e), n, o = [], s;
207
+ try {
208
+ for (; (t === void 0 || t-- > 0) && !(n = i.next()).done; )
209
+ o.push(n.value);
210
+ } catch (a) {
211
+ s = { error: a };
212
+ } finally {
213
+ try {
214
+ n && !n.done && (r = i.return) && r.call(i);
215
+ } finally {
216
+ if (s)
217
+ throw s.error;
218
+ }
219
+ }
220
+ return o;
221
+ }
222
+ function _e(e, t, r) {
177
223
  if (r || arguments.length === 2)
178
224
  for (var i = 0, n = t.length, o; i < n; i++)
179
225
  (o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
180
- return e.concat(o || Array.prototype.slice.call(t));
226
+ return e.concat(o || t);
181
227
  }
182
- function Qe(e, t) {
183
- var r = t && t.cache ? t.cache : wi, i = t && t.serializer ? t.serializer : _i, n = t && t.strategy ? t.strategy : yi;
228
+ function Ze(e, t) {
229
+ var r = t && t.cache ? t.cache : wi, i = t && t.serializer ? t.serializer : Ei, n = t && t.strategy ? t.strategy : yi;
184
230
  return n(e, {
185
231
  cache: r,
186
232
  serializer: i
187
233
  });
188
234
  }
189
- function gi(e) {
235
+ function bi(e) {
190
236
  return e == null || typeof e == "number" || typeof e == "boolean";
191
237
  }
192
- function bi(e, t, r, i) {
193
- var n = gi(i) ? i : r(i), o = t.get(n);
238
+ function tr(e, t, r, i) {
239
+ var n = bi(i) ? i : r(i), o = t.get(n);
194
240
  return typeof o > "u" && (o = e.call(this, i), t.set(n, o)), o;
195
241
  }
196
- function tr(e, t, r) {
242
+ function rr(e, t, r) {
197
243
  var i = Array.prototype.slice.call(arguments, 3), n = r(i), o = t.get(n);
198
244
  return typeof o > "u" && (o = e.apply(this, i), t.set(n, o)), o;
199
245
  }
200
- function rr(e, t, r, i, n) {
246
+ function gt(e, t, r, i, n) {
201
247
  return r.bind(t, e, i, n);
202
248
  }
203
249
  function yi(e, t) {
204
- var r = e.length === 1 ? bi : tr;
205
- return rr(e, this, r, t.cache.create(), t.serializer);
250
+ var r = e.length === 1 ? tr : rr;
251
+ return gt(e, this, r, t.cache.create(), t.serializer);
206
252
  }
207
253
  function xi(e, t) {
208
- return rr(e, this, tr, t.cache.create(), t.serializer);
254
+ return gt(e, this, rr, t.cache.create(), t.serializer);
255
+ }
256
+ function _i(e, t) {
257
+ return gt(e, this, tr, t.cache.create(), t.serializer);
209
258
  }
210
- var _i = function() {
259
+ var Ei = function() {
211
260
  return JSON.stringify(arguments);
212
- }, Ei = (
213
- /** @class */
214
- function() {
215
- function e() {
216
- this.cache = /* @__PURE__ */ Object.create(null);
217
- }
218
- return e.prototype.get = function(t) {
219
- return this.cache[t];
220
- }, e.prototype.set = function(t, r) {
221
- this.cache[t] = r;
222
- }, e;
223
- }()
224
- ), wi = {
261
+ };
262
+ function bt() {
263
+ this.cache = /* @__PURE__ */ Object.create(null);
264
+ }
265
+ bt.prototype.get = function(e) {
266
+ return this.cache[e];
267
+ };
268
+ bt.prototype.set = function(e, t) {
269
+ this.cache[e] = t;
270
+ };
271
+ var wi = {
225
272
  create: function() {
226
- return new Ei();
273
+ return new bt();
227
274
  }
228
- }, Ke = {
229
- variadic: xi
230
- }, Ge = function() {
231
- return Ge = Object.assign || function(t) {
232
- for (var r, i = 1, n = arguments.length; i < n; i++) {
233
- r = arguments[i];
234
- for (var o in r)
235
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
236
- }
237
- return t;
238
- }, Ge.apply(this, arguments);
239
- };
240
- var P;
275
+ }, Je = {
276
+ variadic: xi,
277
+ monadic: _i
278
+ }, O;
241
279
  (function(e) {
242
280
  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";
243
- })(P || (P = {}));
244
- var I;
281
+ })(O || (O = {}));
282
+ var L;
245
283
  (function(e) {
246
284
  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";
247
- })(I || (I = {}));
248
- var _e;
285
+ })(L || (L = {}));
286
+ var Se;
249
287
  (function(e) {
250
288
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
251
- })(_e || (_e = {}));
289
+ })(Se || (Se = {}));
252
290
  function Tt(e) {
253
- return e.type === I.literal;
291
+ return e.type === L.literal;
254
292
  }
255
293
  function Si(e) {
256
- return e.type === I.argument;
294
+ return e.type === L.argument;
257
295
  }
258
296
  function ir(e) {
259
- return e.type === I.number;
297
+ return e.type === L.number;
260
298
  }
261
299
  function nr(e) {
262
- return e.type === I.date;
300
+ return e.type === L.date;
263
301
  }
264
302
  function or(e) {
265
- return e.type === I.time;
303
+ return e.type === L.time;
266
304
  }
267
305
  function sr(e) {
268
- return e.type === I.select;
306
+ return e.type === L.select;
269
307
  }
270
308
  function ar(e) {
271
- return e.type === I.plural;
309
+ return e.type === L.plural;
272
310
  }
273
311
  function Ti(e) {
274
- return e.type === I.pound;
312
+ return e.type === L.pound;
275
313
  }
276
314
  function ur(e) {
277
- return e.type === I.tag;
315
+ return e.type === L.tag;
278
316
  }
279
317
  function lr(e) {
280
- return !!(e && typeof e == "object" && e.type === _e.number);
318
+ return !!(e && typeof e == "object" && e.type === Se.number);
281
319
  }
282
- function ot(e) {
283
- return !!(e && typeof e == "object" && e.type === _e.dateTime);
320
+ function st(e) {
321
+ return !!(e && typeof e == "object" && e.type === Se.dateTime);
284
322
  }
285
323
  var hr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pi = /(?:[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;
286
- function Oi(e) {
324
+ function Hi(e) {
287
325
  var t = {};
288
326
  return e.replace(Pi, function(r) {
289
327
  var i = r.length;
@@ -374,32 +412,22 @@ function Oi(e) {
374
412
  return "";
375
413
  }), t;
376
414
  }
377
- var L = function() {
378
- return L = Object.assign || function(t) {
379
- for (var r, i = 1, n = arguments.length; i < n; i++) {
380
- r = arguments[i];
381
- for (var o in r)
382
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
383
- }
384
- return t;
385
- }, L.apply(this, arguments);
386
- };
387
- var Hi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
415
+ var Oi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
388
416
  function Ai(e) {
389
417
  if (e.length === 0)
390
418
  throw new Error("Number skeleton cannot be empty");
391
- for (var t = e.split(Hi).filter(function(p) {
392
- return p.length > 0;
419
+ for (var t = e.split(Oi).filter(function(d) {
420
+ return d.length > 0;
393
421
  }), r = [], i = 0, n = t; i < n.length; i++) {
394
422
  var o = n[i], s = o.split("/");
395
423
  if (s.length === 0)
396
424
  throw new Error("Invalid number skeleton");
397
- for (var a = s[0], u = s.slice(1), l = 0, f = u; l < f.length; l++) {
398
- var g = f[l];
399
- if (g.length === 0)
425
+ for (var a = s[0], l = s.slice(1), f = 0, h = l; f < h.length; f++) {
426
+ var m = h[f];
427
+ if (m.length === 0)
400
428
  throw new Error("Invalid number skeleton");
401
429
  }
402
- r.push({ stem: a, options: u });
430
+ r.push({ stem: a, options: l });
403
431
  }
404
432
  return r;
405
433
  }
@@ -407,7 +435,7 @@ function Bi(e) {
407
435
  return e.replace(/^(.*?)-/, "");
408
436
  }
409
437
  var Pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, fr = /^(@+)?(\+|#+)?[rs]?$/g, Mi = /(\*)(0+)|(#+)(0+)|(0+)/g, cr = /^(0+)$/;
410
- function Ot(e) {
438
+ function Ht(e) {
411
439
  var t = {};
412
440
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(fr, function(r, i, n) {
413
441
  return typeof n != "string" ? (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length) : n === "+" ? t.minimumSignificantDigits = i.length : i[0] === "#" ? t.maximumSignificantDigits = i.length : (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length + (typeof n == "string" ? n.length : 0)), "";
@@ -467,11 +495,11 @@ function Ci(e) {
467
495
  }
468
496
  return t;
469
497
  }
470
- function Ht(e) {
498
+ function Ot(e) {
471
499
  var t = {}, r = dr(e);
472
500
  return r || t;
473
501
  }
474
- function Ii(e) {
502
+ function Di(e) {
475
503
  for (var t = {}, r = 0, i = e; r < i.length; r++) {
476
504
  var n = i[r];
477
505
  switch (n.stem) {
@@ -506,13 +534,13 @@ function Ii(e) {
506
534
  t.notation = "compact", t.compactDisplay = "long";
507
535
  continue;
508
536
  case "scientific":
509
- t = L(L(L({}, t), { notation: "scientific" }), n.options.reduce(function(u, l) {
510
- return L(L({}, u), Ht(l));
537
+ t = C(C(C({}, t), { notation: "scientific" }), n.options.reduce(function(l, f) {
538
+ return C(C({}, l), Ot(f));
511
539
  }, {}));
512
540
  continue;
513
541
  case "engineering":
514
- t = L(L(L({}, t), { notation: "engineering" }), n.options.reduce(function(u, l) {
515
- return L(L({}, u), Ht(l));
542
+ t = C(C(C({}, t), { notation: "engineering" }), n.options.reduce(function(l, f) {
543
+ return C(C({}, l), Ot(f));
516
544
  }, {}));
517
545
  continue;
518
546
  case "notation-simple":
@@ -557,13 +585,13 @@ function Ii(e) {
557
585
  case "integer-width":
558
586
  if (n.options.length > 1)
559
587
  throw new RangeError("integer-width stems only accept a single optional option");
560
- n.options[0].replace(Mi, function(u, l, f, g, p, x) {
561
- if (l)
562
- t.minimumIntegerDigits = f.length;
588
+ n.options[0].replace(Mi, function(l, f, h, m, d, y) {
589
+ if (f)
590
+ t.minimumIntegerDigits = h.length;
563
591
  else {
564
- if (g && p)
592
+ if (m && d)
565
593
  throw new Error("We currently do not support maximum integer digits");
566
- if (x)
594
+ if (y)
567
595
  throw new Error("We currently do not support exact integer digits");
568
596
  }
569
597
  return "";
@@ -577,21 +605,21 @@ function Ii(e) {
577
605
  if (Pt.test(n.stem)) {
578
606
  if (n.options.length > 1)
579
607
  throw new RangeError("Fraction-precision stems only accept a single optional option");
580
- n.stem.replace(Pt, function(u, l, f, g, p, x) {
581
- return f === "*" ? t.minimumFractionDigits = l.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : p && x ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + x.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
608
+ n.stem.replace(Pt, function(l, f, h, m, d, y) {
609
+ return h === "*" ? t.minimumFractionDigits = f.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : d && y ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + y.length) : (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length), "";
582
610
  });
583
611
  var o = n.options[0];
584
- o === "w" ? t = L(L({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = L(L({}, t), Ot(o)));
612
+ o === "w" ? t = C(C({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = C(C({}, t), Ht(o)));
585
613
  continue;
586
614
  }
587
615
  if (fr.test(n.stem)) {
588
- t = L(L({}, t), Ot(n.stem));
616
+ t = C(C({}, t), Ht(n.stem));
589
617
  continue;
590
618
  }
591
619
  var s = dr(n.stem);
592
- s && (t = L(L({}, t), s));
620
+ s && (t = C(C({}, t), s));
593
621
  var a = Ci(n.stem);
594
- a && (t = L(L({}, t), a));
622
+ a && (t = C(C({}, t), a));
595
623
  }
596
624
  return t;
597
625
  }
@@ -2010,17 +2038,17 @@ var Re = {
2010
2038
  "h"
2011
2039
  ]
2012
2040
  };
2013
- function Di(e, t) {
2041
+ function Ii(e, t) {
2014
2042
  for (var r = "", i = 0; i < e.length; i++) {
2015
2043
  var n = e.charAt(i);
2016
2044
  if (n === "j") {
2017
2045
  for (var o = 0; i + 1 < e.length && e.charAt(i + 1) === n; )
2018
2046
  o++, i++;
2019
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = Li(t);
2020
- for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
2021
- r += u;
2047
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", f = Li(t);
2048
+ for ((f == "H" || f == "k") && (a = 0); a-- > 0; )
2049
+ r += l;
2022
2050
  for (; s-- > 0; )
2023
- r = l + r;
2051
+ r = f + r;
2024
2052
  } else
2025
2053
  n === "J" ? r += "H" : r += n;
2026
2054
  }
@@ -2048,18 +2076,18 @@ function Li(e) {
2048
2076
  var n = Re[i || ""] || Re[r || ""] || Re["".concat(r, "-001")] || Re["001"];
2049
2077
  return n[0];
2050
2078
  }
2051
- var et, Ni = new RegExp("^".concat(hr.source, "*")), Ri = new RegExp("".concat(hr.source, "*$"));
2052
- function O(e, t) {
2079
+ var Qe, Ni = new RegExp("^".concat(hr.source, "*")), Ri = new RegExp("".concat(hr.source, "*$"));
2080
+ function M(e, t) {
2053
2081
  return { start: e, end: t };
2054
2082
  }
2055
2083
  var ki = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ui = !!String.fromCodePoint, Fi = !!Object.fromEntries, Vi = !!String.prototype.codePointAt, Gi = !!String.prototype.trimStart, ji = !!String.prototype.trimEnd, $i = !!Number.isSafeInteger, zi = $i ? Number.isSafeInteger : function(e) {
2056
2084
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2057
- }, st = !0;
2085
+ }, at = !0;
2058
2086
  try {
2059
2087
  var Wi = mr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2060
- st = ((et = Wi.exec("a")) === null || et === void 0 ? void 0 : et[0]) === "a";
2088
+ at = ((Qe = Wi.exec("a")) === null || Qe === void 0 ? void 0 : Qe[0]) === "a";
2061
2089
  } catch {
2062
- st = !1;
2090
+ at = !1;
2063
2091
  }
2064
2092
  var At = ki ? (
2065
2093
  // Native
@@ -2071,7 +2099,7 @@ var At = ki ? (
2071
2099
  function(t, r, i) {
2072
2100
  return t.slice(i, i + r.length) === r;
2073
2101
  }
2074
- ), at = Ui ? String.fromCodePoint : (
2102
+ ), ut = Ui ? String.fromCodePoint : (
2075
2103
  // IE11
2076
2104
  function() {
2077
2105
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2133,24 +2161,24 @@ var At = ki ? (
2133
2161
  function mr(e, t) {
2134
2162
  return new RegExp(e, t);
2135
2163
  }
2136
- var ut;
2137
- if (st) {
2164
+ var lt;
2165
+ if (at) {
2138
2166
  var Mt = mr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2139
- ut = function(t, r) {
2167
+ lt = function(t, r) {
2140
2168
  var i;
2141
2169
  Mt.lastIndex = r;
2142
2170
  var n = Mt.exec(t);
2143
2171
  return (i = n[1]) !== null && i !== void 0 ? i : "";
2144
2172
  };
2145
2173
  } else
2146
- ut = function(t, r) {
2174
+ lt = function(t, r) {
2147
2175
  for (var i = []; ; ) {
2148
2176
  var n = pr(t, r);
2149
2177
  if (n === void 0 || vr(n) || Qi(n))
2150
2178
  break;
2151
2179
  i.push(n), r += n >= 65536 ? 2 : 1;
2152
2180
  }
2153
- return at.apply(void 0, i);
2181
+ return ut.apply(void 0, i);
2154
2182
  };
2155
2183
  var Yi = (
2156
2184
  /** @class */
@@ -2176,14 +2204,14 @@ var Yi = (
2176
2204
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
2177
2205
  var a = this.clonePosition();
2178
2206
  this.bump(), n.push({
2179
- type: I.pound,
2180
- location: O(a, this.clonePosition())
2207
+ type: L.pound,
2208
+ location: M(a, this.clonePosition())
2181
2209
  });
2182
2210
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2183
2211
  if (i)
2184
2212
  break;
2185
- return this.error(P.UNMATCHED_CLOSING_TAG, O(this.clonePosition(), this.clonePosition()));
2186
- } else if (o === 60 && !this.ignoreTag && lt(this.peek() || 0)) {
2213
+ return this.error(O.UNMATCHED_CLOSING_TAG, M(this.clonePosition(), this.clonePosition()));
2214
+ } else if (o === 60 && !this.ignoreTag && ht(this.peek() || 0)) {
2187
2215
  var s = this.parseTag(t, r);
2188
2216
  if (s.err)
2189
2217
  return s;
@@ -2204,9 +2232,9 @@ var Yi = (
2204
2232
  if (this.bumpSpace(), this.bumpIf("/>"))
2205
2233
  return {
2206
2234
  val: {
2207
- type: I.literal,
2235
+ type: L.literal,
2208
2236
  value: "<".concat(n, "/>"),
2209
- location: O(i, this.clonePosition())
2237
+ location: M(i, this.clonePosition())
2210
2238
  },
2211
2239
  err: null
2212
2240
  };
@@ -2216,22 +2244,22 @@ var Yi = (
2216
2244
  return o;
2217
2245
  var s = o.val, a = this.clonePosition();
2218
2246
  if (this.bumpIf("</")) {
2219
- if (this.isEOF() || !lt(this.char()))
2220
- return this.error(P.INVALID_TAG, O(a, this.clonePosition()));
2221
- var u = this.clonePosition(), l = this.parseTagName();
2222
- return n !== l ? this.error(P.UNMATCHED_CLOSING_TAG, O(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2247
+ if (this.isEOF() || !ht(this.char()))
2248
+ return this.error(O.INVALID_TAG, M(a, this.clonePosition()));
2249
+ var l = this.clonePosition(), f = this.parseTagName();
2250
+ return n !== f ? this.error(O.UNMATCHED_CLOSING_TAG, M(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2223
2251
  val: {
2224
- type: I.tag,
2252
+ type: L.tag,
2225
2253
  value: n,
2226
2254
  children: s,
2227
- location: O(i, this.clonePosition())
2255
+ location: M(i, this.clonePosition())
2228
2256
  },
2229
2257
  err: null
2230
- } : this.error(P.INVALID_TAG, O(a, this.clonePosition())));
2258
+ } : this.error(O.INVALID_TAG, M(a, this.clonePosition())));
2231
2259
  } else
2232
- return this.error(P.UNCLOSED_TAG, O(i, this.clonePosition()));
2260
+ return this.error(O.UNCLOSED_TAG, M(i, this.clonePosition()));
2233
2261
  } else
2234
- return this.error(P.INVALID_TAG, O(i, this.clonePosition()));
2262
+ return this.error(O.INVALID_TAG, M(i, this.clonePosition()));
2235
2263
  }, e.prototype.parseTagName = function() {
2236
2264
  var t = this.offset();
2237
2265
  for (this.bump(); !this.isEOF() && Ji(this.char()); )
@@ -2256,9 +2284,9 @@ var Yi = (
2256
2284
  }
2257
2285
  break;
2258
2286
  }
2259
- var u = O(i, this.clonePosition());
2287
+ var l = M(i, this.clonePosition());
2260
2288
  return {
2261
- val: { type: I.literal, value: n, location: u },
2289
+ val: { type: L.literal, value: n, location: l },
2262
2290
  err: null
2263
2291
  };
2264
2292
  }, e.prototype.tryParseLeftAngleBracket = function() {
@@ -2297,100 +2325,100 @@ var Yi = (
2297
2325
  r.push(i);
2298
2326
  this.bump();
2299
2327
  }
2300
- return at.apply(void 0, r);
2328
+ return ut.apply(void 0, r);
2301
2329
  }, e.prototype.tryParseUnquoted = function(t, r) {
2302
2330
  if (this.isEOF())
2303
2331
  return null;
2304
2332
  var i = this.char();
2305
- return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(), at(i));
2333
+ return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(), ut(i));
2306
2334
  }, e.prototype.parseArgument = function(t, r) {
2307
2335
  var i = this.clonePosition();
2308
2336
  if (this.bump(), this.bumpSpace(), this.isEOF())
2309
- return this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE, O(i, this.clonePosition()));
2337
+ return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(i, this.clonePosition()));
2310
2338
  if (this.char() === 125)
2311
- return this.bump(), this.error(P.EMPTY_ARGUMENT, O(i, this.clonePosition()));
2339
+ return this.bump(), this.error(O.EMPTY_ARGUMENT, M(i, this.clonePosition()));
2312
2340
  var n = this.parseIdentifierIfPossible().value;
2313
2341
  if (!n)
2314
- return this.error(P.MALFORMED_ARGUMENT, O(i, this.clonePosition()));
2342
+ return this.error(O.MALFORMED_ARGUMENT, M(i, this.clonePosition()));
2315
2343
  if (this.bumpSpace(), this.isEOF())
2316
- return this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE, O(i, this.clonePosition()));
2344
+ return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(i, this.clonePosition()));
2317
2345
  switch (this.char()) {
2318
2346
  case 125:
2319
2347
  return this.bump(), {
2320
2348
  val: {
2321
- type: I.argument,
2349
+ type: L.argument,
2322
2350
  // value does not include the opening and closing braces.
2323
2351
  value: n,
2324
- location: O(i, this.clonePosition())
2352
+ location: M(i, this.clonePosition())
2325
2353
  },
2326
2354
  err: null
2327
2355
  };
2328
2356
  case 44:
2329
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE, O(i, this.clonePosition())) : this.parseArgumentOptions(t, r, n, i);
2357
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(i, this.clonePosition())) : this.parseArgumentOptions(t, r, n, i);
2330
2358
  default:
2331
- return this.error(P.MALFORMED_ARGUMENT, O(i, this.clonePosition()));
2359
+ return this.error(O.MALFORMED_ARGUMENT, M(i, this.clonePosition()));
2332
2360
  }
2333
2361
  }, e.prototype.parseIdentifierIfPossible = function() {
2334
- var t = this.clonePosition(), r = this.offset(), i = ut(this.message, r), n = r + i.length;
2362
+ var t = this.clonePosition(), r = this.offset(), i = lt(this.message, r), n = r + i.length;
2335
2363
  this.bumpTo(n);
2336
- var o = this.clonePosition(), s = O(t, o);
2364
+ var o = this.clonePosition(), s = M(t, o);
2337
2365
  return { value: i, location: s };
2338
2366
  }, e.prototype.parseArgumentOptions = function(t, r, i, n) {
2339
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
2367
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2340
2368
  switch (a) {
2341
2369
  case "":
2342
- return this.error(P.EXPECT_ARGUMENT_TYPE, O(s, u));
2370
+ return this.error(O.EXPECT_ARGUMENT_TYPE, M(s, l));
2343
2371
  case "number":
2344
2372
  case "date":
2345
2373
  case "time": {
2346
2374
  this.bumpSpace();
2347
- var l = null;
2375
+ var f = null;
2348
2376
  if (this.bumpIf(",")) {
2349
2377
  this.bumpSpace();
2350
- var f = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
2351
- if (g.err)
2352
- return g;
2353
- var p = qi(g.val);
2354
- if (p.length === 0)
2355
- return this.error(P.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
2356
- var x = O(f, this.clonePosition());
2357
- l = { style: p, styleLocation: x };
2378
+ var h = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
2379
+ if (m.err)
2380
+ return m;
2381
+ var d = qi(m.val);
2382
+ if (d.length === 0)
2383
+ return this.error(O.EXPECT_ARGUMENT_STYLE, M(this.clonePosition(), this.clonePosition()));
2384
+ var y = M(h, this.clonePosition());
2385
+ f = { style: d, styleLocation: y };
2358
2386
  }
2359
- var S = this.tryParseArgumentClose(n);
2360
- if (S.err)
2361
- return S;
2362
- var d = O(n, this.clonePosition());
2363
- if (l && At(l?.style, "::", 0)) {
2364
- var M = Xi(l.style.slice(2));
2387
+ var _ = this.tryParseArgumentClose(n);
2388
+ if (_.err)
2389
+ return _;
2390
+ var c = M(n, this.clonePosition());
2391
+ if (f && At(f?.style, "::", 0)) {
2392
+ var b = Xi(f.style.slice(2));
2365
2393
  if (a === "number") {
2366
- var g = this.parseNumberSkeletonFromString(M, l.styleLocation);
2367
- return g.err ? g : {
2368
- val: { type: I.number, value: i, location: d, style: g.val },
2394
+ var m = this.parseNumberSkeletonFromString(b, f.styleLocation);
2395
+ return m.err ? m : {
2396
+ val: { type: L.number, value: i, location: c, style: m.val },
2369
2397
  err: null
2370
2398
  };
2371
2399
  } else {
2372
- if (M.length === 0)
2373
- return this.error(P.EXPECT_DATE_TIME_SKELETON, d);
2374
- var V = M;
2375
- this.locale && (V = Di(M, this.locale));
2376
- var p = {
2377
- type: _e.dateTime,
2378
- pattern: V,
2379
- location: l.styleLocation,
2380
- parsedOptions: this.shouldParseSkeletons ? Oi(V) : {}
2381
- }, k = a === "date" ? I.date : I.time;
2400
+ if (b.length === 0)
2401
+ return this.error(O.EXPECT_DATE_TIME_SKELETON, c);
2402
+ var A = b;
2403
+ this.locale && (A = Ii(b, this.locale));
2404
+ var d = {
2405
+ type: Se.dateTime,
2406
+ pattern: A,
2407
+ location: f.styleLocation,
2408
+ parsedOptions: this.shouldParseSkeletons ? Hi(A) : {}
2409
+ }, P = a === "date" ? L.date : L.time;
2382
2410
  return {
2383
- val: { type: k, value: i, location: d, style: p },
2411
+ val: { type: P, value: i, location: c, style: d },
2384
2412
  err: null
2385
2413
  };
2386
2414
  }
2387
2415
  }
2388
2416
  return {
2389
2417
  val: {
2390
- type: a === "number" ? I.number : a === "date" ? I.date : I.time,
2418
+ type: a === "number" ? L.number : a === "date" ? L.date : L.time,
2391
2419
  value: i,
2392
- location: d,
2393
- style: (o = l?.style) !== null && o !== void 0 ? o : null
2420
+ location: c,
2421
+ style: (o = f?.style) !== null && o !== void 0 ? o : null
2394
2422
  },
2395
2423
  err: null
2396
2424
  };
@@ -2398,52 +2426,52 @@ var Yi = (
2398
2426
  case "plural":
2399
2427
  case "selectordinal":
2400
2428
  case "select": {
2401
- var A = this.clonePosition();
2429
+ var D = this.clonePosition();
2402
2430
  if (this.bumpSpace(), !this.bumpIf(","))
2403
- return this.error(P.EXPECT_SELECT_ARGUMENT_OPTIONS, O(A, Ge({}, A)));
2431
+ return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, M(D, C({}, D)));
2404
2432
  this.bumpSpace();
2405
- var z = this.parseIdentifierIfPossible(), R = 0;
2406
- if (a !== "select" && z.value === "offset") {
2433
+ var q = this.parseIdentifierIfPossible(), R = 0;
2434
+ if (a !== "select" && q.value === "offset") {
2407
2435
  if (!this.bumpIf(":"))
2408
- return this.error(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O(this.clonePosition(), this.clonePosition()));
2436
+ return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M(this.clonePosition(), this.clonePosition()));
2409
2437
  this.bumpSpace();
2410
- var g = this.tryParseDecimalInteger(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, P.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2411
- if (g.err)
2412
- return g;
2413
- this.bumpSpace(), z = this.parseIdentifierIfPossible(), R = g.val;
2438
+ var m = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2439
+ if (m.err)
2440
+ return m;
2441
+ this.bumpSpace(), q = this.parseIdentifierIfPossible(), R = m.val;
2414
2442
  }
2415
- var U = this.tryParsePluralOrSelectOptions(t, a, r, z);
2416
- if (U.err)
2417
- return U;
2418
- var S = this.tryParseArgumentClose(n);
2419
- if (S.err)
2420
- return S;
2421
- var X = O(n, this.clonePosition());
2443
+ var F = this.tryParsePluralOrSelectOptions(t, a, r, q);
2444
+ if (F.err)
2445
+ return F;
2446
+ var _ = this.tryParseArgumentClose(n);
2447
+ if (_.err)
2448
+ return _;
2449
+ var J = M(n, this.clonePosition());
2422
2450
  return a === "select" ? {
2423
2451
  val: {
2424
- type: I.select,
2452
+ type: L.select,
2425
2453
  value: i,
2426
- options: Bt(U.val),
2427
- location: X
2454
+ options: Bt(F.val),
2455
+ location: J
2428
2456
  },
2429
2457
  err: null
2430
2458
  } : {
2431
2459
  val: {
2432
- type: I.plural,
2460
+ type: L.plural,
2433
2461
  value: i,
2434
- options: Bt(U.val),
2462
+ options: Bt(F.val),
2435
2463
  offset: R,
2436
2464
  pluralType: a === "plural" ? "cardinal" : "ordinal",
2437
- location: X
2465
+ location: J
2438
2466
  },
2439
2467
  err: null
2440
2468
  };
2441
2469
  }
2442
2470
  default:
2443
- return this.error(P.INVALID_ARGUMENT_TYPE, O(s, u));
2471
+ return this.error(O.INVALID_ARGUMENT_TYPE, M(s, l));
2444
2472
  }
2445
2473
  }, e.prototype.tryParseArgumentClose = function(t) {
2446
- return this.isEOF() || this.char() !== 125 ? this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE, O(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2474
+ return this.isEOF() || this.char() !== 125 ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2447
2475
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2448
2476
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2449
2477
  var i = this.char();
@@ -2452,7 +2480,7 @@ var Yi = (
2452
2480
  this.bump();
2453
2481
  var n = this.clonePosition();
2454
2482
  if (!this.bumpUntil("'"))
2455
- return this.error(P.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, O(n, this.clonePosition()));
2483
+ return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, M(n, this.clonePosition()));
2456
2484
  this.bump();
2457
2485
  break;
2458
2486
  }
@@ -2484,50 +2512,50 @@ var Yi = (
2484
2512
  try {
2485
2513
  i = Ai(t);
2486
2514
  } catch {
2487
- return this.error(P.INVALID_NUMBER_SKELETON, r);
2515
+ return this.error(O.INVALID_NUMBER_SKELETON, r);
2488
2516
  }
2489
2517
  return {
2490
2518
  val: {
2491
- type: _e.number,
2519
+ type: Se.number,
2492
2520
  tokens: i,
2493
2521
  location: r,
2494
- parsedOptions: this.shouldParseSkeletons ? Ii(i) : {}
2522
+ parsedOptions: this.shouldParseSkeletons ? Di(i) : {}
2495
2523
  },
2496
2524
  err: null
2497
2525
  };
2498
2526
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, i, n) {
2499
- for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = n.value, f = n.location; ; ) {
2500
- if (l.length === 0) {
2501
- var g = this.clonePosition();
2527
+ for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), f = n.value, h = n.location; ; ) {
2528
+ if (f.length === 0) {
2529
+ var m = this.clonePosition();
2502
2530
  if (r !== "select" && this.bumpIf("=")) {
2503
- var p = this.tryParseDecimalInteger(P.EXPECT_PLURAL_ARGUMENT_SELECTOR, P.INVALID_PLURAL_ARGUMENT_SELECTOR);
2504
- if (p.err)
2505
- return p;
2506
- f = O(g, this.clonePosition()), l = this.message.slice(g.offset, this.offset());
2531
+ var d = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR, O.INVALID_PLURAL_ARGUMENT_SELECTOR);
2532
+ if (d.err)
2533
+ return d;
2534
+ h = M(m, this.clonePosition()), f = this.message.slice(m.offset, this.offset());
2507
2535
  } else
2508
2536
  break;
2509
2537
  }
2510
- if (u.has(l))
2511
- return this.error(r === "select" ? P.DUPLICATE_SELECT_ARGUMENT_SELECTOR : P.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
2512
- l === "other" && (s = !0), this.bumpSpace();
2513
- var x = this.clonePosition();
2538
+ if (l.has(f))
2539
+ return this.error(r === "select" ? O.DUPLICATE_SELECT_ARGUMENT_SELECTOR : O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2540
+ f === "other" && (s = !0), this.bumpSpace();
2541
+ var y = this.clonePosition();
2514
2542
  if (!this.bumpIf("{"))
2515
- return this.error(r === "select" ? P.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : P.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, O(this.clonePosition(), this.clonePosition()));
2516
- var S = this.parseMessage(t + 1, r, i);
2517
- if (S.err)
2518
- return S;
2519
- var d = this.tryParseArgumentClose(x);
2520
- if (d.err)
2521
- return d;
2543
+ return this.error(r === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, M(this.clonePosition(), this.clonePosition()));
2544
+ var _ = this.parseMessage(t + 1, r, i);
2545
+ if (_.err)
2546
+ return _;
2547
+ var c = this.tryParseArgumentClose(y);
2548
+ if (c.err)
2549
+ return c;
2522
2550
  a.push([
2523
- l,
2551
+ f,
2524
2552
  {
2525
- value: S.val,
2526
- location: O(x, this.clonePosition())
2553
+ value: _.val,
2554
+ location: M(y, this.clonePosition())
2527
2555
  }
2528
- ]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, f = o.location;
2556
+ ]), l.add(f), this.bumpSpace(), o = this.parseIdentifierIfPossible(), f = o.value, h = o.location;
2529
2557
  }
2530
- return a.length === 0 ? this.error(r === "select" ? P.EXPECT_SELECT_ARGUMENT_SELECTOR : P.EXPECT_PLURAL_ARGUMENT_SELECTOR, O(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(P.MISSING_OTHER_CLAUSE, O(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
2558
+ return a.length === 0 ? this.error(r === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR : O.EXPECT_PLURAL_ARGUMENT_SELECTOR, M(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(O.MISSING_OTHER_CLAUSE, M(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
2531
2559
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
2532
2560
  var i = 1, n = this.clonePosition();
2533
2561
  this.bumpIf("+") || this.bumpIf("-") && (i = -1);
@@ -2538,8 +2566,8 @@ var Yi = (
2538
2566
  else
2539
2567
  break;
2540
2568
  }
2541
- var u = O(n, this.clonePosition());
2542
- return o ? (s *= i, zi(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
2569
+ var l = M(n, this.clonePosition());
2570
+ return o ? (s *= i, zi(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
2543
2571
  }, e.prototype.offset = function() {
2544
2572
  return this.position.offset;
2545
2573
  }, e.prototype.isEOF = function() {
@@ -2605,11 +2633,11 @@ var Yi = (
2605
2633
  }, e;
2606
2634
  }()
2607
2635
  );
2608
- function lt(e) {
2636
+ function ht(e) {
2609
2637
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
2610
2638
  }
2611
2639
  function Zi(e) {
2612
- return lt(e) || e === 47;
2640
+ return ht(e) || e === 47;
2613
2641
  }
2614
2642
  function Ji(e) {
2615
2643
  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;
@@ -2620,32 +2648,32 @@ function vr(e) {
2620
2648
  function Qi(e) {
2621
2649
  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;
2622
2650
  }
2623
- function ht(e) {
2651
+ function ft(e) {
2624
2652
  e.forEach(function(t) {
2625
2653
  if (delete t.location, sr(t) || ar(t))
2626
2654
  for (var r in t.options)
2627
- delete t.options[r].location, ht(t.options[r].value);
2655
+ delete t.options[r].location, ft(t.options[r].value);
2628
2656
  else
2629
- ir(t) && lr(t.style) || (nr(t) || or(t)) && ot(t.style) ? delete t.style.location : ur(t) && ht(t.children);
2657
+ ir(t) && lr(t.style) || (nr(t) || or(t)) && st(t.style) ? delete t.style.location : ur(t) && ft(t.children);
2630
2658
  });
2631
2659
  }
2632
2660
  function Ki(e, t) {
2633
- t === void 0 && (t = {}), t = Ge({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
2661
+ t === void 0 && (t = {}), t = C({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
2634
2662
  var r = new Yi(e, t).parse();
2635
2663
  if (r.err) {
2636
- var i = SyntaxError(P[r.err.kind]);
2664
+ var i = SyntaxError(O[r.err.kind]);
2637
2665
  throw i.location = r.err.location, i.originalMessage = r.err.message, i;
2638
2666
  }
2639
- return t?.captureLocation || ht(r.val), r.val;
2667
+ return t?.captureLocation || ft(r.val), r.val;
2640
2668
  }
2641
- var Ee;
2669
+ var Te;
2642
2670
  (function(e) {
2643
2671
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
2644
- })(Ee || (Ee = {}));
2645
- var Xe = (
2672
+ })(Te || (Te = {}));
2673
+ var ze = (
2646
2674
  /** @class */
2647
2675
  function(e) {
2648
- We(t, e);
2676
+ ue(t, e);
2649
2677
  function t(r, i, n) {
2650
2678
  var o = e.call(this, r) || this;
2651
2679
  return o.code = i, o.originalMessage = n, o;
@@ -2657,38 +2685,38 @@ var Xe = (
2657
2685
  ), Ct = (
2658
2686
  /** @class */
2659
2687
  function(e) {
2660
- We(t, e);
2688
+ ue(t, e);
2661
2689
  function t(r, i, n, o) {
2662
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'), Ee.INVALID_VALUE, o) || this;
2690
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'), Te.INVALID_VALUE, o) || this;
2663
2691
  }
2664
2692
  return t;
2665
- }(Xe)
2693
+ }(ze)
2666
2694
  ), en = (
2667
2695
  /** @class */
2668
2696
  function(e) {
2669
- We(t, e);
2697
+ ue(t, e);
2670
2698
  function t(r, i, n) {
2671
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i), Ee.INVALID_VALUE, n) || this;
2699
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i), Te.INVALID_VALUE, n) || this;
2672
2700
  }
2673
2701
  return t;
2674
- }(Xe)
2702
+ }(ze)
2675
2703
  ), tn = (
2676
2704
  /** @class */
2677
2705
  function(e) {
2678
- We(t, e);
2706
+ ue(t, e);
2679
2707
  function t(r, i) {
2680
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'), Ee.MISSING_VALUE, i) || this;
2708
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'), Te.MISSING_VALUE, i) || this;
2681
2709
  }
2682
2710
  return t;
2683
- }(Xe)
2684
- ), $;
2711
+ }(ze)
2712
+ ), X;
2685
2713
  (function(e) {
2686
2714
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
2687
- })($ || ($ = {}));
2715
+ })(X || (X = {}));
2688
2716
  function rn(e) {
2689
2717
  return e.length < 2 ? e : e.reduce(function(t, r) {
2690
2718
  var i = t[t.length - 1];
2691
- return !i || i.type !== $.literal || r.type !== $.literal ? t.push(r) : i.value += r.value, t;
2719
+ return !i || i.type !== X.literal || r.type !== X.literal ? t.push(r) : i.value += r.value, t;
2692
2720
  }, []);
2693
2721
  }
2694
2722
  function nn(e) {
@@ -2698,111 +2726,111 @@ function Ue(e, t, r, i, n, o, s) {
2698
2726
  if (e.length === 1 && Tt(e[0]))
2699
2727
  return [
2700
2728
  {
2701
- type: $.literal,
2729
+ type: X.literal,
2702
2730
  value: e[0].value
2703
2731
  }
2704
2732
  ];
2705
- for (var a = [], u = 0, l = e; u < l.length; u++) {
2706
- var f = l[u];
2707
- if (Tt(f)) {
2733
+ for (var a = [], l = 0, f = e; l < f.length; l++) {
2734
+ var h = f[l];
2735
+ if (Tt(h)) {
2708
2736
  a.push({
2709
- type: $.literal,
2710
- value: f.value
2737
+ type: X.literal,
2738
+ value: h.value
2711
2739
  });
2712
2740
  continue;
2713
2741
  }
2714
- if (Ti(f)) {
2742
+ if (Ti(h)) {
2715
2743
  typeof o == "number" && a.push({
2716
- type: $.literal,
2744
+ type: X.literal,
2717
2745
  value: r.getNumberFormat(t).format(o)
2718
2746
  });
2719
2747
  continue;
2720
2748
  }
2721
- var g = f.value;
2722
- if (!(n && g in n))
2723
- throw new tn(g, s);
2724
- var p = n[g];
2725
- if (Si(f)) {
2726
- (!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), a.push({
2727
- type: typeof p == "string" ? $.literal : $.object,
2728
- value: p
2749
+ var m = h.value;
2750
+ if (!(n && m in n))
2751
+ throw new tn(m, s);
2752
+ var d = n[m];
2753
+ if (Si(h)) {
2754
+ (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), a.push({
2755
+ type: typeof d == "string" ? X.literal : X.object,
2756
+ value: d
2729
2757
  });
2730
2758
  continue;
2731
2759
  }
2732
- if (nr(f)) {
2733
- var x = typeof f.style == "string" ? i.date[f.style] : ot(f.style) ? f.style.parsedOptions : void 0;
2760
+ if (nr(h)) {
2761
+ var y = typeof h.style == "string" ? i.date[h.style] : st(h.style) ? h.style.parsedOptions : void 0;
2734
2762
  a.push({
2735
- type: $.literal,
2736
- value: r.getDateTimeFormat(t, x).format(p)
2763
+ type: X.literal,
2764
+ value: r.getDateTimeFormat(t, y).format(d)
2737
2765
  });
2738
2766
  continue;
2739
2767
  }
2740
- if (or(f)) {
2741
- var x = typeof f.style == "string" ? i.time[f.style] : ot(f.style) ? f.style.parsedOptions : i.time.medium;
2768
+ if (or(h)) {
2769
+ var y = typeof h.style == "string" ? i.time[h.style] : st(h.style) ? h.style.parsedOptions : i.time.medium;
2742
2770
  a.push({
2743
- type: $.literal,
2744
- value: r.getDateTimeFormat(t, x).format(p)
2771
+ type: X.literal,
2772
+ value: r.getDateTimeFormat(t, y).format(d)
2745
2773
  });
2746
2774
  continue;
2747
2775
  }
2748
- if (ir(f)) {
2749
- var x = typeof f.style == "string" ? i.number[f.style] : lr(f.style) ? f.style.parsedOptions : void 0;
2750
- x && x.scale && (p = p * (x.scale || 1)), a.push({
2751
- type: $.literal,
2752
- value: r.getNumberFormat(t, x).format(p)
2776
+ if (ir(h)) {
2777
+ var y = typeof h.style == "string" ? i.number[h.style] : lr(h.style) ? h.style.parsedOptions : void 0;
2778
+ y && y.scale && (d = d * (y.scale || 1)), a.push({
2779
+ type: X.literal,
2780
+ value: r.getNumberFormat(t, y).format(d)
2753
2781
  });
2754
2782
  continue;
2755
2783
  }
2756
- if (ur(f)) {
2757
- var S = f.children, d = f.value, M = n[d];
2758
- if (!nn(M))
2759
- throw new en(d, "function", s);
2760
- var V = Ue(S, t, r, i, n, o), k = M(V.map(function(R) {
2784
+ if (ur(h)) {
2785
+ var _ = h.children, c = h.value, b = n[c];
2786
+ if (!nn(b))
2787
+ throw new en(c, "function", s);
2788
+ var A = Ue(_, t, r, i, n, o), P = b(A.map(function(R) {
2761
2789
  return R.value;
2762
2790
  }));
2763
- Array.isArray(k) || (k = [k]), a.push.apply(a, k.map(function(R) {
2791
+ Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(R) {
2764
2792
  return {
2765
- type: typeof R == "string" ? $.literal : $.object,
2793
+ type: typeof R == "string" ? X.literal : X.object,
2766
2794
  value: R
2767
2795
  };
2768
2796
  }));
2769
2797
  }
2770
- if (sr(f)) {
2771
- var A = f.options[p] || f.options.other;
2772
- if (!A)
2773
- throw new Ct(f.value, p, Object.keys(f.options), s);
2774
- a.push.apply(a, Ue(A.value, t, r, i, n));
2798
+ if (sr(h)) {
2799
+ var D = h.options[d] || h.options.other;
2800
+ if (!D)
2801
+ throw new Ct(h.value, d, Object.keys(h.options), s);
2802
+ a.push.apply(a, Ue(D.value, t, r, i, n));
2775
2803
  continue;
2776
2804
  }
2777
- if (ar(f)) {
2778
- var A = f.options["=".concat(p)];
2779
- if (!A) {
2805
+ if (ar(h)) {
2806
+ var D = h.options["=".concat(d)];
2807
+ if (!D) {
2780
2808
  if (!Intl.PluralRules)
2781
- throw new Xe(`Intl.PluralRules is not available in this environment.
2809
+ throw new ze(`Intl.PluralRules is not available in this environment.
2782
2810
  Try polyfilling it using "@formatjs/intl-pluralrules"
2783
- `, Ee.MISSING_INTL_API, s);
2784
- var z = r.getPluralRules(t, { type: f.pluralType }).select(p - (f.offset || 0));
2785
- A = f.options[z] || f.options.other;
2811
+ `, Te.MISSING_INTL_API, s);
2812
+ var q = r.getPluralRules(t, { type: h.pluralType }).select(d - (h.offset || 0));
2813
+ D = h.options[q] || h.options.other;
2786
2814
  }
2787
- if (!A)
2788
- throw new Ct(f.value, p, Object.keys(f.options), s);
2789
- a.push.apply(a, Ue(A.value, t, r, i, n, p - (f.offset || 0)));
2815
+ if (!D)
2816
+ throw new Ct(h.value, d, Object.keys(h.options), s);
2817
+ a.push.apply(a, Ue(D.value, t, r, i, n, d - (h.offset || 0)));
2790
2818
  continue;
2791
2819
  }
2792
2820
  }
2793
2821
  return rn(a);
2794
2822
  }
2795
2823
  function on(e, t) {
2796
- return t ? Q(Q(Q({}, e || {}), t || {}), Object.keys(e).reduce(function(r, i) {
2797
- return r[i] = Q(Q({}, e[i]), t[i] || {}), r;
2824
+ return t ? C(C(C({}, e || {}), t || {}), Object.keys(e).reduce(function(r, i) {
2825
+ return r[i] = C(C({}, e[i]), t[i] || {}), r;
2798
2826
  }, {})) : e;
2799
2827
  }
2800
2828
  function sn(e, t) {
2801
2829
  return t ? Object.keys(e).reduce(function(r, i) {
2802
2830
  return r[i] = on(e[i], t[i]), r;
2803
- }, Q({}, e)) : e;
2831
+ }, C({}, e)) : e;
2804
2832
  }
2805
- function tt(e) {
2833
+ function Ke(e) {
2806
2834
  return {
2807
2835
  create: function() {
2808
2836
  return {
@@ -2822,29 +2850,29 @@ function an(e) {
2822
2850
  dateTime: {},
2823
2851
  pluralRules: {}
2824
2852
  }), {
2825
- getNumberFormat: Qe(function() {
2853
+ getNumberFormat: Ze(function() {
2826
2854
  for (var t, r = [], i = 0; i < arguments.length; i++)
2827
2855
  r[i] = arguments[i];
2828
- return new ((t = Intl.NumberFormat).bind.apply(t, Je([void 0], r, !1)))();
2856
+ return new ((t = Intl.NumberFormat).bind.apply(t, _e([void 0], r, !1)))();
2829
2857
  }, {
2830
- cache: tt(e.number),
2831
- strategy: Ke.variadic
2858
+ cache: Ke(e.number),
2859
+ strategy: Je.variadic
2832
2860
  }),
2833
- getDateTimeFormat: Qe(function() {
2861
+ getDateTimeFormat: Ze(function() {
2834
2862
  for (var t, r = [], i = 0; i < arguments.length; i++)
2835
2863
  r[i] = arguments[i];
2836
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Je([void 0], r, !1)))();
2864
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, _e([void 0], r, !1)))();
2837
2865
  }, {
2838
- cache: tt(e.dateTime),
2839
- strategy: Ke.variadic
2866
+ cache: Ke(e.dateTime),
2867
+ strategy: Je.variadic
2840
2868
  }),
2841
- getPluralRules: Qe(function() {
2869
+ getPluralRules: Ze(function() {
2842
2870
  for (var t, r = [], i = 0; i < arguments.length; i++)
2843
2871
  r[i] = arguments[i];
2844
- return new ((t = Intl.PluralRules).bind.apply(t, Je([void 0], r, !1)))();
2872
+ return new ((t = Intl.PluralRules).bind.apply(t, _e([void 0], r, !1)))();
2845
2873
  }, {
2846
- cache: tt(e.pluralRules),
2847
- strategy: Ke.variadic
2874
+ cache: Ke(e.pluralRules),
2875
+ strategy: Je.variadic
2848
2876
  })
2849
2877
  };
2850
2878
  }
@@ -2858,20 +2886,20 @@ var gr = (
2858
2886
  number: {},
2859
2887
  dateTime: {},
2860
2888
  pluralRules: {}
2861
- }, this.format = function(u) {
2862
- var l = o.formatToParts(u);
2863
- if (l.length === 1)
2864
- return l[0].value;
2865
- var f = l.reduce(function(g, p) {
2866
- return !g.length || p.type !== $.literal || typeof g[g.length - 1] != "string" ? g.push(p.value) : g[g.length - 1] += p.value, g;
2889
+ }, this.format = function(l) {
2890
+ var f = o.formatToParts(l);
2891
+ if (f.length === 1)
2892
+ return f[0].value;
2893
+ var h = f.reduce(function(m, d) {
2894
+ return !m.length || d.type !== X.literal || typeof m[m.length - 1] != "string" ? m.push(d.value) : m[m.length - 1] += d.value, m;
2867
2895
  }, []);
2868
- return f.length <= 1 ? f[0] || "" : f;
2869
- }, this.formatToParts = function(u) {
2870
- return Ue(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
2896
+ return h.length <= 1 ? h[0] || "" : h;
2897
+ }, this.formatToParts = function(l) {
2898
+ return Ue(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
2871
2899
  }, this.resolvedOptions = function() {
2872
- var u;
2900
+ var l;
2873
2901
  return {
2874
- locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
2902
+ locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
2875
2903
  };
2876
2904
  }, this.getAst = function() {
2877
2905
  return o.ast;
@@ -2880,8 +2908,8 @@ var gr = (
2880
2908
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
2881
2909
  var s = n || {};
2882
2910
  s.formatters;
2883
- var a = vi(s, ["formatters"]);
2884
- this.ast = e.__parse(t, Q(Q({}, a), { locale: this.resolvedLocale }));
2911
+ var a = gi(s, ["formatters"]);
2912
+ this.ast = e.__parse(t, C(C({}, a), { locale: this.resolvedLocale }));
2885
2913
  } else
2886
2914
  this.ast = t;
2887
2915
  if (!Array.isArray(this.ast))
@@ -2981,25 +3009,25 @@ function un(e, t) {
2981
3009
  i = void 0;
2982
3010
  return i;
2983
3011
  }
2984
- const le = {}, ln = (e, t, r) => r && (t in le || (le[t] = {}), e in le[t] || (le[t][e] = r), r), br = (e, t) => {
3012
+ const fe = {}, ln = (e, t, r) => r && (t in fe || (fe[t] = {}), e in fe[t] || (fe[t][e] = r), r), br = (e, t) => {
2985
3013
  if (t == null)
2986
3014
  return;
2987
- if (t in le && e in le[t])
2988
- return le[t][e];
2989
- const r = Ie(t);
3015
+ if (t in fe && e in fe[t])
3016
+ return fe[t][e];
3017
+ const r = Le(t);
2990
3018
  for (let i = 0; i < r.length; i++) {
2991
3019
  const n = r[i], o = fn(n, e);
2992
3020
  if (o)
2993
3021
  return ln(e, t, o);
2994
3022
  }
2995
3023
  };
2996
- let xt;
2997
- const Ce = Me({});
3024
+ let yt;
3025
+ const Ie = De({});
2998
3026
  function hn(e) {
2999
- return xt[e] || null;
3027
+ return yt[e] || null;
3000
3028
  }
3001
3029
  function yr(e) {
3002
- return e in xt;
3030
+ return e in yt;
3003
3031
  }
3004
3032
  function fn(e, t) {
3005
3033
  if (!yr(e))
@@ -3010,7 +3038,7 @@ function fn(e, t) {
3010
3038
  function cn(e) {
3011
3039
  if (e == null)
3012
3040
  return;
3013
- const t = Ie(e);
3041
+ const t = Le(e);
3014
3042
  for (let r = 0; r < t.length; r++) {
3015
3043
  const i = t[r];
3016
3044
  if (yr(i))
@@ -3018,13 +3046,13 @@ function cn(e) {
3018
3046
  }
3019
3047
  }
3020
3048
  function xr(e, ...t) {
3021
- delete le[e], Ce.update((r) => (r[e] = mi.all([r[e] || {}, ...t]), r));
3049
+ delete fe[e], Ie.update((r) => (r[e] = vi.all([r[e] || {}, ...t]), r));
3022
3050
  }
3023
- Se(
3024
- [Ce],
3051
+ He(
3052
+ [Ie],
3025
3053
  ([e]) => Object.keys(e)
3026
3054
  );
3027
- Ce.subscribe((e) => xt = e);
3055
+ Ie.subscribe((e) => yt = e);
3028
3056
  const Fe = {};
3029
3057
  function dn(e, t) {
3030
3058
  Fe[e].delete(t), Fe[e].size === 0 && delete Fe[e];
@@ -3033,13 +3061,13 @@ function _r(e) {
3033
3061
  return Fe[e];
3034
3062
  }
3035
3063
  function pn(e) {
3036
- return Ie(e).map((t) => {
3064
+ return Le(e).map((t) => {
3037
3065
  const r = _r(t);
3038
3066
  return [t, r ? [...r] : []];
3039
3067
  }).filter(([, t]) => t.length > 0);
3040
3068
  }
3041
- function je(e) {
3042
- return e == null ? !1 : Ie(e).some(
3069
+ function Ge(e) {
3070
+ return e == null ? !1 : Le(e).some(
3043
3071
  (t) => {
3044
3072
  var r;
3045
3073
  return (r = _r(t)) == null ? void 0 : r.size;
@@ -3051,27 +3079,27 @@ function mn(e, t) {
3051
3079
  t.map((i) => (dn(e, i), i().then((n) => n.default || n)))
3052
3080
  ).then((i) => xr(e, ...i));
3053
3081
  }
3054
- const Pe = {};
3082
+ const Ae = {};
3055
3083
  function Er(e) {
3056
- if (!je(e))
3057
- return e in Pe ? Pe[e] : Promise.resolve();
3084
+ if (!Ge(e))
3085
+ return e in Ae ? Ae[e] : Promise.resolve();
3058
3086
  const t = pn(e);
3059
- return Pe[e] = Promise.all(
3087
+ return Ae[e] = Promise.all(
3060
3088
  t.map(
3061
3089
  ([r, i]) => mn(r, i)
3062
3090
  )
3063
3091
  ).then(() => {
3064
- if (je(e))
3092
+ if (Ge(e))
3065
3093
  return Er(e);
3066
- delete Pe[e];
3067
- }), Pe[e];
3094
+ delete Ae[e];
3095
+ }), Ae[e];
3068
3096
  }
3069
- var It = Object.getOwnPropertySymbols, vn = Object.prototype.hasOwnProperty, gn = Object.prototype.propertyIsEnumerable, bn = (e, t) => {
3097
+ var Dt = Object.getOwnPropertySymbols, vn = Object.prototype.hasOwnProperty, gn = Object.prototype.propertyIsEnumerable, bn = (e, t) => {
3070
3098
  var r = {};
3071
3099
  for (var i in e)
3072
3100
  vn.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
3073
- if (e != null && It)
3074
- for (var i of It(e))
3101
+ if (e != null && Dt)
3102
+ for (var i of Dt(e))
3075
3103
  t.indexOf(i) < 0 && gn.call(e, i) && (r[i] = e[i]);
3076
3104
  return r;
3077
3105
  };
@@ -3107,9 +3135,9 @@ const yn = {
3107
3135
  };
3108
3136
  function xn({ locale: e, id: t }) {
3109
3137
  console.warn(
3110
- `[svelte-i18n] The message "${t}" was not found in "${Ie(
3138
+ `[svelte-i18n] The message "${t}" was not found in "${Le(
3111
3139
  e
3112
- ).join('", "')}".${je(ce()) ? `
3140
+ ).join('", "')}".${Ge(ce()) ? `
3113
3141
 
3114
3142
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3115
3143
  );
@@ -3121,9 +3149,9 @@ const _n = {
3121
3149
  warnOnMissingMessages: !0,
3122
3150
  handleMissingMessage: void 0,
3123
3151
  ignoreTag: !0
3124
- }, Oe = _n;
3125
- function we() {
3126
- return Oe;
3152
+ }, Be = _n;
3153
+ function Pe() {
3154
+ return Be;
3127
3155
  }
3128
3156
  function En(e) {
3129
3157
  const t = e, { formats: r } = t, i = bn(t, ["formats"]);
@@ -3138,124 +3166,124 @@ function En(e) {
3138
3166
  }
3139
3167
  return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage = xn : console.warn(
3140
3168
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3141
- )), Object.assign(Oe, i, { initialLocale: n }), 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)), ve.set(n);
3169
+ )), Object.assign(Be, i, { initialLocale: n }), r && ("number" in r && Object.assign(Be.formats.number, r.number), "date" in r && Object.assign(Be.formats.date, r.date), "time" in r && Object.assign(Be.formats.time, r.time)), ge.set(n);
3142
3170
  }
3143
- const rt = Me(!1);
3144
- var wn = Object.defineProperty, Sn = Object.defineProperties, Tn = Object.getOwnPropertyDescriptors, Dt = Object.getOwnPropertySymbols, Pn = Object.prototype.hasOwnProperty, On = Object.prototype.propertyIsEnumerable, Lt = (e, t, r) => t in e ? wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Hn = (e, t) => {
3171
+ const et = De(!1);
3172
+ var wn = Object.defineProperty, Sn = Object.defineProperties, Tn = Object.getOwnPropertyDescriptors, It = Object.getOwnPropertySymbols, Pn = Object.prototype.hasOwnProperty, Hn = Object.prototype.propertyIsEnumerable, Lt = (e, t, r) => t in e ? wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, On = (e, t) => {
3145
3173
  for (var r in t || (t = {}))
3146
3174
  Pn.call(t, r) && Lt(e, r, t[r]);
3147
- if (Dt)
3148
- for (var r of Dt(t))
3149
- On.call(t, r) && Lt(e, r, t[r]);
3175
+ if (It)
3176
+ for (var r of It(t))
3177
+ Hn.call(t, r) && Lt(e, r, t[r]);
3150
3178
  return e;
3151
3179
  }, An = (e, t) => Sn(e, Tn(t));
3152
- let ft;
3153
- const $e = Me(null);
3180
+ let ct;
3181
+ const je = De(null);
3154
3182
  function Nt(e) {
3155
3183
  return e.split("-").map((t, r, i) => i.slice(0, r + 1).join("-")).reverse();
3156
3184
  }
3157
- function Ie(e, t = we().fallbackLocale) {
3185
+ function Le(e, t = Pe().fallbackLocale) {
3158
3186
  const r = Nt(e);
3159
3187
  return t ? [.../* @__PURE__ */ new Set([...r, ...Nt(t)])] : r;
3160
3188
  }
3161
3189
  function ce() {
3162
- return ft ?? void 0;
3190
+ return ct ?? void 0;
3163
3191
  }
3164
- $e.subscribe((e) => {
3165
- ft = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3192
+ je.subscribe((e) => {
3193
+ ct = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3166
3194
  });
3167
3195
  const Bn = (e) => {
3168
- if (e && cn(e) && je(e)) {
3169
- const { loadingDelay: t } = we();
3196
+ if (e && cn(e) && Ge(e)) {
3197
+ const { loadingDelay: t } = Pe();
3170
3198
  let r;
3171
3199
  return typeof window < "u" && ce() != null && t ? r = window.setTimeout(
3172
- () => rt.set(!0),
3200
+ () => et.set(!0),
3173
3201
  t
3174
- ) : rt.set(!0), Er(e).then(() => {
3175
- $e.set(e);
3202
+ ) : et.set(!0), Er(e).then(() => {
3203
+ je.set(e);
3176
3204
  }).finally(() => {
3177
- clearTimeout(r), rt.set(!1);
3205
+ clearTimeout(r), et.set(!1);
3178
3206
  });
3179
3207
  }
3180
- return $e.set(e);
3181
- }, ve = An(Hn({}, $e), {
3208
+ return je.set(e);
3209
+ }, ge = An(On({}, je), {
3182
3210
  set: Bn
3183
- }), qe = (e) => {
3211
+ }), We = (e) => {
3184
3212
  const t = /* @__PURE__ */ Object.create(null);
3185
3213
  return (i) => {
3186
3214
  const n = JSON.stringify(i);
3187
3215
  return n in t ? t[n] : t[n] = e(i);
3188
3216
  };
3189
3217
  };
3190
- var Mn = Object.defineProperty, ze = Object.getOwnPropertySymbols, wr = Object.prototype.hasOwnProperty, Sr = Object.prototype.propertyIsEnumerable, Rt = (e, t, r) => t in e ? Mn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _t = (e, t) => {
3218
+ var Mn = Object.defineProperty, $e = Object.getOwnPropertySymbols, wr = Object.prototype.hasOwnProperty, Sr = Object.prototype.propertyIsEnumerable, Rt = (e, t, r) => t in e ? Mn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xt = (e, t) => {
3191
3219
  for (var r in t || (t = {}))
3192
3220
  wr.call(t, r) && Rt(e, r, t[r]);
3193
- if (ze)
3194
- for (var r of ze(t))
3221
+ if ($e)
3222
+ for (var r of $e(t))
3195
3223
  Sr.call(t, r) && Rt(e, r, t[r]);
3196
3224
  return e;
3197
- }, Te = (e, t) => {
3225
+ }, Oe = (e, t) => {
3198
3226
  var r = {};
3199
3227
  for (var i in e)
3200
3228
  wr.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
3201
- if (e != null && ze)
3202
- for (var i of ze(e))
3229
+ if (e != null && $e)
3230
+ for (var i of $e(e))
3203
3231
  t.indexOf(i) < 0 && Sr.call(e, i) && (r[i] = e[i]);
3204
3232
  return r;
3205
3233
  };
3206
- const Be = (e, t) => {
3207
- const { formats: r } = we();
3234
+ const Ce = (e, t) => {
3235
+ const { formats: r } = Pe();
3208
3236
  if (e in r && t in r[e])
3209
3237
  return r[e][t];
3210
3238
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3211
- }, Cn = qe(
3239
+ }, Cn = We(
3212
3240
  (e) => {
3213
- var t = e, { locale: r, format: i } = t, n = Te(t, ["locale", "format"]);
3241
+ var t = e, { locale: r, format: i } = t, n = Oe(t, ["locale", "format"]);
3214
3242
  if (r == null)
3215
3243
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3216
- return i && (n = Be("number", i)), new Intl.NumberFormat(r, n);
3244
+ return i && (n = Ce("number", i)), new Intl.NumberFormat(r, n);
3217
3245
  }
3218
- ), In = qe(
3246
+ ), Dn = We(
3219
3247
  (e) => {
3220
- var t = e, { locale: r, format: i } = t, n = Te(t, ["locale", "format"]);
3248
+ var t = e, { locale: r, format: i } = t, n = Oe(t, ["locale", "format"]);
3221
3249
  if (r == null)
3222
3250
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3223
- return i ? n = Be("date", i) : Object.keys(n).length === 0 && (n = Be("date", "short")), new Intl.DateTimeFormat(r, n);
3251
+ return i ? n = Ce("date", i) : Object.keys(n).length === 0 && (n = Ce("date", "short")), new Intl.DateTimeFormat(r, n);
3224
3252
  }
3225
- ), Dn = qe(
3253
+ ), In = We(
3226
3254
  (e) => {
3227
- var t = e, { locale: r, format: i } = t, n = Te(t, ["locale", "format"]);
3255
+ var t = e, { locale: r, format: i } = t, n = Oe(t, ["locale", "format"]);
3228
3256
  if (r == null)
3229
3257
  throw new Error(
3230
3258
  '[svelte-i18n] A "locale" must be set to format time values'
3231
3259
  );
3232
- return i ? n = Be("time", i) : Object.keys(n).length === 0 && (n = Be("time", "short")), new Intl.DateTimeFormat(r, n);
3260
+ return i ? n = Ce("time", i) : Object.keys(n).length === 0 && (n = Ce("time", "short")), new Intl.DateTimeFormat(r, n);
3233
3261
  }
3234
3262
  ), Ln = (e = {}) => {
3235
3263
  var t = e, {
3236
3264
  locale: r = ce()
3237
- } = t, i = Te(t, [
3265
+ } = t, i = Oe(t, [
3238
3266
  "locale"
3239
3267
  ]);
3240
- return Cn(_t({ locale: r }, i));
3268
+ return Cn(xt({ locale: r }, i));
3241
3269
  }, Nn = (e = {}) => {
3242
3270
  var t = e, {
3243
3271
  locale: r = ce()
3244
- } = t, i = Te(t, [
3272
+ } = t, i = Oe(t, [
3245
3273
  "locale"
3246
3274
  ]);
3247
- return In(_t({ locale: r }, i));
3275
+ return Dn(xt({ locale: r }, i));
3248
3276
  }, Rn = (e = {}) => {
3249
3277
  var t = e, {
3250
3278
  locale: r = ce()
3251
- } = t, i = Te(t, [
3279
+ } = t, i = Oe(t, [
3252
3280
  "locale"
3253
3281
  ]);
3254
- return Dn(_t({ locale: r }, i));
3255
- }, kn = qe(
3282
+ return In(xt({ locale: r }, i));
3283
+ }, kn = We(
3256
3284
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3257
- (e, t = ce()) => new gr(e, t, we().formats, {
3258
- ignoreTag: we().ignoreTag
3285
+ (e, t = ce()) => new gr(e, t, Pe().formats, {
3286
+ ignoreTag: Pe().ignoreTag
3259
3287
  })
3260
3288
  ), Un = (e, t = {}) => {
3261
3289
  var r, i, n, o;
@@ -3263,44 +3291,44 @@ const Be = (e, t) => {
3263
3291
  typeof e == "object" && (s = e, e = s.id);
3264
3292
  const {
3265
3293
  values: a,
3266
- locale: u = ce(),
3267
- default: l
3294
+ locale: l = ce(),
3295
+ default: f
3268
3296
  } = s;
3269
- if (u == null)
3297
+ if (l == null)
3270
3298
  throw new Error(
3271
3299
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3272
3300
  );
3273
- let f = br(e, u);
3274
- if (!f)
3275
- f = (o = (n = (i = (r = we()).handleMissingMessage) == null ? void 0 : i.call(r, { locale: u, id: e, defaultValue: l })) != null ? n : l) != null ? o : e;
3276
- else if (typeof f != "string")
3301
+ let h = br(e, l);
3302
+ if (!h)
3303
+ h = (o = (n = (i = (r = Pe()).handleMissingMessage) == null ? void 0 : i.call(r, { locale: l, id: e, defaultValue: f })) != null ? n : f) != null ? o : e;
3304
+ else if (typeof h != "string")
3277
3305
  return console.warn(
3278
- `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3279
- ), f;
3306
+ `[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.`
3307
+ ), h;
3280
3308
  if (!a)
3281
- return f;
3282
- let g = f;
3309
+ return h;
3310
+ let m = h;
3283
3311
  try {
3284
- g = kn(f, u).format(a);
3285
- } catch (p) {
3286
- p instanceof Error && console.warn(
3312
+ m = kn(h, l).format(a);
3313
+ } catch (d) {
3314
+ d instanceof Error && console.warn(
3287
3315
  `[svelte-i18n] Message "${e}" has syntax error:`,
3288
- p.message
3316
+ d.message
3289
3317
  );
3290
3318
  }
3291
- return g;
3292
- }, Fn = (e, t) => Rn(t).format(e), Vn = (e, t) => Nn(t).format(e), Gn = (e, t) => Ln(t).format(e), jn = (e, t = ce()) => br(e, t), $n = Se([ve, Ce], () => Un);
3293
- Se([ve], () => Fn);
3294
- Se([ve], () => Vn);
3295
- Se([ve], () => Gn);
3296
- Se([ve, Ce], () => jn);
3319
+ return m;
3320
+ }, Fn = (e, t) => Rn(t).format(e), Vn = (e, t) => Nn(t).format(e), Gn = (e, t) => Ln(t).format(e), jn = (e, t = ce()) => br(e, t), $n = He([ge, Ie], () => Un);
3321
+ He([ge], () => Fn);
3322
+ He([ge], () => Vn);
3323
+ He([ge], () => Gn);
3324
+ He([ge, Ie], () => jn);
3297
3325
  function kt(e, t) {
3298
3326
  xr(e, t);
3299
3327
  }
3300
3328
  function zn(e) {
3301
3329
  En({
3302
3330
  fallbackLocale: "en"
3303
- }), ve.set(e);
3331
+ }), ge.set(e);
3304
3332
  }
3305
3333
  const Ut = {
3306
3334
  en: {
@@ -3358,77 +3386,8 @@ const Ut = {
3358
3386
  "verification.shuftipro.validations-started": "After completing verification, please proceed with the transaction"
3359
3387
  }
3360
3388
  };
3361
- let Wn = Me(null);
3362
- /*! *****************************************************************************
3363
- Copyright (c) Microsoft Corporation.
3364
-
3365
- Permission to use, copy, modify, and/or distribute this software for any
3366
- purpose with or without fee is hereby granted.
3367
-
3368
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
3369
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
3370
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
3371
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
3372
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3373
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3374
- PERFORMANCE OF THIS SOFTWARE.
3375
- ***************************************************************************** */
3376
- var ct = function(e, t) {
3377
- return ct = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
3378
- r.__proto__ = i;
3379
- } || function(r, i) {
3380
- for (var n in i)
3381
- Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
3382
- }, ct(e, t);
3383
- };
3384
- function De(e, t) {
3385
- if (typeof t != "function" && t !== null)
3386
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
3387
- ct(e, t);
3388
- function r() {
3389
- this.constructor = e;
3390
- }
3391
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
3392
- }
3393
- function dt(e) {
3394
- var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], i = 0;
3395
- if (r)
3396
- return r.call(e);
3397
- if (e && typeof e.length == "number")
3398
- return {
3399
- next: function() {
3400
- return e && i >= e.length && (e = void 0), { value: e && e[i++], done: !e };
3401
- }
3402
- };
3403
- throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
3404
- }
3405
- function pt(e, t) {
3406
- var r = typeof Symbol == "function" && e[Symbol.iterator];
3407
- if (!r)
3408
- return e;
3409
- var i = r.call(e), n, o = [], s;
3410
- try {
3411
- for (; (t === void 0 || t-- > 0) && !(n = i.next()).done; )
3412
- o.push(n.value);
3413
- } catch (a) {
3414
- s = { error: a };
3415
- } finally {
3416
- try {
3417
- n && !n.done && (r = i.return) && r.call(i);
3418
- } finally {
3419
- if (s)
3420
- throw s.error;
3421
- }
3422
- }
3423
- return o;
3424
- }
3425
- function mt(e, t, r) {
3426
- if (arguments.length === 2)
3427
- for (var i = 0, n = t.length, o; i < n; i++)
3428
- (o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
3429
- return e.concat(o || t);
3430
- }
3431
- function se(e) {
3389
+ let Wn = De(null);
3390
+ function ae(e) {
3432
3391
  return typeof e == "function";
3433
3392
  }
3434
3393
  function Tr(e) {
@@ -3437,7 +3396,7 @@ function Tr(e) {
3437
3396
  }, r = e(t);
3438
3397
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
3439
3398
  }
3440
- var it = Tr(function(e) {
3399
+ var tt = Tr(function(e) {
3441
3400
  return function(r) {
3442
3401
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
3443
3402
  ` + r.map(function(i, n) {
@@ -3446,13 +3405,13 @@ var it = Tr(function(e) {
3446
3405
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
3447
3406
  };
3448
3407
  });
3449
- function vt(e, t) {
3408
+ function dt(e, t) {
3450
3409
  if (e) {
3451
3410
  var r = e.indexOf(t);
3452
3411
  0 <= r && e.splice(r, 1);
3453
3412
  }
3454
3413
  }
3455
- var Ye = function() {
3414
+ var Xe = function() {
3456
3415
  function e(t) {
3457
3416
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
3458
3417
  }
@@ -3464,15 +3423,15 @@ var Ye = function() {
3464
3423
  if (s)
3465
3424
  if (this._parentage = null, Array.isArray(s))
3466
3425
  try {
3467
- for (var a = dt(s), u = a.next(); !u.done; u = a.next()) {
3468
- var l = u.value;
3469
- l.remove(this);
3426
+ for (var a = nt(s), l = a.next(); !l.done; l = a.next()) {
3427
+ var f = l.value;
3428
+ f.remove(this);
3470
3429
  }
3471
- } catch (d) {
3472
- t = { error: d };
3430
+ } catch (c) {
3431
+ t = { error: c };
3473
3432
  } finally {
3474
3433
  try {
3475
- u && !u.done && (r = a.return) && r.call(a);
3434
+ l && !l.done && (r = a.return) && r.call(a);
3476
3435
  } finally {
3477
3436
  if (t)
3478
3437
  throw t.error;
@@ -3480,30 +3439,30 @@ var Ye = function() {
3480
3439
  }
3481
3440
  else
3482
3441
  s.remove(this);
3483
- var f = this.initialTeardown;
3484
- if (se(f))
3442
+ var h = this.initialTeardown;
3443
+ if (ae(h))
3485
3444
  try {
3486
- f();
3487
- } catch (d) {
3488
- o = d instanceof it ? d.errors : [d];
3445
+ h();
3446
+ } catch (c) {
3447
+ o = c instanceof tt ? c.errors : [c];
3489
3448
  }
3490
- var g = this._finalizers;
3491
- if (g) {
3449
+ var m = this._finalizers;
3450
+ if (m) {
3492
3451
  this._finalizers = null;
3493
3452
  try {
3494
- for (var p = dt(g), x = p.next(); !x.done; x = p.next()) {
3495
- var S = x.value;
3453
+ for (var d = nt(m), y = d.next(); !y.done; y = d.next()) {
3454
+ var _ = y.value;
3496
3455
  try {
3497
- Ft(S);
3498
- } catch (d) {
3499
- o = o ?? [], d instanceof it ? o = mt(mt([], pt(o)), pt(d.errors)) : o.push(d);
3456
+ Ft(_);
3457
+ } catch (c) {
3458
+ o = o ?? [], c instanceof tt ? o = _e(_e([], ot(o)), ot(c.errors)) : o.push(c);
3500
3459
  }
3501
3460
  }
3502
- } catch (d) {
3503
- i = { error: d };
3461
+ } catch (c) {
3462
+ i = { error: c };
3504
3463
  } finally {
3505
3464
  try {
3506
- x && !x.done && (n = p.return) && n.call(p);
3465
+ y && !y.done && (n = d.return) && n.call(d);
3507
3466
  } finally {
3508
3467
  if (i)
3509
3468
  throw i.error;
@@ -3511,7 +3470,7 @@ var Ye = function() {
3511
3470
  }
3512
3471
  }
3513
3472
  if (o)
3514
- throw new it(o);
3473
+ throw new tt(o);
3515
3474
  }
3516
3475
  }, e.prototype.add = function(t) {
3517
3476
  var r;
@@ -3534,36 +3493,40 @@ var Ye = function() {
3534
3493
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
3535
3494
  }, e.prototype._removeParent = function(t) {
3536
3495
  var r = this._parentage;
3537
- r === t ? this._parentage = null : Array.isArray(r) && vt(r, t);
3496
+ r === t ? this._parentage = null : Array.isArray(r) && dt(r, t);
3538
3497
  }, e.prototype.remove = function(t) {
3539
3498
  var r = this._finalizers;
3540
- r && vt(r, t), t instanceof e && t._removeParent(this);
3499
+ r && dt(r, t), t instanceof e && t._removeParent(this);
3541
3500
  }, e.EMPTY = function() {
3542
3501
  var t = new e();
3543
3502
  return t.closed = !0, t;
3544
3503
  }(), e;
3545
- }(), Pr = Ye.EMPTY;
3546
- function Or(e) {
3547
- return e instanceof Ye || e && "closed" in e && se(e.remove) && se(e.add) && se(e.unsubscribe);
3504
+ }(), Pr = Xe.EMPTY;
3505
+ function Hr(e) {
3506
+ return e instanceof Xe || e && "closed" in e && ae(e.remove) && ae(e.add) && ae(e.unsubscribe);
3548
3507
  }
3549
3508
  function Ft(e) {
3550
- se(e) ? e() : e.unsubscribe();
3509
+ ae(e) ? e() : e.unsubscribe();
3551
3510
  }
3552
- var Xn = {
3553
- Promise: void 0
3554
- }, qn = {
3511
+ var Or = {
3512
+ onUnhandledError: null,
3513
+ onStoppedNotification: null,
3514
+ Promise: void 0,
3515
+ useDeprecatedSynchronousErrorHandling: !1,
3516
+ useDeprecatedNextContext: !1
3517
+ }, Xn = {
3555
3518
  setTimeout: function(e, t) {
3556
3519
  for (var r = [], i = 2; i < arguments.length; i++)
3557
3520
  r[i - 2] = arguments[i];
3558
- return setTimeout.apply(void 0, mt([e, t], pt(r)));
3521
+ return setTimeout.apply(void 0, _e([e, t], ot(r)));
3559
3522
  },
3560
3523
  clearTimeout: function(e) {
3561
3524
  return clearTimeout(e);
3562
3525
  },
3563
3526
  delegate: void 0
3564
3527
  };
3565
- function Yn(e) {
3566
- qn.setTimeout(function() {
3528
+ function qn(e) {
3529
+ Xn.setTimeout(function() {
3567
3530
  throw e;
3568
3531
  });
3569
3532
  }
@@ -3572,14 +3535,14 @@ function Vt() {
3572
3535
  function Ve(e) {
3573
3536
  e();
3574
3537
  }
3575
- var Hr = function(e) {
3576
- De(t, e);
3538
+ var Ar = function(e) {
3539
+ ue(t, e);
3577
3540
  function t(r) {
3578
3541
  var i = e.call(this) || this;
3579
- return i.isStopped = !1, r ? (i.destination = r, Or(r) && r.add(i)) : i.destination = Qn, i;
3542
+ return i.isStopped = !1, r ? (i.destination = r, Hr(r) && r.add(i)) : i.destination = Qn, i;
3580
3543
  }
3581
3544
  return t.create = function(r, i, n) {
3582
- return new gt(r, i, n);
3545
+ return new pt(r, i, n);
3583
3546
  }, t.prototype.next = function(r) {
3584
3547
  this.isStopped || this._next(r);
3585
3548
  }, t.prototype.error = function(r) {
@@ -3603,7 +3566,11 @@ var Hr = function(e) {
3603
3566
  this.unsubscribe();
3604
3567
  }
3605
3568
  }, t;
3606
- }(Ye), Zn = function() {
3569
+ }(Xe), Yn = Function.prototype.bind;
3570
+ function rt(e, t) {
3571
+ return Yn.call(e, t);
3572
+ }
3573
+ var Zn = function() {
3607
3574
  function e(t) {
3608
3575
  this.partialObserver = t;
3609
3576
  }
@@ -3634,20 +3601,32 @@ var Hr = function(e) {
3634
3601
  ke(r);
3635
3602
  }
3636
3603
  }, e;
3637
- }(), gt = function(e) {
3638
- De(t, e);
3604
+ }(), pt = function(e) {
3605
+ ue(t, e);
3639
3606
  function t(r, i, n) {
3640
3607
  var o = e.call(this) || this, s;
3641
- return se(r) || !r ? s = {
3642
- next: r ?? void 0,
3643
- error: i ?? void 0,
3644
- complete: n ?? void 0
3645
- } : s = r, o.destination = new Zn(s), o;
3608
+ if (ae(r) || !r)
3609
+ s = {
3610
+ next: r ?? void 0,
3611
+ error: i ?? void 0,
3612
+ complete: n ?? void 0
3613
+ };
3614
+ else {
3615
+ var a;
3616
+ o && Or.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
3617
+ return o.unsubscribe();
3618
+ }, s = {
3619
+ next: r.next && rt(r.next, a),
3620
+ error: r.error && rt(r.error, a),
3621
+ complete: r.complete && rt(r.complete, a)
3622
+ }) : s = r;
3623
+ }
3624
+ return o.destination = new Zn(s), o;
3646
3625
  }
3647
3626
  return t;
3648
- }(Hr);
3627
+ }(Ar);
3649
3628
  function ke(e) {
3650
- Yn(e);
3629
+ qn(e);
3651
3630
  }
3652
3631
  function Jn(e) {
3653
3632
  throw e;
@@ -3678,10 +3657,10 @@ var Gt = function() {
3678
3657
  var r = new e();
3679
3658
  return r.source = this, r.operator = t, r;
3680
3659
  }, e.prototype.subscribe = function(t, r, i) {
3681
- var n = this, o = io(t) ? t : new gt(t, r, i);
3660
+ var n = this, o = io(t) ? t : new pt(t, r, i);
3682
3661
  return Ve(function() {
3683
- var s = n, a = s.operator, u = s.source;
3684
- o.add(a ? a.call(o, u) : u ? n._subscribe(o) : n._trySubscribe(o));
3662
+ var s = n, a = s.operator, l = s.source;
3663
+ o.add(a ? a.call(o, l) : l ? n._subscribe(o) : n._trySubscribe(o));
3685
3664
  }), o;
3686
3665
  }, e.prototype._trySubscribe = function(t) {
3687
3666
  try {
@@ -3692,12 +3671,12 @@ var Gt = function() {
3692
3671
  }, e.prototype.forEach = function(t, r) {
3693
3672
  var i = this;
3694
3673
  return r = jt(r), new r(function(n, o) {
3695
- var s = new gt({
3674
+ var s = new pt({
3696
3675
  next: function(a) {
3697
3676
  try {
3698
3677
  t(a);
3699
- } catch (u) {
3700
- o(u), s.unsubscribe();
3678
+ } catch (l) {
3679
+ o(l), s.unsubscribe();
3701
3680
  }
3702
3681
  },
3703
3682
  error: o,
@@ -3732,20 +3711,20 @@ var Gt = function() {
3732
3711
  }();
3733
3712
  function jt(e) {
3734
3713
  var t;
3735
- return (t = e ?? Xn.Promise) !== null && t !== void 0 ? t : Promise;
3714
+ return (t = e ?? Or.Promise) !== null && t !== void 0 ? t : Promise;
3736
3715
  }
3737
3716
  function ro(e) {
3738
- return e && se(e.next) && se(e.error) && se(e.complete);
3717
+ return e && ae(e.next) && ae(e.error) && ae(e.complete);
3739
3718
  }
3740
3719
  function io(e) {
3741
- return e && e instanceof Hr || ro(e) && Or(e);
3720
+ return e && e instanceof Ar || ro(e) && Hr(e);
3742
3721
  }
3743
3722
  var no = Tr(function(e) {
3744
3723
  return function() {
3745
3724
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
3746
3725
  };
3747
- }), Ar = function(e) {
3748
- De(t, e);
3726
+ }), Br = function(e) {
3727
+ ue(t, e);
3749
3728
  function t() {
3750
3729
  var r = e.call(this) || this;
3751
3730
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
@@ -3763,12 +3742,12 @@ var no = Tr(function(e) {
3763
3742
  if (i._throwIfClosed(), !i.isStopped) {
3764
3743
  i.currentObservers || (i.currentObservers = Array.from(i.observers));
3765
3744
  try {
3766
- for (var s = dt(i.currentObservers), a = s.next(); !a.done; a = s.next()) {
3767
- var u = a.value;
3768
- u.next(r);
3745
+ for (var s = nt(i.currentObservers), a = s.next(); !a.done; a = s.next()) {
3746
+ var l = a.value;
3747
+ l.next(r);
3769
3748
  }
3770
- } catch (l) {
3771
- n = { error: l };
3749
+ } catch (f) {
3750
+ n = { error: f };
3772
3751
  } finally {
3773
3752
  try {
3774
3753
  a && !a.done && (o = s.return) && o.call(s);
@@ -3812,8 +3791,8 @@ var no = Tr(function(e) {
3812
3791
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
3813
3792
  }, t.prototype._innerSubscribe = function(r) {
3814
3793
  var i = this, n = this, o = n.hasError, s = n.isStopped, a = n.observers;
3815
- return o || s ? Pr : (this.currentObservers = null, a.push(r), new Ye(function() {
3816
- i.currentObservers = null, vt(a, r);
3794
+ return o || s ? Pr : (this.currentObservers = null, a.push(r), new Xe(function() {
3795
+ i.currentObservers = null, dt(a, r);
3817
3796
  }));
3818
3797
  }, t.prototype._checkFinalizedStatuses = function(r) {
3819
3798
  var i = this, n = i.hasError, o = i.thrownError, s = i.isStopped;
@@ -3825,7 +3804,7 @@ var no = Tr(function(e) {
3825
3804
  return new $t(r, i);
3826
3805
  }, t;
3827
3806
  }(Gt), $t = function(e) {
3828
- De(t, e);
3807
+ ue(t, e);
3829
3808
  function t(r, i) {
3830
3809
  var n = e.call(this) || this;
3831
3810
  return n.destination = r, n.source = i, n;
@@ -3843,35 +3822,35 @@ var no = Tr(function(e) {
3843
3822
  var i, n;
3844
3823
  return (n = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(r)) !== null && n !== void 0 ? n : Pr;
3845
3824
  }, t;
3846
- }(Ar), Br = {
3825
+ }(Br), Mr = {
3847
3826
  now: function() {
3848
- return (Br.delegate || Date).now();
3827
+ return (Mr.delegate || Date).now();
3849
3828
  },
3850
3829
  delegate: void 0
3851
3830
  }, oo = function(e) {
3852
- De(t, e);
3831
+ ue(t, e);
3853
3832
  function t(r, i, n) {
3854
- r === void 0 && (r = 1 / 0), i === void 0 && (i = 1 / 0), n === void 0 && (n = Br);
3833
+ r === void 0 && (r = 1 / 0), i === void 0 && (i = 1 / 0), n === void 0 && (n = Mr);
3855
3834
  var o = e.call(this) || this;
3856
3835
  return o._bufferSize = r, o._windowTime = i, o._timestampProvider = n, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = i === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, i), o;
3857
3836
  }
3858
3837
  return t.prototype.next = function(r) {
3859
- var i = this, n = i.isStopped, o = i._buffer, s = i._infiniteTimeWindow, a = i._timestampProvider, u = i._windowTime;
3860
- n || (o.push(r), !s && o.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
3838
+ var i = this, n = i.isStopped, o = i._buffer, s = i._infiniteTimeWindow, a = i._timestampProvider, l = i._windowTime;
3839
+ n || (o.push(r), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
3861
3840
  }, t.prototype._subscribe = function(r) {
3862
3841
  this._throwIfClosed(), this._trimBuffer();
3863
- for (var i = this._innerSubscribe(r), n = this, o = n._infiniteTimeWindow, s = n._buffer, a = s.slice(), u = 0; u < a.length && !r.closed; u += o ? 1 : 2)
3864
- r.next(a[u]);
3842
+ for (var i = this._innerSubscribe(r), n = this, o = n._infiniteTimeWindow, s = n._buffer, a = s.slice(), l = 0; l < a.length && !r.closed; l += o ? 1 : 2)
3843
+ r.next(a[l]);
3865
3844
  return this._checkFinalizedStatuses(r), i;
3866
3845
  }, t.prototype._trimBuffer = function() {
3867
3846
  var r = this, i = r._bufferSize, n = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * i;
3868
3847
  if (i < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
3869
- for (var u = n.now(), l = 0, f = 1; f < o.length && o[f] <= u; f += 2)
3870
- l = f;
3871
- l && o.splice(0, l + 1);
3848
+ for (var l = n.now(), f = 0, h = 1; h < o.length && o[h] <= l; h += 2)
3849
+ f = h;
3850
+ f && o.splice(0, f + 1);
3872
3851
  }
3873
3852
  }, t;
3874
- }(Ar);
3853
+ }(Br);
3875
3854
  const zt = [], Wt = {}, so = (e, t = 0) => {
3876
3855
  if (zt.indexOf(e) == -1) {
3877
3856
  const r = new oo(t);
@@ -3893,437 +3872,479 @@ if (typeof window < "u") {
3893
3872
  }
3894
3873
  };
3895
3874
  };
3896
- customElements.define = e(customElements.define), import("./CashierModal-CJNZu7RJ.js").then((t) => t.D).then(({ default: t }) => {
3875
+ customElements.define = e(customElements.define), import("./CashierModal-QwoYnwWm.js").then((t) => t.D).then(({ default: t }) => {
3897
3876
  !customElements.get("cashier-modal") && customElements.define("cashier-modal", t.element);
3898
3877
  });
3899
3878
  }
3900
- var Mr = { exports: {} };
3879
+ var Cr = { exports: {} };
3901
3880
  (function(e, t) {
3902
3881
  (function(r, i) {
3903
3882
  e.exports = i();
3904
3883
  })(Kt, function() {
3905
- var r = 1e3, i = 6e4, n = 36e5, o = "millisecond", s = "second", a = "minute", u = "hour", l = "day", f = "week", g = "month", p = "quarter", x = "year", S = "date", d = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, V = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, k = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(_) {
3906
- var v = ["th", "st", "nd", "rd"], c = _ % 100;
3907
- return "[" + _ + (v[(c - 20) % 10] || v[c] || v[0]) + "]";
3908
- } }, A = function(_, v, c) {
3909
- var b = String(_);
3910
- return !b || b.length >= v ? _ : "" + Array(v + 1 - b.length).join(c) + _;
3911
- }, z = { s: A, z: function(_) {
3912
- var v = -_.utcOffset(), c = Math.abs(v), b = Math.floor(c / 60), m = c % 60;
3913
- return (v <= 0 ? "+" : "-") + A(b, 2, "0") + ":" + A(m, 2, "0");
3914
- }, m: function _(v, c) {
3915
- if (v.date() < c.date())
3916
- return -_(c, v);
3917
- var b = 12 * (c.year() - v.year()) + (c.month() - v.month()), m = v.clone().add(b, g), E = c - m < 0, w = v.clone().add(b + (E ? -1 : 1), g);
3918
- return +(-(b + (c - m) / (E ? m - w : w - m)) || 0);
3919
- }, a: function(_) {
3920
- return _ < 0 ? Math.ceil(_) || 0 : Math.floor(_);
3921
- }, p: function(_) {
3922
- return { M: g, y: x, w: f, d: l, D: S, h: u, m: a, s, ms: o, Q: p }[_] || String(_ || "").toLowerCase().replace(/s$/, "");
3923
- }, u: function(_) {
3924
- return _ === void 0;
3925
- } }, R = "en", U = {};
3926
- U[R] = k;
3927
- var X = "$isDayjsObject", ee = function(_) {
3928
- return _ instanceof F || !(!_ || !_[X]);
3929
- }, Y = function _(v, c, b) {
3930
- var m;
3931
- if (!v)
3884
+ var r = 1e3, i = 6e4, n = 36e5, o = "millisecond", s = "second", a = "minute", l = "hour", f = "day", h = "week", m = "month", d = "quarter", y = "year", _ = "date", c = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, A = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, P = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
3885
+ var g = ["th", "st", "nd", "rd"], p = w % 100;
3886
+ return "[" + w + (g[(p - 20) % 10] || g[p] || g[0]) + "]";
3887
+ } }, D = function(w, g, p) {
3888
+ var x = String(w);
3889
+ return !x || x.length >= g ? w : "" + Array(g + 1 - x.length).join(p) + w;
3890
+ }, q = { s: D, z: function(w) {
3891
+ var g = -w.utcOffset(), p = Math.abs(g), x = Math.floor(p / 60), v = p % 60;
3892
+ return (g <= 0 ? "+" : "-") + D(x, 2, "0") + ":" + D(v, 2, "0");
3893
+ }, m: function w(g, p) {
3894
+ if (g.date() < p.date())
3895
+ return -w(p, g);
3896
+ var x = 12 * (p.year() - g.year()) + (p.month() - g.month()), v = g.clone().add(x, m), S = p - v < 0, T = g.clone().add(x + (S ? -1 : 1), m);
3897
+ return +(-(x + (p - v) / (S ? v - T : T - v)) || 0);
3898
+ }, a: function(w) {
3899
+ return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
3900
+ }, p: function(w) {
3901
+ return { M: m, y, w: h, d: f, D: _, h: l, m: a, s, ms: o, Q: d }[w] || String(w || "").toLowerCase().replace(/s$/, "");
3902
+ }, u: function(w) {
3903
+ return w === void 0;
3904
+ } }, R = "en", F = {};
3905
+ F[R] = P;
3906
+ var J = "$isDayjsObject", re = function(w) {
3907
+ return w instanceof le || !(!w || !w[J]);
3908
+ }, Q = function w(g, p, x) {
3909
+ var v;
3910
+ if (!g)
3932
3911
  return R;
3933
- if (typeof v == "string") {
3934
- var E = v.toLowerCase();
3935
- U[E] && (m = E), c && (U[E] = c, m = E);
3936
- var w = v.split("-");
3937
- if (!m && w.length > 1)
3938
- return _(w[0]);
3912
+ if (typeof g == "string") {
3913
+ var S = g.toLowerCase();
3914
+ F[S] && (v = S), p && (F[S] = p, v = S);
3915
+ var T = g.split("-");
3916
+ if (!v && T.length > 1)
3917
+ return w(T[0]);
3939
3918
  } else {
3940
- var B = v.name;
3941
- U[B] = v, m = B;
3919
+ var I = g.name;
3920
+ F[I] = g, v = I;
3942
3921
  }
3943
- return !b && m && (R = m), m || !b && R;
3944
- }, C = function(_, v) {
3945
- if (ee(_))
3946
- return _.clone();
3947
- var c = typeof v == "object" ? v : {};
3948
- return c.date = _, c.args = arguments, new F(c);
3949
- }, H = z;
3950
- H.l = Y, H.i = ee, H.w = function(_, v) {
3951
- return C(_, { locale: v.$L, utc: v.$u, x: v.$x, $offset: v.$offset });
3922
+ return !x && v && (R = v), v || !x && R;
3923
+ }, k = function(w, g) {
3924
+ if (re(w))
3925
+ return w.clone();
3926
+ var p = typeof g == "object" ? g : {};
3927
+ return p.date = w, p.args = arguments, new le(p);
3928
+ }, B = q;
3929
+ B.l = Q, B.i = re, B.w = function(w, g) {
3930
+ return k(w, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
3952
3931
  };
3953
- var F = function() {
3954
- function _(c) {
3955
- this.$L = Y(c.locale, null, !0), this.parse(c), this.$x = this.$x || c.x || {}, this[X] = !0;
3932
+ var le = function() {
3933
+ function w(p) {
3934
+ this.$L = Q(p.locale, null, !0), this.parse(p), this.$x = this.$x || p.x || {}, this[J] = !0;
3956
3935
  }
3957
- var v = _.prototype;
3958
- return v.parse = function(c) {
3959
- this.$d = function(b) {
3960
- var m = b.date, E = b.utc;
3961
- if (m === null)
3936
+ var g = w.prototype;
3937
+ return g.parse = function(p) {
3938
+ this.$d = function(x) {
3939
+ var v = x.date, S = x.utc;
3940
+ if (v === null)
3962
3941
  return /* @__PURE__ */ new Date(NaN);
3963
- if (H.u(m))
3942
+ if (B.u(v))
3964
3943
  return /* @__PURE__ */ new Date();
3965
- if (m instanceof Date)
3966
- return new Date(m);
3967
- if (typeof m == "string" && !/Z$/i.test(m)) {
3968
- var w = m.match(M);
3969
- if (w) {
3970
- var B = w[2] - 1 || 0, D = (w[7] || "0").substring(0, 3);
3971
- return E ? new Date(Date.UTC(w[1], B, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, D)) : new Date(w[1], B, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, D);
3944
+ if (v instanceof Date)
3945
+ return new Date(v);
3946
+ if (typeof v == "string" && !/Z$/i.test(v)) {
3947
+ var T = v.match(b);
3948
+ if (T) {
3949
+ var I = T[2] - 1 || 0, N = (T[7] || "0").substring(0, 3);
3950
+ return S ? new Date(Date.UTC(T[1], I, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, N)) : new Date(T[1], I, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, N);
3972
3951
  }
3973
3952
  }
3974
- return new Date(m);
3975
- }(c), this.init();
3976
- }, v.init = function() {
3977
- var c = this.$d;
3978
- this.$y = c.getFullYear(), this.$M = c.getMonth(), this.$D = c.getDate(), this.$W = c.getDay(), this.$H = c.getHours(), this.$m = c.getMinutes(), this.$s = c.getSeconds(), this.$ms = c.getMilliseconds();
3979
- }, v.$utils = function() {
3980
- return H;
3981
- }, v.isValid = function() {
3982
- return this.$d.toString() !== d;
3983
- }, v.isSame = function(c, b) {
3984
- var m = C(c);
3985
- return this.startOf(b) <= m && m <= this.endOf(b);
3986
- }, v.isAfter = function(c, b) {
3987
- return C(c) < this.startOf(b);
3988
- }, v.isBefore = function(c, b) {
3989
- return this.endOf(b) < C(c);
3990
- }, v.$g = function(c, b, m) {
3991
- return H.u(c) ? this[b] : this.set(m, c);
3992
- }, v.unix = function() {
3953
+ return new Date(v);
3954
+ }(p), this.init();
3955
+ }, g.init = function() {
3956
+ var p = this.$d;
3957
+ this.$y = p.getFullYear(), this.$M = p.getMonth(), this.$D = p.getDate(), this.$W = p.getDay(), this.$H = p.getHours(), this.$m = p.getMinutes(), this.$s = p.getSeconds(), this.$ms = p.getMilliseconds();
3958
+ }, g.$utils = function() {
3959
+ return B;
3960
+ }, g.isValid = function() {
3961
+ return this.$d.toString() !== c;
3962
+ }, g.isSame = function(p, x) {
3963
+ var v = k(p);
3964
+ return this.startOf(x) <= v && v <= this.endOf(x);
3965
+ }, g.isAfter = function(p, x) {
3966
+ return k(p) < this.startOf(x);
3967
+ }, g.isBefore = function(p, x) {
3968
+ return this.endOf(x) < k(p);
3969
+ }, g.$g = function(p, x, v) {
3970
+ return B.u(p) ? this[x] : this.set(v, p);
3971
+ }, g.unix = function() {
3993
3972
  return Math.floor(this.valueOf() / 1e3);
3994
- }, v.valueOf = function() {
3973
+ }, g.valueOf = function() {
3995
3974
  return this.$d.getTime();
3996
- }, v.startOf = function(c, b) {
3997
- var m = this, E = !!H.u(b) || b, w = H.p(c), B = function(te, j) {
3998
- var J = H.w(m.$u ? Date.UTC(m.$y, j, te) : new Date(m.$y, j, te), m);
3999
- return E ? J : J.endOf(l);
4000
- }, D = function(te, j) {
4001
- return H.w(m.toDate()[te].apply(m.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(j)), m);
4002
- }, N = this.$W, G = this.$M, W = this.$D, ue = "set" + (this.$u ? "UTC" : "");
4003
- switch (w) {
4004
- case x:
4005
- return E ? B(1, 0) : B(31, 11);
4006
- case g:
4007
- return E ? B(1, G) : B(0, G + 1);
3975
+ }, g.startOf = function(p, x) {
3976
+ var v = this, S = !!B.u(x) || x, T = B.p(p), I = function(ee, $) {
3977
+ var te = B.w(v.$u ? Date.UTC(v.$y, $, ee) : new Date(v.$y, $, ee), v);
3978
+ return S ? te : te.endOf(f);
3979
+ }, N = function(ee, $) {
3980
+ return B.w(v.toDate()[ee].apply(v.toDate("s"), (S ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), v);
3981
+ }, U = this.$W, V = this.$M, W = this.$D, he = "set" + (this.$u ? "UTC" : "");
3982
+ switch (T) {
3983
+ case y:
3984
+ return S ? I(1, 0) : I(31, 11);
3985
+ case m:
3986
+ return S ? I(1, V) : I(0, V + 1);
3987
+ case h:
3988
+ var ie = this.$locale().weekStart || 0, de = (U < ie ? U + 7 : U) - ie;
3989
+ return I(S ? W - de : W + (6 - de), V);
4008
3990
  case f:
4009
- var Z = this.$locale().weekStart || 0, de = (N < Z ? N + 7 : N) - Z;
4010
- return B(E ? W - de : W + (6 - de), G);
3991
+ case _:
3992
+ return N(he + "Hours", 0);
4011
3993
  case l:
4012
- case S:
4013
- return D(ue + "Hours", 0);
4014
- case u:
4015
- return D(ue + "Minutes", 1);
3994
+ return N(he + "Minutes", 1);
4016
3995
  case a:
4017
- return D(ue + "Seconds", 2);
3996
+ return N(he + "Seconds", 2);
4018
3997
  case s:
4019
- return D(ue + "Milliseconds", 3);
3998
+ return N(he + "Milliseconds", 3);
4020
3999
  default:
4021
4000
  return this.clone();
4022
4001
  }
4023
- }, v.endOf = function(c) {
4024
- return this.startOf(c, !1);
4025
- }, v.$set = function(c, b) {
4026
- var m, E = H.p(c), w = "set" + (this.$u ? "UTC" : ""), B = (m = {}, m[l] = w + "Date", m[S] = w + "Date", m[g] = w + "Month", m[x] = w + "FullYear", m[u] = w + "Hours", m[a] = w + "Minutes", m[s] = w + "Seconds", m[o] = w + "Milliseconds", m)[E], D = E === l ? this.$D + (b - this.$W) : b;
4027
- if (E === g || E === x) {
4028
- var N = this.clone().set(S, 1);
4029
- N.$d[B](D), N.init(), this.$d = N.set(S, Math.min(this.$D, N.daysInMonth())).$d;
4002
+ }, g.endOf = function(p) {
4003
+ return this.startOf(p, !1);
4004
+ }, g.$set = function(p, x) {
4005
+ var v, S = B.p(p), T = "set" + (this.$u ? "UTC" : ""), I = (v = {}, v[f] = T + "Date", v[_] = T + "Date", v[m] = T + "Month", v[y] = T + "FullYear", v[l] = T + "Hours", v[a] = T + "Minutes", v[s] = T + "Seconds", v[o] = T + "Milliseconds", v)[S], N = S === f ? this.$D + (x - this.$W) : x;
4006
+ if (S === m || S === y) {
4007
+ var U = this.clone().set(_, 1);
4008
+ U.$d[I](N), U.init(), this.$d = U.set(_, Math.min(this.$D, U.daysInMonth())).$d;
4030
4009
  } else
4031
- B && this.$d[B](D);
4010
+ I && this.$d[I](N);
4032
4011
  return this.init(), this;
4033
- }, v.set = function(c, b) {
4034
- return this.clone().$set(c, b);
4035
- }, v.get = function(c) {
4036
- return this[H.p(c)]();
4037
- }, v.add = function(c, b) {
4038
- var m, E = this;
4039
- c = Number(c);
4040
- var w = H.p(b), B = function(G) {
4041
- var W = C(E);
4042
- return H.w(W.date(W.date() + Math.round(G * c)), E);
4012
+ }, g.set = function(p, x) {
4013
+ return this.clone().$set(p, x);
4014
+ }, g.get = function(p) {
4015
+ return this[B.p(p)]();
4016
+ }, g.add = function(p, x) {
4017
+ var v, S = this;
4018
+ p = Number(p);
4019
+ var T = B.p(x), I = function(V) {
4020
+ var W = k(S);
4021
+ return B.w(W.date(W.date() + Math.round(V * p)), S);
4043
4022
  };
4044
- if (w === g)
4045
- return this.set(g, this.$M + c);
4046
- if (w === x)
4047
- return this.set(x, this.$y + c);
4048
- if (w === l)
4049
- return B(1);
4050
- if (w === f)
4051
- return B(7);
4052
- var D = (m = {}, m[a] = i, m[u] = n, m[s] = r, m)[w] || 1, N = this.$d.getTime() + c * D;
4053
- return H.w(N, this);
4054
- }, v.subtract = function(c, b) {
4055
- return this.add(-1 * c, b);
4056
- }, v.format = function(c) {
4057
- var b = this, m = this.$locale();
4023
+ if (T === m)
4024
+ return this.set(m, this.$M + p);
4025
+ if (T === y)
4026
+ return this.set(y, this.$y + p);
4027
+ if (T === f)
4028
+ return I(1);
4029
+ if (T === h)
4030
+ return I(7);
4031
+ var N = (v = {}, v[a] = i, v[l] = n, v[s] = r, v)[T] || 1, U = this.$d.getTime() + p * N;
4032
+ return B.w(U, this);
4033
+ }, g.subtract = function(p, x) {
4034
+ return this.add(-1 * p, x);
4035
+ }, g.format = function(p) {
4036
+ var x = this, v = this.$locale();
4058
4037
  if (!this.isValid())
4059
- return m.invalidDate || d;
4060
- var E = c || "YYYY-MM-DDTHH:mm:ssZ", w = H.z(this), B = this.$H, D = this.$m, N = this.$M, G = m.weekdays, W = m.months, ue = m.meridiem, Z = function(j, J, re, ge) {
4061
- return j && (j[J] || j(b, E)) || re[J].slice(0, ge);
4062
- }, de = function(j) {
4063
- return H.s(B % 12 || 12, j, "0");
4064
- }, te = ue || function(j, J, re) {
4065
- var ge = j < 12 ? "AM" : "PM";
4066
- return re ? ge.toLowerCase() : ge;
4038
+ return v.invalidDate || c;
4039
+ var S = p || "YYYY-MM-DDTHH:mm:ssZ", T = B.z(this), I = this.$H, N = this.$m, U = this.$M, V = v.weekdays, W = v.months, he = v.meridiem, ie = function($, te, pe, be) {
4040
+ return $ && ($[te] || $(x, S)) || pe[te].slice(0, be);
4041
+ }, de = function($) {
4042
+ return B.s(I % 12 || 12, $, "0");
4043
+ }, ee = he || function($, te, pe) {
4044
+ var be = $ < 12 ? "AM" : "PM";
4045
+ return pe ? be.toLowerCase() : be;
4067
4046
  };
4068
- return E.replace(V, function(j, J) {
4069
- return J || function(re) {
4070
- switch (re) {
4047
+ return S.replace(A, function($, te) {
4048
+ return te || function(pe) {
4049
+ switch (pe) {
4071
4050
  case "YY":
4072
- return String(b.$y).slice(-2);
4051
+ return String(x.$y).slice(-2);
4073
4052
  case "YYYY":
4074
- return H.s(b.$y, 4, "0");
4053
+ return B.s(x.$y, 4, "0");
4075
4054
  case "M":
4076
- return N + 1;
4055
+ return U + 1;
4077
4056
  case "MM":
4078
- return H.s(N + 1, 2, "0");
4057
+ return B.s(U + 1, 2, "0");
4079
4058
  case "MMM":
4080
- return Z(m.monthsShort, N, W, 3);
4059
+ return ie(v.monthsShort, U, W, 3);
4081
4060
  case "MMMM":
4082
- return Z(W, N);
4061
+ return ie(W, U);
4083
4062
  case "D":
4084
- return b.$D;
4063
+ return x.$D;
4085
4064
  case "DD":
4086
- return H.s(b.$D, 2, "0");
4065
+ return B.s(x.$D, 2, "0");
4087
4066
  case "d":
4088
- return String(b.$W);
4067
+ return String(x.$W);
4089
4068
  case "dd":
4090
- return Z(m.weekdaysMin, b.$W, G, 2);
4069
+ return ie(v.weekdaysMin, x.$W, V, 2);
4091
4070
  case "ddd":
4092
- return Z(m.weekdaysShort, b.$W, G, 3);
4071
+ return ie(v.weekdaysShort, x.$W, V, 3);
4093
4072
  case "dddd":
4094
- return G[b.$W];
4073
+ return V[x.$W];
4095
4074
  case "H":
4096
- return String(B);
4075
+ return String(I);
4097
4076
  case "HH":
4098
- return H.s(B, 2, "0");
4077
+ return B.s(I, 2, "0");
4099
4078
  case "h":
4100
4079
  return de(1);
4101
4080
  case "hh":
4102
4081
  return de(2);
4103
4082
  case "a":
4104
- return te(B, D, !0);
4083
+ return ee(I, N, !0);
4105
4084
  case "A":
4106
- return te(B, D, !1);
4085
+ return ee(I, N, !1);
4107
4086
  case "m":
4108
- return String(D);
4087
+ return String(N);
4109
4088
  case "mm":
4110
- return H.s(D, 2, "0");
4089
+ return B.s(N, 2, "0");
4111
4090
  case "s":
4112
- return String(b.$s);
4091
+ return String(x.$s);
4113
4092
  case "ss":
4114
- return H.s(b.$s, 2, "0");
4093
+ return B.s(x.$s, 2, "0");
4115
4094
  case "SSS":
4116
- return H.s(b.$ms, 3, "0");
4095
+ return B.s(x.$ms, 3, "0");
4117
4096
  case "Z":
4118
- return w;
4097
+ return T;
4119
4098
  }
4120
4099
  return null;
4121
- }(j) || w.replace(":", "");
4100
+ }($) || T.replace(":", "");
4122
4101
  });
4123
- }, v.utcOffset = function() {
4102
+ }, g.utcOffset = function() {
4124
4103
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4125
- }, v.diff = function(c, b, m) {
4126
- var E, w = this, B = H.p(b), D = C(c), N = (D.utcOffset() - this.utcOffset()) * i, G = this - D, W = function() {
4127
- return H.m(w, D);
4104
+ }, g.diff = function(p, x, v) {
4105
+ var S, T = this, I = B.p(x), N = k(p), U = (N.utcOffset() - this.utcOffset()) * i, V = this - N, W = function() {
4106
+ return B.m(T, N);
4128
4107
  };
4129
- switch (B) {
4130
- case x:
4131
- E = W() / 12;
4108
+ switch (I) {
4109
+ case y:
4110
+ S = W() / 12;
4111
+ break;
4112
+ case m:
4113
+ S = W();
4132
4114
  break;
4133
- case g:
4134
- E = W();
4115
+ case d:
4116
+ S = W() / 3;
4135
4117
  break;
4136
- case p:
4137
- E = W() / 3;
4118
+ case h:
4119
+ S = (V - U) / 6048e5;
4138
4120
  break;
4139
4121
  case f:
4140
- E = (G - N) / 6048e5;
4122
+ S = (V - U) / 864e5;
4141
4123
  break;
4142
4124
  case l:
4143
- E = (G - N) / 864e5;
4144
- break;
4145
- case u:
4146
- E = G / n;
4125
+ S = V / n;
4147
4126
  break;
4148
4127
  case a:
4149
- E = G / i;
4128
+ S = V / i;
4150
4129
  break;
4151
4130
  case s:
4152
- E = G / r;
4131
+ S = V / r;
4153
4132
  break;
4154
4133
  default:
4155
- E = G;
4134
+ S = V;
4156
4135
  }
4157
- return m ? E : H.a(E);
4158
- }, v.daysInMonth = function() {
4159
- return this.endOf(g).$D;
4160
- }, v.$locale = function() {
4161
- return U[this.$L];
4162
- }, v.locale = function(c, b) {
4163
- if (!c)
4136
+ return v ? S : B.a(S);
4137
+ }, g.daysInMonth = function() {
4138
+ return this.endOf(m).$D;
4139
+ }, g.$locale = function() {
4140
+ return F[this.$L];
4141
+ }, g.locale = function(p, x) {
4142
+ if (!p)
4164
4143
  return this.$L;
4165
- var m = this.clone(), E = Y(c, b, !0);
4166
- return E && (m.$L = E), m;
4167
- }, v.clone = function() {
4168
- return H.w(this.$d, this);
4169
- }, v.toDate = function() {
4144
+ var v = this.clone(), S = Q(p, x, !0);
4145
+ return S && (v.$L = S), v;
4146
+ }, g.clone = function() {
4147
+ return B.w(this.$d, this);
4148
+ }, g.toDate = function() {
4170
4149
  return new Date(this.valueOf());
4171
- }, v.toJSON = function() {
4150
+ }, g.toJSON = function() {
4172
4151
  return this.isValid() ? this.toISOString() : null;
4173
- }, v.toISOString = function() {
4152
+ }, g.toISOString = function() {
4174
4153
  return this.$d.toISOString();
4175
- }, v.toString = function() {
4154
+ }, g.toString = function() {
4176
4155
  return this.$d.toUTCString();
4177
- }, _;
4178
- }(), ae = F.prototype;
4179
- return C.prototype = ae, [["$ms", o], ["$s", s], ["$m", a], ["$H", u], ["$W", l], ["$M", g], ["$y", x], ["$D", S]].forEach(function(_) {
4180
- ae[_[1]] = function(v) {
4181
- return this.$g(v, _[0], _[1]);
4156
+ }, w;
4157
+ }(), G = le.prototype;
4158
+ return k.prototype = G, [["$ms", o], ["$s", s], ["$m", a], ["$H", l], ["$W", f], ["$M", m], ["$y", y], ["$D", _]].forEach(function(w) {
4159
+ G[w[1]] = function(g) {
4160
+ return this.$g(g, w[0], w[1]);
4182
4161
  };
4183
- }), C.extend = function(_, v) {
4184
- return _.$i || (_(v, F, C), _.$i = !0), C;
4185
- }, C.locale = Y, C.isDayjs = ee, C.unix = function(_) {
4186
- return C(1e3 * _);
4187
- }, C.en = U[R], C.Ls = U, C.p = {}, C;
4162
+ }), k.extend = function(w, g) {
4163
+ return w.$i || (w(g, le, k), w.$i = !0), k;
4164
+ }, k.locale = Q, k.isDayjs = re, k.unix = function(w) {
4165
+ return k(1e3 * w);
4166
+ }, k.en = F[R], k.Ls = F, k.p = {}, k;
4188
4167
  });
4189
- })(Mr);
4190
- var uo = Mr.exports;
4191
- const Xt = /* @__PURE__ */ yt(uo);
4192
- var Cr = { exports: {} };
4168
+ })(Cr);
4169
+ var uo = Cr.exports;
4170
+ const Xt = /* @__PURE__ */ vt(uo);
4171
+ var Dr = { exports: {} };
4193
4172
  (function(e, t) {
4194
4173
  (function(r, i) {
4195
4174
  e.exports = i();
4196
4175
  })(Kt, function() {
4197
4176
  var r = "minute", i = /[+-]\d\d(?::?\d\d)?/g, n = /([+-]|\d\d)/g;
4198
4177
  return function(o, s, a) {
4199
- var u = s.prototype;
4200
- a.utc = function(d) {
4201
- var M = { date: d, utc: !0, args: arguments };
4202
- return new s(M);
4203
- }, u.utc = function(d) {
4204
- var M = a(this.toDate(), { locale: this.$L, utc: !0 });
4205
- return d ? M.add(this.utcOffset(), r) : M;
4206
- }, u.local = function() {
4178
+ var l = s.prototype;
4179
+ a.utc = function(c) {
4180
+ var b = { date: c, utc: !0, args: arguments };
4181
+ return new s(b);
4182
+ }, l.utc = function(c) {
4183
+ var b = a(this.toDate(), { locale: this.$L, utc: !0 });
4184
+ return c ? b.add(this.utcOffset(), r) : b;
4185
+ }, l.local = function() {
4207
4186
  return a(this.toDate(), { locale: this.$L, utc: !1 });
4208
4187
  };
4209
- var l = u.parse;
4210
- u.parse = function(d) {
4211
- d.utc && (this.$u = !0), this.$utils().u(d.$offset) || (this.$offset = d.$offset), l.call(this, d);
4188
+ var f = l.parse;
4189
+ l.parse = function(c) {
4190
+ c.utc && (this.$u = !0), this.$utils().u(c.$offset) || (this.$offset = c.$offset), f.call(this, c);
4212
4191
  };
4213
- var f = u.init;
4214
- u.init = function() {
4192
+ var h = l.init;
4193
+ l.init = function() {
4215
4194
  if (this.$u) {
4216
- var d = this.$d;
4217
- this.$y = d.getUTCFullYear(), this.$M = d.getUTCMonth(), this.$D = d.getUTCDate(), this.$W = d.getUTCDay(), this.$H = d.getUTCHours(), this.$m = d.getUTCMinutes(), this.$s = d.getUTCSeconds(), this.$ms = d.getUTCMilliseconds();
4195
+ var c = this.$d;
4196
+ this.$y = c.getUTCFullYear(), this.$M = c.getUTCMonth(), this.$D = c.getUTCDate(), this.$W = c.getUTCDay(), this.$H = c.getUTCHours(), this.$m = c.getUTCMinutes(), this.$s = c.getUTCSeconds(), this.$ms = c.getUTCMilliseconds();
4218
4197
  } else
4219
- f.call(this);
4198
+ h.call(this);
4220
4199
  };
4221
- var g = u.utcOffset;
4222
- u.utcOffset = function(d, M) {
4223
- var V = this.$utils().u;
4224
- if (V(d))
4225
- return this.$u ? 0 : V(this.$offset) ? g.call(this) : this.$offset;
4226
- if (typeof d == "string" && (d = function(R) {
4200
+ var m = l.utcOffset;
4201
+ l.utcOffset = function(c, b) {
4202
+ var A = this.$utils().u;
4203
+ if (A(c))
4204
+ return this.$u ? 0 : A(this.$offset) ? m.call(this) : this.$offset;
4205
+ if (typeof c == "string" && (c = function(R) {
4227
4206
  R === void 0 && (R = "");
4228
- var U = R.match(i);
4229
- if (!U)
4207
+ var F = R.match(i);
4208
+ if (!F)
4230
4209
  return null;
4231
- var X = ("" + U[0]).match(n) || ["-", 0, 0], ee = X[0], Y = 60 * +X[1] + +X[2];
4232
- return Y === 0 ? 0 : ee === "+" ? Y : -Y;
4233
- }(d), d === null))
4210
+ var J = ("" + F[0]).match(n) || ["-", 0, 0], re = J[0], Q = 60 * +J[1] + +J[2];
4211
+ return Q === 0 ? 0 : re === "+" ? Q : -Q;
4212
+ }(c), c === null))
4234
4213
  return this;
4235
- var k = Math.abs(d) <= 16 ? 60 * d : d, A = this;
4236
- if (M)
4237
- return A.$offset = k, A.$u = d === 0, A;
4238
- if (d !== 0) {
4239
- var z = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
4240
- (A = this.local().add(k + z, r)).$offset = k, A.$x.$localOffset = z;
4214
+ var P = Math.abs(c) <= 16 ? 60 * c : c, D = this;
4215
+ if (b)
4216
+ return D.$offset = P, D.$u = c === 0, D;
4217
+ if (c !== 0) {
4218
+ var q = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
4219
+ (D = this.local().add(P + q, r)).$offset = P, D.$x.$localOffset = q;
4241
4220
  } else
4242
- A = this.utc();
4243
- return A;
4221
+ D = this.utc();
4222
+ return D;
4244
4223
  };
4245
- var p = u.format;
4246
- u.format = function(d) {
4247
- var M = d || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
4248
- return p.call(this, M);
4249
- }, u.valueOf = function() {
4250
- var d = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
4251
- return this.$d.valueOf() - 6e4 * d;
4252
- }, u.isUTC = function() {
4224
+ var d = l.format;
4225
+ l.format = function(c) {
4226
+ var b = c || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
4227
+ return d.call(this, b);
4228
+ }, l.valueOf = function() {
4229
+ var c = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
4230
+ return this.$d.valueOf() - 6e4 * c;
4231
+ }, l.isUTC = function() {
4253
4232
  return !!this.$u;
4254
- }, u.toISOString = function() {
4233
+ }, l.toISOString = function() {
4255
4234
  return this.toDate().toISOString();
4256
- }, u.toString = function() {
4235
+ }, l.toString = function() {
4257
4236
  return this.toDate().toUTCString();
4258
4237
  };
4259
- var x = u.toDate;
4260
- u.toDate = function(d) {
4261
- return d === "s" && this.$offset ? a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : x.call(this);
4238
+ var y = l.toDate;
4239
+ l.toDate = function(c) {
4240
+ return c === "s" && this.$offset ? a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : y.call(this);
4262
4241
  };
4263
- var S = u.diff;
4264
- u.diff = function(d, M, V) {
4265
- if (d && this.$u === d.$u)
4266
- return S.call(this, d, M, V);
4267
- var k = this.local(), A = a(d).local();
4268
- return S.call(k, A, M, V);
4242
+ var _ = l.diff;
4243
+ l.diff = function(c, b, A) {
4244
+ if (c && this.$u === c.$u)
4245
+ return _.call(this, c, b, A);
4246
+ var P = this.local(), D = a(c).local();
4247
+ return _.call(P, D, b, A);
4269
4248
  };
4270
4249
  };
4271
4250
  });
4272
- })(Cr);
4273
- var lo = Cr.exports;
4274
- const ho = /* @__PURE__ */ yt(lo);
4251
+ })(Dr);
4252
+ var lo = Dr.exports;
4253
+ const ho = /* @__PURE__ */ vt(lo);
4275
4254
  function fo(e) {
4276
- $r(e, "svelte-3ui5us", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative;box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}");
4255
+ Wr(e, "svelte-il1hy", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative;box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}.ModalContentContainer{height:100%;width:100%;display:flex;flex-direction:column}.CashierVideoWrapper{position:relative;display:flex;justify-content:center;align-items:center;width:100%;height:100%;left:0;top:0;z-index:8}.CashierVideo{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.CashierVideo video{object-fit:contain;width:100%;height:90%;justify-self:center}");
4277
4256
  }
4278
4257
  function qt(e, t, r) {
4279
4258
  const i = e.slice();
4280
- return i[53] = t[r], i[55] = r, i;
4259
+ return i[55] = t[r], i[57] = r, i;
4281
4260
  }
4282
4261
  function co(e) {
4283
- let t, r, i, n = wt(
4262
+ let t, r, i, n, o, s, a, l, f, h, m, d, y = Et(
4284
4263
  /*displayMessages*/
4285
- e[3]
4286
- ), o = [];
4287
- for (let a = 0; a < n.length; a += 1)
4288
- o[a] = Zt(qt(e, n, a));
4289
- let s = (
4264
+ e[4]
4265
+ ), _ = [];
4266
+ for (let b = 0; b < y.length; b += 1)
4267
+ _[b] = Zt(qt(e, y, b));
4268
+ let c = (
4290
4269
  /*videoExists*/
4291
- e[6] && Jt(e)
4270
+ e[7] && Jt(e)
4292
4271
  );
4293
4272
  return {
4294
4273
  c() {
4295
- t = K("div");
4296
- for (let a = 0; a < o.length; a += 1)
4297
- o[a].c();
4298
- r = He(), s && s.c(), i = qr(), oe(t, "class", "CashierVerificationsWrapper");
4274
+ t = z("div");
4275
+ for (let b = 0; b < _.length; b += 1)
4276
+ _[b].c();
4277
+ r = xe(), c && c.c(), i = xe(), n = z("cashier-modal"), o = z("div"), s = z("div"), a = z("div"), l = z("video"), f = z("source"), j(t, "class", "CashierVerificationsWrapper"), wt(f.src, h = /*videoSrc*/
4278
+ e[8]) || j(f, "src", h), l.controls = !0, j(l, "controlslist", "nodownload"), j(l, "disablepictureinpicture", ""), j(a, "class", "CashierVideo"), j(s, "class", "CashierVideoWrapper"), j(o, "slot", "content"), j(o, "class", "ModalContentContainer"), Y(n, "show", m = `${/*modalState*/
4279
+ e[10] !== "closed"}`), Y(n, "isvideo", d = `${/*modalState*/
4280
+ e[10] === "video"}`), Y(
4281
+ n,
4282
+ "clientstylingurl",
4283
+ /*clientstylingurl*/
4284
+ e[1]
4285
+ ), Y(
4286
+ n,
4287
+ "clientstyling",
4288
+ /*clientstyling*/
4289
+ e[0]
4290
+ ), Y(
4291
+ n,
4292
+ "mbsource",
4293
+ /*mbsource*/
4294
+ e[2]
4295
+ );
4299
4296
  },
4300
- m(a, u) {
4301
- fe(a, t, u);
4302
- for (let l = 0; l < o.length; l += 1)
4303
- o[l] && o[l].m(t, null);
4304
- fe(a, r, u), s && s.m(a, u), fe(a, i, u);
4297
+ m(b, A) {
4298
+ oe(b, t, A);
4299
+ for (let P = 0; P < _.length; P += 1)
4300
+ _[P] && _[P].m(t, null);
4301
+ oe(b, r, A), c && c.m(b, A), oe(b, i, A), oe(b, n, A), Z(n, o), Z(o, s), Z(s, a), Z(a, l), Z(l, f);
4305
4302
  },
4306
- p(a, u) {
4307
- if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
4308
- 536) {
4309
- n = wt(
4303
+ p(b, A) {
4304
+ if (A[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
4305
+ 4144) {
4306
+ y = Et(
4310
4307
  /*displayMessages*/
4311
- a[3]
4308
+ b[4]
4312
4309
  );
4313
- let l;
4314
- for (l = 0; l < n.length; l += 1) {
4315
- const f = qt(a, n, l);
4316
- o[l] ? o[l].p(f, u) : (o[l] = Zt(f), o[l].c(), o[l].m(t, null));
4310
+ let P;
4311
+ for (P = 0; P < y.length; P += 1) {
4312
+ const D = qt(b, y, P);
4313
+ _[P] ? _[P].p(D, A) : (_[P] = Zt(D), _[P].c(), _[P].m(t, null));
4317
4314
  }
4318
- for (; l < o.length; l += 1)
4319
- o[l].d(1);
4320
- o.length = n.length;
4315
+ for (; P < _.length; P += 1)
4316
+ _[P].d(1);
4317
+ _.length = y.length;
4321
4318
  }
4322
4319
  /*videoExists*/
4323
- a[6] ? s ? s.p(a, u) : (s = Jt(a), s.c(), s.m(i.parentNode, i)) : s && (s.d(1), s = null);
4320
+ b[7] ? c ? c.p(b, A) : (c = Jt(b), c.c(), c.m(i.parentNode, i)) : c && (c.d(1), c = null), A[0] & /*videoSrc*/
4321
+ 256 && !wt(f.src, h = /*videoSrc*/
4322
+ b[8]) && j(f, "src", h), A[0] & /*modalState*/
4323
+ 1024 && m !== (m = `${/*modalState*/
4324
+ b[10] !== "closed"}`) && Y(n, "show", m), A[0] & /*modalState*/
4325
+ 1024 && d !== (d = `${/*modalState*/
4326
+ b[10] === "video"}`) && Y(n, "isvideo", d), A[0] & /*clientstylingurl*/
4327
+ 2 && Y(
4328
+ n,
4329
+ "clientstylingurl",
4330
+ /*clientstylingurl*/
4331
+ b[1]
4332
+ ), A[0] & /*clientstyling*/
4333
+ 1 && Y(
4334
+ n,
4335
+ "clientstyling",
4336
+ /*clientstyling*/
4337
+ b[0]
4338
+ ), A[0] & /*mbsource*/
4339
+ 4 && Y(
4340
+ n,
4341
+ "mbsource",
4342
+ /*mbsource*/
4343
+ b[2]
4344
+ );
4324
4345
  },
4325
- d(a) {
4326
- a && (he(t), he(r), he(i)), Xr(o, a), s && s.d(a);
4346
+ d(b) {
4347
+ b && (se(t), se(r), se(i), se(n)), Jr(_, b), c && c.d(b);
4327
4348
  }
4328
4349
  };
4329
4350
  }
@@ -4331,12 +4352,12 @@ function po(e) {
4331
4352
  let t;
4332
4353
  return {
4333
4354
  c() {
4334
- t = K("cashier-spinner"), Ne(
4355
+ t = z("cashier-spinner"), Y(
4335
4356
  t,
4336
4357
  "clientstylingurl",
4337
4358
  /*clientstylingurl*/
4338
4359
  e[1]
4339
- ), Ne(
4360
+ ), Y(
4340
4361
  t,
4341
4362
  "clientstyling",
4342
4363
  /*clientstyling*/
@@ -4344,17 +4365,17 @@ function po(e) {
4344
4365
  );
4345
4366
  },
4346
4367
  m(r, i) {
4347
- fe(r, t, i);
4368
+ oe(r, t, i);
4348
4369
  },
4349
4370
  p(r, i) {
4350
4371
  i[0] & /*clientstylingurl*/
4351
- 2 && Ne(
4372
+ 2 && Y(
4352
4373
  t,
4353
4374
  "clientstylingurl",
4354
4375
  /*clientstylingurl*/
4355
4376
  r[1]
4356
4377
  ), i[0] & /*clientstyling*/
4357
- 1 && Ne(
4378
+ 1 && Y(
4358
4379
  t,
4359
4380
  "clientstyling",
4360
4381
  /*clientstyling*/
@@ -4362,7 +4383,7 @@ function po(e) {
4362
4383
  );
4363
4384
  },
4364
4385
  d(r) {
4365
- r && he(t);
4386
+ r && se(t);
4366
4387
  }
4367
4388
  };
4368
4389
  }
@@ -4371,112 +4392,112 @@ function Yt(e) {
4371
4392
  function n(...o) {
4372
4393
  return (
4373
4394
  /*click_handler*/
4374
- e[19](
4395
+ e[21](
4375
4396
  /*index*/
4376
- e[55],
4397
+ e[57],
4377
4398
  ...o
4378
4399
  )
4379
4400
  );
4380
4401
  }
4381
4402
  return {
4382
4403
  c() {
4383
- t = K("span"), t.innerHTML = '<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>', oe(t, "class", "CashierVerificationChevron");
4404
+ t = z("span"), t.innerHTML = '<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>', j(t, "class", "CashierVerificationChevron");
4384
4405
  },
4385
4406
  m(o, s) {
4386
- fe(o, t, s), r || (i = bt(t, "click", n), r = !0);
4407
+ oe(o, t, s), r || (i = mt(t, "click", n), r = !0);
4387
4408
  },
4388
4409
  p(o, s) {
4389
4410
  e = o;
4390
4411
  },
4391
4412
  d(o) {
4392
- o && he(t), r = !1, i();
4413
+ o && se(t), r = !1, i();
4393
4414
  }
4394
4415
  };
4395
4416
  }
4396
4417
  function Zt(e) {
4397
4418
  let t, r, i, n, o = (
4398
4419
  /*message*/
4399
- e[53] + ""
4400
- ), s, a, u, l, f = (
4420
+ e[55] + ""
4421
+ ), s, a, l, f, h = (
4401
4422
  /*displayMessages*/
4402
- e[3].length > 1 && /*index*/
4403
- e[55] === 0 && Yt(e)
4423
+ e[4].length > 1 && /*index*/
4424
+ e[57] === 0 && Yt(e)
4404
4425
  );
4405
- function g(...p) {
4426
+ function m(...d) {
4406
4427
  return (
4407
4428
  /*click_handler_1*/
4408
- e[20](
4429
+ e[22](
4409
4430
  /*index*/
4410
- e[55],
4411
- ...p
4431
+ e[57],
4432
+ ...d
4412
4433
  )
4413
4434
  );
4414
4435
  }
4415
4436
  return {
4416
4437
  c() {
4417
- t = K("div"), r = K("div"), r.innerHTML = '<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>', i = He(), n = K("p"), s = He(), f && f.c(), a = He(), oe(r, "class", "IconVerification"), oe(n, "class", "text"), oe(t, "class", "CashierVerificationMessage"), ye(
4438
+ t = z("div"), r = z("div"), r.innerHTML = '<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>', i = xe(), n = z("p"), s = xe(), h && h.c(), a = xe(), j(r, "class", "IconVerification"), j(n, "class", "text"), j(t, "class", "CashierVerificationMessage"), Ee(
4418
4439
  t,
4419
4440
  "ShowAll",
4420
4441
  /*allVerificationsVisible*/
4421
- e[4]
4442
+ e[5]
4422
4443
  );
4423
4444
  },
4424
- m(p, x) {
4425
- fe(p, t, x), ne(t, r), ne(t, i), ne(t, n), n.innerHTML = o, ne(t, s), f && f.m(t, null), ne(t, a), u || (l = bt(t, "click", g), u = !0);
4445
+ m(d, y) {
4446
+ oe(d, t, y), Z(t, r), Z(t, i), Z(t, n), n.innerHTML = o, Z(t, s), h && h.m(t, null), Z(t, a), l || (f = mt(t, "click", m), l = !0);
4426
4447
  },
4427
- p(p, x) {
4428
- e = p, x[0] & /*displayMessages*/
4429
- 8 && o !== (o = /*message*/
4430
- e[53] + "") && (n.innerHTML = o), /*displayMessages*/
4431
- e[3].length > 1 && /*index*/
4432
- e[55] === 0 ? f ? f.p(e, x) : (f = Yt(e), f.c(), f.m(t, a)) : f && (f.d(1), f = null), x[0] & /*allVerificationsVisible*/
4433
- 16 && ye(
4448
+ p(d, y) {
4449
+ e = d, y[0] & /*displayMessages*/
4450
+ 16 && o !== (o = /*message*/
4451
+ e[55] + "") && (n.innerHTML = o), /*displayMessages*/
4452
+ e[4].length > 1 && /*index*/
4453
+ e[57] === 0 ? h ? h.p(e, y) : (h = Yt(e), h.c(), h.m(t, a)) : h && (h.d(1), h = null), y[0] & /*allVerificationsVisible*/
4454
+ 32 && Ee(
4434
4455
  t,
4435
4456
  "ShowAll",
4436
4457
  /*allVerificationsVisible*/
4437
- e[4]
4458
+ e[5]
4438
4459
  );
4439
4460
  },
4440
- d(p) {
4441
- p && he(t), f && f.d(), u = !1, l();
4461
+ d(d) {
4462
+ d && se(t), h && h.d(), l = !1, f();
4442
4463
  }
4443
4464
  };
4444
4465
  }
4445
4466
  function Jt(e) {
4446
4467
  let t, r, i, n, o = (
4447
4468
  /*$_*/
4448
- e[8]("verification.video.how-to") + ""
4449
- ), s, a, u;
4469
+ e[11]("verification.video.how-to") + ""
4470
+ ), s, a, l;
4450
4471
  return {
4451
4472
  c() {
4452
- t = K("div"), r = K("div"), r.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', i = He(), n = K("div"), s = Zr(o), oe(r, "class", "IconVideo"), oe(n, "class", "CashierVerificationVideoLink"), ye(
4473
+ t = z("div"), r = z("div"), r.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', i = xe(), n = z("div"), s = Qr(o), j(r, "class", "IconVideo"), j(n, "class", "CashierVerificationVideoLink"), Ee(
4453
4474
  n,
4454
4475
  "CashierVerificationVideoLinkDesktop",
4455
4476
  /*desktopView*/
4456
- e[5]
4457
- ), oe(t, "class", "CashierVerificationVideo");
4477
+ e[6]
4478
+ ), j(t, "class", "CashierVerificationVideo");
4458
4479
  },
4459
- m(l, f) {
4460
- fe(l, t, f), ne(t, r), ne(t, i), ne(t, n), ne(n, s), a || (u = bt(
4480
+ m(f, h) {
4481
+ oe(f, t, h), Z(t, r), Z(t, i), Z(t, n), Z(n, s), a || (l = mt(
4461
4482
  n,
4462
4483
  "click",
4463
4484
  /*showVideo*/
4464
- e[10]
4485
+ e[13]
4465
4486
  ), a = !0);
4466
4487
  },
4467
- p(l, f) {
4468
- f[0] & /*$_*/
4469
- 256 && o !== (o = /*$_*/
4470
- l[8]("verification.video.how-to") + "") && Yr(s, o), f[0] & /*desktopView*/
4471
- 32 && ye(
4488
+ p(f, h) {
4489
+ h[0] & /*$_*/
4490
+ 2048 && o !== (o = /*$_*/
4491
+ f[11]("verification.video.how-to") + "") && Kr(s, o), h[0] & /*desktopView*/
4492
+ 64 && Ee(
4472
4493
  n,
4473
4494
  "CashierVerificationVideoLinkDesktop",
4474
4495
  /*desktopView*/
4475
- l[5]
4496
+ f[6]
4476
4497
  );
4477
4498
  },
4478
- d(l) {
4479
- l && he(t), a = !1, u();
4499
+ d(f) {
4500
+ f && se(t), a = !1, l();
4480
4501
  }
4481
4502
  };
4482
4503
  }
@@ -4485,318 +4506,325 @@ function mo(e) {
4485
4506
  function r(o, s) {
4486
4507
  if (
4487
4508
  /*isLoading*/
4488
- o[7]
4509
+ o[9]
4489
4510
  )
4490
4511
  return po;
4491
4512
  if (
4492
4513
  /*displayMessages*/
4493
- o[3]
4514
+ o[4]
4494
4515
  )
4495
4516
  return co;
4496
4517
  }
4497
4518
  let i = r(e), n = i && i(e);
4498
4519
  return {
4499
4520
  c() {
4500
- t = K("div"), n && n.c(), oe(t, "class", "CashierVerifications"), ye(
4521
+ t = z("div"), n && n.c(), j(t, "class", "CashierVerifications"), Ee(
4501
4522
  t,
4502
4523
  "CashierVerificationsDesktop",
4503
4524
  /*desktopView*/
4504
- e[5]
4525
+ e[6]
4505
4526
  );
4506
4527
  },
4507
4528
  m(o, s) {
4508
- fe(o, t, s), n && n.m(t, null), e[21](t);
4529
+ oe(o, t, s), n && n.m(t, null), e[23](t);
4509
4530
  },
4510
4531
  p(o, s) {
4511
4532
  i === (i = r(o)) && n ? n.p(o, s) : (n && n.d(1), n = i && i(o), n && (n.c(), n.m(t, null))), s[0] & /*desktopView*/
4512
- 32 && ye(
4533
+ 64 && Ee(
4513
4534
  t,
4514
4535
  "CashierVerificationsDesktop",
4515
4536
  /*desktopView*/
4516
- o[5]
4537
+ o[6]
4517
4538
  );
4518
4539
  },
4519
- i: me,
4520
- o: me,
4540
+ i: ve,
4541
+ o: ve,
4521
4542
  d(o) {
4522
- o && he(t), n && n.d(), e[21](null);
4543
+ o && se(t), n && n.d(), e[23](null);
4523
4544
  }
4524
4545
  };
4525
4546
  }
4526
4547
  const vo = "verification_explanation_video_widgets.MP4";
4527
4548
  function go(e, t, r) {
4528
4549
  let i, n;
4529
- Et(e, $n, (h) => r(8, i = h)), Et(e, Wn, (h) => r(28, n = h)), Xt.extend(ho);
4530
- let { endpoint: o } = t, { lang: s = "en" } = t, { translationurl: a = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { session: f = "" } = t, { customerid: g = "" } = t, { playersession: p = "" } = t, { mbsource: x = "" } = t, S, d = /* @__PURE__ */ new Set(), M = /* @__PURE__ */ new Set(), V, k, A, z = !0, R = !0, U = !1, X = "", ee = !1, Y = window.navigator.userAgent;
4531
- var C;
4532
- (function(h) {
4533
- h.Manual = "Manual", h.ShuftiPro = "ShuftiPro";
4534
- })(C || (C = {}));
4535
- var H;
4536
- (function(h) {
4537
- h.Requested = "Requested";
4538
- })(H || (H = {}));
4539
- var F;
4540
- (function(h) {
4541
- h.Unknown = "Unknown", h.Unverified = "Unverified", h.InProgress = "InProgress", h.Failed = "Failed", h.Verified = "Verified", h.Referred = "Referred", h.True = "True", h.False = "False", h.AwaitingForResponse = "AwaitingForResponse";
4542
- })(F || (F = {}));
4543
- var ae;
4544
- (function(h) {
4545
- h.Unknown = "Unknown", h.Documents = "Documents", h.Age = "Age", h.Pep = "Pep", h.Sanction = "Sanction", h.Aml = "Aml", h.ProofOfAddress = "ProofOfAddress", h.SourceOfWealth = "SourceOfWealth", h.SocialMedia = "SocialMedia", h.Biometric = "Biometric";
4546
- })(ae || (ae = {})), zr(() => (ge(), () => {
4550
+ _t(e, $n, (u) => r(11, i = u)), _t(e, Wn, (u) => r(29, n = u)), Xt.extend(ho);
4551
+ let { endpoint: o } = t, { lang: s = "en" } = t, { translationurl: a = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: f = "" } = t, { session: h = "" } = t, { customerid: m = "" } = t, { playersession: d = "" } = t, { mbsource: y = "" } = t, _, c = /* @__PURE__ */ new Set(), b = /* @__PURE__ */ new Set(), A, P, D, q = !0, R = !0, F = !1, J = "", re = !1, Q = "closed", k = window.navigator.userAgent;
4552
+ var B;
4553
+ (function(u) {
4554
+ u.Manual = "Manual", u.ShuftiPro = "ShuftiPro";
4555
+ })(B || (B = {}));
4556
+ var le;
4557
+ (function(u) {
4558
+ u.Requested = "Requested";
4559
+ })(le || (le = {}));
4560
+ var G;
4561
+ (function(u) {
4562
+ u.Unknown = "Unknown", u.Unverified = "Unverified", u.InProgress = "InProgress", u.Failed = "Failed", u.Verified = "Verified", u.Referred = "Referred", u.True = "True", u.False = "False", u.AwaitingForResponse = "AwaitingForResponse";
4563
+ })(G || (G = {}));
4564
+ var w;
4565
+ (function(u) {
4566
+ u.Unknown = "Unknown", u.Documents = "Documents", u.Age = "Age", u.Pep = "Pep", u.Sanction = "Sanction", u.Aml = "Aml", u.ProofOfAddress = "ProofOfAddress", u.SourceOfWealth = "SourceOfWealth", u.SocialMedia = "SocialMedia", u.Biometric = "Biometric";
4567
+ })(w || (w = {}));
4568
+ const g = (u) => {
4569
+ u.data && u.data.type === "CloseModal" && r(10, Q = "closed");
4570
+ };
4571
+ Xr(() => (window.addEventListener("message", g), Ir(), () => {
4572
+ window.removeEventListener("message", g);
4547
4573
  }));
4548
- const _ = [
4549
- F.InProgress,
4550
- F.Referred,
4551
- F.AwaitingForResponse
4552
- ], v = () => {
4553
- let h = a;
4554
- if (h)
4555
- return fetch(h).then((y) => y.json()).then((y) => {
4556
- Object.keys(y).forEach((T) => {
4557
- kt(T, y[T]);
4574
+ const p = [
4575
+ G.InProgress,
4576
+ G.Referred,
4577
+ G.AwaitingForResponse
4578
+ ], x = () => {
4579
+ let u = a;
4580
+ if (u)
4581
+ return fetch(u).then((E) => E.json()).then((E) => {
4582
+ Object.keys(E).forEach((H) => {
4583
+ kt(H, E[H]);
4558
4584
  });
4559
- }).catch((y) => {
4560
- console.log(y);
4585
+ }).catch((E) => {
4586
+ console.log(E);
4561
4587
  });
4562
4588
  };
4563
- Object.keys(Ut).forEach((h) => {
4564
- kt(h, Ut[h]);
4589
+ Object.keys(Ut).forEach((u) => {
4590
+ kt(u, Ut[u]);
4565
4591
  });
4566
- const c = () => {
4592
+ const v = () => {
4567
4593
  zn(s);
4568
- }, b = () => {
4569
- r(18, k = w());
4570
- const h = new URL(`${o}/v1/player/${g}/verification/GetKYCCustomerStatus?language=${s}`), y = new Headers();
4571
- y.append("accept", "application/json"), y.append("Content-Type", "application/json"), y.append("x-sessionid", `${p}`), y.append("X-Client-Request-Timestamp", Xt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
4572
- const T = {
4594
+ }, S = () => {
4595
+ r(20, P = N());
4596
+ const u = new URL(`${o}/v1/player/${m}/verification/GetKYCCustomerStatus?language=${s}`), E = new Headers();
4597
+ E.append("accept", "application/json"), E.append("Content-Type", "application/json"), E.append("x-sessionid", `${d}`), E.append("X-Client-Request-Timestamp", Xt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
4598
+ const H = {
4573
4599
  method: "POST",
4574
- headers: y,
4600
+ headers: E,
4575
4601
  body: JSON.stringify({})
4576
4602
  };
4577
- r(7, ee = !0), fetch(h, T).then((q) => q.json()).then((q) => {
4578
- const Ze = m(q?.Verifications);
4579
- V = B(Ze), V.VerificationStatuses.forEach((Le) => {
4580
- Le.VerificationUrlType !== "Widget" && d.add(Le.Vendor);
4581
- }), r(3, A = Z());
4582
- }).finally(() => r(7, ee = !1));
4583
- }, m = (h) => h ? h.sort((y, T) => new Date(T.Created).getTime() - new Date(y.Created).getTime()) : [], E = () => {
4584
- n && b();
4585
- }, w = () => {
4586
- let h = (f || n).split(".")[1];
4587
- if (h) {
4588
- let y = JSON.parse(atob(h));
4589
- return y.cdn + "/cashier/operator-assets/" + y?.mid;
4603
+ r(9, re = !0), fetch(u, H).then((K) => K.json()).then((K) => {
4604
+ const Ye = T(K?.Verifications);
4605
+ A = U(Ye), A.VerificationStatuses.forEach((Ne) => {
4606
+ Ne.VerificationUrlType !== "Widget" && c.add(Ne.Vendor);
4607
+ }), r(4, D = ee());
4608
+ }).finally(() => r(9, re = !1));
4609
+ }, T = (u) => u ? u.sort((E, H) => new Date(H.Created).getTime() - new Date(E.Created).getTime()) : [], I = () => {
4610
+ n && S();
4611
+ }, N = () => {
4612
+ let u = (h || n).split(".")[1];
4613
+ if (u) {
4614
+ let E = JSON.parse(atob(u));
4615
+ return E.cdn + "/cashier/operator-assets/" + E?.mid;
4590
4616
  }
4591
4617
  return "";
4592
- }, B = (h) => {
4593
- if (!h || !h.length)
4618
+ }, U = (u) => {
4619
+ if (!u || !u.length)
4594
4620
  return {
4595
- VerificationSummaryStatus: F.Unverified,
4621
+ VerificationSummaryStatus: G.Unverified,
4596
4622
  VerificationStatuses: []
4597
4623
  };
4598
- const y = G(h);
4599
- if (y && y.length) {
4600
- const T = D(y);
4624
+ const E = he(u);
4625
+ if (E && E.length) {
4626
+ const H = V(E);
4601
4627
  return {
4602
- VerificationSummaryStatus: T.Status,
4603
- VerificationUrl: T.Flags?.DeferredUrlKey,
4604
- VerificationStatuses: N(y, T.Status)
4628
+ VerificationSummaryStatus: H.Status,
4629
+ VerificationUrl: H.Flags?.DeferredUrlKey,
4630
+ VerificationStatuses: W(E, H.Status)
4605
4631
  };
4606
4632
  } else
4607
4633
  return {
4608
- VerificationSummaryStatus: h.some((q) => q.Status === F.Failed) ? F.Failed : F.Verified,
4609
- VerificationStatuses: N(h, [F.Failed])
4634
+ VerificationSummaryStatus: u.some((K) => K.Status === G.Failed) ? G.Failed : G.Verified,
4635
+ VerificationStatuses: W(u, [G.Failed])
4610
4636
  };
4611
- }, D = (h) => h.reduce(
4612
- (y, T) => y ? new Date(y) < new Date(T) ? T : y : T,
4637
+ }, V = (u) => u.reduce(
4638
+ (E, H) => E ? new Date(E) < new Date(H) ? H : E : H,
4613
4639
  0
4614
- ), N = (h, y) => h.filter((T) => y.includes(T.Status)).map((T) => ({
4615
- Type: T.Type,
4616
- Vendor: T.VendorName,
4617
- VerificationDocuments: T.Documents ? [...T.Documents] : [],
4618
- VerificationUrlType: T.FlowInfo?.Type,
4619
- VerificationUrl: T.FlowInfo?.Url
4620
- })), G = (h) => h.filter((y) => _.includes(y.Status) ? y.FlowInfo && y.FlowInfo.Url || W(y) || ue(y) : !1), W = (h) => {
4621
- const y = h.Documents && h.VendorName === C.Manual, T = h.Documents && h.Documents.some((q) => q.Status === H.Requested);
4622
- return y && T;
4623
- }, ue = (h) => h.VendorName === C.ShuftiPro && h.Status === F.Referred, Z = () => {
4624
- switch (V.VerificationSummaryStatus) {
4625
- case F.InProgress:
4626
- const h = [];
4627
- return d.forEach((y) => {
4628
- h.push(de(y));
4629
- }), h;
4630
- case F.Referred:
4640
+ ), W = (u, E) => u.filter((H) => E.includes(H.Status)).map((H) => ({
4641
+ Type: H.Type,
4642
+ Vendor: H.VendorName,
4643
+ VerificationDocuments: H.Documents ? [...H.Documents] : [],
4644
+ VerificationUrlType: H.FlowInfo?.Type,
4645
+ VerificationUrl: H.FlowInfo?.Url
4646
+ })), he = (u) => u.filter((E) => p.includes(E.Status) ? E.FlowInfo && E.FlowInfo.Url || ie(E) || de(E) : !1), ie = (u) => {
4647
+ const E = u.Documents && u.VendorName === B.Manual, H = u.Documents && u.Documents.some((K) => K.Status === le.Requested);
4648
+ return E && H;
4649
+ }, de = (u) => u.VendorName === B.ShuftiPro && u.Status === G.Referred, ee = () => {
4650
+ switch (A.VerificationSummaryStatus) {
4651
+ case G.InProgress:
4652
+ const u = [];
4653
+ return c.forEach((E) => {
4654
+ u.push($(E));
4655
+ }), u;
4656
+ case G.Referred:
4631
4657
  return [i("verification.idenfy.referred-awaiting")];
4632
- case F.Failed:
4658
+ case G.Failed:
4633
4659
  return [i("verification.message.failed")];
4634
4660
  }
4635
- }, de = (h) => {
4636
- const y = V.VerificationStatuses.filter((T) => T.Vendor === h);
4637
- if (h === C.ShuftiPro)
4638
- return te(y);
4661
+ }, $ = (u) => {
4662
+ const E = A.VerificationStatuses.filter((H) => H.Vendor === u);
4663
+ if (u === B.ShuftiPro)
4664
+ return te(E);
4639
4665
  {
4640
- const T = i("verification.idenfy.link-name"), q = {
4641
- link: `<a href="${y[0].VerificationUrl}" target="_blank">${T}</a>`
4666
+ const H = i("verification.idenfy.link-name"), K = {
4667
+ link: `<a href="${E[0].VerificationUrl}" target="_blank">${H}</a>`
4642
4668
  };
4643
- return i("verification.idenfy.in-progress", { values: q });
4669
+ return i("verification.idenfy.in-progress", { values: K });
4644
4670
  }
4645
- }, te = (h) => {
4646
- const y = [], T = {}, q = [
4647
- ae.Biometric,
4648
- ae.Documents,
4649
- ae.ProofOfAddress
4671
+ }, te = (u) => {
4672
+ const E = [], H = {}, K = [
4673
+ w.Biometric,
4674
+ w.Documents,
4675
+ w.ProofOfAddress
4650
4676
  ];
4651
- h.forEach((pe) => {
4652
- q.includes(pe.Type) && (y.push(pe.Type), T[pe.Type] = j(pe, J(pe.Type)));
4677
+ u.forEach((me) => {
4678
+ K.includes(me.Type) && (E.push(me.Type), H[me.Type] = pe(me, be(me.Type)));
4653
4679
  });
4654
- let Ze = y.every((pe) => M.has(pe)), Le = `verification.shuftipro.in-progress.${y.sort().join(".")}`;
4655
- return Ze ? i("verification.shuftipro.validations-started") : i(Le, { values: T });
4656
- }, j = (h, y) => `<a class="verificationLink ${h.Type}" href=" ${h.VerificationUrl} " target="_blank">${y}</a>`, J = (h) => i(`verification.shuftipro.link-name.${h}`), re = (h, y) => {
4657
- if (h.stopPropagation(), h.target && (h.target.href || h.target.closest("a"))) {
4658
- if (h.target.closest(".verificationLink")) {
4659
- const T = h.target.className.split(" ")[1];
4660
- M.add(T), r(3, A = Z());
4680
+ let Ye = E.every((me) => b.has(me)), Ne = `verification.shuftipro.in-progress.${E.sort().join(".")}`;
4681
+ return Ye ? i("verification.shuftipro.validations-started") : i(Ne, { values: H });
4682
+ }, pe = (u, E) => `<a class="verificationLink ${u.Type}" href=" ${u.VerificationUrl} " target="_blank">${E}</a>`, be = (u) => i(`verification.shuftipro.link-name.${u}`), qe = (u, E) => {
4683
+ if (u.stopPropagation(), u.target && (u.target.href || u.target.closest("a"))) {
4684
+ if (u.target.closest(".verificationLink")) {
4685
+ const H = u.target.className.split(" ")[1];
4686
+ b.add(H), r(4, D = ee());
4661
4687
  }
4662
4688
  return;
4663
4689
  }
4664
- y === 0 && r(4, z = !z);
4665
- }, ge = () => {
4666
- r(5, R = !ao(Y));
4690
+ E === 0 && r(5, q = !q);
4667
4691
  }, Ir = () => {
4668
- X = k + "/" + s + "/" + vo;
4692
+ r(6, R = !ao(k));
4693
+ }, Lr = () => {
4694
+ r(8, J = P + "/" + s + "/" + vo);
4669
4695
  try {
4670
- fetch(X, { method: "HEAD" }).then((h) => {
4671
- r(6, U = h.ok);
4696
+ fetch(J, { method: "HEAD" }).then((u) => {
4697
+ r(7, F = u.ok);
4672
4698
  });
4673
4699
  } catch {
4674
- r(6, U = !1);
4700
+ r(7, F = !1);
4675
4701
  }
4676
- }, Dr = () => {
4677
- window.postMessage({ type: "ShowVideoModal", videoSrc: X }, window.location.href);
4678
- }, Lr = (h, y) => re(y, h), Nr = (h, y) => re(y, h);
4679
- function Rr(h) {
4680
- Wr[h ? "unshift" : "push"](() => {
4681
- S = h, r(2, S);
4702
+ }, Nr = () => {
4703
+ r(10, Q = "video");
4704
+ }, Rr = (u, E) => qe(E, u), kr = (u, E) => qe(E, u);
4705
+ function Ur(u) {
4706
+ Zr[u ? "unshift" : "push"](() => {
4707
+ _ = u, r(3, _);
4682
4708
  });
4683
4709
  }
4684
- return e.$$set = (h) => {
4685
- "endpoint" in h && r(11, o = h.endpoint), "lang" in h && r(12, s = h.lang), "translationurl" in h && r(13, a = h.translationurl), "clientstyling" in h && r(0, u = h.clientstyling), "clientstylingurl" in h && r(1, l = h.clientstylingurl), "session" in h && r(14, f = h.session), "customerid" in h && r(15, g = h.customerid), "playersession" in h && r(16, p = h.playersession), "mbsource" in h && r(17, x = h.mbsource);
4710
+ return e.$$set = (u) => {
4711
+ "endpoint" in u && r(14, o = u.endpoint), "lang" in u && r(15, s = u.lang), "translationurl" in u && r(16, a = u.translationurl), "clientstyling" in u && r(0, l = u.clientstyling), "clientstylingurl" in u && r(1, f = u.clientstylingurl), "session" in u && r(17, h = u.session), "customerid" in u && r(18, m = u.customerid), "playersession" in u && r(19, d = u.playersession), "mbsource" in u && r(2, y = u.mbsource);
4686
4712
  }, e.$$.update = () => {
4687
4713
  e.$$.dirty[0] & /*lang*/
4688
- 4096 && s && c(), e.$$.dirty[0] & /*endpoint, session, playersession*/
4689
- 83968 && o && f && p && b(), e.$$.dirty[0] & /*endpoint, session, playersession*/
4690
- 83968 && o && !f && p && E(), e.$$.dirty[0] & /*translationurl*/
4691
- 8192 && a && v(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4692
- 5 && u && S && Kr(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4693
- 6 && l && S && Jr(), e.$$.dirty[0] & /*staticCdnUrl*/
4694
- 262144 && k && Ir(), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
4695
- 131076 && x && S && Qr(S, `${x}.Style`);
4714
+ 32768 && s && v(), e.$$.dirty[0] & /*endpoint, session, playersession*/
4715
+ 671744 && o && h && d && S(), e.$$.dirty[0] & /*endpoint, session, playersession*/
4716
+ 671744 && o && !h && d && I(), e.$$.dirty[0] & /*translationurl*/
4717
+ 65536 && a && x(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4718
+ 9 && l && _ && ei(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4719
+ 10 && f && _ && qr(), e.$$.dirty[0] & /*staticCdnUrl*/
4720
+ 1048576 && P && Lr(), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
4721
+ 12 && y && _ && Yr(_, `${y}.Style`);
4696
4722
  }, [
4697
- u,
4698
4723
  l,
4699
- S,
4700
- A,
4701
- z,
4724
+ f,
4725
+ y,
4726
+ _,
4727
+ D,
4728
+ q,
4702
4729
  R,
4703
- U,
4704
- ee,
4705
- i,
4730
+ F,
4731
+ J,
4706
4732
  re,
4707
- Dr,
4733
+ Q,
4734
+ i,
4735
+ qe,
4736
+ Nr,
4708
4737
  o,
4709
4738
  s,
4710
4739
  a,
4711
- f,
4712
- g,
4713
- p,
4714
- x,
4715
- k,
4716
- Lr,
4717
- Nr,
4718
- Rr
4740
+ h,
4741
+ m,
4742
+ d,
4743
+ P,
4744
+ Rr,
4745
+ kr,
4746
+ Ur
4719
4747
  ];
4720
4748
  }
4721
- class bo extends Gr {
4749
+ class bo extends $r {
4722
4750
  constructor(t) {
4723
- super(), jr(
4751
+ super(), zr(
4724
4752
  this,
4725
4753
  t,
4726
4754
  go,
4727
4755
  mo,
4728
4756
  Qt,
4729
4757
  {
4730
- endpoint: 11,
4731
- lang: 12,
4732
- translationurl: 13,
4758
+ endpoint: 14,
4759
+ lang: 15,
4760
+ translationurl: 16,
4733
4761
  clientstyling: 0,
4734
4762
  clientstylingurl: 1,
4735
- session: 14,
4736
- customerid: 15,
4737
- playersession: 16,
4738
- mbsource: 17
4763
+ session: 17,
4764
+ customerid: 18,
4765
+ playersession: 19,
4766
+ mbsource: 2
4739
4767
  },
4740
4768
  fo,
4741
4769
  [-1, -1]
4742
4770
  );
4743
4771
  }
4744
4772
  get endpoint() {
4745
- return this.$$.ctx[11];
4773
+ return this.$$.ctx[14];
4746
4774
  }
4747
4775
  set endpoint(t) {
4748
- this.$$set({ endpoint: t }), ie();
4776
+ this.$$set({ endpoint: t }), ne();
4749
4777
  }
4750
4778
  get lang() {
4751
- return this.$$.ctx[12];
4779
+ return this.$$.ctx[15];
4752
4780
  }
4753
4781
  set lang(t) {
4754
- this.$$set({ lang: t }), ie();
4782
+ this.$$set({ lang: t }), ne();
4755
4783
  }
4756
4784
  get translationurl() {
4757
- return this.$$.ctx[13];
4785
+ return this.$$.ctx[16];
4758
4786
  }
4759
4787
  set translationurl(t) {
4760
- this.$$set({ translationurl: t }), ie();
4788
+ this.$$set({ translationurl: t }), ne();
4761
4789
  }
4762
4790
  get clientstyling() {
4763
4791
  return this.$$.ctx[0];
4764
4792
  }
4765
4793
  set clientstyling(t) {
4766
- this.$$set({ clientstyling: t }), ie();
4794
+ this.$$set({ clientstyling: t }), ne();
4767
4795
  }
4768
4796
  get clientstylingurl() {
4769
4797
  return this.$$.ctx[1];
4770
4798
  }
4771
4799
  set clientstylingurl(t) {
4772
- this.$$set({ clientstylingurl: t }), ie();
4800
+ this.$$set({ clientstylingurl: t }), ne();
4773
4801
  }
4774
4802
  get session() {
4775
- return this.$$.ctx[14];
4803
+ return this.$$.ctx[17];
4776
4804
  }
4777
4805
  set session(t) {
4778
- this.$$set({ session: t }), ie();
4806
+ this.$$set({ session: t }), ne();
4779
4807
  }
4780
4808
  get customerid() {
4781
- return this.$$.ctx[15];
4809
+ return this.$$.ctx[18];
4782
4810
  }
4783
4811
  set customerid(t) {
4784
- this.$$set({ customerid: t }), ie();
4812
+ this.$$set({ customerid: t }), ne();
4785
4813
  }
4786
4814
  get playersession() {
4787
- return this.$$.ctx[16];
4815
+ return this.$$.ctx[19];
4788
4816
  }
4789
4817
  set playersession(t) {
4790
- this.$$set({ playersession: t }), ie();
4818
+ this.$$set({ playersession: t }), ne();
4791
4819
  }
4792
4820
  get mbsource() {
4793
- return this.$$.ctx[17];
4821
+ return this.$$.ctx[2];
4794
4822
  }
4795
4823
  set mbsource(t) {
4796
- this.$$set({ mbsource: t }), ie();
4824
+ this.$$set({ mbsource: t }), ne();
4797
4825
  }
4798
4826
  }
4799
- Vr(bo, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, playersession: {}, mbsource: {} }, [], [], !0);
4827
+ jr(bo, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, playersession: {}, mbsource: {} }, [], [], !0);
4800
4828
  export {
4801
4829
  bo as C
4802
4830
  };