mn-video-player 1.2.5 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts.map +1 -1
- package/dist/mn-video-player.es.js +125 -125
- package/dist/mn-video-player.es.js.map +1 -1
- package/dist/mn-video-player.umd.js +2 -2
- package/dist/mn-video-player.umd.js.map +1 -1
- package/dist/{mn-worker-DfFDSJOR.js → mn-worker-u8K6bNRK.js} +2 -2
- package/dist/{mn-worker-DfFDSJOR.js.map → mn-worker-u8K6bNRK.js.map} +1 -1
- package/package.json +1 -1
|
@@ -47,8 +47,8 @@ Je.prototype.initGL = function(R) {
|
|
|
47
47
|
" gl_FragColor = vec4(texture2D(YTexture, vTextureCoord).x, texture2D(UTexture, vTextureCoord).x, texture2D(VTexture, vTextureCoord).x, 1) * YUV2RGB;",
|
|
48
48
|
"}"
|
|
49
49
|
].join(`
|
|
50
|
-
`),
|
|
51
|
-
a.shaderSource(
|
|
50
|
+
`), D = a.createShader(a.FRAGMENT_SHADER);
|
|
51
|
+
a.shaderSource(D, w), a.compileShader(D), a.attachShader(p, k), a.attachShader(p, D), a.linkProgram(p), a.useProgram(p), a.getProgramParameter(p, a.LINK_STATUS) || console.log("[ER] Shader link failed.");
|
|
52
52
|
var $ = a.getAttribLocation(p, "aVertexPosition");
|
|
53
53
|
a.enableVertexAttribArray($);
|
|
54
54
|
var q = a.getAttribLocation(p, "aTextureCoord");
|
|
@@ -166,7 +166,7 @@ class Qn {
|
|
|
166
166
|
let w = 0;
|
|
167
167
|
for (const L of p)
|
|
168
168
|
k.set(L.data, w), w += L.data.length;
|
|
169
|
-
const
|
|
169
|
+
const D = this.audioCtx.createBufferSource(), $ = k.length / this.option.channels, q = this.audioCtx.createBuffer(
|
|
170
170
|
this.option.channels,
|
|
171
171
|
$,
|
|
172
172
|
this.option.sampleRate
|
|
@@ -176,18 +176,18 @@ class Qn {
|
|
|
176
176
|
for (F = q.getChannelData(re), Z = re, de = 50, ie = 0; ie < $; ie++)
|
|
177
177
|
F[ie] = k[Z], ie < 50 && (F[ie] = F[ie] * ie / 50), ie >= $ - 51 && (F[ie] = F[ie] * de-- / 50), Z += this.option.channels;
|
|
178
178
|
let M;
|
|
179
|
-
p[0].timestamp !== null ? M = Math.max(p[0].timestamp, this.startTime) : M = Math.max(a, this.startTime),
|
|
179
|
+
p[0].timestamp !== null ? M = Math.max(p[0].timestamp, this.startTime) : M = Math.max(a, this.startTime), D.buffer = q, D.connect(this.gainNode), D.playbackRate.value = this.playbackRate;
|
|
180
180
|
const W = {
|
|
181
|
-
bufferSource:
|
|
181
|
+
bufferSource: D,
|
|
182
182
|
buffer: q,
|
|
183
183
|
startTime: M,
|
|
184
184
|
endTime: M + q.duration / this.playbackRate,
|
|
185
185
|
rawData: p
|
|
186
186
|
};
|
|
187
|
-
this.playingBuffers.push(W),
|
|
188
|
-
const L = this.playingBuffers.findIndex((Le) => Le.bufferSource ===
|
|
187
|
+
this.playingBuffers.push(W), D.onended = () => {
|
|
188
|
+
const L = this.playingBuffers.findIndex((Le) => Le.bufferSource === D);
|
|
189
189
|
L !== -1 && this.playingBuffers.splice(L, 1);
|
|
190
|
-
},
|
|
190
|
+
}, D.start(M), this.startTime = M + q.duration / this.playbackRate;
|
|
191
191
|
const Ne = new Set(p.map(
|
|
192
192
|
(L, Le) => this.cacheDataList.findIndex(
|
|
193
193
|
(Ke) => Ke.data === L.data && Ke.timestamp === L.timestamp
|
|
@@ -208,10 +208,10 @@ class Qn {
|
|
|
208
208
|
k,
|
|
209
209
|
this.option.sampleRate
|
|
210
210
|
);
|
|
211
|
-
let
|
|
211
|
+
let D, $, q, F, re;
|
|
212
212
|
for ($ = 0; $ < this.option.channels; $++)
|
|
213
|
-
for (
|
|
214
|
-
|
|
213
|
+
for (D = w.getChannelData($), q = $, re = 50, F = 0; F < k; F++)
|
|
214
|
+
D[F] = a[q], F < 50 && (D[F] = D[F] * F / 50), F >= k - 51 && (D[F] = D[F] * re-- / 50), q += this.option.channels;
|
|
215
215
|
let Z;
|
|
216
216
|
p !== null ? this.baseTime !== null ? Z = this.baseAudioTime + (p - this.baseTime) : Z = this.audioCtx.currentTime : Z = Math.max(this.audioCtx.currentTime, this.startTime), m.buffer = w, m.connect(this.gainNode), m.playbackRate.value = this.playbackRate;
|
|
217
217
|
const ie = {
|
|
@@ -251,8 +251,8 @@ class xr {
|
|
|
251
251
|
console.log("[" + this.currentTimeStr() + "][" + this.module + "][DT] " + a);
|
|
252
252
|
}
|
|
253
253
|
currentTimeStr() {
|
|
254
|
-
const a = new Date(Date.now()), p = a.getFullYear(), m = a.getMonth() + 1, k = a.getDate(), w = a.getHours(),
|
|
255
|
-
return p + "-" + m + "-" + k + " " + w + ":" +
|
|
254
|
+
const a = new Date(Date.now()), p = a.getFullYear(), m = a.getMonth() + 1, k = a.getDate(), w = a.getHours(), D = a.getMinutes(), $ = a.getSeconds(), q = a.getMilliseconds();
|
|
255
|
+
return p + "-" + m + "-" + k + " " + w + ":" + D + ":" + $ + ":" + q;
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
const G = {
|
|
@@ -282,7 +282,7 @@ const G = {
|
|
|
282
282
|
}, br = "data:image/svg+xml,%3c!--%20By%20Sam%20Herbert%20(@sherb),%20for%20everyone.%20More%20@%20http://goo.gl/7AJzbL%20--%3e%3c!--%20Todo:%20add%20easing%20--%3e%3csvg%20width='57'%20height='57'%20viewBox='0%200%2057%2057'%20xmlns='http://www.w3.org/2000/svg'%20stroke='%23fff'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20transform='translate(1%201)'%20stroke-width='2'%3e%3ccircle%20cx='5'%20cy='50'%20r='5'%3e%3canimate%20attributeName='cy'%20begin='0s'%20dur='2.2s'%20values='50;5;50;50'%20calcMode='linear'%20repeatCount='indefinite'%20/%3e%3canimate%20attributeName='cx'%20begin='0s'%20dur='2.2s'%20values='5;27;49;5'%20calcMode='linear'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='27'%20cy='5'%20r='5'%3e%3canimate%20attributeName='cy'%20begin='0s'%20dur='2.2s'%20from='5'%20to='5'%20values='5;50;50;5'%20calcMode='linear'%20repeatCount='indefinite'%20/%3e%3canimate%20attributeName='cx'%20begin='0s'%20dur='2.2s'%20from='27'%20to='27'%20values='27;49;5;27'%20calcMode='linear'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='49'%20cy='50'%20r='5'%3e%3canimate%20attributeName='cy'%20begin='0s'%20dur='2.2s'%20values='50;50;5;50'%20calcMode='linear'%20repeatCount='indefinite'%20/%3e%3canimate%20attributeName='cx'%20from='49'%20to='49'%20begin='0s'%20dur='2.2s'%20values='49;5;27;49'%20calcMode='linear'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
283
283
|
function Tr(R) {
|
|
284
284
|
return new Worker(
|
|
285
|
-
"" + new URL("mn-worker-
|
|
285
|
+
"" + new URL("mn-worker-u8K6bNRK.js", import.meta.url).href,
|
|
286
286
|
{
|
|
287
287
|
name: R?.name
|
|
288
288
|
}
|
|
@@ -303,8 +303,8 @@ class ee {
|
|
|
303
303
|
static frameCache = [];
|
|
304
304
|
static intervalTimer = null;
|
|
305
305
|
static onlyWasm = !1;
|
|
306
|
-
constructor(a, p, m, k, w,
|
|
307
|
-
this.phone = a, this.channel = p, this.div = m, this.chlId = "chlId", this.spedId = "spedId", this.loadId = null, this.hintId = null, this.loading = !0, this.canvas = k, this.lang = w, this.streamTime = null, this.replayTimer = null, this.isFirstLoad = !1, this.frameCache = [], this.intervalTimer = null, this.onlyWasm =
|
|
306
|
+
constructor(a, p, m, k, w, D) {
|
|
307
|
+
this.phone = a, this.channel = p, this.div = m, this.chlId = "chlId", this.spedId = "spedId", this.loadId = null, this.hintId = null, this.loading = !0, this.canvas = k, this.lang = w, this.streamTime = null, this.replayTimer = null, this.isFirstLoad = !1, this.frameCache = [], this.intervalTimer = null, this.onlyWasm = D, this.messageId = 0, this.mediaType = -1, this.streamType = -1, this.beginTime = "", this.timeout = 3e4, this.playbackMode = null, this.width = 0, this.height = 0, this.yLength = 0, this.uvLength = 0, this.mnVideo = null, this.mnAudio = null, this.mnWorker = null, this.playAudio = !1, this.playerState = Kt, this.decoderState = Wi, this.audioEncoding = "16bitInt", this.audioChannels = 1, this.audioSampleRate = 8e3, this.supportH264 = !1, this.supportH265 = !1, this.logger = new G.Logger("MnPlayer"), this.mnAudio = new Qn({
|
|
308
308
|
encoding: this.audioEncoding,
|
|
309
309
|
channels: this.audioChannels,
|
|
310
310
|
sampleRate: this.audioSampleRate,
|
|
@@ -795,7 +795,7 @@ class ee {
|
|
|
795
795
|
return a.byteLength <= 16 ? new ArrayBuffer(0) : a.slice(0, a.byteLength - 16);
|
|
796
796
|
}
|
|
797
797
|
annexBToAvcc(a) {
|
|
798
|
-
const p = a.reduce((w,
|
|
798
|
+
const p = a.reduce((w, D) => w + 4 + D.length, 0), m = new Uint8Array(p);
|
|
799
799
|
let k = 0;
|
|
800
800
|
for (const w of a)
|
|
801
801
|
m[k++] = w.length >>> 24 & 255, m[k++] = w.length >>> 16 & 255, m[k++] = w.length >>> 8 & 255, m[k++] = w.length & 255, m.set(w, k), k += w.length;
|
|
@@ -814,9 +814,9 @@ class ee {
|
|
|
814
814
|
}
|
|
815
815
|
a[m + (a[m + 2] === 1 ? 3 : 4)];
|
|
816
816
|
const w = m + (a[m + 2] === 1 ? 3 : 4);
|
|
817
|
-
let
|
|
818
|
-
for (;
|
|
819
|
-
p.push(a.subarray(w,
|
|
817
|
+
let D = w;
|
|
818
|
+
for (; D < a.length && !k(D); ) D++;
|
|
819
|
+
p.push(a.subarray(w, D)), m = D;
|
|
820
820
|
}
|
|
821
821
|
return p;
|
|
822
822
|
}
|
|
@@ -824,11 +824,11 @@ class ee {
|
|
|
824
824
|
let p = null, m = null, k = 0;
|
|
825
825
|
for (; k + 4 < a.length; )
|
|
826
826
|
if (a[k] === 0 && a[k + 1] === 0 && (a[k + 2] === 1 || a[k + 2] === 0 && a[k + 3] === 1)) {
|
|
827
|
-
const w = a[k + 2] === 1 ? 3 : 4,
|
|
828
|
-
let q =
|
|
827
|
+
const w = a[k + 2] === 1 ? 3 : 4, D = k + w, $ = a[D] & 31;
|
|
828
|
+
let q = D + 1;
|
|
829
829
|
for (; q + 3 < a.length && !(a[q] === 0 && a[q + 1] === 0 && (a[q + 2] === 1 || a[q + 2] === 0 && a[q + 3] === 1)); )
|
|
830
830
|
q++;
|
|
831
|
-
const F = a.slice(
|
|
831
|
+
const F = a.slice(D, q);
|
|
832
832
|
if ($ === 7 && !p && (p = F), $ === 8 && !m && (m = F), $ === 32 && !p && (p = F), $ === 33 && !m && (m = F), p && m) break;
|
|
833
833
|
k = q;
|
|
834
834
|
} else
|
|
@@ -852,8 +852,8 @@ class ee {
|
|
|
852
852
|
const ie = a.subarray(re, Z), de = ie[0] >> 1 & 63;
|
|
853
853
|
(de === 32 || de === 33 || de === 34) && p.push({ type: de, data: ie }), m = Z;
|
|
854
854
|
}
|
|
855
|
-
const w = p.find((q) => q.type === 32)?.data,
|
|
856
|
-
return { vps: w, sps:
|
|
855
|
+
const w = p.find((q) => q.type === 32)?.data, D = p.find((q) => q.type === 33)?.data, $ = p.find((q) => q.type === 34)?.data;
|
|
856
|
+
return { vps: w, sps: D, pps: $ };
|
|
857
857
|
}
|
|
858
858
|
guessCodec(a) {
|
|
859
859
|
if (a.length < 1) return null;
|
|
@@ -892,8 +892,8 @@ class ee {
|
|
|
892
892
|
}
|
|
893
893
|
makeAvcC(a, p) {
|
|
894
894
|
const m = a.length, k = p.length, w = new Uint8Array(8 + m + 3 + k);
|
|
895
|
-
let
|
|
896
|
-
return w[
|
|
895
|
+
let D = 0;
|
|
896
|
+
return w[D++] = 1, w[D++] = a[1], w[D++] = a[2], w[D++] = a[3], w[D++] = 255, w[D++] = 225, w[D++] = m >> 8 & 255, w[D++] = m & 255, w.set(a, D), D += m, w[D++] = 1, w[D++] = k >> 8 & 255, w[D++] = k & 255, w.set(p, D), w;
|
|
897
897
|
}
|
|
898
898
|
/**
|
|
899
899
|
* 解码视频帧
|
|
@@ -914,9 +914,9 @@ class ee {
|
|
|
914
914
|
return `avc1.${re.toString(16).padStart(2, "0")}${Z.toString(16).padStart(2, "0")}${ie.toString(16).padStart(2, "0")}`;
|
|
915
915
|
};
|
|
916
916
|
this.frameType = "h264";
|
|
917
|
-
const { sps: w, pps:
|
|
918
|
-
if (!w || !
|
|
919
|
-
this.sps = w, this.pps =
|
|
917
|
+
const { sps: w, pps: D } = this.extractSpsPps(a);
|
|
918
|
+
if (!w || !D) return;
|
|
919
|
+
this.sps = w, this.pps = D, this.avcC = this.makeAvcC(w, D), console.warn("avcC", this.avcC);
|
|
920
920
|
let q = $(w);
|
|
921
921
|
if (this.videoDecoder.configure({
|
|
922
922
|
codec: q,
|
|
@@ -930,8 +930,8 @@ class ee {
|
|
|
930
930
|
return;
|
|
931
931
|
} else {
|
|
932
932
|
this.frameType = "h265";
|
|
933
|
-
const { vps: w, sps:
|
|
934
|
-
if (this.vps = w, this.sps =
|
|
933
|
+
const { vps: w, sps: D, pps: $ } = this.extractVpsSpsPps(a);
|
|
934
|
+
if (this.vps = w, this.sps = D, this.pps = $, !w || !D || !$) return;
|
|
935
935
|
if (this.videoDecoder.configure({
|
|
936
936
|
codec: "hev1.1.6.L93.B0"
|
|
937
937
|
// codedWidth: this.width || 640,
|
|
@@ -944,7 +944,7 @@ class ee {
|
|
|
944
944
|
}
|
|
945
945
|
if (this.frameType == "h264") {
|
|
946
946
|
let k = this.annexBToAvcc(this.splitAnnexBNalus(a)), w = 33333;
|
|
947
|
-
const
|
|
947
|
+
const D = new EncodedVideoChunk({
|
|
948
948
|
type: m ? "key" : "delta",
|
|
949
949
|
// 根据是否关键帧设置类型
|
|
950
950
|
// type: "key", // 根据是否关键帧设置类型
|
|
@@ -955,7 +955,7 @@ class ee {
|
|
|
955
955
|
duration: w
|
|
956
956
|
// 假设30fps,约33.33ms
|
|
957
957
|
});
|
|
958
|
-
this.videoDecoder.decode(
|
|
958
|
+
this.videoDecoder.decode(D);
|
|
959
959
|
} else {
|
|
960
960
|
let k = 33333;
|
|
961
961
|
const w = new EncodedVideoChunk({
|
|
@@ -1015,7 +1015,7 @@ function Cr() {
|
|
|
1015
1015
|
return p(m);
|
|
1016
1016
|
};
|
|
1017
1017
|
})(typeof window < "u" ? window : Sr, function(a, p) {
|
|
1018
|
-
var m = [], k = Object.getPrototypeOf, w = m.slice,
|
|
1018
|
+
var m = [], k = Object.getPrototypeOf, w = m.slice, D = m.flat ? function(e) {
|
|
1019
1019
|
return m.flat.call(e);
|
|
1020
1020
|
} : function(e) {
|
|
1021
1021
|
return m.concat.apply([], e);
|
|
@@ -1190,7 +1190,7 @@ function Cr() {
|
|
|
1190
1190
|
else
|
|
1191
1191
|
for (o in e)
|
|
1192
1192
|
s = t(e[o], o, i), s != null && u.push(s);
|
|
1193
|
-
return
|
|
1193
|
+
return D(u);
|
|
1194
1194
|
},
|
|
1195
1195
|
// A global GUID counter for objects
|
|
1196
1196
|
guid: 1,
|
|
@@ -1227,9 +1227,9 @@ function Cr() {
|
|
|
1227
1227
|
r.escapeSelector = function(e) {
|
|
1228
1228
|
return (e + "").replace(zi, Xi);
|
|
1229
1229
|
};
|
|
1230
|
-
var ke = L,
|
|
1230
|
+
var ke = L, At = $;
|
|
1231
1231
|
(function() {
|
|
1232
|
-
var e, t, i, n, s, o =
|
|
1232
|
+
var e, t, i, n, s, o = At, u, c, l, h, x, T = r.expando, y = 0, S = 0, P = bt(), z = bt(), _ = bt(), se = bt(), ne = function(f, d) {
|
|
1233
1233
|
return f === d && (s = !0), 0;
|
|
1234
1234
|
}, be = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", Te = "(?:\\\\[\\da-fA-F]{1,6}" + Q + "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+", U = "\\[" + Q + "*(" + Te + ")(?:" + Q + // Operator (capture 2)
|
|
1235
1235
|
"*([*^$|!~]?=)" + Q + // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
|
|
@@ -1247,7 +1247,7 @@ function Cr() {
|
|
|
1247
1247
|
// For use in libraries implementing .is()
|
|
1248
1248
|
// We use this for POS matching in `select`
|
|
1249
1249
|
needsContext: new RegExp("^" + Q + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + Q + "*((?:-\\d)?\\d*)" + Q + "*\\)|)(?=[^-]|$)", "i")
|
|
1250
|
-
}, Ie = /^(?:input|select|textarea|button)$/i, qe = /^h\d$/i, pe = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, $t = /[+~]/,
|
|
1250
|
+
}, Ie = /^(?:input|select|textarea|button)$/i, qe = /^h\d$/i, pe = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, $t = /[+~]/, De = new RegExp("\\\\[\\da-fA-F]{1,6}" + Q + "?|\\\\([^\\r\\n\\f])", "g"), Re = function(f, d) {
|
|
1251
1251
|
var g = "0x" + f.slice(1) - 65536;
|
|
1252
1252
|
return d || (g < 0 ? String.fromCharCode(g + 65536) : String.fromCharCode(g >> 10 | 55296, g & 1023 | 56320));
|
|
1253
1253
|
}, Vn = function() {
|
|
@@ -1272,20 +1272,20 @@ function Cr() {
|
|
|
1272
1272
|
} catch {
|
|
1273
1273
|
o = {
|
|
1274
1274
|
apply: function(d, g) {
|
|
1275
|
-
|
|
1275
|
+
At.apply(d, w.call(g));
|
|
1276
1276
|
},
|
|
1277
1277
|
call: function(d) {
|
|
1278
|
-
|
|
1278
|
+
At.apply(d, w.call(arguments, 1));
|
|
1279
1279
|
}
|
|
1280
1280
|
};
|
|
1281
1281
|
}
|
|
1282
1282
|
function Y(f, d, g, v) {
|
|
1283
|
-
var b, C, E, N,
|
|
1283
|
+
var b, C, E, N, A, B, H, O = d && d.ownerDocument, V = d ? d.nodeType : 9;
|
|
1284
1284
|
if (g = g || [], typeof f != "string" || !f || V !== 1 && V !== 9 && V !== 11)
|
|
1285
1285
|
return g;
|
|
1286
1286
|
if (!v && (je(d), d = d || u, l)) {
|
|
1287
|
-
if (V !== 11 && (
|
|
1288
|
-
if (b =
|
|
1287
|
+
if (V !== 11 && (A = pe.exec(f)))
|
|
1288
|
+
if (b = A[1]) {
|
|
1289
1289
|
if (V === 9)
|
|
1290
1290
|
if (E = d.getElementById(b)) {
|
|
1291
1291
|
if (E.id === b)
|
|
@@ -1295,9 +1295,9 @@ function Cr() {
|
|
|
1295
1295
|
else if (O && (E = O.getElementById(b)) && Y.contains(d, E) && E.id === b)
|
|
1296
1296
|
return o.call(g, E), g;
|
|
1297
1297
|
} else {
|
|
1298
|
-
if (
|
|
1298
|
+
if (A[2])
|
|
1299
1299
|
return o.apply(g, d.getElementsByTagName(f)), g;
|
|
1300
|
-
if ((b =
|
|
1300
|
+
if ((b = A[3]) && d.getElementsByClassName)
|
|
1301
1301
|
return o.apply(g, d.getElementsByClassName(b)), g;
|
|
1302
1302
|
}
|
|
1303
1303
|
if (!se[f + " "] && (!h || !h.test(f))) {
|
|
@@ -1386,7 +1386,7 @@ function Cr() {
|
|
|
1386
1386
|
return !0;
|
|
1387
1387
|
}
|
|
1388
1388
|
}), M.getById ? (t.filter.ID = function(v) {
|
|
1389
|
-
var b = v.replace(
|
|
1389
|
+
var b = v.replace(De, Re);
|
|
1390
1390
|
return function(C) {
|
|
1391
1391
|
return C.getAttribute("id") === b;
|
|
1392
1392
|
};
|
|
@@ -1396,20 +1396,20 @@ function Cr() {
|
|
|
1396
1396
|
return C ? [C] : [];
|
|
1397
1397
|
}
|
|
1398
1398
|
}) : (t.filter.ID = function(v) {
|
|
1399
|
-
var b = v.replace(
|
|
1399
|
+
var b = v.replace(De, Re);
|
|
1400
1400
|
return function(C) {
|
|
1401
1401
|
var E = typeof C.getAttributeNode < "u" && C.getAttributeNode("id");
|
|
1402
1402
|
return E && E.value === b;
|
|
1403
1403
|
};
|
|
1404
1404
|
}, t.find.ID = function(v, b) {
|
|
1405
1405
|
if (typeof b.getElementById < "u" && l) {
|
|
1406
|
-
var C, E, N,
|
|
1407
|
-
if (
|
|
1408
|
-
if (C =
|
|
1409
|
-
return [
|
|
1410
|
-
for (N = b.getElementsByName(v), E = 0;
|
|
1411
|
-
if (C =
|
|
1412
|
-
return [
|
|
1406
|
+
var C, E, N, A = b.getElementById(v);
|
|
1407
|
+
if (A) {
|
|
1408
|
+
if (C = A.getAttributeNode("id"), C && C.value === v)
|
|
1409
|
+
return [A];
|
|
1410
|
+
for (N = b.getElementsByName(v), E = 0; A = N[E++]; )
|
|
1411
|
+
if (C = A.getAttributeNode("id"), C && C.value === v)
|
|
1412
|
+
return [A];
|
|
1413
1413
|
}
|
|
1414
1414
|
return [];
|
|
1415
1415
|
}
|
|
@@ -1479,7 +1479,7 @@ function Cr() {
|
|
|
1479
1479
|
},
|
|
1480
1480
|
preFilter: {
|
|
1481
1481
|
ATTR: function(f) {
|
|
1482
|
-
return f[1] = f[1].replace(
|
|
1482
|
+
return f[1] = f[1].replace(De, Re), f[3] = (f[3] || f[4] || f[5] || "").replace(De, Re), f[2] === "~=" && (f[3] = " " + f[3] + " "), f.slice(0, 4);
|
|
1483
1483
|
},
|
|
1484
1484
|
CHILD: function(f) {
|
|
1485
1485
|
return f[1] = f[1].toLowerCase(), f[1].slice(0, 3) === "nth" ? (f[3] || Y.error(f[0]), f[4] = +(f[4] ? f[5] + (f[6] || 1) : 2 * (f[3] === "even" || f[3] === "odd")), f[5] = +(f[7] + f[8] || f[3] === "odd")) : f[3] && Y.error(f[0]), f;
|
|
@@ -1493,7 +1493,7 @@ function Cr() {
|
|
|
1493
1493
|
},
|
|
1494
1494
|
filter: {
|
|
1495
1495
|
TAG: function(f) {
|
|
1496
|
-
var d = f.replace(
|
|
1496
|
+
var d = f.replace(De, Re).toLowerCase();
|
|
1497
1497
|
return f === "*" ? function() {
|
|
1498
1498
|
return !0;
|
|
1499
1499
|
} : function(g) {
|
|
@@ -1518,15 +1518,15 @@ function Cr() {
|
|
|
1518
1518
|
var C = f.slice(0, 3) !== "nth", E = f.slice(-4) !== "last", N = d === "of-type";
|
|
1519
1519
|
return v === 1 && b === 0 ? (
|
|
1520
1520
|
// Shortcut for :nth-*(n)
|
|
1521
|
-
function(
|
|
1522
|
-
return !!
|
|
1521
|
+
function(A) {
|
|
1522
|
+
return !!A.parentNode;
|
|
1523
1523
|
}
|
|
1524
|
-
) : function(
|
|
1525
|
-
var O, V, j, J, ce, oe = C !== E ? "nextSibling" : "previousSibling", ge =
|
|
1524
|
+
) : function(A, B, H) {
|
|
1525
|
+
var O, V, j, J, ce, oe = C !== E ? "nextSibling" : "previousSibling", ge = A.parentNode, Ce = N && A.nodeName.toLowerCase(), Qe = !H && !N, ae = !1;
|
|
1526
1526
|
if (ge) {
|
|
1527
1527
|
if (C) {
|
|
1528
1528
|
for (; oe; ) {
|
|
1529
|
-
for (j =
|
|
1529
|
+
for (j = A; j = j[oe]; )
|
|
1530
1530
|
if (N ? K(j, Ce) : j.nodeType === 1)
|
|
1531
1531
|
return !1;
|
|
1532
1532
|
ce = oe = f === "only" && !ce && "nextSibling";
|
|
@@ -1536,12 +1536,12 @@ function Cr() {
|
|
|
1536
1536
|
if (ce = [E ? ge.firstChild : ge.lastChild], E && Qe) {
|
|
1537
1537
|
for (V = ge[T] || (ge[T] = {}), O = V[f] || [], J = O[0] === y && O[1], ae = J && O[2], j = J && ge.childNodes[J]; j = ++J && j && j[oe] || // Fallback to seeking `elem` from the start
|
|
1538
1538
|
(ae = J = 0) || ce.pop(); )
|
|
1539
|
-
if (j.nodeType === 1 && ++ae && j ===
|
|
1539
|
+
if (j.nodeType === 1 && ++ae && j === A) {
|
|
1540
1540
|
V[f] = [y, J, ae];
|
|
1541
1541
|
break;
|
|
1542
1542
|
}
|
|
1543
|
-
} else if (Qe && (V =
|
|
1544
|
-
for (; (j = ++J && j && j[oe] || (ae = J = 0) || ce.pop()) && !((N ? K(j, Ce) : j.nodeType === 1) && ++ae && (Qe && (V = j[T] || (j[T] = {}), V[f] = [y, ae]), j ===
|
|
1543
|
+
} else if (Qe && (V = A[T] || (A[T] = {}), O = V[f] || [], J = O[0] === y && O[1], ae = J), ae === !1)
|
|
1544
|
+
for (; (j = ++J && j && j[oe] || (ae = J = 0) || ce.pop()) && !((N ? K(j, Ce) : j.nodeType === 1) && ++ae && (Qe && (V = j[T] || (j[T] = {}), V[f] = [y, ae]), j === A)); )
|
|
1545
1545
|
;
|
|
1546
1546
|
return ae -= b, ae === v || ae % v === 0 && ae / v >= 0;
|
|
1547
1547
|
}
|
|
@@ -1550,8 +1550,8 @@ function Cr() {
|
|
|
1550
1550
|
PSEUDO: function(f, d) {
|
|
1551
1551
|
var g, v = t.pseudos[f] || t.setFilters[f.toLowerCase()] || Y.error("unsupported pseudo: " + f);
|
|
1552
1552
|
return v[T] ? v(d) : v.length > 1 ? (g = [f, f, "", d], t.setFilters.hasOwnProperty(f.toLowerCase()) ? me(function(b, C) {
|
|
1553
|
-
for (var E, N = v(b, d),
|
|
1554
|
-
E = q.call(b, N[
|
|
1553
|
+
for (var E, N = v(b, d), A = N.length; A--; )
|
|
1554
|
+
E = q.call(b, N[A]), b[E] = !(C[E] = N[A]);
|
|
1555
1555
|
}) : function(b) {
|
|
1556
1556
|
return v(b, 0, g);
|
|
1557
1557
|
}) : v;
|
|
@@ -1562,8 +1562,8 @@ function Cr() {
|
|
|
1562
1562
|
not: me(function(f) {
|
|
1563
1563
|
var d = [], g = [], v = Qt(f.replace(Ze, "$1"));
|
|
1564
1564
|
return v[T] ? me(function(b, C, E, N) {
|
|
1565
|
-
for (var
|
|
1566
|
-
(
|
|
1565
|
+
for (var A, B = v(b, null, N, []), H = b.length; H--; )
|
|
1566
|
+
(A = B[H]) && (b[H] = !(C[H] = A));
|
|
1567
1567
|
}) : function(b, C, E) {
|
|
1568
1568
|
return d[0] = b, v(d, null, E, g), d[0] = null, !g.pop();
|
|
1569
1569
|
};
|
|
@@ -1574,7 +1574,7 @@ function Cr() {
|
|
|
1574
1574
|
};
|
|
1575
1575
|
}),
|
|
1576
1576
|
contains: me(function(f) {
|
|
1577
|
-
return f = f.replace(
|
|
1577
|
+
return f = f.replace(De, Re), function(d) {
|
|
1578
1578
|
return (d.textContent || r.text(d)).indexOf(f) > -1;
|
|
1579
1579
|
};
|
|
1580
1580
|
}),
|
|
@@ -1586,7 +1586,7 @@ function Cr() {
|
|
|
1586
1586
|
// The identifier C does not have to be a valid language name."
|
|
1587
1587
|
// https://www.w3.org/TR/selectors/#lang-pseudo
|
|
1588
1588
|
lang: me(function(f) {
|
|
1589
|
-
return ft.test(f || "") || Y.error("unsupported lang: " + f), f = f.replace(
|
|
1589
|
+
return ft.test(f || "") || Y.error("unsupported lang: " + f), f = f.replace(De, Re).toLowerCase(), function(d) {
|
|
1590
1590
|
var g;
|
|
1591
1591
|
do
|
|
1592
1592
|
if (g = l ? d.lang : d.getAttribute("xml:lang") || d.getAttribute("lang"))
|
|
@@ -1683,17 +1683,17 @@ function Cr() {
|
|
|
1683
1683
|
}
|
|
1684
1684
|
Fi.prototype = t.filters = t.pseudos, t.setFilters = new Fi();
|
|
1685
1685
|
function lt(f, d) {
|
|
1686
|
-
var g, v, b, C, E, N,
|
|
1686
|
+
var g, v, b, C, E, N, A, B = z[f + " "];
|
|
1687
1687
|
if (B)
|
|
1688
1688
|
return d ? 0 : B.slice(0);
|
|
1689
|
-
for (E = f, N = [],
|
|
1689
|
+
for (E = f, N = [], A = t.preFilter; E; ) {
|
|
1690
1690
|
(!g || (v = te.exec(E))) && (v && (E = E.slice(v[0].length) || E), N.push(b = [])), g = !1, (v = ut.exec(E)) && (g = v.shift(), b.push({
|
|
1691
1691
|
value: g,
|
|
1692
1692
|
// Cast descendant combinators to space
|
|
1693
1693
|
type: v[0].replace(Ze, " ")
|
|
1694
1694
|
}), E = E.slice(g.length));
|
|
1695
1695
|
for (C in t.filter)
|
|
1696
|
-
(v = Se[C].exec(E)) && (!
|
|
1696
|
+
(v = Se[C].exec(E)) && (!A[C] || (v = A[C](v))) && (g = v.shift(), b.push({
|
|
1697
1697
|
value: g,
|
|
1698
1698
|
type: C,
|
|
1699
1699
|
matches: v
|
|
@@ -1715,29 +1715,29 @@ function Cr() {
|
|
|
1715
1715
|
var v = d.dir, b = d.next, C = b || v, E = g && C === "parentNode", N = S++;
|
|
1716
1716
|
return d.first ? (
|
|
1717
1717
|
// Check against closest ancestor/preceding element
|
|
1718
|
-
function(
|
|
1719
|
-
for (;
|
|
1720
|
-
if (
|
|
1721
|
-
return f(
|
|
1718
|
+
function(A, B, H) {
|
|
1719
|
+
for (; A = A[v]; )
|
|
1720
|
+
if (A.nodeType === 1 || E)
|
|
1721
|
+
return f(A, B, H);
|
|
1722
1722
|
return !1;
|
|
1723
1723
|
}
|
|
1724
1724
|
) : (
|
|
1725
1725
|
// Check against all ancestor/preceding elements
|
|
1726
|
-
function(
|
|
1726
|
+
function(A, B, H) {
|
|
1727
1727
|
var O, V, j = [y, N];
|
|
1728
1728
|
if (H) {
|
|
1729
|
-
for (;
|
|
1730
|
-
if ((
|
|
1729
|
+
for (; A = A[v]; )
|
|
1730
|
+
if ((A.nodeType === 1 || E) && f(A, B, H))
|
|
1731
1731
|
return !0;
|
|
1732
1732
|
} else
|
|
1733
|
-
for (;
|
|
1734
|
-
if (
|
|
1735
|
-
if (V =
|
|
1736
|
-
|
|
1733
|
+
for (; A = A[v]; )
|
|
1734
|
+
if (A.nodeType === 1 || E)
|
|
1735
|
+
if (V = A[T] || (A[T] = {}), b && K(A, b))
|
|
1736
|
+
A = A[v] || A;
|
|
1737
1737
|
else {
|
|
1738
1738
|
if ((O = V[C]) && O[0] === y && O[1] === N)
|
|
1739
1739
|
return j[2] = O[2];
|
|
1740
|
-
if (V[C] = j, j[2] = f(
|
|
1740
|
+
if (V[C] = j, j[2] = f(A, B, H))
|
|
1741
1741
|
return !0;
|
|
1742
1742
|
}
|
|
1743
1743
|
return !1;
|
|
@@ -1758,25 +1758,25 @@ function Cr() {
|
|
|
1758
1758
|
return g;
|
|
1759
1759
|
}
|
|
1760
1760
|
function St(f, d, g, v, b) {
|
|
1761
|
-
for (var C, E = [], N = 0,
|
|
1761
|
+
for (var C, E = [], N = 0, A = f.length, B = d != null; N < A; N++)
|
|
1762
1762
|
(C = f[N]) && (!g || g(C, v, b)) && (E.push(C), B && d.push(N));
|
|
1763
1763
|
return E;
|
|
1764
1764
|
}
|
|
1765
1765
|
function Gt(f, d, g, v, b, C) {
|
|
1766
|
-
return v && !v[T] && (v = Gt(v)), b && !b[T] && (b = Gt(b, C)), me(function(E, N,
|
|
1766
|
+
return v && !v[T] && (v = Gt(v)), b && !b[T] && (b = Gt(b, C)), me(function(E, N, A, B) {
|
|
1767
1767
|
var H, O, V, j, J = [], ce = [], oe = N.length, ge = E || Gn(
|
|
1768
1768
|
d || "*",
|
|
1769
|
-
|
|
1769
|
+
A.nodeType ? [A] : A,
|
|
1770
1770
|
[]
|
|
1771
|
-
), Ce = f && (E || !d) ? St(ge, J, f,
|
|
1771
|
+
), Ce = f && (E || !d) ? St(ge, J, f, A, B) : ge;
|
|
1772
1772
|
if (g ? (j = b || (E ? f : oe || v) ? (
|
|
1773
1773
|
// ...intermediate processing is necessary
|
|
1774
1774
|
[]
|
|
1775
1775
|
) : (
|
|
1776
1776
|
// ...otherwise use results directly
|
|
1777
1777
|
N
|
|
1778
|
-
), g(Ce, j,
|
|
1779
|
-
for (H = St(j, ce), v(H, [],
|
|
1778
|
+
), g(Ce, j, A, B)) : j = Ce, v)
|
|
1779
|
+
for (H = St(j, ce), v(H, [], A, B), O = H.length; O--; )
|
|
1780
1780
|
(V = H[O]) && (j[ce[O]] = !(Ce[ce[O]] = V));
|
|
1781
1781
|
if (E) {
|
|
1782
1782
|
if (b || f) {
|
|
@@ -1795,12 +1795,12 @@ function Cr() {
|
|
|
1795
1795
|
});
|
|
1796
1796
|
}
|
|
1797
1797
|
function Yt(f) {
|
|
1798
|
-
for (var d, g, v, b = f.length, C = t.relative[f[0].type], E = C || t.relative[" "], N = C ? 1 : 0,
|
|
1798
|
+
for (var d, g, v, b = f.length, C = t.relative[f[0].type], E = C || t.relative[" "], N = C ? 1 : 0, A = wt(function(O) {
|
|
1799
1799
|
return O === d;
|
|
1800
1800
|
}, E, !0), B = wt(function(O) {
|
|
1801
1801
|
return q.call(d, O) > -1;
|
|
1802
1802
|
}, E, !0), H = [function(O, V, j) {
|
|
1803
|
-
var J = !C && (j || V != i) || ((d = V).nodeType ?
|
|
1803
|
+
var J = !C && (j || V != i) || ((d = V).nodeType ? A(O, V, j) : B(O, V, j));
|
|
1804
1804
|
return d = null, J;
|
|
1805
1805
|
}]; N < b; N++)
|
|
1806
1806
|
if (g = t.relative[f[N].type])
|
|
@@ -1826,13 +1826,13 @@ function Cr() {
|
|
|
1826
1826
|
return Xt(H);
|
|
1827
1827
|
}
|
|
1828
1828
|
function Yn(f, d) {
|
|
1829
|
-
var g = d.length > 0, v = f.length > 0, b = function(C, E, N,
|
|
1829
|
+
var g = d.length > 0, v = f.length > 0, b = function(C, E, N, A, B) {
|
|
1830
1830
|
var H, O, V, j = 0, J = "0", ce = C && [], oe = [], ge = i, Ce = C || v && t.find.TAG("*", B), Qe = y += ge == null ? 1 : Math.random() || 0.1, ae = Ce.length;
|
|
1831
1831
|
for (B && (i = E == u || E || B); J !== ae && (H = Ce[J]) != null; J++) {
|
|
1832
1832
|
if (v && H) {
|
|
1833
1833
|
for (O = 0, !E && H.ownerDocument != u && (je(H), N = !l); V = f[O++]; )
|
|
1834
1834
|
if (V(H, E || u, N)) {
|
|
1835
|
-
o.call(
|
|
1835
|
+
o.call(A, H);
|
|
1836
1836
|
break;
|
|
1837
1837
|
}
|
|
1838
1838
|
B && (y = Qe);
|
|
@@ -1845,10 +1845,10 @@ function Cr() {
|
|
|
1845
1845
|
if (C) {
|
|
1846
1846
|
if (j > 0)
|
|
1847
1847
|
for (; J--; )
|
|
1848
|
-
ce[J] || oe[J] || (oe[J] = Vi.call(
|
|
1848
|
+
ce[J] || oe[J] || (oe[J] = Vi.call(A));
|
|
1849
1849
|
oe = St(oe);
|
|
1850
1850
|
}
|
|
1851
|
-
o.apply(
|
|
1851
|
+
o.apply(A, oe), B && !C && oe.length > 0 && j + d.length > 1 && r.uniqueSort(A);
|
|
1852
1852
|
}
|
|
1853
1853
|
return B && (y = Qe, i = ge), ce;
|
|
1854
1854
|
};
|
|
@@ -1867,11 +1867,11 @@ function Cr() {
|
|
|
1867
1867
|
return C;
|
|
1868
1868
|
}
|
|
1869
1869
|
function Oi(f, d, g, v) {
|
|
1870
|
-
var b, C, E, N,
|
|
1870
|
+
var b, C, E, N, A, B = typeof f == "function" && f, H = !v && lt(f = B.selector || f);
|
|
1871
1871
|
if (g = g || [], H.length === 1) {
|
|
1872
1872
|
if (C = H[0] = H[0].slice(0), C.length > 2 && (E = C[0]).type === "ID" && d.nodeType === 9 && l && t.relative[C[1].type]) {
|
|
1873
1873
|
if (d = (t.find.ID(
|
|
1874
|
-
E.matches[0].replace(
|
|
1874
|
+
E.matches[0].replace(De, Re),
|
|
1875
1875
|
d
|
|
1876
1876
|
) || [])[0], d)
|
|
1877
1877
|
B && (d = d.parentNode);
|
|
@@ -1879,8 +1879,8 @@ function Cr() {
|
|
|
1879
1879
|
f = f.slice(C.shift().value.length);
|
|
1880
1880
|
}
|
|
1881
1881
|
for (b = Se.needsContext.test(f) ? 0 : C.length; b-- && (E = C[b], !t.relative[N = E.type]); )
|
|
1882
|
-
if ((
|
|
1883
|
-
E.matches[0].replace(
|
|
1882
|
+
if ((A = t.find[N]) && (v = A(
|
|
1883
|
+
E.matches[0].replace(De, Re),
|
|
1884
1884
|
$t.test(C[0].type) && zt(d.parentNode) || d
|
|
1885
1885
|
))) {
|
|
1886
1886
|
if (C.splice(b, 1), f = v.length && Tt(C), !f)
|
|
@@ -1913,7 +1913,7 @@ function Cr() {
|
|
|
1913
1913
|
e.nodeType === 1 && e !== t && i.push(e);
|
|
1914
1914
|
return i;
|
|
1915
1915
|
}, ti = r.expr.match.needsContext, ii = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
|
|
1916
|
-
function
|
|
1916
|
+
function Dt(e, t, i) {
|
|
1917
1917
|
return W(t) ? r.grep(e, function(n, s) {
|
|
1918
1918
|
return !!t.call(n, s, n) !== i;
|
|
1919
1919
|
}) : t.nodeType ? r.grep(e, function(n) {
|
|
@@ -1941,13 +1941,13 @@ function Cr() {
|
|
|
1941
1941
|
return n > 1 ? r.uniqueSort(i) : i;
|
|
1942
1942
|
},
|
|
1943
1943
|
filter: function(e) {
|
|
1944
|
-
return this.pushStack(
|
|
1944
|
+
return this.pushStack(Dt(this, e || [], !1));
|
|
1945
1945
|
},
|
|
1946
1946
|
not: function(e) {
|
|
1947
|
-
return this.pushStack(
|
|
1947
|
+
return this.pushStack(Dt(this, e || [], !0));
|
|
1948
1948
|
},
|
|
1949
1949
|
is: function(e) {
|
|
1950
|
-
return !!
|
|
1950
|
+
return !!Dt(
|
|
1951
1951
|
this,
|
|
1952
1952
|
// If this is a positional/relative selector, check membership in the returned set
|
|
1953
1953
|
// so $("p:first").is("p:last") won't return true for a doc with two "p".
|
|
@@ -2551,7 +2551,7 @@ function Cr() {
|
|
|
2551
2551
|
return c(), s.promise(t);
|
|
2552
2552
|
}
|
|
2553
2553
|
});
|
|
2554
|
-
var ai = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, it = new RegExp("^(?:([+-])=|)(" + ai + ")([a-z%]*)$", "i"),
|
|
2554
|
+
var ai = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, it = new RegExp("^(?:([+-])=|)(" + ai + ")([a-z%]*)$", "i"), Ae = ["Top", "Right", "Bottom", "Left"], Me = L.documentElement, Ve = function(e) {
|
|
2555
2555
|
return r.contains(e.ownerDocument, e);
|
|
2556
2556
|
}, an = { composed: !0 };
|
|
2557
2557
|
Me.getRootNode && (Ve = function(e) {
|
|
@@ -2990,7 +2990,7 @@ function Cr() {
|
|
|
2990
2990
|
i === "input" && nt.test(e.type) ? t.checked = e.checked : (i === "input" || i === "textarea") && (t.defaultValue = e.defaultValue);
|
|
2991
2991
|
}
|
|
2992
2992
|
function Xe(e, t, i, n) {
|
|
2993
|
-
t =
|
|
2993
|
+
t = D(t);
|
|
2994
2994
|
var s, o, u, c, l, h, x = 0, T = e.length, y = T - 1, S = t[0], P = W(S);
|
|
2995
2995
|
if (P || T > 1 && typeof S == "string" && !M.checkClone && cn.test(S))
|
|
2996
2996
|
return e.each(function(z) {
|
|
@@ -3140,7 +3140,7 @@ function Cr() {
|
|
|
3140
3140
|
for (s in t)
|
|
3141
3141
|
e.style[s] = o[s];
|
|
3142
3142
|
return n;
|
|
3143
|
-
}, yn = new RegExp(
|
|
3143
|
+
}, yn = new RegExp(Ae.join("|"), "i");
|
|
3144
3144
|
(function() {
|
|
3145
3145
|
function e() {
|
|
3146
3146
|
if (h) {
|
|
@@ -3229,7 +3229,7 @@ function Cr() {
|
|
|
3229
3229
|
if (i === (n ? "border" : "content"))
|
|
3230
3230
|
return 0;
|
|
3231
3231
|
for (; u < 4; u += 2)
|
|
3232
|
-
i === "margin" && (h += r.css(e, i +
|
|
3232
|
+
i === "margin" && (h += r.css(e, i + Ae[u], !0, s)), n ? (i === "content" && (l -= r.css(e, "padding" + Ae[u], !0, s)), i !== "margin" && (l -= r.css(e, "border" + Ae[u] + "Width", !0, s))) : (l += r.css(e, "padding" + Ae[u], !0, s), i !== "padding" ? l += r.css(e, "border" + Ae[u] + "Width", !0, s) : c += r.css(e, "border" + Ae[u] + "Width", !0, s));
|
|
3233
3233
|
return !n && o >= 0 && (l += Math.max(0, Math.ceil(
|
|
3234
3234
|
e["offset" + t[0].toUpperCase() + t.slice(1)] - o - l - c - 0.5
|
|
3235
3235
|
// If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter
|
|
@@ -3368,7 +3368,7 @@ function Cr() {
|
|
|
3368
3368
|
r.cssHooks[e + t] = {
|
|
3369
3369
|
expand: function(i) {
|
|
3370
3370
|
for (var n = 0, s = {}, o = typeof i == "string" ? i.split(" ") : [i]; n < 4; n++)
|
|
3371
|
-
s[e +
|
|
3371
|
+
s[e + Ae[n] + t] = o[n] || o[n - 2] || o[0];
|
|
3372
3372
|
return s;
|
|
3373
3373
|
}
|
|
3374
3374
|
}, e !== "margin" && (r.cssHooks[e + t].set = Si);
|
|
@@ -3442,7 +3442,7 @@ function Cr() {
|
|
|
3442
3442
|
function xt(e, t) {
|
|
3443
3443
|
var i, n = 0, s = { height: e };
|
|
3444
3444
|
for (t = t ? 1 : 0; n < 4; n += 2 - t)
|
|
3445
|
-
i =
|
|
3445
|
+
i = Ae[n], s["margin" + i] = s["padding" + i] = e;
|
|
3446
3446
|
return t && (s.opacity = s.width = e), s;
|
|
3447
3447
|
}
|
|
3448
3448
|
function Ei(e, t, i) {
|
|
@@ -3649,7 +3649,7 @@ function Cr() {
|
|
|
3649
3649
|
var e = L.createElement("input"), t = L.createElement("select"), i = t.appendChild(L.createElement("option"));
|
|
3650
3650
|
e.type = "checkbox", M.checkOn = e.value !== "", M.optSelected = i.selected, e = L.createElement("input"), e.value = "t", e.type = "radio", M.radioValue = e.value === "t";
|
|
3651
3651
|
})();
|
|
3652
|
-
var
|
|
3652
|
+
var Ai, st = r.expr.attrHandle;
|
|
3653
3653
|
r.fn.extend({
|
|
3654
3654
|
attr: function(e, t) {
|
|
3655
3655
|
return Ee(this, r.attr, e, t, arguments.length > 1);
|
|
@@ -3665,7 +3665,7 @@ function Cr() {
|
|
|
3665
3665
|
if (!(o === 3 || o === 8 || o === 2)) {
|
|
3666
3666
|
if (typeof e.getAttribute > "u")
|
|
3667
3667
|
return r.prop(e, t, i);
|
|
3668
|
-
if ((o !== 1 || !r.isXMLDoc(e)) && (s = r.attrHooks[t.toLowerCase()] || (r.expr.match.bool.test(t) ?
|
|
3668
|
+
if ((o !== 1 || !r.isXMLDoc(e)) && (s = r.attrHooks[t.toLowerCase()] || (r.expr.match.bool.test(t) ? Ai : void 0)), i !== void 0) {
|
|
3669
3669
|
if (i === null) {
|
|
3670
3670
|
r.removeAttr(e, t);
|
|
3671
3671
|
return;
|
|
@@ -3691,7 +3691,7 @@ function Cr() {
|
|
|
3691
3691
|
for (; i = s[n++]; )
|
|
3692
3692
|
e.removeAttribute(i);
|
|
3693
3693
|
}
|
|
3694
|
-
}),
|
|
3694
|
+
}), Ai = {
|
|
3695
3695
|
set: function(e, t, i) {
|
|
3696
3696
|
return t === !1 ? r.removeAttr(e, i) : e.setAttribute(i, i), i;
|
|
3697
3697
|
}
|
|
@@ -3866,7 +3866,7 @@ function Cr() {
|
|
|
3866
3866
|
return e.getAttribute("value") === null ? "on" : e.value;
|
|
3867
3867
|
});
|
|
3868
3868
|
});
|
|
3869
|
-
var ot = a.location,
|
|
3869
|
+
var ot = a.location, Di = { guid: Date.now() }, Ft = /\?/;
|
|
3870
3870
|
r.parseXML = function(e) {
|
|
3871
3871
|
var t, i;
|
|
3872
3872
|
if (!e || typeof e != "string")
|
|
@@ -3922,12 +3922,12 @@ function Cr() {
|
|
|
3922
3922
|
return r.event.trigger(e, t, i, !0);
|
|
3923
3923
|
}
|
|
3924
3924
|
});
|
|
3925
|
-
var
|
|
3925
|
+
var An = /\[\]$/, Li = /\r?\n/g, Dn = /^(?:submit|button|image|reset|file)$/i, Rn = /^(?:input|select|textarea|keygen)/i;
|
|
3926
3926
|
function Ot(e, t, i, n) {
|
|
3927
3927
|
var s;
|
|
3928
3928
|
if (Array.isArray(t))
|
|
3929
3929
|
r.each(t, function(o, u) {
|
|
3930
|
-
i ||
|
|
3930
|
+
i || An.test(e) ? n(e, u) : Ot(
|
|
3931
3931
|
e + "[" + (typeof u == "object" && u != null ? o : "") + "]",
|
|
3932
3932
|
u,
|
|
3933
3933
|
i,
|
|
@@ -3965,7 +3965,7 @@ function Cr() {
|
|
|
3965
3965
|
return e ? r.makeArray(e) : this;
|
|
3966
3966
|
}).filter(function() {
|
|
3967
3967
|
var e = this.type;
|
|
3968
|
-
return this.name && !r(this).is(":disabled") && Rn.test(this.nodeName) && !
|
|
3968
|
+
return this.name && !r(this).is(":disabled") && Rn.test(this.nodeName) && !Dn.test(e) && (this.checked || !nt.test(e));
|
|
3969
3969
|
}).map(function(e, t) {
|
|
3970
3970
|
var i = r(this).val();
|
|
3971
3971
|
return i == null ? null : Array.isArray(i) ? r.map(i, function(n) {
|
|
@@ -4197,7 +4197,7 @@ function Cr() {
|
|
|
4197
4197
|
}
|
|
4198
4198
|
if (y.data && y.processData && typeof y.data != "string" && (y.data = r.param(y.data, y.traditional)), Mi(Ii, y, t, U), l)
|
|
4199
4199
|
return U;
|
|
4200
|
-
h = r.event && y.global, h && r.active++ === 0 && r.event.trigger("ajaxStart"), y.type = y.type.toUpperCase(), y.hasContent = !Mn.test(y.type), n = y.url.replace(Ln, ""), y.hasContent ? y.data && y.processData && (y.contentType || "").indexOf("application/x-www-form-urlencoded") === 0 && (y.data = y.data.replace(Nn, "+")) : (T = y.url.slice(n.length), y.data && (y.processData || typeof y.data == "string") && (n += (Ft.test(n) ? "&" : "?") + y.data, delete y.data), y.cache === !1 && (n = n.replace(In, "$1"), T = (Ft.test(n) ? "&" : "?") + "_=" +
|
|
4200
|
+
h = r.event && y.global, h && r.active++ === 0 && r.event.trigger("ajaxStart"), y.type = y.type.toUpperCase(), y.hasContent = !Mn.test(y.type), n = y.url.replace(Ln, ""), y.hasContent ? y.data && y.processData && (y.contentType || "").indexOf("application/x-www-form-urlencoded") === 0 && (y.data = y.data.replace(Nn, "+")) : (T = y.url.slice(n.length), y.data && (y.processData || typeof y.data == "string") && (n += (Ft.test(n) ? "&" : "?") + y.data, delete y.data), y.cache === !1 && (n = n.replace(In, "$1"), T = (Ft.test(n) ? "&" : "?") + "_=" + Di.guid++ + T), y.url = n + T), y.ifModified && (r.lastModified[n] && U.setRequestHeader("If-Modified-Since", r.lastModified[n]), r.etag[n] && U.setRequestHeader("If-None-Match", r.etag[n])), (y.data && y.hasContent && y.contentType !== !1 || t.contentType) && U.setRequestHeader("Content-Type", y.contentType), U.setRequestHeader(
|
|
4201
4201
|
"Accept",
|
|
4202
4202
|
y.dataTypes[0] && y.accepts[y.dataTypes[0]] ? y.accepts[y.dataTypes[0]] + (y.dataTypes[0] !== "*" ? ", " + qi + "; q=0.01" : "") : y.accepts["*"]
|
|
4203
4203
|
);
|
|
@@ -4401,7 +4401,7 @@ function Cr() {
|
|
|
4401
4401
|
r.ajaxSetup({
|
|
4402
4402
|
jsonp: "callback",
|
|
4403
4403
|
jsonpCallback: function() {
|
|
4404
|
-
var e = Hi.pop() || r.expando + "_" +
|
|
4404
|
+
var e = Hi.pop() || r.expando + "_" + Di.guid++;
|
|
4405
4405
|
return this[e] = !0, e;
|
|
4406
4406
|
}
|
|
4407
4407
|
}), r.ajaxPrefilter("json jsonp", function(e, t, i) {
|
|
@@ -4614,7 +4614,7 @@ function Cr() {
|
|
|
4614
4614
|
}
|
|
4615
4615
|
var kr = Cr();
|
|
4616
4616
|
const Er = /* @__PURE__ */ wr(kr);
|
|
4617
|
-
class
|
|
4617
|
+
class Ar {
|
|
4618
4618
|
constructor() {
|
|
4619
4619
|
this.canvasEl = null, this.opt = null, this.el = null, this.$el = null, this.player = null, console.log("MnPlayer constructor");
|
|
4620
4620
|
}
|
|
@@ -4672,7 +4672,7 @@ class Dr {
|
|
|
4672
4672
|
this.opt.lang || ""
|
|
4673
4673
|
));
|
|
4674
4674
|
let p = a?.streamType !== void 0 ? a.streamType : 1;
|
|
4675
|
-
a?.streamType === 0 && (p = 0), this.player.play(0, p, a?.beginTime);
|
|
4675
|
+
a?.streamType === 0 && (p = 0), a?.streamType === 0 && (p = 0), this.player.play(0, p, a?.beginTime);
|
|
4676
4676
|
}
|
|
4677
4677
|
pause() {
|
|
4678
4678
|
console.log("MnPlayer pause"), this.player && this.player.pause();
|
|
@@ -4697,7 +4697,7 @@ class Dr {
|
|
|
4697
4697
|
}
|
|
4698
4698
|
}
|
|
4699
4699
|
export {
|
|
4700
|
-
|
|
4701
|
-
|
|
4700
|
+
Ar as MnVideoPlayer,
|
|
4701
|
+
Ar as default
|
|
4702
4702
|
};
|
|
4703
4703
|
//# sourceMappingURL=mn-video-player.es.js.map
|