@everymatrix/player-panic-button 1.74.10 → 1.75.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,17 +1,17 @@
1
- var sr = Object.defineProperty, ar = Object.defineProperties;
2
- var ur = Object.getOwnPropertyDescriptors;
3
- var Je = Object.getOwnPropertySymbols;
4
- var hr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable;
5
- var xe = (e, t, r) => t in e ? sr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
1
+ var lr = Object.defineProperty, cr = Object.defineProperties;
2
+ var fr = Object.getOwnPropertyDescriptors;
3
+ var et = Object.getOwnPropertySymbols;
4
+ var pr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable;
5
+ var Se = (e, t, r) => t in e ? lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- hr.call(t, r) && xe(e, r, t[r]);
8
- if (Je)
9
- for (var r of Je(t))
10
- lr.call(t, r) && xe(e, r, t[r]);
7
+ pr.call(t, r) && Se(e, r, t[r]);
8
+ if (et)
9
+ for (var r of et(t))
10
+ mr.call(t, r) && Se(e, r, t[r]);
11
11
  return e;
12
- }, qe = (e, t) => ar(e, ur(t));
13
- var T = (e, t, r) => (xe(e, typeof t != "symbol" ? t + "" : t, r), r);
14
- var Ke = (e, t, r) => new Promise((n, i) => {
12
+ }, rt = (e, t) => cr(e, fr(t));
13
+ var w = (e, t, r) => (Se(e, typeof t != "symbol" ? t + "" : t, r), r);
14
+ var nt = (e, t, r) => new Promise((n, i) => {
15
15
  var o = (u) => {
16
16
  try {
17
17
  a(r.next(u));
@@ -29,25 +29,25 @@ var Ke = (e, t, r) => new Promise((n, i) => {
29
29
  });
30
30
  function B() {
31
31
  }
32
- function wt(e) {
32
+ function At(e) {
33
33
  return e();
34
34
  }
35
- function et() {
35
+ function it() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function re(e) {
39
- e.forEach(wt);
38
+ function te(e) {
39
+ e.forEach(At);
40
40
  }
41
- function Ve(e) {
41
+ function Qe(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function Bt(e, t) {
44
+ function Ot(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- function cr(e) {
47
+ function dr(e) {
48
48
  return Object.keys(e).length === 0;
49
49
  }
50
- function Ht(e, ...t) {
50
+ function It(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const n of t)
53
53
  n(void 0);
@@ -56,20 +56,20 @@ function Ht(e, ...t) {
56
56
  const r = e.subscribe(...t);
57
57
  return r.unsubscribe ? () => r.unsubscribe() : r;
58
58
  }
59
- function fr(e, t, r) {
60
- e.$$.on_destroy.push(Ht(t, r));
59
+ function br(e, t, r) {
60
+ e.$$.on_destroy.push(It(t, r));
61
61
  }
62
62
  function ue(e, t) {
63
63
  e.appendChild(t);
64
64
  }
65
- function dr(e, t, r) {
66
- const n = pr(e);
65
+ function gr(e, t, r) {
66
+ const n = yr(e);
67
67
  if (!n.getElementById(t)) {
68
- const i = Y("style");
69
- i.id = t, i.textContent = r, mr(n, i);
68
+ const i = J("style");
69
+ i.id = t, i.textContent = r, vr(n, i);
70
70
  }
71
71
  }
72
- function pr(e) {
72
+ function yr(e) {
73
73
  if (!e)
74
74
  return document;
75
75
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -79,39 +79,39 @@ function pr(e) {
79
79
  t
80
80
  ) : e.ownerDocument;
81
81
  }
82
- function mr(e, t) {
82
+ function vr(e, t) {
83
83
  return ue(
84
84
  /** @type {Document} */
85
85
  e.head || e,
86
86
  t
87
87
  ), t.sheet;
88
88
  }
89
- function Pt(e, t, r) {
89
+ function Nt(e, t, r) {
90
90
  e.insertBefore(t, r || null);
91
91
  }
92
- function ze(e) {
92
+ function Je(e) {
93
93
  e.parentNode && e.parentNode.removeChild(e);
94
94
  }
95
- function Y(e) {
95
+ function J(e) {
96
96
  return document.createElement(e);
97
97
  }
98
- function br(e) {
98
+ function Er(e) {
99
99
  return document.createTextNode(e);
100
100
  }
101
101
  function C(e, t, r) {
102
102
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
103
103
  }
104
- function gr(e) {
104
+ function _r(e) {
105
105
  return Array.from(e.childNodes);
106
106
  }
107
- function yr(e, t) {
107
+ function xr(e, t) {
108
108
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
109
109
  t);
110
110
  }
111
- function tt(e, t, r) {
111
+ function ot(e, t, r) {
112
112
  e.classList.toggle(t, !!r);
113
113
  }
114
- function vr(e) {
114
+ function Sr(e) {
115
115
  const t = {};
116
116
  return e.childNodes.forEach(
117
117
  /** @param {Element} node */
@@ -120,87 +120,87 @@ function vr(e) {
120
120
  }
121
121
  ), t;
122
122
  }
123
- let K;
124
- function q(e) {
125
- K = e;
123
+ let q;
124
+ function Y(e) {
125
+ q = e;
126
126
  }
127
- function Er() {
128
- if (!K)
127
+ function wr() {
128
+ if (!q)
129
129
  throw new Error("Function called outside component initialization");
130
- return K;
130
+ return q;
131
131
  }
132
- function xr(e) {
133
- Er().$$.on_mount.push(e);
132
+ function Tr(e) {
133
+ wr().$$.on_mount.push(e);
134
134
  }
135
- const G = [], de = [];
135
+ const G = [], pe = [];
136
136
  let F = [];
137
- const rt = [], _r = /* @__PURE__ */ Promise.resolve();
138
- let Ae = !1;
139
- function Sr() {
140
- Ae || (Ae = !0, _r.then(P));
137
+ const st = [], Br = /* @__PURE__ */ Promise.resolve();
138
+ let Ne = !1;
139
+ function Hr() {
140
+ Ne || (Ne = !0, Br.then(A));
141
141
  }
142
- function Oe(e) {
142
+ function Le(e) {
143
143
  F.push(e);
144
144
  }
145
- const _e = /* @__PURE__ */ new Set();
145
+ const we = /* @__PURE__ */ new Set();
146
146
  let U = 0;
147
- function P() {
147
+ function A() {
148
148
  if (U !== 0)
149
149
  return;
150
- const e = K;
150
+ const e = q;
151
151
  do {
152
152
  try {
153
153
  for (; U < G.length; ) {
154
154
  const t = G[U];
155
- U++, q(t), Tr(t.$$);
155
+ U++, Y(t), Pr(t.$$);
156
156
  }
157
157
  } catch (t) {
158
158
  throw G.length = 0, U = 0, t;
159
159
  }
160
- for (q(null), G.length = 0, U = 0; de.length; )
161
- de.pop()();
160
+ for (Y(null), G.length = 0, U = 0; pe.length; )
161
+ pe.pop()();
162
162
  for (let t = 0; t < F.length; t += 1) {
163
163
  const r = F[t];
164
- _e.has(r) || (_e.add(r), r());
164
+ we.has(r) || (we.add(r), r());
165
165
  }
166
166
  F.length = 0;
167
167
  } while (G.length);
168
- for (; rt.length; )
169
- rt.pop()();
170
- Ae = !1, _e.clear(), q(e);
168
+ for (; st.length; )
169
+ st.pop()();
170
+ Ne = !1, we.clear(), Y(e);
171
171
  }
172
- function Tr(e) {
172
+ function Pr(e) {
173
173
  if (e.fragment !== null) {
174
- e.update(), re(e.before_update);
174
+ e.update(), te(e.before_update);
175
175
  const t = e.dirty;
176
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Oe);
176
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
177
177
  }
178
178
  }
179
- function wr(e) {
179
+ function Ar(e) {
180
180
  const t = [], r = [];
181
181
  F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
182
182
  }
183
- const Br = /* @__PURE__ */ new Set();
184
- function Hr(e, t) {
185
- e && e.i && (Br.delete(e), e.i(t));
183
+ const Or = /* @__PURE__ */ new Set();
184
+ function Ir(e, t) {
185
+ e && e.i && (Or.delete(e), e.i(t));
186
186
  }
187
- function Pr(e, t, r) {
187
+ function Nr(e, t, r) {
188
188
  const { fragment: n, after_update: i } = e.$$;
189
- n && n.m(t, r), Oe(() => {
190
- const o = e.$$.on_mount.map(wt).filter(Ve);
191
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
192
- }), i.forEach(Oe);
189
+ n && n.m(t, r), Le(() => {
190
+ const o = e.$$.on_mount.map(At).filter(Qe);
191
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
192
+ }), i.forEach(Le);
193
193
  }
194
- function Ar(e, t) {
194
+ function Lr(e, t) {
195
195
  const r = e.$$;
196
- r.fragment !== null && (wr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
196
+ r.fragment !== null && (Ar(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
197
197
  }
198
- function Or(e, t) {
199
- e.$$.dirty[0] === -1 && (G.push(e), Sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
198
+ function Cr(e, t) {
199
+ e.$$.dirty[0] === -1 && (G.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
200
200
  }
201
- function Ir(e, t, r, n, i, o, s = null, a = [-1]) {
202
- const u = K;
203
- q(e);
201
+ function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
202
+ const u = q;
203
+ Y(e);
204
204
  const h = e.$$ = {
205
205
  fragment: null,
206
206
  ctx: [],
@@ -208,7 +208,7 @@ function Ir(e, t, r, n, i, o, s = null, a = [-1]) {
208
208
  props: o,
209
209
  update: B,
210
210
  not_equal: i,
211
- bound: et(),
211
+ bound: it(),
212
212
  // lifecycle
213
213
  on_mount: [],
214
214
  on_destroy: [],
@@ -217,48 +217,48 @@ function Ir(e, t, r, n, i, o, s = null, a = [-1]) {
217
217
  after_update: [],
218
218
  context: new Map(t.context || (u ? u.$$.context : [])),
219
219
  // everything else
220
- callbacks: et(),
220
+ callbacks: it(),
221
221
  dirty: a,
222
222
  skip_bound: !1,
223
223
  root: t.target || u.$$.root
224
224
  };
225
225
  s && s(h.root);
226
226
  let l = !1;
227
- if (h.ctx = r(e, t.props || {}, (c, f, ...p) => {
228
- const y = p.length ? p[0] : f;
229
- return h.ctx && i(h.ctx[c], h.ctx[c] = y) && (!h.skip_bound && h.bound[c] && h.bound[c](y), l && Or(e, c)), f;
230
- }), h.update(), l = !0, re(h.before_update), h.fragment = n(h.ctx), t.target) {
227
+ if (h.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
228
+ const g = m.length ? m[0] : f;
229
+ return h.ctx && i(h.ctx[c], h.ctx[c] = g) && (!h.skip_bound && h.bound[c] && h.bound[c](g), l && Cr(e, c)), f;
230
+ }) : [], h.update(), l = !0, te(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
231
231
  if (t.hydrate) {
232
- const c = gr(t.target);
233
- h.fragment && h.fragment.l(c), c.forEach(ze);
232
+ const c = _r(t.target);
233
+ h.fragment && h.fragment.l(c), c.forEach(Je);
234
234
  } else
235
235
  h.fragment && h.fragment.c();
236
- t.intro && Hr(e.$$.fragment), Pr(e, t.target, t.anchor), P();
236
+ t.intro && Ir(e.$$.fragment), Nr(e, t.target, t.anchor), A();
237
237
  }
238
- q(u);
238
+ Y(u);
239
239
  }
240
- let At;
241
- typeof HTMLElement == "function" && (At = class extends HTMLElement {
240
+ let Lt;
241
+ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
242
242
  constructor(t, r, n) {
243
243
  super();
244
244
  /** The Svelte component constructor */
245
- T(this, "$$ctor");
245
+ w(this, "$$ctor");
246
246
  /** Slots */
247
- T(this, "$$s");
247
+ w(this, "$$s");
248
248
  /** The Svelte component instance */
249
- T(this, "$$c");
249
+ w(this, "$$c");
250
250
  /** Whether or not the custom element is connected */
251
- T(this, "$$cn", !1);
251
+ w(this, "$$cn", !1);
252
252
  /** Component props data */
253
- T(this, "$$d", {});
253
+ w(this, "$$d", {});
254
254
  /** `true` if currently in the process of reflecting component props back to attributes */
255
- T(this, "$$r", !1);
255
+ w(this, "$$r", !1);
256
256
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
257
- T(this, "$$p_d", {});
257
+ w(this, "$$p_d", {});
258
258
  /** @type {Record<string, Function[]>} Event listeners */
259
- T(this, "$$l", {});
259
+ w(this, "$$l", {});
260
260
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
261
- T(this, "$$l_u", /* @__PURE__ */ new Map());
261
+ w(this, "$$l_u", /* @__PURE__ */ new Map());
262
262
  this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
263
263
  }
264
264
  addEventListener(t, r, n) {
@@ -275,31 +275,31 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
275
275
  }
276
276
  }
277
277
  connectedCallback() {
278
- return Ke(this, null, function* () {
278
+ return nt(this, null, function* () {
279
279
  if (this.$$cn = !0, !this.$$c) {
280
280
  let t = function(o) {
281
281
  return () => {
282
282
  let s;
283
283
  return {
284
284
  c: function() {
285
- s = Y("slot"), o !== "default" && C(s, "name", o);
285
+ s = J("slot"), o !== "default" && C(s, "name", o);
286
286
  },
287
287
  /**
288
288
  * @param {HTMLElement} target
289
289
  * @param {HTMLElement} [anchor]
290
290
  */
291
291
  m: function(h, l) {
292
- Pt(h, s, l);
292
+ Nt(h, s, l);
293
293
  },
294
294
  d: function(h) {
295
- h && ze(s);
295
+ h && Je(s);
296
296
  }
297
297
  };
298
298
  };
299
299
  };
300
300
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
301
301
  return;
302
- const r = {}, n = vr(this);
302
+ const r = {}, n = Sr(this);
303
303
  for (const o of this.$$s)
304
304
  o in n && (r[o] = [t(o)]);
305
305
  for (const o of this.attributes) {
@@ -310,7 +310,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
310
310
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
311
311
  this.$$c = new this.$$ctor({
312
312
  target: this.shadowRoot || this,
313
- props: qe(Ye({}, this.$$d), {
313
+ props: rt(tt({}, this.$$d), {
314
314
  $$slots: r,
315
315
  $$scope: {
316
316
  ctx: []
@@ -388,8 +388,8 @@ function he(e, t, r, n) {
388
388
  return t;
389
389
  }
390
390
  }
391
- function Nr(e, t, r, n, i, o) {
392
- let s = class extends At {
391
+ function $r(e, t, r, n, i, o) {
392
+ let s = class extends Lt {
393
393
  constructor() {
394
394
  super(e, r, i), this.$$p_d = t;
395
395
  }
@@ -419,7 +419,7 @@ function Nr(e, t, r, n, i, o) {
419
419
  }), e.element = /** @type {any} */
420
420
  s, s;
421
421
  }
422
- class Lr {
422
+ class Rr {
423
423
  constructor() {
424
424
  /**
425
425
  * ### PRIVATE API
@@ -428,7 +428,7 @@ class Lr {
428
428
  *
429
429
  * @type {any}
430
430
  */
431
- T(this, "$$");
431
+ w(this, "$$");
432
432
  /**
433
433
  * ### PRIVATE API
434
434
  *
@@ -436,11 +436,11 @@ class Lr {
436
436
  *
437
437
  * @type {any}
438
438
  */
439
- T(this, "$$set");
439
+ w(this, "$$set");
440
440
  }
441
441
  /** @returns {void} */
442
442
  $destroy() {
443
- Ar(this, 1), this.$destroy = B;
443
+ Lr(this, 1), this.$destroy = B;
444
444
  }
445
445
  /**
446
446
  * @template {Extract<keyof Events, string>} K
@@ -449,7 +449,7 @@ class Lr {
449
449
  * @returns {() => void}
450
450
  */
451
451
  $on(t, r) {
452
- if (!Ve(r))
452
+ if (!Qe(r))
453
453
  return B;
454
454
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
455
455
  return n.push(r), () => {
@@ -462,18 +462,18 @@ class Lr {
462
462
  * @returns {void}
463
463
  */
464
464
  $set(t) {
465
- this.$$set && !cr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
465
+ this.$$set && !dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
466
466
  }
467
467
  }
468
- const Cr = "4";
469
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Cr);
470
- function Mr(e, t) {
468
+ const Ur = "4";
469
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ur);
470
+ function Dr(e, t) {
471
471
  if (e) {
472
472
  const r = document.createElement("style");
473
473
  r.innerHTML = t, e.appendChild(r);
474
474
  }
475
475
  }
476
- function $r(e, t) {
476
+ function Gr(e, t) {
477
477
  const r = new URL(t);
478
478
  fetch(r.href).then((n) => n.text()).then((n) => {
479
479
  const i = document.createElement("style");
@@ -482,7 +482,7 @@ function $r(e, t) {
482
482
  console.error("There was an error while trying to load client styling from URL", n);
483
483
  });
484
484
  }
485
- function Rr(e, t, r) {
485
+ function Fr(e, t, r) {
486
486
  if (window.emMessageBus) {
487
487
  const n = document.createElement("style");
488
488
  window.emMessageBus.subscribe(t, (i) => {
@@ -504,43 +504,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
504
504
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
505
505
  PERFORMANCE OF THIS SOFTWARE.
506
506
  ***************************************************************************** */
507
- var Ie = function(e, t) {
508
- return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
507
+ var Ce = function(e, t) {
508
+ return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
509
509
  r.__proto__ = n;
510
510
  } || function(r, n) {
511
511
  for (var i in n)
512
512
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
513
- }, Ie(e, t);
513
+ }, Ce(e, t);
514
514
  };
515
- function O(e, t) {
515
+ function re(e, t) {
516
516
  if (typeof t != "function" && t !== null)
517
517
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
518
- Ie(e, t);
518
+ Ce(e, t);
519
519
  function r() {
520
520
  this.constructor = e;
521
521
  }
522
522
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
523
523
  }
524
- var b = function() {
525
- return b = Object.assign || function(t) {
526
- for (var r, n = 1, i = arguments.length; n < i; n++) {
527
- r = arguments[n];
528
- for (var o in r)
529
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
530
- }
531
- return t;
532
- }, b.apply(this, arguments);
533
- };
534
- function Ur(e, t) {
535
- var r = {};
536
- for (var n in e)
537
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
538
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
539
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
540
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
541
- return r;
542
- }
543
- function Ne(e) {
524
+ function Me(e) {
544
525
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
545
526
  if (r)
546
527
  return r.call(e);
@@ -552,7 +533,7 @@ function Ne(e) {
552
533
  };
553
534
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
554
535
  }
555
- function Le(e, t) {
536
+ function $e(e, t) {
556
537
  var r = typeof Symbol == "function" && e[Symbol.iterator];
557
538
  if (!r)
558
539
  return e;
@@ -572,22 +553,22 @@ function Le(e, t) {
572
553
  }
573
554
  return o;
574
555
  }
575
- function j(e, t, r) {
576
- if (r || arguments.length === 2)
556
+ function Re(e, t, r) {
557
+ if (arguments.length === 2)
577
558
  for (var n = 0, i = t.length, o; n < i; n++)
578
559
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
579
560
  return e.concat(o || t);
580
561
  }
581
- function A(e) {
562
+ function O(e) {
582
563
  return typeof e == "function";
583
564
  }
584
- function Ot(e) {
565
+ function Ct(e) {
585
566
  var t = function(n) {
586
567
  Error.call(n), n.stack = new Error().stack;
587
568
  }, r = e(t);
588
569
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
589
570
  }
590
- var Se = Ot(function(e) {
571
+ var Te = Ct(function(e) {
591
572
  return function(r) {
592
573
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
593
574
  ` + r.map(function(n, i) {
@@ -596,13 +577,13 @@ var Se = Ot(function(e) {
596
577
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
597
578
  };
598
579
  });
599
- function Ce(e, t) {
580
+ function Ue(e, t) {
600
581
  if (e) {
601
582
  var r = e.indexOf(t);
602
583
  0 <= r && e.splice(r, 1);
603
584
  }
604
585
  }
605
- var be = function() {
586
+ var ge = function() {
606
587
  function e(t) {
607
588
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
608
589
  }
@@ -614,12 +595,12 @@ var be = function() {
614
595
  if (s)
615
596
  if (this._parentage = null, Array.isArray(s))
616
597
  try {
617
- for (var a = Ne(s), u = a.next(); !u.done; u = a.next()) {
598
+ for (var a = Me(s), u = a.next(); !u.done; u = a.next()) {
618
599
  var h = u.value;
619
600
  h.remove(this);
620
601
  }
621
- } catch (g) {
622
- t = { error: g };
602
+ } catch (b) {
603
+ t = { error: b };
623
604
  } finally {
624
605
  try {
625
606
  u && !u.done && (r = a.return) && r.call(a);
@@ -631,29 +612,29 @@ var be = function() {
631
612
  else
632
613
  s.remove(this);
633
614
  var l = this.initialTeardown;
634
- if (A(l))
615
+ if (O(l))
635
616
  try {
636
617
  l();
637
- } catch (g) {
638
- o = g instanceof Se ? g.errors : [g];
618
+ } catch (b) {
619
+ o = b instanceof Te ? b.errors : [b];
639
620
  }
640
621
  var c = this._finalizers;
641
622
  if (c) {
642
623
  this._finalizers = null;
643
624
  try {
644
- for (var f = Ne(c), p = f.next(); !p.done; p = f.next()) {
645
- var y = p.value;
625
+ for (var f = Me(c), m = f.next(); !m.done; m = f.next()) {
626
+ var g = m.value;
646
627
  try {
647
- nt(y);
648
- } catch (g) {
649
- o = o != null ? o : [], g instanceof Se ? o = j(j([], Le(o)), Le(g.errors)) : o.push(g);
628
+ at(g);
629
+ } catch (b) {
630
+ o = o != null ? o : [], b instanceof Te ? o = Re(Re([], $e(o)), $e(b.errors)) : o.push(b);
650
631
  }
651
632
  }
652
- } catch (g) {
653
- n = { error: g };
633
+ } catch (b) {
634
+ n = { error: b };
654
635
  } finally {
655
636
  try {
656
- p && !p.done && (i = f.return) && i.call(f);
637
+ m && !m.done && (i = f.return) && i.call(f);
657
638
  } finally {
658
639
  if (n)
659
640
  throw n.error;
@@ -661,13 +642,13 @@ var be = function() {
661
642
  }
662
643
  }
663
644
  if (o)
664
- throw new Se(o);
645
+ throw new Te(o);
665
646
  }
666
647
  }, e.prototype.add = function(t) {
667
648
  var r;
668
649
  if (t && t !== this)
669
650
  if (this.closed)
670
- nt(t);
651
+ at(t);
671
652
  else {
672
653
  if (t instanceof e) {
673
654
  if (t.closed || t._hasParent(this))
@@ -684,56 +665,52 @@ var be = function() {
684
665
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
685
666
  }, e.prototype._removeParent = function(t) {
686
667
  var r = this._parentage;
687
- r === t ? this._parentage = null : Array.isArray(r) && Ce(r, t);
668
+ r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
688
669
  }, e.prototype.remove = function(t) {
689
670
  var r = this._finalizers;
690
- r && Ce(r, t), t instanceof e && t._removeParent(this);
671
+ r && Ue(r, t), t instanceof e && t._removeParent(this);
691
672
  }, e.EMPTY = function() {
692
673
  var t = new e();
693
674
  return t.closed = !0, t;
694
675
  }(), e;
695
- }(), It = be.EMPTY;
696
- function Nt(e) {
697
- return e instanceof be || e && "closed" in e && A(e.remove) && A(e.add) && A(e.unsubscribe);
698
- }
699
- function nt(e) {
700
- A(e) ? e() : e.unsubscribe();
701
- }
702
- var Dr = {
703
- onUnhandledError: null,
704
- onStoppedNotification: null,
705
- Promise: void 0,
706
- useDeprecatedSynchronousErrorHandling: !1,
707
- useDeprecatedNextContext: !1
708
- }, Gr = {
676
+ }(), Mt = ge.EMPTY;
677
+ function $t(e) {
678
+ return e instanceof ge || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
679
+ }
680
+ function at(e) {
681
+ O(e) ? e() : e.unsubscribe();
682
+ }
683
+ var jr = {
684
+ Promise: void 0
685
+ }, kr = {
709
686
  setTimeout: function(e, t) {
710
687
  for (var r = [], n = 2; n < arguments.length; n++)
711
688
  r[n - 2] = arguments[n];
712
- return setTimeout.apply(void 0, j([e, t], Le(r)));
689
+ return setTimeout.apply(void 0, Re([e, t], $e(r)));
713
690
  },
714
691
  clearTimeout: function(e) {
715
692
  return clearTimeout(e);
716
693
  },
717
694
  delegate: void 0
718
695
  };
719
- function Fr(e) {
720
- Gr.setTimeout(function() {
696
+ function Vr(e) {
697
+ kr.setTimeout(function() {
721
698
  throw e;
722
699
  });
723
700
  }
724
- function it() {
701
+ function ut() {
725
702
  }
726
703
  function le(e) {
727
704
  e();
728
705
  }
729
- var Lt = function(e) {
730
- O(t, e);
706
+ var Rt = function(e) {
707
+ re(t, e);
731
708
  function t(r) {
732
709
  var n = e.call(this) || this;
733
- return n.isStopped = !1, r ? (n.destination = r, Nt(r) && r.add(n)) : n.destination = Vr, n;
710
+ return n.isStopped = !1, r ? (n.destination = r, $t(r) && r.add(n)) : n.destination = Wr, n;
734
711
  }
735
712
  return t.create = function(r, n, i) {
736
- return new Me(r, n, i);
713
+ return new De(r, n, i);
737
714
  }, t.prototype.next = function(r) {
738
715
  this.isStopped || this._next(r);
739
716
  }, t.prototype.error = function(r) {
@@ -757,7 +734,7 @@ var Lt = function(e) {
757
734
  this.unsubscribe();
758
735
  }
759
736
  }, t;
760
- }(be), jr = function() {
737
+ }(ge), Xr = function() {
761
738
  function e(t) {
762
739
  this.partialObserver = t;
763
740
  }
@@ -788,43 +765,43 @@ var Lt = function(e) {
788
765
  oe(r);
789
766
  }
790
767
  }, e;
791
- }(), Me = function(e) {
792
- O(t, e);
768
+ }(), De = function(e) {
769
+ re(t, e);
793
770
  function t(r, n, i) {
794
771
  var o = e.call(this) || this, s;
795
- return A(r) || !r ? s = {
772
+ return O(r) || !r ? s = {
796
773
  next: r != null ? r : void 0,
797
774
  error: n != null ? n : void 0,
798
775
  complete: i != null ? i : void 0
799
- } : s = r, o.destination = new jr(s), o;
776
+ } : s = r, o.destination = new Xr(s), o;
800
777
  }
801
778
  return t;
802
- }(Lt);
779
+ }(Rt);
803
780
  function oe(e) {
804
- Fr(e);
781
+ Vr(e);
805
782
  }
806
- function kr(e) {
783
+ function zr(e) {
807
784
  throw e;
808
785
  }
809
- var Vr = {
786
+ var Wr = {
810
787
  closed: !0,
811
- next: it,
812
- error: kr,
813
- complete: it
814
- }, zr = function() {
788
+ next: ut,
789
+ error: zr,
790
+ complete: ut
791
+ }, Zr = function() {
815
792
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
816
793
  }();
817
- function Xr(e) {
794
+ function Qr(e) {
818
795
  return e;
819
796
  }
820
- function Wr(e) {
821
- return e.length === 0 ? Xr : e.length === 1 ? e[0] : function(r) {
797
+ function Jr(e) {
798
+ return e.length === 0 ? Qr : e.length === 1 ? e[0] : function(r) {
822
799
  return e.reduce(function(n, i) {
823
800
  return i(n);
824
801
  }, r);
825
802
  };
826
803
  }
827
- var ot = function() {
804
+ var ht = function() {
828
805
  function e(t) {
829
806
  t && (this._subscribe = t);
830
807
  }
@@ -832,7 +809,7 @@ var ot = function() {
832
809
  var r = new e();
833
810
  return r.source = this, r.operator = t, r;
834
811
  }, e.prototype.subscribe = function(t, r, n) {
835
- var i = this, o = Qr(t) ? t : new Me(t, r, n);
812
+ var i = this, o = qr(t) ? t : new De(t, r, n);
836
813
  return le(function() {
837
814
  var s = i, a = s.operator, u = s.source;
838
815
  o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
@@ -845,8 +822,8 @@ var ot = function() {
845
822
  }
846
823
  }, e.prototype.forEach = function(t, r) {
847
824
  var n = this;
848
- return r = st(r), new r(function(i, o) {
849
- var s = new Me({
825
+ return r = lt(r), new r(function(i, o) {
826
+ var s = new De({
850
827
  next: function(a) {
851
828
  try {
852
829
  t(a);
@@ -862,15 +839,15 @@ var ot = function() {
862
839
  }, e.prototype._subscribe = function(t) {
863
840
  var r;
864
841
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
865
- }, e.prototype[zr] = function() {
842
+ }, e.prototype[Zr] = function() {
866
843
  return this;
867
844
  }, e.prototype.pipe = function() {
868
845
  for (var t = [], r = 0; r < arguments.length; r++)
869
846
  t[r] = arguments[r];
870
- return Wr(t)(this);
847
+ return Jr(t)(this);
871
848
  }, e.prototype.toPromise = function(t) {
872
849
  var r = this;
873
- return t = st(t), new t(function(n, i) {
850
+ return t = lt(t), new t(function(n, i) {
874
851
  var o;
875
852
  r.subscribe(function(s) {
876
853
  return o = s;
@@ -884,32 +861,32 @@ var ot = function() {
884
861
  return new e(t);
885
862
  }, e;
886
863
  }();
887
- function st(e) {
864
+ function lt(e) {
888
865
  var t;
889
- return (t = e != null ? e : Dr.Promise) !== null && t !== void 0 ? t : Promise;
866
+ return (t = e != null ? e : jr.Promise) !== null && t !== void 0 ? t : Promise;
890
867
  }
891
- function Zr(e) {
892
- return e && A(e.next) && A(e.error) && A(e.complete);
868
+ function Yr(e) {
869
+ return e && O(e.next) && O(e.error) && O(e.complete);
893
870
  }
894
- function Qr(e) {
895
- return e && e instanceof Lt || Zr(e) && Nt(e);
871
+ function qr(e) {
872
+ return e && e instanceof Rt || Yr(e) && $t(e);
896
873
  }
897
- var Jr = Ot(function(e) {
874
+ var Kr = Ct(function(e) {
898
875
  return function() {
899
876
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
900
877
  };
901
- }), Ct = function(e) {
902
- O(t, e);
878
+ }), Ut = function(e) {
879
+ re(t, e);
903
880
  function t() {
904
881
  var r = e.call(this) || this;
905
882
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
906
883
  }
907
884
  return t.prototype.lift = function(r) {
908
- var n = new at(this, this);
885
+ var n = new ct(this, this);
909
886
  return n.operator = r, n;
910
887
  }, t.prototype._throwIfClosed = function() {
911
888
  if (this.closed)
912
- throw new Jr();
889
+ throw new Kr();
913
890
  }, t.prototype.next = function(r) {
914
891
  var n = this;
915
892
  le(function() {
@@ -917,7 +894,7 @@ var Jr = Ot(function(e) {
917
894
  if (n._throwIfClosed(), !n.isStopped) {
918
895
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
919
896
  try {
920
- for (var s = Ne(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
897
+ for (var s = Me(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
921
898
  var u = a.value;
922
899
  u.next(r);
923
900
  }
@@ -966,20 +943,20 @@ var Jr = Ot(function(e) {
966
943
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
967
944
  }, t.prototype._innerSubscribe = function(r) {
968
945
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
969
- return o || s ? It : (this.currentObservers = null, a.push(r), new be(function() {
970
- n.currentObservers = null, Ce(a, r);
946
+ return o || s ? Mt : (this.currentObservers = null, a.push(r), new ge(function() {
947
+ n.currentObservers = null, Ue(a, r);
971
948
  }));
972
949
  }, t.prototype._checkFinalizedStatuses = function(r) {
973
950
  var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
974
951
  i ? r.error(o) : s && r.complete();
975
952
  }, t.prototype.asObservable = function() {
976
- var r = new ot();
953
+ var r = new ht();
977
954
  return r.source = this, r;
978
955
  }, t.create = function(r, n) {
979
- return new at(r, n);
956
+ return new ct(r, n);
980
957
  }, t;
981
- }(ot), at = function(e) {
982
- O(t, e);
958
+ }(ht), ct = function(e) {
959
+ re(t, e);
983
960
  function t(r, n) {
984
961
  var i = e.call(this) || this;
985
962
  return i.destination = r, i.source = n, i;
@@ -995,17 +972,17 @@ var Jr = Ot(function(e) {
995
972
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
996
973
  }, t.prototype._subscribe = function(r) {
997
974
  var n, i;
998
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : It;
975
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Mt;
999
976
  }, t;
1000
- }(Ct), Mt = {
977
+ }(Ut), Dt = {
1001
978
  now: function() {
1002
- return (Mt.delegate || Date).now();
979
+ return (Dt.delegate || Date).now();
1003
980
  },
1004
981
  delegate: void 0
1005
- }, Yr = function(e) {
1006
- O(t, e);
982
+ }, en = function(e) {
983
+ re(t, e);
1007
984
  function t(r, n, i) {
1008
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Mt);
985
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Dt);
1009
986
  var o = e.call(this) || this;
1010
987
  return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
1011
988
  }
@@ -1025,24 +1002,24 @@ var Jr = Ot(function(e) {
1025
1002
  h && o.splice(0, h + 1);
1026
1003
  }
1027
1004
  }, t;
1028
- }(Ct);
1029
- const ut = [], ht = {}, qr = (e, t = 0) => {
1030
- if (ut.indexOf(e) == -1) {
1031
- const r = new Yr(t);
1032
- ht[e] = r, ut.push(e);
1005
+ }(Ut);
1006
+ const ft = [], pt = {}, tn = (e, t = 0) => {
1007
+ if (ft.indexOf(e) == -1) {
1008
+ const r = new en(t);
1009
+ pt[e] = r, ft.push(e);
1033
1010
  }
1034
- return ht[e];
1011
+ return pt[e];
1035
1012
  }, D = [];
1036
- function Kr(e, t) {
1013
+ function rn(e, t) {
1037
1014
  return {
1038
- subscribe: ge(e, t).subscribe
1015
+ subscribe: ye(e, t).subscribe
1039
1016
  };
1040
1017
  }
1041
- function ge(e, t = B) {
1018
+ function ye(e, t = B) {
1042
1019
  let r;
1043
1020
  const n = /* @__PURE__ */ new Set();
1044
1021
  function i(a) {
1045
- if (Bt(e, a) && (e = a, r)) {
1022
+ if (Ot(e, a) && (e = a, r)) {
1046
1023
  const u = !D.length;
1047
1024
  for (const h of n)
1048
1025
  h[1](), D.push(h, e);
@@ -1064,12 +1041,12 @@ function ge(e, t = B) {
1064
1041
  }
1065
1042
  return { set: i, update: o, subscribe: s };
1066
1043
  }
1067
- function W(e, t, r) {
1044
+ function z(e, t, r) {
1068
1045
  const n = !Array.isArray(e), i = n ? [e] : e;
1069
1046
  if (!i.every(Boolean))
1070
1047
  throw new Error("derived() expects stores as input, got a falsy value");
1071
1048
  const o = t.length < 2;
1072
- return Kr(r, (s, a) => {
1049
+ return rn(r, (s, a) => {
1073
1050
  let u = !1;
1074
1051
  const h = [];
1075
1052
  let l = 0, c = B;
@@ -1077,132 +1054,171 @@ function W(e, t, r) {
1077
1054
  if (l)
1078
1055
  return;
1079
1056
  c();
1080
- const y = t(n ? h[0] : h, s, a);
1081
- o ? s(y) : c = Ve(y) ? y : B;
1082
- }, p = i.map(
1083
- (y, g) => Ht(
1084
- y,
1085
- (w) => {
1086
- h[g] = w, l &= ~(1 << g), u && f();
1057
+ const g = t(n ? h[0] : h, s, a);
1058
+ o ? s(g) : c = Qe(g) ? g : B;
1059
+ }, m = i.map(
1060
+ (g, b) => It(
1061
+ g,
1062
+ (T) => {
1063
+ h[b] = T, l &= ~(1 << b), u && f();
1087
1064
  },
1088
1065
  () => {
1089
- l |= 1 << g;
1066
+ l |= 1 << b;
1090
1067
  }
1091
1068
  )
1092
1069
  );
1093
1070
  return u = !0, f(), function() {
1094
- re(p), c(), u = !1;
1071
+ te(m), c(), u = !1;
1095
1072
  };
1096
1073
  });
1097
1074
  }
1098
- function en(e) {
1099
- return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1075
+ function nn(e) {
1076
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1100
1077
  }
1101
- var tn = function(t) {
1102
- return rn(t) && !nn(t);
1078
+ var on = function(t) {
1079
+ return sn(t) && !an(t);
1103
1080
  };
1104
- function rn(e) {
1081
+ function sn(e) {
1105
1082
  return !!e && typeof e == "object";
1106
1083
  }
1107
- function nn(e) {
1084
+ function an(e) {
1108
1085
  var t = Object.prototype.toString.call(e);
1109
- return t === "[object RegExp]" || t === "[object Date]" || an(e);
1086
+ return t === "[object RegExp]" || t === "[object Date]" || ln(e);
1110
1087
  }
1111
- var on = typeof Symbol == "function" && Symbol.for, sn = on ? Symbol.for("react.element") : 60103;
1112
- function an(e) {
1113
- return e.$$typeof === sn;
1088
+ var un = typeof Symbol == "function" && Symbol.for, hn = un ? Symbol.for("react.element") : 60103;
1089
+ function ln(e) {
1090
+ return e.$$typeof === hn;
1114
1091
  }
1115
- function un(e) {
1092
+ function cn(e) {
1116
1093
  return Array.isArray(e) ? [] : {};
1117
1094
  }
1118
- function ee(e, t) {
1119
- return t.clone !== !1 && t.isMergeableObject(e) ? k(un(e), e, t) : e;
1095
+ function K(e, t) {
1096
+ return t.clone !== !1 && t.isMergeableObject(e) ? j(cn(e), e, t) : e;
1120
1097
  }
1121
- function hn(e, t, r) {
1098
+ function fn(e, t, r) {
1122
1099
  return e.concat(t).map(function(n) {
1123
- return ee(n, r);
1100
+ return K(n, r);
1124
1101
  });
1125
1102
  }
1126
- function ln(e, t) {
1103
+ function pn(e, t) {
1127
1104
  if (!t.customMerge)
1128
- return k;
1105
+ return j;
1129
1106
  var r = t.customMerge(e);
1130
- return typeof r == "function" ? r : k;
1107
+ return typeof r == "function" ? r : j;
1131
1108
  }
1132
- function cn(e) {
1109
+ function mn(e) {
1133
1110
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1134
1111
  return Object.propertyIsEnumerable.call(e, t);
1135
1112
  }) : [];
1136
1113
  }
1137
- function lt(e) {
1138
- return Object.keys(e).concat(cn(e));
1114
+ function mt(e) {
1115
+ return Object.keys(e).concat(mn(e));
1139
1116
  }
1140
- function $t(e, t) {
1117
+ function Gt(e, t) {
1141
1118
  try {
1142
1119
  return t in e;
1143
1120
  } catch (r) {
1144
1121
  return !1;
1145
1122
  }
1146
1123
  }
1147
- function fn(e, t) {
1148
- return $t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1124
+ function dn(e, t) {
1125
+ return Gt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1149
1126
  }
1150
- function dn(e, t, r) {
1127
+ function bn(e, t, r) {
1151
1128
  var n = {};
1152
- return r.isMergeableObject(e) && lt(e).forEach(function(i) {
1153
- n[i] = ee(e[i], r);
1154
- }), lt(t).forEach(function(i) {
1155
- fn(e, i) || ($t(e, i) && r.isMergeableObject(t[i]) ? n[i] = ln(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
1129
+ return r.isMergeableObject(e) && mt(e).forEach(function(i) {
1130
+ n[i] = K(e[i], r);
1131
+ }), mt(t).forEach(function(i) {
1132
+ dn(e, i) || (Gt(e, i) && r.isMergeableObject(t[i]) ? n[i] = pn(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
1156
1133
  }), n;
1157
1134
  }
1158
- function k(e, t, r) {
1159
- r = r || {}, r.arrayMerge = r.arrayMerge || hn, r.isMergeableObject = r.isMergeableObject || tn, r.cloneUnlessOtherwiseSpecified = ee;
1135
+ function j(e, t, r) {
1136
+ r = r || {}, r.arrayMerge = r.arrayMerge || fn, r.isMergeableObject = r.isMergeableObject || on, r.cloneUnlessOtherwiseSpecified = K;
1160
1137
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1161
- return o ? n ? r.arrayMerge(e, t, r) : dn(e, t, r) : ee(t, r);
1138
+ return o ? n ? r.arrayMerge(e, t, r) : bn(e, t, r) : K(t, r);
1162
1139
  }
1163
- k.all = function(t, r) {
1140
+ j.all = function(t, r) {
1164
1141
  if (!Array.isArray(t))
1165
1142
  throw new Error("first argument should be an array");
1166
1143
  return t.reduce(function(n, i) {
1167
- return k(n, i, r);
1144
+ return j(n, i, r);
1168
1145
  }, {});
1169
1146
  };
1170
- var pn = k, mn = pn;
1171
- const bn = /* @__PURE__ */ en(mn);
1172
- function Te(e, t) {
1173
- var r = t && t.cache ? t.cache : Sn, n = t && t.serializer ? t.serializer : xn, i = t && t.strategy ? t.strategy : yn;
1147
+ var gn = j, yn = gn;
1148
+ const vn = /* @__PURE__ */ nn(yn);
1149
+ var Ge = function(e, t) {
1150
+ return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1151
+ r.__proto__ = n;
1152
+ } || function(r, n) {
1153
+ for (var i in n)
1154
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1155
+ }, Ge(e, t);
1156
+ };
1157
+ function ve(e, t) {
1158
+ if (typeof t != "function" && t !== null)
1159
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1160
+ Ge(e, t);
1161
+ function r() {
1162
+ this.constructor = e;
1163
+ }
1164
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
1165
+ }
1166
+ var P = function() {
1167
+ return P = Object.assign || function(t) {
1168
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
1169
+ r = arguments[n];
1170
+ for (var o in r)
1171
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1172
+ }
1173
+ return t;
1174
+ }, P.apply(this, arguments);
1175
+ };
1176
+ function En(e, t) {
1177
+ var r = {};
1178
+ for (var n in e)
1179
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1180
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
1181
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1182
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1183
+ return r;
1184
+ }
1185
+ function Be(e, t, r) {
1186
+ if (r || arguments.length === 2)
1187
+ for (var n = 0, i = t.length, o; n < i; n++)
1188
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1189
+ return e.concat(o || Array.prototype.slice.call(t));
1190
+ }
1191
+ function He(e, t) {
1192
+ var r = t && t.cache ? t.cache : Hn, n = t && t.serializer ? t.serializer : Tn, i = t && t.strategy ? t.strategy : Sn;
1174
1193
  return i(e, {
1175
1194
  cache: r,
1176
1195
  serializer: n
1177
1196
  });
1178
1197
  }
1179
- function gn(e) {
1198
+ function _n(e) {
1180
1199
  return e == null || typeof e == "number" || typeof e == "boolean";
1181
1200
  }
1182
- function Rt(e, t, r, n) {
1183
- var i = gn(n) ? n : r(n), o = t.get(i);
1201
+ function xn(e, t, r, n) {
1202
+ var i = _n(n) ? n : r(n), o = t.get(i);
1184
1203
  return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
1185
1204
  }
1186
- function Ut(e, t, r) {
1205
+ function Ft(e, t, r) {
1187
1206
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1188
1207
  return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
1189
1208
  }
1190
- function Xe(e, t, r, n, i) {
1209
+ function jt(e, t, r, n, i) {
1191
1210
  return r.bind(t, e, n, i);
1192
1211
  }
1193
- function yn(e, t) {
1194
- var r = e.length === 1 ? Rt : Ut;
1195
- return Xe(e, this, r, t.cache.create(), t.serializer);
1196
- }
1197
- function vn(e, t) {
1198
- return Xe(e, this, Ut, t.cache.create(), t.serializer);
1212
+ function Sn(e, t) {
1213
+ var r = e.length === 1 ? xn : Ft;
1214
+ return jt(e, this, r, t.cache.create(), t.serializer);
1199
1215
  }
1200
- function En(e, t) {
1201
- return Xe(e, this, Rt, t.cache.create(), t.serializer);
1216
+ function wn(e, t) {
1217
+ return jt(e, this, Ft, t.cache.create(), t.serializer);
1202
1218
  }
1203
- var xn = function() {
1219
+ var Tn = function() {
1204
1220
  return JSON.stringify(arguments);
1205
- }, _n = (
1221
+ }, Bn = (
1206
1222
  /** @class */
1207
1223
  function() {
1208
1224
  function e() {
@@ -1214,62 +1230,71 @@ var xn = function() {
1214
1230
  this.cache[t] = r;
1215
1231
  }, e;
1216
1232
  }()
1217
- ), Sn = {
1233
+ ), Hn = {
1218
1234
  create: function() {
1219
- return new _n();
1235
+ return new Bn();
1220
1236
  }
1221
- }, we = {
1222
- variadic: vn,
1223
- monadic: En
1224
- }, d;
1237
+ }, Pe = {
1238
+ variadic: wn
1239
+ }, me = function() {
1240
+ return me = Object.assign || function(t) {
1241
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
1242
+ r = arguments[n];
1243
+ for (var o in r)
1244
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1245
+ }
1246
+ return t;
1247
+ }, me.apply(this, arguments);
1248
+ };
1249
+ var p;
1225
1250
  (function(e) {
1226
1251
  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";
1227
- })(d || (d = {}));
1228
- var E;
1252
+ })(p || (p = {}));
1253
+ var v;
1229
1254
  (function(e) {
1230
1255
  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";
1231
- })(E || (E = {}));
1232
- var V;
1256
+ })(v || (v = {}));
1257
+ var k;
1233
1258
  (function(e) {
1234
1259
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1235
- })(V || (V = {}));
1236
- function ct(e) {
1237
- return e.type === E.literal;
1260
+ })(k || (k = {}));
1261
+ function dt(e) {
1262
+ return e.type === v.literal;
1238
1263
  }
1239
- function Tn(e) {
1240
- return e.type === E.argument;
1264
+ function Pn(e) {
1265
+ return e.type === v.argument;
1241
1266
  }
1242
- function Dt(e) {
1243
- return e.type === E.number;
1267
+ function kt(e) {
1268
+ return e.type === v.number;
1244
1269
  }
1245
- function Gt(e) {
1246
- return e.type === E.date;
1270
+ function Vt(e) {
1271
+ return e.type === v.date;
1247
1272
  }
1248
- function Ft(e) {
1249
- return e.type === E.time;
1273
+ function Xt(e) {
1274
+ return e.type === v.time;
1250
1275
  }
1251
- function jt(e) {
1252
- return e.type === E.select;
1276
+ function zt(e) {
1277
+ return e.type === v.select;
1253
1278
  }
1254
- function kt(e) {
1255
- return e.type === E.plural;
1279
+ function Wt(e) {
1280
+ return e.type === v.plural;
1256
1281
  }
1257
- function wn(e) {
1258
- return e.type === E.pound;
1282
+ function An(e) {
1283
+ return e.type === v.pound;
1259
1284
  }
1260
- function Vt(e) {
1261
- return e.type === E.tag;
1285
+ function Zt(e) {
1286
+ return e.type === v.tag;
1262
1287
  }
1263
- function zt(e) {
1264
- return !!(e && typeof e == "object" && e.type === V.number);
1288
+ function Qt(e) {
1289
+ return !!(e && typeof e == "object" && e.type === k.number);
1265
1290
  }
1266
- function $e(e) {
1267
- return !!(e && typeof e == "object" && e.type === V.dateTime);
1291
+ function Fe(e) {
1292
+ return !!(e && typeof e == "object" && e.type === k.dateTime);
1268
1293
  }
1269
- var Xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Bn = /(?:[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;
1270
- function Hn(e) {
1294
+ var Jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, On = /(?:[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;
1295
+ function In(e) {
1271
1296
  var t = {};
1272
- return e.replace(Bn, function(r) {
1297
+ return e.replace(On, function(r) {
1273
1298
  var n = r.length;
1274
1299
  switch (r[0]) {
1275
1300
  case "G":
@@ -1358,11 +1383,21 @@ function Hn(e) {
1358
1383
  return "";
1359
1384
  }), t;
1360
1385
  }
1361
- var Pn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1362
- function An(e) {
1386
+ var E = function() {
1387
+ return E = Object.assign || function(t) {
1388
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
1389
+ r = arguments[n];
1390
+ for (var o in r)
1391
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1392
+ }
1393
+ return t;
1394
+ }, E.apply(this, arguments);
1395
+ };
1396
+ var Nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1397
+ function Ln(e) {
1363
1398
  if (e.length === 0)
1364
1399
  throw new Error("Number skeleton cannot be empty");
1365
- for (var t = e.split(Pn).filter(function(f) {
1400
+ for (var t = e.split(Nn).filter(function(f) {
1366
1401
  return f.length > 0;
1367
1402
  }), r = [], n = 0, i = t; n < i.length; n++) {
1368
1403
  var o = i[n], s = o.split("/");
@@ -1377,17 +1412,17 @@ function An(e) {
1377
1412
  }
1378
1413
  return r;
1379
1414
  }
1380
- function On(e) {
1415
+ function Cn(e) {
1381
1416
  return e.replace(/^(.*?)-/, "");
1382
1417
  }
1383
- var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wt = /^(@+)?(\+|#+)?[rs]?$/g, In = /(\*)(0+)|(#+)(0+)|(0+)/g, Zt = /^(0+)$/;
1384
- function dt(e) {
1418
+ var bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Yt = /^(@+)?(\+|#+)?[rs]?$/g, Mn = /(\*)(0+)|(#+)(0+)|(0+)/g, qt = /^(0+)$/;
1419
+ function gt(e) {
1385
1420
  var t = {};
1386
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Wt, function(r, n, i) {
1421
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Yt, function(r, n, i) {
1387
1422
  return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
1388
1423
  }), t;
1389
1424
  }
1390
- function Qt(e) {
1425
+ function Kt(e) {
1391
1426
  switch (e) {
1392
1427
  case "sign-auto":
1393
1428
  return {
@@ -1427,7 +1462,7 @@ function Qt(e) {
1427
1462
  };
1428
1463
  }
1429
1464
  }
1430
- function Nn(e) {
1465
+ function $n(e) {
1431
1466
  var t;
1432
1467
  if (e[0] === "E" && e[1] === "E" ? (t = {
1433
1468
  notation: "engineering"
@@ -1435,17 +1470,17 @@ function Nn(e) {
1435
1470
  notation: "scientific"
1436
1471
  }, e = e.slice(1)), t) {
1437
1472
  var r = e.slice(0, 2);
1438
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Zt.test(e))
1473
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !qt.test(e))
1439
1474
  throw new Error("Malformed concise eng/scientific notation");
1440
1475
  t.minimumIntegerDigits = e.length;
1441
1476
  }
1442
1477
  return t;
1443
1478
  }
1444
- function pt(e) {
1445
- var t = {}, r = Qt(e);
1479
+ function yt(e) {
1480
+ var t = {}, r = Kt(e);
1446
1481
  return r || t;
1447
1482
  }
1448
- function Ln(e) {
1483
+ function Rn(e) {
1449
1484
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1450
1485
  var i = n[r];
1451
1486
  switch (i.stem) {
@@ -1469,7 +1504,7 @@ function Ln(e) {
1469
1504
  continue;
1470
1505
  case "measure-unit":
1471
1506
  case "unit":
1472
- t.style = "unit", t.unit = On(i.options[0]);
1507
+ t.style = "unit", t.unit = Cn(i.options[0]);
1473
1508
  continue;
1474
1509
  case "compact-short":
1475
1510
  case "K":
@@ -1480,13 +1515,13 @@ function Ln(e) {
1480
1515
  t.notation = "compact", t.compactDisplay = "long";
1481
1516
  continue;
1482
1517
  case "scientific":
1483
- t = b(b(b({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
1484
- return b(b({}, u), pt(h));
1518
+ t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
1519
+ return E(E({}, u), yt(h));
1485
1520
  }, {}));
1486
1521
  continue;
1487
1522
  case "engineering":
1488
- t = b(b(b({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
1489
- return b(b({}, u), pt(h));
1523
+ t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
1524
+ return E(E({}, u), yt(h));
1490
1525
  }, {}));
1491
1526
  continue;
1492
1527
  case "notation-simple":
@@ -1531,41 +1566,41 @@ function Ln(e) {
1531
1566
  case "integer-width":
1532
1567
  if (i.options.length > 1)
1533
1568
  throw new RangeError("integer-width stems only accept a single optional option");
1534
- i.options[0].replace(In, function(u, h, l, c, f, p) {
1569
+ i.options[0].replace(Mn, function(u, h, l, c, f, m) {
1535
1570
  if (h)
1536
1571
  t.minimumIntegerDigits = l.length;
1537
1572
  else {
1538
1573
  if (c && f)
1539
1574
  throw new Error("We currently do not support maximum integer digits");
1540
- if (p)
1575
+ if (m)
1541
1576
  throw new Error("We currently do not support exact integer digits");
1542
1577
  }
1543
1578
  return "";
1544
1579
  });
1545
1580
  continue;
1546
1581
  }
1547
- if (Zt.test(i.stem)) {
1582
+ if (qt.test(i.stem)) {
1548
1583
  t.minimumIntegerDigits = i.stem.length;
1549
1584
  continue;
1550
1585
  }
1551
- if (ft.test(i.stem)) {
1586
+ if (bt.test(i.stem)) {
1552
1587
  if (i.options.length > 1)
1553
1588
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1554
- i.stem.replace(ft, function(u, h, l, c, f, p) {
1555
- return l === "*" ? t.minimumFractionDigits = h.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
1589
+ i.stem.replace(bt, function(u, h, l, c, f, m) {
1590
+ return l === "*" ? t.minimumFractionDigits = h.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
1556
1591
  });
1557
1592
  var o = i.options[0];
1558
- o === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = b(b({}, t), dt(o)));
1593
+ o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), gt(o)));
1559
1594
  continue;
1560
1595
  }
1561
- if (Wt.test(i.stem)) {
1562
- t = b(b({}, t), dt(i.stem));
1596
+ if (Yt.test(i.stem)) {
1597
+ t = E(E({}, t), gt(i.stem));
1563
1598
  continue;
1564
1599
  }
1565
- var s = Qt(i.stem);
1566
- s && (t = b(b({}, t), s));
1567
- var a = Nn(i.stem);
1568
- a && (t = b(b({}, t), a));
1600
+ var s = Kt(i.stem);
1601
+ s && (t = E(E({}, t), s));
1602
+ var a = $n(i.stem);
1603
+ a && (t = E(E({}, t), a));
1569
1604
  }
1570
1605
  return t;
1571
1606
  }
@@ -2984,13 +3019,13 @@ var se = {
2984
3019
  "h"
2985
3020
  ]
2986
3021
  };
2987
- function Cn(e, t) {
3022
+ function Un(e, t) {
2988
3023
  for (var r = "", n = 0; n < e.length; n++) {
2989
3024
  var i = e.charAt(n);
2990
3025
  if (i === "j") {
2991
3026
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2992
3027
  o++, n++;
2993
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", h = Mn(t);
3028
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", h = Dn(t);
2994
3029
  for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
2995
3030
  r += u;
2996
3031
  for (; s-- > 0; )
@@ -3000,7 +3035,7 @@ function Cn(e, t) {
3000
3035
  }
3001
3036
  return r;
3002
3037
  }
3003
- function Mn(e) {
3038
+ function Dn(e) {
3004
3039
  var t = e.hourCycle;
3005
3040
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3006
3041
  e.hourCycles && // @ts-ignore
@@ -3022,20 +3057,20 @@ function Mn(e) {
3022
3057
  var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
3023
3058
  return i[0];
3024
3059
  }
3025
- var Be, $n = new RegExp("^".concat(Xt.source, "*")), Rn = new RegExp("".concat(Xt.source, "*$"));
3026
- function m(e, t) {
3060
+ var Ae, Gn = new RegExp("^".concat(Jt.source, "*")), Fn = new RegExp("".concat(Jt.source, "*$"));
3061
+ function d(e, t) {
3027
3062
  return { start: e, end: t };
3028
3063
  }
3029
- var Un = !!String.prototype.startsWith && "_a".startsWith("a", 1), Dn = !!String.fromCodePoint, Gn = !!Object.fromEntries, Fn = !!String.prototype.codePointAt, jn = !!String.prototype.trimStart, kn = !!String.prototype.trimEnd, Vn = !!Number.isSafeInteger, zn = Vn ? Number.isSafeInteger : function(e) {
3064
+ var jn = !!String.prototype.startsWith && "_a".startsWith("a", 1), kn = !!String.fromCodePoint, Vn = !!Object.fromEntries, Xn = !!String.prototype.codePointAt, zn = !!String.prototype.trimStart, Wn = !!String.prototype.trimEnd, Zn = !!Number.isSafeInteger, Qn = Zn ? Number.isSafeInteger : function(e) {
3030
3065
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3031
- }, Re = !0;
3066
+ }, je = !0;
3032
3067
  try {
3033
- var Xn = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3034
- Re = ((Be = Xn.exec("a")) === null || Be === void 0 ? void 0 : Be[0]) === "a";
3068
+ var Jn = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3069
+ je = ((Ae = Jn.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
3035
3070
  } catch (e) {
3036
- Re = !1;
3071
+ je = !1;
3037
3072
  }
3038
- var mt = Un ? (
3073
+ var vt = jn ? (
3039
3074
  // Native
3040
3075
  function(t, r, n) {
3041
3076
  return t.startsWith(r, n);
@@ -3045,7 +3080,7 @@ var mt = Un ? (
3045
3080
  function(t, r, n) {
3046
3081
  return t.slice(n, n + r.length) === r;
3047
3082
  }
3048
- ), Ue = Dn ? String.fromCodePoint : (
3083
+ ), ke = kn ? String.fromCodePoint : (
3049
3084
  // IE11
3050
3085
  function() {
3051
3086
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3057,9 +3092,9 @@ var mt = Un ? (
3057
3092
  }
3058
3093
  return n;
3059
3094
  }
3060
- ), bt = (
3095
+ ), Et = (
3061
3096
  // native
3062
- Gn ? Object.fromEntries : (
3097
+ Vn ? Object.fromEntries : (
3063
3098
  // Ponyfill
3064
3099
  function(t) {
3065
3100
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3069,7 +3104,7 @@ var mt = Un ? (
3069
3104
  return r;
3070
3105
  }
3071
3106
  )
3072
- ), Jt = Fn ? (
3107
+ ), er = Xn ? (
3073
3108
  // Native
3074
3109
  function(t, r) {
3075
3110
  return t.codePointAt(r);
@@ -3083,7 +3118,7 @@ var mt = Un ? (
3083
3118
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3084
3119
  }
3085
3120
  }
3086
- ), Wn = jn ? (
3121
+ ), Yn = zn ? (
3087
3122
  // Native
3088
3123
  function(t) {
3089
3124
  return t.trimStart();
@@ -3091,9 +3126,9 @@ var mt = Un ? (
3091
3126
  ) : (
3092
3127
  // Ponyfill
3093
3128
  function(t) {
3094
- return t.replace($n, "");
3129
+ return t.replace(Gn, "");
3095
3130
  }
3096
- ), Zn = kn ? (
3131
+ ), qn = Wn ? (
3097
3132
  // Native
3098
3133
  function(t) {
3099
3134
  return t.trimEnd();
@@ -3101,32 +3136,32 @@ var mt = Un ? (
3101
3136
  ) : (
3102
3137
  // Ponyfill
3103
3138
  function(t) {
3104
- return t.replace(Rn, "");
3139
+ return t.replace(Fn, "");
3105
3140
  }
3106
3141
  );
3107
- function Yt(e, t) {
3142
+ function tr(e, t) {
3108
3143
  return new RegExp(e, t);
3109
3144
  }
3110
- var De;
3111
- if (Re) {
3112
- var gt = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3113
- De = function(t, r) {
3145
+ var Ve;
3146
+ if (je) {
3147
+ var _t = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3148
+ Ve = function(t, r) {
3114
3149
  var n;
3115
- gt.lastIndex = r;
3116
- var i = gt.exec(t);
3150
+ _t.lastIndex = r;
3151
+ var i = _t.exec(t);
3117
3152
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3118
3153
  };
3119
3154
  } else
3120
- De = function(t, r) {
3155
+ Ve = function(t, r) {
3121
3156
  for (var n = []; ; ) {
3122
- var i = Jt(t, r);
3123
- if (i === void 0 || qt(i) || qn(i))
3157
+ var i = er(t, r);
3158
+ if (i === void 0 || rr(i) || ri(i))
3124
3159
  break;
3125
3160
  n.push(i), r += i >= 65536 ? 2 : 1;
3126
3161
  }
3127
- return Ue.apply(void 0, n);
3162
+ return ke.apply(void 0, n);
3128
3163
  };
3129
- var Qn = (
3164
+ var Kn = (
3130
3165
  /** @class */
3131
3166
  function() {
3132
3167
  function e(t, r) {
@@ -3150,14 +3185,14 @@ var Qn = (
3150
3185
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
3151
3186
  var a = this.clonePosition();
3152
3187
  this.bump(), i.push({
3153
- type: E.pound,
3154
- location: m(a, this.clonePosition())
3188
+ type: v.pound,
3189
+ location: d(a, this.clonePosition())
3155
3190
  });
3156
3191
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3157
3192
  if (n)
3158
3193
  break;
3159
- return this.error(d.UNMATCHED_CLOSING_TAG, m(this.clonePosition(), this.clonePosition()));
3160
- } else if (o === 60 && !this.ignoreTag && Ge(this.peek() || 0)) {
3194
+ return this.error(p.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
3195
+ } else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
3161
3196
  var s = this.parseTag(t, r);
3162
3197
  if (s.err)
3163
3198
  return s;
@@ -3178,9 +3213,9 @@ var Qn = (
3178
3213
  if (this.bumpSpace(), this.bumpIf("/>"))
3179
3214
  return {
3180
3215
  val: {
3181
- type: E.literal,
3216
+ type: v.literal,
3182
3217
  value: "<".concat(i, "/>"),
3183
- location: m(n, this.clonePosition())
3218
+ location: d(n, this.clonePosition())
3184
3219
  },
3185
3220
  err: null
3186
3221
  };
@@ -3190,25 +3225,25 @@ var Qn = (
3190
3225
  return o;
3191
3226
  var s = o.val, a = this.clonePosition();
3192
3227
  if (this.bumpIf("</")) {
3193
- if (this.isEOF() || !Ge(this.char()))
3194
- return this.error(d.INVALID_TAG, m(a, this.clonePosition()));
3228
+ if (this.isEOF() || !Xe(this.char()))
3229
+ return this.error(p.INVALID_TAG, d(a, this.clonePosition()));
3195
3230
  var u = this.clonePosition(), h = this.parseTagName();
3196
- return i !== h ? this.error(d.UNMATCHED_CLOSING_TAG, m(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3231
+ return i !== h ? this.error(p.UNMATCHED_CLOSING_TAG, d(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3197
3232
  val: {
3198
- type: E.tag,
3233
+ type: v.tag,
3199
3234
  value: i,
3200
3235
  children: s,
3201
- location: m(n, this.clonePosition())
3236
+ location: d(n, this.clonePosition())
3202
3237
  },
3203
3238
  err: null
3204
- } : this.error(d.INVALID_TAG, m(a, this.clonePosition())));
3239
+ } : this.error(p.INVALID_TAG, d(a, this.clonePosition())));
3205
3240
  } else
3206
- return this.error(d.UNCLOSED_TAG, m(n, this.clonePosition()));
3241
+ return this.error(p.UNCLOSED_TAG, d(n, this.clonePosition()));
3207
3242
  } else
3208
- return this.error(d.INVALID_TAG, m(n, this.clonePosition()));
3243
+ return this.error(p.INVALID_TAG, d(n, this.clonePosition()));
3209
3244
  }, e.prototype.parseTagName = function() {
3210
3245
  var t = this.offset();
3211
- for (this.bump(); !this.isEOF() && Yn(this.char()); )
3246
+ for (this.bump(); !this.isEOF() && ti(this.char()); )
3212
3247
  this.bump();
3213
3248
  return this.message.slice(t, this.offset());
3214
3249
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3230,14 +3265,14 @@ var Qn = (
3230
3265
  }
3231
3266
  break;
3232
3267
  }
3233
- var u = m(n, this.clonePosition());
3268
+ var u = d(n, this.clonePosition());
3234
3269
  return {
3235
- val: { type: E.literal, value: i, location: u },
3270
+ val: { type: v.literal, value: i, location: u },
3236
3271
  err: null
3237
3272
  };
3238
3273
  }, e.prototype.tryParseLeftAngleBracket = function() {
3239
3274
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3240
- !Jn(this.peek() || 0)) ? (this.bump(), "<") : null;
3275
+ !ei(this.peek() || 0)) ? (this.bump(), "<") : null;
3241
3276
  }, e.prototype.tryParseQuote = function(t) {
3242
3277
  if (this.isEOF() || this.char() !== 39)
3243
3278
  return null;
@@ -3271,49 +3306,49 @@ var Qn = (
3271
3306
  r.push(n);
3272
3307
  this.bump();
3273
3308
  }
3274
- return Ue.apply(void 0, r);
3309
+ return ke.apply(void 0, r);
3275
3310
  }, e.prototype.tryParseUnquoted = function(t, r) {
3276
3311
  if (this.isEOF())
3277
3312
  return null;
3278
3313
  var n = this.char();
3279
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ue(n));
3314
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
3280
3315
  }, e.prototype.parseArgument = function(t, r) {
3281
3316
  var n = this.clonePosition();
3282
3317
  if (this.bump(), this.bumpSpace(), this.isEOF())
3283
- return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, m(n, this.clonePosition()));
3318
+ return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
3284
3319
  if (this.char() === 125)
3285
- return this.bump(), this.error(d.EMPTY_ARGUMENT, m(n, this.clonePosition()));
3320
+ return this.bump(), this.error(p.EMPTY_ARGUMENT, d(n, this.clonePosition()));
3286
3321
  var i = this.parseIdentifierIfPossible().value;
3287
3322
  if (!i)
3288
- return this.error(d.MALFORMED_ARGUMENT, m(n, this.clonePosition()));
3323
+ return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
3289
3324
  if (this.bumpSpace(), this.isEOF())
3290
- return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, m(n, this.clonePosition()));
3325
+ return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
3291
3326
  switch (this.char()) {
3292
3327
  case 125:
3293
3328
  return this.bump(), {
3294
3329
  val: {
3295
- type: E.argument,
3330
+ type: v.argument,
3296
3331
  // value does not include the opening and closing braces.
3297
3332
  value: i,
3298
- location: m(n, this.clonePosition())
3333
+ location: d(n, this.clonePosition())
3299
3334
  },
3300
3335
  err: null
3301
3336
  };
3302
3337
  case 44:
3303
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, m(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3338
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3304
3339
  default:
3305
- return this.error(d.MALFORMED_ARGUMENT, m(n, this.clonePosition()));
3340
+ return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
3306
3341
  }
3307
3342
  }, e.prototype.parseIdentifierIfPossible = function() {
3308
- var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
3343
+ var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
3309
3344
  this.bumpTo(i);
3310
- var o = this.clonePosition(), s = m(t, o);
3345
+ var o = this.clonePosition(), s = d(t, o);
3311
3346
  return { value: n, location: s };
3312
3347
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3313
3348
  var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
3314
3349
  switch (a) {
3315
3350
  case "":
3316
- return this.error(d.EXPECT_ARGUMENT_TYPE, m(s, u));
3351
+ return this.error(p.EXPECT_ARGUMENT_TYPE, d(s, u));
3317
3352
  case "number":
3318
3353
  case "date":
3319
3354
  case "time": {
@@ -3324,46 +3359,46 @@ var Qn = (
3324
3359
  var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3325
3360
  if (c.err)
3326
3361
  return c;
3327
- var f = Zn(c.val);
3362
+ var f = qn(c.val);
3328
3363
  if (f.length === 0)
3329
- return this.error(d.EXPECT_ARGUMENT_STYLE, m(this.clonePosition(), this.clonePosition()));
3330
- var p = m(l, this.clonePosition());
3331
- h = { style: f, styleLocation: p };
3364
+ return this.error(p.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
3365
+ var m = d(l, this.clonePosition());
3366
+ h = { style: f, styleLocation: m };
3332
3367
  }
3333
- var y = this.tryParseArgumentClose(i);
3334
- if (y.err)
3335
- return y;
3336
- var g = m(i, this.clonePosition());
3337
- if (h && mt(h == null ? void 0 : h.style, "::", 0)) {
3338
- var w = Wn(h.style.slice(2));
3368
+ var g = this.tryParseArgumentClose(i);
3369
+ if (g.err)
3370
+ return g;
3371
+ var b = d(i, this.clonePosition());
3372
+ if (h && vt(h == null ? void 0 : h.style, "::", 0)) {
3373
+ var T = Yn(h.style.slice(2));
3339
3374
  if (a === "number") {
3340
- var c = this.parseNumberSkeletonFromString(w, h.styleLocation);
3375
+ var c = this.parseNumberSkeletonFromString(T, h.styleLocation);
3341
3376
  return c.err ? c : {
3342
- val: { type: E.number, value: n, location: g, style: c.val },
3377
+ val: { type: v.number, value: n, location: b, style: c.val },
3343
3378
  err: null
3344
3379
  };
3345
3380
  } else {
3346
- if (w.length === 0)
3347
- return this.error(d.EXPECT_DATE_TIME_SKELETON, g);
3348
- var L = w;
3349
- this.locale && (L = Cn(w, this.locale));
3381
+ if (T.length === 0)
3382
+ return this.error(p.EXPECT_DATE_TIME_SKELETON, b);
3383
+ var L = T;
3384
+ this.locale && (L = Un(T, this.locale));
3350
3385
  var f = {
3351
- type: V.dateTime,
3386
+ type: k.dateTime,
3352
3387
  pattern: L,
3353
3388
  location: h.styleLocation,
3354
- parsedOptions: this.shouldParseSkeletons ? Hn(L) : {}
3355
- }, I = a === "date" ? E.date : E.time;
3389
+ parsedOptions: this.shouldParseSkeletons ? In(L) : {}
3390
+ }, I = a === "date" ? v.date : v.time;
3356
3391
  return {
3357
- val: { type: I, value: n, location: g, style: f },
3392
+ val: { type: I, value: n, location: b, style: f },
3358
3393
  err: null
3359
3394
  };
3360
3395
  }
3361
3396
  }
3362
3397
  return {
3363
3398
  val: {
3364
- type: a === "number" ? E.number : a === "date" ? E.date : E.time,
3399
+ type: a === "number" ? v.number : a === "date" ? v.date : v.time,
3365
3400
  value: n,
3366
- location: g,
3401
+ location: b,
3367
3402
  style: (o = h == null ? void 0 : h.style) !== null && o !== void 0 ? o : null
3368
3403
  },
3369
3404
  err: null
@@ -3372,16 +3407,16 @@ var Qn = (
3372
3407
  case "plural":
3373
3408
  case "selectordinal":
3374
3409
  case "select": {
3375
- var _ = this.clonePosition();
3410
+ var x = this.clonePosition();
3376
3411
  if (this.bumpSpace(), !this.bumpIf(","))
3377
- return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, m(_, b({}, _)));
3412
+ return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(x, me({}, x)));
3378
3413
  this.bumpSpace();
3379
3414
  var H = this.parseIdentifierIfPossible(), S = 0;
3380
3415
  if (a !== "select" && H.value === "offset") {
3381
3416
  if (!this.bumpIf(":"))
3382
- return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m(this.clonePosition(), this.clonePosition()));
3417
+ return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
3383
3418
  this.bumpSpace();
3384
- var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3419
+ var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3385
3420
  if (c.err)
3386
3421
  return c;
3387
3422
  this.bumpSpace(), H = this.parseIdentifierIfPossible(), S = c.val;
@@ -3389,23 +3424,23 @@ var Qn = (
3389
3424
  var $ = this.tryParsePluralOrSelectOptions(t, a, r, H);
3390
3425
  if ($.err)
3391
3426
  return $;
3392
- var y = this.tryParseArgumentClose(i);
3393
- if (y.err)
3394
- return y;
3395
- var ie = m(i, this.clonePosition());
3427
+ var g = this.tryParseArgumentClose(i);
3428
+ if (g.err)
3429
+ return g;
3430
+ var ie = d(i, this.clonePosition());
3396
3431
  return a === "select" ? {
3397
3432
  val: {
3398
- type: E.select,
3433
+ type: v.select,
3399
3434
  value: n,
3400
- options: bt($.val),
3435
+ options: Et($.val),
3401
3436
  location: ie
3402
3437
  },
3403
3438
  err: null
3404
3439
  } : {
3405
3440
  val: {
3406
- type: E.plural,
3441
+ type: v.plural,
3407
3442
  value: n,
3408
- options: bt($.val),
3443
+ options: Et($.val),
3409
3444
  offset: S,
3410
3445
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3411
3446
  location: ie
@@ -3414,10 +3449,10 @@ var Qn = (
3414
3449
  };
3415
3450
  }
3416
3451
  default:
3417
- return this.error(d.INVALID_ARGUMENT_TYPE, m(s, u));
3452
+ return this.error(p.INVALID_ARGUMENT_TYPE, d(s, u));
3418
3453
  }
3419
3454
  }, e.prototype.tryParseArgumentClose = function(t) {
3420
- return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, m(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3455
+ return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3421
3456
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3422
3457
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3423
3458
  var n = this.char();
@@ -3426,7 +3461,7 @@ var Qn = (
3426
3461
  this.bump();
3427
3462
  var i = this.clonePosition();
3428
3463
  if (!this.bumpUntil("'"))
3429
- return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, m(i, this.clonePosition()));
3464
+ return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, d(i, this.clonePosition()));
3430
3465
  this.bump();
3431
3466
  break;
3432
3467
  }
@@ -3456,16 +3491,16 @@ var Qn = (
3456
3491
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3457
3492
  var n = [];
3458
3493
  try {
3459
- n = An(t);
3494
+ n = Ln(t);
3460
3495
  } catch (i) {
3461
- return this.error(d.INVALID_NUMBER_SKELETON, r);
3496
+ return this.error(p.INVALID_NUMBER_SKELETON, r);
3462
3497
  }
3463
3498
  return {
3464
3499
  val: {
3465
- type: V.number,
3500
+ type: k.number,
3466
3501
  tokens: n,
3467
3502
  location: r,
3468
- parsedOptions: this.shouldParseSkeletons ? Ln(n) : {}
3503
+ parsedOptions: this.shouldParseSkeletons ? Rn(n) : {}
3469
3504
  },
3470
3505
  err: null
3471
3506
  };
@@ -3474,34 +3509,34 @@ var Qn = (
3474
3509
  if (h.length === 0) {
3475
3510
  var c = this.clonePosition();
3476
3511
  if (r !== "select" && this.bumpIf("=")) {
3477
- var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
3512
+ var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
3478
3513
  if (f.err)
3479
3514
  return f;
3480
- l = m(c, this.clonePosition()), h = this.message.slice(c.offset, this.offset());
3515
+ l = d(c, this.clonePosition()), h = this.message.slice(c.offset, this.offset());
3481
3516
  } else
3482
3517
  break;
3483
3518
  }
3484
3519
  if (u.has(h))
3485
- return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3520
+ return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3486
3521
  h === "other" && (s = !0), this.bumpSpace();
3487
- var p = this.clonePosition();
3522
+ var m = this.clonePosition();
3488
3523
  if (!this.bumpIf("{"))
3489
- return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, m(this.clonePosition(), this.clonePosition()));
3490
- var y = this.parseMessage(t + 1, r, n);
3491
- if (y.err)
3492
- return y;
3493
- var g = this.tryParseArgumentClose(p);
3524
+ return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
3525
+ var g = this.parseMessage(t + 1, r, n);
3494
3526
  if (g.err)
3495
3527
  return g;
3528
+ var b = this.tryParseArgumentClose(m);
3529
+ if (b.err)
3530
+ return b;
3496
3531
  a.push([
3497
3532
  h,
3498
3533
  {
3499
- value: y.val,
3500
- location: m(p, this.clonePosition())
3534
+ value: g.val,
3535
+ location: d(m, this.clonePosition())
3501
3536
  }
3502
3537
  ]), u.add(h), this.bumpSpace(), o = this.parseIdentifierIfPossible(), h = o.value, l = o.location;
3503
3538
  }
3504
- return a.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, m(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(d.MISSING_OTHER_CLAUSE, m(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3539
+ return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, d(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, d(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3505
3540
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3506
3541
  var n = 1, i = this.clonePosition();
3507
3542
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -3512,8 +3547,8 @@ var Qn = (
3512
3547
  else
3513
3548
  break;
3514
3549
  }
3515
- var u = m(i, this.clonePosition());
3516
- return o ? (s *= n, zn(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
3550
+ var u = d(i, this.clonePosition());
3551
+ return o ? (s *= n, Qn(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
3517
3552
  }, e.prototype.offset = function() {
3518
3553
  return this.position.offset;
3519
3554
  }, e.prototype.isEOF = function() {
@@ -3528,7 +3563,7 @@ var Qn = (
3528
3563
  var t = this.position.offset;
3529
3564
  if (t >= this.message.length)
3530
3565
  throw Error("out of bound");
3531
- var r = Jt(this.message, t);
3566
+ var r = er(this.message, t);
3532
3567
  if (r === void 0)
3533
3568
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3534
3569
  return r;
@@ -3547,7 +3582,7 @@ var Qn = (
3547
3582
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3548
3583
  }
3549
3584
  }, e.prototype.bumpIf = function(t) {
3550
- if (mt(this.message, t, this.offset())) {
3585
+ if (vt(this.message, t, this.offset())) {
3551
3586
  for (var r = 0; r < t.length; r++)
3552
3587
  this.bump();
3553
3588
  return !0;
@@ -3569,7 +3604,7 @@ var Qn = (
3569
3604
  break;
3570
3605
  }
3571
3606
  }, e.prototype.bumpSpace = function() {
3572
- for (; !this.isEOF() && qt(this.char()); )
3607
+ for (; !this.isEOF() && rr(this.char()); )
3573
3608
  this.bump();
3574
3609
  }, e.prototype.peek = function() {
3575
3610
  if (this.isEOF())
@@ -3579,47 +3614,47 @@ var Qn = (
3579
3614
  }, e;
3580
3615
  }()
3581
3616
  );
3582
- function Ge(e) {
3617
+ function Xe(e) {
3583
3618
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3584
3619
  }
3585
- function Jn(e) {
3586
- return Ge(e) || e === 47;
3620
+ function ei(e) {
3621
+ return Xe(e) || e === 47;
3587
3622
  }
3588
- function Yn(e) {
3623
+ function ti(e) {
3589
3624
  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;
3590
3625
  }
3591
- function qt(e) {
3626
+ function rr(e) {
3592
3627
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3593
3628
  }
3594
- function qn(e) {
3629
+ function ri(e) {
3595
3630
  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;
3596
3631
  }
3597
- function Fe(e) {
3632
+ function ze(e) {
3598
3633
  e.forEach(function(t) {
3599
- if (delete t.location, jt(t) || kt(t))
3634
+ if (delete t.location, zt(t) || Wt(t))
3600
3635
  for (var r in t.options)
3601
- delete t.options[r].location, Fe(t.options[r].value);
3636
+ delete t.options[r].location, ze(t.options[r].value);
3602
3637
  else
3603
- Dt(t) && zt(t.style) || (Gt(t) || Ft(t)) && $e(t.style) ? delete t.style.location : Vt(t) && Fe(t.children);
3638
+ kt(t) && Qt(t.style) || (Vt(t) || Xt(t)) && Fe(t.style) ? delete t.style.location : Zt(t) && ze(t.children);
3604
3639
  });
3605
3640
  }
3606
- function Kn(e, t) {
3607
- t === void 0 && (t = {}), t = b({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3608
- var r = new Qn(e, t).parse();
3641
+ function ni(e, t) {
3642
+ t === void 0 && (t = {}), t = me({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3643
+ var r = new Kn(e, t).parse();
3609
3644
  if (r.err) {
3610
- var n = SyntaxError(d[r.err.kind]);
3645
+ var n = SyntaxError(p[r.err.kind]);
3611
3646
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3612
3647
  }
3613
- return t != null && t.captureLocation || Fe(r.val), r.val;
3648
+ return t != null && t.captureLocation || ze(r.val), r.val;
3614
3649
  }
3615
- var z;
3650
+ var V;
3616
3651
  (function(e) {
3617
3652
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3618
- })(z || (z = {}));
3619
- var ye = (
3653
+ })(V || (V = {}));
3654
+ var Ee = (
3620
3655
  /** @class */
3621
3656
  function(e) {
3622
- O(t, e);
3657
+ ve(t, e);
3623
3658
  function t(r, n, i) {
3624
3659
  var o = e.call(this, r) || this;
3625
3660
  return o.code = n, o.originalMessage = i, o;
@@ -3628,155 +3663,155 @@ var ye = (
3628
3663
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3629
3664
  }, t;
3630
3665
  }(Error)
3631
- ), yt = (
3666
+ ), xt = (
3632
3667
  /** @class */
3633
3668
  function(e) {
3634
- O(t, e);
3669
+ ve(t, e);
3635
3670
  function t(r, n, i, o) {
3636
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
3671
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, o) || this;
3637
3672
  }
3638
3673
  return t;
3639
- }(ye)
3640
- ), ei = (
3674
+ }(Ee)
3675
+ ), ii = (
3641
3676
  /** @class */
3642
3677
  function(e) {
3643
- O(t, e);
3678
+ ve(t, e);
3644
3679
  function t(r, n, i) {
3645
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
3680
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
3646
3681
  }
3647
3682
  return t;
3648
- }(ye)
3649
- ), ti = (
3683
+ }(Ee)
3684
+ ), oi = (
3650
3685
  /** @class */
3651
3686
  function(e) {
3652
- O(t, e);
3687
+ ve(t, e);
3653
3688
  function t(r, n) {
3654
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
3689
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
3655
3690
  }
3656
3691
  return t;
3657
- }(ye)
3658
- ), x;
3692
+ }(Ee)
3693
+ ), _;
3659
3694
  (function(e) {
3660
3695
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3661
- })(x || (x = {}));
3662
- function ri(e) {
3696
+ })(_ || (_ = {}));
3697
+ function si(e) {
3663
3698
  return e.length < 2 ? e : e.reduce(function(t, r) {
3664
3699
  var n = t[t.length - 1];
3665
- return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
3700
+ return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
3666
3701
  }, []);
3667
3702
  }
3668
- function ni(e) {
3703
+ function ai(e) {
3669
3704
  return typeof e == "function";
3670
3705
  }
3671
3706
  function ce(e, t, r, n, i, o, s) {
3672
- if (e.length === 1 && ct(e[0]))
3707
+ if (e.length === 1 && dt(e[0]))
3673
3708
  return [
3674
3709
  {
3675
- type: x.literal,
3710
+ type: _.literal,
3676
3711
  value: e[0].value
3677
3712
  }
3678
3713
  ];
3679
3714
  for (var a = [], u = 0, h = e; u < h.length; u++) {
3680
3715
  var l = h[u];
3681
- if (ct(l)) {
3716
+ if (dt(l)) {
3682
3717
  a.push({
3683
- type: x.literal,
3718
+ type: _.literal,
3684
3719
  value: l.value
3685
3720
  });
3686
3721
  continue;
3687
3722
  }
3688
- if (wn(l)) {
3723
+ if (An(l)) {
3689
3724
  typeof o == "number" && a.push({
3690
- type: x.literal,
3725
+ type: _.literal,
3691
3726
  value: r.getNumberFormat(t).format(o)
3692
3727
  });
3693
3728
  continue;
3694
3729
  }
3695
3730
  var c = l.value;
3696
3731
  if (!(i && c in i))
3697
- throw new ti(c, s);
3732
+ throw new oi(c, s);
3698
3733
  var f = i[c];
3699
- if (Tn(l)) {
3734
+ if (Pn(l)) {
3700
3735
  (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3701
- type: typeof f == "string" ? x.literal : x.object,
3736
+ type: typeof f == "string" ? _.literal : _.object,
3702
3737
  value: f
3703
3738
  });
3704
3739
  continue;
3705
3740
  }
3706
- if (Gt(l)) {
3707
- var p = typeof l.style == "string" ? n.date[l.style] : $e(l.style) ? l.style.parsedOptions : void 0;
3741
+ if (Vt(l)) {
3742
+ var m = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
3708
3743
  a.push({
3709
- type: x.literal,
3710
- value: r.getDateTimeFormat(t, p).format(f)
3744
+ type: _.literal,
3745
+ value: r.getDateTimeFormat(t, m).format(f)
3711
3746
  });
3712
3747
  continue;
3713
3748
  }
3714
- if (Ft(l)) {
3715
- var p = typeof l.style == "string" ? n.time[l.style] : $e(l.style) ? l.style.parsedOptions : n.time.medium;
3749
+ if (Xt(l)) {
3750
+ var m = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
3716
3751
  a.push({
3717
- type: x.literal,
3718
- value: r.getDateTimeFormat(t, p).format(f)
3752
+ type: _.literal,
3753
+ value: r.getDateTimeFormat(t, m).format(f)
3719
3754
  });
3720
3755
  continue;
3721
3756
  }
3722
- if (Dt(l)) {
3723
- var p = typeof l.style == "string" ? n.number[l.style] : zt(l.style) ? l.style.parsedOptions : void 0;
3724
- p && p.scale && (f = f * (p.scale || 1)), a.push({
3725
- type: x.literal,
3726
- value: r.getNumberFormat(t, p).format(f)
3757
+ if (kt(l)) {
3758
+ var m = typeof l.style == "string" ? n.number[l.style] : Qt(l.style) ? l.style.parsedOptions : void 0;
3759
+ m && m.scale && (f = f * (m.scale || 1)), a.push({
3760
+ type: _.literal,
3761
+ value: r.getNumberFormat(t, m).format(f)
3727
3762
  });
3728
3763
  continue;
3729
3764
  }
3730
- if (Vt(l)) {
3731
- var y = l.children, g = l.value, w = i[g];
3732
- if (!ni(w))
3733
- throw new ei(g, "function", s);
3734
- var L = ce(y, t, r, n, i, o), I = w(L.map(function(S) {
3765
+ if (Zt(l)) {
3766
+ var g = l.children, b = l.value, T = i[b];
3767
+ if (!ai(T))
3768
+ throw new ii(b, "function", s);
3769
+ var L = ce(g, t, r, n, i, o), I = T(L.map(function(S) {
3735
3770
  return S.value;
3736
3771
  }));
3737
3772
  Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(S) {
3738
3773
  return {
3739
- type: typeof S == "string" ? x.literal : x.object,
3774
+ type: typeof S == "string" ? _.literal : _.object,
3740
3775
  value: S
3741
3776
  };
3742
3777
  }));
3743
3778
  }
3744
- if (jt(l)) {
3745
- var _ = l.options[f] || l.options.other;
3746
- if (!_)
3747
- throw new yt(l.value, f, Object.keys(l.options), s);
3748
- a.push.apply(a, ce(_.value, t, r, n, i));
3779
+ if (zt(l)) {
3780
+ var x = l.options[f] || l.options.other;
3781
+ if (!x)
3782
+ throw new xt(l.value, f, Object.keys(l.options), s);
3783
+ a.push.apply(a, ce(x.value, t, r, n, i));
3749
3784
  continue;
3750
3785
  }
3751
- if (kt(l)) {
3752
- var _ = l.options["=".concat(f)];
3753
- if (!_) {
3786
+ if (Wt(l)) {
3787
+ var x = l.options["=".concat(f)];
3788
+ if (!x) {
3754
3789
  if (!Intl.PluralRules)
3755
- throw new ye(`Intl.PluralRules is not available in this environment.
3790
+ throw new Ee(`Intl.PluralRules is not available in this environment.
3756
3791
  Try polyfilling it using "@formatjs/intl-pluralrules"
3757
- `, z.MISSING_INTL_API, s);
3792
+ `, V.MISSING_INTL_API, s);
3758
3793
  var H = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3759
- _ = l.options[H] || l.options.other;
3794
+ x = l.options[H] || l.options.other;
3760
3795
  }
3761
- if (!_)
3762
- throw new yt(l.value, f, Object.keys(l.options), s);
3763
- a.push.apply(a, ce(_.value, t, r, n, i, f - (l.offset || 0)));
3796
+ if (!x)
3797
+ throw new xt(l.value, f, Object.keys(l.options), s);
3798
+ a.push.apply(a, ce(x.value, t, r, n, i, f - (l.offset || 0)));
3764
3799
  continue;
3765
3800
  }
3766
3801
  }
3767
- return ri(a);
3802
+ return si(a);
3768
3803
  }
3769
- function ii(e, t) {
3770
- return t ? b(b(b({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3771
- return r[n] = b(b({}, e[n]), t[n] || {}), r;
3804
+ function ui(e, t) {
3805
+ return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3806
+ return r[n] = P(P({}, e[n]), t[n] || {}), r;
3772
3807
  }, {})) : e;
3773
3808
  }
3774
- function oi(e, t) {
3809
+ function hi(e, t) {
3775
3810
  return t ? Object.keys(e).reduce(function(r, n) {
3776
- return r[n] = ii(e[n], t[n]), r;
3777
- }, b({}, e)) : e;
3811
+ return r[n] = ui(e[n], t[n]), r;
3812
+ }, P({}, e)) : e;
3778
3813
  }
3779
- function He(e) {
3814
+ function Oe(e) {
3780
3815
  return {
3781
3816
  create: function() {
3782
3817
  return {
@@ -3790,39 +3825,39 @@ function He(e) {
3790
3825
  }
3791
3826
  };
3792
3827
  }
3793
- function si(e) {
3828
+ function li(e) {
3794
3829
  return e === void 0 && (e = {
3795
3830
  number: {},
3796
3831
  dateTime: {},
3797
3832
  pluralRules: {}
3798
3833
  }), {
3799
- getNumberFormat: Te(function() {
3834
+ getNumberFormat: He(function() {
3800
3835
  for (var t, r = [], n = 0; n < arguments.length; n++)
3801
3836
  r[n] = arguments[n];
3802
- return new ((t = Intl.NumberFormat).bind.apply(t, j([void 0], r, !1)))();
3837
+ return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
3803
3838
  }, {
3804
- cache: He(e.number),
3805
- strategy: we.variadic
3839
+ cache: Oe(e.number),
3840
+ strategy: Pe.variadic
3806
3841
  }),
3807
- getDateTimeFormat: Te(function() {
3842
+ getDateTimeFormat: He(function() {
3808
3843
  for (var t, r = [], n = 0; n < arguments.length; n++)
3809
3844
  r[n] = arguments[n];
3810
- return new ((t = Intl.DateTimeFormat).bind.apply(t, j([void 0], r, !1)))();
3845
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
3811
3846
  }, {
3812
- cache: He(e.dateTime),
3813
- strategy: we.variadic
3847
+ cache: Oe(e.dateTime),
3848
+ strategy: Pe.variadic
3814
3849
  }),
3815
- getPluralRules: Te(function() {
3850
+ getPluralRules: He(function() {
3816
3851
  for (var t, r = [], n = 0; n < arguments.length; n++)
3817
3852
  r[n] = arguments[n];
3818
- return new ((t = Intl.PluralRules).bind.apply(t, j([void 0], r, !1)))();
3853
+ return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
3819
3854
  }, {
3820
- cache: He(e.pluralRules),
3821
- strategy: we.variadic
3855
+ cache: Oe(e.pluralRules),
3856
+ strategy: Pe.variadic
3822
3857
  })
3823
3858
  };
3824
3859
  }
3825
- var ai = (
3860
+ var ci = (
3826
3861
  /** @class */
3827
3862
  function() {
3828
3863
  function e(t, r, n, i) {
@@ -3837,7 +3872,7 @@ var ai = (
3837
3872
  if (h.length === 1)
3838
3873
  return h[0].value;
3839
3874
  var l = h.reduce(function(c, f) {
3840
- return !c.length || f.type !== x.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3875
+ return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3841
3876
  }, []);
3842
3877
  return l.length <= 1 ? l[0] || "" : l;
3843
3878
  }, this.formatToParts = function(u) {
@@ -3854,13 +3889,13 @@ var ai = (
3854
3889
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3855
3890
  var s = i || {};
3856
3891
  s.formatters;
3857
- var a = Ur(s, ["formatters"]);
3858
- this.ast = e.__parse(t, b(b({}, a), { locale: this.resolvedLocale }));
3892
+ var a = En(s, ["formatters"]);
3893
+ this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
3859
3894
  } else
3860
3895
  this.ast = t;
3861
3896
  if (!Array.isArray(this.ast))
3862
3897
  throw new TypeError("A message must be provided as a String or AST.");
3863
- this.formats = oi(e.formats, n), this.formatters = i && i.formatters || si(this.formatterCache);
3898
+ this.formats = hi(e.formats, n), this.formatters = i && i.formatters || li(this.formatterCache);
3864
3899
  }
3865
3900
  return Object.defineProperty(e, "defaultLocale", {
3866
3901
  get: function() {
@@ -3873,7 +3908,7 @@ var ai = (
3873
3908
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3874
3909
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3875
3910
  }
3876
- }, e.__parse = Kn, e.formats = {
3911
+ }, e.__parse = ni, e.formats = {
3877
3912
  number: {
3878
3913
  integer: {
3879
3914
  maximumFractionDigits: 0
@@ -3934,7 +3969,7 @@ var ai = (
3934
3969
  }, e;
3935
3970
  }()
3936
3971
  );
3937
- function ui(e, t) {
3972
+ function fi(e, t) {
3938
3973
  if (t == null)
3939
3974
  return;
3940
3975
  if (t in e)
@@ -3955,92 +3990,92 @@ function ui(e, t) {
3955
3990
  n = void 0;
3956
3991
  return n;
3957
3992
  }
3958
- const N = {}, hi = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), Kt = (e, t) => {
3993
+ const N = {}, pi = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), nr = (e, t) => {
3959
3994
  if (t == null)
3960
3995
  return;
3961
3996
  if (t in N && e in N[t])
3962
3997
  return N[t][e];
3963
- const r = ve(t);
3998
+ const r = _e(t);
3964
3999
  for (let n = 0; n < r.length; n++) {
3965
- const i = r[n], o = ci(i, e);
4000
+ const i = r[n], o = di(i, e);
3966
4001
  if (o)
3967
- return hi(e, t, o);
4002
+ return pi(e, t, o);
3968
4003
  }
3969
4004
  };
3970
- let We;
3971
- const ne = ge({});
3972
- function li(e) {
3973
- return We[e] || null;
4005
+ let Ye;
4006
+ const ne = ye({});
4007
+ function mi(e) {
4008
+ return Ye[e] || null;
3974
4009
  }
3975
- function er(e) {
3976
- return e in We;
4010
+ function ir(e) {
4011
+ return e in Ye;
3977
4012
  }
3978
- function ci(e, t) {
3979
- if (!er(e))
4013
+ function di(e, t) {
4014
+ if (!ir(e))
3980
4015
  return null;
3981
- const r = li(e);
3982
- return ui(r, t);
4016
+ const r = mi(e);
4017
+ return fi(r, t);
3983
4018
  }
3984
- function fi(e) {
4019
+ function bi(e) {
3985
4020
  if (e == null)
3986
4021
  return;
3987
- const t = ve(e);
4022
+ const t = _e(e);
3988
4023
  for (let r = 0; r < t.length; r++) {
3989
4024
  const n = t[r];
3990
- if (er(n))
4025
+ if (ir(n))
3991
4026
  return n;
3992
4027
  }
3993
4028
  }
3994
- function tr(e, ...t) {
3995
- delete N[e], ne.update((r) => (r[e] = bn.all([r[e] || {}, ...t]), r));
4029
+ function or(e, ...t) {
4030
+ delete N[e], ne.update((r) => (r[e] = vn.all([r[e] || {}, ...t]), r));
3996
4031
  }
3997
- W(
4032
+ z(
3998
4033
  [ne],
3999
4034
  ([e]) => Object.keys(e)
4000
4035
  );
4001
- ne.subscribe((e) => We = e);
4036
+ ne.subscribe((e) => Ye = e);
4002
4037
  const fe = {};
4003
- function di(e, t) {
4038
+ function gi(e, t) {
4004
4039
  fe[e].delete(t), fe[e].size === 0 && delete fe[e];
4005
4040
  }
4006
- function rr(e) {
4041
+ function sr(e) {
4007
4042
  return fe[e];
4008
4043
  }
4009
- function pi(e) {
4010
- return ve(e).map((t) => {
4011
- const r = rr(t);
4044
+ function yi(e) {
4045
+ return _e(e).map((t) => {
4046
+ const r = sr(t);
4012
4047
  return [t, r ? [...r] : []];
4013
4048
  }).filter(([, t]) => t.length > 0);
4014
4049
  }
4015
- function je(e) {
4016
- return e == null ? !1 : ve(e).some(
4050
+ function We(e) {
4051
+ return e == null ? !1 : _e(e).some(
4017
4052
  (t) => {
4018
4053
  var r;
4019
- return (r = rr(t)) == null ? void 0 : r.size;
4054
+ return (r = sr(t)) == null ? void 0 : r.size;
4020
4055
  }
4021
4056
  );
4022
4057
  }
4023
- function mi(e, t) {
4058
+ function vi(e, t) {
4024
4059
  return Promise.all(
4025
- t.map((n) => (di(e, n), n().then((i) => i.default || i)))
4026
- ).then((n) => tr(e, ...n));
4027
- }
4028
- const J = {};
4029
- function nr(e) {
4030
- if (!je(e))
4031
- return e in J ? J[e] : Promise.resolve();
4032
- const t = pi(e);
4033
- return J[e] = Promise.all(
4060
+ t.map((n) => (gi(e, n), n().then((i) => i.default || i)))
4061
+ ).then((n) => or(e, ...n));
4062
+ }
4063
+ const Q = {};
4064
+ function ar(e) {
4065
+ if (!We(e))
4066
+ return e in Q ? Q[e] : Promise.resolve();
4067
+ const t = yi(e);
4068
+ return Q[e] = Promise.all(
4034
4069
  t.map(
4035
- ([r, n]) => mi(r, n)
4070
+ ([r, n]) => vi(r, n)
4036
4071
  )
4037
4072
  ).then(() => {
4038
- if (je(e))
4039
- return nr(e);
4040
- delete J[e];
4041
- }), J[e];
4073
+ if (We(e))
4074
+ return ar(e);
4075
+ delete Q[e];
4076
+ }), Q[e];
4042
4077
  }
4043
- const bi = {
4078
+ const Ei = {
4044
4079
  number: {
4045
4080
  scientific: { notation: "scientific" },
4046
4081
  engineering: { notation: "engineering" },
@@ -4069,135 +4104,135 @@ const bi = {
4069
4104
  timeZoneName: "short"
4070
4105
  }
4071
4106
  }
4072
- }, gi = {
4107
+ }, _i = {
4073
4108
  fallbackLocale: null,
4074
4109
  loadingDelay: 200,
4075
- formats: bi,
4110
+ formats: Ei,
4076
4111
  warnOnMissingMessages: !0,
4077
4112
  handleMissingMessage: void 0,
4078
4113
  ignoreTag: !0
4079
- }, yi = gi;
4114
+ }, xi = _i;
4080
4115
  function X() {
4081
- return yi;
4082
- }
4083
- const Pe = ge(!1);
4084
- var vi = Object.defineProperty, Ei = Object.defineProperties, xi = Object.getOwnPropertyDescriptors, vt = Object.getOwnPropertySymbols, _i = Object.prototype.hasOwnProperty, Si = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ti = (e, t) => {
4085
- for (var r in t)
4086
- _i.call(t, r) && Et(e, r, t[r]);
4087
- if (vt)
4088
- for (var r of vt(t))
4089
- Si.call(t, r) && Et(e, r, t[r]);
4116
+ return xi;
4117
+ }
4118
+ const Ie = ye(!1);
4119
+ var Si = Object.defineProperty, wi = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, St = Object.getOwnPropertySymbols, Bi = Object.prototype.hasOwnProperty, Hi = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Pi = (e, t) => {
4120
+ for (var r in t || (t = {}))
4121
+ Bi.call(t, r) && wt(e, r, t[r]);
4122
+ if (St)
4123
+ for (var r of St(t))
4124
+ Hi.call(t, r) && wt(e, r, t[r]);
4090
4125
  return e;
4091
- }, wi = (e, t) => Ei(e, xi(t));
4092
- let ke;
4093
- const pe = ge(null);
4094
- function xt(e) {
4126
+ }, Ai = (e, t) => wi(e, Ti(t));
4127
+ let Ze;
4128
+ const de = ye(null);
4129
+ function Tt(e) {
4095
4130
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4096
4131
  }
4097
- function ve(e, t = X().fallbackLocale) {
4098
- const r = xt(e);
4099
- return t ? [.../* @__PURE__ */ new Set([...r, ...xt(t)])] : r;
4132
+ function _e(e, t = X().fallbackLocale) {
4133
+ const r = Tt(e);
4134
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Tt(t)])] : r;
4100
4135
  }
4101
4136
  function M() {
4102
- return ke != null ? ke : void 0;
4137
+ return Ze != null ? Ze : void 0;
4103
4138
  }
4104
- pe.subscribe((e) => {
4105
- ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4139
+ de.subscribe((e) => {
4140
+ Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4106
4141
  });
4107
- const Bi = (e) => {
4108
- if (e && fi(e) && je(e)) {
4142
+ const Oi = (e) => {
4143
+ if (e && bi(e) && We(e)) {
4109
4144
  const { loadingDelay: t } = X();
4110
4145
  let r;
4111
4146
  return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
4112
- () => Pe.set(!0),
4147
+ () => Ie.set(!0),
4113
4148
  t
4114
- ) : Pe.set(!0), nr(e).then(() => {
4115
- pe.set(e);
4149
+ ) : Ie.set(!0), ar(e).then(() => {
4150
+ de.set(e);
4116
4151
  }).finally(() => {
4117
- clearTimeout(r), Pe.set(!1);
4152
+ clearTimeout(r), Ie.set(!1);
4118
4153
  });
4119
4154
  }
4120
- return pe.set(e);
4121
- }, Z = wi(Ti({}, pe), {
4122
- set: Bi
4123
- }), Ee = (e) => {
4155
+ return de.set(e);
4156
+ }, W = Ai(Pi({}, de), {
4157
+ set: Oi
4158
+ }), xe = (e) => {
4124
4159
  const t = /* @__PURE__ */ Object.create(null);
4125
4160
  return (n) => {
4126
4161
  const i = JSON.stringify(n);
4127
4162
  return i in t ? t[i] : t[i] = e(n);
4128
4163
  };
4129
4164
  };
4130
- var Hi = Object.defineProperty, me = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? Hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
4165
+ var Ii = Object.defineProperty, be = Object.getOwnPropertySymbols, ur = Object.prototype.hasOwnProperty, hr = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
4131
4166
  for (var r in t || (t = {}))
4132
- ir.call(t, r) && _t(e, r, t[r]);
4133
- if (me)
4134
- for (var r of me(t))
4135
- or.call(t, r) && _t(e, r, t[r]);
4167
+ ur.call(t, r) && Bt(e, r, t[r]);
4168
+ if (be)
4169
+ for (var r of be(t))
4170
+ hr.call(t, r) && Bt(e, r, t[r]);
4136
4171
  return e;
4137
- }, Q = (e, t) => {
4172
+ }, Z = (e, t) => {
4138
4173
  var r = {};
4139
4174
  for (var n in e)
4140
- ir.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4141
- if (e != null && me)
4142
- for (var n of me(e))
4143
- t.indexOf(n) < 0 && or.call(e, n) && (r[n] = e[n]);
4175
+ ur.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4176
+ if (e != null && be)
4177
+ for (var n of be(e))
4178
+ t.indexOf(n) < 0 && hr.call(e, n) && (r[n] = e[n]);
4144
4179
  return r;
4145
4180
  };
4146
- const te = (e, t) => {
4181
+ const ee = (e, t) => {
4147
4182
  const { formats: r } = X();
4148
4183
  if (e in r && t in r[e])
4149
4184
  return r[e][t];
4150
4185
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4151
- }, Pi = Ee(
4186
+ }, Ni = xe(
4152
4187
  (e) => {
4153
- var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
4188
+ var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
4154
4189
  if (r == null)
4155
4190
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4156
- return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
4191
+ return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
4157
4192
  }
4158
- ), Ai = Ee(
4193
+ ), Li = xe(
4159
4194
  (e) => {
4160
- var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
4195
+ var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
4161
4196
  if (r == null)
4162
4197
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4163
- return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
4198
+ return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
4164
4199
  }
4165
- ), Oi = Ee(
4200
+ ), Ci = xe(
4166
4201
  (e) => {
4167
- var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
4202
+ var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
4168
4203
  if (r == null)
4169
4204
  throw new Error(
4170
4205
  '[svelte-i18n] A "locale" must be set to format time values'
4171
4206
  );
4172
- return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
4207
+ return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
4173
4208
  }
4174
- ), Ii = (e = {}) => {
4209
+ ), Mi = (e = {}) => {
4175
4210
  var t = e, {
4176
4211
  locale: r = M()
4177
- } = t, n = Q(t, [
4212
+ } = t, n = Z(t, [
4178
4213
  "locale"
4179
4214
  ]);
4180
- return Pi(Ze({ locale: r }, n));
4181
- }, Ni = (e = {}) => {
4215
+ return Ni(qe({ locale: r }, n));
4216
+ }, $i = (e = {}) => {
4182
4217
  var t = e, {
4183
4218
  locale: r = M()
4184
- } = t, n = Q(t, [
4219
+ } = t, n = Z(t, [
4185
4220
  "locale"
4186
4221
  ]);
4187
- return Ai(Ze({ locale: r }, n));
4188
- }, Li = (e = {}) => {
4222
+ return Li(qe({ locale: r }, n));
4223
+ }, Ri = (e = {}) => {
4189
4224
  var t = e, {
4190
4225
  locale: r = M()
4191
- } = t, n = Q(t, [
4226
+ } = t, n = Z(t, [
4192
4227
  "locale"
4193
4228
  ]);
4194
- return Oi(Ze({ locale: r }, n));
4195
- }, Ci = Ee(
4229
+ return Ci(qe({ locale: r }, n));
4230
+ }, Ui = xe(
4196
4231
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4197
- (e, t = M()) => new ai(e, t, X().formats, {
4232
+ (e, t = M()) => new ci(e, t, X().formats, {
4198
4233
  ignoreTag: X().ignoreTag
4199
4234
  })
4200
- ), Mi = (e, t = {}) => {
4235
+ ), Di = (e, t = {}) => {
4201
4236
  var r, n, i, o;
4202
4237
  let s = t;
4203
4238
  typeof e == "object" && (s = e, e = s.id);
@@ -4210,7 +4245,7 @@ const te = (e, t) => {
4210
4245
  throw new Error(
4211
4246
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4212
4247
  );
4213
- let l = Kt(e, u);
4248
+ let l = nr(e, u);
4214
4249
  if (!l)
4215
4250
  l = (o = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
4216
4251
  else if (typeof l != "string")
@@ -4221,7 +4256,7 @@ const te = (e, t) => {
4221
4256
  return l;
4222
4257
  let c = l;
4223
4258
  try {
4224
- c = Ci(l, u).format(a);
4259
+ c = Ui(l, u).format(a);
4225
4260
  } catch (f) {
4226
4261
  f instanceof Error && console.warn(
4227
4262
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4229,20 +4264,20 @@ const te = (e, t) => {
4229
4264
  );
4230
4265
  }
4231
4266
  return c;
4232
- }, $i = (e, t) => Li(t).format(e), Ri = (e, t) => Ni(t).format(e), Ui = (e, t) => Ii(t).format(e), Di = (e, t = M()) => Kt(e, t), Gi = W([Z, ne], () => Mi);
4233
- W([Z], () => $i);
4234
- W([Z], () => Ri);
4235
- W([Z], () => Ui);
4236
- W([Z, ne], () => Di);
4237
- window.emWidgets = { topic: qr };
4267
+ }, Gi = (e, t) => Ri(t).format(e), Fi = (e, t) => $i(t).format(e), ji = (e, t) => Mi(t).format(e), ki = (e, t = M()) => nr(e, t), Vi = z([W, ne], () => Di);
4268
+ z([W], () => Gi);
4269
+ z([W], () => Fi);
4270
+ z([W], () => ji);
4271
+ z([W, ne], () => ki);
4272
+ window.emWidgets = { topic: tn };
4238
4273
  const ae = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4239
- function St(e, t) {
4240
- tr(e, t);
4274
+ function Ht(e, t) {
4275
+ or(e, t);
4241
4276
  }
4242
- function Fi(e) {
4243
- Z.set(e);
4277
+ function Xi(e) {
4278
+ W.set(e);
4244
4279
  }
4245
- const Tt = {
4280
+ const Pt = {
4246
4281
  en: {
4247
4282
  panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
4248
4283
  },
@@ -4283,10 +4318,10 @@ const Tt = {
4283
4318
  panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
4284
4319
  }
4285
4320
  };
4286
- function ji(e) {
4287
- dr(e, "svelte-1mifytr", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicSection .PanicButton{border-radius:5px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:10px;width:280px;height:fit-content;padding:15px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer}.PanicSectionMobile{position:absolute;top:0;left:0;width:100%;text-align:center;margin:20px 0 0 0 !important}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:100% !important;height:30px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:280px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.PanicButtonV2 .PanicButton{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:388px;font-size:12px}.PanicButtonV2 .PanicButtonMobile{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:10px}.PanicButtonV2 .PanicButtonAnimation{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:388px}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:388px}}");
4321
+ function zi(e) {
4322
+ gr(e, "svelte-1mifytr", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicSection .PanicButton{border-radius:5px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:10px;width:280px;height:fit-content;padding:15px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer}.PanicSectionMobile{position:absolute;top:0;left:0;width:100%;text-align:center;margin:20px 0 0 0 !important}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:100% !important;height:30px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:280px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.PanicButtonV2 .PanicButton{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:388px;font-size:12px}.PanicButtonV2 .PanicButtonMobile{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:10px}.PanicButtonV2 .PanicButtonAnimation{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:388px}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:388px}}");
4288
4323
  }
4289
- function ki(e) {
4324
+ function Wi(e) {
4290
4325
  let t, r, n, i = (
4291
4326
  /*customtext*/
4292
4327
  (e[0] || /*$_*/
@@ -4294,13 +4329,13 @@ function ki(e) {
4294
4329
  ), o, s;
4295
4330
  return {
4296
4331
  c() {
4297
- t = Y("div"), r = Y("div"), n = Y("button"), o = br(i), C(n, "class", "PanicButton " + (ae(
4332
+ t = J("div"), r = J("div"), n = J("button"), o = Er(i), C(n, "class", "PanicButton " + (ae(
4298
4333
  /*userAgent*/
4299
4334
  e[6]
4300
4335
  ) !== "PC" ? "PanicButtonMobile" : "")), C(n, "part", "PanicButton " + (ae(
4301
4336
  /*userAgent*/
4302
4337
  e[6]
4303
- ) !== "PC" ? "PanicButtonMobile" : "")), tt(
4338
+ ) !== "PC" ? "PanicButtonMobile" : "")), ot(
4304
4339
  n,
4305
4340
  "PanicButtonAnimation",
4306
4341
  /*panicLoading*/
@@ -4315,14 +4350,14 @@ function ki(e) {
4315
4350
  e[1] == "true" ? "PanicButtonV2" : "");
4316
4351
  },
4317
4352
  m(a, u) {
4318
- Pt(a, t, u), ue(t, r), ue(r, n), ue(n, o), e[12](n), e[13](t);
4353
+ Nt(a, t, u), ue(t, r), ue(r, n), ue(n, o), e[12](n), e[13](t);
4319
4354
  },
4320
4355
  p(a, [u]) {
4321
4356
  u & /*customtext, $_*/
4322
4357
  33 && i !== (i = /*customtext*/
4323
4358
  (a[0] || /*$_*/
4324
- a[5]("panicButtonString")) + "") && yr(o, i), u & /*panicLoading*/
4325
- 16 && tt(
4359
+ a[5]("panicButtonString")) + "") && xr(o, i), u & /*panicLoading*/
4360
+ 16 && ot(
4326
4361
  n,
4327
4362
  "PanicButtonAnimation",
4328
4363
  /*panicLoading*/
@@ -4334,71 +4369,71 @@ function ki(e) {
4334
4369
  i: B,
4335
4370
  o: B,
4336
4371
  d(a) {
4337
- a && ze(t), e[12](null), e[13](null);
4372
+ a && Je(t), e[12](null), e[13](null);
4338
4373
  }
4339
4374
  };
4340
4375
  }
4341
- function Vi(e, t, r) {
4376
+ function Zi(e, t, r) {
4342
4377
  let n;
4343
- fr(e, Gi, (v) => r(5, n = v));
4344
- let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: u } = t, { alternativestyling: h = "" } = t, { translationurl: l = "" } = t, c, f, p = !1, y = 0, g, w = window.navigator.userAgent;
4378
+ br(e, Vi, (y) => r(5, n = y));
4379
+ let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: u } = t, { alternativestyling: h = "" } = t, { translationurl: l = "" } = t, c, f, m = !1, g = 0, b, T = window.navigator.userAgent;
4345
4380
  const L = () => {
4346
4381
  fetch(l).then((R) => R.json()).then((R) => {
4347
- Object.keys(R).forEach((Qe) => {
4348
- St(Qe, R[Qe]);
4382
+ Object.keys(R).forEach((Ke) => {
4383
+ Ht(Ke, R[Ke]);
4349
4384
  });
4350
4385
  }).catch((R) => {
4351
4386
  console.log(R);
4352
4387
  });
4353
4388
  };
4354
- Object.keys(Tt).forEach((v) => {
4355
- St(v, Tt[v]);
4389
+ Object.keys(Pt).forEach((y) => {
4390
+ Ht(y, Pt[y]);
4356
4391
  });
4357
4392
  const I = () => {
4358
4393
  c == null || c.addEventListener("mousedown", H, !1), c == null || c.addEventListener("touchstart", H, !1), c == null || c.addEventListener("mouseup", S, !1), c == null || c.addEventListener("touchend", S, !1);
4359
- }, _ = () => {
4360
- r(4, p = !1), c == null || c.removeEventListener("mousedown", H), c == null || c.removeEventListener("touchstart", H), c == null || c.removeEventListener("mouseup", S), c == null || c.removeEventListener("touchend", S);
4394
+ }, x = () => {
4395
+ r(4, m = !1), c == null || c.removeEventListener("mousedown", H), c == null || c.removeEventListener("touchstart", H), c == null || c.removeEventListener("mouseup", S), c == null || c.removeEventListener("touchend", S);
4361
4396
  }, H = () => {
4362
- y = 0, r(4, p = !0), g = setInterval(
4397
+ g = 0, r(4, m = !0), b = setInterval(
4363
4398
  () => {
4364
- y++, y >= 2 && (window.postMessage({ type: "PanicButtonClicked" }, window.location.href), clearInterval(g), typeof gtag == "function" && gtag("event", "PanicButtonClicked", { context: "PanicButton" }));
4399
+ g++, g >= 2 && (window.postMessage({ type: "PanicButtonClicked" }, window.location.href), clearInterval(b), typeof gtag == "function" && gtag("event", "PanicButtonClicked", { context: "PanicButton" }));
4365
4400
  },
4366
4401
  1e3
4367
4402
  );
4368
4403
  }, S = () => {
4369
- r(4, p = !1), clearInterval(g);
4404
+ r(4, m = !1), clearInterval(b);
4370
4405
  };
4371
- xr(() => () => {
4372
- _();
4406
+ Tr(() => () => {
4407
+ x();
4373
4408
  });
4374
- function $(v) {
4375
- de[v ? "unshift" : "push"](() => {
4376
- c = v, r(2, c);
4409
+ function $(y) {
4410
+ pe[y ? "unshift" : "push"](() => {
4411
+ c = y, r(2, c);
4377
4412
  });
4378
4413
  }
4379
- function ie(v) {
4380
- de[v ? "unshift" : "push"](() => {
4381
- f = v, r(3, f);
4414
+ function ie(y) {
4415
+ pe[y ? "unshift" : "push"](() => {
4416
+ f = y, r(3, f);
4382
4417
  });
4383
4418
  }
4384
- return e.$$set = (v) => {
4385
- "lang" in v && r(7, i = v.lang), "customtext" in v && r(0, o = v.customtext), "clientstyling" in v && r(8, s = v.clientstyling), "clientstylingurl" in v && r(9, a = v.clientstylingurl), "mbsource" in v && r(10, u = v.mbsource), "alternativestyling" in v && r(1, h = v.alternativestyling), "translationurl" in v && r(11, l = v.translationurl);
4419
+ return e.$$set = (y) => {
4420
+ "lang" in y && r(7, i = y.lang), "customtext" in y && r(0, o = y.customtext), "clientstyling" in y && r(8, s = y.clientstyling), "clientstylingurl" in y && r(9, a = y.clientstylingurl), "mbsource" in y && r(10, u = y.mbsource), "alternativestyling" in y && r(1, h = y.alternativestyling), "translationurl" in y && r(11, l = y.translationurl);
4386
4421
  }, e.$$.update = () => {
4387
4422
  e.$$.dirty & /*panicButton*/
4388
4423
  4 && c && I(), e.$$.dirty & /*lang*/
4389
- 128 && i && Fi(i), e.$$.dirty & /*clientstyling, customStylingContainer*/
4390
- 264 && s && f && Mr(f, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4391
- 520 && a && f && $r(f, a), e.$$.dirty & /*mbsource, customStylingContainer*/
4392
- 1032 && u && f && Rr(f, `${u}.Style`), e.$$.dirty & /*translationurl*/
4424
+ 128 && i && Xi(i), e.$$.dirty & /*clientstyling, customStylingContainer*/
4425
+ 264 && s && f && Dr(f, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4426
+ 520 && a && f && Gr(f, a), e.$$.dirty & /*mbsource, customStylingContainer*/
4427
+ 1032 && u && f && Fr(f, `${u}.Style`), e.$$.dirty & /*translationurl*/
4393
4428
  2048 && l && L();
4394
4429
  }, [
4395
4430
  o,
4396
4431
  h,
4397
4432
  c,
4398
4433
  f,
4399
- p,
4434
+ m,
4400
4435
  n,
4401
- w,
4436
+ T,
4402
4437
  i,
4403
4438
  s,
4404
4439
  a,
@@ -4408,14 +4443,14 @@ function Vi(e, t, r) {
4408
4443
  ie
4409
4444
  ];
4410
4445
  }
4411
- class zi extends Lr {
4446
+ class Qi extends Rr {
4412
4447
  constructor(t) {
4413
- super(), Ir(
4448
+ super(), Mr(
4414
4449
  this,
4415
4450
  t,
4416
- Vi,
4417
- ki,
4418
- Bt,
4451
+ Zi,
4452
+ Wi,
4453
+ Ot,
4419
4454
  {
4420
4455
  lang: 7,
4421
4456
  customtext: 0,
@@ -4425,53 +4460,53 @@ class zi extends Lr {
4425
4460
  alternativestyling: 1,
4426
4461
  translationurl: 11
4427
4462
  },
4428
- ji
4463
+ zi
4429
4464
  );
4430
4465
  }
4431
4466
  get lang() {
4432
4467
  return this.$$.ctx[7];
4433
4468
  }
4434
4469
  set lang(t) {
4435
- this.$$set({ lang: t }), P();
4470
+ this.$$set({ lang: t }), A();
4436
4471
  }
4437
4472
  get customtext() {
4438
4473
  return this.$$.ctx[0];
4439
4474
  }
4440
4475
  set customtext(t) {
4441
- this.$$set({ customtext: t }), P();
4476
+ this.$$set({ customtext: t }), A();
4442
4477
  }
4443
4478
  get clientstyling() {
4444
4479
  return this.$$.ctx[8];
4445
4480
  }
4446
4481
  set clientstyling(t) {
4447
- this.$$set({ clientstyling: t }), P();
4482
+ this.$$set({ clientstyling: t }), A();
4448
4483
  }
4449
4484
  get clientstylingurl() {
4450
4485
  return this.$$.ctx[9];
4451
4486
  }
4452
4487
  set clientstylingurl(t) {
4453
- this.$$set({ clientstylingurl: t }), P();
4488
+ this.$$set({ clientstylingurl: t }), A();
4454
4489
  }
4455
4490
  get mbsource() {
4456
4491
  return this.$$.ctx[10];
4457
4492
  }
4458
4493
  set mbsource(t) {
4459
- this.$$set({ mbsource: t }), P();
4494
+ this.$$set({ mbsource: t }), A();
4460
4495
  }
4461
4496
  get alternativestyling() {
4462
4497
  return this.$$.ctx[1];
4463
4498
  }
4464
4499
  set alternativestyling(t) {
4465
- this.$$set({ alternativestyling: t }), P();
4500
+ this.$$set({ alternativestyling: t }), A();
4466
4501
  }
4467
4502
  get translationurl() {
4468
4503
  return this.$$.ctx[11];
4469
4504
  }
4470
4505
  set translationurl(t) {
4471
- this.$$set({ translationurl: t }), P();
4506
+ this.$$set({ translationurl: t }), A();
4472
4507
  }
4473
4508
  }
4474
- Nr(zi, { lang: {}, customtext: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, alternativestyling: {}, translationurl: {} }, [], [], !0);
4509
+ $r(Qi, { lang: {}, customtext: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, alternativestyling: {}, translationurl: {} }, [], [], !0);
4475
4510
  export {
4476
- zi as default
4511
+ Qi as default
4477
4512
  };