sass-template-common 0.9.186-debugAudit.1 → 0.9.189
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sass-template-common.js +515 -489
- package/dist/sass-template-common.umd.cjs +28 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n, jsxs as p, Fragment as ee } from "react/jsx-runtime";
|
|
2
2
|
import * as cn from "react";
|
|
3
3
|
import he, { useState as Y, useRef as sr, useCallback as me, useEffect as Oe, createElement as Ge, forwardRef as na, Fragment as Es, useMemo as bt, Component as nr } from "react";
|
|
4
|
-
let
|
|
4
|
+
let xs = {
|
|
5
5
|
PUBLIC_API_HOST: "",
|
|
6
6
|
PUBLIC_API_FRONT: "",
|
|
7
7
|
PUBLIC_API_PATH: "",
|
|
@@ -73,10 +73,10 @@ let Ts = {
|
|
|
73
73
|
MULTIPUBLICATION_FETCHES: void 0
|
|
74
74
|
};
|
|
75
75
|
function Mu(e = {}) {
|
|
76
|
-
|
|
76
|
+
xs = { ...xs, ...e };
|
|
77
77
|
}
|
|
78
78
|
function _() {
|
|
79
|
-
return
|
|
79
|
+
return xs;
|
|
80
80
|
}
|
|
81
81
|
const ar = () => {
|
|
82
82
|
const { ANALYTICS_comscore: e } = _();
|
|
@@ -186,104 +186,104 @@ function aa() {
|
|
|
186
186
|
e.exports = a();
|
|
187
187
|
})(cr, (function() {
|
|
188
188
|
var s = 1e3, a = 6e4, r = 36e5, o = "millisecond", i = "second", l = "minute", d = "hour", c = "day", u = "week", h = "month", m = "quarter", f = "year", w = "date", g = "Invalid Date", A = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, v = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(O) {
|
|
189
|
-
var U = ["th", "st", "nd", "rd"],
|
|
190
|
-
return "[" + O + (U[(
|
|
191
|
-
} }, E = function(O, U,
|
|
189
|
+
var U = ["th", "st", "nd", "rd"], R = O % 100;
|
|
190
|
+
return "[" + O + (U[(R - 20) % 10] || U[R] || U[0]) + "]";
|
|
191
|
+
} }, E = function(O, U, R) {
|
|
192
192
|
var G = String(O);
|
|
193
|
-
return !G || G.length >= U ? O : "" + Array(U + 1 - G.length).join(
|
|
193
|
+
return !G || G.length >= U ? O : "" + Array(U + 1 - G.length).join(R) + O;
|
|
194
194
|
}, S = { s: E, z: function(O) {
|
|
195
|
-
var U = -O.utcOffset(),
|
|
195
|
+
var U = -O.utcOffset(), R = Math.abs(U), G = Math.floor(R / 60), j = R % 60;
|
|
196
196
|
return (U <= 0 ? "+" : "-") + E(G, 2, "0") + ":" + E(j, 2, "0");
|
|
197
|
-
}, m: function O(U,
|
|
198
|
-
if (U.date() <
|
|
199
|
-
var G = 12 * (
|
|
200
|
-
return +(-(G + (
|
|
197
|
+
}, m: function O(U, R) {
|
|
198
|
+
if (U.date() < R.date()) return -O(R, U);
|
|
199
|
+
var G = 12 * (R.year() - U.year()) + (R.month() - U.month()), j = U.clone().add(G, h), X = R - j < 0, C = U.clone().add(G + (X ? -1 : 1), h);
|
|
200
|
+
return +(-(G + (R - j) / (X ? j - C : C - j)) || 0);
|
|
201
201
|
}, a: function(O) {
|
|
202
202
|
return O < 0 ? Math.ceil(O) || 0 : Math.floor(O);
|
|
203
203
|
}, p: function(O) {
|
|
204
204
|
return { M: h, y: f, w: u, d: c, D: w, h: d, m: l, s: i, ms: o, Q: m }[O] || String(O || "").toLowerCase().replace(/s$/, "");
|
|
205
205
|
}, u: function(O) {
|
|
206
206
|
return O === void 0;
|
|
207
|
-
} }, y = "en",
|
|
208
|
-
|
|
207
|
+
} }, y = "en", x = {};
|
|
208
|
+
x[y] = v;
|
|
209
209
|
var I = "$isDayjsObject", P = function(O) {
|
|
210
210
|
return O instanceof F || !(!O || !O[I]);
|
|
211
|
-
}, $ = function O(U,
|
|
211
|
+
}, $ = function O(U, R, G) {
|
|
212
212
|
var j;
|
|
213
213
|
if (!U) return y;
|
|
214
214
|
if (typeof U == "string") {
|
|
215
215
|
var X = U.toLowerCase();
|
|
216
|
-
|
|
216
|
+
x[X] && (j = X), R && (x[X] = R, j = X);
|
|
217
217
|
var C = U.split("-");
|
|
218
218
|
if (!j && C.length > 1) return O(C[0]);
|
|
219
219
|
} else {
|
|
220
|
-
var
|
|
221
|
-
T
|
|
220
|
+
var T = U.name;
|
|
221
|
+
x[T] = U, j = T;
|
|
222
222
|
}
|
|
223
223
|
return !G && j && (y = j), j || !G && y;
|
|
224
224
|
}, q = function(O, U) {
|
|
225
225
|
if (P(O)) return O.clone();
|
|
226
|
-
var
|
|
227
|
-
return
|
|
228
|
-
},
|
|
229
|
-
|
|
226
|
+
var R = typeof U == "object" ? U : {};
|
|
227
|
+
return R.date = O, R.args = arguments, new F(R);
|
|
228
|
+
}, k = S;
|
|
229
|
+
k.l = $, k.i = P, k.w = function(O, U) {
|
|
230
230
|
return q(O, { locale: U.$L, utc: U.$u, x: U.$x, $offset: U.$offset });
|
|
231
231
|
};
|
|
232
232
|
var F = (function() {
|
|
233
|
-
function O(
|
|
234
|
-
this.$L = $(
|
|
233
|
+
function O(R) {
|
|
234
|
+
this.$L = $(R.locale, null, !0), this.parse(R), this.$x = this.$x || R.x || {}, this[I] = !0;
|
|
235
235
|
}
|
|
236
236
|
var U = O.prototype;
|
|
237
|
-
return U.parse = function(
|
|
237
|
+
return U.parse = function(R) {
|
|
238
238
|
this.$d = (function(G) {
|
|
239
239
|
var j = G.date, X = G.utc;
|
|
240
240
|
if (j === null) return /* @__PURE__ */ new Date(NaN);
|
|
241
|
-
if (
|
|
241
|
+
if (k.u(j)) return /* @__PURE__ */ new Date();
|
|
242
242
|
if (j instanceof Date) return new Date(j);
|
|
243
243
|
if (typeof j == "string" && !/Z$/i.test(j)) {
|
|
244
244
|
var C = j.match(A);
|
|
245
245
|
if (C) {
|
|
246
|
-
var
|
|
247
|
-
return X ? new Date(Date.UTC(C[1],
|
|
246
|
+
var T = C[2] - 1 || 0, D = (C[7] || "0").substring(0, 3);
|
|
247
|
+
return X ? new Date(Date.UTC(C[1], T, C[3] || 1, C[4] || 0, C[5] || 0, C[6] || 0, D)) : new Date(C[1], T, C[3] || 1, C[4] || 0, C[5] || 0, C[6] || 0, D);
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
return new Date(j);
|
|
251
|
-
})(
|
|
251
|
+
})(R), this.init();
|
|
252
252
|
}, U.init = function() {
|
|
253
|
-
var
|
|
254
|
-
this.$y =
|
|
253
|
+
var R = this.$d;
|
|
254
|
+
this.$y = R.getFullYear(), this.$M = R.getMonth(), this.$D = R.getDate(), this.$W = R.getDay(), this.$H = R.getHours(), this.$m = R.getMinutes(), this.$s = R.getSeconds(), this.$ms = R.getMilliseconds();
|
|
255
255
|
}, U.$utils = function() {
|
|
256
|
-
return
|
|
256
|
+
return k;
|
|
257
257
|
}, U.isValid = function() {
|
|
258
258
|
return this.$d.toString() !== g;
|
|
259
|
-
}, U.isSame = function(
|
|
260
|
-
var j = q(
|
|
259
|
+
}, U.isSame = function(R, G) {
|
|
260
|
+
var j = q(R);
|
|
261
261
|
return this.startOf(G) <= j && j <= this.endOf(G);
|
|
262
|
-
}, U.isAfter = function(
|
|
263
|
-
return q(
|
|
264
|
-
}, U.isBefore = function(
|
|
265
|
-
return this.endOf(G) < q(
|
|
266
|
-
}, U.$g = function(
|
|
267
|
-
return
|
|
262
|
+
}, U.isAfter = function(R, G) {
|
|
263
|
+
return q(R) < this.startOf(G);
|
|
264
|
+
}, U.isBefore = function(R, G) {
|
|
265
|
+
return this.endOf(G) < q(R);
|
|
266
|
+
}, U.$g = function(R, G, j) {
|
|
267
|
+
return k.u(R) ? this[G] : this.set(j, R);
|
|
268
268
|
}, U.unix = function() {
|
|
269
269
|
return Math.floor(this.valueOf() / 1e3);
|
|
270
270
|
}, U.valueOf = function() {
|
|
271
271
|
return this.$d.getTime();
|
|
272
|
-
}, U.startOf = function(
|
|
273
|
-
var j = this, X = !!
|
|
274
|
-
var Q =
|
|
272
|
+
}, U.startOf = function(R, G) {
|
|
273
|
+
var j = this, X = !!k.u(G) || G, C = k.p(R), T = function(ae, W) {
|
|
274
|
+
var Q = k.w(j.$u ? Date.UTC(j.$y, W, ae) : new Date(j.$y, W, ae), j);
|
|
275
275
|
return X ? Q : Q.endOf(c);
|
|
276
276
|
}, D = function(ae, W) {
|
|
277
|
-
return
|
|
277
|
+
return k.w(j.toDate()[ae].apply(j.toDate("s"), (X ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(W)), j);
|
|
278
278
|
}, H = this.$W, L = this.$M, z = this.$D, J = "set" + (this.$u ? "UTC" : "");
|
|
279
279
|
switch (C) {
|
|
280
280
|
case f:
|
|
281
|
-
return X ?
|
|
281
|
+
return X ? T(1, 0) : T(31, 11);
|
|
282
282
|
case h:
|
|
283
|
-
return X ?
|
|
283
|
+
return X ? T(1, L) : T(0, L + 1);
|
|
284
284
|
case u:
|
|
285
285
|
var Z = this.$locale().weekStart || 0, te = (H < Z ? H + 7 : H) - Z;
|
|
286
|
-
return
|
|
286
|
+
return T(X ? z - te : z + (6 - te), L);
|
|
287
287
|
case c:
|
|
288
288
|
case w:
|
|
289
289
|
return D(J + "Hours", 0);
|
|
@@ -296,41 +296,41 @@ function aa() {
|
|
|
296
296
|
default:
|
|
297
297
|
return this.clone();
|
|
298
298
|
}
|
|
299
|
-
}, U.endOf = function(
|
|
300
|
-
return this.startOf(
|
|
301
|
-
}, U.$set = function(
|
|
302
|
-
var j, X =
|
|
299
|
+
}, U.endOf = function(R) {
|
|
300
|
+
return this.startOf(R, !1);
|
|
301
|
+
}, U.$set = function(R, G) {
|
|
302
|
+
var j, X = k.p(R), C = "set" + (this.$u ? "UTC" : ""), T = (j = {}, j[c] = C + "Date", j[w] = C + "Date", j[h] = C + "Month", j[f] = C + "FullYear", j[d] = C + "Hours", j[l] = C + "Minutes", j[i] = C + "Seconds", j[o] = C + "Milliseconds", j)[X], D = X === c ? this.$D + (G - this.$W) : G;
|
|
303
303
|
if (X === h || X === f) {
|
|
304
304
|
var H = this.clone().set(w, 1);
|
|
305
|
-
H.$d[
|
|
306
|
-
} else
|
|
305
|
+
H.$d[T](D), H.init(), this.$d = H.set(w, Math.min(this.$D, H.daysInMonth())).$d;
|
|
306
|
+
} else T && this.$d[T](D);
|
|
307
307
|
return this.init(), this;
|
|
308
|
-
}, U.set = function(
|
|
309
|
-
return this.clone().$set(
|
|
310
|
-
}, U.get = function(
|
|
311
|
-
return this[
|
|
312
|
-
}, U.add = function(
|
|
308
|
+
}, U.set = function(R, G) {
|
|
309
|
+
return this.clone().$set(R, G);
|
|
310
|
+
}, U.get = function(R) {
|
|
311
|
+
return this[k.p(R)]();
|
|
312
|
+
}, U.add = function(R, G) {
|
|
313
313
|
var j, X = this;
|
|
314
|
-
|
|
315
|
-
var C =
|
|
314
|
+
R = Number(R);
|
|
315
|
+
var C = k.p(G), T = function(L) {
|
|
316
316
|
var z = q(X);
|
|
317
|
-
return
|
|
317
|
+
return k.w(z.date(z.date() + Math.round(L * R)), X);
|
|
318
318
|
};
|
|
319
|
-
if (C === h) return this.set(h, this.$M +
|
|
320
|
-
if (C === f) return this.set(f, this.$y +
|
|
321
|
-
if (C === c) return
|
|
322
|
-
if (C === u) return
|
|
323
|
-
var D = (j = {}, j[l] = a, j[d] = r, j[i] = s, j)[C] || 1, H = this.$d.getTime() +
|
|
324
|
-
return
|
|
325
|
-
}, U.subtract = function(
|
|
326
|
-
return this.add(-1 *
|
|
327
|
-
}, U.format = function(
|
|
319
|
+
if (C === h) return this.set(h, this.$M + R);
|
|
320
|
+
if (C === f) return this.set(f, this.$y + R);
|
|
321
|
+
if (C === c) return T(1);
|
|
322
|
+
if (C === u) return T(7);
|
|
323
|
+
var D = (j = {}, j[l] = a, j[d] = r, j[i] = s, j)[C] || 1, H = this.$d.getTime() + R * D;
|
|
324
|
+
return k.w(H, this);
|
|
325
|
+
}, U.subtract = function(R, G) {
|
|
326
|
+
return this.add(-1 * R, G);
|
|
327
|
+
}, U.format = function(R) {
|
|
328
328
|
var G = this, j = this.$locale();
|
|
329
329
|
if (!this.isValid()) return j.invalidDate || g;
|
|
330
|
-
var X =
|
|
330
|
+
var X = R || "YYYY-MM-DDTHH:mm:ssZ", C = k.z(this), T = this.$H, D = this.$m, H = this.$M, L = j.weekdays, z = j.months, J = j.meridiem, Z = function(W, Q, B, ue) {
|
|
331
331
|
return W && (W[Q] || W(G, X)) || B[Q].slice(0, ue);
|
|
332
332
|
}, te = function(W) {
|
|
333
|
-
return
|
|
333
|
+
return k.s(T % 12 || 12, W, "0");
|
|
334
334
|
}, ae = J || function(W, Q, B) {
|
|
335
335
|
var ue = W < 12 ? "AM" : "PM";
|
|
336
336
|
return B ? ue.toLowerCase() : ue;
|
|
@@ -341,11 +341,11 @@ function aa() {
|
|
|
341
341
|
case "YY":
|
|
342
342
|
return String(G.$y).slice(-2);
|
|
343
343
|
case "YYYY":
|
|
344
|
-
return
|
|
344
|
+
return k.s(G.$y, 4, "0");
|
|
345
345
|
case "M":
|
|
346
346
|
return H + 1;
|
|
347
347
|
case "MM":
|
|
348
|
-
return
|
|
348
|
+
return k.s(H + 1, 2, "0");
|
|
349
349
|
case "MMM":
|
|
350
350
|
return Z(j.monthsShort, H, z, 3);
|
|
351
351
|
case "MMMM":
|
|
@@ -353,7 +353,7 @@ function aa() {
|
|
|
353
353
|
case "D":
|
|
354
354
|
return G.$D;
|
|
355
355
|
case "DD":
|
|
356
|
-
return
|
|
356
|
+
return k.s(G.$D, 2, "0");
|
|
357
357
|
case "d":
|
|
358
358
|
return String(G.$W);
|
|
359
359
|
case "dd":
|
|
@@ -363,27 +363,27 @@ function aa() {
|
|
|
363
363
|
case "dddd":
|
|
364
364
|
return L[G.$W];
|
|
365
365
|
case "H":
|
|
366
|
-
return String(
|
|
366
|
+
return String(T);
|
|
367
367
|
case "HH":
|
|
368
|
-
return
|
|
368
|
+
return k.s(T, 2, "0");
|
|
369
369
|
case "h":
|
|
370
370
|
return te(1);
|
|
371
371
|
case "hh":
|
|
372
372
|
return te(2);
|
|
373
373
|
case "a":
|
|
374
|
-
return ae(
|
|
374
|
+
return ae(T, D, !0);
|
|
375
375
|
case "A":
|
|
376
|
-
return ae(
|
|
376
|
+
return ae(T, D, !1);
|
|
377
377
|
case "m":
|
|
378
378
|
return String(D);
|
|
379
379
|
case "mm":
|
|
380
|
-
return
|
|
380
|
+
return k.s(D, 2, "0");
|
|
381
381
|
case "s":
|
|
382
382
|
return String(G.$s);
|
|
383
383
|
case "ss":
|
|
384
|
-
return
|
|
384
|
+
return k.s(G.$s, 2, "0");
|
|
385
385
|
case "SSS":
|
|
386
|
-
return
|
|
386
|
+
return k.s(G.$ms, 3, "0");
|
|
387
387
|
case "Z":
|
|
388
388
|
return C;
|
|
389
389
|
}
|
|
@@ -392,11 +392,11 @@ function aa() {
|
|
|
392
392
|
}));
|
|
393
393
|
}, U.utcOffset = function() {
|
|
394
394
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
395
|
-
}, U.diff = function(
|
|
396
|
-
var X, C = this,
|
|
397
|
-
return
|
|
395
|
+
}, U.diff = function(R, G, j) {
|
|
396
|
+
var X, C = this, T = k.p(G), D = q(R), H = (D.utcOffset() - this.utcOffset()) * a, L = this - D, z = function() {
|
|
397
|
+
return k.m(C, D);
|
|
398
398
|
};
|
|
399
|
-
switch (
|
|
399
|
+
switch (T) {
|
|
400
400
|
case f:
|
|
401
401
|
X = z() / 12;
|
|
402
402
|
break;
|
|
@@ -424,17 +424,17 @@ function aa() {
|
|
|
424
424
|
default:
|
|
425
425
|
X = L;
|
|
426
426
|
}
|
|
427
|
-
return j ? X :
|
|
427
|
+
return j ? X : k.a(X);
|
|
428
428
|
}, U.daysInMonth = function() {
|
|
429
429
|
return this.endOf(h).$D;
|
|
430
430
|
}, U.$locale = function() {
|
|
431
|
-
return
|
|
432
|
-
}, U.locale = function(
|
|
433
|
-
if (!
|
|
434
|
-
var j = this.clone(), X = $(
|
|
431
|
+
return x[this.$L];
|
|
432
|
+
}, U.locale = function(R, G) {
|
|
433
|
+
if (!R) return this.$L;
|
|
434
|
+
var j = this.clone(), X = $(R, G, !0);
|
|
435
435
|
return X && (j.$L = X), j;
|
|
436
436
|
}, U.clone = function() {
|
|
437
|
-
return
|
|
437
|
+
return k.w(this.$d, this);
|
|
438
438
|
}, U.toDate = function() {
|
|
439
439
|
return new Date(this.valueOf());
|
|
440
440
|
}, U.toJSON = function() {
|
|
@@ -453,7 +453,7 @@ function aa() {
|
|
|
453
453
|
return O.$i || (O(U, F, q), O.$i = !0), q;
|
|
454
454
|
}, q.locale = $, q.isDayjs = P, q.unix = function(O) {
|
|
455
455
|
return q(1e3 * O);
|
|
456
|
-
}, q.en =
|
|
456
|
+
}, q.en = x[y], q.Ls = x, q.p = {}, q;
|
|
457
457
|
}));
|
|
458
458
|
})(Pt)), Pt.exports;
|
|
459
459
|
}
|
|
@@ -475,11 +475,11 @@ function mr() {
|
|
|
475
475
|
for (var w, g, A, b = h.$locale().relativeTime || i, v = s.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], E = v.length, S = 0; S < E; S += 1) {
|
|
476
476
|
var y = v[S];
|
|
477
477
|
y.d && (w = m ? r(c).diff(h, y.d, !0) : h.diff(c, y.d, !0));
|
|
478
|
-
var
|
|
479
|
-
if (A = w > 0,
|
|
480
|
-
|
|
478
|
+
var x = (s.rounding || Math.round)(Math.abs(w));
|
|
479
|
+
if (A = w > 0, x <= y.r || !y.r) {
|
|
480
|
+
x <= 1 && S > 0 && (y = v[S - 1]);
|
|
481
481
|
var I = b[y.l];
|
|
482
|
-
f && (
|
|
482
|
+
f && (x = f("" + x)), g = typeof I == "string" ? I.replace("%d", x) : I(x, u, y.l, A);
|
|
483
483
|
break;
|
|
484
484
|
}
|
|
485
485
|
}
|
|
@@ -557,9 +557,9 @@ function Ar() {
|
|
|
557
557
|
if (b(g)) return this.$u ? 0 : b(this.$offset) ? h.call(this) : this.$offset;
|
|
558
558
|
if (typeof g == "string" && (g = (function(y) {
|
|
559
559
|
y === void 0 && (y = "");
|
|
560
|
-
var
|
|
561
|
-
if (!
|
|
562
|
-
var I = ("" +
|
|
560
|
+
var x = y.match(a);
|
|
561
|
+
if (!x) return null;
|
|
562
|
+
var I = ("" + x[0]).match(r) || ["-", 0, 0], P = I[0], $ = 60 * +I[1] + +I[2];
|
|
563
563
|
return $ === 0 ? 0 : P === "+" ? $ : -$;
|
|
564
564
|
})(g), g === null)) return this;
|
|
565
565
|
var v = Math.abs(g) <= 16 ? 60 * g : g;
|
|
@@ -620,7 +620,7 @@ function Cr() {
|
|
|
620
620
|
var b = w[A], v = b.type, E = b.value, S = s[v];
|
|
621
621
|
S >= 0 && (g[S] = parseInt(E, 10));
|
|
622
622
|
}
|
|
623
|
-
var y = g[3],
|
|
623
|
+
var y = g[3], x = y === 24 ? 0 : y, I = g[0] + "-" + g[1] + "-" + g[2] + " " + x + ":" + g[4] + ":" + g[5] + ":000", P = +m;
|
|
624
624
|
return (i.utc(I).valueOf() - (P -= P % 1e3)) / 6e4;
|
|
625
625
|
}, u = o.prototype;
|
|
626
626
|
u.tz = function(m, f) {
|
|
@@ -646,11 +646,11 @@ function Cr() {
|
|
|
646
646
|
}, i.tz = function(m, f, w) {
|
|
647
647
|
var g = w && f, A = w || f || l, b = c(+i(), A);
|
|
648
648
|
if (typeof m != "string") return i(m).tz(A);
|
|
649
|
-
var v = (function(
|
|
650
|
-
var $ =
|
|
649
|
+
var v = (function(x, I, P) {
|
|
650
|
+
var $ = x - 60 * I * 1e3, q = c($, P);
|
|
651
651
|
if (I === q) return [$, I];
|
|
652
|
-
var
|
|
653
|
-
return q ===
|
|
652
|
+
var k = c($ -= 60 * (q - I) * 1e3, P);
|
|
653
|
+
return q === k ? [$, q] : [x - 60 * Math.min(q, k) * 1e3, Math.max(q, k)];
|
|
654
654
|
})(i.utc(m, g).valueOf(), b, A), E = v[0], S = v[1], y = i(E).utcOffset(S);
|
|
655
655
|
return y.$x.$timezone = A, y;
|
|
656
656
|
}, i.tz.guess = function() {
|
|
@@ -702,10 +702,10 @@ const zt = (e) => e === "en" ? "en" : "es", Be = (e, t) => {
|
|
|
702
702
|
function st(e) {
|
|
703
703
|
return e && e.status === "fulfilled" ? e.value.data : null;
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function xr(e) {
|
|
706
706
|
return e && e.status === "fulfilled" ? e.value : null;
|
|
707
707
|
}
|
|
708
|
-
const
|
|
708
|
+
const Tr = { url: "", target: "_self", canonical: !1, internal: "" }, Ir = {
|
|
709
709
|
date: "",
|
|
710
710
|
created: 0,
|
|
711
711
|
modified: 0,
|
|
@@ -735,7 +735,7 @@ const yt = (e, t, s, a) => {
|
|
|
735
735
|
},
|
|
736
736
|
info: {
|
|
737
737
|
date: { ...Ir, ...e?.info?.date },
|
|
738
|
-
link: e?.info?.link ??
|
|
738
|
+
link: e?.info?.link ?? Tr
|
|
739
739
|
},
|
|
740
740
|
preview: {
|
|
741
741
|
sizes: e?.main?.image?.sizes ?? [],
|
|
@@ -761,7 +761,7 @@ const yt = (e, t, s, a) => {
|
|
|
761
761
|
}
|
|
762
762
|
};
|
|
763
763
|
}, gn = /<div\b[^>]*class=["'][^"']*\bck-related-news\b[^"']*["'][^>]*>/gi;
|
|
764
|
-
function
|
|
764
|
+
function Ts(e) {
|
|
765
765
|
if (!e?.body?.rendered) return [];
|
|
766
766
|
const t = e.body.rendered, s = [];
|
|
767
767
|
let a = 0;
|
|
@@ -787,7 +787,7 @@ function xs(e) {
|
|
|
787
787
|
}
|
|
788
788
|
return s;
|
|
789
789
|
}
|
|
790
|
-
const qu =
|
|
790
|
+
const qu = Ts, kr = async (e, t) => {
|
|
791
791
|
const s = [];
|
|
792
792
|
return e.forEach((o) => {
|
|
793
793
|
o.forEach((i) => {
|
|
@@ -807,7 +807,7 @@ const qu = xs, Rr = async (e, t) => {
|
|
|
807
807
|
}, ju = () => {
|
|
808
808
|
const { PUBLIC_ENV: e, PUBLIC_API_FRONT: t } = _();
|
|
809
809
|
return e === "local" ? t : "";
|
|
810
|
-
},
|
|
810
|
+
}, Rr = (e) => e.replace(/^https?:?\/\/[^/]+/, ""), Lr = (e) => {
|
|
811
811
|
if (!e?.preview?.length) return null;
|
|
812
812
|
const t = e.preview;
|
|
813
813
|
return t.find((s) => s.format === "1.91:1") ?? t[t.length - 1];
|
|
@@ -1966,25 +1966,25 @@ const ro = async ({
|
|
|
1966
1966
|
if (e.search("/page/") === -1) return e.replace("/", "");
|
|
1967
1967
|
const t = e.split("/"), s = t.indexOf("page") - 1;
|
|
1968
1968
|
return s < 0 ? e : (t[s] ?? "").replace("/", "");
|
|
1969
|
-
},
|
|
1969
|
+
}, xe = (e) => {
|
|
1970
1970
|
const s = e.replace(/^\/|\/$/g, "").split("/"), a = s.indexOf("page");
|
|
1971
1971
|
return a > 0 ? `${s[a - 1] ?? ""}` : `${s[s.length - 1] ?? ""}`;
|
|
1972
1972
|
}, wo = {
|
|
1973
1973
|
404: () => "404",
|
|
1974
1974
|
home: () => "home",
|
|
1975
|
-
slug: (e) =>
|
|
1975
|
+
slug: (e) => xe(e.pathname),
|
|
1976
1976
|
news: (e) => Or(e.pathname)?.slug,
|
|
1977
|
-
seccion: (e) =>
|
|
1978
|
-
tema: (e) =>
|
|
1979
|
-
pages: (e) =>
|
|
1980
|
-
auth: (e) =>
|
|
1981
|
-
buscar: (e) =>
|
|
1982
|
-
"ultimas-noticias": (e) =>
|
|
1983
|
-
anuncia: (e) =>
|
|
1984
|
-
contacto: (e) =>
|
|
1985
|
-
autor: (e) =>
|
|
1986
|
-
video: (e) =>
|
|
1987
|
-
videos: (e) =>
|
|
1977
|
+
seccion: (e) => xe(e.pathname),
|
|
1978
|
+
tema: (e) => xe(e.pathname),
|
|
1979
|
+
pages: (e) => xe(e.pathname),
|
|
1980
|
+
auth: (e) => xe(e.pathname),
|
|
1981
|
+
buscar: (e) => xe(e.pathname),
|
|
1982
|
+
"ultimas-noticias": (e) => xe(e.pathname),
|
|
1983
|
+
anuncia: (e) => xe(e.pathname),
|
|
1984
|
+
contacto: (e) => xe(e.pathname),
|
|
1985
|
+
autor: (e) => xe(e.pathname),
|
|
1986
|
+
video: (e) => xe(e.pathname),
|
|
1987
|
+
videos: (e) => xe(e.pathname)
|
|
1988
1988
|
}, ht = (e) => {
|
|
1989
1989
|
const t = e.split("/"), s = t[t.length - 1] ?? "1";
|
|
1990
1990
|
return Number(s) > 0 ? Number(s) : 1;
|
|
@@ -2384,7 +2384,7 @@ const Co = Xt("string"), Ne = Xt("function"), fa = Xt("number"), Ct = (e) => e !
|
|
|
2384
2384
|
} catch {
|
|
2385
2385
|
return !1;
|
|
2386
2386
|
}
|
|
2387
|
-
}, Eo = Ie("Date"),
|
|
2387
|
+
}, Eo = Ie("Date"), xo = Ie("File"), To = (e) => !!(e && typeof e.uri < "u"), Io = (e) => e && typeof e.getParts < "u", Uo = Ie("Blob"), ko = Ie("FileList"), Ro = (e) => Ct(e) && Ne(e.pipe);
|
|
2388
2388
|
function Lo() {
|
|
2389
2389
|
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
2390
2390
|
}
|
|
@@ -2596,16 +2596,16 @@ const ai = (e) => {
|
|
|
2596
2596
|
isHeaders: Do,
|
|
2597
2597
|
isUndefined: rt,
|
|
2598
2598
|
isDate: Eo,
|
|
2599
|
-
isFile:
|
|
2600
|
-
isReactNativeBlob:
|
|
2599
|
+
isFile: xo,
|
|
2600
|
+
isReactNativeBlob: To,
|
|
2601
2601
|
isReactNative: Io,
|
|
2602
2602
|
isBlob: Uo,
|
|
2603
2603
|
isRegExp: Zo,
|
|
2604
2604
|
isFunction: Ne,
|
|
2605
|
-
isStream:
|
|
2605
|
+
isStream: Ro,
|
|
2606
2606
|
isURLSearchParams: Oo,
|
|
2607
2607
|
isTypedArray: zo,
|
|
2608
|
-
isFileList:
|
|
2608
|
+
isFileList: ko,
|
|
2609
2609
|
forEach: Nt,
|
|
2610
2610
|
merge: Is,
|
|
2611
2611
|
extend: jo,
|
|
@@ -2977,7 +2977,7 @@ V.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
|
2977
2977
|
V.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
2978
2978
|
V.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
2979
2979
|
const Ni = null;
|
|
2980
|
-
function
|
|
2980
|
+
function ks(e) {
|
|
2981
2981
|
return N.isPlainObject(e) || N.isArray(e);
|
|
2982
2982
|
}
|
|
2983
2983
|
function va(e) {
|
|
@@ -2989,7 +2989,7 @@ function hs(e, t, s) {
|
|
|
2989
2989
|
}).join(s ? "." : "") : t;
|
|
2990
2990
|
}
|
|
2991
2991
|
function Si(e) {
|
|
2992
|
-
return N.isArray(e) && !e.some(
|
|
2992
|
+
return N.isArray(e) && !e.some(ks);
|
|
2993
2993
|
}
|
|
2994
2994
|
const Ei = N.toFlatObject(N, {}, null, function(t) {
|
|
2995
2995
|
return /^is[A-Z]/.test(t);
|
|
@@ -3038,12 +3038,12 @@ function es(e, t, s) {
|
|
|
3038
3038
|
);
|
|
3039
3039
|
}), !1;
|
|
3040
3040
|
}
|
|
3041
|
-
return
|
|
3041
|
+
return ks(g) ? !0 : (t.append(hs(b, A, o), u(g)), !1);
|
|
3042
3042
|
}
|
|
3043
3043
|
const m = [], f = Object.assign(Ei, {
|
|
3044
3044
|
defaultVisitor: h,
|
|
3045
3045
|
convertValue: u,
|
|
3046
|
-
isVisitable:
|
|
3046
|
+
isVisitable: ks
|
|
3047
3047
|
});
|
|
3048
3048
|
function w(g, A, b = 0) {
|
|
3049
3049
|
if (!N.isUndefined(g)) {
|
|
@@ -3091,13 +3091,13 @@ Ca.toString = function(t) {
|
|
|
3091
3091
|
return s(r[0]) + "=" + s(r[1]);
|
|
3092
3092
|
}, "").join("&");
|
|
3093
3093
|
};
|
|
3094
|
-
function
|
|
3094
|
+
function xi(e) {
|
|
3095
3095
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
3096
3096
|
}
|
|
3097
3097
|
function Na(e, t, s) {
|
|
3098
3098
|
if (!t)
|
|
3099
3099
|
return e;
|
|
3100
|
-
const a = s && s.encode ||
|
|
3100
|
+
const a = s && s.encode || xi, r = N.isFunction(s) ? {
|
|
3101
3101
|
serialize: s
|
|
3102
3102
|
} : s, o = r && r.serialize;
|
|
3103
3103
|
let i;
|
|
@@ -3168,25 +3168,25 @@ const Hs = {
|
|
|
3168
3168
|
clarifyTimeoutError: !1,
|
|
3169
3169
|
legacyInterceptorReqResOrdering: !0,
|
|
3170
3170
|
advertiseZstdAcceptEncoding: !1
|
|
3171
|
-
},
|
|
3171
|
+
}, Ti = typeof URLSearchParams < "u" ? URLSearchParams : Fs, Ii = typeof FormData < "u" ? FormData : null, Ui = typeof Blob < "u" ? Blob : null, ki = {
|
|
3172
3172
|
isBrowser: !0,
|
|
3173
3173
|
classes: {
|
|
3174
|
-
URLSearchParams:
|
|
3174
|
+
URLSearchParams: Ti,
|
|
3175
3175
|
FormData: Ii,
|
|
3176
3176
|
Blob: Ui
|
|
3177
3177
|
},
|
|
3178
3178
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
3179
|
-
}, Vs = typeof window < "u" && typeof document < "u",
|
|
3179
|
+
}, Vs = typeof window < "u" && typeof document < "u", Rs = typeof navigator == "object" && navigator || void 0, Ri = Vs && (!Rs || ["ReactNative", "NativeScript", "NS"].indexOf(Rs.product) < 0), Li = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
3180
3180
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Pi = Vs && window.location.href || "http://localhost", Oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3181
3181
|
__proto__: null,
|
|
3182
3182
|
hasBrowserEnv: Vs,
|
|
3183
|
-
hasStandardBrowserEnv:
|
|
3183
|
+
hasStandardBrowserEnv: Ri,
|
|
3184
3184
|
hasStandardBrowserWebWorkerEnv: Li,
|
|
3185
|
-
navigator:
|
|
3185
|
+
navigator: Rs,
|
|
3186
3186
|
origin: Pi
|
|
3187
3187
|
}, Symbol.toStringTag, { value: "Module" })), ge = {
|
|
3188
3188
|
...Oi,
|
|
3189
|
-
...
|
|
3189
|
+
...ki
|
|
3190
3190
|
};
|
|
3191
3191
|
function Bi(e, t) {
|
|
3192
3192
|
return es(e, new ge.classes.URLSearchParams(), {
|
|
@@ -3332,7 +3332,7 @@ let Et = class extends V {
|
|
|
3332
3332
|
super(t ?? "canceled", V.ERR_CANCELED, s, a), this.name = "CanceledError", this.__CANCEL__ = !0;
|
|
3333
3333
|
}
|
|
3334
3334
|
};
|
|
3335
|
-
function
|
|
3335
|
+
function xa(e, t, s) {
|
|
3336
3336
|
const a = s.config.validateStatus;
|
|
3337
3337
|
!s.status || !a || a(s.status) ? e(s) : t(new V(
|
|
3338
3338
|
"Request failed with status code " + s.status,
|
|
@@ -3448,11 +3448,11 @@ function Vi(e) {
|
|
|
3448
3448
|
function Qi(e, t) {
|
|
3449
3449
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
3450
3450
|
}
|
|
3451
|
-
function
|
|
3451
|
+
function Ta(e, t, s) {
|
|
3452
3452
|
let a = !Vi(t);
|
|
3453
3453
|
return e && (a || s === !1) ? Qi(e, t) : t;
|
|
3454
3454
|
}
|
|
3455
|
-
const
|
|
3455
|
+
const xn = (e) => e instanceof Ae ? { ...e } : e;
|
|
3456
3456
|
function Je(e, t) {
|
|
3457
3457
|
t = t || {};
|
|
3458
3458
|
const s = /* @__PURE__ */ Object.create(null);
|
|
@@ -3520,7 +3520,7 @@ function Je(e, t) {
|
|
|
3520
3520
|
allowedSocketPaths: i,
|
|
3521
3521
|
responseEncoding: i,
|
|
3522
3522
|
validateStatus: l,
|
|
3523
|
-
headers: (c, u, h) => r(
|
|
3523
|
+
headers: (c, u, h) => r(xn(c), xn(u), h, !0)
|
|
3524
3524
|
};
|
|
3525
3525
|
return N.forEach(Object.keys({ ...e, ...t }), function(u) {
|
|
3526
3526
|
if (u === "__proto__" || u === "constructor" || u === "prototype") return;
|
|
@@ -3549,7 +3549,7 @@ function Ia(e) {
|
|
|
3549
3549
|
let l = s("headers");
|
|
3550
3550
|
const d = s("auth"), c = s("baseURL"), u = s("allowAbsoluteUrls"), h = s("url");
|
|
3551
3551
|
if (t.headers = l = Ae.from(l), t.url = Na(
|
|
3552
|
-
|
|
3552
|
+
Ta(c, h, u),
|
|
3553
3553
|
s("params"),
|
|
3554
3554
|
s("paramsSerializer")
|
|
3555
3555
|
), d && l.set(
|
|
@@ -3585,7 +3585,7 @@ const $i = typeof XMLHttpRequest < "u", Ki = $i && function(e) {
|
|
|
3585
3585
|
config: e,
|
|
3586
3586
|
request: A
|
|
3587
3587
|
};
|
|
3588
|
-
|
|
3588
|
+
xa(
|
|
3589
3589
|
function(I) {
|
|
3590
3590
|
s(I), g();
|
|
3591
3591
|
},
|
|
@@ -3600,8 +3600,8 @@ const $i = typeof XMLHttpRequest < "u", Ki = $i && function(e) {
|
|
|
3600
3600
|
}, A.onabort = function() {
|
|
3601
3601
|
A && (a(new V("Request aborted", V.ECONNABORTED, e, A)), g(), A = null);
|
|
3602
3602
|
}, A.onerror = function(S) {
|
|
3603
|
-
const y = S && S.message ? S.message : "Network Error",
|
|
3604
|
-
|
|
3603
|
+
const y = S && S.message ? S.message : "Network Error", x = new V(y, V.ERR_NETWORK, e, A);
|
|
3604
|
+
x.event = S || null, a(x), g(), A = null;
|
|
3605
3605
|
}, A.ontimeout = function() {
|
|
3606
3606
|
let S = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
|
3607
3607
|
const y = r.transitional || Hs;
|
|
@@ -3684,7 +3684,7 @@ const $i = typeof XMLHttpRequest < "u", Ki = $i && function(e) {
|
|
|
3684
3684
|
} finally {
|
|
3685
3685
|
await t.cancel();
|
|
3686
3686
|
}
|
|
3687
|
-
},
|
|
3687
|
+
}, Tn = (e, t, s, a) => {
|
|
3688
3688
|
const r = Xi(e, t);
|
|
3689
3689
|
let o = 0, i, l = (d) => {
|
|
3690
3690
|
i || (i = !0, a && a(d));
|
|
@@ -3755,7 +3755,7 @@ function tl(e) {
|
|
|
3755
3755
|
}
|
|
3756
3756
|
return o;
|
|
3757
3757
|
}
|
|
3758
|
-
const Qs = "1.17.0", In = 64 * 1024, { isFunction:
|
|
3758
|
+
const Qs = "1.17.0", In = 64 * 1024, { isFunction: Tt } = N, sl = (e) => encodeURIComponent(e).replace(
|
|
3759
3759
|
/%([0-9A-F]{2})/gi,
|
|
3760
3760
|
(t, s) => String.fromCharCode(parseInt(s, 16))
|
|
3761
3761
|
), Un = (e) => {
|
|
@@ -3766,7 +3766,7 @@ const Qs = "1.17.0", In = 64 * 1024, { isFunction: xt } = N, sl = (e) => encodeU
|
|
|
3766
3766
|
} catch {
|
|
3767
3767
|
return e;
|
|
3768
3768
|
}
|
|
3769
|
-
},
|
|
3769
|
+
}, kn = (e, ...t) => {
|
|
3770
3770
|
try {
|
|
3771
3771
|
return !!e(...t);
|
|
3772
3772
|
} catch {
|
|
@@ -3788,10 +3788,10 @@ const Qs = "1.17.0", In = 64 * 1024, { isFunction: xt } = N, sl = (e) => encodeU
|
|
|
3788
3788
|
},
|
|
3789
3789
|
e
|
|
3790
3790
|
);
|
|
3791
|
-
const { fetch: r, Request: o, Response: i } = e, l = r ?
|
|
3791
|
+
const { fetch: r, Request: o, Response: i } = e, l = r ? Tt(r) : typeof fetch == "function", d = Tt(o), c = Tt(i);
|
|
3792
3792
|
if (!l)
|
|
3793
3793
|
return !1;
|
|
3794
|
-
const u = l &&
|
|
3794
|
+
const u = l && Tt(s), h = l && (typeof a == "function" ? /* @__PURE__ */ ((b) => (v) => b.encode(v))(new a()) : async (b) => new Uint8Array(await new o(b).arrayBuffer())), m = d && u && kn(() => {
|
|
3795
3795
|
let b = !1;
|
|
3796
3796
|
const v = new o(ge.origin, {
|
|
3797
3797
|
body: new s(),
|
|
@@ -3801,7 +3801,7 @@ const Qs = "1.17.0", In = 64 * 1024, { isFunction: xt } = N, sl = (e) => encodeU
|
|
|
3801
3801
|
}
|
|
3802
3802
|
}), E = v.headers.has("Content-Type");
|
|
3803
3803
|
return v.body != null && v.body.cancel(), b && !E;
|
|
3804
|
-
}), f = c && u &&
|
|
3804
|
+
}), f = c && u && kn(() => N.isReadableStream(new i("").body)), w = {
|
|
3805
3805
|
stream: f && ((b) => b.body)
|
|
3806
3806
|
};
|
|
3807
3807
|
l && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((b) => {
|
|
@@ -3840,24 +3840,24 @@ const Qs = "1.17.0", In = 64 * 1024, { isFunction: xt } = N, sl = (e) => encodeU
|
|
|
3840
3840
|
method: E,
|
|
3841
3841
|
data: S,
|
|
3842
3842
|
signal: y,
|
|
3843
|
-
cancelToken:
|
|
3843
|
+
cancelToken: x,
|
|
3844
3844
|
timeout: I,
|
|
3845
3845
|
onDownloadProgress: P,
|
|
3846
3846
|
onUploadProgress: $,
|
|
3847
3847
|
responseType: q,
|
|
3848
|
-
headers:
|
|
3848
|
+
headers: k,
|
|
3849
3849
|
withCredentials: F = "same-origin",
|
|
3850
3850
|
fetchOptions: K,
|
|
3851
3851
|
maxContentLength: O,
|
|
3852
3852
|
maxBodyLength: U
|
|
3853
3853
|
} = Ia(b);
|
|
3854
|
-
const
|
|
3854
|
+
const R = N.isNumber(O) && O > -1, G = N.isNumber(U) && U > -1, j = (L) => N.hasOwnProp(b, L) ? b[L] : void 0;
|
|
3855
3855
|
let X = r || fetch;
|
|
3856
3856
|
q = q ? (q + "").toLowerCase() : "text";
|
|
3857
3857
|
let C = Ji(
|
|
3858
|
-
[y,
|
|
3858
|
+
[y, x && x.toAbortSignal()],
|
|
3859
3859
|
I
|
|
3860
|
-
),
|
|
3860
|
+
), T = null;
|
|
3861
3861
|
const D = C && C.unsubscribe && (() => {
|
|
3862
3862
|
C.unsubscribe();
|
|
3863
3863
|
});
|
|
@@ -3883,70 +3883,70 @@ const Qs = "1.17.0", In = 64 * 1024, { isFunction: xt } = N, sl = (e) => encodeU
|
|
|
3883
3883
|
}
|
|
3884
3884
|
(Q.username || Q.password) && (Q.username = "", Q.password = "", v = Q.href);
|
|
3885
3885
|
}
|
|
3886
|
-
if (L && (
|
|
3886
|
+
if (L && (k.delete("authorization"), k.set(
|
|
3887
3887
|
"Authorization",
|
|
3888
3888
|
"Basic " + btoa(sl((L.username || "") + ":" + (L.password || "")))
|
|
3889
|
-
)),
|
|
3889
|
+
)), R && typeof v == "string" && v.startsWith("data:") && tl(v) > O)
|
|
3890
3890
|
throw new V(
|
|
3891
3891
|
"maxContentLength size of " + O + " exceeded",
|
|
3892
3892
|
V.ERR_BAD_RESPONSE,
|
|
3893
3893
|
b,
|
|
3894
|
-
|
|
3894
|
+
T
|
|
3895
3895
|
);
|
|
3896
3896
|
if (G && E !== "get" && E !== "head") {
|
|
3897
|
-
const Q = await A(
|
|
3897
|
+
const Q = await A(k, S);
|
|
3898
3898
|
if (typeof Q == "number" && isFinite(Q) && Q > U)
|
|
3899
3899
|
throw new V(
|
|
3900
3900
|
"Request body larger than maxBodyLength limit",
|
|
3901
3901
|
V.ERR_BAD_REQUEST,
|
|
3902
3902
|
b,
|
|
3903
|
-
|
|
3903
|
+
T
|
|
3904
3904
|
);
|
|
3905
3905
|
}
|
|
3906
|
-
if ($ && m && E !== "get" && E !== "head" && (H = await A(
|
|
3906
|
+
if ($ && m && E !== "get" && E !== "head" && (H = await A(k, S)) !== 0) {
|
|
3907
3907
|
let Q = new o(v, {
|
|
3908
3908
|
method: "POST",
|
|
3909
3909
|
body: S,
|
|
3910
3910
|
duplex: "half"
|
|
3911
3911
|
}), B;
|
|
3912
|
-
if (N.isFormData(S) && (B = Q.headers.get("content-type")) &&
|
|
3912
|
+
if (N.isFormData(S) && (B = Q.headers.get("content-type")) && k.setContentType(B), Q.body) {
|
|
3913
3913
|
const [ue, Le] = Sn(
|
|
3914
3914
|
H,
|
|
3915
3915
|
Ft(En($))
|
|
3916
3916
|
);
|
|
3917
|
-
S =
|
|
3917
|
+
S = Tn(Q.body, In, ue, Le);
|
|
3918
3918
|
}
|
|
3919
3919
|
}
|
|
3920
3920
|
N.isString(F) || (F = F ? "include" : "omit");
|
|
3921
3921
|
const J = d && "credentials" in o.prototype;
|
|
3922
3922
|
if (N.isFormData(S)) {
|
|
3923
|
-
const Q =
|
|
3924
|
-
Q && /^multipart\/form-data/i.test(Q) && !/boundary=/i.test(Q) &&
|
|
3923
|
+
const Q = k.getContentType();
|
|
3924
|
+
Q && /^multipart\/form-data/i.test(Q) && !/boundary=/i.test(Q) && k.delete("content-type");
|
|
3925
3925
|
}
|
|
3926
|
-
|
|
3926
|
+
k.set("User-Agent", "axios/" + Qs, !1);
|
|
3927
3927
|
const Z = {
|
|
3928
3928
|
...K,
|
|
3929
3929
|
signal: C,
|
|
3930
3930
|
method: E.toUpperCase(),
|
|
3931
|
-
headers: ba(
|
|
3931
|
+
headers: ba(k.normalize()),
|
|
3932
3932
|
body: S,
|
|
3933
3933
|
duplex: "half",
|
|
3934
3934
|
credentials: J ? F : void 0
|
|
3935
3935
|
};
|
|
3936
|
-
|
|
3937
|
-
let te = await (d ? X(
|
|
3938
|
-
if (
|
|
3936
|
+
T = d && new o(v, Z);
|
|
3937
|
+
let te = await (d ? X(T, K) : X(v, Z));
|
|
3938
|
+
if (R) {
|
|
3939
3939
|
const Q = N.toFiniteNumber(te.headers.get("content-length"));
|
|
3940
3940
|
if (Q != null && Q > O)
|
|
3941
3941
|
throw new V(
|
|
3942
3942
|
"maxContentLength size of " + O + " exceeded",
|
|
3943
3943
|
V.ERR_BAD_RESPONSE,
|
|
3944
3944
|
b,
|
|
3945
|
-
|
|
3945
|
+
T
|
|
3946
3946
|
);
|
|
3947
3947
|
}
|
|
3948
3948
|
const ae = f && (q === "stream" || q === "response");
|
|
3949
|
-
if (f && te.body && (P ||
|
|
3949
|
+
if (f && te.body && (P || R || ae && D)) {
|
|
3950
3950
|
const Q = {};
|
|
3951
3951
|
["status", "statusText", "headers"].forEach((dt) => {
|
|
3952
3952
|
Q[dt] = te[dt];
|
|
@@ -3957,17 +3957,17 @@ const Qs = "1.17.0", In = 64 * 1024, { isFunction: xt } = N, sl = (e) => encodeU
|
|
|
3957
3957
|
) || [];
|
|
3958
3958
|
let ct = 0;
|
|
3959
3959
|
const tr = (dt) => {
|
|
3960
|
-
if (
|
|
3960
|
+
if (R && (ct = dt, ct > O))
|
|
3961
3961
|
throw new V(
|
|
3962
3962
|
"maxContentLength size of " + O + " exceeded",
|
|
3963
3963
|
V.ERR_BAD_RESPONSE,
|
|
3964
3964
|
b,
|
|
3965
|
-
|
|
3965
|
+
T
|
|
3966
3966
|
);
|
|
3967
3967
|
ue && ue(dt);
|
|
3968
3968
|
};
|
|
3969
3969
|
te = new i(
|
|
3970
|
-
|
|
3970
|
+
Tn(te.body, In, tr, () => {
|
|
3971
3971
|
Le && Le(), D && D();
|
|
3972
3972
|
}),
|
|
3973
3973
|
Q
|
|
@@ -3978,43 +3978,43 @@ const Qs = "1.17.0", In = 64 * 1024, { isFunction: xt } = N, sl = (e) => encodeU
|
|
|
3978
3978
|
te,
|
|
3979
3979
|
b
|
|
3980
3980
|
);
|
|
3981
|
-
if (
|
|
3981
|
+
if (R && !f && !ae) {
|
|
3982
3982
|
let Q;
|
|
3983
3983
|
if (W != null && (typeof W.byteLength == "number" ? Q = W.byteLength : typeof W.size == "number" ? Q = W.size : typeof W == "string" && (Q = typeof a == "function" ? new a().encode(W).byteLength : W.length)), typeof Q == "number" && Q > O)
|
|
3984
3984
|
throw new V(
|
|
3985
3985
|
"maxContentLength size of " + O + " exceeded",
|
|
3986
3986
|
V.ERR_BAD_RESPONSE,
|
|
3987
3987
|
b,
|
|
3988
|
-
|
|
3988
|
+
T
|
|
3989
3989
|
);
|
|
3990
3990
|
}
|
|
3991
3991
|
return !ae && D && D(), await new Promise((Q, B) => {
|
|
3992
|
-
|
|
3992
|
+
xa(Q, B, {
|
|
3993
3993
|
data: W,
|
|
3994
3994
|
headers: Ae.from(te.headers),
|
|
3995
3995
|
status: te.status,
|
|
3996
3996
|
statusText: te.statusText,
|
|
3997
3997
|
config: b,
|
|
3998
|
-
request:
|
|
3998
|
+
request: T
|
|
3999
3999
|
});
|
|
4000
4000
|
});
|
|
4001
4001
|
} catch (L) {
|
|
4002
4002
|
if (D && D(), C && C.aborted && C.reason instanceof V) {
|
|
4003
4003
|
const z = C.reason;
|
|
4004
|
-
throw z.config = b,
|
|
4004
|
+
throw z.config = b, T && (z.request = T), L !== z && (z.cause = L), z;
|
|
4005
4005
|
}
|
|
4006
4006
|
throw L && L.name === "TypeError" && /Load failed|fetch/i.test(L.message) ? Object.assign(
|
|
4007
4007
|
new V(
|
|
4008
4008
|
"Network Error",
|
|
4009
4009
|
V.ERR_NETWORK,
|
|
4010
4010
|
b,
|
|
4011
|
-
|
|
4011
|
+
T,
|
|
4012
4012
|
L && L.response
|
|
4013
4013
|
),
|
|
4014
4014
|
{
|
|
4015
4015
|
cause: L.cause || L
|
|
4016
4016
|
}
|
|
4017
|
-
) : V.from(L, L && L.code, b,
|
|
4017
|
+
) : V.from(L, L && L.code, b, T, L && L.response);
|
|
4018
4018
|
}
|
|
4019
4019
|
};
|
|
4020
4020
|
}, rl = /* @__PURE__ */ new Map(), Ua = (e) => {
|
|
@@ -4042,7 +4042,7 @@ N.forEach(zs, (e, t) => {
|
|
|
4042
4042
|
Object.defineProperty(e, "adapterName", { __proto__: null, value: t });
|
|
4043
4043
|
}
|
|
4044
4044
|
});
|
|
4045
|
-
const
|
|
4045
|
+
const Rn = (e) => `- ${e}`, ol = (e) => N.isFunction(e) || e === null || e === !1;
|
|
4046
4046
|
function il(e, t) {
|
|
4047
4047
|
e = N.isArray(e) ? e : [e];
|
|
4048
4048
|
const { length: s } = e;
|
|
@@ -4062,8 +4062,8 @@ function il(e, t) {
|
|
|
4062
4062
|
([d, c]) => `adapter ${d} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
4063
4063
|
);
|
|
4064
4064
|
let l = s ? i.length > 1 ? `since :
|
|
4065
|
-
` + i.map(
|
|
4066
|
-
`) : " " +
|
|
4065
|
+
` + i.map(Rn).join(`
|
|
4066
|
+
`) : " " + Rn(i[0]) : "as no adapter specified";
|
|
4067
4067
|
throw new V(
|
|
4068
4068
|
"There is no suitable adapter to dispatch the request " + l,
|
|
4069
4069
|
"ERR_NOT_SUPPORT"
|
|
@@ -4071,7 +4071,7 @@ function il(e, t) {
|
|
|
4071
4071
|
}
|
|
4072
4072
|
return r;
|
|
4073
4073
|
}
|
|
4074
|
-
const
|
|
4074
|
+
const ka = {
|
|
4075
4075
|
/**
|
|
4076
4076
|
* Resolve an adapter from a list of adapter names or functions.
|
|
4077
4077
|
* @type {Function}
|
|
@@ -4088,7 +4088,7 @@ function gs(e) {
|
|
|
4088
4088
|
throw new Et(null, e);
|
|
4089
4089
|
}
|
|
4090
4090
|
function Ln(e) {
|
|
4091
|
-
return gs(e), e.headers = Ae.from(e.headers), e.data = fs.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
4091
|
+
return gs(e), e.headers = Ae.from(e.headers), e.data = fs.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ka.getAdapter(e.adapter || St.adapter, e)(e).then(
|
|
4092
4092
|
function(a) {
|
|
4093
4093
|
gs(e), e.response = a;
|
|
4094
4094
|
try {
|
|
@@ -4289,7 +4289,7 @@ let ze = class {
|
|
|
4289
4289
|
}
|
|
4290
4290
|
getUri(t) {
|
|
4291
4291
|
t = Je(this.defaults, t);
|
|
4292
|
-
const s =
|
|
4292
|
+
const s = Ta(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
4293
4293
|
return Na(s, t.params, t.paramsSerializer);
|
|
4294
4294
|
}
|
|
4295
4295
|
};
|
|
@@ -4321,7 +4321,7 @@ N.forEach(["post", "put", "patch", "query"], function(t) {
|
|
|
4321
4321
|
}
|
|
4322
4322
|
ze.prototype[t] = s(), t !== "query" && (ze.prototype[t + "Form"] = s(!0));
|
|
4323
4323
|
});
|
|
4324
|
-
let cl = class
|
|
4324
|
+
let cl = class Ra {
|
|
4325
4325
|
constructor(t) {
|
|
4326
4326
|
if (typeof t != "function")
|
|
4327
4327
|
throw new TypeError("executor must be a function.");
|
|
@@ -4387,7 +4387,7 @@ let cl = class ka {
|
|
|
4387
4387
|
static source() {
|
|
4388
4388
|
let t;
|
|
4389
4389
|
return {
|
|
4390
|
-
token: new
|
|
4390
|
+
token: new Ra(function(r) {
|
|
4391
4391
|
t = r;
|
|
4392
4392
|
}),
|
|
4393
4393
|
cancel: t
|
|
@@ -4499,7 +4499,7 @@ ce.isAxiosError = ul;
|
|
|
4499
4499
|
ce.mergeConfig = Je;
|
|
4500
4500
|
ce.AxiosHeaders = Ae;
|
|
4501
4501
|
ce.formToJSON = (e) => Sa(N.isHTMLForm(e) ? new FormData(e) : e);
|
|
4502
|
-
ce.getAdapter =
|
|
4502
|
+
ce.getAdapter = ka.getAdapter;
|
|
4503
4503
|
ce.HttpStatusCode = Ls;
|
|
4504
4504
|
ce.default = ce;
|
|
4505
4505
|
const {
|
|
@@ -4863,7 +4863,7 @@ class je {
|
|
|
4863
4863
|
exclude: a.getAutorInfo,
|
|
4864
4864
|
imagesizes: s.getAutorInfo
|
|
4865
4865
|
}))?.data.data ?? []);
|
|
4866
|
-
const c =
|
|
4866
|
+
const c = Ts(l), h = (st(o)?.data ?? [])[0]?.list?.items?.map((b) => Ts(b)), m = [];
|
|
4867
4867
|
h?.forEach((b) => {
|
|
4868
4868
|
b && b.length > 0 && b.forEach((v) => {
|
|
4869
4869
|
v.forEach((E) => {
|
|
@@ -4882,7 +4882,7 @@ class je {
|
|
|
4882
4882
|
...m
|
|
4883
4883
|
])).map(
|
|
4884
4884
|
(b) => st(b)?.data
|
|
4885
|
-
), g = await
|
|
4885
|
+
), g = await kr(
|
|
4886
4886
|
c,
|
|
4887
4887
|
this.getNews
|
|
4888
4888
|
);
|
|
@@ -5083,7 +5083,7 @@ const vm = async (e, t, s, a, r, o, i) => {
|
|
|
5083
5083
|
return (() => {
|
|
5084
5084
|
const h = {};
|
|
5085
5085
|
for (let m = 0; m < c.length; m++) {
|
|
5086
|
-
const f =
|
|
5086
|
+
const f = xr(
|
|
5087
5087
|
c[m]
|
|
5088
5088
|
), w = "Home_" + (Math.floor(m / o) + 1) + "_" + (Math.floor(m % o) + 1);
|
|
5089
5089
|
f && (h[w] = { ...f });
|
|
@@ -5480,7 +5480,7 @@ const vm = async (e, t, s, a, r, o, i) => {
|
|
|
5480
5480
|
listAutor: t,
|
|
5481
5481
|
config: s
|
|
5482
5482
|
}) => {
|
|
5483
|
-
const a = t?.[0] ?? null, { DATE_TIMEZONE: r = "America/Mexico_City", PUBLIC_ASSETS_URL: o, PUBLIC_LNG: i } = _(), l = i === "en", d = r, c = a?.info?.date?.modified ? Ye(a.info.date.modified, d) : void 0, u = e.addtional?.USER_JOBSTART ? Ye(e.addtional.USER_JOBSTART, d) : void 0, h = o && o !== "false" ? o : "", m = e.addtional, f = m?.USER_USERFB || m?.USER_PAGE_FACEBOOK || m?.USER_FACEBOOK_FAN_PAGE, w = m?.USER_USERTWT || m?.USER_PAGE_TWITTER, g = m?.USER_USERIG || m?.USER_PAGE_INSTAGRAM, A = m?.USER_USERLIN || m?.USER_PAGE_LINKEDIN, b = m?.USER_PAGE_TIKTOK, v = m?.USER_PAGE_YOUTUBE, E = m?.USER_PAGE_PINTEREST, S = m?.USER_JOBTITLE || (l ? m?.USER_POSITION_EN : "") || m?.USER_POSITION || "", y = (l ? m?.USER_DESCRIPCION_EN : "") || m?.USER_DESCRIPCION || m?.USER_MIBIO || "",
|
|
5483
|
+
const a = t?.[0] ?? null, { DATE_TIMEZONE: r = "America/Mexico_City", PUBLIC_ASSETS_URL: o, PUBLIC_LNG: i } = _(), l = i === "en", d = r, c = a?.info?.date?.modified ? Ye(a.info.date.modified, d) : void 0, u = e.addtional?.USER_JOBSTART ? Ye(e.addtional.USER_JOBSTART, d) : void 0, h = o && o !== "false" ? o : "", m = e.addtional, f = m?.USER_USERFB || m?.USER_PAGE_FACEBOOK || m?.USER_FACEBOOK_FAN_PAGE, w = m?.USER_USERTWT || m?.USER_PAGE_TWITTER, g = m?.USER_USERIG || m?.USER_PAGE_INSTAGRAM, A = m?.USER_USERLIN || m?.USER_PAGE_LINKEDIN, b = m?.USER_PAGE_TIKTOK, v = m?.USER_PAGE_YOUTUBE, E = m?.USER_PAGE_PINTEREST, S = m?.USER_JOBTITLE || (l ? m?.USER_POSITION_EN : "") || m?.USER_POSITION || "", y = (l ? m?.USER_DESCRIPCION_EN : "") || m?.USER_DESCRIPCION || m?.USER_MIBIO || "", x = e?.addtional?.USER_SHOWEMAIL === !0 || m?.USER_MOSTRAR_MAIL?.toUpperCase() === "TRUE", I = {
|
|
5484
5484
|
"@context": "https://schema.org",
|
|
5485
5485
|
"@type": "ProfilePage",
|
|
5486
5486
|
mainEntity: {
|
|
@@ -5503,8 +5503,9 @@ const vm = async (e, t, s, a, r, o, i) => {
|
|
|
5503
5503
|
url: s.siteUrl + (s.paths.autor !== "" ? `/${s.paths.autor}/` : "/") + e.info.name
|
|
5504
5504
|
}
|
|
5505
5505
|
};
|
|
5506
|
-
return u && (I.dateCreated = u), c && (I.dateModified = c),
|
|
5507
|
-
}, wl = `(function(){"use strict";const
|
|
5506
|
+
return u && (I.dateCreated = u), c && (I.dateModified = c), x && (I.mainEntity.email = e.info.email), /* @__PURE__ */ n("script", { type: "application/ld+json", children: JSON.stringify(Me(I)) });
|
|
5507
|
+
}, wl = `(function(){"use strict";const J="__html-audit-manifest";function H(e){const n=e.getElementById(J);if(!n||!n.textContent)return null;try{const t=JSON.parse(n.textContent);return!t||typeof t!="object"||!t.expects?null:t}catch{return null}}function p(e,n,t,o,r){return{id:e,label:n,status:t,detail:o,expected:r}}function m(e,n,t,o,r){return o==null?p(e,n,t?"ok":"info",r,void 0):o?t?p(e,n,"ok",r,!0):p(e,n,"missing",r||"Esperado por config pero AUSENTE",!0):t?p(e,n,"warn",r||"Presente pero no estaba configurado",!1):p(e,n,"info",r||"No configurado",!1)}function k(e,n){return!!e.querySelector(n)}function S(e,n){return e.querySelectorAll(n).length}function M(e){const n=[];return e.querySelectorAll('script[type="application/ld+json"]').forEach(o=>{if(o.textContent)try{const r=JSON.parse(o.textContent);Array.isArray(r)?n.push(...r):n.push(r)}catch{}}),n}function A(e,n){return M(e).some(t=>{const o=t?.["@type"];return typeof o=="string"?o===n:Array.isArray(o)?o.includes(n):!1})}const U=600,B=6e3;function z(e,n){return e.length>n?e.slice(0,n)+\`
|
|
5508
|
+
… (recortado)\`:e}function b(e,n=U){return e?z(e.outerHTML||"",n):""}function a(e,n){return n&&n.length&&(e.evidence=n),e}function w(e,n){return Array.from(e.querySelectorAll(n)).map(t=>({label:t.getAttribute("property")||t.getAttribute("name")||t.getAttribute("rel")||t.getAttribute("type")||t.tagName.toLowerCase(),snippet:b(t)}))}function $(e,n){if(!e||typeof e!="object")return;if(Array.isArray(e)){e.forEach(r=>$(r,n));return}const t=e,o=t["@type"];typeof o=="string"?n.add(o):Array.isArray(o)&&o.forEach(r=>typeof r=="string"&&n.add(r)),Array.isArray(t["@graph"])&&$(t["@graph"],n)}function q(e){const n=e.querySelectorAll('script[type="application/ld+json"]'),t=[];return n.forEach((o,r)=>{const s=o.textContent||"",i=new Set;let c=s,u=!0;try{const l=JSON.parse(s);$(l,i),c=JSON.stringify(l,null,2)}catch{u=!1}const f=o.id,h=[...i],g=h.length?h.join(", "):f||\`bloque #\${r+1}\`;t.push({types:h,label:u?g:\`\${g} (JSON inválido)\`,snippet:z(c,B)})}),t}function C(e,n){return q(e).filter(t=>t.types.includes(n)).map(t=>({label:t.label,snippet:t.snippet}))}function W(e){return q(e).map(n=>({label:n.label,snippet:n.snippet}))}const R=(e,n)=>{const t=n?.expects,o=[],r=e.querySelector("meta[charset]");o.push(a(m("htmlAttrs.charset","<meta charset>",!!r,t?t.charset:null,"Falta <meta charset>"),r?[{label:"<meta charset>",snippet:b(r)}]:[]));const s=e.querySelector('meta[name="viewport"]');o.push(a(m("htmlAttrs.viewport","<meta name=viewport>",!!s,t?t.viewport:null,"Falta <meta name=viewport>"),s?[{label:"<meta name=viewport>",snippet:b(s)}]:[]));const i=e.documentElement.getAttribute("lang");o.push(p("htmlAttrs.lang","html[lang]",i?"ok":"info",i?\`lang="\${i}"\`:"No emitido por el paquete (lo agrega el sitio)"));const c=e.documentElement.getAttribute("dir");o.push(p("htmlAttrs.dir","html[dir]",c?"ok":"info",c?\`dir="\${c}"\`:"No emitido por el paquete"));const u=new Map;e.querySelectorAll("[id]").forEach(h=>{const g=h.id;g&&u.set(g,(u.get(g)||0)+1)});const f=[...u.entries()].filter(([,h])=>h>1).map(([h])=>h);return o.push(p("htmlAttrs.duplicateIds","IDs duplicados",f.length?"warn":"ok",f.length?\`Duplicados: \${f.slice(0,10).join(", ")}\`:"Sin IDs duplicados")),{key:"htmlAttrs",title:"HTML attrs",findings:o}},D=(e,n)=>{const t=n?.expects,o=[],r=e.querySelector('script[type="speculationrules"]');o.push(a(m("structure.speculationRules","Speculation rules",!!r,t?t.speculationRules:null,"Speculation rules desactivadas"),r?[{label:"speculationrules",snippet:b(r,2e3)}]:[])),n?.speculationType&&o.push(p("structure.speculationType","Speculation type","info",\`Tipo esperado: \${n.speculationType}\`));const s=S(e,"main");o.push(p("structure.main","<main>",s===1?"ok":s===0?"info":"warn",s===1?"1 <main>":s===0?"Sin <main> (lo arma el sitio)":\`\${s} <main> (debería ser 1)\`)),o.push(p("structure.header","<header>",k(e,"header")?"ok":"info",k(e,"header")?"Presente":"Sin <header>")),o.push(p("structure.footer","<footer>",k(e,"footer")?"ok":"info",k(e,"footer")?"Presente":"Sin <footer>"));const i=S(e,"h1");return o.push(p("structure.h1","<h1>",i===1?"ok":"warn",i===0?"Sin <h1>":i===1?"1 <h1>":\`\${i} <h1> (revisar jerarquía)\`)),{key:"structure",title:"Estructura",findings:o}},V=["og:title","og:description","og:type","og:url","og:site_name","og:locale","og:image"],X=["twitter:card","twitter:title","twitter:description","twitter:image","twitter:site"];function y(e){return e===void 0||e==="meta"?null:e}function x(e,n,t,o,r,s){const i=e.querySelector(o),c=m(n,t,!!i,r,i?O(i):s);return i&&a(c,[{label:t,snippet:b(i)}]),c}function O(e){const t=(e.getAttribute("content")||e.getAttribute("href")||e.textContent||"").trim();return t.length>80?t.slice(0,80)+"…":t||"presente"}const K=(e,n)=>{const t=n?.expects.metadata,o=[],r=e.querySelector("title"),s=!!r&&!!r.textContent?.trim();o.push(a(m("metadata.title","<title>",s,y(t?.title),s?O(r):"Falta <title> o está vacío"),r?[{label:"<title>",snippet:b(r)}]:[])),o.push(x(e,"metadata.description","meta description",'meta[name="description"]',y(t?.description),"Falta <meta name=description>"));const i=e.querySelectorAll('meta[name="keywords"], meta[name="news_keywords"]');o.push(a(p("metadata.keywords","keywords / news_keywords",i.length?"ok":"info",i.length?\`\${i.length} tag(s)\`:"Sin keywords (opcional)"),w(e,'meta[name="keywords"], meta[name="news_keywords"]'))),o.push(x(e,"metadata.robots","meta robots",'meta[name="robots"]',y(t?.robots),"Sin meta robots (esperado solo en news/video)")),o.push(x(e,"metadata.canonical","link canonical",'link[rel="canonical"]',y(t?.canonical),"Falta <link rel=canonical>")),o.push(x(e,"metadata.og.title","og:title",'meta[property="og:title"]',y(t?.openGraph),"Falta og:title")),o.push(x(e,"metadata.og.image","og:image",'meta[property="og:image"]',y(t?.openGraph),"Falta og:image (sin imagen de preview al compartir)"));for(const l of V){if(l==="og:title"||l==="og:image")continue;const v="metadata."+l.replace(":",".");o.push(x(e,v,l,\`meta[property="\${l}"]\`,null,\`Sin \${l} (opcional)\`))}const c=S(e,'meta[property^="og:"]');o.push(a(p("metadata.og.count","Tags og:* totales",c>0?"ok":"info",\`\${c} tag(s) og:*\`),w(e,'meta[property^="og:"]'))),o.push(x(e,"metadata.twitter.card","twitter:card",'meta[name="twitter:card"]',y(t?.twitter),"Falta twitter:card")),o.push(x(e,"metadata.twitter.image","twitter:image",'meta[name="twitter:image"]',y(t?.twitter),"Falta twitter:image"));for(const l of X){if(l==="twitter:card"||l==="twitter:image")continue;const v="metadata."+l.replace(":",".");o.push(x(e,v,l,\`meta[name="\${l}"]\`,null,\`Sin \${l} (opcional)\`))}const u=S(e,'meta[name^="twitter:"]');o.push(a(p("metadata.twitter.count","Tags twitter:* totales",u>0?"ok":"info",\`\${u} tag(s) twitter:*\`),w(e,'meta[name^="twitter:"]')));const f=S(e,'meta[property^="article:"]');o.push(a(m("metadata.article","article:* (published/modified/section/author/tag)",f>0,y(t?.article),f>0?\`\${f} tag(s) article:*\`:"Sin article:* (esperado solo en news)"),w(e,'meta[property^="article:"]'))),o.push(x(e,"metadata.rss","link alternate RSS",'link[rel="alternate"][type="application/rss+xml"]',y(t?.rss),"Sin alternate RSS (esperado solo en news)")),o.push(x(e,"metadata.manifest","link manifest",'link[rel="manifest"]',null,"Sin <link rel=manifest> (opcional)"));const h='link[rel="icon"], link[rel="apple-touch-icon"], link[rel="shortcut icon"], link[rel="mask-icon"]',g=S(e,h);return o.push(a(p("metadata.icons","favicons / icons",g?"ok":"info",g?\`\${g} icono(s)\`:"Sin favicons declarados"),w(e,h))),{key:"metadata",title:"Metadata",findings:o}},Y=(e,n)=>{const t=n?.expects.schemas,o=[];o.push(a(m("schemas.NewsMediaOrganization","NewsMediaOrganization (OrgList)",k(e,"script#WebsiteOrgListSchema")||A(e,"NewsMediaOrganization"),t?t.NewsMediaOrganization:!0,"Falta NewsMediaOrganization (se emite siempre)"),C(e,"NewsMediaOrganization"))),o.push(a(m("schemas.WebSite","WebSite (WebsiteList)",k(e,"script#WebsiteListSchema")||A(e,"WebSite"),t?t.WebSite:null,"Falta WebSite"),C(e,"WebSite"))),o.push(a(m("schemas.NewsArticle","NewsArticle",A(e,"NewsArticle"),t?t.NewsArticle:null,"NewsArticle esperado pero AUSENTE (puede ser API vacía)"),C(e,"NewsArticle"))),o.push(a(m("schemas.Videos","VideoObject",A(e,"VideoObject"),t?t.Videos:null,"VideoObject esperado pero AUSENTE"),C(e,"VideoObject"))),o.push(a(m("schemas.Autor","ProfilePage (Autor)",A(e,"ProfilePage"),t?t.Autor:null,"ProfilePage esperado pero AUSENTE"),C(e,"ProfilePage"))),o.push(a(m("schemas.ItemList","ItemList",k(e,"script#webSiteItemListSchema")||A(e,"ItemList"),t?t.ItemList:null,"ItemList esperado pero AUSENTE (PuedeVacío)"),C(e,"ItemList"))),o.push(a(m("schemas.SoftwareApplication","SoftwareApplication",k(e,'script[id^="SoftwareApplicationSchema-"]')||A(e,"SoftwareApplication"),t?t.SoftwareApplication:null,"SoftwareApplication esperado pero AUSENTE"),C(e,"SoftwareApplication")));const r=e.querySelectorAll('script[type="application/ld+json"]');let s=0;return r.forEach(i=>{if(i.textContent)try{JSON.parse(i.textContent)}catch{s++}}),o.push(a(p("schemas.parsed","JSON-LD parseables",s?"warn":"ok",\`\${r.length} bloque(s); \${s} inválido(s). Tipos: \${Q(e)}\`),W(e))),{key:"schemas",title:"Schemas JSON-LD",findings:o}};function Q(e){const n=new Set;return M(e).forEach(t=>{const o=t?.["@type"];typeof o=="string"?n.add(o):Array.isArray(o)&&o.forEach(r=>typeof r=="string"&&n.add(r))}),n.size?[...n].join(", "):"—"}const Z=(e,n)=>{const t=n?.expects,o=e.querySelector('link[rel="amphtml"]');return{key:"amp",title:"AMP",findings:[a(m("amp.amphtml","link rel=amphtml",!!o,t?t.amp:null,o?\`href=\${o.getAttribute("href")||""}\`:"No hay AMP"),o?[{label:"link rel=amphtml",snippet:b(o)}]:[])]}};function I(e){return e.slice(0,8).map(n=>({label:n.getAttribute("src")||"(sin src)",snippet:b(n,300)}))}const ee=e=>{const n=Array.from(e.querySelectorAll("img")),t=[];t.push(p("images.count","<img> totales","info",\`\${n.length} imagen(es)\`));const o=n.filter(i=>!i.hasAttribute("alt"));t.push(a(p("images.alt","img sin atributo alt",o.length?"warn":"ok",o.length?\`\${o.length} <img> sin alt: \${te(o)}\`:"Todas las <img> declaran alt"),I(o)));const r=n.filter(i=>i.getAttribute("loading")==="lazy").length;t.push(p("images.lazy","img loading=lazy","info",\`\${r}/\${n.length} lazy\`));const s=n.filter(i=>{const c=i.getAttribute("src");return c!==null&&c.trim()===""});return t.push(a(p("images.emptySrc","img con src vacío",s.length?"warn":"ok",s.length?\`\${s.length} <img> con src=""\`:"Sin src vacíos"),I(s))),{key:"images",title:"Imágenes",findings:t}};function te(e){return e.slice(0,5).map(n=>n.getAttribute("src")||"(sin src)").join(", ")}function T(e,n){for(const t of n){const o=e.querySelector(t);if(o)return o}return null}function N(e,n){return e?[{label:n,snippet:b(e)}]:[]}const ne=[R,D,K,Y,Z,(e,n)=>{const t=n?.expects,o=[],r=t?.assetsUrl;let s;r?s=Array.from(e.querySelectorAll('link[rel="preconnect"]')).some(f=>(f.getAttribute("href")||"").indexOf(r)===0):s=!!e.querySelector('link[rel="preconnect"]'),o.push(a(m("css.preconnectAssets","preconnect assets",s,t?t.preconnectAssets:null,"Falta <link rel=preconnect> a PUBLIC_ASSETS_URL"),w(e,'link[rel="preconnect"], link[rel="dns-prefetch"]'))),o.push(a(m("css.preloadImages","preload de imágenes",!!e.querySelector('link[rel="preload"][as="image"]'),t?t.preloadImages:null,"No hay preload de imágenes (preloadImages)"),w(e,'link[rel="preload"][as="image"]')));const i=!!e.querySelector('link[rel="preload"][as="font"]'),c=!!e.querySelector('link[href*="fonts.googleapis"], link[href*="fonts.gstatic"]'),u=t?.font;return u==="selfHosted"?o.push(m("css.font","Font self-hosted",i,!0,"Font self-hosted esperada pero sin <link as=font>")):u==="google"?o.push(m("css.font","Google Fonts",c,!0,"Google Fonts esperada pero ausente")):o.push(p("css.font","Fonts","info",i?"Font self-hosted presente":c?"Google Fonts presente":"Sin fuente configurada por el paquete")),o.push(a(p("css.stylesheets","<link rel=stylesheet> totales","info",\`\${S(e,'link[rel="stylesheet"]')} stylesheet(s) (los agrega el sitio)\`),w(e,'link[rel="stylesheet"]'))),{key:"cssImports",title:"CSS / preconnect / fonts",findings:o}},ee,(e,n)=>{const t=n?.expects.analytics,o=[],r=T(e,["script#googleanalytics",'script[src*="gtag/js"]']);o.push(a(m("content.ga4","GA4",!!r,t?t.ga4:null,"GA4 no configurado"),N(r,"GA4")));const s=T(e,["script#GTM",'script[src*="googletagmanager.com/gtm.js"]','iframe[src*="googletagmanager.com/ns.html"]']);o.push(a(m("content.gtm","Google Tag Manager",!!s,t?t.gtm:null,"GTM no configurado"),N(s,"GTM")));const i=T(e,["script#comscore",'script[src*="scorecardresearch"]']);o.push(a(m("content.comscore","Comscore",!!i,t?t.comscore:null,"Comscore no configurado"),N(i,"Comscore")));const c=e.querySelector('script[src*="marfeel"]')||Array.from(e.querySelectorAll("script")).find(l=>(l.textContent||"").includes("marfeel"))||null;o.push(a(m("content.marfeel","Marfeel",!!c,t?t.marfeel:null,"Marfeel no configurado"),N(c,"Marfeel")));const f=Array.from(e.querySelectorAll("h1,h2,h3,h4,h5,h6")).filter(l=>!(l.textContent||"").trim());o.push(a(p("content.emptyHeadings","Headings vacíos",f.length?"warn":"ok",f.length?\`\${f.length} heading(s) sin texto\`:"Sin headings vacíos"),f.slice(0,8).map(l=>({label:l.tagName.toLowerCase(),snippet:b(l,200)}))));const h=Array.from(e.querySelectorAll("a")),g=h.filter(l=>{const v=l.getAttribute("href");return v===null||v.trim()===""||v.trim()==="#"});return o.push(a(p("content.links","Links sin destino",g.length?"warn":"ok",\`\${h.length} link(s); \${g.length} sin href válido\`),g.slice(0,8).map(l=>({label:(l.textContent||"").trim().slice(0,40)||"(sin texto)",snippet:b(l,200)})))),{key:"content",title:"Contenido",findings:o}}];function oe(e,n){const t=ne.map(r=>r(e,n)),o={ok:0,missing:0,warn:0,info:0};for(const r of t)for(const s of r.findings)o[s.status]++;return{route:n?n.route:null,hasManifest:!!n,totals:o,categories:t,blindSpots:n?n.blindSpots||[]:[]}}const re=\`
|
|
5508
5509
|
:host { all: initial; }
|
|
5509
5510
|
* { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
|
|
5510
5511
|
|
|
@@ -5567,6 +5568,31 @@ const vm = async (e, t, s, a, r, o, i) => {
|
|
|
5567
5568
|
.item.warn .ico { color: #fbbf24; }
|
|
5568
5569
|
.item.info .ico { color: #64748b; }
|
|
5569
5570
|
|
|
5571
|
+
/* Extracto inspeccionable (span clickeable + snippet). */
|
|
5572
|
+
.ev { margin-top: 4px; }
|
|
5573
|
+
.ev > summary,
|
|
5574
|
+
.ev-sub > summary {
|
|
5575
|
+
list-style: none; cursor: pointer; display: inline-flex; align-items: center;
|
|
5576
|
+
font-size: 10px; font-weight: 700; color: #93c5fd; user-select: none;
|
|
5577
|
+
padding: 1px 6px; border: 1px solid #1e3a5f; border-radius: 6px; background: #0f1b2e;
|
|
5578
|
+
}
|
|
5579
|
+
.ev > summary::-webkit-details-marker,
|
|
5580
|
+
.ev-sub > summary::-webkit-details-marker { display: none; }
|
|
5581
|
+
.ev > summary:hover,
|
|
5582
|
+
.ev-sub > summary:hover { color: #bfdbfe; border-color: #2563eb; }
|
|
5583
|
+
.ev[open] > summary { margin-bottom: 4px; }
|
|
5584
|
+
|
|
5585
|
+
.ev-sub { margin: 3px 0 3px 8px; }
|
|
5586
|
+
.ev-sub > summary { color: #a5b4fc; border-color: #312e81; background: #11132a; }
|
|
5587
|
+
.ev-sub[open] > summary { margin-bottom: 3px; }
|
|
5588
|
+
|
|
5589
|
+
.ev-pre {
|
|
5590
|
+
margin: 0; padding: 6px 8px; background: #060b14; border: 1px solid #1f2937;
|
|
5591
|
+
border-radius: 6px; color: #cbd5e1; font-size: 10px; line-height: 1.45;
|
|
5592
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
5593
|
+
white-space: pre-wrap; word-break: break-word; overflow-x: auto; max-height: 240px;
|
|
5594
|
+
}
|
|
5595
|
+
|
|
5570
5596
|
.alerts { background: #1a0f0f; }
|
|
5571
5597
|
.alerts > summary { color: #fca5a5; }
|
|
5572
5598
|
|
|
@@ -5575,7 +5601,7 @@ const vm = async (e, t, s, a, r, o, i) => {
|
|
|
5575
5601
|
.foot button:hover { background: #374151; }
|
|
5576
5602
|
|
|
5577
5603
|
.blind { padding: 6px 12px; font-size: 10px; color: #6b7280; border-top: 1px solid #1f2937; }
|
|
5578
|
-
\`,
|
|
5604
|
+
\`,F="__html-audit-root",P={ok:"✓",missing:"✗",warn:"⚠",info:"ℹ"};function se(e){const n=document.getElementById(F);n&&n.remove();const t=document.createElement("div");t.id=F,document.body.appendChild(t);const o=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=re,o.appendChild(r);const s=e.totals.missing,i=d("button","fab");i.setAttribute("aria-label","HTML Audit"),i.textContent="🔍";const c=d("span","badge"+(s===0?" zero":""));c.textContent=String(s),i.appendChild(c),o.appendChild(i);const u=d("div","panel");u.hidden=!0,u.appendChild(ie(e,()=>u.hidden=!0)),u.appendChild(ae(e));const f=d("div","body"),h=me(e,"missing");h.length&&f.appendChild(le(h));for(const g of e.categories)f.appendChild(ce(g));if(u.appendChild(f),e.blindSpots.length){const g=d("div","blind");g.textContent="Fuera de alcance (no exigido): "+e.blindSpots.join(", "),u.appendChild(g)}u.appendChild(ue(e)),o.appendChild(u),i.addEventListener("click",()=>{u.hidden=!u.hidden})}function ie(e,n){const t=d("div","head"),o=d("span","title");o.textContent="HTML Audit";const r=d("span","route");r.textContent=e.hasManifest?\`ruta: \${e.route}\`:"modo genérico (sin manifiesto)";const s=d("div","spacer"),i=d("button");return i.textContent="✕",i.addEventListener("click",n),t.append(o,r,s,i),t}function ae(e){const n=d("div","totals"),t=e.totals;return n.append(E("ok",\`✓ \${t.ok}\`),E("missing",\`✗ \${t.missing}\`),E("warn",\`⚠ \${t.warn}\`),E("info",\`ℹ \${t.info}\`),E("mode",e.hasManifest?"esperado-vs-real":"genérico")),n}function le(e){const n=document.createElement("details");n.className="cat alerts",n.open=!0;const t=document.createElement("summary"),o=d("span","chev");o.textContent="▶";const r=document.createElement("span");r.textContent=\`Ausencias / errores (\${e.length})\`,t.append(o,r),n.appendChild(t);for(const s of e)n.appendChild(j(s));return n}function ce(e){const n=document.createElement("details");n.className="cat";const t=de(e.findings);n.open=t.missing>0;const o=document.createElement("summary"),r=d("span","chev");r.textContent="▶";const s=document.createElement("span");s.textContent=e.title;const i=d("span","counts");t.missing&&i.appendChild(L("missing",t.missing)),t.warn&&i.appendChild(L("warn",t.warn)),i.appendChild(L("ok",t.ok)),o.append(r,s,i),n.appendChild(o);for(const c of e.findings)n.appendChild(j(c));return n}function j(e){const n=d("div","item "+e.status),t=d("span","ico");t.textContent=P[e.status];const o=d("div","txt"),r=d("div","lbl");if(r.textContent=e.label+(e.expected?" (esperado)":""),o.appendChild(r),e.detail){const s=d("div","det");s.textContent=e.detail,o.appendChild(s)}return e.evidence&&e.evidence.length&&o.appendChild(pe(e.evidence)),n.append(t,o),n}function pe(e){const n=document.createElement("details");n.className="ev";const t=document.createElement("summary");if(t.className="ev-sum",t.textContent=e.length>1?\`‹/› ver extractos (\${e.length})\`:"‹/› ver extracto",n.appendChild(t),e.length===1)n.appendChild(_(e[0].snippet));else for(const o of e){const r=document.createElement("details");r.className="ev-sub";const s=document.createElement("summary");s.className="ev-sub-sum",s.textContent=o.label,r.appendChild(s),r.appendChild(_(o.snippet)),n.appendChild(r)}return n}function _(e){const n=d("pre","ev-pre");return n.textContent=e,n}function ue(e){const n=d("div","foot"),t=document.createElement("button");return t.textContent="Copiar reporte (JSON)",t.addEventListener("click",()=>{const o=JSON.stringify(e,null,2);navigator.clipboard?(navigator.clipboard.writeText(o).then(()=>t.textContent="¡Copiado!",()=>t.textContent="No se pudo copiar"),setTimeout(()=>t.textContent="Copiar reporte (JSON)",1500)):t.textContent="Clipboard no disponible"}),n.appendChild(t),n}function d(e,n){const t=document.createElement(e);return n&&(t.className=n),t}function E(e,n){const t=d("span","pill "+e);return t.textContent=n,t}function L(e,n){const t=d("span","c pill "+e);return t.textContent=\`\${P[e]} \${n}\`,t}function de(e){const n={ok:0,missing:0,warn:0,info:0};for(const t of e)n[t.status]++;return n}function me(e,n){const t=[];for(const o of e.categories)for(const r of o.findings)r.status===n&&t.push(r);return t}function G(){try{const e=H(document),n=oe(document,e);se(n)}catch(e){console.error("[html-audit] error:",e)}}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",G,{once:!0}):G()})();
|
|
5579
5605
|
`, Al = "__html-audit-manifest";
|
|
5580
5606
|
function bl({ manifest: e }) {
|
|
5581
5607
|
const { HTML_AUDIT: t, HTML_AUDIT_NONCE: s } = _();
|
|
@@ -5687,7 +5713,7 @@ async function Nm({
|
|
|
5687
5713
|
custom_Speculation: E,
|
|
5688
5714
|
custom_metadata: S,
|
|
5689
5715
|
custom_scriptReplaces: y,
|
|
5690
|
-
head_custom_elements:
|
|
5716
|
+
head_custom_elements: x,
|
|
5691
5717
|
schemasCustomEndpoints: I
|
|
5692
5718
|
}) {
|
|
5693
5719
|
const P = f && f[0] && f[0].preview ? f[0] : void 0, $ = S || await fl[r]({
|
|
@@ -5702,7 +5728,7 @@ async function Nm({
|
|
|
5702
5728
|
axiosApi: e,
|
|
5703
5729
|
internalPath: w,
|
|
5704
5730
|
schemasImages: P
|
|
5705
|
-
}), q = _r($),
|
|
5731
|
+
}), q = _r($), k = y || da[r]({
|
|
5706
5732
|
pathname: o,
|
|
5707
5733
|
slug: i,
|
|
5708
5734
|
config: g,
|
|
@@ -5733,7 +5759,7 @@ async function Nm({
|
|
|
5733
5759
|
{
|
|
5734
5760
|
images: v.map((F) => ({
|
|
5735
5761
|
...F,
|
|
5736
|
-
href: nt() +
|
|
5762
|
+
href: nt() + Rr(F.href)
|
|
5737
5763
|
}))
|
|
5738
5764
|
}
|
|
5739
5765
|
),
|
|
@@ -5744,7 +5770,7 @@ async function Nm({
|
|
|
5744
5770
|
ia,
|
|
5745
5771
|
{
|
|
5746
5772
|
name: "headscripts",
|
|
5747
|
-
replaces:
|
|
5773
|
+
replaces: k,
|
|
5748
5774
|
banners: m
|
|
5749
5775
|
}
|
|
5750
5776
|
),
|
|
@@ -5802,7 +5828,7 @@ async function Nm({
|
|
|
5802
5828
|
})
|
|
5803
5829
|
}
|
|
5804
5830
|
),
|
|
5805
|
-
|
|
5831
|
+
x
|
|
5806
5832
|
] });
|
|
5807
5833
|
}
|
|
5808
5834
|
const Sm = ({
|
|
@@ -5871,44 +5897,44 @@ function Sl({
|
|
|
5871
5897
|
enableDrag: o,
|
|
5872
5898
|
onIndexChange: i
|
|
5873
5899
|
}) {
|
|
5874
|
-
const [l, d] = Y(!1), [c, u] = Y(0), [h, m] = Y(0), [f, w] = Y(0), [g, A] = Y(0), [b, v] = Y(null), E = sr(null), [S, y] = Y(1),
|
|
5900
|
+
const [l, d] = Y(!1), [c, u] = Y(0), [h, m] = Y(0), [f, w] = Y(0), [g, A] = Y(0), [b, v] = Y(null), E = sr(null), [S, y] = Y(1), x = me(() => {
|
|
5875
5901
|
if (r) return 1;
|
|
5876
|
-
const C = E.current?.offsetWidth || window.innerWidth,
|
|
5902
|
+
const C = E.current?.offsetWidth || window.innerWidth, T = s + a, D = Math.floor(C / T);
|
|
5877
5903
|
return Math.max(1, D);
|
|
5878
5904
|
}, [r, s, a]);
|
|
5879
5905
|
Oe(() => {
|
|
5880
5906
|
const C = () => {
|
|
5881
|
-
const
|
|
5882
|
-
y(
|
|
5907
|
+
const T = x();
|
|
5908
|
+
y(T);
|
|
5883
5909
|
};
|
|
5884
5910
|
return C(), window.addEventListener("resize", C), () => window.removeEventListener("resize", C);
|
|
5885
|
-
}, [
|
|
5911
|
+
}, [x]);
|
|
5886
5912
|
const P = me(() => {
|
|
5887
|
-
const C =
|
|
5913
|
+
const C = x();
|
|
5888
5914
|
return Math.max(0, t - C);
|
|
5889
|
-
}, [t,
|
|
5890
|
-
const C =
|
|
5915
|
+
}, [t, x])(), $ = me(() => {
|
|
5916
|
+
const C = x();
|
|
5891
5917
|
return C === 1 ? 1 : Math.max(1, Math.ceil(C / 2));
|
|
5892
|
-
}, [
|
|
5893
|
-
(C,
|
|
5918
|
+
}, [x]), q = me(
|
|
5919
|
+
(C, T = 0) => {
|
|
5894
5920
|
if (r) {
|
|
5895
5921
|
const D = E.current?.offsetWidth || window.innerWidth;
|
|
5896
|
-
return -(C * (100 + a)) +
|
|
5922
|
+
return -(C * (100 + a)) + T / D * 100;
|
|
5897
5923
|
}
|
|
5898
|
-
return -(C * (s + a)) +
|
|
5924
|
+
return -(C * (s + a)) + T;
|
|
5899
5925
|
},
|
|
5900
5926
|
[r, s, a]
|
|
5901
|
-
),
|
|
5927
|
+
), k = me(
|
|
5902
5928
|
(C) => {
|
|
5903
|
-
const
|
|
5929
|
+
const T = E.current?.offsetWidth || window.innerWidth, D = x(), H = $();
|
|
5904
5930
|
if (r)
|
|
5905
|
-
return Math.abs(C) /
|
|
5931
|
+
return Math.abs(C) / T * 100 > 30 ? 1 : 0;
|
|
5906
5932
|
{
|
|
5907
5933
|
const L = s + a, z = Math.abs(C) / L;
|
|
5908
5934
|
return z >= (D === 1 ? 0.2 : 0.3) ? D === 1 ? 1 : Math.min(Math.round(z), H) : 0;
|
|
5909
5935
|
}
|
|
5910
5936
|
},
|
|
5911
|
-
[r, s, a,
|
|
5937
|
+
[r, s, a, x, $]
|
|
5912
5938
|
), F = me(
|
|
5913
5939
|
(C) => {
|
|
5914
5940
|
o && (u(C), m(C), w(0), A(Date.now()), d(!0), document.body.classList.add("dragging"));
|
|
@@ -5917,7 +5943,7 @@ function Sl({
|
|
|
5917
5943
|
), K = me(
|
|
5918
5944
|
(C) => {
|
|
5919
5945
|
if (!l || !o) return;
|
|
5920
|
-
const
|
|
5946
|
+
const T = C - c, D = (s + a) * 1.2, H = e === 0 && T > 0, L = e === P && T < 0, z = H || L ? Math.sign(T) * Math.min(Math.abs(T), D) : T;
|
|
5921
5947
|
m(C), w(z);
|
|
5922
5948
|
},
|
|
5923
5949
|
[l, c, o, e, P, s, a]
|
|
@@ -5929,9 +5955,9 @@ function Sl({
|
|
|
5929
5955
|
), U = me(
|
|
5930
5956
|
(C) => {
|
|
5931
5957
|
if (!l || !o) return;
|
|
5932
|
-
const
|
|
5958
|
+
const T = h - c, D = Date.now() - g, H = Math.abs(T) / Math.max(D, 1), L = k(T), J = H > 0.5 && Math.abs(T) > 50 ? Math.max(L, 1) : L;
|
|
5933
5959
|
if (J > 0)
|
|
5934
|
-
if (
|
|
5960
|
+
if (T > 0) {
|
|
5935
5961
|
const Z = Math.max(0, e - J);
|
|
5936
5962
|
i(Z);
|
|
5937
5963
|
} else {
|
|
@@ -5949,11 +5975,11 @@ function Sl({
|
|
|
5949
5975
|
P,
|
|
5950
5976
|
o,
|
|
5951
5977
|
i,
|
|
5952
|
-
|
|
5978
|
+
k,
|
|
5953
5979
|
O,
|
|
5954
5980
|
b
|
|
5955
5981
|
]
|
|
5956
|
-
),
|
|
5982
|
+
), R = me(
|
|
5957
5983
|
(C) => {
|
|
5958
5984
|
C.preventDefault(), ["a", "span"].includes(C.target?.localName) && v(C.target), F(C.clientX);
|
|
5959
5985
|
},
|
|
@@ -5990,7 +6016,7 @@ function Sl({
|
|
|
5990
6016
|
getTranslateValue: q,
|
|
5991
6017
|
actualVisibleItems: S,
|
|
5992
6018
|
dragHandlers: {
|
|
5993
|
-
onMouseDown:
|
|
6019
|
+
onMouseDown: R,
|
|
5994
6020
|
onTouchStart: G,
|
|
5995
6021
|
onTouchMove: j,
|
|
5996
6022
|
onTouchEnd: X,
|
|
@@ -5998,7 +6024,7 @@ function Sl({
|
|
|
5998
6024
|
}
|
|
5999
6025
|
};
|
|
6000
6026
|
}
|
|
6001
|
-
function
|
|
6027
|
+
function xm(e) {
|
|
6002
6028
|
const {
|
|
6003
6029
|
children: t,
|
|
6004
6030
|
slot_id: s,
|
|
@@ -6032,11 +6058,11 @@ function Tm(e) {
|
|
|
6032
6058
|
onIndexChange: h
|
|
6033
6059
|
}), y = me(
|
|
6034
6060
|
(q) => {
|
|
6035
|
-
const
|
|
6036
|
-
h(
|
|
6061
|
+
const k = Math.max(0, Math.min(q, b));
|
|
6062
|
+
h(k);
|
|
6037
6063
|
},
|
|
6038
6064
|
[b]
|
|
6039
|
-
),
|
|
6065
|
+
), x = me(() => {
|
|
6040
6066
|
y(u - 1);
|
|
6041
6067
|
}, [u, y]), I = me(() => {
|
|
6042
6068
|
y(u + 1);
|
|
@@ -6048,7 +6074,7 @@ function Tm(e) {
|
|
|
6048
6074
|
"button",
|
|
6049
6075
|
{
|
|
6050
6076
|
className: "visible-arrow left",
|
|
6051
|
-
onClick:
|
|
6077
|
+
onClick: x,
|
|
6052
6078
|
"aria-label": "Previous slide",
|
|
6053
6079
|
style: { display: "flex" },
|
|
6054
6080
|
children: /* @__PURE__ */ n(
|
|
@@ -6108,7 +6134,7 @@ function Tm(e) {
|
|
|
6108
6134
|
justifyContent: "start !important"
|
|
6109
6135
|
},
|
|
6110
6136
|
...S,
|
|
6111
|
-
children: c && c.map((q,
|
|
6137
|
+
children: c && c.map((q, k) => typeof q == "string" ? /* @__PURE__ */ n(
|
|
6112
6138
|
"section",
|
|
6113
6139
|
{
|
|
6114
6140
|
className: "card",
|
|
@@ -6122,7 +6148,7 @@ function Tm(e) {
|
|
|
6122
6148
|
},
|
|
6123
6149
|
dangerouslySetInnerHTML: { __html: q }
|
|
6124
6150
|
},
|
|
6125
|
-
|
|
6151
|
+
k
|
|
6126
6152
|
) : /* @__PURE__ */ n(
|
|
6127
6153
|
"section",
|
|
6128
6154
|
{
|
|
@@ -6137,25 +6163,25 @@ function Tm(e) {
|
|
|
6137
6163
|
},
|
|
6138
6164
|
children: q
|
|
6139
6165
|
},
|
|
6140
|
-
|
|
6166
|
+
k
|
|
6141
6167
|
))
|
|
6142
6168
|
}
|
|
6143
6169
|
),
|
|
6144
6170
|
l && /* @__PURE__ */ n("nav", { className: "carrousel-pagination", children: Array.from(
|
|
6145
6171
|
{ length: Math.ceil(c.length / E) },
|
|
6146
|
-
(q,
|
|
6147
|
-
const F = Math.floor(u / E) ===
|
|
6172
|
+
(q, k) => {
|
|
6173
|
+
const F = Math.floor(u / E) === k;
|
|
6148
6174
|
return /* @__PURE__ */ n(
|
|
6149
6175
|
"li",
|
|
6150
6176
|
{
|
|
6151
6177
|
className: F ? "active" : "",
|
|
6152
|
-
onClick: () => y(
|
|
6178
|
+
onClick: () => y(k * E),
|
|
6153
6179
|
style: {
|
|
6154
6180
|
cursor: "pointer",
|
|
6155
6181
|
backgroundColor: F ? "var(--carrousel-pagination-background-color)" : "var(--carrousel-pagination-background-color-white)"
|
|
6156
6182
|
}
|
|
6157
6183
|
},
|
|
6158
|
-
|
|
6184
|
+
k
|
|
6159
6185
|
);
|
|
6160
6186
|
}
|
|
6161
6187
|
) })
|
|
@@ -6203,7 +6229,7 @@ function Ze(e) {
|
|
|
6203
6229
|
}
|
|
6204
6230
|
);
|
|
6205
6231
|
}
|
|
6206
|
-
const At = (e) => /* @__PURE__ */ n("div", { className: "su-flex su-flex-col sass-com-mid-content", children: e.children }),
|
|
6232
|
+
const At = (e) => /* @__PURE__ */ n("div", { className: "su-flex su-flex-col sass-com-mid-content", children: e.children }), xl = (e) => e.replace(
|
|
6207
6233
|
/<script\b([^>]*)>/gi,
|
|
6208
6234
|
(t, s) => (
|
|
6209
6235
|
// Reemplaza o agrega type="text/deferred-banner" para que el browser no ejecute
|
|
@@ -6215,7 +6241,7 @@ const At = (e) => /* @__PURE__ */ n("div", { className: "su-flex su-flex-col sas
|
|
|
6215
6241
|
if (!a?.value || !a.show) return null;
|
|
6216
6242
|
const r = qs(a.value, s);
|
|
6217
6243
|
if (!r) return null;
|
|
6218
|
-
const { CONFIG_deferBanners: o } = _(), i = Yt(r, {}), l = o?.middle !== !1 ?
|
|
6244
|
+
const { CONFIG_deferBanners: o } = _(), i = Yt(r, {}), l = o?.middle !== !1 ? xl(i) : i;
|
|
6219
6245
|
return /* @__PURE__ */ n(
|
|
6220
6246
|
"div",
|
|
6221
6247
|
{
|
|
@@ -6224,7 +6250,7 @@ const At = (e) => /* @__PURE__ */ n("div", { className: "su-flex su-flex-col sas
|
|
|
6224
6250
|
dangerouslySetInnerHTML: { __html: l }
|
|
6225
6251
|
}
|
|
6226
6252
|
);
|
|
6227
|
-
},
|
|
6253
|
+
}, Tl = (e) => e.replace(
|
|
6228
6254
|
/<script\b([^>]*)>/gi,
|
|
6229
6255
|
(t, s) => s.includes("type=") ? `<script ${s.replace(/type\s*=\s*["'][^"']*["']/i, 'type="text/deferred-banner"')}>` : `<script ${s} type="text/deferred-banner">`
|
|
6230
6256
|
), Se = ({ banners: e, name: t, scope: s }) => {
|
|
@@ -6232,7 +6258,7 @@ const At = (e) => /* @__PURE__ */ n("div", { className: "su-flex su-flex-col sas
|
|
|
6232
6258
|
if (!a?.show) return null;
|
|
6233
6259
|
const r = qs(a.value, s);
|
|
6234
6260
|
if (!r) return null;
|
|
6235
|
-
const o = Yt(r) ?? "", { CONFIG_deferBanners: i } = _(), l = i?.common !== !1 ?
|
|
6261
|
+
const o = Yt(r) ?? "", { CONFIG_deferBanners: i } = _(), l = i?.common !== !1 ? Tl(o) : o;
|
|
6236
6262
|
return /* @__PURE__ */ n(
|
|
6237
6263
|
"div",
|
|
6238
6264
|
{
|
|
@@ -6257,7 +6283,7 @@ function M(e) {
|
|
|
6257
6283
|
}
|
|
6258
6284
|
) : /* @__PURE__ */ n("a", { ...A, children: e.children });
|
|
6259
6285
|
}
|
|
6260
|
-
const Il = (e) => !!/([t][0-9]{4})\w+/.exec(e || ""),
|
|
6286
|
+
const Il = (e) => !!/([t][0-9]{4})\w+/.exec(e || ""), Tm = async (e) => {
|
|
6261
6287
|
const { showNewsLikeTitle: t = !1, hasShadow: s = !1 } = e, a = await fe(e?.preview?.sizes?.[0]?.url ?? "");
|
|
6262
6288
|
return e && e.info ? /* @__PURE__ */ p(
|
|
6263
6289
|
"section",
|
|
@@ -6398,7 +6424,7 @@ const Il = (e) => !!/([t][0-9]{4})\w+/.exec(e || ""), xm = async (e) => {
|
|
|
6398
6424
|
}, Mn = (e) => {
|
|
6399
6425
|
const { PUBLIC_ENV: t } = _(), s = de("/message.svg");
|
|
6400
6426
|
return t !== "" && !e.forceSVG ? /* @__PURE__ */ n("img", { fetchPriority: "low", loading: "lazy", src: s, alt: "", ...e }) : /* @__PURE__ */ n("svg", { width: "30", height: "30", viewBox: "0 0 30 30", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { d: "M15 4C21.0751 4 26 8.92487 26 15C26 16.2691 25.5577 17.9814 24.6729 20.1367L24.502 20.5459L25.5459 24.8428C25.5943 25.042 25.5804 25.2514 25.5059 25.4424C25.3194 25.92 24.8065 26.1738 24.3223 26.0469L24.2109 26.0107L20.4648 24.5488C18.1478 25.5163 16.326 26 15 26C8.92487 26 4 21.0751 4 15C4 8.92487 8.92487 4 15 4ZM15 5.5C9.75329 5.5 5.5 9.75329 5.5 15C5.5 20.2467 9.75329 24.5 15 24.5C16.0245 24.5 17.5449 24.1124 19.5127 23.3184L20.4453 22.9316L23.8623 24.2637L22.9268 20.417L23.2715 19.6006C24.0971 17.5954 24.5 16.0455 24.5 15C24.5 9.75329 20.2467 5.5 15 5.5Z", fill: "currentColor" }) });
|
|
6401
|
-
},
|
|
6427
|
+
}, kl = {
|
|
6402
6428
|
Whatsapp: {
|
|
6403
6429
|
url: (e) => `https://wa.me/?text=${encodeURIComponent(e)}`,
|
|
6404
6430
|
icon: {
|
|
@@ -6414,11 +6440,11 @@ const Il = (e) => !!/([t][0-9]{4})\w+/.exec(e || ""), xm = async (e) => {
|
|
|
6414
6440
|
}
|
|
6415
6441
|
}
|
|
6416
6442
|
};
|
|
6417
|
-
function
|
|
6443
|
+
function Rl({ noteShare: e }) {
|
|
6418
6444
|
const t = e && e.url || (typeof window < "u" ? window.location.href : "https://example.com");
|
|
6419
6445
|
return e ? /* @__PURE__ */ p("div", { className: "sass-com-nd-socialNetworkSection sass-news-description-social-network-section", children: [
|
|
6420
6446
|
e.options?.map((s) => {
|
|
6421
|
-
const a =
|
|
6447
|
+
const a = kl[s];
|
|
6422
6448
|
if (!a) return null;
|
|
6423
6449
|
const r = e.variant === "outline" ? a.icon.outline : a.icon.solid, o = a.url(t);
|
|
6424
6450
|
return /* @__PURE__ */ n(
|
|
@@ -6545,7 +6571,7 @@ const Pa = ({
|
|
|
6545
6571
|
style: { width: "100%" },
|
|
6546
6572
|
"data-hydrate": "ShareButtons",
|
|
6547
6573
|
"data-props": encodeURIComponent(JSON.stringify({ noteShare: t })),
|
|
6548
|
-
children: /* @__PURE__ */ n(
|
|
6574
|
+
children: /* @__PURE__ */ n(Rl, { noteShare: { ...t } })
|
|
6549
6575
|
}
|
|
6550
6576
|
),
|
|
6551
6577
|
/* @__PURE__ */ n(m, {}),
|
|
@@ -8126,7 +8152,7 @@ const Ll = (e) => {
|
|
|
8126
8152
|
) }) })
|
|
8127
8153
|
}
|
|
8128
8154
|
);
|
|
8129
|
-
},
|
|
8155
|
+
}, Re = (e) => {
|
|
8130
8156
|
const { PUBLIC_ENV: t } = _(), s = de("/x.svg");
|
|
8131
8157
|
return t !== "" && !e.forceSVG ? /* @__PURE__ */ n("img", { fetchPriority: "low", loading: "lazy", src: s, alt: "", width: 23, height: 23, ...e }) : /* @__PURE__ */ n("svg", { ...e, width: 28, height: 28, version: "1.1", baseProfile: "tiny", id: "Layer_1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", x: "0px", y: "0px", viewBox: "0 0 30 30", overflow: "visible", xmlSpace: "preserve", children: /* @__PURE__ */ n("path", { fill: "currentColor", d: "M5.9,6.1l7.1,9.8l-7.1,7.9h1.6l6.2-7l5,7h5.4l-7.5-10.3l6.6-7.4h-1.6L16,12.5l-4.6-6.4L5.9,6.1L5.9,6.1zM8.2,7.4h2.5l11,15.3h-2.5L8.2,7.4z" }) });
|
|
8132
8158
|
}, Vl = (e) => {
|
|
@@ -8166,11 +8192,11 @@ const Ll = (e) => {
|
|
|
8166
8192
|
whatsapp: (e) => /* @__PURE__ */ n(Hl, { ...e }),
|
|
8167
8193
|
tiktok: (e) => /* @__PURE__ */ n(Fl, { ...e }),
|
|
8168
8194
|
youtube: (e) => /* @__PURE__ */ n(Vl, { ...e }),
|
|
8169
|
-
x: (e) => /* @__PURE__ */ n(
|
|
8195
|
+
x: (e) => /* @__PURE__ */ n(Re, { ...e }),
|
|
8170
8196
|
gnews: (e) => /* @__PURE__ */ n(ql, { ...e }),
|
|
8171
8197
|
podcast: (e) => /* @__PURE__ */ n(jl, { ...e }),
|
|
8172
8198
|
telegram: (e) => /* @__PURE__ */ n(Gl, { ...e })
|
|
8173
|
-
},
|
|
8199
|
+
}, km = (e) => {
|
|
8174
8200
|
const { freeZone: t, socials: s, menu: a, customBlock: r, custom_styles: o = {} } = e;
|
|
8175
8201
|
return /* @__PURE__ */ p(
|
|
8176
8202
|
"footer",
|
|
@@ -8244,7 +8270,7 @@ const Ll = (e) => {
|
|
|
8244
8270
|
]
|
|
8245
8271
|
}
|
|
8246
8272
|
);
|
|
8247
|
-
},
|
|
8273
|
+
}, xt = (e) => {
|
|
8248
8274
|
const { PUBLIC_ENV: t } = _(), s = de("/facebook-black.svg");
|
|
8249
8275
|
return t !== "" && !e.forceSVG ? /* @__PURE__ */ n("img", { fetchPriority: "low", loading: "lazy", width: 17, height: 23, src: s, alt: "", ...e }) : /* @__PURE__ */ n(
|
|
8250
8276
|
"svg",
|
|
@@ -8373,14 +8399,14 @@ const Ll = (e) => {
|
|
|
8373
8399
|
url: (e) => `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,
|
|
8374
8400
|
icon: {
|
|
8375
8401
|
outline: (e) => /* @__PURE__ */ n(Ks, { className: e, forceSVG: !0 }),
|
|
8376
|
-
solid: (e) => /* @__PURE__ */ n(
|
|
8402
|
+
solid: (e) => /* @__PURE__ */ n(xt, { className: e, forceSVG: !0 })
|
|
8377
8403
|
}
|
|
8378
8404
|
},
|
|
8379
8405
|
X: {
|
|
8380
8406
|
url: (e) => `https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,
|
|
8381
8407
|
icon: {
|
|
8382
|
-
outline: (e) => /* @__PURE__ */ n(
|
|
8383
|
-
solid: (e) => /* @__PURE__ */ n(
|
|
8408
|
+
outline: (e) => /* @__PURE__ */ n(Re, { className: e, forceSVG: !0 }),
|
|
8409
|
+
solid: (e) => /* @__PURE__ */ n(Re, { className: e, forceSVG: !0 })
|
|
8384
8410
|
}
|
|
8385
8411
|
},
|
|
8386
8412
|
Whatsapp: {
|
|
@@ -8449,7 +8475,7 @@ function zl({ noteShare: e }) {
|
|
|
8449
8475
|
)
|
|
8450
8476
|
] }) : null;
|
|
8451
8477
|
}
|
|
8452
|
-
const
|
|
8478
|
+
const Rm = (e) => {
|
|
8453
8479
|
const t = () => e?.video.main.author ? `${e?.video.main.author} - ${Be(
|
|
8454
8480
|
e.video.info.date.created
|
|
8455
8481
|
)}` : e?.video.main.author;
|
|
@@ -8807,7 +8833,7 @@ const km = (e) => {
|
|
|
8807
8833
|
target: "_blank",
|
|
8808
8834
|
className: `sass-com-ah1-social-link ${a ? "sass-com-ah1-social-filled" : "sass-com-ah1-social-stroke"}`,
|
|
8809
8835
|
rel: "noreferrer",
|
|
8810
|
-
children: a ? /* @__PURE__ */ n(
|
|
8836
|
+
children: a ? /* @__PURE__ */ n(xt, { className: "sass-com-ah1-social-icon sass-social-icon-facebook", forceSVG: !0 }) : /* @__PURE__ */ n(rs, { className: "sass-com-ah1-facebook-icon sass-com-ah1-social-icon-facebook", forceSVG: !0 })
|
|
8811
8837
|
}
|
|
8812
8838
|
),
|
|
8813
8839
|
m && /* @__PURE__ */ n(
|
|
@@ -8827,7 +8853,7 @@ const km = (e) => {
|
|
|
8827
8853
|
target: "_blank",
|
|
8828
8854
|
className: "sass-com-ah1-social-link",
|
|
8829
8855
|
rel: "noreferrer",
|
|
8830
|
-
children: /* @__PURE__ */ n(
|
|
8856
|
+
children: /* @__PURE__ */ n(Re, { className: "sass-com-ah1-social-icon sass-com-ah1-social-icon-x", forceSVG: !0 })
|
|
8831
8857
|
}
|
|
8832
8858
|
),
|
|
8833
8859
|
w && /* @__PURE__ */ n(
|
|
@@ -8884,7 +8910,7 @@ const km = (e) => {
|
|
|
8884
8910
|
target: "_blank",
|
|
8885
8911
|
className: a ? "sass-com-ah2-socialIconFilled" : "sass-com-ah2-socialIconStroke",
|
|
8886
8912
|
rel: "noreferrer",
|
|
8887
|
-
children: a ? /* @__PURE__ */ n(
|
|
8913
|
+
children: a ? /* @__PURE__ */ n(xt, { className: "sass-com-ah2-blackIconFaceBook sass-com-ah2-socialIcon sass-com-ah2-social-icon-facebook", forceSVG: !0 }) : /* @__PURE__ */ n(rs, { className: "sass-com-ah2-socialIcon sass-com-ah2-social-icon-facebook", forceSVG: !0 })
|
|
8888
8914
|
}
|
|
8889
8915
|
),
|
|
8890
8916
|
m && /* @__PURE__ */ n(
|
|
@@ -8908,7 +8934,7 @@ const km = (e) => {
|
|
|
8908
8934
|
href: f,
|
|
8909
8935
|
target: "_blank",
|
|
8910
8936
|
rel: "noreferrer",
|
|
8911
|
-
children: /* @__PURE__ */ n(
|
|
8937
|
+
children: /* @__PURE__ */ n(Re, { className: "sass-com-ah2-socialIcon sass-com-ah2-social-icon-x", forceSVG: !0 })
|
|
8912
8938
|
}
|
|
8913
8939
|
),
|
|
8914
8940
|
w && /* @__PURE__ */ n(
|
|
@@ -9996,7 +10022,7 @@ const km = (e) => {
|
|
|
9996
10022
|
target: "_blank",
|
|
9997
10023
|
className: "sass-com-th-socialIconLink",
|
|
9998
10024
|
rel: "noreferrer",
|
|
9999
|
-
children: /* @__PURE__ */ n(
|
|
10025
|
+
children: /* @__PURE__ */ n(Re, { className: "sass-com-th-socialIcon", forceSVG: !0 })
|
|
10000
10026
|
}
|
|
10001
10027
|
),
|
|
10002
10028
|
o && /* @__PURE__ */ n(
|
|
@@ -10143,7 +10169,7 @@ function Hm(e) {
|
|
|
10143
10169
|
if (!y?.code) return null;
|
|
10144
10170
|
const I = /src\s*=\s*"([^"]+)"/.exec(y.code), P = I ? I[1] : null;
|
|
10145
10171
|
if (!P) return null;
|
|
10146
|
-
const $ = r.original?.url ?? r.sizes?.[0]?.url ?? "", q = nt() ?? "",
|
|
10172
|
+
const $ = r.original?.url ?? r.sizes?.[0]?.url ?? "", q = nt() ?? "", k = $.startsWith("http") || $.includes(q) || q === "" ? $ : q + $;
|
|
10147
10173
|
return /* @__PURE__ */ n(
|
|
10148
10174
|
"iframe",
|
|
10149
10175
|
{
|
|
@@ -10152,13 +10178,13 @@ function Hm(e) {
|
|
|
10152
10178
|
frameBorder: "0",
|
|
10153
10179
|
allowFullScreen: !0,
|
|
10154
10180
|
style: {
|
|
10155
|
-
"--thumbnail-url": `url(${
|
|
10181
|
+
"--thumbnail-url": `url(${k})`
|
|
10156
10182
|
}
|
|
10157
10183
|
}
|
|
10158
10184
|
);
|
|
10159
10185
|
}, E = () => {
|
|
10160
|
-
const
|
|
10161
|
-
return
|
|
10186
|
+
const x = e.gallery ?? [];
|
|
10187
|
+
return x.length ? /* @__PURE__ */ n(
|
|
10162
10188
|
Ze,
|
|
10163
10189
|
{
|
|
10164
10190
|
slot_id: "home-card_" + e.info.link.url,
|
|
@@ -10166,7 +10192,7 @@ function Hm(e) {
|
|
|
10166
10192
|
visibleItems: 1,
|
|
10167
10193
|
pagination: !0,
|
|
10168
10194
|
cardGap: 0,
|
|
10169
|
-
children:
|
|
10195
|
+
children: x.map((I, P) => {
|
|
10170
10196
|
const $ = I?.url || I?.id || `gallery-${P}`;
|
|
10171
10197
|
return /* @__PURE__ */ n(
|
|
10172
10198
|
M,
|
|
@@ -11493,7 +11519,7 @@ const Vm = (e) => {
|
|
|
11493
11519
|
} catch {
|
|
11494
11520
|
return null;
|
|
11495
11521
|
}
|
|
11496
|
-
},
|
|
11522
|
+
}, xc = async ({
|
|
11497
11523
|
newsformated: e,
|
|
11498
11524
|
internal: t,
|
|
11499
11525
|
commonServices: s
|
|
@@ -11521,12 +11547,12 @@ const Vm = (e) => {
|
|
|
11521
11547
|
videoYouTube: "videoYouTube",
|
|
11522
11548
|
iframe: "iframe",
|
|
11523
11549
|
fotoGaleria: "fotogaleria"
|
|
11524
|
-
},
|
|
11550
|
+
}, Tc = {
|
|
11525
11551
|
[We.videoEmbedded]: Sc,
|
|
11526
11552
|
[We.videoYouTube]: Ec,
|
|
11527
|
-
[We.iframe]:
|
|
11553
|
+
[We.iframe]: xc
|
|
11528
11554
|
}, Ic = ({ news: e, commonServices: t }) => {
|
|
11529
|
-
const { config: s, info: a } = e, r = s.articlepreview, o = a.link.internal, i = r ?
|
|
11555
|
+
const { config: s, info: a } = e, r = s.articlepreview, o = a.link.internal, i = r ? Tc[r] : null;
|
|
11530
11556
|
return i ? /* @__PURE__ */ n("div", { className: "sass-pg-nap-content", children: /* @__PURE__ */ n(
|
|
11531
11557
|
i,
|
|
11532
11558
|
{
|
|
@@ -11632,7 +11658,7 @@ const Vm = (e) => {
|
|
|
11632
11658
|
}
|
|
11633
11659
|
)
|
|
11634
11660
|
] });
|
|
11635
|
-
},
|
|
11661
|
+
}, kc = (e) => /* @__PURE__ */ n("section", { className: "su-w-full sass-com-ccard-content", id: e.id, children: e.children }), Rc = async (e, t, s) => {
|
|
11636
11662
|
if (!s) return e;
|
|
11637
11663
|
const a = /(<div[^>]*class=["'][^"']*ck-related-news[^"']*["'][^>]*>[\s\S]*?<span\b[^>]*data-src="([^"]+)"[^>]*>[\s\S]*?<\/span>[\s\S]*?<\/div>\s*<\/div>)/g, r = [...e.matchAll(a)];
|
|
11638
11664
|
let o = e;
|
|
@@ -11640,7 +11666,7 @@ const Vm = (e) => {
|
|
|
11640
11666
|
const l = i[1], d = i[2] ?? "";
|
|
11641
11667
|
let c;
|
|
11642
11668
|
if (s.forEach((y) => {
|
|
11643
|
-
Array.isArray(y) && !c && (c = y.find((
|
|
11669
|
+
Array.isArray(y) && !c && (c = y.find((x) => d.replaceAll("/", "|").includes(x?.info.link.internal || "")));
|
|
11644
11670
|
}), !c) {
|
|
11645
11671
|
const y = l.replace(
|
|
11646
11672
|
/class=["']([^"']*ck-related-news[^"']*)["']/,
|
|
@@ -11651,10 +11677,10 @@ const Vm = (e) => {
|
|
|
11651
11677
|
}
|
|
11652
11678
|
const u = c.preview?.sizes?.[0], h = u ? await fe(u.url) : "", m = c.info.section?.url ?? "#", f = c.info.section?.name ?? "Sección", w = c.info.link?.url ?? "#", g = c.main?.title.article ?? "Título", A = (await Promise.all(
|
|
11653
11679
|
c.preview?.sizes?.map(async (y) => {
|
|
11654
|
-
const
|
|
11655
|
-
return y.width < 200 ? `<source srcset="${
|
|
11680
|
+
const x = await fe(y.url);
|
|
11681
|
+
return y.width < 200 ? `<source srcset="${x}" media="(width < 750px)"/>` : `<source srcset="${x}" media="(width >= 750px)"/>`;
|
|
11656
11682
|
}) || []
|
|
11657
|
-
)).reduce((y,
|
|
11683
|
+
)).reduce((y, x) => y += x, ""), b = l.match(/<span\b[^>]*data-src="[^"]+"[^>]*>[\s\S]*?<\/span>/), v = b ? b[0] : "", E = `
|
|
11658
11684
|
<span data-src="${d}">
|
|
11659
11685
|
<picture style='display: flex'>
|
|
11660
11686
|
${A}
|
|
@@ -11769,7 +11795,7 @@ const _c = async ({
|
|
|
11769
11795
|
};
|
|
11770
11796
|
});
|
|
11771
11797
|
return /* @__PURE__ */ n("section", { className: "sass-com-bnl-content", id: "block-notes-list", children: l?.map(async (d, c) => /* @__PURE__ */ p(Es, { children: [
|
|
11772
|
-
/* @__PURE__ */ n(
|
|
11798
|
+
/* @__PURE__ */ n(kc, { id: `item-${c + 1}`, children: /* @__PURE__ */ p("div", { className: "sass-com-bnl-contentWithinCard", children: [
|
|
11773
11799
|
(await d).date > 0 && /* @__PURE__ */ p("div", { className: "sass-com-bnl-contentDate", children: [
|
|
11774
11800
|
/* @__PURE__ */ n(
|
|
11775
11801
|
"span",
|
|
@@ -11798,7 +11824,7 @@ const _c = async ({
|
|
|
11798
11824
|
{
|
|
11799
11825
|
className: "contentTextList sass-com-bnl-contentTextList",
|
|
11800
11826
|
dangerouslySetInnerHTML: {
|
|
11801
|
-
__html: await
|
|
11827
|
+
__html: await Rc(
|
|
11802
11828
|
(await d).body.rendered.replace(/ /g, ""),
|
|
11803
11829
|
a,
|
|
11804
11830
|
o
|
|
@@ -12095,14 +12121,14 @@ const Vc = (e) => /* @__PURE__ */ n(
|
|
|
12095
12121
|
url: (e) => `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,
|
|
12096
12122
|
icon: {
|
|
12097
12123
|
outline: (e) => /* @__PURE__ */ n(Ks, { className: e, forceSVG: !0 }),
|
|
12098
|
-
solid: (e) => /* @__PURE__ */ n(
|
|
12124
|
+
solid: (e) => /* @__PURE__ */ n(xt, { className: e, forceSVG: !0 })
|
|
12099
12125
|
}
|
|
12100
12126
|
},
|
|
12101
12127
|
X: {
|
|
12102
12128
|
url: (e) => `https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,
|
|
12103
12129
|
icon: {
|
|
12104
|
-
outline: (e) => /* @__PURE__ */ n(
|
|
12105
|
-
solid: (e) => /* @__PURE__ */ n(
|
|
12130
|
+
outline: (e) => /* @__PURE__ */ n(Re, { className: e, forceSVG: !0 }),
|
|
12131
|
+
solid: (e) => /* @__PURE__ */ n(Re, { className: e, forceSVG: !0 })
|
|
12106
12132
|
}
|
|
12107
12133
|
},
|
|
12108
12134
|
Whatsapp: {
|
|
@@ -12355,14 +12381,14 @@ const Wc = async (e) => {
|
|
|
12355
12381
|
url: (e) => `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,
|
|
12356
12382
|
icon: {
|
|
12357
12383
|
outline: (e) => /* @__PURE__ */ n(Ks, { className: e, forceSVG: !0 }),
|
|
12358
|
-
solid: (e) => /* @__PURE__ */ n(
|
|
12384
|
+
solid: (e) => /* @__PURE__ */ n(xt, { className: e, forceSVG: !0 })
|
|
12359
12385
|
}
|
|
12360
12386
|
},
|
|
12361
12387
|
X: {
|
|
12362
12388
|
url: (e) => `https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,
|
|
12363
12389
|
icon: {
|
|
12364
|
-
outline: (e) => /* @__PURE__ */ n(
|
|
12365
|
-
solid: (e) => /* @__PURE__ */ n(
|
|
12390
|
+
outline: (e) => /* @__PURE__ */ n(Re, { className: e, forceSVG: !0 }),
|
|
12391
|
+
solid: (e) => /* @__PURE__ */ n(Re, { className: e, forceSVG: !0 })
|
|
12366
12392
|
}
|
|
12367
12393
|
},
|
|
12368
12394
|
Whatsapp: {
|
|
@@ -12691,7 +12717,7 @@ const Kc = async (e) => {
|
|
|
12691
12717
|
const $ = v.match(/w:(\d+)/), q = v.match(/h:(\d+)/);
|
|
12692
12718
|
E = $ ? parseInt($[1]) : 0, S = q ? parseInt(q[1]) : 0;
|
|
12693
12719
|
}
|
|
12694
|
-
const
|
|
12720
|
+
const x = {
|
|
12695
12721
|
preview: {
|
|
12696
12722
|
sizes: [
|
|
12697
12723
|
{
|
|
@@ -12712,7 +12738,7 @@ const Kc = async (e) => {
|
|
|
12712
12738
|
},
|
|
12713
12739
|
isLarge: !1,
|
|
12714
12740
|
priorityHigh: !1
|
|
12715
|
-
}, P = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(
|
|
12741
|
+
}, P = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(x))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;
|
|
12716
12742
|
a = a.replace(u, P), o.lastIndex = 0;
|
|
12717
12743
|
}
|
|
12718
12744
|
const l = /<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g, d = [...a.matchAll(l)];
|
|
@@ -12746,8 +12772,8 @@ const Kc = async (e) => {
|
|
|
12746
12772
|
},
|
|
12747
12773
|
isLarge: !1,
|
|
12748
12774
|
priorityHigh: !1
|
|
12749
|
-
},
|
|
12750
|
-
a = a.replace(u,
|
|
12775
|
+
}, x = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(S))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;
|
|
12776
|
+
a = a.replace(u, x);
|
|
12751
12777
|
}
|
|
12752
12778
|
return a;
|
|
12753
12779
|
}, td = (e) => e.replace(
|
|
@@ -12890,7 +12916,7 @@ async function rd(e, t) {
|
|
|
12890
12916
|
let S = "";
|
|
12891
12917
|
const y = m.match(
|
|
12892
12918
|
/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i
|
|
12893
|
-
),
|
|
12919
|
+
), x = y && y[1] ? y[1].trim() : "";
|
|
12894
12920
|
E.info && E.info.type === "video-youtube" ? S = `<iframe
|
|
12895
12921
|
loading="lazy"
|
|
12896
12922
|
frameborder="0"
|
|
@@ -12906,7 +12932,7 @@ async function rd(e, t) {
|
|
|
12906
12932
|
allowfullscreen
|
|
12907
12933
|
style="position: relative!important;"
|
|
12908
12934
|
src="${E.main?.code || ""}"></iframe>` : S = E.main?.code || "";
|
|
12909
|
-
const I =
|
|
12935
|
+
const I = x || E.main?.description || "";
|
|
12910
12936
|
A = `
|
|
12911
12937
|
<figure class="videoFigure">
|
|
12912
12938
|
${v && v.data && v.data.data ? `<script type="application/ld+json">${$t(
|
|
@@ -13303,13 +13329,13 @@ function Zm({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
13303
13329
|
}
|
|
13304
13330
|
const y = encodeURIComponent(window.location.pathname);
|
|
13305
13331
|
window.location.href = `/api/auth/login?redirect=${y}`;
|
|
13306
|
-
}, b = (y,
|
|
13307
|
-
l((I) => ({ ...I, [y]:
|
|
13332
|
+
}, b = (y, x) => {
|
|
13333
|
+
l((I) => ({ ...I, [y]: x }));
|
|
13308
13334
|
}, v = async (y) => {
|
|
13309
13335
|
y.preventDefault(), f(null), h(!0);
|
|
13310
13336
|
try {
|
|
13311
|
-
const
|
|
13312
|
-
if (
|
|
13337
|
+
const x = Object.keys(r).filter((F) => !["username", "password", "confirmPassword"].includes(F)).map((F) => ({ Name: F, Value: i[F] }));
|
|
13338
|
+
if (x.some((F) => {
|
|
13313
13339
|
if (!F.Value || F.Value.trim() === "") return !0;
|
|
13314
13340
|
}))
|
|
13315
13341
|
return h(!1), f(a.errorCompleteFields);
|
|
@@ -13325,24 +13351,24 @@ function Zm({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
13325
13351
|
return;
|
|
13326
13352
|
}
|
|
13327
13353
|
const $ = Math.floor(Date.now() / 1e3);
|
|
13328
|
-
|
|
13354
|
+
x.push({ Name: "updated_at", Value: String($) });
|
|
13329
13355
|
const q = t.PUBLIC_ENV === "local" ? "token" : await us(
|
|
13330
13356
|
"comment_register",
|
|
13331
13357
|
t.CAPTCHA_KEY ?? ""
|
|
13332
13358
|
);
|
|
13333
13359
|
if (!q) throw new Error("Captcha token no generado");
|
|
13334
|
-
const
|
|
13360
|
+
const k = await fetch("/api/auth/create-user", {
|
|
13335
13361
|
method: "POST",
|
|
13336
13362
|
headers: { "Content-Type": "application/json" },
|
|
13337
13363
|
body: JSON.stringify({
|
|
13338
13364
|
username: i.email,
|
|
13339
13365
|
password: i.password,
|
|
13340
|
-
userAttributes:
|
|
13366
|
+
userAttributes: x,
|
|
13341
13367
|
token: q
|
|
13342
13368
|
})
|
|
13343
13369
|
});
|
|
13344
|
-
if (!
|
|
13345
|
-
const F = await
|
|
13370
|
+
if (!k.ok) {
|
|
13371
|
+
const F = await k.json().catch(() => ({}));
|
|
13346
13372
|
if (F.code === "UsernameExistsException") {
|
|
13347
13373
|
await fetch("/api/auth/resend-code", {
|
|
13348
13374
|
method: "POST",
|
|
@@ -13354,8 +13380,8 @@ function Zm({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
13354
13380
|
throw new Error(F?.error || "Error al crear usuario");
|
|
13355
13381
|
}
|
|
13356
13382
|
g("confirm");
|
|
13357
|
-
} catch (
|
|
13358
|
-
console.log(
|
|
13383
|
+
} catch (x) {
|
|
13384
|
+
console.log(x), f(x?.message || x?.error || a.errorUnexpected);
|
|
13359
13385
|
} finally {
|
|
13360
13386
|
h(!1);
|
|
13361
13387
|
}
|
|
@@ -13366,7 +13392,7 @@ function Zm({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
13366
13392
|
}
|
|
13367
13393
|
f(null), h(!0);
|
|
13368
13394
|
try {
|
|
13369
|
-
const
|
|
13395
|
+
const x = await fetch("/api/auth/confirm-user", {
|
|
13370
13396
|
method: "POST",
|
|
13371
13397
|
headers: { "Content-Type": "application/json" },
|
|
13372
13398
|
body: JSON.stringify({
|
|
@@ -13374,13 +13400,13 @@ function Zm({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
13374
13400
|
code: i.confirmationCode
|
|
13375
13401
|
})
|
|
13376
13402
|
});
|
|
13377
|
-
if (!
|
|
13378
|
-
const I = await
|
|
13403
|
+
if (!x.ok) {
|
|
13404
|
+
const I = await x.json().catch(() => ({}));
|
|
13379
13405
|
throw new Error(I?.error || "Error al confirmar usuario");
|
|
13380
13406
|
}
|
|
13381
13407
|
g("success");
|
|
13382
|
-
} catch (
|
|
13383
|
-
f(
|
|
13408
|
+
} catch (x) {
|
|
13409
|
+
f(x?.message || a.errorUnexpected);
|
|
13384
13410
|
} finally {
|
|
13385
13411
|
h(!1);
|
|
13386
13412
|
}
|
|
@@ -13406,8 +13432,8 @@ function Zm({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
13406
13432
|
className: "sass-pg-login-form",
|
|
13407
13433
|
"data-error": m ? "true" : "false",
|
|
13408
13434
|
children: [
|
|
13409
|
-
/* @__PURE__ */ n("ul", { className: "sass-pg-login-formUl", children: Object.entries(r).map(([y, { label:
|
|
13410
|
-
/* @__PURE__ */ n("label", { className: "sass-pg-login-label", children:
|
|
13435
|
+
/* @__PURE__ */ n("ul", { className: "sass-pg-login-formUl", children: Object.entries(r).map(([y, { label: x }]) => /* @__PURE__ */ p("div", { className: "sass-pg-login-field", children: [
|
|
13436
|
+
/* @__PURE__ */ n("label", { className: "sass-pg-login-label", children: x }),
|
|
13411
13437
|
/* @__PURE__ */ n(
|
|
13412
13438
|
"input",
|
|
13413
13439
|
{
|
|
@@ -13558,13 +13584,13 @@ function Xm({
|
|
|
13558
13584
|
const s = { ...md, ...t?.comentarios }, [a, r] = Y("login"), [o, i] = Y(""), [l, d] = Y(""), [c, u] = Y(""), [h, m] = Y(""), [f, w] = Y(""), [g, A] = Y(!1), [b, v] = Y(!1), [E, S] = Y(null);
|
|
13559
13585
|
he.useEffect(() => {
|
|
13560
13586
|
if (typeof window > "u") return;
|
|
13561
|
-
window.location.hash.includes("forgot") && a === "login" && r("forgot"), a === "login" &&
|
|
13587
|
+
window.location.hash.includes("forgot") && a === "login" && r("forgot"), a === "login" && x();
|
|
13562
13588
|
});
|
|
13563
|
-
const y = (
|
|
13589
|
+
const y = (k) => document.cookie.split("; ").find((F) => F.startsWith(k + "="))?.split("=")[1], x = async () => {
|
|
13564
13590
|
if (document.cookie.search(e.COGNITO_AUTH_PREFIX + "IS_AUTH=true") !== -1) {
|
|
13565
13591
|
if (!window) return;
|
|
13566
|
-
const
|
|
13567
|
-
console.log("Redirect path after login:",
|
|
13592
|
+
const k = y("redirect_after_login_1");
|
|
13593
|
+
console.log("Redirect path after login:", k, document.cookie, document.cookie.search("redirect_after_login_1=") !== -1), k && k !== "" ? (window.location.pathname = k, window.location.hash = "comentarios") : window.location.pathname = "/auth/success";
|
|
13568
13594
|
}
|
|
13569
13595
|
};
|
|
13570
13596
|
return /* @__PURE__ */ p(ee, { children: [
|
|
@@ -13579,9 +13605,9 @@ function Xm({
|
|
|
13579
13605
|
setEmail: i,
|
|
13580
13606
|
setPassword: d,
|
|
13581
13607
|
setShowPassword: A,
|
|
13582
|
-
onSubmit: async (
|
|
13608
|
+
onSubmit: async (k) => {
|
|
13583
13609
|
if (!b) {
|
|
13584
|
-
if (
|
|
13610
|
+
if (k.preventDefault(), o === "" || l === "") {
|
|
13585
13611
|
S("Complete todos los campos");
|
|
13586
13612
|
return;
|
|
13587
13613
|
}
|
|
@@ -13599,7 +13625,7 @@ function Xm({
|
|
|
13599
13625
|
const O = await K.json().catch(() => ({}));
|
|
13600
13626
|
throw new Error(O?.error || "Ha ocurrido un error");
|
|
13601
13627
|
}
|
|
13602
|
-
await
|
|
13628
|
+
await x();
|
|
13603
13629
|
return;
|
|
13604
13630
|
} catch (F) {
|
|
13605
13631
|
S(F?.message || "Error inesperado");
|
|
@@ -13616,9 +13642,9 @@ function Xm({
|
|
|
13616
13642
|
await fetch("/api/auth/debug-login", { method: "GET", credentials: "include" });
|
|
13617
13643
|
return;
|
|
13618
13644
|
}
|
|
13619
|
-
let
|
|
13645
|
+
let k = "/auth/login";
|
|
13620
13646
|
const F = y("redirect_after_login_1");
|
|
13621
|
-
F && F !== "" && (
|
|
13647
|
+
F && F !== "" && (k = F), window.location.href = `/api/auth/login?redirect=${k}`;
|
|
13622
13648
|
},
|
|
13623
13649
|
t: s
|
|
13624
13650
|
}
|
|
@@ -13630,9 +13656,9 @@ function Xm({
|
|
|
13630
13656
|
setEmail: i,
|
|
13631
13657
|
loading: b,
|
|
13632
13658
|
error: E,
|
|
13633
|
-
onSubmit: async (
|
|
13659
|
+
onSubmit: async (k) => {
|
|
13634
13660
|
if (!b) {
|
|
13635
|
-
|
|
13661
|
+
k.preventDefault(), S(null), v(!0);
|
|
13636
13662
|
try {
|
|
13637
13663
|
const F = await fetch("/api/auth/forgot-password", {
|
|
13638
13664
|
method: "POST",
|
|
@@ -13671,9 +13697,9 @@ function Xm({
|
|
|
13671
13697
|
setNewPassword: m,
|
|
13672
13698
|
setConfirmNewPassword: w,
|
|
13673
13699
|
setShowPassword: A,
|
|
13674
|
-
onSubmit: async (
|
|
13700
|
+
onSubmit: async (k) => {
|
|
13675
13701
|
if (b) return;
|
|
13676
|
-
if (
|
|
13702
|
+
if (k.preventDefault(), h !== f) {
|
|
13677
13703
|
S("Las contraseñas no coinciden");
|
|
13678
13704
|
return;
|
|
13679
13705
|
}
|
|
@@ -14544,7 +14570,7 @@ const De = 300, Pe = {
|
|
|
14544
14570
|
firstname: "Usuario",
|
|
14545
14571
|
lastname: "Anonimo"
|
|
14546
14572
|
};
|
|
14547
|
-
function
|
|
14573
|
+
function xd(e) {
|
|
14548
14574
|
const t = e.split(" ");
|
|
14549
14575
|
if (t.length !== 3) return e;
|
|
14550
14576
|
const [s, a, r] = t, o = a.charAt(0).toUpperCase() + a.slice(1).toLowerCase();
|
|
@@ -14562,7 +14588,7 @@ const cs = (e, t, s) => {
|
|
|
14562
14588
|
} catch {
|
|
14563
14589
|
return [];
|
|
14564
14590
|
}
|
|
14565
|
-
},
|
|
14591
|
+
}, Td = (e, t) => {
|
|
14566
14592
|
const s = Ya(e);
|
|
14567
14593
|
s.includes(t) || (s.push(t), e.cookie = `reported=${encodeURIComponent(
|
|
14568
14594
|
JSON.stringify(s)
|
|
@@ -14579,7 +14605,7 @@ function Id(e) {
|
|
|
14579
14605
|
let l = "";
|
|
14580
14606
|
return o.length <= 2 ? l = o[0] + "*" : l = o[0] + "*".repeat(o.length - 2) + o[o.length - 1], `${a}@${l}${i}`;
|
|
14581
14607
|
}
|
|
14582
|
-
var
|
|
14608
|
+
var kt = { exports: {} }, Rt = { exports: {} }, ie = {};
|
|
14583
14609
|
var Hn;
|
|
14584
14610
|
function Ud() {
|
|
14585
14611
|
if (Hn) return ie;
|
|
@@ -14587,8 +14613,8 @@ function Ud() {
|
|
|
14587
14613
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, s = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, a = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, r = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, i = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, l = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, d = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, h = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, f = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, w = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, A = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, b = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, v = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
14588
14614
|
function E(y) {
|
|
14589
14615
|
if (typeof y == "object" && y !== null) {
|
|
14590
|
-
var
|
|
14591
|
-
switch (
|
|
14616
|
+
var x = y.$$typeof;
|
|
14617
|
+
switch (x) {
|
|
14592
14618
|
case t:
|
|
14593
14619
|
switch (y = y.type, y) {
|
|
14594
14620
|
case d:
|
|
@@ -14607,11 +14633,11 @@ function Ud() {
|
|
|
14607
14633
|
case i:
|
|
14608
14634
|
return y;
|
|
14609
14635
|
default:
|
|
14610
|
-
return
|
|
14636
|
+
return x;
|
|
14611
14637
|
}
|
|
14612
14638
|
}
|
|
14613
14639
|
case s:
|
|
14614
|
-
return
|
|
14640
|
+
return x;
|
|
14615
14641
|
}
|
|
14616
14642
|
}
|
|
14617
14643
|
}
|
|
@@ -14648,7 +14674,7 @@ function Ud() {
|
|
|
14648
14674
|
}
|
|
14649
14675
|
var le = {};
|
|
14650
14676
|
var Vn;
|
|
14651
|
-
function
|
|
14677
|
+
function kd() {
|
|
14652
14678
|
return Vn || (Vn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
14653
14679
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, s = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, a = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, r = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, i = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, l = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, d = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, h = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, f = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, w = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, A = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, b = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, v = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
14654
14680
|
function E(B) {
|
|
@@ -14687,14 +14713,14 @@ function Rd() {
|
|
|
14687
14713
|
}
|
|
14688
14714
|
}
|
|
14689
14715
|
}
|
|
14690
|
-
var y = d,
|
|
14716
|
+
var y = d, x = c, I = l, P = i, $ = t, q = u, k = a, F = w, K = f, O = s, U = o, R = r, G = h, j = !1;
|
|
14691
14717
|
function X(B) {
|
|
14692
14718
|
return j || (j = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), C(B) || S(B) === d;
|
|
14693
14719
|
}
|
|
14694
14720
|
function C(B) {
|
|
14695
14721
|
return S(B) === c;
|
|
14696
14722
|
}
|
|
14697
|
-
function
|
|
14723
|
+
function T(B) {
|
|
14698
14724
|
return S(B) === l;
|
|
14699
14725
|
}
|
|
14700
14726
|
function D(B) {
|
|
@@ -14727,15 +14753,15 @@ function Rd() {
|
|
|
14727
14753
|
function Q(B) {
|
|
14728
14754
|
return S(B) === h;
|
|
14729
14755
|
}
|
|
14730
|
-
le.AsyncMode = y, le.ConcurrentMode =
|
|
14756
|
+
le.AsyncMode = y, le.ConcurrentMode = x, le.ContextConsumer = I, le.ContextProvider = P, le.Element = $, le.ForwardRef = q, le.Fragment = k, le.Lazy = F, le.Memo = K, le.Portal = O, le.Profiler = U, le.StrictMode = R, le.Suspense = G, le.isAsyncMode = X, le.isConcurrentMode = C, le.isContextConsumer = T, le.isContextProvider = D, le.isElement = H, le.isForwardRef = L, le.isFragment = z, le.isLazy = J, le.isMemo = Z, le.isPortal = te, le.isProfiler = ae, le.isStrictMode = W, le.isSuspense = Q, le.isValidElementType = E, le.typeOf = S;
|
|
14731
14757
|
})()), le;
|
|
14732
14758
|
}
|
|
14733
14759
|
var Qn;
|
|
14734
14760
|
function en() {
|
|
14735
|
-
return Qn || (Qn = 1, process.env.NODE_ENV === "production" ?
|
|
14761
|
+
return Qn || (Qn = 1, process.env.NODE_ENV === "production" ? Rt.exports = Ud() : Rt.exports = kd()), Rt.exports;
|
|
14736
14762
|
}
|
|
14737
14763
|
var ws, zn;
|
|
14738
|
-
function
|
|
14764
|
+
function Rd() {
|
|
14739
14765
|
if (zn) return ws;
|
|
14740
14766
|
zn = 1;
|
|
14741
14767
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, s = Object.prototype.propertyIsEnumerable;
|
|
@@ -14844,7 +14870,7 @@ var vs, Kn;
|
|
|
14844
14870
|
function Pd() {
|
|
14845
14871
|
if (Kn) return vs;
|
|
14846
14872
|
Kn = 1;
|
|
14847
|
-
var e = en(), t =
|
|
14873
|
+
var e = en(), t = Rd(), s = /* @__PURE__ */ tn(), a = /* @__PURE__ */ $a(), r = /* @__PURE__ */ Ld(), o = function() {
|
|
14848
14874
|
};
|
|
14849
14875
|
process.env.NODE_ENV !== "production" && (o = function(l) {
|
|
14850
14876
|
var d = "Warning: " + l;
|
|
@@ -14860,9 +14886,9 @@ function Pd() {
|
|
|
14860
14886
|
return vs = function(l, d) {
|
|
14861
14887
|
var c = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
14862
14888
|
function h(C) {
|
|
14863
|
-
var
|
|
14864
|
-
if (typeof
|
|
14865
|
-
return
|
|
14889
|
+
var T = C && (c && C[c] || C[u]);
|
|
14890
|
+
if (typeof T == "function")
|
|
14891
|
+
return T;
|
|
14866
14892
|
}
|
|
14867
14893
|
var m = "<<anonymous>>", f = {
|
|
14868
14894
|
array: b("array"),
|
|
@@ -14877,7 +14903,7 @@ function Pd() {
|
|
|
14877
14903
|
arrayOf: E,
|
|
14878
14904
|
element: S(),
|
|
14879
14905
|
elementType: y(),
|
|
14880
|
-
instanceOf:
|
|
14906
|
+
instanceOf: x,
|
|
14881
14907
|
node: q(),
|
|
14882
14908
|
objectOf: P,
|
|
14883
14909
|
oneOf: I,
|
|
@@ -14885,16 +14911,16 @@ function Pd() {
|
|
|
14885
14911
|
shape: F,
|
|
14886
14912
|
exact: K
|
|
14887
14913
|
};
|
|
14888
|
-
function w(C,
|
|
14889
|
-
return C ===
|
|
14914
|
+
function w(C, T) {
|
|
14915
|
+
return C === T ? C !== 0 || 1 / C === 1 / T : C !== C && T !== T;
|
|
14890
14916
|
}
|
|
14891
|
-
function g(C,
|
|
14892
|
-
this.message = C, this.data =
|
|
14917
|
+
function g(C, T) {
|
|
14918
|
+
this.message = C, this.data = T && typeof T == "object" ? T : {}, this.stack = "";
|
|
14893
14919
|
}
|
|
14894
14920
|
g.prototype = Error.prototype;
|
|
14895
14921
|
function A(C) {
|
|
14896
14922
|
if (process.env.NODE_ENV !== "production")
|
|
14897
|
-
var
|
|
14923
|
+
var T = {}, D = 0;
|
|
14898
14924
|
function H(z, J, Z, te, ae, W, Q) {
|
|
14899
14925
|
if (te = te || m, W = W || Z, Q !== s) {
|
|
14900
14926
|
if (d) {
|
|
@@ -14904,10 +14930,10 @@ function Pd() {
|
|
|
14904
14930
|
throw B.name = "Invariant Violation", B;
|
|
14905
14931
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
14906
14932
|
var ue = te + ":" + Z;
|
|
14907
|
-
!
|
|
14933
|
+
!T[ue] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
14908
14934
|
D < 3 && (o(
|
|
14909
14935
|
"You are manually calling a React.PropTypes validation function for the `" + W + "` prop on `" + te + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
14910
|
-
),
|
|
14936
|
+
), T[ue] = !0, D++);
|
|
14911
14937
|
}
|
|
14912
14938
|
}
|
|
14913
14939
|
return J[Z] == null ? z ? J[Z] === null ? new g("The " + ae + " `" + W + "` is marked as required " + ("in `" + te + "`, but its value is `null`.")) : new g("The " + ae + " `" + W + "` is marked as required in " + ("`" + te + "`, but its value is `undefined`.")) : null : C(J, Z, te, ae, W);
|
|
@@ -14916,8 +14942,8 @@ function Pd() {
|
|
|
14916
14942
|
return L.isRequired = H.bind(null, !0), L;
|
|
14917
14943
|
}
|
|
14918
14944
|
function b(C) {
|
|
14919
|
-
function
|
|
14920
|
-
var te = D[H], ae =
|
|
14945
|
+
function T(D, H, L, z, J, Z) {
|
|
14946
|
+
var te = D[H], ae = R(te);
|
|
14921
14947
|
if (ae !== C) {
|
|
14922
14948
|
var W = G(te);
|
|
14923
14949
|
return new g(
|
|
@@ -14927,18 +14953,18 @@ function Pd() {
|
|
|
14927
14953
|
}
|
|
14928
14954
|
return null;
|
|
14929
14955
|
}
|
|
14930
|
-
return A(
|
|
14956
|
+
return A(T);
|
|
14931
14957
|
}
|
|
14932
14958
|
function v() {
|
|
14933
14959
|
return A(i);
|
|
14934
14960
|
}
|
|
14935
14961
|
function E(C) {
|
|
14936
|
-
function
|
|
14962
|
+
function T(D, H, L, z, J) {
|
|
14937
14963
|
if (typeof C != "function")
|
|
14938
14964
|
return new g("Property `" + J + "` of component `" + L + "` has invalid PropType notation inside arrayOf.");
|
|
14939
14965
|
var Z = D[H];
|
|
14940
14966
|
if (!Array.isArray(Z)) {
|
|
14941
|
-
var te =
|
|
14967
|
+
var te = R(Z);
|
|
14942
14968
|
return new g("Invalid " + z + " `" + J + "` of type " + ("`" + te + "` supplied to `" + L + "`, expected an array."));
|
|
14943
14969
|
}
|
|
14944
14970
|
for (var ae = 0; ae < Z.length; ae++) {
|
|
@@ -14948,13 +14974,13 @@ function Pd() {
|
|
|
14948
14974
|
}
|
|
14949
14975
|
return null;
|
|
14950
14976
|
}
|
|
14951
|
-
return A(
|
|
14977
|
+
return A(T);
|
|
14952
14978
|
}
|
|
14953
14979
|
function S() {
|
|
14954
|
-
function C(
|
|
14955
|
-
var J =
|
|
14980
|
+
function C(T, D, H, L, z) {
|
|
14981
|
+
var J = T[D];
|
|
14956
14982
|
if (!l(J)) {
|
|
14957
|
-
var Z =
|
|
14983
|
+
var Z = R(J);
|
|
14958
14984
|
return new g("Invalid " + L + " `" + z + "` of type " + ("`" + Z + "` supplied to `" + H + "`, expected a single ReactElement."));
|
|
14959
14985
|
}
|
|
14960
14986
|
return null;
|
|
@@ -14962,32 +14988,32 @@ function Pd() {
|
|
|
14962
14988
|
return A(C);
|
|
14963
14989
|
}
|
|
14964
14990
|
function y() {
|
|
14965
|
-
function C(
|
|
14966
|
-
var J =
|
|
14991
|
+
function C(T, D, H, L, z) {
|
|
14992
|
+
var J = T[D];
|
|
14967
14993
|
if (!e.isValidElementType(J)) {
|
|
14968
|
-
var Z =
|
|
14994
|
+
var Z = R(J);
|
|
14969
14995
|
return new g("Invalid " + L + " `" + z + "` of type " + ("`" + Z + "` supplied to `" + H + "`, expected a single ReactElement type."));
|
|
14970
14996
|
}
|
|
14971
14997
|
return null;
|
|
14972
14998
|
}
|
|
14973
14999
|
return A(C);
|
|
14974
15000
|
}
|
|
14975
|
-
function
|
|
14976
|
-
function
|
|
15001
|
+
function x(C) {
|
|
15002
|
+
function T(D, H, L, z, J) {
|
|
14977
15003
|
if (!(D[H] instanceof C)) {
|
|
14978
15004
|
var Z = C.name || m, te = X(D[H]);
|
|
14979
15005
|
return new g("Invalid " + z + " `" + J + "` of type " + ("`" + te + "` supplied to `" + L + "`, expected ") + ("instance of `" + Z + "`."));
|
|
14980
15006
|
}
|
|
14981
15007
|
return null;
|
|
14982
15008
|
}
|
|
14983
|
-
return A(
|
|
15009
|
+
return A(T);
|
|
14984
15010
|
}
|
|
14985
15011
|
function I(C) {
|
|
14986
15012
|
if (!Array.isArray(C))
|
|
14987
15013
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
14988
15014
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
14989
15015
|
) : o("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
14990
|
-
function
|
|
15016
|
+
function T(D, H, L, z, J) {
|
|
14991
15017
|
for (var Z = D[H], te = 0; te < C.length; te++)
|
|
14992
15018
|
if (w(Z, C[te]))
|
|
14993
15019
|
return null;
|
|
@@ -14997,13 +15023,13 @@ function Pd() {
|
|
|
14997
15023
|
});
|
|
14998
15024
|
return new g("Invalid " + z + " `" + J + "` of value `" + String(Z) + "` " + ("supplied to `" + L + "`, expected one of " + ae + "."));
|
|
14999
15025
|
}
|
|
15000
|
-
return A(
|
|
15026
|
+
return A(T);
|
|
15001
15027
|
}
|
|
15002
15028
|
function P(C) {
|
|
15003
|
-
function
|
|
15029
|
+
function T(D, H, L, z, J) {
|
|
15004
15030
|
if (typeof C != "function")
|
|
15005
15031
|
return new g("Property `" + J + "` of component `" + L + "` has invalid PropType notation inside objectOf.");
|
|
15006
|
-
var Z = D[H], te =
|
|
15032
|
+
var Z = D[H], te = R(Z);
|
|
15007
15033
|
if (te !== "object")
|
|
15008
15034
|
return new g("Invalid " + z + " `" + J + "` of type " + ("`" + te + "` supplied to `" + L + "`, expected an object."));
|
|
15009
15035
|
for (var ae in Z)
|
|
@@ -15014,16 +15040,16 @@ function Pd() {
|
|
|
15014
15040
|
}
|
|
15015
15041
|
return null;
|
|
15016
15042
|
}
|
|
15017
|
-
return A(
|
|
15043
|
+
return A(T);
|
|
15018
15044
|
}
|
|
15019
15045
|
function $(C) {
|
|
15020
15046
|
if (!Array.isArray(C))
|
|
15021
15047
|
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
15022
|
-
for (var
|
|
15023
|
-
var D = C[
|
|
15048
|
+
for (var T = 0; T < C.length; T++) {
|
|
15049
|
+
var D = C[T];
|
|
15024
15050
|
if (typeof D != "function")
|
|
15025
15051
|
return o(
|
|
15026
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + j(D) + " at index " +
|
|
15052
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + j(D) + " at index " + T + "."
|
|
15027
15053
|
), i;
|
|
15028
15054
|
}
|
|
15029
15055
|
function H(L, z, J, Z, te) {
|
|
@@ -15039,43 +15065,43 @@ function Pd() {
|
|
|
15039
15065
|
return A(H);
|
|
15040
15066
|
}
|
|
15041
15067
|
function q() {
|
|
15042
|
-
function C(
|
|
15043
|
-
return O(
|
|
15068
|
+
function C(T, D, H, L, z) {
|
|
15069
|
+
return O(T[D]) ? null : new g("Invalid " + L + " `" + z + "` supplied to " + ("`" + H + "`, expected a ReactNode."));
|
|
15044
15070
|
}
|
|
15045
15071
|
return A(C);
|
|
15046
15072
|
}
|
|
15047
|
-
function
|
|
15073
|
+
function k(C, T, D, H, L) {
|
|
15048
15074
|
return new g(
|
|
15049
|
-
(C || "React class") + ": " +
|
|
15075
|
+
(C || "React class") + ": " + T + " type `" + D + "." + H + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + L + "`."
|
|
15050
15076
|
);
|
|
15051
15077
|
}
|
|
15052
15078
|
function F(C) {
|
|
15053
|
-
function
|
|
15054
|
-
var Z = D[H], te =
|
|
15079
|
+
function T(D, H, L, z, J) {
|
|
15080
|
+
var Z = D[H], te = R(Z);
|
|
15055
15081
|
if (te !== "object")
|
|
15056
15082
|
return new g("Invalid " + z + " `" + J + "` of type `" + te + "` " + ("supplied to `" + L + "`, expected `object`."));
|
|
15057
15083
|
for (var ae in C) {
|
|
15058
15084
|
var W = C[ae];
|
|
15059
15085
|
if (typeof W != "function")
|
|
15060
|
-
return
|
|
15086
|
+
return k(L, z, J, ae, G(W));
|
|
15061
15087
|
var Q = W(Z, ae, L, z, J + "." + ae, s);
|
|
15062
15088
|
if (Q)
|
|
15063
15089
|
return Q;
|
|
15064
15090
|
}
|
|
15065
15091
|
return null;
|
|
15066
15092
|
}
|
|
15067
|
-
return A(
|
|
15093
|
+
return A(T);
|
|
15068
15094
|
}
|
|
15069
15095
|
function K(C) {
|
|
15070
|
-
function
|
|
15071
|
-
var Z = D[H], te =
|
|
15096
|
+
function T(D, H, L, z, J) {
|
|
15097
|
+
var Z = D[H], te = R(Z);
|
|
15072
15098
|
if (te !== "object")
|
|
15073
15099
|
return new g("Invalid " + z + " `" + J + "` of type `" + te + "` " + ("supplied to `" + L + "`, expected `object`."));
|
|
15074
15100
|
var ae = t({}, D[H], C);
|
|
15075
15101
|
for (var W in ae) {
|
|
15076
15102
|
var Q = C[W];
|
|
15077
15103
|
if (a(C, W) && typeof Q != "function")
|
|
15078
|
-
return
|
|
15104
|
+
return k(L, z, J, W, G(Q));
|
|
15079
15105
|
if (!Q)
|
|
15080
15106
|
return new g(
|
|
15081
15107
|
"Invalid " + z + " `" + J + "` key `" + W + "` supplied to `" + L + "`.\nBad object: " + JSON.stringify(D[H], null, " ") + `
|
|
@@ -15087,7 +15113,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
|
15087
15113
|
}
|
|
15088
15114
|
return null;
|
|
15089
15115
|
}
|
|
15090
|
-
return A(
|
|
15116
|
+
return A(T);
|
|
15091
15117
|
}
|
|
15092
15118
|
function O(C) {
|
|
15093
15119
|
switch (typeof C) {
|
|
@@ -15102,10 +15128,10 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
|
15102
15128
|
return C.every(O);
|
|
15103
15129
|
if (C === null || l(C))
|
|
15104
15130
|
return !0;
|
|
15105
|
-
var
|
|
15106
|
-
if (
|
|
15107
|
-
var D =
|
|
15108
|
-
if (
|
|
15131
|
+
var T = h(C);
|
|
15132
|
+
if (T) {
|
|
15133
|
+
var D = T.call(C), H;
|
|
15134
|
+
if (T !== C.entries) {
|
|
15109
15135
|
for (; !(H = D.next()).done; )
|
|
15110
15136
|
if (!O(H.value))
|
|
15111
15137
|
return !1;
|
|
@@ -15122,37 +15148,37 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
|
15122
15148
|
return !1;
|
|
15123
15149
|
}
|
|
15124
15150
|
}
|
|
15125
|
-
function U(C,
|
|
15126
|
-
return C === "symbol" ? !0 :
|
|
15151
|
+
function U(C, T) {
|
|
15152
|
+
return C === "symbol" ? !0 : T ? T["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && T instanceof Symbol : !1;
|
|
15127
15153
|
}
|
|
15128
|
-
function
|
|
15129
|
-
var
|
|
15130
|
-
return Array.isArray(C) ? "array" : C instanceof RegExp ? "object" : U(
|
|
15154
|
+
function R(C) {
|
|
15155
|
+
var T = typeof C;
|
|
15156
|
+
return Array.isArray(C) ? "array" : C instanceof RegExp ? "object" : U(T, C) ? "symbol" : T;
|
|
15131
15157
|
}
|
|
15132
15158
|
function G(C) {
|
|
15133
15159
|
if (typeof C > "u" || C === null)
|
|
15134
15160
|
return "" + C;
|
|
15135
|
-
var
|
|
15136
|
-
if (
|
|
15161
|
+
var T = R(C);
|
|
15162
|
+
if (T === "object") {
|
|
15137
15163
|
if (C instanceof Date)
|
|
15138
15164
|
return "date";
|
|
15139
15165
|
if (C instanceof RegExp)
|
|
15140
15166
|
return "regexp";
|
|
15141
15167
|
}
|
|
15142
|
-
return
|
|
15168
|
+
return T;
|
|
15143
15169
|
}
|
|
15144
15170
|
function j(C) {
|
|
15145
|
-
var
|
|
15146
|
-
switch (
|
|
15171
|
+
var T = G(C);
|
|
15172
|
+
switch (T) {
|
|
15147
15173
|
case "array":
|
|
15148
15174
|
case "object":
|
|
15149
|
-
return "an " +
|
|
15175
|
+
return "an " + T;
|
|
15150
15176
|
case "boolean":
|
|
15151
15177
|
case "date":
|
|
15152
15178
|
case "regexp":
|
|
15153
|
-
return "a " +
|
|
15179
|
+
return "a " + T;
|
|
15154
15180
|
default:
|
|
15155
|
-
return
|
|
15181
|
+
return T;
|
|
15156
15182
|
}
|
|
15157
15183
|
}
|
|
15158
15184
|
function X(C) {
|
|
@@ -15211,13 +15237,13 @@ function Od() {
|
|
|
15211
15237
|
}
|
|
15212
15238
|
var Zn;
|
|
15213
15239
|
function Bd() {
|
|
15214
|
-
if (Zn) return
|
|
15240
|
+
if (Zn) return kt.exports;
|
|
15215
15241
|
if (Zn = 1, process.env.NODE_ENV !== "production") {
|
|
15216
15242
|
var e = en(), t = !0;
|
|
15217
|
-
|
|
15243
|
+
kt.exports = /* @__PURE__ */ Pd()(e.isElement, t);
|
|
15218
15244
|
} else
|
|
15219
|
-
|
|
15220
|
-
return
|
|
15245
|
+
kt.exports = /* @__PURE__ */ Od()();
|
|
15246
|
+
return kt.exports;
|
|
15221
15247
|
}
|
|
15222
15248
|
var Md = /* @__PURE__ */ Bd();
|
|
15223
15249
|
const Ce = /* @__PURE__ */ it(Md);
|
|
@@ -15400,11 +15426,11 @@ function jd() {
|
|
|
15400
15426
|
var v = d(g);
|
|
15401
15427
|
c && (v = v.concat(c(g)));
|
|
15402
15428
|
for (var E = i(w), S = i(g), y = 0; y < v.length; ++y) {
|
|
15403
|
-
var
|
|
15404
|
-
if (!s[
|
|
15405
|
-
var I = u(g,
|
|
15429
|
+
var x = v[y];
|
|
15430
|
+
if (!s[x] && !(A && A[x]) && !(S && S[x]) && !(E && E[x])) {
|
|
15431
|
+
var I = u(g, x);
|
|
15406
15432
|
try {
|
|
15407
|
-
l(w,
|
|
15433
|
+
l(w, x, I);
|
|
15408
15434
|
} catch {
|
|
15409
15435
|
}
|
|
15410
15436
|
}
|
|
@@ -15436,7 +15462,7 @@ function Hd(e, t) {
|
|
|
15436
15462
|
function Vd(e, t) {
|
|
15437
15463
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
|
|
15438
15464
|
}
|
|
15439
|
-
var
|
|
15465
|
+
var Te = {}, Qd = 0;
|
|
15440
15466
|
function zd(e, t) {
|
|
15441
15467
|
return t = t || {}, function(a) {
|
|
15442
15468
|
var r = a.displayName || a.name || "Component", o = /* @__PURE__ */ (function(l) {
|
|
@@ -15456,7 +15482,7 @@ function zd(e, t) {
|
|
|
15456
15482
|
return m.props.asyncScriptOnLoad && m.props.asyncScriptOnLoad(m.state);
|
|
15457
15483
|
});
|
|
15458
15484
|
}, c.asyncScriptLoaderTriggerOnScriptLoaded = function() {
|
|
15459
|
-
var h =
|
|
15485
|
+
var h = Te[this.__scriptURL];
|
|
15460
15486
|
if (!h || !h.loaded)
|
|
15461
15487
|
throw new Error("Script is not loaded.");
|
|
15462
15488
|
for (var m in h.observers)
|
|
@@ -15464,11 +15490,11 @@ function zd(e, t) {
|
|
|
15464
15490
|
delete window[t.callbackName];
|
|
15465
15491
|
}, c.componentDidMount = function() {
|
|
15466
15492
|
var h = this, m = this.setupScriptURL(), f = this.asyncScriptLoaderGetScriptLoaderID(), w = t, g = w.globalName, A = w.callbackName, b = w.scriptId;
|
|
15467
|
-
if (g && typeof window[g] < "u" && (
|
|
15493
|
+
if (g && typeof window[g] < "u" && (Te[m] = {
|
|
15468
15494
|
loaded: !0,
|
|
15469
15495
|
observers: {}
|
|
15470
|
-
}),
|
|
15471
|
-
var v =
|
|
15496
|
+
}), Te[m]) {
|
|
15497
|
+
var v = Te[m];
|
|
15472
15498
|
if (v && (v.loaded || v.errored)) {
|
|
15473
15499
|
this.asyncScriptLoaderHandleLoad(v);
|
|
15474
15500
|
return;
|
|
@@ -15481,7 +15507,7 @@ function zd(e, t) {
|
|
|
15481
15507
|
var E = {};
|
|
15482
15508
|
E[f] = function(I) {
|
|
15483
15509
|
return h.asyncScriptLoaderHandleLoad(I);
|
|
15484
|
-
},
|
|
15510
|
+
}, Te[m] = {
|
|
15485
15511
|
loaded: !1,
|
|
15486
15512
|
observers: E
|
|
15487
15513
|
};
|
|
@@ -15490,23 +15516,23 @@ function zd(e, t) {
|
|
|
15490
15516
|
for (var y in t.attributes)
|
|
15491
15517
|
S.setAttribute(y, t.attributes[y]);
|
|
15492
15518
|
b && (S.id = b);
|
|
15493
|
-
var
|
|
15494
|
-
if (
|
|
15495
|
-
var $ =
|
|
15496
|
-
for (var
|
|
15497
|
-
P(q[
|
|
15519
|
+
var x = function(P) {
|
|
15520
|
+
if (Te[m]) {
|
|
15521
|
+
var $ = Te[m], q = $.observers;
|
|
15522
|
+
for (var k in q)
|
|
15523
|
+
P(q[k]) && delete q[k];
|
|
15498
15524
|
}
|
|
15499
15525
|
};
|
|
15500
15526
|
A && typeof window < "u" && (window[A] = function() {
|
|
15501
15527
|
return h.asyncScriptLoaderTriggerOnScriptLoaded();
|
|
15502
15528
|
}), S.onload = function() {
|
|
15503
|
-
var I =
|
|
15504
|
-
I && (I.loaded = !0,
|
|
15529
|
+
var I = Te[m];
|
|
15530
|
+
I && (I.loaded = !0, x(function(P) {
|
|
15505
15531
|
return A ? !1 : (P(I), !0);
|
|
15506
15532
|
}));
|
|
15507
15533
|
}, S.onerror = function() {
|
|
15508
|
-
var I =
|
|
15509
|
-
I && (I.errored = !0,
|
|
15534
|
+
var I = Te[m];
|
|
15535
|
+
I && (I.errored = !0, x(function(P) {
|
|
15510
15536
|
return P(I), !0;
|
|
15511
15537
|
}));
|
|
15512
15538
|
}, document.body.appendChild(S);
|
|
@@ -15515,8 +15541,8 @@ function zd(e, t) {
|
|
|
15515
15541
|
if (t.removeOnUnmount === !0)
|
|
15516
15542
|
for (var m = document.getElementsByTagName("script"), f = 0; f < m.length; f += 1)
|
|
15517
15543
|
m[f].src.indexOf(h) > -1 && m[f].parentNode && m[f].parentNode.removeChild(m[f]);
|
|
15518
|
-
var w =
|
|
15519
|
-
w && (delete w.observers[this.asyncScriptLoaderGetScriptLoaderID()], t.removeOnUnmount === !0 && delete
|
|
15544
|
+
var w = Te[h];
|
|
15545
|
+
w && (delete w.observers[this.asyncScriptLoaderGetScriptLoaderID()], t.removeOnUnmount === !0 && delete Te[h]);
|
|
15520
15546
|
}, c.render = function() {
|
|
15521
15547
|
var h = t.globalName, m = this.props;
|
|
15522
15548
|
m.asyncScriptOnLoad;
|
|
@@ -15608,7 +15634,7 @@ const Ka = zd(Yd, {
|
|
|
15608
15634
|
})
|
|
15609
15635
|
})).json();
|
|
15610
15636
|
if (y.type === "success")
|
|
15611
|
-
|
|
15637
|
+
Td(document, s), u("success"), setTimeout(() => {
|
|
15612
15638
|
E();
|
|
15613
15639
|
}, 3e3);
|
|
15614
15640
|
else
|
|
@@ -15841,7 +15867,7 @@ const Xd = (e, t) => {
|
|
|
15841
15867
|
}, Ja = ({ username: e, date: t, DATE_CONFIG: s }) => /* @__PURE__ */ p("div", { className: "comment-header su-flex su-items-center su-relative su-flex-wrap", children: [
|
|
15842
15868
|
/* @__PURE__ */ n("span", { className: "comment-username su-font-bold su-truncate", children: e }),
|
|
15843
15869
|
/* @__PURE__ */ n("span", { className: "comment-header-dot", children: "•" }),
|
|
15844
|
-
/* @__PURE__ */ n("span", { className: "comment-date su-truncate", children:
|
|
15870
|
+
/* @__PURE__ */ n("span", { className: "comment-date su-truncate", children: xd(Be(Number(t), s)) })
|
|
15845
15871
|
] }), Za = ({ user: e }) => /* @__PURE__ */ n("div", { className: "comment-avatar su-flex-center su-rounded-full su-font-bold su-overflow-hidden", children: e.picture ? /* @__PURE__ */ n(
|
|
15846
15872
|
"img",
|
|
15847
15873
|
{
|
|
@@ -16321,8 +16347,8 @@ const au = {
|
|
|
16321
16347
|
API_ENV: i
|
|
16322
16348
|
});
|
|
16323
16349
|
f(!1), h({ morereply: I.morecomment, reply: [...u.reply, ...I.comments] });
|
|
16324
|
-
} catch (
|
|
16325
|
-
throw f(!1), new Error(`Error al obtener comentarios: ${
|
|
16350
|
+
} catch (x) {
|
|
16351
|
+
throw f(!1), new Error(`Error al obtener comentarios: ${x}`);
|
|
16326
16352
|
}
|
|
16327
16353
|
},
|
|
16328
16354
|
children: d.moreRepliesButton
|
|
@@ -16498,7 +16524,7 @@ const au = {
|
|
|
16498
16524
|
}) => {
|
|
16499
16525
|
const d = { ...fu, ...l?.comentarios }, { PUBLIC_PUBLICATION_ID: c, PUBLIC_X_SECURITY_TOKEN: u } = i, h = c ?? "", m = t.replaceAll("/", "|"), [f, w] = Y(
|
|
16500
16526
|
void 0
|
|
16501
|
-
), [g, A] = Y(""), { comments: b, setComments: v } = Xd(m, i), [E, S] = he.useState(!1), y = he.useRef(null),
|
|
16527
|
+
), [g, A] = Y(""), { comments: b, setComments: v } = Xd(m, i), [E, S] = he.useState(!1), y = he.useRef(null), x = he.useRef(null), I = (U) => {
|
|
16502
16528
|
A(g === U ? "" : U);
|
|
16503
16529
|
}, P = (U) => {
|
|
16504
16530
|
v(
|
|
@@ -16514,7 +16540,7 @@ const au = {
|
|
|
16514
16540
|
const U = b.comments[b.comments.length - 1];
|
|
16515
16541
|
if (!U) return;
|
|
16516
16542
|
S(!0);
|
|
16517
|
-
const
|
|
16543
|
+
const R = U.id;
|
|
16518
16544
|
try {
|
|
16519
16545
|
const G = await sn({
|
|
16520
16546
|
publication: h,
|
|
@@ -16522,7 +16548,7 @@ const au = {
|
|
|
16522
16548
|
size: 5,
|
|
16523
16549
|
sizereply: 2,
|
|
16524
16550
|
id: void 0,
|
|
16525
|
-
lastid:
|
|
16551
|
+
lastid: R,
|
|
16526
16552
|
state: "5,6",
|
|
16527
16553
|
apiToken: u,
|
|
16528
16554
|
API_ENV: i
|
|
@@ -16534,11 +16560,11 @@ const au = {
|
|
|
16534
16560
|
} catch (G) {
|
|
16535
16561
|
throw S(!1), new Error(`Error al obtener comentarios: ${G}`);
|
|
16536
16562
|
}
|
|
16537
|
-
},
|
|
16563
|
+
}, k = b?.comments && b.comments.length > 0, F = k ? d.commentHeaderMessageWithComments : d.commentHeaderMessageEmpty, K = /* @__PURE__ */ n("div", { style: { display: "flex", width: "100%", justifyContent: "center" }, children: /* @__PURE__ */ n(He, {}) }), O = () => {
|
|
16538
16564
|
!window || !window.location || (document.cookie = `redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`, window.location.pathname = "/auth/login");
|
|
16539
16565
|
};
|
|
16540
16566
|
return /* @__PURE__ */ p(ee, { children: [
|
|
16541
|
-
/* @__PURE__ */ n("div", { className: "comments-container", children: /* @__PURE__ */ n(be, { noHeading: !0, title: i.CONFIG_commentsV2 ||
|
|
16567
|
+
/* @__PURE__ */ n("div", { className: "comments-container", children: /* @__PURE__ */ n(be, { noHeading: !0, title: i.CONFIG_commentsV2 || k || e ? d.commentsSectionTitle : !1, children: /* @__PURE__ */ p(ee, { children: [
|
|
16542
16568
|
/* @__PURE__ */ n("div", { className: "comments-header", children: e && s ? /* @__PURE__ */ p(ee, { children: [
|
|
16543
16569
|
/* @__PURE__ */ n(
|
|
16544
16570
|
Ed,
|
|
@@ -16569,7 +16595,7 @@ const au = {
|
|
|
16569
16595
|
/* @__PURE__ */ n(
|
|
16570
16596
|
hu,
|
|
16571
16597
|
{
|
|
16572
|
-
usernameRef:
|
|
16598
|
+
usernameRef: x,
|
|
16573
16599
|
commentRef: y,
|
|
16574
16600
|
icon: r,
|
|
16575
16601
|
handleGoogleLogin: o,
|
|
@@ -16686,18 +16712,18 @@ function wu(e) {
|
|
|
16686
16712
|
confirmPassword: { label: e?.confirmPassword ?? wt.confirmPassword.label, required: !0 }
|
|
16687
16713
|
};
|
|
16688
16714
|
}
|
|
16689
|
-
const
|
|
16715
|
+
const ke = [
|
|
16690
16716
|
(e) => e.length >= 8,
|
|
16691
16717
|
(e) => /\d/.test(e),
|
|
16692
16718
|
(e) => /[a-z]/.test(e),
|
|
16693
16719
|
(e) => /[A-Z]/.test(e),
|
|
16694
16720
|
(e) => /[^A-Za-z0-9]/.test(e)
|
|
16695
16721
|
], er = [
|
|
16696
|
-
{ label: "La contraseña debe tener al menos 8 caracteres", test:
|
|
16697
|
-
{ label: "Usa un número", test:
|
|
16698
|
-
{ label: "Usa una letra minúscula", test:
|
|
16699
|
-
{ label: "Usa una letra mayúscula", test:
|
|
16700
|
-
{ label: "Usa un símbolo", test:
|
|
16722
|
+
{ label: "La contraseña debe tener al menos 8 caracteres", test: ke[0] },
|
|
16723
|
+
{ label: "Usa un número", test: ke[1] },
|
|
16724
|
+
{ label: "Usa una letra minúscula", test: ke[2] },
|
|
16725
|
+
{ label: "Usa una letra mayúscula", test: ke[3] },
|
|
16726
|
+
{ label: "Usa un símbolo", test: ke[4] }
|
|
16701
16727
|
];
|
|
16702
16728
|
function Au({ goToLogin: e, handleGoogleLogin: t, API_ENV: s, texts: a, termsAndConditionsUrl: r }) {
|
|
16703
16729
|
const o = { ...pu, ...a?.comentarios }, i = bt(
|
|
@@ -16705,19 +16731,19 @@ function Au({ goToLogin: e, handleGoogleLogin: t, API_ENV: s, texts: a, termsAnd
|
|
|
16705
16731
|
[a?.comentarios?.registerForm]
|
|
16706
16732
|
), l = bt(
|
|
16707
16733
|
() => [
|
|
16708
|
-
{ label: o.passwordRuleMinLength, test:
|
|
16709
|
-
{ label: o.passwordRuleNumber, test:
|
|
16710
|
-
{ label: o.passwordRuleLowercase, test:
|
|
16711
|
-
{ label: o.passwordRuleUppercase, test:
|
|
16712
|
-
{ label: o.passwordRuleSymbol, test:
|
|
16734
|
+
{ label: o.passwordRuleMinLength, test: ke[0] },
|
|
16735
|
+
{ label: o.passwordRuleNumber, test: ke[1] },
|
|
16736
|
+
{ label: o.passwordRuleLowercase, test: ke[2] },
|
|
16737
|
+
{ label: o.passwordRuleUppercase, test: ke[3] },
|
|
16738
|
+
{ label: o.passwordRuleSymbol, test: ke[4] }
|
|
16713
16739
|
],
|
|
16714
16740
|
[o.passwordRuleMinLength, o.passwordRuleNumber, o.passwordRuleLowercase, o.passwordRuleUppercase, o.passwordRuleSymbol]
|
|
16715
16741
|
), [d, c] = Y({}), [u, h] = Y(!1), [m, f] = Y(!1), [w, g] = Y(null), [A, b] = Y(
|
|
16716
16742
|
"register"
|
|
16717
|
-
), v = (
|
|
16718
|
-
c((P) => ({ ...P, [
|
|
16719
|
-
}, E = async (
|
|
16720
|
-
|
|
16743
|
+
), v = (x, I) => {
|
|
16744
|
+
c((P) => ({ ...P, [x]: I }));
|
|
16745
|
+
}, E = async (x) => {
|
|
16746
|
+
x.preventDefault(), g(null), f(!0);
|
|
16721
16747
|
try {
|
|
16722
16748
|
const I = Object.keys(i).filter((K) => !["username", "password", "confirmPassword"].includes(K)).map((K) => ({ Name: K, Value: d[K] }));
|
|
16723
16749
|
if (I.some((K) => {
|
|
@@ -16737,11 +16763,11 @@ function Au({ goToLogin: e, handleGoogleLogin: t, API_ENV: s, texts: a, termsAnd
|
|
|
16737
16763
|
}
|
|
16738
16764
|
const q = Math.floor(Date.now() / 1e3);
|
|
16739
16765
|
I.push({ Name: "updated_at", Value: String(q) });
|
|
16740
|
-
const
|
|
16766
|
+
const k = s.PUBLIC_ENV === "local" ? "token" : await us(
|
|
16741
16767
|
"comment_register",
|
|
16742
16768
|
s.CAPTCHA_KEY ?? ""
|
|
16743
16769
|
);
|
|
16744
|
-
if (!
|
|
16770
|
+
if (!k) throw new Error("Captcha token no generado");
|
|
16745
16771
|
const F = await fetch("/api/auth/create-user", {
|
|
16746
16772
|
method: "POST",
|
|
16747
16773
|
headers: { "Content-Type": "application/json" },
|
|
@@ -16749,7 +16775,7 @@ function Au({ goToLogin: e, handleGoogleLogin: t, API_ENV: s, texts: a, termsAnd
|
|
|
16749
16775
|
username: d.email,
|
|
16750
16776
|
password: d.password,
|
|
16751
16777
|
userAttributes: I,
|
|
16752
|
-
token:
|
|
16778
|
+
token: k
|
|
16753
16779
|
})
|
|
16754
16780
|
});
|
|
16755
16781
|
if (!F.ok) {
|
|
@@ -16770,8 +16796,8 @@ function Au({ goToLogin: e, handleGoogleLogin: t, API_ENV: s, texts: a, termsAnd
|
|
|
16770
16796
|
} finally {
|
|
16771
16797
|
f(!1);
|
|
16772
16798
|
}
|
|
16773
|
-
}, S = async (
|
|
16774
|
-
if (
|
|
16799
|
+
}, S = async (x) => {
|
|
16800
|
+
if (x.preventDefault(), !d.confirmationCode) {
|
|
16775
16801
|
g(o.errorVerificationCodeRequired);
|
|
16776
16802
|
return;
|
|
16777
16803
|
}
|
|
@@ -16817,20 +16843,20 @@ function Au({ goToLogin: e, handleGoogleLogin: t, API_ENV: s, texts: a, termsAnd
|
|
|
16817
16843
|
className: "sass-pg-cmt-lp-form",
|
|
16818
16844
|
"data-error": w ? "true" : "false",
|
|
16819
16845
|
children: [
|
|
16820
|
-
/* @__PURE__ */ n("ul", { className: "sass-pg-cmt-lp-formUl", children: Object.entries(i).map(([
|
|
16846
|
+
/* @__PURE__ */ n("ul", { className: "sass-pg-cmt-lp-formUl", children: Object.entries(i).map(([x, { label: I }]) => /* @__PURE__ */ p("div", { className: "sass-pg-cmt-lp-field", children: [
|
|
16821
16847
|
/* @__PURE__ */ n("label", { className: "sass-pg-cmt-lp-label", children: I }),
|
|
16822
16848
|
/* @__PURE__ */ n(
|
|
16823
16849
|
"input",
|
|
16824
16850
|
{
|
|
16825
|
-
type:
|
|
16826
|
-
name:
|
|
16827
|
-
value: d[
|
|
16828
|
-
onChange: (P) => v(
|
|
16851
|
+
type: x.toLowerCase().includes("password") ? u ? "text" : "password" : x === "birthdate" ? "date" : x === "email" ? "email" : x === "phone_number" ? "tel" : "text",
|
|
16852
|
+
name: x,
|
|
16853
|
+
value: d[x] || "",
|
|
16854
|
+
onChange: (P) => v(x, P.target.value),
|
|
16829
16855
|
className: "sass-pg-cmt-lp-input",
|
|
16830
16856
|
placeholder: ""
|
|
16831
16857
|
}
|
|
16832
16858
|
),
|
|
16833
|
-
|
|
16859
|
+
x === "password" && /* @__PURE__ */ n("div", { className: "sass-pg-cmt-lp-passwordChecker", children: l.map((P, $) => {
|
|
16834
16860
|
const q = P.test(y);
|
|
16835
16861
|
return /* @__PURE__ */ p(
|
|
16836
16862
|
"div",
|
|
@@ -16844,7 +16870,7 @@ function Au({ goToLogin: e, handleGoogleLogin: t, API_ENV: s, texts: a, termsAnd
|
|
|
16844
16870
|
$
|
|
16845
16871
|
);
|
|
16846
16872
|
}) }),
|
|
16847
|
-
|
|
16873
|
+
x === "confirmPassword" && /* @__PURE__ */ p("div", { className: "sass-pg-cmt-lp-checkboxRow", children: [
|
|
16848
16874
|
/* @__PURE__ */ n(
|
|
16849
16875
|
"input",
|
|
16850
16876
|
{
|
|
@@ -16863,7 +16889,7 @@ function Au({ goToLogin: e, handleGoogleLogin: t, API_ENV: s, texts: a, termsAnd
|
|
|
16863
16889
|
}
|
|
16864
16890
|
)
|
|
16865
16891
|
] })
|
|
16866
|
-
] },
|
|
16892
|
+
] }, x)) }),
|
|
16867
16893
|
w && /* @__PURE__ */ n("p", { className: "sass-pg-cmt-lp-error", children: w }),
|
|
16868
16894
|
/* @__PURE__ */ p("p", { className: "sass-pg-cmt-lp-terms", children: [
|
|
16869
16895
|
o.termsPrefix,
|
|
@@ -16892,7 +16918,7 @@ function Au({ goToLogin: e, handleGoogleLogin: t, API_ENV: s, texts: a, termsAnd
|
|
|
16892
16918
|
type: "text",
|
|
16893
16919
|
name: "confirmationCode",
|
|
16894
16920
|
value: d.confirmationCode || "",
|
|
16895
|
-
onChange: (
|
|
16921
|
+
onChange: (x) => v("confirmationCode", x.target.value),
|
|
16896
16922
|
className: "sass-pg-cmt-lp-input",
|
|
16897
16923
|
required: !0
|
|
16898
16924
|
}
|
|
@@ -16970,7 +16996,7 @@ function yu({
|
|
|
16970
16996
|
API_ENV: r,
|
|
16971
16997
|
texts: o
|
|
16972
16998
|
}) {
|
|
16973
|
-
const i = { ...bu, ...o?.comentarios }, [l, d] = Y("login"), [c, u] = Y(""), [h, m] = Y(""), [f, w] = Y(""), [g, A] = Y(""), [b, v] = Y(""), [E, S] = Y(!1), [y,
|
|
16999
|
+
const i = { ...bu, ...o?.comentarios }, [l, d] = Y("login"), [c, u] = Y(""), [h, m] = Y(""), [f, w] = Y(""), [g, A] = Y(""), [b, v] = Y(""), [E, S] = Y(!1), [y, x] = Y(!1), [I, P] = Y(null);
|
|
16974
17000
|
return /* @__PURE__ */ p(ee, { children: [
|
|
16975
17001
|
l === "login" && /* @__PURE__ */ n(
|
|
16976
17002
|
vu,
|
|
@@ -16985,7 +17011,7 @@ function yu({
|
|
|
16985
17011
|
setShowPassword: S,
|
|
16986
17012
|
onSubmit: async (F) => {
|
|
16987
17013
|
if (!y) {
|
|
16988
|
-
F.preventDefault(), P(null),
|
|
17014
|
+
F.preventDefault(), P(null), x(!0);
|
|
16989
17015
|
try {
|
|
16990
17016
|
const K = r.PUBLIC_ENV === "local" ? "token" : await us("comment_login", r.CAPTCHA_KEY || "");
|
|
16991
17017
|
if (!K) throw new Error("Captcha token no generado");
|
|
@@ -17003,7 +17029,7 @@ function yu({
|
|
|
17003
17029
|
} catch (K) {
|
|
17004
17030
|
P(K?.message || "Error inesperado");
|
|
17005
17031
|
} finally {
|
|
17006
|
-
|
|
17032
|
+
x(!1);
|
|
17007
17033
|
}
|
|
17008
17034
|
}
|
|
17009
17035
|
},
|
|
@@ -17024,7 +17050,7 @@ function yu({
|
|
|
17024
17050
|
error: I,
|
|
17025
17051
|
onSubmit: async (F) => {
|
|
17026
17052
|
if (!y) {
|
|
17027
|
-
F.preventDefault(), P(null),
|
|
17053
|
+
F.preventDefault(), P(null), x(!0);
|
|
17028
17054
|
try {
|
|
17029
17055
|
const K = await fetch("/api/auth/forgot-password", {
|
|
17030
17056
|
method: "POST",
|
|
@@ -17039,7 +17065,7 @@ function yu({
|
|
|
17039
17065
|
} catch (K) {
|
|
17040
17066
|
P(K?.message || "Error inesperado");
|
|
17041
17067
|
} finally {
|
|
17042
|
-
|
|
17068
|
+
x(!1);
|
|
17043
17069
|
}
|
|
17044
17070
|
}
|
|
17045
17071
|
},
|
|
@@ -17075,7 +17101,7 @@ function yu({
|
|
|
17075
17101
|
P("La contraseña no cumple con los requisitos");
|
|
17076
17102
|
return;
|
|
17077
17103
|
}
|
|
17078
|
-
P(null),
|
|
17104
|
+
P(null), x(!0);
|
|
17079
17105
|
try {
|
|
17080
17106
|
const O = await fetch("/api/auth/confirm-forgot-password", {
|
|
17081
17107
|
method: "POST",
|
|
@@ -17090,7 +17116,7 @@ function yu({
|
|
|
17090
17116
|
} catch (O) {
|
|
17091
17117
|
P(O?.message || "Error inesperado");
|
|
17092
17118
|
} finally {
|
|
17093
|
-
|
|
17119
|
+
x(!1);
|
|
17094
17120
|
}
|
|
17095
17121
|
},
|
|
17096
17122
|
onBack: () => {
|
|
@@ -17418,11 +17444,11 @@ function Eu({
|
|
|
17418
17444
|
}
|
|
17419
17445
|
);
|
|
17420
17446
|
}
|
|
17421
|
-
const
|
|
17447
|
+
const xu = {
|
|
17422
17448
|
commentPromptMessage: "Súmate a la comunidad para dejar tu comentario",
|
|
17423
17449
|
loginButtonText: "Iniciar Sesión"
|
|
17424
17450
|
};
|
|
17425
|
-
function
|
|
17451
|
+
function Tu({
|
|
17426
17452
|
isAuthenticated: e,
|
|
17427
17453
|
setIsAuthenticated: t,
|
|
17428
17454
|
loginUrl: s,
|
|
@@ -17434,7 +17460,7 @@ function xu({
|
|
|
17434
17460
|
texts: d,
|
|
17435
17461
|
termsAndConditionsUrl: c
|
|
17436
17462
|
}) {
|
|
17437
|
-
const [u, h] = Y(!1), m = { ...
|
|
17463
|
+
const [u, h] = Y(!1), m = { ...xu, ...d?.comentarios }, f = m.loginButtonText, w = async () => {
|
|
17438
17464
|
if (l.PUBLIC_ENV === "local")
|
|
17439
17465
|
await fetch("/api/auth/logout", {
|
|
17440
17466
|
method: "GET",
|
|
@@ -17542,7 +17568,7 @@ function Iu({
|
|
|
17542
17568
|
if (o === null) return m;
|
|
17543
17569
|
const f = t.replaceAll("|", "/");
|
|
17544
17570
|
return e ? /* @__PURE__ */ n(
|
|
17545
|
-
|
|
17571
|
+
Tu,
|
|
17546
17572
|
{
|
|
17547
17573
|
icon: s,
|
|
17548
17574
|
isAuthenticated: o,
|
|
@@ -17748,7 +17774,7 @@ const i1 = async ({
|
|
|
17748
17774
|
i
|
|
17749
17775
|
);
|
|
17750
17776
|
}) }) });
|
|
17751
|
-
},
|
|
17777
|
+
}, ku = (e) => {
|
|
17752
17778
|
const { content: t, title: s, slot_id: a } = e, r = e.slot_id && e.slot_id !== "Nota_1";
|
|
17753
17779
|
return t && t.length !== 0 && /* @__PURE__ */ n(be, { title: s, titleUrl: e.titleUrl, children: /* @__PURE__ */ n(
|
|
17754
17780
|
Ze,
|
|
@@ -17774,7 +17800,7 @@ const i1 = async ({
|
|
|
17774
17800
|
})
|
|
17775
17801
|
}
|
|
17776
17802
|
) });
|
|
17777
|
-
},
|
|
17803
|
+
}, Ru = (e) => {
|
|
17778
17804
|
const { content: t, title: s, slot_id: a } = e, r = e.slot_id && e.slot_id !== "Nota_1";
|
|
17779
17805
|
return t && t.length !== 0 && /* @__PURE__ */ n(be, { title: s, titleUrl: e.titleUrl, children: /* @__PURE__ */ n(
|
|
17780
17806
|
Ze,
|
|
@@ -17870,8 +17896,8 @@ const i1 = async ({
|
|
|
17870
17896
|
"Destacado videos": (e) => /* @__PURE__ */ n(wc, { ...e }),
|
|
17871
17897
|
"Carrusel card": (e) => /* @__PURE__ */ n(yc, { ...e }),
|
|
17872
17898
|
"Carrusel story": (e) => /* @__PURE__ */ n(Uu, { ...e }),
|
|
17873
|
-
"Carrusel owl": (e) => /* @__PURE__ */ n(
|
|
17874
|
-
"Modulo fotogaleria": (e) => /* @__PURE__ */ n(
|
|
17899
|
+
"Carrusel owl": (e) => /* @__PURE__ */ n(ku, { ...e }),
|
|
17900
|
+
"Modulo fotogaleria": (e) => /* @__PURE__ */ n(Ru, { ...e }),
|
|
17875
17901
|
"Carrusel opinion": (e) => /* @__PURE__ */ n(Cc, { ...e }),
|
|
17876
17902
|
"Modulo 1x3 card": (e) => /* @__PURE__ */ n(bc, { ...e }),
|
|
17877
17903
|
"Modulo iframe": (e) => /* @__PURE__ */ n(Pu, { ...e })
|
|
@@ -18106,7 +18132,7 @@ export {
|
|
|
18106
18132
|
Dm as AutorHeader2,
|
|
18107
18133
|
Se as BannerAdvertising,
|
|
18108
18134
|
at as BannerAdvertisingMiddle,
|
|
18109
|
-
|
|
18135
|
+
xm as CarrouselCSR,
|
|
18110
18136
|
Ze as CarrouselIRS,
|
|
18111
18137
|
yc as CarruselCard,
|
|
18112
18138
|
Cc as CarruselOpinion,
|
|
@@ -18129,7 +18155,7 @@ export {
|
|
|
18129
18155
|
Qm as EditorialBlock,
|
|
18130
18156
|
Pm as ErrorComponent,
|
|
18131
18157
|
go as Font,
|
|
18132
|
-
|
|
18158
|
+
km as Footer,
|
|
18133
18159
|
Vr as FormatAfterScripts,
|
|
18134
18160
|
ia as FormatScripts,
|
|
18135
18161
|
or as GA4,
|
|
@@ -18140,7 +18166,7 @@ export {
|
|
|
18140
18166
|
jm as Header,
|
|
18141
18167
|
Uc as HeaderSectionComponent,
|
|
18142
18168
|
Hm as HomeCard,
|
|
18143
|
-
|
|
18169
|
+
xc as IframeHeader,
|
|
18144
18170
|
Pl as ImageOffline,
|
|
18145
18171
|
Ee as ImageOnline,
|
|
18146
18172
|
Ll as ImageOnlineClient,
|
|
@@ -18183,7 +18209,7 @@ export {
|
|
|
18183
18209
|
be as Section,
|
|
18184
18210
|
qe as SectionCard,
|
|
18185
18211
|
is as SectionCard2,
|
|
18186
|
-
|
|
18212
|
+
Tm as SectionCard5,
|
|
18187
18213
|
Gn as SectionCardServerComponent,
|
|
18188
18214
|
Ym as SectionServerComponent,
|
|
18189
18215
|
Bn as ShowSection,
|
|
@@ -18201,7 +18227,7 @@ export {
|
|
|
18201
18227
|
Yl as TimeLine,
|
|
18202
18228
|
Gu as TrimPathname,
|
|
18203
18229
|
t1 as TwitterHydration,
|
|
18204
|
-
|
|
18230
|
+
Rm as VideoBlock3,
|
|
18205
18231
|
qm as VideoBlock4,
|
|
18206
18232
|
Sc as VideoEmbeddedHeader,
|
|
18207
18233
|
Ec as VideoYoutubeHeader,
|
|
@@ -18218,9 +18244,9 @@ export {
|
|
|
18218
18244
|
Fe as cutString,
|
|
18219
18245
|
la as decodeApiEnv,
|
|
18220
18246
|
$u as encodeApiEnv,
|
|
18221
|
-
|
|
18247
|
+
xe as extractMainSlug,
|
|
18222
18248
|
qu as extractRealtedNews,
|
|
18223
|
-
|
|
18249
|
+
Ts as extractRelatedNews,
|
|
18224
18250
|
Be as formatDate,
|
|
18225
18251
|
Du as formatDateEdiciones,
|
|
18226
18252
|
Wt as formatDateJournalistArticule,
|
|
@@ -18246,7 +18272,7 @@ export {
|
|
|
18246
18272
|
Qu as getRelatedNewsCarrousel,
|
|
18247
18273
|
n1 as getReportReasonLabel,
|
|
18248
18274
|
st as getResponse,
|
|
18249
|
-
|
|
18275
|
+
xr as getResponsePromise,
|
|
18250
18276
|
js as getSchemas,
|
|
18251
18277
|
da as getScriptReplaces,
|
|
18252
18278
|
Ju as getServicePrefix,
|
|
@@ -18266,7 +18292,7 @@ export {
|
|
|
18266
18292
|
ra as parseTags,
|
|
18267
18293
|
Or as pathnameSplit,
|
|
18268
18294
|
qs as pickBannerVariant,
|
|
18269
|
-
|
|
18295
|
+
kr as processExtractedRelatedNews,
|
|
18270
18296
|
po as removePages,
|
|
18271
18297
|
s1 as reportComment,
|
|
18272
18298
|
zl as shareButtons,
|
|
@@ -18274,6 +18300,6 @@ export {
|
|
|
18274
18300
|
Ye as toISOWithTimeZone,
|
|
18275
18301
|
Br as urlReplaces,
|
|
18276
18302
|
Ma as usePlayIcon,
|
|
18277
|
-
|
|
18303
|
+
Rr as validateHttpUrl,
|
|
18278
18304
|
i1 as verifyCaptchaTokenEnterprise
|
|
18279
18305
|
};
|