@vtx/player 1.10.19 → 1.12.1

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.
Files changed (177) hide show
  1. package/lib/api/fetch.js +68 -71
  2. package/lib/api/fetch.js.map +1 -1
  3. package/lib/api/index.js +33 -51
  4. package/lib/api/index.js.map +1 -1
  5. package/lib/api/types.d.ts +14 -7
  6. package/lib/api/types.js +0 -1
  7. package/lib/api/types.js.map +1 -1
  8. package/lib/bd/PlayerManager.js +8 -7
  9. package/lib/bd/PlayerManager.js.map +1 -1
  10. package/lib/bd2.x/PlayerManager.d.ts +71 -0
  11. package/lib/bd2.x/PlayerManager.js +228 -0
  12. package/lib/bd2.x/PlayerManager.js.map +1 -0
  13. package/lib/bd2.x/swfobject-all.d.ts +11 -0
  14. package/lib/bd2.x/swfobject-all.js +158 -0
  15. package/lib/bd2.x/swfobject-all.js.map +1 -0
  16. package/lib/bd2.x/swfobject.d.ts +40 -0
  17. package/lib/bd2.x/swfobject.js +722 -0
  18. package/lib/bd2.x/swfobject.js.map +1 -0
  19. package/lib/bill-player/index.d.ts +1 -1
  20. package/lib/bill-player/index.js +32 -32
  21. package/lib/bill-player/index.js.map +1 -1
  22. package/lib/components/download-tag/index.js +19 -18
  23. package/lib/components/download-tag/index.js.map +1 -1
  24. package/lib/components/set-tag-video/index.js +25 -24
  25. package/lib/components/set-tag-video/index.js.map +1 -1
  26. package/lib/components/split-screen/index.d.ts +1 -1
  27. package/lib/components/split-screen/index.js +3 -5
  28. package/lib/components/split-screen/index.js.map +1 -1
  29. package/lib/components/tag-video/index.js +16 -13
  30. package/lib/components/tag-video/index.js.map +1 -1
  31. package/lib/components/video-scale/index.d.ts +1 -1
  32. package/lib/components/video-scale/index.js +16 -15
  33. package/lib/components/video-scale/index.js.map +1 -1
  34. package/lib/config.d.ts +1 -1
  35. package/lib/config.js +1 -2
  36. package/lib/config.js.map +1 -1
  37. package/lib/context/index.js +3 -5
  38. package/lib/context/index.js.map +1 -1
  39. package/lib/controls/index.d.ts +13 -12
  40. package/lib/controls/index.js +44 -42
  41. package/lib/controls/index.js.map +1 -1
  42. package/lib/h264/PlayerManager.js +8 -7
  43. package/lib/h264/PlayerManager.js.map +1 -1
  44. package/lib/history-control/index.d.ts +2 -2
  45. package/lib/history-control/index.js +24 -23
  46. package/lib/history-control/index.js.map +1 -1
  47. package/lib/history-control-v2/components/grid-item/index.js +33 -13
  48. package/lib/history-control-v2/components/grid-item/index.js.map +1 -1
  49. package/lib/history-control-v2/components/panel/VideoTable.d.ts +4 -2
  50. package/lib/history-control-v2/components/panel/VideoTable.js +283 -74
  51. package/lib/history-control-v2/components/panel/VideoTable.js.map +1 -1
  52. package/lib/history-control-v2/components/panel/index.d.ts +1 -0
  53. package/lib/history-control-v2/components/panel/index.js +51 -26
  54. package/lib/history-control-v2/components/panel/index.js.map +1 -1
  55. package/lib/history-control-v2/context.js +1 -2
  56. package/lib/history-control-v2/context.js.map +1 -1
  57. package/lib/history-control-v2/index.d.ts +4 -4
  58. package/lib/history-control-v2/index.js +77 -77
  59. package/lib/history-control-v2/index.js.map +1 -1
  60. package/lib/history-control-v2/interface.d.ts +20 -11
  61. package/lib/history-control-v2/utils.d.ts +1 -1
  62. package/lib/history-control-v2/utils.js +51 -27
  63. package/lib/history-control-v2/utils.js.map +1 -1
  64. package/lib/history-player/index.d.ts +20 -1
  65. package/lib/history-player/index.js +238 -185
  66. package/lib/history-player/index.js.map +1 -1
  67. package/lib/hooks/useSettings.js +1 -2
  68. package/lib/hooks/useSettings.js.map +1 -1
  69. package/lib/hooks/useTranslation.d.ts +14 -0
  70. package/lib/hooks/useTranslation.js +204 -0
  71. package/lib/hooks/useTranslation.js.map +1 -0
  72. package/lib/icc/PlayerManager.js +9 -8
  73. package/lib/icc/PlayerManager.js.map +1 -1
  74. package/lib/icc/api.d.ts +1 -68
  75. package/lib/icc/api.js +7 -3
  76. package/lib/icc/api.js.map +1 -1
  77. package/lib/icons/index.d.ts +38 -38
  78. package/lib/icons/index.js +101 -467
  79. package/lib/icons/index.js.map +1 -1
  80. package/lib/index.d.ts +2 -0
  81. package/lib/index.js +38 -1
  82. package/lib/index.js.map +1 -1
  83. package/lib/live-channel-player/index.d.ts +1 -1
  84. package/lib/live-channel-player/index.js +28 -32
  85. package/lib/live-channel-player/index.js.map +1 -1
  86. package/lib/live-control/index.d.ts +4 -2
  87. package/lib/live-control/index.js +29 -19
  88. package/lib/live-control/index.js.map +1 -1
  89. package/lib/live-control-v2/index.d.ts +5 -3
  90. package/lib/live-control-v2/index.js +22 -22
  91. package/lib/live-control-v2/index.js.map +1 -1
  92. package/lib/live-player/index.d.ts +1 -0
  93. package/lib/live-player/index.js +169 -143
  94. package/lib/live-player/index.js.map +1 -1
  95. package/lib/locales/en.json +93 -0
  96. package/lib/locales/index.d.ts +20 -0
  97. package/lib/locales/index.js +105 -0
  98. package/lib/locales/index.js.map +1 -0
  99. package/lib/locales/zh-CN.json +93 -0
  100. package/lib/mpegts/PlayerManager.js +14 -8
  101. package/lib/mpegts/PlayerManager.js.map +1 -1
  102. package/lib/player/BdPlayer.d.ts +7 -2
  103. package/lib/player/BdPlayer.js +138 -47
  104. package/lib/player/BdPlayer.js.map +1 -1
  105. package/lib/player/BdPlayer2.d.ts +117 -0
  106. package/lib/player/BdPlayer2.js +341 -0
  107. package/lib/player/BdPlayer2.js.map +1 -0
  108. package/lib/player/FlvPlayer.d.ts +2 -1
  109. package/lib/player/FlvPlayer.js +17 -20
  110. package/lib/player/FlvPlayer.js.map +1 -1
  111. package/lib/player/H264Player.d.ts +2 -1
  112. package/lib/player/H264Player.js +17 -20
  113. package/lib/player/H264Player.js.map +1 -1
  114. package/lib/player/HkcarwsPlayer.d.ts +10 -1
  115. package/lib/player/HkcarwsPlayer.js +149 -36
  116. package/lib/player/HkcarwsPlayer.js.map +1 -1
  117. package/lib/player/HkwsPlayer.d.ts +19 -1
  118. package/lib/player/HkwsPlayer.js +178 -90
  119. package/lib/player/HkwsPlayer.js.map +1 -1
  120. package/lib/player/HlsPlayer.d.ts +2 -1
  121. package/lib/player/HlsPlayer.js +17 -20
  122. package/lib/player/HlsPlayer.js.map +1 -1
  123. package/lib/player/IccwsPlayer.d.ts +2 -1
  124. package/lib/player/IccwsPlayer.js +19 -22
  125. package/lib/player/IccwsPlayer.js.map +1 -1
  126. package/lib/player/IframePlayer.d.ts +2 -1
  127. package/lib/player/IframePlayer.js +8 -7
  128. package/lib/player/IframePlayer.js.map +1 -1
  129. package/lib/player/Mp4Player.d.ts +2 -1
  130. package/lib/player/Mp4Player.js +17 -20
  131. package/lib/player/Mp4Player.js.map +1 -1
  132. package/lib/player/RslPlayer.d.ts +2 -1
  133. package/lib/player/RslPlayer.js +17 -20
  134. package/lib/player/RslPlayer.js.map +1 -1
  135. package/lib/player/VtxHlsPlayer.d.ts +2 -1
  136. package/lib/player/VtxHlsPlayer.js +17 -20
  137. package/lib/player/VtxHlsPlayer.js.map +1 -1
  138. package/lib/player/VtxwhepPlayer.d.ts +2 -1
  139. package/lib/player/VtxwhepPlayer.js +17 -20
  140. package/lib/player/VtxwhepPlayer.js.map +1 -1
  141. package/lib/player/VtxwsPlayer.d.ts +2 -1
  142. package/lib/player/VtxwsPlayer.js +16 -19
  143. package/lib/player/VtxwsPlayer.js.map +1 -1
  144. package/lib/player/Web34Player.d.ts +172 -0
  145. package/lib/player/Web34Player.js +1912 -0
  146. package/lib/player/Web34Player.js.map +1 -0
  147. package/lib/player/WebrtcPlayer.d.ts +2 -1
  148. package/lib/player/WebrtcPlayer.js +17 -20
  149. package/lib/player/WebrtcPlayer.js.map +1 -1
  150. package/lib/player/WfsPlayer.d.ts +2 -1
  151. package/lib/player/WfsPlayer.js +17 -20
  152. package/lib/player/WfsPlayer.js.map +1 -1
  153. package/lib/player/YsyPlayer.d.ts +116 -0
  154. package/lib/player/YsyPlayer.js +273 -0
  155. package/lib/player/YsyPlayer.js.map +1 -0
  156. package/lib/player/index.d.ts +4 -1
  157. package/lib/player/index.js +22 -1
  158. package/lib/player/index.js.map +1 -1
  159. package/lib/player/indexOld.d.ts +2 -1
  160. package/lib/player/indexOld.js +98 -101
  161. package/lib/player/indexOld.js.map +1 -1
  162. package/lib/rsl/PlayerManager.d.ts +1 -1
  163. package/lib/rsl/PlayerManager.js +10 -9
  164. package/lib/rsl/PlayerManager.js.map +1 -1
  165. package/lib/typings/h5player.d.ts +33 -1
  166. package/lib/utils/index.d.ts +1 -1
  167. package/lib/utils/index.js +16 -27
  168. package/lib/utils/index.js.map +1 -1
  169. package/lib/vtxHls/PlayerManager.js +8 -7
  170. package/lib/vtxHls/PlayerManager.js.map +1 -1
  171. package/lib/vtxHls/WhepManager.js +11 -10
  172. package/lib/vtxHls/WhepManager.js.map +1 -1
  173. package/lib/webrtc/PlayerManager.js +8 -7
  174. package/lib/webrtc/PlayerManager.js.map +1 -1
  175. package/lib/wfs/PlayerManager.js +8 -7
  176. package/lib/wfs/PlayerManager.js.map +1 -1
  177. package/package.json +5 -1
