@wix/blog 1.0.712 → 1.0.714

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.
@@ -117,45 +117,45 @@ var he = (e6) => (e6.response?.status ?? -1) >= 400 && (e6.response?.status ?? -
117
117
  function ge(e6, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
118
118
  if (typeof e6 != `object` || !e6) throw e6;
119
119
  if (pe(e6)) return _e(e6, t2, n2);
120
- if (me(e6)) return ye(e6);
120
+ if (me(e6)) return ve(e6);
121
121
  if (he(e6)) {
122
122
  let t3 = e6.response?.status, n3 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: se(n3), data: {} }, requestId: e6.requestId };
123
- return ve(e6, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
123
+ return E(e6, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
124
124
  }
125
- return be(e6);
125
+ return ye(e6);
126
126
  }
127
127
  var _e = (e6, t2, n2) => {
128
- let r2 = e6.response?.data, i2 = e6.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = xe(t2, a2, n2)?.sort((e7, t3) => e7.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e7, description: t3 }) => `"${e7}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
129
- return ve(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e6.response?.status, requestId: i2 } });
128
+ let r2 = e6.response?.data, i2 = e6.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = be(t2, a2, n2)?.sort((e7, t3) => e7.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e7, description: t3 }) => `"${e7}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
129
+ return E(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e6.response?.status, requestId: i2 } });
130
130
  };
131
- var ve = (e6, { message: t2, extraProperties: n2 }) => Object.assign(e6, { ...n2, message: t2 });
132
- var ye = (e6) => {
131
+ var E = (e6, { message: t2, extraProperties: n2 }) => Object.assign(e6, { ...n2, message: t2 });
132
+ var ve = (e6) => {
133
133
  let t2 = e6.response?.status, n2 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n2, i2 = e6.response?.data?.details?.applicationError?.description ?? n2, a2 = e6.response?.data?.details?.applicationError?.code ?? se(n2), o2 = e6.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e6.requestId };
134
- return ve(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e6.requestId } });
134
+ return E(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e6.requestId } });
135
135
  };
