gt-react 10.19.16 → 10.19.18

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.
package/dist/internal.mjs CHANGED
@@ -25,57 +25,90 @@ function _(e, t) {
25
25
  function v(e, t, n) {
26
26
  e[t] = n;
27
27
  }
28
- const y = (e) => `Duplicate key found in dictionary: "${e}"`;
29
- function b(e, t = ``) {
28
+ const ee = (e) => `Duplicate key found in dictionary: "${e}"`;
29
+ function y(e, t = ``) {
30
30
  let n = {};
31
31
  for (let r in e) if (e.hasOwnProperty(r)) {
32
32
  let i = t ? `${t}.${r}` : r;
33
33
  if (typeof _(e, r) == `object` && _(e, r) !== null && !Array.isArray(_(e, r))) {
34
- let t = b(_(e, r), i);
34
+ let t = y(_(e, r), i);
35
35
  for (let e in t) {
36
- if (n.hasOwnProperty(e)) throw Error(y(e));
36
+ if (n.hasOwnProperty(e)) throw Error(ee(e));
37
37
  n[e] = t[e];
38
38
  }
39
39
  } else {
40
- if (n.hasOwnProperty(i)) throw Error(y(i));
40
+ if (n.hasOwnProperty(i)) throw Error(ee(i));
41
41
  n[i] = _(e, r);
42
42
  }
43
43
  }
44
44
  return n;
45
45
  }
46
- function ee(e) {
46
+ function b(e) {
47
+ let t = e.trim();
48
+ return t ? /[.!?)]$/.test(t) ? t : `${t}.` : ``;
49
+ }
50
+ function x(e) {
51
+ let t = e.trim(), n = t.length;
52
+ for (; n > 0;) {
53
+ let e = t[n - 1];
54
+ if (e !== `.` && e !== `!` && e !== `?`) break;
55
+ --n;
56
+ }
57
+ return t.slice(0, n);
58
+ }
59
+ function te(e) {
60
+ return e.replace(/^[A-Z][a-z]/, (e) => e.toLowerCase());
61
+ }
62
+ function ne(e) {
63
+ if (!e) return ``;
64
+ let t = Array.isArray(e) ? e.join(`, `) : e;
65
+ return t.trim() ? b(`Details: ${t}`) : ``;
66
+ }
67
+ function S({ source: e, severity: t, whatHappened: n, reassurance: r, why: i, fix: a, wayOut: o, details: s, docsUrl: c }) {
68
+ let l = e ? t ? `${e} ${t}:` : `${e}:` : t ? `${t}:` : ``, u = i ? `${x(n)} because ${te(x(i))}` : n, d = !!a && !!o && /^[a-z]/.test(x(o)), f = [
69
+ u,
70
+ r,
71
+ d ? `${x(a)}, or ${te(x(o))}` : a,
72
+ d ? void 0 : o,
73
+ ne(s)
74
+ ].filter((e) => !!e).map(b);
75
+ c && f.push(`Learn more: ${c}`);
76
+ let p = f.join(` `);
77
+ return l ? `${l} ${p}` : p;
78
+ }
79
+ function C(e) {
47
80
  if (typeof Buffer < `u`) return Buffer.from(e, `utf8`).toString(`base64`);
48
81
  let t = new TextEncoder().encode(e), n = ``;
49
82
  for (let e = 0; e < t.length; e++) n += String.fromCharCode(t[e]);
50
83
  return btoa(n);
51
84
  }
52
- function x(e) {
85
+ function w(e) {
53
86
  if (typeof Buffer < `u`) return Buffer.from(e, `base64`).toString(`utf8`);
54
87
  let t = atob(e), n = new Uint8Array(t.length);
55
88
  for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
56
89
  return new TextDecoder().decode(n);
57
90
  }
58
- function S(e) {
91
+ function T(e) {
59
92
  if (e === void 0) return;
60
93
  if (e === null) return `null`;
61
94
  if (typeof e == `number`) return isFinite(e) ? `` + e : `null`;
62
95
  if (typeof e != `object`) return JSON.stringify(e);
63
96
  if (Array.isArray(e)) {
64
97
  let t = `[`;
65
- for (let n = 0; n < e.length; n++) n && (t += `,`), t += S(e[n]) || `null`;
98
+ for (let n = 0; n < e.length; n++) n && (t += `,`), t += T(e[n]) || `null`;
66
99
  return t + `]`;
67
100
  }
68
101
  let t = Object.keys(e).sort(), n = ``;
69
102
  for (let r of t) {
70
- let t = S(e[r]);
103
+ let t = T(e[r]);
71
104
  t && (n && (n += `,`), n += JSON.stringify(r) + `:` + t);
72
105
  }
73
106
  return `{` + n + `}`;
74
107
  }
75
- function te(e) {
76
- return S(e) ?? ``;
108
+ function re(e) {
109
+ return T(e) ?? ``;
77
110
  }
78
- function C(e) {
111
+ function E(e) {
79
112
  let t = e;
80
113
  if (t && typeof t == `object` && typeof t.k == `string`) {
81
114
  let e = Object.keys(t);
@@ -83,52 +116,52 @@ function C(e) {
83
116
  }
84
117
  return !1;
85
118
  }
86
- function w(e) {
119
+ function ie(e) {
87
120
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === `Uint8Array` && `BYTES_PER_ELEMENT` in e && e.BYTES_PER_ELEMENT === 1;
88
121
  }
89
- function T(e, t, n = ``) {
90
- let r = w(e), i = e?.length, a = t !== void 0;
122
+ function D(e, t, n = ``) {
123
+ let r = ie(e), i = e?.length, a = t !== void 0;
91
124
  if (!r || a && i !== t) {
92
125
  let o = n && `"${n}" `, s = a ? ` of length ${t}` : ``, c = r ? `length=${i}` : `type=${typeof e}`, l = o + `expected Uint8Array` + s + `, got ` + c;
93
126
  throw r ? RangeError(l) : TypeError(l);
94
127
  }
95
128
  return e;
96
129
  }
97
- function E(e, t = !0) {
130
+ function ae(e, t = !0) {
98
131
  if (e.destroyed) throw Error(`Hash instance has been destroyed`);
99
132
  if (t && e.finished) throw Error(`Hash#digest() has already been called`);
100
133
  }
101
- function D(e, t) {
102
- T(e, void 0, `digestInto() output`);
134
+ function oe(e, t) {
135
+ D(e, void 0, `digestInto() output`);
103
136
  let n = t.outputLen;
104
137
  if (e.length < n) throw RangeError(`"digestInto() output" expected to be of length >=` + n);
105
138
  }
106
- function O(...e) {
139
+ function se(...e) {
107
140
  for (let t = 0; t < e.length; t++) e[t].fill(0);
108
141
  }
109
- function k(e) {
142
+ function ce(e) {
110
143
  return new DataView(e.buffer, e.byteOffset, e.byteLength);
111
144
  }
112
- function A(e, t) {
145
+ function O(e, t) {
113
146
  return e << 32 - t | e >>> t;
114
147
  }
115
148
  new Uint8Array(new Uint32Array([287454020]).buffer)[0];
116
- const ne = typeof Uint8Array.from([]).toHex == `function` && typeof Uint8Array.fromHex == `function`, re = Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, `0`));
117
- function ie(e) {
118
- if (T(e), ne) return e.toHex();
149
+ const le = typeof Uint8Array.from([]).toHex == `function` && typeof Uint8Array.fromHex == `function`, ue = Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, `0`));
150
+ function de(e) {
151
+ if (D(e), le) return e.toHex();
119
152
  let t = ``;
120
- for (let n = 0; n < e.length; n++) t += re[e[n]];
153
+ for (let n = 0; n < e.length; n++) t += ue[e[n]];
121
154
  return t;
122
155
  }
123
- function ae(e) {
156
+ function fe(e) {
124
157
  if (typeof e != `string`) throw TypeError(`string expected`);
125
158
  return new Uint8Array(new TextEncoder().encode(e));
126
159
  }
127
- function oe(e, t = {}) {
160
+ function pe(e, t = {}) {
128
161
  let n = (t, n) => e(n).update(t).digest(), r = e(void 0);
129
162
  return n.outputLen = r.outputLen, n.blockLen = r.blockLen, n.canXOF = r.canXOF, n.create = (t) => e(t), Object.assign(n, t), Object.freeze(n);
130
163
  }
131
- const se = (e) => ({ oid: Uint8Array.from([
164
+ const me = (e) => ({ oid: Uint8Array.from([
132
165
  6,
133
166
  9,
134
167
  96,
@@ -141,13 +174,13 @@ const se = (e) => ({ oid: Uint8Array.from([
141
174
  2,
142
175
  e
143
176
  ]) });
144
- function ce(e, t, n) {
177
+ function he(e, t, n) {
145
178
  return e & t ^ ~e & n;
146
179
  }
147
- function le(e, t, n) {
180
+ function ge(e, t, n) {
148
181
  return e & t ^ e & n ^ t & n;
149
182
  }
150
- var ue = class {
183
+ var _e = class {
151
184
  blockLen;
152
185
  outputLen;
153
186
  canXOF = !1;
@@ -160,15 +193,15 @@ var ue = class {
160
193
  pos = 0;
161
194
  destroyed = !1;
162
195
  constructor(e, t, n, r) {
163
- this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view = k(this.buffer);
196
+ this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view = ce(this.buffer);
164
197
  }
165
198
  update(e) {
166
- E(this), T(e);
199
+ ae(this), D(e);
167
200
  let { view: t, buffer: n, blockLen: r } = this, i = e.length;
168
201
  for (let a = 0; a < i;) {
169
202
  let o = Math.min(r - this.pos, i - a);
170
203
  if (o === r) {
171
- let t = k(e);
204
+ let t = ce(e);
172
205
  for (; r <= i - a; a += r) this.process(t, a);
173
206
  continue;
174
207
  }
@@ -177,12 +210,12 @@ var ue = class {
177
210
  return this.length += e.length, this.roundClean(), this;
178
211
  }
179
212
  digestInto(e) {
180
- E(this), D(e, this), this.finished = !0;
213
+ ae(this), oe(e, this), this.finished = !0;
181
214
  let { buffer: t, view: n, blockLen: r, isLE: i } = this, { pos: a } = this;
182
- t[a++] = 128, O(this.buffer.subarray(a)), this.padOffset > r - a && (this.process(n, 0), a = 0);
215
+ t[a++] = 128, se(this.buffer.subarray(a)), this.padOffset > r - a && (this.process(n, 0), a = 0);
183
216
  for (let e = a; e < r; e++) t[e] = 0;
184
217
  n.setBigUint64(r - 8, BigInt(this.length * 8), i), this.process(n, 0);
185
- let o = k(e), s = this.outputLen;
218
+ let o = ce(e), s = this.outputLen;
186
219
  if (s % 4) throw Error(`_sha2: outputLen must be aligned to 32bit`);
187
220
  let c = s / 4, l = this.get();
188
221
  if (c > l.length) throw Error(`_sha2: outputLen bigger than state`);
@@ -203,7 +236,7 @@ var ue = class {
203
236
  return this._cloneInto();
204
237
  }
205
238
  };
206
- const j = Uint32Array.from([
239
+ const k = Uint32Array.from([
207
240
  1779033703,
208
241
  3144134277,
209
242
  1013904242,
@@ -212,25 +245,25 @@ const j = Uint32Array.from([
212
245
  2600822924,
213
246
  528734635,
214
247
  1541459225
215
- ]), M = BigInt(2 ** 32 - 1), de = BigInt(32);
216
- function fe(e, t = !1) {
248
+ ]), A = BigInt(2 ** 32 - 1), ve = BigInt(32);
249
+ function ye(e, t = !1) {
217
250
  return t ? {
218
- h: Number(e & M),
219
- l: Number(e >> de & M)
251
+ h: Number(e & A),
252
+ l: Number(e >> ve & A)
220
253
  } : {
221
- h: Number(e >> de & M) | 0,
222
- l: Number(e & M) | 0
254
+ h: Number(e >> ve & A) | 0,
255
+ l: Number(e & A) | 0
223
256
  };
224
257
  }
225
- function pe(e, t = !1) {
258
+ function be(e, t = !1) {
226
259
  let n = e.length, r = new Uint32Array(n), i = new Uint32Array(n);
227
260
  for (let a = 0; a < n; a++) {
228
- let { h: n, l: o } = fe(e[a], t);
261
+ let { h: n, l: o } = ye(e[a], t);
229
262
  [r[a], i[a]] = [n, o];
230
263
  }
231
264
  return [r, i];
232
265
  }
233
- const me = Uint32Array.from([
266
+ const xe = Uint32Array.from([
234
267
  1116352408,
235
268
  1899447441,
236
269
  3049323471,
@@ -295,8 +328,8 @@ const me = Uint32Array.from([
295
328
  2756734187,
296
329
  3204031479,
297
330
  3329325298
298
- ]), N = new Uint32Array(64);
299
- var he = class extends ue {
331
+ ]), j = new Uint32Array(64);
332
+ var Se = class extends _e {
300
333
  constructor(e) {
301
334
  super(64, e, 8, !1);
302
335
  }
@@ -317,40 +350,40 @@ var he = class extends ue {
317
350
  this.A = e | 0, this.B = t | 0, this.C = n | 0, this.D = r | 0, this.E = i | 0, this.F = a | 0, this.G = o | 0, this.H = s | 0;
318
351
  }
319
352
  process(e, t) {
320
- for (let n = 0; n < 16; n++, t += 4) N[n] = e.getUint32(t, !1);
353
+ for (let n = 0; n < 16; n++, t += 4) j[n] = e.getUint32(t, !1);
321
354
  for (let e = 16; e < 64; e++) {
322
- let t = N[e - 15], n = N[e - 2], r = A(t, 7) ^ A(t, 18) ^ t >>> 3;
323
- N[e] = (A(n, 17) ^ A(n, 19) ^ n >>> 10) + N[e - 7] + r + N[e - 16] | 0;
355
+ let t = j[e - 15], n = j[e - 2], r = O(t, 7) ^ O(t, 18) ^ t >>> 3;
356
+ j[e] = (O(n, 17) ^ O(n, 19) ^ n >>> 10) + j[e - 7] + r + j[e - 16] | 0;
324
357
  }
325
358
  let { A: n, B: r, C: i, D: a, E: o, F: s, G: c, H: l } = this;
326
359
  for (let e = 0; e < 64; e++) {
327
- let t = A(o, 6) ^ A(o, 11) ^ A(o, 25), u = l + t + ce(o, s, c) + me[e] + N[e] | 0, d = (A(n, 2) ^ A(n, 13) ^ A(n, 22)) + le(n, r, i) | 0;
360
+ let t = O(o, 6) ^ O(o, 11) ^ O(o, 25), u = l + t + he(o, s, c) + xe[e] + j[e] | 0, d = (O(n, 2) ^ O(n, 13) ^ O(n, 22)) + ge(n, r, i) | 0;
328
361
  l = c, c = s, s = o, o = a + u | 0, a = i, i = r, r = n, n = u + d | 0;
329
362
  }
330
363
  n = n + this.A | 0, r = r + this.B | 0, i = i + this.C | 0, a = a + this.D | 0, o = o + this.E | 0, s = s + this.F | 0, c = c + this.G | 0, l = l + this.H | 0, this.set(n, r, i, a, o, s, c, l);
331
364
  }
332
365
  roundClean() {
333
- O(N);
366
+ se(j);
334
367
  }
335
368
  destroy() {
336
- this.destroyed = !0, this.set(0, 0, 0, 0, 0, 0, 0, 0), O(this.buffer);
337
- }
338
- }, ge = class extends he {
339
- A = j[0] | 0;
340
- B = j[1] | 0;
341
- C = j[2] | 0;
342
- D = j[3] | 0;
343
- E = j[4] | 0;
344
- F = j[5] | 0;
345
- G = j[6] | 0;
346
- H = j[7] | 0;
369
+ this.destroyed = !0, this.set(0, 0, 0, 0, 0, 0, 0, 0), se(this.buffer);
370
+ }
371
+ }, Ce = class extends Se {
372
+ A = k[0] | 0;
373
+ B = k[1] | 0;
374
+ C = k[2] | 0;
375
+ D = k[3] | 0;
376
+ E = k[4] | 0;
377
+ F = k[5] | 0;
378
+ G = k[6] | 0;
379
+ H = k[7] | 0;
347
380
  constructor() {
348
381
  super(32);
349
382
  }
350
383
  };
351
- const _e = pe(`0x428a2f98d728ae22.0x7137449123ef65cd.0xb5c0fbcfec4d3b2f.0xe9b5dba58189dbbc.0x3956c25bf348b538.0x59f111f1b605d019.0x923f82a4af194f9b.0xab1c5ed5da6d8118.0xd807aa98a3030242.0x12835b0145706fbe.0x243185be4ee4b28c.0x550c7dc3d5ffb4e2.0x72be5d74f27b896f.0x80deb1fe3b1696b1.0x9bdc06a725c71235.0xc19bf174cf692694.0xe49b69c19ef14ad2.0xefbe4786384f25e3.0x0fc19dc68b8cd5b5.0x240ca1cc77ac9c65.0x2de92c6f592b0275.0x4a7484aa6ea6e483.0x5cb0a9dcbd41fbd4.0x76f988da831153b5.0x983e5152ee66dfab.0xa831c66d2db43210.0xb00327c898fb213f.0xbf597fc7beef0ee4.0xc6e00bf33da88fc2.0xd5a79147930aa725.0x06ca6351e003826f.0x142929670a0e6e70.0x27b70a8546d22ffc.0x2e1b21385c26c926.0x4d2c6dfc5ac42aed.0x53380d139d95b3df.0x650a73548baf63de.0x766a0abb3c77b2a8.0x81c2c92e47edaee6.0x92722c851482353b.0xa2bfe8a14cf10364.0xa81a664bbc423001.0xc24b8b70d0f89791.0xc76c51a30654be30.0xd192e819d6ef5218.0xd69906245565a910.0xf40e35855771202a.0x106aa07032bbd1b8.0x19a4c116b8d2d0c8.0x1e376c085141ab53.0x2748774cdf8eeb99.0x34b0bcb5e19b48a8.0x391c0cb3c5c95a63.0x4ed8aa4ae3418acb.0x5b9cca4f7763e373.0x682e6ff3d6b2b8a3.0x748f82ee5defb2fc.0x78a5636f43172f60.0x84c87814a1f0ab72.0x8cc702081a6439ec.0x90befffa23631e28.0xa4506cebde82bde9.0xbef9a3f7b2c67915.0xc67178f2e372532b.0xca273eceea26619c.0xd186b8c721c0c207.0xeada7dd6cde0eb1e.0xf57d4f7fee6ed178.0x06f067aa72176fba.0x0a637dc5a2c898a6.0x113f9804bef90dae.0x1b710b35131c471b.0x28db77f523047d84.0x32caab7b40c72493.0x3c9ebe0a15c9bebc.0x431d67c49c100d4c.0x4cc5d4becb3e42b6.0x597f299cfc657e2a.0x5fcb6fab3ad6faec.0x6c44198c4a475817`.split(`.`).map((e) => BigInt(e)));
352
- _e[0], _e[1];
353
- const ve = oe(() => new ge(), se(1)), ye = (e) => `generaltranslation Formatting Error: Invalid cutoff style: ${e}.`, be = `DEFAULT_TERMINATOR_KEY`, xe = {
384
+ const we = be(`0x428a2f98d728ae22.0x7137449123ef65cd.0xb5c0fbcfec4d3b2f.0xe9b5dba58189dbbc.0x3956c25bf348b538.0x59f111f1b605d019.0x923f82a4af194f9b.0xab1c5ed5da6d8118.0xd807aa98a3030242.0x12835b0145706fbe.0x243185be4ee4b28c.0x550c7dc3d5ffb4e2.0x72be5d74f27b896f.0x80deb1fe3b1696b1.0x9bdc06a725c71235.0xc19bf174cf692694.0xe49b69c19ef14ad2.0xefbe4786384f25e3.0x0fc19dc68b8cd5b5.0x240ca1cc77ac9c65.0x2de92c6f592b0275.0x4a7484aa6ea6e483.0x5cb0a9dcbd41fbd4.0x76f988da831153b5.0x983e5152ee66dfab.0xa831c66d2db43210.0xb00327c898fb213f.0xbf597fc7beef0ee4.0xc6e00bf33da88fc2.0xd5a79147930aa725.0x06ca6351e003826f.0x142929670a0e6e70.0x27b70a8546d22ffc.0x2e1b21385c26c926.0x4d2c6dfc5ac42aed.0x53380d139d95b3df.0x650a73548baf63de.0x766a0abb3c77b2a8.0x81c2c92e47edaee6.0x92722c851482353b.0xa2bfe8a14cf10364.0xa81a664bbc423001.0xc24b8b70d0f89791.0xc76c51a30654be30.0xd192e819d6ef5218.0xd69906245565a910.0xf40e35855771202a.0x106aa07032bbd1b8.0x19a4c116b8d2d0c8.0x1e376c085141ab53.0x2748774cdf8eeb99.0x34b0bcb5e19b48a8.0x391c0cb3c5c95a63.0x4ed8aa4ae3418acb.0x5b9cca4f7763e373.0x682e6ff3d6b2b8a3.0x748f82ee5defb2fc.0x78a5636f43172f60.0x84c87814a1f0ab72.0x8cc702081a6439ec.0x90befffa23631e28.0xa4506cebde82bde9.0xbef9a3f7b2c67915.0xc67178f2e372532b.0xca273eceea26619c.0xd186b8c721c0c207.0xeada7dd6cde0eb1e.0xf57d4f7fee6ed178.0x06f067aa72176fba.0x0a637dc5a2c898a6.0x113f9804bef90dae.0x1b710b35131c471b.0x28db77f523047d84.0x32caab7b40c72493.0x3c9ebe0a15c9bebc.0x431d67c49c100d4c.0x4cc5d4becb3e42b6.0x597f299cfc657e2a.0x5fcb6fab3ad6faec.0x6c44198c4a475817`.split(`.`).map((e) => BigInt(e)));
385
+ we[0], we[1];
386
+ const Te = pe(() => new Ce(), me(1)), Ee = (e) => `generaltranslation Formatting Error: Invalid cutoff style: ${e}.`, De = `DEFAULT_TERMINATOR_KEY`, Oe = {
354
387
  ellipsis: {
355
388
  fr: {
356
389
  terminator: `…`,
@@ -364,37 +397,35 @@ const ve = oe(() => new ge(), se(1)), ye = (e) => `generaltranslation Formatting
364
397
  terminator: `……`,
365
398
  separator: void 0
366
399
  },
367
- [be]: {
400
+ [De]: {
368
401
  terminator: `…`,
369
402
  separator: void 0
370
403
  }
371
404
  },
372
- none: { [be]: {
405
+ none: { [De]: {
373
406
  terminator: void 0,
374
407
  separator: void 0
375
408
  } }
376
409
  };
377
- var Se = class {
378
- constructor(e, t = {}) {
410
+ var ke = class e {
411
+ static resolveLocale(e) {
379
412
  try {
380
- let t = e ? Array.isArray(e) ? e.map((e) => String(e)) : [String(e)] : [`en`], n = Intl.getCanonicalLocales(t);
381
- this.locale = n.length ? n[0] : `en`;
413
+ let t = e ? Array.isArray(e) ? e.map(String) : [String(e)] : [`en`], [n] = Intl.getCanonicalLocales(t);
414
+ return n ?? `en`;
382
415
  } catch {
383
- this.locale = `en`;
416
+ return `en`;
384
417
  }
385
- if (!xe[t.style ?? `ellipsis`]) throw Error(ye(t.style ?? `ellipsis`));
386
- let n, r;
387
- if (t.maxChars !== void 0) {
388
- n = t.style ?? `ellipsis`;
389
- let e = new Intl.Locale(this.locale).language;
390
- r = xe[n][e] || xe[n].DEFAULT_TERMINATOR_KEY;
391
- }
392
- let i = t.terminator ?? r?.terminator, a = i == null ? void 0 : t.separator ?? r?.separator;
393
- this.additionLength = (i?.length ?? 0) + (a?.length ?? 0), t.maxChars !== void 0 && Math.abs(t.maxChars) < this.additionLength && (i = void 0, a = void 0), this.options = {
394
- maxChars: t.maxChars,
395
- style: n,
396
- terminator: i,
397
- separator: a
418
+ }
419
+ constructor(t, n = {}) {
420
+ this.locale = e.resolveLocale(t);
421
+ let r = n.style ?? `ellipsis`;
422
+ if (!Oe[r]) throw Error(Ee(r));
423
+ let i = n.maxChars === void 0 ? void 0 : Oe[r][new Intl.Locale(this.locale).language] || Oe[r].DEFAULT_TERMINATOR_KEY, a = n.terminator ?? i?.terminator, o = a == null ? void 0 : n.separator ?? i?.separator;
424
+ this.additionLength = (a?.length ?? 0) + (o?.length ?? 0), n.maxChars !== void 0 && Math.abs(n.maxChars) < this.additionLength && (a = void 0, o = void 0), this.options = {
425
+ maxChars: n.maxChars,
426
+ style: n.maxChars === void 0 ? void 0 : r,
427
+ terminator: a,
428
+ separator: o
398
429
  };
399
430
  }
400
431
  format(e) {
@@ -416,7 +447,7 @@ var Se = class {
416
447
  return this.options;
417
448
  }
418
449
  };
419
- const Ce = {
450
+ const Ae = {
420
451
  Collator: Intl.Collator,
421
452
  DateTimeFormat: Intl.DateTimeFormat,
422
453
  DisplayNames: Intl.DisplayNames,
@@ -426,83 +457,85 @@ const Ce = {
426
457
  PluralRules: Intl.PluralRules,
427
458
  RelativeTimeFormat: Intl.RelativeTimeFormat,
428
459
  Segmenter: Intl.Segmenter,
429
- CutoffFormat: Se
430
- }, we = new class {
460
+ CutoffFormat: ke
461
+ }, je = new class {
431
462
  constructor() {
432
463
  this.cache = {};
433
464
  }
434
- _generateKey(e, t = {}) {
465
+ generateKey(e, t = {}) {
435
466
  return `${e ? Array.isArray(e) ? e.map((e) => String(e)).join(`,`) : String(e) : `undefined`}:${t ? JSON.stringify(t, Object.keys(t).sort()) : `{}`}`;
436
467
  }
437
468
  get(e, ...t) {
438
- let [n = `en`, r = {}] = t, i = this._generateKey(n, r), a = this.cache[e]?.[i];
439
- return a === void 0 && (a = new Ce[e](...t), this.cache[e] || (this.cache[e] = {}), this.cache[e][i] = a), a;
469
+ let [n = `en`, r = {}] = t, i = this.generateKey(n, r), a = this.cache[e];
470
+ a === void 0 && (a = {}, this.cache[e] = a);
471
+ let o = a[i];
472
+ return o === void 0 && (o = new Ae[e](...t), a[i] = o), o;
440
473
  }
441
474
  }();
442
- function Te(e) {
443
- return we.get(`PluralRules`, e);
444
- }
445
- var P = m({
446
- __addDisposableResource: () => Ze,
447
- __assign: () => R,
448
- __asyncDelegator: () => Ue,
449
- __asyncGenerator: () => He,
450
- __asyncValues: () => We,
451
- __await: () => I,
452
- __awaiter: () => Fe,
453
- __classPrivateFieldGet: () => Je,
454
- __classPrivateFieldIn: () => Xe,
455
- __classPrivateFieldSet: () => Ye,
456
- __createBinding: () => z,
457
- __decorate: () => Oe,
458
- __disposeResources: () => Qe,
459
- __esDecorate: () => Ae,
460
- __exportStar: () => Le,
461
- __extends: () => Ee,
462
- __generator: () => Ie,
463
- __importDefault: () => qe,
464
- __importStar: () => Ke,
465
- __makeTemplateObject: () => Ge,
466
- __metadata: () => Pe,
467
- __param: () => ke,
468
- __propKey: () => Me,
469
- __read: () => Re,
470
- __rest: () => De,
471
- __rewriteRelativeImportExtension: () => $e,
472
- __runInitializers: () => je,
473
- __setFunctionName: () => Ne,
474
- __spread: () => ze,
475
- __spreadArray: () => Ve,
476
- __spreadArrays: () => Be,
477
- __values: () => F,
478
- default: () => nt
475
+ function Me(e) {
476
+ return je.get(`PluralRules`, e);
477
+ }
478
+ var M = m({
479
+ __addDisposableResource: () => it,
480
+ __assign: () => F,
481
+ __asyncDelegator: () => Xe,
482
+ __asyncGenerator: () => Ye,
483
+ __asyncValues: () => Ze,
484
+ __await: () => P,
485
+ __awaiter: () => He,
486
+ __classPrivateFieldGet: () => tt,
487
+ __classPrivateFieldIn: () => rt,
488
+ __classPrivateFieldSet: () => nt,
489
+ __createBinding: () => I,
490
+ __decorate: () => Fe,
491
+ __disposeResources: () => at,
492
+ __esDecorate: () => Le,
493
+ __exportStar: () => We,
494
+ __extends: () => Ne,
495
+ __generator: () => Ue,
496
+ __importDefault: () => et,
497
+ __importStar: () => $e,
498
+ __makeTemplateObject: () => Qe,
499
+ __metadata: () => Ve,
500
+ __param: () => Ie,
501
+ __propKey: () => ze,
502
+ __read: () => Ge,
503
+ __rest: () => Pe,
504
+ __rewriteRelativeImportExtension: () => ot,
505
+ __runInitializers: () => Re,
506
+ __setFunctionName: () => Be,
507
+ __spread: () => Ke,
508
+ __spreadArray: () => Je,
509
+ __spreadArrays: () => qe,
510
+ __values: () => N,
511
+ default: () => ut
479
512
  });
480
- function Ee(e, t) {
513
+ function Ne(e, t) {
481
514
  if (typeof t != `function` && t !== null) throw TypeError(`Class extends value ` + String(t) + ` is not a constructor or null`);
482
- L(e, t);
515
+ st(e, t);
483
516
  function n() {
484
517
  this.constructor = e;
485
518
  }
486
519
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
487
520
  }
488
- function De(e, t) {
521
+ function Pe(e, t) {
489
522
  var n = {};
490
523
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
491
524
  if (e != null && typeof Object.getOwnPropertySymbols == `function`) for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
492
525
  return n;
493
526
  }
494
- function Oe(e, t, n, r) {
527
+ function Fe(e, t, n, r) {
495
528
  var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
496
529
  if (typeof Reflect == `object` && typeof Reflect.decorate == `function`) a = Reflect.decorate(e, t, n, r);
497
530
  else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
498
531
  return i > 3 && a && Object.defineProperty(t, n, a), a;
499
532
  }
500
- function ke(e, t) {
533
+ function Ie(e, t) {
501
534
  return function(n, r) {
502
535
  t(n, r, e);
503
536
  };
504
537
  }
505
- function Ae(e, t, n, r, i, a) {
538
+ function Le(e, t, n, r, i, a) {
506
539
  function o(e) {
507
540
  if (e !== void 0 && typeof e != `function`) throw TypeError(`Function expected`);
508
541
  return e;
@@ -527,23 +560,23 @@ function Ae(e, t, n, r, i, a) {
527
560
  }
528
561
  l && Object.defineProperty(l, r.name, u), f = !0;
529
562
  }
530
- function je(e, t, n) {
563
+ function Re(e, t, n) {
531
564
  for (var r = arguments.length > 2, i = 0; i < t.length; i++) n = r ? t[i].call(e, n) : t[i].call(e);
532
565
  return r ? n : void 0;
533
566
  }
534
- function Me(e) {
567
+ function ze(e) {
535
568
  return typeof e == `symbol` ? e : `${e}`;
536
569
  }
537
- function Ne(e, t, n) {
570
+ function Be(e, t, n) {
538
571
  return typeof t == `symbol` && (t = t.description ? `[${t.description}]` : ``), Object.defineProperty(e, `name`, {
539
572
  configurable: !0,
540
573
  value: n ? `${n} ${t}` : t
541
574
  });
542
575
  }
543
- function Pe(e, t) {
576
+ function Ve(e, t) {
544
577
  if (typeof Reflect == `object` && typeof Reflect.metadata == `function`) return Reflect.metadata(e, t);
545
578
  }
546
- function Fe(e, t, n, r) {
579
+ function He(e, t, n, r) {
547
580
  function i(e) {
548
581
  return e instanceof n ? e : new n(function(t) {
549
582
  t(e);
@@ -570,7 +603,7 @@ function Fe(e, t, n, r) {
570
603
  c((r = r.apply(e, t || [])).next());
571
604
  });
572
605
  }
573
- function Ie(e, t) {
606
+ function Ue(e, t) {
574
607
  var n = {
575
608
  label: 0,
576
609
  sent: function() {
@@ -640,10 +673,10 @@ function Ie(e, t) {
640
673
  };
641
674
  }
642
675
  }
643
- function Le(e, t) {
644
- for (var n in e) n !== `default` && !Object.prototype.hasOwnProperty.call(t, n) && z(t, e, n);
676
+ function We(e, t) {
677
+ for (var n in e) n !== `default` && !Object.prototype.hasOwnProperty.call(t, n) && I(t, e, n);
645
678
  }
646
- function F(e) {
679
+ function N(e) {
647
680
  var t = typeof Symbol == `function` && Symbol.iterator, n = t && e[t], r = 0;
648
681
  if (n) return n.call(e);
649
682
  if (e && typeof e.length == `number`) return { next: function() {
@@ -654,7 +687,7 @@ function F(e) {
654
687
  } };
655
688
  throw TypeError(t ? `Object is not iterable.` : `Symbol.iterator is not defined.`);
656
689
  }
657
- function Re(e, t) {
690
+ function Ge(e, t) {
658
691
  var n = typeof Symbol == `function` && e[Symbol.iterator];
659
692
  if (!n) return e;
660
693
  var r = n.call(e), i, a = [], o;
@@ -671,23 +704,23 @@ function Re(e, t) {
671
704
  }
672
705
  return a;
673
706
  }
674
- function ze() {
675
- for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(Re(arguments[t]));
707
+ function Ke() {
708
+ for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(Ge(arguments[t]));
676
709
  return e;
677
710
  }
678
- function Be() {
711
+ function qe() {
679
712
  for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
680
713
  for (var r = Array(e), i = 0, t = 0; t < n; t++) for (var a = arguments[t], o = 0, s = a.length; o < s; o++, i++) r[i] = a[o];
681
714
  return r;
682
715
  }
683
- function Ve(e, t, n) {
716
+ function Je(e, t, n) {
684
717
  if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
685
718
  return e.concat(a || Array.prototype.slice.call(t));
686
719
  }
687
- function I(e) {
688
- return this instanceof I ? (this.v = e, this) : new I(e);
720
+ function P(e) {
721
+ return this instanceof P ? (this.v = e, this) : new P(e);
689
722
  }
690
- function He(e, t, n) {
723
+ function Ye(e, t, n) {
691
724
  if (!Symbol.asyncIterator) throw TypeError(`Symbol.asyncIterator is not defined.`);
692
725
  var r = n.apply(e, t || []), i, a = [];
693
726
  return i = Object.create((typeof AsyncIterator == `function` ? AsyncIterator : Object).prototype), s(`next`), s(`throw`), s(`return`, o), i[Symbol.asyncIterator] = function() {
@@ -718,7 +751,7 @@ function He(e, t, n) {
718
751
  }
719
752
  }
720
753
  function l(e) {
721
- e.value instanceof I ? Promise.resolve(e.value.v).then(u, d) : f(a[0][2], e);
754
+ e.value instanceof P ? Promise.resolve(e.value.v).then(u, d) : f(a[0][2], e);
722
755
  }
723
756
  function u(e) {
724
757
  c(`next`, e);
@@ -730,7 +763,7 @@ function He(e, t, n) {
730
763
  e(t), a.shift(), a.length && c(a[0][0], a[0][1]);
731
764
  }
732
765
  }
733
- function Ue(e) {
766
+ function Xe(e) {
734
767
  var t, n;
735
768
  return t = {}, r(`next`), r(`throw`, function(e) {
736
769
  throw e;
@@ -740,16 +773,16 @@ function Ue(e) {
740
773
  function r(r, i) {
741
774
  t[r] = e[r] ? function(t) {
742
775
  return (n = !n) ? {
743
- value: I(e[r](t)),
776
+ value: P(e[r](t)),
744
777
  done: !1
745
778
  } : i ? i(t) : t;
746
779
  } : i;
747
780
  }
748
781
  }
749
- function We(e) {
782
+ function Ze(e) {
750
783
  if (!Symbol.asyncIterator) throw TypeError(`Symbol.asyncIterator is not defined.`);
751
784
  var t = e[Symbol.asyncIterator], n;
752
- return t ? t.call(e) : (e = typeof F == `function` ? F(e) : e[Symbol.iterator](), n = {}, r(`next`), r(`throw`), r(`return`), n[Symbol.asyncIterator] = function() {
785
+ return t ? t.call(e) : (e = typeof N == `function` ? N(e) : e[Symbol.iterator](), n = {}, r(`next`), r(`throw`), r(`return`), n[Symbol.asyncIterator] = function() {
753
786
  return this;
754
787
  }, n);
755
788
  function r(t) {
@@ -768,34 +801,34 @@ function We(e) {
768
801
  }, t);
769
802
  }
770
803
  }
771
- function Ge(e, t) {
804
+ function Qe(e, t) {
772
805
  return Object.defineProperty ? Object.defineProperty(e, `raw`, { value: t }) : e.raw = t, e;
773
806
  }
774
- function Ke(e) {
807
+ function $e(e) {
775
808
  if (e && e.__esModule) return e;
776
809
  var t = {};
777
- if (e != null) for (var n = B(e), r = 0; r < n.length; r++) n[r] !== `default` && z(t, e, n[r]);
778
- return et(t, e), t;
810
+ if (e != null) for (var n = L(e), r = 0; r < n.length; r++) n[r] !== `default` && I(t, e, n[r]);
811
+ return ct(t, e), t;
779
812
  }
780
- function qe(e) {
813
+ function et(e) {
781
814
  return e && e.__esModule ? e : { default: e };
782
815
  }
783
- function Je(e, t, n, r) {
816
+ function tt(e, t, n, r) {
784
817
  if (n === `a` && !r) throw TypeError(`Private accessor was defined without a getter`);
785
818
  if (typeof t == `function` ? e !== t || !r : !t.has(e)) throw TypeError(`Cannot read private member from an object whose class did not declare it`);
786
819
  return n === `m` ? r : n === `a` ? r.call(e) : r ? r.value : t.get(e);
787
820
  }
788
- function Ye(e, t, n, r, i) {
821
+ function nt(e, t, n, r, i) {
789
822
  if (r === `m`) throw TypeError(`Private method is not writable`);
790
823
  if (r === `a` && !i) throw TypeError(`Private accessor was defined without a setter`);
791
824
  if (typeof t == `function` ? e !== t || !i : !t.has(e)) throw TypeError(`Cannot write private member to an object whose class did not declare it`);
792
825
  return r === `a` ? i.call(e, n) : i ? i.value = n : t.set(e, n), n;
793
826
  }
794
- function Xe(e, t) {
827
+ function rt(e, t) {
795
828
  if (t === null || typeof t != `object` && typeof t != `function`) throw TypeError(`Cannot use 'in' operator on non-object`);
796
829
  return typeof e == `function` ? t === e : e.has(t);
797
830
  }
798
- function Ze(e, t, n) {
831
+ function it(e, t, n) {
799
832
  if (t != null) {
800
833
  if (typeof t != `object` && typeof t != `function`) throw TypeError(`Object expected.`);
801
834
  var r, i;
@@ -822,9 +855,9 @@ function Ze(e, t, n) {
822
855
  } else n && e.stack.push({ async: !0 });
823
856
  return t;
824
857
  }
825
- function Qe(e) {
858
+ function at(e) {
826
859
  function t(t) {
827
- e.error = e.hasError ? new tt(t, e.error, `An error was suppressed during disposal.`) : t, e.hasError = !0;
860
+ e.error = e.hasError ? new lt(t, e.error, `An error was suppressed during disposal.`) : t, e.hasError = !0;
828
861
  }
829
862
  var n, r = 0;
830
863
  function i() {
@@ -844,24 +877,24 @@ function Qe(e) {
844
877
  }
845
878
  return i();
846
879
  }
847
- function $e(e, t) {
880
+ function ot(e, t) {
848
881
  return typeof e == `string` && /^\.\.?\//.test(e) ? e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(e, n, r, i, a) {
849
882
  return n ? t ? `.jsx` : `.js` : r && (!i || !a) ? e : r + i + `.` + a.toLowerCase() + `js`;
850
883
  }) : e;
851
884
  }
852
- var L, R, z, et, B, tt, nt, V = f((() => {
853
- L = function(e, t) {
854
- return L = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
885
+ var st, F, I, ct, L, lt, ut, R = f((() => {
886
+ st = function(e, t) {
887
+ return st = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
855
888
  e.__proto__ = t;
856
889
  } || function(e, t) {
857
890
  for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
858
- }, L(e, t);
859
- }, R = function() {
860
- return R = Object.assign || function(e) {
891
+ }, st(e, t);
892
+ }, F = function() {
893
+ return F = Object.assign || function(e) {
861
894
  for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
862
895
  return e;
863
- }, R.apply(this, arguments);
864
- }, z = Object.create ? (function(e, t, n, r) {
896
+ }, F.apply(this, arguments);
897
+ }, I = Object.create ? (function(e, t, n, r) {
865
898
  r === void 0 && (r = n);
866
899
  var i = Object.getOwnPropertyDescriptor(t, n);
867
900
  (!i || (`get` in i ? !t.__esModule : i.writable || i.configurable)) && (i = {
@@ -872,63 +905,63 @@ var L, R, z, et, B, tt, nt, V = f((() => {
872
905
  }), Object.defineProperty(e, r, i);
873
906
  }) : (function(e, t, n, r) {
874
907
  r === void 0 && (r = n), e[r] = t[n];
875
- }), et = Object.create ? (function(e, t) {
908
+ }), ct = Object.create ? (function(e, t) {
876
909
  Object.defineProperty(e, `default`, {
877
910
  enumerable: !0,
878
911
  value: t
879
912
  });
880
913
  }) : function(e, t) {
881
914
  e.default = t;
882
- }, B = function(e) {
883
- return B = Object.getOwnPropertyNames || function(e) {
915
+ }, L = function(e) {
916
+ return L = Object.getOwnPropertyNames || function(e) {
884
917
  var t = [];
885
918
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[t.length] = n);
886
919
  return t;
887
- }, B(e);
888
- }, tt = typeof SuppressedError == `function` ? SuppressedError : function(e, t, n) {
920
+ }, L(e);
921
+ }, lt = typeof SuppressedError == `function` ? SuppressedError : function(e, t, n) {
889
922
  var r = Error(n);
890
923
  return r.name = `SuppressedError`, r.error = e, r.suppressed = t, r;
891
- }, nt = {
892
- __extends: Ee,
893
- __assign: R,
894
- __rest: De,
895
- __decorate: Oe,
896
- __param: ke,
897
- __esDecorate: Ae,
898
- __runInitializers: je,
899
- __propKey: Me,
900
- __setFunctionName: Ne,
901
- __metadata: Pe,
902
- __awaiter: Fe,
903
- __generator: Ie,
904
- __createBinding: z,
905
- __exportStar: Le,
906
- __values: F,
907
- __read: Re,
908
- __spread: ze,
909
- __spreadArrays: Be,
910
- __spreadArray: Ve,
911
- __await: I,
912
- __asyncGenerator: He,
913
- __asyncDelegator: Ue,
914
- __asyncValues: We,
915
- __makeTemplateObject: Ge,
916
- __importStar: Ke,
917
- __importDefault: qe,
918
- __classPrivateFieldGet: Je,
919
- __classPrivateFieldSet: Ye,
920
- __classPrivateFieldIn: Xe,
921
- __addDisposableResource: Ze,
922
- __disposeResources: Qe,
923
- __rewriteRelativeImportExtension: $e
924
+ }, ut = {
925
+ __extends: Ne,
926
+ __assign: F,
927
+ __rest: Pe,
928
+ __decorate: Fe,
929
+ __param: Ie,
930
+ __esDecorate: Le,
931
+ __runInitializers: Re,
932
+ __propKey: ze,
933
+ __setFunctionName: Be,
934
+ __metadata: Ve,
935
+ __awaiter: He,
936
+ __generator: Ue,
937
+ __createBinding: I,
938
+ __exportStar: We,
939
+ __values: N,
940
+ __read: Ge,
941
+ __spread: Ke,
942
+ __spreadArrays: qe,
943
+ __spreadArray: Je,
944
+ __await: P,
945
+ __asyncGenerator: Ye,
946
+ __asyncDelegator: Xe,
947
+ __asyncValues: Ze,
948
+ __makeTemplateObject: Qe,
949
+ __importStar: $e,
950
+ __importDefault: et,
951
+ __classPrivateFieldGet: tt,
952
+ __classPrivateFieldSet: nt,
953
+ __classPrivateFieldIn: rt,
954
+ __addDisposableResource: it,
955
+ __disposeResources: at,
956
+ __rewriteRelativeImportExtension: ot
924
957
  };
925
- })), rt = p(((e) => {
958
+ })), dt = p(((e) => {
926
959
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.ErrorKind = void 0;
927
960
  var t;
928
961
  (function(e) {
929
962
  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`;
930
963
  })(t || (e.ErrorKind = t = {}));
931
- })), H = p(((e) => {
964
+ })), z = p(((e) => {
932
965
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.SKELETON_TYPE = e.TYPE = void 0, e.isLiteralElement = r, e.isArgumentElement = i, e.isNumberElement = a, e.isDateElement = o, e.isTimeElement = s, e.isSelectElement = c, e.isPluralElement = l, e.isPoundElement = u, e.isTagElement = d, e.isNumberSkeleton = f, e.isDateTimeSkeleton = p, e.createLiteralElement = m, e.createNumberElement = h;
933
966
  var t;
934
967
  (function(e) {
@@ -984,9 +1017,9 @@ var L, R, z, et, B, tt, nt, V = f((() => {
984
1017
  style: n
985
1018
  };
986
1019
  }
987
- })), it = p(((e) => {
1020
+ })), ft = p(((e) => {
988
1021
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.WHITE_SPACE_REGEX = e.SPACE_SEPARATOR_REGEX = void 0, e.SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, e.WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/;
989
- })), at = p(((e) => {
1022
+ })), pt = p(((e) => {
990
1023
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.parseDateTimeSkeleton = n;
991
1024
  var t = /(?:[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;
992
1025
  function n(e) {
@@ -1086,11 +1119,11 @@ var L, R, z, et, B, tt, nt, V = f((() => {
1086
1119
  return ``;
1087
1120
  }), n;
1088
1121
  }
1089
- })), ot = p(((e) => {
1122
+ })), mt = p(((e) => {
1090
1123
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.WHITE_SPACE_REGEX = void 0, e.WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1091
- })), st = p(((e) => {
1124
+ })), ht = p(((e) => {
1092
1125
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.parseNumberSkeletonFromString = r, e.parseNumberSkeleton = p;
1093
- var t = (V(), g(P)), n = ot();
1126
+ var t = (R(), g(M)), n = mt();
1094
1127
  function r(e) {
1095
1128
  if (e.length === 0) throw Error(`Number skeleton cannot be empty`);
1096
1129
  for (var t = e.split(n.WHITE_SPACE_REGEX).filter(function(e) {
@@ -1268,11 +1301,11 @@ var L, R, z, et, B, tt, nt, V = f((() => {
1268
1301
  }
1269
1302
  return n;
1270
1303
  }
1271
- })), ct = p(((e) => {
1304
+ })), gt = p(((e) => {
1272
1305
  Object.defineProperty(e, `__esModule`, { value: !0 });
1273
- var t = (V(), g(P));
1274
- t.__exportStar(at(), e), t.__exportStar(st(), e);
1275
- })), lt = p(((e) => {
1306
+ var t = (R(), g(M));
1307
+ t.__exportStar(pt(), e), t.__exportStar(ht(), e);
1308
+ })), _t = p(((e) => {
1276
1309
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.timeData = void 0, e.timeData = {
1277
1310
  "001": [`H`, `h`],
1278
1311
  419: [
@@ -2429,9 +2462,9 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2429
2462
  `h`
2430
2463
  ]
2431
2464
  };
2432
- })), ut = p(((e) => {
2465
+ })), vt = p(((e) => {
2433
2466
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.getBestPattern = n;
2434
- var t = lt();
2467
+ var t = _t();
2435
2468
  function n(e, t) {
2436
2469
  for (var n = ``, i = 0; i < e.length; i++) {
2437
2470
  var a = e.charAt(i);
@@ -2456,9 +2489,9 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2456
2489
  var r = e.language, i;
2457
2490
  return r !== `root` && (i = e.maximize().region), (t.timeData[i || ``] || t.timeData[r || ``] || t.timeData[`${r}-001`] || t.timeData[`001`])[0];
2458
2491
  }
2459
- })), dt = p(((e) => {
2492
+ })), yt = p(((e) => {
2460
2493
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.Parser = void 0;
2461
- var t = (V(), g(P)), n = rt(), r = H(), i = it(), a = ct(), o = ut(), s = RegExp(`^${i.SPACE_SEPARATOR_REGEX.source}*`), c = RegExp(`${i.SPACE_SEPARATOR_REGEX.source}*\$`);
2494
+ var t = (R(), g(M)), n = dt(), r = z(), i = ft(), a = gt(), o = vt(), s = RegExp(`^${i.SPACE_SEPARATOR_REGEX.source}*`), c = RegExp(`${i.SPACE_SEPARATOR_REGEX.source}*\$`);
2462
2495
  function l(e, t) {
2463
2496
  return {
2464
2497
  start: e,
@@ -2469,21 +2502,21 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2469
2502
  return typeof e == `number` && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2470
2503
  }, v = !0;
2471
2504
  try {
2472
- v = C(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`).exec(`a`)?.[0] === `a`;
2505
+ v = S(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`).exec(`a`)?.[0] === `a`;
2473
2506
  } catch {
2474
2507
  v = !1;
2475
2508
  }
2476
- var y = u ? function(e, t, n) {
2509
+ var ee = u ? function(e, t, n) {
2477
2510
  return e.startsWith(t, n);
2478
2511
  } : function(e, t, n) {
2479
2512
  return e.slice(n, n + t.length) === t;
2480
- }, b = d ? String.fromCodePoint : function() {
2513
+ }, y = d ? String.fromCodePoint : function() {
2481
2514
  for (var e = [...arguments], t = ``, n = e.length, r = 0, i; n > r;) {
2482
2515
  if (i = e[r++], i > 1114111) throw RangeError(i + ` is not a valid code point`);
2483
2516
  t += i < 65536 ? String.fromCharCode(i) : String.fromCharCode(((i -= 65536) >> 10) + 55296, i % 1024 + 56320);
2484
2517
  }
2485
2518
  return t;
2486
- }, ee = f ? Object.fromEntries : function(e) {
2519
+ }, b = f ? Object.fromEntries : function(e) {
2487
2520
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
2488
2521
  var i = r[n], a = i[0];
2489
2522
  t[a] = i[1];
@@ -2497,31 +2530,31 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2497
2530
  var r = e.charCodeAt(t), i;
2498
2531
  return r < 55296 || r > 56319 || t + 1 === n || (i = e.charCodeAt(t + 1)) < 56320 || i > 57343 ? r : (r - 55296 << 10) + (i - 56320) + 65536;
2499
2532
  }
2500
- }, S = m ? function(e) {
2533
+ }, te = m ? function(e) {
2501
2534
  return e.trimStart();
2502
2535
  } : function(e) {
2503
2536
  return e.replace(s, ``);
2504
- }, te = h ? function(e) {
2537
+ }, ne = h ? function(e) {
2505
2538
  return e.trimEnd();
2506
2539
  } : function(e) {
2507
2540
  return e.replace(c, ``);
2508
2541
  };
2509
- function C(e, t) {
2542
+ function S(e, t) {
2510
2543
  return new RegExp(e, t);
2511
2544
  }
2512
- var w;
2545
+ var C;
2513
2546
  if (v) {
2514
- var T = C(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
2515
- w = function(e, t) {
2516
- return T.lastIndex = t, T.exec(e)[1] ?? ``;
2547
+ var w = S(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
2548
+ C = function(e, t) {
2549
+ return w.lastIndex = t, w.exec(e)[1] ?? ``;
2517
2550
  };
2518
- } else w = function(e, t) {
2551
+ } else C = function(e, t) {
2519
2552
  for (var n = [];;) {
2520
2553
  var r = x(e, t);
2521
- if (r === void 0 || k(r) || A(r)) break;
2554
+ if (r === void 0 || ie(r) || D(r)) break;
2522
2555
  n.push(r), t += r >= 65536 ? 2 : 1;
2523
2556
  }
2524
- return b.apply(void 0, n);
2557
+ return y.apply(void 0, n);
2525
2558
  };
2526
2559
  e.Parser = function() {
2527
2560
  function e(e, t) {
@@ -2551,7 +2584,7 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2551
2584
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2552
2585
  if (i) break;
2553
2586
  return this.error(n.ErrorKind.UNMATCHED_CLOSING_TAG, l(this.clonePosition(), this.clonePosition()));
2554
- } else if (o === 60 && !this.ignoreTag && E(this.peek() || 0)) {
2587
+ } else if (o === 60 && !this.ignoreTag && T(this.peek() || 0)) {
2555
2588
  var s = this.parseTag(e, t);
2556
2589
  if (s.err) return s;
2557
2590
  a.push(s.val);
@@ -2582,7 +2615,7 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2582
2615
  if (o.err) return o;
2583
2616
  var s = o.val, c = this.clonePosition();
2584
2617
  if (this.bumpIf(`</`)) {
2585
- if (this.isEOF() || !E(this.char())) return this.error(n.ErrorKind.INVALID_TAG, l(c, this.clonePosition()));
2618
+ if (this.isEOF() || !T(this.char())) return this.error(n.ErrorKind.INVALID_TAG, l(c, this.clonePosition()));
2586
2619
  var u = this.clonePosition();
2587
2620
  return a === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(`>`) ? {
2588
2621
  val: {
@@ -2597,7 +2630,7 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2597
2630
  } else return this.error(n.ErrorKind.INVALID_TAG, l(i, this.clonePosition()));
2598
2631
  }, e.prototype.parseTagName = function() {
2599
2632
  var e = this.offset();
2600
- for (this.bump(); !this.isEOF() && O(this.char());) this.bump();
2633
+ for (this.bump(); !this.isEOF() && E(this.char());) this.bump();
2601
2634
  return this.message.slice(e, this.offset());
2602
2635
  }, e.prototype.parseLiteral = function(e, t) {
2603
2636
  for (var n = this.clonePosition(), i = ``;;) {
@@ -2628,7 +2661,7 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2628
2661
  err: null
2629
2662
  };
2630
2663
  }, e.prototype.tryParseLeftAngleBracket = function() {
2631
- return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !D(this.peek() || 0)) ? (this.bump(), `<`) : null;
2664
+ return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !re(this.peek() || 0)) ? (this.bump(), `<`) : null;
2632
2665
  }, e.prototype.tryParseQuote = function(e) {
2633
2666
  if (this.isEOF() || this.char() !== 39) return null;
2634
2667
  switch (this.peek()) {
@@ -2654,11 +2687,11 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2654
2687
  else t.push(n);
2655
2688
  this.bump();
2656
2689
  }
2657
- return b.apply(void 0, t);
2690
+ return y.apply(void 0, t);
2658
2691
  }, e.prototype.tryParseUnquoted = function(e, t) {
2659
2692
  if (this.isEOF()) return null;
2660
2693
  var n = this.char();
2661
- return n === 60 || n === 123 || n === 35 && (t === `plural` || t === `selectordinal`) || n === 125 && e > 0 ? null : (this.bump(), b(n));
2694
+ return n === 60 || n === 123 || n === 35 && (t === `plural` || t === `selectordinal`) || n === 125 && e > 0 ? null : (this.bump(), y(n));
2662
2695
  }, e.prototype.parseArgument = function(e, t) {
2663
2696
  var i = this.clonePosition();
2664
2697
  if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(n.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, l(i, this.clonePosition()));
@@ -2679,7 +2712,7 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2679
2712
  default: return this.error(n.ErrorKind.MALFORMED_ARGUMENT, l(i, this.clonePosition()));
2680
2713
  }
2681
2714
  }, e.prototype.parseIdentifierIfPossible = function() {
2682
- var e = this.clonePosition(), t = this.offset(), n = w(this.message, t), r = t + n.length;
2715
+ var e = this.clonePosition(), t = this.offset(), n = C(this.message, t), r = t + n.length;
2683
2716
  return this.bumpTo(r), {
2684
2717
  value: n,
2685
2718
  location: l(e, this.clonePosition())
@@ -2697,7 +2730,7 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2697
2730
  this.bumpSpace();
2698
2731
  var m = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
2699
2732
  if (h.err) return h;
2700
- var g = te(h.val);
2733
+ var g = ne(h.val);
2701
2734
  if (g.length === 0) return this.error(n.ErrorKind.EXPECT_ARGUMENT_STYLE, l(this.clonePosition(), this.clonePosition()));
2702
2735
  p = {
2703
2736
  style: g,
@@ -2707,10 +2740,10 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2707
2740
  var _ = this.tryParseArgumentClose(c);
2708
2741
  if (_.err) return _;
2709
2742
  var v = l(c, this.clonePosition());
2710
- if (p && y(p?.style, `::`, 0)) {
2711
- var b = S(p.style.slice(2));
2743
+ if (p && ee(p?.style, `::`, 0)) {
2744
+ var y = te(p.style.slice(2));
2712
2745
  if (d === `number`) {
2713
- var h = this.parseNumberSkeletonFromString(b, p.styleLocation);
2746
+ var h = this.parseNumberSkeletonFromString(y, p.styleLocation);
2714
2747
  return h.err ? h : {
2715
2748
  val: {
2716
2749
  type: r.TYPE.number,
@@ -2721,9 +2754,9 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2721
2754
  err: null
2722
2755
  };
2723
2756
  } else {
2724
- if (b.length === 0) return this.error(n.ErrorKind.EXPECT_DATE_TIME_SKELETON, v);
2725
- var x = b;
2726
- this.locale && (x = (0, o.getBestPattern)(b, this.locale));
2757
+ if (y.length === 0) return this.error(n.ErrorKind.EXPECT_DATE_TIME_SKELETON, v);
2758
+ var x = y;
2759
+ this.locale && (x = (0, o.getBestPattern)(y, this.locale));
2727
2760
  var g = {
2728
2761
  type: r.SKELETON_TYPE.dateTime,
2729
2762
  pattern: x,
@@ -2753,38 +2786,38 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2753
2786
  case `plural`:
2754
2787
  case `selectordinal`:
2755
2788
  case `select`:
2756
- var C = this.clonePosition();
2757
- if (this.bumpSpace(), !this.bumpIf(`,`)) return this.error(n.ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS, l(C, t.__assign({}, C)));
2789
+ var S = this.clonePosition();
2790
+ if (this.bumpSpace(), !this.bumpIf(`,`)) return this.error(n.ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS, l(S, t.__assign({}, S)));
2758
2791
  this.bumpSpace();
2759
- var w = this.parseIdentifierIfPossible(), T = 0;
2760
- if (d !== `select` && w.value === `offset`) {
2792
+ var C = this.parseIdentifierIfPossible(), w = 0;
2793
+ if (d !== `select` && C.value === `offset`) {
2761
2794
  if (!this.bumpIf(`:`)) return this.error(n.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, l(this.clonePosition(), this.clonePosition()));
2762
2795
  this.bumpSpace();
2763
2796
  var h = this.tryParseDecimalInteger(n.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, n.ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2764
2797
  if (h.err) return h;
2765
- this.bumpSpace(), w = this.parseIdentifierIfPossible(), T = h.val;
2798
+ this.bumpSpace(), C = this.parseIdentifierIfPossible(), w = h.val;
2766
2799
  }
2767
- var E = this.tryParsePluralOrSelectOptions(e, d, i, w);
2768
- if (E.err) return E;
2800
+ var T = this.tryParsePluralOrSelectOptions(e, d, i, C);
2801
+ if (T.err) return T;
2769
2802
  var _ = this.tryParseArgumentClose(c);
2770
2803
  if (_.err) return _;
2771
- var D = l(c, this.clonePosition());
2804
+ var re = l(c, this.clonePosition());
2772
2805
  return d === `select` ? {
2773
2806
  val: {
2774
2807
  type: r.TYPE.select,
2775
2808
  value: s,
2776
- options: ee(E.val),
2777
- location: D
2809
+ options: b(T.val),
2810
+ location: re
2778
2811
  },
2779
2812
  err: null
2780
2813
  } : {
2781
2814
  val: {
2782
2815
  type: r.TYPE.plural,
2783
2816
  value: s,
2784
- options: ee(E.val),
2785
- offset: T,
2817
+ options: b(T.val),
2818
+ offset: w,
2786
2819
  pluralType: d === `plural` ? `cardinal` : `ordinal`,
2787
- location: D
2820
+ location: re
2788
2821
  },
2789
2822
  err: null
2790
2823
  };
@@ -2908,7 +2941,7 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2908
2941
  e === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += e < 65536 ? 1 : 2);
2909
2942
  }
2910
2943
  }, e.prototype.bumpIf = function(e) {
2911
- if (y(this.message, e, this.offset())) {
2944
+ if (ee(this.message, e, this.offset())) {
2912
2945
  for (var t = 0; t < e.length; t++) this.bump();
2913
2946
  return !0;
2914
2947
  }
@@ -2925,31 +2958,31 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2925
2958
  if (this.bump(), this.isEOF()) break;
2926
2959
  }
2927
2960
  }, e.prototype.bumpSpace = function() {
2928
- for (; !this.isEOF() && k(this.char());) this.bump();
2961
+ for (; !this.isEOF() && ie(this.char());) this.bump();
2929
2962
  }, e.prototype.peek = function() {
2930
2963
  if (this.isEOF()) return null;
2931
2964
  var e = this.char(), t = this.offset();
2932
2965
  return this.message.charCodeAt(t + (e >= 65536 ? 2 : 1)) ?? null;
2933
2966
  }, e;
2934
2967
  }();
2935
- function E(e) {
2968
+ function T(e) {
2936
2969
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
2937
2970
  }
2938
- function D(e) {
2939
- return E(e) || e === 47;
2971
+ function re(e) {
2972
+ return T(e) || e === 47;
2940
2973
  }
2941
- function O(e) {
2974
+ function E(e) {
2942
2975
  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;
2943
2976
  }
2944
- function k(e) {
2977
+ function ie(e) {
2945
2978
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
2946
2979
  }
2947
- function A(e) {
2980
+ function D(e) {
2948
2981
  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;
2949
2982
  }
2950
- })), ft = p(((e) => {
2983
+ })), bt = p(((e) => {
2951
2984
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.hoistSelectors = s, e.isStructurallySame = l;
2952
- var t = (V(), g(P)), n = H();
2985
+ var t = (R(), g(M)), n = z();
2953
2986
  function r(e) {
2954
2987
  return Array.isArray(e) ? t.__spreadArray([], e.map(r), !0) : typeof e == `object` && e ? Object.keys(e).reduce(function(t, n) {
2955
2988
  return t[n] = r(e[n]), t;
@@ -3006,9 +3039,9 @@ var L, R, z, et, B, tt, nt, V = f((() => {
3006
3039
  error: Error(`Different number of variables: [${Array.from(r.keys()).join(`, `)}] vs [${Array.from(i.keys()).join(`, `)}]`)
3007
3040
  };
3008
3041
  }
3009
- })), pt = p(((e) => {
3042
+ })), xt = p(((e) => {
3010
3043
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.isStructurallySame = e._Parser = void 0, e.parse = o;
3011
- var t = (V(), g(P)), n = rt(), r = dt(), i = H();
3044
+ var t = (R(), g(M)), n = dt(), r = yt(), i = z();
3012
3045
  function a(e) {
3013
3046
  e.forEach(function(e) {
3014
3047
  if (delete e.location, (0, i.isSelectElement)(e) || (0, i.isPluralElement)(e)) for (var t in e.options) delete e.options[t].location, a(e.options[t].value);
@@ -3027,17 +3060,17 @@ var L, R, z, et, B, tt, nt, V = f((() => {
3027
3060
  }
3028
3061
  return i?.captureLocation || a(o.val), o.val;
3029
3062
  }
3030
- t.__exportStar(H(), e), e._Parser = r.Parser;
3031
- var s = ft();
3063
+ t.__exportStar(z(), e), e._Parser = r.Parser;
3064
+ var s = bt();
3032
3065
  Object.defineProperty(e, `isStructurallySame`, {
3033
3066
  enumerable: !0,
3034
3067
  get: function() {
3035
3068
  return s.isStructurallySame;
3036
3069
  }
3037
3070
  });
3038
- })), mt = p(((e) => {
3071
+ })), St = p(((e) => {
3039
3072
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.printAST = r;
3040
- var t = (V(), g(P)), n = H();
3073
+ var t = (R(), g(M)), n = z();
3041
3074
  function r(e) {
3042
3075
  return i(e, !1);
3043
3076
  }
@@ -3099,8 +3132,8 @@ var L, R, z, et, B, tt, nt, V = f((() => {
3099
3132
  }), !0).filter(Boolean).join(` `)
3100
3133
  ].join(`,`)}}`;
3101
3134
  }
3102
- })), U = pt(), W = H(), ht = mt();
3103
- const gt = [
3135
+ })), B = xt(), V = z(), Ct = St();
3136
+ const wt = [
3104
3137
  `singular`,
3105
3138
  `plural`,
3106
3139
  `dual`,
@@ -3111,11 +3144,11 @@ const gt = [
3111
3144
  `many`,
3112
3145
  `other`
3113
3146
  ];
3114
- function _t(e) {
3115
- return gt.includes(e);
3147
+ function Tt(e) {
3148
+ return wt.includes(e);
3116
3149
  }
3117
- function vt(e, t = gt, n = [`en`]) {
3118
- let r = Te(n).select(e), i = Math.abs(e);
3150
+ function Et(e, t = wt, n = [`en`]) {
3151
+ let r = Me(n).select(e), i = Math.abs(e);
3119
3152
  if (i === 0 && t.includes(`zero`)) return `zero`;
3120
3153
  if (i === 1) {
3121
3154
  if (t.includes(`singular`)) return `singular`;
@@ -3128,35 +3161,35 @@ function vt(e, t = gt, n = [`en`]) {
3128
3161
  }
3129
3162
  return r === `two` && t.includes(`dual`) ? `dual` : t.includes(r) ? r : r === `two` && t.includes(`dual`) ? `dual` : r === `two` && t.includes(`plural`) ? `plural` : r === `two` && t.includes(`other`) ? `other` : r === `few` && t.includes(`plural`) ? `plural` : r === `few` && t.includes(`other`) ? `other` : r === `many` && t.includes(`plural`) ? `plural` : r === `many` && t.includes(`other`) ? `other` : r === `other` && t.includes(`plural`) ? `plural` : ``;
3130
3163
  }
3131
- const yt = {
3164
+ const Dt = {
3132
3165
  variable: `v`,
3133
3166
  number: `n`,
3134
3167
  datetime: `d`,
3135
3168
  currency: `c`,
3136
3169
  "relative-time": `rt`
3137
3170
  };
3138
- function bt(e) {
3139
- return yt[e];
3171
+ function Ot(e) {
3172
+ return Dt[e];
3140
3173
  }
3141
- function G({ icuString: e, shouldVisit: t, visitor: n, options: { recurseIntoVisited: r = !0, ...i } }) {
3142
- let a = (0, U.parse)(e, i);
3174
+ function H({ icuString: e, shouldVisit: t, visitor: n, options: { recurseIntoVisited: r = !0, ...i } }) {
3175
+ let a = (0, B.parse)(e, i);
3143
3176
  return o(a), a;
3144
3177
  function o(e) {
3145
3178
  e.map(s);
3146
3179
  }
3147
3180
  function s(e) {
3148
3181
  let i = !1;
3149
- t(e) && (n(e), i = !0), (!i || r) && (e.type === U.TYPE.select || e.type === U.TYPE.plural ? Object.values(e.options).map((e) => e.value).map(o) : e.type === U.TYPE.tag && o(e.children));
3182
+ t(e) && (n(e), i = !0), (!i || r) && (e.type === B.TYPE.select || e.type === B.TYPE.plural ? Object.values(e.options).map((e) => e.value).map(o) : e.type === B.TYPE.tag && o(e.children));
3150
3183
  }
3151
3184
  }
3152
- const K = `_gt_`, xt = RegExp(`^${K}\\d+$`), St = RegExp(`^${K}$`);
3153
- function Ct(e) {
3154
- return e.type === W.TYPE.select && xt.test(e.value) && !!e.options.other && (e.options.other.value.length === 0 || e.options.other.value.length > 0 && e.options.other.value[0]?.type === W.TYPE.literal);
3185
+ const U = `_gt_`, kt = RegExp(`^${U}\\d+$`), At = RegExp(`^${U}$`);
3186
+ function jt(e) {
3187
+ return e.type === V.TYPE.select && kt.test(e.value) && !!e.options.other && (e.options.other.value.length === 0 || e.options.other.value.length > 0 && e.options.other.value[0]?.type === V.TYPE.literal);
3155
3188
  }
3156
- function wt(e) {
3157
- return e.type === W.TYPE.select && St.test(e.value) && !!e.options.other && (e.options.other.value.length === 0 || e.options.other.value.length > 0 && e.options.other.value[0]?.type === W.TYPE.literal);
3189
+ function Mt(e) {
3190
+ return e.type === V.TYPE.select && At.test(e.value) && !!e.options.other && (e.options.other.value.length === 0 || e.options.other.value.length > 0 && e.options.other.value[0]?.type === V.TYPE.literal);
3158
3191
  }
3159
- function Tt(e) {
3192
+ function Nt(e) {
3160
3193
  if (!e.includes(`_gt_`)) return e;
3161
3194
  let t = [];
3162
3195
  function n(e) {
@@ -3166,9 +3199,9 @@ function Tt(e) {
3166
3199
  value: e.options.other.value.length > 0 ? e.options.other.value[0].value : ``
3167
3200
  });
3168
3201
  }
3169
- G({
3202
+ H({
3170
3203
  icuString: e,
3171
- shouldVisit: wt,
3204
+ shouldVisit: Mt,
3172
3205
  visitor: n,
3173
3206
  options: {
3174
3207
  recurseIntoVisited: !1,
@@ -3179,7 +3212,7 @@ function Tt(e) {
3179
3212
  for (let n = 0; n < t.length; n++) i.push(e.slice(r, t[n].start)), i.push(t[n].value), r = t[n].end;
3180
3213
  return r < e.length && i.push(e.slice(r)), i.join(``);
3181
3214
  }
3182
- function Et(e) {
3215
+ function Pt(e) {
3183
3216
  let t = e.replace(/'/g, `''`), n = /[{}<>]/, r = t.search(n);
3184
3217
  if (r === -1) return t;
3185
3218
  let i = -1;
@@ -3189,15 +3222,15 @@ function Et(e) {
3189
3222
  }
3190
3223
  return t = t.slice(0, r) + `'` + t.slice(r, i + 1) + `'` + t.slice(i + 1), t;
3191
3224
  }
3192
- function Dt(e, t) {
3193
- let n = ` other {${Et(String(e ?? ``))}}`, r = ``;
3194
- return t?.$name && (r = ` _gt_var_name {${Et(t.$name)}}`), `{${K}, select,${n}${r}}`;
3225
+ function Ft(e, t) {
3226
+ let n = ` other {${Pt(String(e ?? ``))}}`, r = ``;
3227
+ return t?.$name && (r = ` _gt_var_name {${Pt(t.$name)}}`), `{${U}, select,${n}${r}}`;
3195
3228
  }
3196
- function Ot(e) {
3229
+ function It(e) {
3197
3230
  return e;
3198
3231
  }
3199
- const kt = Ot;
3200
- function At(e) {
3232
+ const Lt = It;
3233
+ function Rt(e) {
3201
3234
  if (!e.includes(`_gt_`)) return e;
3202
3235
  let t = [];
3203
3236
  function n(e) {
@@ -3208,9 +3241,9 @@ function At(e) {
3208
3241
  otherEnd: e.options.other.location?.end.offset ?? 0
3209
3242
  });
3210
3243
  }
3211
- G({
3244
+ H({
3212
3245
  icuString: e,
3213
- shouldVisit: wt,
3246
+ shouldVisit: Mt,
3214
3247
  visitor: n,
3215
3248
  options: {
3216
3249
  recurseIntoVisited: !1,
@@ -3224,32 +3257,32 @@ function At(e) {
3224
3257
  }
3225
3258
  return r.push(e.slice(i, e.length)), r.join(``);
3226
3259
  }
3227
- function jt(e) {
3260
+ function zt(e) {
3228
3261
  if (!e.includes(`_gt_`)) return {};
3229
3262
  let t = 1, n = {};
3230
3263
  function r(e) {
3231
3264
  n[e.value + t] = e.options.other.value.length ? e.options.other.value[0]?.value : ``, t += 1;
3232
3265
  }
3233
- return G({
3266
+ return H({
3234
3267
  icuString: e,
3235
- shouldVisit: wt,
3268
+ shouldVisit: Mt,
3236
3269
  visitor: r,
3237
3270
  options: { recurseIntoVisited: !1 }
3238
3271
  }), n;
3239
3272
  }
3240
- function Mt(e) {
3273
+ function Bt(e) {
3241
3274
  if (!e.includes(`_gt_`)) return e;
3242
3275
  function t(e) {
3243
- e.type = W.TYPE.argument, Reflect.deleteProperty(e, `options`);
3276
+ e.type = V.TYPE.argument, Reflect.deleteProperty(e, `options`);
3244
3277
  }
3245
- return (0, ht.printAST)(G({
3278
+ return (0, Ct.printAST)(H({
3246
3279
  icuString: e,
3247
- shouldVisit: Ct,
3280
+ shouldVisit: jt,
3248
3281
  visitor: t,
3249
3282
  options: { recurseIntoVisited: !1 }
3250
3283
  }));
3251
3284
  }
3252
- function Nt(e, n = 0) {
3285
+ function Vt(e, n = 0) {
3253
3286
  let r = n, a = (e) => {
3254
3287
  let { type: t, props: n } = e;
3255
3288
  r += 1;
@@ -3263,11 +3296,11 @@ function Nt(e, n = 0) {
3263
3296
  if (a) {
3264
3297
  let e = a.split(`-`);
3265
3298
  if ((e[1] === `automatic` || e[2] === `automatic`) && (i.injectionType = `automatic`), e[0] === `translate` && (e[0] = `fragment`), e[0] === `variable` && (i.variableType = e?.[1] || `variable`), e[0] === `plural`) {
3266
- let e = Object.entries(n).reduce((e, [t, n]) => (_t(t) && (e[t] = Nt(n, r)), e), {});
3299
+ let e = Object.entries(n).reduce((e, [t, n]) => (Tt(t) && (e[t] = Vt(n, r)), e), {});
3267
3300
  Object.keys(e).length && (i.branches = e);
3268
3301
  }
3269
3302
  if (e[0] === `branch`) {
3270
- let { children: e, branch: t, ...a } = n, o = Object.fromEntries(Object.entries(a).filter(([e]) => !e.startsWith(`data-`))), s = Object.entries(o).reduce((e, [t, n]) => (e[t] = Nt(n, r), e), {});
3303
+ let { children: e, branch: t, ...a } = n, o = Object.fromEntries(Object.entries(a).filter(([e]) => !e.startsWith(`data-`))), s = Object.entries(o).reduce((e, [t, n]) => (e[t] = Vt(n, r), e), {});
3271
3304
  Object.keys(s).length && (i.branches = s);
3272
3305
  }
3273
3306
  i.transformation = e[0];
@@ -3289,32 +3322,91 @@ function Nt(e, n = 0) {
3289
3322
  }
3290
3323
  return c(e);
3291
3324
  }
3292
- const q = `@generaltranslation/react-core`;
3293
- `${q}`, `${q}`, `${q}`, `${q}`, `${q}`, `${q}`;
3294
- const Pt = (e) => `${q} Error: Dictionary subtree not found for id: "${e}"`, Ft = () => `${q} Error: Cannot inject and merge a dictionary entry`, It = () => `${q} Error: Cannot inject and merge a dictionary entry`;
3295
- `${q}`, `${q}`, `${q}`, `${q}`;
3296
- `${q}`;
3297
- const Ht = {
3325
+ const Ht = `@generaltranslation/react-core`;
3326
+ function W(e) {
3327
+ return S({
3328
+ source: Ht,
3329
+ ...e
3330
+ });
3331
+ }
3332
+ W({
3333
+ severity: `Error`,
3334
+ whatHappened: `Runtime translation needs a project ID`,
3335
+ fix: `Add projectId to your <GTProvider> configuration or set GT_PROJECT_ID in your environment`,
3336
+ docsUrl: `https://generaltranslation.com/dashboard`
3337
+ }), W({
3338
+ severity: `Error`,
3339
+ whatHappened: `Production environments cannot use a development API key`,
3340
+ fix: `Replace it with a production API key before deploying`
3341
+ }), W({
3342
+ severity: `Error`,
3343
+ whatHappened: `The API key is available to client-side production code`,
3344
+ fix: `Move translation credentials to a server-only environment before deploying`
3345
+ }), W({
3346
+ severity: `Error`,
3347
+ whatHappened: `Runtime translation is not configured`,
3348
+ fix: `Add projectId and devApiKey to your environment, or pass them to <GTProvider> directly`
3349
+ }), W({
3350
+ severity: `Error`,
3351
+ whatHappened: `Runtime translations could not be loaded`,
3352
+ wayOut: `Source content will render as a fallback`,
3353
+ fix: `Check your runtime translation configuration and try again`
3354
+ }), W({
3355
+ severity: `Error`,
3356
+ whatHappened: `Runtime translation could not be completed`
3357
+ });
3358
+ const Ut = (e) => W({
3359
+ severity: `Error`,
3360
+ whatHappened: `Dictionary subtree "${e}" could not be found`,
3361
+ fix: `Check that the id matches your dictionary structure`
3362
+ }), Wt = () => W({
3363
+ severity: `Error`,
3364
+ whatHappened: `A dictionary entry cannot be injected as a subtree`,
3365
+ fix: `Pass a dictionary object instead`
3366
+ }), Gt = () => W({
3367
+ severity: `Error`,
3368
+ whatHappened: `A dictionary entry cannot be merged into another dictionary entry`,
3369
+ fix: `Pass a dictionary subtree instead`
3370
+ });
3371
+ W({
3372
+ severity: `Warning`,
3373
+ whatHappened: `Runtime translation needs a project ID`,
3374
+ fix: `Add projectId to <GTProvider> or set GT_PROJECT_ID in your environment`,
3375
+ docsUrl: `https://generaltranslation.com/dashboard`
3376
+ }), W({
3377
+ severity: `Warning`,
3378
+ whatHappened: `Runtime translation needs a development API key`,
3379
+ fix: `Find your development API key at generaltranslation.com/dashboard, or set runtimeUrl to an empty string to disable runtime translation`
3380
+ }), W({
3381
+ severity: `Warning`,
3382
+ whatHappened: `Runtime translation timed out`
3383
+ }), W({
3384
+ severity: `Warning`,
3385
+ whatHappened: `No dictionary was found`,
3386
+ fix: `Pass a dictionary to <GTProvider> or configure a dictionary loader before rendering translations`
3387
+ });
3388
+ `${Ht}`;
3389
+ const Xt = {
3298
3390
  variable: `value`,
3299
3391
  number: `n`,
3300
3392
  datetime: `date`,
3301
3393
  currency: `cost`,
3302
3394
  "relative-time": `time`
3303
3395
  };
3304
- function Ut(e = {}, t) {
3305
- return typeof e.name == `string` ? e.name : `_gt_${Ht[t] || `value`}_${e[`data-_gt`]?.id}`;
3396
+ function Zt(e = {}, t) {
3397
+ return typeof e.name == `string` ? e.name : `_gt_${Xt[t] || `value`}_${e[`data-_gt`]?.id}`;
3306
3398
  }
3307
- function Wt(e) {
3399
+ function Qt(e) {
3308
3400
  return t.isValidElement(e);
3309
3401
  }
3310
- const Gt = {
3402
+ const $t = {
3311
3403
  pl: `placeholder`,
3312
3404
  ti: `title`,
3313
3405
  alt: `alt`,
3314
3406
  arl: `aria-label`,
3315
3407
  arb: `aria-labelledby`,
3316
3408
  ard: `aria-describedby`
3317
- }, Kt = (e) => {
3409
+ }, en = (e) => {
3318
3410
  if (!e) return ``;
3319
3411
  let { type: t, props: n } = e;
3320
3412
  if (t && typeof t == `function`) {
@@ -3322,15 +3414,15 @@ const Gt = {
3322
3414
  if (`name` in t && typeof t.name == `string` && t.name) return t.name;
3323
3415
  }
3324
3416
  return t && typeof t == `string` ? t : n.href ? `a` : n[`data-_gt`]?.id ? `C${n[`data-_gt`].id}` : `function`;
3325
- }, qt = (e, t, n) => {
3326
- let r = Object.entries(Gt).reduce((e, [n, r]) => {
3417
+ }, tn = (e, t, n) => {
3418
+ let r = Object.entries($t).reduce((e, [n, r]) => {
3327
3419
  let i = t[r];
3328
3420
  return typeof i == `string` && (e[n] = i), e;
3329
3421
  }, {});
3330
3422
  if (e === `plural` && n) {
3331
3423
  let e = {};
3332
3424
  Object.entries(n).forEach(([t, n]) => {
3333
- e[t] = Y(n);
3425
+ e[t] = q(n);
3334
3426
  }), r = {
3335
3427
  ...r,
3336
3428
  b: e,
@@ -3340,7 +3432,7 @@ const Gt = {
3340
3432
  if (e === `branch` && n) {
3341
3433
  let e = {};
3342
3434
  Object.entries(n).forEach(([t, n]) => {
3343
- e[t] = Y(n);
3435
+ e[t] = q(n);
3344
3436
  }), r = {
3345
3437
  ...r,
3346
3438
  b: e,
@@ -3348,27 +3440,27 @@ const Gt = {
3348
3440
  };
3349
3441
  }
3350
3442
  return Object.keys(r).length ? r : void 0;
3351
- }, Jt = (e) => {
3352
- let { props: t } = e, n = { t: Kt(e) };
3443
+ }, nn = (e) => {
3444
+ let { props: t } = e, n = { t: en(e) };
3353
3445
  if (t[`data-_gt`]) {
3354
3446
  let e = t[`data-_gt`], r = e.transformation;
3355
3447
  if (r === `variable`) {
3356
- let n = e.variableType || `variable`, r = Ut(t, n), i = bt(n);
3448
+ let n = e.variableType || `variable`, r = Zt(t, n), i = Ot(n);
3357
3449
  return {
3358
3450
  i: e.id,
3359
3451
  k: r,
3360
3452
  v: i
3361
3453
  };
3362
3454
  }
3363
- n.i = e.id, n.d = qt(r, t, e.branches);
3364
- let i = Object.entries(Gt).reduce((e, [n, r]) => {
3455
+ n.i = e.id, n.d = tn(r, t, e.branches);
3456
+ let i = Object.entries($t).reduce((e, [n, r]) => {
3365
3457
  let i = t[r];
3366
3458
  return typeof i == `string` && (e[n] = i), e;
3367
3459
  }, {});
3368
3460
  if (r === `plural` && e.branches) {
3369
3461
  let t = {};
3370
3462
  Object.entries(e.branches).forEach(([e, n]) => {
3371
- t[e] = Y(n);
3463
+ t[e] = q(n);
3372
3464
  }), i = {
3373
3465
  ...i,
3374
3466
  b: t,
@@ -3378,7 +3470,7 @@ const Gt = {
3378
3470
  if (r === `branch` && e.branches) {
3379
3471
  let t = {};
3380
3472
  Object.entries(e.branches).forEach(([e, n]) => {
3381
- t[e] = Y(n);
3473
+ t[e] = q(n);
3382
3474
  }), i = {
3383
3475
  ...i,
3384
3476
  b: t,
@@ -3387,16 +3479,16 @@ const Gt = {
3387
3479
  }
3388
3480
  n.d = Object.keys(i).length ? i : void 0;
3389
3481
  }
3390
- return t.children && (n.c = Y(t.children)), n;
3391
- }, Yt = (e) => Wt(e) ? Jt(e) : typeof e == `number` ? e.toString() : e;
3392
- function Y(e) {
3393
- return Array.isArray(e) ? e.map(Yt) : Yt(e);
3482
+ return t.children && (n.c = q(t.children)), n;
3483
+ }, rn = (e) => Qt(e) ? nn(e) : typeof e == `number` ? e.toString() : e;
3484
+ function q(e) {
3485
+ return Array.isArray(e) ? e.map(rn) : rn(e);
3394
3486
  }
3395
- function Xt(e, t, n) {
3487
+ function J(e, t, n) {
3396
3488
  let r = ``, i = null;
3397
- return typeof e == `number` && !i && n && (r = vt(e, Object.keys(n).filter(_t), t)), r && !i && (i = n[r]), i;
3489
+ return typeof e == `number` && !i && n && (r = Et(e, Object.keys(n).filter(Tt), t)), r && !i && (i = n[r]), i;
3398
3490
  }
3399
- function Zt(e) {
3491
+ function an(e) {
3400
3492
  if (typeof e == `string`) return !0;
3401
3493
  if (Array.isArray(e)) {
3402
3494
  if (typeof e?.[0] != `string`) return !1;
@@ -3405,7 +3497,7 @@ function Zt(e) {
3405
3497
  }
3406
3498
  return !1;
3407
3499
  }
3408
- function Qt(e, t) {
3500
+ function Y(e, t) {
3409
3501
  let n = e, r = t.split(`.`);
3410
3502
  for (let e of r) {
3411
3503
  if (typeof n != `object` && !Array.isArray(n)) return;
@@ -3423,14 +3515,14 @@ function X(e) {
3423
3515
  }
3424
3516
  return { entry: e };
3425
3517
  }
3426
- function $t(e) {
3518
+ function on(e) {
3427
3519
  return typeof e == `object` && !!e && `data-_gt` in e && typeof e[`data-_gt`] == `object` && !!e[`data-_gt`] && `transformation` in e[`data-_gt`] && e[`data-_gt`]?.transformation === `variable`;
3428
3520
  }
3429
- function en(e) {
3521
+ function sn(e) {
3430
3522
  let t = e[`data-_gt`]?.variableType || `variable`;
3431
3523
  return {
3432
- variableName: Ut(e, t),
3433
- variableType: bt(t),
3524
+ variableName: Zt(e, t),
3525
+ variableType: Ot(t),
3434
3526
  injectionType: e[`data-_gt`]?.injectionType || `manual`,
3435
3527
  variableValue: (() => {
3436
3528
  if (e.value !== void 0) return e.value;
@@ -3449,7 +3541,7 @@ function en(e) {
3449
3541
  })()
3450
3542
  };
3451
3543
  }
3452
- function tn(e) {
3544
+ function cn(e) {
3453
3545
  let t = e;
3454
3546
  if (t && typeof t == `object` && typeof t.k == `string`) {
3455
3547
  let e = Object.keys(t);
@@ -3457,14 +3549,14 @@ function tn(e) {
3457
3549
  }
3458
3550
  return !1;
3459
3551
  }
3460
- function nn(e) {
3552
+ function ln(e) {
3461
3553
  return e && e.props && e.props[`data-_gt`] ? e.props[`data-_gt`] : null;
3462
3554
  }
3463
3555
  function Z({ children: e, defaultLocale: n = `en`, renderVariable: r }) {
3464
3556
  let i = (e) => {
3465
- let i = nn(e);
3466
- if ($t(e.props)) {
3467
- let { variableType: t, variableValue: i, variableOptions: a, injectionType: o } = en(e.props);
3557
+ let i = ln(e);
3558
+ if (on(e.props)) {
3559
+ let { variableType: t, variableValue: i, variableOptions: a, injectionType: o } = sn(e.props);
3468
3560
  return r({
3469
3561
  variableType: t,
3470
3562
  variableValue: i,
@@ -3476,7 +3568,7 @@ function Z({ children: e, defaultLocale: n = `en`, renderVariable: r }) {
3476
3568
  if (i?.transformation === `plural`) {
3477
3569
  let t = i.branches || {};
3478
3570
  if (typeof e.props.n != `number`) return e.props.children == null ? null : o(e.props.children);
3479
- let r = Xt(e.props.n, [n], t);
3571
+ let r = J(e.props.n, [n], t);
3480
3572
  return o(r === null ? e.props.children : r);
3481
3573
  }
3482
3574
  if (i?.transformation === `branch`) {
@@ -3497,9 +3589,9 @@ function Z({ children: e, defaultLocale: n = `en`, renderVariable: r }) {
3497
3589
  }, a = (e) => t.isValidElement(e) ? i(e) : e, o = (e) => Array.isArray(e) ? t.Children.map(e, a) : a(e);
3498
3590
  return o(e);
3499
3591
  }
3500
- function rn({ sourceElement: e, targetElement: n, locales: r = [`en`], renderVariable: i }) {
3592
+ function un({ sourceElement: e, targetElement: n, locales: r = [`en`], renderVariable: i }) {
3501
3593
  let { props: a } = e, o = a[`data-_gt`], s = o?.transformation, c = n.d, l = {};
3502
- if (c && Object.entries(Gt).forEach(([e, t]) => {
3594
+ if (c && Object.entries($t).forEach(([e, t]) => {
3503
3595
  c[e] && (l[t] = c[e]);
3504
3596
  }), s === `plural`) {
3505
3597
  let t = e.props.n;
@@ -3508,7 +3600,7 @@ function rn({ sourceElement: e, targetElement: n, locales: r = [`en`], renderVar
3508
3600
  defaultLocale: r[0],
3509
3601
  renderVariable: i
3510
3602
  });
3511
- let a = Xt(t, r, o.branches || {}), s = a === null ? e.props.children : a, c = Xt(t, r, n.d?.b || {});
3603
+ let a = J(t, r, o.branches || {}), s = a === null ? e.props.children : a, c = J(t, r, n.d?.b || {});
3512
3604
  return Q({
3513
3605
  source: s,
3514
3606
  target: c === null ? n.c : c,
@@ -3558,18 +3650,18 @@ function Q({ source: e, target: n, locales: r = [`en`], renderVariable: i }) {
3558
3650
  if (typeof n == `string`) return n;
3559
3651
  if (Array.isArray(n) && !Array.isArray(e) && e && (e = [e]), Array.isArray(e) && Array.isArray(n)) {
3560
3652
  let a = {}, o = {}, c = {}, l = e.filter((e) => {
3561
- if (t.isValidElement(e)) if ($t(e.props)) {
3562
- let { variableName: t, variableValue: n, variableOptions: r, injectionType: i } = en(e.props);
3653
+ if (t.isValidElement(e)) if (on(e.props)) {
3654
+ let { variableName: t, variableValue: n, variableOptions: r, injectionType: i } = sn(e.props);
3563
3655
  a[t] = n, o[t] = r, c[t] = i;
3564
3656
  } else return !0;
3565
3657
  return !1;
3566
3658
  }), u = (e) => l.find((t) => {
3567
- let n = nn(t);
3659
+ let n = ln(t);
3568
3660
  return n?.id === void 0 ? !1 : n.id === e.i;
3569
3661
  }) || l.shift();
3570
3662
  return n.map((e, n) => {
3571
3663
  if (typeof e == `string`) return jsx(t.Fragment, { children: e }, `string_${n}`);
3572
- if (C(e)) return jsx(t.Fragment, { children: i({
3664
+ if (E(e)) return jsx(t.Fragment, { children: i({
3573
3665
  variableType: e.v || `v`,
3574
3666
  variableValue: a[e.k],
3575
3667
  variableOptions: o[e.k],
@@ -3577,7 +3669,7 @@ function Q({ source: e, target: n, locales: r = [`en`], renderVariable: i }) {
3577
3669
  injectionType: c[e.k] || `manual`
3578
3670
  }) }, `var_${n}`);
3579
3671
  let l = u(e);
3580
- return l ? jsx(t.Fragment, { children: rn({
3672
+ return l ? jsx(t.Fragment, { children: un({
3581
3673
  sourceElement: l,
3582
3674
  targetElement: e,
3583
3675
  locales: r,
@@ -3586,16 +3678,16 @@ function Q({ source: e, target: n, locales: r = [`en`], renderVariable: i }) {
3586
3678
  });
3587
3679
  }
3588
3680
  if (n && typeof n == `object` && !Array.isArray(n)) {
3589
- let a = C(n) ? `variable` : `element`;
3681
+ let a = E(n) ? `variable` : `element`;
3590
3682
  if (t.isValidElement(e)) {
3591
- if (a === `element`) return rn({
3683
+ if (a === `element`) return un({
3592
3684
  sourceElement: e,
3593
3685
  targetElement: n,
3594
3686
  locales: r,
3595
3687
  renderVariable: i
3596
3688
  });
3597
- if ($t(e.props)) {
3598
- let { variableValue: t, variableOptions: n, variableType: a, injectionType: o } = en(e.props);
3689
+ if (on(e.props)) {
3690
+ let { variableValue: t, variableOptions: n, variableType: a, injectionType: o } = sn(e.props);
3599
3691
  return i({
3600
3692
  variableType: a,
3601
3693
  variableValue: t,
@@ -3612,73 +3704,73 @@ function Q({ source: e, target: n, locales: r = [`en`], renderVariable: i }) {
3612
3704
  renderVariable: i
3613
3705
  });
3614
3706
  }
3615
- const an = (e = `production`) => ({
3707
+ const dn = (e = `production`) => ({
3616
3708
  method: `default`,
3617
3709
  timeout: e === `development` ? 8e3 : 12e3
3618
3710
  });
3619
- function on() {
3711
+ function fn() {
3620
3712
  return ``;
3621
3713
  }
3622
- const sn = `generaltranslation.locale`, cn = `generaltranslation.region`;
3714
+ const pn = `generaltranslation.locale`, mn = `generaltranslation.region`;
3623
3715
  function $(e) {
3624
3716
  return e === void 0 ? !1 : typeof e == `string` ? !0 : Array.isArray(e) ? !(e.length !== 1 && e.length !== 2 || typeof e[0] != `string` || e.length === 2 && (typeof e[1] != `object` || e[1] === null || !(`$context` in e[1]) && !(`$maxChars` in e[1]) && !(`$_hash` in e[1]))) : !1;
3625
3717
  }
3626
- const un = (e) => typeof e == `string` || Array.isArray(e), dn = (e) => typeof e == `object` && !!e && !Array.isArray(e);
3627
- function fn(e, t) {
3628
- if (Array.isArray(e)) return e.map((e, n) => $(e) ? t[n] : fn(e, t[n]));
3718
+ const gn = (e) => typeof e == `string` || Array.isArray(e), _n = (e) => typeof e == `object` && !!e && !Array.isArray(e);
3719
+ function vn(e, t) {
3720
+ if (Array.isArray(e)) return e.map((e, n) => $(e) ? t[n] : vn(e, t[n]));
3629
3721
  let n = {
3630
- ...Object.fromEntries(Object.entries(e).filter(([, e]) => un(e))),
3631
- ...Object.fromEntries(Object.entries(t).filter(([, e]) => un(e)))
3632
- }, r = Object.entries(e).filter(([, e]) => dn(e)).map(([e]) => e), i = Object.entries(t).filter(([, e]) => dn(e)).map(([e]) => e), a = new Set([...r, ...i]);
3633
- for (let r of a) n[r] = fn(_(e, r) || {}, _(t, r) || {});
3722
+ ...Object.fromEntries(Object.entries(e).filter(([, e]) => gn(e))),
3723
+ ...Object.fromEntries(Object.entries(t).filter(([, e]) => gn(e)))
3724
+ }, r = Object.entries(e).filter(([, e]) => _n(e)).map(([e]) => e), i = Object.entries(t).filter(([, e]) => _n(e)).map(([e]) => e), a = new Set([...r, ...i]);
3725
+ for (let r of a) n[r] = vn(_(e, r) || {}, _(t, r) || {});
3634
3726
  return n;
3635
3727
  }
3636
- const pn = typeof e.use == `function`;
3637
- function mn({ dictionary: e, id: t }) {
3728
+ const yn = typeof e.use == `function`;
3729
+ function bn({ dictionary: e, id: t }) {
3638
3730
  if (t === ``) return e;
3639
3731
  let n = e, r = t.split(`.`);
3640
3732
  for (let e of r) n = _(n, e);
3641
3733
  return n;
3642
3734
  }
3643
- function hn({ dictionary: e, id: t, sourceDictionary: n }) {
3735
+ function xn({ dictionary: e, id: t, sourceDictionary: n }) {
3644
3736
  if (t === ``) return e;
3645
3737
  let r = e, i = n, a = t.split(`.`);
3646
3738
  for (let e of a) _(r, e) === void 0 && (Array.isArray(_(i, e)) ? v(r, e, []) : v(r, e, {})), r = _(r, e);
3647
3739
  return r;
3648
3740
  }
3649
- const gn = [
3741
+ const Sn = [
3650
3742
  `constructor`,
3651
3743
  `prototype`,
3652
3744
  `__proto__`
3653
3745
  ];
3654
- function _n(e) {
3655
- return !!gn.includes(e);
3746
+ function Cn(e) {
3747
+ return !!Sn.includes(e);
3656
3748
  }
3657
- function vn(e, t, n, r) {
3749
+ function wn(e, t, n, r) {
3658
3750
  if ($(t)) return e;
3659
3751
  let i = n.split(`.`);
3660
3752
  i.forEach((e) => {
3661
- if (_n(e)) throw Error(`Invalid key: ${e}`);
3753
+ if (Cn(e)) throw Error(`Invalid key: ${e}`);
3662
3754
  }), t ||= {};
3663
3755
  for (let e of i.slice(0, -1)) _(t, e) ?? v(t, e, Array.isArray(_(r, e)) ? [] : {}), t = _(t, e), r = _(r, e);
3664
3756
  let a = i[i.length - 1];
3665
3757
  v(t, a, e);
3666
3758
  }
3667
- function yn(e) {
3759
+ function Tn(e) {
3668
3760
  let t = {};
3669
3761
  return Array.isArray(e) && (t = []), Object.entries(e).forEach(([e, n]) => {
3670
3762
  if ($(n)) {
3671
3763
  let { entry: r } = X(n);
3672
3764
  v(t, e, r);
3673
- } else v(t, e, yn(n));
3765
+ } else v(t, e, Tn(n));
3674
3766
  }), t;
3675
3767
  }
3676
- function bn(e) {
3677
- return ie(ve(ae(e))).slice(0, 16);
3768
+ function En(e) {
3769
+ return de(Te(fe(e))).slice(0, 16);
3678
3770
  }
3679
- function xn({ source: e, context: t, id: n, maxChars: r, dataFormat: i }, a = bn) {
3771
+ function Dn({ source: e, context: t, id: n, maxChars: r, dataFormat: i }, a = En) {
3680
3772
  let o;
3681
- return o = i === `JSX` ? Cn(e) : e, a(te({
3773
+ return o = i === `JSX` ? kn(e) : e, a(re({
3682
3774
  source: o,
3683
3775
  ...n && { id: n },
3684
3776
  ...t && { context: t },
@@ -3686,38 +3778,38 @@ function xn({ source: e, context: t, id: n, maxChars: r, dataFormat: i }, a = bn
3686
3778
  ...i && { dataFormat: i }
3687
3779
  }));
3688
3780
  }
3689
- const Sn = (e) => {
3781
+ const On = (e) => {
3690
3782
  if (e && typeof e == `object`) {
3691
3783
  let t = {};
3692
- if (`c` in e && e.c && (t.c = Cn(e.c)), `d` in e) {
3784
+ if (`c` in e && e.c && (t.c = kn(e.c)), `d` in e) {
3693
3785
  let n = e?.d;
3694
- n?.b && (t.b = Object.fromEntries(Object.entries(n.b).map(([e, t]) => [e, Cn(t)]))), n?.t && (t.t = n.t);
3786
+ n?.b && (t.b = Object.fromEntries(Object.entries(n.b).map(([e, t]) => [e, kn(t)]))), n?.t && (t.t = n.t);
3695
3787
  }
3696
- return C(e) ? {
3788
+ return E(e) ? {
3697
3789
  k: e.k,
3698
3790
  ...e.v && { v: e.v }
3699
3791
  } : t;
3700
3792
  }
3701
3793
  return e;
3702
3794
  };
3703
- function Cn(e) {
3704
- return Array.isArray(e) ? e.map(Sn) : Sn(e);
3795
+ function kn(e) {
3796
+ return Array.isArray(e) ? e.map(On) : On(e);
3705
3797
  }
3706
- function wn(e, t = ``) {
3798
+ function An(e, t = ``) {
3707
3799
  let n = !1;
3708
3800
  return Object.entries(e).forEach(([r, i]) => {
3709
3801
  let a = t ? `${t}.${r}` : r;
3710
3802
  if ($(i)) {
3711
3803
  let { entry: t, metadata: o } = X(i);
3712
- o?.$_hash || (o ||= {}, o.$_hash = xn({
3713
- source: At(t),
3804
+ o?.$_hash || (o ||= {}, o.$_hash = Dn({
3805
+ source: Rt(t),
3714
3806
  ...o?.$context && { context: o.$context },
3715
3807
  ...o?.$maxChars != null && { maxChars: Math.abs(o.$maxChars) },
3716
3808
  id: a,
3717
3809
  dataFormat: `ICU`
3718
3810
  }), v(e, r, [t, o]), n = !0);
3719
3811
  } else {
3720
- let { updateDictionary: e } = wn(i, a);
3812
+ let { updateDictionary: e } = An(i, a);
3721
3813
  n ||= e;
3722
3814
  }
3723
3815
  }), {
@@ -3725,44 +3817,44 @@ function wn(e, t = ``) {
3725
3817
  updateDictionary: n
3726
3818
  };
3727
3819
  }
3728
- function Tn(e, t, n, r, i = ``) {
3820
+ function jn(e, t, n, r, i = ``) {
3729
3821
  let a = !1, o = i ? i.split(`.`) : [];
3730
3822
  return r.forEach(({ metadata: r }) => {
3731
- let { $_hash: i, $id: s } = r, c = o.length > 0 ? s.split(`.`).slice(o.length).join(`.`) : s, l = Qt(t, c), u;
3823
+ let { $_hash: i, $id: s } = r, c = o.length > 0 ? s.split(`.`).slice(o.length).join(`.`) : s, l = Y(t, c), u;
3732
3824
  $(l) && (u = X(l).entry);
3733
3825
  let d = n[i] || u;
3734
- d && (vn(d, t, c, e), a = !0);
3826
+ d && (wn(d, t, c, e), a = !0);
3735
3827
  }), {
3736
3828
  dictionary: t,
3737
3829
  updateDictionary: a
3738
3830
  };
3739
3831
  }
3740
- function En(e, t, n, r = ``) {
3832
+ function Mn(e, t, n, r = ``) {
3741
3833
  let i = r ? r.split(`.`) : [];
3742
3834
  return n.forEach(({ source: n, metadata: r }) => {
3743
- let { $id: a } = r, o = i.length > 0 ? a.split(`.`).slice(i.length).join(`.`) : a, s = Qt(t, o), c;
3744
- $(s) && (c = X(s).entry), vn(c || n, t, o, e);
3835
+ let { $id: a } = r, o = i.length > 0 ? a.split(`.`).slice(i.length).join(`.`) : a, s = Y(t, o), c;
3836
+ $(s) && (c = X(s).entry), wn(c || n, t, o, e);
3745
3837
  }), t;
3746
3838
  }
3747
- function Dn(e, t, n) {
3748
- let r = mn({
3839
+ function Nn(e, t, n) {
3840
+ let r = bn({
3749
3841
  dictionary: e,
3750
3842
  id: n
3751
3843
  });
3752
- if (!r) throw Error(Pt(n));
3753
- if ($(r)) throw Error(Ft());
3754
- return On(e, fn(r, t), n);
3755
- }
3756
- function On(e, t, n) {
3757
- let r = Qt(e, n);
3758
- if (!r) throw Error(Pt(n));
3759
- if ($(r)) throw Error(It());
3844
+ if (!r) throw Error(Ut(n));
3845
+ if ($(r)) throw Error(Wt());
3846
+ return Pn(e, vn(r, t), n);
3847
+ }
3848
+ function Pn(e, t, n) {
3849
+ let r = Y(e, n);
3850
+ if (!r) throw Error(Ut(n));
3851
+ if ($(r)) throw Error(Gt());
3760
3852
  let i = n.split(`.`), a = i.slice(0, -1), o = i[i.length - 1], s = e;
3761
3853
  return a.forEach((e) => {
3762
3854
  s = _(s, e);
3763
3855
  }), v(s, o, t), e;
3764
3856
  }
3765
- function kn(e, t, n = ``) {
3857
+ function Fn(e, t, n = ``) {
3766
3858
  let r = [];
3767
3859
  return Object.entries(e).forEach(([e, i]) => {
3768
3860
  let a = n ? `${n}.${e}` : e;
@@ -3777,10 +3869,10 @@ function kn(e, t, n = ``) {
3777
3869
  $_hash: o?.$_hash || ``
3778
3870
  }
3779
3871
  });
3780
- } else r.push(...kn(i, _(t, e) || (Array.isArray(i) ? [] : {}), a));
3872
+ } else r.push(...Fn(i, _(t, e) || (Array.isArray(i) ? [] : {}), a));
3781
3873
  }), r;
3782
3874
  }
3783
- var An = {
3875
+ var In = {
3784
3876
  warn(e) {
3785
3877
  console.warn(e);
3786
3878
  },
@@ -3794,11 +3886,11 @@ var An = {
3794
3886
  console.debug(e);
3795
3887
  }
3796
3888
  };
3797
- function jn(e) {
3889
+ function Ln(e) {
3798
3890
  return Object.fromEntries(Object.entries(e).filter(([e]) => e !== `$id` && e !== `$context` && e !== `$maxChars` && e !== `$hash` && e !== `$_hash` && e !== `$_source` && e !== `$_fallback` && e !== `$format` && e !== `$_locales` && e !== `$locale`));
3799
3891
  }
3800
- const Mn = (e) => `String interpolation failed for message: "${e}".`;
3801
- function Nn(e, t, n, r) {
3892
+ const Rn = (e) => `String interpolation failed for message: "${e}".`;
3893
+ function zn(e, t, n, r) {
3802
3894
  try {
3803
3895
  return formatMessage(e, {
3804
3896
  variables: t,
@@ -3806,88 +3898,88 @@ function Nn(e, t, n, r) {
3806
3898
  dataFormat: r
3807
3899
  });
3808
3900
  } catch {
3809
- return An.warn(Mn(e)), e;
3901
+ return In.warn(Rn(e)), e;
3810
3902
  }
3811
3903
  }
3812
- function Pn(e, t) {
3904
+ function Bn(e, t) {
3813
3905
  if (!e) return e;
3814
- let n = t.$_fallback, r = jn(t);
3906
+ let n = t.$_fallback, r = Ln(t);
3815
3907
  try {
3816
- let i = jt(n || ``);
3817
- return formatCutoff(Nn(Object.keys(i).length ? Mt(e) : e, {
3908
+ let i = zt(n || ``);
3909
+ return formatCutoff(zn(Object.keys(i).length ? Bt(e) : e, {
3818
3910
  ...r,
3819
3911
  ...i,
3820
- [K]: `other`
3912
+ [U]: `other`
3821
3913
  }, t.$locale ?? t.$_locales, t.$format), { maxChars: t.$maxChars });
3822
3914
  } catch {
3823
- return An.warn(Mn(e)), t.$_fallback == null ? formatCutoff(e, { maxChars: t.$maxChars }) : Pn(t.$_fallback, {
3915
+ return In.warn(Rn(e)), t.$_fallback == null ? formatCutoff(e, { maxChars: t.$maxChars }) : Bn(t.$_fallback, {
3824
3916
  ...t,
3825
3917
  $_fallback: void 0
3826
3918
  });
3827
3919
  }
3828
3920
  }
3829
- function Fn(e) {
3921
+ function Vn(e) {
3830
3922
  if (e.lastIndexOf(`:`) === -1) return null;
3831
3923
  let t = e.slice(e.lastIndexOf(`:`) + 1);
3832
3924
  try {
3833
- return JSON.parse(x(t));
3925
+ return JSON.parse(w(t));
3834
3926
  } catch {
3835
3927
  return null;
3836
3928
  }
3837
3929
  }
3838
- function In(e) {
3930
+ function Hn(e) {
3839
3931
  return !!(e.$_hash && e.$_source);
3840
3932
  }
3841
- function Ln(e, t) {
3933
+ function Un(e, t) {
3842
3934
  let n = t;
3843
- return n.$_hash == null ? xn({
3844
- source: t.$format === `ICU` ? At(e) : e,
3935
+ return n.$_hash == null ? Dn({
3936
+ source: t.$format === `ICU` ? Rt(e) : e,
3845
3937
  ...n.$context && { context: n.$context },
3846
3938
  ...n.$id && { id: n.$id },
3847
3939
  ...n.$maxChars != null && { maxChars: Math.abs(n.$maxChars) },
3848
3940
  dataFormat: t.$format
3849
3941
  }) : n.$_hash;
3850
3942
  }
3851
- function Rn(e) {
3943
+ function Wn(e) {
3852
3944
  return typeof e == `string` && e.lastIndexOf(`:`) !== -1 ? e.slice(0, e.lastIndexOf(`:`)) : e;
3853
3945
  }
3854
- const zn = (e, t = {}) => Pn(e, t), Bn = (e, t = {}) => e && (In(Fn(e) ?? {}) ? Rn(e) : Pn(e, t));
3855
- function Vn(e, t) {
3856
- if (typeof e != `string`) return t ? e.map((e, n) => Vn(e, {
3946
+ const Gn = (e, t = {}) => Bn(e, t), Kn = (e, t = {}) => e && (Hn(Vn(e) ?? {}) ? Wn(e) : Bn(e, t));
3947
+ function qn(e, t) {
3948
+ if (typeof e != `string`) return t ? e.map((e, n) => qn(e, {
3857
3949
  ...t,
3858
3950
  ...t.$id && { $id: `${t.$id}.${n}` }
3859
3951
  })) : e;
3860
3952
  if (!t) return e;
3861
- let n = jn(t), r = e;
3953
+ let n = Ln(t), r = e;
3862
3954
  try {
3863
3955
  r = formatMessage(e, {
3864
3956
  locales: [`en`],
3865
3957
  variables: {
3866
3958
  ...n,
3867
- [K]: `other`
3959
+ [U]: `other`
3868
3960
  }
3869
3961
  });
3870
3962
  } catch {
3871
- return An.warn(Mn(e)), e;
3963
+ return In.warn(Rn(e)), e;
3872
3964
  }
3873
- let i = e, a = t.$_hash || Ln(e, {
3965
+ let i = e, a = t.$_hash || Un(e, {
3874
3966
  $format: `ICU`,
3875
3967
  ...t
3876
3968
  }), s = {
3877
3969
  ...t,
3878
3970
  $_source: i,
3879
3971
  $_hash: a
3880
- }, c = ee(JSON.stringify(s));
3972
+ }, c = C(JSON.stringify(s));
3881
3973
  return `${r}:${c}`;
3882
3974
  }
3883
- function Hn({ children: e }) {
3975
+ function Jn({ children: e }) {
3884
3976
  return e;
3885
3977
  }
3886
- function Un(e) {
3887
- return Hn(e);
3978
+ function Yn(e) {
3979
+ return Jn(e);
3888
3980
  }
3889
- Hn._gtt = `derive`, Un._gtt = `derive`;
3981
+ Jn._gtt = `derive`, Yn._gtt = `derive`;
3890
3982
  //#endregion
3891
- export { Hn as Derive, Un as Static, Nt as addGTIdentifier, kn as collectUntranslatedEntries, kt as declareStatic, Dt as declareVar, Rn as decodeMsg, Fn as decodeOptions, Tt as decodeVars, sn as defaultLocaleCookieName, cn as defaultRegionCookieName, Ot as derive, b as flattenDictionary, an as getDefaultRenderSettings, Qt as getDictionaryEntry, X as getEntryAndMetadata, Xt as getPluralBranch, mn as getSubtree, hn as getSubtreeWithCreation, Ut as getVariableName, en as getVariableProps, zn as gtFallback, Dn as injectAndMerge, vn as injectEntry, En as injectFallbacks, wn as injectHashes, Tn as injectTranslations, $ as isDictionaryEntry, Zt as isValidDictionaryEntry, tn as isVariableObject, Bn as mFallback, fn as mergeDictionaries, Vn as msg, pn as reactHasUse, Z as renderDefaultChildren, on as renderSkeleton, Q as renderTranslatedChildren, yn as stripMetadataFromEntries, Y as writeChildrenAsObjects };
3983
+ export { Jn as Derive, Yn as Static, Vt as addGTIdentifier, Fn as collectUntranslatedEntries, Lt as declareStatic, Ft as declareVar, Wn as decodeMsg, Vn as decodeOptions, Nt as decodeVars, pn as defaultLocaleCookieName, mn as defaultRegionCookieName, It as derive, y as flattenDictionary, dn as getDefaultRenderSettings, Y as getDictionaryEntry, X as getEntryAndMetadata, J as getPluralBranch, bn as getSubtree, xn as getSubtreeWithCreation, Zt as getVariableName, sn as getVariableProps, Gn as gtFallback, Nn as injectAndMerge, wn as injectEntry, Mn as injectFallbacks, An as injectHashes, jn as injectTranslations, $ as isDictionaryEntry, an as isValidDictionaryEntry, cn as isVariableObject, Kn as mFallback, vn as mergeDictionaries, qn as msg, yn as reactHasUse, Z as renderDefaultChildren, fn as renderSkeleton, Q as renderTranslatedChildren, Tn as stripMetadataFromEntries, q as writeChildrenAsObjects };
3892
3984
 
3893
3985
  //# sourceMappingURL=internal.mjs.map