iss-library-digital-video-v3 0.6.7 → 0.6.8
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.
|
@@ -108,10 +108,10 @@ var Ae = { exports: {} };
|
|
|
108
108
|
});
|
|
109
109
|
const r = this.samples.length / this.option.channels, a = this.audioCtx.createBuffer(this.option.channels, r, this.option.sampleRate);
|
|
110
110
|
for (let g = 0; g < this.option.channels; g++) {
|
|
111
|
-
const
|
|
111
|
+
const c = a.getChannelData(g);
|
|
112
112
|
let i = g, w = 50;
|
|
113
113
|
for (let C = 0; C < r; C++)
|
|
114
|
-
|
|
114
|
+
c[C] = this.samples[i], C < 50 && (c[C] = c[C] * C / 50), C >= r - 51 && (c[C] = c[C] * w-- / 50), i += this.option.channels;
|
|
115
115
|
}
|
|
116
116
|
this.startTime < this.audioCtx.currentTime && (this.startTime = this.audioCtx.currentTime), s.buffer = a, s.connect(this.gainNode), s.connect(this.analyserNode), Promise.resolve().then(() => {
|
|
117
117
|
if (typeof this.option.onstart == "function")
|
|
@@ -157,7 +157,7 @@ function We(A) {
|
|
|
157
157
|
let e;
|
|
158
158
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(A) : e = A && A.buffer && ne(A.buffer), e;
|
|
159
159
|
}
|
|
160
|
-
const He = fA("string"), O = fA("function"), oe = fA("number"), tA = (A) => A !== null && typeof A == "object", Le = (A) => A === !0 || A === !1,
|
|
160
|
+
const He = fA("string"), O = fA("function"), oe = fA("number"), tA = (A) => A !== null && typeof A == "object", Le = (A) => A === !0 || A === !1, EA = (A) => {
|
|
161
161
|
if (CA(A) !== "object")
|
|
162
162
|
return !1;
|
|
163
163
|
const e = ZA(A);
|
|
@@ -206,7 +206,7 @@ const X = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : type
|
|
|
206
206
|
function pA() {
|
|
207
207
|
const { caseless: A, skipUndefined: e } = se(this) && this || {}, t = {}, n = (o, s) => {
|
|
208
208
|
const r = A && re(t, s) || s;
|
|
209
|
-
|
|
209
|
+
EA(t[r]) && EA(o) ? t[r] = pA(t[r], o) : EA(o) ? t[r] = pA({}, o) : j(o) ? t[r] = o.slice() : (!e || !q(o)) && (t[r] = o);
|
|
210
210
|
};
|
|
211
211
|
for (let o = 0, s = arguments.length; o < s; o++)
|
|
212
212
|
arguments[o] && nA(arguments[o], n);
|
|
@@ -218,7 +218,7 @@ const Bt = (A, e, t, { allOwnKeys: n } = {}) => (nA(e, (o, s) => {
|
|
|
218
218
|
A.prototype = Object.create(e.prototype, n), A.prototype.constructor = A, Object.defineProperty(A, "super", {
|
|
219
219
|
value: e.prototype
|
|
220
220
|
}), t && Object.assign(A.prototype, t);
|
|
221
|
-
},
|
|
221
|
+
}, ct = (A, e, t, n) => {
|
|
222
222
|
let o, s, r;
|
|
223
223
|
const a = {};
|
|
224
224
|
if (e = e || {}, A == null) return e;
|
|
@@ -228,7 +228,7 @@ const Bt = (A, e, t, { allOwnKeys: n } = {}) => (nA(e, (o, s) => {
|
|
|
228
228
|
A = t !== !1 && ZA(A);
|
|
229
229
|
} while (A && (!t || t(A, e)) && A !== Object.prototype);
|
|
230
230
|
return e;
|
|
231
|
-
},
|
|
231
|
+
}, Et = (A, e, t) => {
|
|
232
232
|
A = String(A), (t === void 0 || t > A.length) && (t = A.length), t -= e.length;
|
|
233
233
|
const n = A.indexOf(e, t);
|
|
234
234
|
return n !== -1 && n === t;
|
|
@@ -328,7 +328,7 @@ const pt = (A) => {
|
|
|
328
328
|
isNumber: oe,
|
|
329
329
|
isBoolean: Le,
|
|
330
330
|
isObject: tA,
|
|
331
|
-
isPlainObject:
|
|
331
|
+
isPlainObject: EA,
|
|
332
332
|
isEmptyObject: xe,
|
|
333
333
|
isReadableStream: tt,
|
|
334
334
|
isRequest: nt,
|
|
@@ -350,10 +350,10 @@ const pt = (A) => {
|
|
|
350
350
|
trim: st,
|
|
351
351
|
stripBOM: at,
|
|
352
352
|
inherits: it,
|
|
353
|
-
toFlatObject:
|
|
353
|
+
toFlatObject: ct,
|
|
354
354
|
kindOf: CA,
|
|
355
355
|
kindOfTest: J,
|
|
356
|
-
endsWith:
|
|
356
|
+
endsWith: Et,
|
|
357
357
|
toArray: gt,
|
|
358
358
|
forEachEntry: wt,
|
|
359
359
|
matchAll: ut,
|
|
@@ -402,7 +402,7 @@ B.inherits(f, Error, {
|
|
|
402
402
|
};
|
|
403
403
|
}
|
|
404
404
|
});
|
|
405
|
-
const ie = f.prototype,
|
|
405
|
+
const ie = f.prototype, ce = {};
|
|
406
406
|
[
|
|
407
407
|
"ERR_BAD_OPTION_VALUE",
|
|
408
408
|
"ERR_BAD_OPTION",
|
|
@@ -418,15 +418,15 @@ const ie = f.prototype, Ee = {};
|
|
|
418
418
|
"ERR_INVALID_URL"
|
|
419
419
|
// eslint-disable-next-line func-names
|
|
420
420
|
].forEach((A) => {
|
|
421
|
-
|
|
421
|
+
ce[A] = { value: A };
|
|
422
422
|
});
|
|
423
|
-
Object.defineProperties(f,
|
|
423
|
+
Object.defineProperties(f, ce);
|
|
424
424
|
Object.defineProperty(ie, "isAxiosError", { value: !0 });
|
|
425
425
|
f.from = (A, e, t, n, o, s) => {
|
|
426
426
|
const r = Object.create(ie);
|
|
427
427
|
B.toFlatObject(A, r, function(i) {
|
|
428
428
|
return i !== Error.prototype;
|
|
429
|
-
}, (
|
|
429
|
+
}, (c) => c !== "isAxiosError");
|
|
430
430
|
const a = A && A.message ? A.message : "Error", g = e == null && A ? A.code : e;
|
|
431
431
|
return f.call(r, a, g, t, n, o), A && r.cause == null && Object.defineProperty(r, "cause", { value: A, configurable: !0 }), r.name = A && A.name || "Error", s && Object.assign(r, s), r;
|
|
432
432
|
};
|
|
@@ -434,12 +434,12 @@ const Zt = null;
|
|
|
434
434
|
function RA(A) {
|
|
435
435
|
return B.isPlainObject(A) || B.isArray(A);
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function Ee(A) {
|
|
438
438
|
return B.endsWith(A, "[]") ? A.slice(0, -2) : A;
|
|
439
439
|
}
|
|
440
440
|
function JA(A, e, t) {
|
|
441
441
|
return A ? A.concat(e).map(function(o, s) {
|
|
442
|
-
return o =
|
|
442
|
+
return o = Ee(o), !t && s ? "[" + o + "]" : o;
|
|
443
443
|
}).join(t ? "." : "") : e;
|
|
444
444
|
}
|
|
445
445
|
function kt(A) {
|
|
@@ -461,55 +461,55 @@ function dA(A, e, t) {
|
|
|
461
461
|
const n = t.metaTokens, o = t.visitor || i, s = t.dots, r = t.indexes, g = (t.Blob || typeof Blob < "u" && Blob) && B.isSpecCompliantForm(e);
|
|
462
462
|
if (!B.isFunction(o))
|
|
463
463
|
throw new TypeError("visitor must be a function");
|
|
464
|
-
function E
|
|
465
|
-
if (
|
|
466
|
-
if (B.isDate(
|
|
467
|
-
return
|
|
468
|
-
if (B.isBoolean(
|
|
469
|
-
return
|
|
470
|
-
if (!g && B.isBlob(
|
|
464
|
+
function c(E) {
|
|
465
|
+
if (E === null) return "";
|
|
466
|
+
if (B.isDate(E))
|
|
467
|
+
return E.toISOString();
|
|
468
|
+
if (B.isBoolean(E))
|
|
469
|
+
return E.toString();
|
|
470
|
+
if (!g && B.isBlob(E))
|
|
471
471
|
throw new f("Blob is not supported. Use a Buffer instead.");
|
|
472
|
-
return B.isArrayBuffer(
|
|
472
|
+
return B.isArrayBuffer(E) || B.isTypedArray(E) ? g && typeof Blob == "function" ? new Blob([E]) : Buffer.from(E) : E;
|
|
473
473
|
}
|
|
474
|
-
function i(
|
|
475
|
-
let D =
|
|
476
|
-
if (
|
|
474
|
+
function i(E, u, l) {
|
|
475
|
+
let D = E;
|
|
476
|
+
if (E && !l && typeof E == "object") {
|
|
477
477
|
if (B.endsWith(u, "{}"))
|
|
478
|
-
u = n ? u : u.slice(0, -2),
|
|
479
|
-
else if (B.isArray(
|
|
480
|
-
return u =
|
|
478
|
+
u = n ? u : u.slice(0, -2), E = JSON.stringify(E);
|
|
479
|
+
else if (B.isArray(E) && kt(E) || (B.isFileList(E) || B.endsWith(u, "[]")) && (D = B.toArray(E)))
|
|
480
|
+
return u = Ee(u), D.forEach(function(d, S) {
|
|
481
481
|
!(B.isUndefined(d) || d === null) && e.append(
|
|
482
482
|
// eslint-disable-next-line no-nested-ternary
|
|
483
483
|
r === !0 ? JA([u], S, s) : r === null ? u : u + "[]",
|
|
484
|
-
|
|
484
|
+
c(d)
|
|
485
485
|
);
|
|
486
486
|
}), !1;
|
|
487
487
|
}
|
|
488
|
-
return RA(
|
|
488
|
+
return RA(E) ? !0 : (e.append(JA(l, u, s), c(E)), !1);
|
|
489
489
|
}
|
|
490
490
|
const w = [], C = Object.assign(Ot, {
|
|
491
491
|
defaultVisitor: i,
|
|
492
|
-
convertValue:
|
|
492
|
+
convertValue: c,
|
|
493
493
|
isVisitable: RA
|
|
494
494
|
});
|
|
495
|
-
function
|
|
496
|
-
if (!B.isUndefined(
|
|
497
|
-
if (w.indexOf(
|
|
495
|
+
function h(E, u) {
|
|
496
|
+
if (!B.isUndefined(E)) {
|
|
497
|
+
if (w.indexOf(E) !== -1)
|
|
498
498
|
throw Error("Circular reference detected in " + u.join("."));
|
|
499
|
-
w.push(
|
|
499
|
+
w.push(E), B.forEach(E, function(D, F) {
|
|
500
500
|
(!(B.isUndefined(D) || D === null) && o.call(
|
|
501
501
|
e,
|
|
502
502
|
D,
|
|
503
503
|
B.isString(F) ? F.trim() : F,
|
|
504
504
|
u,
|
|
505
505
|
C
|
|
506
|
-
)) === !0 &&
|
|
506
|
+
)) === !0 && h(D, u ? u.concat(F) : [F]);
|
|
507
507
|
}), w.pop();
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
510
|
if (!B.isObject(A))
|
|
511
511
|
throw new TypeError("data must be an object");
|
|
512
|
-
return
|
|
512
|
+
return h(A), e;
|
|
513
513
|
}
|
|
514
514
|
function zA(A) {
|
|
515
515
|
const e = {
|
|
@@ -820,24 +820,24 @@ let v = class {
|
|
|
820
820
|
}
|
|
821
821
|
set(e, t, n) {
|
|
822
822
|
const o = this;
|
|
823
|
-
function s(a, g,
|
|
823
|
+
function s(a, g, c) {
|
|
824
824
|
const i = $(g);
|
|
825
825
|
if (!i)
|
|
826
826
|
throw new Error("header name must be a non-empty string");
|
|
827
827
|
const w = B.findKey(o, i);
|
|
828
|
-
(!w || o[w] === void 0 ||
|
|
828
|
+
(!w || o[w] === void 0 || c === !0 || c === void 0 && o[w] !== !1) && (o[w || g] = gA(a));
|
|
829
829
|
}
|
|
830
|
-
const r = (a, g) => B.forEach(a, (
|
|
830
|
+
const r = (a, g) => B.forEach(a, (c, i) => s(c, i, g));
|
|
831
831
|
if (B.isPlainObject(e) || e instanceof this.constructor)
|
|
832
832
|
r(e, t);
|
|
833
833
|
else if (B.isString(e) && (e = e.trim()) && !xt(e))
|
|
834
834
|
r(Ht(e), t);
|
|
835
835
|
else if (B.isObject(e) && B.isIterable(e)) {
|
|
836
|
-
let a = {}, g,
|
|
836
|
+
let a = {}, g, c;
|
|
837
837
|
for (const i of e) {
|
|
838
838
|
if (!B.isArray(i))
|
|
839
839
|
throw TypeError("Object iterator must return a key-value pair");
|
|
840
|
-
a[
|
|
840
|
+
a[c = i[0]] = (g = a[c]) ? B.isArray(g) ? [...g, i[1]] : [g, i[1]] : i[1];
|
|
841
841
|
}
|
|
842
842
|
r(a, t);
|
|
843
843
|
} else
|
|
@@ -986,25 +986,25 @@ function _t(A, e) {
|
|
|
986
986
|
const t = new Array(A), n = new Array(A);
|
|
987
987
|
let o = 0, s = 0, r;
|
|
988
988
|
return e = e !== void 0 ? e : 1e3, function(g) {
|
|
989
|
-
const
|
|
990
|
-
r || (r =
|
|
989
|
+
const c = Date.now(), i = n[s];
|
|
990
|
+
r || (r = c), t[o] = g, n[o] = c;
|
|
991
991
|
let w = s, C = 0;
|
|
992
992
|
for (; w !== o; )
|
|
993
993
|
C += t[w++], w = w % A;
|
|
994
|
-
if (o = (o + 1) % A, o === s && (s = (s + 1) % A),
|
|
994
|
+
if (o = (o + 1) % A, o === s && (s = (s + 1) % A), c - r < e)
|
|
995
995
|
return;
|
|
996
|
-
const
|
|
997
|
-
return
|
|
996
|
+
const h = i && c - i;
|
|
997
|
+
return h ? Math.round(C * 1e3 / h) : void 0;
|
|
998
998
|
};
|
|
999
999
|
}
|
|
1000
1000
|
function $t(A, e) {
|
|
1001
1001
|
let t = 0, n = 1e3 / e, o, s;
|
|
1002
|
-
const r = (
|
|
1003
|
-
t = i, o = null, s && (clearTimeout(s), s = null), A(...
|
|
1002
|
+
const r = (c, i = Date.now()) => {
|
|
1003
|
+
t = i, o = null, s && (clearTimeout(s), s = null), A(...c);
|
|
1004
1004
|
};
|
|
1005
|
-
return [(...
|
|
1005
|
+
return [(...c) => {
|
|
1006
1006
|
const i = Date.now(), w = i - t;
|
|
1007
|
-
w >= n ? r(
|
|
1007
|
+
w >= n ? r(c, i) : (o = c, s || (s = setTimeout(() => {
|
|
1008
1008
|
s = null, r(o);
|
|
1009
1009
|
}, n - w)));
|
|
1010
1010
|
}, () => o && r(o)];
|
|
@@ -1013,15 +1013,15 @@ const wA = (A, e, t = 3) => {
|
|
|
1013
1013
|
let n = 0;
|
|
1014
1014
|
const o = _t(50, 250);
|
|
1015
1015
|
return $t((s) => {
|
|
1016
|
-
const r = s.loaded, a = s.lengthComputable ? s.total : void 0, g = r - n,
|
|
1016
|
+
const r = s.loaded, a = s.lengthComputable ? s.total : void 0, g = r - n, c = o(g), i = r <= a;
|
|
1017
1017
|
n = r;
|
|
1018
1018
|
const w = {
|
|
1019
1019
|
loaded: r,
|
|
1020
1020
|
total: a,
|
|
1021
1021
|
progress: a ? r / a : void 0,
|
|
1022
1022
|
bytes: g,
|
|
1023
|
-
rate:
|
|
1024
|
-
estimated:
|
|
1023
|
+
rate: c || void 0,
|
|
1024
|
+
estimated: c && a && i ? (a - r) / c : void 0,
|
|
1025
1025
|
event: s,
|
|
1026
1026
|
lengthComputable: a != null,
|
|
1027
1027
|
[e ? "download" : "upload"]: !0
|
|
@@ -1079,30 +1079,30 @@ const WA = (A) => A instanceof v ? { ...A } : A;
|
|
|
1079
1079
|
function H(A, e) {
|
|
1080
1080
|
e = e || {};
|
|
1081
1081
|
const t = {};
|
|
1082
|
-
function n(
|
|
1083
|
-
return B.isPlainObject(
|
|
1082
|
+
function n(c, i, w, C) {
|
|
1083
|
+
return B.isPlainObject(c) && B.isPlainObject(i) ? B.merge.call({ caseless: C }, c, i) : B.isPlainObject(i) ? B.merge({}, i) : B.isArray(i) ? i.slice() : i;
|
|
1084
1084
|
}
|
|
1085
|
-
function o(
|
|
1085
|
+
function o(c, i, w, C) {
|
|
1086
1086
|
if (B.isUndefined(i)) {
|
|
1087
|
-
if (!B.isUndefined(
|
|
1088
|
-
return n(void 0,
|
|
1089
|
-
} else return n(
|
|
1087
|
+
if (!B.isUndefined(c))
|
|
1088
|
+
return n(void 0, c, w, C);
|
|
1089
|
+
} else return n(c, i, w, C);
|
|
1090
1090
|
}
|
|
1091
|
-
function s(
|
|
1091
|
+
function s(c, i) {
|
|
1092
1092
|
if (!B.isUndefined(i))
|
|
1093
1093
|
return n(void 0, i);
|
|
1094
1094
|
}
|
|
1095
|
-
function r(
|
|
1095
|
+
function r(c, i) {
|
|
1096
1096
|
if (B.isUndefined(i)) {
|
|
1097
|
-
if (!B.isUndefined(
|
|
1098
|
-
return n(void 0,
|
|
1097
|
+
if (!B.isUndefined(c))
|
|
1098
|
+
return n(void 0, c);
|
|
1099
1099
|
} else return n(void 0, i);
|
|
1100
1100
|
}
|
|
1101
|
-
function a(
|
|
1101
|
+
function a(c, i, w) {
|
|
1102
1102
|
if (w in e)
|
|
1103
|
-
return n(
|
|
1103
|
+
return n(c, i);
|
|
1104
1104
|
if (w in A)
|
|
1105
|
-
return n(void 0,
|
|
1105
|
+
return n(void 0, c);
|
|
1106
1106
|
}
|
|
1107
1107
|
const g = {
|
|
1108
1108
|
url: s,
|
|
@@ -1133,7 +1133,7 @@ function H(A, e) {
|
|
|
1133
1133
|
socketPath: r,
|
|
1134
1134
|
responseEncoding: r,
|
|
1135
1135
|
validateStatus: a,
|
|
1136
|
-
headers: (
|
|
1136
|
+
headers: (c, i, w) => o(WA(c), WA(i), w, !0)
|
|
1137
1137
|
};
|
|
1138
1138
|
return B.forEach(Object.keys({ ...A, ...e }), function(i) {
|
|
1139
1139
|
const w = g[i] || o, C = w(A[i], e[i], i);
|
|
@@ -1150,9 +1150,9 @@ const Qe = (A) => {
|
|
|
1150
1150
|
if (b.hasStandardBrowserEnv || b.hasStandardBrowserWebWorkerEnv)
|
|
1151
1151
|
r.setContentType(void 0);
|
|
1152
1152
|
else if (B.isFunction(t.getHeaders)) {
|
|
1153
|
-
const g = t.getHeaders(),
|
|
1153
|
+
const g = t.getHeaders(), c = ["content-type", "content-length"];
|
|
1154
1154
|
Object.entries(g).forEach(([i, w]) => {
|
|
1155
|
-
|
|
1155
|
+
c.includes(i.toLowerCase()) && r.set(i, w);
|
|
1156
1156
|
});
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
@@ -1166,9 +1166,9 @@ const Qe = (A) => {
|
|
|
1166
1166
|
const o = Qe(A);
|
|
1167
1167
|
let s = o.data;
|
|
1168
1168
|
const r = v.from(o.headers).normalize();
|
|
1169
|
-
let { responseType: a, onUploadProgress: g, onDownloadProgress:
|
|
1169
|
+
let { responseType: a, onUploadProgress: g, onDownloadProgress: c } = o, i, w, C, h, E;
|
|
1170
1170
|
function u() {
|
|
1171
|
-
|
|
1171
|
+
h && h(), E && E(), o.cancelToken && o.cancelToken.unsubscribe(i), o.signal && o.signal.removeEventListener("abort", i);
|
|
1172
1172
|
}
|
|
1173
1173
|
let l = new XMLHttpRequest();
|
|
1174
1174
|
l.open(o.method.toUpperCase(), o.url, !0), l.timeout = o.timeout;
|
|
@@ -1209,7 +1209,7 @@ const Qe = (A) => {
|
|
|
1209
1209
|
)), l = null;
|
|
1210
1210
|
}, s === void 0 && r.setContentType(null), "setRequestHeader" in l && B.forEach(r.toJSON(), function(S, G) {
|
|
1211
1211
|
l.setRequestHeader(G, S);
|
|
1212
|
-
}), B.isUndefined(o.withCredentials) || (l.withCredentials = !!o.withCredentials), a && a !== "json" && (l.responseType = o.responseType),
|
|
1212
|
+
}), B.isUndefined(o.withCredentials) || (l.withCredentials = !!o.withCredentials), a && a !== "json" && (l.responseType = o.responseType), c && ([C, E] = wA(c, !0), l.addEventListener("progress", C)), g && l.upload && ([w, h] = wA(g), l.upload.addEventListener("progress", w), l.upload.addEventListener("loadend", h)), (o.cancelToken || o.signal) && (i = (d) => {
|
|
1213
1213
|
l && (n(!d || d.type ? new K(null, A, l) : d), l.abort(), l = null);
|
|
1214
1214
|
}, o.cancelToken && o.cancelToken.subscribe(i), o.signal && (o.signal.aborted ? i() : o.signal.addEventListener("abort", i)));
|
|
1215
1215
|
const F = Kt(o.url);
|
|
@@ -1223,10 +1223,10 @@ const Qe = (A) => {
|
|
|
1223
1223
|
const { length: t } = A = A ? A.filter(Boolean) : [];
|
|
1224
1224
|
if (e || t) {
|
|
1225
1225
|
let n = new AbortController(), o;
|
|
1226
|
-
const s = function(
|
|
1226
|
+
const s = function(c) {
|
|
1227
1227
|
if (!o) {
|
|
1228
1228
|
o = !0, a();
|
|
1229
|
-
const i =
|
|
1229
|
+
const i = c instanceof Error ? c : this.reason;
|
|
1230
1230
|
n.abort(i instanceof f ? i : new K(i instanceof Error ? i.message : i));
|
|
1231
1231
|
}
|
|
1232
1232
|
};
|
|
@@ -1234,11 +1234,11 @@ const Qe = (A) => {
|
|
|
1234
1234
|
r = null, s(new f(`timeout ${e} of ms exceeded`, f.ETIMEDOUT));
|
|
1235
1235
|
}, e);
|
|
1236
1236
|
const a = () => {
|
|
1237
|
-
A && (r && clearTimeout(r), r = null, A.forEach((
|
|
1238
|
-
|
|
1237
|
+
A && (r && clearTimeout(r), r = null, A.forEach((c) => {
|
|
1238
|
+
c.unsubscribe ? c.unsubscribe(s) : c.removeEventListener("abort", s);
|
|
1239
1239
|
}), A = null);
|
|
1240
1240
|
};
|
|
1241
|
-
A.forEach((
|
|
1241
|
+
A.forEach((c) => c.addEventListener("abort", s));
|
|
1242
1242
|
const { signal: g } = n;
|
|
1243
1243
|
return g.unsubscribe = () => B.asap(a), g;
|
|
1244
1244
|
}
|
|
@@ -1252,9 +1252,9 @@ const Qe = (A) => {
|
|
|
1252
1252
|
for (; n < t; )
|
|
1253
1253
|
o = n + e, yield A.slice(n, o), n = o;
|
|
1254
1254
|
}, an = async function* (A, e) {
|
|
1255
|
-
for await (const t of
|
|
1255
|
+
for await (const t of cn(A))
|
|
1256
1256
|
yield* Bn(t, e);
|
|
1257
|
-
},
|
|
1257
|
+
}, cn = async function* (A) {
|
|
1258
1258
|
if (A[Symbol.asyncIterator]) {
|
|
1259
1259
|
yield* A;
|
|
1260
1260
|
return;
|
|
@@ -1278,8 +1278,8 @@ const Qe = (A) => {
|
|
|
1278
1278
|
return new ReadableStream({
|
|
1279
1279
|
async pull(g) {
|
|
1280
1280
|
try {
|
|
1281
|
-
const { done:
|
|
1282
|
-
if (
|
|
1281
|
+
const { done: c, value: i } = await o.next();
|
|
1282
|
+
if (c) {
|
|
1283
1283
|
a(), g.close();
|
|
1284
1284
|
return;
|
|
1285
1285
|
}
|
|
@@ -1289,8 +1289,8 @@ const Qe = (A) => {
|
|
|
1289
1289
|
t(C);
|
|
1290
1290
|
}
|
|
1291
1291
|
g.enqueue(new Uint8Array(i));
|
|
1292
|
-
} catch (
|
|
1293
|
-
throw a(
|
|
1292
|
+
} catch (c) {
|
|
1293
|
+
throw a(c), c;
|
|
1294
1294
|
}
|
|
1295
1295
|
},
|
|
1296
1296
|
cancel(g) {
|
|
@@ -1299,7 +1299,7 @@ const Qe = (A) => {
|
|
|
1299
1299
|
}, {
|
|
1300
1300
|
highWaterMark: 2
|
|
1301
1301
|
});
|
|
1302
|
-
}, LA = 64 * 1024, { isFunction:
|
|
1302
|
+
}, LA = 64 * 1024, { isFunction: cA } = B, En = (({ Request: A, Response: e }) => ({
|
|
1303
1303
|
Request: A,
|
|
1304
1304
|
Response: e
|
|
1305
1305
|
}))(B.global), {
|
|
@@ -1314,50 +1314,50 @@ const Qe = (A) => {
|
|
|
1314
1314
|
}, gn = (A) => {
|
|
1315
1315
|
A = B.merge.call({
|
|
1316
1316
|
skipUndefined: !0
|
|
1317
|
-
},
|
|
1318
|
-
const { fetch: e, Request: t, Response: n } = A, o = e ?
|
|
1317
|
+
}, En, A);
|
|
1318
|
+
const { fetch: e, Request: t, Response: n } = A, o = e ? cA(e) : typeof fetch == "function", s = cA(t), r = cA(n);
|
|
1319
1319
|
if (!o)
|
|
1320
1320
|
return !1;
|
|
1321
|
-
const a = o &&
|
|
1322
|
-
let
|
|
1321
|
+
const a = o && cA(xA), g = o && (typeof qA == "function" ? /* @__PURE__ */ ((E) => (u) => E.encode(u))(new qA()) : async (E) => new Uint8Array(await new t(E).arrayBuffer())), c = s && a && jA(() => {
|
|
1322
|
+
let E = !1;
|
|
1323
1323
|
const u = new t(b.origin, {
|
|
1324
1324
|
body: new xA(),
|
|
1325
1325
|
method: "POST",
|
|
1326
1326
|
get duplex() {
|
|
1327
|
-
return
|
|
1327
|
+
return E = !0, "half";
|
|
1328
1328
|
}
|
|
1329
1329
|
}).headers.has("Content-Type");
|
|
1330
|
-
return
|
|
1330
|
+
return E && !u;
|
|
1331
1331
|
}), i = r && a && jA(() => B.isReadableStream(new n("").body)), w = {
|
|
1332
|
-
stream: i && ((
|
|
1332
|
+
stream: i && ((E) => E.body)
|
|
1333
1333
|
};
|
|
1334
|
-
o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((
|
|
1335
|
-
!w[
|
|
1336
|
-
let D = u && u[
|
|
1334
|
+
o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((E) => {
|
|
1335
|
+
!w[E] && (w[E] = (u, l) => {
|
|
1336
|
+
let D = u && u[E];
|
|
1337
1337
|
if (D)
|
|
1338
1338
|
return D.call(u);
|
|
1339
|
-
throw new f(`Response type '${
|
|
1339
|
+
throw new f(`Response type '${E}' is not supported`, f.ERR_NOT_SUPPORT, l);
|
|
1340
1340
|
});
|
|
1341
1341
|
});
|
|
1342
|
-
const C = async (
|
|
1343
|
-
if (
|
|
1342
|
+
const C = async (E) => {
|
|
1343
|
+
if (E == null)
|
|
1344
1344
|
return 0;
|
|
1345
|
-
if (B.isBlob(
|
|
1346
|
-
return
|
|
1347
|
-
if (B.isSpecCompliantForm(
|
|
1345
|
+
if (B.isBlob(E))
|
|
1346
|
+
return E.size;
|
|
1347
|
+
if (B.isSpecCompliantForm(E))
|
|
1348
1348
|
return (await new t(b.origin, {
|
|
1349
1349
|
method: "POST",
|
|
1350
|
-
body:
|
|
1350
|
+
body: E
|
|
1351
1351
|
}).arrayBuffer()).byteLength;
|
|
1352
|
-
if (B.isArrayBufferView(
|
|
1353
|
-
return
|
|
1354
|
-
if (B.isURLSearchParams(
|
|
1355
|
-
return (await g(
|
|
1356
|
-
},
|
|
1357
|
-
const l = B.toFiniteNumber(
|
|
1352
|
+
if (B.isArrayBufferView(E) || B.isArrayBuffer(E))
|
|
1353
|
+
return E.byteLength;
|
|
1354
|
+
if (B.isURLSearchParams(E) && (E = E + ""), B.isString(E))
|
|
1355
|
+
return (await g(E)).byteLength;
|
|
1356
|
+
}, h = async (E, u) => {
|
|
1357
|
+
const l = B.toFiniteNumber(E.getContentLength());
|
|
1358
1358
|
return l ?? C(u);
|
|
1359
1359
|
};
|
|
1360
|
-
return async (
|
|
1360
|
+
return async (E) => {
|
|
1361
1361
|
let {
|
|
1362
1362
|
url: u,
|
|
1363
1363
|
method: l,
|
|
@@ -1371,7 +1371,7 @@ const Qe = (A) => {
|
|
|
1371
1371
|
headers: L,
|
|
1372
1372
|
withCredentials: x = "same-origin",
|
|
1373
1373
|
fetchOptions: _
|
|
1374
|
-
} = Qe(
|
|
1374
|
+
} = Qe(E), rA = e || fetch;
|
|
1375
1375
|
Z = Z ? (Z + "").toLowerCase() : "text";
|
|
1376
1376
|
let N = sn([F, d && d.toAbortSignal()], S), V = null;
|
|
1377
1377
|
const y = N && N.unsubscribe && (() => {
|
|
@@ -1379,7 +1379,7 @@ const Qe = (A) => {
|
|
|
1379
1379
|
});
|
|
1380
1380
|
let sA;
|
|
1381
1381
|
try {
|
|
1382
|
-
if (I &&
|
|
1382
|
+
if (I && c && l !== "get" && l !== "head" && (sA = await h(L, D)) !== 0) {
|
|
1383
1383
|
let M = new t(u, {
|
|
1384
1384
|
method: "POST",
|
|
1385
1385
|
body: D,
|
|
@@ -1405,8 +1405,8 @@ const Qe = (A) => {
|
|
|
1405
1405
|
};
|
|
1406
1406
|
V = s && new t(u, BA);
|
|
1407
1407
|
let Q = await (s ? rA(V, _) : rA(u, BA));
|
|
1408
|
-
const
|
|
1409
|
-
if (i && (G ||
|
|
1408
|
+
const m = i && (Z === "stream" || Z === "response");
|
|
1409
|
+
if (i && (G || m && y)) {
|
|
1410
1410
|
const M = {};
|
|
1411
1411
|
["status", "statusText", "headers"].forEach((GA) => {
|
|
1412
1412
|
M[GA] = Q[GA];
|
|
@@ -1423,24 +1423,24 @@ const Qe = (A) => {
|
|
|
1423
1423
|
);
|
|
1424
1424
|
}
|
|
1425
1425
|
Z = Z || "text";
|
|
1426
|
-
let z = await w[B.findKey(w, Z) || "text"](Q,
|
|
1427
|
-
return !
|
|
1426
|
+
let z = await w[B.findKey(w, Z) || "text"](Q, E);
|
|
1427
|
+
return !m && y && y(), await new Promise((M, U) => {
|
|
1428
1428
|
fe(M, U, {
|
|
1429
1429
|
data: z,
|
|
1430
1430
|
headers: v.from(Q.headers),
|
|
1431
1431
|
status: Q.status,
|
|
1432
1432
|
statusText: Q.statusText,
|
|
1433
|
-
config:
|
|
1433
|
+
config: E,
|
|
1434
1434
|
request: V
|
|
1435
1435
|
});
|
|
1436
1436
|
});
|
|
1437
1437
|
} catch (T) {
|
|
1438
1438
|
throw y && y(), T && T.name === "TypeError" && /Load failed|fetch/i.test(T.message) ? Object.assign(
|
|
1439
|
-
new f("Network Error", f.ERR_NETWORK,
|
|
1439
|
+
new f("Network Error", f.ERR_NETWORK, E, V),
|
|
1440
1440
|
{
|
|
1441
1441
|
cause: T.cause || T
|
|
1442
1442
|
}
|
|
1443
|
-
) : f.from(T, T && T.code,
|
|
1443
|
+
) : f.from(T, T && T.code, E, V);
|
|
1444
1444
|
}
|
|
1445
1445
|
};
|
|
1446
1446
|
}, ln = /* @__PURE__ */ new Map(), De = (A) => {
|
|
@@ -1450,10 +1450,10 @@ const Qe = (A) => {
|
|
|
1450
1450
|
o,
|
|
1451
1451
|
t
|
|
1452
1452
|
];
|
|
1453
|
-
let r = s.length, a = r, g,
|
|
1453
|
+
let r = s.length, a = r, g, c, i = ln;
|
|
1454
1454
|
for (; a--; )
|
|
1455
|
-
g = s[a],
|
|
1456
|
-
return
|
|
1455
|
+
g = s[a], c = i.get(g), c === void 0 && i.set(g, c = a ? /* @__PURE__ */ new Map() : gn(e)), i = c;
|
|
1456
|
+
return c;
|
|
1457
1457
|
};
|
|
1458
1458
|
De();
|
|
1459
1459
|
const bA = {
|
|
@@ -1489,7 +1489,7 @@ const KA = (A) => `- ${A}`, wn = (A) => B.isFunction(A) || A === null || A === !
|
|
|
1489
1489
|
}
|
|
1490
1490
|
if (!o) {
|
|
1491
1491
|
const r = Object.entries(s).map(
|
|
1492
|
-
([g,
|
|
1492
|
+
([g, c]) => `adapter ${g} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1493
1493
|
);
|
|
1494
1494
|
let a = t ? r.length > 1 ? `since :
|
|
1495
1495
|
` + r.map(KA).join(`
|
|
@@ -1628,8 +1628,8 @@ let W = class {
|
|
|
1628
1628
|
);
|
|
1629
1629
|
s && B.forEach(
|
|
1630
1630
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1631
|
-
(
|
|
1632
|
-
delete s[
|
|
1631
|
+
(E) => {
|
|
1632
|
+
delete s[E];
|
|
1633
1633
|
}
|
|
1634
1634
|
), t.headers = v.concat(r, s);
|
|
1635
1635
|
const a = [];
|
|
@@ -1637,35 +1637,35 @@ let W = class {
|
|
|
1637
1637
|
this.interceptors.request.forEach(function(u) {
|
|
1638
1638
|
typeof u.runWhen == "function" && u.runWhen(t) === !1 || (g = g && u.synchronous, a.unshift(u.fulfilled, u.rejected));
|
|
1639
1639
|
});
|
|
1640
|
-
const
|
|
1640
|
+
const c = [];
|
|
1641
1641
|
this.interceptors.response.forEach(function(u) {
|
|
1642
|
-
|
|
1642
|
+
c.push(u.fulfilled, u.rejected);
|
|
1643
1643
|
});
|
|
1644
1644
|
let i, w = 0, C;
|
|
1645
1645
|
if (!g) {
|
|
1646
|
-
const
|
|
1647
|
-
for (
|
|
1648
|
-
i = i.then(
|
|
1646
|
+
const E = [_A.bind(this), void 0];
|
|
1647
|
+
for (E.unshift(...a), E.push(...c), C = E.length, i = Promise.resolve(t); w < C; )
|
|
1648
|
+
i = i.then(E[w++], E[w++]);
|
|
1649
1649
|
return i;
|
|
1650
1650
|
}
|
|
1651
1651
|
C = a.length;
|
|
1652
|
-
let
|
|
1652
|
+
let h = t;
|
|
1653
1653
|
for (; w < C; ) {
|
|
1654
|
-
const
|
|
1654
|
+
const E = a[w++], u = a[w++];
|
|
1655
1655
|
try {
|
|
1656
|
-
|
|
1656
|
+
h = E(h);
|
|
1657
1657
|
} catch (l) {
|
|
1658
1658
|
u.call(this, l);
|
|
1659
1659
|
break;
|
|
1660
1660
|
}
|
|
1661
1661
|
}
|
|
1662
1662
|
try {
|
|
1663
|
-
i = _A.call(this,
|
|
1664
|
-
} catch (
|
|
1665
|
-
return Promise.reject(
|
|
1663
|
+
i = _A.call(this, h);
|
|
1664
|
+
} catch (E) {
|
|
1665
|
+
return Promise.reject(E);
|
|
1666
1666
|
}
|
|
1667
|
-
for (w = 0, C =
|
|
1668
|
-
i = i.then(
|
|
1667
|
+
for (w = 0, C = c.length; w < C; )
|
|
1668
|
+
i = i.then(c[w++], c[w++]);
|
|
1669
1669
|
return i;
|
|
1670
1670
|
}
|
|
1671
1671
|
getUri(e) {
|
|
@@ -1933,26 +1933,26 @@ const Dn = "/lxlicence", hn = {
|
|
|
1933
1933
|
default: "ws://10.110.145.131:8191/meta-human/stream-tts"
|
|
1934
1934
|
}
|
|
1935
1935
|
},
|
|
1936
|
-
emits: ["error"],
|
|
1936
|
+
emits: ["error", "voice-stop-event"],
|
|
1937
1937
|
setup(A, { expose: e, emit: t }) {
|
|
1938
|
-
const n = t, o = A, s = k(!0), r = k(!1), a = k(null), g = k(""),
|
|
1938
|
+
const n = t, o = A, s = k(!0), r = k(!1), a = k(null), g = k(""), c = k(""), i = k(!1), w = k(!1), C = k(0), h = k(0), E = k(!1), u = k(null), l = Fe({
|
|
1939
1939
|
mutedVolume: 0,
|
|
1940
1940
|
playerVolume: 1
|
|
1941
|
-
}), D = k("未连接"), F = k([]), d = k(null), S = TA(() => o.videoClosed), G = TA(() => o.videoOpened), I = (Q,
|
|
1942
|
-
Function(`window.console && console.log('${Q}', '${
|
|
1941
|
+
}), D = k("未连接"), F = k([]), d = k(null), S = TA(() => o.videoClosed), G = TA(() => o.videoOpened), I = (Q, m = "") => {
|
|
1942
|
+
Function(`window.console && console.log('${Q}', '${m}');`)();
|
|
1943
1943
|
}, Z = async () => {
|
|
1944
1944
|
try {
|
|
1945
|
-
(await mn()).data.code === "0000" ? (I("✅ 获取授权成功"),
|
|
1945
|
+
(await mn()).data.code === "0000" ? (I("✅ 获取授权成功"), E.value = !0) : (I("❌ 获取授权失败"), E.value = !1);
|
|
1946
1946
|
} catch (Q) {
|
|
1947
|
-
I("❌ 授权失败:", Q), n("error", "授权失败: " + Q),
|
|
1947
|
+
I("❌ 授权失败:", Q), n("error", "授权失败: " + Q), E.value = !1;
|
|
1948
1948
|
}
|
|
1949
1949
|
}, L = (Q) => {
|
|
1950
1950
|
if (d.value) {
|
|
1951
|
-
const
|
|
1952
|
-
if (
|
|
1951
|
+
const m = d.value.readyState;
|
|
1952
|
+
if (m === WebSocket.OPEN) {
|
|
1953
1953
|
D.value = "已连接";
|
|
1954
1954
|
return;
|
|
1955
|
-
} else if (
|
|
1955
|
+
} else if (m === WebSocket.CONNECTING) {
|
|
1956
1956
|
D.value = "连接中";
|
|
1957
1957
|
return;
|
|
1958
1958
|
} else
|
|
@@ -1960,8 +1960,8 @@ const Dn = "/lxlicence", hn = {
|
|
|
1960
1960
|
}
|
|
1961
1961
|
d.value = new WebSocket(o.wsUrl), d.value.onopen = () => {
|
|
1962
1962
|
D.value = "已连接", console.log("✅ WebSocket 连接成功"), rA();
|
|
1963
|
-
}, d.value.onmessage = (
|
|
1964
|
-
const z =
|
|
1963
|
+
}, d.value.onmessage = (m) => {
|
|
1964
|
+
const z = m.data;
|
|
1965
1965
|
F.value.push(z), console.log("📩 收到消息:", z);
|
|
1966
1966
|
try {
|
|
1967
1967
|
const M = JSON.parse(z);
|
|
@@ -1976,10 +1976,10 @@ const Dn = "/lxlicence", hn = {
|
|
|
1976
1976
|
} catch (M) {
|
|
1977
1977
|
console.error("解析消息失败:", M);
|
|
1978
1978
|
}
|
|
1979
|
-
}, d.value.onclose = (
|
|
1980
|
-
D.value = `已关闭 (代码: ${
|
|
1981
|
-
}, d.value.onerror = (
|
|
1982
|
-
D.value = "发生错误", console.error("❌ WebSocket 错误:",
|
|
1979
|
+
}, d.value.onclose = (m) => {
|
|
1980
|
+
D.value = `已关闭 (代码: ${m.code})`, console.log("🔌 WebSocket 连接已关闭", m);
|
|
1981
|
+
}, d.value.onerror = (m) => {
|
|
1982
|
+
D.value = "发生错误", console.error("❌ WebSocket 错误:", m), n("error", "连接失败: " + m);
|
|
1983
1983
|
};
|
|
1984
1984
|
}, x = () => {
|
|
1985
1985
|
r.value = !0, s.value = !1;
|
|
@@ -1994,7 +1994,7 @@ const Dn = "/lxlicence", hn = {
|
|
|
1994
1994
|
}, N = (Q) => {
|
|
1995
1995
|
if (Q)
|
|
1996
1996
|
if (d.value && d.value.readyState === WebSocket.OPEN) {
|
|
1997
|
-
const
|
|
1997
|
+
const m = {
|
|
1998
1998
|
synthesis_request: {
|
|
1999
1999
|
text: Q,
|
|
2000
2000
|
spk_id: a.value
|
|
@@ -2002,7 +2002,7 @@ const Dn = "/lxlicence", hn = {
|
|
|
2002
2002
|
conversation_id: g.value,
|
|
2003
2003
|
state: "keep"
|
|
2004
2004
|
};
|
|
2005
|
-
d.value.send(JSON.stringify(
|
|
2005
|
+
d.value.send(JSON.stringify(m));
|
|
2006
2006
|
} else
|
|
2007
2007
|
console.error("请先初始化"), n("error", "请先初始化");
|
|
2008
2008
|
}, V = () => {
|
|
@@ -2011,7 +2011,7 @@ const Dn = "/lxlicence", hn = {
|
|
|
2011
2011
|
d.value.send(JSON.stringify(Q));
|
|
2012
2012
|
}
|
|
2013
2013
|
}, y = () => {
|
|
2014
|
-
if (!
|
|
2014
|
+
if (!E.value)
|
|
2015
2015
|
return n("error", "license未授权"), !1;
|
|
2016
2016
|
try {
|
|
2017
2017
|
return u.value = new Ne({
|
|
@@ -2019,14 +2019,16 @@ const Dn = "/lxlicence", hn = {
|
|
|
2019
2019
|
channels: 1,
|
|
2020
2020
|
sampleRate: 24e3,
|
|
2021
2021
|
flushTime: 2e3,
|
|
2022
|
-
onstatechange: (Q,
|
|
2022
|
+
onstatechange: (Q, m, z) => {
|
|
2023
2023
|
console.log("播放状态改变", z);
|
|
2024
2024
|
},
|
|
2025
2025
|
onstart: () => {
|
|
2026
|
-
console.log("开始播放onstart"), s.value && !w.value && x(), C.value++, console.log("视频播放1::", C.value + "::" +
|
|
2026
|
+
console.log("开始播放onstart"), s.value && !w.value && x(), C.value++, console.log("视频播放1::", C.value + "::" + h.value + "::" + w.value);
|
|
2027
2027
|
},
|
|
2028
|
-
onended: (Q,
|
|
2029
|
-
console.log("播放结束onended", Q), console.log("当前执行秒", (/* @__PURE__ */ new Date()).getSeconds()),
|
|
2028
|
+
onended: (Q, m) => {
|
|
2029
|
+
console.log("播放结束onended", Q), console.log("当前执行秒", (/* @__PURE__ */ new Date()).getSeconds()), h.value++, console.log("视频播放2::", C.value, h.value), C.value === h.value && (console.log("停止说话了~~~"), _(), setTimeout(() => {
|
|
2030
|
+
console.log("停止说话了~~~2::", C.value === h.value), C.value === h.value && n("voice-stop-event", !0);
|
|
2031
|
+
}, 1e3));
|
|
2030
2032
|
}
|
|
2031
2033
|
}), u.value.volume(l.playerVolume), L("init"), !0;
|
|
2032
2034
|
} catch {
|
|
@@ -2035,7 +2037,7 @@ const Dn = "/lxlicence", hn = {
|
|
|
2035
2037
|
}, sA = () => {
|
|
2036
2038
|
if (u.value)
|
|
2037
2039
|
try {
|
|
2038
|
-
u.value.volume(l.mutedVolume), V(), u.value.destroy(), w.value = !0,
|
|
2040
|
+
u.value.volume(l.mutedVolume), V(), u.value.destroy(), w.value = !0, c.value = "", _(), i.value = !1, y(), console.log("✅ 音频已停止"), n("voice-stop-event", !0);
|
|
2039
2041
|
} catch (Q) {
|
|
2040
2042
|
console.warn("停止音频时发生异常:", Q), n("error", "停止音频时发生异常");
|
|
2041
2043
|
}
|
|
@@ -2045,16 +2047,16 @@ const Dn = "/lxlicence", hn = {
|
|
|
2045
2047
|
return;
|
|
2046
2048
|
}
|
|
2047
2049
|
Q = Q.replace(/=+$/, "");
|
|
2048
|
-
const
|
|
2050
|
+
const m = atob(Q), z = m.length, M = new ArrayBuffer(z), U = new Uint8Array(M);
|
|
2049
2051
|
for (let Y = 0; Y < z; Y++)
|
|
2050
|
-
U[Y] =
|
|
2051
|
-
u.value.feed(U.buffer),
|
|
2052
|
+
U[Y] = m.charCodeAt(Y);
|
|
2053
|
+
u.value.feed(U.buffer), c.value = "";
|
|
2052
2054
|
}, BA = () => i;
|
|
2053
2055
|
return Ze(
|
|
2054
2056
|
() => o.content,
|
|
2055
2057
|
async (Q) => {
|
|
2056
2058
|
if (Q) {
|
|
2057
|
-
if (!
|
|
2059
|
+
if (!E.value) {
|
|
2058
2060
|
n("error", "license未授权");
|
|
2059
2061
|
return;
|
|
2060
2062
|
}
|
|
@@ -2062,7 +2064,7 @@ const Dn = "/lxlicence", hn = {
|
|
|
2062
2064
|
console.error("请先初始化播放器"), n("error", "请先初始化播放器");
|
|
2063
2065
|
return;
|
|
2064
2066
|
}
|
|
2065
|
-
w.value = !1, C.value = 0,
|
|
2067
|
+
w.value = !1, C.value = 0, h.value = 0, i.value ? (c.value = "", N(Q)) : L();
|
|
2066
2068
|
}
|
|
2067
2069
|
},
|
|
2068
2070
|
{ immediate: !1 }
|
|
@@ -2074,7 +2076,7 @@ const Dn = "/lxlicence", hn = {
|
|
|
2074
2076
|
initAudioPlayer: y,
|
|
2075
2077
|
getWssConnectStatus: BA,
|
|
2076
2078
|
stopAudioPlay: sA
|
|
2077
|
-
}), (Q,
|
|
2079
|
+
}), (Q, m) => (Ge(), ve("div", Sn, [
|
|
2078
2080
|
IA(yA("video", {
|
|
2079
2081
|
id: "mouth_closed_media_player",
|
|
2080
2082
|
src: S.value,
|
|
@@ -2097,7 +2099,7 @@ const Dn = "/lxlicence", hn = {
|
|
|
2097
2099
|
])
|
|
2098
2100
|
]));
|
|
2099
2101
|
}
|
|
2100
|
-
}), AA = /* @__PURE__ */ Rn(Zn, [["__scopeId", "data-v-
|
|
2102
|
+
}), AA = /* @__PURE__ */ Rn(Zn, [["__scopeId", "data-v-731b0eda"]]), Re = "0.6.8", Se = () => {
|
|
2101
2103
|
Function(`
|
|
2102
2104
|
window.console && console.log('%c灵犀数字人直播组件 iss-library-digital-video %cV${Re}', 'color: #3164F6;font-weight: 500;font-size: 12px;', 'color: #999;');
|
|
2103
2105
|
`)();
|