@wix/blog 1.0.709 → 1.0.711

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.
@@ -30,9 +30,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // context-post-by-id.ts
31
31
  var context_post_by_id_exports = {};
32
32
  __export(context_post_by_id_exports, {
33
- PostByIdProvider: () => pd,
34
- default: () => pd,
35
- injectAccessTokenGetter: () => md,
33
+ PostByIdProvider: () => md,
34
+ default: () => md,
35
+ injectAccessTokenGetter: () => hd,
36
36
  usePostByIdContext: () => import_post_context_provider.usePostContext
37
37
  });
38
38
  module.exports = __toCommonJS(context_post_by_id_exports);
@@ -44,16 +44,17 @@ var import_services_manager_react = require("@wix/services-manager-react");
44
44
  var import_jsx_runtime = require("react/jsx-runtime");
45
45
  var import_meta = {};
46
46
  var _ = Object.defineProperty;
47
- var v = (e6, t2) => {
47
+ var v = (e6, t2) => () => (t2 || (e6((t2 = { exports: {} }).exports, t2, t2.exports), e6 = null), t2.exports);
48
+ var y = (e6, t2) => {
48
49
  let n2 = {};
49
50
  for (var r2 in e6) _(n2, r2, { get: e6[r2], enumerable: true });
50
51
  return t2 || _(n2, Symbol.toStringTag, { value: `Module` }), n2;
51
52
  };
52
- var y = {};
53
- function b(e6, t2 = false, n2 = (e7) => e7) {
53
+ var b = {};
54
+ function x(e6, t2 = false, n2 = (e7) => e7) {
54
55
  return () => ({ __type: `event-definition`, type: e6, isDomainEvent: t2, transformations: n2 });
55
56
  }
56
- var x = (e6) => {
57
+ var S = (e6) => {
57
58
  switch (e6) {
58
59
  case `get`:
59
60
  case `GET`:
@@ -80,11 +81,11 @@ var x = (e6) => {
80
81
  throw Error(`Unknown method: ${e6}`);
81
82
  }
82
83
  };
83
- var S = (e6) => (t2) => async (n2) => {
84
+ var C = (e6) => (t2) => async (n2) => {
84
85
  let r2, i2 = (t3) => {
85
86
  if (r2 = e6(n2)(t3), r2.url === void 0) throw Error(`Url was not successfully created for this request, please reach out to support channels for assistance.`);
86
87
  let { method: i3, url: a2, params: o2 } = r2;
87
- return { ...r2, method: x(i3), url: a2, data: r2.data, params: o2 };
88
+ return { ...r2, method: S(i3), url: a2, data: r2.data, params: o2 };
88
89
  };
89
90
  try {
90
91
  let e7 = await t2.request(i2);
@@ -97,10 +98,10 @@ var S = (e6) => (t2) => async (n2) => {
97
98
  throw typeof e7 == `object` && e7 && `response` in e7 && typeof e7.response == `object` && e7.response !== null && `data` in e7.response ? e7.response.data : e7;
98
99
  }
99
100
  };
100
- var C = (e6) => e6.__isAmbassador ? true : !!e6().__isAmbassador;
101
- var ee = `__metadata`;
102
- var w = `edge.wixapis.com`;
103
- var T = class extends Error {
101
+ var ee = (e6) => e6.__isAmbassador ? true : !!e6().__isAmbassador;
102
+ var w = `__metadata`;
103
+ var T = `edge.wixapis.com`;
104
+ var te = class extends Error {
104
105
  message;
105
106
  response;
106
107
  constructor(e6, t2) {
@@ -108,108 +109,108 @@ var T = class extends Error {
108
109
  }
109
110
  async details() {
110
111
  let e6 = await this.response.json();
111
- return te(this.response.status, e6?.message, e6?.details, { requestId: this.response.headers.get(`X-Wix-Request-Id`), details: e6 });
112
+ return ne(this.response.status, e6?.message, e6?.details, { requestId: this.response.headers.get(`X-Wix-Request-Id`), details: e6 });
112
113
  }
113
114
  };
114
- var te = (e6, t2, n2, r2) => ({ details: { ...!n2?.validationError && { applicationError: { description: t2, code: e6, data: r2 } }, ...n2 }, message: t2, requestId: r2?.requestId });
115
- var ne = (e6) => e6?.method && [`post`, `put`, `patch`].includes(e6.method.toLocaleLowerCase()) && e6.body ? { "Content-Type": `application/json` } : {};
116
- var re = (e6) => e6 && typeof e6 == `object` && !Array.isArray(e6);
117
- var ie = (e6) => e6.__type === `host`;
118
- function ae(e6, t2) {
115
+ var ne = (e6, t2, n2, r2) => ({ details: { ...!n2?.validationError && { applicationError: { description: t2, code: e6, data: r2 } }, ...n2 }, message: t2, requestId: r2?.requestId });
116
+ var re = (e6) => e6?.method && [`post`, `put`, `patch`].includes(e6.method.toLocaleLowerCase()) && e6.body ? { "Content-Type": `application/json` } : {};
117
+ var ie = (e6) => e6 && typeof e6 == `object` && !Array.isArray(e6);
118
+ var ae = (e6) => e6.__type === `host`;
119
+ function oe(e6, t2) {
119
120
  return e6.create(t2);
120
121
  }
121
- var oe = `x-wix-bi-gateway`;
122
- function se(e6, t2, n2) {
123
- return { [oe]: ce({ environment: `js-sdk${n2 ? `-${n2}` : ``}`, "package-name": e6.packageName ?? t2?.PACKAGE_NAME, "method-fqn": e6.methodFqn, entity: e6.entityFqdn }) };
122
+ var se = `x-wix-bi-gateway`;
123
+ function ce(e6, t2, n2) {
124
+ return { [se]: le({ environment: `js-sdk${n2 ? `-${n2}` : ``}`, "package-name": e6.packageName ?? t2?.PACKAGE_NAME, "method-fqn": e6.methodFqn, entity: e6.entityFqdn }) };
124
125
  }
125
- function ce(e6) {
126
+ function le(e6) {
126
127
  return Object.entries(e6).filter(([e7, t2]) => !!t2).map(([e7, t2]) => `${e7}=${t2}`).join(`,`);
127
128
  }
128
- function le(e6) {
129
- let t2 = globalThis.__wix_context__, n2 = { client: y.client, elevatedClient: y.elevatedClient }, r2;
130
- globalThis.__wix_context__ = void 0, y.client = void 0, y.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
129
+ function ue(e6) {
130
+ let t2 = globalThis.__wix_context__, n2 = { client: b.client, elevatedClient: b.elevatedClient }, r2;
131
+ globalThis.__wix_context__ = void 0, b.client = void 0, b.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
131
132
  try {
132
133
  return e6();
133
134
  } finally {
134
- globalThis.__wix_context__ = t2, y.client = n2.client, y.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
135
+ globalThis.__wix_context__ = t2, b.client = n2.client, b.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
135
136
  }
136
137
  }
137
- var ue = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
138
- function de(e6) {
139
- return ge(e6).map((e7) => e7.toLocaleUpperCase()).join(`_`);
138
+ var de = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
139
+ function fe(e6) {
140
+ return _e(e6).map((e7) => e7.toLocaleUpperCase()).join(`_`);
140
141
  }
141
- var fe = /([\p{Ll}\d])(\p{Lu})/gu;
142
- var pe = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
143
- var me = `$1\0$2`;
144
- var he = /[^\p{L}\d]+/giu;
145
- function ge(e6) {
142
+ var pe = /([\p{Ll}\d])(\p{Lu})/gu;
143
+ var me = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
144
+ var he = `$1\0$2`;
145
+ var ge = /[^\p{L}\d]+/giu;
146
+ function _e(e6) {
146
147
  let t2 = e6.trim();
147
- t2 = t2.replace(fe, me).replace(pe, me), t2 = t2.replace(he, `\0`);
148
+ t2 = t2.replace(pe, he).replace(me, he), t2 = t2.replace(ge, `\0`);
148
149
  let n2 = 0, r2 = t2.length;
149
150
  for (; t2.charAt(n2) === `\0`; ) n2++;
150
151
  if (n2 === r2) return [];
151
152
  for (; t2.charAt(r2 - 1) === `\0`; ) r2--;
152
153
  return t2.slice(n2, r2).split(/\0/g);
153
154
  }
154
- var _e = (e6) => `validationError` in (e6.response?.data?.details ?? {});
155
- var ve = (e6) => `applicationError` in (e6.response?.data?.details ?? {});
156
- var ye = (e6) => (e6.response?.status ?? -1) >= 400 && (e6.response?.status ?? -1) < 500;
157
- function be(e6, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
155
+ var ve = (e6) => `validationError` in (e6.response?.data?.details ?? {});
156
+ var ye = (e6) => `applicationError` in (e6.response?.data?.details ?? {});
157
+ var be = (e6) => (e6.response?.status ?? -1) >= 400 && (e6.response?.status ?? -1) < 500;
158
+ function xe(e6, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
158
159
  if (typeof e6 != `object` || !e6) throw e6;
159
- if (_e(e6)) return xe(e6, t2, n2);
160
- if (ve(e6)) return Ce(e6);
161
- if (ye(e6)) {
162
- let t3 = e6.response?.status, n3 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: de(n3), data: {} }, requestId: e6.requestId };
163
- return Se(e6, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
160
+ if (ve(e6)) return Se(e6, t2, n2);
161
+ if (ye(e6)) return we(e6);
162
+ if (be(e6)) {
163
+ let t3 = e6.response?.status, n3 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: fe(n3), data: {} }, requestId: e6.requestId };
164
+ return Ce(e6, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
164
165
  }
165
- return we(e6);
166
+ return Te(e6);
166
167
  }
167
- var xe = (e6, t2, n2) => {
168
- let r2 = e6.response?.data, i2 = e6.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Te(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 };
169
- return Se(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e6.response?.status, requestId: i2 } });
168
+ var Se = (e6, t2, n2) => {
169
+ let r2 = e6.response?.data, i2 = e6.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Ee(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 };
170
+ return Ce(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e6.response?.status, requestId: i2 } });
170
171
  };
171
- var Se = (e6, { message: t2, extraProperties: n2 }) => Object.assign(e6, { ...n2, message: t2 });
172
- var Ce = (e6) => {
173
- 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 ?? de(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 };
174
- return Se(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e6.requestId } });
172
+ var Ce = (e6, { message: t2, extraProperties: n2 }) => Object.assign(e6, { ...n2, message: t2 });
173
+ var we = (e6) => {
174
+ 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 ?? fe(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 };
175
+ return Ce(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e6.requestId } });
175
176
  };
176
- var we = (e6) => Se(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: de(e6.response?.statusText ?? `UNKNOWN`), ...!e6.response && { runtimeError: e6 } } });
177
- var Te = ({ spreadPathsToArguments: e6, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
177
+ var Te = (e6) => Ce(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: fe(e6.response?.statusText ?? `UNKNOWN`), ...!e6.response && { runtimeError: e6 } } });
178
+ var Ee = ({ spreadPathsToArguments: e6, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
178
179
  let a2 = { ...e6, ...t2 }, o2 = Object.keys(a2);
179
180
  return r2?.filter((e7) => !r2.some((t3) => t3.field.length > e7.field.length && t3.field.startsWith(e7.field) && o2.includes(t3.field))).map((e7) => {
180
181
  let r3 = t2[e7.field];
181
- if (r3) return { ...e7, field: Ee(r3, i2) };
182
+ if (r3) return { ...e7, field: De(r3, i2) };
182
183
  let s2 = o2?.sort((e8, t3) => t3.length - e8.length)?.find((t3) => e7.field.startsWith(t3));
183
184
  if (s2) {
184
185
  let t3 = a2[s2];
185
- if (t3) return { ...e7, field: e7.field.replace(s2, Ee(t3, i2)) };
186
+ if (t3) return { ...e7, field: e7.field.replace(s2, De(t3, i2)) };
186
187
  }
187
188
  return n2 ? { ...e7, field: `${i2[0]}.${e7.field}` } : e7;
188
189
  });
189
190
  };
190
- var Ee = (e6, t2) => {
191
- let n2 = De(e6);
191
+ var De = (e6, t2) => {
192
+ let n2 = Oe(e6);
192
193
  return n2 == null ? e6 : e6.replace(`$[${n2}]`, t2[n2]);
193
194
  };
194
- var De = (e6) => {
195
+ var Oe = (e6) => {
195
196
  let t2 = e6.match(/\$\[(?<argIndex>\d+)\]/);
196
197
  return t2 && t2.groups && Number(t2.groups.argIndex);
197
198
  };
198
- function Oe(e6, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
199
- return le(() => e6({ request: async (e7) => {
199
+ function ke(e6, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
200
+ return ue(() => e6({ request: async (e7) => {
200
201
  let i3 = e7({ host: s2?.HTTPHost || `www.wixapis.com` }), a3 = i3;
201
202
  a3.method === `GET` && a3.fallback?.length && (a3.params?.toString().length ?? 0) > 4e3 && (a3 = i3.fallback[0]);
202
- let o3 = s2?.HTTPHost ?? `www.wixapis.com`, u3 = `https://${l2 ? w : o3}${a3.url}`;
203
+ let o3 = s2?.HTTPHost ?? `www.wixapis.com`, u3 = `https://${l2 ? T : o3}${a3.url}`;
203
204
  a3.params && a3.params.toString() && (u3 += `?${a3.params.toString()}`);
204
205
  try {
205
- let e8 = se(i3, t2, c2), o4 = { method: a3.method, ...a3.data && { body: JSON.stringify(a3.data) }, headers: { ...e8 } }, s3 = await n2(u3, o4);
206
+ let e8 = ce(i3, t2, c2), o4 = { method: a3.method, ...a3.data && { body: JSON.stringify(a3.data) }, headers: { ...e8 } }, s3 = await n2(u3, o4);
206
207
  if (s3.status !== 200) {
207
208
  let e9 = null;
208
209
  try {
209
210
  e9 = await s3.json();
210
211
  } catch {
211
212
  }
212
- let t3 = Ae(s3.status, e9?.message ?? s3.statusText, e9?.details, { requestId: s3.headers.get(`X-Wix-Request-Id`), details: e9 }), n3 = be(t3);
213
+ let t3 = je(s3.status, e9?.message ?? s3.statusText, e9?.details, { requestId: s3.headers.get(`X-Wix-Request-Id`), details: e9 }), n3 = xe(t3);
213
214
  throw r2?.handleError(n3, { requestOptions: { url: a3.url, method: a3.method, entityFqdn: i3.entityFqdn, methodFqn: i3.methodFqn } }), t3;
214
215
  }
215
216
  let l3 = await s3.json();
@@ -219,18 +220,18 @@ function Oe(e6, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
219
220
  }
220
221
  }, fetchWithAuth: n2, wixAPIFetch: i2, getActiveToken: a2, getAuthHeaders: o2 }, { validateRequestSchema: u2 }));
221
222
  }
222
- var ke = class extends Error {
223
+ var Ae = class extends Error {
223
224
  response;
224
225
  requestId;
225
226
  constructor(e6) {
226
227
  super(), this.response = e6.response, this.requestId = e6.requestId;
227
228
  }
228
229
  };
229
- var Ae = (e6, t2, n2, r2) => new ke({ response: { data: { details: { ...!n2?.validationError && { applicationError: { description: t2, code: e6, data: r2 } }, ...n2 }, message: t2 }, status: e6 }, requestId: r2?.requestId });
230
- var je = `.`;
231
- function Me(e6, t2, n2) {
230
+ var je = (e6, t2, n2, r2) => new Ae({ response: { data: { details: { ...!n2?.validationError && { applicationError: { description: t2, code: e6, data: r2 } }, ...n2 }, message: t2 }, status: e6 }, requestId: r2?.requestId });
231
+ var Me = `.`;
232
+ function Ne(e6, t2, n2) {
232
233
  if (e6 == null) throw Error(`Cannot set value on null or undefined`);
233
- let r2 = Ne(t2), i2 = e6;
234
+ let r2 = Pe(t2), i2 = e6;
234
235
  for (let e7 = 0; e7 < r2.length; e7++) {
235
236
  let t3 = r2[e7];
236
237
  if (e7 === r2.length - 1) {
@@ -242,21 +243,21 @@ function Me(e6, t2, n2) {
242
243
  }
243
244
  return e6;
244
245
  }
245
- function Ne(e6) {
246
- return Array.isArray(e6) ? e6 : e6.split(je).map((e7) => Pe(e7) ? Number(e7) : e7);
247
- }
248
246
  function Pe(e6) {
249
- return /^\d+$/.test(e6);
247
+ return Array.isArray(e6) ? e6 : e6.split(Me).map((e7) => Fe(e7) ? Number(e7) : e7);
250
248
  }
251
249
  function Fe(e6) {
250
+ return /^\d+$/.test(e6);
251
+ }
252
+ function Ie(e6) {
252
253
  let t2 = {};
253
- for (let [n2, r2] of Object.entries(e6)) Ie(n2) || Me(t2, Ne(n2), r2);
254
+ for (let [n2, r2] of Object.entries(e6)) Le(n2) || Ne(t2, Pe(n2), r2);
254
255
  return t2;
255
256
  }
256
- function Ie(e6) {
257
+ function Le(e6) {
257
258
  return e6 === `__proto__` || e6 === `constructor` || e6 === `prototype`;
258
259
  }
259
- var Le = class {
260
+ var Re = class {
260
261
  BRACKET_PATTERN = /\[(\d+)\]/g;
261
262
  NUMERIC_PATTERN = /^\d+$/;
262
263
  ESCAPED_DOT_PATTERN = /\\\./g;
@@ -279,7 +280,7 @@ var Le = class {
279
280
  return e6.replace(this.ESCAPED_DOT_PLACEHOLDER, `\\.`).replace(this.ESCAPED_RIGHT_BRACKET_PLACEHOLDER, `\\]`).replace(this.ESCAPED_LEFT_BRACKET_PLACEHOLDER, `\\[`);
280
281
  }
281
282
  unflatten() {
282
- return this.cleanedModifiedFields = Object.fromEntries(Object.entries(this.modifiedFields).map(([e6, t2]) => [this.replaceEscapedCharacters(this.bracketToDotNotation(e6)), t2])), Fe(this.cleanedModifiedFields);
283
+ return this.cleanedModifiedFields = Object.fromEntries(Object.entries(this.modifiedFields).map(([e6, t2]) => [this.replaceEscapedCharacters(this.bracketToDotNotation(e6)), t2])), Ie(this.cleanedModifiedFields);
283
284
  }
284
285
  flatten(e6) {
285
286
  let t2 = {};
@@ -299,12 +300,12 @@ var Le = class {
299
300
  if (!Array.isArray(n2)) throw Error(`Expected array at path ${this.buildPathString(r2)}, but got ${typeof n2}`);
300
301
  r2.push(`[${e7}]`), n2 = n2[parseInt(e7, 10)];
301
302
  }, a2 = (e7, t3) => {
302
- let i3 = e7 in ue ? ue[e7] : void 0;
303
+ let i3 = e7 in de ? de[e7] : void 0;
303
304
  if (i3 && i3 in t3) {
304
305
  r2.push(i3), n2 = t3[i3];
305
306
  return;
306
307
  }
307
- let a3 = Ve(e7);
308
+ let a3 = He(e7);
308
309
  if (a3 && a3 in t3) r2.push(a3), n2 = t3[a3];
309
310
  else throw Error(`Cannot find key '${e7}' or its transformations at path ${this.buildPathString(r2)}`);
310
311
  }, o2 = (e7, t3) => {
@@ -328,28 +329,28 @@ var Le = class {
328
329
  return e6.replace(this.BRACKET_PATTERN, (t2, n2, r2) => r2 > 0 && e6[r2 - 1] === `\\` ? t2 : `.` + n2);
329
330
  }
330
331
  };
331
- function Re(e6, t2) {
332
+ function ze(e6, t2) {
332
333
  let n2 = e6?.modifiedFields;
333
334
  if (!n2) return null;
334
- let r2 = ze(n2);
335
+ let r2 = Be(n2);
335
336
  if (!r2) return null;
336
337
  let { unflattenedModifiedFields: i2, modifiedFieldsManipulator: a2 } = r2;
337
338
  e6 = { ...e6, modifiedFields: i2 };
338
339
  let o2 = t2(e6), s2 = o2?.modifiedFields;
339
340
  if (!s2) return null;
340
- let c2 = Be(s2, a2);
341
+ let c2 = Ve(s2, a2);
341
342
  return c2 === null ? null : (o2.modifiedFields = c2, o2);
342
343
  }
343
- function ze(e6) {
344
+ function Be(e6) {
344
345
  if (typeof e6 == `object` && e6 && !Array.isArray(e6)) try {
345
- let t2 = new Le(e6);
346
+ let t2 = new Re(e6);
346
347
  return { unflattenedModifiedFields: t2.unflatten(), modifiedFieldsManipulator: t2 };
347
348
  } catch {
348
349
  return null;
349
350
  }
350
351
  return null;
351
352
  }
352
- function Be(e6, t2) {
353
+ function Ve(e6, t2) {
353
354
  if (typeof e6 == `object` && e6 && !Array.isArray(e6)) try {
354
355
  return t2.flatten(e6);
355
356
  } catch {
@@ -357,10 +358,10 @@ function Be(e6, t2) {
357
358
  }
358
359
  return null;
359
360
  }
360
- function Ve(e6) {
361
+ function He(e6) {
361
362
  return e6.replace(/[-_\s]+(.)?/g, (e7, t2) => t2 ? t2.toUpperCase() : ``).replace(/^./, (e7) => e7.toLowerCase());
362
363
  }
363
- function He() {
364
+ function Ue() {
364
365
  return { emit(e6, ...t2) {
365
366
  for (let n2 = 0, r2 = this.events[e6] || [], i2 = r2.length; n2 < i2; n2++) r2[n2](...t2);
366
367
  }, events: {}, on(e6, t2) {
@@ -369,8 +370,8 @@ function He() {
369
370
  };
370
371
  } };
371
372
  }
372
- var Ue = (e6) => e6.__type === `event-definition`;
373
- function We(e6, t2, n2, r2) {
373
+ var We = (e6) => e6.__type === `event-definition`;
374
+ function Ge(e6, t2, n2, r2) {
374
375
  let i2;
375
376
  if (e6.isDomainEvent) {
376
377
  let { deletedEvent: e7, actionEvent: t3, createdEvent: a3, updatedEvent: o3, ...s3 } = n2, c2 = { ...r2, ...s3 };
@@ -381,14 +382,14 @@ function We(e6, t2, n2, r2) {
381
382
  let e7 = s2.modifiedFields;
382
383
  if (typeof e7 == `object` && e7 && !Array.isArray(e7)) {
383
384
  o2 = structuredClone(i2);
384
- let e8 = Re(s2, a2);
385
+ let e8 = ze(s2, a2);
385
386
  if (e8) return t2(e8);
386
387
  }
387
388
  }
388
389
  return t2(a2(o2));
389
390
  }
390
- function Ge(e6) {
391
- let t2 = /* @__PURE__ */ new Map(), n2 = He();
391
+ function Ke(e6) {
392
+ let t2 = /* @__PURE__ */ new Map(), n2 = Ue();
392
393
  return { initModule(e7) {
393
394
  return (r2) => {
394
395
  let i2 = t2.get(e7.type) ?? [];
@@ -398,7 +399,7 @@ function Ge(e6) {
398
399
  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 }))];
399
400
  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(`, `)}`);
400
401
  let l2 = t2.get(r2) ?? [];
401
- return await Promise.all(l2.map(({ eventDefinition: e8, handler: t3 }) => We(e8, t3, o2, { instanceId: a2, identity: i2, accountInfo: s2 }))), { instanceId: a2, eventType: r2, payload: o2, identity: i2, accountInfo: s2 };
402
+ return await Promise.all(l2.map(({ eventDefinition: e8, handler: t3 }) => Ge(e8, t3, o2, { instanceId: a2, identity: i2, accountInfo: s2 }))), { instanceId: a2, eventType: r2, payload: o2, identity: i2, accountInfo: s2 };
402
403
  }, async processRequest(e7, t3) {
403
404
  let n3 = await e7.text();
404
405
  return this.process(n3, t3);
@@ -417,12 +418,12 @@ function Ge(e6) {
417
418
  let n3 = Array.from(t2.keys()).map((e8) => ({ type: e8 }));
418
419
  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(`, `)}`);
419
420
  let r2 = t2.get(e7.eventType) ?? [];
420
- await Promise.all(r2.map(({ eventDefinition: t3, handler: n4 }) => We(t3, n4, e7.payload, { instanceId: e7.instanceId, identity: e7.identity })));
421
- }, apps: { AppInstalled: b(`AppInstalled`)(), AppRemoved: b(`AppRemoved`)() } } };
421
+ await Promise.all(r2.map(({ eventDefinition: t3, handler: n4 }) => Ge(t3, n4, e7.payload, { instanceId: e7.instanceId, identity: e7.identity })));
422
+ }, apps: { AppInstalled: x(`AppInstalled`)(), AppRemoved: x(`AppRemoved`)() } } };
422
423
  }
423
- var Ke = (e6) => e6.__type === `service-plugin-definition`;
424
- function qe(e6) {
425
- let t2 = /* @__PURE__ */ new Map(), n2 = He();
424
+ var qe = (e6) => e6.__type === `service-plugin-definition`;
425
+ function Je(e6) {
426
+ let t2 = /* @__PURE__ */ new Map(), n2 = Ue();
426
427
  return { initModule(e7) {
427
428
  return (r2) => {
428
429
  let i2 = t2.get(e7.componentType.toLowerCase()) ?? [];
@@ -464,42 +465,42 @@ function qe(e6) {
464
465
  } } };
465
466
  }
466
467
  var E = `X-Wix-Consistent`;
467
- function Je(e6) {
468
+ function Ye(e6) {
468
469
  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) => {
469
470
  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?.();
470
471
  try {
471
472
  if (typeof n3 == `string` || n3 instanceof URL) {
472
473
  let e7 = await i3(n3, { ...r3, headers: c3 });
473
474
  l3?.handleError(e7, { requestOptions: { url: n3.toString(), method: r3?.method } });
474
- let a3 = Ye(e7);
475
+ let a3 = Xe(e7);
475
476
  return a3 && (t2[E] = a3), e7;
476
477
  }
477
478
  {
478
479
  for (let [e8, t3] of Object.entries(c3)) typeof t3 == `string` && n3.headers.set(e8, t3);
479
480
  let e7 = await i3(n3, r3);
480
481
  l3?.handleError(e7, { requestOptions: { url: n3.url, method: r3?.method } });
481
- let a3 = Ye(e7);
482
+ let a3 = Xe(e7);
482
483
  return a3 && (t2[E] = a3), e7;
483
484
  }
484
485
  } catch (e7) {
485
486
  throw l3?.handleError(e7, { requestOptions: { url: typeof n3 == `string` || n3 instanceof URL ? n3.toString() : n3.url, method: r3?.method } }), e7;
486
487
  }
487
- }, { client: c2, initModule: l2 } = qe(i2), { client: u2, initModule: d2 } = Ge(i2), f2 = async (n3, r3) => {
488
- let i3 = o2(), s3 = await a2(), c3 = ne(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 = Ye(l3);
488
+ }, { client: c2, initModule: l2 } = Je(i2), { client: u2, initModule: d2 } = Ke(i2), f2 = async (n3, r3) => {
489
+ let i3 = o2(), s3 = await a2(), c3 = re(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 = Xe(l3);
489
490
  return u3 && (t2[E] = u3), l3;
490
491
  }, p2 = (t3, n3) => {
491
- if (Ue(t3)) return d2(t3);
492
- if (Ke(t3)) return l2(t3);
493
- if (ie(t3) && e6.host) return ae(t3, e6.host);
492
+ if (We(t3)) return d2(t3);
493
+ if (qe(t3)) return l2(t3);
494
+ if (ae(t3) && e6.host) return oe(t3, e6.host);
494
495
  if (typeof t3 == `function`) {
495
496
  if (`__type` in t3 && t3.__type === `wix_spi_error`) return t3;
496
497
  let r3 = e6.host?.apiBaseUrl ?? `www.wixapis.com`, o3 = e6.useCDN === void 0 ? i2().shouldUseCDN : e6.useCDN;
497
- return Oe(le(() => C(t3)) ? S(t3) : t3, n3 ?? {}, f2, e6.host?.getErrorHandler?.(), (e7, t4) => {
498
+ return ke(ue(() => ee(t3)) ? C(t3) : t3, n3 ?? {}, f2, e6.host?.getErrorHandler?.(), (e7, t4) => {
498
499
  let n4 = new URL(e7, `https://${r3}`);
499
500
  return n4.host = r3, n4.protocol = `https`, f2(n4.toString(), t4);
500
501
  }, i2().getActiveToken, async () => a2(), { HTTPHost: r3 }, e6.host?.name, o3, e6.validateRequestSchema);
501
502
  }
502
- return re(t3) ? Object.fromEntries(Object.entries(t3).map(([e7, n4]) => [e7, p2(n4, t3[ee])])) : t3;
503
+ return ie(t3) ? Object.fromEntries(Object.entries(t3).map(([e7, n4]) => [e7, p2(n4, t3[w])])) : t3;
503
504
  }, m2 = (e7) => {
504
505
  for (let n3 in e7) t2[n3] = e7[n3];
505
506
  };
@@ -507,33 +508,33 @@ function Je(e6) {
507
508
  let t3 = i2();
508
509
  return t3.getAuthHeaders = t3.getAuthHeaders.bind(void 0, e6.host), t3;
509
510
  }, setHeaders: m2, use: p2, enableContext(e7, t3 = { elevated: false }) {
510
- e7 === `global` ? globalThis.__wix_context__ == null ? t3.elevated ? globalThis.__wix_context__ = { elevatedClient: this } : globalThis.__wix_context__ = { client: this } : t3.elevated ? globalThis.__wix_context__.elevatedClient = this : globalThis.__wix_context__.client = this : t3.elevated ? y.elevatedClient = this : y.client = this;
511
+ e7 === `global` ? globalThis.__wix_context__ == null ? t3.elevated ? globalThis.__wix_context__ = { elevatedClient: this } : globalThis.__wix_context__ = { client: this } : t3.elevated ? globalThis.__wix_context__.elevatedClient = this : globalThis.__wix_context__.client = this : t3.elevated ? b.elevatedClient = this : b.client = this;
511
512
  }, fetch: (t3, n3) => {
512
513
  let r3 = e6.host?.apiBaseUrl ?? `www.wixapis.com`, i3 = new URL(t3, `https://${r3}`);
513
514
  return i3.host = r3, i3.protocol = `https`, f2(i3.toString(), n3);
514
515
  }, fetchWithAuth: s2, async graphql(t3, n3, r3 = { apiVersion: `alpha` }) {
515
516
  let i3 = e6?.host?.apiBaseUrl ?? `www.wixapis.com`, a3 = await f2(`https://${i3}/graphql/${r3.apiVersion}`, { method: `POST`, headers: { "Content-Type": `application/json` }, body: JSON.stringify({ query: t3, variables: n3 }) });
516
- if (a3.status !== 200) throw new T(`GraphQL request failed with status ${a3.status}`, a3);
517
+ if (a3.status !== 200) throw new te(`GraphQL request failed with status ${a3.status}`, a3);
517
518
  let { data: o3, errors: s3 } = await a3.json();
518
519
  return { data: o3 ?? {}, errors: s3 };
519
520
  }, webhooks: u2, servicePlugins: c2 };
520
521
  }
521
- function Ye(e6) {
522
+ function Xe(e6) {
522
523
  return e6.headers?.get(`X-Wix-Consistent`) ?? e6.headers?.get(`x-wix-consistent`);
523
524
  }
524
- var Xe = { _id: `id`, _createdDate: `createdDate`, _updatedDate: `updatedDate` };
525
- var Ze = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
526
- var Qe = `items`;
527
- var $e = `pagingMetadata`;
528
- var et = Xe;
529
- function tt(e6, t2) {
525
+ var Ze = { _id: `id`, _createdDate: `createdDate`, _updatedDate: `updatedDate` };
526
+ var Qe = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
527
+ var $e = `items`;
528
+ var et = `pagingMetadata`;
529
+ var tt = Ze;
530
+ function nt(e6, t2) {
530
531
  return e6?.split(`.`).map((e7) => t2?.[e7] ?? e7).join(`.`);
531
532
  }
532
- var nt = `sort.fieldName`;
533
- function rt(e6, t2, n2) {
534
- return (e6 === nt || e6.endsWith(`.${nt}`)) && typeof t2 == `string` ? tt(t2, n2) : t2;
535
- }
533
+ var rt = `sort.fieldName`;
536
534
  function it(e6, t2, n2) {
535
+ return (e6 === rt || e6.endsWith(`.${rt}`)) && typeof t2 == `string` ? nt(t2, n2) : t2;
536
+ }
537
+ function at(e6, t2, n2) {
537
538
  let r2 = (e7) => n2.includes(e7), i2 = (e7, n3) => {
538
539
  if (Array.isArray(e7)) e7.forEach((e8) => {
539
540
  i2(e8, n3);
@@ -543,160 +544,160 @@ function it(e6, t2, n2) {
543
544
  Object.keys(a2).forEach((e8) => {
544
545
  let o2 = n3 === `` ? e8 : `${n3}.${e8}`;
545
546
  if (r2(o2)) return;
546
- let s2 = at(e8, t2);
547
- s2 !== e8 && !(s2 in a2) && (a2[s2] = a2[e8], delete a2[e8]), a2[s2] = rt(o2, a2[s2], t2), i2(a2[s2], o2);
547
+ let s2 = ot(e8, t2);
548
+ s2 !== e8 && !(s2 in a2) && (a2[s2] = a2[e8], delete a2[e8]), a2[s2] = it(o2, a2[s2], t2), i2(a2[s2], o2);
548
549
  });
549
550
  }
550
551
  };
551
552
  return i2(e6, ``), e6;
552
553
  }
553
- function at(e6, t2) {
554
+ function ot(e6, t2) {
554
555
  let n2;
555
556
  return n2 = e6.includes(`.`) ? e6.split(`.`).map((e7) => t2[e7] ?? e7).join(`.`) : t2[e6] ?? e6, n2;
556
557
  }
557
558
  function D(e6, t2 = []) {
558
- return it(e6, Xe, t2);
559
+ return at(e6, Ze, t2);
559
560
  }
560
561
  function O(e6, t2 = []) {
561
- return it(e6, Ze, t2);
562
+ return at(e6, Qe, t2);
562
563
  }
563
- function ot(e6) {
564
+ function st(e6) {
564
565
  return e6?.toISOString();
565
566
  }
566
567
  function k(e6) {
567
568
  return e6 ? new Date(e6) : void 0;
568
569
  }
569
- var st = /* @__PURE__ */ new WeakMap();
570
- function ct() {
570
+ var ct = /* @__PURE__ */ new WeakMap();
571
+ function lt() {
571
572
  return { leaves: void 0, fields: void 0, mapFields: void 0, anyField: void 0 };
572
573
  }
573
- function lt(e6, t2) {
574
+ function ut(e6, t2) {
574
575
  let n2 = e6.get(t2);
575
- return n2 || (n2 = ct(), e6.set(t2, n2)), n2;
576
+ return n2 || (n2 = lt(), e6.set(t2, n2)), n2;
576
577
  }
577
- function ut(e6, t2) {
578
- return t2 === `*` ? (e6.anyField ??= ct(), e6.anyField) : t2.endsWith(`{}`) ? (e6.mapFields ??= /* @__PURE__ */ new Map(), lt(e6.mapFields, t2.slice(0, -2))) : (e6.fields ??= /* @__PURE__ */ new Map(), lt(e6.fields, t2));
578
+ function dt(e6, t2) {
579
+ return t2 === `*` ? (e6.anyField ??= lt(), e6.anyField) : t2.endsWith(`{}`) ? (e6.mapFields ??= /* @__PURE__ */ new Map(), ut(e6.mapFields, t2.slice(0, -2))) : (e6.fields ??= /* @__PURE__ */ new Map(), ut(e6.fields, t2));
579
580
  }
580
- function dt(e6) {
581
- let t2 = ct();
581
+ function ft(e6) {
582
+ let t2 = lt();
582
583
  for (let n2 of e6) {
583
- let e7 = n2.path.split(`.`).reduce(ut, t2);
584
+ let e7 = n2.path.split(`.`).reduce(dt, t2);
584
585
  e7.leaves ??= [], e7.leaves.push(n2);
585
586
  }
586
587
  return t2;
587
588
  }
588
- function ft(e6) {
589
- let t2 = st.get(e6);
590
- return t2 || (t2 = dt(e6), st.set(e6, t2)), t2;
591
- }
592
589
  function pt(e6) {
593
- return typeof e6 == `object` && !!e6;
590
+ let t2 = ct.get(e6);
591
+ return t2 || (t2 = ft(e6), ct.set(e6, t2)), t2;
594
592
  }
595
- function mt(e6, { isRepeated: t2, isMap: n2 }, r2) {
596
- return t2 ? Array.isArray(e6) ? e6.map(r2) : e6 : n2 ? pt(e6) ? Object.fromEntries(Object.entries(e6).map(([e7, t3]) => [e7, r2(t3)])) : e6 : r2(e6);
593
+ function mt(e6) {
594
+ return typeof e6 == `object` && !!e6;
597
595
  }
598
- function ht(e6, t2, n2) {
599
- pt(e6) && vt(e6, t2, n2);
596
+ function ht(e6, { isRepeated: t2, isMap: n2 }, r2) {
597
+ return t2 ? Array.isArray(e6) ? e6.map(r2) : e6 : n2 ? mt(e6) ? Object.fromEntries(Object.entries(e6).map(([e7, t3]) => [e7, r2(t3)])) : e6 : r2(e6);
600
598
  }
601
599
  function gt(e6, t2, n2) {
600
+ mt(e6) && yt(e6, t2, n2);
601
+ }
602
+ function _t(e6, t2, n2) {
602
603
  for (let [r2, i2] of t2) {
603
604
  if (!(r2 in e6)) continue;
604
- if (i2.leaves) for (let t4 of i2.leaves) e6[r2] = mt(e6[r2], t4, n2);
605
+ if (i2.leaves) for (let t4 of i2.leaves) e6[r2] = ht(e6[r2], t4, n2);
605
606
  let t3 = e6[r2];
606
- Array.isArray(t3) ? t3.forEach((e7) => ht(e7, i2, n2)) : ht(t3, i2, n2);
607
+ Array.isArray(t3) ? t3.forEach((e7) => gt(e7, i2, n2)) : gt(t3, i2, n2);
607
608
  }
608
609
  }
609
- function _t(e6, t2, n2) {
610
+ function vt(e6, t2, n2) {
610
611
  for (let [r2, i2] of t2) {
611
612
  let t3 = e6[r2];
612
- pt(t3) && Object.values(t3).forEach((e7) => ht(e7, i2, n2));
613
+ mt(t3) && Object.values(t3).forEach((e7) => gt(e7, i2, n2));
613
614
  }
614
615
  }
615
- function vt(e6, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
616
- t2 && gt(e6, t2, i2), n2 && _t(e6, n2, i2), r2 && Object.values(e6).forEach((e7) => ht(e7, r2, i2));
616
+ function yt(e6, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
617
+ t2 && _t(e6, t2, i2), n2 && vt(e6, n2, i2), r2 && Object.values(e6).forEach((e7) => gt(e7, r2, i2));
617
618
  }
618
619
  function A(e6, t2) {
619
- if (!pt(e6)) return e6;
620
- for (let { paths: n2, transformFn: r2 } of t2) vt(e6, ft(n2), r2);
620
+ if (!mt(e6)) return e6;
621
+ for (let { paths: n2, transformFn: r2 } of t2) yt(e6, pt(n2), r2);
621
622
  return e6;
622
623
  }
623
- function yt(e6) {
624
- return wt(e6).map((e7) => e7.toLocaleUpperCase()).join(`_`);
624
+ function bt(e6) {
625
+ return Tt(e6).map((e7) => e7.toLocaleUpperCase()).join(`_`);
625
626
  }
626
- var bt = /([\p{Ll}\d])(\p{Lu})/gu;
627
- var xt = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
628
- var St = `$1\0$2`;
629
- var Ct = /[^\p{L}\d]+/giu;
630
- function wt(e6) {
627
+ var xt = /([\p{Ll}\d])(\p{Lu})/gu;
628
+ var St = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
629
+ var Ct = `$1\0$2`;
630
+ var wt = /[^\p{L}\d]+/giu;
631
+ function Tt(e6) {
631
632
  let t2 = e6.trim();
632
- t2 = t2.replace(bt, St).replace(xt, St), t2 = t2.replace(Ct, `\0`);
633
+ t2 = t2.replace(xt, Ct).replace(St, Ct), t2 = t2.replace(wt, `\0`);
633
634
  let n2 = 0, r2 = t2.length;
634
635
  for (; t2.charAt(n2) === `\0`; ) n2++;
635
636
  if (n2 === r2) return [];
636
637
  for (; t2.charAt(r2 - 1) === `\0`; ) r2--;
637
638
  return t2.slice(n2, r2).split(/\0/g);
638
639
  }
639
- var Tt = (e6) => `validationError` in (e6.response?.data?.details ?? {});
640
- var Et = (e6) => `applicationError` in (e6.response?.data?.details ?? {});
641
- var Dt = (e6) => (e6.response?.status ?? -1) >= 400 && (e6.response?.status ?? -1) < 500;
640
+ var Et = (e6) => `validationError` in (e6.response?.data?.details ?? {});
641
+ var Dt = (e6) => `applicationError` in (e6.response?.data?.details ?? {});
642
+ var Ot = (e6) => (e6.response?.status ?? -1) >= 400 && (e6.response?.status ?? -1) < 500;
642
643
  function j(e6, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
643
644
  if (typeof e6 != `object` || !e6) throw e6;
644
- if (Tt(e6)) return Ot(e6, t2, n2);
645
- if (Et(e6)) return At(e6);
646
- if (Dt(e6)) {
647
- let t3 = e6.response?.status, n3 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: yt(n3), data: {} }, requestId: e6.requestId };
648
- return kt(e6, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
645
+ if (Et(e6)) return kt(e6, t2, n2);
646
+ if (Dt(e6)) return jt(e6);
647
+ if (Ot(e6)) {
648
+ let t3 = e6.response?.status, n3 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: bt(n3), data: {} }, requestId: e6.requestId };
649
+ return At(e6, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
649
650
  }
650
- return jt(e6);
651
+ return Mt(e6);
651
652
  }
652
- var Ot = (e6, t2, n2) => {
653
- let r2 = e6.response?.data, i2 = e6.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Mt(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 };
654
- return kt(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e6.response?.status, requestId: i2 } });
653
+ var kt = (e6, t2, n2) => {
654
+ let r2 = e6.response?.data, i2 = e6.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Nt(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 };
655
+ return At(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e6.response?.status, requestId: i2 } });
655
656
  };
656
- var kt = (e6, { message: t2, extraProperties: n2 }) => Object.assign(e6, { ...n2, message: t2 });
657
- var At = (e6) => {
658
- 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 ?? yt(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 };
659
- return kt(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e6.requestId } });
657
+ var At = (e6, { message: t2, extraProperties: n2 }) => Object.assign(e6, { ...n2, message: t2 });
658
+ var jt = (e6) => {
659
+ 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 ?? bt(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 };
660
+ return At(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e6.requestId } });
660
661
  };
661
- var jt = (e6) => kt(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: yt(e6.response?.statusText ?? `UNKNOWN`), ...!e6.response && { runtimeError: e6 } } });
662
- var Mt = ({ spreadPathsToArguments: e6, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
662
+ var Mt = (e6) => At(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: bt(e6.response?.statusText ?? `UNKNOWN`), ...!e6.response && { runtimeError: e6 } } });
663
+ var Nt = ({ spreadPathsToArguments: e6, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
663
664
  let a2 = { ...e6, ...t2 }, o2 = Object.keys(a2);
664
665
  return r2?.filter((e7) => !r2.some((t3) => t3.field.length > e7.field.length && t3.field.startsWith(e7.field) && o2.includes(t3.field))).map((e7) => {
665
666
  let r3 = t2[e7.field];
666
- if (r3) return { ...e7, field: Nt(r3, i2) };
667
+ if (r3) return { ...e7, field: Pt(r3, i2) };
667
668
  let s2 = o2?.sort((e8, t3) => t3.length - e8.length)?.find((t3) => e7.field.startsWith(t3));
668
669
  if (s2) {
669
670
  let t3 = a2[s2];
670
- if (t3) return { ...e7, field: e7.field.replace(s2, Nt(t3, i2)) };
671
+ if (t3) return { ...e7, field: e7.field.replace(s2, Pt(t3, i2)) };
671
672
  }
672
673
  return n2 ? { ...e7, field: `${i2[0]}.${e7.field}` } : e7;
673
674
  });
674
675
  };
675
- var Nt = (e6, t2) => {
676
- let n2 = Pt(e6);
676
+ var Pt = (e6, t2) => {
677
+ let n2 = Ft(e6);
677
678
  return n2 == null ? e6 : e6.replace(`$[${n2}]`, t2[n2]);
678
679
  };
679
- var Pt = (e6) => {
680
+ var Ft = (e6) => {
680
681
  let t2 = e6.match(/\$\[(?<argIndex>\d+)\]/);
681
682
  return t2 && t2.groups && Number(t2.groups.argIndex);
682
683
  };
683
- function Ft() {
684
+ function It() {
684
685
  let e6 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
685
686
  if (e6) return { initWixModules(t3, n3) {
686
- return It(() => e6(t3, n3));
687
+ return Lt(() => e6(t3, n3));
687
688
  }, fetchWithAuth() {
688
689
  throw Error(`fetchWithAuth is not available in this context`);
689
690
  }, graphql() {
690
691
  throw Error(`graphql is not available in this context`);
691
692
  } };
692
- let t2 = typeof $wixContext < `u` ? $wixContext.client : y.client === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.client : y.client, n2 = typeof $wixContext < `u` ? $wixContext.elevatedClient : y.elevatedClient === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.elevatedClient : y.elevatedClient;
693
+ let t2 = typeof $wixContext < `u` ? $wixContext.client : b.client === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.client : b.client, n2 = typeof $wixContext < `u` ? $wixContext.elevatedClient : b.elevatedClient === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.elevatedClient : b.elevatedClient;
693
694
  if (t2 || n2) return { initWixModules(e7, r2) {
694
695
  if (r2) {
695
696
  if (!n2) throw Error(`An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules`);
696
- return It(() => n2.use(e7));
697
+ return Lt(() => n2.use(e7));
697
698
  }
698
699
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
699
- return It(() => t2.use(e7));
700
+ return Lt(() => t2.use(e7));
700
701
  }, fetchWithAuth: (e7, n3) => {
701
702
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
702
703
  return t2.fetchWithAuth(e7, n3);
@@ -708,110 +709,110 @@ function Ft() {
708
709
  return t2.graphql(e7, n3, r2);
709
710
  } };
710
711
  }
711
- function It(e6) {
712
- let t2 = globalThis.__wix_context__, n2 = { client: y.client, elevatedClient: y.elevatedClient }, r2;
713
- globalThis.__wix_context__ = void 0, y.client = void 0, y.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
712
+ function Lt(e6) {
713
+ let t2 = globalThis.__wix_context__, n2 = { client: b.client, elevatedClient: b.elevatedClient }, r2;
714
+ globalThis.__wix_context__ = void 0, b.client = void 0, b.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
714
715
  try {
715
716
  return e6();
716
717
  } finally {
717
- globalThis.__wix_context__ = t2, y.client = n2.client, y.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
718
+ globalThis.__wix_context__ = t2, b.client = n2.client, b.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
718
719
  }
719
720
  }
720
- function Lt(e6, t2) {
721
+ function Rt(e6, t2) {
721
722
  return (...n2) => {
722
- let r2 = Ft();
723
+ let r2 = It();
723
724
  return r2 ? r2.initWixModules(e6, t2).apply(void 0, n2) : e6.apply(void 0, n2);
724
725
  };
725
726
  }
726
727
  function M(e6, t2 = false) {
727
- return Lt(e6, t2);
728
+ return Rt(e6, t2);
728
729
  }
729
730
  function N(e6, t2) {
730
- let n2 = Rt(e6), r2 = Object.entries(n2).some(([e7, t3]) => e7.includes(`.`) || Array.isArray(t3) && t3.some((e8) => typeof e8 == `object`));
731
- return t2 && r2 ? new URLSearchParams({ ".r": Bt(JSON.stringify(e6)) }) : Object.entries(n2).reduce((e7, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
731
+ let n2 = zt(e6), r2 = Object.entries(n2).some(([e7, t3]) => e7.includes(`.`) || Array.isArray(t3) && t3.some((e8) => typeof e8 == `object`));
732
+ return t2 && r2 ? new URLSearchParams({ ".r": Vt(JSON.stringify(e6)) }) : Object.entries(n2).reduce((e7, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
732
733
  r3 == null || Array.isArray(n3) && typeof r3 == `object` || e7.append(t3, r3);
733
734
  }), e7), new URLSearchParams());
734
735
  }
735
736
  function P(e6) {
736
- let t2 = $t(Zt(e6.host), e6.domainToMappings);
737
- return ln(on(e6.protoPath, e6.data || {}), t2);
737
+ let t2 = en(Qt(e6.host), e6.domainToMappings);
738
+ return un(sn(e6.protoPath, e6.data || {}), t2);
738
739
  }
739
- function Rt(e6, t2 = ``) {
740
+ function zt(e6, t2 = ``) {
740
741
  let n2 = {};
741
742
  return Object.entries(e6).forEach(([e7, r2]) => {
742
- let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 = zt(t2, e7);
743
+ let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 = Bt(t2, e7);
743
744
  if (i2) {
744
- let e8 = Rt(r2, a2);
745
+ let e8 = zt(r2, a2);
745
746
  Object.assign(n2, e8);
746
747
  } else n2[a2] = r2;
747
748
  }), n2;
748
749
  }
749
- function zt(e6, t2) {
750
+ function Bt(e6, t2) {
750
751
  return `${e6}${e6 ? `.` : ``}${t2}`;
751
752
  }
752
- var Bt = (e6) => {
753
+ var Vt = (e6) => {
753
754
  let t2 = new TextEncoder().encode(e6);
754
755
  return (typeof btoa < `u` ? btoa(String.fromCodePoint(...t2)) : Buffer.from(e6, `utf-8`).toString(`base64`)).replace(/=/g, ``).replace(/\+/g, `-`).replace(/\//g, `_`);
755
756
  };
756
- var Vt = [`wix.com`, `editorx.com`];
757
- var Ht = `_`;
758
- var Ut = `*.`;
759
- var Wt = RegExp(`\\.(${Vt.join(`|`)})$`);
760
- var Gt = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
761
- var Kt = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
762
- var qt = `dev.wix-code.com`;
763
- var Jt = /{(.*)}/;
764
- var Yt = RegExp(`\\.(${Gt.join(`|`)})$`);
765
- var Xt = RegExp(`.*\\.${qt}$`);
766
- function Zt(e6) {
767
- return Qt(e6).replace(Wt, `._base_domain_`).replace(Yt, `._api_base_domain_`).replace(Xt, `*.dev.wix-code.com`);
768
- }
757
+ var Ht = [`wix.com`, `editorx.com`];
758
+ var Ut = `_`;
759
+ var Wt = `*.`;
760
+ var Gt = RegExp(`\\.(${Ht.join(`|`)})$`);
761
+ var Kt = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
762
+ var qt = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
763
+ var Jt = `dev.wix-code.com`;
764
+ var Yt = /{(.*)}/;
765
+ var Xt = RegExp(`\\.(${Kt.join(`|`)})$`);
766
+ var Zt = RegExp(`.*\\.${Jt}$`);
769
767
  function Qt(e6) {
770
- return Kt[e6] ?? e6;
768
+ return $t(e6).replace(Gt, `._base_domain_`).replace(Xt, `._api_base_domain_`).replace(Zt, `*.dev.wix-code.com`);
769
+ }
770
+ function $t(e6) {
771
+ return qt[e6] ?? e6;
771
772
  }
772
- function $t(e6, t2) {
773
+ function en(e6, t2) {
773
774
  let n2 = t2[e6];
774
775
  if (n2) return n2;
775
- let r2 = en(e6, t2) ?? tn(e6, t2);
776
+ let r2 = tn(e6, t2) ?? nn(e6, t2);
776
777
  if (!r2) {
777
- if (rn(e6)) {
778
- let e7 = t2[an];
778
+ if (an(e6)) {
779
+ let e7 = t2[on];
779
780
  if (e7) return e7;
780
781
  }
781
- let n3 = t2[Ht];
782
+ let n3 = t2[Ut];
782
783
  if (n3) return n3;
783
784
  }
784
785
  return r2 ?? [];
785
786
  }
786
- function en(e6, t2) {
787
+ function tn(e6, t2) {
787
788
  return Object.entries(t2).find(([t3]) => {
788
789
  let [, ...n2] = e6.split(`.`);
789
790
  return n2.join(`.`) === t3;
790
791
  })?.[1];
791
792
  }
792
- function tn(e6, t2) {
793
- let [n2] = Object.entries(t2).filter(([t3]) => nn(e6, t3)).sort(([e7], [t3]) => t3.length - e7.length);
793
+ function nn(e6, t2) {
794
+ let [n2] = Object.entries(t2).filter(([t3]) => rn(e6, t3)).sort(([e7], [t3]) => t3.length - e7.length);
794
795
  if (!n2) return;
795
796
  let [, r2] = n2;
796
797
  return r2;
797
798
  }
798
- function nn(e6, t2) {
799
- if (!t2.startsWith(Ut)) return false;
799
+ function rn(e6, t2) {
800
+ if (!t2.startsWith(Wt)) return false;
800
801
  let n2 = t2.slice(1);
801
802
  return e6.length > n2.length && e6.endsWith(n2);
802
803
  }
803
- function rn(e6) {
804
+ function an(e6) {
804
805
  return !!e6.match(/\._base_domain_$/);
805
806
  }
806
- var an = `www._base_domain_`;
807
- function on(e6, t2) {
808
- return e6.split(`/`).map((e7) => sn(e7, t2)).join(`/`);
809
- }
807
+ var on = `www._base_domain_`;
810
808
  function sn(e6, t2) {
811
- let n2 = e6.match(Jt) || [], r2 = n2[1];
812
- return r2 ? cn(t2, r2, e6, e6.replace(n2[0], ``)) : e6;
809
+ return e6.split(`/`).map((e7) => cn(e7, t2)).join(`/`);
810
+ }
811
+ function cn(e6, t2) {
812
+ let n2 = e6.match(Yt) || [], r2 = n2[1];
813
+ return r2 ? ln(t2, r2, e6, e6.replace(n2[0], ``)) : e6;
813
814
  }
814
- function cn(e6, t2, n2, r2) {
815
+ function ln(e6, t2, n2, r2) {
815
816
  let i2 = e6;
816
817
  for (let e7 of t2.split(`.`)) {
817
818
  if (!i2) return n2;
@@ -819,28 +820,28 @@ function cn(e6, t2, n2, r2) {
819
820
  }
820
821
  return `${i2}${r2}`;
821
822
  }
822
- function ln(e6, t2) {
823
+ function un(e6, t2) {
823
824
  let n2 = t2?.find((t3) => e6.startsWith(t3.destPath));
824
825
  return n2 ? n2.srcPath + e6.slice(n2.destPath.length) : e6;
825
826
  }
826
- function un(e6) {
827
+ function dn(e6) {
827
828
  return isFinite(e6) ? e6 : e6.toString();
828
829
  }
829
830
  function F(e6) {
830
831
  return e6 === `NaN` ? NaN : e6 === `Infinity` ? 1 / 0 : e6 === `-Infinity` ? -1 / 0 : e6;
831
832
  }
832
- function dn(e6) {
833
+ function fn(e6) {
833
834
  return Uint8Array.from(atob(e6), (e7) => e7.charCodeAt(0));
834
835
  }
835
- var fn = `modulepreload`;
836
- var pn = function(e6, t2) {
836
+ var pn = `modulepreload`;
837
+ var mn = function(e6, t2) {
837
838
  return new URL(e6, t2).href;
838
839
  };
839
- var mn = {};
840
- var hn = function(e6) {
840
+ var hn = {};
841
+ var gn = function(e6) {
841
842
  return e6.pathname.endsWith(`.css`);
842
843
  };
843
- var gn = function(e6, t2, n2) {
844
+ var _n = function(e6, t2, n2) {
844
845
  if (t2 in e6) return e6[t2];
845
846
  let r2 = n2();
846
847
  if (!r2) {
@@ -854,7 +855,7 @@ var gn = function(e6, t2, n2) {
854
855
  });
855
856
  return e6[t2] = i2, i2;
856
857
  };
857
- var _n = function(e6, t2, n2) {
858
+ var vn = function(e6, t2, n2) {
858
859
  let r2 = Promise.resolve();
859
860
  if (t2 && t2.length > 0) {
860
861
  let o3 = function(e8) {
@@ -865,9 +866,9 @@ var _n = function(e6, t2, n2) {
865
866
  var o2 = o3, s2 = s3;
866
867
  let e7, i3 = document.querySelector(`meta[property=csp-nonce]`), a2 = i3?.nonce || i3?.getAttribute(`nonce`);
867
868
  r2 = o3(t2.map((t3) => {
868
- t3 = pn(t3, n2);
869
- let r3 = s3(t3), i4 = hn(r3);
870
- return gn(mn, r3.href, () => {
869
+ t3 = mn(t3, n2);
870
+ let r3 = s3(t3), i4 = gn(r3);
871
+ return _n(hn, r3.href, () => {
871
872
  if (e7 === void 0) {
872
873
  e7 = { all: /* @__PURE__ */ new Set(), styles: /* @__PURE__ */ new Set() };
873
874
  let t5 = document.getElementsByTagName(`link`);
@@ -878,7 +879,7 @@ var _n = function(e6, t2, n2) {
878
879
  }
879
880
  if ((i4 ? e7.styles : e7.all).has(r3.href)) return;
880
881
  let t4 = document.createElement(`link`);
881
- if (t4.rel = i4 ? `stylesheet` : fn, i4 || (t4.as = `script`), t4.crossOrigin = ``, t4.href = r3.href, a2 && t4.setAttribute(`nonce`, a2), document.head.appendChild(t4), i4) return new Promise((e8, n3) => {
882
+ if (t4.rel = i4 ? `stylesheet` : pn, i4 || (t4.as = `script`), t4.crossOrigin = ``, t4.href = r3.href, a2 && t4.setAttribute(`nonce`, a2), document.head.appendChild(t4), i4) return new Promise((e8, n3) => {
882
883
  t4.addEventListener(`load`, e8), t4.addEventListener(`error`, () => n3(Error(`Unable to preload CSS for ${r3}`)));
883
884
  });
884
885
  });
@@ -893,30 +894,30 @@ var _n = function(e6, t2, n2) {
893
894
  return e6().catch(i2);
894
895
  });
895
896
  };
896
- var vn = `x-wix-linguist`;
897
- var yn = `00000000-0000-0000-0000-000000000000`;
898
- var bn = `false`;
899
- var xn = () => {
900
- let e6 = wn(`language`), t2 = wn(`locale`);
901
- if (e6) return { [vn]: [e6, t2 || e6, bn, yn].join(`|`) };
897
+ var yn = `x-wix-linguist`;
898
+ var bn = `00000000-0000-0000-0000-000000000000`;
899
+ var xn = `false`;
900
+ var Sn = () => {
901
+ let e6 = Tn(`language`), t2 = Tn(`locale`);
902
+ if (e6) return { [yn]: [e6, t2 || e6, xn, bn].join(`|`) };
902
903
  };
903
- function Sn() {
904
+ function Cn() {
904
905
  let e6 = null, t2 = null;
905
906
  return { promise: new Promise((n2, r2) => {
906
907
  e6 = n2, t2 = r2;
907
908
  }), resolve: e6, reject: t2 };
908
909
  }
909
- var Cn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
910
- var wn = (e6) => Cn()?.[e6];
911
- var Tn = ({ createHost: e6 }) => ({ __type: `host`, create: (e7) => ({}), host: (t2) => {
912
- let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e6(t2), o2 = Dn();
913
- return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: wn(`language`), locale: wn(`locale`), get passThroughHeaders() {
914
- return xn();
910
+ var wn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
911
+ var Tn = (e6) => wn()?.[e6];
912
+ var En = ({ createHost: e6 }) => ({ __type: `host`, create: (e7) => ({}), host: (t2) => {
913
+ let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e6(t2), o2 = On();
914
+ return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: Tn(`language`), locale: Tn(`locale`), get passThroughHeaders() {
915
+ return Sn();
915
916
  } } };
916
917
  }, auth: (e7) => {
917
918
  let t2 = typeof window < `u` ? window.wixEmbedsAPI : void 0;
918
- !e7 && En() && (e7 = t2?.getAccessTokenFunction?.());
919
- let n2 = false, { resolve: r2, promise: i2 } = Sn();
919
+ !e7 && Dn() && (e7 = t2?.getAccessTokenFunction?.());
920
+ let n2 = false, { resolve: r2, promise: i2 } = Cn();
920
921
  return { getAuthHeaders: async () => {
921
922
  if (!e7 && n2 && (e7 = await i2), !e7) throw Error(`Failed to resolve auth token`);
922
923
  return { headers: { Authorization: await e7() } };
@@ -924,50 +925,50 @@ var Tn = ({ createHost: e6 }) => ({ __type: `host`, create: (e7) => ({}), host:
924
925
  r2(e8);
925
926
  }) };
926
927
  } });
927
- function En() {
928
+ function Dn() {
928
929
  return typeof document < `u` && document.currentScript?.tagName === `SCRIPT`;
929
930
  }
930
- function Dn() {
931
+ function On() {
931
932
  let e6 = (typeof window < `u` ? window.wixEmbedsAPI : void 0)?.getExternalBaseUrl?.();
932
933
  if (!e6) return;
933
934
  let t2 = new URL(e6);
934
935
  return t2?.pathname && t2.pathname !== `/` ? `${t2.hostname}${t2.pathname}` : t2.hostname;
935
936
  }
936
- var On = ({ clientSdk: e6, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
937
+ var kn = ({ clientSdk: e6, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
937
938
  if (!e6) throw Error(`Wix Site SDK only works in a Wix site environment. Learn more: https://dev.wix.com/docs/sdk/host-modules/site/introduction`);
938
939
  return e6.invoke({ namespace: n2, method: r2, args: i2, applicationId: t2, accessToken: `accessToken` });
939
940
  }, getAccessToken: () => {
940
941
  throw Error(`Not implemented`);
941
942
  }, observeState: () => ({ disconnect: () => {
942
943
  } }) });
943
- var kn = Tn({ createHost: function(e6) {
944
+ var An = En({ createHost: function(e6) {
944
945
  let t2 = (typeof $wixContext < `u` ? $wixContext.clientSdk : void 0) ?? e6?.clientSdk ?? (typeof window < `u` ? window?.clientSdk : void 0), { applicationId: n2 } = e6 || {};
945
946
  if (!n2) throw Error(`"createHost" was called without a required field "applicationId"`);
946
- return { channel: On({ clientSdk: t2, applicationId: n2 }), close: () => {
947
+ return { channel: kn({ clientSdk: t2, applicationId: n2 }), close: () => {
947
948
  } };
948
949
  } });
949
- var An = (e6, t2) => {
950
- let n2 = kn.host({ applicationId: e6, componentId: t2 }), r2 = kn.auth();
951
- return Je({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
950
+ var jn = (e6, t2) => {
951
+ let n2 = An.host({ applicationId: e6, componentId: t2 }), r2 = An.auth();
952
+ return Ye({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
952
953
  };
953
- var jn = (e6) => An(`14bcded7-0066-7c35-14d7-466cb3f09103`, e6);
954
- function Mn() {
954
+ var Mn = (e6) => jn(`14bcded7-0066-7c35-14d7-466cb3f09103`, e6);
955
+ function Nn() {
955
956
  let e6 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
956
957
  if (e6) return { initWixModules(t3, n3) {
957
- return Nn(() => e6(t3, n3));
958
+ return Pn(() => e6(t3, n3));
958
959
  }, fetchWithAuth() {
959
960
  throw Error(`fetchWithAuth is not available in this context`);
960
961
  }, graphql() {
961
962
  throw Error(`graphql is not available in this context`);
962
963
  } };
963
- let t2 = typeof $wixContext < `u` ? $wixContext.client : y.client === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.client : y.client, n2 = typeof $wixContext < `u` ? $wixContext.elevatedClient : y.elevatedClient === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.elevatedClient : y.elevatedClient;
964
+ let t2 = typeof $wixContext < `u` ? $wixContext.client : b.client === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.client : b.client, n2 = typeof $wixContext < `u` ? $wixContext.elevatedClient : b.elevatedClient === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.elevatedClient : b.elevatedClient;
964
965
  if (t2 || n2) return { initWixModules(e7, r2) {
965
966
  if (r2) {
966
967
  if (!n2) throw Error(`An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules`);
967
- return Nn(() => n2.use(e7));
968
+ return Pn(() => n2.use(e7));
968
969
  }
969
970
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
970
- return Nn(() => t2.use(e7));
971
+ return Pn(() => t2.use(e7));
971
972
  }, fetchWithAuth: (e7, n3) => {
972
973
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
973
974
  return t2.fetchWithAuth(e7, n3);
@@ -979,26 +980,26 @@ function Mn() {
979
980
  return t2.graphql(e7, n3, r2);
980
981
  } };
981
982
  }
982
- function Nn(e6) {
983
- let t2 = globalThis.__wix_context__, n2 = { client: y.client, elevatedClient: y.elevatedClient }, r2;
984
- globalThis.__wix_context__ = void 0, y.client = void 0, y.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
983
+ function Pn(e6) {
984
+ let t2 = globalThis.__wix_context__, n2 = { client: b.client, elevatedClient: b.elevatedClient }, r2;
985
+ globalThis.__wix_context__ = void 0, b.client = void 0, b.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
985
986
  try {
986
987
  return e6();
987
988
  } finally {
988
- globalThis.__wix_context__ = t2, y.client = n2.client, y.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
989
+ globalThis.__wix_context__ = t2, b.client = n2.client, b.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
989
990
  }
990
991
  }
991
- function Pn(e6, t2) {
992
+ function Fn(e6, t2) {
992
993
  return { ...e6, ...Object.fromEntries(t2.map((t3) => [t3, (...n2) => {
993
- let r2 = Mn();
994
+ let r2 = Nn();
994
995
  if (!r2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
995
996
  return r2.initWixModules(e6)[t3].apply(void 0, n2);
996
997
  }])) };
997
998
  }
998
- function Fn(e6) {
999
- return Pn({ __type: `host`, create: (t2) => Object.entries(e6).reduce((e7, [n2, r2]) => ({ ...e7, [n2]: r2(t2) }), {}) }, Object.keys(e6));
999
+ function In(e6) {
1000
+ return Fn({ __type: `host`, create: (t2) => Object.entries(e6).reduce((e7, [n2, r2]) => ({ ...e7, [n2]: r2(t2) }), {}) }, Object.keys(e6));
1000
1001
  }
1001
- var In = class {
1002
+ var Ln = class {
1002
1003
  constructor(e6) {
1003
1004
  this.message = e6, this.captureException = () => {
1004
1005
  console.error(this.message);
@@ -1013,13 +1014,13 @@ var In = class {
1013
1014
  };
1014
1015
  }
1015
1016
  };
1016
- var Ln = (e6) => new In(e6);
1017
- var Rn = Fn({ getMonitoringClient: (e6) => () => e6.getMonitoringClient ? e6.getMonitoringClient() : Ln(`Host monitoring client is not available on the current host. Make sure to use an updated version of the host initialization package.`) });
1018
- function zn(e6) {
1017
+ var Rn = (e6) => new Ln(e6);
1018
+ var zn = In({ getMonitoringClient: (e6) => () => e6.getMonitoringClient ? e6.getMonitoringClient() : Rn(`Host monitoring client is not available on the current host. Make sure to use an updated version of the host initialization package.`) });
1019
+ function Bn(e6) {
1019
1020
  let t2 = Promise.resolve(e6);
1020
1021
  return t2.status = `fulfilled`, t2.value = e6, t2;
1021
1022
  }
1022
- function Bn(e6) {
1023
+ function Vn(e6) {
1023
1024
  if (e6.status === `fulfilled`) return e6.value;
1024
1025
  throw e6.status === `rejected` ? e6.reason : (e6.status === `pending` || (e6.status = `pending`, e6.then((t2) => {
1025
1026
  e6.status = `fulfilled`, e6.value = t2;
@@ -1027,17 +1028,17 @@ function Bn(e6) {
1027
1028
  e6.status = `rejected`, e6.reason = t2;
1028
1029
  })), e6);
1029
1030
  }
1030
- var Vn = /* @__PURE__ */ new WeakMap();
1031
- function Hn(e6, t2, n2) {
1032
- let r2 = Vn.get(e6);
1033
- r2 || (r2 = /* @__PURE__ */ new WeakMap(), Vn.set(e6, r2));
1031
+ var Hn = /* @__PURE__ */ new WeakMap();
1032
+ function Un(e6, t2, n2) {
1033
+ let r2 = Hn.get(e6);
1034
+ r2 || (r2 = /* @__PURE__ */ new WeakMap(), Hn.set(e6, r2));
1034
1035
  let i2 = r2.get(t2);
1035
1036
  i2 || (i2 = /* @__PURE__ */ new WeakMap(), r2.set(t2, i2));
1036
1037
  let a2 = i2.get(n2);
1037
1038
  if (!a2) {
1038
- if (e6.status === `fulfilled`) a2 = zn(t2(e6.value));
1039
+ if (e6.status === `fulfilled`) a2 = Bn(t2(e6.value));
1039
1040
  else if (e6.status === `rejected`) try {
1040
- a2 = zn(n2(e6.reason));
1041
+ a2 = Bn(n2(e6.reason));
1041
1042
  } catch {
1042
1043
  a2 = e6.then(t2, n2);
1043
1044
  }
@@ -1049,33 +1050,33 @@ function Hn(e6, t2, n2) {
1049
1050
  function I(e6) {
1050
1051
  return e6;
1051
1052
  }
1052
- var Un = I(`@wix/site-service-rendering-context`);
1053
- var Wn = () => {
1053
+ var Wn = I(`@wix/site-service-rendering-context`);
1054
+ var Gn = () => {
1054
1055
  try {
1055
- return (0, import_services_manager_react.useService)(Un).SSR;
1056
+ return (0, import_services_manager_react.useService)(Wn).SSR;
1056
1057
  } catch {
1057
1058
  return false;
1058
1059
  }
1059
1060
  };
1060
- var Gn = (e6, t2) => e6.length === t2.length && e6.every((e7, n2) => Object.is(e7, t2[n2]));
1061
- function Kn(e6, t2) {
1061
+ var Kn = (e6, t2) => e6.length === t2.length && e6.every((e7, n2) => Object.is(e7, t2[n2]));
1062
+ function qn(e6, t2) {
1062
1063
  let [n2, r2] = (0, import_react.useState)(() => ({ deps: t2, value: e6() }));
1063
1064
  return (0, import_react.useEffect)(() => {
1064
- if (Gn(n2.deps, t2)) return;
1065
+ if (Kn(n2.deps, t2)) return;
1065
1066
  let i2 = e6();
1066
1067
  (0, import_react.startTransition)(() => r2({ deps: t2, value: i2 }));
1067
1068
  }, t2), n2.value;
1068
1069
  }
1069
- var qn = I(`@wix/viewer-service-site-members`);
1070
- var Jn = () => {
1070
+ var Jn = I(`@wix/viewer-service-site-members`);
1071
+ var Yn = () => {
1071
1072
  try {
1072
- return (0, import_services_manager_react.useService)(qn);
1073
+ return (0, import_services_manager_react.useService)(Jn);
1073
1074
  } catch {
1074
1075
  return;
1075
1076
  }
1076
1077
  };
1077
- var Yn = (e6, t2) => {
1078
- let n2 = Jn(), [r2, i2] = (0, import_react.useState)(), a2 = !!e6.post?.preview;
1078
+ var Xn = (e6, t2) => {
1079
+ let n2 = Yn(), [r2, i2] = (0, import_react.useState)(), a2 = !!e6.post?.preview;
1079
1080
  return (0, import_react.useEffect)(() => {
1080
1081
  if (!a2) return;
1081
1082
  let e7 = true, r3 = () => {
@@ -1093,18 +1094,18 @@ var Yn = (e6, t2) => {
1093
1094
  };
1094
1095
  }, [a2, t2, n2]), (0, import_react.useMemo)(() => a2 && r2 && r2._id === e6.post?._id ? { ...e6, post: r2, paywall: void 0 } : e6, [a2, r2, e6]);
1095
1096
  };
1096
- var Xn = I(`@wix/site-service-url`);
1097
- var Zn = `14bcded7-0066-7c35-14d7-466cb3f09103`;
1098
- var Qn = `post`;
1099
- var $n = `category`;
1100
- var er = `builder-post`;
1101
- var tr = `__blog_unknown_section__`;
1102
- var nr = (e6) => {
1097
+ var Zn = I(`@wix/site-service-url`);
1098
+ var Qn = `14bcded7-0066-7c35-14d7-466cb3f09103`;
1099
+ var $n = `post`;
1100
+ var er = `category`;
1101
+ var tr = `builder-post`;
1102
+ var nr = `__blog_unknown_section__`;
1103
+ var rr = (e6) => {
1103
1104
  let t2;
1104
1105
  try {
1105
- let n3 = e6.appSectionRelativeUrl(Zn, er);
1106
- if (n3 === e6.appSectionRelativeUrl(`14bcded7-0066-7c35-14d7-466cb3f09103`, tr) && !n3?.endsWith(`/post-page`)) return;
1107
- t2 = e6.appSectionRelativeUrl(Zn, er, true);
1106
+ let n3 = e6.appSectionRelativeUrl(Qn, tr);
1107
+ if (n3 === e6.appSectionRelativeUrl(`14bcded7-0066-7c35-14d7-466cb3f09103`, nr) && !n3?.endsWith(`/post-page`)) return;
1108
+ t2 = e6.appSectionRelativeUrl(Qn, tr, true);
1108
1109
  } catch {
1109
1110
  return;
1110
1111
  }
@@ -1112,12 +1113,12 @@ var nr = (e6) => {
1112
1113
  let n2 = t2.split(`/`).filter(Boolean);
1113
1114
  return n2[n2.length - 1] === `post-page` && n2.pop(), n2.length > 0 ? n2.join(`/`) : void 0;
1114
1115
  };
1115
- var rr = (e6) => `${e6}/${Qn}`;
1116
- var ir = (e6) => {
1117
- let t2 = nr(e6);
1118
- if (t2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${rr(t2)}`;
1116
+ var ir = (e6) => `${e6}/${$n}`;
1117
+ var ar = (e6) => {
1118
+ let t2 = rr(e6);
1119
+ if (t2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${ir(t2)}`;
1119
1120
  };
1120
- var ar = (e6, t2) => {
1121
+ var or = (e6, t2) => {
1121
1122
  if (!e6 || !t2) return;
1122
1123
  let n2;
1123
1124
  try {
@@ -1131,14 +1132,14 @@ var ar = (e6, t2) => {
1131
1132
  if (r2.endsWith(t3) && i2.endsWith(`/post`)) return `${n2.origin}${i2}`;
1132
1133
  }
1133
1134
  };
1134
- var or = (e6) => {
1135
+ var sr = (e6) => {
1135
1136
  if (!e6) return;
1136
1137
  if (typeof e6 == `string`) return e6;
1137
1138
  let { base: t2, path: n2 } = e6;
1138
1139
  return t2 ? `${t2.replace(/\/+$/, ``)}${n2 ?? ``}` : void 0;
1139
1140
  };
1140
- var sr = (e6, t2) => {
1141
- let n2 = or(e6.url), r2 = `/${Qn}`;
1141
+ var cr = (e6, t2) => {
1142
+ let n2 = sr(e6.url), r2 = `/${$n}`;
1142
1143
  if (!n2 || !t2?.endsWith(r2)) return;
1143
1144
  let i2, a2;
1144
1145
  try {
@@ -1149,41 +1150,41 @@ var sr = (e6, t2) => {
1149
1150
  let o2 = a2.slice(0, -r2.length);
1150
1151
  return o2 && i2.startsWith(`${o2}/`) && !i2.startsWith(`${a2}/`) ? n2 : void 0;
1151
1152
  };
1152
- var cr = (e6, t2) => {
1153
- let n2 = sr(e6, t2);
1153
+ var lr = (e6, t2) => {
1154
+ let n2 = cr(e6, t2);
1154
1155
  if (n2) return { href: n2, target: `_self` };
1155
1156
  if (t2 && e6.slug) return { href: `${t2}/${encodeURIComponent(e6.slug)}`, target: `_self` };
1156
- let r2 = or(e6.url);
1157
+ let r2 = sr(e6.url);
1157
1158
  return r2 ? { href: r2, target: `_self` } : void 0;
1158
1159
  };
1159
- var lr = (e6, t2) => {
1160
- let n2 = nr(e6);
1160
+ var ur = (e6, t2) => {
1161
+ let n2 = rr(e6);
1161
1162
  if (n2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${n2}/${t2}`;
1162
1163
  };
1163
- var ur = (e6) => {
1164
+ var dr = (e6) => {
1164
1165
  let t2;
1165
1166
  try {
1166
- t2 = (0, import_services_manager_react.useService)(Xn);
1167
+ t2 = (0, import_services_manager_react.useService)(Zn);
1167
1168
  } catch {
1168
1169
  return;
1169
1170
  }
1170
- return ir(t2) ?? ar(t2.currentUrl, e6);
1171
+ return ar(t2) ?? or(t2.currentUrl, e6);
1171
1172
  };
1172
- var dr = { categoryHeader: `WixBlog.CategoryHeader`, coverMedia: `WixBlog.PostCoverMedia`, postActions: `WixBlog.PostActionBar`, postCategories: `WixBlog.PostCategoryList`, postCounters: `WixBlog.PostCounterBar`, postMetadata: `WixBlog.PostMetadataBar`, postTags: `WixBlog.PostTagList`, feedProvider: `WixBlog.BlogFeedContextProvider`, postBySlugProvider: `WixBlog.PostBySlugContextProvider`, postByIdProvider: `WixBlog.PostByIdContextProvider`, relatedPostsProvider: `WixBlog.RelatedPostsContextProvider` };
1173
- var fr = (e6) => `${e6} rendered`;
1174
- var pr = (e6, t2, n2) => {
1173
+ var fr = { categoryHeader: `WixBlog.CategoryHeader`, coverMedia: `WixBlog.PostCoverMedia`, postActions: `WixBlog.PostActionBar`, postCategories: `WixBlog.PostCategoryList`, postCounters: `WixBlog.PostCounterBar`, postMetadata: `WixBlog.PostMetadataBar`, postTags: `WixBlog.PostTagList`, feedProvider: `WixBlog.BlogFeedContextProvider`, postBySlugProvider: `WixBlog.PostBySlugContextProvider`, postByIdProvider: `WixBlog.PostByIdContextProvider`, relatedPostsProvider: `WixBlog.RelatedPostsContextProvider` };
1174
+ var pr = (e6) => `${e6} rendered`;
1175
+ var mr = (e6, t2, n2) => {
1175
1176
  (0, import_react.useEffect)(() => {
1176
1177
  if (t2 !== `loading` && typeof performance < `u` && typeof performance.mark == `function`) try {
1177
- performance.mark(fr(e6), { detail: { state: t2, compId: n2 } });
1178
+ performance.mark(pr(e6), { detail: { state: t2, compId: n2 } });
1178
1179
  } catch {
1179
1180
  }
1180
1181
  }, [e6, t2, n2]);
1181
1182
  };
1182
- var mr = I(`@wix/site-service-warmup-data`);
1183
- function hr() {
1184
- let e6 = Wn(), t2 = null;
1183
+ var hr = I(`@wix/site-service-warmup-data`);
1184
+ function gr() {
1185
+ let e6 = Gn(), t2 = null;
1185
1186
  try {
1186
- t2 = (0, import_services_manager_react.useGetService)()(mr);
1187
+ t2 = (0, import_services_manager_react.useGetService)()(hr);
1187
1188
  } catch {
1188
1189
  }
1189
1190
  return (0, import_react.useMemo)(() => ({ isServer: e6, scope: t2 ?? void 0, get: async (n2) => {
@@ -1200,13 +1201,13 @@ function hr() {
1200
1201
  }
1201
1202
  } }), [e6, t2]);
1202
1203
  }
1203
- var gr = () => {
1204
+ var _r = () => {
1204
1205
  let e6 = /* @__PURE__ */ new Map();
1205
1206
  return { getOrInsert: (t2, n2) => (e6.has(t2) || e6.set(t2, n2().finally(() => {
1206
1207
  e6.delete(t2);
1207
1208
  })), e6.get(t2)) };
1208
1209
  };
1209
- var _r = async (e6) => {
1210
+ var vr = async (e6) => {
1210
1211
  try {
1211
1212
  let { default: t2 } = await e6();
1212
1213
  return t2;
@@ -1214,9 +1215,9 @@ var _r = async (e6) => {
1214
1215
  return;
1215
1216
  }
1216
1217
  };
1217
- var vr = ({ isDev: e6, loadMessages: t2, loadDevMessages: n2 }) => {
1218
- let r2 = gr(), i2 = async (r3) => {
1219
- let [i3, a2] = await Promise.all([_r(() => t2(r3)), !e6 || !n2 ? void 0 : _r(() => n2(r3))]);
1218
+ var yr = ({ isDev: e6, loadMessages: t2, loadDevMessages: n2 }) => {
1219
+ let r2 = _r(), i2 = async (r3) => {
1220
+ let [i3, a2] = await Promise.all([vr(() => t2(r3)), !e6 || !n2 ? void 0 : vr(() => n2(r3))]);
1220
1221
  if (i3 && a2) return { ...i3, ...a2 };
1221
1222
  if (i3) return i3;
1222
1223
  if (a2) return a2;
@@ -1231,25 +1232,25 @@ var R = () => {
1231
1232
  });
1232
1233
  return n2.resolve = e6, n2.reject = t2, n2;
1233
1234
  };
1234
- var yr = (e6) => e6 == null ? `` : String(e6);
1235
- var br = (e6, t2, n2) => {
1235
+ var br = (e6) => e6 == null ? `` : String(e6);
1236
+ var xr = (e6, t2, n2) => {
1236
1237
  e6.forEach((e7) => {
1237
1238
  t2[e7] && (n2[e7] = t2[e7]);
1238
1239
  });
1239
1240
  };
1240
- var xr = /###/g;
1241
- var Sr = (e6) => e6 && e6.includes(`###`) ? e6.replace(xr, `.`) : e6;
1242
- var Cr = (e6) => !e6 || L(e6);
1241
+ var Sr = /###/g;
1242
+ var Cr = (e6) => e6 && e6.includes(`###`) ? e6.replace(Sr, `.`) : e6;
1243
+ var wr = (e6) => !e6 || L(e6);
1243
1244
  var z = (e6, t2, n2) => {
1244
1245
  let r2 = L(t2) ? t2.split(`.`) : t2, i2 = 0;
1245
1246
  for (; i2 < r2.length - 1; ) {
1246
- if (Cr(e6)) return {};
1247
- let t3 = Sr(r2[i2]);
1247
+ if (wr(e6)) return {};
1248
+ let t3 = Cr(r2[i2]);
1248
1249
  !e6[t3] && n2 && (e6[t3] = new n2()), e6 = Object.prototype.hasOwnProperty.call(e6, t3) ? e6[t3] : {}, ++i2;
1249
1250
  }
1250
- return Cr(e6) ? {} : { obj: e6, k: Sr(r2[i2]) };
1251
+ return wr(e6) ? {} : { obj: e6, k: Cr(r2[i2]) };
1251
1252
  };
1252
- var wr = (e6, t2, n2) => {
1253
+ var Tr = (e6, t2, n2) => {
1253
1254
  let { obj: r2, k: i2 } = z(e6, t2, Object);
1254
1255
  if (r2 !== void 0 || t2.length === 1) {
1255
1256
  r2[i2] = n2;
@@ -1259,26 +1260,26 @@ var wr = (e6, t2, n2) => {
1259
1260
  for (; s2.obj === void 0 && o2.length; ) a2 = `${o2[o2.length - 1]}.${a2}`, o2 = o2.slice(0, o2.length - 1), s2 = z(e6, o2, Object), s2?.obj && s2.obj[`${s2.k}.${a2}`] !== void 0 && (s2.obj = void 0);
1260
1261
  s2.obj[`${s2.k}.${a2}`] = n2;
1261
1262
  };
1262
- var Tr = (e6, t2, n2, r2) => {
1263
+ var Er = (e6, t2, n2, r2) => {
1263
1264
  let { obj: i2, k: a2 } = z(e6, t2, Object);
1264
1265
  i2[a2] = i2[a2] || [], i2[a2].push(n2);
1265
1266
  };
1266
- var Er = (e6, t2) => {
1267
+ var Dr = (e6, t2) => {
1267
1268
  let { obj: n2, k: r2 } = z(e6, t2);
1268
1269
  if (n2 && Object.prototype.hasOwnProperty.call(n2, r2)) return n2[r2];
1269
1270
  };
1270
- var Dr = (e6, t2, n2) => {
1271
- let r2 = Er(e6, n2);
1272
- return r2 === void 0 ? Er(t2, n2) : r2;
1273
- };
1274
1271
  var Or = (e6, t2, n2) => {
1275
- for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (Object.prototype.hasOwnProperty.call(e6, r2) ? L(e6[r2]) || e6[r2] instanceof String || L(t2[r2]) || t2[r2] instanceof String ? n2 && (e6[r2] = t2[r2]) : Or(e6[r2], t2[r2], n2) : e6[r2] = t2[r2]);
1272
+ let r2 = Dr(e6, n2);
1273
+ return r2 === void 0 ? Dr(t2, n2) : r2;
1274
+ };
1275
+ var kr = (e6, t2, n2) => {
1276
+ for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (Object.prototype.hasOwnProperty.call(e6, r2) ? L(e6[r2]) || e6[r2] instanceof String || L(t2[r2]) || t2[r2] instanceof String ? n2 && (e6[r2] = t2[r2]) : kr(e6[r2], t2[r2], n2) : e6[r2] = t2[r2]);
1276
1277
  return e6;
1277
1278
  };
1278
1279
  var B = (e6) => e6.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
1279
- var kr = { "&": `&amp;`, "<": `&lt;`, ">": `&gt;`, '"': `&quot;`, "'": `&#39;`, "/": `&#x2F;` };
1280
- var Ar = (e6) => L(e6) ? e6.replace(/[&<>"'\/]/g, (e7) => kr[e7]) : e6;
1281
- var jr = class {
1280
+ var Ar = { "&": `&amp;`, "<": `&lt;`, ">": `&gt;`, '"': `&quot;`, "'": `&#39;`, "/": `&#x2F;` };
1281
+ var jr = (e6) => L(e6) ? e6.replace(/[&<>"'\/]/g, (e7) => Ar[e7]) : e6;
1282
+ var Mr = class {
1282
1283
  constructor(e6) {
1283
1284
  this.capacity = e6, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
1284
1285
  }
@@ -1289,20 +1290,20 @@ var jr = class {
1289
1290
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e6, n2), this.regExpQueue.push(e6), n2;
1290
1291
  }
1291
1292
  };
1292
- var Mr = [` `, `,`, `?`, `!`, `;`];
1293
- var Nr = new jr(20);
1294
- var Pr = (e6, t2, n2) => {
1293
+ var Nr = [` `, `,`, `?`, `!`, `;`];
1294
+ var Pr = new Mr(20);
1295
+ var Fr = (e6, t2, n2) => {
1295
1296
  t2 ||= ``, n2 ||= ``;
1296
- let r2 = Mr.filter((e7) => !t2.includes(e7) && !n2.includes(e7));
1297
+ let r2 = Nr.filter((e7) => !t2.includes(e7) && !n2.includes(e7));
1297
1298
  if (r2.length === 0) return true;
1298
- let i2 = Nr.getRegExp(`(${r2.map((e7) => e7 === `?` ? `\\?` : e7).join(`|`)})`), a2 = !i2.test(e6);
1299
+ let i2 = Pr.getRegExp(`(${r2.map((e7) => e7 === `?` ? `\\?` : e7).join(`|`)})`), a2 = !i2.test(e6);
1299
1300
  if (!a2) {
1300
1301
  let t3 = e6.indexOf(n2);
1301
1302
  t3 > 0 && !i2.test(e6.substring(0, t3)) && (a2 = true);
1302
1303
  }
1303
1304
  return a2;
1304
1305
  };
1305
- var Fr = (e6, t2, n2 = `.`) => {
1306
+ var Ir = (e6, t2, n2 = `.`) => {
1306
1307
  if (!e6) return;
1307
1308
  if (e6[t2]) return Object.prototype.hasOwnProperty.call(e6, t2) ? e6[t2] : void 0;
1308
1309
  let r2 = t2.split(n2), i2 = e6;
@@ -1319,7 +1320,7 @@ var Fr = (e6, t2, n2 = `.`) => {
1319
1320
  return i2;
1320
1321
  };
1321
1322
  var V = (e6) => e6?.replace(/_/g, `-`);
1322
- var Ir = { type: `logger`, log(e6) {
1323
+ var Lr = { type: `logger`, log(e6) {
1323
1324
  this.output(`log`, e6);
1324
1325
  }, warn(e6) {
1325
1326
  this.output(`warn`, e6);
@@ -1333,7 +1334,7 @@ var H = new class e2 {
1333
1334
  this.init(e6, t2);
1334
1335
  }
1335
1336
  init(e6, t2 = {}) {
1336
- this.prefix = t2.prefix || `i18next:`, this.logger = e6 || Ir, this.options = t2, this.debug = t2.debug;
1337
+ this.prefix = t2.prefix || `i18next:`, this.logger = e6 || Lr, this.options = t2, this.debug = t2.debug;
1337
1338
  }
1338
1339
  log(...e6) {
1339
1340
  return this.forward(e6, `log`, ``, true);
@@ -1357,7 +1358,7 @@ var H = new class e2 {
1357
1358
  return t2 ||= this.options, t2.prefix = t2.prefix || this.prefix, new e2(this.logger, t2);
1358
1359
  }
1359
1360
  }();
1360
- var Lr = class {
1361
+ var Rr = class {
1361
1362
  constructor() {
1362
1363
  this.observers = {};
1363
1364
  }
@@ -1385,8 +1386,8 @@ var Lr = class {
1385
1386
  });
1386
1387
  }
1387
1388
  };
1388
- var Rr = /* @__PURE__ */ new WeakSet();
1389
- var zr = class extends Lr {
1389
+ var zr = /* @__PURE__ */ new WeakSet();
1390
+ var Br = class extends Rr {
1390
1391
  constructor(e6, t2 = { ns: [`translation`], defaultNS: `translation` }) {
1391
1392
  super(), this.data = e6 || {}, this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.options.ignoreJSONStructure === void 0 && (this.options.ignoreJSONStructure = true);
1392
1393
  }
@@ -1400,12 +1401,12 @@ var zr = class extends Lr {
1400
1401
  getResource(e6, t2, n2, r2 = {}) {
1401
1402
  let i2 = r2.keySeparator === void 0 ? this.options.keySeparator : r2.keySeparator, a2 = r2.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r2.ignoreJSONStructure, o2;
1402
1403
  e6.includes(`.`) ? o2 = e6.split(`.`) : (o2 = [e6, t2], n2 && (Array.isArray(n2) ? o2.push(...n2) : L(n2) && i2 ? o2.push(...n2.split(i2)) : o2.push(n2)));
1403
- let s2 = Er(this.data, o2);
1404
- return !s2 && !t2 && !n2 && e6.includes(`.`) && (e6 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !L(n2) ? s2 : Fr(this.data?.[e6]?.[t2], n2, i2);
1404
+ let s2 = Dr(this.data, o2);
1405
+ return !s2 && !t2 && !n2 && e6.includes(`.`) && (e6 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !L(n2) ? s2 : Ir(this.data?.[e6]?.[t2], n2, i2);
1405
1406
  }
1406
1407
  addResource(e6, t2, n2, r2, i2 = { silent: false }) {
1407
1408
  let a2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, o2 = [e6, t2];
1408
- n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e6.includes(`.`) && (o2 = e6.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2), wr(this.data, o2, r2), i2.silent || this.emit(`added`, e6, t2, n2, r2);
1409
+ n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e6.includes(`.`) && (o2 = e6.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2), Tr(this.data, o2, r2), i2.silent || this.emit(`added`, e6, t2, n2, r2);
1409
1410
  }
1410
1411
  addResources(e6, t2, n2, r2 = { silent: false }) {
1411
1412
  for (let r3 in n2) (L(n2[r3]) || Array.isArray(n2[r3])) && this.addResource(e6, t2, r3, n2[r3], { silent: true });
@@ -1414,8 +1415,8 @@ var zr = class extends Lr {
1414
1415
  addResourceBundle(e6, t2, n2, r2, i2, a2 = { silent: false, skipCopy: false }) {
1415
1416
  let o2 = [e6, t2];
1416
1417
  e6.includes(`.`) && (o2 = e6.split(`.`), r2 = n2, n2 = t2, t2 = o2[1]), this.addNamespaces(t2);
1417
- let s2 = Er(this.data, o2) || {};
1418
- a2.skipCopy || (n2 = JSON.parse(JSON.stringify(n2))), r2 ? Or(s2, n2, i2) : s2 = { ...s2, ...n2 }, wr(this.data, o2, s2), a2.silent || this.emit(`added`, e6, t2, n2);
1418
+ let s2 = Dr(this.data, o2) || {};
1419
+ a2.skipCopy || (n2 = JSON.parse(JSON.stringify(n2))), r2 ? kr(s2, n2, i2) : s2 = { ...s2, ...n2 }, Tr(this.data, o2, s2), a2.silent || this.emit(`added`, e6, t2, n2);
1419
1420
  }
1420
1421
  removeResourceBundle(e6, t2) {
1421
1422
  this.hasResourceBundle(e6, t2) && delete this.data[e6][t2], this.removeNamespaces(t2), this.emit(`removed`, e6, t2);
@@ -1433,37 +1434,37 @@ var zr = class extends Lr {
1433
1434
  let t2 = this.getDataByLanguage(e6);
1434
1435
  return !!(t2 && Object.keys(t2) || []).find((e7) => {
1435
1436
  let n2 = t2[e7];
1436
- return Rr.has(n2) ? true : !n2 || Object.keys(n2).length === 0 ? false : (typeof n2 == `object` && Rr.add(n2), true);
1437
+ return zr.has(n2) ? true : !n2 || Object.keys(n2).length === 0 ? false : (typeof n2 == `object` && zr.add(n2), true);
1437
1438
  });
1438
1439
  }
1439
1440
  toJSON() {
1440
1441
  return this.data;
1441
1442
  }
1442
1443
  };
1443
- var Br = { processors: {}, addPostProcessor(e6) {
1444
+ var Vr = { processors: {}, addPostProcessor(e6) {
1444
1445
  this.processors[e6.name] = e6;
1445
1446
  }, handle(e6, t2, n2, r2, i2) {
1446
1447
  return e6.forEach((e7) => {
1447
1448
  t2 = this.processors[e7]?.process(t2, n2, r2, i2) ?? t2;
1448
1449
  }), t2;
1449
1450
  } };
1450
- var Vr = Symbol(`i18next/PATH_KEY`);
1451
- function Hr() {
1451
+ var Hr = Symbol(`i18next/PATH_KEY`);
1452
+ function Ur() {
1452
1453
  let e6 = [], t2 = /* @__PURE__ */ Object.create(null), n2;
1453
- return t2.get = (r2, i2) => (n2?.revoke?.(), i2 === Vr ? e6 : (e6.push(i2), n2 = Proxy.revocable(r2, t2), n2.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), t2).proxy;
1454
+ return t2.get = (r2, i2) => (n2?.revoke?.(), i2 === Hr ? e6 : (e6.push(i2), n2 = Proxy.revocable(r2, t2), n2.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), t2).proxy;
1454
1455
  }
1455
1456
  function U(e6, t2) {
1456
- let { [Vr]: n2 } = e6(Hr()), r2 = t2?.keySeparator ?? `.`, i2 = t2?.nsSeparator ?? `:`, a2 = t2?.enableSelector === `strict`;
1457
+ let { [Hr]: n2 } = e6(Ur()), r2 = t2?.keySeparator ?? `.`, i2 = t2?.nsSeparator ?? `:`, a2 = t2?.enableSelector === `strict`;
1457
1458
  if (n2.length > 1 && i2) {
1458
1459
  let e7 = t2?.ns, o2 = a2 ? Array.isArray(e7) ? e7 : e7 ? [e7] : null : Array.isArray(e7) ? e7 : null;
1459
1460
  if (o2 && (a2 ? o2 : o2.length > 1 ? o2.slice(1) : []).includes(n2[0])) return `${n2[0]}${i2}${n2.slice(1).join(r2)}`;
1460
1461
  }
1461
1462
  return n2.join(r2);
1462
1463
  }
1463
- var Ur = (e6) => !L(e6) && typeof e6 != `boolean` && typeof e6 != `number`;
1464
- var Wr = class e3 extends Lr {
1464
+ var Wr = (e6) => !L(e6) && typeof e6 != `boolean` && typeof e6 != `number`;
1465
+ var Gr = class e3 extends Rr {
1465
1466
  constructor(e6, t2 = {}) {
1466
- super(), br([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e6, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = H.create(`translator`), this.checkedLoadedFor = {};
1467
+ super(), xr([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e6, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = H.create(`translator`), this.checkedLoadedFor = {};
1467
1468
  }
1468
1469
  changeLanguage(e6) {
1469
1470
  e6 && (this.language = e6);
@@ -1473,13 +1474,13 @@ var Wr = class e3 extends Lr {
1473
1474
  if (e6 == null) return false;
1474
1475
  let r2 = this.resolve(e6, n2);
1475
1476
  if (r2?.res === void 0) return false;
1476
- let i2 = Ur(r2.res);
1477
+ let i2 = Wr(r2.res);
1477
1478
  return !(n2.returnObjects === false && i2);
1478
1479
  }
1479
1480
  extractFromKey(e6, t2) {
1480
1481
  let n2 = t2.nsSeparator === void 0 ? this.options.nsSeparator : t2.nsSeparator;
1481
1482
  n2 === void 0 && (n2 = `:`);
1482
- 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 && !Pr(e6, n2, r2);
1483
+ 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 && !Fr(e6, n2, r2);
1483
1484
  if (a2 && !o2) {
1484
1485
  let t3 = e6.match(this.interpolator.nestingRegexp);
1485
1486
  if (t3 && t3.length > 0) return { key: e6, namespaces: L(i2) ? [i2] : i2 };
@@ -1498,7 +1499,7 @@ var Wr = class e3 extends Lr {
1498
1499
  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;
1499
1500
  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 && !L(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;
1500
1501
  y2 && !m2 && x2 && (T2 = w2);
1501
- let te2 = Ur(T2), ne2 = Object.prototype.toString.apply(T2);
1502
+ let te2 = Wr(T2), ne2 = Object.prototype.toString.apply(T2);
1502
1503
  if (y2 && T2 && te2 && !_2.includes(ne2) && !(L(v2) && Array.isArray(T2))) {
1503
1504
  if (!i2.returnObjects && !this.options.returnObjects) {
1504
1505
  this.options.returnedObjectHandler || this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);
@@ -1509,7 +1510,7 @@ var Wr = class e3 extends Lr {
1509
1510
  let e6 = Array.isArray(T2), t3 = e6 ? [] : {}, n3 = e6 ? g2 : h2;
1510
1511
  for (let e7 in T2) if (Object.prototype.hasOwnProperty.call(T2, e7)) {
1511
1512
  let r3 = `${n3}${o2}${e7}`;
1512
- t3[e7] = x2 && !m2 ? this.translate(r3, { ...i2, defaultValue: Ur(w2) ? w2[e7] : void 0, joinArrays: false, ns: c2 }) : this.translate(r3, { ...i2, joinArrays: false, ns: c2 }), t3[e7] === r3 && (t3[e7] = T2[e7]);
1513
+ t3[e7] = x2 && !m2 ? this.translate(r3, { ...i2, defaultValue: Wr(w2) ? w2[e7] : void 0, joinArrays: false, ns: c2 }) : this.translate(r3, { ...i2, joinArrays: false, ns: c2 }), t3[e7] === r3 && (t3[e7] = T2[e7]);
1513
1514
  }
1514
1515
  m2 = t3;
1515
1516
  }
@@ -1558,7 +1559,7 @@ var Wr = class e3 extends Lr {
1558
1559
  !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();
1559
1560
  }
1560
1561
  let a2 = n2.postProcess || this.options.postProcess, o2 = L(a2) ? [a2] : a2;
1561
- return e6 != null && o2?.length && n2.applyPostProcessor !== false && (e6 = Br.handle(o2, e6, t2, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...r2, usedParams: this.getUsedParamsDetails(n2) }, ...n2 } : n2, this)), e6;
1562
+ return e6 != null && o2?.length && n2.applyPostProcessor !== false && (e6 = Vr.handle(o2, e6, t2, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...r2, usedParams: this.getUsedParamsDetails(n2) }, ...n2 } : n2, this)), e6;
1562
1563
  }
1563
1564
  resolve(e6, t2 = {}) {
1564
1565
  let n2, r2, i2, a2, o2;
@@ -1609,7 +1610,7 @@ var Wr = class e3 extends Lr {
1609
1610
  return false;
1610
1611
  }
1611
1612
  };
1612
- var Gr = class {
1613
+ var Kr = class {
1613
1614
  constructor(e6) {
1614
1615
  this.options = e6, this.supportedLngs = this.options.supportedLngs || false, this.logger = H.create(`languageUtils`), this.resolveHierarchyCache = {};
1615
1616
  }
@@ -1684,9 +1685,9 @@ var Gr = class {
1684
1685
  }), s2 === null ? l2 : (this.resolveHierarchyCache[s2] = l2, l2.slice());
1685
1686
  }
1686
1687
  };
1687
- var Kr = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 };
1688
- var qr = { select: (e6) => e6 === 1 ? `one` : `other`, resolvedOptions: () => ({ pluralCategories: [`one`, `other`] }) };
1689
- var Jr = class {
1688
+ var qr = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 };
1689
+ var Jr = { select: (e6) => e6 === 1 ? `one` : `other`, resolvedOptions: () => ({ pluralCategories: [`one`, `other`] }) };
1690
+ var Yr = class {
1690
1691
  constructor(e6, t2 = {}) {
1691
1692
  this.languageUtils = e6, this.options = t2, this.logger = H.create(`pluralResolver`), this.pluralRulesCache = {};
1692
1693
  }
@@ -1700,8 +1701,8 @@ var Jr = class {
1700
1701
  try {
1701
1702
  a2 = new Intl.PluralRules(n2, { type: r2 });
1702
1703
  } catch {
1703
- if (typeof Intl > `u`) return this.logger.error(`No Intl support, please use an Intl polyfill!`), qr;
1704
- if (!e6.match(/-|_/)) return qr;
1704
+ if (typeof Intl > `u`) return this.logger.error(`No Intl support, please use an Intl polyfill!`), Jr;
1705
+ if (!e6.match(/-|_/)) return Jr;
1705
1706
  let n3 = this.languageUtils.getLanguagePartFromCode(e6);
1706
1707
  a2 = this.getRule(n3, t2);
1707
1708
  }
@@ -1716,26 +1717,26 @@ var Jr = class {
1716
1717
  }
1717
1718
  getSuffixes(e6, t2 = {}) {
1718
1719
  let n2 = this.getRule(e6, t2);
1719
- return n2 ||= this.getRule(`dev`, t2), n2 ? n2.resolvedOptions().pluralCategories.sort((e7, t3) => Kr[e7] - Kr[t3]).map((e7) => `${this.options.prepend}${t2.ordinal ? `ordinal${this.options.prepend}` : ``}${e7}`) : [];
1720
+ return n2 ||= this.getRule(`dev`, t2), n2 ? n2.resolvedOptions().pluralCategories.sort((e7, t3) => qr[e7] - qr[t3]).map((e7) => `${this.options.prepend}${t2.ordinal ? `ordinal${this.options.prepend}` : ``}${e7}`) : [];
1720
1721
  }
1721
1722
  getSuffix(e6, t2, n2 = {}) {
1722
1723
  let r2 = this.getRule(e6, n2);
1723
1724
  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));
1724
1725
  }
1725
1726
  };
1726
- var Yr = (e6, t2, n2, r2 = `.`, i2 = true) => {
1727
- let a2 = Dr(e6, t2, n2);
1728
- return !a2 && i2 && L(n2) && (a2 = Fr(e6, n2, r2), a2 === void 0 && (a2 = Fr(t2, n2, r2))), a2;
1727
+ var Xr = (e6, t2, n2, r2 = `.`, i2 = true) => {
1728
+ let a2 = Or(e6, t2, n2);
1729
+ return !a2 && i2 && L(n2) && (a2 = Ir(e6, n2, r2), a2 === void 0 && (a2 = Ir(t2, n2, r2))), a2;
1729
1730
  };
1730
- var Xr = (e6) => e6.replace(/\$/g, `$$$$`);
1731
- var Zr = class {
1731
+ var Zr = (e6) => e6.replace(/\$/g, `$$$$`);
1732
+ var Qr = class {
1732
1733
  constructor(e6 = {}) {
1733
1734
  this.logger = H.create(`interpolator`), this.options = e6, this.format = e6?.interpolation?.format || ((e7) => e7), this.init(e6);
1734
1735
  }
1735
1736
  init(e6 = {}) {
1736
1737
  e6.interpolation ||= { escapeValue: true };
1737
1738
  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;
1738
- this.escape = t2 === void 0 ? Ar : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? B(i2) : a2 || `{{`, this.suffix = o2 ? B(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 ? B(u2) : `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 ? B(l2) : ``, this.nestingPrefix = d2 ? B(d2) : f2 || B(`$t(`), this.nestingSuffix = p2 ? B(p2) : m2 || B(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
1739
+ this.escape = t2 === void 0 ? jr : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? B(i2) : a2 || `{{`, this.suffix = o2 ? B(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 ? B(u2) : `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 ? B(l2) : ``, this.nestingPrefix = d2 ? B(d2) : f2 || B(`$t(`), this.nestingSuffix = p2 ? B(p2) : m2 || B(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
1739
1740
  }
1740
1741
  reset() {
1741
1742
  this.options && this.init(this.options);
@@ -1747,11 +1748,11 @@ var Zr = class {
1747
1748
  interpolate(e6, t2, n2, r2) {
1748
1749
  let i2, a2, o2, s2 = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c2 = (e7) => {
1749
1750
  if (!e7.includes(this.formatSeparator)) {
1750
- let i4 = Yr(t2, s2, e7, this.options.keySeparator, this.options.ignoreJSONStructure);
1751
+ let i4 = Xr(t2, s2, e7, this.options.keySeparator, this.options.ignoreJSONStructure);
1751
1752
  return this.alwaysFormat ? this.format(i4, void 0, n2, { ...r2, ...t2, interpolationkey: e7 }) : i4;
1752
1753
  }
1753
1754
  let i3 = e7.split(this.formatSeparator), a3 = i3.shift().trim(), o3 = i3.join(this.formatSeparator).trim();
1754
- return this.format(Yr(t2, s2, a3, this.options.keySeparator, this.options.ignoreJSONStructure), o3, n2, { ...r2, ...t2, interpolationkey: a3 });
1755
+ return this.format(Xr(t2, s2, a3, this.options.keySeparator, this.options.ignoreJSONStructure), o3, n2, { ...r2, ...t2, interpolationkey: a3 });
1755
1756
  };
1756
1757
  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.`);
1757
1758
  let l2 = r2?.missingInterpolationHandler || this.options.missingInterpolationHandler, u2 = r2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r2.interpolation.skipOnVariables;
@@ -1767,9 +1768,9 @@ var Zr = class {
1767
1768
  a2 = i2[0];
1768
1769
  continue;
1769
1770
  } else this.logger.warn(`missed to pass in variable ${n3} for interpolating ${e6}`), a2 = ``;
1770
- } else !L(a2) && !this.useRawValueToEscape && (a2 = yr(a2));
1771
+ } else !L(a2) && !this.useRawValueToEscape && (a2 = br(a2));
1771
1772
  let s3 = t3.safeValue(a2);
1772
- if (e6 = e6.replace(i2[0], Xr(s3)), u2 ? (t3.regex.lastIndex += s3.length, t3.regex.lastIndex -= i2[0].length) : t3.regex.lastIndex = 0, o2++, o2 >= this.maxReplaces) break;
1773
+ if (e6 = e6.replace(i2[0], Zr(s3)), u2 ? (t3.regex.lastIndex += s3.length, t3.regex.lastIndex -= i2[0].length) : t3.regex.lastIndex = 0, o2++, o2 >= this.maxReplaces) break;
1773
1774
  }
1774
1775
  }), e6;
1775
1776
  }
@@ -1793,12 +1794,12 @@ var Zr = class {
1793
1794
  a2 = { ...n2 }, a2 = a2.replace && !L(a2.replace) ? a2.replace : a2, a2.applyPostProcessor = false, delete a2.defaultValue;
1794
1795
  let d2 = /{.*}/s.test(r2[1]) ? r2[1].lastIndexOf(`}`) + 1 : r2[1].indexOf(this.formatSeparator);
1795
1796
  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 && !L(i2)) return i2;
1796
- L(i2) || (i2 = yr(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) + yr(i2), l2 = s2.lastIndex, this.regexp.lastIndex = 0;
1797
+ L(i2) || (i2 = br(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) + br(i2), l2 = s2.lastIndex, this.regexp.lastIndex = 0;
1797
1798
  }
1798
1799
  return l2 ? c2 + e6.slice(l2) : e6;
1799
1800
  }
1800
1801
  };
1801
- var Qr = (e6) => {
1802
+ var $r = (e6) => {
1802
1803
  let t2 = e6.toLowerCase().trim(), n2 = {};
1803
1804
  if (e6.includes(`(`)) {
1804
1805
  let r2 = e6.split(`(`);
@@ -1813,7 +1814,7 @@ var Qr = (e6) => {
1813
1814
  }
1814
1815
  return { formatName: t2, formatOptions: n2 };
1815
1816
  };
1816
- var $r = (e6) => {
1817
+ var ei = (e6) => {
1817
1818
  let t2 = {};
1818
1819
  return (n2, r2, i2) => {
1819
1820
  let a2 = i2;
@@ -1822,14 +1823,14 @@ var $r = (e6) => {
1822
1823
  return s2 || (s2 = e6(V(r2), i2), t2[o2] = s2), s2(n2);
1823
1824
  };
1824
1825
  };
1825
- var ei = (e6) => (t2, n2, r2) => e6(V(n2), r2)(t2);
1826
- var ti = class {
1826
+ var ti = (e6) => (t2, n2, r2) => e6(V(n2), r2)(t2);
1827
+ var ni = class {
1827
1828
  constructor(e6 = {}) {
1828
1829
  this.logger = H.create(`formatter`), this.options = e6, this.init(e6);
1829
1830
  }
1830
1831
  init(e6, t2 = { interpolation: {} }) {
1831
1832
  this.formatSeparator = t2.interpolation.formatSeparator || `,`;
1832
- let n2 = t2.cacheInBuiltFormats ? $r : ei;
1833
+ let n2 = t2.cacheInBuiltFormats ? ei : ti;
1833
1834
  this.formats = { number: n2((e7, t3) => {
1834
1835
  let n3 = new Intl.NumberFormat(e7, { ...t3 });
1835
1836
  return (e8) => n3.format(e8);
@@ -1851,7 +1852,7 @@ var ti = class {
1851
1852
  this.formats[e6.toLowerCase().trim()] = t2;
1852
1853
  }
1853
1854
  addCached(e6, t2) {
1854
- this.formats[e6.toLowerCase().trim()] = $r(t2);
1855
+ this.formats[e6.toLowerCase().trim()] = ei(t2);
1855
1856
  }
1856
1857
  format(e6, t2, n2, r2 = {}) {
1857
1858
  if (!t2 || e6 == null) return e6;
@@ -1862,7 +1863,7 @@ var ti = class {
1862
1863
  a2.push(t3);
1863
1864
  }
1864
1865
  return a2.reduce((e7, t3) => {
1865
- let { formatName: i3, formatOptions: a3 } = Qr(t3);
1866
+ let { formatName: i3, formatOptions: a3 } = $r(t3);
1866
1867
  if (this.formats[i3]) {
1867
1868
  let t4 = e7;
1868
1869
  try {
@@ -1877,10 +1878,10 @@ var ti = class {
1877
1878
  }, e6);
1878
1879
  }
1879
1880
  };
1880
- var ni = (e6, t2) => {
1881
+ var ri = (e6, t2) => {
1881
1882
  e6.pending[t2] !== void 0 && (delete e6.pending[t2], e6.pendingCount--);
1882
1883
  };
1883
- var ri = class extends Lr {
1884
+ var ii = class extends Rr {
1884
1885
  constructor(e6, t2, n2, r2 = {}) {
1885
1886
  super(), this.backend = e6, this.store = t2, this.services = n2, this.languageUtils = n2.languageUtils, this.options = r2, this.logger = H.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);
1886
1887
  }
@@ -1899,7 +1900,7 @@ var ri = class extends Lr {
1899
1900
  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);
1900
1901
  let o2 = {};
1901
1902
  this.queue.forEach((n3) => {
1902
- Tr(n3.loaded, [i2], a2), ni(n3, e6), t2 && n3.errors.push(t2), n3.pendingCount === 0 && !n3.done && (Object.keys(n3.loaded).forEach((e7) => {
1903
+ Er(n3.loaded, [i2], a2), ri(n3, e6), t2 && n3.errors.push(t2), n3.pendingCount === 0 && !n3.done && (Object.keys(n3.loaded).forEach((e7) => {
1903
1904
  o2[e7] || (o2[e7] = {});
1904
1905
  let t3 = n3.loaded[e7];
1905
1906
  t3.length && t3.forEach((t4) => {
@@ -1971,7 +1972,7 @@ var ri = class extends Lr {
1971
1972
  }
1972
1973
  }
1973
1974
  };
1974
- var ii = () => ({ 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) => {
1975
+ var ai = () => ({ 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) => {
1975
1976
  let t2 = {};
1976
1977
  if (typeof e6[1] == `object` && (t2 = e6[1]), L(e6[1]) && (t2.defaultValue = e6[1]), L(e6[2]) && (t2.tDescription = e6[2]), typeof e6[2] == `object` || typeof e6[3] == `object`) {
1977
1978
  let n2 = e6[3] || e6[2];
@@ -1981,17 +1982,17 @@ var ii = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS:
1981
1982
  }
1982
1983
  return t2;
1983
1984
  }, interpolation: { escapeValue: true, prefix: `{{`, suffix: `}}`, formatSeparator: `,`, unescapePrefix: `-`, nestingPrefix: `$t(`, nestingSuffix: `)`, nestingOptionsSeparator: `,`, maxReplaces: 1e3, skipOnVariables: true }, cacheInBuiltFormats: true });
1984
- var ai = (e6) => (L(e6.ns) && (e6.ns = [e6.ns]), L(e6.fallbackLng) && (e6.fallbackLng = [e6.fallbackLng]), L(e6.fallbackNS) && (e6.fallbackNS = [e6.fallbackNS]), e6.supportedLngs && !e6.supportedLngs.includes(`cimode`) && (e6.supportedLngs = e6.supportedLngs.concat([`cimode`])), e6);
1985
- var oi = () => {
1985
+ var oi = (e6) => (L(e6.ns) && (e6.ns = [e6.ns]), L(e6.fallbackLng) && (e6.fallbackLng = [e6.fallbackLng]), L(e6.fallbackNS) && (e6.fallbackNS = [e6.fallbackNS]), e6.supportedLngs && !e6.supportedLngs.includes(`cimode`) && (e6.supportedLngs = e6.supportedLngs.concat([`cimode`])), e6);
1986
+ var si = () => {
1986
1987
  };
1987
- var si = (e6) => {
1988
+ var ci = (e6) => {
1988
1989
  Object.getOwnPropertyNames(Object.getPrototypeOf(e6)).forEach((t2) => {
1989
1990
  typeof e6[t2] == `function` && (e6[t2] = e6[t2].bind(e6));
1990
1991
  });
1991
1992
  };
1992
- var W = class e4 extends Lr {
1993
+ var W = class e4 extends Rr {
1993
1994
  constructor(e6 = {}, t2) {
1994
- if (super(), this.options = ai(e6), this.services = {}, this.logger = H, this.modules = { external: [] }, si(this), t2 && !this.isInitialized && !e6.isClone) {
1995
+ if (super(), this.options = oi(e6), this.services = {}, this.logger = H, this.modules = { external: [] }, ci(this), t2 && !this.isInitialized && !e6.isClone) {
1995
1996
  if (!this.options.initAsync) return this.init(e6, t2), this;
1996
1997
  setTimeout(() => {
1997
1998
  this.init(e6, t2);
@@ -2000,25 +2001,25 @@ var W = class e4 extends Lr {
2000
2001
  }
2001
2002
  init(e6 = {}, t2) {
2002
2003
  this.isInitializing = true, typeof e6 == `function` && (t2 = e6, e6 = {}), e6.defaultNS == null && e6.ns && (L(e6.ns) ? e6.defaultNS = e6.ns : e6.ns.includes(`translation`) || (e6.defaultNS = e6.ns[0]));
2003
- let n2 = ii();
2004
- this.options = { ...n2, ...this.options, ...ai(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);
2004
+ let n2 = ai();
2005
+ this.options = { ...n2, ...this.options, ...oi(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);
2005
2006
  let r2 = (e7) => e7 ? typeof e7 == `function` ? new e7() : e7 : null;
2006
2007
  if (!this.options.isClone) {
2007
2008
  this.modules.logger ? H.init(r2(this.modules.logger), this.options) : H.init(null, this.options);
2008
2009
  let e7;
2009
- e7 = this.modules.formatter ? this.modules.formatter : ti;
2010
- let t3 = new Gr(this.options);
2011
- this.store = new zr(this.options.resources, this.options);
2010
+ e7 = this.modules.formatter ? this.modules.formatter : ni;
2011
+ let t3 = new Kr(this.options);
2012
+ this.store = new Br(this.options.resources, this.options);
2012
2013
  let n3 = this.services;
2013
- n3.logger = H, n3.resourceStore = this.store, n3.languageUtils = t3, n3.pluralResolver = new Jr(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 Zr(this.options), n3.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, n3.backendConnector = new ri(r2(this.modules.backend), n3.resourceStore, n3, this.options), n3.backendConnector.on(`*`, (e8, ...t4) => {
2014
+ n3.logger = H, n3.resourceStore = this.store, n3.languageUtils = t3, n3.pluralResolver = new Yr(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 Qr(this.options), n3.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, n3.backendConnector = new ii(r2(this.modules.backend), n3.resourceStore, n3, this.options), n3.backendConnector.on(`*`, (e8, ...t4) => {
2014
2015
  this.emit(e8, ...t4);
2015
- }), 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 Wr(this.services, this.options), this.translator.on(`*`, (e8, ...t4) => {
2016
+ }), 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 Gr(this.services, this.options), this.translator.on(`*`, (e8, ...t4) => {
2016
2017
  this.emit(e8, ...t4);
2017
2018
  }), this.modules.external.forEach((e8) => {
2018
2019
  e8.init && e8.init(this);
2019
2020
  });
2020
2021
  }
2021
- if (this.format = this.options.interpolation.format, t2 ||= oi, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
2022
+ if (this.format = this.options.interpolation.format, t2 ||= si, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
2022
2023
  let e7 = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
2023
2024
  e7.length > 0 && e7[0] !== `dev` && (this.options.lng = e7[0]);
2024
2025
  }
@@ -2036,7 +2037,7 @@ var W = class e4 extends Lr {
2036
2037
  };
2037
2038
  return this.options.resources || !this.options.initAsync ? a2() : setTimeout(a2, 0), i2;
2038
2039
  }
2039
- loadResources(e6, t2 = oi) {
2040
+ loadResources(e6, t2 = si) {
2040
2041
  let n2 = t2, r2 = L(e6) ? e6 : this.language;
2041
2042
  if (typeof e6 == `function` && (n2 = e6), !this.options.resources || this.options.partialBundledLanguages) {
2042
2043
  if (r2?.toLowerCase() === `cimode` && (!this.options.preload || this.options.preload.length === 0)) return n2();
@@ -2052,14 +2053,14 @@ var W = class e4 extends Lr {
2052
2053
  }
2053
2054
  reloadResources(e6, t2, n2) {
2054
2055
  let r2 = R();
2055
- 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 ||= oi, this.services.backendConnector.reload(e6, t2, (e7) => {
2056
+ 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 ||= si, this.services.backendConnector.reload(e6, t2, (e7) => {
2056
2057
  r2.resolve(), n2(e7);
2057
2058
  }), r2;
2058
2059
  }
2059
2060
  use(e6) {
2060
2061
  if (!e6) throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);
2061
2062
  if (!e6.type) throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);
2062
- 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` && Br.addPostProcessor(e6), e6.type === `formatter` && (this.modules.formatter = e6), e6.type === `3rdParty` && this.modules.external.push(e6), this;
2063
+ 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` && Vr.addPostProcessor(e6), e6.type === `formatter` && (this.modules.formatter = e6), e6.type === `3rdParty` && this.modules.external.push(e6), this;
2063
2064
  }
2064
2065
  setResolvedLanguage(e6) {
2065
2066
  if (e6 && this.languages && ![`cimode`, `dev`].includes(e6)) {
@@ -2155,24 +2156,24 @@ var W = class e4 extends Lr {
2155
2156
  }
2156
2157
  } catch {
2157
2158
  }
2158
- 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 Gr(ii());
2159
+ 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 Kr(ai());
2159
2160
  return e6.toLowerCase().indexOf(`-latn`) > 1 ? `ltr` : t2.includes(n2.getLanguagePartFromCode(e6)) || e6.toLowerCase().indexOf(`-arab`) > 1 ? `rtl` : `ltr`;
2160
2161
  }
2161
2162
  static createInstance(t2 = {}, n2) {
2162
2163
  let r2 = new e4(t2, n2);
2163
2164
  return r2.createInstance = e4.createInstance, r2;
2164
2165
  }
2165
- cloneInstance(t2 = {}, n2 = oi) {
2166
+ cloneInstance(t2 = {}, n2 = si) {
2166
2167
  let r2 = t2.forkResourceStore;
2167
2168
  r2 && delete t2.forkResourceStore;
2168
2169
  let i2 = { ...this.options, preload: false, ...t2, isClone: true }, a2 = new e4(i2);
2169
2170
  if ((t2.debug !== void 0 || t2.prefix !== void 0) && (a2.logger = a2.logger.clone(t2)), [`store`, `services`, `language`].forEach((e6) => {
2170
2171
  a2[e6] = this[e6];
2171
- }), a2.services = { ...this.services }, a2.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, r2 && (a2.store = new zr(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) {
2172
- let e6 = { ...ii().interpolation, ...this.options.interpolation, ...t2.interpolation }, n3 = { ...i2, interpolation: e6 };
2173
- a2.services.interpolator = new Zr(n3);
2172
+ }), a2.services = { ...this.services }, a2.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, r2 && (a2.store = new Br(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) {
2173
+ let e6 = { ...ai().interpolation, ...this.options.interpolation, ...t2.interpolation }, n3 = { ...i2, interpolation: e6 };
2174
+ a2.services.interpolator = new Qr(n3);
2174
2175
  }
2175
- return a2.translator = new Wr(a2.services, i2), a2.translator.on(`*`, (e6, ...t3) => {
2176
+ return a2.translator = new Gr(a2.services, i2), a2.translator.on(`*`, (e6, ...t3) => {
2176
2177
  a2.emit(e6, ...t3);
2177
2178
  }), a2.init(i2, n2), a2.translator.options = i2, a2.translator.backendConnector.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, a2;
2178
2179
  }
@@ -2181,7 +2182,7 @@ var W = class e4 extends Lr {
2181
2182
  }
2182
2183
  }.createInstance();
2183
2184
  W.createInstance, W.dir, W.init, W.loadResources, W.reloadResources, W.use, W.changeLanguage, W.getFixedT, W.t, W.exists, W.setDefaultNamespace, W.hasLoadedNamespace, W.loadNamespaces, W.loadLanguages;
2184
- var ci = ({ locale: e6, asyncMessagesLoader: t2, messages: n2, useSuspense: r2 = false, disableAutoInit: i2 = false, bindI18n: a2 }, { icu: o2 } = {}) => {
2185
+ var li = ({ locale: e6, asyncMessagesLoader: t2, messages: n2, useSuspense: r2 = false, disableAutoInit: i2 = false, bindI18n: a2 }, { icu: o2 } = {}) => {
2185
2186
  let s2 = { lng: e6, fallbackLng: `en`, keySeparator: false, react: { useSuspense: r2, bindI18n: a2 }, _polyfill: { isLoading: false } }, c2 = W.createInstance(i2 ? s2 : void 0);
2186
2187
  return o2 && c2.use(o2), t2 && c2.use({ type: `backend`, read: async (e7, n3, r3) => {
2187
2188
  try {
@@ -2191,38 +2192,38 @@ var ci = ({ locale: e6, asyncMessagesLoader: t2, messages: n2, useSuspense: r2 =
2191
2192
  }
2192
2193
  } }), n2 && (s2.resources = { [e6]: { translation: n2 } }), i2 || c2.init(s2), c2;
2193
2194
  };
2194
- function li(e6, t2) {
2195
- let n2 = t2 && t2.cache ? t2.cache : yi, r2 = t2 && t2.serializer ? t2.serializer : _i;
2196
- return (t2 && t2.strategy ? t2.strategy : mi)(e6, { cache: n2, serializer: r2 });
2195
+ function ui(e6, t2) {
2196
+ let n2 = t2 && t2.cache ? t2.cache : bi, r2 = t2 && t2.serializer ? t2.serializer : vi;
2197
+ return (t2 && t2.strategy ? t2.strategy : hi)(e6, { cache: n2, serializer: r2 });
2197
2198
  }
2198
- function ui(e6) {
2199
+ function di(e6) {
2199
2200
  return e6 == null || typeof e6 == `number` || typeof e6 == `boolean`;
2200
2201
  }
2201
- function di(e6, t2, n2, r2) {
2202
- let i2 = ui(r2) ? r2 : n2(r2), a2 = t2.get(i2);
2202
+ function fi(e6, t2, n2, r2) {
2203
+ let i2 = di(r2) ? r2 : n2(r2), a2 = t2.get(i2);
2203
2204
  return a2 === void 0 && (a2 = e6.call(this, r2), t2.set(i2, a2)), a2;
2204
2205
  }
2205
- function fi(e6, t2, n2) {
2206
+ function pi(e6, t2, n2) {
2206
2207
  let r2 = Array.prototype.slice.call(arguments, 3), i2 = n2(r2), a2 = t2.get(i2);
2207
2208
  return a2 === void 0 && (a2 = e6.apply(this, r2), t2.set(i2, a2)), a2;
2208
2209
  }
2209
- function pi(e6, t2, n2, r2, i2) {
2210
+ function mi(e6, t2, n2, r2, i2) {
2210
2211
  return n2.bind(t2, e6, r2, i2);
2211
2212
  }
2212
- function mi(e6, t2) {
2213
- let n2 = e6.length === 1 ? di : fi;
2214
- return pi(e6, this, n2, t2.cache.create(), t2.serializer);
2215
- }
2216
2213
  function hi(e6, t2) {
2217
- return pi(e6, this, fi, t2.cache.create(), t2.serializer);
2214
+ let n2 = e6.length === 1 ? fi : pi;
2215
+ return mi(e6, this, n2, t2.cache.create(), t2.serializer);
2218
2216
  }
2219
2217
  function gi(e6, t2) {
2220
- return pi(e6, this, di, t2.cache.create(), t2.serializer);
2218
+ return mi(e6, this, pi, t2.cache.create(), t2.serializer);
2221
2219
  }
2222
- var _i = function() {
2220
+ function _i(e6, t2) {
2221
+ return mi(e6, this, fi, t2.cache.create(), t2.serializer);
2222
+ }
2223
+ var vi = function() {
2223
2224
  return JSON.stringify(arguments);
2224
2225
  };
2225
- var vi = class {
2226
+ var yi = class {
2226
2227
  constructor() {
2227
2228
  this.cache = /* @__PURE__ */ Object.create(null);
2228
2229
  }
@@ -2233,14 +2234,14 @@ var vi = class {
2233
2234
  this.cache[e6] = t2;
2234
2235
  }
2235
2236
  };
2236
- var yi = { create: function() {
2237
- return new vi();
2237
+ var bi = { create: function() {
2238
+ return new yi();
2238
2239
  } };
2239
- var bi = { variadic: hi, monadic: gi };
2240
- var xi = /(?:[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;
2241
- function Si(e6) {
2240
+ var xi = { variadic: gi, monadic: _i };
2241
+ var Si = /(?:[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;
2242
+ function Ci(e6) {
2242
2243
  let t2 = {};
2243
- return e6.replace(xi, (e7) => {
2244
+ return e6.replace(Si, (e7) => {
2244
2245
  let n2 = e7.length;
2245
2246
  switch (e7[0]) {
2246
2247
  case `G`:
@@ -2327,10 +2328,10 @@ function Si(e6) {
2327
2328
  return ``;
2328
2329
  }), t2;
2329
2330
  }
2330
- var Ci = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2331
- function wi(e6) {
2331
+ var wi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2332
+ function Ti(e6) {
2332
2333
  if (e6.length === 0) throw Error(`Number skeleton cannot be empty`);
2333
- let t2 = e6.split(Ci).filter((e7) => e7.length > 0), n2 = [];
2334
+ let t2 = e6.split(wi).filter((e7) => e7.length > 0), n2 = [];
2334
2335
  for (let e7 of t2) {
2335
2336
  let t3 = e7.split(`/`);
2336
2337
  if (t3.length === 0) throw Error(`Invalid number skeleton`);
@@ -2340,20 +2341,20 @@ function wi(e6) {
2340
2341
  }
2341
2342
  return n2;
2342
2343
  }
2343
- function Ti(e6) {
2344
+ function Ei(e6) {
2344
2345
  return e6.replace(/^(.*?)-/, ``);
2345
2346
  }
2346
- var Ei = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g;
2347
- var Di = /^(@+)?(\+|#+)?[rs]?$/g;
2348
- var Oi = /(\*)(0+)|(#+)(0+)|(0+)/g;
2349
- var ki = /^(0+)$/;
2350
- function Ai(e6) {
2347
+ var Di = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g;
2348
+ var Oi = /^(@+)?(\+|#+)?[rs]?$/g;
2349
+ var ki = /(\*)(0+)|(#+)(0+)|(0+)/g;
2350
+ var Ai = /^(0+)$/;
2351
+ function ji(e6) {
2351
2352
  let t2 = {};
2352
- return e6[e6.length - 1] === `r` ? t2.roundingPriority = `morePrecision` : e6[e6.length - 1] === `s` && (t2.roundingPriority = `lessPrecision`), e6.replace(Di, function(e7, n2, r2) {
2353
+ return e6[e6.length - 1] === `r` ? t2.roundingPriority = `morePrecision` : e6[e6.length - 1] === `s` && (t2.roundingPriority = `lessPrecision`), e6.replace(Oi, function(e7, n2, r2) {
2353
2354
  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), ``;
2354
2355
  }), t2;
2355
2356
  }
2356
- function ji(e6) {
2357
+ function Mi(e6) {
2357
2358
  switch (e6) {
2358
2359
  case `sign-auto`:
2359
2360
  return { signDisplay: `auto` };
@@ -2377,19 +2378,19 @@ function ji(e6) {
2377
2378
  return { signDisplay: `never` };
2378
2379
  }
2379
2380
  }
2380
- function Mi(e6) {
2381
+ function Ni(e6) {
2381
2382
  let t2;
2382
2383
  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) {
2383
2384
  let n2 = e6.slice(0, 2);
2384
- if (n2 === `+!` ? (t2.signDisplay = `always`, e6 = e6.slice(2)) : n2 === `+?` && (t2.signDisplay = `exceptZero`, e6 = e6.slice(2)), !ki.test(e6)) throw Error(`Malformed concise eng/scientific notation`);
2385
+ if (n2 === `+!` ? (t2.signDisplay = `always`, e6 = e6.slice(2)) : n2 === `+?` && (t2.signDisplay = `exceptZero`, e6 = e6.slice(2)), !Ai.test(e6)) throw Error(`Malformed concise eng/scientific notation`);
2385
2386
  t2.minimumIntegerDigits = e6.length;
2386
2387
  }
2387
2388
  return t2;
2388
2389
  }
2389
- function Ni(e6) {
2390
- return ji(e6) || {};
2391
- }
2392
2390
  function Pi(e6) {
2391
+ return Mi(e6) || {};
2392
+ }
2393
+ function Fi(e6) {
2393
2394
  let t2 = {};
2394
2395
  for (let n2 of e6) {
2395
2396
  switch (n2.stem) {
@@ -2413,7 +2414,7 @@ function Pi(e6) {
2413
2414
  continue;
2414
2415
  case `measure-unit`:
2415
2416
  case `unit`:
2416
- t2.style = `unit`, t2.unit = Ti(n2.options[0]);
2417
+ t2.style = `unit`, t2.unit = Ei(n2.options[0]);
2417
2418
  continue;
2418
2419
  case `compact-short`:
2419
2420
  case `K`:
@@ -2424,10 +2425,10 @@ function Pi(e6) {
2424
2425
  t2.notation = `compact`, t2.compactDisplay = `long`;
2425
2426
  continue;
2426
2427
  case `scientific`:
2427
- t2 = { ...t2, notation: `scientific`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...Ni(t3) }), {}) };
2428
+ t2 = { ...t2, notation: `scientific`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...Pi(t3) }), {}) };
2428
2429
  continue;
2429
2430
  case `engineering`:
2430
- t2 = { ...t2, notation: `engineering`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...Ni(t3) }), {}) };
2431
+ t2 = { ...t2, notation: `engineering`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...Pi(t3) }), {}) };
2431
2432
  continue;
2432
2433
  case `notation-simple`:
2433
2434
  t2.notation = `standard`;
@@ -2470,7 +2471,7 @@ function Pi(e6) {
2470
2471
  continue;
2471
2472
  case `integer-width`:
2472
2473
  if (n2.options.length > 1) throw RangeError(`integer-width stems only accept a single optional option`);
2473
- n2.options[0].replace(Oi, function(e8, n3, r3, i2, a2, o2) {
2474
+ n2.options[0].replace(ki, function(e8, n3, r3, i2, a2, o2) {
2474
2475
  if (n3) t2.minimumIntegerDigits = r3.length;
2475
2476
  else if (i2 && a2) throw Error(`We currently do not support maximum integer digits`);
2476
2477
  else if (o2) throw Error(`We currently do not support exact integer digits`);
@@ -2478,83 +2479,83 @@ function Pi(e6) {
2478
2479
  });
2479
2480
  continue;
2480
2481
  }
2481
- if (ki.test(n2.stem)) {
2482
+ if (Ai.test(n2.stem)) {
2482
2483
  t2.minimumIntegerDigits = n2.stem.length;
2483
2484
  continue;
2484
2485
  }
2485
- if (Ei.test(n2.stem)) {
2486
+ if (Di.test(n2.stem)) {
2486
2487
  if (n2.options.length > 1) throw RangeError(`Fraction-precision stems only accept a single optional option`);
2487
- n2.stem.replace(Ei, function(e9, n3, r3, i2, a2, o2) {
2488
+ n2.stem.replace(Di, function(e9, n3, r3, i2, a2, o2) {
2488
2489
  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), ``;
2489
2490
  });
2490
2491
  let e8 = n2.options[0];
2491
- e8 === `w` ? t2 = { ...t2, trailingZeroDisplay: `stripIfInteger` } : e8 && (t2 = { ...t2, ...Ai(e8) });
2492
+ e8 === `w` ? t2 = { ...t2, trailingZeroDisplay: `stripIfInteger` } : e8 && (t2 = { ...t2, ...ji(e8) });
2492
2493
  continue;
2493
2494
  }
2494
- if (Di.test(n2.stem)) {
2495
- t2 = { ...t2, ...Ai(n2.stem) };
2495
+ if (Oi.test(n2.stem)) {
2496
+ t2 = { ...t2, ...ji(n2.stem) };
2496
2497
  continue;
2497
2498
  }
2498
- let e7 = ji(n2.stem);
2499
+ let e7 = Mi(n2.stem);
2499
2500
  e7 && (t2 = { ...t2, ...e7 });
2500
- let r2 = Mi(n2.stem);
2501
+ let r2 = Ni(n2.stem);
2501
2502
  r2 && (t2 = { ...t2, ...r2 });
2502
2503
  }
2503
2504
  return t2;
2504
2505
  }
2505
- var Fi = function(e6) {
2506
+ var Ii = function(e6) {
2506
2507
  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;
2507
2508
  }({});
2508
- function Ii(e6) {
2509
+ function Li(e6) {
2509
2510
  return e6.type === 0;
2510
2511
  }
2511
- function Li(e6) {
2512
+ function Ri(e6) {
2512
2513
  return e6.type === 1;
2513
2514
  }
2514
- function Ri(e6) {
2515
+ function zi(e6) {
2515
2516
  return e6.type === 2;
2516
2517
  }
2517
- function zi(e6) {
2518
+ function Bi(e6) {
2518
2519
  return e6.type === 3;
2519
2520
  }
2520
- function Bi(e6) {
2521
+ function Vi(e6) {
2521
2522
  return e6.type === 4;
2522
2523
  }
2523
- function Vi(e6) {
2524
+ function Hi(e6) {
2524
2525
  return e6.type === 5;
2525
2526
  }
2526
- function Hi(e6) {
2527
+ function Ui(e6) {
2527
2528
  return e6.type === 6;
2528
2529
  }
2529
- function Ui(e6) {
2530
+ function Wi(e6) {
2530
2531
  return e6.type === 7;
2531
2532
  }
2532
- function Wi(e6) {
2533
+ function Gi(e6) {
2533
2534
  return e6.type === 8;
2534
2535
  }
2535
- function Gi(e6) {
2536
+ function Ki(e6) {
2536
2537
  return !!(e6 && typeof e6 == `object` && e6.type === 0);
2537
2538
  }
2538
- function Ki(e6) {
2539
+ function qi(e6) {
2539
2540
  return !!(e6 && typeof e6 == `object` && e6.type === 1);
2540
2541
  }
2541
- var qi = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
2542
+ var Ji = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
2542
2543
  var G = { "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`] };
2543
- function Ji(e6, t2) {
2544
+ function Yi(e6, t2) {
2544
2545
  let n2 = ``;
2545
2546
  for (let r2 = 0; r2 < e6.length; r2++) {
2546
2547
  let i2 = e6.charAt(r2);
2547
2548
  if (i2 === `j`) {
2548
2549
  let a2 = 0;
2549
2550
  for (; r2 + 1 < e6.length && e6.charAt(r2 + 1) === i2; ) a2++, r2++;
2550
- let o2 = 1 + (a2 & 1), s2 = a2 < 2 ? 1 : 3 + (a2 >> 1), c2 = Yi(t2);
2551
+ let o2 = 1 + (a2 & 1), s2 = a2 < 2 ? 1 : 3 + (a2 >> 1), c2 = Xi(t2);
2551
2552
  for ((c2 == `H` || c2 == `k`) && (s2 = 0); s2-- > 0; ) n2 += `a`;
2552
2553
  for (; o2-- > 0; ) n2 = c2 + n2;
2553
2554
  } else n2 += i2 === `J` ? `H` : i2;
2554
2555
  }
2555
2556
  return n2;
2556
2557
  }
2557
- function Yi(e6) {
2558
+ function Xi(e6) {
2558
2559
  let t2 = e6.hourCycle;
2559
2560
  if (t2 === void 0) {
2560
2561
  let n3 = e6;
@@ -2575,34 +2576,34 @@ function Yi(e6) {
2575
2576
  let n2 = e6.language, r2;
2576
2577
  return n2 !== `root` && (r2 = e6.maximize().region), (G[`${n2}-${r2}`] || G[r2 || ``] || G[n2 || ``] || G[`${n2}-001`] || G[`001`])[0].charAt(0);
2577
2578
  }
2578
- var Xi = RegExp(`^${qi.source}*`);
2579
- var Zi = RegExp(`${qi.source}*$`);
2579
+ var Zi = RegExp(`^${Ji.source}*`);
2580
+ var Qi = RegExp(`${Ji.source}*$`);
2580
2581
  function K(e6, t2) {
2581
2582
  return { start: e6, end: t2 };
2582
2583
  }
2583
- var Qi = !!Object.fromEntries;
2584
- var $i = !!String.prototype.trimStart;
2585
- var ea = !!String.prototype.trimEnd;
2586
- var ta = Qi ? Object.fromEntries : function(e6) {
2584
+ var $i = !!Object.fromEntries;
2585
+ var ea = !!String.prototype.trimStart;
2586
+ var ta = !!String.prototype.trimEnd;
2587
+ var na = $i ? Object.fromEntries : function(e6) {
2587
2588
  let t2 = {};
2588
2589
  for (let [n2, r2] of e6) t2[n2] = r2;
2589
2590
  return t2;
2590
2591
  };
2591
- var na = $i ? function(e6) {
2592
+ var ra = ea ? function(e6) {
2592
2593
  return e6.trimStart();
2593
2594
  } : function(e6) {
2594
- return e6.replace(Xi, ``);
2595
+ return e6.replace(Zi, ``);
2595
2596
  };
2596
- var ra = ea ? function(e6) {
2597
+ var ia = ta ? function(e6) {
2597
2598
  return e6.trimEnd();
2598
2599
  } : function(e6) {
2599
- return e6.replace(Zi, ``);
2600
+ return e6.replace(Qi, ``);
2600
2601
  };
2601
- var ia = RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
2602
- function aa(e6, t2) {
2603
- return ia.lastIndex = t2, ia.exec(e6)[1] ?? ``;
2602
+ var aa = RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
2603
+ function oa(e6, t2) {
2604
+ return aa.lastIndex = t2, aa.exec(e6)[1] ?? ``;
2604
2605
  }
2605
- function oa(e6) {
2606
+ function sa(e6) {
2606
2607
  if (e6.length === 0) return null;
2607
2608
  let t2 = 1, n2 = 1;
2608
2609
  for (let r2 = 0; r2 < e6.length; ) {
@@ -2623,7 +2624,7 @@ function oa(e6) {
2623
2624
  }
2624
2625
  return { offset: e6.length, line: t2, column: n2 };
2625
2626
  }
2626
- var sa = class {
2627
+ var ca = class {
2627
2628
  constructor(e6, t2 = {}) {
2628
2629
  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;
2629
2630
  }
@@ -2632,7 +2633,7 @@ var sa = class {
2632
2633
  if (this.message.length > 0) {
2633
2634
  let e6 = this.message.charCodeAt(0);
2634
2635
  if (e6 !== 35 && e6 !== 39 && e6 !== 60 && e6 !== 123 && e6 !== 125) {
2635
- let e7 = oa(this.message);
2636
+ let e7 = sa(this.message);
2636
2637
  if (e7) {
2637
2638
  let t2 = this.clonePosition();
2638
2639
  return this.position = e7, { val: [{ type: 0, value: this.message, location: K(t2, this.clonePosition()) }], err: null };
@@ -2656,7 +2657,7 @@ var sa = class {
2656
2657
  } else if (i2 === 60 && !this.ignoreTag && this.peek() === 47) {
2657
2658
  if (n2) break;
2658
2659
  return this.error(26, K(this.clonePosition(), this.clonePosition()));
2659
- } else if (i2 === 60 && !this.ignoreTag && ca(this.peek() || 0)) {
2660
+ } else if (i2 === 60 && !this.ignoreTag && la(this.peek() || 0)) {
2660
2661
  let n3 = this.parseTag(e6, t2);
2661
2662
  if (n3.err) return n3;
2662
2663
  r2.push(n3.val);
@@ -2678,7 +2679,7 @@ var sa = class {
2678
2679
  if (i2.err) return i2;
2679
2680
  let a2 = i2.val, o2 = this.clonePosition();
2680
2681
  if (this.bumpIf(`</`)) {
2681
- if (this.isEOF() || !ca(this.char())) return this.error(23, K(o2, this.clonePosition()));
2682
+ if (this.isEOF() || !la(this.char())) return this.error(23, K(o2, this.clonePosition()));
2682
2683
  let e7 = this.clonePosition();
2683
2684
  return r2 === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(`>`) ? { val: { type: 8, value: r2, children: a2, location: K(n2, this.clonePosition()) }, err: null } : this.error(23, K(o2, this.clonePosition()))) : this.error(26, K(e7, this.clonePosition()));
2684
2685
  }
@@ -2688,7 +2689,7 @@ var sa = class {
2688
2689
  }
2689
2690
  parseTagName() {
2690
2691
  let e6 = this.offset();
2691
- for (this.bump(); !this.isEOF() && ua(this.char()); ) this.bump();
2692
+ for (this.bump(); !this.isEOF() && da(this.char()); ) this.bump();
2692
2693
  return this.message.slice(e6, this.offset());
2693
2694
  }
2694
2695
  parseLiteral(e6, t2) {
@@ -2712,7 +2713,7 @@ var sa = class {
2712
2713
  return { val: { type: 0, value: r2, location: i2 }, err: null };
2713
2714
  }
2714
2715
  tryParseLeftAngleBracket() {
2715
- return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !la(this.peek() || 0)) ? (this.bump(), `<`) : null;
2716
+ return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !ua(this.peek() || 0)) ? (this.bump(), `<`) : null;
2716
2717
  }
2717
2718
  tryParseQuote(e6) {
2718
2719
  if (this.isEOF() || this.char() !== 39) return null;
@@ -2767,7 +2768,7 @@ var sa = class {
2767
2768
  }
2768
2769
  }
2769
2770
  parseIdentifierIfPossible() {
2770
- let e6 = this.clonePosition(), t2 = this.offset(), n2 = aa(this.message, t2), r2 = t2 + n2.length;
2771
+ let e6 = this.clonePosition(), t2 = this.offset(), n2 = oa(this.message, t2), r2 = t2 + n2.length;
2771
2772
  return this.bumpTo(r2), { value: n2, location: K(e6, this.clonePosition()) };
2772
2773
  }
2773
2774
  parseArgumentOptions(e6, t2, n2, r2) {
@@ -2784,7 +2785,7 @@ var sa = class {
2784
2785
  this.bumpSpace();
2785
2786
  let t4 = this.clonePosition(), n3 = this.parseSimpleArgStyleIfPossible();
2786
2787
  if (n3.err) return n3;
2787
- let r3 = ra(n3.val);
2788
+ let r3 = ia(n3.val);
2788
2789
  if (r3.length === 0) return this.error(6, K(this.clonePosition(), this.clonePosition()));
2789
2790
  e7 = { style: r3, styleLocation: K(t4, this.clonePosition()) };
2790
2791
  }
@@ -2792,7 +2793,7 @@ var sa = class {
2792
2793
  if (t3.err) return t3;
2793
2794
  let i3 = K(r2, this.clonePosition());
2794
2795
  if (e7 && e7.style.startsWith(`::`)) {
2795
- let t4 = na(e7.style.slice(2));
2796
+ let t4 = ra(e7.style.slice(2));
2796
2797
  if (a2 === `number`) {
2797
2798
  let r3 = this.parseNumberSkeletonFromString(t4, e7.styleLocation);
2798
2799
  return r3.err ? r3 : { val: { type: 2, value: n2, location: i3, style: r3.val }, err: null };
@@ -2800,8 +2801,8 @@ var sa = class {
2800
2801
  {
2801
2802
  if (t4.length === 0) return this.error(10, i3);
2802
2803
  let r3 = t4;
2803
- this.locale && (r3 = Ji(t4, this.locale));
2804
- let o3 = { type: 1, pattern: r3, location: e7.styleLocation, parsedOptions: this.shouldParseSkeletons ? Si(r3) : {} };
2804
+ this.locale && (r3 = Yi(t4, this.locale));
2805
+ let o3 = { type: 1, pattern: r3, location: e7.styleLocation, parsedOptions: this.shouldParseSkeletons ? Ci(r3) : {} };
2805
2806
  return { val: { type: a2 === `date` ? 3 : 4, value: n2, location: i3, style: o3 }, err: null };
2806
2807
  }
2807
2808
  }
@@ -2826,7 +2827,7 @@ var sa = class {
2826
2827
  let l2 = this.tryParseArgumentClose(r2);
2827
2828
  if (l2.err) return l2;
2828
2829
  let u2 = K(r2, this.clonePosition());
2829
- 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 };
2830
+ return a2 === `select` ? { val: { type: 5, value: n2, options: na(c2.val), location: u2 }, err: null } : { val: { type: 6, value: n2, options: na(c2.val), offset: s2, pluralType: a2 === `plural` ? `cardinal` : `ordinal`, location: u2 }, err: null };
2830
2831
  }
2831
2832
  default:
2832
2833
  return this.error(5, K(i2, o2));
@@ -2860,11 +2861,11 @@ var sa = class {
2860
2861
  parseNumberSkeletonFromString(e6, t2) {
2861
2862
  let n2 = [];
2862
2863
  try {
2863
- n2 = wi(e6);
2864
+ n2 = Ti(e6);
2864
2865
  } catch {
2865
2866
  return this.error(7, t2);
2866
2867
  }
2867
- return { val: { type: 0, tokens: n2, location: t2, parsedOptions: this.shouldParseSkeletons ? Pi(n2) : {} }, err: null };
2868
+ return { val: { type: 0, tokens: n2, location: t2, parsedOptions: this.shouldParseSkeletons ? Fi(n2) : {} }, err: null };
2868
2869
  }
2869
2870
  tryParsePluralOrSelectOptions(e6, t2, n2, r2) {
2870
2871
  let i2 = false, a2 = [], o2 = /* @__PURE__ */ new Set(), { value: s2, location: c2 } = r2;
@@ -2946,7 +2947,7 @@ var sa = class {
2946
2947
  }
2947
2948
  }
2948
2949
  bumpSpace() {
2949
- for (; !this.isEOF() && da(this.char()); ) this.bump();
2950
+ for (; !this.isEOF() && fa(this.char()); ) this.bump();
2950
2951
  }
2951
2952
  peek() {
2952
2953
  if (this.isEOF()) return null;
@@ -2954,34 +2955,34 @@ var sa = class {
2954
2955
  return this.message.charCodeAt(t2 + (e6 >= 65536 ? 2 : 1)) ?? null;
2955
2956
  }
2956
2957
  };
2957
- function ca(e6) {
2958
- return e6 >= 97 && e6 <= 122 || e6 >= 65 && e6 <= 90;
2959
- }
2960
2958
  function la(e6) {
2961
- return ca(e6) || e6 === 47;
2959
+ return e6 >= 97 && e6 <= 122 || e6 >= 65 && e6 <= 90;
2962
2960
  }
2963
2961
  function ua(e6) {
2964
- 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;
2962
+ return la(e6) || e6 === 47;
2965
2963
  }
2966
2964
  function da(e6) {
2967
- return e6 >= 9 && e6 <= 13 || e6 === 32 || e6 === 133 || e6 >= 8206 && e6 <= 8207 || e6 === 8232 || e6 === 8233;
2965
+ 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;
2968
2966
  }
2969
2967
  function fa(e6) {
2968
+ return e6 >= 9 && e6 <= 13 || e6 === 32 || e6 === 133 || e6 >= 8206 && e6 <= 8207 || e6 === 8232 || e6 === 8233;
2969
+ }
2970
+ function pa(e6) {
2970
2971
  e6.forEach((e7) => {
2971
- if (delete e7.location, Vi(e7) || Hi(e7)) for (let t2 in e7.options) delete e7.options[t2].location, fa(e7.options[t2].value);
2972
- else Ri(e7) && Gi(e7.style) || (zi(e7) || Bi(e7)) && Ki(e7.style) ? delete e7.style.location : Wi(e7) && fa(e7.children);
2972
+ if (delete e7.location, Hi(e7) || Ui(e7)) for (let t2 in e7.options) delete e7.options[t2].location, pa(e7.options[t2].value);
2973
+ else zi(e7) && Ki(e7.style) || (Bi(e7) || Vi(e7)) && qi(e7.style) ? delete e7.style.location : Gi(e7) && pa(e7.children);
2973
2974
  });
2974
2975
  }
2975
- function pa(e6, t2 = {}) {
2976
+ function ma(e6, t2 = {}) {
2976
2977
  t2 = { shouldParseSkeletons: true, requiresOtherClause: true, ...t2 };
2977
- let n2 = new sa(e6, t2).parse();
2978
+ let n2 = new ca(e6, t2).parse();
2978
2979
  if (n2.err) {
2979
- let e7 = SyntaxError(Fi[n2.err.kind]);
2980
+ let e7 = SyntaxError(Ii[n2.err.kind]);
2980
2981
  throw e7.location = n2.err.location, e7.originalMessage = n2.err.message, e7;
2981
2982
  }
2982
- return t2?.captureLocation || fa(n2.val), n2.val;
2983
+ return t2?.captureLocation || pa(n2.val), n2.val;
2983
2984
  }
2984
- var ma = class extends Error {
2985
+ var ha = class extends Error {
2985
2986
  constructor(e6, t2, n2) {
2986
2987
  super(e6), this.code = t2, this.originalMessage = n2;
2987
2988
  }
@@ -2989,54 +2990,54 @@ var ma = class extends Error {
2989
2990
  return `[formatjs Error: ${this.code}] ${this.message}`;
2990
2991
  }
2991
2992
  };
2992
- var ha = class extends ma {
2993
+ var ga = class extends ha {
2993
2994
  constructor(e6, t2, n2, r2) {
2994
2995
  super(`Invalid values for "${e6}": "${t2}". Options are "${Object.keys(n2).join(`", "`)}"`, `INVALID_VALUE`, r2);
2995
2996
  }
2996
2997
  };
2997
- var ga = class extends ma {
2998
+ var _a = class extends ha {
2998
2999
  constructor(e6, t2, n2) {
2999
3000
  super(`Value for "${e6}" must be of type ${t2}`, `INVALID_VALUE`, n2);
3000
3001
  }
3001
3002
  };
3002
- var _a = class extends ma {
3003
+ var va = class extends ha {
3003
3004
  constructor(e6, t2) {
3004
3005
  super(`The intl string context variable "${e6}" was not provided to the string "${t2}"`, `MISSING_VALUE`, t2);
3005
3006
  }
3006
3007
  };
3007
- function va(e6) {
3008
+ function ya(e6) {
3008
3009
  return e6.length < 2 ? e6 : e6.reduce((e7, t2) => {
3009
3010
  let n2 = e7[e7.length - 1];
3010
3011
  return !n2 || n2.type !== 0 || t2.type !== 0 ? e7.push(t2) : n2.value += t2.value, e7;
3011
3012
  }, []);
3012
3013
  }
3013
- function ya(e6) {
3014
+ function ba(e6) {
3014
3015
  return typeof e6 == `function`;
3015
3016
  }
3016
- function ba(e6, t2, n2, r2, i2, a2, o2) {
3017
- if (e6.length === 1 && Ii(e6[0])) return [{ type: 0, value: e6[0].value }];
3017
+ function xa(e6, t2, n2, r2, i2, a2, o2) {
3018
+ if (e6.length === 1 && Li(e6[0])) return [{ type: 0, value: e6[0].value }];
3018
3019
  let s2 = [];
3019
3020
  for (let c2 of e6) {
3020
- if (Ii(c2)) {
3021
+ if (Li(c2)) {
3021
3022
  s2.push({ type: 0, value: c2.value });
3022
3023
  continue;
3023
3024
  }
3024
- if (Ui(c2)) {
3025
+ if (Wi(c2)) {
3025
3026
  typeof a2 == `number` && s2.push({ type: 0, value: n2.getNumberFormat(t2).format(a2) });
3026
3027
  continue;
3027
3028
  }
3028
3029
  let { value: e7 } = c2;
3029
- if (!(i2 && e7 in i2)) throw new _a(e7, o2);
3030
+ if (!(i2 && e7 in i2)) throw new va(e7, o2);
3030
3031
  let l2 = i2[e7];
3031
- if (Li(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 });
3032
- else if (zi(c2)) {
3033
- let e8 = typeof c2.style == `string` ? r2.date[c2.style] : Ki(c2.style) ? c2.style.parsedOptions : void 0;
3032
+ if (Ri(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 });
3033
+ else if (Bi(c2)) {
3034
+ let e8 = typeof c2.style == `string` ? r2.date[c2.style] : qi(c2.style) ? c2.style.parsedOptions : void 0;
3034
3035
  s2.push({ type: 0, value: n2.getDateTimeFormat(t2, e8).format(l2) });
3035
- } else if (Bi(c2)) {
3036
- let e8 = typeof c2.style == `string` ? r2.time[c2.style] : Ki(c2.style) ? c2.style.parsedOptions : r2.time.medium;
3036
+ } else if (Vi(c2)) {
3037
+ let e8 = typeof c2.style == `string` ? r2.time[c2.style] : qi(c2.style) ? c2.style.parsedOptions : r2.time.medium;
3037
3038
  s2.push({ type: 0, value: n2.getDateTimeFormat(t2, e8).format(l2) });
3038
- } else if (Ri(c2)) {
3039
- let e8 = typeof c2.style == `string` ? r2.number[c2.style] : Gi(c2.style) ? c2.style.parsedOptions : void 0;
3039
+ } else if (zi(c2)) {
3040
+ let e8 = typeof c2.style == `string` ? r2.number[c2.style] : Ki(c2.style) ? c2.style.parsedOptions : void 0;
3040
3041
  if (e8 && e8.scale) {
3041
3042
  let t3 = e8.scale || 1;
3042
3043
  if (typeof l2 == `bigint`) {
@@ -3046,40 +3047,40 @@ function ba(e6, t2, n2, r2, i2, a2, o2) {
3046
3047
  }
3047
3048
  s2.push({ type: 0, value: n2.getNumberFormat(t2, e8).format(l2) });
3048
3049
  } else {
3049
- if (Wi(c2)) {
3050
+ if (Gi(c2)) {
3050
3051
  let { children: e8, value: l3 } = c2, u2 = i2[l3];
3051
- if (!ya(u2)) throw new ga(l3, `function`, o2);
3052
- let d2 = u2(ba(e8, t2, n2, r2, i2, a2).map((e9) => e9.value));
3052
+ if (!ba(u2)) throw new _a(l3, `function`, o2);
3053
+ let d2 = u2(xa(e8, t2, n2, r2, i2, a2).map((e9) => e9.value));
3053
3054
  Array.isArray(d2) || (d2 = [d2]), s2.push(...d2.map((e9) => ({ type: typeof e9 == `string` ? 0 : 1, value: e9 })));
3054
3055
  }
3055
- if (Vi(c2)) {
3056
+ if (Hi(c2)) {
3056
3057
  let e8 = l2, a3 = (Object.prototype.hasOwnProperty.call(c2.options, e8) ? c2.options[e8] : void 0) || c2.options.other;
3057
- if (!a3) throw new ha(c2.value, l2, Object.keys(c2.options), o2);
3058
- s2.push(...ba(a3.value, t2, n2, r2, i2));
3059
- } else if (Hi(c2)) {
3058
+ if (!a3) throw new ga(c2.value, l2, Object.keys(c2.options), o2);
3059
+ s2.push(...xa(a3.value, t2, n2, r2, i2));
3060
+ } else if (Ui(c2)) {
3060
3061
  let e8 = `=${l2}`, a3 = Object.prototype.hasOwnProperty.call(c2.options, e8) ? c2.options[e8] : void 0;
3061
3062
  if (!a3) {
3062
- if (!Intl.PluralRules) throw new ma(`Intl.PluralRules is not available in this environment.
3063
+ if (!Intl.PluralRules) throw new ha(`Intl.PluralRules is not available in this environment.
3063
3064
  Try polyfilling it using "@formatjs/intl-pluralrules"
3064
3065
  `, `MISSING_INTL_API`, o2);
3065
3066
  let e9 = typeof l2 == `bigint` ? Number(l2) : l2, r3 = n2.getPluralRules(t2, { type: c2.pluralType }).select(e9 - (c2.offset || 0));
3066
3067
  a3 = (Object.prototype.hasOwnProperty.call(c2.options, r3) ? c2.options[r3] : void 0) || c2.options.other;
3067
3068
  }
3068
- if (!a3) throw new ha(c2.value, l2, Object.keys(c2.options), o2);
3069
+ if (!a3) throw new ga(c2.value, l2, Object.keys(c2.options), o2);
3069
3070
  let u2 = typeof l2 == `bigint` ? Number(l2) : l2;
3070
- s2.push(...ba(a3.value, t2, n2, r2, i2, u2 - (c2.offset || 0)));
3071
+ s2.push(...xa(a3.value, t2, n2, r2, i2, u2 - (c2.offset || 0)));
3071
3072
  }
3072
3073
  }
3073
3074
  }
3074
- return va(s2);
3075
+ return ya(s2);
3075
3076
  }
3076
- function xa(e6, t2) {
3077
+ function Sa(e6, t2) {
3077
3078
  return t2 ? { ...e6, ...t2, ...Object.keys(e6).reduce((n2, r2) => (n2[r2] = { ...e6[r2], ...t2[r2] }, n2), {}) } : e6;
3078
3079
  }
3079
- function Sa(e6, t2) {
3080
- return t2 ? Object.keys(e6).reduce((n2, r2) => (n2[r2] = xa(e6[r2], t2[r2]), n2), { ...e6 }) : e6;
3080
+ function Ca(e6, t2) {
3081
+ return t2 ? Object.keys(e6).reduce((n2, r2) => (n2[r2] = Sa(e6[r2], t2[r2]), n2), { ...e6 }) : e6;
3081
3082
  }
3082
- function Ca(e6) {
3083
+ function wa(e6) {
3083
3084
  return { create() {
3084
3085
  return { get(t2) {
3085
3086
  return e6[t2];
@@ -3088,23 +3089,23 @@ function Ca(e6) {
3088
3089
  } };
3089
3090
  } };
3090
3091
  }
3091
- function wa(e6 = { number: {}, dateTime: {}, pluralRules: {} }) {
3092
- return { getNumberFormat: li((...e7) => new Intl.NumberFormat(...e7), { cache: Ca(e6.number), strategy: bi.variadic }), getDateTimeFormat: li((...e7) => new Intl.DateTimeFormat(...e7), { cache: Ca(e6.dateTime), strategy: bi.variadic }), getPluralRules: li((...e7) => new Intl.PluralRules(...e7), { cache: Ca(e6.pluralRules), strategy: bi.variadic }) };
3092
+ function Ta(e6 = { number: {}, dateTime: {}, pluralRules: {} }) {
3093
+ return { getNumberFormat: ui((...e7) => new Intl.NumberFormat(...e7), { cache: wa(e6.number), strategy: xi.variadic }), getDateTimeFormat: ui((...e7) => new Intl.DateTimeFormat(...e7), { cache: wa(e6.dateTime), strategy: xi.variadic }), getPluralRules: ui((...e7) => new Intl.PluralRules(...e7), { cache: wa(e6.pluralRules), strategy: xi.variadic }) };
3093
3094
  }
3094
- var Ta = class e5 {
3095
+ var Ea = class e5 {
3095
3096
  constructor(t2, n2 = e5.defaultLocale, r2, i2) {
3096
3097
  if (this.formatterCache = { number: {}, dateTime: {}, pluralRules: {} }, this.format = (e6) => {
3097
3098
  let t3 = this.formatToParts(e6);
3098
3099
  if (t3.length === 1) return t3[0].value;
3099
3100
  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), []);
3100
3101
  return n3.length <= 1 ? n3[0] || `` : n3;
3101
- }, this.formatToParts = (e6) => ba(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`) {
3102
+ }, this.formatToParts = (e6) => xa(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`) {
3102
3103
  if (this.message = t2, !e5.__parse) throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3103
3104
  let { ...n3 } = i2 || {};
3104
3105
  this.ast = e5.__parse(t2, { ...n3, locale: this.resolvedLocale });
3105
3106
  } else this.ast = t2;
3106
3107
  if (!Array.isArray(this.ast)) throw TypeError(`A message must be provided as a String or AST.`);
3107
- this.formats = Sa(e5.formats, r2), this.formatters = i2 && i2.formatters || wa(this.formatterCache);
3108
+ this.formats = Ca(e5.formats, r2), this.formatters = i2 && i2.formatters || Ta(this.formatterCache);
3108
3109
  }
3109
3110
  static {
3110
3111
  this.memoizedDefaultLocale = null;
@@ -3120,14 +3121,14 @@ var Ta = class e5 {
3120
3121
  };
3121
3122
  }
3122
3123
  static {
3123
- this.__parse = pa;
3124
+ this.__parse = ma;
3124
3125
  }
3125
3126
  static {
3126
3127
  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` } } };
3127
3128
  }
3128
3129
  };
3129
- var Ea = [`__proto__`, `constructor`, `prototype`];
3130
- function Da(e6, t2, n2) {
3130
+ var Da = [`__proto__`, `constructor`, `prototype`];
3131
+ function Oa(e6, t2, n2) {
3131
3132
  function r2(e7) {
3132
3133
  return e7 && e7.indexOf(`###`) > -1 ? e7.replace(/###/g, `.`) : e7;
3133
3134
  }
@@ -3137,49 +3138,49 @@ function Da(e6, t2, n2) {
3137
3138
  for (var a2 = typeof t2 == `string` ? t2.split(`.`) : [].concat(t2); a2.length > 1; ) {
3138
3139
  if (i2()) return {};
3139
3140
  var o2 = r2(a2.shift());
3140
- if (Ea.indexOf(o2) > -1) return {};
3141
+ if (Da.indexOf(o2) > -1) return {};
3141
3142
  !e6[o2] && n2 && (e6[o2] = new n2()), e6 = e6[o2];
3142
3143
  }
3143
3144
  if (i2()) return {};
3144
3145
  var s2 = r2(a2.shift());
3145
- return Ea.indexOf(s2) > -1 ? {} : { obj: e6, k: s2 };
3146
+ return Da.indexOf(s2) > -1 ? {} : { obj: e6, k: s2 };
3146
3147
  }
3147
- function Oa(e6, t2, n2) {
3148
- var r2 = Da(e6, t2, Object), i2 = r2.obj, a2 = r2.k;
3148
+ function ka(e6, t2, n2) {
3149
+ var r2 = Oa(e6, t2, Object), i2 = r2.obj, a2 = r2.k;
3149
3150
  i2 !== void 0 && (i2[a2] = n2);
3150
3151
  }
3151
- function ka(e6, t2) {
3152
- var n2 = Da(e6, t2), r2 = n2.obj, i2 = n2.k;
3152
+ function Aa(e6, t2) {
3153
+ var n2 = Oa(e6, t2), r2 = n2.obj, i2 = n2.k;
3153
3154
  if (r2) return r2[i2];
3154
3155
  }
3155
- function Aa(e6) {
3156
+ function ja(e6) {
3156
3157
  return [...arguments].slice(1).forEach(function(t2) {
3157
3158
  if (t2) for (var n2 = 0, r2 = Object.keys(t2); n2 < r2.length; n2++) {
3158
3159
  var i2 = r2[n2];
3159
- Ea.indexOf(i2) > -1 || e6[i2] === void 0 && (e6[i2] = t2[i2]);
3160
+ Da.indexOf(i2) > -1 || e6[i2] === void 0 && (e6[i2] = t2[i2]);
3160
3161
  }
3161
3162
  }), e6;
3162
3163
  }
3163
- function ja(e6, t2) {
3164
- return Ia(e6) || Fa(e6, t2) || Na(e6, t2) || Ma();
3164
+ function Ma(e6, t2) {
3165
+ return La(e6) || Ia(e6, t2) || Pa(e6, t2) || Na();
3165
3166
  }
3166
- function Ma() {
3167
+ function Na() {
3167
3168
  throw TypeError(`Invalid attempt to destructure non-iterable instance.
3168
3169
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
3169
3170
  }
3170
- function Na(e6, t2) {
3171
+ function Pa(e6, t2) {
3171
3172
  if (e6) {
3172
- if (typeof e6 == `string`) return Pa(e6, t2);
3173
+ if (typeof e6 == `string`) return Fa(e6, t2);
3173
3174
  var n2 = {}.toString.call(e6).slice(8, -1);
3174
- 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) ? Pa(e6, t2) : void 0;
3175
+ 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) ? Fa(e6, t2) : void 0;
3175
3176
  }
3176
3177
  }
3177
- function Pa(e6, t2) {
3178
+ function Fa(e6, t2) {
3178
3179
  (t2 == null || t2 > e6.length) && (t2 = e6.length);
3179
3180
  for (var n2 = 0, r2 = Array(t2); n2 < t2; n2++) r2[n2] = e6[n2];
3180
3181
  return r2;
3181
3182
  }
3182
- function Fa(e6, t2) {
3183
+ function Ia(e6, t2) {
3183
3184
  var n2 = e6 == null ? null : typeof Symbol < `u` && e6[Symbol.iterator] || e6[`@@iterator`];
3184
3185
  if (n2 != null) {
3185
3186
  var r2, i2, a2, o2, s2 = [], c2 = true, l2 = false;
@@ -3200,10 +3201,10 @@ function Fa(e6, t2) {
3200
3201
  return s2;
3201
3202
  }
3202
3203
  }
3203
- function Ia(e6) {
3204
+ function La(e6) {
3204
3205
  if (Array.isArray(e6)) return e6;
3205
3206
  }
3206
- function La(e6, t2) {
3207
+ function Ra(e6, t2) {
3207
3208
  var n2 = Object.keys(e6);
3208
3209
  if (Object.getOwnPropertySymbols) {
3209
3210
  var r2 = Object.getOwnPropertySymbols(e6);
@@ -3213,37 +3214,37 @@ function La(e6, t2) {
3213
3214
  }
3214
3215
  return n2;
3215
3216
  }
3216
- function Ra(e6) {
3217
+ function za(e6) {
3217
3218
  for (var t2 = 1; t2 < arguments.length; t2++) {
3218
3219
  var n2 = arguments[t2] == null ? {} : arguments[t2];
3219
- t2 % 2 ? La(Object(n2), true).forEach(function(t3) {
3220
- za(e6, t3, n2[t3]);
3221
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e6, Object.getOwnPropertyDescriptors(n2)) : La(Object(n2)).forEach(function(t3) {
3220
+ t2 % 2 ? Ra(Object(n2), true).forEach(function(t3) {
3221
+ Ba(e6, t3, n2[t3]);
3222
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e6, Object.getOwnPropertyDescriptors(n2)) : Ra(Object(n2)).forEach(function(t3) {
3222
3223
  Object.defineProperty(e6, t3, Object.getOwnPropertyDescriptor(n2, t3));
3223
3224
  });
3224
3225
  }
3225
3226
  return e6;
3226
3227
  }
3227
- function za(e6, t2, n2) {
3228
- return (t2 = Ua(t2)) in e6 ? Object.defineProperty(e6, t2, { value: n2, enumerable: true, configurable: true, writable: true }) : e6[t2] = n2, e6;
3228
+ function Ba(e6, t2, n2) {
3229
+ return (t2 = Wa(t2)) in e6 ? Object.defineProperty(e6, t2, { value: n2, enumerable: true, configurable: true, writable: true }) : e6[t2] = n2, e6;
3229
3230
  }
3230
- function Ba(e6, t2) {
3231
+ function Va(e6, t2) {
3231
3232
  if (!(e6 instanceof t2)) throw TypeError(`Cannot call a class as a function`);
3232
3233
  }
3233
- function Va(e6, t2) {
3234
+ function Ha(e6, t2) {
3234
3235
  for (var n2 = 0; n2 < t2.length; n2++) {
3235
3236
  var r2 = t2[n2];
3236
- r2.enumerable = r2.enumerable || false, r2.configurable = true, `value` in r2 && (r2.writable = true), Object.defineProperty(e6, Ua(r2.key), r2);
3237
+ r2.enumerable = r2.enumerable || false, r2.configurable = true, `value` in r2 && (r2.writable = true), Object.defineProperty(e6, Wa(r2.key), r2);
3237
3238
  }
3238
3239
  }
3239
- function Ha(e6, t2, n2) {
3240
- return t2 && Va(e6.prototype, t2), n2 && Va(e6, n2), Object.defineProperty(e6, "prototype", { writable: false }), e6;
3240
+ function Ua(e6, t2, n2) {
3241
+ return t2 && Ha(e6.prototype, t2), n2 && Ha(e6, n2), Object.defineProperty(e6, "prototype", { writable: false }), e6;
3241
3242
  }
3242
- function Ua(e6) {
3243
- var t2 = Wa(e6, `string`);
3243
+ function Wa(e6) {
3244
+ var t2 = Ga(e6, `string`);
3244
3245
  return q(t2) == `symbol` ? t2 : t2 + ``;
3245
3246
  }
3246
- function Wa(e6, t2) {
3247
+ function Ga(e6, t2) {
3247
3248
  if (q(e6) != `object` || !e6) return e6;
3248
3249
  var n2 = e6[Symbol.toPrimitive];
3249
3250
  if (n2 !== void 0) {
@@ -3261,53 +3262,53 @@ function q(e6) {
3261
3262
  return e7 && typeof Symbol == `function` && e7.constructor === Symbol && e7 !== Symbol.prototype ? `symbol` : typeof e7;
3262
3263
  }, q(e6);
3263
3264
  }
3264
- var Ga = `https://www.i18next.com/how-to/using-icu-or-mf2`;
3265
- var Ka = [`zero`, `one`, `two`, `few`, `many`, `other`];
3266
- function qa() {
3265
+ var Ka = `https://www.i18next.com/how-to/using-icu-or-mf2`;
3266
+ var qa = [`zero`, `one`, `two`, `few`, `many`, `other`];
3267
+ function Ja() {
3267
3268
  return { memoize: true, memoizeFallback: false, bindI18n: ``, bindI18nStore: ``, parseErrorHandler: function(e6, t2, n2, r2) {
3268
3269
  return n2;
3269
3270
  }, parseLngForICU: function(e6) {
3270
3271
  return e6;
3271
3272
  }, escapeVariables: false };
3272
3273
  }
3273
- function Ja(e6, t2, n2, r2) {
3274
+ function Ya(e6, t2, n2, r2) {
3274
3275
  return n2 && t2 && q(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}`;
3275
3276
  }
3276
- var Ya = function() {
3277
+ var Xa = function() {
3277
3278
  function e6(t2) {
3278
- Ba(this, e6), this.type = `i18nFormat`, this.mem = {}, this.warned = /* @__PURE__ */ new Set(), this.init(null, t2);
3279
+ Va(this, e6), this.type = `i18nFormat`, this.mem = {}, this.warned = /* @__PURE__ */ new Set(), this.init(null, t2);
3279
3280
  }
3280
- return Ha(e6, [{ key: `init`, value: function(e7, t2) {
3281
+ return Ua(e6, [{ key: `init`, value: function(e7, t2) {
3281
3282
  var n2 = this, r2 = e7 && e7.options && e7.options.i18nFormat || {};
3282
- if (this.options = Aa(r2, t2, this.options || {}, qa()), this.formats = this.options.formats, e7) {
3283
+ if (this.options = ja(r2, t2, this.options || {}, Ja()), this.formats = this.options.formats, e7) {
3283
3284
  var i2 = this.options, a2 = i2.bindI18n, o2 = i2.bindI18nStore, s2 = i2.memoize;
3284
- e7.IntlMessageFormat = Ta, 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() {
3285
+ e7.IntlMessageFormat = Ea, 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() {
3285
3286
  return n2.clearCache();
3286
3287
  }), o2 && e7.store.on(o2, function() {
3287
3288
  return n2.clearCache();
3288
3289
  }));
3289
3290
  }
3290
3291
  } }, { key: `addUserDefinedFormats`, value: function(e7) {
3291
- this.formats = this.formats ? Ra(Ra({}, this.formats), e7) : e7, this.clearCache();
3292
+ this.formats = this.formats ? za(za({}, this.formats), e7) : e7, this.clearCache();
3292
3293
  } }, { key: `parse`, value: function(e7, t2, n2, r2, i2, a2) {
3293
3294
  var o2 = a2 && a2.resolved && a2.resolved.res, s2 = this.options.memoize && [n2, r2, i2], c2;
3294
3295
  if (this.options.memoize) {
3295
- var l2 = ka(this.mem, s2);
3296
+ var l2 = Aa(this.mem, s2);
3296
3297
  l2 && l2.res === e7 && (c2 = l2.fc);
3297
3298
  }
3298
3299
  try {
3299
- 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 Ta(e7, this.options.parseLngForICU(n2), this.formats, { ignoreTag: true }), this.options.memoize && (this.options.memoizeFallback || !a2 || o2) && Oa(this.mem, s2, { res: e7, fc: c2 }));
3300
- var u2 = t2 && t2.replace && q(t2.replace) === `object` ? Ra(Ra({}, t2), t2.replace) : t2;
3300
+ 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 Ea(e7, this.options.parseLngForICU(n2), this.formats, { ignoreTag: true }), this.options.memoize && (this.options.memoizeFallback || !a2 || o2) && ka(this.mem, s2, { res: e7, fc: c2 }));
3301
+ var u2 = t2 && t2.replace && q(t2.replace) === `object` ? za(za({}, t2), t2.replace) : t2;
3301
3302
  return c2.format(this.escapeVariableValues(u2));
3302
3303
  } catch (a3) {
3303
- return this.debug && this.firstTime(`error ${n2} ${r2} ${i2}`) && this.warn(Ja(a3, e7, !c2, `key "${i2}" (${n2}/${r2})`)), this.options.parseErrorHandler(a3, i2, e7, t2);
3304
+ return this.debug && this.firstTime(`error ${n2} ${r2} ${i2}`) && this.warn(Ya(a3, e7, !c2, `key "${i2}" (${n2}/${r2})`)), this.options.parseErrorHandler(a3, i2, e7, t2);
3304
3305
  }
3305
3306
  } }, { key: `addLookupKeys`, value: function(e7, t2, n2, r2, i2) {
3306
3307
  return this.debug && i2 && this.checkSuffixKeys(t2, n2, r2, i2), e7;
3307
3308
  } }, { key: `checkSuffixKeys`, value: function(e7, t2, n2, r2) {
3308
3309
  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})`;
3309
3310
  if (i2 !== void 0 && this.firstTime(`plural ${t2} ${n2} ${e7}`)) {
3310
- var p2 = Ka.concat(Ka.map(function(e8) {
3311
+ var p2 = qa.concat(qa.map(function(e8) {
3311
3312
  return `ordinal${c2}${e8}`;
3312
3313
  })).map(function(t3) {
3313
3314
  return `${e7}${c2}${t3}`;
@@ -3321,33 +3322,33 @@ var Ya = function() {
3321
3322
  } }, { key: `firstTime`, value: function(e7) {
3322
3323
  return !this.warned.has(e7) && (this.warned.add(e7), true);
3323
3324
  } }, { key: `warn`, value: function(e7) {
3324
- this.i18next.services.logger.warn(`i18next-icu: ${e7} See ${Ga}`);
3325
+ this.i18next.services.logger.warn(`i18next-icu: ${e7} See ${Ka}`);
3325
3326
  } }, { key: `clearCache`, value: function() {
3326
3327
  this.mem = {};
3327
3328
  } }, { key: `escapeVariableValues`, value: function(e7) {
3328
3329
  if (!this.options.escapeVariables || !e7 || q(e7) !== `object`) return e7;
3329
3330
  for (var t2 = {}, n2 = 0, r2 = Object.entries(e7); n2 < r2.length; n2++) {
3330
- var i2 = ja(r2[n2], 2), a2 = i2[0], o2 = i2[1];
3331
+ var i2 = Ma(r2[n2], 2), a2 = i2[0], o2 = i2[1];
3331
3332
  t2[a2] = typeof o2 == `string` ? o2.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`) : o2;
3332
3333
  }
3333
3334
  return t2;
3334
3335
  } }]), e6;
3335
3336
  }();
3336
- Ya.type = `i18nFormat`;
3337
- function Xa({ icuOptions: e6 = {}, ...t2 }) {
3337
+ Xa.type = `i18nFormat`;
3338
+ function Za({ icuOptions: e6 = {}, ...t2 }) {
3338
3339
  let { parseErrorHandler: n2 = void 0 } = t2;
3339
- return ci(t2, { icu: new Ya({ parseErrorHandler: n2, bindI18n: t2.bindI18n, ...e6 }) });
3340
+ return li(t2, { icu: new Xa({ parseErrorHandler: n2, bindI18n: t2.bindI18n, ...e6 }) });
3340
3341
  }
3341
- var Za = (e6, t2, n2, r2) => {
3342
+ var Qa = (e6, t2, n2, r2) => {
3342
3343
  let i2 = [n2, { code: t2, ...r2 || {} }];
3343
3344
  if (e6?.services?.logger?.forward) return e6.services.logger.forward(i2, `warn`, `react-i18next::`, true);
3344
3345
  J(i2[0]) && (i2[0] = `react-i18next:: ${i2[0]}`), e6?.services?.logger?.warn ? e6.services.logger.warn(...i2) : console?.warn && console.warn(...i2);
3345
3346
  };
3346
- var Qa = {};
3347
- var $a = (e6, t2, n2, r2) => {
3348
- J(n2) && Qa[n2] || (J(n2) && (Qa[n2] = /* @__PURE__ */ new Date()), Za(e6, t2, n2, r2));
3347
+ var $a = {};
3348
+ var eo = (e6, t2, n2, r2) => {
3349
+ J(n2) && $a[n2] || (J(n2) && ($a[n2] = /* @__PURE__ */ new Date()), Qa(e6, t2, n2, r2));
3349
3350
  };
3350
- var eo = (e6, t2) => () => {
3351
+ var to = (e6, t2) => () => {
3351
3352
  if (e6.isInitialized) t2();
3352
3353
  else {
3353
3354
  let n2 = () => {
@@ -3358,29 +3359,29 @@ var eo = (e6, t2) => () => {
3358
3359
  e6.on(`initialized`, n2);
3359
3360
  }
3360
3361
  };
3361
- var to = (e6, t2, n2) => {
3362
- e6.loadNamespaces(t2, eo(e6, n2));
3362
+ var no = (e6, t2, n2) => {
3363
+ e6.loadNamespaces(t2, to(e6, n2));
3363
3364
  };
3364
- var no = (e6, t2, n2, r2) => {
3365
- if (J(n2) && (n2 = [n2]), e6.options.preload && e6.options.preload.indexOf(t2) > -1) return to(e6, n2, r2);
3365
+ var ro = (e6, t2, n2, r2) => {
3366
+ if (J(n2) && (n2 = [n2]), e6.options.preload && e6.options.preload.indexOf(t2) > -1) return no(e6, n2, r2);
3366
3367
  n2.forEach((t3) => {
3367
3368
  e6.options.ns.indexOf(t3) < 0 && e6.options.ns.push(t3);
3368
- }), e6.loadLanguages(t2, eo(e6, r2));
3369
+ }), e6.loadLanguages(t2, to(e6, r2));
3369
3370
  };
3370
- var ro = (e6, t2, n2 = {}) => !t2.languages || !t2.languages.length ? ($a(t2, `NO_LANGUAGES`, `i18n.languages were undefined or empty`, { languages: t2.languages }), true) : t2.hasLoadedNamespace(e6, { lng: n2.lng, precheck: (t3, r2) => {
3371
+ var io = (e6, t2, n2 = {}) => !t2.languages || !t2.languages.length ? (eo(t2, `NO_LANGUAGES`, `i18n.languages were undefined or empty`, { languages: t2.languages }), true) : t2.hasLoadedNamespace(e6, { lng: n2.lng, precheck: (t3, r2) => {
3371
3372
  if (n2.bindI18n && n2.bindI18n.indexOf(`languageChanging`) > -1 && t3.services.backendConnector.backend && t3.isLanguageChangingTo && !r2(t3.isLanguageChangingTo, e6)) return false;
3372
3373
  } });
3373
3374
  var J = (e6) => typeof e6 == `string`;
3374
- var io = (e6) => typeof e6 == `object` && !!e6;
3375
- var ao = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
3376
- 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;": `/` };
3377
- var so = (e6) => oo[e6];
3378
- var co = { bindI18n: `languageChanged`, bindI18nStore: ``, transEmptyNodeValue: ``, transSupportBasicHtmlNodes: true, transWrapTextNodes: ``, transKeepBasicHtmlNodesFor: [`br`, `strong`, `i`, `p`], useSuspense: true, unescape: (e6) => e6.replace(ao, so) };
3379
- var lo = () => co;
3380
- var uo;
3381
- var fo = () => uo;
3382
- var po = (0, import_react.createContext)();
3383
- var mo = class {
3375
+ var ao = (e6) => typeof e6 == `object` && !!e6;
3376
+ var oo = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
3377
+ var so = { "&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;": `/` };
3378
+ var co = (e6) => so[e6];
3379
+ var lo = { bindI18n: `languageChanged`, bindI18nStore: ``, transEmptyNodeValue: ``, transSupportBasicHtmlNodes: true, transWrapTextNodes: ``, transKeepBasicHtmlNodesFor: [`br`, `strong`, `i`, `p`], useSuspense: true, unescape: (e6) => e6.replace(oo, co) };
3380
+ var uo = () => lo;
3381
+ var fo;
3382
+ var po = () => fo;
3383
+ var mo = (0, import_react.createContext)();
3384
+ var ho = class {
3384
3385
  constructor() {
3385
3386
  this.usedNamespaces = {};
3386
3387
  }
@@ -3393,32 +3394,32 @@ var mo = class {
3393
3394
  return Object.keys(this.usedNamespaces);
3394
3395
  }
3395
3396
  };
3396
- var ho = (e6, t2) => {
3397
+ var go = (e6, t2) => {
3397
3398
  let n2 = (0, import_react.useRef)();
3398
3399
  return (0, import_react.useEffect)(() => {
3399
3400
  n2.current = t2 ? n2.current : e6;
3400
3401
  }, [e6, t2]), n2.current;
3401
3402
  };
3402
- var go = (e6, t2, n2, r2) => e6.getFixedT(t2, n2, r2);
3403
- var _o = (e6, t2, n2, r2) => (0, import_react.useCallback)(go(e6, t2, n2, r2), [e6, t2, n2, r2]);
3404
- var vo = (e6, t2 = {}) => {
3405
- let { i18n: n2 } = t2, { i18n: r2, defaultNS: i2 } = (0, import_react.useContext)(po) || {}, a2 = n2 || r2 || fo();
3406
- if (a2 && !a2.reportNamespaces && (a2.reportNamespaces = new mo()), !a2) {
3407
- $a(a2, `NO_I18NEXT_INSTANCE`, `useTranslation: You will need to pass in an i18next instance by using initReactI18next`);
3408
- let e7 = (e8, t4) => J(t4) ? t4 : io(t4) && J(t4.defaultValue) ? t4.defaultValue : Array.isArray(e8) ? e8[e8.length - 1] : e8, t3 = [e7, {}, false];
3403
+ var _o = (e6, t2, n2, r2) => e6.getFixedT(t2, n2, r2);
3404
+ var vo = (e6, t2, n2, r2) => (0, import_react.useCallback)(_o(e6, t2, n2, r2), [e6, t2, n2, r2]);
3405
+ var yo = (e6, t2 = {}) => {
3406
+ let { i18n: n2 } = t2, { i18n: r2, defaultNS: i2 } = (0, import_react.useContext)(mo) || {}, a2 = n2 || r2 || po();
3407
+ if (a2 && !a2.reportNamespaces && (a2.reportNamespaces = new ho()), !a2) {
3408
+ eo(a2, `NO_I18NEXT_INSTANCE`, `useTranslation: You will need to pass in an i18next instance by using initReactI18next`);
3409
+ let e7 = (e8, t4) => J(t4) ? t4 : ao(t4) && J(t4.defaultValue) ? t4.defaultValue : Array.isArray(e8) ? e8[e8.length - 1] : e8, t3 = [e7, {}, false];
3409
3410
  return t3.t = e7, t3.i18n = {}, t3.ready = false, t3;
3410
3411
  }
3411
- a2.options.react?.wait && $a(a2, `DEPRECATED_OPTION`, `useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.`);
3412
- let o2 = { ...lo(), ...a2.options.react, ...t2 }, { useSuspense: s2, keyPrefix: u2 } = o2, p2 = e6 || i2 || a2.options?.defaultNS;
3412
+ a2.options.react?.wait && eo(a2, `DEPRECATED_OPTION`, `useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.`);
3413
+ let o2 = { ...uo(), ...a2.options.react, ...t2 }, { useSuspense: s2, keyPrefix: u2 } = o2, p2 = e6 || i2 || a2.options?.defaultNS;
3413
3414
  p2 = J(p2) ? [p2] : p2 || [`translation`], a2.reportNamespaces.addUsedNamespaces?.(p2);
3414
- let m2 = (a2.isInitialized || a2.initializedStoreOnce) && p2.every((e7) => ro(e7, a2, o2)), h2 = _o(a2, t2.lng || null, o2.nsMode === `fallback` ? p2 : p2[0], u2), g2 = () => h2, _2 = () => go(a2, t2.lng || null, o2.nsMode === `fallback` ? p2 : p2[0], u2), [v2, y2] = (0, import_react.useState)(g2), b2 = p2.join();
3415
+ let m2 = (a2.isInitialized || a2.initializedStoreOnce) && p2.every((e7) => io(e7, a2, o2)), h2 = vo(a2, t2.lng || null, o2.nsMode === `fallback` ? p2 : p2[0], u2), g2 = () => h2, _2 = () => _o(a2, t2.lng || null, o2.nsMode === `fallback` ? p2 : p2[0], u2), [v2, y2] = (0, import_react.useState)(g2), b2 = p2.join();
3415
3416
  t2.lng && (b2 = `${t2.lng}${b2}`);
3416
- let x2 = ho(b2), S2 = (0, import_react.useRef)(true);
3417
+ let x2 = go(b2), S2 = (0, import_react.useRef)(true);
3417
3418
  (0, import_react.useEffect)(() => {
3418
3419
  let { bindI18n: e7, bindI18nStore: n3 } = o2;
3419
- S2.current = true, !m2 && !s2 && (t2.lng ? no(a2, t2.lng, p2, () => {
3420
+ S2.current = true, !m2 && !s2 && (t2.lng ? ro(a2, t2.lng, p2, () => {
3420
3421
  S2.current && y2(_2);
3421
- }) : to(a2, p2, () => {
3422
+ }) : no(a2, p2, () => {
3422
3423
  S2.current && y2(_2);
3423
3424
  })), m2 && x2 && x2 !== b2 && S2.current && y2(_2);
3424
3425
  let r3 = () => {
@@ -3433,134 +3434,134 @@ var vo = (e6, t2 = {}) => {
3433
3434
  let C2 = [v2, a2, m2];
3434
3435
  if (C2.t = v2, C2.i18n = a2, C2.ready = m2, m2 || !m2 && !s2) return C2;
3435
3436
  throw new Promise((e7) => {
3436
- t2.lng ? no(a2, t2.lng, p2, () => e7()) : to(a2, p2, () => e7());
3437
+ t2.lng ? ro(a2, t2.lng, p2, () => e7()) : no(a2, p2, () => e7());
3437
3438
  });
3438
3439
  };
3439
- function yo({ i18n: e6, defaultNS: t2, children: n2 }) {
3440
+ function bo({ i18n: e6, defaultNS: t2, children: n2 }) {
3440
3441
  let r2 = (0, import_react.useMemo)(() => ({ i18n: e6, defaultNS: t2 }), [e6, t2]);
3441
- return (0, import_react.createElement)(po.Provider, { value: r2 }, n2);
3442
+ return (0, import_react.createElement)(mo.Provider, { value: r2 }, n2);
3442
3443
  }
3443
- var bo = I(`@wix/site-service-locale`);
3444
- var xo = I(`@wix/site-service-renderer-configuration`);
3445
- var So = () => {
3444
+ var xo = I(`@wix/site-service-locale`);
3445
+ var So = I(`@wix/site-service-renderer-configuration`);
3446
+ var Co = () => {
3446
3447
  let e6, t2;
3447
3448
  try {
3448
- e6 = (0, import_services_manager_react.useService)(xo).languageCode;
3449
+ e6 = (0, import_services_manager_react.useService)(So).languageCode;
3449
3450
  } catch {
3450
3451
  }
3451
3452
  try {
3452
- t2 = (0, import_services_manager_react.useService)(bo).language;
3453
+ t2 = (0, import_services_manager_react.useService)(xo).language;
3453
3454
  } catch {
3454
3455
  }
3455
3456
  return e6 || t2;
3456
3457
  };
3457
- var Co = `wix-warmup-data`;
3458
- var wo = null;
3459
- function To(e6) {
3458
+ var wo = `wix-warmup-data`;
3459
+ var To = null;
3460
+ function Eo(e6) {
3460
3461
  if (typeof document < `u`) try {
3461
- let t2 = document.getElementById(Co)?.textContent;
3462
- return t2 ? (wo?.text !== t2 && (wo = { text: t2, data: JSON.parse(t2).builderComponentsWarmupData ?? {} }), wo.data[e6] ?? void 0) : void 0;
3462
+ let t2 = document.getElementById(wo)?.textContent;
3463
+ return t2 ? (To?.text !== t2 && (To = { text: t2, data: JSON.parse(t2).builderComponentsWarmupData ?? {} }), To.data[e6] ?? void 0) : void 0;
3463
3464
  } catch {
3464
3465
  return;
3465
3466
  }
3466
3467
  }
3467
- var Eo = 5e3;
3468
- var Do = 100;
3469
- var Oo = {};
3470
- var ko = /* @__PURE__ */ new WeakMap();
3471
- var Ao = (e6) => {
3472
- let t2 = e6.scope ?? Oo, n2 = ko.get(t2);
3473
- return n2 || (n2 = /* @__PURE__ */ new Map(), ko.set(t2, n2)), n2;
3468
+ var Do = 5e3;
3469
+ var Oo = 100;
3470
+ var ko = {};
3471
+ var Ao = /* @__PURE__ */ new WeakMap();
3472
+ var jo = (e6) => {
3473
+ let t2 = e6.scope ?? ko, n2 = Ao.get(t2);
3474
+ return n2 || (n2 = /* @__PURE__ */ new Map(), Ao.set(t2, n2)), n2;
3474
3475
  };
3475
- function jo({ key: e6, warmupData: t2, fetchData: n2 }) {
3476
+ function Mo({ key: e6, warmupData: t2, fetchData: n2 }) {
3476
3477
  if (e6 === null) return n2();
3477
3478
  if (t2.isServer) return n2().then((n3) => (t2.set(e6, n3), n3));
3478
- let r2 = Ao(t2), i2 = Date.now();
3479
+ let r2 = jo(t2), i2 = Date.now();
3479
3480
  for (let [e7, t3] of r2) t3.expiresAt <= i2 && r2.delete(e7);
3480
3481
  let a2 = r2.get(e6);
3481
3482
  if (a2) return a2.promise;
3482
- let o2 = To(e6);
3483
+ let o2 = Eo(e6);
3483
3484
  if (o2 !== void 0) {
3484
- let t3 = zn(o2);
3485
- return r2.set(e6, { promise: t3, expiresAt: i2 + Eo }), t3;
3485
+ let t3 = Bn(o2);
3486
+ return r2.set(e6, { promise: t3, expiresAt: i2 + Do }), t3;
3486
3487
  }
3487
3488
  let s2 = (async () => await t2.get(e6) ?? n2())();
3488
- r2.size >= Do && r2.delete(r2.keys().next().value);
3489
+ r2.size >= Oo && r2.delete(r2.keys().next().value);
3489
3490
  let c2 = { promise: s2, expiresAt: 1 / 0 };
3490
3491
  return r2.set(e6, c2), s2.then(() => {
3491
- c2.expiresAt = Date.now() + Eo;
3492
+ c2.expiresAt = Date.now() + Do;
3492
3493
  }, () => {
3493
3494
  r2.get(e6) === c2 && r2.delete(e6);
3494
3495
  }), s2;
3495
3496
  }
3496
- var Mo = `blog-builder:i18n`;
3497
- var No = `translation`;
3498
- var Po = () => To(Mo);
3499
- var Fo = /* @__PURE__ */ new Map();
3500
- function Io(e6, t2) {
3501
- let n2 = Fo.get(e6);
3497
+ var No = `blog-builder:i18n`;
3498
+ var Po = `translation`;
3499
+ var Fo = () => Eo(No);
3500
+ var Io = /* @__PURE__ */ new Map();
3501
+ function Lo(e6, t2) {
3502
+ let n2 = Io.get(e6);
3502
3503
  if (n2) return n2;
3503
- let r2 = Po(), i2 = r2?.locale === e6 ? r2.messages : void 0, a2 = Xa({ locale: e6, useSuspense: true, ...i2 ? { messages: i2 } : { asyncMessagesLoader: t2 } });
3504
- return Fo.set(e6, a2), a2;
3504
+ let r2 = Fo(), i2 = r2?.locale === e6 ? r2.messages : void 0, a2 = Za({ locale: e6, useSuspense: true, ...i2 ? { messages: i2 } : { asyncMessagesLoader: t2 } });
3505
+ return Io.set(e6, a2), a2;
3505
3506
  }
3506
- function Lo(e6) {
3507
- let t2 = () => e6.loadNamespaces(No).then(() => void 0, () => void 0);
3507
+ function Ro(e6) {
3508
+ let t2 = () => e6.loadNamespaces(Po).then(() => void 0, () => void 0);
3508
3509
  return e6.isInitialized ? t2() : new Promise((n2) => {
3509
3510
  e6.on(`initialized`, () => void t2().then(n2));
3510
3511
  });
3511
3512
  }
3512
- function Ro(e6, t2) {
3513
+ function zo(e6, t2) {
3513
3514
  return e6.getResourceBundle(t2, `translation`) ?? e6.getResourceBundle(`en`, `translation`);
3514
3515
  }
3515
- var zo = (e6, t2, n2) => {
3516
+ var Bo = (e6, t2, n2) => {
3516
3517
  let r2 = t2.lastIndexOf(`?`), i2 = e6[r2 === -1 || r2 < t2.lastIndexOf(`/`) ? t2 : t2.slice(0, r2)];
3517
3518
  return i2 ? typeof i2 == `function` ? i2() : Promise.resolve(i2) : new Promise((e7, r3) => {
3518
3519
  (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.`))));
3519
3520
  });
3520
3521
  };
3521
- var Bo = (e6) => e6.split(`-`)[0] ?? e6;
3522
- vr({ isDev: false, loadMessages: (e6) => zo(Object.assign({ "../assets/locale/messages_en.dev.json": () => _n(() => Promise.resolve().then(() => Go), void 0, import_meta.url), "../assets/locale/messages_en.json": () => _n(() => Promise.resolve().then(() => qo), void 0, import_meta.url) }), `../assets/locale/messages_${Bo(e6)}.json`, 4), loadDevMessages: (e6) => zo(Object.assign({ "../assets/locale/messages_en.dev.json": () => _n(() => Promise.resolve().then(() => Go), void 0, import_meta.url) }), `../assets/locale/messages_${Bo(e6)}.dev.json`, 4) });
3523
- var Vo = /* @__PURE__ */ new WeakMap();
3524
- function Ho(e6) {
3525
- let t2 = Vo.get(e6);
3526
- return t2 || (t2 = Lo(e6).finally(() => Vo.delete(e6)), Vo.set(e6, t2)), t2;
3522
+ var Vo = (e6) => e6.split(`-`)[0] ?? e6;
3523
+ yr({ isDev: false, loadMessages: (e6) => Bo(Object.assign({ "../assets/locale/messages_en.dev.json": () => vn(() => Promise.resolve().then(() => Ko), void 0, import_meta.url), "../assets/locale/messages_en.json": () => vn(() => Promise.resolve().then(() => Jo), void 0, import_meta.url) }), `../assets/locale/messages_${Vo(e6)}.json`, 4), loadDevMessages: (e6) => Bo(Object.assign({ "../assets/locale/messages_en.dev.json": () => vn(() => Promise.resolve().then(() => Ko), void 0, import_meta.url) }), `../assets/locale/messages_${Vo(e6)}.dev.json`, 4) });
3524
+ var Ho = /* @__PURE__ */ new WeakMap();
3525
+ function Uo(e6) {
3526
+ let t2 = Ho.get(e6);
3527
+ return t2 || (t2 = Ro(e6).finally(() => Ho.delete(e6)), Ho.set(e6, t2)), t2;
3527
3528
  }
3528
- function Uo({ i18n: e6, locale: t2 }) {
3529
- let n2 = Wn(), r2 = hr();
3529
+ function Wo({ i18n: e6, locale: t2 }) {
3530
+ let n2 = Gn(), r2 = gr();
3530
3531
  if (!n2) return null;
3531
- if (!e6.isInitialized || !e6.hasLoadedNamespace(`translation`)) throw Ho(e6);
3532
- let i2 = Ro(e6, t2);
3533
- return i2 && r2.set(Mo, { locale: t2, messages: i2 }), null;
3534
- }
3535
- function Wo(e6) {
3536
- let t2 = So(), n2 = Po()?.locale ?? t2 ?? `en`;
3537
- return { i18n: Io(n2, e6), locale: n2 };
3538
- }
3539
- var Go = v({ default: () => Ko });
3540
- var Ko = { "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` };
3541
- var qo = v({ default: () => Yo, title: () => Jo });
3542
- var Jo = `My App`;
3543
- var Yo = { "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: Jo, "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.` };
3544
- var Xo = Object.assign({ "../assets/locale/messages_en.dev.json": Go, "../assets/locale/messages_en.json": qo });
3545
- var Zo = (e6, t2) => {
3546
- let n2 = Xo[`../assets/locale/messages_${Bo(e6)}${t2}.json`];
3532
+ if (!e6.isInitialized || !e6.hasLoadedNamespace(`translation`)) throw Uo(e6);
3533
+ let i2 = zo(e6, t2);
3534
+ return i2 && r2.set(No, { locale: t2, messages: i2 }), null;
3535
+ }
3536
+ function Go(e6) {
3537
+ let t2 = Co(), n2 = Fo()?.locale ?? t2 ?? `en`;
3538
+ return { i18n: Lo(n2, e6), locale: n2 };
3539
+ }
3540
+ var Ko = y({ default: () => qo });
3541
+ var qo = { "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` };
3542
+ var Jo = y({ default: () => Xo, title: () => Yo });
3543
+ var Yo = `My App`;
3544
+ var Xo = { "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: Yo, "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.` };
3545
+ var Zo = Object.assign({ "../assets/locale/messages_en.dev.json": Ko, "../assets/locale/messages_en.json": Jo });
3546
+ var Qo = (e6, t2) => {
3547
+ let n2 = Zo[`../assets/locale/messages_${Vo(e6)}${t2}.json`];
3547
3548
  return n2 ? Promise.resolve(n2) : Promise.reject(Error(`no messages file`));
3548
3549
  };
3549
- var Qo = vr({ isDev: false, loadMessages: (e6) => Zo(e6, ``), loadDevMessages: (e6) => Zo(e6, `.dev`) });
3550
- var $o = [{ path: `richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `richContent.nodes.galleryData.items.image.media.duration` }, { path: `richContent.nodes.galleryData.items.video.media.duration` }, { path: `richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `richContent.nodes.galleryData.options.item.ratio` }, { path: `richContent.nodes.imageData.image.duration` }, { path: `richContent.nodes.imageData.crop.x` }, { path: `richContent.nodes.imageData.crop.y` }, { path: `richContent.nodes.imageData.crop.width` }, { path: `richContent.nodes.imageData.crop.height` }, { path: `richContent.nodes.mapData.mapSettings.lat` }, { path: `richContent.nodes.mapData.mapSettings.lng` }, { path: `richContent.nodes.pollData.poll.image.duration` }, { path: `richContent.nodes.pollData.poll.options.image.duration` }, { path: `richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.nodes.appEmbedData.image.duration` }, { path: `richContent.nodes.videoData.video.duration` }, { path: `richContent.nodes.videoData.thumbnail.duration` }, { path: `richContent.nodes.audioData.audio.duration` }, { path: `richContent.nodes.audioData.coverImage.duration` }, { path: `richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `richContent.nodes.layoutData.background.gradient.centerX` }, { path: `richContent.nodes.layoutData.background.gradient.centerY` }, { path: `richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `richContent.nodes.shapeData.shape.duration` }, { path: `richContent.nodes.cardData.background.gradient.centerX` }, { path: `richContent.nodes.cardData.background.gradient.centerY` }, { path: `richContent.nodes.cardData.background.gradient.stops.position` }, { path: `richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `richContent.nodes.tocData.fontSize` }, { path: `richContent.nodes.tocData.itemSpacing` }, { path: `richContent.nodes.smartBlockCellData.shape.duration` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
3551
- var es = [{ path: `richContent.metadata.createdTimestamp` }, { path: `richContent.metadata.updatedTimestamp` }];
3552
- function ts(e6) {
3550
+ var $o = yr({ isDev: false, loadMessages: (e6) => Qo(e6, ``), loadDevMessages: (e6) => Qo(e6, `.dev`) });
3551
+ var es = [{ path: `richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `richContent.nodes.galleryData.items.image.media.duration` }, { path: `richContent.nodes.galleryData.items.video.media.duration` }, { path: `richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `richContent.nodes.galleryData.options.item.ratio` }, { path: `richContent.nodes.imageData.image.duration` }, { path: `richContent.nodes.imageData.crop.x` }, { path: `richContent.nodes.imageData.crop.y` }, { path: `richContent.nodes.imageData.crop.width` }, { path: `richContent.nodes.imageData.crop.height` }, { path: `richContent.nodes.mapData.mapSettings.lat` }, { path: `richContent.nodes.mapData.mapSettings.lng` }, { path: `richContent.nodes.pollData.poll.image.duration` }, { path: `richContent.nodes.pollData.poll.options.image.duration` }, { path: `richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.nodes.appEmbedData.image.duration` }, { path: `richContent.nodes.videoData.video.duration` }, { path: `richContent.nodes.videoData.thumbnail.duration` }, { path: `richContent.nodes.audioData.audio.duration` }, { path: `richContent.nodes.audioData.coverImage.duration` }, { path: `richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `richContent.nodes.layoutData.background.gradient.centerX` }, { path: `richContent.nodes.layoutData.background.gradient.centerY` }, { path: `richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `richContent.nodes.shapeData.shape.duration` }, { path: `richContent.nodes.cardData.background.gradient.centerX` }, { path: `richContent.nodes.cardData.background.gradient.centerY` }, { path: `richContent.nodes.cardData.background.gradient.stops.position` }, { path: `richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `richContent.nodes.tocData.fontSize` }, { path: `richContent.nodes.tocData.itemSpacing` }, { path: `richContent.nodes.smartBlockCellData.shape.duration` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
3552
+ var ts = [{ path: `richContent.metadata.createdTimestamp` }, { path: `richContent.metadata.updatedTimestamp` }];
3553
+ function ns(e6) {
3553
3554
  return P(Object.assign(e6, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/blog-paywall-service`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/blog-paywall-service`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/blog-paywall-service`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/blog-paywall-service`, destPath: `` }], _: [{ srcPath: `/_api/blog-paywall-service`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/blog-paywall-service/v1/post-paywalls`, destPath: `/v1/post-paywalls` }] } }));
3554
3555
  }
3555
- var ns = `@wix/auto_sdk_blog_post-paywalls`;
3556
- function rs(e6) {
3556
+ var rs = `@wix/auto_sdk_blog_post-paywalls`;
3557
+ function is(e6) {
3557
3558
  function t2({ host: t3 }) {
3558
- return { entityFqdn: `wix.blog.blog_paywall_service.v1.post_paywall`, method: `GET`, methodFqn: `wix.blog.blog_paywall_service.v1.PostPaywallService.GetPostPaywall`, packageName: ns, migrationOptions: { optInTransformResponse: true }, url: ts({ protoPath: `/v1/post-paywalls/{postFqdn}/{postId}`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: F, paths: $o }, { transformFn: k, paths: es }]) };
3559
+ return { entityFqdn: `wix.blog.blog_paywall_service.v1.post_paywall`, method: `GET`, methodFqn: `wix.blog.blog_paywall_service.v1.PostPaywallService.GetPostPaywall`, packageName: rs, migrationOptions: { optInTransformResponse: true }, url: ns({ protoPath: `/v1/post-paywalls/{postFqdn}/{postId}`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: F, paths: es }, { transformFn: k, paths: ts }]) };
3559
3560
  }
3560
3561
  return t2;
3561
3562
  }
3562
- async function is(e6, t2) {
3563
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = rs(D({ postFqdn: e6?.postFqdn, postId: e6?.postId, language: t2?.language }, []));
3563
+ async function as(e6, t2) {
3564
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = is(D({ postFqdn: e6?.postFqdn, postId: e6?.postId, language: t2?.language }, []));
3564
3565
  r2?.onSiteCall?.();
3565
3566
  try {
3566
3567
  let e7 = await n2.request(i2);
@@ -3570,29 +3571,29 @@ async function is(e6, t2) {
3570
3571
  throw r2?.onError?.(e7), t3;
3571
3572
  }
3572
3573
  }
3573
- function as(e6) {
3574
- return (t2, n2) => is(t2, n2, { httpClient: e6 });
3574
+ function os(e6) {
3575
+ return (t2, n2) => as(t2, n2, { httpClient: e6 });
3575
3576
  }
3576
- var os = M(as);
3577
- function ss(e6) {
3577
+ var ss = M(os);
3578
+ function cs(e6) {
3578
3579
  return Object.keys(e6).length === 1 && `$and` in e6 && Array.isArray(e6.$and);
3579
3580
  }
3580
- function cs(e6) {
3581
+ function ls(e6) {
3581
3582
  return Object.keys(e6).length === 1 && `$or` in e6 && Array.isArray(e6.$or);
3582
3583
  }
3583
- function ls(e6) {
3584
+ function us(e6) {
3584
3585
  return Object.keys(e6).length === 1 && `$not` in e6 && typeof e6.$not == `object`;
3585
3586
  }
3586
3587
  function Y(e6, t2) {
3587
- return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $and: [...ss(e6) ? e6.$and : [e6], ...ss(t2) ? t2.$and : [t2]] };
3588
+ return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $and: [...cs(e6) ? e6.$and : [e6], ...cs(t2) ? t2.$and : [t2]] };
3588
3589
  }
3589
- function us(e6, t2) {
3590
- return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $or: [...cs(e6) ? e6.$or : [e6], ...cs(t2) ? t2.$or : [t2]] };
3590
+ function ds(e6, t2) {
3591
+ return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $or: [...ls(e6) ? e6.$or : [e6], ...ls(t2) ? t2.$or : [t2]] };
3591
3592
  }
3592
- function ds(e6) {
3593
- if (e6 !== void 0 && Object.keys(e6).length !== 0) return ls(e6) ? e6.$not : { $not: e6 };
3593
+ function fs(e6) {
3594
+ if (e6 !== void 0 && Object.keys(e6).length !== 0) return us(e6) ? e6.$not : { $not: e6 };
3594
3595
  }
3595
- var fs = class {
3596
+ var ps = class {
3596
3597
  _items;
3597
3598
  _fetchNextPage;
3598
3599
  _fetchPrevPage;
@@ -3622,7 +3623,7 @@ var fs = class {
3622
3623
  return await this._fetchPrevPage();
3623
3624
  }
3624
3625
  };
3625
- var ps = class extends fs {
3626
+ var ms = class extends ps {
3626
3627
  _nextCursor;
3627
3628
  _prevCursor;
3628
3629
  cursors;
@@ -3636,7 +3637,7 @@ var ps = class extends fs {
3636
3637
  return !!this._prevCursor;
3637
3638
  }
3638
3639
  };
3639
- var ms = class extends fs {
3640
+ var hs = class extends ps {
3640
3641
  _totalCount;
3641
3642
  _offset;
3642
3643
  _tooManyToCount;
@@ -3659,16 +3660,16 @@ var ms = class extends fs {
3659
3660
  return !!(this._limit !== 0 && this.currentPage && this.currentPage > 0);
3660
3661
  }
3661
3662
  };
3662
- function hs(e6) {
3663
+ function gs(e6) {
3663
3664
  let t2 = (n2) => ({ query: n2, async find() {
3664
3665
  try {
3665
- let r2 = e6.requestTransformer(e6.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e6.func(r2), { [Qe]: a2, [$e]: o2 } = e6.responseTransformer(i2);
3666
+ let r2 = e6.requestTransformer(e6.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e6.func(r2), { [$e]: a2, [et]: o2 } = e6.responseTransformer(i2);
3666
3667
  if (e6.pagingMethod === `OFFSET`) {
3667
3668
  let e7 = n2;
3668
- return new ms({ 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 });
3669
+ return new hs({ 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 });
3669
3670
  }
3670
3671
  let s2 = n2.cursorPaging;
3671
- return new ps({ items: a2 ?? [], limit: s2.limit, originQuery: this, fetchNextPage: () => t2({ ...n2, cursorPaging: { cursor: o2?.cursors?.next ?? void 0, limit: s2.limit } }).find(), fetchPrevPage: () => t2({ ...n2, cursorPaging: { cursor: o2?.cursors?.prev ?? void 0, limit: s2.limit } }).find(), prevCursor: o2?.cursors?.prev ?? void 0, nextCursor: o2?.cursors?.next ?? void 0 });
3672
+ return new ms({ items: a2 ?? [], limit: s2.limit, originQuery: this, fetchNextPage: () => t2({ ...n2, cursorPaging: { cursor: o2?.cursors?.next ?? void 0, limit: s2.limit } }).find(), fetchPrevPage: () => t2({ ...n2, cursorPaging: { cursor: o2?.cursors?.prev ?? void 0, limit: s2.limit } }).find(), prevCursor: o2?.cursors?.prev ?? void 0, nextCursor: o2?.cursors?.next ?? void 0 });
3672
3673
  } catch (t3) {
3673
3674
  throw e6.errorTransformer(t3);
3674
3675
  }
@@ -3720,11 +3721,11 @@ function hs(e6) {
3720
3721
  let a2 = { [X(e6.transformationPaths, r2)]: { $exists: i2 } };
3721
3722
  return t2({ ...n2, filter: Y(n2.filter, a2) });
3722
3723
  }, or(e7) {
3723
- return t2({ ...n2, filter: us(n2.filter, e7.query.filter) });
3724
+ return t2({ ...n2, filter: ds(n2.filter, e7.query.filter) });
3724
3725
  }, and(e7) {
3725
3726
  return t2({ ...n2, filter: Y(n2.filter, e7.query.filter) });
3726
3727
  }, not(e7) {
3727
- return t2({ ...n2, filter: ds(e7.query.filter) });
3728
+ return t2({ ...n2, filter: fs(e7.query.filter) });
3728
3729
  }, ascending(...r2) {
3729
3730
  return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: X(e6.transformationPaths, t3), order: `ASC` }))] });
3730
3731
  }, descending(...r2) {
@@ -3743,69 +3744,69 @@ function hs(e6) {
3743
3744
  }
3744
3745
  function X(e6, t2) {
3745
3746
  let n2 = Object.entries(e6).find(([e7]) => e7 === t2 || t2.startsWith(`${e7}.`))?.[0];
3746
- return n2 ? t2.replace(n2, e6[n2]) : tt(t2, { ...e6, ...et });
3747
- }
3748
- var gs = `filter`;
3749
- var _s = `sort`;
3750
- var vs = `cursorPaging`;
3751
- var ys = `paging`;
3752
- var bs = [gs, _s, vs];
3753
- var xs = [gs, _s, ys];
3754
- function Ss(e6, t2) {
3747
+ return n2 ? t2.replace(n2, e6[n2]) : nt(t2, { ...e6, ...tt });
3748
+ }
3749
+ var _s = `filter`;
3750
+ var vs = `sort`;
3751
+ var ys = `cursorPaging`;
3752
+ var bs = `paging`;
3753
+ var xs = [_s, vs, ys];
3754
+ var Ss = [_s, vs, bs];
3755
+ function Cs(e6, t2) {
3755
3756
  return !e6 || typeof e6 != `object` ? false : t2.some((t3) => e6.hasOwnProperty(t3));
3756
3757
  }
3757
- function Cs(e6) {
3758
- return Ss(e6, bs);
3759
- }
3760
3758
  function ws(e6) {
3761
- return Ss(e6, xs);
3759
+ return Cs(e6, xs);
3762
3760
  }
3763
3761
  function Ts(e6) {
3762
+ return Cs(e6, Ss);
3763
+ }
3764
+ function Es(e6) {
3764
3765
  let { hasOptionsParameter: t2 } = e6;
3765
3766
  return function(...n2) {
3766
- return t2 ? Ds(n2, e6) : Es(n2, e6);
3767
+ return t2 ? Os(n2, e6) : Ds(n2, e6);
3767
3768
  };
3768
3769
  }
3769
- function Es(e6, t2) {
3770
+ function Ds(e6, t2) {
3770
3771
  return e6.length === 0 ? t2.builderQueryFunction() : t2.typedQueryFunction(e6[0]);
3771
3772
  }
3772
- function Ds(e6, t2) {
3773
+ function Os(e6, t2) {
3773
3774
  switch (e6.length) {
3774
3775
  case 0:
3775
3776
  return t2.builderQueryFunction();
3776
3777
  case 1:
3777
- return Cs(e6[0]) || ws(e6[0]) ? t2.typedQueryFunction(e6[0]) : t2.builderQueryFunction(e6[0]);
3778
+ return ws(e6[0]) || Ts(e6[0]) ? t2.typedQueryFunction(e6[0]) : t2.builderQueryFunction(e6[0]);
3778
3779
  default:
3779
3780
  return t2.typedQueryFunction(e6[0], e6[1]);
3780
3781
  }
3781
3782
  }
3782
- var Os = [{ path: `like.createdDate` }];
3783
- var ks = [{ path: `likes.createdDate` }];
3784
- function As(e6) {
3783
+ var ks = [{ path: `like.createdDate` }];
3784
+ var As = [{ path: `likes.createdDate` }];
3785
+ function js(e6) {
3785
3786
  return P(Object.assign(e6, { domainToMappings: { _: [{ srcPath: `/_api/blog-like-service`, destPath: `` }], "api._api_base_domain_": [{ srcPath: `/blog-like-service`, destPath: `` }], "social-blog._base_domain_": [{ srcPath: `/_api/blog-like-service`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/_api/blog-like-service`, destPath: `` }], "apps._base_domain_": [{ srcPath: `/_api/blog-like-service`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/blog/v1/likes`, destPath: `/v1/likes` }], "*.dev.wix-code.com": [{ srcPath: `/blog/v1/likes`, destPath: `/v1/likes` }] } }));
3786
3787
  }
3787
- var js = `@wix/auto_sdk_blog_likes`;
3788
- function Ms(e6) {
3788
+ var Ms = `@wix/auto_sdk_blog_likes`;
3789
+ function Ns(e6) {
3789
3790
  function t2({ host: t3 }) {
3790
- let n2 = A(e6, [{ transformFn: ot, paths: Os }]);
3791
- return { entityFqdn: `wix.blog.v1.like`, method: `POST`, methodFqn: `wix.blog.v1.LikeService.CreateLike`, packageName: js, migrationOptions: { optInTransformResponse: true }, url: As({ protoPath: `/v1/likes`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Os }]) };
3791
+ let n2 = A(e6, [{ transformFn: st, paths: ks }]);
3792
+ return { entityFqdn: `wix.blog.v1.like`, method: `POST`, methodFqn: `wix.blog.v1.LikeService.CreateLike`, packageName: Ms, migrationOptions: { optInTransformResponse: true }, url: js({ protoPath: `/v1/likes`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: ks }]) };
3792
3793
  }
3793
3794
  return t2;
3794
3795
  }
3795
- function Ns(e6) {
3796
+ function Ps(e6) {
3796
3797
  function t2({ host: t3 }) {
3797
- return { entityFqdn: `wix.blog.v1.like`, method: `POST`, methodFqn: `wix.blog.v1.LikeService.QueryLikes`, packageName: js, migrationOptions: { optInTransformResponse: true }, url: As({ protoPath: `/v1/likes/query`, data: e6, host: t3 }), data: e6, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: ks }]) };
3798
+ return { entityFqdn: `wix.blog.v1.like`, method: `POST`, methodFqn: `wix.blog.v1.LikeService.QueryLikes`, packageName: Ms, migrationOptions: { optInTransformResponse: true }, url: js({ protoPath: `/v1/likes/query`, data: e6, host: t3 }), data: e6, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: As }]) };
3798
3799
  }
3799
3800
  return t2;
3800
3801
  }
3801
- function Ps(e6) {
3802
+ function Fs(e6) {
3802
3803
  function t2({ host: t3 }) {
3803
- return { entityFqdn: `wix.blog.v1.like`, method: `DELETE`, methodFqn: `wix.blog.v1.LikeService.DeleteLikeByFqdnAndEntityId`, packageName: js, migrationOptions: { optInTransformResponse: true }, url: As({ protoPath: `/v1/likes/fqdn/{fqdn}/entity-id/{entityId}`, data: e6, host: t3 }), params: N(e6) };
3804
+ return { entityFqdn: `wix.blog.v1.like`, method: `DELETE`, methodFqn: `wix.blog.v1.LikeService.DeleteLikeByFqdnAndEntityId`, packageName: Ms, migrationOptions: { optInTransformResponse: true }, url: js({ protoPath: `/v1/likes/fqdn/{fqdn}/entity-id/{entityId}`, data: e6, host: t3 }), params: N(e6) };
3804
3805
  }
3805
3806
  return t2;
3806
3807
  }
3807
- async function Fs(e6) {
3808
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ms(D({ like: e6?.like }));
3808
+ async function Is(e6) {
3809
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ns(D({ like: e6?.like }));
3809
3810
  n2?.onSiteCall?.();
3810
3811
  try {
3811
3812
  let e7 = await t2.request(r2);
@@ -3815,10 +3816,10 @@ async function Fs(e6) {
3815
3816
  throw n2?.onError?.(e7), t3;
3816
3817
  }
3817
3818
  }
3818
- function Is() {
3819
+ function Ls() {
3819
3820
  let { httpClient: e6, sideEffects: t2 } = arguments[0];
3820
- return hs({ func: async (n2) => {
3821
- let r2 = Ns(n2);
3821
+ return gs({ func: async (n2) => {
3822
+ let r2 = Ps(n2);
3822
3823
  t2?.onSiteCall?.();
3823
3824
  try {
3824
3825
  let n3 = await e6.request(r2);
@@ -3836,8 +3837,8 @@ function Is() {
3836
3837
  throw j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
3837
3838
  }, pagingMethod: `CURSOR`, transformationPaths: {} });
3838
3839
  }
3839
- async function Ls(e6) {
3840
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ns(D({ query: e6 }));
3840
+ async function Rs(e6) {
3841
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ps(D({ query: e6 }));
3841
3842
  n2?.onSiteCall?.();
3842
3843
  try {
3843
3844
  let e7 = await t2.request(r2);
@@ -3847,8 +3848,8 @@ async function Ls(e6) {
3847
3848
  throw n2?.onError?.(e7), t3;
3848
3849
  }
3849
3850
  }
3850
- async function Rs(e6) {
3851
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ps(D({ fqdn: e6?.fqdn, entityId: e6?.entityId }));
3851
+ async function zs(e6) {
3852
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Fs(D({ fqdn: e6?.fqdn, entityId: e6?.entityId }));
3852
3853
  n2?.onSiteCall?.();
3853
3854
  try {
3854
3855
  let e7 = await t2.request(r2);
@@ -3858,66 +3859,66 @@ async function Rs(e6) {
3858
3859
  throw n2?.onError?.(e7), t3;
3859
3860
  }
3860
3861
  }
3861
- function zs(e6) {
3862
- return (t2) => Fs(t2, { httpClient: e6 });
3863
- }
3864
3862
  function Bs(e6) {
3865
- return () => Is({ httpClient: e6 });
3863
+ return (t2) => Is(t2, { httpClient: e6 });
3866
3864
  }
3867
3865
  function Vs(e6) {
3868
- return (t2) => Ls(t2, { httpClient: e6 });
3866
+ return () => Ls({ httpClient: e6 });
3869
3867
  }
3870
3868
  function Hs(e6) {
3871
3869
  return (t2) => Rs(t2, { httpClient: e6 });
3872
3870
  }
3873
3871
  function Us(e6) {
3874
- let t2 = Ts({ builderQueryFunction: () => Bs(e6)(), typedQueryFunction: (t3) => Vs(e6)(t3), hasOptionsParameter: false });
3872
+ return (t2) => zs(t2, { httpClient: e6 });
3873
+ }
3874
+ function Ws(e6) {
3875
+ let t2 = Es({ builderQueryFunction: () => Vs(e6)(), typedQueryFunction: (t3) => Hs(e6)(t3), hasOptionsParameter: false });
3875
3876
  function n2(e7) {
3876
3877
  return t2(...arguments);
3877
3878
  }
3878
3879
  return n2;
3879
3880
  }
3880
- var Ws = M(zs);
3881
- var Gs = M(Hs);
3881
+ var Gs = M(Bs);
3882
3882
  var Ks = M(Us);
3883
- function qs(e6) {
3883
+ var qs = M(Ws);
3884
+ function Js(e6) {
3884
3885
  if (!e6) return;
3885
3886
  let t2 = ``;
3886
3887
  return (e6.filename || e6.altText) && (t2 = `/${encodeURIComponent(e6.filename || e6.altText)}`), e6.id ? `wix:image://v1/${e6.id}${t2}#originWidth=${e6.width}&originHeight=${e6.height}` : e6.url;
3887
3888
  }
3888
- function Js(e6) {
3889
+ function Ys(e6) {
3889
3890
  if (e6) return [`http://`, `https://`].some((t2) => e6.base?.startsWith(t2)) ? `${e6.base}${e6.path}` : `http://${e6.base}${e6.path}`;
3890
3891
  }
3891
- var Ys = [{ path: `categories.updatedDate` }, { path: `categories.coverImage.urlExpirationDate` }];
3892
- var Xs = [{ path: `categories.coverImage.focalPoint.x` }, { path: `categories.coverImage.focalPoint.y` }];
3893
- function Zs(e6) {
3892
+ var Xs = [{ path: `categories.updatedDate` }, { path: `categories.coverImage.urlExpirationDate` }];
3893
+ var Zs = [{ path: `categories.coverImage.focalPoint.x` }, { path: `categories.coverImage.focalPoint.y` }];
3894
+ function Qs(e6) {
3894
3895
  return P(Object.assign(e6, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/category`, destPath: `/v3/bulk/category` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/categories`, destPath: `/v3/bulk/categories` }], "*.pub.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "bo._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "wixbo.ai": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "wix-bo.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "social-blog._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], _: [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "www.wixapis.com": [{ srcPath: `/blog/v3/categories`, destPath: `/v3/categories` }, { srcPath: `/v3/categories`, destPath: `/v3/categories` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "api._api_base_domain_": [{ srcPath: `/category-service-api-proxy`, destPath: `` }] } }));
3895
3896
  }
3896
- var Qs = `@wix/auto_sdk_blog_categories`;
3897
- function $s(e6) {
3897
+ var $s = `@wix/auto_sdk_blog_categories`;
3898
+ function ec(e6) {
3898
3899
  function t2({ host: t3 }) {
3899
- return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories`, packageName: Qs, migrationOptions: { optInTransformResponse: true }, url: Zs({ protoPath: `/v3/categories`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Ys }, { transformFn: F, paths: Xs }]) };
3900
+ return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories`, packageName: $s, migrationOptions: { optInTransformResponse: true }, url: Qs({ protoPath: `/v3/categories`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Xs }, { transformFn: F, paths: Zs }]) };
3900
3901
  }
3901
3902
  return t2;
3902
3903
  }
3903
- var ec = [{ path: `categories.url` }, { path: `categories.translations.url` }];
3904
- var tc = [{ path: `categories.coverImage` }];
3905
- async function nc(e6) {
3906
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = $s(D({ paging: e6?.paging, fieldsets: e6?.fieldsets, language: e6?.language }));
3904
+ var tc = [{ path: `categories.url` }, { path: `categories.translations.url` }];
3905
+ var nc = [{ path: `categories.coverImage` }];
3906
+ async function rc(e6) {
3907
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = ec(D({ paging: e6?.paging, fieldsets: e6?.fieldsets, language: e6?.language }));
3907
3908
  n2?.onSiteCall?.();
3908
3909
  try {
3909
3910
  let e7 = await t2.request(r2);
3910
- return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Js, paths: ec }, { transformFn: qs, paths: tc }]));
3911
+ return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Ys, paths: tc }, { transformFn: Js, paths: nc }]));
3911
3912
  } catch (e7) {
3912
3913
  let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { paging: `$[0].paging`, fieldsets: `$[0].fieldsets`, language: `$[0].language` }, singleArgumentUnchanged: false }, [`options`]);
3913
3914
  throw n2?.onError?.(e7), t3;
3914
3915
  }
3915
3916
  }
3916
- function rc(e6) {
3917
- return (t2) => nc(t2, { httpClient: e6 });
3917
+ function ic(e6) {
3918
+ return (t2) => rc(t2, { httpClient: e6 });
3918
3919
  }
3919
- var ic = M(rc);
3920
- function ac(e6) {
3920
+ var ac = M(ic);
3921
+ function oc(e6) {
3921
3922
  if (!e6) return;
3922
3923
  let t2 = ``;
3923
3924
  e6?.filename && (t2 = `/${encodeURIComponent(e6.filename)}`);
@@ -3932,43 +3933,43 @@ function ac(e6) {
3932
3933
  }
3933
3934
  return e6.id ? `wix:video://v1/${e6.id}${t2}${n2}` : e6.url;
3934
3935
  }
3935
- var oc = [{ path: `post.firstPublishedDate` }, { path: `post.lastPublishedDate` }, { path: `post.expirationDate` }, { path: `post.heroImage.urlExpirationDate` }, { path: `post.richContent.metadata.createdTimestamp` }, { path: `post.richContent.metadata.updatedTimestamp` }, { path: `post.moderationDetails.submittedDate` }, { path: `post.moderationDetails.moderationDate` }, { path: `post.media.wixMedia.image.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.posters.urlExpirationDate` }];
3936
- var sc = [{ path: `post.richContentCompressed` }];
3937
- var cc = [{ path: `post.heroImage.focalPoint.x` }, { path: `post.heroImage.focalPoint.y` }, { path: `post.media.wixMedia.image.focalPoint.x` }, { path: `post.media.wixMedia.image.focalPoint.y` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `post.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `post.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `post.metrics.averageRating` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `post.richContent.nodes.galleryData.items.image.media.duration` }, { path: `post.richContent.nodes.galleryData.items.video.media.duration` }, { path: `post.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `post.richContent.nodes.galleryData.options.item.ratio` }, { path: `post.richContent.nodes.imageData.image.duration` }, { path: `post.richContent.nodes.imageData.crop.x` }, { path: `post.richContent.nodes.imageData.crop.y` }, { path: `post.richContent.nodes.imageData.crop.width` }, { path: `post.richContent.nodes.imageData.crop.height` }, { path: `post.richContent.nodes.mapData.mapSettings.lat` }, { path: `post.richContent.nodes.mapData.mapSettings.lng` }, { path: `post.richContent.nodes.pollData.poll.image.duration` }, { path: `post.richContent.nodes.pollData.poll.options.image.duration` }, { path: `post.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.nodes.appEmbedData.image.duration` }, { path: `post.richContent.nodes.videoData.video.duration` }, { path: `post.richContent.nodes.videoData.thumbnail.duration` }, { path: `post.richContent.nodes.audioData.audio.duration` }, { path: `post.richContent.nodes.audioData.coverImage.duration` }, { path: `post.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `post.richContent.nodes.shapeData.shape.duration` }, { path: `post.richContent.nodes.cardData.background.gradient.centerX` }, { path: `post.richContent.nodes.cardData.background.gradient.centerY` }, { path: `post.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `post.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.tocData.fontSize` }, { path: `post.richContent.nodes.tocData.itemSpacing` }, { path: `post.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
3938
- var lc = [{ path: `metrics.averageRating` }];
3939
- function uc(e6) {
3936
+ var sc = [{ path: `post.firstPublishedDate` }, { path: `post.lastPublishedDate` }, { path: `post.expirationDate` }, { path: `post.heroImage.urlExpirationDate` }, { path: `post.richContent.metadata.createdTimestamp` }, { path: `post.richContent.metadata.updatedTimestamp` }, { path: `post.moderationDetails.submittedDate` }, { path: `post.moderationDetails.moderationDate` }, { path: `post.media.wixMedia.image.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.posters.urlExpirationDate` }];
3937
+ var cc = [{ path: `post.richContentCompressed` }];
3938
+ var lc = [{ path: `post.heroImage.focalPoint.x` }, { path: `post.heroImage.focalPoint.y` }, { path: `post.media.wixMedia.image.focalPoint.x` }, { path: `post.media.wixMedia.image.focalPoint.y` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `post.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `post.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `post.metrics.averageRating` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `post.richContent.nodes.galleryData.items.image.media.duration` }, { path: `post.richContent.nodes.galleryData.items.video.media.duration` }, { path: `post.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `post.richContent.nodes.galleryData.options.item.ratio` }, { path: `post.richContent.nodes.imageData.image.duration` }, { path: `post.richContent.nodes.imageData.crop.x` }, { path: `post.richContent.nodes.imageData.crop.y` }, { path: `post.richContent.nodes.imageData.crop.width` }, { path: `post.richContent.nodes.imageData.crop.height` }, { path: `post.richContent.nodes.mapData.mapSettings.lat` }, { path: `post.richContent.nodes.mapData.mapSettings.lng` }, { path: `post.richContent.nodes.pollData.poll.image.duration` }, { path: `post.richContent.nodes.pollData.poll.options.image.duration` }, { path: `post.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.nodes.appEmbedData.image.duration` }, { path: `post.richContent.nodes.videoData.video.duration` }, { path: `post.richContent.nodes.videoData.thumbnail.duration` }, { path: `post.richContent.nodes.audioData.audio.duration` }, { path: `post.richContent.nodes.audioData.coverImage.duration` }, { path: `post.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `post.richContent.nodes.shapeData.shape.duration` }, { path: `post.richContent.nodes.cardData.background.gradient.centerX` }, { path: `post.richContent.nodes.cardData.background.gradient.centerY` }, { path: `post.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `post.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.tocData.fontSize` }, { path: `post.richContent.nodes.tocData.itemSpacing` }, { path: `post.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
3939
+ var uc = [{ path: `metrics.averageRating` }];
3940
+ function dc(e6) {
3940
3941
  return P(Object.assign(e6, { domainToMappings: { _: [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www.wixapis.com": [{ srcPath: `/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/blog/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/v3/posts`, destPath: `/v3/posts` }], "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/post-service-api-proxy/v3/bulk/posts`, destPath: `/v3/bulk/posts` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "dev._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }] } }));
3941
3942
  }
3942
- var dc = `@wix/auto_sdk_blog_posts`;
3943
- function fc(e6) {
3943
+ var fc = `@wix/auto_sdk_blog_posts`;
3944
+ function pc(e6) {
3944
3945
  function t2({ host: t3 }) {
3945
- return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost`, packageName: dc, migrationOptions: { optInTransformResponse: true }, url: uc({ protoPath: `/v3/posts/{postId}`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: oc }, { transformFn: dn, paths: sc }, { transformFn: F, paths: cc }]) };
3946
+ return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost`, packageName: fc, migrationOptions: { optInTransformResponse: true }, url: dc({ protoPath: `/v3/posts/{postId}`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: sc }, { transformFn: fn, paths: cc }, { transformFn: F, paths: lc }]) };
3946
3947
  }
3947
3948
  return t2;
3948
3949
  }
3949
- function pc(e6) {
3950
+ function mc(e6) {
3950
3951
  function t2({ host: t3 }) {
3951
- return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics`, packageName: dc, migrationOptions: { optInTransformResponse: true }, url: uc({ protoPath: `/v3/posts/{postId}/metrics`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: F, paths: lc }]) };
3952
+ return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics`, packageName: fc, migrationOptions: { optInTransformResponse: true }, url: dc({ protoPath: `/v3/posts/{postId}/metrics`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: F, paths: uc }]) };
3952
3953
  }
3953
3954
  return t2;
3954
3955
  }
3955
- var mc = [{ path: `post.url` }, { path: `post.translations.url` }];
3956
- var hc = [{ path: `post.heroImage` }, { path: `post.media.wixMedia.image` }];
3957
- var gc = [{ path: `post.media.wixMedia.videoV2` }];
3956
+ var hc = [{ path: `post.url` }, { path: `post.translations.url` }];
3957
+ var gc = [{ path: `post.heroImage` }, { path: `post.media.wixMedia.image` }];
3958
+ var _c = [{ path: `post.media.wixMedia.videoV2` }];
3958
3959
  var Z = ((e6) => (e6.UNKNOWN = `UNKNOWN`, e6.COUNTERS = `COUNTERS`, e6.URL = `URL`, e6.CONTENT_TEXT = `CONTENT_TEXT`, e6.METRICS = `METRICS`, e6.SEO = `SEO`, e6.CONTENT = `CONTENT`, e6.INTERNAL_ID = `INTERNAL_ID`, e6.CONTACT_ID = `CONTACT_ID`, e6.RICH_CONTENT = `RICH_CONTENT`, e6.RICH_CONTENT_STRING = `RICH_CONTENT_STRING`, e6.RICH_CONTENT_COMPRESSED = `RICH_CONTENT_COMPRESSED`, e6.TRANSLATIONS = `TRANSLATIONS`, e6.REFERENCE_ID = `REFERENCE_ID`, e6.EXCLUDE_PAID_CONTENT = `EXCLUDE_PAID_CONTENT`, e6.SEO_DATA = `SEO_DATA`, e6.OWNER = `OWNER`, e6.HAS_UNPUBLISHED_CHANGES = `HAS_UNPUBLISHED_CHANGES`, e6.HEADING = `HEADING`, e6.IMAGE = `IMAGE`, e6))(Z || {});
3959
- async function _c(e6, t2) {
3960
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = fc(D({ postId: e6, fieldsets: t2?.fieldsets }, []));
3960
+ async function vc(e6, t2) {
3961
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = pc(D({ postId: e6, fieldsets: t2?.fieldsets }, []));
3961
3962
  r2?.onSiteCall?.();
3962
3963
  try {
3963
3964
  let e7 = await n2.request(i2);
3964
- return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Js, paths: mc }, { transformFn: qs, paths: hc }, { transformFn: ac, paths: gc }]), [`post.richContent`, `post.rich_content`]);
3965
+ return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Ys, paths: hc }, { transformFn: Js, paths: gc }, { transformFn: oc, paths: _c }]), [`post.richContent`, `post.rich_content`]);
3965
3966
  } catch (e7) {
3966
3967
  let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { postId: `$[0]`, fieldsets: `$[1].fieldsets` }, singleArgumentUnchanged: false }, [`postId`, `options`]);
3967
3968
  throw r2?.onError?.(e7), t3;
3968
3969
  }
3969
3970
  }
3970
- async function vc(e6) {
3971
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = pc(D({ postId: e6 }, []));
3971
+ async function yc(e6) {
3972
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = mc(D({ postId: e6 }, []));
3972
3973
  n2?.onSiteCall?.();
3973
3974
  try {
3974
3975
  let e7 = await t2.request(r2);
@@ -3978,32 +3979,32 @@ async function vc(e6) {
3978
3979
  throw n2?.onError?.(e7), t3;
3979
3980
  }
3980
3981
  }
3981
- function yc(e6) {
3982
- return (t2, n2) => _c(t2, n2, { httpClient: e6 });
3983
- }
3984
3982
  function bc(e6) {
3985
- return (t2) => vc(t2, { httpClient: e6 });
3983
+ return (t2, n2) => vc(t2, n2, { httpClient: e6 });
3984
+ }
3985
+ function xc(e6) {
3986
+ return (t2) => yc(t2, { httpClient: e6 });
3986
3987
  }
3987
- var xc = M(yc);
3988
3988
  var Sc = M(bc);
3989
- var Cc = [{ path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
3990
- var wc = [{ path: `tags.createdDate` }, { path: `tags.updatedDate` }];
3991
- function Tc(e6) {
3989
+ var Cc = M(xc);
3990
+ var wc = [{ path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
3991
+ var Tc = [{ path: `tags.createdDate` }, { path: `tags.updatedDate` }];
3992
+ function Ec(e6) {
3992
3993
  return P(Object.assign(e6, { domainToMappings: { _: [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "www.wixapis.com": [{ srcPath: `/v3/tags`, destPath: `/v3/tags` }, { srcPath: `/blog/v3/tags`, destPath: `/v3/tags` }], "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v2/tags`, destPath: `/v2/tags` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/tag`, destPath: `/v3/bulk/tag` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/tags`, destPath: `/v3/bulk/tags` }, { srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "bo._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "wixbo.ai": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "wix-bo.com": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "social-blog._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }] } }));
3993
3994
  }
3994
- var Ec = `@wix/auto_sdk_blog_tags`;
3995
- function Dc(e6) {
3995
+ var Dc = `@wix/auto_sdk_blog_tags`;
3996
+ function Oc(e6) {
3996
3997
  function t2({ host: t3 }) {
3997
- let n2 = A(e6, [{ transformFn: un, paths: Cc }]);
3998
- return { entityFqdn: `wix.blog.v3.tag`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.TagService.QueryTags`, packageName: Ec, migrationOptions: { optInTransformResponse: true }, url: Tc({ protoPath: `/v3/tags/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: wc }]) };
3998
+ let n2 = A(e6, [{ transformFn: dn, paths: wc }]);
3999
+ return { entityFqdn: `wix.blog.v3.tag`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.TagService.QueryTags`, packageName: Dc, migrationOptions: { optInTransformResponse: true }, url: Ec({ protoPath: `/v3/tags/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Tc }]) };
3999
4000
  }
4000
4001
  return t2;
4001
4002
  }
4002
- var Oc = [{ path: `tags.url` }];
4003
- function kc(e6) {
4003
+ var kc = [{ path: `tags.url` }];
4004
+ function Ac(e6) {
4004
4005
  let { httpClient: t2, sideEffects: n2 } = arguments[1];
4005
- return hs({ func: async (r2) => {
4006
- let i2 = Dc({ ...r2, ...e6 ?? {} });
4006
+ return gs({ func: async (r2) => {
4007
+ let i2 = Oc({ ...r2, ...e6 ?? {} });
4007
4008
  n2?.onSiteCall?.();
4008
4009
  try {
4009
4010
  let e7 = await t2.request(i2);
@@ -4015,57 +4016,57 @@ function kc(e6) {
4015
4016
  let n3 = [t3, e6];
4016
4017
  return D({ ...n3?.[1], query: n3?.[0] });
4017
4018
  }, responseTransformer: ({ data: e7 }) => {
4018
- let t3 = O(A(e7, [{ transformFn: Js, paths: Oc }]));
4019
+ let t3 = O(A(e7, [{ transformFn: Ys, paths: kc }]));
4019
4020
  return { items: t3?.tags, pagingMetadata: t3?.pagingMetadata };
4020
4021
  }, errorTransformer: (e7) => {
4021
4022
  throw j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
4022
4023
  }, pagingMethod: `OFFSET`, transformationPaths: {} });
4023
4024
  }
4024
- async function Ac(e6, t2) {
4025
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Dc(D({ query: e6, ...t2 }));
4025
+ async function jc(e6, t2) {
4026
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Oc(D({ query: e6, ...t2 }));
4026
4027
  r2?.onSiteCall?.();
4027
4028
  try {
4028
4029
  let e7 = await n2.request(i2);
4029
- return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Js, paths: Oc }]));
4030
+ return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Ys, paths: kc }]));
4030
4031
  } catch (e7) {
4031
4032
  let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
4032
4033
  throw r2?.onError?.(e7), t3;
4033
4034
  }
4034
4035
  }
4035
- function jc(e6) {
4036
- return (t2) => kc(t2, { httpClient: e6 });
4037
- }
4038
4036
  function Mc(e6) {
4039
- return (t2, n2) => Ac(t2, n2, { httpClient: e6 });
4037
+ return (t2) => Ac(t2, { httpClient: e6 });
4040
4038
  }
4041
4039
  function Nc(e6) {
4042
- let t2 = Ts({ builderQueryFunction: (t3) => jc(e6)(t3), typedQueryFunction: (t3, n3) => Mc(e6)(t3, n3), hasOptionsParameter: true });
4040
+ return (t2, n2) => jc(t2, n2, { httpClient: e6 });
4041
+ }
4042
+ function Pc(e6) {
4043
+ let t2 = Es({ builderQueryFunction: (t3) => Mc(e6)(t3), typedQueryFunction: (t3, n3) => Nc(e6)(t3, n3), hasOptionsParameter: true });
4043
4044
  function n2(e7, n3) {
4044
4045
  return t2(...arguments);
4045
4046
  }
4046
4047
  return n2;
4047
4048
  }
4048
- var Pc = M(Nc);
4049
- var Fc = (e6) => O(A(e6, [{ transformFn: Js, paths: [{ path: `posts.url` }, { path: `posts.translations.url` }] }, { transformFn: qs, paths: [{ path: `posts.heroImage` }, { path: `posts.media.wixMedia.image` }] }, { transformFn: ac, paths: [{ path: `posts.media.wixMedia.videoV2` }] }]), [`posts.richContent`, `posts.rich_content`]).posts ?? [];
4050
- var Ic = `https://blog.wixsite.com/blog-demo-posts`;
4049
+ var Fc = M(Pc);
4050
+ var Ic = (e6) => O(A(e6, [{ transformFn: Ys, paths: [{ path: `posts.url` }, { path: `posts.translations.url` }] }, { transformFn: Js, paths: [{ path: `posts.heroImage` }, { path: `posts.media.wixMedia.image` }] }, { transformFn: oc, paths: [{ path: `posts.media.wixMedia.videoV2` }] }]), [`posts.richContent`, `posts.rich_content`]).posts ?? [];
4051
+ var Lc = `https://blog.wixsite.com/blog-demo-posts`;
4051
4052
  M((e6) => async (t2) => {
4052
4053
  let n2 = await e6.fetchWithAuth(`${globalThis.location.origin}/_serverless/blog-demo-posts/v3/demo-posts?${N(t2)}`);
4053
4054
  if (!n2.ok) throw Error(`ListDemoPosts answered ${n2.status}`);
4054
- return Fc(await n2.json()).filter((e7) => !e7.url?.startsWith(Ic));
4055
+ return Ic(await n2.json()).filter((e7) => !e7.url?.startsWith(Lc));
4055
4056
  });
4056
- var Lc = [{ path: `member.createdDate` }, { path: `member.updatedDate` }, { path: `member.lastLoginDate` }];
4057
- function Rc(e6) {
4057
+ var Rc = [{ path: `member.createdDate` }, { path: `member.updatedDate` }, { path: `member.lastLoginDate` }];
4058
+ function zc(e6) {
4058
4059
  return P(Object.assign(e6, { domainToMappings: { "www.wixapis.com": [{ srcPath: `/members/v1/members`, destPath: `/v1/members` }], "api._api_base_domain_": [{ srcPath: `/members-ng-api`, destPath: `` }], "www._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "manage._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "editor._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "blocks._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "create.editorx": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "editor.wixapps.net": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "*.dev.wix-code.com": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "bo._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "wixbo.ai": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "wix-bo.com": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], _: [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "members.wixapps.net": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }] } }));
4059
4060
  }
4060
- var zc = `@wix/auto_sdk_members_members`;
4061
- function Bc(e6) {
4061
+ var Bc = `@wix/auto_sdk_members_members`;
4062
+ function Vc(e6) {
4062
4063
  function t2({ host: t3 }) {
4063
- return { entityFqdn: `wix.members.v1.member`, method: `GET`, methodFqn: `com.wixpress.members.api.Members.GetMember`, packageName: zc, migrationOptions: { optInTransformResponse: true }, url: Rc({ protoPath: `/v1/members/{id}`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Lc }]) };
4064
+ return { entityFqdn: `wix.members.v1.member`, method: `GET`, methodFqn: `com.wixpress.members.api.Members.GetMember`, packageName: Bc, migrationOptions: { optInTransformResponse: true }, url: zc({ protoPath: `/v1/members/{id}`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Rc }]) };
4064
4065
  }
4065
4066
  return t2;
4066
4067
  }
4067
- async function Vc(e6, t2) {
4068
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Bc(D({ id: e6, fieldsets: t2?.fieldsets }));
4068
+ async function Hc(e6, t2) {
4069
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Vc(D({ id: e6, fieldsets: t2?.fieldsets }));
4069
4070
  r2?.onSiteCall?.();
4070
4071
  try {
4071
4072
  let e7 = await n2.request(i2);
@@ -4075,70 +4076,70 @@ async function Vc(e6, t2) {
4075
4076
  throw r2?.onError?.(e7), t3;
4076
4077
  }
4077
4078
  }
4078
- function Hc(e6) {
4079
- return (t2, n2) => Vc(t2, n2, { httpClient: e6 });
4079
+ function Uc(e6) {
4080
+ return (t2, n2) => Hc(t2, n2, { httpClient: e6 });
4080
4081
  }
4081
- var Uc = M(Hc);
4082
- var Wc = async (e6) => {
4082
+ var Wc = M(Uc);
4083
+ var Gc = async (e6) => {
4083
4084
  try {
4084
- return await Uc(e6, { fieldsets: [`PUBLIC`] });
4085
+ return await Wc(e6, { fieldsets: [`PUBLIC`] });
4085
4086
  } catch {
4086
4087
  return;
4087
4088
  }
4088
4089
  };
4089
- var Gc = `wix.blog.v4.post`;
4090
- var Kc = async (e6, t2) => {
4091
- let n2 = await os({ postFqdn: Gc, postId: e6 }, t2 ? { language: t2 } : void 0);
4090
+ var Kc = `wix.blog.v4.post`;
4091
+ var qc = async (e6, t2) => {
4092
+ let n2 = await ss({ postFqdn: Kc, postId: e6 }, t2 ? { language: t2 } : void 0);
4092
4093
  if (typeof n2 != `object` || !n2) throw Error(`No Wix SDK context for the post paywall read`);
4093
4094
  let { richContent: r2 } = n2;
4094
4095
  return D(r2);
4095
4096
  };
4096
- var qc = `1522827f-c56c-a5c9-2ac9-00f9e6ae12d3`;
4097
- var Jc = `membership_plan_picker_tpa`;
4098
- var Yc = (e6) => {
4097
+ var Jc = `1522827f-c56c-a5c9-2ac9-00f9e6ae12d3`;
4098
+ var Yc = `membership_plan_picker_tpa`;
4099
+ var Xc = (e6) => {
4099
4100
  let t2;
4100
4101
  try {
4101
- t2 = e6.appSectionRelativeUrl(qc, Jc);
4102
+ t2 = e6.appSectionRelativeUrl(Jc, Yc);
4102
4103
  } catch {
4103
4104
  return;
4104
4105
  }
4105
4106
  if (t2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${t2.replace(/^\/+/, ``)}`;
4106
4107
  };
4107
- var Xc = (e6, t2) => e6.flatMap((e7) => {
4108
- let n2 = e7.nodes ? { ...e7, nodes: Xc(e7.nodes, t2) } : e7;
4108
+ var Zc = (e6, t2) => e6.flatMap((e7) => {
4109
+ let n2 = e7.nodes ? { ...e7, nodes: Zc(e7.nodes, t2) } : e7;
4109
4110
  return e7.type !== `BUTTON` || e7.buttonData?.type !== `ACTION` ? [n2] : t2 ? [{ ...n2, buttonData: { ...e7.buttonData, type: `LINK`, link: { url: t2, target: `SELF`, rel: { nofollow: true } } } }] : [];
4110
4111
  });
4111
- var Zc = (e6, t2, n2) => {
4112
+ var Qc = (e6, t2, n2) => {
4112
4113
  if (!t2?.nodes?.length) return e6;
4113
- let r2 = Xc(t2.nodes.map((e7) => e7.layoutData ? { ...e7, layoutData: { ...e7.layoutData, banner: void 0 } } : e7), n2);
4114
+ let r2 = Zc(t2.nodes.map((e7) => e7.layoutData ? { ...e7, layoutData: { ...e7.layoutData, banner: void 0 } } : e7), n2);
4114
4115
  return { ...e6, nodes: [...e6.nodes ?? [], ...r2] };
4115
4116
  };
4116
- var Qc = [{ path: `posts.firstPublishedDate` }, { path: `posts.lastPublishedDate` }, { path: `posts.expirationDate` }, { path: `posts.heroImage.urlExpirationDate` }, { path: `posts.richContent.metadata.createdTimestamp` }, { path: `posts.richContent.metadata.updatedTimestamp` }, { path: `posts.moderationDetails.submittedDate` }, { path: `posts.moderationDetails.moderationDate` }, { path: `posts.media.wixMedia.image.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.posters.urlExpirationDate` }];
4117
- var $c = [{ path: `posts.richContentCompressed` }];
4118
- var el = [{ path: `posts.heroImage.focalPoint.x` }, { path: `posts.heroImage.focalPoint.y` }, { path: `posts.media.wixMedia.image.focalPoint.x` }, { path: `posts.media.wixMedia.image.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `posts.metrics.averageRating` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `posts.richContent.nodes.galleryData.items.image.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `posts.richContent.nodes.galleryData.options.item.ratio` }, { path: `posts.richContent.nodes.imageData.image.duration` }, { path: `posts.richContent.nodes.imageData.crop.x` }, { path: `posts.richContent.nodes.imageData.crop.y` }, { path: `posts.richContent.nodes.imageData.crop.width` }, { path: `posts.richContent.nodes.imageData.crop.height` }, { path: `posts.richContent.nodes.mapData.mapSettings.lat` }, { path: `posts.richContent.nodes.mapData.mapSettings.lng` }, { path: `posts.richContent.nodes.pollData.poll.image.duration` }, { path: `posts.richContent.nodes.pollData.poll.options.image.duration` }, { path: `posts.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.appEmbedData.image.duration` }, { path: `posts.richContent.nodes.videoData.video.duration` }, { path: `posts.richContent.nodes.videoData.thumbnail.duration` }, { path: `posts.richContent.nodes.audioData.audio.duration` }, { path: `posts.richContent.nodes.audioData.coverImage.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `posts.richContent.nodes.shapeData.shape.duration` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.tocData.fontSize` }, { path: `posts.richContent.nodes.tocData.itemSpacing` }, { path: `posts.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
4119
- var tl = [{ path: `sort.origin.latitude` }, { path: `sort.origin.longitude` }, { path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
4120
- function nl(e6) {
4117
+ var $c = [{ path: `posts.firstPublishedDate` }, { path: `posts.lastPublishedDate` }, { path: `posts.expirationDate` }, { path: `posts.heroImage.urlExpirationDate` }, { path: `posts.richContent.metadata.createdTimestamp` }, { path: `posts.richContent.metadata.updatedTimestamp` }, { path: `posts.moderationDetails.submittedDate` }, { path: `posts.moderationDetails.moderationDate` }, { path: `posts.media.wixMedia.image.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.posters.urlExpirationDate` }];
4118
+ var el = [{ path: `posts.richContentCompressed` }];
4119
+ var tl = [{ path: `posts.heroImage.focalPoint.x` }, { path: `posts.heroImage.focalPoint.y` }, { path: `posts.media.wixMedia.image.focalPoint.x` }, { path: `posts.media.wixMedia.image.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `posts.metrics.averageRating` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `posts.richContent.nodes.galleryData.items.image.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `posts.richContent.nodes.galleryData.options.item.ratio` }, { path: `posts.richContent.nodes.imageData.image.duration` }, { path: `posts.richContent.nodes.imageData.crop.x` }, { path: `posts.richContent.nodes.imageData.crop.y` }, { path: `posts.richContent.nodes.imageData.crop.width` }, { path: `posts.richContent.nodes.imageData.crop.height` }, { path: `posts.richContent.nodes.mapData.mapSettings.lat` }, { path: `posts.richContent.nodes.mapData.mapSettings.lng` }, { path: `posts.richContent.nodes.pollData.poll.image.duration` }, { path: `posts.richContent.nodes.pollData.poll.options.image.duration` }, { path: `posts.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.appEmbedData.image.duration` }, { path: `posts.richContent.nodes.videoData.video.duration` }, { path: `posts.richContent.nodes.videoData.thumbnail.duration` }, { path: `posts.richContent.nodes.audioData.audio.duration` }, { path: `posts.richContent.nodes.audioData.coverImage.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `posts.richContent.nodes.shapeData.shape.duration` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.tocData.fontSize` }, { path: `posts.richContent.nodes.tocData.itemSpacing` }, { path: `posts.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
4120
+ var nl = [{ path: `sort.origin.latitude` }, { path: `sort.origin.longitude` }, { path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
4121
+ function rl(e6) {
4121
4122
  return P(Object.assign(e6, { domainToMappings: { _: [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www.wixapis.com": [{ srcPath: `/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/blog/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/v3/posts`, destPath: `/v3/posts` }], "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/post-service-api-proxy/v3/bulk/posts`, destPath: `/v3/bulk/posts` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "dev._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }] } }));
4122
4123
  }
4123
- var rl = `@wix/auto_sdk_blog_posts`;
4124
- function il(e6) {
4124
+ var il = `@wix/auto_sdk_blog_posts`;
4125
+ function al(e6) {
4125
4126
  function t2({ host: t3 }) {
4126
- let n2 = A(e6, [{ transformFn: un, paths: tl }]);
4127
- return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName: rl, migrationOptions: { optInTransformResponse: true }, url: nl({ protoPath: `/v3/posts/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Qc }, { transformFn: dn, paths: $c }, { transformFn: F, paths: el }]) };
4127
+ let n2 = A(e6, [{ transformFn: dn, paths: nl }]);
4128
+ return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName: il, migrationOptions: { optInTransformResponse: true }, url: rl({ protoPath: `/v3/posts/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: $c }, { transformFn: fn, paths: el }, { transformFn: F, paths: tl }]) };
4128
4129
  }
4129
4130
  return t2;
4130
4131
  }
4131
- function al() {
4132
- let e6 = il({});
4132
+ function ol() {
4133
+ let e6 = al({});
4133
4134
  return { getUrl: (t2) => {
4134
4135
  let { url: n2 } = e6(t2);
4135
4136
  return n2;
4136
4137
  }, httpMethod: `POST`, path: `/v3/posts/query`, pathParams: {}, __requestType: null, __originalRequestType: null, __responseType: null, __originalResponseType: null };
4137
4138
  }
4138
- var ol = al();
4139
- var sl = (e6) => (t2) => ({ method: `POST`, url: ol.getUrl(t2), data: { query: { filter: { id: { $in: e6 } }, paging: { limit: e6.length } } } });
4140
- var cl = M((e6) => async (t2) => {
4141
- let { data: n2 } = await e6.request(sl(t2)), r2 = {};
4139
+ var sl = ol();
4140
+ var cl = (e6) => (t2) => ({ method: `POST`, url: sl.getUrl(t2), data: { query: { filter: { id: { $in: e6 } }, paging: { limit: e6.length } } } });
4141
+ var ll = M((e6) => async (t2) => {
4142
+ let { data: n2 } = await e6.request(cl(t2)), r2 = {};
4142
4143
  for (let e7 of n2.posts ?? []) {
4143
4144
  let { id: t3 } = e7, n3 = e7.media?.wixMedia?.videoV2?.resolutions;
4144
4145
  if (!t3 || !n3?.length) continue;
@@ -4147,125 +4148,152 @@ var cl = M((e6) => async (t2) => {
4147
4148
  }
4148
4149
  return r2;
4149
4150
  });
4150
- var ll = async (e6) => {
4151
+ var ul = async (e6) => {
4151
4152
  if (e6.length === 0) return {};
4152
4153
  try {
4153
- return await cl(e6);
4154
+ return await ll(e6);
4154
4155
  } catch {
4155
4156
  return {};
4156
4157
  }
4157
4158
  };
4158
- var ul = class extends Error {
4159
+ var dl = class extends Error {
4159
4160
  constructor(e6, t2) {
4160
4161
  super(`SSR fetch "${e6}" exceeded its ${t2}ms deadline`), this.name = `SsrDeadlineError`;
4161
4162
  }
4162
4163
  };
4163
- var dl = (e6, t2, n2) => {
4164
+ var fl = (e6, t2, n2) => {
4164
4165
  let r2, i2 = new Promise((e7, i3) => {
4165
- r2 = setTimeout(() => i3(new ul(n2, t2)), t2);
4166
+ r2 = setTimeout(() => i3(new dl(n2, t2)), t2);
4166
4167
  });
4167
4168
  return Promise.race([e6, i2]).finally(() => clearTimeout(r2));
4168
4169
  };
4169
4170
  Z.RICH_CONTENT, Z.SEO, Z.URL, Z.CONTENT_TEXT;
4170
- var fl = [Z.RICH_CONTENT, Z.URL];
4171
+ var pl = [Z.RICH_CONTENT, Z.URL];
4171
4172
  Z.URL, Z.METRICS;
4172
- var pl = (e6) => {
4173
+ var ml = (e6) => {
4173
4174
  let { status: t2, details: n2 } = e6 ?? {};
4174
4175
  return t2 === 404 || String(n2?.applicationError?.code ?? ``).includes(`NOT_FOUND`);
4175
4176
  };
4176
- var ml = (e6, t2) => {
4177
- if (t2 && !pl(e6)) throw e6;
4177
+ var hl = (e6, t2) => {
4178
+ if (t2 && !ml(e6)) throw e6;
4178
4179
  };
4179
- var hl = (e6) => ll(e6.filter((e7) => e7.media?.wixMedia?.videoV2).map(({ _id: e7 }) => e7).filter((e7) => !!e7));
4180
- var gl = async (e6) => {
4180
+ var gl = (e6) => ul(e6.filter((e7) => e7.media?.wixMedia?.videoV2).map(({ _id: e7 }) => e7).filter((e7) => !!e7));
4181
+ var _l = async (e6) => {
4181
4182
  try {
4182
- let { metrics: t2 } = await Sc(e6);
4183
+ let { metrics: t2 } = await Cc(e6);
4183
4184
  return t2;
4184
4185
  } catch {
4185
4186
  return;
4186
4187
  }
4187
4188
  };
4188
- var _l = 100;
4189
- var vl = async () => {
4189
+ var vl = 100;
4190
+ var yl = async () => {
4190
4191
  try {
4191
- let { categories: e6 } = await ic({ paging: { limit: _l } });
4192
+ let { categories: e6 } = await ac({ paging: { limit: vl } });
4192
4193
  return e6 ?? [];
4193
4194
  } catch {
4194
4195
  return [];
4195
4196
  }
4196
4197
  };
4197
- var yl = (e6, t2) => {
4198
+ var bl = (e6, t2) => {
4198
4199
  let { categoryIds: n2 } = e6 ?? {};
4199
4200
  if (!n2?.length) return [];
4200
4201
  let r2 = new Map(t2.map((e7) => [e7._id, e7]));
4201
4202
  return n2.map((e7) => r2.get(e7)).filter((e7) => e7 !== void 0);
4202
4203
  };
4203
- var bl = 30;
4204
- var xl = async (e6) => {
4204
+ var xl = 30;
4205
+ var Sl = async (e6) => {
4205
4206
  if (!e6?.length) return [];
4206
4207
  try {
4207
- let { items: t2 } = await Pc().in(`_id`, e6).limit(bl).find();
4208
+ let { items: t2 } = await Fc().in(`_id`, e6).limit(xl).find();
4208
4209
  return t2 ?? [];
4209
4210
  } catch {
4210
4211
  return [];
4211
4212
  }
4212
4213
  };
4213
- var Sl = (e6, t2) => {
4214
+ var Cl = (e6, t2) => {
4214
4215
  let { tagIds: n2 } = e6 ?? {};
4215
4216
  if (!n2?.length) return [];
4216
4217
  let r2 = new Map(t2.map((e7) => [e7._id, e7]));
4217
4218
  return n2.map((e7) => r2.get(e7)).filter((e7) => e7 !== void 0);
4218
4219
  };
4219
- var Cl = 1e3;
4220
4220
  var wl = 1e3;
4221
- var Tl = async (e6, t2 = false) => {
4221
+ var Tl = 1e3;
4222
+ var El = async (e6, t2 = false) => {
4222
4223
  try {
4223
- return (await xc(e6, { fieldsets: fl })).post;
4224
+ return (await Sc(e6, { fieldsets: pl })).post;
4224
4225
  } catch (e7) {
4225
- ml(e7, t2);
4226
+ hl(e7, t2);
4226
4227
  return;
4227
4228
  }
4228
4229
  };
4229
- var El = async (e6, t2 = false) => {
4230
- let n2 = vl();
4231
- return Dl(await Tl(e6, t2), n2);
4230
+ var Dl = async (e6, t2 = false) => {
4231
+ let n2 = yl();
4232
+ return Ol(await El(e6, t2), n2);
4232
4233
  };
4233
- var Dl = async (e6, t2) => {
4234
- let { _id: n2, memberId: r2, tagIds: i2, preview: a2 } = e6 ?? {}, [o2, s2, c2, l2, u2, d2] = await Promise.all([r2 ? Wc(r2) : void 0, n2 ? gl(n2) : void 0, t2, xl(i2), a2 && n2 ? dl(Kc(n2, e6?.language ?? void 0), Cl, `post-paywall`).catch(() => void 0) : void 0, dl(hl(e6 ? [e6] : []), wl, `post-video`).catch(() => ({}))]), f2 = n2 ? d2[n2] : void 0;
4235
- return { post: e6, author: o2, metrics: s2, categories: yl(e6, c2), tags: Sl(e6, l2), ...u2 && { paywall: u2 }, ...f2 && { videoSources: f2 } };
4234
+ var Ol = async (e6, t2) => {
4235
+ let { _id: n2, memberId: r2, tagIds: i2, preview: a2 } = e6 ?? {}, [o2, s2, c2, l2, u2, d2] = await Promise.all([r2 ? Gc(r2) : void 0, n2 ? _l(n2) : void 0, t2, Sl(i2), a2 && n2 ? fl(qc(n2, e6?.language ?? void 0), wl, `post-paywall`).catch(() => void 0) : void 0, fl(gl(e6 ? [e6] : []), Tl, `post-video`).catch(() => ({}))]), f2 = n2 ? d2[n2] : void 0;
4236
+ return { post: e6, author: o2, metrics: s2, categories: bl(e6, c2), tags: Cl(e6, l2), ...u2 && { paywall: u2 }, ...f2 && { videoSources: f2 } };
4236
4237
  };
4237
- var Ol = (e6) => {
4238
+ var kl = (e6) => {
4238
4239
  let { _id: t2, categoryIds: n2, relatedPostIds: r2 } = e6 ?? {};
4239
4240
  return { currentPostId: t2 ?? void 0, categoryIds: n2, relatedPostIds: r2 };
4240
4241
  };
4241
- var kl = { post: `post`, feed: `feed`, relatedPosts: `related-posts`, comments: `comments`, seo: `seo`, likes: `likes` };
4242
- var Al = (e6) => {
4242
+ v((e6, t2) => {
4243
+ (function() {
4244
+ var e7 = {}.hasOwnProperty;
4245
+ function n2() {
4246
+ for (var e8 = ``, t3 = 0; t3 < arguments.length; t3++) {
4247
+ var n3 = arguments[t3];
4248
+ n3 && (e8 = i2(e8, r2(n3)));
4249
+ }
4250
+ return e8;
4251
+ }
4252
+ function r2(t3) {
4253
+ if (typeof t3 == `string` || typeof t3 == `number`) return t3;
4254
+ if (typeof t3 != `object`) return ``;
4255
+ if (Array.isArray(t3)) return n2.apply(null, t3);
4256
+ if (t3.toString !== Object.prototype.toString && !t3.toString.toString().includes(`[native code]`)) return t3.toString();
4257
+ var r3 = ``;
4258
+ for (var a2 in t3) e7.call(t3, a2) && t3[a2] && (r3 = i2(r3, a2));
4259
+ return r3;
4260
+ }
4261
+ function i2(e8, t3) {
4262
+ return t3 ? e8 ? e8 + ` ` + t3 : e8 + t3 : e8;
4263
+ }
4264
+ t2 !== void 0 && t2.exports ? (n2.default = n2, t2.exports = n2) : typeof define == `function` && typeof define.amd == `object` && define.amd ? define(`classnames`, [], function() {
4265
+ return n2;
4266
+ }) : window.classNames = n2;
4267
+ })();
4268
+ })();
4269
+ var Al = { post: `post`, feed: `feed`, relatedPosts: `related-posts`, comments: `comments`, seo: `seo`, likes: `likes` };
4270
+ var jl = (e6) => {
4243
4271
  try {
4244
4272
  return e6.getMonitoringClient?.() ?? null;
4245
4273
  } catch {
4246
4274
  return null;
4247
4275
  }
4248
4276
  };
4249
- var jl = (e6, t2) => e6 && typeof e6[t2] == `function` ? e6 : null;
4250
- function Ml(e6, t2, { feature: n2, action: r2, level: i2 = `error`, contexts: a2 }) {
4251
- let o2 = jl(e6, `captureException`);
4252
- if (!o2) return;
4253
- let s2 = t2 instanceof Error ? t2 : Error(String(t2));
4254
- o2.captureException(s2, { level: i2, tags: { feature: n2, action: r2 }, ...a2 ? { contexts: a2 } : {} });
4277
+ var Ml = (e6, t2) => e6 && typeof e6[t2] == `function` ? e6 : null;
4278
+ function Nl(e6, t2, { feature: n2, action: r2, level: i2 = `error`, tags: a2, contexts: o2 }) {
4279
+ let s2 = Ml(e6, `captureException`);
4280
+ if (!s2) return;
4281
+ let c2 = t2 instanceof Error ? t2 : Error(String(t2));
4282
+ s2.captureException(c2, { level: i2, tags: { feature: n2, action: r2, ...a2 }, ...o2 ? { contexts: o2 } : {} });
4255
4283
  }
4256
- function Nl(e6, t2, { feature: n2, tags: r2 }, i2) {
4257
- let a2 = jl(e6, `startSpanManual`);
4284
+ function Pl(e6, t2, { feature: n2, tags: r2 }, i2) {
4285
+ let a2 = Ml(e6, `startSpanManual`);
4258
4286
  if (!a2) return i2;
4259
4287
  let o2 = a2.startSpanManual({ name: t2, tags: { feature: n2, ...r2 } });
4260
4288
  return i2.then(() => o2.end(), (e7) => o2.fail(e7 instanceof Error ? e7 : Error(String(e7)))), i2;
4261
4289
  }
4262
- var Pl = class extends import_react.Component {
4290
+ var Fl = class extends import_react.Component {
4263
4291
  state = { error: void 0 };
4264
4292
  static getDerivedStateFromError(e6) {
4265
4293
  return { error: e6 ?? Error(`Unknown render error`) };
4266
4294
  }
4267
4295
  componentDidCatch(e6, t2) {
4268
- Ml(this.props.monitoringClient, e6, { feature: this.props.feature, action: `render`, contexts: { react: { componentStack: t2.componentStack } } });
4296
+ Nl(this.props.monitoringClient, e6, { feature: this.props.feature, action: `render`, tags: this.props.component ? { component: this.props.component } : void 0, contexts: { react: { componentStack: t2.componentStack } } });
4269
4297
  }
4270
4298
  render() {
4271
4299
  if (this.state.error === void 0) return this.props.children;
@@ -4273,64 +4301,64 @@ var Pl = class extends import_react.Component {
4273
4301
  return this.props.fallback;
4274
4302
  }
4275
4303
  };
4276
- var Fl = (e6) => e6.then((e7) => ({ ...e7, fetchedAt: Date.now() }));
4277
- var Il = (e6) => {
4304
+ var Il = (e6) => e6.then((e7) => ({ ...e7, fetchedAt: Date.now() }));
4305
+ var Ll = (e6) => {
4278
4306
  if (e6 && typeof e6 == `object`) return (typeof e6.$eq == `string` ? e6.$eq : Array.isArray(e6.$in) ? e6.$in.find((e7) => typeof e7 == `string` && e7.trim() !== ``) : void 0)?.trim() || void 0;
4279
4307
  };
4280
- var Ll = `postId`;
4281
- var Rl = (e6) => Il(e6?.[Ll]);
4282
- var zl = (e6) => {
4308
+ var Rl = `postId`;
4309
+ var zl = (e6) => Ll(e6?.[Rl]);
4310
+ var Bl = (e6) => {
4283
4311
  let t2;
4284
4312
  try {
4285
- t2 = (0, import_services_manager_react.useService)(Xn);
4313
+ t2 = (0, import_services_manager_react.useService)(Zn);
4286
4314
  } catch {
4287
4315
  return;
4288
4316
  }
4289
- return lr(t2, e6);
4317
+ return ur(t2, e6);
4290
4318
  };
4291
- var Bl = 1e4;
4292
- function Vl(e6) {
4319
+ var Vl = 1e4;
4320
+ function Hl(e6) {
4293
4321
  let [t2, n2] = (0, import_react.useState)(void 0);
4294
4322
  return (0, import_react.useEffect)(() => {
4295
4323
  let t3 = Date.now();
4296
- t3 - e6 > Bl && (0, import_react.startTransition)(() => n2(t3));
4324
+ t3 - e6 > Vl && (0, import_react.startTransition)(() => n2(t3));
4297
4325
  }, []), t2 ?? e6;
4298
4326
  }
4299
- var Hl = `wix.blog.v3.post`;
4300
- var Ul = async (e6) => {
4301
- await Ws({ like: { entityId: e6, fqdn: Hl } });
4302
- };
4327
+ var Ul = `wix.blog.v3.post`;
4303
4328
  var Wl = async (e6) => {
4304
- await Gs({ fqdn: Hl, entityId: e6 });
4329
+ await Gs({ like: { entityId: e6, fqdn: Ul } });
4330
+ };
4331
+ var Gl = async (e6) => {
4332
+ await Ks({ fqdn: Ul, entityId: e6 });
4305
4333
  };
4306
- var Gl = (e6) => typeof e6 == `number` ? e6 : void 0;
4307
- var Kl = async (e6) => {
4308
- let [t2, n2] = await Promise.allSettled([Ks().eq(`fqdn`, Hl).eq(`entityId`, e6).limit(1).find(), Sc(e6)]), r2 = n2.status === `fulfilled` ? n2.value.metrics : void 0;
4309
- return { liked: t2.status === `fulfilled` && t2.value.items.length > 0, likeCount: Gl(r2?.likes), viewCount: Gl(r2?.views), commentCount: Gl(r2?.comments) };
4334
+ var Kl = (e6) => typeof e6 == `number` ? e6 : void 0;
4335
+ var ql = async (e6) => {
4336
+ let [t2, n2] = await Promise.allSettled([qs().eq(`fqdn`, Ul).eq(`entityId`, e6).limit(1).find(), Cc(e6)]), r2 = n2.status === `fulfilled` ? n2.value.metrics : void 0;
4337
+ return { liked: t2.status === `fulfilled` && t2.value.items.length > 0, likeCount: Kl(r2?.likes), viewCount: Kl(r2?.views), commentCount: Kl(r2?.comments) };
4310
4338
  };
4311
- var ql = I(`@wix/site-service-editor-context`);
4312
- var Jl = () => {
4339
+ var Jl = I(`@wix/site-service-editor-context`);
4340
+ var Yl = () => {
4313
4341
  try {
4314
- return !!(0, import_services_manager_react.useService)(ql).previewMode;
4342
+ return !!(0, import_services_manager_react.useService)(Jl).previewMode;
4315
4343
  } catch {
4316
4344
  return false;
4317
4345
  }
4318
4346
  };
4319
- var Yl = { liked: false, baselineLiked: false, freshLikeCount: void 0, viewCount: void 0, commentCount: void 0, isLikeCountLoaded: false };
4320
- var Xl = `wix-blog:post-like-toggled`;
4321
- var Zl = () => {
4347
+ var Xl = { liked: false, baselineLiked: false, freshLikeCount: void 0, viewCount: void 0, commentCount: void 0, isLikeCountLoaded: false };
4348
+ var Zl = `wix-blog:post-like-toggled`;
4349
+ var Ql = () => {
4322
4350
  let e6 = window;
4323
- return e6[Xl] ??= /* @__PURE__ */ new Map();
4351
+ return e6[Zl] ??= /* @__PURE__ */ new Map();
4324
4352
  };
4325
- var Ql = (e6) => {
4326
- Zl().set(e6.postId, e6.liked), window.dispatchEvent(new CustomEvent(Xl, { detail: e6 }));
4353
+ var $l = (e6) => {
4354
+ Ql().set(e6.postId, e6.liked), window.dispatchEvent(new CustomEvent(Zl, { detail: e6 }));
4327
4355
  };
4328
- var $l = (e6, t2) => ({ isLiked: e6.liked, likeCount: Math.max(0, (e6.freshLikeCount ?? t2) + Number(e6.liked) - Number(e6.baselineLiked)), isLikeCountLoaded: e6.isLikeCountLoaded, viewCount: e6.viewCount, commentCount: e6.commentCount });
4329
- var eu = (e6, t2, n2 = false, r2) => {
4330
- let i2 = Jl() || n2, [a2, c2] = (0, import_react.useState)(Yl), p2 = (0, import_react.useRef)(Yl), m2 = (0, import_react.useRef)(t2), h2 = (0, import_react.useRef)(/* @__PURE__ */ new Set()), g2 = (0, import_react.useRef)(false), _2 = (0, import_react.useRef)(false), v2 = (0, import_react.useRef)(void 0), y2 = Jn(), [b2, x2] = (0, import_react.useState)(0);
4356
+ var eu = (e6, t2) => ({ isLiked: e6.liked, likeCount: Math.max(0, (e6.freshLikeCount ?? t2) + Number(e6.liked) - Number(e6.baselineLiked)), isLikeCountLoaded: e6.isLikeCountLoaded, viewCount: e6.viewCount, commentCount: e6.commentCount });
4357
+ var tu = (e6, t2, n2 = false, r2) => {
4358
+ let i2 = Yl() || n2, [a2, c2] = (0, import_react.useState)(Xl), p2 = (0, import_react.useRef)(Xl), m2 = (0, import_react.useRef)(t2), h2 = (0, import_react.useRef)(/* @__PURE__ */ new Set()), g2 = (0, import_react.useRef)(false), _2 = (0, import_react.useRef)(false), v2 = (0, import_react.useRef)(void 0), y2 = Yn(), [b2, x2] = (0, import_react.useState)(0);
4331
4359
  (0, import_react.useEffect)(() => {
4332
4360
  let e7 = y2?.addMemberLoginListener?.(() => {
4333
- Zl().clear(), x2((e8) => e8 + 1);
4361
+ Ql().clear(), x2((e8) => e8 + 1);
4334
4362
  });
4335
4363
  return () => {
4336
4364
  e7 !== void 0 && y2?.removeMemberLoginListener?.(e7);
@@ -4339,21 +4367,21 @@ var eu = (e6, t2, n2 = false, r2) => {
4339
4367
  let S2 = (0, import_react.useCallback)((e7) => {
4340
4368
  let t3 = p2.current, n3 = { ...t3, ...e7 };
4341
4369
  Object.keys(n3).every((e8) => n3[e8] === t3[e8]) || (p2.current = n3, h2.current.forEach((e8) => e8()), (0, import_react.startTransition)(() => c2(n3)));
4342
- }, []), C2 = (0, import_react.useMemo)(() => ({ get: () => $l(p2.current, m2.current), subscribe: (e7) => (h2.current.add(e7), () => {
4370
+ }, []), C2 = (0, import_react.useMemo)(() => ({ get: () => eu(p2.current, m2.current), subscribe: (e7) => (h2.current.add(e7), () => {
4343
4371
  h2.current.delete(e7);
4344
4372
  }) }), []);
4345
4373
  (0, import_react.useEffect)(() => {
4346
4374
  m2.current !== t2 && (m2.current = t2, h2.current.forEach((e7) => e7()));
4347
4375
  }, [t2]), (0, import_react.useEffect)(() => {
4348
- if (v2.current !== e6 && (v2.current = e6, S2(Yl)), _2.current = false, !e6 || i2) {
4376
+ if (v2.current !== e6 && (v2.current = e6, S2(Xl)), _2.current = false, !e6 || i2) {
4349
4377
  S2({ isLikeCountLoaded: true });
4350
4378
  return;
4351
4379
  }
4352
4380
  let t3 = false;
4353
- return Kl(e6).then(({ liked: e7, likeCount: n3, viewCount: r3, commentCount: i3 }) => {
4381
+ return ql(e6).then(({ liked: e7, likeCount: n3, viewCount: r3, commentCount: i3 }) => {
4354
4382
  t3 || S2({ isLikeCountLoaded: true, viewCount: r3, commentCount: i3, baselineLiked: e7, freshLikeCount: n3, ...!_2.current && { liked: e7 } });
4355
4383
  }).catch((n3) => {
4356
- t3 || S2({ isLikeCountLoaded: true }), Ml(r2, n3, { feature: kl.likes, action: `read-like-state`, level: `warning`, contexts: { likes: { postId: e6 } } });
4384
+ t3 || S2({ isLikeCountLoaded: true }), Nl(r2, n3, { feature: Al.likes, action: `read-like-state`, level: `warning`, contexts: { likes: { postId: e6 } } });
4357
4385
  }), () => {
4358
4386
  t3 = true;
4359
4387
  };
@@ -4361,240 +4389,240 @@ var eu = (e6, t2, n2 = false, r2) => {
4361
4389
  if (!e6) return;
4362
4390
  let t3 = (e7) => {
4363
4391
  _2.current = true, S2({ liked: e7 });
4364
- }, n3 = Zl().get(e6);
4392
+ }, n3 = Ql().get(e6);
4365
4393
  n3 !== void 0 && t3(n3);
4366
4394
  let r3 = (n4) => {
4367
4395
  let { detail: r4 } = n4;
4368
4396
  r4.postId === e6 && t3(r4.liked);
4369
4397
  };
4370
- return window.addEventListener(Xl, r3), () => window.removeEventListener(Xl, r3);
4398
+ return window.addEventListener(Zl, r3), () => window.removeEventListener(Zl, r3);
4371
4399
  }, [e6, S2]);
4372
4400
  let ee2 = (0, import_react.useCallback)(async (t3) => {
4373
4401
  if (!e6 || g2.current) return;
4374
4402
  _2.current = true;
4375
4403
  let n3 = !p2.current.liked;
4376
- if (S2({ liked: n3 }), Ql({ postId: e6, liked: n3 }), !i2) {
4404
+ if (S2({ liked: n3 }), $l({ postId: e6, liked: n3 }), !i2) {
4377
4405
  g2.current = true;
4378
4406
  try {
4379
- await (n3 ? Ul(e6) : Wl(e6));
4407
+ await (n3 ? Wl(e6) : Gl(e6));
4380
4408
  } catch (t4) {
4381
- S2({ liked: !n3 }), Ql({ postId: e6, liked: !n3 }), Ml(r2, t4, { feature: kl.likes, action: n3 ? `like-post` : `unlike-post`, contexts: { likes: { postId: e6 } } });
4409
+ S2({ liked: !n3 }), $l({ postId: e6, liked: !n3 }), Nl(r2, t4, { feature: Al.likes, action: n3 ? `like-post` : `unlike-post`, contexts: { likes: { postId: e6 } } });
4382
4410
  } finally {
4383
4411
  g2.current = false;
4384
4412
  }
4385
4413
  }
4386
4414
  }, [e6, i2, r2, S2]);
4387
- return { ...$l(a2, t2), toggleLike: ee2, liveLikes: C2 };
4415
+ return { ...eu(a2, t2), toggleLike: ee2, liveLikes: C2 };
4388
4416
  };
4389
- var tu = () => {
4417
+ var nu = () => {
4390
4418
  try {
4391
- let { locale: e6, language: t2 } = (0, import_services_manager_react.useService)(bo);
4419
+ let { locale: e6, language: t2 } = (0, import_services_manager_react.useService)(xo);
4392
4420
  return e6 || t2;
4393
4421
  } catch {
4394
4422
  return;
4395
4423
  }
4396
4424
  };
4397
- var nu = () => {
4425
+ var ru = () => {
4398
4426
  try {
4399
- return Yc((0, import_services_manager_react.useService)(Xn));
4427
+ return Xc((0, import_services_manager_react.useService)(Zn));
4400
4428
  } catch {
4401
4429
  return;
4402
4430
  }
4403
4431
  };
4404
- var ru = (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);
4432
+ var iu = (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);
4405
4433
  var Q = { 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` };
4406
- var iu = (e6, t2) => {
4407
- let n2 = (n3) => (r2) => e6(n3, { count: r2, formatted: ru(r2, `full`, t2) });
4434
+ var au = (e6, t2) => {
4435
+ let n2 = (n3) => (r2) => e6(n3, { count: r2, formatted: iu(r2, `full`, t2) });
4408
4436
  return { timeToRead: (t3) => e6(Q.timeToRead, { count: t3 }), viewCount: n2(Q.viewCount), commentCount: n2(Q.commentCount), likeCount: n2(Q.likeCount), noPostsEmptyState: () => ({ title: e6(Q.noPostsTitle), description: e6(Q.noPostsDescription) }), noRelatedPostsEmptyState: () => ({ title: e6(Q.noRelatedPostsTitle), description: e6(Q.noRelatedPostsDescription) }), canvas: { postTitle: () => e6(Q.canvasPostTitle), authorName: () => e6(Q.canvasAuthorName), excerpt: () => e6(Q.canvasExcerpt), content: () => e6(Q.canvasContent), category: () => e6(Q.canvasCategory), categoryNumbered: (t3) => e6(Q.canvasCategoryNumbered, { number: t3 }), tagNumbered: (t3) => e6(Q.canvasTagNumbered, { number: t3 }), coverAlt: () => e6(Q.canvasCoverAlt), authorPhotoAlt: () => e6(Q.canvasAuthorPhotoAlt) } };
4409
4437
  };
4410
- var au = (0, import_react.createContext)({ isEditor: false, isPreview: false });
4411
- var ou = () => (0, import_react.useContext)(au);
4412
- var su = ({ isEditor: e6, isPreview: t2 }) => e6 && !t2;
4413
- var cu = () => {
4438
+ var ou = (0, import_react.createContext)({ isEditor: false, isPreview: false });
4439
+ var su = () => (0, import_react.useContext)(ou);
4440
+ var cu = ({ isEditor: e6, isPreview: t2 }) => e6 && !t2;
4441
+ var lu = () => {
4414
4442
  try {
4415
- let { SSR: e6, SEO: t2 } = (0, import_services_manager_react.useService)(Un);
4443
+ let { SSR: e6, SEO: t2 } = (0, import_services_manager_react.useService)(Wn);
4416
4444
  return e6 || t2;
4417
4445
  } catch {
4418
4446
  return false;
4419
4447
  }
4420
4448
  };
4421
- var lu = () => {
4422
- let e6 = cu();
4423
- return su(ou()) && !e6;
4449
+ var uu = () => {
4450
+ let e6 = lu();
4451
+ return cu(su()) && !e6;
4424
4452
  };
4425
- var uu = (e6) => ({ href: e6 ?? `#`, target: `_self` });
4426
- var du = (e6) => {
4453
+ var du = (e6) => ({ href: e6 ?? `#`, target: `_self` });
4454
+ var fu = (e6) => {
4427
4455
  if (!e6) return;
4428
4456
  let t2 = e6 instanceof Date ? e6 : new Date(e6);
4429
4457
  return Number.isFinite(t2.getTime()) ? t2.toISOString() : void 0;
4430
4458
  };
4431
- var fu = (e6) => typeof e6 == `number` && e6 > 0 ? e6 : void 0;
4432
- var pu = (e6) => e6.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`);
4433
- var $ = (e6) => ({ text: e6, html: `<p>${pu(e6)}</p>`, linkList: [] });
4434
- var mu = 6e4;
4435
- var hu = mu * 60;
4436
- var gu = hu * 24;
4437
- var _u = gu * 7;
4438
- var vu = (e6) => e6 < mu ? [`second`, e6 / 1e3] : e6 < hu ? [`minute`, e6 / mu] : e6 < gu ? [`hour`, e6 / hu] : [`day`, e6 / gu];
4439
- var yu = (e6, t2, n2 = Date.now()) => {
4459
+ var pu = (e6) => typeof e6 == `number` && e6 > 0 ? e6 : void 0;
4460
+ var mu = (e6) => e6.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`);
4461
+ var $ = (e6) => ({ text: e6, html: `<p>${mu(e6)}</p>`, linkList: [] });
4462
+ var hu = 6e4;
4463
+ var gu = hu * 60;
4464
+ var _u = gu * 24;
4465
+ var vu = _u * 7;
4466
+ var yu = (e6) => e6 < hu ? [`second`, e6 / 1e3] : e6 < gu ? [`minute`, e6 / hu] : e6 < _u ? [`hour`, e6 / gu] : [`day`, e6 / _u];
4467
+ var bu = (e6, t2, n2 = Date.now()) => {
4440
4468
  let r2 = e6 instanceof Date ? e6 : new Date(e6), i2 = n2 - r2.getTime();
4441
- if (i2 >= 0 && i2 < _u) {
4442
- let [e7, n3] = vu(i2);
4469
+ if (i2 >= 0 && i2 < vu) {
4470
+ let [e7, n3] = yu(i2);
4443
4471
  return new Intl.RelativeTimeFormat(t2).format(-Math.round(n3), e7);
4444
4472
  }
4445
4473
  let a2 = r2.getFullYear() === new Date(n2).getFullYear();
4446
4474
  return new Intl.DateTimeFormat(t2, { ...a2 ? {} : { year: `numeric` }, month: `short`, day: `numeric` }).format(r2);
4447
4475
  };
4448
- var bu = `https://static.wixstatic.com/media/`;
4449
- var xu = 100;
4450
- var Su = (e6, t2 = ``) => {
4476
+ var xu = `https://static.wixstatic.com/media/`;
4477
+ var Su = 100;
4478
+ var Cu = (e6, t2 = ``) => {
4451
4479
  let n2 = e6?.profile?.photo;
4452
4480
  if (!n2?.url) return;
4453
- let r2 = e6?.profile?.nickname, { _id: i2 } = n2, a2 = i2 || (n2.url.startsWith(bu) ? n2.url.slice(35).split(/[?#]/)[0] : void 0);
4454
- return { ...a2 && { uri: a2 }, url: n2.url, name: r2 ?? a2 ?? `author-photo`, width: n2.width || xu, height: n2.height || xu, alt: r2 ?? t2 };
4455
- };
4456
- var Cu = `https://static.wixstatic.com/media/`;
4457
- var wu = `wix:image://`;
4458
- var Tu = 1200;
4459
- var Eu = 800;
4460
- var Du = (e6) => {
4481
+ let r2 = e6?.profile?.nickname, { _id: i2 } = n2, a2 = i2 || (n2.url.startsWith(xu) ? n2.url.slice(35).split(/[?#]/)[0] : void 0);
4482
+ return { ...a2 && { uri: a2 }, url: n2.url, name: r2 ?? a2 ?? `author-photo`, width: n2.width || Su, height: n2.height || Su, alt: r2 ?? t2 };
4483
+ };
4484
+ var wu = `https://static.wixstatic.com/media/`;
4485
+ var Tu = `wix:image://`;
4486
+ var Eu = 1200;
4487
+ var Du = 800;
4488
+ var Ou = (e6) => {
4461
4489
  if (!e6) return;
4462
4490
  let t2 = Number.parseInt(e6, 10);
4463
4491
  return Number.isFinite(t2) && t2 > 0 ? t2 : void 0;
4464
4492
  };
4465
- var Ou = (e6) => {
4466
- if (!e6.startsWith(wu)) {
4493
+ var ku = (e6) => {
4494
+ if (!e6.startsWith(Tu)) {
4467
4495
  let t3 = e6.split(/[?#]/)[0];
4468
4496
  return t3 ? { uri: t3 } : void 0;
4469
4497
  }
4470
4498
  let [t2, n2] = e6.slice(12).split(`#`), [, r2, i2] = t2.split(`/`).filter(Boolean);
4471
4499
  if (!r2) return;
4472
4500
  let a2 = new URLSearchParams(n2 ?? ``);
4473
- return { uri: decodeURIComponent(r2), name: i2 ? decodeURIComponent(i2) : void 0, width: Du(a2.get(`originWidth`)), height: Du(a2.get(`originHeight`)) };
4501
+ return { uri: decodeURIComponent(r2), name: i2 ? decodeURIComponent(i2) : void 0, width: Ou(a2.get(`originWidth`)), height: Ou(a2.get(`originHeight`)) };
4474
4502
  };
4475
- var ku = (e6, t2) => {
4503
+ var Au = (e6, t2) => {
4476
4504
  if (!e6) return;
4477
- let n2 = Ou(e6);
4505
+ let n2 = ku(e6);
4478
4506
  if (!n2) return;
4479
4507
  let r2 = n2.name ?? n2.uri;
4480
- return { uri: n2.uri, url: `${Cu}${n2.uri}`, name: r2, width: n2.width ?? Tu, height: n2.height ?? Eu, alt: t2 ?? r2 };
4508
+ return { uri: n2.uri, url: `${wu}${n2.uri}`, name: r2, width: n2.width ?? Eu, height: n2.height ?? Du, alt: t2 ?? r2 };
4481
4509
  };
4482
- var Au = (e6) => {
4510
+ var ju = (e6) => {
4483
4511
  let t2 = e6?.media?.wixMedia?.image;
4484
4512
  if (!t2) return;
4485
- let n2 = Ou(t2);
4513
+ let n2 = ku(t2);
4486
4514
  if (!n2) return;
4487
4515
  let r2 = n2.name ?? n2.uri;
4488
- return { uri: n2.uri, url: `${Cu}${n2.uri}`, name: r2, width: n2.width ?? Tu, height: n2.height ?? Eu, alt: e6?.media?.altText ?? e6?.title ?? r2 };
4516
+ return { uri: n2.uri, url: `${wu}${n2.uri}`, name: r2, width: n2.width ?? Eu, height: n2.height ?? Du, alt: e6?.media?.altText ?? e6?.title ?? r2 };
4489
4517
  };
4490
- var ju = `https://static.wixstatic.com/media/`;
4491
- var Mu = `wix:video://`;
4492
- var Nu = (e6) => {
4518
+ var Mu = `https://static.wixstatic.com/media/`;
4519
+ var Nu = `wix:video://`;
4520
+ var Pu = (e6) => {
4493
4521
  if (!e6) return;
4494
4522
  let t2 = Number.parseInt(e6, 10);
4495
4523
  return Number.isFinite(t2) && t2 > 0 ? t2 : void 0;
4496
4524
  };
4497
- var Pu = (e6) => {
4498
- if (!e6.startsWith(Mu)) return;
4525
+ var Fu = (e6) => {
4526
+ if (!e6.startsWith(Nu)) return;
4499
4527
  let [t2, n2] = e6.slice(12).split(`#`), [, r2] = t2.split(`/`).filter(Boolean);
4500
4528
  if (!r2) return;
4501
4529
  let i2 = new URLSearchParams(n2 ?? ``), a2 = i2.get(`posterUri`);
4502
- return { id: decodeURIComponent(r2), posterUrl: a2 ? `${ju}${a2}` : void 0, posterWidth: Nu(i2.get(`posterWidth`)), posterHeight: Nu(i2.get(`posterHeight`)) };
4530
+ return { id: decodeURIComponent(r2), posterUrl: a2 ? `${Mu}${a2}` : void 0, posterWidth: Pu(i2.get(`posterWidth`)), posterHeight: Pu(i2.get(`posterHeight`)) };
4503
4531
  };
4504
- var Fu = [/https?:\/\/(?:www\.|m\.)?youtube\.com\/watch\?(?:[^#]*&)?v=([\w-]+)/i, /https?:\/\/(?:www\.)?youtube\.com\/embed\/([\w-]+)/i, /https?:\/\/youtu\.be\/([\w-]+)/i];
4505
- var Iu = [/https?:\/\/player\.vimeo\.com\/video\/(\d+)/i, /https?:\/\/vimeo\.com\/(\d+)/i];
4506
- var Lu = (e6, t2) => {
4532
+ var Iu = [/https?:\/\/(?:www\.|m\.)?youtube\.com\/watch\?(?:[^#]*&)?v=([\w-]+)/i, /https?:\/\/(?:www\.)?youtube\.com\/embed\/([\w-]+)/i, /https?:\/\/youtu\.be\/([\w-]+)/i];
4533
+ var Lu = [/https?:\/\/player\.vimeo\.com\/video\/(\d+)/i, /https?:\/\/vimeo\.com\/(\d+)/i];
4534
+ var Ru = (e6, t2) => {
4507
4535
  for (let n2 of e6) {
4508
4536
  let e7 = n2.exec(t2);
4509
4537
  if (e7) return e7[1];
4510
4538
  }
4511
4539
  };
4512
- var Ru = (e6) => {
4513
- let t2 = Lu(Fu, e6);
4540
+ var zu = (e6) => {
4541
+ let t2 = Ru(Iu, e6);
4514
4542
  if (t2) return { provider: `youtube`, embedUrl: `https://www.youtube.com/embed/${t2}?autoplay=1` };
4515
- let n2 = Lu(Iu, e6);
4543
+ let n2 = Ru(Lu, e6);
4516
4544
  return n2 ? { provider: `vimeo`, embedUrl: `https://player.vimeo.com/video/${n2}?autoplay=1` } : { provider: `unknown` };
4517
4545
  };
4518
- var zu = (e6, t2 = []) => {
4546
+ var Bu = (e6, t2 = []) => {
4519
4547
  let n2 = e6?.media;
4520
4548
  if (!n2 || n2.displayed === false) return;
4521
- let r2 = Au(e6);
4549
+ let r2 = ju(e6);
4522
4550
  if (r2) return { kind: `image`, image: r2 };
4523
- let i2 = n2.altText ?? e6?.title ?? ``, a2 = n2.wixMedia?.videoV2 ? Pu(n2.wixMedia.videoV2) : void 0;
4551
+ let i2 = n2.altText ?? e6?.title ?? ``, a2 = n2.wixMedia?.videoV2 ? Fu(n2.wixMedia.videoV2) : void 0;
4524
4552
  if (a2) return { kind: `wixVideo`, ...a2, sources: t2, altText: i2 };
4525
4553
  let o2 = n2.embedMedia?.video?.url;
4526
4554
  if (o2) {
4527
4555
  let { thumbnail: e7 } = n2.embedMedia ?? {};
4528
- return { kind: `embed`, videoUrl: o2, ...Ru(o2), thumbnailUrl: e7?.url, thumbnailWidth: e7?.width, thumbnailHeight: e7?.height, altText: i2 };
4556
+ return { kind: `embed`, videoUrl: o2, ...zu(o2), thumbnailUrl: e7?.url, thumbnailWidth: e7?.width, thumbnailHeight: e7?.height, altText: i2 };
4529
4557
  }
4530
4558
  };
4531
- var Bu = (e6) => {
4532
- let t2 = Au(e6), n2 = e6?.media?.wixMedia?.videoV2;
4559
+ var Vu = (e6) => {
4560
+ let t2 = ju(e6), n2 = e6?.media?.wixMedia?.videoV2;
4533
4561
  if (t2 || !n2) return t2;
4534
- let r2 = Pu(n2), i2 = ku(r2?.posterUrl?.slice(35), e6?.media?.altText ?? e6?.title);
4562
+ let r2 = Fu(n2), i2 = Au(r2?.posterUrl?.slice(35), e6?.media?.altText ?? e6?.title);
4535
4563
  return i2 && { ...i2, width: r2?.posterWidth ?? i2.width, height: r2?.posterHeight ?? i2.height };
4536
4564
  };
4537
- var Vu = (e6, t2) => e6 && t2 ? `${e6}/${encodeURIComponent(t2)}` : void 0;
4538
- var Hu = (e6, t2) => {
4539
- let n2 = Vu(e6, t2);
4565
+ var Hu = (e6, t2) => e6 && t2 ? `${e6}/${encodeURIComponent(t2)}` : void 0;
4566
+ var Uu = (e6, t2) => {
4567
+ let n2 = Hu(e6, t2);
4540
4568
  return n2 ? { href: n2, target: `_self` } : void 0;
4541
4569
  };
4542
- var Uu = { href: `#`, target: `_self` };
4543
- var Wu = (e6, t2) => {
4570
+ var Wu = { href: `#`, target: `_self` };
4571
+ var Gu = (e6, t2) => {
4544
4572
  let { _id: n2, label: r2, slug: i2 } = e6, a2 = r2 ?? ``;
4545
- return { _id: n2 ?? i2 ?? ``, label: a2, itemCategoryLabel: $(a2), itemCategoryLink: Hu(t2, i2 ?? ``), categoryItem: { label: a2, slug: i2 ?? `` } };
4573
+ return { _id: n2 ?? i2 ?? ``, label: a2, itemCategoryLabel: $(a2), itemCategoryLink: Uu(t2, i2 ?? ``), categoryItem: { label: a2, slug: i2 ?? `` } };
4546
4574
  };
4547
- var Gu = 2;
4548
- var Ku = (e6) => Array.from({ length: Gu }, (t2, n2) => {
4575
+ var Ku = 2;
4576
+ var qu = (e6) => Array.from({ length: Ku }, (t2, n2) => {
4549
4577
  let r2 = e6.canvas.categoryNumbered(n2 + 1);
4550
- return { _id: `placeholder-category-${n2}`, label: r2, itemCategoryLabel: $(r2), itemCategoryLink: Uu, categoryItem: { label: r2, slug: `` } };
4578
+ return { _id: `placeholder-category-${n2}`, label: r2, itemCategoryLabel: $(r2), itemCategoryLink: Wu, categoryItem: { label: r2, slug: `` } };
4551
4579
  });
4552
- var qu = (e6, t2) => {
4580
+ var Ju = (e6, t2) => {
4553
4581
  let { _id: n2, label: r2, slug: i2 } = e6, a2 = r2 ?? ``;
4554
- return { _id: n2 ?? i2 ?? ``, label: a2, itemTagLabel: $(a2), itemTagLink: Hu(t2, i2 ?? ``), tagItem: { label: a2, slug: i2 ?? `` } };
4582
+ return { _id: n2 ?? i2 ?? ``, label: a2, itemTagLabel: $(a2), itemTagLink: Uu(t2, i2 ?? ``), tagItem: { label: a2, slug: i2 ?? `` } };
4555
4583
  };
4556
- var Ju = 3;
4557
- var Yu = (e6) => Array.from({ length: Ju }, (t2, n2) => {
4584
+ var Yu = 3;
4585
+ var Xu = (e6) => Array.from({ length: Yu }, (t2, n2) => {
4558
4586
  let r2 = e6.canvas.tagNumbered(n2 + 1);
4559
- return { _id: `placeholder-tag-${n2}`, label: r2, itemTagLabel: $(r2), itemTagLink: Uu, tagItem: { label: r2, slug: `` } };
4587
+ return { _id: `placeholder-tag-${n2}`, label: r2, itemTagLabel: $(r2), itemTagLink: Wu, tagItem: { label: r2, slug: `` } };
4560
4588
  });
4561
- var Xu = 1;
4562
- var Zu = { views: 120, comments: 4, likes: 12 };
4563
- var Qu = (e6) => ({ nodes: [{ type: `PARAGRAPH`, nodes: [{ type: `TEXT`, nodes: [], textData: { text: e6, decorations: [] } }] }] });
4564
- var $u = (e6, t2, n2, r2) => $(e6 === void 0 ? n2 ? r2(t2) : `` : r2(e6));
4565
- var ed = (e6, t2, n2) => e6 ?? (n2 ? t2 : void 0);
4566
- var td = { nodes: [] };
4567
- var nd = () => ({ title: $(``), excerpt: $(``), coverImage: void 0, coverMedia: void 0, richContent: td, authorName: $(``), authorImage: void 0, timeToRead: $(``), publishedDate: $(``), viewCount: $(``), commentCount: $(``), likeCount: $(``), postCategories: [], itemCategoryLabel: $(``), postTags: [], hasCoverImage: false, hasExcerpt: false, hasTags: false, publishedDateValue: void 0, minutesToReadValue: void 0, viewCountValue: void 0, commentCountValue: void 0 });
4568
- var rd = ({ post: e6, author: t2, metrics: n2, categories: r2, tags: i2, videoSources: a2 }, o2, s2, c2 = false, l2 = Date.now(), u2 = {}) => !e6 && !c2 ? nd() : { title: $(e6?.title ?? o2.canvas.postTitle()), excerpt: $(e6?.excerpt ?? o2.canvas.excerpt()), coverImage: Bu(e6), coverMedia: zu(e6, a2), richContent: e6?.richContent ?? Qu(o2.canvas.content()), authorName: $(t2?.profile?.nickname ?? o2.canvas.authorName()), authorImage: Su(t2, o2.canvas.authorPhotoAlt()), timeToRead: $(typeof e6?.minutesToRead == `number` && e6.minutesToRead > 0 ? o2.timeToRead(e6.minutesToRead) : c2 ? o2.timeToRead(Xu) : ``), publishedDate: $(yu(e6?.firstPublishedDate ?? new Date(l2), s2, l2)), viewCount: $u(n2?.views, Zu.views, c2, o2.viewCount), commentCount: $u(n2?.comments, Zu.comments, c2, o2.commentCount), likeCount: $u(n2?.likes, Zu.likes, c2, o2.likeCount), postCategories: r2.length === 0 && c2 ? Ku(o2) : r2.map((e7) => Wu(e7, u2.category)), itemCategoryLabel: $(r2[0]?.label ?? (c2 ? o2.canvas.category() : ``)), postTags: i2.length === 0 && c2 ? Yu(o2) : i2.map((e7) => qu(e7, u2.tag)), hasCoverImage: !e6 || e6.media?.displayed !== false && Bu(e6) !== void 0, hasExcerpt: !e6 || !!e6.excerpt?.trim(), hasTags: !e6 || i2.length > 0, publishedDateValue: du(e6?.firstPublishedDate) ?? (c2 ? `2026-05-12T12:00:00.000Z` : void 0), minutesToReadValue: fu(e6?.minutesToRead) ?? (c2 ? Xu : void 0), viewCountValue: ed(n2?.views, Zu.views, c2), commentCountValue: ed(n2?.comments, Zu.comments, c2) };
4569
- var id = ({ postWithAuthor: e6, hasError: t2, monitoringClient: n2, isPostInPreview: r2, postPageBase: i2 }) => {
4570
- let { t: a2 } = vo(), o2 = tu(), s2 = (0, import_react.useMemo)(() => iu(a2, o2), [a2, o2]), c2 = Vl(e6.fetchedAt), l2 = lu(), { isLiked: d2, likeCount: f2, isLikeCountLoaded: p2, viewCount: m2, commentCount: h2, toggleLike: g2, liveLikes: _2 } = eu(e6.post?._id ?? void 0, e6.metrics?.likes ?? 0, r2, n2), v2 = zl($n), y2 = zl(`tag`), b2 = (0, import_react.useMemo)(() => Ol(e6.post), [e6]), x2 = nu(), S2 = (0, import_react.useMemo)(() => e6.post?.richContent && e6.paywall ? Zc(e6.post.richContent, e6.paywall, x2) : void 0, [e6, x2]);
4589
+ var Zu = 1;
4590
+ var Qu = { views: 120, comments: 4, likes: 12 };
4591
+ var $u = (e6) => ({ nodes: [{ type: `PARAGRAPH`, nodes: [{ type: `TEXT`, nodes: [], textData: { text: e6, decorations: [] } }] }] });
4592
+ var ed = (e6, t2, n2, r2) => $(e6 === void 0 ? n2 ? r2(t2) : `` : r2(e6));
4593
+ var td = (e6, t2, n2) => e6 ?? (n2 ? t2 : void 0);
4594
+ var nd = { nodes: [] };
4595
+ var rd = () => ({ title: $(``), excerpt: $(``), coverImage: void 0, coverMedia: void 0, richContent: nd, authorName: $(``), authorImage: void 0, timeToRead: $(``), publishedDate: $(``), viewCount: $(``), commentCount: $(``), likeCount: $(``), postCategories: [], itemCategoryLabel: $(``), postTags: [], hasCoverImage: false, hasExcerpt: false, hasTags: false, publishedDateValue: void 0, minutesToReadValue: void 0, viewCountValue: void 0, commentCountValue: void 0 });
4596
+ var id = ({ post: e6, author: t2, metrics: n2, categories: r2, tags: i2, videoSources: a2 }, o2, s2, c2 = false, l2 = Date.now(), u2 = {}) => !e6 && !c2 ? rd() : { title: $(e6?.title ?? o2.canvas.postTitle()), excerpt: $(e6?.excerpt ?? o2.canvas.excerpt()), coverImage: Vu(e6), coverMedia: Bu(e6, a2), richContent: e6?.richContent ?? $u(o2.canvas.content()), authorName: $(t2?.profile?.nickname ?? o2.canvas.authorName()), authorImage: Cu(t2, o2.canvas.authorPhotoAlt()), timeToRead: $(typeof e6?.minutesToRead == `number` && e6.minutesToRead > 0 ? o2.timeToRead(e6.minutesToRead) : c2 ? o2.timeToRead(Zu) : ``), publishedDate: $(bu(e6?.firstPublishedDate ?? new Date(l2), s2, l2)), viewCount: ed(n2?.views, Qu.views, c2, o2.viewCount), commentCount: ed(n2?.comments, Qu.comments, c2, o2.commentCount), likeCount: ed(n2?.likes, Qu.likes, c2, o2.likeCount), postCategories: r2.length === 0 && c2 ? qu(o2) : r2.map((e7) => Gu(e7, u2.category)), itemCategoryLabel: $(r2[0]?.label ?? (c2 ? o2.canvas.category() : ``)), postTags: i2.length === 0 && c2 ? Xu(o2) : i2.map((e7) => Ju(e7, u2.tag)), hasCoverImage: !e6 || e6.media?.displayed !== false && Vu(e6) !== void 0, hasExcerpt: !e6 || !!e6.excerpt?.trim(), hasTags: !e6 || i2.length > 0, publishedDateValue: fu(e6?.firstPublishedDate) ?? (c2 ? `2026-05-12T12:00:00.000Z` : void 0), minutesToReadValue: pu(e6?.minutesToRead) ?? (c2 ? Zu : void 0), viewCountValue: td(n2?.views, Qu.views, c2), commentCountValue: td(n2?.comments, Qu.comments, c2) };
4597
+ var ad = ({ postWithAuthor: e6, hasError: t2, monitoringClient: n2, isPostInPreview: r2, postPageBase: i2 }) => {
4598
+ let { t: a2 } = yo(), o2 = nu(), s2 = (0, import_react.useMemo)(() => au(a2, o2), [a2, o2]), c2 = Hl(e6.fetchedAt), l2 = uu(), { isLiked: d2, likeCount: f2, isLikeCountLoaded: p2, viewCount: m2, commentCount: h2, toggleLike: g2, liveLikes: _2 } = tu(e6.post?._id ?? void 0, e6.metrics?.likes ?? 0, r2, n2), v2 = Bl(er), y2 = Bl(`tag`), b2 = (0, import_react.useMemo)(() => kl(e6.post), [e6]), x2 = ru(), S2 = (0, import_react.useMemo)(() => e6.post?.richContent && e6.paywall ? Qc(e6.post.richContent, e6.paywall, x2) : void 0, [e6, x2]);
4571
4599
  return (0, import_react.useMemo)(() => {
4572
- let n3 = rd(!e6.post && l2 && e6.demoPost ? { ...e6, post: e6.demoPost } : e6, s2, o2, l2, c2, { category: v2, tag: y2 }), a3 = r2 || !e6.post ? void 0 : cr(e6.post, i2), u2 = a3 ?? (l2 ? uu(i2) : void 0);
4600
+ let n3 = id(!e6.post && l2 && e6.demoPost ? { ...e6, post: e6.demoPost } : e6, s2, o2, l2, c2, { category: v2, tag: y2 }), a3 = r2 || !e6.post ? void 0 : lr(e6.post, i2), u2 = a3 ?? (l2 ? du(i2) : void 0);
4573
4601
  return { ...n3, ...S2 && { richContent: S2 }, relatedPostsSource: b2, commentingEnabled: e6.post?.commentingEnabled ?? void 0, viewCountValue: m2 ?? n3.viewCountValue, commentCountValue: h2 ?? n3.commentCountValue, itemLink: u2, postUrl: a3?.href, ...e6.post && (e6.metrics?.likes !== void 0 || p2) ? { likeCount: $(s2.likeCount(f2)) } : {}, isLiked: d2, likeCountValue: f2, isLikeCountLoaded: p2, toggleLike: g2, liveLikes: _2, clockValue: c2, isLoadingPost: false, hasError: t2, isEmpty: !e6.post && !l2 };
4574
4602
  }, [e6, t2, b2, S2, s2, o2, c2, f2, d2, p2, m2, h2, g2, _2, l2, r2, i2, v2, y2]);
4575
4603
  };
4576
- var ad = (e6) => ({ post: e6, hasError: false });
4577
- var od = () => ({ post: { post: void 0, author: void 0, metrics: void 0, categories: [], tags: [], fetchedAt: Date.now() }, hasError: true });
4578
- var sd = (e6) => {
4604
+ var od = (e6) => ({ post: e6, hasError: false });
4605
+ var sd = () => ({ post: { post: void 0, author: void 0, metrics: void 0, categories: [], tags: [], fetchedAt: Date.now() }, hasError: true });
4606
+ var cd = (e6) => {
4579
4607
  throw e6;
4580
4608
  };
4581
- var cd = { ...nd(), isLiked: false, likeCountValue: 0, isLikeCountLoaded: false, toggleLike: async () => {
4609
+ var ld = { ...rd(), isLiked: false, likeCountValue: 0, isLikeCountLoaded: false, toggleLike: async () => {
4582
4610
  }, liveLikes: void 0, postUrl: void 0, itemLink: void 0, clockValue: 0, relatedPostsSource: { currentPostId: void 0, categoryIds: void 0, relatedPostIds: void 0 }, commentingEnabled: void 0, isLoadingPost: true, hasError: false, isEmpty: false };
4583
- var ld = { ...cd, isLoadingPost: false, hasError: true, isEmpty: true };
4584
- var ud = 2500;
4585
- var dd = Promise.resolve(ad({ post: void 0, author: void 0, metrics: void 0, categories: [], tags: [], fetchedAt: 0 }));
4586
- var fd = ({ children: t2, postId: n2, postLoadPromise: r2, monitoringClient: i2 }) => {
4587
- let { post: a2, hasError: o2 } = Bn(r2), c2 = Yn(a2, (0, import_react.useCallback)(() => n2 ? Tl(n2) : Promise.resolve(void 0), [n2])), l2 = id({ postWithAuthor: c2, hasError: o2, monitoringClient: i2, isPostInPreview: false, postPageBase: ur() });
4588
- return pr(dr.postByIdProvider, o2 ? `error` : c2.post ? `data` : `empty`), (0, import_jsx_runtime.jsx)(import_post_context_provider.default, { value: l2, children: t2 });
4589
- };
4590
- function pd({ children: t2, postPicker: n2 }) {
4591
- let i2 = Rl(n2), a2 = Wn(), o2 = hr(), s2 = (0, import_react.useMemo)(() => Al(Rn), []), { i18n: c2, locale: l2 } = Wo(Qo), d2 = Kn(() => i2 ? Hn(jo({ key: `blog-builder:post-by-id:${i2}`, warmupData: o2, fetchData: () => {
4592
- let e6 = El(i2, a2);
4593
- return Fl(Nl(s2, `post-by-id-read`, { feature: kl.post }, a2 ? dl(e6, ud, `post-by-id`) : e6));
4594
- } }), ad, a2 ? sd : od) : dd, [i2, a2, o2, s2]);
4595
- return (0, import_jsx_runtime.jsx)(yo, { i18n: c2, children: (0, import_jsx_runtime.jsxs)(import_react.Suspense, { fallback: (0, import_jsx_runtime.jsx)(import_post_context_provider.default, { value: cd, children: t2 }), children: [(0, import_jsx_runtime.jsx)(Uo, { i18n: c2, locale: l2 }), (0, import_jsx_runtime.jsx)(Pl, { fallback: (0, import_jsx_runtime.jsx)(import_post_context_provider.default, { value: ld, children: t2 }), feature: kl.post, monitoringClient: s2, rethrow: a2, children: (0, import_jsx_runtime.jsx)(fd, { postId: i2, postLoadPromise: d2, monitoringClient: s2, children: t2 }, i2 ?? ``) })] }) });
4596
- }
4597
- var md = jn(`474ee948-702b-4c0f-970e-b5319eff6d8b`);
4611
+ var ud = { ...ld, isLoadingPost: false, hasError: true, isEmpty: true };
4612
+ var dd = 2500;
4613
+ var fd = Promise.resolve(od({ post: void 0, author: void 0, metrics: void 0, categories: [], tags: [], fetchedAt: 0 }));
4614
+ var pd = ({ children: t2, postId: n2, postLoadPromise: r2, monitoringClient: i2 }) => {
4615
+ let { post: a2, hasError: o2 } = Vn(r2), c2 = Xn(a2, (0, import_react.useCallback)(() => n2 ? El(n2) : Promise.resolve(void 0), [n2])), l2 = ad({ postWithAuthor: c2, hasError: o2, monitoringClient: i2, isPostInPreview: false, postPageBase: dr() });
4616
+ return mr(fr.postByIdProvider, o2 ? `error` : c2.post ? `data` : `empty`), (0, import_jsx_runtime.jsx)(import_post_context_provider.default, { value: l2, children: t2 });
4617
+ };
4618
+ function md({ children: t2, postPicker: n2 }) {
4619
+ let i2 = zl(n2), a2 = Gn(), o2 = gr(), s2 = (0, import_react.useMemo)(() => jl(zn), []), { i18n: c2, locale: l2 } = Go($o), d2 = qn(() => i2 ? Un(Mo({ key: `blog-builder:post-by-id:${i2}`, warmupData: o2, fetchData: () => {
4620
+ let e6 = Dl(i2, a2);
4621
+ return Il(Pl(s2, `post-by-id-read`, { feature: Al.post }, a2 ? fl(e6, dd, `post-by-id`) : e6));
4622
+ } }), od, a2 ? cd : sd) : fd, [i2, a2, o2, s2]);
4623
+ return (0, import_jsx_runtime.jsx)(bo, { i18n: c2, children: (0, import_jsx_runtime.jsxs)(import_react.Suspense, { fallback: (0, import_jsx_runtime.jsx)(import_post_context_provider.default, { value: ld, children: t2 }), children: [(0, import_jsx_runtime.jsx)(Wo, { i18n: c2, locale: l2 }), (0, import_jsx_runtime.jsx)(Fl, { fallback: (0, import_jsx_runtime.jsx)(import_post_context_provider.default, { value: ud, children: t2 }), feature: Al.post, monitoringClient: s2, rethrow: a2, children: (0, import_jsx_runtime.jsx)(pd, { postId: i2, postLoadPromise: d2, monitoringClient: s2, children: t2 }, i2 ?? ``) })] }) });
4624
+ }
4625
+ var hd = Mn(`474ee948-702b-4c0f-970e-b5319eff6d8b`);
4598
4626
  // Annotate the CommonJS export names for ESM import in node:
4599
4627
  0 && (module.exports = {
4600
4628
  PostByIdProvider,