@ysolve/ocity-heritage-visualizer 1.0.6 → 1.0.7

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.
@@ -1,25 +1,25 @@
1
- import { jsxs as W, jsx as w, Fragment as We } from "react/jsx-runtime";
1
+ import { jsxs as V, jsx as w, Fragment as We } from "react/jsx-runtime";
2
2
  import { useState as C, useRef as F, useEffect as j } from "react";
3
- const zt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_DEBUG_MODE: "false", VITE_DEFAULT_IMAGE_URL: "https://o-city.org/assets/NO_AVAILABLE_IMG-4d02b370.png", VITE_ELEVENLABS_API_BASE: "https://api.elevenlabs.io/v1", VITE_ELEVENLABS_API_KEY: "sk_91c11f86fccdddc77d007c8a82937283e5929ad5224286fa", VITE_GOOGLE_TRANSLATE_BASE: "https://translate.googleapis.com/translate_a/single", VITE_IMAGE_BASE_URL: "https://eu2.contabostorage.com/7fb97413b6c243adb4347dafa02551a9:ocity/heritage/images/" };
4
- function re(e, t = !0) {
5
- const n = zt[e];
3
+ const Jt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_DEBUG_MODE: "false", VITE_DEFAULT_IMAGE_URL: "https://o-city.org/assets/NO_AVAILABLE_IMG-4d02b370.png", VITE_ELEVENLABS_API_BASE: "https://api.elevenlabs.io/v1", VITE_ELEVENLABS_API_KEY: "sk_91c11f86fccdddc77d007c8a82937283e5929ad5224286fa", VITE_GOOGLE_TRANSLATE_BASE: "https://translate.googleapis.com/translate_a/single", VITE_IMAGE_BASE_URL: "https://eu2.contabostorage.com/7fb97413b6c243adb4347dafa02551a9:ocity/heritage/images/" };
4
+ function se(e, t = !0) {
5
+ const n = Jt[e];
6
6
  if (!n && t)
7
7
  throw new Error(`❌ Missing required env variable: ${e}`);
8
8
  return n ?? "";
9
9
  }