@@ -0,0 +1,722 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ /*! SWFObject v2.3.20130521 <http://github.com/swfobject/swfobject>
5
+ is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
6
+ */
7
+ var swfobject = function () {
8
+ var D = "undefined",
9
+ r = "object",
10
+ T = "Shockwave Flash",
11
+ Z = "ShockwaveFlash.ShockwaveFlash",
12
+ q = "application/x-shockwave-flash",
13
+ S = "SWFObjectExprInst",
14
+ x = "onreadystatechange",
15
+ Q = window,
16
+ h = document,
17
+ t = navigator,
18
+ V = false,
19
+ X = [],
20
+ o = [],
21
+ P = [],
22
+ K = [],
23
+ I,
24
+ p,
25
+ E,
26
+ B,
27
+ L = false,
28
+ a = false,
29
+ m,
30
+ G,
31
+ j = true,
32
+ l = false,
33
+ O = function () {
34
+ var ad = _typeof(h.getElementById) != D && _typeof(h.getElementsByTagName) != D && _typeof(h.createElement) != D,
35
+ ak = t.userAgent.toLowerCase(),
36
+ ab = t.platform.toLowerCase(),
37
+ ah = ab ? /win/.test(ab) : /win/.test(ak),
38
+ af = ab ? /mac/.test(ab) : /mac/.test(ak),
39
+ ai = /webkit/.test(ak) ? parseFloat(ak.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false,
40
+ aa = t.appName === "Microsoft Internet Explorer",
41
+ aj = [0, 0, 0],
42
+ ae = null;
43
+ if (_typeof(t.plugins) != D && _typeof(t.plugins[T]) == r) {
44
+ ae = t.plugins[T].description;
45
+ if (ae && _typeof(t.mimeTypes) != D && t.mimeTypes[q] && t.mimeTypes[q].enabledPlugin) {
46
+ V = true;
47
+ aa = false;
48
+ ae = ae.replace(/^.*\s+(\S+\s+\S+$)/, "$1");
49
+ aj[0] = n(ae.replace(/^(.*)\..*$/, "$1"));
50
+ aj[1] = n(ae.replace(/^.*\.(.*)\s.*$/, "$1"));
51
+ aj[2] = /[a-zA-Z]/.test(ae) ? n(ae.replace(/^.*[a-zA-Z]+(.*)$/, "$1")) : 0;
52
+ }
53
+ } else {
54
+ if (_typeof(Q.ActiveXObject) != D) {
55
+ try {
56
+ var ag = new ActiveXObject(Z);
57
+ if (ag) {
58
+ ae = ag.GetVariable("$version");
59
+ if (ae) {
60
+ aa = true;
61
+ ae = ae.split(" ")[1].split(",");
62
+ aj = [n(ae[0]), n(ae[1]), n(ae[2])];
63
+ }
64
+ }
65
+ } catch (ac) {}
66
+ }
67
+ }
68
+ return {
69
+ w3: ad,
70
+ pv: aj,
71
+ wk: ai,
72
+ ie: aa,
73
+ win: ah,
74
+ mac: af
75
+ };
76
+ }(),
77
+ i = function () {
78
+ if (!O.w3) {
79
+ return;
80
+ }
81
+ if (_typeof(h.readyState) != D && (h.readyState === "complete" || h.readyState === "interactive") || _typeof(h.readyState) == D && (h.getElementsByTagName("body")[0] || h.body)) {
82
+ f();
83
+ }
84
+ if (!L) {
85
+ if (_typeof(h.addEventListener) != D) {
86
+ h.addEventListener("DOMContentLoaded", f, false);
87
+ }
88
+ if (O.ie) {
89
+ h.attachEvent(x, function aa() {
90
+ if (h.readyState == "complete") {
91
+ h.detachEvent(x, aa);
92
+ f();
93
+ }
94
+ });
95
+ if (Q == top) {
96
+ (function ac() {
97
+ if (L) {
98
+ return;
99
+ }
100
+ try {
101
+ h.documentElement.doScroll("left");
102
+ } catch (ad) {
103
+ setTimeout(ac, 0);
104
+ return;
105
+ }
106
+ f();
107
+ })();
108
+ }
109
+ }
110
+ if (O.wk) {
111
+ (function ab() {
112
+ if (L) {
113
+ return;
114
+ }
115
+ if (!/loaded|complete/.test(h.readyState)) {
116
+ setTimeout(ab, 0);
117
+ return;
118
+ }
119
+ f();
120
+ })();
121
+ }
122
+ }
123
+ }();
124
+ function f() {
125
+ if (L || !document.getElementsByTagName("body")[0]) {
126
+ return;
127
+ }
128
+ try {
129
+ var ac,
130
+ ad = C("span");
131
+ ad.style.display = "none";
132
+ ac = h.getElementsByTagName("body")[0].appendChild(ad);
133
+ ac.parentNode.removeChild(ac);
134
+ ac = null;
135
+ ad = null;
136
+ } catch (ae) {
137
+ return;
138
+ }
139
+ L = true;
140
+ var aa = X.length;
141
+ for (var ab = 0; ab < aa; ab++) {
142
+ X[ab]();
143
+ }
144
+ }
145
+ function M(aa) {
146
+ if (L) {
147
+ aa();
148
+ } else {
149
+ X[X.length] = aa;
150
+ }
151
+ }
152
+ function s(ab) {
153
+ if (_typeof(Q.addEventListener) != D) {
154
+ Q.addEventListener("load", ab, false);
155
+ } else {
156
+ if (_typeof(h.addEventListener) != D) {
157
+ h.addEventListener("load", ab, false);
158
+ } else {
159
+ if (_typeof(Q.attachEvent) != D) {
160
+ g(Q, "onload", ab);
161
+ } else {
162
+ if (typeof Q.onload == "function") {
163
+ var aa = Q.onload;
164
+ Q.onload = function () {
165
+ aa();
166
+ ab();
167
+ };
168
+ } else {
169
+ Q.onload = ab;
170
+ }
171
+ }
172
+ }
173
+ }
174
+ }
175
+ function Y() {
176
+ var aa = h.getElementsByTagName("body")[0];
177
+ var ae = C(r);
178
+ ae.setAttribute("style", "visibility: hidden;");
179
+ ae.setAttribute("type", q);
180
+ var ad = aa.appendChild(ae);
181
+ if (ad) {
182
+ var ac = 0;
183
+ (function ab() {
184
+ if (_typeof(ad.GetVariable) != D) {
185
+ try {
186
+ var ag = ad.GetVariable("$version");
187
+ if (ag) {
188
+ ag = ag.split(" ")[1].split(",");
189
+ O.pv = [n(ag[0]), n(ag[1]), n(ag[2])];
190
+ }
191
+ } catch (af) {
192
+ O.pv = [8, 0, 0];
193
+ }
194
+ } else {
195
+ if (ac < 10) {
196
+ ac++;
197
+ setTimeout(ab, 10);
198
+ return;
199
+ }
200
+ }
201
+ aa.removeChild(ae);
202
+ ad = null;
203
+ H();
204
+ })();
205
+ } else {
206
+ H();
207
+ }
208
+ }
209
+ function H() {
210
+ var aj = o.length;
211
+ if (aj > 0) {
212
+ for (var ai = 0; ai < aj; ai++) {
213
+ var ab = o[ai].id;
214
+ var ae = o[ai].callbackFn;
215
+ var ad = {
216
+ success: false,
217
+ id: ab
218
+ };
219
+ if (O.pv[0] > 0) {
220
+ var ah = c(ab);
221
+ if (ah) {
222
+ if (F(o[ai].swfVersion) && !(O.wk && O.wk < 312)) {
223
+ w(ab, true);
224
+ if (ae) {
225
+ ad.success = true;
226
+ ad.ref = z(ab);
227
+ ad.id = ab;
228
+ ae(ad);
229
+ }
230
+ } else {
231
+ if (o[ai].expressInstall && A()) {
232
+ var al = {};
233
+ al.data = o[ai].expressInstall;
234
+ al.width = ah.getAttribute("width") || "0";
235
+ al.height = ah.getAttribute("height") || "0";
236
+ if (ah.getAttribute("class")) {
237
+ al.styleclass = ah.getAttribute("class");
238
+ }
239
+ if (ah.getAttribute("align")) {
240
+ al.align = ah.getAttribute("align");
241
+ }
242
+ var ak = {};
243
+ var aa = ah.getElementsByTagName("param");
244
+ var af = aa.length;
245
+ for (var ag = 0; ag < af; ag++) {
246
+ if (aa[ag].getAttribute("name").toLowerCase() != "movie") {
247
+ ak[aa[ag].getAttribute("name")] = aa[ag].getAttribute("value");
248
+ }
249
+ }
250
+ R(al, ak, ab, ae);
251
+ } else {
252
+ b(ah);
253
+ if (ae) {
254
+ ae(ad);
255
+ }
256
+ }
257
+ }
258
+ }
259
+ } else {
260
+ w(ab, true);
261
+ if (ae) {
262
+ var ac = z(ab);
263
+ if (ac && _typeof(ac.SetVariable) != D) {
264
+ ad.success = true;
265
+ ad.ref = ac;
266
+ ad.id = ac.id;
267
+ }
268
+ ae(ad);
269
+ }
270
+ }
271
+ }
272
+ }
273
+ }
274
+ X[0] = function () {
275
+ if (V) {
276
+ Y();
277
+ } else {
278
+ H();
279
+ }
280
+ };
281
+ function z(ac) {
282
+ var aa = null,
283
+ ab = c(ac);
284
+ if (ab && ab.nodeName.toUpperCase() === "OBJECT") {
285
+ if (_typeof(ab.SetVariable) !== D) {
286
+ aa = ab;
287
+ } else {
288
+ aa = ab.getElementsByTagName(r)[0] || ab;
289
+ }
290
+ }
291
+ return aa;
292
+ }
293
+ function A() {
294
+ return !a && F("6.0.65") && (O.win || O.mac) && !(O.wk && O.wk < 312);
295
+ }
296
+ function R(ad, ae, aa, ac) {
297
+ var ah = c(aa);
298
+ aa = W(aa);
299
+ a = true;
300
+ E = ac || null;
301
+ B = {
302
+ success: false,
303
+ id: aa
304
+ };
305
+ if (ah) {
306
+ if (ah.nodeName.toUpperCase() == "OBJECT") {
307
+ I = J(ah);
308
+ p = null;
309
+ } else {
310
+ I = ah;
311
+ p = aa;
312
+ }
313
+ ad.id = S;
314
+ if (_typeof(ad.width) == D || !/%$/.test(ad.width) && n(ad.width) < 310) {
315
+ ad.width = "310";
316
+ }
317
+ if (_typeof(ad.height) == D || !/%$/.test(ad.height) && n(ad.height) < 137) {
318
+ ad.height = "137";
319
+ }
320
+ var ag = O.ie ? "ActiveX" : "PlugIn",
321
+ af = "MMredirectURL=" + encodeURIComponent(Q.location.toString().replace(/&/g, "%26")) + "&MMplayerType=" + ag + "&MMdoctitle=" + encodeURIComponent(h.title.slice(0, 47) + " - Flash Player Installation");
322
+ if (_typeof(ae.flashvars) != D) {
323
+ ae.flashvars += "&" + af;
324
+ } else {
325
+ ae.flashvars = af;
326
+ }
327
+ if (O.ie && ah.readyState != 4) {
328
+ var ab = C("div");
329
+ aa += "SWFObjectNew";
330
+ ab.setAttribute("id", aa);
331
+ ah.parentNode.insertBefore(ab, ah);
332
+ ah.style.display = "none";
333
+ y(ah);
334
+ }
335
+ u(ad, ae, aa);
336
+ }
337
+ }
338
+ function b(ab) {
339
+ if (O.ie && ab.readyState != 4) {
340
+ ab.style.display = "none";
341
+ var aa = C("div");
342
+ ab.parentNode.insertBefore(aa, ab);
343
+ aa.parentNode.replaceChild(J(ab), aa);
344
+ y(ab);
345
+ } else {
346
+ ab.parentNode.replaceChild(J(ab), ab);
347
+ }
348
+ }
349
+ function J(af) {
350
+ var ae = C("div");
351
+ if (O.win && O.ie) {
352
+ ae.innerHTML = af.innerHTML;
353
+ } else {
354
+ var ab = af.getElementsByTagName(r)[0];
355
+ if (ab) {
356
+ var ag = ab.childNodes;
357
+ if (ag) {
358
+ var aa = ag.length;
359
+ for (var ad = 0; ad < aa; ad++) {
360
+ if (!(ag[ad].nodeType == 1 && ag[ad].nodeName == "PARAM") && !(ag[ad].nodeType == 8)) {
361
+ ae.appendChild(ag[ad].cloneNode(true));
362
+ }
363
+ }
364
+ }
365
+ }
366
+ }
367
+ return ae;
368
+ }
369
+ function k(aa, ab) {
370
+ var ac = C("div");
371
+ ac.innerHTML = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'><param name='movie' value='" + aa + "'>" + ab + "</object>";
372
+ return ac.firstChild;
373
+ }
374
+ function u(ai, ag, ab) {
375
+ var aa,
376
+ ad = c(ab);
377
+ ab = W(ab);
378
+ if (O.wk && O.wk < 312) {
379
+ return aa;
380
+ }
381
+ if (ad) {
382
+ var ac = O.ie ? C("div") : C(r),
383
+ af,
384
+ ah,
385
+ ae;
386
+ if (_typeof(ai.id) == D) {
387
+ ai.id = ab;
388
+ }
389
+ for (ae in ag) {
390
+ if (ag.hasOwnProperty(ae) && ae.toLowerCase() !== "movie") {
391
+ e(ac, ae, ag[ae]);
392
+ }
393
+ }
394
+ if (O.ie) {
395
+ ac = k(ai.data, ac.innerHTML);
396
+ }
397
+ for (af in ai) {
398
+ if (ai.hasOwnProperty(af)) {
399
+ ah = af.toLowerCase();
400
+ if (ah === "styleclass") {
401
+ ac.setAttribute("class", ai[af]);
402
+ } else {
403
+ if (ah !== "classid" && ah !== "data") {
404
+ ac.setAttribute(af, ai[af]);
405
+ }
406
+ }
407
+ }
408
+ }
409
+ if (O.ie) {
410
+ P[P.length] = ai.id;
411
+ } else {
412
+ ac.setAttribute("type", q);
413
+ ac.setAttribute("data", ai.data);
414
+ }
415
+ ad.parentNode.replaceChild(ac, ad);
416
+ aa = ac;
417
+ }
418
+ return aa;
419
+ }
420
+ function e(ac, aa, ab) {
421
+ var ad = C("param");
422
+ ad.setAttribute("name", aa);
423
+ ad.setAttribute("value", ab);
424
+ ac.appendChild(ad);
425
+ }
426
+ function y(ac) {
427
+ var ab = c(ac);
428
+ if (ab && ab.nodeName.toUpperCase() == "OBJECT") {
429
+ if (O.ie) {
430
+ ab.style.display = "none";
431
+ (function aa() {
432
+ if (ab.readyState == 4) {
433
+ for (var ad in ab) {
434
+ if (typeof ab[ad] == "function") {
435
+ ab[ad] = null;
436
+ }
437
+ }
438
+ ab.parentNode.removeChild(ab);
439
+ } else {
440
+ setTimeout(aa, 10);
441
+ }
442
+ })();
443
+ } else {
444
+ ab.parentNode.removeChild(ab);
445
+ }
446
+ }
447
+ }
448
+ function U(aa) {
449
+ return aa && aa.nodeType && aa.nodeType === 1;
450
+ }
451
+ function W(aa) {
452
+ return U(aa) ? aa.id : aa;
453
+ }
454
+ function c(ac) {
455
+ if (U(ac)) {
456
+ return ac;
457
+ }
458
+ var aa = null;
459
+ try {
460
+ aa = h.getElementById(ac);
461
+ } catch (ab) {}
462
+ return aa;
463
+ }
464
+ function C(aa) {
465
+ return h.createElement(aa);
466
+ }
467
+ function n(aa) {
468
+ return parseInt(aa, 10);
469
+ }
470
+ function g(ac, aa, ab) {
471
+ ac.attachEvent(aa, ab);
472
+ K[K.length] = [ac, aa, ab];
473
+ }
474
+ function F(ac) {
475
+ ac += "";
476
+ var ab = O.pv,
477
+ aa = ac.split(".");
478
+ aa[0] = n(aa[0]);
479
+ aa[1] = n(aa[1]) || 0;
480
+ aa[2] = n(aa[2]) || 0;
481
+ return ab[0] > aa[0] || ab[0] == aa[0] && ab[1] > aa[1] || ab[0] == aa[0] && ab[1] == aa[1] && ab[2] >= aa[2] ? true : false;
482
+ }
483
+ function v(af, ab, ag, ae) {
484
+ var ad = h.getElementsByTagName("head")[0];
485
+ if (!ad) {
486
+ return;
487
+ }
488
+ var aa = typeof ag == "string" ? ag : "screen";
489
+ if (ae) {
490
+ m = null;
491
+ G = null;
492
+ }
493
+ if (!m || G != aa) {
494
+ var ac = C("style");
495
+ ac.setAttribute("type", "text/css");
496
+ ac.setAttribute("media", aa);
497
+ m = ad.appendChild(ac);
498
+ if (O.ie && _typeof(h.styleSheets) != D && h.styleSheets.length > 0) {
499
+ m = h.styleSheets[h.styleSheets.length - 1];
500
+ }
501
+ G = aa;
502
+ }
503
+ if (m) {
504
+ if (_typeof(m.addRule) != D) {
505
+ m.addRule(af, ab);
506
+ } else {
507
+ if (_typeof(h.createTextNode) != D) {
508
+ m.appendChild(h.createTextNode(af + " {" + ab + "}"));
509
+ }
510
+ }
511
+ }
512
+ }
513
+ function w(ad, aa) {
514
+ if (!j) {
515
+ return;
516
+ }
517
+ var ab = aa ? "visible" : "hidden",
518
+ ac = c(ad);
519
+ if (L && ac) {
520
+ ac.style.visibility = ab;
521
+ } else {
522
+ if (typeof ad === "string") {
523
+ v("#" + ad, "visibility:" + ab);
524
+ }
525
+ }
526
+ }
527
+ function N(ab) {
528
+ var ac = /[\\\"<>\.;]/;
529
+ var aa = ac.exec(ab) != null;
530
+ return aa && (typeof encodeURIComponent === "undefined" ? "undefined" : _typeof(encodeURIComponent)) != D ? encodeURIComponent(ab) : ab;
531
+ }
532
+ var d = function () {
533
+ if (O.ie) {
534
+ window.attachEvent("onunload", function () {
535
+ var af = K.length;
536
+ for (var ae = 0; ae < af; ae++) {
537
+ K[ae][0].detachEvent(K[ae][1], K[ae][2]);
538
+ }
539
+ var ac = P.length;
540
+ for (var ad = 0; ad < ac; ad++) {
541
+ y(P[ad]);
542
+ }
543
+ for (var ab in O) {
544
+ O[ab] = null;
545
+ }
546
+ O = null;
547
+ for (var aa in swfobject) {
548
+ swfobject[aa] = null;
549
+ }
550
+ swfobject = null;
551
+ });
552
+ }
553
+ }();
554
+ return {
555
+ registerObject: function registerObject(ae, aa, ad, ac) {
556
+ if (O.w3 && ae && aa) {
557
+ var ab = {};
558
+ ab.id = ae;
559
+ ab.swfVersion = aa;
560
+ ab.expressInstall = ad;
561
+ ab.callbackFn = ac;
562
+ o[o.length] = ab;
563
+ w(ae, false);
564
+ } else {
565
+ if (ac) {
566
+ ac({
567
+ success: false,
568
+ id: ae
569
+ });
570
+ }
571
+ }
572
+ },
573
+ getObjectById: function getObjectById(aa) {
574
+ if (O.w3) {
575
+ return z(aa);
576
+ }
577
+ },
578
+ embedSWF: function embedSWF(af, al, ai, ak, ab, ae, ad, ah, aj, ag) {
579
+ var ac = W(al),
580
+ aa = {
581
+ success: false,
582
+ id: ac
583
+ };
584
+ if (O.w3 && !(O.wk && O.wk < 312) && af && al && ai && ak && ab) {
585
+ w(ac, false);
586
+ M(function () {
587
+ ai += "";
588
+ ak += "";
589
+ var an = {};
590
+ if (aj && _typeof(aj) === r) {
591
+ for (var aq in aj) {
592
+ an[aq] = aj[aq];
593
+ }
594
+ }
595
+ an.data = af;
596
+ an.width = ai;
597
+ an.height = ak;
598
+ var ar = {};
599
+ if (ah && _typeof(ah) === r) {
600
+ for (var ao in ah) {
601
+ ar[ao] = ah[ao];
602
+ }
603
+ }
604
+ if (ad && _typeof(ad) === r) {
605
+ for (var am in ad) {
606
+ if (ad.hasOwnProperty(am)) {
607
+ var ap = l ? encodeURIComponent(am) : am,
608
+ at = l ? encodeURIComponent(ad[am]) : ad[am];
609
+ if (_typeof(ar.flashvars) != D) {
610
+ ar.flashvars += "&" + ap + "=" + at;
611
+ } else {
612
+ ar.flashvars = ap + "=" + at;
613
+ }
614
+ }
615
+ }
616
+ }
617
+ if (F(ab)) {
618
+ var au = u(an, ar, al);
619
+ if (an.id == ac) {
620
+ w(ac, true);
621
+ }
622
+ aa.success = true;
623
+ aa.ref = au;
624
+ aa.id = au.id;
625
+ } else {
626
+ if (ae && A()) {
627
+ an.data = ae;
628
+ R(an, ar, al, ag);
629
+ return;
630
+ } else {
631
+ w(ac, true);
632
+ }
633
+ }
634
+ if (ag) {
635
+ ag(aa);
636
+ }
637
+ });
638
+ } else {
639
+ if (ag) {
640
+ ag(aa);
641
+ }
642
+ }
643
+ },
644
+ switchOffAutoHideShow: function switchOffAutoHideShow() {
645
+ j = false;
646
+ },
647
+ enableUriEncoding: function enableUriEncoding(aa) {
648
+ l = _typeof(aa) === D ? true : aa;
649
+ },
650
+ ua: O,
651
+ getFlashPlayerVersion: function getFlashPlayerVersion() {
652
+ return {
653
+ major: O.pv[0],
654
+ minor: O.pv[1],
655
+ release: O.pv[2]
656
+ };
657
+ },
658
+ hasFlashPlayerVersion: F,
659
+ createSWF: function createSWF(ac, ab, aa) {
660
+ if (O.w3) {
661
+ return u(ac, ab, aa);
662
+ } else {
663
+ return undefined;
664
+ }
665
+ },
666
+ showExpressInstall: function showExpressInstall(ac, ad, aa, ab) {
667
+ if (O.w3 && A()) {
668
+ R(ac, ad, aa, ab);
669
+ }
670
+ },
671
+ removeSWF: function removeSWF(aa) {
672
+ if (O.w3) {
673
+ y(aa);
674
+ }
675
+ },
676
+ createCSS: function createCSS(ad, ac, ab, aa) {
677
+ if (O.w3) {
678
+ v(ad, ac, ab, aa);
679
+ }
680
+ },
681
+ addDomLoadEvent: M,
682
+ addLoadEvent: s,
683
+ getQueryParamValue: function getQueryParamValue(ad) {
684
+ var ac = h.location.search || h.location.hash;
685
+ if (ac) {
686
+ if (/\?/.test(ac)) {
687
+ ac = ac.split("?")[1];
688
+ }
689
+ if (ad == null) {
690
+ return N(ac);
691
+ }
692
+ var ab = ac.split("&");
693
+ for (var aa = 0; aa < ab.length; aa++) {
694
+ if (ab[aa].substring(0, ab[aa].indexOf("=")) == ad) {
695
+ return N(ab[aa].substring(ab[aa].indexOf("=") + 1));
696
+ }
697
+ }
698
+ }
699
+ return "";
700
+ },
701
+ expressInstallCallback: function expressInstallCallback() {
702
+ if (a) {
703
+ var aa = c(S);
704
+ if (aa && I) {
705
+ aa.parentNode.replaceChild(I, aa);
706
+ if (p) {
707
+ w(p, true);
708
+ if (O.ie) {
709
+ I.style.display = "block";
710
+ }
711
+ }
712
+ if (E) {
713
+ E(B);
714
+ }
715
+ }
716
+ a = false;
717
+ }
718
+ },
719
+ version: "2.3"
720
+ };
721
+ }();
722
+ //# sourceMappingURL=swfobject.js.map