136
- var be = (e6) => ve(e6, { message: e6.requestId ? `System error occurred, request-id: ${e6.requestId}` : `System error occurred: ${JSON.stringify(e6)}`, extraProperties: { requestId: e6.requestId, status: e6.response?.status, code: se(e6.response?.statusText ?? `UNKNOWN`), ...!e6.response && { runtimeError: e6 } } });
137
- var xe = ({ spreadPathsToArguments: e6, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
136
+ var ye = (e6) => E(e6, { message: e6.requestId ? `System error occurred, request-id: ${e6.requestId}` : `System error occurred: ${JSON.stringify(e6)}`, extraProperties: { requestId: e6.requestId, status: e6.response?.status, code: se(e6.response?.statusText ?? `UNKNOWN`), ...!e6.response && { runtimeError: e6 } } });
137
+ var be = ({ spreadPathsToArguments: e6, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
138
138
  let a2 = { ...e6, ...t2 }, o2 = Object.keys(a2);
139
139
  return r2?.filter((e7) => !r2.some((t3) => t3.field.length > e7.field.length && t3.field.startsWith(e7.field) && o2.includes(t3.field))).map((e7) => {
140
140
  let r3 = t2[e7.field];
141
- if (r3) return { ...e7, field: Se(r3, i2) };
141
+ if (r3) return { ...e7, field: xe(r3, i2) };
142
142
  let s2 = o2?.sort((e8, t3) => t3.length - e8.length)?.find((t3) => e7.field.startsWith(t3));
143
143
  if (s2) {
144
144
  let t3 = a2[s2];
145
- if (t3) return { ...e7, field: e7.field.replace(s2, Se(t3, i2)) };
145
+ if (t3) return { ...e7, field: e7.field.replace(s2, xe(t3, i2)) };
146
146
  }
147
147
  return n2 ? { ...e7, field: `${i2[0]}.${e7.field}` } : e7;
148
148
  });
149
149
  };
150
- var Se = (e6, t2) => {
151
- let n2 = Ce(e6);
150
+ var xe = (e6, t2) => {
151
+ let n2 = Se(e6);
152
152
  return n2 == null ? e6 : e6.replace(`$[${n2}]`, t2[n2]);
153
153
  };
154
- var Ce = (e6) => {
154
+ var Se = (e6) => {
155
155
  let t2 = e6.match(/\$\[(?<argIndex>\d+)\]/);
156
156
  return t2 && t2.groups && Number(t2.groups.argIndex);
157
157
  };
158
- function we(e6, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
158
+ function Ce(e6, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
159
159
  return ae(() => e6({ request: async (e7) => {
160
160
  let i3 = e7({ host: s2?.HTTPHost || `www.wixapis.com` }), a3 = i3;
161
161
  a3.method === `GET` && a3.fallback?.length && (a3.params?.toString().length ?? 0) > 4e3 && (a3 = i3.fallback[0]);
@@ -169,7 +169,7 @@ function we(e6, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
169
169
  e9 = await s3.json();
170
170
  } catch {
171
171
  }
172
- let t3 = Ee(s3.status, e9?.message ?? s3.statusText, e9?.details, { requestId: s3.headers.get(`X-Wix-Request-Id`), details: e9 }), n3 = ge(t3);
172
+ let t3 = Te(s3.status, e9?.message ?? s3.statusText, e9?.details, { requestId: s3.headers.get(`X-Wix-Request-Id`), details: e9 }), n3 = ge(t3);
173
173
  throw r2?.handleError(n3, { requestOptions: { url: a3.url, method: a3.method, entityFqdn: i3.entityFqdn, methodFqn: i3.methodFqn } }), t3;
174
174
  }
175
175
  let l3 = await s3.json();
@@ -179,18 +179,18 @@ function we(e6, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
179
179
  }
180
180
  }, fetchWithAuth: n2, wixAPIFetch: i2, getActiveToken: a2, getAuthHeaders: o2 }, { validateRequestSchema: u2 }));
181
181
  }
182
- var Te = class extends Error {
182
+ var we = class extends Error {
183
183
  response;
184
184
  requestId;
185
185
  constructor(e6) {
186
186
  super(), this.response = e6.response, this.requestId = e6.requestId;
187
187
  }
188
188
  };
189
- var Ee = (e6, t2, n2, r2) => new Te({ response: { data: { details: { ...!n2?.validationError && { applicationError: { description: t2, code: e6, data: r2 } }, ...n2 }, message: t2 }, status: e6 }, requestId: r2?.requestId });
190
- var De = `.`;
191
- function Oe(e6, t2, n2) {
189
+ var Te = (e6, t2, n2, r2) => new we({ response: { data: { details: { ...!n2?.validationError && { applicationError: { description: t2, code: e6, data: r2 } }, ...n2 }, message: t2 }, status: e6 }, requestId: r2?.requestId });
190
+ var Ee = `.`;
191
+ function De(e6, t2, n2) {
192
192
  if (e6 == null) throw Error(`Cannot set value on null or undefined`);
193
- let r2 = ke(t2), i2 = e6;
193
+ let r2 = Oe(t2), i2 = e6;
194
194
  for (let e7 = 0; e7 < r2.length; e7++) {
195
195
  let t3 = r2[e7];
196
196
  if (e7 === r2.length - 1) {
@@ -202,21 +202,21 @@ function Oe(e6, t2, n2) {
202
202
  }
203
203
  return e6;
204
204
  }
205
- function ke(e6) {
206
- return Array.isArray(e6) ? e6 : e6.split(De).map((e7) => Ae(e7) ? Number(e7) : e7);
205
+ function Oe(e6) {
206
+ return Array.isArray(e6) ? e6 : e6.split(Ee).map((e7) => ke(e7) ? Number(e7) : e7);
207
207
  }
208
- function Ae(e6) {
208
+ function ke(e6) {
209
209
  return /^\d+$/.test(e6);
210
210
  }
211
- function je(e6) {
211
+ function Ae(e6) {
212
212
  let t2 = {};
213
- for (let [n2, r2] of Object.entries(e6)) Me(n2) || Oe(t2, ke(n2), r2);
213
+ for (let [n2, r2] of Object.entries(e6)) je(n2) || De(t2, Oe(n2), r2);
214
214
  return t2;
215
215
  }
216
- function Me(e6) {
216
+ function je(e6) {
217
217
  return e6 === `__proto__` || e6 === `constructor` || e6 === `prototype`;
218
218
  }
219
- var Ne = class {
219
+ var Me = class {
220
220
  BRACKET_PATTERN = /\[(\d+)\]/g;
221
221
  NUMERIC_PATTERN = /^\d+$/;
222
222
  ESCAPED_DOT_PATTERN = /\\\./g;
@@ -239,7 +239,7 @@ var Ne = class {
239
239
  return e6.replace(this.ESCAPED_DOT_PLACEHOLDER, `\\.`).replace(this.ESCAPED_RIGHT_BRACKET_PLACEHOLDER, `\\]`).replace(this.ESCAPED_LEFT_BRACKET_PLACEHOLDER, `\\[`);
240
240
  }
241
241
  unflatten() {
242
- return this.cleanedModifiedFields = Object.fromEntries(Object.entries(this.modifiedFields).map(([e6, t2]) => [this.replaceEscapedCharacters(this.bracketToDotNotation(e6)), t2])), je(this.cleanedModifiedFields);
242
+ return this.cleanedModifiedFields = Object.fromEntries(Object.entries(this.modifiedFields).map(([e6, t2]) => [this.replaceEscapedCharacters(this.bracketToDotNotation(e6)), t2])), Ae(this.cleanedModifiedFields);
243
243
  }
244
244
  flatten(e6) {
245
245
  let t2 = {};
@@ -264,7 +264,7 @@ var Ne = class {
264
264
  r2.push(i3), n2 = t3[i3];
265
265
  return;
266
266
  }
267
- let a3 = Le(e7);
267
+ let a3 = Ie(e7);
268
268
  if (a3 && a3 in t3) r2.push(a3), n2 = t3[a3];
269
269
  else throw Error(`Cannot find key '${e7}' or its transformations at path ${this.buildPathString(r2)}`);
270
270
  }, o2 = (e7, t3) => {
@@ -288,28 +288,28 @@ var Ne = class {
288
288
  return e6.replace(this.BRACKET_PATTERN, (t2, n2, r2) => r2 > 0 && e6[r2 - 1] === `\\` ? t2 : `.` + n2);
289
289
  }
290
290
  };
291
- function Pe(e6, t2) {
291
+ function Ne(e6, t2) {
292
292
  let n2 = e6?.modifiedFields;
293
293
  if (!n2) return null;
294
- let r2 = Fe(n2);
294
+ let r2 = Pe(n2);
295
295
  if (!r2) return null;
296
296
  let { unflattenedModifiedFields: i2, modifiedFieldsManipulator: a2 } = r2;
297
297
  e6 = { ...e6, modifiedFields: i2 };
298
298
  let o2 = t2(e6), s2 = o2?.modifiedFields;
299
299
  if (!s2) return null;
300
- let c2 = Ie(s2, a2);
300
+ let c2 = Fe(s2, a2);
301
301
  return c2 === null ? null : (o2.modifiedFields = c2, o2);
302
302
  }
303
- function Fe(e6) {
303
+ function Pe(e6) {
304
304
  if (typeof e6 == `object` && e6 && !Array.isArray(e6)) try {
305
- let t2 = new Ne(e6);
305
+ let t2 = new Me(e6);
306
306
  return { unflattenedModifiedFields: t2.unflatten(), modifiedFieldsManipulator: t2 };
307
307
  } catch {
308
308
  return null;
309
309
  }
310
310
  return null;
311
311
  }
312
- function Ie(e6, t2) {
312
+ function Fe(e6, t2) {
313
313
  if (typeof e6 == `object` && e6 && !Array.isArray(e6)) try {
314
314
  return t2.flatten(e6);
315
315
  } catch {
@@ -317,10 +317,10 @@ function Ie(e6, t2) {
317
317
  }
318
318
  return null;
319
319
  }
320
- function Le(e6) {
320
+ function Ie(e6) {
321
321
  return e6.replace(/[-_\s]+(.)?/g, (e7, t2) => t2 ? t2.toUpperCase() : ``).replace(/^./, (e7) => e7.toLowerCase());
322
322
  }
323
- function Re() {
323
+ function Le() {
324
324
  return { emit(e6, ...t2) {
325
325
  for (let n2 = 0, r2 = this.events[e6] || [], i2 = r2.length; n2 < i2; n2++) r2[n2](...t2);
326
326
  }, events: {}, on(e6, t2) {
@@ -329,8 +329,8 @@ function Re() {
329
329
  };
330
330
  } };
331
331
  }
332
- var ze = (e6) => e6.__type === `event-definition`;
333
- function Be(e6, t2, n2, r2) {
332
+ var Re = (e6) => e6.__type === `event-definition`;
333
+ function ze(e6, t2, n2, r2) {
334
334
  let i2;
335
335
  if (e6.isDomainEvent) {
336
336
  let { deletedEvent: e7, actionEvent: t3, createdEvent: a3, updatedEvent: o3, ...s3 } = n2, c2 = { ...r2, ...s3 };
@@ -341,14 +341,14 @@ function Be(e6, t2, n2, r2) {
341
341
  let e7 = s2.modifiedFields;
342
342
  if (typeof e7 == `object` && e7 && !Array.isArray(e7)) {
343
343
  o2 = structuredClone(i2);
344
- let e8 = Pe(s2, a2);
344
+ let e8 = Ne(s2, a2);
345
345
  if (e8) return t2(e8);
346
346
  }
347
347
  }
348
348
  return t2(a2(o2));
349
349
  }
350
- function Ve(e6) {
351
- let t2 = /* @__PURE__ */ new Map(), n2 = Re();
350
+ function Be(e6) {
351
+ let t2 = /* @__PURE__ */ new Map(), n2 = Le();
352
352
  return { initModule(e7) {
353
353
  return (r2) => {
354
354
  let i2 = t2.get(e7.type) ?? [];
@@ -358,7 +358,7 @@ function Ve(e6) {
358
358
  let { eventType: r2, identity: i2, instanceId: a2, payload: o2, accountInfo: s2 } = await this.parseJWT(e7), c2 = [...n3.expectedEvents, ...Array.from(t2.keys()).map((e8) => ({ type: e8 }))];
359
359
  if (c2.length > 0 && !c2.some(({ type: e8 }) => e8 === r2)) throw Error(`Unexpected event type: ${r2}. Expected one of: ${c2.map((e8) => e8.type).join(`, `)}`);
360
360
  let l2 = t2.get(r2) ?? [];
361
- return await Promise.all(l2.map(({ eventDefinition: e8, handler: t3 }) => Be(e8, t3, o2, { instanceId: a2, identity: i2, accountInfo: s2 }))), { instanceId: a2, eventType: r2, payload: o2, identity: i2, accountInfo: s2 };
361
+ return await Promise.all(l2.map(({ eventDefinition: e8, handler: t3 }) => ze(e8, t3, o2, { instanceId: a2, identity: i2, accountInfo: s2 }))), { instanceId: a2, eventType: r2, payload: o2, identity: i2, accountInfo: s2 };
362
362
  }, async processRequest(e7, t3) {
363
363
  let n3 = await e7.text();
364
364
  return this.process(n3, t3);
@@ -377,12 +377,12 @@ function Ve(e6) {
377
377
  let n3 = Array.from(t2.keys()).map((e8) => ({ type: e8 }));
378
378
  if (n3.length > 0 && !n3.some(({ type: t3 }) => t3 === e7.eventType)) throw Error(`Unexpected event type: ${e7.eventType}. Expected one of: ${n3.map((e8) => e8.type).join(`, `)}`);
379
379
  let r2 = t2.get(e7.eventType) ?? [];
380
- await Promise.all(r2.map(({ eventDefinition: t3, handler: n4 }) => Be(t3, n4, e7.payload, { instanceId: e7.instanceId, identity: e7.identity })));
380
+ await Promise.all(r2.map(({ eventDefinition: t3, handler: n4 }) => ze(t3, n4, e7.payload, { instanceId: e7.instanceId, identity: e7.identity })));
381
381
  }, apps: { AppInstalled: g(`AppInstalled`)(), AppRemoved: g(`AppRemoved`)() } } };
382
382
  }
383
- var He = (e6) => e6.__type === `service-plugin-definition`;
384
- function Ue(e6) {
385
- let t2 = /* @__PURE__ */ new Map(), n2 = Re();
383
+ var Ve = (e6) => e6.__type === `service-plugin-definition`;
384
+ function He(e6) {
385
+ let t2 = /* @__PURE__ */ new Map(), n2 = Le();
386
386
  return { initModule(e7) {
387
387
  return (r2) => {
388
388
  let i2 = t2.get(e7.componentType.toLowerCase()) ?? [];
@@ -423,38 +423,38 @@ function Ue(e6) {
423
423
  return s2.transformations.toREST(await c2(s2.transformations.fromREST(e7)));
424
424
  } } };
425
425
  }
426
- var E = `X-Wix-Consistent`;
427
- function We(e6) {
426
+ var D = `X-Wix-Consistent`;
427
+ function Ue(e6) {
428
428
  let t2 = e6.headers || { Authorization: `` }, n2 = { getAuthHeaders: (e7) => Promise.resolve({ headers: {} }) }, r2 = e6.auth, i2 = typeof r2 == `function` ? r2 : () => r2 ?? n2, a2 = () => i2().getAuthHeaders(e6.host), o2 = () => e6.fetch ?? fetch, s2 = async (n3, r3) => {
429
- let i3 = o2(), s3 = await a2(), c3 = { ...r3?.headers ?? {}, ...s3.headers, ...e6.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [E]: t2[E] } : {} }, l3 = e6.host?.getErrorHandler?.();
429
+ let i3 = o2(), s3 = await a2(), c3 = { ...r3?.headers ?? {}, ...s3.headers, ...e6.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [D]: t2[D] } : {} }, l3 = e6.host?.getErrorHandler?.();
430
430
  try {
431
431
  if (typeof n3 == `string` || n3 instanceof URL) {
432
432
  let e7 = await i3(n3, { ...r3, headers: c3 });
433
433
  l3?.handleError(e7, { requestOptions: { url: n3.toString(), method: r3?.method } });
434
- let a3 = Ge(e7);
435
- return a3 && (t2[E] = a3), e7;
434
+ let a3 = We(e7);
435
+ return a3 && (t2[D] = a3), e7;
436
436
  }
437
437
  {
438
438
  for (let [e8, t3] of Object.entries(c3)) typeof t3 == `string` && n3.headers.set(e8, t3);
439
439
  let e7 = await i3(n3, r3);
440
440
  l3?.handleError(e7, { requestOptions: { url: n3.url, method: r3?.method } });
441
- let a3 = Ge(e7);
442
- return a3 && (t2[E] = a3), e7;
441
+ let a3 = We(e7);
442
+ return a3 && (t2[D] = a3), e7;
443
443
  }
444
444
  } catch (e7) {
445
445
  throw l3?.handleError(e7, { requestOptions: { url: typeof n3 == `string` || n3 instanceof URL ? n3.toString() : n3.url, method: r3?.method } }), e7;
446
446
  }
447
- }, { client: c2, initModule: l2 } = Ue(i2), { client: u2, initModule: d2 } = Ve(i2), f2 = async (n3, r3) => {
448
- let i3 = o2(), s3 = await a2(), c3 = ee(r3), l3 = await i3(n3, { ...r3, headers: { ...c3, ...t2, ...s3?.headers, ...r3?.headers, ...e6.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [E]: t2[E] } : {} } }), u3 = Ge(l3);
449
- return u3 && (t2[E] = u3), l3;
447
+ }, { client: c2, initModule: l2 } = He(i2), { client: u2, initModule: d2 } = Be(i2), f2 = async (n3, r3) => {
448
+ let i3 = o2(), s3 = await a2(), c3 = ee(r3), l3 = await i3(n3, { ...r3, headers: { ...c3, ...t2, ...s3?.headers, ...r3?.headers, ...e6.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [D]: t2[D] } : {} } }), u3 = We(l3);
449
+ return u3 && (t2[D] = u3), l3;
450
450
  }, p2 = (t3, n3) => {
451
- if (ze(t3)) return d2(t3);
452
- if (He(t3)) return l2(t3);
451
+ if (Re(t3)) return d2(t3);
452
+ if (Ve(t3)) return l2(t3);
453
453
  if (T(t3) && e6.host) return te(t3, e6.host);
454
454
  if (typeof t3 == `function`) {
455
455
  if (`__type` in t3 && t3.__type === `wix_spi_error`) return t3;
456
456
  let r3 = e6.host?.apiBaseUrl ?? `www.wixapis.com`, o3 = e6.useCDN === void 0 ? i2().shouldUseCDN : e6.useCDN;
457
- return we(ae(() => y(t3)) ? v(t3) : t3, n3 ?? {}, f2, e6.host?.getErrorHandler?.(), (e7, t4) => {
457
+ return Ce(ae(() => y(t3)) ? v(t3) : t3, n3 ?? {}, f2, e6.host?.getErrorHandler?.(), (e7, t4) => {
458
458
  let n4 = new URL(e7, `https://${r3}`);
459
459
  return n4.host = r3, n4.protocol = `https`, f2(n4.toString(), t4);
460
460
  }, i2().getActiveToken, async () => a2(), { HTTPHost: r3 }, e6.host?.name, o3, e6.validateRequestSchema);
@@ -478,22 +478,22 @@ function We(e6) {
478
478
  return { data: o3 ?? {}, errors: s3 };
479
479
  }, webhooks: u2, servicePlugins: c2 };
480
480
  }
481
- function Ge(e6) {
481
+ function We(e6) {
482
482
  return e6.headers?.get(`X-Wix-Consistent`) ?? e6.headers?.get(`x-wix-consistent`);
483
483
  }
484
- var Ke = { _id: `id`, _createdDate: `createdDate`, _updatedDate: `updatedDate` };
485
- var qe = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
486
- var Je = `items`;
487
- var Ye = `pagingMetadata`;
488
- var Xe = Ke;
489
- function Ze(e6, t2) {
484
+ var Ge = { _id: `id`, _createdDate: `createdDate`, _updatedDate: `updatedDate` };
485
+ var Ke = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
486
+ var qe = `items`;
487
+ var Je = `pagingMetadata`;
488
+ var Ye = Ge;
489
+ function Xe(e6, t2) {
490
490
  return e6?.split(`.`).map((e7) => t2?.[e7] ?? e7).join(`.`);
491
491
  }
492
- var Qe = `sort.fieldName`;
493
- function $e(e6, t2, n2) {
494
- return (e6 === Qe || e6.endsWith(`.${Qe}`)) && typeof t2 == `string` ? Ze(t2, n2) : t2;
492
+ var Ze = `sort.fieldName`;
493
+ function Qe(e6, t2, n2) {
494
+ return (e6 === Ze || e6.endsWith(`.${Ze}`)) && typeof t2 == `string` ? Xe(t2, n2) : t2;
495
495
  }
496
- function et(e6, t2, n2) {
496
+ function $e(e6, t2, n2) {
497
497
  let r2 = (e7) => n2.includes(e7), i2 = (e7, n3) => {
498
498
  if (Array.isArray(e7)) e7.forEach((e8) => {
499
499
  i2(e8, n3);
@@ -503,122 +503,122 @@ function et(e6, t2, n2) {
503
503
  Object.keys(a2).forEach((e8) => {
504
504
  let o2 = n3 === `` ? e8 : `${n3}.${e8}`;
505
505
  if (r2(o2)) return;
506
- let s2 = tt(e8, t2);
507
- s2 !== e8 && !(s2 in a2) && (a2[s2] = a2[e8], delete a2[e8]), a2[s2] = $e(o2, a2[s2], t2), i2(a2[s2], o2);
506
+ let s2 = et(e8, t2);
507
+ s2 !== e8 && !(s2 in a2) && (a2[s2] = a2[e8], delete a2[e8]), a2[s2] = Qe(o2, a2[s2], t2), i2(a2[s2], o2);
508
508
  });
509
509
  }
510
510
  };
511
511
  return i2(e6, ``), e6;
512
512
  }
513
- function tt(e6, t2) {
513
+ function et(e6, t2) {
514
514
  let n2;
515
515
  return n2 = e6.includes(`.`) ? e6.split(`.`).map((e7) => t2[e7] ?? e7).join(`.`) : t2[e6] ?? e6, n2;
516
516
  }
517
- function D(e6, t2 = []) {
518
- return et(e6, Ke, t2);
519
- }
520
517
  function O(e6, t2 = []) {
521
- return et(e6, qe, t2);
518
+ return $e(e6, Ge, t2);
522
519
  }
523
- function nt(e6) {
520
+ function k(e6, t2 = []) {
521
+ return $e(e6, Ke, t2);
522
+ }
523
+ function tt(e6) {
524
524
  return e6?.toISOString();
525
525
  }
526
- function rt(e6) {
526
+ function nt(e6) {
527
527
  return e6 ? new Date(e6) : void 0;
528
528
  }
529
- var it = /* @__PURE__ */ new WeakMap();
530
- function at() {
529
+ var rt = /* @__PURE__ */ new WeakMap();
530
+ function it() {
531
531
  return { leaves: void 0, fields: void 0, mapFields: void 0, anyField: void 0 };
532
532
  }
533
- function ot(e6, t2) {
533
+ function at(e6, t2) {
534
534
  let n2 = e6.get(t2);
535
- return n2 || (n2 = at(), e6.set(t2, n2)), n2;
535
+ return n2 || (n2 = it(), e6.set(t2, n2)), n2;
536
536
  }
537
- function st(e6, t2) {
538
- return t2 === `*` ? (e6.anyField ??= at(), e6.anyField) : t2.endsWith(`{}`) ? (e6.mapFields ??= /* @__PURE__ */ new Map(), ot(e6.mapFields, t2.slice(0, -2))) : (e6.fields ??= /* @__PURE__ */ new Map(), ot(e6.fields, t2));
537
+ function ot(e6, t2) {
538
+ return t2 === `*` ? (e6.anyField ??= it(), e6.anyField) : t2.endsWith(`{}`) ? (e6.mapFields ??= /* @__PURE__ */ new Map(), at(e6.mapFields, t2.slice(0, -2))) : (e6.fields ??= /* @__PURE__ */ new Map(), at(e6.fields, t2));
539
539
  }
540
- function ct(e6) {
541
- let t2 = at();
540
+ function st(e6) {
541
+ let t2 = it();
542
542
  for (let n2 of e6) {
543
- let e7 = n2.path.split(`.`).reduce(st, t2);
543
+ let e7 = n2.path.split(`.`).reduce(ot, t2);
544
544
  e7.leaves ??= [], e7.leaves.push(n2);
545
545
  }
546
546
  return t2;
547
547
  }
548
- function lt(e6) {
549
- let t2 = it.get(e6);
550
- return t2 || (t2 = ct(e6), it.set(e6, t2)), t2;
548
+ function ct(e6) {
549
+ let t2 = rt.get(e6);
550
+ return t2 || (t2 = st(e6), rt.set(e6, t2)), t2;
551
551
  }
552
- function k(e6) {
552
+ function A(e6) {
553
553
  return typeof e6 == `object` && !!e6;
554
554
  }
555
- function ut(e6, { isRepeated: t2, isMap: n2 }, r2) {
556
- return t2 ? Array.isArray(e6) ? e6.map(r2) : e6 : n2 ? k(e6) ? Object.fromEntries(Object.entries(e6).map(([e7, t3]) => [e7, r2(t3)])) : e6 : r2(e6);
555
+ function lt(e6, { isRepeated: t2, isMap: n2 }, r2) {
556
+ return t2 ? Array.isArray(e6) ? e6.map(r2) : e6 : n2 ? A(e6) ? Object.fromEntries(Object.entries(e6).map(([e7, t3]) => [e7, r2(t3)])) : e6 : r2(e6);
557
557
  }
558
- function A(e6, t2, n2) {
559
- k(e6) && pt(e6, t2, n2);
558
+ function j(e6, t2, n2) {
559
+ A(e6) && ft(e6, t2, n2);
560
560
  }
561
- function dt(e6, t2, n2) {
561
+ function ut(e6, t2, n2) {
562
562
  for (let [r2, i2] of t2) {
563
563
  if (!(r2 in e6)) continue;
564
- if (i2.leaves) for (let t4 of i2.leaves) e6[r2] = ut(e6[r2], t4, n2);
564
+ if (i2.leaves) for (let t4 of i2.leaves) e6[r2] = lt(e6[r2], t4, n2);
565
565
  let t3 = e6[r2];
566
- Array.isArray(t3) ? t3.forEach((e7) => A(e7, i2, n2)) : A(t3, i2, n2);
566
+ Array.isArray(t3) ? t3.forEach((e7) => j(e7, i2, n2)) : j(t3, i2, n2);
567
567
  }
568
568
  }
569
- function ft(e6, t2, n2) {
569
+ function dt(e6, t2, n2) {
570
570
  for (let [r2, i2] of t2) {
571
571
  let t3 = e6[r2];
572
- k(t3) && Object.values(t3).forEach((e7) => A(e7, i2, n2));
572
+ A(t3) && Object.values(t3).forEach((e7) => j(e7, i2, n2));
573
573
  }
574
574
  }
575
- function pt(e6, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
576
- t2 && dt(e6, t2, i2), n2 && ft(e6, n2, i2), r2 && Object.values(e6).forEach((e7) => A(e7, r2, i2));
575
+ function ft(e6, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
576
+ t2 && ut(e6, t2, i2), n2 && dt(e6, n2, i2), r2 && Object.values(e6).forEach((e7) => j(e7, r2, i2));
577
577
  }
578
- function j(e6, t2) {
579
- if (!k(e6)) return e6;
580
- for (let { paths: n2, transformFn: r2 } of t2) pt(e6, lt(n2), r2);
578
+ function M(e6, t2) {
579
+ if (!A(e6)) return e6;
580
+ for (let { paths: n2, transformFn: r2 } of t2) ft(e6, ct(n2), r2);
581
581
  return e6;
582
582
  }
583
- function mt(e6) {
584
- return yt(e6).map((e7) => e7.toLocaleUpperCase()).join(`_`);
583
+ function pt(e6) {
584
+ return vt(e6).map((e7) => e7.toLocaleUpperCase()).join(`_`);
585
585
  }
586
- var ht = /([\p{Ll}\d])(\p{Lu})/gu;
587
- var gt = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
588
- var _t = `$1\0$2`;
589
- var vt = /[^\p{L}\d]+/giu;
590
- function yt(e6) {
586
+ var mt = /([\p{Ll}\d])(\p{Lu})/gu;
587
+ var ht = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
588
+ var gt = `$1\0$2`;
589
+ var _t = /[^\p{L}\d]+/giu;
590
+ function vt(e6) {
591
591
  let t2 = e6.trim();
592
- t2 = t2.replace(ht, _t).replace(gt, _t), t2 = t2.replace(vt, `\0`);
592
+ t2 = t2.replace(mt, gt).replace(ht, gt), t2 = t2.replace(_t, `\0`);
593
593
  let n2 = 0, r2 = t2.length;
594
594
  for (; t2.charAt(n2) === `\0`; ) n2++;
595
595
  if (n2 === r2) return [];
596
596
  for (; t2.charAt(r2 - 1) === `\0`; ) r2--;
597
597
  return t2.slice(n2, r2).split(/\0/g);
598
598
  }
599
- var bt = (e6) => `validationError` in (e6.response?.data?.details ?? {});
600
- var xt = (e6) => `applicationError` in (e6.response?.data?.details ?? {});
601
- var St = (e6) => (e6.response?.status ?? -1) >= 400 && (e6.response?.status ?? -1) < 500;
602
- function M(e6, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
599
+ var yt = (e6) => `validationError` in (e6.response?.data?.details ?? {});
600
+ var bt = (e6) => `applicationError` in (e6.response?.data?.details ?? {});
601
+ var xt = (e6) => (e6.response?.status ?? -1) >= 400 && (e6.response?.status ?? -1) < 500;
602
+ function N(e6, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
603
603
  if (typeof e6 != `object` || !e6) throw e6;
604
- if (bt(e6)) return Ct(e6, t2, n2);
605
- if (xt(e6)) return wt(e6);
606
- if (St(e6)) {
607
- let t3 = e6.response?.status, n3 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: mt(n3), data: {} }, requestId: e6.requestId };
608
- return N(e6, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
604
+ if (yt(e6)) return St(e6, t2, n2);
605
+ if (bt(e6)) return wt(e6);
606
+ if (xt(e6)) {
607
+ let t3 = e6.response?.status, n3 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: pt(n3), data: {} }, requestId: e6.requestId };
608
+ return Ct(e6, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
609
609
  }
610
610
  return Tt(e6);
611
611
  }
612
- var Ct = (e6, t2, n2) => {
612
+ var St = (e6, t2, n2) => {
613
613
  let r2 = e6.response?.data, i2 = e6.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Et(t2, a2, n2)?.sort((e7, t3) => e7.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e7, description: t3 }) => `"${e7}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
614
- return N(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e6.response?.status, requestId: i2 } });
614
+ return Ct(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e6.response?.status, requestId: i2 } });
615
615
  };
616
- var N = (e6, { message: t2, extraProperties: n2 }) => Object.assign(e6, { ...n2, message: t2 });
616
+ var Ct = (e6, { message: t2, extraProperties: n2 }) => Object.assign(e6, { ...n2, message: t2 });
617
617
  var wt = (e6) => {
618
- let t2 = e6.response?.status, n2 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n2, i2 = e6.response?.data?.details?.applicationError?.description ?? n2, a2 = e6.response?.data?.details?.applicationError?.code ?? mt(n2), o2 = e6.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e6.requestId };
619
- return N(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e6.requestId } });
618
+ let t2 = e6.response?.status, n2 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n2, i2 = e6.response?.data?.details?.applicationError?.description ?? n2, a2 = e6.response?.data?.details?.applicationError?.code ?? pt(n2), o2 = e6.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e6.requestId };
619
+ return Ct(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e6.requestId } });
620
620
  };
621
- var Tt = (e6) => N(e6, { message: e6.requestId ? `System error occurred, request-id: ${e6.requestId}` : `System error occurred: ${JSON.stringify(e6)}`, extraProperties: { requestId: e6.requestId, status: e6.response?.status, code: mt(e6.response?.statusText ?? `UNKNOWN`), ...!e6.response && { runtimeError: e6 } } });
621
+ var Tt = (e6) => Ct(e6, { message: e6.requestId ? `System error occurred, request-id: ${e6.requestId}` : `System error occurred: ${JSON.stringify(e6)}`, extraProperties: { requestId: e6.requestId, status: e6.response?.status, code: pt(e6.response?.statusText ?? `UNKNOWN`), ...!e6.response && { runtimeError: e6 } } });
622
622
  var Et = ({ spreadPathsToArguments: e6, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
623
623
  let a2 = { ...e6, ...t2 }, o2 = Object.keys(a2);
624
624
  return r2?.filter((e7) => !r2.some((t3) => t3.field.length > e7.field.length && t3.field.startsWith(e7.field) && o2.includes(t3.field))).map((e7) => {
@@ -902,7 +902,7 @@ var Tn = xn({ createHost: function(e6) {
902
902
  } });
903
903
  var En = (e6, t2) => {
904
904
  let n2 = Tn.host({ applicationId: e6, componentId: t2 }), r2 = Tn.auth();
905
- return We({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
905
+ return Ue({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
906
906
  };
907
907
  var Dn = (e6) => En(`14bcded7-0066-7c35-14d7-466cb3f09103`, e6);
908
908
  var On = { post: `post`, feed: `feed`, relatedPosts: `related-posts`, comments: `comments`, seo: `seo`, likes: `likes` };
@@ -1001,7 +1001,7 @@ var Rn = class extends In {
1001
1001
  function zn(e6) {
1002
1002
  let t2 = (n2) => ({ query: n2, async find() {
1003
1003
  try {
1004
- let r2 = e6.requestTransformer(e6.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e6.func(r2), { [Je]: a2, [Ye]: o2 } = e6.responseTransformer(i2);
1004
+ let r2 = e6.requestTransformer(e6.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e6.func(r2), { [qe]: a2, [Je]: o2 } = e6.responseTransformer(i2);
1005
1005
  if (e6.pagingMethod === `OFFSET`) {
1006
1006
  let e7 = n2;
1007
1007
  return new Rn({ items: a2 ?? [], fetchNextPage: () => t2({ ...e7, paging: { offset: e7.paging.offset + e7.paging.limit, limit: e7.paging.limit } }).find(), fetchPrevPage: () => t2({ ...n2, paging: { offset: Math.max(e7.paging.offset - e7.paging.limit, 0), limit: e7.paging.limit } }).find(), offset: e7.paging.offset, limit: e7.paging.limit, totalCount: o2?.total, tooManyToCount: o2?.tooManyToCount, originQuery: this });
@@ -1082,7 +1082,7 @@ function zn(e6) {
1082
1082
  }
1083
1083
  function F(e6, t2) {
1084
1084
  let n2 = Object.entries(e6).find(([e7]) => e7 === t2 || t2.startsWith(`${e7}.`))?.[0];
1085
- return n2 ? t2.replace(n2, e6[n2]) : Ze(t2, { ...e6, ...Xe });
1085
+ return n2 ? t2.replace(n2, e6[n2]) : Xe(t2, { ...e6, ...Ye });
1086
1086
  }
1087
1087
  var Bn = `filter`;
1088
1088
  var Vn = `sort`;
@@ -1126,14 +1126,14 @@ function er(e6) {
1126
1126
  var tr = `@wix/auto_sdk_blog_likes`;
1127
1127
  function nr(e6) {
1128
1128
  function t2({ host: t3 }) {
1129
- let n2 = j(e6, [{ transformFn: nt, paths: Qn }]);
1130
- return { entityFqdn: `wix.blog.v1.like`, method: `POST`, methodFqn: `wix.blog.v1.LikeService.CreateLike`, packageName: tr, migrationOptions: { optInTransformResponse: true }, url: er({ protoPath: `/v1/likes`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => j(e7, [{ transformFn: rt, paths: Qn }]) };
1129
+ let n2 = M(e6, [{ transformFn: tt, paths: Qn }]);
1130
+ return { entityFqdn: `wix.blog.v1.like`, method: `POST`, methodFqn: `wix.blog.v1.LikeService.CreateLike`, packageName: tr, migrationOptions: { optInTransformResponse: true }, url: er({ protoPath: `/v1/likes`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => M(e7, [{ transformFn: nt, paths: Qn }]) };
1131
1131
  }
1132
1132
  return t2;
1133
1133
  }
1134
1134
  function rr(e6) {
1135
1135
  function t2({ host: t3 }) {
1136
- return { entityFqdn: `wix.blog.v1.like`, method: `POST`, methodFqn: `wix.blog.v1.LikeService.QueryLikes`, packageName: tr, migrationOptions: { optInTransformResponse: true }, url: er({ protoPath: `/v1/likes/query`, data: e6, host: t3 }), data: e6, transformResponse: (e7) => j(e7, [{ transformFn: rt, paths: $n }]) };
1136
+ return { entityFqdn: `wix.blog.v1.like`, method: `POST`, methodFqn: `wix.blog.v1.LikeService.QueryLikes`, packageName: tr, migrationOptions: { optInTransformResponse: true }, url: er({ protoPath: `/v1/likes/query`, data: e6, host: t3 }), data: e6, transformResponse: (e7) => M(e7, [{ transformFn: nt, paths: $n }]) };
1137
1137
  }
1138
1138
  return t2;
1139
1139
  }
@@ -1144,13 +1144,13 @@ function ir(e6) {
1144
1144
  return t2;
1145
1145
  }
1146
1146
  async function ar(e6) {
1147
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = nr(D({ like: e6?.like }));
1147
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = nr(O({ like: e6?.like }));
1148
1148
  n2?.onSiteCall?.();
1149
1149
  try {
1150
1150
  let e7 = await t2.request(r2);
1151
- return n2?.onSuccess?.(e7), O(e7.data)?.like;
1151
+ return n2?.onSuccess?.(e7), k(e7.data)?.like;
1152
1152
  } catch (e7) {
1153
- let t3 = M(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { like: `$[0].like` }, singleArgumentUnchanged: false }, [`options`]);
1153
+ let t3 = N(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { like: `$[0].like` }, singleArgumentUnchanged: false }, [`options`]);
1154
1154
  throw n2?.onError?.(e7), t3;
1155
1155
  }
1156
1156
  }
@@ -1167,33 +1167,33 @@ function or() {
1167
1167
  }
1168
1168
  }, requestTransformer: (e7) => {
1169
1169
  let t3 = [e7, {}];
1170
- return D({ ...t3?.[1], query: t3?.[0] });
1170
+ return O({ ...t3?.[1], query: t3?.[0] });
1171
1171
  }, responseTransformer: ({ data: e7 }) => {
1172
- let t3 = O(j(e7, []));
1172
+ let t3 = k(M(e7, []));
1173
1173
  return { items: t3?.likes, pagingMetadata: t3?.pagingMetadata };
1174
1174
  }, errorTransformer: (e7) => {
1175
- throw M(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
1175
+ throw N(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
1176
1176
  }, pagingMethod: `CURSOR`, transformationPaths: {} });
1177
1177
  }
1178
1178
  async function sr(e6) {
1179
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = rr(D({ query: e6 }));
1179
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = rr(O({ query: e6 }));
1180
1180
  n2?.onSiteCall?.();
1181
1181
  try {
1182
1182
  let e7 = await t2.request(r2);
1183
- return n2?.onSuccess?.(e7), O(e7.data);
1183
+ return n2?.onSuccess?.(e7), k(e7.data);
1184
1184
  } catch (e7) {
1185
- let t3 = M(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`]);
1185
+ let t3 = N(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`]);
1186
1186
  throw n2?.onError?.(e7), t3;
1187
1187
  }
1188
1188
  }
1189
1189
  async function cr(e6) {
1190
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = ir(D({ fqdn: e6?.fqdn, entityId: e6?.entityId }));
1190
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = ir(O({ fqdn: e6?.fqdn, entityId: e6?.entityId }));
1191
1191
  n2?.onSiteCall?.();
1192
1192
  try {
1193
1193
  let e7 = await t2.request(r2);
1194
1194
  n2?.onSuccess?.(e7);
1195
1195
  } catch (e7) {
1196
- let t3 = M(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { fqdn: `$[0].fqdn`, entityId: `$[0].entityId` }, singleArgumentUnchanged: false }, [`identifiers`]);
1196
+ let t3 = N(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { fqdn: `$[0].fqdn`, entityId: `$[0].entityId` }, singleArgumentUnchanged: false }, [`identifiers`]);
1197
1197
  throw n2?.onError?.(e7), t3;
1198
1198
  }
1199
1199
  }
@@ -1226,18 +1226,18 @@ function vr(e6) {
1226
1226
  var yr = `@wix/auto_sdk_blog_posts`;
1227
1227
  function br(e6) {
1228
1228
  function t2({ host: t3 }) {
1229
- return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics`, packageName: yr, migrationOptions: { optInTransformResponse: true }, url: vr({ protoPath: `/v3/posts/{postId}/metrics`, data: e6, host: t3 }), params: Nt(e6), transformResponse: (e7) => j(e7, [{ transformFn: sn, paths: _r }]) };
1229
+ return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics`, packageName: yr, migrationOptions: { optInTransformResponse: true }, url: vr({ protoPath: `/v3/posts/{postId}/metrics`, data: e6, host: t3 }), params: Nt(e6), transformResponse: (e7) => M(e7, [{ transformFn: sn, paths: _r }]) };
1230
1230
  }
1231
1231
  return t2;
1232
1232
  }
1233
1233
  async function xr(e6) {
1234
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = br(D({ postId: e6 }, []));
1234
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = br(O({ postId: e6 }, []));
1235
1235
  n2?.onSiteCall?.();
1236
1236
  try {
1237
1237
  let e7 = await t2.request(r2);
1238
- return n2?.onSuccess?.(e7), O(e7.data, []);
1238
+ return n2?.onSuccess?.(e7), k(e7.data, []);
1239
1239
  } catch (e7) {
1240
- let t3 = M(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { postId: `$[0]` }, singleArgumentUnchanged: false }, [`postId`]);
1240
+ let t3 = N(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { postId: `$[0]` }, singleArgumentUnchanged: false }, [`postId`]);
1241
1241
  throw n2?.onError?.(e7), t3;
1242
1242
  }
1243
1243
  }
@@ -1347,21 +1347,28 @@ var Lr = (e6, t2, n2 = false, a2) => {
1347
1347
  return { ...Ir(d2, t2), toggleLike: ee2, liveLikes: C2 };
1348
1348
  };
1349
1349
  var Rr = I(`@wix/site-service-locale`);
1350
- var zr = () => {
1350
+ var zr = I(`@wix/viewer-service-multilingual`);
1351
+ var Br = () => {
1352
+ let e6;
1351
1353
  try {
1352
- let { locale: e6, language: t2 } = u(Rr);
1353
- return e6 || t2;
1354
+ let { multilingualEnabled: t3, currentLocale: n3 } = u(zr);
1355
+ t3 && n3 && !n3.primaryLocale && (e6 = n3.regionalFormat);
1356
+ } catch {
1357
+ }
1358
+ let t2, n2;
1359
+ try {
1360
+ ({ locale: t2, language: n2 } = u(Rr));
1354
1361
  } catch {
1355
- return;
1356
1362
  }
1363
+ return e6 || t2 || n2;
1357
1364
  };
1358
- var Br = () => {
1365
+ var Vr = () => {
1359
1366
  let e6 = /* @__PURE__ */ new Map();
1360
1367
  return { getOrInsert: (t2, n2) => (e6.has(t2) || e6.set(t2, n2().finally(() => {
1361
1368
  e6.delete(t2);
1362
1369
  })), e6.get(t2)) };
1363
1370
  };
1364
- var Vr = async (e6) => {
1371
+ var Hr = async (e6) => {
1365
1372
  try {
1366
1373
  let { default: t2 } = await e6();
1367
1374
  return t2;
@@ -1369,9 +1376,9 @@ var Vr = async (e6) => {
1369
1376
  return;
1370
1377
  }
1371
1378
  };
1372
- var Hr = ({ isDev: e6, loadMessages: t2, loadDevMessages: n2 }) => {
1373
- let r2 = Br(), i2 = async (r3) => {
1374
- let [i3, a2] = await Promise.all([Vr(() => t2(r3)), !e6 || !n2 ? void 0 : Vr(() => n2(r3))]);
1379
+ var Ur = ({ isDev: e6, loadMessages: t2, loadDevMessages: n2 }) => {
1380
+ let r2 = Vr(), i2 = async (r3) => {
1381
+ let [i3, a2] = await Promise.all([Hr(() => t2(r3)), !e6 || !n2 ? void 0 : Hr(() => n2(r3))]);
1375
1382
  if (i3 && a2) return { ...i3, ...a2 };
1376
1383
  if (i3) return i3;
1377
1384
  if (a2) return a2;
@@ -1386,25 +1393,25 @@ var z = () => {
1386
1393
  });
1387
1394
  return n2.resolve = e6, n2.reject = t2, n2;
1388
1395
  };
1389
- var Ur = (e6) => e6 == null ? `` : String(e6);
1390
- var Wr = (e6, t2, n2) => {
1396
+ var Wr = (e6) => e6 == null ? `` : String(e6);
1397
+ var Gr = (e6, t2, n2) => {
1391
1398
  e6.forEach((e7) => {
1392
1399
  t2[e7] && (n2[e7] = t2[e7]);
1393
1400
  });
1394
1401
  };
1395
- var Gr = /###/g;
1396
- var Kr = (e6) => e6 && e6.includes(`###`) ? e6.replace(Gr, `.`) : e6;
1397
- var qr = (e6) => !e6 || R(e6);
1402
+ var Kr = /###/g;
1403
+ var qr = (e6) => e6 && e6.includes(`###`) ? e6.replace(Kr, `.`) : e6;
1404
+ var Jr = (e6) => !e6 || R(e6);
1398
1405
  var B = (e6, t2, n2) => {
1399
1406
  let r2 = R(t2) ? t2.split(`.`) : t2, i2 = 0;
1400
1407
  for (; i2 < r2.length - 1; ) {
1401
- if (qr(e6)) return {};
1402
- let t3 = Kr(r2[i2]);
1408
+ if (Jr(e6)) return {};
1409
+ let t3 = qr(r2[i2]);
1403
1410
  !e6[t3] && n2 && (e6[t3] = new n2()), e6 = Object.prototype.hasOwnProperty.call(e6, t3) ? e6[t3] : {}, ++i2;
1404
1411
  }
1405
- return qr(e6) ? {} : { obj: e6, k: Kr(r2[i2]) };
1412
+ return Jr(e6) ? {} : { obj: e6, k: qr(r2[i2]) };
1406
1413
  };
1407
- var Jr = (e6, t2, n2) => {
1414
+ var Yr = (e6, t2, n2) => {
1408
1415
  let { obj: r2, k: i2 } = B(e6, t2, Object);
1409
1416
  if (r2 !== void 0 || t2.length === 1) {
1410
1417
  r2[i2] = n2;
@@ -1414,7 +1421,7 @@ var Jr = (e6, t2, n2) => {
1414
1421
  for (; s2.obj === void 0 && o2.length; ) a2 = `${o2[o2.length - 1]}.${a2}`, o2 = o2.slice(0, o2.length - 1), s2 = B(e6, o2, Object), s2?.obj && s2.obj[`${s2.k}.${a2}`] !== void 0 && (s2.obj = void 0);
1415
1422
  s2.obj[`${s2.k}.${a2}`] = n2;
1416
1423
  };
1417
- var Yr = (e6, t2, n2, r2) => {
1424
+ var Xr = (e6, t2, n2, r2) => {
1418
1425
  let { obj: i2, k: a2 } = B(e6, t2, Object);
1419
1426
  i2[a2] = i2[a2] || [], i2[a2].push(n2);
1420
1427
  };
@@ -1422,18 +1429,18 @@ var V = (e6, t2) => {
1422
1429
  let { obj: n2, k: r2 } = B(e6, t2);
1423
1430
  if (n2 && Object.prototype.hasOwnProperty.call(n2, r2)) return n2[r2];
1424
1431
  };
1425
- var Xr = (e6, t2, n2) => {
1432
+ var Zr = (e6, t2, n2) => {
1426
1433
  let r2 = V(e6, n2);
1427
1434
  return r2 === void 0 ? V(t2, n2) : r2;
1428
1435
  };
1429
- var Zr = (e6, t2, n2) => {
1430
- for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (Object.prototype.hasOwnProperty.call(e6, r2) ? R(e6[r2]) || e6[r2] instanceof String || R(t2[r2]) || t2[r2] instanceof String ? n2 && (e6[r2] = t2[r2]) : Zr(e6[r2], t2[r2], n2) : e6[r2] = t2[r2]);
1436
+ var Qr = (e6, t2, n2) => {
1437
+ for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (Object.prototype.hasOwnProperty.call(e6, r2) ? R(e6[r2]) || e6[r2] instanceof String || R(t2[r2]) || t2[r2] instanceof String ? n2 && (e6[r2] = t2[r2]) : Qr(e6[r2], t2[r2], n2) : e6[r2] = t2[r2]);
1431
1438
  return e6;
1432
1439
  };
1433
1440
  var H = (e6) => e6.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
1434
- var Qr = { "&": `&amp;`, "<": `&lt;`, ">": `&gt;`, '"': `&quot;`, "'": `&#39;`, "/": `&#x2F;` };
1435
- var $r = (e6) => R(e6) ? e6.replace(/[&<>"'\/]/g, (e7) => Qr[e7]) : e6;
1436
- var ei = class {
1441
+ var $r = { "&": `&amp;`, "<": `&lt;`, ">": `&gt;`, '"': `&quot;`, "'": `&#39;`, "/": `&#x2F;` };
1442
+ var ei = (e6) => R(e6) ? e6.replace(/[&<>"'\/]/g, (e7) => $r[e7]) : e6;
1443
+ var ti = class {
1437
1444
  constructor(e6) {
1438
1445
  this.capacity = e6, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
1439
1446
  }
@@ -1444,20 +1451,20 @@ var ei = class {
1444
1451
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e6, n2), this.regExpQueue.push(e6), n2;
1445
1452
  }
1446
1453
  };
1447
- var ti = [` `, `,`, `?`, `!`, `;`];
1448
- var ni = new ei(20);
1449
- var ri = (e6, t2, n2) => {
1454
+ var ni = [` `, `,`, `?`, `!`, `;`];
1455
+ var ri = new ti(20);
1456
+ var ii = (e6, t2, n2) => {
1450
1457
  t2 ||= ``, n2 ||= ``;
1451
- let r2 = ti.filter((e7) => !t2.includes(e7) && !n2.includes(e7));
1458
+ let r2 = ni.filter((e7) => !t2.includes(e7) && !n2.includes(e7));
1452
1459
  if (r2.length === 0) return true;
1453
- let i2 = ni.getRegExp(`(${r2.map((e7) => e7 === `?` ? `\\?` : e7).join(`|`)})`), a2 = !i2.test(e6);
1460
+ let i2 = ri.getRegExp(`(${r2.map((e7) => e7 === `?` ? `\\?` : e7).join(`|`)})`), a2 = !i2.test(e6);
1454
1461
  if (!a2) {
1455
1462
  let t3 = e6.indexOf(n2);
1456
1463
  t3 > 0 && !i2.test(e6.substring(0, t3)) && (a2 = true);
1457
1464
  }
1458
1465
  return a2;
1459
1466
  };
1460
- var ii = (e6, t2, n2 = `.`) => {
1467
+ var ai = (e6, t2, n2 = `.`) => {
1461
1468
  if (!e6) return;
1462
1469
  if (e6[t2]) return Object.prototype.hasOwnProperty.call(e6, t2) ? e6[t2] : void 0;
1463
1470
  let r2 = t2.split(n2), i2 = e6;
@@ -1474,7 +1481,7 @@ var ii = (e6, t2, n2 = `.`) => {
1474
1481
  return i2;
1475
1482
  };
1476
1483
  var U = (e6) => e6?.replace(/_/g, `-`);
1477
- var ai = { type: `logger`, log(e6) {
1484
+ var oi = { type: `logger`, log(e6) {
1478
1485
  this.output(`log`, e6);
1479
1486
  }, warn(e6) {
1480
1487
  this.output(`warn`, e6);
@@ -1488,7 +1495,7 @@ var W = new class e2 {
1488
1495
  this.init(e6, t2);
1489
1496
  }
1490
1497
  init(e6, t2 = {}) {
1491
- this.prefix = t2.prefix || `i18next:`, this.logger = e6 || ai, this.options = t2, this.debug = t2.debug;
1498
+ this.prefix = t2.prefix || `i18next:`, this.logger = e6 || oi, this.options = t2, this.debug = t2.debug;
1492
1499
  }
1493
1500
  log(...e6) {
1494
1501
  return this.forward(e6, `log`, ``, true);
@@ -1512,7 +1519,7 @@ var W = new class e2 {
1512
1519
  return t2 ||= this.options, t2.prefix = t2.prefix || this.prefix, new e2(this.logger, t2);
1513
1520
  }
1514
1521
  }();
1515
- var G = class {
1522
+ var si = class {
1516
1523
  constructor() {
1517
1524
  this.observers = {};
1518
1525
  }
@@ -1540,8 +1547,8 @@ var G = class {
1540
1547
  });
1541
1548
  }
1542
1549
  };
1543
- var oi = /* @__PURE__ */ new WeakSet();
1544
- var si = class extends G {
1550
+ var ci = /* @__PURE__ */ new WeakSet();
1551
+ var li = class extends si {
1545
1552
  constructor(e6, t2 = { ns: [`translation`], defaultNS: `translation` }) {
1546
1553
  super(), this.data = e6 || {}, this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.options.ignoreJSONStructure === void 0 && (this.options.ignoreJSONStructure = true);
1547
1554
  }
@@ -1556,11 +1563,11 @@ var si = class extends G {
1556
1563
  let i2 = r2.keySeparator === void 0 ? this.options.keySeparator : r2.keySeparator, a2 = r2.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r2.ignoreJSONStructure, o2;
1557
1564
  e6.includes(`.`) ? o2 = e6.split(`.`) : (o2 = [e6, t2], n2 && (Array.isArray(n2) ? o2.push(...n2) : R(n2) && i2 ? o2.push(...n2.split(i2)) : o2.push(n2)));
1558
1565
  let s2 = V(this.data, o2);
1559
- return !s2 && !t2 && !n2 && e6.includes(`.`) && (e6 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !R(n2) ? s2 : ii(this.data?.[e6]?.[t2], n2, i2);
1566
+ return !s2 && !t2 && !n2 && e6.includes(`.`) && (e6 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !R(n2) ? s2 : ai(this.data?.[e6]?.[t2], n2, i2);
1560
1567
  }
1561
1568
  addResource(e6, t2, n2, r2, i2 = { silent: false }) {
1562
1569
  let a2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, o2 = [e6, t2];
1563
- n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e6.includes(`.`) && (o2 = e6.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2), Jr(this.data, o2, r2), i2.silent || this.emit(`added`, e6, t2, n2, r2);
1570
+ n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e6.includes(`.`) && (o2 = e6.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2), Yr(this.data, o2, r2), i2.silent || this.emit(`added`, e6, t2, n2, r2);
1564
1571
  }
1565
1572
  addResources(e6, t2, n2, r2 = { silent: false }) {
1566
1573
  for (let r3 in n2) (R(n2[r3]) || Array.isArray(n2[r3])) && this.addResource(e6, t2, r3, n2[r3], { silent: true });
@@ -1570,7 +1577,7 @@ var si = class extends G {
1570
1577
  let o2 = [e6, t2];
1571
1578
  e6.includes(`.`) && (o2 = e6.split(`.`), r2 = n2, n2 = t2, t2 = o2[1]), this.addNamespaces(t2);
1572
1579
  let s2 = V(this.data, o2) || {};
1573
- a2.skipCopy || (n2 = JSON.parse(JSON.stringify(n2))), r2 ? Zr(s2, n2, i2) : s2 = { ...s2, ...n2 }, Jr(this.data, o2, s2), a2.silent || this.emit(`added`, e6, t2, n2);
1580
+ a2.skipCopy || (n2 = JSON.parse(JSON.stringify(n2))), r2 ? Qr(s2, n2, i2) : s2 = { ...s2, ...n2 }, Yr(this.data, o2, s2), a2.silent || this.emit(`added`, e6, t2, n2);
1574
1581
  }
1575
1582
  removeResourceBundle(e6, t2) {
1576
1583
  this.hasResourceBundle(e6, t2) && delete this.data[e6][t2], this.removeNamespaces(t2), this.emit(`removed`, e6, t2);
@@ -1588,37 +1595,37 @@ var si = class extends G {
1588
1595
  let t2 = this.getDataByLanguage(e6);
1589
1596
  return !!(t2 && Object.keys(t2) || []).find((e7) => {
1590
1597
  let n2 = t2[e7];
1591
- return oi.has(n2) ? true : !n2 || Object.keys(n2).length === 0 ? false : (typeof n2 == `object` && oi.add(n2), true);
1598
+ return ci.has(n2) ? true : !n2 || Object.keys(n2).length === 0 ? false : (typeof n2 == `object` && ci.add(n2), true);
1592
1599
  });
1593
1600
  }
1594
1601
  toJSON() {
1595
1602
  return this.data;
1596
1603
  }
1597
1604
  };
1598
- var ci = { processors: {}, addPostProcessor(e6) {
1605
+ var ui = { processors: {}, addPostProcessor(e6) {
1599
1606
  this.processors[e6.name] = e6;
1600
1607
  }, handle(e6, t2, n2, r2, i2) {
1601
1608
  return e6.forEach((e7) => {
1602
1609
  t2 = this.processors[e7]?.process(t2, n2, r2, i2) ?? t2;
1603
1610
  }), t2;
1604
1611
  } };
1605
- var li = Symbol(`i18next/PATH_KEY`);
1606
- function ui() {
1612
+ var di = Symbol(`i18next/PATH_KEY`);
1613
+ function fi() {
1607
1614
  let e6 = [], t2 = /* @__PURE__ */ Object.create(null), n2;
1608
- return t2.get = (r2, i2) => (n2?.revoke?.(), i2 === li ? e6 : (e6.push(i2), n2 = Proxy.revocable(r2, t2), n2.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), t2).proxy;
1615
+ return t2.get = (r2, i2) => (n2?.revoke?.(), i2 === di ? e6 : (e6.push(i2), n2 = Proxy.revocable(r2, t2), n2.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), t2).proxy;
1609
1616
  }
1610
- function K(e6, t2) {
1611
- let { [li]: n2 } = e6(ui()), r2 = t2?.keySeparator ?? `.`, i2 = t2?.nsSeparator ?? `:`, a2 = t2?.enableSelector === `strict`;
1617
+ function G(e6, t2) {
1618
+ let { [di]: n2 } = e6(fi()), r2 = t2?.keySeparator ?? `.`, i2 = t2?.nsSeparator ?? `:`, a2 = t2?.enableSelector === `strict`;
1612
1619
  if (n2.length > 1 && i2) {
1613
1620
  let e7 = t2?.ns, o2 = a2 ? Array.isArray(e7) ? e7 : e7 ? [e7] : null : Array.isArray(e7) ? e7 : null;
1614
1621
  if (o2 && (a2 ? o2 : o2.length > 1 ? o2.slice(1) : []).includes(n2[0])) return `${n2[0]}${i2}${n2.slice(1).join(r2)}`;
1615
1622
  }
1616
1623
  return n2.join(r2);
1617
1624
  }
1618
- var di = (e6) => !R(e6) && typeof e6 != `boolean` && typeof e6 != `number`;
1619
- var fi = class e3 extends G {
1625
+ var pi = (e6) => !R(e6) && typeof e6 != `boolean` && typeof e6 != `number`;
1626
+ var mi = class e3 extends si {
1620
1627
  constructor(e6, t2 = {}) {
1621
- super(), Wr([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e6, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = W.create(`translator`), this.checkedLoadedFor = {};
1628
+ super(), Gr([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e6, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = W.create(`translator`), this.checkedLoadedFor = {};
1622
1629
  }
1623
1630
  changeLanguage(e6) {
1624
1631
  e6 && (this.language = e6);
@@ -1628,13 +1635,13 @@ var fi = class e3 extends G {
1628
1635
  if (e6 == null) return false;
1629
1636
  let r2 = this.resolve(e6, n2);
1630
1637
  if (r2?.res === void 0) return false;
1631
- let i2 = di(r2.res);
1638
+ let i2 = pi(r2.res);
1632
1639
  return !(n2.returnObjects === false && i2);
1633
1640
  }
1634
1641
  extractFromKey(e6, t2) {
1635
1642
  let n2 = t2.nsSeparator === void 0 ? this.options.nsSeparator : t2.nsSeparator;
1636
1643
  n2 === void 0 && (n2 = `:`);
1637
- let r2 = t2.keySeparator === void 0 ? this.options.keySeparator : t2.keySeparator, i2 = t2.ns || this.options.defaultNS || [], a2 = n2 && e6.includes(n2), o2 = !this.options.userDefinedKeySeparator && !t2.keySeparator && !this.options.userDefinedNsSeparator && !t2.nsSeparator && !ri(e6, n2, r2);
1644
+ let r2 = t2.keySeparator === void 0 ? this.options.keySeparator : t2.keySeparator, i2 = t2.ns || this.options.defaultNS || [], a2 = n2 && e6.includes(n2), o2 = !this.options.userDefinedKeySeparator && !t2.keySeparator && !this.options.userDefinedNsSeparator && !t2.nsSeparator && !ii(e6, n2, r2);
1638
1645
  if (a2 && !o2) {
1639
1646
  let t3 = e6.match(this.interpolator.nestingRegexp);
1640
1647
  if (t3 && t3.length > 0) return { key: e6, namespaces: R(i2) ? [i2] : i2 };
@@ -1646,14 +1653,14 @@ var fi = class e3 extends G {
1646
1653
  translate(t2, n2, r2) {
1647
1654
  let i2 = typeof n2 == `object` ? { ...n2 } : n2;
1648
1655
  if (typeof i2 != `object` && this.options.overloadTranslationOptionHandler && (i2 = this.options.overloadTranslationOptionHandler(arguments)), typeof i2 == `object` && (i2 = { ...i2 }), i2 ||= {}, t2 == null) return ``;
1649
- typeof t2 == `function` && (t2 = K(t2, { ...this.options, ...i2 })), Array.isArray(t2) || (t2 = [String(t2)]), t2 = t2.map((e6) => typeof e6 == `function` ? K(e6, { ...this.options, ...i2 }) : String(e6));
1656
+ typeof t2 == `function` && (t2 = G(t2, { ...this.options, ...i2 })), Array.isArray(t2) || (t2 = [String(t2)]), t2 = t2.map((e6) => typeof e6 == `function` ? G(e6, { ...this.options, ...i2 }) : String(e6));
1650
1657
  let a2 = i2.returnDetails === void 0 ? this.options.returnDetails : i2.returnDetails, o2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, { key: s2, namespaces: c2 } = this.extractFromKey(t2[t2.length - 1], i2), l2 = c2[c2.length - 1], u2 = i2.nsSeparator === void 0 ? this.options.nsSeparator : i2.nsSeparator;
1651
1658
  u2 === void 0 && (u2 = `:`);
1652
1659
  let d2 = i2.lng || this.language, f2 = i2.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
1653
1660
  if (d2?.toLowerCase() === `cimode`) return f2 ? a2 ? { res: `${l2}${u2}${s2}`, usedKey: s2, exactUsedKey: s2, usedLng: d2, usedNS: l2, usedParams: this.getUsedParamsDetails(i2) } : `${l2}${u2}${s2}` : a2 ? { res: s2, usedKey: s2, exactUsedKey: s2, usedLng: d2, usedNS: l2, usedParams: this.getUsedParamsDetails(i2) } : s2;
1654
1661
  let p2 = this.resolve(t2, i2), m2 = p2?.res, h2 = p2?.usedKey || s2, g2 = p2?.exactUsedKey || s2, _2 = [`[object Number]`, `[object Function]`, `[object RegExp]`], v2 = i2.joinArrays === void 0 ? this.options.joinArrays : i2.joinArrays, y2 = !this.i18nFormat || this.i18nFormat.handleAsObject, b2 = i2.count !== void 0 && !R(i2.count), x2 = e3.hasDefaultValue(i2), S2 = b2 ? this.pluralResolver.getSuffix(d2, i2.count, i2) : ``, C2 = i2.ordinal && b2 ? this.pluralResolver.getSuffix(d2, i2.count, { ordinal: false }) : ``, ee2 = b2 && !i2.ordinal && i2.count === 0, w2 = ee2 && i2[`defaultValue${this.options.pluralSeparator}zero`] || i2[`defaultValue${S2}`] || i2[`defaultValue${C2}`] || i2.defaultValue, T2 = m2;
1655
1662
  y2 && !m2 && x2 && (T2 = w2);
1656
- let te2 = di(T2), ne2 = Object.prototype.toString.apply(T2);
1663
+ let te2 = pi(T2), ne2 = Object.prototype.toString.apply(T2);
1657
1664
  if (y2 && T2 && te2 && !_2.includes(ne2) && !(R(v2) && Array.isArray(T2))) {
1658
1665
  if (!i2.returnObjects && !this.options.returnObjects) {
1659
1666
  this.options.returnedObjectHandler || this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);
@@ -1664,7 +1671,7 @@ var fi = class e3 extends G {
1664
1671
  let e6 = Array.isArray(T2), t3 = e6 ? [] : {}, n3 = e6 ? g2 : h2;
1665
1672
  for (let e7 in T2) if (Object.prototype.hasOwnProperty.call(T2, e7)) {
1666
1673
  let r3 = `${n3}${o2}${e7}`;
1667
- t3[e7] = x2 && !m2 ? this.translate(r3, { ...i2, defaultValue: di(w2) ? w2[e7] : void 0, joinArrays: false, ns: c2 }) : this.translate(r3, { ...i2, joinArrays: false, ns: c2 }), t3[e7] === r3 && (t3[e7] = T2[e7]);
1674
+ t3[e7] = x2 && !m2 ? this.translate(r3, { ...i2, defaultValue: pi(w2) ? w2[e7] : void 0, joinArrays: false, ns: c2 }) : this.translate(r3, { ...i2, joinArrays: false, ns: c2 }), t3[e7] === r3 && (t3[e7] = T2[e7]);
1668
1675
  }
1669
1676
  m2 = t3;
1670
1677
  }
@@ -1713,11 +1720,11 @@ var fi = class e3 extends G {
1713
1720
  !n2.lng && r2 && r2.res && (n2.lng = this.language || r2.usedLng), n2.nest !== false && (e6 = this.interpolator.nest(e6, (...e7) => i2?.[0] === e7[0] && !n2.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e7[0]} in key: ${t2[0]}`), null) : this.translate(...e7, t2), n2)), n2.interpolation && this.interpolator.reset();
1714
1721
  }
1715
1722
  let a2 = n2.postProcess || this.options.postProcess, o2 = R(a2) ? [a2] : a2;
1716
- return e6 != null && o2?.length && n2.applyPostProcessor !== false && (e6 = ci.handle(o2, e6, t2, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...r2, usedParams: this.getUsedParamsDetails(n2) }, ...n2 } : n2, this)), e6;
1723
+ return e6 != null && o2?.length && n2.applyPostProcessor !== false && (e6 = ui.handle(o2, e6, t2, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...r2, usedParams: this.getUsedParamsDetails(n2) }, ...n2 } : n2, this)), e6;
1717
1724
  }
1718
1725
  resolve(e6, t2 = {}) {
1719
1726
  let n2, r2, i2, a2, o2;
1720
- return R(e6) && (e6 = [e6]), Array.isArray(e6) && (e6 = e6.map((e7) => typeof e7 == `function` ? K(e7, { ...this.options, ...t2 }) : e7)), e6.forEach((e7) => {
1727
+ return R(e6) && (e6 = [e6]), Array.isArray(e6) && (e6 = e6.map((e7) => typeof e7 == `function` ? G(e7, { ...this.options, ...t2 }) : e7)), e6.forEach((e7) => {
1721
1728
  if (this.isValidLookup(n2)) return;
1722
1729
  let s2 = this.extractFromKey(e7, t2), c2 = s2.key;
1723
1730
  r2 = c2;
@@ -1764,7 +1771,7 @@ var fi = class e3 extends G {
1764
1771
  return false;
1765
1772
  }
1766
1773
  };
1767
- var pi = class {
1774
+ var hi = class {
1768
1775
  constructor(e6) {
1769
1776
  this.options = e6, this.supportedLngs = this.options.supportedLngs || false, this.logger = W.create(`languageUtils`), this.resolveHierarchyCache = {};
1770
1777
  }
@@ -1839,9 +1846,9 @@ var pi = class {
1839
1846
  }), s2 === null ? l2 : (this.resolveHierarchyCache[s2] = l2, l2.slice());
1840
1847
  }
1841
1848
  };
1842
- var mi = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 };
1843
- var hi = { select: (e6) => e6 === 1 ? `one` : `other`, resolvedOptions: () => ({ pluralCategories: [`one`, `other`] }) };
1844
- var gi = class {
1849
+ var gi = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 };
1850
+ var _i = { select: (e6) => e6 === 1 ? `one` : `other`, resolvedOptions: () => ({ pluralCategories: [`one`, `other`] }) };
1851
+ var vi = class {
1845
1852
  constructor(e6, t2 = {}) {
1846
1853
  this.languageUtils = e6, this.options = t2, this.logger = W.create(`pluralResolver`), this.pluralRulesCache = {};
1847
1854
  }
@@ -1855,8 +1862,8 @@ var gi = class {
1855
1862
  try {
1856
1863
  a2 = new Intl.PluralRules(n2, { type: r2 });
1857
1864
  } catch {
1858
- if (typeof Intl > `u`) return this.logger.error(`No Intl support, please use an Intl polyfill!`), hi;
1859
- if (!e6.match(/-|_/)) return hi;
1865
+ if (typeof Intl > `u`) return this.logger.error(`No Intl support, please use an Intl polyfill!`), _i;
1866
+ if (!e6.match(/-|_/)) return _i;
1860
1867
  let n3 = this.languageUtils.getLanguagePartFromCode(e6);
1861
1868
  a2 = this.getRule(n3, t2);
1862
1869
  }
@@ -1871,26 +1878,26 @@ var gi = class {
1871
1878
  }
1872
1879
  getSuffixes(e6, t2 = {}) {
1873
1880
  let n2 = this.getRule(e6, t2);
1874
- return n2 ||= this.getRule(`dev`, t2), n2 ? n2.resolvedOptions().pluralCategories.sort((e7, t3) => mi[e7] - mi[t3]).map((e7) => `${this.options.prepend}${t2.ordinal ? `ordinal${this.options.prepend}` : ``}${e7}`) : [];
1881
+ return n2 ||= this.getRule(`dev`, t2), n2 ? n2.resolvedOptions().pluralCategories.sort((e7, t3) => gi[e7] - gi[t3]).map((e7) => `${this.options.prepend}${t2.ordinal ? `ordinal${this.options.prepend}` : ``}${e7}`) : [];
1875
1882
  }
1876
1883
  getSuffix(e6, t2, n2 = {}) {
1877
1884
  let r2 = this.getRule(e6, n2);
1878
1885
  return r2 ? `${this.options.prepend}${n2.ordinal ? `ordinal${this.options.prepend}` : ``}${r2.select(t2)}` : (this.logger.warn(`no plural rule found for: ${e6}`), this.getSuffix(`dev`, t2, n2));
1879
1886
  }
1880
1887
  };
1881
- var _i = (e6, t2, n2, r2 = `.`, i2 = true) => {
1882
- let a2 = Xr(e6, t2, n2);
1883
- return !a2 && i2 && R(n2) && (a2 = ii(e6, n2, r2), a2 === void 0 && (a2 = ii(t2, n2, r2))), a2;
1888
+ var yi = (e6, t2, n2, r2 = `.`, i2 = true) => {
1889
+ let a2 = Zr(e6, t2, n2);
1890
+ return !a2 && i2 && R(n2) && (a2 = ai(e6, n2, r2), a2 === void 0 && (a2 = ai(t2, n2, r2))), a2;
1884
1891
  };
1885
- var vi = (e6) => e6.replace(/\$/g, `$$$$`);
1886
- var yi = class {
1892
+ var bi = (e6) => e6.replace(/\$/g, `$$$$`);
1893
+ var xi = class {
1887
1894
  constructor(e6 = {}) {
1888
1895
  this.logger = W.create(`interpolator`), this.options = e6, this.format = e6?.interpolation?.format || ((e7) => e7), this.init(e6);
1889
1896
  }
1890
1897
  init(e6 = {}) {
1891
1898
  e6.interpolation ||= { escapeValue: true };
1892
1899
  let { escape: t2, escapeValue: n2, useRawValueToEscape: r2, prefix: i2, prefixEscaped: a2, suffix: o2, suffixEscaped: s2, formatSeparator: c2, unescapeSuffix: l2, unescapePrefix: u2, nestingPrefix: d2, nestingPrefixEscaped: f2, nestingSuffix: p2, nestingSuffixEscaped: m2, nestingOptionsSeparator: h2, maxReplaces: g2, alwaysFormat: _2 } = e6.interpolation;
1893
- this.escape = t2 === void 0 ? $r : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? H(i2) : a2 || `{{`, this.suffix = o2 ? H(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 ? H(u2) : `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 ? H(l2) : ``, this.nestingPrefix = d2 ? H(d2) : f2 || H(`$t(`), this.nestingSuffix = p2 ? H(p2) : m2 || H(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
1900
+ this.escape = t2 === void 0 ? ei : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? H(i2) : a2 || `{{`, this.suffix = o2 ? H(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 ? H(u2) : `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 ? H(l2) : ``, this.nestingPrefix = d2 ? H(d2) : f2 || H(`$t(`), this.nestingSuffix = p2 ? H(p2) : m2 || H(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
1894
1901
  }
1895
1902
  reset() {
1896
1903
  this.options && this.init(this.options);
@@ -1902,11 +1909,11 @@ var yi = class {
1902
1909
  interpolate(e6, t2, n2, r2) {
1903
1910
  let i2, a2, o2, s2 = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c2 = (e7) => {
1904
1911
  if (!e7.includes(this.formatSeparator)) {
1905
- let i4 = _i(t2, s2, e7, this.options.keySeparator, this.options.ignoreJSONStructure);
1912
+ let i4 = yi(t2, s2, e7, this.options.keySeparator, this.options.ignoreJSONStructure);
1906
1913
  return this.alwaysFormat ? this.format(i4, void 0, n2, { ...r2, ...t2, interpolationkey: e7 }) : i4;
1907
1914
  }
1908
1915
  let i3 = e7.split(this.formatSeparator), a3 = i3.shift().trim(), o3 = i3.join(this.formatSeparator).trim();
1909
- return this.format(_i(t2, s2, a3, this.options.keySeparator, this.options.ignoreJSONStructure), o3, n2, { ...r2, ...t2, interpolationkey: a3 });
1916
+ return this.format(yi(t2, s2, a3, this.options.keySeparator, this.options.ignoreJSONStructure), o3, n2, { ...r2, ...t2, interpolationkey: a3 });
1910
1917
  };
1911
1918
  this.resetRegExp(), !this.escapeValue && typeof e6 == `string` && /\$t\([^)]*\{[^}]*\{\{/.test(e6) && this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false \u2014 if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);
1912
1919
  let l2 = r2?.missingInterpolationHandler || this.options.missingInterpolationHandler, u2 = r2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r2.interpolation.skipOnVariables;
@@ -1922,9 +1929,9 @@ var yi = class {
1922
1929
  a2 = i2[0];
1923
1930
  continue;
1924
1931
  } else this.logger.warn(`missed to pass in variable ${n3} for interpolating ${e6}`), a2 = ``;
1925
- } else !R(a2) && !this.useRawValueToEscape && (a2 = Ur(a2));
1932
+ } else !R(a2) && !this.useRawValueToEscape && (a2 = Wr(a2));
1926
1933
  let s3 = t3.safeValue(a2);
1927
- if (e6 = e6.replace(i2[0], vi(s3)), u2 ? (t3.regex.lastIndex += s3.length, t3.regex.lastIndex -= i2[0].length) : t3.regex.lastIndex = 0, o2++, o2 >= this.maxReplaces) break;
1934
+ if (e6 = e6.replace(i2[0], bi(s3)), u2 ? (t3.regex.lastIndex += s3.length, t3.regex.lastIndex -= i2[0].length) : t3.regex.lastIndex = 0, o2++, o2 >= this.maxReplaces) break;
1928
1935
  }
1929
1936
  }), e6;
1930
1937
  }
@@ -1948,12 +1955,12 @@ var yi = class {
1948
1955
  a2 = { ...n2 }, a2 = a2.replace && !R(a2.replace) ? a2.replace : a2, a2.applyPostProcessor = false, delete a2.defaultValue;
1949
1956
  let d2 = /{.*}/s.test(r2[1]) ? r2[1].lastIndexOf(`}`) + 1 : r2[1].indexOf(this.formatSeparator);
1950
1957
  if (d2 !== -1 && (u2 = r2[1].slice(d2).split(this.formatSeparator).map((e7) => e7.trim()).filter(Boolean), r2[1] = r2[1].slice(0, d2)), i2 = t2(o2.call(this, r2[1].trim(), a2), a2), i2 && r2[0] === e6 && !R(i2)) return i2;
1951
- R(i2) || (i2 = Ur(i2)), i2 ||= (this.logger.warn(`missed to resolve ${r2[1]} for nesting ${e6}`), ``), u2.length && (i2 = u2.reduce((e7, t3) => this.format(e7, t3, n2.lng, { ...n2, interpolationkey: r2[1].trim() }), i2.trim())), c2 += e6.slice(l2, r2.index) + Ur(i2), l2 = s2.lastIndex, this.regexp.lastIndex = 0;
1958
+ R(i2) || (i2 = Wr(i2)), i2 ||= (this.logger.warn(`missed to resolve ${r2[1]} for nesting ${e6}`), ``), u2.length && (i2 = u2.reduce((e7, t3) => this.format(e7, t3, n2.lng, { ...n2, interpolationkey: r2[1].trim() }), i2.trim())), c2 += e6.slice(l2, r2.index) + Wr(i2), l2 = s2.lastIndex, this.regexp.lastIndex = 0;
1952
1959
  }
1953
1960
  return l2 ? c2 + e6.slice(l2) : e6;
1954
1961
  }
1955
1962
  };
1956
- var bi = (e6) => {
1963
+ var Si = (e6) => {
1957
1964
  let t2 = e6.toLowerCase().trim(), n2 = {};
1958
1965
  if (e6.includes(`(`)) {
1959
1966
  let r2 = e6.split(`(`);
@@ -1968,7 +1975,7 @@ var bi = (e6) => {
1968
1975
  }
1969
1976
  return { formatName: t2, formatOptions: n2 };
1970
1977
  };
1971
- var xi = (e6) => {
1978
+ var Ci = (e6) => {
1972
1979
  let t2 = {};
1973
1980
  return (n2, r2, i2) => {
1974
1981
  let a2 = i2;
@@ -1977,14 +1984,14 @@ var xi = (e6) => {
1977
1984
  return s2 || (s2 = e6(U(r2), i2), t2[o2] = s2), s2(n2);
1978
1985
  };
1979
1986
  };
1980
- var Si = (e6) => (t2, n2, r2) => e6(U(n2), r2)(t2);
1981
- var Ci = class {
1987
+ var wi = (e6) => (t2, n2, r2) => e6(U(n2), r2)(t2);
1988
+ var Ti = class {
1982
1989
  constructor(e6 = {}) {
1983
1990
  this.logger = W.create(`formatter`), this.options = e6, this.init(e6);
1984
1991
  }
1985
1992
  init(e6, t2 = { interpolation: {} }) {
1986
1993
  this.formatSeparator = t2.interpolation.formatSeparator || `,`;
1987
- let n2 = t2.cacheInBuiltFormats ? xi : Si;
1994
+ let n2 = t2.cacheInBuiltFormats ? Ci : wi;
1988
1995
  this.formats = { number: n2((e7, t3) => {
1989
1996
  let n3 = new Intl.NumberFormat(e7, { ...t3 });
1990
1997
  return (e8) => n3.format(e8);
@@ -2006,7 +2013,7 @@ var Ci = class {
2006
2013
  this.formats[e6.toLowerCase().trim()] = t2;
2007
2014
  }
2008
2015
  addCached(e6, t2) {
2009
- this.formats[e6.toLowerCase().trim()] = xi(t2);
2016
+ this.formats[e6.toLowerCase().trim()] = Ci(t2);
2010
2017
  }
2011
2018
  format(e6, t2, n2, r2 = {}) {
2012
2019
  if (!t2 || e6 == null) return e6;
@@ -2017,7 +2024,7 @@ var Ci = class {
2017
2024
  a2.push(t3);
2018
2025
  }
2019
2026
  return a2.reduce((e7, t3) => {
2020
- let { formatName: i3, formatOptions: a3 } = bi(t3);
2027
+ let { formatName: i3, formatOptions: a3 } = Si(t3);
2021
2028
  if (this.formats[i3]) {
2022
2029
  let t4 = e7;
2023
2030
  try {
@@ -2032,10 +2039,10 @@ var Ci = class {
2032
2039
  }, e6);
2033
2040
  }
2034
2041
  };
2035
- var wi = (e6, t2) => {
2042
+ var Ei = (e6, t2) => {
2036
2043
  e6.pending[t2] !== void 0 && (delete e6.pending[t2], e6.pendingCount--);
2037
2044
  };
2038
- var Ti = class extends G {
2045
+ var Di = class extends si {
2039
2046
  constructor(e6, t2, n2, r2 = {}) {
2040
2047
  super(), this.backend = e6, this.store = t2, this.services = n2, this.languageUtils = n2.languageUtils, this.options = r2, this.logger = W.create(`backendConnector`), this.waitingReads = [], this.maxParallelReads = r2.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r2.maxRetries >= 0 ? r2.maxRetries : 5, this.retryTimeout = r2.retryTimeout >= 1 ? r2.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n2, r2.backend, r2);
2041
2048
  }
@@ -2054,7 +2061,7 @@ var Ti = class extends G {
2054
2061
  t2 && this.emit(`failedLoading`, i2, a2, t2), !t2 && n2 && this.store.addResourceBundle(i2, a2, n2, void 0, void 0, { skipCopy: true }), this.state[e6] = t2 ? -1 : 2, t2 && n2 && (this.state[e6] = 0);
2055
2062
  let o2 = {};
2056
2063
  this.queue.forEach((n3) => {
2057
- Yr(n3.loaded, [i2], a2), wi(n3, e6), t2 && n3.errors.push(t2), n3.pendingCount === 0 && !n3.done && (Object.keys(n3.loaded).forEach((e7) => {
2064
+ Xr(n3.loaded, [i2], a2), Ei(n3, e6), t2 && n3.errors.push(t2), n3.pendingCount === 0 && !n3.done && (Object.keys(n3.loaded).forEach((e7) => {
2058
2065
  o2[e7] || (o2[e7] = {});
2059
2066
  let t3 = n3.loaded[e7];
2060
2067
  t3.length && t3.forEach((t4) => {
@@ -2126,7 +2133,7 @@ var Ti = class extends G {
2126
2133
  }
2127
2134
  }
2128
2135
  };
2129
- var Ei = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS: [`translation`], fallbackLng: [`dev`], fallbackNS: false, supportedLngs: false, nonExplicitSupportedLngs: false, load: `all`, preload: false, keySeparator: `.`, nsSeparator: `:`, pluralSeparator: `_`, contextSeparator: `_`, enableSelector: false, partialBundledLanguages: false, saveMissing: false, updateMissing: false, saveMissingTo: `fallback`, saveMissingPlurals: true, missingKeyHandler: false, missingInterpolationHandler: false, postProcess: false, postProcessPassResolved: false, returnNull: false, returnEmptyString: true, returnObjects: false, joinArrays: false, returnedObjectHandler: false, parseMissingKeyHandler: false, appendNamespaceToMissingKey: false, appendNamespaceToCIMode: false, overloadTranslationOptionHandler: (e6) => {
2136
+ var Oi = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS: [`translation`], fallbackLng: [`dev`], fallbackNS: false, supportedLngs: false, nonExplicitSupportedLngs: false, load: `all`, preload: false, keySeparator: `.`, nsSeparator: `:`, pluralSeparator: `_`, contextSeparator: `_`, enableSelector: false, partialBundledLanguages: false, saveMissing: false, updateMissing: false, saveMissingTo: `fallback`, saveMissingPlurals: true, missingKeyHandler: false, missingInterpolationHandler: false, postProcess: false, postProcessPassResolved: false, returnNull: false, returnEmptyString: true, returnObjects: false, joinArrays: false, returnedObjectHandler: false, parseMissingKeyHandler: false, appendNamespaceToMissingKey: false, appendNamespaceToCIMode: false, overloadTranslationOptionHandler: (e6) => {
2130
2137
  let t2 = {};
2131
2138
  if (typeof e6[1] == `object` && (t2 = e6[1]), R(e6[1]) && (t2.defaultValue = e6[1]), R(e6[2]) && (t2.tDescription = e6[2]), typeof e6[2] == `object` || typeof e6[3] == `object`) {
2132
2139
  let n2 = e6[3] || e6[2];
@@ -2136,17 +2143,17 @@ var Ei = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS:
2136
2143
  }
2137
2144
  return t2;
2138
2145
  }, interpolation: { escapeValue: true, prefix: `{{`, suffix: `}}`, formatSeparator: `,`, unescapePrefix: `-`, nestingPrefix: `$t(`, nestingSuffix: `)`, nestingOptionsSeparator: `,`, maxReplaces: 1e3, skipOnVariables: true }, cacheInBuiltFormats: true });
2139
- var Di = (e6) => (R(e6.ns) && (e6.ns = [e6.ns]), R(e6.fallbackLng) && (e6.fallbackLng = [e6.fallbackLng]), R(e6.fallbackNS) && (e6.fallbackNS = [e6.fallbackNS]), e6.supportedLngs && !e6.supportedLngs.includes(`cimode`) && (e6.supportedLngs = e6.supportedLngs.concat([`cimode`])), e6);
2140
- var q = () => {
2146
+ var ki = (e6) => (R(e6.ns) && (e6.ns = [e6.ns]), R(e6.fallbackLng) && (e6.fallbackLng = [e6.fallbackLng]), R(e6.fallbackNS) && (e6.fallbackNS = [e6.fallbackNS]), e6.supportedLngs && !e6.supportedLngs.includes(`cimode`) && (e6.supportedLngs = e6.supportedLngs.concat([`cimode`])), e6);
2147
+ var Ai = () => {
2141
2148
  };
2142
- var Oi = (e6) => {
2149
+ var ji = (e6) => {
2143
2150
  Object.getOwnPropertyNames(Object.getPrototypeOf(e6)).forEach((t2) => {
2144
2151
  typeof e6[t2] == `function` && (e6[t2] = e6[t2].bind(e6));
2145
2152
  });
2146
2153
  };
2147
- var J = class e4 extends G {
2154
+ var K = class e4 extends si {
2148
2155
  constructor(e6 = {}, t2) {
2149
- if (super(), this.options = Di(e6), this.services = {}, this.logger = W, this.modules = { external: [] }, Oi(this), t2 && !this.isInitialized && !e6.isClone) {
2156
+ if (super(), this.options = ki(e6), this.services = {}, this.logger = W, this.modules = { external: [] }, ji(this), t2 && !this.isInitialized && !e6.isClone) {
2150
2157
  if (!this.options.initAsync) return this.init(e6, t2), this;
2151
2158
  setTimeout(() => {
2152
2159
  this.init(e6, t2);
@@ -2155,25 +2162,25 @@ var J = class e4 extends G {
2155
2162
  }
2156
2163
  init(e6 = {}, t2) {
2157
2164
  this.isInitializing = true, typeof e6 == `function` && (t2 = e6, e6 = {}), e6.defaultNS == null && e6.ns && (R(e6.ns) ? e6.defaultNS = e6.ns : e6.ns.includes(`translation`) || (e6.defaultNS = e6.ns[0]));
2158
- let n2 = Ei();
2159
- this.options = { ...n2, ...this.options, ...Di(e6) }, this.options.interpolation = { ...n2.interpolation, ...this.options.interpolation }, e6.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e6.keySeparator), e6.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e6.nsSeparator), typeof this.options.overloadTranslationOptionHandler != `function` && (this.options.overloadTranslationOptionHandler = n2.overloadTranslationOptionHandler);
2165
+ let n2 = Oi();
2166
+ this.options = { ...n2, ...this.options, ...ki(e6) }, this.options.interpolation = { ...n2.interpolation, ...this.options.interpolation }, e6.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e6.keySeparator), e6.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e6.nsSeparator), typeof this.options.overloadTranslationOptionHandler != `function` && (this.options.overloadTranslationOptionHandler = n2.overloadTranslationOptionHandler);
2160
2167
  let r2 = (e7) => e7 ? typeof e7 == `function` ? new e7() : e7 : null;
2161
2168
  if (!this.options.isClone) {
2162
2169
  this.modules.logger ? W.init(r2(this.modules.logger), this.options) : W.init(null, this.options);
2163
2170
  let e7;
2164
- e7 = this.modules.formatter ? this.modules.formatter : Ci;
2165
- let t3 = new pi(this.options);
2166
- this.store = new si(this.options.resources, this.options);
2171
+ e7 = this.modules.formatter ? this.modules.formatter : Ti;
2172
+ let t3 = new hi(this.options);
2173
+ this.store = new li(this.options.resources, this.options);
2167
2174
  let n3 = this.services;
2168
- n3.logger = W, n3.resourceStore = this.store, n3.languageUtils = t3, n3.pluralResolver = new gi(t3, { prepend: this.options.pluralSeparator }), e7 && (n3.formatter = r2(e7), n3.formatter.init && n3.formatter.init(n3, this.options), this.options.interpolation.format = n3.formatter.format.bind(n3.formatter)), n3.interpolator = new yi(this.options), n3.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, n3.backendConnector = new Ti(r2(this.modules.backend), n3.resourceStore, n3, this.options), n3.backendConnector.on(`*`, (e8, ...t4) => {
2175
+ n3.logger = W, n3.resourceStore = this.store, n3.languageUtils = t3, n3.pluralResolver = new vi(t3, { prepend: this.options.pluralSeparator }), e7 && (n3.formatter = r2(e7), n3.formatter.init && n3.formatter.init(n3, this.options), this.options.interpolation.format = n3.formatter.format.bind(n3.formatter)), n3.interpolator = new xi(this.options), n3.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, n3.backendConnector = new Di(r2(this.modules.backend), n3.resourceStore, n3, this.options), n3.backendConnector.on(`*`, (e8, ...t4) => {
2169
2176
  this.emit(e8, ...t4);
2170
- }), this.modules.languageDetector && (n3.languageDetector = r2(this.modules.languageDetector), n3.languageDetector.init && n3.languageDetector.init(n3, this.options.detection, this.options)), this.modules.i18nFormat && (n3.i18nFormat = r2(this.modules.i18nFormat), n3.i18nFormat.init && n3.i18nFormat.init(this)), this.translator = new fi(this.services, this.options), this.translator.on(`*`, (e8, ...t4) => {
2177
+ }), this.modules.languageDetector && (n3.languageDetector = r2(this.modules.languageDetector), n3.languageDetector.init && n3.languageDetector.init(n3, this.options.detection, this.options)), this.modules.i18nFormat && (n3.i18nFormat = r2(this.modules.i18nFormat), n3.i18nFormat.init && n3.i18nFormat.init(this)), this.translator = new mi(this.services, this.options), this.translator.on(`*`, (e8, ...t4) => {
2171
2178
  this.emit(e8, ...t4);
2172
2179
  }), this.modules.external.forEach((e8) => {
2173
2180
  e8.init && e8.init(this);
2174
2181
  });
2175
2182
  }
2176
- if (this.format = this.options.interpolation.format, t2 ||= q, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
2183
+ if (this.format = this.options.interpolation.format, t2 ||= Ai, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
2177
2184
  let e7 = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
2178
2185
  e7.length > 0 && e7[0] !== `dev` && (this.options.lng = e7[0]);
2179
2186
  }
@@ -2191,7 +2198,7 @@ var J = class e4 extends G {
2191
2198
  };
2192
2199
  return this.options.resources || !this.options.initAsync ? a2() : setTimeout(a2, 0), i2;
2193
2200
  }
2194
- loadResources(e6, t2 = q) {
2201
+ loadResources(e6, t2 = Ai) {
2195
2202
  let n2 = t2, r2 = R(e6) ? e6 : this.language;
2196
2203
  if (typeof e6 == `function` && (n2 = e6), !this.options.resources || this.options.partialBundledLanguages) {
2197
2204
  if (r2?.toLowerCase() === `cimode` && (!this.options.preload || this.options.preload.length === 0)) return n2();
@@ -2207,14 +2214,14 @@ var J = class e4 extends G {
2207
2214
  }
2208
2215
  reloadResources(e6, t2, n2) {
2209
2216
  let r2 = z();
2210
- return typeof e6 == `function` && (n2 = e6, e6 = void 0), typeof t2 == `function` && (n2 = t2, t2 = void 0), e6 ||= this.languages, t2 ||= this.options.ns, n2 ||= q, this.services.backendConnector.reload(e6, t2, (e7) => {
2217
+ return typeof e6 == `function` && (n2 = e6, e6 = void 0), typeof t2 == `function` && (n2 = t2, t2 = void 0), e6 ||= this.languages, t2 ||= this.options.ns, n2 ||= Ai, this.services.backendConnector.reload(e6, t2, (e7) => {
2211
2218
  r2.resolve(), n2(e7);
2212
2219
  }), r2;
2213
2220
  }
2214
2221
  use(e6) {
2215
2222
  if (!e6) throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);
2216
2223
  if (!e6.type) throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);
2217
- return e6.type === `backend` && (this.modules.backend = e6), (e6.type === `logger` || e6.log && e6.warn && e6.error) && (this.modules.logger = e6), e6.type === `languageDetector` && (this.modules.languageDetector = e6), e6.type === `i18nFormat` && (this.modules.i18nFormat = e6), e6.type === `postProcessor` && ci.addPostProcessor(e6), e6.type === `formatter` && (this.modules.formatter = e6), e6.type === `3rdParty` && this.modules.external.push(e6), this;
2224
+ return e6.type === `backend` && (this.modules.backend = e6), (e6.type === `logger` || e6.log && e6.warn && e6.error) && (this.modules.logger = e6), e6.type === `languageDetector` && (this.modules.languageDetector = e6), e6.type === `i18nFormat` && (this.modules.i18nFormat = e6), e6.type === `postProcessor` && ui.addPostProcessor(e6), e6.type === `formatter` && (this.modules.formatter = e6), e6.type === `3rdParty` && this.modules.external.push(e6), this;
2218
2225
  }
2219
2226
  setResolvedLanguage(e6) {
2220
2227
  if (e6 && this.languages && ![`cimode`, `dev`].includes(e6)) {
@@ -2252,9 +2259,9 @@ var J = class e4 extends G {
2252
2259
  let s2 = o2.ns !== void 0 && o2.ns !== null;
2253
2260
  o2.ns = o2.ns || a2.ns, o2.keyPrefix !== `` && (o2.keyPrefix = o2.keyPrefix || n2 || a2.keyPrefix);
2254
2261
  let c2 = { ...this.options, ...o2 };
2255
- Array.isArray(i2) && !s2 && (c2.ns = i2), typeof o2.keyPrefix == `function` && (o2.keyPrefix = K(o2.keyPrefix, c2));
2262
+ Array.isArray(i2) && !s2 && (c2.ns = i2), typeof o2.keyPrefix == `function` && (o2.keyPrefix = G(o2.keyPrefix, c2));
2256
2263
  let l2 = this.options.keySeparator || `.`, u2;
2257
- return o2.keyPrefix && Array.isArray(e7) ? u2 = e7.map((e8) => (typeof e8 == `function` && (e8 = K(e8, c2)), `${o2.keyPrefix}${l2}${e8}`)) : (typeof e7 == `function` && (e7 = K(e7, c2)), u2 = o2.keyPrefix ? `${o2.keyPrefix}${l2}${e7}` : e7), this.t(u2, o2);
2264
+ return o2.keyPrefix && Array.isArray(e7) ? u2 = e7.map((e8) => (typeof e8 == `function` && (e8 = G(e8, c2)), `${o2.keyPrefix}${l2}${e8}`)) : (typeof e7 == `function` && (e7 = G(e7, c2)), u2 = o2.keyPrefix ? `${o2.keyPrefix}${l2}${e7}` : e7), this.t(u2, o2);
2258
2265
  };
2259
2266
  return R(e6) ? a2.lng = e6 : a2.lngs = e6, a2.ns = t2, a2.keyPrefix = n2, a2;
2260
2267
  }
@@ -2310,24 +2317,24 @@ var J = class e4 extends G {
2310
2317
  }
2311
2318
  } catch {
2312
2319
  }
2313
- let t2 = `ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`), n2 = this.services?.languageUtils || new pi(Ei());
2320
+ let t2 = `ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`), n2 = this.services?.languageUtils || new hi(Oi());
2314
2321
  return e6.toLowerCase().indexOf(`-latn`) > 1 ? `ltr` : t2.includes(n2.getLanguagePartFromCode(e6)) || e6.toLowerCase().indexOf(`-arab`) > 1 ? `rtl` : `ltr`;
2315
2322
  }
2316
2323
  static createInstance(t2 = {}, n2) {
2317
2324
  let r2 = new e4(t2, n2);
2318
2325
  return r2.createInstance = e4.createInstance, r2;
2319
2326
  }
2320
- cloneInstance(t2 = {}, n2 = q) {
2327
+ cloneInstance(t2 = {}, n2 = Ai) {
2321
2328
  let r2 = t2.forkResourceStore;
2322
2329
  r2 && delete t2.forkResourceStore;
2323
2330
  let i2 = { ...this.options, preload: false, ...t2, isClone: true }, a2 = new e4(i2);
2324
2331
  if ((t2.debug !== void 0 || t2.prefix !== void 0) && (a2.logger = a2.logger.clone(t2)), [`store`, `services`, `language`].forEach((e6) => {
2325
2332
  a2[e6] = this[e6];
2326
- }), a2.services = { ...this.services }, a2.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, r2 && (a2.store = new si(Object.keys(this.store.data).reduce((e6, t3) => (e6[t3] = { ...this.store.data[t3] }, e6[t3] = Object.keys(e6[t3]).reduce((n3, r3) => (n3[r3] = { ...e6[t3][r3] }, n3), e6[t3]), e6), {}), i2), a2.services.resourceStore = a2.store), t2.interpolation) {
2327
- let e6 = { ...Ei().interpolation, ...this.options.interpolation, ...t2.interpolation }, n3 = { ...i2, interpolation: e6 };
2328
- a2.services.interpolator = new yi(n3);
2333
+ }), a2.services = { ...this.services }, a2.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, r2 && (a2.store = new li(Object.keys(this.store.data).reduce((e6, t3) => (e6[t3] = { ...this.store.data[t3] }, e6[t3] = Object.keys(e6[t3]).reduce((n3, r3) => (n3[r3] = { ...e6[t3][r3] }, n3), e6[t3]), e6), {}), i2), a2.services.resourceStore = a2.store), t2.interpolation) {
2334
+ let e6 = { ...Oi().interpolation, ...this.options.interpolation, ...t2.interpolation }, n3 = { ...i2, interpolation: e6 };
2335
+ a2.services.interpolator = new xi(n3);
2329
2336
  }
2330
- return a2.translator = new fi(a2.services, i2), a2.translator.on(`*`, (e6, ...t3) => {
2337
+ return a2.translator = new mi(a2.services, i2), a2.translator.on(`*`, (e6, ...t3) => {
2331
2338
  a2.emit(e6, ...t3);
2332
2339
  }), a2.init(i2, n2), a2.translator.options = i2, a2.translator.backendConnector.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, a2;
2333
2340
  }
@@ -2335,9 +2342,9 @@ var J = class e4 extends G {
2335
2342
  return { options: this.options, store: this.store, language: this.language, languages: this.languages, resolvedLanguage: this.resolvedLanguage };
2336
2343
  }
2337
2344
  }.createInstance();
2338
- J.createInstance, J.dir, J.init, J.loadResources, J.reloadResources, J.use, J.changeLanguage, J.getFixedT, J.t, J.exists, J.setDefaultNamespace, J.hasLoadedNamespace, J.loadNamespaces, J.loadLanguages;
2339
- var ki = ({ locale: e6, asyncMessagesLoader: t2, messages: n2, useSuspense: r2 = false, disableAutoInit: i2 = false, bindI18n: a2 }, { icu: o2 } = {}) => {
2340
- let s2 = { lng: e6, fallbackLng: `en`, keySeparator: false, react: { useSuspense: r2, bindI18n: a2 }, _polyfill: { isLoading: false } }, c2 = J.createInstance(i2 ? s2 : void 0);
2345
+ K.createInstance, K.dir, K.init, K.loadResources, K.reloadResources, K.use, K.changeLanguage, K.getFixedT, K.t, K.exists, K.setDefaultNamespace, K.hasLoadedNamespace, K.loadNamespaces, K.loadLanguages;
2346
+ var Mi = ({ locale: e6, asyncMessagesLoader: t2, messages: n2, useSuspense: r2 = false, disableAutoInit: i2 = false, bindI18n: a2 }, { icu: o2 } = {}) => {
2347
+ let s2 = { lng: e6, fallbackLng: `en`, keySeparator: false, react: { useSuspense: r2, bindI18n: a2 }, _polyfill: { isLoading: false } }, c2 = K.createInstance(i2 ? s2 : void 0);
2341
2348
  return o2 && c2.use(o2), t2 && c2.use({ type: `backend`, read: async (e7, n3, r3) => {
2342
2349
  try {
2343
2350
  return r3(null, await t2(e7));
@@ -2346,38 +2353,38 @@ var ki = ({ locale: e6, asyncMessagesLoader: t2, messages: n2, useSuspense: r2 =
2346
2353
  }
2347
2354
  } }), n2 && (s2.resources = { [e6]: { translation: n2 } }), i2 || c2.init(s2), c2;
2348
2355
  };
2349
- function Ai(e6, t2) {
2350
- let n2 = t2 && t2.cache ? t2.cache : Bi, r2 = t2 && t2.serializer ? t2.serializer : Ri;
2351
- return (t2 && t2.strategy ? t2.strategy : Fi)(e6, { cache: n2, serializer: r2 });
2356
+ function Ni(e6, t2) {
2357
+ let n2 = t2 && t2.cache ? t2.cache : Ui, r2 = t2 && t2.serializer ? t2.serializer : Vi;
2358
+ return (t2 && t2.strategy ? t2.strategy : Ri)(e6, { cache: n2, serializer: r2 });
2352
2359
  }
2353
- function ji(e6) {
2360
+ function Pi(e6) {
2354
2361
  return e6 == null || typeof e6 == `number` || typeof e6 == `boolean`;
2355
2362
  }
2356
- function Mi(e6, t2, n2, r2) {
2357
- let i2 = ji(r2) ? r2 : n2(r2), a2 = t2.get(i2);
2363
+ function Fi(e6, t2, n2, r2) {
2364
+ let i2 = Pi(r2) ? r2 : n2(r2), a2 = t2.get(i2);
2358
2365
  return a2 === void 0 && (a2 = e6.call(this, r2), t2.set(i2, a2)), a2;
2359
2366
  }
2360
- function Ni(e6, t2, n2) {
2367
+ function Ii(e6, t2, n2) {
2361
2368
  let r2 = Array.prototype.slice.call(arguments, 3), i2 = n2(r2), a2 = t2.get(i2);
2362
2369
  return a2 === void 0 && (a2 = e6.apply(this, r2), t2.set(i2, a2)), a2;
2363
2370
  }
2364
- function Pi(e6, t2, n2, r2, i2) {
2371
+ function Li(e6, t2, n2, r2, i2) {
2365
2372
  return n2.bind(t2, e6, r2, i2);
2366
2373
  }
2367
- function Fi(e6, t2) {
2368
- let n2 = e6.length === 1 ? Mi : Ni;
2369
- return Pi(e6, this, n2, t2.cache.create(), t2.serializer);
2374
+ function Ri(e6, t2) {
2375
+ let n2 = e6.length === 1 ? Fi : Ii;
2376
+ return Li(e6, this, n2, t2.cache.create(), t2.serializer);
2370
2377
  }
2371
- function Ii(e6, t2) {
2372
- return Pi(e6, this, Ni, t2.cache.create(), t2.serializer);
2378
+ function zi(e6, t2) {
2379
+ return Li(e6, this, Ii, t2.cache.create(), t2.serializer);
2373
2380
  }
2374
- function Li(e6, t2) {
2375
- return Pi(e6, this, Mi, t2.cache.create(), t2.serializer);
2381
+ function Bi(e6, t2) {
2382
+ return Li(e6, this, Fi, t2.cache.create(), t2.serializer);
2376
2383
  }
2377
- var Ri = function() {
2384
+ var Vi = function() {
2378
2385
  return JSON.stringify(arguments);
2379
2386
  };
2380
- var zi = class {
2387
+ var Hi = class {
2381
2388
  constructor() {
2382
2389
  this.cache = /* @__PURE__ */ Object.create(null);
2383
2390
  }
@@ -2388,14 +2395,14 @@ var zi = class {
2388
2395
  this.cache[e6] = t2;
2389
2396
  }
2390
2397
  };
2391
- var Bi = { create: function() {
2392
- return new zi();
2398
+ var Ui = { create: function() {
2399
+ return new Hi();
2393
2400
  } };
2394
- var Vi = { variadic: Ii, monadic: Li };
2395
- var Hi = /(?:[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;
2396
- function Ui(e6) {
2401
+ var Wi = { variadic: zi, monadic: Bi };
2402
+ var Gi = /(?:[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;
2403
+ function Ki(e6) {
2397
2404
  let t2 = {};
2398
- return e6.replace(Hi, (e7) => {
2405
+ return e6.replace(Gi, (e7) => {
2399
2406
  let n2 = e7.length;
2400
2407
  switch (e7[0]) {
2401
2408
  case `G`:
@@ -2482,10 +2489,10 @@ function Ui(e6) {
2482
2489
  return ``;
2483
2490
  }), t2;
2484
2491
  }
2485
- var Wi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2486
- function Gi(e6) {
2492
+ var qi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2493
+ function Ji(e6) {
2487
2494
  if (e6.length === 0) throw Error(`Number skeleton cannot be empty`);
2488
- let t2 = e6.split(Wi).filter((e7) => e7.length > 0), n2 = [];
2495
+ let t2 = e6.split(qi).filter((e7) => e7.length > 0), n2 = [];
2489
2496
  for (let e7 of t2) {
2490
2497
  let t3 = e7.split(`/`);
2491
2498
  if (t3.length === 0) throw Error(`Invalid number skeleton`);
@@ -2495,20 +2502,20 @@ function Gi(e6) {
2495
2502
  }
2496
2503
  return n2;
2497
2504
  }
2498
- function Ki(e6) {
2505
+ function Yi(e6) {
2499
2506
  return e6.replace(/^(.*?)-/, ``);
2500
2507
  }
2501
- var qi = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g;
2502
- var Ji = /^(@+)?(\+|#+)?[rs]?$/g;
2503
- var Yi = /(\*)(0+)|(#+)(0+)|(0+)/g;
2504
- var Xi = /^(0+)$/;
2505
- function Zi(e6) {
2508
+ var Xi = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g;
2509
+ var Zi = /^(@+)?(\+|#+)?[rs]?$/g;
2510
+ var Qi = /(\*)(0+)|(#+)(0+)|(0+)/g;
2511
+ var $i = /^(0+)$/;
2512
+ function ea(e6) {
2506
2513
  let t2 = {};
2507
- return e6[e6.length - 1] === `r` ? t2.roundingPriority = `morePrecision` : e6[e6.length - 1] === `s` && (t2.roundingPriority = `lessPrecision`), e6.replace(Ji, function(e7, n2, r2) {
2514
+ return e6[e6.length - 1] === `r` ? t2.roundingPriority = `morePrecision` : e6[e6.length - 1] === `s` && (t2.roundingPriority = `lessPrecision`), e6.replace(Zi, function(e7, n2, r2) {
2508
2515
  return typeof r2 == `string` ? r2 === `+` ? t2.minimumSignificantDigits = n2.length : n2[0] === `#` ? t2.maximumSignificantDigits = n2.length : (t2.minimumSignificantDigits = n2.length, t2.maximumSignificantDigits = n2.length + (typeof r2 == `string` ? r2.length : 0)) : (t2.minimumSignificantDigits = n2.length, t2.maximumSignificantDigits = n2.length), ``;
2509
2516
  }), t2;
2510
2517
  }
2511
- function Qi(e6) {
2518
+ function ta(e6) {
2512
2519
  switch (e6) {
2513
2520
  case `sign-auto`:
2514
2521
  return { signDisplay: `auto` };
@@ -2532,19 +2539,19 @@ function Qi(e6) {
2532
2539
  return { signDisplay: `never` };
2533
2540
  }
2534
2541
  }
2535
- function $i(e6) {
2542
+ function na(e6) {
2536
2543
  let t2;
2537
2544
  if (e6[0] === `E` && e6[1] === `E` ? (t2 = { notation: `engineering` }, e6 = e6.slice(2)) : e6[0] === `E` && (t2 = { notation: `scientific` }, e6 = e6.slice(1)), t2) {
2538
2545
  let n2 = e6.slice(0, 2);
2539
- if (n2 === `+!` ? (t2.signDisplay = `always`, e6 = e6.slice(2)) : n2 === `+?` && (t2.signDisplay = `exceptZero`, e6 = e6.slice(2)), !Xi.test(e6)) throw Error(`Malformed concise eng/scientific notation`);
2546
+ if (n2 === `+!` ? (t2.signDisplay = `always`, e6 = e6.slice(2)) : n2 === `+?` && (t2.signDisplay = `exceptZero`, e6 = e6.slice(2)), !$i.test(e6)) throw Error(`Malformed concise eng/scientific notation`);
2540
2547
  t2.minimumIntegerDigits = e6.length;
2541
2548
  }
2542
2549
  return t2;
2543
2550
  }
2544
- function ea(e6) {
2545
- return Qi(e6) || {};
2551
+ function ra(e6) {
2552
+ return ta(e6) || {};
2546
2553
  }
2547
- function ta(e6) {
2554
+ function ia(e6) {
2548
2555
  let t2 = {};
2549
2556
  for (let n2 of e6) {
2550
2557
  switch (n2.stem) {
@@ -2568,7 +2575,7 @@ function ta(e6) {
2568
2575
  continue;
2569
2576
  case `measure-unit`:
2570
2577
  case `unit`:
2571
- t2.style = `unit`, t2.unit = Ki(n2.options[0]);
2578
+ t2.style = `unit`, t2.unit = Yi(n2.options[0]);
2572
2579
  continue;
2573
2580
  case `compact-short`:
2574
2581
  case `K`:
@@ -2579,10 +2586,10 @@ function ta(e6) {
2579
2586
  t2.notation = `compact`, t2.compactDisplay = `long`;
2580
2587
  continue;
2581
2588
  case `scientific`:
2582
- t2 = { ...t2, notation: `scientific`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...ea(t3) }), {}) };
2589
+ t2 = { ...t2, notation: `scientific`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...ra(t3) }), {}) };
2583
2590
  continue;
2584
2591
  case `engineering`:
2585
- t2 = { ...t2, notation: `engineering`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...ea(t3) }), {}) };
2592
+ t2 = { ...t2, notation: `engineering`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...ra(t3) }), {}) };
2586
2593
  continue;
2587
2594
  case `notation-simple`:
2588
2595
  t2.notation = `standard`;
@@ -2625,7 +2632,7 @@ function ta(e6) {
2625
2632
  continue;
2626
2633
  case `integer-width`:
2627
2634
  if (n2.options.length > 1) throw RangeError(`integer-width stems only accept a single optional option`);
2628
- n2.options[0].replace(Yi, function(e8, n3, r3, i2, a2, o2) {
2635
+ n2.options[0].replace(Qi, function(e8, n3, r3, i2, a2, o2) {
2629
2636
  if (n3) t2.minimumIntegerDigits = r3.length;
2630
2637
  else if (i2 && a2) throw Error(`We currently do not support maximum integer digits`);
2631
2638
  else if (o2) throw Error(`We currently do not support exact integer digits`);
@@ -2633,83 +2640,83 @@ function ta(e6) {
2633
2640
  });
2634
2641
  continue;
2635
2642
  }
2636
- if (Xi.test(n2.stem)) {
2643
+ if ($i.test(n2.stem)) {
2637
2644
  t2.minimumIntegerDigits = n2.stem.length;
2638
2645
  continue;
2639
2646
  }
2640
- if (qi.test(n2.stem)) {
2647
+ if (Xi.test(n2.stem)) {
2641
2648
  if (n2.options.length > 1) throw RangeError(`Fraction-precision stems only accept a single optional option`);
2642
- n2.stem.replace(qi, function(e9, n3, r3, i2, a2, o2) {
2649
+ n2.stem.replace(Xi, function(e9, n3, r3, i2, a2, o2) {
2643
2650
  return r3 === `*` ? t2.minimumFractionDigits = n3.length : i2 && i2[0] === `#` ? t2.maximumFractionDigits = i2.length : a2 && o2 ? (t2.minimumFractionDigits = a2.length, t2.maximumFractionDigits = a2.length + o2.length) : (t2.minimumFractionDigits = n3.length, t2.maximumFractionDigits = n3.length), ``;
2644
2651
  });
2645
2652
  let e8 = n2.options[0];
2646
- e8 === `w` ? t2 = { ...t2, trailingZeroDisplay: `stripIfInteger` } : e8 && (t2 = { ...t2, ...Zi(e8) });
2653
+ e8 === `w` ? t2 = { ...t2, trailingZeroDisplay: `stripIfInteger` } : e8 && (t2 = { ...t2, ...ea(e8) });
2647
2654
  continue;
2648
2655
  }
2649
- if (Ji.test(n2.stem)) {
2650
- t2 = { ...t2, ...Zi(n2.stem) };
2656
+ if (Zi.test(n2.stem)) {
2657
+ t2 = { ...t2, ...ea(n2.stem) };
2651
2658
  continue;
2652
2659
  }
2653
- let e7 = Qi(n2.stem);
2660
+ let e7 = ta(n2.stem);
2654
2661
  e7 && (t2 = { ...t2, ...e7 });
2655
- let r2 = $i(n2.stem);
2662
+ let r2 = na(n2.stem);
2656
2663
  r2 && (t2 = { ...t2, ...r2 });
2657
2664
  }
2658
2665
  return t2;
2659
2666
  }
2660
- var na = function(e6) {
2667
+ var aa = function(e6) {
2661
2668
  return e6[e6.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = `EXPECT_ARGUMENT_CLOSING_BRACE`, e6[e6.EMPTY_ARGUMENT = 2] = `EMPTY_ARGUMENT`, e6[e6.MALFORMED_ARGUMENT = 3] = `MALFORMED_ARGUMENT`, e6[e6.EXPECT_ARGUMENT_TYPE = 4] = `EXPECT_ARGUMENT_TYPE`, e6[e6.INVALID_ARGUMENT_TYPE = 5] = `INVALID_ARGUMENT_TYPE`, e6[e6.EXPECT_ARGUMENT_STYLE = 6] = `EXPECT_ARGUMENT_STYLE`, e6[e6.INVALID_NUMBER_SKELETON = 7] = `INVALID_NUMBER_SKELETON`, e6[e6.INVALID_DATE_TIME_SKELETON = 8] = `INVALID_DATE_TIME_SKELETON`, e6[e6.EXPECT_NUMBER_SKELETON = 9] = `EXPECT_NUMBER_SKELETON`, e6[e6.EXPECT_DATE_TIME_SKELETON = 10] = `EXPECT_DATE_TIME_SKELETON`, e6[e6.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = `UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`, e6[e6.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = `EXPECT_SELECT_ARGUMENT_OPTIONS`, e6[e6.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = `EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`, e6[e6.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = `INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`, e6[e6.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = `EXPECT_SELECT_ARGUMENT_SELECTOR`, e6[e6.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = `EXPECT_PLURAL_ARGUMENT_SELECTOR`, e6[e6.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = `EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`, e6[e6.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = `EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`, e6[e6.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = `INVALID_PLURAL_ARGUMENT_SELECTOR`, e6[e6.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = `DUPLICATE_PLURAL_ARGUMENT_SELECTOR`, e6[e6.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = `DUPLICATE_SELECT_ARGUMENT_SELECTOR`, e6[e6.MISSING_OTHER_CLAUSE = 22] = `MISSING_OTHER_CLAUSE`, e6[e6.INVALID_TAG = 23] = `INVALID_TAG`, e6[e6.INVALID_TAG_NAME = 25] = `INVALID_TAG_NAME`, e6[e6.UNMATCHED_CLOSING_TAG = 26] = `UNMATCHED_CLOSING_TAG`, e6[e6.UNCLOSED_TAG = 27] = `UNCLOSED_TAG`, e6;
2662
2669
  }({});
2663
- function ra(e6) {
2670
+ function oa(e6) {
2664
2671
  return e6.type === 0;
2665
2672
  }
2666
- function ia(e6) {
2673
+ function sa(e6) {
2667
2674
  return e6.type === 1;
2668
2675
  }
2669
- function aa(e6) {
2676
+ function ca(e6) {
2670
2677
  return e6.type === 2;
2671
2678
  }
2672
- function oa(e6) {
2679
+ function la(e6) {
2673
2680
  return e6.type === 3;
2674
2681
  }
2675
- function sa(e6) {
2682
+ function ua(e6) {
2676
2683
  return e6.type === 4;
2677
2684
  }
2678
- function ca(e6) {
2685
+ function da(e6) {
2679
2686
  return e6.type === 5;
2680
2687
  }
2681
- function la(e6) {
2688
+ function fa(e6) {
2682
2689
  return e6.type === 6;
2683
2690
  }
2684
- function ua(e6) {
2691
+ function pa(e6) {
2685
2692
  return e6.type === 7;
2686
2693
  }
2687
- function da(e6) {
2694
+ function ma(e6) {
2688
2695
  return e6.type === 8;
2689
2696
  }
2690
- function fa(e6) {
2697
+ function ha(e6) {
2691
2698
  return !!(e6 && typeof e6 == `object` && e6.type === 0);
2692
2699
  }
2693
- function pa(e6) {
2700
+ function ga(e6) {
2694
2701
  return !!(e6 && typeof e6 == `object` && e6.type === 1);
2695
2702
  }
2696
- var ma = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
2697
- var Y = { "001": [`H`, `h`], 419: [`h`, `H`, `hB`, `hb`], AC: [`H`, `h`, `hb`, `hB`], AD: [`H`, `hB`], AE: [`h`, `hB`, `hb`, `H`], AF: [`H`, `hb`, `hB`, `h`], AG: [`h`, `hb`, `H`, `hB`], AI: [`H`, `h`, `hb`, `hB`], AL: [`h`, `H`, `hB`], AM: [`H`, `hB`], AO: [`H`, `hB`], AR: [`h`, `H`, `hB`, `hb`], AS: [`h`, `H`], AT: [`H`, `hB`], AU: [`h`, `hb`, `H`, `hB`], AW: [`H`, `hB`], AX: [`H`], AZ: [`H`, `hB`, `h`], BA: [`H`, `hB`, `h`], BB: [`h`, `hb`, `H`, `hB`], BD: [`h`, `hB`, `H`], BE: [`H`, `hB`], BF: [`H`, `hB`], BG: [`H`, `hB`, `h`], BH: [`h`, `hB`, `hb`, `H`], BI: [`H`, `h`], BJ: [`H`, `hB`], BL: [`H`, `hB`], BM: [`h`, `hb`, `H`, `hB`], BN: [`hb`, `hB`, `h`, `H`], BO: [`h`, `H`, `hB`, `hb`], BQ: [`H`], BR: [`H`, `hB`], BS: [`h`, `hb`, `H`, `hB`], BT: [`h`, `H`], BW: [`H`, `h`, `hb`, `hB`], BY: [`H`, `h`], BZ: [`H`, `h`, `hb`, `hB`], CA: [`h`, `hb`, `H`, `hB`], CC: [`H`, `h`, `hb`, `hB`], CD: [`hB`, `H`], CF: [`H`, `h`, `hB`], CG: [`H`, `hB`], CH: [`H`, `hB`, `h`], CI: [`H`, `hB`], CK: [`H`, `h`, `hb`, `hB`], CL: [`h`, `H`, `hB`, `hb`], CM: [`H`, `h`, `hB`], CN: [`H`, `hB`, `hb`, `h`], CO: [`h`, `H`, `hB`, `hb`], CP: [`H`], CR: [`h`, `H`, `hB`, `hb`], CU: [`h`, `H`, `hB`, `hb`], CV: [`H`, `hB`], CW: [`H`, `hB`], CX: [`H`, `h`, `hb`, `hB`], CY: [`h`, `H`, `hb`, `hB`], CZ: [`H`], DE: [`H`, `hB`], DG: [`H`, `h`, `hb`, `hB`], DJ: [`h`, `H`], DK: [`H`], DM: [`h`, `hb`, `H`, `hB`], DO: [`h`, `H`, `hB`, `hb`], DZ: [`h`, `hB`, `hb`, `H`], EA: [`H`, `h`, `hB`, `hb`], EC: [`h`, `H`, `hB`, `hb`], EE: [`H`, `hB`], EG: [`h`, `hB`, `hb`, `H`], EH: [`h`, `hB`, `hb`, `H`], ER: [`h`, `H`], ES: [`H`, `hB`, `h`, `hb`], ET: [`hB`, `hb`, `h`, `H`], FI: [`H`], FJ: [`h`, `hb`, `H`, `hB`], FK: [`H`, `h`, `hb`, `hB`], FM: [`h`, `hb`, `H`, `hB`], FO: [`H`, `h`], FR: [`H`, `hB`], GA: [`H`, `hB`], GB: [`H`, `h`, `hb`, `hB`], GD: [`h`, `hb`, `H`, `hB`], GE: [`H`, `hB`, `h`], GF: [`H`, `hB`], GG: [`H`, `h`, `hb`, `hB`], GH: [`h`, `H`], GI: [`H`, `h`, `hb`, `hB`], GL: [`H`, `h`], GM: [`h`, `hb`, `H`, `hB`], GN: [`H`, `hB`], GP: [`H`, `hB`], GQ: [`H`, `hB`, `h`, `hb`], GR: [`h`, `H`, `hb`, `hB`], GS: [`H`, `h`, `hb`, `hB`], GT: [`h`, `H`, `hB`, `hb`], GU: [`h`, `hb`, `H`, `hB`], GW: [`H`, `hB`], GY: [`h`, `hb`, `H`, `hB`], HK: [`h`, `hB`, `hb`, `H`], HN: [`h`, `H`, `hB`, `hb`], HR: [`H`, `hB`], HU: [`H`, `h`], IC: [`H`, `h`, `hB`, `hb`], ID: [`H`], IE: [`H`, `h`, `hb`, `hB`], IL: [`H`, `hB`], IM: [`H`, `h`, `hb`, `hB`], IN: [`h`, `H`], IO: [`H`, `h`, `hb`, `hB`], IQ: [`h`, `hB`, `hb`, `H`], IR: [`hB`, `H`], IS: [`H`], IT: [`H`, `hB`], JE: [`H`, `h`, `hb`, `hB`], JM: [`h`, `hb`, `H`, `hB`], JO: [`h`, `hB`, `hb`, `H`], JP: [`H`, `K`, `h`], KE: [`hB`, `hb`, `H`, `h`], KG: [`H`, `h`, `hB`, `hb`], KH: [`hB`, `h`, `H`, `hb`], KI: [`h`, `hb`, `H`, `hB`], KM: [`H`, `h`, `hB`, `hb`], KN: [`h`, `hb`, `H`, `hB`], KP: [`h`, `H`, `hB`, `hb`], KR: [`h`, `H`, `hB`, `hb`], KW: [`h`, `hB`, `hb`, `H`], KY: [`h`, `hb`, `H`, `hB`], KZ: [`H`, `hB`], LA: [`H`, `hb`, `hB`, `h`], LB: [`h`, `hB`, `hb`, `H`], LC: [`h`, `hb`, `H`, `hB`], LI: [`H`, `hB`, `h`], LK: [`H`, `h`, `hB`, `hb`], LR: [`h`, `hb`, `H`, `hB`], LS: [`h`, `H`], LT: [`H`, `h`, `hb`, `hB`], LU: [`H`, `h`, `hB`], LV: [`H`, `hB`, `hb`, `h`], LY: [`h`, `hB`, `hb`, `H`], MA: [`H`, `h`, `hB`, `hb`], MC: [`H`, `hB`], MD: [`H`, `hB`], ME: [`H`, `hB`, `h`], MF: [`H`, `hB`], MG: [`H`, `h`], MH: [`h`, `hb`, `H`, `hB`], MK: [`H`, `h`, `hb`, `hB`], ML: [`H`], MM: [`hB`, `hb`, `H`, `h`], MN: [`H`, `h`, `hb`, `hB`], MO: [`h`, `hB`, `hb`, `H`], MP: [`h`, `hb`, `H`, `hB`], MQ: [`H`, `hB`], MR: [`h`, `hB`, `hb`, `H`], MS: [`H`, `h`, `hb`, `hB`], MT: [`H`, `h`], MU: [`H`, `h`], MV: [`H`, `h`], MW: [`h`, `hb`, `H`, `hB`], MX: [`h`, `H`, `hB`, `hb`], MY: [`hb`, `hB`, `h`, `H`], MZ: [`H`, `hB`], NA: [`h`, `H`, `hB`, `hb`], NC: [`H`, `hB`], NE: [`H`], NF: [`H`, `h`, `hb`, `hB`], NG: [`H`, `h`, `hb`, `hB`], NI: [`h`, `H`, `hB`, `hb`], NL: [`H`, `hB`], NO: [`H`, `h`], NP: [`H`, `h`, `hB`], NR: [`H`, `h`, `hb`, `hB`], NU: [`H`, `h`, `hb`, `hB`], NZ: [`h`, `hb`, `H`, `hB`], OM: [`h`, `hB`, `hb`, `H`], PA: [`h`, `H`, `hB`, `hb`], PE: [`h`, `H`, `hB`, `hb`], PF: [`H`, `h`, `hB`], PG: [`h`, `H`], PH: [`h`, `hB`, `hb`, `H`], PK: [`h`, `hB`, `H`], PL: [`H`, `h`], PM: [`H`, `hB`], PN: [`H`, `h`, `hb`, `hB`], PR: [`h`, `H`, `hB`, `hb`], PS: [`h`, `hB`, `hb`, `H`], PT: [`H`, `hB`], PW: [`h`, `H`], PY: [`h`, `H`, `hB`, `hb`], QA: [`h`, `hB`, `hb`, `H`], RE: [`H`, `hB`], RO: [`H`, `hB`], RS: [`H`, `hB`, `h`], RU: [`H`], RW: [`H`, `h`], SA: [`h`, `hB`, `hb`, `H`], SB: [`h`, `hb`, `H`, `hB`], SC: [`H`, `h`, `hB`], SD: [`h`, `hB`, `hb`, `H`], SE: [`H`], SG: [`h`, `hb`, `H`, `hB`], SH: [`H`, `h`, `hb`, `hB`], SI: [`H`, `hB`], SJ: [`H`], SK: [`H`], SL: [`h`, `hb`, `H`, `hB`], SM: [`H`, `h`, `hB`], SN: [`H`, `h`, `hB`], SO: [`h`, `H`], SR: [`H`, `hB`], SS: [`h`, `hb`, `H`, `hB`], ST: [`H`, `hB`], SV: [`h`, `H`, `hB`, `hb`], SX: [`H`, `h`, `hb`, `hB`], SY: [`h`, `hB`, `hb`, `H`], SZ: [`h`, `hb`, `H`, `hB`], TA: [`H`, `h`, `hb`, `hB`], TC: [`h`, `hb`, `H`, `hB`], TD: [`h`, `H`, `hB`], TF: [`H`, `h`, `hB`], TG: [`H`, `hB`], TH: [`H`, `h`], TJ: [`H`, `h`], TL: [`H`, `hB`, `hb`, `h`], TM: [`H`, `h`], TN: [`h`, `hB`, `hb`, `H`], TO: [`h`, `H`], TR: [`H`, `hB`], TT: [`h`, `hb`, `H`, `hB`], TW: [`hB`, `hb`, `h`, `H`], TZ: [`hB`, `hb`, `H`, `h`], UA: [`H`, `hB`, `h`], UG: [`hB`, `hb`, `H`, `h`], UM: [`h`, `hb`, `H`, `hB`], US: [`h`, `hb`, `H`, `hB`], UY: [`h`, `H`, `hB`, `hb`], UZ: [`H`, `hB`, `h`], VA: [`H`, `h`, `hB`], VC: [`h`, `hb`, `H`, `hB`], VE: [`h`, `H`, `hB`, `hb`], VG: [`h`, `hb`, `H`, `hB`], VI: [`h`, `hb`, `H`, `hB`], VN: [`H`, `h`], VU: [`h`, `H`], WF: [`H`, `hB`], WS: [`h`, `H`], XK: [`H`, `hB`, `h`], YE: [`h`, `hB`, `hb`, `H`], YT: [`H`, `hB`], ZA: [`H`, `h`, `hb`, `hB`], ZM: [`h`, `hb`, `H`, `hB`], ZW: [`H`, `h`], "af-ZA": [`H`, `h`, `hB`, `hb`], "ar-001": [`h`, `hB`, `hb`, `H`], "ca-ES": [`H`, `h`, `hB`], "en-001": [`h`, `hb`, `H`, `hB`], "en-HK": [`h`, `hb`, `H`, `hB`], "en-IL": [`H`, `h`, `hb`, `hB`], "en-MY": [`h`, `hb`, `H`, `hB`], "es-BR": [`H`, `h`, `hB`, `hb`], "es-ES": [`H`, `h`, `hB`, `hb`], "es-GQ": [`H`, `h`, `hB`, `hb`], "fr-CA": [`H`, `h`, `hB`], "gl-ES": [`H`, `h`, `hB`], "gu-IN": [`hB`, `hb`, `h`, `H`], "hi-IN": [`hB`, `h`, `H`], "it-CH": [`H`, `h`, `hB`], "it-IT": [`H`, `h`, `hB`], "kn-IN": [`hB`, `h`, `H`], "ku-SY": [`H`, `hB`], "ml-IN": [`hB`, `h`, `H`], "mr-IN": [`hB`, `hb`, `h`, `H`], "pa-IN": [`hB`, `hb`, `h`, `H`], "ta-IN": [`hB`, `h`, `hb`, `H`], "te-IN": [`hB`, `h`, `H`], "zu-ZA": [`H`, `hB`, `hb`, `h`] };
2698
- function ha(e6, t2) {
2703
+ var _a = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
2704
+ var q = { "001": [`H`, `h`], 419: [`h`, `H`, `hB`, `hb`], AC: [`H`, `h`, `hb`, `hB`], AD: [`H`, `hB`], AE: [`h`, `hB`, `hb`, `H`], AF: [`H`, `hb`, `hB`, `h`], AG: [`h`, `hb`, `H`, `hB`], AI: [`H`, `h`, `hb`, `hB`], AL: [`h`, `H`, `hB`], AM: [`H`, `hB`], AO: [`H`, `hB`], AR: [`h`, `H`, `hB`, `hb`], AS: [`h`, `H`], AT: [`H`, `hB`], AU: [`h`, `hb`, `H`, `hB`], AW: [`H`, `hB`], AX: [`H`], AZ: [`H`, `hB`, `h`], BA: [`H`, `hB`, `h`], BB: [`h`, `hb`, `H`, `hB`], BD: [`h`, `hB`, `H`], BE: [`H`, `hB`], BF: [`H`, `hB`], BG: [`H`, `hB`, `h`], BH: [`h`, `hB`, `hb`, `H`], BI: [`H`, `h`], BJ: [`H`, `hB`], BL: [`H`, `hB`], BM: [`h`, `hb`, `H`, `hB`], BN: [`hb`, `hB`, `h`, `H`], BO: [`h`, `H`, `hB`, `hb`], BQ: [`H`], BR: [`H`, `hB`], BS: [`h`, `hb`, `H`, `hB`], BT: [`h`, `H`], BW: [`H`, `h`, `hb`, `hB`], BY: [`H`, `h`], BZ: [`H`, `h`, `hb`, `hB`], CA: [`h`, `hb`, `H`, `hB`], CC: [`H`, `h`, `hb`, `hB`], CD: [`hB`, `H`], CF: [`H`, `h`, `hB`], CG: [`H`, `hB`], CH: [`H`, `hB`, `h`], CI: [`H`, `hB`], CK: [`H`, `h`, `hb`, `hB`], CL: [`h`, `H`, `hB`, `hb`], CM: [`H`, `h`, `hB`], CN: [`H`, `hB`, `hb`, `h`], CO: [`h`, `H`, `hB`, `hb`], CP: [`H`], CR: [`h`, `H`, `hB`, `hb`], CU: [`h`, `H`, `hB`, `hb`], CV: [`H`, `hB`], CW: [`H`, `hB`], CX: [`H`, `h`, `hb`, `hB`], CY: [`h`, `H`, `hb`, `hB`], CZ: [`H`], DE: [`H`, `hB`], DG: [`H`, `h`, `hb`, `hB`], DJ: [`h`, `H`], DK: [`H`], DM: [`h`, `hb`, `H`, `hB`], DO: [`h`, `H`, `hB`, `hb`], DZ: [`h`, `hB`, `hb`, `H`], EA: [`H`, `h`, `hB`, `hb`], EC: [`h`, `H`, `hB`, `hb`], EE: [`H`, `hB`], EG: [`h`, `hB`, `hb`, `H`], EH: [`h`, `hB`, `hb`, `H`], ER: [`h`, `H`], ES: [`H`, `hB`, `h`, `hb`], ET: [`hB`, `hb`, `h`, `H`], FI: [`H`], FJ: [`h`, `hb`, `H`, `hB`], FK: [`H`, `h`, `hb`, `hB`], FM: [`h`, `hb`, `H`, `hB`], FO: [`H`, `h`], FR: [`H`, `hB`], GA: [`H`, `hB`], GB: [`H`, `h`, `hb`, `hB`], GD: [`h`, `hb`, `H`, `hB`], GE: [`H`, `hB`, `h`], GF: [`H`, `hB`], GG: [`H`, `h`, `hb`, `hB`], GH: [`h`, `H`], GI: [`H`, `h`, `hb`, `hB`], GL: [`H`, `h`], GM: [`h`, `hb`, `H`, `hB`], GN: [`H`, `hB`], GP: [`H`, `hB`], GQ: [`H`, `hB`, `h`, `hb`], GR: [`h`, `H`, `hb`, `hB`], GS: [`H`, `h`, `hb`, `hB`], GT: [`h`, `H`, `hB`, `hb`], GU: [`h`, `hb`, `H`, `hB`], GW: [`H`, `hB`], GY: [`h`, `hb`, `H`, `hB`], HK: [`h`, `hB`, `hb`, `H`], HN: [`h`, `H`, `hB`, `hb`], HR: [`H`, `hB`], HU: [`H`, `h`], IC: [`H`, `h`, `hB`, `hb`], ID: [`H`], IE: [`H`, `h`, `hb`, `hB`], IL: [`H`, `hB`], IM: [`H`, `h`, `hb`, `hB`], IN: [`h`, `H`], IO: [`H`, `h`, `hb`, `hB`], IQ: [`h`, `hB`, `hb`, `H`], IR: [`hB`, `H`], IS: [`H`], IT: [`H`, `hB`], JE: [`H`, `h`, `hb`, `hB`], JM: [`h`, `hb`, `H`, `hB`], JO: [`h`, `hB`, `hb`, `H`], JP: [`H`, `K`, `h`], KE: [`hB`, `hb`, `H`, `h`], KG: [`H`, `h`, `hB`, `hb`], KH: [`hB`, `h`, `H`, `hb`], KI: [`h`, `hb`, `H`, `hB`], KM: [`H`, `h`, `hB`, `hb`], KN: [`h`, `hb`, `H`, `hB`], KP: [`h`, `H`, `hB`, `hb`], KR: [`h`, `H`, `hB`, `hb`], KW: [`h`, `hB`, `hb`, `H`], KY: [`h`, `hb`, `H`, `hB`], KZ: [`H`, `hB`], LA: [`H`, `hb`, `hB`, `h`], LB: [`h`, `hB`, `hb`, `H`], LC: [`h`, `hb`, `H`, `hB`], LI: [`H`, `hB`, `h`], LK: [`H`, `h`, `hB`, `hb`], LR: [`h`, `hb`, `H`, `hB`], LS: [`h`, `H`], LT: [`H`, `h`, `hb`, `hB`], LU: [`H`, `h`, `hB`], LV: [`H`, `hB`, `hb`, `h`], LY: [`h`, `hB`, `hb`, `H`], MA: [`H`, `h`, `hB`, `hb`], MC: [`H`, `hB`], MD: [`H`, `hB`], ME: [`H`, `hB`, `h`], MF: [`H`, `hB`], MG: [`H`, `h`], MH: [`h`, `hb`, `H`, `hB`], MK: [`H`, `h`, `hb`, `hB`], ML: [`H`], MM: [`hB`, `hb`, `H`, `h`], MN: [`H`, `h`, `hb`, `hB`], MO: [`h`, `hB`, `hb`, `H`], MP: [`h`, `hb`, `H`, `hB`], MQ: [`H`, `hB`], MR: [`h`, `hB`, `hb`, `H`], MS: [`H`, `h`, `hb`, `hB`], MT: [`H`, `h`], MU: [`H`, `h`], MV: [`H`, `h`], MW: [`h`, `hb`, `H`, `hB`], MX: [`h`, `H`, `hB`, `hb`], MY: [`hb`, `hB`, `h`, `H`], MZ: [`H`, `hB`], NA: [`h`, `H`, `hB`, `hb`], NC: [`H`, `hB`], NE: [`H`], NF: [`H`, `h`, `hb`, `hB`], NG: [`H`, `h`, `hb`, `hB`], NI: [`h`, `H`, `hB`, `hb`], NL: [`H`, `hB`], NO: [`H`, `h`], NP: [`H`, `h`, `hB`], NR: [`H`, `h`, `hb`, `hB`], NU: [`H`, `h`, `hb`, `hB`], NZ: [`h`, `hb`, `H`, `hB`], OM: [`h`, `hB`, `hb`, `H`], PA: [`h`, `H`, `hB`, `hb`], PE: [`h`, `H`, `hB`, `hb`], PF: [`H`, `h`, `hB`], PG: [`h`, `H`], PH: [`h`, `hB`, `hb`, `H`], PK: [`h`, `hB`, `H`], PL: [`H`, `h`], PM: [`H`, `hB`], PN: [`H`, `h`, `hb`, `hB`], PR: [`h`, `H`, `hB`, `hb`], PS: [`h`, `hB`, `hb`, `H`], PT: [`H`, `hB`], PW: [`h`, `H`], PY: [`h`, `H`, `hB`, `hb`], QA: [`h`, `hB`, `hb`, `H`], RE: [`H`, `hB`], RO: [`H`, `hB`], RS: [`H`, `hB`, `h`], RU: [`H`], RW: [`H`, `h`], SA: [`h`, `hB`, `hb`, `H`], SB: [`h`, `hb`, `H`, `hB`], SC: [`H`, `h`, `hB`], SD: [`h`, `hB`, `hb`, `H`], SE: [`H`], SG: [`h`, `hb`, `H`, `hB`], SH: [`H`, `h`, `hb`, `hB`], SI: [`H`, `hB`], SJ: [`H`], SK: [`H`], SL: [`h`, `hb`, `H`, `hB`], SM: [`H`, `h`, `hB`], SN: [`H`, `h`, `hB`], SO: [`h`, `H`], SR: [`H`, `hB`], SS: [`h`, `hb`, `H`, `hB`], ST: [`H`, `hB`], SV: [`h`, `H`, `hB`, `hb`], SX: [`H`, `h`, `hb`, `hB`], SY: [`h`, `hB`, `hb`, `H`], SZ: [`h`, `hb`, `H`, `hB`], TA: [`H`, `h`, `hb`, `hB`], TC: [`h`, `hb`, `H`, `hB`], TD: [`h`, `H`, `hB`], TF: [`H`, `h`, `hB`], TG: [`H`, `hB`], TH: [`H`, `h`], TJ: [`H`, `h`], TL: [`H`, `hB`, `hb`, `h`], TM: [`H`, `h`], TN: [`h`, `hB`, `hb`, `H`], TO: [`h`, `H`], TR: [`H`, `hB`], TT: [`h`, `hb`, `H`, `hB`], TW: [`hB`, `hb`, `h`, `H`], TZ: [`hB`, `hb`, `H`, `h`], UA: [`H`, `hB`, `h`], UG: [`hB`, `hb`, `H`, `h`], UM: [`h`, `hb`, `H`, `hB`], US: [`h`, `hb`, `H`, `hB`], UY: [`h`, `H`, `hB`, `hb`], UZ: [`H`, `hB`, `h`], VA: [`H`, `h`, `hB`], VC: [`h`, `hb`, `H`, `hB`], VE: [`h`, `H`, `hB`, `hb`], VG: [`h`, `hb`, `H`, `hB`], VI: [`h`, `hb`, `H`, `hB`], VN: [`H`, `h`], VU: [`h`, `H`], WF: [`H`, `hB`], WS: [`h`, `H`], XK: [`H`, `hB`, `h`], YE: [`h`, `hB`, `hb`, `H`], YT: [`H`, `hB`], ZA: [`H`, `h`, `hb`, `hB`], ZM: [`h`, `hb`, `H`, `hB`], ZW: [`H`, `h`], "af-ZA": [`H`, `h`, `hB`, `hb`], "ar-001": [`h`, `hB`, `hb`, `H`], "ca-ES": [`H`, `h`, `hB`], "en-001": [`h`, `hb`, `H`, `hB`], "en-HK": [`h`, `hb`, `H`, `hB`], "en-IL": [`H`, `h`, `hb`, `hB`], "en-MY": [`h`, `hb`, `H`, `hB`], "es-BR": [`H`, `h`, `hB`, `hb`], "es-ES": [`H`, `h`, `hB`, `hb`], "es-GQ": [`H`, `h`, `hB`, `hb`], "fr-CA": [`H`, `h`, `hB`], "gl-ES": [`H`, `h`, `hB`], "gu-IN": [`hB`, `hb`, `h`, `H`], "hi-IN": [`hB`, `h`, `H`], "it-CH": [`H`, `h`, `hB`], "it-IT": [`H`, `h`, `hB`], "kn-IN": [`hB`, `h`, `H`], "ku-SY": [`H`, `hB`], "ml-IN": [`hB`, `h`, `H`], "mr-IN": [`hB`, `hb`, `h`, `H`], "pa-IN": [`hB`, `hb`, `h`, `H`], "ta-IN": [`hB`, `h`, `hb`, `H`], "te-IN": [`hB`, `h`, `H`], "zu-ZA": [`H`, `hB`, `hb`, `h`] };
2705
+ function va(e6, t2) {
2699
2706
  let n2 = ``;
2700
2707
  for (let r2 = 0; r2 < e6.length; r2++) {
2701
2708
  let i2 = e6.charAt(r2);
2702
2709
  if (i2 === `j`) {
2703
2710
  let a2 = 0;
2704
2711
  for (; r2 + 1 < e6.length && e6.charAt(r2 + 1) === i2; ) a2++, r2++;
2705
- let o2 = 1 + (a2 & 1), s2 = a2 < 2 ? 1 : 3 + (a2 >> 1), c2 = ga(t2);
2712
+ let o2 = 1 + (a2 & 1), s2 = a2 < 2 ? 1 : 3 + (a2 >> 1), c2 = ya(t2);
2706
2713
  for ((c2 == `H` || c2 == `k`) && (s2 = 0); s2-- > 0; ) n2 += `a`;
2707
2714
  for (; o2-- > 0; ) n2 = c2 + n2;
2708
2715
  } else n2 += i2 === `J` ? `H` : i2;
2709
2716
  }
2710
2717
  return n2;
2711
2718
  }
2712
- function ga(e6) {
2719
+ function ya(e6) {
2713
2720
  let t2 = e6.hourCycle;
2714
2721
  if (t2 === void 0) {
2715
2722
  let n3 = e6;
@@ -2728,36 +2735,36 @@ function ga(e6) {
2728
2735
  throw Error(`Invalid hourCycle`);
2729
2736
  }
2730
2737
  let n2 = e6.language, r2;
2731
- return n2 !== `root` && (r2 = e6.maximize().region), (Y[`${n2}-${r2}`] || Y[r2 || ``] || Y[n2 || ``] || Y[`${n2}-001`] || Y[`001`])[0].charAt(0);
2738
+ return n2 !== `root` && (r2 = e6.maximize().region), (q[`${n2}-${r2}`] || q[r2 || ``] || q[n2 || ``] || q[`${n2}-001`] || q[`001`])[0].charAt(0);
2732
2739
  }
2733
- var _a = RegExp(`^${ma.source}*`);
2734
- var va = RegExp(`${ma.source}*$`);
2735
- function X(e6, t2) {
2740
+ var ba = RegExp(`^${_a.source}*`);
2741
+ var xa = RegExp(`${_a.source}*$`);
2742
+ function J(e6, t2) {
2736
2743
  return { start: e6, end: t2 };
2737
2744
  }
2738
- var ya = !!Object.fromEntries;
2739
- var ba = !!String.prototype.trimStart;
2740
- var xa = !!String.prototype.trimEnd;
2741
- var Sa = ya ? Object.fromEntries : function(e6) {
2745
+ var Sa = !!Object.fromEntries;
2746
+ var Ca = !!String.prototype.trimStart;
2747
+ var wa = !!String.prototype.trimEnd;
2748
+ var Ta = Sa ? Object.fromEntries : function(e6) {
2742
2749
  let t2 = {};
2743
2750
  for (let [n2, r2] of e6) t2[n2] = r2;
2744
2751
  return t2;
2745
2752
  };
2746
- var Ca = ba ? function(e6) {
2753
+ var Ea = Ca ? function(e6) {
2747
2754
  return e6.trimStart();
2748
2755
  } : function(e6) {
2749
- return e6.replace(_a, ``);
2756
+ return e6.replace(ba, ``);
2750
2757
  };
2751
- var wa = xa ? function(e6) {
2758
+ var Da = wa ? function(e6) {
2752
2759
  return e6.trimEnd();
2753
2760
  } : function(e6) {
2754
- return e6.replace(va, ``);
2761
+ return e6.replace(xa, ``);
2755
2762
  };
2756
- var Ta = RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
2757
- function Ea(e6, t2) {
2758
- return Ta.lastIndex = t2, Ta.exec(e6)[1] ?? ``;
2763
+ var Oa = RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
2764
+ function ka(e6, t2) {
2765
+ return Oa.lastIndex = t2, Oa.exec(e6)[1] ?? ``;
2759
2766
  }
2760
- function Da(e6) {
2767
+ function Aa(e6) {
2761
2768
  if (e6.length === 0) return null;
2762
2769
  let t2 = 1, n2 = 1;
2763
2770
  for (let r2 = 0; r2 < e6.length; ) {
@@ -2778,7 +2785,7 @@ function Da(e6) {
2778
2785
  }
2779
2786
  return { offset: e6.length, line: t2, column: n2 };
2780
2787
  }
2781
- var Oa = class {
2788
+ var ja = class {
2782
2789
  constructor(e6, t2 = {}) {
2783
2790
  this.message = e6, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!t2.ignoreTag, this.locale = t2.locale, this.requiresOtherClause = !!t2.requiresOtherClause, this.shouldParseSkeletons = !!t2.shouldParseSkeletons;
2784
2791
  }
@@ -2787,10 +2794,10 @@ var Oa = class {
2787
2794
  if (this.message.length > 0) {
2788
2795
  let e6 = this.message.charCodeAt(0);
2789
2796
  if (e6 !== 35 && e6 !== 39 && e6 !== 60 && e6 !== 123 && e6 !== 125) {
2790
- let e7 = Da(this.message);
2797
+ let e7 = Aa(this.message);
2791
2798
  if (e7) {
2792
2799
  let t2 = this.clonePosition();
2793
- return this.position = e7, { val: [{ type: 0, value: this.message, location: X(t2, this.clonePosition()) }], err: null };
2800
+ return this.position = e7, { val: [{ type: 0, value: this.message, location: J(t2, this.clonePosition()) }], err: null };
2794
2801
  }
2795
2802
  }
2796
2803
  }
@@ -2807,11 +2814,11 @@ var Oa = class {
2807
2814
  } else if (i2 === 125 && e6 > 0) break;
2808
2815
  else if (i2 === 35 && (t2 === `plural` || t2 === `selectordinal`)) {
2809
2816
  let e7 = this.clonePosition();
2810
- this.bump(), r2.push({ type: 7, location: X(e7, this.clonePosition()) });
2817
+ this.bump(), r2.push({ type: 7, location: J(e7, this.clonePosition()) });
2811
2818
  } else if (i2 === 60 && !this.ignoreTag && this.peek() === 47) {
2812
2819
  if (n2) break;
2813
- return this.error(26, X(this.clonePosition(), this.clonePosition()));
2814
- } else if (i2 === 60 && !this.ignoreTag && ka(this.peek() || 0)) {
2820
+ return this.error(26, J(this.clonePosition(), this.clonePosition()));
2821
+ } else if (i2 === 60 && !this.ignoreTag && Ma(this.peek() || 0)) {
2815
2822
  let n3 = this.parseTag(e6, t2);
2816
2823
  if (n3.err) return n3;
2817
2824
  r2.push(n3.val);
@@ -2827,23 +2834,23 @@ var Oa = class {
2827
2834
  let n2 = this.clonePosition();
2828
2835
  this.bump();
2829
2836
  let r2 = this.parseTagName();
2830
- if (this.bumpSpace(), this.bumpIf(`/>`)) return { val: { type: 0, value: `<${r2}/>`, location: X(n2, this.clonePosition()) }, err: null };
2837
+ if (this.bumpSpace(), this.bumpIf(`/>`)) return { val: { type: 0, value: `<${r2}/>`, location: J(n2, this.clonePosition()) }, err: null };
2831
2838
  if (this.bumpIf(`>`)) {
2832
2839
  let i2 = this.parseMessage(e6 + 1, t2, true);
2833
2840
  if (i2.err) return i2;
2834
2841
  let a2 = i2.val, o2 = this.clonePosition();
2835
2842
  if (this.bumpIf(`</`)) {
2836
- if (this.isEOF() || !ka(this.char())) return this.error(23, X(o2, this.clonePosition()));
2843
+ if (this.isEOF() || !Ma(this.char())) return this.error(23, J(o2, this.clonePosition()));
2837
2844
  let e7 = this.clonePosition();
2838
- return r2 === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(`>`) ? { val: { type: 8, value: r2, children: a2, location: X(n2, this.clonePosition()) }, err: null } : this.error(23, X(o2, this.clonePosition()))) : this.error(26, X(e7, this.clonePosition()));
2845
+ return r2 === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(`>`) ? { val: { type: 8, value: r2, children: a2, location: J(n2, this.clonePosition()) }, err: null } : this.error(23, J(o2, this.clonePosition()))) : this.error(26, J(e7, this.clonePosition()));
2839
2846
  }
2840
- return this.error(27, X(n2, this.clonePosition()));
2847
+ return this.error(27, J(n2, this.clonePosition()));
2841
2848
  }
2842
- return this.error(23, X(n2, this.clonePosition()));
2849
+ return this.error(23, J(n2, this.clonePosition()));
2843
2850
  }
2844
2851
  parseTagName() {
2845
2852
  let e6 = this.offset();
2846
- for (this.bump(); !this.isEOF() && ja(this.char()); ) this.bump();
2853
+ for (this.bump(); !this.isEOF() && Pa(this.char()); ) this.bump();
2847
2854
  return this.message.slice(e6, this.offset());
2848
2855
  }
2849
2856
  parseLiteral(e6, t2) {
@@ -2863,11 +2870,11 @@ var Oa = class {
2863
2870
  if (a2) r2 += a2;
2864
2871
  else break;
2865
2872
  }
2866
- let i2 = X(n2, this.clonePosition());
2873
+ let i2 = J(n2, this.clonePosition());
2867
2874
  return { val: { type: 0, value: r2, location: i2 }, err: null };
2868
2875
  }
2869
2876
  tryParseLeftAngleBracket() {
2870
- return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !Aa(this.peek() || 0)) ? (this.bump(), `<`) : null;
2877
+ return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !Na(this.peek() || 0)) ? (this.bump(), `<`) : null;
2871
2878
  }
2872
2879
  tryParseQuote(e6) {
2873
2880
  if (this.isEOF() || this.char() !== 39) return null;
@@ -2907,29 +2914,29 @@ var Oa = class {
2907
2914
  }
2908
2915
  parseArgument(e6, t2) {
2909
2916
  let n2 = this.clonePosition();
2910
- if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(1, X(n2, this.clonePosition()));
2911
- if (this.char() === 125) return this.bump(), this.error(2, X(n2, this.clonePosition()));
2917
+ if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(1, J(n2, this.clonePosition()));
2918
+ if (this.char() === 125) return this.bump(), this.error(2, J(n2, this.clonePosition()));
2912
2919
  let r2 = this.parseIdentifierIfPossible().value;
2913
- if (!r2) return this.error(3, X(n2, this.clonePosition()));
2914
- if (this.bumpSpace(), this.isEOF()) return this.error(1, X(n2, this.clonePosition()));
2920
+ if (!r2) return this.error(3, J(n2, this.clonePosition()));
2921
+ if (this.bumpSpace(), this.isEOF()) return this.error(1, J(n2, this.clonePosition()));
2915
2922
  switch (this.char()) {
2916
2923
  case 125:
2917
- return this.bump(), { val: { type: 1, value: r2, location: X(n2, this.clonePosition()) }, err: null };
2924
+ return this.bump(), { val: { type: 1, value: r2, location: J(n2, this.clonePosition()) }, err: null };
2918
2925
  case 44:
2919
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(1, X(n2, this.clonePosition())) : this.parseArgumentOptions(e6, t2, r2, n2);
2926
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(1, J(n2, this.clonePosition())) : this.parseArgumentOptions(e6, t2, r2, n2);
2920
2927
  default:
2921
- return this.error(3, X(n2, this.clonePosition()));
2928
+ return this.error(3, J(n2, this.clonePosition()));
2922
2929
  }
2923
2930
  }
2924
2931
  parseIdentifierIfPossible() {
2925
- let e6 = this.clonePosition(), t2 = this.offset(), n2 = Ea(this.message, t2), r2 = t2 + n2.length;
2926
- return this.bumpTo(r2), { value: n2, location: X(e6, this.clonePosition()) };
2932
+ let e6 = this.clonePosition(), t2 = this.offset(), n2 = ka(this.message, t2), r2 = t2 + n2.length;
2933
+ return this.bumpTo(r2), { value: n2, location: J(e6, this.clonePosition()) };
2927
2934
  }
2928
2935
  parseArgumentOptions(e6, t2, n2, r2) {
2929
2936
  let i2 = this.clonePosition(), a2 = this.parseIdentifierIfPossible().value, o2 = this.clonePosition();
2930
2937
  switch (a2) {
2931
2938
  case ``:
2932
- return this.error(4, X(i2, o2));
2939
+ return this.error(4, J(i2, o2));
2933
2940
  case `number`:
2934
2941
  case `date`:
2935
2942
  case `time`: {
@@ -2939,15 +2946,15 @@ var Oa = class {
2939
2946
  this.bumpSpace();
2940
2947
  let t4 = this.clonePosition(), n3 = this.parseSimpleArgStyleIfPossible();
2941
2948
  if (n3.err) return n3;
2942
- let r3 = wa(n3.val);
2943
- if (r3.length === 0) return this.error(6, X(this.clonePosition(), this.clonePosition()));
2944
- e7 = { style: r3, styleLocation: X(t4, this.clonePosition()) };
2949
+ let r3 = Da(n3.val);
2950
+ if (r3.length === 0) return this.error(6, J(this.clonePosition(), this.clonePosition()));
2951
+ e7 = { style: r3, styleLocation: J(t4, this.clonePosition()) };
2945
2952
  }
2946
2953
  let t3 = this.tryParseArgumentClose(r2);
2947
2954
  if (t3.err) return t3;
2948
- let i3 = X(r2, this.clonePosition());
2955
+ let i3 = J(r2, this.clonePosition());
2949
2956
  if (e7 && e7.style.startsWith(`::`)) {
2950
- let t4 = Ca(e7.style.slice(2));
2957
+ let t4 = Ea(e7.style.slice(2));
2951
2958
  if (a2 === `number`) {
2952
2959
  let r3 = this.parseNumberSkeletonFromString(t4, e7.styleLocation);
2953
2960
  return r3.err ? r3 : { val: { type: 2, value: n2, location: i3, style: r3.val }, err: null };
@@ -2955,8 +2962,8 @@ var Oa = class {
2955
2962
  {
2956
2963
  if (t4.length === 0) return this.error(10, i3);
2957
2964
  let r3 = t4;
2958
- this.locale && (r3 = ha(t4, this.locale));
2959
- let o3 = { type: 1, pattern: r3, location: e7.styleLocation, parsedOptions: this.shouldParseSkeletons ? Ui(r3) : {} };
2965
+ this.locale && (r3 = va(t4, this.locale));
2966
+ let o3 = { type: 1, pattern: r3, location: e7.styleLocation, parsedOptions: this.shouldParseSkeletons ? Ki(r3) : {} };
2960
2967
  return { val: { type: a2 === `date` ? 3 : 4, value: n2, location: i3, style: o3 }, err: null };
2961
2968
  }
2962
2969
  }
@@ -2966,11 +2973,11 @@ var Oa = class {
2966
2973
  case `selectordinal`:
2967
2974
  case `select`: {
2968
2975
  let i3 = this.clonePosition();
2969
- if (this.bumpSpace(), !this.bumpIf(`,`)) return this.error(12, X(i3, { ...i3 }));
2976
+ if (this.bumpSpace(), !this.bumpIf(`,`)) return this.error(12, J(i3, { ...i3 }));
2970
2977
  this.bumpSpace();
2971
2978
  let o3 = this.parseIdentifierIfPossible(), s2 = 0;
2972
2979
  if (a2 !== `select` && o3.value === `offset`) {
2973
- if (!this.bumpIf(`:`)) return this.error(13, X(this.clonePosition(), this.clonePosition()));
2980
+ if (!this.bumpIf(`:`)) return this.error(13, J(this.clonePosition(), this.clonePosition()));
2974
2981
  this.bumpSpace();
2975
2982
  let e7 = this.tryParseDecimalInteger(13, 14);
2976
2983
  if (e7.err) return e7;
@@ -2980,15 +2987,15 @@ var Oa = class {
2980
2987
  if (c2.err) return c2;
2981
2988
  let l2 = this.tryParseArgumentClose(r2);
2982
2989
  if (l2.err) return l2;
2983
- let u2 = X(r2, this.clonePosition());
2984
- return a2 === `select` ? { val: { type: 5, value: n2, options: Sa(c2.val), location: u2 }, err: null } : { val: { type: 6, value: n2, options: Sa(c2.val), offset: s2, pluralType: a2 === `plural` ? `cardinal` : `ordinal`, location: u2 }, err: null };
2990
+ let u2 = J(r2, this.clonePosition());
2991
+ return a2 === `select` ? { val: { type: 5, value: n2, options: Ta(c2.val), location: u2 }, err: null } : { val: { type: 6, value: n2, options: Ta(c2.val), offset: s2, pluralType: a2 === `plural` ? `cardinal` : `ordinal`, location: u2 }, err: null };
2985
2992
  }
2986
2993
  default:
2987
- return this.error(5, X(i2, o2));
2994
+ return this.error(5, J(i2, o2));
2988
2995
  }
2989
2996
  }
2990
2997
  tryParseArgumentClose(e6) {
2991
- return this.isEOF() || this.char() !== 125 ? this.error(1, X(e6, this.clonePosition())) : (this.bump(), { val: true, err: null });
2998
+ return this.isEOF() || this.char() !== 125 ? this.error(1, J(e6, this.clonePosition())) : (this.bump(), { val: true, err: null });
2992
2999
  }
2993
3000
  parseSimpleArgStyleIfPossible() {
2994
3001
  let e6 = 0, t2 = this.clonePosition();
@@ -2996,7 +3003,7 @@ var Oa = class {
2996
3003
  case 39: {
2997
3004
  this.bump();
2998
3005
  let e7 = this.clonePosition();
2999
- if (!this.bumpUntil(`'`)) return this.error(11, X(e7, this.clonePosition()));
3006
+ if (!this.bumpUntil(`'`)) return this.error(11, J(e7, this.clonePosition()));
3000
3007
  this.bump();
3001
3008
  break;
3002
3009
  }
@@ -3015,11 +3022,11 @@ var Oa = class {
3015
3022
  parseNumberSkeletonFromString(e6, t2) {
3016
3023
  let n2 = [];
3017
3024
  try {
3018
- n2 = Gi(e6);
3025
+ n2 = Ji(e6);
3019
3026
  } catch {
3020
3027
  return this.error(7, t2);
3021
3028
  }
3022
- return { val: { type: 0, tokens: n2, location: t2, parsedOptions: this.shouldParseSkeletons ? ta(n2) : {} }, err: null };
3029
+ return { val: { type: 0, tokens: n2, location: t2, parsedOptions: this.shouldParseSkeletons ? ia(n2) : {} }, err: null };
3023
3030
  }
3024
3031
  tryParsePluralOrSelectOptions(e6, t2, n2, r2) {
3025
3032
  let i2 = false, a2 = [], o2 = /* @__PURE__ */ new Set(), { value: s2, location: c2 } = r2;
@@ -3029,20 +3036,20 @@ var Oa = class {
3029
3036
  if (t2 !== `select` && this.bumpIf(`=`)) {
3030
3037
  let t3 = this.tryParseDecimalInteger(16, 19);
3031
3038
  if (t3.err) return t3;
3032
- c2 = X(e7, this.clonePosition()), s2 = this.message.slice(e7.offset, this.offset());
3039
+ c2 = J(e7, this.clonePosition()), s2 = this.message.slice(e7.offset, this.offset());
3033
3040
  } else break;
3034
3041
  }
3035
3042
  if (o2.has(s2)) return this.error(t2 === `select` ? 21 : 20, c2);
3036
3043
  s2 === `other` && (i2 = true), this.bumpSpace();
3037
3044
  let r3 = this.clonePosition();
3038
- if (!this.bumpIf(`{`)) return this.error(t2 === `select` ? 17 : 18, X(this.clonePosition(), this.clonePosition()));
3045
+ if (!this.bumpIf(`{`)) return this.error(t2 === `select` ? 17 : 18, J(this.clonePosition(), this.clonePosition()));
3039
3046
  let l2 = this.parseMessage(e6 + 1, t2, n2);
3040
3047
  if (l2.err) return l2;
3041
3048
  let u2 = this.tryParseArgumentClose(r3);
3042
3049
  if (u2.err) return u2;
3043
- a2.push([s2, { value: l2.val, location: X(r3, this.clonePosition()) }]), o2.add(s2), this.bumpSpace(), { value: s2, location: c2 } = this.parseIdentifierIfPossible();
3050
+ a2.push([s2, { value: l2.val, location: J(r3, this.clonePosition()) }]), o2.add(s2), this.bumpSpace(), { value: s2, location: c2 } = this.parseIdentifierIfPossible();
3044
3051
  }
3045
- return a2.length === 0 ? this.error(t2 === `select` ? 15 : 16, X(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !i2 ? this.error(22, X(this.clonePosition(), this.clonePosition())) : { val: a2, err: null };
3052
+ return a2.length === 0 ? this.error(t2 === `select` ? 15 : 16, J(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !i2 ? this.error(22, J(this.clonePosition(), this.clonePosition())) : { val: a2, err: null };
3046
3053
  }
3047
3054
  tryParseDecimalInteger(e6, t2) {
3048
3055
  let n2 = 1, r2 = this.clonePosition();
@@ -3053,7 +3060,7 @@ var Oa = class {
3053
3060
  if (e7 >= 48 && e7 <= 57) i2 = true, a2 = a2 * 10 + (e7 - 48), this.bump();
3054
3061
  else break;
3055
3062
  }
3056
- let o2 = X(r2, this.clonePosition());
3063
+ let o2 = J(r2, this.clonePosition());
3057
3064
  return i2 ? (a2 *= n2, Number.isSafeInteger(a2) ? { val: a2, err: null } : this.error(t2, o2)) : this.error(e6, o2);
3058
3065
  }
3059
3066
  offset() {
@@ -3101,7 +3108,7 @@ var Oa = class {
3101
3108
  }
3102
3109
  }
3103
3110
  bumpSpace() {
3104
- for (; !this.isEOF() && Ma(this.char()); ) this.bump();
3111
+ for (; !this.isEOF() && Fa(this.char()); ) this.bump();
3105
3112
  }
3106
3113
  peek() {
3107
3114
  if (this.isEOF()) return null;
@@ -3109,34 +3116,34 @@ var Oa = class {
3109
3116
  return this.message.charCodeAt(t2 + (e6 >= 65536 ? 2 : 1)) ?? null;
3110
3117
  }
3111
3118
  };
3112
- function ka(e6) {
3119
+ function Ma(e6) {
3113
3120
  return e6 >= 97 && e6 <= 122 || e6 >= 65 && e6 <= 90;
3114
3121
  }
3115
- function Aa(e6) {
3116
- return ka(e6) || e6 === 47;
3122
+ function Na(e6) {
3123
+ return Ma(e6) || e6 === 47;
3117
3124
  }
3118
- function ja(e6) {
3125
+ function Pa(e6) {
3119
3126
  return e6 === 45 || e6 === 46 || e6 >= 48 && e6 <= 57 || e6 === 95 || e6 >= 97 && e6 <= 122 || e6 >= 65 && e6 <= 90 || e6 == 183 || e6 >= 192 && e6 <= 214 || e6 >= 216 && e6 <= 246 || e6 >= 248 && e6 <= 893 || e6 >= 895 && e6 <= 8191 || e6 >= 8204 && e6 <= 8205 || e6 >= 8255 && e6 <= 8256 || e6 >= 8304 && e6 <= 8591 || e6 >= 11264 && e6 <= 12271 || e6 >= 12289 && e6 <= 55295 || e6 >= 63744 && e6 <= 64975 || e6 >= 65008 && e6 <= 65533 || e6 >= 65536 && e6 <= 983039;
3120
3127
  }
3121
- function Ma(e6) {
3128
+ function Fa(e6) {
3122
3129
  return e6 >= 9 && e6 <= 13 || e6 === 32 || e6 === 133 || e6 >= 8206 && e6 <= 8207 || e6 === 8232 || e6 === 8233;
3123
3130
  }
3124
- function Na(e6) {
3131
+ function Ia(e6) {
3125
3132
  e6.forEach((e7) => {
3126
- if (delete e7.location, ca(e7) || la(e7)) for (let t2 in e7.options) delete e7.options[t2].location, Na(e7.options[t2].value);
3127
- else aa(e7) && fa(e7.style) || (oa(e7) || sa(e7)) && pa(e7.style) ? delete e7.style.location : da(e7) && Na(e7.children);
3133
+ if (delete e7.location, da(e7) || fa(e7)) for (let t2 in e7.options) delete e7.options[t2].location, Ia(e7.options[t2].value);
3134
+ else ca(e7) && ha(e7.style) || (la(e7) || ua(e7)) && ga(e7.style) ? delete e7.style.location : ma(e7) && Ia(e7.children);
3128
3135
  });
3129
3136
  }
3130
- function Pa(e6, t2 = {}) {
3137
+ function La(e6, t2 = {}) {
3131
3138
  t2 = { shouldParseSkeletons: true, requiresOtherClause: true, ...t2 };
3132
- let n2 = new Oa(e6, t2).parse();
3139
+ let n2 = new ja(e6, t2).parse();
3133
3140
  if (n2.err) {
3134
- let e7 = SyntaxError(na[n2.err.kind]);
3141
+ let e7 = SyntaxError(aa[n2.err.kind]);
3135
3142
  throw e7.location = n2.err.location, e7.originalMessage = n2.err.message, e7;
3136
3143
  }
3137
- return t2?.captureLocation || Na(n2.val), n2.val;
3144
+ return t2?.captureLocation || Ia(n2.val), n2.val;
3138
3145
  }
3139
- var Fa = class extends Error {
3146
+ var Ra = class extends Error {
3140
3147
  constructor(e6, t2, n2) {
3141
3148
  super(e6), this.code = t2, this.originalMessage = n2;
3142
3149
  }
@@ -3144,54 +3151,54 @@ var Fa = class extends Error {
3144
3151
  return `[formatjs Error: ${this.code}] ${this.message}`;
3145
3152
  }
3146
3153
  };
3147
- var Ia = class extends Fa {
3154
+ var za = class extends Ra {
3148
3155
  constructor(e6, t2, n2, r2) {
3149
3156
  super(`Invalid values for "${e6}": "${t2}". Options are "${Object.keys(n2).join(`", "`)}"`, `INVALID_VALUE`, r2);
3150
3157
  }
3151
3158
  };
3152
- var La = class extends Fa {
3159
+ var Ba = class extends Ra {
3153
3160
  constructor(e6, t2, n2) {
3154
3161
  super(`Value for "${e6}" must be of type ${t2}`, `INVALID_VALUE`, n2);
3155
3162
  }
3156
3163
  };
3157
- var Ra = class extends Fa {
3164
+ var Va = class extends Ra {
3158
3165
  constructor(e6, t2) {
3159
3166
  super(`The intl string context variable "${e6}" was not provided to the string "${t2}"`, `MISSING_VALUE`, t2);
3160
3167
  }
3161
3168
  };
3162
- function za(e6) {
3169
+ function Ha(e6) {
3163
3170
  return e6.length < 2 ? e6 : e6.reduce((e7, t2) => {
3164
3171
  let n2 = e7[e7.length - 1];
3165
3172
  return !n2 || n2.type !== 0 || t2.type !== 0 ? e7.push(t2) : n2.value += t2.value, e7;
3166
3173
  }, []);
3167
3174
  }
3168
- function Ba(e6) {
3175
+ function Ua(e6) {
3169
3176
  return typeof e6 == `function`;
3170
3177
  }
3171
- function Va(e6, t2, n2, r2, i2, a2, o2) {
3172
- if (e6.length === 1 && ra(e6[0])) return [{ type: 0, value: e6[0].value }];
3178
+ function Y(e6, t2, n2, r2, i2, a2, o2) {
3179
+ if (e6.length === 1 && oa(e6[0])) return [{ type: 0, value: e6[0].value }];
3173
3180
  let s2 = [];
3174
3181
  for (let c2 of e6) {
3175
- if (ra(c2)) {
3182
+ if (oa(c2)) {
3176
3183
  s2.push({ type: 0, value: c2.value });
3177
3184
  continue;
3178
3185
  }
3179
- if (ua(c2)) {
3186
+ if (pa(c2)) {
3180
3187
  typeof a2 == `number` && s2.push({ type: 0, value: n2.getNumberFormat(t2).format(a2) });
3181
3188
  continue;
3182
3189
  }
3183
3190
  let { value: e7 } = c2;
3184
- if (!(i2 && e7 in i2)) throw new Ra(e7, o2);
3191
+ if (!(i2 && e7 in i2)) throw new Va(e7, o2);
3185
3192
  let l2 = i2[e7];
3186
- if (ia(c2)) (!l2 || typeof l2 == `string` || typeof l2 == `number` || typeof l2 == `bigint`) && (l2 = typeof l2 == `string` || typeof l2 == `number` || typeof l2 == `bigint` ? String(l2) : ``), s2.push({ type: typeof l2 == `string` ? 0 : 1, value: l2 });
3187
- else if (oa(c2)) {
3188
- let e8 = typeof c2.style == `string` ? r2.date[c2.style] : pa(c2.style) ? c2.style.parsedOptions : void 0;
3193
+ if (sa(c2)) (!l2 || typeof l2 == `string` || typeof l2 == `number` || typeof l2 == `bigint`) && (l2 = typeof l2 == `string` || typeof l2 == `number` || typeof l2 == `bigint` ? String(l2) : ``), s2.push({ type: typeof l2 == `string` ? 0 : 1, value: l2 });
3194
+ else if (la(c2)) {
3195
+ let e8 = typeof c2.style == `string` ? r2.date[c2.style] : ga(c2.style) ? c2.style.parsedOptions : void 0;
3189
3196
  s2.push({ type: 0, value: n2.getDateTimeFormat(t2, e8).format(l2) });
3190
- } else if (sa(c2)) {
3191
- let e8 = typeof c2.style == `string` ? r2.time[c2.style] : pa(c2.style) ? c2.style.parsedOptions : r2.time.medium;
3197
+ } else if (ua(c2)) {
3198
+ let e8 = typeof c2.style == `string` ? r2.time[c2.style] : ga(c2.style) ? c2.style.parsedOptions : r2.time.medium;
3192
3199
  s2.push({ type: 0, value: n2.getDateTimeFormat(t2, e8).format(l2) });
3193
- } else if (aa(c2)) {
3194
- let e8 = typeof c2.style == `string` ? r2.number[c2.style] : fa(c2.style) ? c2.style.parsedOptions : void 0;
3200
+ } else if (ca(c2)) {
3201
+ let e8 = typeof c2.style == `string` ? r2.number[c2.style] : ha(c2.style) ? c2.style.parsedOptions : void 0;
3195
3202
  if (e8 && e8.scale) {
3196
3203
  let t3 = e8.scale || 1;
3197
3204
  if (typeof l2 == `bigint`) {
@@ -3201,40 +3208,40 @@ function Va(e6, t2, n2, r2, i2, a2, o2) {
3201
3208
  }
3202
3209
  s2.push({ type: 0, value: n2.getNumberFormat(t2, e8).format(l2) });
3203
3210
  } else {
3204
- if (da(c2)) {
3211
+ if (ma(c2)) {
3205
3212
  let { children: e8, value: l3 } = c2, u2 = i2[l3];
3206
- if (!Ba(u2)) throw new La(l3, `function`, o2);
3207
- let d2 = u2(Va(e8, t2, n2, r2, i2, a2).map((e9) => e9.value));
3213
+ if (!Ua(u2)) throw new Ba(l3, `function`, o2);
3214
+ let d2 = u2(Y(e8, t2, n2, r2, i2, a2).map((e9) => e9.value));
3208
3215
  Array.isArray(d2) || (d2 = [d2]), s2.push(...d2.map((e9) => ({ type: typeof e9 == `string` ? 0 : 1, value: e9 })));
3209
3216
  }
3210
- if (ca(c2)) {
3217
+ if (da(c2)) {
3211
3218
  let e8 = l2, a3 = (Object.prototype.hasOwnProperty.call(c2.options, e8) ? c2.options[e8] : void 0) || c2.options.other;
3212
- if (!a3) throw new Ia(c2.value, l2, Object.keys(c2.options), o2);
3213
- s2.push(...Va(a3.value, t2, n2, r2, i2));
3214
- } else if (la(c2)) {
3219
+ if (!a3) throw new za(c2.value, l2, Object.keys(c2.options), o2);
3220
+ s2.push(...Y(a3.value, t2, n2, r2, i2));
3221
+ } else if (fa(c2)) {
3215
3222
  let e8 = `=${l2}`, a3 = Object.prototype.hasOwnProperty.call(c2.options, e8) ? c2.options[e8] : void 0;
3216
3223
  if (!a3) {
3217
- if (!Intl.PluralRules) throw new Fa(`Intl.PluralRules is not available in this environment.
3224
+ if (!Intl.PluralRules) throw new Ra(`Intl.PluralRules is not available in this environment.
3218
3225
  Try polyfilling it using "@formatjs/intl-pluralrules"
3219
3226
  `, `MISSING_INTL_API`, o2);
3220
3227
  let e9 = typeof l2 == `bigint` ? Number(l2) : l2, r3 = n2.getPluralRules(t2, { type: c2.pluralType }).select(e9 - (c2.offset || 0));
3221
3228
  a3 = (Object.prototype.hasOwnProperty.call(c2.options, r3) ? c2.options[r3] : void 0) || c2.options.other;
3222
3229
  }
3223
- if (!a3) throw new Ia(c2.value, l2, Object.keys(c2.options), o2);
3230
+ if (!a3) throw new za(c2.value, l2, Object.keys(c2.options), o2);
3224
3231
  let u2 = typeof l2 == `bigint` ? Number(l2) : l2;
3225
- s2.push(...Va(a3.value, t2, n2, r2, i2, u2 - (c2.offset || 0)));
3232
+ s2.push(...Y(a3.value, t2, n2, r2, i2, u2 - (c2.offset || 0)));
3226
3233
  }
3227
3234
  }
3228
3235
  }
3229
- return za(s2);
3236
+ return Ha(s2);
3230
3237
  }
3231
- function Ha(e6, t2) {
3238
+ function Wa(e6, t2) {
3232
3239
  return t2 ? { ...e6, ...t2, ...Object.keys(e6).reduce((n2, r2) => (n2[r2] = { ...e6[r2], ...t2[r2] }, n2), {}) } : e6;
3233
3240
  }
3234
- function Ua(e6, t2) {
3235
- return t2 ? Object.keys(e6).reduce((n2, r2) => (n2[r2] = Ha(e6[r2], t2[r2]), n2), { ...e6 }) : e6;
3241
+ function Ga(e6, t2) {
3242
+ return t2 ? Object.keys(e6).reduce((n2, r2) => (n2[r2] = Wa(e6[r2], t2[r2]), n2), { ...e6 }) : e6;
3236
3243
  }
3237
- function Wa(e6) {
3244
+ function Ka(e6) {
3238
3245
  return { create() {
3239
3246
  return { get(t2) {
3240
3247
  return e6[t2];
@@ -3243,23 +3250,23 @@ function Wa(e6) {
3243
3250
  } };
3244
3251
  } };
3245
3252
  }
3246
- function Ga(e6 = { number: {}, dateTime: {}, pluralRules: {} }) {
3247
- return { getNumberFormat: Ai((...e7) => new Intl.NumberFormat(...e7), { cache: Wa(e6.number), strategy: Vi.variadic }), getDateTimeFormat: Ai((...e7) => new Intl.DateTimeFormat(...e7), { cache: Wa(e6.dateTime), strategy: Vi.variadic }), getPluralRules: Ai((...e7) => new Intl.PluralRules(...e7), { cache: Wa(e6.pluralRules), strategy: Vi.variadic }) };
3253
+ function qa(e6 = { number: {}, dateTime: {}, pluralRules: {} }) {
3254
+ return { getNumberFormat: Ni((...e7) => new Intl.NumberFormat(...e7), { cache: Ka(e6.number), strategy: Wi.variadic }), getDateTimeFormat: Ni((...e7) => new Intl.DateTimeFormat(...e7), { cache: Ka(e6.dateTime), strategy: Wi.variadic }), getPluralRules: Ni((...e7) => new Intl.PluralRules(...e7), { cache: Ka(e6.pluralRules), strategy: Wi.variadic }) };
3248
3255
  }
3249
- var Ka = class e5 {
3256
+ var Ja = class e5 {
3250
3257
  constructor(t2, n2 = e5.defaultLocale, r2, i2) {
3251
3258
  if (this.formatterCache = { number: {}, dateTime: {}, pluralRules: {} }, this.format = (e6) => {
3252
3259
  let t3 = this.formatToParts(e6);
3253
3260
  if (t3.length === 1) return t3[0].value;
3254
3261
  let n3 = t3.reduce((e7, t4) => (!e7.length || t4.type !== 0 || typeof e7[e7.length - 1] != `string` ? e7.push(t4.value) : e7[e7.length - 1] += t4.value, e7), []);
3255
3262
  return n3.length <= 1 ? n3[0] || `` : n3;
3256
- }, this.formatToParts = (e6) => Va(this.ast, this.locales, this.formatters, this.formats, e6, void 0, this.message), this.resolvedOptions = () => ({ locale: this.resolvedLocale?.toString() || Intl.NumberFormat.supportedLocalesOf(this.locales)[0] }), this.getAst = () => this.ast, this.locales = n2, this.resolvedLocale = e5.resolveLocale(n2), typeof t2 == `string`) {
3263
+ }, this.formatToParts = (e6) => Y(this.ast, this.locales, this.formatters, this.formats, e6, void 0, this.message), this.resolvedOptions = () => ({ locale: this.resolvedLocale?.toString() || Intl.NumberFormat.supportedLocalesOf(this.locales)[0] }), this.getAst = () => this.ast, this.locales = n2, this.resolvedLocale = e5.resolveLocale(n2), typeof t2 == `string`) {
3257
3264
  if (this.message = t2, !e5.__parse) throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3258
3265
  let { ...n3 } = i2 || {};
3259
3266
  this.ast = e5.__parse(t2, { ...n3, locale: this.resolvedLocale });
3260
3267
  } else this.ast = t2;
3261
3268
  if (!Array.isArray(this.ast)) throw TypeError(`A message must be provided as a String or AST.`);
3262
- this.formats = Ua(e5.formats, r2), this.formatters = i2 && i2.formatters || Ga(this.formatterCache);
3269
+ this.formats = Ga(e5.formats, r2), this.formatters = i2 && i2.formatters || qa(this.formatterCache);
3263
3270
  }
3264
3271
  static {
3265
3272
  this.memoizedDefaultLocale = null;
@@ -3275,14 +3282,14 @@ var Ka = class e5 {
3275
3282
  };
3276
3283
  }
3277
3284
  static {
3278
- this.__parse = Pa;
3285
+ this.__parse = La;
3279
3286
  }
3280
3287
  static {
3281
3288
  this.formats = { number: { integer: { maximumFractionDigits: 0 }, currency: { style: `currency` }, percent: { style: `percent` } }, date: { short: { month: `numeric`, day: `numeric`, year: `2-digit` }, medium: { month: `short`, day: `numeric`, year: `numeric` }, long: { month: `long`, day: `numeric`, year: `numeric` }, full: { weekday: `long`, month: `long`, day: `numeric`, year: `numeric` } }, time: { short: { hour: `numeric`, minute: `numeric` }, medium: { hour: `numeric`, minute: `numeric`, second: `numeric` }, long: { hour: `numeric`, minute: `numeric`, second: `numeric`, timeZoneName: `short` }, full: { hour: `numeric`, minute: `numeric`, second: `numeric`, timeZoneName: `short` } } };
3282
3289
  }
3283
3290
  };
3284
- var qa = [`__proto__`, `constructor`, `prototype`];
3285
- function Ja(e6, t2, n2) {
3291
+ var Ya = [`__proto__`, `constructor`, `prototype`];
3292
+ function Xa(e6, t2, n2) {
3286
3293
  function r2(e7) {
3287
3294
  return e7 && e7.indexOf(`###`) > -1 ? e7.replace(/###/g, `.`) : e7;
3288
3295
  }
@@ -3292,49 +3299,49 @@ function Ja(e6, t2, n2) {
3292
3299
  for (var a2 = typeof t2 == `string` ? t2.split(`.`) : [].concat(t2); a2.length > 1; ) {
3293
3300
  if (i2()) return {};
3294
3301
  var o2 = r2(a2.shift());
3295
- if (qa.indexOf(o2) > -1) return {};
3302
+ if (Ya.indexOf(o2) > -1) return {};
3296
3303
  !e6[o2] && n2 && (e6[o2] = new n2()), e6 = e6[o2];
3297
3304
  }
3298
3305
  if (i2()) return {};
3299
3306
  var s2 = r2(a2.shift());
3300
- return qa.indexOf(s2) > -1 ? {} : { obj: e6, k: s2 };
3307
+ return Ya.indexOf(s2) > -1 ? {} : { obj: e6, k: s2 };
3301
3308
  }
3302
- function Ya(e6, t2, n2) {
3303
- var r2 = Ja(e6, t2, Object), i2 = r2.obj, a2 = r2.k;
3309
+ function Za(e6, t2, n2) {
3310
+ var r2 = Xa(e6, t2, Object), i2 = r2.obj, a2 = r2.k;
3304
3311
  i2 !== void 0 && (i2[a2] = n2);
3305
3312
  }
3306
- function Xa(e6, t2) {
3307
- var n2 = Ja(e6, t2), r2 = n2.obj, i2 = n2.k;
3313
+ function Qa(e6, t2) {
3314
+ var n2 = Xa(e6, t2), r2 = n2.obj, i2 = n2.k;
3308
3315
  if (r2) return r2[i2];
3309
3316
  }
3310
- function Za(e6) {
3317
+ function $a(e6) {
3311
3318
  return [...arguments].slice(1).forEach(function(t2) {
3312
3319
  if (t2) for (var n2 = 0, r2 = Object.keys(t2); n2 < r2.length; n2++) {
3313
3320
  var i2 = r2[n2];
3314
- qa.indexOf(i2) > -1 || e6[i2] === void 0 && (e6[i2] = t2[i2]);
3321
+ Ya.indexOf(i2) > -1 || e6[i2] === void 0 && (e6[i2] = t2[i2]);
3315
3322
  }
3316
3323
  }), e6;
3317
3324
  }
3318
- function Qa(e6, t2) {
3319
- return ro(e6) || no(e6, t2) || eo(e6, t2) || $a();
3325
+ function eo(e6, t2) {
3326
+ return ao(e6) || io(e6, t2) || no(e6, t2) || to();
3320
3327
  }
3321
- function $a() {
3328
+ function to() {
3322
3329
  throw TypeError(`Invalid attempt to destructure non-iterable instance.
3323
3330
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
3324
3331
  }
3325
- function eo(e6, t2) {
3332
+ function no(e6, t2) {
3326
3333
  if (e6) {
3327
- if (typeof e6 == `string`) return to(e6, t2);
3334
+ if (typeof e6 == `string`) return ro(e6, t2);
3328
3335
  var n2 = {}.toString.call(e6).slice(8, -1);
3329
- return n2 === `Object` && e6.constructor && (n2 = e6.constructor.name), n2 === `Map` || n2 === `Set` ? Array.from(e6) : n2 === `Arguments` || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2) ? to(e6, t2) : void 0;
3336
+ return n2 === `Object` && e6.constructor && (n2 = e6.constructor.name), n2 === `Map` || n2 === `Set` ? Array.from(e6) : n2 === `Arguments` || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2) ? ro(e6, t2) : void 0;
3330
3337
  }
3331
3338
  }
3332
- function to(e6, t2) {
3339
+ function ro(e6, t2) {
3333
3340
  (t2 == null || t2 > e6.length) && (t2 = e6.length);
3334
3341
  for (var n2 = 0, r2 = Array(t2); n2 < t2; n2++) r2[n2] = e6[n2];
3335
3342
  return r2;
3336
3343
  }
3337
- function no(e6, t2) {
3344
+ function io(e6, t2) {
3338
3345
  var n2 = e6 == null ? null : typeof Symbol < `u` && e6[Symbol.iterator] || e6[`@@iterator`];
3339
3346
  if (n2 != null) {
3340
3347
  var r2, i2, a2, o2, s2 = [], c2 = true, l2 = false;
@@ -3355,10 +3362,10 @@ function no(e6, t2) {
3355
3362
  return s2;
3356
3363
  }
3357
3364
  }
3358
- function ro(e6) {
3365
+ function ao(e6) {
3359
3366
  if (Array.isArray(e6)) return e6;
3360
3367
  }
3361
- function io(e6, t2) {
3368
+ function oo(e6, t2) {
3362
3369
  var n2 = Object.keys(e6);
3363
3370
  if (Object.getOwnPropertySymbols) {
3364
3371
  var r2 = Object.getOwnPropertySymbols(e6);
@@ -3368,37 +3375,37 @@ function io(e6, t2) {
3368
3375
  }
3369
3376
  return n2;
3370
3377
  }
3371
- function ao(e6) {
3378
+ function X(e6) {
3372
3379
  for (var t2 = 1; t2 < arguments.length; t2++) {
3373
3380
  var n2 = arguments[t2] == null ? {} : arguments[t2];
3374
- t2 % 2 ? io(Object(n2), true).forEach(function(t3) {
3375
- oo(e6, t3, n2[t3]);
3376
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e6, Object.getOwnPropertyDescriptors(n2)) : io(Object(n2)).forEach(function(t3) {
3381
+ t2 % 2 ? oo(Object(n2), true).forEach(function(t3) {
3382
+ so(e6, t3, n2[t3]);
3383
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e6, Object.getOwnPropertyDescriptors(n2)) : oo(Object(n2)).forEach(function(t3) {
3377
3384
  Object.defineProperty(e6, t3, Object.getOwnPropertyDescriptor(n2, t3));
3378
3385
  });
3379
3386
  }
3380
3387
  return e6;
3381
3388
  }
3382
- function oo(e6, t2, n2) {
3383
- return (t2 = uo(t2)) in e6 ? Object.defineProperty(e6, t2, { value: n2, enumerable: true, configurable: true, writable: true }) : e6[t2] = n2, e6;
3389
+ function so(e6, t2, n2) {
3390
+ return (t2 = fo(t2)) in e6 ? Object.defineProperty(e6, t2, { value: n2, enumerable: true, configurable: true, writable: true }) : e6[t2] = n2, e6;
3384
3391
  }
3385
- function so(e6, t2) {
3392
+ function co(e6, t2) {
3386
3393
  if (!(e6 instanceof t2)) throw TypeError(`Cannot call a class as a function`);
3387
3394
  }
3388
- function co(e6, t2) {
3395
+ function lo(e6, t2) {
3389
3396
  for (var n2 = 0; n2 < t2.length; n2++) {
3390
3397
  var r2 = t2[n2];
3391
- r2.enumerable = r2.enumerable || false, r2.configurable = true, `value` in r2 && (r2.writable = true), Object.defineProperty(e6, uo(r2.key), r2);
3398
+ r2.enumerable = r2.enumerable || false, r2.configurable = true, `value` in r2 && (r2.writable = true), Object.defineProperty(e6, fo(r2.key), r2);
3392
3399
  }
3393
3400
  }
3394
- function lo(e6, t2, n2) {
3395
- return t2 && co(e6.prototype, t2), n2 && co(e6, n2), Object.defineProperty(e6, "prototype", { writable: false }), e6;
3401
+ function uo(e6, t2, n2) {
3402
+ return t2 && lo(e6.prototype, t2), n2 && lo(e6, n2), Object.defineProperty(e6, "prototype", { writable: false }), e6;
3396
3403
  }
3397
- function uo(e6) {
3398
- var t2 = fo(e6, `string`);
3404
+ function fo(e6) {
3405
+ var t2 = po(e6, `string`);
3399
3406
  return Z(t2) == `symbol` ? t2 : t2 + ``;
3400
3407
  }
3401
- function fo(e6, t2) {
3408
+ function po(e6, t2) {
3402
3409
  if (Z(e6) != `object` || !e6) return e6;
3403
3410
  var n2 = e6[Symbol.toPrimitive];
3404
3411
  if (n2 !== void 0) {
@@ -3416,53 +3423,53 @@ function Z(e6) {
3416
3423
  return e7 && typeof Symbol == `function` && e7.constructor === Symbol && e7 !== Symbol.prototype ? `symbol` : typeof e7;
3417
3424
  }, Z(e6);
3418
3425
  }
3419
- var po = `https://www.i18next.com/how-to/using-icu-or-mf2`;
3420
- var mo = [`zero`, `one`, `two`, `few`, `many`, `other`];
3421
- function ho() {
3426
+ var mo = `https://www.i18next.com/how-to/using-icu-or-mf2`;
3427
+ var ho = [`zero`, `one`, `two`, `few`, `many`, `other`];
3428
+ function go() {
3422
3429
  return { memoize: true, memoizeFallback: false, bindI18n: ``, bindI18nStore: ``, parseErrorHandler: function(e6, t2, n2, r2) {
3423
3430
  return n2;
3424
3431
  }, parseLngForICU: function(e6) {
3425
3432
  return e6;
3426
3433
  }, escapeVariables: false };
3427
3434
  }
3428
- function go(e6, t2, n2, r2) {
3435
+ function _o(e6, t2, n2, r2) {
3429
3436
  return n2 && t2 && Z(t2) === `object` ? `${r2} resolved to an object or array, but i18next-icu does not support returnObjects or joinArrays and returns the raw value unformatted.` : n2 && typeof t2 == `string` && t2.indexOf(`{{`) > -1 ? `${r2} could not be parsed (${e6.message}). It contains "{{": i18next interpolation like {{name}} does not work with ICU, use {name}.` : `${r2} could not be ${n2 ? `parsed` : `formatted`}: ${e6.message}`;
3430
3437
  }
3431
- var _o = function() {
3438
+ var vo = function() {
3432
3439
  function e6(t2) {
3433
- so(this, e6), this.type = `i18nFormat`, this.mem = {}, this.warned = /* @__PURE__ */ new Set(), this.init(null, t2);
3440
+ co(this, e6), this.type = `i18nFormat`, this.mem = {}, this.warned = /* @__PURE__ */ new Set(), this.init(null, t2);
3434
3441
  }
3435
- return lo(e6, [{ key: `init`, value: function(e7, t2) {
3442
+ return uo(e6, [{ key: `init`, value: function(e7, t2) {
3436
3443
  var n2 = this, r2 = e7 && e7.options && e7.options.i18nFormat || {};
3437
- if (this.options = Za(r2, t2, this.options || {}, ho()), this.formats = this.options.formats, e7) {
3444
+ if (this.options = $a(r2, t2, this.options || {}, go()), this.formats = this.options.formats, e7) {
3438
3445
  var i2 = this.options, a2 = i2.bindI18n, o2 = i2.bindI18nStore, s2 = i2.memoize;
3439
- e7.IntlMessageFormat = Ka, e7.ICU = this, this.i18next = e7, this.debug = !!(e7.options && e7.options.debug), this.debug && e7.options.interpolation && e7.options.interpolation.escapeValue !== false && !this.options.escapeVariables && this.warn(`interpolation.escapeValue is not applied, values are inserted without HTML escaping. Set the i18next-icu option escapeVariables: true to escape them, or interpolation.escapeValue: false if your output is escaped elsewhere (e.g. by React).`), s2 && (a2 && e7.on(a2, function() {
3446
+ e7.IntlMessageFormat = Ja, e7.ICU = this, this.i18next = e7, this.debug = !!(e7.options && e7.options.debug), this.debug && e7.options.interpolation && e7.options.interpolation.escapeValue !== false && !this.options.escapeVariables && this.warn(`interpolation.escapeValue is not applied, values are inserted without HTML escaping. Set the i18next-icu option escapeVariables: true to escape them, or interpolation.escapeValue: false if your output is escaped elsewhere (e.g. by React).`), s2 && (a2 && e7.on(a2, function() {
3440
3447
  return n2.clearCache();
3441
3448
  }), o2 && e7.store.on(o2, function() {
3442
3449
  return n2.clearCache();
3443
3450
  }));
3444
3451
  }
3445
3452
  } }, { key: `addUserDefinedFormats`, value: function(e7) {
3446
- this.formats = this.formats ? ao(ao({}, this.formats), e7) : e7, this.clearCache();
3453
+ this.formats = this.formats ? X(X({}, this.formats), e7) : e7, this.clearCache();
3447
3454
  } }, { key: `parse`, value: function(e7, t2, n2, r2, i2, a2) {
3448
3455
  var o2 = a2 && a2.resolved && a2.resolved.res, s2 = this.options.memoize && [n2, r2, i2], c2;
3449
3456
  if (this.options.memoize) {
3450
- var l2 = Xa(this.mem, s2);
3457
+ var l2 = Qa(this.mem, s2);
3451
3458
  l2 && l2.res === e7 && (c2 = l2.fc);
3452
3459
  }
3453
3460
  try {
3454
- c2 || (this.debug && typeof e7 == `string` && e7.indexOf(`$t(`) > -1 && this.firstTime(`nesting ${n2} ${r2} ${i2}`) && this.warn(`key "${i2}" (${n2}/${r2}) contains "$t(", but i18next-icu does not support nesting, the text is output as is.`), c2 = new Ka(e7, this.options.parseLngForICU(n2), this.formats, { ignoreTag: true }), this.options.memoize && (this.options.memoizeFallback || !a2 || o2) && Ya(this.mem, s2, { res: e7, fc: c2 }));
3455
- var u2 = t2 && t2.replace && Z(t2.replace) === `object` ? ao(ao({}, t2), t2.replace) : t2;
3461
+ c2 || (this.debug && typeof e7 == `string` && e7.indexOf(`$t(`) > -1 && this.firstTime(`nesting ${n2} ${r2} ${i2}`) && this.warn(`key "${i2}" (${n2}/${r2}) contains "$t(", but i18next-icu does not support nesting, the text is output as is.`), c2 = new Ja(e7, this.options.parseLngForICU(n2), this.formats, { ignoreTag: true }), this.options.memoize && (this.options.memoizeFallback || !a2 || o2) && Za(this.mem, s2, { res: e7, fc: c2 }));
3462
+ var u2 = t2 && t2.replace && Z(t2.replace) === `object` ? X(X({}, t2), t2.replace) : t2;
3456
3463
  return c2.format(this.escapeVariableValues(u2));
3457
3464
  } catch (a3) {
3458
- return this.debug && this.firstTime(`error ${n2} ${r2} ${i2}`) && this.warn(go(a3, e7, !c2, `key "${i2}" (${n2}/${r2})`)), this.options.parseErrorHandler(a3, i2, e7, t2);
3465
+ return this.debug && this.firstTime(`error ${n2} ${r2} ${i2}`) && this.warn(_o(a3, e7, !c2, `key "${i2}" (${n2}/${r2})`)), this.options.parseErrorHandler(a3, i2, e7, t2);
3459
3466
  }
3460
3467
  } }, { key: `addLookupKeys`, value: function(e7, t2, n2, r2, i2) {
3461
3468
  return this.debug && i2 && this.checkSuffixKeys(t2, n2, r2, i2), e7;
3462
3469
  } }, { key: `checkSuffixKeys`, value: function(e7, t2, n2, r2) {
3463
3470
  var i2 = r2.count, a2 = r2.context, o2 = this.i18next.options, s2 = o2.pluralSeparator, c2 = s2 === void 0 ? `_` : s2, l2 = o2.contextSeparator, u2 = l2 === void 0 ? `_` : l2, d2 = this.i18next.services.resourceStore, f2 = `key "${e7}" (${t2}/${n2})`;
3464
3471
  if (i2 !== void 0 && this.firstTime(`plural ${t2} ${n2} ${e7}`)) {
3465
- var p2 = mo.concat(mo.map(function(e8) {
3472
+ var p2 = ho.concat(ho.map(function(e8) {
3466
3473
  return `ordinal${c2}${e8}`;
3467
3474
  })).map(function(t3) {
3468
3475
  return `${e7}${c2}${t3}`;
@@ -3476,33 +3483,33 @@ var _o = function() {
3476
3483
  } }, { key: `firstTime`, value: function(e7) {
3477
3484
  return !this.warned.has(e7) && (this.warned.add(e7), true);
3478
3485
  } }, { key: `warn`, value: function(e7) {
3479
- this.i18next.services.logger.warn(`i18next-icu: ${e7} See ${po}`);
3486
+ this.i18next.services.logger.warn(`i18next-icu: ${e7} See ${mo}`);
3480
3487
  } }, { key: `clearCache`, value: function() {
3481
3488
  this.mem = {};
3482
3489
  } }, { key: `escapeVariableValues`, value: function(e7) {
3483
3490
  if (!this.options.escapeVariables || !e7 || Z(e7) !== `object`) return e7;
3484
3491
  for (var t2 = {}, n2 = 0, r2 = Object.entries(e7); n2 < r2.length; n2++) {
3485
- var i2 = Qa(r2[n2], 2), a2 = i2[0], o2 = i2[1];
3492
+ var i2 = eo(r2[n2], 2), a2 = i2[0], o2 = i2[1];
3486
3493
  t2[a2] = typeof o2 == `string` ? o2.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`) : o2;
3487
3494
  }
3488
3495
  return t2;
3489
3496
  } }]), e6;
3490
3497
  }();
3491
- _o.type = `i18nFormat`;
3492
- function vo({ icuOptions: e6 = {}, ...t2 }) {
3498
+ vo.type = `i18nFormat`;
3499
+ function yo({ icuOptions: e6 = {}, ...t2 }) {
3493
3500
  let { parseErrorHandler: n2 = void 0 } = t2;
3494
- return ki(t2, { icu: new _o({ parseErrorHandler: n2, bindI18n: t2.bindI18n, ...e6 }) });
3501
+ return Mi(t2, { icu: new vo({ parseErrorHandler: n2, bindI18n: t2.bindI18n, ...e6 }) });
3495
3502
  }
3496
- var yo = (e6, t2, n2, r2) => {
3503
+ var bo = (e6, t2, n2, r2) => {
3497
3504
  let i2 = [n2, { code: t2, ...r2 || {} }];
3498
3505
  if (e6?.services?.logger?.forward) return e6.services.logger.forward(i2, `warn`, `react-i18next::`, true);
3499
3506
  Q(i2[0]) && (i2[0] = `react-i18next:: ${i2[0]}`), e6?.services?.logger?.warn ? e6.services.logger.warn(...i2) : console?.warn && console.warn(...i2);
3500
3507
  };
3501
- var bo = {};
3502
- var xo = (e6, t2, n2, r2) => {
3503
- Q(n2) && bo[n2] || (Q(n2) && (bo[n2] = /* @__PURE__ */ new Date()), yo(e6, t2, n2, r2));
3508
+ var xo = {};
3509
+ var So = (e6, t2, n2, r2) => {
3510
+ Q(n2) && xo[n2] || (Q(n2) && (xo[n2] = /* @__PURE__ */ new Date()), bo(e6, t2, n2, r2));
3504
3511
  };
3505
- var So = (e6, t2) => () => {
3512
+ var Co = (e6, t2) => () => {
3506
3513
  if (e6.isInitialized) t2();
3507
3514
  else {
3508
3515
  let n2 = () => {
@@ -3513,29 +3520,29 @@ var So = (e6, t2) => () => {
3513
3520
  e6.on(`initialized`, n2);
3514
3521
  }
3515
3522
  };
3516
- var Co = (e6, t2, n2) => {
3517
- e6.loadNamespaces(t2, So(e6, n2));
3523
+ var wo = (e6, t2, n2) => {
3524
+ e6.loadNamespaces(t2, Co(e6, n2));
3518
3525
  };
3519
- var wo = (e6, t2, n2, r2) => {
3520
- if (Q(n2) && (n2 = [n2]), e6.options.preload && e6.options.preload.indexOf(t2) > -1) return Co(e6, n2, r2);
3526
+ var To = (e6, t2, n2, r2) => {
3527
+ if (Q(n2) && (n2 = [n2]), e6.options.preload && e6.options.preload.indexOf(t2) > -1) return wo(e6, n2, r2);
3521
3528
  n2.forEach((t3) => {
3522
3529
  e6.options.ns.indexOf(t3) < 0 && e6.options.ns.push(t3);
3523
- }), e6.loadLanguages(t2, So(e6, r2));
3530
+ }), e6.loadLanguages(t2, Co(e6, r2));
3524
3531
  };
3525
- var To = (e6, t2, n2 = {}) => !t2.languages || !t2.languages.length ? (xo(t2, `NO_LANGUAGES`, `i18n.languages were undefined or empty`, { languages: t2.languages }), true) : t2.hasLoadedNamespace(e6, { lng: n2.lng, precheck: (t3, r2) => {
3532
+ var Eo = (e6, t2, n2 = {}) => !t2.languages || !t2.languages.length ? (So(t2, `NO_LANGUAGES`, `i18n.languages were undefined or empty`, { languages: t2.languages }), true) : t2.hasLoadedNamespace(e6, { lng: n2.lng, precheck: (t3, r2) => {
3526
3533
  if (n2.bindI18n && n2.bindI18n.indexOf(`languageChanging`) > -1 && t3.services.backendConnector.backend && t3.isLanguageChangingTo && !r2(t3.isLanguageChangingTo, e6)) return false;
3527
3534
  } });
3528
3535
  var Q = (e6) => typeof e6 == `string`;
3529
- var Eo = (e6) => typeof e6 == `object` && !!e6;
3530
- var Do = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
3531
- var Oo = { "&amp;": `&`, "&#38;": `&`, "&lt;": `<`, "&#60;": `<`, "&gt;": `>`, "&#62;": `>`, "&apos;": `'`, "&#39;": `'`, "&quot;": `"`, "&#34;": `"`, "&nbsp;": ` `, "&#160;": ` `, "&copy;": `\xA9`, "&#169;": `\xA9`, "&reg;": `\xAE`, "&#174;": `\xAE`, "&hellip;": `\u2026`, "&#8230;": `\u2026`, "&#x2F;": `/`, "&#47;": `/` };
3532
- var ko = (e6) => Oo[e6];
3533
- var Ao = { bindI18n: `languageChanged`, bindI18nStore: ``, transEmptyNodeValue: ``, transSupportBasicHtmlNodes: true, transWrapTextNodes: ``, transKeepBasicHtmlNodesFor: [`br`, `strong`, `i`, `p`], useSuspense: true, unescape: (e6) => e6.replace(Do, ko) };
3534
- var jo = () => Ao;
3535
- var Mo;
3536
- var No = () => Mo;
3537
- var Po = t();
3538
- var Fo = class {
3536
+ var Do = (e6) => typeof e6 == `object` && !!e6;
3537
+ var Oo = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
3538
+ var ko = { "&amp;": `&`, "&#38;": `&`, "&lt;": `<`, "&#60;": `<`, "&gt;": `>`, "&#62;": `>`, "&apos;": `'`, "&#39;": `'`, "&quot;": `"`, "&#34;": `"`, "&nbsp;": ` `, "&#160;": ` `, "&copy;": `\xA9`, "&#169;": `\xA9`, "&reg;": `\xAE`, "&#174;": `\xAE`, "&hellip;": `\u2026`, "&#8230;": `\u2026`, "&#x2F;": `/`, "&#47;": `/` };
3539
+ var Ao = (e6) => ko[e6];
3540
+ var jo = { bindI18n: `languageChanged`, bindI18nStore: ``, transEmptyNodeValue: ``, transSupportBasicHtmlNodes: true, transWrapTextNodes: ``, transKeepBasicHtmlNodesFor: [`br`, `strong`, `i`, `p`], useSuspense: true, unescape: (e6) => e6.replace(Oo, Ao) };
3541
+ var Mo = () => jo;
3542
+ var No;
3543
+ var Po = () => No;
3544
+ var Fo = t();
3545
+ var Io = class {
3539
3546
  constructor() {
3540
3547
  this.usedNamespaces = {};
3541
3548
  }
@@ -3548,32 +3555,32 @@ var Fo = class {
3548
3555
  return Object.keys(this.usedNamespaces);
3549
3556
  }
3550
3557
  };
3551
- var Io = (e6, t2) => {
3558
+ var Lo = (e6, t2) => {
3552
3559
  let n2 = c();
3553
3560
  return o(() => {
3554
3561
  n2.current = t2 ? n2.current : e6;
3555
3562
  }, [e6, t2]), n2.current;
3556
3563
  };
3557
- var Lo = (e6, t2, n2, r2) => e6.getFixedT(t2, n2, r2);
3558
- var Ro = (e6, t2, n2, r2) => i(Lo(e6, t2, n2, r2), [e6, t2, n2, r2]);
3559
- var zo = (e6, t2 = {}) => {
3560
- let { i18n: n2 } = t2, { i18n: r2, defaultNS: i2 } = a(Po) || {}, s2 = n2 || r2 || No();
3561
- if (s2 && !s2.reportNamespaces && (s2.reportNamespaces = new Fo()), !s2) {
3562
- xo(s2, `NO_I18NEXT_INSTANCE`, `useTranslation: You will need to pass in an i18next instance by using initReactI18next`);
3563
- let e7 = (e8, t4) => Q(t4) ? t4 : Eo(t4) && Q(t4.defaultValue) ? t4.defaultValue : Array.isArray(e8) ? e8[e8.length - 1] : e8, t3 = [e7, {}, false];
3564
+ var Ro = (e6, t2, n2, r2) => e6.getFixedT(t2, n2, r2);
3565
+ var zo = (e6, t2, n2, r2) => i(Ro(e6, t2, n2, r2), [e6, t2, n2, r2]);
3566
+ var Bo = (e6, t2 = {}) => {
3567
+ let { i18n: n2 } = t2, { i18n: r2, defaultNS: i2 } = a(Fo) || {}, s2 = n2 || r2 || Po();
3568
+ if (s2 && !s2.reportNamespaces && (s2.reportNamespaces = new Io()), !s2) {
3569
+ So(s2, `NO_I18NEXT_INSTANCE`, `useTranslation: You will need to pass in an i18next instance by using initReactI18next`);
3570
+ let e7 = (e8, t4) => Q(t4) ? t4 : Do(t4) && Q(t4.defaultValue) ? t4.defaultValue : Array.isArray(e8) ? e8[e8.length - 1] : e8, t3 = [e7, {}, false];
3564
3571
  return t3.t = e7, t3.i18n = {}, t3.ready = false, t3;
3565
3572
  }
3566
- s2.options.react?.wait && xo(s2, `DEPRECATED_OPTION`, `useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.`);
3567
- let u2 = { ...jo(), ...s2.options.react, ...t2 }, { useSuspense: d2, keyPrefix: f2 } = u2, p2 = e6 || i2 || s2.options?.defaultNS;
3573
+ s2.options.react?.wait && So(s2, `DEPRECATED_OPTION`, `useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.`);
3574
+ let u2 = { ...Mo(), ...s2.options.react, ...t2 }, { useSuspense: d2, keyPrefix: f2 } = u2, p2 = e6 || i2 || s2.options?.defaultNS;
3568
3575
  p2 = Q(p2) ? [p2] : p2 || [`translation`], s2.reportNamespaces.addUsedNamespaces?.(p2);
3569
- let m2 = (s2.isInitialized || s2.initializedStoreOnce) && p2.every((e7) => To(e7, s2, u2)), h2 = Ro(s2, t2.lng || null, u2.nsMode === `fallback` ? p2 : p2[0], f2), g2 = () => h2, _2 = () => Lo(s2, t2.lng || null, u2.nsMode === `fallback` ? p2 : p2[0], f2), [v2, y2] = l(g2), b2 = p2.join();
3576
+ let m2 = (s2.isInitialized || s2.initializedStoreOnce) && p2.every((e7) => Eo(e7, s2, u2)), h2 = zo(s2, t2.lng || null, u2.nsMode === `fallback` ? p2 : p2[0], f2), g2 = () => h2, _2 = () => Ro(s2, t2.lng || null, u2.nsMode === `fallback` ? p2 : p2[0], f2), [v2, y2] = l(g2), b2 = p2.join();
3570
3577
  t2.lng && (b2 = `${t2.lng}${b2}`);
3571
- let x2 = Io(b2), S2 = c(true);
3578
+ let x2 = Lo(b2), S2 = c(true);
3572
3579
  o(() => {
3573
3580
  let { bindI18n: e7, bindI18nStore: n3 } = u2;
3574
- S2.current = true, !m2 && !d2 && (t2.lng ? wo(s2, t2.lng, p2, () => {
3581
+ S2.current = true, !m2 && !d2 && (t2.lng ? To(s2, t2.lng, p2, () => {
3575
3582
  S2.current && y2(_2);
3576
- }) : Co(s2, p2, () => {
3583
+ }) : wo(s2, p2, () => {
3577
3584
  S2.current && y2(_2);
3578
3585
  })), m2 && x2 && x2 !== b2 && S2.current && y2(_2);
3579
3586
  let r3 = () => {
@@ -3588,18 +3595,18 @@ var zo = (e6, t2 = {}) => {
3588
3595
  let C2 = [v2, s2, m2];
3589
3596
  if (C2.t = v2, C2.i18n = s2, C2.ready = m2, m2 || !m2 && !d2) return C2;
3590
3597
  throw new Promise((e7) => {
3591
- t2.lng ? wo(s2, t2.lng, p2, () => e7()) : Co(s2, p2, () => e7());
3598
+ t2.lng ? To(s2, t2.lng, p2, () => e7()) : wo(s2, p2, () => e7());
3592
3599
  });
3593
3600
  };
3594
- function Bo({ i18n: e6, defaultNS: t2, children: r2 }) {
3601
+ function Vo({ i18n: e6, defaultNS: t2, children: r2 }) {
3595
3602
  let i2 = s(() => ({ i18n: e6, defaultNS: t2 }), [e6, t2]);
3596
- return n(Po.Provider, { value: i2 }, r2);
3603
+ return n(Fo.Provider, { value: i2 }, r2);
3597
3604
  }
3598
- var Vo = I(`@wix/site-service-renderer-configuration`);
3599
- var Ho = () => {
3605
+ var Ho = I(`@wix/site-service-renderer-configuration`);
3606
+ var Uo = () => {
3600
3607
  let e6, t2;
3601
3608
  try {
3602
- e6 = u(Vo).languageCode;
3609
+ e6 = u(Ho).languageCode;
3603
3610
  } catch {
3604
3611
  }
3605
3612
  try {
@@ -3608,77 +3615,77 @@ var Ho = () => {
3608
3615
  }
3609
3616
  return e6 || t2;
3610
3617
  };
3611
- var Uo = `wix-warmup-data`;
3612
- var Wo = null;
3613
- function Go(e6) {
3618
+ var Wo = `wix-warmup-data`;
3619
+ var Go = null;
3620
+ function Ko(e6) {
3614
3621
  if (typeof document < `u`) try {
3615
- let t2 = document.getElementById(Uo)?.textContent;
3616
- return t2 ? (Wo?.text !== t2 && (Wo = { text: t2, data: JSON.parse(t2).builderComponentsWarmupData ?? {} }), Wo.data[e6] ?? void 0) : void 0;
3622
+ let t2 = document.getElementById(Wo)?.textContent;
3623
+ return t2 ? (Go?.text !== t2 && (Go = { text: t2, data: JSON.parse(t2).builderComponentsWarmupData ?? {} }), Go.data[e6] ?? void 0) : void 0;
3617
3624
  } catch {
3618
3625
  return;
3619
3626
  }
3620
3627
  }
3621
- var Ko = `blog-builder:i18n`;
3622
- var qo = () => Go(Ko);
3623
- var Jo = /* @__PURE__ */ new Map();
3624
- function Yo(e6, t2) {
3625
- let n2 = Jo.get(e6);
3628
+ var qo = `blog-builder:i18n`;
3629
+ var Jo = () => Ko(qo);
3630
+ var Yo = /* @__PURE__ */ new Map();
3631
+ function Xo(e6, t2) {
3632
+ let n2 = Yo.get(e6);
3626
3633
  if (n2) return n2;
3627
- let r2 = qo(), i2 = r2?.locale === e6 ? r2.messages : void 0, a2 = vo({ locale: e6, useSuspense: true, ...i2 ? { messages: i2 } : { asyncMessagesLoader: t2 } });
3628
- return Jo.set(e6, a2), a2;
3634
+ let r2 = Jo(), i2 = r2?.locale === e6 ? r2.messages : void 0, a2 = yo({ locale: e6, useSuspense: true, ...i2 ? { messages: i2 } : { asyncMessagesLoader: t2 } });
3635
+ return Yo.set(e6, a2), a2;
3629
3636
  }
3630
- var Xo = (e6, t2, n2) => {
3637
+ var Zo = (e6, t2, n2) => {
3631
3638
  let r2 = t2.lastIndexOf(`?`), i2 = e6[r2 === -1 || r2 < t2.lastIndexOf(`/`) ? t2 : t2.slice(0, r2)];
3632
3639
  return i2 ? typeof i2 == `function` ? i2() : Promise.resolve(i2) : new Promise((e7, r3) => {
3633
3640
  (typeof queueMicrotask == `function` ? queueMicrotask : setTimeout)(r3.bind(null, Error(`Unknown variable dynamic import: ` + t2 + (t2.split(`/`).length === n2 ? `` : `. Note that variables only represent file names one level deep.`))));
3634
3641
  });
3635
3642
  };
3636
- var Zo = (e6) => e6.split(`-`)[0] ?? e6;
3637
- Hr({ isDev: false, loadMessages: (e6) => Xo(Object.assign({ "../assets/locale/messages_en.dev.json": () => pn(() => Promise.resolve().then(() => $o), void 0, import.meta.url), "../assets/locale/messages_en.json": () => pn(() => Promise.resolve().then(() => ts), void 0, import.meta.url) }), `../assets/locale/messages_${Zo(e6)}.json`, 4), loadDevMessages: (e6) => Xo(Object.assign({ "../assets/locale/messages_en.dev.json": () => pn(() => Promise.resolve().then(() => $o), void 0, import.meta.url) }), `../assets/locale/messages_${Zo(e6)}.dev.json`, 4) });
3638
- function Qo(e6) {
3639
- let t2 = Ho(), n2 = qo()?.locale ?? t2 ?? `en`;
3640
- return { i18n: Yo(n2, e6), locale: n2 };
3641
- }
3642
- var $o = m({ default: () => es });
3643
- var es = { "post.time-to-read": `{count, plural, one {# min read} other {# min read}}`, "post.view-count": `{count, plural, one {{formatted} view} other {{formatted} views}}`, "post.comment-count": `{count, plural, one {{formatted} comment} other {{formatted} comments}}`, "post.like-count": `{count, plural, one {{formatted} like} other {{formatted} likes}}`, "post-list.empty-state.title": `No posts yet`, "post-list.empty-state.description": `Once posts are published, they will appear here.`, "related-posts.empty-state.title": `No related posts yet`, "related-posts.empty-state.description": `Once more posts are published, they will appear here.`, "post-actions.like": `Like post`, "post-actions.unlike": `Unlike post`, "post-actions.share": `Share post`, "post-actions.share-dialog": `Share post`, "post-actions.link-copied": `Link copied`, "post-actions.copy-manually": `Copy the link below to share this post.`, "post-actions.link-label": `Post link`, "post-actions.copy-link": `Copy link`, "post-actions.close": `Close`, "post-counters.loading-likes": `Loading likes`, "cover-media.play": `Play video`, "cover-media.placeholder-alt": `Post cover image`, "post-comments.loading": `Loading comments\u2026`, "post-comments.no-post": `No post resolved for this URL yet.`, "post-comments.unavailable": `Comments are unavailable \u2014 no app instance.`, "post-comments.demo-notice": `Sample comments are shown while editing. Visitors will see real comments.`, "canvas.post-title": `Post Title`, "canvas.author-name": `Author Name`, "canvas.excerpt": `Share the key idea of your post here. This short summary shows on feed cards and in search results, and tells readers why the post is worth their time.`, "canvas.content": `This is where the full post appears. Write your story here, add images, galleries and video from the dashboard, and use headings and quotes to keep it easy to read.`, "canvas.category": `Category`, "canvas.category-numbered": `Category {number}`, "canvas.tag-numbered": `Tag {number}`, "canvas.author-photo-alt": `Author photo`, "category-header.all-posts": `All Posts` };
3644
- var ts = m({ default: () => rs, title: () => ns });
3645
- var ns = `My App`;
3646
- var rs = { "canvas.category": `Category`, "post-list.empty-state.description": `Once posts are published, they will appear here.`, "canvas.tag-numbered": `Tag {number}`, "cover-media.play": `Play video`, "post-comments.unavailable": `Comments are unavailable \u2014 no app instance.`, "post-counters.loading-likes": `Loading likes`, "post-comments.loading": `Loading comments\u2026`, "post-actions.like": `Like post`, "canvas.content": `This is where the full post appears. Write your story here, add images, galleries and video from the dashboard, and use headings and quotes to keep it easy to read.`, "related-posts.empty-state.title": `No related posts yet`, "post.time-to-read": `{count, plural, one {# min read} other {# min read}}`, "post-actions.link-copied": `Link copied`, "category-header.all-posts": `All Posts`, "post-actions.copy-manually": `Copy the link below to share this post.`, "post-actions.copy-link": `Copy link`, "cover-media.placeholder-alt": `Post cover image`, "post-actions.link-label": `Post link`, "post-list.empty-state.title": `No posts yet`, "post-actions.share-dialog": `Share post`, "canvas.post-title": `Post Title`, "post-actions.unlike": `Unlike post`, "post-comments.no-post": `No post resolved for this URL yet.`, "post.like-count": `{count, plural, one {{formatted} like} other {{formatted} likes}}`, "canvas.category-numbered": `Category {number}`, "post.comment-count": `{count, plural, one {{formatted} comment} other {{formatted} comments}}`, "post-actions.share": `Share post`, "post.view-count": `{count, plural, one {{formatted} view} other {{formatted} views}}`, "post-actions.close": `Close`, "canvas.category-description": `Add a short description of this category so readers know what they will find here. It shows under the category title, above the posts.`, "canvas.author-photo-alt": `Author photo`, "canvas.author-name": `Author Name`, "post-comments.demo-notice": `Sample comments are shown while editing. Visitors will see real comments.`, title: ns, "related-posts.empty-state.description": `Once more posts are published, they will appear here.`, "canvas.excerpt": `Share the key idea of your post here. This short summary shows on feed cards and in search results, and tells readers why the post is worth their time.` };
3647
- var is = Object.assign({ "../assets/locale/messages_en.dev.json": $o, "../assets/locale/messages_en.json": ts });
3648
- var as = (e6, t2) => {
3649
- let n2 = is[`../assets/locale/messages_${Zo(e6)}${t2}.json`];
3643
+ var Qo = (e6) => e6.split(`-`)[0] ?? e6;
3644
+ Ur({ isDev: false, loadMessages: (e6) => Zo(Object.assign({ "../assets/locale/messages_en.dev.json": () => pn(() => Promise.resolve().then(() => es), void 0, import.meta.url), "../assets/locale/messages_en.json": () => pn(() => Promise.resolve().then(() => ns), void 0, import.meta.url) }), `../assets/locale/messages_${Qo(e6)}.json`, 4), loadDevMessages: (e6) => Zo(Object.assign({ "../assets/locale/messages_en.dev.json": () => pn(() => Promise.resolve().then(() => es), void 0, import.meta.url) }), `../assets/locale/messages_${Qo(e6)}.dev.json`, 4) });
3645
+ function $o(e6) {
3646
+ let t2 = Uo(), n2 = Jo()?.locale ?? t2 ?? `en`;
3647
+ return { i18n: Xo(n2, e6), locale: n2 };
3648
+ }
3649
+ var es = m({ default: () => ts });
3650
+ var ts = { "post.time-to-read": `{count, plural, one {# min read} other {# min read}}`, "post.view-count": `{count, plural, one {{formatted} view} other {{formatted} views}}`, "post.comment-count": `{count, plural, one {{formatted} comment} other {{formatted} comments}}`, "post.like-count": `{count, plural, one {{formatted} like} other {{formatted} likes}}`, "post-list.empty-state.title": `No posts yet`, "post-list.empty-state.description": `Once posts are published, they will appear here.`, "related-posts.empty-state.title": `No related posts yet`, "related-posts.empty-state.description": `Once more posts are published, they will appear here.`, "post-actions.like": `Like post`, "post-actions.unlike": `Unlike post`, "post-actions.share": `Share post`, "post-actions.share-dialog": `Share post`, "post-actions.link-copied": `Link copied`, "post-actions.copy-manually": `Copy the link below to share this post.`, "post-actions.link-label": `Post link`, "post-actions.copy-link": `Copy link`, "post-actions.close": `Close`, "post-counters.loading-likes": `Loading likes`, "cover-media.play": `Play video`, "cover-media.placeholder-alt": `Post cover image`, "post-comments.loading": `Loading comments\u2026`, "post-comments.no-post": `No post resolved for this URL yet.`, "post-comments.unavailable": `Comments are unavailable \u2014 no app instance.`, "post-comments.demo-notice": `Sample comments are shown while editing. Visitors will see real comments.`, "canvas.post-title": `Post Title`, "canvas.author-name": `Author Name`, "canvas.excerpt": `Share the key idea of your post here. This short summary shows on feed cards and in search results, and tells readers why the post is worth their time.`, "canvas.content": `This is where the full post appears. Write your story here, add images, galleries and video from the dashboard, and use headings and quotes to keep it easy to read.`, "canvas.category": `Category`, "canvas.category-numbered": `Category {number}`, "canvas.tag-numbered": `Tag {number}`, "canvas.author-photo-alt": `Author photo`, "category-header.all-posts": `All Posts` };
3651
+ var ns = m({ default: () => is, title: () => rs });
3652
+ var rs = `My App`;
3653
+ var is = { "canvas.category": `Category`, "post-list.empty-state.description": `Once posts are published, they will appear here.`, "canvas.tag-numbered": `Tag {number}`, "cover-media.play": `Play video`, "post-comments.unavailable": `Comments are unavailable \u2014 no app instance.`, "post-counters.loading-likes": `Loading likes`, "post-comments.loading": `Loading comments\u2026`, "post-actions.like": `Like post`, "canvas.content": `This is where the full post appears. Write your story here, add images, galleries and video from the dashboard, and use headings and quotes to keep it easy to read.`, "related-posts.empty-state.title": `No related posts yet`, "post.time-to-read": `{count, plural, one {# min read} other {# min read}}`, "post-actions.link-copied": `Link copied`, "category-header.all-posts": `All Posts`, "post-actions.copy-manually": `Copy the link below to share this post.`, "post-actions.copy-link": `Copy link`, "cover-media.placeholder-alt": `Post cover image`, "post-actions.link-label": `Post link`, "post-list.empty-state.title": `No posts yet`, "post-actions.share-dialog": `Share post`, "canvas.post-title": `Post Title`, "post-actions.unlike": `Unlike post`, "post-comments.no-post": `No post resolved for this URL yet.`, "post.like-count": `{count, plural, one {{formatted} like} other {{formatted} likes}}`, "canvas.category-numbered": `Category {number}`, "post.comment-count": `{count, plural, one {{formatted} comment} other {{formatted} comments}}`, "post-actions.share": `Share post`, "post.view-count": `{count, plural, one {{formatted} view} other {{formatted} views}}`, "post-actions.close": `Close`, "canvas.category-description": `Add a short description of this category so readers know what they will find here. It shows under the category title, above the posts.`, "canvas.author-photo-alt": `Author photo`, "canvas.author-name": `Author Name`, "post-comments.demo-notice": `Sample comments are shown while editing. Visitors will see real comments.`, title: rs, "related-posts.empty-state.description": `Once more posts are published, they will appear here.`, "canvas.excerpt": `Share the key idea of your post here. This short summary shows on feed cards and in search results, and tells readers why the post is worth their time.` };
3654
+ var as = Object.assign({ "../assets/locale/messages_en.dev.json": es, "../assets/locale/messages_en.json": ns });
3655
+ var os = (e6, t2) => {
3656
+ let n2 = as[`../assets/locale/messages_${Qo(e6)}${t2}.json`];
3650
3657
  return n2 ? Promise.resolve(n2) : Promise.reject(Error(`no messages file`));
3651
3658
  };
3652
- var os = Hr({ isDev: false, loadMessages: (e6) => as(e6, ``), loadDevMessages: (e6) => as(e6, `.dev`) });
3653
- var ss = (e6, t2, n2) => typeof e6 != `number` || !Number.isFinite(e6) || e6 < 0 ? `` : new Intl.NumberFormat(n2, t2 === `compact` ? { notation: `compact`, maximumFractionDigits: 1 } : void 0).format(e6);
3659
+ var ss = Ur({ isDev: false, loadMessages: (e6) => os(e6, ``), loadDevMessages: (e6) => os(e6, `.dev`) });
3660
+ var cs = (e6, t2, n2) => typeof e6 != `number` || !Number.isFinite(e6) || e6 < 0 ? `` : new Intl.NumberFormat(n2, t2 === `compact` ? { notation: `compact`, maximumFractionDigits: 1 } : void 0).format(e6);
3654
3661
  var $ = { timeToRead: `post.time-to-read`, viewCount: `post.view-count`, commentCount: `post.comment-count`, likeCount: `post.like-count`, noPostsTitle: `post-list.empty-state.title`, noPostsDescription: `post-list.empty-state.description`, noRelatedPostsTitle: `related-posts.empty-state.title`, noRelatedPostsDescription: `related-posts.empty-state.description`, canvasPostTitle: `canvas.post-title`, canvasAuthorName: `canvas.author-name`, canvasExcerpt: `canvas.excerpt`, canvasContent: `canvas.content`, canvasCategory: `canvas.category`, canvasCategoryNumbered: `canvas.category-numbered`, canvasTagNumbered: `canvas.tag-numbered`, canvasCoverAlt: `cover-media.placeholder-alt`, canvasAuthorPhotoAlt: `canvas.author-photo-alt` };
3655
- var cs = (e6, t2) => {
3656
- let n2 = (n3) => (r2) => e6(n3, { count: r2, formatted: ss(r2, `full`, t2) });
3662
+ var ls = (e6, t2) => {
3663
+ let n2 = (n3) => (r2) => e6(n3, { count: r2, formatted: cs(r2, `full`, t2) });
3657
3664
  return { timeToRead: (t3) => e6($.timeToRead, { count: t3 }), viewCount: n2($.viewCount), commentCount: n2($.commentCount), likeCount: n2($.likeCount), noPostsEmptyState: () => ({ title: e6($.noPostsTitle), description: e6($.noPostsDescription) }), noRelatedPostsEmptyState: () => ({ title: e6($.noRelatedPostsTitle), description: e6($.noRelatedPostsDescription) }), canvas: { postTitle: () => e6($.canvasPostTitle), authorName: () => e6($.canvasAuthorName), excerpt: () => e6($.canvasExcerpt), content: () => e6($.canvasContent), category: () => e6($.canvasCategory), categoryNumbered: (t3) => e6($.canvasCategoryNumbered, { number: t3 }), tagNumbered: (t3) => e6($.canvasTagNumbered, { number: t3 }), coverAlt: () => e6($.canvasCoverAlt), authorPhotoAlt: () => e6($.canvasAuthorPhotoAlt) } };
3658
3665
  };
3659
- var ls = (e6) => e6.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`);
3660
- var us = (e6) => ({ text: e6, html: `<p>${ls(e6)}</p>`, linkList: [] });
3661
- var ds = t(null);
3662
- ds.displayName = `PostItemContext`;
3663
- function fs() {
3664
- return a(ds);
3666
+ var us = (e6) => e6.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`);
3667
+ var ds = (e6) => ({ text: e6, html: `<p>${us(e6)}</p>`, linkList: [] });
3668
+ var fs = t(null);
3669
+ fs.displayName = `PostItemContext`;
3670
+ function ps() {
3671
+ return a(fs);
3665
3672
  }
3666
- function ps({ postData: t2, children: n2 }) {
3667
- let r2 = zr(), { t: i2, ready: a2 } = zo(void 0, { useSuspense: false }), o2 = s(() => cs(i2, r2), [i2, r2]), { isLiked: c2, likeCount: l2, isLikeCountLoaded: u2, viewCount: d2, commentCount: p2, toggleLike: m2, liveLikes: h2 } = Lr(t2.recentPostItem.slug ? t2._id : void 0, 0), g2 = s(() => ({ ...t2, isLiked: c2, isLikeCountLoaded: u2, toggleLike: m2, liveLikes: h2, likeCountValue: l2, viewCountValue: d2 ?? t2.initialViewCount, commentCountValue: p2 ?? t2.initialCommentCount, likeCount: us(a2 ? o2.likeCount(l2) : ``), viewCount: d2 === void 0 || !a2 ? t2.viewCount : us(o2.viewCount(d2)), commentCount: p2 === void 0 || !a2 ? t2.commentCount : us(o2.commentCount(p2)) }), [t2, c2, l2, u2, d2, p2, m2, h2, o2, a2]), _2 = s(() => ({ currentPostId: t2.recentPostItem.slug ? t2._id : void 0, categoryIds: void 0, relatedPostIds: void 0 }), [t2]), v2 = s(() => {
3673
+ function ms({ postData: t2, children: n2 }) {
3674
+ let r2 = Br(), { t: i2, ready: a2 } = Bo(void 0, { useSuspense: false }), o2 = s(() => ls(i2, r2), [i2, r2]), { isLiked: c2, likeCount: l2, isLikeCountLoaded: u2, viewCount: d2, commentCount: p2, toggleLike: m2, liveLikes: h2 } = Lr(t2.recentPostItem.slug ? t2._id : void 0, 0), g2 = s(() => ({ ...t2, isLiked: c2, isLikeCountLoaded: u2, toggleLike: m2, liveLikes: h2, likeCountValue: l2, viewCountValue: d2 ?? t2.initialViewCount, commentCountValue: p2 ?? t2.initialCommentCount, likeCount: ds(a2 ? o2.likeCount(l2) : ``), viewCount: d2 === void 0 || !a2 ? t2.viewCount : ds(o2.viewCount(d2)), commentCount: p2 === void 0 || !a2 ? t2.commentCount : ds(o2.commentCount(p2)) }), [t2, c2, l2, u2, d2, p2, m2, h2, o2, a2]), _2 = s(() => ({ currentPostId: t2.recentPostItem.slug ? t2._id : void 0, categoryIds: void 0, relatedPostIds: void 0 }), [t2]), v2 = s(() => {
3668
3675
  let e6 = g2.itemCategoryLabel.text;
3669
3676
  return { title: g2.itemTitle, excerpt: g2.itemExcerpt, coverImage: g2.itemCoverImage, coverMedia: g2.itemCoverMedia, richContent: { nodes: [] }, authorName: g2.authorName, authorImage: g2.authorImage, timeToRead: g2.timeToRead, publishedDate: g2.itemPublishedDate, viewCount: g2.viewCount, commentCount: g2.commentCount, likeCount: g2.likeCount, postCategories: e6 ? [{ _id: e6, label: e6, itemCategoryLabel: g2.itemCategoryLabel, itemCategoryLink: void 0, categoryItem: { label: e6, slug: `` } }] : [], itemCategoryLabel: g2.itemCategoryLabel, postTags: [], hasCoverImage: g2.itemCoverMedia !== void 0 && g2.itemCoverImage !== void 0, hasExcerpt: !!g2.itemExcerpt.text.trim(), hasTags: false, publishedDateValue: g2.publishedDateValue, minutesToReadValue: g2.minutesToReadValue, viewCountValue: g2.viewCountValue, commentCountValue: g2.commentCountValue, isLiked: g2.isLiked, likeCountValue: g2.likeCountValue, isLikeCountLoaded: g2.isLikeCountLoaded, toggleLike: g2.toggleLike, liveLikes: g2.liveLikes, clockValue: g2.clockValue, postUrl: g2.itemLink?.href, itemLink: g2.itemLink, commentingEnabled: g2.commentingEnabled, relatedPostsSource: _2, isLoadingPost: false, hasError: false, isEmpty: false };
3670
3677
  }, [g2, _2]);
3671
- return f(ds.Provider, { value: g2, children: f(e, { value: v2, children: n2 }) });
3678
+ return f(fs.Provider, { value: g2, children: f(e, { value: v2, children: n2 }) });
3672
3679
  }
3673
- function ms({ postData: e6, children: t2 }) {
3674
- let { i18n: n2 } = Qo(os);
3675
- return e6 === void 0 ? f(d, { children: t2 }) : f(Bo, { i18n: n2, children: f(ps, { postData: e6, children: t2 }) });
3680
+ function hs({ postData: e6, children: t2 }) {
3681
+ let { i18n: n2 } = $o(ss);
3682
+ return e6 === void 0 ? f(d, { children: t2 }) : f(Vo, { i18n: n2, children: f(ms, { postData: e6, children: t2 }) });
3676
3683
  }
3677
- var hs = Dn(`e26c0f39-8db2-4b56-8c9b-fd1457f917e0`);
3684
+ var gs = Dn(`e26c0f39-8db2-4b56-8c9b-fd1457f917e0`);
3678
3685
  export {
3679
- ms as PostItemContextProvider,
3680
- ms as default,
3681
- hs as injectAccessTokenGetter,
3682
- fs as usePostListItemContext
3686
+ hs as PostItemContextProvider,
3687
+ hs as default,
3688
+ gs as injectAccessTokenGetter,
3689
+ ps as usePostListItemContext
3683
3690
  };
3684
3691
  //# sourceMappingURL=context-post-list-item.mjs.map