10
- const ie = {
10
+ const ae = {
11
11
  NODE_ENV: "production",
12
- ELEVENLABS_API_BASE: re("VITE_ELEVENLABS_API_BASE"),
13
- ELEVENLABS_API_KEY: re("VITE_ELEVENLABS_API_KEY"),
12
+ ELEVENLABS_API_BASE: se("VITE_ELEVENLABS_API_BASE"),
13
+ ELEVENLABS_API_KEY: se("VITE_ELEVENLABS_API_KEY"),
14
14
  DEBUG_MODE: !1,
15
- GOOGLE_TRANSLATE_BASE: re("VITE_GOOGLE_TRANSLATE_BASE"),
16
- IMAGE_BASE_URL: re("VITE_IMAGE_BASE_URL"),
17
- DEFAULT_IMAGE_URL: re("VITE_DEFAULT_IMAGE_URL")
15
+ GOOGLE_TRANSLATE_BASE: se("VITE_GOOGLE_TRANSLATE_BASE"),
16
+ IMAGE_BASE_URL: se("VITE_IMAGE_BASE_URL"),
17
+ DEFAULT_IMAGE_URL: se("VITE_DEFAULT_IMAGE_URL")
18
18
  };
19
- async function Vt(e, t) {
19
+ async function Ke(e, t) {
20
20
  if (!e.trim()) return e;
21
21
  try {
22
- const n = `${ie.GOOGLE_TRANSLATE_BASE}?client=gtx&sl=auto&tl=${t}&dt=t&q=${encodeURIComponent(e)}`, r = await fetch(n);
22
+ const n = `${ae.GOOGLE_TRANSLATE_BASE}?client=gtx&sl=auto&tl=${t}&dt=t&q=${encodeURIComponent(e)}`, r = await fetch(n);
23
23
  if (!r.ok)
24
24
  throw new Error(`Error en la traducción: ${r.status}`);
25
25
  const s = await r.json();
@@ -28,38 +28,38 @@ async function Vt(e, t) {
28
28
  return console.error("Error al traducir:", n), e;
29
29
  }
30
30
  }
31
- function lt(e, t) {
31
+ function ut(e, t) {
32
32
  return function() {
33
33
  return e.apply(t, arguments);
34
34
  };
35
35
  }
36
- const { toString: Jt } = Object.prototype, { getPrototypeOf: Fe } = Object, { iterator: we, toStringTag: ut } = Symbol, ye = /* @__PURE__ */ ((e) => (t) => {
37
- const n = Jt.call(t);
36
+ const { toString: Gt } = Object.prototype, { getPrototypeOf: Fe } = Object, { iterator: ye, toStringTag: dt } = Symbol, Ee = /* @__PURE__ */ ((e) => (t) => {
37
+ const n = Gt.call(t);
38
38
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
39
- })(/* @__PURE__ */ Object.create(null)), M = (e) => (e = e.toLowerCase(), (t) => ye(t) === e), Ee = (e) => (t) => typeof t === e, { isArray: ee } = Array, ae = Ee("undefined");
40
- function Gt(e) {
41
- return e !== null && !ae(e) && e.constructor !== null && !ae(e.constructor) && P(e.constructor.isBuffer) && e.constructor.isBuffer(e);
42
- }
43
- const dt = M("ArrayBuffer");
39
+ })(/* @__PURE__ */ Object.create(null)), M = (e) => (e = e.toLowerCase(), (t) => Ee(t) === e), be = (e) => (t) => typeof t === e, { isArray: te } = Array, ce = be("undefined");
44
40
  function Wt(e) {
41
+ return e !== null && !ce(e) && e.constructor !== null && !ce(e.constructor) && P(e.constructor.isBuffer) && e.constructor.isBuffer(e);
42
+ }
43
+ const ft = M("ArrayBuffer");
44
+ function Kt(e) {
45
45
  let t;
46
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && dt(e.buffer), t;
46
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ft(e.buffer), t;
47
47
  }
48
- const Kt = Ee("string"), P = Ee("function"), ft = Ee("number"), be = (e) => e !== null && typeof e == "object", Xt = (e) => e === !0 || e === !1, fe = (e) => {
49
- if (ye(e) !== "object")
48
+ const Xt = be("string"), P = be("function"), pt = be("number"), _e = (e) => e !== null && typeof e == "object", Zt = (e) => e === !0 || e === !1, pe = (e) => {
49
+ if (Ee(e) !== "object")
50
50
  return !1;
51
51
  const t = Fe(e);
52
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ut in e) && !(we in e);
53
- }, Zt = M("Date"), Yt = M("File"), Qt = M("Blob"), en = M("FileList"), tn = (e) => be(e) && P(e.pipe), nn = (e) => {
52
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(dt in e) && !(ye in e);
53
+ }, Yt = M("Date"), Qt = M("File"), en = M("Blob"), tn = M("FileList"), nn = (e) => _e(e) && P(e.pipe), rn = (e) => {
54
54
  let t;
55
- return e && (typeof FormData == "function" && e instanceof FormData || P(e.append) && ((t = ye(e)) === "formdata" || // detect form-data instance
55
+ return e && (typeof FormData == "function" && e instanceof FormData || P(e.append) && ((t = Ee(e)) === "formdata" || // detect form-data instance
56
56
  t === "object" && P(e.toString) && e.toString() === "[object FormData]"));
57
- }, rn = M("URLSearchParams"), [sn, on, an, cn] = ["ReadableStream", "Request", "Response", "Headers"].map(M), ln = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
58
- function ce(e, t, { allOwnKeys: n = !1 } = {}) {
57
+ }, sn = M("URLSearchParams"), [on, an, cn, ln] = ["ReadableStream", "Request", "Response", "Headers"].map(M), un = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
58
+ function le(e, t, { allOwnKeys: n = !1 } = {}) {
59
59
  if (e === null || typeof e > "u")
60
60
  return;
61
61
  let r, s;
62
- if (typeof e != "object" && (e = [e]), ee(e))
62
+ if (typeof e != "object" && (e = [e]), te(e))
63
63
  for (r = 0, s = e.length; r < s; r++)
64
64
  t.call(null, e[r], r, e);
65
65
  else {
@@ -69,7 +69,7 @@ function ce(e, t, { allOwnKeys: n = !1 } = {}) {
69
69
  c = i[r], t.call(null, e[c], c, e);
70
70
  }
71
71
  }
72
- function pt(e, t) {
72
+ function ht(e, t) {
73
73
  t = t.toLowerCase();
74
74
  const n = Object.keys(e);
75
75
  let r = n.length, s;
@@ -78,23 +78,23 @@ function pt(e, t) {
78
78
  return s;
79
79
  return null;
80
80
  }
81
- const X = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ht = (e) => !ae(e) && e !== X;
82
- function Be() {
83
- const { caseless: e } = ht(this) && this || {}, t = {}, n = (r, s) => {
84
- const i = e && pt(t, s) || s;
85
- fe(t[i]) && fe(r) ? t[i] = Be(t[i], r) : fe(r) ? t[i] = Be({}, r) : ee(r) ? t[i] = r.slice() : t[i] = r;
81
+ const X = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, mt = (e) => !ce(e) && e !== X;
82
+ function ke() {
83
+ const { caseless: e } = mt(this) && this || {}, t = {}, n = (r, s) => {
84
+ const i = e && ht(t, s) || s;
85
+ pe(t[i]) && pe(r) ? t[i] = ke(t[i], r) : pe(r) ? t[i] = ke({}, r) : te(r) ? t[i] = r.slice() : t[i] = r;
86
86
  };
87
87
  for (let r = 0, s = arguments.length; r < s; r++)
88
- arguments[r] && ce(arguments[r], n);
88
+ arguments[r] && le(arguments[r], n);
89
89
  return t;
90
90
  }
91
- const un = (e, t, n, { allOwnKeys: r } = {}) => (ce(t, (s, i) => {
92
- n && P(s) ? e[i] = lt(s, n) : e[i] = s;
93
- }, { allOwnKeys: r }), e), dn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), fn = (e, t, n, r) => {
91
+ const dn = (e, t, n, { allOwnKeys: r } = {}) => (le(t, (s, i) => {
92
+ n && P(s) ? e[i] = ut(s, n) : e[i] = s;
93
+ }, { allOwnKeys: r }), e), fn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), pn = (e, t, n, r) => {
94
94
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
95
95
  value: t.prototype
96
96
  }), n && Object.assign(e.prototype, n);
97
- }, pn = (e, t, n, r) => {
97
+ }, hn = (e, t, n, r) => {
98
98
  let s, i, o;
99
99
  const c = {};
100
100
  if (t = t || {}, e == null) return t;
@@ -104,45 +104,45 @@ const un = (e, t, n, { allOwnKeys: r } = {}) => (ce(t, (s, i) => {
104
104
  e = n !== !1 && Fe(e);
105
105
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
106
106
  return t;
107
- }, hn = (e, t, n) => {
107
+ }, mn = (e, t, n) => {
108
108
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
109
109
  const r = e.indexOf(t, n);
110
110
  return r !== -1 && r === n;
111
- }, mn = (e) => {
111
+ }, gn = (e) => {
112
112
  if (!e) return null;
113
- if (ee(e)) return e;
113
+ if (te(e)) return e;
114
114
  let t = e.length;
115
- if (!ft(t)) return null;
115
+ if (!pt(t)) return null;
116
116
  const n = new Array(t);
117
117
  for (; t-- > 0; )
118
118
  n[t] = e[t];
119
119
  return n;
120
- }, gn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Fe(Uint8Array)), wn = (e, t) => {
121
- const r = (e && e[we]).call(e);
120
+ }, wn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Fe(Uint8Array)), yn = (e, t) => {
121
+ const r = (e && e[ye]).call(e);
122
122
  let s;
123
123
  for (; (s = r.next()) && !s.done; ) {
124
124
  const i = s.value;
125
125
  t.call(e, i[0], i[1]);
126
126
  }
127
- }, yn = (e, t) => {
127
+ }, En = (e, t) => {
128
128
  let n;
129
129
  const r = [];
130
130
  for (; (n = e.exec(t)) !== null; )
131
131
  r.push(n);
132
132
  return r;
133
- }, En = M("HTMLFormElement"), bn = (e) => e.toLowerCase().replace(
133
+ }, bn = M("HTMLFormElement"), _n = (e) => e.toLowerCase().replace(
134
134
  /[-_\s]([a-z\d])(\w*)/g,
135
135
  function(n, r, s) {
136
136
  return r.toUpperCase() + s;
137
137
  }
138
- ), Ke = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), _n = M("RegExp"), mt = (e, t) => {
138
+ ), Xe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Sn = M("RegExp"), gt = (e, t) => {
139
139
  const n = Object.getOwnPropertyDescriptors(e), r = {};
140
- ce(n, (s, i) => {
140
+ le(n, (s, i) => {
141
141
  let o;
142
142
  (o = t(s, i, e)) !== !1 && (r[i] = o || s);
143
143
  }), Object.defineProperties(e, r);
144
- }, Sn = (e) => {
145
- mt(e, (t, n) => {
144
+ }, Rn = (e) => {
145
+ gt(e, (t, n) => {
146
146
  if (P(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
147
147
  return !1;
148
148
  const r = e[n];
@@ -156,98 +156,98 @@ const un = (e, t, n, { allOwnKeys: r } = {}) => (ce(t, (s, i) => {
156
156
  });
157
157
  }
158
158
  });
159
- }, Rn = (e, t) => {
159
+ }, Tn = (e, t) => {
160
160
  const n = {}, r = (s) => {
161
161
  s.forEach((i) => {
162
162
  n[i] = !0;
163
163
  });
164
164
  };
165
- return ee(e) ? r(e) : r(String(e).split(t)), n;
166
- }, Tn = () => {
167
- }, An = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
168
- function On(e) {
169
- return !!(e && P(e.append) && e[ut] === "FormData" && e[we]);
165
+ return te(e) ? r(e) : r(String(e).split(t)), n;
166
+ }, An = () => {
167
+ }, On = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
168
+ function xn(e) {
169
+ return !!(e && P(e.append) && e[dt] === "FormData" && e[ye]);
170
170
  }
171
- const xn = (e) => {
171
+ const Ln = (e) => {
172
172
  const t = new Array(10), n = (r, s) => {
173
- if (be(r)) {
173
+ if (_e(r)) {
174
174
  if (t.indexOf(r) >= 0)
175
175
  return;
176
176
  if (!("toJSON" in r)) {
177
177
  t[s] = r;
178
- const i = ee(r) ? [] : {};
179
- return ce(r, (o, c) => {
178
+ const i = te(r) ? [] : {};
179
+ return le(r, (o, c) => {
180
180
  const l = n(o, s + 1);
181
- !ae(l) && (i[c] = l);
181
+ !ce(l) && (i[c] = l);
182
182
  }), t[s] = void 0, i;
183
183
  }
184
184
  }
185
185
  return r;
186
186
  };
187
187
  return n(e, 0);
188
- }, Ln = M("AsyncFunction"), Cn = (e) => e && (be(e) || P(e)) && P(e.then) && P(e.catch), gt = ((e, t) => e ? setImmediate : t ? ((n, r) => (X.addEventListener("message", ({ source: s, data: i }) => {
188
+ }, Cn = M("AsyncFunction"), Nn = (e) => e && (_e(e) || P(e)) && P(e.then) && P(e.catch), wt = ((e, t) => e ? setImmediate : t ? ((n, r) => (X.addEventListener("message", ({ source: s, data: i }) => {
189
189
  s === X && i === n && r.length && r.shift()();
190
190
  }, !1), (s) => {
191
191
  r.push(s), X.postMessage(n, "*");
192
192
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
193
193
  typeof setImmediate == "function",
194
194
  P(X.postMessage)
195
- ), kn = typeof queueMicrotask < "u" ? queueMicrotask.bind(X) : typeof process < "u" && process.nextTick || gt, Bn = (e) => e != null && P(e[we]), a = {
196
- isArray: ee,
197
- isArrayBuffer: dt,
198
- isBuffer: Gt,
199
- isFormData: nn,
200
- isArrayBufferView: Wt,
201
- isString: Kt,
202
- isNumber: ft,
203
- isBoolean: Xt,
204
- isObject: be,
205
- isPlainObject: fe,
206
- isReadableStream: sn,
207
- isRequest: on,
208
- isResponse: an,
209
- isHeaders: cn,
210
- isUndefined: ae,
211
- isDate: Zt,
212
- isFile: Yt,
213
- isBlob: Qt,
214
- isRegExp: _n,
195
+ ), kn = typeof queueMicrotask < "u" ? queueMicrotask.bind(X) : typeof process < "u" && process.nextTick || wt, Bn = (e) => e != null && P(e[ye]), a = {
196
+ isArray: te,
197
+ isArrayBuffer: ft,
198
+ isBuffer: Wt,
199
+ isFormData: rn,
200
+ isArrayBufferView: Kt,
201
+ isString: Xt,
202
+ isNumber: pt,
203
+ isBoolean: Zt,
204
+ isObject: _e,
205
+ isPlainObject: pe,
206
+ isReadableStream: on,
207
+ isRequest: an,
208
+ isResponse: cn,
209
+ isHeaders: ln,
210
+ isUndefined: ce,
211
+ isDate: Yt,
212
+ isFile: Qt,
213
+ isBlob: en,
214
+ isRegExp: Sn,
215
215
  isFunction: P,
216
- isStream: tn,
217
- isURLSearchParams: rn,
218
- isTypedArray: gn,
219
- isFileList: en,
220
- forEach: ce,
221
- merge: Be,
222
- extend: un,
223
- trim: ln,
224
- stripBOM: dn,
225
- inherits: fn,
226
- toFlatObject: pn,
227
- kindOf: ye,
216
+ isStream: nn,
217
+ isURLSearchParams: sn,
218
+ isTypedArray: wn,
219
+ isFileList: tn,
220
+ forEach: le,
221
+ merge: ke,
222
+ extend: dn,
223
+ trim: un,
224
+ stripBOM: fn,
225
+ inherits: pn,
226
+ toFlatObject: hn,
227
+ kindOf: Ee,
228
228
  kindOfTest: M,
229
- endsWith: hn,
230
- toArray: mn,
231
- forEachEntry: wn,
232
- matchAll: yn,
233
- isHTMLForm: En,
234
- hasOwnProperty: Ke,
235
- hasOwnProp: Ke,
229
+ endsWith: mn,
230
+ toArray: gn,
231
+ forEachEntry: yn,
232
+ matchAll: En,
233
+ isHTMLForm: bn,
234
+ hasOwnProperty: Xe,
235
+ hasOwnProp: Xe,
236
236
  // an alias to avoid ESLint no-prototype-builtins detection
237
- reduceDescriptors: mt,
238
- freezeMethods: Sn,
239
- toObjectSet: Rn,
240
- toCamelCase: bn,
241
- noop: Tn,
242
- toFiniteNumber: An,
243
- findKey: pt,
237
+ reduceDescriptors: gt,
238
+ freezeMethods: Rn,
239
+ toObjectSet: Tn,
240
+ toCamelCase: _n,
241
+ noop: An,
242
+ toFiniteNumber: On,
243
+ findKey: ht,
244
244
  global: X,
245
- isContextDefined: ht,
246
- isSpecCompliantForm: On,
247
- toJSONObject: xn,
248
- isAsyncFn: Ln,
249
- isThenable: Cn,
250
- setImmediate: gt,
245
+ isContextDefined: mt,
246
+ isSpecCompliantForm: xn,
247
+ toJSONObject: Ln,
248
+ isAsyncFn: Cn,
249
+ isThenable: Nn,
250
+ setImmediate: wt,
251
251
  asap: kn,
252
252
  isIterable: Bn
253
253
  };
@@ -275,7 +275,7 @@ a.inherits(g, Error, {
275
275
  };
276
276
  }
277
277
  });
278
- const wt = g.prototype, yt = {};
278
+ const yt = g.prototype, Et = {};
279
279
  [
280
280
  "ERR_BAD_OPTION_VALUE",
281
281
  "ERR_BAD_OPTION",
@@ -291,35 +291,35 @@ const wt = g.prototype, yt = {};
291
291
  "ERR_INVALID_URL"
292
292
  // eslint-disable-next-line func-names
293
293
  ].forEach((e) => {
294
- yt[e] = { value: e };
294
+ Et[e] = { value: e };
295
295
  });
296
- Object.defineProperties(g, yt);
297
- Object.defineProperty(wt, "isAxiosError", { value: !0 });
296
+ Object.defineProperties(g, Et);
297
+ Object.defineProperty(yt, "isAxiosError", { value: !0 });
298
298
  g.from = (e, t, n, r, s, i) => {
299
- const o = Object.create(wt);
299
+ const o = Object.create(yt);
300
300
  return a.toFlatObject(e, o, function(l) {
301
301
  return l !== Error.prototype;
302
302
  }, (c) => c !== "isAxiosError"), g.call(o, e.message, t, n, r, s), o.cause = e, o.name = e.name, i && Object.assign(o, i), o;
303
303
  };
304
- const Nn = null;
305
- function Ne(e) {
304
+ const vn = null;
305
+ function Be(e) {
306
306
  return a.isPlainObject(e) || a.isArray(e);
307
307
  }
308
- function Et(e) {
308
+ function bt(e) {
309
309
  return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
310
310
  }
311
- function Xe(e, t, n) {
311
+ function Ze(e, t, n) {
312
312
  return e ? e.concat(t).map(function(s, i) {
313
- return s = Et(s), !n && i ? "[" + s + "]" : s;
313
+ return s = bt(s), !n && i ? "[" + s + "]" : s;
314
314
  }).join(n ? "." : "") : t;
315
315
  }
316
- function vn(e) {
317
- return a.isArray(e) && !e.some(Ne);
316
+ function Pn(e) {
317
+ return a.isArray(e) && !e.some(Be);
318
318
  }
319
- const Pn = a.toFlatObject(a, {}, null, function(t) {
319
+ const Un = a.toFlatObject(a, {}, null, function(t) {
320
320
  return /^is[A-Z]/.test(t);
321
321
  });
322
- function _e(e, t, n) {
322
+ function Se(e, t, n) {
323
323
  if (!a.isObject(e))
324
324
  throw new TypeError("target must be an object");
325
325
  t = t || new FormData(), n = a.toFlatObject(n, {
@@ -347,21 +347,21 @@ function _e(e, t, n) {
347
347
  if (f && !h && typeof f == "object") {
348
348
  if (a.endsWith(m, "{}"))
349
349
  m = r ? m : m.slice(0, -2), f = JSON.stringify(f);
350
- else if (a.isArray(f) && vn(f) || (a.isFileList(f) || a.endsWith(m, "[]")) && (_ = a.toArray(f)))
351
- return m = Et(m), _.forEach(function(S, k) {
350
+ else if (a.isArray(f) && Pn(f) || (a.isFileList(f) || a.endsWith(m, "[]")) && (_ = a.toArray(f)))
351
+ return m = bt(m), _.forEach(function(S, N) {
352
352
  !(a.isUndefined(S) || S === null) && t.append(
353
353
  // eslint-disable-next-line no-nested-ternary
354
- o === !0 ? Xe([m], k, i) : o === null ? m : m + "[]",
354
+ o === !0 ? Ze([m], N, i) : o === null ? m : m + "[]",
355
355
  u(S)
356
356
  );
357
357
  }), !1;
358
358
  }
359
- return Ne(f) ? !0 : (t.append(Xe(h, m, i), u(f)), !1);
359
+ return Be(f) ? !0 : (t.append(Ze(h, m, i), u(f)), !1);
360
360
  }
361
- const p = [], y = Object.assign(Pn, {
361
+ const p = [], y = Object.assign(Un, {
362
362
  defaultVisitor: d,
363
363
  convertValue: u,
364
- isVisitable: Ne
364
+ isVisitable: Be
365
365
  });
366
366
  function E(f, m) {
367
367
  if (!a.isUndefined(f)) {
@@ -382,7 +382,7 @@ function _e(e, t, n) {
382
382
  throw new TypeError("data must be an object");
383
383
  return E(e), t;
384
384
  }
385
- function Ze(e) {
385
+ function Ye(e) {
386
386
  const t = {
387
387
  "!": "%21",
388
388
  "'": "%27",
@@ -397,27 +397,27 @@ function Ze(e) {
397
397
  });
398
398
  }
399
399
  function De(e, t) {
400
- this._pairs = [], e && _e(e, this, t);
400
+ this._pairs = [], e && Se(e, this, t);
401
401
  }
402
- const bt = De.prototype;
403
- bt.append = function(t, n) {
402
+ const _t = De.prototype;
403
+ _t.append = function(t, n) {
404
404
  this._pairs.push([t, n]);
405
405
  };
406
- bt.toString = function(t) {
406
+ _t.toString = function(t) {
407
407
  const n = t ? function(r) {
408
- return t.call(this, r, Ze);
409
- } : Ze;
408
+ return t.call(this, r, Ye);
409
+ } : Ye;
410
410
  return this._pairs.map(function(s) {
411
411
  return n(s[0]) + "=" + n(s[1]);
412
412
  }, "").join("&");
413
413
  };
414
- function Un(e) {
414
+ function In(e) {
415
415
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
416
416
  }
417
- function _t(e, t, n) {
417
+ function St(e, t, n) {
418
418
  if (!t)
419
419
  return e;
420
- const r = n && n.encode || Un;
420
+ const r = n && n.encode || In;
421
421
  a.isFunction(n) && (n = {
422
422
  serialize: n
423
423
  });
@@ -429,7 +429,7 @@ function _t(e, t, n) {
429
429
  }
430
430
  return e;
431
431
  }
432
- class Ye {
432
+ class Qe {
433
433
  constructor() {
434
434
  this.handlers = [];
435
435
  }
@@ -483,41 +483,41 @@ class Ye {
483
483
  });
484
484
  }
485
485
  }
486
- const St = {
486
+ const Rt = {
487
487
  silentJSONParsing: !0,
488
488
  forcedJSONParsing: !0,
489
489
  clarifyTimeoutError: !1
490
- }, In = typeof URLSearchParams < "u" ? URLSearchParams : De, Fn = typeof FormData < "u" ? FormData : null, Dn = typeof Blob < "u" ? Blob : null, jn = {
490
+ }, Fn = typeof URLSearchParams < "u" ? URLSearchParams : De, Dn = typeof FormData < "u" ? FormData : null, jn = typeof Blob < "u" ? Blob : null, Mn = {
491
491
  isBrowser: !0,
492
492
  classes: {
493
- URLSearchParams: In,
494
- FormData: Fn,
495
- Blob: Dn
493
+ URLSearchParams: Fn,
494
+ FormData: Dn,
495
+ Blob: jn
496
496
  },
497
497
  protocols: ["http", "https", "file", "blob", "url", "data"]
498
- }, je = typeof window < "u" && typeof document < "u", ve = typeof navigator == "object" && navigator || void 0, Mn = je && (!ve || ["ReactNative", "NativeScript", "NS"].indexOf(ve.product) < 0), qn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
499
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", $n = je && window.location.href || "http://localhost", Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
498
+ }, je = typeof window < "u" && typeof document < "u", ve = typeof navigator == "object" && navigator || void 0, $n = je && (!ve || ["ReactNative", "NativeScript", "NS"].indexOf(ve.product) < 0), qn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
499
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Hn = je && window.location.href || "http://localhost", zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
500
500
  __proto__: null,
501
501
  hasBrowserEnv: je,
502
- hasStandardBrowserEnv: Mn,
502
+ hasStandardBrowserEnv: $n,
503
503
  hasStandardBrowserWebWorkerEnv: qn,
504
504
  navigator: ve,
505
- origin: $n
506
- }, Symbol.toStringTag, { value: "Module" })), B = {
507
- ...Hn,
508
- ...jn
505
+ origin: Hn
506
+ }, Symbol.toStringTag, { value: "Module" })), k = {
507
+ ...zn,
508
+ ...Mn
509
509
  };
510
- function zn(e, t) {
511
- return _e(e, new B.classes.URLSearchParams(), Object.assign({
510
+ function Vn(e, t) {
511
+ return Se(e, new k.classes.URLSearchParams(), Object.assign({
512
512
  visitor: function(n, r, s, i) {
513
- return B.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
513
+ return k.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
514
514
  }
515
515
  }, t));
516
516
  }
517
- function Vn(e) {
517
+ function Jn(e) {
518
518
  return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
519
519
  }
520
- function Jn(e) {
520
+ function Gn(e) {
521
521
  const t = {}, n = Object.keys(e);
522
522
  let r;
523
523
  const s = n.length;
@@ -526,22 +526,22 @@ function Jn(e) {
526
526
  i = n[r], t[i] = e[i];
527
527
  return t;
528
528
  }
529
- function Rt(e) {
529
+ function Tt(e) {
530
530
  function t(n, r, s, i) {
531
531
  let o = n[i++];
532
532
  if (o === "__proto__") return !0;
533
533
  const c = Number.isFinite(+o), l = i >= n.length;
534
- return o = !o && a.isArray(s) ? s.length : o, l ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] = Jn(s[o])), !c);
534
+ return o = !o && a.isArray(s) ? s.length : o, l ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] = Gn(s[o])), !c);
535
535
  }
536
536
  if (a.isFormData(e) && a.isFunction(e.entries)) {
537
537
  const n = {};
538
538
  return a.forEachEntry(e, (r, s) => {
539
- t(Vn(r), s, n, 0);
539
+ t(Jn(r), s, n, 0);
540
540
  }), n;
541
541
  }
542
542
  return null;
543
543
  }
544
- function Gn(e, t, n) {
544
+ function Wn(e, t, n) {
545
545
  if (a.isString(e))
546
546
  try {
547
547
  return (t || JSON.parse)(e), a.trim(e);
@@ -551,13 +551,13 @@ function Gn(e, t, n) {
551
551
  }
552
552
  return (n || JSON.stringify)(e);
553
553
  }
554
- const le = {
555
- transitional: St,
554
+ const ue = {
555
+ transitional: Rt,
556
556
  adapter: ["xhr", "http", "fetch"],
557
557
  transformRequest: [function(t, n) {
558
558
  const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = a.isObject(t);
559
559
  if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
560
- return s ? JSON.stringify(Rt(t)) : t;
560
+ return s ? JSON.stringify(Tt(t)) : t;
561
561
  if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
562
562
  return t;
563
563
  if (a.isArrayBufferView(t))
@@ -567,20 +567,20 @@ const le = {
567
567
  let c;
568
568
  if (i) {
569
569
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
570
- return zn(t, this.formSerializer).toString();
570
+ return Vn(t, this.formSerializer).toString();
571
571
  if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
572
572
  const l = this.env && this.env.FormData;
573
- return _e(
573
+ return Se(
574
574
  c ? { "files[]": t } : t,
575
575
  l && new l(),
576
576
  this.formSerializer
577
577
  );
578
578
  }
579
579
  }
580
- return i || s ? (n.setContentType("application/json", !1), Gn(t)) : t;
580
+ return i || s ? (n.setContentType("application/json", !1), Wn(t)) : t;
581
581
  }],
582
582
  transformResponse: [function(t) {
583
- const n = this.transitional || le.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
583
+ const n = this.transitional || ue.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
584
584
  if (a.isResponse(t) || a.isReadableStream(t))
585
585
  return t;
586
586
  if (t && a.isString(t) && (r && !this.responseType || s)) {
@@ -604,8 +604,8 @@ const le = {
604
604
  maxContentLength: -1,
605
605
  maxBodyLength: -1,
606
606
  env: {
607
- FormData: B.classes.FormData,
608
- Blob: B.classes.Blob
607
+ FormData: k.classes.FormData,
608
+ Blob: k.classes.Blob
609
609
  },
610
610
  validateStatus: function(t) {
611
611
  return t >= 200 && t < 300;
@@ -618,9 +618,9 @@ const le = {
618
618
  }
619
619
  };
620
620
  a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
621
- le.headers[e] = {};
621
+ ue.headers[e] = {};
622
622
  });
623
- const Wn = a.toObjectSet([
623
+ const Kn = a.toObjectSet([
624
624
  "age",
625
625
  "authorization",
626
626
  "content-length",
@@ -638,28 +638,28 @@ const Wn = a.toObjectSet([
638
638
  "referer",
639
639
  "retry-after",
640
640
  "user-agent"
641
- ]), Kn = (e) => {
641
+ ]), Xn = (e) => {
642
642
  const t = {};
643
643
  let n, r, s;
644
644
  return e && e.split(`
645
645
  `).forEach(function(o) {
646
- s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && Wn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
646
+ s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && Kn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
647
647
  }), t;
648
- }, Qe = Symbol("internals");
649
- function se(e) {
648
+ }, et = Symbol("internals");
649
+ function oe(e) {
650
650
  return e && String(e).trim().toLowerCase();
651
651
  }
652
- function pe(e) {
653
- return e === !1 || e == null ? e : a.isArray(e) ? e.map(pe) : String(e);
652
+ function he(e) {
653
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map(he) : String(e);
654
654
  }
655
- function Xn(e) {
655
+ function Zn(e) {
656
656
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
657
657
  let r;
658
658
  for (; r = n.exec(e); )
659
659
  t[r[1]] = r[2];
660
660
  return t;
661
661
  }
662
- const Zn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
662
+ const Yn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
663
663
  function xe(e, t, n, r, s) {
664
664
  if (a.isFunction(r))
665
665
  return r.call(this, t, n);
@@ -670,10 +670,10 @@ function xe(e, t, n, r, s) {
670
670
  return r.test(t);
671
671
  }
672
672
  }
673
- function Yn(e) {
673
+ function Qn(e) {
674
674
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
675
675
  }
676
- function Qn(e, t) {
676
+ function er(e, t) {
677
677
  const n = a.toCamelCase(" " + t);
678
678
  ["get", "set", "has"].forEach((r) => {
679
679
  Object.defineProperty(e, r + n, {
@@ -691,17 +691,17 @@ let U = class {
691
691
  set(t, n, r) {
692
692
  const s = this;
693
693
  function i(c, l, u) {
694
- const d = se(l);
694
+ const d = oe(l);
695
695
  if (!d)
696
696
  throw new Error("header name must be a non-empty string");
697
697
  const p = a.findKey(s, d);
698
- (!p || s[p] === void 0 || u === !0 || u === void 0 && s[p] !== !1) && (s[p || l] = pe(c));
698
+ (!p || s[p] === void 0 || u === !0 || u === void 0 && s[p] !== !1) && (s[p || l] = he(c));
699
699
  }
700
700
  const o = (c, l) => a.forEach(c, (u, d) => i(u, d, l));
701
701
  if (a.isPlainObject(t) || t instanceof this.constructor)
702
702
  o(t, n);
703
- else if (a.isString(t) && (t = t.trim()) && !Zn(t))
704
- o(Kn(t), n);
703
+ else if (a.isString(t) && (t = t.trim()) && !Yn(t))
704
+ o(Xn(t), n);
705
705
  else if (a.isObject(t) && a.isIterable(t)) {
706
706
  let c = {}, l, u;
707
707
  for (const d of t) {
@@ -715,14 +715,14 @@ let U = class {
715
715
  return this;
716
716
  }
717
717
  get(t, n) {
718
- if (t = se(t), t) {
718
+ if (t = oe(t), t) {
719
719
  const r = a.findKey(this, t);
720
720
  if (r) {
721
721
  const s = this[r];
722
722
  if (!n)
723
723
  return s;
724
724
  if (n === !0)
725
- return Xn(s);
725
+ return Zn(s);
726
726
  if (a.isFunction(n))
727
727
  return n.call(this, s, r);
728
728
  if (a.isRegExp(n))
@@ -732,7 +732,7 @@ let U = class {
732
732
  }
733
733
  }
734
734
  has(t, n) {
735
- if (t = se(t), t) {
735
+ if (t = oe(t), t) {
736
736
  const r = a.findKey(this, t);
737
737
  return !!(r && this[r] !== void 0 && (!n || xe(this, this[r], r, n)));
738
738
  }
@@ -742,7 +742,7 @@ let U = class {
742
742
  const r = this;
743
743
  let s = !1;
744
744
  function i(o) {
745
- if (o = se(o), o) {
745
+ if (o = oe(o), o) {
746
746
  const c = a.findKey(r, o);
747
747
  c && (!n || xe(r, r[c], c, n)) && (delete r[c], s = !0);
748
748
  }
@@ -763,11 +763,11 @@ let U = class {
763
763
  return a.forEach(this, (s, i) => {
764
764
  const o = a.findKey(r, i);
765
765
  if (o) {
766
- n[o] = pe(s), delete n[i];
766
+ n[o] = he(s), delete n[i];
767
767
  return;
768
768
  }
769
- const c = t ? Yn(i) : String(i).trim();
770
- c !== i && delete n[i], n[c] = pe(s), r[c] = !0;
769
+ const c = t ? Qn(i) : String(i).trim();
770
+ c !== i && delete n[i], n[c] = he(s), r[c] = !0;
771
771
  }), this;
772
772
  }
773
773
  concat(...t) {
@@ -800,12 +800,12 @@ let U = class {
800
800
  return n.forEach((s) => r.set(s)), r;
801
801
  }
802
802
  static accessor(t) {
803
- const r = (this[Qe] = this[Qe] = {
803
+ const r = (this[et] = this[et] = {
804
804
  accessors: {}
805
805
  }).accessors, s = this.prototype;
806
806
  function i(o) {
807
- const c = se(o);
808
- r[c] || (Qn(s, o), r[c] = !0);
807
+ const c = oe(o);
808
+ r[c] || (er(s, o), r[c] = !0);
809
809
  }
810
810
  return a.isArray(t) ? t.forEach(i) : i(t), this;
811
811
  }
@@ -822,22 +822,22 @@ a.reduceDescriptors(U.prototype, ({ value: e }, t) => {
822
822
  });
823
823
  a.freezeMethods(U);
824
824
  function Le(e, t) {
825
- const n = this || le, r = t || n, s = U.from(r.headers);
825
+ const n = this || ue, r = t || n, s = U.from(r.headers);
826
826
  let i = r.data;
827
827
  return a.forEach(e, function(c) {
828
828
  i = c.call(n, i, s.normalize(), t ? t.status : void 0);
829
829
  }), s.normalize(), i;
830
830
  }
831
- function Tt(e) {
831
+ function At(e) {
832
832
  return !!(e && e.__CANCEL__);
833
833
  }
834
- function te(e, t, n) {
834
+ function ne(e, t, n) {
835
835
  g.call(this, e ?? "canceled", g.ERR_CANCELED, t, n), this.name = "CanceledError";
836
836
  }
837
- a.inherits(te, g, {
837
+ a.inherits(ne, g, {
838
838
  __CANCEL__: !0
839
839
  });
840
- function At(e, t, n) {
840
+ function Ot(e, t, n) {
841
841
  const r = n.config.validateStatus;
842
842
  !n.status || !r || r(n.status) ? e(n) : t(new g(
843
843
  "Request failed with status code " + n.status,
@@ -847,11 +847,11 @@ function At(e, t, n) {
847
847
  n
848
848
  ));
849
849
  }
850
- function er(e) {
850
+ function tr(e) {
851
851
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
852
852
  return t && t[1] || "";
853
853
  }
854
- function tr(e, t) {
854
+ function nr(e, t) {
855
855
  e = e || 10;
856
856
  const n = new Array(e), r = new Array(e);
857
857
  let s = 0, i = 0, o;
@@ -867,7 +867,7 @@ function tr(e, t) {
867
867
  return E ? Math.round(y * 1e3 / E) : void 0;
868
868
  };
869
869
  }
870
- function nr(e, t) {
870
+ function rr(e, t) {
871
871
  let n = 0, r = 1e3 / t, s, i;
872
872
  const o = (u, d = Date.now()) => {
873
873
  n = d, s = null, i && (clearTimeout(i), i = null), e.apply(null, u);
@@ -879,10 +879,10 @@ function nr(e, t) {
879
879
  }, r - p)));
880
880
  }, () => s && o(s)];
881
881
  }
882
- const me = (e, t, n = 3) => {
882
+ const ge = (e, t, n = 3) => {
883
883
  let r = 0;
884
- const s = tr(50, 250);
885
- return nr((i) => {
884
+ const s = nr(50, 250);
885
+ return rr((i) => {
886
886
  const o = i.loaded, c = i.lengthComputable ? i.total : void 0, l = o - r, u = s(l), d = o <= c;
887
887
  r = o;
888
888
  const p = {
@@ -898,17 +898,17 @@ const me = (e, t, n = 3) => {
898
898
  };
899
899
  e(p);
900
900
  }, n);
901
- }, et = (e, t) => {
901
+ }, tt = (e, t) => {
902
902
  const n = e != null;
903
903
  return [(r) => t[0]({
904
904
  lengthComputable: n,
905
905
  total: e,
906
906
  loaded: r
907
907
  }), t[1]];
908
- }, tt = (e) => (...t) => a.asap(() => e(...t)), rr = B.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, B.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
909
- new URL(B.origin),
910
- B.navigator && /(msie|trident)/i.test(B.navigator.userAgent)
911
- ) : () => !0, sr = B.hasStandardBrowserEnv ? (
908
+ }, nt = (e) => (...t) => a.asap(() => e(...t)), sr = k.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, k.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
909
+ new URL(k.origin),
910
+ k.navigator && /(msie|trident)/i.test(k.navigator.userAgent)
911
+ ) : () => !0, or = k.hasStandardBrowserEnv ? (
912
912
  // Standard browser envs support document.cookie
913
913
  {
914
914
  write(e, t, n, r, s, i) {
@@ -935,17 +935,17 @@ const me = (e, t, n = 3) => {
935
935
  }
936
936
  }
937
937
  );
938
- function or(e) {
938
+ function ir(e) {
939
939
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
940
940
  }
941
- function ir(e, t) {
941
+ function ar(e, t) {
942
942
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
943
943
  }
944
- function Ot(e, t, n) {
945
- let r = !or(t);
946
- return e && (r || n == !1) ? ir(e, t) : t;
944
+ function xt(e, t, n) {
945
+ let r = !ir(t);
946
+ return e && (r || n == !1) ? ar(e, t) : t;
947
947
  }
948
- const nt = (e) => e instanceof U ? { ...e } : e;
948
+ const rt = (e) => e instanceof U ? { ...e } : e;
949
949
  function Y(e, t) {
950
950
  t = t || {};
951
951
  const n = {};
@@ -1003,37 +1003,37 @@ function Y(e, t) {
1003
1003
  socketPath: o,
1004
1004
  responseEncoding: o,
1005
1005
  validateStatus: c,
1006
- headers: (u, d, p) => s(nt(u), nt(d), p, !0)
1006
+ headers: (u, d, p) => s(rt(u), rt(d), p, !0)
1007
1007
  };
1008
1008
  return a.forEach(Object.keys(Object.assign({}, e, t)), function(d) {
1009
1009
  const p = l[d] || s, y = p(e[d], t[d], d);
1010
1010
  a.isUndefined(y) && p !== c || (n[d] = y);
1011
1011
  }), n;
1012
1012
  }
1013
- const xt = (e) => {
1013
+ const Lt = (e) => {
1014
1014
  const t = Y({}, e);
1015
1015
  let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: c } = t;
1016
- t.headers = o = U.from(o), t.url = _t(Ot(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && o.set(
1016
+ t.headers = o = U.from(o), t.url = St(xt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && o.set(
1017
1017
  "Authorization",
1018
1018
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1019
1019
  );
1020
1020
  let l;
1021
1021
  if (a.isFormData(n)) {
1022
- if (B.hasStandardBrowserEnv || B.hasStandardBrowserWebWorkerEnv)
1022
+ if (k.hasStandardBrowserEnv || k.hasStandardBrowserWebWorkerEnv)
1023
1023
  o.setContentType(void 0);
1024
1024
  else if ((l = o.getContentType()) !== !1) {
1025
1025
  const [u, ...d] = l ? l.split(";").map((p) => p.trim()).filter(Boolean) : [];
1026
1026
  o.setContentType([u || "multipart/form-data", ...d].join("; "));
1027
1027
  }
1028
1028
  }
1029
- if (B.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && rr(t.url))) {
1030
- const u = s && i && sr.read(i);
1029
+ if (k.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && sr(t.url))) {
1030
+ const u = s && i && or.read(i);
1031
1031
  u && o.set(s, u);
1032
1032
  }
1033
1033
  return t;
1034
- }, ar = typeof XMLHttpRequest < "u", cr = ar && function(e) {
1034
+ }, cr = typeof XMLHttpRequest < "u", lr = cr && function(e) {
1035
1035
  return new Promise(function(n, r) {
1036
- const s = xt(e);
1036
+ const s = Lt(e);
1037
1037
  let i = s.data;
1038
1038
  const o = U.from(s.headers).normalize();
1039
1039
  let { responseType: c, onUploadProgress: l, onDownloadProgress: u } = s, d, p, y, E, f;
@@ -1055,7 +1055,7 @@ const xt = (e) => {
1055
1055
  config: e,
1056
1056
  request: h
1057
1057
  };
1058
- At(function(D) {
1058
+ Ot(function(D) {
1059
1059
  n(D), m();
1060
1060
  }, function(D) {
1061
1061
  r(D), m();
@@ -1068,27 +1068,27 @@ const xt = (e) => {
1068
1068
  }, h.onerror = function() {
1069
1069
  r(new g("Network Error", g.ERR_NETWORK, e, h)), h = null;
1070
1070
  }, h.ontimeout = function() {
1071
- let k = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1072
- const O = s.transitional || St;
1073
- s.timeoutErrorMessage && (k = s.timeoutErrorMessage), r(new g(
1074
- k,
1071
+ let N = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1072
+ const O = s.transitional || Rt;
1073
+ s.timeoutErrorMessage && (N = s.timeoutErrorMessage), r(new g(
1074
+ N,
1075
1075
  O.clarifyTimeoutError ? g.ETIMEDOUT : g.ECONNABORTED,
1076
1076
  e,
1077
1077
  h
1078
1078
  )), h = null;
1079
- }, i === void 0 && o.setContentType(null), "setRequestHeader" in h && a.forEach(o.toJSON(), function(k, O) {
1080
- h.setRequestHeader(O, k);
1081
- }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([y, f] = me(u, !0), h.addEventListener("progress", y)), l && h.upload && ([p, E] = me(l), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (d = (S) => {
1082
- h && (r(!S || S.type ? new te(null, e, h) : S), h.abort(), h = null);
1079
+ }, i === void 0 && o.setContentType(null), "setRequestHeader" in h && a.forEach(o.toJSON(), function(N, O) {
1080
+ h.setRequestHeader(O, N);
1081
+ }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([y, f] = ge(u, !0), h.addEventListener("progress", y)), l && h.upload && ([p, E] = ge(l), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (d = (S) => {
1082
+ h && (r(!S || S.type ? new ne(null, e, h) : S), h.abort(), h = null);
1083
1083
  }, s.cancelToken && s.cancelToken.subscribe(d), s.signal && (s.signal.aborted ? d() : s.signal.addEventListener("abort", d)));
1084
- const R = er(s.url);
1085
- if (R && B.protocols.indexOf(R) === -1) {
1084
+ const R = tr(s.url);
1085
+ if (R && k.protocols.indexOf(R) === -1) {
1086
1086
  r(new g("Unsupported protocol " + R + ":", g.ERR_BAD_REQUEST, e));
1087
1087
  return;
1088
1088
  }
1089
1089
  h.send(i || null);
1090
1090
  });
1091
- }, lr = (e, t) => {
1091
+ }, ur = (e, t) => {
1092
1092
  const { length: n } = e = e ? e.filter(Boolean) : [];
1093
1093
  if (t || n) {
1094
1094
  let r = new AbortController(), s;
@@ -1096,7 +1096,7 @@ const xt = (e) => {
1096
1096
  if (!s) {
1097
1097
  s = !0, c();
1098
1098
  const d = u instanceof Error ? u : this.reason;
1099
- r.abort(d instanceof g ? d : new te(d instanceof Error ? d.message : d));
1099
+ r.abort(d instanceof g ? d : new ne(d instanceof Error ? d.message : d));
1100
1100
  }
1101
1101
  };
1102
1102
  let o = t && setTimeout(() => {
@@ -1111,7 +1111,7 @@ const xt = (e) => {
1111
1111
  const { signal: l } = r;
1112
1112
  return l.unsubscribe = () => a.asap(c), l;
1113
1113
  }
1114
- }, ur = function* (e, t) {
1114
+ }, dr = function* (e, t) {
1115
1115
  let n = e.byteLength;
1116
1116
  if (n < t) {
1117
1117
  yield e;
@@ -1120,10 +1120,10 @@ const xt = (e) => {
1120
1120
  let r = 0, s;
1121
1121
  for (; r < n; )
1122
1122
  s = r + t, yield e.slice(r, s), r = s;
1123
- }, dr = async function* (e, t) {
1124
- for await (const n of fr(e))
1125
- yield* ur(n, t);
1126
- }, fr = async function* (e) {
1123
+ }, fr = async function* (e, t) {
1124
+ for await (const n of pr(e))
1125
+ yield* dr(n, t);
1126
+ }, pr = async function* (e) {
1127
1127
  if (e[Symbol.asyncIterator]) {
1128
1128
  yield* e;
1129
1129
  return;
@@ -1139,8 +1139,8 @@ const xt = (e) => {
1139
1139
  } finally {
1140
1140
  await t.cancel();
1141
1141
  }
1142
- }, rt = (e, t, n, r) => {
1143
- const s = dr(e, t);
1142
+ }, st = (e, t, n, r) => {
1143
+ const s = fr(e, t);
1144
1144
  let i = 0, o, c = (l) => {
1145
1145
  o || (o = !0, r && r(l));
1146
1146
  };
@@ -1168,15 +1168,15 @@ const xt = (e) => {
1168
1168
  }, {
1169
1169
  highWaterMark: 2
1170
1170
  });
1171
- }, Se = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Lt = Se && typeof ReadableStream == "function", pr = Se && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ct = (e, ...t) => {
1171
+ }, Re = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Ct = Re && typeof ReadableStream == "function", hr = Re && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Nt = (e, ...t) => {
1172
1172
  try {
1173
1173
  return !!e(...t);
1174
1174
  } catch {
1175
1175
  return !1;
1176
1176
  }
1177
- }, hr = Lt && Ct(() => {
1177
+ }, mr = Ct && Nt(() => {
1178
1178
  let e = !1;
1179
- const t = new Request(B.origin, {
1179
+ const t = new Request(k.origin, {
1180
1180
  body: new ReadableStream(),
1181
1181
  method: "POST",
1182
1182
  get duplex() {
@@ -1184,34 +1184,34 @@ const xt = (e) => {
1184
1184
  }
1185
1185
  }).headers.has("Content-Type");
1186
1186
  return e && !t;
1187
- }), st = 64 * 1024, Pe = Lt && Ct(() => a.isReadableStream(new Response("").body)), ge = {
1187
+ }), ot = 64 * 1024, Pe = Ct && Nt(() => a.isReadableStream(new Response("").body)), we = {
1188
1188
  stream: Pe && ((e) => e.body)
1189
1189
  };
1190
- Se && ((e) => {
1190
+ Re && ((e) => {
1191
1191
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1192
- !ge[t] && (ge[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1192
+ !we[t] && (we[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1193
1193
  throw new g(`Response type '${t}' is not supported`, g.ERR_NOT_SUPPORT, r);
1194
1194
  });
1195
1195
  });
1196
1196
  })(new Response());
1197
- const mr = async (e) => {
1197
+ const gr = async (e) => {
1198
1198
  if (e == null)
1199
1199
  return 0;
1200
1200
  if (a.isBlob(e))
1201
1201
  return e.size;
1202
1202
  if (a.isSpecCompliantForm(e))
1203
- return (await new Request(B.origin, {
1203
+ return (await new Request(k.origin, {
1204
1204
  method: "POST",
1205
1205
  body: e
1206
1206
  }).arrayBuffer()).byteLength;
1207
1207
  if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
1208
1208
  return e.byteLength;
1209
1209
  if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
1210
- return (await pr(e)).byteLength;
1211
- }, gr = async (e, t) => {
1210
+ return (await hr(e)).byteLength;
1211
+ }, wr = async (e, t) => {
1212
1212
  const n = a.toFiniteNumber(e.getContentLength());
1213
- return n ?? mr(t);
1214
- }, wr = Se && (async (e) => {
1213
+ return n ?? gr(t);
1214
+ }, yr = Re && (async (e) => {
1215
1215
  let {
1216
1216
  url: t,
1217
1217
  method: n,
@@ -1225,26 +1225,26 @@ const mr = async (e) => {
1225
1225
  headers: d,
1226
1226
  withCredentials: p = "same-origin",
1227
1227
  fetchOptions: y
1228
- } = xt(e);
1228
+ } = Lt(e);
1229
1229
  u = u ? (u + "").toLowerCase() : "text";
1230
- let E = lr([s, i && i.toAbortSignal()], o), f;
1230
+ let E = ur([s, i && i.toAbortSignal()], o), f;
1231
1231
  const m = E && E.unsubscribe && (() => {
1232
1232
  E.unsubscribe();
1233
1233
  });
1234
1234
  let h;
1235
1235
  try {
1236
- if (l && hr && n !== "get" && n !== "head" && (h = await gr(d, r)) !== 0) {
1236
+ if (l && mr && n !== "get" && n !== "head" && (h = await wr(d, r)) !== 0) {
1237
1237
  let O = new Request(t, {
1238
1238
  method: "POST",
1239
1239
  body: r,
1240
1240
  duplex: "half"
1241
- }), N;
1242
- if (a.isFormData(r) && (N = O.headers.get("content-type")) && d.setContentType(N), O.body) {
1243
- const [D, b] = et(
1241
+ }), B;
1242
+ if (a.isFormData(r) && (B = O.headers.get("content-type")) && d.setContentType(B), O.body) {
1243
+ const [D, b] = tt(
1244
1244
  h,
1245
- me(tt(l))
1245
+ ge(nt(l))
1246
1246
  );
1247
- r = rt(O.body, st, D, b);
1247
+ r = st(O.body, ot, D, b);
1248
1248
  }
1249
1249
  }
1250
1250
  a.isString(p) || (p = p ? "include" : "omit");
@@ -1262,25 +1262,25 @@ const mr = async (e) => {
1262
1262
  const S = Pe && (u === "stream" || u === "response");
1263
1263
  if (Pe && (c || S && m)) {
1264
1264
  const O = {};
1265
- ["status", "statusText", "headers"].forEach((T) => {
1266
- O[T] = R[T];
1265
+ ["status", "statusText", "headers"].forEach((A) => {
1266
+ O[A] = R[A];
1267
1267
  });
1268
- const N = a.toFiniteNumber(R.headers.get("content-length")), [D, b] = c && et(
1269
- N,
1270
- me(tt(c), !0)
1268
+ const B = a.toFiniteNumber(R.headers.get("content-length")), [D, b] = c && tt(
1269
+ B,
1270
+ ge(nt(c), !0)
1271
1271
  ) || [];
1272
1272
  R = new Response(
1273
- rt(R.body, st, D, () => {
1273
+ st(R.body, ot, D, () => {
1274
1274
  b && b(), m && m();
1275
1275
  }),
1276
1276
  O
1277
1277
  );
1278
1278
  }
1279
1279
  u = u || "text";
1280
- let k = await ge[a.findKey(ge, u) || "text"](R, e);
1281
- return !S && m && m(), await new Promise((O, N) => {
1282
- At(O, N, {
1283
- data: k,
1280
+ let N = await we[a.findKey(we, u) || "text"](R, e);
1281
+ return !S && m && m(), await new Promise((O, B) => {
1282
+ Ot(O, B, {
1283
+ data: N,
1284
1284
  headers: U.from(R.headers),
1285
1285
  status: R.status,
1286
1286
  statusText: R.statusText,
@@ -1297,9 +1297,9 @@ const mr = async (e) => {
1297
1297
  ) : g.from(_, _ && _.code, e, f);
1298
1298
  }
1299
1299
  }), Ue = {
1300
- http: Nn,
1301
- xhr: cr,
1302
- fetch: wr
1300
+ http: vn,
1301
+ xhr: lr,
1302
+ fetch: yr
1303
1303
  };
1304
1304
  a.forEach(Ue, (e, t) => {
1305
1305
  if (e) {
@@ -1310,7 +1310,7 @@ a.forEach(Ue, (e, t) => {
1310
1310
  Object.defineProperty(e, "adapterName", { value: t });
1311
1311
  }
1312
1312
  });
1313
- const ot = (e) => `- ${e}`, yr = (e) => a.isFunction(e) || e === null || e === !1, kt = {
1313
+ const it = (e) => `- ${e}`, Er = (e) => a.isFunction(e) || e === null || e === !1, kt = {
1314
1314
  getAdapter: (e) => {
1315
1315
  e = a.isArray(e) ? e : [e];
1316
1316
  const { length: t } = e;
@@ -1319,7 +1319,7 @@ const ot = (e) => `- ${e}`, yr = (e) => a.isFunction(e) || e === null || e === !
1319
1319
  for (let i = 0; i < t; i++) {
1320
1320
  n = e[i];
1321
1321
  let o;
1322
- if (r = n, !yr(n) && (r = Ue[(o = String(n)).toLowerCase()], r === void 0))
1322
+ if (r = n, !Er(n) && (r = Ue[(o = String(n)).toLowerCase()], r === void 0))
1323
1323
  throw new g(`Unknown adapter '${o}'`);
1324
1324
  if (r)
1325
1325
  break;
@@ -1330,8 +1330,8 @@ const ot = (e) => `- ${e}`, yr = (e) => a.isFunction(e) || e === null || e === !
1330
1330
  ([c, l]) => `adapter ${c} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
1331
1331
  );
1332
1332
  let o = t ? i.length > 1 ? `since :
1333
- ` + i.map(ot).join(`
1334
- `) : " " + ot(i[0]) : "as no adapter specified";
1333
+ ` + i.map(it).join(`
1334
+ `) : " " + it(i[0]) : "as no adapter specified";
1335
1335
  throw new g(
1336
1336
  "There is no suitable adapter to dispatch the request " + o,
1337
1337
  "ERR_NOT_SUPPORT"
@@ -1343,34 +1343,34 @@ const ot = (e) => `- ${e}`, yr = (e) => a.isFunction(e) || e === null || e === !
1343
1343
  };
1344
1344
  function Ce(e) {
1345
1345
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1346
- throw new te(null, e);
1346
+ throw new ne(null, e);
1347
1347
  }
1348
- function it(e) {
1348
+ function at(e) {
1349
1349
  return Ce(e), e.headers = U.from(e.headers), e.data = Le.call(
1350
1350
  e,
1351
1351
  e.transformRequest
1352
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), kt.getAdapter(e.adapter || le.adapter)(e).then(function(r) {
1352
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), kt.getAdapter(e.adapter || ue.adapter)(e).then(function(r) {
1353
1353
  return Ce(e), r.data = Le.call(
1354
1354
  e,
1355
1355
  e.transformResponse,
1356
1356
  r
1357
1357
  ), r.headers = U.from(r.headers), r;
1358
1358
  }, function(r) {
1359
- return Tt(r) || (Ce(e), r && r.response && (r.response.data = Le.call(
1359
+ return At(r) || (Ce(e), r && r.response && (r.response.data = Le.call(
1360
1360
  e,
1361
1361
  e.transformResponse,
1362
1362
  r.response
1363
1363
  ), r.response.headers = U.from(r.response.headers))), Promise.reject(r);
1364
1364
  });
1365
1365
  }
1366
- const Bt = "1.10.0", Re = {};
1366
+ const Bt = "1.10.0", Te = {};
1367
1367
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1368
- Re[e] = function(r) {
1368
+ Te[e] = function(r) {
1369
1369
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1370
1370
  };
1371
1371
  });
1372
- const at = {};
1373
- Re.transitional = function(t, n, r) {
1372
+ const ct = {};
1373
+ Te.transitional = function(t, n, r) {
1374
1374
  function s(i, o) {
1375
1375
  return "[Axios v" + Bt + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1376
1376
  }
@@ -1380,7 +1380,7 @@ Re.transitional = function(t, n, r) {
1380
1380
  s(o, " has been removed" + (n ? " in " + n : "")),
1381
1381
  g.ERR_DEPRECATED
1382
1382
  );
1383
- return n && !at[o] && (at[o] = !0, console.warn(
1383
+ return n && !ct[o] && (ct[o] = !0, console.warn(
1384
1384
  s(
1385
1385
  o,
1386
1386
  " has been deprecated since v" + n + " and will be removed in the near future"
@@ -1388,10 +1388,10 @@ Re.transitional = function(t, n, r) {
1388
1388
  )), t ? t(i, o, c) : !0;
1389
1389
  };
1390
1390
  };
1391
- Re.spelling = function(t) {
1391
+ Te.spelling = function(t) {
1392
1392
  return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1393
1393
  };
1394
- function Er(e, t, n) {
1394
+ function br(e, t, n) {
1395
1395
  if (typeof e != "object")
1396
1396
  throw new g("options must be an object", g.ERR_BAD_OPTION_VALUE);
1397
1397
  const r = Object.keys(e);
@@ -1408,15 +1408,15 @@ function Er(e, t, n) {
1408
1408
  throw new g("Unknown option " + i, g.ERR_BAD_OPTION);
1409
1409
  }
1410
1410
  }
1411
- const he = {
1412
- assertOptions: Er,
1413
- validators: Re
1414
- }, $ = he.validators;
1411
+ const me = {
1412
+ assertOptions: br,
1413
+ validators: Te
1414
+ }, q = me.validators;
1415
1415
  let Z = class {
1416
1416
  constructor(t) {
1417
1417
  this.defaults = t || {}, this.interceptors = {
1418
- request: new Ye(),
1419
- response: new Ye()
1418
+ request: new Qe(),
1419
+ response: new Qe()
1420
1420
  };
1421
1421
  }
1422
1422
  /**
@@ -1447,18 +1447,18 @@ let Z = class {
1447
1447
  _request(t, n) {
1448
1448
  typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Y(this.defaults, n);
1449
1449
  const { transitional: r, paramsSerializer: s, headers: i } = n;
1450
- r !== void 0 && he.assertOptions(r, {
1451
- silentJSONParsing: $.transitional($.boolean),
1452
- forcedJSONParsing: $.transitional($.boolean),
1453
- clarifyTimeoutError: $.transitional($.boolean)
1450
+ r !== void 0 && me.assertOptions(r, {
1451
+ silentJSONParsing: q.transitional(q.boolean),
1452
+ forcedJSONParsing: q.transitional(q.boolean),
1453
+ clarifyTimeoutError: q.transitional(q.boolean)
1454
1454
  }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1455
1455
  serialize: s
1456
- } : he.assertOptions(s, {
1457
- encode: $.function,
1458
- serialize: $.function
1459
- }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), he.assertOptions(n, {
1460
- baseUrl: $.spelling("baseURL"),
1461
- withXsrfToken: $.spelling("withXSRFToken")
1456
+ } : me.assertOptions(s, {
1457
+ encode: q.function,
1458
+ serialize: q.function
1459
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), me.assertOptions(n, {
1460
+ baseUrl: q.spelling("baseURL"),
1461
+ withXsrfToken: q.spelling("withXSRFToken")
1462
1462
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1463
1463
  let o = i && a.merge(
1464
1464
  i.common,
@@ -1481,7 +1481,7 @@ let Z = class {
1481
1481
  });
1482
1482
  let d, p = 0, y;
1483
1483
  if (!l) {
1484
- const f = [it.bind(this), void 0];
1484
+ const f = [at.bind(this), void 0];
1485
1485
  for (f.unshift.apply(f, c), f.push.apply(f, u), y = f.length, d = Promise.resolve(n); p < y; )
1486
1486
  d = d.then(f[p++], f[p++]);
1487
1487
  return d;
@@ -1498,7 +1498,7 @@ let Z = class {
1498
1498
  }
1499
1499
  }
1500
1500
  try {
1501
- d = it.call(this, E);
1501
+ d = at.call(this, E);
1502
1502
  } catch (f) {
1503
1503
  return Promise.reject(f);
1504
1504
  }
@@ -1508,8 +1508,8 @@ let Z = class {
1508
1508
  }
1509
1509
  getUri(t) {
1510
1510
  t = Y(this.defaults, t);
1511
- const n = Ot(t.baseURL, t.url, t.allowAbsoluteUrls);
1512
- return _t(n, t.params, t.paramsSerializer);
1511
+ const n = xt(t.baseURL, t.url, t.allowAbsoluteUrls);
1512
+ return St(n, t.params, t.paramsSerializer);
1513
1513
  }
1514
1514
  };
1515
1515
  a.forEach(["delete", "get", "head", "options"], function(t) {
@@ -1536,7 +1536,7 @@ a.forEach(["post", "put", "patch"], function(t) {
1536
1536
  }
1537
1537
  Z.prototype[t] = n(), Z.prototype[t + "Form"] = n(!0);
1538
1538
  });
1539
- let br = class Nt {
1539
+ let _r = class vt {
1540
1540
  constructor(t) {
1541
1541
  if (typeof t != "function")
1542
1542
  throw new TypeError("executor must be a function.");
@@ -1560,7 +1560,7 @@ let br = class Nt {
1560
1560
  r.unsubscribe(i);
1561
1561
  }, o;
1562
1562
  }, t(function(i, o, c) {
1563
- r.reason || (r.reason = new te(i, o, c), n(r.reason));
1563
+ r.reason || (r.reason = new ne(i, o, c), n(r.reason));
1564
1564
  });
1565
1565
  }
1566
1566
  /**
@@ -1602,19 +1602,19 @@ let br = class Nt {
1602
1602
  static source() {
1603
1603
  let t;
1604
1604
  return {
1605
- token: new Nt(function(s) {
1605
+ token: new vt(function(s) {
1606
1606
  t = s;
1607
1607
  }),
1608
1608
  cancel: t
1609
1609
  };
1610
1610
  }
1611
1611
  };
1612
- function _r(e) {
1612
+ function Sr(e) {
1613
1613
  return function(n) {
1614
1614
  return e.apply(null, n);
1615
1615
  };
1616
1616
  }
1617
- function Sr(e) {
1617
+ function Rr(e) {
1618
1618
  return a.isObject(e) && e.isAxiosError === !0;
1619
1619
  }
1620
1620
  const Ie = {
@@ -1685,56 +1685,56 @@ const Ie = {
1685
1685
  Object.entries(Ie).forEach(([e, t]) => {
1686
1686
  Ie[t] = e;
1687
1687
  });
1688
- function vt(e) {
1689
- const t = new Z(e), n = lt(Z.prototype.request, t);
1688
+ function Pt(e) {
1689
+ const t = new Z(e), n = ut(Z.prototype.request, t);
1690
1690
  return a.extend(n, Z.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1691
- return vt(Y(e, s));
1691
+ return Pt(Y(e, s));
1692
1692
  }, n;
1693
1693
  }
1694
- const x = vt(le);
1694
+ const x = Pt(ue);
1695
1695
  x.Axios = Z;
1696
- x.CanceledError = te;
1697
- x.CancelToken = br;
1698
- x.isCancel = Tt;
1696
+ x.CanceledError = ne;
1697
+ x.CancelToken = _r;
1698
+ x.isCancel = At;
1699
1699
  x.VERSION = Bt;
1700
- x.toFormData = _e;
1700
+ x.toFormData = Se;
1701
1701
  x.AxiosError = g;
1702
1702
  x.Cancel = x.CanceledError;
1703
1703
  x.all = function(t) {
1704
1704
  return Promise.all(t);
1705
1705
  };
1706
- x.spread = _r;
1707
- x.isAxiosError = Sr;
1706
+ x.spread = Sr;
1707
+ x.isAxiosError = Rr;
1708
1708
  x.mergeConfig = Y;
1709
1709
  x.AxiosHeaders = U;
1710
- x.formToJSON = (e) => Rt(a.isHTMLForm(e) ? new FormData(e) : e);
1710
+ x.formToJSON = (e) => Tt(a.isHTMLForm(e) ? new FormData(e) : e);
1711
1711
  x.getAdapter = kt.getAdapter;
1712
1712
  x.HttpStatusCode = Ie;
1713
1713
  x.default = x;
1714
1714
  const {
1715
- Axios: Es,
1716
- AxiosError: bs,
1717
- CanceledError: _s,
1718
- isCancel: Ss,
1719
- CancelToken: Rs,
1720
- VERSION: Ts,
1721
- all: As,
1722
- Cancel: Os,
1723
- isAxiosError: xs,
1724
- spread: Ls,
1725
- toFormData: Cs,
1715
+ Axios: bs,
1716
+ AxiosError: _s,
1717
+ CanceledError: Ss,
1718
+ isCancel: Rs,
1719
+ CancelToken: Ts,
1720
+ VERSION: As,
1721
+ all: Os,
1722
+ Cancel: xs,
1723
+ isAxiosError: Ls,
1724
+ spread: Cs,
1725
+ toFormData: Ns,
1726
1726
  AxiosHeaders: ks,
1727
1727
  HttpStatusCode: Bs,
1728
- formToJSON: Ns,
1729
- getAdapter: vs,
1730
- mergeConfig: Ps
1728
+ formToJSON: vs,
1729
+ getAdapter: Ps,
1730
+ mergeConfig: Us
1731
1731
  } = x;
1732
1732
  function Me(e) {
1733
1733
  return new Promise((t, n) => {
1734
1734
  e.oncomplete = e.onsuccess = () => t(e.result), e.onabort = e.onerror = () => n(e.error);
1735
1735
  });
1736
1736
  }
1737
- function Rr(e, t) {
1737
+ function Tr(e, t) {
1738
1738
  let n;
1739
1739
  const r = () => {
1740
1740
  if (n)
@@ -1747,23 +1747,23 @@ function Rr(e, t) {
1747
1747
  };
1748
1748
  return (s, i) => r().then((o) => i(o.transaction(t, s).objectStore(t)));
1749
1749
  }
1750
- let ke;
1751
- function Pt() {
1752
- return ke || (ke = Rr("keyval-store", "keyval")), ke;
1750
+ let Ne;
1751
+ function Ut() {
1752
+ return Ne || (Ne = Tr("keyval-store", "keyval")), Ne;
1753
1753
  }
1754
- function Tr(e, t = Pt()) {
1754
+ function Ar(e, t = Ut()) {
1755
1755
  return t("readonly", (n) => Me(n.get(e)));
1756
1756
  }
1757
- function Ar(e, t, n = Pt()) {
1757
+ function Or(e, t, n = Ut()) {
1758
1758
  return n("readwrite", (r) => (r.put(t, e), Me(r.transaction)));
1759
1759
  }
1760
- async function Or(e) {
1761
- return await Tr(e) ?? null;
1760
+ async function xr(e) {
1761
+ return await Ar(e) ?? null;
1762
1762
  }
1763
- async function xr(e, t) {
1764
- await Ar(e, t);
1763
+ async function Lr(e, t) {
1764
+ await Or(e, t);
1765
1765
  }
1766
- function Lr(e) {
1766
+ function Cr(e) {
1767
1767
  const [t, n] = C({
1768
1768
  isPlaying: !1,
1769
1769
  isPaused: !1,
@@ -1779,25 +1779,25 @@ function Lr(e) {
1779
1779
  }, [r]);
1780
1780
  const E = (b) => {
1781
1781
  if (e.avatars.length <= 1) return 0;
1782
- const T = e.avatars.length, q = 100 / T;
1783
- return Math.min(Math.floor(b / q), T - 1);
1782
+ const A = e.avatars.length, $ = 100 / A;
1783
+ return Math.min(Math.floor(b / $), A - 1);
1784
1784
  }, f = () => {
1785
1785
  u.current && (clearInterval(u.current), u.current = null);
1786
1786
  }, m = () => {
1787
1787
  l.current && (u.current = setInterval(() => {
1788
1788
  if (l.current && l.current.duration) {
1789
- const b = l.current.currentTime, T = l.current.duration, q = b / T * 100;
1789
+ const b = l.current.currentTime, A = l.current.duration, $ = b / A * 100;
1790
1790
  n((Q) => ({
1791
1791
  ...Q,
1792
- progress: Math.min(q, 100),
1793
- currentPNGTuber: E(q)
1792
+ progress: Math.min($, 100),
1793
+ currentPNGTuber: E($)
1794
1794
  }));
1795
1795
  }
1796
1796
  }, 100));
1797
1797
  }, h = () => {
1798
1798
  var b;
1799
- l.current && !t.isPaused && (l.current.pause(), f(), n((T) => ({
1800
- ...T,
1799
+ l.current && !t.isPaused && (l.current.pause(), f(), n((A) => ({
1800
+ ...A,
1801
1801
  isPlaying: !1,
1802
1802
  isPaused: !0
1803
1803
  })), (b = e.onPause) == null || b.call(e));
@@ -1810,8 +1810,8 @@ function Lr(e) {
1810
1810
  isPaused: !1
1811
1811
  }));
1812
1812
  } catch (b) {
1813
- console.error("Error al reanudar audio:", b), n((T) => ({
1814
- ...T,
1813
+ console.error("Error al reanudar audio:", b), n((A) => ({
1814
+ ...A,
1815
1815
  error: {
1816
1816
  type: "audio",
1817
1817
  message: "Error al reanudar la reproducción"
@@ -1819,22 +1819,22 @@ function Lr(e) {
1819
1819
  }));
1820
1820
  }
1821
1821
  }, R = () => {
1822
- k(!0);
1822
+ N(!0);
1823
1823
  }, S = () => {
1824
1824
  s((b) => !b);
1825
- }, k = (b = !1) => {
1825
+ }, N = (b = !1) => {
1826
1826
  f(), l.current && (y.current && (l.current.removeEventListener(
1827
1827
  "ended",
1828
1828
  y.current
1829
- ), y.current = null), l.current.removeEventListener("error", O), l.current.removeEventListener("pause", N), l.current.pause(), l.current.currentTime = 0, l.current.src = "", l.current.load(), l.current = null), n((T) => ({
1830
- ...T,
1829
+ ), y.current = null), l.current.removeEventListener("error", O), l.current.removeEventListener("pause", B), l.current.pause(), l.current.currentTime = 0, l.current.src = "", l.current.load(), l.current = null), n((A) => ({
1830
+ ...A,
1831
1831
  isPlaying: !1,
1832
1832
  isPaused: !1,
1833
1833
  progress: 0,
1834
1834
  currentPNGTuber: 0
1835
- })), d.current && !p.current && (p.current = !0, c((T) => T + 1)), b || setTimeout(() => {
1836
- var T;
1837
- (T = e.onStop) == null || T.call(e);
1835
+ })), d.current && !p.current && (p.current = !0, c((A) => A + 1)), b || setTimeout(() => {
1836
+ var A;
1837
+ (A = e.onStop) == null || A.call(e);
1838
1838
  }, 50);
1839
1839
  }, O = () => {
1840
1840
  n((b) => ({
@@ -1843,15 +1843,15 @@ function Lr(e) {
1843
1843
  type: "audio",
1844
1844
  message: "Error al reproducir el audio"
1845
1845
  }
1846
- })), k();
1847
- }, N = () => {
1846
+ })), N();
1847
+ }, B = () => {
1848
1848
  l.current && l.current.currentTime < l.current.duration && n((b) => ({
1849
1849
  ...b,
1850
1850
  isPlaying: !1,
1851
1851
  isPaused: !0
1852
1852
  }));
1853
1853
  }, D = async () => {
1854
- var T, q, Q;
1854
+ var A, $, Q;
1855
1855
  if (!e.text.trim()) {
1856
1856
  n((L) => ({
1857
1857
  ...L,
@@ -1862,7 +1862,7 @@ function Lr(e) {
1862
1862
  }));
1863
1863
  return;
1864
1864
  }
1865
- p.current = !1, k(!0);
1865
+ p.current = !1, N(!0);
1866
1866
  const b = `${e.voiceId}-${e.lang ?? "auto"}-${e.model ?? "multilingual"}-${e.text}`;
1867
1867
  try {
1868
1868
  o(!0), n((I) => ({
@@ -1872,11 +1872,11 @@ function Lr(e) {
1872
1872
  currentPNGTuber: 0,
1873
1873
  error: null
1874
1874
  }));
1875
- let L = await Or(b);
1875
+ let L = await xr(b);
1876
1876
  if (!L) {
1877
1877
  const I = e.model === "standard" ? "eleven_monolingual_v1" : e.model === "enhanced" ? "eleven_turbo_v2" : "eleven_multilingual_v2";
1878
1878
  L = (await x.post(
1879
- `${ie.ELEVENLABS_API_BASE}/text-to-speech/${e.voiceId}`,
1879
+ `${ae.ELEVENLABS_API_BASE}/text-to-speech/${e.voiceId}`,
1880
1880
  {
1881
1881
  text: e.text,
1882
1882
  model_id: I,
@@ -1894,30 +1894,30 @@ function Lr(e) {
1894
1894
  },
1895
1895
  responseType: "blob"
1896
1896
  }
1897
- )).data, L && await xr(b, L);
1897
+ )).data, L && await Lr(b, L);
1898
1898
  }
1899
1899
  if (L) {
1900
1900
  const I = URL.createObjectURL(L);
1901
1901
  l.current = new Audio(I);
1902
- const V = () => {
1903
- k(!1), URL.revokeObjectURL(I);
1902
+ const J = () => {
1903
+ N(!1), URL.revokeObjectURL(I);
1904
1904
  };
1905
- y.current = V, l.current.addEventListener("ended", V), l.current.addEventListener("error", O), l.current.addEventListener("pause", N), l.current.addEventListener("canplaythrough", async () => {
1906
- var ue;
1907
- o(!1), n((J) => ({
1908
- ...J,
1905
+ y.current = J, l.current.addEventListener("ended", J), l.current.addEventListener("error", O), l.current.addEventListener("pause", B), l.current.addEventListener("canplaythrough", async () => {
1906
+ var de;
1907
+ o(!1), n((G) => ({
1908
+ ...G,
1909
1909
  isPlaying: !0
1910
1910
  })), m();
1911
1911
  try {
1912
- await ((ue = l.current) == null ? void 0 : ue.play());
1913
- } catch (J) {
1914
- console.error("Error al iniciar reproducción:", J), n((H) => ({
1912
+ await ((de = l.current) == null ? void 0 : de.play());
1913
+ } catch (G) {
1914
+ console.error("Error al iniciar reproducción:", G), n((H) => ({
1915
1915
  ...H,
1916
1916
  error: {
1917
1917
  type: "audio",
1918
1918
  message: "Error al iniciar la reproducción"
1919
1919
  }
1920
- })), k();
1920
+ })), N();
1921
1921
  }
1922
1922
  });
1923
1923
  }
@@ -1929,11 +1929,11 @@ function Lr(e) {
1929
1929
  message: `Error en la API: ${L.message}`
1930
1930
  },
1931
1931
  isPlaying: !1
1932
- })), f(), o(!1), x.isAxiosError(L) ? (console.error("Código de estado:", (T = L.response) == null ? void 0 : T.status), ((q = L.response) == null ? void 0 : q.data) instanceof Blob ? L.response.data.text().then((I) => {
1932
+ })), f(), o(!1), x.isAxiosError(L) ? (console.error("Código de estado:", (A = L.response) == null ? void 0 : A.status), (($ = L.response) == null ? void 0 : $.data) instanceof Blob ? L.response.data.text().then((I) => {
1933
1933
  console.error("Respuesta de error (texto):", I);
1934
1934
  try {
1935
- const V = JSON.parse(I);
1936
- console.error("Respuesta de error (JSON):", V);
1935
+ const J = JSON.parse(I);
1936
+ console.error("Respuesta de error (JSON):", J);
1937
1937
  } catch {
1938
1938
  console.error("No es JSON válido");
1939
1939
  }
@@ -1962,13 +1962,13 @@ function Lr(e) {
1962
1962
  avatars: e.avatars
1963
1963
  };
1964
1964
  }
1965
- const Cr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdown_1kmif_18", Nr = "_dropdownItem_1kmif_31", vr = "_active_1kmif_44", oe = {
1966
- selectorWrapper: Cr,
1965
+ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdown_1kmif_18", vr = "_dropdownItem_1kmif_31", Pr = "_active_1kmif_44", ie = {
1966
+ selectorWrapper: Nr,
1967
1967
  iconButton: kr,
1968
1968
  dropdown: Br,
1969
- dropdownItem: Nr,
1970
- active: vr
1971
- }, Pr = ({
1969
+ dropdownItem: vr,
1970
+ active: Pr
1971
+ }, Ur = ({
1972
1972
  languages: e,
1973
1973
  current: t,
1974
1974
  onChange: n
@@ -1979,11 +1979,11 @@ const Cr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
1979
1979
  c.current && !c.current.contains(u.target) && s(!1);
1980
1980
  };
1981
1981
  return document.addEventListener("mousedown", l), () => document.removeEventListener("mousedown", l);
1982
- }, []), /* @__PURE__ */ W("div", { className: oe.selectorWrapper, ref: c, children: [
1982
+ }, []), /* @__PURE__ */ V("div", { className: ie.selectorWrapper, ref: c, children: [
1983
1983
  /* @__PURE__ */ w(
1984
1984
  "button",
1985
1985
  {
1986
- className: oe.iconButton,
1986
+ className: ie.iconButton,
1987
1987
  title: "Cambiar idioma",
1988
1988
  onClick: () => s(!r),
1989
1989
  children: /* @__PURE__ */ w(
@@ -1999,10 +1999,10 @@ const Cr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
1999
1999
  )
2000
2000
  }
2001
2001
  ),
2002
- r && /* @__PURE__ */ w("div", { className: oe.dropdown, children: e.map((l) => /* @__PURE__ */ w(
2002
+ r && /* @__PURE__ */ w("div", { className: ie.dropdown, children: e.map((l) => /* @__PURE__ */ w(
2003
2003
  "button",
2004
2004
  {
2005
- className: `${oe.dropdownItem} ${l.code === i ? oe.active : ""}`,
2005
+ className: `${ie.dropdownItem} ${l.code === i ? ie.active : ""}`,
2006
2006
  onClick: () => {
2007
2007
  o(l.code), n == null || n(l.code), s(!1);
2008
2008
  },
@@ -2011,45 +2011,45 @@ const Cr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2011
2011
  l.code
2012
2012
  )) })
2013
2013
  ] });
2014
- }, Ur = "_controlsRow_8wakc_1", Ir = "_select_8wakc_9", Fr = "_autoAdvanceButton_8wakc_15", Dr = "_section_8wakc_26", jr = "_textarea_8wakc_36", Mr = "_input_8wakc_46", qr = "_error_8wakc_54", $r = "_buttonPrimary_8wakc_59", Hr = "_buttonSuccess_8wakc_69", zr = "_infoBox_8wakc_78", Vr = "_viewer_8wakc_86", Jr = "_viewerTopBar_8wakc_97", Gr = "_topRightControls_8wakc_110", Wr = "_itemCounter_8wakc_118", Kr = "_iconButton_8wakc_126", Xr = "_navButton_8wakc_146", Zr = "_navButtonLeft_8wakc_163", Yr = "_navButtonRight_8wakc_167", Qr = "_backgroundImage_8wakc_171", es = "_avatar_8wakc_178", ts = "_caption_8wakc_188", ns = "_captionTitle_8wakc_201", rs = "_captionText_8wakc_211", ss = "_loadingOverlay_8wakc_217", os = "_loadingSpinner_8wakc_232", is = "_spin_8wakc_251", as = "_loadingButton_8wakc_242", cs = "_spinner_8wakc_251", ls = "_progressBar_8wakc_264", us = "_progressFill_8wakc_273", ds = "_playbackControls_8wakc_279", fs = "_playButton_8wakc_292", ps = "_pauseButton_8wakc_293", A = {
2015
- controlsRow: Ur,
2016
- select: Ir,
2017
- autoAdvanceButton: Fr,
2018
- section: Dr,
2019
- textarea: jr,
2020
- input: Mr,
2014
+ }, Ir = "_controlsRow_8wakc_1", Fr = "_select_8wakc_9", Dr = "_autoAdvanceButton_8wakc_15", jr = "_section_8wakc_26", Mr = "_textarea_8wakc_36", $r = "_input_8wakc_46", qr = "_error_8wakc_54", Hr = "_buttonPrimary_8wakc_59", zr = "_buttonSuccess_8wakc_69", Vr = "_infoBox_8wakc_78", Jr = "_viewer_8wakc_86", Gr = "_viewerTopBar_8wakc_97", Wr = "_topRightControls_8wakc_110", Kr = "_itemCounter_8wakc_118", Xr = "_iconButton_8wakc_126", Zr = "_navButton_8wakc_146", Yr = "_navButtonLeft_8wakc_163", Qr = "_navButtonRight_8wakc_167", es = "_backgroundImage_8wakc_171", ts = "_avatar_8wakc_178", ns = "_caption_8wakc_188", rs = "_captionTitle_8wakc_201", ss = "_captionText_8wakc_211", os = "_loadingOverlay_8wakc_217", is = "_loadingSpinner_8wakc_232", as = "_spin_8wakc_251", cs = "_loadingButton_8wakc_242", ls = "_spinner_8wakc_251", us = "_progressBar_8wakc_264", ds = "_progressFill_8wakc_273", fs = "_playbackControls_8wakc_279", ps = "_playButton_8wakc_292", hs = "_pauseButton_8wakc_293", T = {
2015
+ controlsRow: Ir,
2016
+ select: Fr,
2017
+ autoAdvanceButton: Dr,
2018
+ section: jr,
2019
+ textarea: Mr,
2020
+ input: $r,
2021
2021
  error: qr,
2022
- buttonPrimary: $r,
2023
- buttonSuccess: Hr,
2024
- infoBox: zr,
2025
- viewer: Vr,
2026
- viewerTopBar: Jr,
2027
- topRightControls: Gr,
2028
- itemCounter: Wr,
2029
- iconButton: Kr,
2030
- navButton: Xr,
2031
- navButtonLeft: Zr,
2032
- navButtonRight: Yr,
2033
- backgroundImage: Qr,
2034
- avatar: es,
2035
- caption: ts,
2036
- captionTitle: ns,
2037
- captionText: rs,
2038
- loadingOverlay: ss,
2039
- loadingSpinner: os,
2040
- spin: is,
2041
- loadingButton: as,
2042
- spinner: cs,
2043
- progressBar: ls,
2044
- progressFill: us,
2045
- playbackControls: ds,
2046
- playButton: fs,
2047
- pauseButton: ps
2048
- }, Us = [
2022
+ buttonPrimary: Hr,
2023
+ buttonSuccess: zr,
2024
+ infoBox: Vr,
2025
+ viewer: Jr,
2026
+ viewerTopBar: Gr,
2027
+ topRightControls: Wr,
2028
+ itemCounter: Kr,
2029
+ iconButton: Xr,
2030
+ navButton: Zr,
2031
+ navButtonLeft: Yr,
2032
+ navButtonRight: Qr,
2033
+ backgroundImage: es,
2034
+ avatar: ts,
2035
+ caption: ns,
2036
+ captionTitle: rs,
2037
+ captionText: ss,
2038
+ loadingOverlay: os,
2039
+ loadingSpinner: is,
2040
+ spin: as,
2041
+ loadingButton: cs,
2042
+ spinner: ls,
2043
+ progressBar: us,
2044
+ progressFill: ds,
2045
+ playbackControls: fs,
2046
+ playButton: ps,
2047
+ pauseButton: hs
2048
+ }, Is = [
2049
2049
  { id: "21m00Tcm4TlvDq8ikWAM", name: "Voz Mujer" },
2050
2050
  // { id: "iLzHtPh0bW6RGWRG0Xo5", name: "Voz Hombre" },
2051
2051
  { id: "Nh2zY9kknu6z4pZy6FhD", name: "Voz Hombre Joven" }
2052
- ], ct = ie.DEFAULT_IMAGE_URL, Is = ({
2052
+ ], lt = ae.DEFAULT_IMAGE_URL, Fs = ({
2053
2053
  heritageItems: e = [],
2054
2054
  targetLanguage: t = "es",
2055
2055
  descriptionLength: n = "extended",
@@ -2059,13 +2059,13 @@ const Cr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2059
2059
  }) => {
2060
2060
  const [o] = C(e), [c, l] = C(0), [u, d] = C(n), [p, y] = C(
2061
2061
  t
2062
- ), [E, f] = C(""), [m, h] = C([]), [_, R] = C(0), [S, k] = C(r), [O, N] = C(!1), [D, b] = C(
2062
+ ), [E, f] = C(""), [m, h] = C([]), [_, R] = C(0), [S, N] = C(r), [O, B] = C(!1), [D, b] = C(
2063
2063
  s.length > 0 ? s[0] : ""
2064
- ), T = D || (s.length > 0 ? s[c % s.length] : ""), q = i[c % i.length], [Q, L] = C(!1), [I, V] = C(!1), [ue, J] = C(!0), H = F(null), qe = F(S), $e = F(c), Te = F(o), K = F(null), de = F(!1);
2064
+ ), A = D || (s.length > 0 ? s[c % s.length] : ""), $ = i[c % i.length], [Q, L] = C(!1), [I, J] = C(!1), [de, G] = C(!0), H = F(null), $e = F(S), qe = F(c), Ae = F(o), K = F(null), fe = F(!1);
2065
2065
  j(() => {
2066
- qe.current = S, $e.current = c, Te.current = o;
2066
+ $e.current = S, qe.current = c, Ae.current = o;
2067
2067
  }, [S, c, o]);
2068
- const Ae = o[c] || {
2068
+ const ee = o[c] || {
2069
2069
  id: "default",
2070
2070
  name: "Patrimonio Cultural",
2071
2071
  description: {
@@ -2076,67 +2076,67 @@ const Cr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2076
2076
  },
2077
2077
  imageUrl: ""
2078
2078
  }, {
2079
- isPlaying: G,
2079
+ isPlaying: W,
2080
2080
  isPaused: He,
2081
- isLoadingAudio: Ut,
2081
+ isLoadingAudio: It,
2082
2082
  progress: ze,
2083
- play: It,
2084
- pause: Ft,
2085
- resume: Dt,
2086
- stop: jt
2087
- } = Lr({
2083
+ play: Ft,
2084
+ pause: Dt,
2085
+ resume: jt,
2086
+ stop: Mt
2087
+ } = Cr({
2088
2088
  text: E,
2089
2089
  lang: p,
2090
2090
  onStop: () => {
2091
- J(!0), qe.current && Te.current.length > 1 && !de.current && setTimeout(() => {
2092
- N(!0);
2093
- const v = ($e.current + 1) % Te.current.length;
2091
+ G(!0), $e.current && Ae.current.length > 1 && !fe.current && setTimeout(() => {
2092
+ B(!0);
2093
+ const v = (qe.current + 1) % Ae.current.length;
2094
2094
  l(v);
2095
- }, 100), de.current = !1;
2095
+ }, 100), fe.current = !1;
2096
2096
  },
2097
- voiceId: T,
2098
- avatars: [q],
2099
- apiKey: ie.ELEVENLABS_API_KEY
2097
+ voiceId: A,
2098
+ avatars: [$],
2099
+ apiKey: ae.ELEVENLABS_API_KEY
2100
2100
  });
2101
2101
  j(() => {
2102
2102
  if (O && E && !E.includes("JSON válido")) {
2103
2103
  const v = setTimeout(() => {
2104
- G || Ve(), N(!1);
2104
+ W || Ve(), B(!1);
2105
2105
  }, 500);
2106
2106
  return () => clearTimeout(v);
2107
2107
  }
2108
- }, [O, E, G]), j(() => {
2108
+ }, [O, E, W]), j(() => {
2109
2109
  (async () => {
2110
- const z = Ae.description.local[u];
2110
+ const z = ee.description.local[u];
2111
2111
  if (z)
2112
2112
  try {
2113
- const ne = await Vt(z, p);
2114
- f(ne);
2115
- } catch (ne) {
2116
- console.error("Error en traducción:", ne), f(z);
2113
+ const re = await Ke(ee.name, p), Vt = await Ke(z, p);
2114
+ f(`${re}. ${Vt}`);
2115
+ } catch (re) {
2116
+ console.error("Error en traducción:", re), f(`${ee.name}. ${z}`);
2117
2117
  }
2118
2118
  })();
2119
- }, [Ae, u, p]);
2119
+ }, [ee, u, p]);
2120
2120
  const Oe = () => {
2121
- J(!0), K.current && clearTimeout(K.current), K.current = setTimeout(() => {
2122
- J(!1);
2121
+ G(!0), K.current && clearTimeout(K.current), K.current = setTimeout(() => {
2122
+ G(!1);
2123
2123
  }, 4e3);
2124
2124
  }, Ve = () => {
2125
2125
  if (!E.trim() || E.includes("JSON válido")) {
2126
2126
  alert("No hay contenido para reproducir");
2127
2127
  return;
2128
2128
  }
2129
- It(), Oe();
2130
- }, Mt = () => {
2131
- Ft();
2129
+ Ft(), Oe();
2130
+ }, $t = () => {
2131
+ Dt();
2132
2132
  }, qt = () => {
2133
- Dt(), Oe();
2133
+ jt(), Oe();
2134
2134
  }, Je = () => {
2135
- jt(), N(!1), H.current && clearTimeout(H.current), K.current && clearTimeout(K.current), J(!0);
2136
- }, $t = () => {
2137
- de.current = !0, Je(), c > 0 && l((v) => v - 1);
2135
+ Mt(), B(!1), H.current && clearTimeout(H.current), K.current && clearTimeout(K.current), G(!0);
2138
2136
  }, Ht = () => {
2139
- de.current = !0, Je(), c < o.length - 1 && l((v) => v + 1);
2137
+ fe.current = !0, Je(), c > 0 && l((v) => v - 1);
2138
+ }, zt = () => {
2139
+ fe.current = !0, Je(), c < o.length - 1 && l((v) => v + 1);
2140
2140
  };
2141
2141
  j(() => () => {
2142
2142
  H.current && clearTimeout(H.current), K.current && clearTimeout(K.current);
@@ -2146,27 +2146,27 @@ const Cr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2146
2146
  h(v), R(0);
2147
2147
  }
2148
2148
  }, [E]), j(() => {
2149
- if (!G || m.length === 0) return;
2149
+ if (!W || m.length === 0) return;
2150
2150
  H.current && clearTimeout(H.current);
2151
2151
  const z = 1500 + m[_].length * 50;
2152
2152
  H.current = setTimeout(() => {
2153
- R((ne) => (ne + 1) % m.length);
2153
+ R((re) => (re + 1) % m.length);
2154
2154
  }, z);
2155
- }, [G, m, _]);
2156
- const [Ge, hs] = C(!1);
2155
+ }, [W, m, _]);
2156
+ const [Ge, ms] = C(!1);
2157
2157
  return j(() => {
2158
2158
  !Ge && s.length > 0 && b(s[c % s.length]);
2159
- }, [c, s, Ge]), /* @__PURE__ */ W("div", { children: [
2160
- ie.DEBUG_MODE,
2161
- /* @__PURE__ */ W("div", { className: A.viewer, onClick: Oe, children: [
2162
- /* @__PURE__ */ W("div", { className: A.viewerTopBar, children: [
2163
- /* @__PURE__ */ w("div", { className: A.itemCounter, children: o.length > 0 ? `${c + 1}/${o.length}` : "0/0" }),
2164
- /* @__PURE__ */ W("div", { className: A.topRightControls, children: [
2159
+ }, [c, s, Ge]), /* @__PURE__ */ V("div", { children: [
2160
+ ae.DEBUG_MODE,
2161
+ /* @__PURE__ */ V("div", { className: T.viewer, onClick: Oe, children: [
2162
+ /* @__PURE__ */ V("div", { className: T.viewerTopBar, children: [
2163
+ /* @__PURE__ */ w("div", { className: T.itemCounter, children: o.length > 0 ? `${c + 1}/${o.length}` : "0/0" }),
2164
+ /* @__PURE__ */ V("div", { className: T.topRightControls, children: [
2165
2165
  /* @__PURE__ */ w(
2166
2166
  "button",
2167
2167
  {
2168
- onClick: () => k(!S),
2169
- className: A.iconButton,
2168
+ onClick: () => N(!S),
2169
+ className: T.iconButton,
2170
2170
  title: "Autoplay",
2171
2171
  style: {
2172
2172
  backgroundColor: S ? "rgba(255, 255, 255, 0.7)" : "rgba(0, 0, 0, 0.7)"
@@ -2190,7 +2190,7 @@ const Cr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2190
2190
  }
2191
2191
  ),
2192
2192
  /* @__PURE__ */ w(
2193
- Pr,
2193
+ Ur,
2194
2194
  {
2195
2195
  languages: [
2196
2196
  { code: "es", label: "Español" },
@@ -2206,9 +2206,9 @@ const Cr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2206
2206
  /* @__PURE__ */ w(
2207
2207
  "button",
2208
2208
  {
2209
- onClick: $t,
2209
+ onClick: Ht,
2210
2210
  disabled: o.length === 0,
2211
- className: `${A.navButton} ${A.navButtonLeft}`,
2211
+ className: `${T.navButton} ${T.navButtonLeft}`,
2212
2212
  title: "Anterior",
2213
2213
  onMouseOver: () => L(!0),
2214
2214
  onMouseOut: () => L(!1),
@@ -2238,12 +2238,12 @@ const Cr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2238
2238
  /* @__PURE__ */ w(
2239
2239
  "button",
2240
2240
  {
2241
- onClick: Ht,
2241
+ onClick: zt,
2242
2242
  disabled: o.length === 0,
2243
- className: `${A.navButton} ${A.navButtonRight}`,
2243
+ className: `${T.navButton} ${T.navButtonRight}`,
2244
2244
  title: "Siguiente",
2245
- onMouseOver: () => V(!0),
2246
- onMouseOut: () => V(!1),
2245
+ onMouseOver: () => J(!0),
2246
+ onMouseOut: () => J(!1),
2247
2247
  children: /* @__PURE__ */ w(
2248
2248
  "svg",
2249
2249
  {
@@ -2270,33 +2270,36 @@ const Cr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2270
2270
  /* @__PURE__ */ w(
2271
2271
  "img",
2272
2272
  {
2273
- src: Ae.imageUrl || ct,
2273
+ src: ee.imageUrl || lt,
2274
2274
  alt: "Background",
2275
- className: A.backgroundImage,
2276
- style: { opacity: G ? 1 : 0.7 },
2277
- onError: (v) => v.currentTarget.src = ct
2275
+ className: T.backgroundImage,
2276
+ style: { opacity: W ? 1 : 0.7 },
2277
+ onError: (v) => v.currentTarget.src = lt
2278
2278
  }
2279
2279
  ),
2280
- G && /* @__PURE__ */ w(We, { children: /* @__PURE__ */ w(
2280
+ W && /* @__PURE__ */ w(We, { children: /* @__PURE__ */ w(
2281
2281
  "img",
2282
2282
  {
2283
- src: q,
2283
+ src: $,
2284
2284
  alt: "Avatar",
2285
- className: A.avatar,
2285
+ className: T.avatar,
2286
2286
  style: { transform: `scale(${ze % 10 < 5 ? 4 : 4.05})` }
2287
2287
  }
2288
2288
  ) }),
2289
- /* @__PURE__ */ w("div", { className: A.caption, children: G && /* @__PURE__ */ w(We, { children: /* @__PURE__ */ w("p", { className: A.captionText, children: m.length > 0 && m[_] }) }) }),
2290
- O && /* @__PURE__ */ W("div", { className: A.loadingOverlay, children: [
2291
- /* @__PURE__ */ w("div", { className: A.loadingSpinner }),
2289
+ /* @__PURE__ */ V("div", { className: T.caption, children: [
2290
+ /* @__PURE__ */ w("h4", { className: T.captionTitle, children: ee.name }),
2291
+ W && /* @__PURE__ */ w(We, { children: /* @__PURE__ */ w("p", { className: T.captionText, children: m.length > 0 && m[_] }) })
2292
+ ] }),
2293
+ O && /* @__PURE__ */ V("div", { className: T.loadingOverlay, children: [
2294
+ /* @__PURE__ */ w("div", { className: T.loadingSpinner }),
2292
2295
  /* @__PURE__ */ w("p", { children: "Cargando siguiente patrimonio..." })
2293
2296
  ] }),
2294
- ue && /* @__PURE__ */ w("div", { className: A.playbackControls, children: Ut ? (
2297
+ de && /* @__PURE__ */ w("div", { className: T.playbackControls, children: It ? (
2295
2298
  // Loading spinner
2296
- /* @__PURE__ */ w("button", { disabled: !0, className: A.loadingButton, children: /* @__PURE__ */ W(
2299
+ /* @__PURE__ */ w("button", { disabled: !0, className: T.loadingButton, children: /* @__PURE__ */ V(
2297
2300
  "svg",
2298
2301
  {
2299
- className: A.spinner,
2302
+ className: T.spinner,
2300
2303
  xmlns: "http://www.w3.org/2000/svg",
2301
2304
  fill: "none",
2302
2305
  viewBox: "0 0 24 24",
@@ -2323,14 +2326,14 @@ const Cr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2323
2326
  ]
2324
2327
  }
2325
2328
  ) })
2326
- ) : !G && !He ? (
2329
+ ) : !W && !He ? (
2327
2330
  // Play (desde cero)
2328
2331
  /* @__PURE__ */ w(
2329
2332
  "button",
2330
2333
  {
2331
2334
  onClick: Ve,
2332
2335
  disabled: o.length === 0 || O,
2333
- className: A.playButton,
2336
+ className: T.playButton,
2334
2337
  children: /* @__PURE__ */ w(
2335
2338
  "svg",
2336
2339
  {
@@ -2350,7 +2353,7 @@ const Cr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2350
2353
  )
2351
2354
  ) : He ? (
2352
2355
  // Resume
2353
- /* @__PURE__ */ w("button", { onClick: qt, className: A.playButton, children: /* @__PURE__ */ w(
2356
+ /* @__PURE__ */ w("button", { onClick: qt, className: T.playButton, children: /* @__PURE__ */ w(
2354
2357
  "svg",
2355
2358
  {
2356
2359
  xmlns: "http://www.w3.org/2000/svg",
@@ -2367,7 +2370,7 @@ const Cr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2367
2370
  ) })
2368
2371
  ) : (
2369
2372
  // Pause
2370
- /* @__PURE__ */ w("button", { onClick: Mt, className: A.pauseButton, children: /* @__PURE__ */ W(
2373
+ /* @__PURE__ */ w("button", { onClick: $t, className: T.pauseButton, children: /* @__PURE__ */ V(
2371
2374
  "svg",
2372
2375
  {
2373
2376
  xmlns: "http://www.w3.org/2000/svg",
@@ -2386,10 +2389,10 @@ const Cr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2386
2389
  }
2387
2390
  ) })
2388
2391
  ) }),
2389
- /* @__PURE__ */ w("div", { className: A.progressBar, children: /* @__PURE__ */ w(
2392
+ /* @__PURE__ */ w("div", { className: T.progressBar, children: /* @__PURE__ */ w(
2390
2393
  "div",
2391
2394
  {
2392
- className: A.progressFill,
2395
+ className: T.progressFill,
2393
2396
  style: { width: `${ze}%` }
2394
2397
  }
2395
2398
  ) })
@@ -2397,10 +2400,10 @@ const Cr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2397
2400
  ] });
2398
2401
  };
2399
2402
  export {
2400
- Pr as LanguageSelector,
2401
- oe as LanguageSelectorStyles,
2402
- Is as StoryVisualizer,
2403
- A as StoryVisualizerStyles,
2404
- Us as voices
2403
+ Ur as LanguageSelector,
2404
+ ie as LanguageSelectorStyles,
2405
+ Fs as StoryVisualizer,
2406
+ T as StoryVisualizerStyles,
2407
+ Is as voices
2405
2408
  };
2406
2409
  //# sourceMappingURL=ocity-heritage-visualizer.es.js.map