multi_embed_player 3.0.1 → 3.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/.github/workflows/build-and-deploy.yml +44 -0
- package/.gitmodules +3 -0
- package/CLAUDE.md +92 -0
- package/README.md +0 -24
- package/add_types.sh +61 -0
- package/browserExtention/chrome/background.js +55 -0
- package/browserExtention/chrome/extention.json +1 -0
- package/browserExtention/chrome/liteplayer.js +26439 -0
- package/browserExtention/chrome/manifest.json +31 -0
- package/browserExtention/chrome/player-selector.js +1854 -0
- package/browserExtention/firefox/background.js +27 -0
- package/browserExtention/firefox/extention.json +1 -0
- package/browserExtention/firefox/liteplayer.js +26439 -0
- package/browserExtention/firefox/manifest.json +19 -0
- package/browserExtention/firefox/player-selector.js +1854 -0
- package/documents/.hugo_build.lock +0 -0
- package/documents/archetypes/default.md +5 -0
- package/documents/assets/jsconfig.json +11 -0
- package/documents/content/docs/install.md +103 -0
- package/documents/content/docs/quickstart.md +51 -0
- package/documents/content/docs/reference/HTML.md +31 -0
- package/documents/content/docs/reference/_index.md +10 -0
- package/documents/content/docs/reference/error_code.md +23 -0
- package/documents/content/docs/reference/iframe_api.md +737 -0
- package/documents/content/docs/reference/iframe_class.md +230 -0
- package/documents/content/docs/reference/multi_embed_player_class.md +113 -0
- package/documents/content/docs/reference/reserved_words.md +71 -0
- package/documents/content/docs/usage/GDPR_mode.md +77 -0
- package/documents/content/docs/usage/_index.md +10 -0
- package/documents/content/docs/usage/custom_playlist.md +239 -0
- package/documents/content/docs/usage/embed_api.md +163 -0
- package/documents/content/docs/usage/embed_various_service.md +81 -0
- package/documents/content/docs/usage/thumbnail_click.md +57 -0
- package/documents/go.mod +8 -0
- package/documents/go.sum +14 -0
- package/documents/hugo.toml +18 -0
- package/documents/layouts/partials/docs/sidebar.html +117 -0
- package/documents/layouts/partials/landing/features.html +47 -0
- package/documents/layouts/robots.txt +4 -0
- package/documents/static/_headers +7 -0
- package/documents/static/localStorageCheck.html +27 -0
- package/documents/static/no_extention.json +1 -0
- package/example.html +27 -0
- package/extention.json +1 -0
- package/icon/video_not_found.odg +0 -0
- package/icon/video_not_found.svgz +0 -0
- package/iframe_api/bilibili.ts +1095 -0
- package/iframe_api/niconico.ts +429 -0
- package/iframe_api/soundcloud.ts +450 -0
- package/iframe_api/youtube.ts +311 -0
- package/multi_embed_player.ts +989 -0
- package/package.json +10 -41
- package/player_api_gate/bilibili-api-gate/cgi/cpp/bilibili-api-gate-cgi.cpp +281 -0
- package/player_api_gate/bilibili-api-gate/cgi/go/src.go +46 -0
- package/player_api_gate/bilibili-api-gate/cloudflare_workers/package-lock.json +1356 -0
- package/player_api_gate/bilibili-api-gate/cloudflare_workers/package.json +12 -0
- package/player_api_gate/bilibili-api-gate/cloudflare_workers/src/index.js +50 -0
- package/player_api_gate/bilibili-api-gate/cloudflare_workers/wrangler.toml +3 -0
- package/player_api_gate/iframe-api-ts/.editorconfig +12 -0
- package/player_api_gate/iframe-api-ts/.prettierrc +6 -0
- package/player_api_gate/iframe-api-ts/package-lock.json +3054 -0
- package/player_api_gate/iframe-api-ts/package.json +18 -0
- package/player_api_gate/iframe-api-ts/src/bilibili.ts +49 -0
- package/player_api_gate/iframe-api-ts/src/index.ts +35 -0
- package/player_api_gate/iframe-api-ts/src/niconico.ts +95 -0
- package/player_api_gate/iframe-api-ts/src/soundcloud.ts +38 -0
- package/player_api_gate/iframe-api-ts/src/types.ts +115 -0
- package/player_api_gate/iframe-api-ts/src/url-proxy.ts +29 -0
- package/player_api_gate/iframe-api-ts/src/utils.ts +82 -0
- package/player_api_gate/iframe-api-ts/src/youtube.ts +41 -0
- package/player_api_gate/iframe-api-ts/test/bilibili.spec.ts +47 -0
- package/player_api_gate/iframe-api-ts/test/env.d.ts +3 -0
- package/player_api_gate/iframe-api-ts/test/index.spec.ts +59 -0
- package/player_api_gate/iframe-api-ts/test/niconico.spec.ts +55 -0
- package/player_api_gate/iframe-api-ts/test/soundcloud.spec.ts +55 -0
- package/player_api_gate/iframe-api-ts/test/tsconfig.json +8 -0
- package/player_api_gate/iframe-api-ts/test/url-proxy.spec.ts +46 -0
- package/player_api_gate/iframe-api-ts/test/youtube.spec.ts +45 -0
- package/player_api_gate/iframe-api-ts/tsconfig.json +45 -0
- package/player_api_gate/iframe-api-ts/vitest.config.mts +11 -0
- package/player_api_gate/iframe-api-ts/worker-configuration.d.ts +5768 -0
- package/player_api_gate/iframe-api-ts/wrangler.jsonc +47 -0
- package/player_api_gate/iframe_api/.editorconfig +13 -0
- package/player_api_gate/iframe_api/.prettierrc +6 -0
- package/player_api_gate/iframe_api/package-lock.json +1307 -0
- package/player_api_gate/iframe_api/package.json +12 -0
- package/player_api_gate/iframe_api/src/bilibili_api.js +60 -0
- package/player_api_gate/iframe_api/src/index.js +47 -0
- package/player_api_gate/iframe_api/src/niconico_api.js +112 -0
- package/player_api_gate/iframe_api/src/soundcloud_api.js +57 -0
- package/player_api_gate/iframe_api/src/url_proxy.js +28 -0
- package/player_api_gate/iframe_api/src/youtube_api.js +44 -0
- package/player_api_gate/iframe_api/wrangler.toml +51 -0
- package/player_api_gate/niconico-imager/cgi/go/src.go +74 -0
- package/player_api_gate/niconico-imager/cloudflare_workers/package-lock.json +2175 -0
- package/player_api_gate/niconico-imager/cloudflare_workers/package.json +12 -0
- package/player_api_gate/niconico-imager/cloudflare_workers/src/index.js +78 -0
- package/player_api_gate/niconico-imager/cloudflare_workers/wrangler.toml +3 -0
- package/test_script.html +172 -0
- package/tsconfig.json +36 -0
- package/dist/iframe_api/bilibili.d.ts +0 -91
- package/dist/iframe_api/bilibili.d.ts.map +0 -1
- package/dist/iframe_api/bilibili.js +0 -451
- package/dist/iframe_api/bilibili.js.map +0 -1
- package/dist/iframe_api/index.d.ts +0 -6
- package/dist/iframe_api/index.d.ts.map +0 -1
- package/dist/iframe_api/index.js +0 -8
- package/dist/iframe_api/index.js.map +0 -1
- package/dist/iframe_api/niconico.d.ts +0 -42
- package/dist/iframe_api/niconico.d.ts.map +0 -1
- package/dist/iframe_api/niconico.js +0 -181
- package/dist/iframe_api/niconico.js.map +0 -1
- package/dist/iframe_api/soundcloud.d.ts +0 -80
- package/dist/iframe_api/soundcloud.d.ts.map +0 -1
- package/dist/iframe_api/soundcloud.js +0 -188
- package/dist/iframe_api/soundcloud.js.map +0 -1
- package/dist/iframe_api/youtube.d.ts +0 -133
- package/dist/iframe_api/youtube.d.ts.map +0 -1
- package/dist/iframe_api/youtube.js +0 -278
- package/dist/iframe_api/youtube.js.map +0 -1
- package/dist/multi_embed_player.d.ts +0 -48
- package/dist/multi_embed_player.d.ts.map +0 -1
- package/dist/multi_embed_player.js +0 -318
- package/dist/multi_embed_player.js.map +0 -1
- package/dist/types.d.ts +0 -126
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -22
- package/dist/types.js.map +0 -1
|
@@ -0,0 +1,1854 @@
|
|
|
1
|
+
// https://raw.githubusercontent.com/lockcp/roam-research-bilibili-timestamp/main/MyBilibiliLitePlayer/player-selector.js
|
|
2
|
+
//Copyright 2021 LudwigWS
|
|
3
|
+
//LICENCE Apache-2.0 license
|
|
4
|
+
var t, e;
|
|
5
|
+
t = window,
|
|
6
|
+
console.log('replace with custom player-selector');
|
|
7
|
+
e = function() {
|
|
8
|
+
return function(t) {
|
|
9
|
+
var e = {};
|
|
10
|
+
function n(i) {
|
|
11
|
+
if (e[i])
|
|
12
|
+
return e[i].exports;
|
|
13
|
+
var o = e[i] = {
|
|
14
|
+
i: i,
|
|
15
|
+
l: !1,
|
|
16
|
+
exports: {}
|
|
17
|
+
};
|
|
18
|
+
return t[i].call(o.exports, o, o.exports, n),
|
|
19
|
+
o.l = !0,
|
|
20
|
+
o.exports
|
|
21
|
+
}
|
|
22
|
+
return n.m = t,
|
|
23
|
+
n.c = e,
|
|
24
|
+
n.d = function(t, e, i) {
|
|
25
|
+
n.o(t, e) || Object.defineProperty(t, e, {
|
|
26
|
+
enumerable: !0,
|
|
27
|
+
get: i
|
|
28
|
+
})
|
|
29
|
+
}
|
|
30
|
+
,
|
|
31
|
+
n.r = function(t) {
|
|
32
|
+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
|
|
33
|
+
value: "Module"
|
|
34
|
+
}),
|
|
35
|
+
Object.defineProperty(t, "__esModule", {
|
|
36
|
+
value: !0
|
|
37
|
+
})
|
|
38
|
+
}
|
|
39
|
+
,
|
|
40
|
+
n.t = function(t, e) {
|
|
41
|
+
if (1 & e && (t = n(t)),
|
|
42
|
+
8 & e)
|
|
43
|
+
return t;
|
|
44
|
+
if (4 & e && "object" == typeof t && t && t.__esModule)
|
|
45
|
+
return t;
|
|
46
|
+
var i = Object.create(null);
|
|
47
|
+
if (n.r(i),
|
|
48
|
+
Object.defineProperty(i, "default", {
|
|
49
|
+
enumerable: !0,
|
|
50
|
+
value: t
|
|
51
|
+
}),
|
|
52
|
+
2 & e && "string" != typeof t)
|
|
53
|
+
for (var o in t)
|
|
54
|
+
n.d(i, o, function(e) {
|
|
55
|
+
return t[e]
|
|
56
|
+
}
|
|
57
|
+
.bind(null, o));
|
|
58
|
+
return i
|
|
59
|
+
}
|
|
60
|
+
,
|
|
61
|
+
n.n = function(t) {
|
|
62
|
+
var e = t && t.__esModule ? function() {
|
|
63
|
+
return t.default
|
|
64
|
+
}
|
|
65
|
+
: function() {
|
|
66
|
+
return t
|
|
67
|
+
}
|
|
68
|
+
;
|
|
69
|
+
return n.d(e, "a", e),
|
|
70
|
+
e
|
|
71
|
+
}
|
|
72
|
+
,
|
|
73
|
+
n.o = function(t, e) {
|
|
74
|
+
return Object.prototype.hasOwnProperty.call(t, e)
|
|
75
|
+
}
|
|
76
|
+
,
|
|
77
|
+
n.p = "",
|
|
78
|
+
n(n.s = 1)
|
|
79
|
+
}([function(t, e, n) {
|
|
80
|
+
"use strict";
|
|
81
|
+
n.r(e),
|
|
82
|
+
n.d(e, "__extends", (function() {
|
|
83
|
+
return o
|
|
84
|
+
}
|
|
85
|
+
)),
|
|
86
|
+
n.d(e, "__assign", (function() {
|
|
87
|
+
return r
|
|
88
|
+
}
|
|
89
|
+
)),
|
|
90
|
+
n.d(e, "__rest", (function() {
|
|
91
|
+
return a
|
|
92
|
+
}
|
|
93
|
+
)),
|
|
94
|
+
n.d(e, "__decorate", (function() {
|
|
95
|
+
return s
|
|
96
|
+
}
|
|
97
|
+
)),
|
|
98
|
+
n.d(e, "__param", (function() {
|
|
99
|
+
return l
|
|
100
|
+
}
|
|
101
|
+
)),
|
|
102
|
+
n.d(e, "__metadata", (function() {
|
|
103
|
+
return c
|
|
104
|
+
}
|
|
105
|
+
)),
|
|
106
|
+
n.d(e, "__awaiter", (function() {
|
|
107
|
+
return f
|
|
108
|
+
}
|
|
109
|
+
)),
|
|
110
|
+
n.d(e, "__generator", (function() {
|
|
111
|
+
return u
|
|
112
|
+
}
|
|
113
|
+
)),
|
|
114
|
+
n.d(e, "__exportStar", (function() {
|
|
115
|
+
return d
|
|
116
|
+
}
|
|
117
|
+
)),
|
|
118
|
+
n.d(e, "__values", (function() {
|
|
119
|
+
return p
|
|
120
|
+
}
|
|
121
|
+
)),
|
|
122
|
+
n.d(e, "__read", (function() {
|
|
123
|
+
return h
|
|
124
|
+
}
|
|
125
|
+
)),
|
|
126
|
+
n.d(e, "__spread", (function() {
|
|
127
|
+
return y
|
|
128
|
+
}
|
|
129
|
+
)),
|
|
130
|
+
n.d(e, "__spreadArrays", (function() {
|
|
131
|
+
return w
|
|
132
|
+
}
|
|
133
|
+
)),
|
|
134
|
+
n.d(e, "__await", (function() {
|
|
135
|
+
return b
|
|
136
|
+
}
|
|
137
|
+
)),
|
|
138
|
+
n.d(e, "__asyncGenerator", (function() {
|
|
139
|
+
return m
|
|
140
|
+
}
|
|
141
|
+
)),
|
|
142
|
+
n.d(e, "__asyncDelegator", (function() {
|
|
143
|
+
return g
|
|
144
|
+
}
|
|
145
|
+
)),
|
|
146
|
+
n.d(e, "__asyncValues", (function() {
|
|
147
|
+
return v
|
|
148
|
+
}
|
|
149
|
+
)),
|
|
150
|
+
n.d(e, "__makeTemplateObject", (function() {
|
|
151
|
+
return _
|
|
152
|
+
}
|
|
153
|
+
)),
|
|
154
|
+
n.d(e, "__importStar", (function() {
|
|
155
|
+
return x
|
|
156
|
+
}
|
|
157
|
+
)),
|
|
158
|
+
n.d(e, "__importDefault", (function() {
|
|
159
|
+
return P
|
|
160
|
+
}
|
|
161
|
+
));
|
|
162
|
+
/*! *****************************************************************************
|
|
163
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
164
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
165
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
166
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
167
|
+
|
|
168
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
169
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
170
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
171
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
172
|
+
|
|
173
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
174
|
+
and limitations under the License.
|
|
175
|
+
***************************************************************************** */
|
|
176
|
+
var i = function(t, e) {
|
|
177
|
+
return (i = Object.setPrototypeOf || {
|
|
178
|
+
__proto__: []
|
|
179
|
+
}instanceof Array && function(t, e) {
|
|
180
|
+
t.__proto__ = e
|
|
181
|
+
}
|
|
182
|
+
|| function(t, e) {
|
|
183
|
+
for (var n in e)
|
|
184
|
+
e.hasOwnProperty(n) && (t[n] = e[n])
|
|
185
|
+
}
|
|
186
|
+
)(t, e)
|
|
187
|
+
};
|
|
188
|
+
function o(t, e) {
|
|
189
|
+
function n() {
|
|
190
|
+
this.constructor = t
|
|
191
|
+
}
|
|
192
|
+
i(t, e),
|
|
193
|
+
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype,
|
|
194
|
+
new n)
|
|
195
|
+
}
|
|
196
|
+
var r = function() {
|
|
197
|
+
return (r = Object.assign || function(t) {
|
|
198
|
+
for (var e, n = 1, i = arguments.length; n < i; n++)
|
|
199
|
+
for (var o in e = arguments[n])
|
|
200
|
+
Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
|
|
201
|
+
return t
|
|
202
|
+
}
|
|
203
|
+
).apply(this, arguments)
|
|
204
|
+
};
|
|
205
|
+
function a(t, e) {
|
|
206
|
+
var n = {};
|
|
207
|
+
for (var i in t)
|
|
208
|
+
Object.prototype.hasOwnProperty.call(t, i) && e.indexOf(i) < 0 && (n[i] = t[i]);
|
|
209
|
+
if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
|
|
210
|
+
var o = 0;
|
|
211
|
+
for (i = Object.getOwnPropertySymbols(t); o < i.length; o++)
|
|
212
|
+
e.indexOf(i[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, i[o]) && (n[i[o]] = t[i[o]])
|
|
213
|
+
}
|
|
214
|
+
return n
|
|
215
|
+
}
|
|
216
|
+
function s(t, e, n, i) {
|
|
217
|
+
var o, r = arguments.length, a = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i;
|
|
218
|
+
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate)
|
|
219
|
+
a = Reflect.decorate(t, e, n, i);
|
|
220
|
+
else
|
|
221
|
+
for (var s = t.length - 1; s >= 0; s--)
|
|
222
|
+
(o = t[s]) && (a = (r < 3 ? o(a) : r > 3 ? o(e, n, a) : o(e, n)) || a);
|
|
223
|
+
return r > 3 && a && Object.defineProperty(e, n, a),
|
|
224
|
+
a
|
|
225
|
+
}
|
|
226
|
+
function l(t, e) {
|
|
227
|
+
return function(n, i) {
|
|
228
|
+
e(n, i, t)
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
function c(t, e) {
|
|
232
|
+
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata)
|
|
233
|
+
return Reflect.metadata(t, e)
|
|
234
|
+
}
|
|
235
|
+
function f(t, e, n, i) {
|
|
236
|
+
return new (n || (n = Promise))((function(o, r) {
|
|
237
|
+
function a(t) {
|
|
238
|
+
try {
|
|
239
|
+
l(i.next(t))
|
|
240
|
+
} catch (t) {
|
|
241
|
+
r(t)
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
function s(t) {
|
|
245
|
+
try {
|
|
246
|
+
l(i.throw(t))
|
|
247
|
+
} catch (t) {
|
|
248
|
+
r(t)
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
function l(t) {
|
|
252
|
+
t.done ? o(t.value) : new n((function(e) {
|
|
253
|
+
e(t.value)
|
|
254
|
+
}
|
|
255
|
+
)).then(a, s)
|
|
256
|
+
}
|
|
257
|
+
l((i = i.apply(t, e || [])).next())
|
|
258
|
+
}
|
|
259
|
+
))
|
|
260
|
+
}
|
|
261
|
+
function u(t, e) {
|
|
262
|
+
var n, i, o, r, a = {
|
|
263
|
+
label: 0,
|
|
264
|
+
sent: function() {
|
|
265
|
+
if (1 & o[0])
|
|
266
|
+
throw o[1];
|
|
267
|
+
return o[1]
|
|
268
|
+
},
|
|
269
|
+
trys: [],
|
|
270
|
+
ops: []
|
|
271
|
+
};
|
|
272
|
+
return r = {
|
|
273
|
+
next: s(0),
|
|
274
|
+
throw: s(1),
|
|
275
|
+
return: s(2)
|
|
276
|
+
},
|
|
277
|
+
"function" == typeof Symbol && (r[Symbol.iterator] = function() {
|
|
278
|
+
return this
|
|
279
|
+
}
|
|
280
|
+
),
|
|
281
|
+
r;
|
|
282
|
+
function s(r) {
|
|
283
|
+
return function(s) {
|
|
284
|
+
return function(r) {
|
|
285
|
+
if (n)
|
|
286
|
+
throw new TypeError("Generator is already executing.");
|
|
287
|
+
for (; a; )
|
|
288
|
+
try {
|
|
289
|
+
if (n = 1,
|
|
290
|
+
i && (o = 2 & r[0] ? i.return : r[0] ? i.throw || ((o = i.return) && o.call(i),
|
|
291
|
+
0) : i.next) && !(o = o.call(i, r[1])).done)
|
|
292
|
+
return o;
|
|
293
|
+
switch (i = 0,
|
|
294
|
+
o && (r = [2 & r[0], o.value]),
|
|
295
|
+
r[0]) {
|
|
296
|
+
case 0:
|
|
297
|
+
case 1:
|
|
298
|
+
o = r;
|
|
299
|
+
break;
|
|
300
|
+
case 4:
|
|
301
|
+
return a.label++,
|
|
302
|
+
{
|
|
303
|
+
value: r[1],
|
|
304
|
+
done: !1
|
|
305
|
+
};
|
|
306
|
+
case 5:
|
|
307
|
+
a.label++,
|
|
308
|
+
i = r[1],
|
|
309
|
+
r = [0];
|
|
310
|
+
continue;
|
|
311
|
+
case 7:
|
|
312
|
+
r = a.ops.pop(),
|
|
313
|
+
a.trys.pop();
|
|
314
|
+
continue;
|
|
315
|
+
default:
|
|
316
|
+
if (!((o = (o = a.trys).length > 0 && o[o.length - 1]) || 6 !== r[0] && 2 !== r[0])) {
|
|
317
|
+
a = 0;
|
|
318
|
+
continue
|
|
319
|
+
}
|
|
320
|
+
if (3 === r[0] && (!o || r[1] > o[0] && r[1] < o[3])) {
|
|
321
|
+
a.label = r[1];
|
|
322
|
+
break
|
|
323
|
+
}
|
|
324
|
+
if (6 === r[0] && a.label < o[1]) {
|
|
325
|
+
a.label = o[1],
|
|
326
|
+
o = r;
|
|
327
|
+
break
|
|
328
|
+
}
|
|
329
|
+
if (o && a.label < o[2]) {
|
|
330
|
+
a.label = o[2],
|
|
331
|
+
a.ops.push(r);
|
|
332
|
+
break
|
|
333
|
+
}
|
|
334
|
+
o[2] && a.ops.pop(),
|
|
335
|
+
a.trys.pop();
|
|
336
|
+
continue
|
|
337
|
+
}
|
|
338
|
+
r = e.call(t, a)
|
|
339
|
+
} catch (t) {
|
|
340
|
+
r = [6, t],
|
|
341
|
+
i = 0
|
|
342
|
+
} finally {
|
|
343
|
+
n = o = 0
|
|
344
|
+
}
|
|
345
|
+
if (5 & r[0])
|
|
346
|
+
throw r[1];
|
|
347
|
+
return {
|
|
348
|
+
value: r[0] ? r[1] : void 0,
|
|
349
|
+
done: !0
|
|
350
|
+
}
|
|
351
|
+
}([r, s])
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
function d(t, e) {
|
|
356
|
+
for (var n in t)
|
|
357
|
+
e.hasOwnProperty(n) || (e[n] = t[n])
|
|
358
|
+
}
|
|
359
|
+
function p(t) {
|
|
360
|
+
var e = "function" == typeof Symbol && t[Symbol.iterator]
|
|
361
|
+
, n = 0;
|
|
362
|
+
return e ? e.call(t) : {
|
|
363
|
+
next: function() {
|
|
364
|
+
return t && n >= t.length && (t = void 0),
|
|
365
|
+
{
|
|
366
|
+
value: t && t[n++],
|
|
367
|
+
done: !t
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
function h(t, e) {
|
|
373
|
+
var n = "function" == typeof Symbol && t[Symbol.iterator];
|
|
374
|
+
if (!n)
|
|
375
|
+
return t;
|
|
376
|
+
var i, o, r = n.call(t), a = [];
|
|
377
|
+
try {
|
|
378
|
+
for (; (void 0 === e || e-- > 0) && !(i = r.next()).done; )
|
|
379
|
+
a.push(i.value)
|
|
380
|
+
} catch (t) {
|
|
381
|
+
o = {
|
|
382
|
+
error: t
|
|
383
|
+
}
|
|
384
|
+
} finally {
|
|
385
|
+
try {
|
|
386
|
+
i && !i.done && (n = r.return) && n.call(r)
|
|
387
|
+
} finally {
|
|
388
|
+
if (o)
|
|
389
|
+
throw o.error
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
return a
|
|
393
|
+
}
|
|
394
|
+
function y() {
|
|
395
|
+
for (var t = [], e = 0; e < arguments.length; e++)
|
|
396
|
+
t = t.concat(h(arguments[e]));
|
|
397
|
+
return t
|
|
398
|
+
}
|
|
399
|
+
function w() {
|
|
400
|
+
for (var t = 0, e = 0, n = arguments.length; e < n; e++)
|
|
401
|
+
t += arguments[e].length;
|
|
402
|
+
var i = Array(t)
|
|
403
|
+
, o = 0;
|
|
404
|
+
for (e = 0; e < n; e++)
|
|
405
|
+
for (var r = arguments[e], a = 0, s = r.length; a < s; a++,
|
|
406
|
+
o++)
|
|
407
|
+
i[o] = r[a];
|
|
408
|
+
return i
|
|
409
|
+
}
|
|
410
|
+
function b(t) {
|
|
411
|
+
return this instanceof b ? (this.v = t,
|
|
412
|
+
this) : new b(t)
|
|
413
|
+
}
|
|
414
|
+
function m(t, e, n) {
|
|
415
|
+
if (!Symbol.asyncIterator)
|
|
416
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
417
|
+
var i, o = n.apply(t, e || []), r = [];
|
|
418
|
+
return i = {},
|
|
419
|
+
a("next"),
|
|
420
|
+
a("throw"),
|
|
421
|
+
a("return"),
|
|
422
|
+
i[Symbol.asyncIterator] = function() {
|
|
423
|
+
return this
|
|
424
|
+
}
|
|
425
|
+
,
|
|
426
|
+
i;
|
|
427
|
+
function a(t) {
|
|
428
|
+
o[t] && (i[t] = function(e) {
|
|
429
|
+
return new Promise((function(n, i) {
|
|
430
|
+
r.push([t, e, n, i]) > 1 || s(t, e)
|
|
431
|
+
}
|
|
432
|
+
))
|
|
433
|
+
}
|
|
434
|
+
)
|
|
435
|
+
}
|
|
436
|
+
function s(t, e) {
|
|
437
|
+
try {
|
|
438
|
+
(n = o[t](e)).value instanceof b ? Promise.resolve(n.value.v).then(l, c) : f(r[0][2], n)
|
|
439
|
+
} catch (t) {
|
|
440
|
+
f(r[0][3], t)
|
|
441
|
+
}
|
|
442
|
+
var n
|
|
443
|
+
}
|
|
444
|
+
function l(t) {
|
|
445
|
+
s("next", t)
|
|
446
|
+
}
|
|
447
|
+
function c(t) {
|
|
448
|
+
s("throw", t)
|
|
449
|
+
}
|
|
450
|
+
function f(t, e) {
|
|
451
|
+
t(e),
|
|
452
|
+
r.shift(),
|
|
453
|
+
r.length && s(r[0][0], r[0][1])
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
function g(t) {
|
|
457
|
+
var e, n;
|
|
458
|
+
return e = {},
|
|
459
|
+
i("next"),
|
|
460
|
+
i("throw", (function(t) {
|
|
461
|
+
throw t
|
|
462
|
+
}
|
|
463
|
+
)),
|
|
464
|
+
i("return"),
|
|
465
|
+
e[Symbol.iterator] = function() {
|
|
466
|
+
return this
|
|
467
|
+
}
|
|
468
|
+
,
|
|
469
|
+
e;
|
|
470
|
+
function i(i, o) {
|
|
471
|
+
e[i] = t[i] ? function(e) {
|
|
472
|
+
return (n = !n) ? {
|
|
473
|
+
value: b(t[i](e)),
|
|
474
|
+
done: "return" === i
|
|
475
|
+
} : o ? o(e) : e
|
|
476
|
+
}
|
|
477
|
+
: o
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
function v(t) {
|
|
481
|
+
if (!Symbol.asyncIterator)
|
|
482
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
483
|
+
var e, n = t[Symbol.asyncIterator];
|
|
484
|
+
return n ? n.call(t) : (t = p(t),
|
|
485
|
+
e = {},
|
|
486
|
+
i("next"),
|
|
487
|
+
i("throw"),
|
|
488
|
+
i("return"),
|
|
489
|
+
e[Symbol.asyncIterator] = function() {
|
|
490
|
+
return this
|
|
491
|
+
}
|
|
492
|
+
,
|
|
493
|
+
e);
|
|
494
|
+
function i(n) {
|
|
495
|
+
e[n] = t[n] && function(e) {
|
|
496
|
+
return new Promise((function(i, o) {
|
|
497
|
+
!function(t, e, n, i) {
|
|
498
|
+
Promise.resolve(i).then((function(e) {
|
|
499
|
+
t({
|
|
500
|
+
value: e,
|
|
501
|
+
done: n
|
|
502
|
+
})
|
|
503
|
+
}
|
|
504
|
+
), e)
|
|
505
|
+
}(i, o, (e = t[n](e)).done, e.value)
|
|
506
|
+
}
|
|
507
|
+
))
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
function _(t, e) {
|
|
512
|
+
return Object.defineProperty ? Object.defineProperty(t, "raw", {
|
|
513
|
+
value: e
|
|
514
|
+
}) : t.raw = e,
|
|
515
|
+
t
|
|
516
|
+
}
|
|
517
|
+
function x(t) {
|
|
518
|
+
if (t && t.__esModule)
|
|
519
|
+
return t;
|
|
520
|
+
var e = {};
|
|
521
|
+
if (null != t)
|
|
522
|
+
for (var n in t)
|
|
523
|
+
Object.hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
524
|
+
return e.default = t,
|
|
525
|
+
e
|
|
526
|
+
}
|
|
527
|
+
function P(t) {
|
|
528
|
+
return t && t.__esModule ? t : {
|
|
529
|
+
default: t
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
, function(t, e, n) {
|
|
534
|
+
"use strict";
|
|
535
|
+
Object.defineProperty(e, "__esModule", {
|
|
536
|
+
value: !0
|
|
537
|
+
});
|
|
538
|
+
var i = n(0);
|
|
539
|
+
n(6),
|
|
540
|
+
n(16);
|
|
541
|
+
var o = i.__importDefault(n(8))
|
|
542
|
+
, r = i.__importDefault(n(10))
|
|
543
|
+
, a = n(3)
|
|
544
|
+
, s = i.__importDefault(n(2))
|
|
545
|
+
, l = function() {
|
|
546
|
+
function t(t) {
|
|
547
|
+
var e = s.default.defaultSearch()
|
|
548
|
+
, n = i.__assign(i.__assign({
|
|
549
|
+
show_bv: window.show_bv
|
|
550
|
+
}, e), t);
|
|
551
|
+
n.crossDomain && (document.domain = "bilibili.com"),
|
|
552
|
+
n.gamePlayer || "litePlayer" === n.playerKind ? (n.gamePlayer && (n.playerKind = "gamePlayer"),
|
|
553
|
+
new r.default(n)) : new o.default(n)
|
|
554
|
+
}
|
|
555
|
+
return t.getCid = function(t, e) {
|
|
556
|
+
var n = {}
|
|
557
|
+
, i = (t.p || 1) - 1;
|
|
558
|
+
window.show_bv ? n.bvid = t.bvid : n.aid = t.aid,
|
|
559
|
+
s.default.ajax({
|
|
560
|
+
data: n,
|
|
561
|
+
method: "GET",
|
|
562
|
+
url: "//api.bilibili.com/x/web-interface/view",
|
|
563
|
+
async: !0,
|
|
564
|
+
withCredentials: !0
|
|
565
|
+
}).then((function(n) {
|
|
566
|
+
try {
|
|
567
|
+
var o = JSON.parse(n);
|
|
568
|
+
if (o && o.data && o.data.pages) {
|
|
569
|
+
var r = o.data.pages;
|
|
570
|
+
r[i] ? t.cid = r[i].cid : t.cid = r[0].cid || o.data.cid
|
|
571
|
+
}
|
|
572
|
+
e(t)
|
|
573
|
+
} catch (n) {
|
|
574
|
+
e(t)
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
)).catch((function() {
|
|
578
|
+
e(t)
|
|
579
|
+
}
|
|
580
|
+
))
|
|
581
|
+
}
|
|
582
|
+
,
|
|
583
|
+
t.metadata = function() {
|
|
584
|
+
return a.metadata
|
|
585
|
+
}
|
|
586
|
+
,
|
|
587
|
+
t
|
|
588
|
+
}();
|
|
589
|
+
e.default = l
|
|
590
|
+
}
|
|
591
|
+
, function(t, e, n) {
|
|
592
|
+
"use strict";
|
|
593
|
+
Object.defineProperty(e, "__esModule", {
|
|
594
|
+
value: !0
|
|
595
|
+
});
|
|
596
|
+
var i = {
|
|
597
|
+
get version() {
|
|
598
|
+
var t = navigator.userAgent.toLowerCase();
|
|
599
|
+
return {
|
|
600
|
+
mobile: /AppleWebKit.*Mobile.*/i.test(t),
|
|
601
|
+
iPad: /iPad/i.test(t) || "MacIntel" === navigator.platform && navigator.maxTouchPoints > 1
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
flashChecker: function() {
|
|
605
|
+
var t = !1;
|
|
606
|
+
if (/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()) && !/Edge/i.test(navigator.userAgent) || /Trident/i.test(navigator.userAgent))
|
|
607
|
+
try {
|
|
608
|
+
(e = window.ActiveXObject && new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash")) && (t = !0,
|
|
609
|
+
e.GetVariable("$version"))
|
|
610
|
+
} catch (t) {}
|
|
611
|
+
else if (navigator.plugins && navigator.plugins.length > 0) {
|
|
612
|
+
var e;
|
|
613
|
+
(e = navigator.plugins["Shockwave Flash"]) && (t = !0)
|
|
614
|
+
}
|
|
615
|
+
return t
|
|
616
|
+
},
|
|
617
|
+
html5Checker: function() {
|
|
618
|
+
var t = !(/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()) || /Trident/i.test(navigator.userAgent) && /Windows NT 6/.test(navigator.userAgent) || !window.URL);
|
|
619
|
+
if (t) {
|
|
620
|
+
var e = document.createElement("video");
|
|
621
|
+
return e && e.canPlayType && e.canPlayType('video/mp4; codecs="avc1.42001E, mp4a.40.2"')
|
|
622
|
+
}
|
|
623
|
+
return t
|
|
624
|
+
},
|
|
625
|
+
html5Policy: function() {
|
|
626
|
+
try {
|
|
627
|
+
var t = void 0;
|
|
628
|
+
if (/Edge/.test(navigator.userAgent))
|
|
629
|
+
return !1;
|
|
630
|
+
if (/Chrome\/\d+/i.test(navigator.userAgent)) {
|
|
631
|
+
if ((t = navigator.userAgent.match(/Chrome\/(\d+)/)) && parseInt(t[1], 10) >= 45)
|
|
632
|
+
return !0
|
|
633
|
+
} else if (/Firefox\/\d+/i.test(navigator.userAgent)) {
|
|
634
|
+
if ((t = navigator.userAgent.match(/Firefox\/(\d+)/)) && parseInt(t[1], 10) >= 47)
|
|
635
|
+
return !0
|
|
636
|
+
} else if (/linux/i.test(navigator.userAgent.toLowerCase()) || /Mac OS X[\s_\-/](\d+[.\-_]\d+[.\-_]?\d*)/i.test(navigator.userAgent))
|
|
637
|
+
return !0;
|
|
638
|
+
return !1
|
|
639
|
+
} catch (t) {
|
|
640
|
+
return !1
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
getUrlValue: function(t) {
|
|
644
|
+
var e = new RegExp("(^|&)" + t + "=([^&]*)(&|$)","i")
|
|
645
|
+
, n = window.location.search.substr(1).match(e);
|
|
646
|
+
if (null != n)
|
|
647
|
+
try {
|
|
648
|
+
return decodeURIComponent(n[2])
|
|
649
|
+
} catch (t) {
|
|
650
|
+
return ""
|
|
651
|
+
}
|
|
652
|
+
return ""
|
|
653
|
+
},
|
|
654
|
+
parseConfig: function(t, e, n) {
|
|
655
|
+
if ("enable_ssl_resolve" === e || "enable_ssl_stream" === e)
|
|
656
|
+
t[e] = "" !== n && 0 == n ? 0 : 1;
|
|
657
|
+
else if ("aid" === e || "cid" === e)
|
|
658
|
+
t[e] = n;
|
|
659
|
+
else if ("bvid" === e)
|
|
660
|
+
t[e] = n || "";
|
|
661
|
+
else if ("player_type" === e || "pre_ad" === e)
|
|
662
|
+
t[e] = n || "";
|
|
663
|
+
else
|
|
664
|
+
switch (e) {
|
|
665
|
+
case "danmaku":
|
|
666
|
+
t[e] = "" !== n && 0 == n ? "" : 1;
|
|
667
|
+
break;
|
|
668
|
+
case "autoplay":
|
|
669
|
+
t[e] = "true" === n || "1" === n ? 1 : "";
|
|
670
|
+
break;
|
|
671
|
+
case "as_wide":
|
|
672
|
+
t[e] = n ? 1 : "";
|
|
673
|
+
break;
|
|
674
|
+
case "has_danmaku":
|
|
675
|
+
t.hasDanmaku = "false" !== n;
|
|
676
|
+
break;
|
|
677
|
+
case "urlparam":
|
|
678
|
+
t.extra_params = n ? decodeURIComponent(n) : "",
|
|
679
|
+
t[e] = n ? n + encodeURIComponent("&season_type=") + this.getUrlValue("season_type") : "";
|
|
680
|
+
break;
|
|
681
|
+
case "p":
|
|
682
|
+
t[e] = n || this.getUrlValue("page") || 1;
|
|
683
|
+
break;
|
|
684
|
+
case "page":
|
|
685
|
+
t.p = n || this.getUrlValue("p") || 1;
|
|
686
|
+
break;
|
|
687
|
+
case "enable_ssl":
|
|
688
|
+
t[e] = n || 1;
|
|
689
|
+
break;
|
|
690
|
+
case "pl_max":
|
|
691
|
+
t[e] = Number(n);
|
|
692
|
+
break;
|
|
693
|
+
default:
|
|
694
|
+
t[e] = n
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
defaultSearch: function() {
|
|
698
|
+
var t, e = this, n = window.location.search, i = {}, o = [];
|
|
699
|
+
return -1 !== n.indexOf("?") && (o = n.slice(1).split("&")),
|
|
700
|
+
["aid", "bvid", "cid", "danmaku", "autoplay", "as_wide", "player_type", "pre_ad", "enable_ssl", "enable_ssl_resolve", "enable_ssl_stream", "urlparam", "p"].forEach((function(t) {
|
|
701
|
+
i[t] || e.parseConfig(i, t, "")
|
|
702
|
+
}
|
|
703
|
+
)),
|
|
704
|
+
o.forEach((function(n) {
|
|
705
|
+
t = n.split("="),
|
|
706
|
+
e.parseConfig(i, t[0], t[1])
|
|
707
|
+
}
|
|
708
|
+
)),
|
|
709
|
+
i
|
|
710
|
+
},
|
|
711
|
+
loadScript: function(t, e) {
|
|
712
|
+
var n = e || window
|
|
713
|
+
, i = n.document.createElement("script");
|
|
714
|
+
return i.onload = function() {
|
|
715
|
+
t.success && t.success()
|
|
716
|
+
}
|
|
717
|
+
,
|
|
718
|
+
i.onerror = function() {
|
|
719
|
+
t.error && t.error()
|
|
720
|
+
}
|
|
721
|
+
,
|
|
722
|
+
i.src = t.url,
|
|
723
|
+
n.document.head.appendChild(i),
|
|
724
|
+
i
|
|
725
|
+
},
|
|
726
|
+
objToStr: function(t) {
|
|
727
|
+
var e = "";
|
|
728
|
+
for (var n in t)
|
|
729
|
+
e += n + "=" + t[n] + "&";
|
|
730
|
+
return e.slice(0, -1)
|
|
731
|
+
},
|
|
732
|
+
ajax: function(t) {
|
|
733
|
+
return new Promise((function(e, n) {
|
|
734
|
+
var o = t.method ? t.method.toUpperCase() : "GET"
|
|
735
|
+
, r = !!t.async
|
|
736
|
+
, a = new XMLHttpRequest
|
|
737
|
+
, s = t.data ? i.objToStr(t.data) : "";
|
|
738
|
+
if (a.withCredentials = t.withCredentials || !1,
|
|
739
|
+
"POST" === o)
|
|
740
|
+
a.open(o, t.url, r),
|
|
741
|
+
a.setRequestHeader("Content-type", "application/x-www-form-urlencoded"),
|
|
742
|
+
a.send(s);
|
|
743
|
+
else if ("GET" === o) {
|
|
744
|
+
var l = t.url + "?" + s;
|
|
745
|
+
a.open(o, l, r),
|
|
746
|
+
a.send()
|
|
747
|
+
} else
|
|
748
|
+
a.open(o, t.url),
|
|
749
|
+
a.send();
|
|
750
|
+
a.addEventListener("load", (function() {
|
|
751
|
+
e(a.response)
|
|
752
|
+
}
|
|
753
|
+
)),
|
|
754
|
+
a.addEventListener("error", (function() {
|
|
755
|
+
n()
|
|
756
|
+
}
|
|
757
|
+
)),
|
|
758
|
+
a.addEventListener("abort", (function() {
|
|
759
|
+
n()
|
|
760
|
+
}
|
|
761
|
+
))
|
|
762
|
+
}
|
|
763
|
+
))
|
|
764
|
+
}
|
|
765
|
+
};
|
|
766
|
+
e.default = i
|
|
767
|
+
}
|
|
768
|
+
, function(t, e, n) {
|
|
769
|
+
"use strict";
|
|
770
|
+
Object.defineProperty(e, "__esModule", {
|
|
771
|
+
value: !0
|
|
772
|
+
}),
|
|
773
|
+
e.metadata = {
|
|
774
|
+
name: "@jsc/player-selector",
|
|
775
|
+
version: "2.28.0",
|
|
776
|
+
hash: "32ceeed",
|
|
777
|
+
branch: "master",
|
|
778
|
+
lastModefied: "2020-04-27T05:09:04.406Z"
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
, function(t, e, n) {
|
|
782
|
+
"use strict";
|
|
783
|
+
var i, o = function() {
|
|
784
|
+
return void 0 === i && (i = Boolean(window && document && document.all && !window.atob)),
|
|
785
|
+
i
|
|
786
|
+
}, r = function() {
|
|
787
|
+
var t = {};
|
|
788
|
+
return function(e) {
|
|
789
|
+
if (void 0 === t[e]) {
|
|
790
|
+
var n = document.querySelector(e);
|
|
791
|
+
if (window.HTMLIFrameElement && n instanceof window.HTMLIFrameElement)
|
|
792
|
+
try {
|
|
793
|
+
n = n.contentDocument.head
|
|
794
|
+
} catch (t) {
|
|
795
|
+
n = null
|
|
796
|
+
}
|
|
797
|
+
t[e] = n
|
|
798
|
+
}
|
|
799
|
+
return t[e]
|
|
800
|
+
}
|
|
801
|
+
}(), a = [];
|
|
802
|
+
function s(t) {
|
|
803
|
+
for (var e = -1, n = 0; n < a.length; n++)
|
|
804
|
+
if (a[n].identifier === t) {
|
|
805
|
+
e = n;
|
|
806
|
+
break
|
|
807
|
+
}
|
|
808
|
+
return e
|
|
809
|
+
}
|
|
810
|
+
function l(t, e) {
|
|
811
|
+
for (var n = {}, i = [], o = 0; o < t.length; o++) {
|
|
812
|
+
var r = t[o]
|
|
813
|
+
, l = e.base ? r[0] + e.base : r[0]
|
|
814
|
+
, c = n[l] || 0
|
|
815
|
+
, f = "".concat(l, " ").concat(c);
|
|
816
|
+
n[l] = c + 1;
|
|
817
|
+
var u = s(f)
|
|
818
|
+
, d = {
|
|
819
|
+
css: r[1],
|
|
820
|
+
media: r[2],
|
|
821
|
+
sourceMap: r[3]
|
|
822
|
+
};
|
|
823
|
+
-1 !== u ? (a[u].references++,
|
|
824
|
+
a[u].updater(d)) : a.push({
|
|
825
|
+
identifier: f,
|
|
826
|
+
updater: w(d, e),
|
|
827
|
+
references: 1
|
|
828
|
+
}),
|
|
829
|
+
i.push(f)
|
|
830
|
+
}
|
|
831
|
+
return i
|
|
832
|
+
}
|
|
833
|
+
function c(t) {
|
|
834
|
+
var e = document.createElement("style")
|
|
835
|
+
, i = t.attributes || {};
|
|
836
|
+
if (void 0 === i.nonce) {
|
|
837
|
+
var o = n.nc;
|
|
838
|
+
o && (i.nonce = o)
|
|
839
|
+
}
|
|
840
|
+
if (Object.keys(i).forEach((function(t) {
|
|
841
|
+
e.setAttribute(t, i[t])
|
|
842
|
+
}
|
|
843
|
+
)),
|
|
844
|
+
"function" == typeof t.insert)
|
|
845
|
+
t.insert(e);
|
|
846
|
+
else {
|
|
847
|
+
var a = r(t.insert || "head");
|
|
848
|
+
if (!a)
|
|
849
|
+
throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
|
|
850
|
+
a.appendChild(e)
|
|
851
|
+
}
|
|
852
|
+
return e
|
|
853
|
+
}
|
|
854
|
+
var f, u = (f = [],
|
|
855
|
+
function(t, e) {
|
|
856
|
+
return f[t] = e,
|
|
857
|
+
f.filter(Boolean).join("\n")
|
|
858
|
+
}
|
|
859
|
+
);
|
|
860
|
+
function d(t, e, n, i) {
|
|
861
|
+
var o = n ? "" : i.media ? "@media ".concat(i.media, " {").concat(i.css, "}") : i.css;
|
|
862
|
+
if (t.styleSheet)
|
|
863
|
+
t.styleSheet.cssText = u(e, o);
|
|
864
|
+
else {
|
|
865
|
+
var r = document.createTextNode(o)
|
|
866
|
+
, a = t.childNodes;
|
|
867
|
+
a[e] && t.removeChild(a[e]),
|
|
868
|
+
a.length ? t.insertBefore(r, a[e]) : t.appendChild(r)
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
function p(t, e, n) {
|
|
872
|
+
var i = n.css
|
|
873
|
+
, o = n.media
|
|
874
|
+
, r = n.sourceMap;
|
|
875
|
+
if (o ? t.setAttribute("media", o) : t.removeAttribute("media"),
|
|
876
|
+
r && btoa && (i += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r)))), " */")),
|
|
877
|
+
t.styleSheet)
|
|
878
|
+
t.styleSheet.cssText = i;
|
|
879
|
+
else {
|
|
880
|
+
for (; t.firstChild; )
|
|
881
|
+
t.removeChild(t.firstChild);
|
|
882
|
+
t.appendChild(document.createTextNode(i))
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
var h = null
|
|
886
|
+
, y = 0;
|
|
887
|
+
function w(t, e) {
|
|
888
|
+
var n, i, o;
|
|
889
|
+
if (e.singleton) {
|
|
890
|
+
var r = y++;
|
|
891
|
+
n = h || (h = c(e)),
|
|
892
|
+
i = d.bind(null, n, r, !1),
|
|
893
|
+
o = d.bind(null, n, r, !0)
|
|
894
|
+
} else
|
|
895
|
+
n = c(e),
|
|
896
|
+
i = p.bind(null, n, e),
|
|
897
|
+
o = function() {
|
|
898
|
+
!function(t) {
|
|
899
|
+
if (null === t.parentNode)
|
|
900
|
+
return !1;
|
|
901
|
+
t.parentNode.removeChild(t)
|
|
902
|
+
}(n)
|
|
903
|
+
}
|
|
904
|
+
;
|
|
905
|
+
return i(t),
|
|
906
|
+
function(e) {
|
|
907
|
+
if (e) {
|
|
908
|
+
if (e.css === t.css && e.media === t.media && e.sourceMap === t.sourceMap)
|
|
909
|
+
return;
|
|
910
|
+
i(t = e)
|
|
911
|
+
} else
|
|
912
|
+
o()
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
t.exports = function(t, e) {
|
|
916
|
+
(e = e || {}).singleton || "boolean" == typeof e.singleton || (e.singleton = o());
|
|
917
|
+
var n = l(t = t || [], e);
|
|
918
|
+
return function(t) {
|
|
919
|
+
if (t = t || [],
|
|
920
|
+
"[object Array]" === Object.prototype.toString.call(t)) {
|
|
921
|
+
for (var i = 0; i < n.length; i++) {
|
|
922
|
+
var o = s(n[i]);
|
|
923
|
+
a[o].references--
|
|
924
|
+
}
|
|
925
|
+
for (var r = l(t, e), c = 0; c < n.length; c++) {
|
|
926
|
+
var f = s(n[c]);
|
|
927
|
+
0 === a[f].references && (a[f].updater(),
|
|
928
|
+
a.splice(f, 1))
|
|
929
|
+
}
|
|
930
|
+
n = r
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
, function(t, e, n) {
|
|
936
|
+
"use strict";
|
|
937
|
+
t.exports = function(t) {
|
|
938
|
+
var e = [];
|
|
939
|
+
return e.toString = function() {
|
|
940
|
+
return this.map((function(e) {
|
|
941
|
+
var n = function(t, e) {
|
|
942
|
+
var n, i, o, r = t[1] || "", a = t[3];
|
|
943
|
+
if (!a)
|
|
944
|
+
return r;
|
|
945
|
+
if (e && "function" == typeof btoa) {
|
|
946
|
+
var s = (n = a,
|
|
947
|
+
i = btoa(unescape(encodeURIComponent(JSON.stringify(n)))),
|
|
948
|
+
o = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),
|
|
949
|
+
"/*# ".concat(o, " */"))
|
|
950
|
+
, l = a.sources.map((function(t) {
|
|
951
|
+
return "/*# sourceURL=".concat(a.sourceRoot || "").concat(t, " */")
|
|
952
|
+
}
|
|
953
|
+
));
|
|
954
|
+
return [r].concat(l).concat([s]).join("\n")
|
|
955
|
+
}
|
|
956
|
+
return [r].join("\n")
|
|
957
|
+
}(e, t);
|
|
958
|
+
return e[2] ? "@media ".concat(e[2], " {").concat(n, "}") : n
|
|
959
|
+
}
|
|
960
|
+
)).join("")
|
|
961
|
+
}
|
|
962
|
+
,
|
|
963
|
+
e.i = function(t, n, i) {
|
|
964
|
+
"string" == typeof t && (t = [[null, t, ""]]);
|
|
965
|
+
var o = {};
|
|
966
|
+
if (i)
|
|
967
|
+
for (var r = 0; r < this.length; r++) {
|
|
968
|
+
var a = this[r][0];
|
|
969
|
+
null != a && (o[a] = !0)
|
|
970
|
+
}
|
|
971
|
+
for (var s = 0; s < t.length; s++) {
|
|
972
|
+
var l = [].concat(t[s]);
|
|
973
|
+
i && o[l[0]] || (n && (l[2] ? l[2] = "".concat(n, " and ").concat(l[2]) : l[2] = n),
|
|
974
|
+
e.push(l))
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
,
|
|
978
|
+
e
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
, function(t, e, n) {
|
|
982
|
+
var i = n(4)
|
|
983
|
+
, o = n(7);
|
|
984
|
+
"string" == typeof (o = o.__esModule ? o.default : o) && (o = [[t.i, o, ""]]);
|
|
985
|
+
var r = {
|
|
986
|
+
injectType: "singletonStyleTag",
|
|
987
|
+
attributes: {
|
|
988
|
+
"data-injector": "kwe-nav"
|
|
989
|
+
},
|
|
990
|
+
insert: "head",
|
|
991
|
+
singleton: !0
|
|
992
|
+
}
|
|
993
|
+
, a = (i(o, r),
|
|
994
|
+
o.locals ? o.locals : {});
|
|
995
|
+
t.exports = a
|
|
996
|
+
}
|
|
997
|
+
, function(t, e, n) {
|
|
998
|
+
(e = n(5)(!1)).push([t.i, "body,html{overflow:hidden}#bofqi,.player,body,html{margin:0;padding:0;width:100%;height:100%}.player .bilibili-player{-webkit-box-shadow:none;box-shadow:none}.player .bilibili-player-video-bottom-area .bilibili-player-video-sendbar{-webkit-box-sizing:border-box;box-sizing:border-box;border-left:1.5px solid #f4f4f4;border-bottom:1.5px solid #f4f4f4;border-right:1.5px solid #f4f4f4}.player-with-auxiliary{display:-webkit-box;display:-ms-flexbox;display:flex}.player-with-auxiliary .player{-webkit-box-flex:1;-ms-flex:1;flex:1}.player-with-auxiliary .danmaku-box{width:320px;margin-left:30px}.player-mode-widescreen .danmaku-box{display:none}", ""]),
|
|
999
|
+
t.exports = e
|
|
1000
|
+
}
|
|
1001
|
+
, function(t, e, n) {
|
|
1002
|
+
"use strict";
|
|
1003
|
+
Object.defineProperty(e, "__esModule", {
|
|
1004
|
+
value: !0
|
|
1005
|
+
});
|
|
1006
|
+
var i = n(0).__importDefault(n(9))
|
|
1007
|
+
, o = function() {
|
|
1008
|
+
function t(t) {
|
|
1009
|
+
this.config = t,
|
|
1010
|
+
this.globalEvents(),
|
|
1011
|
+
this.init()
|
|
1012
|
+
}
|
|
1013
|
+
return t.prototype.globalEvents = function() {
|
|
1014
|
+
var t = this;
|
|
1015
|
+
window.getPlayList = function() {
|
|
1016
|
+
return t.callParentFunction("getPlayList")
|
|
1017
|
+
}
|
|
1018
|
+
,
|
|
1019
|
+
window.PlayerAgent = {
|
|
1020
|
+
showPay: function() {
|
|
1021
|
+
if (t.config && "0" === t.config.type)
|
|
1022
|
+
window.open("https://www.bilibili.com/cheese/play/ep" + t.config.episodeId);
|
|
1023
|
+
else {
|
|
1024
|
+
var e = window.show_bv ? window.bvid : "av" + window.aid;
|
|
1025
|
+
window.open("https://www.bilibili.com/" + e)
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
showVipPay: function() {
|
|
1029
|
+
if (t.config && "0" === t.config.type)
|
|
1030
|
+
window.open("https://www.bilibili.com/cheese/play/ep" + t.config.episodeId);
|
|
1031
|
+
else {
|
|
1032
|
+
var e = window.show_bv ? window.bvid : "av" + window.aid;
|
|
1033
|
+
window.open("https://www.bilibili.com/" + e)
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
},
|
|
1037
|
+
window.onunload = function() {
|
|
1038
|
+
try {
|
|
1039
|
+
window.player && window.player.destroy()
|
|
1040
|
+
} catch (t) {}
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
,
|
|
1044
|
+
t.prototype.init = function() {
|
|
1045
|
+
try {
|
|
1046
|
+
window.parent.GrayManager = window.GrayManager,
|
|
1047
|
+
window.heimu = window.parent.heimu = void 0,
|
|
1048
|
+
window.parent.PlayerAgent && (window.PlayerAgent = window.parent.PlayerAgent),
|
|
1049
|
+
window.elecPlugin = window.parent.elecPlugin;
|
|
1050
|
+
for (var t = ["player_widewin", "player_fullwin", "callAppointPart", "playerCallSendLike", "playerCallSendCollect", "playerCallSendCoin", "showPay", "show1080p", "attentionTrigger", "showRealNameBind", "getAuthorInfo"], e = function(e) {
|
|
1051
|
+
"function" == typeof window.parent[t[e]] && window.parent !== window && (window[t[e]] = function() {
|
|
1052
|
+
for (var n = [], i = 0; i < arguments.length; i++)
|
|
1053
|
+
n[i] = arguments[i];
|
|
1054
|
+
return window.parent[t[e]].apply(window.parent, n)
|
|
1055
|
+
}
|
|
1056
|
+
)
|
|
1057
|
+
}, n = 0; n < t.length; n++)
|
|
1058
|
+
e(n)
|
|
1059
|
+
} catch (t) {}
|
|
1060
|
+
this.playlist = new i.default(this.config)
|
|
1061
|
+
}
|
|
1062
|
+
,
|
|
1063
|
+
t.prototype.callParentFunction = function(t) {
|
|
1064
|
+
for (var e = [], n = 1; n < arguments.length; n++)
|
|
1065
|
+
e[n - 1] = arguments[n];
|
|
1066
|
+
try {
|
|
1067
|
+
return window.top !== window.self && window.parent && window.parent[t] && window.parent[t].apply(null, e)
|
|
1068
|
+
} catch (t) {}
|
|
1069
|
+
}
|
|
1070
|
+
,
|
|
1071
|
+
t
|
|
1072
|
+
}();
|
|
1073
|
+
e.default = o
|
|
1074
|
+
}
|
|
1075
|
+
, function(t, e, n) {
|
|
1076
|
+
"use strict";
|
|
1077
|
+
Object.defineProperty(e, "__esModule", {
|
|
1078
|
+
value: !0
|
|
1079
|
+
});
|
|
1080
|
+
var i = n(0)
|
|
1081
|
+
, o = i.__importDefault(n(2))
|
|
1082
|
+
, r = i.__importDefault(n(1))
|
|
1083
|
+
, a = n(3)
|
|
1084
|
+
, s = function() {
|
|
1085
|
+
function t(t) {
|
|
1086
|
+
this.plurl = "//api.bilibili.com/x/playlist/video/toview?jsonp=jsonp&pid=",
|
|
1087
|
+
this.allow = !0,
|
|
1088
|
+
this.config = t,
|
|
1089
|
+
this.preinit(),
|
|
1090
|
+
this.init()
|
|
1091
|
+
}
|
|
1092
|
+
return t.prototype.preinit = function() {
|
|
1093
|
+
if (window.top !== window.self && window.REFERRER_LIST) {
|
|
1094
|
+
try {
|
|
1095
|
+
var t = window.document.referrer.match(/^http(s)?:\/\/(.*?)\//);
|
|
1096
|
+
t && t[2] && !new RegExp(window.REFERRER_LIST.join("|").replace(/\./g, "\\.").replace(/\*/g, ".*")).test(t[2]) ? this.allow = !1 : window.document.referrer || -1 !== window.navigator.userAgent.indexOf("MicroMessenger") || -1 !== window.navigator.userAgent.indexOf("IqiyiApp") || (this.allow = !1)
|
|
1097
|
+
} catch (t) {}
|
|
1098
|
+
try {
|
|
1099
|
+
this.config.record = window.parent.RECORD_STRING || this.config.record || ""
|
|
1100
|
+
} catch (t) {}
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
,
|
|
1104
|
+
t.prototype.init = function() {
|
|
1105
|
+
var t = this;
|
|
1106
|
+
if (this.allow) {
|
|
1107
|
+
var e = this.config;
|
|
1108
|
+
if ("1" === e.auxiliary && (document.getElementsByClassName("player")[0].insertAdjacentHTML("afterend", '<div id="danmukuBox" class="danmaku-box"><div class="danmaku-wrap"></div></div>'),
|
|
1109
|
+
document.body.classList.add("player-with-auxiliary")),
|
|
1110
|
+
!this.onlyH5())
|
|
1111
|
+
if (e.playlistId)
|
|
1112
|
+
this.loadPlayer(e);
|
|
1113
|
+
else {
|
|
1114
|
+
var n = window.getPlayList();
|
|
1115
|
+
if (e.playlist && n) {
|
|
1116
|
+
var i = n && n.data
|
|
1117
|
+
, o = JSON.stringify(n);
|
|
1118
|
+
e.aid = e.aid || i && i.list && i.list[0].aid,
|
|
1119
|
+
e.bvid = e.bvid || i && i.list && i.list[0].bvid,
|
|
1120
|
+
e.cid = e.cid || i && i.list && i.list[0].pages[0].cid,
|
|
1121
|
+
e.playlist = encodeURIComponent(o),
|
|
1122
|
+
e.playlist_order = e.playlist_order,
|
|
1123
|
+
this.loadPlayer(e)
|
|
1124
|
+
} else
|
|
1125
|
+
e.cid ? this.loadPlayer(e) : r.default.getCid(e, (function(e) {
|
|
1126
|
+
t.loadPlayer(e)
|
|
1127
|
+
}
|
|
1128
|
+
))
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
,
|
|
1133
|
+
t.prototype.getToview = function(t) {
|
|
1134
|
+
var e = this
|
|
1135
|
+
, n = this.config
|
|
1136
|
+
, i = o.default.getUrlValue;
|
|
1137
|
+
$.ajax({
|
|
1138
|
+
url: this.plurl + t,
|
|
1139
|
+
type: "GET",
|
|
1140
|
+
data: {
|
|
1141
|
+
jsonp: "jsonp"
|
|
1142
|
+
},
|
|
1143
|
+
xhrFields: {
|
|
1144
|
+
withCredentials: !0
|
|
1145
|
+
},
|
|
1146
|
+
success: function(t) {
|
|
1147
|
+
var o = t && t.data
|
|
1148
|
+
, r = JSON.stringify(t);
|
|
1149
|
+
n.aid = i("aid") || o && o.list && o.list[0].aid,
|
|
1150
|
+
n.cid = i("cid") || o && o.list && o.list[0].pages[0].cid,
|
|
1151
|
+
n.playlist = encodeURIComponent(r),
|
|
1152
|
+
n.playlist_order = i("playlist_order"),
|
|
1153
|
+
e.loadPlayer(n)
|
|
1154
|
+
}
|
|
1155
|
+
})
|
|
1156
|
+
}
|
|
1157
|
+
,
|
|
1158
|
+
t.prototype.getCid = function() {
|
|
1159
|
+
var t = this
|
|
1160
|
+
, e = this.config
|
|
1161
|
+
, n = new XMLHttpRequest;
|
|
1162
|
+
n.addEventListener("load", (function() {
|
|
1163
|
+
try {
|
|
1164
|
+
var i = JSON.parse(n.response);
|
|
1165
|
+
if (i && i.data && Array.isArray(i.data.pages))
|
|
1166
|
+
for (var r = i.data.pages, a = +o.default.getUrlValue("page"), s = 0; s < r.length; s++)
|
|
1167
|
+
if (a === +r[s].page) {
|
|
1168
|
+
e.cid = r[s].cid;
|
|
1169
|
+
break
|
|
1170
|
+
}
|
|
1171
|
+
t.loadPlayer(e)
|
|
1172
|
+
} catch (t) {}
|
|
1173
|
+
}
|
|
1174
|
+
)),
|
|
1175
|
+
n.addEventListener("error", (function() {
|
|
1176
|
+
t.loadPlayer(e)
|
|
1177
|
+
}
|
|
1178
|
+
)),
|
|
1179
|
+
n.addEventListener("abort", (function() {
|
|
1180
|
+
t.loadPlayer(e)
|
|
1181
|
+
}
|
|
1182
|
+
)),
|
|
1183
|
+
n.open("GET", "//api.bilibili.com/x/web-interface/view?aid=" + o.default.getUrlValue("aid"), !0),
|
|
1184
|
+
n.send()
|
|
1185
|
+
}
|
|
1186
|
+
,
|
|
1187
|
+
t.prototype.loadPlayer = function(t) {
|
|
1188
|
+
var e, n = [];
|
|
1189
|
+
for (var i in t)
|
|
1190
|
+
({}).hasOwnProperty.call(t, i) && n.push(i + "=" + (null !== (e = t[i]) && void 0 !== e ? e : ""));
|
|
1191
|
+
window.EmbedPlayer && window.EmbedPlayer("player", "", n.join("&")),
|
|
1192
|
+
window.parent !== window && this.setParentPlayer()
|
|
1193
|
+
}
|
|
1194
|
+
,
|
|
1195
|
+
t.prototype.setParentPlayer = function() {
|
|
1196
|
+
var t = this;
|
|
1197
|
+
if (window.player)
|
|
1198
|
+
try {
|
|
1199
|
+
window.parent.player = window.player,
|
|
1200
|
+
"function" == typeof window.parent.Html5IframeInitialized && window.parent.Html5IframeInitialized()
|
|
1201
|
+
} catch (t) {}
|
|
1202
|
+
else
|
|
1203
|
+
setTimeout((function() {
|
|
1204
|
+
t.setParentPlayer()
|
|
1205
|
+
}
|
|
1206
|
+
), 200)
|
|
1207
|
+
}
|
|
1208
|
+
,
|
|
1209
|
+
t.prototype.onlyH5 = function() {
|
|
1210
|
+
return !(!this.config.musth5 || (!o.default.flashChecker() || o.default.html5Policy()) && o.default.html5Checker() || (this.mustH5(),
|
|
1211
|
+
0))
|
|
1212
|
+
}
|
|
1213
|
+
,
|
|
1214
|
+
t.prototype.mustH5 = function() {
|
|
1215
|
+
o.default.loadScript({
|
|
1216
|
+
url: "//s1.hdslb.com/bfs/static/player/tools/must-h5/musth5.js?lastModefied=" + a.metadata.lastModefied,
|
|
1217
|
+
success: function() {
|
|
1218
|
+
new window.Musth5({
|
|
1219
|
+
id: "bofqi",
|
|
1220
|
+
url: "//s1.hdslb.com/bfs/static/player/img/h5.png",
|
|
1221
|
+
textList: ["您当前的浏览器不支持HTML5播放器", "请切换浏览器再试试哦~"]
|
|
1222
|
+
})
|
|
1223
|
+
}
|
|
1224
|
+
})
|
|
1225
|
+
}
|
|
1226
|
+
,
|
|
1227
|
+
t
|
|
1228
|
+
}();
|
|
1229
|
+
e.default = s
|
|
1230
|
+
}
|
|
1231
|
+
, function(t, e, n) {
|
|
1232
|
+
"use strict";
|
|
1233
|
+
Object.defineProperty(e, "__esModule", {
|
|
1234
|
+
value: !0
|
|
1235
|
+
});
|
|
1236
|
+
var i = n(0)
|
|
1237
|
+
, o = i.__importDefault(n(11))
|
|
1238
|
+
, r = i.__importDefault(n(2))
|
|
1239
|
+
, a = n(3)
|
|
1240
|
+
, s = i.__importDefault(n(1))
|
|
1241
|
+
, l = function() {
|
|
1242
|
+
// console.log('bingo')
|
|
1243
|
+
function t(t) {
|
|
1244
|
+
this.retry = 3,
|
|
1245
|
+
this.config = t,
|
|
1246
|
+
this.defaulth5 = !0,
|
|
1247
|
+
this.globalEvents(),
|
|
1248
|
+
this.preinit(),
|
|
1249
|
+
this.loadPlayer()
|
|
1250
|
+
}
|
|
1251
|
+
return t.prototype.loadPlayer = function() {
|
|
1252
|
+
var t = this
|
|
1253
|
+
, e = "?lastModified=" + a.metadata.lastModefied;
|
|
1254
|
+
r.default.loadScript({
|
|
1255
|
+
url: this.options.url + e,
|
|
1256
|
+
success: function() {
|
|
1257
|
+
t.init()
|
|
1258
|
+
}
|
|
1259
|
+
})
|
|
1260
|
+
}
|
|
1261
|
+
,
|
|
1262
|
+
t.prototype.globalEvents = function() {
|
|
1263
|
+
var t, e = this;
|
|
1264
|
+
if (window.location.ancestorOrigins)
|
|
1265
|
+
t = window.location.ancestorOrigins[0];
|
|
1266
|
+
else {
|
|
1267
|
+
var n = document.referrer
|
|
1268
|
+
, i = /^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?/.exec(n);
|
|
1269
|
+
i && i.length && (t = i[0])
|
|
1270
|
+
}
|
|
1271
|
+
window.BILIMessage = function(e) {
|
|
1272
|
+
window.parent && window.parent.postMessage(e, t || "*")
|
|
1273
|
+
}
|
|
1274
|
+
/*,
|
|
1275
|
+
window.addEventListener("message", (function(n) {
|
|
1276
|
+
(n.origin || n.originalEvent.origin) === t && e.player && e.player.biliMessage(n.data)
|
|
1277
|
+
}
|
|
1278
|
+
), !1)*/
|
|
1279
|
+
}
|
|
1280
|
+
,
|
|
1281
|
+
t.prototype.preinit = function() {
|
|
1282
|
+
this.options = i.__assign({
|
|
1283
|
+
id: "bofqi",
|
|
1284
|
+
wrapClass: ".player"
|
|
1285
|
+
}, {
|
|
1286
|
+
gamePlayer: {
|
|
1287
|
+
url: "//s1.hdslb.com/bfs/static/player/main/html5/player.js",
|
|
1288
|
+
flashUrl: "//player.bilibili.com/tools/gameplayer/GamePlayer.swf"
|
|
1289
|
+
},
|
|
1290
|
+
litePlayer: {
|
|
1291
|
+
url: "//player.bilibili.com/main/html5/outer/liteplayer.min.js",
|
|
1292
|
+
flashUrl: "//player.bilibili.com/main/flash/outer/miniloader.swf"
|
|
1293
|
+
}
|
|
1294
|
+
}[this.config.playerKind]),
|
|
1295
|
+
r.default.flashChecker() && !r.default.html5Policy() || !r.default.html5Checker() || "flash" === r.default.getUrlValue("ptype") ? this.defaulth5 = !1 : this.defaulth5 = !0
|
|
1296
|
+
}
|
|
1297
|
+
,
|
|
1298
|
+
t.prototype.init = function() {
|
|
1299
|
+
var t = this;
|
|
1300
|
+
this.config.cid ? this.playerLoader() : s.default.getCid(this.config, (function() {
|
|
1301
|
+
t.playerLoader()
|
|
1302
|
+
}
|
|
1303
|
+
))
|
|
1304
|
+
}
|
|
1305
|
+
,
|
|
1306
|
+
t.prototype.playerLoader = function() {
|
|
1307
|
+
var t = this;
|
|
1308
|
+
if (this.defaulth5) {
|
|
1309
|
+
this.config.element = document.getElementById(this.options.id),
|
|
1310
|
+
this.player = new window.bilibiliPlayer(this.config);
|
|
1311
|
+
window.myPlayer = this.player;
|
|
1312
|
+
}
|
|
1313
|
+
else {
|
|
1314
|
+
if (window.gameQuickLogin = function() {
|
|
1315
|
+
!r.default.version.mobile || r.default.version.iPad ? t.getScript("biliQuickLogin", "//static.hdslb.com/account/bili_quick_login.js", (function() {
|
|
1316
|
+
window.biliQuickLogin((function() {
|
|
1317
|
+
document.getElementById(t.options.id).mukio_reloadAccess(),
|
|
1318
|
+
window.BILIMessage(JSON.stringify({
|
|
1319
|
+
type: "login",
|
|
1320
|
+
value: !0
|
|
1321
|
+
}))
|
|
1322
|
+
}
|
|
1323
|
+
))
|
|
1324
|
+
}
|
|
1325
|
+
)) : window.location.href = "https://passport.bilibili.com/login"
|
|
1326
|
+
}
|
|
1327
|
+
,
|
|
1328
|
+
!r.default.flashChecker())
|
|
1329
|
+
return void this.showTips();
|
|
1330
|
+
this.config.hasDanmaku = this.config.hasDanmaku ? 0 : "1",
|
|
1331
|
+
this.config.autoplay = this.config.autoplay ? 1 : 0;
|
|
1332
|
+
var e = {
|
|
1333
|
+
aid: this.config.aid,
|
|
1334
|
+
bvid: this.config.bvid,
|
|
1335
|
+
show_bv: this.config.show_bv,
|
|
1336
|
+
cid: this.config.cid,
|
|
1337
|
+
p: this.config.p,
|
|
1338
|
+
autoplay: this.config.autoplay,
|
|
1339
|
+
gamePlayerType: this.config.hasDanmaku,
|
|
1340
|
+
ptype: this.config.ptype
|
|
1341
|
+
};
|
|
1342
|
+
window.swfobject && window.swfobject.embedSWF ? this.loadFlashPlayer(e) : $.ajax({
|
|
1343
|
+
url: "//s1.hdslb.com/bfs/static/player/tools/swfobject/swfobject-v2.js",
|
|
1344
|
+
type: "get",
|
|
1345
|
+
dataType: "script",
|
|
1346
|
+
success: function() {
|
|
1347
|
+
t.loadFlashPlayer(e)
|
|
1348
|
+
}
|
|
1349
|
+
})
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
,
|
|
1353
|
+
t.prototype.loadFlashPlayer = function(t) {
|
|
1354
|
+
var e = this.options.id;
|
|
1355
|
+
$(this.options.wrapClass).html('<div id="' + e + '" class="flash-player"></div>'),
|
|
1356
|
+
window.swfobject.embedSWF(this.options.flashUrl, e, "100%", "100%", "0", "", t, {
|
|
1357
|
+
bgcolor: "#ffffff",
|
|
1358
|
+
allowfullscreeninteractive: "true",
|
|
1359
|
+
allowfullscreen: "true",
|
|
1360
|
+
quality: "high",
|
|
1361
|
+
allowscriptaccess: "always",
|
|
1362
|
+
wmode: /Firefox/.test(navigator.userAgent) ? "opaque" : "direct"
|
|
1363
|
+
}, {
|
|
1364
|
+
class: "flash-player"
|
|
1365
|
+
})
|
|
1366
|
+
}
|
|
1367
|
+
,
|
|
1368
|
+
t.prototype.showTips = function() {
|
|
1369
|
+
var t = {
|
|
1370
|
+
backgroundColor: "#fff",
|
|
1371
|
+
msg: "主人,未安装Flash插件,暂时无法观看直播,您可以…",
|
|
1372
|
+
msgColor: "#000",
|
|
1373
|
+
msgSize: 14,
|
|
1374
|
+
btnList: [{
|
|
1375
|
+
title: "下载Flash插件",
|
|
1376
|
+
type: "flash",
|
|
1377
|
+
theme: "blue"
|
|
1378
|
+
}],
|
|
1379
|
+
hasOrText: !1,
|
|
1380
|
+
miniType: 0
|
|
1381
|
+
};
|
|
1382
|
+
this.defaulth5 && (t.btnList[0].theme = "white",
|
|
1383
|
+
t.btnList.push({
|
|
1384
|
+
title: "使用HTML5播放器",
|
|
1385
|
+
type: "html5",
|
|
1386
|
+
theme: "blue",
|
|
1387
|
+
onClick: function(t) {
|
|
1388
|
+
"function" == typeof t && t()
|
|
1389
|
+
}
|
|
1390
|
+
})),
|
|
1391
|
+
new o.default($(this.options.wrapClass)[0],t)
|
|
1392
|
+
}
|
|
1393
|
+
,
|
|
1394
|
+
t.prototype.getScript = function(t, e, n) {
|
|
1395
|
+
var i = this;
|
|
1396
|
+
window[t] ? "function" == typeof n && n() : $.ajax({
|
|
1397
|
+
url: e,
|
|
1398
|
+
dataType: "script",
|
|
1399
|
+
cache: !0,
|
|
1400
|
+
success: function() {
|
|
1401
|
+
n()
|
|
1402
|
+
},
|
|
1403
|
+
error: function() {
|
|
1404
|
+
i.retry > -1 ? (i.retry -= 1,
|
|
1405
|
+
setTimeout((function() {
|
|
1406
|
+
i.getScript(t, e, n)
|
|
1407
|
+
}
|
|
1408
|
+
), 1e3)) : window.BILIMessage(JSON.stringify({
|
|
1409
|
+
type: "login",
|
|
1410
|
+
value: !1
|
|
1411
|
+
}))
|
|
1412
|
+
}
|
|
1413
|
+
})
|
|
1414
|
+
}
|
|
1415
|
+
,
|
|
1416
|
+
t
|
|
1417
|
+
}();
|
|
1418
|
+
e.default = l
|
|
1419
|
+
}
|
|
1420
|
+
, function(t, e, n) {
|
|
1421
|
+
"use strict";
|
|
1422
|
+
Object.defineProperty(e, "__esModule", {
|
|
1423
|
+
value: !0
|
|
1424
|
+
});
|
|
1425
|
+
var i = n(0);
|
|
1426
|
+
n(12);
|
|
1427
|
+
var o = i.__importDefault(n(14))
|
|
1428
|
+
, r = function() {
|
|
1429
|
+
function t(t, e) {
|
|
1430
|
+
this.noFlashTips = new o.default(t,e)
|
|
1431
|
+
}
|
|
1432
|
+
return t.prototype.destroy = function() {
|
|
1433
|
+
return this.noFlashTips && this.noFlashTips.destroy(),
|
|
1434
|
+
this
|
|
1435
|
+
}
|
|
1436
|
+
,
|
|
1437
|
+
t
|
|
1438
|
+
}();
|
|
1439
|
+
e.default = r
|
|
1440
|
+
}
|
|
1441
|
+
, function(t, e, n) {
|
|
1442
|
+
var i = n(4)
|
|
1443
|
+
, o = n(13);
|
|
1444
|
+
"string" == typeof (o = o.__esModule ? o.default : o) && (o = [[t.i, o, ""]]);
|
|
1445
|
+
var r = {
|
|
1446
|
+
injectType: "singletonStyleTag",
|
|
1447
|
+
attributes: {
|
|
1448
|
+
"data-injector": "kwe-nav"
|
|
1449
|
+
},
|
|
1450
|
+
insert: "head",
|
|
1451
|
+
singleton: !0
|
|
1452
|
+
}
|
|
1453
|
+
, a = (i(o, r),
|
|
1454
|
+
o.locals ? o.locals : {});
|
|
1455
|
+
t.exports = a
|
|
1456
|
+
}
|
|
1457
|
+
, function(t, e, n) {
|
|
1458
|
+
(e = n(5)(!1)).push([t.i, "@-webkit-keyframes containerShow{0%{opacity:0}to{opacity:1}}@keyframes containerShow{0%{opacity:0}to{opacity:1}}@-webkit-keyframes containerHide{0%{opacity:1}to{opacity:0}}@keyframes containerHide{0%{opacity:1}to{opacity:0}}.bp-no-flash-tips{position:absolute;background:#141414;top:0;left:0;right:0;bottom:0;padding:0;margin:0;color:#fff;z-index:99;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:Microsoft YaHei,Microsoft Sans Serif,Microsoft SanSerf,\\\\5fae\\8f6f\\96c5\\9ed1;opacity:1;-webkit-animation:containerShow .3s ease-in-out 1 forwards;animation:containerShow .3s ease-in-out 1 forwards}.bp-no-flash-tips-content{width:440px;height:300px;position:absolute;top:50%;left:50%;margin:-150px 0 0 -220px;text-align:center}.bp-no-flash-tips-missing-image{width:345px;height:204px;margin:0 auto}.bp-no-flash-tips-missing-image img{display:block;width:100%;height:100%}.bp-no-flash-tips-info{font-size:18px;color:#999;cursor:default}.bp-no-flash-tips-btn-content{margin-top:24px}.bp-no-flash-tips-or{font-size:14px;color:#999;margin:0 10px;cursor:default}.bp-no-flash-tips-btn{display:inline-block;height:32px;line-height:32px;color:#fff;text-align:center;border-radius:4px;font-size:14px;font-family:Microsoft YaHei,Microsoft Sans Serif,Microsoft SanSerf,\\\\5fae\\8f6f\\96c5\\9ed1;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-decoration:none;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;width:148px;background:#dc2028;margin:0 10px;border:1px solid #dc2028;outline:none}.bp-no-flash-tips-btn:hover{background:#f6373f;color:#fff;outline:none}.bp-no-flash-tips-btn-red{background:#dc2028;border-color:#dc2028}.bp-no-flash-tips-btn-red:hover{background:#f6373f;color:#fff}.bp-no-flash-tips-btn-orange{background:#f06525;border-color:#f06525}.bp-no-flash-tips-btn-orange:hover{background:#ff793b;color:#fff}.bp-no-flash-tips-btn-white{background:#fff;border-color:#00a1d6;color:#00a1d6}.bp-no-flash-tips-btn-white:hover{background:#fff;border-color:#00b5e5;color:#00b5e5}.bp-no-flash-tips-btn-blue{background:#00a1d6;border-color:#00a1d6;color:#fff}.bp-no-flash-tips-btn-blue:hover{background:#00b5e5;border-color:#00b5e5}.bp-no-flash-tips-destroying{-webkit-animation:containerHide .3s ease-in-out 1 forwards;animation:containerHide .3s ease-in-out 1 forwards}.bp-no-flash-tips-mini-info{display:none;font-size:14px;width:80%;height:auto;min-height:24px;line-height:24px;text-align:center;position:absolute;top:50%;margin:0 10%;-webkit-transform:translateY(-50%);transform:translateY(-50%);letter-spacing:1px;cursor:default}.bp-no-flash-tips-mini .bp-no-flash-tips-content{width:80%;height:200px;margin:-90px 0 0 -40%}.bp-no-flash-tips-mini .bp-no-flash-tips-missing-image{width:200px;height:118px}.bp-no-flash-tips-mini .bp-no-flash-tips-info{font-size:12px!important;line-height:18px}.bp-no-flash-tips-mini .bp-no-flash-tips-btn-content{margin-top:10px;white-space:nowrap}.bp-no-flash-tips-mini .bp-no-flash-tips-or{font-size:12px!important;margin:0 4px}.bp-no-flash-tips-mini .bp-no-flash-tips-btn{width:120px!important;height:24px!important;line-height:24px!important;font-size:12px!important;margin:0 5px}.bp-no-flash-tips-mini .bp-no-flash-tips-btn.bp-no-flash-tips-flash-btn{width:90px!important}.bp-no-flash-tips-mini-info-only .bp-no-flash-tips-content{display:none}.bp-no-flash-tips-mini-info-only .bp-no-flash-tips-mini-info{display:block}", ""]),
|
|
1459
|
+
t.exports = e
|
|
1460
|
+
}
|
|
1461
|
+
, function(t, e, n) {
|
|
1462
|
+
"use strict";
|
|
1463
|
+
Object.defineProperty(e, "__esModule", {
|
|
1464
|
+
value: !0
|
|
1465
|
+
});
|
|
1466
|
+
var i = n(0).__importDefault(n(15))
|
|
1467
|
+
, o = function() {
|
|
1468
|
+
function t(t, e) {
|
|
1469
|
+
if (!(t && t instanceof Element))
|
|
1470
|
+
throw new Error("Container Error");
|
|
1471
|
+
this.container = t,
|
|
1472
|
+
this.config = i.default.extend({}, {
|
|
1473
|
+
backgroundColor: "#141414",
|
|
1474
|
+
msg: "主人,未安装Flash插件,暂时无法观看视频,您可以…",
|
|
1475
|
+
msgColor: "#999",
|
|
1476
|
+
msgSize: 18,
|
|
1477
|
+
btnList: [{
|
|
1478
|
+
title: "下载Flash插件",
|
|
1479
|
+
width: 120,
|
|
1480
|
+
height: 32,
|
|
1481
|
+
type: "flash",
|
|
1482
|
+
theme: "red"
|
|
1483
|
+
}, {
|
|
1484
|
+
title: "使用HTML5播放器",
|
|
1485
|
+
width: 150,
|
|
1486
|
+
height: 32,
|
|
1487
|
+
type: "html5",
|
|
1488
|
+
theme: "orange",
|
|
1489
|
+
onClick: function() {}
|
|
1490
|
+
}],
|
|
1491
|
+
hasOrText: !0,
|
|
1492
|
+
miniType: 0,
|
|
1493
|
+
miniMsg: "Flash未安装或者被禁用",
|
|
1494
|
+
miniColor: "#fff"
|
|
1495
|
+
}, e),
|
|
1496
|
+
this.destroyStatus = !1,
|
|
1497
|
+
this.REMOVE_INTERVAL = 0,
|
|
1498
|
+
this.onMini = !1,
|
|
1499
|
+
this.callbackMap = {},
|
|
1500
|
+
this.prefix = "bp-no-flash-tips";
|
|
1501
|
+
try {
|
|
1502
|
+
this.init()
|
|
1503
|
+
} catch (t) {}
|
|
1504
|
+
}
|
|
1505
|
+
return t.prototype.init = function() {
|
|
1506
|
+
var t = this.config;
|
|
1507
|
+
this.addContainerPosition(),
|
|
1508
|
+
this.tips = document.createElement("div"),
|
|
1509
|
+
this.tips.className = "" + this.prefix,
|
|
1510
|
+
this.tips.style.backgroundColor = t.backgroundColor,
|
|
1511
|
+
this.tips.innerHTML = '\n <div class="' + this.prefix + '-content">\n <div class="' + this.prefix + '-missing-image">\n <img src="//s1.hdslb.com/bfs/static/player/img/missing.png">\n </div>\n <div class="' + this.prefix + '-info" style="color:' + t.msgColor + ";font-size:" + t.msgSize + 'px;">\n ' + t.msg + '\n </div>\n <div class="' + this.prefix + '-btn-content">\n ' + this.createBtns() + '\n </div>\n </div> \n <div class="' + this.prefix + '-mini-info" style="color:' + t.miniColor + '">' + t.miniMsg + "</div>",
|
|
1512
|
+
this.container.appendChild(this.tips),
|
|
1513
|
+
this.bindEvents()
|
|
1514
|
+
}
|
|
1515
|
+
,
|
|
1516
|
+
t.prototype.bindEvents = function() {
|
|
1517
|
+
var t = this
|
|
1518
|
+
, e = this.tips
|
|
1519
|
+
, n = this.callbackMap;
|
|
1520
|
+
e.addEventListener && e.addEventListener("click", (function(e) {
|
|
1521
|
+
var o = (e || window.event).target.id;
|
|
1522
|
+
o && n[o] && i.default.callFunction(n[o], t.destroy.bind(t))
|
|
1523
|
+
}
|
|
1524
|
+
));
|
|
1525
|
+
var o = i.default.bindElemResize(e, (function(e, n) {
|
|
1526
|
+
if (e <= 400 && !t.onMini) {
|
|
1527
|
+
t.onMini = !0;
|
|
1528
|
+
var i = 0 === t.config.miniType ? t.prefix + "-mini" : t.prefix + "-mini " + t.prefix + "-mini-info-only";
|
|
1529
|
+
t.tips.className = t.prefix + " " + i
|
|
1530
|
+
} else
|
|
1531
|
+
e > 400 && t.onMini && (t.onMini = !1,
|
|
1532
|
+
t.tips.className = "" + t.prefix)
|
|
1533
|
+
}
|
|
1534
|
+
));
|
|
1535
|
+
"function" == typeof o && o()
|
|
1536
|
+
}
|
|
1537
|
+
,
|
|
1538
|
+
t.prototype.addContainerPosition = function() {
|
|
1539
|
+
var t = this.container;
|
|
1540
|
+
if (window.getComputedStyle) {
|
|
1541
|
+
var e = window.getComputedStyle(t).position;
|
|
1542
|
+
e && "static" !== e || (t.style.position = "relative")
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
,
|
|
1546
|
+
t.prototype.createBtns = function() {
|
|
1547
|
+
var t = this
|
|
1548
|
+
, e = this.config
|
|
1549
|
+
, n = e.btnList
|
|
1550
|
+
, o = "";
|
|
1551
|
+
return n instanceof Array && n.length && n.forEach((function(r, a) {
|
|
1552
|
+
var s = "width:" + r.width + "px;height:" + (r.height - 2) + "px;line-height:" + (r.height - 2) + "px;";
|
|
1553
|
+
if ("flash" === r.type)
|
|
1554
|
+
o += '<a href="https://www.adobe.com/go/getflashplayer" target="_blank" class="' + t.prefix + "-btn " + t.prefix + "-flash-btn " + t.prefix + "-btn-" + r.theme + '" style="' + s + '">' + r.title + "</a>";
|
|
1555
|
+
else {
|
|
1556
|
+
var l = i.default.getRandomID(12);
|
|
1557
|
+
o += '<a id="' + l + '" href="javascript:;" class="' + t.prefix + "-btn " + t.prefix + "-btn-" + r.theme + '" style="' + s + '">' + r.title + "</a>",
|
|
1558
|
+
r.onClick && t.addCallback(l, r.onClick)
|
|
1559
|
+
}
|
|
1560
|
+
a < n.length - 1 && e.hasOrText && (o += '<span class="' + t.prefix + '-or" style="height:' + (r.height - 2) + "px;line-height:" + (r.height - 2) + 'px;">或</span>')
|
|
1561
|
+
}
|
|
1562
|
+
)),
|
|
1563
|
+
o
|
|
1564
|
+
}
|
|
1565
|
+
,
|
|
1566
|
+
t.prototype.addCallback = function(t, e) {
|
|
1567
|
+
t && "function" == typeof e && (this.callbackMap[t] || (this.callbackMap[t] = []),
|
|
1568
|
+
this.callbackMap[t].push(e))
|
|
1569
|
+
}
|
|
1570
|
+
,
|
|
1571
|
+
t.prototype.destroy = function() {
|
|
1572
|
+
if (!this.destroyStatus) {
|
|
1573
|
+
this.destroyStatus = !0;
|
|
1574
|
+
var t = this.container
|
|
1575
|
+
, e = this.tips
|
|
1576
|
+
, n = this.prefix
|
|
1577
|
+
, i = this.onMini ? n + "-mini" : "";
|
|
1578
|
+
e.className = n + " " + i + " " + n + "-destroying",
|
|
1579
|
+
this.callbackMap = {},
|
|
1580
|
+
clearTimeout(this.REMOVE_INTERVAL),
|
|
1581
|
+
this.REMOVE_INTERVAL = window.setTimeout((function() {
|
|
1582
|
+
t && e && e.parentNode && t.removeChild && t.removeChild(e)
|
|
1583
|
+
}
|
|
1584
|
+
), 300)
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
,
|
|
1588
|
+
t
|
|
1589
|
+
}();
|
|
1590
|
+
e.default = o
|
|
1591
|
+
}
|
|
1592
|
+
, function(t, e, n) {
|
|
1593
|
+
"use strict";
|
|
1594
|
+
Object.defineProperty(e, "__esModule", {
|
|
1595
|
+
value: !0
|
|
1596
|
+
});
|
|
1597
|
+
var i = {
|
|
1598
|
+
extend: function(t) {
|
|
1599
|
+
for (var e = [], n = 1; n < arguments.length; n++)
|
|
1600
|
+
e[n - 1] = arguments[n];
|
|
1601
|
+
var i = t || {};
|
|
1602
|
+
return i instanceof Object && e.forEach((function(t) {
|
|
1603
|
+
t instanceof Object && Object.keys(t).forEach((function(e) {
|
|
1604
|
+
i[e] = t[e]
|
|
1605
|
+
}
|
|
1606
|
+
))
|
|
1607
|
+
}
|
|
1608
|
+
)),
|
|
1609
|
+
i
|
|
1610
|
+
},
|
|
1611
|
+
getRandomID: function(t) {
|
|
1612
|
+
void 0 === t && (t = 8);
|
|
1613
|
+
for (var e = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", n = "", i = 0; i < t; i++)
|
|
1614
|
+
n += e.charAt(Math.floor(Math.random() * e.length));
|
|
1615
|
+
return n
|
|
1616
|
+
},
|
|
1617
|
+
callFunction: function(t, e) {
|
|
1618
|
+
return t instanceof Array && t.length ? (t.forEach((function(t) {
|
|
1619
|
+
return "function" == typeof t && t(e)
|
|
1620
|
+
}
|
|
1621
|
+
)),
|
|
1622
|
+
null) : "function" == typeof t && t(e)
|
|
1623
|
+
},
|
|
1624
|
+
bindElemResize: function(t, e) {
|
|
1625
|
+
if (!t || !t.getBoundingClientRect)
|
|
1626
|
+
return !1;
|
|
1627
|
+
var n = 0
|
|
1628
|
+
, i = 0;
|
|
1629
|
+
function o() {
|
|
1630
|
+
var o = t.getBoundingClientRect()
|
|
1631
|
+
, r = o.width
|
|
1632
|
+
, a = o.height;
|
|
1633
|
+
r === n && a === i || (n = r,
|
|
1634
|
+
i = a,
|
|
1635
|
+
"function" == typeof e && e(r, a))
|
|
1636
|
+
}
|
|
1637
|
+
return document.addEventListener("scroll", o),
|
|
1638
|
+
window.addEventListener("resize", o),
|
|
1639
|
+
o
|
|
1640
|
+
}
|
|
1641
|
+
};
|
|
1642
|
+
e.default = i
|
|
1643
|
+
}
|
|
1644
|
+
, function(t, e, n) {
|
|
1645
|
+
"use strict";
|
|
1646
|
+
n.r(e);
|
|
1647
|
+
var i = function(t) {
|
|
1648
|
+
var e = this.constructor;
|
|
1649
|
+
return this.then((function(n) {
|
|
1650
|
+
return e.resolve(t()).then((function() {
|
|
1651
|
+
return n
|
|
1652
|
+
}
|
|
1653
|
+
))
|
|
1654
|
+
}
|
|
1655
|
+
), (function(n) {
|
|
1656
|
+
return e.resolve(t()).then((function() {
|
|
1657
|
+
return e.reject(n)
|
|
1658
|
+
}
|
|
1659
|
+
))
|
|
1660
|
+
}
|
|
1661
|
+
))
|
|
1662
|
+
}
|
|
1663
|
+
, o = setTimeout;
|
|
1664
|
+
function r(t) {
|
|
1665
|
+
return Boolean(t && void 0 !== t.length)
|
|
1666
|
+
}
|
|
1667
|
+
function a() {}
|
|
1668
|
+
function s(t) {
|
|
1669
|
+
if (!(this instanceof s))
|
|
1670
|
+
throw new TypeError("Promises must be constructed via new");
|
|
1671
|
+
if ("function" != typeof t)
|
|
1672
|
+
throw new TypeError("not a function");
|
|
1673
|
+
this._state = 0,
|
|
1674
|
+
this._handled = !1,
|
|
1675
|
+
this._value = void 0,
|
|
1676
|
+
this._deferreds = [],
|
|
1677
|
+
p(t, this)
|
|
1678
|
+
}
|
|
1679
|
+
function l(t, e) {
|
|
1680
|
+
for (; 3 === t._state; )
|
|
1681
|
+
t = t._value;
|
|
1682
|
+
0 !== t._state ? (t._handled = !0,
|
|
1683
|
+
s._immediateFn((function() {
|
|
1684
|
+
var n = 1 === t._state ? e.onFulfilled : e.onRejected;
|
|
1685
|
+
if (null !== n) {
|
|
1686
|
+
var i;
|
|
1687
|
+
try {
|
|
1688
|
+
i = n(t._value)
|
|
1689
|
+
} catch (t) {
|
|
1690
|
+
return void f(e.promise, t)
|
|
1691
|
+
}
|
|
1692
|
+
c(e.promise, i)
|
|
1693
|
+
} else
|
|
1694
|
+
(1 === t._state ? c : f)(e.promise, t._value)
|
|
1695
|
+
}
|
|
1696
|
+
))) : t._deferreds.push(e)
|
|
1697
|
+
}
|
|
1698
|
+
function c(t, e) {
|
|
1699
|
+
try {
|
|
1700
|
+
if (e === t)
|
|
1701
|
+
throw new TypeError("A promise cannot be resolved with itself.");
|
|
1702
|
+
if (e && ("object" == typeof e || "function" == typeof e)) {
|
|
1703
|
+
var n = e.then;
|
|
1704
|
+
if (e instanceof s)
|
|
1705
|
+
return t._state = 3,
|
|
1706
|
+
t._value = e,
|
|
1707
|
+
void u(t);
|
|
1708
|
+
if ("function" == typeof n)
|
|
1709
|
+
return void p((i = n,
|
|
1710
|
+
o = e,
|
|
1711
|
+
function() {
|
|
1712
|
+
i.apply(o, arguments)
|
|
1713
|
+
}
|
|
1714
|
+
), t)
|
|
1715
|
+
}
|
|
1716
|
+
t._state = 1,
|
|
1717
|
+
t._value = e,
|
|
1718
|
+
u(t)
|
|
1719
|
+
} catch (e) {
|
|
1720
|
+
f(t, e)
|
|
1721
|
+
}
|
|
1722
|
+
var i, o
|
|
1723
|
+
}
|
|
1724
|
+
function f(t, e) {
|
|
1725
|
+
t._state = 2,
|
|
1726
|
+
t._value = e,
|
|
1727
|
+
u(t)
|
|
1728
|
+
}
|
|
1729
|
+
function u(t) {
|
|
1730
|
+
2 === t._state && 0 === t._deferreds.length && s._immediateFn((function() {
|
|
1731
|
+
t._handled || s._unhandledRejectionFn(t._value)
|
|
1732
|
+
}
|
|
1733
|
+
));
|
|
1734
|
+
for (var e = 0, n = t._deferreds.length; e < n; e++)
|
|
1735
|
+
l(t, t._deferreds[e]);
|
|
1736
|
+
t._deferreds = null
|
|
1737
|
+
}
|
|
1738
|
+
function d(t, e, n) {
|
|
1739
|
+
this.onFulfilled = "function" == typeof t ? t : null,
|
|
1740
|
+
this.onRejected = "function" == typeof e ? e : null,
|
|
1741
|
+
this.promise = n
|
|
1742
|
+
}
|
|
1743
|
+
function p(t, e) {
|
|
1744
|
+
var n = !1;
|
|
1745
|
+
try {
|
|
1746
|
+
t((function(t) {
|
|
1747
|
+
n || (n = !0,
|
|
1748
|
+
c(e, t))
|
|
1749
|
+
}
|
|
1750
|
+
), (function(t) {
|
|
1751
|
+
n || (n = !0,
|
|
1752
|
+
f(e, t))
|
|
1753
|
+
}
|
|
1754
|
+
))
|
|
1755
|
+
} catch (t) {
|
|
1756
|
+
if (n)
|
|
1757
|
+
return;
|
|
1758
|
+
n = !0,
|
|
1759
|
+
f(e, t)
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
s.prototype.catch = function(t) {
|
|
1763
|
+
return this.then(null, t)
|
|
1764
|
+
}
|
|
1765
|
+
,
|
|
1766
|
+
s.prototype.then = function(t, e) {
|
|
1767
|
+
var n = new this.constructor(a);
|
|
1768
|
+
return l(this, new d(t,e,n)),
|
|
1769
|
+
n
|
|
1770
|
+
}
|
|
1771
|
+
,
|
|
1772
|
+
s.prototype.finally = i,
|
|
1773
|
+
s.all = function(t) {
|
|
1774
|
+
return new s((function(e, n) {
|
|
1775
|
+
if (!r(t))
|
|
1776
|
+
return n(new TypeError("Promise.all accepts an array"));
|
|
1777
|
+
var i = Array.prototype.slice.call(t);
|
|
1778
|
+
if (0 === i.length)
|
|
1779
|
+
return e([]);
|
|
1780
|
+
var o = i.length;
|
|
1781
|
+
function a(t, r) {
|
|
1782
|
+
try {
|
|
1783
|
+
if (r && ("object" == typeof r || "function" == typeof r)) {
|
|
1784
|
+
var s = r.then;
|
|
1785
|
+
if ("function" == typeof s)
|
|
1786
|
+
return void s.call(r, (function(e) {
|
|
1787
|
+
a(t, e)
|
|
1788
|
+
}
|
|
1789
|
+
), n)
|
|
1790
|
+
}
|
|
1791
|
+
i[t] = r,
|
|
1792
|
+
0 == --o && e(i)
|
|
1793
|
+
} catch (t) {
|
|
1794
|
+
n(t)
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
for (var s = 0; s < i.length; s++)
|
|
1798
|
+
a(s, i[s])
|
|
1799
|
+
}
|
|
1800
|
+
))
|
|
1801
|
+
}
|
|
1802
|
+
,
|
|
1803
|
+
s.resolve = function(t) {
|
|
1804
|
+
return t && "object" == typeof t && t.constructor === s ? t : new s((function(e) {
|
|
1805
|
+
e(t)
|
|
1806
|
+
}
|
|
1807
|
+
))
|
|
1808
|
+
}
|
|
1809
|
+
,
|
|
1810
|
+
s.reject = function(t) {
|
|
1811
|
+
return new s((function(e, n) {
|
|
1812
|
+
n(t)
|
|
1813
|
+
}
|
|
1814
|
+
))
|
|
1815
|
+
}
|
|
1816
|
+
,
|
|
1817
|
+
s.race = function(t) {
|
|
1818
|
+
return new s((function(e, n) {
|
|
1819
|
+
if (!r(t))
|
|
1820
|
+
return n(new TypeError("Promise.race accepts an array"));
|
|
1821
|
+
for (var i = 0, o = t.length; i < o; i++)
|
|
1822
|
+
s.resolve(t[i]).then(e, n)
|
|
1823
|
+
}
|
|
1824
|
+
))
|
|
1825
|
+
}
|
|
1826
|
+
,
|
|
1827
|
+
s._immediateFn = "function" == typeof setImmediate && function(t) {
|
|
1828
|
+
setImmediate(t)
|
|
1829
|
+
}
|
|
1830
|
+
|| function(t) {
|
|
1831
|
+
o(t, 0)
|
|
1832
|
+
}
|
|
1833
|
+
,
|
|
1834
|
+
s._unhandledRejectionFn = function(t) {
|
|
1835
|
+
"undefined" != typeof console && console
|
|
1836
|
+
}
|
|
1837
|
+
;
|
|
1838
|
+
var h = s
|
|
1839
|
+
, y = function() {
|
|
1840
|
+
if ("undefined" != typeof self)
|
|
1841
|
+
return self;
|
|
1842
|
+
if ("undefined" != typeof window)
|
|
1843
|
+
return window;
|
|
1844
|
+
if ("undefined" != typeof global)
|
|
1845
|
+
return global;
|
|
1846
|
+
throw new Error("unable to locate global object")
|
|
1847
|
+
}();
|
|
1848
|
+
"Promise"in y ? y.Promise.prototype.finally || (y.Promise.prototype.finally = i) : y.Promise = h
|
|
1849
|
+
}
|
|
1850
|
+
]).default
|
|
1851
|
+
}
|
|
1852
|
+
,
|
|
1853
|
+
"object" == typeof exports && "object" == typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define("PlayerSelector", [], e) : "object" == typeof exports ? exports.PlayerSelector = e() : t.PlayerSelector = e();
|
|
1854
|
+
//# sourceMappingURL=player-selector.js.map
|