forked from woniuzfb/iptv
-
Notifications
You must be signed in to change notification settings - Fork 7
/
iptv.html
1776 lines (1645 loc) · 90.3 KB
/
iptv.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="shortcut icon" href="hbo.png">
<link href="https://cdn.bootcss.com/video.js/7.6.6/video-js.min.css" rel="stylesheet">
<style>
html {
font-size: 62.5%;
}
a {
color: #70B7FD;
text-decoration: none;
}
li {
margin-left: .8rem;
list-style: none;
}
ul:focus, li:focus {
outline: none;
}
button {
font-size: 1.44rem;
}
input {
display: inline-block;
text-align: center;
font-size: 1.6rem;
border-radius: .1rem;
box-sizing: border-box;
height: 3.2rem;
max-width: 12.8rem;
}
body {
width: 95%;
margin: 0 auto;
font: 1.6rem/1.2 'PingFangSC','helvetica neue','hiragino sans gb','arial','microsoft yahei ui','microsoft yahei','simsun','sans-serif';
display: grid;
grid-template-columns: 1fr 2fr;
grid-gap: 2rem;
}
header {
grid-column: 1 / 3;
grid-row: 1;
}
.videoContainer {
grid-column: 2;
grid-row: 2;
width: 80%;
}
.vjs-subs-caps-button {
display: none;
}
.sliderContainer {
grid-column: 2;
grid-row: 3;
width: 80%;
}
.slider {
position: relative;
margin: 0 auto;
width: 17rem;
}
.frame {
width: 16.4rem;
position: relative;
margin: 0 auto;
font-size: 0;
line-height: 0;
overflow: hidden;
white-space: nowrap;
}
.slides {
display: inline-block;
}
.frame li {
position: relative;
display: inline-block;
font-family: 'Source Sans Pro', sans-serif;
height: 3.2rem;
text-align: center;
font-size: 1.6rem;
line-height: 3.2rem;
background: #2E435A;
color: #fff;
margin-left: 0;
margin-right: .8rem;
padding: 0 .8rem;
cursor: pointer;
}
.prev, .next {
position: absolute;
top: 50%;
margin-top: -25px;
display: block;
cursor: pointer;
}
.next {
right: 0;
}
.prev {
left: 2.4rem;
}
.next.disabled, .prev.disabled {
opacity: .3;
pointer-events: none;
}
.next svg, .prev svg {
width: 2.5rem;
}
aside {
grid-column: 1;
grid-row: 2 / 4;
padding-left: .8rem;
padding-right: 1.6rem;
text-align: right;
border-right: .1rem solid #999;
}
fieldset {
min-width: 0;
padding: 0;
margin: 0;
border: 0;
}
.categories {
grid-column: 1 / 3;
grid-row: 6;
text-align: center;
}
section {
grid-column: 1 / 3;
grid-row: 7;
text-align: center;
}
.linkInput {
display: block;
width: 50%;
max-width: 50%;
margin: 0 auto 8rem;
}
.sources {
display: inline-block;
margin-top: 0;
padding: 0;
}
.sources li {
display: block;
text-decoration: none;
letter-spacing: .1rem;
border: .1rem solid rgba(0,0,200,0.6);
background: rgba(112,183,253,0.3);
color: rgba(0,0,200,0.6);
box-shadow: .1rem .1rem .2rem rgba(0,0,200,0.4);
border-radius: 1rem;
padding: .3rem 1rem;
margin-bottom: 1rem;
cursor: pointer;
}
.regImg {
display: inline-block;
}
.categories li, .channels li, .formToggle, button {
display: inline-block;
text-decoration: none;
letter-spacing: .1rem;
text-transform: uppercase;
border: .1rem solid rgba(0,0,200,0.6);
background: rgba(112,183,253,0.3);
color: rgba(0,0,200,0.6);
box-shadow: .1rem .1rem .2rem rgba(0,0,200,0.4);
border-radius: 1rem;
padding: .3rem 1rem;
margin-bottom: 1rem;
cursor: pointer;
}
aside h3 {
margin-top: 0;
}
form div + div {
margin-top: 1.6rem;
}
footer {
background: #F3F3F3;
padding: .8rem;
letter-spacing: .1rem;
position: fixed;
left: 0;
bottom: 0;
}
footer span {
margin-left: .8rem;
margin-right: .8rem;
}
.video-js .vjs-overlay {
color: #fff;
position: absolute;
text-align: center;
}
.video-js .vjs-overlay-background {
background-color: #646464;
border-radius: 3px;
}
.video-js .vjs-overlay-center {
left: 50%;
top: 50%;
}
.working {
border: .1rem solid rgba(0, 200, 0, 0.6) !important;
background:rgba(47, 201, 96, 0.5) !important;
}
.sources .sourceReg, .categories .selected, .channels .selected {
color: white;
background: red !important;
}
.hidden {
display: none !important;
}
.white {
color: white !important;
}
.bgBlack {
background-color: black !important;
}
.borderRed {
border-color: red !important;
}
.alert {
grid-column: 1 / 3;
grid-row: 4;
text-align: center;
color: red !important;
}
.upComing {
grid-column: 1 / 3;
grid-row: 5;
text-align: center;
color: rgba(0, 200, 0);
}
.upComing li {
color: rgba(0, 200, 0) !important;
}
@media (max-width: 468px ) {
.slider {
width: 180px;
}
.frame {
width: 110px;
}
}
@media (min-width: 469px ) {
.slider {
width: 230px;
}
.frame {
width: 164px;
}
}
@media (min-width: 640px ) {
.slider {
width: 400px;
}
.frame {
width: 325px;
}
}
@media (min-width: 1176px ) {
.slider {
width: 615px;
}
.frame {
width: 536px;
}
}
@media (min-width: 1440px ) {
.slider {
width: 730px;
}
.frame {
width: 658px;
}
}
@media (max-width: 991.98px) {
header {
padding-left: 1.6rem;
}
.videoContainer, .sliderContainer {
width: 95%;
}
.categories .hbohd {
display: none;
}
footer span {
display: none;
}
}
@media (min-width: 992px) {
header {
grid-column: 2;
grid-row: 1;
}
}
svg {
fill:#70B7FD;
color:#fff;
position: absolute;
top: 0;
border: 0;
right: 0;
}
.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}
</style>
<title>HBO直播 - 高清电视直播</title>
</head>
<body>
<header>
<h1>
<a href="/">HBO中文直播</a>
</h1>
<p>部分广电直播源需手机号注册!</p>
<a href="https://github.com/woniuzfb/iptv" target="_blank" class="github-corner">
<svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true">
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path>
</svg>
</a>
</header>
<div class="videoContainer"></div>
<div class="sliderContainer">
<div class="slider js_slider">
<div class="frame js_frame">
<ul class="slides js_slides">
</ul>
</div>
<span class="js_prev prev">
<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 501.5 501.5"><g><path fill="#2E435A" d="M302.67 90.877l55.77 55.508L254.575 250.75 358.44 355.116l-55.77 55.506L143.56 250.75z"/></g></svg>
</span>
<span class="js_next next">
<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 501.5 501.5"><g><path fill="#2E435A" d="M199.33 410.622l-55.77-55.508L247.425 250.75 143.56 146.384l55.77-55.507L358.44 250.75z"/></g></svg>
</span>
</div>
</div>
<div class="alert"></div>
<div class="upComing"></div>
<div class="categories">
<ul>
<li data-value="hbo" data-source="a8">HBO</li>
<li data-value="hbohd" data-source="hbo">HBO高清</li>
<li data-value="myList1" class="dianxin">高清•电信</li>
<li data-value="myList1a" class="liantong">高清•联通</li>
<li data-value="myList2">标清</li>
<li data-value="myList3">央视</li>
<li data-value="myList4">卫视</li>
<li data-value="myList5">地方</li>
<li data-value="myList8">专业</li>
<li data-value="myList9">自定义</li>
<li data-value="myList10">港澳台</li>
<li data-value="0" class="switch">关灯</li>
</ul>
</div>
<section>
<div class="channels">
<ul></ul>
<ul></ul>
<ul></ul>
<ul></ul>
<ul></ul>
<ul></ul>
<ul></ul>
<ul>
<input type="text" class="linkInput" placeholder="支持flv、hls">
</ul>
<ul></ul>
</div>
</section>
<aside>
<ul class="sources"></ul>
<form class="loginForm">
<fieldset>
<h3>登录账号</h3>
<div><input class="loginAcc" type="text" placeholder="用户名"></div>
<div><input class="loginPwd" type="password" placeholder="密码"></div>
<div><button class="loginBtn" type="button">登录</button></div>
</fieldset>
</form>
<form class="regForm hidden">
<fieldset>
<h3>注册账号</h3>
<div><input class="regAcc" type="text" placeholder="用户名"></div>
<div><input class="regPwd" type="password" placeholder="密码"></div>
<div class="regImg"></div><input type="hidden" class="regImgId">
<div><input class="regImgInput hidden" type="text" placeholder="图片验证码"></div>
<div><input class="regSms hidden" type="text" placeholder="短信验证码"></div>
<div><button class="regBtn" type="button">注册</button></div>
</fieldset>
</form>
<button class="formToggle" type="button">注册</button>
</aside>
<footer>
By MTimer<span>•</span>
<a href="https://github.com/woniuzfb/iptv" target="_blank">@iptv</a>
</footer>
<script src="https://cdn.bootcss.com/video.js/7.6.6/video.min.js"></script>
<script src="https://cdn.bootcss.com/flv.js/1.5.0/flv.min.js"></script>
<script>
/*videojs-overlay*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("video.js"),require("global/window")):"function"==typeof define&&define.amd?define(["video.js","global/window"],e):t.videojsOverlay=e(t.videojs,t.window)}(this,function(t,e){"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}t=t&&t.hasOwnProperty("default")?t.default:t,e=e&&e.hasOwnProperty("default")?e.default:e;var r={align:"top-left",class:"",content:"This overlay will show up while the video is playing",debug:!1,showBackground:!0,attachToControlBar:!1,overlays:[{start:"playing",end:"paused"}]},i=t.getComponent("Component"),o=t.dom||t,s=t.registerPlugin||t.plugin,a=function(t){return"number"==typeof t&&t==t},h=function(t){return"string"==typeof t&&/^\S+$/.test(t)},d=function(r){var i,s;function d(t,e){var i;return i=r.call(this,t,e)||this,["start","end"].forEach(function(t){var e=i.options_[t];if(a(e))i[t+"Event_"]="timeupdate";else if(h(e))i[t+"Event_"]=e;else if("start"===t)throw new Error('invalid "start" option; expected number or string')}),["endListener_","rewindListener_","startListener_"].forEach(function(t){i[t]=function(e){return d.prototype[t].call(n(n(i)),e)}}),"timeupdate"===i.startEvent_&&i.on(t,"timeupdate",i.rewindListener_),i.debug('created, listening to "'+i.startEvent_+'" for "start" and "'+(i.endEvent_||"nothing")+'" for "end"'),i.hide(),i}s=r,(i=d).prototype=Object.create(s.prototype),i.prototype.constructor=i,i.__proto__=s;var l=d.prototype;return l.createEl=function(){var t=this.options_,n=t.content,r=t.showBackground?"vjs-overlay-background":"vjs-overlay-no-background",i=o.createEl("div",{className:"\n vjs-overlay\n vjs-overlay-"+t.align+"\n "+t.class+"\n "+r+"\n vjs-hidden\n "});return"string"==typeof n?i.innerHTML=n:n instanceof e.DocumentFragment?i.appendChild(n):o.appendContent(i,n),i},l.debug=function(){if(this.options_.debug){for(var e=t.log,n=e,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];e.hasOwnProperty(i[0])&&"function"==typeof e[i[0]]&&(n=e[i.shift()]),n.apply(void 0,["overlay#"+this.id()+": "].concat(i))}},l.hide=function(){return r.prototype.hide.call(this),this.debug("hidden"),this.debug('bound `startListener_` to "'+this.startEvent_+'"'),this.endEvent_&&(this.debug('unbound `endListener_` from "'+this.endEvent_+'"'),this.off(this.player(),this.endEvent_,this.endListener_)),this.on(this.player(),this.startEvent_,this.startListener_),this},l.shouldHide_=function(t,e){var n=this.options_.end;return a(n)?t>=n:n===e},l.show=function(){return r.prototype.show.call(this),this.off(this.player(),this.startEvent_,this.startListener_),this.debug("shown"),this.debug('unbound `startListener_` from "'+this.startEvent_+'"'),this.endEvent_&&(this.debug('bound `endListener_` to "'+this.endEvent_+'"'),this.on(this.player(),this.endEvent_,this.endListener_)),this},l.shouldShow_=function(t,e){var n=this.options_.start,r=this.options_.end;return a(n)?a(r)?t>=n&&t<r:this.hasShownSinceSeek_?Math.floor(t)===n:(this.hasShownSinceSeek_=!0,t>=n):n===e},l.startListener_=function(t){var e=this.player().currentTime();this.shouldShow_(e,t.type)&&this.show()},l.endListener_=function(t){var e=this.player().currentTime();this.shouldHide_(e,t.type)&&this.hide()},l.rewindListener_=function(t){var e=this.player().currentTime(),n=this.previousTime_,r=this.options_.start,i=this.options_.end;e<n&&(this.debug("rewind detected"),a(i)&&!this.shouldShow_(e)?(this.debug("hiding; "+i+" is an integer and overlay should not show at this time"),this.hasShownSinceSeek_=!1,this.hide()):h(i)&&e<r&&(this.debug("hiding; show point ("+r+") is before now ("+e+") and end point ("+i+") is an event"),this.hasShownSinceSeek_=!1,this.hide())),this.previousTime_=e},d}(i);t.registerComponent("Overlay",d);var l=function(e){var n=this,i=t.mergeOptions(r,e);Array.isArray(this.overlays_)&&this.overlays_.forEach(function(t){n.removeChild(t),n.controlBar&&n.controlBar.removeChild(t),t.dispose()});var o=i.overlays;delete i.overlays,this.overlays_=o.map(function(e){var r=t.mergeOptions(i,e),o="string"==typeof r.attachToControlBar||!0===r.attachToControlBar;if(!n.controls()||!n.controlBar)return n.addChild("overlay",r);if(o&&-1!==r.align.indexOf("bottom")){var s=n.controlBar.children()[0];if(void 0!==n.controlBar.getChild(r.attachToControlBar)&&(s=n.controlBar.getChild(r.attachToControlBar)),s){var a=n.controlBar.addChild("overlay",r);return n.controlBar.el().insertBefore(a.el(),s.el()),a}}var h=n.addChild("overlay",r);return n.el().insertBefore(h.el(),n.controlBar.el()),h})};return l.VERSION="2.1.4",s("overlay",l),l});
/*videojs-flvjs*/
!function e(t,r,o){function n(l,f){if(!r[l]){if(!t[l]){var u="function"==typeof require&&require;if(!f&&u)return u(l,!0);if(i)return i(l,!0);var a=new Error("Cannot find module '"+l+"'");throw a.code="MODULE_NOT_FOUND",a}var c=r[l]={exports:{}};t[l][0].call(c.exports,function(e){var r=t[l][1][e];return n(r||e)},c,c.exports,e,t,r,o)}return r[l].exports}for(var i="function"==typeof require&&require,l=0;l<o.length;l++)n(o[l]);return n}({1:[function(e,t,r){(function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(r,"__esModule",{value:!0});var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),l=function e(t,r,o){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,o)}if("value"in n)return n.value;var l=n.get;if(void 0!==l)return l.call(o)},f="undefined"!=typeof window?window.videojs:void 0!==e?e.videojs:null,u=function(e){return e&&e.__esModule?e:{default:e}}(f),a=u.default.getTech("Html5"),c=u.default.mergeOptions||u.default.util.mergeOptions,s={mediaDataSource:{},config:{}},p=function(e){function r(e,n){return t(this,r),e=c(s,e),o(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,n))}return n(r,e),i(r,[{key:"setSrc",value:function(e){this.flvPlayer&&(this.flvPlayer.detachMediaElement(),this.flvPlayer.destroy());var t=this.options_.mediaDataSource,r=this.options_.config;t.type=void 0===t.type?"flv":t.type,t.url=e,this.flvPlayer=window.flvjs.createPlayer(t,r),this.flvPlayer.attachMediaElement(this.el_),this.flvPlayer.load()}},{key:"dispose",value:function(){this.flvPlayer&&(this.flvPlayer.detachMediaElement(),this.flvPlayer.destroy()),l(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"dispose",this).call(this)}}]),r}(a);p.isSupported=function(){return window.flvjs&&window.flvjs.isSupported()},p.formats={"video/flv":"FLV","video/x-flv":"FLV"},p.canPlayType=function(e){return p.isSupported()&&e in p.formats?"maybe":""},p.canPlaySource=function(e,t){return p.canPlayType(e.type)},p.VERSION="0.2.0",u.default.registerTech("Flvjs",p),r.default=p}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);
/*md5*/
!function(n){"use strict";function t(n,t){var r=(65535&n)+(65535&t);return(n>>16)+(t>>16)+(r>>16)<<16|65535&r}function r(n,t){return n<<t|n>>>32-t}function e(n,e,o,u,c,f){return t(r(t(t(e,n),t(u,f)),c),o)}function o(n,t,r,o,u,c,f){return e(t&r|~t&o,n,t,u,c,f)}function u(n,t,r,o,u,c,f){return e(t&o|r&~o,n,t,u,c,f)}function c(n,t,r,o,u,c,f){return e(t^r^o,n,t,u,c,f)}function f(n,t,r,o,u,c,f){return e(r^(t|~o),n,t,u,c,f)}function i(n,r){n[r>>5]|=128<<r%32,n[14+(r+64>>>9<<4)]=r;var e,i,a,d,h,l=1732584193,g=-271733879,v=-1732584194,m=271733878;for(e=0;e<n.length;e+=16)i=l,a=g,d=v,h=m,g=f(g=f(g=f(g=f(g=c(g=c(g=c(g=c(g=u(g=u(g=u(g=u(g=o(g=o(g=o(g=o(g,v=o(v,m=o(m,l=o(l,g,v,m,n[e],7,-680876936),g,v,n[e+1],12,-389564586),l,g,n[e+2],17,606105819),m,l,n[e+3],22,-1044525330),v=o(v,m=o(m,l=o(l,g,v,m,n[e+4],7,-176418897),g,v,n[e+5],12,1200080426),l,g,n[e+6],17,-1473231341),m,l,n[e+7],22,-45705983),v=o(v,m=o(m,l=o(l,g,v,m,n[e+8],7,1770035416),g,v,n[e+9],12,-1958414417),l,g,n[e+10],17,-42063),m,l,n[e+11],22,-1990404162),v=o(v,m=o(m,l=o(l,g,v,m,n[e+12],7,1804603682),g,v,n[e+13],12,-40341101),l,g,n[e+14],17,-1502002290),m,l,n[e+15],22,1236535329),v=u(v,m=u(m,l=u(l,g,v,m,n[e+1],5,-165796510),g,v,n[e+6],9,-1069501632),l,g,n[e+11],14,643717713),m,l,n[e],20,-373897302),v=u(v,m=u(m,l=u(l,g,v,m,n[e+5],5,-701558691),g,v,n[e+10],9,38016083),l,g,n[e+15],14,-660478335),m,l,n[e+4],20,-405537848),v=u(v,m=u(m,l=u(l,g,v,m,n[e+9],5,568446438),g,v,n[e+14],9,-1019803690),l,g,n[e+3],14,-187363961),m,l,n[e+8],20,1163531501),v=u(v,m=u(m,l=u(l,g,v,m,n[e+13],5,-1444681467),g,v,n[e+2],9,-51403784),l,g,n[e+7],14,1735328473),m,l,n[e+12],20,-1926607734),v=c(v,m=c(m,l=c(l,g,v,m,n[e+5],4,-378558),g,v,n[e+8],11,-2022574463),l,g,n[e+11],16,1839030562),m,l,n[e+14],23,-35309556),v=c(v,m=c(m,l=c(l,g,v,m,n[e+1],4,-1530992060),g,v,n[e+4],11,1272893353),l,g,n[e+7],16,-155497632),m,l,n[e+10],23,-1094730640),v=c(v,m=c(m,l=c(l,g,v,m,n[e+13],4,681279174),g,v,n[e],11,-358537222),l,g,n[e+3],16,-722521979),m,l,n[e+6],23,76029189),v=c(v,m=c(m,l=c(l,g,v,m,n[e+9],4,-640364487),g,v,n[e+12],11,-421815835),l,g,n[e+15],16,530742520),m,l,n[e+2],23,-995338651),v=f(v,m=f(m,l=f(l,g,v,m,n[e],6,-198630844),g,v,n[e+7],10,1126891415),l,g,n[e+14],15,-1416354905),m,l,n[e+5],21,-57434055),v=f(v,m=f(m,l=f(l,g,v,m,n[e+12],6,1700485571),g,v,n[e+3],10,-1894986606),l,g,n[e+10],15,-1051523),m,l,n[e+1],21,-2054922799),v=f(v,m=f(m,l=f(l,g,v,m,n[e+8],6,1873313359),g,v,n[e+15],10,-30611744),l,g,n[e+6],15,-1560198380),m,l,n[e+13],21,1309151649),v=f(v,m=f(m,l=f(l,g,v,m,n[e+4],6,-145523070),g,v,n[e+11],10,-1120210379),l,g,n[e+2],15,718787259),m,l,n[e+9],21,-343485551),l=t(l,i),g=t(g,a),v=t(v,d),m=t(m,h);return[l,g,v,m]}function a(n){var t,r="",e=32*n.length;for(t=0;t<e;t+=8)r+=String.fromCharCode(n[t>>5]>>>t%32&255);return r}function d(n){var t,r=[];for(r[(n.length>>2)-1]=void 0,t=0;t<r.length;t+=1)r[t]=0;var e=8*n.length;for(t=0;t<e;t+=8)r[t>>5]|=(255&n.charCodeAt(t/8))<<t%32;return r}function h(n){return a(i(d(n),8*n.length))}function l(n,t){var r,e,o=d(n),u=[],c=[];for(u[15]=c[15]=void 0,o.length>16&&(o=i(o,8*n.length)),r=0;r<16;r+=1)u[r]=909522486^o[r],c[r]=1549556828^o[r];return e=i(u.concat(d(t)),512+8*t.length),a(i(c.concat(e),640))}function g(n){var t,r,e="";for(r=0;r<n.length;r+=1)t=n.charCodeAt(r),e+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return e}function v(n){return unescape(encodeURIComponent(n))}function m(n){return h(v(n))}function p(n){return g(m(n))}function s(n,t){return l(v(n),v(t))}function C(n,t){return g(s(n,t))}function A(n,t,r){return t?r?s(t,n):C(t,n):r?m(n):p(n)}"function"==typeof define&&define.amd?define(function(){return A}):"object"==typeof module&&module.exports?module.exports=A:n.md5=A}(this);
/*promise*/
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n():"function"==typeof define&&define.amd?define(n):n()}(0,function(){"use strict";function e(e){var n=this.constructor;return this.then(function(t){return n.resolve(e()).then(function(){return t})},function(t){return n.resolve(e()).then(function(){return n.reject(t)})})}function n(){}function t(e){if(!(this instanceof t))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],u(e,this)}function o(e,n){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,t._immediateFn(function(){var t=1===e._state?n.onFulfilled:n.onRejected;if(null!==t){var o;try{o=t(e._value)}catch(f){return void i(n.promise,f)}r(n.promise,o)}else(1===e._state?r:i)(n.promise,e._value)})):e._deferreds.push(n)}function r(e,n){try{if(n===e)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var o=n.then;if(n instanceof t)return e._state=3,e._value=n,void f(e);if("function"==typeof o)return void u(function(e,n){return function(){e.apply(n,arguments)}}(o,n),e)}e._state=1,e._value=n,f(e)}catch(r){i(e,r)}}function i(e,n){e._state=2,e._value=n,f(e)}function f(e){2===e._state&&0===e._deferreds.length&&t._immediateFn(function(){e._handled||t._unhandledRejectionFn(e._value)});for(var n=0,r=e._deferreds.length;r>n;n++)o(e,e._deferreds[n]);e._deferreds=null}function u(e,n){var t=!1;try{e(function(e){t||(t=!0,r(n,e))},function(e){t||(t=!0,i(n,e))})}catch(o){if(t)return;t=!0,i(n,o)}}var c=setTimeout;t.prototype["catch"]=function(e){return this.then(null,e)},t.prototype.then=function(e,t){var r=new this.constructor(n);return o(this,new function(e,n,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof n?n:null,this.promise=t}(e,t,r)),r},t.prototype["finally"]=e,t.all=function(e){return new t(function(n,t){function o(e,f){try{if(f&&("object"==typeof f||"function"==typeof f)){var u=f.then;if("function"==typeof u)return void u.call(f,function(n){o(e,n)},t)}r[e]=f,0==--i&&n(r)}catch(c){t(c)}}if(!e||"undefined"==typeof e.length)throw new TypeError("Promise.all accepts an array");var r=Array.prototype.slice.call(e);if(0===r.length)return n([]);for(var i=r.length,f=0;r.length>f;f++)o(f,r[f])})},t.resolve=function(e){return e&&"object"==typeof e&&e.constructor===t?e:new t(function(n){n(e)})},t.reject=function(e){return new t(function(n,t){t(e)})},t.race=function(e){return new t(function(n,t){for(var o=0,r=e.length;r>o;o++)e[o].then(n,t)})},t._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){c(e,0)},t._unhandledRejectionFn=function(e){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var l=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}();"Promise"in l?l.Promise.prototype["finally"]||(l.Promise.prototype["finally"]=e):l.Promise=t});
/*fetch*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.WHATWGFetch={})}(this,function(a){"use strict";var e="URLSearchParams"in self,r="Symbol"in self&&"iterator"in Symbol,h="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),o="FormData"in self,n="ArrayBuffer"in self;if(n)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(t){return t&&-1<i.indexOf(Object.prototype.toString.call(t))};function u(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function f(t){return"string"!=typeof t&&(t=String(t)),t}function t(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach(function(t,e){this.append(e,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function p(r){return new Promise(function(t,e){r.onload=function(){t(r.result)},r.onerror=function(){e(r.error)}})}function y(t){var e=new FileReader,r=p(e);return e.readAsArrayBuffer(t),r}function l(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(t){(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:h&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():n&&h&&function(t){return t&&DataView.prototype.isPrototypeOf(t)}(t)?(this._bodyArrayBuffer=l(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n&&(ArrayBuffer.prototype.isPrototypeOf(t)||s(t))?this._bodyArrayBuffer=l(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},h&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,r=p(e);return e.readAsText(t),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),o=0;o<e.length;o++)r[o]=String.fromCharCode(e[o]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(t,e){t=u(t),e=f(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},d.prototype.delete=function(t){delete this.map[u(t)]},d.prototype.get=function(t){return t=u(t),this.has(t)?this.map[t]:null},d.prototype.has=function(t){return this.map.hasOwnProperty(u(t))},d.prototype.set=function(t,e){this.map[u(t)]=f(e)},d.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},d.prototype.keys=function(){var r=[];return this.forEach(function(t,e){r.push(e)}),t(r)},d.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),t(e)},d.prototype.entries=function(){var r=[];return this.forEach(function(t,e){r.push([e,t])}),t(r)},r&&(d.prototype[Symbol.iterator]=d.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(t,e){var r=(e=e||{}).body;if(t instanceof w){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new d(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new d(e.headers)),this.method=function(t){var e=t.toUpperCase();return-1<m.indexOf(e)?e:t}(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function v(t){var n=new FormData;return t.trim().split("&").forEach(function(t){if(t){var e=t.split("="),r=e.shift().replace(/\+/g," "),o=e.join("=").replace(/\+/g," ");n.append(decodeURIComponent(r),decodeURIComponent(o))}}),n}function E(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=200<=this.status&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new d(e.headers),this.url=e.url||"",this._initBody(t)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},b.call(w.prototype),b.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},E.error=function(){var t=new E(null,{status:0,statusText:""});return t.type="error",t};var A=[301,302,303,307,308];E.redirect=function(t,e){if(-1===A.indexOf(e))throw new RangeError("Invalid status code");return new E(null,{status:e,headers:{location:t}})},a.DOMException=self.DOMException;try{new a.DOMException}catch(t){a.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function _(i,s){return new Promise(function(r,t){var e=new w(i,s);if(e.signal&&e.signal.aborted)return t(new a.DOMException("Aborted","AbortError"));var o=new XMLHttpRequest;function n(){o.abort()}o.onload=function(){var t={status:o.status,statusText:o.statusText,headers:function(t){var n=new d;return t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var e=t.split(":"),r=e.shift().trim();if(r){var o=e.join(":").trim();n.append(r,o)}}),n}(o.getAllResponseHeaders()||"")};t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL");var e="response"in o?o.response:o.responseText;r(new E(e,t))},o.onerror=function(){t(new TypeError("Network request failed"))},o.ontimeout=function(){t(new TypeError("Network request failed"))},o.onabort=function(){t(new a.DOMException("Aborted","AbortError"))},o.open(e.method,e.url,!0),"include"===e.credentials?o.withCredentials=!0:"omit"===e.credentials&&(o.withCredentials=!1),"responseType"in o&&h&&(o.responseType="blob"),e.headers.forEach(function(t,e){o.setRequestHeader(e,t)}),e.signal&&(e.signal.addEventListener("abort",n),o.onreadystatechange=function(){4===o.readyState&&e.signal.removeEventListener("abort",n)}),o.send(void 0===e._bodyInit?null:e._bodyInit)})}_.polyfill=!0,self.fetch||(self.fetch=_,self.Headers=d,self.Request=w,self.Response=E),a.Headers=d,a.Request=w,a.Response=E,a.fetch=_,Object.defineProperty(a,"__esModule",{value:!0})});
/*lory*/
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}("undefined"!=typeof self?self:this,function(){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=7)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){function n(e,t){var n=W,i=n.classNameActiveSlide;e.forEach(function(e,t){e.classList.contains(i)&&e.classList.remove(i)}),e[t].classList.add(i)}function i(e){var t=W,n=t.infinite,i=e.slice(0,n),o=e.slice(e.length-n,e.length);return i.forEach(function(e){var t=e.cloneNode(!0);k.appendChild(t)}),o.reverse().forEach(function(e){var t=e.cloneNode(!0);k.insertBefore(t,k.firstChild)}),k.addEventListener(T.transitionEnd,x),m.call(k.children)}function o(t,n,i){(0,u.default)(e,t+".lory."+n,i)}function s(e,t,n){var i=k&&k.style;i&&(i[T.transition+"TimingFunction"]=n,i[T.transition+"Duration"]=t+"ms",i[T.transform]="translateX("+e+"px)")}function d(e){return e.getBoundingClientRect().width||e.offsetWidth}function c(e,t){var i=W,r=i.slideSpeed,a=i.slidesToScroll,d=i.infinite,l=i.rewind,c=i.rewindPrev,u=i.rewindSpeed,f=i.ease,v=i.classNameActiveSlide,b=i.classNameDisabledNextCtrl,h=void 0===b?"disabled":b,p=i.classNameDisabledPrevCtrl,L=void 0===p?"disabled":p,E=r,y=void 0,x=t?z+1:z-1,w=Math.round(S-(W.centerMode.enableCenterMode?P[0].clientWidth/2:_));o("before","slide",{index:z,nextSlide:x}),A&&A.classList.remove(L),B&&B.classList.remove(h),"number"!=typeof e&&(e=t?d&&z+2*d!==P.length?z+(d-z%d):z+a:d&&z%d!=0?z-z%d:z-a),e=Math.min(Math.max(e,0),P.length-1),d&&void 0===t&&(e+=d),c&&0===Math.abs(j.x)&&!1===t&&(e=P.length-1,E=u),W.centerMode.enableCenterMode?(y=Math.max(-1*P[e].offsetLeft+_/2-P[e].clientWidth/2,-1*w),y=y>=0&&W.centerMode.firstSlideLeftAlign?0:y):y=Math.min(Math.max(-1*P[e].offsetLeft,-1*w),0),l&&Math.abs(j.x)===w&&t&&(y=0,e=0,E=u),s(y,E,f),j.x=y,P[e].offsetLeft<=w&&(z=e),!d||e!==P.length-d&&e!==P.length-P.length%d&&0!==e||(t&&(z=d),t||(z=P.length-2*d),j.x=-1*P[z].offsetLeft,D=function(){s(-1*P[z].offsetLeft,0,void 0)}),v&&n(m.call(P),z),!A||d||c||0!==e||A.classList.add(L),!B||d||l||e+1!==P.length||B.classList.add(h),o("after","slide",{currentSlide:z})}function f(){o("before","init"),T=(0,a.default)(),W=r({},v.default,t);var s=W,d=s.classNameFrame,l=s.classNameSlideContainer,c=s.classNamePrevCtrl,u=s.classNameNextCtrl,f=s.classNameDisabledNextCtrl,h=void 0===f?"disabled":f,p=s.classNameDisabledPrevCtrl,y=void 0===p?"disabled":p,x=s.enableMouseEvents,M=s.classNameActiveSlide,g=s.initialIndex;z=g,O=e.getElementsByClassName(d)[0],k=O.getElementsByClassName(l)[0],A=e.getElementsByClassName(c)[0],B=e.getElementsByClassName(u)[0],j={x:k.offsetLeft,y:k.offsetTop},A.classList.remove(y),B.classList.remove(h),W.infinite?P=i(m.call(k.children)):(P=m.call(k.children),A&&!W.rewindPrev&&0===z&&A.classList.add(y),B&&1===P.length&&!W.rewind&&B.classList.add(h)),b(),M&&n(P,z),A&&B&&(A.addEventListener("click",L),B.addEventListener("click",E)),O.addEventListener("touchstart",w,F),x&&(O.addEventListener("mousedown",w),O.addEventListener("click",C)),W.window.addEventListener("resize",N),o("after","init")}function b(){var e=W,t=e.infinite,i=e.ease,o=e.rewindSpeed,r=e.rewindOnResize,a=e.classNameActiveSlide,l=e.initialIndex;S=d(k),_=d(O),_===S&&(S=P.reduce(function(e,t){return e+d(t)},0)),r?z=l:(i=null,o=0),t?(s(-1*P[z+t].offsetLeft,0,null),z+=t,j.x=-1*P[z].offsetLeft):W.centerMode.enableCenterMode&&!W.centerMode.firstSlideLeftAlign?(s(-1*P[z].offsetLeft+_/2-P[z].clientWidth/2,o,i),j.x=-1*P[z].offsetLeft+_/2-P[z].clientWidth/2):(s(-1*P[z].offsetLeft,o,i),j.x=-1*P[z].offsetLeft),a&&n(m.call(P),z)}function h(e){c(e)}function p(){return z-W.infinite||0}function L(){c(!1,!1)}function E(){c(!1,!0)}function y(){o("before","destroy"),k.removeEventListener(T.transitionEnd,x),O.removeEventListener("touchstart",w,F),O.removeEventListener("touchmove",M,F),O.removeEventListener("touchend",g),O.removeEventListener("mousemove",M),O.removeEventListener("mousedown",w),O.removeEventListener("mouseup",g),O.removeEventListener("mouseleave",g),O.removeEventListener("click",C),W.window.removeEventListener("resize",N),A&&A.removeEventListener("click",L),B&&B.removeEventListener("click",E),W.infinite&&Array.apply(null,Array(W.infinite)).forEach(function(){k.removeChild(k.firstChild),k.removeChild(k.lastChild)}),o("after","destroy")}function x(){D&&(D(),D=void 0)}function w(e){var t=W,n=t.enableMouseEvents,i=e.touches?e.touches[0]:e;n&&(O.addEventListener("mousemove",M),O.addEventListener("mouseup",g),O.addEventListener("mouseleave",g)),O.addEventListener("touchmove",M,F),O.addEventListener("touchend",g);var r=i.pageX,s=i.pageY;I={x:r,y:s,time:Date.now()},R=void 0,X={},o("on","touchstart",{event:e})}function M(e){var t=e.touches?e.touches[0]:e,n=t.pageX,i=t.pageY;X={x:n-I.x,y:i-I.y},void 0===R&&(R=!!(R||Math.abs(X.x)<Math.abs(X.y))),!R&&I&&s(j.x+X.x,0,null),o("on","touchmove",{event:e})}function g(e){var t=I?Date.now()-I.time:void 0,n=Number(t)<300&&Math.abs(X.x)>25||Math.abs(X.x)>_/3,i=!z&&X.x>0||z===P.length-1&&X.x<0,r=X.x<0;R||(n&&!i?c(!1,r):s(j.x,W.snapBackSpeed)),I=void 0,O.removeEventListener("touchmove",M),O.removeEventListener("touchend",g),O.removeEventListener("mousemove",M),O.removeEventListener("mouseup",g),O.removeEventListener("mouseleave",g),o("on","touchend",{event:e})}function C(e){X.x&&e.preventDefault()}function N(e){_!==d(O)&&(b(),o("on","resize",{event:e}))}var j=void 0,S=void 0,_=void 0,P=void 0,O=void 0,k=void 0,A=void 0,B=void 0,T=void 0,D=void 0,z=0,W={},F=!!(0,l.default)()&&{passive:!0};"undefined"!=typeof jQuery&&e instanceof jQuery&&(e=e[0]);var I=void 0,X=void 0,R=void 0;return f(),{setup:f,reset:b,slideTo:h,returnIndex:p,prev:L,next:E,destroy:y}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};t.lory=o;var s=n(1),a=i(s),d=n(2),l=i(d),c=n(3),u=i(c),f=n(6),v=i(f),m=Array.prototype.slice},function(e,t,n){"use strict";function i(){var e=void 0,t=void 0,n=void 0;return function(){var i=document.createElement("_"),o=i.style,r=void 0;""===o[r="webkitTransition"]&&(n="webkitTransitionEnd",t=r),""===o[r="transition"]&&(n="transitionend",t=r),""===o[r="webkitTransform"]&&(e=r),""===o[r="msTransform"]&&(e=r),""===o[r="transform"]&&(e=r),document.body.insertBefore(i,null),o[e]="translateX(0)",document.body.removeChild(i)}(),{transform:e,transition:t,transitionEnd:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){"use strict";function i(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch(e){}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){"use strict";function i(e,t,n){var i=new r.default(t,{bubbles:!0,cancelable:!0,detail:n});e.dispatchEvent(i)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(4),r=function(e){return e&&e.__esModule?e:{default:e}}(o)},function(e,t,n){(function(t){var n=t.CustomEvent;e.exports=function(){try{var e=new n("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?n:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}}).call(t,n(5))},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={slidesToScroll:1,slideSpeed:300,rewindSpeed:600,snapBackSpeed:200,ease:"ease",rewind:!1,infinite:!1,initialIndex:0,classNameFrame:"js_frame",classNameSlideContainer:"js_slides",classNamePrevCtrl:"js_prev",classNameNextCtrl:"js_next",classNameActiveSlide:"active",enableMouseEvents:!1,window:"undefined"!=typeof window?window:null,rewindOnResize:!0,centerMode:{enableCenterMode:!1,firstSlideLeftAlign:!1}}},function(e,t,n){e.exports=n(0)}])});
</script>
<script>
"use strict";
function makeStr(num) {
let text = "";
let possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
for (let i = 0; i < num; i++) {
text += possible.charAt(Math.floor(Math.random() * possible.length));
}
return text;
}
function toggleClass(s,n) {
let elements = document.querySelectorAll(s);
elements.forEach(element => {
element.classList.toggle(n);
});
}
function switchSource(e) {
if(e.target && e.target.nodeName === "LI") {
sourceReg = e.target.classList[0].substring(7);
updateAside();
programId = undefined;
}
}
function switchCategory(e) {
if(e.target && e.target.nodeName === "LI") {
let catValue = e.target.dataset.value;
switch (catValue) {
case "0":
case "1":
if(catValue === "0") {
e.target.textContent = '开灯';
e.target.dataset.value = 1;
localStorage.setItem('dark', 1);
} else {
e.target.textContent = '关灯';
e.target.dataset.value = 0;
localStorage.setItem('dark', 0);
}
toggleClass('li','white');
toggleClass('button','white');
toggleClass('input','white');
toggleClass('a','white');
toggleClass('body','bgBlack');
toggleClass('input','bgBlack');
toggleClass('footer','hidden');
break;
default:
const selected = document.querySelector('.borderRed');
if(selected) selected.classList.remove('borderRed');
if (e.target.dataset.source) {
sourceReg = e.target.dataset.source;
programId = catValue;
playVideo();
const selected = document.querySelector('.selected');
if(selected) selected.classList.remove('selected');
e.target.classList.add('selected');
} else {
e.target.classList.add('borderRed');
const mylist = document.querySelector('.'+catValue);
let siblings = mylist.parentNode.childNodes;
siblings.forEach(sibling => {
if(sibling.nodeName === "UL") {
sibling.classList.add('hidden');
}
});
mylist.classList.remove('hidden');
}
break;
}
}
}
function switchChannel(e) {
if(e.target) {
if (e.target.nodeName === "LI") {
sourceReg = e.target.dataset.source;
programId = e.target.dataset.id;
rate = e.target.dataset.rate;
playVideo();
const selected = document.querySelector('.selected');
if(selected) selected.classList.remove('selected');
e.target.classList.add('selected');
} else if (e.target.nodeName === "SUB") {
sourceReg = e.target.parentNode.dataset.source;
programId = e.target.parentNode.dataset.id;
playVideo();
const selected = document.querySelector('.selected');
if(selected) selected.classList.remove('selected');
e.target.parentNode.classList.add('selected');
}
}
}
function videojsLoad() {
if (videoField.hasChildNodes()) {
videojs('video').dispose();
}
let contentType = hlsVideoUrl.indexOf('.flv') === -1 ? 'application/vnd.apple.mpegurl' : 'video/x-flv';
const video = document.createElement('video');
video.id = 'video';
video.className = 'video-js';
const noVideojs = document.createElement('p');
noVideojs.className = 'vjs-no-js';
const noVideojsText = document.createTextNode('需启用 JavaScript,或使用更新的浏览器');
noVideojs.appendChild(noVideojsText);
video.appendChild(noVideojs);
videoField.appendChild(video);
const player = videojs('video',{
liveui: liveui,
autoplay: 'true',
preload: 'auto',
playsinline: true,
textTrackSettings: false,
controls: true,
fluid: true,
responsive: true
});
player.src({
src: hlsVideoUrl,
type: contentType,
overrideNative: true
});
player.ready(function() {
let promise = player.play();
if (promise !== undefined) {
promise.then(function() {
// Autoplay started!
}).catch(function() {
// Autoplay was prevented.
});
}
});
player.on('error', function(e) {
let time = this.currentTime();
if (this.error().code === 2) {
alertInfo('频道发生错误!',10);
this.error(null).pause().load().currentTime(time).play();
} else if (this.error().code === 4) {
if (hlsVideoUrl.indexOf('playtype=lookback') !== -1) {
if (rate === 'org') {
rate = 'hd';
playBack(sourceReg);
} else if (rate === 'hd') {
rate = 'ld';
playBack(sourceReg);
} else if (rate === 'ld') {
rate = 'sd';
playBack(sourceReg);
} else {
alertInfo('录像还未准备好!',10);
}
} else if (hlsVideoUrl.indexOf('playtype=live') !== -1) {
if (rate === 'org') {
rate = 'hd';
playVideo();
} else if (rate === 'hd') {
rate = 'ld';
playVideo();
} else if (rate === 'ld') {
rate = 'sd';
playVideo();
} else {
alertInfo('频道不可用!',10);
}
} else {
alertInfo('频道不可用!',10);
}
/*
if (programId) {
localStorage.removeItem(sourceReg+'_acc');
localStorage.removeItem(sourceReg+'_pwd');
localStorage.removeItem(sourceReg+'_token');
localStorage.removeItem(sourceReg+'_verify_code');
}
*/
} else {
alertInfo('无法连接直播源!',10);
}
});
}
function playVideo() {
if(!programId) {
let keyArr = Object.keys(sourcesJsonParsed);
let index;
while ((index = keyArr.pop()) !== undefined) {
if (sourcesJsonParsed[index].hasOwnProperty('channels') && sourcesJsonParsed[index].channels[0] && sourcesJsonParsed[index].channels[0].hasOwnProperty('url')) {
hlsVideoUrl = sourcesJsonParsed[index].channels[0].url;
videojsLoad();
if (sourcesJsonParsed[index].hasOwnProperty('overlay')) {
videoOverlay(sourcesJsonParsed[index].overlay,sourcesJsonParsed[index].channels[0]);
}
showSchedule(sourcesJsonParsed[index].channels[0].schedule);
resetSourceReg();
break;
}
}
} else if (jsonChannels[sourceReg]) {
hlsVideoUrl = jsonChannels[sourceReg][programId]['url'];
videojsLoad();
if (jsonChannels[sourceReg].hasOwnProperty('overlay')) {
videoOverlay(jsonChannels[sourceReg].overlay,jsonChannels[sourceReg][programId]);
}
showSchedule(jsonChannels[sourceReg][programId].schedule);
resetSourceReg();
} else if (!sourcesJsonParsed.hasOwnProperty(sourceReg) || !sourcesJsonParsed[sourceReg].hasOwnProperty('channels')) {
deleteSchedule();
alertInfo('频道不可用!');
resetSourceReg();
} else if (!sourcesJsonParsed[sourceReg].hasOwnProperty('play_url')) {
sourcesJsonParsed[sourceReg].channels.forEach(channel => {
if (channel.chnl_id === programId) {
hlsVideoUrl = channel.url;
videojsLoad();
if (sourcesJsonParsed[sourceReg].hasOwnProperty('overlay')) {
videoOverlay(sourcesJsonParsed[sourceReg].overlay,channel);
}
showSchedule(channel.schedule);
resetSourceReg();
}
});
} else if (localStorage.getItem(sourceReg+'_token')) {
if (sourcesJsonParsed[sourceReg].hasOwnProperty('auth_info_url') && sourcesJsonParsed[sourceReg].hasOwnProperty('auth_verify_url')) {
reqAuth();
} else {
if (localStorage.getItem(sourceReg+'_verify_code')) {
hlsVideoUrl = sourcesJsonParsed[sourceReg].play_url+'?playtype=live&protocol=hls&accesstoken='+localStorage.getItem(sourceReg+'_token')+'&playtoken=ABCDEFGH&verifycode='+localStorage.getItem(sourceReg+'_verify_code')+'&rate='+rate+'&programid='+programId+'.m3u8';
} else {
hlsVideoUrl = sourcesJsonParsed[sourceReg].play_url+'?playtype=live&protocol=hls&accesstoken='+localStorage.getItem(sourceReg+'_token')+'&playtoken=ABCDEFGH&rate='+rate+'&programid='+programId+'.m3u8';
}
videojsLoad();
showSchedule();
updateAside();
}
} else {
deleteSchedule();
alertInfo(sourcesJsonParsed[sourceReg].desc+'直播源未注册或登录!',5);
updateAside();
}
}
function videoOverlay(sourceOverlay,channel) {
let overlays = [],channelOverlay,channelOverlayArr = [];
if (channel.hasOwnProperty('overlay') && channel.overlay.length > 0) {
channelOverlay = channel.overlay;
channelOverlayArr = channelOverlay.split(',');
}
sourceOverlay.forEach((sourceItem,sourceIndex) => {
let overlayInfo = [];
if (sourceItem.hasOwnProperty('force') && sourceItem.force === 1) {
if (sourceItem.hasOwnProperty('switch') && sourceItem.switch === 'on') {
overlays.push({class:'overlay'+sourceIndex.toString(),content:'',align:'center',start:'ready'});
overlayInfo.push(sourceItem.height,sourceItem.width,sourceItem.margin_left,sourceItem.margin_top,sourceItem.height_fullscreen,sourceItem.width_fullscreen,sourceItem.margin_left_fullscreen,sourceItem.margin_top_fullscreen);
overlaysInfo[sourceIndex] = overlayInfo;
}
} else if (channelOverlayArr.length > sourceIndex) {
let channelOverlayIndex = channelOverlayArr[sourceIndex];
if ((channelOverlayIndex === 'on' && sourceItem.reverse === 0) || (channelOverlayIndex === 'off' && sourceItem.reverse === 1)) {
overlays.push({class:'overlay'+sourceIndex.toString(),content:'',align:'center',start:'ready'});
overlayInfo.push(sourceItem.height,sourceItem.width,sourceItem.margin_left,sourceItem.margin_top,sourceItem.height_fullscreen,sourceItem.width_fullscreen,sourceItem.margin_left_fullscreen,sourceItem.margin_top_fullscreen);
overlaysInfo[sourceIndex] = overlayInfo;
} else if (channelOverlayIndex.indexOf(':') !== -1) {
let channelOverlayIndexArr = channelOverlayIndex.split(':');
if ((sourceItem.reverse === 0 && channelOverlayIndexArr[0] === 'on') || (sourceItem.reverse === 1 && channelOverlayIndexArr[0] === 'off')) {
overlays.push({class:'overlay'+sourceIndex.toString(),content:'',align:'center',start:'ready'});
channelOverlayIndexArr.shift();
overlaysInfo[sourceIndex] = channelOverlayIndexArr;
}
}
}
});
if (overlays.length > 0) {
videoField.firstChild.classList.add('vjs-16-9');
videojs('video').overlay({
debug: false,
overlays: overlays
});
for (let index = 0; index < overlays.length; index++) {
const info = overlaysInfo[index];
const overlayIndex = document.querySelector('.overlay'+index);
overlayIndex.setAttribute('style', 'height:' + info[0] +'%; width: ' + info[1] + '%; margin-left: ' + info[2] + '%; margin-top: ' + info[3] + '%;');
}
}
}
function setOverlayFullscreen() {
let width = window.screen.width * window.devicePixelRatio;
let height = window.screen.height * window.devicePixelRatio;
let videoWidth,videoHeight,newWidth,newHeight,marginLeft,marginTop;
let videoWidthRes = videojs('video').videoWidth();
let videoHeightRes = videojs('video').videoHeight();
if (width > height && width / height !== 1.6) {
videoHeight = height;
videoWidth = videoHeight * videoWidthRes / videoHeightRes;
} else {
videoWidth = width;
videoHeight = videoWidth * videoHeightRes / videoWidthRes;
}
for (let index = 0; index < Object.keys(overlaysInfo).length; index++) {
const info = overlaysInfo[index];
const overlayIndex = document.querySelector('.overlay'+index);
if (overlayIndex) {
if (document.fullscreenElement) {
newHeight = Math.floor(videoHeight * info[4] / 100 / window.devicePixelRatio);
newWidth = Math.floor(videoWidth * info[5] / 100 / window.devicePixelRatio);
marginLeft = Math.floor(videoWidth * info[6] / 100 / window.devicePixelRatio);
marginTop = Math.floor(videoHeight * info[7] / 100 / window.devicePixelRatio);
overlayIndex.setAttribute('style', 'width:' + newWidth +'px; height: ' + newHeight + 'px; margin-left: ' + marginLeft + 'px; margin-top: ' + marginTop + 'px;');
} else {
overlayIndex.setAttribute('style', 'height:' + info[0] +'%; width: ' + info[1] + '%; margin-left: ' + info[2] + '%; margin-top: ' + info[3] + '%;');
}
}
}
}
function timeoutPromise(ms, promise) {
return new Promise((resolve, reject) => {
const timeoutId = setTimeout(() => {
reject(new Error('超时'));
}, ms);
promise.then(
(res) => {
clearTimeout(timeoutId);
resolve(res);
},
(err) => {
clearTimeout(timeoutId);
reject(err);
}
);
}).catch(console.log);
}
function reqData(url, data = '', method = 'GET') {
return new Promise((resolve, reject) => {
if (method === 'GET') {
fetch(url + data, {
method: method,
mode: "cors",
cache: "no-cache",
credentials: "omit",
referrer: "",
}).then(response => {
resolve(response.json());
}).catch(err => {reject(err);});
} else {
fetch(url, {
method: method,
mode: "cors",
cache: "no-cache",
credentials: "omit",
referrer: "",
body: JSON.stringify(data),
}).then(response => {
resolve(response.json());
}).catch(err => {reject(err);});
}
}).catch(err => {
console.log('连接 ' + url + ' 发生错误:', err.message);
});
}
function alertInfo(text,delay=3) {
alertField.textContent = text;
setTimeout(function() {
if (alertField.textContent === text) {
alertField.textContent = '';
}
}, delay*1000);
}
function uniqueName() {
if (sourcesJsonParsed[sourceReg].hasOwnProperty('unique_url')) {
reqData(sourcesJsonParsed[sourceReg].unique_url,'?accounttype='+sourcesJsonParsed[sourceReg].acc_type_reg+'&username='+regAccField.value)
.then(response => {
if (response.ret !== 0) {
alertInfo('用户名已存在,请重新输入!',3);
}
});
}
}
function regImg() {
if (sourcesJsonParsed[sourceReg].hasOwnProperty('img_url')) {
let tokenUrl,imgUrl;
tokenUrl = sourcesJsonParsed[sourceReg].token_url;
imgUrl = sourcesJsonParsed[sourceReg].img_url;
if (sourcesJsonParsed[sourceReg].hasOwnProperty('refresh_token_url')) {
let deviceno = makeStr(8)+"-"+makeStr(4)+"-"+makeStr(4)+"-"+makeStr(4)+"-"+makeStr(12);
deviceno = deviceno+md5(deviceno).substring(7, 8);
timeoutPromise(3000,reqData(tokenUrl,{"role":"guest","deviceno":deviceno,"deviceType":"yuj"},'POST'))
.then(response => {
if (response.ret !== 0) {
alertInfo('验证码请求错误!');
} else {
reqData(sourcesJsonParsed[sourceReg].refresh_token_url,{"accessToken":response.accessToken,"refreshToken":response.refreshToken},'POST')
.then(response => {
if (response.ret !== 0) {
alertInfo('验证码请求错误!');
} else {
reqData(imgUrl,'?accesstoken='+response.accessToken)
.then(response => {
const newImage = document.createElement('img');
newImage.src = response.image.replace('\\','/');
regImgField.innerHTML = newImage.outerHTML;
regImgIdField.value = response.picid;
});
}
});
}
}).catch(err => {
alertInfo('无法连接'+sourcesJsonParsed[sourceReg].desc+'直播源!', 10);
console.log('请求 '+tokenUrl+' 发生错误:', err.message);
});
} else {
timeoutPromise(3000,reqData(tokenUrl,{"usagescen":1},'POST'))
.then(response => {
if (response.ret !== 0) {
alertInfo('验证码请求错误!');
} else {
reqData(imgUrl,'?accesstoken='+response.access_token)
.then(response => {
const newImage = document.createElement('img');
newImage.src = response.image.replace('\\','/');
regImgField.innerHTML = newImage.outerHTML;
regImgIdField.value = response.picid;
});
}
}).catch(err => {
alertInfo('无法连接'+sourcesJsonParsed[sourceReg].desc+'直播源!', 10);
console.log('请求 '+tokenUrl+' 发生错误:', err.message);
});
}
}
}
function reqSms() {
if (sourcesJsonParsed[sourceReg].hasOwnProperty('sms_url')) {
let regAcc = regAccField.value;
let regImgInput = regImgInputField.value;
let regImgId = regImgIdField.value;
reqData(sourcesJsonParsed[sourceReg].sms_url,'?pincode='+regImgInput+'&picid='+regImgId+'&verifytype=3&account='+regAcc+'&accounttype=1')
.then(response => {
if (response.ret !== 0) {
alertInfo('验证码或其它错误!请重新输入!');
} else {
alertInfo('短信已发送!',5);
}
});
}
}
function reqReg() {
let acc = regAccField.value;
acc = acc.toString();
let pwd = regPwdField.value;
let smsCode = regSmsField.value;
if (!sourcesJsonParsed[sourceReg].hasOwnProperty('img_url')) {
reqData(sourcesJsonParsed[sourceReg].reg_url,'?username='+acc+'&iconid=1&pwd='+md5(pwd)+'&birthday=1970-1-1&type=1&accounttype='+sourcesJsonParsed[sourceReg].acc_type_reg)
.then(response => {
if (response.ret !== 0) {
alertInfo(sourcesJsonParsed[sourceReg].desc + '直播源注册失败,请重试!用户名不能是中文!');
} else {
formToggle.click();
loginAccField.value = acc;
loginPwdField.value = pwd;
regAccField.value = '';
regPwdField.value = '';
regImgInputField.value = '';
regSmsField.value = '';
alertInfo('注册成功!');
reqLogin();
}
});
} else {
reqData(sourcesJsonParsed[sourceReg].verify_url,'?verifycode='+smsCode+'&verifytype=3&username='+acc+'&account='+acc)
.then(response => {
if (response.ret === 0) {
let user = {};
user.account = acc;
let deviceno = makeStr(8)+"-"+makeStr(4)+"-"+makeStr(4)+"-"+makeStr(4)+"-"+makeStr(12);
user.deviceno = deviceno+md5(deviceno).substring(7, 8);
user.devicetype = 'yuj';
user.code = response.code;
let timestamp = Date.now();
user.signature = md5(acc+'|'+md5(pwd)+'|'+user.deviceno+'|'+user.devicetype+'|'+timestamp);
user.birthday = '1970-1-1';
user.username = acc;
user.type = 1;
user.timestamp = timestamp.toString();
user.pwd = md5(pwd);
user.accounttype = sourcesJsonParsed[sourceReg].acc_type_reg;
reqData(sourcesJsonParsed[sourceReg].reg_url,user,'POST')
.then(response => {
if (response.ret === 0) {
formToggle.click();
loginAccField.value = acc;
loginPwdField.value = pwd;
regAccField.value = '';
regPwdField.value = '';
regImgInputField.value = '';
regSmsField.value = '';