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/client.cjs CHANGED
@@ -23,8 +23,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
23
23
  }) : target, mod));
24
24
  //#endregion
25
25
  let react = require("react");
26
- let react$1 = __toESM(react, 1);
27
- react = __toESM(react);
26
+ react = __toESM(react, 1);
28
27
  let _generaltranslation_format = require("@generaltranslation/format");
29
28
  let generaltranslation = require("generaltranslation");
30
29
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -44,43 +43,76 @@ var c = Object.defineProperty, l = Object.getOwnPropertyDescriptor, u = Object.g
44
43
  });
45
44
  return e;
46
45
  }, g = (e) => d.call(e, `module.exports`) ? e[`module.exports`] : h(c({}, `__esModule`, { value: !0 }), e);
47
- function w(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 ie(e) {
48
80
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === `Uint8Array` && `BYTES_PER_ELEMENT` in e && e.BYTES_PER_ELEMENT === 1;
49
81
  }
50
- function T$1(e, t, n = ``) {
51
- let r = w(e), i = e?.length, a = t !== void 0;
82
+ function D(e, t, n = ``) {
83
+ let r = ie(e), i = e?.length, a = t !== void 0;
52
84
  if (!r || a && i !== t) {
53
85
  let o = n && `"${n}" `, s = a ? ` of length ${t}` : ``, c = r ? `length=${i}` : `type=${typeof e}`, l = o + `expected Uint8Array` + s + `, got ` + c;
54
86
  throw r ? RangeError(l) : TypeError(l);
55
87
  }
56
88
  return e;
57
89
  }
58
- function E(e, t = !0) {
90
+ function ae(e, t = !0) {
59
91
  if (e.destroyed) throw Error(`Hash instance has been destroyed`);
60
92
  if (t && e.finished) throw Error(`Hash#digest() has already been called`);
61
93
  }
62
- function D(e, t) {
63
- T$1(e, void 0, `digestInto() output`);
94
+ function oe(e, t) {
95
+ D(e, void 0, `digestInto() output`);
64
96
  let n = t.outputLen;
65
97
  if (e.length < n) throw RangeError(`"digestInto() output" expected to be of length >=` + n);
66
98
  }
67
- function O(...e) {
99
+ function se(...e) {
68
100
  for (let t = 0; t < e.length; t++) e[t].fill(0);
69
101
  }
70
- function k(e) {
102
+ function ce(e) {
71
103
  return new DataView(e.buffer, e.byteOffset, e.byteLength);
72
104
  }
73
- function A(e, t) {
105
+ function O(e, t) {
74
106
  return e << 32 - t | e >>> t;
75
107
  }
76
108
  new Uint8Array(new Uint32Array([287454020]).buffer)[0];
77
109
  typeof Uint8Array.from([]).toHex == `function` && Uint8Array.fromHex;
78
110
  Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, `0`));
79
- function oe(e, t = {}) {
111
+ function pe(e, t = {}) {
80
112
  let n = (t, n) => e(n).update(t).digest(), r = e(void 0);
81
113
  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);
82
114
  }
83
- const se = (e) => ({ oid: Uint8Array.from([
115
+ const me = (e) => ({ oid: Uint8Array.from([
84
116
  6,
85
117
  9,
86
118
  96,
@@ -93,13 +125,13 @@ const se = (e) => ({ oid: Uint8Array.from([
93
125
  2,
94
126
  e
95
127
  ]) });
96
- function ce(e, t, n) {
128
+ function he(e, t, n) {
97
129
  return e & t ^ ~e & n;
98
130
  }
99
- function le(e, t, n) {
131
+ function ge(e, t, n) {
100
132
  return e & t ^ e & n ^ t & n;
101
133
  }
102
- var ue = class {
134
+ var _e = class {
103
135
  blockLen;
104
136
  outputLen;
105
137
  canXOF = !1;
@@ -112,15 +144,15 @@ var ue = class {
112
144
  pos = 0;
113
145
  destroyed = !1;
114
146
  constructor(e, t, n, r) {
115
- this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view = k(this.buffer);
147
+ this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view = ce(this.buffer);
116
148
  }
117
149
  update(e) {
118
- E(this), T$1(e);
150
+ ae(this), D(e);
119
151
  let { view: t, buffer: n, blockLen: r } = this, i = e.length;
120
152
  for (let a = 0; a < i;) {
121
153
  let o = Math.min(r - this.pos, i - a);
122
154
  if (o === r) {
123
- let t = k(e);
155
+ let t = ce(e);
124
156
  for (; r <= i - a; a += r) this.process(t, a);
125
157
  continue;
126
158
  }
@@ -129,12 +161,12 @@ var ue = class {
129
161
  return this.length += e.length, this.roundClean(), this;
130
162
  }
131
163
  digestInto(e) {
132
- E(this), D(e, this), this.finished = !0;
164
+ ae(this), oe(e, this), this.finished = !0;
133
165
  let { buffer: t, view: n, blockLen: r, isLE: i } = this, { pos: a } = this;
134
- t[a++] = 128, O(this.buffer.subarray(a)), this.padOffset > r - a && (this.process(n, 0), a = 0);
166
+ t[a++] = 128, se(this.buffer.subarray(a)), this.padOffset > r - a && (this.process(n, 0), a = 0);
135
167
  for (let e = a; e < r; e++) t[e] = 0;
136
168
  n.setBigUint64(r - 8, BigInt(this.length * 8), i), this.process(n, 0);
137
- let o = k(e), s = this.outputLen;
169
+ let o = ce(e), s = this.outputLen;
138
170
  if (s % 4) throw Error(`_sha2: outputLen must be aligned to 32bit`);
139
171
  let c = s / 4, l = this.get();
140
172
  if (c > l.length) throw Error(`_sha2: outputLen bigger than state`);
@@ -155,7 +187,7 @@ var ue = class {
155
187
  return this._cloneInto();
156
188
  }
157
189
  };
158
- const j = Uint32Array.from([
190
+ const k = Uint32Array.from([
159
191
  1779033703,
160
192
  3144134277,
161
193
  1013904242,
@@ -164,25 +196,25 @@ const j = Uint32Array.from([
164
196
  2600822924,
165
197
  528734635,
166
198
  1541459225
167
- ]), M = BigInt(2 ** 32 - 1), de = BigInt(32);
168
- function fe(e, t = !1) {
199
+ ]), A = BigInt(2 ** 32 - 1), ve = BigInt(32);
200
+ function ye(e, t = !1) {
169
201
  return t ? {
170
- h: Number(e & M),
171
- l: Number(e >> de & M)
202
+ h: Number(e & A),
203
+ l: Number(e >> ve & A)
172
204
  } : {
173
- h: Number(e >> de & M) | 0,
174
- l: Number(e & M) | 0
205
+ h: Number(e >> ve & A) | 0,
206
+ l: Number(e & A) | 0
175
207
  };
176
208
  }
177
- function pe(e, t = !1) {
209
+ function be(e, t = !1) {
178
210
  let n = e.length, r = new Uint32Array(n), i = new Uint32Array(n);
179
211
  for (let a = 0; a < n; a++) {
180
- let { h: n, l: o } = fe(e[a], t);
212
+ let { h: n, l: o } = ye(e[a], t);
181
213
  [r[a], i[a]] = [n, o];
182
214
  }
183
215
  return [r, i];
184
216
  }
185
- const me = Uint32Array.from([
217
+ const xe = Uint32Array.from([
186
218
  1116352408,
187
219
  1899447441,
188
220
  3049323471,
@@ -247,8 +279,8 @@ const me = Uint32Array.from([
247
279
  2756734187,
248
280
  3204031479,
249
281
  3329325298
250
- ]), N = new Uint32Array(64);
251
- var he = class extends ue {
282
+ ]), j = new Uint32Array(64);
283
+ var Se = class extends _e {
252
284
  constructor(e) {
253
285
  super(64, e, 8, !1);
254
286
  }
@@ -269,41 +301,41 @@ var he = class extends ue {
269
301
  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;
270
302
  }
271
303
  process(e, t) {
272
- for (let n = 0; n < 16; n++, t += 4) N[n] = e.getUint32(t, !1);
304
+ for (let n = 0; n < 16; n++, t += 4) j[n] = e.getUint32(t, !1);
273
305
  for (let e = 16; e < 64; e++) {
274
- let t = N[e - 15], n = N[e - 2], r = A(t, 7) ^ A(t, 18) ^ t >>> 3;
275
- N[e] = (A(n, 17) ^ A(n, 19) ^ n >>> 10) + N[e - 7] + r + N[e - 16] | 0;
306
+ let t = j[e - 15], n = j[e - 2], r = O(t, 7) ^ O(t, 18) ^ t >>> 3;
307
+ j[e] = (O(n, 17) ^ O(n, 19) ^ n >>> 10) + j[e - 7] + r + j[e - 16] | 0;
276
308
  }
277
309
  let { A: n, B: r, C: i, D: a, E: o, F: s, G: c, H: l } = this;
278
310
  for (let e = 0; e < 64; e++) {
279
- 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;
311
+ 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;
280
312
  l = c, c = s, s = o, o = a + u | 0, a = i, i = r, r = n, n = u + d | 0;
281
313
  }
282
314
  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);
283
315
  }
284
316
  roundClean() {
285
- O(N);
317
+ se(j);
286
318
  }
287
319
  destroy() {
288
- this.destroyed = !0, this.set(0, 0, 0, 0, 0, 0, 0, 0), O(this.buffer);
289
- }
290
- }, ge = class extends he {
291
- A = j[0] | 0;
292
- B = j[1] | 0;
293
- C = j[2] | 0;
294
- D = j[3] | 0;
295
- E = j[4] | 0;
296
- F = j[5] | 0;
297
- G = j[6] | 0;
298
- H = j[7] | 0;
320
+ this.destroyed = !0, this.set(0, 0, 0, 0, 0, 0, 0, 0), se(this.buffer);
321
+ }
322
+ }, Ce = class extends Se {
323
+ A = k[0] | 0;
324
+ B = k[1] | 0;
325
+ C = k[2] | 0;
326
+ D = k[3] | 0;
327
+ E = k[4] | 0;
328
+ F = k[5] | 0;
329
+ G = k[6] | 0;
330
+ H = k[7] | 0;
299
331
  constructor() {
300
332
  super(32);
301
333
  }
302
334
  };
303
- 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)));
304
- _e[0], _e[1];
305
- oe(() => new ge(), se(1));
306
- const ye = (e) => `generaltranslation Formatting Error: Invalid cutoff style: ${e}.`, be = `DEFAULT_TERMINATOR_KEY`, xe = {
335
+ 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)));
336
+ we[0], we[1];
337
+ pe(() => new Ce(), me(1));
338
+ const Ee = (e) => `generaltranslation Formatting Error: Invalid cutoff style: ${e}.`, De = `DEFAULT_TERMINATOR_KEY`, Oe = {
307
339
  ellipsis: {
308
340
  fr: {
309
341
  terminator: `…`,
@@ -317,37 +349,35 @@ const ye = (e) => `generaltranslation Formatting Error: Invalid cutoff style: ${
317
349
  terminator: `……`,
318
350
  separator: void 0
319
351
  },
320
- [be]: {
352
+ [De]: {
321
353
  terminator: `…`,
322
354
  separator: void 0
323
355
  }
324
356
  },
325
- none: { [be]: {
357
+ none: { [De]: {
326
358
  terminator: void 0,
327
359
  separator: void 0
328
360
  } }
329
361
  };
330
- var Se = class {
331
- constructor(e, t = {}) {
362
+ var ke = class e {
363
+ static resolveLocale(e) {
332
364
  try {
333
- let t = e ? Array.isArray(e) ? e.map((e) => String(e)) : [String(e)] : [`en`], n = Intl.getCanonicalLocales(t);
334
- this.locale = n.length ? n[0] : `en`;
365
+ let t = e ? Array.isArray(e) ? e.map(String) : [String(e)] : [`en`], [n] = Intl.getCanonicalLocales(t);
366
+ return n ?? `en`;
335
367
  } catch {
336
- this.locale = `en`;
337
- }
338
- if (!xe[t.style ?? `ellipsis`]) throw Error(ye(t.style ?? `ellipsis`));
339
- let n, r;
340
- if (t.maxChars !== void 0) {
341
- n = t.style ?? `ellipsis`;
342
- let e = new Intl.Locale(this.locale).language;
343
- r = xe[n][e] || xe[n].DEFAULT_TERMINATOR_KEY;
368
+ return `en`;
344
369
  }
345
- let i = t.terminator ?? r?.terminator, a = i == null ? void 0 : t.separator ?? r?.separator;
346
- 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 = {
347
- maxChars: t.maxChars,
348
- style: n,
349
- terminator: i,
350
- separator: a
370
+ }
371
+ constructor(t, n = {}) {
372
+ this.locale = e.resolveLocale(t);
373
+ let r = n.style ?? `ellipsis`;
374
+ if (!Oe[r]) throw Error(Ee(r));
375
+ 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;
376
+ 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 = {
377
+ maxChars: n.maxChars,
378
+ style: n.maxChars === void 0 ? void 0 : r,
379
+ terminator: a,
380
+ separator: o
351
381
  };
352
382
  }
353
383
  format(e) {
@@ -369,7 +399,7 @@ var Se = class {
369
399
  return this.options;
370
400
  }
371
401
  };
372
- const Ce = {
402
+ const Ae = {
373
403
  Collator: Intl.Collator,
374
404
  DateTimeFormat: Intl.DateTimeFormat,
375
405
  DisplayNames: Intl.DisplayNames,
@@ -379,81 +409,83 @@ const Ce = {
379
409
  PluralRules: Intl.PluralRules,
380
410
  RelativeTimeFormat: Intl.RelativeTimeFormat,
381
411
  Segmenter: Intl.Segmenter,
382
- CutoffFormat: Se
412
+ CutoffFormat: ke
383
413
  };
384
414
  new class {
385
415
  constructor() {
386
416
  this.cache = {};
387
417
  }
388
- _generateKey(e, t = {}) {
418
+ generateKey(e, t = {}) {
389
419
  return `${e ? Array.isArray(e) ? e.map((e) => String(e)).join(`,`) : String(e) : `undefined`}:${t ? JSON.stringify(t, Object.keys(t).sort()) : `{}`}`;
390
420
  }
391
421
  get(e, ...t) {
392
- let [n = `en`, r = {}] = t, i = this._generateKey(n, r), a = this.cache[e]?.[i];
393
- return a === void 0 && (a = new Ce[e](...t), this.cache[e] || (this.cache[e] = {}), this.cache[e][i] = a), a;
422
+ let [n = `en`, r = {}] = t, i = this.generateKey(n, r), a = this.cache[e];
423
+ a === void 0 && (a = {}, this.cache[e] = a);
424
+ let o = a[i];
425
+ return o === void 0 && (o = new Ae[e](...t), a[i] = o), o;
394
426
  }
395
427
  }();
396
- var P = m({
397
- __addDisposableResource: () => Ze,
398
- __assign: () => R,
399
- __asyncDelegator: () => Ue,
400
- __asyncGenerator: () => He,
401
- __asyncValues: () => We,
402
- __await: () => I,
403
- __awaiter: () => Fe,
404
- __classPrivateFieldGet: () => Je,
405
- __classPrivateFieldIn: () => Xe,
406
- __classPrivateFieldSet: () => Ye,
407
- __createBinding: () => z,
408
- __decorate: () => Oe,
409
- __disposeResources: () => Qe,
410
- __esDecorate: () => Ae,
411
- __exportStar: () => Le,
412
- __extends: () => Ee,
413
- __generator: () => Ie,
414
- __importDefault: () => qe,
415
- __importStar: () => Ke,
416
- __makeTemplateObject: () => Ge,
417
- __metadata: () => Pe,
418
- __param: () => ke,
419
- __propKey: () => Me,
420
- __read: () => Re,
421
- __rest: () => De,
422
- __rewriteRelativeImportExtension: () => $e,
423
- __runInitializers: () => je,
424
- __setFunctionName: () => Ne,
425
- __spread: () => ze,
426
- __spreadArray: () => Ve,
427
- __spreadArrays: () => Be,
428
- __values: () => F,
429
- default: () => nt
428
+ var M = m({
429
+ __addDisposableResource: () => it,
430
+ __assign: () => F,
431
+ __asyncDelegator: () => Xe,
432
+ __asyncGenerator: () => Ye,
433
+ __asyncValues: () => Ze,
434
+ __await: () => P,
435
+ __awaiter: () => He,
436
+ __classPrivateFieldGet: () => tt,
437
+ __classPrivateFieldIn: () => rt,
438
+ __classPrivateFieldSet: () => nt,
439
+ __createBinding: () => I,
440
+ __decorate: () => Fe,
441
+ __disposeResources: () => at,
442
+ __esDecorate: () => Le,
443
+ __exportStar: () => We,
444
+ __extends: () => Ne,
445
+ __generator: () => Ue,
446
+ __importDefault: () => et,
447
+ __importStar: () => $e,
448
+ __makeTemplateObject: () => Qe,
449
+ __metadata: () => Ve,
450
+ __param: () => Ie,
451
+ __propKey: () => ze,
452
+ __read: () => Ge,
453
+ __rest: () => Pe,
454
+ __rewriteRelativeImportExtension: () => ot,
455
+ __runInitializers: () => Re,
456
+ __setFunctionName: () => Be,
457
+ __spread: () => Ke,
458
+ __spreadArray: () => Je,
459
+ __spreadArrays: () => qe,
460
+ __values: () => N,
461
+ default: () => ut
430
462
  });
431
- function Ee(e, t) {
463
+ function Ne(e, t) {
432
464
  if (typeof t != `function` && t !== null) throw TypeError(`Class extends value ` + String(t) + ` is not a constructor or null`);
433
- L(e, t);
465
+ st(e, t);
434
466
  function n() {
435
467
  this.constructor = e;
436
468
  }
437
469
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
438
470
  }
439
- function De(e, t) {
471
+ function Pe(e, t) {
440
472
  var n = {};
441
473
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
442
474
  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]]);
443
475
  return n;
444
476
  }
445
- function Oe(e, t, n, r) {
477
+ function Fe(e, t, n, r) {
446
478
  var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
447
479
  if (typeof Reflect == `object` && typeof Reflect.decorate == `function`) a = Reflect.decorate(e, t, n, r);
448
480
  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);
449
481
  return i > 3 && a && Object.defineProperty(t, n, a), a;
450
482
  }
451
- function ke(e, t) {
483
+ function Ie(e, t) {
452
484
  return function(n, r) {
453
485
  t(n, r, e);
454
486
  };
455
487
  }
456
- function Ae(e, t, n, r, i, a) {
488
+ function Le(e, t, n, r, i, a) {
457
489
  function o(e) {
458
490
  if (e !== void 0 && typeof e != `function`) throw TypeError(`Function expected`);
459
491
  return e;
@@ -478,23 +510,23 @@ function Ae(e, t, n, r, i, a) {
478
510
  }
479
511
  l && Object.defineProperty(l, r.name, u), f = !0;
480
512
  }
481
- function je(e, t, n) {
513
+ function Re(e, t, n) {
482
514
  for (var r = arguments.length > 2, i = 0; i < t.length; i++) n = r ? t[i].call(e, n) : t[i].call(e);
483
515
  return r ? n : void 0;
484
516
  }
485
- function Me(e) {
517
+ function ze(e) {
486
518
  return typeof e == `symbol` ? e : `${e}`;
487
519
  }
488
- function Ne(e, t, n) {
520
+ function Be(e, t, n) {
489
521
  return typeof t == `symbol` && (t = t.description ? `[${t.description}]` : ``), Object.defineProperty(e, `name`, {
490
522
  configurable: !0,
491
523
  value: n ? `${n} ${t}` : t
492
524
  });
493
525
  }
494
- function Pe(e, t) {
526
+ function Ve(e, t) {
495
527
  if (typeof Reflect == `object` && typeof Reflect.metadata == `function`) return Reflect.metadata(e, t);
496
528
  }
497
- function Fe(e, t, n, r) {
529
+ function He(e, t, n, r) {
498
530
  function i(e) {
499
531
  return e instanceof n ? e : new n(function(t) {
500
532
  t(e);
@@ -521,7 +553,7 @@ function Fe(e, t, n, r) {
521
553
  c((r = r.apply(e, t || [])).next());
522
554
  });
523
555
  }
524
- function Ie(e, t) {
556
+ function Ue(e, t) {
525
557
  var n = {
526
558
  label: 0,
527
559
  sent: function() {
@@ -591,10 +623,10 @@ function Ie(e, t) {
591
623
  };
592
624
  }
593
625
  }
594
- function Le(e, t) {
595
- for (var n in e) n !== `default` && !Object.prototype.hasOwnProperty.call(t, n) && z(t, e, n);
626
+ function We(e, t) {
627
+ for (var n in e) n !== `default` && !Object.prototype.hasOwnProperty.call(t, n) && I(t, e, n);
596
628
  }
597
- function F(e) {
629
+ function N(e) {
598
630
  var t = typeof Symbol == `function` && Symbol.iterator, n = t && e[t], r = 0;
599
631
  if (n) return n.call(e);
600
632
  if (e && typeof e.length == `number`) return { next: function() {
@@ -605,7 +637,7 @@ function F(e) {
605
637
  } };
606
638
  throw TypeError(t ? `Object is not iterable.` : `Symbol.iterator is not defined.`);
607
639
  }
608
- function Re(e, t) {
640
+ function Ge(e, t) {
609
641
  var n = typeof Symbol == `function` && e[Symbol.iterator];
610
642
  if (!n) return e;
611
643
  var r = n.call(e), i, a = [], o;
@@ -622,23 +654,23 @@ function Re(e, t) {
622
654
  }
623
655
  return a;
624
656
  }
625
- function ze() {
626
- for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(Re(arguments[t]));
657
+ function Ke() {
658
+ for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(Ge(arguments[t]));
627
659
  return e;
628
660
  }
629
- function Be() {
661
+ function qe() {
630
662
  for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
631
663
  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];
632
664
  return r;
633
665
  }
634
- function Ve(e, t, n) {
666
+ function Je(e, t, n) {
635
667
  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]);
636
668
  return e.concat(a || Array.prototype.slice.call(t));
637
669
  }
638
- function I(e) {
639
- return this instanceof I ? (this.v = e, this) : new I(e);
670
+ function P(e) {
671
+ return this instanceof P ? (this.v = e, this) : new P(e);
640
672
  }
641
- function He(e, t, n) {
673
+ function Ye(e, t, n) {
642
674
  if (!Symbol.asyncIterator) throw TypeError(`Symbol.asyncIterator is not defined.`);
643
675
  var r = n.apply(e, t || []), i, a = [];
644
676
  return i = Object.create((typeof AsyncIterator == `function` ? AsyncIterator : Object).prototype), s(`next`), s(`throw`), s(`return`, o), i[Symbol.asyncIterator] = function() {
@@ -669,7 +701,7 @@ function He(e, t, n) {
669
701
  }
670
702
  }
671
703
  function l(e) {
672
- e.value instanceof I ? Promise.resolve(e.value.v).then(u, d) : f(a[0][2], e);
704
+ e.value instanceof P ? Promise.resolve(e.value.v).then(u, d) : f(a[0][2], e);
673
705
  }
674
706
  function u(e) {
675
707
  c(`next`, e);
@@ -681,7 +713,7 @@ function He(e, t, n) {
681
713
  e(t), a.shift(), a.length && c(a[0][0], a[0][1]);
682
714
  }
683
715
  }
684
- function Ue(e) {
716
+ function Xe(e) {
685
717
  var t, n;
686
718
  return t = {}, r(`next`), r(`throw`, function(e) {
687
719
  throw e;
@@ -691,16 +723,16 @@ function Ue(e) {
691
723
  function r(r, i) {
692
724
  t[r] = e[r] ? function(t) {
693
725
  return (n = !n) ? {
694
- value: I(e[r](t)),
726
+ value: P(e[r](t)),
695
727
  done: !1
696
728
  } : i ? i(t) : t;
697
729
  } : i;
698
730
  }
699
731
  }
700
- function We(e) {
732
+ function Ze(e) {
701
733
  if (!Symbol.asyncIterator) throw TypeError(`Symbol.asyncIterator is not defined.`);
702
734
  var t = e[Symbol.asyncIterator], n;
703
- 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() {
735
+ 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() {
704
736
  return this;
705
737
  }, n);
706
738
  function r(t) {
@@ -719,34 +751,34 @@ function We(e) {
719
751
  }, t);
720
752
  }
721
753
  }
722
- function Ge(e, t) {
754
+ function Qe(e, t) {
723
755
  return Object.defineProperty ? Object.defineProperty(e, `raw`, { value: t }) : e.raw = t, e;
724
756
  }
725
- function Ke(e) {
757
+ function $e(e) {
726
758
  if (e && e.__esModule) return e;
727
759
  var t = {};
728
- if (e != null) for (var n = B(e), r = 0; r < n.length; r++) n[r] !== `default` && z(t, e, n[r]);
729
- return et(t, e), t;
760
+ if (e != null) for (var n = L(e), r = 0; r < n.length; r++) n[r] !== `default` && I(t, e, n[r]);
761
+ return ct(t, e), t;
730
762
  }
731
- function qe(e) {
763
+ function et(e) {
732
764
  return e && e.__esModule ? e : { default: e };
733
765
  }
734
- function Je(e, t, n, r) {
766
+ function tt(e, t, n, r) {
735
767
  if (n === `a` && !r) throw TypeError(`Private accessor was defined without a getter`);
736
768
  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`);
737
769
  return n === `m` ? r : n === `a` ? r.call(e) : r ? r.value : t.get(e);
738
770
  }
739
- function Ye(e, t, n, r, i) {
771
+ function nt(e, t, n, r, i) {
740
772
  if (r === `m`) throw TypeError(`Private method is not writable`);
741
773
  if (r === `a` && !i) throw TypeError(`Private accessor was defined without a setter`);
742
774
  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`);
743
775
  return r === `a` ? i.call(e, n) : i ? i.value = n : t.set(e, n), n;
744
776
  }
745
- function Xe(e, t) {
777
+ function rt(e, t) {
746
778
  if (t === null || typeof t != `object` && typeof t != `function`) throw TypeError(`Cannot use 'in' operator on non-object`);
747
779
  return typeof e == `function` ? t === e : e.has(t);
748
780
  }
749
- function Ze(e, t, n) {
781
+ function it(e, t, n) {
750
782
  if (t != null) {
751
783
  if (typeof t != `object` && typeof t != `function`) throw TypeError(`Object expected.`);
752
784
  var r, i;
@@ -773,9 +805,9 @@ function Ze(e, t, n) {
773
805
  } else n && e.stack.push({ async: !0 });
774
806
  return t;
775
807
  }
776
- function Qe(e) {
808
+ function at(e) {
777
809
  function t(t) {
778
- e.error = e.hasError ? new tt(t, e.error, `An error was suppressed during disposal.`) : t, e.hasError = !0;
810
+ e.error = e.hasError ? new lt(t, e.error, `An error was suppressed during disposal.`) : t, e.hasError = !0;
779
811
  }
780
812
  var n, r = 0;
781
813
  function i() {
@@ -795,24 +827,24 @@ function Qe(e) {
795
827
  }
796
828
  return i();
797
829
  }
798
- function $e(e, t) {
830
+ function ot(e, t) {
799
831
  return typeof e == `string` && /^\.\.?\//.test(e) ? e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(e, n, r, i, a) {
800
832
  return n ? t ? `.jsx` : `.js` : r && (!i || !a) ? e : r + i + `.` + a.toLowerCase() + `js`;
801
833
  }) : e;
802
834
  }
803
- var L, R, z, et, B, tt, nt, V = f((() => {
804
- L = function(e, t) {
805
- return L = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
835
+ var st, F, I, ct, L, lt, ut, R = f((() => {
836
+ st = function(e, t) {
837
+ return st = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
806
838
  e.__proto__ = t;
807
839
  } || function(e, t) {
808
840
  for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
809
- }, L(e, t);
810
- }, R = function() {
811
- return R = Object.assign || function(e) {
841
+ }, st(e, t);
842
+ }, F = function() {
843
+ return F = Object.assign || function(e) {
812
844
  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]);
813
845
  return e;
814
- }, R.apply(this, arguments);
815
- }, z = Object.create ? (function(e, t, n, r) {
846
+ }, F.apply(this, arguments);
847
+ }, I = Object.create ? (function(e, t, n, r) {
816
848
  r === void 0 && (r = n);
817
849
  var i = Object.getOwnPropertyDescriptor(t, n);
818
850
  (!i || (`get` in i ? !t.__esModule : i.writable || i.configurable)) && (i = {
@@ -823,63 +855,63 @@ var L, R, z, et, B, tt, nt, V = f((() => {
823
855
  }), Object.defineProperty(e, r, i);
824
856
  }) : (function(e, t, n, r) {
825
857
  r === void 0 && (r = n), e[r] = t[n];
826
- }), et = Object.create ? (function(e, t) {
858
+ }), ct = Object.create ? (function(e, t) {
827
859
  Object.defineProperty(e, `default`, {
828
860
  enumerable: !0,
829
861
  value: t
830
862
  });
831
863
  }) : function(e, t) {
832
864
  e.default = t;
833
- }, B = function(e) {
834
- return B = Object.getOwnPropertyNames || function(e) {
865
+ }, L = function(e) {
866
+ return L = Object.getOwnPropertyNames || function(e) {
835
867
  var t = [];
836
868
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[t.length] = n);
837
869
  return t;
838
- }, B(e);
839
- }, tt = typeof SuppressedError == `function` ? SuppressedError : function(e, t, n) {
870
+ }, L(e);
871
+ }, lt = typeof SuppressedError == `function` ? SuppressedError : function(e, t, n) {
840
872
  var r = Error(n);
841
873
  return r.name = `SuppressedError`, r.error = e, r.suppressed = t, r;
842
- }, nt = {
843
- __extends: Ee,
844
- __assign: R,
845
- __rest: De,
846
- __decorate: Oe,
847
- __param: ke,
848
- __esDecorate: Ae,
849
- __runInitializers: je,
850
- __propKey: Me,
851
- __setFunctionName: Ne,
852
- __metadata: Pe,
853
- __awaiter: Fe,
854
- __generator: Ie,
855
- __createBinding: z,
856
- __exportStar: Le,
857
- __values: F,
858
- __read: Re,
859
- __spread: ze,
860
- __spreadArrays: Be,
861
- __spreadArray: Ve,
862
- __await: I,
863
- __asyncGenerator: He,
864
- __asyncDelegator: Ue,
865
- __asyncValues: We,
866
- __makeTemplateObject: Ge,
867
- __importStar: Ke,
868
- __importDefault: qe,
869
- __classPrivateFieldGet: Je,
870
- __classPrivateFieldSet: Ye,
871
- __classPrivateFieldIn: Xe,
872
- __addDisposableResource: Ze,
873
- __disposeResources: Qe,
874
- __rewriteRelativeImportExtension: $e
874
+ }, ut = {
875
+ __extends: Ne,
876
+ __assign: F,
877
+ __rest: Pe,
878
+ __decorate: Fe,
879
+ __param: Ie,
880
+ __esDecorate: Le,
881
+ __runInitializers: Re,
882
+ __propKey: ze,
883
+ __setFunctionName: Be,
884
+ __metadata: Ve,
885
+ __awaiter: He,
886
+ __generator: Ue,
887
+ __createBinding: I,
888
+ __exportStar: We,
889
+ __values: N,
890
+ __read: Ge,
891
+ __spread: Ke,
892
+ __spreadArrays: qe,
893
+ __spreadArray: Je,
894
+ __await: P,
895
+ __asyncGenerator: Ye,
896
+ __asyncDelegator: Xe,
897
+ __asyncValues: Ze,
898
+ __makeTemplateObject: Qe,
899
+ __importStar: $e,
900
+ __importDefault: et,
901
+ __classPrivateFieldGet: tt,
902
+ __classPrivateFieldSet: nt,
903
+ __classPrivateFieldIn: rt,
904
+ __addDisposableResource: it,
905
+ __disposeResources: at,
906
+ __rewriteRelativeImportExtension: ot
875
907
  };
876
- })), rt = p(((e) => {
908
+ })), dt = p(((e) => {
877
909
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.ErrorKind = void 0;
878
910
  var t;
879
911
  (function(e) {
880
912
  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`;
881
913
  })(t || (e.ErrorKind = t = {}));
882
- })), H = p(((e) => {
914
+ })), z = p(((e) => {
883
915
  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;
884
916
  var t;
885
917
  (function(e) {
@@ -935,9 +967,9 @@ var L, R, z, et, B, tt, nt, V = f((() => {
935
967
  style: n
936
968
  };
937
969
  }
938
- })), it = p(((e) => {
970
+ })), ft = p(((e) => {
939
971
  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]/;
940
- })), at = p(((e) => {
972
+ })), pt = p(((e) => {
941
973
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.parseDateTimeSkeleton = n;
942
974
  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;
943
975
  function n(e) {
@@ -1037,11 +1069,11 @@ var L, R, z, et, B, tt, nt, V = f((() => {
1037
1069
  return ``;
1038
1070
  }), n;
1039
1071
  }
1040
- })), ot = p(((e) => {
1072
+ })), mt = p(((e) => {
1041
1073
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.WHITE_SPACE_REGEX = void 0, e.WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1042
- })), st = p(((e) => {
1074
+ })), ht = p(((e) => {
1043
1075
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.parseNumberSkeletonFromString = r, e.parseNumberSkeleton = p;
1044
- var t = (V(), g(P)), n = ot();
1076
+ var t = (R(), g(M)), n = mt();
1045
1077
  function r(e) {
1046
1078
  if (e.length === 0) throw Error(`Number skeleton cannot be empty`);
1047
1079
  for (var t = e.split(n.WHITE_SPACE_REGEX).filter(function(e) {
@@ -1219,11 +1251,11 @@ var L, R, z, et, B, tt, nt, V = f((() => {
1219
1251
  }
1220
1252
  return n;
1221
1253
  }
1222
- })), ct = p(((e) => {
1254
+ })), gt = p(((e) => {
1223
1255
  Object.defineProperty(e, `__esModule`, { value: !0 });
1224
- var t = (V(), g(P));
1225
- t.__exportStar(at(), e), t.__exportStar(st(), e);
1226
- })), lt = p(((e) => {
1256
+ var t = (R(), g(M));
1257
+ t.__exportStar(pt(), e), t.__exportStar(ht(), e);
1258
+ })), _t = p(((e) => {
1227
1259
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.timeData = void 0, e.timeData = {
1228
1260
  "001": [`H`, `h`],
1229
1261
  419: [
@@ -2380,9 +2412,9 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2380
2412
  `h`
2381
2413
  ]
2382
2414
  };
2383
- })), ut = p(((e) => {
2415
+ })), vt = p(((e) => {
2384
2416
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.getBestPattern = n;
2385
- var t = lt();
2417
+ var t = _t();
2386
2418
  function n(e, t) {
2387
2419
  for (var n = ``, i = 0; i < e.length; i++) {
2388
2420
  var a = e.charAt(i);
@@ -2407,9 +2439,9 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2407
2439
  var r = e.language, i;
2408
2440
  return r !== `root` && (i = e.maximize().region), (t.timeData[i || ``] || t.timeData[r || ``] || t.timeData[`${r}-001`] || t.timeData[`001`])[0];
2409
2441
  }
2410
- })), dt = p(((e) => {
2442
+ })), yt = p(((e) => {
2411
2443
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.Parser = void 0;
2412
- 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}*\$`);
2444
+ 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}*\$`);
2413
2445
  function l(e, t) {
2414
2446
  return {
2415
2447
  start: e,
@@ -2420,21 +2452,21 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2420
2452
  return typeof e == `number` && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2421
2453
  }, v = !0;
2422
2454
  try {
2423
- v = C(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`).exec(`a`)?.[0] === `a`;
2455
+ v = S(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`).exec(`a`)?.[0] === `a`;
2424
2456
  } catch {
2425
2457
  v = !1;
2426
2458
  }
2427
- var y = u ? function(e, t, n) {
2459
+ var ee = u ? function(e, t, n) {
2428
2460
  return e.startsWith(t, n);
2429
2461
  } : function(e, t, n) {
2430
2462
  return e.slice(n, n + t.length) === t;
2431
- }, b = d ? String.fromCodePoint : function() {
2463
+ }, y = d ? String.fromCodePoint : function() {
2432
2464
  for (var e = [...arguments], t = ``, n = e.length, r = 0, i; n > r;) {
2433
2465
  if (i = e[r++], i > 1114111) throw RangeError(i + ` is not a valid code point`);
2434
2466
  t += i < 65536 ? String.fromCharCode(i) : String.fromCharCode(((i -= 65536) >> 10) + 55296, i % 1024 + 56320);
2435
2467
  }
2436
2468
  return t;
2437
- }, ee = f ? Object.fromEntries : function(e) {
2469
+ }, b = f ? Object.fromEntries : function(e) {
2438
2470
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
2439
2471
  var i = r[n], a = i[0];
2440
2472
  t[a] = i[1];
@@ -2448,31 +2480,31 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2448
2480
  var r = e.charCodeAt(t), i;
2449
2481
  return r < 55296 || r > 56319 || t + 1 === n || (i = e.charCodeAt(t + 1)) < 56320 || i > 57343 ? r : (r - 55296 << 10) + (i - 56320) + 65536;
2450
2482
  }
2451
- }, S = m ? function(e) {
2483
+ }, te = m ? function(e) {
2452
2484
  return e.trimStart();
2453
2485
  } : function(e) {
2454
2486
  return e.replace(s, ``);
2455
- }, te = h ? function(e) {
2487
+ }, ne = h ? function(e) {
2456
2488
  return e.trimEnd();
2457
2489
  } : function(e) {
2458
2490
  return e.replace(c, ``);
2459
2491
  };
2460
- function C(e, t) {
2492
+ function S(e, t) {
2461
2493
  return new RegExp(e, t);
2462
2494
  }
2463
- var w;
2495
+ var C;
2464
2496
  if (v) {
2465
- var T = C(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
2466
- w = function(e, t) {
2467
- return T.lastIndex = t, T.exec(e)[1] ?? ``;
2497
+ var w = S(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
2498
+ C = function(e, t) {
2499
+ return w.lastIndex = t, w.exec(e)[1] ?? ``;
2468
2500
  };
2469
- } else w = function(e, t) {
2501
+ } else C = function(e, t) {
2470
2502
  for (var n = [];;) {
2471
2503
  var r = x(e, t);
2472
- if (r === void 0 || k(r) || A(r)) break;
2504
+ if (r === void 0 || ie(r) || D(r)) break;
2473
2505
  n.push(r), t += r >= 65536 ? 2 : 1;
2474
2506
  }
2475
- return b.apply(void 0, n);
2507
+ return y.apply(void 0, n);
2476
2508
  };
2477
2509
  e.Parser = function() {
2478
2510
  function e(e, t) {
@@ -2502,7 +2534,7 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2502
2534
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2503
2535
  if (i) break;
2504
2536
  return this.error(n.ErrorKind.UNMATCHED_CLOSING_TAG, l(this.clonePosition(), this.clonePosition()));
2505
- } else if (o === 60 && !this.ignoreTag && E(this.peek() || 0)) {
2537
+ } else if (o === 60 && !this.ignoreTag && T(this.peek() || 0)) {
2506
2538
  var s = this.parseTag(e, t);
2507
2539
  if (s.err) return s;
2508
2540
  a.push(s.val);
@@ -2533,7 +2565,7 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2533
2565
  if (o.err) return o;
2534
2566
  var s = o.val, c = this.clonePosition();
2535
2567
  if (this.bumpIf(`</`)) {
2536
- if (this.isEOF() || !E(this.char())) return this.error(n.ErrorKind.INVALID_TAG, l(c, this.clonePosition()));
2568
+ if (this.isEOF() || !T(this.char())) return this.error(n.ErrorKind.INVALID_TAG, l(c, this.clonePosition()));
2537
2569
  var u = this.clonePosition();
2538
2570
  return a === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(`>`) ? {
2539
2571
  val: {
@@ -2548,7 +2580,7 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2548
2580
  } else return this.error(n.ErrorKind.INVALID_TAG, l(i, this.clonePosition()));
2549
2581
  }, e.prototype.parseTagName = function() {
2550
2582
  var e = this.offset();
2551
- for (this.bump(); !this.isEOF() && O(this.char());) this.bump();
2583
+ for (this.bump(); !this.isEOF() && E(this.char());) this.bump();
2552
2584
  return this.message.slice(e, this.offset());
2553
2585
  }, e.prototype.parseLiteral = function(e, t) {
2554
2586
  for (var n = this.clonePosition(), i = ``;;) {
@@ -2579,7 +2611,7 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2579
2611
  err: null
2580
2612
  };
2581
2613
  }, e.prototype.tryParseLeftAngleBracket = function() {
2582
- return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !D(this.peek() || 0)) ? (this.bump(), `<`) : null;
2614
+ return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !re(this.peek() || 0)) ? (this.bump(), `<`) : null;
2583
2615
  }, e.prototype.tryParseQuote = function(e) {
2584
2616
  if (this.isEOF() || this.char() !== 39) return null;
2585
2617
  switch (this.peek()) {
@@ -2605,11 +2637,11 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2605
2637
  else t.push(n);
2606
2638
  this.bump();
2607
2639
  }
2608
- return b.apply(void 0, t);
2640
+ return y.apply(void 0, t);
2609
2641
  }, e.prototype.tryParseUnquoted = function(e, t) {
2610
2642
  if (this.isEOF()) return null;
2611
2643
  var n = this.char();
2612
- return n === 60 || n === 123 || n === 35 && (t === `plural` || t === `selectordinal`) || n === 125 && e > 0 ? null : (this.bump(), b(n));
2644
+ return n === 60 || n === 123 || n === 35 && (t === `plural` || t === `selectordinal`) || n === 125 && e > 0 ? null : (this.bump(), y(n));
2613
2645
  }, e.prototype.parseArgument = function(e, t) {
2614
2646
  var i = this.clonePosition();
2615
2647
  if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(n.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, l(i, this.clonePosition()));
@@ -2630,7 +2662,7 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2630
2662
  default: return this.error(n.ErrorKind.MALFORMED_ARGUMENT, l(i, this.clonePosition()));
2631
2663
  }
2632
2664
  }, e.prototype.parseIdentifierIfPossible = function() {
2633
- var e = this.clonePosition(), t = this.offset(), n = w(this.message, t), r = t + n.length;
2665
+ var e = this.clonePosition(), t = this.offset(), n = C(this.message, t), r = t + n.length;
2634
2666
  return this.bumpTo(r), {
2635
2667
  value: n,
2636
2668
  location: l(e, this.clonePosition())
@@ -2648,7 +2680,7 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2648
2680
  this.bumpSpace();
2649
2681
  var m = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
2650
2682
  if (h.err) return h;
2651
- var g = te(h.val);
2683
+ var g = ne(h.val);
2652
2684
  if (g.length === 0) return this.error(n.ErrorKind.EXPECT_ARGUMENT_STYLE, l(this.clonePosition(), this.clonePosition()));
2653
2685
  p = {
2654
2686
  style: g,
@@ -2658,10 +2690,10 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2658
2690
  var _ = this.tryParseArgumentClose(c);
2659
2691
  if (_.err) return _;
2660
2692
  var v = l(c, this.clonePosition());
2661
- if (p && y(p?.style, `::`, 0)) {
2662
- var b = S(p.style.slice(2));
2693
+ if (p && ee(p?.style, `::`, 0)) {
2694
+ var y = te(p.style.slice(2));
2663
2695
  if (d === `number`) {
2664
- var h = this.parseNumberSkeletonFromString(b, p.styleLocation);
2696
+ var h = this.parseNumberSkeletonFromString(y, p.styleLocation);
2665
2697
  return h.err ? h : {
2666
2698
  val: {
2667
2699
  type: r.TYPE.number,
@@ -2672,9 +2704,9 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2672
2704
  err: null
2673
2705
  };
2674
2706
  } else {
2675
- if (b.length === 0) return this.error(n.ErrorKind.EXPECT_DATE_TIME_SKELETON, v);
2676
- var x = b;
2677
- this.locale && (x = (0, o.getBestPattern)(b, this.locale));
2707
+ if (y.length === 0) return this.error(n.ErrorKind.EXPECT_DATE_TIME_SKELETON, v);
2708
+ var x = y;
2709
+ this.locale && (x = (0, o.getBestPattern)(y, this.locale));
2678
2710
  var g = {
2679
2711
  type: r.SKELETON_TYPE.dateTime,
2680
2712
  pattern: x,
@@ -2704,38 +2736,38 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2704
2736
  case `plural`:
2705
2737
  case `selectordinal`:
2706
2738
  case `select`:
2707
- var C = this.clonePosition();
2708
- if (this.bumpSpace(), !this.bumpIf(`,`)) return this.error(n.ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS, l(C, t.__assign({}, C)));
2739
+ var S = this.clonePosition();
2740
+ if (this.bumpSpace(), !this.bumpIf(`,`)) return this.error(n.ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS, l(S, t.__assign({}, S)));
2709
2741
  this.bumpSpace();
2710
- var w = this.parseIdentifierIfPossible(), T = 0;
2711
- if (d !== `select` && w.value === `offset`) {
2742
+ var C = this.parseIdentifierIfPossible(), w = 0;
2743
+ if (d !== `select` && C.value === `offset`) {
2712
2744
  if (!this.bumpIf(`:`)) return this.error(n.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, l(this.clonePosition(), this.clonePosition()));
2713
2745
  this.bumpSpace();
2714
2746
  var h = this.tryParseDecimalInteger(n.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, n.ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2715
2747
  if (h.err) return h;
2716
- this.bumpSpace(), w = this.parseIdentifierIfPossible(), T = h.val;
2748
+ this.bumpSpace(), C = this.parseIdentifierIfPossible(), w = h.val;
2717
2749
  }
2718
- var E = this.tryParsePluralOrSelectOptions(e, d, i, w);
2719
- if (E.err) return E;
2750
+ var T = this.tryParsePluralOrSelectOptions(e, d, i, C);
2751
+ if (T.err) return T;
2720
2752
  var _ = this.tryParseArgumentClose(c);
2721
2753
  if (_.err) return _;
2722
- var D = l(c, this.clonePosition());
2754
+ var re = l(c, this.clonePosition());
2723
2755
  return d === `select` ? {
2724
2756
  val: {
2725
2757
  type: r.TYPE.select,
2726
2758
  value: s,
2727
- options: ee(E.val),
2728
- location: D
2759
+ options: b(T.val),
2760
+ location: re
2729
2761
  },
2730
2762
  err: null
2731
2763
  } : {
2732
2764
  val: {
2733
2765
  type: r.TYPE.plural,
2734
2766
  value: s,
2735
- options: ee(E.val),
2736
- offset: T,
2767
+ options: b(T.val),
2768
+ offset: w,
2737
2769
  pluralType: d === `plural` ? `cardinal` : `ordinal`,
2738
- location: D
2770
+ location: re
2739
2771
  },
2740
2772
  err: null
2741
2773
  };
@@ -2859,7 +2891,7 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2859
2891
  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);
2860
2892
  }
2861
2893
  }, e.prototype.bumpIf = function(e) {
2862
- if (y(this.message, e, this.offset())) {
2894
+ if (ee(this.message, e, this.offset())) {
2863
2895
  for (var t = 0; t < e.length; t++) this.bump();
2864
2896
  return !0;
2865
2897
  }
@@ -2876,31 +2908,31 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2876
2908
  if (this.bump(), this.isEOF()) break;
2877
2909
  }
2878
2910
  }, e.prototype.bumpSpace = function() {
2879
- for (; !this.isEOF() && k(this.char());) this.bump();
2911
+ for (; !this.isEOF() && ie(this.char());) this.bump();
2880
2912
  }, e.prototype.peek = function() {
2881
2913
  if (this.isEOF()) return null;
2882
2914
  var e = this.char(), t = this.offset();
2883
2915
  return this.message.charCodeAt(t + (e >= 65536 ? 2 : 1)) ?? null;
2884
2916
  }, e;
2885
2917
  }();
2886
- function E(e) {
2918
+ function T(e) {
2887
2919
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
2888
2920
  }
2889
- function D(e) {
2890
- return E(e) || e === 47;
2921
+ function re(e) {
2922
+ return T(e) || e === 47;
2891
2923
  }
2892
- function O(e) {
2924
+ function E(e) {
2893
2925
  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;
2894
2926
  }
2895
- function k(e) {
2927
+ function ie(e) {
2896
2928
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
2897
2929
  }
2898
- function A(e) {
2930
+ function D(e) {
2899
2931
  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;
2900
2932
  }
2901
- })), ft = p(((e) => {
2933
+ })), bt = p(((e) => {
2902
2934
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.hoistSelectors = s, e.isStructurallySame = l;
2903
- var t = (V(), g(P)), n = H();
2935
+ var t = (R(), g(M)), n = z();
2904
2936
  function r(e) {
2905
2937
  return Array.isArray(e) ? t.__spreadArray([], e.map(r), !0) : typeof e == `object` && e ? Object.keys(e).reduce(function(t, n) {
2906
2938
  return t[n] = r(e[n]), t;
@@ -2957,9 +2989,9 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2957
2989
  error: Error(`Different number of variables: [${Array.from(r.keys()).join(`, `)}] vs [${Array.from(i.keys()).join(`, `)}]`)
2958
2990
  };
2959
2991
  }
2960
- })), pt = p(((e) => {
2992
+ })), xt = p(((e) => {
2961
2993
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.isStructurallySame = e._Parser = void 0, e.parse = o;
2962
- var t = (V(), g(P)), n = rt(), r = dt(), i = H();
2994
+ var t = (R(), g(M)), n = dt(), r = yt(), i = z();
2963
2995
  function a(e) {
2964
2996
  e.forEach(function(e) {
2965
2997
  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);
@@ -2978,17 +3010,17 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2978
3010
  }
2979
3011
  return i?.captureLocation || a(o.val), o.val;
2980
3012
  }
2981
- t.__exportStar(H(), e), e._Parser = r.Parser;
2982
- var s = ft();
3013
+ t.__exportStar(z(), e), e._Parser = r.Parser;
3014
+ var s = bt();
2983
3015
  Object.defineProperty(e, `isStructurallySame`, {
2984
3016
  enumerable: !0,
2985
3017
  get: function() {
2986
3018
  return s.isStructurallySame;
2987
3019
  }
2988
3020
  });
2989
- })), mt = p(((e) => {
3021
+ })), St = p(((e) => {
2990
3022
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.printAST = r;
2991
- var t = (V(), g(P)), n = H();
3023
+ var t = (R(), g(M)), n = z();
2992
3024
  function r(e) {
2993
3025
  return i(e, !1);
2994
3026
  }
@@ -3051,28 +3083,95 @@ var L, R, z, et, B, tt, nt, V = f((() => {
3051
3083
  ].join(`,`)}}`;
3052
3084
  }
3053
3085
  }));
3054
- pt();
3055
- H();
3056
- mt();
3057
- const K = `_gt_`;
3058
- RegExp(`^${K}\\d+$`);
3059
- RegExp(`^${K}$`);
3060
- const q = `@generaltranslation/react-core`;
3061
- `${q}`, `${q}`, `${q}`, `${q}`, `${q}`, `${q}`;
3062
- `${q}`, `${q}`, `${q}`, `${q}`;
3063
- `${q}`;
3064
- const sn = `generaltranslation.locale`, cn = `generaltranslation.region`;
3065
- react$1.use;
3066
- function Hn({ children: e }) {
3086
+ xt();
3087
+ z();
3088
+ St();
3089
+ const U = `_gt_`;
3090
+ RegExp(`^${U}\\d+$`);
3091
+ RegExp(`^${U}$`);
3092
+ const Ht = `@generaltranslation/react-core`;
3093
+ function W(e) {
3094
+ return S({
3095
+ source: Ht,
3096
+ ...e
3097
+ });
3098
+ }
3099
+ W({
3100
+ severity: `Error`,
3101
+ whatHappened: `Runtime translation needs a project ID`,
3102
+ fix: `Add projectId to your <GTProvider> configuration or set GT_PROJECT_ID in your environment`,
3103
+ docsUrl: `https://generaltranslation.com/dashboard`
3104
+ }), W({
3105
+ severity: `Error`,
3106
+ whatHappened: `Production environments cannot use a development API key`,
3107
+ fix: `Replace it with a production API key before deploying`
3108
+ }), W({
3109
+ severity: `Error`,
3110
+ whatHappened: `The API key is available to client-side production code`,
3111
+ fix: `Move translation credentials to a server-only environment before deploying`
3112
+ }), W({
3113
+ severity: `Error`,
3114
+ whatHappened: `Runtime translation is not configured`,
3115
+ fix: `Add projectId and devApiKey to your environment, or pass them to <GTProvider> directly`
3116
+ }), W({
3117
+ severity: `Error`,
3118
+ whatHappened: `Runtime translations could not be loaded`,
3119
+ wayOut: `Source content will render as a fallback`,
3120
+ fix: `Check your runtime translation configuration and try again`
3121
+ }), W({
3122
+ severity: `Error`,
3123
+ whatHappened: `Runtime translation could not be completed`
3124
+ });
3125
+ W({
3126
+ severity: `Warning`,
3127
+ whatHappened: `Runtime translation needs a project ID`,
3128
+ fix: `Add projectId to <GTProvider> or set GT_PROJECT_ID in your environment`,
3129
+ docsUrl: `https://generaltranslation.com/dashboard`
3130
+ }), W({
3131
+ severity: `Warning`,
3132
+ whatHappened: `Runtime translation needs a development API key`,
3133
+ fix: `Find your development API key at generaltranslation.com/dashboard, or set runtimeUrl to an empty string to disable runtime translation`
3134
+ }), W({
3135
+ severity: `Warning`,
3136
+ whatHappened: `Runtime translation timed out`
3137
+ }), W({
3138
+ severity: `Warning`,
3139
+ whatHappened: `No dictionary was found`,
3140
+ fix: `Pass a dictionary to <GTProvider> or configure a dictionary loader before rendering translations`
3141
+ });
3142
+ `${Ht}`;
3143
+ const pn = `generaltranslation.locale`, mn = `generaltranslation.region`;
3144
+ react.use;
3145
+ function Jn({ children: e }) {
3067
3146
  return e;
3068
3147
  }
3069
- function Un(e) {
3070
- return Hn(e);
3148
+ function Yn(e) {
3149
+ return Jn(e);
3150
+ }
3151
+ Jn._gtt = `derive`, Yn._gtt = `derive`;
3152
+ //#endregion
3153
+ //#region src/shared/cookies.ts
3154
+ /**
3155
+ * Minimally parses a cookie value for a given cookie name.
3156
+ * @param cookieName - The name of the cookie
3157
+ * @returns The cookie value, or undefined when it is not found
3158
+ */
3159
+ function getCookieValue(cookieName) {
3160
+ if (typeof document === "undefined") return void 0;
3161
+ return document.cookie.split("; ").find((row) => row.startsWith(`${cookieName}=`))?.split("=")[1];
3162
+ }
3163
+ /**
3164
+ * Sets a cookie value for a given cookie name.
3165
+ * @param cookieName - The name of the cookie
3166
+ * @param value - The value to set
3167
+ */
3168
+ function setCookieValue(cookieName, value) {
3169
+ if (typeof document === "undefined") return;
3170
+ document.cookie = `${cookieName}=${value};path=/`;
3071
3171
  }
3072
- Hn._gtt = `derive`, Un._gtt = `derive`;
3073
3172
  //#endregion
3074
3173
  //#region src/react-context/provider/ClientProvider.tsx
3075
- function ClientProvider({ children, dictionary: _dictionary, dictionaryTranslations: _dictionaryTranslations, translations: _translations, locale: _locale, region: _region, _versionId, defaultLocale, translationRequired, dialectTranslationRequired, locales = [], renderSettings, projectId, devApiKey, runtimeUrl, developmentApiEnabled, resetLocaleCookieName, localeCookieName = sn, regionCookieName = cn, customMapping, environment, reloadServer }) {
3174
+ function ClientProvider({ children, dictionary: _dictionary, dictionaryTranslations: _dictionaryTranslations, translations: _translations, locale: _locale, region: _region, _versionId, defaultLocale, translationRequired, dialectTranslationRequired, locales = [], renderSettings, projectId, devApiKey, runtimeUrl, developmentApiEnabled, resetLocaleCookieName, localeCookieName = pn, regionCookieName = mn, customMapping, environment, reloadServer }) {
3076
3175
  const didMount = (0, react.useRef)(false);
3077
3176
  const [translations, setTranslations] = (0, react.useState)(_translations);
3078
3177
  (0, react.useEffect)(() => {
@@ -3081,28 +3180,25 @@ function ClientProvider({ children, dictionary: _dictionary, dictionaryTranslati
3081
3180
  }, [_translations]);
3082
3181
  const [locale, _setLocale] = (0, react.useState)(_locale ? (0, _generaltranslation_format.determineLocale)(_locale, locales, customMapping) || "" : "");
3083
3182
  (0, react.useEffect)(() => {
3084
- let cookieLocale = document.cookie.split("; ").find((row) => row.startsWith(`${localeCookieName}=`))?.split("=")[1];
3183
+ let cookieLocale = getCookieValue(localeCookieName);
3085
3184
  if (cookieLocale) cookieLocale = gt.resolveAliasLocale(cookieLocale);
3086
- if (locale && cookieLocale && cookieLocale !== locale) document.cookie = `${localeCookieName}=;path=/`;
3185
+ if (locale && cookieLocale && cookieLocale !== locale) setCookieValue(localeCookieName, "");
3087
3186
  }, [locale, localeCookieName]);
3088
3187
  const [dictionaryTranslations, setDictionaryTranslations] = (0, react.useState)(_dictionaryTranslations || {});
3089
3188
  const [dictionary, setDictionary] = (0, react.useState)(_dictionary || {});
3090
3189
  (0, react.useEffect)(() => {
3091
3190
  if (!didMount.current) return;
3092
3191
  setDictionaryTranslations(_dictionaryTranslations);
3093
- }, [_dictionaryTranslations]);
3094
- (0, react.useEffect)(() => {
3095
- if (!didMount.current) return;
3096
3192
  setDictionary(_dictionary);
3097
- }, [_dictionary]);
3193
+ }, [_dictionaryTranslations, _dictionary]);
3098
3194
  const [region, _setRegion] = (0, react.useState)(_region);
3099
3195
  const setRegion = (newRegion) => {
3100
- document.cookie = `${regionCookieName}=${newRegion || ""};path=/`;
3196
+ setCookieValue(regionCookieName, newRegion || "");
3101
3197
  _setRegion(newRegion);
3102
3198
  };
3103
3199
  (0, react.useEffect)(() => {
3104
- const cookieRegion = document.cookie.split("; ").find((row) => row.startsWith(`${regionCookieName}=`))?.split("=")[1];
3105
- if (region && cookieRegion && cookieRegion !== region) document.cookie = `${regionCookieName}=;path=/`;
3200
+ const cookieRegion = getCookieValue(regionCookieName);
3201
+ if (region && cookieRegion && cookieRegion !== region) setCookieValue(regionCookieName, "");
3106
3202
  }, [region, regionCookieName]);
3107
3203
  const gt = (0, react.useMemo)(() => new generaltranslation.GT({
3108
3204
  devApiKey,
@@ -3122,8 +3218,8 @@ function ClientProvider({ children, dictionary: _dictionary, dictionaryTranslati
3122
3218
  const setLocale = (newLocale) => {
3123
3219
  newLocale = (0, _generaltranslation_format.determineLocale)(newLocale, locales, customMapping) || locale || defaultLocale;
3124
3220
  newLocale = gt.resolveAliasLocale(newLocale);
3125
- document.cookie = `${localeCookieName}=${newLocale};path=/`;
3126
- document.cookie = `${resetLocaleCookieName}=true;path=/`;
3221
+ setCookieValue(localeCookieName, newLocale);
3222
+ setCookieValue(resetLocaleCookieName, "true");
3127
3223
  _setLocale(newLocale);
3128
3224
  reloadServer();
3129
3225
  };
@@ -3223,13 +3319,12 @@ function _convertCustomNamesToMapping(customNames) {
3223
3319
  */
3224
3320
  function InternalLocaleSelector({ locale, locales, customNames, customMapping = _convertCustomNamesToMapping(customNames), setLocale, getLocaleProperties, ...props }) {
3225
3321
  const getDisplayName = (locale) => {
3226
- if (customMapping && customMapping[locale]) {
3227
- if (typeof customMapping[locale] === "string") return customMapping[locale];
3228
- if (customMapping[locale].name) return customMapping[locale].name;
3229
- }
3322
+ const customLocale = customMapping?.[locale];
3323
+ if (typeof customLocale === "string") return customLocale;
3324
+ if (customLocale?.name) return customLocale.name;
3230
3325
  return capitalizeName(getLocaleProperties(locale).nativeNameWithRegionCode);
3231
3326
  };
3232
- if (!locales || locales.length === 0 || !setLocale) return null;
3327
+ if (!locales?.length || !setLocale) return null;
3233
3328
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
3234
3329
  ...props,
3235
3330
  value: locale || "",