gt-react 10.19.18 → 10.19.19
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/CHANGELOG.md +10 -0
- package/dist/browser.cjs +236 -232
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.mjs +236 -232
- package/dist/browser.mjs.map +1 -1
- package/dist/client.cjs +183 -182
- package/dist/client.cjs.map +1 -1
- package/dist/client.mjs +183 -182
- package/dist/client.mjs.map +1 -1
- package/dist/index.cjs +183 -182
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +183 -182
- package/dist/index.mjs.map +1 -1
- package/dist/internal.cjs +327 -326
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.mjs +301 -300
- package/dist/internal.mjs.map +1 -1
- package/dist/macros.cjs +4 -1
- package/dist/macros.cjs.map +1 -1
- package/dist/macros.mjs +4 -1
- package/dist/macros.mjs.map +1 -1
- package/package.json +5 -5
package/dist/browser.mjs
CHANGED
|
@@ -4191,14 +4191,17 @@ function extractVars(icuString) {
|
|
|
4191
4191
|
});
|
|
4192
4192
|
return variables;
|
|
4193
4193
|
}
|
|
4194
|
+
const CONTAINS_INDEXED_GT_REGEX = new RegExp(`${VAR_IDENTIFIER}\\d+`);
|
|
4194
4195
|
/**
|
|
4195
4196
|
* Given an indexed ICU string, condenses any select to an argument
|
|
4197
|
+
* Unindexed _gt_ source strings and indexed _gt_# translation strings
|
|
4198
|
+
* are mutually exclusive.
|
|
4196
4199
|
* indexVars('Hello {_gt_1, select, other {World}}') => 'Hello {_gt_1}'
|
|
4197
4200
|
* @param {string} icuString - The ICU string to condense.
|
|
4198
4201
|
* @returns {string} The condensed ICU string.
|
|
4199
4202
|
*/
|
|
4200
4203
|
function condenseVars(icuString) {
|
|
4201
|
-
if (!
|
|
4204
|
+
if (!CONTAINS_INDEXED_GT_REGEX.test(icuString)) return icuString;
|
|
4202
4205
|
function visitor(child) {
|
|
4203
4206
|
child.type = import_types.TYPE.argument;
|
|
4204
4207
|
Reflect.deleteProperty(child, "options");
|
|
@@ -6172,7 +6175,7 @@ function S({ source: e, severity: t, whatHappened: n, reassurance: r, why: i, fi
|
|
|
6172
6175
|
let p = f.join(` `);
|
|
6173
6176
|
return l ? `${l} ${p}` : p;
|
|
6174
6177
|
}
|
|
6175
|
-
function
|
|
6178
|
+
function ie(e) {
|
|
6176
6179
|
let t = e;
|
|
6177
6180
|
if (t && typeof t == `object` && typeof t.k == `string`) {
|
|
6178
6181
|
let e = Object.keys(t);
|
|
@@ -6180,43 +6183,43 @@ function E(e) {
|
|
|
6180
6183
|
}
|
|
6181
6184
|
return !1;
|
|
6182
6185
|
}
|
|
6183
|
-
function
|
|
6186
|
+
function ae(e) {
|
|
6184
6187
|
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === `Uint8Array` && `BYTES_PER_ELEMENT` in e && e.BYTES_PER_ELEMENT === 1;
|
|
6185
6188
|
}
|
|
6186
|
-
function
|
|
6187
|
-
let r =
|
|
6189
|
+
function E(e, t, n = ``) {
|
|
6190
|
+
let r = ae(e), i = e?.length, a = t !== void 0;
|
|
6188
6191
|
if (!r || a && i !== t) {
|
|
6189
6192
|
let o = n && `"${n}" `, s = a ? ` of length ${t}` : ``, c = r ? `length=${i}` : `type=${typeof e}`, l = o + `expected Uint8Array` + s + `, got ` + c;
|
|
6190
6193
|
throw r ? RangeError(l) : TypeError(l);
|
|
6191
6194
|
}
|
|
6192
6195
|
return e;
|
|
6193
6196
|
}
|
|
6194
|
-
function
|
|
6197
|
+
function oe(e, t = !0) {
|
|
6195
6198
|
if (e.destroyed) throw Error(`Hash instance has been destroyed`);
|
|
6196
6199
|
if (t && e.finished) throw Error(`Hash#digest() has already been called`);
|
|
6197
6200
|
}
|
|
6198
|
-
function
|
|
6199
|
-
|
|
6201
|
+
function se(e, t) {
|
|
6202
|
+
E(e, void 0, `digestInto() output`);
|
|
6200
6203
|
let n = t.outputLen;
|
|
6201
6204
|
if (e.length < n) throw RangeError(`"digestInto() output" expected to be of length >=` + n);
|
|
6202
6205
|
}
|
|
6203
|
-
function
|
|
6206
|
+
function ce(...e) {
|
|
6204
6207
|
for (let t = 0; t < e.length; t++) e[t].fill(0);
|
|
6205
6208
|
}
|
|
6206
|
-
function
|
|
6209
|
+
function le(e) {
|
|
6207
6210
|
return new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
6208
6211
|
}
|
|
6209
|
-
function
|
|
6212
|
+
function D(e, t) {
|
|
6210
6213
|
return e << 32 - t | e >>> t;
|
|
6211
6214
|
}
|
|
6212
6215
|
new Uint8Array(new Uint32Array([287454020]).buffer)[0];
|
|
6213
6216
|
typeof Uint8Array.from([]).toHex == `function` && Uint8Array.fromHex;
|
|
6214
6217
|
Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, `0`));
|
|
6215
|
-
function
|
|
6218
|
+
function me(e, t = {}) {
|
|
6216
6219
|
let n = (t, n) => e(n).update(t).digest(), r = e(void 0);
|
|
6217
6220
|
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);
|
|
6218
6221
|
}
|
|
6219
|
-
const
|
|
6222
|
+
const he = (e) => ({ oid: Uint8Array.from([
|
|
6220
6223
|
6,
|
|
6221
6224
|
9,
|
|
6222
6225
|
96,
|
|
@@ -6229,13 +6232,13 @@ const me = (e) => ({ oid: Uint8Array.from([
|
|
|
6229
6232
|
2,
|
|
6230
6233
|
e
|
|
6231
6234
|
]) });
|
|
6232
|
-
function
|
|
6235
|
+
function ge(e, t, n) {
|
|
6233
6236
|
return e & t ^ ~e & n;
|
|
6234
6237
|
}
|
|
6235
|
-
function
|
|
6238
|
+
function _e(e, t, n) {
|
|
6236
6239
|
return e & t ^ e & n ^ t & n;
|
|
6237
6240
|
}
|
|
6238
|
-
var
|
|
6241
|
+
var ve = class {
|
|
6239
6242
|
blockLen;
|
|
6240
6243
|
outputLen;
|
|
6241
6244
|
canXOF = !1;
|
|
@@ -6248,15 +6251,15 @@ var _e = class {
|
|
|
6248
6251
|
pos = 0;
|
|
6249
6252
|
destroyed = !1;
|
|
6250
6253
|
constructor(e, t, n, r) {
|
|
6251
|
-
this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view =
|
|
6254
|
+
this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view = le(this.buffer);
|
|
6252
6255
|
}
|
|
6253
6256
|
update(e) {
|
|
6254
|
-
|
|
6257
|
+
oe(this), E(e);
|
|
6255
6258
|
let { view: t, buffer: n, blockLen: r } = this, i = e.length;
|
|
6256
6259
|
for (let a = 0; a < i;) {
|
|
6257
6260
|
let o = Math.min(r - this.pos, i - a);
|
|
6258
6261
|
if (o === r) {
|
|
6259
|
-
let t =
|
|
6262
|
+
let t = le(e);
|
|
6260
6263
|
for (; r <= i - a; a += r) this.process(t, a);
|
|
6261
6264
|
continue;
|
|
6262
6265
|
}
|
|
@@ -6265,12 +6268,12 @@ var _e = class {
|
|
|
6265
6268
|
return this.length += e.length, this.roundClean(), this;
|
|
6266
6269
|
}
|
|
6267
6270
|
digestInto(e) {
|
|
6268
|
-
|
|
6271
|
+
oe(this), se(e, this), this.finished = !0;
|
|
6269
6272
|
let { buffer: t, view: n, blockLen: r, isLE: i } = this, { pos: a } = this;
|
|
6270
|
-
t[a++] = 128,
|
|
6273
|
+
t[a++] = 128, ce(this.buffer.subarray(a)), this.padOffset > r - a && (this.process(n, 0), a = 0);
|
|
6271
6274
|
for (let e = a; e < r; e++) t[e] = 0;
|
|
6272
6275
|
n.setBigUint64(r - 8, BigInt(this.length * 8), i), this.process(n, 0);
|
|
6273
|
-
let o =
|
|
6276
|
+
let o = le(e), s = this.outputLen;
|
|
6274
6277
|
if (s % 4) throw Error(`_sha2: outputLen must be aligned to 32bit`);
|
|
6275
6278
|
let c = s / 4, l = this.get();
|
|
6276
6279
|
if (c > l.length) throw Error(`_sha2: outputLen bigger than state`);
|
|
@@ -6291,7 +6294,7 @@ var _e = class {
|
|
|
6291
6294
|
return this._cloneInto();
|
|
6292
6295
|
}
|
|
6293
6296
|
};
|
|
6294
|
-
const
|
|
6297
|
+
const O = Uint32Array.from([
|
|
6295
6298
|
1779033703,
|
|
6296
6299
|
3144134277,
|
|
6297
6300
|
1013904242,
|
|
@@ -6300,25 +6303,25 @@ const k = Uint32Array.from([
|
|
|
6300
6303
|
2600822924,
|
|
6301
6304
|
528734635,
|
|
6302
6305
|
1541459225
|
|
6303
|
-
]),
|
|
6304
|
-
function
|
|
6306
|
+
]), k = BigInt(2 ** 32 - 1), ye = BigInt(32);
|
|
6307
|
+
function be(e, t = !1) {
|
|
6305
6308
|
return t ? {
|
|
6306
|
-
h: Number(e &
|
|
6307
|
-
l: Number(e >>
|
|
6309
|
+
h: Number(e & k),
|
|
6310
|
+
l: Number(e >> ye & k)
|
|
6308
6311
|
} : {
|
|
6309
|
-
h: Number(e >>
|
|
6310
|
-
l: Number(e &
|
|
6312
|
+
h: Number(e >> ye & k) | 0,
|
|
6313
|
+
l: Number(e & k) | 0
|
|
6311
6314
|
};
|
|
6312
6315
|
}
|
|
6313
|
-
function
|
|
6316
|
+
function xe(e, t = !1) {
|
|
6314
6317
|
let n = e.length, r = new Uint32Array(n), i = new Uint32Array(n);
|
|
6315
6318
|
for (let a = 0; a < n; a++) {
|
|
6316
|
-
let { h: n, l: o } =
|
|
6319
|
+
let { h: n, l: o } = be(e[a], t);
|
|
6317
6320
|
[r[a], i[a]] = [n, o];
|
|
6318
6321
|
}
|
|
6319
6322
|
return [r, i];
|
|
6320
6323
|
}
|
|
6321
|
-
const
|
|
6324
|
+
const Se = Uint32Array.from([
|
|
6322
6325
|
1116352408,
|
|
6323
6326
|
1899447441,
|
|
6324
6327
|
3049323471,
|
|
@@ -6383,8 +6386,8 @@ const xe = Uint32Array.from([
|
|
|
6383
6386
|
2756734187,
|
|
6384
6387
|
3204031479,
|
|
6385
6388
|
3329325298
|
|
6386
|
-
]),
|
|
6387
|
-
var
|
|
6389
|
+
]), A = new Uint32Array(64);
|
|
6390
|
+
var Ce = class extends ve {
|
|
6388
6391
|
constructor(e) {
|
|
6389
6392
|
super(64, e, 8, !1);
|
|
6390
6393
|
}
|
|
@@ -6405,41 +6408,41 @@ var Se = class extends _e {
|
|
|
6405
6408
|
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;
|
|
6406
6409
|
}
|
|
6407
6410
|
process(e, t) {
|
|
6408
|
-
for (let n = 0; n < 16; n++, t += 4)
|
|
6411
|
+
for (let n = 0; n < 16; n++, t += 4) A[n] = e.getUint32(t, !1);
|
|
6409
6412
|
for (let e = 16; e < 64; e++) {
|
|
6410
|
-
let t =
|
|
6411
|
-
|
|
6413
|
+
let t = A[e - 15], n = A[e - 2], r = D(t, 7) ^ D(t, 18) ^ t >>> 3;
|
|
6414
|
+
A[e] = (D(n, 17) ^ D(n, 19) ^ n >>> 10) + A[e - 7] + r + A[e - 16] | 0;
|
|
6412
6415
|
}
|
|
6413
6416
|
let { A: n, B: r, C: i, D: a, E: o, F: s, G: c, H: l } = this;
|
|
6414
6417
|
for (let e = 0; e < 64; e++) {
|
|
6415
|
-
let t =
|
|
6418
|
+
let t = D(o, 6) ^ D(o, 11) ^ D(o, 25), u = l + t + ge(o, s, c) + Se[e] + A[e] | 0, d = (D(n, 2) ^ D(n, 13) ^ D(n, 22)) + _e(n, r, i) | 0;
|
|
6416
6419
|
l = c, c = s, s = o, o = a + u | 0, a = i, i = r, r = n, n = u + d | 0;
|
|
6417
6420
|
}
|
|
6418
6421
|
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);
|
|
6419
6422
|
}
|
|
6420
6423
|
roundClean() {
|
|
6421
|
-
|
|
6424
|
+
ce(A);
|
|
6422
6425
|
}
|
|
6423
6426
|
destroy() {
|
|
6424
|
-
this.destroyed = !0, this.set(0, 0, 0, 0, 0, 0, 0, 0),
|
|
6425
|
-
}
|
|
6426
|
-
},
|
|
6427
|
-
A =
|
|
6428
|
-
B =
|
|
6429
|
-
C =
|
|
6430
|
-
D =
|
|
6431
|
-
E =
|
|
6432
|
-
F =
|
|
6433
|
-
G =
|
|
6434
|
-
H =
|
|
6427
|
+
this.destroyed = !0, this.set(0, 0, 0, 0, 0, 0, 0, 0), ce(this.buffer);
|
|
6428
|
+
}
|
|
6429
|
+
}, we = class extends Ce {
|
|
6430
|
+
A = O[0] | 0;
|
|
6431
|
+
B = O[1] | 0;
|
|
6432
|
+
C = O[2] | 0;
|
|
6433
|
+
D = O[3] | 0;
|
|
6434
|
+
E = O[4] | 0;
|
|
6435
|
+
F = O[5] | 0;
|
|
6436
|
+
G = O[6] | 0;
|
|
6437
|
+
H = O[7] | 0;
|
|
6435
6438
|
constructor() {
|
|
6436
6439
|
super(32);
|
|
6437
6440
|
}
|
|
6438
6441
|
};
|
|
6439
|
-
const
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
const
|
|
6442
|
+
const Te = xe(`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)));
|
|
6443
|
+
Te[0], Te[1];
|
|
6444
|
+
me(() => new we(), he(1));
|
|
6445
|
+
const De = (e) => `generaltranslation Formatting Error: Invalid cutoff style: ${e}.`, Oe = `DEFAULT_TERMINATOR_KEY`, ke = {
|
|
6443
6446
|
ellipsis: {
|
|
6444
6447
|
fr: {
|
|
6445
6448
|
terminator: `…`,
|
|
@@ -6453,17 +6456,17 @@ const Ee = (e) => `generaltranslation Formatting Error: Invalid cutoff style: ${
|
|
|
6453
6456
|
terminator: `……`,
|
|
6454
6457
|
separator: void 0
|
|
6455
6458
|
},
|
|
6456
|
-
[
|
|
6459
|
+
[Oe]: {
|
|
6457
6460
|
terminator: `…`,
|
|
6458
6461
|
separator: void 0
|
|
6459
6462
|
}
|
|
6460
6463
|
},
|
|
6461
|
-
none: { [
|
|
6464
|
+
none: { [Oe]: {
|
|
6462
6465
|
terminator: void 0,
|
|
6463
6466
|
separator: void 0
|
|
6464
6467
|
} }
|
|
6465
6468
|
};
|
|
6466
|
-
var
|
|
6469
|
+
var Ae = class e {
|
|
6467
6470
|
static resolveLocale(e) {
|
|
6468
6471
|
try {
|
|
6469
6472
|
let t = e ? Array.isArray(e) ? e.map(String) : [String(e)] : [`en`], [n] = Intl.getCanonicalLocales(t);
|
|
@@ -6475,8 +6478,8 @@ var ke = class e {
|
|
|
6475
6478
|
constructor(t, n = {}) {
|
|
6476
6479
|
this.locale = e.resolveLocale(t);
|
|
6477
6480
|
let r = n.style ?? `ellipsis`;
|
|
6478
|
-
if (!
|
|
6479
|
-
let i = n.maxChars === void 0 ? void 0 :
|
|
6481
|
+
if (!ke[r]) throw Error(De(r));
|
|
6482
|
+
let i = n.maxChars === void 0 ? void 0 : ke[r][new Intl.Locale(this.locale).language] || ke[r].DEFAULT_TERMINATOR_KEY, a = n.terminator ?? i?.terminator, o = a == null ? void 0 : n.separator ?? i?.separator;
|
|
6480
6483
|
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 = {
|
|
6481
6484
|
maxChars: n.maxChars,
|
|
6482
6485
|
style: n.maxChars === void 0 ? void 0 : r,
|
|
@@ -6503,7 +6506,7 @@ var ke = class e {
|
|
|
6503
6506
|
return this.options;
|
|
6504
6507
|
}
|
|
6505
6508
|
};
|
|
6506
|
-
const
|
|
6509
|
+
const je = {
|
|
6507
6510
|
Collator: Intl.Collator,
|
|
6508
6511
|
DateTimeFormat: Intl.DateTimeFormat,
|
|
6509
6512
|
DisplayNames: Intl.DisplayNames,
|
|
@@ -6513,8 +6516,8 @@ const Ae = {
|
|
|
6513
6516
|
PluralRules: Intl.PluralRules,
|
|
6514
6517
|
RelativeTimeFormat: Intl.RelativeTimeFormat,
|
|
6515
6518
|
Segmenter: Intl.Segmenter,
|
|
6516
|
-
CutoffFormat:
|
|
6517
|
-
},
|
|
6519
|
+
CutoffFormat: Ae
|
|
6520
|
+
}, Me = new class {
|
|
6518
6521
|
constructor() {
|
|
6519
6522
|
this.cache = {};
|
|
6520
6523
|
}
|
|
@@ -6525,73 +6528,73 @@ const Ae = {
|
|
|
6525
6528
|
let [n = `en`, r = {}] = t, i = this.generateKey(n, r), a = this.cache[e];
|
|
6526
6529
|
a === void 0 && (a = {}, this.cache[e] = a);
|
|
6527
6530
|
let o = a[i];
|
|
6528
|
-
return o === void 0 && (o = new
|
|
6531
|
+
return o === void 0 && (o = new je[e](...t), a[i] = o), o;
|
|
6529
6532
|
}
|
|
6530
6533
|
}();
|
|
6531
|
-
function
|
|
6532
|
-
return
|
|
6534
|
+
function Ne(e) {
|
|
6535
|
+
return Me.get(`PluralRules`, e);
|
|
6533
6536
|
}
|
|
6534
|
-
var
|
|
6535
|
-
__addDisposableResource: () =>
|
|
6537
|
+
var j = m({
|
|
6538
|
+
__addDisposableResource: () => at,
|
|
6536
6539
|
__assign: () => F,
|
|
6537
|
-
__asyncDelegator: () =>
|
|
6538
|
-
__asyncGenerator: () =>
|
|
6539
|
-
__asyncValues: () =>
|
|
6540
|
-
__await: () =>
|
|
6541
|
-
__awaiter: () =>
|
|
6542
|
-
__classPrivateFieldGet: () =>
|
|
6543
|
-
__classPrivateFieldIn: () =>
|
|
6544
|
-
__classPrivateFieldSet: () =>
|
|
6540
|
+
__asyncDelegator: () => Ze,
|
|
6541
|
+
__asyncGenerator: () => Xe,
|
|
6542
|
+
__asyncValues: () => Qe,
|
|
6543
|
+
__await: () => N,
|
|
6544
|
+
__awaiter: () => Ue,
|
|
6545
|
+
__classPrivateFieldGet: () => nt,
|
|
6546
|
+
__classPrivateFieldIn: () => it,
|
|
6547
|
+
__classPrivateFieldSet: () => rt,
|
|
6545
6548
|
__createBinding: () => I,
|
|
6546
|
-
__decorate: () =>
|
|
6547
|
-
__disposeResources: () =>
|
|
6548
|
-
__esDecorate: () =>
|
|
6549
|
-
__exportStar: () =>
|
|
6550
|
-
__extends: () =>
|
|
6551
|
-
__generator: () =>
|
|
6552
|
-
__importDefault: () =>
|
|
6553
|
-
__importStar: () =>
|
|
6554
|
-
__makeTemplateObject: () =>
|
|
6555
|
-
__metadata: () =>
|
|
6556
|
-
__param: () =>
|
|
6557
|
-
__propKey: () =>
|
|
6558
|
-
__read: () =>
|
|
6559
|
-
__rest: () =>
|
|
6560
|
-
__rewriteRelativeImportExtension: () =>
|
|
6561
|
-
__runInitializers: () =>
|
|
6562
|
-
__setFunctionName: () =>
|
|
6563
|
-
__spread: () =>
|
|
6564
|
-
__spreadArray: () =>
|
|
6565
|
-
__spreadArrays: () =>
|
|
6566
|
-
__values: () =>
|
|
6549
|
+
__decorate: () => Ie,
|
|
6550
|
+
__disposeResources: () => ot,
|
|
6551
|
+
__esDecorate: () => Re,
|
|
6552
|
+
__exportStar: () => Ge,
|
|
6553
|
+
__extends: () => Pe,
|
|
6554
|
+
__generator: () => We,
|
|
6555
|
+
__importDefault: () => tt,
|
|
6556
|
+
__importStar: () => et,
|
|
6557
|
+
__makeTemplateObject: () => $e,
|
|
6558
|
+
__metadata: () => He,
|
|
6559
|
+
__param: () => Le,
|
|
6560
|
+
__propKey: () => Be,
|
|
6561
|
+
__read: () => Ke,
|
|
6562
|
+
__rest: () => Fe,
|
|
6563
|
+
__rewriteRelativeImportExtension: () => st,
|
|
6564
|
+
__runInitializers: () => ze,
|
|
6565
|
+
__setFunctionName: () => Ve,
|
|
6566
|
+
__spread: () => qe,
|
|
6567
|
+
__spreadArray: () => Ye,
|
|
6568
|
+
__spreadArrays: () => Je,
|
|
6569
|
+
__values: () => M,
|
|
6567
6570
|
default: () => ut
|
|
6568
6571
|
});
|
|
6569
|
-
function
|
|
6572
|
+
function Pe(e, t) {
|
|
6570
6573
|
if (typeof t != `function` && t !== null) throw TypeError(`Class extends value ` + String(t) + ` is not a constructor or null`);
|
|
6571
|
-
|
|
6574
|
+
P(e, t);
|
|
6572
6575
|
function n() {
|
|
6573
6576
|
this.constructor = e;
|
|
6574
6577
|
}
|
|
6575
6578
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
6576
6579
|
}
|
|
6577
|
-
function
|
|
6580
|
+
function Fe(e, t) {
|
|
6578
6581
|
var n = {};
|
|
6579
6582
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
6580
6583
|
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]]);
|
|
6581
6584
|
return n;
|
|
6582
6585
|
}
|
|
6583
|
-
function
|
|
6586
|
+
function Ie(e, t, n, r) {
|
|
6584
6587
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
6585
6588
|
if (typeof Reflect == `object` && typeof Reflect.decorate == `function`) a = Reflect.decorate(e, t, n, r);
|
|
6586
6589
|
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);
|
|
6587
6590
|
return i > 3 && a && Object.defineProperty(t, n, a), a;
|
|
6588
6591
|
}
|
|
6589
|
-
function
|
|
6592
|
+
function Le(e, t) {
|
|
6590
6593
|
return function(n, r) {
|
|
6591
6594
|
t(n, r, e);
|
|
6592
6595
|
};
|
|
6593
6596
|
}
|
|
6594
|
-
function
|
|
6597
|
+
function Re(e, t, n, r, i, a) {
|
|
6595
6598
|
function o(e) {
|
|
6596
6599
|
if (e !== void 0 && typeof e != `function`) throw TypeError(`Function expected`);
|
|
6597
6600
|
return e;
|
|
@@ -6616,23 +6619,23 @@ function Le(e, t, n, r, i, a) {
|
|
|
6616
6619
|
}
|
|
6617
6620
|
l && Object.defineProperty(l, r.name, u), f = !0;
|
|
6618
6621
|
}
|
|
6619
|
-
function
|
|
6622
|
+
function ze(e, t, n) {
|
|
6620
6623
|
for (var r = arguments.length > 2, i = 0; i < t.length; i++) n = r ? t[i].call(e, n) : t[i].call(e);
|
|
6621
6624
|
return r ? n : void 0;
|
|
6622
6625
|
}
|
|
6623
|
-
function
|
|
6626
|
+
function Be(e) {
|
|
6624
6627
|
return typeof e == `symbol` ? e : `${e}`;
|
|
6625
6628
|
}
|
|
6626
|
-
function
|
|
6629
|
+
function Ve(e, t, n) {
|
|
6627
6630
|
return typeof t == `symbol` && (t = t.description ? `[${t.description}]` : ``), Object.defineProperty(e, `name`, {
|
|
6628
6631
|
configurable: !0,
|
|
6629
6632
|
value: n ? `${n} ${t}` : t
|
|
6630
6633
|
});
|
|
6631
6634
|
}
|
|
6632
|
-
function
|
|
6635
|
+
function He(e, t) {
|
|
6633
6636
|
if (typeof Reflect == `object` && typeof Reflect.metadata == `function`) return Reflect.metadata(e, t);
|
|
6634
6637
|
}
|
|
6635
|
-
function
|
|
6638
|
+
function Ue(e, t, n, r) {
|
|
6636
6639
|
function i(e) {
|
|
6637
6640
|
return e instanceof n ? e : new n(function(t) {
|
|
6638
6641
|
t(e);
|
|
@@ -6659,7 +6662,7 @@ function He(e, t, n, r) {
|
|
|
6659
6662
|
c((r = r.apply(e, t || [])).next());
|
|
6660
6663
|
});
|
|
6661
6664
|
}
|
|
6662
|
-
function
|
|
6665
|
+
function We(e, t) {
|
|
6663
6666
|
var n = {
|
|
6664
6667
|
label: 0,
|
|
6665
6668
|
sent: function() {
|
|
@@ -6729,10 +6732,10 @@ function Ue(e, t) {
|
|
|
6729
6732
|
};
|
|
6730
6733
|
}
|
|
6731
6734
|
}
|
|
6732
|
-
function
|
|
6735
|
+
function Ge(e, t) {
|
|
6733
6736
|
for (var n in e) n !== `default` && !Object.prototype.hasOwnProperty.call(t, n) && I(t, e, n);
|
|
6734
6737
|
}
|
|
6735
|
-
function
|
|
6738
|
+
function M(e) {
|
|
6736
6739
|
var t = typeof Symbol == `function` && Symbol.iterator, n = t && e[t], r = 0;
|
|
6737
6740
|
if (n) return n.call(e);
|
|
6738
6741
|
if (e && typeof e.length == `number`) return { next: function() {
|
|
@@ -6743,7 +6746,7 @@ function N(e) {
|
|
|
6743
6746
|
} };
|
|
6744
6747
|
throw TypeError(t ? `Object is not iterable.` : `Symbol.iterator is not defined.`);
|
|
6745
6748
|
}
|
|
6746
|
-
function
|
|
6749
|
+
function Ke(e, t) {
|
|
6747
6750
|
var n = typeof Symbol == `function` && e[Symbol.iterator];
|
|
6748
6751
|
if (!n) return e;
|
|
6749
6752
|
var r = n.call(e), i, a = [], o;
|
|
@@ -6760,23 +6763,23 @@ function Ge(e, t) {
|
|
|
6760
6763
|
}
|
|
6761
6764
|
return a;
|
|
6762
6765
|
}
|
|
6763
|
-
function
|
|
6764
|
-
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(
|
|
6766
|
+
function qe() {
|
|
6767
|
+
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(Ke(arguments[t]));
|
|
6765
6768
|
return e;
|
|
6766
6769
|
}
|
|
6767
|
-
function
|
|
6770
|
+
function Je() {
|
|
6768
6771
|
for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
|
|
6769
6772
|
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];
|
|
6770
6773
|
return r;
|
|
6771
6774
|
}
|
|
6772
|
-
function
|
|
6775
|
+
function Ye(e, t, n) {
|
|
6773
6776
|
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]);
|
|
6774
6777
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
6775
6778
|
}
|
|
6776
|
-
function
|
|
6777
|
-
return this instanceof
|
|
6779
|
+
function N(e) {
|
|
6780
|
+
return this instanceof N ? (this.v = e, this) : new N(e);
|
|
6778
6781
|
}
|
|
6779
|
-
function
|
|
6782
|
+
function Xe(e, t, n) {
|
|
6780
6783
|
if (!Symbol.asyncIterator) throw TypeError(`Symbol.asyncIterator is not defined.`);
|
|
6781
6784
|
var r = n.apply(e, t || []), i, a = [];
|
|
6782
6785
|
return i = Object.create((typeof AsyncIterator == `function` ? AsyncIterator : Object).prototype), s(`next`), s(`throw`), s(`return`, o), i[Symbol.asyncIterator] = function() {
|
|
@@ -6807,7 +6810,7 @@ function Ye(e, t, n) {
|
|
|
6807
6810
|
}
|
|
6808
6811
|
}
|
|
6809
6812
|
function l(e) {
|
|
6810
|
-
e.value instanceof
|
|
6813
|
+
e.value instanceof N ? Promise.resolve(e.value.v).then(u, d) : f(a[0][2], e);
|
|
6811
6814
|
}
|
|
6812
6815
|
function u(e) {
|
|
6813
6816
|
c(`next`, e);
|
|
@@ -6819,7 +6822,7 @@ function Ye(e, t, n) {
|
|
|
6819
6822
|
e(t), a.shift(), a.length && c(a[0][0], a[0][1]);
|
|
6820
6823
|
}
|
|
6821
6824
|
}
|
|
6822
|
-
function
|
|
6825
|
+
function Ze(e) {
|
|
6823
6826
|
var t, n;
|
|
6824
6827
|
return t = {}, r(`next`), r(`throw`, function(e) {
|
|
6825
6828
|
throw e;
|
|
@@ -6829,16 +6832,16 @@ function Xe(e) {
|
|
|
6829
6832
|
function r(r, i) {
|
|
6830
6833
|
t[r] = e[r] ? function(t) {
|
|
6831
6834
|
return (n = !n) ? {
|
|
6832
|
-
value:
|
|
6835
|
+
value: N(e[r](t)),
|
|
6833
6836
|
done: !1
|
|
6834
6837
|
} : i ? i(t) : t;
|
|
6835
6838
|
} : i;
|
|
6836
6839
|
}
|
|
6837
6840
|
}
|
|
6838
|
-
function
|
|
6841
|
+
function Qe(e) {
|
|
6839
6842
|
if (!Symbol.asyncIterator) throw TypeError(`Symbol.asyncIterator is not defined.`);
|
|
6840
6843
|
var t = e[Symbol.asyncIterator], n;
|
|
6841
|
-
return t ? t.call(e) : (e = typeof
|
|
6844
|
+
return t ? t.call(e) : (e = typeof M == `function` ? M(e) : e[Symbol.iterator](), n = {}, r(`next`), r(`throw`), r(`return`), n[Symbol.asyncIterator] = function() {
|
|
6842
6845
|
return this;
|
|
6843
6846
|
}, n);
|
|
6844
6847
|
function r(t) {
|
|
@@ -6857,34 +6860,34 @@ function Ze(e) {
|
|
|
6857
6860
|
}, t);
|
|
6858
6861
|
}
|
|
6859
6862
|
}
|
|
6860
|
-
function
|
|
6863
|
+
function $e(e, t) {
|
|
6861
6864
|
return Object.defineProperty ? Object.defineProperty(e, `raw`, { value: t }) : e.raw = t, e;
|
|
6862
6865
|
}
|
|
6863
|
-
function
|
|
6866
|
+
function et(e) {
|
|
6864
6867
|
if (e && e.__esModule) return e;
|
|
6865
6868
|
var t = {};
|
|
6866
6869
|
if (e != null) for (var n = L(e), r = 0; r < n.length; r++) n[r] !== `default` && I(t, e, n[r]);
|
|
6867
6870
|
return ct(t, e), t;
|
|
6868
6871
|
}
|
|
6869
|
-
function
|
|
6872
|
+
function tt(e) {
|
|
6870
6873
|
return e && e.__esModule ? e : { default: e };
|
|
6871
6874
|
}
|
|
6872
|
-
function
|
|
6875
|
+
function nt(e, t, n, r) {
|
|
6873
6876
|
if (n === `a` && !r) throw TypeError(`Private accessor was defined without a getter`);
|
|
6874
6877
|
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`);
|
|
6875
6878
|
return n === `m` ? r : n === `a` ? r.call(e) : r ? r.value : t.get(e);
|
|
6876
6879
|
}
|
|
6877
|
-
function
|
|
6880
|
+
function rt(e, t, n, r, i) {
|
|
6878
6881
|
if (r === `m`) throw TypeError(`Private method is not writable`);
|
|
6879
6882
|
if (r === `a` && !i) throw TypeError(`Private accessor was defined without a setter`);
|
|
6880
6883
|
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`);
|
|
6881
6884
|
return r === `a` ? i.call(e, n) : i ? i.value = n : t.set(e, n), n;
|
|
6882
6885
|
}
|
|
6883
|
-
function
|
|
6886
|
+
function it(e, t) {
|
|
6884
6887
|
if (t === null || typeof t != `object` && typeof t != `function`) throw TypeError(`Cannot use 'in' operator on non-object`);
|
|
6885
6888
|
return typeof e == `function` ? t === e : e.has(t);
|
|
6886
6889
|
}
|
|
6887
|
-
function
|
|
6890
|
+
function at(e, t, n) {
|
|
6888
6891
|
if (t != null) {
|
|
6889
6892
|
if (typeof t != `object` && typeof t != `function`) throw TypeError(`Object expected.`);
|
|
6890
6893
|
var r, i;
|
|
@@ -6911,7 +6914,7 @@ function it(e, t, n) {
|
|
|
6911
6914
|
} else n && e.stack.push({ async: !0 });
|
|
6912
6915
|
return t;
|
|
6913
6916
|
}
|
|
6914
|
-
function
|
|
6917
|
+
function ot(e) {
|
|
6915
6918
|
function t(t) {
|
|
6916
6919
|
e.error = e.hasError ? new lt(t, e.error, `An error was suppressed during disposal.`) : t, e.hasError = !0;
|
|
6917
6920
|
}
|
|
@@ -6933,18 +6936,18 @@ function at(e) {
|
|
|
6933
6936
|
}
|
|
6934
6937
|
return i();
|
|
6935
6938
|
}
|
|
6936
|
-
function
|
|
6939
|
+
function st(e, t) {
|
|
6937
6940
|
return typeof e == `string` && /^\.\.?\//.test(e) ? e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(e, n, r, i, a) {
|
|
6938
6941
|
return n ? t ? `.jsx` : `.js` : r && (!i || !a) ? e : r + i + `.` + a.toLowerCase() + `js`;
|
|
6939
6942
|
}) : e;
|
|
6940
6943
|
}
|
|
6941
|
-
var
|
|
6942
|
-
|
|
6943
|
-
return
|
|
6944
|
+
var P, F, I, ct, L, lt, ut, R = f((() => {
|
|
6945
|
+
P = function(e, t) {
|
|
6946
|
+
return P = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
6944
6947
|
e.__proto__ = t;
|
|
6945
6948
|
} || function(e, t) {
|
|
6946
6949
|
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
6947
|
-
},
|
|
6950
|
+
}, P(e, t);
|
|
6948
6951
|
}, F = function() {
|
|
6949
6952
|
return F = Object.assign || function(e) {
|
|
6950
6953
|
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]);
|
|
@@ -6978,38 +6981,38 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
6978
6981
|
var r = Error(n);
|
|
6979
6982
|
return r.name = `SuppressedError`, r.error = e, r.suppressed = t, r;
|
|
6980
6983
|
}, ut = {
|
|
6981
|
-
__extends:
|
|
6984
|
+
__extends: Pe,
|
|
6982
6985
|
__assign: F,
|
|
6983
|
-
__rest:
|
|
6984
|
-
__decorate:
|
|
6985
|
-
__param:
|
|
6986
|
-
__esDecorate:
|
|
6987
|
-
__runInitializers:
|
|
6988
|
-
__propKey:
|
|
6989
|
-
__setFunctionName:
|
|
6990
|
-
__metadata:
|
|
6991
|
-
__awaiter:
|
|
6992
|
-
__generator:
|
|
6986
|
+
__rest: Fe,
|
|
6987
|
+
__decorate: Ie,
|
|
6988
|
+
__param: Le,
|
|
6989
|
+
__esDecorate: Re,
|
|
6990
|
+
__runInitializers: ze,
|
|
6991
|
+
__propKey: Be,
|
|
6992
|
+
__setFunctionName: Ve,
|
|
6993
|
+
__metadata: He,
|
|
6994
|
+
__awaiter: Ue,
|
|
6995
|
+
__generator: We,
|
|
6993
6996
|
__createBinding: I,
|
|
6994
|
-
__exportStar:
|
|
6995
|
-
__values:
|
|
6996
|
-
__read:
|
|
6997
|
-
__spread:
|
|
6998
|
-
__spreadArrays:
|
|
6999
|
-
__spreadArray:
|
|
7000
|
-
__await:
|
|
7001
|
-
__asyncGenerator:
|
|
7002
|
-
__asyncDelegator:
|
|
7003
|
-
__asyncValues:
|
|
7004
|
-
__makeTemplateObject:
|
|
7005
|
-
__importStar:
|
|
7006
|
-
__importDefault:
|
|
7007
|
-
__classPrivateFieldGet:
|
|
7008
|
-
__classPrivateFieldSet:
|
|
7009
|
-
__classPrivateFieldIn:
|
|
7010
|
-
__addDisposableResource:
|
|
7011
|
-
__disposeResources:
|
|
7012
|
-
__rewriteRelativeImportExtension:
|
|
6997
|
+
__exportStar: Ge,
|
|
6998
|
+
__values: M,
|
|
6999
|
+
__read: Ke,
|
|
7000
|
+
__spread: qe,
|
|
7001
|
+
__spreadArrays: Je,
|
|
7002
|
+
__spreadArray: Ye,
|
|
7003
|
+
__await: N,
|
|
7004
|
+
__asyncGenerator: Xe,
|
|
7005
|
+
__asyncDelegator: Ze,
|
|
7006
|
+
__asyncValues: Qe,
|
|
7007
|
+
__makeTemplateObject: $e,
|
|
7008
|
+
__importStar: et,
|
|
7009
|
+
__importDefault: tt,
|
|
7010
|
+
__classPrivateFieldGet: nt,
|
|
7011
|
+
__classPrivateFieldSet: rt,
|
|
7012
|
+
__classPrivateFieldIn: it,
|
|
7013
|
+
__addDisposableResource: at,
|
|
7014
|
+
__disposeResources: ot,
|
|
7015
|
+
__rewriteRelativeImportExtension: st
|
|
7013
7016
|
};
|
|
7014
7017
|
})), dt = p(((e) => {
|
|
7015
7018
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.ErrorKind = void 0;
|
|
@@ -7179,7 +7182,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
7179
7182
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.WHITE_SPACE_REGEX = void 0, e.WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
7180
7183
|
})), ht = p(((e) => {
|
|
7181
7184
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.parseNumberSkeletonFromString = r, e.parseNumberSkeleton = p;
|
|
7182
|
-
var t = (R(), g(
|
|
7185
|
+
var t = (R(), g(j)), n = mt();
|
|
7183
7186
|
function r(e) {
|
|
7184
7187
|
if (e.length === 0) throw Error(`Number skeleton cannot be empty`);
|
|
7185
7188
|
for (var t = e.split(n.WHITE_SPACE_REGEX).filter(function(e) {
|
|
@@ -7359,7 +7362,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
7359
7362
|
}
|
|
7360
7363
|
})), gt = p(((e) => {
|
|
7361
7364
|
Object.defineProperty(e, `__esModule`, { value: !0 });
|
|
7362
|
-
var t = (R(), g(
|
|
7365
|
+
var t = (R(), g(j));
|
|
7363
7366
|
t.__exportStar(pt(), e), t.__exportStar(ht(), e);
|
|
7364
7367
|
})), _t = p(((e) => {
|
|
7365
7368
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.timeData = void 0, e.timeData = {
|
|
@@ -8547,7 +8550,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
8547
8550
|
}
|
|
8548
8551
|
})), yt = p(((e) => {
|
|
8549
8552
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.Parser = void 0;
|
|
8550
|
-
var t = (R(), g(
|
|
8553
|
+
var t = (R(), g(j)), n = dt(), r = z(), i = ft(), a = gt(), o = vt(), s = RegExp(`^${i.SPACE_SEPARATOR_REGEX.source}*`), c = RegExp(`${i.SPACE_SEPARATOR_REGEX.source}*\$`);
|
|
8551
8554
|
function l(e, t) {
|
|
8552
8555
|
return {
|
|
8553
8556
|
start: e,
|
|
@@ -8607,7 +8610,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
8607
8610
|
} else C = function(e, t) {
|
|
8608
8611
|
for (var n = [];;) {
|
|
8609
8612
|
var r = x(e, t);
|
|
8610
|
-
if (r === void 0 ||
|
|
8613
|
+
if (r === void 0 || ae(r) || E(r)) break;
|
|
8611
8614
|
n.push(r), t += r >= 65536 ? 2 : 1;
|
|
8612
8615
|
}
|
|
8613
8616
|
return y.apply(void 0, n);
|
|
@@ -8686,7 +8689,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
8686
8689
|
} else return this.error(n.ErrorKind.INVALID_TAG, l(i, this.clonePosition()));
|
|
8687
8690
|
}, e.prototype.parseTagName = function() {
|
|
8688
8691
|
var e = this.offset();
|
|
8689
|
-
for (this.bump(); !this.isEOF() &&
|
|
8692
|
+
for (this.bump(); !this.isEOF() && ie(this.char());) this.bump();
|
|
8690
8693
|
return this.message.slice(e, this.offset());
|
|
8691
8694
|
}, e.prototype.parseLiteral = function(e, t) {
|
|
8692
8695
|
for (var n = this.clonePosition(), i = ``;;) {
|
|
@@ -9014,7 +9017,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
9014
9017
|
if (this.bump(), this.isEOF()) break;
|
|
9015
9018
|
}
|
|
9016
9019
|
}, e.prototype.bumpSpace = function() {
|
|
9017
|
-
for (; !this.isEOF() &&
|
|
9020
|
+
for (; !this.isEOF() && ae(this.char());) this.bump();
|
|
9018
9021
|
}, e.prototype.peek = function() {
|
|
9019
9022
|
if (this.isEOF()) return null;
|
|
9020
9023
|
var e = this.char(), t = this.offset();
|
|
@@ -9027,18 +9030,18 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
9027
9030
|
function re(e) {
|
|
9028
9031
|
return T(e) || e === 47;
|
|
9029
9032
|
}
|
|
9030
|
-
function
|
|
9033
|
+
function ie(e) {
|
|
9031
9034
|
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;
|
|
9032
9035
|
}
|
|
9033
|
-
function
|
|
9036
|
+
function ae(e) {
|
|
9034
9037
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
9035
9038
|
}
|
|
9036
|
-
function
|
|
9039
|
+
function E(e) {
|
|
9037
9040
|
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;
|
|
9038
9041
|
}
|
|
9039
9042
|
})), bt = p(((e) => {
|
|
9040
9043
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.hoistSelectors = s, e.isStructurallySame = l;
|
|
9041
|
-
var t = (R(), g(
|
|
9044
|
+
var t = (R(), g(j)), n = z();
|
|
9042
9045
|
function r(e) {
|
|
9043
9046
|
return Array.isArray(e) ? t.__spreadArray([], e.map(r), !0) : typeof e == `object` && e ? Object.keys(e).reduce(function(t, n) {
|
|
9044
9047
|
return t[n] = r(e[n]), t;
|
|
@@ -9097,7 +9100,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
9097
9100
|
}
|
|
9098
9101
|
})), xt = p(((e) => {
|
|
9099
9102
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.isStructurallySame = e._Parser = void 0, e.parse = o;
|
|
9100
|
-
var t = (R(), g(
|
|
9103
|
+
var t = (R(), g(j)), n = dt(), r = yt(), i = z();
|
|
9101
9104
|
function a(e) {
|
|
9102
9105
|
e.forEach(function(e) {
|
|
9103
9106
|
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);
|
|
@@ -9126,7 +9129,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
9126
9129
|
});
|
|
9127
9130
|
})), St = p(((e) => {
|
|
9128
9131
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.printAST = r;
|
|
9129
|
-
var t = (R(), g(
|
|
9132
|
+
var t = (R(), g(j)), n = z();
|
|
9130
9133
|
function r(e) {
|
|
9131
9134
|
return i(e, !1);
|
|
9132
9135
|
}
|
|
@@ -9207,7 +9210,7 @@ function Tt(e) {
|
|
|
9207
9210
|
return wt.includes(e);
|
|
9208
9211
|
}
|
|
9209
9212
|
function Et(e, t = wt, n = [`en`]) {
|
|
9210
|
-
let r =
|
|
9213
|
+
let r = Ne(n).select(e), i = Math.abs(e);
|
|
9211
9214
|
if (i === 0 && t.includes(`zero`)) return `zero`;
|
|
9212
9215
|
if (i === 1) {
|
|
9213
9216
|
if (t.includes(`singular`)) return `singular`;
|
|
@@ -9233,7 +9236,8 @@ function Ot(e) {
|
|
|
9233
9236
|
const U = `_gt_`;
|
|
9234
9237
|
RegExp(`^${U}\\d+$`);
|
|
9235
9238
|
RegExp(`^${U}$`);
|
|
9236
|
-
|
|
9239
|
+
RegExp(`${U}\\d+`);
|
|
9240
|
+
function Ht(e, n = 0) {
|
|
9237
9241
|
let r = n, a = (e) => {
|
|
9238
9242
|
let { type: t, props: n } = e;
|
|
9239
9243
|
r += 1;
|
|
@@ -9247,11 +9251,11 @@ function Vt(e, n = 0) {
|
|
|
9247
9251
|
if (a) {
|
|
9248
9252
|
let e = a.split(`-`);
|
|
9249
9253
|
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`) {
|
|
9250
|
-
let e = Object.entries(n).reduce((e, [t, n]) => (Tt(t) && (e[t] =
|
|
9254
|
+
let e = Object.entries(n).reduce((e, [t, n]) => (Tt(t) && (e[t] = Ht(n, r)), e), {});
|
|
9251
9255
|
Object.keys(e).length && (i.branches = e);
|
|
9252
9256
|
}
|
|
9253
9257
|
if (e[0] === `branch`) {
|
|
9254
|
-
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] =
|
|
9258
|
+
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] = Ht(n, r), e), {});
|
|
9255
9259
|
Object.keys(s).length && (i.branches = s);
|
|
9256
9260
|
}
|
|
9257
9261
|
i.transformation = e[0];
|
|
@@ -9273,10 +9277,10 @@ function Vt(e, n = 0) {
|
|
|
9273
9277
|
}
|
|
9274
9278
|
return c(e);
|
|
9275
9279
|
}
|
|
9276
|
-
const
|
|
9280
|
+
const Ut = `@generaltranslation/react-core`;
|
|
9277
9281
|
function W(e) {
|
|
9278
9282
|
return S({
|
|
9279
|
-
source:
|
|
9283
|
+
source: Ut,
|
|
9280
9284
|
...e
|
|
9281
9285
|
});
|
|
9282
9286
|
}
|
|
@@ -9323,12 +9327,12 @@ W({
|
|
|
9323
9327
|
whatHappened: `No dictionary was found`,
|
|
9324
9328
|
fix: `Pass a dictionary to <GTProvider> or configure a dictionary loader before rendering translations`
|
|
9325
9329
|
});
|
|
9326
|
-
const
|
|
9327
|
-
function
|
|
9330
|
+
const qt = `${Ut} Warning: A <_T> component was found injected outside of a <Derive> boundary. This may affect translation resolution for this component.`;
|
|
9331
|
+
function Jt(e) {
|
|
9328
9332
|
return K(e, 0);
|
|
9329
9333
|
}
|
|
9330
|
-
function
|
|
9331
|
-
let { type: n, props: i } = e, a =
|
|
9334
|
+
function Yt(e, t) {
|
|
9335
|
+
let { type: n, props: i } = e, a = Xt(n);
|
|
9332
9336
|
if (typeof i != `object` || !i) return e;
|
|
9333
9337
|
if (a) {
|
|
9334
9338
|
let { componentType: n, injectionType: o } = a;
|
|
@@ -9340,7 +9344,7 @@ function Jt(e, t) {
|
|
|
9340
9344
|
...`children` in i && { children: K(i.children, t + 1) }
|
|
9341
9345
|
});
|
|
9342
9346
|
if (n === `translate` && o === `automatic` && t > 0) return `children` in i ? K(i.children, t) : void 0;
|
|
9343
|
-
n === `translate` && o === `automatic` && console.warn(
|
|
9347
|
+
n === `translate` && o === `automatic` && console.warn(qt);
|
|
9344
9348
|
}
|
|
9345
9349
|
return cloneElement(e, {
|
|
9346
9350
|
...i,
|
|
@@ -9348,12 +9352,12 @@ function Jt(e, t) {
|
|
|
9348
9352
|
});
|
|
9349
9353
|
}
|
|
9350
9354
|
function G(e, t) {
|
|
9351
|
-
return isValidElement(e) ?
|
|
9355
|
+
return isValidElement(e) ? Yt(e, t) : e;
|
|
9352
9356
|
}
|
|
9353
9357
|
function K(e, t) {
|
|
9354
9358
|
return Array.isArray(e) ? Children.map(e, (e) => G(e, t)) : G(e, t);
|
|
9355
9359
|
}
|
|
9356
|
-
function
|
|
9360
|
+
function Xt(e) {
|
|
9357
9361
|
let t = typeof e == `function` && `_gtt` in e ? e._gtt : void 0;
|
|
9358
9362
|
if (t == null || typeof t != `string`) return;
|
|
9359
9363
|
let n = t.split(`-`);
|
|
@@ -9362,27 +9366,27 @@ function Yt(e) {
|
|
|
9362
9366
|
injectionType: n[1] === `automatic` || n[2] === `automatic` ? `automatic` : `manual`
|
|
9363
9367
|
};
|
|
9364
9368
|
}
|
|
9365
|
-
const
|
|
9369
|
+
const Zt = {
|
|
9366
9370
|
variable: `value`,
|
|
9367
9371
|
number: `n`,
|
|
9368
9372
|
datetime: `date`,
|
|
9369
9373
|
currency: `cost`,
|
|
9370
9374
|
"relative-time": `time`
|
|
9371
9375
|
};
|
|
9372
|
-
function
|
|
9373
|
-
return typeof e.name == `string` ? e.name : `_gt_${
|
|
9376
|
+
function Qt(e = {}, t) {
|
|
9377
|
+
return typeof e.name == `string` ? e.name : `_gt_${Zt[t] || `value`}_${e[`data-_gt`]?.id}`;
|
|
9374
9378
|
}
|
|
9375
|
-
function
|
|
9379
|
+
function $t(e) {
|
|
9376
9380
|
return t$1.isValidElement(e);
|
|
9377
9381
|
}
|
|
9378
|
-
const
|
|
9382
|
+
const en = {
|
|
9379
9383
|
pl: `placeholder`,
|
|
9380
9384
|
ti: `title`,
|
|
9381
9385
|
alt: `alt`,
|
|
9382
9386
|
arl: `aria-label`,
|
|
9383
9387
|
arb: `aria-labelledby`,
|
|
9384
9388
|
ard: `aria-describedby`
|
|
9385
|
-
},
|
|
9389
|
+
}, tn = (e) => {
|
|
9386
9390
|
if (!e) return ``;
|
|
9387
9391
|
let { type: t, props: n } = e;
|
|
9388
9392
|
if (t && typeof t == `function`) {
|
|
@@ -9390,8 +9394,8 @@ const $t = {
|
|
|
9390
9394
|
if (`name` in t && typeof t.name == `string` && t.name) return t.name;
|
|
9391
9395
|
}
|
|
9392
9396
|
return t && typeof t == `string` ? t : n.href ? `a` : n[`data-_gt`]?.id ? `C${n[`data-_gt`].id}` : `function`;
|
|
9393
|
-
},
|
|
9394
|
-
let r = Object.entries(
|
|
9397
|
+
}, nn = (e, t, n) => {
|
|
9398
|
+
let r = Object.entries(en).reduce((e, [n, r]) => {
|
|
9395
9399
|
let i = t[r];
|
|
9396
9400
|
return typeof i == `string` && (e[n] = i), e;
|
|
9397
9401
|
}, {});
|
|
@@ -9416,20 +9420,20 @@ const $t = {
|
|
|
9416
9420
|
};
|
|
9417
9421
|
}
|
|
9418
9422
|
return Object.keys(r).length ? r : void 0;
|
|
9419
|
-
},
|
|
9420
|
-
let { props: t } = e, n = { t:
|
|
9423
|
+
}, rn = (e) => {
|
|
9424
|
+
let { props: t } = e, n = { t: tn(e) };
|
|
9421
9425
|
if (t[`data-_gt`]) {
|
|
9422
9426
|
let e = t[`data-_gt`], r = e.transformation;
|
|
9423
9427
|
if (r === `variable`) {
|
|
9424
|
-
let n = e.variableType || `variable`, r =
|
|
9428
|
+
let n = e.variableType || `variable`, r = Qt(t, n), i = Ot(n);
|
|
9425
9429
|
return {
|
|
9426
9430
|
i: e.id,
|
|
9427
9431
|
k: r,
|
|
9428
9432
|
v: i
|
|
9429
9433
|
};
|
|
9430
9434
|
}
|
|
9431
|
-
n.i = e.id, n.d =
|
|
9432
|
-
let i = Object.entries(
|
|
9435
|
+
n.i = e.id, n.d = nn(r, t, e.branches);
|
|
9436
|
+
let i = Object.entries(en).reduce((e, [n, r]) => {
|
|
9433
9437
|
let i = t[r];
|
|
9434
9438
|
return typeof i == `string` && (e[n] = i), e;
|
|
9435
9439
|
}, {});
|
|
@@ -9456,21 +9460,21 @@ const $t = {
|
|
|
9456
9460
|
n.d = Object.keys(i).length ? i : void 0;
|
|
9457
9461
|
}
|
|
9458
9462
|
return t.children && (n.c = q(t.children)), n;
|
|
9459
|
-
},
|
|
9463
|
+
}, an = (e) => $t(e) ? rn(e) : typeof e == `number` ? e.toString() : e;
|
|
9460
9464
|
function q(e) {
|
|
9461
|
-
return Array.isArray(e) ? e.map(
|
|
9465
|
+
return Array.isArray(e) ? e.map(an) : an(e);
|
|
9462
9466
|
}
|
|
9463
9467
|
function J(e, t, n) {
|
|
9464
9468
|
let r = ``, i = null;
|
|
9465
9469
|
return typeof e == `number` && !i && n && (r = Et(e, Object.keys(n).filter(Tt), t)), r && !i && (i = n[r]), i;
|
|
9466
9470
|
}
|
|
9467
|
-
function
|
|
9471
|
+
function sn(e) {
|
|
9468
9472
|
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`;
|
|
9469
9473
|
}
|
|
9470
|
-
function
|
|
9474
|
+
function cn(e) {
|
|
9471
9475
|
let t = e[`data-_gt`]?.variableType || `variable`;
|
|
9472
9476
|
return {
|
|
9473
|
-
variableName:
|
|
9477
|
+
variableName: Qt(e, t),
|
|
9474
9478
|
variableType: Ot(t),
|
|
9475
9479
|
injectionType: e[`data-_gt`]?.injectionType || `manual`,
|
|
9476
9480
|
variableValue: (() => {
|
|
@@ -9490,14 +9494,14 @@ function sn(e) {
|
|
|
9490
9494
|
})()
|
|
9491
9495
|
};
|
|
9492
9496
|
}
|
|
9493
|
-
function
|
|
9497
|
+
function un(e) {
|
|
9494
9498
|
return e && e.props && e.props[`data-_gt`] ? e.props[`data-_gt`] : null;
|
|
9495
9499
|
}
|
|
9496
9500
|
function Z({ children: e, defaultLocale: n = `en`, renderVariable: r }) {
|
|
9497
9501
|
let i = (e) => {
|
|
9498
|
-
let i =
|
|
9499
|
-
if (
|
|
9500
|
-
let { variableType: t, variableValue: i, variableOptions: a, injectionType: o } =
|
|
9502
|
+
let i = un(e);
|
|
9503
|
+
if (sn(e.props)) {
|
|
9504
|
+
let { variableType: t, variableValue: i, variableOptions: a, injectionType: o } = cn(e.props);
|
|
9501
9505
|
return r({
|
|
9502
9506
|
variableType: t,
|
|
9503
9507
|
variableValue: i,
|
|
@@ -9530,9 +9534,9 @@ function Z({ children: e, defaultLocale: n = `en`, renderVariable: r }) {
|
|
|
9530
9534
|
}, a = (e) => t$1.isValidElement(e) ? i(e) : e, o = (e) => Array.isArray(e) ? t$1.Children.map(e, a) : a(e);
|
|
9531
9535
|
return o(e);
|
|
9532
9536
|
}
|
|
9533
|
-
function
|
|
9537
|
+
function dn({ sourceElement: e, targetElement: n, locales: r = [`en`], renderVariable: i }) {
|
|
9534
9538
|
let { props: a } = e, o = a[`data-_gt`], s = o?.transformation, c = n.d, l = {};
|
|
9535
|
-
if (c && Object.entries(
|
|
9539
|
+
if (c && Object.entries(en).forEach(([e, t]) => {
|
|
9536
9540
|
c[e] && (l[t] = c[e]);
|
|
9537
9541
|
}), s === `plural`) {
|
|
9538
9542
|
let t = e.props.n;
|
|
@@ -9591,18 +9595,18 @@ function Q({ source: e, target: n, locales: r = [`en`], renderVariable: i }) {
|
|
|
9591
9595
|
if (typeof n == `string`) return n;
|
|
9592
9596
|
if (Array.isArray(n) && !Array.isArray(e) && e && (e = [e]), Array.isArray(e) && Array.isArray(n)) {
|
|
9593
9597
|
let a = {}, o = {}, c = {}, l = e.filter((e) => {
|
|
9594
|
-
if (t$1.isValidElement(e)) if (
|
|
9595
|
-
let { variableName: t, variableValue: n, variableOptions: r, injectionType: i } =
|
|
9598
|
+
if (t$1.isValidElement(e)) if (sn(e.props)) {
|
|
9599
|
+
let { variableName: t, variableValue: n, variableOptions: r, injectionType: i } = cn(e.props);
|
|
9596
9600
|
a[t] = n, o[t] = r, c[t] = i;
|
|
9597
9601
|
} else return !0;
|
|
9598
9602
|
return !1;
|
|
9599
9603
|
}), u = (e) => l.find((t) => {
|
|
9600
|
-
let n =
|
|
9604
|
+
let n = un(t);
|
|
9601
9605
|
return n?.id === void 0 ? !1 : n.id === e.i;
|
|
9602
9606
|
}) || l.shift();
|
|
9603
9607
|
return n.map((e, n) => {
|
|
9604
9608
|
if (typeof e == `string`) return jsx(t$1.Fragment, { children: e }, `string_${n}`);
|
|
9605
|
-
if (
|
|
9609
|
+
if (ie(e)) return jsx(t$1.Fragment, { children: i({
|
|
9606
9610
|
variableType: e.v || `v`,
|
|
9607
9611
|
variableValue: a[e.k],
|
|
9608
9612
|
variableOptions: o[e.k],
|
|
@@ -9610,7 +9614,7 @@ function Q({ source: e, target: n, locales: r = [`en`], renderVariable: i }) {
|
|
|
9610
9614
|
injectionType: c[e.k] || `manual`
|
|
9611
9615
|
}) }, `var_${n}`);
|
|
9612
9616
|
let l = u(e);
|
|
9613
|
-
return l ? jsx(t$1.Fragment, { children:
|
|
9617
|
+
return l ? jsx(t$1.Fragment, { children: dn({
|
|
9614
9618
|
sourceElement: l,
|
|
9615
9619
|
targetElement: e,
|
|
9616
9620
|
locales: r,
|
|
@@ -9619,16 +9623,16 @@ function Q({ source: e, target: n, locales: r = [`en`], renderVariable: i }) {
|
|
|
9619
9623
|
});
|
|
9620
9624
|
}
|
|
9621
9625
|
if (n && typeof n == `object` && !Array.isArray(n)) {
|
|
9622
|
-
let a =
|
|
9626
|
+
let a = ie(n) ? `variable` : `element`;
|
|
9623
9627
|
if (t$1.isValidElement(e)) {
|
|
9624
|
-
if (a === `element`) return
|
|
9628
|
+
if (a === `element`) return dn({
|
|
9625
9629
|
sourceElement: e,
|
|
9626
9630
|
targetElement: n,
|
|
9627
9631
|
locales: r,
|
|
9628
9632
|
renderVariable: i
|
|
9629
9633
|
});
|
|
9630
|
-
if (
|
|
9631
|
-
let { variableValue: t, variableOptions: n, variableType: a, injectionType: o } =
|
|
9634
|
+
if (sn(e.props)) {
|
|
9635
|
+
let { variableValue: t, variableOptions: n, variableType: a, injectionType: o } = cn(e.props);
|
|
9632
9636
|
return i({
|
|
9633
9637
|
variableType: a,
|
|
9634
9638
|
variableValue: t,
|
|
@@ -9645,15 +9649,15 @@ function Q({ source: e, target: n, locales: r = [`en`], renderVariable: i }) {
|
|
|
9645
9649
|
renderVariable: i
|
|
9646
9650
|
});
|
|
9647
9651
|
}
|
|
9648
|
-
const
|
|
9652
|
+
const mn = `generaltranslation.locale`;
|
|
9649
9653
|
e.use;
|
|
9650
|
-
function
|
|
9654
|
+
function Yn({ children: e }) {
|
|
9651
9655
|
return e;
|
|
9652
9656
|
}
|
|
9653
|
-
function
|
|
9654
|
-
return
|
|
9657
|
+
function Xn(e) {
|
|
9658
|
+
return Yn(e);
|
|
9655
9659
|
}
|
|
9656
|
-
|
|
9660
|
+
Yn._gtt = `derive`, Xn._gtt = `derive`;
|
|
9657
9661
|
//#endregion
|
|
9658
9662
|
//#region src/shared/cookies.ts
|
|
9659
9663
|
/**
|
|
@@ -9684,7 +9688,7 @@ function setCookieValue(cookieName, value) {
|
|
|
9684
9688
|
* @returns The determined locale
|
|
9685
9689
|
*
|
|
9686
9690
|
*/
|
|
9687
|
-
function determineLocale({ defaultLocale, locales, customMapping, localeCookieName =
|
|
9691
|
+
function determineLocale({ defaultLocale, locales, customMapping, localeCookieName = mn, getLocale }) {
|
|
9688
9692
|
const localeConfig = {
|
|
9689
9693
|
defaultLocale,
|
|
9690
9694
|
locales,
|
|
@@ -9719,7 +9723,7 @@ var BrowserConditionStore = class {
|
|
|
9719
9723
|
/**
|
|
9720
9724
|
* @param {BrowserConditionStoreConstructorParams} params - The configuration for the BrowserConditionStore
|
|
9721
9725
|
*/
|
|
9722
|
-
constructor({ getLocale, localeCookieName =
|
|
9726
|
+
constructor({ getLocale, localeCookieName = mn, ...localeConfig } = {}) {
|
|
9723
9727
|
this.localeConfig = localeConfig;
|
|
9724
9728
|
this.customGetLocale = getLocale;
|
|
9725
9729
|
this.localeCookieName = localeCookieName;
|
|
@@ -10464,7 +10468,7 @@ GtInternalTranslateJsx._gtt = "translate-client-automatic";
|
|
|
10464
10468
|
* Implementation for the T component logic
|
|
10465
10469
|
*/
|
|
10466
10470
|
function useComputeT({ children: sourceChildren, ...params }) {
|
|
10467
|
-
const taggedSourceChildren = useMemo(() =>
|
|
10471
|
+
const taggedSourceChildren = useMemo(() => Ht(Jt(sourceChildren)), [sourceChildren]);
|
|
10468
10472
|
const sourceJsxChildren = useMemo(() => q(taggedSourceChildren), [taggedSourceChildren]);
|
|
10469
10473
|
const renderSourceChildren = () => Z({
|
|
10470
10474
|
children: taggedSourceChildren,
|