mn-video-player 1.2.4 → 1.2.5
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/mn-video-player.es.js +124 -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-77FNHtgn.js → mn-worker-DfFDSJOR.js} +2 -2
- package/dist/{mn-worker-77FNHtgn.js.map → mn-worker-DfFDSJOR.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
|
+
`), A = a.createShader(a.FRAGMENT_SHADER);
|
|
51
|
+
a.shaderSource(A, w), a.compileShader(A), a.attachShader(p, k), a.attachShader(p, A), 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 A = 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), A.buffer = q, A.connect(this.gainNode), A.playbackRate.value = this.playbackRate;
|
|
180
180
|
const W = {
|
|
181
|
-
bufferSource:
|
|
181
|
+
bufferSource: A,
|
|
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), A.onended = () => {
|
|
188
|
+
const L = this.playingBuffers.findIndex((Le) => Le.bufferSource === A);
|
|
189
189
|
L !== -1 && this.playingBuffers.splice(L, 1);
|
|
190
|
-
},
|
|
190
|
+
}, A.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 A, $, q, F, re;
|
|
212
212
|
for ($ = 0; $ < this.option.channels; $++)
|
|
213
|
-
for (
|
|
214
|
-
|
|
213
|
+
for (A = w.getChannelData($), q = $, re = 50, F = 0; F < k; F++)
|
|
214
|
+
A[F] = a[q], F < 50 && (A[F] = A[F] * F / 50), F >= k - 51 && (A[F] = A[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 = {
|
|
@@ -233,7 +233,6 @@ class Qn {
|
|
|
233
233
|
this.audioCtx.state === "suspended" && this.audioCtx.resume();
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
console.log("innercommon");
|
|
237
236
|
const Jn = 2, Kn = 1, Zn = 3, er = 4, tr = 5, ir = 6, nr = 7, rr = 9, sr = 10, or = 11, ar = 12, ur = 13, fr = 2, lr = 4, cr = 5, dr = 6, hr = 7, pr = 8, gr = 13, yr = 14, mr = 15, vr = 16;
|
|
238
237
|
class xr {
|
|
239
238
|
constructor(a) {
|
|
@@ -252,8 +251,8 @@ class xr {
|
|
|
252
251
|
console.log("[" + this.currentTimeStr() + "][" + this.module + "][DT] " + a);
|
|
253
252
|
}
|
|
254
253
|
currentTimeStr() {
|
|
255
|
-
const a = new Date(Date.now()), p = a.getFullYear(), m = a.getMonth() + 1, k = a.getDate(), w = a.getHours(),
|
|
256
|
-
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(), A = a.getMinutes(), $ = a.getSeconds(), q = a.getMilliseconds();
|
|
255
|
+
return p + "-" + m + "-" + k + " " + w + ":" + A + ":" + $ + ":" + q;
|
|
257
256
|
}
|
|
258
257
|
}
|
|
259
258
|
const G = {
|
|
@@ -283,7 +282,7 @@ const G = {
|
|
|
283
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";
|
|
284
283
|
function Tr(R) {
|
|
285
284
|
return new Worker(
|
|
286
|
-
"" + new URL("mn-worker-
|
|
285
|
+
"" + new URL("mn-worker-DfFDSJOR.js", import.meta.url).href,
|
|
287
286
|
{
|
|
288
287
|
name: R?.name
|
|
289
288
|
}
|
|
@@ -304,8 +303,8 @@ class ee {
|
|
|
304
303
|
static frameCache = [];
|
|
305
304
|
static intervalTimer = null;
|
|
306
305
|
static onlyWasm = !1;
|
|
307
|
-
constructor(a, p, m, k, w,
|
|
308
|
-
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, A) {
|
|
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 = A, 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({
|
|
309
308
|
encoding: this.audioEncoding,
|
|
310
309
|
channels: this.audioChannels,
|
|
311
310
|
sampleRate: this.audioSampleRate,
|
|
@@ -796,7 +795,7 @@ class ee {
|
|
|
796
795
|
return a.byteLength <= 16 ? new ArrayBuffer(0) : a.slice(0, a.byteLength - 16);
|
|
797
796
|
}
|
|
798
797
|
annexBToAvcc(a) {
|
|
799
|
-
const p = a.reduce((w,
|
|
798
|
+
const p = a.reduce((w, A) => w + 4 + A.length, 0), m = new Uint8Array(p);
|
|
800
799
|
let k = 0;
|
|
801
800
|
for (const w of a)
|
|
802
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;
|
|
@@ -815,9 +814,9 @@ class ee {
|
|
|
815
814
|
}
|
|
816
815
|
a[m + (a[m + 2] === 1 ? 3 : 4)];
|
|
817
816
|
const w = m + (a[m + 2] === 1 ? 3 : 4);
|
|
818
|
-
let
|
|
819
|
-
for (;
|
|
820
|
-
p.push(a.subarray(w,
|
|
817
|
+
let A = w;
|
|
818
|
+
for (; A < a.length && !k(A); ) A++;
|
|
819
|
+
p.push(a.subarray(w, A)), m = A;
|
|
821
820
|
}
|
|
822
821
|
return p;
|
|
823
822
|
}
|
|
@@ -825,11 +824,11 @@ class ee {
|
|
|
825
824
|
let p = null, m = null, k = 0;
|
|
826
825
|
for (; k + 4 < a.length; )
|
|
827
826
|
if (a[k] === 0 && a[k + 1] === 0 && (a[k + 2] === 1 || a[k + 2] === 0 && a[k + 3] === 1)) {
|
|
828
|
-
const w = a[k + 2] === 1 ? 3 : 4,
|
|
829
|
-
let q =
|
|
827
|
+
const w = a[k + 2] === 1 ? 3 : 4, A = k + w, $ = a[A] & 31;
|
|
828
|
+
let q = A + 1;
|
|
830
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)); )
|
|
831
830
|
q++;
|
|
832
|
-
const F = a.slice(
|
|
831
|
+
const F = a.slice(A, q);
|
|
833
832
|
if ($ === 7 && !p && (p = F), $ === 8 && !m && (m = F), $ === 32 && !p && (p = F), $ === 33 && !m && (m = F), p && m) break;
|
|
834
833
|
k = q;
|
|
835
834
|
} else
|
|
@@ -853,8 +852,8 @@ class ee {
|
|
|
853
852
|
const ie = a.subarray(re, Z), de = ie[0] >> 1 & 63;
|
|
854
853
|
(de === 32 || de === 33 || de === 34) && p.push({ type: de, data: ie }), m = Z;
|
|
855
854
|
}
|
|
856
|
-
const w = p.find((q) => q.type === 32)?.data,
|
|
857
|
-
return { vps: w, sps:
|
|
855
|
+
const w = p.find((q) => q.type === 32)?.data, A = p.find((q) => q.type === 33)?.data, $ = p.find((q) => q.type === 34)?.data;
|
|
856
|
+
return { vps: w, sps: A, pps: $ };
|
|
858
857
|
}
|
|
859
858
|
guessCodec(a) {
|
|
860
859
|
if (a.length < 1) return null;
|
|
@@ -893,8 +892,8 @@ class ee {
|
|
|
893
892
|
}
|
|
894
893
|
makeAvcC(a, p) {
|
|
895
894
|
const m = a.length, k = p.length, w = new Uint8Array(8 + m + 3 + k);
|
|
896
|
-
let
|
|
897
|
-
return w[
|
|
895
|
+
let A = 0;
|
|
896
|
+
return w[A++] = 1, w[A++] = a[1], w[A++] = a[2], w[A++] = a[3], w[A++] = 255, w[A++] = 225, w[A++] = m >> 8 & 255, w[A++] = m & 255, w.set(a, A), A += m, w[A++] = 1, w[A++] = k >> 8 & 255, w[A++] = k & 255, w.set(p, A), w;
|
|
898
897
|
}
|
|
899
898
|
/**
|
|
900
899
|
* 解码视频帧
|
|
@@ -915,9 +914,9 @@ class ee {
|
|
|
915
914
|
return `avc1.${re.toString(16).padStart(2, "0")}${Z.toString(16).padStart(2, "0")}${ie.toString(16).padStart(2, "0")}`;
|
|
916
915
|
};
|
|
917
916
|
this.frameType = "h264";
|
|
918
|
-
const { sps: w, pps:
|
|
919
|
-
if (!w || !
|
|
920
|
-
this.sps = w, this.pps =
|
|
917
|
+
const { sps: w, pps: A } = this.extractSpsPps(a);
|
|
918
|
+
if (!w || !A) return;
|
|
919
|
+
this.sps = w, this.pps = A, this.avcC = this.makeAvcC(w, A), console.warn("avcC", this.avcC);
|
|
921
920
|
let q = $(w);
|
|
922
921
|
if (this.videoDecoder.configure({
|
|
923
922
|
codec: q,
|
|
@@ -931,8 +930,8 @@ class ee {
|
|
|
931
930
|
return;
|
|
932
931
|
} else {
|
|
933
932
|
this.frameType = "h265";
|
|
934
|
-
const { vps: w, sps:
|
|
935
|
-
if (this.vps = w, this.sps =
|
|
933
|
+
const { vps: w, sps: A, pps: $ } = this.extractVpsSpsPps(a);
|
|
934
|
+
if (this.vps = w, this.sps = A, this.pps = $, !w || !A || !$) return;
|
|
936
935
|
if (this.videoDecoder.configure({
|
|
937
936
|
codec: "hev1.1.6.L93.B0"
|
|
938
937
|
// codedWidth: this.width || 640,
|
|
@@ -945,7 +944,7 @@ class ee {
|
|
|
945
944
|
}
|
|
946
945
|
if (this.frameType == "h264") {
|
|
947
946
|
let k = this.annexBToAvcc(this.splitAnnexBNalus(a)), w = 33333;
|
|
948
|
-
const
|
|
947
|
+
const A = new EncodedVideoChunk({
|
|
949
948
|
type: m ? "key" : "delta",
|
|
950
949
|
// 根据是否关键帧设置类型
|
|
951
950
|
// type: "key", // 根据是否关键帧设置类型
|
|
@@ -956,7 +955,7 @@ class ee {
|
|
|
956
955
|
duration: w
|
|
957
956
|
// 假设30fps,约33.33ms
|
|
958
957
|
});
|
|
959
|
-
this.videoDecoder.decode(
|
|
958
|
+
this.videoDecoder.decode(A);
|
|
960
959
|
} else {
|
|
961
960
|
let k = 33333;
|
|
962
961
|
const w = new EncodedVideoChunk({
|
|
@@ -1016,7 +1015,7 @@ function Cr() {
|
|
|
1016
1015
|
return p(m);
|
|
1017
1016
|
};
|
|
1018
1017
|
})(typeof window < "u" ? window : Sr, function(a, p) {
|
|
1019
|
-
var m = [], k = Object.getPrototypeOf, w = m.slice,
|
|
1018
|
+
var m = [], k = Object.getPrototypeOf, w = m.slice, A = m.flat ? function(e) {
|
|
1020
1019
|
return m.flat.call(e);
|
|
1021
1020
|
} : function(e) {
|
|
1022
1021
|
return m.concat.apply([], e);
|
|
@@ -1191,7 +1190,7 @@ function Cr() {
|
|
|
1191
1190
|
else
|
|
1192
1191
|
for (o in e)
|
|
1193
1192
|
s = t(e[o], o, i), s != null && u.push(s);
|
|
1194
|
-
return
|
|
1193
|
+
return A(u);
|
|
1195
1194
|
},
|
|
1196
1195
|
// A global GUID counter for objects
|
|
1197
1196
|
guid: 1,
|
|
@@ -1228,9 +1227,9 @@ function Cr() {
|
|
|
1228
1227
|
r.escapeSelector = function(e) {
|
|
1229
1228
|
return (e + "").replace(zi, Xi);
|
|
1230
1229
|
};
|
|
1231
|
-
var ke = L,
|
|
1230
|
+
var ke = L, Dt = $;
|
|
1232
1231
|
(function() {
|
|
1233
|
-
var e, t, i, n, s, o =
|
|
1232
|
+
var e, t, i, n, s, o = Dt, u, c, l, h, x, T = r.expando, y = 0, S = 0, P = bt(), z = bt(), _ = bt(), se = bt(), ne = function(f, d) {
|
|
1234
1233
|
return f === d && (s = !0), 0;
|
|
1235
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)
|
|
1236
1235
|
"*([*^$|!~]?=)" + Q + // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
|
|
@@ -1248,7 +1247,7 @@ function Cr() {
|
|
|
1248
1247
|
// For use in libraries implementing .is()
|
|
1249
1248
|
// We use this for POS matching in `select`
|
|
1250
1249
|
needsContext: new RegExp("^" + Q + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + Q + "*((?:-\\d)?\\d*)" + Q + "*\\)|)(?=[^-]|$)", "i")
|
|
1251
|
-
}, 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 = /[+~]/, Ae = new RegExp("\\\\[\\da-fA-F]{1,6}" + Q + "?|\\\\([^\\r\\n\\f])", "g"), Re = function(f, d) {
|
|
1252
1251
|
var g = "0x" + f.slice(1) - 65536;
|
|
1253
1252
|
return d || (g < 0 ? String.fromCharCode(g + 65536) : String.fromCharCode(g >> 10 | 55296, g & 1023 | 56320));
|
|
1254
1253
|
}, Vn = function() {
|
|
@@ -1273,20 +1272,20 @@ function Cr() {
|
|
|
1273
1272
|
} catch {
|
|
1274
1273
|
o = {
|
|
1275
1274
|
apply: function(d, g) {
|
|
1276
|
-
|
|
1275
|
+
Dt.apply(d, w.call(g));
|
|
1277
1276
|
},
|
|
1278
1277
|
call: function(d) {
|
|
1279
|
-
|
|
1278
|
+
Dt.apply(d, w.call(arguments, 1));
|
|
1280
1279
|
}
|
|
1281
1280
|
};
|
|
1282
1281
|
}
|
|
1283
1282
|
function Y(f, d, g, v) {
|
|
1284
|
-
var b, C, E, N,
|
|
1283
|
+
var b, C, E, N, D, B, H, O = d && d.ownerDocument, V = d ? d.nodeType : 9;
|
|
1285
1284
|
if (g = g || [], typeof f != "string" || !f || V !== 1 && V !== 9 && V !== 11)
|
|
1286
1285
|
return g;
|
|
1287
1286
|
if (!v && (je(d), d = d || u, l)) {
|
|
1288
|
-
if (V !== 11 && (
|
|
1289
|
-
if (b =
|
|
1287
|
+
if (V !== 11 && (D = pe.exec(f)))
|
|
1288
|
+
if (b = D[1]) {
|
|
1290
1289
|
if (V === 9)
|
|
1291
1290
|
if (E = d.getElementById(b)) {
|
|
1292
1291
|
if (E.id === b)
|
|
@@ -1296,9 +1295,9 @@ function Cr() {
|
|
|
1296
1295
|
else if (O && (E = O.getElementById(b)) && Y.contains(d, E) && E.id === b)
|
|
1297
1296
|
return o.call(g, E), g;
|
|
1298
1297
|
} else {
|
|
1299
|
-
if (
|
|
1298
|
+
if (D[2])
|
|
1300
1299
|
return o.apply(g, d.getElementsByTagName(f)), g;
|
|
1301
|
-
if ((b =
|
|
1300
|
+
if ((b = D[3]) && d.getElementsByClassName)
|
|
1302
1301
|
return o.apply(g, d.getElementsByClassName(b)), g;
|
|
1303
1302
|
}
|
|
1304
1303
|
if (!se[f + " "] && (!h || !h.test(f))) {
|
|
@@ -1387,7 +1386,7 @@ function Cr() {
|
|
|
1387
1386
|
return !0;
|
|
1388
1387
|
}
|
|
1389
1388
|
}), M.getById ? (t.filter.ID = function(v) {
|
|
1390
|
-
var b = v.replace(
|
|
1389
|
+
var b = v.replace(Ae, Re);
|
|
1391
1390
|
return function(C) {
|
|
1392
1391
|
return C.getAttribute("id") === b;
|
|
1393
1392
|
};
|
|
@@ -1397,20 +1396,20 @@ function Cr() {
|
|
|
1397
1396
|
return C ? [C] : [];
|
|
1398
1397
|
}
|
|
1399
1398
|
}) : (t.filter.ID = function(v) {
|
|
1400
|
-
var b = v.replace(
|
|
1399
|
+
var b = v.replace(Ae, Re);
|
|
1401
1400
|
return function(C) {
|
|
1402
1401
|
var E = typeof C.getAttributeNode < "u" && C.getAttributeNode("id");
|
|
1403
1402
|
return E && E.value === b;
|
|
1404
1403
|
};
|
|
1405
1404
|
}, t.find.ID = function(v, b) {
|
|
1406
1405
|
if (typeof b.getElementById < "u" && l) {
|
|
1407
|
-
var C, E, N,
|
|
1408
|
-
if (
|
|
1409
|
-
if (C =
|
|
1410
|
-
return [
|
|
1411
|
-
for (N = b.getElementsByName(v), E = 0;
|
|
1412
|
-
if (C =
|
|
1413
|
-
return [
|
|
1406
|
+
var C, E, N, D = b.getElementById(v);
|
|
1407
|
+
if (D) {
|
|
1408
|
+
if (C = D.getAttributeNode("id"), C && C.value === v)
|
|
1409
|
+
return [D];
|
|
1410
|
+
for (N = b.getElementsByName(v), E = 0; D = N[E++]; )
|
|
1411
|
+
if (C = D.getAttributeNode("id"), C && C.value === v)
|
|
1412
|
+
return [D];
|
|
1414
1413
|
}
|
|
1415
1414
|
return [];
|
|
1416
1415
|
}
|
|
@@ -1480,7 +1479,7 @@ function Cr() {
|
|
|
1480
1479
|
},
|
|
1481
1480
|
preFilter: {
|
|
1482
1481
|
ATTR: function(f) {
|
|
1483
|
-
return f[1] = f[1].replace(
|
|
1482
|
+
return f[1] = f[1].replace(Ae, Re), f[3] = (f[3] || f[4] || f[5] || "").replace(Ae, Re), f[2] === "~=" && (f[3] = " " + f[3] + " "), f.slice(0, 4);
|
|
1484
1483
|
},
|
|
1485
1484
|
CHILD: function(f) {
|
|
1486
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;
|
|
@@ -1494,7 +1493,7 @@ function Cr() {
|
|
|
1494
1493
|
},
|
|
1495
1494
|
filter: {
|
|
1496
1495
|
TAG: function(f) {
|
|
1497
|
-
var d = f.replace(
|
|
1496
|
+
var d = f.replace(Ae, Re).toLowerCase();
|
|
1498
1497
|
return f === "*" ? function() {
|
|
1499
1498
|
return !0;
|
|
1500
1499
|
} : function(g) {
|
|
@@ -1519,15 +1518,15 @@ function Cr() {
|
|
|
1519
1518
|
var C = f.slice(0, 3) !== "nth", E = f.slice(-4) !== "last", N = d === "of-type";
|
|
1520
1519
|
return v === 1 && b === 0 ? (
|
|
1521
1520
|
// Shortcut for :nth-*(n)
|
|
1522
|
-
function(
|
|
1523
|
-
return !!
|
|
1521
|
+
function(D) {
|
|
1522
|
+
return !!D.parentNode;
|
|
1524
1523
|
}
|
|
1525
|
-
) : function(
|
|
1526
|
-
var O, V, j, J, ce, oe = C !== E ? "nextSibling" : "previousSibling", ge =
|
|
1524
|
+
) : function(D, B, H) {
|
|
1525
|
+
var O, V, j, J, ce, oe = C !== E ? "nextSibling" : "previousSibling", ge = D.parentNode, Ce = N && D.nodeName.toLowerCase(), Qe = !H && !N, ae = !1;
|
|
1527
1526
|
if (ge) {
|
|
1528
1527
|
if (C) {
|
|
1529
1528
|
for (; oe; ) {
|
|
1530
|
-
for (j =
|
|
1529
|
+
for (j = D; j = j[oe]; )
|
|
1531
1530
|
if (N ? K(j, Ce) : j.nodeType === 1)
|
|
1532
1531
|
return !1;
|
|
1533
1532
|
ce = oe = f === "only" && !ce && "nextSibling";
|
|
@@ -1537,12 +1536,12 @@ function Cr() {
|
|
|
1537
1536
|
if (ce = [E ? ge.firstChild : ge.lastChild], E && Qe) {
|
|
1538
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
|
|
1539
1538
|
(ae = J = 0) || ce.pop(); )
|
|
1540
|
-
if (j.nodeType === 1 && ++ae && j ===
|
|
1539
|
+
if (j.nodeType === 1 && ++ae && j === D) {
|
|
1541
1540
|
V[f] = [y, J, ae];
|
|
1542
1541
|
break;
|
|
1543
1542
|
}
|
|
1544
|
-
} else if (Qe && (V =
|
|
1545
|
-
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 = D[T] || (D[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 === D)); )
|
|
1546
1545
|
;
|
|
1547
1546
|
return ae -= b, ae === v || ae % v === 0 && ae / v >= 0;
|
|
1548
1547
|
}
|
|
@@ -1551,8 +1550,8 @@ function Cr() {
|
|
|
1551
1550
|
PSEUDO: function(f, d) {
|
|
1552
1551
|
var g, v = t.pseudos[f] || t.setFilters[f.toLowerCase()] || Y.error("unsupported pseudo: " + f);
|
|
1553
1552
|
return v[T] ? v(d) : v.length > 1 ? (g = [f, f, "", d], t.setFilters.hasOwnProperty(f.toLowerCase()) ? me(function(b, C) {
|
|
1554
|
-
for (var E, N = v(b, d),
|
|
1555
|
-
E = q.call(b, N[
|
|
1553
|
+
for (var E, N = v(b, d), D = N.length; D--; )
|
|
1554
|
+
E = q.call(b, N[D]), b[E] = !(C[E] = N[D]);
|
|
1556
1555
|
}) : function(b) {
|
|
1557
1556
|
return v(b, 0, g);
|
|
1558
1557
|
}) : v;
|
|
@@ -1563,8 +1562,8 @@ function Cr() {
|
|
|
1563
1562
|
not: me(function(f) {
|
|
1564
1563
|
var d = [], g = [], v = Qt(f.replace(Ze, "$1"));
|
|
1565
1564
|
return v[T] ? me(function(b, C, E, N) {
|
|
1566
|
-
for (var
|
|
1567
|
-
(
|
|
1565
|
+
for (var D, B = v(b, null, N, []), H = b.length; H--; )
|
|
1566
|
+
(D = B[H]) && (b[H] = !(C[H] = D));
|
|
1568
1567
|
}) : function(b, C, E) {
|
|
1569
1568
|
return d[0] = b, v(d, null, E, g), d[0] = null, !g.pop();
|
|
1570
1569
|
};
|
|
@@ -1575,7 +1574,7 @@ function Cr() {
|
|
|
1575
1574
|
};
|
|
1576
1575
|
}),
|
|
1577
1576
|
contains: me(function(f) {
|
|
1578
|
-
return f = f.replace(
|
|
1577
|
+
return f = f.replace(Ae, Re), function(d) {
|
|
1579
1578
|
return (d.textContent || r.text(d)).indexOf(f) > -1;
|
|
1580
1579
|
};
|
|
1581
1580
|
}),
|
|
@@ -1587,7 +1586,7 @@ function Cr() {
|
|
|
1587
1586
|
// The identifier C does not have to be a valid language name."
|
|
1588
1587
|
// https://www.w3.org/TR/selectors/#lang-pseudo
|
|
1589
1588
|
lang: me(function(f) {
|
|
1590
|
-
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(Ae, Re).toLowerCase(), function(d) {
|
|
1591
1590
|
var g;
|
|
1592
1591
|
do
|
|
1593
1592
|
if (g = l ? d.lang : d.getAttribute("xml:lang") || d.getAttribute("lang"))
|
|
@@ -1684,17 +1683,17 @@ function Cr() {
|
|
|
1684
1683
|
}
|
|
1685
1684
|
Fi.prototype = t.filters = t.pseudos, t.setFilters = new Fi();
|
|
1686
1685
|
function lt(f, d) {
|
|
1687
|
-
var g, v, b, C, E, N,
|
|
1686
|
+
var g, v, b, C, E, N, D, B = z[f + " "];
|
|
1688
1687
|
if (B)
|
|
1689
1688
|
return d ? 0 : B.slice(0);
|
|
1690
|
-
for (E = f, N = [],
|
|
1689
|
+
for (E = f, N = [], D = t.preFilter; E; ) {
|
|
1691
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({
|
|
1692
1691
|
value: g,
|
|
1693
1692
|
// Cast descendant combinators to space
|
|
1694
1693
|
type: v[0].replace(Ze, " ")
|
|
1695
1694
|
}), E = E.slice(g.length));
|
|
1696
1695
|
for (C in t.filter)
|
|
1697
|
-
(v = Se[C].exec(E)) && (!
|
|
1696
|
+
(v = Se[C].exec(E)) && (!D[C] || (v = D[C](v))) && (g = v.shift(), b.push({
|
|
1698
1697
|
value: g,
|
|
1699
1698
|
type: C,
|
|
1700
1699
|
matches: v
|
|
@@ -1716,29 +1715,29 @@ function Cr() {
|
|
|
1716
1715
|
var v = d.dir, b = d.next, C = b || v, E = g && C === "parentNode", N = S++;
|
|
1717
1716
|
return d.first ? (
|
|
1718
1717
|
// Check against closest ancestor/preceding element
|
|
1719
|
-
function(
|
|
1720
|
-
for (;
|
|
1721
|
-
if (
|
|
1722
|
-
return f(
|
|
1718
|
+
function(D, B, H) {
|
|
1719
|
+
for (; D = D[v]; )
|
|
1720
|
+
if (D.nodeType === 1 || E)
|
|
1721
|
+
return f(D, B, H);
|
|
1723
1722
|
return !1;
|
|
1724
1723
|
}
|
|
1725
1724
|
) : (
|
|
1726
1725
|
// Check against all ancestor/preceding elements
|
|
1727
|
-
function(
|
|
1726
|
+
function(D, B, H) {
|
|
1728
1727
|
var O, V, j = [y, N];
|
|
1729
1728
|
if (H) {
|
|
1730
|
-
for (;
|
|
1731
|
-
if ((
|
|
1729
|
+
for (; D = D[v]; )
|
|
1730
|
+
if ((D.nodeType === 1 || E) && f(D, B, H))
|
|
1732
1731
|
return !0;
|
|
1733
1732
|
} else
|
|
1734
|
-
for (;
|
|
1735
|
-
if (
|
|
1736
|
-
if (V =
|
|
1737
|
-
|
|
1733
|
+
for (; D = D[v]; )
|
|
1734
|
+
if (D.nodeType === 1 || E)
|
|
1735
|
+
if (V = D[T] || (D[T] = {}), b && K(D, b))
|
|
1736
|
+
D = D[v] || D;
|
|
1738
1737
|
else {
|
|
1739
1738
|
if ((O = V[C]) && O[0] === y && O[1] === N)
|
|
1740
1739
|
return j[2] = O[2];
|
|
1741
|
-
if (V[C] = j, j[2] = f(
|
|
1740
|
+
if (V[C] = j, j[2] = f(D, B, H))
|
|
1742
1741
|
return !0;
|
|
1743
1742
|
}
|
|
1744
1743
|
return !1;
|
|
@@ -1759,25 +1758,25 @@ function Cr() {
|
|
|
1759
1758
|
return g;
|
|
1760
1759
|
}
|
|
1761
1760
|
function St(f, d, g, v, b) {
|
|
1762
|
-
for (var C, E = [], N = 0,
|
|
1761
|
+
for (var C, E = [], N = 0, D = f.length, B = d != null; N < D; N++)
|
|
1763
1762
|
(C = f[N]) && (!g || g(C, v, b)) && (E.push(C), B && d.push(N));
|
|
1764
1763
|
return E;
|
|
1765
1764
|
}
|
|
1766
1765
|
function Gt(f, d, g, v, b, C) {
|
|
1767
|
-
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, D, B) {
|
|
1768
1767
|
var H, O, V, j, J = [], ce = [], oe = N.length, ge = E || Gn(
|
|
1769
1768
|
d || "*",
|
|
1770
|
-
|
|
1769
|
+
D.nodeType ? [D] : D,
|
|
1771
1770
|
[]
|
|
1772
|
-
), Ce = f && (E || !d) ? St(ge, J, f,
|
|
1771
|
+
), Ce = f && (E || !d) ? St(ge, J, f, D, B) : ge;
|
|
1773
1772
|
if (g ? (j = b || (E ? f : oe || v) ? (
|
|
1774
1773
|
// ...intermediate processing is necessary
|
|
1775
1774
|
[]
|
|
1776
1775
|
) : (
|
|
1777
1776
|
// ...otherwise use results directly
|
|
1778
1777
|
N
|
|
1779
|
-
), g(Ce, j,
|
|
1780
|
-
for (H = St(j, ce), v(H, [],
|
|
1778
|
+
), g(Ce, j, D, B)) : j = Ce, v)
|
|
1779
|
+
for (H = St(j, ce), v(H, [], D, B), O = H.length; O--; )
|
|
1781
1780
|
(V = H[O]) && (j[ce[O]] = !(Ce[ce[O]] = V));
|
|
1782
1781
|
if (E) {
|
|
1783
1782
|
if (b || f) {
|
|
@@ -1796,12 +1795,12 @@ function Cr() {
|
|
|
1796
1795
|
});
|
|
1797
1796
|
}
|
|
1798
1797
|
function Yt(f) {
|
|
1799
|
-
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, D = wt(function(O) {
|
|
1800
1799
|
return O === d;
|
|
1801
1800
|
}, E, !0), B = wt(function(O) {
|
|
1802
1801
|
return q.call(d, O) > -1;
|
|
1803
1802
|
}, E, !0), H = [function(O, V, j) {
|
|
1804
|
-
var J = !C && (j || V != i) || ((d = V).nodeType ?
|
|
1803
|
+
var J = !C && (j || V != i) || ((d = V).nodeType ? D(O, V, j) : B(O, V, j));
|
|
1805
1804
|
return d = null, J;
|
|
1806
1805
|
}]; N < b; N++)
|
|
1807
1806
|
if (g = t.relative[f[N].type])
|
|
@@ -1827,13 +1826,13 @@ function Cr() {
|
|
|
1827
1826
|
return Xt(H);
|
|
1828
1827
|
}
|
|
1829
1828
|
function Yn(f, d) {
|
|
1830
|
-
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, D, B) {
|
|
1831
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;
|
|
1832
1831
|
for (B && (i = E == u || E || B); J !== ae && (H = Ce[J]) != null; J++) {
|
|
1833
1832
|
if (v && H) {
|
|
1834
1833
|
for (O = 0, !E && H.ownerDocument != u && (je(H), N = !l); V = f[O++]; )
|
|
1835
1834
|
if (V(H, E || u, N)) {
|
|
1836
|
-
o.call(
|
|
1835
|
+
o.call(D, H);
|
|
1837
1836
|
break;
|
|
1838
1837
|
}
|
|
1839
1838
|
B && (y = Qe);
|
|
@@ -1846,10 +1845,10 @@ function Cr() {
|
|
|
1846
1845
|
if (C) {
|
|
1847
1846
|
if (j > 0)
|
|
1848
1847
|
for (; J--; )
|
|
1849
|
-
ce[J] || oe[J] || (oe[J] = Vi.call(
|
|
1848
|
+
ce[J] || oe[J] || (oe[J] = Vi.call(D));
|
|
1850
1849
|
oe = St(oe);
|
|
1851
1850
|
}
|
|
1852
|
-
o.apply(
|
|
1851
|
+
o.apply(D, oe), B && !C && oe.length > 0 && j + d.length > 1 && r.uniqueSort(D);
|
|
1853
1852
|
}
|
|
1854
1853
|
return B && (y = Qe, i = ge), ce;
|
|
1855
1854
|
};
|
|
@@ -1868,11 +1867,11 @@ function Cr() {
|
|
|
1868
1867
|
return C;
|
|
1869
1868
|
}
|
|
1870
1869
|
function Oi(f, d, g, v) {
|
|
1871
|
-
var b, C, E, N,
|
|
1870
|
+
var b, C, E, N, D, B = typeof f == "function" && f, H = !v && lt(f = B.selector || f);
|
|
1872
1871
|
if (g = g || [], H.length === 1) {
|
|
1873
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]) {
|
|
1874
1873
|
if (d = (t.find.ID(
|
|
1875
|
-
E.matches[0].replace(
|
|
1874
|
+
E.matches[0].replace(Ae, Re),
|
|
1876
1875
|
d
|
|
1877
1876
|
) || [])[0], d)
|
|
1878
1877
|
B && (d = d.parentNode);
|
|
@@ -1880,8 +1879,8 @@ function Cr() {
|
|
|
1880
1879
|
f = f.slice(C.shift().value.length);
|
|
1881
1880
|
}
|
|
1882
1881
|
for (b = Se.needsContext.test(f) ? 0 : C.length; b-- && (E = C[b], !t.relative[N = E.type]); )
|
|
1883
|
-
if ((
|
|
1884
|
-
E.matches[0].replace(
|
|
1882
|
+
if ((D = t.find[N]) && (v = D(
|
|
1883
|
+
E.matches[0].replace(Ae, Re),
|
|
1885
1884
|
$t.test(C[0].type) && zt(d.parentNode) || d
|
|
1886
1885
|
))) {
|
|
1887
1886
|
if (C.splice(b, 1), f = v.length && Tt(C), !f)
|
|
@@ -1914,7 +1913,7 @@ function Cr() {
|
|
|
1914
1913
|
e.nodeType === 1 && e !== t && i.push(e);
|
|
1915
1914
|
return i;
|
|
1916
1915
|
}, ti = r.expr.match.needsContext, ii = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
|
|
1917
|
-
function
|
|
1916
|
+
function At(e, t, i) {
|
|
1918
1917
|
return W(t) ? r.grep(e, function(n, s) {
|
|
1919
1918
|
return !!t.call(n, s, n) !== i;
|
|
1920
1919
|
}) : t.nodeType ? r.grep(e, function(n) {
|
|
@@ -1942,13 +1941,13 @@ function Cr() {
|
|
|
1942
1941
|
return n > 1 ? r.uniqueSort(i) : i;
|
|
1943
1942
|
},
|
|
1944
1943
|
filter: function(e) {
|
|
1945
|
-
return this.pushStack(
|
|
1944
|
+
return this.pushStack(At(this, e || [], !1));
|
|
1946
1945
|
},
|
|
1947
1946
|
not: function(e) {
|
|
1948
|
-
return this.pushStack(
|
|
1947
|
+
return this.pushStack(At(this, e || [], !0));
|
|
1949
1948
|
},
|
|
1950
1949
|
is: function(e) {
|
|
1951
|
-
return !!
|
|
1950
|
+
return !!At(
|
|
1952
1951
|
this,
|
|
1953
1952
|
// If this is a positional/relative selector, check membership in the returned set
|
|
1954
1953
|
// so $("p:first").is("p:last") won't return true for a doc with two "p".
|
|
@@ -2552,7 +2551,7 @@ function Cr() {
|
|
|
2552
2551
|
return c(), s.promise(t);
|
|
2553
2552
|
}
|
|
2554
2553
|
});
|
|
2555
|
-
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"), De = ["Top", "Right", "Bottom", "Left"], Me = L.documentElement, Ve = function(e) {
|
|
2556
2555
|
return r.contains(e.ownerDocument, e);
|
|
2557
2556
|
}, an = { composed: !0 };
|
|
2558
2557
|
Me.getRootNode && (Ve = function(e) {
|
|
@@ -2991,7 +2990,7 @@ function Cr() {
|
|
|
2991
2990
|
i === "input" && nt.test(e.type) ? t.checked = e.checked : (i === "input" || i === "textarea") && (t.defaultValue = e.defaultValue);
|
|
2992
2991
|
}
|
|
2993
2992
|
function Xe(e, t, i, n) {
|
|
2994
|
-
t =
|
|
2993
|
+
t = A(t);
|
|
2995
2994
|
var s, o, u, c, l, h, x = 0, T = e.length, y = T - 1, S = t[0], P = W(S);
|
|
2996
2995
|
if (P || T > 1 && typeof S == "string" && !M.checkClone && cn.test(S))
|
|
2997
2996
|
return e.each(function(z) {
|
|
@@ -3141,7 +3140,7 @@ function Cr() {
|
|
|
3141
3140
|
for (s in t)
|
|
3142
3141
|
e.style[s] = o[s];
|
|
3143
3142
|
return n;
|
|
3144
|
-
}, yn = new RegExp(
|
|
3143
|
+
}, yn = new RegExp(De.join("|"), "i");
|
|
3145
3144
|
(function() {
|
|
3146
3145
|
function e() {
|
|
3147
3146
|
if (h) {
|
|
@@ -3230,7 +3229,7 @@ function Cr() {
|
|
|
3230
3229
|
if (i === (n ? "border" : "content"))
|
|
3231
3230
|
return 0;
|
|
3232
3231
|
for (; u < 4; u += 2)
|
|
3233
|
-
i === "margin" && (h += r.css(e, i +
|
|
3232
|
+
i === "margin" && (h += r.css(e, i + De[u], !0, s)), n ? (i === "content" && (l -= r.css(e, "padding" + De[u], !0, s)), i !== "margin" && (l -= r.css(e, "border" + De[u] + "Width", !0, s))) : (l += r.css(e, "padding" + De[u], !0, s), i !== "padding" ? l += r.css(e, "border" + De[u] + "Width", !0, s) : c += r.css(e, "border" + De[u] + "Width", !0, s));
|
|
3234
3233
|
return !n && o >= 0 && (l += Math.max(0, Math.ceil(
|
|
3235
3234
|
e["offset" + t[0].toUpperCase() + t.slice(1)] - o - l - c - 0.5
|
|
3236
3235
|
// If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter
|
|
@@ -3369,7 +3368,7 @@ function Cr() {
|
|
|
3369
3368
|
r.cssHooks[e + t] = {
|
|
3370
3369
|
expand: function(i) {
|
|
3371
3370
|
for (var n = 0, s = {}, o = typeof i == "string" ? i.split(" ") : [i]; n < 4; n++)
|
|
3372
|
-
s[e +
|
|
3371
|
+
s[e + De[n] + t] = o[n] || o[n - 2] || o[0];
|
|
3373
3372
|
return s;
|
|
3374
3373
|
}
|
|
3375
3374
|
}, e !== "margin" && (r.cssHooks[e + t].set = Si);
|
|
@@ -3443,7 +3442,7 @@ function Cr() {
|
|
|
3443
3442
|
function xt(e, t) {
|
|
3444
3443
|
var i, n = 0, s = { height: e };
|
|
3445
3444
|
for (t = t ? 1 : 0; n < 4; n += 2 - t)
|
|
3446
|
-
i =
|
|
3445
|
+
i = De[n], s["margin" + i] = s["padding" + i] = e;
|
|
3447
3446
|
return t && (s.opacity = s.width = e), s;
|
|
3448
3447
|
}
|
|
3449
3448
|
function Ei(e, t, i) {
|
|
@@ -3650,7 +3649,7 @@ function Cr() {
|
|
|
3650
3649
|
var e = L.createElement("input"), t = L.createElement("select"), i = t.appendChild(L.createElement("option"));
|
|
3651
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";
|
|
3652
3651
|
})();
|
|
3653
|
-
var
|
|
3652
|
+
var Di, st = r.expr.attrHandle;
|
|
3654
3653
|
r.fn.extend({
|
|
3655
3654
|
attr: function(e, t) {
|
|
3656
3655
|
return Ee(this, r.attr, e, t, arguments.length > 1);
|
|
@@ -3666,7 +3665,7 @@ function Cr() {
|
|
|
3666
3665
|
if (!(o === 3 || o === 8 || o === 2)) {
|
|
3667
3666
|
if (typeof e.getAttribute > "u")
|
|
3668
3667
|
return r.prop(e, t, i);
|
|
3669
|
-
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) ? Di : void 0)), i !== void 0) {
|
|
3670
3669
|
if (i === null) {
|
|
3671
3670
|
r.removeAttr(e, t);
|
|
3672
3671
|
return;
|
|
@@ -3692,7 +3691,7 @@ function Cr() {
|
|
|
3692
3691
|
for (; i = s[n++]; )
|
|
3693
3692
|
e.removeAttribute(i);
|
|
3694
3693
|
}
|
|
3695
|
-
}),
|
|
3694
|
+
}), Di = {
|
|
3696
3695
|
set: function(e, t, i) {
|
|
3697
3696
|
return t === !1 ? r.removeAttr(e, i) : e.setAttribute(i, i), i;
|
|
3698
3697
|
}
|
|
@@ -3867,7 +3866,7 @@ function Cr() {
|
|
|
3867
3866
|
return e.getAttribute("value") === null ? "on" : e.value;
|
|
3868
3867
|
});
|
|
3869
3868
|
});
|
|
3870
|
-
var ot = a.location,
|
|
3869
|
+
var ot = a.location, Ai = { guid: Date.now() }, Ft = /\?/;
|
|
3871
3870
|
r.parseXML = function(e) {
|
|
3872
3871
|
var t, i;
|
|
3873
3872
|
if (!e || typeof e != "string")
|
|
@@ -3923,12 +3922,12 @@ function Cr() {
|
|
|
3923
3922
|
return r.event.trigger(e, t, i, !0);
|
|
3924
3923
|
}
|
|
3925
3924
|
});
|
|
3926
|
-
var
|
|
3925
|
+
var Dn = /\[\]$/, Li = /\r?\n/g, An = /^(?:submit|button|image|reset|file)$/i, Rn = /^(?:input|select|textarea|keygen)/i;
|
|
3927
3926
|
function Ot(e, t, i, n) {
|
|
3928
3927
|
var s;
|
|
3929
3928
|
if (Array.isArray(t))
|
|
3930
3929
|
r.each(t, function(o, u) {
|
|
3931
|
-
i ||
|
|
3930
|
+
i || Dn.test(e) ? n(e, u) : Ot(
|
|
3932
3931
|
e + "[" + (typeof u == "object" && u != null ? o : "") + "]",
|
|
3933
3932
|
u,
|
|
3934
3933
|
i,
|
|
@@ -3966,7 +3965,7 @@ function Cr() {
|
|
|
3966
3965
|
return e ? r.makeArray(e) : this;
|
|
3967
3966
|
}).filter(function() {
|
|
3968
3967
|
var e = this.type;
|
|
3969
|
-
return this.name && !r(this).is(":disabled") && Rn.test(this.nodeName) && !
|
|
3968
|
+
return this.name && !r(this).is(":disabled") && Rn.test(this.nodeName) && !An.test(e) && (this.checked || !nt.test(e));
|
|
3970
3969
|
}).map(function(e, t) {
|
|
3971
3970
|
var i = r(this).val();
|
|
3972
3971
|
return i == null ? null : Array.isArray(i) ? r.map(i, function(n) {
|
|
@@ -4198,7 +4197,7 @@ function Cr() {
|
|
|
4198
4197
|
}
|
|
4199
4198
|
if (y.data && y.processData && typeof y.data != "string" && (y.data = r.param(y.data, y.traditional)), Mi(Ii, y, t, U), l)
|
|
4200
4199
|
return U;
|
|
4201
|
-
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) ? "&" : "?") + "_=" + Ai.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(
|
|
4202
4201
|
"Accept",
|
|
4203
4202
|
y.dataTypes[0] && y.accepts[y.dataTypes[0]] ? y.accepts[y.dataTypes[0]] + (y.dataTypes[0] !== "*" ? ", " + qi + "; q=0.01" : "") : y.accepts["*"]
|
|
4204
4203
|
);
|
|
@@ -4402,7 +4401,7 @@ function Cr() {
|
|
|
4402
4401
|
r.ajaxSetup({
|
|
4403
4402
|
jsonp: "callback",
|
|
4404
4403
|
jsonpCallback: function() {
|
|
4405
|
-
var e = Hi.pop() || r.expando + "_" +
|
|
4404
|
+
var e = Hi.pop() || r.expando + "_" + Ai.guid++;
|
|
4406
4405
|
return this[e] = !0, e;
|
|
4407
4406
|
}
|
|
4408
4407
|
}), r.ajaxPrefilter("json jsonp", function(e, t, i) {
|
|
@@ -4615,7 +4614,7 @@ function Cr() {
|
|
|
4615
4614
|
}
|
|
4616
4615
|
var kr = Cr();
|
|
4617
4616
|
const Er = /* @__PURE__ */ wr(kr);
|
|
4618
|
-
class
|
|
4617
|
+
class Dr {
|
|
4619
4618
|
constructor() {
|
|
4620
4619
|
this.canvasEl = null, this.opt = null, this.el = null, this.$el = null, this.player = null, console.log("MnPlayer constructor");
|
|
4621
4620
|
}
|
|
@@ -4698,7 +4697,7 @@ class Ar {
|
|
|
4698
4697
|
}
|
|
4699
4698
|
}
|
|
4700
4699
|
export {
|
|
4701
|
-
|
|
4702
|
-
|
|
4700
|
+
Dr as MnVideoPlayer,
|
|
4701
|
+
Dr as default
|
|
4703
4702
|
};
|
|
4704
4703
|
//# sourceMappingURL=mn-video-player.es.js.map
|