@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
|
|
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
|
|
4
|
-
function
|
|
5
|
-
const n =
|
|
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
|
|
10
|
+
const ae = {
|
|
11
11
|
NODE_ENV: "production",
|
|
12
|
-
ELEVENLABS_API_BASE:
|
|
13
|
-
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:
|
|
16
|
-
IMAGE_BASE_URL:
|
|
17
|
-
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
|
|
19
|
+
async function Ke(e, t) {
|
|
20
20
|
if (!e.trim()) return e;
|
|
21
21
|
try {
|
|
22
|
-
const 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
|
|
31
|
+
function ut(e, t) {
|
|
32
32
|
return function() {
|
|
33
33
|
return e.apply(t, arguments);
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
const { toString:
|
|
37
|
-
const n =
|
|
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) =>
|
|
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 &&
|
|
46
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ft(e.buffer), t;
|
|
47
47
|
}
|
|
48
|
-
const
|
|
49
|
-
if (
|
|
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) && !(
|
|
53
|
-
},
|
|
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 =
|
|
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
|
-
},
|
|
58
|
-
function
|
|
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]),
|
|
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
|
|
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,
|
|
82
|
-
function
|
|
83
|
-
const { caseless: e } =
|
|
84
|
-
const i = e &&
|
|
85
|
-
|
|
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] &&
|
|
88
|
+
arguments[r] && le(arguments[r], n);
|
|
89
89
|
return t;
|
|
90
90
|
}
|
|
91
|
-
const
|
|
92
|
-
n && P(s) ? e[i] =
|
|
93
|
-
}, { allOwnKeys: r }), e),
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
111
|
+
}, gn = (e) => {
|
|
112
112
|
if (!e) return null;
|
|
113
|
-
if (
|
|
113
|
+
if (te(e)) return e;
|
|
114
114
|
let t = e.length;
|
|
115
|
-
if (!
|
|
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
|
-
},
|
|
121
|
-
const r = (e && 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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
),
|
|
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
|
-
|
|
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
|
-
},
|
|
145
|
-
|
|
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
|
-
},
|
|
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
|
|
166
|
-
},
|
|
167
|
-
},
|
|
168
|
-
function
|
|
169
|
-
return !!(e && P(e.append) && e[
|
|
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
|
|
171
|
+
const Ln = (e) => {
|
|
172
172
|
const t = new Array(10), n = (r, s) => {
|
|
173
|
-
if (
|
|
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 =
|
|
179
|
-
return
|
|
178
|
+
const i = te(r) ? [] : {};
|
|
179
|
+
return le(r, (o, c) => {
|
|
180
180
|
const l = n(o, s + 1);
|
|
181
|
-
!
|
|
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
|
-
},
|
|
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 ||
|
|
196
|
-
isArray:
|
|
197
|
-
isArrayBuffer:
|
|
198
|
-
isBuffer:
|
|
199
|
-
isFormData:
|
|
200
|
-
isArrayBufferView:
|
|
201
|
-
isString:
|
|
202
|
-
isNumber:
|
|
203
|
-
isBoolean:
|
|
204
|
-
isObject:
|
|
205
|
-
isPlainObject:
|
|
206
|
-
isReadableStream:
|
|
207
|
-
isRequest:
|
|
208
|
-
isResponse:
|
|
209
|
-
isHeaders:
|
|
210
|
-
isUndefined:
|
|
211
|
-
isDate:
|
|
212
|
-
isFile:
|
|
213
|
-
isBlob:
|
|
214
|
-
isRegExp:
|
|
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:
|
|
217
|
-
isURLSearchParams:
|
|
218
|
-
isTypedArray:
|
|
219
|
-
isFileList:
|
|
220
|
-
forEach:
|
|
221
|
-
merge:
|
|
222
|
-
extend:
|
|
223
|
-
trim:
|
|
224
|
-
stripBOM:
|
|
225
|
-
inherits:
|
|
226
|
-
toFlatObject:
|
|
227
|
-
kindOf:
|
|
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:
|
|
230
|
-
toArray:
|
|
231
|
-
forEachEntry:
|
|
232
|
-
matchAll:
|
|
233
|
-
isHTMLForm:
|
|
234
|
-
hasOwnProperty:
|
|
235
|
-
hasOwnProp:
|
|
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:
|
|
238
|
-
freezeMethods:
|
|
239
|
-
toObjectSet:
|
|
240
|
-
toCamelCase:
|
|
241
|
-
noop:
|
|
242
|
-
toFiniteNumber:
|
|
243
|
-
findKey:
|
|
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:
|
|
246
|
-
isSpecCompliantForm:
|
|
247
|
-
toJSONObject:
|
|
248
|
-
isAsyncFn:
|
|
249
|
-
isThenable:
|
|
250
|
-
setImmediate:
|
|
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
|
|
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
|
-
|
|
294
|
+
Et[e] = { value: e };
|
|
295
295
|
});
|
|
296
|
-
Object.defineProperties(g,
|
|
297
|
-
Object.defineProperty(
|
|
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(
|
|
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
|
|
305
|
-
function
|
|
304
|
+
const vn = null;
|
|
305
|
+
function Be(e) {
|
|
306
306
|
return a.isPlainObject(e) || a.isArray(e);
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function bt(e) {
|
|
309
309
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function Ze(e, t, n) {
|
|
312
312
|
return e ? e.concat(t).map(function(s, i) {
|
|
313
|
-
return s =
|
|
313
|
+
return s = bt(s), !n && i ? "[" + s + "]" : s;
|
|
314
314
|
}).join(n ? "." : "") : t;
|
|
315
315
|
}
|
|
316
|
-
function
|
|
317
|
-
return a.isArray(e) && !e.some(
|
|
316
|
+
function Pn(e) {
|
|
317
|
+
return a.isArray(e) && !e.some(Be);
|
|
318
318
|
}
|
|
319
|
-
const
|
|
319
|
+
const Un = a.toFlatObject(a, {}, null, function(t) {
|
|
320
320
|
return /^is[A-Z]/.test(t);
|
|
321
321
|
});
|
|
322
|
-
function
|
|
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) &&
|
|
351
|
-
return m =
|
|
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 ?
|
|
354
|
+
o === !0 ? Ze([m], N, i) : o === null ? m : m + "[]",
|
|
355
355
|
u(S)
|
|
356
356
|
);
|
|
357
357
|
}), !1;
|
|
358
358
|
}
|
|
359
|
-
return
|
|
359
|
+
return Be(f) ? !0 : (t.append(Ze(h, m, i), u(f)), !1);
|
|
360
360
|
}
|
|
361
|
-
const p = [], y = Object.assign(
|
|
361
|
+
const p = [], y = Object.assign(Un, {
|
|
362
362
|
defaultVisitor: d,
|
|
363
363
|
convertValue: u,
|
|
364
|
-
isVisitable:
|
|
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
|
|
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 &&
|
|
400
|
+
this._pairs = [], e && Se(e, this, t);
|
|
401
401
|
}
|
|
402
|
-
const
|
|
403
|
-
|
|
402
|
+
const _t = De.prototype;
|
|
403
|
+
_t.append = function(t, n) {
|
|
404
404
|
this._pairs.push([t, n]);
|
|
405
405
|
};
|
|
406
|
-
|
|
406
|
+
_t.toString = function(t) {
|
|
407
407
|
const n = t ? function(r) {
|
|
408
|
-
return t.call(this, r,
|
|
409
|
-
} :
|
|
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
|
|
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
|
|
417
|
+
function St(e, t, n) {
|
|
418
418
|
if (!t)
|
|
419
419
|
return e;
|
|
420
|
-
const r = n && n.encode ||
|
|
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
|
|
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
|
|
486
|
+
const Rt = {
|
|
487
487
|
silentJSONParsing: !0,
|
|
488
488
|
forcedJSONParsing: !0,
|
|
489
489
|
clarifyTimeoutError: !1
|
|
490
|
-
},
|
|
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:
|
|
494
|
-
FormData:
|
|
495
|
-
Blob:
|
|
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,
|
|
499
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
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:
|
|
502
|
+
hasStandardBrowserEnv: $n,
|
|
503
503
|
hasStandardBrowserWebWorkerEnv: qn,
|
|
504
504
|
navigator: ve,
|
|
505
|
-
origin:
|
|
506
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
507
|
-
...
|
|
508
|
-
...
|
|
505
|
+
origin: Hn
|
|
506
|
+
}, Symbol.toStringTag, { value: "Module" })), k = {
|
|
507
|
+
...zn,
|
|
508
|
+
...Mn
|
|
509
509
|
};
|
|
510
|
-
function
|
|
511
|
-
return
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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] =
|
|
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(
|
|
539
|
+
t(Jn(r), s, n, 0);
|
|
540
540
|
}), n;
|
|
541
541
|
}
|
|
542
542
|
return null;
|
|
543
543
|
}
|
|
544
|
-
function
|
|
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
|
|
555
|
-
transitional:
|
|
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(
|
|
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
|
|
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
|
|
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),
|
|
580
|
+
return i || s ? (n.setContentType("application/json", !1), Wn(t)) : t;
|
|
581
581
|
}],
|
|
582
582
|
transformResponse: [function(t) {
|
|
583
|
-
const n = this.transitional ||
|
|
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:
|
|
608
|
-
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
|
-
|
|
621
|
+
ue.headers[e] = {};
|
|
622
622
|
});
|
|
623
|
-
const
|
|
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
|
-
]),
|
|
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] &&
|
|
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
|
-
},
|
|
649
|
-
function
|
|
648
|
+
}, et = Symbol("internals");
|
|
649
|
+
function oe(e) {
|
|
650
650
|
return e && String(e).trim().toLowerCase();
|
|
651
651
|
}
|
|
652
|
-
function
|
|
653
|
-
return e === !1 || e == null ? e : a.isArray(e) ? e.map(
|
|
652
|
+
function he(e) {
|
|
653
|
+
return e === !1 || e == null ? e : a.isArray(e) ? e.map(he) : String(e);
|
|
654
654
|
}
|
|
655
|
-
function
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
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] =
|
|
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()) && !
|
|
704
|
-
o(
|
|
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 =
|
|
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
|
|
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 =
|
|
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 =
|
|
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] =
|
|
766
|
+
n[o] = he(s), delete n[i];
|
|
767
767
|
return;
|
|
768
768
|
}
|
|
769
|
-
const c = t ?
|
|
770
|
-
c !== i && delete n[i], n[c] =
|
|
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[
|
|
803
|
+
const r = (this[et] = this[et] = {
|
|
804
804
|
accessors: {}
|
|
805
805
|
}).accessors, s = this.prototype;
|
|
806
806
|
function i(o) {
|
|
807
|
-
const c =
|
|
808
|
-
r[c] || (
|
|
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 ||
|
|
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
|
|
831
|
+
function At(e) {
|
|
832
832
|
return !!(e && e.__CANCEL__);
|
|
833
833
|
}
|
|
834
|
-
function
|
|
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(
|
|
837
|
+
a.inherits(ne, g, {
|
|
838
838
|
__CANCEL__: !0
|
|
839
839
|
});
|
|
840
|
-
function
|
|
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
|
|
850
|
+
function tr(e) {
|
|
851
851
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
852
852
|
return t && t[1] || "";
|
|
853
853
|
}
|
|
854
|
-
function
|
|
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
|
|
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
|
|
882
|
+
const ge = (e, t, n = 3) => {
|
|
883
883
|
let r = 0;
|
|
884
|
-
const s =
|
|
885
|
-
return
|
|
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
|
-
},
|
|
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
|
-
},
|
|
909
|
-
new URL(
|
|
910
|
-
|
|
911
|
-
) : () => !0,
|
|
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
|
|
938
|
+
function ir(e) {
|
|
939
939
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
940
940
|
}
|
|
941
|
-
function
|
|
941
|
+
function ar(e, t) {
|
|
942
942
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
943
943
|
}
|
|
944
|
-
function
|
|
945
|
-
let r = !
|
|
946
|
-
return e && (r || n == !1) ?
|
|
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
|
|
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(
|
|
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
|
|
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 =
|
|
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 (
|
|
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 (
|
|
1030
|
-
const u = s && 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
|
-
},
|
|
1034
|
+
}, cr = typeof XMLHttpRequest < "u", lr = cr && function(e) {
|
|
1035
1035
|
return new Promise(function(n, r) {
|
|
1036
|
-
const s =
|
|
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
|
-
|
|
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
|
|
1072
|
-
const O = s.transitional ||
|
|
1073
|
-
s.timeoutErrorMessage && (
|
|
1074
|
-
|
|
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(
|
|
1080
|
-
h.setRequestHeader(O,
|
|
1081
|
-
}), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([y, f] =
|
|
1082
|
-
h && (r(!S || S.type ? new
|
|
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 =
|
|
1085
|
-
if (R &&
|
|
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
|
-
},
|
|
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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
1124
|
-
for await (const n of
|
|
1125
|
-
yield*
|
|
1126
|
-
},
|
|
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
|
-
},
|
|
1143
|
-
const s =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
1177
|
+
}, mr = Ct && Nt(() => {
|
|
1178
1178
|
let e = !1;
|
|
1179
|
-
const t = new Request(
|
|
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
|
-
}),
|
|
1187
|
+
}), ot = 64 * 1024, Pe = Ct && Nt(() => a.isReadableStream(new Response("").body)), we = {
|
|
1188
1188
|
stream: Pe && ((e) => e.body)
|
|
1189
1189
|
};
|
|
1190
|
-
|
|
1190
|
+
Re && ((e) => {
|
|
1191
1191
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1192
|
-
!
|
|
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
|
|
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(
|
|
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
|
|
1211
|
-
},
|
|
1210
|
+
return (await hr(e)).byteLength;
|
|
1211
|
+
}, wr = async (e, t) => {
|
|
1212
1212
|
const n = a.toFiniteNumber(e.getContentLength());
|
|
1213
|
-
return n ??
|
|
1214
|
-
},
|
|
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
|
-
} =
|
|
1228
|
+
} = Lt(e);
|
|
1229
1229
|
u = u ? (u + "").toLowerCase() : "text";
|
|
1230
|
-
let E =
|
|
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 &&
|
|
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
|
-
}),
|
|
1242
|
-
if (a.isFormData(r) && (
|
|
1243
|
-
const [D, b] =
|
|
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
|
-
|
|
1245
|
+
ge(nt(l))
|
|
1246
1246
|
);
|
|
1247
|
-
r =
|
|
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((
|
|
1266
|
-
O[
|
|
1265
|
+
["status", "statusText", "headers"].forEach((A) => {
|
|
1266
|
+
O[A] = R[A];
|
|
1267
1267
|
});
|
|
1268
|
-
const
|
|
1269
|
-
|
|
1270
|
-
|
|
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
|
-
|
|
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
|
|
1281
|
-
return !S && m && m(), await new Promise((O,
|
|
1282
|
-
|
|
1283
|
-
data:
|
|
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:
|
|
1301
|
-
xhr:
|
|
1302
|
-
fetch:
|
|
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
|
|
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, !
|
|
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(
|
|
1334
|
-
`) : " " +
|
|
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
|
|
1346
|
+
throw new ne(null, e);
|
|
1347
1347
|
}
|
|
1348
|
-
function
|
|
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 ||
|
|
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
|
|
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",
|
|
1366
|
+
const Bt = "1.10.0", Te = {};
|
|
1367
1367
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1368
|
-
|
|
1368
|
+
Te[e] = function(r) {
|
|
1369
1369
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1370
1370
|
};
|
|
1371
1371
|
});
|
|
1372
|
-
const
|
|
1373
|
-
|
|
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 && !
|
|
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
|
-
|
|
1391
|
+
Te.spelling = function(t) {
|
|
1392
1392
|
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
1393
1393
|
};
|
|
1394
|
-
function
|
|
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
|
|
1412
|
-
assertOptions:
|
|
1413
|
-
validators:
|
|
1414
|
-
},
|
|
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
|
|
1419
|
-
response: new
|
|
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 &&
|
|
1451
|
-
silentJSONParsing:
|
|
1452
|
-
forcedJSONParsing:
|
|
1453
|
-
clarifyTimeoutError:
|
|
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
|
-
} :
|
|
1457
|
-
encode:
|
|
1458
|
-
serialize:
|
|
1459
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
1460
|
-
baseUrl:
|
|
1461
|
-
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 = [
|
|
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 =
|
|
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 =
|
|
1512
|
-
return
|
|
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
|
|
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
|
|
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
|
|
1605
|
+
token: new vt(function(s) {
|
|
1606
1606
|
t = s;
|
|
1607
1607
|
}),
|
|
1608
1608
|
cancel: t
|
|
1609
1609
|
};
|
|
1610
1610
|
}
|
|
1611
1611
|
};
|
|
1612
|
-
function
|
|
1612
|
+
function Sr(e) {
|
|
1613
1613
|
return function(n) {
|
|
1614
1614
|
return e.apply(null, n);
|
|
1615
1615
|
};
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
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
|
|
1689
|
-
const t = new Z(e), n =
|
|
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
|
|
1691
|
+
return Pt(Y(e, s));
|
|
1692
1692
|
}, n;
|
|
1693
1693
|
}
|
|
1694
|
-
const x =
|
|
1694
|
+
const x = Pt(ue);
|
|
1695
1695
|
x.Axios = Z;
|
|
1696
|
-
x.CanceledError =
|
|
1697
|
-
x.CancelToken =
|
|
1698
|
-
x.isCancel =
|
|
1696
|
+
x.CanceledError = ne;
|
|
1697
|
+
x.CancelToken = _r;
|
|
1698
|
+
x.isCancel = At;
|
|
1699
1699
|
x.VERSION = Bt;
|
|
1700
|
-
x.toFormData =
|
|
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 =
|
|
1707
|
-
x.isAxiosError =
|
|
1706
|
+
x.spread = Sr;
|
|
1707
|
+
x.isAxiosError = Rr;
|
|
1708
1708
|
x.mergeConfig = Y;
|
|
1709
1709
|
x.AxiosHeaders = U;
|
|
1710
|
-
x.formToJSON = (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:
|
|
1716
|
-
AxiosError:
|
|
1717
|
-
CanceledError:
|
|
1718
|
-
isCancel:
|
|
1719
|
-
CancelToken:
|
|
1720
|
-
VERSION:
|
|
1721
|
-
all:
|
|
1722
|
-
Cancel:
|
|
1723
|
-
isAxiosError:
|
|
1724
|
-
spread:
|
|
1725
|
-
toFormData:
|
|
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:
|
|
1729
|
-
getAdapter:
|
|
1730
|
-
mergeConfig:
|
|
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
|
|
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
|
|
1751
|
-
function
|
|
1752
|
-
return
|
|
1750
|
+
let Ne;
|
|
1751
|
+
function Ut() {
|
|
1752
|
+
return Ne || (Ne = Tr("keyval-store", "keyval")), Ne;
|
|
1753
1753
|
}
|
|
1754
|
-
function
|
|
1754
|
+
function Ar(e, t = Ut()) {
|
|
1755
1755
|
return t("readonly", (n) => Me(n.get(e)));
|
|
1756
1756
|
}
|
|
1757
|
-
function
|
|
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
|
|
1761
|
-
return await
|
|
1760
|
+
async function xr(e) {
|
|
1761
|
+
return await Ar(e) ?? null;
|
|
1762
1762
|
}
|
|
1763
|
-
async function
|
|
1764
|
-
await
|
|
1763
|
+
async function Lr(e, t) {
|
|
1764
|
+
await Or(e, t);
|
|
1765
1765
|
}
|
|
1766
|
-
function
|
|
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
|
|
1783
|
-
return Math.min(Math.floor(b /
|
|
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,
|
|
1789
|
+
const b = l.current.currentTime, A = l.current.duration, $ = b / A * 100;
|
|
1790
1790
|
n((Q) => ({
|
|
1791
1791
|
...Q,
|
|
1792
|
-
progress: Math.min(
|
|
1793
|
-
currentPNGTuber: E(
|
|
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((
|
|
1800
|
-
...
|
|
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((
|
|
1814
|
-
...
|
|
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
|
-
|
|
1822
|
+
N(!0);
|
|
1823
1823
|
}, S = () => {
|
|
1824
1824
|
s((b) => !b);
|
|
1825
|
-
},
|
|
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",
|
|
1830
|
-
...
|
|
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((
|
|
1836
|
-
var
|
|
1837
|
-
(
|
|
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
|
-
})),
|
|
1847
|
-
},
|
|
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
|
|
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,
|
|
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
|
|
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
|
-
`${
|
|
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
|
|
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
|
|
1903
|
-
|
|
1902
|
+
const J = () => {
|
|
1903
|
+
N(!1), URL.revokeObjectURL(I);
|
|
1904
1904
|
};
|
|
1905
|
-
y.current =
|
|
1906
|
-
var
|
|
1907
|
-
o(!1), n((
|
|
1908
|
-
...
|
|
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 ((
|
|
1913
|
-
} catch (
|
|
1914
|
-
console.error("Error al iniciar reproducción:",
|
|
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
|
-
})),
|
|
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:", (
|
|
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
|
|
1936
|
-
console.error("Respuesta de error (JSON):",
|
|
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
|
|
1966
|
-
selectorWrapper:
|
|
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:
|
|
1970
|
-
active:
|
|
1971
|
-
},
|
|
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__ */
|
|
1982
|
+
}, []), /* @__PURE__ */ V("div", { className: ie.selectorWrapper, ref: c, children: [
|
|
1983
1983
|
/* @__PURE__ */ w(
|
|
1984
1984
|
"button",
|
|
1985
1985
|
{
|
|
1986
|
-
className:
|
|
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:
|
|
2002
|
+
r && /* @__PURE__ */ w("div", { className: ie.dropdown, children: e.map((l) => /* @__PURE__ */ w(
|
|
2003
2003
|
"button",
|
|
2004
2004
|
{
|
|
2005
|
-
className: `${
|
|
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
|
-
},
|
|
2015
|
-
controlsRow:
|
|
2016
|
-
select:
|
|
2017
|
-
autoAdvanceButton:
|
|
2018
|
-
section:
|
|
2019
|
-
textarea:
|
|
2020
|
-
input:
|
|
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:
|
|
2023
|
-
buttonSuccess:
|
|
2024
|
-
infoBox:
|
|
2025
|
-
viewer:
|
|
2026
|
-
viewerTopBar:
|
|
2027
|
-
topRightControls:
|
|
2028
|
-
itemCounter:
|
|
2029
|
-
iconButton:
|
|
2030
|
-
navButton:
|
|
2031
|
-
navButtonLeft:
|
|
2032
|
-
navButtonRight:
|
|
2033
|
-
backgroundImage:
|
|
2034
|
-
avatar:
|
|
2035
|
-
caption:
|
|
2036
|
-
captionTitle:
|
|
2037
|
-
captionText:
|
|
2038
|
-
loadingOverlay:
|
|
2039
|
-
loadingSpinner:
|
|
2040
|
-
spin:
|
|
2041
|
-
loadingButton:
|
|
2042
|
-
spinner:
|
|
2043
|
-
progressBar:
|
|
2044
|
-
progressFill:
|
|
2045
|
-
playbackControls:
|
|
2046
|
-
playButton:
|
|
2047
|
-
pauseButton:
|
|
2048
|
-
},
|
|
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
|
-
],
|
|
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,
|
|
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
|
-
),
|
|
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
|
-
|
|
2066
|
+
$e.current = S, qe.current = c, Ae.current = o;
|
|
2067
2067
|
}, [S, c, o]);
|
|
2068
|
-
const
|
|
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:
|
|
2079
|
+
isPlaying: W,
|
|
2080
2080
|
isPaused: He,
|
|
2081
|
-
isLoadingAudio:
|
|
2081
|
+
isLoadingAudio: It,
|
|
2082
2082
|
progress: ze,
|
|
2083
|
-
play:
|
|
2084
|
-
pause:
|
|
2085
|
-
resume:
|
|
2086
|
-
stop:
|
|
2087
|
-
} =
|
|
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
|
-
|
|
2092
|
-
|
|
2093
|
-
const v = (
|
|
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),
|
|
2095
|
+
}, 100), fe.current = !1;
|
|
2096
2096
|
},
|
|
2097
|
-
voiceId:
|
|
2098
|
-
avatars: [
|
|
2099
|
-
apiKey:
|
|
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
|
-
|
|
2104
|
+
W || Ve(), B(!1);
|
|
2105
2105
|
}, 500);
|
|
2106
2106
|
return () => clearTimeout(v);
|
|
2107
2107
|
}
|
|
2108
|
-
}, [O, E,
|
|
2108
|
+
}, [O, E, W]), j(() => {
|
|
2109
2109
|
(async () => {
|
|
2110
|
-
const z =
|
|
2110
|
+
const z = ee.description.local[u];
|
|
2111
2111
|
if (z)
|
|
2112
2112
|
try {
|
|
2113
|
-
const
|
|
2114
|
-
f(
|
|
2115
|
-
} catch (
|
|
2116
|
-
console.error("Error en traducción:",
|
|
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
|
-
}, [
|
|
2119
|
+
}, [ee, u, p]);
|
|
2120
2120
|
const Oe = () => {
|
|
2121
|
-
|
|
2122
|
-
|
|
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
|
-
|
|
2130
|
-
},
|
|
2131
|
-
|
|
2129
|
+
Ft(), Oe();
|
|
2130
|
+
}, $t = () => {
|
|
2131
|
+
Dt();
|
|
2132
2132
|
}, qt = () => {
|
|
2133
|
-
|
|
2133
|
+
jt(), Oe();
|
|
2134
2134
|
}, Je = () => {
|
|
2135
|
-
|
|
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
|
-
|
|
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 (!
|
|
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((
|
|
2153
|
+
R((re) => (re + 1) % m.length);
|
|
2154
2154
|
}, z);
|
|
2155
|
-
}, [
|
|
2156
|
-
const [Ge,
|
|
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__ */
|
|
2160
|
-
|
|
2161
|
-
/* @__PURE__ */
|
|
2162
|
-
/* @__PURE__ */
|
|
2163
|
-
/* @__PURE__ */ w("div", { className:
|
|
2164
|
-
/* @__PURE__ */
|
|
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: () =>
|
|
2169
|
-
className:
|
|
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
|
-
|
|
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:
|
|
2209
|
+
onClick: Ht,
|
|
2210
2210
|
disabled: o.length === 0,
|
|
2211
|
-
className: `${
|
|
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:
|
|
2241
|
+
onClick: zt,
|
|
2242
2242
|
disabled: o.length === 0,
|
|
2243
|
-
className: `${
|
|
2243
|
+
className: `${T.navButton} ${T.navButtonRight}`,
|
|
2244
2244
|
title: "Siguiente",
|
|
2245
|
-
onMouseOver: () =>
|
|
2246
|
-
onMouseOut: () =>
|
|
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:
|
|
2273
|
+
src: ee.imageUrl || lt,
|
|
2274
2274
|
alt: "Background",
|
|
2275
|
-
className:
|
|
2276
|
-
style: { opacity:
|
|
2277
|
-
onError: (v) => v.currentTarget.src =
|
|
2275
|
+
className: T.backgroundImage,
|
|
2276
|
+
style: { opacity: W ? 1 : 0.7 },
|
|
2277
|
+
onError: (v) => v.currentTarget.src = lt
|
|
2278
2278
|
}
|
|
2279
2279
|
),
|
|
2280
|
-
|
|
2280
|
+
W && /* @__PURE__ */ w(We, { children: /* @__PURE__ */ w(
|
|
2281
2281
|
"img",
|
|
2282
2282
|
{
|
|
2283
|
-
src:
|
|
2283
|
+
src: $,
|
|
2284
2284
|
alt: "Avatar",
|
|
2285
|
-
className:
|
|
2285
|
+
className: T.avatar,
|
|
2286
2286
|
style: { transform: `scale(${ze % 10 < 5 ? 4 : 4.05})` }
|
|
2287
2287
|
}
|
|
2288
2288
|
) }),
|
|
2289
|
-
/* @__PURE__ */
|
|
2290
|
-
|
|
2291
|
-
/* @__PURE__ */ w("
|
|
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
|
-
|
|
2297
|
+
de && /* @__PURE__ */ w("div", { className: T.playbackControls, children: It ? (
|
|
2295
2298
|
// Loading spinner
|
|
2296
|
-
/* @__PURE__ */ w("button", { disabled: !0, className:
|
|
2299
|
+
/* @__PURE__ */ w("button", { disabled: !0, className: T.loadingButton, children: /* @__PURE__ */ V(
|
|
2297
2300
|
"svg",
|
|
2298
2301
|
{
|
|
2299
|
-
className:
|
|
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
|
-
) : !
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
2392
|
+
/* @__PURE__ */ w("div", { className: T.progressBar, children: /* @__PURE__ */ w(
|
|
2390
2393
|
"div",
|
|
2391
2394
|
{
|
|
2392
|
-
className:
|
|
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
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
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
|