zyjj-web-sdk 1.0.35 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{APlayer.min-CKCFeMRn.js → APlayer.min-CZBtOELz.js} +79 -147
- package/lib/{DPlayer.min-CRRie7Nq.js → DPlayer.min-BXMg11_u.js} +298 -524
- package/lib/ElementTypeAlert-DIwHRqol.js +9 -0
- package/lib/ElementTypeAudio-cJogWlWH.js +23 -0
- package/lib/ElementTypeImage-7ir4H1-l.js +9 -0
- package/lib/ElementTypeImageList-vziNxaaS.js +10 -0
- package/lib/ElementTypeInput-BRtz62-Y.js +9 -0
- package/lib/ElementTypeNumber-Cfd2x86j.js +9 -0
- package/lib/ElementTypeSelect-CR0uuJdt.js +9 -0
- package/lib/ElementTypeText-BSc-LLC8.js +2279 -0
- package/lib/ElementTypeTextArea-DCG45595.js +9 -0
- package/lib/ElementTypeUpload-nGLzfZ6G.js +64 -0
- package/lib/ElementTypeVideo-BMtgU--n.js +17 -0
- package/lib/common-DtnntE_W.js +301 -0
- package/lib/context-tmjHwBoF.js +49 -0
- package/lib/{index-BXo9_siX.js → index-CBI9A0_q.js} +50 -66
- package/lib/index-EsacoB5D.js +4178 -0
- package/lib/index.d.ts +0 -2
- package/lib/index.js +1 -1
- package/lib/index.umd.cjs +207 -276
- package/lib/types/tool-task.d.ts +1 -5
- package/package.json +3 -2
- package/lib/index-DeWBpA_Y.js +0 -57681
- package/lib/types/map.d.ts +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as So, c as Io } from "./index-EsacoB5D.js";
|
|
2
2
|
function Lo(pe, Ze) {
|
|
3
3
|
for (var J = 0; J < Ze.length; J++) {
|
|
4
4
|
const U = Ze[J];
|
|
@@ -4659,11 +4659,10 @@ button[aria-label][data-balloon-pos] {
|
|
|
4659
4659
|
}, 856: (u) => {
|
|
4660
4660
|
var x = [];
|
|
4661
4661
|
function f(E) {
|
|
4662
|
-
for (var p = -1, C = 0; C < x.length; C++)
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
}
|
|
4662
|
+
for (var p = -1, C = 0; C < x.length; C++) if (x[C].identifier === E) {
|
|
4663
|
+
p = C;
|
|
4664
|
+
break;
|
|
4665
|
+
}
|
|
4667
4666
|
return p;
|
|
4668
4667
|
}
|
|
4669
4668
|
function z(E, p) {
|
|
@@ -4671,8 +4670,7 @@ button[aria-label][data-balloon-pos] {
|
|
|
4671
4670
|
var L = E[y], O = p.base ? L[0] + p.base : L[0], S = C[O] || 0, D = "".concat(O, " ").concat(S);
|
|
4672
4671
|
C[O] = S + 1;
|
|
4673
4672
|
var j = f(D), Q = { css: L[1], media: L[2], sourceMap: L[3], supports: L[4], layer: L[5] };
|
|
4674
|
-
if (j !== -1)
|
|
4675
|
-
x[j].references++, x[j].updater(Q);
|
|
4673
|
+
if (j !== -1) x[j].references++, x[j].updater(Q);
|
|
4676
4674
|
else {
|
|
4677
4675
|
var G = I(Q, p);
|
|
4678
4676
|
p.byIndex = y, x.splice(y, 0, { identifier: D, updater: G, references: 1 });
|
|
@@ -4685,11 +4683,9 @@ button[aria-label][data-balloon-pos] {
|
|
|
4685
4683
|
var C = p.domAPI(p);
|
|
4686
4684
|
return C.update(E), function(B) {
|
|
4687
4685
|
if (B) {
|
|
4688
|
-
if (B.css === E.css && B.media === E.media && B.sourceMap === E.sourceMap && B.supports === E.supports && B.layer === E.layer)
|
|
4689
|
-
return;
|
|
4686
|
+
if (B.css === E.css && B.media === E.media && B.sourceMap === E.sourceMap && B.supports === E.supports && B.layer === E.layer) return;
|
|
4690
4687
|
C.update(E = B);
|
|
4691
|
-
} else
|
|
4692
|
-
C.remove();
|
|
4688
|
+
} else C.remove();
|
|
4693
4689
|
};
|
|
4694
4690
|
}
|
|
4695
4691
|
u.exports = function(E, p) {
|
|
@@ -4713,18 +4709,16 @@ button[aria-label][data-balloon-pos] {
|
|
|
4713
4709
|
var I = function(E) {
|
|
4714
4710
|
if (x[E] === void 0) {
|
|
4715
4711
|
var p = document.querySelector(E);
|
|
4716
|
-
if (window.HTMLIFrameElement && p instanceof window.HTMLIFrameElement)
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
}
|
|
4712
|
+
if (window.HTMLIFrameElement && p instanceof window.HTMLIFrameElement) try {
|
|
4713
|
+
p = p.contentDocument.head;
|
|
4714
|
+
} catch {
|
|
4715
|
+
p = null;
|
|
4716
|
+
}
|
|
4722
4717
|
x[E] = p;
|
|
4723
4718
|
}
|
|
4724
4719
|
return x[E];
|
|
4725
4720
|
}(f);
|
|
4726
|
-
if (!I)
|
|
4727
|
-
throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
|
|
4721
|
+
if (!I) throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
|
|
4728
4722
|
I.appendChild(z);
|
|
4729
4723
|
};
|
|
4730
4724
|
}, 278: (u) => {
|
|
@@ -4752,19 +4746,16 @@ button[aria-label][data-balloon-pos] {
|
|
|
4752
4746
|
})(f, x, z);
|
|
4753
4747
|
}, remove: function() {
|
|
4754
4748
|
(function(z) {
|
|
4755
|
-
if (z.parentNode === null)
|
|
4756
|
-
return !1;
|
|
4749
|
+
if (z.parentNode === null) return !1;
|
|
4757
4750
|
z.parentNode.removeChild(z);
|
|
4758
4751
|
})(f);
|
|
4759
4752
|
} };
|
|
4760
4753
|
};
|
|
4761
4754
|
}, 488: (u) => {
|
|
4762
4755
|
u.exports = function(x, f) {
|
|
4763
|
-
if (f.styleSheet)
|
|
4764
|
-
f.styleSheet.cssText = x;
|
|
4756
|
+
if (f.styleSheet) f.styleSheet.cssText = x;
|
|
4765
4757
|
else {
|
|
4766
|
-
for (; f.firstChild; )
|
|
4767
|
-
f.removeChild(f.firstChild);
|
|
4758
|
+
for (; f.firstChild; ) f.removeChild(f.firstChild);
|
|
4768
4759
|
f.appendChild(document.createTextNode(x));
|
|
4769
4760
|
}
|
|
4770
4761
|
};
|
|
@@ -4812,8 +4803,7 @@ button[aria-label][data-balloon-pos] {
|
|
|
4812
4803
|
I.$escape = function(C) {
|
|
4813
4804
|
return function(B) {
|
|
4814
4805
|
var y = "" + B, L = E.exec(y);
|
|
4815
|
-
if (!L)
|
|
4816
|
-
return B;
|
|
4806
|
+
if (!L) return B;
|
|
4817
4807
|
var O = "", S = void 0, D = void 0, j = void 0;
|
|
4818
4808
|
for (S = L.index, D = 0; S < y.length; S++) {
|
|
4819
4809
|
switch (y.charCodeAt(S)) {
|
|
@@ -4840,12 +4830,8 @@ button[aria-label][data-balloon-pos] {
|
|
|
4840
4830
|
return D !== S ? O + y.substring(D, S) : O;
|
|
4841
4831
|
}(p(C));
|
|
4842
4832
|
}, I.$each = function(C, B) {
|
|
4843
|
-
if (Array.isArray(C))
|
|
4844
|
-
|
|
4845
|
-
B(C[y], y);
|
|
4846
|
-
else
|
|
4847
|
-
for (var O in C)
|
|
4848
|
-
B(C[O], O);
|
|
4833
|
+
if (Array.isArray(C)) for (var y = 0, L = C.length; y < L; y++) B(C[y], y);
|
|
4834
|
+
else for (var O in C) B(C[O], O);
|
|
4849
4835
|
}, u.exports = I;
|
|
4850
4836
|
}, 471: (u, x, f) => {
|
|
4851
4837
|
u.exports = f(897);
|
|
@@ -4860,11 +4846,10 @@ button[aria-label][data-balloon-pos] {
|
|
|
4860
4846
|
}, f.i = function(z, I, E, p, C) {
|
|
4861
4847
|
typeof z == "string" && (z = [[null, z, void 0]]);
|
|
4862
4848
|
var B = {};
|
|
4863
|
-
if (E)
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
}
|
|
4849
|
+
if (E) for (var y = 0; y < this.length; y++) {
|
|
4850
|
+
var L = this[y][0];
|
|
4851
|
+
L != null && (B[L] = !0);
|
|
4852
|
+
}
|
|
4868
4853
|
for (var O = 0; O < z.length; O++) {
|
|
4869
4854
|
var S = [].concat(z[O]);
|
|
4870
4855
|
E && B[S[0]] || (C !== void 0 && (S[5] === void 0 || (S[1] = "@layer".concat(S[5].length > 0 ? " ".concat(S[5]) : "", " {").concat(S[1], "}")), S[5] = C), I && (S[2] && (S[1] = "@media ".concat(S[2], " {").concat(S[1], "}")), S[2] = I), p && (S[4] ? (S[1] = "@supports (".concat(S[4], ") {").concat(S[1], "}"), S[4] = p) : S[4] = "".concat(p)), f.push(S));
|
|
@@ -4878,8 +4863,7 @@ button[aria-label][data-balloon-pos] {
|
|
|
4878
4863
|
}, 415: (u) => {
|
|
4879
4864
|
u.exports = function(x) {
|
|
4880
4865
|
var f = x[1], z = x[3];
|
|
4881
|
-
if (!z)
|
|
4882
|
-
return f;
|
|
4866
|
+
if (!z) return f;
|
|
4883
4867
|
if (typeof btoa == "function") {
|
|
4884
4868
|
var I = btoa(unescape(encodeURIComponent(JSON.stringify(z)))), E = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(I), p = "/*# ".concat(E, " */");
|
|
4885
4869
|
return [f].concat([p]).join(`
|
|
@@ -4902,8 +4886,7 @@ button[aria-label][data-balloon-pos] {
|
|
|
4902
4886
|
} }, U = {};
|
|
4903
4887
|
function v(u) {
|
|
4904
4888
|
var x = U[u];
|
|
4905
|
-
if (x !== void 0)
|
|
4906
|
-
return x.exports;
|
|
4889
|
+
if (x !== void 0) return x.exports;
|
|
4907
4890
|
var f = U[u] = { id: u, exports: {} };
|
|
4908
4891
|
return J[u](f, f.exports, v), f.exports;
|
|
4909
4892
|
}
|
|
@@ -4911,16 +4894,13 @@ button[aria-label][data-balloon-pos] {
|
|
|
4911
4894
|
var x = u && u.__esModule ? () => u.default : () => u;
|
|
4912
4895
|
return v.d(x, { a: x }), x;
|
|
4913
4896
|
}, v.d = (u, x) => {
|
|
4914
|
-
for (var f in x)
|
|
4915
|
-
v.o(x, f) && !v.o(u, f) && Object.defineProperty(u, f, { enumerable: !0, get: x[f] });
|
|
4897
|
+
for (var f in x) v.o(x, f) && !v.o(u, f) && Object.defineProperty(u, f, { enumerable: !0, get: x[f] });
|
|
4916
4898
|
}, v.g = function() {
|
|
4917
|
-
if (typeof globalThis == "object")
|
|
4918
|
-
return globalThis;
|
|
4899
|
+
if (typeof globalThis == "object") return globalThis;
|
|
4919
4900
|
try {
|
|
4920
4901
|
return this || new Function("return this")();
|
|
4921
4902
|
} catch {
|
|
4922
|
-
if (typeof window == "object")
|
|
4923
|
-
return window;
|
|
4903
|
+
if (typeof window == "object") return window;
|
|
4924
4904
|
}
|
|
4925
4905
|
}(), v.o = (u, x) => Object.prototype.hasOwnProperty.call(u, x), v.b = document.baseURI || self.location.href, v.nc = void 0;
|
|
4926
4906
|
var ne = {};
|
|
@@ -4953,15 +4933,12 @@ button[aria-label][data-balloon-pos] {
|
|
|
4953
4933
|
function At() {
|
|
4954
4934
|
}
|
|
4955
4935
|
function Y(n) {
|
|
4956
|
-
if (!(this instanceof Y))
|
|
4957
|
-
|
|
4958
|
-
if (typeof n != "function")
|
|
4959
|
-
throw new TypeError("not a function");
|
|
4936
|
+
if (!(this instanceof Y)) throw new TypeError("Promises must be constructed via new");
|
|
4937
|
+
if (typeof n != "function") throw new TypeError("not a function");
|
|
4960
4938
|
this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [], bn(n, this);
|
|
4961
4939
|
}
|
|
4962
4940
|
function fn(n, t) {
|
|
4963
|
-
for (; n._state === 3; )
|
|
4964
|
-
n = n._value;
|
|
4941
|
+
for (; n._state === 3; ) n = n._value;
|
|
4965
4942
|
n._state !== 0 ? (n._handled = !0, Y._immediateFn(function() {
|
|
4966
4943
|
var r = n._state === 1 ? t.onFulfilled : t.onRejected;
|
|
4967
4944
|
if (r !== null) {
|
|
@@ -4972,22 +4949,18 @@ button[aria-label][data-balloon-pos] {
|
|
|
4972
4949
|
return void de(t.promise, a);
|
|
4973
4950
|
}
|
|
4974
4951
|
Ve(t.promise, e);
|
|
4975
|
-
} else
|
|
4976
|
-
(n._state === 1 ? Ve : de)(t.promise, n._value);
|
|
4952
|
+
} else (n._state === 1 ? Ve : de)(t.promise, n._value);
|
|
4977
4953
|
})) : n._deferreds.push(t);
|
|
4978
4954
|
}
|
|
4979
4955
|
function Ve(n, t) {
|
|
4980
4956
|
try {
|
|
4981
|
-
if (t === n)
|
|
4982
|
-
throw new TypeError("A promise cannot be resolved with itself.");
|
|
4957
|
+
if (t === n) throw new TypeError("A promise cannot be resolved with itself.");
|
|
4983
4958
|
if (t && (G(t) === "object" || typeof t == "function")) {
|
|
4984
4959
|
var r = t.then;
|
|
4985
|
-
if (t instanceof Y)
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
e.apply(a, arguments);
|
|
4990
|
-
}), n);
|
|
4960
|
+
if (t instanceof Y) return n._state = 3, n._value = t, void Xe(n);
|
|
4961
|
+
if (typeof r == "function") return void bn((e = r, a = t, function() {
|
|
4962
|
+
e.apply(a, arguments);
|
|
4963
|
+
}), n);
|
|
4991
4964
|
}
|
|
4992
4965
|
n._state = 1, n._value = t, Xe(n);
|
|
4993
4966
|
} catch (o) {
|
|
@@ -5002,8 +4975,7 @@ button[aria-label][data-balloon-pos] {
|
|
|
5002
4975
|
n._state === 2 && n._deferreds.length === 0 && Y._immediateFn(function() {
|
|
5003
4976
|
n._handled || Y._unhandledRejectionFn(n._value);
|
|
5004
4977
|
});
|
|
5005
|
-
for (var t = 0, r = n._deferreds.length; t < r; t++)
|
|
5006
|
-
fn(n, n._deferreds[t]);
|
|
4978
|
+
for (var t = 0, r = n._deferreds.length; t < r; t++) fn(n, n._deferreds[t]);
|
|
5007
4979
|
n._deferreds = null;
|
|
5008
4980
|
}
|
|
5009
4981
|
function ut(n, t, r) {
|
|
@@ -5018,8 +4990,7 @@ button[aria-label][data-balloon-pos] {
|
|
|
5018
4990
|
r || (r = !0, de(t, e));
|
|
5019
4991
|
});
|
|
5020
4992
|
} catch (e) {
|
|
5021
|
-
if (r)
|
|
5022
|
-
return;
|
|
4993
|
+
if (r) return;
|
|
5023
4994
|
r = !0, de(t, e);
|
|
5024
4995
|
}
|
|
5025
4996
|
}
|
|
@@ -5041,68 +5012,57 @@ button[aria-label][data-balloon-pos] {
|
|
|
5041
5012
|
});
|
|
5042
5013
|
}, Y.all = function(n) {
|
|
5043
5014
|
return new Y(function(t, r) {
|
|
5044
|
-
if (!hn(n))
|
|
5045
|
-
return r(new TypeError("Promise.all accepts an array"));
|
|
5015
|
+
if (!hn(n)) return r(new TypeError("Promise.all accepts an array"));
|
|
5046
5016
|
var e = Array.prototype.slice.call(n);
|
|
5047
|
-
if (e.length === 0)
|
|
5048
|
-
return t([]);
|
|
5017
|
+
if (e.length === 0) return t([]);
|
|
5049
5018
|
var a = e.length;
|
|
5050
5019
|
function o(l, s) {
|
|
5051
5020
|
try {
|
|
5052
5021
|
if (s && (G(s) === "object" || typeof s == "function")) {
|
|
5053
5022
|
var d = s.then;
|
|
5054
|
-
if (typeof d == "function")
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
}, r);
|
|
5023
|
+
if (typeof d == "function") return void d.call(s, function(c) {
|
|
5024
|
+
o(l, c);
|
|
5025
|
+
}, r);
|
|
5058
5026
|
}
|
|
5059
5027
|
e[l] = s, --a == 0 && t(e);
|
|
5060
5028
|
} catch (c) {
|
|
5061
5029
|
r(c);
|
|
5062
5030
|
}
|
|
5063
5031
|
}
|
|
5064
|
-
for (var i = 0; i < e.length; i++)
|
|
5065
|
-
o(i, e[i]);
|
|
5032
|
+
for (var i = 0; i < e.length; i++) o(i, e[i]);
|
|
5066
5033
|
});
|
|
5067
5034
|
}, Y.any = function(n) {
|
|
5068
5035
|
var t = this;
|
|
5069
5036
|
return new t(function(r, e) {
|
|
5070
|
-
if (!n || n.length === void 0)
|
|
5071
|
-
return e(new TypeError("Promise.any accepts an array"));
|
|
5037
|
+
if (!n || n.length === void 0) return e(new TypeError("Promise.any accepts an array"));
|
|
5072
5038
|
var a = Array.prototype.slice.call(n);
|
|
5073
|
-
if (a.length === 0)
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
e(l);
|
|
5082
|
-
}
|
|
5039
|
+
if (a.length === 0) return e();
|
|
5040
|
+
for (var o = [], i = 0; i < a.length; i++) try {
|
|
5041
|
+
t.resolve(a[i]).then(r).catch(function(l) {
|
|
5042
|
+
o.push(l), o.length === a.length && e(new Q(o, "All promises were rejected"));
|
|
5043
|
+
});
|
|
5044
|
+
} catch (l) {
|
|
5045
|
+
e(l);
|
|
5046
|
+
}
|
|
5083
5047
|
});
|
|
5084
5048
|
}, Y.allSettled = function(n) {
|
|
5085
5049
|
return new this(function(t, r) {
|
|
5086
|
-
if (!n || n.length === void 0)
|
|
5087
|
-
return r(new TypeError(j(n) + " " + n + " is not iterable(cannot read property Symbol(Symbol.iterator))"));
|
|
5050
|
+
if (!n || n.length === void 0) return r(new TypeError(j(n) + " " + n + " is not iterable(cannot read property Symbol(Symbol.iterator))"));
|
|
5088
5051
|
var e = Array.prototype.slice.call(n);
|
|
5089
|
-
if (e.length === 0)
|
|
5090
|
-
return t([]);
|
|
5052
|
+
if (e.length === 0) return t([]);
|
|
5091
5053
|
var a = e.length;
|
|
5092
5054
|
function o(l, s) {
|
|
5093
5055
|
if (s && (j(s) === "object" || typeof s == "function")) {
|
|
5094
5056
|
var d = s.then;
|
|
5095
|
-
if (typeof d == "function")
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
},
|
|
5099
|
-
|
|
5100
|
-
});
|
|
5057
|
+
if (typeof d == "function") return void d.call(s, function(c) {
|
|
5058
|
+
o(l, c);
|
|
5059
|
+
}, function(c) {
|
|
5060
|
+
e[l] = { status: "rejected", reason: c }, --a == 0 && t(e);
|
|
5061
|
+
});
|
|
5101
5062
|
}
|
|
5102
5063
|
e[l] = { status: "fulfilled", value: s }, --a == 0 && t(e);
|
|
5103
5064
|
}
|
|
5104
|
-
for (var i = 0; i < e.length; i++)
|
|
5105
|
-
o(i, e[i]);
|
|
5065
|
+
for (var i = 0; i < e.length; i++) o(i, e[i]);
|
|
5106
5066
|
});
|
|
5107
5067
|
}, Y.resolve = function(n) {
|
|
5108
5068
|
return n && G(n) === "object" && n.constructor === Y ? n : new Y(function(t) {
|
|
@@ -5114,10 +5074,8 @@ button[aria-label][data-balloon-pos] {
|
|
|
5114
5074
|
});
|
|
5115
5075
|
}, Y.race = function(n) {
|
|
5116
5076
|
return new Y(function(t, r) {
|
|
5117
|
-
if (!hn(n))
|
|
5118
|
-
|
|
5119
|
-
for (var e = 0, a = n.length; e < a; e++)
|
|
5120
|
-
Y.resolve(n[e]).then(t, r);
|
|
5077
|
+
if (!hn(n)) return r(new TypeError("Promise.race accepts an array"));
|
|
5078
|
+
for (var e = 0, a = n.length; e < a; e++) Y.resolve(n[e]).then(t, r);
|
|
5121
5079
|
});
|
|
5122
5080
|
}, Y._immediateFn = typeof setImmediate == "function" && function(n) {
|
|
5123
5081
|
setImmediate(n);
|
|
@@ -5129,20 +5087,15 @@ button[aria-label][data-balloon-pos] {
|
|
|
5129
5087
|
const yt = Y;
|
|
5130
5088
|
var Re = /mobile/i.test(window.navigator.userAgent);
|
|
5131
5089
|
const T = { secondToTime: function(n) {
|
|
5132
|
-
if ((n = n || 0) === 0 || n === 1 / 0 || n.toString() === "NaN")
|
|
5133
|
-
return "00:00";
|
|
5090
|
+
if ((n = n || 0) === 0 || n === 1 / 0 || n.toString() === "NaN") return "00:00";
|
|
5134
5091
|
var t = Math.floor(n / 3600), r = Math.floor((n - 3600 * t) / 60), e = Math.floor(n - 3600 * t - 60 * r);
|
|
5135
5092
|
return (t > 0 ? [t, r, e] : [r, e]).map(function(a) {
|
|
5136
5093
|
return a < 10 ? "0" + a : "" + a;
|
|
5137
5094
|
}).join(":");
|
|
5138
5095
|
}, getElementViewLeft: function(n) {
|
|
5139
5096
|
var t = n.offsetLeft, r = n.offsetParent, e = document.body.scrollLeft + document.documentElement.scrollLeft;
|
|
5140
|
-
if (document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement)
|
|
5141
|
-
|
|
5142
|
-
t += r.offsetLeft, r = r.offsetParent;
|
|
5143
|
-
else
|
|
5144
|
-
for (; r !== null; )
|
|
5145
|
-
t += r.offsetLeft, r = r.offsetParent;
|
|
5097
|
+
if (document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement) for (; r !== null && r !== n; ) t += r.offsetLeft, r = r.offsetParent;
|
|
5098
|
+
else for (; r !== null; ) t += r.offsetLeft, r = r.offsetParent;
|
|
5146
5099
|
return t - e;
|
|
5147
5100
|
}, getBoundingClientRectViewLeft: function(n) {
|
|
5148
5101
|
var t = window.scrollY || window.pageYOffset || document.body.scrollTop + (document.documentElement && document.documentElement.scrollTop || 0);
|
|
@@ -5205,28 +5158,21 @@ button[aria-label][data-balloon-pos] {
|
|
|
5205
5158
|
}, te = Array.isArray, Ae = Ye("undefined"), xn = _("ArrayBuffer"), mt = Ye("string"), $ = Ye("function"), En = Ye("number"), en = function(n) {
|
|
5206
5159
|
return n !== null && ce(n) === "object";
|
|
5207
5160
|
}, Me = function(n) {
|
|
5208
|
-
if ($e(n) !== "object")
|
|
5209
|
-
return !1;
|
|
5161
|
+
if ($e(n) !== "object") return !1;
|
|
5210
5162
|
var t = Ge(n);
|
|
5211
5163
|
return !(t !== null && t !== Object.prototype && Object.getPrototypeOf(t) !== null || Symbol.toStringTag in n || Symbol.iterator in n);
|
|
5212
5164
|
}, ht = _("Date"), ft = _("File"), bt = _("Blob"), gt = _("FileList"), vt = _("URLSearchParams");
|
|
5213
5165
|
function ue(n, t) {
|
|
5214
5166
|
var r, e, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = a.allOwnKeys, i = o !== void 0 && o;
|
|
5215
|
-
if (n != null)
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
var l, s = i ? Object.getOwnPropertyNames(n) : Object.keys(n), d = s.length;
|
|
5221
|
-
for (r = 0; r < d; r++)
|
|
5222
|
-
l = s[r], t.call(null, n[l], l, n);
|
|
5223
|
-
}
|
|
5167
|
+
if (n != null) if (ce(n) !== "object" && (n = [n]), te(n)) for (r = 0, e = n.length; r < e; r++) t.call(null, n[r], r, n);
|
|
5168
|
+
else {
|
|
5169
|
+
var l, s = i ? Object.getOwnPropertyNames(n) : Object.keys(n), d = s.length;
|
|
5170
|
+
for (r = 0; r < d; r++) l = s[r], t.call(null, n[l], l, n);
|
|
5171
|
+
}
|
|
5224
5172
|
}
|
|
5225
5173
|
function wn(n, t) {
|
|
5226
5174
|
t = t.toLowerCase();
|
|
5227
|
-
for (var r, e = Object.keys(n), a = e.length; a-- > 0; )
|
|
5228
|
-
if (t === (r = e[a]).toLowerCase())
|
|
5229
|
-
return r;
|
|
5175
|
+
for (var r, e = Object.keys(n), a = e.length; a-- > 0; ) if (t === (r = e[a]).toLowerCase()) return r;
|
|
5230
5176
|
return null;
|
|
5231
5177
|
}
|
|
5232
5178
|
var nn, Cn, kn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Io, Bn = function(n) {
|
|
@@ -5256,8 +5202,7 @@ button[aria-label][data-balloon-pos] {
|
|
|
5256
5202
|
for (var t = Bn(this) && this || {}, r = t.caseless, e = {}, a = function(l, s) {
|
|
5257
5203
|
var d = r && wn(e, s) || s;
|
|
5258
5204
|
Me(e[d]) && Me(l) ? e[d] = n(e[d], l) : Me(l) ? e[d] = n({}, l) : te(l) ? e[d] = l.slice() : e[d] = l;
|
|
5259
|
-
}, o = 0, i = arguments.length; o < i; o++)
|
|
5260
|
-
arguments[o] && ue(arguments[o], a);
|
|
5205
|
+
}, o = 0, i = arguments.length; o < i; o++) arguments[o] && ue(arguments[o], a);
|
|
5261
5206
|
return e;
|
|
5262
5207
|
}, extend: function(n, t, r) {
|
|
5263
5208
|
var e = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, a = e.allOwnKeys;
|
|
@@ -5272,11 +5217,9 @@ button[aria-label][data-balloon-pos] {
|
|
|
5272
5217
|
n.prototype = Object.create(t.prototype, e), n.prototype.constructor = n, Object.defineProperty(n, "super", { value: t.prototype }), r && Object.assign(n.prototype, r);
|
|
5273
5218
|
}, toFlatObject: function(n, t, r, e) {
|
|
5274
5219
|
var a, o, i, l = {};
|
|
5275
|
-
if (t = t || {}, n == null)
|
|
5276
|
-
return t;
|
|
5220
|
+
if (t = t || {}, n == null) return t;
|
|
5277
5221
|
do {
|
|
5278
|
-
for (o = (a = Object.getOwnPropertyNames(n)).length; o-- > 0; )
|
|
5279
|
-
i = a[o], e && !e(i, n, t) || l[i] || (t[i] = n[i], l[i] = !0);
|
|
5222
|
+
for (o = (a = Object.getOwnPropertyNames(n)).length; o-- > 0; ) i = a[o], e && !e(i, n, t) || l[i] || (t[i] = n[i], l[i] = !0);
|
|
5280
5223
|
n = r !== !1 && Ge(n);
|
|
5281
5224
|
} while (n && (!r || r(n, t)) && n !== Object.prototype);
|
|
5282
5225
|
return t;
|
|
@@ -5285,15 +5228,11 @@ button[aria-label][data-balloon-pos] {
|
|
|
5285
5228
|
var e = n.indexOf(t, r);
|
|
5286
5229
|
return e !== -1 && e === r;
|
|
5287
5230
|
}, toArray: function(n) {
|
|
5288
|
-
if (!n)
|
|
5289
|
-
|
|
5290
|
-
if (te(n))
|
|
5291
|
-
return n;
|
|
5231
|
+
if (!n) return null;
|
|
5232
|
+
if (te(n)) return n;
|
|
5292
5233
|
var t = n.length;
|
|
5293
|
-
if (!En(t))
|
|
5294
|
-
|
|
5295
|
-
for (var r = new Array(t); t-- > 0; )
|
|
5296
|
-
r[t] = n[t];
|
|
5234
|
+
if (!En(t)) return null;
|
|
5235
|
+
for (var r = new Array(t); t-- > 0; ) r[t] = n[t];
|
|
5297
5236
|
return r;
|
|
5298
5237
|
}, forEachEntry: function(n, t) {
|
|
5299
5238
|
for (var r, e = (n && n[Symbol.iterator]).call(n); (r = e.next()) && !r.done; ) {
|
|
@@ -5301,13 +5240,11 @@ button[aria-label][data-balloon-pos] {
|
|
|
5301
5240
|
t.call(n, a[0], a[1]);
|
|
5302
5241
|
}
|
|
5303
5242
|
}, matchAll: function(n, t) {
|
|
5304
|
-
for (var r, e = []; (r = n.exec(t)) !== null; )
|
|
5305
|
-
e.push(r);
|
|
5243
|
+
for (var r, e = []; (r = n.exec(t)) !== null; ) e.push(r);
|
|
5306
5244
|
return e;
|
|
5307
5245
|
}, isHTMLForm: Et, hasOwnProperty: Sn, hasOwnProp: Sn, reduceDescriptors: In, freezeMethods: function(n) {
|
|
5308
5246
|
In(n, function(t, r) {
|
|
5309
|
-
if ($(n) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
5310
|
-
return !1;
|
|
5247
|
+
if ($(n) && ["arguments", "caller", "callee"].indexOf(r) !== -1) return !1;
|
|
5311
5248
|
var e = n[r];
|
|
5312
5249
|
$(e) && (t.enumerable = !1, "writable" in t ? t.writable = !1 : t.set || (t.set = function() {
|
|
5313
5250
|
throw Error("Can not rewrite read-only method '" + r + "'");
|
|
@@ -5331,8 +5268,7 @@ button[aria-label][data-balloon-pos] {
|
|
|
5331
5268
|
var t = new Array(10);
|
|
5332
5269
|
return function r(e, a) {
|
|
5333
5270
|
if (en(e)) {
|
|
5334
|
-
if (t.indexOf(e) >= 0)
|
|
5335
|
-
return;
|
|
5271
|
+
if (t.indexOf(e) >= 0) return;
|
|
5336
5272
|
if (!("toJSON" in e)) {
|
|
5337
5273
|
t[a] = e;
|
|
5338
5274
|
var o = te(e) ? [] : {};
|
|
@@ -5385,44 +5321,35 @@ button[aria-label][data-balloon-pos] {
|
|
|
5385
5321
|
return /^is[A-Z]/.test(n);
|
|
5386
5322
|
});
|
|
5387
5323
|
const Fe = function(n, t, r) {
|
|
5388
|
-
if (!A.isObject(n))
|
|
5389
|
-
throw new TypeError("target must be an object");
|
|
5324
|
+
if (!A.isObject(n)) throw new TypeError("target must be an object");
|
|
5390
5325
|
t = t || new (Ct || FormData)();
|
|
5391
5326
|
var e, a = (r = A.toFlatObject(r, { metaTokens: !0, dots: !1, indexes: !1 }, !1, function(w, g) {
|
|
5392
5327
|
return !A.isUndefined(g[w]);
|
|
5393
5328
|
})).metaTokens, o = r.visitor || c, i = r.dots, l = r.indexes, s = (r.Blob || typeof Blob < "u" && Blob) && (e = t) && A.isFunction(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator];
|
|
5394
|
-
if (!A.isFunction(o))
|
|
5395
|
-
throw new TypeError("visitor must be a function");
|
|
5329
|
+
if (!A.isFunction(o)) throw new TypeError("visitor must be a function");
|
|
5396
5330
|
function d(w) {
|
|
5397
|
-
if (w === null)
|
|
5398
|
-
|
|
5399
|
-
if (A.
|
|
5400
|
-
return w.toISOString();
|
|
5401
|
-
if (!s && A.isBlob(w))
|
|
5402
|
-
throw new P("Blob is not supported. Use a Buffer instead.");
|
|
5331
|
+
if (w === null) return "";
|
|
5332
|
+
if (A.isDate(w)) return w.toISOString();
|
|
5333
|
+
if (!s && A.isBlob(w)) throw new P("Blob is not supported. Use a Buffer instead.");
|
|
5403
5334
|
return A.isArrayBuffer(w) || A.isTypedArray(w) ? s && typeof Blob == "function" ? new Blob([w]) : Buffer.from(w) : w;
|
|
5404
5335
|
}
|
|
5405
5336
|
function c(w, g, h) {
|
|
5406
5337
|
var k = w;
|
|
5407
5338
|
if (w && !h && tn(w) === "object") {
|
|
5408
|
-
if (A.endsWith(g, "{}"))
|
|
5409
|
-
g = a ? g : g.slice(0, -2), w = JSON.stringify(w);
|
|
5339
|
+
if (A.endsWith(g, "{}")) g = a ? g : g.slice(0, -2), w = JSON.stringify(w);
|
|
5410
5340
|
else if (A.isArray(w) && function(q) {
|
|
5411
5341
|
return A.isArray(q) && !q.some(an);
|
|
5412
|
-
}(w) || A.isFileList(w) || A.endsWith(g, "[]") && (k = A.toArray(w)))
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
}), !1;
|
|
5342
|
+
}(w) || A.isFileList(w) || A.endsWith(g, "[]") && (k = A.toArray(w))) return g = Tn(g), k.forEach(function(q, W) {
|
|
5343
|
+
!A.isUndefined(q) && q !== null && t.append(l === !0 ? qn([g], W, i) : l === null ? g : g + "[]", d(q));
|
|
5344
|
+
}), !1;
|
|
5416
5345
|
}
|
|
5417
5346
|
return !!an(w) || (t.append(qn(h, g, i), d(w)), !1);
|
|
5418
5347
|
}
|
|
5419
5348
|
var m = [], b = Object.assign(kt, { defaultVisitor: c, convertValue: d, isVisitable: an });
|
|
5420
|
-
if (!A.isObject(n))
|
|
5421
|
-
throw new TypeError("data must be an object");
|
|
5349
|
+
if (!A.isObject(n)) throw new TypeError("data must be an object");
|
|
5422
5350
|
return function w(g, h) {
|
|
5423
5351
|
if (!A.isUndefined(g)) {
|
|
5424
|
-
if (m.indexOf(g) !== -1)
|
|
5425
|
-
throw Error("Circular reference detected in " + h.join("."));
|
|
5352
|
+
if (m.indexOf(g) !== -1) throw Error("Circular reference detected in " + h.join("."));
|
|
5426
5353
|
m.push(g), A.forEach(g, function(k, q) {
|
|
5427
5354
|
(!(A.isUndefined(k) || k === null) && o.call(t, k, A.isString(q) ? q.trim() : q, h, b)) === !0 && w(k, h ? h.concat(q) : [q]);
|
|
5428
5355
|
}), m.pop();
|
|
@@ -5454,8 +5381,7 @@ button[aria-label][data-balloon-pos] {
|
|
|
5454
5381
|
return encodeURIComponent(n).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
5455
5382
|
}
|
|
5456
5383
|
function Rn(n, t, r) {
|
|
5457
|
-
if (!t)
|
|
5458
|
-
return n;
|
|
5384
|
+
if (!t) return n;
|
|
5459
5385
|
var e, a = r && r.encode || Bt, o = r && r.serialize;
|
|
5460
5386
|
if (e = o ? o(t, r) : A.isURLSearchParams(t) ? t.toString() : new Pn(t, r).toString(a)) {
|
|
5461
5387
|
var i = n.indexOf("#");
|
|
@@ -5474,13 +5400,11 @@ button[aria-label][data-balloon-pos] {
|
|
|
5474
5400
|
for (var r = 0; r < t.length; r++) {
|
|
5475
5401
|
var e = t[r];
|
|
5476
5402
|
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, (a = function(o, i) {
|
|
5477
|
-
if (ye(o) !== "object" || o === null)
|
|
5478
|
-
return o;
|
|
5403
|
+
if (ye(o) !== "object" || o === null) return o;
|
|
5479
5404
|
var l = o[Symbol.toPrimitive];
|
|
5480
5405
|
if (l !== void 0) {
|
|
5481
5406
|
var s = l.call(o, "string");
|
|
5482
|
-
if (ye(s) !== "object")
|
|
5483
|
-
return s;
|
|
5407
|
+
if (ye(s) !== "object") return s;
|
|
5484
5408
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
5485
5409
|
}
|
|
5486
5410
|
return String(o);
|
|
@@ -5491,8 +5415,7 @@ button[aria-label][data-balloon-pos] {
|
|
|
5491
5415
|
var It = function() {
|
|
5492
5416
|
function n() {
|
|
5493
5417
|
(function(e, a) {
|
|
5494
|
-
if (!(e instanceof a))
|
|
5495
|
-
throw new TypeError("Cannot call a class as a function");
|
|
5418
|
+
if (!(e instanceof a)) throw new TypeError("Cannot call a class as a function");
|
|
5496
5419
|
})(this, n), this.handlers = [];
|
|
5497
5420
|
}
|
|
5498
5421
|
var t, r;
|
|
@@ -5515,8 +5438,7 @@ button[aria-label][data-balloon-pos] {
|
|
|
5515
5438
|
var l = e[i++], s = Number.isFinite(+l), d = i >= e.length;
|
|
5516
5439
|
return l = !l && A.isArray(o) ? o.length : l, d ? (A.hasOwnProp(o, l) ? o[l] = [o[l], a] : o[l] = a, !s) : (o[l] && A.isObject(o[l]) || (o[l] = []), t(e, a, o[l], i) && A.isArray(o[l]) && (o[l] = function(c) {
|
|
5517
5440
|
var m, b, w = {}, g = Object.keys(c), h = g.length;
|
|
5518
|
-
for (m = 0; m < h; m++)
|
|
5519
|
-
w[b = g[m]] = c[b];
|
|
5441
|
+
for (m = 0; m < h; m++) w[b = g[m]] = c[b];
|
|
5520
5442
|
return w;
|
|
5521
5443
|
}(o[l])), !s);
|
|
5522
5444
|
}
|
|
@@ -5534,34 +5456,27 @@ button[aria-label][data-balloon-pos] {
|
|
|
5534
5456
|
};
|
|
5535
5457
|
var Ot = { "Content-Type": void 0 }, We = { transitional: Mn, adapter: ["xhr", "http"], transformRequest: [function(n, t) {
|
|
5536
5458
|
var r, e = t.getContentType() || "", a = e.indexOf("application/json") > -1, o = A.isObject(n);
|
|
5537
|
-
if (o && A.isHTMLForm(n) && (n = new FormData(n)), A.isFormData(n))
|
|
5538
|
-
|
|
5539
|
-
if (A.
|
|
5540
|
-
|
|
5541
|
-
if (A.isArrayBufferView(n))
|
|
5542
|
-
return n.buffer;
|
|
5543
|
-
if (A.isURLSearchParams(n))
|
|
5544
|
-
return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), n.toString();
|
|
5459
|
+
if (o && A.isHTMLForm(n) && (n = new FormData(n)), A.isFormData(n)) return a && a ? JSON.stringify(Fn(n)) : n;
|
|
5460
|
+
if (A.isArrayBuffer(n) || A.isBuffer(n) || A.isStream(n) || A.isFile(n) || A.isBlob(n)) return n;
|
|
5461
|
+
if (A.isArrayBufferView(n)) return n.buffer;
|
|
5462
|
+
if (A.isURLSearchParams(n)) return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), n.toString();
|
|
5545
5463
|
if (o) {
|
|
5546
|
-
if (e.indexOf("application/x-www-form-urlencoded") > -1)
|
|
5547
|
-
return
|
|
5548
|
-
return
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
}(n, this.formSerializer).toString();
|
|
5464
|
+
if (e.indexOf("application/x-www-form-urlencoded") > -1) return function(l, s) {
|
|
5465
|
+
return Fe(l, new H.classes.URLSearchParams(), Object.assign({ visitor: function(d, c, m, b) {
|
|
5466
|
+
return H.isNode && A.isBuffer(d) ? (this.append(c, d.toString("base64")), !1) : b.defaultVisitor.apply(this, arguments);
|
|
5467
|
+
} }, s));
|
|
5468
|
+
}(n, this.formSerializer).toString();
|
|
5552
5469
|
if ((r = A.isFileList(n)) || e.indexOf("multipart/form-data") > -1) {
|
|
5553
5470
|
var i = this.env && this.env.FormData;
|
|
5554
5471
|
return Fe(r ? { "files[]": n } : n, i && new i(), this.formSerializer);
|
|
5555
5472
|
}
|
|
5556
5473
|
}
|
|
5557
5474
|
return o || a ? (t.setContentType("application/json", !1), function(l, s, d) {
|
|
5558
|
-
if (A.isString(l))
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
throw c;
|
|
5564
|
-
}
|
|
5475
|
+
if (A.isString(l)) try {
|
|
5476
|
+
return (0, JSON.parse)(l), A.trim(l);
|
|
5477
|
+
} catch (c) {
|
|
5478
|
+
if (c.name !== "SyntaxError") throw c;
|
|
5479
|
+
}
|
|
5565
5480
|
return (0, JSON.stringify)(l);
|
|
5566
5481
|
}(n)) : n;
|
|
5567
5482
|
}], transformResponse: [function(n) {
|
|
@@ -5595,21 +5510,18 @@ button[aria-label][data-balloon-pos] {
|
|
|
5595
5510
|
}
|
|
5596
5511
|
function Wn(n, t) {
|
|
5597
5512
|
(t == null || t > n.length) && (t = n.length);
|
|
5598
|
-
for (var r = 0, e = new Array(t); r < t; r++)
|
|
5599
|
-
e[r] = n[r];
|
|
5513
|
+
for (var r = 0, e = new Array(t); r < t; r++) e[r] = n[r];
|
|
5600
5514
|
return e;
|
|
5601
5515
|
}
|
|
5602
5516
|
function Nn(n, t) {
|
|
5603
5517
|
for (var r = 0; r < t.length; r++) {
|
|
5604
5518
|
var e = t[r];
|
|
5605
5519
|
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, (a = function(o, i) {
|
|
5606
|
-
if (me(o) !== "object" || o === null)
|
|
5607
|
-
return o;
|
|
5520
|
+
if (me(o) !== "object" || o === null) return o;
|
|
5608
5521
|
var l = o[Symbol.toPrimitive];
|
|
5609
5522
|
if (l !== void 0) {
|
|
5610
5523
|
var s = l.call(o, "string");
|
|
5611
|
-
if (me(s) !== "object")
|
|
5612
|
-
return s;
|
|
5524
|
+
if (me(s) !== "object") return s;
|
|
5613
5525
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
5614
5526
|
}
|
|
5615
5527
|
return String(o);
|
|
@@ -5630,8 +5542,7 @@ button[aria-label][data-balloon-pos] {
|
|
|
5630
5542
|
var Ue = function(n, t) {
|
|
5631
5543
|
function r(i) {
|
|
5632
5544
|
(function(l, s) {
|
|
5633
|
-
if (!(l instanceof s))
|
|
5634
|
-
throw new TypeError("Cannot call a class as a function");
|
|
5545
|
+
if (!(l instanceof s)) throw new TypeError("Cannot call a class as a function");
|
|
5635
5546
|
})(this, r), i && this.set(i);
|
|
5636
5547
|
}
|
|
5637
5548
|
var e, a, o;
|
|
@@ -5639,8 +5550,7 @@ button[aria-label][data-balloon-pos] {
|
|
|
5639
5550
|
var d = this;
|
|
5640
5551
|
function c(q, W, M) {
|
|
5641
5552
|
var R = he(W);
|
|
5642
|
-
if (!R)
|
|
5643
|
-
throw new Error("header name must be a non-empty string");
|
|
5553
|
+
if (!R) throw new Error("header name must be a non-empty string");
|
|
5644
5554
|
var X = A.findKey(d, R);
|
|
5645
5555
|
(!X || d[X] === void 0 || M === !0 || M === void 0 && d[X] !== !1) && (d[X || W] = Ne(q));
|
|
5646
5556
|
}
|
|
@@ -5658,18 +5568,13 @@ button[aria-label][data-balloon-pos] {
|
|
|
5658
5568
|
var s = A.findKey(this, i);
|
|
5659
5569
|
if (s) {
|
|
5660
5570
|
var d = this[s];
|
|
5661
|
-
if (!l)
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
return
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
}(d);
|
|
5669
|
-
if (A.isFunction(l))
|
|
5670
|
-
return l.call(this, d, s);
|
|
5671
|
-
if (A.isRegExp(l))
|
|
5672
|
-
return l.exec(d);
|
|
5571
|
+
if (!l) return d;
|
|
5572
|
+
if (l === !0) return function(c) {
|
|
5573
|
+
for (var m, b = /* @__PURE__ */ Object.create(null), w = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; m = w.exec(c); ) b[m[1]] = m[2];
|
|
5574
|
+
return b;
|
|
5575
|
+
}(d);
|
|
5576
|
+
if (A.isFunction(l)) return l.call(this, d, s);
|
|
5577
|
+
if (A.isRegExp(l)) return l.exec(d);
|
|
5673
5578
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
5674
5579
|
}
|
|
5675
5580
|
}
|
|
@@ -5694,8 +5599,7 @@ button[aria-label][data-balloon-pos] {
|
|
|
5694
5599
|
var l = this, s = {};
|
|
5695
5600
|
return A.forEach(this, function(d, c) {
|
|
5696
5601
|
var m = A.findKey(s, c);
|
|
5697
|
-
if (m)
|
|
5698
|
-
return l[m] = Ne(d), void delete l[c];
|
|
5602
|
+
if (m) return l[m] = Ne(d), void delete l[c];
|
|
5699
5603
|
var b = i ? function(w) {
|
|
5700
5604
|
return w.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, function(g, h, k) {
|
|
5701
5605
|
return h.toUpperCase() + k;
|
|
@@ -5704,8 +5608,7 @@ button[aria-label][data-balloon-pos] {
|
|
|
5704
5608
|
b !== c && delete l[c], l[b] = Ne(d), s[b] = !0;
|
|
5705
5609
|
}), this;
|
|
5706
5610
|
} }, { key: "concat", value: function() {
|
|
5707
|
-
for (var i, l = arguments.length, s = new Array(l), d = 0; d < l; d++)
|
|
5708
|
-
s[d] = arguments[d];
|
|
5611
|
+
for (var i, l = arguments.length, s = new Array(l), d = 0; d < l; d++) s[d] = arguments[d];
|
|
5709
5612
|
return (i = this.constructor).concat.apply(i, [this].concat(s));
|
|
5710
5613
|
} }, { key: "toJSON", value: function(i) {
|
|
5711
5614
|
var l = /* @__PURE__ */ Object.create(null);
|
|
@@ -5717,37 +5620,30 @@ button[aria-label][data-balloon-pos] {
|
|
|
5717
5620
|
} }, { key: "toString", value: function() {
|
|
5718
5621
|
return Object.entries(this.toJSON()).map(function(i) {
|
|
5719
5622
|
var l, s, d = (s = 2, function(c) {
|
|
5720
|
-
if (Array.isArray(c))
|
|
5721
|
-
return c;
|
|
5623
|
+
if (Array.isArray(c)) return c;
|
|
5722
5624
|
}(l = i) || function(c, m) {
|
|
5723
5625
|
var b = c == null ? null : typeof Symbol < "u" && c[Symbol.iterator] || c["@@iterator"];
|
|
5724
5626
|
if (b != null) {
|
|
5725
5627
|
var w, g, h, k, q = [], W = !0, M = !1;
|
|
5726
5628
|
try {
|
|
5727
5629
|
if (h = (b = b.call(c)).next, m === 0) {
|
|
5728
|
-
if (Object(b) !== b)
|
|
5729
|
-
return;
|
|
5630
|
+
if (Object(b) !== b) return;
|
|
5730
5631
|
W = !1;
|
|
5731
|
-
} else
|
|
5732
|
-
for (; !(W = (w = h.call(b)).done) && (q.push(w.value), q.length !== m); W = !0)
|
|
5733
|
-
;
|
|
5632
|
+
} else for (; !(W = (w = h.call(b)).done) && (q.push(w.value), q.length !== m); W = !0) ;
|
|
5734
5633
|
} catch (R) {
|
|
5735
5634
|
M = !0, g = R;
|
|
5736
5635
|
} finally {
|
|
5737
5636
|
try {
|
|
5738
|
-
if (!W && b.return != null && (k = b.return(), Object(k) !== k))
|
|
5739
|
-
return;
|
|
5637
|
+
if (!W && b.return != null && (k = b.return(), Object(k) !== k)) return;
|
|
5740
5638
|
} finally {
|
|
5741
|
-
if (M)
|
|
5742
|
-
throw g;
|
|
5639
|
+
if (M) throw g;
|
|
5743
5640
|
}
|
|
5744
5641
|
}
|
|
5745
5642
|
return q;
|
|
5746
5643
|
}
|
|
5747
5644
|
}(l, s) || function(c, m) {
|
|
5748
5645
|
if (c) {
|
|
5749
|
-
if (typeof c == "string")
|
|
5750
|
-
return Wn(c, m);
|
|
5646
|
+
if (typeof c == "string") return Wn(c, m);
|
|
5751
5647
|
var b = Object.prototype.toString.call(c).slice(8, -1);
|
|
5752
5648
|
return b === "Object" && c.constructor && (b = c.constructor.name), b === "Map" || b === "Set" ? Array.from(c) : b === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b) ? Wn(c, m) : void 0;
|
|
5753
5649
|
}
|
|
@@ -5763,8 +5659,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5763
5659
|
} }], o = [{ key: "from", value: function(i) {
|
|
5764
5660
|
return i instanceof this ? i : new this(i);
|
|
5765
5661
|
} }, { key: "concat", value: function(i) {
|
|
5766
|
-
for (var l = new this(i), s = arguments.length, d = new Array(s > 1 ? s - 1 : 0), c = 1; c < s; c++)
|
|
5767
|
-
d[c - 1] = arguments[c];
|
|
5662
|
+
for (var l = new this(i), s = arguments.length, d = new Array(s > 1 ? s - 1 : 0), c = 1; c < s; c++) d[c - 1] = arguments[c];
|
|
5768
5663
|
return d.forEach(function(m) {
|
|
5769
5664
|
return l.set(m);
|
|
5770
5665
|
}), l;
|
|
@@ -5837,8 +5732,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5837
5732
|
return o = o !== void 0 ? o : 1e3, function(m) {
|
|
5838
5733
|
var b = Date.now(), w = s[c];
|
|
5839
5734
|
i || (i = b), l[d] = m, s[d] = b;
|
|
5840
|
-
for (var g = c, h = 0; g !== d; )
|
|
5841
|
-
h += l[g++], g %= a;
|
|
5735
|
+
for (var g = c, h = 0; g !== d; ) h += l[g++], g %= a;
|
|
5842
5736
|
if ((d = (d + 1) % a) === c && (c = (c + 1) % a), !(b - i < o)) {
|
|
5843
5737
|
var k = w && b - w;
|
|
5844
5738
|
return k ? Math.round(1e3 * h / k) : void 0;
|
|
@@ -5910,17 +5804,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5910
5804
|
}
|
|
5911
5805
|
});
|
|
5912
5806
|
function pn(n) {
|
|
5913
|
-
if (n.cancelToken && n.cancelToken.throwIfRequested(), n.signal && n.signal.aborted)
|
|
5914
|
-
throw new Qe(null, n);
|
|
5807
|
+
if (n.cancelToken && n.cancelToken.throwIfRequested(), n.signal && n.signal.aborted) throw new Qe(null, n);
|
|
5915
5808
|
}
|
|
5916
5809
|
function Vn(n) {
|
|
5917
5810
|
return pn(n), n.headers = K.from(n.headers), n.data = ln.call(n, n.transformRequest), ["post", "put", "patch"].indexOf(n.method) !== -1 && n.headers.setContentType("application/x-www-form-urlencoded", !1), function(t) {
|
|
5918
|
-
for (var r, e, a = (t = A.isArray(t) ? t : [t]).length, o = 0; o < a && (r = t[o], !(e = A.isString(r) ? sn[r.toLowerCase()] : r)); o++)
|
|
5919
|
-
;
|
|
5811
|
+
for (var r, e, a = (t = A.isArray(t) ? t : [t]).length, o = 0; o < a && (r = t[o], !(e = A.isString(r) ? sn[r.toLowerCase()] : r)); o++) ;
|
|
5920
5812
|
if (!e)
|
|
5921
5813
|
throw e === !1 ? new P("Adapter ".concat(r, " is not supported by the environment"), "ERR_NOT_SUPPORT") : new Error(A.hasOwnProp(sn, r) ? "Adapter '".concat(r, "' is not available in the build") : "Unknown adapter '".concat(r, "'"));
|
|
5922
|
-
if (!A.isFunction(e))
|
|
5923
|
-
throw new TypeError("adapter is not a function");
|
|
5814
|
+
if (!A.isFunction(e)) throw new TypeError("adapter is not a function");
|
|
5924
5815
|
return e;
|
|
5925
5816
|
}(n.adapter || rn.adapter)(n).then(function(t) {
|
|
5926
5817
|
return pn(n), t.data = ln.call(n, n.transformResponse, t), t.headers = K.from(t.headers), t;
|
|
@@ -5941,8 +5832,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5941
5832
|
return A.isUndefined(c) ? A.isUndefined(d) ? void 0 : e(void 0, d, m) : e(d, c, m);
|
|
5942
5833
|
}
|
|
5943
5834
|
function o(d, c) {
|
|
5944
|
-
if (!A.isUndefined(c))
|
|
5945
|
-
return e(void 0, c);
|
|
5835
|
+
if (!A.isUndefined(c)) return e(void 0, c);
|
|
5946
5836
|
}
|
|
5947
5837
|
function i(d, c) {
|
|
5948
5838
|
return A.isUndefined(c) ? A.isUndefined(d) ? void 0 : e(void 0, d) : e(void 0, c);
|
|
@@ -5977,22 +5867,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5977
5867
|
return "[Axios v1.2.3] Transitional option '" + a + "'" + o + (r ? ". " + r : "");
|
|
5978
5868
|
}
|
|
5979
5869
|
return function(a, o, i) {
|
|
5980
|
-
if (n === !1)
|
|
5981
|
-
throw new P(e(o, " has been removed" + (t ? " in " + t : "")), P.ERR_DEPRECATED);
|
|
5870
|
+
if (n === !1) throw new P(e(o, " has been removed" + (t ? " in " + t : "")), P.ERR_DEPRECATED);
|
|
5982
5871
|
return t && !Jn[o] && (Jn[o] = !0, console.warn(e(o, " has been deprecated since v" + t + " and will be removed in the near future"))), !n || n(a, o, i);
|
|
5983
5872
|
};
|
|
5984
5873
|
};
|
|
5985
5874
|
const cn = { assertOptions: function(n, t, r) {
|
|
5986
|
-
if (He(n) !== "object")
|
|
5987
|
-
throw new P("options must be an object", P.ERR_BAD_OPTION_VALUE);
|
|
5875
|
+
if (He(n) !== "object") throw new P("options must be an object", P.ERR_BAD_OPTION_VALUE);
|
|
5988
5876
|
for (var e = Object.keys(n), a = e.length; a-- > 0; ) {
|
|
5989
5877
|
var o = e[a], i = t[o];
|
|
5990
5878
|
if (i) {
|
|
5991
5879
|
var l = n[o], s = l === void 0 || i(l, o, n);
|
|
5992
|
-
if (s !== !0)
|
|
5993
|
-
|
|
5994
|
-
} else if (r !== !0)
|
|
5995
|
-
throw new P("Unknown option " + o, P.ERR_BAD_OPTION);
|
|
5880
|
+
if (s !== !0) throw new P("option " + o + " must be " + s, P.ERR_BAD_OPTION_VALUE);
|
|
5881
|
+
} else if (r !== !0) throw new P("Unknown option " + o, P.ERR_BAD_OPTION);
|
|
5996
5882
|
}
|
|
5997
5883
|
}, validators: dn };
|
|
5998
5884
|
function fe(n) {
|
|
@@ -6006,13 +5892,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6006
5892
|
for (var r = 0; r < t.length; r++) {
|
|
6007
5893
|
var e = t[r];
|
|
6008
5894
|
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, (a = function(o, i) {
|
|
6009
|
-
if (fe(o) !== "object" || o === null)
|
|
6010
|
-
return o;
|
|
5895
|
+
if (fe(o) !== "object" || o === null) return o;
|
|
6011
5896
|
var l = o[Symbol.toPrimitive];
|
|
6012
5897
|
if (l !== void 0) {
|
|
6013
5898
|
var s = l.call(o, "string");
|
|
6014
|
-
if (fe(s) !== "object")
|
|
6015
|
-
return s;
|
|
5899
|
+
if (fe(s) !== "object") return s;
|
|
6016
5900
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6017
5901
|
}
|
|
6018
5902
|
return String(o);
|
|
@@ -6023,8 +5907,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6023
5907
|
var Z = cn.validators, _e = function() {
|
|
6024
5908
|
function n(e) {
|
|
6025
5909
|
(function(a, o) {
|
|
6026
|
-
if (!(a instanceof o))
|
|
6027
|
-
throw new TypeError("Cannot call a class as a function");
|
|
5910
|
+
if (!(a instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
6028
5911
|
})(this, n), this.defaults = e, this.interceptors = { request: new Yn(), response: new Yn() };
|
|
6029
5912
|
}
|
|
6030
5913
|
var t, r;
|
|
@@ -6045,8 +5928,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6045
5928
|
var g, h = 0;
|
|
6046
5929
|
if (!m) {
|
|
6047
5930
|
var k = [Vn.bind(this), void 0];
|
|
6048
|
-
for (k.unshift.apply(k, c), k.push.apply(k, w), g = k.length, b = Promise.resolve(a); h < g; )
|
|
6049
|
-
b = b.then(k[h++], k[h++]);
|
|
5931
|
+
for (k.unshift.apply(k, c), k.push.apply(k, w), g = k.length, b = Promise.resolve(a); h < g; ) b = b.then(k[h++], k[h++]);
|
|
6050
5932
|
return b;
|
|
6051
5933
|
}
|
|
6052
5934
|
g = c.length;
|
|
@@ -6065,8 +5947,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6065
5947
|
} catch (R) {
|
|
6066
5948
|
return Promise.reject(R);
|
|
6067
5949
|
}
|
|
6068
|
-
for (h = 0, g = w.length; h < g; )
|
|
6069
|
-
b = b.then(w[h++], w[h++]);
|
|
5950
|
+
for (h = 0, g = w.length; h < g; ) b = b.then(w[h++], w[h++]);
|
|
6070
5951
|
return b;
|
|
6071
5952
|
} }, { key: "getUri", value: function(e) {
|
|
6072
5953
|
return Rn(Kn((e = oe(this.defaults, e)).baseURL, e.url), e.params, e.paramsSerializer);
|
|
@@ -6096,13 +5977,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6096
5977
|
for (var r = 0; r < t.length; r++) {
|
|
6097
5978
|
var e = t[r];
|
|
6098
5979
|
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, (a = function(o, i) {
|
|
6099
|
-
if (be(o) !== "object" || o === null)
|
|
6100
|
-
return o;
|
|
5980
|
+
if (be(o) !== "object" || o === null) return o;
|
|
6101
5981
|
var l = o[Symbol.toPrimitive];
|
|
6102
5982
|
if (l !== void 0) {
|
|
6103
5983
|
var s = l.call(o, "string");
|
|
6104
|
-
if (be(s) !== "object")
|
|
6105
|
-
return s;
|
|
5984
|
+
if (be(s) !== "object") return s;
|
|
6106
5985
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6107
5986
|
}
|
|
6108
5987
|
return String(o);
|
|
@@ -6113,10 +5992,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6113
5992
|
var Yt = function() {
|
|
6114
5993
|
function n(a) {
|
|
6115
5994
|
if (function(l, s) {
|
|
6116
|
-
if (!(l instanceof s))
|
|
6117
|
-
|
|
6118
|
-
}(this, n), typeof a != "function")
|
|
6119
|
-
throw new TypeError("executor must be a function.");
|
|
5995
|
+
if (!(l instanceof s)) throw new TypeError("Cannot call a class as a function");
|
|
5996
|
+
}(this, n), typeof a != "function") throw new TypeError("executor must be a function.");
|
|
6120
5997
|
var o;
|
|
6121
5998
|
this.promise = new Promise(function(l) {
|
|
6122
5999
|
o = l;
|
|
@@ -6124,8 +6001,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6124
6001
|
var i = this;
|
|
6125
6002
|
this.promise.then(function(l) {
|
|
6126
6003
|
if (i._listeners) {
|
|
6127
|
-
for (var s = i._listeners.length; s-- > 0; )
|
|
6128
|
-
i._listeners[s](l);
|
|
6004
|
+
for (var s = i._listeners.length; s-- > 0; ) i._listeners[s](l);
|
|
6129
6005
|
i._listeners = null;
|
|
6130
6006
|
}
|
|
6131
6007
|
}), this.promise.then = function(l) {
|
|
@@ -6141,8 +6017,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6141
6017
|
}
|
|
6142
6018
|
var t, r, e;
|
|
6143
6019
|
return t = n, r = [{ key: "throwIfRequested", value: function() {
|
|
6144
|
-
if (this.reason)
|
|
6145
|
-
throw this.reason;
|
|
6020
|
+
if (this.reason) throw this.reason;
|
|
6146
6021
|
} }, { key: "subscribe", value: function(a) {
|
|
6147
6022
|
this.reason ? a(this.reason) : this._listeners ? this._listeners.push(a) : this._listeners = [a];
|
|
6148
6023
|
} }, { key: "unsubscribe", value: function(a) {
|
|
@@ -6160,44 +6035,36 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6160
6035
|
const Mt = Yt;
|
|
6161
6036
|
function $n(n, t) {
|
|
6162
6037
|
(t == null || t > n.length) && (t = n.length);
|
|
6163
|
-
for (var r = 0, e = new Array(t); r < t; r++)
|
|
6164
|
-
e[r] = n[r];
|
|
6038
|
+
for (var r = 0, e = new Array(t); r < t; r++) e[r] = n[r];
|
|
6165
6039
|
return e;
|
|
6166
6040
|
}
|
|
6167
6041
|
var An = { Continue: 100, SwitchingProtocols: 101, Processing: 102, EarlyHints: 103, Ok: 200, Created: 201, Accepted: 202, NonAuthoritativeInformation: 203, NoContent: 204, ResetContent: 205, PartialContent: 206, MultiStatus: 207, AlreadyReported: 208, ImUsed: 226, MultipleChoices: 300, MovedPermanently: 301, Found: 302, SeeOther: 303, NotModified: 304, UseProxy: 305, Unused: 306, TemporaryRedirect: 307, PermanentRedirect: 308, BadRequest: 400, Unauthorized: 401, PaymentRequired: 402, Forbidden: 403, NotFound: 404, MethodNotAllowed: 405, NotAcceptable: 406, ProxyAuthenticationRequired: 407, RequestTimeout: 408, Conflict: 409, Gone: 410, LengthRequired: 411, PreconditionFailed: 412, PayloadTooLarge: 413, UriTooLong: 414, UnsupportedMediaType: 415, RangeNotSatisfiable: 416, ExpectationFailed: 417, ImATeapot: 418, MisdirectedRequest: 421, UnprocessableEntity: 422, Locked: 423, FailedDependency: 424, TooEarly: 425, UpgradeRequired: 426, PreconditionRequired: 428, TooManyRequests: 429, RequestHeaderFieldsTooLarge: 431, UnavailableForLegalReasons: 451, InternalServerError: 500, NotImplemented: 501, BadGateway: 502, ServiceUnavailable: 503, GatewayTimeout: 504, HttpVersionNotSupported: 505, VariantAlsoNegotiates: 506, InsufficientStorage: 507, LoopDetected: 508, NotExtended: 510, NetworkAuthenticationRequired: 511 };
|
|
6168
6042
|
Object.entries(An).forEach(function(n) {
|
|
6169
6043
|
var t, r, e = (r = 2, function(i) {
|
|
6170
|
-
if (Array.isArray(i))
|
|
6171
|
-
return i;
|
|
6044
|
+
if (Array.isArray(i)) return i;
|
|
6172
6045
|
}(t = n) || function(i, l) {
|
|
6173
6046
|
var s = i == null ? null : typeof Symbol < "u" && i[Symbol.iterator] || i["@@iterator"];
|
|
6174
6047
|
if (s != null) {
|
|
6175
6048
|
var d, c, m, b, w = [], g = !0, h = !1;
|
|
6176
6049
|
try {
|
|
6177
6050
|
if (m = (s = s.call(i)).next, l === 0) {
|
|
6178
|
-
if (Object(s) !== s)
|
|
6179
|
-
return;
|
|
6051
|
+
if (Object(s) !== s) return;
|
|
6180
6052
|
g = !1;
|
|
6181
|
-
} else
|
|
6182
|
-
for (; !(g = (d = m.call(s)).done) && (w.push(d.value), w.length !== l); g = !0)
|
|
6183
|
-
;
|
|
6053
|
+
} else for (; !(g = (d = m.call(s)).done) && (w.push(d.value), w.length !== l); g = !0) ;
|
|
6184
6054
|
} catch (k) {
|
|
6185
6055
|
h = !0, c = k;
|
|
6186
6056
|
} finally {
|
|
6187
6057
|
try {
|
|
6188
|
-
if (!g && s.return != null && (b = s.return(), Object(b) !== b))
|
|
6189
|
-
return;
|
|
6058
|
+
if (!g && s.return != null && (b = s.return(), Object(b) !== b)) return;
|
|
6190
6059
|
} finally {
|
|
6191
|
-
if (h)
|
|
6192
|
-
throw c;
|
|
6060
|
+
if (h) throw c;
|
|
6193
6061
|
}
|
|
6194
6062
|
}
|
|
6195
6063
|
return w;
|
|
6196
6064
|
}
|
|
6197
6065
|
}(t, r) || function(i, l) {
|
|
6198
6066
|
if (i) {
|
|
6199
|
-
if (typeof i == "string")
|
|
6200
|
-
return $n(i, l);
|
|
6067
|
+
if (typeof i == "string") return $n(i, l);
|
|
6201
6068
|
var s = Object.prototype.toString.call(i).slice(8, -1);
|
|
6202
6069
|
return s === "Object" && i.constructor && (s = i.constructor.name), s === "Map" || s === "Set" ? Array.from(i) : s === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s) ? $n(i, l) : void 0;
|
|
6203
6070
|
}
|
|
@@ -6269,13 +6136,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6269
6136
|
for (var r = 0; r < t.length; r++) {
|
|
6270
6137
|
var e = t[r];
|
|
6271
6138
|
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, (a = function(o, i) {
|
|
6272
|
-
if (ge(o) !== "object" || o === null)
|
|
6273
|
-
return o;
|
|
6139
|
+
if (ge(o) !== "object" || o === null) return o;
|
|
6274
6140
|
var l = o[Symbol.toPrimitive];
|
|
6275
6141
|
if (l !== void 0) {
|
|
6276
6142
|
var s = l.call(o, "string");
|
|
6277
|
-
if (ge(s) !== "object")
|
|
6278
|
-
return s;
|
|
6143
|
+
if (ge(s) !== "object") return s;
|
|
6279
6144
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6280
6145
|
}
|
|
6281
6146
|
return String(o);
|
|
@@ -6286,8 +6151,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6286
6151
|
var Sa = function() {
|
|
6287
6152
|
function n(a) {
|
|
6288
6153
|
(function(o, i) {
|
|
6289
|
-
if (!(o instanceof i))
|
|
6290
|
-
throw new TypeError("Cannot call a class as a function");
|
|
6154
|
+
if (!(o instanceof i)) throw new TypeError("Cannot call a class as a function");
|
|
6291
6155
|
})(this, n), this.container = a.container, this.options = a.options, this.index = a.index, this.tran = a.tran, this.init();
|
|
6292
6156
|
}
|
|
6293
6157
|
var t, r, e;
|
|
@@ -6310,13 +6174,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6310
6174
|
for (var r = 0; r < t.length; r++) {
|
|
6311
6175
|
var e = t[r];
|
|
6312
6176
|
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, (a = function(o, i) {
|
|
6313
|
-
if (ie(o) !== "object" || o === null)
|
|
6314
|
-
return o;
|
|
6177
|
+
if (ie(o) !== "object" || o === null) return o;
|
|
6315
6178
|
var l = o[Symbol.toPrimitive];
|
|
6316
6179
|
if (l !== void 0) {
|
|
6317
6180
|
var s = l.call(o, "string");
|
|
6318
|
-
if (ie(s) !== "object")
|
|
6319
|
-
return s;
|
|
6181
|
+
if (ie(s) !== "object") return s;
|
|
6320
6182
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6321
6183
|
}
|
|
6322
6184
|
return String(o);
|
|
@@ -6327,8 +6189,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6327
6189
|
var La = function() {
|
|
6328
6190
|
function n(e) {
|
|
6329
6191
|
(function(a, o) {
|
|
6330
|
-
if (!(a instanceof o))
|
|
6331
|
-
throw new TypeError("Cannot call a class as a function");
|
|
6192
|
+
if (!(a instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
6332
6193
|
})(this, n), this.options = e, this.player = this.options.player, this.container = this.options.container, this.danTunnel = { right: {}, top: {}, bottom: {} }, this.danIndex = 0, this.dan = [], this.showing = !0, this._opacity = this.options.opacity, this.events = this.options.events, this.unlimited = this.options.unlimited, this._measure(""), this.load();
|
|
6333
6194
|
}
|
|
6334
6195
|
var t, r;
|
|
@@ -6352,8 +6213,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6352
6213
|
}, error: function(m) {
|
|
6353
6214
|
o.options.error(m || o.options.tran("danmaku-failed")), i[c] = [], ++l === e.length && a(i);
|
|
6354
6215
|
} });
|
|
6355
|
-
}, d = 0; d < e.length; ++d)
|
|
6356
|
-
s(d);
|
|
6216
|
+
}, d = 0; d < e.length; ++d) s(d);
|
|
6357
6217
|
} }, { key: "send", value: function(e, a) {
|
|
6358
6218
|
var o = this, i = { token: this.options.api.token, id: this.options.api.id, author: this.options.api.user, time: this.options.time(), text: e.text, color: e.color, type: e.type };
|
|
6359
6219
|
this.options.apiBackend.send({ url: this.options.api.address + "v3/", data: i, success: a, error: function(s) {
|
|
@@ -6364,8 +6224,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6364
6224
|
} }, { key: "frame", value: function() {
|
|
6365
6225
|
var e = this;
|
|
6366
6226
|
if (this.dan.length && !this.paused && this.showing) {
|
|
6367
|
-
for (var a = this.dan[this.danIndex], o = []; a && this.options.time() > parseFloat(a.time); )
|
|
6368
|
-
o.push(a), a = this.dan[++this.danIndex];
|
|
6227
|
+
for (var a = this.dan[this.danIndex], o = []; a && this.options.time() > parseFloat(a.time); ) o.push(a), a = this.dan[++this.danIndex];
|
|
6369
6228
|
this.draw(o);
|
|
6370
6229
|
}
|
|
6371
6230
|
window.requestAnimationFrame(function() {
|
|
@@ -6373,8 +6232,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6373
6232
|
});
|
|
6374
6233
|
} }, { key: "opacity", value: function(e) {
|
|
6375
6234
|
if (e !== void 0) {
|
|
6376
|
-
for (var a = this.container.getElementsByClassName("dplayer-danmaku-item"), o = 0; o < a.length; o++)
|
|
6377
|
-
a[o].style.opacity = e;
|
|
6235
|
+
for (var a = this.container.getElementsByClassName("dplayer-danmaku-item"), o = 0; o < a.length; o++) a[o].style.opacity = e;
|
|
6378
6236
|
this._opacity = e, this.events && this.events.trigger("danmaku_opacity", this._opacity);
|
|
6379
6237
|
}
|
|
6380
6238
|
return this._opacity;
|
|
@@ -6389,25 +6247,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6389
6247
|
}, m = function(h, k, q) {
|
|
6390
6248
|
for (var W = i / c(q), M = function(ee) {
|
|
6391
6249
|
var se = a.danTunnel[k][ee + ""];
|
|
6392
|
-
if (!se || !se.length)
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
if (k !== "right")
|
|
6397
|
-
return "continue";
|
|
6250
|
+
if (!se || !se.length) return a.danTunnel[k][ee + ""] = [h], h.addEventListener("animationend", function() {
|
|
6251
|
+
a.danTunnel[k][ee + ""].splice(0, 1);
|
|
6252
|
+
}), { v: ee % s };
|
|
6253
|
+
if (k !== "right") return "continue";
|
|
6398
6254
|
for (var Pe = 0; Pe < se.length; Pe++) {
|
|
6399
6255
|
var st = d(se[Pe]) - 10;
|
|
6400
|
-
if (st <= i - W * c(parseInt(se[Pe].style.width)) || st <= 0)
|
|
6401
|
-
|
|
6402
|
-
|
|
6403
|
-
|
|
6404
|
-
a.danTunnel[k][ee + ""].splice(0, 1);
|
|
6405
|
-
}), { v: ee % s };
|
|
6256
|
+
if (st <= i - W * c(parseInt(se[Pe].style.width)) || st <= 0) break;
|
|
6257
|
+
if (Pe === se.length - 1) return a.danTunnel[k][ee + ""].push(h), h.addEventListener("animationend", function() {
|
|
6258
|
+
a.danTunnel[k][ee + ""].splice(0, 1);
|
|
6259
|
+
}), { v: ee % s };
|
|
6406
6260
|
}
|
|
6407
6261
|
}, R = 0; a.unlimited || R < s; R++) {
|
|
6408
6262
|
var X = M(R);
|
|
6409
|
-
if (X !== "continue" && ie(X) === "object")
|
|
6410
|
-
return X.v;
|
|
6263
|
+
if (X !== "continue" && ie(X) === "object") return X.v;
|
|
6411
6264
|
}
|
|
6412
6265
|
return -1;
|
|
6413
6266
|
};
|
|
@@ -6433,8 +6286,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6433
6286
|
console.error("Can't handled danmaku type: ".concat(e[g].type));
|
|
6434
6287
|
}
|
|
6435
6288
|
k >= 0 && (h.classList.add("dplayer-danmaku-move"), h.style.animationDuration = a._danAnimation(e[g].type), b.appendChild(h));
|
|
6436
|
-
}, g = 0; g < e.length; g++)
|
|
6437
|
-
w();
|
|
6289
|
+
}, g = 0; g < e.length; g++) w();
|
|
6438
6290
|
return this.container.appendChild(b), b;
|
|
6439
6291
|
}
|
|
6440
6292
|
} }, { key: "play", value: function() {
|
|
@@ -6461,8 +6313,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6461
6313
|
} }, { key: "htmlEncode", value: function(e) {
|
|
6462
6314
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/");
|
|
6463
6315
|
} }, { key: "resize", value: function() {
|
|
6464
|
-
for (var e = this.container.offsetWidth, a = this.container.getElementsByClassName("dplayer-danmaku-item"), o = 0; o < a.length; o++)
|
|
6465
|
-
a[o].style.transform = "translateX(-".concat(e, "px)");
|
|
6316
|
+
for (var e = this.container.offsetWidth, a = this.container.getElementsByClassName("dplayer-danmaku-item"), o = 0; o < a.length; o++) a[o].style.transform = "translateX(-".concat(e, "px)");
|
|
6466
6317
|
} }, { key: "hide", value: function() {
|
|
6467
6318
|
this.showing = !1, this.pause(), this.clear(), this.events && this.events.trigger("danmaku_hide");
|
|
6468
6319
|
} }, { key: "show", value: function() {
|
|
@@ -6488,13 +6339,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6488
6339
|
for (var r = 0; r < t.length; r++) {
|
|
6489
6340
|
var e = t[r];
|
|
6490
6341
|
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, (a = function(o, i) {
|
|
6491
|
-
if (ve(o) !== "object" || o === null)
|
|
6492
|
-
return o;
|
|
6342
|
+
if (ve(o) !== "object" || o === null) return o;
|
|
6493
6343
|
var l = o[Symbol.toPrimitive];
|
|
6494
6344
|
if (l !== void 0) {
|
|
6495
6345
|
var s = l.call(o, "string");
|
|
6496
|
-
if (ve(s) !== "object")
|
|
6497
|
-
return s;
|
|
6346
|
+
if (ve(s) !== "object") return s;
|
|
6498
6347
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6499
6348
|
}
|
|
6500
6349
|
return String(o);
|
|
@@ -6505,17 +6354,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6505
6354
|
const qa = function() {
|
|
6506
6355
|
function n() {
|
|
6507
6356
|
(function(e, a) {
|
|
6508
|
-
if (!(e instanceof a))
|
|
6509
|
-
throw new TypeError("Cannot call a class as a function");
|
|
6357
|
+
if (!(e instanceof a)) throw new TypeError("Cannot call a class as a function");
|
|
6510
6358
|
})(this, n), this.events = {}, this.videoEvents = ["abort", "canplay", "canplaythrough", "durationchange", "emptied", "ended", "error", "loadeddata", "loadedmetadata", "loadstart", "mozaudioavailable", "pause", "play", "playing", "progress", "ratechange", "seeked", "seeking", "stalled", "suspend", "timeupdate", "volumechange", "waiting"], this.playerEvents = ["screenshot", "thumbnails_show", "thumbnails_hide", "danmaku_show", "danmaku_hide", "danmaku_clear", "danmaku_loaded", "danmaku_send", "danmaku_opacity", "contextmenu_show", "contextmenu_hide", "notice_show", "notice_hide", "quality_start", "quality_end", "destroy", "resize", "fullscreen", "fullscreen_cancel", "webfullscreen", "webfullscreen_cancel", "subtitle_show", "subtitle_hide", "subtitle_change"];
|
|
6511
6359
|
}
|
|
6512
6360
|
var t, r;
|
|
6513
6361
|
return t = n, (r = [{ key: "on", value: function(e, a) {
|
|
6514
6362
|
this.type(e) && typeof a == "function" && (this.events[e] || (this.events[e] = []), this.events[e].push(a));
|
|
6515
6363
|
} }, { key: "trigger", value: function(e, a) {
|
|
6516
|
-
if (this.events[e] && this.events[e].length)
|
|
6517
|
-
for (var o = 0; o < this.events[e].length; o++)
|
|
6518
|
-
this.events[e][o](a);
|
|
6364
|
+
if (this.events[e] && this.events[e].length) for (var o = 0; o < this.events[e].length; o++) this.events[e][o](a);
|
|
6519
6365
|
} }, { key: "type", value: function(e) {
|
|
6520
6366
|
return this.playerEvents.indexOf(e) !== -1 ? "player" : this.videoEvents.indexOf(e) !== -1 ? "video" : (console.error("Unknown event name: ".concat(e)), null);
|
|
6521
6367
|
} }]) && Ta(t.prototype, r), Object.defineProperty(t, "prototype", { writable: !1 }), n;
|
|
@@ -6531,13 +6377,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6531
6377
|
for (var r = 0; r < t.length; r++) {
|
|
6532
6378
|
var e = t[r];
|
|
6533
6379
|
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, (a = function(o, i) {
|
|
6534
|
-
if (xe(o) !== "object" || o === null)
|
|
6535
|
-
return o;
|
|
6380
|
+
if (xe(o) !== "object" || o === null) return o;
|
|
6536
6381
|
var l = o[Symbol.toPrimitive];
|
|
6537
6382
|
if (l !== void 0) {
|
|
6538
6383
|
var s = l.call(o, "string");
|
|
6539
|
-
if (xe(s) !== "object")
|
|
6540
|
-
return s;
|
|
6384
|
+
if (xe(s) !== "object") return s;
|
|
6541
6385
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6542
6386
|
}
|
|
6543
6387
|
return String(o);
|
|
@@ -6549,8 +6393,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6549
6393
|
function n(e) {
|
|
6550
6394
|
var a = this;
|
|
6551
6395
|
(function(o, i) {
|
|
6552
|
-
if (!(o instanceof i))
|
|
6553
|
-
throw new TypeError("Cannot call a class as a function");
|
|
6396
|
+
if (!(o instanceof i)) throw new TypeError("Cannot call a class as a function");
|
|
6554
6397
|
})(this, n), this.player = e, this.lastScrollPosition = { left: 0, top: 0 }, this.player.events.on("webfullscreen", function() {
|
|
6555
6398
|
a.player.resize();
|
|
6556
6399
|
}), this.player.events.on("webfullscreen_cancel", function() {
|
|
@@ -6609,13 +6452,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6609
6452
|
for (var r = 0; r < t.length; r++) {
|
|
6610
6453
|
var e = t[r];
|
|
6611
6454
|
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, (a = function(o, i) {
|
|
6612
|
-
if (Ee(o) !== "object" || o === null)
|
|
6613
|
-
return o;
|
|
6455
|
+
if (Ee(o) !== "object" || o === null) return o;
|
|
6614
6456
|
var l = o[Symbol.toPrimitive];
|
|
6615
6457
|
if (l !== void 0) {
|
|
6616
6458
|
var s = l.call(o, "string");
|
|
6617
|
-
if (Ee(s) !== "object")
|
|
6618
|
-
return s;
|
|
6459
|
+
if (Ee(s) !== "object") return s;
|
|
6619
6460
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6620
6461
|
}
|
|
6621
6462
|
return String(o);
|
|
@@ -6626,8 +6467,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6626
6467
|
var Ra = function() {
|
|
6627
6468
|
function n(e) {
|
|
6628
6469
|
(function(a, o) {
|
|
6629
|
-
if (!(a instanceof o))
|
|
6630
|
-
throw new TypeError("Cannot call a class as a function");
|
|
6470
|
+
if (!(a instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
6631
6471
|
})(this, n), this.storageName = { opacity: "dplayer-danmaku-opacity", volume: "dplayer-volume", unlimited: "dplayer-danmaku-unlimited", danmaku: "dplayer-danmaku-show", subtitle: "dplayer-subtitle-show" }, this.default = { opacity: 0.7, volume: e.options.hasOwnProperty("volume") ? e.options.volume : 0.7, unlimited: (e.options.danmaku && e.options.danmaku.unlimited ? 1 : 0) || 0, danmaku: 1, subtitle: 1 }, this.data = {}, this.init();
|
|
6632
6472
|
}
|
|
6633
6473
|
var t, r;
|
|
@@ -6654,13 +6494,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6654
6494
|
for (var r = 0; r < t.length; r++) {
|
|
6655
6495
|
var e = t[r];
|
|
6656
6496
|
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, (a = function(o, i) {
|
|
6657
|
-
if (we(o) !== "object" || o === null)
|
|
6658
|
-
return o;
|
|
6497
|
+
if (we(o) !== "object" || o === null) return o;
|
|
6659
6498
|
var l = o[Symbol.toPrimitive];
|
|
6660
6499
|
if (l !== void 0) {
|
|
6661
6500
|
var s = l.call(o, "string");
|
|
6662
|
-
if (we(s) !== "object")
|
|
6663
|
-
return s;
|
|
6501
|
+
if (we(s) !== "object") return s;
|
|
6664
6502
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6665
6503
|
}
|
|
6666
6504
|
return String(o);
|
|
@@ -6671,8 +6509,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6671
6509
|
var Fa = function() {
|
|
6672
6510
|
function n(e, a, o, i) {
|
|
6673
6511
|
(function(l, s) {
|
|
6674
|
-
if (!(l instanceof s))
|
|
6675
|
-
throw new TypeError("Cannot call a class as a function");
|
|
6512
|
+
if (!(l instanceof s)) throw new TypeError("Cannot call a class as a function");
|
|
6676
6513
|
})(this, n), this.container = e, this.video = a, this.options = o, this.events = i, this.init();
|
|
6677
6514
|
}
|
|
6678
6515
|
var t, r;
|
|
@@ -6713,13 +6550,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6713
6550
|
for (var r = 0; r < t.length; r++) {
|
|
6714
6551
|
var e = t[r];
|
|
6715
6552
|
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, (a = function(o, i) {
|
|
6716
|
-
if (Ce(o) !== "object" || o === null)
|
|
6717
|
-
return o;
|
|
6553
|
+
if (Ce(o) !== "object" || o === null) return o;
|
|
6718
6554
|
var l = o[Symbol.toPrimitive];
|
|
6719
6555
|
if (l !== void 0) {
|
|
6720
6556
|
var s = l.call(o, "string");
|
|
6721
|
-
if (Ce(s) !== "object")
|
|
6722
|
-
return s;
|
|
6557
|
+
if (Ce(s) !== "object") return s;
|
|
6723
6558
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6724
6559
|
}
|
|
6725
6560
|
return String(o);
|
|
@@ -6731,8 +6566,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6731
6566
|
function n(e) {
|
|
6732
6567
|
var a = this;
|
|
6733
6568
|
(function(s, d) {
|
|
6734
|
-
if (!(s instanceof d))
|
|
6735
|
-
throw new TypeError("Cannot call a class as a function");
|
|
6569
|
+
if (!(s instanceof d)) throw new TypeError("Cannot call a class as a function");
|
|
6736
6570
|
})(this, n), this.player = e, this.player.template.mask.addEventListener("click", function() {
|
|
6737
6571
|
a.hide();
|
|
6738
6572
|
}), this.player.template.subtitlesButton.addEventListener("click", function() {
|
|
@@ -6742,8 +6576,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6742
6576
|
a.player.template.subtitlesItem[s].addEventListener("click", function() {
|
|
6743
6577
|
a.hide(), a.player.options.subtitle.index !== s && (a.player.template.subtitle.innerHTML = "<p></p>", a.player.template.subtrack.src = a.player.template.subtitlesItem[s].dataset.subtitle, a.player.options.subtitle.index = s, a.player.template.subtitle.classList.contains("dplayer-subtitle-hide") && a.subContainerShow());
|
|
6744
6578
|
});
|
|
6745
|
-
}, l = 0; l < o; l++)
|
|
6746
|
-
i(l);
|
|
6579
|
+
}, l = 0; l < o; l++) i(l);
|
|
6747
6580
|
this.player.template.subtitlesItem[o].addEventListener("click", function() {
|
|
6748
6581
|
a.hide(), a.player.options.subtitle.index !== o && (a.player.template.subtitle.innerHTML = "<p></p>", a.player.template.subtrack.src = "", a.player.options.subtitle.index = o, a.subContainerHide());
|
|
6749
6582
|
});
|
|
@@ -6774,13 +6607,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6774
6607
|
for (var r = 0; r < t.length; r++) {
|
|
6775
6608
|
var e = t[r];
|
|
6776
6609
|
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, (a = function(o, i) {
|
|
6777
|
-
if (ke(o) !== "object" || o === null)
|
|
6778
|
-
return o;
|
|
6610
|
+
if (ke(o) !== "object" || o === null) return o;
|
|
6779
6611
|
var l = o[Symbol.toPrimitive];
|
|
6780
6612
|
if (l !== void 0) {
|
|
6781
6613
|
var s = l.call(o, "string");
|
|
6782
|
-
if (ke(s) !== "object")
|
|
6783
|
-
return s;
|
|
6614
|
+
if (ke(s) !== "object") return s;
|
|
6784
6615
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6785
6616
|
}
|
|
6786
6617
|
return String(o);
|
|
@@ -6791,8 +6622,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6791
6622
|
var _a = function() {
|
|
6792
6623
|
function n(e) {
|
|
6793
6624
|
(function(a, o) {
|
|
6794
|
-
if (!(a instanceof o))
|
|
6795
|
-
throw new TypeError("Cannot call a class as a function");
|
|
6625
|
+
if (!(a instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
6796
6626
|
})(this, n), this.elements = {}, this.elements.volume = e.volumeBar, this.elements.played = e.playedBar, this.elements.loaded = e.loadedBar, this.elements.danmaku = e.danmakuOpacityBar;
|
|
6797
6627
|
}
|
|
6798
6628
|
var t, r;
|
|
@@ -6814,13 +6644,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6814
6644
|
for (var r = 0; r < t.length; r++) {
|
|
6815
6645
|
var e = t[r];
|
|
6816
6646
|
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, (a = function(o, i) {
|
|
6817
|
-
if (Be(o) !== "object" || o === null)
|
|
6818
|
-
return o;
|
|
6647
|
+
if (Be(o) !== "object" || o === null) return o;
|
|
6819
6648
|
var l = o[Symbol.toPrimitive];
|
|
6820
6649
|
if (l !== void 0) {
|
|
6821
6650
|
var s = l.call(o, "string");
|
|
6822
|
-
if (Be(s) !== "object")
|
|
6823
|
-
return s;
|
|
6651
|
+
if (Be(s) !== "object") return s;
|
|
6824
6652
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6825
6653
|
}
|
|
6826
6654
|
return String(o);
|
|
@@ -6831,8 +6659,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6831
6659
|
var Va = function() {
|
|
6832
6660
|
function n(e) {
|
|
6833
6661
|
(function(a, o) {
|
|
6834
|
-
if (!(a instanceof o))
|
|
6835
|
-
throw new TypeError("Cannot call a class as a function");
|
|
6662
|
+
if (!(a instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
6836
6663
|
})(this, n), this.player = e, window.requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(a) {
|
|
6837
6664
|
window.setTimeout(a, 1e3 / 60);
|
|
6838
6665
|
}, this.types = ["loading", "info", "fps"], this.init();
|
|
@@ -6851,15 +6678,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6851
6678
|
} }, { key: "initfpsChecker", value: function() {
|
|
6852
6679
|
var e = this;
|
|
6853
6680
|
window.requestAnimationFrame(function() {
|
|
6854
|
-
if (e.enablefpsChecker)
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
e.fpsStart = /* @__PURE__ */ new Date(), e.fpsIndex = 0;
|
|
6861
|
-
else
|
|
6862
|
-
e.fpsStart = 0, e.fpsIndex = 0;
|
|
6681
|
+
if (e.enablefpsChecker) if (e.initfpsChecker(), e.fpsStart) {
|
|
6682
|
+
e.fpsIndex++;
|
|
6683
|
+
var a = /* @__PURE__ */ new Date();
|
|
6684
|
+
a - e.fpsStart > 1e3 && (e.player.infoPanel.fps(e.fpsIndex / (a - e.fpsStart) * 1e3), e.fpsStart = /* @__PURE__ */ new Date(), e.fpsIndex = 0);
|
|
6685
|
+
} else e.fpsStart = /* @__PURE__ */ new Date(), e.fpsIndex = 0;
|
|
6686
|
+
else e.fpsStart = 0, e.fpsIndex = 0;
|
|
6863
6687
|
});
|
|
6864
6688
|
} }, { key: "initinfoChecker", value: function() {
|
|
6865
6689
|
var e = this;
|
|
@@ -6889,13 +6713,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6889
6713
|
for (var r = 0; r < t.length; r++) {
|
|
6890
6714
|
var e = t[r];
|
|
6891
6715
|
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, (a = function(o, i) {
|
|
6892
|
-
if (Se(o) !== "object" || o === null)
|
|
6893
|
-
return o;
|
|
6716
|
+
if (Se(o) !== "object" || o === null) return o;
|
|
6894
6717
|
var l = o[Symbol.toPrimitive];
|
|
6895
6718
|
if (l !== void 0) {
|
|
6896
6719
|
var s = l.call(o, "string");
|
|
6897
|
-
if (Se(s) !== "object")
|
|
6898
|
-
return s;
|
|
6720
|
+
if (Se(s) !== "object") return s;
|
|
6899
6721
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6900
6722
|
}
|
|
6901
6723
|
return String(o);
|
|
@@ -6907,8 +6729,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6907
6729
|
function n(e) {
|
|
6908
6730
|
var a = this;
|
|
6909
6731
|
(function(o, i) {
|
|
6910
|
-
if (!(o instanceof i))
|
|
6911
|
-
throw new TypeError("Cannot call a class as a function");
|
|
6732
|
+
if (!(o instanceof i)) throw new TypeError("Cannot call a class as a function");
|
|
6912
6733
|
})(this, n), this.container = e, this.container.addEventListener("animationend", function() {
|
|
6913
6734
|
a.container.classList.remove("dplayer-bezel-transition");
|
|
6914
6735
|
});
|
|
@@ -6929,13 +6750,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6929
6750
|
for (var r = 0; r < t.length; r++) {
|
|
6930
6751
|
var e = t[r];
|
|
6931
6752
|
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, (a = function(o, i) {
|
|
6932
|
-
if (Ie(o) !== "object" || o === null)
|
|
6933
|
-
return o;
|
|
6753
|
+
if (Ie(o) !== "object" || o === null) return o;
|
|
6934
6754
|
var l = o[Symbol.toPrimitive];
|
|
6935
6755
|
if (l !== void 0) {
|
|
6936
6756
|
var s = l.call(o, "string");
|
|
6937
|
-
if (Ie(s) !== "object")
|
|
6938
|
-
return s;
|
|
6757
|
+
if (Ie(s) !== "object") return s;
|
|
6939
6758
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6940
6759
|
}
|
|
6941
6760
|
return String(o);
|
|
@@ -6946,8 +6765,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6946
6765
|
var eo = function() {
|
|
6947
6766
|
function n(e) {
|
|
6948
6767
|
(function(a, o) {
|
|
6949
|
-
if (!(a instanceof o))
|
|
6950
|
-
throw new TypeError("Cannot call a class as a function");
|
|
6768
|
+
if (!(a instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
6951
6769
|
})(this, n), this.container = e.container, this.barWidth = e.barWidth, this.container.style.backgroundImage = "url('".concat(e.url, "')"), this.events = e.events;
|
|
6952
6770
|
}
|
|
6953
6771
|
var t, r;
|
|
@@ -6973,13 +6791,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6973
6791
|
for (var r = 0; r < t.length; r++) {
|
|
6974
6792
|
var e = t[r];
|
|
6975
6793
|
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, (a = function(o, i) {
|
|
6976
|
-
if (Le(o) !== "object" || o === null)
|
|
6977
|
-
return o;
|
|
6794
|
+
if (Le(o) !== "object" || o === null) return o;
|
|
6978
6795
|
var l = o[Symbol.toPrimitive];
|
|
6979
6796
|
if (l !== void 0) {
|
|
6980
6797
|
var s = l.call(o, "string");
|
|
6981
|
-
if (Le(s) !== "object")
|
|
6982
|
-
return s;
|
|
6798
|
+
if (Le(s) !== "object") return s;
|
|
6983
6799
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6984
6800
|
}
|
|
6985
6801
|
return String(o);
|
|
@@ -6990,8 +6806,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6990
6806
|
var V, at = !0, mn = !1, ao = function() {
|
|
6991
6807
|
function n(e) {
|
|
6992
6808
|
(function(a, o) {
|
|
6993
|
-
if (!(a instanceof o))
|
|
6994
|
-
throw new TypeError("Cannot call a class as a function");
|
|
6809
|
+
if (!(a instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
6995
6810
|
})(this, n), this.player = e, this.autoHideTimer = 0, T.isMobile || (this.setAutoHideHandler = this.setAutoHide.bind(this), this.player.container.addEventListener("mousemove", this.setAutoHideHandler), this.player.container.addEventListener("click", this.setAutoHideHandler), this.player.on("play", this.setAutoHideHandler), this.player.on("pause", this.setAutoHideHandler)), this.initPlayButton(), this.initThumbnails(), this.initPlayedBar(), this.initFullButton(), this.initQualityButton(), this.initScreenshotButton(), this.player.options.subtitle && typeof this.player.options.subtitle.url == "string" && this.initSubtitleButton(), this.initHighlights(), this.initAirplayButton(), this.initChromecastButton(), T.isMobile || this.initVolumeButton();
|
|
6996
6811
|
}
|
|
6997
6812
|
var t, r;
|
|
@@ -7018,11 +6833,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7018
6833
|
[].slice.call(a, 0).forEach(function(l) {
|
|
7019
6834
|
e.player.template.playedBarWrap.removeChild(l);
|
|
7020
6835
|
});
|
|
7021
|
-
for (var o = 0; o < e.player.options.highlight.length; o++)
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
}
|
|
6836
|
+
for (var o = 0; o < e.player.options.highlight.length; o++) if (e.player.options.highlight[o].text && e.player.options.highlight[o].time) {
|
|
6837
|
+
var i = document.createElement("div");
|
|
6838
|
+
i.classList.add("dplayer-highlight"), i.style.left = e.player.options.highlight[o].time / e.player.video.duration * 100 + "%", i.innerHTML = '<span class="dplayer-highlight-text">' + e.player.options.highlight[o].text + "</span>", e.player.template.playedBarWrap.insertBefore(i, e.player.template.playedBarTime);
|
|
6839
|
+
}
|
|
7026
6840
|
}
|
|
7027
6841
|
});
|
|
7028
6842
|
} }, { key: "initThumbnails", value: function() {
|
|
@@ -7044,8 +6858,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7044
6858
|
}), this.player.template.playedBarWrap.addEventListener(T.nameMap.dragMove, function(i) {
|
|
7045
6859
|
if (e.player.video.duration) {
|
|
7046
6860
|
var l = e.player.template.playedBarWrap.getBoundingClientRect().left, s = (i.clientX || i.changedTouches[0].clientX) - l;
|
|
7047
|
-
if (s < 0 || s > e.player.template.playedBarWrap.offsetWidth)
|
|
7048
|
-
return;
|
|
6861
|
+
if (s < 0 || s > e.player.template.playedBarWrap.offsetWidth) return;
|
|
7049
6862
|
var d = e.player.video.duration * (s / e.player.template.playedBarWrap.offsetWidth);
|
|
7050
6863
|
T.isMobile && e.thumbnails && e.thumbnails.show(), e.thumbnails && e.thumbnails.move(s), e.player.template.playedBarTime.style.left = "".concat(s - (d >= 3600 ? 25 : 20), "px"), e.player.template.playedBarTime.innerText = T.secondToTime(d), e.player.template.playedBarTime.classList.remove("hidden");
|
|
7051
6864
|
}
|
|
@@ -7167,13 +6980,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7167
6980
|
for (var r = 0; r < t.length; r++) {
|
|
7168
6981
|
var e = t[r];
|
|
7169
6982
|
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, (a = function(o, i) {
|
|
7170
|
-
if (ze(o) !== "object" || o === null)
|
|
7171
|
-
return o;
|
|
6983
|
+
if (ze(o) !== "object" || o === null) return o;
|
|
7172
6984
|
var l = o[Symbol.toPrimitive];
|
|
7173
6985
|
if (l !== void 0) {
|
|
7174
6986
|
var s = l.call(o, "string");
|
|
7175
|
-
if (ze(s) !== "object")
|
|
7176
|
-
return s;
|
|
6987
|
+
if (ze(s) !== "object") return s;
|
|
7177
6988
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
7178
6989
|
}
|
|
7179
6990
|
return String(o);
|
|
@@ -7185,8 +6996,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7185
6996
|
function n(e) {
|
|
7186
6997
|
var a = this;
|
|
7187
6998
|
(function(d, c) {
|
|
7188
|
-
if (!(d instanceof c))
|
|
7189
|
-
throw new TypeError("Cannot call a class as a function");
|
|
6999
|
+
if (!(d instanceof c)) throw new TypeError("Cannot call a class as a function");
|
|
7190
7000
|
})(this, n), this.player = e, this.player.template.mask.addEventListener("click", function() {
|
|
7191
7001
|
a.hide();
|
|
7192
7002
|
}), this.player.template.settingButton.addEventListener("click", function() {
|
|
@@ -7204,8 +7014,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7204
7014
|
a.player.template.speedItem[d].addEventListener("click", function() {
|
|
7205
7015
|
a.player.speed(a.player.template.speedItem[d].dataset.speed), a.hide();
|
|
7206
7016
|
});
|
|
7207
|
-
}, i = 0; i < this.player.template.speedItem.length; i++)
|
|
7208
|
-
o(i);
|
|
7017
|
+
}, i = 0; i < this.player.template.speedItem.length; i++) o(i);
|
|
7209
7018
|
if (this.player.danmaku) {
|
|
7210
7019
|
this.player.on("danmaku_opacity", function(d) {
|
|
7211
7020
|
a.player.bar.set("danmaku", d, "width"), a.player.user.set("opacity", d);
|
|
@@ -7246,13 +7055,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7246
7055
|
for (var r = 0; r < t.length; r++) {
|
|
7247
7056
|
var e = t[r];
|
|
7248
7057
|
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, (a = function(o, i) {
|
|
7249
|
-
if (Te(o) !== "object" || o === null)
|
|
7250
|
-
return o;
|
|
7058
|
+
if (Te(o) !== "object" || o === null) return o;
|
|
7251
7059
|
var l = o[Symbol.toPrimitive];
|
|
7252
7060
|
if (l !== void 0) {
|
|
7253
7061
|
var s = l.call(o, "string");
|
|
7254
|
-
if (Te(s) !== "object")
|
|
7255
|
-
return s;
|
|
7062
|
+
if (Te(s) !== "object") return s;
|
|
7256
7063
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
7257
7064
|
}
|
|
7258
7065
|
return String(o);
|
|
@@ -7264,8 +7071,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7264
7071
|
function n(e) {
|
|
7265
7072
|
var a = this;
|
|
7266
7073
|
(function(o, i) {
|
|
7267
|
-
if (!(o instanceof i))
|
|
7268
|
-
throw new TypeError("Cannot call a class as a function");
|
|
7074
|
+
if (!(o instanceof i)) throw new TypeError("Cannot call a class as a function");
|
|
7269
7075
|
})(this, n), this.player = e, this.player.template.mask.addEventListener("click", function() {
|
|
7270
7076
|
a.hide();
|
|
7271
7077
|
}), this.player.template.commentButton.addEventListener("click", function() {
|
|
@@ -7315,13 +7121,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7315
7121
|
for (var r = 0; r < t.length; r++) {
|
|
7316
7122
|
var e = t[r];
|
|
7317
7123
|
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, (a = function(o, i) {
|
|
7318
|
-
if (qe(o) !== "object" || o === null)
|
|
7319
|
-
return o;
|
|
7124
|
+
if (qe(o) !== "object" || o === null) return o;
|
|
7320
7125
|
var l = o[Symbol.toPrimitive];
|
|
7321
7126
|
if (l !== void 0) {
|
|
7322
7127
|
var s = l.call(o, "string");
|
|
7323
|
-
if (qe(s) !== "object")
|
|
7324
|
-
return s;
|
|
7128
|
+
if (qe(s) !== "object") return s;
|
|
7325
7129
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
7326
7130
|
}
|
|
7327
7131
|
return String(o);
|
|
@@ -7332,8 +7136,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7332
7136
|
var uo = function() {
|
|
7333
7137
|
function n(e) {
|
|
7334
7138
|
(function(a, o) {
|
|
7335
|
-
if (!(a instanceof o))
|
|
7336
|
-
throw new TypeError("Cannot call a class as a function");
|
|
7139
|
+
if (!(a instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
7337
7140
|
})(this, n), this.player = e, this.doHotKeyHandler = this.doHotKey.bind(this), this.cancelFullScreenHandler = this.cancelFullScreen.bind(this), this.player.options.hotkey && document.addEventListener("keydown", this.doHotKeyHandler), document.addEventListener("keydown", this.cancelFullScreenHandler);
|
|
7338
7141
|
}
|
|
7339
7142
|
var t, r;
|
|
@@ -7347,13 +7150,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7347
7150
|
l.preventDefault(), this.player.toggle();
|
|
7348
7151
|
break;
|
|
7349
7152
|
case 37:
|
|
7350
|
-
if (l.preventDefault(), this.player.options.live)
|
|
7351
|
-
break;
|
|
7153
|
+
if (l.preventDefault(), this.player.options.live) break;
|
|
7352
7154
|
this.player.seek(this.player.video.currentTime - 5), this.player.controller.setAutoHide();
|
|
7353
7155
|
break;
|
|
7354
7156
|
case 39:
|
|
7355
|
-
if (l.preventDefault(), this.player.options.live)
|
|
7356
|
-
break;
|
|
7157
|
+
if (l.preventDefault(), this.player.options.live) break;
|
|
7357
7158
|
this.player.seek(this.player.video.currentTime + 5), this.player.controller.setAutoHide();
|
|
7358
7159
|
break;
|
|
7359
7160
|
case 38:
|
|
@@ -7382,13 +7183,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7382
7183
|
for (var r = 0; r < t.length; r++) {
|
|
7383
7184
|
var e = t[r];
|
|
7384
7185
|
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, (a = function(o, i) {
|
|
7385
|
-
if (Oe(o) !== "object" || o === null)
|
|
7386
|
-
return o;
|
|
7186
|
+
if (Oe(o) !== "object" || o === null) return o;
|
|
7387
7187
|
var l = o[Symbol.toPrimitive];
|
|
7388
7188
|
if (l !== void 0) {
|
|
7389
7189
|
var s = l.call(o, "string");
|
|
7390
|
-
if (Oe(s) !== "object")
|
|
7391
|
-
return s;
|
|
7190
|
+
if (Oe(s) !== "object") return s;
|
|
7392
7191
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
7393
7192
|
}
|
|
7394
7193
|
return String(o);
|
|
@@ -7400,15 +7199,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7400
7199
|
function n(e) {
|
|
7401
7200
|
var a = this;
|
|
7402
7201
|
(function(o, i) {
|
|
7403
|
-
if (!(o instanceof i))
|
|
7404
|
-
throw new TypeError("Cannot call a class as a function");
|
|
7202
|
+
if (!(o instanceof i)) throw new TypeError("Cannot call a class as a function");
|
|
7405
7203
|
})(this, n), this.player = e, this.shown = !1, Array.prototype.slice.call(this.player.template.menuItem).forEach(function(o, i) {
|
|
7406
7204
|
a.player.options.contextmenu[i].click && o.addEventListener("click", function() {
|
|
7407
7205
|
a.player.options.contextmenu[i].click(a.player), a.hide();
|
|
7408
7206
|
});
|
|
7409
7207
|
}), this.contextmenuHandler = function(o) {
|
|
7410
|
-
if (a.shown)
|
|
7411
|
-
a.hide();
|
|
7208
|
+
if (a.shown) a.hide();
|
|
7412
7209
|
else {
|
|
7413
7210
|
var i = o || window.event;
|
|
7414
7211
|
i.preventDefault();
|
|
@@ -7442,13 +7239,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7442
7239
|
for (var r = 0; r < t.length; r++) {
|
|
7443
7240
|
var e = t[r];
|
|
7444
7241
|
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, (a = function(o, i) {
|
|
7445
|
-
if (je(o) !== "object" || o === null)
|
|
7446
|
-
return o;
|
|
7242
|
+
if (je(o) !== "object" || o === null) return o;
|
|
7447
7243
|
var l = o[Symbol.toPrimitive];
|
|
7448
7244
|
if (l !== void 0) {
|
|
7449
7245
|
var s = l.call(o, "string");
|
|
7450
|
-
if (je(s) !== "object")
|
|
7451
|
-
return s;
|
|
7246
|
+
if (je(s) !== "object") return s;
|
|
7452
7247
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
7453
7248
|
}
|
|
7454
7249
|
return String(o);
|
|
@@ -7460,8 +7255,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7460
7255
|
function n(e) {
|
|
7461
7256
|
var a = this;
|
|
7462
7257
|
(function(o, i) {
|
|
7463
|
-
if (!(o instanceof i))
|
|
7464
|
-
throw new TypeError("Cannot call a class as a function");
|
|
7258
|
+
if (!(o instanceof i)) throw new TypeError("Cannot call a class as a function");
|
|
7465
7259
|
})(this, n), this.container = e.template.infoPanel, this.template = e.template, this.video = e.video, this.player = e, this.template.infoPanelClose.addEventListener("click", function() {
|
|
7466
7260
|
a.hide();
|
|
7467
7261
|
});
|
|
@@ -7509,13 +7303,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7509
7303
|
}
|
|
7510
7304
|
function it(n) {
|
|
7511
7305
|
var t = function(r, e) {
|
|
7512
|
-
if (De(r) !== "object" || r === null)
|
|
7513
|
-
return r;
|
|
7306
|
+
if (De(r) !== "object" || r === null) return r;
|
|
7514
7307
|
var a = r[Symbol.toPrimitive];
|
|
7515
7308
|
if (a !== void 0) {
|
|
7516
7309
|
var o = a.call(r, "string");
|
|
7517
|
-
if (De(o) !== "object")
|
|
7518
|
-
return o;
|
|
7310
|
+
if (De(o) !== "object") return o;
|
|
7519
7311
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
7520
7312
|
}
|
|
7521
7313
|
return String(r);
|
|
@@ -7526,12 +7318,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7526
7318
|
function n(a) {
|
|
7527
7319
|
var o = this;
|
|
7528
7320
|
(function(i, l) {
|
|
7529
|
-
if (!(i instanceof l))
|
|
7530
|
-
throw new TypeError("Cannot call a class as a function");
|
|
7321
|
+
if (!(i instanceof l)) throw new TypeError("Cannot call a class as a function");
|
|
7531
7322
|
})(this, n), this.options = function(i) {
|
|
7532
7323
|
var l = { container: i.element || document.getElementsByClassName("dplayer")[0], live: !1, autoplay: !1, theme: "#b7daff", loop: !1, lang: (navigator.language || navigator.browserLanguage).toLowerCase(), screenshot: !1, airplay: !0, chromecast: !1, hotkey: !0, preload: "metadata", volume: 0.7, playbackSpeed: [0.5, 0.75, 1, 1.25, 1.5, 2], apiBackend: Wt, video: {}, contextmenu: [], mutex: !0, pluginOptions: { hls: {}, flv: {}, dash: {}, webtorrent: {} }, preventClickToggle: !1 };
|
|
7533
|
-
for (var s in l)
|
|
7534
|
-
l.hasOwnProperty(s) && !i.hasOwnProperty(s) && (i[s] = l[s]);
|
|
7324
|
+
for (var s in l) l.hasOwnProperty(s) && !i.hasOwnProperty(s) && (i[s] = l[s]);
|
|
7535
7325
|
return i.video && !i.video.type && (i.video.type = "auto"), un(i.danmaku) === "object" && i.danmaku && !i.danmaku.user && (i.danmaku.user = "DIYgod"), i.subtitle && (!i.subtitle.type && (i.subtitle.type = "webvtt"), !i.subtitle.fontSize && (i.subtitle.fontSize = "20px"), !i.subtitle.bottom && (i.subtitle.bottom = "40px"), !i.subtitle.color && (i.subtitle.color = "#fff")), i.video.quality && (i.video.url = i.video.quality[i.video.defaultQuality].url), i.lang && (i.lang = i.lang.toLowerCase()), i.contextmenu = i.contextmenu.concat([{ key: "video-info", click: function(d) {
|
|
7536
7326
|
d.infoPanel.triggle();
|
|
7537
7327
|
} }, { key: "about-author", link: "https://diygod.me" }, { text: "DPlayer v".concat("1.27.1"), link: "https://github.com/MoePlayer/DPlayer" }]), i;
|
|
@@ -7573,9 +7363,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7573
7363
|
if (this.paused = !1, this.video.paused && !T.isMobile && this.bezel.switch(N.play), this.template.playButton.innerHTML = N.pause, this.template.mobilePlayButton.innerHTML = N.pause, a || yt.resolve(this.video.play()).catch(function() {
|
|
7574
7364
|
o.pause();
|
|
7575
7365
|
}).then(function() {
|
|
7576
|
-
}), this.timer.enable("loading"), this.container.classList.remove("dplayer-paused"), this.container.classList.add("dplayer-playing"), this.danmaku && this.danmaku.play(), this.options.mutex)
|
|
7577
|
-
for (var i = 0; i < le.length; i++)
|
|
7578
|
-
this !== le[i] && le[i].pause();
|
|
7366
|
+
}), this.timer.enable("loading"), this.container.classList.remove("dplayer-paused"), this.container.classList.add("dplayer-playing"), this.danmaku && this.danmaku.play(), this.options.mutex) for (var i = 0; i < le.length; i++) this !== le[i] && le[i].pause();
|
|
7579
7367
|
} }, { key: "pause", value: function(a) {
|
|
7580
7368
|
this.paused = !0, this.container.classList.remove("dplayer-loading"), this.video.paused || T.isMobile || this.bezel.switch(N.pause), this.template.playButton.innerHTML = N.play, this.template.mobilePlayButton.innerHTML = N.play, a || this.video.pause(), this.timer.disable("loading"), this.container.classList.remove("dplayer-playing"), this.container.classList.add("dplayer-paused"), this.danmaku && this.danmaku.pause();
|
|
7581
7369
|
} }, { key: "switchVolumeIcon", value: function() {
|
|
@@ -7595,64 +7383,52 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7595
7383
|
this.pause(), this.video.poster = a.pic ? a.pic : "", this.video.src = a.url, this.initMSE(this.video, a.type || "auto"), o && (this.template.danmakuLoading.style.display = "block", this.bar.set("played", 0, "width"), this.bar.set("loaded", 0, "width"), this.template.ptime.innerHTML = "00:00", this.template.danmaku.innerHTML = "", this.danmaku && this.danmaku.reload({ id: o.id, address: o.api, token: o.token, maximum: o.maximum, addition: o.addition, user: o.user }));
|
|
7596
7384
|
} }, { key: "initMSE", value: function(a, o) {
|
|
7597
7385
|
var i = this;
|
|
7598
|
-
if (this.type = o, this.options.video.customType && this.options.video.customType[o])
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
|
|
7607
|
-
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
7622
|
-
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
|
|
7637
|
-
|
|
7638
|
-
|
|
7639
|
-
|
|
7640
|
-
|
|
7641
|
-
|
|
7642
|
-
|
|
7643
|
-
|
|
7644
|
-
}, { once: !0 }), w.add(g, function(h) {
|
|
7645
|
-
h.files.find(function(k) {
|
|
7646
|
-
return k.name.endsWith(".mp4");
|
|
7647
|
-
}).renderTo(i.video, { autoplay: i.options.autoplay, controls: !1 });
|
|
7648
|
-
}), this.events.on("destroy", function() {
|
|
7649
|
-
w.remove(g), w.destroy(), delete i.plugins.webtorrent;
|
|
7650
|
-
});
|
|
7651
|
-
} else
|
|
7652
|
-
this.notice("Error: Webtorrent is not supported.");
|
|
7653
|
-
else
|
|
7654
|
-
this.notice("Error: Can't find Webtorrent.");
|
|
7655
|
-
}
|
|
7386
|
+
if (this.type = o, this.options.video.customType && this.options.video.customType[o]) Object.prototype.toString.call(this.options.video.customType[o]) === "[object Function]" ? this.options.video.customType[o](this.video, this) : console.error("Illegal customType: ".concat(o));
|
|
7387
|
+
else switch (this.type === "auto" && (/m3u8(#|\?|$)/i.exec(a.src) ? this.type = "hls" : /.flv(#|\?|$)/i.exec(a.src) ? this.type = "flv" : /.mpd(#|\?|$)/i.exec(a.src) ? this.type = "dash" : this.type = "normal"), this.type === "hls" && (a.canPlayType("application/x-mpegURL") || a.canPlayType("application/vnd.apple.mpegURL")) && (this.type = "normal"), this.type) {
|
|
7388
|
+
case "hls":
|
|
7389
|
+
if (window.Hls) if (window.Hls.isSupported()) {
|
|
7390
|
+
var l = this.options.pluginOptions.hls, s = new window.Hls(l);
|
|
7391
|
+
this.plugins.hls = s, s.loadSource(a.src), s.attachMedia(a), this.events.on("destroy", function() {
|
|
7392
|
+
s.destroy(), delete i.plugins.hls;
|
|
7393
|
+
});
|
|
7394
|
+
} else this.notice("Error: Hls is not supported.");
|
|
7395
|
+
else this.notice("Error: Can't find Hls.");
|
|
7396
|
+
break;
|
|
7397
|
+
case "flv":
|
|
7398
|
+
if (window.flvjs) if (window.flvjs.isSupported()) {
|
|
7399
|
+
var d = window.flvjs.createPlayer(Object.assign(this.options.pluginOptions.flv.mediaDataSource || {}, { type: "flv", url: a.src }), this.options.pluginOptions.flv.config);
|
|
7400
|
+
this.plugins.flvjs = d, d.attachMediaElement(a), d.load(), this.events.on("destroy", function() {
|
|
7401
|
+
d.unload(), d.detachMediaElement(), d.destroy(), delete i.plugins.flvjs;
|
|
7402
|
+
});
|
|
7403
|
+
} else this.notice("Error: flvjs is not supported.");
|
|
7404
|
+
else this.notice("Error: Can't find flvjs.");
|
|
7405
|
+
break;
|
|
7406
|
+
case "dash":
|
|
7407
|
+
if (window.dashjs) {
|
|
7408
|
+
var c = window.dashjs.MediaPlayer().create().initialize(a, a.src, !1), m = this.options.pluginOptions.dash;
|
|
7409
|
+
c.updateSettings(m), this.plugins.dash = c, this.events.on("destroy", function() {
|
|
7410
|
+
window.dashjs.MediaPlayer().reset(), delete i.plugins.dash;
|
|
7411
|
+
});
|
|
7412
|
+
} else this.notice("Error: Can't find dashjs.");
|
|
7413
|
+
break;
|
|
7414
|
+
case "webtorrent":
|
|
7415
|
+
if (window.WebTorrent) if (window.WebTorrent.WEBRTC_SUPPORT) {
|
|
7416
|
+
this.container.classList.add("dplayer-loading");
|
|
7417
|
+
var b = this.options.pluginOptions.webtorrent, w = new window.WebTorrent(b);
|
|
7418
|
+
this.plugins.webtorrent = w;
|
|
7419
|
+
var g = a.src;
|
|
7420
|
+
a.src = "", a.preload = "metadata", a.addEventListener("durationchange", function() {
|
|
7421
|
+
return i.container.classList.remove("dplayer-loading");
|
|
7422
|
+
}, { once: !0 }), w.add(g, function(h) {
|
|
7423
|
+
h.files.find(function(k) {
|
|
7424
|
+
return k.name.endsWith(".mp4");
|
|
7425
|
+
}).renderTo(i.video, { autoplay: i.options.autoplay, controls: !1 });
|
|
7426
|
+
}), this.events.on("destroy", function() {
|
|
7427
|
+
w.remove(g), w.destroy(), delete i.plugins.webtorrent;
|
|
7428
|
+
});
|
|
7429
|
+
} else this.notice("Error: Webtorrent is not supported.");
|
|
7430
|
+
else this.notice("Error: Can't find Webtorrent.");
|
|
7431
|
+
}
|
|
7656
7432
|
} }, { key: "initVideo", value: function(a, o) {
|
|
7657
7433
|
var i = this;
|
|
7658
7434
|
this.initMSE(a, o), this.on("durationchange", function() {
|
|
@@ -7677,8 +7453,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7677
7453
|
a.addEventListener(i.events.videoEvents[d], function(c) {
|
|
7678
7454
|
i.events.trigger(i.events.videoEvents[d], c);
|
|
7679
7455
|
});
|
|
7680
|
-
}, s = 0; s < this.events.videoEvents.length; s++)
|
|
7681
|
-
l(s);
|
|
7456
|
+
}, s = 0; s < this.events.videoEvents.length; s++) l(s);
|
|
7682
7457
|
this.volume(this.user.get("volume"), !0, !0), this.options.subtitle && (this.subtitle = new Wa(this.template.subtitle, this.video, this.options.subtitle, this.events), Array.isArray(this.options.subtitle.url) && (this.subtitles = new Qa(this)), this.user.get("subtitle") || this.subtitle.hide());
|
|
7683
7458
|
} }, { key: "switchQuality", value: function(a) {
|
|
7684
7459
|
var o = this;
|
|
@@ -7689,8 +7464,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7689
7464
|
var l = Eo()({ current: !1, pic: null, screenshot: this.options.screenshot, preload: "auto", url: this.quality.url, subtitle: this.options.subtitle }), s = new DOMParser().parseFromString(l, "text/html").body.firstChild;
|
|
7690
7465
|
this.template.videoWrap.insertBefore(s, this.template.videoWrap.getElementsByTagName("div")[0]), this.prevVideo = this.video, this.video = s, this.initVideo(this.video, this.quality.type || this.options.video.type), this.seek(this.prevVideo.currentTime), this.notice("".concat(this.tran("switching-quality").replace("%q", this.quality.name)), -1, void 0, "switch-quality"), this.events.trigger("quality_start", this.quality), this.on("canplay", function() {
|
|
7691
7466
|
if (o.prevVideo) {
|
|
7692
|
-
if (o.video.currentTime !== o.prevVideo.currentTime)
|
|
7693
|
-
return void o.seek(o.prevVideo.currentTime);
|
|
7467
|
+
if (o.video.currentTime !== o.prevVideo.currentTime) return void o.seek(o.prevVideo.currentTime);
|
|
7694
7468
|
o.template.videoWrap.removeChild(o.prevVideo), o.video.classList.add("dplayer-video-current"), i || o.video.play(), o.prevVideo = null, o.notice("".concat(o.tran("switched-quality").replace("%q", o.quality.name)), void 0, void 0, "switch-quality"), o.switchingQuality = !1, o.events.trigger("quality_end");
|
|
7695
7469
|
}
|
|
7696
7470
|
}), this.on("error", function() {
|