lx-video-player 1.1.4 → 1.1.6
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var A=document.createElement("style");A.appendChild(document.createTextNode('@charset "UTF-8";.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-modal-dialog,.vjs-button>.vjs-icon-placeholder:before,.vjs-modal-dialog .vjs-modal-dialog-content{position:absolute;top:0;left:0;width:100%;height:100%}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.vjs-button>.vjs-icon-placeholder:before{text-align:center}@font-face{font-family:VideoJS;src:url(data:application/vnd.ms-fontobject;base64,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dHRwOi8vZm9udGVsbG8uY29tAFYAaQBkAGUAbwBKAFMAUgBlAGcAdQBsAGEAcgBWAGkAZABlAG8ASgBTAFYAaQBkAGUAbwBKAFMAVgBlAHIAcwBpAG8AbgAgADEALgAwAFYAaQBkAGUAbwBKAFMARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAAAAgAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhAQIBAwEEAQUBBgEHAQgBCQEKAQsBDAENAQ4BDwEQAREBEgETARQBFQEWARcBGAEZARoBGwEcAR0BHgEfASABIQEiAARwbGF5C3BsYXktY2lyY2xlBXBhdXNlC3ZvbHVtZS1tdXRlCnZvbHVtZS1sb3cKdm9sdW1lLW1pZAt2b2x1bWUtaGlnaBBmdWxsc2NyZWVuLWVudGVyD2Z1bGxzY3JlZW4tZXhpdAZzcXVhcmUHc3Bpbm5lcglzdWJ0aXRsZXMIY2FwdGlvbnMIY2hhcHRlcnMFc2hhcmUDY29nBmNpcmNsZQ5jaXJjbGUtb3V0bGluZRNjaXJjbGUtaW5uZXItY2lyY2xlAmhkBmNhbmNlbAZyZXBsYXkIZmFjZWJvb2sFZ3BsdXMIbGlua2VkaW4HdHdpdHRlcgZ0dW1ibHIJcGludGVyZXN0EWF1ZGlvLWRlc2NyaXB0aW9uBWF1ZGlvCW5leHQtaXRlbQ1wcmV2aW91cy1pdGVtAAAAAA==) format("eot")}@font-face{font-family:VideoJS;src:url(data:application/font-woff;charset=utf-8;base64,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) format("woff"),url(data:application/x-font-ttf;charset=utf-8;base64,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AG8AbgB0AGUAbABsAG8AIABwAHIAbwBqAGUAYwB0AC4AaAB0AHQAcAA6AC8ALwBmAG8AbgB0AGUAbABsAG8ALgBjAG8AbQAAAAIAAAAAAAAAEQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIQECAQMBBAEFAQYBBwEIAQkBCgELAQwBDQEOAQ8BEAERARIBEwEUARUBFgEXARgBGQEaARsBHAEdAR4BHwEgASEBIgAEcGxheQtwbGF5LWNpcmNsZQVwYXVzZQt2b2x1bWUtbXV0ZQp2b2x1bWUtbG93CnZvbHVtZS1taWQLdm9sdW1lLWhpZ2gQZnVsbHNjcmVlbi1lbnRlcg9mdWxsc2NyZWVuLWV4aXQGc3F1YXJlB3NwaW5uZXIJc3VidGl0bGVzCGNhcHRpb25zCGNoYXB0ZXJzBXNoYXJlA2NvZwZjaXJjbGUOY2lyY2xlLW91dGxpbmUTY2lyY2xlLWlubmVyLWNpcmNsZQJoZAZjYW5jZWwGcmVwbGF5CGZhY2Vib29rBWdwbHVzCGxpbmtlZGluB3R3aXR0ZXIGdHVtYmxyCXBpbnRlcmVzdBFhdWRpby1kZXNjcmlwdGlvbgVhdWRpbwluZXh0LWl0ZW0NcHJldmlvdXMtaXRlbQAAAAA=) format("truetype");font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder,.vjs-icon-play{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder:before,.vjs-icon-play:before{content:""}.vjs-icon-play-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-play-circle:before{content:""}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder,.vjs-icon-pause{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before,.vjs-icon-pause:before{content:""}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder,.vjs-icon-volume-mute{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before,.vjs-icon-volume-mute:before{content:""}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder,.vjs-icon-volume-low{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before,.vjs-icon-volume-low:before{content:""}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder,.vjs-icon-volume-mid{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before,.vjs-icon-volume-mid:before{content:""}.video-js .vjs-mute-control .vjs-icon-placeholder,.vjs-icon-volume-high{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control .vjs-icon-placeholder:before,.vjs-icon-volume-high:before{content:""}.video-js .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-enter:before{content:""}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-exit:before{content:""}.vjs-icon-square{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-square:before{content:""}.vjs-icon-spinner{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-spinner:before{content:""}.video-js .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subtitles-button .vjs-icon-placeholder,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-subtitles{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subtitles-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-subtitles:before{content:""}.video-js .vjs-captions-button .vjs-icon-placeholder,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-captions{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-captions-button .vjs-icon-placeholder:before,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-captions:before{content:""}.video-js .vjs-chapters-button .vjs-icon-placeholder,.vjs-icon-chapters{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-chapters-button .vjs-icon-placeholder:before,.vjs-icon-chapters:before{content:""}.vjs-icon-share{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-share:before{content:""}.vjs-icon-cog{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cog:before{content:""}.video-js .vjs-play-progress,.video-js .vjs-volume-level,.vjs-icon-circle{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-progress:before,.video-js .vjs-volume-level:before,.vjs-icon-circle:before{content:""}.vjs-icon-circle-outline{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-outline:before{content:""}.vjs-icon-circle-inner-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-inner-circle:before{content:""}.vjs-icon-hd{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-hd:before{content:""}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder,.vjs-icon-cancel{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before,.vjs-icon-cancel:before{content:""}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder,.vjs-icon-replay{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before,.vjs-icon-replay:before{content:""}.vjs-icon-facebook{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-facebook:before{content:""}.vjs-icon-gplus{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-gplus:before{content:""}.vjs-icon-linkedin{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-linkedin:before{content:""}.vjs-icon-twitter{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-twitter:before{content:""}.vjs-icon-tumblr{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-tumblr:before{content:""}.vjs-icon-pinterest{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-pinterest:before{content:""}.video-js .vjs-descriptions-button .vjs-icon-placeholder,.vjs-icon-audio-description{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-descriptions-button .vjs-icon-placeholder:before,.vjs-icon-audio-description:before{content:""}.video-js .vjs-audio-button .vjs-icon-placeholder,.vjs-icon-audio{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-audio-button .vjs-icon-placeholder:before,.vjs-icon-audio:before{content:""}.vjs-icon-next-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-next-item:before{content:""}.vjs-icon-previous-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-previous-item:before{content:""}.video-js{display:block;vertical-align:top;box-sizing:border-box;color:#fff;background-color:#000;position:relative;padding:0;font-size:10px;line-height:1;font-weight:400;font-style:normal;font-family:Arial,Helvetica,sans-serif;word-break:initial}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js[tabindex="-1"]{outline:0}.video-js *,.video-js :after,.video-js :before{box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin:0}.video-js.vjs-16-9,.video-js.vjs-4-3,.video-js.vjs-fluid{width:100%;max-width:100%;height:0}.video-js.vjs-16-9{padding-top:56.25%}.video-js.vjs-4-3{padding-top:75%}.video-js.vjs-fill{width:100%;height:100%}.video-js .vjs-tech{position:absolute;top:0;left:0;width:100%;height:100%}body.vjs-full-window{padding:0;margin:0;height:100%;overflow-y:auto}.vjs-full-window .video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0}.video-js.vjs-fullscreen{width:100%!important;height:100%!important;padding-top:0!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-hidden{display:none!important}.vjs-disabled{opacity:.5;cursor:default}.video-js .vjs-offscreen{height:1px;left:-9999px;position:absolute;top:0;width:1px}.vjs-lock-showing{display:block!important;opacity:1;visibility:visible}.vjs-no-js{padding:20px;color:#fff;background-color:#000;font-size:18px;font-family:Arial,Helvetica,sans-serif;text-align:center;width:300px;height:150px;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#66a8cc}.video-js .vjs-big-play-button{font-size:3em;line-height:1.5em;height:1.5em;width:3em;display:block;position:absolute;top:10px;left:10px;padding:0;cursor:pointer;opacity:1;border:.06666em solid #fff;background-color:#2b333f;background-color:#2b333fb3;-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em;-webkit-transition:all .4s;-moz-transition:all .4s;-ms-transition:all .4s;-o-transition:all .4s;transition:all .4s}.vjs-big-play-centered .vjs-big-play-button{top:50%;left:50%;margin-top:-.75em;margin-left:-1.5em}.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{border-color:#fff;background-color:#73859f;background-color:#73859f80;-webkit-transition:all 0s;-moz-transition:all 0s;-ms-transition:all 0s;-o-transition:all 0s;transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-error .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-controls .vjs-big-play-button{display:none}.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause .vjs-big-play-button{display:block}.video-js button{background:0 0;border:none;color:inherit;display:inline-block;overflow:visible;font-size:inherit;line-height:inherit;text-transform:none;text-decoration:none;transition:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vjs-control .vjs-button{width:100%;height:100%}.video-js .vjs-control.vjs-close-button{cursor:pointer;height:3em;position:absolute;right:0;top:.5em;z-index:2}.video-js .vjs-modal-dialog{background:rgba(0,0,0,.8);background:-webkit-linear-gradient(-90deg,rgba(0,0,0,.8),rgba(255,255,255,0));background:linear-gradient(180deg,rgba(0,0,0,.8),rgba(255,255,255,0));overflow:auto;box-sizing:content-box}.video-js .vjs-modal-dialog>*{box-sizing:border-box}.vjs-modal-dialog .vjs-modal-dialog-content{font-size:1.2em;line-height:1.5;padding:20px 24px;z-index:1}.vjs-menu-button{cursor:pointer}.vjs-menu-button.vjs-disabled{cursor:default}.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu{display:none}.vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;font-family:Arial,Helvetica,sans-serif;overflow:auto;box-sizing:content-box}.vjs-menu .vjs-menu-content>*{box-sizing:border-box}.vjs-scrubbing .vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{list-style:none;margin:0;padding:.2em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.vjs-menu li.vjs-menu-item:focus,.vjs-menu li.vjs-menu-item:hover{background-color:#73859f;background-color:#73859f80}.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2b333f}.vjs-menu li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em;font-weight:700;cursor:default}.vjs-menu-button-popup .vjs-menu{display:none;position:absolute;bottom:0;width:10em;left:-3em;height:0;margin-bottom:1.5em;border-top-color:#2b333fb3}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2b333f;background-color:#2b333fb3;position:absolute;width:100%;bottom:1.5em;max-height:15em}.vjs-menu-button-popup .vjs-menu.vjs-lock-showing,.vjs-workinghover .vjs-menu-button-popup:hover .vjs-menu{display:block}.video-js .vjs-menu-button-inline{-webkit-transition:all .4s;-moz-transition:all .4s;-ms-transition:all .4s;-o-transition:all .4s;transition:all .4s;overflow:hidden}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline{width:12em}.vjs-menu-button-inline .vjs-menu{opacity:0;height:100%;width:auto;position:absolute;left:4em;top:0;padding:0;margin:0;-webkit-transition:all .4s;-moz-transition:all .4s;-ms-transition:all .4s;-o-transition:all .4s;transition:all .4s}.vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline:hover .vjs-menu{display:block;opacity:1}.vjs-no-flex .vjs-menu-button-inline .vjs-menu{display:block;opacity:1;position:relative;width:auto}.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:hover .vjs-menu{width:auto}.vjs-menu-button-inline .vjs-menu-content{width:auto;height:100%;margin:0;overflow:hidden}.video-js .vjs-control-bar{display:none;width:100%;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#2b333f;background-color:#2b333fb3}.vjs-has-started .vjs-control-bar{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;visibility:visible;opacity:1;-webkit-transition:visibility .1s,opacity .1s;-moz-transition:visibility .1s,opacity .1s;-ms-transition:visibility .1s,opacity .1s;-o-transition:visibility .1s,opacity .1s;transition:visibility .1s,opacity .1s}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:visible;opacity:0;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-ms-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.vjs-controls-disabled .vjs-control-bar,.vjs-error .vjs-control-bar,.vjs-using-native-controls .vjs-control-bar{display:none!important}.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible}.vjs-has-started.vjs-no-flex .vjs-control-bar{display:table}.video-js .vjs-control{position:relative;text-align:center;margin:0;padding:0;height:100%;width:4em;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none}.vjs-button>.vjs-icon-placeholder:before{font-size:1.8em;line-height:1.67}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js .vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-no-flex .vjs-control{display:table-cell;vertical-align:middle}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{cursor:pointer;-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;min-width:4em;overflow:hidden}.video-js .vjs-progress-control.disabled{cursor:default}.vjs-live .vjs-progress-control{display:none}.vjs-no-flex .vjs-progress-control{width:auto}.video-js .vjs-progress-holder{-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto;-webkit-transition:all .2s;-moz-transition:all .2s;-ms-transition:all .2s;-o-transition:all .2s;transition:all .2s;height:.3em}.video-js .vjs-progress-control .vjs-progress-holder{margin:0 10px}.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.666666666666666666em}.video-js .vjs-progress-control:hover .vjs-progress-holder.disabled{font-size:1em}.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div,.video-js .vjs-progress-holder .vjs-play-progress{position:absolute;display:block;height:100%;margin:0;padding:0;width:0;left:0;top:0}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{font-size:.9em;position:absolute;right:-.5em;top:-.333333333333333em;z-index:1}.video-js .vjs-load-progress{background:#bfc7d3;background:rgba(115,133,159,.5)}.video-js .vjs-load-progress div{background:#fff;background:rgba(115,133,159,.75)}.video-js .vjs-time-tooltip{background-color:#fff;background-color:#fffc;-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px;pointer-events:none;position:relative;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-progress-holder:focus .vjs-time-tooltip{display:none}.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip,.video-js .vjs-progress-control:hover .vjs-time-tooltip{display:block;font-size:.6em;visibility:visible}.video-js .vjs-progress-control.disabled:hover .vjs-time-tooltip{font-size:1em}.video-js .vjs-progress-control .vjs-mouse-display{display:none;position:absolute;width:1px;height:100%;background-color:#000;z-index:1}.vjs-no-flex .vjs-progress-control .vjs-mouse-display{z-index:0}.video-js .vjs-progress-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display{visibility:hidden;opacity:0;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-ms-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-time-tooltip{color:#fff;background-color:#000;background-color:#000c}.video-js .vjs-slider{position:relative;cursor:pointer;padding:0;margin:0 .45em;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#73859f;background-color:#73859f80}.video-js .vjs-slider.disabled{cursor:default}.video-js .vjs-slider:focus{text-shadow:0 0 1em #fff;-webkit-box-shadow:0 0 1em #fff;-moz-box-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js .vjs-mute-control{cursor:pointer;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none;padding-left:2em;padding-right:2em;padding-bottom:3em}.video-js .vjs-volume-control{cursor:pointer;margin-right:1em;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.video-js .vjs-volume-control.vjs-volume-horizontal{width:5em}.video-js .vjs-volume-panel .vjs-volume-control{visibility:visible;opacity:0;width:1px;height:1px;margin-left:-1px}.video-js .vjs-volume-panel.enable-volume-control{-webkit-transition:width 1s;-moz-transition:width 1s;-ms-transition:width 1s;-o-transition:width 1s;transition:width 1s}.video-js .vjs-volume-panel.enable-volume-control .vjs-mute-control:active~.vjs-volume-control,.video-js .vjs-volume-panel.enable-volume-control .vjs-mute-control:focus~.vjs-volume-control,.video-js .vjs-volume-panel.enable-volume-control .vjs-mute-control:hover~.vjs-volume-control,.video-js .vjs-volume-panel.enable-volume-control .vjs-volume-control.vjs-slider-active,.video-js .vjs-volume-panel.enable-volume-control .vjs-volume-control:active,.video-js .vjs-volume-panel.enable-volume-control .vjs-volume-control:focus,.video-js .vjs-volume-panel.enable-volume-control .vjs-volume-control:hover,.video-js .vjs-volume-panel.enable-volume-control:active .vjs-volume-control,.video-js .vjs-volume-panel.enable-volume-control:focus .vjs-volume-control,.video-js .vjs-volume-panel.enable-volume-control:hover .vjs-volume-control{visibility:visible;opacity:1;-webkit-transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s;-moz-transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s;-ms-transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s;-o-transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s;transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s}.video-js .vjs-volume-panel.enable-volume-control .vjs-mute-control:active~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.enable-volume-control .vjs-mute-control:focus~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.enable-volume-control .vjs-mute-control:hover~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.enable-volume-control .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal,.video-js .vjs-volume-panel.enable-volume-control .vjs-volume-control:active.vjs-volume-horizontal,.video-js .vjs-volume-panel.enable-volume-control .vjs-volume-control:focus.vjs-volume-horizontal,.video-js .vjs-volume-panel.enable-volume-control .vjs-volume-control:hover.vjs-volume-horizontal,.video-js .vjs-volume-panel.enable-volume-control:active .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.enable-volume-control:focus .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.enable-volume-control:hover .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;position:relative}.video-js .vjs-volume-panel.enable-volume-control.vjs-volume-panel-horizontal.vjs-slider-active,.video-js .vjs-volume-panel.enable-volume-control.vjs-volume-panel-horizontal:active,.video-js .vjs-volume-panel.enable-volume-control.vjs-volume-panel-horizontal:focus,.video-js .vjs-volume-panel.enable-volume-control.vjs-volume-panel-horizontal:hover{width:9em;-webkit-transition:width .1s;-moz-transition:width .1s;-ms-transition:width .1s;-o-transition:width .1s;transition:width .1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{height:8em;width:3em;left:-3.5em;-webkit-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s;-moz-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s;-ms-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s;-o-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{-webkit-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s;-moz-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s;-ms-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s;-o-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s}.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;visibility:visible;opacity:1;position:relative;-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.video-js.vjs-no-flex .vjs-volume-control.vjs-volume-vertical,.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{position:absolute;bottom:3em;left:.5em}.video-js .vjs-volume-panel{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{width:5em;height:.3em}.vjs-volume-bar.vjs-slider-vertical{width:.3em;height:5em;margin:1.35em auto}.video-js .vjs-volume-level{position:absolute;bottom:0;left:0;background-color:#fff}.video-js .vjs-volume-level:before{position:absolute;font-size:.9em}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{top:-.5em;left:-.3em}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{top:-.3em;right:-.5em}.video-js .vjs-volume-panel.vjs-volume-panel-vertical{width:4em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.video-js .vjs-volume-vertical{width:3em;height:8em;bottom:8em;background-color:#2b333f;background-color:#2b333fb3}.video-js .vjs-volume-horizontal .vjs-menu{left:-2em}.vjs-poster{display:inline-block;vertical-align:middle;background-repeat:no-repeat;background-position:50% 50%;background-size:contain;background-color:#000;cursor:pointer;margin:0;padding:0;position:absolute;top:0;right:0;bottom:0;left:0;height:100%}.vjs-poster img{display:block;vertical-align:middle;margin:0 auto;max-height:100%;padding:0;width:100%}.vjs-has-started .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster{display:block}.vjs-using-native-controls .vjs-poster{display:none}.video-js .vjs-live-control{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto;font-size:1em;line-height:3em}.vjs-no-flex .vjs-live-control{display:table-cell;width:auto;text-align:left}.video-js .vjs-time-control{-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none;font-size:1em;line-height:3em;min-width:2em;width:auto;padding-left:1em;padding-right:1em}.vjs-live .vjs-time-control,.video-js .vjs-current-time,.vjs-no-flex .vjs-current-time{display:none}.vjs-no-flex .vjs-remaining-time.vjs-time-control.vjs-control{width:0!important;white-space:nowrap}.video-js .vjs-duration,.vjs-no-flex .vjs-duration{display:none}.vjs-time-divider{display:none;line-height:3em}.vjs-live .vjs-time-divider{display:none}.video-js .vjs-play-control .vjs-icon-placeholder{cursor:pointer;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none}.vjs-text-track-display{position:absolute;bottom:3em;left:0;right:0;top:0;pointer-events:none}.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;text-align:center;margin-bottom:.1em;background-color:#000;background-color:#00000080}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}video::-webkit-media-text-track-display{-moz-transform:translateY(-3em);-ms-transform:translateY(-3em);-o-transform:translateY(-3em);-webkit-transform:translateY(-3em);transform:translateY(-3em)}.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display{-moz-transform:translateY(-1.5em);-ms-transform:translateY(-1.5em);-o-transform:translateY(-1.5em);-webkit-transform:translateY(-1.5em);transform:translateY(-1.5em)}.video-js .vjs-fullscreen-control{cursor:pointer;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none}.vjs-live .vjs-playback-rate{display:none}.vjs-playback-rate .vjs-playback-rate-value,.vjs-playback-rate>.vjs-menu-button{position:absolute;top:0;left:0;width:100%;height:100%}.vjs-playback-rate .vjs-playback-rate-value{pointer-events:none;font-size:1.5em;line-height:2;text-align:center}.vjs-playback-rate .vjs-menu{width:4em;left:0}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:1.4em;text-align:center}.vjs-error .vjs-error-display:before{color:#fff;content:"X";font-family:Arial,Helvetica,sans-serif;font-size:4em;left:0;line-height:1;margin-top:-.5em;position:absolute;text-shadow:.05em .05em .1em #000;text-align:center;top:50%;vertical-align:middle;width:100%}.vjs-error .vjs-error-check-network{color:#fff;text-decoration:none;background:red;padding:5px;display:inline-block;border-radius:5px}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;opacity:.85;text-align:left;border:6px solid rgba(43,51,63,.7);box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;border-radius:25px;visibility:hidden}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{display:block;animation:0s linear .3s forwards vjs-spinner-show}.vjs-loading-spinner:after,.vjs-loading-spinner:before{content:"";position:absolute;margin:-6px;box-sizing:inherit;width:inherit;height:inherit;border-radius:inherit;opacity:1;border:inherit;border-color:transparent;border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{-webkit-animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite;animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{border-top-color:#fff;-webkit-animation-delay:.44s;animation-delay:.44s}@keyframes vjs-spinner-show{to{visibility:visible}}@-webkit-keyframes vjs-spinner-show{to{visibility:visible}}@keyframes vjs-spinner-spin{to{transform:rotate(360deg)}}@-webkit-keyframes vjs-spinner-spin{to{-webkit-transform:rotate(360deg)}}@keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}to{border-top-color:#73859f}}@-webkit-keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}to{border-top-color:#73859f}}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder{position:absolute}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:"";font-size:1.5em;line-height:inherit}.video-js .vjs-audio-button .vjs-icon-placeholder:before{content:"";background:url(https://tcplayer-1306264703.cos.ap-nanjing.myqcloud.com/assets/audioTrack.png);background-size:contain;width:23px;height:15px;top:10px;left:15px}.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-custom-control-spacer{-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto}.video-js.vjs-layout-tiny:not(.vjs-fullscreen).vjs-no-flex .vjs-custom-control-spacer{width:auto}.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-audio-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-captions-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-chapters-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-current-time,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-descriptions-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-duration,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-mute-control,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-playback-rate,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-progress-control,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-remaining-time,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-subtitles-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-time-divider,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-volume-control{display:none}.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-audio-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-captions-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-chapters-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-current-time,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-descriptions-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-duration,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-mute-control,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-playback-rate,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-remaining-time,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-subtitles-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-time-divider,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-volume-control{display:none}.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-captions-button,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-chapters-button,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-current-time,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-descriptions-button,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-duration,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-mute-control,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-playback-rate,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-remaining-time,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-subtitles-button .vjs-audio-button,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-time-divider,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-volume-control{display:none}.vjs-modal-dialog.vjs-text-track-settings{background-color:#2b333f;background-color:#2b333fbf;color:#fff;height:70%}.vjs-text-track-settings .vjs-modal-dialog-content{display:table}.vjs-text-track-settings .vjs-track-settings-colors,.vjs-text-track-settings .vjs-track-settings-controls,.vjs-text-track-settings .vjs-track-settings-font{display:table-cell}.vjs-text-track-settings .vjs-track-settings-controls{text-align:right;vertical-align:bottom}.vjs-text-track-settings fieldset{margin:5px;padding:3px;border:none}.vjs-text-track-settings fieldset span{display:inline-block;margin-left:5px}.vjs-text-track-settings legend{color:#fff;margin:0 0 5px}.vjs-text-track-settings .vjs-label{position:absolute;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);display:block;margin:0 0 5px;padding:0;border:0;height:1px;width:1px;overflow:hidden}.vjs-track-settings-controls button:active,.vjs-track-settings-controls button:focus{outline-style:solid;outline-width:medium;background-image:linear-gradient(0deg,#fff 88%,#73859f 100%)}.vjs-track-settings-controls button:hover{color:#2b333fbf}.vjs-track-settings-controls button{background-color:#fff;background-image:linear-gradient(-180deg,#fff 88%,#73859f 100%);color:#2b333f;cursor:pointer;border-radius:2px}.vjs-track-settings-controls .vjs-default-button{margin-right:1em}@media print{.video-js>:not(.vjs-tech):not(.vjs-poster){visibility:hidden}}div.vjs-control.vjs-button.tcp-dot-component{width:100%}.vjs-progress-control:hover .tcp-dot-basic-style{display:inline}.tcp-dot-basic-style{position:absolute;width:8px;height:100%;margin-left:-4px;border-radius:5px;background-color:#fff0ff;z-index:10;display:none}.tcp-dot-basic-style:hover{background-color:#fff}.tcp-triangle{display:block;content:" ";position:absolute;bottom:-10px;left:5%;width:0;height:0;border-width:5px;border-style:solid;transform:translate(-50%);border-color:#000 transparent transparent}.tcp-triangle-both{display:block;content:" ";position:absolute;bottom:-10px;left:70px;width:0;height:0;border-width:5px;border-style:solid;transform:translate(-50%);border-color:#000 transparent transparent}.tcp-dot-image{width:100%;height:80px;background-repeat:no-repeat;background-size:100% 100%;-moz-background-size:100% 100%}.tcp-image-in-container{width:100%;height:100%;height:-webkit-fill-available;height:-moz-fill-available;height:-moz-available;height:fill-available}.tcp-image-in-container-only-image{width:100%;height:80px}.vjs-time-tooltip.tcp-popup-container{position:absolute;width:140px;height:118px;background-color:#000;padding:0;top:-125px;max-height:120px;left:-65px}.vjs-time-tooltip.tcp-popup-container.tcp-only-gif{position:absolute;width:140px;height:80px;background-color:#000;padding:0;top:-87px;max-height:120px;left:-65px}.vjs-time-tooltip.tcp-popup-container.tcp-single-line{height:103px;top:-109px}.vjs-time-tooltip.tcp-popup-container.tcp-without-gif{position:absolute;width:110px;height:54px;background-color:#000;opacity:.8;padding:0;top:-60px;border-radius:5px;left:0}.vjs-time-tooltip.tcp-popup-container.tcp-without-gif.tcp-single-line{height:23px;top:-28px}.vjs-time-tooltip.tcp-popup-container.tcp-without-gif.tcp-two-lines{height:38px;top:-44px}.tcp-dot-comment{text-overflow:ellipsis;color:#fff;width:100%;height:38px;max-height:38px;font-size:12px;line-height:16px;overflow:hidden;background-color:#000;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;padding:5px 8px}.tcp-large-comment{text-overflow:ellipsis;color:#fff;width:100%;height:100%;max-height:100%;font-size:12px;line-height:16px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;padding:5px 8px}.tcp-dot-timestamp{display:block;font-weight:700;width:100%;height:20px;text-align:left;bottom:0;position:absolute;color:#fff;margin-left:10px}.vjs-dvr .tcp-dvr-progress-control .tcp-dvr-time-shift{background-color:transparent}.vjs-dvr .vjs-progress-control{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.vjs-dvr .vjs-live-control{flex:inherit;cursor:pointer}.vjs-dvr .vjs-live-control .vjs-tooltip{line-height:1em}.vjs-dvr-live .vjs-live-control .vjs-tooltip{display:none}.vjs-dvr-live .vjs-live-control{cursor:default}.vjs-dvr .vjs-live-display{margin:0 auto}.vjs-live .vjs-live-display:before{display:inline-block;width:6px;height:6px;margin-right:.4em;vertical-align:4%;background:#f51717;content:"";border-radius:50%}.vjs-dvr:not(.vjs-dvr-live) .vjs-live-display:before{background:#566377}.tcp-video-quality-switcher .tcp-quality-switcher-value{pointer-events:none;font-size:1.2em;display:table;text-align:center;position:absolute;top:0;left:0;width:100%;height:100%}.tcp-video-quality-switcher .tcp-quality-switcher-value p{display:table-cell;vertical-align:middle}.tcp-video-quality-switcher .vjs-menu{width:6em;left:50%;-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0)}.tcp-video-quality-switcher .vjs-menu li{text-transform:none}.tcp-skin .tcp-logo{position:absolute}.tcp-skin .tcp-logo.left-top{top:0;left:0}.tcp-skin .tcp-logo.left-bottom{bottom:0;left:0}.tcp-skin .tcp-logo.right-top{top:0;right:0}.tcp-skin .tcp-logo.right-bottom{bottom:0;right:0}.tcp-skin .tcp-logo .tcp-logo-link{display:inline-block}.tcp-skin .vjs-big-play-button{height:4.8em;width:6.8em;left:50%;top:50%;margin-left:-3.4em;margin-top:-2.4em;font-size:1em;border:0;opacity:1;z-index:1}.tcp-skin .vjs-big-play-button:before{content:none}.tcp-skin .vjs-big-play-button .vjs-button-icon{height:4.8em;width:6.8em;fill:#21212180}.tcp-skin .vjs-big-play-button .vjs-button-icon .draw-dash,.tcp-skin .vjs-big-play-button .vjs-button-icon .draw-line,.tcp-skin .vjs-big-play-button .vjs-button-icon .draw-lines{stroke-dasharray:1330px;stroke-dashoffset:1330px;stroke-linecap:round;stroke-linejoin:round;stroke-width:8px;stroke:#00a4ff}.tcp-skin .vjs-big-play-button:hover .vjs-button-icon .draw-fill{fill:#00a4ff}.tcp-skin .vjs-big-play-button:hover .vjs-button-icon .draw-line{-webkit-animation:draw-line .5s ease forwards;animation:draw-line .5s ease forwards}.tcp-skin .vjs-big-play-button:hover .vjs-button-icon .draw-lines{-webkit-animation:draw-lines 1s ease forwards;animation:draw-lines 1s ease forwards}.tcp-skin .vjs-big-play-button:hover .vjs-button-icon .draw-dash{-webkit-animation:draw-dash 1s ease forwards;animation:draw-dash 1s ease forwards}.tcp-skin .vjs-big-play-button .vjs-icon-placeholder{display:none}.tcp-skin .vjs-big-play-button,.tcp-skin .vjs-big-play-button:focus,.tcp-skin:hover .vjs-big-play-button,.tcp-skin:hover .vjs-big-play-button:focus{background:0 0}.tcp-skin.vjs-paused.vjs-pos-ended .vjs-big-play-button,.tcp-skin.vjs-paused.vjs-pos-ended .vjs-poster{display:block}.tcp-skin.vjs-ad-loading .vjs-big-play-button,.tcp-skin.vjs-ad-playing .vjs-big-play-button,.tcp-skin.vjs-seeking .vjs-big-play-button,.tcp-skin.vjs-using-native-controls .vjs-big-play-button,.tcp-skin.vjs-waiting .vjs-big-play-button{display:none!important}.tcp-skin .vjs-menu{z-index:1}.tcp-skin .vjs-control-bar{z-index:1;font-size:1.2em;background-color:#0000004d;background:rgba(0,0,0,.666);background:-webkit-linear-gradient(bottom,rgba(0,0,0,.666) 0,rgba(0,0,0,.492) 19%,rgba(0,0,0,.36) 34%,rgba(0,0,0,.254) 47%,rgba(0,0,0,.185) 56.5%,rgba(0,0,0,.129) 65%,rgba(0,0,0,.084) 73%,rgba(0,0,0,.05) 80.2%,rgba(0,0,0,.028) 86.1%,rgba(0,0,0,.014) 91%,rgba(0,0,0,.005) 95.2%,rgba(0,0,0,.001) 98.2%,rgba(0,0,0,0) 100%);background:linear-gradient(to top,rgba(0,0,0,.666) 0,rgba(0,0,0,.492) 19%,rgba(0,0,0,.36) 34%,rgba(0,0,0,.254) 47%,rgba(0,0,0,.185) 56.5%,rgba(0,0,0,.129) 65%,rgba(0,0,0,.084) 73%,rgba(0,0,0,.05) 80.2%,rgba(0,0,0,.028) 86.1%,rgba(0,0,0,.014) 91%,rgba(0,0,0,.005) 95.2%,rgba(0,0,0,.001) 98.2%,rgba(0,0,0,0) 100%)}.tcp-skin .vjs-time-control{padding-left:0;padding-right:0}.tcp-skin:not(.vjs-live) .vjs-current-time,.tcp-skin:not(.vjs-live) .vjs-duration,.tcp-skin:not(.vjs-live) .vjs-time-divider{display:block}.tcp-skin .vjs-time-divider{min-width:0;padding-left:.3em;padding-right:.3em}.tcp-skin .vjs-current-time{padding-left:1em}.tcp-skin .vjs-duration{padding-right:1em}.tcp-skin .vjs-remaining-time{display:none}.tcp-skin .vjs-progress-control{position:absolute;width:100%;top:-.9em;left:0;height:1.5em}.tcp-skin .vjs-play-progress{background-color:#00a4ff}.tcp-skin .vjs-playback-rate .vjs-playback-rate-value{font-size:1.2em;line-height:2.57}.tcp-skin .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{z-index:2;visibility:hidden;background-color:#000000b3}.tcp-skin .vjs-volume-panel .vjs-slider-horizontal .vjs-volume-level:before{top:-.33em}.tcp-skin .vjs-volume-panel .vjs-slider-vertical .vjs-volume-level:before{left:-.35em}.tcp-skin .vjs-volume-panel .vjs-volume-level{background-color:#00a4ff}.tcp-skin .vjs-custom-control-spacer{display:block;flex-grow:1}.tcp-skin .tcp-loading-spinner{box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;display:none;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;text-indent:-9999em}.tcp-skin .tcp-loading-spinner:before{content:"";display:block;width:100%;height:100%;margin-bottom:5px;border-radius:50%;border:3px solid rgba(255,255,255,0);border-left-color:#fff;border-right-color:#fff;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0)}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.tcp-skin.vjs-seeking .tcp-loading-spinner,.tcp-skin.vjs-waiting .tcp-loading-spinner{display:block}.tcp-skin.vjs-seeking .tcp-loading-spinner:before,.tcp-skin.vjs-waiting .tcp-loading-spinner:before{-webkit-animation:load8 1.1s infinite linear;animation:load8 1.1s infinite linear}.tcp-skin .tcp-loading-spinner-animation{width:60px;height:45px;margin:0 auto 10px;background-repeat:no-repeat;animation-name:keyframes;animation-duration:2.625s;animation-delay:0s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-timing-function:steps(1)}@-webkit-keyframes keyframes{0%{width:60px;height:45px;background-position:-60px 0}1.33%{background-position:-2220px 0}2.67%{background-position:-120px 0}4.00%{background-position:-180px 0}5.33%{background-position:-240px 0}6.67%{background-position:-300px 0}8.00%{background-position:-360px 0}9.33%{background-position:-420px 0}10.67%{background-position:-480px 0}12.00%{background-position:-540px 0}13.33%{background-position:-600px 0}14.67%{background-position:-660px 0}16.00%{background-position:-720px 0}17.33%{background-position:-780px 0}18.67%{background-position:-840px 0}20.00%{background-position:-900px 0}21.33%{background-position:-960px 0}22.67%{background-position:-1020px 0}24.00%{background-position:-1080px 0}25.33%{background-position:-1140px 0}26.67%{background-position:-1200px 0}28.00%{background-position:-1260px 0}29.33%{background-position:-1320px 0}30.67%{background-position:-1380px 0}32.00%{background-position:-1440px 0}33.33%{background-position:-1500px 0}34.67%{background-position:-1560px 0}36.00%{background-position:-1620px 0}37.33%{background-position:-1680px 0}38.67%{background-position:-1740px 0}40.00%{background-position:-1800px 0}41.33%{background-position:-1860px 0}42.67%{background-position:-1920px 0}44.00%{background-position:-1980px 0}45.33%{background-position:-2040px 0}46.67%{background-position:-2100px 0}48.00%{background-position:-2160px 0}49.33%{background-position:0 0}50.67%{background-position:-2280px 0}52.00%{background-position:-2340px 0}53.33%{background-position:-2400px 0}54.67%{background-position:-2460px 0}56.00%{background-position:-2520px 0}57.33%{background-position:-2580px 0}58.67%{background-position:-2640px 0}60.00%{background-position:-2700px 0}61.33%{background-position:-2760px 0}62.67%{background-position:-2820px 0}64.00%{background-position:-2880px 0}65.33%{background-position:-2940px 0}66.67%{background-position:-3000px 0}68.00%{background-position:-3060px 0}69.33%{background-position:-3120px 0}70.67%{background-position:-3180px 0}72.00%{background-position:-3240px 0}73.33%{background-position:-3300px 0}74.67%{background-position:-3360px 0}76.00%{background-position:-3420px 0}77.33%{background-position:-3480px 0}78.67%{background-position:-3540px 0}80.00%{background-position:-3600px 0}81.33%{background-position:-3660px 0}82.67%{background-position:-3720px 0}84.00%{background-position:-3780px 0}85.33%{background-position:-3840px 0}86.67%{background-position:-3900px 0}88.00%{background-position:-3960px 0}89.33%{background-position:-4020px 0}90.67%{background-position:-4080px 0}92.00%{background-position:-4140px 0}93.33%{background-position:-4200px 0}94.67%{background-position:-4260px 0}96.00%{background-position:-4320px 0}97.33%{background-position:-4380px 0}to,98.67%{background-position:-4440px 0}}.tcp-skin .vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#232833;background-color:#000000b3}@keyframes draw-line{0%{stroke-dashoffset:1350px}to{stroke-dashoffset:0}}@keyframes draw-lines{0%{stroke-dasharray:0 1330px;stroke-dashoffset:1330px}to{stroke-dasharray:1330px 0;stroke-dashoffset:0}}@keyframes draw-dash{0%{stroke-dasharray:100px 1330px}to{stroke-dasharray:10px 0}}.tcp-continue-play-tips{position:absolute;left:0;bottom:4.5em;font-size:1.2em;height:2.08em;line-height:2.08em;padding:0 .5em 0 2.5em;background-color:#232833;background-color:#000000b3}.tcp-continue-play-tips .tcp-continue-play-buttom{cursor:pointer;color:#00a4ff;height:2.08em;padding:0 5px;margin:0}.tcp-continue-play-tips .vjs-control.vjs-close-button{width:2em;height:2.08em;top:0;right:initial;left:.5em;opacity:.7}.tcp-continue-play-tips .vjs-control.vjs-close-button .vjs-icon-placeholder:before{font-size:1.33em;line-height:1.55em}.tcp-skin .tcp-overlay{color:#fff;position:absolute;text-align:center}.tcp-skin .tcp-overlay-no-background{width:33%}.tcp-skin .tcp-overlay-background{background-color:#4e4e4e;background-color:#0009;border-radius:3px;padding:10px;width:33%}.tcp-skin .tcp-overlay-top-left{top:5px;left:5px}.tcp-skin .tcp-overlay-top{left:50%;margin-left:-16.5%;top:5px}.tcp-skin .tcp-overlay-top-right{right:5px;top:5px}.tcp-skin .tcp-overlay-right{right:5px;top:50%;transform:translateY(-50%)}.tcp-skin .tcp-overlay-bottom-right{bottom:4em;right:5px}.tcp-skin .tcp-overlay-bottom{bottom:4em;left:50%;margin-left:-16.5%}.tcp-skin .tcp-overlay-bottom-left{bottom:4em;left:5px}.tcp-skin .tcp-overlay-left{left:5px;top:50%;transform:translateY(-50%)}.tcp-skin .tcp-overlay-center{left:50%;margin-left:-16.5%;top:50%;transform:translateY(-50%)}.tcp-skin .tcp-image-patch{width:100%;max-height:100%;margin:0;transform:translate(-50%,-50%);overflow:hidden}.tcp-skin .tcp-image-patch .tcp-overlay-link{display:inline-block;outline:0}.tcp-skin .tcp-image-patch .tcp-overlay-link:active,.tcp-skin .tcp-image-patch .tcp-overlay-link:focus,.tcp-skin .tcp-image-patch .tcp-overlay-link:link{outline:0}.tcp-skin .tcp-image-patch .tcp-overlay-img{max-width:100%;border:none}.tcp-skin.tcp-res-switching .tcp-image-patch{display:none}.tcp-skin .vjs-no-flex .tcp-overlay-center,.tcp-skin .vjs-no-flex .tcp-overlay-left,.tcp-skin .vjs-no-flex .tcp-overlay-right{margin-top:-15px}.tcp-skin .tcp-right-click-popup-menu{position:absolute;z-index:6;padding:0;white-space:nowrap;background-color:#1c1c1c;background-color:#1c1c1ce6}.tcp-skin .tcp-right-click-popup-menu .vjs-menu-item{line-height:2em;padding:0 1.5em}.tcp-skin .tcp-right-click-popup-menu .tc-menu-list{text-transform:none;padding:.5rem;text-align:left}.tcp-skin .tcp-right-click-popup-menu .vjs-menu-content li:not(:last-child){border-bottom:1px solid #fff}.tcp-skin .tcp-right-click-popup-menu .tc-menu-list,.tcp-skin .tcp-right-click-popup-menu .tc-menu-list:hover{cursor:default;outline:0}.tcp-skin .tcp-right-click-popup-menu .tcp-menu-item-select{color:#00a4ff}.tcp-skin .tcp-mirror{transform:rotateY(180deg)}.tcp-playlist{width:300px;height:100%;right:0;top:0;position:absolute}.tcp-playlist .tcp-playlist-toggle{position:absolute;width:12px;height:100px;line-height:100px;top:50%;transform:translateY(-50%);background-color:#00a4ff;border-radius:10px 0 0 10px;text-align:center;cursor:pointer}.tcp-playlist .tcp-playlist-box{position:absolute;background-color:#2b333f;overflow:scroll;overflow-x:hidden;width:100%;height:100%}.tcp-playlist .tcp-playlist-box .tcp-playlist-title{padding:1em;font-size:1.6em;color:#00a4ff}.tcp-playlist .tcp-playlist-box .tcp-playlist-item{padding:0 0 0 1em;margin-bottom:1em;width:100%;height:100px}.tcp-playlist .tcp-playlist-box .tcp-playlist-item .tcp-playlist-item-video{display:inline-block;float:left;position:relative;width:55%;height:100px;display:flex;justify-content:center;align-items:center;background:#000}.tcp-playlist .tcp-playlist-box .tcp-playlist-item .tcp-playlist-item-video .tcp-playlist-item-img{max-width:100%;max-height:100%}.tcp-playlist .tcp-playlist-box .tcp-playlist-item .tcp-playlist-item-video .tcp-playlist-item-duration{position:absolute;bottom:.5em;left:1em;background-color:#2b333f;padding:.5em;opacity:.8}.tcp-playlist .tcp-playlist-box .tcp-playlist-item .tcp-playlist-item-desc{display:inline-block;width:42%;padding:.5em;font-size:1.4em;overflow:hidden;height:100%}.tcp-playlist .tcp-playlist-box .tcp-playlist-item-active,.tcp-playlist .tcp-playlist-box .tcp-playlist-item:hover{cursor:pointer}.tcp-playlist .tcp-playlist-box .tcp-playlist-item-active .tcp-playlist-item-desc,.tcp-playlist .tcp-playlist-box .tcp-playlist-item:hover .tcp-playlist-item-desc{color:#00a4ff}.tcp-playlist-box::-webkit-scrollbar{width:.5em;box-sizing:border-box}.tcp-playlist-box::-webkit-scrollbar-button{display:none}.tcp-playlist-box::-webkit-scrollbar-thumb{background-color:#00a4ff;-webkit-border-radius:1em}.vjs-play-next:hover{cursor:pointer}.vjs-play-next{font-family:VideoJS}.vjs-play-next .vjs-icon-placeholder:before{content:""}.tcp-playlist-open .tcp-playlist-toggle{right:300px}.tcp-playlist-open .tcp-playlist-box{display:block}.tcp-playlist-close .tcp-playlist-toggle{right:0}.tcp-playlist-close .tcp-playlist-box{display:none}.tcp-statistic{position:relative;z-index:5;top:10px;left:10px;font-size:12px;width:80%;max-height:80%;background:rgba(28,28,28,.8);border-radius:4px;color:#fff;opacity:.8;overflow:hidden}.tcp-statistic-wrapper{display:flex;flex-direction:column;width:100%;padding:10px}.tcp-statistic-line{display:block;width:100%;padding-bottom:4px}.tcp-statistic-title{width:30%;float:left;text-align:right;padding-right:20px}.tcp-statistic-data{width:70%}.tcp-statistic-close{position:absolute;right:10px;top:10px;width:20px;height:20px;color:#fff;cursor:pointer}.tcp-switch{position:absolute;display:flex;align-items:center;right:0;bottom:4.5em;font-size:1.2em;line-height:2.08em;padding:0 2.5em 0 .5em;background-color:#000000b3}.tcp-switch>.vjs-close-button{top:0!important;cursor:pointer;width:2em;height:1.5em;display:flex;justify-content:center;align-items:center;right:.3em!important;border-radius:50%;margin-left:.5em}.tcp-switch>.vjs-control .vjs-close-button{top:0;right:.3em!important}.tcp-switch>.vjs-button>.vjs-icon-placeholder:before{font-size:1.33em;line-height:inherit;opacity:.7}.vjs-error .vjs-error-display .vjs-modal-dialog-content{padding:0}.vjs-errors-dialog{text-align:center;overflow:hidden;position:absolute;top:0;bottom:0;left:0;right:0;background:rgba(24,24,24,.8);display:table;width:100%;height:100%}.vjs-errors-content-container{overflow:auto;display:table-cell;padding:35px}.vjs-errors-dialog .vjs-control.vjs-close-button{width:3em;height:3em;top:0}.vjs-errors-type{display:none}.tcp-vtt-thumbnail-container{position:absolute;overflow:hidden;bottom:2.3em;z-index:0}.tcp-vtt-thumbnail-container:before{content:"";position:absolute;top:0;bottom:0;left:0;right:0;-moz-box-shadow:0 0 3px 3px rgba(0,0,0,.3) inset;-webkit-box-shadow:0 0 3px 3px rgba(0,0,0,.3) inset;box-shadow:0 0 3px 3px #0000004d inset;z-index:1}.tcp-vtt-thumbnail-img{position:absolute;left:0;opacity:0;transition:opacity .2s ease;-webkit-transition:opacity .2s ease;-moz-transition:opacity .2s ease;-mz-transition:opacity .2s ease}.vjs-progress-control:active .tcp-vtt-thumbnail-img,.vjs-progress-control:hover .tcp-vtt-thumbnail-img{opacity:1}.tcp-dynamic-watermark-container{position:absolute;pointer-events:none}.tcp-dynamic-watermark-container .tcp-dynamic-watermark-content{position:absolute;max-width:30%;word-break:break-all;color:#ffffff80}.tcp-skin.vjs-no-flex .vjs-poster{overflow:hidden}.tcp-skin.vjs-no-flex .vjs-poster div{width:100%;height:100%;display:table}.tcp-skin.vjs-no-flex .vjs-poster div span{display:table-cell;vertical-align:middle}.tcp-skin.vjs-no-flex .vjs-control-bar .vjs-current-time,.tcp-skin.vjs-no-flex .vjs-control-bar .vjs-duration,.tcp-skin.vjs-no-flex .vjs-control-bar .vjs-time-divider{display:inline-block}.tcp-skin.vjs-no-flex .vjs-control-bar .vjs-custom-control-spacer{display:none}.tcp-skin.vjs-no-flex .vjs-control-bar .tcp-video-quality-switcher .vjs-menu{margin-left:-3em}.tcp-skin.vjs-no-flex .vjs-control-bar .vjs-mouse-display{z-index:1}.tcp-skin.vjs-no-flex .vjs-control-bar .tcp-vtt-thumbnail-container{bottom:2.7em}.tcp-skin.vjs-no-flex.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar,.tcp-skin.vjs-no-flex.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar .vjs-volume-control.vjs-volume-vertical{visibility:hidden}.tcp-skin.vjs-no-flex .vjs-volume-panel.enable-volume-control .vjs-volume-control.vjs-volume-vertical{visibility:visible;opacity:1;display:none}.tcp-skin.vjs-no-flex .vjs-volume-panel.enable-volume-control .vjs-mute-control:active~.vjs-volume-control.vjs-volume-vertical,.tcp-skin.vjs-no-flex .vjs-volume-panel.enable-volume-control .vjs-mute-control:focus~.vjs-volume-control.vjs-volume-vertical,.tcp-skin.vjs-no-flex .vjs-volume-panel.enable-volume-control .vjs-mute-control:hover~.vjs-volume-control.vjs-volume-vertical,.tcp-skin.vjs-no-flex .vjs-volume-panel.enable-volume-control .vjs-volume-control.vjs-slider-active.vjs-volume-vertical,.tcp-skin.vjs-no-flex .vjs-volume-panel.enable-volume-control .vjs-volume-control:active.vjs-volume-vertical,.tcp-skin.vjs-no-flex .vjs-volume-panel.enable-volume-control .vjs-volume-control:focus.vjs-volume-vertical,.tcp-skin.vjs-no-flex .vjs-volume-panel.enable-volume-control .vjs-volume-control:hover.vjs-volume-vertical,.tcp-skin.vjs-no-flex .vjs-volume-panel.enable-volume-control:active .vjs-volume-control.vjs-volume-vertical,.tcp-skin.vjs-no-flex .vjs-volume-panel.enable-volume-control:focus .vjs-volume-control.vjs-volume-vertical,.tcp-skin.vjs-no-flex .vjs-volume-panel.enable-volume-control:hover .vjs-volume-control.vjs-volume-vertical{display:block;position:absolute}@font-face{font-family:VideoJS;src:url(data:application/vnd.ms-fontobject;base64,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dHRwOi8vZm9udGVsbG8uY29tAFYAaQBkAGUAbwBKAFMAUgBlAGcAdQBsAGEAcgBWAGkAZABlAG8ASgBTAFYAaQBkAGUAbwBKAFMAVgBlAHIAcwBpAG8AbgAgADEALgAwAFYAaQBkAGUAbwBKAFMARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAAAAgAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhAQIBAwEEAQUBBgEHAQgBCQEKAQsBDAENAQ4BDwEQAREBEgETARQBFQEWARcBGAEZARoBGwEcAR0BHgEfASABIQEiAARwbGF5C3BsYXktY2lyY2xlBXBhdXNlC3ZvbHVtZS1tdXRlCnZvbHVtZS1sb3cKdm9sdW1lLW1pZAt2b2x1bWUtaGlnaBBmdWxsc2NyZWVuLWVudGVyD2Z1bGxzY3JlZW4tZXhpdAZzcXVhcmUHc3Bpbm5lcglzdWJ0aXRsZXMIY2FwdGlvbnMIY2hhcHRlcnMFc2hhcmUDY29nBmNpcmNsZQ5jaXJjbGUtb3V0bGluZRNjaXJjbGUtaW5uZXItY2lyY2xlAmhkBmNhbmNlbAZyZXBsYXkIZmFjZWJvb2sFZ3BsdXMIbGlua2VkaW4HdHdpdHRlcgZ0dW1ibHIJcGludGVyZXN0EWF1ZGlvLWRlc2NyaXB0aW9uBWF1ZGlvCW5leHQtaXRlbQ1wcmV2aW91cy1pdGVtAAAAAA==);font-weight:400;font-style:normal}@media screen�{.tcp-logo-img{border:none}.tcp-continue-play-tips .vjs-control.vjs-close-button .vjs-icon-placeholder:before{font-size:16px;line-height:25px}}@media �screen{.tcp-skin.vjs-no-flex .vjs-big-play-button{background-color:#2b333f}.tcp-skin.vjs-no-flex .vjs-big-play-button .vjs-button-icon:before{top:0;left:0;width:100%;height:100%;text-align:center;font-family:VideoJS;font-weight:400;font-style:normal;content:"";font-size:5em;line-height:1em}.tcp-skin.vjs-no-flex .vjs-big-play-button:focus,.tcp-skin.vjs-no-flex .vjs-big-play-button:hover,.tcp-skin.vjs-no-flex:hover .vjs-big-play-button:focus,.tcp-skin.vjs-no-flex:hover .vjs-big-play-button:hover{background-color:#00a4ff}.tcp-skin .tcp-image-patch{width:100%;margin:0;left:0;right:0;top:0;bottom:0;transform:none;overflow:hidden}.tcp-skin .tcp-image-patch .tcp-overlay-table{display:table;width:100%;height:100%}.tcp-skin .tcp-image-patch .tcp-overlay-table .tcp-overlay-cell{width:100%;display:table-cell;vertical-align:middle}}button{outline:0}@media �screen{.vjs-user-inactive.vjs-playing .vjs-control-bar :before{content:""}}@media �screen{.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:hidden}}')),document.head.appendChild(A)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
-
(function(r,t){typeof exports=="object"&&typeof module<"u"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(r=typeof globalThis<"u"?globalThis:r||self,t(r.VideoPlayer={}))})(this,function(exports){"use strict";function _mergeNamespaces(r,t){for(var e=0;e<t.length;e++){const n=t[e];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in r)){const a=Object.getOwnPropertyDescriptor(n,s);a&&Object.defineProperty(r,s,a.get?a:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}const tcplayer_min="";var VideoStatus=(r=>(r.converted="converted",r.failed="failed",r.uploading="uploading",r.uploaded="uploaded",r.converting="converting",r))(VideoStatus||{});const HLSCONFIG={maxBufferLength:10,maxBufferSize:40*1024*1024,maxMaxBufferLength:30},ua=navigator.userAgent.toLowerCase(),isMicromessenger=ua.indexOf("micromessenger")>0,isAndroid=ua.indexOf("android")>0;isMicromessenger&&ua.indexOf("wxwork");const isWxwork=isMicromessenger&&ua.indexOf("wxwork")>0,isIOS=/iphone|ipad|ipod|ios/.test(ua);function loadVideoPlayer(r){const{onReady:t}=r||{},e=isIOS||isAndroid&&isWxwork;let n=null,s=!1,a=!1,l=0,u=0,c=!1,h=!1,p=null;const m=async()=>{if(p)return p;const k=await Promise.resolve().then(()=>tcplayer_v4_8_0_min$1);return p=k==null?void 0:k.default,p},b=k=>{!s&&!a||(h?k==null||k.pause():k==null||k.play())},f=(k,d)=>{!s||a||(l=k.deltaY,u=d.currentTime())},g=(k,d)=>{if(!s||a)return;const y=c?k.deltaY:k.deltaX,S=c?window.innerHeight:window.innerWidth,w=(y-l)/S,D=d.duration();let M=u+D*w;M<0&&(M=0),M>D&&(M=D),d.currentTime(M)},v=async(k,d)=>{var y;try{const S=(y=await Promise.resolve().then(()=>hammer$1))==null?void 0:y.default,w=new S.Manager(d);w.add(new S.Pan({threshold:10,pointers:0,direction:S.DIRECTION_ALL})),w.add(new S.Swipe).recognizeWith(w.get("pan")),w.add(new S.Tap({event:"doubletap",taps:2})),w.on("doubletap",()=>{b(k)}),w.on("panstart",D=>{f(D,k)}),w.on("panmove",D=>{g(D,k)})}catch(S){console.log(S,"mc error")}},_=k=>{k.on("fullscreenchange",()=>{s=k.isFullscreen();const d=k.el_,y=d.querySelector(".vjs-progress-control");c=k.videoWidth()>k.videoHeight();const S=window.innerWidth,w=window.innerHeight;a=window.orientation===90||window.orientation===-90;const D=Math.floor(Math.abs((S-w)/2));if(c)s?(Object.assign(d.style,{transform:"rotate(90deg)",width:"100vh",height:"100vw",position:"fixed",zIndex:"999",top:`${D}px`,left:`-${D}px`}),y&&(y.style.pointerEvents="none")):(d.setAttribute("style",""),y&&(y.style.pointerEvents=""));else{if(!isWxwork)return;s?(Object.assign(d.style,{width:"100vw",height:"100vh",position:"fixed",zIndex:"999",top:"0px"}),y&&(y.style.pointerEvents="none")):(d.removeAttribute("style"),y&&(y.style.pointerEvents=""))}})},I=(k,d)=>{d.on("play",()=>{h=!0}),d.on("pause",()=>{h=!1}),d.on("ended",()=>{h=!1}),d.on("ready",()=>{t==null||t(d)});const y=document==null?void 0:document.getElementById(k);y&&v(d,y)},P=async(k,d)=>{n=(await m())(d,{...k,fakeFullscreen:e}),n&&(I(d,n),e&&_(n))};return{loadVideo:(k,d)=>{if(!(!k||!d))try{P(d,k)}catch{}},disposePlayer:()=>{n==null||n.dispose(),n=null},tcplayerInstance:n}}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var tcplayer_v4_8_0_min$2={exports:{}};(function(module,exports){(function(r,t){module.exports=t()})(commonjsGlobal,function(){function unwrapExports(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function createCommonjsModule(r,t){return t={exports:{}},r(t,t.exports),t.exports}function each(r,t){keys(r).forEach(function(e){return t(r[e],e)})}function reduce(r,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return keys(r).reduce(function(n,s){return t(n,r[s],s)},e)}function assign(r){for(var t=arguments.length,e=Array(t>1?t-1:0),n=1;n<t;n++)e[n-1]=arguments[n];return Object.assign?Object.assign.apply(Object,[r].concat(e)):(e.forEach(function(s){s&&each(s,function(a,l){r[l]=a})}),r)}function isObject$1(r){return!!r&&(r===void 0?"undefined":_typeof(r))==="object"}function isPlain(r){return isObject$1(r)&&toString.call(r)==="[object Object]"&&r.constructor===Object}function isFunction(r){return typeof r=="function"&&typeof r.nodeType!="number"}function clean(r){return r.replace(/\n\r?\s*/g,"")}function computedStyle(r,t){if(!r||!t)return"";if(typeof window_1.getComputedStyle=="function"){var e=window_1.getComputedStyle(r);return e?e[t]:""}return r.currentStyle[t]||""}function isNonBlankString(r){return typeof r=="string"&&/\S/.test(r)}function throwIfWhitespace(r){if(/\s/.test(r))throw new Error("class has illegal whitespace characters")}function classRegExp(r){return new RegExp("(^|\\s)"+r+"($|\\s)")}function isReal(){return document_1===window_1.document&&typeof document_1.createElement<"u"}function isEl(r){return isObject$1(r)&&r.nodeType===1}function isInFrame(){try{return window_1.parent!==window_1.self}catch{return!0}}function createQuerier(r){return function(t,e){if(!isNonBlankString(t))return document_1[r](null);isNonBlankString(e)&&(e=document_1.querySelector(e));var n=isEl(e)?e:document_1;return n[r]&&n[r](t)}}function createEl(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"div",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments[3],s=document_1.createElement(r);return Object.getOwnPropertyNames(t).forEach(function(a){var l=t[a];a.indexOf("aria-")!==-1||a==="role"||a==="type"?(log$2.warn(tsml(_templateObject,a,l)),s.setAttribute(a,l)):a==="textContent"?textContent(s,l):s[a]=l}),Object.getOwnPropertyNames(e).forEach(function(a){s.setAttribute(a,e[a])}),n&&appendContent(s,n),s}function textContent(r,t){return typeof r.textContent>"u"?r.innerText=t:r.textContent=t,r}function prependTo(r,t){t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r)}function hasClass(r,t){return throwIfWhitespace(t),r.classList?r.classList.contains(t):classRegExp(t).test(r.className)}function addClass(r,t){return r.classList?r.classList.add(t):hasClass(r,t)||(r.className=(r.className+" "+t).trim()),r}function removeClass(r,t){return r.classList?r.classList.remove(t):(throwIfWhitespace(t),r.className=r.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),r}function toggleClass(r,t,e){var n=hasClass(r,t);if(typeof e=="function"&&(e=e(r,t)),typeof e!="boolean"&&(e=!n),e!==n)return e?addClass(r,t):removeClass(r,t),r}function setAttributes(r,t){Object.getOwnPropertyNames(t).forEach(function(e){var n=t[e];n==null||n===!1?r.removeAttribute(e):r.setAttribute(e,n===!0?"":n)})}function getAttributes(r){var t={};if(r&&r.attributes&&r.attributes.length>0)for(var e=r.attributes,n=e.length-1;n>=0;n--){var s=e[n].name,a=e[n].value;typeof r[s]!="boolean"&&",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+s+",")===-1||(a=a!==null),t[s]=a}return t}function getAttribute(r,t){return r.getAttribute(t)}function setAttribute(r,t,e){r.setAttribute(t,e)}function removeAttribute(r,t){r.removeAttribute(t)}function blockTextSelection(){document_1.body.focus(),document_1.onselectstart=function(){return!1}}function unblockTextSelection(){document_1.onselectstart=function(){return!0}}function getBoundingClientRect(r){if(r&&r.getBoundingClientRect&&r.parentNode){var t=r.getBoundingClientRect(),e={};return["bottom","height","left","right","top","width"].forEach(function(n){t[n]!==void 0&&(e[n]=t[n])}),e.height||(e.height=parseFloat(computedStyle(r,"height"))),e.width||(e.width=parseFloat(computedStyle(r,"width"))),e}}function findPosition(r){var t=void 0;if(r.getBoundingClientRect&&r.parentNode&&(t=r.getBoundingClientRect()),!t)return{left:0,top:0};var e=document_1.documentElement,n=document_1.body,s=e.clientLeft||n.clientLeft||0,a=window_1.pageXOffset||n.scrollLeft,l=t.left+a-s,u=e.clientTop||n.clientTop||0,c=window_1.pageYOffset||n.scrollTop,h=t.top+c-u;return{left:Math.round(l),top:Math.round(h)}}function getPointerPosition(r,t){var e={},n=findPosition(r),s=r.offsetWidth,a=r.offsetHeight,l=n.top,u=n.left,c=t.pageY,h=t.pageX;return t.changedTouches&&(h=t.changedTouches[0].pageX,c=t.changedTouches[0].pageY),e.y=Math.max(0,Math.min(1,(l-c+a)/a)),e.x=Math.max(0,Math.min(1,(h-u)/s)),e}function isTextNode(r){return isObject$1(r)&&r.nodeType===3}function emptyEl(r){for(;r.firstChild;)r.removeChild(r.firstChild);return r}function normalizeContent(r){return typeof r=="function"&&(r=r()),(Array.isArray(r)?r:[r]).map(function(t){return typeof t=="function"&&(t=t()),isEl(t)||isTextNode(t)?t:typeof t=="string"&&/\S/.test(t)?document_1.createTextNode(t):void 0}).filter(function(t){return t})}function appendContent(r,t){return normalizeContent(t).forEach(function(e){return r.appendChild(e)}),r}function insertContent(r,t){return appendContent(emptyEl(r),t)}function isSingleLeftClick(r){return r.button===void 0&&r.buttons===void 0||r.button===0&&r.buttons===void 0||IE_VERSION===9||r.button===0&&r.buttons===1}function newGUID(){return _guid++}function getData(r){var t=r[elIdAttr];return t||(t=r[elIdAttr]=newGUID()),elData[t]||(elData[t]={}),elData[t]}function hasData(r){var t=r[elIdAttr];return!!t&&!!Object.getOwnPropertyNames(elData[t]).length}function removeData(r){var t=r[elIdAttr];if(t){delete elData[t];try{delete r[elIdAttr]}catch{r.removeAttribute?r.removeAttribute(elIdAttr):r[elIdAttr]=null}}}function _cleanUpEvents(r,t){var e=getData(r);e.handlers[t].length===0&&(delete e.handlers[t],r.removeEventListener?r.removeEventListener(t,e.dispatcher,!1):r.detachEvent&&r.detachEvent("on"+t,e.dispatcher)),Object.getOwnPropertyNames(e.handlers).length<=0&&(delete e.handlers,delete e.dispatcher,delete e.disabled),Object.getOwnPropertyNames(e).length===0&&removeData(r)}function _handleMultipleEvents(r,t,e,n){e.forEach(function(s){r(t,s,n)})}function fixEvent(r){function t(){return!0}function e(){return!1}if(!r||!r.isPropagationStopped){var n=r||window_1.event;r={};for(var s in n)s!=="layerX"&&s!=="layerY"&&s!=="keyLocation"&&s!=="webkitMovementX"&&s!=="webkitMovementY"&&(s==="returnValue"&&n.preventDefault||(r[s]=n[s]));if(r.target||(r.target=r.srcElement||document_1),r.relatedTarget||(r.relatedTarget=r.fromElement===r.target?r.toElement:r.fromElement),r.preventDefault=function(){n.preventDefault&&n.preventDefault(),r.returnValue=!1,n.returnValue=!1,r.defaultPrevented=!0},r.defaultPrevented=!1,r.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),r.cancelBubble=!0,n.cancelBubble=!0,r.isPropagationStopped=t},r.isPropagationStopped=e,r.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),r.isImmediatePropagationStopped=t,r.stopPropagation()},r.isImmediatePropagationStopped=e,r.clientX!==null&&r.clientX!==void 0){var a=document_1.documentElement,l=document_1.body;r.pageX=r.clientX+(a&&a.scrollLeft||l&&l.scrollLeft||0)-(a&&a.clientLeft||l&&l.clientLeft||0),r.pageY=r.clientY+(a&&a.scrollTop||l&&l.scrollTop||0)-(a&&a.clientTop||l&&l.clientTop||0)}r.which=r.charCode||r.keyCode,r.button!==null&&r.button!==void 0&&(r.button=1&r.button?0:4&r.button?1:2&r.button?2:0)}return r}function on(r,t,e){if(Array.isArray(t))return _handleMultipleEvents(on,r,t,e);var n=getData(r);if(n.handlers||(n.handlers={}),n.handlers[t]||(n.handlers[t]=[]),e.guid||(e.guid=newGUID()),n.handlers[t].push(e),n.dispatcher||(n.disabled=!1,n.dispatcher=function(a,l){if(!n.disabled){a=fixEvent(a);var u=n.handlers[a.type];if(u)for(var c=u.slice(0),h=0,p=c.length;h<p&&!a.isImmediatePropagationStopped();h++)try{c[h].call(r,a,l)}catch(m){log$2.error(m)}}}),n.handlers[t].length===1)if(r.addEventListener){var s=!1;_supportsPassive&&passiveEvents.indexOf(t)>-1&&(s={passive:!0}),r.addEventListener(t,n.dispatcher,s)}else r.attachEvent&&r.attachEvent("on"+t,n.dispatcher)}function off(r,t,e){if(hasData(r)){var n=getData(r);if(n.handlers){if(Array.isArray(t))return _handleMultipleEvents(off,r,t,e);var s=function(c,h){n.handlers[h]=[],_cleanUpEvents(c,h)};if(t!==void 0){var a=n.handlers[t];if(a){if(!e)return void s(r,t);if(e.guid)for(var l=0;l<a.length;l++)a[l].guid===e.guid&&a.splice(l--,1);_cleanUpEvents(r,t)}}else for(var u in n.handlers)Object.prototype.hasOwnProperty.call(n.handlers||{},u)&&s(r,u)}}}function trigger(r,t,e){var n=hasData(r)?getData(r):{},s=r.parentNode||r.ownerDocument;if(typeof t=="string"&&(t={type:t,target:r}),t=fixEvent(t),n.dispatcher&&n.dispatcher.call(r,t,e),s&&!t.isPropagationStopped()&&t.bubbles===!0)trigger.call(null,s,t,e);else if(!s&&!t.defaultPrevented){var a=getData(t.target);t.target[t.type]&&(a.disabled=!0,typeof t.target[t.type]=="function"&&t.target[t.type](),a.disabled=!1)}return!t.defaultPrevented}function one(r,t,e){if(Array.isArray(t))return _handleMultipleEvents(one,r,t,e);var n=function s(){off(r,t,s),e.apply(this,arguments)};n.guid=e.guid=e.guid||newGUID(),on(r,t,n)}function autoSetupTimeout(r,t){t&&(videojs$2=t),window_1.setTimeout(autoSetup,r)}function evented(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=t.eventBusKey;if(e){if(!r[e].nodeName)throw new Error('The eventBusKey "'+e+'" does not refer to an element.');r.eventBusEl_=r[e]}else r.eventBusEl_=createEl("span",{className:"vjs-event-bus"});return assign(r,EventedMixin),r.on("dispose",function(){r.off(),window_1.setTimeout(function(){r.eventBusEl_=null},0)}),r}function stateful(r,t){return assign(r,StatefulMixin),r.state=assign({},r.state,t),typeof r.handleStateChanged=="function"&&isEvented(r)&&r.on("statechanged",r.handleStateChanged),r}function toTitleCase(r){return typeof r!="string"?r:r.charAt(0).toUpperCase()+r.slice(1)}function titleCaseEquals(r,t){return toTitleCase(r)===toTitleCase(t)}function mergeOptions(){for(var r={},t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.forEach(function(s){s&&each(s,function(a,l){if(!isPlain(a))return void(r[l]=a);isPlain(r[l])||(r[l]={}),r[l]=mergeOptions(r[l],a)})}),r}function extend(){var r,t,e,n,s,a,l=arguments[0]||{},u=1,c=arguments.length,h=!1;for(typeof l=="boolean"&&(h=l,l=arguments[u]||{},u++),(l===void 0?"undefined":_typeof(l))==="object"||isFunction(l)||(l={}),u===c&&(l=this,u--);u<c;u++)if((r=arguments[u])!=null)for(t in r)e=l[t],n=r[t],l!==n&&(h&&n&&(isPlain(n)||(s=Array.isArray(n)))?(s?(s=!1,a=e&&Array.isArray(e)?e:[]):a=e&&isPlain(e)?e:{},l[t]=extend(h,a,n)):n!==void 0&&(l[t]=n));return l}function getParams(r,t){var e=t.split("?")[1];if(e){var n=new RegExp("(^|&)"+r+"=([^&]*)(&|$)","i"),s=e.match(n);return s!=null?decodeURIComponent(s[2]):null}}function guid(){function r(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return r()+r()+"-"+r()+"-"+r()+"-"+r()+"-"+r()+r()+r()}function unifyProtocol(r){r=r.replace(/^(http|https):/,"");var t=window.location.protocol;return t!="http:"&&t!="https:"&&(t="https:"),r=t+r}function replaceHost(r,t){var e=/^http(s)?:\/\/(.*?)\//,n=r.match(e);return r.replace(n[2],t)}function getViewportSize(){var r=document,t=r.documentElement,e=r.body;return{width:t&&t.clientWidth||e&&e.offsetWidth||window.innerWidth||0,height:t&&t.clientHeight||e&&e.offsetHeight||window.innerHeight||0}}function getTimeStamp(){return new Date().getTime()}function getTimeStampBySecond(){return Date.parse(new Date)/1e3}function loadScript(r,t,e){var n=arguments.length>3&&arguments[3]!==void 0&&arguments[3],s=document.createElement("script");if(s.onload=s.onreadystatechange=function(){this.readyState&&this.readyState!=="loaded"&&this.readyState!=="complete"||(typeof t=="function"&&t(),s.onload=s.onreadystatechange=null,s.parentNode&&!n&&s.parentNode.removeChild(s))},e){for(var a in e)if(e.hasOwnProperty(a)){var l=e[a];l===null?s.removeAttribute(l):s.setAttribute(a,l)}}s.src=r,document.getElementsByTagName("head")[0].appendChild(s)}function serializeParams(r){var t=[],e=function(n,s){s=typeof s=="function"?s():s,s=s===null||s===void 0?"":s,t[t.length]=encodeURIComponent(n)+"="+encodeURIComponent(s)};return function n(s,a){var l=void 0,u=void 0,c=void 0;if(s)if(Array.isArray(a))for(l=0,u=a.length;l<u;l++)n(s+"["+(_typeof(a[l])==="object"&&a[l]?l:"")+"]",a[l]);else if(String(a)==="[object Object]")for(c in a)n(s+"["+c+"]",a[c]);else e(s,a);else if(Array.isArray(a))for(l=0,u=a.length;l<u;l++)e(a[l].name,a[l].value);else for(c in a)n(c,a[c]);return t}("",r).join("&")}function encodeHTML(r){return r.length?String(r).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\"/g,""").replace(/\'/g,"'").replace(/\//g,"/"):""}function isWebrtcUrl(r){return/webrtc:\/\//.test(r)||/\.sdp/.test(r)}function getperformance(){return window.performance||window.msPerformance||window.webkitPerformance||{}}function rangeCheck(r,t,e){if(typeof t!="number"||t<0||t>e)throw new Error("Failed to execute '"+r+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+e+").")}function getRange(r,t,e,n){return rangeCheck(r,n,e.length-1),e[n][t]}function createTimeRangesObj(r){return r===void 0||r.length===0?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:r.length,start:getRange.bind(null,"start",0,r),end:getRange.bind(null,"end",1,r)}}function createTimeRanges(r,t){return Array.isArray(r)?createTimeRangesObj(r):r===void 0||t===void 0?createTimeRangesObj():createTimeRangesObj([[r,t]])}function bufferedPercent(r,t){var e=0,n=void 0,s=void 0;if(!t)return 0;r&&r.length||(r=createTimeRanges(0,0));for(var a=0;a<r.length;a++)n=r.start(a),s=r.end(a),s>t&&(s=t),e+=s-n;return e/t}function MediaError(r){if(r instanceof MediaError)return r;typeof r=="number"?this.code=r:typeof r=="string"?this.message=r:isObject$1(r)&&(typeof r.code=="number"&&(this.code=r.code),assign(this,r)),this.message||(this.message=MediaError.defaultMessages[this.code]||"")}function SafeParseTuple(r,t){var e,n=null;try{e=JSON.parse(r,t)}catch(s){n=s}return[n,e]}function isPromise(r){return r!==void 0&&typeof r.then=="function"}function silencePromise(r){isPromise(r)&&r.then(null,function(t){})}function isFunction$1(r){if(!r)return!1;var t=toString$1.call(r);return t==="[object Function]"||typeof r=="function"&&t!=="[object RegExp]"||typeof window<"u"&&(r===window.setTimeout||r===window.alert||r===window.confirm||r===window.prompt)}function extend$1(){for(var r={},t=0;t<arguments.length;t++){var e=arguments[t];for(var n in e)hasOwnProperty.call(e,n)&&(r[n]=e[n])}return r}function forEachArray(r,t){for(var e=0;e<r.length;e++)t(r[e])}function isEmpty(r){for(var t in r)if(r.hasOwnProperty(t))return!1;return!0}function initParams(r,t,e){var n=r;return isFunction_1(t)?(e=t,typeof r=="string"&&(n={uri:r})):n=immutable(t,{uri:r}),n.callback=e,n}function createXHR(r,t,e){return t=initParams(r,t,e),_createXHR(t)}function _createXHR(r){function t(){u.readyState===4&&setTimeout(s,0)}function e(){var P=void 0;if(P=u.response?u.response:u.responseText||getXml(u),_)try{P=JSON.parse(P)}catch{}return P}function n(P){return clearTimeout(p),P instanceof Error||(P=new Error(""+(P||"Unknown XMLHttpRequest Error"))),P.statusCode=0,l(P,I)}function s(){if(!h){var P;clearTimeout(p),P=r.useXDR&&u.status===void 0?200:u.status===1223?204:u.status;var A=I,x=null;return P!==0?(A={body:e(),statusCode:P,method:b,headers:{},url:m,rawRequest:u},u.getAllResponseHeaders&&(A.headers=parseHeaders(u.getAllResponseHeaders()))):x=new Error("Internal XMLHttpRequest Error"),l(x,A,A.body)}}if(typeof r.callback>"u")throw new Error("callback argument missing");var a=!1,l=function(P,A,x){a||(a=!0,r.callback(P,A,x))},u=r.xhr||null;u||(u=r.cors||r.useXDR?new createXHR.XDomainRequest:new createXHR.XMLHttpRequest);var c,h,p,m=u.url=r.uri||r.url,b=u.method=r.method||"GET",f=r.body||r.data,g=u.headers=r.headers||{},v=!!r.sync,_=!1,I={body:void 0,headers:{},statusCode:0,method:b,url:m,rawRequest:u};if("json"in r&&r.json!==!1&&(_=!0,g.accept||g.Accept||(g.Accept="application/json"),b!=="GET"&&b!=="HEAD"&&(g["content-type"]||g["Content-Type"]||(g["Content-Type"]="application/json"),f=JSON.stringify(r.json===!0?f:r.json))),u.onreadystatechange=t,u.onload=s,u.onerror=n,u.onprogress=function(){},u.onabort=function(){h=!0},u.ontimeout=n,u.open(b,m,!v,r.username,r.password),v||(u.withCredentials=!!r.withCredentials),!v&&r.timeout>0&&(p=setTimeout(function(){if(!h){h=!0,u.abort("timeout");var P=new Error("XMLHttpRequest timeout");P.code="ETIMEDOUT",n(P)}},r.timeout)),u.setRequestHeader)for(c in g)g.hasOwnProperty(c)&&u.setRequestHeader(c,g[c]);else if(r.headers&&!isEmpty(r.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in r&&(u.responseType=r.responseType),"beforeSend"in r&&typeof r.beforeSend=="function"&&r.beforeSend(u),u.send(f||null),u}function getXml(r){if(r.responseType==="document")return r.responseXML;var t=r.responseXML&&r.responseXML.documentElement.nodeName==="parsererror";return r.responseType!==""||t?null:r.responseXML}function noop(){}function ParsingError(r,t){this.name="ParsingError",this.code=r.code,this.message=t||r.message}function parseTimeStamp(r){function t(n,s,a,l){return 3600*(0|n)+60*(0|s)+(0|a)+(0|l)/1e3}var e=r.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return e?e[3]?t(e[1],e[2],e[3].replace(":",""),e[4]):e[1]>59?t(e[1],e[2],0,e[4]):t(0,e[1],e[2],e[4]):null}function Settings(){this.values=_objCreate(null)}function parseOptions(r,t,e,n){var s=n?r.split(n):[r];for(var a in s)if(typeof s[a]=="string"){var l=s[a].split(e);if(l.length===2){var u=l[0],c=l[1];t(u,c)}}}function parseCue(r,t,e){function n(){var l=parseTimeStamp(r);if(l===null)throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed timestamp: "+a);return r=r.replace(/^[^\sa-zA-Z-]+/,""),l}function s(){r=r.replace(/^\s+/,"")}var a=r;if(s(),t.startTime=n(),s(),r.substr(0,3)!=="-->")throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+a);r=r.substr(3),s(),t.endTime=n(),s(),function(l,u){var c=new Settings;parseOptions(l,function(h,p){switch(h){case"region":for(var m=e.length-1;m>=0;m--)if(e[m].id===p){c.set(h,e[m].region);break}break;case"vertical":c.alt(h,p,["rl","lr"]);break;case"line":var b=p.split(","),f=b[0];c.integer(h,f),c.percent(h,f)&&c.set("snapToLines",!1),c.alt(h,f,["auto"]),b.length===2&&c.alt("lineAlign",b[1],["start","middle","end"]);break;case"position":b=p.split(","),c.percent(h,b[0]),b.length===2&&c.alt("positionAlign",b[1],["start","middle","end"]);break;case"size":c.percent(h,p);break;case"align":c.alt(h,p,["start","middle","end","left","right"])}},/:/,/\s/),u.region=c.get("region",null),u.vertical=c.get("vertical",""),u.line=c.get("line","auto"),u.lineAlign=c.get("lineAlign","start"),u.snapToLines=c.get("snapToLines",!0),u.size=c.get("size",100),u.align=c.get("align","middle"),u.position=c.get("position",{start:0,left:0,middle:50,end:100,right:100},u.align),u.positionAlign=c.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},u.align)}(r,t)}function parseContent(r,t){function e(p){return ESCAPE[p]}for(var n,s=r.document.createElement("div"),a=s,l=[];(n=function(){if(!t)return null;var p=t.match(/^([^<]*)(<[^>]+>?)?/);return function(m){return t=t.substr(m.length),m}(p[1]?p[1]:p[2])}())!==null;)if(n[0]!=="<")a.appendChild(r.document.createTextNode(function(p){for(;h=p.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)p=p.replace(h[0],e);return p}(n)));else{if(n[1]==="/"){l.length&&l[l.length-1]===n.substr(2).replace(">","")&&(l.pop(),a=a.parentNode);continue}var u,c=parseTimeStamp(n.substr(1,n.length-2));if(c){u=r.document.createProcessingInstruction("timestamp",c),a.appendChild(u);continue}var h=n.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!h||!(u=function(p,m){var b=TAG_NAME[p];if(!b)return null;var f=r.document.createElement(b);f.localName=b;var g=TAG_ANNOTATION[p];return g&&m&&(f[g]=m.trim()),f}(h[1],h[3]))||!function(p,m){return!NEEDS_PARENT[m.localName]||NEEDS_PARENT[m.localName]===p.localName}(a,u))continue;h[2]&&(u.className=h[2].substr(1).replace("."," ")),l.push(h[1]),a.appendChild(u),a=u}return s}function isStrongRTLChar(r){for(var t=0;t<strongRTLRanges.length;t++){var e=strongRTLRanges[t];if(r>=e[0]&&r<=e[1])return!0}return!1}function determineBidi(r){function t(u,c){for(var h=c.childNodes.length-1;h>=0;h--)u.push(c.childNodes[h])}function e(u){if(!u||!u.length)return null;var c=u.pop(),h=c.textContent||c.innerText;if(h){var p=h.match(/^.*(\n|\r)/);return p?(u.length=0,p[0]):h}return c.tagName==="ruby"?e(u):c.childNodes?(t(u,c),e(u)):void 0}var n,s=[],a="";if(!r||!r.childNodes)return"ltr";for(t(s,r);a=e(s);)for(var l=0;l<a.length;l++)if(n=a.charCodeAt(l),isStrongRTLChar(n))return"rtl";return"ltr"}function computeLinePos(r){if(typeof r.line=="number"&&(r.snapToLines||r.line>=0&&r.line<=100))return r.line;if(!r.track||!r.track.textTrackList||!r.track.textTrackList.mediaElement)return-1;for(var t=r.track,e=t.textTrackList,n=0,s=0;s<e.length&&e[s]!==t;s++)e[s].mode==="showing"&&n++;return-1*++n}function StyleBox(){}function CueStyleBox(r,t,e){var n=/MSIE\s8\.0/.test(navigator.userAgent),s="rgba(255, 255, 255, 1)",a="rgba(0, 0, 0, 0.8)";n&&(s="rgb(255, 255, 255)",a="rgb(0, 0, 0)"),StyleBox.call(this),this.cue=t,this.cueDiv=parseContent(r,t.text);var l={color:s,backgroundColor:a,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};n||(l.writingMode=t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl",l.unicodeBidi="plaintext"),this.applyStyles(l,this.cueDiv),this.div=r.document.createElement("div"),l={textAlign:t.align==="middle"?"center":t.align,font:e.font,whiteSpace:"pre-line",position:"absolute"},n||(l.direction=determineBidi(this.cueDiv),l.writingMode=t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(l),this.div.appendChild(this.cueDiv);var u=0;switch(t.positionAlign){case"start":u=t.position;break;case"middle":u=t.position-t.size/2;break;case"end":u=t.position-t.size}t.vertical===""?this.applyStyles({left:this.formatStyle(u,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(u,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(c){this.applyStyles({top:this.formatStyle(c.top,"px"),bottom:this.formatStyle(c.bottom,"px"),left:this.formatStyle(c.left,"px"),right:this.formatStyle(c.right,"px"),height:this.formatStyle(c.height,"px"),width:this.formatStyle(c.width,"px")})}}function BoxPosition(r){var t,e,n,s,a=/MSIE\s8\.0/.test(navigator.userAgent);if(r.div){e=r.div.offsetHeight,n=r.div.offsetWidth,s=r.div.offsetTop;var l=(l=r.div.childNodes)&&(l=l[0])&&l.getClientRects&&l.getClientRects();r=r.div.getBoundingClientRect(),t=l?Math.max(l[0]&&l[0].height||0,r.height/l.length):0}this.left=r.left,this.right=r.right,this.top=r.top||s,this.height=r.height||e,this.bottom=r.bottom||s+(r.height||e),this.width=r.width||n,this.lineHeight=t!==void 0?t:r.lineHeight,a&&!this.lineHeight&&(this.lineHeight=13)}function moveBoxToLinePosition(r,t,e,n){var s=new BoxPosition(t),a=t.cue,l=computeLinePos(a),u=[];if(a.snapToLines){var c;switch(a.vertical){case"":u=["+y","-y"],c="height";break;case"rl":u=["+x","-x"],c="width";break;case"lr":u=["-x","+x"],c="width"}var h=s.lineHeight,p=h*Math.round(l),m=e[c]+h,b=u[0];Math.abs(p)>m&&(p=p<0?-1:1,p*=Math.ceil(m/h)*h),l<0&&(p+=a.vertical===""?e.height:e.width,u=u.reverse()),s.move(b,p)}else{var f=s.lineHeight/e.height*100;switch(a.lineAlign){case"middle":l-=f/2;break;case"end":l-=f}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(l,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(l,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(l,"%")})}u=["+y","-x","+x","-y"],s=new BoxPosition(t)}var g=function(v,_){for(var I,P=new BoxPosition(v),A=1,x=0;x<_.length;x++){for(;v.overlapsOppositeAxis(e,_[x])||v.within(e)&&v.overlapsAny(n);)v.move(_[x]);if(v.within(e))return v;var k=v.intersectPercentage(e);A>k&&(I=new BoxPosition(v),A=k),v=new BoxPosition(P)}return I||P}(s,u);t.move(g.toCSSCompatValues(e))}function WebVTT$1(){}function findDirectionSetting(r){return typeof r=="string"&&!!directionSetting[r.toLowerCase()]&&r.toLowerCase()}function findAlignSetting(r){return typeof r=="string"&&!!alignSetting[r.toLowerCase()]&&r.toLowerCase()}function extend$2(r){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)r[n]=e[n]}return r}function VTTCue(r,t,e){var n=this,s=/MSIE\s8\.0/.test(navigator.userAgent),a={};s?n=document.createElement("custom"):a.enumerable=!0,n.hasBeenReset=!1;var l="",u=!1,c=r,h=t,p=e,m=null,b="",f=!0,g="auto",v="start",_=50,I="middle",P=50,A="middle";if(Object.defineProperty(n,"id",extend$2({},a,{get:function(){return l},set:function(x){l=""+x}})),Object.defineProperty(n,"pauseOnExit",extend$2({},a,{get:function(){return u},set:function(x){u=!!x}})),Object.defineProperty(n,"startTime",extend$2({},a,{get:function(){return c},set:function(x){if(typeof x!="number")throw new TypeError("Start time must be set to a number.");c=x,this.hasBeenReset=!0}})),Object.defineProperty(n,"endTime",extend$2({},a,{get:function(){return h},set:function(x){if(typeof x!="number")throw new TypeError("End time must be set to a number.");h=x,this.hasBeenReset=!0}})),Object.defineProperty(n,"text",extend$2({},a,{get:function(){return p},set:function(x){p=""+x,this.hasBeenReset=!0}})),Object.defineProperty(n,"region",extend$2({},a,{get:function(){return m},set:function(x){m=x,this.hasBeenReset=!0}})),Object.defineProperty(n,"vertical",extend$2({},a,{get:function(){return b},set:function(x){var k=findDirectionSetting(x);if(k===!1)throw new SyntaxError("An invalid or illegal string was specified.");b=k,this.hasBeenReset=!0}})),Object.defineProperty(n,"snapToLines",extend$2({},a,{get:function(){return f},set:function(x){f=!!x,this.hasBeenReset=!0}})),Object.defineProperty(n,"line",extend$2({},a,{get:function(){return g},set:function(x){if(typeof x!="number"&&x!==autoKeyword)throw new SyntaxError("An invalid number or illegal string was specified.");g=x,this.hasBeenReset=!0}})),Object.defineProperty(n,"lineAlign",extend$2({},a,{get:function(){return v},set:function(x){var k=findAlignSetting(x);if(!k)throw new SyntaxError("An invalid or illegal string was specified.");v=k,this.hasBeenReset=!0}})),Object.defineProperty(n,"position",extend$2({},a,{get:function(){return _},set:function(x){if(x<0||x>100)throw new Error("Position must be between 0 and 100.");_=x,this.hasBeenReset=!0}})),Object.defineProperty(n,"positionAlign",extend$2({},a,{get:function(){return I},set:function(x){var k=findAlignSetting(x);if(!k)throw new SyntaxError("An invalid or illegal string was specified.");I=k,this.hasBeenReset=!0}})),Object.defineProperty(n,"size",extend$2({},a,{get:function(){return P},set:function(x){if(x<0||x>100)throw new Error("Size must be between 0 and 100.");P=x,this.hasBeenReset=!0}})),Object.defineProperty(n,"align",extend$2({},a,{get:function(){return A},set:function(x){var k=findAlignSetting(x);if(!k)throw new SyntaxError("An invalid or illegal string was specified.");A=k,this.hasBeenReset=!0}})),n.displayState=void 0,s)return n}function findScrollSetting(r){return typeof r=="string"&&!!scrollSetting[r.toLowerCase()]&&r.toLowerCase()}function isValidPercentValue(r){return typeof r=="number"&&r>=0&&r<=100}function VTTRegion(){var r=100,t=3,e=0,n=100,s=0,a=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return r},set:function(u){if(!isValidPercentValue(u))throw new Error("Width must be between 0 and 100.");r=u}},lines:{enumerable:!0,get:function(){return t},set:function(u){if(typeof u!="number")throw new TypeError("Lines must be set to a number.");t=u}},regionAnchorY:{enumerable:!0,get:function(){return n},set:function(u){if(!isValidPercentValue(u))throw new Error("RegionAnchorX must be between 0 and 100.");n=u}},regionAnchorX:{enumerable:!0,get:function(){return e},set:function(u){if(!isValidPercentValue(u))throw new Error("RegionAnchorY must be between 0 and 100.");e=u}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(u){if(!isValidPercentValue(u))throw new Error("ViewportAnchorY must be between 0 and 100.");a=u}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(u){if(!isValidPercentValue(u))throw new Error("ViewportAnchorX must be between 0 and 100.");s=u}},scroll:{enumerable:!0,get:function(){return l},set:function(u){var c=findScrollSetting(u);if(c===!1)throw new SyntaxError("An invalid or illegal string was specified.");l=c}}})}function createTrackHelper(r,t,e,n){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},a=r.textTracks();s.kind=t,e&&(s.label=e),n&&(s.language=n),s.tech=r;var l=new ALL.text.TrackClass(s);return a.addTrack(l),l}function use(r,t){middlewares[r]=middlewares[r]||[],middlewares[r].push(t)}function setSource(r,t,e){r.setTimeout(function(){return setSourceHelper(t,middlewares[t.type],e,r)},1)}function setTech(r,t){r.forEach(function(e){return e.setTech&&e.setTech(t)})}function get$1(r,t,e){return r.reduceRight(middlewareIterator(e),t[e]())}function set$1(r,t,e,n){return t[e](r.reduce(middlewareIterator(e),n))}function middlewareIterator(r){return function(t,e){return e[r]?e[r](t):t}}function setSourceHelper(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],e=arguments[2],n=arguments[3],s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0&&arguments[5],l=t[0],u=t.slice(1);if(typeof l=="string")setSourceHelper(r,middlewares[l],e,n,s,a);else if(l){var c=l(n);c.setSource(assign({},r),function(h,p){if(h)return setSourceHelper(r,u,e,n,s,a);s.push(c),setSourceHelper(p,r.type===p.type?u:middlewares[p.type],e,n,s,a)})}else u.length?setSourceHelper(r,u,e,n,s,a):a?e(r,s):setSourceHelper(r,middlewares["*"],e,n,s,!0)}function constructColor(r,t){return"rgba("+parseInt(r[1]+r[1],16)+","+parseInt(r[2]+r[2],16)+","+parseInt(r[3]+r[3],16)+","+t+")"}function tryUpdateStyle(r,t,e){try{r.style[t]=e}catch{return}}function formatTime(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r;r=r<0?0:r;var e=Math.floor(r%60),n=Math.floor(r/60%60),s=Math.floor(r/3600),a=Math.floor(t/60%60),l=Math.floor(t/3600);return(isNaN(r)||r===1/0)&&(s=n=e="-"),s=s>0||l>0?s+":":"",n=((s||a>=10)&&n<10?"0"+n:n)+":",e=e<10?"0"+e:e,s+n+e}function parseOptionValue(r,t){if(t&&(r=t(r)),r&&r!=="none")return r}function getSelectedOptionValue(r,t){return parseOptionValue(r.options[r.options.selectedIndex].value,t)}function setSelectedOption(r,t,e){if(t){for(var n=0;n<r.options.length;n++)if(parseOptionValue(r.options[n].value,e)===t){r.selectedIndex=n;break}}}function videojs(r,t,e){var n=void 0;if(typeof r=="string"){var s=videojs.getPlayers();if(r.indexOf("#")===0&&(r=r.slice(1)),s[r])return t&&log$2.warn('Player "'+r+'" is already initialised. Options will not be applied.'),e&&s[r].ready(e),s[r];n=$("#"+r)}else n=r;if(!n||!n.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");if(n.player||Player.players[n.playerId])return n.player||Player.players[n.playerId];isEl(n)&&!document_1.body.contains(n)&&log$2.warn("The element supplied is not included in the DOM"),t=t||{},videojs.hooks("beforesetup").forEach(function(u){var c=u(n,mergeOptions(t));if(!isObject$1(c)||Array.isArray(c))return void log$2.error("please return an object in beforesetup hooks");t=mergeOptions(t,c)});var a=Component.getComponent("Player"),l=new a(n,t,e);return videojs.hooks("setup").forEach(function(u){return u(l)}),l}function toObject(r){if(r==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}function shouldUseNative(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de",Object.getOwnPropertyNames(r)[0]==="5")return!1;for(var t={},e=0;e<10;e++)t["_"+String.fromCharCode(e)]=e;if(Object.getOwnPropertyNames(t).map(function(s){return t[s]}).join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(s){n[s]=s}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}function decodeComponents(r,t){try{return decodeURIComponent(r.join(""))}catch{}if(r.length===1)return r;t=t||1;var e=r.slice(0,t),n=r.slice(t);return Array.prototype.concat.call([],decodeComponents(e),decodeComponents(n))}function decode(r){try{return decodeURIComponent(r)}catch{for(var t=r.match(singleMatcher),e=1;e<t.length;e++)r=decodeComponents(t,e).join(""),t=r.match(singleMatcher);return r}}function customDecodeURIComponent(r){for(var t={"%FE%FF":"��","%FF%FE":"��"},e=multiMatcher.exec(r);e;){try{t[e[0]]=decodeURIComponent(e[0])}catch{var n=decode(e[0]);n!==e[0]&&(t[e[0]]=n)}e=multiMatcher.exec(r)}t["%C2"]="�";for(var s=Object.keys(t),a=0;a<s.length;a++){var l=s[a];r=r.replace(new RegExp(l,"g"),t[l])}return r}function encoderForArrayFormat(r){switch(r.arrayFormat){case"index":return function(t,e,n){return e===null?[encode(t,r),"[",n,"]"].join(""):[encode(t,r),"[",encode(n,r),"]=",encode(e,r)].join("")};case"bracket":return function(t,e){return e===null?encode(t,r):[encode(t,r),"[]=",encode(e,r)].join("")};default:return function(t,e){return e===null?encode(t,r):[encode(t,r),"=",encode(e,r)].join("")}}}function parserForArrayFormat(r){var t;switch(r.arrayFormat){case"index":return function(e,n,s){if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t)return void(s[e]=n);s[e]===void 0&&(s[e]={}),s[e][t[1]]=n};case"bracket":return function(e,n,s){return t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?s[e]===void 0?void(s[e]=[n]):void(s[e]=[].concat(s[e],n)):void(s[e]=n)};default:return function(e,n,s){if(s[e]===void 0)return void(s[e]=n);s[e]=[].concat(s[e],n)}}}function encode(r,t){return t.encode?t.strict?strictUriEncode(r):encodeURIComponent(r):r}function keysSorter(r){return Array.isArray(r)?r.sort():typeof r=="object"?keysSorter(Object.keys(r)).sort(function(t,e){return Number(t)-Number(e)}).map(function(t){return r[t]}):r}function extract(r){var t=r.indexOf("?");return t===-1?"":r.slice(t+1)}function parse(r,t){t=objectAssign({arrayFormat:"none"},t);var e=parserForArrayFormat(t),n=Object.create(null);return typeof r!="string"?n:(r=r.trim().replace(/^[?#&]/,""))?(r.split("&").forEach(function(s){var a=s.replace(/\+/g," ").split("="),l=a.shift(),u=a.length>0?a.join("="):void 0;u=u===void 0?null:decodeUriComponent(u),e(decodeUriComponent(l),u,n)}),Object.keys(n).sort().reduce(function(s,a){var l=n[a];return l&&typeof l=="object"&&!Array.isArray(l)?s[a]=keysSorter(l):s[a]=l,s},Object.create(null))):n}function jsonp(r,t,e){function n(){h.parentNode&&h.parentNode.removeChild(h),window[u]="",p&&clearTimeout(p)}function s(){window[u]&&n()}typeof t=="function"&&(e=t,t={}),t||(t={});var a,l=t.prefix||"__jp",u=t.name||l+count++,c=t.funcKey||"callback";a=_typeof(t.param)=="object"?queryString.stringify(t.param):t.param;var h,p,m=t.timeout!=null?t.timeout:6e3,b=encodeURIComponent,f=document.getElementsByTagName("script")[0]||document.head;return m&&(p=setTimeout(function(){n(),e&&e(new Error("Timeout"))},m)),window[u]=function(g){n(),e&&e(null,g)},r+=(~r.indexOf("?")?"&":"?")+a+"&"+c+"="+b(u),r=r.replace("?&","?"),h=document.createElement("script"),h.setAttribute("src",r),h.setAttribute("async",!0),h.onload=function(g){},h.onreadystatechange=function(){this.readyState==="loaded"&&window[u]&&(n(),e&&e(new Error("ServerError")))},h.onerror=function(g){n(),e&&e(new Error("ServerError"))},f.parentNode.insertBefore(h,f),s}function mountHlsProvider(r){if(videojs.browser.IS_IOS&&videojs.browser.IS_MQQ)return!1;if(videojs.browser.IS_ENABLED_MSE&&(!videojs.browser.IS_MAC||!videojs.browser.IS_SAFARI)||videojs.browser.IS_SIMULATOR||r)try{var t=videojs.getTech&&videojs.getTech("Html5");t&&t.registerSourceHandler(HlsSourceHandler,0)}catch{}}function handlePlaybackMetadataLoaded(r,t){function e(h){return"dash-audio-"+h}function n(h,p){return h.find(function(m){return e(m.index)===p.id})}var s=r.dash.mediaPlayer,a=s.getTracksFor("audio"),l=r.audioTracks();l.length&&t.clearTracks(["audio"]);var u=s.getCurrentTrackFor("audio");a.forEach(function(h){var p=h.lang;h.roles&&h.roles.length&&(p+=" ("+h.roles.join(", ")+")"),l.addTrack(new videojs.AudioTrack({enabled:h===u,id:e(h.index),kind:h.kind||"main",label:p,language:h.lang}))});var c=function(){for(var h=0;h<l.length;h++){var p=l[h];if(p.enabled){var m=n(a,p);s.setCurrentTrack(m)}}};l.addEventListener("change",c),r.dash.mediaPlayer.on(window.dashjs.MediaPlayer.events.STREAM_TEARDOWN_COMPLETE,function(){l.removeEventListener("change",c)})}function setupAudioTracks(r,t){r.dash.mediaPlayer.on(window.dashjs.MediaPlayer.events.PLAYBACK_METADATA_LOADED,handlePlaybackMetadataLoaded.bind(null,r,t))}function find(r,t){for(var e=0;e<r.length;e++)if(t(r[e]))return r[e]}function attachDashTextTracksToVideojs(r,t,e){function n(){for(var l=r.dash.mediaPlayer,u=r.textTracks(),c=-1,h=0;h<u.length;h+=1)(function(p){var m=u[p];if(m.mode==="showing"){var b=find(s,function(g){return g.textTrack===m}),f=b?b.dashTrack:null;f&&(c=e.indexOf(f))}})(h);c!==l.getCurrentTextTrackIndex()&&l.setTextTrack(c)}var s=[],a=e.map(function(l){return{dashTrack:l,trackConfig:{label:l.lang,language:l.lang,srclang:l.lang,kind:l.kind}}}).map(function(l){var u=l.trackConfig,c=l.dashTrack,h=r.addRemoteTextTrack(u,!1);return s.push({textTrack:h.track,dashTrack:c}),h});return r.textTracks().on("change",n),r.dash.mediaPlayer.on(window_1.dashjs.MediaPlayer.events.STREAM_TEARDOWN_COMPLETE,function(){r.textTracks().off("change",n)}),n(),a}function setupTextTracks(r,t,e){function n(){a.forEach(r.removeRemoteTextTrack.bind(r)),a=[]}function s(u){var c=(u.index,u.tracks);l.off(window_1.dashjs.MediaPlayer.events.TEXT_TRACKS_ADDED,s),n(),c.length&&(a=attachDashTextTracksToVideojs(r,t,c))}window_1.VTTCue&&!/\[native code\]/.test(window_1.VTTCue.toString())&&(window_1.VTTCue=!1);var a=[];if(t.featuresNativeTextTracks)return void videojs.log.error("You must pass {html: {nativeCaptions: false}} in the videojs constructor to use text tracks in videojs-contrib-dash");var l=r.dash.mediaPlayer;l.on(window_1.dashjs.MediaPlayer.events.TEXT_TRACKS_ADDED,s),l.on(window_1.dashjs.MediaPlayer.events.CAN_PLAY,function(){l.off(window_1.dashjs.MediaPlayer.events.TEXT_TRACKS_ADDED,s)})}function mountDashProvider(r){(window_1.MediaSource||r)&&videojs.getTech("Html5").registerSourceHandler(videojs.DashSourceHandler(),0)}function getTemplate(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"fill",e=r,n="draw-"+t;return[`<svg height="100%" width="100%" viewBox="0 0 484 348">
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var A=document.createElement("style");A.appendChild(document.createTextNode('@charset "UTF-8";.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-modal-dialog,.vjs-button>.vjs-icon-placeholder:before,.vjs-modal-dialog .vjs-modal-dialog-content{position:absolute;top:0;left:0;width:100%;height:100%}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.vjs-button>.vjs-icon-placeholder:before{text-align:center}@font-face{font-family:VideoJS;src:url(data:application/vnd.ms-fontobject;base64,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dHRwOi8vZm9udGVsbG8uY29tAFYAaQBkAGUAbwBKAFMAUgBlAGcAdQBsAGEAcgBWAGkAZABlAG8ASgBTAFYAaQBkAGUAbwBKAFMAVgBlAHIAcwBpAG8AbgAgADEALgAwAFYAaQBkAGUAbwBKAFMARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAAAAgAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhAQIBAwEEAQUBBgEHAQgBCQEKAQsBDAENAQ4BDwEQAREBEgETARQBFQEWARcBGAEZARoBGwEcAR0BHgEfASABIQEiAARwbGF5C3BsYXktY2lyY2xlBXBhdXNlC3ZvbHVtZS1tdXRlCnZvbHVtZS1sb3cKdm9sdW1lLW1pZAt2b2x1bWUtaGlnaBBmdWxsc2NyZWVuLWVudGVyD2Z1bGxzY3JlZW4tZXhpdAZzcXVhcmUHc3Bpbm5lcglzdWJ0aXRsZXMIY2FwdGlvbnMIY2hhcHRlcnMFc2hhcmUDY29nBmNpcmNsZQ5jaXJjbGUtb3V0bGluZRNjaXJjbGUtaW5uZXItY2lyY2xlAmhkBmNhbmNlbAZyZXBsYXkIZmFjZWJvb2sFZ3BsdXMIbGlua2VkaW4HdHdpdHRlcgZ0dW1ibHIJcGludGVyZXN0EWF1ZGlvLWRlc2NyaXB0aW9uBWF1ZGlvCW5leHQtaXRlbQ1wcmV2aW91cy1pdGVtAAAAAA==) format("eot")}@font-face{font-family:VideoJS;src:url(data:application/font-woff;charset=utf-8;base64,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) format("woff"),url(data:application/x-font-ttf;charset=utf-8;base64,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AG8AbgB0AGUAbABsAG8AIABwAHIAbwBqAGUAYwB0AC4AaAB0AHQAcAA6AC8ALwBmAG8AbgB0AGUAbABsAG8ALgBjAG8AbQAAAAIAAAAAAAAAEQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIQECAQMBBAEFAQYBBwEIAQkBCgELAQwBDQEOAQ8BEAERARIBEwEUARUBFgEXARgBGQEaARsBHAEdAR4BHwEgASEBIgAEcGxheQtwbGF5LWNpcmNsZQVwYXVzZQt2b2x1bWUtbXV0ZQp2b2x1bWUtbG93CnZvbHVtZS1taWQLdm9sdW1lLWhpZ2gQZnVsbHNjcmVlbi1lbnRlcg9mdWxsc2NyZWVuLWV4aXQGc3F1YXJlB3NwaW5uZXIJc3VidGl0bGVzCGNhcHRpb25zCGNoYXB0ZXJzBXNoYXJlA2NvZwZjaXJjbGUOY2lyY2xlLW91dGxpbmUTY2lyY2xlLWlubmVyLWNpcmNsZQJoZAZjYW5jZWwGcmVwbGF5CGZhY2Vib29rBWdwbHVzCGxpbmtlZGluB3R3aXR0ZXIGdHVtYmxyCXBpbnRlcmVzdBFhdWRpby1kZXNjcmlwdGlvbgVhdWRpbwluZXh0LWl0ZW0NcHJldmlvdXMtaXRlbQAAAAA=) format("truetype");font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder,.vjs-icon-play{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder:before,.vjs-icon-play:before{content:""}.vjs-icon-play-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-play-circle:before{content:""}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder,.vjs-icon-pause{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before,.vjs-icon-pause:before{content:""}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder,.vjs-icon-volume-mute{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before,.vjs-icon-volume-mute:before{content:""}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder,.vjs-icon-volume-low{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before,.vjs-icon-volume-low:before{content:""}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder,.vjs-icon-volume-mid{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before,.vjs-icon-volume-mid:before{content:""}.video-js .vjs-mute-control .vjs-icon-placeholder,.vjs-icon-volume-high{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control .vjs-icon-placeholder:before,.vjs-icon-volume-high:before{content:""}.video-js .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-enter:before{content:""}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-exit:before{content:""}.vjs-icon-square{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-square:before{content:""}.vjs-icon-spinner{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-spinner:before{content:""}.video-js .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subtitles-button .vjs-icon-placeholder,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-subtitles{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subtitles-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-subtitles:before{content:""}.video-js .vjs-captions-button .vjs-icon-placeholder,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-captions{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-captions-button .vjs-icon-placeholder:before,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-captions:before{content:""}.video-js .vjs-chapters-button .vjs-icon-placeholder,.vjs-icon-chapters{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-chapters-button .vjs-icon-placeholder:before,.vjs-icon-chapters:before{content:""}.vjs-icon-share{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-share:before{content:""}.vjs-icon-cog{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cog:before{content:""}.video-js .vjs-play-progress,.video-js .vjs-volume-level,.vjs-icon-circle{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-progress:before,.video-js .vjs-volume-level:before,.vjs-icon-circle:before{content:""}.vjs-icon-circle-outline{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-outline:before{content:""}.vjs-icon-circle-inner-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-inner-circle:before{content:""}.vjs-icon-hd{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-hd:before{content:""}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder,.vjs-icon-cancel{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before,.vjs-icon-cancel:before{content:""}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder,.vjs-icon-replay{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before,.vjs-icon-replay:before{content:""}.vjs-icon-facebook{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-facebook:before{content:""}.vjs-icon-gplus{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-gplus:before{content:""}.vjs-icon-linkedin{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-linkedin:before{content:""}.vjs-icon-twitter{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-twitter:before{content:""}.vjs-icon-tumblr{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-tumblr:before{content:""}.vjs-icon-pinterest{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-pinterest:before{content:""}.video-js .vjs-descriptions-button .vjs-icon-placeholder,.vjs-icon-audio-description{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-descriptions-button .vjs-icon-placeholder:before,.vjs-icon-audio-description:before{content:""}.video-js .vjs-audio-button .vjs-icon-placeholder,.vjs-icon-audio{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-audio-button .vjs-icon-placeholder:before,.vjs-icon-audio:before{content:""}.vjs-icon-next-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-next-item:before{content:""}.vjs-icon-previous-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-previous-item:before{content:""}.video-js{display:block;vertical-align:top;box-sizing:border-box;color:#fff;background-color:#000;position:relative;padding:0;font-size:10px;line-height:1;font-weight:400;font-style:normal;font-family:Arial,Helvetica,sans-serif;word-break:initial}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js[tabindex="-1"]{outline:0}.video-js *,.video-js :after,.video-js :before{box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin:0}.video-js.vjs-16-9,.video-js.vjs-4-3,.video-js.vjs-fluid{width:100%;max-width:100%;height:0}.video-js.vjs-16-9{padding-top:56.25%}.video-js.vjs-4-3{padding-top:75%}.video-js.vjs-fill{width:100%;height:100%}.video-js .vjs-tech{position:absolute;top:0;left:0;width:100%;height:100%}body.vjs-full-window{padding:0;margin:0;height:100%;overflow-y:auto}.vjs-full-window .video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0}.video-js.vjs-fullscreen{width:100%!important;height:100%!important;padding-top:0!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-hidden{display:none!important}.vjs-disabled{opacity:.5;cursor:default}.video-js .vjs-offscreen{height:1px;left:-9999px;position:absolute;top:0;width:1px}.vjs-lock-showing{display:block!important;opacity:1;visibility:visible}.vjs-no-js{padding:20px;color:#fff;background-color:#000;font-size:18px;font-family:Arial,Helvetica,sans-serif;text-align:center;width:300px;height:150px;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#66a8cc}.video-js .vjs-big-play-button{font-size:3em;line-height:1.5em;height:1.5em;width:3em;display:block;position:absolute;top:10px;left:10px;padding:0;cursor:pointer;opacity:1;border:.06666em solid #fff;background-color:#2b333f;background-color:#2b333fb3;-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em;-webkit-transition:all .4s;-moz-transition:all .4s;-ms-transition:all .4s;-o-transition:all .4s;transition:all .4s}.vjs-big-play-centered .vjs-big-play-button{top:50%;left:50%;margin-top:-.75em;margin-left:-1.5em}.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{border-color:#fff;background-color:#73859f;background-color:#73859f80;-webkit-transition:all 0s;-moz-transition:all 0s;-ms-transition:all 0s;-o-transition:all 0s;transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-error .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-controls .vjs-big-play-button{display:none}.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause .vjs-big-play-button{display:block}.video-js button{background:0 0;border:none;color:inherit;display:inline-block;overflow:visible;font-size:inherit;line-height:inherit;text-transform:none;text-decoration:none;transition:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vjs-control .vjs-button{width:100%;height:100%}.video-js .vjs-control.vjs-close-button{cursor:pointer;height:3em;position:absolute;right:0;top:.5em;z-index:2}.video-js .vjs-modal-dialog{background:rgba(0,0,0,.8);background:-webkit-linear-gradient(-90deg,rgba(0,0,0,.8),rgba(255,255,255,0));background:linear-gradient(180deg,rgba(0,0,0,.8),rgba(255,255,255,0));overflow:auto;box-sizing:content-box}.video-js .vjs-modal-dialog>*{box-sizing:border-box}.vjs-modal-dialog .vjs-modal-dialog-content{font-size:1.2em;line-height:1.5;padding:20px 24px;z-index:1}.vjs-menu-button{cursor:pointer}.vjs-menu-button.vjs-disabled{cursor:default}.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu{display:none}.vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;font-family:Arial,Helvetica,sans-serif;overflow:auto;box-sizing:content-box}.vjs-menu .vjs-menu-content>*{box-sizing:border-box}.vjs-scrubbing .vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{list-style:none;margin:0;padding:.2em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.vjs-menu li.vjs-menu-item:focus,.vjs-menu li.vjs-menu-item:hover{background-color:#73859f;background-color:#73859f80}.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2b333f}.vjs-menu li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em;font-weight:700;cursor:default}.vjs-menu-button-popup .vjs-menu{display:none;position:absolute;bottom:0;width:10em;left:-3em;height:0;margin-bottom:1.5em;border-top-color:#2b333fb3}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2b333f;background-color:#2b333fb3;position:absolute;width:100%;bottom:1.5em;max-height:15em}.vjs-menu-button-popup .vjs-menu.vjs-lock-showing,.vjs-workinghover .vjs-menu-button-popup:hover .vjs-menu{display:block}.video-js .vjs-menu-button-inline{-webkit-transition:all .4s;-moz-transition:all .4s;-ms-transition:all .4s;-o-transition:all .4s;transition:all .4s;overflow:hidden}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline{width:12em}.vjs-menu-button-inline .vjs-menu{opacity:0;height:100%;width:auto;position:absolute;left:4em;top:0;padding:0;margin:0;-webkit-transition:all .4s;-moz-transition:all .4s;-ms-transition:all .4s;-o-transition:all .4s;transition:all .4s}.vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline:hover .vjs-menu{display:block;opacity:1}.vjs-no-flex .vjs-menu-button-inline .vjs-menu{display:block;opacity:1;position:relative;width:auto}.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:hover .vjs-menu{width:auto}.vjs-menu-button-inline .vjs-menu-content{width:auto;height:100%;margin:0;overflow:hidden}.video-js .vjs-control-bar{display:none;width:100%;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#2b333f;background-color:#2b333fb3}.vjs-has-started .vjs-control-bar{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;visibility:visible;opacity:1;-webkit-transition:visibility .1s,opacity .1s;-moz-transition:visibility .1s,opacity .1s;-ms-transition:visibility .1s,opacity .1s;-o-transition:visibility .1s,opacity .1s;transition:visibility .1s,opacity .1s}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:visible;opacity:0;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-ms-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.vjs-controls-disabled .vjs-control-bar,.vjs-error .vjs-control-bar,.vjs-using-native-controls .vjs-control-bar{display:none!important}.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible}.vjs-has-started.vjs-no-flex .vjs-control-bar{display:table}.video-js .vjs-control{position:relative;text-align:center;margin:0;padding:0;height:100%;width:4em;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none}.vjs-button>.vjs-icon-placeholder:before{font-size:1.8em;line-height:1.67}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js .vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-no-flex .vjs-control{display:table-cell;vertical-align:middle}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{cursor:pointer;-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;min-width:4em}.video-js .vjs-progress-control.disabled{cursor:default}.vjs-live .vjs-progress-control{display:none}.vjs-no-flex .vjs-progress-control{width:auto}.video-js .vjs-progress-holder{-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto;-webkit-transition:all .2s;-moz-transition:all .2s;-ms-transition:all .2s;-o-transition:all .2s;transition:all .2s;height:.3em}.video-js .vjs-progress-control .vjs-progress-holder{margin:0 10px}.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.666666666666666666em}.video-js .vjs-progress-control:hover .vjs-progress-holder.disabled{font-size:1em}.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div,.video-js .vjs-progress-holder .vjs-play-progress{position:absolute;display:block;height:100%;margin:0;padding:0;width:0;left:0;top:0}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{font-size:.9em;position:absolute;right:-.5em;top:-.333333333333333em;z-index:1}.video-js .vjs-load-progress{background:#bfc7d3;background:rgba(115,133,159,.5)}.video-js .vjs-load-progress div{background:#fff;background:rgba(115,133,159,.75)}.video-js .vjs-time-tooltip{background-color:#fff;background-color:#fffc;-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px;pointer-events:none;position:relative;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-progress-holder:focus .vjs-time-tooltip{display:none}.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip,.video-js .vjs-progress-control:hover .vjs-time-tooltip{display:block;font-size:.6em;visibility:visible}.video-js .vjs-progress-control.disabled:hover .vjs-time-tooltip{font-size:1em}.video-js .vjs-progress-control .vjs-mouse-display{display:none;position:absolute;width:1px;height:100%;background-color:#000;z-index:1}.vjs-no-flex .vjs-progress-control .vjs-mouse-display{z-index:0}.video-js .vjs-progress-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display{visibility:hidden;opacity:0;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-ms-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-time-tooltip{color:#fff;background-color:#000;background-color:#000c}.video-js .vjs-slider{position:relative;cursor:pointer;padding:0;margin:0 .45em;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#73859f;background-color:#73859f80}.video-js .vjs-slider.disabled{cursor:default}.video-js .vjs-slider:focus{text-shadow:0 0 1em #fff;-webkit-box-shadow:0 0 1em #fff;-moz-box-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js .vjs-mute-control{cursor:pointer;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none;padding-left:2em;padding-right:2em;padding-bottom:3em}.video-js .vjs-volume-control{cursor:pointer;margin-right:1em;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.video-js .vjs-volume-control.vjs-volume-horizontal{width:5em}.video-js .vjs-volume-panel .vjs-volume-control{visibility:visible;opacity:0;width:1px;height:1px;margin-left:-1px}.video-js .vjs-volume-panel.enable-volume-control{-webkit-transition:width 1s;-moz-transition:width 1s;-ms-transition:width 1s;-o-transition:width 1s;transition:width 1s}.video-js .vjs-volume-panel.enable-volume-control .vjs-mute-control:active~.vjs-volume-control,.video-js .vjs-volume-panel.enable-volume-control .vjs-mute-control:focus~.vjs-volume-control,.video-js .vjs-volume-panel.enable-volume-control .vjs-mute-control:hover~.vjs-volume-control,.video-js .vjs-volume-panel.enable-volume-control .vjs-volume-control.vjs-slider-active,.video-js .vjs-volume-panel.enable-volume-control .vjs-volume-control:active,.video-js .vjs-volume-panel.enable-volume-control .vjs-volume-control:focus,.video-js .vjs-volume-panel.enable-volume-control .vjs-volume-control:hover,.video-js .vjs-volume-panel.enable-volume-control:active .vjs-volume-control,.video-js .vjs-volume-panel.enable-volume-control:focus .vjs-volume-control,.video-js .vjs-volume-panel.enable-volume-control:hover .vjs-volume-control{visibility:visible;opacity:1;-webkit-transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s;-moz-transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s;-ms-transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s;-o-transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s;transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s}.video-js .vjs-volume-panel.enable-volume-control .vjs-mute-control:active~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.enable-volume-control .vjs-mute-control:focus~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.enable-volume-control .vjs-mute-control:hover~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.enable-volume-control .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal,.video-js .vjs-volume-panel.enable-volume-control .vjs-volume-control:active.vjs-volume-horizontal,.video-js .vjs-volume-panel.enable-volume-control .vjs-volume-control:focus.vjs-volume-horizontal,.video-js .vjs-volume-panel.enable-volume-control .vjs-volume-control:hover.vjs-volume-horizontal,.video-js .vjs-volume-panel.enable-volume-control:active .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.enable-volume-control:focus .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.enable-volume-control:hover .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;position:relative}.video-js .vjs-volume-panel.enable-volume-control.vjs-volume-panel-horizontal.vjs-slider-active,.video-js .vjs-volume-panel.enable-volume-control.vjs-volume-panel-horizontal:active,.video-js .vjs-volume-panel.enable-volume-control.vjs-volume-panel-horizontal:focus,.video-js .vjs-volume-panel.enable-volume-control.vjs-volume-panel-horizontal:hover{width:9em;-webkit-transition:width .1s;-moz-transition:width .1s;-ms-transition:width .1s;-o-transition:width .1s;transition:width .1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{height:8em;width:3em;left:-3.5em;-webkit-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s;-moz-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s;-ms-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s;-o-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{-webkit-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s;-moz-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s;-ms-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s;-o-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s}.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;visibility:visible;opacity:1;position:relative;-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.video-js.vjs-no-flex .vjs-volume-control.vjs-volume-vertical,.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{position:absolute;bottom:3em;left:.5em}.video-js .vjs-volume-panel{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{width:5em;height:.3em}.vjs-volume-bar.vjs-slider-vertical{width:.3em;height:5em;margin:1.35em auto}.video-js .vjs-volume-level{position:absolute;bottom:0;left:0;background-color:#fff}.video-js .vjs-volume-level:before{position:absolute;font-size:.9em}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{top:-.5em;left:-.3em}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{top:-.3em;right:-.5em}.video-js .vjs-volume-panel.vjs-volume-panel-vertical{width:4em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.video-js .vjs-volume-vertical{width:3em;height:8em;bottom:8em;background-color:#2b333f;background-color:#2b333fb3}.video-js .vjs-volume-horizontal .vjs-menu{left:-2em}.vjs-poster{display:inline-block;vertical-align:middle;background-repeat:no-repeat;background-position:50% 50%;background-size:contain;background-color:#000;cursor:pointer;margin:0;padding:0;position:absolute;top:0;right:0;bottom:0;left:0;height:100%}.vjs-poster img{display:block;vertical-align:middle;margin:0 auto;max-height:100%;padding:0;width:100%}.vjs-has-started .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster{display:block}.vjs-using-native-controls .vjs-poster{display:none}.video-js .vjs-live-control{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto;font-size:1em;line-height:3em}.vjs-no-flex .vjs-live-control{display:table-cell;width:auto;text-align:left}.video-js .vjs-time-control{-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none;font-size:1em;line-height:3em;min-width:2em;width:auto;padding-left:1em;padding-right:1em}.vjs-live .vjs-time-control,.video-js .vjs-current-time,.vjs-no-flex .vjs-current-time{display:none}.vjs-no-flex .vjs-remaining-time.vjs-time-control.vjs-control{width:0!important;white-space:nowrap}.video-js .vjs-duration,.vjs-no-flex .vjs-duration{display:none}.vjs-time-divider{display:none;line-height:3em}.vjs-live .vjs-time-divider{display:none}.video-js .vjs-play-control .vjs-icon-placeholder{cursor:pointer;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none}.vjs-text-track-display{position:absolute;bottom:3em;left:0;right:0;top:0;pointer-events:none}.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;text-align:center;margin-bottom:.1em;background-color:#000;background-color:#00000080}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}video::-webkit-media-text-track-display{-moz-transform:translateY(-3em);-ms-transform:translateY(-3em);-o-transform:translateY(-3em);-webkit-transform:translateY(-3em);transform:translateY(-3em)}.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display{-moz-transform:translateY(-1.5em);-ms-transform:translateY(-1.5em);-o-transform:translateY(-1.5em);-webkit-transform:translateY(-1.5em);transform:translateY(-1.5em)}.video-js .vjs-fullscreen-control{cursor:pointer;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none}.vjs-live .vjs-playback-rate{display:none}.vjs-playback-rate .vjs-playback-rate-value,.vjs-playback-rate>.vjs-menu-button{position:absolute;top:0;left:0;width:100%;height:100%}.vjs-playback-rate .vjs-playback-rate-value{pointer-events:none;font-size:1.5em;line-height:2;text-align:center}.vjs-playback-rate .vjs-menu{width:4em;left:0}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:1.4em;text-align:center}.vjs-error .vjs-error-display:before{color:#fff;content:"X";font-family:Arial,Helvetica,sans-serif;font-size:4em;left:0;line-height:1;margin-top:-.5em;position:absolute;text-shadow:.05em .05em .1em #000;text-align:center;top:50%;vertical-align:middle;width:100%}.vjs-error .vjs-error-check-network{color:#fff;text-decoration:none;background:red;padding:5px;display:inline-block;border-radius:5px}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;opacity:.85;text-align:left;border:6px solid rgba(43,51,63,.7);box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;border-radius:25px;visibility:hidden}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{display:block;animation:0s linear .3s forwards vjs-spinner-show}.vjs-loading-spinner:after,.vjs-loading-spinner:before{content:"";position:absolute;margin:-6px;box-sizing:inherit;width:inherit;height:inherit;border-radius:inherit;opacity:1;border:inherit;border-color:transparent;border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{-webkit-animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite;animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{border-top-color:#fff;-webkit-animation-delay:.44s;animation-delay:.44s}@keyframes vjs-spinner-show{to{visibility:visible}}@-webkit-keyframes vjs-spinner-show{to{visibility:visible}}@keyframes vjs-spinner-spin{to{transform:rotate(360deg)}}@-webkit-keyframes vjs-spinner-spin{to{-webkit-transform:rotate(360deg)}}@keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}to{border-top-color:#73859f}}@-webkit-keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}to{border-top-color:#73859f}}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder{position:absolute}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:"";font-size:1.5em;line-height:inherit}.video-js .vjs-audio-button .vjs-icon-placeholder:before{content:"";background:url(https://tcplayer-1306264703.cos.ap-nanjing.myqcloud.com/assets/audioTrack.png);background-size:contain;width:23px;height:15px;top:10px;left:15px}.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-custom-control-spacer{-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto}.video-js.vjs-layout-tiny:not(.vjs-fullscreen).vjs-no-flex .vjs-custom-control-spacer{width:auto}.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-audio-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-captions-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-chapters-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-current-time,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-descriptions-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-duration,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-mute-control,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-playback-rate,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-progress-control,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-remaining-time,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-subtitles-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-time-divider,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-volume-control{display:none}.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-audio-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-captions-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-chapters-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-current-time,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-descriptions-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-duration,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-mute-control,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-playback-rate,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-remaining-time,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-subtitles-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-time-divider,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-volume-control{display:none}.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-captions-button,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-chapters-button,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-current-time,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-descriptions-button,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-duration,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-mute-control,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-playback-rate,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-remaining-time,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-subtitles-button .vjs-audio-button,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-time-divider,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-volume-control{display:none}.vjs-modal-dialog.vjs-text-track-settings{background-color:#2b333f;background-color:#2b333fbf;color:#fff;height:70%}.vjs-text-track-settings .vjs-modal-dialog-content{display:table}.vjs-text-track-settings .vjs-track-settings-colors,.vjs-text-track-settings .vjs-track-settings-controls,.vjs-text-track-settings .vjs-track-settings-font{display:table-cell}.vjs-text-track-settings .vjs-track-settings-controls{text-align:right;vertical-align:bottom}.vjs-text-track-settings fieldset{margin:5px;padding:3px;border:none}.vjs-text-track-settings fieldset span{display:inline-block;margin-left:5px}.vjs-text-track-settings legend{color:#fff;margin:0 0 5px}.vjs-text-track-settings .vjs-label{position:absolute;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);display:block;margin:0 0 5px;padding:0;border:0;height:1px;width:1px;overflow:hidden}.vjs-track-settings-controls button:active,.vjs-track-settings-controls button:focus{outline-style:solid;outline-width:medium;background-image:linear-gradient(0deg,#fff 88%,#73859f 100%)}.vjs-track-settings-controls button:hover{color:#2b333fbf}.vjs-track-settings-controls button{background-color:#fff;background-image:linear-gradient(-180deg,#fff 88%,#73859f 100%);color:#2b333f;cursor:pointer;border-radius:2px}.vjs-track-settings-controls .vjs-default-button{margin-right:1em}@media print{.video-js>:not(.vjs-tech):not(.vjs-poster){visibility:hidden}}div.vjs-control.vjs-button.tcp-dot-component{width:100%}.vjs-progress-control:hover .tcp-dot-basic-style{display:inline}.tcp-dot-basic-style{position:absolute;width:8px;height:100%;margin-left:-4px;border-radius:5px;background-color:#fff0ff;z-index:10;display:none}.tcp-dot-basic-style:hover{background-color:#fff}.tcp-triangle{display:block;content:" ";position:absolute;bottom:-10px;left:5%;width:0;height:0;border-width:5px;border-style:solid;transform:translate(-50%);border-color:#000 transparent transparent}.tcp-triangle-both{display:block;content:" ";position:absolute;bottom:-10px;left:70px;width:0;height:0;border-width:5px;border-style:solid;transform:translate(-50%);border-color:#000 transparent transparent}.tcp-dot-image{width:100%;height:80px;background-repeat:no-repeat;background-size:100% 100%;-moz-background-size:100% 100%}.tcp-image-in-container{width:100%;height:100%;height:-webkit-fill-available;height:-moz-fill-available;height:-moz-available;height:fill-available}.tcp-image-in-container-only-image{width:100%;height:80px}.vjs-time-tooltip.tcp-popup-container{position:absolute;width:140px;height:118px;background-color:#000;padding:0;top:-125px;max-height:120px;left:-65px}.vjs-time-tooltip.tcp-popup-container.tcp-only-gif{position:absolute;width:140px;height:80px;background-color:#000;padding:0;top:-87px;max-height:120px;left:-65px}.vjs-time-tooltip.tcp-popup-container.tcp-single-line{height:103px;top:-109px}.vjs-time-tooltip.tcp-popup-container.tcp-without-gif{position:absolute;width:110px;height:54px;background-color:#000;opacity:.8;padding:0;top:-60px;border-radius:5px;left:0}.vjs-time-tooltip.tcp-popup-container.tcp-without-gif.tcp-single-line{height:23px;top:-28px}.vjs-time-tooltip.tcp-popup-container.tcp-without-gif.tcp-two-lines{height:38px;top:-44px}.tcp-dot-comment{text-overflow:ellipsis;color:#fff;width:100%;height:38px;max-height:38px;font-size:12px;line-height:16px;overflow:hidden;background-color:#000;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;padding:5px 8px}.tcp-large-comment{text-overflow:ellipsis;color:#fff;width:100%;height:100%;max-height:100%;font-size:12px;line-height:16px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;padding:5px 8px}.tcp-dot-timestamp{display:block;font-weight:700;width:100%;height:20px;text-align:left;bottom:0;position:absolute;color:#fff;margin-left:10px}.vjs-dvr .tcp-dvr-progress-control .tcp-dvr-time-shift{background-color:transparent}.vjs-dvr .vjs-progress-control{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.vjs-dvr .vjs-live-control{flex:inherit;cursor:pointer}.vjs-dvr .vjs-live-control .vjs-tooltip{line-height:1em}.vjs-dvr-live .vjs-live-control .vjs-tooltip{display:none}.vjs-dvr-live .vjs-live-control{cursor:default}.vjs-dvr .vjs-live-display{margin:0 auto}.vjs-live .vjs-live-display:before{display:inline-block;width:6px;height:6px;margin-right:.4em;vertical-align:4%;background:#f51717;content:"";border-radius:50%}.vjs-dvr:not(.vjs-dvr-live) .vjs-live-display:before{background:#566377}.tcp-video-quality-switcher .tcp-quality-switcher-value{pointer-events:none;font-size:1.2em;display:table;text-align:center;position:absolute;top:0;left:0;width:100%;height:100%}.tcp-video-quality-switcher .tcp-quality-switcher-value p{display:table-cell;vertical-align:middle}.tcp-video-quality-switcher .vjs-menu{width:6em;left:50%;-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0)}.tcp-video-quality-switcher .vjs-menu li{text-transform:none}.tcp-skin .tcp-logo{position:absolute}.tcp-skin .tcp-logo.left-top{top:0;left:0}.tcp-skin .tcp-logo.left-bottom{bottom:0;left:0}.tcp-skin .tcp-logo.right-top{top:0;right:0}.tcp-skin .tcp-logo.right-bottom{bottom:0;right:0}.tcp-skin .tcp-logo .tcp-logo-link{display:inline-block}.tcp-skin .vjs-big-play-button{height:4.8em;width:6.8em;left:50%;top:50%;margin-left:-3.4em;margin-top:-2.4em;font-size:1em;border:0;opacity:1;z-index:1}.tcp-skin .vjs-big-play-button:before{content:none}.tcp-skin .vjs-big-play-button .vjs-button-icon{height:4.8em;width:6.8em;fill:#21212180}.tcp-skin .vjs-big-play-button .vjs-button-icon .draw-dash,.tcp-skin .vjs-big-play-button .vjs-button-icon .draw-line,.tcp-skin .vjs-big-play-button .vjs-button-icon .draw-lines{stroke-dasharray:1330px;stroke-dashoffset:1330px;stroke-linecap:round;stroke-linejoin:round;stroke-width:8px;stroke:#00a4ff}.tcp-skin .vjs-big-play-button:hover .vjs-button-icon .draw-fill{fill:#00a4ff}.tcp-skin .vjs-big-play-button:hover .vjs-button-icon .draw-line{-webkit-animation:draw-line .5s ease forwards;animation:draw-line .5s ease forwards}.tcp-skin .vjs-big-play-button:hover .vjs-button-icon .draw-lines{-webkit-animation:draw-lines 1s ease forwards;animation:draw-lines 1s ease forwards}.tcp-skin .vjs-big-play-button:hover .vjs-button-icon .draw-dash{-webkit-animation:draw-dash 1s ease forwards;animation:draw-dash 1s ease forwards}.tcp-skin .vjs-big-play-button .vjs-icon-placeholder{display:none}.tcp-skin .vjs-big-play-button,.tcp-skin .vjs-big-play-button:focus,.tcp-skin:hover .vjs-big-play-button,.tcp-skin:hover .vjs-big-play-button:focus{background:0 0}.tcp-skin.vjs-paused.vjs-pos-ended .vjs-big-play-button,.tcp-skin.vjs-paused.vjs-pos-ended .vjs-poster{display:block}.tcp-skin.vjs-ad-loading .vjs-big-play-button,.tcp-skin.vjs-ad-playing .vjs-big-play-button,.tcp-skin.vjs-seeking .vjs-big-play-button,.tcp-skin.vjs-using-native-controls .vjs-big-play-button,.tcp-skin.vjs-waiting .vjs-big-play-button{display:none!important}.tcp-skin .vjs-menu{z-index:1}.tcp-skin .vjs-control-bar{z-index:1;font-size:1.2em;background-color:#0000004d;background:rgba(0,0,0,.666);background:-webkit-linear-gradient(bottom,rgba(0,0,0,.666) 0,rgba(0,0,0,.492) 19%,rgba(0,0,0,.36) 34%,rgba(0,0,0,.254) 47%,rgba(0,0,0,.185) 56.5%,rgba(0,0,0,.129) 65%,rgba(0,0,0,.084) 73%,rgba(0,0,0,.05) 80.2%,rgba(0,0,0,.028) 86.1%,rgba(0,0,0,.014) 91%,rgba(0,0,0,.005) 95.2%,rgba(0,0,0,.001) 98.2%,rgba(0,0,0,0) 100%);background:linear-gradient(to top,rgba(0,0,0,.666) 0,rgba(0,0,0,.492) 19%,rgba(0,0,0,.36) 34%,rgba(0,0,0,.254) 47%,rgba(0,0,0,.185) 56.5%,rgba(0,0,0,.129) 65%,rgba(0,0,0,.084) 73%,rgba(0,0,0,.05) 80.2%,rgba(0,0,0,.028) 86.1%,rgba(0,0,0,.014) 91%,rgba(0,0,0,.005) 95.2%,rgba(0,0,0,.001) 98.2%,rgba(0,0,0,0) 100%)}.tcp-skin .vjs-time-control{padding-left:0;padding-right:0}.tcp-skin:not(.vjs-live) .vjs-current-time,.tcp-skin:not(.vjs-live) .vjs-duration,.tcp-skin:not(.vjs-live) .vjs-time-divider{display:block}.tcp-skin .vjs-time-divider{min-width:0;padding-left:.3em;padding-right:.3em}.tcp-skin .vjs-current-time{padding-left:1em}.tcp-skin .vjs-duration{padding-right:1em}.tcp-skin .vjs-remaining-time{display:none}.tcp-skin .vjs-progress-control{position:absolute;width:100%;top:-.9em;left:0;height:1.5em}.tcp-skin .vjs-play-progress{background-color:#00a4ff}.tcp-skin .vjs-playback-rate .vjs-playback-rate-value{font-size:1.2em;line-height:2.57}.tcp-skin .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{z-index:2;visibility:hidden;background-color:#000000b3}.tcp-skin .vjs-volume-panel .vjs-slider-horizontal .vjs-volume-level:before{top:-.33em}.tcp-skin .vjs-volume-panel .vjs-slider-vertical .vjs-volume-level:before{left:-.35em}.tcp-skin .vjs-volume-panel .vjs-volume-level{background-color:#00a4ff}.tcp-skin .vjs-custom-control-spacer{display:block;flex-grow:1}.tcp-skin .tcp-loading-spinner{box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;display:none;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;text-indent:-9999em}.tcp-skin .tcp-loading-spinner:before{content:"";display:block;width:100%;height:100%;margin-bottom:5px;border-radius:50%;border:3px solid rgba(255,255,255,0);border-left-color:#fff;border-right-color:#fff;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0)}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.tcp-skin.vjs-seeking .tcp-loading-spinner,.tcp-skin.vjs-waiting .tcp-loading-spinner{display:block}.tcp-skin.vjs-seeking .tcp-loading-spinner:before,.tcp-skin.vjs-waiting .tcp-loading-spinner:before{-webkit-animation:load8 1.1s infinite linear;animation:load8 1.1s infinite linear}.tcp-skin .tcp-loading-spinner-animation{width:60px;height:45px;margin:0 auto 10px;background-repeat:no-repeat;animation-name:keyframes;animation-duration:2.625s;animation-delay:0s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-timing-function:steps(1)}@-webkit-keyframes keyframes{0%{width:60px;height:45px;background-position:-60px 0}1.33%{background-position:-2220px 0}2.67%{background-position:-120px 0}4.00%{background-position:-180px 0}5.33%{background-position:-240px 0}6.67%{background-position:-300px 0}8.00%{background-position:-360px 0}9.33%{background-position:-420px 0}10.67%{background-position:-480px 0}12.00%{background-position:-540px 0}13.33%{background-position:-600px 0}14.67%{background-position:-660px 0}16.00%{background-position:-720px 0}17.33%{background-position:-780px 0}18.67%{background-position:-840px 0}20.00%{background-position:-900px 0}21.33%{background-position:-960px 0}22.67%{background-position:-1020px 0}24.00%{background-position:-1080px 0}25.33%{background-position:-1140px 0}26.67%{background-position:-1200px 0}28.00%{background-position:-1260px 0}29.33%{background-position:-1320px 0}30.67%{background-position:-1380px 0}32.00%{background-position:-1440px 0}33.33%{background-position:-1500px 0}34.67%{background-position:-1560px 0}36.00%{background-position:-1620px 0}37.33%{background-position:-1680px 0}38.67%{background-position:-1740px 0}40.00%{background-position:-1800px 0}41.33%{background-position:-1860px 0}42.67%{background-position:-1920px 0}44.00%{background-position:-1980px 0}45.33%{background-position:-2040px 0}46.67%{background-position:-2100px 0}48.00%{background-position:-2160px 0}49.33%{background-position:0 0}50.67%{background-position:-2280px 0}52.00%{background-position:-2340px 0}53.33%{background-position:-2400px 0}54.67%{background-position:-2460px 0}56.00%{background-position:-2520px 0}57.33%{background-position:-2580px 0}58.67%{background-position:-2640px 0}60.00%{background-position:-2700px 0}61.33%{background-position:-2760px 0}62.67%{background-position:-2820px 0}64.00%{background-position:-2880px 0}65.33%{background-position:-2940px 0}66.67%{background-position:-3000px 0}68.00%{background-position:-3060px 0}69.33%{background-position:-3120px 0}70.67%{background-position:-3180px 0}72.00%{background-position:-3240px 0}73.33%{background-position:-3300px 0}74.67%{background-position:-3360px 0}76.00%{background-position:-3420px 0}77.33%{background-position:-3480px 0}78.67%{background-position:-3540px 0}80.00%{background-position:-3600px 0}81.33%{background-position:-3660px 0}82.67%{background-position:-3720px 0}84.00%{background-position:-3780px 0}85.33%{background-position:-3840px 0}86.67%{background-position:-3900px 0}88.00%{background-position:-3960px 0}89.33%{background-position:-4020px 0}90.67%{background-position:-4080px 0}92.00%{background-position:-4140px 0}93.33%{background-position:-4200px 0}94.67%{background-position:-4260px 0}96.00%{background-position:-4320px 0}97.33%{background-position:-4380px 0}to,98.67%{background-position:-4440px 0}}.tcp-skin .vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#232833;background-color:#000000b3}@keyframes draw-line{0%{stroke-dashoffset:1350px}to{stroke-dashoffset:0}}@keyframes draw-lines{0%{stroke-dasharray:0 1330px;stroke-dashoffset:1330px}to{stroke-dasharray:1330px 0;stroke-dashoffset:0}}@keyframes draw-dash{0%{stroke-dasharray:100px 1330px}to{stroke-dasharray:10px 0}}.tcp-continue-play-tips{position:absolute;left:0;bottom:4.5em;font-size:1.2em;height:2.08em;line-height:2.08em;padding:0 .5em 0 2.5em;background-color:#232833;background-color:#000000b3}.tcp-continue-play-tips .tcp-continue-play-buttom{cursor:pointer;color:#00a4ff;height:2.08em;padding:0 5px;margin:0}.tcp-continue-play-tips .vjs-control.vjs-close-button{width:2em;height:2.08em;top:0;right:initial;left:.5em;opacity:.7}.tcp-continue-play-tips .vjs-control.vjs-close-button .vjs-icon-placeholder:before{font-size:1.33em;line-height:1.55em}.tcp-skin .tcp-overlay{color:#fff;position:absolute;text-align:center}.tcp-skin .tcp-overlay-no-background{width:33%}.tcp-skin .tcp-overlay-background{background-color:#4e4e4e;background-color:#0009;border-radius:3px;padding:10px;width:33%}.tcp-skin .tcp-overlay-top-left{top:5px;left:5px}.tcp-skin .tcp-overlay-top{left:50%;margin-left:-16.5%;top:5px}.tcp-skin .tcp-overlay-top-right{right:5px;top:5px}.tcp-skin .tcp-overlay-right{right:5px;top:50%;transform:translateY(-50%)}.tcp-skin .tcp-overlay-bottom-right{bottom:4em;right:5px}.tcp-skin .tcp-overlay-bottom{bottom:4em;left:50%;margin-left:-16.5%}.tcp-skin .tcp-overlay-bottom-left{bottom:4em;left:5px}.tcp-skin .tcp-overlay-left{left:5px;top:50%;transform:translateY(-50%)}.tcp-skin .tcp-overlay-center{left:50%;margin-left:-16.5%;top:50%;transform:translateY(-50%)}.tcp-skin .tcp-image-patch{width:100%;max-height:100%;margin:0;transform:translate(-50%,-50%);overflow:hidden}.tcp-skin .tcp-image-patch .tcp-overlay-link{display:inline-block;outline:0}.tcp-skin .tcp-image-patch .tcp-overlay-link:active,.tcp-skin .tcp-image-patch .tcp-overlay-link:focus,.tcp-skin .tcp-image-patch .tcp-overlay-link:link{outline:0}.tcp-skin .tcp-image-patch .tcp-overlay-img{max-width:100%;border:none}.tcp-skin.tcp-res-switching .tcp-image-patch{display:none}.tcp-skin .vjs-no-flex .tcp-overlay-center,.tcp-skin .vjs-no-flex .tcp-overlay-left,.tcp-skin .vjs-no-flex .tcp-overlay-right{margin-top:-15px}.tcp-skin .tcp-right-click-popup-menu{position:absolute;z-index:6;padding:0;white-space:nowrap;background-color:#1c1c1c;background-color:#1c1c1ce6}.tcp-skin .tcp-right-click-popup-menu .vjs-menu-item{line-height:2em;padding:0 1.5em}.tcp-skin .tcp-right-click-popup-menu .tc-menu-list{text-transform:none;padding:.5rem;text-align:left}.tcp-skin .tcp-right-click-popup-menu .vjs-menu-content li:not(:last-child){border-bottom:1px solid #fff}.tcp-skin .tcp-right-click-popup-menu .tc-menu-list,.tcp-skin .tcp-right-click-popup-menu .tc-menu-list:hover{cursor:default;outline:0}.tcp-skin .tcp-right-click-popup-menu .tcp-menu-item-select{color:#00a4ff}.tcp-skin .tcp-mirror{transform:rotateY(180deg)}.tcp-playlist{width:300px;height:100%;right:0;top:0;position:absolute}.tcp-playlist .tcp-playlist-toggle{position:absolute;width:12px;height:100px;line-height:100px;top:50%;transform:translateY(-50%);background-color:#00a4ff;border-radius:10px 0 0 10px;text-align:center;cursor:pointer}.tcp-playlist .tcp-playlist-box{position:absolute;background-color:#2b333f;overflow:scroll;overflow-x:hidden;width:100%;height:100%}.tcp-playlist .tcp-playlist-box .tcp-playlist-title{padding:1em;font-size:1.6em;color:#00a4ff}.tcp-playlist .tcp-playlist-box .tcp-playlist-item{padding:0 0 0 1em;margin-bottom:1em;width:100%;height:100px}.tcp-playlist .tcp-playlist-box .tcp-playlist-item .tcp-playlist-item-video{display:inline-block;float:left;position:relative;width:55%;height:100px;display:flex;justify-content:center;align-items:center;background:#000}.tcp-playlist .tcp-playlist-box .tcp-playlist-item .tcp-playlist-item-video .tcp-playlist-item-img{max-width:100%;max-height:100%}.tcp-playlist .tcp-playlist-box .tcp-playlist-item .tcp-playlist-item-video .tcp-playlist-item-duration{position:absolute;bottom:.5em;left:1em;background-color:#2b333f;padding:.5em;opacity:.8}.tcp-playlist .tcp-playlist-box .tcp-playlist-item .tcp-playlist-item-desc{display:inline-block;width:42%;padding:.5em;font-size:1.4em;overflow:hidden;height:100%}.tcp-playlist .tcp-playlist-box .tcp-playlist-item-active,.tcp-playlist .tcp-playlist-box .tcp-playlist-item:hover{cursor:pointer}.tcp-playlist .tcp-playlist-box .tcp-playlist-item-active .tcp-playlist-item-desc,.tcp-playlist .tcp-playlist-box .tcp-playlist-item:hover .tcp-playlist-item-desc{color:#00a4ff}.tcp-playlist-box::-webkit-scrollbar{width:.5em;box-sizing:border-box}.tcp-playlist-box::-webkit-scrollbar-button{display:none}.tcp-playlist-box::-webkit-scrollbar-thumb{background-color:#00a4ff;-webkit-border-radius:1em}.vjs-play-next:hover{cursor:pointer}.vjs-play-next{font-family:VideoJS}.vjs-play-next .vjs-icon-placeholder:before{content:""}.tcp-playlist-open .tcp-playlist-toggle{right:300px}.tcp-playlist-open .tcp-playlist-box{display:block}.tcp-playlist-close .tcp-playlist-toggle{right:0}.tcp-playlist-close .tcp-playlist-box{display:none}.fullscreen-container{display:none;position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:100}.enterfs{display:block!important}.fullscreen-container .enterfs,.exitfs{display:none!important}.fullscreen-container .exitfs,.entervr{display:block!important}.view360-canvas{width:100%}.panoviewer-control button{background-color:#0009;color:#fff;border-radius:5px;border:none;margin:5px;padding:5px;outline:0;font-size:0}.panoviewer-control button.enterfs,.panoviewer-control button.exitfs{margin-bottom:10px}.panoviewer-control button svg{width:30px;height:30px}.panoviewer-control{text-align:center;position:absolute;font-weight:300;top:0;right:5px}.panoviewer-control .camera{display:inline-block;margin:0;padding:0;background-color:#0009;border-radius:100px}.camera,.panoviewer-control .pie{height:40px;width:40px}.gyroTouchOptions{position:absolute;right:0;bottom:0;text-align:right}.optionSet .option{border:1px;border-radius:3px;background-color:#bcbccf;color:#fff;padding:2px;height:34px;box-sizing:border-box;font-size:0;margin:5px 0;display:inline-block;vertical-align:middle}.optionSet .option:hover{background-color:#4949c9}.optionSet .option.selected{background-color:#af40e2}.selectGroup{position:relative;display:inline-block;vertical-align:top}.selectGroup .option{position:relative;border-radius:5px;font-size:14px;line-height:34px;padding:0 10px;min-width:34px;text-align:center}.statusButton.option{position:relative;background-color:#7fbeff;margin:5px}.selectGroup .option span{position:absolute;top:5px;bottom:5px;left:5px;right:5px;background-size:100% 100%}.selectGroup .option span.vertical{transform:rotate(90deg)}.statusButton.option svg{width:40px;fill:#fff;stroke:#fff}.statusButton.option:hover{background-color:#7f1e1f}.selectGroup.hide{display:none}@media screen and (max-width:500px){.panoviewer-control{right:0;top:0}.panoviewer-control button{margin:5px 5px 5px 0;padding:5px;float:right}.panoviewer-control button svg{width:20px;height:20px}.panoviewer-control .camera{transform:scale(.7)}}.tcp-statistic{position:relative;z-index:5;top:10px;left:10px;font-size:12px;width:80%;max-height:80%;background:rgba(28,28,28,.8);border-radius:4px;color:#fff;opacity:.8;overflow:hidden}.tcp-statistic-wrapper{display:flex;flex-direction:column;width:100%;padding:10px}.tcp-statistic-line{display:block;width:100%;padding-bottom:4px}.tcp-statistic-title{width:30%;float:left;text-align:right;padding-right:20px}.tcp-statistic-data{width:70%}.tcp-statistic-close{position:absolute;right:10px;top:10px;width:20px;height:20px;color:#fff;cursor:pointer}.tcp-switch{position:absolute;display:flex;align-items:center;right:0;bottom:4.5em;font-size:1.2em;line-height:2.08em;padding:0 2.5em 0 .5em;background-color:#000000b3}.tcp-switch>.vjs-close-button{top:0!important;cursor:pointer;width:2em;height:1.5em;display:flex;justify-content:center;align-items:center;right:.3em!important;border-radius:50%;margin-left:.5em}.tcp-switch>.vjs-control .vjs-close-button{top:0;right:.3em!important}.tcp-switch>.vjs-button>.vjs-icon-placeholder:before{font-size:1.33em;line-height:inherit;opacity:.7}.vjs-error .vjs-error-display .vjs-modal-dialog-content{padding:0}.vjs-errors-dialog{text-align:center;overflow:hidden;position:absolute;top:0;bottom:0;left:0;right:0;background:rgba(24,24,24,.8);display:table;width:100%;height:100%}.vjs-errors-content-container{overflow:auto;display:table-cell;padding:35px}.vjs-errors-dialog .vjs-control.vjs-close-button{width:3em;height:3em;top:0}.vjs-errors-type{display:none}.tcp-vtt-thumbnail-container{position:absolute;overflow:hidden;bottom:2.3em;z-index:0}.tcp-vtt-thumbnail-container:before{content:"";position:absolute;top:0;bottom:0;left:0;right:0;-moz-box-shadow:0 0 3px 3px rgba(0,0,0,.3) inset;-webkit-box-shadow:0 0 3px 3px rgba(0,0,0,.3) inset;box-shadow:0 0 3px 3px #0000004d inset;z-index:1}.tcp-vtt-thumbnail-img{position:absolute;left:0;opacity:0;transition:opacity .2s ease;-webkit-transition:opacity .2s ease;-moz-transition:opacity .2s ease;-mz-transition:opacity .2s ease}.vjs-progress-control:active .tcp-vtt-thumbnail-img,.vjs-progress-control:hover .tcp-vtt-thumbnail-img{opacity:1}.tcp-dynamic-watermark-container{position:absolute;pointer-events:none}.tcp-dynamic-watermark-container .tcp-dynamic-watermark-content{position:absolute;max-width:30%;word-break:break-all;color:#ffffff80}.tcp-skin.vjs-no-flex .vjs-poster{overflow:hidden}.tcp-skin.vjs-no-flex .vjs-poster div{width:100%;height:100%;display:table}.tcp-skin.vjs-no-flex .vjs-poster div span{display:table-cell;vertical-align:middle}.tcp-skin.vjs-no-flex .vjs-control-bar .vjs-current-time,.tcp-skin.vjs-no-flex .vjs-control-bar .vjs-duration,.tcp-skin.vjs-no-flex .vjs-control-bar .vjs-time-divider{display:inline-block}.tcp-skin.vjs-no-flex .vjs-control-bar .vjs-custom-control-spacer{display:none}.tcp-skin.vjs-no-flex .vjs-control-bar .tcp-video-quality-switcher .vjs-menu{margin-left:-3em}.tcp-skin.vjs-no-flex .vjs-control-bar .vjs-mouse-display{z-index:1}.tcp-skin.vjs-no-flex .vjs-control-bar .tcp-vtt-thumbnail-container{bottom:2.7em}.tcp-skin.vjs-no-flex.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar,.tcp-skin.vjs-no-flex.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar .vjs-volume-control.vjs-volume-vertical{visibility:hidden}.tcp-skin.vjs-no-flex .vjs-volume-panel.enable-volume-control .vjs-volume-control.vjs-volume-vertical{visibility:visible;opacity:1;display:none}.tcp-skin.vjs-no-flex .vjs-volume-panel.enable-volume-control .vjs-mute-control:active~.vjs-volume-control.vjs-volume-vertical,.tcp-skin.vjs-no-flex .vjs-volume-panel.enable-volume-control .vjs-mute-control:focus~.vjs-volume-control.vjs-volume-vertical,.tcp-skin.vjs-no-flex .vjs-volume-panel.enable-volume-control .vjs-mute-control:hover~.vjs-volume-control.vjs-volume-vertical,.tcp-skin.vjs-no-flex .vjs-volume-panel.enable-volume-control .vjs-volume-control.vjs-slider-active.vjs-volume-vertical,.tcp-skin.vjs-no-flex .vjs-volume-panel.enable-volume-control .vjs-volume-control:active.vjs-volume-vertical,.tcp-skin.vjs-no-flex .vjs-volume-panel.enable-volume-control .vjs-volume-control:focus.vjs-volume-vertical,.tcp-skin.vjs-no-flex .vjs-volume-panel.enable-volume-control .vjs-volume-control:hover.vjs-volume-vertical,.tcp-skin.vjs-no-flex .vjs-volume-panel.enable-volume-control:active .vjs-volume-control.vjs-volume-vertical,.tcp-skin.vjs-no-flex .vjs-volume-panel.enable-volume-control:focus .vjs-volume-control.vjs-volume-vertical,.tcp-skin.vjs-no-flex .vjs-volume-panel.enable-volume-control:hover .vjs-volume-control.vjs-volume-vertical{display:block;position:absolute}@font-face{font-family:VideoJS;src:url(data:application/vnd.ms-fontobject;base64,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dHRwOi8vZm9udGVsbG8uY29tAFYAaQBkAGUAbwBKAFMAUgBlAGcAdQBsAGEAcgBWAGkAZABlAG8ASgBTAFYAaQBkAGUAbwBKAFMAVgBlAHIAcwBpAG8AbgAgADEALgAwAFYAaQBkAGUAbwBKAFMARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAAAAgAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhAQIBAwEEAQUBBgEHAQgBCQEKAQsBDAENAQ4BDwEQAREBEgETARQBFQEWARcBGAEZARoBGwEcAR0BHgEfASABIQEiAARwbGF5C3BsYXktY2lyY2xlBXBhdXNlC3ZvbHVtZS1tdXRlCnZvbHVtZS1sb3cKdm9sdW1lLW1pZAt2b2x1bWUtaGlnaBBmdWxsc2NyZWVuLWVudGVyD2Z1bGxzY3JlZW4tZXhpdAZzcXVhcmUHc3Bpbm5lcglzdWJ0aXRsZXMIY2FwdGlvbnMIY2hhcHRlcnMFc2hhcmUDY29nBmNpcmNsZQ5jaXJjbGUtb3V0bGluZRNjaXJjbGUtaW5uZXItY2lyY2xlAmhkBmNhbmNlbAZyZXBsYXkIZmFjZWJvb2sFZ3BsdXMIbGlua2VkaW4HdHdpdHRlcgZ0dW1ibHIJcGludGVyZXN0EWF1ZGlvLWRlc2NyaXB0aW9uBWF1ZGlvCW5leHQtaXRlbQ1wcmV2aW91cy1pdGVtAAAAAA==);font-weight:400;font-style:normal}@media screen�{.tcp-logo-img{border:none}.tcp-continue-play-tips .vjs-control.vjs-close-button .vjs-icon-placeholder:before{font-size:16px;line-height:25px}}@media �screen{.tcp-skin.vjs-no-flex .vjs-big-play-button{background-color:#2b333f}.tcp-skin.vjs-no-flex .vjs-big-play-button .vjs-button-icon:before{top:0;left:0;width:100%;height:100%;text-align:center;font-family:VideoJS;font-weight:400;font-style:normal;content:"";font-size:5em;line-height:1em}.tcp-skin.vjs-no-flex .vjs-big-play-button:focus,.tcp-skin.vjs-no-flex .vjs-big-play-button:hover,.tcp-skin.vjs-no-flex:hover .vjs-big-play-button:focus,.tcp-skin.vjs-no-flex:hover .vjs-big-play-button:hover{background-color:#00a4ff}.tcp-skin .tcp-image-patch{width:100%;margin:0;left:0;right:0;top:0;bottom:0;transform:none;overflow:hidden}.tcp-skin .tcp-image-patch .tcp-overlay-table{display:table;width:100%;height:100%}.tcp-skin .tcp-image-patch .tcp-overlay-table .tcp-overlay-cell{width:100%;display:table-cell;vertical-align:middle}}button{outline:0}@media �screen{.vjs-user-inactive.vjs-playing .vjs-control-bar :before{content:""}}@media �screen{.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:hidden}}.tcplayer.video-js{transition:transform .2s ease-in-out;will-change:transform}')),document.head.appendChild(A)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
+
(function(r,t){typeof exports=="object"&&typeof module<"u"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(r=typeof globalThis<"u"?globalThis:r||self,t(r.VideoPlayer={}))})(this,function(exports){"use strict";function _mergeNamespaces(r,t){for(var e=0;e<t.length;e++){const n=t[e];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in r)){const a=Object.getOwnPropertyDescriptor(n,s);a&&Object.defineProperty(r,s,a.get?a:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}const tcplayer_min="",tcplayer="";var VideoStatus=(r=>(r.converted="converted",r.failed="failed",r.uploading="uploading",r.uploaded="uploaded",r.converting="converting",r))(VideoStatus||{});const HLSCONFIG={maxBufferLength:10,maxBufferSize:40*1024*1024,maxMaxBufferLength:30},ua=navigator.userAgent.toLowerCase(),isMicromessenger=ua.indexOf("micromessenger")>0,isAndroid=ua.indexOf("android")>0;isMicromessenger&&ua.indexOf("wxwork");const isWxwork=isMicromessenger&&ua.indexOf("wxwork")>0,isIOS=/iphone|ipad|ipod|ios/.test(ua);function loadVideoPlayer(r){const{onReady:t}=r||{},e=isIOS||isAndroid&&isWxwork;let n=null,s=!1,a=!1,l=0,u=0,c=!1,h=!1,p=null;const g=async()=>{if(p)return p;const P=await Promise.resolve().then(()=>tcplayer_v4_9_1_min$1);return p=P==null?void 0:P.default,p},v=P=>{!s&&!a||(h?P==null||P.pause():P==null||P.play())},y=(P,d)=>{!s||a||(l=P.deltaY,u=d.currentTime())},_=(P,d)=>{if(!s||a)return;const m=c?P.deltaY:P.deltaX,E=c?window.innerHeight:window.innerWidth,k=(m-l)/E,D=d.duration();let L=u+D*k;L<0&&(L=0),L>D&&(L=D),d.currentTime(L)},b=async(P,d)=>{var m;try{const E=(m=await Promise.resolve().then(()=>hammer$1))==null?void 0:m.default,k=new E.Manager(d);k.add(new E.Pan({threshold:10,pointers:0,direction:E.DIRECTION_ALL})),k.add(new E.Swipe).recognizeWith(k.get("pan")),k.add(new E.Tap({event:"doubletap",taps:2})),k.on("doubletap",()=>{v(P)}),k.on("panstart",D=>{y(D,P)}),k.on("panmove",D=>{_(D,P)})}catch{}},C=P=>{P.on("fullscreenchange",()=>{s=P.isFullscreen();const d=P.el_,m=d.querySelector(".vjs-progress-control");c=P.videoWidth()>P.videoHeight();const E=window.innerWidth,k=window.innerHeight;a=window.orientation===90||window.orientation===-90;const D=Math.floor(Math.abs((E-k)/2));if(c)s?(Object.assign(d.style,{transform:"rotate(90deg)",width:"100vh",height:"100vw",position:"fixed",zIndex:"999",top:`${D}px`,left:`-${D}px`}),m&&(m.style.pointerEvents="none")):(d.setAttribute("style",""),m&&(m.style.pointerEvents=""));else{if(!isWxwork)return;s?(Object.assign(d.style,{width:"100vw",height:"100vh",position:"fixed",zIndex:"999",top:"0px"}),m&&(m.style.pointerEvents="none")):(d.removeAttribute("style"),m&&(m.style.pointerEvents=""))}})},I=(P,d)=>{d.on("play",()=>{h=!0}),d.on("pause",()=>{h=!1}),d.on("ended",()=>{h=!1}),d.on("ready",()=>{t==null||t(d)});const m=document==null?void 0:document.getElementById(P);m&&b(d,m)},N=async(P,d)=>{n=(await g())(d,{...P,fakeFullscreen:e}),n&&(I(d,n),e&&C(n))};return{loadVideo:(P,d)=>{if(!(!P||!d))try{N(d,P)}catch{}},disposePlayer:()=>{n==null||n.dispose(),n=null},tcplayerInstance:n}}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var tcplayer_v4_9_1_min$2={exports:{}};(function(module,exports){(function(r,t){module.exports=t()})(commonjsGlobal,function(){function unwrapExports(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function createCommonjsModule(r,t){return t={exports:{}},r(t,t.exports),t.exports}function each(r,t){keys(r).forEach(function(e){return t(r[e],e)})}function reduce(r,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return keys(r).reduce(function(n,s){return t(n,r[s],s)},e)}function assign(r){for(var t=arguments.length,e=Array(t>1?t-1:0),n=1;n<t;n++)e[n-1]=arguments[n];return Object.assign?Object.assign.apply(Object,[r].concat(e)):(e.forEach(function(s){s&&each(s,function(a,l){r[l]=a})}),r)}function isObject$1(r){return!!r&&(r===void 0?"undefined":_typeof(r))==="object"}function isPlain(r){return isObject$1(r)&&toString.call(r)==="[object Object]"&&r.constructor===Object}function isFunction(r){return typeof r=="function"&&typeof r.nodeType!="number"}function clean(r){return r.replace(/\n\r?\s*/g,"")}function computedStyle(r,t){if(!r||!t)return"";if(typeof window_1.getComputedStyle=="function"){var e=window_1.getComputedStyle(r);return e?e[t]:""}return r.currentStyle[t]||""}function isNonBlankString(r){return typeof r=="string"&&/\S/.test(r)}function throwIfWhitespace(r){if(/\s/.test(r))throw new Error("class has illegal whitespace characters")}function classRegExp(r){return new RegExp("(^|\\s)"+r+"($|\\s)")}function isReal(){return document_1===window_1.document&&typeof document_1.createElement<"u"}function isEl(r){return isObject$1(r)&&r.nodeType===1}function isInFrame(){try{return window_1.parent!==window_1.self}catch{return!0}}function createQuerier(r){return function(t,e){if(!isNonBlankString(t))return document_1[r](null);isNonBlankString(e)&&(e=document_1.querySelector(e));var n=isEl(e)?e:document_1;return n[r]&&n[r](t)}}function createEl(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"div",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments[3],s=document_1.createElement(r);return Object.getOwnPropertyNames(t).forEach(function(a){var l=t[a];a.indexOf("aria-")!==-1||a==="role"||a==="type"?(log$2.warn(tsml(_templateObject,a,l)),s.setAttribute(a,l)):a==="textContent"?textContent(s,l):s[a]=l}),Object.getOwnPropertyNames(e).forEach(function(a){s.setAttribute(a,e[a])}),n&&appendContent(s,n),s}function textContent(r,t){return typeof r.textContent>"u"?r.innerText=t:r.textContent=t,r}function prependTo(r,t){t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r)}function hasClass(r,t){return throwIfWhitespace(t),r.classList?r.classList.contains(t):classRegExp(t).test(r.className)}function addClass(r,t){return r.classList?r.classList.add(t):hasClass(r,t)||(r.className=(r.className+" "+t).trim()),r}function removeClass(r,t){return r.classList?r.classList.remove(t):(throwIfWhitespace(t),r.className=r.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),r}function toggleClass(r,t,e){var n=hasClass(r,t);if(typeof e=="function"&&(e=e(r,t)),typeof e!="boolean"&&(e=!n),e!==n)return e?addClass(r,t):removeClass(r,t),r}function setAttributes(r,t){Object.getOwnPropertyNames(t).forEach(function(e){var n=t[e];n==null||n===!1?r.removeAttribute(e):r.setAttribute(e,n===!0?"":n)})}function getAttributes(r){var t={};if(r&&r.attributes&&r.attributes.length>0)for(var e=r.attributes,n=e.length-1;n>=0;n--){var s=e[n].name,a=e[n].value;typeof r[s]!="boolean"&&",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+s+",")===-1||(a=a!==null),t[s]=a}return t}function getAttribute(r,t){return r.getAttribute(t)}function setAttribute(r,t,e){r.setAttribute(t,e)}function removeAttribute(r,t){r.removeAttribute(t)}function blockTextSelection(){document_1.body.focus(),document_1.onselectstart=function(){return!1}}function unblockTextSelection(){document_1.onselectstart=function(){return!0}}function getBoundingClientRect(r){if(r&&r.getBoundingClientRect&&r.parentNode){var t=r.getBoundingClientRect(),e={};return["bottom","height","left","right","top","width"].forEach(function(n){t[n]!==void 0&&(e[n]=t[n])}),e.height||(e.height=parseFloat(computedStyle(r,"height"))),e.width||(e.width=parseFloat(computedStyle(r,"width"))),e}}function findPosition(r){var t=void 0;if(r.getBoundingClientRect&&r.parentNode&&(t=r.getBoundingClientRect()),!t)return{left:0,top:0};var e=document_1.documentElement,n=document_1.body,s=e.clientLeft||n.clientLeft||0,a=window_1.pageXOffset||n.scrollLeft,l=t.left+a-s,u=e.clientTop||n.clientTop||0,c=window_1.pageYOffset||n.scrollTop,h=t.top+c-u;return{left:Math.round(l),top:Math.round(h)}}function getPointerPosition(r,t,e){var n={},s=findPosition(r),a=r.offsetWidth,l=r.offsetHeight,u=s.top,c=s.left,h=t.pageY,p=t.pageX;if(t.changedTouches&&(p=t.changedTouches[0].pageX,h=t.changedTouches[0].pageY),e){var g=[h,p];p=g[0],h=g[1]}return n.y=Math.max(0,Math.min(1,(u-h+l)/l)),n.x=Math.max(0,Math.min(1,(p-c)/a)),n}function isTextNode(r){return isObject$1(r)&&r.nodeType===3}function emptyEl(r){for(;r.firstChild;)r.removeChild(r.firstChild);return r}function normalizeContent(r){return typeof r=="function"&&(r=r()),(Array.isArray(r)?r:[r]).map(function(t){return typeof t=="function"&&(t=t()),isEl(t)||isTextNode(t)?t:typeof t=="string"&&/\S/.test(t)?document_1.createTextNode(t):void 0}).filter(function(t){return t})}function appendContent(r,t){return normalizeContent(t).forEach(function(e){return r.appendChild(e)}),r}function insertContent(r,t){return appendContent(emptyEl(r),t)}function isSingleLeftClick(r){return r.button===void 0&&r.buttons===void 0||r.button===0&&r.buttons===void 0||IE_VERSION===9||r.button===0&&r.buttons===1}function newGUID(){return _guid++}function getData(r){var t=r[elIdAttr];return t||(t=r[elIdAttr]=newGUID()),elData[t]||(elData[t]={}),elData[t]}function hasData(r){var t=r[elIdAttr];return!!t&&!!Object.getOwnPropertyNames(elData[t]).length}function removeData(r){var t=r[elIdAttr];if(t){delete elData[t];try{delete r[elIdAttr]}catch{r.removeAttribute?r.removeAttribute(elIdAttr):r[elIdAttr]=null}}}function _cleanUpEvents(r,t){var e=getData(r);e.handlers[t].length===0&&(delete e.handlers[t],r.removeEventListener?r.removeEventListener(t,e.dispatcher,!1):r.detachEvent&&r.detachEvent("on"+t,e.dispatcher)),Object.getOwnPropertyNames(e.handlers).length<=0&&(delete e.handlers,delete e.dispatcher,delete e.disabled),Object.getOwnPropertyNames(e).length===0&&removeData(r)}function _handleMultipleEvents(r,t,e,n){e.forEach(function(s){r(t,s,n)})}function fixEvent(r){function t(){return!0}function e(){return!1}if(!r||!r.isPropagationStopped){var n=r||window_1.event;r={};for(var s in n)s!=="layerX"&&s!=="layerY"&&s!=="keyLocation"&&s!=="webkitMovementX"&&s!=="webkitMovementY"&&(s==="returnValue"&&n.preventDefault||(r[s]=n[s]));if(r.target||(r.target=r.srcElement||document_1),r.relatedTarget||(r.relatedTarget=r.fromElement===r.target?r.toElement:r.fromElement),r.preventDefault=function(){n.preventDefault&&n.preventDefault(),r.returnValue=!1,n.returnValue=!1,r.defaultPrevented=!0},r.defaultPrevented=!1,r.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),r.cancelBubble=!0,n.cancelBubble=!0,r.isPropagationStopped=t},r.isPropagationStopped=e,r.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),r.isImmediatePropagationStopped=t,r.stopPropagation()},r.isImmediatePropagationStopped=e,r.clientX!==null&&r.clientX!==void 0){var a=document_1.documentElement,l=document_1.body;r.pageX=r.clientX+(a&&a.scrollLeft||l&&l.scrollLeft||0)-(a&&a.clientLeft||l&&l.clientLeft||0),r.pageY=r.clientY+(a&&a.scrollTop||l&&l.scrollTop||0)-(a&&a.clientTop||l&&l.clientTop||0)}r.which=r.charCode||r.keyCode,r.button!==null&&r.button!==void 0&&(r.button=1&r.button?0:4&r.button?1:2&r.button?2:0)}return r}function on(r,t,e){if(Array.isArray(t))return _handleMultipleEvents(on,r,t,e);var n=getData(r);if(n.handlers||(n.handlers={}),n.handlers[t]||(n.handlers[t]=[]),e.guid||(e.guid=newGUID()),n.handlers[t].push(e),n.dispatcher||(n.disabled=!1,n.dispatcher=function(a,l){if(!n.disabled){a=fixEvent(a);var u=n.handlers[a.type];if(u)for(var c=u.slice(0),h=0,p=c.length;h<p&&(!a.isImmediatePropagationStopped||!a.isImmediatePropagationStopped());h++)try{c[h].call(r,a,l)}catch(g){log$2.error(g)}}}),n.handlers[t].length===1)if(r.addEventListener){var s=!1;_supportsPassive&&passiveEvents.indexOf(t)>-1&&(s={passive:!0}),r.addEventListener(t,n.dispatcher,s)}else r.attachEvent&&r.attachEvent("on"+t,n.dispatcher)}function off(r,t,e){if(hasData(r)){var n=getData(r);if(n.handlers){if(Array.isArray(t))return _handleMultipleEvents(off,r,t,e);var s=function(c,h){n.handlers[h]=[],_cleanUpEvents(c,h)};if(t!==void 0){var a=n.handlers[t];if(a){if(!e)return void s(r,t);if(e.guid)for(var l=0;l<a.length;l++)a[l].guid===e.guid&&a.splice(l--,1);_cleanUpEvents(r,t)}}else for(var u in n.handlers)Object.prototype.hasOwnProperty.call(n.handlers||{},u)&&s(r,u)}}}function trigger(r,t,e){var n=hasData(r)?getData(r):{},s=r.parentNode||r.ownerDocument;if(typeof t=="string"&&(t={type:t,target:r}),t=fixEvent(t),n.dispatcher&&n.dispatcher.call(r,t,e),s&&!t.isPropagationStopped()&&t.bubbles===!0)trigger.call(null,s,t,e);else if(!s&&!t.defaultPrevented){var a=getData(t.target);t.target[t.type]&&(a.disabled=!0,typeof t.target[t.type]=="function"&&t.target[t.type](),a.disabled=!1)}return!t.defaultPrevented}function one(r,t,e){if(Array.isArray(t))return _handleMultipleEvents(one,r,t,e);var n=function s(){off(r,t,s),e.apply(this,arguments)};n.guid=e.guid=e.guid||newGUID(),on(r,t,n)}function autoSetupTimeout(r,t){t&&(videojs$2=t),window_1.setTimeout(autoSetup,r)}function evented(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=t.eventBusKey;if(e){if(!r[e].nodeName)throw new Error('The eventBusKey "'+e+'" does not refer to an element.');r.eventBusEl_=r[e]}else r.eventBusEl_=createEl("span",{className:"vjs-event-bus"});return assign(r,EventedMixin),r.on("dispose",function(){r.off(),window_1.setTimeout(function(){r.eventBusEl_=null},0)}),r}function stateful(r,t){return assign(r,StatefulMixin),r.state=assign({},r.state,t),typeof r.handleStateChanged=="function"&&isEvented(r)&&r.on("statechanged",r.handleStateChanged),r}function toTitleCase(r){return typeof r!="string"?r:r.charAt(0).toUpperCase()+r.slice(1)}function titleCaseEquals(r,t){return toTitleCase(r)===toTitleCase(t)}function mergeOptions(){for(var r={},t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.forEach(function(s){s&&each(s,function(a,l){if(!isPlain(a))return void(r[l]=a);isPlain(r[l])||(r[l]={}),r[l]=mergeOptions(r[l],a)})}),r}function extend(){var r,t,e,n,s,a,l=arguments[0]||{},u=1,c=arguments.length,h=!1;for(typeof l=="boolean"&&(h=l,l=arguments[u]||{},u++),(l===void 0?"undefined":_typeof(l))==="object"||isFunction(l)||(l={}),u===c&&(l=this,u--);u<c;u++)if((r=arguments[u])!=null)for(t in r)e=l[t],n=r[t],l!==n&&(h&&n&&(isPlain(n)||(s=Array.isArray(n)))?(s?(s=!1,a=e&&Array.isArray(e)?e:[]):a=e&&isPlain(e)?e:{},l[t]=extend(h,a,n)):n!==void 0&&(l[t]=n));return l}function getRawTag(r){var t=hasOwnProperty.call(r,symToStringTag$1),e=r[symToStringTag$1];try{r[symToStringTag$1]=void 0;var n=!0}catch{}var s=nativeObjectToString.call(r);return n&&(t?r[symToStringTag$1]=e:delete r[symToStringTag$1]),s}function objectToString(r){return nativeObjectToString$1.call(r)}function baseGetTag(r){return r==null?r===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(r)?_getRawTag(r):_objectToString(r)}function isObjectLike(r){return r!=null&&typeof r=="object"}function isSymbol(r){return typeof r=="symbol"||isObjectLike_1(r)&&_baseGetTag(r)==symbolTag}function isKey(r,t){if(isArray_1(r))return!1;var e=typeof r;return!(e!="number"&&e!="symbol"&&e!="boolean"&&r!=null&&!isSymbol_1(r))||reIsPlainProp.test(r)||!reIsDeepProp.test(r)||t!=null&&r in Object(t)}function isObject$2(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}function isFunction$1(r){if(!isObject_1(r))return!1;var t=_baseGetTag(r);return t==funcTag||t==genTag||t==asyncTag||t==proxyTag}function isMasked(r){return!!maskSrcKey&&maskSrcKey in r}function toSource(r){if(r!=null){try{return funcToString$1.call(r)}catch{}try{return r+""}catch{}}return""}function baseIsNative(r){return!(!isObject_1(r)||_isMasked(r))&&(isFunction_1(r)?reIsNative:reIsHostCtor).test(_toSource(r))}function getValue(r,t){return r==null?void 0:r[t]}function getNative(r,t){var e=_getValue(r,t);return _baseIsNative(e)?e:void 0}function hashClear(){this.__data__=_nativeCreate?_nativeCreate(null):{},this.size=0}function hashDelete(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}function hashGet(r){var t=this.__data__;if(_nativeCreate){var e=t[r];return e===HASH_UNDEFINED?void 0:e}return hasOwnProperty$2.call(t,r)?t[r]:void 0}function hashHas(r){var t=this.__data__;return _nativeCreate?t[r]!==void 0:hasOwnProperty$3.call(t,r)}function hashSet(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=_nativeCreate&&t===void 0?HASH_UNDEFINED$1:t,this}function Hash(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}function listCacheClear(){this.__data__=[],this.size=0}function eq(r,t){return r===t||r!==r&&t!==t}function assocIndexOf(r,t){for(var e=r.length;e--;)if(eq_1(r[e][0],t))return e;return-1}function listCacheDelete(r){var t=this.__data__,e=_assocIndexOf(t,r);return!(e<0)&&(e==t.length-1?t.pop():splice.call(t,e,1),--this.size,!0)}function listCacheGet(r){var t=this.__data__,e=_assocIndexOf(t,r);return e<0?void 0:t[e][1]}function listCacheHas(r){return _assocIndexOf(this.__data__,r)>-1}function listCacheSet(r,t){var e=this.__data__,n=_assocIndexOf(e,r);return n<0?(++this.size,e.push([r,t])):e[n][1]=t,this}function ListCache(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}function mapCacheClear(){this.size=0,this.__data__={hash:new _Hash,map:new(_Map||_ListCache),string:new _Hash}}function isKeyable(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}function getMapData(r,t){var e=r.__data__;return _isKeyable(t)?e[typeof t=="string"?"string":"hash"]:e.map}function mapCacheDelete(r){var t=_getMapData(this,r).delete(r);return this.size-=t?1:0,t}function mapCacheGet(r){return _getMapData(this,r).get(r)}function mapCacheHas(r){return _getMapData(this,r).has(r)}function mapCacheSet(r,t){var e=_getMapData(this,r),n=e.size;return e.set(r,t),this.size+=e.size==n?0:1,this}function MapCache(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}function memoize(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new TypeError(FUNC_ERROR_TEXT);var e=function(){var n=arguments,s=t?t.apply(this,n):n[0],a=e.cache;if(a.has(s))return a.get(s);var l=r.apply(this,n);return e.cache=a.set(s,l)||a,l};return e.cache=new(memoize.Cache||_MapCache),e}function memoizeCapped(r){var t=memoize_1(r,function(n){return e.size===MAX_MEMOIZE_SIZE&&e.clear(),n}),e=t.cache;return t}function arrayMap(r,t){for(var e=-1,n=r==null?0:r.length,s=Array(n);++e<n;)s[e]=t(r[e],e,r);return s}function baseToString(r){if(typeof r=="string")return r;if(isArray_1(r))return _arrayMap(r,baseToString)+"";if(isSymbol_1(r))return symbolToString?symbolToString.call(r):"";var t=r+"";return t=="0"&&1/r==-INFINITY?"-0":t}function toString$1(r){return r==null?"":_baseToString(r)}function castPath(r,t){return isArray_1(r)?r:_isKey(r,t)?[r]:_stringToPath(toString_1(r))}function toKey(r){if(typeof r=="string"||isSymbol_1(r))return r;var t=r+"";return t=="0"&&1/r==-INFINITY$1?"-0":t}function baseGet(r,t){t=_castPath(t,r);for(var e=0,n=t.length;r!=null&&e<n;)r=r[_toKey(t[e++])];return e&&e==n?r:void 0}function get$1(r,t,e){var n=r==null?void 0:_baseGet(r,t);return n===void 0?e:n}function getParams(r,t){var e=t.split("?")[1];if(e){var n=new RegExp("(^|&)"+r+"=([^&]*)(&|$)","i"),s=e.match(n);return s!=null?decodeURIComponent(s[2]):null}}function guid(){function r(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return r()+r()+"-"+r()+"-"+r()+"-"+r()+"-"+r()+r()+r()}function unifyProtocol(r){r=r.replace(/^(http|https):/,"");var t=window.location.protocol;return t!="http:"&&t!="https:"&&(t="https:"),r=t+r}function convertProtocol(r){var t=[];if(r.indexOf(".sdp")>-1)r=r.replace(".sdp",".flv"),t.push(r.replace(".sdp",".m3u8"));else{var e=r.replace("webrtc://","https://").replace("?",".flv?");e.indexOf("?")===-1&&e.indexOf(".flv")===-1&&(e+=".flv"),hlsSrc=r.replace("webrtc://","https://").replace("?",".m3u8?"),hlsSrc.indexOf("?")===-1&&hlsSrc.indexOf(".m3u8")===-1&&(hlsSrc+=".m3u8"),t.push(hlsSrc)}return t}function replaceHost(r,t){var e=/^http(s)?:\/\/(.*?)\//,n=r.match(e);return r.replace(n[2],t)}function getViewportSize(){var r=document,t=r.documentElement,e=r.body;return{width:t&&t.clientWidth||e&&e.offsetWidth||window.innerWidth||0,height:t&&t.clientHeight||e&&e.offsetHeight||window.innerHeight||0}}function getTimeStamp(){return new Date().getTime()}function getTimeStampBySecond(){return Date.parse(new Date)/1e3}function loadCssText(r,t){var e=document.getElementById(r);if(e)e.innerHTML=t;else{var n=document.createElement("style");n.id=r,n.type="text/css",n.appendChild(document.createTextNode(t)),document.getElementsByTagName("head")[0].appendChild(n)}}function releaseCssText(r){var t=document.getElementById(r);t&&t.remove()}function loadScript(r,t,e){var n=arguments.length>3&&arguments[3]!==void 0&&arguments[3],s=document.createElement("script");if(s.onload=s.onreadystatechange=function(){this.readyState&&this.readyState!=="loaded"&&this.readyState!=="complete"||(typeof t=="function"&&t(),s.onload=s.onreadystatechange=null,s.parentNode&&!n&&s.parentNode.removeChild(s))},e){for(var a in e)if(e.hasOwnProperty(a)){var l=e[a];l===null?s.removeAttribute(l):s.setAttribute(a,l)}}s.src=r,document.getElementsByTagName("head")[0].appendChild(s)}function serializeParams(r){var t=[],e=function(n,s){s=typeof s=="function"?s():s,s=s===null||s===void 0?"":s,t[t.length]=encodeURIComponent(n)+"="+encodeURIComponent(s)};return function n(s,a){var l=void 0,u=void 0,c=void 0;if(s)if(Array.isArray(a))for(l=0,u=a.length;l<u;l++)n(s+"["+(_typeof(a[l])==="object"&&a[l]?l:"")+"]",a[l]);else if(String(a)==="[object Object]")for(c in a)n(s+"["+c+"]",a[c]);else e(s,a);else if(Array.isArray(a))for(l=0,u=a.length;l<u;l++)e(a[l].name,a[l].value);else for(c in a)n(c,a[c]);return t}("",r).join("&")}function encodeHTML(r){return r.length?String(r).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\"/g,""").replace(/\'/g,"'").replace(/\//g,"/"):""}function isWebrtcUrl(r){return/webrtc:\/\//.test(r)||/\.sdp/.test(r)}function getperformance(){return window.performance||window.msPerformance||window.webkitPerformance||{}}function arrangeWebrtcSource(r,t){var e=getParams("tabr_bitrates",r),n=getParams("tabr_start_bitrate",r),s=getParams("tabr_control",r)==="auto";r=r.replace("&tabr_control=auto","");var a=[],l=[];if(e&&n){if(l=e.split(",").map(function(p){var g,v=t.webrtcConfig.abrLabels[p]||p;return a.push(v),g={},g[v]=[{src:r.replace("tabr_start_bitrate="+n,"tabr_start_bitrate="+p)}],g}),s){var u;l.push((u={},u[t.webrtcConfig.abrLabels.auto||"AUTO"]=[{src:r+"&tabr_control=auto"}],u)),a.push(t.webrtcConfig.abrLabels.auto||"AUTO")}var c={};l.forEach(function(p){for(var g in p)c[g]=p[g]}),t.showOrder=a,t.defaultRes=s?t.webrtcConfig.abrLabels.auto||"AUTO":t.webrtcConfig.abrLabels[n]||n||a[0];var h={};a.forEach(function(p){h[p]=t.webrtcConfig.abrLabels[p]||p}),t.labels=h,t.label=h,t.sources=[],t.multiResolution={sources:c}}}function rangeCheck(r,t,e){if(typeof t!="number"||t<0||t>e)throw new Error("Failed to execute '"+r+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+e+").")}function getRange(r,t,e,n){return rangeCheck(r,n,e.length-1),e[n][t]}function createTimeRangesObj(r){return r===void 0||r.length===0?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:r.length,start:getRange.bind(null,"start",0,r),end:getRange.bind(null,"end",1,r)}}function createTimeRanges(r,t){return Array.isArray(r)?createTimeRangesObj(r):r===void 0||t===void 0?createTimeRangesObj():createTimeRangesObj([[r,t]])}function bufferedPercent(r,t){var e=0,n=void 0,s=void 0;if(!t)return 0;r&&r.length||(r=createTimeRanges(0,0));for(var a=0;a<r.length;a++)n=r.start(a),s=r.end(a),s>t&&(s=t),e+=s-n;return e/t}function MediaError(r){if(r instanceof MediaError)return r;typeof r=="number"?this.code=r:typeof r=="string"?this.message=r:isObject$1(r)&&(typeof r.code=="number"&&(this.code=r.code),assign(this,r)),this.message||(this.message=MediaError.defaultMessages[this.code]||"")}function SafeParseTuple(r,t){var e,n=null;try{e=JSON.parse(r,t)}catch(s){n=s}return[n,e]}function isPromise(r){return r!==void 0&&typeof r.then=="function"}function silencePromise(r){isPromise(r)&&r.then(null,function(t){})}function isFunction$3(r){if(!r)return!1;var t=toString$3.call(r);return t==="[object Function]"||typeof r=="function"&&t!=="[object RegExp]"||typeof window<"u"&&(r===window.setTimeout||r===window.alert||r===window.confirm||r===window.prompt)}function extend$1(){for(var r={},t=0;t<arguments.length;t++){var e=arguments[t];for(var n in e)hasOwnProperty$4.call(e,n)&&(r[n]=e[n])}return r}function forEachArray(r,t){for(var e=0;e<r.length;e++)t(r[e])}function isEmpty(r){for(var t in r)if(r.hasOwnProperty(t))return!1;return!0}function initParams(r,t,e){var n=r;return isFunction_1$2(t)?(e=t,typeof r=="string"&&(n={uri:r})):n=immutable(t,{uri:r}),n.callback=e,n}function createXHR(r,t,e){return t=initParams(r,t,e),_createXHR(t)}function _createXHR(r){function t(){u.readyState===4&&setTimeout(s,0)}function e(){var N=void 0;if(N=u.response?u.response:u.responseText||getXml(u),C)try{N=JSON.parse(N)}catch{}return N}function n(N){return clearTimeout(p),N instanceof Error||(N=new Error(""+(N||"Unknown XMLHttpRequest Error"))),N.statusCode=0,l(N,I)}function s(){if(!h){var N;clearTimeout(p),N=r.useXDR&&u.status===void 0?200:u.status===1223?204:u.status;var x=I,F=null;return N!==0?(x={body:e(),statusCode:N,method:v,headers:{},url:g,rawRequest:u},u.getAllResponseHeaders&&(x.headers=parseHeaders(u.getAllResponseHeaders()))):F=new Error("Internal XMLHttpRequest Error"),l(F,x,x.body)}}if(typeof r.callback>"u")throw new Error("callback argument missing");var a=!1,l=function(N,x,F){a||(a=!0,r.callback(N,x,F))},u=r.xhr||null;u||(u=r.cors||r.useXDR?new createXHR.XDomainRequest:new createXHR.XMLHttpRequest);var c,h,p,g=u.url=r.uri||r.url,v=u.method=r.method||"GET",y=r.body||r.data,_=u.headers=r.headers||{},b=!!r.sync,C=!1,I={body:void 0,headers:{},statusCode:0,method:v,url:g,rawRequest:u};if("json"in r&&r.json!==!1&&(C=!0,_.accept||_.Accept||(_.Accept="application/json"),v!=="GET"&&v!=="HEAD"&&(_["content-type"]||_["Content-Type"]||(_["Content-Type"]="application/json"),y=JSON.stringify(r.json===!0?y:r.json))),u.onreadystatechange=t,u.onload=s,u.onerror=n,u.onprogress=function(){},u.onabort=function(){h=!0},u.ontimeout=n,u.open(v,g,!b,r.username,r.password),b||(u.withCredentials=!!r.withCredentials),!b&&r.timeout>0&&(p=setTimeout(function(){if(!h){h=!0,u.abort("timeout");var N=new Error("XMLHttpRequest timeout");N.code="ETIMEDOUT",n(N)}},r.timeout)),u.setRequestHeader)for(c in _)_.hasOwnProperty(c)&&u.setRequestHeader(c,_[c]);else if(r.headers&&!isEmpty(r.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in r&&(u.responseType=r.responseType),"beforeSend"in r&&typeof r.beforeSend=="function"&&r.beforeSend(u),u.send(y||null),u}function getXml(r){if(r.responseType==="document")return r.responseXML;var t=r.responseXML&&r.responseXML.documentElement.nodeName==="parsererror";return r.responseType!==""||t?null:r.responseXML}function noop(){}function ParsingError(r,t){this.name="ParsingError",this.code=r.code,this.message=t||r.message}function parseTimeStamp(r){function t(n,s,a,l){return 3600*(0|n)+60*(0|s)+(0|a)+(0|l)/1e3}var e=r.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return e?e[3]?t(e[1],e[2],e[3].replace(":",""),e[4]):e[1]>59?t(e[1],e[2],0,e[4]):t(0,e[1],e[2],e[4]):null}function Settings(){this.values=_objCreate(null)}function parseOptions(r,t,e,n){var s=n?r.split(n):[r];for(var a in s)if(typeof s[a]=="string"){var l=s[a].split(e);if(l.length===2){var u=l[0],c=l[1];t(u,c)}}}function parseCue(r,t,e){function n(){var l=parseTimeStamp(r);if(l===null)throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed timestamp: "+a);return r=r.replace(/^[^\sa-zA-Z-]+/,""),l}function s(){r=r.replace(/^\s+/,"")}var a=r;if(s(),t.startTime=n(),s(),r.substr(0,3)!=="-->")throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+a);r=r.substr(3),s(),t.endTime=n(),s(),function(l,u){var c=new Settings;parseOptions(l,function(h,p){switch(h){case"region":for(var g=e.length-1;g>=0;g--)if(e[g].id===p){c.set(h,e[g].region);break}break;case"vertical":c.alt(h,p,["rl","lr"]);break;case"line":var v=p.split(","),y=v[0];c.integer(h,y),c.percent(h,y)&&c.set("snapToLines",!1),c.alt(h,y,["auto"]),v.length===2&&c.alt("lineAlign",v[1],["start","middle","end"]);break;case"position":v=p.split(","),c.percent(h,v[0]),v.length===2&&c.alt("positionAlign",v[1],["start","middle","end"]);break;case"size":c.percent(h,p);break;case"align":c.alt(h,p,["start","middle","end","left","right"])}},/:/,/\s/),u.region=c.get("region",null),u.vertical=c.get("vertical",""),u.line=c.get("line","auto"),u.lineAlign=c.get("lineAlign","start"),u.snapToLines=c.get("snapToLines",!0),u.size=c.get("size",100),u.align=c.get("align","middle"),u.position=c.get("position",{start:0,left:0,middle:50,end:100,right:100},u.align),u.positionAlign=c.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},u.align)}(r,t)}function parseContent(r,t){function e(p){return ESCAPE[p]}for(var n,s=r.document.createElement("div"),a=s,l=[];(n=function(){if(!t)return null;var p=t.match(/^([^<]*)(<[^>]+>?)?/);return function(g){return t=t.substr(g.length),g}(p[1]?p[1]:p[2])}())!==null;)if(n[0]!=="<")a.appendChild(r.document.createTextNode(function(p){for(;h=p.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)p=p.replace(h[0],e);return p}(n)));else{if(n[1]==="/"){l.length&&l[l.length-1]===n.substr(2).replace(">","")&&(l.pop(),a=a.parentNode);continue}var u,c=parseTimeStamp(n.substr(1,n.length-2));if(c){u=r.document.createProcessingInstruction("timestamp",c),a.appendChild(u);continue}var h=n.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!h||!(u=function(p,g){var v=TAG_NAME[p];if(!v)return null;var y=r.document.createElement(v);y.localName=v;var _=TAG_ANNOTATION[p];return _&&g&&(y[_]=g.trim()),y}(h[1],h[3]))||!function(p,g){return!NEEDS_PARENT[g.localName]||NEEDS_PARENT[g.localName]===p.localName}(a,u))continue;h[2]&&(u.className=h[2].substr(1).replace("."," ")),l.push(h[1]),a.appendChild(u),a=u}return s}function isStrongRTLChar(r){for(var t=0;t<strongRTLRanges.length;t++){var e=strongRTLRanges[t];if(r>=e[0]&&r<=e[1])return!0}return!1}function determineBidi(r){function t(u,c){for(var h=c.childNodes.length-1;h>=0;h--)u.push(c.childNodes[h])}function e(u){if(!u||!u.length)return null;var c=u.pop(),h=c.textContent||c.innerText;if(h){var p=h.match(/^.*(\n|\r)/);return p?(u.length=0,p[0]):h}return c.tagName==="ruby"?e(u):c.childNodes?(t(u,c),e(u)):void 0}var n,s=[],a="";if(!r||!r.childNodes)return"ltr";for(t(s,r);a=e(s);)for(var l=0;l<a.length;l++)if(n=a.charCodeAt(l),isStrongRTLChar(n))return"rtl";return"ltr"}function computeLinePos(r){if(typeof r.line=="number"&&(r.snapToLines||r.line>=0&&r.line<=100))return r.line;if(!r.track||!r.track.textTrackList||!r.track.textTrackList.mediaElement)return-1;for(var t=r.track,e=t.textTrackList,n=0,s=0;s<e.length&&e[s]!==t;s++)e[s].mode==="showing"&&n++;return-1*++n}function StyleBox(){}function CueStyleBox(r,t,e){var n=/MSIE\s8\.0/.test(navigator.userAgent),s="rgba(255, 255, 255, 1)",a="rgba(0, 0, 0, 0.8)";n&&(s="rgb(255, 255, 255)",a="rgb(0, 0, 0)"),StyleBox.call(this),this.cue=t,this.cueDiv=parseContent(r,t.text);var l={color:s,backgroundColor:a,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};n||(l.writingMode=t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl",l.unicodeBidi="plaintext"),this.applyStyles(l,this.cueDiv),this.div=r.document.createElement("div"),l={textAlign:t.align==="middle"?"center":t.align,font:e.font,whiteSpace:"pre-line",position:"absolute"},n||(l.direction=determineBidi(this.cueDiv),l.writingMode=t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(l),this.div.appendChild(this.cueDiv);var u=0;switch(t.positionAlign){case"start":u=t.position;break;case"middle":u=t.position-t.size/2;break;case"end":u=t.position-t.size}t.vertical===""?this.applyStyles({left:this.formatStyle(u,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(u,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(c){this.applyStyles({top:this.formatStyle(c.top,"px"),bottom:this.formatStyle(c.bottom,"px"),left:this.formatStyle(c.left,"px"),right:this.formatStyle(c.right,"px"),height:this.formatStyle(c.height,"px"),width:this.formatStyle(c.width,"px")})}}function BoxPosition(r){var t,e,n,s,a=/MSIE\s8\.0/.test(navigator.userAgent);if(r.div){e=r.div.offsetHeight,n=r.div.offsetWidth,s=r.div.offsetTop;var l=(l=r.div.childNodes)&&(l=l[0])&&l.getClientRects&&l.getClientRects();r=r.div.getBoundingClientRect(),t=l?Math.max(l[0]&&l[0].height||0,r.height/l.length):0}this.left=r.left,this.right=r.right,this.top=r.top||s,this.height=r.height||e,this.bottom=r.bottom||s+(r.height||e),this.width=r.width||n,this.lineHeight=t!==void 0?t:r.lineHeight,a&&!this.lineHeight&&(this.lineHeight=13)}function moveBoxToLinePosition(r,t,e,n){var s=new BoxPosition(t),a=t.cue,l=computeLinePos(a),u=[];if(a.snapToLines){var c;switch(a.vertical){case"":u=["+y","-y"],c="height";break;case"rl":u=["+x","-x"],c="width";break;case"lr":u=["-x","+x"],c="width"}var h=s.lineHeight,p=h*Math.round(l),g=e[c]+h,v=u[0];Math.abs(p)>g&&(p=p<0?-1:1,p*=Math.ceil(g/h)*h),l<0&&(p+=a.vertical===""?e.height:e.width,u=u.reverse()),s.move(v,p)}else{var y=s.lineHeight/e.height*100;switch(a.lineAlign){case"middle":l-=y/2;break;case"end":l-=y}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(l,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(l,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(l,"%")})}u=["+y","-x","+x","-y"],s=new BoxPosition(t)}var _=function(b,C){for(var I,N=new BoxPosition(b),x=1,F=0;F<C.length;F++){for(;b.overlapsOppositeAxis(e,C[F])||b.within(e)&&b.overlapsAny(n);)b.move(C[F]);if(b.within(e))return b;var P=b.intersectPercentage(e);x>P&&(I=new BoxPosition(b),x=P),b=new BoxPosition(N)}return I||N}(s,u);t.move(_.toCSSCompatValues(e))}function WebVTT$1(){}function findDirectionSetting(r){return typeof r=="string"&&!!directionSetting[r.toLowerCase()]&&r.toLowerCase()}function findAlignSetting(r){return typeof r=="string"&&!!alignSetting[r.toLowerCase()]&&r.toLowerCase()}function extend$2(r){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)r[n]=e[n]}return r}function VTTCue(r,t,e){var n=this,s=/MSIE\s8\.0/.test(navigator.userAgent),a={};s?n=document.createElement("custom"):a.enumerable=!0,n.hasBeenReset=!1;var l="",u=!1,c=r,h=t,p=e,g=null,v="",y=!0,_="auto",b="start",C=50,I="middle",N=50,x="middle";if(Object.defineProperty(n,"id",extend$2({},a,{get:function(){return l},set:function(F){l=""+F}})),Object.defineProperty(n,"pauseOnExit",extend$2({},a,{get:function(){return u},set:function(F){u=!!F}})),Object.defineProperty(n,"startTime",extend$2({},a,{get:function(){return c},set:function(F){if(typeof F!="number")throw new TypeError("Start time must be set to a number.");c=F,this.hasBeenReset=!0}})),Object.defineProperty(n,"endTime",extend$2({},a,{get:function(){return h},set:function(F){if(typeof F!="number")throw new TypeError("End time must be set to a number.");h=F,this.hasBeenReset=!0}})),Object.defineProperty(n,"text",extend$2({},a,{get:function(){return p},set:function(F){p=""+F,this.hasBeenReset=!0}})),Object.defineProperty(n,"region",extend$2({},a,{get:function(){return g},set:function(F){g=F,this.hasBeenReset=!0}})),Object.defineProperty(n,"vertical",extend$2({},a,{get:function(){return v},set:function(F){var P=findDirectionSetting(F);if(P===!1)throw new SyntaxError("An invalid or illegal string was specified.");v=P,this.hasBeenReset=!0}})),Object.defineProperty(n,"snapToLines",extend$2({},a,{get:function(){return y},set:function(F){y=!!F,this.hasBeenReset=!0}})),Object.defineProperty(n,"line",extend$2({},a,{get:function(){return _},set:function(F){if(typeof F!="number"&&F!==autoKeyword)throw new SyntaxError("An invalid number or illegal string was specified.");_=F,this.hasBeenReset=!0}})),Object.defineProperty(n,"lineAlign",extend$2({},a,{get:function(){return b},set:function(F){var P=findAlignSetting(F);if(!P)throw new SyntaxError("An invalid or illegal string was specified.");b=P,this.hasBeenReset=!0}})),Object.defineProperty(n,"position",extend$2({},a,{get:function(){return C},set:function(F){if(F<0||F>100)throw new Error("Position must be between 0 and 100.");C=F,this.hasBeenReset=!0}})),Object.defineProperty(n,"positionAlign",extend$2({},a,{get:function(){return I},set:function(F){var P=findAlignSetting(F);if(!P)throw new SyntaxError("An invalid or illegal string was specified.");I=P,this.hasBeenReset=!0}})),Object.defineProperty(n,"size",extend$2({},a,{get:function(){return N},set:function(F){if(F<0||F>100)throw new Error("Size must be between 0 and 100.");N=F,this.hasBeenReset=!0}})),Object.defineProperty(n,"align",extend$2({},a,{get:function(){return x},set:function(F){var P=findAlignSetting(F);if(!P)throw new SyntaxError("An invalid or illegal string was specified.");x=P,this.hasBeenReset=!0}})),n.displayState=void 0,s)return n}function findScrollSetting(r){return typeof r=="string"&&!!scrollSetting[r.toLowerCase()]&&r.toLowerCase()}function isValidPercentValue(r){return typeof r=="number"&&r>=0&&r<=100}function VTTRegion(){var r=100,t=3,e=0,n=100,s=0,a=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return r},set:function(u){if(!isValidPercentValue(u))throw new Error("Width must be between 0 and 100.");r=u}},lines:{enumerable:!0,get:function(){return t},set:function(u){if(typeof u!="number")throw new TypeError("Lines must be set to a number.");t=u}},regionAnchorY:{enumerable:!0,get:function(){return n},set:function(u){if(!isValidPercentValue(u))throw new Error("RegionAnchorX must be between 0 and 100.");n=u}},regionAnchorX:{enumerable:!0,get:function(){return e},set:function(u){if(!isValidPercentValue(u))throw new Error("RegionAnchorY must be between 0 and 100.");e=u}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(u){if(!isValidPercentValue(u))throw new Error("ViewportAnchorY must be between 0 and 100.");a=u}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(u){if(!isValidPercentValue(u))throw new Error("ViewportAnchorX must be between 0 and 100.");s=u}},scroll:{enumerable:!0,get:function(){return l},set:function(u){var c=findScrollSetting(u);if(c===!1)throw new SyntaxError("An invalid or illegal string was specified.");l=c}}})}function createTrackHelper(r,t,e,n){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},a=r.textTracks();s.kind=t,e&&(s.label=e),n&&(s.language=n),s.tech=r;var l=new ALL.text.TrackClass(s);return a.addTrack(l),l}function use(r,t){middlewares[r]=middlewares[r]||[],middlewares[r].push(t)}function setSource(r,t,e){r.setTimeout(function(){return setSourceHelper(t,middlewares[t.type],e,r)},1)}function setTech(r,t){r.forEach(function(e){return e.setTech&&e.setTech(t)})}function get$3(r,t,e){return r.reduceRight(middlewareIterator(e),t[e]())}function set$1(r,t,e,n){return t[e](r.reduce(middlewareIterator(e),n))}function middlewareIterator(r){return function(t,e){return e[r]?e[r](t):t}}function setSourceHelper(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],e=arguments[2],n=arguments[3],s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0&&arguments[5],l=t[0],u=t.slice(1);if(typeof l=="string")setSourceHelper(r,middlewares[l],e,n,s,a);else if(l){var c=l(n);c.setSource(assign({},r),function(h,p){if(h)return setSourceHelper(r,u,e,n,s,a);s.push(c),setSourceHelper(p,r.type===p.type?u:middlewares[p.type],e,n,s,a)})}else u.length?setSourceHelper(r,u,e,n,s,a):a?e(r,s):setSourceHelper(r,middlewares["*"],e,n,s,!0)}function constructColor(r,t){return"rgba("+parseInt(r[1]+r[1],16)+","+parseInt(r[2]+r[2],16)+","+parseInt(r[3]+r[3],16)+","+t+")"}function tryUpdateStyle(r,t,e){try{r.style[t]=e}catch{return}}function formatTime(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r;r=r<0?0:r;var e=Math.floor(r%60),n=Math.floor(r/60%60),s=Math.floor(r/3600),a=Math.floor(t/60%60),l=Math.floor(t/3600);return(isNaN(r)||r===1/0)&&(s=n=e="-"),s=s>0||l>0?s+":":"",n=((s||a>=10)&&n<10?"0"+n:n)+":",e=e<10?"0"+e:e,s+n+e}function formatDate(r,t){if(!r)return"";var e=new Date(r),n=e.getFullYear(),s=e.getMonth()+1,a=e.getDate(),l=e.getHours(),u=e.getMinutes();return e.getSeconds(),n+"/"+s+"/"+a+" "+l+":"+(u<10?"0"+u:u)}function parseOptionValue(r,t){if(t&&(r=t(r)),r&&r!=="none")return r}function getSelectedOptionValue(r,t){return parseOptionValue(r.options[r.options.selectedIndex].value,t)}function setSelectedOption(r,t,e){if(t){for(var n=0;n<r.options.length;n++)if(parseOptionValue(r.options[n].value,e)===t){r.selectedIndex=n;break}}}function videojs(r,t,e){var n=void 0;if(typeof r=="string"){var s=videojs.getPlayers();if(r.indexOf("#")===0&&(r=r.slice(1)),s[r])return t&&log$2.warn('Player "'+r+'" is already initialised. Options will not be applied.'),e&&s[r].ready(e),s[r];n=$("#"+r)}else n=r;if(!n||!n.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");if(n.player||Player.players[n.playerId])return n.player||Player.players[n.playerId];isEl(n)&&!document_1.body.contains(n)&&log$2.warn("The element supplied is not included in the DOM"),t=t||{},videojs.hooks("beforesetup").forEach(function(u){var c=u(n,mergeOptions(t));if(!isObject$1(c)||Array.isArray(c))return void log$2.error("please return an object in beforesetup hooks");t=mergeOptions(t,c)});var a=Component.getComponent("Player"),l=new a(n,t,e);return videojs.hooks("setup").forEach(function(u){return u(l)}),l}function toObject(r){if(r==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}function shouldUseNative(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de",Object.getOwnPropertyNames(r)[0]==="5")return!1;for(var t={},e=0;e<10;e++)t["_"+String.fromCharCode(e)]=e;if(Object.getOwnPropertyNames(t).map(function(s){return t[s]}).join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(s){n[s]=s}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}function decodeComponents(r,t){try{return decodeURIComponent(r.join(""))}catch{}if(r.length===1)return r;t=t||1;var e=r.slice(0,t),n=r.slice(t);return Array.prototype.concat.call([],decodeComponents(e),decodeComponents(n))}function decode(r){try{return decodeURIComponent(r)}catch{for(var t=r.match(singleMatcher),e=1;e<t.length;e++)r=decodeComponents(t,e).join(""),t=r.match(singleMatcher);return r}}function customDecodeURIComponent(r){for(var t={"%FE%FF":"��","%FF%FE":"��"},e=multiMatcher.exec(r);e;){try{t[e[0]]=decodeURIComponent(e[0])}catch{var n=decode(e[0]);n!==e[0]&&(t[e[0]]=n)}e=multiMatcher.exec(r)}t["%C2"]="�";for(var s=Object.keys(t),a=0;a<s.length;a++){var l=s[a];r=r.replace(new RegExp(l,"g"),t[l])}return r}function encoderForArrayFormat(r){switch(r.arrayFormat){case"index":return function(t,e,n){return e===null?[encode(t,r),"[",n,"]"].join(""):[encode(t,r),"[",encode(n,r),"]=",encode(e,r)].join("")};case"bracket":return function(t,e){return e===null?encode(t,r):[encode(t,r),"[]=",encode(e,r)].join("")};default:return function(t,e){return e===null?encode(t,r):[encode(t,r),"=",encode(e,r)].join("")}}}function parserForArrayFormat(r){var t;switch(r.arrayFormat){case"index":return function(e,n,s){if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t)return void(s[e]=n);s[e]===void 0&&(s[e]={}),s[e][t[1]]=n};case"bracket":return function(e,n,s){return t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?s[e]===void 0?void(s[e]=[n]):void(s[e]=[].concat(s[e],n)):void(s[e]=n)};default:return function(e,n,s){if(s[e]===void 0)return void(s[e]=n);s[e]=[].concat(s[e],n)}}}function encode(r,t){return t.encode?t.strict?strictUriEncode(r):encodeURIComponent(r):r}function keysSorter(r){return Array.isArray(r)?r.sort():typeof r=="object"?keysSorter(Object.keys(r)).sort(function(t,e){return Number(t)-Number(e)}).map(function(t){return r[t]}):r}function extract(r){var t=r.indexOf("?");return t===-1?"":r.slice(t+1)}function parse(r,t){t=objectAssign({arrayFormat:"none"},t);var e=parserForArrayFormat(t),n=Object.create(null);return typeof r!="string"?n:(r=r.trim().replace(/^[?#&]/,""))?(r.split("&").forEach(function(s){var a=s.replace(/\+/g," ").split("="),l=a.shift(),u=a.length>0?a.join("="):void 0;u=u===void 0?null:decodeUriComponent(u),e(decodeUriComponent(l),u,n)}),Object.keys(n).sort().reduce(function(s,a){var l=n[a];return l&&typeof l=="object"&&!Array.isArray(l)?s[a]=keysSorter(l):s[a]=l,s},Object.create(null))):n}function jsonp(r,t,e){function n(){h.parentNode&&h.parentNode.removeChild(h),window[u]="",p&&clearTimeout(p)}function s(){window[u]&&n()}typeof t=="function"&&(e=t,t={}),t||(t={});var a,l=t.prefix||"__jp",u=t.name||l+count++,c=t.funcKey||"callback";a=_typeof(t.param)=="object"?queryString.stringify(t.param):t.param;var h,p,g=t.timeout!=null?t.timeout:6e3,v=encodeURIComponent,y=document.getElementsByTagName("script")[0]||document.head;return g&&(p=setTimeout(function(){n(),e&&e(new Error("Timeout"))},g)),window[u]=function(_){n(),e&&e(null,_)},r+=(~r.indexOf("?")?"&":"?")+a+"&"+c+"="+v(u),r=r.replace("?&","?"),h=document.createElement("script"),h.setAttribute("src",r),h.setAttribute("async",!0),h.onload=function(_){},h.onreadystatechange=function(){this.readyState==="loaded"&&window[u]&&(n(),e&&e(new Error("ServerError")))},h.onerror=function(_){n(),e&&e(new Error("ServerError"))},y.parentNode.insertBefore(h,y),s}function mountHlsProvider(r){if(videojs.browser.IS_IOS&&videojs.browser.IS_MQQ||videojs.browser.IS_UC)return!1;if(videojs.browser.IS_ENABLED_MSE||videojs.browser.IS_SIMULATOR||r)try{var t=videojs.getTech&&videojs.getTech("Html5");t&&t.registerSourceHandler(HlsSourceHandler,0)}catch{}}function handlePlaybackMetadataLoaded(r,t){function e(h){return"dash-audio-"+h}function n(h,p){return h.find(function(g){return e(g.index)===p.id})}var s=r.dash.mediaPlayer,a=s.getTracksFor("audio"),l=r.audioTracks();l.length&&t.clearTracks(["audio"]);var u=s.getCurrentTrackFor("audio");a.forEach(function(h){var p=h.lang;h.roles&&h.roles.length&&(p+=" ("+h.roles.join(", ")+")"),l.addTrack(new videojs.AudioTrack({enabled:h===u,id:e(h.index),kind:h.kind||"main",label:p,language:h.lang}))});var c=function(){for(var h=0;h<l.length;h++){var p=l[h];if(p.enabled){var g=n(a,p);s.setCurrentTrack(g)}}};l.addEventListener("change",c),r.dash.mediaPlayer.on(window.dashjs.MediaPlayer.events.STREAM_TEARDOWN_COMPLETE,function(){l.removeEventListener("change",c)})}function setupAudioTracks(r,t){r.dash.mediaPlayer.on(window.dashjs.MediaPlayer.events.PLAYBACK_METADATA_LOADED,handlePlaybackMetadataLoaded.bind(null,r,t))}function find(r,t){for(var e=0;e<r.length;e++)if(t(r[e]))return r[e]}function attachDashTextTracksToVideojs(r,t,e){function n(){for(var l=r.dash.mediaPlayer,u=r.textTracks(),c=-1,h=0;h<u.length;h+=1)(function(p){var g=u[p];if(g.mode==="showing"){var v=find(s,function(_){return _.textTrack===g}),y=v?v.dashTrack:null;y&&(c=e.indexOf(y))}})(h);c!==l.getCurrentTextTrackIndex()&&l.setTextTrack(c)}var s=[],a=e.map(function(l){return{dashTrack:l,trackConfig:{label:l.lang,language:l.lang,srclang:l.lang,kind:l.kind}}}).map(function(l){var u=l.trackConfig,c=l.dashTrack,h=r.addRemoteTextTrack(u,!1);return s.push({textTrack:h.track,dashTrack:c}),h});return r.textTracks().on("change",n),r.dash.mediaPlayer.on(window_1.dashjs.MediaPlayer.events.STREAM_TEARDOWN_COMPLETE,function(){r.textTracks().off("change",n)}),n(),a}function setupTextTracks(r,t,e){function n(){a.forEach(r.removeRemoteTextTrack.bind(r)),a=[]}function s(u){var c=(u.index,u.tracks);l.off(window_1.dashjs.MediaPlayer.events.TEXT_TRACKS_ADDED,s),n(),c.length&&(a=attachDashTextTracksToVideojs(r,t,c))}window_1.VTTCue&&!/\[native code\]/.test(window_1.VTTCue.toString())&&(window_1.VTTCue=!1);var a=[];if(t.featuresNativeTextTracks)return void videojs.log.error("You must pass {html: {nativeCaptions: false}} in the videojs constructor to use text tracks in videojs-contrib-dash");var l=r.dash.mediaPlayer;l.on(window_1.dashjs.MediaPlayer.events.TEXT_TRACKS_ADDED,s),l.on(window_1.dashjs.MediaPlayer.events.CAN_PLAY,function(){l.off(window_1.dashjs.MediaPlayer.events.TEXT_TRACKS_ADDED,s)})}function mountDashProvider(r){(window_1.MediaSource||r)&&videojs.getTech("Html5").registerSourceHandler(videojs.DashSourceHandler(),0)}function getTemplate(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"fill",e=r,n="draw-"+t;return[`<svg height="100%" width="100%" viewBox="0 0 484 348">
|
|
3
3
|
<path class="`+n+`" transform="translate(4 4)" d="M383,124C350-42,122.3-40.5,90.6,123.5c-110.4,18.5-131,185,.6,216.5H381.6C519.7,310.7,494.1,137.8,383,124Z"/>
|
|
4
4
|
<path transform="translate(4 4)" d="M200.4,110.2c-9.4-5.8-19.6,2.7-19.4,11.7V256.2c0,8,10.4,16.7,19.4,10.8,2.2-1.4,111.8-65.9,114-67.3,7.4-4,10.1-15.8,0-22.2Z" style="fill:#fff ;"/>
|
|
5
5
|
</svg>`,`<svg height="100%" width="100%" viewBox="0 0 476 340">
|
|
@@ -8,28 +8,53 @@
|
|
|
8
8
|
</svg>`,`<svg height="100%" width="100%" viewBox="0 14 96 68">
|
|
9
9
|
<path class="`+n+`" d="M96,44.3v7.3c-0.1,7.7-1,15.5-1,15.5s-0.9,6.6-3.8,9.5c-3.6,3.8-7.7,3.8-9.6,4c-13.4,1-33.5,0.9-33.5,0.9 c-0.8,0-25-0.2-32.5-0.9c-2.1-0.4-6.9-0.3-10.6-4.1c-2.9-2.9-3.8-9.5-3.8-9.5s-1-7.7-1.1-15.5v-7.3c0.2-7.8,1.1-15.5,1.1-15.5 s0.9-6.6,3.8-9.5c3.6-3.8,7.7-3.8,9.6-4.1c13.4-1,33.5-0.9,33.5-0.9s20.1-0.1,33.5,0.9c1.9,0.2,5.9,0.2,9.6,4.1 c2.9,2.9,3.8,9.5,3.8,9.5S95.9,36.6,96,44.3z M38.3,61.4L64,47.9L38.3,34.4V61.4z"/>
|
|
10
10
|
<polygon points="64,47.9 38.3,61.4 38.3,34.4" fill="#fff"/>
|
|
11
|
-
</svg>`][e]}function isObject$2(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}function trimmedEndIndex(r){for(var t=r.length;t--&&reWhitespace.test(r.charAt(t)););return t}function baseTrim(r){return r&&r.slice(0,_trimmedEndIndex(r)+1).replace(reTrimStart,"")}function getRawTag(r){var t=hasOwnProperty$2.call(r,symToStringTag$1),e=r[symToStringTag$1];try{r[symToStringTag$1]=void 0;var n=!0}catch{}var s=nativeObjectToString.call(r);return n&&(t?r[symToStringTag$1]=e:delete r[symToStringTag$1]),s}function objectToString(r){return nativeObjectToString$1.call(r)}function baseGetTag(r){return r==null?r===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(r)?_getRawTag(r):_objectToString(r)}function isObjectLike(r){return r!=null&&typeof r=="object"}function isSymbol(r){return typeof r=="symbol"||isObjectLike_1(r)&&_baseGetTag(r)==symbolTag}function toNumber(r){if(typeof r=="number")return r;if(isSymbol_1(r))return NAN;if(isObject_1(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=isObject_1(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=_baseTrim(r);var e=reIsBinary.test(r);return e||reIsOctal.test(r)?freeParseInt(r.slice(2),e?2:8):reIsBadHex.test(r)?NAN:+r}function debounce(r,t,e){function n(d){var y=b,S=f;return b=f=void 0,P=d,v=r.apply(S,y)}function s(d){return P=d,_=setTimeout(u,t),A?n(d):v}function a(d){var y=d-I,S=d-P,w=t-y;return x?nativeMin(w,g-S):w}function l(d){var y=d-I,S=d-P;return I===void 0||y>=t||y<0||x&&S>=g}function u(){var d=now_1();if(l(d))return c(d);_=setTimeout(u,a(d))}function c(d){return _=void 0,k&&b?n(d):(b=f=void 0,v)}function h(){_!==void 0&&clearTimeout(_),P=0,b=I=f=_=void 0}function p(){return _===void 0?v:c(now_1())}function m(){var d=now_1(),y=l(d);if(b=arguments,f=this,I=d,y){if(_===void 0)return s(I);if(x)return clearTimeout(_),_=setTimeout(u,t),n(I)}return _===void 0&&(_=setTimeout(u,t)),v}var b,f,g,v,_,I,P=0,A=!1,x=!1,k=!0;if(typeof r!="function")throw new TypeError(FUNC_ERROR_TEXT$1);return t=toNumber_1(t)||0,isObject_1(e)&&(A=!!e.leading,x="maxWait"in e,g=x?nativeMax(toNumber_1(e.maxWait)||0,t):g,k="trailing"in e?!!e.trailing:k),m.cancel=h,m.flush=p,m}function throttle$1(r,t,e){var n=!0,s=!0;if(typeof r!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject_1(e)&&(n="leading"in e?!!e.leading:n,s="trailing"in e?!!e.trailing:s),debounce_1(r,t,{leading:n,maxWait:t,trailing:s})}function mountFlvProvider(r){if(videojs.browser.IS_IOS&&videojs.browser.IS_MQQ)return!1;if(!videojs.browser.IS_TBS&&!videojs.browser.IS_MQQB&&(!IS_IOS||!videojs.browser.IS_SAFARI)&&!videojs.browser.IE_VERSION||r)try{var t=videojs.getTech&&videojs.getTech("Html5");t&&t.registerSourceHandler(FlvSourceHandler,0)}catch{}}function mountWebRTCProvider(r){if(!videojs.browser.isWebRTCSupported())return!1;try{var t=videojs.getTech&&videojs.getTech("Html5");t&&t.registerSourceHandler(sourceHandler,0)}catch{}}function FlashRtmpDecorator(r){return r.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},r.streamFromParts=function(t,e){return t+"&"+e},r.streamToParts=function(t){var e={connection:"",stream:""};if(!t)return e;var n=t.search(/&(?!\w+=)/),s=void 0;return n!==-1?s=n+1:(n=s=t.lastIndexOf("/")+1)===0&&(n=s=t.length),e.connection=t.substring(0,n),e.stream=t.substring(s,t.length),e},r.isStreamingType=function(t){return t in r.streamingFormats},r.RTMP_RE=/^rtmp[set]?:\/\//i,r.isStreamingSrc=function(t){return r.RTMP_RE.test(t)},r.rtmpSourceHandler={},r.rtmpSourceHandler.canPlayType=function(t){return r.isStreamingType(t)?"maybe":""},r.rtmpSourceHandler.canHandleSource=function(t,e){var n=r.rtmpSourceHandler.canPlayType(t.type);return n||(r.isStreamingSrc(t.src)?"maybe":"")},r.rtmpSourceHandler.handleSource=function(t,e,n){var s=r.streamToParts(t.src);e.setRtmpConnection(s.connection),e.setRtmpStream(s.stream)},r.registerSourceHandler(r.rtmpSourceHandler),r}function _createSetter(r){var t=r.charAt(0).toUpperCase()+r.slice(1);_api["set"+t]=function(e){return this.el_.vjs_setProperty(r,e)}}function _createGetter(r){_api[r]=function(){return this.el_.vjs_getProperty(r)}}function TCPlayer(r,t,e){var n=void 0,s=new Date().getTime(),a=videojs.dom;if(typeof r=="string")n=document.querySelector("#"+r);else{if(!r||!r.nodeName)throw new TypeError("The ID or element supplied is not valid.");n=r}if(n.nodeName.toLowerCase()!="video"&&n.nodeName.toLowerCase()!="audio")throw new TypeError("The element type must be <video>.");a.hasClass(n,"tcplayer")||a.addClass(n,"tcplayer"),a.hasClass(n,"video-js")||a.addClass(n,"video-js"),videojs.browser.IE_VERSION&&(n.style.width||n.offsetWidth&&n.offsetWidth!==300)&&(window_1.VIDEOJS_NO_DYNAMIC_STYLE=!0);var l={controls:!0,language:"zh-CN",playbackRates:[.5,1,1.25,1.5,2],controlBar:{volumePanel:{inline:n.nodeName.toLowerCase()!="video"},fullscreenToggle:n.nodeName.toLowerCase()=="video",QualitySwitcherMenuButton:!0},plugins:{Skin:"",VID:"",QualitySwitcher:{},MultiResolution:{},Errors:{},Reporter:{},ContextMenu:{},LevelSwitch:{},VttThumbnail:{},PlayerMetrics:{}}};t=videojs.mergeOptions(l,t),videojs.browser.IE_VERSION&&videojs.browser.IE_VERSION<11&&window_1.top,t.autoplay&&videojs.browser.IS_ANDROID&&videojs.browser.IS_WECHAT&&(t.autoplay=!1),log("player initializing",t),videojs.getComponent("player").prototype.options_.children.splice(1,0,"logoImage");var u=videojs(r,t,e);return u.PlayerMetrics(t).setTimingData({initStart:s}),log("player initialized",t),Enc.elemManage(u),u}var version="4.8.0",commonjsGlobal$1=typeof window<"u"?window:typeof commonjsGlobal<"u"?commonjsGlobal:typeof self<"u"?self:{},win;win=typeof window<"u"?window:commonjsGlobal$1!==void 0?commonjsGlobal$1:typeof self<"u"?self:{};var window_1=win,empty={},empty$1=(Object.freeze||Object)({default:empty}),minDoc=empty$1&&empty||empty$1,topLevel=commonjsGlobal$1!==void 0?commonjsGlobal$1:typeof window<"u"?window:{},doccy;typeof document<"u"?doccy=document:(doccy=topLevel["__GLOBAL_DOCUMENT_CACHE@4"])||(doccy=topLevel["__GLOBAL_DOCUMENT_CACHE@4"]=minDoc);var document_1=doccy,USER_AGENT=window_1.navigator&&window_1.navigator.userAgent||"",VENDOR=window_1.navigator&&window_1.navigator.vendor||"",webkitVersionMap=/AppleWebKit\/([\d.]+)/i.exec(USER_AGENT),appleWebkitVersion=webkitVersionMap?parseFloat(webkitVersionMap.pop()):null,IS_IPAD=/iPad/i.test(USER_AGENT),IS_IPHONE=/iPhone/i.test(USER_AGENT)&&!IS_IPAD,IS_IPOD=/iPod/i.test(USER_AGENT),IS_IOS=IS_IPHONE||IS_IPAD||IS_IPOD,IOS_VERSION=function(){var r=USER_AGENT.match(/OS (\d+)_/i);return r&&r[1]?r[1]:null}(),IOS_VERSION_ARRAY=function(){var r=USER_AGENT.match(/OS (\d+)_(\d+)_?(\d+)?/i);return r&&[parseInt(r[1],10),parseInt(r[2],10),parseInt(r[3]||"0",10)]||[]}(),IS_ANDROID=/Android/i.test(USER_AGENT),ANDROID_VERSION=function(){var r=USER_AGENT.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!r)return null;var t=r[1]&&parseFloat(r[1]),e=r[2]&&parseFloat(r[2]);return t&&e?parseFloat(r[1]+"."+r[2]):t||null}(),IS_TBS=/TBS\/\d+/i.test(USER_AGENT),TBS_VERSION=function(){var r=USER_AGENT.match(/TBS\/(\d+)/i);if(r&&r[1])return r[1]}(),IS_MQQB=!IS_TBS&&/MQQBrowser\/\d+/i.test(USER_AGENT),IS_QQB=!IS_TBS&&/ QQBrowser\/\d+/i.test(USER_AGENT),IS_PC_WECHAT=/windowswechat/i.test(USER_AGENT),IS_WECHAT=/(micromessenger|webbrowser)/i.test(USER_AGENT),IS_MQQ=/ QQ\/\d+/i.test(USER_AGENT)||/MQQBrowser\/\d+/i.test(USER_AGENT),IS_OLD_ANDROID=IS_ANDROID&&/webkit/i.test(USER_AGENT)&&ANDROID_VERSION<2.3,IS_NATIVE_ANDROID=IS_ANDROID&&ANDROID_VERSION<5&&appleWebkitVersion<537,IS_FIREFOX=/Firefox/i.test(USER_AGENT),IS_EDGE=/Edge/i.test(USER_AGENT),IS_EDG=/Edg/i.test(USER_AGENT),IS_EDGA=/EdgA/i.test(USER_AGENT),EDG_VERSION=IS_EDG&&function(){var r=USER_AGENT.match(/Edg\/(\d+)/);return r&&r[1]?parseFloat(r[1]):null}(),EDGA_VERSION=IS_EDGA&&function(){var r=USER_AGENT.match(/EdgA\/(\d+)/);return r&&r[1]?parseFloat(r[1]):null}(),IS_CHROME=function(){return!(IS_EDGE||!/Chrome/i.test(USER_AGENT))||!(!/Safari/i.test(USER_AGENT)||!/CriOS/i.test(USER_AGENT))}()&&!IS_WECHAT&&!IS_MQQB&&!IS_QQB,CHROME_VERSION=function(){var r=USER_AGENT.match(/Chrome\/(\d+)/),t=USER_AGENT.match(/CriOS\/(\d+)/);return r&&r[1]?parseFloat(r[1]):t&&t[1]?parseFloat(t[1]):null}(),IS_IE8=/MSIE\s8\.0/.test(USER_AGENT),IE_VERSION=function(){var r=/MSIE\s(\d+)\.\d/.exec(USER_AGENT),t=r&&parseFloat(r[1]);return!t&&/Trident\/7.0/i.test(USER_AGENT)&&/rv:11.0/.test(USER_AGENT)&&(t=11),t}(),IS_SAFARI=/Safari/i.test(USER_AGENT)&&!IS_CHROME&&!IS_ANDROID&&!IS_EDGE&&!IS_MQQB&&!IS_QQB&&!IS_PC_WECHAT,IS_ANY_SAFARI=IS_SAFARI||IS_IOS,IS_SIMULATOR=IS_SAFARI&&VENDOR==="Google Inc.",IS_UC=/UCBrowser\/(\d+)\./i.test(USER_AGENT),TOUCH_ENABLED=isReal()&&("ontouchstart"in window_1||window_1.DocumentTouch&&window_1.document instanceof window_1.DocumentTouch),BACKGROUND_SIZE_SUPPORTED=isReal()&&"backgroundSize"in window_1.document.createElement("video").style,IS_WIN=/Windows/i.test(USER_AGENT),IS_MAC=/MAC OS X/i.test(USER_AGENT),WIN_VER=function(){return RegExp.$1}(),MAC_VER=function(){return RegExp.$1}(),QQ_VER=function(){return RegExp.$1}(),EDGE_VER=function(){return RegExp.$1}(),SAFARI_VER=function(){return RegExp.$1}(),FIREFOX_VER=function(){return RegExp.$1}(),CHROME_VER=function(){return RegExp.$1}(),IS_HUAWEI=/HUAWEI|honor|HMA/i.test(USER_AGENT),IS_XIAOMI=/HM|RedMi|Mi/i.test(USER_AGENT)&&!IS_HUAWEI,IS_OPPO=/OPPO/i.test(USER_AGENT),IS_VIVO=/VIVO/i.test(USER_AGENT),IS_SX=/GT-|SM-|SCH-/i.test(USER_AGENT),IS_ONE=/ONE/i.test(USER_AGENT),IS_CP=/Coolpad/i.test(USER_AGENT),IS_ZX=/ZTE/i.test(USER_AGENT),isWebRTCAPISupported=function(){return["RTCPeerConnection","webkitRTCPeerConnection","RTCIceGatherer"].filter(function(r){return r in window_1}).length>0},isWebRTCSupported=function(){return!IS_UC&&!IS_EDGE&&!(IS_EDG&&EDG_VERSION<80&&IS_EDGA&&EDGA_VERSION<80)&&!(IS_FIREFOX&&FIREFOX_VER<56)&&!(!IS_TBS&&IS_SAFARI&&IS_IOS&&(IOS_VERSION_ARRAY.length===0||IOS_VERSION_ARRAY[0]<11||IOS_VERSION_ARRAY[0]===11&&IOS_VERSION_ARRAY[1]<1||IOS_VERSION_ARRAY[0]===11&&IOS_VERSION_ARRAY[1]===1&&IOS_VERSION_ARRAY[2]<2))&&isWebRTCAPISupported()},IS_ENABLED_MSE=function(){var r=window_1.MediaSource=window_1.MediaSource||window_1.WebKitMediaSource,t=window_1.SourceBuffer=window_1.SourceBuffer||window_1.WebKitSourceBuffer,e=r&&typeof r.isTypeSupported=="function"&&r.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),n=!t||t.prototype&&typeof t.prototype.appendBuffer=="function"&&typeof t.prototype.remove=="function";return IS_IOS?void 0:e&&n}(),browser=(Object.freeze||Object)({USER_AGENT,IS_IPAD,IS_IPHONE,IS_IPOD,IS_IOS,IOS_VERSION,IOS_VERSION_ARRAY,IS_ANDROID,ANDROID_VERSION,IS_TBS,TBS_VERSION,IS_MQQB,IS_QQB,IS_PC_WECHAT,IS_WECHAT,IS_MQQ,IS_OLD_ANDROID,IS_NATIVE_ANDROID,IS_FIREFOX,IS_EDGE,IS_EDG,IS_EDGA,EDG_VERSION,EDGA_VERSION,IS_CHROME,CHROME_VERSION,IS_IE8,IE_VERSION,IS_SAFARI,IS_ANY_SAFARI,IS_SIMULATOR,IS_UC,TOUCH_ENABLED,BACKGROUND_SIZE_SUPPORTED,IS_WIN,IS_MAC,WIN_VER,MAC_VER,QQ_VER,EDGE_VER,SAFARI_VER,FIREFOX_VER,CHROME_VER,IS_HUAWEI,IS_XIAOMI,IS_OPPO,IS_VIVO,IS_SX,IS_ONE,IS_CP,IS_ZX,isWebRTCAPISupported,isWebRTCSupported,IS_ENABLED_MSE}),_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},classCallCheck=function(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")},inherits=function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)},possibleConstructorReturn=function(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||typeof t!="object"&&typeof t!="function"?r:t},taggedTemplateLiteralLoose=function(r,t){return r.raw=t,r},toString=Object.prototype.toString,keys=function(r){return isObject$1(r)?Object.keys(r):[]},log$1=void 0,level="info",history=[],logByType=function(r,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!!IE_VERSION&&IE_VERSION<11,n=log$1.levels[level],s=new RegExp("^("+n+")$");if(r!=="log"&&t.unshift(r.toUpperCase()+":"),history&&history.push([].concat(t)),(log$1.enableLog||r!="log")&&(t.unshift("TCPlayer:"),window_1.console)){var a=window_1.console[r];a||r!=="debug"||(a=window_1.console.info||window_1.console.log),a&&n&&s.test(r)&&(e&&(t=t.map(function(l){if(isObject$1(l)||Array.isArray(l))try{return JSON.stringify(l)}catch{return String(l)}return String(l)}).join(" ")),a.apply?a[Array.isArray(t)?"apply":"call"](window_1.console,t):a(t))}};log$1=function(){for(var r=arguments.length,t=Array(r),e=0;e<r;e++)t[e]=arguments[e];logByType("log",t)},log$1.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:level},log$1.level=function(r){if(typeof r=="string"){if(!log$1.levels.hasOwnProperty(r))throw new Error('"'+r+'" in not a valid log level');level=r}return level},log$1.history=function(){return history?[].concat(history):[]},log$1.history.clear=function(){history&&(history.length=0)},log$1.history.disable=function(){history!==null&&(history.length=0,history=null)},log$1.history.enable=function(){history===null&&(history=[])},log$1.enableLog=!1,log$1.error=function(){for(var r=arguments.length,t=Array(r),e=0;e<r;e++)t[e]=arguments[e];return logByType("error",t)},log$1.warn=function(){for(var r=arguments.length,t=Array(r),e=0;e<r;e++)t[e]=arguments[e];return logByType("warn",t)},log$1.debug=function(){for(var r=arguments.length,t=Array(r),e=0;e<r;e++)t[e]=arguments[e];return logByType("debug",t)};var log$2=log$1,tsml=function(r){for(var t="",e=0;e<arguments.length;e++)t+=clean(r[e])+(arguments[e+1]||"");return t},_templateObject=taggedTemplateLiteralLoose([`Setting attributes in the second argument of createEl()
|
|
11
|
+
</svg>`][e]}function trimmedEndIndex(r){for(var t=r.length;t--&&reWhitespace.test(r.charAt(t)););return t}function baseTrim(r){return r&&r.slice(0,_trimmedEndIndex(r)+1).replace(reTrimStart,"")}function toNumber(r){if(typeof r=="number")return r;if(isSymbol_1(r))return NAN;if(isObject_1(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=isObject_1(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=_baseTrim(r);var e=reIsBinary.test(r);return e||reIsOctal.test(r)?freeParseInt(r.slice(2),e?2:8):reIsBadHex.test(r)?NAN:+r}function debounce(r,t,e){function n(d){var m=v,E=y;return v=y=void 0,N=d,b=r.apply(E,m)}function s(d){return N=d,C=setTimeout(u,t),x?n(d):b}function a(d){var m=d-I,E=d-N,k=t-m;return F?nativeMin(k,_-E):k}function l(d){var m=d-I,E=d-N;return I===void 0||m>=t||m<0||F&&E>=_}function u(){var d=now_1();if(l(d))return c(d);C=setTimeout(u,a(d))}function c(d){return C=void 0,P&&v?n(d):(v=y=void 0,b)}function h(){C!==void 0&&clearTimeout(C),N=0,v=I=y=C=void 0}function p(){return C===void 0?b:c(now_1())}function g(){var d=now_1(),m=l(d);if(v=arguments,y=this,I=d,m){if(C===void 0)return s(I);if(F)return clearTimeout(C),C=setTimeout(u,t),n(I)}return C===void 0&&(C=setTimeout(u,t)),b}var v,y,_,b,C,I,N=0,x=!1,F=!1,P=!0;if(typeof r!="function")throw new TypeError(FUNC_ERROR_TEXT$2);return t=toNumber_1(t)||0,isObject_1(e)&&(x=!!e.leading,F="maxWait"in e,_=F?nativeMax(toNumber_1(e.maxWait)||0,t):_,P="trailing"in e?!!e.trailing:P),g.cancel=h,g.flush=p,g}function throttle$1(r,t,e){var n=!0,s=!0;if(typeof r!="function")throw new TypeError(FUNC_ERROR_TEXT$1);return isObject_1(e)&&(n="leading"in e?!!e.leading:n,s="trailing"in e?!!e.trailing:s),debounce_1(r,t,{leading:n,maxWait:t,trailing:s})}function mountFlvProvider(r){if(videojs.browser.IS_IOS&&videojs.browser.IS_MQQ)return!1;if(!videojs.browser.IS_TBS&&!videojs.browser.IS_MQQB&&(!IS_IOS||!videojs.browser.IS_SAFARI)&&!videojs.browser.IE_VERSION||r)try{var t=videojs.getTech&&videojs.getTech("Html5");t&&t.registerSourceHandler(FlvSourceHandler,0)}catch{}}function mountWebRTCProvider(r){if(!videojs.browser.isWebRTCSupported())return!1;try{var t=videojs.getTech&&videojs.getTech("Html5");t&&t.registerSourceHandler(sourceHandler,0)}catch{}}function FlashRtmpDecorator(r){return r.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},r.streamFromParts=function(t,e){return t+"&"+e},r.streamToParts=function(t){var e={connection:"",stream:""};if(!t)return e;var n=t.search(/&(?!\w+=)/),s=void 0;return n!==-1?s=n+1:(n=s=t.lastIndexOf("/")+1)===0&&(n=s=t.length),e.connection=t.substring(0,n),e.stream=t.substring(s,t.length),e},r.isStreamingType=function(t){return t in r.streamingFormats},r.RTMP_RE=/^rtmp[set]?:\/\//i,r.isStreamingSrc=function(t){return r.RTMP_RE.test(t)},r.rtmpSourceHandler={},r.rtmpSourceHandler.canPlayType=function(t){return r.isStreamingType(t)?"maybe":""},r.rtmpSourceHandler.canHandleSource=function(t,e){var n=r.rtmpSourceHandler.canPlayType(t.type);return n||(r.isStreamingSrc(t.src)?"maybe":"")},r.rtmpSourceHandler.handleSource=function(t,e,n){var s=r.streamToParts(t.src);e.setRtmpConnection(s.connection),e.setRtmpStream(s.stream)},r.registerSourceHandler(r.rtmpSourceHandler),r}function _createSetter(r){var t=r.charAt(0).toUpperCase()+r.slice(1);_api["set"+t]=function(e){return this.el_.vjs_setProperty(r,e)}}function _createGetter(r){_api[r]=function(){return this.el_.vjs_getProperty(r)}}function TCPlayer(r,t,e){var n=void 0,s=new Date().getTime(),a=videojs.dom;if(typeof r=="string")n=document.querySelector("#"+r);else{if(!r||!r.nodeName)throw new TypeError("The ID or element supplied is not valid.");n=r}if(n.nodeName.toLowerCase()!="video"&&n.nodeName.toLowerCase()!="audio")throw new TypeError("The element type must be <video>.");a.hasClass(n,"tcplayer")||a.addClass(n,"tcplayer"),a.hasClass(n,"video-js")||a.addClass(n,"video-js"),videojs.browser.IE_VERSION&&(n.style.width||n.offsetWidth&&n.offsetWidth!==300)&&(window_1.VIDEOJS_NO_DYNAMIC_STYLE=!0);var l={controls:!0,language:"zh-CN",playbackRates:[.5,1,1.25,1.5,2],controlBar:{volumePanel:{inline:n.nodeName.toLowerCase()!="video"},fullscreenToggle:n.nodeName.toLowerCase()=="video",QualitySwitcherMenuButton:!0},plugins:{Skin:"",QualitySwitcher:{},MultiResolution:{},Errors:{},Reporter:{},ContextMenu:{},LevelSwitch:{},VttThumbnail:{},PlayerMetrics:{}},webrtcConfig:{enableAbr:!0,abrLabels:{}}};t=videojs.mergeOptions(l,t),t.webrtcConfig.enableAbr&&(isWebrtcUrl(t.sources)&&t.sources&&typeof t.sources=="string"&&arrangeWebrtcSource(t.sources,t),t.sources&&Array.isArray(t.sources)&&t.sources[0]&&t.sources[0].src&&isWebrtcUrl(t.sources[0].src)&&arrangeWebrtcSource(t.sources[0].src,t)),log("player initializing",t),videojs.getComponent("player").prototype.options_.children.splice(1,0,"logoImage");var u=videojs(r,t,e);return u.PlayerMetrics(t).setTimingData({initStart:s}),log("player initialized",t),u}var version="4.9.1",commonjsGlobal$1=typeof window<"u"?window:typeof commonjsGlobal<"u"?commonjsGlobal:typeof self<"u"?self:{},win;win=typeof window<"u"?window:commonjsGlobal$1!==void 0?commonjsGlobal$1:typeof self<"u"?self:{};var window_1=win,empty={},empty$1=(Object.freeze||Object)({default:empty}),minDoc=empty$1&&empty||empty$1,topLevel=commonjsGlobal$1!==void 0?commonjsGlobal$1:typeof window<"u"?window:{},doccy;typeof document<"u"?doccy=document:(doccy=topLevel["__GLOBAL_DOCUMENT_CACHE@4"])||(doccy=topLevel["__GLOBAL_DOCUMENT_CACHE@4"]=minDoc);var document_1=doccy,USER_AGENT=window_1.navigator&&window_1.navigator.userAgent||"",VENDOR=window_1.navigator&&window_1.navigator.vendor||"",webkitVersionMap=/AppleWebKit\/([\d.]+)/i.exec(USER_AGENT),appleWebkitVersion=webkitVersionMap?parseFloat(webkitVersionMap.pop()):null,IS_IPAD=/iPad/i.test(USER_AGENT),IS_IPHONE=/iPhone/i.test(USER_AGENT)&&!IS_IPAD,IS_IPOD=/iPod/i.test(USER_AGENT),IS_IOS=IS_IPHONE||IS_IPAD||IS_IPOD,IOS_VERSION=function(){var r=USER_AGENT.match(/OS (\d+)_/i);return r&&r[1]?r[1]:null}(),IOS_VERSION_ARRAY=function(){var r=USER_AGENT.match(/OS (\d+)_(\d+)_?(\d+)?/i);return r&&[parseInt(r[1],10),parseInt(r[2],10),parseInt(r[3]||"0",10)]||[]}(),IS_ANDROID=/Android/i.test(USER_AGENT),ANDROID_VERSION=function(){var r=USER_AGENT.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!r)return null;var t=r[1]&&parseFloat(r[1]),e=r[2]&&parseFloat(r[2]);return t&&e?parseFloat(r[1]+"."+r[2]):t||null}(),IS_TBS=/TBS\/\d+/i.test(USER_AGENT),TBS_VERSION=function(){var r=USER_AGENT.match(/TBS\/(\d+)/i);if(r&&r[1])return r[1]}(),IS_MQQB=!IS_TBS&&/MQQBrowser\/\d+/i.test(USER_AGENT),IS_QQB=!IS_TBS&&/ QQBrowser\/\d+/i.test(USER_AGENT),IS_PC_WECHAT=/windowswechat/i.test(USER_AGENT),IS_WECHAT=/(micromessenger|webbrowser)/i.test(USER_AGENT),IS_MQQ=/ QQ\/\d+/i.test(USER_AGENT)||/MQQBrowser\/\d+/i.test(USER_AGENT),IS_OLD_ANDROID=IS_ANDROID&&/webkit/i.test(USER_AGENT)&&ANDROID_VERSION<2.3,IS_NATIVE_ANDROID=IS_ANDROID&&ANDROID_VERSION<5&&appleWebkitVersion<537,IS_FIREFOX=/Firefox/i.test(USER_AGENT),IS_EDGE=/Edge/i.test(USER_AGENT),IS_EDG=/Edg/i.test(USER_AGENT),IS_EDGA=/EdgA/i.test(USER_AGENT),EDG_VERSION=IS_EDG&&function(){var r=USER_AGENT.match(/Edg\/(\d+)/);return r&&r[1]?parseFloat(r[1]):null}(),EDGA_VERSION=IS_EDGA&&function(){var r=USER_AGENT.match(/EdgA\/(\d+)/);return r&&r[1]?parseFloat(r[1]):null}(),IS_CHROME=function(){return!(IS_EDGE||!/Chrome/i.test(USER_AGENT))||!(!/Safari/i.test(USER_AGENT)||!/CriOS/i.test(USER_AGENT))}()&&!IS_WECHAT&&!IS_MQQB&&!IS_QQB,CHROME_VERSION=function(){var r=USER_AGENT.match(/Chrome\/(\d+)/),t=USER_AGENT.match(/CriOS\/(\d+)/);return r&&r[1]?parseFloat(r[1]):t&&t[1]?parseFloat(t[1]):null}(),IS_IE8=/MSIE\s8\.0/.test(USER_AGENT),IE_VERSION=function(){var r=/MSIE\s(\d+)\.\d/.exec(USER_AGENT),t=r&&parseFloat(r[1]);return!t&&/Trident\/7.0/i.test(USER_AGENT)&&/rv:11.0/.test(USER_AGENT)&&(t=11),t}(),IS_SAFARI=/Safari/i.test(USER_AGENT)&&!IS_CHROME&&!IS_ANDROID&&!IS_EDGE&&!IS_MQQB&&!IS_QQB&&!IS_PC_WECHAT,IS_ANY_SAFARI=IS_SAFARI||IS_IOS,IS_SIMULATOR=IS_SAFARI&&VENDOR==="Google Inc.",IS_UC=/UCBrowser\/(\d+)\./i.test(USER_AGENT),IS_QUARK=/Quark\/(\d+)\./i.test(USER_AGENT),TOUCH_ENABLED=isReal()&&("ontouchstart"in window_1||window_1.DocumentTouch&&window_1.document instanceof window_1.DocumentTouch),BACKGROUND_SIZE_SUPPORTED=isReal()&&"backgroundSize"in window_1.document.createElement("video").style,IS_WIN=/Windows/i.test(USER_AGENT),IS_MAC=/MAC OS X/i.test(USER_AGENT),WIN_VER=function(){return RegExp.$1}(),MAC_VER=function(){return RegExp.$1}(),QQ_VER=function(){return RegExp.$1}(),EDGE_VER=function(){return RegExp.$1}(),SAFARI_VER=function(){return RegExp.$1}(),FIREFOX_VER=function(){return RegExp.$1}(),CHROME_VER=function(){return RegExp.$1}(),IS_HUAWEI=/HUAWEI|honor|HMA/i.test(USER_AGENT),IS_XIAOMI=/HM|RedMi|Mi/i.test(USER_AGENT)&&!IS_HUAWEI,IS_OPPO=/OPPO/i.test(USER_AGENT),IS_VIVO=/VIVO/i.test(USER_AGENT),IS_SX=/GT-|SM-|SCH-/i.test(USER_AGENT),IS_ONE=/ONE/i.test(USER_AGENT),IS_CP=/Coolpad/i.test(USER_AGENT),IS_ZX=/ZTE/i.test(USER_AGENT),isWebRTCAPISupported=function(){return["RTCPeerConnection","webkitRTCPeerConnection","RTCIceGatherer"].filter(function(r){return r in window_1}).length>0},isWebRTCSupported=function(){return!IS_UC&&!IS_EDGE&&!(IS_EDG&&EDG_VERSION<80&&IS_EDGA&&EDGA_VERSION<80)&&!(IS_FIREFOX&&FIREFOX_VER<56)&&!(!IS_TBS&&IS_SAFARI&&IS_IOS&&(IOS_VERSION_ARRAY.length===0||IOS_VERSION_ARRAY[0]<11||IOS_VERSION_ARRAY[0]===11&&IOS_VERSION_ARRAY[1]<1||IOS_VERSION_ARRAY[0]===11&&IOS_VERSION_ARRAY[1]===1&&IOS_VERSION_ARRAY[2]<2))&&!IS_QUARK&&isWebRTCAPISupported()},IS_ENABLED_MSE=function(){var r=window_1.MediaSource=window_1.MediaSource||window_1.WebKitMediaSource,t=window_1.SourceBuffer=window_1.SourceBuffer||window_1.WebKitSourceBuffer,e=r&&typeof r.isTypeSupported=="function"&&r.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),n=!t||t.prototype&&typeof t.prototype.appendBuffer=="function"&&typeof t.prototype.remove=="function";return IS_IOS?void 0:e&&n}(),browser=(Object.freeze||Object)({USER_AGENT,IS_IPAD,IS_IPHONE,IS_IPOD,IS_IOS,IOS_VERSION,IOS_VERSION_ARRAY,IS_ANDROID,ANDROID_VERSION,IS_TBS,TBS_VERSION,IS_MQQB,IS_QQB,IS_PC_WECHAT,IS_WECHAT,IS_MQQ,IS_OLD_ANDROID,IS_NATIVE_ANDROID,IS_FIREFOX,IS_EDGE,IS_EDG,IS_EDGA,EDG_VERSION,EDGA_VERSION,IS_CHROME,CHROME_VERSION,IS_IE8,IE_VERSION,IS_SAFARI,IS_ANY_SAFARI,IS_SIMULATOR,IS_UC,IS_QUARK,TOUCH_ENABLED,BACKGROUND_SIZE_SUPPORTED,IS_WIN,IS_MAC,WIN_VER,MAC_VER,QQ_VER,EDGE_VER,SAFARI_VER,FIREFOX_VER,CHROME_VER,IS_HUAWEI,IS_XIAOMI,IS_OPPO,IS_VIVO,IS_SX,IS_ONE,IS_CP,IS_ZX,isWebRTCAPISupported,isWebRTCSupported,IS_ENABLED_MSE}),_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},classCallCheck=function(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")},createClass=function(){function r(t,e){for(var n=0;n<e.length;n++){var s=e[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),inherits=function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)},possibleConstructorReturn=function(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||typeof t!="object"&&typeof t!="function"?r:t},taggedTemplateLiteralLoose=function(r,t){return r.raw=t,r},toString=Object.prototype.toString,keys=function(r){return isObject$1(r)?Object.keys(r):[]},log$1=void 0,level="info",history=[],logByType=function(r,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!!IE_VERSION&&IE_VERSION<11,n=log$1.levels[level],s=new RegExp("^("+n+")$");if(r!=="log"&&t.unshift(r.toUpperCase()+":"),history&&history.push([].concat(t)),(log$1.enableLog||r!="log")&&(t.unshift("TCPlayer:"),window_1.console)){var a=window_1.console[r];a||r!=="debug"||(a=window_1.console.info||window_1.console.log),a&&n&&s.test(r)&&(e&&(t=t.map(function(l){if(isObject$1(l)||Array.isArray(l))try{return JSON.stringify(l)}catch{return String(l)}return String(l)}).join(" ")),a.apply?a[Array.isArray(t)?"apply":"call"](window_1.console,t):a(t))}};log$1=function(){for(var r=arguments.length,t=Array(r),e=0;e<r;e++)t[e]=arguments[e];logByType("log",t)},log$1.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:level},log$1.level=function(r){if(typeof r=="string"){if(!log$1.levels.hasOwnProperty(r))throw new Error('"'+r+'" in not a valid log level');level=r}return level},log$1.history=function(){return history?[].concat(history):[]},log$1.history.clear=function(){history&&(history.length=0)},log$1.history.disable=function(){history!==null&&(history.length=0,history=null)},log$1.history.enable=function(){history===null&&(history=[])},log$1.enableLog=!1,log$1.error=function(){for(var r=arguments.length,t=Array(r),e=0;e<r;e++)t[e]=arguments[e];return logByType("error",t)},log$1.warn=function(){for(var r=arguments.length,t=Array(r),e=0;e<r;e++)t[e]=arguments[e];return logByType("warn",t)},log$1.debug=function(){for(var r=arguments.length,t=Array(r),e=0;e<r;e++)t[e]=arguments[e];return logByType("debug",t)};var log$2=log$1,tsml=function(r){for(var t="",e=0;e<arguments.length;e++)t+=clean(r[e])+(arguments[e+1]||"");return t},_templateObject=taggedTemplateLiteralLoose([`Setting attributes in the second argument of createEl()
|
|
12
12
|
has been deprecated. Use the third argument instead.
|
|
13
13
|
createEl(type, properties, attributes). Attempting to set `," to ","."],[`Setting attributes in the second argument of createEl()
|
|
14
14
|
has been deprecated. Use the third argument instead.
|
|
15
|
-
createEl(type, properties, attributes). Attempting to set `," to ","."]),$=createQuerier("querySelector"),$$=createQuerier("querySelectorAll"),Dom=(Object.freeze||Object)({isReal,isEl,isInFrame,createEl,textContent,prependTo,hasClass,addClass,removeClass,toggleClass,setAttributes,getAttributes,getAttribute,setAttribute,removeAttribute,blockTextSelection,unblockTextSelection,getBoundingClientRect,findPosition,getPointerPosition,isTextNode,emptyEl,normalizeContent,appendContent,insertContent,isSingleLeftClick,$,$$}),_guid=1,elData={},elIdAttr="vdata"+new Date().getTime(),_supportsPassive=!1;(function(){try{var r=Object.defineProperty({},"passive",{get:function(){_supportsPassive=!0}});window_1.addEventListener("test",null,r),window_1.removeEventListener("test",null,r)}catch{}})();var passiveEvents=["touchstart","touchmove"],Events=(Object.freeze||Object)({fixEvent,on,off,trigger,one}),_windowLoaded=!1,videojs$2=void 0,autoSetup=function(){if(isReal()){var r=document_1.getElementsByTagName("video"),t=document_1.getElementsByTagName("audio"),e=document_1.getElementsByTagName("video-js"),n=[];if(r&&r.length>0)for(var s=0,a=r.length;s<a;s++)n.push(r[s]);if(t&&t.length>0)for(var l=0,u=t.length;l<u;l++)n.push(t[l]);if(e&&e.length>0)for(var c=0,h=e.length;c<h;c++)n.push(e[c]);if(n&&n.length>0)for(var p=0,m=n.length;p<m;p++){var b=n[p];if(!b||!b.getAttribute){autoSetupTimeout(1);break}if(b.player===void 0){var f=b.getAttribute("data-setup");f!==null&&videojs$2(b)}}else _windowLoaded||autoSetupTimeout(1)}};isReal()&&document_1.readyState==="complete"?_windowLoaded=!0:one(window_1,"load",function(){_windowLoaded=!0});var createStyleElement=function(r){var t=document_1.createElement("style");return t.className=r,t},setTextContent=function(r,t){r.styleSheet?r.styleSheet.cssText=t:r.textContent=t},bind=function(r,t,e){t.guid||(t.guid=newGUID());var n=function(){return t.apply(r,arguments)};return n.guid=e?e+"_"+t.guid:t.guid,n},throttle=function(r,t){var e=Date.now();return function(){var n=Date.now();n-e>=t&&(r.apply(void 0,arguments),e=n)}},EventTarget=function(){};EventTarget.prototype.allowedEvents_={},EventTarget.prototype.on=function(r,t){var e=this.addEventListener;this.addEventListener=function(){},on(this,r,t),this.addEventListener=e},EventTarget.prototype.addEventListener=EventTarget.prototype.on,EventTarget.prototype.off=function(r,t){off(this,r,t)},EventTarget.prototype.removeEventListener=EventTarget.prototype.off,EventTarget.prototype.one=function(r,t){var e=this.addEventListener;this.addEventListener=function(){},one(this,r,t),this.addEventListener=e},EventTarget.prototype.trigger=function(r){var t=r.type||r;typeof r=="string"&&(r={type:t}),r=fixEvent(r),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](r),trigger(this,r)},EventTarget.prototype.dispatchEvent=EventTarget.prototype.trigger;var isEvented=function(r){return r instanceof EventTarget||!!r.eventBusEl_&&["on","one","off","trigger"].every(function(t){return typeof r[t]=="function"})},isValidEventType=function(r){return typeof r=="string"&&/\S/.test(r)||Array.isArray(r)&&!!r.length},validateTarget=function(r){if(!r.nodeName&&!isEvented(r))throw new Error("Invalid target; must be a DOM node or evented object.")},validateEventType=function(r){if(!isValidEventType(r))throw new Error("Invalid event type; must be a non-empty string or array.")},validateListener=function(r){if(typeof r!="function")throw new Error("Invalid listener; must be a function.")},normalizeListenArgs=function(r,t){var e=t.length<3||t[0]===r||t[0]===r.eventBusEl_,n=void 0,s=void 0,a=void 0;return e?(n=r.eventBusEl_,t.length>=3&&t.shift(),s=t[0],a=t[1]):(n=t[0],s=t[1],a=t[2]),validateTarget(n),validateEventType(s),validateListener(a),a=bind(r,a),{isTargetingSelf:e,target:n,type:s,listener:a}},listen=function(r,t,e,n){validateTarget(r),r.nodeName?Events[t](r,e,n):r[t](e,n)},EventedMixin={on:function(){for(var r=this,t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var s=normalizeListenArgs(this,e),a=s.isTargetingSelf,l=s.target,u=s.type,c=s.listener;if(listen(l,"on",u,c),!a){var h=function(){return r.off(l,u,c)};h.guid=c.guid;var p=function(){return r.off("dispose",h)};p.guid=c.guid,listen(this,"on","dispose",h),listen(l,"on","dispose",p)}},one:function(){for(var r=this,t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var s=normalizeListenArgs(this,e),a=s.isTargetingSelf,l=s.target,u=s.type,c=s.listener;if(a)listen(l,"one",u,c);else{var h=function p(){for(var m=arguments.length,b=Array(m),f=0;f<m;f++)b[f]=arguments[f];r.off(l,u,p),c.apply(null,b)};h.guid=c.guid,listen(l,"one",u,h)}},off:function(r,t,e){if(!r||isValidEventType(r))isValidEventType(t)?off(this.eventBusEl_,t,e):off(this.eventBusEl_,r,t);else{var n=r,s=t;validateTarget(n),validateEventType(s),validateListener(e),e=bind(this,e),this.off("dispose",e),n.nodeName?(off(n,s,e),off(n,"dispose",e)):isEvented(n)&&(n.off(s,e),n.off("dispose",e))}},trigger:function(r,t){return trigger(this.eventBusEl_,r,t)}},StatefulMixin={state:{},setState:function(r){var t=this;typeof r=="function"&&(r=r());var e=void 0;return each(r,function(n,s){t.state[s]!==n&&(e=e||{},e[s]={from:t.state[s],to:n}),t.state[s]=n}),e&&isEvented(this)&&this.trigger({changes:e,type:"statechanged"}),e}},Component=function(){function r(t,e,n){if(classCallCheck(this,r),!t&&this.play?this.player_=t=this:this.player_=t,this.options_=extend(!0,{},this.options_),e=this.options_=mergeOptions(this.options_,e),this.id_=e.id||e.el&&e.el.id,!this.id_){var s=t&&t.id&&t.id()||"no_player";this.id_=s+"_component_"+newGUID()}this.name_=e.name||null,e.el?this.el_=e.el:e.createEl!==!1&&(this.el_=this.createEl()),e.evented!==!1&&evented(this,{eventBusKey:this.el_?"el_":null}),stateful(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},e.initChildren!==!1&&this.initChildren(),this.ready(n),e.reportTouchActivity!==!1&&this.enableTouchActivity()}return r.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),removeData(this.el_),this.el_=null),this.player_=null},r.prototype.player=function(){return this.player_},r.prototype.options=function(t){return log$2.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.options_=mergeOptions(this.options_,t),this.options_):this.options_},r.prototype.el=function(){return this.el_},r.prototype.createEl=function(t,e,n){return createEl(t,e,n)},r.prototype.localize=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,s=this.player_.language&&this.player_.language(),a=this.player_.languages&&this.player_.languages(),l=a&&a[s],u=s&&s.split("-")[0],c=a&&a[u],h=n;return l&&l[t]?h=l[t]:c&&c[t]&&(h=c[t]),e&&(h=h.replace(/\{(\d+)\}/g,function(p,m){var b=e[m-1],f=b;return b===void 0&&(f=p),f})),h},r.prototype.contentEl=function(){return this.contentEl_||this.el_},r.prototype.id=function(){return this.id_},r.prototype.name=function(){return this.name_},r.prototype.children=function(){return this.children_},r.prototype.getChildById=function(t){return this.childIndex_[t]},r.prototype.getChild=function(t){if(t)return t=toTitleCase(t),this.childNameIndex_[t]},r.prototype.addChild=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.children_.length,s=void 0,a=void 0;if(typeof t=="string"){a=toTitleCase(t);var l=e.componentClass||a;e.name=a;var u=r.getComponent(l);if(!u)throw new Error("Component "+l+" does not exist");if(typeof u!="function")return null;s=new u(this.player_||this,e)}else s=t;if(this.children_.splice(n,0,s),typeof s.id=="function"&&(this.childIndex_[s.id()]=s),a=a||s.name&&toTitleCase(s.name()),a&&(this.childNameIndex_[a]=s),typeof s.el=="function"&&s.el()){var c=this.contentEl().children,h=c[n]||null;this.contentEl().insertBefore(s.el(),h)}return s},r.prototype.removeChild=function(t){if(typeof t=="string"&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===t){e=!0,this.children_.splice(n,1);break}if(e){this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var s=t.el();s&&s.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},r.prototype.initChildren=function(){var t=this,e=this.options_.children;if(e){var n=this.options_,s=function(u){var c=u.name,h=u.opts;if(n[c]!==void 0&&(h=n[c]),h!==!1){h===!0&&(h={}),h.playerOptions=t.options_.playerOptions;var p=t.addChild(c,h);p&&(t[c]=p)}},a=void 0,l=r.getComponent("Tech");a=Array.isArray(e)?e:Object.keys(e),a.concat(Object.keys(this.options_).filter(function(u){return!a.some(function(c){return typeof c=="string"?u===c:u===c.name})})).map(function(u){var c=void 0,h=void 0;return typeof u=="string"?(c=u,h=e[c]||t.options_[c]||{}):(c=u.name,h=u),{name:c,opts:h}}).filter(function(u){var c=r.getComponent(u.opts.componentClass||toTitleCase(u.name));return c&&!l.isTech(c)}).forEach(s)}},r.prototype.buildCSSClass=function(){return""},r.prototype.ready=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(t)return this.isReady_?void(e?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},r.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},r.prototype.$=function(t,e){return $(t,e||this.contentEl())},r.prototype.$$=function(t,e){return $$(t,e||this.contentEl())},r.prototype.hasClass=function(t){return hasClass(this.el_,t)},r.prototype.addClass=function(t){addClass(this.el_,t)},r.prototype.removeClass=function(t){removeClass(this.el_,t)},r.prototype.toggleClass=function(t,e){toggleClass(this.el_,t,e)},r.prototype.show=function(){this.removeClass("vjs-hidden")},r.prototype.hide=function(){this.addClass("vjs-hidden")},r.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},r.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},r.prototype.getAttribute=function(t){return getAttribute(this.el_,t)},r.prototype.setAttribute=function(t,e){setAttribute(this.el_,t,e)},r.prototype.removeAttribute=function(t){removeAttribute(this.el_,t)},r.prototype.width=function(t,e){return this.dimension("width",t,e)},r.prototype.height=function(t,e){return this.dimension("height",t,e)},r.prototype.dimensions=function(t,e){this.width(t,!0),this.height(e)},r.prototype.dimension=function(t,e,n){if(e!==void 0)return e!==null&&e===e||(e=0),(""+e).indexOf("%")!==-1||(""+e).indexOf("px")!==-1?this.el_.style[t]=e:this.el_.style[t]=e==="auto"?"":e+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var s=this.el_.style[t],a=s.indexOf("px");return parseInt(a!==-1?s.slice(0,a):this.el_["offset"+toTitleCase(t)],10)},r.prototype.currentDimension=function(t){var e=0;if(t!=="width"&&t!=="height")throw new Error("currentDimension only accepts width or height value");if(typeof window_1.getComputedStyle=="function"){var n=window_1.getComputedStyle(this.el_);e=n.getPropertyValue(t)||n[t]}if((e=parseFloat(e))===0){var s="offset"+toTitleCase(t);e=this.el_[s]}return e},r.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},r.prototype.currentWidth=function(){return this.currentDimension("width")},r.prototype.currentHeight=function(){return this.currentDimension("height")},r.prototype.focus=function(){this.el_.focus()},r.prototype.blur=function(){this.el_.blur()},r.prototype.emitTapEvents=function(){var t=0,e=null,n=void 0;this.on("touchstart",function(a){a.touches.length===1&&(e={pageX:a.touches[0].pageX,pageY:a.touches[0].pageY},t=new Date().getTime(),n=!0)}),this.on("touchmove",function(a){if(a.touches.length>1)n=!1;else if(e){var l=a.touches[0].pageX-e.pageX,u=a.touches[0].pageY-e.pageY,c=Math.sqrt(l*l+u*u);c>10&&(n=!1)}});var s=function(){n=!1};this.on("touchleave",s),this.on("touchcancel",s),this.on("touchend",function(a){e=null,n===!0&&new Date().getTime()-t<200&&(a.preventDefault(),this.trigger("tap"))})},r.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t=bind(this.player(),this.player().reportUserActivity),e=void 0;this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var n=function(s){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},r.prototype.setTimeout=function(t,e){var n=this;t=bind(this,t);var s=window_1.setTimeout(t,e),a=function(){return n.clearTimeout(s)};return a.guid="vjs-timeout-"+s,this.on("dispose",a),s},r.prototype.clearTimeout=function(t){window_1.clearTimeout(t);var e=function(){};return e.guid="vjs-timeout-"+t,this.off("dispose",e),t},r.prototype.setInterval=function(t,e){var n=this;t=bind(this,t);var s=window_1.setInterval(t,e),a=function(){return n.clearInterval(s)};return a.guid="vjs-interval-"+s,this.on("dispose",a),s},r.prototype.clearInterval=function(t){window_1.clearInterval(t);var e=function(){};return e.guid="vjs-interval-"+t,this.off("dispose",e),t},r.prototype.requestAnimationFrame=function(t){var e=this;if(this.supportsRaf_){t=bind(this,t);var n=window_1.requestAnimationFrame(t),s=function(){return e.cancelAnimationFrame(n)};return s.guid="vjs-raf-"+n,this.on("dispose",s),n}return this.setTimeout(t,1e3/60)},r.prototype.cancelAnimationFrame=function(t){if(this.supportsRaf_){window_1.cancelAnimationFrame(t);var e=function(){};return e.guid="vjs-raf-"+t,this.off("dispose",e),t}return this.clearTimeout(t)},r.registerComponent=function(t,e){if(typeof t!="string"||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var n=r.getComponent("Tech"),s=n&&n.isTech(e),a=r===e||r.prototype.isPrototypeOf(e.prototype);if(s||!a){var l=void 0;throw l=s?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+l+".")}t=toTitleCase(t),r.components_||(r.components_={});var u=r.getComponent("Player");if(t==="Player"&&u&&u.players){var c=u.players,h=Object.keys(c);if(c&&h.length>0&&h.map(function(p){return c[p]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return r.components_[t]=e,e},r.getComponent=function(t){if(t)return t=toTitleCase(t),r.components_&&r.components_[t]?r.components_[t]:void 0},r}();Component.prototype.supportsRaf_=typeof window_1.requestAnimationFrame=="function"&&typeof window_1.cancelAnimationFrame=="function",Component.registerComponent("Component",Component);for(var EXT_MIME={m3u8:"application/x-mpegURL",flv:"video/flv",mp4:"video/mp4",webm:"video/webm",rtmp:"rtmp/flv",mpd:"application/dash+xml",mp3:"audio/mpeg"},SERVER_PATH="//playvideo.qcloud.com",SERVER_PATH_V3="//playvideo.qcloud.com",SERVER_PATH_V4="//playvideo.qcloud.com",SERVER_PATH_BACKUP="//bkplayvideo.qcloud.com",LICENSE_PATH="https://drm.vod2.myqcloud.com/getlicense/v1",HLS_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/hls.min.1.1.6.js",FLV_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/flv.min.1.6.3.js",WEBRTC_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/TXLivePlayer-1.3.0.min.js",DASH_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/dash.all.min.v3.1.3.js",XP2P_HLS_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/hlsp2p.min.1.6.28.js",XP2P_FLV_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/qvbp2p_common.min.1.8.29.js",parseUrl=function(r){var t=["protocol","hostname","port","pathname","search","hash","host"],e=document_1.createElement("a");e.href=r;var n=e.host===""&&e.protocol!=="file:",s=void 0;n&&(s=document_1.createElement("div"),s.innerHTML='<a href="'+r+'"></a>',e=s.firstChild,s.setAttribute("style","display:none; position:absolute;"),document_1.body.appendChild(s));for(var a={},l=0;l<t.length;l++)a[t[l]]=e[t[l]];return a.protocol==="http:"&&(a.host=a.host.replace(/:80$/,"")),a.protocol==="https:"&&(a.host=a.host.replace(/:443$/,"")),a.protocol||(a.protocol=window_1.location.protocol),n&&document_1.body.removeChild(s),a},getAbsoluteURL=function(r){if(!r.match(/^https?:\/\//)){var t=document_1.createElement("div");t.innerHTML='<a href="'+r+'">x</a>',r=t.firstChild.href}return r},getFileExtension=function(r){if(typeof r=="string"){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,e=t.exec(r);if(e)return e.pop().toLowerCase()}return""},isCrossOrigin=function(r){var t=window_1.location,e=parseUrl(r);return(e.protocol===":"?t.protocol:e.protocol)+e.host!==t.protocol+t.host},Url=(Object.freeze||Object)({parseUrl,getAbsoluteURL,getFileExtension,isCrossOrigin}),FullscreenApi={},apiMap=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],specApi=apiMap[0],browserApi=void 0,prefixedAPI=!1,i$1=0;i$1<apiMap.length;i$1++)if(apiMap[i$1][1]in document_1){browserApi=apiMap[i$1];break}if(browserApi){for(var _i=0;_i<browserApi.length;_i++)FullscreenApi[specApi[_i]]=browserApi[_i];prefixedAPI=browserApi[0]===specApi[0]}MediaError.prototype.code=0,MediaError.prototype.message="",MediaError.prototype.status=null,MediaError.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],MediaError.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var errNum=0;errNum<MediaError.errorTypes.length;errNum++)MediaError[MediaError.errorTypes[errNum]]=errNum,MediaError.prototype[MediaError.errorTypes[errNum]]=errNum;var tuple=SafeParseTuple,trackToJson_=function(r){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,e,n){return r[e]&&(t[e]=r[e]),t},{cues:r.cues&&Array.prototype.map.call(r.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})},textTracksToJson=function(r){var t=r.$$("track"),e=Array.prototype.map.call(t,function(n){return n.track});return Array.prototype.map.call(t,function(n){var s=trackToJson_(n.track);return n.src&&(s.src=n.src),s}).concat(Array.prototype.filter.call(r.textTracks(),function(n){return e.indexOf(n)===-1}).map(trackToJson_))},jsonToTextTracks=function(r,t){return r.forEach(function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(s){return n.addCue(s)})}),t.textTracks()},textTrackConverter={textTracksToJson,jsonToTextTracks,trackToJson_},MODAL_CLASS_NAME="vjs-modal-dialog",ESC=27,ModalDialog=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.opened_=s.hasBeenOpened_=s.hasBeenFilled_=!1,s.closeable(!s.options_.uncloseable),s.content(s.options_.content),s.contentEl_=createEl("div",{className:MODAL_CLASS_NAME+"-content"},{role:"document"}),s.descEl_=createEl("p",{className:MODAL_CLASS_NAME+"-description vjs-control-text",id:s.el().getAttribute("aria-describedby")}),textContent(s.descEl_,s.description()),s.el_.appendChild(s.descEl_),s.el_.appendChild(s.contentEl_),s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.prototype.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,r.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return MODAL_CLASS_NAME+" vjs-hidden "+r.prototype.buildCSSClass.call(this)},t.prototype.handleKeyPress=function(e){e.which===ESC&&this.closeable()&&this.close()},t.prototype.label=function(){return this.localize(this.options_.label||"Modal Window")},t.prototype.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},t.prototype.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",bind(this,this.handleKeyPress)),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},t.prototype.opened=function(e){return typeof e=="boolean"&&this[e?"open":"close"](),this.opened_},t.prototype.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",bind(this,this.handleKeyPress)),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},t.prototype.closeable=function(e){if(typeof e=="boolean"){var n=this.closeable_=!!e,s=this.getChild("closeButton");if(n&&!s){var a=this.contentEl_;this.contentEl_=this.el_,s=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=a,this.on(s,"close",this.close)}!n&&s&&(this.off(s,"close",this.close),this.removeChild(s),s.dispose())}return this.closeable_},t.prototype.fill=function(){this.fillWith(this.content())},t.prototype.fillWith=function(e){var n=this.contentEl(),s=n.parentNode,a=n.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,s.removeChild(n),this.empty(),insertContent(n,e),this.trigger("modalfill"),a?s.insertBefore(n,a):s.appendChild(n);var l=this.getChild("closeButton");l&&s.appendChild(l.el_)},t.prototype.empty=function(){this.trigger("beforemodalempty"),emptyEl(this.contentEl()),this.trigger("modalempty")},t.prototype.content=function(e){return e!==void 0&&(this.content_=e),this.content_},t.prototype.conditionalFocus_=function(){var e=document_1.activeElement,n=this.player_.el_;this.previouslyActiveEl_=null,(n.contains(e)||n===e)&&(this.previouslyActiveEl_=e,this.focus(),this.on(document_1,"keydown",this.handleKeyDown))},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null),this.off(document_1,"keydown",this.handleKeyDown)},t.prototype.handleKeyDown=function(e){if(e.which===9){for(var n=this.focusableEls_(),s=this.el_.querySelector(":focus"),a=void 0,l=0;l<n.length;l++)if(s===n[l]){a=l;break}document_1.activeElement===this.el_&&(a=0),e.shiftKey&&a===0?(n[n.length-1].focus(),e.preventDefault()):e.shiftKey||a!==n.length-1||(n[0].focus(),e.preventDefault())}},t.prototype.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,function(n){return(n instanceof window_1.HTMLAnchorElement||n instanceof window_1.HTMLAreaElement)&&n.hasAttribute("href")||(n instanceof window_1.HTMLInputElement||n instanceof window_1.HTMLSelectElement||n instanceof window_1.HTMLTextAreaElement||n instanceof window_1.HTMLButtonElement)&&!n.hasAttribute("disabled")||n instanceof window_1.HTMLIFrameElement||n instanceof window_1.HTMLObjectElement||n instanceof window_1.HTMLEmbedElement||n.hasAttribute("tabindex")&&n.getAttribute("tabindex")!==-1||n.hasAttribute("contenteditable")})},t}(Component);ModalDialog.prototype.options_={pauseOnOpen:!0,temporary:!0},Component.registerComponent("ModalDialog",ModalDialog);var TrackList=function(r){function t(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;classCallCheck(this,t);var a=possibleConstructorReturn(this,r.call(this));if(!s&&(s=a,IS_IE8)){s=document_1.createElement("custom");for(var l in t.prototype)l!=="constructor"&&(s[l]=t.prototype[l])}s.tracks_=[],Object.defineProperty(s,"length",{get:function(){return this.tracks_.length}});for(var u=0;u<n.length;u++)s.addTrack(n[u]);return e=s,possibleConstructorReturn(a,e)}return inherits(t,r),t.prototype.addTrack=function(e){var n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get:function(){return this.tracks_[n]}}),this.tracks_.indexOf(e)===-1&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack"}))},t.prototype.removeTrack=function(e){for(var n=void 0,s=0,a=this.length;s<a;s++)if(this[s]===e){n=this[s],n.off&&n.off(),this.tracks_.splice(s,1);break}n&&this.trigger({track:n,type:"removetrack"})},t.prototype.getTrackById=function(e){for(var n=null,s=0,a=this.length;s<a;s++){var l=this[s];if(l.id===e){n=l;break}}return n},t}(EventTarget);TrackList.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(var event$1 in TrackList.prototype.allowedEvents_)TrackList.prototype["on"+event$1]=null;var disableOthers=function(r,t){for(var e=0;e<r.length;e++)Object.keys(r[e]).length&&t.id!==r[e].id&&(r[e].enabled=!1)},AudioTrackList=function(r){function t(){var e,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];classCallCheck(this,t);for(var a=void 0,l=s.length-1;l>=0;l--)if(s[l].enabled){disableOthers(s,s[l]);break}if(IS_IE8){a=document_1.createElement("custom");for(var u in TrackList.prototype)u!=="constructor"&&(a[u]=TrackList.prototype[u]);for(var c in t.prototype)c!=="constructor"&&(a[c]=t.prototype[c])}return a=e=possibleConstructorReturn(this,r.call(this,s,a)),a.changing_=!1,n=a,possibleConstructorReturn(e,n)}return inherits(t,r),t.prototype.addTrack=function(e){var n=this;e.enabled&&disableOthers(this,e),r.prototype.addTrack.call(this,e),e.addEventListener&&e.addEventListener("enabledchange",function(){n.changing_||(n.changing_=!0,disableOthers(n,e),n.changing_=!1,n.trigger("change"))})},t}(TrackList),disableOthers$1=function(r,t){for(var e=0;e<r.length;e++)Object.keys(r[e]).length&&t.id!==r[e].id&&(r[e].selected=!1)},VideoTrackList=function(r){function t(){var e,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];classCallCheck(this,t);for(var a=void 0,l=s.length-1;l>=0;l--)if(s[l].selected){disableOthers$1(s,s[l]);break}if(IS_IE8){a=document_1.createElement("custom");for(var u in TrackList.prototype)u!=="constructor"&&(a[u]=TrackList.prototype[u]);for(var c in t.prototype)c!=="constructor"&&(a[c]=t.prototype[c])}return a=e=possibleConstructorReturn(this,r.call(this,s,a)),a.changing_=!1,Object.defineProperty(a,"selectedIndex",{get:function(){for(var h=0;h<this.length;h++)if(this[h].selected)return h;return-1},set:function(){}}),n=a,possibleConstructorReturn(e,n)}return inherits(t,r),t.prototype.addTrack=function(e){var n=this;e.selected&&disableOthers$1(this,e),r.prototype.addTrack.call(this,e),e.addEventListener&&e.addEventListener("selectedchange",function(){n.changing_||(n.changing_=!0,disableOthers$1(n,e),n.changing_=!1,n.trigger("change"))})},t}(TrackList),TextTrackList=function(r){function t(){var e,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];classCallCheck(this,t);var a=void 0;if(IS_IE8){a=document_1.createElement("custom");for(var l in TrackList.prototype)l!=="constructor"&&(a[l]=TrackList.prototype[l]);for(var u in t.prototype)u!=="constructor"&&(a[u]=t.prototype[u])}return a=e=possibleConstructorReturn(this,r.call(this,s,a)),n=a,possibleConstructorReturn(e,n)}return inherits(t,r),t.prototype.addTrack=function(e){if(e.mode==="disabled"&&!e.label)return!1;r.prototype.addTrack.call(this,e),e.addEventListener("modechange",bind(this,function(){this.trigger("change")})),["metadata","chapters"].indexOf(e.kind)===-1&&e.addEventListener("modechange",bind(this,function(){this.trigger("selectedlanguagechange")}))},t}(TrackList),HtmlTrackElementList=function(){function r(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];classCallCheck(this,r);var e=this;if(IS_IE8){e=document_1.createElement("custom");for(var n in r.prototype)n!=="constructor"&&(e[n]=r.prototype[n])}e.trackElements_=[],Object.defineProperty(e,"length",{get:function(){return this.trackElements_.length}});for(var s=0,a=t.length;s<a;s++)e.addTrackElement_(t[s]);if(IS_IE8)return e}return r.prototype.addTrackElement_=function(t){var e=this.trackElements_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.trackElements_[e]}}),this.trackElements_.indexOf(t)===-1&&this.trackElements_.push(t)},r.prototype.getTrackElementByTrack_=function(t){for(var e=void 0,n=0,s=this.trackElements_.length;n<s;n++)if(t===this.trackElements_[n].track){e=this.trackElements_[n];break}return e},r.prototype.removeTrackElement_=function(t){for(var e=0,n=this.trackElements_.length;e<n;e++)if(t===this.trackElements_[e]){this.trackElements_.splice(e,1);break}},r}(),TextTrackCueList=function(){function r(t){classCallCheck(this,r);var e=this;if(IS_IE8){e=document_1.createElement("custom");for(var n in r.prototype)n!=="constructor"&&(e[n]=r.prototype[n])}if(r.prototype.setCues_.call(e,t),Object.defineProperty(e,"length",{get:function(){return this.length_}}),IS_IE8)return e}return r.prototype.setCues_=function(t){var e=this.length||0,n=0,s=t.length;this.cues_=t,this.length_=t.length;var a=function(l){""+l in this||Object.defineProperty(this,""+l,{get:function(){return this.cues_[l]}})};if(e<s)for(n=e;n<s;n++)a.call(this,n)},r.prototype.getCueById=function(t){for(var e=null,n=0,s=this.length;n<s;n++){var a=this[n];if(a.id===t){e=a;break}}return e},r}(),VideoTrackKind={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},AudioTrackKind={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},TextTrackKind={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},TextTrackMode={disabled:"disabled",hidden:"hidden",showing:"showing"},Track=function(r){function t(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this)),a=s;if(IS_IE8){a=document_1.createElement("custom");for(var l in t.prototype)l!=="constructor"&&(a[l]=t.prototype[l])}var u={id:n.id||(n.id===0?0:"vjs_track_"+newGUID()),kind:n.kind||"",label:n.label||"",language:n.language||""};for(var c in u)(function(h){Object.defineProperty(a,h,{get:function(){return u[h]},set:function(){}})})(c);return e=a,possibleConstructorReturn(s,e)}return inherits(t,r),t}(EventTarget),isFunction_1=isFunction$1,toString$1=Object.prototype.toString,trim=function(r){return r.replace(/^\s+|\s+$/g,"")},isArray=function(r){return Object.prototype.toString.call(r)==="[object Array]"},parseHeaders=function(r){if(!r)return{};for(var t={},e=trim(r).split(`
|
|
16
|
-
`),n=0;n<e.length;n++){var s=e[n],a=s.indexOf(":"),l=trim(s.slice(0,a)).toLowerCase(),u=trim(s.slice(a+1));typeof t[l]>"u"?t[l]=u:isArray(t[l])?t[l].push(u):t[l]=[t[l],u]}return t},immutable=extend$1,hasOwnProperty=Object.prototype.hasOwnProperty,xhr=createXHR;createXHR.XMLHttpRequest=window_1.XMLHttpRequest||noop,createXHR.XDomainRequest="withCredentials"in new createXHR.XMLHttpRequest?createXHR.XMLHttpRequest:window_1.XDomainRequest,forEachArray(["get","put","post","patch","head","delete"],function(r){createXHR[r==="delete"?"del":r]=function(t,e,n){return e=initParams(t,e,n),e.method=r.toUpperCase(),_createXHR(e)}});var parseCues=function(r,t){var e=new window_1.WebVTT.Parser(window_1,window_1.vttjs,window_1.WebVTT.StringDecoder()),n=[];e.oncue=function(s){t.addCue(s)},e.onparsingerror=function(s){n.push(s)},e.onflush=function(){t.trigger({type:"loadeddata",target:t})},e.parse(r),n.length>0&&(window_1.console&&window_1.console.groupCollapsed&&window_1.console.groupCollapsed("Text Track parsing errors for "+t.src),n.forEach(function(s){return log$2.error(s)}),window_1.console&&window_1.console.groupEnd&&window_1.console.groupEnd()),e.flush()},loadTrack=function(r,t){var e={uri:r},n=isCrossOrigin(r);n&&(e.cors=n),xhr(e,bind(this,function(s,a,l){if(s)return log$2.error(s,a);if(t.loaded_=!0,typeof window_1.WebVTT!="function"){if(t.tech_){var u=function(){return parseCues(l,t)};t.tech_.on("vttjsloaded",u),t.tech_.on("vttjserror",function(){log$2.error("vttjs failed to load, stopping trying to process "+t.src),t.tech_.off("vttjsloaded",u)})}}else parseCues(l,t)}))},TextTrack=function(r){function t(){var e,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(classCallCheck(this,t),!s.tech)throw new Error("A tech was not provided.");var a=mergeOptions(s,{kind:TextTrackKind[s.kind]||s.kind||"subtitles",language:s.language||s.srclang||""}),l=TextTrackMode[a.mode]||"disabled",u=a.default;a.kind!=="metadata"&&a.kind!=="chapters"||(l="hidden");var c=e=possibleConstructorReturn(this,r.call(this,a));if(c.tech_=a.tech,IS_IE8)for(var h in t.prototype)h!=="constructor"&&(c[h]=t.prototype[h]);c.cues_=[],c.activeCues_=[];var p=new TextTrackCueList(c.cues_),m=new TextTrackCueList(c.activeCues_),b=!1,f=bind(c,function(){this.activeCues,b&&(this.trigger("cuechange"),b=!1)});return l!=="disabled"&&c.tech_.ready(function(){c.tech_.on("timeupdate",f)},!0),Object.defineProperty(c,"default",{get:function(){return u},set:function(){}}),Object.defineProperty(c,"mode",{get:function(){return l},set:function(g){var v=this;TextTrackMode[g]&&(l=g,l==="showing"&&this.tech_.ready(function(){v.tech_.on("timeupdate",f)},!0),this.trigger("modechange"))}}),Object.defineProperty(c,"cues",{get:function(){return this.loaded_?p:null},set:function(){}}),Object.defineProperty(c,"activeCues",{get:function(){if(!this.loaded_)return null;if(this.cues.length===0)return m;for(var g=this.tech_.currentTime(),v=[],_=0,I=this.cues.length;_<I;_++){var P=this.cues[_];(P.startTime<=g&&P.endTime>=g||P.startTime===P.endTime&&P.startTime<=g&&P.startTime+.5>=g)&&v.push(P)}if(b=!1,v.length!==this.activeCues_.length)b=!0;else for(var A=0;A<v.length;A++)this.activeCues_.indexOf(v[A])===-1&&(b=!0);return this.activeCues_=v,m.setCues_(this.activeCues_),m},set:function(){}}),a.src?(c.src=a.src,loadTrack(a.src,c)):c.loaded_=!0,n=c,possibleConstructorReturn(e,n)}return inherits(t,r),t.prototype.addCue=function(e){var n=e;if(window_1.vttjs&&!(e instanceof window_1.vttjs.VTTCue)){n=new window_1.vttjs.VTTCue(e.startTime,e.endTime,e.text);for(var s in e)s in n||(n[s]=e[s]);n.id=e.id,n.originalCue_=e}for(var a=this.tech_.textTracks(),l=0;l<a.length;l++)a[l]!==this&&a[l].removeCue(n);this.cues_.push(n),this.cues.setCues_(this.cues_)},t.prototype.removeCue=function(e){for(var n=this.cues_.length;n--;){var s=this.cues_[n];if(s===e||s.originalCue_&&s.originalCue_===e){this.cues_.splice(n,1),this.cues.setCues_(this.cues_);break}}},t}(Track);TextTrack.prototype.allowedEvents_={cuechange:"cuechange"};var AudioTrack=function(r){function t(){var e,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};classCallCheck(this,t);var a=mergeOptions(s,{kind:AudioTrackKind[s.kind]||""}),l=e=possibleConstructorReturn(this,r.call(this,a)),u=!1;if(IS_IE8)for(var c in t.prototype)c!=="constructor"&&(l[c]=t.prototype[c]);return Object.defineProperty(l,"enabled",{get:function(){return u},set:function(h){typeof h=="boolean"&&h!==u&&(u=h,this.trigger("enabledchange"))}}),a.enabled&&(l.enabled=a.enabled),l.loaded_=!0,n=l,possibleConstructorReturn(e,n)}return inherits(t,r),t}(Track),VideoTrack=function(r){function t(){var e,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};classCallCheck(this,t);var a=mergeOptions(s,{kind:VideoTrackKind[s.kind]||""}),l=e=possibleConstructorReturn(this,r.call(this,a)),u=!1;if(IS_IE8)for(var c in t.prototype)c!=="constructor"&&(l[c]=t.prototype[c]);return Object.defineProperty(l,"selected",{get:function(){return u},set:function(h){typeof h=="boolean"&&h!==u&&(u=h,this.trigger("selectedchange"))}}),a.selected&&(l.selected=a.selected),n=l,possibleConstructorReturn(e,n)}return inherits(t,r),t}(Track),NONE=0,LOADING=1,LOADED=2,ERROR=3,HTMLTrackElement=function(r){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};classCallCheck(this,t);var n=possibleConstructorReturn(this,r.call(this)),s=void 0,a=n;if(IS_IE8){a=document_1.createElement("custom");for(var l in t.prototype)l!=="constructor"&&(a[l]=t.prototype[l])}var u=new TextTrack(e);if(a.kind=u.kind,a.src=u.src,a.srclang=u.language,a.label=u.label,a.default=u.default,Object.defineProperty(a,"readyState",{get:function(){return s}}),Object.defineProperty(a,"track",{get:function(){return u}}),s=NONE,u.addEventListener("loadeddata",function(){s=LOADED,a.trigger({type:"load",target:a})}),IS_IE8){var c;return c=a,possibleConstructorReturn(n,c)}return n}return inherits(t,r),t}(EventTarget);HTMLTrackElement.prototype.allowedEvents_={load:"load"},HTMLTrackElement.NONE=NONE,HTMLTrackElement.LOADING=LOADING,HTMLTrackElement.LOADED=LOADED,HTMLTrackElement.ERROR=ERROR;var NORMAL={audio:{ListClass:AudioTrackList,TrackClass:AudioTrack,capitalName:"Audio"},video:{ListClass:VideoTrackList,TrackClass:VideoTrack,capitalName:"Video"},text:{ListClass:TextTrackList,TrackClass:TextTrack,capitalName:"Text"}};Object.keys(NORMAL).forEach(function(r){NORMAL[r].getterName=r+"Tracks",NORMAL[r].privateName=r+"Tracks_"});var REMOTE={remoteText:{ListClass:TextTrackList,TrackClass:TextTrack,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:HtmlTrackElementList,TrackClass:HTMLTrackElement,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},ALL=mergeOptions(NORMAL,REMOTE);REMOTE.names=Object.keys(REMOTE),NORMAL.names=Object.keys(NORMAL),ALL.names=[].concat(REMOTE.names).concat(NORMAL.names);var _objCreate=Object.create||function(){function r(){}return function(t){if(arguments.length!==1)throw new Error("Object.create shim only accepts one parameter.");return r.prototype=t,new r}}();ParsingError.prototype=_objCreate(Error.prototype),ParsingError.prototype.constructor=ParsingError,ParsingError.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},Settings.prototype={set:function(r,t){this.get(r)||t===""||(this.values[r]=t)},get:function(r,t,e){return e?this.has(r)?this.values[r]:t[e]:this.has(r)?this.values[r]:t},has:function(r){return r in this.values},alt:function(r,t,e){for(var n=0;n<e.length;++n)if(t===e[n]){this.set(r,t);break}},integer:function(r,t){/^-?\d+$/.test(t)&&this.set(r,parseInt(t,10))},percent:function(r,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(r,t),!0)}};var ESCAPE={"&":"&","<":"<",">":">","‎":"","‏":""," ":" "},TAG_NAME={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},TAG_ANNOTATION={v:"title",lang:"lang"},NEEDS_PARENT={rt:"ruby"},strongRTLRanges=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];StyleBox.prototype.applyStyles=function(r,t){t=t||this.div;for(var e in r)r.hasOwnProperty(e)&&(t.style[e]=r[e])},StyleBox.prototype.formatStyle=function(r,t){return r===0?0:r+t},CueStyleBox.prototype=_objCreate(StyleBox.prototype),CueStyleBox.prototype.constructor=CueStyleBox,BoxPosition.prototype.move=function(r,t){switch(t=t!==void 0?t:this.lineHeight,r){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},BoxPosition.prototype.overlaps=function(r){return this.left<r.right&&this.right>r.left&&this.top<r.bottom&&this.bottom>r.top},BoxPosition.prototype.overlapsAny=function(r){for(var t=0;t<r.length;t++)if(this.overlaps(r[t]))return!0;return!1},BoxPosition.prototype.within=function(r){return this.top>=r.top&&this.bottom<=r.bottom&&this.left>=r.left&&this.right<=r.right},BoxPosition.prototype.overlapsOppositeAxis=function(r,t){switch(t){case"+x":return this.left<r.left;case"-x":return this.right>r.right;case"+y":return this.top<r.top;case"-y":return this.bottom>r.bottom}},BoxPosition.prototype.intersectPercentage=function(r){return Math.max(0,Math.min(this.right,r.right)-Math.max(this.left,r.left))*Math.max(0,Math.min(this.bottom,r.bottom)-Math.max(this.top,r.top))/(this.height*this.width)},BoxPosition.prototype.toCSSCompatValues=function(r){return{top:this.top-r.top,bottom:r.bottom-this.bottom,left:this.left-r.left,right:r.right-this.right,height:this.height,width:this.width}},BoxPosition.getSimpleBoxPosition=function(r){var t=r.div?r.div.offsetHeight:r.tagName?r.offsetHeight:0,e=r.div?r.div.offsetWidth:r.tagName?r.offsetWidth:0,n=r.div?r.div.offsetTop:r.tagName?r.offsetTop:0;return r=r.div?r.div.getBoundingClientRect():r.tagName?r.getBoundingClientRect():r,{left:r.left,right:r.right,top:r.top||n,height:r.height||t,bottom:r.bottom||n+(r.height||t),width:r.width||e}},WebVTT$1.StringDecoder=function(){return{decode:function(r){if(!r)return"";if(typeof r!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(r))}}},WebVTT$1.convertCueToDOMTree=function(r,t){return r&&t?parseContent(r,t):null},WebVTT$1.processCues=function(r,t,e){if(!r||!t||!e)return null;for(;e.firstChild;)e.removeChild(e.firstChild);var n=r.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",e.appendChild(n),function(h){for(var p=0;p<h.length;p++)if(h[p].hasBeenReset||!h[p].displayState)return!0;return!1}(t)){var s=[],a=BoxPosition.getSimpleBoxPosition(n),l=Math.round(.05*a.height*100)/100,u={font:l+"px sans-serif"};(function(){for(var h,p,m=0;m<t.length;m++)p=t[m],h=new CueStyleBox(r,p,u),n.appendChild(h.div),moveBoxToLinePosition(r,h,a,s),p.displayState=h.div,s.push(BoxPosition.getSimpleBoxPosition(h))})()}else for(var c=0;c<t.length;c++)n.appendChild(t[c].displayState)},WebVTT$1.Parser=function(r,t,e){e||(e=t,t={}),t||(t={}),this.window=r,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=e||new TextDecoder("utf8"),this.regionList=[]},WebVTT$1.Parser.prototype={reportOrThrowError:function(r){if(!(r instanceof ParsingError))throw r;this.onparsingerror&&this.onparsingerror(r)},parse:function(r){function t(){for(var h=s.buffer,p=0;p<h.length&&h[p]!=="\r"&&h[p]!==`
|
|
17
|
-
`;)++p;var
|
|
18
|
-
`&&++p,s.buffer=h.substr(p),
|
|
15
|
+
createEl(type, properties, attributes). Attempting to set `," to ","."]),$=createQuerier("querySelector"),$$=createQuerier("querySelectorAll"),Dom=(Object.freeze||Object)({isReal,isEl,isInFrame,createEl,textContent,prependTo,hasClass,addClass,removeClass,toggleClass,setAttributes,getAttributes,getAttribute,setAttribute,removeAttribute,blockTextSelection,unblockTextSelection,getBoundingClientRect,findPosition,getPointerPosition,isTextNode,emptyEl,normalizeContent,appendContent,insertContent,isSingleLeftClick,$,$$}),_guid=1,elData={},elIdAttr="vdata"+new Date().getTime(),_supportsPassive=!1;(function(){try{var r=Object.defineProperty({},"passive",{get:function(){_supportsPassive=!0}});window_1.addEventListener("test",null,r),window_1.removeEventListener("test",null,r)}catch{}})();var passiveEvents=["touchstart","touchmove"],Events=(Object.freeze||Object)({fixEvent,on,off,trigger,one}),_windowLoaded=!1,videojs$2=void 0,autoSetup=function(){if(isReal()){var r=document_1.getElementsByTagName("video"),t=document_1.getElementsByTagName("audio"),e=document_1.getElementsByTagName("video-js"),n=[];if(r&&r.length>0)for(var s=0,a=r.length;s<a;s++)n.push(r[s]);if(t&&t.length>0)for(var l=0,u=t.length;l<u;l++)n.push(t[l]);if(e&&e.length>0)for(var c=0,h=e.length;c<h;c++)n.push(e[c]);if(n&&n.length>0)for(var p=0,g=n.length;p<g;p++){var v=n[p];if(!v||!v.getAttribute){autoSetupTimeout(1);break}if(v.player===void 0){var y=v.getAttribute("data-setup");y!==null&&videojs$2(v)}}else _windowLoaded||autoSetupTimeout(1)}};isReal()&&document_1.readyState==="complete"?_windowLoaded=!0:one(window_1,"load",function(){_windowLoaded=!0});var createStyleElement=function(r){var t=document_1.createElement("style");return t.className=r,t},setTextContent=function(r,t){r.styleSheet?r.styleSheet.cssText=t:r.textContent=t},bind=function(r,t,e){t.guid||(t.guid=newGUID());var n=function(){return t.apply(r,arguments)};return n.guid=e?e+"_"+t.guid:t.guid,n},throttle=function(r,t){var e=Date.now();return function(){var n=Date.now();n-e>=t&&(r.apply(void 0,arguments),e=n)}},EventTarget=function(){};EventTarget.prototype.allowedEvents_={},EventTarget.prototype.on=function(r,t){var e=this.addEventListener;this.addEventListener=function(){},on(this,r,t),this.addEventListener=e},EventTarget.prototype.addEventListener=EventTarget.prototype.on,EventTarget.prototype.off=function(r,t){off(this,r,t)},EventTarget.prototype.removeEventListener=EventTarget.prototype.off,EventTarget.prototype.one=function(r,t){var e=this.addEventListener;this.addEventListener=function(){},one(this,r,t),this.addEventListener=e},EventTarget.prototype.trigger=function(r){var t=r.type||r;typeof r=="string"&&(r={type:t}),r=fixEvent(r),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](r),trigger(this,r)},EventTarget.prototype.dispatchEvent=EventTarget.prototype.trigger;var isEvented=function(r){return r instanceof EventTarget||!!r.eventBusEl_&&["on","one","off","trigger"].every(function(t){return typeof r[t]=="function"})},isValidEventType=function(r){return typeof r=="string"&&/\S/.test(r)||Array.isArray(r)&&!!r.length},validateTarget=function(r){if(!r.nodeName&&!isEvented(r))throw new Error("Invalid target; must be a DOM node or evented object.")},validateEventType=function(r){if(!isValidEventType(r))throw new Error("Invalid event type; must be a non-empty string or array.")},validateListener=function(r){if(typeof r!="function")throw new Error("Invalid listener; must be a function.")},normalizeListenArgs=function(r,t){var e=t.length<3||t[0]===r||t[0]===r.eventBusEl_,n=void 0,s=void 0,a=void 0;return e?(n=r.eventBusEl_,t.length>=3&&t.shift(),s=t[0],a=t[1]):(n=t[0],s=t[1],a=t[2]),validateTarget(n),validateEventType(s),validateListener(a),a=bind(r,a),{isTargetingSelf:e,target:n,type:s,listener:a}},listen=function(r,t,e,n){validateTarget(r),r.nodeName?Events[t](r,e,n):r[t](e,n)},EventedMixin={on:function(){for(var r=this,t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var s=normalizeListenArgs(this,e),a=s.isTargetingSelf,l=s.target,u=s.type,c=s.listener;if(u==="fullscreenchange"?listen(l,"on",u,function(){setTimeout(function(){c()},200)}):listen(l,"on",u,c),!a){var h=function(){return r.off(l,u,c)};h.guid=c.guid;var p=function(){return r.off("dispose",h)};p.guid=c.guid,listen(this,"on","dispose",h),listen(l,"on","dispose",p)}},one:function(){for(var r=this,t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var s=normalizeListenArgs(this,e),a=s.isTargetingSelf,l=s.target,u=s.type,c=s.listener;if(a)listen(l,"one",u,c);else{var h=function p(){for(var g=arguments.length,v=Array(g),y=0;y<g;y++)v[y]=arguments[y];r.off(l,u,p),c.apply(null,v)};h.guid=c.guid,listen(l,"one",u,h)}},off:function(r,t,e){if(!r||isValidEventType(r))isValidEventType(t)?off(this.eventBusEl_,t,e):off(this.eventBusEl_,r,t);else{var n=r,s=t;validateTarget(n),validateEventType(s),validateListener(e),e=bind(this,e),this.off("dispose",e),n.nodeName?(off(n,s,e),off(n,"dispose",e)):isEvented(n)&&(n.off(s,e),n.off("dispose",e))}},trigger:function(r,t){return trigger(this.eventBusEl_,r,t)}},StatefulMixin={state:{},setState:function(r){var t=this;typeof r=="function"&&(r=r());var e=void 0;return each(r,function(n,s){t.state[s]!==n&&(e=e||{},e[s]={from:t.state[s],to:n}),t.state[s]=n}),e&&isEvented(this)&&this.trigger({changes:e,type:"statechanged"}),e}},isArray=Array.isArray,isArray_1=isArray,freeGlobal=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,_freeGlobal=freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=_freeGlobal||freeSelf||Function("return this")(),_root=root,Symbol$1=_root.Symbol,_Symbol=Symbol$1,objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag$1=_Symbol?_Symbol.toStringTag:void 0,_getRawTag=getRawTag,objectProto$1=Object.prototype,nativeObjectToString$1=objectProto$1.toString,_objectToString=objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=_Symbol?_Symbol.toStringTag:void 0,_baseGetTag=baseGetTag,isObjectLike_1=isObjectLike,symbolTag="[object Symbol]",isSymbol_1=isSymbol,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,_isKey=isKey,isObject_1=isObject$2,asyncTag="[object AsyncFunction]",funcTag="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]",isFunction_1=isFunction$1,coreJsData=_root["__core-js_shared__"],_coreJsData=coreJsData,maskSrcKey=function(){var r=/[^.]+$/.exec(_coreJsData&&_coreJsData.keys&&_coreJsData.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),_isMasked=isMasked,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString,_toSource=toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$2=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$1=objectProto$2.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$1).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_baseIsNative=baseIsNative,_getValue=getValue,_getNative=getNative,nativeCreate=_getNative(Object,"create"),_nativeCreate=nativeCreate,_hashClear=hashClear,_hashDelete=hashDelete,HASH_UNDEFINED="__lodash_hash_undefined__",objectProto$3=Object.prototype,hasOwnProperty$2=objectProto$3.hasOwnProperty,_hashGet=hashGet,objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty,_hashHas=hashHas,HASH_UNDEFINED$1="__lodash_hash_undefined__",_hashSet=hashSet;Hash.prototype.clear=_hashClear,Hash.prototype.delete=_hashDelete,Hash.prototype.get=_hashGet,Hash.prototype.has=_hashHas,Hash.prototype.set=_hashSet;var _Hash=Hash,_listCacheClear=listCacheClear,eq_1=eq,_assocIndexOf=assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice,_listCacheDelete=listCacheDelete,_listCacheGet=listCacheGet,_listCacheHas=listCacheHas,_listCacheSet=listCacheSet;ListCache.prototype.clear=_listCacheClear,ListCache.prototype.delete=_listCacheDelete,ListCache.prototype.get=_listCacheGet,ListCache.prototype.has=_listCacheHas,ListCache.prototype.set=_listCacheSet;var _ListCache=ListCache,Map=_getNative(_root,"Map"),_Map=Map,_mapCacheClear=mapCacheClear,_isKeyable=isKeyable,_getMapData=getMapData,_mapCacheDelete=mapCacheDelete,_mapCacheGet=mapCacheGet,_mapCacheHas=mapCacheHas,_mapCacheSet=mapCacheSet;MapCache.prototype.clear=_mapCacheClear,MapCache.prototype.delete=_mapCacheDelete,MapCache.prototype.get=_mapCacheGet,MapCache.prototype.has=_mapCacheHas,MapCache.prototype.set=_mapCacheSet;var _MapCache=MapCache,FUNC_ERROR_TEXT="Expected a function";memoize.Cache=_MapCache;var memoize_1=memoize,MAX_MEMOIZE_SIZE=500,_memoizeCapped=memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=_memoizeCapped(function(r){var t=[];return r.charCodeAt(0)===46&&t.push(""),r.replace(rePropName,function(e,n,s,a){t.push(s?a.replace(reEscapeChar,"$1"):n||e)}),t}),_stringToPath=stringToPath,_arrayMap=arrayMap,INFINITY=1/0,symbolProto=_Symbol?_Symbol.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0,_baseToString=baseToString,toString_1=toString$1,_castPath=castPath,INFINITY$1=1/0,_toKey=toKey,_baseGet=baseGet,get_1=get$1,Component=function(){function r(t,e,n){if(classCallCheck(this,r),!t&&this.play?this.player_=t=this:this.player_=t,this.options_=extend(!0,{},this.options_),e=this.options_=mergeOptions(this.options_,e),this.id_=e.id||e.el&&e.el.id,!this.id_){var s=t&&t.id&&t.id()||"no_player";this.id_=s+"_component_"+newGUID()}this.name_=e.name||null,e.el?this.el_=e.el:e.createEl!==!1&&(this.el_=this.createEl()),e.evented!==!1&&evented(this,{eventBusKey:this.el_?"el_":null}),stateful(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},e.initChildren!==!1&&this.initChildren(),this.ready(n),e.reportTouchActivity!==!1&&this.enableTouchActivity()}return r.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),removeData(this.el_),this.el_=null),this.player_=null},r.prototype.player=function(){return this.player_},r.prototype.options=function(t){return log$2.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.options_=mergeOptions(this.options_,t),this.options_):this.options_},r.prototype.el=function(){return this.el_},r.prototype.createEl=function(t,e,n){return createEl(t,e,n)},r.prototype.localize=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,s=this.player_.language&&this.player_.language(),a=this.player_.languages&&this.player_.languages(),l=a&&a[s],u=s&&s.split("-")[0],c=a&&a[u],h=n;return l&&l[t]?h=l[t]:c&&c[t]&&(h=c[t]),e&&(h=h.replace(/\{(\d+)\}/g,function(p,g){var v=e[g-1],y=v;return v===void 0&&(y=p),y})),h},r.prototype.contentEl=function(){return this.contentEl_||this.el_},r.prototype.id=function(){return this.id_},r.prototype.name=function(){return this.name_},r.prototype.children=function(){return this.children_},r.prototype.getChildById=function(t){return this.childIndex_[t]},r.prototype.getChild=function(t){if(t)return t=toTitleCase(t),this.childNameIndex_[t]},r.prototype.addChild=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.children_.length,s=void 0,a=void 0;if(typeof t=="string"){a=toTitleCase(t);var l=e.componentClass||a;e.name=a;var u=r.getComponent(l);if(!u)throw new Error("Component "+l+" does not exist");if(typeof u!="function")return null;s=new u(this.player_||this,e)}else s=t;if(this.children_.splice(n,0,s),typeof s.id=="function"&&(this.childIndex_[s.id()]=s),a=a||s.name&&toTitleCase(s.name()),a&&(this.childNameIndex_[a]=s),typeof s.el=="function"&&s.el()){var c=this.contentEl().children,h=c[n]||null;this.contentEl().insertBefore(s.el(),h)}return s},r.prototype.removeChild=function(t){if(typeof t=="string"&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===t){e=!0,this.children_.splice(n,1);break}if(e){this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var s=t.el();s&&s.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},r.prototype.initChildren=function(){var t=this,e=this.options_.children;if(e){var n=this.options_,s=function(u){var c=u.name,h=u.opts;if(n[c]!==void 0&&(h=n[c]),h!==!1){h===!0&&(h={}),h.playerOptions=t.options_.playerOptions;var p=t.addChild(c,h);p&&(t[c]=p)}},a=void 0,l=r.getComponent("Tech");a=Array.isArray(e)?e:Object.keys(e),a.concat(Object.keys(this.options_).filter(function(u){return!a.some(function(c){return typeof c=="string"?u===c:u===c.name})})).map(function(u){var c=void 0,h=void 0;return typeof u=="string"?(c=u,h=e[c]||t.options_[c]||{}):(c=u.name,h=u),{name:c,opts:h}}).filter(function(u){var c=r.getComponent(u.opts.componentClass||toTitleCase(u.name));return c&&!l.isTech(c)}).forEach(s)}},r.prototype.buildCSSClass=function(){return""},r.prototype.ready=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(t)return this.isReady_?void(e?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},r.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},r.prototype.$=function(t,e){return $(t,e||this.contentEl())},r.prototype.$$=function(t,e){return $$(t,e||this.contentEl())},r.prototype.hasClass=function(t){return hasClass(this.el_,t)},r.prototype.addClass=function(t){addClass(this.el_,t)},r.prototype.removeClass=function(t){if(removeClass(this.el_,t),t==="vjs-lock-showing"&&(IS_IOS||IS_ANDROID)){var e=document.getElementsByClassName("vjs-subs-caps-button"),n=get_1(e,"[0].children[1]");n&&(n.className="vjs-menu")}},r.prototype.toggleClass=function(t,e){toggleClass(this.el_,t,e)},r.prototype.show=function(){this.removeClass("vjs-hidden")},r.prototype.hide=function(){this.addClass("vjs-hidden")},r.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},r.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},r.prototype.getAttribute=function(t){return getAttribute(this.el_,t)},r.prototype.setAttribute=function(t,e){setAttribute(this.el_,t,e)},r.prototype.removeAttribute=function(t){removeAttribute(this.el_,t)},r.prototype.width=function(t,e){return this.dimension("width",t,e)},r.prototype.height=function(t,e){return this.dimension("height",t,e)},r.prototype.dimensions=function(t,e){this.width(t,!0),this.height(e)},r.prototype.dimension=function(t,e,n){if(e!==void 0)return e!==null&&e===e||(e=0),(""+e).indexOf("%")!==-1||(""+e).indexOf("px")!==-1?this.el_.style[t]=e:this.el_.style[t]=e==="auto"?"":e+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var s=this.el_.style[t],a=s.indexOf("px");return parseInt(a!==-1?s.slice(0,a):this.el_["offset"+toTitleCase(t)],10)},r.prototype.currentDimension=function(t){var e=0;if(t!=="width"&&t!=="height")throw new Error("currentDimension only accepts width or height value");if(typeof window_1.getComputedStyle=="function"){var n=window_1.getComputedStyle(this.el_);e=n.getPropertyValue(t)||n[t]}if((e=parseFloat(e))===0){var s="offset"+toTitleCase(t);e=this.el_[s]}return e},r.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},r.prototype.currentWidth=function(){return this.currentDimension("width")},r.prototype.currentHeight=function(){return this.currentDimension("height")},r.prototype.focus=function(){this.el_.focus()},r.prototype.blur=function(){this.el_.blur()},r.prototype.emitTapEvents=function(){var t=0,e=null,n=void 0;this.on("touchstart",function(a){a.touches.length===1&&(e={pageX:a.touches[0].pageX,pageY:a.touches[0].pageY},t=new Date().getTime(),n=!0)}),this.on("touchmove",function(a){if(a.touches.length>1)n=!1;else if(e){var l=a.touches[0].pageX-e.pageX,u=a.touches[0].pageY-e.pageY,c=Math.sqrt(l*l+u*u);c>10&&(n=!1)}});var s=function(){n=!1};this.on("touchleave",s),this.on("touchcancel",s),this.on("touchend",function(a){e=null,n===!0&&new Date().getTime()-t<200&&(a.preventDefault(),this.trigger("tap"))})},r.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t=bind(this.player(),this.player().reportUserActivity),e=void 0;this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var n=function(s){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},r.prototype.setTimeout=function(t,e){var n=this;t=bind(this,t);var s=window_1.setTimeout(t,e),a=function(){return n.clearTimeout(s)};return a.guid="vjs-timeout-"+s,this.on("dispose",a),s},r.prototype.clearTimeout=function(t){window_1.clearTimeout(t);var e=function(){};return e.guid="vjs-timeout-"+t,this.off("dispose",e),t},r.prototype.setInterval=function(t,e){var n=this;t=bind(this,t);var s=window_1.setInterval(t,e),a=function(){return n.clearInterval(s)};return a.guid="vjs-interval-"+s,this.on("dispose",a),s},r.prototype.clearInterval=function(t){window_1.clearInterval(t);var e=function(){};return e.guid="vjs-interval-"+t,this.off("dispose",e),t},r.prototype.requestAnimationFrame=function(t){var e=this;if(this.supportsRaf_){t=bind(this,t);var n=window_1.requestAnimationFrame(t),s=function(){return e.cancelAnimationFrame(n)};return s.guid="vjs-raf-"+n,this.on("dispose",s),n}return this.setTimeout(t,1e3/60)},r.prototype.cancelAnimationFrame=function(t){if(this.supportsRaf_){window_1.cancelAnimationFrame(t);var e=function(){};return e.guid="vjs-raf-"+t,this.off("dispose",e),t}return this.clearTimeout(t)},r.registerComponent=function(t,e){if(typeof t!="string"||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var n=r.getComponent("Tech"),s=n&&n.isTech(e),a=r===e||r.prototype.isPrototypeOf(e.prototype);if(s||!a){var l=void 0;throw l=s?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+l+".")}t=toTitleCase(t),r.components_||(r.components_={});var u=r.getComponent("Player");if(t==="Player"&&u&&u.players){var c=u.players,h=Object.keys(c);if(c&&h.length>0&&h.map(function(p){return c[p]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return r.components_[t]=e,e},r.getComponent=function(t){if(t)return t=toTitleCase(t),r.components_&&r.components_[t]?r.components_[t]:void 0},r}();Component.prototype.supportsRaf_=typeof window_1.requestAnimationFrame=="function"&&typeof window_1.cancelAnimationFrame=="function",Component.registerComponent("Component",Component);for(var EXT_MIME={m3u8:"application/x-mpegURL",flv:"video/flv",mp4:"video/mp4",webm:"video/webm",rtmp:"rtmp/flv",mpd:"application/dash+xml",mp3:"audio/mpeg",m4a:"audio/mp4"},SERVER_PATH="//playvideo.qcloud.com",SERVER_PATH_V3="//playvideo.qcloud.com",SERVER_PATH_V4="//playvideo.qcloud.com",SERVER_PATH_BACKUP="//bkplayvideo.qcloud.com",LICENSE_PATH="https://drm.vod2.myqcloud.com/getlicense/v1",HLS_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/hls.min.1.1.7.js",FLV_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/flv.min.1.6.4.js",WEBRTC_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/TXLivePlayer-1.3.4.min.js",DASH_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/dash.all.min.v3.1.3.js",XP2P_HLS_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/hlsp2p.min.1.6.28.js",XP2P_FLV_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/qvbp2p_common.min.1.8.29.js",parseUrl=function(r){var t=["protocol","hostname","port","pathname","search","hash","host"],e=document_1.createElement("a");e.href=r;var n=e.host===""&&e.protocol!=="file:",s=void 0;n&&(s=document_1.createElement("div"),s.innerHTML='<a href="'+r+'"></a>',e=s.firstChild,s.setAttribute("style","display:none; position:absolute;"),document_1.body.appendChild(s));for(var a={},l=0;l<t.length;l++)a[t[l]]=e[t[l]];return a.protocol==="http:"&&(a.host=a.host.replace(/:80$/,"")),a.protocol==="https:"&&(a.host=a.host.replace(/:443$/,"")),a.protocol||(a.protocol=window_1.location.protocol),n&&document_1.body.removeChild(s),a},getAbsoluteURL=function(r){if(!r.match(/^https?:\/\//)){var t=document_1.createElement("div");t.innerHTML='<a href="'+r+'">x</a>',r=t.firstChild.href}return r},getFileExtension=function(r){if(typeof r=="string"){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,e=t.exec(r);if(e)return e.pop().toLowerCase()}return""},isCrossOrigin=function(r){var t=window_1.location,e=parseUrl(r);return(e.protocol===":"?t.protocol:e.protocol)+e.host!==t.protocol+t.host},Url=(Object.freeze||Object)({parseUrl,getAbsoluteURL,getFileExtension,isCrossOrigin}),FullscreenApi={},apiMap=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],specApi=apiMap[0],browserApi=void 0,prefixedAPI=!1,i$1=0;i$1<apiMap.length;i$1++)if(apiMap[i$1][1]in document_1){browserApi=apiMap[i$1];break}if(browserApi){for(var _i=0;_i<browserApi.length;_i++)FullscreenApi[specApi[_i]]=browserApi[_i];prefixedAPI=browserApi[0]===specApi[0]}MediaError.prototype.code=0,MediaError.prototype.message="",MediaError.prototype.status=null,MediaError.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],MediaError.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var errNum=0;errNum<MediaError.errorTypes.length;errNum++)MediaError[MediaError.errorTypes[errNum]]=errNum,MediaError.prototype[MediaError.errorTypes[errNum]]=errNum;var tuple=SafeParseTuple,trackToJson_=function(r){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,e,n){return r[e]&&(t[e]=r[e]),t},{cues:r.cues&&Array.prototype.map.call(r.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})},textTracksToJson=function(r){var t=r.$$("track"),e=Array.prototype.map.call(t,function(n){return n.track});return Array.prototype.map.call(t,function(n){var s=trackToJson_(n.track);return n.src&&(s.src=n.src),s}).concat(Array.prototype.filter.call(r.textTracks(),function(n){return e.indexOf(n)===-1}).map(trackToJson_))},jsonToTextTracks=function(r,t){return r.forEach(function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(s){return n.addCue(s)})}),t.textTracks()},textTrackConverter={textTracksToJson,jsonToTextTracks,trackToJson_},MODAL_CLASS_NAME="vjs-modal-dialog",ESC=27,ModalDialog=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.opened_=s.hasBeenOpened_=s.hasBeenFilled_=!1,s.closeable(!s.options_.uncloseable),s.content(s.options_.content),s.contentEl_=createEl("div",{className:MODAL_CLASS_NAME+"-content"},{role:"document"}),s.descEl_=createEl("p",{className:MODAL_CLASS_NAME+"-description vjs-control-text",id:s.el().getAttribute("aria-describedby")}),textContent(s.descEl_,s.description()),s.el_.appendChild(s.descEl_),s.el_.appendChild(s.contentEl_),s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.prototype.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,r.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return MODAL_CLASS_NAME+" vjs-hidden "+r.prototype.buildCSSClass.call(this)},t.prototype.handleKeyPress=function(e){e.which===ESC&&this.closeable()&&this.close()},t.prototype.label=function(){return this.localize(this.options_.label||"Modal Window")},t.prototype.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},t.prototype.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",bind(this,this.handleKeyPress)),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},t.prototype.opened=function(e){return typeof e=="boolean"&&this[e?"open":"close"](),this.opened_},t.prototype.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",bind(this,this.handleKeyPress)),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},t.prototype.closeable=function(e){if(typeof e=="boolean"){var n=this.closeable_=!!e,s=this.getChild("closeButton");if(n&&!s){var a=this.contentEl_;this.contentEl_=this.el_,s=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=a,this.on(s,"close",this.close)}!n&&s&&(this.off(s,"close",this.close),this.removeChild(s),s.dispose())}return this.closeable_},t.prototype.fill=function(){this.fillWith(this.content())},t.prototype.fillWith=function(e){var n=this.contentEl(),s=n.parentNode,a=n.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,s.removeChild(n),this.empty(),insertContent(n,e),this.trigger("modalfill"),a?s.insertBefore(n,a):s.appendChild(n);var l=this.getChild("closeButton");l&&s.appendChild(l.el_)},t.prototype.empty=function(){this.trigger("beforemodalempty"),emptyEl(this.contentEl()),this.trigger("modalempty")},t.prototype.content=function(e){return e!==void 0&&(this.content_=e),this.content_},t.prototype.conditionalFocus_=function(){var e=document_1.activeElement,n=this.player_.el_;this.previouslyActiveEl_=null,(n.contains(e)||n===e)&&(this.previouslyActiveEl_=e,this.focus(),this.on(document_1,"keydown",this.handleKeyDown))},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null),this.off(document_1,"keydown",this.handleKeyDown)},t.prototype.handleKeyDown=function(e){if(e.which===9){for(var n=this.focusableEls_(),s=this.el_.querySelector(":focus"),a=void 0,l=0;l<n.length;l++)if(s===n[l]){a=l;break}document_1.activeElement===this.el_&&(a=0),e.shiftKey&&a===0?(n[n.length-1].focus(),e.preventDefault()):e.shiftKey||a!==n.length-1||(n[0].focus(),e.preventDefault())}},t.prototype.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,function(n){return(n instanceof window_1.HTMLAnchorElement||n instanceof window_1.HTMLAreaElement)&&n.hasAttribute("href")||(n instanceof window_1.HTMLInputElement||n instanceof window_1.HTMLSelectElement||n instanceof window_1.HTMLTextAreaElement||n instanceof window_1.HTMLButtonElement)&&!n.hasAttribute("disabled")||n instanceof window_1.HTMLIFrameElement||n instanceof window_1.HTMLObjectElement||n instanceof window_1.HTMLEmbedElement||n.hasAttribute("tabindex")&&n.getAttribute("tabindex")!==-1||n.hasAttribute("contenteditable")})},t}(Component);ModalDialog.prototype.options_={pauseOnOpen:!0,temporary:!0},Component.registerComponent("ModalDialog",ModalDialog);var TrackList=function(r){function t(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;classCallCheck(this,t);var a=possibleConstructorReturn(this,r.call(this));if(!s&&(s=a,IS_IE8)){s=document_1.createElement("custom");for(var l in t.prototype)l!=="constructor"&&(s[l]=t.prototype[l])}s.tracks_=[],Object.defineProperty(s,"length",{get:function(){return this.tracks_.length}});for(var u=0;u<n.length;u++)s.addTrack(n[u]);return e=s,possibleConstructorReturn(a,e)}return inherits(t,r),t.prototype.addTrack=function(e){var n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get:function(){return this.tracks_[n]}}),this.tracks_.indexOf(e)===-1&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack"}))},t.prototype.removeTrack=function(e){for(var n=void 0,s=0,a=this.length;s<a;s++)if(this[s]===e){n=this[s],n.off&&n.off(),this.tracks_.splice(s,1);break}n&&this.trigger({track:n,type:"removetrack"})},t.prototype.getTrackById=function(e){for(var n=null,s=0,a=this.length;s<a;s++){var l=this[s];if(l.id===e){n=l;break}}return n},t}(EventTarget);TrackList.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(var event$1 in TrackList.prototype.allowedEvents_)TrackList.prototype["on"+event$1]=null;var disableOthers=function(r,t){for(var e=0;e<r.length;e++)Object.keys(r[e]).length&&t.id!==r[e].id&&(r[e].enabled=!1)},AudioTrackList=function(r){function t(){var e,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];classCallCheck(this,t);for(var a=void 0,l=s.length-1;l>=0;l--)if(s[l].enabled){disableOthers(s,s[l]);break}if(IS_IE8){a=document_1.createElement("custom");for(var u in TrackList.prototype)u!=="constructor"&&(a[u]=TrackList.prototype[u]);for(var c in t.prototype)c!=="constructor"&&(a[c]=t.prototype[c])}return a=e=possibleConstructorReturn(this,r.call(this,s,a)),a.changing_=!1,n=a,possibleConstructorReturn(e,n)}return inherits(t,r),t.prototype.addTrack=function(e){var n=this;e.enabled&&disableOthers(this,e),r.prototype.addTrack.call(this,e),e.addEventListener&&e.addEventListener("enabledchange",function(){n.changing_||(n.changing_=!0,disableOthers(n,e),n.changing_=!1,n.trigger("change"))})},t}(TrackList),disableOthers$1=function(r,t){for(var e=0;e<r.length;e++)Object.keys(r[e]).length&&t.id!==r[e].id&&(r[e].selected=!1)},VideoTrackList=function(r){function t(){var e,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];classCallCheck(this,t);for(var a=void 0,l=s.length-1;l>=0;l--)if(s[l].selected){disableOthers$1(s,s[l]);break}if(IS_IE8){a=document_1.createElement("custom");for(var u in TrackList.prototype)u!=="constructor"&&(a[u]=TrackList.prototype[u]);for(var c in t.prototype)c!=="constructor"&&(a[c]=t.prototype[c])}return a=e=possibleConstructorReturn(this,r.call(this,s,a)),a.changing_=!1,Object.defineProperty(a,"selectedIndex",{get:function(){for(var h=0;h<this.length;h++)if(this[h].selected)return h;return-1},set:function(){}}),n=a,possibleConstructorReturn(e,n)}return inherits(t,r),t.prototype.addTrack=function(e){var n=this;e.selected&&disableOthers$1(this,e),r.prototype.addTrack.call(this,e),e.addEventListener&&e.addEventListener("selectedchange",function(){n.changing_||(n.changing_=!0,disableOthers$1(n,e),n.changing_=!1,n.trigger("change"))})},t}(TrackList),TextTrackList=function(r){function t(){var e,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];classCallCheck(this,t);var a=void 0;if(IS_IE8){a=document_1.createElement("custom");for(var l in TrackList.prototype)l!=="constructor"&&(a[l]=TrackList.prototype[l]);for(var u in t.prototype)u!=="constructor"&&(a[u]=t.prototype[u])}return a=e=possibleConstructorReturn(this,r.call(this,s,a)),n=a,possibleConstructorReturn(e,n)}return inherits(t,r),t.prototype.addTrack=function(e){return!(e.mode==="disabled"&&!e.label)&&!(e.kind==="captions"&&!e.label)&&!(IS_IOS&&e.kind==="subtitles"&&!window.textTrackCleared_)&&(r.prototype.addTrack.call(this,e),e.addEventListener("modechange",bind(this,function(){this.trigger("change")})),void(["metadata","chapters"].indexOf(e.kind)===-1&&e.addEventListener("modechange",bind(this,function(){this.trigger("selectedlanguagechange")}))))},t}(TrackList),HtmlTrackElementList=function(){function r(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];classCallCheck(this,r);var e=this;if(IS_IE8){e=document_1.createElement("custom");for(var n in r.prototype)n!=="constructor"&&(e[n]=r.prototype[n])}e.trackElements_=[],Object.defineProperty(e,"length",{get:function(){return this.trackElements_.length}});for(var s=0,a=t.length;s<a;s++)e.addTrackElement_(t[s]);if(IS_IE8)return e}return r.prototype.addTrackElement_=function(t){var e=this.trackElements_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.trackElements_[e]}}),this.trackElements_.indexOf(t)===-1&&this.trackElements_.push(t)},r.prototype.getTrackElementByTrack_=function(t){for(var e=void 0,n=0,s=this.trackElements_.length;n<s;n++)if(t===this.trackElements_[n].track){e=this.trackElements_[n];break}return e},r.prototype.removeTrackElement_=function(t){for(var e=0,n=this.trackElements_.length;e<n;e++)if(t===this.trackElements_[e]){this.trackElements_.splice(e,1);break}},r}(),TextTrackCueList=function(){function r(t){classCallCheck(this,r);var e=this;if(IS_IE8){e=document_1.createElement("custom");for(var n in r.prototype)n!=="constructor"&&(e[n]=r.prototype[n])}if(r.prototype.setCues_.call(e,t),Object.defineProperty(e,"length",{get:function(){return this.length_}}),IS_IE8)return e}return r.prototype.setCues_=function(t){var e=this.length||0,n=0,s=t.length;this.cues_=t,this.length_=t.length;var a=function(l){""+l in this||Object.defineProperty(this,""+l,{get:function(){return this.cues_[l]}})};if(e<s)for(n=e;n<s;n++)a.call(this,n)},r.prototype.getCueById=function(t){for(var e=null,n=0,s=this.length;n<s;n++){var a=this[n];if(a.id===t){e=a;break}}return e},r}(),VideoTrackKind={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},AudioTrackKind={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},TextTrackKind={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},TextTrackMode={disabled:"disabled",hidden:"hidden",showing:"showing"},Track=function(r){function t(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this)),a=s;if(IS_IE8){a=document_1.createElement("custom");for(var l in t.prototype)l!=="constructor"&&(a[l]=t.prototype[l])}var u={id:n.id||(n.id===0?0:"vjs_track_"+newGUID()),kind:n.kind||"",label:n.label||"",language:n.language||""};for(var c in u)(function(h){Object.defineProperty(a,h,{get:function(){return u[h]},set:function(){}})})(c);return e=a,possibleConstructorReturn(s,e)}return inherits(t,r),t}(EventTarget),isFunction_1$2=isFunction$3,toString$3=Object.prototype.toString,trim=function(r){return r.replace(/^\s+|\s+$/g,"")},isArray$2=function(r){return Object.prototype.toString.call(r)==="[object Array]"},parseHeaders=function(r){if(!r)return{};for(var t={},e=trim(r).split(`
|
|
16
|
+
`),n=0;n<e.length;n++){var s=e[n],a=s.indexOf(":"),l=trim(s.slice(0,a)).toLowerCase(),u=trim(s.slice(a+1));typeof t[l]>"u"?t[l]=u:isArray$2(t[l])?t[l].push(u):t[l]=[t[l],u]}return t},immutable=extend$1,hasOwnProperty$4=Object.prototype.hasOwnProperty,xhr=createXHR;createXHR.XMLHttpRequest=window_1.XMLHttpRequest||noop,createXHR.XDomainRequest="withCredentials"in new createXHR.XMLHttpRequest?createXHR.XMLHttpRequest:window_1.XDomainRequest,forEachArray(["get","put","post","patch","head","delete"],function(r){createXHR[r==="delete"?"del":r]=function(t,e,n){return e=initParams(t,e,n),e.method=r.toUpperCase(),_createXHR(e)}});var parseCues=function(r,t){var e=new window_1.WebVTT.Parser(window_1,window_1.vttjs,window_1.WebVTT.StringDecoder()),n=[];e.oncue=function(s){t.addCue(s)},e.onparsingerror=function(s){n.push(s)},e.onflush=function(){t.trigger({type:"loadeddata",target:t})},e.parse(r),n.length>0&&(window_1.console&&window_1.console.groupCollapsed&&window_1.console.groupCollapsed("Text Track parsing errors for "+t.src),n.forEach(function(s){return log$2.error(s)}),window_1.console&&window_1.console.groupEnd&&window_1.console.groupEnd()),e.flush()},loadTrack=function(r,t){var e={uri:r},n=isCrossOrigin(r);n&&(e.cors=n),xhr(e,bind(this,function(s,a,l){if(s)return log$2.error(s,a);if(t.loaded_=!0,typeof window_1.WebVTT!="function"){if(t.tech_){var u=function(){return parseCues(l,t)};t.tech_.on("vttjsloaded",u),t.tech_.on("vttjserror",function(){log$2.error("vttjs failed to load, stopping trying to process "+t.src),t.tech_.off("vttjsloaded",u)})}}else parseCues(l,t)}))},TextTrack=function(r){function t(){var e,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(classCallCheck(this,t),!s.tech)throw new Error("A tech was not provided.");var a=mergeOptions(s,{kind:TextTrackKind[s.kind]||s.kind||"subtitles",language:s.language||s.srclang||""}),l=TextTrackMode[a.mode]||"disabled",u=a.default;a.kind!=="metadata"&&a.kind!=="chapters"||(l="hidden");var c=e=possibleConstructorReturn(this,r.call(this,a));if(c.tech_=a.tech,IS_IE8)for(var h in t.prototype)h!=="constructor"&&(c[h]=t.prototype[h]);c.cues_=[],c.activeCues_=[];var p=new TextTrackCueList(c.cues_),g=new TextTrackCueList(c.activeCues_),v=!1,y=bind(c,function(){this.activeCues,v&&(this.trigger("cuechange"),v=!1)});return l!=="disabled"&&c.tech_.ready(function(){c.tech_.on("timeupdate",y)},!0),Object.defineProperty(c,"default",{get:function(){return u},set:function(){}}),Object.defineProperty(c,"mode",{get:function(){return l},set:function(_){var b=this;TextTrackMode[_]&&(l=_,l==="showing"&&this.tech_.ready(function(){b.tech_.on("timeupdate",y)},!0),this.trigger("modechange"))}}),Object.defineProperty(c,"cues",{get:function(){return this.loaded_?p:null},set:function(){}}),Object.defineProperty(c,"activeCues",{get:function(){if(!this.loaded_)return null;if(this.cues.length===0)return g;for(var _=this.tech_.currentTime(),b=[],C=0,I=this.cues.length;C<I;C++){var N=this.cues[C];(N.startTime<=_&&N.endTime>=_||N.startTime===N.endTime&&N.startTime<=_&&N.startTime+.5>=_)&&b.push(N)}if(v=!1,b.length!==this.activeCues_.length)v=!0;else for(var x=0;x<b.length;x++)this.activeCues_.indexOf(b[x])===-1&&(v=!0);return this.activeCues_=b,g.setCues_(this.activeCues_),g},set:function(){}}),a.src?(c.src=a.src,loadTrack(a.src,c)):c.loaded_=!0,n=c,possibleConstructorReturn(e,n)}return inherits(t,r),t.prototype.addCue=function(e){var n=e;if(window_1.vttjs&&!(e instanceof window_1.vttjs.VTTCue)){n=new window_1.vttjs.VTTCue(e.startTime,e.endTime,e.text);for(var s in e)s in n||(n[s]=e[s]);n.id=e.id,n.originalCue_=e}for(var a=this.tech_.textTracks(),l=0;l<a.length;l++)a[l]!==this&&a[l].removeCue(n);this.cues_.push(n),this.cues.setCues_(this.cues_)},t.prototype.removeCue=function(e){for(var n=this.cues_.length;n--;){var s=this.cues_[n];if(s===e||s.originalCue_&&s.originalCue_===e){this.cues_.splice(n,1),this.cues.setCues_(this.cues_);break}}},t}(Track);TextTrack.prototype.allowedEvents_={cuechange:"cuechange"};var AudioTrack=function(r){function t(){var e,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};classCallCheck(this,t);var a=mergeOptions(s,{kind:AudioTrackKind[s.kind]||""}),l=e=possibleConstructorReturn(this,r.call(this,a)),u=!1;if(IS_IE8)for(var c in t.prototype)c!=="constructor"&&(l[c]=t.prototype[c]);return Object.defineProperty(l,"enabled",{get:function(){return u},set:function(h){typeof h=="boolean"&&h!==u&&(u=h,this.trigger("enabledchange"))}}),a.enabled&&(l.enabled=a.enabled),l.loaded_=!0,n=l,possibleConstructorReturn(e,n)}return inherits(t,r),t}(Track),VideoTrack=function(r){function t(){var e,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};classCallCheck(this,t);var a=mergeOptions(s,{kind:VideoTrackKind[s.kind]||""}),l=e=possibleConstructorReturn(this,r.call(this,a)),u=!1;if(IS_IE8)for(var c in t.prototype)c!=="constructor"&&(l[c]=t.prototype[c]);return Object.defineProperty(l,"selected",{get:function(){return u},set:function(h){typeof h=="boolean"&&h!==u&&(u=h,this.trigger("selectedchange"))}}),a.selected&&(l.selected=a.selected),n=l,possibleConstructorReturn(e,n)}return inherits(t,r),t}(Track),NONE=0,LOADING=1,LOADED=2,ERROR=3,HTMLTrackElement=function(r){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};classCallCheck(this,t);var n=possibleConstructorReturn(this,r.call(this)),s=void 0,a=n;if(IS_IE8){a=document_1.createElement("custom");for(var l in t.prototype)l!=="constructor"&&(a[l]=t.prototype[l])}var u=new TextTrack(e);if(a.kind=u.kind,a.src=u.src,a.srclang=u.language,a.label=u.label,a.default=u.default,Object.defineProperty(a,"readyState",{get:function(){return s}}),Object.defineProperty(a,"track",{get:function(){return u}}),s=NONE,u.addEventListener("loadeddata",function(){s=LOADED,a.trigger({type:"load",target:a})}),IS_IE8){var c;return c=a,possibleConstructorReturn(n,c)}return n}return inherits(t,r),t}(EventTarget);HTMLTrackElement.prototype.allowedEvents_={load:"load"},HTMLTrackElement.NONE=NONE,HTMLTrackElement.LOADING=LOADING,HTMLTrackElement.LOADED=LOADED,HTMLTrackElement.ERROR=ERROR;var NORMAL={audio:{ListClass:AudioTrackList,TrackClass:AudioTrack,capitalName:"Audio"},video:{ListClass:VideoTrackList,TrackClass:VideoTrack,capitalName:"Video"},text:{ListClass:TextTrackList,TrackClass:TextTrack,capitalName:"Text"}};Object.keys(NORMAL).forEach(function(r){NORMAL[r].getterName=r+"Tracks",NORMAL[r].privateName=r+"Tracks_"});var REMOTE={remoteText:{ListClass:TextTrackList,TrackClass:TextTrack,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:HtmlTrackElementList,TrackClass:HTMLTrackElement,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},ALL=mergeOptions(NORMAL,REMOTE);REMOTE.names=Object.keys(REMOTE),NORMAL.names=Object.keys(NORMAL),ALL.names=[].concat(REMOTE.names).concat(NORMAL.names);var _objCreate=Object.create||function(){function r(){}return function(t){if(arguments.length!==1)throw new Error("Object.create shim only accepts one parameter.");return r.prototype=t,new r}}();ParsingError.prototype=_objCreate(Error.prototype),ParsingError.prototype.constructor=ParsingError,ParsingError.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},Settings.prototype={set:function(r,t){this.get(r)||t===""||(this.values[r]=t)},get:function(r,t,e){return e?this.has(r)?this.values[r]:t[e]:this.has(r)?this.values[r]:t},has:function(r){return r in this.values},alt:function(r,t,e){for(var n=0;n<e.length;++n)if(t===e[n]){this.set(r,t);break}},integer:function(r,t){/^-?\d+$/.test(t)&&this.set(r,parseInt(t,10))},percent:function(r,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(r,t),!0)}};var ESCAPE={"&":"&","<":"<",">":">","‎":"","‏":""," ":" "},TAG_NAME={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},TAG_ANNOTATION={v:"title",lang:"lang"},NEEDS_PARENT={rt:"ruby"},strongRTLRanges=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];StyleBox.prototype.applyStyles=function(r,t){t=t||this.div;for(var e in r)r.hasOwnProperty(e)&&(t.style[e]=r[e])},StyleBox.prototype.formatStyle=function(r,t){return r===0?0:r+t},CueStyleBox.prototype=_objCreate(StyleBox.prototype),CueStyleBox.prototype.constructor=CueStyleBox,BoxPosition.prototype.move=function(r,t){switch(t=t!==void 0?t:this.lineHeight,r){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},BoxPosition.prototype.overlaps=function(r){return this.left<r.right&&this.right>r.left&&this.top<r.bottom&&this.bottom>r.top},BoxPosition.prototype.overlapsAny=function(r){for(var t=0;t<r.length;t++)if(this.overlaps(r[t]))return!0;return!1},BoxPosition.prototype.within=function(r){return this.top>=r.top&&this.bottom<=r.bottom&&this.left>=r.left&&this.right<=r.right},BoxPosition.prototype.overlapsOppositeAxis=function(r,t){switch(t){case"+x":return this.left<r.left;case"-x":return this.right>r.right;case"+y":return this.top<r.top;case"-y":return this.bottom>r.bottom}},BoxPosition.prototype.intersectPercentage=function(r){return Math.max(0,Math.min(this.right,r.right)-Math.max(this.left,r.left))*Math.max(0,Math.min(this.bottom,r.bottom)-Math.max(this.top,r.top))/(this.height*this.width)},BoxPosition.prototype.toCSSCompatValues=function(r){return{top:this.top-r.top,bottom:r.bottom-this.bottom,left:this.left-r.left,right:r.right-this.right,height:this.height,width:this.width}},BoxPosition.getSimpleBoxPosition=function(r){var t=r.div?r.div.offsetHeight:r.tagName?r.offsetHeight:0,e=r.div?r.div.offsetWidth:r.tagName?r.offsetWidth:0,n=r.div?r.div.offsetTop:r.tagName?r.offsetTop:0;return r=r.div?r.div.getBoundingClientRect():r.tagName?r.getBoundingClientRect():r,{left:r.left,right:r.right,top:r.top||n,height:r.height||t,bottom:r.bottom||n+(r.height||t),width:r.width||e}},WebVTT$1.StringDecoder=function(){return{decode:function(r){if(!r)return"";if(typeof r!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(r))}}},WebVTT$1.convertCueToDOMTree=function(r,t){return r&&t?parseContent(r,t):null},WebVTT$1.processCues=function(r,t,e){if(!r||!t||!e)return null;for(;e.firstChild;)e.removeChild(e.firstChild);var n=r.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",e.appendChild(n),function(h){for(var p=0;p<h.length;p++)if(h[p].hasBeenReset||!h[p].displayState)return!0;return!1}(t)){var s=[],a=BoxPosition.getSimpleBoxPosition(n),l=Math.round(.05*a.height*100)/100,u={font:l+"px sans-serif"};(function(){for(var h,p,g=0;g<t.length;g++)p=t[g],h=new CueStyleBox(r,p,u),n.appendChild(h.div),moveBoxToLinePosition(r,h,a,s),p.displayState=h.div,s.push(BoxPosition.getSimpleBoxPosition(h))})()}else for(var c=0;c<t.length;c++)n.appendChild(t[c].displayState)},WebVTT$1.Parser=function(r,t,e){e||(e=t,t={}),t||(t={}),this.window=r,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=e||new TextDecoder("utf8"),this.regionList=[]},WebVTT$1.Parser.prototype={reportOrThrowError:function(r){if(!(r instanceof ParsingError))throw r;this.onparsingerror&&this.onparsingerror(r)},parse:function(r){function t(){for(var h=s.buffer,p=0;p<h.length&&h[p]!=="\r"&&h[p]!==`
|
|
17
|
+
`;)++p;var g=h.substr(0,p);return h[p]==="\r"&&++p,h[p]===`
|
|
18
|
+
`&&++p,s.buffer=h.substr(p),g}function e(h){var p=new Settings;if(parseOptions(h,function(v,y){switch(v){case"id":p.set(v,y);break;case"width":p.percent(v,y);break;case"lines":p.integer(v,y);break;case"regionanchor":case"viewportanchor":var _=y.split(",");if(_.length!==2)break;var b=new Settings;if(b.percent("x",_[0]),b.percent("y",_[1]),!b.has("x")||!b.has("y"))break;p.set(v+"X",b.get("x")),p.set(v+"Y",b.get("y"));break;case"scroll":p.alt(v,y,["up"])}},/=/,/\s/),p.has("id")){var g=new(s.vttjs.VTTRegion||s.window.VTTRegion);g.width=p.get("width",100),g.lines=p.get("lines",3),g.regionAnchorX=p.get("regionanchorX",0),g.regionAnchorY=p.get("regionanchorY",100),g.viewportAnchorX=p.get("viewportanchorX",0),g.viewportAnchorY=p.get("viewportanchorY",100),g.scroll=p.get("scroll",""),s.onregion&&s.onregion(g),s.regionList.push({id:p.get("id"),region:g})}}function n(h){var p=new Settings;parseOptions(h,function(g,v){switch(g){case"MPEGT":p.integer(g+"S",v);break;case"LOCA":p.set(g+"L",parseTimeStamp(v))}},/[^\d]:/,/,/),s.ontimestampmap&&s.ontimestampmap({MPEGTS:p.get("MPEGTS"),LOCAL:p.get("LOCAL")})}var s=this;r&&(s.buffer+=s.decoder.decode(r,{stream:!0}));try{var a;if(s.state==="INITIAL"){if(!/\r\n|\n/.test(s.buffer))return this;a=t();var l=a.match(/^WEBVTT([ \t].*)?$/);if(!l||!l[0])throw new ParsingError(ParsingError.Errors.BadSignature);s.state="HEADER"}for(var u=!1;s.buffer;){if(!/\r\n|\n/.test(s.buffer))return this;switch(u?u=!1:a=t(),s.state){case"HEADER":/:/.test(a)?function(h){h.match(/X-TIMESTAMP-MAP/)?parseOptions(h,function(p,g){switch(p){case"X-TIMESTAMP-MAP":n(g)}},/=/):parseOptions(h,function(p,g){switch(p){case"Region":e(g)}},/:/)}(a):a||(s.state="ID");continue;case"NOTE":a||(s.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(a)){s.state="NOTE";break}if(!a)continue;if(s.cue=new(s.vttjs.VTTCue||s.window.VTTCue)(0,0,""),s.state="CUE",a.indexOf("-->")===-1){s.cue.id=a;continue}case"CUE":try{parseCue(a,s.cue,s.regionList)}catch(h){s.reportOrThrowError(h),s.cue=null,s.state="BADCUE";continue}s.state="CUETEXT";continue;case"CUETEXT":var c=a.indexOf("-->")!==-1;if(!a||c&&(u=!0)){s.oncue&&s.oncue(s.cue),s.cue=null,s.state="ID";continue}s.cue.text&&(s.cue.text+=`
|
|
19
19
|
`),s.cue.text+=a;continue;case"BADCUE":a||(s.state="ID");continue}}}catch(h){s.reportOrThrowError(h),s.state==="CUETEXT"&&s.cue&&s.oncue&&s.oncue(s.cue),s.cue=null,s.state=s.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var r=this;try{if(r.buffer+=r.decoder.decode(),(r.cue||r.state==="HEADER")&&(r.buffer+=`
|
|
20
20
|
|
|
21
|
-
`,r.parse()),r.state==="INITIAL")throw new ParsingError(ParsingError.Errors.BadSignature)}catch(t){r.reportOrThrowError(t)}return r.onflush&&r.onflush(),this}};var vtt$1=WebVTT$1,autoKeyword="auto",directionSetting={"":!0,lr:!0,rl:!0},alignSetting={start:!0,middle:!0,end:!0,left:!0,right:!0};VTTCue.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var vttcue=VTTCue,scrollSetting={"":!0,up:!0},vttregion=VTTRegion,browserIndex=createCommonjsModule(function(r){var t=r.exports={WebVTT:vtt$1,VTTCue:vttcue,VTTRegion:vttregion};window_1.vttjs=t,window_1.WebVTT=t.WebVTT;var e=t.VTTCue,n=t.VTTRegion,s=window_1.VTTCue,a=window_1.VTTRegion;t.shim=function(){window_1.VTTCue=e,window_1.VTTRegion=n},t.restore=function(){window_1.VTTCue=s,window_1.VTTRegion=a},window_1.VTTCue||t.shim()}),Tech=function(r){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){};classCallCheck(this,t),n.reportTouchActivity=!1;var a=possibleConstructorReturn(this,r.call(this,e,n,s));return a.hasStarted_=!1,a.on("playing",function(){this.hasStarted_=!0}),a.on("loadstart",function(){this.hasStarted_=!1}),ALL.names.forEach(function(l){var u=ALL[l];n&&n[u.getterName]&&(a[u.privateName]=n[u.getterName])}),a.featuresProgressEvents||a.manualProgressOn(),a.featuresTimeupdateEvents||a.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(l){n["native"+l+"Tracks"]===!1&&(a["featuresNative"+l+"Tracks"]=!1)}),n.nativeCaptions===!1||n.nativeTextTracks===!1?a.featuresNativeTextTracks=!1:n.nativeCaptions!==!0&&n.nativeTextTracks!==!0||(a.featuresNativeTextTracks=!0),a.featuresNativeTextTracks||a.emulateTextTracks(),a.autoRemoteTextTracks_=new ALL.text.ListClass,a.initTrackListeners(),n.nativeControlsForTouch||a.emitTapEvents(),a.constructor&&(a.name_=a.constructor.name||"Unknown Tech"),a}return inherits(t,r),t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(bind(this,function(){var n=this.bufferedPercent();this.bufferedPercent_!==n&&this.trigger("progress"),this.bufferedPercent_=n,n===1&&this.stopTrackingProgress()}),500)},t.prototype.onDurationChange=function(e){this.duration_=this.duration()},t.prototype.buffered=function(){return createTimeRanges(0,0)},t.prototype.bufferedPercent=function(){return bufferedPercent(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){this.clearTracks(NORMAL.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),r.prototype.dispose.call(this)},t.prototype.clearTracks=function(e){var n=this;e=[].concat(e),e.forEach(function(s){for(var a=n[s+"Tracks"]()||[],l=a.length;l--;){var u=a[l];s==="text"&&n.removeRemoteTextTrack(u),a.removeTrack(u)}})},t.prototype.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],n=e.length;n--;){var s=e[n];this.removeRemoteTextTrack(s)}},t.prototype.reset=function(){},t.prototype.error=function(e){return e!==void 0&&(this.error_=new MediaError(e),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?createTimeRanges(0,0):createTimeRanges()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTrackListeners=function(){var e=this;NORMAL.names.forEach(function(n){var s=NORMAL[n],a=function(){e.trigger(n+"trackchange")},l=e[s.getterName]();l.addEventListener("removetrack",a),l.addEventListener("addtrack",a),e.on("dispose",function(){l.removeEventListener("removetrack",a),l.removeEventListener("addtrack",a)})})},t.prototype.addWebVttScript_=function(){var e=this;if(!window_1.WebVTT)if(document_1.body.contains(this.el())){if(!this.options_["vtt.js"]&&isPlain(browserIndex)&&Object.keys(browserIndex).length>0)return void this.trigger("vttjsloaded");var n=document_1.createElement("script");n.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",n.onload=function(){e.trigger("vttjsloaded")},n.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){n.onload=null,n.onerror=null}),window_1.WebVTT=!0,this.el().parentNode.appendChild(n)}else this.ready(this.addWebVttScript_)},t.prototype.emulateTextTracks=function(){var e=this,n=this.textTracks(),s=this.remoteTextTracks(),a=function(h){return n.addTrack(h.track)},l=function(h){return n.removeTrack(h.track)};s.on("addtrack",a),s.on("removetrack",l),this.addWebVttScript_();var u=function(){return e.trigger("texttrackchange")},c=function(){u();for(var h=0;h<n.length;h++){var p=n[h];p.removeEventListener("cuechange",u),p.mode==="showing"&&p.addEventListener("cuechange",u)}};c(),n.addEventListener("change",c),n.addEventListener("addtrack",c),n.addEventListener("removetrack",c),this.on("dispose",function(){s.off("addtrack",a),s.off("removetrack",l),n.removeEventListener("change",c),n.removeEventListener("addtrack",c),n.removeEventListener("removetrack",c);for(var h=0;h<n.length;h++)n[h].removeEventListener("cuechange",u)})},t.prototype.addTextTrack=function(e,n,s){if(!e)throw new Error("TextTrack kind is required but was not provided");return createTrackHelper(this,e,n,s)},t.prototype.createRemoteTextTrack=function(e){var n=mergeOptions(e,{tech:this});return new REMOTE.remoteTextEl.TrackClass(n)},t.prototype.addRemoteTextTrack=function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments[1],a=this.createRemoteTextTrack(n);return s!==!0&&s!==!1&&(log$2.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),s=!0),this.remoteTextTrackEls().addTrackElement_(a),this.remoteTextTracks().addTrack(a.track),s!==!0&&this.ready(function(){return e.autoRemoteTextTracks_.addTrack(a.track)}),a},t.prototype.addAudioTrack=function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments[1],a=mergeOptions(n,{tech:this}),l=new NORMAL.audio.TrackClass(a);return this.audioTracks_.addTrack(l),s!==!0&&this.ready(function(){return e.audioTracks_.addTrack(l)}),l},t.prototype.removeRemoteTextTrack=function(e){var n=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(n),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},t.prototype.getVideoPlaybackQuality=function(){return{}},t.prototype.setPoster=function(){},t.prototype.playsinline=function(){},t.prototype.setPlaysinline=function(){},t.prototype.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=toTitleCase(e),t.techs_[e]=n,e!=="Tech"&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return e=toTitleCase(e),t.techs_&&t.techs_[e]?t.techs_[e]:window_1&&window_1.videojs&&window_1.videojs[e]?(log$2.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),window_1.videojs[e]):void 0},t}(Component);ALL.names.forEach(function(r){var t=ALL[r];Tech.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),Tech.prototype.featuresVolumeControl=!0,Tech.prototype.featuresMuteControl=!0,Tech.prototype.featuresFullscreenResize=!1,Tech.prototype.featuresPlaybackRate=!1,Tech.prototype.featuresProgressEvents=!1,Tech.prototype.featuresTimeupdateEvents=!1,Tech.prototype.featuresNativeTextTracks=!1,Tech.withSourceHandlers=function(r){r.registerSourceHandler=function(t,e){var n=r.sourceHandlers;n||(n=r.sourceHandlers=[]),e===void 0&&(e=n.length),n.splice(e,0,t)},r.canPlayType=function(t){for(var e=r.sourceHandlers||[],n=void 0,s=0;s<e.length;s++)if(n=e[s].canPlayType(t))return n;return""},r.selectSourceHandler=function(t,e){for(var n=r.sourceHandlers||[],s=0;s<n.length;s++)if(n[s].canHandleSource(t,e))return n[s];return null},r.canPlaySource=function(t,e){var n=r.selectSourceHandler(t,e);return n?n.canHandleSource(t,e):""},["seekable","duration"].forEach(function(t){var e=this[t];typeof e=="function"&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):e.apply(this,arguments)})},r.prototype),r.prototype.setSource=function(t){var e=r.selectSourceHandler(t,this.options_);e||(r.nativeSourceHandler?e=r.nativeSourceHandler:log$2.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),e!==r.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=e.handleSource(t,this,this.options_),this.on("dispose",this.disposeSourceHandler)},r.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Component.registerComponent("Tech",Tech),Tech.registerTech("Tech",Tech),Tech.defaultTechOrder_=[];var middlewares={},allowedGetters={buffered:1,currentTime:1,duration:1,seekable:1,played:1},allowedSetters={setCurrentTime:1},MimetypesKind={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},getMimetype=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=getFileExtension(r);return MimetypesKind[t.toLowerCase()]||""},filterSource=function r(t){if(Array.isArray(t)){var e=[];t.forEach(function(n){n=r(n),Array.isArray(n)?e=e.concat(n):isObject$1(n)&&e.push(n)}),t=e}else t=typeof t=="string"&&t.trim()?[fixSource({src:t})]:isObject$1(t)&&typeof t.src=="string"&&t.src&&t.src.trim()?[fixSource(t)]:[];return t},fixSource=function(r){if(!r.type){var t=getMimetype(r.src);t&&(r.type=t)}return r},MediaLoader=function(r){function t(e,n,s){classCallCheck(this,t);var a=mergeOptions({createEl:!1},n),l=possibleConstructorReturn(this,r.call(this,e,a,s));if(n.playerOptions.sources&&n.playerOptions.sources.length!==0)e.src(n.playerOptions.sources);else for(var u=0,c=n.playerOptions.techOrder;u<c.length;u++){var h=toTitleCase(c[u]),p=Tech.getTech(h);if(h||(p=Component.getComponent(h)),p&&p.isSupported()){e.loadTech_(h);break}}return l}return inherits(t,r),t}(Component);Component.registerComponent("MediaLoader",MediaLoader);var ClickableComponent=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.emitTapEvents(),s.enable(),s}return inherits(t,r),t.prototype.createEl=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"div",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};n=assign({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},n),e==="button"&&log$2.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),s=assign({role:"button","aria-live":"polite"},s),this.tabIndex_=n.tabIndex;var a=r.prototype.createEl.call(this,e,n,s);return this.createControlTextEl(a),a},t.prototype.dispose=function(){this.controlTextEl_=null,r.prototype.dispose.call(this)},t.prototype.createControlTextEl=function(e){return this.controlTextEl_=createEl("span",{className:"vjs-control-text"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},t.prototype.controlText=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.el();if(e===void 0)return this.controlText_||"Need Text";var s=this.localize(e);this.controlText_=e,textContent(this.controlTextEl_,s),this.nonIconControl||n.setAttribute("title",s)},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+r.prototype.buildCSSClass.call(this)},t.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),typeof this.tabIndex_<"u"&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},t.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),typeof this.tabIndex_<"u"&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},t.prototype.handleClick=function(e){},t.prototype.handleFocus=function(e){on(document_1,"keydown",bind(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(e){e.which===32||e.which===13?(e.preventDefault(),this.trigger("click")):r.prototype.handleKeyPress&&r.prototype.handleKeyPress.call(this,e)},t.prototype.handleBlur=function(e){off(document_1,"keydown",bind(this,this.handleKeyPress))},t}(Component);Component.registerComponent("ClickableComponent",ClickableComponent);var PosterImage=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.update(),e.on("posterchange",bind(s,s.update)),s}return inherits(t,r),t.prototype.dispose=function(){this.player().off("posterchange",this.update),r.prototype.dispose.call(this)},t.prototype.createEl=function(){var e=createEl("div",{className:"vjs-poster",tabIndex:-1});if(!BACKGROUND_SIZE_SUPPORTED){this.fallbackImg_=createEl("img");var n=this.player().height()||parseInt(this.player().el().style.height);this.player().width()||parseInt(this.player().el().style.width),this.fallbackImg_.onload=function(){this.width,this.height>n&&(this.style.maxHeight=n+"px",this.style.width="auto")};var s=createEl("div"),a=createEl("span");a.appendChild(this.fallbackImg_),s.appendChild(a),e.appendChild(s)}return e},t.prototype.update=function(e){var n=this.player().poster();this.setSrc(n),n?this.show():this.hide()},t.prototype.setSrc=function(e){if(this.fallbackImg_)this.fallbackImg_.src=e;else{var n="";e&&(n='url("'+e+'")'),this.el_.style.backgroundImage=n}},t.prototype.handleClick=function(e){this.player_.controls()&&(this.player_.paused()?this.player_.play():this.player_.pause())},t}(ClickableComponent);Component.registerComponent("PosterImage",PosterImage);var darkGray="#222",lightGray="#ccc",fontMap={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'},TextTrackDisplay=function(r){function t(e,n,s){classCallCheck(this,t);var a=possibleConstructorReturn(this,r.call(this,e,n,s));return e.on("loadstart",bind(a,a.toggleDisplay)),e.on("texttrackchange",bind(a,a.updateDisplay)),e.on("loadstart",bind(a,a.preselectTrack)),e.ready(bind(a,function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)return void this.hide();e.on("fullscreenchange",bind(this,this.updateDisplay));for(var l=this.options_.playerOptions.tracks||[],u=0;u<l.length;u++)this.player_.addRemoteTextTrack(l[u],!0);this.preselectTrack()})),a}return inherits(t,r),t.prototype.preselectTrack=function(){for(var e={captions:1,subtitles:1},n=this.player_.textTracks(),s=this.player_.cache_.selectedLanguage,a=void 0,l=void 0,u=void 0,c=0;c<n.length;c++){var h=n[c];s&&s.enabled&&s.language===h.language?h.kind===s.kind?u=h:u||(u=h):s&&!s.enabled?(u=null,a=null,l=null):h.default&&(h.kind!=="descriptions"||a?h.kind in e&&!l&&(l=h):a=h)}u?u.mode="showing":l?l.mode="showing":a&&(a.mode="showing")},t.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},t.prototype.clearDisplay=function(){typeof window_1.WebVTT=="function"&&window_1.WebVTT.processCues(window_1,[],this.el_)},t.prototype.updateDisplay=function(){var e=this.player_.textTracks();this.clearDisplay();for(var n=null,s=null,a=e.length;a--;){var l=e[a];l.mode==="showing"&&(l.kind==="descriptions"?n=l:s=l)}s?(this.getAttribute("aria-live")!=="off"&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):n&&(this.getAttribute("aria-live")!=="assertive"&&this.setAttribute("aria-live","assertive"),this.updateForTrack(n))},t.prototype.updateForTrack=function(e){if(typeof window_1.WebVTT=="function"&&e.activeCues){for(var n=this.player_.textTrackSettings.getValues(),s=[],a=0;a<e.activeCues.length;a++)s.push(e.activeCues[a]);window_1.WebVTT.processCues(window_1,s,this.el_);for(var l=s.length;l--;){var u=s[l];if(u){var c=u.displayState;if(n.color&&(c.firstChild.style.color=n.color),n.textOpacity&&tryUpdateStyle(c.firstChild,"color",constructColor(n.color||"#fff",n.textOpacity)),n.backgroundColor&&(c.firstChild.style.backgroundColor=n.backgroundColor),n.backgroundOpacity&&tryUpdateStyle(c.firstChild,"backgroundColor",constructColor(n.backgroundColor||"#000",n.backgroundOpacity)),n.windowColor&&(n.windowOpacity?tryUpdateStyle(c,"backgroundColor",constructColor(n.windowColor,n.windowOpacity)):c.style.backgroundColor=n.windowColor),n.edgeStyle&&(n.edgeStyle==="dropshadow"?c.firstChild.style.textShadow="2px 2px 3px "+darkGray+", 2px 2px 4px "+darkGray+", 2px 2px 5px "+darkGray:n.edgeStyle==="raised"?c.firstChild.style.textShadow="1px 1px "+darkGray+", 2px 2px "+darkGray+", 3px 3px "+darkGray:n.edgeStyle==="depressed"?c.firstChild.style.textShadow="1px 1px "+lightGray+", 0 1px "+lightGray+", -1px -1px "+darkGray+", 0 -1px "+darkGray:n.edgeStyle==="uniform"&&(c.firstChild.style.textShadow="0 0 4px "+darkGray+", 0 0 4px "+darkGray+", 0 0 4px "+darkGray+", 0 0 4px "+darkGray)),n.fontPercent&&n.fontPercent!==1){var h=window_1.parseFloat(c.style.fontSize);c.style.fontSize=h*n.fontPercent+"px",c.style.height="auto",c.style.top="auto",c.style.bottom="2px"}n.fontFamily&&n.fontFamily!=="default"&&(n.fontFamily==="small-caps"?c.firstChild.style.fontVariant="small-caps":c.firstChild.style.fontFamily=fontMap[n.fontFamily])}}}},t}(Component);Component.registerComponent("TextTrackDisplay",TextTrackDisplay);var LoadingSpinner=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},t}(Component);Component.registerComponent("LoadingSpinner",LoadingSpinner);var Button=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};e="button",n=assign({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},n),s=assign({type:"button","aria-live":"polite"},s);var a=Component.prototype.createEl.call(this,e,n,s);return this.createControlTextEl(a),a},t.prototype.addChild=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.constructor.name;return log$2.warn("Adding an actionable (user controllable) child to a Button ("+s+") is not supported; use a ClickableComponent instead."),Component.prototype.addChild.call(this,e,n)},t.prototype.enable=function(){r.prototype.enable.call(this),this.el_.removeAttribute("disabled")},t.prototype.disable=function(){r.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},t.prototype.handleKeyPress=function(e){e.which!==32&&e.which!==13&&r.prototype.handleKeyPress.call(this,e)},t}(ClickableComponent);Component.registerComponent("Button",Button);var BigPlayButton=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.mouseused_=!1,s.on("mousedown",s.handleMouseDown),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(e){var n=this.player_.play();if(!(this.mouseused_&&e.clientX&&e.clientY)){var s=this.player_.getChild("controlBar"),a=s&&s.getChild("playToggle");if(!a)return void this.player_.focus();var l=function(){return a.focus()};isPromise(n)?n.then(l,function(){}):this.setTimeout(l,1)}},t.prototype.handleKeyPress=function(e){this.mouseused_=!1,r.prototype.handleKeyPress.call(this,e)},t.prototype.handleMouseDown=function(e){this.mouseused_=!0},t}(Button);BigPlayButton.prototype.controlText_="Play Video",Component.registerComponent("BigPlayButton",BigPlayButton);var CloseButton=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.controlText(n&&n.controlText||s.localize("Close")),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-close-button "+r.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t}(Button);Component.registerComponent("CloseButton",CloseButton);var PlayToggle=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.on(e,"play",s.handlePlay),s.on(e,"pause",s.handlePause),s.on(e,"ended",s.handleEnded),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-play-control "+r.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},t.prototype.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.prototype.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t.prototype.handleEnded=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},t}(Button);PlayToggle.prototype.controlText_="Play",Component.registerComponent("PlayToggle",PlayToggle);var TimeDisplay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.throttledUpdateContent=throttle(bind(s,s.updateContent),25),s.on(e,"timeupdate",s.throttledUpdateContent),s}return inherits(t,r),t.prototype.createEl=function(e){var n=this.buildCSSClass(),s=r.prototype.createEl.call(this,"div",{className:n+" vjs-time-control vjs-control"});return this.contentEl_=createEl("div",{className:n+"-display"},{"aria-live":"off"},createEl("span",{className:"vjs-control-text",textContent:this.localize(this.controlText_)})),this.updateTextNode_(),s.appendChild(this.contentEl_),s},t.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,r.prototype.dispose.call(this)},t.prototype.updateTextNode_=function(){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=document_1.createTextNode(this.formattedTime_||"0:00"),this.contentEl_.appendChild(this.textNode_)}},t.prototype.formatTime_=function(e){return formatTime(e)},t.prototype.updateFormattedTime_=function(e){var n=this.formatTime_(e);n!==this.formattedTime_&&(this.formattedTime_=n,this.requestAnimationFrame(this.updateTextNode_))},t.prototype.updateContent=function(e){},t}(Component);TimeDisplay.prototype.controlText_="Time",Component.registerComponent("TimeDisplay",TimeDisplay);var CurrentTimeDisplay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.on(e,"ended",s.handleEnded),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-current-time"},t.prototype.updateContent=function(e){var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(n)},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},t}(TimeDisplay);CurrentTimeDisplay.prototype.controlText_="Current Time",Component.registerComponent("CurrentTimeDisplay",CurrentTimeDisplay);var DurationDisplay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.on(e,"durationchange",s.updateContent),s.on(e,"loadedmetadata",s.throttledUpdateContent),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-duration"},t.prototype.updateContent=function(e){var n=this.player_.duration();n&&this.duration_!==n&&(this.duration_=n,this.updateFormattedTime_(n))},t}(TimeDisplay);DurationDisplay.prototype.controlText_="Duration Time",Component.registerComponent("DurationDisplay",DurationDisplay);var TimeDivider=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},t}(Component);Component.registerComponent("TimeDivider",TimeDivider);var RemainingTimeDisplay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.on(e,"durationchange",s.throttledUpdateContent),s.on(e,"ended",s.handleEnded),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-remaining-time"},t.prototype.formatTime_=function(e){return"-"+r.prototype.formatTime_.call(this,e)},t.prototype.updateContent=function(e){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(0)},t}(TimeDisplay);RemainingTimeDisplay.prototype.controlText_="Remaining Time",Component.registerComponent("RemainingTimeDisplay",RemainingTimeDisplay);var LiveDisplay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.isLoadedMetaData=!1,s.hide(),s.on(s.player(),"durationchange",s.onDurationChange),s.on(s.player(),"loadedmetadata",s.onLoadMetadata),e.on("loadnewvideo",videojs.bind(s,s.resetStatus)),s}return inherits(t,r),t.prototype.createEl=function(){var e=r.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"</span>"+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},t.prototype.dispose=function(){this.contentEl_=null,r.prototype.dispose.call(this)},t.prototype.resetStatus=function(){this.setStatus(!1)},t.prototype.onDurationChange=function(){this.isLoadedMetaData&&this.update()},t.prototype.onLoadMetadata=function(){this.setStatus(!0),this.update()},t.prototype.setStatus=function(e){this.isLoadedMetaData=e},t.prototype.update=function(){this.player().duration()===1/0?this.show():this.hide()},t}(Component);Component.registerComponent("LiveDisplay",LiveDisplay);var Slider=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.bar=s.getChild(s.options_.barName),s.vertical(!!s.options_.vertical),s.enable(),s}return inherits(t,r),t.prototype.enabled=function(){return this.enabled_},t.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},t.prototype.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},t.prototype.createEl=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n.className=n.className+" vjs-slider",n=assign({tabIndex:0},n),s=assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},s),r.prototype.createEl.call(this,e,n,s)},t.prototype.handleMouseDown=function(e){var n=this.bar.el_.ownerDocument;e.preventDefault(),blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(n,"mousemove",this.handleMouseMove),this.on(n,"mouseup",this.handleMouseUp),this.on(n,"touchmove",this.handleMouseMove),this.on(n,"touchend",this.handleMouseUp),this.handleMouseMove(e)},t.prototype.handleMouseMove=function(e){},t.prototype.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;unblockTextSelection(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},t.prototype.update=function(){if(this.el_){var e=this.getPercent(),n=this.bar;if(n){(typeof e!="number"||e!==e||e<0||e===1/0)&&(e=0);var s=(100*e).toFixed(2)+"%",a=n.el().style;return this.vertical()?a.height=s:a.width=s,e}}},t.prototype.calculateDistance=function(e){var n=getPointerPosition(this.el_,e);return this.vertical()?n.y:n.x},t.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(e){e.which===37||e.which===40?(e.preventDefault(),this.stepBack()):e.which!==38&&e.which!==39||(e.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},t.prototype.vertical=function(e){if(e===void 0)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(Component);Component.registerComponent("Slider",Slider);var LoadProgressBar=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.partEls_=[],s.on(e,"progress",s.update),s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},t.prototype.dispose=function(){this.partEls_=null,r.prototype.dispose.call(this)},t.prototype.update=function(e){var n=this.player_.buffered(),s=this.player_.duration(),a=this.player_.bufferedEnd(),l=this.partEls_,u=function(f,g){var v=f/g||0;return 100*(v>=1?1:v)+"%"};this.el_.style.width=u(a,s);for(var c=0;c<n.length;c++){var h=n.start(c),p=n.end(c),m=l[c];m||(m=this.el_.appendChild(createEl()),l[c]=m),m.style.left=u(h,a),m.style.width=u(p-h,a)}for(var b=l.length;b>n.length;b--)this.el_.removeChild(l[b-1]);l.length=n.length},t}(Component);Component.registerComponent("LoadProgressBar",LoadProgressBar);var TimeTooltip=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},t.prototype.update=function(e,n,s){var a=getBoundingClientRect(this.el_),l=getBoundingClientRect(this.player_.el()),u=e.width*n;if(l&&a){var c=e.left-l.left+u,h=e.width-u+(l.right-e.right),p=a.width/2;c<p?p+=p-c:h<p&&(p=h),p<0?p=0:p>a.width&&(p=a.width),this.el_.style.right="-"+p+"px",textContent(this.el_,s)}},t}(Component);Component.registerComponent("TimeTooltip",TimeTooltip);var PlayProgressBar=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},t.prototype.update=function(e,n){var s=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var a=s.player_.scrubbing()?s.player_.getCache().currentTime:s.player_.currentTime(),l=formatTime(a,s.player_.duration()),u=s.getChild("timeTooltip");u&&u.update(e,n,l)})},t}(Component);PlayProgressBar.prototype.options_={children:[]},IE_VERSION&&!(IE_VERSION>8)||IS_IOS||IS_ANDROID||PlayProgressBar.prototype.options_.children.push("timeTooltip"),Component.registerComponent("PlayProgressBar",PlayProgressBar);var MouseTimeDisplay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.update=throttle(bind(s,s.update),25),s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.update=function(e,n){var s=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var a=s.player_.duration(),l=formatTime(n*a,a);s.el_.style.left=e.width*n+"px",s.getChild("timeTooltip").update(e,n,l)})},t}(Component);MouseTimeDisplay.prototype.options_={children:["timeTooltip"]},Component.registerComponent("MouseTimeDisplay",MouseTimeDisplay);var STEP_SECONDS=5,UPDATE_REFRESH_INTERVAL=30,SeekBar=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.update=throttle(bind(s,s.update),UPDATE_REFRESH_INTERVAL),s.on(e,"timeupdate",s.update),s.on(e,"ended",s.handleEnded),s.updateInterval=null,s.on(e,["playing"],function(){s.clearInterval(s.updateInterval),s.updateInterval=s.setInterval(function(){s.requestAnimationFrame(function(){s.update()})},UPDATE_REFRESH_INTERVAL)}),s.on(e,["ended","pause","waiting"],function(){s.clearInterval(s.updateInterval)}),s.on(e,["timeupdate","ended"],s.update),s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update_=function(e,n){var s=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*n).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[formatTime(e,s),formatTime(s,s)],"{1} of {2}")),this.bar.update(getBoundingClientRect(this.el_),n)},t.prototype.update=function(e){var n=r.prototype.update.call(this);return this.update_(this.getCurrentTime_(),n),n},t.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},t.prototype.handleEnded=function(e){this.update_(this.player_.duration(),1)},t.prototype.getPercent=function(){var e=this.getCurrentTime_()/this.player_.duration();return e>=1?1:e},t.prototype.handleMouseDown=function(e){isSingleLeftClick(e)&&(this.player_.trigger("beforeseek"),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),r.prototype.handleMouseDown.call(this,e))},t.prototype.handleMouseMove=function(e){if(isSingleLeftClick(e)){var n=this.calculateDistance(e)*this.player_.duration();n===this.player_.duration()&&(n-=.1),this.player_.currentTime(n)}},t.prototype.enable=function(){r.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()},t.prototype.disable=function(){r.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()},t.prototype.handleMouseUp=function(e){r.prototype.handleMouseUp.call(this,e),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&silencePromise(this.player_.play())},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+STEP_SECONDS)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-STEP_SECONDS)},t.prototype.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleKeyPress=function(e){e.which===32||e.which===13?(e.preventDefault(),this.handleAction(e)):r.prototype.handleKeyPress&&r.prototype.handleKeyPress.call(this,e)},t}(Slider);SeekBar.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},IE_VERSION&&!(IE_VERSION>8)||IS_IOS||IS_ANDROID||SeekBar.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),SeekBar.prototype.playerEvent="timeupdate",Component.registerComponent("SeekBar",SeekBar);var ProgressControl=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.handleMouseMove=throttle(bind(s,s.handleMouseMove),25),s.throttledHandleMouseSeek=throttle(bind(s,s.handleMouseSeek),25),s.enable(),s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.prototype.handleMouseMove=function(e){var n=this.getChild("seekBar"),s=n.getChild("mouseTimeDisplay"),a=n.el(),l=getBoundingClientRect(a),u=getPointerPosition(a,e).x;u>1?u=1:u<0&&(u=0),s&&s.update(l,u)},t.prototype.handleMouseSeek=function(e){this.getChild("seekBar").handleMouseMove(e)},t.prototype.enabled=function(){return this.enabled_},t.prototype.disable=function(){this.children().forEach(function(e){return e.disable&&e.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},t.prototype.enable=function(){this.children().forEach(function(e){return e.enable&&e.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},t.prototype.handleMouseDown=function(e){var n=this.el_.ownerDocument;this.on(n,"mousemove",this.throttledHandleMouseSeek),this.on(n,"touchmove",this.throttledHandleMouseSeek),this.on(n,"mouseup",this.handleMouseUp),this.on(n,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var n=this.el_.ownerDocument;this.off(n,"mousemove",this.throttledHandleMouseSeek),this.off(n,"touchmove",this.throttledHandleMouseSeek),this.off(n,"mouseup",this.handleMouseUp),this.off(n,"touchend",this.handleMouseUp)},t}(Component);ProgressControl.prototype.options_={children:["seekBar"]},Component.registerComponent("ProgressControl",ProgressControl);var FullscreenToggle=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.on(e,"fullscreenchange",s.handleFullscreenChange),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+r.prototype.buildCSSClass.call(this)},t.prototype.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.prototype.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(Button);FullscreenToggle.prototype.controlText_="Fullscreen",Component.registerComponent("FullscreenToggle",FullscreenToggle);var checkVolumeSupport=function(r,t){!t.tech_||t.tech_.featuresVolumeControl||t.tech_.featuresMuteControl?t.tech_&&t.tech_.featuresVolumeControl&&r.addClass("enable-volume-control"):r.addClass("vjs-hidden"),r.on(t,"loadstart",function(){t.tech_.featuresVolumeControl||t.tech_.featuresMuteControl?t.tech_.featuresVolumeControl&&(r.removeClass("vjs-hidden"),r.addClass("enable-volume-control")):r.addClass("vjs-hidden")})},VolumeLevel=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(Component);Component.registerComponent("VolumeLevel",VolumeLevel);var VolumeBar=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.on("slideractive",s.updateLastVolume_),s.on(e,"volumechange",s.updateARIAAttributes),e.ready(function(){return s.updateARIAAttributes()}),s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},t.prototype.handleMouseDown=function(e){isSingleLeftClick(e)&&r.prototype.handleMouseDown.call(this,e)},t.prototype.handleMouseMove=function(e){isSingleLeftClick(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(e){var n=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",n),this.el_.setAttribute("aria-valuetext",n+"%")},t.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},t.prototype.updateLastVolume_=function(){var e=this,n=this.player_.volume();this.one("sliderinactive",function(){e.player_.volume()===0&&e.player_.lastVolume_(n)})},t}(Slider);VolumeBar.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},VolumeBar.prototype.playerEvent="volumechange",Component.registerComponent("VolumeBar",VolumeBar);var VolumeControl=function(r){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t),n.vertical=n.vertical||!1,(typeof n.volumeBar>"u"||isPlain(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical);var s=possibleConstructorReturn(this,r.call(this,e,n));return checkVolumeSupport(s,e),s.throttledHandleMouseMove=throttle(bind(s,s.handleMouseMove),25),s.on("mousedown",s.handleMouseDown),s.on("touchstart",s.handleMouseDown),s.on(s.volumeBar,["focus","slideractive"],function(){s.volumeBar.addClass("vjs-slider-active"),s.addClass("vjs-slider-active"),s.trigger("slideractive")}),s.on(s.volumeBar,["blur","sliderinactive"],function(){s.volumeBar.removeClass("vjs-slider-active"),s.removeClass("vjs-slider-active"),s.trigger("sliderinactive")}),s}return inherits(t,r),t.prototype.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),r.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},t.prototype.handleMouseDown=function(e){var n=this.el_.ownerDocument;this.on(n,"mousemove",this.throttledHandleMouseMove),this.on(n,"touchmove",this.throttledHandleMouseMove),this.on(n,"mouseup",this.handleMouseUp),this.on(n,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var n=this.el_.ownerDocument;this.off(n,"mousemove",this.throttledHandleMouseMove),this.off(n,"touchmove",this.throttledHandleMouseMove),this.off(n,"mouseup",this.handleMouseUp),this.off(n,"touchend",this.handleMouseUp)},t.prototype.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(Component);VolumeControl.prototype.options_={children:["volumeBar"]},Component.registerComponent("VolumeControl",VolumeControl);var MuteToggle=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return checkVolumeSupport(s,e),s.on(e,["loadstart","volumechange"],s.update),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+r.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){var n=this.player_.volume(),s=this.player_.lastVolume_();if(n===0){var a=s<.1?.1:s;this.player_.volume(a),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},t.prototype.update=function(e){this.updateIcon_(),this.updateControlText_()},t.prototype.updateIcon_=function(){var e=this.player_.volume(),n=3;e===0||this.player_.muted()?n=0:e<.33?n=1:e<.67&&(n=2);for(var s=0;s<4;s++)removeClass(this.el_,"vjs-vol-"+s);addClass(this.el_,"vjs-vol-"+n)},t.prototype.updateControlText_=function(){var e=this.player_.muted()||this.player_.volume()===0,n=e?"Unmute":"Mute";this.controlText()!==n&&this.controlText(n)},t}(Button);MuteToggle.prototype.controlText_="Mute",Component.registerComponent("MuteToggle",MuteToggle);var VolumePanel=function(r){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t),typeof n.inline<"u"?n.inline=n.inline:n.inline=!0,(typeof n.volumeControl>"u"||isPlain(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline);var s=possibleConstructorReturn(this,r.call(this,e,n));return checkVolumeSupport(s,e),s.on(s.volumeControl,["slideractive"],s.sliderActive_),s.on(s.muteToggle,"focus",s.sliderActive_),s.on(s.volumeControl,["sliderinactive"],s.sliderInactive_),s.on(s.muteToggle,"blur",s.sliderInactive_),s}return inherits(t,r),t.prototype.sliderActive_=function(){IS_ANDROID||IS_IOS||this.addClass("vjs-slider-active")},t.prototype.sliderInactive_=function(){IS_ANDROID||IS_IOS||this.removeClass("vjs-slider-active")},t.prototype.createEl=function(){var e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),r.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+e})},t}(Component);VolumePanel.prototype.options_={children:["muteToggle","volumeControl"]},Component.registerComponent("VolumePanel",VolumePanel);var Menu=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return n&&(s.menuButton_=n.menuButton),s.focusedChild_=-1,s.on("keydown",s.handleKeyPress),s}return inherits(t,r),t.prototype.addItem=function(e){this.addChild(e),e.on("click",bind(this,function(n){this.menuButton_&&(this.menuButton_.unpressButton(),e.name()!=="CaptionSettingsMenuItem"&&this.menuButton_.focus())}))},t.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=createEl(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=r.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),on(n,"click",function(s){s.preventDefault(),s.stopImmediatePropagation()}),n},t.prototype.dispose=function(){this.contentEl_=null,r.prototype.dispose.call(this)},t.prototype.handleKeyPress=function(e){e.which===37||e.which===40?(e.preventDefault(),this.stepForward()):e.which!==38&&e.which!==39||(e.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var e=0;this.focusedChild_!==void 0&&(e=this.focusedChild_+1),this.focus(e)},t.prototype.stepBack=function(){var e=0;this.focusedChild_!==void 0&&(e=this.focusedChild_-1),this.focus(e)},t.prototype.focus=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=this.children().slice();n.length&&n[0].className&&/vjs-menu-title/.test(n[0].className)&&n.shift(),n.length>0&&(e<0?e=0:e>=n.length&&(e=n.length-1),this.focusedChild_=e,n[e].el_.focus())},t}(Component);Component.registerComponent("Menu",Menu);var MenuButton=function(r){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));s.menuButton_=new Button(e,n),s.menuButton_.controlText(s.controlText_),s.menuButton_.el_.setAttribute("aria-haspopup","true");var a=Button.prototype.buildCSSClass();return s.menuButton_.el_.className=s.buildCSSClass()+" "+a,s.menuButton_.removeClass("vjs-control"),s.addChild(s.menuButton_),s.update(),s.enabled_=!0,s.on(s.menuButton_,"tap",s.handleClick),s.on(s.menuButton_,"click",s.handleClick),s.on(s.menuButton_,"focus",s.handleFocus),s.on(s.menuButton_,"blur",s.handleBlur),s.on("keydown",s.handleSubmenuKeyPress),s}return inherits(t,r),t.prototype.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},t.prototype.createMenu=function(){var e=new Menu(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var n=createEl("li",{className:"vjs-menu-title",innerHTML:toTitleCase(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,e.children_.unshift(n),prependTo(n,e.contentEl())}if(this.items=this.createItems(),this.items)for(var s=0;s<this.items.length;s++)e.addItem(this.items[s]);return e},t.prototype.createItems=function(){},t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},t.prototype.buildWrapperCSSClass=function(){var e="vjs-menu-button";return this.options_.inline===!0?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+Button.prototype.buildCSSClass()+" "+r.prototype.buildCSSClass.call(this)},t.prototype.buildCSSClass=function(){var e="vjs-menu-button";return this.options_.inline===!0?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+r.prototype.buildCSSClass.call(this)},t.prototype.controlText=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(e,n)},t.prototype.handleClick=function(e){this.one(this.menu.contentEl(),"mouseleave",bind(this,function(n){this.unpressButton(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.focus=function(){this.menuButton_.focus()},t.prototype.blur=function(){this.menuButton_.blur()},t.prototype.handleFocus=function(){on(document_1,"keydown",bind(this,this.handleKeyPress))},t.prototype.handleBlur=function(){off(document_1,"keydown",bind(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(e){e.which===27||e.which===9?(this.buttonPressed_&&this.unpressButton(),e.which!==9&&(e.preventDefault(),this.menuButton_.el_.focus())):e.which!==38&&e.which!==40||this.buttonPressed_||(this.pressButton(),e.preventDefault())},t.prototype.handleSubmenuKeyPress=function(e){e.which!==27&&e.which!==9||(this.buttonPressed_&&this.unpressButton(),e.which!==9&&(e.preventDefault(),this.menuButton_.el_.focus()))},t.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),IS_IOS&&isInFrame())return;this.menu.focus()}},t.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},t.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},t.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(Component);Component.registerComponent("MenuButton",MenuButton);var TrackButton=function(r){function t(e,n){classCallCheck(this,t);var s=n.tracks,a=possibleConstructorReturn(this,r.call(this,e,n));if(a.items.length<=1&&a.hide(),!s)return possibleConstructorReturn(a);var l=bind(a,a.update);return s.addEventListener("removetrack",l),s.addEventListener("addtrack",l),a.player_.on("ready",l),a.player_.on("dispose",function(){s.removeEventListener("removetrack",l),s.removeEventListener("addtrack",l)}),a}return inherits(t,r),t}(MenuButton);Component.registerComponent("TrackButton",TrackButton);var MenuItem=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.selectable=n.selectable,s.selected(n.selected),s.selectable?s.el_.setAttribute("role","menuitemcheckbox"):s.el_.setAttribute("role","menuitem"),s}return inherits(t,r),t.prototype.createEl=function(e,n,s){return this.nonIconControl=!0,r.prototype.createEl.call(this,"li",assign({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},n),s)},t.prototype.handleClick=function(e){this.selected(!0)},t.prototype.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText("")))},t}(ClickableComponent);Component.registerComponent("MenuItem",MenuItem);var TextTrackMenuItem=function(r){function t(e,n){classCallCheck(this,t);var s=n.track,a=e.textTracks();n.label=s.label||s.language||"Unknown",n.selected=s.mode==="showing";var l=possibleConstructorReturn(this,r.call(this,e,n));l.track=s;var u=function(){for(var p=arguments.length,m=Array(p),b=0;b<p;b++)m[b]=arguments[b];l.handleTracksChange.apply(l,m)},c=function(){for(var p=arguments.length,m=Array(p),b=0;b<p;b++)m[b]=arguments[b];l.handleSelectedLanguageChange.apply(l,m)};if(e.on(["loadstart","texttrackchange"],u),a.addEventListener("change",u),a.addEventListener("selectedlanguagechange",c),l.on("dispose",function(){e.off(["loadstart","texttrackchange"],u),a.removeEventListener("change",u),a.removeEventListener("selectedlanguagechange",c)}),a.onchange===void 0){var h=void 0;l.on(["tap","click"],function(){if(_typeof(window_1.Event)!=="object")try{h=new window_1.Event("change")}catch{}h||(h=document_1.createEvent("Event"),h.initEvent("change",!0,!0)),a.dispatchEvent(h)})}return l.handleTracksChange(),l}return inherits(t,r),t.prototype.handleClick=function(e){var n=this.track.kind,s=this.track.kinds,a=this.player_.textTracks();if(s||(s=[n]),r.prototype.handleClick.call(this,e),a)for(var l=0;l<a.length;l++){var u=a[l];u===this.track&&s.indexOf(u.kind)>-1?u.mode!=="showing"&&(u.mode="showing"):u.mode!=="disabled"&&(u.mode="disabled")}},t.prototype.handleTracksChange=function(e){this.selected(this.track.mode==="showing")},t.prototype.handleSelectedLanguageChange=function(e){if(this.track.mode==="showing"){var n=this.player_.cache_.selectedLanguage;if(n&&n.enabled&&n.language===this.track.language&&n.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},t.prototype.dispose=function(){this.track=null,r.prototype.dispose.call(this)},t}(MenuItem);Component.registerComponent("TextTrackMenuItem",TextTrackMenuItem);var OffTextTrackMenuItem=function(r){function t(e,n){return classCallCheck(this,t),n.track={player:e,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,possibleConstructorReturn(this,r.call(this,e,n))}return inherits(t,r),t.prototype.handleTracksChange=function(e){for(var n=this.player().textTracks(),s=!0,a=0,l=n.length;a<l;a++){var u=n[a];if(this.options_.kinds.indexOf(u.kind)>-1&&u.mode==="showing"){s=!1;break}}this.selected(s)},t.prototype.handleSelectedLanguageChange=function(e){for(var n=this.player().textTracks(),s=!0,a=0,l=n.length;a<l;a++){var u=n[a];if(["captions","descriptions","subtitles"].indexOf(u.kind)>-1&&u.mode==="showing"){s=!1;break}}s&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(TextTrackMenuItem);Component.registerComponent("OffTextTrackMenuItem",OffTextTrackMenuItem);var TextTrackButton=function(r){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return classCallCheck(this,t),n.tracks=e.textTracks(),possibleConstructorReturn(this,r.call(this,e,n))}return inherits(t,r),t.prototype.createItems=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:TextTrackMenuItem,s=void 0;this.label_&&(s=this.label_+" off"),e.push(new OffTextTrackMenuItem(this.player_,{kinds:this.kinds_,kind:this.kind_,label:s})),this.hideThreshold_+=1;var a=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var l=0;l<a.length;l++){var u=a[l];if(this.kinds_.indexOf(u.kind)>-1){var c=new n(this.player_,{track:u,selectable:!0});c.addClass("vjs-"+u.kind+"-menu-item"),e.push(c)}}return e},t}(TrackButton);Component.registerComponent("TextTrackButton",TextTrackButton);var ChaptersTrackMenuItem=function(r){function t(e,n){classCallCheck(this,t);var s=n.track,a=n.cue,l=e.currentTime();n.selectable=!0,n.label=a.text,n.selected=a.startTime<=l&&l<a.endTime;var u=possibleConstructorReturn(this,r.call(this,e,n));return u.track=s,u.cue=a,s.addEventListener("cuechange",bind(u,u.update)),u}return inherits(t,r),t.prototype.handleClick=function(e){r.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},t.prototype.update=function(e){var n=this.cue,s=this.player_.currentTime();this.selected(n.startTime<=s&&s<n.endTime)},t}(MenuItem);Component.registerComponent("ChaptersTrackMenuItem",ChaptersTrackMenuItem);var ChaptersButton=function(r){function t(e,n,s){return classCallCheck(this,t),possibleConstructorReturn(this,r.call(this,e,n,s))}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-chapters-button "+r.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-chapters-button "+r.prototype.buildWrapperCSSClass.call(this)},t.prototype.update=function(e){this.track_&&(!e||e.type!=="addtrack"&&e.type!=="removetrack")||this.setTrack(this.findChaptersTrack()),r.prototype.update.call(this)},t.prototype.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var s=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);s&&s.addEventListener("load",this.updateHandler_)}}},t.prototype.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],n=e.length-1;n>=0;n--){var s=e[n];if(s.kind===this.kind_)return s}},t.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(toTitleCase(this.kind_))},t.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),r.prototype.createMenu.call(this)},t.prototype.createItems=function(){var e=[];if(!this.track_)return e;var n=this.track_.cues;if(!n)return e;for(var s=0,a=n.length;s<a;s++){var l=n[s],u=new ChaptersTrackMenuItem(this.player_,{track:this.track_,cue:l});e.push(u)}return e},t}(TextTrackButton);ChaptersButton.prototype.kind_="chapters",ChaptersButton.prototype.controlText_="Chapters",Component.registerComponent("ChaptersButton",ChaptersButton);var DescriptionsButton=function(r){function t(e,n,s){classCallCheck(this,t);var a=possibleConstructorReturn(this,r.call(this,e,n,s)),l=e.textTracks(),u=bind(a,a.handleTracksChange);return l.addEventListener("change",u),a.on("dispose",function(){l.removeEventListener("change",u)}),a}return inherits(t,r),t.prototype.handleTracksChange=function(e){for(var n=this.player().textTracks(),s=!1,a=0,l=n.length;a<l;a++){var u=n[a];if(u.kind!==this.kind_&&u.mode==="showing"){s=!0;break}}s?this.disable():this.enable()},t.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+r.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+r.prototype.buildWrapperCSSClass.call(this)},t}(TextTrackButton);DescriptionsButton.prototype.kind_="descriptions",DescriptionsButton.prototype.controlText_="Descriptions",Component.registerComponent("DescriptionsButton",DescriptionsButton);var SubtitlesButton=function(r){function t(e,n,s){return classCallCheck(this,t),possibleConstructorReturn(this,r.call(this,e,n,s))}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+r.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+r.prototype.buildWrapperCSSClass.call(this)},t}(TextTrackButton);SubtitlesButton.prototype.kind_="subtitles",SubtitlesButton.prototype.controlText_="Subtitles",Component.registerComponent("SubtitlesButton",SubtitlesButton);var CaptionSettingsMenuItem=function(r){function t(e,n){classCallCheck(this,t),n.track={player:e,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem";var s=possibleConstructorReturn(this,r.call(this,e,n));return s.addClass("vjs-texttrack-settings"),s.controlText(", opens "+n.kind+" settings dialog"),s}return inherits(t,r),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(TextTrackMenuItem);Component.registerComponent("CaptionSettingsMenuItem",CaptionSettingsMenuItem);var CaptionsButton=function(r){function t(e,n,s){return classCallCheck(this,t),possibleConstructorReturn(this,r.call(this,e,n,s))}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-captions-button "+r.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-captions-button "+r.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||(e.push(new CaptionSettingsMenuItem(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),r.prototype.createItems.call(this,e)},t}(TextTrackButton);CaptionsButton.prototype.kind_="captions",CaptionsButton.prototype.controlText_="Captions",Component.registerComponent("CaptionsButton",CaptionsButton);var SubsCapsMenuItem=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(e,n,s){var a='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return this.options_.track.kind==="captions"&&(a+=`
|
|
21
|
+
`,r.parse()),r.state==="INITIAL")throw new ParsingError(ParsingError.Errors.BadSignature)}catch(t){r.reportOrThrowError(t)}return r.onflush&&r.onflush(),this}};var vtt$1=WebVTT$1,autoKeyword="auto",directionSetting={"":!0,lr:!0,rl:!0},alignSetting={start:!0,middle:!0,end:!0,left:!0,right:!0};VTTCue.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var vttcue=VTTCue,scrollSetting={"":!0,up:!0},vttregion=VTTRegion,browserIndex=createCommonjsModule(function(r){var t=r.exports={WebVTT:vtt$1,VTTCue:vttcue,VTTRegion:vttregion};window_1.vttjs=t,window_1.WebVTT=t.WebVTT;var e=t.VTTCue,n=t.VTTRegion,s=window_1.VTTCue,a=window_1.VTTRegion;t.shim=function(){window_1.VTTCue=e,window_1.VTTRegion=n},t.restore=function(){window_1.VTTCue=s,window_1.VTTRegion=a},window_1.VTTCue||t.shim()}),Tech=function(r){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){};classCallCheck(this,t),n.reportTouchActivity=!1;var a=possibleConstructorReturn(this,r.call(this,e,n,s));return a.hasStarted_=!1,a.on("playing",function(){this.hasStarted_=!0}),a.on("loadstart",function(){this.hasStarted_=!1}),ALL.names.forEach(function(l){var u=ALL[l];n&&n[u.getterName]&&(a[u.privateName]=n[u.getterName])}),a.featuresProgressEvents||a.manualProgressOn(),a.featuresTimeupdateEvents||a.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(l){n["native"+l+"Tracks"]===!1&&(a["featuresNative"+l+"Tracks"]=!1)}),n.nativeCaptions===!1||n.nativeTextTracks===!1?a.featuresNativeTextTracks=!1:n.nativeCaptions!==!0&&n.nativeTextTracks!==!0||(a.featuresNativeTextTracks=!0),a.featuresNativeTextTracks=!1,a.featuresNativeTextTracks||a.emulateTextTracks(),a.autoRemoteTextTracks_=new ALL.text.ListClass,a.initTrackListeners(),n.nativeControlsForTouch||a.emitTapEvents(),a.constructor&&(a.name_=a.constructor.name||"Unknown Tech"),a}return inherits(t,r),t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(bind(this,function(){var n=this.bufferedPercent();this.bufferedPercent_!==n&&this.trigger("progress"),this.bufferedPercent_=n,n===1&&this.stopTrackingProgress()}),500)},t.prototype.onDurationChange=function(e){this.duration_=this.duration()},t.prototype.buffered=function(){return createTimeRanges(0,0)},t.prototype.bufferedPercent=function(){return bufferedPercent(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){this.clearTracks(NORMAL.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),r.prototype.dispose.call(this)},t.prototype.clearTracks=function(e){var n=this;e=[].concat(e),e.forEach(function(s){for(var a=n[s+"Tracks"]()||[],l=a.length;l--;){var u=a[l];s==="text"&&n.removeRemoteTextTrack(u),a.removeTrack(u)}})},t.prototype.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],n=e.length;n--;){var s=e[n];this.removeRemoteTextTrack(s)}},t.prototype.reset=function(){},t.prototype.error=function(e){return e!==void 0&&(this.error_=new MediaError(e),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?createTimeRanges(0,0):createTimeRanges()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTrackListeners=function(){var e=this;NORMAL.names.forEach(function(n){var s=NORMAL[n],a=function(){e.trigger(n+"trackchange")},l=e[s.getterName]();l.addEventListener("removetrack",a),l.addEventListener("addtrack",a),e.on("dispose",function(){l.removeEventListener("removetrack",a),l.removeEventListener("addtrack",a)})})},t.prototype.addWebVttScript_=function(){var e=this;if(!window_1.WebVTT)if(document_1.body.contains(this.el())){if(!this.options_["vtt.js"]&&isPlain(browserIndex)&&Object.keys(browserIndex).length>0)return void this.trigger("vttjsloaded");var n=document_1.createElement("script");n.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",n.onload=function(){e.trigger("vttjsloaded")},n.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){n.onload=null,n.onerror=null}),window_1.WebVTT=!0,this.el().parentNode.appendChild(n)}else this.ready(this.addWebVttScript_)},t.prototype.emulateTextTracks=function(){var e=this,n=this.textTracks(),s=this.remoteTextTracks(),a=function(h){return n.addTrack(h.track)},l=function(h){return n.removeTrack(h.track)};s.on("addtrack",a),s.on("removetrack",l),this.addWebVttScript_();var u=function(){return e.trigger("texttrackchange")},c=function(){u();for(var h=0;h<n.length;h++){var p=n[h];p.removeEventListener("cuechange",u),p.mode==="showing"&&p.addEventListener("cuechange",u)}};c(),n.addEventListener("change",c),n.addEventListener("addtrack",c),n.addEventListener("removetrack",c),this.on("dispose",function(){s.off("addtrack",a),s.off("removetrack",l),n.removeEventListener("change",c),n.removeEventListener("addtrack",c),n.removeEventListener("removetrack",c);for(var h=0;h<n.length;h++)n[h].removeEventListener("cuechange",u)})},t.prototype.addTextTrack=function(e,n,s){if(!e)throw new Error("TextTrack kind is required but was not provided");return createTrackHelper(this,e,n,s)},t.prototype.createRemoteTextTrack=function(e){var n=mergeOptions(e,{tech:this});return new REMOTE.remoteTextEl.TrackClass(n)},t.prototype.addRemoteTextTrack=function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments[1],a=this.createRemoteTextTrack(n);return s!==!0&&s!==!1&&(log$2.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),s=!0),this.remoteTextTrackEls().addTrackElement_(a),this.remoteTextTracks().addTrack(a.track),s!==!0&&this.ready(function(){return e.autoRemoteTextTracks_.addTrack(a.track)}),a},t.prototype.addAudioTrack=function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments[1],a=mergeOptions(n,{tech:this}),l=new NORMAL.audio.TrackClass(a);return this.audioTracks_.addTrack(l),s!==!0&&this.ready(function(){return e.audioTracks_.addTrack(l)}),l},t.prototype.removeRemoteTextTrack=function(e){var n=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(n),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},t.prototype.getVideoPlaybackQuality=function(){return{}},t.prototype.setPoster=function(){},t.prototype.playsinline=function(){},t.prototype.setPlaysinline=function(){},t.prototype.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=toTitleCase(e),t.techs_[e]=n,e!=="Tech"&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return e=toTitleCase(e),t.techs_&&t.techs_[e]?t.techs_[e]:window_1&&window_1.videojs&&window_1.videojs[e]?(log$2.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),window_1.videojs[e]):void 0},t}(Component);ALL.names.forEach(function(r){var t=ALL[r];Tech.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),Tech.prototype.featuresVolumeControl=!0,Tech.prototype.featuresMuteControl=!0,Tech.prototype.featuresFullscreenResize=!1,Tech.prototype.featuresPlaybackRate=!1,Tech.prototype.featuresProgressEvents=!1,Tech.prototype.featuresTimeupdateEvents=!1,Tech.prototype.featuresNativeTextTracks=!1,Tech.withSourceHandlers=function(r){r.registerSourceHandler=function(t,e){var n=r.sourceHandlers;n||(n=r.sourceHandlers=[]),e===void 0&&(e=n.length),n.splice(e,0,t)},r.canPlayType=function(t){for(var e=r.sourceHandlers||[],n=void 0,s=0;s<e.length;s++)if(n=e[s].canPlayType(t))return n;return""},r.selectSourceHandler=function(t,e){for(var n=r.sourceHandlers||[],s=0;s<n.length;s++)if(n[s].canHandleSource(t,e))return n[s];return null},r.canPlaySource=function(t,e){var n=r.selectSourceHandler(t,e);return n?n.canHandleSource(t,e):""},["seekable","duration"].forEach(function(t){var e=this[t];typeof e=="function"&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):e.apply(this,arguments)})},r.prototype),r.prototype.setSource=function(t){var e=r.selectSourceHandler(t,this.options_);e||(r.nativeSourceHandler?e=r.nativeSourceHandler:log$2.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),e!==r.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=e.handleSource(t,this,this.options_),this.on("dispose",this.disposeSourceHandler)},r.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Component.registerComponent("Tech",Tech),Tech.registerTech("Tech",Tech),Tech.defaultTechOrder_=[];var middlewares={},allowedGetters={buffered:1,currentTime:1,duration:1,seekable:1,played:1},allowedSetters={setCurrentTime:1},MimetypesKind={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},getMimetype=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=getFileExtension(r);return MimetypesKind[t.toLowerCase()]||""},filterSource=function r(t){if(Array.isArray(t)){var e=[];t.forEach(function(n){n=r(n),Array.isArray(n)?e=e.concat(n):isObject$1(n)&&e.push(n)}),t=e}else t=typeof t=="string"&&t.trim()?[fixSource({src:t})]:isObject$1(t)&&typeof t.src=="string"&&t.src&&t.src.trim()?[fixSource(t)]:[];return t},fixSource=function(r){if(!r.type){var t=getMimetype(r.src);t&&(r.type=t)}return r},enc=createCommonjsModule(function(module,exports){(function(r,t){module.exports=t()})(self,function(){return function(){function __webpack_require__(r){var t=__webpack_module_cache__[r];if(t!==void 0)return t.exports;var e=__webpack_module_cache__[r]={exports:{}};return __webpack_modules__[r](e,e.exports,__webpack_require__),e.exports}var __webpack_modules__={"./node_modules/@tencent/js-armor-loader/dist/runtime.js":function node_modulesTencentJsArmorLoaderDistRuntimeJs(module){function T(r,t,e,n,s,a,l,u){function c(){return(function(C,I,N){return new(Function.bind.apply(C,I))}).apply(null,arguments)}var h,p=!n,g=(r=+r,t=t||[0],n=n||[[this],[{}]],s=s||{},[]),v=null;Function.prototype.bind||(h=[].slice,Function.prototype.bind=function(C){if(typeof this!="function")throw new TypeError("bind101");var I=h.call(arguments,1),N=I.length,x=this,F=function(){},P=function(){return I.length=N,I.push.apply(I,arguments),x.apply(F.prototype.isPrototypeOf(this)?this:C,I)};return this.prototype&&(F.prototype=this.prototype),P.prototype=new F,P});for(var y=[function(){n[n.length-2]=n[n.length-2]%n.pop()},function(){n.push(t[r++])},function(){for(var C=t[r++],I=[],N=t[r++],x=t[r++],F=[],P=0;P<N;P++)I[t[r++]]=n[t[r++]];for(P=0;P<x;P++)F[P]=t[r++];n.push(function d(){var m=I.slice(0);m[0]=[this],m[1]=[arguments],m[2]=[d];for(var E=0;E<F.length&&E<arguments.length;E++)0<F[E]&&(m[F[E]]=[arguments[E]]);return T(C,t,e,m,s)})},function(){n[n.length-1]=e[n[n.length-1]]},function(){n.push(~n.pop())},function(){n.push([e,n.pop()])},function(){n[n.length-1]+=String.fromCharCode(t[r++])},function(){n[n.length-2]=n[n.length-2]*n.pop()},function(){n.push(null)},function(){v=null},function(){var C=n.pop();n.push([n[n.pop()][0],C])},function(){var C=n.pop();s[C]||(e[C]=e[C](),s[C]=1),n.push(e[C])},function(){n[n.length-2]=n[n.length-2]>=n.pop()},function(){throw n[n.length-1]},function(){n.push(n[n.length-1])},function(){n[n.length-2]=n[n.length-2]==n.pop()},function(){return!0},function(){var C,I=[];for(C in n.pop())I.push(C);n.push(I)},function(){n.push(_typeof(n.pop()))},function(){n.pop()},function(){n[n[n.length-2][0]][0]=n[n.length-1]},function(){var C=n.pop();s[C]||(e[C]=e[C](),s[C]=1),n.push([e,C])},function(){var I=t[r++],C=I?n.slice(-I):[],I=(n.length-=I,C.unshift(null),n.pop());n.push(c(I[0][I[1]],C))},function(){n[n.length-1].length?n.push(n[n.length-1].shift(),!0):n.push(void 0,!1)},function(){var C=t[r++],I=n[n.length-2-C];n[n.length-2-C]=n.pop(),n.push(I)},function(){var C=n[n.length-2];C[0][C[1]]=n[n.length-1]},function(){n[n[n.length-1][0]]=n[n[n.length-1][0]]===void 0?[]:n[n[n.length-1][0]]},function(){n[n.length-2]=n[n.length-2]|n.pop()},function(){n[n.length-2]=n[n.length-2]in n.pop()},function(){n.push(n[t[r++]][0])},function(){n.length-=t[r++]},function(){n[n.length-2]=n[n.length-2]>>>n.pop()},function(){n.push([n.pop(),n.pop()].reverse())},function(){n.push(!0)},function(){var C=t[r++];n[C]=n[C]===void 0?[]:n[C]},function(){n[n.length-2]=n[n.length-2]===n.pop()},function(){var C=t[r++],I=C?n.slice(-C):[];n.length-=C,I.unshift(null),n.push(c(n.pop(),I))},function(){n.push(n[n.pop()[0]][0])},function(){var I=t[r++],C=I?n.slice(-I):[],I=(n.length-=I,n.pop());n.push(I[0][I[1]].apply(I[0],C))},function(){n[n.length-2]=n[n.length-2]/n.pop()},function(){g.pop()},function(){n.push(void 0)},function(){var C=n.pop();n.push(delete C[0][C[1]])},function(){n[n.length-2]=n[n.length-2]<n.pop()},function(){n[n.length-2]=n[n.length-2]<=n.pop()},function(){r=t[r++]},function(){},function(){n[n.length-2]=n[n.length-2]<<n.pop()},function(){n[n.length-2]=n[n.length-2]>n.pop()},function(){return!!v},function(){n[n.length-2]=n[n.length-2]^n.pop()},function(){n[n.length-2]=n[n.length-2]instanceof n.pop()},function(){n[n.length-2]=n[n.length-2]>>n.pop()},function(){n[n.length-2]=n[n.length-2]+n.pop()},function(){n.push(!1)},function(){var C=t[r++],I=C?n.slice(-C):[];n.length-=C,n.push(n.pop().apply(e,I))},function(){n[n.length-2]=n[n.length-2]-n.pop()},function(){n.push(!n.pop())},function(){var C=n.pop(),I=n.pop();n.push([I[0][I[1]],C])},function(){var C=n.pop();n.push(C[0][C[1]])},function(){for(var C=n.pop(),I=t[r++],N=[],x=t[r++],F=t[r++],P=[],d=0;d<x;d++)N[t[r++]]=n[t[r++]];for(d=0;d<F;d++)P[d]=t[r++];var m=function E(){var k=N.slice(0);k[0]=[this],k[1]=[arguments],k[2]=[E];for(var D=0;D<P.length&&D<arguments.length;D++)0<P[D]&&(k[P[D]]=[arguments[D]]);return T(I,t,e,k,s)};m.toString=function(){return C},n.push(m)},function(){g.push([t[r++],n.length,t[r++]])},function(){n.push([t[r++]])},function(){n.push("")},function(){var C=t[r++];n[n.length-1]&&(r=C)},function(){n[n.length-2]=n[n.length-2]&n.pop()},function(){var C=n[n.length-2],I=Object.getOwnPropertyDescriptor(C[0],C[1])||{configurable:!0,enumerable:!0};I.get=n[n.length-1],Object.defineProperty(C[0],C[1],I)},function(){var C=n[n.length-2],I=Object.getOwnPropertyDescriptor(C[0],C[1])||{configurable:!0,enumerable:!0};I.set=n[n.length-1],Object.defineProperty(C[0],C[1],I)},function(){n[n.length-1]=t[r++]},function(){n.length=t[r++]}];;)try{for(var _=!1;!_;)_=y[t[r++]]();if(v)throw v;return p?(n.pop(),n.slice(3+T.v)):n.pop()}catch(C){var b=g.pop();if(b===void 0)throw C;v=C,r=b[0],n.length=b[1],b[2]&&(n[b[2]][0]=v)}}function arrayIndexOf(r,t,e){if(typeof Array.prototype.indexOf=="function")return Array.prototype.indexOf.call(r,t,e);var n,s=o.length;if(s===0)return-1;var a=0|e;if(a>=s)return-1;for(n=Math.max(a>=0?a:s-Math.abs(a),0);n<s;n++)if(n in o&&o[n]===t)return n;return-1}function base64Decode(r){for(var t,e,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),s=String(r).replace(/[=]+$/,""),a=0,l=0,u="";e=s.charAt(l++);~e&&(t=a%4?64*t+e:e,a++%4)?u+=String.fromCharCode(255&t>>(-2*a&6)):0)e=arrayIndexOf(n,e);return u}T.v=0,module.exports.r=function(symbols){for(var result=[],i=0;i<symbols.length;i++)try{result.push(eval(symbols[i]))}catch(r){result.push(void 0)}return result},module.exports.d=function(r){function t(){for(;c===l;)s.push(u),c++,l=n.shift(),u=n.shift()}if(typeof r[1]!="object")return r;for(var e=r[0],n=r[1],s=[],a=base64Decode(e),l=n.shift(),u=n.shift(),c=0,h=0;h<a.length;h++){var p=a.charAt(h).charCodeAt(0);t(),s.push(p),c++}return t(),s},module.exports.g=function(r){return r.shift()[0]},module.exports.v=T},"./utils.js":function(r,t,e){function n(p,g,v){var y=arguments.length>3&&arguments[3]!==void 0&&arguments[3],_=document.createElement("script");if(_.onload=_.onreadystatechange=function(){this.readyState&&this.readyState!=="loaded"&&this.readyState!=="complete"||(typeof g=="function"&&g(),_.onload=_.onreadystatechange=null,_.parentNode&&!y&&_.parentNode.removeChild(_))},v){for(var b in v)if(v.hasOwnProperty(b)){var C=v[b];C===null?_.removeAttribute(C):_.setAttribute(b,C)}}_.src=p,document.getElementsByTagName("head")[0].appendChild(_)}function s(){for(var p="",g=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],v=0;v<32;v++)p+=g[a(0,15)];return p}function a(p,g){return Math.floor(Math.random()*(g-p+1)+p)}function l(p){return h.g(h.v(0,h.d(["RQQiAiIDLRZFCiICIgMiBCIFIgYiByIIIgkBAAsSPwZzBnQGcgZpBm4GZyM5QDQTLTcmEykQPgMBAQskABQTEz4EARkUExM+BQF7FBMTPgYBABQTEz4GJQEAFT8GbAZlBm4GZwZ0Bmg6Oww5QHMTLegmEz4HAQAVPwZjBmgGYQZyBkMGbwZkBmUGQQZ0Oh0GJgEUExM+Bx0HAQEHHQUyFBMTPgc+Bz8GdAZvBlMGdAZyBmkGbgZnCh0EJgEUExM+Az8GcAZ1BnMGaAodByYBEz4GDiUOGAEYAAEBNRQTRAAYABsTLVZFPggBAhU/BmYGcgZvBm0GQwZoBmEGcgZDBm8GZAZlOh0EAWE1JgEUExM+CT4DPwZqBm8GaQZuCh0IJgEUExMdCRA+AwIJAAAUExMpEA==",[7,297]]),[function(){return p===void 0?void 0:p},function(){return typeof Array>"u"?void 0:Array},function(){return typeof String>"u"?void 0:String}])).call(this)}function u(p){return h.g(h.v(0,h.d(["RQQiAiIDLRhFDCICIgMiBCIFIgYiByIIIgkiCiILAQALEj8GcwZ0BnIGaQZuBmcjOUA4Ey07PBMpED4DAQELJAAUExM+BAEBCyQAFBMTPgUBGRQTEz4GAXsUExM+BwECFT8GZgZyBm8GbQZDBmgGYQZyBkMGbwZkBmU6HQUBYTUmARQTEz4DAQAVPwZzBnAGbAZpBnQ6HQcmARQTEz4IAQAUExM+CCU+Az8GbAZlBm4GZwZ0BmgKOww5QMETLS0TPgkBAxU+Ax0ICjsdBSYCFBMTPgkdCQEBBx0GMhQTEz4KAQIVPwZmBnIGbwZtBkMGaAZhBnIGQwZvBmQGZTodCSYBFBMTPgQ/BnAGdQZzBmgKHQomARM+CA4lDhgBGAABATUUE0QAGAAbEy2lAj4LPgQ/BmoGbwZpBm4KPyYBFBMTHQsQPgMCCQAAFBMTKRA=",[7,326,191,303]]),[function(){return p===void 0?void 0:p},function(){return typeof Array>"u"?void 0:Array},function(){return typeof String>"u"?void 0:String},function(){return typeof parseInt>"u"?void 0:parseInt}])).call(this)}function c(p,g){if(!g)return!1;var v=new RegExp("^"+g.replace("*",".*")+"$","i");return g.toLowerCase().replace("*.","")===p||v.test(p)}var h=e("./node_modules/@tencent/js-armor-loader/dist/runtime.js");Object.defineProperty(t,"__esModule",{value:!0}),t.decrypto=u,t.encrypto=l,t.genOverlay=s,t.getRandomInt=a,t.isDomainMatchingWildcard=c,t.loadScript=n},"./utils/aes.js":function(r,t,e){function n(U){return parseInt(U)===U}function s(U){if(!n(U.length))return!1;for(var q=0;q<U.length;q++)if(!n(U[q])||U[q]<0||U[q]>255)return!1;return!0}function a(U,q){if(U.buffer&&U.name==="Uint8Array")return q&&(U=U.slice?U.slice():Array.prototype.slice.call(U)),U;if(Array.isArray(U)){if(!s(U))throw new Error("Array contains invalid value: "+U);return new Uint8Array(U)}if(n(U.length)&&s(U))return new Uint8Array(U);throw new Error("unsupported array-like object")}function l(U){return new Uint8Array(U)}function u(U,q,re,W,V){W==null&&V==null||(U=U.slice?U.slice(W,V):Array.prototype.slice.call(U,W,V)),q.set(U,re)}function c(U){for(var q=[],re=0;re<U.length;re+=4)q.push(U[re]<<24|U[re+1]<<16|U[re+2]<<8|U[re+3]);return q}function h(U){U=a(U,!0);var q=16-U.length%16,re=l(U.length+q);u(U,re);for(var W=U.length;W<re.length;W++)re[W]=q;return re}function p(U){if(U=a(U,!0),U.length<16)throw new Error("PKCS#7 invalid length");var q=U[U.length-1];if(q>16)throw new Error("PKCS#7 padding byte out of range");for(var re=U.length-q,W=0;W<q;W++)if(U[re+W]!==q)throw new Error("PKCS#7 invalid padding byte");var V=l(re);return u(U,V,0,0,re),V}e.r(t),e.d(t,{default:function(){return fe}});var g=function(){function U(re){var W=[],V=0;for(re=encodeURI(re);V<re.length;){var oe=re.charCodeAt(V++);oe===37?(W.push(parseInt(re.substr(V,2),16)),V+=2):W.push(oe)}return a(W)}function q(re){for(var W=[],V=0;V<re.length;){var oe=re[V];oe<128?(W.push(String.fromCharCode(oe)),V++):oe>191&&oe<224?(W.push(String.fromCharCode((31&oe)<<6|63&re[V+1])),V+=2):(W.push(String.fromCharCode((15&oe)<<12|(63&re[V+1])<<6|63&re[V+2])),V+=3)}return W.join("")}return{toBytes:U,fromBytes:q}}(),v=function(){function U(W){for(var V=[],oe=0;oe<W.length;oe+=2)V.push(parseInt(W.substr(oe,2),16));return V}function q(W){for(var V=[],oe=0;oe<W.length;oe++){var ue=W[oe];V.push(re[(240&ue)>>4]+re[15&ue])}return V.join("")}var re="0123456789abcdef";return{toBytes:U,fromBytes:q}}(),y={16:10,24:12,32:14},_=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],b=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],C=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],I=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],N=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],x=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],F=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],P=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],d=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],m=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],E=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],k=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],D=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],L=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],G=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925],Y=function U(q){if(!(this instanceof U))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:a(q,!0)}),this._prepare()};Y.prototype._prepare=function(){var U=y[this.key.length];if(U==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var q=0;q<=U;q++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var re,W=4*(U+1),V=this.key.length/4,oe=c(this.key),q=0;q<V;q++)re=q>>2,this._Ke[re][q%4]=oe[q],this._Kd[U-re][q%4]=oe[q];for(var ue,Te=0,Re=V;Re<W;){if(ue=oe[V-1],oe[0]^=b[ue>>16&255]<<24^b[ue>>8&255]<<16^b[255&ue]<<8^b[ue>>24&255]^_[Te]<<24,Te+=1,V!=8)for(var q=1;q<V;q++)oe[q]^=oe[q-1];else{for(var q=1;q<V/2;q++)oe[q]^=oe[q-1];ue=oe[V/2-1],oe[V/2]^=b[255&ue]^b[ue>>8&255]<<8^b[ue>>16&255]<<16^b[ue>>24&255]<<24;for(var q=V/2+1;q<V;q++)oe[q]^=oe[q-1]}for(var me,Ee,q=0;q<V&&Re<W;)me=Re>>2,Ee=Re%4,this._Ke[me][Ee]=oe[q],this._Kd[U-me][Ee]=oe[q++],Re++}for(var me=1;me<U;me++)for(var Ee=0;Ee<4;Ee++)ue=this._Kd[me][Ee],this._Kd[me][Ee]=k[ue>>24&255]^D[ue>>16&255]^L[ue>>8&255]^G[255&ue]},Y.prototype.encrypt=function(U){if(U.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var q=this._Ke.length-1,re=[0,0,0,0],W=c(U),V=0;V<4;V++)W[V]^=this._Ke[0][V];for(var oe=1;oe<q;oe++){for(var V=0;V<4;V++)re[V]=I[W[V]>>24&255]^N[W[(V+1)%4]>>16&255]^x[W[(V+2)%4]>>8&255]^F[255&W[(V+3)%4]]^this._Ke[oe][V];W=re.slice()}for(var ue,Te=l(16),V=0;V<4;V++)ue=this._Ke[q][V],Te[4*V]=255&(b[W[V]>>24&255]^ue>>24),Te[4*V+1]=255&(b[W[(V+1)%4]>>16&255]^ue>>16),Te[4*V+2]=255&(b[W[(V+2)%4]>>8&255]^ue>>8),Te[4*V+3]=255&(b[255&W[(V+3)%4]]^ue);return Te},Y.prototype.decrypt=function(U){if(U.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var q=this._Kd.length-1,re=[0,0,0,0],W=c(U),V=0;V<4;V++)W[V]^=this._Kd[0][V];for(var oe=1;oe<q;oe++){for(var V=0;V<4;V++)re[V]=P[W[V]>>24&255]^d[W[(V+3)%4]>>16&255]^m[W[(V+2)%4]>>8&255]^E[255&W[(V+1)%4]]^this._Kd[oe][V];W=re.slice()}for(var ue,Te=l(16),V=0;V<4;V++)ue=this._Kd[q][V],Te[4*V]=255&(C[W[V]>>24&255]^ue>>24),Te[4*V+1]=255&(C[W[(V+3)%4]>>16&255]^ue>>16),Te[4*V+2]=255&(C[W[(V+2)%4]>>8&255]^ue>>8),Te[4*V+3]=255&(C[255&W[(V+1)%4]]^ue);return Te};var ae=function U(q,re){if(!(this instanceof U))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",re){if(re.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)")}else re=l(16);this._lastCipherblock=a(re,!0),this._aes=new Y(q)};ae.prototype.encrypt=function(U){if(U=a(U),U.length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var q=l(U.length),re=l(16),W=0;W<U.length;W+=16){u(U,re,0,W,W+16);for(var V=0;V<16;V++)re[V]^=this._lastCipherblock[V];this._lastCipherblock=this._aes.encrypt(re),u(this._lastCipherblock,q,W)}return q},ae.prototype.decrypt=function(U){if(U=a(U),U.length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var q=l(U.length),re=l(16),W=0;W<U.length;W+=16){u(U,re,0,W,W+16),re=this._aes.decrypt(re);for(var V=0;V<16;V++)q[W+V]=re[V]^this._lastCipherblock[V];u(U,this._lastCipherblock,0,W,W+16)}return q};var he=function U(q){if(!(this instanceof U))throw Error("Counter must be instanitated with `new`");q===0||q||(q=1),typeof q=="number"?(this._counter=l(16),this.setValue(q)):this.setBytes(q)};he.prototype.setValue=function(U){if(typeof U!="number"||parseInt(U)!=U)throw new Error("invalid counter value (must be an integer)");if(U>Number.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var q=15;q>=0;--q)this._counter[q]=U%256,U=parseInt(U/256)},he.prototype.setBytes=function(U){if(U=a(U,!0),U.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=U},he.prototype.increment=function(){for(var U=15;U>=0;U--){if(this._counter[U]!==255){this._counter[U]++;break}this._counter[U]=0}};var ke={AES:Y,Counter:he,modeOfOperation:{cbc:ae},utils:{hex:v,utf8:g},padding:{pkcs7:{pad:h,strip:p}},_arrayTest:{coerceArray:a,createArray:l,copyArray:u}},fe=ke},"./utils/index.js":function(r,t,e){e.r(t),e.d(t,{isVisible:function(){return n}});var n=function(s){if(!s)return!1;var a=window.getComputedStyle(s),l=a.getPropertyValue("display"),u=a.getPropertyValue("visibility"),c=a.getPropertyValue("opacity");return l!=="none"&&u!=="hidden"&&c!=="0"}},"./node_modules/charenc/charenc.js":function(r){var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var n=[],s=0;s<e.length;s++)n.push(255&e.charCodeAt(s));return n},bytesToString:function(e){for(var n=[],s=0;s<e.length;s++)n.push(String.fromCharCode(e[s]));return n.join("")}}};r.exports=t},"./node_modules/crypt/crypt.js":function(r){(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(n,s){return n<<s|n>>>32-s},rotr:function(n,s){return n<<32-s|n>>>s},endian:function(n){if(n.constructor==Number)return 16711935&e.rotl(n,8)|4278255360&e.rotl(n,24);for(var s=0;s<n.length;s++)n[s]=e.endian(n[s]);return n},randomBytes:function(n){for(var s=[];n>0;n--)s.push(Math.floor(256*Math.random()));return s},bytesToWords:function(n){for(var s=[],a=0,l=0;a<n.length;a++,l+=8)s[l>>>5]|=n[a]<<24-l%32;return s},wordsToBytes:function(n){for(var s=[],a=0;a<32*n.length;a+=8)s.push(n[a>>>5]>>>24-a%32&255);return s},bytesToHex:function(n){for(var s=[],a=0;a<n.length;a++)s.push((n[a]>>>4).toString(16)),s.push((15&n[a]).toString(16));return s.join("")},hexToBytes:function(n){for(var s=[],a=0;a<n.length;a+=2)s.push(parseInt(n.substr(a,2),16));return s},bytesToBase64:function(n){for(var s=[],a=0;a<n.length;a+=3)for(var l=n[a]<<16|n[a+1]<<8|n[a+2],u=0;u<4;u++)8*a+6*u<=8*n.length?s.push(t.charAt(l>>>6*(3-u)&63)):s.push("=");return s.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var s=[],a=0,l=0;a<n.length;l=++a%4)l!=0&&s.push((t.indexOf(n.charAt(a-1))&Math.pow(2,-2*l+8)-1)<<2*l|t.indexOf(n.charAt(a))>>>6-2*l);return s}};r.exports=e})()},"./node_modules/is-buffer/index.js":function(r){function t(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function e(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&t(n.slice(0,0))}r.exports=function(n){return n!=null&&(t(n)||e(n)||!!n._isBuffer)}},"./node_modules/jsencrypt/lib/JSEncrypt.js":function(r,t,e){e.r(t),e.d(t,{JSEncrypt:function(){return u}});var n,s=e("./node_modules/jsencrypt/lib/lib/jsbn/base64.js"),a=e("./node_modules/jsencrypt/lib/JSEncryptRSAKey.js"),l=typeof process<"u"?(n=process.env)===null||n===void 0?void 0:n.npm_package_version:void 0,u=function(){function c(h){h===void 0&&(h={}),h=h||{},this.default_key_size=h.default_key_size?parseInt(h.default_key_size,10):1024,this.default_public_exponent=h.default_public_exponent||"010001",this.log=h.log||!1,this.key=null}return c.prototype.setKey=function(h){this.log&&this.key,this.key=new a.JSEncryptRSAKey(h)},c.prototype.setPrivateKey=function(h){this.setKey(h)},c.prototype.setPublicKey=function(h){this.setKey(h)},c.prototype.decrypt=function(h){try{return this.getKey().decrypt((0,s.b64tohex)(h))}catch{return!1}},c.prototype.encrypt=function(h){try{return(0,s.hex2b64)(this.getKey().encrypt(h))}catch{return!1}},c.prototype.sign=function(h,p,g){try{return(0,s.hex2b64)(this.getKey().sign(h,p,g))}catch{return!1}},c.prototype.verify=function(h,p,g){try{return this.getKey().verify(h,(0,s.b64tohex)(p),g)}catch{return!1}},c.prototype.getKey=function(h){if(!this.key){if(this.key=new a.JSEncryptRSAKey,h&&{}.toString.call(h)==="[object Function]")return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,h);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},c.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},c.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},c.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},c.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},c.version=l,c}()},"./node_modules/jsencrypt/lib/JSEncryptRSAKey.js":function(r,t,e){e.r(t),e.d(t,{JSEncryptRSAKey:function(){return g}});var n=e("./node_modules/jsencrypt/lib/lib/jsbn/base64.js"),s=e("./node_modules/jsencrypt/lib/lib/asn1js/hex.js"),a=e("./node_modules/jsencrypt/lib/lib/asn1js/base64.js"),l=e("./node_modules/jsencrypt/lib/lib/asn1js/asn1.js"),u=e("./node_modules/jsencrypt/lib/lib/jsbn/rsa.js"),c=e("./node_modules/jsencrypt/lib/lib/jsbn/jsbn.js"),h=e("./node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js"),p=function(){var v=function(y,_){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,C){b.__proto__=C}||function(b,C){for(var I in C)Object.prototype.hasOwnProperty.call(C,I)&&(b[I]=C[I])})(y,_)};return function(y,_){function b(){this.constructor=y}if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");v(y,_),y.prototype=_===null?Object.create(_):(b.prototype=_.prototype,new b)}}(),g=function(v){function y(_){var b=v.call(this)||this;return _&&(typeof _=="string"?b.parseKey(_):(y.hasPrivateKeyProperty(_)||y.hasPublicKeyProperty(_))&&b.parsePropertiesFrom(_)),b}return p(y,v),y.prototype.parseKey=function(_){try{var b=0,C=0,I=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,N=I.test(_)?s.Hex.decode(_):a.Base64.unarmor(_),x=l.ASN1.decode(N);if(x.sub.length===3&&(x=x.sub[2].sub[0]),x.sub.length===9){b=x.sub[1].getHexStringValue(),this.n=(0,c.parseBigInt)(b,16),C=x.sub[2].getHexStringValue(),this.e=parseInt(C,16);var F=x.sub[3].getHexStringValue();this.d=(0,c.parseBigInt)(F,16);var P=x.sub[4].getHexStringValue();this.p=(0,c.parseBigInt)(P,16);var d=x.sub[5].getHexStringValue();this.q=(0,c.parseBigInt)(d,16);var m=x.sub[6].getHexStringValue();this.dmp1=(0,c.parseBigInt)(m,16);var E=x.sub[7].getHexStringValue();this.dmq1=(0,c.parseBigInt)(E,16);var k=x.sub[8].getHexStringValue();this.coeff=(0,c.parseBigInt)(k,16)}else{if(x.sub.length!==2)return!1;if(x.sub[0].sub){var D=x.sub[1],L=D.sub[0];b=L.sub[0].getHexStringValue(),this.n=(0,c.parseBigInt)(b,16),C=L.sub[1].getHexStringValue(),this.e=parseInt(C,16)}else b=x.sub[0].getHexStringValue(),this.n=(0,c.parseBigInt)(b,16),C=x.sub[1].getHexStringValue(),this.e=parseInt(C,16)}return!0}catch{return!1}},y.prototype.getPrivateBaseKey=function(){var _={array:[new h.KJUR.asn1.DERInteger({int:0}),new h.KJUR.asn1.DERInteger({bigint:this.n}),new h.KJUR.asn1.DERInteger({int:this.e}),new h.KJUR.asn1.DERInteger({bigint:this.d}),new h.KJUR.asn1.DERInteger({bigint:this.p}),new h.KJUR.asn1.DERInteger({bigint:this.q}),new h.KJUR.asn1.DERInteger({bigint:this.dmp1}),new h.KJUR.asn1.DERInteger({bigint:this.dmq1}),new h.KJUR.asn1.DERInteger({bigint:this.coeff})]};return new h.KJUR.asn1.DERSequence(_).getEncodedHex()},y.prototype.getPrivateBaseKeyB64=function(){return(0,n.hex2b64)(this.getPrivateBaseKey())},y.prototype.getPublicBaseKey=function(){var _=new h.KJUR.asn1.DERSequence({array:[new h.KJUR.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new h.KJUR.asn1.DERNull]}),b=new h.KJUR.asn1.DERSequence({array:[new h.KJUR.asn1.DERInteger({bigint:this.n}),new h.KJUR.asn1.DERInteger({int:this.e})]}),C=new h.KJUR.asn1.DERBitString({hex:"00"+b.getEncodedHex()});return new h.KJUR.asn1.DERSequence({array:[_,C]}).getEncodedHex()},y.prototype.getPublicBaseKeyB64=function(){return(0,n.hex2b64)(this.getPublicBaseKey())},y.wordwrap=function(_,b){if(b=b||64,!_)return _;var C="(.{1,"+b+`})( +|$
|
|
22
|
+
?)|(.{1,`+b+"})";return _.match(RegExp(C,"g")).join(`
|
|
23
|
+
`)},y.prototype.getPrivateKey=function(){var _=`-----BEGIN RSA PRIVATE KEY-----
|
|
24
|
+
`;return _+=y.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
25
|
+
`,_+="-----END RSA PRIVATE KEY-----"},y.prototype.getPublicKey=function(){var _=`-----BEGIN PUBLIC KEY-----
|
|
26
|
+
`;return _+=y.wordwrap(this.getPublicBaseKeyB64())+`
|
|
27
|
+
`,_+="-----END PUBLIC KEY-----"},y.hasPublicKeyProperty=function(_){return _=_||{},_.hasOwnProperty("n")&&_.hasOwnProperty("e")},y.hasPrivateKeyProperty=function(_){return _=_||{},_.hasOwnProperty("n")&&_.hasOwnProperty("e")&&_.hasOwnProperty("d")&&_.hasOwnProperty("p")&&_.hasOwnProperty("q")&&_.hasOwnProperty("dmp1")&&_.hasOwnProperty("dmq1")&&_.hasOwnProperty("coeff")},y.prototype.parsePropertiesFrom=function(_){this.n=_.n,this.e=_.e,_.hasOwnProperty("d")&&(this.d=_.d,this.p=_.p,this.q=_.q,this.dmp1=_.dmp1,this.dmq1=_.dmq1,this.coeff=_.coeff)},y}(u.RSAKey)},"./node_modules/jsencrypt/lib/index.js":function(r,t,e){e.r(t),e.d(t,{JSEncrypt:function(){return n.JSEncrypt},default:function(){return s}});var n=e("./node_modules/jsencrypt/lib/JSEncrypt.js"),s=n.JSEncrypt},"./node_modules/jsencrypt/lib/lib/asn1js/asn1.js":function(r,t,e){function n(g,v){return g.length>v&&(g=g.substring(0,v)+a),g}e.r(t),e.d(t,{ASN1:function(){return h},ASN1Tag:function(){return p},Stream:function(){return c}});var s=e("./node_modules/jsencrypt/lib/lib/asn1js/int10.js"),a="…",l=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,u=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,c=function(){function g(v,y){this.hexDigits="0123456789ABCDEF",v instanceof g?(this.enc=v.enc,this.pos=v.pos):(this.enc=v,this.pos=y)}return g.prototype.get=function(v){if(v===void 0&&(v=this.pos++),v>=this.enc.length)throw new Error("Requesting byte offset ".concat(v," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(v):this.enc[v]},g.prototype.hexByte=function(v){return this.hexDigits.charAt(v>>4&15)+this.hexDigits.charAt(15&v)},g.prototype.hexDump=function(v,y,_){for(var b="",C=v;C<y;++C)if(b+=this.hexByte(this.get(C)),_!==!0)switch(15&C){case 7:b+=" ";break;case 15:b+=`
|
|
28
|
+
`;break;default:b+=" "}return b},g.prototype.isASCII=function(v,y){for(var _=v;_<y;++_){var b=this.get(_);if(b<32||b>176)return!1}return!0},g.prototype.parseStringISO=function(v,y){for(var _="",b=v;b<y;++b)_+=String.fromCharCode(this.get(b));return _},g.prototype.parseStringUTF=function(v,y){for(var _="",b=v;b<y;){var C=this.get(b++);_+=C<128?String.fromCharCode(C):C>191&&C<224?String.fromCharCode((31&C)<<6|63&this.get(b++)):String.fromCharCode((15&C)<<12|(63&this.get(b++))<<6|63&this.get(b++))}return _},g.prototype.parseStringBMP=function(v,y){for(var _,b,C="",I=v;I<y;)_=this.get(I++),b=this.get(I++),C+=String.fromCharCode(_<<8|b);return C},g.prototype.parseTime=function(v,y,_){var b=this.parseStringISO(v,y),C=(_?l:u).exec(b);return C?(_&&(C[1]=+C[1],C[1]+=+C[1]<70?2e3:1900),b=C[1]+"-"+C[2]+"-"+C[3]+" "+C[4],C[5]&&(b+=":"+C[5],C[6]&&(b+=":"+C[6],C[7]&&(b+="."+C[7]))),C[8]&&(b+=" UTC",C[8]!="Z"&&(b+=C[8],C[9]&&(b+=":"+C[9]))),b):"Unrecognized time: "+b},g.prototype.parseInteger=function(v,y){for(var _,b=this.get(v),C=b>127,I=C?255:0,N="";b==I&&++v<y;)b=this.get(v);if((_=y-v)===0)return C?-1:0;if(_>4){for(N=b,_<<=3;!(128&(+N^I));)N=+N<<1,--_;N="("+_+` bit)
|
|
29
|
+
`}C&&(b-=256);for(var x=new s.Int10(b),F=v+1;F<y;++F)x.mulAdd(256,this.get(F));return N+x.toString()},g.prototype.parseBitString=function(v,y,_){for(var b=this.get(v),C=(y-v-1<<3)-b,I="("+C+` bit)
|
|
30
|
+
`,N="",x=v+1;x<y;++x){for(var F=this.get(x),P=x==y-1?b:0,d=7;d>=P;--d)N+=F>>d&1?"1":"0";if(N.length>_)return I+n(N,_)}return I+N},g.prototype.parseOctetString=function(v,y,_){if(this.isASCII(v,y))return n(this.parseStringISO(v,y),_);var b=y-v,C="("+b+` byte)
|
|
31
|
+
`;_/=2,b>_&&(y=v+_);for(var I=v;I<y;++I)C+=this.hexByte(this.get(I));return b>_&&(C+=a),C},g.prototype.parseOID=function(v,y,_){for(var b="",C=new s.Int10,I=0,N=v;N<y;++N){var x=this.get(N);if(C.mulAdd(128,127&x),I+=7,!(128&x)){if(b==="")if((C=C.simplify())instanceof s.Int10)C.sub(80),b="2."+C.toString();else{var F=C<80?C<40?0:1:2;b=F+"."+(C-40*F)}else b+="."+C.toString();if(b.length>_)return n(b,_);C=new s.Int10,I=0}}return I>0&&(b+=".incomplete"),b},g}(),h=function(){function g(v,y,_,b,C){if(!(b instanceof p))throw new Error("Invalid tag value.");this.stream=v,this.header=y,this.length=_,this.tag=b,this.sub=C}return g.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},g.prototype.content=function(v){if(this.tag===void 0)return null;v===void 0&&(v=1/0);var y=this.posContent(),_=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(y,y+_,v);switch(this.tag.tagNumber){case 1:return this.stream.get(y)===0?"false":"true";case 2:return this.stream.parseInteger(y,y+_);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(y,y+_,v);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(y,y+_,v);case 6:return this.stream.parseOID(y,y+_,v);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return n(this.stream.parseStringUTF(y,y+_),v);case 18:case 19:case 20:case 21:case 22:case 26:return n(this.stream.parseStringISO(y,y+_),v);case 30:return n(this.stream.parseStringBMP(y,y+_),v);case 23:case 24:return this.stream.parseTime(y,y+_,this.tag.tagNumber==23)}return null},g.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},g.prototype.toPrettyString=function(v){v===void 0&&(v="");var y=v+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(y+="+"),y+=this.length,this.tag.tagConstructed?y+=" (constructed)":!this.tag.isUniversal()||this.tag.tagNumber!=3&&this.tag.tagNumber!=4||this.sub===null||(y+=" (encapsulates)"),y+=`
|
|
32
|
+
`,this.sub!==null){v+=" ";for(var _=0,b=this.sub.length;_<b;++_)y+=this.sub[_].toPrettyString(v)}return y},g.prototype.posStart=function(){return this.stream.pos},g.prototype.posContent=function(){return this.stream.pos+this.header},g.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},g.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},g.decodeLength=function(v){var y=v.get(),_=127&y;if(_==y)return _;if(_>6)throw new Error("Length over 48 bits not supported at position "+(v.pos-1));if(_===0)return null;y=0;for(var b=0;b<_;++b)y=256*y+v.get();return y},g.prototype.getHexStringValue=function(){var v=this.toHexString(),y=2*this.header,_=2*this.length;return v.substr(y,_)},g.decode=function(v){var y;y=v instanceof c?v:new c(v,0);var _=new c(y),b=new p(y),C=g.decodeLength(y),I=y.pos,N=I-_.pos,x=null,F=function(){var d=[];if(C!==null){for(var m=I+C;y.pos<m;)d[d.length]=g.decode(y);if(y.pos!=m)throw new Error("Content size is not correct for container starting at offset "+I)}else try{for(;;){var E=g.decode(y);if(E.tag.isEOC())break;d[d.length]=E}C=I-y.pos}catch(k){throw new Error("Exception while decoding undefined length content: "+k)}return d};if(b.tagConstructed)x=F();else if(b.isUniversal()&&(b.tagNumber==3||b.tagNumber==4))try{if(b.tagNumber==3&&y.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");x=F();for(var P=0;P<x.length;++P)if(x[P].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{x=null}if(x===null){if(C===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+I);y.pos=I+Math.abs(C)}return new g(_,N,C,b,x)},g}(),p=function(){function g(v){var y=v.get();if(this.tagClass=y>>6,this.tagConstructed=(32&y)!=0,this.tagNumber=31&y,this.tagNumber==31){var _=new s.Int10;do y=v.get(),_.mulAdd(128,127&y);while(128&y);this.tagNumber=_.simplify()}}return g.prototype.isUniversal=function(){return this.tagClass===0},g.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},g}()},"./node_modules/jsencrypt/lib/lib/asn1js/base64.js":function(r,t,e){e.r(t),e.d(t,{Base64:function(){return s}});var n,s={decode:function(a){var l;if(n===void 0){var u=`= \f
|
|
33
|
+
\r \u2028\u2029`;for(n=Object.create(null),l=0;l<64;++l)n["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l)]=l;for(n["-"]=62,n._=63,l=0;l<u.length;++l)n[u.charAt(l)]=-1}var c=[],h=0,p=0;for(l=0;l<a.length;++l){var g=a.charAt(l);if(g=="=")break;if((g=n[g])!=-1){if(g===void 0)throw new Error("Illegal character at offset "+l);h|=g,++p>=4?(c[c.length]=h>>16,c[c.length]=h>>8&255,c[c.length]=255&h,h=0,p=0):h<<=6}}switch(p){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:c[c.length]=h>>10;break;case 3:c[c.length]=h>>16,c[c.length]=h>>8&255}return c},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(a){var l=s.re.exec(a);if(l)if(l[1])a=l[1];else{if(!l[2])throw new Error("RegExp out of sync");a=l[2]}return s.decode(a)}}},"./node_modules/jsencrypt/lib/lib/asn1js/hex.js":function(r,t,e){e.r(t),e.d(t,{Hex:function(){return s}});var n,s={decode:function(a){var l;if(n===void 0){var u="0123456789ABCDEF",c=` \f
|
|
34
|
+
\r \u2028\u2029`;for(n={},l=0;l<16;++l)n[u.charAt(l)]=l;for(u=u.toLowerCase(),l=10;l<16;++l)n[u.charAt(l)]=l;for(l=0;l<c.length;++l)n[c.charAt(l)]=-1}var h=[],p=0,g=0;for(l=0;l<a.length;++l){var v=a.charAt(l);if(v=="=")break;if((v=n[v])!=-1){if(v===void 0)throw new Error("Illegal character at offset "+l);p|=v,++g>=2?(h[h.length]=p,p=0,g=0):p<<=4}}if(g)throw new Error("Hex encoding incomplete: 4 bits missing");return h}}},"./node_modules/jsencrypt/lib/lib/asn1js/int10.js":function(r,t,e){e.r(t),e.d(t,{Int10:function(){return n}});var n=function(){function s(a){this.buf=[+a||0]}return s.prototype.mulAdd=function(a,l){var u,c,h=this.buf,p=h.length;for(u=0;u<p;++u)c=h[u]*a+l,c<1e13?l=0:(l=0|c/1e13,c-=1e13*l),h[u]=c;l>0&&(h[u]=l)},s.prototype.sub=function(a){var l,u,c=this.buf,h=c.length;for(l=0;l<h;++l)u=c[l]-a,u<0?(u+=1e13,a=1):a=0,c[l]=u;for(;c[c.length-1]===0;)c.pop()},s.prototype.toString=function(a){if((a||10)!=10)throw new Error("only base 10 is supported");for(var l=this.buf,u=l[l.length-1].toString(),c=l.length-2;c>=0;--c)u+=(1e13+l[c]).toString().substring(1);return u},s.prototype.valueOf=function(){for(var a=this.buf,l=0,u=a.length-1;u>=0;--u)l=1e13*l+a[u];return l},s.prototype.simplify=function(){var a=this.buf;return a.length==1?a[0]:this},s}()},"./node_modules/jsencrypt/lib/lib/jsbn/base64.js":function(r,t,e){function n(h){var p,g,v="";for(p=0;p+3<=h.length;p+=3)g=parseInt(h.substring(p,p+3),16),v+=u.charAt(g>>6)+u.charAt(63&g);for(p+1==h.length?(g=parseInt(h.substring(p,p+1),16),v+=u.charAt(g<<2)):p+2==h.length&&(g=parseInt(h.substring(p,p+2),16),v+=u.charAt(g>>2)+u.charAt((3&g)<<4));(3&v.length)>0;)v+=c;return v}function s(h){var p,g="",v=0,y=0;for(p=0;p<h.length&&h.charAt(p)!=c;++p){var _=u.indexOf(h.charAt(p));_<0||(v==0?(g+=(0,l.int2char)(_>>2),y=3&_,v=1):v==1?(g+=(0,l.int2char)(y<<2|_>>4),y=15&_,v=2):v==2?(g+=(0,l.int2char)(y),g+=(0,l.int2char)(_>>2),y=3&_,v=3):(g+=(0,l.int2char)(y<<2|_>>4),g+=(0,l.int2char)(15&_),v=0))}return v==1&&(g+=(0,l.int2char)(y<<2)),g}function a(h){var p,g=s(h),v=[];for(p=0;2*p<g.length;++p)v[p]=parseInt(g.substring(2*p,2*p+2),16);return v}e.r(t),e.d(t,{b64toBA:function(){return a},b64tohex:function(){return s},hex2b64:function(){return n}});var l=e("./node_modules/jsencrypt/lib/lib/jsbn/util.js"),u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c="="},"./node_modules/jsencrypt/lib/lib/jsbn/jsbn.js":function(r,t,e){function n(){return new v(null)}function s(P,d){return new v(P,d)}function a(P,d){var m=F[P.charCodeAt(d)];return m??-1}function l(P){var d=n();return d.fromInt(P),d}function u(P){var d,m=1;return(d=P>>>16)!=0&&(P=d,m+=16),(d=P>>8)!=0&&(P=d,m+=8),(d=P>>4)!=0&&(P=d,m+=4),(d=P>>2)!=0&&(P=d,m+=2),(d=P>>1)!=0&&(P=d,m+=1),m}e.r(t),e.d(t,{BigInteger:function(){return v},intAt:function(){return a},nbi:function(){return n},nbits:function(){return u},nbv:function(){return l},parseBigInt:function(){return s}});var c,h=e("./node_modules/jsencrypt/lib/lib/jsbn/util.js"),p=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],g=(1<<26)/p[p.length-1],v=function(){function P(d,m,E){d!=null&&(typeof d=="number"?this.fromNumber(d,m,E):m==null&&typeof d!="string"?this.fromString(d,256):this.fromString(d,m))}return P.prototype.toString=function(d){if(this.s<0)return"-"+this.negate().toString(d);var m;if(d==16)m=4;else if(d==8)m=3;else if(d==2)m=1;else if(d==32)m=5;else{if(d!=4)return this.toRadix(d);m=2}var E,k=(1<<m)-1,D=!1,L="",G=this.t,Y=this.DB-G*this.DB%m;if(G-- >0)for(Y<this.DB&&(E=this[G]>>Y)>0&&(D=!0,L=(0,h.int2char)(E));G>=0;)Y<m?(E=(this[G]&(1<<Y)-1)<<m-Y,E|=this[--G]>>(Y+=this.DB-m)):(E=this[G]>>(Y-=m)&k,Y<=0&&(Y+=this.DB,--G)),E>0&&(D=!0),D&&(L+=(0,h.int2char)(E));return D?L:"0"},P.prototype.negate=function(){var d=n();return P.ZERO.subTo(this,d),d},P.prototype.abs=function(){return this.s<0?this.negate():this},P.prototype.compareTo=function(d){var m=this.s-d.s;if(m!=0)return m;var E=this.t;if((m=E-d.t)!=0)return this.s<0?-m:m;for(;--E>=0;)if((m=this[E]-d[E])!=0)return m;return 0},P.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+u(this[this.t-1]^this.s&this.DM)},P.prototype.mod=function(d){var m=n();return this.abs().divRemTo(d,null,m),this.s<0&&m.compareTo(P.ZERO)>0&&d.subTo(m,m),m},P.prototype.modPowInt=function(d,m){var E;return E=d<256||m.isEven()?new _(m):new b(m),this.exp(d,E)},P.prototype.clone=function(){var d=n();return this.copyTo(d),d},P.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},P.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},P.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},P.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},P.prototype.toByteArray=function(){var d=this.t,m=[];m[0]=this.s;var E,k=this.DB-d*this.DB%8,D=0;if(d-- >0)for(k<this.DB&&(E=this[d]>>k)!=(this.s&this.DM)>>k&&(m[D++]=E|this.s<<this.DB-k);d>=0;)k<8?(E=(this[d]&(1<<k)-1)<<8-k,E|=this[--d]>>(k+=this.DB-8)):(E=this[d]>>(k-=8)&255,k<=0&&(k+=this.DB,--d)),128&E&&(E|=-256),D==0&&(128&this.s)!=(128&E)&&++D,(D>0||E!=this.s)&&(m[D++]=E);return m},P.prototype.equals=function(d){return this.compareTo(d)==0},P.prototype.min=function(d){return this.compareTo(d)<0?this:d},P.prototype.max=function(d){return this.compareTo(d)>0?this:d},P.prototype.and=function(d){var m=n();return this.bitwiseTo(d,h.op_and,m),m},P.prototype.or=function(d){var m=n();return this.bitwiseTo(d,h.op_or,m),m},P.prototype.xor=function(d){var m=n();return this.bitwiseTo(d,h.op_xor,m),m},P.prototype.andNot=function(d){var m=n();return this.bitwiseTo(d,h.op_andnot,m),m},P.prototype.not=function(){for(var d=n(),m=0;m<this.t;++m)d[m]=this.DM&~this[m];return d.t=this.t,d.s=~this.s,d},P.prototype.shiftLeft=function(d){var m=n();return d<0?this.rShiftTo(-d,m):this.lShiftTo(d,m),m},P.prototype.shiftRight=function(d){var m=n();return d<0?this.lShiftTo(-d,m):this.rShiftTo(d,m),m},P.prototype.getLowestSetBit=function(){for(var d=0;d<this.t;++d)if(this[d]!=0)return d*this.DB+(0,h.lbit)(this[d]);return this.s<0?this.t*this.DB:-1},P.prototype.bitCount=function(){for(var d=0,m=this.s&this.DM,E=0;E<this.t;++E)d+=(0,h.cbit)(this[E]^m);return d},P.prototype.testBit=function(d){var m=Math.floor(d/this.DB);return m>=this.t?this.s!=0:(this[m]&1<<d%this.DB)!=0},P.prototype.setBit=function(d){return this.changeBit(d,h.op_or)},P.prototype.clearBit=function(d){return this.changeBit(d,h.op_andnot)},P.prototype.flipBit=function(d){return this.changeBit(d,h.op_xor)},P.prototype.add=function(d){var m=n();return this.addTo(d,m),m},P.prototype.subtract=function(d){var m=n();return this.subTo(d,m),m},P.prototype.multiply=function(d){var m=n();return this.multiplyTo(d,m),m},P.prototype.divide=function(d){var m=n();return this.divRemTo(d,m,null),m},P.prototype.remainder=function(d){var m=n();return this.divRemTo(d,null,m),m},P.prototype.divideAndRemainder=function(d){var m=n(),E=n();return this.divRemTo(d,m,E),[m,E]},P.prototype.modPow=function(d,m){var E,k,D=d.bitLength(),L=l(1);if(D<=0)return L;E=D<18?1:D<48?3:D<144?4:D<768?5:6,k=D<8?new _(m):m.isEven()?new C(m):new b(m);var G=[],Y=3,ae=E-1,he=(1<<E)-1;if(G[1]=k.convert(this),E>1){var ke=n();for(k.sqrTo(G[1],ke);Y<=he;)G[Y]=n(),k.mulTo(ke,G[Y-2],G[Y]),Y+=2}var fe,U,q=d.t-1,re=!0,W=n();for(D=u(d[q])-1;q>=0;){for(D>=ae?fe=d[q]>>D-ae&he:(fe=(d[q]&(1<<D+1)-1)<<ae-D,q>0&&(fe|=d[q-1]>>this.DB+D-ae)),Y=E;!(1&fe);)fe>>=1,--Y;if((D-=Y)<0&&(D+=this.DB,--q),re)G[fe].copyTo(L),re=!1;else{for(;Y>1;)k.sqrTo(L,W),k.sqrTo(W,L),Y-=2;Y>0?k.sqrTo(L,W):(U=L,L=W,W=U),k.mulTo(W,G[fe],L)}for(;q>=0&&!(d[q]&1<<D);)k.sqrTo(L,W),U=L,L=W,W=U,--D<0&&(D=this.DB-1,--q)}return k.revert(L)},P.prototype.modInverse=function(d){var m=d.isEven();if(this.isEven()&&m||d.signum()==0)return P.ZERO;for(var E=d.clone(),k=this.clone(),D=l(1),L=l(0),G=l(0),Y=l(1);E.signum()!=0;){for(;E.isEven();)E.rShiftTo(1,E),m?(D.isEven()&&L.isEven()||(D.addTo(this,D),L.subTo(d,L)),D.rShiftTo(1,D)):L.isEven()||L.subTo(d,L),L.rShiftTo(1,L);for(;k.isEven();)k.rShiftTo(1,k),m?(G.isEven()&&Y.isEven()||(G.addTo(this,G),Y.subTo(d,Y)),G.rShiftTo(1,G)):Y.isEven()||Y.subTo(d,Y),Y.rShiftTo(1,Y);E.compareTo(k)>=0?(E.subTo(k,E),m&&D.subTo(G,D),L.subTo(Y,L)):(k.subTo(E,k),m&&G.subTo(D,G),Y.subTo(L,Y))}return k.compareTo(P.ONE)!=0?P.ZERO:Y.compareTo(d)>=0?Y.subtract(d):Y.signum()<0?(Y.addTo(d,Y),Y.signum()<0?Y.add(d):Y):Y},P.prototype.pow=function(d){return this.exp(d,new y)},P.prototype.gcd=function(d){var m=this.s<0?this.negate():this.clone(),E=d.s<0?d.negate():d.clone();if(m.compareTo(E)<0){var k=m;m=E,E=k}var D=m.getLowestSetBit(),L=E.getLowestSetBit();if(L<0)return m;for(D<L&&(L=D),L>0&&(m.rShiftTo(L,m),E.rShiftTo(L,E));m.signum()>0;)(D=m.getLowestSetBit())>0&&m.rShiftTo(D,m),(D=E.getLowestSetBit())>0&&E.rShiftTo(D,E),m.compareTo(E)>=0?(m.subTo(E,m),m.rShiftTo(1,m)):(E.subTo(m,E),E.rShiftTo(1,E));return L>0&&E.lShiftTo(L,E),E},P.prototype.isProbablePrime=function(d){var m,E=this.abs();if(E.t==1&&E[0]<=p[p.length-1]){for(m=0;m<p.length;++m)if(E[0]==p[m])return!0;return!1}if(E.isEven())return!1;for(m=1;m<p.length;){for(var k=p[m],D=m+1;D<p.length&&k<g;)k*=p[D++];for(k=E.modInt(k);m<D;)if(k%p[m++]==0)return!1}return E.millerRabin(d)},P.prototype.copyTo=function(d){for(var m=this.t-1;m>=0;--m)d[m]=this[m];d.t=this.t,d.s=this.s},P.prototype.fromInt=function(d){this.t=1,this.s=d<0?-1:0,d>0?this[0]=d:d<-1?this[0]=d+this.DV:this.t=0},P.prototype.fromString=function(d,m){var E;if(m==16)E=4;else if(m==8)E=3;else if(m==256)E=8;else if(m==2)E=1;else if(m==32)E=5;else{if(m!=4)return void this.fromRadix(d,m);E=2}this.t=0,this.s=0;for(var k=d.length,D=!1,L=0;--k>=0;){var G=E==8?255&+d[k]:a(d,k);G<0?d.charAt(k)=="-"&&(D=!0):(D=!1,L==0?this[this.t++]=G:L+E>this.DB?(this[this.t-1]|=(G&(1<<this.DB-L)-1)<<L,this[this.t++]=G>>this.DB-L):this[this.t-1]|=G<<L,(L+=E)>=this.DB&&(L-=this.DB))}E==8&&128&+d[0]&&(this.s=-1,L>0&&(this[this.t-1]|=(1<<this.DB-L)-1<<L)),this.clamp(),D&&P.ZERO.subTo(this,this)},P.prototype.clamp=function(){for(var d=this.s&this.DM;this.t>0&&this[this.t-1]==d;)--this.t},P.prototype.dlShiftTo=function(d,m){var E;for(E=this.t-1;E>=0;--E)m[E+d]=this[E];for(E=d-1;E>=0;--E)m[E]=0;m.t=this.t+d,m.s=this.s},P.prototype.drShiftTo=function(d,m){for(var E=d;E<this.t;++E)m[E-d]=this[E];m.t=Math.max(this.t-d,0),m.s=this.s},P.prototype.lShiftTo=function(d,m){for(var E=d%this.DB,k=this.DB-E,D=(1<<k)-1,L=Math.floor(d/this.DB),G=this.s<<E&this.DM,Y=this.t-1;Y>=0;--Y)m[Y+L+1]=this[Y]>>k|G,G=(this[Y]&D)<<E;for(var Y=L-1;Y>=0;--Y)m[Y]=0;m[L]=G,m.t=this.t+L+1,m.s=this.s,m.clamp()},P.prototype.rShiftTo=function(d,m){m.s=this.s;var E=Math.floor(d/this.DB);if(E>=this.t)return void(m.t=0);var k=d%this.DB,D=this.DB-k,L=(1<<k)-1;m[0]=this[E]>>k;for(var G=E+1;G<this.t;++G)m[G-E-1]|=(this[G]&L)<<D,m[G-E]=this[G]>>k;k>0&&(m[this.t-E-1]|=(this.s&L)<<D),m.t=this.t-E,m.clamp()},P.prototype.subTo=function(d,m){for(var E=0,k=0,D=Math.min(d.t,this.t);E<D;)k+=this[E]-d[E],m[E++]=k&this.DM,k>>=this.DB;if(d.t<this.t){for(k-=d.s;E<this.t;)k+=this[E],m[E++]=k&this.DM,k>>=this.DB;k+=this.s}else{for(k+=this.s;E<d.t;)k-=d[E],m[E++]=k&this.DM,k>>=this.DB;k-=d.s}m.s=k<0?-1:0,k<-1?m[E++]=this.DV+k:k>0&&(m[E++]=k),m.t=E,m.clamp()},P.prototype.multiplyTo=function(d,m){var E=this.abs(),k=d.abs(),D=E.t;for(m.t=D+k.t;--D>=0;)m[D]=0;for(D=0;D<k.t;++D)m[D+E.t]=E.am(0,k[D],m,D,0,E.t);m.s=0,m.clamp(),this.s!=d.s&&P.ZERO.subTo(m,m)},P.prototype.squareTo=function(d){for(var m=this.abs(),E=d.t=2*m.t;--E>=0;)d[E]=0;for(E=0;E<m.t-1;++E){var k=m.am(E,m[E],d,2*E,0,1);(d[E+m.t]+=m.am(E+1,2*m[E],d,2*E+1,k,m.t-E-1))>=m.DV&&(d[E+m.t]-=m.DV,d[E+m.t+1]=1)}d.t>0&&(d[d.t-1]+=m.am(E,m[E],d,2*E,0,1)),d.s=0,d.clamp()},P.prototype.divRemTo=function(d,m,E){var k=d.abs();if(!(k.t<=0)){var D=this.abs();if(D.t<k.t)return m!=null&&m.fromInt(0),void(E!=null&&this.copyTo(E));E==null&&(E=n());var L=n(),G=this.s,Y=d.s,ae=this.DB-u(k[k.t-1]);ae>0?(k.lShiftTo(ae,L),D.lShiftTo(ae,E)):(k.copyTo(L),D.copyTo(E));var he=L.t,ke=L[he-1];if(ke!=0){var fe=ke*(1<<this.F1)+(he>1?L[he-2]>>this.F2:0),U=this.FV/fe,q=(1<<this.F1)/fe,re=1<<this.F2,W=E.t,V=W-he,oe=m??n();for(L.dlShiftTo(V,oe),E.compareTo(oe)>=0&&(E[E.t++]=1,E.subTo(oe,E)),P.ONE.dlShiftTo(he,oe),oe.subTo(L,L);L.t<he;)L[L.t++]=0;for(;--V>=0;){var ue=E[--W]==ke?this.DM:Math.floor(E[W]*U+(E[W-1]+re)*q);if((E[W]+=L.am(0,ue,E,V,0,he))<ue)for(L.dlShiftTo(V,oe),E.subTo(oe,E);E[W]<--ue;)E.subTo(oe,E)}m!=null&&(E.drShiftTo(he,m),G!=Y&&P.ZERO.subTo(m,m)),E.t=he,E.clamp(),ae>0&&E.rShiftTo(ae,E),G<0&&P.ZERO.subTo(E,E)}}},P.prototype.invDigit=function(){if(this.t<1)return 0;var d=this[0];if(!(1&d))return 0;var m=3&d;return m=m*(2-(15&d)*m)&15,m=m*(2-(255&d)*m)&255,m=m*(2-((65535&d)*m&65535))&65535,m=m*(2-d*m%this.DV)%this.DV,m>0?this.DV-m:-m},P.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},P.prototype.exp=function(d,m){if(d>4294967295||d<1)return P.ONE;var E=n(),k=n(),D=m.convert(this),L=u(d)-1;for(D.copyTo(E);--L>=0;)if(m.sqrTo(E,k),(d&1<<L)>0)m.mulTo(k,D,E);else{var G=E;E=k,k=G}return m.revert(E)},P.prototype.chunkSize=function(d){return Math.floor(Math.LN2*this.DB/Math.log(d))},P.prototype.toRadix=function(d){if(d==null&&(d=10),this.signum()==0||d<2||d>36)return"0";var m=this.chunkSize(d),E=Math.pow(d,m),k=l(E),D=n(),L=n(),G="";for(this.divRemTo(k,D,L);D.signum()>0;)G=(E+L.intValue()).toString(d).substr(1)+G,D.divRemTo(k,D,L);return L.intValue().toString(d)+G},P.prototype.fromRadix=function(d,m){this.fromInt(0),m==null&&(m=10);for(var E=this.chunkSize(m),k=Math.pow(m,E),D=!1,L=0,G=0,Y=0;Y<d.length;++Y){var ae=a(d,Y);ae<0?d.charAt(Y)=="-"&&this.signum()==0&&(D=!0):(G=m*G+ae,++L>=E&&(this.dMultiply(k),this.dAddOffset(G,0),L=0,G=0))}L>0&&(this.dMultiply(Math.pow(m,L)),this.dAddOffset(G,0)),D&&P.ZERO.subTo(this,this)},P.prototype.fromNumber=function(d,m,E){if(typeof m=="number")if(d<2)this.fromInt(1);else for(this.fromNumber(d,E),this.testBit(d-1)||this.bitwiseTo(P.ONE.shiftLeft(d-1),h.op_or,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(m);)this.dAddOffset(2,0),this.bitLength()>d&&this.subTo(P.ONE.shiftLeft(d-1),this);else{var k=[],D=7&d;k.length=1+(d>>3),m.nextBytes(k),D>0?k[0]&=(1<<D)-1:k[0]=0,this.fromString(k,256)}},P.prototype.bitwiseTo=function(d,m,E){var k,D,L=Math.min(d.t,this.t);for(k=0;k<L;++k)E[k]=m(this[k],d[k]);if(d.t<this.t){for(D=d.s&this.DM,k=L;k<this.t;++k)E[k]=m(this[k],D);E.t=this.t}else{for(D=this.s&this.DM,k=L;k<d.t;++k)E[k]=m(D,d[k]);E.t=d.t}E.s=m(this.s,d.s),E.clamp()},P.prototype.changeBit=function(d,m){var E=P.ONE.shiftLeft(d);return this.bitwiseTo(E,m,E),E},P.prototype.addTo=function(d,m){for(var E=0,k=0,D=Math.min(d.t,this.t);E<D;)k+=this[E]+d[E],m[E++]=k&this.DM,k>>=this.DB;if(d.t<this.t){for(k+=d.s;E<this.t;)k+=this[E],m[E++]=k&this.DM,k>>=this.DB;k+=this.s}else{for(k+=this.s;E<d.t;)k+=d[E],m[E++]=k&this.DM,k>>=this.DB;k+=d.s}m.s=k<0?-1:0,k>0?m[E++]=k:k<-1&&(m[E++]=this.DV+k),m.t=E,m.clamp()},P.prototype.dMultiply=function(d){this[this.t]=this.am(0,d-1,this,0,0,this.t),++this.t,this.clamp()},P.prototype.dAddOffset=function(d,m){if(d!=0){for(;this.t<=m;)this[this.t++]=0;for(this[m]+=d;this[m]>=this.DV;)this[m]-=this.DV,++m>=this.t&&(this[this.t++]=0),++this[m]}},P.prototype.multiplyLowerTo=function(d,m,E){var k=Math.min(this.t+d.t,m);for(E.s=0,E.t=k;k>0;)E[--k]=0;for(var D=E.t-this.t;k<D;++k)E[k+this.t]=this.am(0,d[k],E,k,0,this.t);for(var D=Math.min(d.t,m);k<D;++k)this.am(0,d[k],E,k,0,m-k);E.clamp()},P.prototype.multiplyUpperTo=function(d,m,E){--m;var k=E.t=this.t+d.t-m;for(E.s=0;--k>=0;)E[k]=0;for(k=Math.max(m-this.t,0);k<d.t;++k)E[this.t+k-m]=this.am(m-k,d[k],E,0,0,this.t+k-m);E.clamp(),E.drShiftTo(1,E)},P.prototype.modInt=function(d){if(d<=0)return 0;var m=this.DV%d,E=this.s<0?d-1:0;if(this.t>0)if(m==0)E=this[0]%d;else for(var k=this.t-1;k>=0;--k)E=(m*E+this[k])%d;return E},P.prototype.millerRabin=function(d){var m=this.subtract(P.ONE),E=m.getLowestSetBit();if(E<=0)return!1;var k=m.shiftRight(E);(d=d+1>>1)>p.length&&(d=p.length);for(var D=n(),L=0;L<d;++L){D.fromInt(p[Math.floor(Math.random()*p.length)]);var G=D.modPow(k,this);if(G.compareTo(P.ONE)!=0&&G.compareTo(m)!=0){for(var Y=1;Y++<E&&G.compareTo(m)!=0;)if(G=G.modPowInt(2,this),G.compareTo(P.ONE)==0)return!1;if(G.compareTo(m)!=0)return!1}}return!0},P.prototype.square=function(){var d=n();return this.squareTo(d),d},P.prototype.gcda=function(d,m){var E=this.s<0?this.negate():this.clone(),k=d.s<0?d.negate():d.clone();if(E.compareTo(k)<0){var D=E;E=k,k=D}var L=E.getLowestSetBit(),G=k.getLowestSetBit();if(G<0)return void m(E);L<G&&(G=L),G>0&&(E.rShiftTo(G,E),k.rShiftTo(G,k));var Y=function ae(){(L=E.getLowestSetBit())>0&&E.rShiftTo(L,E),(L=k.getLowestSetBit())>0&&k.rShiftTo(L,k),E.compareTo(k)>=0?(E.subTo(k,E),E.rShiftTo(1,E)):(k.subTo(E,k),k.rShiftTo(1,k)),E.signum()>0?setTimeout(ae,0):(G>0&&k.lShiftTo(G,k),setTimeout(function(){m(k)},0))};setTimeout(Y,10)},P.prototype.fromNumberAsync=function(d,m,E,k){if(typeof m=="number")if(d<2)this.fromInt(1);else{this.fromNumber(d,E),this.testBit(d-1)||this.bitwiseTo(P.ONE.shiftLeft(d-1),h.op_or,this),this.isEven()&&this.dAddOffset(1,0);var D=this,L=function ae(){D.dAddOffset(2,0),D.bitLength()>d&&D.subTo(P.ONE.shiftLeft(d-1),D),D.isProbablePrime(m)?setTimeout(function(){k()},0):setTimeout(ae,0)};setTimeout(L,0)}else{var G=[],Y=7&d;G.length=1+(d>>3),m.nextBytes(G),Y>0?G[0]&=(1<<Y)-1:G[0]=0,this.fromString(G,256)}},P}(),y=function(){function P(){}return P.prototype.convert=function(d){return d},P.prototype.revert=function(d){return d},P.prototype.mulTo=function(d,m,E){d.multiplyTo(m,E)},P.prototype.sqrTo=function(d,m){d.squareTo(m)},P}(),_=function(){function P(d){this.m=d}return P.prototype.convert=function(d){return d.s<0||d.compareTo(this.m)>=0?d.mod(this.m):d},P.prototype.revert=function(d){return d},P.prototype.reduce=function(d){d.divRemTo(this.m,null,d)},P.prototype.mulTo=function(d,m,E){d.multiplyTo(m,E),this.reduce(E)},P.prototype.sqrTo=function(d,m){d.squareTo(m),this.reduce(m)},P}(),b=function(){function P(d){this.m=d,this.mp=d.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<d.DB-15)-1,this.mt2=2*d.t}return P.prototype.convert=function(d){var m=n();return d.abs().dlShiftTo(this.m.t,m),m.divRemTo(this.m,null,m),d.s<0&&m.compareTo(v.ZERO)>0&&this.m.subTo(m,m),m},P.prototype.revert=function(d){var m=n();return d.copyTo(m),this.reduce(m),m},P.prototype.reduce=function(d){for(;d.t<=this.mt2;)d[d.t++]=0;for(var m=0;m<this.m.t;++m){var E=32767&d[m],k=E*this.mpl+((E*this.mph+(d[m]>>15)*this.mpl&this.um)<<15)&d.DM;for(E=m+this.m.t,d[E]+=this.m.am(0,k,d,m,0,this.m.t);d[E]>=d.DV;)d[E]-=d.DV,d[++E]++}d.clamp(),d.drShiftTo(this.m.t,d),d.compareTo(this.m)>=0&&d.subTo(this.m,d)},P.prototype.mulTo=function(d,m,E){d.multiplyTo(m,E),this.reduce(E)},P.prototype.sqrTo=function(d,m){d.squareTo(m),this.reduce(m)},P}(),C=function(){function P(d){this.m=d,this.r2=n(),this.q3=n(),v.ONE.dlShiftTo(2*d.t,this.r2),this.mu=this.r2.divide(d)}return P.prototype.convert=function(d){if(d.s<0||d.t>2*this.m.t)return d.mod(this.m);if(d.compareTo(this.m)<0)return d;var m=n();return d.copyTo(m),this.reduce(m),m},P.prototype.revert=function(d){return d},P.prototype.reduce=function(d){for(d.drShiftTo(this.m.t-1,this.r2),d.t>this.m.t+1&&(d.t=this.m.t+1,d.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);d.compareTo(this.r2)<0;)d.dAddOffset(1,this.m.t+1);for(d.subTo(this.r2,d);d.compareTo(this.m)>=0;)d.subTo(this.m,d)},P.prototype.mulTo=function(d,m,E){d.multiplyTo(m,E),this.reduce(E)},P.prototype.sqrTo=function(d,m){d.squareTo(m),this.reduce(m)},P}(),I=typeof navigator<"u";I&&navigator.appName=="Microsoft Internet Explorer"?(v.prototype.am=function(P,d,m,E,k,D){for(var L=32767&d,G=d>>15;--D>=0;){var Y=32767&this[P],ae=this[P++]>>15,he=G*Y+ae*L;Y=L*Y+((32767&he)<<15)+m[E]+(1073741823&k),k=(Y>>>30)+(he>>>15)+G*ae+(k>>>30),m[E++]=1073741823&Y}return k},c=30):I&&navigator.appName!="Netscape"?(v.prototype.am=function(P,d,m,E,k,D){for(;--D>=0;){var L=d*this[P++]+m[E]+k;k=Math.floor(L/67108864),m[E++]=67108863&L}return k},c=26):(v.prototype.am=function(P,d,m,E,k,D){for(var L=16383&d,G=d>>14;--D>=0;){var Y=16383&this[P],ae=this[P++]>>14,he=G*Y+ae*L;Y=L*Y+((16383&he)<<14)+m[E]+k,k=(Y>>28)+(he>>14)+G*ae,m[E++]=268435455&Y}return k},c=28),v.prototype.DB=c,v.prototype.DM=(1<<c)-1,v.prototype.DV=1<<c,v.prototype.FV=Math.pow(2,52),v.prototype.F1=52-c,v.prototype.F2=2*c-52;var N,x,F=[];for(N="0".charCodeAt(0),x=0;x<=9;++x)F[N++]=x;for(N="a".charCodeAt(0),x=10;x<36;++x)F[N++]=x;for(N="A".charCodeAt(0),x=10;x<36;++x)F[N++]=x;v.ZERO=l(0),v.ONE=l(1)},"./node_modules/jsencrypt/lib/lib/jsbn/prng4.js":function(r,t,e){function n(){return new s}e.r(t),e.d(t,{Arcfour:function(){return s},prng_newstate:function(){return n},rng_psize:function(){return a}});var s=function(){function l(){this.i=0,this.j=0,this.S=[]}return l.prototype.init=function(u){var c,h,p;for(c=0;c<256;++c)this.S[c]=c;for(h=0,c=0;c<256;++c)h=h+this.S[c]+u[c%u.length]&255,p=this.S[c],this.S[c]=this.S[h],this.S[h]=p;this.i=0,this.j=0},l.prototype.next=function(){var u;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,u=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=u,this.S[u+this.S[this.i]&255]},l}(),a=256},"./node_modules/jsencrypt/lib/lib/jsbn/rng.js":function(r,t,e){function n(){if(s==null){for(s=(0,l.prng_newstate)();a<l.rng_psize;){var y=Math.floor(65536*Math.random());u[a++]=255&y}for(s.init(u),a=0;a<u.length;++a)u[a]=0;a=0}return s.next()}e.r(t),e.d(t,{SecureRandom:function(){return v}});var s,a,l=e("./node_modules/jsencrypt/lib/lib/jsbn/prng4.js"),u=null;if(u==null){u=[],a=0;var c=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var h=new Uint32Array(256);for(window.crypto.getRandomValues(h),c=0;c<h.length;++c)u[a++]=255&h[c]}var p=0,g=function y(_){if((p=p||0)>=256||a>=l.rng_psize)return void(window.removeEventListener?window.removeEventListener("mousemove",y,!1):window.detachEvent&&window.detachEvent("onmousemove",y));try{var b=_.x+_.y;u[a++]=255&b,p+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",g,!1):window.attachEvent&&window.attachEvent("onmousemove",g))}var v=function(){function y(){}return y.prototype.nextBytes=function(_){for(var b=0;b<_.length;++b)_[b]=n()},y}()},"./node_modules/jsencrypt/lib/lib/jsbn/rsa.js":function(r,t,e){function n(v,y){if(y<v.length+22)return null;for(var _=y-v.length-6,b="",C=0;C<_;C+=2)b+="ff";var I="0001"+b+"00"+v;return(0,c.parseBigInt)(I,16)}function s(v,y){if(y<v.length+11)return null;for(var _=[],b=v.length-1;b>=0&&y>0;){var C=v.charCodeAt(b--);C<128?_[--y]=C:C>127&&C<2048?(_[--y]=63&C|128,_[--y]=C>>6|192):(_[--y]=63&C|128,_[--y]=C>>6&63|128,_[--y]=C>>12|224)}_[--y]=0;for(var I=new h.SecureRandom,N=[];y>2;){for(N[0]=0;N[0]==0;)I.nextBytes(N);_[--y]=N[0]}return _[--y]=2,_[--y]=0,new c.BigInteger(_)}function a(v,y){for(var _=v.toByteArray(),b=0;b<_.length&&_[b]==0;)++b;if(_.length-b!=y-1||_[b]!=2)return null;for(++b;_[b]!=0;)if(++b>=_.length)return null;for(var C="";++b<_.length;){var I=255&_[b];I<128?C+=String.fromCharCode(I):I>191&&I<224?(C+=String.fromCharCode((31&I)<<6|63&_[b+1]),++b):(C+=String.fromCharCode((15&I)<<12|(63&_[b+1])<<6|63&_[b+2]),b+=2)}return C}function l(v){return g[v]||""}function u(v){for(var y in g)if(g.hasOwnProperty(y)){var _=g[y],b=_.length;if(v.substr(0,b)==_)return v.substr(b)}return v}e.r(t),e.d(t,{RSAKey:function(){return p}});var c=e("./node_modules/jsencrypt/lib/lib/jsbn/jsbn.js"),h=e("./node_modules/jsencrypt/lib/lib/jsbn/rng.js"),p=function(){function v(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return v.prototype.doPublic=function(y){return y.modPowInt(this.e,this.n)},v.prototype.doPrivate=function(y){if(this.p==null||this.q==null)return y.modPow(this.d,this.n);for(var _=y.mod(this.p).modPow(this.dmp1,this.p),b=y.mod(this.q).modPow(this.dmq1,this.q);_.compareTo(b)<0;)_=_.add(this.p);return _.subtract(b).multiply(this.coeff).mod(this.p).multiply(this.q).add(b)},v.prototype.setPublic=function(y,_){y!=null&&_!=null&&y.length>0&&_.length>0&&(this.n=(0,c.parseBigInt)(y,16),this.e=parseInt(_,16))},v.prototype.encrypt=function(y){var _=this.n.bitLength()+7>>3,b=s(y,_);if(b==null)return null;var C=this.doPublic(b);if(C==null)return null;for(var I=C.toString(16),N=I.length,x=0;x<2*_-N;x++)I="0"+I;return I},v.prototype.setPrivate=function(y,_,b){y!=null&&_!=null&&y.length>0&&_.length>0&&(this.n=(0,c.parseBigInt)(y,16),this.e=parseInt(_,16),this.d=(0,c.parseBigInt)(b,16))},v.prototype.setPrivateEx=function(y,_,b,C,I,N,x,F){y!=null&&_!=null&&y.length>0&&_.length>0&&(this.n=(0,c.parseBigInt)(y,16),this.e=parseInt(_,16),this.d=(0,c.parseBigInt)(b,16),this.p=(0,c.parseBigInt)(C,16),this.q=(0,c.parseBigInt)(I,16),this.dmp1=(0,c.parseBigInt)(N,16),this.dmq1=(0,c.parseBigInt)(x,16),this.coeff=(0,c.parseBigInt)(F,16))},v.prototype.generate=function(y,_){var b=new h.SecureRandom,C=y>>1;this.e=parseInt(_,16);for(var I=new c.BigInteger(_,16);;){for(;this.p=new c.BigInteger(y-C,1,b),this.p.subtract(c.BigInteger.ONE).gcd(I).compareTo(c.BigInteger.ONE)!=0||!this.p.isProbablePrime(10););for(;this.q=new c.BigInteger(C,1,b),this.q.subtract(c.BigInteger.ONE).gcd(I).compareTo(c.BigInteger.ONE)!=0||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var N=this.p;this.p=this.q,this.q=N}var x=this.p.subtract(c.BigInteger.ONE),F=this.q.subtract(c.BigInteger.ONE),P=x.multiply(F);if(P.gcd(I).compareTo(c.BigInteger.ONE)==0){this.n=this.p.multiply(this.q),this.d=I.modInverse(P),this.dmp1=this.d.mod(x),this.dmq1=this.d.mod(F),this.coeff=this.q.modInverse(this.p);break}}},v.prototype.decrypt=function(y){var _=(0,c.parseBigInt)(y,16),b=this.doPrivate(_);return b==null?null:a(b,this.n.bitLength()+7>>3)},v.prototype.generateAsync=function(y,_,b){var C=new h.SecureRandom,I=y>>1;this.e=parseInt(_,16);var N=new c.BigInteger(_,16),x=this,F=function P(){var d=function(){if(x.p.compareTo(x.q)<=0){var k=x.p;x.p=x.q,x.q=k}var D=x.p.subtract(c.BigInteger.ONE),L=x.q.subtract(c.BigInteger.ONE),G=D.multiply(L);G.gcd(N).compareTo(c.BigInteger.ONE)==0?(x.n=x.p.multiply(x.q),x.d=N.modInverse(G),x.dmp1=x.d.mod(D),x.dmq1=x.d.mod(L),x.coeff=x.q.modInverse(x.p),setTimeout(function(){b()},0)):setTimeout(P,0)},m=function k(){x.q=(0,c.nbi)(),x.q.fromNumberAsync(I,1,C,function(){x.q.subtract(c.BigInteger.ONE).gcda(N,function(D){D.compareTo(c.BigInteger.ONE)==0&&x.q.isProbablePrime(10)?setTimeout(d,0):setTimeout(k,0)})})},E=function k(){x.p=(0,c.nbi)(),x.p.fromNumberAsync(y-I,1,C,function(){x.p.subtract(c.BigInteger.ONE).gcda(N,function(D){D.compareTo(c.BigInteger.ONE)==0&&x.p.isProbablePrime(10)?setTimeout(m,0):setTimeout(k,0)})})};setTimeout(E,0)};setTimeout(F,0)},v.prototype.sign=function(y,_,b){var C=l(b),I=C+_(y).toString(),N=n(I,this.n.bitLength()/4);if(N==null)return null;var x=this.doPrivate(N);if(x==null)return null;var F=x.toString(16);return 1&F.length?"0"+F:F},v.prototype.verify=function(y,_,b){var C=(0,c.parseBigInt)(_,16),I=this.doPublic(C);return I==null?null:u(I.toString(16).replace(/^1f+00/,""))==b(y).toString()},v}(),g={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"}},"./node_modules/jsencrypt/lib/lib/jsbn/util.js":function(r,t,e){function n(g){return p.charAt(g)}function s(g,v){return g&v}function a(g,v){return g|v}function l(g,v){return g^v}function u(g,v){return g&~v}function c(g){if(g==0)return-1;var v=0;return!(65535&g)&&(g>>=16,v+=16),!(255&g)&&(g>>=8,v+=8),!(15&g)&&(g>>=4,v+=4),!(3&g)&&(g>>=2,v+=2),!(1&g)&&++v,v}function h(g){for(var v=0;g!=0;)g&=g-1,++v;return v}e.r(t),e.d(t,{cbit:function(){return h},int2char:function(){return n},lbit:function(){return c},op_and:function(){return s},op_andnot:function(){return u},op_or:function(){return a},op_xor:function(){return l}});var p="0123456789abcdefghijklmnopqrstuvwxyz"},"./node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js":function(r,t,e){e.r(t),e.d(t,{KJUR:function(){return a}});var n=e("./node_modules/jsencrypt/lib/lib/jsbn/jsbn.js"),s=e("./node_modules/jsencrypt/lib/lib/jsrsasign/yahoo.js"),a={};typeof a.asn1<"u"&&a.asn1||(a.asn1={}),a.asn1.ASN1Util=new function(){this.integerToByteHex=function(l){var u=l.toString(16);return u.length%2==1&&(u="0"+u),u},this.bigIntToMinTwosComplementsHex=function(l){var u=l.toString(16);if(u.substr(0,1)!="-")u.length%2==1?u="0"+u:u.match(/^[0-7]/)||(u="00"+u);else{var c=u.substr(1),h=c.length;h%2==1?h+=1:u.match(/^[0-7]/)||(h+=2);for(var p="",g=0;g<h;g++)p+="f";u=new n.BigInteger(p,16).xor(l).add(n.BigInteger.ONE).toString(16).replace(/^-/,"")}return u},this.getPEMStringFromHex=function(l,u){return hextopem(l,u)},this.newObject=function(l){var u=a,c=u.asn1,h=c.DERBoolean,p=c.DERInteger,g=c.DERBitString,v=c.DEROctetString,y=c.DERNull,_=c.DERObjectIdentifier,b=c.DEREnumerated,C=c.DERUTF8String,I=c.DERNumericString,N=c.DERPrintableString,x=c.DERTeletexString,F=c.DERIA5String,P=c.DERUTCTime,d=c.DERGeneralizedTime,m=c.DERSequence,E=c.DERSet,k=c.DERTaggedObject,D=c.ASN1Util.newObject,L=Object.keys(l);if(L.length!=1)throw"key of param shall be only one.";var G=L[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+G+":")==-1)throw"undefined key: "+G;if(G=="bool")return new h(l[G]);if(G=="int")return new p(l[G]);if(G=="bitstr")return new g(l[G]);if(G=="octstr")return new v(l[G]);if(G=="null")return new y(l[G]);if(G=="oid")return new _(l[G]);if(G=="enum")return new b(l[G]);if(G=="utf8str")return new C(l[G]);if(G=="numstr")return new I(l[G]);if(G=="prnstr")return new N(l[G]);if(G=="telstr")return new x(l[G]);if(G=="ia5str")return new F(l[G]);if(G=="utctime")return new P(l[G]);if(G=="gentime")return new d(l[G]);if(G=="seq"){for(var Y=l[G],ae=[],he=0;he<Y.length;he++){var ke=D(Y[he]);ae.push(ke)}return new m({array:ae})}if(G=="set"){for(var Y=l[G],ae=[],he=0;he<Y.length;he++){var ke=D(Y[he]);ae.push(ke)}return new E({array:ae})}if(G=="tag"){var fe=l[G];if(Object.prototype.toString.call(fe)==="[object Array]"&&fe.length==3){var U=D(fe[2]);return new k({tag:fe[0],explicit:fe[1],obj:U})}var q={};if(fe.explicit!==void 0&&(q.explicit=fe.explicit),fe.tag!==void 0&&(q.tag=fe.tag),fe.obj===void 0)throw"obj shall be specified for 'tag'.";return q.obj=D(fe.obj),new k(q)}},this.jsonToASN1HEX=function(l){return this.newObject(l).getEncodedHex()}},a.asn1.ASN1Util.oidHexToInt=function(l){for(var p="",u=parseInt(l.substr(0,2),16),c=Math.floor(u/40),h=u%40,p=c+"."+h,g="",v=2;v<l.length;v+=2){var y=parseInt(l.substr(v,2),16),_=("00000000"+y.toString(2)).slice(-8);g+=_.substr(1,7),_.substr(0,1)=="0"&&(p=p+"."+new n.BigInteger(g,2).toString(10),g="")}return p},a.asn1.ASN1Util.oidIntToHex=function(l){var u=function(v){var y=v.toString(16);return y.length==1&&(y="0"+y),y};if(!l.match(/^[0-9.]+$/))throw"malformed oid string: "+l;var c="",h=l.split("."),p=40*parseInt(h[0])+parseInt(h[1]);c+=u(p),h.splice(0,2);for(var g=0;g<h.length;g++)c+=function(v){var y="",_=new n.BigInteger(v,10),b=_.toString(2),C=7-b.length%7;C==7&&(C=0);for(var I="",N=0;N<C;N++)I+="0";b=I+b;for(var N=0;N<b.length-1;N+=7){var x=b.substr(N,7);N!=b.length-7&&(x="1"+x),y+=u(parseInt(x,2))}return y}(h[g]);return c},a.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n=0,v="+this.hV;var l=this.hV.length/2,u=l.toString(16);if(u.length%2==1&&(u="0"+u),l<128)return u;var c=u.length/2;if(c>15)throw"ASN.1 length too long to represent by 8x: n = "+l.toString(16);return(128+c).toString(16)+u},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},a.asn1.DERAbstractString=function(l){a.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(u){this.hTLV=null,this.isModified=!0,this.s=u,this.hV=stohex(this.s)},this.setStringHex=function(u){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=u},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l=="string"?this.setString(l):typeof l.str<"u"?this.setString(l.str):typeof l.hex<"u"&&this.setStringHex(l.hex))},s.YAHOO.lang.extend(a.asn1.DERAbstractString,a.asn1.ASN1Object),a.asn1.DERAbstractTime=function(l){a.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(u){return utc=u.getTime()+6e4*u.getTimezoneOffset(),new Date(utc)},this.formatDate=function(u,c,h){var p=this.zeroPadding,g=this.localDateToUTC(u),v=String(g.getFullYear());c=="utc"&&(v=v.substr(2,2));var y=p(String(g.getMonth()+1),2),_=p(String(g.getDate()),2),b=p(String(g.getHours()),2),C=p(String(g.getMinutes()),2),I=p(String(g.getSeconds()),2),N=v+y+_+b+C+I;if(h===!0){var x=g.getMilliseconds();if(x!=0){var F=p(String(x),3);F=F.replace(/[0]+$/,""),N=N+"."+F}}return N+"Z"},this.zeroPadding=function(u,c){return u.length>=c?u:new Array(c-u.length+1).join("0")+u},this.getString=function(){return this.s},this.setString=function(u){this.hTLV=null,this.isModified=!0,this.s=u,this.hV=stohex(u)},this.setByDateValue=function(u,c,h,p,g,v){var y=new Date(Date.UTC(u,c-1,h,p,g,v,0));this.setByDate(y)},this.getFreshValueHex=function(){return this.hV}},s.YAHOO.lang.extend(a.asn1.DERAbstractTime,a.asn1.ASN1Object),a.asn1.DERAbstractStructured=function(l){a.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(u){this.hTLV=null,this.isModified=!0,this.asn1Array=u},this.appendASN1Object=function(u){this.hTLV=null,this.isModified=!0,this.asn1Array.push(u)},this.asn1Array=new Array,l!==void 0&&typeof l.array<"u"&&(this.asn1Array=l.array)},s.YAHOO.lang.extend(a.asn1.DERAbstractStructured,a.asn1.ASN1Object),a.asn1.DERBoolean=function(){a.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},s.YAHOO.lang.extend(a.asn1.DERBoolean,a.asn1.ASN1Object),a.asn1.DERInteger=function(l){a.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(u){this.hTLV=null,this.isModified=!0,this.hV=a.asn1.ASN1Util.bigIntToMinTwosComplementsHex(u)},this.setByInteger=function(u){var c=new n.BigInteger(String(u),10);this.setByBigInteger(c)},this.setValueHex=function(u){this.hV=u},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l.bigint<"u"?this.setByBigInteger(l.bigint):typeof l.int<"u"?this.setByInteger(l.int):typeof l=="number"?this.setByInteger(l):typeof l.hex<"u"&&this.setValueHex(l.hex))},s.YAHOO.lang.extend(a.asn1.DERInteger,a.asn1.ASN1Object),a.asn1.DERBitString=function(l){if(l!==void 0&&typeof l.obj<"u"){var u=a.asn1.ASN1Util.newObject(l.obj);l.hex="00"+u.getEncodedHex()}a.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(c){this.hTLV=null,this.isModified=!0,this.hV=c},this.setUnusedBitsAndHexValue=function(c,h){if(c<0||7<c)throw"unused bits shall be from 0 to 7: u = "+c;var p="0"+c;this.hTLV=null,this.isModified=!0,this.hV=p+h},this.setByBinaryString=function(c){c=c.replace(/0+$/,"");var h=8-c.length%8;h==8&&(h=0);for(var p=0;p<=h;p++)c+="0";for(var g="",p=0;p<c.length-1;p+=8){var v=c.substr(p,8),y=parseInt(v,2).toString(16);y.length==1&&(y="0"+y),g+=y}this.hTLV=null,this.isModified=!0,this.hV="0"+h+g},this.setByBooleanArray=function(c){for(var h="",p=0;p<c.length;p++)c[p]==1?h+="1":h+="0";this.setByBinaryString(h)},this.newFalseArray=function(c){for(var h=new Array(c),p=0;p<c;p++)h[p]=!1;return h},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l=="string"&&l.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(l):typeof l.hex<"u"?this.setHexValueIncludingUnusedBits(l.hex):typeof l.bin<"u"?this.setByBinaryString(l.bin):typeof l.array<"u"&&this.setByBooleanArray(l.array))},s.YAHOO.lang.extend(a.asn1.DERBitString,a.asn1.ASN1Object),a.asn1.DEROctetString=function(l){if(l!==void 0&&typeof l.obj<"u"){var u=a.asn1.ASN1Util.newObject(l.obj);l.hex=u.getEncodedHex()}a.asn1.DEROctetString.superclass.constructor.call(this,l),this.hT="04"},s.YAHOO.lang.extend(a.asn1.DEROctetString,a.asn1.DERAbstractString),a.asn1.DERNull=function(){a.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},s.YAHOO.lang.extend(a.asn1.DERNull,a.asn1.ASN1Object),a.asn1.DERObjectIdentifier=function(l){var u=function(h){var p=h.toString(16);return p.length==1&&(p="0"+p),p},c=function(h){var p="",g=new n.BigInteger(h,10),v=g.toString(2),y=7-v.length%7;y==7&&(y=0);for(var _="",b=0;b<y;b++)_+="0";v=_+v;for(var b=0;b<v.length-1;b+=7){var C=v.substr(b,7);b!=v.length-7&&(C="1"+C),p+=u(parseInt(C,2))}return p};a.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(h){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=h},this.setValueOidString=function(h){if(!h.match(/^[0-9.]+$/))throw"malformed oid string: "+h;var p="",g=h.split("."),v=40*parseInt(g[0])+parseInt(g[1]);p+=u(v),g.splice(0,2);for(var y=0;y<g.length;y++)p+=c(g[y]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=p},this.setValueName=function(h){var p=a.asn1.x509.OID.name2oid(h);if(p==="")throw"DERObjectIdentifier oidName undefined: "+h;this.setValueOidString(p)},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l=="string"?l.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(l):this.setValueName(l):l.oid!==void 0?this.setValueOidString(l.oid):l.hex!==void 0?this.setValueHex(l.hex):l.name!==void 0&&this.setValueName(l.name))},s.YAHOO.lang.extend(a.asn1.DERObjectIdentifier,a.asn1.ASN1Object),a.asn1.DEREnumerated=function(l){a.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(u){this.hTLV=null,this.isModified=!0,this.hV=a.asn1.ASN1Util.bigIntToMinTwosComplementsHex(u)},this.setByInteger=function(u){var c=new n.BigInteger(String(u),10);this.setByBigInteger(c)},this.setValueHex=function(u){this.hV=u},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l.int<"u"?this.setByInteger(l.int):typeof l=="number"?this.setByInteger(l):typeof l.hex<"u"&&this.setValueHex(l.hex))},s.YAHOO.lang.extend(a.asn1.DEREnumerated,a.asn1.ASN1Object),a.asn1.DERUTF8String=function(l){a.asn1.DERUTF8String.superclass.constructor.call(this,l),this.hT="0c"},s.YAHOO.lang.extend(a.asn1.DERUTF8String,a.asn1.DERAbstractString),a.asn1.DERNumericString=function(l){a.asn1.DERNumericString.superclass.constructor.call(this,l),this.hT="12"},s.YAHOO.lang.extend(a.asn1.DERNumericString,a.asn1.DERAbstractString),a.asn1.DERPrintableString=function(l){a.asn1.DERPrintableString.superclass.constructor.call(this,l),this.hT="13"},s.YAHOO.lang.extend(a.asn1.DERPrintableString,a.asn1.DERAbstractString),a.asn1.DERTeletexString=function(l){a.asn1.DERTeletexString.superclass.constructor.call(this,l),this.hT="14"},s.YAHOO.lang.extend(a.asn1.DERTeletexString,a.asn1.DERAbstractString),a.asn1.DERIA5String=function(l){a.asn1.DERIA5String.superclass.constructor.call(this,l),this.hT="16"},s.YAHOO.lang.extend(a.asn1.DERIA5String,a.asn1.DERAbstractString),a.asn1.DERUTCTime=function(l){a.asn1.DERUTCTime.superclass.constructor.call(this,l),this.hT="17",this.setByDate=function(u){this.hTLV=null,this.isModified=!0,this.date=u,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},l!==void 0&&(l.str!==void 0?this.setString(l.str):typeof l=="string"&&l.match(/^[0-9]{12}Z$/)?this.setString(l):l.hex!==void 0?this.setStringHex(l.hex):l.date!==void 0&&this.setByDate(l.date))},s.YAHOO.lang.extend(a.asn1.DERUTCTime,a.asn1.DERAbstractTime),a.asn1.DERGeneralizedTime=function(l){a.asn1.DERGeneralizedTime.superclass.constructor.call(this,l),this.hT="18",this.withMillis=!1,this.setByDate=function(u){this.hTLV=null,this.isModified=!0,this.date=u,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},l!==void 0&&(l.str!==void 0?this.setString(l.str):typeof l=="string"&&l.match(/^[0-9]{14}Z$/)?this.setString(l):l.hex!==void 0?this.setStringHex(l.hex):l.date!==void 0&&this.setByDate(l.date),l.millis===!0&&(this.withMillis=!0))},s.YAHOO.lang.extend(a.asn1.DERGeneralizedTime,a.asn1.DERAbstractTime),a.asn1.DERSequence=function(l){a.asn1.DERSequence.superclass.constructor.call(this,l),this.hT="30",this.getFreshValueHex=function(){for(var u="",c=0;c<this.asn1Array.length;c++)u+=this.asn1Array[c].getEncodedHex();return this.hV=u,this.hV}},s.YAHOO.lang.extend(a.asn1.DERSequence,a.asn1.DERAbstractStructured),a.asn1.DERSet=function(l){a.asn1.DERSet.superclass.constructor.call(this,l),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var u=new Array,c=0;c<this.asn1Array.length;c++){var h=this.asn1Array[c];u.push(h.getEncodedHex())}return this.sortFlag==1&&u.sort(),this.hV=u.join(""),this.hV},l!==void 0&&typeof l.sortflag<"u"&&l.sortflag==0&&(this.sortFlag=!1)},s.YAHOO.lang.extend(a.asn1.DERSet,a.asn1.DERAbstractStructured),a.asn1.DERTaggedObject=function(l){a.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(u,c,h){this.hT=c,this.isExplicit=u,this.asn1Object=h,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=h.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,c),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l.tag<"u"&&(this.hT=l.tag),typeof l.explicit<"u"&&(this.isExplicit=l.explicit),typeof l.obj<"u"&&(this.asn1Object=l.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},s.YAHOO.lang.extend(a.asn1.DERTaggedObject,a.asn1.ASN1Object)},"./node_modules/jsencrypt/lib/lib/jsrsasign/yahoo.js":function(r,t,e){e.r(t),e.d(t,{YAHOO:function(){return n}});var n={};n.lang={extend:function(s,a,l){if(!a||!s)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var u=function(){};if(u.prototype=a.prototype,s.prototype=new u,s.prototype.constructor=s,s.superclass=a.prototype,a.prototype.constructor==Object.prototype.constructor&&(a.prototype.constructor=a),l){var c;for(c in l)s.prototype[c]=l[c];var h=function(){},p=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(h=function(g,v){for(c=0;c<p.length;c+=1){var y=p[c],_=v[y];typeof _=="function"&&_!=Object.prototype[y]&&(g[y]=_)}})}catch{}h(s.prototype,l)}}}},"./node_modules/md5/md5.js":function(r,t,e){(function(){var n=e("./node_modules/crypt/crypt.js"),s=e("./node_modules/charenc/charenc.js").utf8,a=e("./node_modules/is-buffer/index.js"),l=e("./node_modules/charenc/charenc.js").bin,u=function c(h,p){h.constructor==String?h=p&&p.encoding==="binary"?l.stringToBytes(h):s.stringToBytes(h):a(h)?h=Array.prototype.slice.call(h,0):Array.isArray(h)||h.constructor===Uint8Array||(h=h.toString());for(var g=n.bytesToWords(h),v=8*h.length,y=1732584193,_=-271733879,b=-1732584194,C=271733878,I=0;I<g.length;I++)g[I]=16711935&(g[I]<<8|g[I]>>>24)|4278255360&(g[I]<<24|g[I]>>>8);g[v>>>5]|=128<<v%32,g[14+(v+64>>>9<<4)]=v;for(var N=c._ff,x=c._gg,F=c._hh,P=c._ii,I=0;I<g.length;I+=16){var d=y,m=_,E=b,k=C;y=N(y,_,b,C,g[I+0],7,-680876936),C=N(C,y,_,b,g[I+1],12,-389564586),b=N(b,C,y,_,g[I+2],17,606105819),_=N(_,b,C,y,g[I+3],22,-1044525330),y=N(y,_,b,C,g[I+4],7,-176418897),C=N(C,y,_,b,g[I+5],12,1200080426),b=N(b,C,y,_,g[I+6],17,-1473231341),_=N(_,b,C,y,g[I+7],22,-45705983),y=N(y,_,b,C,g[I+8],7,1770035416),C=N(C,y,_,b,g[I+9],12,-1958414417),b=N(b,C,y,_,g[I+10],17,-42063),_=N(_,b,C,y,g[I+11],22,-1990404162),y=N(y,_,b,C,g[I+12],7,1804603682),C=N(C,y,_,b,g[I+13],12,-40341101),b=N(b,C,y,_,g[I+14],17,-1502002290),_=N(_,b,C,y,g[I+15],22,1236535329),y=x(y,_,b,C,g[I+1],5,-165796510),C=x(C,y,_,b,g[I+6],9,-1069501632),b=x(b,C,y,_,g[I+11],14,643717713),_=x(_,b,C,y,g[I+0],20,-373897302),y=x(y,_,b,C,g[I+5],5,-701558691),C=x(C,y,_,b,g[I+10],9,38016083),b=x(b,C,y,_,g[I+15],14,-660478335),_=x(_,b,C,y,g[I+4],20,-405537848),y=x(y,_,b,C,g[I+9],5,568446438),C=x(C,y,_,b,g[I+14],9,-1019803690),b=x(b,C,y,_,g[I+3],14,-187363961),_=x(_,b,C,y,g[I+8],20,1163531501),y=x(y,_,b,C,g[I+13],5,-1444681467),C=x(C,y,_,b,g[I+2],9,-51403784),b=x(b,C,y,_,g[I+7],14,1735328473),_=x(_,b,C,y,g[I+12],20,-1926607734),y=F(y,_,b,C,g[I+5],4,-378558),C=F(C,y,_,b,g[I+8],11,-2022574463),b=F(b,C,y,_,g[I+11],16,1839030562),_=F(_,b,C,y,g[I+14],23,-35309556),y=F(y,_,b,C,g[I+1],4,-1530992060),C=F(C,y,_,b,g[I+4],11,1272893353),b=F(b,C,y,_,g[I+7],16,-155497632),_=F(_,b,C,y,g[I+10],23,-1094730640),y=F(y,_,b,C,g[I+13],4,681279174),C=F(C,y,_,b,g[I+0],11,-358537222),b=F(b,C,y,_,g[I+3],16,-722521979),_=F(_,b,C,y,g[I+6],23,76029189),y=F(y,_,b,C,g[I+9],4,-640364487),C=F(C,y,_,b,g[I+12],11,-421815835),b=F(b,C,y,_,g[I+15],16,530742520),_=F(_,b,C,y,g[I+2],23,-995338651),y=P(y,_,b,C,g[I+0],6,-198630844),C=P(C,y,_,b,g[I+7],10,1126891415),b=P(b,C,y,_,g[I+14],15,-1416354905),_=P(_,b,C,y,g[I+5],21,-57434055),y=P(y,_,b,C,g[I+12],6,1700485571),C=P(C,y,_,b,g[I+3],10,-1894986606),b=P(b,C,y,_,g[I+10],15,-1051523),_=P(_,b,C,y,g[I+1],21,-2054922799),y=P(y,_,b,C,g[I+8],6,1873313359),C=P(C,y,_,b,g[I+15],10,-30611744),b=P(b,C,y,_,g[I+6],15,-1560198380),_=P(_,b,C,y,g[I+13],21,1309151649),y=P(y,_,b,C,g[I+4],6,-145523070),C=P(C,y,_,b,g[I+11],10,-1120210379),b=P(b,C,y,_,g[I+2],15,718787259),_=P(_,b,C,y,g[I+9],21,-343485551),y=y+d>>>0,_=_+m>>>0,b=b+E>>>0,C=C+k>>>0}return n.endian([y,_,b,C])};u._ff=function(c,h,p,g,v,y,_){var b=c+(h&p|~h&g)+(v>>>0)+_;return(b<<y|b>>>32-y)+h},u._gg=function(c,h,p,g,v,y,_){var b=c+(h&g|p&~g)+(v>>>0)+_;return(b<<y|b>>>32-y)+h},u._hh=function(c,h,p,g,v,y,_){var b=c+(h^p^g)+(v>>>0)+_;return(b<<y|b>>>32-y)+h},u._ii=function(c,h,p,g,v,y,_){var b=c+(p^(h|~g))+(v>>>0)+_;return(b<<y|b>>>32-y)+h},u._blocksize=16,u._digestsize=16,r.exports=function(c,h){if(c==null)throw new Error("Illegal argument "+c);var p=n.wordsToBytes(u(c,h));return h&&h.asBytes?p:h&&h.asString?l.bytesToString(p):n.bytesToHex(p)}})()},"./node_modules/axios/dist/browser/axios.cjs":function(r,t,e){function n(f,w){return function(){return f.apply(w,arguments)}}function s(f){return f!==null&&!ie(f)&&f.constructor!==null&&!ie(f.constructor)&&de(f.constructor.isBuffer)&&f.constructor.isBuffer(f)}function a(f){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(f):f&&f.buffer&&ge(f.buffer)}function l(f,w){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},O=B.allOwnKeys,M=O!==void 0&&O;if(f!=null){var j=void 0,z=void 0;if((f===void 0?"undefined":_typeof(f))!=="object"&&(f=[f]),se(f))for(j=0,z=f.length;j<z;j++)w.call(null,f[j],j,f);else{var ne=M?Object.getOwnPropertyNames(f):Object.keys(f),le=ne.length,te=void 0;for(j=0;j<le;j++)te=ne[j],w.call(null,f[te],te,f)}}}function u(f,w){w=w.toLowerCase();for(var B=Object.keys(f),O=B.length,M=void 0;O-- >0;)if(M=B[O],w===M.toLowerCase())return M;return null}function c(){for(var f=Bt(this)&&this||{},w=f.caseless,B={},O=function(z,ne){var le=w&&u(B,ne)||ne;De(B[le])&&De(z)?B[le]=c(B[le],z):De(z)?B[le]=c({},z):se(z)?B[le]=z.slice():B[le]=z},M=0,j=arguments.length;M<j;M++)arguments[M]&&l(arguments[M],O);return B}function h(f){return!!(f&&de(f.append)&&f[Symbol.toStringTag]==="FormData"&&f[Symbol.iterator])}function p(f,w,B,O,M){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=f,this.name="AxiosError",w&&(this.code=w),B&&(this.config=B),O&&(this.request=O),M&&(this.response=M)}function g(f){return H.isPlainObject(f)||H.isArray(f)}function v(f){return H.endsWith(f,"[]")?f.slice(0,-2):f}function y(f,w,B){return f?f.concat(w).map(function(O,M){return O=v(O),!B&&M?"["+O+"]":O}).join(B?".":""):w}function _(f){return H.isArray(f)&&!f.some(g)}function b(f,w,B){function O(pe){if(pe===null)return"";if(H.isDate(pe))return pe.toISOString();if(!_e&&H.isBlob(pe))throw new p("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(pe)||H.isTypedArray(pe)?_e&&typeof Blob=="function"?new Blob([pe]):Buffer.from(pe):pe}function M(pe,ve,Oe){var Ze=pe;if(pe&&!Oe&&(pe===void 0?"undefined":_typeof(pe))==="object"){if(H.endsWith(ve,"{}"))ve=z?ve:ve.slice(0,-2),pe=JSON.stringify(pe);else if(H.isArray(pe)&&_(pe)||(H.isFileList(pe)||H.endsWith(ve,"[]"))&&(Ze=H.toArray(pe)))return ve=v(ve),Ze.forEach(function(Se,Jt){!(H.isUndefined(Se)||Se===null)&&w.append(te===!0?y([ve],Jt,le):te===null?ve:ve+"[]",O(Se))}),!1}return!!g(pe)||(w.append(y(Oe,ve,le),O(pe)),!1)}function j(pe,ve){if(!H.isUndefined(pe)){if(Ce.indexOf(pe)!==-1)throw Error("Circular reference detected in "+ve.join("."));Ce.push(pe),H.forEach(pe,function(Oe,Ze){(!(H.isUndefined(Oe)||Oe===null)&&ne.call(w,Oe,H.isString(Ze)?Ze.trim():Ze,ve,He))===!0&&j(Oe,ve?ve.concat(Ze):[Ze])}),Ce.pop()}}if(!H.isObject(f))throw new TypeError("target must be an object");w=w||new FormData,B=H.toFlatObject(B,{metaTokens:!0,dots:!1,indexes:!1},!1,function(pe,ve){return!H.isUndefined(ve[pe])});var z=B.metaTokens,ne=B.visitor||M,le=B.dots,te=B.indexes,ce=B.Blob||typeof Blob<"u"&&Blob,_e=ce&&H.isSpecCompliantForm(w);if(!H.isFunction(ne))throw new TypeError("visitor must be a function");var Ce=[],He=Object.assign(yt,{defaultVisitor:M,convertValue:O,isVisitable:g});if(!H.isObject(f))throw new TypeError("data must be an object");return j(f),w}function C(f){var w={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(f).replace(/[!'()~]|%20|%00/g,function(B){return w[B]})}function I(f,w){this._pairs=[],f&&b(f,this,w)}function N(f){return encodeURIComponent(f).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function x(f,w,B){if(!w)return f;var O=B&&B.encode||N,M=B&&B.serialize,j=void 0;if(j=M?M(w,B):H.isURLSearchParams(w)?w.toString():new I(w,B).toString(O)){var z=f.indexOf("#");z!==-1&&(f=f.slice(0,z)),f+=(f.indexOf("?")===-1?"?":"&")+j}return f}function F(f,w){return b(f,new Ie.classes.URLSearchParams,Object.assign({visitor:function(B,O,M,j){return Ie.isNode&&H.isBuffer(B)?(this.append(O,B.toString("base64")),!1):j.defaultVisitor.apply(this,arguments)}},w))}function P(f){return H.matchAll(/\w+|\[(\w*)]/g,f).map(function(w){return w[0]==="[]"?"":w[1]||w[0]})}function d(f){var w={},B=Object.keys(f),O=void 0,M=B.length,j=void 0;for(O=0;O<M;O++)j=B[O],w[j]=f[j];return w}function m(f){function w(O,M,j,z){var ne=O[z++],le=Number.isFinite(+ne),te=z>=O.length;return ne=!ne&&H.isArray(j)?j.length:ne,te?(H.hasOwnProp(j,ne)?j[ne]=[j[ne],M]:j[ne]=M,!le):(j[ne]&&H.isObject(j[ne])||(j[ne]=[]),w(O,M,j[ne],z)&&H.isArray(j[ne])&&(j[ne]=d(j[ne])),!le)}if(H.isFormData(f)&&H.isFunction(f.entries)){var B={};return H.forEachEntry(f,function(O,M){w(P(O),M,B,0)}),B}return null}function E(f,w,B){if(H.isString(f))try{return(w||JSON.parse)(f),H.trim(f)}catch(O){if(O.name!=="SyntaxError")throw O}return(B||JSON.stringify)(f)}function k(f){return f&&String(f).trim().toLowerCase()}function D(f){return f===!1||f==null?f:H.isArray(f)?f.map(D):String(f)}function L(f){for(var w=Object.create(null),B=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,O=void 0;O=B.exec(f);)w[O[1]]=O[2];return w}function G(f,w,B,O,M){return H.isFunction(O)?O.call(this,w,B):(M&&(w=B),H.isString(w)?H.isString(O)?w.indexOf(O)!==-1:H.isRegExp(O)?O.test(w):void 0:void 0)}function Y(f){return f.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(w,B,O){return B.toUpperCase()+O})}function ae(f,w){var B=H.toCamelCase(" "+w);["get","set","has"].forEach(function(O){Object.defineProperty(f,O+B,{value:function(M,j,z){return this[O].call(this,w,M,j,z)},configurable:!0})})}function he(f,w){var B=this||qe,O=w||B,M=we.from(O.headers),j=O.data;return H.forEach(f,function(z){j=z.call(B,j,M.normalize(),w?w.status:void 0)}),M.normalize(),j}function ke(f){return!(!f||!f.__CANCEL__)}function fe(f,w,B){p.call(this,f??"canceled",p.ERR_CANCELED,w,B),this.name="CanceledError"}function U(f,w,B){var O=B.config.validateStatus;B.status&&O&&!O(B.status)?w(new p("Request failed with status code "+B.status,[p.ERR_BAD_REQUEST,p.ERR_BAD_RESPONSE][Math.floor(B.status/100)-4],B.config,B.request,B)):f(B)}function q(f){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(f)}function re(f,w){return w?f.replace(/\/+$/,"")+"/"+w.replace(/^\/+/,""):f}function W(f,w){return f&&!q(w)?re(f,w):w}function V(f){var w=/^([-+\w]{1,25})(:?\/\/|:)/.exec(f);return w&&w[1]||""}function oe(f,w){f=f||10;var B=new Array(f),O=new Array(f),M=0,j=0,z=void 0;return w=w!==void 0?w:1e3,function(ne){var le=Date.now(),te=O[j];z||(z=le),B[M]=ne,O[M]=le;for(var ce=j,_e=0;ce!==M;)_e+=B[ce++],ce%=f;if(M=(M+1)%f,M===j&&(j=(j+1)%f),!(le-z<w)){var Ce=te&&le-te;return Ce?Math.round(1e3*_e/Ce):void 0}}}function ue(f,w){var B=0,O=oe(50,250);return function(M){var j=M.loaded,z=M.lengthComputable?M.total:void 0,ne=j-B,le=O(ne),te=j<=z;B=j;var ce={loaded:j,total:z,progress:z?j/z:void 0,bytes:ne,rate:le||void 0,estimated:le&&z&&te?(z-j)/le:void 0,event:M};ce[w?"download":"upload"]=!0,f(ce)}}function Te(f){if(f.cancelToken&&f.cancelToken.throwIfRequested(),f.signal&&f.signal.aborted)throw new fe(null,f)}function Re(f){return Te(f),f.headers=we.from(f.headers),f.data=he.call(f,f.transformRequest),["post","put","patch"].indexOf(f.method)!==-1&&f.headers.setContentType("application/x-www-form-urlencoded",!1),at.getAdapter(f.adapter||qe.adapter)(f).then(function(w){return Te(f),w.data=he.call(f,f.transformResponse,w),w.headers=we.from(w.headers),w},function(w){return ke(w)||(Te(f),w&&w.response&&(w.response.data=he.call(f,f.transformResponse,w.response),w.response.headers=we.from(w.response.headers))),Promise.reject(w)})}function me(f,w){function B(te,ce,_e){return H.isPlainObject(te)&&H.isPlainObject(ce)?H.merge.call({caseless:_e},te,ce):H.isPlainObject(ce)?H.merge({},ce):H.isArray(ce)?ce.slice():ce}function O(te,ce,_e){return H.isUndefined(ce)?H.isUndefined(te)?void 0:B(void 0,te,_e):B(te,ce,_e)}function M(te,ce){if(!H.isUndefined(ce))return B(void 0,ce)}function j(te,ce){return H.isUndefined(ce)?H.isUndefined(te)?void 0:B(void 0,te):B(void 0,ce)}function z(te,ce,_e){return _e in w?B(te,ce):_e in f?B(void 0,te):void 0}w=w||{};var ne={},le={url:M,method:M,data:M,baseURL:j,transformRequest:j,transformResponse:j,paramsSerializer:j,timeout:j,timeoutMessage:j,withCredentials:j,adapter:j,responseType:j,xsrfCookieName:j,xsrfHeaderName:j,onUploadProgress:j,onDownloadProgress:j,decompress:j,maxContentLength:j,maxBodyLength:j,beforeRedirect:j,transport:j,httpAgent:j,httpsAgent:j,cancelToken:j,socketPath:j,responseEncoding:j,validateStatus:z,headers:function(te,ce){return O(Ge(te),Ge(ce),!0)}};return H.forEach(Object.keys(Object.assign({},f,w)),function(te){var ce=le[te]||O,_e=ce(f[te],w[te],te);H.isUndefined(_e)&&ce!==z||(ne[te]=_e)}),ne}function Ee(f,w,B){if((f===void 0?"undefined":_typeof(f))!=="object")throw new p("options must be an object",p.ERR_BAD_OPTION_VALUE);for(var O=Object.keys(f),M=O.length;M-- >0;){var j=O[M],z=w[j];if(z){var ne=f[j],le=ne===void 0||z(ne,j,f);if(le!==!0)throw new p("option "+j+" must be "+le,p.ERR_BAD_OPTION_VALUE)}else if(B!==!0)throw new p("Unknown option "+j,p.ERR_BAD_OPTION)}}function ye(f){return function(w){return f.apply(null,w)}}function Ae(f){return H.isObject(f)&&f.isAxiosError===!0}function Fe(f){var w=new S(f),B=n(S.prototype.request,w);return H.extend(B,S.prototype,w,{allOwnKeys:!0}),H.extend(B,w,null,{allOwnKeys:!0}),B.create=function(O){return Fe(me(f,O))},B}var Le=Object.prototype.toString,Pe=Object.getPrototypeOf,X=function(f){return function(w){var B=Le.call(w);return f[B]||(f[B]=B.slice(8,-1).toLowerCase())}}(Object.create(null)),Q=function(f){return f=f.toLowerCase(),function(w){return X(w)===f}},J=function(f){return function(w){return(w===void 0?"undefined":_typeof(w))===f}},se=Array.isArray,ie=J("undefined"),ge=Q("ArrayBuffer"),be=J("string"),de=J("function"),Be=J("number"),xe=function(f){return f!==null&&(f===void 0?"undefined":_typeof(f))==="object"},Ye=function(f){return f===!0||f===!1},De=function(f){if(X(f)!=="object")return!1;var w=Pe(f);return!(w!==null&&w!==Object.prototype&&Object.getPrototypeOf(w)!==null||Symbol.toStringTag in f||Symbol.iterator in f)},xt=Q("Date"),Ct=Q("File"),St=Q("Blob"),wt=Q("FileList"),At=function(f){return xe(f)&&de(f.pipe)},et=function(f){var w=void 0;return f&&(typeof FormData=="function"&&f instanceof FormData||de(f.append)&&((w=X(f))==="formdata"||w==="object"&&de(f.toString)&&f.toString()==="[object FormData]"))},pt=Q("URLSearchParams"),Lt=function(f){return f.trim?f.trim():f.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},kt=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:e.g}(),Bt=function(f){return!ie(f)&&f!==kt},Nt=function(f,w,B){var O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},M=O.allOwnKeys;return l(w,function(j,z){B&&de(j)?f[z]=n(j,B):f[z]=j},{allOwnKeys:M}),f},Gt=function(f){return f.charCodeAt(0)===65279&&(f=f.slice(1)),f},tt=function(f,w,B,O){f.prototype=Object.create(w.prototype,O),f.prototype.constructor=f,Object.defineProperty(f,"super",{value:w.prototype}),B&&Object.assign(f.prototype,B)},Zt=function(f,w,B,O){var M=void 0,j=void 0,z=void 0,ne={};if(w=w||{},f==null)return w;do{for(M=Object.getOwnPropertyNames(f),j=M.length;j-- >0;)z=M[j],O&&!O(z,f,w)||ne[z]||(w[z]=f[z],ne[z]=!0);f=B!==!1&&Pe(f)}while(f&&(!B||B(f,w))&&f!==Object.prototype);return w},Ft=function(f,w,B){f=String(f),(B===void 0||B>f.length)&&(B=f.length),B-=w.length;var O=f.indexOf(w,B);return O!==-1&&O===B},It=function(f){if(!f)return null;if(se(f))return f;var w=f.length;if(!Be(w))return null;for(var B=new Array(w);w-- >0;)B[w]=f[w];return B},Pt=function(f){return function(w){return f&&w instanceof f}}(typeof Uint8Array<"u"&&Pe(Uint8Array)),dt=function(f,w){for(var B=f&&f[Symbol.iterator],O=B.call(f),M=void 0;(M=O.next())&&!M.done;){var j=M.value;w.call(f,j[0],j[1])}},Ut=function(f,w){for(var B=void 0,O=[];(B=f.exec(w))!==null;)O.push(B);return O},Ht=Q("HTMLFormElement"),Vt=function(f){return f.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(w,B,O){return B.toUpperCase()+O})},ft=function(f){var w=f.hasOwnProperty;return function(B,O){return w.call(B,O)}}(Object.prototype),Qt=Q("RegExp"),Rt=function(f,w){var B=Object.getOwnPropertyDescriptors(f),O={};l(B,function(M,j){w(M,j,f)!==!1&&(O[j]=M)}),Object.defineProperties(f,O)},$t=function(f){Rt(f,function(w,B){if(de(f)&&["arguments","caller","callee"].indexOf(B)!==-1)return!1;var O=f[B];if(de(O)){if(w.enumerable=!1,"writable"in w)return void(w.writable=!1);w.set||(w.set=function(){throw Error("Can not rewrite read-only method '"+B+"'")})}})},nt=function(f,w){var B={},O=function(M){M.forEach(function(j){B[j]=!0})};return O(se(f)?f:String(f).split(w)),B},Yt=function(){},qt=function(f,w){return f=+f,Number.isFinite(f)?f:w},rt="abcdefghijklmnopqrstuvwxyz",it={DIGIT:"0123456789",ALPHA:rt,ALPHA_DIGIT:rt+rt.toUpperCase()+"0123456789"},zt=function(){for(var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:it.ALPHA_DIGIT,B="",O=w.length;f--;)B+=w[Math.random()*O|0];return B},Ot=function(f){var w=new Array(10);return function B(O,M){if(xe(O)){if(w.indexOf(O)>=0)return;if(!("toJSON"in O)){w[M]=O;var j=se(O)?[]:{};return l(O,function(z,ne){var le=B(z,M+1);!ie(le)&&(j[ne]=le)}),w[M]=void 0,j}}return O}(f,0)},Kt=Q("AsyncFunction"),Dt=function(f){return f&&(xe(f)||de(f))&&de(f.then)&&de(f.catch)},H={isArray:se,isArrayBuffer:ge,isBuffer:s,isFormData:et,isArrayBufferView:a,isString:be,isNumber:Be,isBoolean:Ye,isObject:xe,isPlainObject:De,isUndefined:ie,isDate:xt,isFile:Ct,isBlob:St,isRegExp:Qt,isFunction:de,isStream:At,isURLSearchParams:pt,isTypedArray:Pt,isFileList:wt,forEach:l,merge:c,extend:Nt,trim:Lt,stripBOM:Gt,inherits:tt,toFlatObject:Zt,kindOf:X,kindOfTest:Q,endsWith:Ft,toArray:It,forEachEntry:dt,matchAll:Ut,isHTMLForm:Ht,hasOwnProperty:ft,hasOwnProp:ft,reduceDescriptors:Rt,freezeMethods:$t,toObjectSet:nt,toCamelCase:Vt,noop:Yt,toFiniteNumber:qt,findKey:u,global:kt,isContextDefined:Bt,ALPHABET:it,generateString:zt,isSpecCompliantForm:h,toJSONObject:Ot,isAsyncFn:Kt,isThenable:Dt};H.inherits(p,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:H.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var gt=p.prototype,mt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(function(f){mt[f]={value:f}}),Object.defineProperties(p,mt),Object.defineProperty(gt,"isAxiosError",{value:!0}),p.from=function(f,w,B,O,M,j){var z=Object.create(gt);return H.toFlatObject(f,z,function(ne){return ne!==Error.prototype},function(ne){return ne!=="isAxiosError"}),p.call(z,f.message,w,B,O,M),z.cause=f,z.name=f.name,j&&Object.assign(z,j),z};var yt=H.toFlatObject(H,{},null,function(f){return/^is[A-Z]/.test(f)}),Ve=I.prototype;Ve.append=function(f,w){this._pairs.push([f,w])},Ve.toString=function(f){var w=f?function(B){return f.call(this,B,C)}:C;return this._pairs.map(function(B){return w(B[0])+"="+w(B[1])},"").join("&")};var Xe=function(){function f(){classCallCheck(this,f),this.handlers=[]}return f.prototype.use=function(w,B,O){return this.handlers.push({fulfilled:w,rejected:B,synchronous:!!O&&O.synchronous,runWhen:O?O.runWhen:null}),this.handlers.length-1},f.prototype.eject=function(w){this.handlers[w]&&(this.handlers[w]=null)},f.prototype.clear=function(){this.handlers&&(this.handlers=[])},f.prototype.forEach=function(w){H.forEach(this.handlers,function(B){B!==null&&w(B)})},f}(),Ke=Xe,Je={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vt=typeof URLSearchParams<"u"?URLSearchParams:I,Wt=typeof FormData<"u"?FormData:null,Xt=typeof Blob<"u"?Blob:null,ot=function(){var f=void 0;return(typeof navigator>"u"||(f=navigator.product)!=="ReactNative"&&f!=="NativeScript"&&f!=="NS")&&typeof window<"u"&&typeof document<"u"}(),je=function(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function"}(),Ie={isBrowser:!0,classes:{URLSearchParams:vt,FormData:Wt,Blob:Xt},isStandardBrowserEnv:ot,isStandardBrowserWebWorkerEnv:je,protocols:["http","https","file","blob","url","data"]},Qe={"Content-Type":void 0},Me={transitional:Je,adapter:["xhr","http"],transformRequest:[function(f,w){var B=w.getContentType()||"",O=B.indexOf("application/json")>-1,M=H.isObject(f);if(M&&H.isHTMLForm(f)&&(f=new FormData(f)),H.isFormData(f))return O&&O?JSON.stringify(m(f)):f;if(H.isArrayBuffer(f)||H.isBuffer(f)||H.isStream(f)||H.isFile(f)||H.isBlob(f))return f;if(H.isArrayBufferView(f))return f.buffer;if(H.isURLSearchParams(f))return w.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),f.toString();var j=void 0;if(M){if(B.indexOf("application/x-www-form-urlencoded")>-1)return F(f,this.formSerializer).toString();if((j=H.isFileList(f))||B.indexOf("multipart/form-data")>-1){var z=this.env&&this.env.FormData;return b(j?{"files[]":f}:f,z&&new z,this.formSerializer)}}return M||O?(w.setContentType("application/json",!1),E(f)):f}],transformResponse:[function(f){var w=this.transitional||Me.transitional,B=w&&w.forcedJSONParsing,O=this.responseType==="json";if(f&&H.isString(f)&&(B&&!this.responseType||O)){var M=w&&w.silentJSONParsing,j=!M&&O;try{return JSON.parse(f)}catch(z){if(j)throw z.name==="SyntaxError"?p.from(z,p.ERR_BAD_RESPONSE,this,null,this.response):z}}return f}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ie.classes.FormData,Blob:Ie.classes.Blob},validateStatus:function(f){return f>=200&&f<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};H.forEach(["delete","get","head"],function(f){Me.headers[f]={}}),H.forEach(["post","put","patch"],function(f){Me.headers[f]=H.merge(Qe)});var qe=Me,Ne=H.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ue=function(f){var w={},B=void 0,O=void 0,M=void 0;return f&&f.split(`
|
|
35
|
+
`).forEach(function(j){M=j.indexOf(":"),B=j.substring(0,M).trim().toLowerCase(),O=j.substring(M+1).trim(),!B||w[B]&&Ne[B]||(B==="set-cookie"?w[B]?w[B].push(O):w[B]=[O]:w[B]=w[B]?w[B]+", "+O:O)}),w},_t=Symbol("internals"),jt=function(f){return/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(f.trim())},ze=function(){function f(w){classCallCheck(this,f),w&&this.set(w)}return f.prototype.set=function(w,B,O){function M(ne,le,te){var ce=k(le);if(!ce)throw new Error("header name must be a non-empty string");var _e=H.findKey(j,ce);(!_e||j[_e]===void 0||te===!0||te===void 0&&j[_e]!==!1)&&(j[_e||le]=D(ne))}var j=this,z=function(ne,le){return H.forEach(ne,function(te,ce){return M(te,ce,le)})};return H.isPlainObject(w)||w instanceof this.constructor?z(w,B):H.isString(w)&&(w=w.trim())&&!jt(w)?z(Ue(w),B):w!=null&&M(B,w,O),this},f.prototype.get=function(w,B){if(w=k(w)){var O=H.findKey(this,w);if(O){var M=this[O];if(!B)return M;if(B===!0)return L(M);if(H.isFunction(B))return B.call(this,M,O);if(H.isRegExp(B))return B.exec(M);throw new TypeError("parser must be boolean|regexp|function")}}},f.prototype.has=function(w,B){if(w=k(w)){var O=H.findKey(this,w);return!(!O||this[O]===void 0||B&&!G(this,this[O],O,B))}return!1},f.prototype.delete=function(w,B){function O(z){if(z=k(z)){var ne=H.findKey(M,z);!ne||B&&!G(M,M[ne],ne,B)||(delete M[ne],j=!0)}}var M=this,j=!1;return H.isArray(w)?w.forEach(O):O(w),j},f.prototype.clear=function(w){for(var B=Object.keys(this),O=B.length,M=!1;O--;){var j=B[O];w&&!G(this,this[j],j,w,!0)||(delete this[j],M=!0)}return M},f.prototype.normalize=function(w){var B=this,O={};return H.forEach(this,function(M,j){var z=H.findKey(O,j);if(z)return B[z]=D(M),void delete B[j];var ne=w?Y(j):String(j).trim();ne!==j&&delete B[j],B[ne]=D(M),O[ne]=!0}),this},f.prototype.concat=function(){for(var w,B=arguments.length,O=Array(B),M=0;M<B;M++)O[M]=arguments[M];return(w=this.constructor).concat.apply(w,[this].concat(O))},f.prototype.toJSON=function(w){var B=Object.create(null);return H.forEach(this,function(O,M){O!=null&&O!==!1&&(B[M]=w&&H.isArray(O)?O.join(", "):O)}),B},f.prototype[Symbol.iterator]=function(){return Object.entries(this.toJSON())[Symbol.iterator]()},f.prototype.toString=function(){return Object.entries(this.toJSON()).map(function(w){return w[0]+": "+w[1]}).join(`
|
|
36
|
+
`)},f.from=function(w){return w instanceof this?w:new this(w)},f.concat=function(w){for(var B=new this(w),O=arguments.length,M=Array(O>1?O-1:0),j=1;j<O;j++)M[j-1]=arguments[j];return M.forEach(function(z){return B.set(z)}),B},f.accessor=function(w){function B(z){var ne=k(z);M[ne]||(ae(j,z),M[ne]=!0)}var O=this[_t]=this[_t]={accessors:{}},M=O.accessors,j=this.prototype;return H.isArray(w)?w.forEach(B):B(w),this},createClass(f,[{key:Symbol.toStringTag,get:function(){return"AxiosHeaders"}}]),f}();ze.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),H.freezeMethods(ze.prototype),H.freezeMethods(ze);var we=ze;H.inherits(fe,p,{__CANCEL__:!0});var st=Ie.isStandardBrowserEnv?function(){return{write:function(f,w,B,O,M,j){var z=[];z.push(f+"="+encodeURIComponent(w)),H.isNumber(B)&&z.push("expires="+new Date(B).toGMTString()),H.isString(O)&&z.push("path="+O),H.isString(M)&&z.push("domain="+M),j===!0&&z.push("secure"),document.cookie=z.join("; ")},read:function(f){var w=document.cookie.match(new RegExp("(^|;\\s*)("+f+")=([^;]*)"));return w?decodeURIComponent(w[3]):null},remove:function(f){this.write(f,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),bt=Ie.isStandardBrowserEnv?function(){function f(M){var j=M;return w&&(B.setAttribute("href",j),j=B.href),B.setAttribute("href",j),{href:B.href,protocol:B.protocol?B.protocol.replace(/:$/,""):"",host:B.host,search:B.search?B.search.replace(/^\?/,""):"",hash:B.hash?B.hash.replace(/^#/,""):"",hostname:B.hostname,port:B.port,pathname:B.pathname.charAt(0)==="/"?B.pathname:"/"+B.pathname}}var w=/(msie|trident)/i.test(navigator.userAgent),B=document.createElement("a"),O=void 0;return O=f(window.location.href),function(M){var j=H.isString(M)?f(M):M;return j.protocol===O.protocol&&j.host===O.host}}():function(){return function(){return!0}}(),Tt=typeof XMLHttpRequest<"u",Et=Tt&&function(f){return new Promise(function(w,B){function O(){f.cancelToken&&f.cancelToken.unsubscribe(le),f.signal&&f.signal.removeEventListener("abort",le)}function M(){if(te){var ve=we.from("getAllResponseHeaders"in te&&te.getAllResponseHeaders()),Oe=ne&&ne!=="text"&&ne!=="json"?te.response:te.responseText,Ze={data:Oe,status:te.status,statusText:te.statusText,headers:ve,config:f,request:te};U(function(Se){w(Se),O()},function(Se){B(Se),O()},Ze),te=null}}var j=f.data,z=we.from(f.headers).normalize(),ne=f.responseType,le=void 0;H.isFormData(j)&&(Ie.isStandardBrowserEnv||Ie.isStandardBrowserWebWorkerEnv?z.setContentType(!1):z.setContentType("multipart/form-data;",!1));var te=new XMLHttpRequest;if(f.auth){var ce=f.auth.username||"",_e=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";z.set("Authorization","Basic "+btoa(ce+":"+_e))}var Ce=W(f.baseURL,f.url);if(te.open(f.method.toUpperCase(),x(Ce,f.params,f.paramsSerializer),!0),te.timeout=f.timeout,"onloadend"in te?te.onloadend=M:te.onreadystatechange=function(){te&&te.readyState===4&&(te.status!==0||te.responseURL&&te.responseURL.indexOf("file:")===0)&&setTimeout(M)},te.onabort=function(){te&&(B(new p("Request aborted",p.ECONNABORTED,f,te)),te=null)},te.onerror=function(){B(new p("Network Error",p.ERR_NETWORK,f,te)),te=null},te.ontimeout=function(){var ve=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",Oe=f.transitional||Je;f.timeoutErrorMessage&&(ve=f.timeoutErrorMessage),B(new p(ve,Oe.clarifyTimeoutError?p.ETIMEDOUT:p.ECONNABORTED,f,te)),te=null},Ie.isStandardBrowserEnv){var He=(f.withCredentials||bt(Ce))&&f.xsrfCookieName&&st.read(f.xsrfCookieName);He&&z.set(f.xsrfHeaderName,He)}j===void 0&&z.setContentType(null),"setRequestHeader"in te&&H.forEach(z.toJSON(),function(ve,Oe){te.setRequestHeader(Oe,ve)}),H.isUndefined(f.withCredentials)||(te.withCredentials=!!f.withCredentials),ne&&ne!=="json"&&(te.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&te.addEventListener("progress",ue(f.onDownloadProgress,!0)),typeof f.onUploadProgress=="function"&&te.upload&&te.upload.addEventListener("progress",ue(f.onUploadProgress)),(f.cancelToken||f.signal)&&(le=function(ve){te&&(B(!ve||ve.type?new fe(null,f,te):ve),te.abort(),te=null)},f.cancelToken&&f.cancelToken.subscribe(le),f.signal&&(f.signal.aborted?le():f.signal.addEventListener("abort",le)));var pe=V(Ce);if(pe&&Ie.protocols.indexOf(pe)===-1)return void B(new p("Unsupported protocol "+pe+":",p.ERR_BAD_REQUEST,f));te.send(j||null)})},We={http:null,xhr:Et};H.forEach(We,function(f,w){if(f){try{Object.defineProperty(f,"name",{value:w})}catch{}Object.defineProperty(f,"adapterName",{value:w})}});var at={getAdapter:function(f){f=H.isArray(f)?f:[f];for(var w=f,B=w.length,O=void 0,M=void 0,j=0;j<B&&(O=f[j],!(M=H.isString(O)?We[O.toLowerCase()]:O));j++);if(!M)throw M===!1?new p("Adapter "+O+" is not supported by the environment","ERR_NOT_SUPPORT"):new Error(H.hasOwnProp(We,O)?"Adapter '"+O+"' is not available in the build":"Unknown adapter '"+O+"'");if(!H.isFunction(M))throw new TypeError("adapter is not a function");return M},adapters:We},Ge=function(f){return f instanceof we?f.toJSON():f},Mt="1.4.0",lt={};["object","boolean","number","function","string","symbol"].forEach(function(f,w){lt[f]=function(B){return(B===void 0?"undefined":_typeof(B))===f||"a"+(w<1?"n ":" ")+f}});var ut={};lt.transitional=function(f,w,B){function O(M,j){return"[Axios v"+Mt+"] Transitional option '"+M+"'"+j+(B?". "+B:"")}return function(M,j,z){if(f===!1)throw new p(O(j," has been removed"+(w?" in "+w:"")),p.ERR_DEPRECATED);return w&&!ut[j]&&(ut[j]=!0),!f||f(M,j,z)}};var ct={assertOptions:Ee,validators:lt},$e=ct.validators,ht=function(){function f(w){classCallCheck(this,f),this.defaults=w,this.interceptors={request:new Ke,response:new Ke}}return f.prototype.request=function(w,B){typeof w=="string"?(B=B||{},B.url=w):B=w||{},B=me(this.defaults,B);var O=B,M=O.transitional,j=O.paramsSerializer,z=O.headers;M!==void 0&&ct.assertOptions(M,{silentJSONParsing:$e.transitional($e.boolean),forcedJSONParsing:$e.transitional($e.boolean),clarifyTimeoutError:$e.transitional($e.boolean)},!1),j!=null&&(H.isFunction(j)?B.paramsSerializer={serialize:j}:ct.assertOptions(j,{encode:$e.function,serialize:$e.function},!0)),B.method=(B.method||this.defaults.method||"get").toLowerCase();var ne=void 0;ne=z&&H.merge(z.common,z[B.method]),ne&&H.forEach(["delete","get","head","post","put","patch","common"],function(Se){delete z[Se]}),B.headers=we.concat(ne,z);var le=[],te=!0;this.interceptors.request.forEach(function(Se){typeof Se.runWhen=="function"&&Se.runWhen(B)===!1||(te=te&&Se.synchronous,le.unshift(Se.fulfilled,Se.rejected))});var ce=[];this.interceptors.response.forEach(function(Se){ce.push(Se.fulfilled,Se.rejected)});var _e=void 0,Ce=0,He=void 0;if(!te){var pe=[Re.bind(this),void 0];for(pe.unshift.apply(pe,le),pe.push.apply(pe,ce),He=pe.length,_e=Promise.resolve(B);Ce<He;)_e=_e.then(pe[Ce++],pe[Ce++]);return _e}He=le.length;var ve=B;for(Ce=0;Ce<He;){var Oe=le[Ce++],Ze=le[Ce++];try{ve=Oe(ve)}catch(Se){Ze.call(this,Se);break}}try{_e=Re.call(this,ve)}catch(Se){return Promise.reject(Se)}for(Ce=0,He=ce.length;Ce<He;)_e=_e.then(ce[Ce++],ce[Ce++]);return _e},f.prototype.getUri=function(w){return w=me(this.defaults,w),x(W(w.baseURL,w.url),w.params,w.paramsSerializer)},f}();H.forEach(["delete","get","head","options"],function(f){ht.prototype[f]=function(w,B){return this.request(me(B||{},{method:f,url:w,data:(B||{}).data}))}}),H.forEach(["post","put","patch"],function(f){function w(B){return function(O,M,j){return this.request(me(j||{},{method:f,headers:B?{"Content-Type":"multipart/form-data"}:{},url:O,data:M}))}}ht.prototype[f]=w(),ht.prototype[f+"Form"]=w(!0)});var S=ht,A=function(){function f(w){if(classCallCheck(this,f),typeof w!="function")throw new TypeError("executor must be a function.");var B=void 0;this.promise=new Promise(function(M){B=M});var O=this;this.promise.then(function(M){if(O._listeners){for(var j=O._listeners.length;j-- >0;)O._listeners[j](M);O._listeners=null}}),this.promise.then=function(M){var j=void 0,z=new Promise(function(ne){O.subscribe(ne),j=ne}).then(M);return z.cancel=function(){O.unsubscribe(j)},z},w(function(M,j,z){O.reason||(O.reason=new fe(M,j,z),B(O.reason))})}return f.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},f.prototype.subscribe=function(w){if(this.reason)return void w(this.reason);this._listeners?this._listeners.push(w):this._listeners=[w]},f.prototype.unsubscribe=function(w){if(this._listeners){var B=this._listeners.indexOf(w);B!==-1&&this._listeners.splice(B,1)}},f.source=function(){var w=void 0;return{token:new f(function(B){w=B}),cancel:w}},f}(),R=A,Z={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Z).forEach(function(f){var w=f[0],B=f[1];Z[B]=w});var K=Z,ee=Fe(qe);ee.Axios=S,ee.CanceledError=fe,ee.CancelToken=R,ee.isCancel=ke,ee.VERSION=Mt,ee.toFormData=b,ee.AxiosError=p,ee.Cancel=ee.CanceledError,ee.all=function(f){return Promise.all(f)},ee.spread=ye,ee.isAxiosError=Ae,ee.mergeConfig=me,ee.AxiosHeaders=we,ee.formToJSON=function(f){return m(H.isHTMLForm(f)?new FormData(f):f)},ee.HttpStatusCode=K,ee.default=ee,r.exports=ee}},__webpack_module_cache__={};(function(){__webpack_require__.d=function(r,t){for(var e in t)__webpack_require__.o(t,e)&&!__webpack_require__.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:t[e]})}})(),function(){__webpack_require__.g=function(){if((typeof globalThis>"u"?"undefined":_typeof(globalThis))==="object")return globalThis;try{return this||new Function("return this")()}catch{if((typeof window>"u"?"undefined":_typeof(window))==="object")return window}}()}(),function(){__webpack_require__.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)}}(),function(){__webpack_require__.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})}}();var __webpack_exports__={};return function(){function r(d){return d&&d.__esModule?d:{default:d}}function t(d){"@babel/helpers - typeof";return(t=typeof Symbol=="function"&&_typeof(Symbol.iterator)=="symbol"?function(m){return m===void 0?"undefined":_typeof(m)}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":m===void 0?"undefined":_typeof(m)})(d)}function e(){function d(X,Q,J){return Object.defineProperty(X,Q,{value:J,enumerable:!0,configurable:!0,writable:!0}),X[Q]}function m(X,Q,J,se){var ie=Q&&Q.prototype instanceof k?Q:k,ge=Object.create(ie.prototype),be=new U(se||[]);return ue(ge,"_invoke",{value:ae(X,J,be)}),ge}function E(X,Q,J){try{return{type:"normal",arg:X.call(Q,J)}}catch(se){return{type:"throw",arg:se}}}function k(){}function D(){}function L(){}function G(X){["next","throw","return"].forEach(function(Q){d(X,Q,function(J){return this._invoke(Q,J)})})}function Y(X,Q){function J(ie,ge,be,de){var Be=E(X[ie],X,ge);if(Be.type!=="throw"){var xe=Be.arg,Ye=xe.value;return Ye&&t(Ye)=="object"&&oe.call(Ye,"__await")?Q.resolve(Ye.__await).then(function(De){J("next",De,be,de)},function(De){J("throw",De,be,de)}):Q.resolve(Ye).then(function(De){xe.value=De,be(xe)},function(De){return J("throw",De,be,de)})}de(Be.arg)}var se;ue(this,"_invoke",{value:function(ie,ge){function be(){return new Q(function(de,Be){J(ie,ge,de,Be)})}return se=se?se.then(be,be):be()}})}function ae(X,Q,J){var se="suspendedStart";return function(ie,ge){if(se==="executing")throw new Error("Generator is already running");if(se==="completed"){if(ie==="throw")throw ge;return re()}for(J.method=ie,J.arg=ge;;){var be=J.delegate;if(be){var de=he(be,J);if(de){if(de===ye)continue;return de}}if(J.method==="next")J.sent=J._sent=J.arg;else if(J.method==="throw"){if(se==="suspendedStart")throw se="completed",J.arg;J.dispatchException(J.arg)}else J.method==="return"&&J.abrupt("return",J.arg);se="executing";var Be=E(X,Q,J);if(Be.type==="normal"){if(se=J.done?"completed":"suspendedYield",Be.arg===ye)continue;return{value:Be.arg,done:J.done}}Be.type==="throw"&&(se="completed",J.method="throw",J.arg=Be.arg)}}}function he(X,Q){var J=Q.method,se=X.iterator[J];if(se===void 0)return Q.delegate=null,J==="throw"&&X.iterator.return&&(Q.method="return",Q.arg=void 0,he(X,Q),Q.method==="throw")||J!=="return"&&(Q.method="throw",Q.arg=new TypeError("The iterator does not provide a '"+J+"' method")),ye;var ie=E(se,X.iterator,Q.arg);if(ie.type==="throw")return Q.method="throw",Q.arg=ie.arg,Q.delegate=null,ye;var ge=ie.arg;return ge?ge.done?(Q[X.resultName]=ge.value,Q.next=X.nextLoc,Q.method!=="return"&&(Q.method="next",Q.arg=void 0),Q.delegate=null,ye):ge:(Q.method="throw",Q.arg=new TypeError("iterator result is not an object"),Q.delegate=null,ye)}function ke(X){var Q={tryLoc:X[0]};1 in X&&(Q.catchLoc=X[1]),2 in X&&(Q.finallyLoc=X[2],Q.afterLoc=X[3]),this.tryEntries.push(Q)}function fe(X){var Q=X.completion||{};Q.type="normal",delete Q.arg,X.completion=Q}function U(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(ke,this),this.reset(!0)}function q(X){if(X){var Q=X[Re];if(Q)return Q.call(X);if(typeof X.next=="function")return X;if(!isNaN(X.length)){var J=-1,se=function ie(){for(;++J<X.length;)if(oe.call(X,J))return ie.value=X[J],ie.done=!1,ie;return ie.value=void 0,ie.done=!0,ie};return se.next=se}}return{next:re}}function re(){return{value:void 0,done:!0}}e=function(){return W};var W={},V=Object.prototype,oe=V.hasOwnProperty,ue=Object.defineProperty||function(X,Q,J){X[Q]=J.value},Te=typeof Symbol=="function"?Symbol:{},Re=Te.iterator||"@@iterator",me=Te.asyncIterator||"@@asyncIterator",Ee=Te.toStringTag||"@@toStringTag";try{d({},"")}catch{d=function(Q,J,se){return Q[J]=se}}W.wrap=m;var ye={},Ae={};d(Ae,Re,function(){return this});var Fe=Object.getPrototypeOf,Le=Fe&&Fe(Fe(q([])));Le&&Le!==V&&oe.call(Le,Re)&&(Ae=Le);var Pe=L.prototype=k.prototype=Object.create(Ae);return D.prototype=L,ue(Pe,"constructor",{value:L,configurable:!0}),ue(L,"constructor",{value:D,configurable:!0}),D.displayName=d(L,Ee,"GeneratorFunction"),W.isGeneratorFunction=function(X){var Q=typeof X=="function"&&X.constructor;return!!Q&&(Q===D||(Q.displayName||Q.name)==="GeneratorFunction")},W.mark=function(X){return Object.setPrototypeOf?Object.setPrototypeOf(X,L):(X.__proto__=L,d(X,Ee,"GeneratorFunction")),X.prototype=Object.create(Pe),X},W.awrap=function(X){return{__await:X}},G(Y.prototype),d(Y.prototype,me,function(){return this}),W.AsyncIterator=Y,W.async=function(X,Q,J,se,ie){ie===void 0&&(ie=Promise);var ge=new Y(m(X,Q,J,se),ie);return W.isGeneratorFunction(Q)?ge:ge.next().then(function(be){return be.done?be.value:ge.next()})},G(Pe),d(Pe,Ee,"Generator"),d(Pe,Re,function(){return this}),d(Pe,"toString",function(){return"[object Generator]"}),W.keys=function(X){var Q=Object(X),J=[];for(var se in Q)J.push(se);return J.reverse(),function ie(){for(;J.length;){var ge=J.pop();if(ge in Q)return ie.value=ge,ie.done=!1,ie}return ie.done=!0,ie}},W.values=q,U.prototype={constructor:U,reset:function(X){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(fe),!X)for(var Q in this)Q.charAt(0)==="t"&&oe.call(this,Q)&&!isNaN(+Q.slice(1))&&(this[Q]=void 0)},stop:function(){this.done=!0;var X=this.tryEntries[0].completion;if(X.type==="throw")throw X.arg;return this.rval},dispatchException:function(X){function Q(Be,xe){return ge.type="throw",ge.arg=X,J.next=Be,xe&&(J.method="next",J.arg=void 0),!!xe}if(this.done)throw X;for(var J=this,se=this.tryEntries.length-1;se>=0;--se){var ie=this.tryEntries[se],ge=ie.completion;if(ie.tryLoc==="root")return Q("end");if(ie.tryLoc<=this.prev){var be=oe.call(ie,"catchLoc"),de=oe.call(ie,"finallyLoc");if(be&&de){if(this.prev<ie.catchLoc)return Q(ie.catchLoc,!0);if(this.prev<ie.finallyLoc)return Q(ie.finallyLoc)}else if(be){if(this.prev<ie.catchLoc)return Q(ie.catchLoc,!0)}else{if(!de)throw new Error("try statement without catch or finally");if(this.prev<ie.finallyLoc)return Q(ie.finallyLoc)}}}},abrupt:function(X,Q){for(var J=this.tryEntries.length-1;J>=0;--J){var se=this.tryEntries[J];if(se.tryLoc<=this.prev&&oe.call(se,"finallyLoc")&&this.prev<se.finallyLoc){var ie=se;break}}ie&&(X==="break"||X==="continue")&&ie.tryLoc<=Q&&Q<=ie.finallyLoc&&(ie=null);var ge=ie?ie.completion:{};return ge.type=X,ge.arg=Q,ie?(this.method="next",this.next=ie.finallyLoc,ye):this.complete(ge)},complete:function(X,Q){if(X.type==="throw")throw X.arg;return X.type==="break"||X.type==="continue"?this.next=X.arg:X.type==="return"?(this.rval=this.arg=X.arg,this.method="return",this.next="end"):X.type==="normal"&&Q&&(this.next=Q),ye},finish:function(X){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var J=this.tryEntries[Q];if(J.finallyLoc===X)return this.complete(J.completion,J.afterLoc),fe(J),ye}},catch:function(X){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var J=this.tryEntries[Q];if(J.tryLoc===X){var se=J.completion;if(se.type==="throw"){var ie=se.arg;fe(J)}return ie}}throw new Error("illegal catch attempt")},delegateYield:function(X,Q,J){return this.delegate={iterator:q(X),resultName:Q,nextLoc:J},this.method==="next"&&(this.arg=void 0),ye}},W}function n(d,m,E,k,D,L,G){try{var Y=d[L](G),ae=Y.value}catch(he){return void E(he)}Y.done?m(ae):Promise.resolve(ae).then(k,D)}function s(d){return function(){var m=this,E=arguments;return new Promise(function(k,D){function L(ae){n(Y,k,D,L,G,"next",ae)}function G(ae){n(Y,k,D,L,G,"throw",ae)}var Y=d.apply(m,E);L(void 0)})}}function a(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function l(d,m){for(var E=0;E<m.length;E++){var k=m[E];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(d,h(k.key),k)}}function u(d,m,E){return m&&l(d.prototype,m),E&&l(d,E),Object.defineProperty(d,"prototype",{writable:!1}),d}function c(d,m,E){return m=h(m),m in d?Object.defineProperty(d,m,{value:E,enumerable:!0,configurable:!0,writable:!0}):d[m]=E,d}function h(d){var m=p(d,"string");return t(m)==="symbol"?m:String(m)}function p(d,m){if(t(d)!=="object"||d===null)return d;var E=d[Symbol.toPrimitive];if(E!==void 0){var k=E.call(d,m||"default");if(t(k)!=="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(d)}var g=__webpack_exports__,v=__webpack_require__("./node_modules/@tencent/js-armor-loader/dist/runtime.js");Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var y=r(__webpack_require__("./node_modules/jsencrypt/lib/index.js")),_=__webpack_require__("./utils.js"),b=__webpack_require__("./utils/index.js"),C=r(__webpack_require__("./utils/aes.js")),I=r(__webpack_require__("./node_modules/md5/md5.js")),N=r(__webpack_require__("./node_modules/axios/dist/browser/axios.cjs")),x={VR:"https://tcplayer.vcube.tencent.com/release/tcplayer-vr-plugin.1.0.0.js",SafeCheck:"https://web.sdk.qcloud.com/player/tcplayer/release/v5.0.0/plugins/tcplayer-safe-check-plugin.1.0.0.js",Crypto:"https://web.sdk.qcloud.com/player/tcplayer/release/v5.0.0/libs/tcpcrypto.1.0.0.js"},F=function(){function d(){var m=this;a(this,d),c(this,"handleWatermarkElementAdd",function(E){return v.g(v.v(0,v.d(["RQQiAiIDLUBFAyICAQAVPwZvBnAGdAZpBm8GbgZzOj8GawZlBmUGcDo7OUBURAEVPwZhBmQGZAZHBmgGbwZzBnQGTQZhBnIGazoBAAsmARMtIhMBABU/BnAGbAZhBnkGZQZyOj8GJDo/Bi4GdAZjBnAGLQZkBnkGbgZhBm0GaQZjBi0GdwZhBnQGZQZyBm0GYQZyBmsGLQZjBm8GbgZ0BmEGaQZuBmUGciYBOUBEABU/BnAGbAZhBnkGZQZyOj8GJDo/Bi4GdAZjBnAGLQZkBnkGbgZhBm0GaQZjBi0GdwZhBnQGZQZyBm0GYQZyBmsGLQZjBm8GbgZ0BmUGbgZ0JgE5QBMtQBMBABU/BmMGbwZuBnQGYQZpBm4GZQZyBkUGbAZlBm0GZQZuBnQ6PwZhBnAGcAZlBm4GZAZDBmgGaQZsBmQ6AQAVPwZtBmEGcgZrBkMGbwZuBnQGZQZuBnQGRQZsBmUGbQZlBm4GdDo7JgETLRgTAQAVPwZwBmwGYQZ5BmUGcjo/BmUGbDomAEAtLRMBABU/BnAGbAZhBnkGZQZyOj8GZQZsOiYAPwZhBnAGcAZlBm4GZAZDBmgGaQZsBmQgAQAVPwZjBm8GbgZ0BmEGaQZuBmUGcgZFBmwGZQZtBmUGbgZ0OjsmARMpED4DAgkAABQTEykQ",[7,501,82,499,175,377,262,267,265,499,375,499,404,408,406,498]]),[function(){return E===void 0?void 0:E},function(){return m===void 0?void 0:m}])).call(this)}),c(this,"addGhostMark",function(E){var k=m;E.waterMarkWillAdd||(E.waterMarkWillAdd=!0,setTimeout(function(){E.player&&E.player.el()&&E.player.el().appendChild(E.containerElement),E.waterMarkWillAdd=!1,E.isFirstShow=!1,E.watermarkCheckTimer=setInterval(function(){var D=document.getElementsByClassName("tcp-dynamic-watermark-container")[0];(0,b.isVisible)(D)&&(0,b.isVisible)(D.firstChild)||(k.unloadTechAndTriggerError(62,E),clearInterval(E.watermarkCheckTimer))},1e3)},1e3*(E.isFirstShow?E.ghostCycle.firstShow:E.ghostCycle.ghostOff)))}),c(this,"removeWaterMark",function(E){E.options.keep&&(E.waterMarkWillRemove||(E.waterMarkWillRemove=!0,setTimeout(function(){clearInterval(E.watermarkCheckTimer),E.player&&E.player.el()&&player.el().removeChild(E.containerElement),E.waterMarkWillRemove=!1},1e3*E.ghostCycle.ghostOn)))})}return u(d,[{key:"initPlugins",value:function(m,E,k){return v.g(v.v(0,v.d(["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",[7,1544,51,901,200,532,377,381,379,435,461,521,522,463,544,694,695,546,706,739,721,731,729,737,740,708,805,893,811,815,813,818,819,824,822,837,868,881,882,870,891,899,943,1157,977,1139,1019,1097,1095,1155,1137,1155,1158,945,1192,1531,1226,1518,1278,1283,1281,1348,1373,1478,1421,1466,1467,1423,1476,1516,1519,1228,1532,1194]]),[function(){return k===void 0?void 0:k},function(){return typeof console>"u"?void 0:console},function(){return E===void 0?void 0:E},function(){return typeof window>"u"?void 0:window},function(){return x===void 0?void 0:x},function(){return _===void 0?void 0:_},function(){return typeof Object>"u"?void 0:Object},function(){return m===void 0?void 0:m},function(){return typeof Error>"u"?void 0:Error}])).call(this)}},{key:"unloadTechAndTriggerError",value:function(m,E){return v.g(v.v(0,v.d(["RQQiAiIDLQFFBCICIgM+Az4APwZwBmwGYQZ5BmUGcgo7QDZEABU/BnAGbAZhBnkGZQZyOjsUExM+Az8GbAZpBmMGZQZuBnMGZQZDBmgGZQZjBmsGRgZhBmkGbAZlBmQKIRkTEz4DPwZlBnIGcgZvBnIKAQELJAAOPwZjBm8GZAZlIAECCxkTEyYBEz4DPwZ1Bm4GbAZvBmEGZAohJgETPgM/BmMGaAZpBmwGZAZyBmUGbgZfCgEAOj8GbgZvBmQGZQZOBmEGbQZlOjs/BlYGSQZEBkUGTyNA3hMtJBM+Az8GYwZoBmkGbAZkBnIGZQZuBl8KAQA6PwZyBmUGbQZvBnYGZTomABM2ED4DAgkAABQTEykQ",[7,267,220,265]]),[function(){return E===void 0?void 0:E},function(){return typeof Object>"u"?void 0:Object},function(){return m===void 0?void 0:m}])).call(this)}},{key:"checkLicense",value:function(){function m(k,D){return E.apply(this,arguments)}var E=s(e().mark(function k(D,L){return v.g(v.v(0,v.d(["RQQiAiIDLRZFGiICIgMiBCIFIgYiByIIIgkiCiILIgwiDSIOIg8iECIRIhIiEyIUIhUiFiIXIhgiGQEAFSYAPwZ3BnIGYQZwIC0iRRsiAiIDPgM/BnAGcgZlBnYKPgM/Bm4GZQZ4BnQKOxkYABMOAQAjQHoTLf09ExM+BAEBFT8GbwZwBnQGaQZvBm4GcwZfOj8GbAZpBmMGZQZuBnMGZQZVBnIGbDo7FBMTPgUBAgskABQTEz4DPwZwBnIGZQZ2CgECGRMTPgM/Bm4GZQZ4BnQKAQUZGAATRAMVPwZkBmUGZgZhBnUGbAZ0Oj8GZwZlBnQ6HQQmARAtGA4BBSNAEy0BExM+Bj4DPwZzBmUGbgZ0CjsUExM+BR0GCCNAEx0GKSNAEz4GPwZkBmEGdAZhCjstJBMpFBMTHQU5QBMtLRM+AD8GdQZuBmwGbwZhBmQGVAZlBmMGaAZBBm4GZAZUBnIGaQZnBmcGZQZyBkUGcgZyBm8Gcgo/BjUGNiYBEz4DPwZuBmUGeAZ0CgENGRMTLVMGLT0OAQojQBMtNxMTPgM/BnAGcgZlBnYKAQoZExM+Az8GdAYwCj4DPwZjBmEGdAZjBmgKAQImARkTEz4APwZ1Bm4GbAZvBmEGZAZUBmUGYwZoBkEGbgZkBlQGcgZpBmcGZwZlBnIGRQZyBnIGbwZyCj8GNQY2JgETLQEOAQ0jQBMtGBMTPgcBBBU/BnQGYwZwBmMGcgZ5BnAGdAZvOjsUExM+CD4HPwZBBmUGcwZkBmUGYwZyBnkGcAZ0CjsUExM+CT4HPwZTBmkGZwZuBkQGZQZjBnIGeQZwBnQKOxQTEz4KPgc/BmcGZQZuBksGZQZ5CjsUExM+Cz8GYwY0BjkGZgZhBjEGYwY2BjgGNwY0BjMGbgZjBjcGdwYxBjgGNAYzBmMGOAZiBjUGNgYyBjgGbAZwBmIGMQY3FBMTPgw/Bi0GLQYtBi0GLQZCBkUGRwZJBk4GIAZQBlUGQgZMBkkGQwYgBksGRQZZBi0GLQYtBi0GLQZNBkkGSQZCBkkGagZBBk4GQgZnBmsGcQZoBmsGaQZHBjkGdwYwBkIGQQZRBkUGRgZBBkEGTwZDBkEGUQY4BkEGTQZJBkkGQgZDBmcGSwZDBkEGUQZFBkEGcQY0BnQGZQZxBmsGVwYvBlQGVQZyBnUGVQY4BjkGRQZsBk4GVgZkBksGcgZwBlMGTAYrBkgGQwZJBlQGcgZ1BnkGYgY2BkIGUwY5Bm0GVwY2Bk0GNAZtBnEGbQZ4BkQGaAZhBnoGRAZtBlEGZwZNBksGTgZmBnMGQQYwBmQGMgZrBngGRgZ1BmMGQwZzBlgGVAZ5BmUGcwZGBk4GYQZqBmEGaQZzBmsGcgZBBnoGVgZKBnAGTgZHBk8GNwY1BmIGUQZGBmEGcAY0BmoGWQZ6BkoGWQZzBmsGSQZ1BmEGcwY2BmYGZwZJBlMGNwZ6BlMGbQZHBlgGZwZSBmMGcAY2BmkGMAZaBkIGSAYzBnAGawZWBkMGWAZjBmcGZgZMBmYGcwZWBkMGTwYrBnMGTgYwBjEGagZGBmgGRgZnBk8GQwYwBkwGWQYyBmYGMQZwBkoGKwYzBmoGcQZrBnQGQQZsBk0GSQZ4BnkGOAZRBjkGdAY3BlgGdwZ3BkwGNQYvBm4GOAYvBlMGbAZlBmQGcAY3BlQGdwZ1BlIGZAZuBmwGMgZPBlAGbAYzBnkGYwZDBlQGUgZrBlgGdAZPBkkGbwZSBk4GQgY5BnYGZwZkBjkGWAZvBm8GVAZLBmkGRQZkBkMGWAZDBjcGVwY5BnIGeQZ2BnQGdwZDBmkGQQZCBjgGMgZ2BkUGZgZIBlcGWAZYBmcGegZoBnMGUAZDBjEGMwZVBlIGdQZGBnkGMQZKBnEGYgZXBkoGdAZUBkMGQwZjBmYGcwZDBlYGeAZ1BkIGcAZsBmgGVgZKBkEGUQY3BkoGcwZGBjUGUwZNBm4GdAZkBkoGRAZrBnAGNwZyBkoGTAZoBnAGcgZnBnMGYQZpBm0GMgZDBlIGagZjBlYGcwZlBk4GbQZ3BjkGNwZiBncGSQZEBkEGUQZBBkIGLQYtBi0GLQYtBkUGTgZEBiAGUAZVBkIGTAZJBkMGIAZLBkUGWQYtBi0GLQYtBi0UExM+Az8GcAZyBmUGdgoBEBkTEz4NHQo+BT8GYQZwBnAGSQZkCjsdCzcCFBMTPg4BBRU/BnAGYQZyBnMGZTodCD4FPwZlBm4GYwZyBnkGcAZ0BmUGZAZMBmkGYwZlBm4GcwZlBlcGZQZiCjsdDTcCJgEUExM+Dx0JPgU/BmUGbgZjBnIGeQZwBnQGZQZkBkwGaQZjBmUGbgZzBmUGVwZlBmIKOz4FPwZzBmkGZwZuBmEGdAZ1BnIGZQZXBmUGYgo7HQw3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",[7,4565,75,4441,251,265,258,263,261,415,290,296,297,315,313,317,324,329,327,392,413,427,420,425,423,538,536,550,543,548,546,1843,1841,1855,1848,1853,1851,1997,1995,2009,2002,2007,2005,2275,2153,2158,2156,2179,2273,2287,2280,2285,2283,2304,2302,2316,2309,2314,2312,2624,2356,2361,2359,2382,2478,2536,2537,2541,2539,2548,2545,10000001,2550,2555,2553,2576,2622,2636,2629,2634,2632,3103,2850,2854,2852,2857,2858,2863,2861,2959,2903,2956,3005,3052,3054,3059,3057,3080,3101,3115,3108,3113,3111,3165,3119,10000001,3123,3128,3126,3149,3163,3177,3170,3175,3173,3406,3223,3228,3226,3249,3339,3344,3342,3365,3404,3418,3411,3416,3414,3461,3459,3473,3466,3471,3469,3551,3477,3482,3480,3503,3549,3563,3556,3561,3559,3586,3584,3598,3591,3596,3594,3719,3645,3650,3648,3671,3717,3731,3724,3729,3727,3960,3762,3766,3764,3792,3793,3798,3796,3817,3821,3825,3823,3884,3856,3884,3886,3891,3889,3912,3958,3972,3965,3970,3968,4128,4041,4045,4043,4052,4054,4059,4057,4080,4126,4140,4133,4138,4136,4243,4241,4255,4248,4253,4251,4298,4296,4310,4303,4308,4306,4386,4318,4323,4321,4418,4384,4418,4391,4396,4394,4401,4399,4418,4411,4416]]),[function(){return e===void 0?void 0:e},function(){return D===void 0?void 0:D},function(){return typeof Object>"u"?void 0:Object},function(){return N===void 0?void 0:N},function(){return typeof window>"u"?void 0:window},function(){return typeof JSON>"u"?void 0:JSON},function(){return L===void 0?void 0:L},function(){return typeof navigator>"u"?void 0:navigator},function(){return typeof RegExp>"u"?void 0:RegExp},function(){return _===void 0?void 0:_},function(){return typeof Date>"u"?void 0:Date},function(){return typeof String>"u"?void 0:String},function(){return typeof localStorage>"u"?void 0:localStorage},function(){return k===void 0?void 0:k},function(){return typeof Array>"u"?void 0:Array}])).call(this)}));return m}()},{key:"base64ToHex",value:function(m){for(var E=atob(m),k="",D=0;D<E.length;D++){var L=E.charCodeAt(D).toString(16);k+=L.length===2?L:"0"+L}return k}},{key:"checkEnvironment",value:function(){return!(!Hls||!Hls.isSupported())}},{key:"generatePlayCgiUrl",value:function(m,E,k){return v.g(v.v(0,v.d(["RQQiAiIDLSRFCSICIgMiBCIFIgYiByIIPgMBAEQAFT8GZwZlBm4GTwZ2BmUGcgZsBmEGeTo7NwAUExM+BAEARAAVPwZnBmUGbgZPBnYGZQZyBmwGYQZ5Ojs3ABQTEz4FAQEVPwZkBmUGZgZhBnUGbAZ0OhYAFBMTPgY/Bk0GSQZHBmYGTQZBBjAGRwZDBlMGcQZHBlMGSQZiBjMGRAZRBkUGQgZBBlEGVQZBBkEGNAZHBk4GQQZEBkMGQgZpBlEGSwZCBmcGUQZDBjMGcAZEBkEGNwZHBlQGeAZPBnYGTgZiBlgGUgZHBk0GaQY5BlEGUwZJBnoGUQZFBkkGKwZFBk0GRAYxBkgGYwZVBlAGSgZTBlEGUwZGBnUGUgZrBloGawZXBm8GNAZWBlEGRQZDBnUGUAZSBmcGLwZ4BlYGagZxBncGWAYxBnkGVQZyBkgGVQZ2BkcGUQZKBnMGQgZ3BlQGUwYvBjYGTAZJBmMGUQZpBlMGdwZZBnMGTwZxBmYGKwY4BlQGVwZ4BkcGUQZPBkoGeQZXBjQGNgZnBlAGUAZRBlYGegZUBmoGTgZUBmkGVQZvBnEGNAYzBjUGUQZCBjAGdgYxBjEGbAZOBngGdgZLBlcGQgZRBkkGWgZMBm0GYQZjBlUGWgYyBnIGMQZBBlAGdAZhBjcGaQYvBk0GWQY0BkwGeAY5BlgGbAZaBlYGTQZaBk4GVQZkBlUGeQZ3BkkGRAZBBlEGQQZCFBMTPgU/BnMGZQZ0BlAGdQZiBmwGaQZjBksGZQZ5Ch0GJgETPgc+AD8GYgZhBnMGZQY2BjQGVAZvBkgGZQZ4Cj4FPwZlBm4GYwZyBnkGcAZ0Ch0DJgEmARQTEz4IPgA/BmIGYQZzBmUGNgY0BlQGbwZIBmUGeAo+BT8GZQZuBmMGcgZ5BnAGdAodBCYBJgEUE0QCFQ47PwYmBmMGaQZwBmgGZQZyBmUGZAZPBnYGZQZyBmwGYQZ5BksGZQZ5Bj0/BmMGbwZuBmMGYQZ0IB0HPwYmBmMGaQZwBmgGZQZyBmUGZAZPBnYGZQZyBmwGYQZ5BkkGdgY9JgI/BmMGbwZuBmMGYQZ0IB0IPwYmBmsGZQZ5BkkGZAY9BjEmAjUZGAATRAMVPwZJBlMGXwZTBkkGTQZVBkwGQQZUBk8GUjo7OUAtARMBAxU/BkkGUwZfBkUGTgZBBkIGTAZFBkQGXwZNBlMGRTo7QC0tEwEDFT8GSQZTBl8GVAZCBlM6OzlALTcTAQMVPwZJBlMGXwZNBlEGUQZCOjs5QC0WEwEDFT8GSQZFBl8GVgZFBlIGUwZJBk8GTjo7QC1EEwEDFT8GSQZFBl8GVgZFBlIGUwZJBk8GTjo7AQsMOTk5QEQEC0ATLTcTAQIVDjs/BiYGbQZzBmUGPQZvBmYGZjUZGAATRAIVDjs/BiYGcQZzBmkGZwZuBj0BAEQFFT8GZAZlBmYGYQZ1BmwGdDo7PwZvBnYGZQZyBmwGYQZ5BksGZQZ5Bj0/BmMGbwZuBmMGYQZ0IB0DPwYmBm8GdgZlBnIGbAZhBnkGSQZ2Bj0mAj8GYwZvBm4GYwZhBnQgHQQ/BiYGbQZzBmUGPQZvBmYGZiYCNwE1NRkTEz4APwZvBnYGZQZyBmwGYQZ5BksGZQZ5CgEARAAVPwZlBm4GYwZyBnkGcAZ0Bm86Ox0DNwEZExM+AD8GbwZ2BmUGcgZsBmEGeQZJBnYKAQBEABU/BmUGbgZjBnIGeQZwBnQGbzo7HQQ3ARkYABNEAgsQPgMCCQAAFBMTKRA=",[7,1337,876,880,878,1037,916,920,918,940,941,945,943,967,968,972,970,1036,1e3,1004,1002,1035,1038,1042,1043,1048,1046,1224]]),[function(){return _===void 0?void 0:_},function(){return y===void 0?void 0:y},function(){return m===void 0?void 0:m},function(){return E===void 0?void 0:E},function(){return k===void 0?void 0:k},function(){return I===void 0?void 0:I}])).call(this)}},{key:"generateKey",value:function(m){var E,k=new Uint8Array(m);if(this.overlayKey&&this.overlayIv){for(var D=[],L=[],G=0;G<16;G++){var Y=this.overlayKey.substring(2*G,2*G+2),ae=this.overlayIv.substring(2*G,2*G+2);D.push(parseInt(Y,16)),L.push(parseInt(ae,16))}E=new C.default.modeOfOperation.cbc(D,L).decrypt(k)}return E||k}},{key:"calculateGhost",value:function(m){var E,k=m/4;E=k<=15?m/2:k<=450?m/4:450;var D=E/4,L=E-D;return{firstShow:localStorage.getItem("ghostWatermarkFirstShow")||Math.random()*L+.01,ghostOn:D,ghostOff:L}}}]),d}(),P=F;g.default=P}(),__webpack_exports__=__webpack_exports__.default}()})}),Enc=unwrapExports(enc),MediaLoader=function(r){function t(e,n,s){classCallCheck(this,t);var a=mergeOptions({createEl:!1},n),l=possibleConstructorReturn(this,r.call(this,e,a,s));if(n.playerOptions.sources&&n.playerOptions.sources.length!==0)e.src(n.playerOptions.sources);else for(var u=0,c=n.playerOptions.techOrder;u<c.length;u++){var h=toTitleCase(c[u]),p=Tech.getTech(h);if(h||(p=Component.getComponent(h)),p&&p.isSupported()){e.loadTech_(h);break}}return l}return inherits(t,r),t}(Component);Component.registerComponent("MediaLoader",MediaLoader);var ClickableComponent=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.emitTapEvents(),s.enable(),s}return inherits(t,r),t.prototype.createEl=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"div",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};n=assign({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},n),e==="button"&&log$2.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),s=assign({role:"button","aria-live":"polite"},s),this.tabIndex_=n.tabIndex;var a=r.prototype.createEl.call(this,e,n,s);return this.createControlTextEl(a),a},t.prototype.dispose=function(){this.controlTextEl_=null,r.prototype.dispose.call(this)},t.prototype.createControlTextEl=function(e){return this.controlTextEl_=createEl("span",{className:"vjs-control-text"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},t.prototype.controlText=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.el();if(e===void 0)return this.controlText_||"Need Text";var s=this.localize(e);this.controlText_=e,textContent(this.controlTextEl_,s),this.nonIconControl||n.setAttribute("title",s)},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+r.prototype.buildCSSClass.call(this)},t.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),typeof this.tabIndex_<"u"&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},t.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),typeof this.tabIndex_<"u"&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},t.prototype.handleClick=function(e){},t.prototype.handleFocus=function(e){on(document_1,"keydown",bind(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(e){e.which===32||e.which===13?(e.preventDefault(),this.trigger("click")):r.prototype.handleKeyPress&&r.prototype.handleKeyPress.call(this,e)},t.prototype.handleBlur=function(e){off(document_1,"keydown",bind(this,this.handleKeyPress))},t}(Component);Component.registerComponent("ClickableComponent",ClickableComponent);var PosterImage=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.update(),e.on("posterchange",bind(s,s.update)),s}return inherits(t,r),t.prototype.dispose=function(){this.player().off("posterchange",this.update),r.prototype.dispose.call(this)},t.prototype.createEl=function(){var e=createEl("div",{className:"vjs-poster",tabIndex:-1});if(!BACKGROUND_SIZE_SUPPORTED){this.fallbackImg_=createEl("img");var n=this.player().height()||parseInt(this.player().el().style.height);this.player().width()||parseInt(this.player().el().style.width),this.fallbackImg_.onload=function(){this.width,this.height>n&&(this.style.maxHeight=n+"px",this.style.width="auto")};var s=createEl("div"),a=createEl("span");a.appendChild(this.fallbackImg_),s.appendChild(a),e.appendChild(s)}return e},t.prototype.update=function(e){var n=this.player().poster();this.setSrc(n),n?this.show():this.hide()},t.prototype.setSrc=function(e){if(this.fallbackImg_)this.fallbackImg_.src=e;else{var n="";e&&(n='url("'+e+'")'),this.el_.style.backgroundImage=n}},t.prototype.handleClick=function(e){this.player_.controls()&&(this.player_.paused()?this.player_.play():this.player_.pause())},t}(ClickableComponent);Component.registerComponent("PosterImage",PosterImage);var darkGray="#222",lightGray="#ccc",fontMap={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'},TextTrackDisplay=function(r){function t(e,n,s){classCallCheck(this,t);var a=possibleConstructorReturn(this,r.call(this,e,n,s));return e.on("loadstart",bind(a,a.toggleDisplay)),e.on("texttrackchange",bind(a,a.updateDisplay)),e.on("loadstart",bind(a,a.preselectTrack)),e.ready(bind(a,function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)return void this.hide();e.on("fullscreenchange",bind(this,this.updateDisplay));for(var l=this.options_.playerOptions.tracks||[],u=0;u<l.length;u++)this.player_.addRemoteTextTrack(l[u],!0);this.preselectTrack()})),a}return inherits(t,r),t.prototype.preselectTrack=function(){for(var e={captions:1,subtitles:1},n=this.player_.textTracks(),s=this.player_.cache_.selectedLanguage,a=void 0,l=void 0,u=void 0,c=0;c<n.length;c++){var h=n[c];s&&s.enabled&&s.language===h.language?h.kind===s.kind?u=h:u||(u=h):s&&!s.enabled?(u=null,a=null,l=null):h.default&&(h.kind!=="descriptions"||a?h.kind in e&&!l&&(l=h):a=h)}u?u.mode="showing":l?l.mode="showing":a&&(a.mode="showing")},t.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},t.prototype.clearDisplay=function(){typeof window_1.WebVTT=="function"&&window_1.WebVTT.processCues(window_1,[],this.el_)},t.prototype.updateDisplay=function(){var e=this.player_.textTracks();this.clearDisplay();for(var n=null,s=null,a=e.length;a--;){var l=e[a];l.mode==="showing"&&(l.kind==="descriptions"?n=l:s=l)}s?(this.getAttribute("aria-live")!=="off"&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):n&&(this.getAttribute("aria-live")!=="assertive"&&this.setAttribute("aria-live","assertive"),this.updateForTrack(n))},t.prototype.updateForTrack=function(e){if(typeof window_1.WebVTT=="function"&&e.activeCues){for(var n=this.player_.textTrackSettings.getValues(),s=[],a=0;a<e.activeCues.length;a++)s.push(e.activeCues[a]);window_1.WebVTT.processCues(window_1,s,this.el_);for(var l=s.length;l--;){var u=s[l];if(u){var c=u.displayState;if(n.color&&(c.firstChild.style.color=n.color),n.textOpacity&&tryUpdateStyle(c.firstChild,"color",constructColor(n.color||"#fff",n.textOpacity)),n.backgroundColor&&(c.firstChild.style.backgroundColor=n.backgroundColor),n.backgroundOpacity&&tryUpdateStyle(c.firstChild,"backgroundColor",constructColor(n.backgroundColor||"#000",n.backgroundOpacity)),n.windowColor&&(n.windowOpacity?tryUpdateStyle(c,"backgroundColor",constructColor(n.windowColor,n.windowOpacity)):c.style.backgroundColor=n.windowColor),n.edgeStyle&&(n.edgeStyle==="dropshadow"?c.firstChild.style.textShadow="2px 2px 3px "+darkGray+", 2px 2px 4px "+darkGray+", 2px 2px 5px "+darkGray:n.edgeStyle==="raised"?c.firstChild.style.textShadow="1px 1px "+darkGray+", 2px 2px "+darkGray+", 3px 3px "+darkGray:n.edgeStyle==="depressed"?c.firstChild.style.textShadow="1px 1px "+lightGray+", 0 1px "+lightGray+", -1px -1px "+darkGray+", 0 -1px "+darkGray:n.edgeStyle==="uniform"&&(c.firstChild.style.textShadow="0 0 4px "+darkGray+", 0 0 4px "+darkGray+", 0 0 4px "+darkGray+", 0 0 4px "+darkGray)),n.fontPercent&&n.fontPercent!==1){var h=window_1.parseFloat(c.style.fontSize);c.style.fontSize=h*n.fontPercent+"px",c.style.height="auto",c.style.top="auto",c.style.bottom="2px"}n.fontFamily&&n.fontFamily!=="default"&&(n.fontFamily==="small-caps"?c.firstChild.style.fontVariant="small-caps":c.firstChild.style.fontFamily=fontMap[n.fontFamily])}}}},t}(Component);Component.registerComponent("TextTrackDisplay",TextTrackDisplay);var LoadingSpinner=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},t}(Component);Component.registerComponent("LoadingSpinner",LoadingSpinner);var Button=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};e="button",n=assign({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},n),s=assign({type:"button","aria-live":"polite"},s);var a=Component.prototype.createEl.call(this,e,n,s);return this.createControlTextEl(a),a},t.prototype.addChild=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.constructor.name;return log$2.warn("Adding an actionable (user controllable) child to a Button ("+s+") is not supported; use a ClickableComponent instead."),Component.prototype.addChild.call(this,e,n)},t.prototype.enable=function(){r.prototype.enable.call(this),this.el_.removeAttribute("disabled")},t.prototype.disable=function(){r.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},t.prototype.handleKeyPress=function(e){e.which!==32&&e.which!==13&&r.prototype.handleKeyPress.call(this,e)},t}(ClickableComponent);Component.registerComponent("Button",Button);var BigPlayButton=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.mouseused_=!1,s.on("mousedown",s.handleMouseDown),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(e){var n=this.player_.play();if(!(this.mouseused_&&e.clientX&&e.clientY)){var s=this.player_.getChild("controlBar"),a=s&&s.getChild("playToggle");if(!a)return void this.player_.focus();var l=function(){return a.focus()};isPromise(n)?n.then(l,function(){}):this.setTimeout(l,1)}},t.prototype.handleKeyPress=function(e){this.mouseused_=!1,r.prototype.handleKeyPress.call(this,e)},t.prototype.handleMouseDown=function(e){this.mouseused_=!0},t}(Button);BigPlayButton.prototype.controlText_="Play Video",Component.registerComponent("BigPlayButton",BigPlayButton);var CloseButton=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.controlText(n&&n.controlText||s.localize("Close")),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-close-button "+r.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t}(Button);Component.registerComponent("CloseButton",CloseButton);var PlayToggle=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.on(e,"play",s.handlePlay),s.on(e,"pause",s.handlePause),s.on(e,"ended",s.handleEnded),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-play-control "+r.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},t.prototype.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.prototype.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t.prototype.handleEnded=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},t}(Button);PlayToggle.prototype.controlText_="Play",Component.registerComponent("PlayToggle",PlayToggle);var TimeDisplay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.throttledUpdateContent=throttle(bind(s,s.updateContent),25),s.on(e,"timeupdate",s.throttledUpdateContent),s}return inherits(t,r),t.prototype.createEl=function(e){var n=this.buildCSSClass(),s=r.prototype.createEl.call(this,"div",{className:n+" vjs-time-control vjs-control"});return this.contentEl_=createEl("div",{className:n+"-display"},{"aria-live":"off"},createEl("span",{className:"vjs-control-text",textContent:this.localize(this.controlText_)})),this.name&&this.name()==="PDTDisplay"?this.updatePDTTextNode_():this.updateTextNode_(),s.appendChild(this.contentEl_),s},t.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,r.prototype.dispose.call(this)},t.prototype.updateTextNode_=function(e){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);var n=this.formattedTime_||"0:00";this.textNode_=document_1.createTextNode(n),this.contentEl_.appendChild(this.textNode_)}},t.prototype.updatePDTTextNode_=function(){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);var e=this.formattedPDTTime_||"";this.textNode_=document_1.createTextNode(e),this.contentEl_.appendChild(this.textNode_)}},t.prototype.formatTime_=function(e){return formatTime(e)},t.prototype.formatPDTTime_=function(e){return formatDate(e)},t.prototype.updateFormattedTime_=function(e){var n=this.formatTime_(e);n!==this.formattedTime_&&(this.formattedTime_=n,this.requestAnimationFrame(this.updateTextNode_))},t.prototype.updatePDTTime_=function(e){var n=this.formatPDTTime_(e);n!==this.formattedPDTTime_&&(this.formattedPDTTime_=n,this.requestAnimationFrame(this.updatePDTTextNode_))},t.prototype.updateContent=function(e){},t}(Component);TimeDisplay.prototype.controlText_="Time",Component.registerComponent("TimeDisplay",TimeDisplay);var CurrentTimeDisplay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.on(e,"ended",s.handleEnded),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-current-time"},t.prototype.updateContent=function(e){var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(n)},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},t}(TimeDisplay);CurrentTimeDisplay.prototype.controlText_="Current Time",Component.registerComponent("CurrentTimeDisplay",CurrentTimeDisplay);var DurationDisplay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.on(e,"durationchange",s.updateContent),s.on(e,"loadedmetadata",s.throttledUpdateContent),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-duration"},t.prototype.updateContent=function(e){var n=this.player_.duration();n&&this.duration_!==n&&(this.duration_=n,this.updateFormattedTime_(n))},t}(TimeDisplay);DurationDisplay.prototype.controlText_="Duration Time",Component.registerComponent("DurationDisplay",DurationDisplay);var PDTDisplay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return e.plugins&&e.plugins.pdt&&(s.on(e,"durationchange",s.throttledUpdateContent),s.initPlayingDate()),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-pdt-time"},t.prototype.updateContent=function(e){if(this.player_.duration()){if(!this.player_.plugins||!this.player_.plugins.pdt)return!1;var n=this.player_.currentPDT();n&&this.updatePDTTime_(n)}},t.prototype.initPlayingDate=function(){var e=this;this.timer&&this.clearInterval(this.timer),this.timer=this.setInterval(function(){var n=e.player_.currentPDT();n&&(e.player_.trigger({type:"firstpdt",data:n}),e.clearInterval(e.timer))},100)},t}(TimeDisplay);PDTDisplay.prototype.controlText_="PDT Time",Component.registerComponent("PDTDisplay",PDTDisplay);var TimeDivider=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},t}(Component);Component.registerComponent("TimeDivider",TimeDivider);var RemainingTimeDisplay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.on(e,"durationchange",s.throttledUpdateContent),s.on(e,"ended",s.handleEnded),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-remaining-time"},t.prototype.formatTime_=function(e){return"-"+r.prototype.formatTime_.call(this,e)},t.prototype.updateContent=function(e){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(0)},t}(TimeDisplay);RemainingTimeDisplay.prototype.controlText_="Remaining Time",Component.registerComponent("RemainingTimeDisplay",RemainingTimeDisplay);var LiveDisplay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.isLoadedMetaData=!1,s.hide(),s.on(s.player(),"durationchange",s.onDurationChange),s.on(s.player(),"loadedmetadata",s.onLoadMetadata),e.on("loadnewvideo",videojs.bind(s,s.resetStatus)),s}return inherits(t,r),t.prototype.createEl=function(){var e=r.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"</span>"+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},t.prototype.dispose=function(){this.contentEl_=null,r.prototype.dispose.call(this)},t.prototype.resetStatus=function(){this.setStatus(!1)},t.prototype.onDurationChange=function(){this.isLoadedMetaData&&this.update()},t.prototype.onLoadMetadata=function(){this.setStatus(!0),this.update()},t.prototype.setStatus=function(e){this.isLoadedMetaData=e},t.prototype.update=function(){this.player().duration()===1/0?this.show():this.hide()},t}(Component);Component.registerComponent("LiveDisplay",LiveDisplay);var DvrButton=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));s.hide();var a=e.cache_.src&&e.cache_.src.indexOf("tsEventmode=on")>-1;return s.mode=a?"dvr":"live",s.on(s.player(),"loadedmetadata",s.onLoadMetadata),s}return inherits(t,r),t.prototype.createEl=function(){var e=r.prototype.createEl.call(this,"div",{className:"vjs-dvr-control vjs-control"},{style:"line-height: 3em; cursor: pointer"});return this.contentEl_=createEl("div",{className:"vjs-dvr-button-display",innerHTML:this.mode==="dvr"?""+this.localize("返回直播"):""+this.localize("直播回看")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},t.prototype.handleClick=function(){var e=document.getElementsByClassName("vjs-dvr-button-display")[0];if(this.mode==="live"){e&&(e.innerHTML=""+this.localize("返回直播"));var n=get_1(this,"player_.options_.plugins.Dvr.shiftURL");n&&(this.mode="dvr",this.player_.src(n))}else{e&&(e.innerHTML=""+this.localize("直播回看"));var s=get_1(this,"player_.options_.plugins.Dvr.liveURL");s&&(this.mode="live",this.player_.src(s))}},t.prototype.onLoadMetadata=function(){get_1(this,"player_.options_.plugins.Dvr.dvrButton")?this.show():this.hide()},t}(Button);Component.registerComponent("DvrButton",DvrButton);var Slider=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.bar=s.getChild(s.options_.barName),s.vertical(!!s.options_.vertical),s.enable(),s}return inherits(t,r),t.prototype.enabled=function(){return this.enabled_},t.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},t.prototype.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},t.prototype.createEl=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n.className=n.className+" vjs-slider",n=assign({tabIndex:0},n),s=assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},s),r.prototype.createEl.call(this,e,n,s)},t.prototype.handleMouseDown=function(e){var n=this.bar.el_.ownerDocument;e.preventDefault(),blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(n,"mousemove",this.handleMouseMove),this.on(n,"mouseup",this.handleMouseUp),this.on(n,"touchmove",this.handleMouseMove),this.on(n,"touchend",this.handleMouseUp),this.handleMouseMove(e)},t.prototype.handleMouseMove=function(e){},t.prototype.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;unblockTextSelection(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},t.prototype.update=function(){if(this.el_){var e=this.getPercent(),n=this.bar;if(n){(typeof e!="number"||e!==e||e<0||e===1/0)&&(e=0);var s=(100*e).toFixed(2)+"%",a=n.el().style;return this.vertical()?a.height=s:a.width=s,e}}},t.prototype.calculateDistance=function(e,n){var s=getPointerPosition(this.el_,e,n);return this.vertical()?s.y:s.x},t.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(e){e.which===37||e.which===40?(e.preventDefault(),this.stepBack()):e.which!==38&&e.which!==39||(e.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},t.prototype.vertical=function(e){if(e===void 0)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(Component);Component.registerComponent("Slider",Slider);var LoadProgressBar=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.partEls_=[],s.on(e,"progress",s.update),s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},t.prototype.dispose=function(){this.partEls_=null,r.prototype.dispose.call(this)},t.prototype.update=function(e){var n=this.player_.buffered(),s=this.player_.duration(),a=this.player_.bufferedEnd(),l=this.partEls_,u=function(y,_){var b=y/_||0;return 100*(b>=1?1:b)+"%"};this.el_.style.width=u(a,s);for(var c=0;c<n.length;c++){var h=n.start(c),p=n.end(c),g=l[c];g||(g=this.el_.appendChild(createEl()),l[c]=g),g.style.left=u(h,a),g.style.width=u(p-h,a)}for(var v=l.length;v>n.length;v--)this.el_.removeChild(l[v-1]);l.length=n.length},t}(Component);Component.registerComponent("LoadProgressBar",LoadProgressBar);var TimeTooltip=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},t.prototype.update=function(e,n,s,a){var l=getBoundingClientRect(this.el_),u=getBoundingClientRect(this.player_.el()),c=e.width*n;if(u&&l){var h=e.left-u.left+c,p=e.width-c+(u.right-e.right),g=l.width/2;h<g?g+=g-h:p<g&&(g=p),g<0?g=0:g>l.width&&(g=l.width),this.el_.style.right="-"+g+"px",this.player_.plugins&&this.player_.plugins.pdt||(a="");var v=a?s+'<div style="white-space: nowrap;margin-top:5px">'+a+"</div>":s;this.el_.innerHTML=v}},t}(Component);Component.registerComponent("TimeTooltip",TimeTooltip);var PlayProgressBar=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},t.prototype.update=function(e,n){var s=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var a=s.player_.scrubbing()?s.player_.getCache().currentTime:s.player_.currentTime(),l=formatDate(s.player_.currentPDT()),u=formatTime(a,s.player_.duration()),c=s.getChild("timeTooltip");c&&c.update(e,n,u,l)})},t}(Component);PlayProgressBar.prototype.options_={children:[]},IE_VERSION&&!(IE_VERSION>8)||IS_IOS||IS_ANDROID||PlayProgressBar.prototype.options_.children.push("timeTooltip"),Component.registerComponent("PlayProgressBar",PlayProgressBar);var MouseTimeDisplay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.update=throttle(bind(s,s.update),25),s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.update=function(e,n){var s=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var a=s.player_.duration(),l=formatTime(n*a,a),u=s.player_.scrubbing()?s.player_.getCache().currentTime:s.player_.currentTime(),c=n*a-u,h=s.player_.currentPDT(),p=h&&formatDate(h+1e3*c);s.el_.style.left=e.width*n+"px",s.getChild("timeTooltip").update(e,n,l,p)})},t}(Component);MouseTimeDisplay.prototype.options_={children:["timeTooltip"]},Component.registerComponent("MouseTimeDisplay",MouseTimeDisplay);var STEP_SECONDS=5,UPDATE_REFRESH_INTERVAL=30,SeekBar=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.update=throttle(bind(s,s.update),UPDATE_REFRESH_INTERVAL),s.on(e,"timeupdate",s.update),s.on(e,"ended",s.handleEnded),s.updateInterval=null,s.on(e,["playing"],function(){s.clearInterval(s.updateInterval),s.updateInterval=s.setInterval(function(){s.requestAnimationFrame(function(){s.update()})},UPDATE_REFRESH_INTERVAL)}),s.on(e,["ended","pause","waiting"],function(){s.clearInterval(s.updateInterval)}),s.on(e,["timeupdate","ended"],s.update),s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update_=function(e,n){var s=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*n).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[formatTime(e,s),formatTime(s,s)],"{1} of {2}")),this.bar.update(getBoundingClientRect(this.el_),n)},t.prototype.update=function(e){var n=r.prototype.update.call(this);return this.update_(this.getCurrentTime_(),n),n},t.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},t.prototype.handleEnded=function(e){this.update_(this.player_.duration(),1)},t.prototype.getPercent=function(){var e=this.getCurrentTime_()/this.player_.duration();return e>=1?1:e},t.prototype.handleMouseDown=function(e){isSingleLeftClick(e)&&(this.player_.trigger("beforeseek"),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),r.prototype.handleMouseDown.call(this,e))},t.prototype.handleMouseMove=function(e){if(isSingleLeftClick(e)){var n=this.calculateDistance(e,!!this.player_.screenRotated)*this.player_.duration();n===this.player_.duration()&&(n-=.1),this.player_.currentTime(n)}},t.prototype.enable=function(){r.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()},t.prototype.disable=function(){r.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()},t.prototype.handleMouseUp=function(e){r.prototype.handleMouseUp.call(this,e),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&silencePromise(this.player_.play())},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+STEP_SECONDS)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-STEP_SECONDS)},t.prototype.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleKeyPress=function(e){e.which===32||e.which===13?(e.preventDefault(),this.handleAction(e)):r.prototype.handleKeyPress&&r.prototype.handleKeyPress.call(this,e)},t}(Slider);SeekBar.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},IE_VERSION&&!(IE_VERSION>8)||IS_IOS||IS_ANDROID||SeekBar.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),SeekBar.prototype.playerEvent="timeupdate",Component.registerComponent("SeekBar",SeekBar);var ProgressControl=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.handleMouseMove=throttle(bind(s,s.handleMouseMove),25),s.throttledHandleMouseSeek=throttle(bind(s,s.handleMouseSeek),25),s.enable(),s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.prototype.handleMouseMove=function(e){var n=this.getChild("seekBar"),s=n.getChild("mouseTimeDisplay"),a=n.el(),l=getBoundingClientRect(a),u=getPointerPosition(a,e,!!this.player_.screenRotated).x;u>1?u=1:u<0&&(u=0),s&&s.update(l,u)},t.prototype.handleMouseSeek=function(e){this.getChild("seekBar").handleMouseMove(e)},t.prototype.enabled=function(){return this.enabled_},t.prototype.disable=function(){this.children().forEach(function(e){return e.disable&&e.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},t.prototype.enable=function(){this.children().forEach(function(e){return e.enable&&e.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},t.prototype.handleMouseDown=function(e){var n=this.el_.ownerDocument;this.on(n,"mousemove",this.throttledHandleMouseSeek),this.on(n,"touchmove",this.throttledHandleMouseSeek),this.on(n,"mouseup",this.handleMouseUp),this.on(n,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var n=this.el_.ownerDocument;this.off(n,"mousemove",this.throttledHandleMouseSeek),this.off(n,"touchmove",this.throttledHandleMouseSeek),this.off(n,"mouseup",this.handleMouseUp),this.off(n,"touchend",this.handleMouseUp)},t}(Component);ProgressControl.prototype.options_={children:["seekBar"]},Component.registerComponent("ProgressControl",ProgressControl);var FullscreenToggle=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.on(e,"fullscreenchange",s.handleFullscreenChange),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+r.prototype.buildCSSClass.call(this)},t.prototype.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.prototype.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(Button);FullscreenToggle.prototype.controlText_="Fullscreen",Component.registerComponent("FullscreenToggle",FullscreenToggle);var FullscreenRotate=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.screenRotated=!1,s}return inherits(t,r),t.prototype.createEl=function(){var e=r.prototype.createEl.call(this,"button",{className:"vjs-rotatescreen-control vjs-control"});return this.contentEl_=createEl("div",{innerHTML:`<svg style="width: 24px;height: 24px;margin-top:7px" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 40 40" fill="none">
|
|
37
|
+
<g clip-path="url(#clip0)">
|
|
38
|
+
<path transform="scale(1.5 1.5)" d="M11.6665 9.16663H4.1665C2.78579 9.16663 1.6665 10.2859 1.6665 11.6666V15.8333C1.6665 17.214 2.78579 18.3333 4.1665 18.3333H11.6665C13.0472 18.3333 14.1665 17.214 14.1665 15.8333V11.6666C14.1665 10.2859 13.0472 9.16663 11.6665 9.16663Z" fill="white"></path>
|
|
39
|
+
<path transform="scale(1.5 1.5)" fill-rule="evenodd" clip-rule="evenodd" d="M3.88148 4.06298C3.75371 4.21005 3.67667 4.40231 3.67749 4.61242C3.67847 4.87253 3.79852 5.10435 3.98581 5.25646L6.99111 8.05895C7.32771 8.37283 7.85502 8.35443 8.16891 8.01782C8.48279 7.68122 8.46437 7.15391 8.12778 6.84003L6.62061 5.43457L9.8198 5.4224C9.82848 5.42239 9.8372 5.42221 9.84591 5.4219C10.9714 5.38233 12.0885 5.6285 13.0931 6.13744C14.0976 6.64635 14.957 7.40148 15.5908 8.33234C16.2246 9.2632 16.6122 10.3394 16.7177 11.4606C16.823 12.5819 16.6427 13.7115 16.1934 14.7442C16.0098 15.1661 16.203 15.6571 16.6251 15.8408C17.0471 16.0243 17.5381 15.8311 17.7216 15.4091C18.2833 14.1183 18.5087 12.7063 18.3771 11.3047C18.2453 9.90318 17.7607 8.55792 16.9684 7.39433C16.1761 6.23073 15.1021 5.28683 13.8463 4.65065C12.5946 4.01651 11.203 3.70872 9.80072 3.75583L6.43415 3.76862L7.96326 2.12885C8.27715 1.79225 8.25872 1.26494 7.92213 0.951061C7.58553 0.63718 7.05822 0.655585 6.74433 0.99219L3.90268 4.0395C3.89545 4.04724 3.88841 4.05509 3.88154 4.06303L3.88148 4.06298Z" fill="white"></path>
|
|
40
|
+
</g>
|
|
41
|
+
<defs>
|
|
42
|
+
<clipPath id="clip0">
|
|
43
|
+
<rect width="40" height="40" fill="white"></rect>
|
|
44
|
+
</clipPath>
|
|
45
|
+
</defs>
|
|
46
|
+
</svg>`}),e.appendChild(this.contentEl_),e},t.prototype.handleClick=function(e){this.screenRotated?(this.player_.exitRotatescreen(),this.screenRotated=!1):(this.player_.requestRotatescreen(),this.screenRotated=!0)},t}(Button);FullscreenRotate.prototype.controlText_="Rotate",Component.registerComponent("FullscreenRotate",FullscreenRotate);var checkVolumeSupport=function(r,t){!t.tech_||t.tech_.featuresVolumeControl||t.tech_.featuresMuteControl?t.tech_&&t.tech_.featuresVolumeControl&&r.addClass("enable-volume-control"):r.addClass("vjs-hidden"),r.on(t,"loadstart",function(){t.tech_.featuresVolumeControl||t.tech_.featuresMuteControl?t.tech_.featuresVolumeControl&&(r.removeClass("vjs-hidden"),r.addClass("enable-volume-control")):r.addClass("vjs-hidden")})},VolumeLevel=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(Component);Component.registerComponent("VolumeLevel",VolumeLevel);var VolumeBar=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.on("slideractive",s.updateLastVolume_),s.on(e,"volumechange",s.updateARIAAttributes),e.ready(function(){return s.updateARIAAttributes()}),s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},t.prototype.handleMouseDown=function(e){isSingleLeftClick(e)&&r.prototype.handleMouseDown.call(this,e)},t.prototype.handleMouseMove=function(e){isSingleLeftClick(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(e){var n=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",n),this.el_.setAttribute("aria-valuetext",n+"%")},t.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},t.prototype.updateLastVolume_=function(){var e=this,n=this.player_.volume();this.one("sliderinactive",function(){e.player_.volume()===0&&e.player_.lastVolume_(n)})},t}(Slider);VolumeBar.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},VolumeBar.prototype.playerEvent="volumechange",Component.registerComponent("VolumeBar",VolumeBar);var VolumeControl=function(r){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t),n.vertical=n.vertical||!1,(typeof n.volumeBar>"u"||isPlain(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical);var s=possibleConstructorReturn(this,r.call(this,e,n));return checkVolumeSupport(s,e),s.throttledHandleMouseMove=throttle(bind(s,s.handleMouseMove),25),s.on("mousedown",s.handleMouseDown),s.on("touchstart",s.handleMouseDown),s.on(s.volumeBar,["focus","slideractive"],function(){s.volumeBar.addClass("vjs-slider-active"),s.addClass("vjs-slider-active"),s.trigger("slideractive")}),s.on(s.volumeBar,["blur","sliderinactive"],function(){s.volumeBar.removeClass("vjs-slider-active"),s.removeClass("vjs-slider-active"),s.trigger("sliderinactive")}),s}return inherits(t,r),t.prototype.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),r.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},t.prototype.handleMouseDown=function(e){var n=this.el_.ownerDocument;this.on(n,"mousemove",this.throttledHandleMouseMove),this.on(n,"touchmove",this.throttledHandleMouseMove),this.on(n,"mouseup",this.handleMouseUp),this.on(n,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var n=this.el_.ownerDocument;this.off(n,"mousemove",this.throttledHandleMouseMove),this.off(n,"touchmove",this.throttledHandleMouseMove),this.off(n,"mouseup",this.handleMouseUp),this.off(n,"touchend",this.handleMouseUp)},t.prototype.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(Component);VolumeControl.prototype.options_={children:["volumeBar"]},Component.registerComponent("VolumeControl",VolumeControl);var MuteToggle=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return checkVolumeSupport(s,e),s.on(e,["loadstart","volumechange"],s.update),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+r.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){var n=this.player_.volume(),s=this.player_.lastVolume_();if(n===0){var a=s<.1?.1:s;this.player_.volume(a),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},t.prototype.update=function(e){this.updateIcon_(),this.updateControlText_()},t.prototype.updateIcon_=function(){var e=this.player_.volume(),n=3;e===0||this.player_.muted()?n=0:e<.33?n=1:e<.67&&(n=2);for(var s=0;s<4;s++)removeClass(this.el_,"vjs-vol-"+s);addClass(this.el_,"vjs-vol-"+n)},t.prototype.updateControlText_=function(){var e=this.player_.muted()||this.player_.volume()===0,n=e?"Unmute":"Mute";this.controlText()!==n&&this.controlText(n)},t}(Button);MuteToggle.prototype.controlText_="Mute",Component.registerComponent("MuteToggle",MuteToggle);var VolumePanel=function(r){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t),typeof n.inline<"u"?n.inline=n.inline:n.inline=!0,(typeof n.volumeControl>"u"||isPlain(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline);var s=possibleConstructorReturn(this,r.call(this,e,n));return checkVolumeSupport(s,e),s.on(s.volumeControl,["slideractive"],s.sliderActive_),s.on(s.muteToggle,"focus",s.sliderActive_),s.on(s.volumeControl,["sliderinactive"],s.sliderInactive_),s.on(s.muteToggle,"blur",s.sliderInactive_),s}return inherits(t,r),t.prototype.sliderActive_=function(){IS_ANDROID||IS_IOS||this.addClass("vjs-slider-active")},t.prototype.sliderInactive_=function(){IS_ANDROID||IS_IOS||this.removeClass("vjs-slider-active")},t.prototype.createEl=function(){var e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),r.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+e})},t}(Component);VolumePanel.prototype.options_={children:["muteToggle","volumeControl"]},Component.registerComponent("VolumePanel",VolumePanel);var Menu=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return n&&(s.menuButton_=n.menuButton),s.focusedChild_=-1,s.on("keydown",s.handleKeyPress),s}return inherits(t,r),t.prototype.addItem=function(e){this.addChild(e),e.on("click",bind(this,function(n){this.menuButton_&&(this.menuButton_.unpressButton(),e.name()!=="CaptionSettingsMenuItem"&&this.menuButton_.focus())}))},t.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=createEl(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=r.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),on(n,"click",function(s){s.preventDefault(),s.stopImmediatePropagation()}),n},t.prototype.dispose=function(){this.contentEl_=null,r.prototype.dispose.call(this)},t.prototype.handleKeyPress=function(e){e.which===37||e.which===40?(e.preventDefault(),this.stepForward()):e.which!==38&&e.which!==39||(e.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var e=0;this.focusedChild_!==void 0&&(e=this.focusedChild_+1),this.focus(e)},t.prototype.stepBack=function(){var e=0;this.focusedChild_!==void 0&&(e=this.focusedChild_-1),this.focus(e)},t.prototype.focus=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=this.children().slice();n.length&&n[0].className&&/vjs-menu-title/.test(n[0].className)&&n.shift(),n.length>0&&(e<0?e=0:e>=n.length&&(e=n.length-1),this.focusedChild_=e,n[e].el_.focus())},t}(Component);Component.registerComponent("Menu",Menu);var MenuButton=function(r){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));s.menuButton_=new Button(e,n),s.menuButton_.controlText(s.controlText_),s.menuButton_.el_.setAttribute("aria-haspopup","true");var a=Button.prototype.buildCSSClass();return s.menuButton_.el_.className=s.buildCSSClass()+" "+a,s.menuButton_.removeClass("vjs-control"),s.addChild(s.menuButton_),s.update(),s.enabled_=!0,s.on(s.menuButton_,"tap",s.handleClick),s.on(s.menuButton_,"click",s.handleClick),s.on(s.menuButton_,"focus",s.handleFocus),s.on(s.menuButton_,"blur",s.handleBlur),s.on("keydown",s.handleSubmenuKeyPress),s}return inherits(t,r),t.prototype.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},t.prototype.createMenu=function(){var e=new Menu(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var n=createEl("li",{className:"vjs-menu-title",innerHTML:toTitleCase(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,e.children_.unshift(n),prependTo(n,e.contentEl())}if(this.items=this.createItems(),this.items)for(var s=0;s<this.items.length;s++)e.addItem(this.items[s]);return e},t.prototype.createItems=function(){},t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},t.prototype.buildWrapperCSSClass=function(){var e="vjs-menu-button";return this.options_.inline===!0?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+Button.prototype.buildCSSClass()+" "+r.prototype.buildCSSClass.call(this)},t.prototype.buildCSSClass=function(){var e="vjs-menu-button";return this.options_.inline===!0?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+r.prototype.buildCSSClass.call(this)},t.prototype.controlText=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(e,n)},t.prototype.handleClick=function(e){this.one(this.menu.contentEl(),"mouseleave",bind(this,function(n){this.unpressButton(),this.el_.blur()})),(IS_IOS||IS_ANDROID)&&this.name_==="SubsCapsButton"&&(this.menu.el_.className==="vjs-menu"?this.buttonPressed_=!1:this.buttonPressed_=!0),this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.focus=function(){this.menuButton_.focus()},t.prototype.blur=function(){this.menuButton_.blur()},t.prototype.handleFocus=function(){on(document_1,"keydown",bind(this,this.handleKeyPress))},t.prototype.handleBlur=function(){off(document_1,"keydown",bind(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(e){e.which===27||e.which===9?(this.buttonPressed_&&this.unpressButton(),e.which!==9&&(e.preventDefault(),this.menuButton_.el_.focus())):e.which!==38&&e.which!==40||this.buttonPressed_||(this.pressButton(),e.preventDefault())},t.prototype.handleSubmenuKeyPress=function(e){e.which!==27&&e.which!==9||(this.buttonPressed_&&this.unpressButton(),e.which!==9&&(e.preventDefault(),this.menuButton_.el_.focus()))},t.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),IS_IOS&&isInFrame())return;this.menu.focus()}},t.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},t.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},t.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(Component);Component.registerComponent("MenuButton",MenuButton);var TrackButton=function(r){function t(e,n){classCallCheck(this,t);var s=n.tracks,a=possibleConstructorReturn(this,r.call(this,e,n));if(a.items.length<=1&&a.hide(),!s)return possibleConstructorReturn(a);var l=bind(a,a.update);return s.addEventListener("removetrack",l),s.addEventListener("addtrack",l),a.player_.on("ready",l),a.player_.on("dispose",function(){s.removeEventListener("removetrack",l),s.removeEventListener("addtrack",l)}),a}return inherits(t,r),t}(MenuButton);Component.registerComponent("TrackButton",TrackButton);var MenuItem=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.selectable=n.selectable,s.selected(n.selected),s.selectable?s.el_.setAttribute("role","menuitemcheckbox"):s.el_.setAttribute("role","menuitem"),s}return inherits(t,r),t.prototype.createEl=function(e,n,s){return this.nonIconControl=!0,r.prototype.createEl.call(this,"li",assign({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},n),s)},t.prototype.handleClick=function(e){this.selected(!0)},t.prototype.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText("")))},t}(ClickableComponent);Component.registerComponent("MenuItem",MenuItem);var TextTrackMenuItem=function(r){function t(e,n){classCallCheck(this,t);var s=n.track,a=e.textTracks();n.label=s.label||s.language||"Unknown",n.selected=s.mode==="showing";var l=possibleConstructorReturn(this,r.call(this,e,n));l.track=s;var u=function(){for(var p=arguments.length,g=Array(p),v=0;v<p;v++)g[v]=arguments[v];l.handleTracksChange.apply(l,g)},c=function(){for(var p=arguments.length,g=Array(p),v=0;v<p;v++)g[v]=arguments[v];l.handleSelectedLanguageChange.apply(l,g)};if(e.on(["loadstart","texttrackchange"],u),a.addEventListener("change",u),a.addEventListener("selectedlanguagechange",c),l.on("dispose",function(){e.off(["loadstart","texttrackchange"],u),a.removeEventListener("change",u),a.removeEventListener("selectedlanguagechange",c)}),a.onchange===void 0){var h=void 0;l.on(["tap","click"],function(){if(_typeof(window_1.Event)!=="object")try{h=new window_1.Event("change")}catch{}h||(h=document_1.createEvent("Event"),h.initEvent("change",!0,!0)),a.dispatchEvent(h)})}return l.handleTracksChange(),l}return inherits(t,r),t.prototype.handleClick=function(e){var n=this.track.kind,s=this.track.kinds,a=this.player_.textTracks();if(s||(s=[n]),r.prototype.handleClick.call(this,e),a)for(var l=0;l<a.length;l++){var u=a[l];u===this.track&&s.indexOf(u.kind)>-1?u.mode!=="showing"&&(u.mode="showing"):u.mode!=="disabled"&&(u.mode="disabled")}},t.prototype.handleTracksChange=function(e){this.selected(this.track.mode==="showing")},t.prototype.handleSelectedLanguageChange=function(e){if(this.track.mode==="showing"){var n=this.player_.cache_.selectedLanguage;if(n&&n.enabled&&n.language===this.track.language&&n.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},t.prototype.dispose=function(){this.track=null,r.prototype.dispose.call(this)},t}(MenuItem);Component.registerComponent("TextTrackMenuItem",TextTrackMenuItem);var OffTextTrackMenuItem=function(r){function t(e,n){return classCallCheck(this,t),n.track={player:e,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,possibleConstructorReturn(this,r.call(this,e,n))}return inherits(t,r),t.prototype.handleTracksChange=function(e){for(var n=this.player().textTracks(),s=!0,a=0,l=n.length;a<l;a++){var u=n[a];if(this.options_.kinds.indexOf(u.kind)>-1&&u.mode==="showing"){s=!1;break}}if(this.selected(s),IS_IOS||IS_ANDROID){var c=document.getElementsByClassName("vjs-subs-caps-button"),h=get_1(c,"[0].children[1]");h&&(h.className="vjs-menu")}},t.prototype.handleSelectedLanguageChange=function(e){for(var n=this.player().textTracks(),s=!0,a=0,l=n.length;a<l;a++){var u=n[a];if(["captions","descriptions","subtitles"].indexOf(u.kind)>-1&&u.mode==="showing"){s=!1;break}}s&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(TextTrackMenuItem);Component.registerComponent("OffTextTrackMenuItem",OffTextTrackMenuItem);var TextTrackButton=function(r){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return classCallCheck(this,t),n.tracks=e.textTracks(),possibleConstructorReturn(this,r.call(this,e,n))}return inherits(t,r),t.prototype.createItems=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:TextTrackMenuItem,s=void 0;this.label_&&(s=this.label_+" off"),e.push(new OffTextTrackMenuItem(this.player_,{kinds:this.kinds_,kind:this.kind_,label:s})),this.hideThreshold_+=1;var a=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var l=0;l<a.length;l++){var u=a[l];if(this.kinds_.indexOf(u.kind)>-1){var c=new n(this.player_,{track:u,selectable:!0});c.addClass("vjs-"+u.kind+"-menu-item"),e.push(c)}}return e},t}(TrackButton);Component.registerComponent("TextTrackButton",TextTrackButton);var ChaptersTrackMenuItem=function(r){function t(e,n){classCallCheck(this,t);var s=n.track,a=n.cue,l=e.currentTime();n.selectable=!0,n.label=a.text,n.selected=a.startTime<=l&&l<a.endTime;var u=possibleConstructorReturn(this,r.call(this,e,n));return u.track=s,u.cue=a,s.addEventListener("cuechange",bind(u,u.update)),u}return inherits(t,r),t.prototype.handleClick=function(e){r.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},t.prototype.update=function(e){var n=this.cue,s=this.player_.currentTime();this.selected(n.startTime<=s&&s<n.endTime)},t}(MenuItem);Component.registerComponent("ChaptersTrackMenuItem",ChaptersTrackMenuItem);var ChaptersButton=function(r){function t(e,n,s){return classCallCheck(this,t),possibleConstructorReturn(this,r.call(this,e,n,s))}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-chapters-button "+r.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-chapters-button "+r.prototype.buildWrapperCSSClass.call(this)},t.prototype.update=function(e){this.track_&&(!e||e.type!=="addtrack"&&e.type!=="removetrack")||this.setTrack(this.findChaptersTrack()),r.prototype.update.call(this)},t.prototype.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var s=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);s&&s.addEventListener("load",this.updateHandler_)}}},t.prototype.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],n=e.length-1;n>=0;n--){var s=e[n];if(s.kind===this.kind_)return s}},t.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(toTitleCase(this.kind_))},t.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),r.prototype.createMenu.call(this)},t.prototype.createItems=function(){var e=[];if(!this.track_)return e;var n=this.track_.cues;if(!n)return e;for(var s=0,a=n.length;s<a;s++){var l=n[s],u=new ChaptersTrackMenuItem(this.player_,{track:this.track_,cue:l});e.push(u)}return e},t}(TextTrackButton);ChaptersButton.prototype.kind_="chapters",ChaptersButton.prototype.controlText_="Chapters",Component.registerComponent("ChaptersButton",ChaptersButton);var DescriptionsButton=function(r){function t(e,n,s){classCallCheck(this,t);var a=possibleConstructorReturn(this,r.call(this,e,n,s)),l=e.textTracks(),u=bind(a,a.handleTracksChange);return l.addEventListener("change",u),a.on("dispose",function(){l.removeEventListener("change",u)}),a}return inherits(t,r),t.prototype.handleTracksChange=function(e){for(var n=this.player().textTracks(),s=!1,a=0,l=n.length;a<l;a++){var u=n[a];if(u.kind!==this.kind_&&u.mode==="showing"){s=!0;break}}s?this.disable():this.enable()},t.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+r.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+r.prototype.buildWrapperCSSClass.call(this)},t}(TextTrackButton);DescriptionsButton.prototype.kind_="descriptions",DescriptionsButton.prototype.controlText_="Descriptions",Component.registerComponent("DescriptionsButton",DescriptionsButton);var SubtitlesButton=function(r){function t(e,n,s){return classCallCheck(this,t),possibleConstructorReturn(this,r.call(this,e,n,s))}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+r.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+r.prototype.buildWrapperCSSClass.call(this)},t}(TextTrackButton);SubtitlesButton.prototype.kind_="subtitles",SubtitlesButton.prototype.controlText_="Subtitles",Component.registerComponent("SubtitlesButton",SubtitlesButton);var CaptionSettingsMenuItem=function(r){function t(e,n){classCallCheck(this,t),n.track={player:e,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem";var s=possibleConstructorReturn(this,r.call(this,e,n));return s.addClass("vjs-texttrack-settings"),s.controlText(", opens "+n.kind+" settings dialog"),s}return inherits(t,r),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(TextTrackMenuItem);Component.registerComponent("CaptionSettingsMenuItem",CaptionSettingsMenuItem);var CaptionsButton=function(r){function t(e,n,s){return classCallCheck(this,t),possibleConstructorReturn(this,r.call(this,e,n,s))}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-captions-button "+r.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-captions-button "+r.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||(e.push(new CaptionSettingsMenuItem(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),r.prototype.createItems.call(this,e)},t}(TextTrackButton);CaptionsButton.prototype.kind_="captions",CaptionsButton.prototype.controlText_="Captions",Component.registerComponent("CaptionsButton",CaptionsButton);var SubsCapsMenuItem=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(e,n,s){var a='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return this.options_.track.kind==="captions"&&(a+=`
|
|
22
47
|
<span aria-hidden="true" class="vjs-icon-placeholder"></span>
|
|
23
48
|
<span class="vjs-control-text"> `+this.localize("Captions")+`</span>
|
|
24
|
-
`),a+="</span>",r.prototype.createEl.call(this,e,assign({innerHTML:a},n),s)},t}(TextTrackMenuItem);Component.registerComponent("SubsCapsMenuItem",SubsCapsMenuItem);var SubsCapsButton=function(r){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(s.player_.language_)>-1&&(s.label_="captions"),s.menuButton_.controlText(toTitleCase(s.label_)),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-subs-caps-button "+r.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+r.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||(e.push(new CaptionSettingsMenuItem(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=r.prototype.createItems.call(this,e,SubsCapsMenuItem)},t}(TextTrackButton);SubsCapsButton.prototype.kinds_=["captions","subtitles"],SubsCapsButton.prototype.controlText_="Subtitles",Component.registerComponent("SubsCapsButton",SubsCapsButton);var AudioTrackMenuItem=function(r){function t(e,n){classCallCheck(this,t);var s=n.track,a=e.audioTracks();n.label=s.label||s.language||"Unknown",n.selected=s.enabled;var l=possibleConstructorReturn(this,r.call(this,e,n));l.track=s;var u=function(){for(var c=arguments.length,h=Array(c),p=0;p<c;p++)h[p]=arguments[p];l.handleTracksChange.apply(l,h)};return l.changeHandler=u,a.addEventListener("change",u),a.addEventListener("enabledchange",u),l.on("dispose",function(){a.removeEventListener("change",u),a.removeEventListener("enabledchange",u)}),l}return inherits(t,r),t.prototype.handleClick=function(e){var n=this.player_.audioTracks();r.prototype.handleClick.call(this,e),this.player_.tech_.hlsProvider.hls.audioTrack=this.track.id;for(var s=0;s<n.length;s++){var a=n[s];a.enabled=a===this.track}},t.prototype.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(MenuItem);Component.registerComponent("AudioTrackMenuItem",AudioTrackMenuItem);var AudioTrackButton=function(r){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return classCallCheck(this,t),n.tracks=e.audioTracks(),possibleConstructorReturn(this,r.call(this,e,n))}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-audio-button "+r.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-audio-button "+r.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.hideThreshold_=1;for(var n=this.player_.audioTracks(),s=0;s<n.length;s++){var a=n[s];e.push(new AudioTrackMenuItem(this.player_,{track:a,selectable:!0}))}return e},t}(TrackButton);AudioTrackButton.prototype.controlText_="Audio Track",Component.registerComponent("AudioTrackButton",AudioTrackButton);var PlaybackRateMenuItem=function(r){function t(e,n){classCallCheck(this,t);var s=n.rate,a=parseFloat(s,10);n.label=s,n.selected=a===1,n.selectable=!0;var l=possibleConstructorReturn(this,r.call(this,e,n));return l.label=s,l.rate=a,l.on(e,"ratechange",l.update),l}return inherits(t,r),t.prototype.handleClick=function(e){r.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},t.prototype.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(MenuItem);PlaybackRateMenuItem.prototype.contentElType="button",Component.registerComponent("PlaybackRateMenuItem",PlaybackRateMenuItem);var PlaybackRateMenuButton=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.updateVisibility(),s.updateLabel(),s.on(e,"loadstart",s.updateVisibility),s.on(e,"ratechange",s.updateLabel),s}return inherits(t,r),t.prototype.createEl=function(){var e=r.prototype.createEl.call(this);return this.labelEl_=createEl("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),e.appendChild(this.labelEl_),e},t.prototype.dispose=function(){this.labelEl_=null,r.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return"vjs-playback-rate "+r.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-playback-rate "+r.prototype.buildWrapperCSSClass.call(this)},t.prototype.createMenu=function(){var e=new Menu(this.player()),n=this.playbackRates();if(n)for(var s=n.length-1;s>=0;s--)e.addChild(new PlaybackRateMenuItem(this.player(),{rate:n[s]+"x"}));return e},t.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.prototype.handleClick=function(e){for(var n=this.player().playbackRate(),s=this.playbackRates(),a=s[0],l=0;l<s.length;l++)if(s[l]>n){a=s[l];break}this.player().playbackRate(a)},t.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},t.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},t.prototype.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.prototype.updateLabel=function(e){var n=this.player().playbackRate();if(n===1.1)return!1;this.playbackRateSupported()&&(this.labelEl_.innerHTML=n+"x")},t}(MenuButton);PlaybackRateMenuButton.prototype.controlText_="Playback Rate",Component.registerComponent("PlaybackRateMenuButton",PlaybackRateMenuButton);var Spacer=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-spacer "+r.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(Component);Component.registerComponent("Spacer",Spacer);var CustomControlSpacer=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+r.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){var e=r.prototype.createEl.call(this,{className:this.buildCSSClass()});return e.innerHTML=" ",e},t}(Spacer);Component.registerComponent("CustomControlSpacer",CustomControlSpacer);var ControlBar=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},t}(Component);if(ControlBar.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","audioTrackButton","fullscreenToggle"]},IS_ENABLED_MSE&&!IS_SAFARI){var controlChildren=ControlBar.prototype.options_.children;controlChildren.splice(controlChildren.length-2,0,"subsCapsButton")}Component.registerComponent("ControlBar",ControlBar);var ErrorDisplay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.on(e,"error",s.open),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-error-display "+r.prototype.buildCSSClass.call(this)},t.prototype.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(ModalDialog);ErrorDisplay.prototype.options_=mergeOptions(ModalDialog.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Component.registerComponent("ErrorDisplay",ErrorDisplay);var LOCAL_STORAGE_KEY="vjs-text-track-settings",COLOR_BLACK=["#000","Black"],COLOR_BLUE=["#00F","Blue"],COLOR_CYAN=["#0FF","Cyan"],COLOR_GREEN=["#0F0","Green"],COLOR_MAGENTA=["#F0F","Magenta"],COLOR_RED=["#F00","Red"],COLOR_WHITE=["#FFF","White"],COLOR_YELLOW=["#FF0","Yellow"],OPACITY_OPAQUE=["1","Opaque"],OPACITY_SEMI=["0.5","Semi-Transparent"],OPACITY_TRANS=["0","Transparent"],selectConfigs={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[COLOR_BLACK,COLOR_WHITE,COLOR_RED,COLOR_GREEN,COLOR_BLUE,COLOR_YELLOW,COLOR_MAGENTA,COLOR_CYAN]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[OPACITY_OPAQUE,OPACITY_SEMI,OPACITY_TRANS]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[COLOR_WHITE,COLOR_BLACK,COLOR_RED,COLOR_GREEN,COLOR_BLUE,COLOR_YELLOW,COLOR_MAGENTA,COLOR_CYAN]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(r){return r==="1.00"?null:Number(r)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[OPACITY_OPAQUE,OPACITY_SEMI]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[OPACITY_TRANS,OPACITY_SEMI,OPACITY_OPAQUE]}};selectConfigs.windowColor.options=selectConfigs.backgroundColor.options;var TextTrackSettings=function(r){function t(e,n){classCallCheck(this,t),n.temporary=!1;var s=possibleConstructorReturn(this,r.call(this,e,n));return s.updateDisplay=bind(s,s.updateDisplay),s.fill(),s.hasBeenOpened_=s.hasBeenFilled_=!0,s.endDialog=createEl("p",{className:"vjs-control-text",textContent:s.localize("End of dialog window.")}),s.el().appendChild(s.endDialog),s.setDefaults(),n.persistTextTrackSettings===void 0&&(s.options_.persistTextTrackSettings=s.options_.playerOptions.persistTextTrackSettings),s.on(s.$(".vjs-done-button"),"click",function(){s.saveSettings(),s.close()}),s.on(s.$(".vjs-default-button"),"click",function(){s.setDefaults(),s.updateDisplay()}),each(selectConfigs,function(a){s.on(s.$(a.selector),"change",s.updateDisplay)}),s.options_.persistTextTrackSettings&&s.restoreSettings(),s}return inherits(t,r),t.prototype.dispose=function(){this.endDialog=null,r.prototype.dispose.call(this)},t.prototype.createElSelect_=function(e){var n=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"label",l=selectConfigs[e],u=l.id.replace("%s",this.id_);return["<"+a+' id="'+u+'" class="'+(a==="label"?"vjs-label":"")+'">',this.localize(l.label),"</"+a+">",'<select aria-labelledby="'+(s!==""?s+" ":"")+u+'">'].concat(l.options.map(function(c){var h=u+"-"+c[1];return['<option id="'+h+'" value="'+c[0]+'" ','aria-labelledby="'+(s!==""?s+" ":"")+u+" "+h+'">',n.localize(c[1]),"</option>"].join("")})).concat("</select>").join("")},t.prototype.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElColors_=function(){return createEl("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},t.prototype.createElFont_=function(){return createEl("div",{className:'vjs-track-settings-font">',innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},t.prototype.createElControls_=function(){var e=this.localize("restore all settings to the default values");return createEl("div",{className:"vjs-track-settings-controls",innerHTML:['<button class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},t.prototype.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},t.prototype.label=function(){return this.localize("Caption Settings Dialog")},t.prototype.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},t.prototype.buildCSSClass=function(){return r.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},t.prototype.getValues=function(){var e=this;return reduce(selectConfigs,function(n,s,a){var l=getSelectedOptionValue(e.$(s.selector),s.parser);return l!==void 0&&(n[a]=l),n},{})},t.prototype.setValues=function(e){var n=this;each(selectConfigs,function(s,a){setSelectedOption(n.$(s.selector),e[a],s.parser)})},t.prototype.setDefaults=function(){var e=this;each(selectConfigs,function(n){var s=n.hasOwnProperty("default")?n.default:0;e.$(n.selector).selectedIndex=s})},t.prototype.restoreSettings=function(){var e=void 0;try{e=JSON.parse(window_1.localStorage.getItem(LOCAL_STORAGE_KEY))}catch(n){log$2.warn(n)}e&&this.setValues(e)},t.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?window_1.localStorage.setItem(LOCAL_STORAGE_KEY,JSON.stringify(e)):window_1.localStorage.removeItem(LOCAL_STORAGE_KEY)}catch(n){log$2.warn(n)}}},t.prototype.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_=null,this.off(document_1,"keydown",this.handleKeyDown);var e=this.player_.controlBar,n=e&&e.subsCapsButton,s=e&&e.captionsButton;n?n.focus():s&&s.focus()},t}(ModalDialog);Component.registerComponent("TextTrackSettings",TextTrackSettings);var _templateObject$2=taggedTemplateLiteralLoose([`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.
|
|
49
|
+
`),a+="</span>",r.prototype.createEl.call(this,e,assign({innerHTML:a},n),s)},t}(TextTrackMenuItem);Component.registerComponent("SubsCapsMenuItem",SubsCapsMenuItem);var SubsCapsButton=function(r){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(s.player_.language_)>-1&&(s.label_="captions"),s.menuButton_.controlText(toTitleCase(s.label_)),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-subs-caps-button "+r.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+r.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||IS_IOS||IS_ANDROID||(e.push(new CaptionSettingsMenuItem(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=r.prototype.createItems.call(this,e,SubsCapsMenuItem)},t}(TextTrackButton);SubsCapsButton.prototype.kinds_=["captions","subtitles"],SubsCapsButton.prototype.controlText_="Subtitles",Component.registerComponent("SubsCapsButton",SubsCapsButton);var AudioTrackMenuItem=function(r){function t(e,n){classCallCheck(this,t);var s=n.track,a=e.audioTracks();n.label=s.label||s.language||"Unknown",n.selected=s.enabled;var l=possibleConstructorReturn(this,r.call(this,e,n));l.track=s;var u=function(){for(var c=arguments.length,h=Array(c),p=0;p<c;p++)h[p]=arguments[p];l.handleTracksChange.apply(l,h)};return l.changeHandler=u,a.addEventListener("change",u),a.addEventListener("enabledchange",u),l.on("dispose",function(){a.removeEventListener("change",u),a.removeEventListener("enabledchange",u)}),l}return inherits(t,r),t.prototype.handleClick=function(e){var n=this.player_.audioTracks();r.prototype.handleClick.call(this,e),this.player_.tech_.hlsProvider.hls.audioTrack=this.track.id;for(var s=0;s<n.length;s++){var a=n[s];a.enabled=a===this.track}},t.prototype.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(MenuItem);Component.registerComponent("AudioTrackMenuItem",AudioTrackMenuItem);var AudioTrackButton=function(r){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return classCallCheck(this,t),n.tracks=e.audioTracks(),possibleConstructorReturn(this,r.call(this,e,n))}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-audio-button "+r.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-audio-button "+r.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.hideThreshold_=1;for(var n=this.player_.audioTracks(),s=0;s<n.length;s++){var a=n[s];e.push(new AudioTrackMenuItem(this.player_,{track:a,selectable:!0}))}return e},t}(TrackButton);AudioTrackButton.prototype.controlText_="Audio Track",Component.registerComponent("AudioTrackButton",AudioTrackButton);var PlaybackRateMenuItem=function(r){function t(e,n){classCallCheck(this,t);var s=n.rate,a=parseFloat(s,10);n.label=s,n.selected=a===1,n.selectable=!0;var l=possibleConstructorReturn(this,r.call(this,e,n));return l.label=s,l.rate=a,l.on(e,"ratechange",l.update),l}return inherits(t,r),t.prototype.handleClick=function(e){r.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},t.prototype.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(MenuItem);PlaybackRateMenuItem.prototype.contentElType="button",Component.registerComponent("PlaybackRateMenuItem",PlaybackRateMenuItem);var PlaybackRateMenuButton=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.updateVisibility(),s.updateLabel(),s.on(e,"loadstart",s.updateVisibility),s.on(e,"ratechange",s.updateLabel),s}return inherits(t,r),t.prototype.createEl=function(){var e=r.prototype.createEl.call(this);return this.labelEl_=createEl("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),e.appendChild(this.labelEl_),e},t.prototype.dispose=function(){this.labelEl_=null,r.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return"vjs-playback-rate "+r.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-playback-rate "+r.prototype.buildWrapperCSSClass.call(this)},t.prototype.createMenu=function(){var e=new Menu(this.player()),n=this.playbackRates();if(n)for(var s=n.length-1;s>=0;s--)e.addChild(new PlaybackRateMenuItem(this.player(),{rate:n[s]+"x"}));return e},t.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.prototype.handleClick=function(e){for(var n=this.player().playbackRate(),s=this.playbackRates(),a=s[0],l=0;l<s.length;l++)if(s[l]>n){a=s[l];break}this.player().playbackRate(a)},t.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},t.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},t.prototype.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.prototype.updateLabel=function(e){var n=this.player().playbackRate();if(n===1.1)return!1;this.playbackRateSupported()&&(this.labelEl_.innerHTML=n+"x")},t}(MenuButton);PlaybackRateMenuButton.prototype.controlText_="Playback Rate",Component.registerComponent("PlaybackRateMenuButton",PlaybackRateMenuButton);var Spacer=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-spacer "+r.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(Component);Component.registerComponent("Spacer",Spacer);var CustomControlSpacer=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+r.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){var e=r.prototype.createEl.call(this,{className:this.buildCSSClass()});return e.innerHTML=" ",e},t}(Spacer);Component.registerComponent("CustomControlSpacer",CustomControlSpacer);var ControlBar=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},t}(Component);ControlBar.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","PDTDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","dvrButton","playbackRateMenuButton","chaptersButton","descriptionsButton","audioTrackButton","subsCapsButton","fullscreenToggle"]},Component.registerComponent("ControlBar",ControlBar);var ErrorDisplay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.on(e,"error",s.open),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-error-display "+r.prototype.buildCSSClass.call(this)},t.prototype.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(ModalDialog);ErrorDisplay.prototype.options_=mergeOptions(ModalDialog.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Component.registerComponent("ErrorDisplay",ErrorDisplay);var LOCAL_STORAGE_KEY="vjs-text-track-settings",COLOR_BLACK=["#000","Black"],COLOR_BLUE=["#00F","Blue"],COLOR_CYAN=["#0FF","Cyan"],COLOR_GREEN=["#0F0","Green"],COLOR_MAGENTA=["#F0F","Magenta"],COLOR_RED=["#F00","Red"],COLOR_WHITE=["#FFF","White"],COLOR_YELLOW=["#FF0","Yellow"],OPACITY_OPAQUE=["1","Opaque"],OPACITY_SEMI=["0.5","Semi-Transparent"],OPACITY_TRANS=["0","Transparent"],selectConfigs={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[COLOR_BLACK,COLOR_WHITE,COLOR_RED,COLOR_GREEN,COLOR_BLUE,COLOR_YELLOW,COLOR_MAGENTA,COLOR_CYAN]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[OPACITY_SEMI,OPACITY_OPAQUE,OPACITY_TRANS]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[COLOR_WHITE,COLOR_BLACK,COLOR_RED,COLOR_GREEN,COLOR_BLUE,COLOR_YELLOW,COLOR_MAGENTA,COLOR_CYAN]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(r){return r==="1.00"?null:Number(r)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[OPACITY_OPAQUE,OPACITY_SEMI]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[OPACITY_TRANS,OPACITY_SEMI,OPACITY_OPAQUE]}};selectConfigs.windowColor.options=selectConfigs.backgroundColor.options;var TextTrackSettings=function(r){function t(e,n){classCallCheck(this,t),n.temporary=!1;var s=possibleConstructorReturn(this,r.call(this,e,n));return s.updateDisplay=bind(s,s.updateDisplay),s.fill(),s.hasBeenOpened_=s.hasBeenFilled_=!0,s.endDialog=createEl("p",{className:"vjs-control-text",textContent:s.localize("End of dialog window.")}),s.el().appendChild(s.endDialog),s.setDefaults(),n.persistTextTrackSettings===void 0&&(s.options_.persistTextTrackSettings=s.options_.playerOptions.persistTextTrackSettings),s.on(s.$(".vjs-done-button"),"click",function(){s.saveSettings(),s.close()}),s.on(s.$(".vjs-default-button"),"click",function(){s.setDefaults(),s.updateDisplay()}),each(selectConfigs,function(a){s.on(s.$(a.selector),"change",s.updateDisplay)}),s.options_.persistTextTrackSettings&&s.restoreSettings(),s}return inherits(t,r),t.prototype.dispose=function(){this.endDialog=null,r.prototype.dispose.call(this)},t.prototype.createElSelect_=function(e){var n=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"label",l=selectConfigs[e],u=l.id.replace("%s",this.id_);return["<"+a+' id="'+u+'" class="'+(a==="label"?"vjs-label":"")+'">',this.localize(l.label),"</"+a+">",'<select aria-labelledby="'+(s!==""?s+" ":"")+u+'">'].concat(l.options.map(function(c){var h=u+"-"+c[1];return['<option id="'+h+'" value="'+c[0]+'" ','aria-labelledby="'+(s!==""?s+" ":"")+u+" "+h+'">',n.localize(c[1]),"</option>"].join("")})).concat("</select>").join("")},t.prototype.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElColors_=function(){return createEl("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},t.prototype.createElFont_=function(){return createEl("div",{className:'vjs-track-settings-font">',innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},t.prototype.createElControls_=function(){var e=this.localize("restore all settings to the default values");return createEl("div",{className:"vjs-track-settings-controls",innerHTML:['<button class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},t.prototype.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},t.prototype.label=function(){return this.localize("Caption Settings Dialog")},t.prototype.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},t.prototype.buildCSSClass=function(){return r.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},t.prototype.getValues=function(){var e=this;return reduce(selectConfigs,function(n,s,a){var l=getSelectedOptionValue(e.$(s.selector),s.parser);return l!==void 0&&(n[a]=l),n},{})},t.prototype.setValues=function(e){var n=this;each(selectConfigs,function(s,a){setSelectedOption(n.$(s.selector),e[a],s.parser)})},t.prototype.setDefaults=function(){var e=this;each(selectConfigs,function(n){var s=n.hasOwnProperty("default")?n.default:0;e.$(n.selector).selectedIndex=s})},t.prototype.restoreSettings=function(){var e=void 0;try{e=JSON.parse(window_1.localStorage.getItem(LOCAL_STORAGE_KEY))}catch(n){log$2.warn(n)}e&&this.setValues(e)},t.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?window_1.localStorage.setItem(LOCAL_STORAGE_KEY,JSON.stringify(e)):window_1.localStorage.removeItem(LOCAL_STORAGE_KEY)}catch(n){log$2.warn(n)}}},t.prototype.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_=null,this.off(document_1,"keydown",this.handleKeyDown);var e=this.player_.controlBar,n=e&&e.subsCapsButton,s=e&&e.captionsButton;n?n.focus():s&&s.focus()},t}(ModalDialog);Component.registerComponent("TextTrackSettings",TextTrackSettings);var _templateObject$2=taggedTemplateLiteralLoose([`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.
|
|
25
50
|
This may prevent text tracks from loading.`],[`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.
|
|
26
|
-
This may prevent text tracks from loading.`]),Html5=function(r){function t(e,n,s){classCallCheck(this,t);var a=possibleConstructorReturn(this,r.call(this,e,n,s)),l=n.source,u=!1;if(l&&(a.el_.currentSrc!==l.src||n.tag&&n.tag.initNetworkState_===3)?a.setSource(l):a.handleLateInit_(a.el_),a.el_.hasChildNodes()){for(var c=a.el_.childNodes,h=c.length,p=[];h--;){var m=c[h];m.nodeName.toLowerCase()==="track"&&(a.featuresNativeTextTracks?(a.remoteTextTrackEls().addTrackElement_(m),a.remoteTextTracks().addTrack(m.track),a.textTracks().addTrack(m.track),u||a.el_.hasAttribute("crossorigin")||!isCrossOrigin(m.src)||(u=!0)):p.push(m))}for(var b=0;b<p.length;b++)a.el_.removeChild(p[b])}return a.proxyNativeTracks_(),a.featuresNativeTextTracks&&u&&log$2.warn(tsml(_templateObject$2)),a.restoreMetadataTracksInIOSNativePlayer_(),(TOUCH_ENABLED||IS_IPHONE||IS_NATIVE_ANDROID)&&n.nativeControlsForTouch===!0&&a.setControls(!0),a.proxyWebkitFullscreen_(),a.triggerReady(),a}return inherits(t,r),t.prototype.dispose=function(){t.disposeMediaElement(this.el_),this.options_=null,r.prototype.dispose.call(this)},t.prototype.restoreMetadataTracksInIOSNativePlayer_=function(){var e=this.textTracks(),n=void 0,s=function(){n=[];for(var l=0;l<e.length;l++){var u=e[l];u.kind==="metadata"&&n.push({track:u,storedMode:u.mode})}};s(),e.addEventListener("change",s),this.on("dispose",function(){return e.removeEventListener("change",s)});var a=function l(){for(var u=0;u<n.length;u++){var c=n[u];c.track.mode==="disabled"&&c.track.mode!==c.storedMode&&(c.track.mode=c.storedMode)}e.removeEventListener("change",l)};this.on("webkitbeginfullscreen",function(){e.removeEventListener("change",s),e.removeEventListener("change",a),e.addEventListener("change",a)}),this.on("webkitendfullscreen",function(){e.removeEventListener("change",s),e.addEventListener("change",s),e.removeEventListener("change",a)})},t.prototype.proxyNativeTracks_=function(){var e=this;NORMAL.names.forEach(function(n){var s=NORMAL[n],a=e.el()[s.getterName],l=e[s.getterName]();if(e["featuresNative"+s.capitalName+"Tracks"]&&a&&a.addEventListener){var u={change:function(h){l.trigger({type:"change",target:l,currentTarget:l,srcElement:l})},addtrack:function(h){l.addTrack(h.track)},removetrack:function(h){l.removeTrack(h.track)}},c=function(){for(var h=[],p=0;p<l.length;p++){for(var m=!1,b=0;b<a.length;b++)if(a[b]===l[p]){m=!0;break}m||h.push(l[p])}for(;h.length;)l.removeTrack(h.shift())};Object.keys(u).forEach(function(h){var p=u[h];a.addEventListener(h,p),e.on("dispose",function(m){return a.removeEventListener(h,p)})}),e.on("loadstart",c),e.on("dispose",function(h){return e.off("loadstart",c)})}})},t.prototype.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=document_1.createElement("video");var s=this.options_.tag&&getAttributes(this.options_.tag),a=mergeOptions({},s);TOUCH_ENABLED&&this.options_.nativeControlsForTouch===!0||delete a.controls,setAttributes(e,assign(a,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}typeof this.options_.preload<"u"&&setAttribute(e,"preload",this.options_.preload);for(var l=["loop","muted","playsinline","autoplay"],u=0;u<l.length;u++){var c=l[u],h=this.options_[c];h!==void 0&&(h?setAttribute(e,c,c):removeAttribute(e,c),e[c]=h)}return e},t.prototype.handleLateInit_=function(e){if(e.networkState!==0&&e.networkState!==3){if(e.readyState===0){var n=!1,s=function(){n=!0};this.on("loadstart",s);var a=function(){n||this.trigger("loadstart")};return this.on("loadedmetadata",a),void this.ready(function(){this.off("loadstart",s),this.off("loadedmetadata",a),n||this.trigger("loadstart")})}var l=["loadstart"];l.push("loadedmetadata"),e.readyState>=2&&l.push("loadeddata"),e.readyState>=3&&l.push("canplay"),e.readyState>=4&&l.push("canplaythrough"),this.ready(function(){l.forEach(function(u){this.trigger(u)},this)})}},t.prototype.setCurrentTime=function(e){try{this.el_.currentTime=e}catch(n){log$2(n,"Video is not ready. (Video.js)")}},t.prototype.duration=function(){var e=this;if(this.el_.duration===1/0&&IS_ANDROID&&IS_CHROME&&this.el_.currentTime===0){var n=function s(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",s))};return this.on("timeupdate",n),NaN}return this.el_.duration||NaN},t.prototype.width=function(){return this.el_.offsetWidth},t.prototype.height=function(){return this.el_.offsetHeight},t.prototype.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var n=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},s=function(){"webkitPresentationMode"in this.el_&&this.el_.webkitPresentationMode!=="picture-in-picture"&&(this.one("webkitendfullscreen",n),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",s),this.on("dispose",function(){e.off("webkitbeginfullscreen",s),e.off("webkitendfullscreen",n)})}},t.prototype.supportsFullScreen=function(){if(typeof this.el_.webkitEnterFullScreen=="function"){var e=window_1.navigator&&window_1.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},t.prototype.enterFullScreen=function(){var e=this.el_;e.paused&&e.networkState<=e.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){e.pause(),e.webkitEnterFullScreen()},0)):e.webkitEnterFullScreen()},t.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},t.prototype.src=function(e){if(e===void 0)return this.el_.src;this.setSrc(e)},t.prototype.reset=function(){t.resetMediaElement(this.el_)},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},t.prototype.setControls=function(e){this.el_.controls=!!e},t.prototype.addTextTrack=function(e,n,s){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,n,s):r.prototype.addTextTrack.call(this,e,n,s)},t.prototype.createRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return r.prototype.createRemoteTextTrack.call(this,e);var n=document_1.createElement("track");return e.kind&&(n.kind=e.kind),e.label&&(n.label=e.label),(e.language||e.srclang)&&(n.srclang=e.language||e.srclang),e.default&&(n.default=e.default),e.id&&(n.id=e.id),e.src&&(n.src=e.src),n},t.prototype.addRemoteTextTrack=function(e,n){var s=r.prototype.addRemoteTextTrack.call(this,e,n);return this.featuresNativeTextTracks&&this.el().appendChild(s),s},t.prototype.removeRemoteTextTrack=function(e){if(r.prototype.removeRemoteTextTrack.call(this,e),this.featuresNativeTextTracks)for(var n=this.$$("track"),s=n.length;s--;)e!==n[s]&&e!==n[s].track||this.el().removeChild(n[s])},t.prototype.getVideoPlaybackQuality=function(){if(typeof this.el().getVideoPlaybackQuality=="function")return this.el().getVideoPlaybackQuality();var e={};return typeof this.el().webkitDroppedFrameCount<"u"&&typeof this.el().webkitDecodedFrameCount<"u"&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),window_1.performance&&typeof window_1.performance.now=="function"?e.creationTime=window_1.performance.now():window_1.performance&&window_1.performance.timing&&typeof window_1.performance.timing.navigationStart=="number"&&(e.creationTime=window_1.Date.now()-window_1.performance.timing.navigationStart),e},t}(Tech);if(isReal()){Html5.TEST_VID=document_1.createElement("video");var track=document_1.createElement("track");track.kind="captions",track.srclang="en",track.label="English",Html5.TEST_VID.appendChild(track)}Html5.isSupported=function(){try{Html5.TEST_VID.volume=.5}catch{return!1}return!(!Html5.TEST_VID||!Html5.TEST_VID.canPlayType)},Html5.canPlayType=function(r){return Html5.TEST_VID.canPlayType(r)},Html5.canPlaySource=function(r,t){return Html5.canPlayType(r.type)},Html5.canControlVolume=function(){try{var r=Html5.TEST_VID.volume;return Html5.TEST_VID.volume=r/2+.1,r!==Html5.TEST_VID.volume}catch{return!1}},Html5.canControlMute=function(){try{var r=Html5.TEST_VID.muted;return Html5.TEST_VID.muted=!0,r!==Html5.TEST_VID.muted}catch{return!1}},Html5.canControlPlaybackRate=function(){if(IS_ANDROID&&IS_CHROME&&CHROME_VERSION<58)return!1;try{var r=Html5.TEST_VID.playbackRate;return Html5.TEST_VID.playbackRate=r/2+.1,r!==Html5.TEST_VID.playbackRate}catch{return!1}},Html5.supportsNativeTextTracks=function(){return IS_ANY_SAFARI},Html5.supportsNativeVideoTracks=function(){return!(!Html5.TEST_VID||!Html5.TEST_VID.videoTracks)},Html5.supportsNativeAudioTracks=function(){return!(!Html5.TEST_VID||!Html5.TEST_VID.audioTracks)},Html5.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],Html5.prototype.featuresVolumeControl=Html5.canControlVolume(),Html5.prototype.featuresMuteControl=Html5.canControlMute(),Html5.prototype.featuresPlaybackRate=Html5.canControlPlaybackRate(),Html5.prototype.movingMediaElementInDOM=!IS_IOS,Html5.prototype.featuresFullscreenResize=!0,Html5.prototype.featuresProgressEvents=!0,Html5.prototype.featuresTimeupdateEvents=!0,Html5.prototype.featuresNativeTextTracks=Html5.supportsNativeTextTracks(),Html5.prototype.featuresNativeVideoTracks=Html5.supportsNativeVideoTracks(),Html5.prototype.featuresNativeAudioTracks=Html5.supportsNativeAudioTracks();var canPlayType=Html5.TEST_VID&&Html5.TEST_VID.constructor.prototype.canPlayType,mpegurlRE=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,mp4RE=/^video\/mp4/i;Html5.patchCanPlayType=function(){ANDROID_VERSION>=4&&!IS_FIREFOX?Html5.TEST_VID.constructor.prototype.canPlayType=function(r){return r&&mpegurlRE.test(r)?"maybe":canPlayType.call(this,r)}:IS_OLD_ANDROID&&(Html5.TEST_VID.constructor.prototype.canPlayType=function(r){return r&&mp4RE.test(r)?"maybe":canPlayType.call(this,r)})},Html5.unpatchCanPlayType=function(){var r=Html5.TEST_VID.constructor.prototype.canPlayType;return Html5.TEST_VID.constructor.prototype.canPlayType=canPlayType,r},Html5.patchCanPlayType(),Html5.disposeMediaElement=function(r){if(r){for(r.parentNode&&r.parentNode.removeChild(r);r.hasChildNodes();)r.removeChild(r.firstChild);r.removeAttribute("src"),typeof r.load=="function"&&function(){try{r.load()}catch{}}()}},Html5.resetMediaElement=function(r){if(r){for(var t=r.querySelectorAll("source"),e=t.length;e--;)r.removeChild(t[e]);r.removeAttribute("src"),typeof r.load=="function"&&function(){try{r.load()}catch{}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(r){Html5.prototype[r]=function(){return this.el_[r]||this.el_.hasAttribute(r)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(r){Html5.prototype["set"+toTitleCase(r)]=function(t){this.el_[r]=t,t?this.el_.setAttribute(r,r):this.el_.removeAttribute(r)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(r){Html5.prototype[r]=function(){return this.el_[r]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach(function(r){Html5.prototype["set"+toTitleCase(r)]=function(t){this.el_[r]=t}}),["pause","load","play"].forEach(function(r){Html5.prototype[r]=function(){return this.el_[r]()}}),Tech.withSourceHandlers(Html5),Html5.nativeSourceHandler={},Html5.nativeSourceHandler.canPlayType=function(r){setTimeout(function(){},2e3);try{return Html5.TEST_VID.canPlayType(r)}catch{return""}},Html5.nativeSourceHandler.canHandleSource=function(r,t){if(r.type)return Html5.nativeSourceHandler.canPlayType(r.type);if(r.src){var e=getFileExtension(r.src);return Html5.nativeSourceHandler.canPlayType("video/"+e)}return""},Html5.nativeSourceHandler.handleSource=function(r,t,e){t.setSrc(r.src)},Html5.nativeSourceHandler.dispose=function(){},Html5.registerSourceHandler(Html5.nativeSourceHandler),Tech.registerTech("Html5",Html5);var _templateObject$1=taggedTemplateLiteralLoose([`
|
|
51
|
+
This may prevent text tracks from loading.`]),Html5=function(r){function t(e,n,s){classCallCheck(this,t);var a=possibleConstructorReturn(this,r.call(this,e,n,s)),l=n.source,u=!1;if(l&&(a.el_.currentSrc!==l.src||n.tag&&n.tag.initNetworkState_===3)?a.setSource(l):a.handleLateInit_(a.el_),a.el_.hasChildNodes()){for(var c=a.el_.childNodes,h=c.length,p=[];h--;){var g=c[h];g.nodeName.toLowerCase()==="track"&&(a.featuresNativeTextTracks?(a.remoteTextTrackEls().addTrackElement_(g),a.remoteTextTracks().addTrack(g.track),a.textTracks().addTrack(g.track),u||a.el_.hasAttribute("crossorigin")||!isCrossOrigin(g.src)||(u=!0)):p.push(g))}for(var v=0;v<p.length;v++)a.el_.removeChild(p[v])}return a.proxyNativeTracks_(),a.featuresNativeTextTracks&&u&&log$2.warn(tsml(_templateObject$2)),a.restoreMetadataTracksInIOSNativePlayer_(),(TOUCH_ENABLED||IS_IPHONE||IS_NATIVE_ANDROID)&&n.nativeControlsForTouch===!0&&a.setControls(!0),a.proxyWebkitFullscreen_(),a.triggerReady(),a}return inherits(t,r),t.prototype.dispose=function(){t.disposeMediaElement(this.el_),this.options_=null,r.prototype.dispose.call(this)},t.prototype.restoreMetadataTracksInIOSNativePlayer_=function(){var e=this.textTracks(),n=void 0,s=function(){n=[];for(var l=0;l<e.length;l++){var u=e[l];u.kind==="metadata"&&n.push({track:u,storedMode:u.mode})}};s(),e.addEventListener("change",s),this.on("dispose",function(){return e.removeEventListener("change",s)});var a=function l(){for(var u=0;u<n.length;u++){var c=n[u];c.track.mode==="disabled"&&c.track.mode!==c.storedMode&&(c.track.mode=c.storedMode)}e.removeEventListener("change",l)};this.on("webkitbeginfullscreen",function(){e.removeEventListener("change",s),e.removeEventListener("change",a),e.addEventListener("change",a)}),this.on("webkitendfullscreen",function(){e.removeEventListener("change",s),e.addEventListener("change",s),e.removeEventListener("change",a)})},t.prototype.proxyNativeTracks_=function(){var e=this;NORMAL.names.forEach(function(n){var s=NORMAL[n],a=e.el()[s.getterName],l=e[s.getterName]();if(e["featuresNative"+s.capitalName+"Tracks"]&&a&&a.addEventListener){var u={change:function(h){l.trigger({type:"change",target:l,currentTarget:l,srcElement:l})},addtrack:function(h){l.addTrack(h.track)},removetrack:function(h){l.removeTrack(h.track)}},c=function(){for(var h=[],p=0;p<l.length;p++){for(var g=!1,v=0;v<a.length;v++)if(a[v]===l[p]){g=!0;break}g||h.push(l[p])}for(;h.length;)l.removeTrack(h.shift())};Object.keys(u).forEach(function(h){var p=u[h];a.addEventListener(h,p),e.on("dispose",function(g){return a.removeEventListener(h,p)})}),e.on("loadstart",c),e.on("dispose",function(h){return e.off("loadstart",c)})}})},t.prototype.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=document_1.createElement("video");var s=this.options_.tag&&getAttributes(this.options_.tag),a=mergeOptions({},s);TOUCH_ENABLED&&this.options_.nativeControlsForTouch===!0||delete a.controls,setAttributes(e,assign(a,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}typeof this.options_.preload<"u"&&setAttribute(e,"preload",this.options_.preload);for(var l=["loop","muted","playsinline","autoplay"],u=0;u<l.length;u++){var c=l[u],h=this.options_[c];h!==void 0&&(h?setAttribute(e,c,c):removeAttribute(e,c),e[c]=h)}return e},t.prototype.handleLateInit_=function(e){if(e.networkState!==0&&e.networkState!==3){if(e.readyState===0){var n=!1,s=function(){n=!0};this.on("loadstart",s);var a=function(){n||this.trigger("loadstart")};return this.on("loadedmetadata",a),void this.ready(function(){this.off("loadstart",s),this.off("loadedmetadata",a),n||this.trigger("loadstart")})}var l=["loadstart"];l.push("loadedmetadata"),e.readyState>=2&&l.push("loadeddata"),e.readyState>=3&&l.push("canplay"),e.readyState>=4&&l.push("canplaythrough"),this.ready(function(){l.forEach(function(u){this.trigger(u)},this)})}},t.prototype.setCurrentTime=function(e){try{this.el_.currentTime=e}catch(n){log$2(n,"Video is not ready. (Video.js)")}},t.prototype.duration=function(){var e=this;if(this.el_.duration===1/0&&IS_ANDROID&&IS_CHROME&&this.el_.currentTime===0){var n=function s(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",s))};return this.on("timeupdate",n),NaN}return this.el_.duration||NaN},t.prototype.width=function(){return this.el_.offsetWidth},t.prototype.height=function(){return this.el_.offsetHeight},t.prototype.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var n=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},s=function(){"webkitPresentationMode"in this.el_&&this.el_.webkitPresentationMode!=="picture-in-picture"&&(this.one("webkitendfullscreen",n),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",s),this.on("dispose",function(){e.off("webkitbeginfullscreen",s),e.off("webkitendfullscreen",n)})}},t.prototype.supportsFullScreen=function(){if(typeof this.el_.webkitEnterFullScreen=="function"){var e=window_1.navigator&&window_1.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},t.prototype.enterFullScreen=function(){var e=this.el_;e.paused&&e.networkState<=e.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){e.pause(),e.webkitEnterFullScreen()},0)):e.webkitEnterFullScreen()},t.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},t.prototype.src=function(e){if(e===void 0)return this.el_.src;this.setSrc(e)},t.prototype.reset=function(){t.resetMediaElement(this.el_)},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},t.prototype.setControls=function(e){this.el_.controls=!!e},t.prototype.addTextTrack=function(e,n,s){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,n,s):r.prototype.addTextTrack.call(this,e,n,s)},t.prototype.createRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return r.prototype.createRemoteTextTrack.call(this,e);var n=document_1.createElement("track");return e.kind&&(n.kind=e.kind),e.label&&(n.label=e.label),(e.language||e.srclang)&&(n.srclang=e.language||e.srclang),e.default&&(n.default=e.default),e.id&&(n.id=e.id),e.src&&(n.src=e.src),n},t.prototype.addRemoteTextTrack=function(e,n){var s=r.prototype.addRemoteTextTrack.call(this,e,n);return this.featuresNativeTextTracks&&this.el().appendChild(s),s},t.prototype.removeRemoteTextTrack=function(e){if(r.prototype.removeRemoteTextTrack.call(this,e),this.featuresNativeTextTracks)for(var n=this.$$("track"),s=n.length;s--;)e!==n[s]&&e!==n[s].track||this.el().removeChild(n[s])},t.prototype.getVideoPlaybackQuality=function(){if(typeof this.el().getVideoPlaybackQuality=="function")return this.el().getVideoPlaybackQuality();var e={};return typeof this.el().webkitDroppedFrameCount<"u"&&typeof this.el().webkitDecodedFrameCount<"u"&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),window_1.performance&&typeof window_1.performance.now=="function"?e.creationTime=window_1.performance.now():window_1.performance&&window_1.performance.timing&&typeof window_1.performance.timing.navigationStart=="number"&&(e.creationTime=window_1.Date.now()-window_1.performance.timing.navigationStart),e},t}(Tech);if(isReal()){Html5.TEST_VID=document_1.createElement("video");var track=document_1.createElement("track");track.kind="captions",track.srclang="en",track.label="English",Html5.TEST_VID.appendChild(track)}Html5.isSupported=function(){try{Html5.TEST_VID.volume=.5}catch{return!1}return!(!Html5.TEST_VID||!Html5.TEST_VID.canPlayType)},Html5.canPlayType=function(r){return Html5.TEST_VID.canPlayType(r)},Html5.canPlaySource=function(r,t){return Html5.canPlayType(r.type)},Html5.canControlVolume=function(){try{var r=Html5.TEST_VID.volume;return Html5.TEST_VID.volume=r/2+.1,r!==Html5.TEST_VID.volume}catch{return!1}},Html5.canControlMute=function(){try{var r=Html5.TEST_VID.muted;return Html5.TEST_VID.muted=!0,r!==Html5.TEST_VID.muted}catch{return!1}},Html5.canControlPlaybackRate=function(){if(IS_ANDROID&&IS_CHROME&&CHROME_VERSION<58)return!1;try{var r=Html5.TEST_VID.playbackRate;return Html5.TEST_VID.playbackRate=r/2+.1,r!==Html5.TEST_VID.playbackRate}catch{return!1}},Html5.supportsNativeTextTracks=function(){return IS_ANY_SAFARI},Html5.supportsNativeVideoTracks=function(){return!(!Html5.TEST_VID||!Html5.TEST_VID.videoTracks)},Html5.supportsNativeAudioTracks=function(){return!(!Html5.TEST_VID||!Html5.TEST_VID.audioTracks)},Html5.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],Html5.prototype.featuresVolumeControl=Html5.canControlVolume(),Html5.prototype.featuresMuteControl=Html5.canControlMute(),Html5.prototype.featuresPlaybackRate=Html5.canControlPlaybackRate(),Html5.prototype.movingMediaElementInDOM=!IS_IOS,Html5.prototype.featuresFullscreenResize=!0,Html5.prototype.featuresProgressEvents=!0,Html5.prototype.featuresTimeupdateEvents=!0,Html5.prototype.featuresNativeTextTracks=Html5.supportsNativeTextTracks(),Html5.prototype.featuresNativeVideoTracks=Html5.supportsNativeVideoTracks(),Html5.prototype.featuresNativeAudioTracks=Html5.supportsNativeAudioTracks();var canPlayType=Html5.TEST_VID&&Html5.TEST_VID.constructor.prototype.canPlayType,mpegurlRE=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,mp4RE=/^video\/mp4/i;Html5.patchCanPlayType=function(){ANDROID_VERSION>=4&&!IS_FIREFOX?Html5.TEST_VID.constructor.prototype.canPlayType=function(r){return r&&mpegurlRE.test(r)?"maybe":canPlayType.call(this,r)}:IS_OLD_ANDROID&&(Html5.TEST_VID.constructor.prototype.canPlayType=function(r){return r&&mp4RE.test(r)?"maybe":canPlayType.call(this,r)})},Html5.unpatchCanPlayType=function(){var r=Html5.TEST_VID.constructor.prototype.canPlayType;return Html5.TEST_VID.constructor.prototype.canPlayType=canPlayType,r},Html5.patchCanPlayType(),Html5.disposeMediaElement=function(r){if(r){for(r.parentNode&&r.parentNode.removeChild(r);r.hasChildNodes();)r.removeChild(r.firstChild);r.removeAttribute("src"),typeof r.load=="function"&&function(){try{r.load()}catch{}}()}},Html5.resetMediaElement=function(r){if(r){for(var t=r.querySelectorAll("source"),e=t.length;e--;)r.removeChild(t[e]);r.removeAttribute("src"),typeof r.load=="function"&&function(){try{r.load()}catch{}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(r){Html5.prototype[r]=function(){return this.el_[r]||this.el_.hasAttribute(r)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(r){Html5.prototype["set"+toTitleCase(r)]=function(t){this.el_[r]=t,t?this.el_.setAttribute(r,r):this.el_.removeAttribute(r)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(r){Html5.prototype[r]=function(){return this.el_[r]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach(function(r){Html5.prototype["set"+toTitleCase(r)]=function(t){r==="src"&&this.player_&&this.player_.trigger&&this.player_.trigger({type:"debug",data:{message:"debug === 播放地址直传 video: "+t}}),this.el_[r]=t}}),["pause","load","play"].forEach(function(r){Html5.prototype[r]=function(){return this.el_[r]()}}),Tech.withSourceHandlers(Html5),Html5.nativeSourceHandler={},Html5.nativeSourceHandler.canPlayType=function(r){setTimeout(function(){},2e3);try{return r==="video/m3u8"?"maybe":Html5.TEST_VID.canPlayType(r)}catch{return""}},Html5.nativeSourceHandler.canHandleSource=function(r,t){if(r.type)return Html5.nativeSourceHandler.canPlayType(r.type);if(r.src){var e=getFileExtension(r.src);return Html5.nativeSourceHandler.canPlayType("video/"+e)}return""},Html5.nativeSourceHandler.handleSource=function(r,t,e){t.setSrc(r.src)},Html5.nativeSourceHandler.dispose=function(){},Html5.registerSourceHandler(Html5.nativeSourceHandler),Tech.registerTech("Html5",Html5);var _templateObject$1=taggedTemplateLiteralLoose([`
|
|
27
52
|
Using the tech directly can be dangerous. I hope you know what you're doing.
|
|
28
53
|
See https://github.com/videojs/video.js/issues/2617 for more info.
|
|
29
54
|
`],[`
|
|
30
55
|
Using the tech directly can be dangerous. I hope you know what you're doing.
|
|
31
56
|
See https://github.com/videojs/video.js/issues/2617 for more info.
|
|
32
|
-
`]),preventScroll=function(r){r.preventDefault()},TECH_EVENTS_RETRIGGER=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","resize","volumechange","texttrackchange"],Player=function(r){function t(e,n,s){if(classCallCheck(this,t),e.id=e.id||"vjs_video_"+newGUID(),n=assign(t.getTagSettings(e),n),n.initChildren=!1,n.createEl=!1,n.evented=!1,n.reportTouchActivity=!1,!n.language)if(typeof e.closest=="function"){var a=e.closest("[lang]");a&&a.getAttribute&&(n.language=a.getAttribute("lang"))}else for(var l=e;l&&l.nodeType===1;){if(getAttributes(l).hasOwnProperty("lang")){n.language=l.getAttribute("lang");break}l=l.parentNode}var u=possibleConstructorReturn(this,r.call(this,null,n,s));if(u.isReady_=!1,u.hasStarted_=!1,u.userActive_=!1,!u.options_||!u.options_.techOrder||!u.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(u.tag=e,u.tagAttributes=e&&getAttributes(e),u.language(u.options_.language),n.languages){var c={};Object.getOwnPropertyNames(n.languages).forEach(function(
|
|
57
|
+
`]),preventScroll=function(r){r.preventDefault()},TECH_EVENTS_RETRIGGER=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","resize","volumechange","texttrackchange"],Player=function(r){function t(e,n,s){if(classCallCheck(this,t),e.id=e.id||"vjs_video_"+newGUID(),n=assign(t.getTagSettings(e),n),n.initChildren=!1,n.createEl=!1,n.evented=!1,n.reportTouchActivity=!1,!n.language)if(typeof e.closest=="function"){var a=e.closest("[lang]");a&&a.getAttribute&&(n.language=a.getAttribute("lang"))}else for(var l=e;l&&l.nodeType===1;){if(getAttributes(l).hasOwnProperty("lang")){n.language=l.getAttribute("lang");break}l=l.parentNode}var u=possibleConstructorReturn(this,r.call(this,null,n,s));if(u.isReady_=!1,u.hasStarted_=!1,u.userActive_=!1,!u.options_||!u.options_.techOrder||!u.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(u.tag=e,u.tagAttributes=e&&getAttributes(e),u.language(u.options_.language),n.languages){var c={};Object.getOwnPropertyNames(n.languages).forEach(function(g){c[g.toLowerCase()]=n.languages[g]}),u.languages_=c}else u.languages_=t.prototype.options_.languages;u.cache_={},u.poster_=n.poster||"",u.controls_=!!n.controls,u.cache_.lastVolume=1,e.controls=!1,e.removeAttribute("controls"),n.controlBar&&n.controlBar.fullscreenRotate&&(u.conW=window_1.innerWidth||document_1.documentElement.clientWidth||document_1.body.clientWidth,u.conH=window_1.innerHeight||document_1.documentElement.clientHeight||document_1.body.clientHeight,u.currentDirection="portrait",u.lastDirection="portrait",u.recordDirection()),u.scrubbing_=!1,u.textTrackCleared_=!1,u.el_=u.createEl(),evented(u,{eventBusKey:"el_"});var h=mergeOptions(u.options_);if(n.plugins){var p=n.plugins;Object.keys(p).forEach(function(g){if(typeof this[g]!="function")throw new Error('plugin "'+g+'" does not exist');this[g](p[g])},u)}return u.options_.playerOptions=h,u.middleware_=[],u.initChildren(),u.isAudio(e.nodeName.toLowerCase()==="audio"),u.controls()?u.addClass("vjs-controls-enabled"):u.addClass("vjs-controls-disabled"),u.el_.setAttribute("role","region"),u.isAudio()?u.el_.setAttribute("aria-label",u.localize("Audio Player")):u.el_.setAttribute("aria-label",u.localize("Video Player")),u.isAudio()&&u.addClass("vjs-audio"),u.flexNotSupported_()&&u.addClass("vjs-no-flex"),IS_IOS||IS_ANDROID||u.addClass("vjs-workinghover"),t.players[u.id_]=u,u.userActive(!0),u.reportUserActivity(),u.listenForUserActivity_(),u.on("fullscreenchange",u.handleFullscreenChange_),u.on("stageclick",u.handleStageClick_),u.changingSrc_=!1,u.playWaitingForReady_=!1,u.playOnLoadstart_=null,u.forceAutoplayInChrome_(),u}return inherits(t,r),t.prototype.recordDirection=function(){var e=this,n=this;this.currentDirection="portrait",this.lastDirection="portrait";var s="onorientationchange"in window_1?"orientationchange":"resize";window_1.addEventListener(s,function(){window_1.orientation==0||window_1.orientation==180?(n.lastDirection=n.currentDirection.slice(),n.currentDirection="portrait"):(n.lastDirection=n.currentDirection.slice(),n.currentDirection="landscape"),e.screenRotated&&(n.lastDirection==="portrait"&&e.currentDirection==="landscape"&&n.landscapeForOrientation(),n.lastDirection==="landscape"&&e.currentDirection==="portrait"&&n.portrait(!0)),e.screenRotated||(n.lastDirection==="portrait"&&e.currentDirection==="landscape"&&n.landscapeForOrientation(),n.lastDirection==="landscape"&&e.currentDirection==="portrait"&&n.portrait(!0)),n.trigger("directionchanged")},!1)},t.prototype.requestRotatescreen=function(){var e=this;return e.screenRotated?(e.exitRotatescreen(),!1):e.currentDirection!=="landscape"||e.screenRotated?(e.el_.style.width="100vw",e.el_.style.height="100%",e.el_.style.position="fixed",e.el_.style.zIndex="999",e.el_.style.top="0",document_1.body.style.overflowY="hidden",document_1.addEventListener("touchmove",preventScroll,{passive:!1}),void e.landscape()):(e.portrait(),!1)},t.prototype.portrait=function(){var e=this;e.screenRotated=!1,e.el_.removeAttribute("style")},t.prototype.landscapeForOrientation=function(){var e=this;e.portrait(),setTimeout(function(){var n=window_1.innerHeight||document_1.documentElement.clientHeight||document_1.body.clientHeight;e.el_.style.transform="rotate(0deg)",e.el_.style.width="100vw",e.el_.style.height=n+"px",e.el_.style["transform-origin"]="center center",e.el_.style["-webkit-transform-origin"]="center center"},150)},t.prototype.landscape=function(){var e=this;e.screenRotated=!0,e.el_.style.transform="rotate(90deg) translate("+(e.conH-e.conW)/2+"px,"+(e.conH-e.conW)/2+"px)",e.el_.style.width=e.conH+"px",e.el_.style.height=e.conW+"px",e.el_.style["transform-origin"]="center center",e.el_.style["-webkit-transform-origin"]="center center"},t.prototype.exitRotatescreen=function(){this.el_.removeAttribute("style"),document_1.removeEventListener("touchmove",preventScroll,{passive:!1}),document_1.body.style.overflowY="",this.screenRotated=!1,this.portrait(!0)},t.prototype.dispose=function(){if(!this.el_)return!1;this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&this.tech_.dispose(),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),r.prototype.dispose.call(this)},t.prototype.createEl=function(){var e=this.tag,n=void 0,s=this.playerElIngest_=e.parentNode&&e.parentNode.hasAttribute&&e.parentNode.hasAttribute("data-vjs-player"),a=this.tag.tagName.toLowerCase()==="video-js";s?n=this.el_=e.parentNode:a||(n=this.el_=r.prototype.createEl.call(this,"div"));var l=getAttributes(e);if(a){for(n=this.el_=e,e=this.tag=document_1.createElement("video");n.children.length;)e.appendChild(n.firstChild);hasClass(n,"video-js")||addClass(n,"video-js"),n.appendChild(e),s=this.playerElIngest_=n}if(e.setAttribute("tabindex","-1"),e.removeAttribute("width"),e.removeAttribute("height"),Object.getOwnPropertyNames(l).forEach(function(v){v==="class"?(n.className+=" "+l[v],a&&(e.className+=" "+l[v])):(n.setAttribute(v,l[v]),a&&e.setAttribute(v,l[v]))}),e.playerId=e.id,e.id+="_html5_api",e.className="vjs-tech",e.player=n.player=this,this.addClass("vjs-paused"),window_1.VIDEOJS_NO_DYNAMIC_STYLE!==!0){this.styleEl_=createStyleElement("vjs-styles-dimensions");var u=$(".vjs-styles-defaults"),c=$("head");c.insertBefore(this.styleEl_,u?u.nextSibling:c.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var h=e.getElementsByTagName("a"),p=0;p<h.length;p++){var g=h.item(p);addClass(g,"vjs-hidden"),g.setAttribute("hidden","hidden")}return e.initNetworkState_=e.networkState,e.parentNode&&!s&&e.parentNode.insertBefore(n,e),prependTo(e,n),this.children_.unshift(e),this.el_.setAttribute("lang",this.language_),this.el_=n,n},t.prototype.width=function(e,n){return this.dimension("width",e,n)},t.prototype.height=function(e,n){return this.dimension("height",e,n)},t.prototype.dimension=function(e,n,s){var a=e+"_";if(n===void 0)return this[a]||0;if(n==="")return this[a]=void 0,void this.updateStyleEl_();var l=parseFloat(n);if(isNaN(l))return void log$2.error('Improper value "'+n+'" supplied for for '+e);this[a]=l,this.updateStyleEl_(),this.isReady_&&!s&&this.trigger("playerresize")},t.prototype.fluid=function(e){if(e===void 0)return!!this.fluid_;this.fluid_=!!e,e?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),this.updateStyleEl_()},t.prototype.aspectRatio=function(e){if(e===void 0)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},t.prototype.updateStyleEl_=function(){if(window_1.VIDEOJS_NO_DYNAMIC_STYLE===!0){var e=typeof this.width_=="number"?this.width_:this.options_.width,n=typeof this.height_=="number"?this.height_:this.options_.height,s=this.tech_&&this.tech_.el();return void(s&&(e>=0&&(s.width=e),n>=0&&(s.height=n)))}var a=void 0,l=void 0,u=void 0,c=void 0;u=this.aspectRatio_!==void 0&&this.aspectRatio_!=="auto"?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";var h=u.split(":"),p=h[1]/h[0];a=this.width_!==void 0?this.width_:this.height_!==void 0?this.height_/p:this.videoWidth()||300,l=this.height_!==void 0?this.height_:a*p,c=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(c),setTextContent(this.styleEl_,`
|
|
33
58
|
.`+c+` {
|
|
34
59
|
width: `+a+`px;
|
|
35
60
|
height: `+l+`px;
|
|
@@ -38,7 +63,11 @@
|
|
|
38
63
|
.`+c+`.vjs-fluid {
|
|
39
64
|
padding-top: `+100*p+`%;
|
|
40
65
|
}
|
|
41
|
-
`)},t.prototype.loadTech_=function(e,n){var s=this;this.tech_&&this.unloadTech_();var a=toTitleCase(e),l=e.charAt(0).toLowerCase()+e.slice(1);a!=="Html5"&&this.tag&&(Tech.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=a,this.isReady_=!1;var u={source:n,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+a+"_api",autoplay:this.options_.autoplay,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],swf:this.options_.swf,hlsConfig:this.options_.hlsConfig,dashConfig:this.options_.dashConfig,flvConfig:this.options_.flvConfig,webrtcConfig:this.options_.webrtcConfig,xp2pConfig:this.options_.xp2pConfig};ALL.names.forEach(function(h){var p=ALL[h];u[p.getterName]=s[p.privateName]}),assign(u,this.options_[a]),assign(u,this.options_[l]),assign(u,this.options_[e.toLowerCase()]),this.tag&&(u.tag=this.tag),n&&n.src===this.cache_.src&&this.cache_.currentTime>0&&(u.startTime=this.cache_.currentTime);var c=Tech.getTech(e);if(!c)throw new Error("No Tech named '"+a+"' exists! '"+a+"' should be registered using videojs.registerTech()'");this.tech_=new c(this,u),this.tech_.ready(bind(this,this.handleTechReady_),!0),textTrackConverter.jsonToTextTracks(this.textTracksJson_||[],this.tech_),TECH_EVENTS_RETRIGGER.forEach(function(h){s.on(s.tech_,h,s["handleTech"+toTitleCase(h)+"_"])}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"canplay",this.handleTechCanPlay_),this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_),this.on(this.tech_,"playing",this.handleTechPlaying_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"seeked",this.handleTechSeeked_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"x5videoexitfullscreen",this.handleX5ExitFullscreen_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||a==="Html5"&&this.tag||prependTo(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},t.prototype.unloadTech_=function(){var e=this;ALL.names.forEach(function(n){var s=ALL[n];e[s.privateName]=e[s.getterName]()}),this.textTracksJson_=textTrackConverter.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},t.prototype.tech=function(e){return e===void 0&&log$2.warn(tsml(_templateObject$1)),this.tech_},t.prototype.addTechControlsListeners_=function(){this.tech_&&(this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_))},t.prototype.removeTechControlsListeners_=function(){this.tech_&&(this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_))},t.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused())try{delete this.tag.poster}catch(e){log$2("deleting tag.poster throws in some browsers",e)}},t.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},t.prototype.hasStarted=function(e){if(e===void 0)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},t.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},t.prototype.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return e.removeClass("vjs-waiting")})},t.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},t.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},t.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},t.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},t.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},t.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&(log$2.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},t.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},t.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},t.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},t.prototype.handleTechClick_=function(e){isSingleLeftClick(e)&&this.controls_&&(this.paused()?this.play():this.pause())},t.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},t.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},t.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},t.prototype.handleTechTouchEnd_=function(e){e.preventDefault()},t.prototype.handleFullscreenChange_=function(){IS_IOS||(this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen"))},t.prototype.handleStageClick_=function(){this.reportUserActivity()},t.prototype.toggleFullscreenClass_=function(){IS_IOS||(this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen"))},t.prototype.documentFullscreenChange_=function(e){var n=FullscreenApi;this.isFullscreen(document_1[n.fullscreenElement]),this.isFullscreen()===!1&&off(document_1,n.fullscreenchange,bind(this,this.documentFullscreenChange_)),prefixedAPI||this.trigger("fullscreenchange")},t.prototype.handleTechFullscreenChange_=function(e,n){n&&this.isFullscreen(n.isFullscreen),this.trigger("fullscreenchange")},t.prototype.handleTechError_=function(){var e=this.tech_.error();this.error(e)},t.prototype.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},t.prototype.handleX5ExitFullscreen_=function(){this.removeClass("vjs-fullscreen"),this.isFullscreen_=!this.isFullscreen_},t.prototype.getCache=function(){return this.cache_},t.prototype.techCall_=function(e,n){this.ready(function(){if(e in allowedSetters)return set$1(this.middleware_,this.tech_,e,n);try{this.tech_&&this.tech_[e](n)}catch(s){throw log$2(s),s}},!0)},t.prototype.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in allowedGetters)return get$1(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(n){throw this.tech_[e]===void 0?(log$2("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",n),n):n.name==="TypeError"?(log$2("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",n),this.tech_.isReady_=!1,n):(log$2(n),n)}}},t.prototype.play=function(){var e=this;if(this.playOnLoadstart_&&this.off("loadstart",this.playOnLoadstart_),this.isReady_){if(!this.changingSrc_&&(this.src()||this.currentSrc()))return this.techGet_("play");this.playOnLoadstart_=function(){e.playOnLoadstart_=null,silencePromise(e.play())},this.one("loadstart",this.playOnLoadstart_)}else{if(this.playWaitingForReady_)return;this.playWaitingForReady_=!0,this.ready(function(){e.playWaitingForReady_=!1,silencePromise(e.play())})}},t.prototype.pause=function(){this.techCall_("pause")},t.prototype.paused=function(){return this.techGet_("paused")!==!1},t.prototype.played=function(){return this.techGet_("played")||createTimeRanges(0,0)},t.prototype.scrubbing=function(e){if(e===void 0)return this.scrubbing_;this.scrubbing_=!!e,e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},t.prototype.currentTime=function(e){if(e!==void 0)return e<0&&(e=0),void this.techCall_("setCurrentTime",e);try{return this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime}catch{return 0}},t.prototype.duration=function(e){if(e===void 0)return this.cache_.duration!==void 0?this.cache_.duration:NaN;e=parseFloat(e),e<=0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange"))},t.prototype.remainingTime=function(){return this.duration()-this.currentTime()},t.prototype.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},t.prototype.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=createTimeRanges(0,0)),e},t.prototype.bufferedPercent=function(){return bufferedPercent(this.buffered(),this.duration())},t.prototype.bufferedEnd=function(){var e=this.buffered(),n=this.duration(),s=e.end(e.length-1);return s>n&&(s=n),s},t.prototype.volume=function(e){var n=void 0;return e!==void 0?(n=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=n,this.techCall_("setVolume",n),void(n>0&&this.lastVolume_(n))):(n=parseFloat(this.techGet_("volume")),isNaN(n)?1:n)},t.prototype.muted=function(e){return e!==void 0?void this.techCall_("setMuted",e):this.techGet_("muted")||!1},t.prototype.defaultMuted=function(e){return e!==void 0?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},t.prototype.lastVolume_=function(e){return e!==void 0&&e!==0?void(this.cache_.lastVolume=e):this.cache_.lastVolume},t.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},t.prototype.isFullscreen=function(e){return e!==void 0?(this.isFullscreen_=!!e,void this.toggleFullscreenClass_()):!!this.isFullscreen_},t.prototype.requestFullscreen=function(){var e=FullscreenApi;if(this.isFullscreen(!0),this.options_.fakeFullscreen){var n=this;return IS_IOS?(n.el_.style.width="100vw",n.el_.style.height="100vh",n.el_.style.position="fixed",n.el_.style.zIndex="999",n.el_.style.top="0",document_1.body.style.overflowY="hidden",document_1.addEventListener("touchmove",preventScroll,{passive:!1}),this.trigger("fullscreenchange")):(this.enterFullWindow(),this.trigger("fullscreenchange")),!1}e.requestFullscreen?(on(document_1,e.fullscreenchange,bind(this,this.documentFullscreenChange_)),this.el_[e.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))},t.prototype.exitFullscreen=function(){var e=FullscreenApi;if(this.isFullscreen(!1),this.options_.fakeFullscreen)return IS_IOS?(this.el_.removeAttribute("style"),document_1.removeEventListener("touchmove",preventScroll,{passive:!1}),document_1.body.style.overflowY="",this.trigger("fullscreenchange")):(this.exitFullWindow(),this.trigger("fullscreenchange")),!1;e.requestFullscreen?document_1[e.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))},t.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=document_1.documentElement.style.overflow,on(document_1,"keydown",bind(this,this.fullWindowOnEscKey)),document_1.documentElement.style.overflow="hidden",addClass(document_1.body,"vjs-full-window"),this.trigger("enterFullWindow")},t.prototype.fullWindowOnEscKey=function(e){e.keyCode===27&&(this.isFullscreen()===!0?this.exitFullscreen():this.exitFullWindow())},t.prototype.exitFullWindow=function(){this.isFullWindow=!1,off(document_1,"keydown",this.fullWindowOnEscKey),document_1.documentElement.style.overflow=this.docOrigOverflow,removeClass(document_1.body,"vjs-full-window"),this.trigger("exitFullWindow")},t.prototype.canPlayType=function(e){for(var n=void 0,s=0,a=this.options_.techOrder;s<a.length;s++){var l=a[s],u=Tech.getTech(l);if(u||(u=Component.getComponent(l)),u){if(u.isSupported()&&(n=u.canPlayType(e)))return n}else log$2.error('The "'+l+'" tech is undefined. Skipped browser support check for that tech.')}return""},t.prototype.selectSource=function(e){var n=this,s=this.options_.techOrder.map(function(u){return[u,Tech.getTech(u)]}).filter(function(u){var c=u[0],h=u[1];return h?h.isSupported():(log$2.error('The "'+c+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),a=function(u,c,h){var p=void 0;return u.some(function(m){return c.some(function(b){if(p=h(m,b))return!0})}),p},l=function(u,c){var h=u[0];if(u[1].canPlaySource(c,n.options_[h.toLowerCase()]))return{source:c,tech:h}};return(this.options_.sourceOrder?a(e,s,function(u){return function(c,h){return u(h,c)}}(l)):a(s,e,l))||!1},t.prototype.src=function(e){var n=this;if(e===void 0)return this.cache_.src||this.techGet_("src");var s=filterSource(e);if(!s.length)return void this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0);if(this.cache_.source&&isWebrtcUrl(this.cache_.source.src)&&isWebrtcUrl(s[0].src)&&this.cache_.source.src!==s[0].src){var a=this.tech_.webrtcProvider;if(a&&a.webrtcPlayer&&a.webrtcPlayer.switchStream)return this.tech_.webrtcProvider.webrtcPlayer.switchStream(s[0].src),this.cache_.sources=s,this.cache_.source=s[0],!1}this.cache_.sources=s,this.changingSrc_=!0,this.cache_.source=s[0];try{this.cache_.source&&!isWebrtcUrl(this.cache_.source.src)&&this.options_.autoplay&&setTimeout(function(){var l=n.play&&n.play();isPromise(l)&&l.then().catch(function(){n.trigger("blocked")})},1e3)}catch{}setSource(this,s[0],function(l,u){if(n.middleware_=u,n.src_(l)){if(s.length>1){var c=s.slice(1),h=c[0].qualityLabelList;return h&&n.QualitySwitcher().setOptions({qualityLabelList:{video:h.slice(1)}}),n.src(c)}return n.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void n.triggerReady()}n.changingSrc_=!1,n.cache_.src=l.src,setTech(u,n.tech_)})},t.prototype.src_=function(e){var n=this.selectSource([e]);return!n||(window_1.performance&&typeof window_1.performance.mark=="function"&&window_1.performance.mark("firstFrameStart"),titleCaseEquals(n.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.options_.preload==="auto"&&this.load()},!0),!1):(this.changingSrc_=!0,this.loadTech_(n.tech,n.source),!1))},t.prototype.load=function(){this.techCall_("load")},t.prototype.reset=function(){this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset")},t.prototype.currentSources=function(){var e=this.currentSource(),n=[];return Object.keys(e).length!==0&&n.push(e),this.cache_.sources||n},t.prototype.currentSource=function(){return this.cache_.source||{}},t.prototype.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},t.prototype.currentType=function(){return this.currentSource()&&this.currentSource().type||""},t.prototype.preload=function(e){return e!==void 0?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},t.prototype.autoplay=function(e){return e!==void 0?(this.techCall_("setAutoplay",e),this.options_.autoplay=e,void this.ready(this.forceAutoplayInChrome_)):this.techGet_("autoplay",e)},t.prototype.forceAutoplayInChrome_=function(){this.paused()&&(this.autoplay()||this.options_.autoplay)&&IS_CHROME&&!IS_ANDROID&&this.play()},t.prototype.playsinline=function(e){return e!==void 0?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},t.prototype.loop=function(e){return e!==void 0?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},t.prototype.poster=function(e){if(e===void 0)return this.poster_;e||(e=""),this.poster_=e,this.trigger("posterchange")},t.prototype.handleTechPosterChange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))},t.prototype.controls=function(e){if(e===void 0)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},t.prototype.usingNativeControls=function(e){if(e===void 0)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},t.prototype.error=function(e){return e===void 0?this.error_||null:e===null?(this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close())):(this.error_=new MediaError(e),this.addClass("vjs-error"),log$2.error("(CODE:"+this.error_.code+" "+MediaError.errorTypes[this.error_.code]+")",this.error_.message,this.error_),void this.trigger({type:"error",data:this.error_}))},t.prototype.reportUserActivity=function(e){this.userActivity_=!0},t.prototype.userActive=function(e){if(e===void 0)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(n){n.stopPropagation(),n.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},t.prototype.listenForUserActivity_=function(){var e=void 0,n=void 0,s=void 0,a=bind(this,this.reportUserActivity),l=function(p){p.screenX===n&&p.screenY===s||(n=p.screenX,s=p.screenY,a())},u=function(){a(),this.clearInterval(e),e=this.setInterval(a,250)},c=function(p){a(),this.clearInterval(e)};this.on("mousedown",u),this.on("mousemove",l),this.on("mouseup",c),this.on("keydown",a),this.on("keyup",a);var h=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(h);var p=this.options_.inactivityTimeout;p<=0||(h=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},p))}},250)},t.prototype.playbackRate=function(e){return e!==void 0?void this.techCall_("setPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},t.prototype.defaultPlaybackRate=function(e){return e!==void 0?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},t.prototype.isAudio=function(e){return e!==void 0?void(this.isAudio_=!!e):!!this.isAudio_},t.prototype.addTextTrack=function(e,n,s){if(this.tech_)return this.tech_.addTextTrack(e,n,s)},t.prototype.addRemoteTextTrack=function(e,n){if(this.tech_)return this.tech_.addRemoteTextTrack(e,n)},t.prototype.removeRemoteTextTrack=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.track,s=n===void 0?arguments[0]:n;if(this.tech_)return this.tech_.removeRemoteTextTrack(s)},t.prototype.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},t.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},t.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},t.prototype.language=function(e){if(e===void 0)return this.language_;this.language_=String(e).toLowerCase()},t.prototype.languages=function(){return mergeOptions(t.prototype.options_.languages,this.languages_)},t.prototype.toJSON=function(){var e=mergeOptions(this.options_),n=e.tracks;e.tracks=[];for(var s=0;s<n.length;s++){var a=n[s];a=mergeOptions(a),a.player=void 0,e.tracks[s]=a}return e},t.prototype.createModal=function(e,n){var s=this;n=n||{},n.content=e||"";var a=new ModalDialog(this,n);return this.addChild(a),a.on("dispose",function(){s.removeChild(a)}),a.open(),a},t.getTagSettings=function(e){var n={sources:[],tracks:[]},s=getAttributes(e),a=s["data-setup"];if(hasClass(e,"vjs-fluid")&&(s.fluid=!0),a!==null){var l=tuple(a||"{}"),u=l[0],c=l[1];u&&log$2.error(u),assign(s,c)}if(assign(n,s),e.hasChildNodes())for(var h=e.childNodes,p=0,m=h.length;p<m;p++){var b=h[p],f=b.nodeName.toLowerCase();f==="source"?n.sources.push(getAttributes(b)):f==="track"&&n.tracks.push(getAttributes(b))}return n},t.prototype.flexNotSupported_=function(){var e=document_1.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},t}(Component);ALL.names.forEach(function(r){var t=ALL[r];Player.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),Player.players={};var navigator$1=window_1.navigator;Player.prototype.options_={techOrder:Tech.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings","videoStatisticPanel"],language:navigator$1&&(navigator$1.languages&&navigator$1.languages[0]||navigator$1.userLanguage||navigator$1.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."},["ended","seeking","seekable","networkState","readyState"].forEach(function(r){Player.prototype[r]=function(){return this.techGet_(r)}}),TECH_EVENTS_RETRIGGER.forEach(function(r){Player.prototype["handleTech"+toTitleCase(r)+"_"]=function(){return this.trigger(r)}}),Component.registerComponent("Player",Player);var BASE_PLUGIN_NAME="plugin",PLUGIN_CACHE_KEY="activePlugins_",pluginStorage={},pluginExists=function(r){return pluginStorage.hasOwnProperty(r)},getPlugin=function(r){return pluginExists(r)?pluginStorage[r]:void 0},markPluginAsActive=function(r,t){r[PLUGIN_CACHE_KEY]=r[PLUGIN_CACHE_KEY]||{},r[PLUGIN_CACHE_KEY][t]=!0},triggerSetupEvent=function(r,t,e){var n=(e?"before":"")+"pluginsetup";r.trigger(n,t),r.trigger(n+":"+t.name,t)},createBasicPlugin=function(r,t){var e=function(){triggerSetupEvent(this,{name:r,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return markPluginAsActive(this,r),triggerSetupEvent(this,{name:r,plugin:t,instance:n}),n};return Object.keys(t).forEach(function(n){e[n]=t[n]}),e},createPluginFactory=function(r,t){return t.prototype.name=r,function(){triggerSetupEvent(this,{name:r,plugin:t,instance:null},!0);for(var e=arguments.length,n=Array(e),s=0;s<e;s++)n[s]=arguments[s];var a=new(Function.prototype.bind.apply(t,[null].concat([this].concat(n))));return this[r]=function(){return a},triggerSetupEvent(this,a.getEventHash()),a}},Plugin=function(){function r(t){if(classCallCheck(this,r),this.constructor===r)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,evented(this),delete this.trigger,stateful(this,this.constructor.defaultState),markPluginAsActive(t,this.name),this.dispose=bind(this,this.dispose),t.on("dispose",this.dispose)}return r.prototype.version=function(){return this.constructor.VERSION},r.prototype.getEventHash=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t.name=this.name,t.plugin=this.constructor,t.instance=this,t},r.prototype.trigger=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return trigger(this.eventBusEl_,t,this.getEventHash(e))},r.prototype.handleStateChanged=function(t){},r.prototype.dispose=function(){var t=this.name,e=this.player;this.trigger("dispose"),this.off(),e.off("dispose",this.dispose),e[PLUGIN_CACHE_KEY][t]=!1,this.player=this.state=null,e[t]=createPluginFactory(t,pluginStorage[t])},r.isBasic=function(t){var e=typeof t=="string"?getPlugin(t):t;return typeof e=="function"&&!r.prototype.isPrototypeOf(e.prototype)},r.registerPlugin=function(t,e){if(typeof t!="string")throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+(t===void 0?"undefined":_typeof(t))+".");if(pluginExists(t))log$2.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(Player.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if(typeof e!="function")throw new Error('Illegal plugin for "'+t+'", must be a function, was '+(e===void 0?"undefined":_typeof(e))+".");return pluginStorage[t]=e,t!==BASE_PLUGIN_NAME&&(r.isBasic(e)?Player.prototype[t]=createBasicPlugin(t,e):Player.prototype[t]=createPluginFactory(t,e)),e},r.deregisterPlugin=function(t){if(t===BASE_PLUGIN_NAME)throw new Error("Cannot de-register base plugin.");pluginExists(t)&&(delete pluginStorage[t],delete Player.prototype[t])},r.getPlugins=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Object.keys(pluginStorage),e=void 0;return t.forEach(function(n){var s=getPlugin(n);s&&(e=e||{},e[n]=s)}),e},r.getPluginVersion=function(t){var e=getPlugin(t);return e&&e.VERSION||""},r}();Plugin.getPlugin=getPlugin,Plugin.BASE_PLUGIN_NAME=BASE_PLUGIN_NAME,Plugin.registerPlugin(BASE_PLUGIN_NAME,Plugin),Player.prototype.usingPlugin=function(r){return!!this[PLUGIN_CACHE_KEY]&&this[PLUGIN_CACHE_KEY][r]===!0},Player.prototype.hasPlugin=function(r){return!!pluginExists(r)};var _inherits=function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(t===void 0?"undefined":_typeof(t)));r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.super_=t)},extendFn=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=function(){r.apply(this,arguments)},n={};(t===void 0?"undefined":_typeof(t))==="object"?(t.constructor!==Object.prototype.constructor&&(e=t.constructor),n=t):typeof t=="function"&&(e=t),_inherits(e,r);for(var s in n)n.hasOwnProperty(s)&&(e.prototype[s]=n[s]);return e};if(typeof HTMLVideoElement>"u"&&isReal()&&(document_1.createElement("video"),document_1.createElement("audio"),document_1.createElement("track"),document_1.createElement("video-js")),videojs.hooks_={},videojs.hooks=function(r,t){return videojs.hooks_[r]=videojs.hooks_[r]||[],t&&(videojs.hooks_[r]=videojs.hooks_[r].concat(t)),videojs.hooks_[r]},videojs.hook=function(r,t){videojs.hooks(r,t)},videojs.hookOnce=function(r,t){videojs.hooks(r,[].concat(t).map(function(e){return function n(){return videojs.removeHook(r,n),e.apply(void 0,arguments)}}))},videojs.removeHook=function(r,t){var e=videojs.hooks(r).indexOf(t);return!(e<=-1)&&(videojs.hooks_[r]=videojs.hooks_[r].slice(),videojs.hooks_[r].splice(e,1),!0)},window_1.VIDEOJS_NO_DYNAMIC_STYLE!==!0&&isReal()){var style=$(".vjs-styles-defaults");if(!style){style=createStyleElement("vjs-styles-defaults");var head=$("head");head&&head.insertBefore(style,head.firstChild),setTextContent(style,`
|
|
66
|
+
`)},t.prototype.loadTech_=function(e,n){var s=this;this.tech_&&this.unloadTech_();var a=toTitleCase(e),l=e.charAt(0).toLowerCase()+e.slice(1);a!=="Html5"&&this.tag&&(Tech.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=a,this.isReady_=!1;var u={source:n,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+a+"_api",autoplay:this.options_.autoplay,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],swf:this.options_.swf,hlsConfig:this.options_.hlsConfig,dashConfig:this.options_.dashConfig,flvConfig:this.options_.flvConfig,webrtcConfig:this.options_.webrtcConfig,xp2pConfig:this.options_.xp2pConfig};ALL.names.forEach(function(h){var p=ALL[h];u[p.getterName]=s[p.privateName]}),assign(u,this.options_[a]),assign(u,this.options_[l]),assign(u,this.options_[e.toLowerCase()]),this.tag&&(u.tag=this.tag),n&&n.src===this.cache_.src&&this.cache_.currentTime>0&&(u.startTime=this.cache_.currentTime);var c=Tech.getTech(e);if(!c)throw new Error("No Tech named '"+a+"' exists! '"+a+"' should be registered using videojs.registerTech()'");this.tech_=new c(this,u),this.tech_.ready(bind(this,this.handleTechReady_),!0),textTrackConverter.jsonToTextTracks(this.textTracksJson_||[],this.tech_),TECH_EVENTS_RETRIGGER.forEach(function(h){s.on(s.tech_,h,s["handleTech"+toTitleCase(h)+"_"])}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"canplay",this.handleTechCanPlay_),this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_),this.on(this.tech_,"playing",this.handleTechPlaying_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"seeked",this.handleTechSeeked_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"x5videoexitfullscreen",this.handleX5ExitFullscreen_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||a==="Html5"&&this.tag||prependTo(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},t.prototype.unloadTech_=function(){var e=this;ALL.names.forEach(function(n){var s=ALL[n];e[s.privateName]=e[s.getterName]()}),this.textTracksJson_=textTrackConverter.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},t.prototype.tech=function(e){return e===void 0&&log$2.warn(tsml(_templateObject$1)),this.tech_},t.prototype.addTechControlsListeners_=function(){this.tech_&&(this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_))},t.prototype.removeTechControlsListeners_=function(){this.tech_&&(this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_))},t.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused())try{delete this.tag.poster}catch(e){log$2("deleting tag.poster throws in some browsers",e)}},t.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.licenseCheckFailed||this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},t.prototype.hasStarted=function(e){if(e===void 0)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},t.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},t.prototype.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return e.removeClass("vjs-waiting")})},t.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},t.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},t.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},t.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},t.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},t.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&(log$2.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},t.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},t.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},t.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},t.prototype.handleTechClick_=function(e){isSingleLeftClick(e)&&this.controls_&&(this.paused()?this.play():this.pause())},t.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},t.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},t.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},t.prototype.handleTechTouchEnd_=function(e){e.preventDefault()},t.prototype.handleFullscreenChange_=function(){IS_IOS||(this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen"))},t.prototype.handleStageClick_=function(){this.reportUserActivity()},t.prototype.toggleFullscreenClass_=function(){IS_IOS||(this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen"))},t.prototype.documentFullscreenChange_=function(e){var n=FullscreenApi;this.isFullscreen(document_1[n.fullscreenElement]),this.isFullscreen()===!1&&off(document_1,n.fullscreenchange,bind(this,this.documentFullscreenChange_)),prefixedAPI||this.trigger("fullscreenchange")},t.prototype.handleTechFullscreenChange_=function(e,n){n&&this.isFullscreen(n.isFullscreen),this.trigger("fullscreenchange")},t.prototype.handleTechError_=function(){var e=this.tech_.error();this.error(e)},t.prototype.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},t.prototype.handleX5ExitFullscreen_=function(){this.removeClass("vjs-fullscreen"),this.isFullscreen_=!this.isFullscreen_},t.prototype.getCache=function(){return this.cache_},t.prototype.techCall_=function(e,n){this.ready(function(){if(e in allowedSetters)return set$1(this.middleware_,this.tech_,e,n);try{this.tech_&&this.tech_[e](n)}catch(s){throw log$2(s),s}},!0)},t.prototype.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in allowedGetters)return get$3(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(n){throw this.tech_[e]===void 0?(log$2("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",n),n):n.name==="TypeError"?(log$2("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",n),this.tech_.isReady_=!1,n):(log$2(n),n)}}},t.prototype.play=function(){var e=this;if(this.fatalError)return!1;if(this.playOnLoadstart_&&this.off("loadstart",this.playOnLoadstart_),this.isReady_){if(!this.changingSrc_&&(this.src()||this.currentSrc()))return this.techGet_("play");this.playOnLoadstart_=function(){e.playOnLoadstart_=null,silencePromise(e.play())},this.one("loadstart",this.playOnLoadstart_)}else{if(this.playWaitingForReady_)return;this.playWaitingForReady_=!0,this.ready(function(){e.playWaitingForReady_=!1,silencePromise(e.play())})}},t.prototype.pause=function(){this.techCall_("pause")},t.prototype.paused=function(){return this.techGet_("paused")!==!1},t.prototype.played=function(){return this.techGet_("played")||createTimeRanges(0,0)},t.prototype.scrubbing=function(e){if(e===void 0)return this.scrubbing_;this.scrubbing_=!!e,e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},t.prototype.currentTime=function(e){if(e!==void 0)return e<0&&(e=0),void this.techCall_("setCurrentTime",e);try{return this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime}catch{return 0}},t.prototype.currentPDT=function(e){if(!this.plugins||!this.plugins.pdt)return"";var n=get_1(this,"tech_.hlsProvider.hls.playingDate");if(!n)return"";var s=new Date(n).getTime();if(e){var a=this.currentTime(),l=e-s;return this.currentTime(a+l/1e3),!1}return s},t.prototype.duration=function(e){if(get_1(this,"options_.plugins.Dvr.mode")==="event"&&this.cache_.src&&this.cache_.src.indexOf("tsEventmode=on")>-1){var n=get_1(this,"tech_.hlsProvider.hls.levels[0].details.totalduration");n&&(this.cache_.duration=n),this.cache_.duration&&this.removeClass("vjs-live")}if(e===void 0)return this.cache_.duration!==void 0?this.cache_.duration:NaN;e=parseFloat(e),e<=0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange"))},t.prototype.remainingTime=function(){return this.duration()-this.currentTime()},t.prototype.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},t.prototype.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=createTimeRanges(0,0)),e},t.prototype.bufferedPercent=function(){return bufferedPercent(this.buffered(),this.duration())},t.prototype.bufferedEnd=function(){var e=this.buffered(),n=this.duration(),s=e.end(e.length-1);return s>n&&(s=n),s},t.prototype.volume=function(e){var n=void 0;return e!==void 0?(n=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=n,this.techCall_("setVolume",n),void(n>0?(this.muted(!1),this.lastVolume_(n)):this.muted(!0))):(n=parseFloat(this.techGet_("volume")),isNaN(n)?1:n)},t.prototype.muted=function(e){return e!==void 0?void this.techCall_("setMuted",e):this.techGet_("muted")||!1},t.prototype.defaultMuted=function(e){return e!==void 0?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},t.prototype.lastVolume_=function(e){return e!==void 0&&e!==0?void(this.cache_.lastVolume=e):this.cache_.lastVolume},t.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},t.prototype.isFullscreen=function(e){return e!==void 0?(this.isFullscreen_=!!e,void this.toggleFullscreenClass_()):!!this.isFullscreen_},t.prototype.requestFullscreen=function(){var e=FullscreenApi;if(this.isFullscreen(!0),this.options_.fakeFullscreen){var n=this;return(IS_IOS||IS_ANDROID)&&n.forceFixSubtitlesFont(),IS_IOS?(n.el_.style.width="100vw",n.el_.style.height="100%",n.el_.style.position="fixed",n.el_.style.zIndex="999",n.el_.style.top="0",document_1.body.style.overflowY="hidden",document_1.addEventListener("touchmove",preventScroll,{passive:!1}),this.trigger("fullscreenchange")):(this.enterFullWindow(),this.trigger("fullscreenchange")),!1}e.requestFullscreen?(on(document_1,e.fullscreenchange,bind(this,this.documentFullscreenChange_)),this.el_[e.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))},t.prototype.exitFullscreen=function(){var e=FullscreenApi;if(this.isFullscreen(!1),this.options_.fakeFullscreen)return(IS_IOS||IS_ANDROID)&&this.releaseSubtitlesFont(),IS_IOS?(this.el_.removeAttribute("style"),document_1.removeEventListener("touchmove",preventScroll,{passive:!1}),document_1.body.style.overflowY="",this.trigger("fullscreenchange")):(this.exitFullWindow(),this.trigger("fullscreenchange")),!1;e.requestFullscreen?document_1[e.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))},t.prototype.forceFixSubtitlesFont=function(){loadCssText("tcp_force_fix_font",`
|
|
67
|
+
.vjs-text-track-display div div {
|
|
68
|
+
font: `+(get_1(this.getChild("textTrackDisplay").el_,"children[0].children[0].style.font")||"10px sans-serif")+`!important;
|
|
69
|
+
}
|
|
70
|
+
`)},t.prototype.releaseSubtitlesFont=function(e){var n=get_1(this.getChild("textTrackDisplay").el_,"children[0].children[0]");n&&(n.style.display="none"),e&&setTimeout(function(){releaseCssText("tcp_force_fix_font")},1e3)},t.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=document_1.documentElement.style.overflow,on(document_1,"keydown",bind(this,this.fullWindowOnEscKey)),document_1.documentElement.style.overflow="hidden",addClass(document_1.body,"vjs-full-window"),this.trigger("enterFullWindow")},t.prototype.fullWindowOnEscKey=function(e){e.keyCode===27&&(this.isFullscreen()===!0?this.exitFullscreen():this.exitFullWindow())},t.prototype.exitFullWindow=function(){this.isFullWindow=!1,off(document_1,"keydown",this.fullWindowOnEscKey),document_1.documentElement.style.overflow=this.docOrigOverflow,removeClass(document_1.body,"vjs-full-window"),this.trigger("exitFullWindow")},t.prototype.canPlayType=function(e){for(var n=void 0,s=0,a=this.options_.techOrder;s<a.length;s++){var l=a[s],u=Tech.getTech(l);if(u||(u=Component.getComponent(l)),u){if(u.isSupported()&&(n=u.canPlayType(e)))return n}else log$2.error('The "'+l+'" tech is undefined. Skipped browser support check for that tech.')}return""},t.prototype.selectSource=function(e){var n=this,s=this.options_.techOrder.map(function(u){return[u,Tech.getTech(u)]}).filter(function(u){var c=u[0],h=u[1];return h?h.isSupported():(log$2.error('The "'+c+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),a=function(u,c,h){var p=void 0;return u.some(function(g){return c.some(function(v){if(p=h(g,v))return!0})}),p},l=function(u,c){var h=u[0];if(u[1].canPlaySource(c,n.options_[h.toLowerCase()]))return{source:c,tech:h}};return(this.options_.sourceOrder?a(e,s,function(u){return function(c,h){return u(h,c)}}(l)):a(s,e,l))||!1},t.prototype.src=function(e){var n=this;if(e===void 0)return this.cache_.src||this.techGet_("src");var s=filterSource(e);if(s&&s[0]&&s[0].src&&isWebrtcUrl(s[0].src)&&!isWebRTCSupported()){if(this.options_.webrtcConfig&&this.options_.webrtcConfig.fallbackUrl)s[0].src=this.options_.webrtcConfig.fallbackUrl;else{var a=convertProtocol(s[0].src);s[0].src=a&&a[0]||s[0].src}this.setTimeout(function(){n.trigger({type:"webrtcfallback",data:{target:s[0].src}})},0)}if(!s.length)return void this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0);if(this.options_&&this.options_.hlsConfig&&(this.options_.hlsConfig.disable||this.options_.hlsConfig.skipHlsJs)&&s.map(function(u){u.skipHlsJs=!0}),this.cache_.source&&isWebrtcUrl(this.cache_.source.src)&&isWebrtcUrl(s[0].src)&&this.cache_.source.src!==s[0].src){var l=this.tech_.webrtcProvider;if(l&&l.webrtcPlayer&&l.webrtcPlayer.switchStream)return this.tech_.webrtcProvider.webrtcPlayer.switchStream(s[0].src),this.cache_.sources=s,this.cache_.source=s[0],!1}this.lastSource=this.cache_.sources&&JSON.parse(JSON.stringify(this.cache_.sources)),this.cache_.sources=s,this.changingSrc_=!0,this.cache_.source=s[0],this.lastSource&&!get_1(this,"options_.fileID")&&get_1(this,"options_.plugins.ContinuePlay")&&setTimeout(function(){n.ContinuePlay().init(n.cache_.source)},0);try{this.cache_.source&&!isWebrtcUrl(this.cache_.source.src)&&this.options_.autoplay&&setTimeout(function(){var u=n.play&&n.play();isPromise(u)&&u.then().catch(function(){n.trigger("blocked")})},1e3)}catch{}setSource(this,s[0],function(u,c){if(n.middleware_=c,n.src_(u)){if(s.length>1){var h=s.slice(1),p=h[0].qualityLabelList;return p&&n.QualitySwitcher().setOptions({qualityLabelList:{video:p.slice(1)}}),n.src(h)}return n.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void n.triggerReady()}n.changingSrc_=!1,n.cache_.src=u.src,setTech(c,n.tech_)})},t.prototype.src_=function(e){var n=this.selectSource([e]);return!n||(window_1.performance&&typeof window_1.performance.mark=="function"&&window_1.performance.mark("firstFrameStart"),titleCaseEquals(n.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.options_.preload==="auto"&&this.load()},!0),!1):(this.changingSrc_=!0,this.loadTech_(n.tech,n.source),!1))},t.prototype.load=function(){this.techCall_("load")},t.prototype.unload=function(e){e&&(this.fatalError=!0);try{this.pause(),this.tech_.hlsProvider&&this.tech_.hlsProvider.hls&&this.tech_.hlsProvider.hls.stopLoad(),this.tech_.flvProvider&&this.tech_.flvProvider.flv&&this.tech_.flvProvider.flv.unload(),this.tech_.webrtcProvider&&this.tech_.webrtcProvider.webrtcPlayer&&this.tech_.webrtcProvider.webrtcPlayer.stopPlay()}catch{}},t.prototype.reset=function(){this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset")},t.prototype.currentSources=function(){var e=this.currentSource(),n=[];return Object.keys(e).length!==0&&n.push(e),this.cache_.sources||n},t.prototype.currentSource=function(){return this.cache_.source||{}},t.prototype.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},t.prototype.currentType=function(){return this.currentSource()&&this.currentSource().type||""},t.prototype.preload=function(e){return e!==void 0?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},t.prototype.autoplay=function(e){return e!==void 0?(this.techCall_("setAutoplay",e),this.options_.autoplay=e,void this.ready(this.forceAutoplayInChrome_)):this.techGet_("autoplay",e)},t.prototype.forceAutoplayInChrome_=function(){this.paused()&&(this.autoplay()||this.options_.autoplay)&&IS_CHROME&&!IS_ANDROID&&this.play()},t.prototype.playsinline=function(e){return e!==void 0?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},t.prototype.loop=function(e){return e!==void 0?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},t.prototype.poster=function(e){if(e===void 0)return this.poster_;e||(e=""),this.poster_=e,this.trigger("posterchange")},t.prototype.handleTechPosterChange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))},t.prototype.controls=function(e){if(e===void 0)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},t.prototype.usingNativeControls=function(e){if(e===void 0)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},t.prototype.error=function(e){return e===void 0?this.error_||null:e===null?(this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close())):(this.error_=new MediaError(e),this.addClass("vjs-error"),log$2.error("(CODE:"+this.error_.code+" "+MediaError.errorTypes[this.error_.code]+")",this.error_.message,this.error_),void this.trigger({type:"error",data:this.error_}))},t.prototype.reportUserActivity=function(e){this.userActivity_=!0},t.prototype.userActive=function(e){if(e===void 0)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(n){n.stopPropagation(),n.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},t.prototype.listenForUserActivity_=function(){var e=void 0,n=void 0,s=void 0,a=bind(this,this.reportUserActivity),l=function(p){p.screenX===n&&p.screenY===s||(n=p.screenX,s=p.screenY,a())},u=function(){a(),this.clearInterval(e),e=this.setInterval(a,250)},c=function(p){a(),this.clearInterval(e)};this.on("mousedown",u),this.on("mousemove",l),this.on("mouseup",c),this.on("keydown",a),this.on("keyup",a);var h=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(h);var p=this.options_.inactivityTimeout;p<=0||(h=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},p))}},250)},t.prototype.playbackRate=function(e){return e!==void 0?void this.techCall_("setPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},t.prototype.defaultPlaybackRate=function(e){return e!==void 0?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},t.prototype.isAudio=function(e){return e!==void 0?void(this.isAudio_=!!e):!!this.isAudio_},t.prototype.addTextTrack=function(e,n,s){if(this.tech_)return this.tech_.addTextTrack(e,n,s)},t.prototype.addRemoteTextTrack=function(e,n){if(IS_IOS&&!window_1.textTrackCleared_&&(window_1.textTrackCleared_=!0),this.tech_)return this.tech_.addRemoteTextTrack(e,n)},t.prototype.removeRemoteTextTrack=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.track,s=n===void 0?arguments[0]:n;if(this.tech_)return this.tech_.removeRemoteTextTrack(s)},t.prototype.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},t.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},t.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},t.prototype.language=function(e){if(e===void 0)return this.language_;this.language_=String(e).toLowerCase()},t.prototype.languages=function(){return mergeOptions(t.prototype.options_.languages,this.languages_)},t.prototype.toJSON=function(){var e=mergeOptions(this.options_),n=e.tracks;e.tracks=[];for(var s=0;s<n.length;s++){var a=n[s];a=mergeOptions(a),a.player=void 0,e.tracks[s]=a}return e},t.prototype.createModal=function(e,n){var s=this;n=n||{},n.content=e||"";var a=new ModalDialog(this,n);return this.addChild(a),a.on("dispose",function(){s.removeChild(a)}),a.open(),a},t.getTagSettings=function(e){var n={sources:[],tracks:[]},s=getAttributes(e),a=s["data-setup"];if(hasClass(e,"vjs-fluid")&&(s.fluid=!0),a!==null){var l=tuple(a||"{}"),u=l[0],c=l[1];u&&log$2.error(u),assign(s,c)}if(assign(n,s),e.hasChildNodes())for(var h=e.childNodes,p=0,g=h.length;p<g;p++){var v=h[p],y=v.nodeName.toLowerCase();y==="source"?n.sources.push(getAttributes(v)):y==="track"&&n.tracks.push(getAttributes(v))}return n},t.prototype.flexNotSupported_=function(){var e=document_1.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},t}(Component);ALL.names.forEach(function(r){var t=ALL[r];Player.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),Player.players={};var navigator$1=window_1.navigator;Player.prototype.options_={techOrder:Tech.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","mediaAsyncLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings","videoStatisticPanel"],language:navigator$1&&(navigator$1.languages&&navigator$1.languages[0]||navigator$1.userLanguage||navigator$1.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."},["ended","seeking","seekable","networkState","readyState"].forEach(function(r){Player.prototype[r]=function(){return this.techGet_(r)}}),TECH_EVENTS_RETRIGGER.forEach(function(r){Player.prototype["handleTech"+toTitleCase(r)+"_"]=function(){return this.trigger(r)}}),Component.registerComponent("Player",Player);var BASE_PLUGIN_NAME="plugin",PLUGIN_CACHE_KEY="activePlugins_",pluginStorage={},pluginExists=function(r){return pluginStorage.hasOwnProperty(r)},getPlugin=function(r){return pluginExists(r)?pluginStorage[r]:void 0},markPluginAsActive=function(r,t){r[PLUGIN_CACHE_KEY]=r[PLUGIN_CACHE_KEY]||{},r[PLUGIN_CACHE_KEY][t]=!0},triggerSetupEvent=function(r,t,e){var n=(e?"before":"")+"pluginsetup";r.trigger(n,t),r.trigger(n+":"+t.name,t)},createBasicPlugin=function(r,t){var e=function(){triggerSetupEvent(this,{name:r,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return markPluginAsActive(this,r),triggerSetupEvent(this,{name:r,plugin:t,instance:n}),n};return Object.keys(t).forEach(function(n){e[n]=t[n]}),e},createPluginFactory=function(r,t){return t.prototype.name=r,function(){triggerSetupEvent(this,{name:r,plugin:t,instance:null},!0);for(var e=arguments.length,n=Array(e),s=0;s<e;s++)n[s]=arguments[s];var a=new(Function.prototype.bind.apply(t,[null].concat([this].concat(n))));return this[r]=function(){return a},triggerSetupEvent(this,a.getEventHash()),a}},Plugin=function(){function r(t){if(classCallCheck(this,r),this.constructor===r)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,evented(this),delete this.trigger,stateful(this,this.constructor.defaultState),markPluginAsActive(t,this.name),this.dispose=bind(this,this.dispose),t.on("dispose",this.dispose)}return r.prototype.version=function(){return this.constructor.VERSION},r.prototype.getEventHash=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t.name=this.name,t.plugin=this.constructor,t.instance=this,t},r.prototype.trigger=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return trigger(this.eventBusEl_,t,this.getEventHash(e))},r.prototype.handleStateChanged=function(t){},r.prototype.dispose=function(){var t=this.name,e=this.player;this.trigger("dispose"),this.off(),e.off("dispose",this.dispose),e[PLUGIN_CACHE_KEY][t]=!1,this.player=this.state=null,e[t]=createPluginFactory(t,pluginStorage[t])},r.isBasic=function(t){var e=typeof t=="string"?getPlugin(t):t;return typeof e=="function"&&!r.prototype.isPrototypeOf(e.prototype)},r.registerPlugin=function(t,e){if(typeof t!="string")throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+(t===void 0?"undefined":_typeof(t))+".");if(pluginExists(t))log$2.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(Player.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if(typeof e!="function")throw new Error('Illegal plugin for "'+t+'", must be a function, was '+(e===void 0?"undefined":_typeof(e))+".");return pluginStorage[t]=e,t!==BASE_PLUGIN_NAME&&(r.isBasic(e)?Player.prototype[t]=createBasicPlugin(t,e):Player.prototype[t]=createPluginFactory(t,e)),e},r.deregisterPlugin=function(t){if(t===BASE_PLUGIN_NAME)throw new Error("Cannot de-register base plugin.");pluginExists(t)&&(delete pluginStorage[t],delete Player.prototype[t])},r.getPlugins=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Object.keys(pluginStorage),e=void 0;return t.forEach(function(n){var s=getPlugin(n);s&&(e=e||{},e[n]=s)}),e},r.getPluginVersion=function(t){var e=getPlugin(t);return e&&e.VERSION||""},r}();Plugin.getPlugin=getPlugin,Plugin.BASE_PLUGIN_NAME=BASE_PLUGIN_NAME,Plugin.registerPlugin(BASE_PLUGIN_NAME,Plugin),Player.prototype.usingPlugin=function(r){return!!this[PLUGIN_CACHE_KEY]&&this[PLUGIN_CACHE_KEY][r]===!0},Player.prototype.hasPlugin=function(r){return!!pluginExists(r)};var _inherits=function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(t===void 0?"undefined":_typeof(t)));r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.super_=t)},extendFn=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=function(){r.apply(this,arguments)},n={};(t===void 0?"undefined":_typeof(t))==="object"?(t.constructor!==Object.prototype.constructor&&(e=t.constructor),n=t):typeof t=="function"&&(e=t),_inherits(e,r);for(var s in n)n.hasOwnProperty(s)&&(e.prototype[s]=n[s]);return e};if(typeof HTMLVideoElement>"u"&&isReal()&&(document_1.createElement("video"),document_1.createElement("audio"),document_1.createElement("track"),document_1.createElement("video-js")),videojs.hooks_={},videojs.hooks=function(r,t){return videojs.hooks_[r]=videojs.hooks_[r]||[],t&&(videojs.hooks_[r]=videojs.hooks_[r].concat(t)),videojs.hooks_[r]},videojs.hook=function(r,t){videojs.hooks(r,t)},videojs.hookOnce=function(r,t){videojs.hooks(r,[].concat(t).map(function(e){return function n(){return videojs.removeHook(r,n),e.apply(void 0,arguments)}}))},videojs.removeHook=function(r,t){var e=videojs.hooks(r).indexOf(t);return!(e<=-1)&&(videojs.hooks_[r]=videojs.hooks_[r].slice(),videojs.hooks_[r].splice(e,1),!0)},window_1.VIDEOJS_NO_DYNAMIC_STYLE!==!0&&isReal()){var style=$(".vjs-styles-defaults");if(!style){style=createStyleElement("vjs-styles-defaults");var head=$("head");head&&head.insertBefore(style,head.firstChild),setTextContent(style,`
|
|
42
71
|
.video-js {
|
|
43
72
|
width: 300px;
|
|
44
73
|
height: 150px;
|
|
@@ -47,31 +76,18 @@
|
|
|
47
76
|
.vjs-fluid {
|
|
48
77
|
padding-top: 56.25%
|
|
49
78
|
}
|
|
50
|
-
`)}}autoSetupTimeout(1,videojs),videojs.VERSION=version,videojs.options=Player.prototype.options_,videojs.getPlayers=function(){return Player.players},videojs.players=Player.players,videojs.getComponent=Component.getComponent,videojs.registerComponent=function(r,t){Tech.isTech(t)&&log$2.warn("The "+r+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Component.registerComponent.call(Component,r,t)},videojs.getTech=Tech.getTech,videojs.registerTech=Tech.registerTech,videojs.use=use,videojs.browser=browser,videojs.TOUCH_ENABLED=TOUCH_ENABLED,videojs.extend=extendFn,videojs.mergeOptions=mergeOptions,videojs.bind=bind,videojs.registerPlugin=Plugin.registerPlugin,videojs.plugin=function(r,t){return log$2.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Plugin.registerPlugin(r,t)},videojs.getPlugins=Plugin.getPlugins,videojs.getPlugin=Plugin.getPlugin,videojs.getPluginVersion=Plugin.getPluginVersion,videojs.addLanguage=function(r,t){var e;return r=(""+r).toLowerCase(),videojs.options.languages=mergeOptions(videojs.options.languages,(e={},e[r]=t,e)),videojs.options.languages[r]},videojs.log=log$2,videojs.createTimeRange=videojs.createTimeRanges=createTimeRanges,videojs.formatTime=formatTime,videojs.parseUrl=parseUrl,videojs.isCrossOrigin=isCrossOrigin,videojs.EventTarget=EventTarget,videojs.on=on,videojs.one=one,videojs.off=off,videojs.trigger=trigger,videojs.xhr=xhr,videojs.TextTrack=TextTrack,videojs.AudioTrack=AudioTrack,videojs.VideoTrack=VideoTrack,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(r){videojs[r]=function(){return log$2.warn("videojs."+r+"() is deprecated; use videojs.dom."+r+"() instead"),Dom[r].apply(null,arguments)}}),videojs.computedStyle=computedStyle,videojs.dom=Dom,videojs.url=Url;var enc=createCommonjsModule(function(module,exports){(function(r,t){module.exports=t()})(self,function(){return function(){function __webpack_require__(r){var t=__webpack_module_cache__[r];if(t!==void 0)return t.exports;var e=__webpack_module_cache__[r]={exports:{}};return __webpack_modules__[r](e,e.exports,__webpack_require__),e.exports}var __webpack_modules__={"./node_modules/@tencent/js-armor-loader/dist/runtime.js":function node_modulesTencentJsArmorLoaderDistRuntimeJs(module){function T(r,t,e,n,s,a,l,u){function c(){return(function(_,I,P){return new(Function.bind.apply(_,I))}).apply(null,arguments)}var h=!n;r=+r,t=t||[0],n=n||[[this],[{}]],s=s||{};var p,m=[],b=null;Function.prototype.bind||(p=[].slice,Function.prototype.bind=function(_){if(typeof this!="function")throw new TypeError("bind101");var I=p.call(arguments,1),P=I.length,A=this,x=function(){},k=function(){return I.length=P,I.push.apply(I,arguments),A.apply(x.prototype.isPrototypeOf(this)?this:_,I)};return this.prototype&&(x.prototype=this.prototype),k.prototype=new x,k});var f=[function(){n[n.length-1].length?n.push(n[n.length-1].shift(),!0):n.push(void 0,!1)},function(){n[n.length-2]=n[n.length-2]in n.pop()},function(){n.push(~n.pop())},function(){return!0},function(){var _=n[n.length-2],I=Object.getOwnPropertyDescriptor(_[0],_[1])||{configurable:!0,enumerable:!0};I.set=n[n.length-1],Object.defineProperty(_[0],_[1],I)},function(){n[n.length-2]=n[n.length-2]instanceof n.pop()},function(){n[n.length-2]=n[n.length-2]/n.pop()},function(){m.push([t[r++],n.length,t[r++]])},function(){n[n.length-2]=n[n.length-2]>=n.pop()},function(){n.push("")},function(){n[n.length-2]=n[n.length-2]+n.pop()},function(){n.push(_typeof(n.pop()))},function(){n[n.length-1]=e[n[n.length-1]]},function(){var _,I=[];for(_ in n.pop())I.push(_);n.push(I)},function(){n[n.length-1]=t[r++]},function(){n.pop()},function(){n.push(n[t[r++]][0])},function(){n[n.length-2]=n[n.length-2]>>n.pop()},function(){var _=n[n.length-2];_[0][_[1]]=n[n.length-1]},function(){n[n.length-2]=n[n.length-2]-n.pop()},function(){n[n.length-2]=n[n.length-2]==n.pop()},function(){n.push(n[n.length-1])},function(){n[n.length-2]=n[n.length-2]===n.pop()},function(){for(var _=t[r++],I=[],P=t[r++],A=t[r++],x=[],k=0;k<P;k++)I[t[r++]]=n[t[r++]];for(k=0;k<A;k++)x[k]=t[r++];n.push(function d(){var y=I.slice(0);y[0]=[this],y[1]=[arguments],y[2]=[d];for(var S=0;S<x.length&&S<arguments.length;S++)0<x[S]&&(y[x[S]]=[arguments[S]]);return T(_,t,e,y,s)})},function(){r=t[r++]},function(){var _=n.pop();n.push([n[n.pop()][0],_])},function(){n[n.length-1]+=String.fromCharCode(t[r++])},function(){n.push([e,n.pop()])},function(){n[n.length-2]=n[n.length-2]|n.pop()},function(){n.push(void 0)},function(){var _=t[r++];n[n.length-1]&&(r=_)},function(){n[n.length-2]=n[n.length-2]<=n.pop()},function(){n[n.length-2]=n[n.length-2]*n.pop()},function(){n[n.length-2]=n[n.length-2]>n.pop()},function(){throw n[n.length-1]},function(){n[n[n.length-1][0]]=n[n[n.length-1][0]]===void 0?[]:n[n[n.length-1][0]]},function(){},function(){n.push(null)},function(){n.length-=t[r++]},function(){b=null},function(){var _=t[r++],I=n[n.length-2-_];n[n.length-2-_]=n.pop(),n.push(I)},function(){var _=n.pop();s[_]||(e[_]=e[_](),s[_]=1),n.push([e,_])},function(){var _=t[r++],I=_?n.slice(-_):[];n.length-=_,I.unshift(null),n.push(c(n.pop(),I))},function(){n[n.length-2]=n[n.length-2]<n.pop()},function(){var _=n.pop();s[_]||(e[_]=e[_](),s[_]=1),n.push(e[_])},function(){n.push([t[r++]])},function(){var _=t[r++],I=_?n.slice(-_):[];n.length-=_,_=n.pop(),n.push(_[0][_[1]].apply(_[0],I))},function(){n.push(n[n.pop()[0]][0])},function(){n[n[n.length-2][0]][0]=n[n.length-1]},function(){n[n.length-2]=n[n.length-2]^n.pop()},function(){n.push(!1)},function(){n[n.length-2]=n[n.length-2]&n.pop()},function(){var _=t[r++];n[_]=n[_]===void 0?[]:n[_]},function(){var _=n.pop();n.push(_[0][_[1]])},function(){var _=n.pop(),I=n.pop();n.push([I[0][I[1]],_])},function(){var _=n[n.length-2],I=Object.getOwnPropertyDescriptor(_[0],_[1])||{configurable:!0,enumerable:!0};I.get=n[n.length-1],Object.defineProperty(_[0],_[1],I)},function(){for(var _=n.pop(),I=t[r++],P=[],A=t[r++],x=t[r++],k=[],d=0;d<A;d++)P[t[r++]]=n[t[r++]];for(d=0;d<x;d++)k[d]=t[r++];var y=function S(){var w=P.slice(0);w[0]=[this],w[1]=[arguments],w[2]=[S];for(var D=0;D<k.length&&D<arguments.length;D++)0<k[D]&&(w[k[D]]=[arguments[D]]);return T(I,t,e,w,s)};y.toString=function(){return _},n.push(y)},function(){n[n.length-2]=n[n.length-2]<<n.pop()},function(){var _=t[r++],I=_?n.slice(-_):[];n.length-=_,n.push(n.pop().apply(e,I))},function(){var _=t[r++],I=_?n.slice(-_):[];n.length-=_,I.unshift(null),_=n.pop(),n.push(c(_[0][_[1]],I))},function(){return!!b},function(){var _=n.pop();n.push(delete _[0][_[1]])},function(){n.length=t[r++]},function(){n.push(!0)},function(){m.pop()},function(){n.push(t[r++])},function(){n.push(!n.pop())},function(){n.push([n.pop(),n.pop()].reverse())},function(){n[n.length-2]=n[n.length-2]%n.pop()},function(){n[n.length-2]=n[n.length-2]>>>n.pop()}];for(0;;)try{for(var g=!1;!g;)g=f[t[r++]]();if(b)throw b;return h?(n.pop(),n.slice(3+T.v)):n.pop()}catch(_){var v=m.pop();if(v===void 0)throw _;b=_,r=v[0],n.length=v[1],v[2]&&(n[v[2]][0]=b)}}function arrayIndexOf(r,t,e){if(typeof Array.prototype.indexOf=="function")return Array.prototype.indexOf.call(r,t,e);var n,s=o.length;if(s===0)return-1;var a=0|e;if(a>=s)return-1;for(n=Math.max(a>=0?a:s-Math.abs(a),0);n<s;n++)if(n in o&&o[n]===t)return n;return-1}function base64Decode(r){for(var t,e,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),s=String(r).replace(/[=]+$/,""),a=0,l=0,u="";e=s.charAt(l++);~e&&(t=a%4?64*t+e:e,a++%4)?u+=String.fromCharCode(255&t>>(-2*a&6)):0)e=arrayIndexOf(n,e);return u}T.v=0,module.exports.r=function(symbols){for(var result=[],i=0;i<symbols.length;i++)try{result.push(eval(symbols[i]))}catch(r){result.push(void 0)}return result},module.exports.d=function(r){function t(){for(;c===l;)s.push(u),c++,l=n.shift(),u=n.shift()}if(typeof r[1]!="object")return r;for(var e=r[0],n=r[1],s=[],a=base64Decode(e),l=n.shift(),u=n.shift(),c=0,h=0;h<a.length;h++){var p=a.charAt(h).charCodeAt(0);t(),s.push(p),c++}return t(),s},module.exports.g=function(r){return r.shift()[0]},module.exports.v=T},"./aes.js":function(r,t,e){function n(L){return parseInt(L)===L}function s(L){if(!n(L.length))return!1;for(var B=0;B<L.length;B++)if(!n(L[B])||L[B]<0||L[B]>255)return!1;return!0}function a(L,B){if(L.buffer&&L.name==="Uint8Array")return B&&(L=L.slice?L.slice():Array.prototype.slice.call(L)),L;if(Array.isArray(L)){if(!s(L))throw new Error("Array contains invalid value: "+L);return new Uint8Array(L)}if(n(L.length)&&s(L))return new Uint8Array(L);throw new Error("unsupported array-like object")}function l(L){return new Uint8Array(L)}function u(L,B,U,F,N){F==null&&N==null||(L=L.slice?L.slice(F,N):Array.prototype.slice.call(L,F,N)),B.set(L,U)}function c(L){for(var B=[],U=0;U<L.length;U+=4)B.push(L[U]<<24|L[U+1]<<16|L[U+2]<<8|L[U+3]);return B}function h(L){L=a(L,!0);var B=16-L.length%16,U=l(L.length+B);u(L,U);for(var F=L.length;F<U.length;F++)U[F]=B;return U}function p(L){if(L=a(L,!0),L.length<16)throw new Error("PKCS#7 invalid length");var B=L[L.length-1];if(B>16)throw new Error("PKCS#7 padding byte out of range");for(var U=L.length-B,F=0;F<B;F++)if(L[U+F]!==B)throw new Error("PKCS#7 invalid padding byte");var N=l(U);return u(L,N,0,0,U),N}e.r(t),e.d(t,{default:function(){return z}});var m=function(){function L(U){var F=[],N=0;for(U=encodeURI(U);N<U.length;){var q=U.charCodeAt(N++);q===37?(F.push(parseInt(U.substr(N,2),16)),N+=2):F.push(q)}return a(F)}function B(U){for(var F=[],N=0;N<U.length;){var q=U[N];q<128?(F.push(String.fromCharCode(q)),N++):q>191&&q<224?(F.push(String.fromCharCode((31&q)<<6|63&U[N+1])),N+=2):(F.push(String.fromCharCode((15&q)<<12|(63&U[N+1])<<6|63&U[N+2])),N+=3)}return F.join("")}return{toBytes:L,fromBytes:B}}(),b=function(){function L(F){for(var N=[],q=0;q<F.length;q+=2)N.push(parseInt(F.substr(q,2),16));return N}function B(F){for(var N=[],q=0;q<F.length;q++){var Q=F[q];N.push(U[(240&Q)>>4]+U[15&Q])}return N.join("")}var U="0123456789abcdef";return{toBytes:L,fromBytes:B}}(),f={16:10,24:12,32:14},g=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],v=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],_=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],I=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],P=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],A=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],x=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],k=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],d=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],y=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],S=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],w=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],D=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],M=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],j=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925],V=function L(B){if(!(this instanceof L))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:a(B,!0)}),this._prepare()};V.prototype._prepare=function(){var L=f[this.key.length];if(L==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var B=0;B<=L;B++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var U,F=4*(L+1),N=this.key.length/4,q=c(this.key),B=0;B<N;B++)U=B>>2,this._Ke[U][B%4]=q[B],this._Kd[L-U][B%4]=q[B];for(var Q,te=0,me=N;me<F;){if(Q=q[N-1],q[0]^=v[Q>>16&255]<<24^v[Q>>8&255]<<16^v[255&Q]<<8^v[Q>>24&255]^g[te]<<24,te+=1,N!=8)for(var B=1;B<N;B++)q[B]^=q[B-1];else{for(var B=1;B<N/2;B++)q[B]^=q[B-1];Q=q[N/2-1],q[N/2]^=v[255&Q]^v[Q>>8&255]<<8^v[Q>>16&255]<<16^v[Q>>24&255]<<24;for(var B=N/2+1;B<N;B++)q[B]^=q[B-1]}for(var X,ne,B=0;B<N&&me<F;)X=me>>2,ne=me%4,this._Ke[X][ne]=q[B],this._Kd[L-X][ne]=q[B++],me++}for(var X=1;X<L;X++)for(var ne=0;ne<4;ne++)Q=this._Kd[X][ne],this._Kd[X][ne]=w[Q>>24&255]^D[Q>>16&255]^M[Q>>8&255]^j[255&Q]},V.prototype.encrypt=function(L){if(L.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var B=this._Ke.length-1,U=[0,0,0,0],F=c(L),N=0;N<4;N++)F[N]^=this._Ke[0][N];for(var q=1;q<B;q++){for(var N=0;N<4;N++)U[N]=I[F[N]>>24&255]^P[F[(N+1)%4]>>16&255]^A[F[(N+2)%4]>>8&255]^x[255&F[(N+3)%4]]^this._Ke[q][N];F=U.slice()}for(var Q,te=l(16),N=0;N<4;N++)Q=this._Ke[B][N],te[4*N]=255&(v[F[N]>>24&255]^Q>>24),te[4*N+1]=255&(v[F[(N+1)%4]>>16&255]^Q>>16),te[4*N+2]=255&(v[F[(N+2)%4]>>8&255]^Q>>8),te[4*N+3]=255&(v[255&F[(N+3)%4]]^Q);return te},V.prototype.decrypt=function(L){if(L.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var B=this._Kd.length-1,U=[0,0,0,0],F=c(L),N=0;N<4;N++)F[N]^=this._Kd[0][N];for(var q=1;q<B;q++){for(var N=0;N<4;N++)U[N]=k[F[N]>>24&255]^d[F[(N+3)%4]>>16&255]^y[F[(N+2)%4]>>8&255]^S[255&F[(N+1)%4]]^this._Kd[q][N];F=U.slice()}for(var Q,te=l(16),N=0;N<4;N++)Q=this._Kd[B][N],te[4*N]=255&(_[F[N]>>24&255]^Q>>24),te[4*N+1]=255&(_[F[(N+3)%4]>>16&255]^Q>>16),te[4*N+2]=255&(_[F[(N+2)%4]>>8&255]^Q>>8),te[4*N+3]=255&(_[255&F[(N+1)%4]]^Q);return te};var K=function L(B,U){if(!(this instanceof L))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",U){if(U.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)")}else U=l(16);this._lastCipherblock=a(U,!0),this._aes=new V(B)};K.prototype.encrypt=function(L){if(L=a(L),L.length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var B=l(L.length),U=l(16),F=0;F<L.length;F+=16){u(L,U,0,F,F+16);for(var N=0;N<16;N++)U[N]^=this._lastCipherblock[N];this._lastCipherblock=this._aes.encrypt(U),u(this._lastCipherblock,B,F)}return B},K.prototype.decrypt=function(L){if(L=a(L),L.length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var B=l(L.length),U=l(16),F=0;F<L.length;F+=16){u(L,U,0,F,F+16),U=this._aes.decrypt(U);for(var N=0;N<16;N++)B[F+N]=U[N]^this._lastCipherblock[N];u(L,this._lastCipherblock,0,F,F+16)}return B};var W=function L(B){if(!(this instanceof L))throw Error("Counter must be instanitated with `new`");B===0||B||(B=1),typeof B=="number"?(this._counter=l(16),this.setValue(B)):this.setBytes(B)};W.prototype.setValue=function(L){if(typeof L!="number"||parseInt(L)!=L)throw new Error("invalid counter value (must be an integer)");if(L>Number.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var B=15;B>=0;--B)this._counter[B]=L%256,L=parseInt(L/256)},W.prototype.setBytes=function(L){if(L=a(L,!0),L.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=L},W.prototype.increment=function(){for(var L=15;L>=0;L--){if(this._counter[L]!==255){this._counter[L]++;break}this._counter[L]=0}};var ie={AES:V,Counter:W,modeOfOperation:{cbc:K},utils:{hex:b,utf8:m},padding:{pkcs7:{pad:h,strip:p}},_arrayTest:{coerceArray:a,createArray:l,copyArray:u}},z=ie},"./utils.js":function(r,t,e){function n(){for(var c="",h=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],p=0;p<32;p++)c+=h[s(0,15)];return c}function s(c,h){return Math.floor(Math.random()*(h-c+1)+c)}function a(c){return u.g(u.v(0,u.d(["PgQ0AjQDGA4+CjQCNAM0BDQFNAY0BzQINAlBACwLCRpzGnQachppGm4aZxZCHjQPGDc+Dx0DLQNBASwqADAPDy0EQRkwDw8tBUF7MA8PLQZBADAPDy0GL0EAKQkabBplGm4aZxp0Gmg2NQhCHnMPGOg7Dy0HQQApCRpjGmgaYRpyGkMabxpkGmUaQRp0NhAGLgEwDw8tBxAHQQEgEAUxMA8PLQctBwkadBpvGlMadBpyGmkabhpnGRAELgEwDw8tAwkacBp1GnMaaBkQBy4BDy0GFS8VKAEoAEEBCjAPDgAoABwPGFY0LQhBAikJGmYachpvGm0aQxpoGmEachpDGm8aZBplNhAEQWEKLgEwDw8tCS0DCRpqGm8aaRpuGRAILgEwDw8QCQMtAxcJAAAwDw8dAw==",[7,297]]),[function(){return c===void 0?void 0:c},function(){return typeof Array>"u"?void 0:Array},function(){return typeof String>"u"?void 0:String}])).call(this)}function l(c){return u.g(u.v(0,u.d(["PgQ0AjQDGDQ+DDQCNAM0BDQFNAY0BzQINAk0CjQLQQAsCwkacxp0GnIaaRpuGmcWQh44Dxg7Pg8dAy0DQQEsKgAwDw8tBEEBLCoAMA8PLQVBGTAPDy0GQXswDw8tB0ECKQkaZhpyGm8abRpDGmgaYRpyGkMabxpkGmU2EAVBYQouATAPDy0DQQApCRpzGnAabBppGnQ2EAcuATAPDy0IQQAwDw8tCC8tAwkabBplGm4aZxp0GmgZNQhCHsEPGDsPLQlBAyktAxAIGTUQBS4CMA8PLQkQCUEBIBAGMTAPDy0KQQIpCRpmGnIabxptGkMaaBphGnIaQxpvGmQaZTYQCS4BMA8PLQQJGnAadRpzGmgZEAouAQ8tCBUvFSgBKABBAQowDw4AKAAcDxilGC0LLQQJGmoabxppGm4ZCS4BMA8PEAsDLQMXCQAAMA8PHQM=",[7,326,191,303]]),[function(){return c===void 0?void 0:c},function(){return typeof Array>"u"?void 0:Array},function(){return typeof String>"u"?void 0:String},function(){return typeof parseInt>"u"?void 0:parseInt}])).call(this)}var u=e("./node_modules/@tencent/js-armor-loader/dist/runtime.js");Object.defineProperty(t,"__esModule",{value:!0}),t.genOverlay=n,t.getRandomInt=s,t.encrypto=a,t.decrypto=l},"./node_modules/charenc/charenc.js":function(r){var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var n=[],s=0;s<e.length;s++)n.push(255&e.charCodeAt(s));return n},bytesToString:function(e){for(var n=[],s=0;s<e.length;s++)n.push(String.fromCharCode(e[s]));return n.join("")}}};r.exports=t},"./node_modules/crypt/crypt.js":function(r){(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(n,s){return n<<s|n>>>32-s},rotr:function(n,s){return n<<32-s|n>>>s},endian:function(n){if(n.constructor==Number)return 16711935&e.rotl(n,8)|4278255360&e.rotl(n,24);for(var s=0;s<n.length;s++)n[s]=e.endian(n[s]);return n},randomBytes:function(n){for(var s=[];n>0;n--)s.push(Math.floor(256*Math.random()));return s},bytesToWords:function(n){for(var s=[],a=0,l=0;a<n.length;a++,l+=8)s[l>>>5]|=n[a]<<24-l%32;return s},wordsToBytes:function(n){for(var s=[],a=0;a<32*n.length;a+=8)s.push(n[a>>>5]>>>24-a%32&255);return s},bytesToHex:function(n){for(var s=[],a=0;a<n.length;a++)s.push((n[a]>>>4).toString(16)),s.push((15&n[a]).toString(16));return s.join("")},hexToBytes:function(n){for(var s=[],a=0;a<n.length;a+=2)s.push(parseInt(n.substr(a,2),16));return s},bytesToBase64:function(n){for(var s=[],a=0;a<n.length;a+=3)for(var l=n[a]<<16|n[a+1]<<8|n[a+2],u=0;u<4;u++)8*a+6*u<=8*n.length?s.push(t.charAt(l>>>6*(3-u)&63)):s.push("=");return s.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var s=[],a=0,l=0;a<n.length;l=++a%4)l!=0&&s.push((t.indexOf(n.charAt(a-1))&Math.pow(2,-2*l+8)-1)<<2*l|t.indexOf(n.charAt(a))>>>6-2*l);return s}};r.exports=e})()},"./node_modules/is-buffer/index.js":function(r){function t(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function e(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&t(n.slice(0,0))}r.exports=function(n){return n!=null&&(t(n)||e(n)||!!n._isBuffer)}},"./node_modules/jsencrypt/lib/JSEncrypt.js":function(r,t,e){e.r(t),e.d(t,{JSEncrypt:function(){return l}});var n=e("./node_modules/jsencrypt/lib/lib/jsbn/base64.js"),s=e("./node_modules/jsencrypt/lib/JSEncryptRSAKey.js"),a=e("./node_modules/jsencrypt/lib/version.json"),l=function(){function u(c){c=c||{},this.default_key_size=c.default_key_size?parseInt(c.default_key_size,10):1024,this.default_public_exponent=c.default_public_exponent||"010001",this.log=c.log||!1,this.key=null}return u.prototype.setKey=function(c){this.log&&this.key,this.key=new s.JSEncryptRSAKey(c)},u.prototype.setPrivateKey=function(c){this.setKey(c)},u.prototype.setPublicKey=function(c){this.setKey(c)},u.prototype.decrypt=function(c){try{return this.getKey().decrypt((0,n.b64tohex)(c))}catch{return!1}},u.prototype.encrypt=function(c){try{return(0,n.hex2b64)(this.getKey().encrypt(c))}catch{return!1}},u.prototype.sign=function(c,h,p){try{return(0,n.hex2b64)(this.getKey().sign(c,h,p))}catch{return!1}},u.prototype.verify=function(c,h,p){try{return this.getKey().verify(c,(0,n.b64tohex)(h),p)}catch{return!1}},u.prototype.getKey=function(c){if(!this.key){if(this.key=new s.JSEncryptRSAKey,c&&{}.toString.call(c)==="[object Function]")return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,c);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},u.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},u.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},u.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},u.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},u.version=a.version,u}()},"./node_modules/jsencrypt/lib/JSEncryptRSAKey.js":function(r,t,e){e.r(t),e.d(t,{JSEncryptRSAKey:function(){return m}});var n=e("./node_modules/jsencrypt/lib/lib/jsbn/base64.js"),s=e("./node_modules/jsencrypt/lib/lib/asn1js/hex.js"),a=e("./node_modules/jsencrypt/lib/lib/asn1js/base64.js"),l=e("./node_modules/jsencrypt/lib/lib/asn1js/asn1.js"),u=e("./node_modules/jsencrypt/lib/lib/jsbn/rsa.js"),c=e("./node_modules/jsencrypt/lib/lib/jsbn/jsbn.js"),h=e("./node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js"),p=function(){var b=function(f,g){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,_){v.__proto__=_}||function(v,_){for(var I in _)Object.prototype.hasOwnProperty.call(_,I)&&(v[I]=_[I])})(f,g)};return function(f,g){function v(){this.constructor=f}if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");b(f,g),f.prototype=g===null?Object.create(g):(v.prototype=g.prototype,new v)}}(),m=function(b){function f(g){var v=b.call(this)||this;return g&&(typeof g=="string"?v.parseKey(g):(f.hasPrivateKeyProperty(g)||f.hasPublicKeyProperty(g))&&v.parsePropertiesFrom(g)),v}return p(f,b),f.prototype.parseKey=function(g){try{var v=0,_=0,I=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,P=I.test(g)?s.Hex.decode(g):a.Base64.unarmor(g),A=l.ASN1.decode(P);if(A.sub.length===3&&(A=A.sub[2].sub[0]),A.sub.length===9){v=A.sub[1].getHexStringValue(),this.n=(0,c.parseBigInt)(v,16),_=A.sub[2].getHexStringValue(),this.e=parseInt(_,16);var x=A.sub[3].getHexStringValue();this.d=(0,c.parseBigInt)(x,16);var k=A.sub[4].getHexStringValue();this.p=(0,c.parseBigInt)(k,16);var d=A.sub[5].getHexStringValue();this.q=(0,c.parseBigInt)(d,16);var y=A.sub[6].getHexStringValue();this.dmp1=(0,c.parseBigInt)(y,16);var S=A.sub[7].getHexStringValue();this.dmq1=(0,c.parseBigInt)(S,16);var w=A.sub[8].getHexStringValue();this.coeff=(0,c.parseBigInt)(w,16)}else{if(A.sub.length!==2)return!1;var D=A.sub[1],M=D.sub[0];v=M.sub[0].getHexStringValue(),this.n=(0,c.parseBigInt)(v,16),_=M.sub[1].getHexStringValue(),this.e=parseInt(_,16)}return!0}catch{return!1}},f.prototype.getPrivateBaseKey=function(){var g={array:[new h.KJUR.asn1.DERInteger({int:0}),new h.KJUR.asn1.DERInteger({bigint:this.n}),new h.KJUR.asn1.DERInteger({int:this.e}),new h.KJUR.asn1.DERInteger({bigint:this.d}),new h.KJUR.asn1.DERInteger({bigint:this.p}),new h.KJUR.asn1.DERInteger({bigint:this.q}),new h.KJUR.asn1.DERInteger({bigint:this.dmp1}),new h.KJUR.asn1.DERInteger({bigint:this.dmq1}),new h.KJUR.asn1.DERInteger({bigint:this.coeff})]};return new h.KJUR.asn1.DERSequence(g).getEncodedHex()},f.prototype.getPrivateBaseKeyB64=function(){return(0,n.hex2b64)(this.getPrivateBaseKey())},f.prototype.getPublicBaseKey=function(){var g=new h.KJUR.asn1.DERSequence({array:[new h.KJUR.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new h.KJUR.asn1.DERNull]}),v=new h.KJUR.asn1.DERSequence({array:[new h.KJUR.asn1.DERInteger({bigint:this.n}),new h.KJUR.asn1.DERInteger({int:this.e})]}),_=new h.KJUR.asn1.DERBitString({hex:"00"+v.getEncodedHex()});return new h.KJUR.asn1.DERSequence({array:[g,_]}).getEncodedHex()},f.prototype.getPublicBaseKeyB64=function(){return(0,n.hex2b64)(this.getPublicBaseKey())},f.wordwrap=function(g,v){if(v=v||64,!g)return g;var _="(.{1,"+v+`})( +|$
|
|
51
|
-
|
|
52
|
-
`)},f.prototype.getPrivateKey=function(){var g=`-----BEGIN RSA PRIVATE KEY-----
|
|
53
|
-
`;return g+=f.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
54
|
-
`,g+="-----END RSA PRIVATE KEY-----"},f.prototype.getPublicKey=function(){var g=`-----BEGIN PUBLIC KEY-----
|
|
55
|
-
`;return g+=f.wordwrap(this.getPublicBaseKeyB64())+`
|
|
56
|
-
`,g+="-----END PUBLIC KEY-----"},f.hasPublicKeyProperty=function(g){return g=g||{},g.hasOwnProperty("n")&&g.hasOwnProperty("e")},f.hasPrivateKeyProperty=function(g){return g=g||{},g.hasOwnProperty("n")&&g.hasOwnProperty("e")&&g.hasOwnProperty("d")&&g.hasOwnProperty("p")&&g.hasOwnProperty("q")&&g.hasOwnProperty("dmp1")&&g.hasOwnProperty("dmq1")&&g.hasOwnProperty("coeff")},f.prototype.parsePropertiesFrom=function(g){this.n=g.n,this.e=g.e,g.hasOwnProperty("d")&&(this.d=g.d,this.p=g.p,this.q=g.q,this.dmp1=g.dmp1,this.dmq1=g.dmq1,this.coeff=g.coeff)},f}(u.RSAKey)},"./node_modules/jsencrypt/lib/index.js":function(r,t,e){e.r(t),e.d(t,{JSEncrypt:function(){return n.JSEncrypt},default:function(){return s}});var n=e("./node_modules/jsencrypt/lib/JSEncrypt.js"),s=n.JSEncrypt},"./node_modules/jsencrypt/lib/lib/asn1js/asn1.js":function(r,t,e){function n(m,b){return m.length>b&&(m=m.substring(0,b)+a),m}e.r(t),e.d(t,{Stream:function(){return c},ASN1:function(){return h},ASN1Tag:function(){return p}});var s=e("./node_modules/jsencrypt/lib/lib/asn1js/int10.js"),a="…",l=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,u=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,c=function(){function m(b,f){this.hexDigits="0123456789ABCDEF",b instanceof m?(this.enc=b.enc,this.pos=b.pos):(this.enc=b,this.pos=f)}return m.prototype.get=function(b){if(b===void 0&&(b=this.pos++),b>=this.enc.length)throw new Error("Requesting byte offset "+b+" on a stream of length "+this.enc.length);return typeof this.enc=="string"?this.enc.charCodeAt(b):this.enc[b]},m.prototype.hexByte=function(b){return this.hexDigits.charAt(b>>4&15)+this.hexDigits.charAt(15&b)},m.prototype.hexDump=function(b,f,g){for(var v="",_=b;_<f;++_)if(v+=this.hexByte(this.get(_)),g!==!0)switch(15&_){case 7:v+=" ";break;case 15:v+=`
|
|
57
|
-
`;break;default:v+=" "}return v},m.prototype.isASCII=function(b,f){for(var g=b;g<f;++g){var v=this.get(g);if(v<32||v>176)return!1}return!0},m.prototype.parseStringISO=function(b,f){for(var g="",v=b;v<f;++v)g+=String.fromCharCode(this.get(v));return g},m.prototype.parseStringUTF=function(b,f){for(var g="",v=b;v<f;){var _=this.get(v++);g+=_<128?String.fromCharCode(_):_>191&&_<224?String.fromCharCode((31&_)<<6|63&this.get(v++)):String.fromCharCode((15&_)<<12|(63&this.get(v++))<<6|63&this.get(v++))}return g},m.prototype.parseStringBMP=function(b,f){for(var g,v,_="",I=b;I<f;)g=this.get(I++),v=this.get(I++),_+=String.fromCharCode(g<<8|v);return _},m.prototype.parseTime=function(b,f,g){var v=this.parseStringISO(b,f),_=(g?l:u).exec(v);return _?(g&&(_[1]=+_[1],_[1]+=+_[1]<70?2e3:1900),v=_[1]+"-"+_[2]+"-"+_[3]+" "+_[4],_[5]&&(v+=":"+_[5],_[6]&&(v+=":"+_[6],_[7]&&(v+="."+_[7]))),_[8]&&(v+=" UTC",_[8]!="Z"&&(v+=_[8],_[9]&&(v+=":"+_[9]))),v):"Unrecognized time: "+v},m.prototype.parseInteger=function(b,f){for(var g,v=this.get(b),_=v>127,I=_?255:0,P="";v==I&&++b<f;)v=this.get(b);if((g=f-b)===0)return _?-1:0;if(g>4){for(P=v,g<<=3;!(128&(+P^I));)P=+P<<1,--g;P="("+g+` bit)
|
|
58
|
-
`}_&&(v-=256);for(var A=new s.Int10(v),x=b+1;x<f;++x)A.mulAdd(256,this.get(x));return P+A.toString()},m.prototype.parseBitString=function(b,f,g){for(var v=this.get(b),_=(f-b-1<<3)-v,I="("+_+` bit)
|
|
59
|
-
`,P="",A=b+1;A<f;++A){for(var x=this.get(A),k=A==f-1?v:0,d=7;d>=k;--d)P+=x>>d&1?"1":"0";if(P.length>g)return I+n(P,g)}return I+P},m.prototype.parseOctetString=function(b,f,g){if(this.isASCII(b,f))return n(this.parseStringISO(b,f),g);var v=f-b,_="("+v+` byte)
|
|
60
|
-
`;g/=2,v>g&&(f=b+g);for(var I=b;I<f;++I)_+=this.hexByte(this.get(I));return v>g&&(_+=a),_},m.prototype.parseOID=function(b,f,g){for(var v="",_=new s.Int10,I=0,P=b;P<f;++P){var A=this.get(P);if(_.mulAdd(128,127&A),I+=7,!(128&A)){if(v==="")if((_=_.simplify())instanceof s.Int10)_.sub(80),v="2."+_.toString();else{var x=_<80?_<40?0:1:2;v=x+"."+(_-40*x)}else v+="."+_.toString();if(v.length>g)return n(v,g);_=new s.Int10,I=0}}return I>0&&(v+=".incomplete"),v},m}(),h=function(){function m(b,f,g,v,_){if(!(v instanceof p))throw new Error("Invalid tag value.");this.stream=b,this.header=f,this.length=g,this.tag=v,this.sub=_}return m.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},m.prototype.content=function(b){if(this.tag===void 0)return null;b===void 0&&(b=1/0);var f=this.posContent(),g=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(f,f+g,b);switch(this.tag.tagNumber){case 1:return this.stream.get(f)===0?"false":"true";case 2:return this.stream.parseInteger(f,f+g);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(f,f+g,b);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(f,f+g,b);case 6:return this.stream.parseOID(f,f+g,b);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return n(this.stream.parseStringUTF(f,f+g),b);case 18:case 19:case 20:case 21:case 22:case 26:return n(this.stream.parseStringISO(f,f+g),b);case 30:return n(this.stream.parseStringBMP(f,f+g),b);case 23:case 24:return this.stream.parseTime(f,f+g,this.tag.tagNumber==23)}return null},m.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},m.prototype.toPrettyString=function(b){b===void 0&&(b="");var f=b+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(f+="+"),f+=this.length,this.tag.tagConstructed?f+=" (constructed)":!this.tag.isUniversal()||this.tag.tagNumber!=3&&this.tag.tagNumber!=4||this.sub===null||(f+=" (encapsulates)"),f+=`
|
|
61
|
-
`,this.sub!==null){b+=" ";for(var g=0,v=this.sub.length;g<v;++g)f+=this.sub[g].toPrettyString(b)}return f},m.prototype.posStart=function(){return this.stream.pos},m.prototype.posContent=function(){return this.stream.pos+this.header},m.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},m.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},m.decodeLength=function(b){var f=b.get(),g=127&f;if(g==f)return g;if(g>6)throw new Error("Length over 48 bits not supported at position "+(b.pos-1));if(g===0)return null;f=0;for(var v=0;v<g;++v)f=256*f+b.get();return f},m.prototype.getHexStringValue=function(){var b=this.toHexString(),f=2*this.header,g=2*this.length;return b.substr(f,g)},m.decode=function(b){var f;f=b instanceof c?b:new c(b,0);var g=new c(f),v=new p(f),_=m.decodeLength(f),I=f.pos,P=I-g.pos,A=null,x=function(){var d=[];if(_!==null){for(var y=I+_;f.pos<y;)d[d.length]=m.decode(f);if(f.pos!=y)throw new Error("Content size is not correct for container starting at offset "+I)}else try{for(;;){var S=m.decode(f);if(S.tag.isEOC())break;d[d.length]=S}_=I-f.pos}catch(w){throw new Error("Exception while decoding undefined length content: "+w)}return d};if(v.tagConstructed)A=x();else if(v.isUniversal()&&(v.tagNumber==3||v.tagNumber==4))try{if(v.tagNumber==3&&f.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");A=x();for(var k=0;k<A.length;++k)if(A[k].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{A=null}if(A===null){if(_===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+I);f.pos=I+Math.abs(_)}return new m(g,P,_,v,A)},m}(),p=function(){function m(b){var f=b.get();if(this.tagClass=f>>6,this.tagConstructed=(32&f)!=0,this.tagNumber=31&f,this.tagNumber==31){var g=new s.Int10;do f=b.get(),g.mulAdd(128,127&f);while(128&f);this.tagNumber=g.simplify()}}return m.prototype.isUniversal=function(){return this.tagClass===0},m.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},m}()},"./node_modules/jsencrypt/lib/lib/asn1js/base64.js":function(r,t,e){e.r(t),e.d(t,{Base64:function(){return s}});var n,s={decode:function(a){var l;if(n===void 0){var u=`= \f
|
|
62
|
-
\r \u2028\u2029`;for(n=Object.create(null),l=0;l<64;++l)n["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l)]=l;for(n["-"]=62,n._=63,l=0;l<u.length;++l)n[u.charAt(l)]=-1}var c=[],h=0,p=0;for(l=0;l<a.length;++l){var m=a.charAt(l);if(m=="=")break;if((m=n[m])!=-1){if(m===void 0)throw new Error("Illegal character at offset "+l);h|=m,++p>=4?(c[c.length]=h>>16,c[c.length]=h>>8&255,c[c.length]=255&h,h=0,p=0):h<<=6}}switch(p){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:c[c.length]=h>>10;break;case 3:c[c.length]=h>>16,c[c.length]=h>>8&255}return c},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(a){var l=s.re.exec(a);if(l)if(l[1])a=l[1];else{if(!l[2])throw new Error("RegExp out of sync");a=l[2]}return s.decode(a)}}},"./node_modules/jsencrypt/lib/lib/asn1js/hex.js":function(r,t,e){e.r(t),e.d(t,{Hex:function(){return s}});var n,s={decode:function(a){var l;if(n===void 0){var u="0123456789ABCDEF",c=` \f
|
|
63
|
-
\r \u2028\u2029`;for(n={},l=0;l<16;++l)n[u.charAt(l)]=l;for(u=u.toLowerCase(),l=10;l<16;++l)n[u.charAt(l)]=l;for(l=0;l<c.length;++l)n[c.charAt(l)]=-1}var h=[],p=0,m=0;for(l=0;l<a.length;++l){var b=a.charAt(l);if(b=="=")break;if((b=n[b])!=-1){if(b===void 0)throw new Error("Illegal character at offset "+l);p|=b,++m>=2?(h[h.length]=p,p=0,m=0):p<<=4}}if(m)throw new Error("Hex encoding incomplete: 4 bits missing");return h}}},"./node_modules/jsencrypt/lib/lib/asn1js/int10.js":function(r,t,e){e.r(t),e.d(t,{Int10:function(){return n}});var n=function(){function s(a){this.buf=[+a||0]}return s.prototype.mulAdd=function(a,l){var u,c,h=this.buf,p=h.length;for(u=0;u<p;++u)c=h[u]*a+l,c<1e13?l=0:(l=0|c/1e13,c-=1e13*l),h[u]=c;l>0&&(h[u]=l)},s.prototype.sub=function(a){var l,u,c=this.buf,h=c.length;for(l=0;l<h;++l)u=c[l]-a,u<0?(u+=1e13,a=1):a=0,c[l]=u;for(;c[c.length-1]===0;)c.pop()},s.prototype.toString=function(a){if((a||10)!=10)throw new Error("only base 10 is supported");for(var l=this.buf,u=l[l.length-1].toString(),c=l.length-2;c>=0;--c)u+=(1e13+l[c]).toString().substring(1);return u},s.prototype.valueOf=function(){for(var a=this.buf,l=0,u=a.length-1;u>=0;--u)l=1e13*l+a[u];return l},s.prototype.simplify=function(){var a=this.buf;return a.length==1?a[0]:this},s}()},"./node_modules/jsencrypt/lib/lib/jsbn/base64.js":function(r,t,e){function n(h){var p,m,b="";for(p=0;p+3<=h.length;p+=3)m=parseInt(h.substring(p,p+3),16),b+=u.charAt(m>>6)+u.charAt(63&m);for(p+1==h.length?(m=parseInt(h.substring(p,p+1),16),b+=u.charAt(m<<2)):p+2==h.length&&(m=parseInt(h.substring(p,p+2),16),b+=u.charAt(m>>2)+u.charAt((3&m)<<4));(3&b.length)>0;)b+=c;return b}function s(h){var p,m="",b=0,f=0;for(p=0;p<h.length&&h.charAt(p)!=c;++p){var g=u.indexOf(h.charAt(p));g<0||(b==0?(m+=(0,l.int2char)(g>>2),f=3&g,b=1):b==1?(m+=(0,l.int2char)(f<<2|g>>4),f=15&g,b=2):b==2?(m+=(0,l.int2char)(f),m+=(0,l.int2char)(g>>2),f=3&g,b=3):(m+=(0,l.int2char)(f<<2|g>>4),m+=(0,l.int2char)(15&g),b=0))}return b==1&&(m+=(0,l.int2char)(f<<2)),m}function a(h){var p,m=s(h),b=[];for(p=0;2*p<m.length;++p)b[p]=parseInt(m.substring(2*p,2*p+2),16);return b}e.r(t),e.d(t,{hex2b64:function(){return n},b64tohex:function(){return s},b64toBA:function(){return a}});var l=e("./node_modules/jsencrypt/lib/lib/jsbn/util.js"),u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c="="},"./node_modules/jsencrypt/lib/lib/jsbn/jsbn.js":function(r,t,e){function n(){return new b(null)}function s(k,d){return new b(k,d)}function a(k,d){var y=x[k.charCodeAt(d)];return y??-1}function l(k){var d=n();return d.fromInt(k),d}function u(k){var d,y=1;return(d=k>>>16)!=0&&(k=d,y+=16),(d=k>>8)!=0&&(k=d,y+=8),(d=k>>4)!=0&&(k=d,y+=4),(d=k>>2)!=0&&(k=d,y+=2),(d=k>>1)!=0&&(k=d,y+=1),y}e.r(t),e.d(t,{BigInteger:function(){return b},nbi:function(){return n},parseBigInt:function(){return s},intAt:function(){return a},nbv:function(){return l},nbits:function(){return u}});var c,h=e("./node_modules/jsencrypt/lib/lib/jsbn/util.js"),p=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],m=(1<<26)/p[p.length-1],b=function(){function k(d,y,S){d!=null&&(typeof d=="number"?this.fromNumber(d,y,S):y==null&&typeof d!="string"?this.fromString(d,256):this.fromString(d,y))}return k.prototype.toString=function(d){if(this.s<0)return"-"+this.negate().toString(d);var y;if(d==16)y=4;else if(d==8)y=3;else if(d==2)y=1;else if(d==32)y=5;else{if(d!=4)return this.toRadix(d);y=2}var S,w=(1<<y)-1,D=!1,M="",j=this.t,V=this.DB-j*this.DB%y;if(j-- >0)for(V<this.DB&&(S=this[j]>>V)>0&&(D=!0,M=(0,h.int2char)(S));j>=0;)V<y?(S=(this[j]&(1<<V)-1)<<y-V,S|=this[--j]>>(V+=this.DB-y)):(S=this[j]>>(V-=y)&w,V<=0&&(V+=this.DB,--j)),S>0&&(D=!0),D&&(M+=(0,h.int2char)(S));return D?M:"0"},k.prototype.negate=function(){var d=n();return k.ZERO.subTo(this,d),d},k.prototype.abs=function(){return this.s<0?this.negate():this},k.prototype.compareTo=function(d){var y=this.s-d.s;if(y!=0)return y;var S=this.t;if((y=S-d.t)!=0)return this.s<0?-y:y;for(;--S>=0;)if((y=this[S]-d[S])!=0)return y;return 0},k.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+u(this[this.t-1]^this.s&this.DM)},k.prototype.mod=function(d){var y=n();return this.abs().divRemTo(d,null,y),this.s<0&&y.compareTo(k.ZERO)>0&&d.subTo(y,y),y},k.prototype.modPowInt=function(d,y){var S;return S=d<256||y.isEven()?new g(y):new v(y),this.exp(d,S)},k.prototype.clone=function(){var d=n();return this.copyTo(d),d},k.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},k.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},k.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},k.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},k.prototype.toByteArray=function(){var d=this.t,y=[];y[0]=this.s;var S,w=this.DB-d*this.DB%8,D=0;if(d-- >0)for(w<this.DB&&(S=this[d]>>w)!=(this.s&this.DM)>>w&&(y[D++]=S|this.s<<this.DB-w);d>=0;)w<8?(S=(this[d]&(1<<w)-1)<<8-w,S|=this[--d]>>(w+=this.DB-8)):(S=this[d]>>(w-=8)&255,w<=0&&(w+=this.DB,--d)),128&S&&(S|=-256),D==0&&(128&this.s)!=(128&S)&&++D,(D>0||S!=this.s)&&(y[D++]=S);return y},k.prototype.equals=function(d){return this.compareTo(d)==0},k.prototype.min=function(d){return this.compareTo(d)<0?this:d},k.prototype.max=function(d){return this.compareTo(d)>0?this:d},k.prototype.and=function(d){var y=n();return this.bitwiseTo(d,h.op_and,y),y},k.prototype.or=function(d){var y=n();return this.bitwiseTo(d,h.op_or,y),y},k.prototype.xor=function(d){var y=n();return this.bitwiseTo(d,h.op_xor,y),y},k.prototype.andNot=function(d){var y=n();return this.bitwiseTo(d,h.op_andnot,y),y},k.prototype.not=function(){for(var d=n(),y=0;y<this.t;++y)d[y]=this.DM&~this[y];return d.t=this.t,d.s=~this.s,d},k.prototype.shiftLeft=function(d){var y=n();return d<0?this.rShiftTo(-d,y):this.lShiftTo(d,y),y},k.prototype.shiftRight=function(d){var y=n();return d<0?this.lShiftTo(-d,y):this.rShiftTo(d,y),y},k.prototype.getLowestSetBit=function(){for(var d=0;d<this.t;++d)if(this[d]!=0)return d*this.DB+(0,h.lbit)(this[d]);return this.s<0?this.t*this.DB:-1},k.prototype.bitCount=function(){for(var d=0,y=this.s&this.DM,S=0;S<this.t;++S)d+=(0,h.cbit)(this[S]^y);return d},k.prototype.testBit=function(d){var y=Math.floor(d/this.DB);return y>=this.t?this.s!=0:(this[y]&1<<d%this.DB)!=0},k.prototype.setBit=function(d){return this.changeBit(d,h.op_or)},k.prototype.clearBit=function(d){return this.changeBit(d,h.op_andnot)},k.prototype.flipBit=function(d){return this.changeBit(d,h.op_xor)},k.prototype.add=function(d){var y=n();return this.addTo(d,y),y},k.prototype.subtract=function(d){var y=n();return this.subTo(d,y),y},k.prototype.multiply=function(d){var y=n();return this.multiplyTo(d,y),y},k.prototype.divide=function(d){var y=n();return this.divRemTo(d,y,null),y},k.prototype.remainder=function(d){var y=n();return this.divRemTo(d,null,y),y},k.prototype.divideAndRemainder=function(d){var y=n(),S=n();return this.divRemTo(d,y,S),[y,S]},k.prototype.modPow=function(d,y){var S,w,D=d.bitLength(),M=l(1);if(D<=0)return M;S=D<18?1:D<48?3:D<144?4:D<768?5:6,w=D<8?new g(y):y.isEven()?new _(y):new v(y);var j=[],V=3,K=S-1,W=(1<<S)-1;if(j[1]=w.convert(this),S>1){var ie=n();for(w.sqrTo(j[1],ie);V<=W;)j[V]=n(),w.mulTo(ie,j[V-2],j[V]),V+=2}var z,L,B=d.t-1,U=!0,F=n();for(D=u(d[B])-1;B>=0;){for(D>=K?z=d[B]>>D-K&W:(z=(d[B]&(1<<D+1)-1)<<K-D,B>0&&(z|=d[B-1]>>this.DB+D-K)),V=S;!(1&z);)z>>=1,--V;if((D-=V)<0&&(D+=this.DB,--B),U)j[z].copyTo(M),U=!1;else{for(;V>1;)w.sqrTo(M,F),w.sqrTo(F,M),V-=2;V>0?w.sqrTo(M,F):(L=M,M=F,F=L),w.mulTo(F,j[z],M)}for(;B>=0&&!(d[B]&1<<D);)w.sqrTo(M,F),L=M,M=F,F=L,--D<0&&(D=this.DB-1,--B)}return w.revert(M)},k.prototype.modInverse=function(d){var y=d.isEven();if(this.isEven()&&y||d.signum()==0)return k.ZERO;for(var S=d.clone(),w=this.clone(),D=l(1),M=l(0),j=l(0),V=l(1);S.signum()!=0;){for(;S.isEven();)S.rShiftTo(1,S),y?(D.isEven()&&M.isEven()||(D.addTo(this,D),M.subTo(d,M)),D.rShiftTo(1,D)):M.isEven()||M.subTo(d,M),M.rShiftTo(1,M);for(;w.isEven();)w.rShiftTo(1,w),y?(j.isEven()&&V.isEven()||(j.addTo(this,j),V.subTo(d,V)),j.rShiftTo(1,j)):V.isEven()||V.subTo(d,V),V.rShiftTo(1,V);S.compareTo(w)>=0?(S.subTo(w,S),y&&D.subTo(j,D),M.subTo(V,M)):(w.subTo(S,w),y&&j.subTo(D,j),V.subTo(M,V))}return w.compareTo(k.ONE)!=0?k.ZERO:V.compareTo(d)>=0?V.subtract(d):V.signum()<0?(V.addTo(d,V),V.signum()<0?V.add(d):V):V},k.prototype.pow=function(d){return this.exp(d,new f)},k.prototype.gcd=function(d){var y=this.s<0?this.negate():this.clone(),S=d.s<0?d.negate():d.clone();if(y.compareTo(S)<0){var w=y;y=S,S=w}var D=y.getLowestSetBit(),M=S.getLowestSetBit();if(M<0)return y;for(D<M&&(M=D),M>0&&(y.rShiftTo(M,y),S.rShiftTo(M,S));y.signum()>0;)(D=y.getLowestSetBit())>0&&y.rShiftTo(D,y),(D=S.getLowestSetBit())>0&&S.rShiftTo(D,S),y.compareTo(S)>=0?(y.subTo(S,y),y.rShiftTo(1,y)):(S.subTo(y,S),S.rShiftTo(1,S));return M>0&&S.lShiftTo(M,S),S},k.prototype.isProbablePrime=function(d){var y,S=this.abs();if(S.t==1&&S[0]<=p[p.length-1]){for(y=0;y<p.length;++y)if(S[0]==p[y])return!0;return!1}if(S.isEven())return!1;for(y=1;y<p.length;){for(var w=p[y],D=y+1;D<p.length&&w<m;)w*=p[D++];for(w=S.modInt(w);y<D;)if(w%p[y++]==0)return!1}return S.millerRabin(d)},k.prototype.copyTo=function(d){for(var y=this.t-1;y>=0;--y)d[y]=this[y];d.t=this.t,d.s=this.s},k.prototype.fromInt=function(d){this.t=1,this.s=d<0?-1:0,d>0?this[0]=d:d<-1?this[0]=d+this.DV:this.t=0},k.prototype.fromString=function(d,y){var S;if(y==16)S=4;else if(y==8)S=3;else if(y==256)S=8;else if(y==2)S=1;else if(y==32)S=5;else{if(y!=4)return void this.fromRadix(d,y);S=2}this.t=0,this.s=0;for(var w=d.length,D=!1,M=0;--w>=0;){var j=S==8?255&+d[w]:a(d,w);j<0?d.charAt(w)=="-"&&(D=!0):(D=!1,M==0?this[this.t++]=j:M+S>this.DB?(this[this.t-1]|=(j&(1<<this.DB-M)-1)<<M,this[this.t++]=j>>this.DB-M):this[this.t-1]|=j<<M,(M+=S)>=this.DB&&(M-=this.DB))}S==8&&128&+d[0]&&(this.s=-1,M>0&&(this[this.t-1]|=(1<<this.DB-M)-1<<M)),this.clamp(),D&&k.ZERO.subTo(this,this)},k.prototype.clamp=function(){for(var d=this.s&this.DM;this.t>0&&this[this.t-1]==d;)--this.t},k.prototype.dlShiftTo=function(d,y){var S;for(S=this.t-1;S>=0;--S)y[S+d]=this[S];for(S=d-1;S>=0;--S)y[S]=0;y.t=this.t+d,y.s=this.s},k.prototype.drShiftTo=function(d,y){for(var S=d;S<this.t;++S)y[S-d]=this[S];y.t=Math.max(this.t-d,0),y.s=this.s},k.prototype.lShiftTo=function(d,y){for(var S=d%this.DB,w=this.DB-S,D=(1<<w)-1,M=Math.floor(d/this.DB),j=this.s<<S&this.DM,V=this.t-1;V>=0;--V)y[V+M+1]=this[V]>>w|j,j=(this[V]&D)<<S;for(var V=M-1;V>=0;--V)y[V]=0;y[M]=j,y.t=this.t+M+1,y.s=this.s,y.clamp()},k.prototype.rShiftTo=function(d,y){y.s=this.s;var S=Math.floor(d/this.DB);if(S>=this.t)return void(y.t=0);var w=d%this.DB,D=this.DB-w,M=(1<<w)-1;y[0]=this[S]>>w;for(var j=S+1;j<this.t;++j)y[j-S-1]|=(this[j]&M)<<D,y[j-S]=this[j]>>w;w>0&&(y[this.t-S-1]|=(this.s&M)<<D),y.t=this.t-S,y.clamp()},k.prototype.subTo=function(d,y){for(var S=0,w=0,D=Math.min(d.t,this.t);S<D;)w+=this[S]-d[S],y[S++]=w&this.DM,w>>=this.DB;if(d.t<this.t){for(w-=d.s;S<this.t;)w+=this[S],y[S++]=w&this.DM,w>>=this.DB;w+=this.s}else{for(w+=this.s;S<d.t;)w-=d[S],y[S++]=w&this.DM,w>>=this.DB;w-=d.s}y.s=w<0?-1:0,w<-1?y[S++]=this.DV+w:w>0&&(y[S++]=w),y.t=S,y.clamp()},k.prototype.multiplyTo=function(d,y){var S=this.abs(),w=d.abs(),D=S.t;for(y.t=D+w.t;--D>=0;)y[D]=0;for(D=0;D<w.t;++D)y[D+S.t]=S.am(0,w[D],y,D,0,S.t);y.s=0,y.clamp(),this.s!=d.s&&k.ZERO.subTo(y,y)},k.prototype.squareTo=function(d){for(var y=this.abs(),S=d.t=2*y.t;--S>=0;)d[S]=0;for(S=0;S<y.t-1;++S){var w=y.am(S,y[S],d,2*S,0,1);(d[S+y.t]+=y.am(S+1,2*y[S],d,2*S+1,w,y.t-S-1))>=y.DV&&(d[S+y.t]-=y.DV,d[S+y.t+1]=1)}d.t>0&&(d[d.t-1]+=y.am(S,y[S],d,2*S,0,1)),d.s=0,d.clamp()},k.prototype.divRemTo=function(d,y,S){var w=d.abs();if(!(w.t<=0)){var D=this.abs();if(D.t<w.t)return y!=null&&y.fromInt(0),void(S!=null&&this.copyTo(S));S==null&&(S=n());var M=n(),j=this.s,V=d.s,K=this.DB-u(w[w.t-1]);K>0?(w.lShiftTo(K,M),D.lShiftTo(K,S)):(w.copyTo(M),D.copyTo(S));var W=M.t,ie=M[W-1];if(ie!=0){var z=ie*(1<<this.F1)+(W>1?M[W-2]>>this.F2:0),L=this.FV/z,B=(1<<this.F1)/z,U=1<<this.F2,F=S.t,N=F-W,q=y??n();for(M.dlShiftTo(N,q),S.compareTo(q)>=0&&(S[S.t++]=1,S.subTo(q,S)),k.ONE.dlShiftTo(W,q),q.subTo(M,M);M.t<W;)M[M.t++]=0;for(;--N>=0;){var Q=S[--F]==ie?this.DM:Math.floor(S[F]*L+(S[F-1]+U)*B);if((S[F]+=M.am(0,Q,S,N,0,W))<Q)for(M.dlShiftTo(N,q),S.subTo(q,S);S[F]<--Q;)S.subTo(q,S)}y!=null&&(S.drShiftTo(W,y),j!=V&&k.ZERO.subTo(y,y)),S.t=W,S.clamp(),K>0&&S.rShiftTo(K,S),j<0&&k.ZERO.subTo(S,S)}}},k.prototype.invDigit=function(){if(this.t<1)return 0;var d=this[0];if(!(1&d))return 0;var y=3&d;return y=y*(2-(15&d)*y)&15,y=y*(2-(255&d)*y)&255,y=y*(2-((65535&d)*y&65535))&65535,y=y*(2-d*y%this.DV)%this.DV,y>0?this.DV-y:-y},k.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},k.prototype.exp=function(d,y){if(d>4294967295||d<1)return k.ONE;var S=n(),w=n(),D=y.convert(this),M=u(d)-1;for(D.copyTo(S);--M>=0;)if(y.sqrTo(S,w),(d&1<<M)>0)y.mulTo(w,D,S);else{var j=S;S=w,w=j}return y.revert(S)},k.prototype.chunkSize=function(d){return Math.floor(Math.LN2*this.DB/Math.log(d))},k.prototype.toRadix=function(d){if(d==null&&(d=10),this.signum()==0||d<2||d>36)return"0";var y=this.chunkSize(d),S=Math.pow(d,y),w=l(S),D=n(),M=n(),j="";for(this.divRemTo(w,D,M);D.signum()>0;)j=(S+M.intValue()).toString(d).substr(1)+j,D.divRemTo(w,D,M);return M.intValue().toString(d)+j},k.prototype.fromRadix=function(d,y){this.fromInt(0),y==null&&(y=10);for(var S=this.chunkSize(y),w=Math.pow(y,S),D=!1,M=0,j=0,V=0;V<d.length;++V){var K=a(d,V);K<0?d.charAt(V)=="-"&&this.signum()==0&&(D=!0):(j=y*j+K,++M>=S&&(this.dMultiply(w),this.dAddOffset(j,0),M=0,j=0))}M>0&&(this.dMultiply(Math.pow(y,M)),this.dAddOffset(j,0)),D&&k.ZERO.subTo(this,this)},k.prototype.fromNumber=function(d,y,S){if(typeof y=="number")if(d<2)this.fromInt(1);else for(this.fromNumber(d,S),this.testBit(d-1)||this.bitwiseTo(k.ONE.shiftLeft(d-1),h.op_or,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(y);)this.dAddOffset(2,0),this.bitLength()>d&&this.subTo(k.ONE.shiftLeft(d-1),this);else{var w=[],D=7&d;w.length=1+(d>>3),y.nextBytes(w),D>0?w[0]&=(1<<D)-1:w[0]=0,this.fromString(w,256)}},k.prototype.bitwiseTo=function(d,y,S){var w,D,M=Math.min(d.t,this.t);for(w=0;w<M;++w)S[w]=y(this[w],d[w]);if(d.t<this.t){for(D=d.s&this.DM,w=M;w<this.t;++w)S[w]=y(this[w],D);S.t=this.t}else{for(D=this.s&this.DM,w=M;w<d.t;++w)S[w]=y(D,d[w]);S.t=d.t}S.s=y(this.s,d.s),S.clamp()},k.prototype.changeBit=function(d,y){var S=k.ONE.shiftLeft(d);return this.bitwiseTo(S,y,S),S},k.prototype.addTo=function(d,y){for(var S=0,w=0,D=Math.min(d.t,this.t);S<D;)w+=this[S]+d[S],y[S++]=w&this.DM,w>>=this.DB;if(d.t<this.t){for(w+=d.s;S<this.t;)w+=this[S],y[S++]=w&this.DM,w>>=this.DB;w+=this.s}else{for(w+=this.s;S<d.t;)w+=d[S],y[S++]=w&this.DM,w>>=this.DB;w+=d.s}y.s=w<0?-1:0,w>0?y[S++]=w:w<-1&&(y[S++]=this.DV+w),y.t=S,y.clamp()},k.prototype.dMultiply=function(d){this[this.t]=this.am(0,d-1,this,0,0,this.t),++this.t,this.clamp()},k.prototype.dAddOffset=function(d,y){if(d!=0){for(;this.t<=y;)this[this.t++]=0;for(this[y]+=d;this[y]>=this.DV;)this[y]-=this.DV,++y>=this.t&&(this[this.t++]=0),++this[y]}},k.prototype.multiplyLowerTo=function(d,y,S){var w=Math.min(this.t+d.t,y);for(S.s=0,S.t=w;w>0;)S[--w]=0;for(var D=S.t-this.t;w<D;++w)S[w+this.t]=this.am(0,d[w],S,w,0,this.t);for(var D=Math.min(d.t,y);w<D;++w)this.am(0,d[w],S,w,0,y-w);S.clamp()},k.prototype.multiplyUpperTo=function(d,y,S){--y;var w=S.t=this.t+d.t-y;for(S.s=0;--w>=0;)S[w]=0;for(w=Math.max(y-this.t,0);w<d.t;++w)S[this.t+w-y]=this.am(y-w,d[w],S,0,0,this.t+w-y);S.clamp(),S.drShiftTo(1,S)},k.prototype.modInt=function(d){if(d<=0)return 0;var y=this.DV%d,S=this.s<0?d-1:0;if(this.t>0)if(y==0)S=this[0]%d;else for(var w=this.t-1;w>=0;--w)S=(y*S+this[w])%d;return S},k.prototype.millerRabin=function(d){var y=this.subtract(k.ONE),S=y.getLowestSetBit();if(S<=0)return!1;var w=y.shiftRight(S);(d=d+1>>1)>p.length&&(d=p.length);for(var D=n(),M=0;M<d;++M){D.fromInt(p[Math.floor(Math.random()*p.length)]);var j=D.modPow(w,this);if(j.compareTo(k.ONE)!=0&&j.compareTo(y)!=0){for(var V=1;V++<S&&j.compareTo(y)!=0;)if(j=j.modPowInt(2,this),j.compareTo(k.ONE)==0)return!1;if(j.compareTo(y)!=0)return!1}}return!0},k.prototype.square=function(){var d=n();return this.squareTo(d),d},k.prototype.gcda=function(d,y){var S=this.s<0?this.negate():this.clone(),w=d.s<0?d.negate():d.clone();if(S.compareTo(w)<0){var D=S;S=w,w=D}var M=S.getLowestSetBit(),j=w.getLowestSetBit();if(j<0)return void y(S);M<j&&(j=M),j>0&&(S.rShiftTo(j,S),w.rShiftTo(j,w));var V=function K(){(M=S.getLowestSetBit())>0&&S.rShiftTo(M,S),(M=w.getLowestSetBit())>0&&w.rShiftTo(M,w),S.compareTo(w)>=0?(S.subTo(w,S),S.rShiftTo(1,S)):(w.subTo(S,w),w.rShiftTo(1,w)),S.signum()>0?setTimeout(K,0):(j>0&&w.lShiftTo(j,w),setTimeout(function(){y(w)},0))};setTimeout(V,10)},k.prototype.fromNumberAsync=function(d,y,S,w){if(typeof y=="number")if(d<2)this.fromInt(1);else{this.fromNumber(d,S),this.testBit(d-1)||this.bitwiseTo(k.ONE.shiftLeft(d-1),h.op_or,this),this.isEven()&&this.dAddOffset(1,0);var D=this,M=function K(){D.dAddOffset(2,0),D.bitLength()>d&&D.subTo(k.ONE.shiftLeft(d-1),D),D.isProbablePrime(y)?setTimeout(function(){w()},0):setTimeout(K,0)};setTimeout(M,0)}else{var j=[],V=7&d;j.length=1+(d>>3),y.nextBytes(j),V>0?j[0]&=(1<<V)-1:j[0]=0,this.fromString(j,256)}},k}(),f=function(){function k(){}return k.prototype.convert=function(d){return d},k.prototype.revert=function(d){return d},k.prototype.mulTo=function(d,y,S){d.multiplyTo(y,S)},k.prototype.sqrTo=function(d,y){d.squareTo(y)},k}(),g=function(){function k(d){this.m=d}return k.prototype.convert=function(d){return d.s<0||d.compareTo(this.m)>=0?d.mod(this.m):d},k.prototype.revert=function(d){return d},k.prototype.reduce=function(d){d.divRemTo(this.m,null,d)},k.prototype.mulTo=function(d,y,S){d.multiplyTo(y,S),this.reduce(S)},k.prototype.sqrTo=function(d,y){d.squareTo(y),this.reduce(y)},k}(),v=function(){function k(d){this.m=d,this.mp=d.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<d.DB-15)-1,this.mt2=2*d.t}return k.prototype.convert=function(d){var y=n();return d.abs().dlShiftTo(this.m.t,y),y.divRemTo(this.m,null,y),d.s<0&&y.compareTo(b.ZERO)>0&&this.m.subTo(y,y),y},k.prototype.revert=function(d){var y=n();return d.copyTo(y),this.reduce(y),y},k.prototype.reduce=function(d){for(;d.t<=this.mt2;)d[d.t++]=0;for(var y=0;y<this.m.t;++y){var S=32767&d[y],w=S*this.mpl+((S*this.mph+(d[y]>>15)*this.mpl&this.um)<<15)&d.DM;for(S=y+this.m.t,d[S]+=this.m.am(0,w,d,y,0,this.m.t);d[S]>=d.DV;)d[S]-=d.DV,d[++S]++}d.clamp(),d.drShiftTo(this.m.t,d),d.compareTo(this.m)>=0&&d.subTo(this.m,d)},k.prototype.mulTo=function(d,y,S){d.multiplyTo(y,S),this.reduce(S)},k.prototype.sqrTo=function(d,y){d.squareTo(y),this.reduce(y)},k}(),_=function(){function k(d){this.m=d,this.r2=n(),this.q3=n(),b.ONE.dlShiftTo(2*d.t,this.r2),this.mu=this.r2.divide(d)}return k.prototype.convert=function(d){if(d.s<0||d.t>2*this.m.t)return d.mod(this.m);if(d.compareTo(this.m)<0)return d;var y=n();return d.copyTo(y),this.reduce(y),y},k.prototype.revert=function(d){return d},k.prototype.reduce=function(d){for(d.drShiftTo(this.m.t-1,this.r2),d.t>this.m.t+1&&(d.t=this.m.t+1,d.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);d.compareTo(this.r2)<0;)d.dAddOffset(1,this.m.t+1);for(d.subTo(this.r2,d);d.compareTo(this.m)>=0;)d.subTo(this.m,d)},k.prototype.mulTo=function(d,y,S){d.multiplyTo(y,S),this.reduce(S)},k.prototype.sqrTo=function(d,y){d.squareTo(y),this.reduce(y)},k}(),I=typeof navigator<"u";I&&navigator.appName=="Microsoft Internet Explorer"?(b.prototype.am=function(k,d,y,S,w,D){for(var M=32767&d,j=d>>15;--D>=0;){var V=32767&this[k],K=this[k++]>>15,W=j*V+K*M;V=M*V+((32767&W)<<15)+y[S]+(1073741823&w),w=(V>>>30)+(W>>>15)+j*K+(w>>>30),y[S++]=1073741823&V}return w},c=30):I&&navigator.appName!="Netscape"?(b.prototype.am=function(k,d,y,S,w,D){for(;--D>=0;){var M=d*this[k++]+y[S]+w;w=Math.floor(M/67108864),y[S++]=67108863&M}return w},c=26):(b.prototype.am=function(k,d,y,S,w,D){for(var M=16383&d,j=d>>14;--D>=0;){var V=16383&this[k],K=this[k++]>>14,W=j*V+K*M;V=M*V+((16383&W)<<14)+y[S]+w,w=(V>>28)+(W>>14)+j*K,y[S++]=268435455&V}return w},c=28),b.prototype.DB=c,b.prototype.DM=(1<<c)-1,b.prototype.DV=1<<c,b.prototype.FV=Math.pow(2,52),b.prototype.F1=52-c,b.prototype.F2=2*c-52;var P,A,x=[];for(P="0".charCodeAt(0),A=0;A<=9;++A)x[P++]=A;for(P="a".charCodeAt(0),A=10;A<36;++A)x[P++]=A;for(P="A".charCodeAt(0),A=10;A<36;++A)x[P++]=A;b.ZERO=l(0),b.ONE=l(1)},"./node_modules/jsencrypt/lib/lib/jsbn/prng4.js":function(r,t,e){function n(){return new s}e.r(t),e.d(t,{Arcfour:function(){return s},prng_newstate:function(){return n},rng_psize:function(){return a}});var s=function(){function l(){this.i=0,this.j=0,this.S=[]}return l.prototype.init=function(u){var c,h,p;for(c=0;c<256;++c)this.S[c]=c;for(h=0,c=0;c<256;++c)h=h+this.S[c]+u[c%u.length]&255,p=this.S[c],this.S[c]=this.S[h],this.S[h]=p;this.i=0,this.j=0},l.prototype.next=function(){var u;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,u=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=u,this.S[u+this.S[this.i]&255]},l}(),a=256},"./node_modules/jsencrypt/lib/lib/jsbn/rng.js":function(r,t,e){function n(){if(s==null){for(s=(0,l.prng_newstate)();a<l.rng_psize;){var f=Math.floor(65536*Math.random());u[a++]=255&f}for(s.init(u),a=0;a<u.length;++a)u[a]=0;a=0}return s.next()}e.r(t),e.d(t,{SecureRandom:function(){return b}});var s,a,l=e("./node_modules/jsencrypt/lib/lib/jsbn/prng4.js"),u=null;if(u==null){u=[],a=0;var c=void 0;if(window.crypto&&window.crypto.getRandomValues){var h=new Uint32Array(256);for(window.crypto.getRandomValues(h),c=0;c<h.length;++c)u[a++]=255&h[c]}var p=0,m=function f(g){if((p=p||0)>=256||a>=l.rng_psize)return void(window.removeEventListener?window.removeEventListener("mousemove",f,!1):window.detachEvent&&window.detachEvent("onmousemove",f));try{var v=g.x+g.y;u[a++]=255&v,p+=1}catch{}};window.addEventListener?window.addEventListener("mousemove",m,!1):window.attachEvent&&window.attachEvent("onmousemove",m)}var b=function(){function f(){}return f.prototype.nextBytes=function(g){for(var v=0;v<g.length;++v)g[v]=n()},f}()},"./node_modules/jsencrypt/lib/lib/jsbn/rsa.js":function(r,t,e){function n(b,f){if(f<b.length+22)return null;for(var g=f-b.length-6,v="",_=0;_<g;_+=2)v+="ff";var I="0001"+v+"00"+b;return(0,c.parseBigInt)(I,16)}function s(b,f){if(f<b.length+11)return null;for(var g=[],v=b.length-1;v>=0&&f>0;){var _=b.charCodeAt(v--);_<128?g[--f]=_:_>127&&_<2048?(g[--f]=63&_|128,g[--f]=_>>6|192):(g[--f]=63&_|128,g[--f]=_>>6&63|128,g[--f]=_>>12|224)}g[--f]=0;for(var I=new h.SecureRandom,P=[];f>2;){for(P[0]=0;P[0]==0;)I.nextBytes(P);g[--f]=P[0]}return g[--f]=2,g[--f]=0,new c.BigInteger(g)}function a(b,f){for(var g=b.toByteArray(),v=0;v<g.length&&g[v]==0;)++v;if(g.length-v!=f-1||g[v]!=2)return null;for(++v;g[v]!=0;)if(++v>=g.length)return null;for(var _="";++v<g.length;){var I=255&g[v];I<128?_+=String.fromCharCode(I):I>191&&I<224?(_+=String.fromCharCode((31&I)<<6|63&g[v+1]),++v):(_+=String.fromCharCode((15&I)<<12|(63&g[v+1])<<6|63&g[v+2]),v+=2)}return _}function l(b){return m[b]||""}function u(b){for(var f in m)if(m.hasOwnProperty(f)){var g=m[f],v=g.length;if(b.substr(0,v)==g)return b.substr(v)}return b}e.r(t),e.d(t,{RSAKey:function(){return p}});var c=e("./node_modules/jsencrypt/lib/lib/jsbn/jsbn.js"),h=e("./node_modules/jsencrypt/lib/lib/jsbn/rng.js"),p=function(){function b(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return b.prototype.doPublic=function(f){return f.modPowInt(this.e,this.n)},b.prototype.doPrivate=function(f){if(this.p==null||this.q==null)return f.modPow(this.d,this.n);for(var g=f.mod(this.p).modPow(this.dmp1,this.p),v=f.mod(this.q).modPow(this.dmq1,this.q);g.compareTo(v)<0;)g=g.add(this.p);return g.subtract(v).multiply(this.coeff).mod(this.p).multiply(this.q).add(v)},b.prototype.setPublic=function(f,g){f!=null&&g!=null&&f.length>0&&g.length>0&&(this.n=(0,c.parseBigInt)(f,16),this.e=parseInt(g,16))},b.prototype.encrypt=function(f){var g=this.n.bitLength()+7>>3,v=s(f,g);if(v==null)return null;var _=this.doPublic(v);if(_==null)return null;for(var I=_.toString(16),P=I.length,A=0;A<2*g-P;A++)I="0"+I;return I},b.prototype.setPrivate=function(f,g,v){f!=null&&g!=null&&f.length>0&&g.length>0&&(this.n=(0,c.parseBigInt)(f,16),this.e=parseInt(g,16),this.d=(0,c.parseBigInt)(v,16))},b.prototype.setPrivateEx=function(f,g,v,_,I,P,A,x){f!=null&&g!=null&&f.length>0&&g.length>0&&(this.n=(0,c.parseBigInt)(f,16),this.e=parseInt(g,16),this.d=(0,c.parseBigInt)(v,16),this.p=(0,c.parseBigInt)(_,16),this.q=(0,c.parseBigInt)(I,16),this.dmp1=(0,c.parseBigInt)(P,16),this.dmq1=(0,c.parseBigInt)(A,16),this.coeff=(0,c.parseBigInt)(x,16))},b.prototype.generate=function(f,g){var v=new h.SecureRandom,_=f>>1;this.e=parseInt(g,16);for(var I=new c.BigInteger(g,16);;){for(;this.p=new c.BigInteger(f-_,1,v),this.p.subtract(c.BigInteger.ONE).gcd(I).compareTo(c.BigInteger.ONE)!=0||!this.p.isProbablePrime(10););for(;this.q=new c.BigInteger(_,1,v),this.q.subtract(c.BigInteger.ONE).gcd(I).compareTo(c.BigInteger.ONE)!=0||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var P=this.p;this.p=this.q,this.q=P}var A=this.p.subtract(c.BigInteger.ONE),x=this.q.subtract(c.BigInteger.ONE),k=A.multiply(x);if(k.gcd(I).compareTo(c.BigInteger.ONE)==0){this.n=this.p.multiply(this.q),this.d=I.modInverse(k),this.dmp1=this.d.mod(A),this.dmq1=this.d.mod(x),this.coeff=this.q.modInverse(this.p);break}}},b.prototype.decrypt=function(f){var g=(0,c.parseBigInt)(f,16),v=this.doPrivate(g);return v==null?null:a(v,this.n.bitLength()+7>>3)},b.prototype.generateAsync=function(f,g,v){var _=new h.SecureRandom,I=f>>1;this.e=parseInt(g,16);var P=new c.BigInteger(g,16),A=this,x=function k(){var d=function(){if(A.p.compareTo(A.q)<=0){var w=A.p;A.p=A.q,A.q=w}var D=A.p.subtract(c.BigInteger.ONE),M=A.q.subtract(c.BigInteger.ONE),j=D.multiply(M);j.gcd(P).compareTo(c.BigInteger.ONE)==0?(A.n=A.p.multiply(A.q),A.d=P.modInverse(j),A.dmp1=A.d.mod(D),A.dmq1=A.d.mod(M),A.coeff=A.q.modInverse(A.p),setTimeout(function(){v()},0)):setTimeout(k,0)},y=function w(){A.q=(0,c.nbi)(),A.q.fromNumberAsync(I,1,_,function(){A.q.subtract(c.BigInteger.ONE).gcda(P,function(D){D.compareTo(c.BigInteger.ONE)==0&&A.q.isProbablePrime(10)?setTimeout(d,0):setTimeout(w,0)})})},S=function w(){A.p=(0,c.nbi)(),A.p.fromNumberAsync(f-I,1,_,function(){A.p.subtract(c.BigInteger.ONE).gcda(P,function(D){D.compareTo(c.BigInteger.ONE)==0&&A.p.isProbablePrime(10)?setTimeout(y,0):setTimeout(w,0)})})};setTimeout(S,0)};setTimeout(x,0)},b.prototype.sign=function(f,g,v){var _=l(v),I=_+g(f).toString(),P=n(I,this.n.bitLength()/4);if(P==null)return null;var A=this.doPrivate(P);if(A==null)return null;var x=A.toString(16);return 1&x.length?"0"+x:x},b.prototype.verify=function(f,g,v){var _=(0,c.parseBigInt)(g,16),I=this.doPublic(_);return I==null?null:u(I.toString(16).replace(/^1f+00/,""))==v(f).toString()},b}(),m={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"}},"./node_modules/jsencrypt/lib/lib/jsbn/util.js":function(r,t,e){function n(m){return p.charAt(m)}function s(m,b){return m&b}function a(m,b){return m|b}function l(m,b){return m^b}function u(m,b){return m&~b}function c(m){if(m==0)return-1;var b=0;return!(65535&m)&&(m>>=16,b+=16),!(255&m)&&(m>>=8,b+=8),!(15&m)&&(m>>=4,b+=4),!(3&m)&&(m>>=2,b+=2),!(1&m)&&++b,b}function h(m){for(var b=0;m!=0;)m&=m-1,++b;return b}e.r(t),e.d(t,{int2char:function(){return n},op_and:function(){return s},op_or:function(){return a},op_xor:function(){return l},op_andnot:function(){return u},lbit:function(){return c},cbit:function(){return h}});var p="0123456789abcdefghijklmnopqrstuvwxyz"},"./node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js":function(r,t,e){e.r(t),e.d(t,{KJUR:function(){return a}});var n=e("./node_modules/jsencrypt/lib/lib/jsbn/jsbn.js"),s=e("./node_modules/jsencrypt/lib/lib/jsrsasign/yahoo.js"),a={};typeof a.asn1<"u"&&a.asn1||(a.asn1={}),a.asn1.ASN1Util=new function(){this.integerToByteHex=function(l){var u=l.toString(16);return u.length%2==1&&(u="0"+u),u},this.bigIntToMinTwosComplementsHex=function(l){var u=l.toString(16);if(u.substr(0,1)!="-")u.length%2==1?u="0"+u:u.match(/^[0-7]/)||(u="00"+u);else{var c=u.substr(1),h=c.length;h%2==1?h+=1:u.match(/^[0-7]/)||(h+=2);for(var p="",m=0;m<h;m++)p+="f";u=new n.BigInteger(p,16).xor(l).add(n.BigInteger.ONE).toString(16).replace(/^-/,"")}return u},this.getPEMStringFromHex=function(l,u){return hextopem(l,u)},this.newObject=function(l){var u=a,c=u.asn1,h=c.DERBoolean,p=c.DERInteger,m=c.DERBitString,b=c.DEROctetString,f=c.DERNull,g=c.DERObjectIdentifier,v=c.DEREnumerated,_=c.DERUTF8String,I=c.DERNumericString,P=c.DERPrintableString,A=c.DERTeletexString,x=c.DERIA5String,k=c.DERUTCTime,d=c.DERGeneralizedTime,y=c.DERSequence,S=c.DERSet,w=c.DERTaggedObject,D=c.ASN1Util.newObject,M=Object.keys(l);if(M.length!=1)throw"key of param shall be only one.";var j=M[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+j+":")==-1)throw"undefined key: "+j;if(j=="bool")return new h(l[j]);if(j=="int")return new p(l[j]);if(j=="bitstr")return new m(l[j]);if(j=="octstr")return new b(l[j]);if(j=="null")return new f(l[j]);if(j=="oid")return new g(l[j]);if(j=="enum")return new v(l[j]);if(j=="utf8str")return new _(l[j]);if(j=="numstr")return new I(l[j]);if(j=="prnstr")return new P(l[j]);if(j=="telstr")return new A(l[j]);if(j=="ia5str")return new x(l[j]);if(j=="utctime")return new k(l[j]);if(j=="gentime")return new d(l[j]);if(j=="seq"){for(var V=l[j],K=[],W=0;W<V.length;W++){var ie=D(V[W]);K.push(ie)}return new y({array:K})}if(j=="set"){for(var V=l[j],K=[],W=0;W<V.length;W++){var ie=D(V[W]);K.push(ie)}return new S({array:K})}if(j=="tag"){var z=l[j];if(Object.prototype.toString.call(z)==="[object Array]"&&z.length==3){var L=D(z[2]);return new w({tag:z[0],explicit:z[1],obj:L})}var B={};if(z.explicit!==void 0&&(B.explicit=z.explicit),z.tag!==void 0&&(B.tag=z.tag),z.obj===void 0)throw"obj shall be specified for 'tag'.";return B.obj=D(z.obj),new w(B)}},this.jsonToASN1HEX=function(l){return this.newObject(l).getEncodedHex()}},a.asn1.ASN1Util.oidHexToInt=function(l){for(var p="",u=parseInt(l.substr(0,2),16),c=Math.floor(u/40),h=u%40,p=c+"."+h,m="",b=2;b<l.length;b+=2){var f=parseInt(l.substr(b,2),16),g=("00000000"+f.toString(2)).slice(-8);m+=g.substr(1,7),g.substr(0,1)=="0"&&(p=p+"."+new n.BigInteger(m,2).toString(10),m="")}return p},a.asn1.ASN1Util.oidIntToHex=function(l){var u=function(b){var f=b.toString(16);return f.length==1&&(f="0"+f),f};if(!l.match(/^[0-9.]+$/))throw"malformed oid string: "+l;var c="",h=l.split("."),p=40*parseInt(h[0])+parseInt(h[1]);c+=u(p),h.splice(0,2);for(var m=0;m<h.length;m++)c+=function(b){var f="",g=new n.BigInteger(b,10),v=g.toString(2),_=7-v.length%7;_==7&&(_=0);for(var I="",P=0;P<_;P++)I+="0";v=I+v;for(var P=0;P<v.length-1;P+=7){var A=v.substr(P,7);P!=v.length-7&&(A="1"+A),f+=u(parseInt(A,2))}return f}(h[m]);return c},a.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n=0,v="+this.hV;var l=this.hV.length/2,u=l.toString(16);if(u.length%2==1&&(u="0"+u),l<128)return u;var c=u.length/2;if(c>15)throw"ASN.1 length too long to represent by 8x: n = "+l.toString(16);return(128+c).toString(16)+u},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},a.asn1.DERAbstractString=function(l){a.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(u){this.hTLV=null,this.isModified=!0,this.s=u,this.hV=stohex(this.s)},this.setStringHex=function(u){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=u},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l=="string"?this.setString(l):typeof l.str<"u"?this.setString(l.str):typeof l.hex<"u"&&this.setStringHex(l.hex))},s.YAHOO.lang.extend(a.asn1.DERAbstractString,a.asn1.ASN1Object),a.asn1.DERAbstractTime=function(l){a.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(u){return utc=u.getTime()+6e4*u.getTimezoneOffset(),new Date(utc)},this.formatDate=function(u,c,h){var p=this.zeroPadding,m=this.localDateToUTC(u),b=String(m.getFullYear());c=="utc"&&(b=b.substr(2,2));var f=p(String(m.getMonth()+1),2),g=p(String(m.getDate()),2),v=p(String(m.getHours()),2),_=p(String(m.getMinutes()),2),I=p(String(m.getSeconds()),2),P=b+f+g+v+_+I;if(h===!0){var A=m.getMilliseconds();if(A!=0){var x=p(String(A),3);x=x.replace(/[0]+$/,""),P=P+"."+x}}return P+"Z"},this.zeroPadding=function(u,c){return u.length>=c?u:new Array(c-u.length+1).join("0")+u},this.getString=function(){return this.s},this.setString=function(u){this.hTLV=null,this.isModified=!0,this.s=u,this.hV=stohex(u)},this.setByDateValue=function(u,c,h,p,m,b){var f=new Date(Date.UTC(u,c-1,h,p,m,b,0));this.setByDate(f)},this.getFreshValueHex=function(){return this.hV}},s.YAHOO.lang.extend(a.asn1.DERAbstractTime,a.asn1.ASN1Object),a.asn1.DERAbstractStructured=function(l){a.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(u){this.hTLV=null,this.isModified=!0,this.asn1Array=u},this.appendASN1Object=function(u){this.hTLV=null,this.isModified=!0,this.asn1Array.push(u)},this.asn1Array=new Array,l!==void 0&&typeof l.array<"u"&&(this.asn1Array=l.array)},s.YAHOO.lang.extend(a.asn1.DERAbstractStructured,a.asn1.ASN1Object),a.asn1.DERBoolean=function(){a.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},s.YAHOO.lang.extend(a.asn1.DERBoolean,a.asn1.ASN1Object),a.asn1.DERInteger=function(l){a.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(u){this.hTLV=null,this.isModified=!0,this.hV=a.asn1.ASN1Util.bigIntToMinTwosComplementsHex(u)},this.setByInteger=function(u){var c=new n.BigInteger(String(u),10);this.setByBigInteger(c)},this.setValueHex=function(u){this.hV=u},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l.bigint<"u"?this.setByBigInteger(l.bigint):typeof l.int<"u"?this.setByInteger(l.int):typeof l=="number"?this.setByInteger(l):typeof l.hex<"u"&&this.setValueHex(l.hex))},s.YAHOO.lang.extend(a.asn1.DERInteger,a.asn1.ASN1Object),a.asn1.DERBitString=function(l){if(l!==void 0&&typeof l.obj<"u"){var u=a.asn1.ASN1Util.newObject(l.obj);l.hex="00"+u.getEncodedHex()}a.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(c){this.hTLV=null,this.isModified=!0,this.hV=c},this.setUnusedBitsAndHexValue=function(c,h){if(c<0||7<c)throw"unused bits shall be from 0 to 7: u = "+c;var p="0"+c;this.hTLV=null,this.isModified=!0,this.hV=p+h},this.setByBinaryString=function(c){c=c.replace(/0+$/,"");var h=8-c.length%8;h==8&&(h=0);for(var p=0;p<=h;p++)c+="0";for(var m="",p=0;p<c.length-1;p+=8){var b=c.substr(p,8),f=parseInt(b,2).toString(16);f.length==1&&(f="0"+f),m+=f}this.hTLV=null,this.isModified=!0,this.hV="0"+h+m},this.setByBooleanArray=function(c){for(var h="",p=0;p<c.length;p++)c[p]==1?h+="1":h+="0";this.setByBinaryString(h)},this.newFalseArray=function(c){for(var h=new Array(c),p=0;p<c;p++)h[p]=!1;return h},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l=="string"&&l.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(l):typeof l.hex<"u"?this.setHexValueIncludingUnusedBits(l.hex):typeof l.bin<"u"?this.setByBinaryString(l.bin):typeof l.array<"u"&&this.setByBooleanArray(l.array))},s.YAHOO.lang.extend(a.asn1.DERBitString,a.asn1.ASN1Object),a.asn1.DEROctetString=function(l){if(l!==void 0&&typeof l.obj<"u"){var u=a.asn1.ASN1Util.newObject(l.obj);l.hex=u.getEncodedHex()}a.asn1.DEROctetString.superclass.constructor.call(this,l),this.hT="04"},s.YAHOO.lang.extend(a.asn1.DEROctetString,a.asn1.DERAbstractString),a.asn1.DERNull=function(){a.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},s.YAHOO.lang.extend(a.asn1.DERNull,a.asn1.ASN1Object),a.asn1.DERObjectIdentifier=function(l){var u=function(h){var p=h.toString(16);return p.length==1&&(p="0"+p),p},c=function(h){var p="",m=new n.BigInteger(h,10),b=m.toString(2),f=7-b.length%7;f==7&&(f=0);for(var g="",v=0;v<f;v++)g+="0";b=g+b;for(var v=0;v<b.length-1;v+=7){var _=b.substr(v,7);v!=b.length-7&&(_="1"+_),p+=u(parseInt(_,2))}return p};a.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(h){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=h},this.setValueOidString=function(h){if(!h.match(/^[0-9.]+$/))throw"malformed oid string: "+h;var p="",m=h.split("."),b=40*parseInt(m[0])+parseInt(m[1]);p+=u(b),m.splice(0,2);for(var f=0;f<m.length;f++)p+=c(m[f]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=p},this.setValueName=function(h){var p=a.asn1.x509.OID.name2oid(h);if(p==="")throw"DERObjectIdentifier oidName undefined: "+h;this.setValueOidString(p)},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l=="string"?l.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(l):this.setValueName(l):l.oid!==void 0?this.setValueOidString(l.oid):l.hex!==void 0?this.setValueHex(l.hex):l.name!==void 0&&this.setValueName(l.name))},s.YAHOO.lang.extend(a.asn1.DERObjectIdentifier,a.asn1.ASN1Object),a.asn1.DEREnumerated=function(l){a.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(u){this.hTLV=null,this.isModified=!0,this.hV=a.asn1.ASN1Util.bigIntToMinTwosComplementsHex(u)},this.setByInteger=function(u){var c=new n.BigInteger(String(u),10);this.setByBigInteger(c)},this.setValueHex=function(u){this.hV=u},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l.int<"u"?this.setByInteger(l.int):typeof l=="number"?this.setByInteger(l):typeof l.hex<"u"&&this.setValueHex(l.hex))},s.YAHOO.lang.extend(a.asn1.DEREnumerated,a.asn1.ASN1Object),a.asn1.DERUTF8String=function(l){a.asn1.DERUTF8String.superclass.constructor.call(this,l),this.hT="0c"},s.YAHOO.lang.extend(a.asn1.DERUTF8String,a.asn1.DERAbstractString),a.asn1.DERNumericString=function(l){a.asn1.DERNumericString.superclass.constructor.call(this,l),this.hT="12"},s.YAHOO.lang.extend(a.asn1.DERNumericString,a.asn1.DERAbstractString),a.asn1.DERPrintableString=function(l){a.asn1.DERPrintableString.superclass.constructor.call(this,l),this.hT="13"},s.YAHOO.lang.extend(a.asn1.DERPrintableString,a.asn1.DERAbstractString),a.asn1.DERTeletexString=function(l){a.asn1.DERTeletexString.superclass.constructor.call(this,l),this.hT="14"},s.YAHOO.lang.extend(a.asn1.DERTeletexString,a.asn1.DERAbstractString),a.asn1.DERIA5String=function(l){a.asn1.DERIA5String.superclass.constructor.call(this,l),this.hT="16"},s.YAHOO.lang.extend(a.asn1.DERIA5String,a.asn1.DERAbstractString),a.asn1.DERUTCTime=function(l){a.asn1.DERUTCTime.superclass.constructor.call(this,l),this.hT="17",this.setByDate=function(u){this.hTLV=null,this.isModified=!0,this.date=u,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},l!==void 0&&(l.str!==void 0?this.setString(l.str):typeof l=="string"&&l.match(/^[0-9]{12}Z$/)?this.setString(l):l.hex!==void 0?this.setStringHex(l.hex):l.date!==void 0&&this.setByDate(l.date))},s.YAHOO.lang.extend(a.asn1.DERUTCTime,a.asn1.DERAbstractTime),a.asn1.DERGeneralizedTime=function(l){a.asn1.DERGeneralizedTime.superclass.constructor.call(this,l),this.hT="18",this.withMillis=!1,this.setByDate=function(u){this.hTLV=null,this.isModified=!0,this.date=u,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},l!==void 0&&(l.str!==void 0?this.setString(l.str):typeof l=="string"&&l.match(/^[0-9]{14}Z$/)?this.setString(l):l.hex!==void 0?this.setStringHex(l.hex):l.date!==void 0&&this.setByDate(l.date),l.millis===!0&&(this.withMillis=!0))},s.YAHOO.lang.extend(a.asn1.DERGeneralizedTime,a.asn1.DERAbstractTime),a.asn1.DERSequence=function(l){a.asn1.DERSequence.superclass.constructor.call(this,l),this.hT="30",this.getFreshValueHex=function(){for(var u="",c=0;c<this.asn1Array.length;c++)u+=this.asn1Array[c].getEncodedHex();return this.hV=u,this.hV}},s.YAHOO.lang.extend(a.asn1.DERSequence,a.asn1.DERAbstractStructured),a.asn1.DERSet=function(l){a.asn1.DERSet.superclass.constructor.call(this,l),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var u=new Array,c=0;c<this.asn1Array.length;c++){var h=this.asn1Array[c];u.push(h.getEncodedHex())}return this.sortFlag==1&&u.sort(),this.hV=u.join(""),this.hV},l!==void 0&&typeof l.sortflag<"u"&&l.sortflag==0&&(this.sortFlag=!1)},s.YAHOO.lang.extend(a.asn1.DERSet,a.asn1.DERAbstractStructured),a.asn1.DERTaggedObject=function(l){a.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(u,c,h){this.hT=c,this.isExplicit=u,this.asn1Object=h,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=h.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,c),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l.tag<"u"&&(this.hT=l.tag),typeof l.explicit<"u"&&(this.isExplicit=l.explicit),typeof l.obj<"u"&&(this.asn1Object=l.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},s.YAHOO.lang.extend(a.asn1.DERTaggedObject,a.asn1.ASN1Object)},"./node_modules/jsencrypt/lib/lib/jsrsasign/yahoo.js":function(r,t,e){e.r(t),e.d(t,{YAHOO:function(){return n}});var n={};n.lang={extend:function(s,a,l){if(!a||!s)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var u=function(){};if(u.prototype=a.prototype,s.prototype=new u,s.prototype.constructor=s,s.superclass=a.prototype,a.prototype.constructor==Object.prototype.constructor&&(a.prototype.constructor=a),l){var c;for(c in l)s.prototype[c]=l[c];var h=function(){},p=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(h=function(m,b){for(c=0;c<p.length;c+=1){var f=p[c],g=b[f];typeof g=="function"&&g!=Object.prototype[f]&&(m[f]=g)}})}catch{}h(s.prototype,l)}}}},"./node_modules/jsencrypt/lib/version.json":function(r){r.exports={version:"3.2.0"}},"./node_modules/md5/md5.js":function(r,t,e){(function(){var n=e("./node_modules/crypt/crypt.js"),s=e("./node_modules/charenc/charenc.js").utf8,a=e("./node_modules/is-buffer/index.js"),l=e("./node_modules/charenc/charenc.js").bin,u=function c(h,p){h.constructor==String?h=p&&p.encoding==="binary"?l.stringToBytes(h):s.stringToBytes(h):a(h)?h=Array.prototype.slice.call(h,0):Array.isArray(h)||h.constructor===Uint8Array||(h=h.toString());for(var m=n.bytesToWords(h),b=8*h.length,f=1732584193,g=-271733879,v=-1732584194,_=271733878,I=0;I<m.length;I++)m[I]=16711935&(m[I]<<8|m[I]>>>24)|4278255360&(m[I]<<24|m[I]>>>8);m[b>>>5]|=128<<b%32,m[14+(b+64>>>9<<4)]=b;for(var P=c._ff,A=c._gg,x=c._hh,k=c._ii,I=0;I<m.length;I+=16){var d=f,y=g,S=v,w=_;f=P(f,g,v,_,m[I+0],7,-680876936),_=P(_,f,g,v,m[I+1],12,-389564586),v=P(v,_,f,g,m[I+2],17,606105819),g=P(g,v,_,f,m[I+3],22,-1044525330),f=P(f,g,v,_,m[I+4],7,-176418897),_=P(_,f,g,v,m[I+5],12,1200080426),v=P(v,_,f,g,m[I+6],17,-1473231341),g=P(g,v,_,f,m[I+7],22,-45705983),f=P(f,g,v,_,m[I+8],7,1770035416),_=P(_,f,g,v,m[I+9],12,-1958414417),v=P(v,_,f,g,m[I+10],17,-42063),g=P(g,v,_,f,m[I+11],22,-1990404162),f=P(f,g,v,_,m[I+12],7,1804603682),_=P(_,f,g,v,m[I+13],12,-40341101),v=P(v,_,f,g,m[I+14],17,-1502002290),g=P(g,v,_,f,m[I+15],22,1236535329),f=A(f,g,v,_,m[I+1],5,-165796510),_=A(_,f,g,v,m[I+6],9,-1069501632),v=A(v,_,f,g,m[I+11],14,643717713),g=A(g,v,_,f,m[I+0],20,-373897302),f=A(f,g,v,_,m[I+5],5,-701558691),_=A(_,f,g,v,m[I+10],9,38016083),v=A(v,_,f,g,m[I+15],14,-660478335),g=A(g,v,_,f,m[I+4],20,-405537848),f=A(f,g,v,_,m[I+9],5,568446438),_=A(_,f,g,v,m[I+14],9,-1019803690),v=A(v,_,f,g,m[I+3],14,-187363961),g=A(g,v,_,f,m[I+8],20,1163531501),f=A(f,g,v,_,m[I+13],5,-1444681467),_=A(_,f,g,v,m[I+2],9,-51403784),v=A(v,_,f,g,m[I+7],14,1735328473),g=A(g,v,_,f,m[I+12],20,-1926607734),f=x(f,g,v,_,m[I+5],4,-378558),_=x(_,f,g,v,m[I+8],11,-2022574463),v=x(v,_,f,g,m[I+11],16,1839030562),g=x(g,v,_,f,m[I+14],23,-35309556),f=x(f,g,v,_,m[I+1],4,-1530992060),_=x(_,f,g,v,m[I+4],11,1272893353),v=x(v,_,f,g,m[I+7],16,-155497632),g=x(g,v,_,f,m[I+10],23,-1094730640),f=x(f,g,v,_,m[I+13],4,681279174),_=x(_,f,g,v,m[I+0],11,-358537222),v=x(v,_,f,g,m[I+3],16,-722521979),g=x(g,v,_,f,m[I+6],23,76029189),f=x(f,g,v,_,m[I+9],4,-640364487),_=x(_,f,g,v,m[I+12],11,-421815835),v=x(v,_,f,g,m[I+15],16,530742520),g=x(g,v,_,f,m[I+2],23,-995338651),f=k(f,g,v,_,m[I+0],6,-198630844),_=k(_,f,g,v,m[I+7],10,1126891415),v=k(v,_,f,g,m[I+14],15,-1416354905),g=k(g,v,_,f,m[I+5],21,-57434055),f=k(f,g,v,_,m[I+12],6,1700485571),_=k(_,f,g,v,m[I+3],10,-1894986606),v=k(v,_,f,g,m[I+10],15,-1051523),g=k(g,v,_,f,m[I+1],21,-2054922799),f=k(f,g,v,_,m[I+8],6,1873313359),_=k(_,f,g,v,m[I+15],10,-30611744),v=k(v,_,f,g,m[I+6],15,-1560198380),g=k(g,v,_,f,m[I+13],21,1309151649),f=k(f,g,v,_,m[I+4],6,-145523070),_=k(_,f,g,v,m[I+11],10,-1120210379),v=k(v,_,f,g,m[I+2],15,718787259),g=k(g,v,_,f,m[I+9],21,-343485551),f=f+d>>>0,g=g+y>>>0,v=v+S>>>0,_=_+w>>>0}return n.endian([f,g,v,_])};u._ff=function(c,h,p,m,b,f,g){var v=c+(h&p|~h&m)+(b>>>0)+g;return(v<<f|v>>>32-f)+h},u._gg=function(c,h,p,m,b,f,g){var v=c+(h&m|p&~m)+(b>>>0)+g;return(v<<f|v>>>32-f)+h},u._hh=function(c,h,p,m,b,f,g){var v=c+(h^p^m)+(b>>>0)+g;return(v<<f|v>>>32-f)+h},u._ii=function(c,h,p,m,b,f,g){var v=c+(p^(h|~m))+(b>>>0)+g;return(v<<f|v>>>32-f)+h},u._blocksize=16,u._digestsize=16,r.exports=function(c,h){if(c==null)throw new Error("Illegal argument "+c);var p=n.wordsToBytes(u(c,h));return h&&h.asBytes?p:h&&h.asString?l.bytesToString(p):n.bytesToHex(p)}})()}},__webpack_module_cache__={};(function(){__webpack_require__.d=function(r,t){for(var e in t)__webpack_require__.o(t,e)&&!__webpack_require__.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:t[e]})}})(),function(){__webpack_require__.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)}}(),function(){__webpack_require__.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})}}();var __webpack_exports__={};return function(){function r(f){return f&&f.__esModule?f:{default:f}}function t(f,g){if(!(f instanceof g))throw new TypeError("Cannot call a class as a function")}function e(f,g){for(var v=0;v<g.length;v++){var _=g[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(f,_.key,_)}}function n(f,g,v){return g&&e(f.prototype,g),v&&e(f,v),f}function s(f,g,v){return g in f?Object.defineProperty(f,g,{value:v,enumerable:!0,configurable:!0,writable:!0}):f[g]=v,f}var a=__webpack_exports__,l=__webpack_require__("./node_modules/@tencent/js-armor-loader/dist/runtime.js");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=r(__webpack_require__("./node_modules/jsencrypt/lib/index.js")),c=__webpack_require__("./utils.js"),h=r(__webpack_require__("./aes.js")),p=r(__webpack_require__("./node_modules/md5/md5.js")),m=function(){function f(){t(this,f),s(this,"handleWatermarkElementAdd",function(g){g.options.keep?g.waterMarkWillAdd||(g.waterMarkWillAdd=!0,setTimeout(function(){g.player&&g.player.el()&&g.player.el().appendChild(g.containerElement),g.waterMarkWillAdd=!1,g.isFirstShow=!1},1e3*(g.isFirstShow?g.ghostCycle.firstShow:g.ghostCycle.ghostOff))):g.player.$(".tcp-dynamic-watermark-container")?g.player.$(".tcp-dynamic-watermark-content")||g.containerElement.appendChild(g.markContentElement):g.player.el()&&g.player.el().appendChild(g.containerElement)})}return n(f,[{key:"base64ToHex",value:function(g){for(var v=atob(g),_="",I=0;I<v.length;I++){var P=v.charCodeAt(I).toString(16);_+=P.length===2?P:"0"+P}return _}},{key:"checkEnvironment",value:function(){return!(!Hls||!Hls.isSupported())}},{key:"checksum",value:function(g,v){return l.g(l.v(0,l.d(["PgQ0AjQDGDo+BTQCNAM0BC0DQQApCRpnGmUadBpSGmUacxpwGm8abhpzGmUaSBplGmEaZBplGnI2CRpYGi0aVhpvGmQaLRpDGmgaZRpjGmsacxp1Gm0uATAPDy0EQQAOASkJGmQaZRpmGmEadRpsGnQ2NUEADgIpCRpkGmUaYxpyGnkacBp0Gm82NS0ACRpvGnYaZRpyGmwaYRp5GksaZRp5GTU6AUEADgIpCRpkGmUaYxpyGnkacBp0Gm82NS0ACRpvGnYaZRpyGmwaYRp5Gkkadhk1OgEKQQMpCRp0GnIaaRptNi4ACjoBMA8PEAMe9Rj8Gg8QBBADFkIeDxgODzIDPwMtAxcJAAAwDw8dAw==",[7,263,253,258,256,261]]),[function(){return g===void 0?void 0:g},function(){return p===void 0?void 0:p},function(){return c===void 0?void 0:c},function(){return v===void 0?void 0:v}])).call(this)}},{key:"generatePlayCgiUrl",value:function(g,v){return l.g(l.v(0,l.d(["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",[7,1944,730,735,733,1319,933,1146,1147,1152,1150,1319,1497,1501,1499,1521,1522,1526,1524,1548,1549,1553,1551,1579,1580,1584,1582,1648,1612,1616,1614,1647,1650,1655,1653,1831]]),[function(){return c===void 0?void 0:c},function(){return u===void 0?void 0:u},function(){return typeof window>"u"?void 0:window},function(){return typeof RegExp>"u"?void 0:RegExp},function(){return g===void 0?void 0:g},function(){return v===void 0?void 0:v},function(){return p===void 0?void 0:p}])).call(this)}},{key:"generateKey",value:function(g){var v,_=new Uint8Array(g);if(this.overlayKey&&this.overlayIv){for(var I=[],P=[],A=0;A<16;A++){var x=this.overlayKey.substring(2*A,2*A+2),k=this.overlayIv.substring(2*A,2*A+2);I.push(parseInt(x,16)),P.push(parseInt(k,16))}v=new h.default.modeOfOperation.cbc(I,P).decrypt(_)}return v||_}},{key:"calculateGhost",value:function(g){var v,_=g/4;v=_<=15?g/2:_<=450?g/4:450;var I=v/4,P=v-I;return{firstShow:localStorage.getItem("ghostWatermarkFirstShow")||Math.random()*P+.01,ghostOn:I,ghostOff:P}}}],[{key:"elemManage",value:function(g){var v=this,_=this;g.on("dispose",function(){clearInterval(_.timer)}),this.timer=setInterval(function(){var I=document.querySelector(".safe-check-element");I&&I.style.display!=="none"||(clearInterval(v.timer),g.dispose())},5e3)}}]),f}(),b=m;a.default=b}(),__webpack_exports__=__webpack_exports__.default}()})}),Enc=unwrapExports(enc),strictUriEncode=function(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})},getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty$1=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable,objectAssign=shouldUseNative()?Object.assign:function(r,t){for(var e,n,s=toObject(r),a=1;a<arguments.length;a++){e=Object(arguments[a]);for(var l in e)hasOwnProperty$1.call(e,l)&&(s[l]=e[l]);if(getOwnPropertySymbols){n=getOwnPropertySymbols(e);for(var u=0;u<n.length;u++)propIsEnumerable.call(e,n[u])&&(s[n[u]]=e[n[u]])}}return s},token="%[a-f0-9]{2}",singleMatcher=new RegExp(token,"gi"),multiMatcher=new RegExp("("+token+")+","gi"),decodeUriComponent=function(r){if(typeof r!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof r+"`");try{return r=r.replace(/\+/g," "),decodeURIComponent(r)}catch{return customDecodeURIComponent(r)}},extract_1=extract,parse_1=parse,stringify=function(r,t){t=objectAssign({encode:!0,strict:!0,arrayFormat:"none"},t),t.sort===!1&&(t.sort=function(){});var e=encoderForArrayFormat(t);return r?Object.keys(r).sort(t.sort).map(function(n){var s=r[n];if(s===void 0)return"";if(s===null)return encode(n,t);if(Array.isArray(s)){var a=[];return s.slice().forEach(function(l){l!==void 0&&a.push(e(n,l,a.length))}),a.join("&")}return encode(n,t)+"="+encode(s,t)}).filter(function(n){return n.length>0}).join("&"):""},parseUrl$1=function(r,t){return{url:r.split("?")[0]||"",query:parse(extract(r),t)}},queryString={extract:extract_1,parse:parse_1,stringify,parseUrl:parseUrl$1},count=0,MediaAsyncLoader=function(r){function t(e,n,s){classCallCheck(this,t),log$2("MediaAsyncLoader initializing");var a=mergeOptions({createEl:!1},n),l=possibleConstructorReturn(this,r.call(this,e,a,s));l.enModule=new Enc;var u=a.playerOptions||a;return l.getInfo(u),e.loadVideoByID=bind(l,l.loadVideoByID),log$2("MediaAsyncLoader initialized"),l}return inherits(t,r),t.prototype.getInfo=function(e){e&&e.fileID&&e.appID&&(performance&&typeof performance.mark=="function"&&performance.mark("firstFrameStart"),e.playDefinition?this.getInfoV3(e):e.sign||e.ssign?this.getInfoV2(e):this.getInfoV4(e))},t.prototype.getInfoV2=function(e){var n=this.player(),s=this.assemblyPath("getplayinfo",e.appID,e.fileID),a=e.t,l=e.us,u=e.exper,c=e.sign,h={};e.ssign?h.super_sign=e.ssign:c&&(h={t:a,sign:c},(l||l==0)&&(h.us=l),(u||u==0)&&(h.exper=u,n.trigger({type:"feature",data:"exper"})),n.trigger({type:"feature",data:"key"})),e.playerID&&(h.playerid=e.playerID),this.requestTimestamp=+new Date().getTime(),n.trigger({type:"playcgistart",data:{time:this.requestTimestamp,url:s}}),log$2("playcgi loading");var p=queryString.stringify(h);p&&(s+=(~s.indexOf("?")?"&":"?")+p,s=s.replace("?&","?")),this.getInfoRetryTimes=0,this.getInfoRequest=function(m){m&&(s=s.replace(SERVER_PATH,SERVER_PATH_BACKUP)),IE_VERSION&&IE_VERSION<10?jsonp(s,{param:h,timeout:3e3,prefix:"TcCallBack"},bind(this,this.onResult)):xhr({url:s,timeout:3e3},bind(this,this.onResult))},this.getInfoRequest()},t.prototype.onResult=function(e,n,s){try{s?n=JSON.parse(s):e||n||(e=new Error("ServerError"))}catch{e=new Error("ServerError")}var a=this.player();if(e){if(log$2("playcgi loaded failure"),this.getInfoRetryTimes<3)return this.getInfoRetryTimes++,void this.getInfoRequest();if(this.getInfoRetryTimes<6)return this.getInfoRetryTimes++,void this.getInfoRequest({isBackup:!0});a.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:e,result:n}});var l=12;switch(e.message){case"XMLHttpRequest timeout":case"Timeout":l=10;break;case"ServerError":l=11}this.player().error({code:l})}else{if(a.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:e,result:n}}),n.code!=0)return log$2("playcgi loaded failure"),void this.player().error({code:n.code});log$2("playcgi loaded success");var u=n.coverInfo,c=n.videoInfo,h=n.playerInfo;this.setPoster(u),this.setLogo(h),this.setSrc(n),this.setPatch(h),this.setVttThumbnail(n),this.setDots(n),this.setOriginDuration(c),this.setPlayList(h)}},t.prototype.getInfoV3=function(e){var n=this.player(),s=this.assemblyPathV3("getplayinfo",e.appID,e.fileID,e.playDefinition),a=e.t,l=e.us,u=e.rlimit,c=e.sign,h={};e.ssign?h.super_sign=e.ssign:c&&(h={t:a,sign:c},(l||l==0)&&(h.us=l),u&&(h.rlimit=u),n.trigger({type:"feature",data:"key"})),e.playerID&&(h.playerid=e.playerID),this.requestTimestamp=+new Date().getTime(),n.trigger({type:"playcgistart",data:{time:this.requestTimestamp,url:s}}),log$2("playcgi v3 loading");var p=queryString.stringify(h);p&&(s+=(~s.indexOf("?")?"&":"?")+p,s=s.replace("?&","?")),this.getInfoRetryTimes=0,this.getInfoRequest=function(m){m&&(s=s.replace(SERVER_PATH_V3,SERVER_PATH_BACKUP)),IE_VERSION&&IE_VERSION<10?jsonp(s,{param:h,timeout:3e3,prefix:"TcCallBack"},bind(this,this.onResultV3)):xhr({url:s,timeout:3e3},bind(this,this.onResultV3))},this.getInfoRequest()},t.prototype.onResultV3=function(e,n,s){try{s?n=JSON.parse(s):e||n.body||(e=new Error("ServerError"))}catch{e=new Error("ServerError")}var a=this.player();if(e){if(log$2("playcgi v3 loaded failure"),this.getInfoRetryTimes<3)return this.getInfoRetryTimes++,void this.getInfoRequest();if(this.getInfoRetryTimes<6)return this.getInfoRetryTimes++,void this.getInfoRequest({isBackup:!0});a.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:e,result:n}});var l=12;switch(e.message){case"XMLHttpRequest timeout":case"Timeout":l=10;break;case"ServerError":l=11}this.player().error({code:l})}else{if(a.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:e,result:n}}),n.code!=0)return log$2("playcgi v3 loaded failure"),void this.player().error({code:n.code});log$2("playcgi v3 loaded success");var u=n.mediaInfo,c=n.playerInfo;this.setPoster({coverUrl:u.basicInfo.coverUrl}),this.setLogo(c),this.setSrcV3(u),this.setPatch(c),this.setVttThumbnail(u),this.setDots(u)}},t.prototype.setSrcV3=function(e,n){var s=this,a=this.player(),l=a.options_.plugins,u=a.DRM().options||l.DRM,c=void 0,h=void 0,p=void 0,m=[],b={},f={};if(n=n||(u?u.skipPlan:""),e.previewStreamingInfo&&e.previewStreamingInfo.previewStreamingList.length>0)e.previewStreamingInfo.previewStreamingList.forEach(function(_,I){_.mineType=s.getMIMEType(_.url),b[getFileExtension(_.url)]=_});else{if(!(e.dynamicStreamingInfo.adaptiveStreamingInfoList&&e.dynamicStreamingInfo.adaptiveStreamingInfoList.length>0))return void this.player().error({code:13,message:"no video stream"});if(e.dynamicStreamingInfo.adaptiveStreamingInfoList.forEach(function(_,I){_.mineType=s.getMIMEType(_.url),f[_.drmType.toLowerCase()||getFileExtension(_.url)]=_}),u&&u.token?(c=u.token,p=u.certificateUri,n=IS_SAFARI&&!p?"fairplay":n,h=window_1.encodeURIComponent(c)):n="all",(IS_CHROME||IS_FIREFOX)&&window_1.navigator.requestMediaKeySystemAccess&&f.widevine&&n!="widevine"&&n!="all"?(m.push({src:unifyProtocol(f.widevine.url),type:this.getMIMEType(f.widevine.url),keySystems:{"com.widevine.alpha":{serverURL:LICENSE_PATH+"?token="+h+"&drmType="+f.widevine.drmType}}}),log$2("DRM source widevine",m)):IS_SAFARI&&!IS_MQQB&&f.fairplay&&n!="fairplay"&&n!="all"&&(m.push({src:unifyProtocol(f.fairplay.url),type:this.getMIMEType(f.fairplay.url),keySystems:{"com.apple.fps.1_0":{certificateUri:p,licenseUri:LICENSE_PATH+"?token="+h+"&drmType="+f.fairplay.drmType}}}),log$2("DRM source fairplay",m)),f.simpleaes&&n!="all"){var g=f.simpleaes.url.split("/");g[g.length-1]="voddrm.token."+h+"."+g[g.length-1],m.push({src:unifyProtocol(g.join("/")),type:this.getMIMEType(f.simpleaes.url)}),log$2("DRM source simpleaes",m)}f.m3u8&&m.push({src:unifyProtocol(f.m3u8.url),type:this.getMIMEType(f.m3u8.url)}),f.mpd&&m.push({src:unifyProtocol(f.mpd.url),type:this.getMIMEType(f.mpd.url)})}if(!(m.length>0))return void this.player().error({code:4});a.src(m);var v=function(_){return log$2("DRM init Error",m),_.data.code!==5&&_.data.code!==2||!m[0].keySystems["com.widevine.alpha"]?_.data.code===3&&m[0].keySystems["com.apple.fps.1_0"]?void s.setSrcV3(e,"fairplay"):_.data.code===14||_.data.code===3?void s.setSrcV3(e,"all"):void 0:void s.setSrcV3(e,"widevine")};n!=="all"&&(window_1.setTimeout(function(){a.one("error",v)},0),a.one("playing",function(_){}))},t.prototype.getInfoV4=function(e){var n=this.player(),s=this.assemblyPathV4("getplayinfo",e.appID,e.fileID),a=e.t,l=e.us,u=e.rlimit,c=e.psign,h=e.exper,p={};e.ssign?p.super_sign=e.ssign:c&&(p={t:a,psign:c},(l||l==0)&&(p.us=l),u&&(p.rlimit=u),h&&(p.exper=h)),e.playerConfig&&(p.pcfg=e.playerConfig),e.playerID&&(p.playerid=e.playerID),this.requestTimestamp=+new Date().getTime(),n.trigger({type:"playcgistart",data:{time:this.requestTimestamp,url:s}}),log$2("playcgi v4 loading");var m=queryString.stringify(p);m?(s+=(~s.indexOf("?")?"&":"?")+m,s=s.replace("?&","?")):s+=~s.indexOf("?")?"":"?",s=this.enModule.generatePlayCgiUrl(s,browser),this.getInfoRetryTimes=0,this.getInfoRequest=function(b){b&&(s=s.replace(SERVER_PATH_V4,SERVER_PATH_BACKUP)),IE_VERSION&&IE_VERSION<10?jsonp(s,{param:p,timeout:3e3,prefix:"TcCallBack"},bind(this,this.onResultV4)):xhr({url:s,timeout:3e3},bind(this,this.onResultV4))},this.getInfoRequest()},t.prototype.onResultV4=function(e,n,s){var a=n,l=a.rawRequest;try{s?n=JSON.parse(s):e||n.body||(e=new Error("ServerError"))}catch{e=new Error("ServerError")}var u=this.player();if(e){if(log$2("playcgi v4 loaded failure"),this.getInfoRetryTimes<3)return this.getInfoRetryTimes++,void this.getInfoRequest();if(this.getInfoRetryTimes<6)return this.getInfoRetryTimes++,void this.getInfoRequest({isBackup:!0});u.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:e,result:n}});var c=12;switch(e.message){case"XMLHttpRequest timeout":case"Timeout":c=10;break;case"ServerError":c=11}this.player().error({code:c})}else{if(u.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:e,result:n}}),n.code!=0){if(log$2("playcgi v4 loaded failure"),n.code>=2e3&&n.code<3e3){if(this.getInfoRetryTimes<3)return this.getInfoRetryTimes++,void this.getInfoRequest();if(this.getInfoRetryTimes<6)return this.getInfoRetryTimes++,void this.getInfoRequest({isBackup:!0})}return void this.player().error({code:n.code})}if(log$2("playcgi v4 loaded success",n),!this.enModule.checksum(l,s))return this.player().error({code:1012}),!1;if(n.version===4){var h=n.media;this.setPoster({coverUrl:h.basicInfo.coverUrl}),this.setSrcV4(h),this.setVttThumbnailV4(h),this.setDots(h),this.setOriginDurationV4(h),this.setGhostContent(h.ghostWatermarkInfo)}else if(n.version===2){var p=n.coverInfo,m=n.videoInfo,b=n.playerInfo;this.setPoster(p),this.setLogo(b),this.setSrc(n),this.setPatch(b),this.setVttThumbnail(n),this.setDots(n),this.setOriginDuration(m)}}},t.prototype.setSrcV4=function(e,n){var s=this,a=this.player(),l=a.options_,u=void 0,c=a.options_.plugins,h=a.DRM().options||c.DRM,p=[],m="plain";n=n||(h?h.skipPlan:"");var b=[],f=[];if(e.audioVideoType==="Original"||e.audioVideoType==="Transcode")return this.setSrc(e),!1;if(!e.streamingInfo)return void this.player().error({code:13,message:"no stream info"});if(e.streamingInfo){if(e.streamingInfo.drmOutput&&Array.isArray(e.streamingInfo.drmOutput)){for(var g=e.streamingInfo.drmOutput,v=0;v<g.length;v++)f.push(g[v].type);if(IS_ANY_SAFARI&&!IS_MQQB&&f.indexOf("FairPlay")!==-1&&n!="fairplay"&&n!="all"){var _=f.indexOf("FairPlay"),I=g[_].subStreams;p.push(I),b.push({src:unifyProtocol(g[_].url),type:this.getMIMEType(g[_].url),qualityLabelList:I,keySystems:{"com.apple.fps.1_0":{certificateUri:e.streamingInfo.fairPlayCertificateUrl||(h||{}).certificateUri,licenseUri:e.streamingInfo.fairplayLicenseUrl}}}),log$2("DRM source fairplay",u)}else if(window_1.navigator.requestMediaKeySystemAccess&&f.indexOf("Widevine")!==-1&&!IS_SAFARI&&n!=="widevine"&&n!=="all"){var P=f.indexOf("Widevine"),A=g[P].subStreams,x=A[A.length-1];(x.type==="audio"||x.width===0&&x.height===0)&&A.pop(),p.push(A),b.push({src:unifyProtocol(g[P].url),type:this.getMIMEType(g[P].url),qualityLabelList:A,keySystems:{"com.widevine.alpha":{serverURL:e.streamingInfo.widevineLicenseUrl}}}),log$2("DRM source widevine",u)}if(f.indexOf("SimpleAES")!==-1&&n!="all"){var k,d=f.indexOf("SimpleAES");m="SimpleAES";var y=g[d].url.split("/");y[y.length-1]="voddrm.token."+e.streamingInfo.drmToken+"."+y[y.length-1],u=y.join("/");var S=g[d].subStreams;p.push(g[d].subStreams),u&&b.push({src:unifyProtocol(u),type:EXT_MIME.m3u8,qualityLabelList:S,keySystems:(k={},k[m]={},k)})}}else if(e.streamingInfo.plainOutput){var w;u=e.streamingInfo.plainOutput.url;var D=e.streamingInfo.plainOutput.subStreams;p.push(e.streamingInfo.plainOutput.subStreams),u&&b.push({src:unifyProtocol(u),type:EXT_MIME.m3u8,qualityLabelList:D,keySystems:(w={},w[m]={},w)})}this.setHlsConfig(l,p[0],!1),b.length>0?a.src(b):f.length!==0?!n&&this.player().error({code:18}):this.player().error({code:13,message:"no stream info"}),this.setQualityLabelList(p[0])}var M=function(j){return log$2("DRM init Error",b),b[0].keySystems["com.widevine.alpha"]?void s.setSrcV4(e,"widevine"):b[0].keySystems["com.apple.fps.1_0"]?void s.setSrcV4(e,"fairplay"):j.data.code===14||j.data.code===3?void s.setSrcV4(e,"all"):void 0};n!=="all"&&window_1.setTimeout(function(){a.one("error",M)},0)},t.prototype.setHlsConfig=function(e,n,s){var a={};!IS_ENABLED_MSE||IS_TBS||IS_MQQB||IS_SAFARI||IE_VERSION&&IE_VERSION<11||(a={overlayKey:this.enModule&&this.enModule.overlayKey,overlayIv:this.enModule&&this.enModule.overlayIv}),e.hlsConfig?(e.hlsConfig.qualityLabelList=n,e.hlsConfig.startLevel||(e.hlsConfig.startLevel=n?n.length-1:5)):e.hlsConfig={qualityLabelList:n,startLevel:n?n.length-1:5},Object.assign(e.hlsConfig,a,{forbid:s})},t.prototype.setQualityLabelList=function(e){this.player().QualitySwitcher().setOptions({qualityLabelList:{video:e}})},t.prototype.setLogo=function(e){var n=this.player();e.logoPic?(n.logoImage.update({img:{url:unifyProtocol(e.logoPic),position:e.logoLocation},link:unifyProtocol(e.logoUrl)}),n.trigger({type:"feature",data:"logo"})):n.logoImage.reset()},t.prototype.setPoster=function(e){var n=this.player();e&&e.coverUrl?n.poster(unifyProtocol(e.coverUrl)):n.options_.playerOptions.poster||n.poster("")},t.prototype.setDots=function(e){var n=this.player();if(n.options_.dots=null,e.keyFrameDescInfo&&e.keyFrameDescInfo.keyFrameDescList&&e.keyFrameDescInfo.keyFrameDescList.length>0){var s=e.keyFrameDescInfo.keyFrameDescList;n.options_.dots=s}var a=n.options_.plugins;a&&a.ProgressMarker&&a.ProgressMarker.markers&&a.ProgressMarker.markers.length>0&&(n.options_.dots=n.options_.dots.concat(a.ProgressMarker.markers)),n.ProgressMarker().init()},t.prototype.setSrc=function(e){var n=this.player(),s=e.videoInfo||{};if(e.audioVideoType==="Original"&&(s.sourceVideo=e.originalInfo),e.audioVideoType==="Transcode"&&(s.sourceVideo=e.transcodeInfo),(n.options_.definition!=null||n.options_.definition!=null)&&s.transcodeList&&s.transcodeList.length>0){n.trigger({type:"feature",data:"definition"});var a=this.getSrcByDefinition(s,n.options_.definition);if(a)return n.src({src:unifyProtocol(a.url),type:this.getMIMEType(a.url)}),!0}if(n.MultiResolution().reset(),s.masterPlayList){n.src(this.getMasterSouces(s));var l=n.options_.hlsConfig;l?l.forbid=!0:Object.assign(n.options_,{hlsConfig:{forbid:!0}}),this.setQualityLabelList([]),n.MultiResolution().store(this.getMultiResolutionData(e))}else if(s.transcodeList&&s.transcodeList.length>0){var u=this.getMultiResolutionData(e);if(u.showOrder.length>0)n.MultiResolution().init(u);else{var c=s.transcodeList[0].url;n.src({src:unifyProtocol(c),type:this.getMIMEType(c)})}}else s.sourceVideo&&this.getMIMEType(s.sourceVideo.url)?n.src({src:unifyProtocol(s.sourceVideo.url),type:this.getMIMEType(s.sourceVideo.url)}):this.player().error({code:13})},t.prototype.setPatch=function(e){var n=this.player();e.patchInfo?n.ImagePatch().init(e.patchInfo):n.ImagePatch().reset()},t.prototype.setVttThumbnail=function(e){var n=this.player();e.imageSpriteInfo&&e.imageSpriteInfo.imageSpriteList?n.ready(bind(this,function(){n.VttThumbnail().init({vttUrl:unifyProtocol(e.imageSpriteInfo.imageSpriteList[0].webVttUrl)})})):n.VttThumbnail().reset()},t.prototype.setVttThumbnailV4=function(e){var n=this.player();e.imageSpriteInfo&&e.imageSpriteInfo.webVttUrl?n.ready(bind(this,function(){n.VttThumbnail().init({vttUrl:unifyProtocol(e.imageSpriteInfo.webVttUrl)})})):n.VttThumbnail().reset()},t.prototype.setOriginDuration=function(e){var n=this.player();if(n.options_.exper>0){var s=e.sourceVideo?e.sourceVideo.floatDuration:e.transcodeList[0].floatDuration;n.one("play",function(){n.duration(s)})}},t.prototype.setOriginDurationV4=function(e){var n=this,s=this.player();s.cache_.originDuration=e.basicInfo.duration,s.off("durationchange",this.keepOriginDuration),s.one("durationchange",function(a){(!s.duration()||s.duration()>0&&Math.floor(s.cache_.originDuration)!==Math.floor(s.duration()))&&(n.keepOriginDuration(a),s.on("durationchange",n.keepOriginDuration))})},t.prototype.setGhostContent=function(e){if(e){var n=this.player(),s=n&&n.DynamicWatermark();s.options.content=e.text,s.options.keep=!0,s.init()}},t.prototype.keepOriginDuration=function(e){var n=this.player(),s=n.cache_.originDuration;Math.floor(s)!==Math.floor(n.duration())&&(log$2("试看视频"),n.duration(Math.round(s)))},t.prototype.getMasterSouces=function(e){var n=e.masterPlayList,s=[];return s.push({src:unifyProtocol(n.url),type:EXT_MIME.m3u8}),s},t.prototype.getMultiResolutionData=function(e){var n={sources:{},labels:{},showOrder:[],defaultRes:""},s=[],a=e.videoInfo.transcodeList,l=this;return e.playerInfo.videoClassification.forEach(function(u,c){a.length>0&&(a=a.filter(function(h){if(!(u.definitionList.indexOf(h.definition)>-1))return!0;s[u.id]||(n.showOrder.push(u.id),n.labels[u.id]=u.name,s[u.id]=[]),s[u.id].push({src:unifyProtocol(h.url),type:l.getMIMEType(h.url)})}))}),n.sources=s,n.defaultRes=e.playerInfo.defaultVideoClassification||Object.keys(s)[0],n},t.prototype.getSrcByDefinition=function(e,n){var s=e.transcodeList,a=e.sourceVideo;if(n==0)return a;for(var l=0;l<s.length;l++)if(s[l].definition==n)return s[l]},t.prototype.getMIMEType=function(e){var n=EXT_MIME[getFileExtension(e)];return n||(log$2.error("MIME type no found! Ext = "+getFileExtension(e)),"")},t.prototype.assemblyPath=function(e,n,s){var a=window_1.location.protocol;return a!="http:"&&a!="https:"&&(a="https:"),""+a+SERVER_PATH+"/"+e+"/v2/"+n+"/"+s},t.prototype.assemblyPathV3=function(e,n,s,a){var l=window_1.location.protocol;return l!="http:"&&l!="https:"&&(l="https:"),""+l+SERVER_PATH_V3+"/"+e+"/v3/"+n+"/"+s+"/"+a},t.prototype.assemblyPathV4=function(e,n,s){var a=window_1.location.protocol;return a!="http:"&&a!="https:"&&(a="https:"),""+a+SERVER_PATH_V4+"/"+e+"/v4/"+n+"/"+s},t.prototype.customHost=function(e){var n=this.player();n.options_.customHost&&/^(?=^.{3,255}$)[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+$/.test(n.options_.customHost)&&(e.masterPlayList&&(e.masterPlayList.url=replaceHost(e.masterPlayList.url,n.options_.customHost)),e.sourceVideo&&(e.sourceVideo.url=replaceHost(e.sourceVideo.url,n.options_.customHost)),e.transcodeList.length>0&&e.transcodeList.forEach(function(s,a){s.url=replaceHost(s.url,n.options_.customHost)}),n.trigger({type:"feature",data:"customHost"}))},t.prototype.loadVideoByID=function(e){var n=this.player();n.trigger({type:"loadnewvideo"}),n.hasStarted(!1),this.getInfo(e),n.duration(0),n.playbackRate(1),n.options_.appID=e.appID,n.options_.fileID=e.fileID,n.options_.psign=e.psign,e.definition&&(n.options_.definition=e.definition),n.bigPlayButton&&n.bigPlayButton.show(),n.options_.plugins.ContinuePlay&&n.ContinuePlay().init()},t.prototype.setPlayList=function(e){this.player().options_.plugins.PlayList||e.playlist&&e.playlist.data instanceof Array&&e.playlist.data.length>0&&this.player_.PlayList(e.playlist)},t}(Component);Component.registerComponent("MediaAsyncLoader",MediaAsyncLoader),videojs.getComponent("Component");var ClickableComponent$2=videojs.getComponent("ClickableComponent"),positionMap=["left-top","left-bottom","right-top","right-bottom"],LogoImage=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return e.on("logochange",videojs.bind(s,function(a){this.update(a.data)})),n.img&&s.update(n),s}return inherits(t,r),t.prototype.createEl=function(){var e=videojs.dom.createEl("div",{className:"tcp-logo vjs-hidden"}),n=videojs.dom.createEl("a",{className:"tcp-logo-link",target:"_blank"}),s=videojs.dom.createEl("img",{className:"tcp-logo-img"});return this.linkEl_=n,this.imgEl_=s,n.appendChild(s),e.appendChild(n),e},t.prototype.update=function(e){var n=e.img,s=e.link;this.setImg(n),this.setHref(s),this.options_=videojs.mergeOptions(this.options_,e),this.show()},t.prototype.setImg=function(e){if(this.imgEl_){this.imgEl_.src=e.url;var n=positionMap[e.position]||e.position||"left-top";videojs.dom.addClass(this.el_,n)}},t.prototype.setHref=function(e){this.linkEl_&&e&&(this.linkEl_.href=e)},t.prototype.reset=function(){this.hide(),this.imgEl_.removeAttribute("src"),this.linkEl_.removeAttribute("href")},t}(ClickableComponent$2);videojs.registerComponent("LogoImage",LogoImage);var Component$3=videojs.getComponent("Component"),Button$2=videojs.getComponent("Button"),ContinuePlayTips=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.init(n),s}return inherits(t,r),t.prototype.createEl=function(){return videojs.dom.createEl("div",{className:"tcp-continue-play-tips"})},t.prototype.close=function(){this.hide()},t.prototype.init=function(e){var n=this.addChild("closeButton",{controlText:"Close"});this.on(n,"close",this.close),this.addChild("ContinuePlayTipsContent",e);var s=this.addChild("ContinuePlayButton",e);this.on(s,["tap","click"],this.close),this.setTimeout(function(){this.close()},3500)},t}(Component$3);videojs.registerComponent("ContinuePlayTips",ContinuePlayTips);var ContinuePlayTipsContent=function(r){function t(e,n){return classCallCheck(this,t),possibleConstructorReturn(this,r.call(this,e,n))}return inherits(t,r),t.prototype.createEl=function(){var e=videojs.dom.createEl("span",{className:"tcp-continue-play-tips-content"}),n=videojs.dom.createEl("span",{className:"tcp-text",textContent:this.localize(this.options_.text||"Last time play at ")}),s=videojs.dom.createEl("span",{className:"tcp-time",textContent:videojs.formatTime(this.options_.time)});return this.textEl_=n,this.timeEl_=s,e.appendChild(n),e.appendChild(s),e},t}(Component$3);videojs.registerComponent("ContinuePlayTipsContent",ContinuePlayTipsContent);var ContinuePlayButton=function(r){function t(e,n){return classCallCheck(this,t),possibleConstructorReturn(this,r.call(this,e,n))}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"button",{className:"tcp-continue-play-buttom",textContent:this.localize(this.options_.btnText||"Resume play")})},t.prototype.handleClick=function(){this.options_.resumeCallback.call()},t}(Button$2);videojs.registerComponent("ContinuePlayButton",ContinuePlayButton);var Component$4=videojs.getComponent("Component"),LevelSwitchTips=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.playing=!1,s.timeoutID=void 0,s.levelSwitch=e.options_.plugins.ContextMenu.levelSwitch,s.init(),e.on("playing",videojs.bind(s,function(){s.playing=!0})),e.on("resolutionswitching",videojs.bind(s,function(a){if(s.playing)if(a.data.label)s.switchHandler(s.createSwitching(a.data.label),2e3);else{var l=s.player().QualitySwitcher().options.qualityData;if(l){var u=l.video.filter(function(c){return a.data.newQuality===c.id})[0];s.switchHandler(s.createSwitching(u.label),2e3)}}})),e.on("resolutionswitched",videojs.bind(s,function(){s.playing&&s.switchHandler(s.createSwitched(),2e3)})),e.on("levelSwitchError",videojs.bind(s,function(){s.switchHandler(s.createSwitchError(),2e3)})),s}return inherits(t,r),t.prototype.switchHandler=function(e,n){var s=this;this.timeoutID&&clearTimeout(this.timeoutID),this.textNode.innerText=e,this.show(),this.timeoutID=setTimeout(function(){s.hide()},n)},t.prototype.createEl=function(){var e=videojs.dom.createEl("div",{className:"tcp-switch vjs-hidden"});return this.textNode=videojs.dom.createEl("div",{innerText:""}),e.appendChild(this.textNode),e},t.prototype.init=function(){var e=this.addChild("closeButton",{controlText:"Close"});this.on(e,"close",this.hide)},t.prototype.createSwitching=function(e){return this.levelSwitch.switchingText?this.levelSwitch.switchingText+e:"正在为您切换至"+e},t.prototype.createSwitched=function(){return this.levelSwitch.switchedText?this.levelSwitch.switchedText:"切换成功"},t.prototype.createSwitchError=function(){return this.levelSwitch.switchErrorText?this.levelSwitch.switchErrorText:"切换失败"},t.prototype.show=function(){r.prototype.show.call(this),this.popped=!0},t.prototype.hide=function(){r.prototype.hide.call(this),this.popped=!1},t}(Component$4);videojs.registerComponent("LevelSwitchTips",LevelSwitchTips);var Component$7=videojs.getComponent("Component"),mapKey={fileID:"file ID",requestID:"request ID",mediaType:"media type",mimeType:"mime type",provider:"provider",resolution:"resolution",rate:"rate",frames:"frames",buffer:"buffer",connectionSpeed:"connection speed",info:"info"},VideoTextItem=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.display=!1,s.displayData="loading",s}return inherits(t,r),t.prototype.createEl=function(){var e=videojs.dom.createEl("div",{className:"tcp-statistic-line vjs-hidden"}),n=videojs.dom.createEl("span",{className:"tcp-statistic-title",innerText:mapKey[this.options_.key]+":"}),s=videojs.dom.createEl("span",{className:"tcp-statistic-data",innerText:this.options_.data});return e.appendChild(n),e.appendChild(s),e},t.prototype.updateTextNode_=function(){for(var e=this.el_.lastChild;e.firstChild;)e.removeChild(e.firstChild);this.displayData&&this.show(),this.textNode_=document_1.createTextNode(this.displayData||""),e.appendChild(this.textNode_)},t.prototype.updateContent=function(e){e!==this.displayData&&(this.displayData=e,this.requestAnimationFrame(this.updateTextNode_))},t.prototype.isDisplay=function(){return this.display},t.prototype.show=function(){r.prototype.show.call(this),this.display=!0,this.popped=!0},t.prototype.hide=function(){r.prototype.hide.call(this),this.display=!1,this.popped=!1},t.prototype.reset=function(){r.prototype.hide.call(this),this.display=!1,this.displayData=""},t}(Component$7);videojs.registerComponent("VideoTextItem",VideoTextItem);var defaultConfig={enableRecoverMediaError:!0,recoverMediaErrorMaxRetry:5,fragLoadingMaxRetry:3},Html5HlsJS=function(){function r(t,e,n){var s=this;classCallCheck(this,r);var a={};t.keySystems&&t.keySystems["com.widevine.alpha"]&&t.keySystems["com.widevine.alpha"].serverURL?(n.hlsConfig.widevineLicenseUrl=t.keySystems["com.widevine.alpha"].serverURL,n.hlsConfig.enableWorker=!0,n.hlsConfig.emeEnabled=!0,n.hlsConfig.startLevel=(n.hlsConfig.qualityLabelList||[]).length-1,a=n.hlsConfig):a=e.player_.options_.hlsConfig||n.hlsConfig||{},a.forbid&&(delete a.overlayKey,delete a.overlayIv),this.drmBackup=n.hlsConfig&&n.hlsConfig.drmBackup;var l=function(){var u=window.Hls,c=new u(videojs.mergeOptions(defaultConfig,a)),h=e.el();s.Hls=u,s.tech=e,s.hls=c,s.switchStatus="",s.manifests=[],s.subtitlesLoadedCount=0,s.audioTrackLoadedCount=0,s.subtitles=[],s.audioTracks=[],s.hlsjsErrorHandler=s.errorHandlerFactory(),c.on(u.Events.ERROR,s.onError.bind(s)),c.on(u.Events.MANIFEST_PARSED,videojs.bind(s,s.onMetaData)),c.on(u.Events.MANIFEST_LOADED,s.loadSubtiles.bind(s)),c.on(u.Events.MANIFEST_LOADED,s.loadAudioTracks.bind(s)),c.on(u.Events.LEVEL_LOADED,s.onLevelLoaded.bind(s));var p=s.tech.player();p.on("ready",s.addHlsSubtitles.bind(s));for(var m in u.Events)c.on(u.Events[m],videojs.bind(s,s.onEvent));c.attachMedia(h),c.loadSource(t.src),window.Hls&&n.xp2pConfig&&n.xp2pConfig.useXP2P&&p.XP2PHlsjsPlugin&&p.XP2PHlsjsPlugin().startHLSP2P(s.hls,window.HLSP2P,function(b){})};Promise.all([function(){return n.xp2pConfig&&n.xp2pConfig.useXP2P&&n.xp2pConfig.format==="hls"&&!window.HLSP2P?new Promise(function(u){loadScript(XP2P_HLS_PATH,function(){u()})}):Promise.resolve()}(),function(){return window.Hls?Promise.resolve():new Promise(function(u){loadScript(HLS_PATH,function(){u()})})}()]).then(function(){l()})}return r.prototype.switchQuality=function(t){t.id!=this.hls.currentLevel&&(this.switchStatus="switching",this.switchData=t,this.tech.trigger({type:"hlsresolutionswitching",data:this.switchData}),this.hls.nextLevel=t.id)},r.prototype.dispose=function(){this.hls.destroy()},r.prototype.onSubtitleLoaded=function(t,e){var n=this,s=this.tech.player(),a=this.subtitlesLoadedCount,l=this.hls.subtitleTracks;this.subtitles[a].url=e.details.fragments[0].url,++this.subtitlesLoadedCount<l.length?this.hls.trigger(this.Hls.Events.SUBTITLE_TRACK_LOADING,{url:l[this.subtitlesLoadedCount].url,id:l[this.subtitlesLoadedCount].id}):s.ready(function(){n.addHlsSubtitles()})},r.prototype.onAudioTrackLoaded=function(t,e){var n=this,s=this.tech.player(),a=this.audioTrackLoadedCount,l=this.hls.audioTracks;this.audioTracks[a].url=e.details.fragments[0].url,++this.audioTrackLoadedCount<l.length?this.hls.trigger(this.Hls.Events.AUDIO_TRACK_LOADING,{url:l[this.audioTrackLoadedCount].url,id:l[this.audioTrackLoadedCount].id}):s.ready(function(){n.addAudioTracks()})},r.prototype.loadAudioTracks=function(){var t=this,e=this.hls.audioTracks;if(e.length){e.forEach(function(s){t.audioTracks.push({id:s.id,name:s.name,lang:s.lang,loaded:!1,default:s.default})});var n=e[0];this.hls.trigger(this.Hls.Events.AUDIO_TRACK_LOADING,{url:n.url,id:n.id}),this.hls.on(this.Hls.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded.bind(this))}},r.prototype.loadSubtiles=function(){var t=this,e=this.hls.subtitleTracks;if(e.length){e.forEach(function(s){t.subtitles.push({name:s.name,lang:s.lang,loaded:!1})});var n=e[0];this.hls.on(this.Hls.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleLoaded.bind(this)),this.hls.trigger(this.Hls.Events.SUBTITLE_TRACK_LOADING,{url:n.url,id:n.id})}},r.prototype.addAudioTracks=function(){var t=this;this.audioTracks.length&&this.audioTracks.some(function(e){return!e.loaded})&&this.audioTracks.forEach(function(e){var n=t.tech.addAudioTrack({id:e.id,src:e.url,kind:"audio",srclang:e.lang,label:e.name,enabled:e.default},!0);n.addEventListener("load",function(){e.loaded=!0})})},r.prototype.addHlsSubtitles=function(){var t=this;this.subtitles.length&&this.subtitles.some(function(e){return!e.loaded})&&this.subtitles.forEach(function(e){var n=t.tech.addRemoteTextTrack({src:e.url,kind:"subtitles",srclang:e.lang,label:e.name},!0);n.addEventListener("load",function(){e.loaded=!0})})},r.prototype.onEvent=function(t,e){this.tech.trigger({type:t,data:e});var n=this.tech.player();switch(t){case this.Hls.Events.MANIFEST_LOADED:this.manifests.push(e.networkDetails.response||e.networkDetails.responseText);break;case this.Hls.Events.LEVEL_SWITCHING:break;case this.Hls.Events.LEVEL_SWITCHED:this.switchStatus=="switching"&&(this.switchStatus="switched",this.tech.trigger({type:"hlsresolutionswitched",data:this.switchData}),this.switchData=null);break;case this.Hls.Events.LEVEL_SWITCH_ERROR:n.trigger({type:"levelSwitchError"})}},r.prototype.onMetaData=function(t,e){var n=[],s=this.hls,a=this;if(e.levels.length>1){var l={id:-1,label:"auto",selected:s.manualLevel===-1};n.push(l),e.levels.forEach(function(c,h){var p={};p.id=h,p.selected=h===s.manualLevel,p.label=a.getLevelLabel(c),n.push(p)});var u={qualityData:{video:n},callbacks:{video:videojs.bind(this,this.switchQuality)}};this.tech.setTimeout(function(){this.trigger({type:"masterplaylistchange",data:u})},1)}},r.prototype.getLevelLabel=function(t){return t.height?t.height+"p":t.width?Math.round(9*t.width/16)+"p":t.bitrate?t.bitrate/1e3+"kbps":0},r.prototype.onLevelLoaded=function(t,e){this._duration=e.details.live?1/0:e.details.totalduration},r.prototype.onError=function(t,e){var n=this.tech.player();if(e.fatal)switch(e.type){case this.Hls.ErrorTypes.NETWORK_ERROR:n.error({code:14,source:e});break;case this.Hls.ErrorTypes.MEDIA_ERROR:this.hls.config.enableRecoverMediaError?this.hlsjsErrorHandler(e):n.error({code:15,source:e});break;case this.Hls.ErrorTypes.MUX_ERROR:n.error({code:16,source:e});break;case this.Hls.ErrorTypes.OTHER_ERROR:default:n.error({code:17,source:e}),this.drmBackup&&e.type==="keySystemError"&&n.error(null)}else switch(e.details){case this.Hls.ErrorDetails.KEY_LOAD_ERROR:}},r.prototype.errorHandlerFactory=function(){var t=this.hls,e=this.tech.player(),n=null,s=null,a=0;return function(l){var u=Date.now();a==t.config.recoverMediaErrorMaxRetry?e.error({code:15,source:l}):(!n||u-n>2e3?(n=u,t.recoverMediaError()):(!s||u-s>2e3)&&(s=u,t.swapAudioCodec(),t.recoverMediaError()),a++)}},r.prototype.duration=function(){return this._duration},r}(),hlsTypeRE=/^application\/(x-mpegURL|vnd\.apple\.mpegURL)$/i,hlsExtRE=/.m3u8(?![^?])/i,HlsSourceHandler={name:"hlsSourceHandler",canHandleSource:function(r){return r.skipHlsJs||r.keySystems&&r.keySystems["com.apple.fps.1_0"]?"":hlsTypeRE.test(r.type)&&hlsExtRE.test(r.src)?"probably":hlsExtRE.test(r.src)?"maybe":""},handleSource:function(r,t,e){return t.hlsProvider?(t.hlsProvider.dispose(),t.hlsProvider=null):e.hlsConfig&&e.hlsConfig.autoStartLoad===!1&&t.on("play",function(){this.player().hasStarted()||this.hlsProvider.hls.startLoad()}),t.hlsProvider=new Html5HlsJS(r,t,e),t.hlsProvider},canPlayType:function(r){return hlsTypeRE.test(r)?"probably":""}};TCPlayer.mountHlsProvider=mountHlsProvider,mountHlsProvider();var Html5DashJS=function(){function r(t,e,n){var s=this;classCallCheck(this,r);var a=function(){var l=window_1.dashjs;if(s.dashjs=l,n=n||e.options_,s.player=videojs(n.playerId),s.player.dash=s.player.dash||{},s.tech_=e,s.el_=e.el(),s.elParent_=s.el_.parentNode,s.hasFiniteDuration_=!1,t.src){e.isReady_=!1,r.updateSourceData&&(videojs.log.warn('updateSourceData has been deprecated. Please switch to using hook("updatesource", callback).'),t=r.updateSourceData(t)),r.hooks("updatesource").forEach(function(c){t=c(t)});var u=t.src;s.keySystemOptions_=r.buildDashJSProtData(t.keySystemOptions||t.keySystems),s.player.dash.mediaPlayer=l.MediaPlayer().create(),s.mediaPlayer_=s.player.dash.mediaPlayer,r.useVideoJSDebug&&(videojs.log.warn('useVideoJSDebug has been deprecated. Please switch to using hook("beforeinitialize", callback).'),r.useVideoJSDebug(s.mediaPlayer_)),r.beforeInitialize&&(videojs.log.warn('beforeInitialize has been deprecated. Please switch to using hook("beforeinitialize", callback).'),r.beforeInitialize(s.player,s.mediaPlayer_)),r.hooks("beforeinitialize").forEach(function(c){c(s.player,s.mediaPlayer_)}),s.mediaPlayer_.initialize(),s.retriggerError_=function(c){if(c.error==="capability"&&c.event==="mediasource")s.player.error({code:4,message:"The media cannot be played because it requires a feature that your browser does not support."});else if(c.error!=="manifestError"||c.event.id!=="createParser"&&c.event.id!=="codec"&&c.event.id!=="nostreams"&&c.event.id!=="nostreamscomposed"&&c.event.id!=="parse"&&c.event.id!=="multiplexedrep")if(c.error==="mediasource")c.event.match("MEDIA_ERR_ABORTED")?s.player.error({code:1,message:c.event}):c.event.match("MEDIA_ERR_NETWORK")?s.player.error({code:2,message:c.event}):c.event.match("MEDIA_ERR_DECODE")?s.player.error({code:3,message:c.event}):c.event.match("MEDIA_ERR_SRC_NOT_SUPPORTED")?s.player.error({code:4,message:c.event}):c.event.match("MEDIA_ERR_ENCRYPTED")?s.player.error({code:5,message:c.event}):(c.event.match("UNKNOWN"),s.player.error({code:4,message:c.event}));else if(c.error==="capability"&&c.event==="encryptedmedia")s.player.error({code:5,message:"The media cannot be played because it requires encryption features that your browser does not support."});else if(c.error==="key_session")s.player.error({code:5,message:c.event});else if(c.error==="download")s.player.error({code:2,message:"The media playback was aborted because too many consecutive download errors occurred."});else{if(c.error!=="mssError")return;s.player.error({code:3,message:c.event})}else s.player.error({code:4,message:c.event.message});setTimeout(function(){s.mediaPlayer_.reset()},10)},s.mediaPlayer_.on(l.MediaPlayer.events.ERROR,s.retriggerError_),s.getDuration_=function(c){var h=c.data.Period_asArray,p=s.hasFiniteDuration_;c.data.mediaPresentationDuration||h[h.length-1].duration?s.hasFiniteDuration_=!0:s.hasFiniteDuration_=!1,s.hasFiniteDuration_!==p&&s.player.trigger("durationchange")},s.mediaPlayer_.on(l.MediaPlayer.events.MANIFEST_LOADED,s.getDuration_),s.mediaPlayer_.on(l.MediaPlayer.events.STREAM_INITIALIZED,videojs.bind(s,s.onMetaData)),s.currentQuality={video:"",audio:""},Object.keys(l.MediaPlayer.events).forEach(function(c){s.mediaPlayer_.on(l.MediaPlayer.events[c],videojs.bind(s,s.onEvent))}),n.dashConfig&&Object.keys(n.dashConfig).forEach(function(c){var h,p="set"+c.charAt(0).toUpperCase()+c.slice(1),m=n.dashConfig[c];if(s.mediaPlayer_.hasOwnProperty(p)&&(videojs.log.warn("Using dash options in videojs-contrib-dash without the set prefix has been deprecated. Change '"+c+"' to '"+p+"'"),c=p),!s.mediaPlayer_.hasOwnProperty(c))return void videojs.log.warn("Warning: dash configuration option unrecognized: "+c);Array.isArray(m)||(m=[m]),(h=s.mediaPlayer_)[c].apply(h,m)}),s.mediaPlayer_.attachView(s.el_),s.mediaPlayer_.setAutoPlay(!1),setupAudioTracks.call(null,s.player,e),setupTextTracks.call(null,s.player,e,n),s.mediaPlayer_.setProtectionData(s.keySystemOptions_),s.mediaPlayer_.attachSource(u),s.tech_.triggerReady()}};window_1.dashjs?a():loadScript(DASH_PATH,function(){a()})}return r.buildDashJSProtData=function(t){var e={};if(!t)return null;if(Array.isArray(t))for(var n=0;n<t.length;n++){var s=t[n],a=videojs.mergeOptions({},s.options);a.licenseUrl&&(a.serverURL=a.licenseUrl,delete a.licenseUrl),e[s.name]=a}else e=t;return e},r.prototype.dispose=function(){var t=this;this.mediaPlayer_&&(this.mediaPlayer_.off(this.dashjs.MediaPlayer.events.ERROR,this.retriggerError_),this.mediaPlayer_.off(this.dashjs.MediaPlayer.events.MANIFEST_LOADED,this.getDuration_),Object.keys(this.dashjs.MediaPlayer.events).forEach(function(e){t.mediaPlayer_.off(t.dashjs.MediaPlayer.events[e],videojs.bind(t,t.onEvent))}),this.mediaPlayer_.reset()),this.player.dash&&delete this.player.dash},r.prototype.duration=function(){return this.mediaPlayer_?this.mediaPlayer_.isDynamic()&&!this.hasFiniteDuration_?1/0:this.mediaPlayer_.duration():0},r.hooks=function(t,e){return r.hooks_[t]=r.hooks_[t]||[],e&&(r.hooks_[t]=r.hooks_[t].concat(e)),r.hooks_[t]},r.hook=function(t,e){r.hooks(t,e)},r.removeHook=function(t,e){var n=r.hooks(t).indexOf(e);return n!==-1&&(r.hooks_[t]=r.hooks_[t].slice(),r.hooks_[t].splice(n,1),!0)},r.prototype.onMetaData=function(t){var e=this,n=this.mediaPlayer_,s=n.getBitrateInfoListFor("video"),a=n.getSettings(),l=a.streaming.abr.autoSwitchBitrate.video,u=[];if(s.length>0){u.push({id:-1,label:"auto",selected:l}),s.forEach(function(h,p){u.push({id:p,label:e.getLevelLabel(h),selected:!l&&e.currentQuality.video===p})});var c={qualityData:{video:u},callbacks:{video:videojs.bind(this,this.switchQuality)}};this.tech_.setTimeout(function(){this.trigger({type:"masterplaylistchange",data:c})},1)}},r.prototype.switchQuality=function(t){var e=this.mediaPlayer_;t.id===-1?e.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!0}}}}):t.id!=this.currentQuality[t.trackType]&&(e.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!1}}}}),e.setQualityFor(t.trackType,t.id))},r.prototype.getLevelLabel=function(t){return t.height?t.height+"p":t.width?Math.round(9*t.width/16)+"p":t.bitrate?t.bitrate/1e3+"kbps":0},r.prototype.onEvent=function(t){switch(this.tech_.trigger({type:"dash_"+t.type,data:t}),t.type){case this.dashjs.MediaPlayer.events.QUALITY_CHANGE_REQUESTED:this.tech_.trigger({type:"dashqualityswitching",data:t});break;case this.dashjs.MediaPlayer.events.QUALITY_CHANGE_RENDERED:this.tech_.trigger({type:"dashqualityswitched",data:t}),this.currentQuality[t.mediaType]=t.newQuality}},r}();Html5DashJS.hooks_={};var canHandleKeySystems=function(r){r=JSON.parse(JSON.stringify(r)),Html5DashJS.updateSourceData&&(videojs.log.warn('updateSourceData has been deprecated. Please switch to using hook("updatesource", callback).'),r=Html5DashJS.updateSourceData(r)),Html5DashJS.hooks("updatesource").forEach(function(e){r=e(r)});var t=document_1.createElement("video");return!(r.keySystemOptions&&!window_1.navigator.requestMediaKeySystemAccess&&!t.msSetMediaKeys)};videojs.DashSourceHandler=function(){return{name:"dashSourceHandler",canHandleSource:function(r){var t=/\.mpd/i;return canHandleKeySystems(r)?videojs.DashSourceHandler.canPlayType(r.type)?"probably":t.test(r.src)?"maybe":"":""},handleSource:function(r,t,e){return new Html5DashJS(r,t,e)},canPlayType:function(r){return videojs.DashSourceHandler.canPlayType(r)}}},videojs.DashSourceHandler.canPlayType=function(r){return/^application\/dash\+xml/i.test(r)?"probably":""},TCPlayer.mountDashProvider=mountDashProvider,mountDashProvider(),videojs.Html5DashJS=Html5DashJS;var Component$6=videojs.getComponent("Component"),hlsOption=["fileID","requestID","mediaType","mimeType","provider","resolution","rate","frames","buffer","connectionSpeed"],mp4Option=["fileID","requestID","mediaType","mimeType","resolution","rate","buffer"],dashOption=["fileID","requestID","mediaType","mimeType","resolution","rate","buffer","provider","connectionSpeed"],infoOption=["info"],VideoStatisticWrapper=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.nodelist={},s.status={fileID:"",requestID:"",mediaType:"",mimeType:"",provider:"",resolution:"",rate:"",frames:"",buffer:"",connectionSpeed:"",info:""},e.on("playcgiend",function(){clearTimeout(s.timeoutID),Object.keys(s.status).forEach(function(a){s.nodelist[a].reset()})}),e.on("statistic",videojs.bind(s,function(a){a.data.action==="open"?s.tick():s.clearTimeout(s.timeoutID)})),s.init(),s}return inherits(t,r),t.prototype.tick=function(){var e=this;this.timeoutID=setTimeout(videojs.bind(this,function(){e.tick()}),1e3),this.updatePanel()},t.prototype.createEl=function(){return videojs.dom.createEl("div",{className:"tcp-statistic-wrapper"})},t.prototype.init=function(){var e=this;Object.keys(this.status).forEach(function(n){var s=new VideoTextItem(e,{key:n,data:e.status[n]});e.nodelist[n]=s,e.addChild(s)})},t.prototype.updatePanel=function(){var e=this;if(this.player().techName_==="Html5")switch(this.getStatus(),this.status.mediaType){case"m3u8":hlsOption.forEach(function(n){e.nodelist[n].updateContent(e.status[n])});break;case"mp4":mp4Option.forEach(function(n){e.nodelist[n].updateContent(e.status[n])});break;case"mpd":dashOption.forEach(function(n){e.nodelist[n].updateContent(e.status[n])})}else this.player().techName_==="Flash"&&(this.getFlashStatus(),infoOption.forEach(function(n){n==="info"&&e.nodelist[n].updateContent(e.status[n])}))},t.prototype.getStatus=function(){this.getFileID(),this.getRequestID(),this.getMediaType(),this.getMIMEType(),this.getResolution(),this.getRate(),this.getProvider(),this.getBuffer(),this.status.mediaType==="m3u8"&&(this.getFrames(),this.getConnectionSpeed()),this.status.mediaType==="mpd"&&this.getConnectionSpeed()},t.prototype.getFlashStatus=function(){this.status.mediaType="flash",this.getSupport()},t.prototype.getFileID=function(){var e=this.player().options_.fileID||"";return this.status.fileID=e,e},t.prototype.getRequestID=function(){var e=this.player().PlayerMetrics().playStatus;if(e){var n=e.requestID;return this.status.requestID=n,n}},t.prototype.getMediaType=function(){this.player_.src()&&/\/(.+)\.(.+)\?|\/(.+)\.(.+)/.test(this.player_.src());var e=RegExp.$2||RegExp.$4||"";return this.status.mediaType=e,e},t.prototype.getMIMEType=function(){var e=this.player().src(),n=EXT_MIME[getFileExtension(e)]||"";return this.status.mimeType=n,n},t.prototype.getResolution=function(){var e=this.player_.tech_.el_.videoHeight||0,n=this.player_.tech_.el_.videoWidth||0,s=n+" x "+e;return this.status.resolution=s,s},t.prototype.getRate=function(){var e=this.player().playbackRate()||1;return this.status.rate=e+"x",e},t.prototype.getBuffer=function(){var e=this.player_.bufferedEnd().toFixed(1)||0,n=this.player_.duration().toFixed(1)||0,s=(e/n*100).toFixed(1)+"%",a=e+" / "+n+" ("+s+")";return this.status.buffer=a,a},t.prototype.getSupport=function(){var e=void 0;return e=this.status.mediaType!=="m3u8"&&this.status.mediaType!=="mp4"&&this.status.mediaType!=="dash"?"视频统计功能不支持当前视频格式":"",this.status.info=e,e},t.prototype.getProvider=function(){var e=this.player_.tech_.sourceHandler_;return e instanceof Html5HlsJS?(this.status.provider="HlsJS","HlsJS"):e instanceof Html5DashJS?(this.status.provider="DashJS","DashJS"):""},t.prototype.getFrames=function(){var e=this.player_.getVideoPlaybackQuality(),n=(e.droppedVideoFrames||0)+" dropped of "+(e.totalVideoFrames||0);return this.status.frames=n,n},t.prototype.getConnectionSpeed=function(){var e=void 0;if(this.status.mediaType==="m3u8"){var n=this.player_.tech_.hlsProvider.hls.abrController._bwEstimator;e=n&&n.getEstimate()?(125e-6*n.getEstimate()).toFixed(0)+"KB/s":"0KB/s",this.status.connectionSpeed=e}if(this.status.mediaType==="mpd"){var s=this.player_.dash.mediaPlayer,a=s.getDashMetrics(),l=s.getDashAdapter(),u=s.getActiveStream().getStreamInfo(),c=u.index,h=a.getCurrentRepresentationSwitch("video").to,p=l.getBandwidthForRepresentation(h,c);e=p?(125e-6*p).toFixed(0)+"KB/s":"0KB/s",this.status.connectionSpeed=e}return e},t}(Component$6);videojs.registerComponent("VideoStatisticWrapper",VideoStatisticWrapper);var Component$5=videojs.getComponent("Component"),VideoStatisticPanel=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return e.on("statistic",videojs.bind(s,function(a){a.data.action==="open"?s.show():s.hide()})),e.on("playcgistart",function(){e.trigger({type:"statistic",data:{action:"close"}})}),s.init(),s}return inherits(t,r),t.prototype.createEl=function(){var e=this,n=videojs.dom.createEl("div",{className:"tcp-statistic vjs-hidden"}),s=videojs.dom.createEl("div",{className:"tcp-statistic-close",innerText:"[X]"});return s.addEventListener("click",function(){e.hide(),e.player().trigger({type:"statistic",data:{action:"close"}})}),n.appendChild(s),n},t.prototype.init=function(){this.addChild("VideoStatisticWrapper")},t.prototype.show=function(){r.prototype.show.call(this),this.popped=!0},t.prototype.hide=function(){r.prototype.hide.call(this),this.popped=!1},t}(Component$5);videojs.registerComponent("VideoStatisticPanel",VideoStatisticPanel);var MenuItem$3=videojs.getComponent("MenuItem"),MirrorMenuItem=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.addClass("tc-menu-list"),s.open=!1,s.hasOpen=!1,s.player=e,s.setup(),s}return inherits(t,r),t.prototype.setup=function(){var e=this;this.on(["tap","click"],function(){var n=e.player.tech().el();e.hasOpen||(window.MtaH5&&MtaH5.clickStat("mirror",{appid:e.player.options_.appID,fileid:e.player.options_.fileID}),e.player.trigger({type:"feature",data:"mirror"})),e.open?(videojs.dom.removeClass(n,"tcp-mirror"),videojs.dom.removeClass(e.el_,"tcp-menu-item-select")):(videojs.dom.addClass(n,"tcp-mirror"),videojs.dom.addClass(e.el_,"tcp-menu-item-select"),e.hasOpen=!0),e.open=!e.open})},t}(MenuItem$3);videojs.registerComponent("MirrorMenuItem",MirrorMenuItem);var MenuItem$4=videojs.getComponent("MenuItem"),PoweredByMenuItem=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.addClass("tc-menu-list"),s}return inherits(t,r),t}(MenuItem$4);videojs.registerComponent("PoweredByMenuItem",PoweredByMenuItem);var MenuItem$5=videojs.getComponent("MenuItem"),StatusMenuItem=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.addClass("tc-menu-list"),s.hasOpen=!1,s.player=e,e.on("statistic",videojs.bind(s,function(a){a.data.action==="close"&&(videojs.dom.removeClass(s.el_,"tcp-menu-item-select"),s.hasOpen=!1)})),s.setup(),s}return inherits(t,r),t.prototype.setup=function(){var e=this;this.on(["tap","click"],function(){e.hasOpen?(videojs.dom.removeClass(e.el_,"tcp-menu-item-select"),e.player.trigger({type:"statistic",data:{action:"close"}}),e.hasOpen=!1):(videojs.dom.addClass(e.el_,"tcp-menu-item-select"),e.player.trigger({type:"statistic",data:{action:"open"}}),e.hasOpen=!0,window.MtaH5&&MtaH5.clickStat("mirror",{appid:e.player.options_.appID,fileid:e.player.options_.fileID}),e.player.trigger({type:"feature",data:"statistic"}))})},t}(MenuItem$5);videojs.registerComponent("StatusMenuItem",StatusMenuItem),videojs.getComponent("Component");var Menu$2=videojs.getComponent("Menu");videojs.getComponent("MenuItem");var RightClickPopupMenu=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));s.hide(),s.addChild("PoweredByMenuItem",{label:"Powered by Tencent Cloud."}),!n.statistic||IS_IOS||IS_ANDROID||s.addChild("StatusMenuItem",{label:"Video statistic"}),n.mirror&&s.addChild("MirrorMenuItem",{label:"Mirror"}),e.on("contextmenu",videojs.bind(s,s.onContextmenu)),e.on(["tap","click"],videojs.bind(s,function(l){if(this.popped)return this.hide(),l.stopPropagation(),l.preventDefault(),!1})),videojs.on(document,["tap","click"],videojs.bind(s,function(l){this.popped&&this.hide()}));var a=s;return s.children().forEach(function(l){l.on(["tap","click"],function(){a.hide()})}),s}return inherits(t,r),t.prototype.createEl=function(){var e=r.prototype.createEl.call(this);return videojs.dom.addClass(e,"tcp-right-click-popup-menu"),e},t.prototype.show=function(){r.prototype.show.call(this),this.popped=!0},t.prototype.hide=function(){r.prototype.hide.call(this),this.popped=!1},t.prototype.onContextmenu=function(e){e.preventDefault(),this.show();var n=this.el(),s=e.clientX,a=e.clientY,l=getViewportSize(),u=l.width,c=l.height,h=s+n.offsetWidth-u+5;h=Math.max(0,h);var p=a+n.offsetHeight-c+5;p=Math.max(0,p);var m=this.player().el().getBoundingClientRect();n.style.left=Math.max(0,s-m.left-h)+"px",n.style.top=Math.max(0,a-m.top-p)+"px"},t}(Menu$2);videojs.registerComponent("RightClickPopupMenu",RightClickPopupMenu);var clickableComponent=videojs.getComponent("ClickableComponent"),TimeTooltip$2=videojs.getComponent("TimeTooltip"),Component$9=videojs.getComponent("Component"),dom=videojs.dom,formatTime$2=videojs.formatTime,COMMENT_WIDTH=140,COMMENT_HEIGHT_SINGLE_LINE=23,COMMENT_SHOW_ON_THE_LEFT={POPUP_CONTAINER_OFFSET:-130,POPUP_CONTAINER_OFFSET_WITHOUTGIT:-100,TRIANGLE_OFFEST:96,TRIANGLE_OFFEST_WITHOUTGIF:95},COMMENT_SHOW_ON_THE_RIGHT={TRIANGLE_OFFEST:6,POPUP_CONTAINER_OFFSET:0},ProgressMarkerGenerator=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.duration=0,s.registerListener(),s}return inherits(t,r),t.prototype.registerListener=function(){this.player_.one("canplay",videojs.bind(this,this.resetDotsElement))},t.prototype.resetDotsElement=function(){var e=this.player_;this.duration=e.duration(),dom.emptyEl(this.el_),this.resetEl()},t.prototype.resetEl=function(){this.setUpEl()},t.prototype.dotMouseLeave=function(){var e=event.currentTarget,n=e.getAttribute("container-id");this.getChildById(n).hide()},t.prototype.dotHover=function(){var e=event.currentTarget.parentElement.offsetWidth,n=event.currentTarget.offsetLeft+COMMENT_WIDTH,s=this.getChildById(event.currentTarget.getAttribute("container-id")),a=s.getAttribute("class").search("tcp-without-gif")>=0,l=s.el_.querySelector(".tcp-triangle-both")||s.el_.querySelector(".tcp-triangle");n>e?a?(s.el_.style.left=COMMENT_SHOW_ON_THE_LEFT.POPUP_CONTAINER_OFFSET_WITHOUTGIT+"px",l.style.left=COMMENT_SHOW_ON_THE_LEFT.TRIANGLE_OFFEST_WITHOUTGIF+"%"):(s.el_.style.left=COMMENT_SHOW_ON_THE_LEFT.POPUP_CONTAINER_OFFSET+"px",l.style.left=COMMENT_SHOW_ON_THE_LEFT.TRIANGLE_OFFEST+"%"):event.currentTarget.offsetLeft<=COMMENT_WIDTH&&!a&&(s.el_.style.left=COMMENT_SHOW_ON_THE_RIGHT.POPUP_CONTAINER_OFFSET+"px",l.style.left=COMMENT_SHOW_ON_THE_RIGHT.TRIANGLE_OFFEST+"px");var u=s.getChild("DotImage");if(u){var c=u.el_.getElementsByClassName("tcp-dot-timestamp")[0],h=event.currentTarget.getAttribute("dotinsecond"),p=formatTime$2(h);c.innerHTML=p}s.show()},t.prototype.setChildInTheContainer=function(e,n){var s=e.content&&e.content!==""?decodeURIComponent(e.content.replace(/\+/g," ")):"";if(s!==""){var a=n.addChild("DotComment");a.el_.innerHTML=encodeHTML(s)}if(e.img){n.el_.querySelector(".tcp-triangle").setAttribute("class","tcp-triangle-both");var l=n.addChild("DotImage");l.el_.firstChild.setAttribute("src",e.img),s==""?(n.addClass("tcp-only-gif"),l.el_.firstChild.className="tcp-image-in-container-only-image"):this.countContentSize(s)<=20&&(n.addClass("tcp-single-line"),a.el_.style.height=COMMENT_HEIGHT_SINGLE_LINE+"px")}else if(s!==""){var u=this.countContentSize(s);u<=14?n.addClass("tcp-single-line"):u<=28&&n.addClass("tcp-two-lines"),n.addClass("tcp-without-gif"),a.addClass("tcp-large-comment")}},t.prototype.markSetUp=function(e){var n=e.timeOffset>0?e.timeOffset/1e3:0,s=this.duration?this.duration:0;if(!(typeof n!="number"||n>s)){var a=document.createElement("div");a.className="tcp-dot-basic-style",a.setAttribute("dotinsecond",n.toString()),e.class&&(a.className+=" "+e.class);var l=this.addChild("PopUpContainer");return a.setAttribute("container-id",l.id_),this.setChildInTheContainer(e,l),a.appendChild(l.el_),a.style.left=n/s*100+"%",a.addEventListener("mouseover",videojs.bind(this,this.dotHover)),a.addEventListener("mouseleave",videojs.bind(this,this.dotMouseLeave)),a}},t.prototype.setUpEl=function(){var e=this,n=this.player_.options_.dots||0,s=this.el_||r.prototype.createEl.call(this);return videojs.dom.addClass(s,"tcp-dot-component"),n&&n instanceof Array&&n.length>0&&n.forEach(function(a){var l=a.content||"";if(l&&l!=""||a.img){var u=e.markSetUp(a);u&&s.appendChild(u)}}),s},t.prototype.countContentSize=function(e){for(var n=0,s=e.length,a=-1,l=0;l<s;l++)a=e.charCodeAt(l),n+=a>=0&&a<=128?1:2;return n},t.prototype.createEl=function(){return this.setUpEl()},t}(clickableComponent);videojs.registerComponent("ProgressMarkerGenerator",ProgressMarkerGenerator);var DotComment=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.addClass("tcp-dot-comment"),s}return inherits(t,r),t}(Component$9);videojs.registerComponent("DotComment",DotComment);var DotImage=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));s.addClass("tcp-dot-image");var a=s.el_||r.prototype.createEl.call(s),l=dom.createEl("img");l.className="tcp-image-in-container",a.appendChild(l);var u=dom.createEl("span");return u.className="tcp-dot-timestamp",u.innerHTML="",a.appendChild(u),s}return inherits(t,r),t}(Component$9);videojs.registerComponent("DotImage",DotImage);var PopUpContainer=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));s.addClass("tcp-popup-container");var a=dom.createEl("div");return a.setAttribute("class","tcp-triangle"),s.el_.appendChild(a),s.hide(),s}return inherits(t,r),t}(TimeTooltip$2);videojs.registerComponent("PopUpContainer",PopUpContainer);var Plugin$2=videojs.getPlugin("plugin"),SpeedUp=function(r){function t(e){classCallCheck(this,t);var n=possibleConstructorReturn(this,r.call(this,e));return n.TARGET_LANTENCY=1,n.MAX_LATENCY=3,n.RATEVALUE=1.1,e.ready(videojs.bind(n,n.init)),n}return inherits(t,r),t.prototype.checkLatency=function(){var e=this.player.bufferedEnd()-this.player.currentTime();e>this.MAX_LATENCY&&this.player.playbackRate(this.RATEVALUE),e<this.TARGET_LANTENCY&&this.player.playbackRate(1)},t.prototype.init=function(){var e=this,n=this.player,s=void 0;n.on("playing",function(){n.duration()===1/0&&(s=setInterval(e.checkLatency.bind(e),1e3))}),n.on("waiting",function(){e.reset(s)}),n.on("pause",function(){e.reset(s)})},t.prototype.reset=function(e){this.player.playbackRate(1),clearInterval(e)},t}(Plugin$2);videojs.registerPlugin("SpeedUp",SpeedUp);var Button$3=videojs.getComponent("Button"),BigPlayButton$2=videojs.getComponent("BigPlayButton");BigPlayButton$2.prototype.createEl=function(){var r=Button$3.prototype.createEl.call(this),t=getTemplate();return(this.options_.shapeType||this.options_.styleType)&&(t=getTemplate(this.options_.shapeType,this.options_.styleType)),r.appendChild(videojs.dom.createEl("div",{className:"vjs-button-icon",innerHTML:t})),r},BigPlayButton$2.prototype.controlText_="Play";var Component$10=videojs.getComponent("Component"),VideoStatisticWrapper$1=videojs.getComponent("VideoStatisticWrapper"),LoadingSpinner$2=videojs.getComponent("LoadingSpinner");LoadingSpinner$2.prototype.createEl=function(){function r(s,a){var l=new VideoStatisticWrapper$1(s);if(l.getMediaType(),(l.getBuffer()||"").indexOf("100.0%")>-1)return a.innerText="",!1;a.innerText=l.getConnectionSpeed()}var t=this,e=Component$10.prototype.createEl.call(this,"div",{className:"tcp-loading-spinner",dir:"ltr"});if(!this.player_.options_.loadingSpeed)return e;var n=null;return this.player_.on("waiting",function(){n=setInterval(function(){r(t.player_,e)},100)}),this.player_.on("timeupdate",function(){n&&clearInterval(n)}),e};var Plugin$3=videojs.getPlugin("plugin"),log$3=videojs.log,Skin=function(r){function t(e,n){classCallCheck(this,t),log$3("Skin initializing");var s=possibleConstructorReturn(this,r.call(this,e));return s.player.addClass("tcp-skin"),log$3("Skin initialized"),s}return inherits(t,r),t}(Plugin$3);videojs.registerPlugin("Skin",Skin);var Plugin$4=videojs.getPlugin("plugin"),log$4=videojs.log,VID=function(r){function t(e,n){classCallCheck(this,t),log$4("VID initializing");var s=possibleConstructorReturn(this,r.call(this,e));return s.init(s.player.options_),log$4("VID initialized"),s}return inherits(t,r),t.prototype.init=function(e){var n=(this.player,e.sources);e&&e.appID&&e.fileID||e.plugins.DRM&&n.length==0?e.children.splice(0,e.children[0]=="mediaLoader"?1:0,"mediaAsyncLoader"):e.children[0]!="mediaLoader"&&e.children.unshift("mediaLoader")},t}(Plugin$4);videojs.registerPlugin("VID",VID);var isObject_1=isObject$2,freeGlobal=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,_freeGlobal=freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=_freeGlobal||freeSelf||Function("return this")(),_root=root,now=function(){return _root.Date.now()},now_1=now,reWhitespace=/\s/,_trimmedEndIndex=trimmedEndIndex,reTrimStart=/^\s+/,_baseTrim=baseTrim,Symbol$1=_root.Symbol,_Symbol=Symbol$1,objectProto=Object.prototype,hasOwnProperty$2=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag$1=_Symbol?_Symbol.toStringTag:void 0,_getRawTag=getRawTag,objectProto$1=Object.prototype,nativeObjectToString$1=objectProto$1.toString,_objectToString=objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=_Symbol?_Symbol.toStringTag:void 0,_baseGetTag=baseGetTag,isObjectLike_1=isObjectLike,symbolTag="[object Symbol]",isSymbol_1=isSymbol,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt,toNumber_1=toNumber,FUNC_ERROR_TEXT$1="Expected a function",nativeMax=Math.max,nativeMin=Math.min,debounce_1=debounce,FUNC_ERROR_TEXT="Expected a function",throttle_1=throttle$1,Component$11=videojs.getComponent("Component"),DvrProgressControl=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.on("mousemove",s.handleMouseMove),s.on("mouseup",s.handleMouseUp),s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control tcp-dvr-progress-control"})},t.prototype.update=function(e){this.getChild("DvrSeekBar").update(e)},t.prototype.handleMouseMove=function(e){var n=this.getChild("DvrSeekBar"),s=n.calculateDistance(e),a=n.getChild("DvrMouseTimeDisplay");a&&a.update(videojs.dom.getBoundingClientRect(n.el()),s)},t.prototype.handleMouseUp=function(e){this.getChild("DvrSeekBar").handleMouseUp(e)},t}(Component$11);DvrProgressControl.prototype.options_={children:["DvrSeekBar"]},videojs.registerComponent("DvrProgressControl",DvrProgressControl);var Slider$2=videojs.getComponent("Slider"),DvrSeekBar=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.percent_=1,s.update=throttle_1(videojs.bind(s,s.update),50),s.on(e,"seekToLive",videojs.bind(s,function(a){this.update(a.data)})),s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update=function(e){e!=null&&(this.percent_=e,this.bar.update(videojs.dom.getBoundingClientRect(this.el_),e),this.updateAriaAttributes(e))},t.prototype.handleMouseDown=function(e){r.prototype.handleMouseDown.call(this,e),this.isMouseDown=!0},t.prototype.handleMouseMove=function(e){var n=this.calculateDistance(e);this.update(n)},t.prototype.handleMouseUp=function(e){r.prototype.handleMouseUp.call(this);var n=this.calculateDistance(e);this.update(n),this.player().Dvr().timeShift(n)},t.prototype.stepBack=function(){},t.prototype.stepForward=function(){},t.prototype.updateAriaAttributes=function(e){this.el().setAttribute("aria-valuenow",(100*e).toFixed(2))},t.prototype.getPercent=function(){return this.percent_},t}(Slider$2);DvrSeekBar.prototype.options_={children:["DvrMouseTimeDisplay","DvrTimeShiftBar"],barName:"DvrTimeShiftBar"},videojs.registerComponent("DvrSeekBar",DvrSeekBar);var DvrTimeShiftBar=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.el_.style.width="100%",s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar tcp-dvr-time-shift",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 100%</span>"})},t.prototype.update=function(e,n){var s=(100*n).toFixed(2)+"%";this.el_.style.width=s},t}(Component$11);videojs.registerComponent("DvrTimeShiftBar",DvrTimeShiftBar);var MouseTimeDisplay$2=videojs.getComponent("MouseTimeDisplay"),DvrMouseTimeDisplay=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.update=function(e,n){var s=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var a=s.player().Dvr().dvrData.maxTimeShift,l=videojs.formatTime((1-n)*a,a);s.el_.style.left=e.width*n+"px",s.getChild("timeTooltip").update(e,n,l)})},t}(MouseTimeDisplay$2);videojs.registerComponent("DvrMouseTimeDisplay",DvrMouseTimeDisplay);var Button$4=videojs.getComponent("Button"),LiveButton=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(){var e=Button$4.prototype.createEl.call(this,"button",{className:"vjs-live-control vjs-control"});return this.contentEl_=videojs.dom.createEl("div",{className:"vjs-live-display",innerHTML:this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},t.prototype.update=function(){},t.prototype.updateControlText=function(e){this.controlText(e?"直播中":"返回直播")},t.prototype.handleClick=function(e){this.player().Dvr().seekToLive()},t}(Button$4);LiveButton.prototype.controlText_="返回直播",videojs.registerComponent("LiveButton",LiveButton);var Plugin$5=videojs.getPlugin("plugin"),Dvr=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));s.isInit=!1,s.options=n;var a=s;return e.ready(function(){var l=e.tech(!0),u=l&&l.hlsProvider;if(u&&u.Hls){var c=u.Hls;l.one(c.Events.MANIFEST_LOADED,function(h){}),l.one(c.Events.LEVEL_LOADED,function(h){}),e.one("loadedmetadata",function(h){l.el_.setAttribute("poster",""),a.init(),a.options.liveURL&&a.seekToLive()})}}),s}return inherits(t,r),t.prototype.init=function(){var e=this.player,n=e.tech(!0).hlsProvider;if(this.parseM3u8(n.manifests[0]),!this.dvrData.startTime&&!this.isInit)return void e.one("loadedmetadata",videojs.bind(this,function(s){this.init()}));this.initControl(),this.delay=getParams("delay",e.tech_.currentSource_.src)||0,this.updateControl(!this.isLive()),e.on("loadedmetadata",videojs.bind(this,function(){this.parseM3u8(n.manifests[0]),this.delay=getParams("delay",e.tech_.currentSource_.src)||0,this.updateControl()})),this.isInit=!0},t.prototype.initControl=function(){var e=this.player;e.addClass("vjs-dvr"),e.controlBar.getChild("ProgressControl").hide(),e.controlBar.getChild("LiveDisplay").hide(),e.controlBar.addChild("DvrProgressControl",{},5),e.controlBar.addChild("liveButton",{},6)},t.prototype.updateControl=function(e){var n=this.player,s=n.controlBar.getChild("ProgressControl"),a=n.controlBar.getChild("LiveDisplay"),l=n.controlBar.getChild("DvrProgressControl"),u=n.controlBar.getChild("LiveButton");n.toggleClass("vjs-dvr-live",this.isLive()),u.updateControlText(this.isLive()),e&&l.update(1-this.delay/this.dvrData.maxTimeShift),this.dvrData.startTime?(l.show(),u.show(),s.hide(),a.hide()):(l.hide(),u.hide(),s.show(),a.show())},t.prototype.seekToLive=function(){this.isLive()||(this.timeShift(1),this.player.trigger({type:"seekToLive",data:1}))},t.prototype.isLive=function(){return!(this.delay>0)},t.prototype.timeShift=function(e){var n=this.player,s=(n.getChild("ControlBar").getChild("LiveButton"),n.tech_.currentSource_),a=Math.floor(this.dvrData.maxTimeShift*(1-e));this.delay=a,a==0&&this.options.liveURL?n.src(this.options.liveURL):(s.src=(this.options.shiftURL||s.src).replace(/delay=*(\d+)/,"delay="+a),n.src(n.tech_.currentSource_.src)),n.bigPlayButton.hide(),n.posterImage.hide(),n.tech_.one("hlsManifestParsed",videojs.bind(this,function(){n.play()}))},t.prototype.parseM3u8=function(e){this.dvrData={};for(var n=new RegExp([/#EXT-TX-TS-START-TIME:*(.+)/.source,/|#EXT-TX-TS-DURATION:*(.+)/.source].join(""),"g"),s=void 0;(s=n.exec(e))!==null;)s[1]?this.dvrData.startTime=s[1]:s[2]&&(this.dvrData.duration=s[2]);this.dvrData.startTime&&(this.dvrData.maxTimeShift=Math.min(Math.floor(new Date().getTime()/1e3-this.dvrData.startTime),this.dvrData.duration))},t}(Plugin$5);videojs.registerPlugin("Dvr",Dvr);var Menu$4=videojs.getComponent("Menu"),QualitySwitcherMenu=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.addItem=function(e){r.prototype.addItem.call(this,e)},t}(Menu$4),MenuItem$6=videojs.getComponent("MenuItem"),QualitySwitcherMenuItem=function(r){function t(e,n){return classCallCheck(this,t),possibleConstructorReturn(this,r.call(this,e,n))}return inherits(t,r),t.prototype.handleClick=function(e){if(r.prototype.handleClick.call(this,e),this.updateItems(),this.options_.callback(this.options_),this.options_.trackType=="video"){var n=this.player().controlBar.getChild(this.options_.trackType+"QualitySwitcherMenuButton");n.updateLabel(this.options_),n.unpressButton()}},t.prototype.updateItems=function(){for(var e=this.player().controlBar.getChild(this.options_.trackType+"QualitySwitcherMenuButton"),n=e.getChild(this.options_.trackType+"QualitySwitcherMenu"),s=n.children(),a=0;a<s.length;a++){var l=s[a];this!==l?(l.selected(!1),l.options_.selected=!1):l.options_.selected=!0}},t}(MenuItem$6),MenuButton$2=videojs.getComponent("MenuButton");videojs.getComponent("Menu");var QualitySwitcherMenuButton=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(){var e=r.prototype.createEl.call(this);return this.labelEl_=videojs.dom.createEl("div",{className:"tcp-quality-switcher-value",innerHTML:""}),e.appendChild(this.labelEl_),e},t.prototype.createMenu=function(){for(var e=this.options_.qualityList,n=new QualitySwitcherMenu(this.player(),{name:this.options_.trackType+"QualitySwitcherMenu"}),s=void 0,a=e.length-1;a>-1;a--){var l=e[a];s=videojs.mergeOptions(l,{trackType:this.options_.trackType,callback:this.options_.callback,selectable:!0}),n.addItem(new QualitySwitcherMenuItem(this.player(),s)),l.selected&&this.updateLabel(l)}return n},t.prototype.updateLabel=function(e){this.labelEl_.innerHTML="<p>"+this.localize(e.label)+"</p>"},t}(MenuButton$2),Plugin$6=videojs.getPlugin("plugin"),TRACK_TYPES=["video","audio","subtitle"],TRACK_CLASS={video:"tcp-video-quality-switcher",audio:"tcp-audio-quality-switcher",subtitle:"tcp-subtitle-quality-switcher"},log$5=videojs.log,QualitySwitcher=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return s.options=n,e.on("qualitydataloaded",videojs.bind(s,s.init)),s}return inherits(t,r),t.prototype.init=function(e){log$5("QualitySwitcher initializing",e);var n=this.player,s=e.data.qualityData,a=e.data.callbacks;if(this.setOptions({qualityData:s,callbacks:a}),!n.controlBar)return void log$5("QualitySwitcher can not initialize without control bar");for(var l=0;l<TRACK_TYPES.length;l++){var u=TRACK_TYPES[l],c=u+"QualitySwitcherMenuButton",h=n.controlBar.getChild(c);s[u]&&s[u].length>0&&n.controlBar.options_.QualitySwitcherMenuButton&&(h&&h.el()&&(h.dispose(),n.controlBar.removeChild(h)),this.repleaceLabel(u,s),h=new QualitySwitcherMenuButton(n,{name:c,qualityList:s[u],callback:a[u],trackType:u}),h.addClass(TRACK_CLASS[u]),n.controlBar.addChild(h,{},10))}log$5("QualitySwitcher initialized",e,this)},t.prototype.setOptions=function(e){this.options=videojs.mergeOptions(this.options,e)},t.prototype.setVideoQuality=function(e){if(this.options.qualityData&&this.options.callbacks.video){for(var n=this.options.qualityData.video,s=0;s<n.length;s++)n[s].selected&&(n[s].selected=!1),n[s].id===e.id&&(n[s].selected=!0);this.options.callbacks.video(e)}},t.prototype.getVideoQualityData=function(){return this.options.qualityData?this.options.qualityData.video:void 0},t.prototype.repleaceLabel=function(e,n){if(this.options.qualityLabelList){var s=this.options.qualityLabelList[e],a=n[e];if(a&&a.length>0&&s&&s.length>0)for(var l=0;l<a.length;l++){var u=a[l].label;u=u.slice(0,u.length-1);for(var c=0;c<s.length;c++)if(s[c].height==u){a[l].label=s[c].resolutionName;break}}}},t.prototype.reset=function(){for(var e=this.player,n=0;n<TRACK_TYPES.length;n++){var s=TRACK_TYPES[n],a=e.controlBar&&e.controlBar.getChild(s+"QualitySwitcherMenuButton");a&&a.el()&&(a.dispose(),e.controlBar.removeChild(a))}},t}(Plugin$6);videojs.registerPlugin("QualitySwitcher",QualitySwitcher);var Plugin$7=videojs.getPlugin("plugin"),log$6=videojs.log,defaultOptions={labels:{FLU:"流畅",SD:"标清",HD:"高清",FHD:"超清"},showOrder:["FLU","SD","HD","FHD"],defaultRes:"SD"},MultiResolution=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return s.options=n,n.useManualOption&&(s.manualOptions=extend({},n)),s.hasInit=!1,e.on("multiresolutionchange",videojs.bind(s,function(a){a.data&&this.update(data)})),e.on(["resolutionswitching","resolutionswitched"],videojs.bind(s,function(a){a.type=="resolutionswitching"?this.player.addClass("tcp-res-switching"):this.player.removeClass("tcp-res-switching")})),e.ready(videojs.bind(s,function(){var a=e.tech(!0);a&&(a.on("masterplaylistchange",videojs.bind(this,this.onMasterPlaylistChange)),a.on("hlsresolutionswitching",videojs.bind(this,this.onHlsLevelChange)),a.on("hlsresolutionswitched",videojs.bind(this,this.onHlsLevelChange)),a.on("dashqualityswitching",videojs.bind(this,this.onDashQualityChange)),a.on("dashqualityswitched",videojs.bind(this,this.onDashQualityChange))),this.hasInit=!0})),s.init(s.player.options_.multiResolution),s}return inherits(t,r),t.prototype.init=function(e){var n={};this.player.options_.label&&(n.label=this.player.options_.label),this.player.options_.showOrder&&(n.showOrder=this.player.options_.showOrder),this.player.options_.defaultRes&&(n.defaultRes=this.player.options_.defaultRes);var s=this.player,a=extend({},defaultOptions,e,this.manualOptions,n),l=a&&a.sources;if(this.options=a,l){log$6("MultiResolution initializing",a);var u=void 0;if(this.currentID=a.defaultRes=l[a.defaultRes]?a.defaultRes:Object.keys(l).shift(),u=l[this.currentID],s.options_.children[0]!="mediaLoader"||this.hasInit)s.src(u);else{var c;(c=s.options_.sources).push.apply(c,u)}this.hasInit||(this.hasInit=!0),s.ready(videojs.bind(this,function(){s.trigger({type:"qualitydataloaded",data:this.initQualityData(a)}),s.one("loadedmetadata",function(){var h=this.tech(!0);h.name_!="flash"&&h.el_.getAttribute("poster")&&(h.el_.removeAttribute("poster"),delete h.el_.poster)})})),log$6("MultiResolution initialized")}},t.prototype.reset=function(){this.player.QualitySwitcher().reset()},t.prototype.update=function(e){this.init(e)},t.prototype.store=function(e){if(!e)return this.options;this.options=videojs.mergeOptions(defaultOptions,this.options,e)},t.prototype.onMasterPlaylistChange=function(e){this.player.trigger({type:"qualitydataloaded",data:e.data})},t.prototype.onHlsLevelChange=function(e){e.type=="hlsresolutionswitching"?this.player.trigger({type:"resolutionswitching",data:e.data}):e.type=="hlsresolutionswitched"&&this.player.trigger({type:"resolutionswitched",data:e.data})},t.prototype.onDashQualityChange=function(e){e.type=="dashqualityswitching"?this.player.trigger({type:"resolutionswitching",data:e.data}):e.type=="dashqualityswitched"&&this.player.trigger({type:"resolutionswitched",data:e.data})},t.prototype.switchResolution=function(e){if(this.currentID!=e.id){var n=this.player,s=n.currentTime(),a=(n.paused(),n.duration()===1/0);if(n.trigger({type:"resolutionswitching",data:e}),a)n.bigPlayButton&&n.bigPlayButton.hide(),n.posterImage&&n.posterImage.hide(),n.one("loadstart",function(){n.play(),n.trigger({type:"resolutionswitched",data:e})});else{var l=n.ended(),u=n.playbackRate(),c=n.controlBar&&n.controlBar.progressControl&&n.controlBar.progressControl.seekBar.playProgressBar.el().style.width||0,h=videojs.browser.IS_IOS||videojs.browser.IS_ANDROID?"loadeddata":"loadedmetadata";n.one(h,function(){n.controlBar&&n.controlBar.progressControl&&(n.controlBar.progressControl.seekBar.playProgressBar.el().style.width=c),l||n.currentTime(s),n.techName_=="Flash"?(n.play(),n.tech(!0).trigger("seeked")):(n.play(),n.playbackRate()!=u&&n.playbackRate(u)),n.trigger({type:"resolutionswitched",data:e})}),n.bigPlayButton&&n.bigPlayButton.hide(),n.posterImage&&n.posterImage.hide(),n.options_.preload=="none"&&n.one("suspend",function(){n.load()})}n.src(this.options.sources[e.id]),a&&setTimeout(function(){n.play(),setTimeout(function(){n.play()},900)},100),this.currentID=e.id}},t.prototype.initQualityData=function(e){var n=[],s=(e.sources,e.labels),a=e.showOrder;return a.length>0&&a.forEach(function(l,u){var c={};c.id=l,c.selected=e.defaultRes===l,c.label=s[l]||l,n.push(c)}),{qualityData:{video:n},callbacks:{video:videojs.bind(this,this.switchResolution)}}},t.prototype.sortSourceOrder=function(e){return[]},t}(Plugin$7);videojs.registerPlugin("MultiResolution",MultiResolution),videojs.getComponent("Flash");var defaultDismiss=!videojs.browser.IS_IPHONE,registerPlugin=videojs.registerPlugin||videojs.plugin,defaults$1={header:"",code:"",message:"",timeout:45e3,dismiss:defaultDismiss,progressDisabled:!1,errors:{1:{type:"MEDIA_ERR_ABORTED"},2:{type:"MEDIA_ERR_NETWORK"},3:{type:"MEDIA_ERR_DECODE"},4:{type:"MEDIA_ERR_SRC_NOT_SUPPORTED"},5:{type:"MEDIA_ERR_ENCRYPTED"},unknown:{type:"MEDIA_ERR_UNKNOWN"},"-1":{type:"PLAYER_ERR_NO_SRC",message:"No video has been loaded."},"-2":{type:"PLAYER_ERR_TIMEOUT",message:"Could not download the video."},10:{type:"SERVER_ERR",message:"Request timed out."},11:{type:"SERVER_ERR",message:"Server is not respond."},12:{type:"DATA_ERR",message:"Server respond error data."},13:{type:"DATA_ERR",message:"No video transcoding information found."},14:{type:"HLS_NETWORK_ERR",message:"A network error caused the media download to fail part-way."},15:{type:"HLS_MEDIA_ERR",message:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support."},16:{type:"HLS_MUX_ERR",message:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support."},17:{type:"HLS_OTHER_ERR",message:"Rise an internal exception when playing HLS."},18:{type:"DRM_ERR",message:"Current browser not support DRM."},403:{type:"SERVER_ERR",message:"Authentication failed."},500:{type:"SERVER_ERR",message:"Server failed."},1001:{type:"SERVER_ERR",message:"The media file does not exist. Please check if the fileID is correct."},1002:{type:"SERVER_ERR",message:"The trial duration is illegal. The trial duration must be within the video duration."},1003:{type:"SERVER_ERR",message:"Param pcfg is not unique."},1004:{type:"SERVER_ERR",message:"The license has expired. Please check whether the expiration time setting is reasonable."},1005:{type:"SERVER_ERR",message:"Did not find an adaptive stream that can be played."},1006:{type:"SERVER_ERR",message:"Invalid request format, please check the request format."},1007:{type:"SERVER_ERR",message:"AppID is not exist, Please check if the AppID is correct."},1008:{type:"SERVER_ERR",message:"Without anti-leech information."},1009:{type:"SERVER_ERR",message:"psign check failed."},1010:{type:"SERVER_ERR",message:"Other errors."},1021:{type:"SERVER_ERR",message:"qsign invalid."},1012:{type:"DATA_ERR",message:"Response data verification failed."},2001:{type:"SERVER_ERR",message:"Internal error."},10008:{type:"SERVER_ERR",message:"The media file does not exist. Please check if the fileID is correct."},"-2001":{type:"SERVER_ERR",message:"Current browser not support play this stream, please select another one."},"-2002":{type:"SERVER_ERR",message:"Server respond error data.(eg. stream not exist)"},"-2003":{type:"SERVER_ERR",message:"Video play failed, please refresh to start play again."},"-2004":{type:"SERVER_ERR",message:"Connection to the server has failed and the number of connection retries has exceeded the set value."},"-2005":{type:"SERVER_ERR",message:"Video decoding failure."},PLAYER_ERR_DOMAIN_RESTRICTED:{message:"This video is restricted from playing on your current domain."},PLAYER_ERR_IP_RESTRICTED:{message:"This video is restricted at your current IP address."},PLAYER_ERR_GEO_RESTRICTED:{message:"This video is restricted from playing in your current geographic region."}}},initPlugin=function r(t,e){var n=void 0,s=void 0,a=void 0,l=[];videojs.getComponent("ErrorDisplay").prototype.options_.fillAlways=!1;var u=function(v){e.errors=videojs.mergeOptions(e.errors,v),Object.keys(e.errors).forEach(function(_){var I=e.errors[_];I.type||(I.type=_)})};u();var c=function(){t.clearTimeout(s),a&&(a=!1,t.removeClass("vjs-waiting")),s=t.setTimeout(function(){t.error()||t.paused()||t.ended()||(a=!0,t.addClass("vjs-waiting"))},1e3),t.clearTimeout(n),n=t.setTimeout(function(){t.error()||t.paused()||t.ended()||t.error({code:-2,type:"PLAYER_ERR_TIMEOUT"})},e.timeout),t.error()&&t.error().code===-2&&t.error(null)},h=function(){for(var v=void 0;l.length;)v=l.shift(),t.off(v[0],v[1]);t.clearTimeout(n),t.clearTimeout(s)},p=function(v,_){var I=function(){if(!t.error()){var P=t.$(".vjs-tech");if(P&&P.type==="application/x-shockwave-flash"&&!P.vjs_getProperty)return void t.error({code:-2,type:"PLAYER_ERR_TIMEOUT"});if(t.paused()||t.ended())return c()}_.call(this)};t.on(v,I),l.push([v,I])},m=function(){var v=0;h(),c(),p(["timeupdate","adtimeupdate"],function(){var _=t.currentTime();_!==v&&(v=_,c())}),e.progressDisabled||p("progress",c)},b=function(v){var _="",I=t.error(),P=document_1.createElement("div"),A="";if(I){I=videojs.mergeOptions(I,e.errors[I.code||0]),I.message&&(_='<div class="vjs-errors-message">'+t.localize(I.message)+"</div>"),I.code&&(_+='<div class="vjs-errors-code">'+this.localize("Error Code")+" : "+I.code+"</div>"),I.type&&(_+='<div class="vjs-errors-type">'+this.localize("Error Type")+" : "+I.type+"</div>"),I.code!="10"&&I.code!="11"||(_+='<a href="https://ping.huatuo.qq.com/playvideo.qcloud.com" target="_blank" class="vjs-error-check-network">诊断网络</a>'),P.className="vjs-errors-dialog",A=`<div class="vjs-errors-content-container">
|
|
64
|
-
`+_+`
|
|
65
|
-
</div>`;var x=t.getChild("errorDisplay");x.closeable(!("dismiss"in I)||I.dismiss)?(P.innerHTML=A,x.fillWith(P),x.contentEl().firstChild.appendChild(x.getChild("closeButton").el())):(P.innerHTML=A,x.fillWith(P)),x.one("modalclose",function(){return t.error(null)})}},f=function v(){h(),t.removeClass("vjs-errors"),t.off("dispose",v),t.off(["aderror","error"],b)},g=function(v){f(),r(t,videojs.mergeOptions(defaults$1,v))};g.extend=function(v){return u(v)},g.getAll=function(){return videojs.mergeOptions(e.errors)},g.disableProgress=function(v){e.progressDisabled=v,m()},t.on("dispose",f),t.on(["aderror","error"],b),t.ready(function(){t.addClass("vjs-errors")}),t.errors=g},errors=function(r){initPlugin(this,videojs.mergeOptions(defaults$1,r))};["extend","getAll","disableProgress"].forEach(function(r){errors[r]=function(){videojs.log.warn("The errors."+r+"() method is not available until the plugin has been initialized!")}}),registerPlugin("Errors",errors);var Plugin$8=videojs.getPlugin("plugin"),cgiSeq={},STATUS_CODE_REPORT_URL="//report.huatuo.qq.com/code.cgi",log$7=videojs.log,Reporter=function(r){function t(e,n){classCallCheck(this,t),log$7("Reporter initilaizing");var s=possibleConstructorReturn(this,r.call(this,e));if(!e.options_.plugins.Reporter){var a;return a=!1,possibleConstructorReturn(s,a)}return s.reportContent={status:"idle"},s.mtaReportCache=[],log$7("Reporter initilaized"),s}return inherits(t,r),t.prototype.setStorage=function(e,n){localStorage.setItem(e,n)},t.prototype.getStorage=function(e){localStorage.getItem(e)},t.prototype.sender=function(e){var n=new Image;n.onload=n.onerror=n.onabort=function(){n.onload=n.onerror=n.onabort=null,n=null},n.src=e},t.prototype.initPlayCgiCodeReport=function(){var e=this.player;e.on("playcgistart",videojs.bind(this,this.onPlayCgiStart)),e.on("playcgiend",videojs.bind(this,this.onPlayCgiEnd))},t.prototype.onPlayCgiStart=function(e){cgiSeq[e.data.time]=cgiSeq[e.data.time]||{},cgiSeq[e.data.time].startTime=e.data.time,cgiSeq[e.data.time].url=e.data.url},t.reportPlayMetrics=function(e,n){xhr.post("https://datacenter.live.qcloud.com",{body:JSON.stringify(e)},function(){n&&n()})},t.prototype.onPlayCgiEnd=function(e){if(cgiSeq[e.data.startTime]){var n=e.data,s=void 0,a=void 0,l=void 0;if(n.error)switch(a=2,n.error.message){case"Timeout":s=10;break;case"ServerError":s=11}else n.result.code==0?(a=1,s=0):(a=3,s=n.result.code),l=n.result.requestId;this.reportPlayCgiToISD("","",a,s,e.data.time-cgiSeq[e.data.startTime].startTime,l,void 0,void 0)}},t.prototype.reportPlayCgiToISD=function(e,n,s,a,l,u,c,h){var p={domain:e||"playvideo.qcloud.com",cgi:n||"/getplayinfo/v2",type:s,code:a,time:l,appid:20370,platform:videojs.browser.IS_IOS?"ios":videojs.browser.IS_ANDROID?"android":"pc",expansion1:u,expansion2:c,expansion3:h};this.sender(unifyProtocol(STATUS_CODE_REPORT_URL)+"?"+serializeParams(p))},t.prototype.reportMTA=function(e,n){window.MtaH5?(this.mtaReportCache.length>0&&(this.mtaReportCache.forEach(function(s){s.call()}),this.mtaReportCache=0),MtaH5.clickStat(e,n)):this.mtaReportCache.push(function(){MtaH5.clickStat(e,n)})},t}(Plugin$8);videojs.registerPlugin("Reporter",Reporter);var store2=createCommonjsModule(function(r){(function(t,e){var n={version:"2.12.0",areas:{},apis:{},inherit:function(a,l){for(var u in a)l.hasOwnProperty(u)||Object.defineProperty(l,u,Object.getOwnPropertyDescriptor(a,u));return l},stringify:function(a){return a===void 0||typeof a=="function"?a+"":JSON.stringify(a)},parse:function(a,l){try{return JSON.parse(a,l||n.revive)}catch{return a}},fn:function(a,l){n.storeAPI[a]=l;for(var u in n.apis)n.apis[u][a]=l},get:function(a,l){return a.getItem(l)},set:function(a,l,u){a.setItem(l,u)},remove:function(a,l){a.removeItem(l)},key:function(a,l){return a.key(l)},length:function(a){return a.length},clear:function(a){a.clear()},Store:function(a,l,u){var c=n.inherit(n.storeAPI,function(h,p,m){return arguments.length===0?c.getAll():typeof p=="function"?c.transact(h,p,m):p!==void 0?c.set(h,p,m):typeof h=="string"||typeof h=="number"?c.get(h):typeof h=="function"?c.each(h):h?c.setAll(h,p):c.clear()});c._id=a;try{l.setItem("__store2_test","ok"),c._area=l,l.removeItem("__store2_test")}catch{c._area=n.storage("fake")}return c._ns=u||"",n.areas[a]||(n.areas[a]=c._area),n.apis[c._ns+c._id]||(n.apis[c._ns+c._id]=c),c},storeAPI:{area:function(a,l){var u=this[a];return u&&u.area||(u=n.Store(a,l,this._ns),this[a]||(this[a]=u)),u},namespace:function(a,l){if(!a)return this._ns?this._ns.substring(0,this._ns.length-1):"";var u=a,c=this[u];if(!(c&&c.namespace||(c=n.Store(this._id,this._area,this._ns+u+"."),this[u]||(this[u]=c),l)))for(var h in n.areas)c.area(h,n.areas[h]);return c},isFake:function(){return this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(a){return this._area.has?this._area.has(this._in(a)):this._in(a)in this._area},size:function(){return this.keys().length},each:function(a,l){for(var u=0,c=n.length(this._area);u<c;u++){var h=this._out(n.key(this._area,u));if(h!==void 0&&a.call(this,h,this.get(h),l)===!1)break;c>n.length(this._area)&&(c--,u--)}return l||this},keys:function(a){return this.each(function(l,u,c){c.push(l)},a||[])},get:function(a,l){var u,c=n.get(this._area,this._in(a));return typeof l=="function"&&(u=l,l=null),c!==null?n.parse(c,u):l??c},getAll:function(a){return this.each(function(l,u,c){c[l]=u},a||{})},transact:function(a,l,u){var c=this.get(a,u),h=l(c);return this.set(a,h===void 0?c:h),this},set:function(a,l,u){var c=this.get(a);return c!=null&&u===!1?l:n.set(this._area,this._in(a),n.stringify(l),u)||c},setAll:function(a,l){var u,c;for(var h in a)c=a[h],this.set(h,c,l)!==c&&(u=!0);return u},add:function(a,l){var u=this.get(a);if(u instanceof Array)l=u.concat(l);else if(u!==null){var c=typeof u;if(c===typeof l&&c==="object"){for(var h in l)u[h]=l[h];l=u}else l=u+l}return n.set(this._area,this._in(a),n.stringify(l)),l},remove:function(a,l){var u=this.get(a,l);return n.remove(this._area,this._in(a)),u},clear:function(){return this._ns?this.each(function(a){n.remove(this._area,this._in(a))},1):n.clear(this._area),this},clearAll:function(){var a=this._area;for(var l in n.areas)n.areas.hasOwnProperty(l)&&(this._area=n.areas[l],this.clear());return this._area=a,this},_in:function(a){return typeof a!="string"&&(a=n.stringify(a)),this._ns?this._ns+a:a},_out:function(a){return this._ns?a&&a.indexOf(this._ns)===0?a.substring(this._ns.length):void 0:a}},storage:function(a){return n.inherit(n.storageAPI,{items:{},name:a})},storageAPI:{length:0,has:function(a){return this.items.hasOwnProperty(a)},key:function(a){var l=0;for(var u in this.items)if(this.has(u)&&a===l++)return u},setItem:function(a,l){this.has(a)||this.length++,this.items[a]=l},removeItem:function(a){this.has(a)&&(delete this.items[a],this.length--)},getItem:function(a){return this.has(a)?this.items[a]:null},clear:function(){for(var a in this.items)this.removeItem(a)}}},s=n.Store("local",function(){try{return localStorage}catch{}}());s.local=s,s._=n,s.area("session",function(){try{return sessionStorage}catch{}}()),s.area("page",n.storage("page")),typeof e=="function"&&e.amd!==void 0?e("store2",[],function(){return s}):r.exports?r.exports=s:(t.store&&(n.conflict=t.store),t.store=s)})(commonjsGlobal$1,commonjsGlobal$1&&commonjsGlobal$1.define)}),Plugin$9=videojs.getPlugin("plugin"),log$8=videojs.log,ContinuePlay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return s.options=n,s.init(),s}return inherits(t,r),t.prototype.init=function(){var e=this.player,n=e.options_,s=void 0;e.ready(videojs.bind(this,function(){s=n&&n.appID&&n.fileID?n.fileID:this.options.playID,this.playID=s,e.cache_&&e.cache_.source&&e.cache_.source.src&&(this.source=e.cache_.source.src.split("?")[0]),(s||this.source)&&(log$8("ContinuePlay initializing"),this.lastTime=store2.get(this.getStoreKey()),e.off("timeupdate",videojs.bind(this,this.onTimeUpdate)),e.on("timeupdate",videojs.bind(this,this.onTimeUpdate)),e.one(this.getTriggerEvent(),videojs.bind(this,this.onPlay)),!this.options.auto&&e.getChild("ContinuePlayTips")&&e.getChild("ContinuePlayTips").close(),log$8("ContinuePlay initialized"),e.trigger({type:"feature",data:"continue"}))}))},t.prototype.onTimeUpdate=function(e){store2.set(this.getStoreKey(),this.player.currentTime())},t.prototype.onPlay=function(e){var n=this.player;Math.round(this.lastTime)>1&&this.player.duration()>1&&this.player.duration()!==1/0&&Math.round(this.lastTime)!=Math.round(this.player.duration())?this.options.auto?this.start():n.addChild("ContinuePlayTips",videojs.mergeOptions(this.options,{time:this.lastTime,resumeCallback:videojs.bind(this,this.start)})):n.techName_=="Flash"&&Math.round(this.lastTime)>1&&Math.round(this.lastTime)!=Math.round(this.player.duration())&&this.player.duration()!==1/0&&!this.player.duration()&&n.one("loadedmetadata",videojs.bind(this,this.onPlay))},t.prototype.start=function(){var e=this.player;e.currentTime(this.lastTime),e.techName_=="Flash"&&e.tech(!0).trigger("seeked"),e.trigger({type:"continueplay",data:{lastTime:this.lastTime}})},t.prototype.generatePlayID=function(){},t.prototype.getStoreKey=function(){return"tcplayer-lpt-"+(this.playID||this.source)},t.prototype.getTriggerEvent=function(){var e=this.player,n=e.options_;return n.autoplay&&e.techName_=="Flash"?"loadedmetadata":"playing"},t}(Plugin$9);videojs.registerPlugin("ContinuePlay",ContinuePlay);var defaults$2={align:"top-left",className:"",content:"",debug:!1,showBackground:!0,attachToControlBar:!1,overlays:[]},Component$12=videojs.getComponent("Component"),dom$1=videojs.dom||videojs,registerPlugin$1=videojs.registerPlugin||videojs.plugin,isNumber=function(r){return typeof r=="number"&&r===r},hasNoWhitespace=function(r){return typeof r=="string"&&/^\S+$/.test(r)},Overlay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return["start","end"].forEach(function(a){var l=s.options_[a];if(isNumber(l))s[a+"Event_"]="timeupdate";else if(hasNoWhitespace(l))s[a+"Event_"]=l;else if(a==="start")throw new Error('invalid "start" option; expected number or string')}),["endListener_","rewindListener_","startListener_"].forEach(function(a){s[a]=function(l){return t.prototype[a].call(s,l)}}),s.startEvent_==="timeupdate"&&s.on(e,"timeupdate",s.rewindListener_),s.debug('created, listening to "'+s.startEvent_+'" for "start" and "'+(s.endEvent_||"nothing")+'" for "end"'),s.hide(),s}return inherits(t,r),t.prototype.createEl=function(){var e=this.options_,n=e.content,s=e.showBackground?"tcp-overlay-background":"tcp-overlay-no-background",a=dom$1.createEl("div",{className:`
|
|
79
|
+
`)}}autoSetupTimeout(1,videojs),videojs.VERSION=version,videojs.options=Player.prototype.options_,videojs.getPlayers=function(){return Player.players},videojs.players=Player.players,videojs.getComponent=Component.getComponent,videojs.registerComponent=function(r,t){Tech.isTech(t)&&log$2.warn("The "+r+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Component.registerComponent.call(Component,r,t)},videojs.getTech=Tech.getTech,videojs.registerTech=Tech.registerTech,videojs.use=use,videojs.browser=browser,videojs.TOUCH_ENABLED=TOUCH_ENABLED,videojs.extend=extendFn,videojs.mergeOptions=mergeOptions,videojs.bind=bind,videojs.registerPlugin=Plugin.registerPlugin,videojs.plugin=function(r,t){return log$2.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Plugin.registerPlugin(r,t)},videojs.getPlugins=Plugin.getPlugins,videojs.getPlugin=Plugin.getPlugin,videojs.getPluginVersion=Plugin.getPluginVersion,videojs.addLanguage=function(r,t){var e;return r=(""+r).toLowerCase(),videojs.options.languages=mergeOptions(videojs.options.languages,(e={},e[r]=t,e)),videojs.options.languages[r]},videojs.log=log$2,videojs.createTimeRange=videojs.createTimeRanges=createTimeRanges,videojs.formatTime=formatTime,videojs.parseUrl=parseUrl,videojs.isCrossOrigin=isCrossOrigin,videojs.EventTarget=EventTarget,videojs.on=on,videojs.one=one,videojs.off=off,videojs.trigger=trigger,videojs.xhr=xhr,videojs.TextTrack=TextTrack,videojs.AudioTrack=AudioTrack,videojs.VideoTrack=VideoTrack,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(r){videojs[r]=function(){return log$2.warn("videojs."+r+"() is deprecated; use videojs.dom."+r+"() instead"),Dom[r].apply(null,arguments)}}),videojs.computedStyle=computedStyle,videojs.dom=Dom,videojs.url=Url;var strictUriEncode=function(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})},getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty$5=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable,objectAssign=shouldUseNative()?Object.assign:function(r,t){for(var e,n,s=toObject(r),a=1;a<arguments.length;a++){e=Object(arguments[a]);for(var l in e)hasOwnProperty$5.call(e,l)&&(s[l]=e[l]);if(getOwnPropertySymbols){n=getOwnPropertySymbols(e);for(var u=0;u<n.length;u++)propIsEnumerable.call(e,n[u])&&(s[n[u]]=e[n[u]])}}return s},token="%[a-f0-9]{2}",singleMatcher=new RegExp(token,"gi"),multiMatcher=new RegExp("("+token+")+","gi"),decodeUriComponent=function(r){if(typeof r!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof r+"`");try{return r=r.replace(/\+/g," "),decodeURIComponent(r)}catch{return customDecodeURIComponent(r)}},extract_1=extract,parse_1=parse,stringify=function(r,t){t=objectAssign({encode:!0,strict:!0,arrayFormat:"none"},t),t.sort===!1&&(t.sort=function(){});var e=encoderForArrayFormat(t);return r?Object.keys(r).sort(t.sort).map(function(n){var s=r[n];if(s===void 0)return"";if(s===null)return encode(n,t);if(Array.isArray(s)){var a=[];return s.slice().forEach(function(l){l!==void 0&&a.push(e(n,l,a.length))}),a.join("&")}return encode(n,t)+"="+encode(s,t)}).filter(function(n){return n.length>0}).join("&"):""},parseUrl$1=function(r,t){return{url:r.split("?")[0]||"",query:parse(extract(r),t)}},queryString={extract:extract_1,parse:parse_1,stringify,parseUrl:parseUrl$1},count=0,MediaAsyncLoader=function(r){function t(e,n,s){classCallCheck(this,t),log$2("MediaAsyncLoader initializing");var a=mergeOptions({createEl:!1},n),l=possibleConstructorReturn(this,r.call(this,e,a,s));l.enModule=new Enc,e.loadVideoByID=bind(l,l.loadVideoByID);var u=a.playerOptions||a;if(!u.fileID){var c;return c=!1,possibleConstructorReturn(l,c)}return l.getInfo(u),log$2("MediaAsyncLoader initialized"),l}return inherits(t,r),t.prototype.getInfo=function(e){e&&e.fileID&&e.appID&&(performance&&typeof performance.mark=="function"&&performance.mark("firstFrameStart"),e.playDefinition?this.getInfoV3(e):e.sign||e.ssign?this.getInfoV2(e):this.getInfoV4(e))},t.prototype.getInfoV2=function(e){var n=this.player(),s=this.assemblyPath("getplayinfo",e.appID,e.fileID),a=e.t,l=e.us,u=e.exper,c=e.sign,h={};e.ssign?h.super_sign=e.ssign:c&&(h={t:a,sign:c},(l||l==0)&&(h.us=l),(u||u==0)&&(h.exper=u,n.trigger({type:"feature",data:"exper"})),n.trigger({type:"feature",data:"key"})),e.playerID&&(h.playerid=e.playerID),this.requestTimestamp=+new Date().getTime(),n.trigger({type:"playcgistart",data:{time:this.requestTimestamp,url:s}}),log$2("playcgi loading");var p=queryString.stringify(h);p&&(s+=(~s.indexOf("?")?"&":"?")+p,s=s.replace("?&","?")),this.getInfoRetryTimes=0,this.getInfoRequest=function(g){g&&(s=s.replace(SERVER_PATH,SERVER_PATH_BACKUP)),IE_VERSION&&IE_VERSION<10?jsonp(s,{param:h,timeout:3e3,prefix:"TcCallBack"},bind(this,this.onResult)):xhr({url:s,timeout:3e3},bind(this,this.onResult))},this.getInfoRequest()},t.prototype.onResult=function(e,n,s){try{s?n=JSON.parse(s):e||n||(e=new Error("ServerError"))}catch{e=new Error("ServerError")}var a=this.player();if(e){if(log$2("playcgi loaded failure"),this.getInfoRetryTimes<3)return this.getInfoRetryTimes++,void this.getInfoRequest();if(this.getInfoRetryTimes<6)return this.getInfoRetryTimes++,void this.getInfoRequest({isBackup:!0});a.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:e,result:n}});var l=12;switch(e.message){case"XMLHttpRequest timeout":case"Timeout":l=10;break;case"ServerError":l=11}this.player().error({code:l})}else{if(a.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:e,result:n}}),n.code!=0)return log$2("playcgi loaded failure"),void this.player().error({code:n.code});log$2("playcgi loaded success");var u=n.coverInfo,c=n.videoInfo,h=n.playerInfo;this.setPoster(u),this.setLogo(h),this.setSrc(n),this.setPatch(h),this.setVttThumbnail(n),this.setDots(n),this.setOriginDuration(c),this.setPlayList(h)}},t.prototype.getInfoV3=function(e){var n=this.player(),s=this.assemblyPathV3("getplayinfo",e.appID,e.fileID,e.playDefinition),a=e.t,l=e.us,u=e.rlimit,c=e.sign,h={};e.ssign?h.super_sign=e.ssign:c&&(h={t:a,sign:c},(l||l==0)&&(h.us=l),u&&(h.rlimit=u),n.trigger({type:"feature",data:"key"})),e.playerID&&(h.playerid=e.playerID),this.requestTimestamp=+new Date().getTime(),n.trigger({type:"playcgistart",data:{time:this.requestTimestamp,url:s}}),log$2("playcgi v3 loading");var p=queryString.stringify(h);p&&(s+=(~s.indexOf("?")?"&":"?")+p,s=s.replace("?&","?")),this.getInfoRetryTimes=0,this.getInfoRequest=function(g){g&&(s=s.replace(SERVER_PATH_V3,SERVER_PATH_BACKUP)),IE_VERSION&&IE_VERSION<10?jsonp(s,{param:h,timeout:3e3,prefix:"TcCallBack"},bind(this,this.onResultV3)):xhr({url:s,timeout:3e3},bind(this,this.onResultV3))},this.getInfoRequest()},t.prototype.onResultV3=function(e,n,s){try{s?n=JSON.parse(s):e||n.body||(e=new Error("ServerError"))}catch{e=new Error("ServerError")}var a=this.player();if(e){if(log$2("playcgi v3 loaded failure"),this.getInfoRetryTimes<3)return this.getInfoRetryTimes++,void this.getInfoRequest();if(this.getInfoRetryTimes<6)return this.getInfoRetryTimes++,void this.getInfoRequest({isBackup:!0});a.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:e,result:n}});var l=12;switch(e.message){case"XMLHttpRequest timeout":case"Timeout":l=10;break;case"ServerError":l=11}this.player().error({code:l})}else{if(a.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:e,result:n}}),n.code!=0)return log$2("playcgi v3 loaded failure"),void this.player().error({code:n.code});log$2("playcgi v3 loaded success");var u=n.mediaInfo,c=n.playerInfo;this.setPoster({coverUrl:u.basicInfo.coverUrl}),this.setLogo(c),this.setSrcV3(u),this.setPatch(c),this.setVttThumbnail(u),this.setDots(u)}},t.prototype.setSrcV3=function(e,n){var s=this,a=this.player(),l=a.options_.plugins,u=a.DRM().options||l.DRM,c=void 0,h=void 0,p=void 0,g=[],v={},y={};if(n=n||(u?u.skipPlan:""),e.previewStreamingInfo&&e.previewStreamingInfo.previewStreamingList.length>0)e.previewStreamingInfo.previewStreamingList.forEach(function(C,I){C.mineType=s.getMIMEType(C.url),v[getFileExtension(C.url)]=C});else{if(!(e.dynamicStreamingInfo.adaptiveStreamingInfoList&&e.dynamicStreamingInfo.adaptiveStreamingInfoList.length>0))return void this.player().error({code:13,message:"no video stream"});if(e.dynamicStreamingInfo.adaptiveStreamingInfoList.forEach(function(C,I){C.mineType=s.getMIMEType(C.url),y[C.drmType.toLowerCase()||getFileExtension(C.url)]=C}),u&&u.token?(c=u.token,p=u.certificateUri,n=IS_SAFARI&&!p?"fairplay":n,h=window_1.encodeURIComponent(c)):n="all",(IS_CHROME||IS_FIREFOX)&&window_1.navigator.requestMediaKeySystemAccess&&y.widevine&&n!="widevine"&&n!="all"?(g.push({src:unifyProtocol(y.widevine.url),type:this.getMIMEType(y.widevine.url),keySystems:{"com.widevine.alpha":{serverURL:LICENSE_PATH+"?token="+h+"&drmType="+y.widevine.drmType}}}),log$2("DRM source widevine",g)):IS_SAFARI&&!IS_MQQB&&y.fairplay&&n!="fairplay"&&n!="all"&&(g.push({src:unifyProtocol(y.fairplay.url),type:this.getMIMEType(y.fairplay.url),keySystems:{"com.apple.fps.1_0":{certificateUri:p,licenseUri:LICENSE_PATH+"?token="+h+"&drmType="+y.fairplay.drmType}}}),log$2("DRM source fairplay",g)),y.simpleaes&&n!="all"){var _=y.simpleaes.url.split("/");_[_.length-1]="voddrm.token."+h+"."+_[_.length-1],g.push({src:unifyProtocol(_.join("/")),type:this.getMIMEType(y.simpleaes.url)}),log$2("DRM source simpleaes",g)}y.m3u8&&g.push({src:unifyProtocol(y.m3u8.url),type:this.getMIMEType(y.m3u8.url)}),y.mpd&&g.push({src:unifyProtocol(y.mpd.url),type:this.getMIMEType(y.mpd.url)})}if(!(g.length>0))return void this.player().error({code:4});a.src(g);var b=function(C){return log$2("DRM init Error",g),C.data.code!==5&&C.data.code!==2||!g[0].keySystems["com.widevine.alpha"]?C.data.code===3&&g[0].keySystems["com.apple.fps.1_0"]?void s.setSrcV3(e,"fairplay"):C.data.code===14||C.data.code===3?void s.setSrcV3(e,"all"):void 0:void s.setSrcV3(e,"widevine")};n!=="all"&&(window_1.setTimeout(function(){a.one("error",b)},0),a.one("playing",function(C){}))},t.prototype.getInfoV4=function(e){var n=this.player(),s=this.assemblyPathV4("getplayinfo",e.appID,e.fileID),a=n.options_,l=e.t,u=e.us,c=e.rlimit,h=e.psign,p=e.exper,g={};e.ssign?g.super_sign=e.ssign:h&&(g={t:l,psign:h},(u||u==0)&&(g.us=u),c&&(g.rlimit=c),p&&(g.exper=p)),e.playerConfig&&(g.pcfg=e.playerConfig),e.playerID&&(g.playerid=e.playerID),this.requestTimestamp=+new Date().getTime(),n.trigger({type:"playcgistart",data:{time:this.requestTimestamp,url:s}}),log$2("playcgi v4 loading");var v=queryString.stringify(g);v?(s+=(~s.indexOf("?")?"&":"?")+v,s=s.replace("?&","?")):s+=~s.indexOf("?")?"":"?";var y=a&&a.hlsConfig&&(a.hlsConfig.disable||a.hlsConfig.skipHlsJs);s=this.enModule.generatePlayCgiUrl(s,browser,y),this.getInfoRetryTimes=0,this.getInfoRequest=function(_){_&&(s=s.replace(SERVER_PATH_V4,SERVER_PATH_BACKUP)),IE_VERSION&&IE_VERSION<10?jsonp(s,{param:g,timeout:3e3,prefix:"TcCallBack"},bind(this,this.onResultV4)):xhr({url:s,timeout:3e3},bind(this,this.onResultV4))},this.getInfoRequest()},t.prototype.onResultV4=function(e,n,s){var a=n,l=a.rawRequest;try{s?n=JSON.parse(s):e||n.body||(e=new Error("ServerError"))}catch{e=new Error("ServerError")}var u=this.player();if(e){if(log$2("playcgi v4 loaded failure"),this.getInfoRetryTimes<3)return this.getInfoRetryTimes++,void this.getInfoRequest();if(this.getInfoRetryTimes<6)return this.getInfoRetryTimes++,void this.getInfoRequest({isBackup:!0});u.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:e,result:n}});var c=12;switch(e.message){case"XMLHttpRequest timeout":case"Timeout":c=10;break;case"ServerError":c=11}this.player().error({code:c})}else{if(u.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:e,result:n,rawRequest:l,overlayIv:this.enModule.overlayIv,overlayKey:this.enModule.overlayKey}}),n.code!=0){if(log$2("playcgi v4 loaded failure"),n.code>=2e3&&n.code<3e3){if(this.getInfoRetryTimes<3)return this.getInfoRetryTimes++,void this.getInfoRequest();if(this.getInfoRetryTimes<6)return this.getInfoRetryTimes++,void this.getInfoRequest({isBackup:!0})}return void this.player().error({code:n.code})}if(log$2("playcgi v4 loaded success",n),n.version===4){var h=n.media;this.setPoster({coverUrl:h.basicInfo.coverUrl}),this.setSrcV4(h),this.setVttThumbnailV4(h),this.setDots(h),this.setOriginDurationV4(h),this.setGhostContent(h.ghostWatermarkInfo)}else if(n.version===2){var p=n.coverInfo,g=n.videoInfo,v=n.playerInfo;this.setPoster(p),this.setLogo(v),this.setSrc(n),this.setPatch(v),this.setVttThumbnail(n),this.setDots(n),this.setOriginDuration(g)}}},t.prototype.setSrcV4=function(e,n){var s=this,a=this.player(),l=a.options_,u=void 0,c=a.options_.plugins,h=a.DRM().options||c.DRM,p=[],g="plain";n=n||(h?h.skipPlan:"");var v=[],y=[];if(e.audioVideoType==="Original"||e.audioVideoType==="Transcode")return this.setSrc(e),!1;if(!e.streamingInfo)return void this.player().error({code:13,message:"no stream info"});if(e.streamingInfo){if(e.streamingInfo.drmOutput&&Array.isArray(e.streamingInfo.drmOutput)){for(var _=e.streamingInfo.drmOutput,b=0;b<_.length;b++)y.push(_[b].type);if(IS_ANY_SAFARI&&!IS_MQQB&&y.indexOf("FairPlay")!==-1&&n!="fairplay"&&n!="all"){var C=y.indexOf("FairPlay"),I=_[C].subStreams;p.push(I),v.push({src:unifyProtocol(_[C].url),type:this.getMIMEType(_[C].url),qualityLabelList:I,keySystems:{"com.apple.fps.1_0":{certificateUri:e.streamingInfo.fairPlayCertificateUrl||(h||{}).certificateUri,licenseUri:e.streamingInfo.fairplayLicenseUrl}}}),log$2("DRM source fairplay",u)}else if(window_1.navigator.requestMediaKeySystemAccess&&y.indexOf("Widevine")!==-1&&!IS_SAFARI&&n!=="widevine"&&n!=="all"){var N=y.indexOf("Widevine"),x=_[N].subStreams,F=x[x.length-1];(F.type==="audio"||F.width===0&&F.height===0)&&x.pop(),p.push(x),v.push({src:unifyProtocol(_[N].url),type:this.getMIMEType(_[N].url),qualityLabelList:x,keySystems:{"com.widevine.alpha":{serverURL:e.streamingInfo.widevineLicenseUrl}}}),log$2("DRM source widevine",u)}if(y.indexOf("SimpleAES")!==-1&&n!="all"){var P,d=y.indexOf("SimpleAES");g="SimpleAES";var m=_[d].url.split("/");m[m.length-1]="voddrm.token."+e.streamingInfo.drmToken+"."+m[m.length-1],u=m.join("/");var E=_[d].subStreams;p.push(_[d].subStreams),u&&v.push({src:unifyProtocol(u),type:EXT_MIME.m3u8,qualityLabelList:E,keySystems:(P={},P[g]={},P)})}}else if(e.streamingInfo.plainOutput){var k;u=e.streamingInfo.plainOutput.url;var D=e.streamingInfo.plainOutput.subStreams;p.push(e.streamingInfo.plainOutput.subStreams),u&&v.push({src:unifyProtocol(u),type:EXT_MIME.m3u8,qualityLabelList:D,keySystems:(k={},k[g]={},k)})}this.setHlsConfig(l,p[0],!1),v.length>0?a.src(v):y.length!==0?!n&&this.player().error({code:18}):this.player().error({code:13,message:"no stream info"}),this.setQualityLabelList(p[0])}var L=function(G){return log$2("DRM init Error",v),v[0].keySystems["com.widevine.alpha"]?void s.setSrcV4(e,"widevine"):v[0].keySystems["com.apple.fps.1_0"]?void s.setSrcV4(e,"fairplay"):G.data.code===3?void s.setSrcV4(e,"all"):void 0};n!=="all"&&window_1.setTimeout(function(){a.one("error",L)},0)},t.prototype.setHlsConfig=function(e,n,s){var a={};(!IS_ENABLED_MSE||IS_TBS||IS_MQQB||IE_VERSION&&IE_VERSION<11)&&!IS_SIMULATOR||(a={overlayKey:this.enModule&&this.enModule.overlayKey,overlayIv:this.enModule&&this.enModule.overlayIv}),e.hlsConfig?(e.hlsConfig.qualityLabelList=n,e.hlsConfig.startLevel||(e.hlsConfig.startLevel=n?n.length-1:5)):e.hlsConfig={qualityLabelList:n,startLevel:n?n.length-1:5},Object.assign(e.hlsConfig,a,{forbid:s})},t.prototype.setQualityLabelList=function(e){this.player().QualitySwitcher().setOptions({qualityLabelList:{video:e}})},t.prototype.setLogo=function(e){var n=this.player();e.logoPic?(n.logoImage.update({img:{url:unifyProtocol(e.logoPic),position:e.logoLocation},link:unifyProtocol(e.logoUrl)}),n.trigger({type:"feature",data:"logo"})):n.logoImage.reset()},t.prototype.setPoster=function(e){var n=this.player();e&&e.coverUrl?n.poster(unifyProtocol(e.coverUrl)):n.options_.playerOptions.poster||n.poster("")},t.prototype.setDots=function(e){var n=this.player();if(n.options_.dots=[],e.keyFrameDescInfo&&e.keyFrameDescInfo.keyFrameDescList&&e.keyFrameDescInfo.keyFrameDescList.length>0){var s=e.keyFrameDescInfo.keyFrameDescList;n.options_.dots=s}var a=n.options_.plugins;a&&a.ProgressMarker&&a.ProgressMarker.markers&&a.ProgressMarker.markers.length>0&&(n.options_.dots=n.options_.dots.concat(a.ProgressMarker.markers)),n.ProgressMarker().init()},t.prototype.setSrc=function(e){var n=this.player(),s=e.videoInfo||{};if(e.audioVideoType==="Original"&&(s.sourceVideo=e.originalInfo),e.audioVideoType==="Transcode"&&(s.sourceVideo=e.transcodeInfo),(n.options_.definition!=null||n.options_.definition!=null)&&s.transcodeList&&s.transcodeList.length>0){n.trigger({type:"feature",data:"definition"});var a=this.getSrcByDefinition(s,n.options_.definition);if(a)return n.src({src:unifyProtocol(a.url),type:this.getMIMEType(a.url)}),!0}if(n.MultiResolution().reset(),s.masterPlayList){n.src(this.getMasterSouces(s));var l=n.options_.hlsConfig;l?l.forbid=!0:Object.assign(n.options_,{hlsConfig:{forbid:!0}}),this.setQualityLabelList([]),n.MultiResolution().store(this.getMultiResolutionData(e))}else if(s.transcodeList&&s.transcodeList.length>0){var u=this.getMultiResolutionData(e);if(u.showOrder.length>0)n.MultiResolution().init(u);else{var c=s.transcodeList[0].url;n.src({src:unifyProtocol(c),type:this.getMIMEType(c)})}}else s.sourceVideo&&this.getMIMEType(s.sourceVideo.url)?n.src({src:unifyProtocol(s.sourceVideo.url),type:this.getMIMEType(s.sourceVideo.url)}):this.player().error({code:13})},t.prototype.setPatch=function(e){var n=this.player();e.patchInfo?n.ImagePatch().init(e.patchInfo):n.ImagePatch().reset()},t.prototype.setVttThumbnail=function(e){var n=this.player();e.imageSpriteInfo&&e.imageSpriteInfo.imageSpriteList?n.ready(bind(this,function(){n.VttThumbnail().init({vttUrl:unifyProtocol(e.imageSpriteInfo.imageSpriteList[0].webVttUrl)})})):n.VttThumbnail().reset()},t.prototype.setVttThumbnailV4=function(e){var n=this.player();e.imageSpriteInfo&&e.imageSpriteInfo.webVttUrl?n.ready(bind(this,function(){n.VttThumbnail().init({vttUrl:unifyProtocol(e.imageSpriteInfo.webVttUrl)})})):n.VttThumbnail().reset()},t.prototype.setOriginDuration=function(e){var n=this.player();if(n.options_.exper>0){var s=e.sourceVideo?e.sourceVideo.floatDuration:e.transcodeList[0].floatDuration;n.one("play",function(){n.duration(s)})}},t.prototype.setOriginDurationV4=function(e){var n=this,s=this.player();s.cache_.originDuration=e.basicInfo.duration,s.off("durationchange",this.keepOriginDuration),s.one("durationchange",function(a){(!s.duration()||s.duration()>0&&Math.floor(s.cache_.originDuration)!==Math.floor(s.duration()))&&(n.keepOriginDuration(a),s.on("durationchange",n.keepOriginDuration))})},t.prototype.setGhostContent=function(e){if(e){var n=this.player(),s=n&&n.DynamicWatermark();s.options.content=e.text,s.options.keep=!0,s.init()}},t.prototype.keepOriginDuration=function(e){var n=this.player(),s=n.cache_.originDuration;Math.floor(s)!==Math.floor(n.duration())&&(log$2("试看视频"),n.duration(Math.round(s)))},t.prototype.getMasterSouces=function(e){var n=e.masterPlayList,s=[];return s.push({src:unifyProtocol(n.url),type:EXT_MIME.m3u8}),s},t.prototype.getMultiResolutionData=function(e){var n={sources:{},labels:{},showOrder:[],defaultRes:""},s=[],a=e.videoInfo.transcodeList,l=this;return e.playerInfo.videoClassification.forEach(function(u,c){a.length>0&&(a=a.filter(function(h){if(!(u.definitionList.indexOf(h.definition)>-1))return!0;s[u.id]||(n.showOrder.push(u.id),n.labels[u.id]=u.name,s[u.id]=[]),s[u.id].push({src:unifyProtocol(h.url),type:l.getMIMEType(h.url)})}))}),n.sources=s,n.defaultRes=e.playerInfo.defaultVideoClassification||Object.keys(s)[0],n},t.prototype.getSrcByDefinition=function(e,n){var s=e.transcodeList,a=e.sourceVideo;if(n==0)return a;for(var l=0;l<s.length;l++)if(s[l].definition==n)return s[l]},t.prototype.getMIMEType=function(e){var n=EXT_MIME[getFileExtension(e)];return n||(log$2.error("MIME type no found! Ext = "+getFileExtension(e)),"")},t.prototype.assemblyPath=function(e,n,s){var a=window_1.location.protocol;return a!="http:"&&a!="https:"&&(a="https:"),""+a+SERVER_PATH+"/"+e+"/v2/"+n+"/"+s},t.prototype.assemblyPathV3=function(e,n,s,a){var l=window_1.location.protocol;return l!="http:"&&l!="https:"&&(l="https:"),""+l+SERVER_PATH_V3+"/"+e+"/v3/"+n+"/"+s+"/"+a},t.prototype.assemblyPathV4=function(e,n,s){var a=window_1.location.protocol;return a!="http:"&&a!="https:"&&(a="https:"),""+a+SERVER_PATH_V4+"/"+e+"/v4/"+n+"/"+s},t.prototype.customHost=function(e){var n=this.player();n.options_.customHost&&/^(?=^.{3,255}$)[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+$/.test(n.options_.customHost)&&(e.masterPlayList&&(e.masterPlayList.url=replaceHost(e.masterPlayList.url,n.options_.customHost)),e.sourceVideo&&(e.sourceVideo.url=replaceHost(e.sourceVideo.url,n.options_.customHost)),e.transcodeList.length>0&&e.transcodeList.forEach(function(s,a){s.url=replaceHost(s.url,n.options_.customHost)}),n.trigger({type:"feature",data:"customHost"}))},t.prototype.loadVideoByID=function(e){var n=this.player();n.trigger({type:"loadnewvideo"}),n.hasStarted(!1),this.getInfo(e),n.duration(0),n.playbackRate(1),n.options_.appID=e.appID,n.options_.fileID=e.fileID,n.options_.psign=e.psign,e.definition&&(n.options_.definition=e.definition),n.bigPlayButton&&n.bigPlayButton.show(),n.options_.plugins.ContinuePlay&&n.ContinuePlay().init()},t.prototype.setPlayList=function(e){this.player().options_.plugins.PlayList||e.playlist&&e.playlist.data instanceof Array&&e.playlist.data.length>0&&this.player_.PlayList(e.playlist)},t}(Component);Component.registerComponent("MediaAsyncLoader",MediaAsyncLoader),videojs.getComponent("Component");var ClickableComponent$2=videojs.getComponent("ClickableComponent"),positionMap=["left-top","left-bottom","right-top","right-bottom"],LogoImage=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return e.on("logochange",videojs.bind(s,function(a){this.update(a.data)})),n.img&&s.update(n),s}return inherits(t,r),t.prototype.createEl=function(){var e=videojs.dom.createEl("div",{className:"tcp-logo vjs-hidden"}),n=videojs.dom.createEl("a",{className:"tcp-logo-link",target:"_blank"}),s=videojs.dom.createEl("img",{className:"tcp-logo-img"});return this.linkEl_=n,this.imgEl_=s,n.appendChild(s),e.appendChild(n),e},t.prototype.update=function(e){var n=e.img,s=e.link;this.setImg(n),this.setHref(s),this.options_=videojs.mergeOptions(this.options_,e),this.show()},t.prototype.setImg=function(e){if(this.imgEl_){this.imgEl_.src=e.url;var n=positionMap[e.position]||e.position||"left-top";videojs.dom.addClass(this.el_,n)}},t.prototype.setHref=function(e){this.linkEl_&&e&&(this.linkEl_.href=e)},t.prototype.reset=function(){this.hide(),this.imgEl_.removeAttribute("src"),this.linkEl_.removeAttribute("href")},t}(ClickableComponent$2);videojs.registerComponent("LogoImage",LogoImage);var Component$3=videojs.getComponent("Component"),Button$2=videojs.getComponent("Button"),ContinuePlayTips=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.init(n),s}return inherits(t,r),t.prototype.createEl=function(){return videojs.dom.createEl("div",{className:"tcp-continue-play-tips"})},t.prototype.close=function(){this.hide()},t.prototype.init=function(e){var n=this.addChild("closeButton",{controlText:"Close"});this.on(n,"close",this.close),this.addChild("ContinuePlayTipsContent",e);var s=this.addChild("ContinuePlayButton",e);this.on(s,["tap","click"],this.close),this.setTimeout(function(){this.close()},3500)},t}(Component$3);videojs.registerComponent("ContinuePlayTips",ContinuePlayTips);var ContinuePlayTipsContent=function(r){function t(e,n){return classCallCheck(this,t),possibleConstructorReturn(this,r.call(this,e,n))}return inherits(t,r),t.prototype.createEl=function(){var e=videojs.dom.createEl("span",{className:"tcp-continue-play-tips-content"}),n=videojs.dom.createEl("span",{className:"tcp-text",textContent:this.localize(this.options_.text||"Last time play at ")}),s=videojs.dom.createEl("span",{className:"tcp-time",textContent:videojs.formatTime(this.options_.time)});return this.textEl_=n,this.timeEl_=s,e.appendChild(n),e.appendChild(s),e},t}(Component$3);videojs.registerComponent("ContinuePlayTipsContent",ContinuePlayTipsContent);var ContinuePlayButton=function(r){function t(e,n){return classCallCheck(this,t),possibleConstructorReturn(this,r.call(this,e,n))}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"button",{className:"tcp-continue-play-buttom",textContent:this.localize(this.options_.btnText||"Resume play")})},t.prototype.handleClick=function(){this.options_.resumeCallback.call()},t}(Button$2);videojs.registerComponent("ContinuePlayButton",ContinuePlayButton);var Component$4=videojs.getComponent("Component"),LevelSwitchTips=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.playing=!1,s.timeoutID=void 0,s.levelSwitch=e.options_.plugins.ContextMenu.levelSwitch,s.init(),e.on("playing",videojs.bind(s,function(){s.playing=!0})),e.on("resolutionswitching",videojs.bind(s,function(a){if(s.playing)if(a.data.label)s.switchHandler(s.createSwitching(a.data.label),2e3);else{var l=s.player().QualitySwitcher().options.qualityData;if(l){var u=l.video.filter(function(c){return a.data.newQuality===c.id})[0];s.switchHandler(s.createSwitching(u.label),2e3)}}})),e.on("resolutionswitched",videojs.bind(s,function(){s.playing&&s.switchHandler(s.createSwitched(),2e3)})),e.on("levelSwitchError",videojs.bind(s,function(){s.switchHandler(s.createSwitchError(),2e3)})),s}return inherits(t,r),t.prototype.switchHandler=function(e,n){var s=this;this.timeoutID&&clearTimeout(this.timeoutID),this.textNode.innerText=e,this.show(),this.timeoutID=setTimeout(function(){s.hide()},n)},t.prototype.createEl=function(){var e=videojs.dom.createEl("div",{className:"tcp-switch vjs-hidden"});return this.textNode=videojs.dom.createEl("div",{innerText:""}),e.appendChild(this.textNode),e},t.prototype.init=function(){var e=this.addChild("closeButton",{controlText:"Close"});this.on(e,"close",this.hide)},t.prototype.createSwitching=function(e){return this.levelSwitch.switchingText?this.levelSwitch.switchingText+e:"正在为您切换至"+e},t.prototype.createSwitched=function(){return this.levelSwitch.switchedText?this.levelSwitch.switchedText:"切换成功"},t.prototype.createSwitchError=function(){return this.levelSwitch.switchErrorText?this.levelSwitch.switchErrorText:"切换失败"},t.prototype.show=function(){r.prototype.show.call(this),this.popped=!0},t.prototype.hide=function(){r.prototype.hide.call(this),this.popped=!1},t}(Component$4);videojs.registerComponent("LevelSwitchTips",LevelSwitchTips);var Component$7=videojs.getComponent("Component"),mapKey={fileID:"file ID",requestID:"request ID",mediaType:"media type",mimeType:"mime type",provider:"provider",resolution:"resolution",rate:"rate",frames:"frames",buffer:"buffer",connectionSpeed:"connection speed",info:"info"},VideoTextItem=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.display=!1,s.displayData="loading",s}return inherits(t,r),t.prototype.createEl=function(){var e=videojs.dom.createEl("div",{className:"tcp-statistic-line vjs-hidden"}),n=videojs.dom.createEl("span",{className:"tcp-statistic-title",innerText:mapKey[this.options_.key]+":"}),s=videojs.dom.createEl("span",{className:"tcp-statistic-data",innerText:this.options_.data});return e.appendChild(n),e.appendChild(s),e},t.prototype.updateTextNode_=function(){for(var e=this.el_.lastChild;e.firstChild;)e.removeChild(e.firstChild);this.displayData&&this.show(),this.textNode_=document_1.createTextNode(this.displayData||""),e.appendChild(this.textNode_)},t.prototype.updateContent=function(e){e!==this.displayData&&(this.displayData=e,this.requestAnimationFrame(this.updateTextNode_))},t.prototype.isDisplay=function(){return this.display},t.prototype.show=function(){r.prototype.show.call(this),this.display=!0,this.popped=!0},t.prototype.hide=function(){r.prototype.hide.call(this),this.display=!1,this.popped=!1},t.prototype.reset=function(){r.prototype.hide.call(this),this.display=!1,this.displayData=""},t}(Component$7);videojs.registerComponent("VideoTextItem",VideoTextItem);var defaultConfig={enableRecoverMediaError:!0,recoverMediaErrorMaxRetry:5,fragLoadingMaxRetry:3,abrMaxWithRealBitrate:!0},Html5HlsJS=function(){function r(t,e,n){var s=this;classCallCheck(this,r);var a={},l=e.player();t.keySystems&&t.keySystems["com.widevine.alpha"]&&t.keySystems["com.widevine.alpha"].serverURL?(n.hlsConfig.widevineLicenseUrl=t.keySystems["com.widevine.alpha"].serverURL,n.hlsConfig.enableWorker=!0,n.hlsConfig.emeEnabled=!0,n.hlsConfig.startLevel=(n.hlsConfig.qualityLabelList||[]).length-1,a=n.hlsConfig):a=e.player_.options_.hlsConfig||n.hlsConfig||{},a.forbid&&(delete a.overlayKey,delete a.overlayIv),this.drmBackup=n.hlsConfig&&n.hlsConfig.drmBackup;var u=function(){var c=window.Hls;l.trigger({type:"debug",data:{message:"debug === 加载hls.js完成,进入初始化 hls 阶段"}});var h=new c(videojs.mergeOptions(defaultConfig,a)),p=e.el();s.Hls=c,s.tech=e,s.hls=h,s.switchStatus="",s.manifests=[],s.subtitlesLoadedCount=0,s.audioTrackLoadedCount=0,s.subtitles=[],s.audioTracks=[],s.hlsjsErrorHandler=s.errorHandlerFactory(),h.on(c.Events.ERROR,s.onError.bind(s)),h.on(c.Events.MANIFEST_PARSED,videojs.bind(s,s.onMetaData)),h.on(c.Events.MANIFEST_LOADED,s.loadSubtiles.bind(s)),h.on(c.Events.MANIFEST_LOADED,s.loadAudioTracks.bind(s)),h.on(c.Events.LEVEL_LOADED,s.onLevelLoaded.bind(s)),l.on("ready",s.addHlsSubtitles.bind(s));for(var g in c.Events)h.on(c.Events[g],videojs.bind(s,s.onEvent));h.attachMedia(p),h.loadSource(t.src),l.trigger({type:"hlsInstanceCreated",data:{hls:h}}),l.trigger({type:"debug",data:{message:"debug === 初始化 hls.js 完成,已传递 hls 地址"}}),setInterval(function(){if(!l.el_)return!1;var v=h.levels[h.currentLevel]&&h.levels[h.currentLevel].realBitrate/1e3,y=l.getVideoPlaybackQuality(),_=y.droppedVideoFrames||0,b=y.totalVideoFrames||0,C="",I=l.tech_.hlsProvider.hls.abrController.bwEstimator;I&&I.getEstimate()&&(C=+(125e-6*I.getEstimate()).toFixed(0)),l.trigger({type:"playstatus",data:{type:"hls",droppedFrames:_,decodedFrames:b,bitrate:v,speed:C}})},1e3),window.Hls&&n.xp2pConfig&&n.xp2pConfig.useXP2P&&l.XP2PHlsjsPlugin&&l.XP2PHlsjsPlugin().startHLSP2P(s.hls,window.HLSP2P,function(v){})};l.trigger({type:"debug",data:{message:"debug === 开始加载hls.js"}}),Promise.all([function(){return n.xp2pConfig&&n.xp2pConfig.useXP2P&&n.xp2pConfig.format==="hls"&&!window.HLSP2P?new Promise(function(c){loadScript(XP2P_HLS_PATH,function(){c()})}):Promise.resolve()}(),function(){return window.Hls?Promise.resolve():new Promise(function(c){loadScript(HLS_PATH,function(){c()})})}()]).then(function(){u()})}return r.prototype.switchQuality=function(t){t.id!=this.hls.currentLevel&&(this.switchStatus="switching",this.switchData=t,this.tech.trigger({type:"hlsresolutionswitching",data:this.switchData}),this.hls.nextLevel=t.id)},r.prototype.dispose=function(){this.hls.destroy()},r.prototype.onSubtitleLoaded=function(t,e){var n=this,s=this.tech.player(),a=this.subtitlesLoadedCount,l=this.subtitles||this.hls.subtitleTracks;this.subtitles[a].url=e.details.fragments[0].url,++this.subtitlesLoadedCount<l.length?this.hls.trigger(this.Hls.Events.SUBTITLE_TRACK_LOADING,{url:l[this.subtitlesLoadedCount].url,id:l[this.subtitlesLoadedCount].id}):s.ready(function(){n.addHlsSubtitles()})},r.prototype.onAudioTrackLoaded=function(t,e){var n=this,s=this.tech.player(),a=this.audioTrackLoadedCount,l=this.hls.audioTracks;this.audioTracks[a].url=e.details.fragments[0].url,++this.audioTrackLoadedCount<l.length?this.hls.trigger(this.Hls.Events.AUDIO_TRACK_LOADING,{url:l[this.audioTrackLoadedCount].url,id:l[this.audioTrackLoadedCount].id}):s.ready(function(){n.addAudioTracks()})},r.prototype.loadAudioTracks=function(){var t=this,e=this.hls.audioTracks;if(e.length){e.forEach(function(s){t.audioTracks.push({id:s.id,name:s.name,lang:s.lang,loaded:!1,default:s.default})});var n=e[0];this.hls.trigger(this.Hls.Events.AUDIO_TRACK_LOADING,{url:n.url,id:n.id}),this.hls.on(this.Hls.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded.bind(this))}},r.prototype.loadSubtiles=function(){var t=this,e=get_1(this,"hls.subtitleTracks.length")!==0?get_1(this,"hls.subtitleTracks"):get_1(this,"hls.subtitleTrackController.tracks");if(e.length){e.forEach(function(s){t.subtitles.push({name:s.name,lang:s.lang,loaded:!1,url:s.url,id:s.id})});var n=e[0];this.hls.on(this.Hls.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleLoaded.bind(this)),this.hls.trigger(this.Hls.Events.SUBTITLE_TRACK_LOADING,{url:n.url,id:n.id})}},r.prototype.addAudioTracks=function(){var t=this;this.audioTracks.length&&this.audioTracks.some(function(e){return!e.loaded})&&this.audioTracks.forEach(function(e){var n=t.tech.addAudioTrack({id:e.id,src:e.url,kind:"audio",srclang:e.lang,label:e.name,enabled:e.default},!0);n.addEventListener("load",function(){e.loaded=!0})})},r.prototype.addHlsSubtitles=function(){var t=this;this.subtitles.length&&this.subtitles.some(function(e){return!e.loaded})&&this.subtitles.forEach(function(e){var n=t.tech.addRemoteTextTrack({src:e.url,kind:"subtitles",srclang:e.lang,label:e.name},!0);n.addEventListener("load",function(){e.loaded=!0})})},r.prototype.onEvent=function(t,e){this.tech.trigger({type:t,data:e});var n=this.tech.player();switch(t){case this.Hls.Events.MANIFEST_LOADED:this.manifests.push(e.networkDetails.response||e.networkDetails.responseText);break;case this.Hls.Events.LEVEL_SWITCHING:break;case this.Hls.Events.LEVEL_SWITCHED:this.switchStatus=="switching"&&(this.switchStatus="switched",this.tech.trigger({type:"hlsresolutionswitched",data:this.switchData}),this.switchData=null);break;case this.Hls.Events.LEVEL_SWITCH_ERROR:n.trigger({type:"levelSwitchError"})}},r.prototype.onMetaData=function(t,e){var n=[],s=this.hls,a=this;if(e.levels.length>1){var l={id:-1,label:"auto",selected:s.manualLevel===-1};n.push(l),e.levels.forEach(function(c,h){var p={};p.id=h,p.selected=h===s.manualLevel,p.label=a.getLevelLabel(c),n.push(p)});var u={qualityData:{video:n},callbacks:{video:videojs.bind(this,this.switchQuality)}};this.tech.setTimeout(function(){this.trigger({type:"masterplaylistchange",data:u})},1)}},r.prototype.getLevelLabel=function(t){return t.height?t.height+"p":t.width?Math.round(9*t.width/16)+"p":t.bitrate?t.bitrate/1e3+"kbps":0},r.prototype.onLevelLoaded=function(t,e){this._duration=e.details.live?1/0:e.details.totalduration},r.prototype.onError=function(t,e){var n=this.tech.player();if(e.fatal)switch(e.type){case this.Hls.ErrorTypes.NETWORK_ERROR:n.error({code:14,source:e});break;case this.Hls.ErrorTypes.MEDIA_ERROR:this.hls.config.enableRecoverMediaError?this.hlsjsErrorHandler(e):n.error({code:15,source:e});break;case this.Hls.ErrorTypes.MUX_ERROR:n.error({code:16,source:e});break;case this.Hls.ErrorTypes.OTHER_ERROR:default:n.error({code:17,source:e}),this.drmBackup&&e.type==="keySystemError"&&n.error(null)}else switch(e.details){case this.Hls.ErrorDetails.KEY_LOAD_ERROR:}},r.prototype.errorHandlerFactory=function(){var t=this.hls,e=this.tech.player(),n=null,s=null,a=0;return function(l){var u=Date.now();a==t.config.recoverMediaErrorMaxRetry?e.error({code:15,source:l}):(!n||u-n>2e3?(n=u,t.recoverMediaError()):(!s||u-s>2e3)&&(s=u,t.swapAudioCodec(),t.recoverMediaError()),a++)}},r.prototype.duration=function(){return this._duration},r}(),hlsTypeRE=/^application\/(x-mpegURL|vnd\.apple\.mpegURL)$/i,hlsExtRE=/.m3u8(?![^?])/i,HlsSourceHandler={name:"hlsSourceHandler",canHandleSource:function(r){return r.skipHlsJs||r.keySystems&&r.keySystems["com.apple.fps.1_0"]?"":hlsTypeRE.test(r.type)&&hlsExtRE.test(r.src)?"probably":hlsExtRE.test(r.src)?"maybe":""},handleSource:function(r,t,e){return t.hlsProvider?(t.hlsProvider.dispose(),t.hlsProvider=null):e.hlsConfig&&e.hlsConfig.autoStartLoad===!1&&t.on("play",function(){this.player().hasStarted()||this.hlsProvider.hls.startLoad()}),t.hlsProvider=new Html5HlsJS(r,t,e),t.hlsProvider},canPlayType:function(r){return hlsTypeRE.test(r)?"probably":""}};TCPlayer.mountHlsProvider=mountHlsProvider,mountHlsProvider();var Html5DashJS=function(){function r(t,e,n){var s=this;classCallCheck(this,r);var a=function(){var l=window_1.dashjs;if(s.dashjs=l,n=n||e.options_,s.player=videojs(n.playerId),s.player.dash=s.player.dash||{},s.tech_=e,s.el_=e.el(),s.elParent_=s.el_.parentNode,s.hasFiniteDuration_=!1,t.src){e.isReady_=!1,r.updateSourceData&&(videojs.log.warn('updateSourceData has been deprecated. Please switch to using hook("updatesource", callback).'),t=r.updateSourceData(t)),r.hooks("updatesource").forEach(function(c){t=c(t)});var u=t.src;s.keySystemOptions_=r.buildDashJSProtData(t.keySystemOptions||t.keySystems),s.player.dash.mediaPlayer=l.MediaPlayer().create(),s.mediaPlayer_=s.player.dash.mediaPlayer,r.useVideoJSDebug&&(videojs.log.warn('useVideoJSDebug has been deprecated. Please switch to using hook("beforeinitialize", callback).'),r.useVideoJSDebug(s.mediaPlayer_)),r.beforeInitialize&&(videojs.log.warn('beforeInitialize has been deprecated. Please switch to using hook("beforeinitialize", callback).'),r.beforeInitialize(s.player,s.mediaPlayer_)),r.hooks("beforeinitialize").forEach(function(c){c(s.player,s.mediaPlayer_)}),s.mediaPlayer_.initialize(),s.retriggerError_=function(c){if(c.error==="capability"&&c.event==="mediasource")s.player.error({code:4,message:"The media cannot be played because it requires a feature that your browser does not support."});else if(c.error!=="manifestError"||c.event.id!=="createParser"&&c.event.id!=="codec"&&c.event.id!=="nostreams"&&c.event.id!=="nostreamscomposed"&&c.event.id!=="parse"&&c.event.id!=="multiplexedrep")if(c.error==="mediasource")c.event.match("MEDIA_ERR_ABORTED")?s.player.error({code:1,message:c.event}):c.event.match("MEDIA_ERR_NETWORK")?s.player.error({code:2,message:c.event}):c.event.match("MEDIA_ERR_DECODE")?s.player.error({code:3,message:c.event}):c.event.match("MEDIA_ERR_SRC_NOT_SUPPORTED")?s.player.error({code:4,message:c.event}):c.event.match("MEDIA_ERR_ENCRYPTED")?s.player.error({code:5,message:c.event}):(c.event.match("UNKNOWN"),s.player.error({code:4,message:c.event}));else if(c.error==="capability"&&c.event==="encryptedmedia")s.player.error({code:5,message:"The media cannot be played because it requires encryption features that your browser does not support."});else if(c.error==="key_session")s.player.error({code:5,message:c.event});else if(c.error==="download")s.player.error({code:2,message:"The media playback was aborted because too many consecutive download errors occurred."});else{if(c.error!=="mssError")return;s.player.error({code:3,message:c.event})}else s.player.error({code:4,message:c.event.message});setTimeout(function(){s.mediaPlayer_.reset()},10)},s.mediaPlayer_.on(l.MediaPlayer.events.ERROR,s.retriggerError_),s.getDuration_=function(c){var h=c.data.Period_asArray,p=s.hasFiniteDuration_;c.data.mediaPresentationDuration||h[h.length-1].duration?s.hasFiniteDuration_=!0:s.hasFiniteDuration_=!1,s.hasFiniteDuration_!==p&&s.player.trigger("durationchange")},s.mediaPlayer_.on(l.MediaPlayer.events.MANIFEST_LOADED,s.getDuration_),s.mediaPlayer_.on(l.MediaPlayer.events.STREAM_INITIALIZED,videojs.bind(s,s.onMetaData)),s.currentQuality={video:"",audio:""},Object.keys(l.MediaPlayer.events).forEach(function(c){s.mediaPlayer_.on(l.MediaPlayer.events[c],videojs.bind(s,s.onEvent))}),n.dashConfig&&Object.keys(n.dashConfig).forEach(function(c){var h,p="set"+c.charAt(0).toUpperCase()+c.slice(1),g=n.dashConfig[c];if(s.mediaPlayer_.hasOwnProperty(p)&&(videojs.log.warn("Using dash options in videojs-contrib-dash without the set prefix has been deprecated. Change '"+c+"' to '"+p+"'"),c=p),!s.mediaPlayer_.hasOwnProperty(c))return void videojs.log.warn("Warning: dash configuration option unrecognized: "+c);Array.isArray(g)||(g=[g]),(h=s.mediaPlayer_)[c].apply(h,g)}),s.mediaPlayer_.attachView(s.el_),s.mediaPlayer_.setAutoPlay(!1),setupAudioTracks.call(null,s.player,e),setupTextTracks.call(null,s.player,e,n),s.mediaPlayer_.setProtectionData(s.keySystemOptions_),s.mediaPlayer_.attachSource(u),s.tech_.triggerReady()}};window_1.dashjs?a():loadScript(DASH_PATH,function(){a()})}return r.buildDashJSProtData=function(t){var e={};if(!t)return null;if(Array.isArray(t))for(var n=0;n<t.length;n++){var s=t[n],a=videojs.mergeOptions({},s.options);a.licenseUrl&&(a.serverURL=a.licenseUrl,delete a.licenseUrl),e[s.name]=a}else e=t;return e},r.prototype.dispose=function(){var t=this;this.mediaPlayer_&&(this.mediaPlayer_.off(this.dashjs.MediaPlayer.events.ERROR,this.retriggerError_),this.mediaPlayer_.off(this.dashjs.MediaPlayer.events.MANIFEST_LOADED,this.getDuration_),Object.keys(this.dashjs.MediaPlayer.events).forEach(function(e){t.mediaPlayer_.off(t.dashjs.MediaPlayer.events[e],videojs.bind(t,t.onEvent))}),this.mediaPlayer_.reset()),this.player.dash&&delete this.player.dash},r.prototype.duration=function(){return this.mediaPlayer_?this.mediaPlayer_.isDynamic()&&!this.hasFiniteDuration_?1/0:this.mediaPlayer_.duration():0},r.hooks=function(t,e){return r.hooks_[t]=r.hooks_[t]||[],e&&(r.hooks_[t]=r.hooks_[t].concat(e)),r.hooks_[t]},r.hook=function(t,e){r.hooks(t,e)},r.removeHook=function(t,e){var n=r.hooks(t).indexOf(e);return n!==-1&&(r.hooks_[t]=r.hooks_[t].slice(),r.hooks_[t].splice(n,1),!0)},r.prototype.onMetaData=function(t){var e=this,n=this.mediaPlayer_,s=n.getBitrateInfoListFor("video"),a=n.getSettings(),l=a.streaming.abr.autoSwitchBitrate.video,u=[];if(s.length>0){u.push({id:-1,label:"auto",selected:l}),s.forEach(function(h,p){u.push({id:p,label:e.getLevelLabel(h),selected:!l&&e.currentQuality.video===p})});var c={qualityData:{video:u},callbacks:{video:videojs.bind(this,this.switchQuality)}};this.tech_.setTimeout(function(){this.trigger({type:"masterplaylistchange",data:c})},1)}},r.prototype.switchQuality=function(t){var e=this.mediaPlayer_;t.id===-1?e.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!0}}}}):t.id!=this.currentQuality[t.trackType]&&(e.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!1}}}}),e.setQualityFor(t.trackType,t.id))},r.prototype.getLevelLabel=function(t){return t.height?t.height+"p":t.width?Math.round(9*t.width/16)+"p":t.bitrate?t.bitrate/1e3+"kbps":0},r.prototype.onEvent=function(t){switch(this.tech_.trigger({type:"dash_"+t.type,data:t}),t.type){case this.dashjs.MediaPlayer.events.QUALITY_CHANGE_REQUESTED:this.tech_.trigger({type:"dashqualityswitching",data:t});break;case this.dashjs.MediaPlayer.events.QUALITY_CHANGE_RENDERED:this.tech_.trigger({type:"dashqualityswitched",data:t}),this.currentQuality[t.mediaType]=t.newQuality}},r}();Html5DashJS.hooks_={};var canHandleKeySystems=function(r){r=JSON.parse(JSON.stringify(r)),Html5DashJS.updateSourceData&&(videojs.log.warn('updateSourceData has been deprecated. Please switch to using hook("updatesource", callback).'),r=Html5DashJS.updateSourceData(r)),Html5DashJS.hooks("updatesource").forEach(function(e){r=e(r)});var t=document_1.createElement("video");return!(r.keySystemOptions&&!window_1.navigator.requestMediaKeySystemAccess&&!t.msSetMediaKeys)};videojs.DashSourceHandler=function(){return{name:"dashSourceHandler",canHandleSource:function(r){var t=/\.mpd/i;return canHandleKeySystems(r)?videojs.DashSourceHandler.canPlayType(r.type)?"probably":t.test(r.src)?"maybe":"":""},handleSource:function(r,t,e){return new Html5DashJS(r,t,e)},canPlayType:function(r){return videojs.DashSourceHandler.canPlayType(r)}}},videojs.DashSourceHandler.canPlayType=function(r){return/^application\/dash\+xml/i.test(r)?"probably":""},TCPlayer.mountDashProvider=mountDashProvider,mountDashProvider(),videojs.Html5DashJS=Html5DashJS;var Component$6=videojs.getComponent("Component"),hlsOption=["fileID","requestID","mediaType","mimeType","provider","resolution","rate","frames","buffer","connectionSpeed"],mp4Option=["fileID","requestID","mediaType","mimeType","resolution","rate","buffer"],dashOption=["fileID","requestID","mediaType","mimeType","resolution","rate","buffer","provider","connectionSpeed"],infoOption=["info"],VideoStatisticWrapper=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.nodelist={},s.status={fileID:"",requestID:"",mediaType:"",mimeType:"",provider:"",resolution:"",rate:"",frames:"",buffer:"",connectionSpeed:"",info:""},e.on("playcgiend",function(){clearTimeout(s.timeoutID),Object.keys(s.status).forEach(function(a){s.nodelist[a].reset()})}),e.on("statistic",videojs.bind(s,function(a){a.data.action==="open"?s.tick():s.clearTimeout(s.timeoutID)})),s.init(),s}return inherits(t,r),t.prototype.tick=function(){var e=this;this.timeoutID=setTimeout(videojs.bind(this,function(){e.tick()}),1e3),this.updatePanel()},t.prototype.createEl=function(){return videojs.dom.createEl("div",{className:"tcp-statistic-wrapper"})},t.prototype.init=function(){var e=this;Object.keys(this.status).forEach(function(n){var s=new VideoTextItem(e,{key:n,data:e.status[n]});e.nodelist[n]=s,e.addChild(s)})},t.prototype.updatePanel=function(){var e=this;if(this.player().techName_==="Html5")switch(this.getStatus(),this.status.mediaType){case"m3u8":hlsOption.forEach(function(n){e.nodelist[n].updateContent(e.status[n])});break;case"mp4":mp4Option.forEach(function(n){e.nodelist[n].updateContent(e.status[n])});break;case"mpd":dashOption.forEach(function(n){e.nodelist[n].updateContent(e.status[n])})}else this.player().techName_==="Flash"&&(this.getFlashStatus(),infoOption.forEach(function(n){n==="info"&&e.nodelist[n].updateContent(e.status[n])}))},t.prototype.getStatus=function(){this.getFileID(),this.getRequestID(),this.getMediaType(),this.getMIMEType(),this.getResolution(),this.getRate(),this.getProvider(),this.getBuffer(),this.status.mediaType==="m3u8"&&(this.getFrames(),this.getConnectionSpeed()),this.status.mediaType==="mpd"&&this.getConnectionSpeed()},t.prototype.getFlashStatus=function(){this.status.mediaType="flash",this.getSupport()},t.prototype.getFileID=function(){var e=this.player().options_.fileID||"";return this.status.fileID=e,e},t.prototype.getRequestID=function(){var e=this.player().PlayerMetrics().playStatus;if(e){var n=e.requestID;return this.status.requestID=n,n}},t.prototype.getMediaType=function(){this.player_.src()&&/\/(.+)\.(.+)\?|\/(.+)\.(.+)/.test(this.player_.src());var e=RegExp.$2||RegExp.$4||"";return this.status.mediaType=e,e},t.prototype.getMIMEType=function(){var e=this.player().src(),n=EXT_MIME[getFileExtension(e)]||"";return this.status.mimeType=n,n},t.prototype.getResolution=function(){var e=this.player_.tech_.el_.videoHeight||0,n=this.player_.tech_.el_.videoWidth||0,s=n+" x "+e;return this.status.resolution=s,s},t.prototype.getRate=function(){var e=this.player().playbackRate()||1;return this.status.rate=e+"x",e},t.prototype.getBuffer=function(){var e=this.player_.bufferedEnd().toFixed(1)||0,n=this.player_.duration().toFixed(1)||0,s=(e/n*100).toFixed(1)+"%",a=e+" / "+n+" ("+s+")";return this.status.buffer=a,a},t.prototype.getSupport=function(){var e=void 0;return e=this.status.mediaType!=="m3u8"&&this.status.mediaType!=="mp4"&&this.status.mediaType!=="dash"?"视频统计功能不支持当前视频格式":"",this.status.info=e,e},t.prototype.getProvider=function(){var e=this.player_.tech_.sourceHandler_;return e instanceof Html5HlsJS?(this.status.provider="HlsJS","HlsJS"):e instanceof Html5DashJS?(this.status.provider="DashJS","DashJS"):""},t.prototype.getFrames=function(){var e=this.player_.getVideoPlaybackQuality(),n=(e.droppedVideoFrames||0)+" dropped of "+(e.totalVideoFrames||0);return this.status.frames=n,n},t.prototype.getConnectionSpeed=function(){var e=void 0;if(this.status.mediaType==="m3u8"){var n=this.player_.tech_.hlsProvider.hls.abrController._bwEstimator;e=n&&n.getEstimate()?(125e-6*n.getEstimate()).toFixed(0)+"KB/s":"0KB/s",this.status.connectionSpeed=e}if(this.status.mediaType==="mpd"){var s=this.player_.dash.mediaPlayer,a=s.getDashMetrics(),l=s.getDashAdapter(),u=s.getActiveStream().getStreamInfo(),c=u.index,h=a.getCurrentRepresentationSwitch("video").to,p=l.getBandwidthForRepresentation(h,c);e=p?(125e-6*p).toFixed(0)+"KB/s":"0KB/s",this.status.connectionSpeed=e}return e},t}(Component$6);videojs.registerComponent("VideoStatisticWrapper",VideoStatisticWrapper);var Component$5=videojs.getComponent("Component"),VideoStatisticPanel=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return e.on("statistic",videojs.bind(s,function(a){a.data.action==="open"?s.show():s.hide()})),e.on("playcgistart",function(){e.trigger({type:"statistic",data:{action:"close"}})}),s.init(),s}return inherits(t,r),t.prototype.createEl=function(){var e=this,n=videojs.dom.createEl("div",{className:"tcp-statistic vjs-hidden"}),s=videojs.dom.createEl("div",{className:"tcp-statistic-close",innerText:"[X]"});return s.addEventListener("click",function(){e.hide(),e.player().trigger({type:"statistic",data:{action:"close"}})}),n.appendChild(s),n},t.prototype.init=function(){this.addChild("VideoStatisticWrapper")},t.prototype.show=function(){r.prototype.show.call(this),this.popped=!0},t.prototype.hide=function(){r.prototype.hide.call(this),this.popped=!1},t}(Component$5);videojs.registerComponent("VideoStatisticPanel",VideoStatisticPanel);var MenuItem$3=videojs.getComponent("MenuItem"),MirrorMenuItem=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.addClass("tc-menu-list"),s.open=!1,s.hasOpen=!1,s.player=e,s.setup(),s}return inherits(t,r),t.prototype.setup=function(){var e=this;this.on(["tap","click"],function(){var n=e.player.tech().el();e.hasOpen||(window.MtaH5&&MtaH5.clickStat("mirror",{appid:e.player.options_.appID,fileid:e.player.options_.fileID}),e.player.trigger({type:"feature",data:"mirror"})),e.open?(videojs.dom.removeClass(n,"tcp-mirror"),videojs.dom.removeClass(e.el_,"tcp-menu-item-select")):(videojs.dom.addClass(n,"tcp-mirror"),videojs.dom.addClass(e.el_,"tcp-menu-item-select"),e.hasOpen=!0),e.open=!e.open})},t}(MenuItem$3);videojs.registerComponent("MirrorMenuItem",MirrorMenuItem);var MenuItem$4=videojs.getComponent("MenuItem"),PoweredByMenuItem=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.addClass("tc-menu-list"),s}return inherits(t,r),t}(MenuItem$4);videojs.registerComponent("PoweredByMenuItem",PoweredByMenuItem);var MenuItem$5=videojs.getComponent("MenuItem"),StatusMenuItem=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.addClass("tc-menu-list"),s.hasOpen=!1,s.player=e,e.on("statistic",videojs.bind(s,function(a){a.data.action==="close"&&(videojs.dom.removeClass(s.el_,"tcp-menu-item-select"),s.hasOpen=!1)})),s.setup(),s}return inherits(t,r),t.prototype.setup=function(){var e=this;this.on(["tap","click"],function(){e.hasOpen?(videojs.dom.removeClass(e.el_,"tcp-menu-item-select"),e.player.trigger({type:"statistic",data:{action:"close"}}),e.hasOpen=!1):(videojs.dom.addClass(e.el_,"tcp-menu-item-select"),e.player.trigger({type:"statistic",data:{action:"open"}}),e.hasOpen=!0,window.MtaH5&&MtaH5.clickStat("mirror",{appid:e.player.options_.appID,fileid:e.player.options_.fileID}),e.player.trigger({type:"feature",data:"statistic"}))})},t}(MenuItem$5);videojs.registerComponent("StatusMenuItem",StatusMenuItem),videojs.getComponent("Component");var Menu$2=videojs.getComponent("Menu");videojs.getComponent("MenuItem");var RightClickPopupMenu=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));s.hide(),s.addChild("PoweredByMenuItem",{label:"Powered by Tencent Cloud."}),!n.statistic||IS_IOS||IS_ANDROID||s.addChild("StatusMenuItem",{label:"Video statistic"}),n.mirror&&s.addChild("MirrorMenuItem",{label:"Mirror"}),e.on("contextmenu",videojs.bind(s,s.onContextmenu)),e.on(["tap","click"],videojs.bind(s,function(l){if(this.popped)return this.hide(),l.stopPropagation(),l.preventDefault(),!1})),videojs.on(document,["tap","click"],videojs.bind(s,function(l){this.popped&&this.hide()}));var a=s;return s.children().forEach(function(l){l.on(["tap","click"],function(){a.hide()})}),s}return inherits(t,r),t.prototype.createEl=function(){var e=r.prototype.createEl.call(this);return videojs.dom.addClass(e,"tcp-right-click-popup-menu"),e},t.prototype.show=function(){r.prototype.show.call(this),this.popped=!0},t.prototype.hide=function(){r.prototype.hide.call(this),this.popped=!1},t.prototype.onContextmenu=function(e){e.preventDefault(),this.show();var n=this.el(),s=e.clientX,a=e.clientY,l=getViewportSize(),u=l.width,c=l.height,h=s+n.offsetWidth-u+5;h=Math.max(0,h);var p=a+n.offsetHeight-c+5;p=Math.max(0,p);var g=this.player().el().getBoundingClientRect();n.style.left=Math.max(0,s-g.left-h)+"px",n.style.top=Math.max(0,a-g.top-p)+"px"},t}(Menu$2);videojs.registerComponent("RightClickPopupMenu",RightClickPopupMenu);var clickableComponent=videojs.getComponent("ClickableComponent"),TimeTooltip$2=videojs.getComponent("TimeTooltip"),Component$9=videojs.getComponent("Component"),dom=videojs.dom,formatTime$2=videojs.formatTime,COMMENT_WIDTH=140,COMMENT_HEIGHT_SINGLE_LINE=23,COMMENT_SHOW_ON_THE_LEFT={POPUP_CONTAINER_OFFSET:-130,POPUP_CONTAINER_OFFSET_WITHOUTGIT:-100,TRIANGLE_OFFEST:96,TRIANGLE_OFFEST_WITHOUTGIF:95},COMMENT_SHOW_ON_THE_RIGHT={TRIANGLE_OFFEST:6,POPUP_CONTAINER_OFFSET:0},ProgressMarkerGenerator=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.duration=0,s.registerListener(),s}return inherits(t,r),t.prototype.registerListener=function(){this.player_.one("canplay",videojs.bind(this,this.resetDotsElement))},t.prototype.resetDotsElement=function(){var e=this.player_;this.duration=e.duration(),dom.emptyEl(this.el_),this.resetEl()},t.prototype.resetEl=function(){this.setUpEl()},t.prototype.dotMouseLeave=function(){var e=event.currentTarget,n=e.getAttribute("container-id");this.getChildById(n).hide()},t.prototype.dotHover=function(){var e=event.currentTarget.parentElement.offsetWidth,n=event.currentTarget.offsetLeft+COMMENT_WIDTH,s=this.getChildById(event.currentTarget.getAttribute("container-id")),a=s.getAttribute("class").search("tcp-without-gif")>=0,l=s.el_.querySelector(".tcp-triangle-both")||s.el_.querySelector(".tcp-triangle");n>e?a?(s.el_.style.left=COMMENT_SHOW_ON_THE_LEFT.POPUP_CONTAINER_OFFSET_WITHOUTGIT+"px",l.style.left=COMMENT_SHOW_ON_THE_LEFT.TRIANGLE_OFFEST_WITHOUTGIF+"%"):(s.el_.style.left=COMMENT_SHOW_ON_THE_LEFT.POPUP_CONTAINER_OFFSET+"px",l.style.left=COMMENT_SHOW_ON_THE_LEFT.TRIANGLE_OFFEST+"%"):event.currentTarget.offsetLeft<=COMMENT_WIDTH&&!a&&(s.el_.style.left=COMMENT_SHOW_ON_THE_RIGHT.POPUP_CONTAINER_OFFSET+"px",l.style.left=COMMENT_SHOW_ON_THE_RIGHT.TRIANGLE_OFFEST+"px");var u=s.getChild("DotImage");if(u){var c=u.el_.getElementsByClassName("tcp-dot-timestamp")[0],h=event.currentTarget.getAttribute("dotinsecond"),p=formatTime$2(h);c.innerHTML=p}s.show()},t.prototype.setChildInTheContainer=function(e,n){var s=e.content&&e.content!==""?decodeURIComponent(e.content.replace(/\+/g," ")):"";if(s!==""){var a=n.addChild("DotComment");a.el_.innerHTML=encodeHTML(s)}if(e.img){n.el_.querySelector(".tcp-triangle").setAttribute("class","tcp-triangle-both");var l=n.addChild("DotImage");l.el_.firstChild.setAttribute("src",e.img),s==""?(n.addClass("tcp-only-gif"),l.el_.firstChild.className="tcp-image-in-container-only-image"):this.countContentSize(s)<=20&&(n.addClass("tcp-single-line"),a.el_.style.height=COMMENT_HEIGHT_SINGLE_LINE+"px")}else if(s!==""){var u=this.countContentSize(s);u<=14?n.addClass("tcp-single-line"):u<=28&&n.addClass("tcp-two-lines"),n.addClass("tcp-without-gif"),a.addClass("tcp-large-comment")}},t.prototype.markSetUp=function(e){var n=e.timeOffset>0?e.timeOffset/1e3:0,s=this.duration?this.duration:0;if(!(typeof n!="number"||n>s)){var a=document.createElement("div");a.className="tcp-dot-basic-style",a.setAttribute("dotinsecond",n.toString()),e.class&&(a.className+=" "+e.class);var l=this.addChild("PopUpContainer");return a.setAttribute("container-id",l.id_),this.setChildInTheContainer(e,l),a.appendChild(l.el_),a.style.left=n/s*100+"%",a.addEventListener("mouseover",videojs.bind(this,this.dotHover)),a.addEventListener("mouseleave",videojs.bind(this,this.dotMouseLeave)),a}},t.prototype.setUpEl=function(){var e=this,n=this.player_.options_.dots||0,s=this.el_||r.prototype.createEl.call(this);return videojs.dom.addClass(s,"tcp-dot-component"),n&&n instanceof Array&&n.length>0&&n.forEach(function(a){var l=a.content||"";if(l&&l!=""||a.img){var u=e.markSetUp(a);u&&s.appendChild(u)}}),s},t.prototype.countContentSize=function(e){for(var n=0,s=e.length,a=-1,l=0;l<s;l++)a=e.charCodeAt(l),n+=a>=0&&a<=128?1:2;return n},t.prototype.createEl=function(){return this.setUpEl()},t}(clickableComponent);videojs.registerComponent("ProgressMarkerGenerator",ProgressMarkerGenerator);var DotComment=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.addClass("tcp-dot-comment"),s}return inherits(t,r),t}(Component$9);videojs.registerComponent("DotComment",DotComment);var DotImage=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));s.addClass("tcp-dot-image");var a=s.el_||r.prototype.createEl.call(s),l=dom.createEl("img");l.className="tcp-image-in-container",a.appendChild(l);var u=dom.createEl("span");return u.className="tcp-dot-timestamp",u.innerHTML="",a.appendChild(u),s}return inherits(t,r),t}(Component$9);videojs.registerComponent("DotImage",DotImage);var PopUpContainer=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));s.addClass("tcp-popup-container");var a=dom.createEl("div");return a.setAttribute("class","tcp-triangle"),s.el_.appendChild(a),s.hide(),s}return inherits(t,r),t}(TimeTooltip$2);videojs.registerComponent("PopUpContainer",PopUpContainer);var Plugin$2=videojs.getPlugin("plugin"),SpeedUp=function(r){function t(e){classCallCheck(this,t);var n=possibleConstructorReturn(this,r.call(this,e));return n.TARGET_LANTENCY=1,n.MAX_LATENCY=3,n.RATEVALUE=1.1,e.ready(videojs.bind(n,n.init)),n}return inherits(t,r),t.prototype.checkLatency=function(){var e=this.player.bufferedEnd()-this.player.currentTime();e>this.MAX_LATENCY&&this.player.playbackRate(this.RATEVALUE),e<this.TARGET_LANTENCY&&this.player.playbackRate(1)},t.prototype.init=function(){var e=this,n=this.player,s=void 0;n.on("playing",function(){n.duration()===1/0&&(s=setInterval(e.checkLatency.bind(e),1e3))}),n.on("waiting",function(){e.reset(s)}),n.on("pause",function(){e.reset(s)})},t.prototype.reset=function(e){this.player.playbackRate(1),clearInterval(e)},t}(Plugin$2);videojs.registerPlugin("SpeedUp",SpeedUp);var Button$3=videojs.getComponent("Button"),BigPlayButton$2=videojs.getComponent("BigPlayButton");BigPlayButton$2.prototype.createEl=function(){var r=Button$3.prototype.createEl.call(this),t=getTemplate();return(this.options_.shapeType||this.options_.styleType)&&(t=getTemplate(this.options_.shapeType,this.options_.styleType)),r.appendChild(videojs.dom.createEl("div",{className:"vjs-button-icon",innerHTML:t})),r},BigPlayButton$2.prototype.controlText_="Play";var Component$10=videojs.getComponent("Component"),VideoStatisticWrapper$1=videojs.getComponent("VideoStatisticWrapper"),LoadingSpinner$2=videojs.getComponent("LoadingSpinner");LoadingSpinner$2.prototype.createEl=function(){function r(s,a){var l=new VideoStatisticWrapper$1(s);if(l.getMediaType(),(l.getBuffer()||"").indexOf("100.0%")>-1)return a.innerText="",!1;a.innerText=l.getConnectionSpeed()}var t=this,e=Component$10.prototype.createEl.call(this,"div",{className:"tcp-loading-spinner",dir:"ltr"});if(!this.player_.options_.loadingSpeed)return e;var n=null;return this.player_.on("waiting",function(){n=setInterval(function(){r(t.player_,e)},100)}),this.player_.on("timeupdate",function(){n&&clearInterval(n)}),e};var Plugin$3=videojs.getPlugin("plugin"),log$3=videojs.log,Skin=function(r){function t(e,n){classCallCheck(this,t),log$3("Skin initializing");var s=possibleConstructorReturn(this,r.call(this,e));return s.player.addClass("tcp-skin"),log$3("Skin initialized"),s}return inherits(t,r),t}(Plugin$3);videojs.registerPlugin("Skin",Skin);var now=function(){return _root.Date.now()},now_1=now,reWhitespace=/\s/,_trimmedEndIndex=trimmedEndIndex,reTrimStart=/^\s+/,_baseTrim=baseTrim,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt,toNumber_1=toNumber,FUNC_ERROR_TEXT$2="Expected a function",nativeMax=Math.max,nativeMin=Math.min,debounce_1=debounce,FUNC_ERROR_TEXT$1="Expected a function",throttle_1=throttle$1,Component$11=videojs.getComponent("Component"),DvrProgressControl=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.on("mousemove",s.handleMouseMove),s.on("mouseup",s.handleMouseUp),s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control tcp-dvr-progress-control"})},t.prototype.update=function(e){this.getChild("DvrSeekBar").update(e)},t.prototype.handleMouseMove=function(e){var n=this.getChild("DvrSeekBar"),s=n.calculateDistance(e),a=n.getChild("DvrMouseTimeDisplay");a&&a.update(videojs.dom.getBoundingClientRect(n.el()),s)},t.prototype.handleMouseUp=function(e){this.getChild("DvrSeekBar").handleMouseUp(e)},t}(Component$11);DvrProgressControl.prototype.options_={children:["DvrSeekBar"]},videojs.registerComponent("DvrProgressControl",DvrProgressControl);var Slider$2=videojs.getComponent("Slider"),DvrSeekBar=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.percent_=1,s.update=throttle_1(videojs.bind(s,s.update),50),s.on(e,"seekToLive",videojs.bind(s,function(a){this.update(a.data)})),s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update=function(e){e!=null&&(this.percent_=e,this.bar.update(videojs.dom.getBoundingClientRect(this.el_),e),this.updateAriaAttributes(e))},t.prototype.handleMouseDown=function(e){r.prototype.handleMouseDown.call(this,e),this.isMouseDown=!0},t.prototype.handleMouseMove=function(e){var n=this.calculateDistance(e);this.update(n)},t.prototype.handleMouseUp=function(e){r.prototype.handleMouseUp.call(this);var n=this.calculateDistance(e);this.update(n),this.player().Dvr().timeShift(n)},t.prototype.stepBack=function(){},t.prototype.stepForward=function(){},t.prototype.updateAriaAttributes=function(e){this.el().setAttribute("aria-valuenow",(100*e).toFixed(2))},t.prototype.getPercent=function(){return this.percent_},t}(Slider$2);DvrSeekBar.prototype.options_={children:["DvrMouseTimeDisplay","DvrTimeShiftBar"],barName:"DvrTimeShiftBar"},videojs.registerComponent("DvrSeekBar",DvrSeekBar);var DvrTimeShiftBar=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.el_.style.width="100%",s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar tcp-dvr-time-shift",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 100%</span>"})},t.prototype.update=function(e,n){var s=(100*n).toFixed(2)+"%";this.el_.style.width=s},t}(Component$11);videojs.registerComponent("DvrTimeShiftBar",DvrTimeShiftBar);var MouseTimeDisplay$2=videojs.getComponent("MouseTimeDisplay"),DvrMouseTimeDisplay=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.update=function(e,n){var s=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var a=s.player().Dvr().dvrData.maxTimeShift,l=videojs.formatTime((1-n)*a,a);s.el_.style.left=e.width*n+"px",s.getChild("timeTooltip").update(e,n,l)})},t}(MouseTimeDisplay$2);videojs.registerComponent("DvrMouseTimeDisplay",DvrMouseTimeDisplay);var Button$4=videojs.getComponent("Button"),LiveButton=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(){var e=Button$4.prototype.createEl.call(this,"button",{className:"vjs-live-control vjs-control"});return this.contentEl_=videojs.dom.createEl("div",{className:"vjs-live-display",innerHTML:this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},t.prototype.update=function(){},t.prototype.updateControlText=function(e){this.controlText(e?"直播中":"返回直播")},t.prototype.handleClick=function(e){this.player().Dvr().seekToLive()},t}(Button$4);LiveButton.prototype.controlText_="返回直播",videojs.registerComponent("LiveButton",LiveButton);var Plugin$4=videojs.getPlugin("plugin"),Dvr=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));s.isInit=!1,s.options=n;var a=s;return e.ready(function(){var l=e.tech(!0);l&&l.hlsProvider&&e.one("loadedmetadata",function(u){l.el_.setAttribute("poster",""),a.init(),a.options.liveURL&&a.seekToLive()})}),s}return inherits(t,r),t.prototype.init=function(){var e=this.player,n=e.tech(!0).hlsProvider;if(this.parseM3u8(n.manifests[0]),!this.dvrData.startTime&&!this.isInit)return void e.one("loadedmetadata",videojs.bind(this,function(s){this.init()}));this.initControl(),this.delay=getParams("delay",e.tech_.currentSource_.src)||0,this.updateControl(!this.isLive()),e.on("loadedmetadata",videojs.bind(this,function(){this.parseM3u8(n.manifests[0]),this.delay=getParams("delay",e.tech_.currentSource_.src)||0,this.updateControl()})),this.isInit=!0},t.prototype.initControl=function(){var e=this.player;e.addClass("vjs-dvr"),e.controlBar.getChild("ProgressControl").hide(),e.controlBar.getChild("LiveDisplay").hide(),e.controlBar.addChild("DvrProgressControl",{},5),e.controlBar.addChild("liveButton",{},6)},t.prototype.updateControl=function(e){var n=this.player,s=n.controlBar.getChild("ProgressControl"),a=n.controlBar.getChild("LiveDisplay"),l=n.controlBar.getChild("DvrProgressControl"),u=n.controlBar.getChild("LiveButton");n.toggleClass("vjs-dvr-live",this.isLive()),u.updateControlText(this.isLive()),e&&l.update(1-this.delay/this.dvrData.maxTimeShift),this.dvrData.startTime?(l.show(),u.show(),s.hide(),a.hide()):(l.hide(),u.hide(),s.show(),a.show())},t.prototype.seekToLive=function(){this.isLive()||(this.timeShift(1),this.player.trigger({type:"seekToLive",data:1}))},t.prototype.isLive=function(){return!(this.delay>0)},t.prototype.timeShift=function(e){var n=this.player,s=(n.getChild("ControlBar").getChild("LiveButton"),n.tech_.currentSource_),a=Math.floor(this.dvrData.maxTimeShift*(1-e));this.delay=a,a==0&&this.options.liveURL?n.src(this.options.liveURL):(s.src=(this.options.shiftURL||s.src).replace(/delay=*(\d+)/,"delay="+a),n.src(n.tech_.currentSource_.src)),n.bigPlayButton.hide(),n.posterImage.hide(),n.tech_.one("hlsManifestParsed",videojs.bind(this,function(){n.play()}))},t.prototype.parseM3u8=function(e){this.dvrData={};for(var n=new RegExp([/#EXT-TX-TS-START-TIME:*(.+)/.source,/|#EXT-TX-TS-DURATION:*(.+)/.source].join(""),"g"),s=void 0;(s=n.exec(e))!==null;)s[1]?this.dvrData.startTime=s[1]:s[2]&&(this.dvrData.duration=s[2]);this.dvrData.startTime&&(this.dvrData.maxTimeShift=Math.min(Math.floor(new Date().getTime()/1e3-this.dvrData.startTime),this.dvrData.duration))},t}(Plugin$4);videojs.registerPlugin("Dvr",Dvr);var Menu$4=videojs.getComponent("Menu"),QualitySwitcherMenu=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.addItem=function(e){r.prototype.addItem.call(this,e)},t}(Menu$4),MenuItem$6=videojs.getComponent("MenuItem"),QualitySwitcherMenuItem=function(r){function t(e,n){return classCallCheck(this,t),possibleConstructorReturn(this,r.call(this,e,n))}return inherits(t,r),t.prototype.handleClick=function(e){if(r.prototype.handleClick.call(this,e),this.updateItems(),this.options_.callback(this.options_),this.options_.trackType=="video"){var n=this.player().controlBar.getChild(this.options_.trackType+"QualitySwitcherMenuButton");n.updateLabel(this.options_),n.unpressButton()}},t.prototype.updateItems=function(){for(var e=this.player().controlBar.getChild(this.options_.trackType+"QualitySwitcherMenuButton"),n=e.getChild(this.options_.trackType+"QualitySwitcherMenu"),s=n.children(),a=0;a<s.length;a++){var l=s[a];this!==l?(l.selected(!1),l.options_.selected=!1):l.options_.selected=!0}},t}(MenuItem$6),MenuButton$2=videojs.getComponent("MenuButton");videojs.getComponent("Menu");var QualitySwitcherMenuButton=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(){var e=r.prototype.createEl.call(this);return this.labelEl_=videojs.dom.createEl("div",{className:"tcp-quality-switcher-value",innerHTML:""}),e.appendChild(this.labelEl_),e},t.prototype.createMenu=function(){for(var e=this.options_.qualityList,n=new QualitySwitcherMenu(this.player(),{name:this.options_.trackType+"QualitySwitcherMenu"}),s=void 0,a=e.length-1;a>-1;a--){var l=e[a];s=videojs.mergeOptions(l,{trackType:this.options_.trackType,callback:this.options_.callback,selectable:!0}),n.addItem(new QualitySwitcherMenuItem(this.player(),s)),l.selected&&this.updateLabel(l)}return n},t.prototype.updateLabel=function(e){this.labelEl_.innerHTML="<p>"+this.localize(e.label)+"</p>"},t}(MenuButton$2),Plugin$5=videojs.getPlugin("plugin"),TRACK_TYPES=["video","audio","subtitle"],TRACK_CLASS={video:"tcp-video-quality-switcher",audio:"tcp-audio-quality-switcher",subtitle:"tcp-subtitle-quality-switcher"},log$4=videojs.log,QualitySwitcher=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return s.options=n,e.on("qualitydataloaded",videojs.bind(s,s.init)),s}return inherits(t,r),t.prototype.init=function(e){log$4("QualitySwitcher initializing",e);var n=this.player,s=e.data.qualityData,a=e.data.callbacks;if(this.setOptions({qualityData:s,callbacks:a}),!n.controlBar)return void log$4("QualitySwitcher can not initialize without control bar");for(var l=0;l<TRACK_TYPES.length;l++){var u=TRACK_TYPES[l],c=u+"QualitySwitcherMenuButton",h=n.controlBar.getChild(c);s[u]&&s[u].length>0&&n.controlBar.options_.QualitySwitcherMenuButton&&(h&&h.el()&&(h.dispose(),n.controlBar.removeChild(h)),this.repleaceLabel(u,s),h=new QualitySwitcherMenuButton(n,{name:c,qualityList:s[u],callback:a[u],trackType:u}),h.addClass(TRACK_CLASS[u]),n.controlBar.addChild(h,{},10))}log$4("QualitySwitcher initialized",e,this)},t.prototype.setOptions=function(e){this.options=videojs.mergeOptions(this.options,e)},t.prototype.setVideoQuality=function(e){if(this.options.qualityData&&this.options.callbacks.video){for(var n=this.options.qualityData.video,s=0;s<n.length;s++)n[s].selected&&(n[s].selected=!1),n[s].id===e.id&&(n[s].selected=!0);this.options.callbacks.video(e)}},t.prototype.getVideoQualityData=function(){return this.options.qualityData?this.options.qualityData.video:void 0},t.prototype.repleaceLabel=function(e,n){if(this.options.qualityLabelList){var s=this.options.qualityLabelList[e],a=n[e];if(a&&a.length>0&&s&&s.length>0)for(var l=0;l<a.length;l++){var u=a[l].label;u=u.slice(0,u.length-1);for(var c=0;c<s.length;c++)if(s[c].height==u){a[l].label=s[c].resolutionName;break}}}},t.prototype.reset=function(){for(var e=this.player,n=0;n<TRACK_TYPES.length;n++){var s=TRACK_TYPES[n],a=e.controlBar&&e.controlBar.getChild(s+"QualitySwitcherMenuButton");a&&a.el()&&(a.dispose(),e.controlBar.removeChild(a))}},t}(Plugin$5);videojs.registerPlugin("QualitySwitcher",QualitySwitcher);var Plugin$6=videojs.getPlugin("plugin"),log$5=videojs.log,defaultOptions={labels:{FLU:"流畅",SD:"标清",HD:"高清",FHD:"超清"},showOrder:["FLU","SD","HD","FHD"],defaultRes:"SD"},MultiResolution=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return s.options=n,n.useManualOption&&(s.manualOptions=extend({},n)),s.hasInit=!1,e.on("multiresolutionchange",videojs.bind(s,function(a){a.data&&this.update(data)})),e.on(["resolutionswitching","resolutionswitched"],videojs.bind(s,function(a){a.type=="resolutionswitching"?this.player.addClass("tcp-res-switching"):this.player.removeClass("tcp-res-switching")})),e.ready(videojs.bind(s,function(){var a=e.tech(!0);a&&(a.on("masterplaylistchange",videojs.bind(this,this.onMasterPlaylistChange)),a.on("hlsresolutionswitching",videojs.bind(this,this.onHlsLevelChange)),a.on("hlsresolutionswitched",videojs.bind(this,this.onHlsLevelChange)),a.on("dashqualityswitching",videojs.bind(this,this.onDashQualityChange)),a.on("dashqualityswitched",videojs.bind(this,this.onDashQualityChange))),this.hasInit=!0})),s.init(s.player.options_.multiResolution),s}return inherits(t,r),t.prototype.init=function(e){var n={};this.player.options_.label&&(n.label=this.player.options_.label),this.player.options_.labels&&(n.labels=this.player.options_.label),this.player.options_.showOrder&&(n.showOrder=this.player.options_.showOrder),this.player.options_.defaultRes&&(n.defaultRes=this.player.options_.defaultRes);var s=this.player,a=extend({},defaultOptions,e,this.manualOptions,n),l=a&&a.sources;if(this.options=a,l){log$5("MultiResolution initializing",a);var u=void 0;if(this.currentID=a.defaultRes=l[a.defaultRes]?a.defaultRes:Object.keys(l).shift(),u=l[this.currentID],s.options_.children[0]!="mediaLoader"||this.hasInit)s.src(u);else{var c;(c=s.options_.sources).push.apply(c,u)}this.hasInit||(this.hasInit=!0),s.ready(videojs.bind(this,function(){s.trigger({type:"qualitydataloaded",data:this.initQualityData(a)}),s.one("loadedmetadata",function(){var h=this.tech(!0);h.name_!="flash"&&h.el_.getAttribute("poster")&&(h.el_.removeAttribute("poster"),delete h.el_.poster)})})),log$5("MultiResolution initialized")}},t.prototype.reset=function(){this.player.QualitySwitcher().reset()},t.prototype.update=function(e){this.init(e)},t.prototype.store=function(e){if(!e)return this.options;this.options=videojs.mergeOptions(defaultOptions,this.options,e)},t.prototype.onMasterPlaylistChange=function(e){this.player.trigger({type:"qualitydataloaded",data:e.data})},t.prototype.onHlsLevelChange=function(e){e.type=="hlsresolutionswitching"?this.player.trigger({type:"resolutionswitching",data:e.data}):e.type=="hlsresolutionswitched"&&this.player.trigger({type:"resolutionswitched",data:e.data})},t.prototype.onDashQualityChange=function(e){e.type=="dashqualityswitching"?this.player.trigger({type:"resolutionswitching",data:e.data}):e.type=="dashqualityswitched"&&this.player.trigger({type:"resolutionswitched",data:e.data})},t.prototype.switchResolution=function(e){if(this.currentID!=e.id){var n=this.player,s=n.currentTime(),a=(n.paused(),n.duration()===1/0);if(n.trigger({type:"resolutionswitching",data:e}),a)n.bigPlayButton&&n.bigPlayButton.hide(),n.posterImage&&n.posterImage.hide(),n.one("loadstart",function(){n.play(),n.trigger({type:"resolutionswitched",data:e})});else{var l=n.ended(),u=n.playbackRate(),c=n.controlBar&&n.controlBar.progressControl&&n.controlBar.progressControl.seekBar.playProgressBar.el().style.width||0,h=videojs.browser.IS_IOS||videojs.browser.IS_ANDROID?"loadeddata":"loadedmetadata";n.one(h,function(){n.controlBar&&n.controlBar.progressControl&&(n.controlBar.progressControl.seekBar.playProgressBar.el().style.width=c),l||n.currentTime(s),n.techName_=="Flash"?(n.play(),n.tech(!0).trigger("seeked")):(n.play(),n.playbackRate()!=u&&n.playbackRate(u)),n.trigger({type:"resolutionswitched",data:e})}),n.bigPlayButton&&n.bigPlayButton.hide(),n.posterImage&&n.posterImage.hide(),n.options_.preload=="none"&&n.one("suspend",function(){n.load()})}n.src(this.options.sources[e.id]),a&&setTimeout(function(){n.play(),setTimeout(function(){n.play()},900)},100),this.currentID=e.id}},t.prototype.initQualityData=function(e){var n=[],s=(e.sources,e.labels),a=e.showOrder;return a.length>0&&a.forEach(function(l,u){var c={};c.id=l,c.selected=e.defaultRes===l,c.label=s[l]||l,n.push(c)}),{qualityData:{video:n},callbacks:{video:videojs.bind(this,this.switchResolution)}}},t.prototype.sortSourceOrder=function(e){return[]},t}(Plugin$6);videojs.registerPlugin("MultiResolution",MultiResolution),videojs.getComponent("Flash");var defaultDismiss=!videojs.browser.IS_IPHONE,registerPlugin=videojs.registerPlugin||videojs.plugin,defaults$1={header:"",code:"",message:"",timeout:45e3,dismiss:defaultDismiss,progressDisabled:!1,errors:{1:{type:"MEDIA_ERR_ABORTED"},2:{type:"MEDIA_ERR_NETWORK"},3:{type:"MEDIA_ERR_DECODE"},4:{type:"MEDIA_ERR_SRC_NOT_SUPPORTED"},5:{type:"MEDIA_ERR_ENCRYPTED"},unknown:{type:"MEDIA_ERR_UNKNOWN"},"-1":{type:"PLAYER_ERR_NO_SRC",message:"No video has been loaded."},"-2":{type:"PLAYER_ERR_TIMEOUT",message:"Could not download the video."},10:{type:"SERVER_ERR",message:"Request timed out."},11:{type:"SERVER_ERR",message:"Server is not respond."},12:{type:"DATA_ERR",message:"Server respond error data."},13:{type:"DATA_ERR",message:"No video transcoding information found."},14:{type:"HLS_NETWORK_ERR",message:"A network error caused the media download to fail part-way."},15:{type:"HLS_MEDIA_ERR",message:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support."},16:{type:"HLS_MUX_ERR",message:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support."},17:{type:"HLS_OTHER_ERR",message:"Rise an internal exception when playing HLS."},18:{type:"DRM_ERR",message:"Current browser not support DRM."},20:{type:"PERMISSION_ERR",message:"This website needs a permission to access device motion."},21:{type:"PERMISSION_ERR",message:"This website needs a permission to access device motion."},50:{type:"LICENSE_ERR",message:"License verification failed."},51:{type:"LICENSE_ERR",message:"The license has expired."},52:{type:"LICENSE_ERR",message:"Domain verification failed."},53:{type:"LICENSE_ERR",message:"Time verification failed."},54:{type:"LICENSE_ERR",message:"License type error."},55:{type:"LICENSE_ERR",message:"Lack license url."},56:{type:"LICENSE_ERR",message:"Get license data failed."},60:{type:"SAFECHECK_ERR",message:"Elements check failed."},61:{type:"SAFECHECK_ERR",message:"API check failed."},62:{type:"SAFECHECK_ERR",message:"Environment check failed."},403:{type:"SERVER_ERR",message:"Authentication failed."},500:{type:"SERVER_ERR",message:"Server failed."},1001:{type:"SERVER_ERR",message:"The media file does not exist. Please check if the fileID is correct."},1002:{type:"SERVER_ERR",message:"The trial duration is illegal. The trial duration must be within the video duration."},1003:{type:"SERVER_ERR",message:"Param pcfg is not unique."},1004:{type:"SERVER_ERR",message:"The license has expired. Please check whether the expiration time setting is reasonable."},1005:{type:"SERVER_ERR",message:"Did not find an adaptive stream that can be played."},1006:{type:"SERVER_ERR",message:"Invalid request format, please check the request format."},1007:{type:"SERVER_ERR",message:"AppID is not exist, Please check if the AppID is correct."},1008:{type:"SERVER_ERR",message:"Without anti-leech information."},1009:{type:"SERVER_ERR",message:"psign check failed."},1010:{type:"SERVER_ERR",message:"Other errors."},1011:{type:"SERVER_ERR",message:"Get DRM license url failed"},1012:{type:"SERVER_ERR",message:"Get DRM certificate url failed"},1013:{type:"SERVER_ERR",message:"Psign missing contentInfo error"},1014:{type:"SERVER_ERR",message:"Psign contentInfo.audioVideoType invalid"},1015:{type:"SERVER_ERR",message:"Psign missing rawAdaptiveDefinition error"},1016:{type:"SERVER_ERR",message:"Psign missing drmAdaptiveInfo error"},1017:{type:"SERVER_ERR",message:"Psign missing transcodeDefinition error"},1018:{type:"SERVER_ERR",message:"Psign contentInfo.ResolutionNames json marshal error"},1019:{type:"SERVER_ERR",message:"Get super player config error"},1020:{type:"SERVER_ERR",message:"Get play key info error"},1021:{type:"SERVER_ERR",message:"Qsign invalid"},1022:{type:"SERVER_ERR",message:"Ciphered overlay info invalid"},1023:{type:"SERVER_ERR",message:"Ghost watermark info text is too long"},2001:{type:"SERVER_ERR",message:"System error"},2002:{type:"SERVER_ERR",message:"Panic error"},19:{type:"DATA_ERR",message:"Response data verification failed."},10008:{type:"SERVER_ERR",message:"The media file does not exist. Please check if the fileID is correct."},"-2001":{type:"SERVER_ERR",message:"Current browser not support play this stream, please select another one."},"-2002":{type:"SERVER_ERR",message:"Server respond error data.(eg. stream not exist)"},"-2003":{type:"SERVER_ERR",message:"Video play failed, please refresh to start play again."},"-2004":{type:"SERVER_ERR",message:"Connection to the server has failed and the number of connection retries has exceeded the set value."},"-2005":{type:"SERVER_ERR",message:"Video decoding failure."},PLAYER_ERR_DOMAIN_RESTRICTED:{message:"This video is restricted from playing on your current domain."},PLAYER_ERR_IP_RESTRICTED:{message:"This video is restricted at your current IP address."},PLAYER_ERR_GEO_RESTRICTED:{message:"This video is restricted from playing in your current geographic region."}}},initPlugin=function r(t,e){var n=void 0,s=void 0,a=void 0,l=[];videojs.getComponent("ErrorDisplay").prototype.options_.fillAlways=!1;var u=function(b){e.errors=videojs.mergeOptions(e.errors,b),Object.keys(e.errors).forEach(function(C){var I=e.errors[C];I.type||(I.type=C)})};u();var c=function(){t.clearTimeout(s),a&&(a=!1,t.removeClass("vjs-waiting")),s=t.setTimeout(function(){t.error()||t.paused()||t.ended()||(a=!0,t.addClass("vjs-waiting"))},1e3),t.clearTimeout(n),n=t.setTimeout(function(){t.error()||t.paused()||t.ended()||t.error({code:-2,type:"PLAYER_ERR_TIMEOUT"})},e.timeout),t.error()&&t.error().code===-2&&t.error(null)},h=function(){for(var b=void 0;l.length;)b=l.shift(),t.off(b[0],b[1]);t.clearTimeout(n),t.clearTimeout(s)},p=function(b,C){var I=function(){if(!t.error()){var N=t.$(".vjs-tech");if(N&&N.type==="application/x-shockwave-flash"&&!N.vjs_getProperty)return void t.error({code:-2,type:"PLAYER_ERR_TIMEOUT"});if(t.paused()||t.ended())return c()}C.call(this)};t.on(b,I),l.push([b,I])},g=function(){var b=0;h(),c(),p(["timeupdate","adtimeupdate"],function(){var C=t.currentTime();C!==b&&(b=C,c())}),e.progressDisabled||p("progress",c)},v=function(b){var C="",I=t.error(),N=document_1.createElement("div"),x="";if(I){I=videojs.mergeOptions(I,e.errors[I.code||0]),I.message&&(C='<div class="vjs-errors-message">'+t.localize(I.message)+"</div>"),I.code&&(C+='<div class="vjs-errors-code">'+this.localize("Error Code")+" : "+I.code+"</div>"),I.type&&(C+='<div class="vjs-errors-type">'+this.localize("Error Type")+" : "+I.type+"</div>"),I.code=="10"||I.code,I.code,I.code,N.className="vjs-errors-dialog",x=`<div class="vjs-errors-content-container">
|
|
80
|
+
`+C+`
|
|
81
|
+
</div>`;var F=t.getChild("errorDisplay");F&&F.closeable(!("dismiss"in I)||I.dismiss)?(N.innerHTML=x,F.fillWith(N),F.contentEl().firstChild.appendChild(F.getChild("closeButton").el())):(N.innerHTML=x,F.fillWith(N)),F.one("modalclose",function(){return t.error(null)})}},y=function b(){h(),t.removeClass("vjs-errors"),t.off("dispose",b),t.off(["aderror","error"],v)},_=function(b){y(),r(t,videojs.mergeOptions(defaults$1,b))};_.extend=function(b){return u(b)},_.getAll=function(){return videojs.mergeOptions(e.errors)},_.disableProgress=function(b){e.progressDisabled=b,g()},t.on("dispose",y),t.on(["aderror","error"],v),t.ready(function(){t.addClass("vjs-errors")}),t.errors=_},errors=function(r){initPlugin(this,videojs.mergeOptions(defaults$1,r))};["extend","getAll","disableProgress"].forEach(function(r){errors[r]=function(){videojs.log.warn("The errors."+r+"() method is not available until the plugin has been initialized!")}}),registerPlugin("Errors",errors);var Plugin$7=videojs.getPlugin("plugin"),cgiSeq={},STATUS_CODE_REPORT_URL="//report.huatuo.qq.com/code.cgi",log$6=videojs.log,Reporter=function(r){function t(e,n){classCallCheck(this,t),log$6("Reporter initilaizing");var s=possibleConstructorReturn(this,r.call(this,e));if(!e.options_.plugins.Reporter){var a;return a=!1,possibleConstructorReturn(s,a)}return s.reportContent={status:"idle"},s.mtaReportCache=[],log$6("Reporter initilaized"),s}return inherits(t,r),t.prototype.setStorage=function(e,n){localStorage.setItem(e,n)},t.prototype.getStorage=function(e){localStorage.getItem(e)},t.prototype.sender=function(e){var n=new Image;n.onload=n.onerror=n.onabort=function(){n.onload=n.onerror=n.onabort=null,n=null},n.src=e},t.prototype.initPlayCgiCodeReport=function(){var e=this.player;e.on("playcgistart",videojs.bind(this,this.onPlayCgiStart)),e.on("playcgiend",videojs.bind(this,this.onPlayCgiEnd))},t.prototype.onPlayCgiStart=function(e){cgiSeq[e.data.time]=cgiSeq[e.data.time]||{},cgiSeq[e.data.time].startTime=e.data.time,cgiSeq[e.data.time].url=e.data.url},t.reportPlayMetrics=function(e,n){xhr.post("https://datacenter.live.qcloud.com",{body:JSON.stringify(e)},function(){n&&n()})},t.prototype.onPlayCgiEnd=function(e){if(cgiSeq[e.data.startTime]){var n=e.data,s=void 0,a=void 0,l=void 0;if(n.error)switch(a=2,n.error.message){case"Timeout":s=10;break;case"ServerError":s=11}else n.result.code==0?(a=1,s=0):(a=3,s=n.result.code),l=n.result.requestId;this.reportPlayCgiToISD("","",a,s,e.data.time-cgiSeq[e.data.startTime].startTime,l,void 0,void 0)}},t.prototype.reportPlayCgiToISD=function(e,n,s,a,l,u,c,h){var p={domain:e||"playvideo.qcloud.com",cgi:n||"/getplayinfo/v2",type:s,code:a,time:l,appid:20370,platform:videojs.browser.IS_IOS?"ios":videojs.browser.IS_ANDROID?"android":"pc",expansion1:u,expansion2:c,expansion3:h};this.sender(unifyProtocol(STATUS_CODE_REPORT_URL)+"?"+serializeParams(p))},t.prototype.reportMTA=function(e,n){window.MtaH5?(this.mtaReportCache.length>0&&(this.mtaReportCache.forEach(function(s){s.call()}),this.mtaReportCache=0),MtaH5.clickStat(e,n)):this.mtaReportCache.push(function(){MtaH5.clickStat(e,n)})},t}(Plugin$7);videojs.registerPlugin("Reporter",Reporter);var store2=createCommonjsModule(function(r){(function(t,e){var n={version:"2.12.0",areas:{},apis:{},inherit:function(a,l){for(var u in a)l.hasOwnProperty(u)||Object.defineProperty(l,u,Object.getOwnPropertyDescriptor(a,u));return l},stringify:function(a){return a===void 0||typeof a=="function"?a+"":JSON.stringify(a)},parse:function(a,l){try{return JSON.parse(a,l||n.revive)}catch{return a}},fn:function(a,l){n.storeAPI[a]=l;for(var u in n.apis)n.apis[u][a]=l},get:function(a,l){return a.getItem(l)},set:function(a,l,u){a.setItem(l,u)},remove:function(a,l){a.removeItem(l)},key:function(a,l){return a.key(l)},length:function(a){return a.length},clear:function(a){a.clear()},Store:function(a,l,u){var c=n.inherit(n.storeAPI,function(h,p,g){return arguments.length===0?c.getAll():typeof p=="function"?c.transact(h,p,g):p!==void 0?c.set(h,p,g):typeof h=="string"||typeof h=="number"?c.get(h):typeof h=="function"?c.each(h):h?c.setAll(h,p):c.clear()});c._id=a;try{l.setItem("__store2_test","ok"),c._area=l,l.removeItem("__store2_test")}catch{c._area=n.storage("fake")}return c._ns=u||"",n.areas[a]||(n.areas[a]=c._area),n.apis[c._ns+c._id]||(n.apis[c._ns+c._id]=c),c},storeAPI:{area:function(a,l){var u=this[a];return u&&u.area||(u=n.Store(a,l,this._ns),this[a]||(this[a]=u)),u},namespace:function(a,l){if(!a)return this._ns?this._ns.substring(0,this._ns.length-1):"";var u=a,c=this[u];if(!(c&&c.namespace||(c=n.Store(this._id,this._area,this._ns+u+"."),this[u]||(this[u]=c),l)))for(var h in n.areas)c.area(h,n.areas[h]);return c},isFake:function(){return this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(a){return this._area.has?this._area.has(this._in(a)):this._in(a)in this._area},size:function(){return this.keys().length},each:function(a,l){for(var u=0,c=n.length(this._area);u<c;u++){var h=this._out(n.key(this._area,u));if(h!==void 0&&a.call(this,h,this.get(h),l)===!1)break;c>n.length(this._area)&&(c--,u--)}return l||this},keys:function(a){return this.each(function(l,u,c){c.push(l)},a||[])},get:function(a,l){var u,c=n.get(this._area,this._in(a));return typeof l=="function"&&(u=l,l=null),c!==null?n.parse(c,u):l??c},getAll:function(a){return this.each(function(l,u,c){c[l]=u},a||{})},transact:function(a,l,u){var c=this.get(a,u),h=l(c);return this.set(a,h===void 0?c:h),this},set:function(a,l,u){var c=this.get(a);return c!=null&&u===!1?l:n.set(this._area,this._in(a),n.stringify(l),u)||c},setAll:function(a,l){var u,c;for(var h in a)c=a[h],this.set(h,c,l)!==c&&(u=!0);return u},add:function(a,l){var u=this.get(a);if(u instanceof Array)l=u.concat(l);else if(u!==null){var c=typeof u;if(c===typeof l&&c==="object"){for(var h in l)u[h]=l[h];l=u}else l=u+l}return n.set(this._area,this._in(a),n.stringify(l)),l},remove:function(a,l){var u=this.get(a,l);return n.remove(this._area,this._in(a)),u},clear:function(){return this._ns?this.each(function(a){n.remove(this._area,this._in(a))},1):n.clear(this._area),this},clearAll:function(){var a=this._area;for(var l in n.areas)n.areas.hasOwnProperty(l)&&(this._area=n.areas[l],this.clear());return this._area=a,this},_in:function(a){return typeof a!="string"&&(a=n.stringify(a)),this._ns?this._ns+a:a},_out:function(a){return this._ns?a&&a.indexOf(this._ns)===0?a.substring(this._ns.length):void 0:a}},storage:function(a){return n.inherit(n.storageAPI,{items:{},name:a})},storageAPI:{length:0,has:function(a){return this.items.hasOwnProperty(a)},key:function(a){var l=0;for(var u in this.items)if(this.has(u)&&a===l++)return u},setItem:function(a,l){this.has(a)||this.length++,this.items[a]=l},removeItem:function(a){this.has(a)&&(delete this.items[a],this.length--)},getItem:function(a){return this.has(a)?this.items[a]:null},clear:function(){for(var a in this.items)this.removeItem(a)}}},s=n.Store("local",function(){try{return localStorage}catch{}}());s.local=s,s._=n,s.area("session",function(){try{return sessionStorage}catch{}}()),s.area("page",n.storage("page")),typeof e=="function"&&e.amd!==void 0?e("store2",[],function(){return s}):r.exports?r.exports=s:(t.store&&(n.conflict=t.store),t.store=s)})(commonjsGlobal$1,commonjsGlobal$1&&commonjsGlobal$1.define)}),Plugin$8=videojs.getPlugin("plugin"),log$7=videojs.log,ContinuePlay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return s.options=n,s.init(),s}return inherits(t,r),t.prototype.init=function(e){var n=this.player,s=n.options_,a=void 0;n.off("timeupdate",videojs.bind(this,this.onTimeUpdate)),n.ready(videojs.bind(this,function(){a=s&&s.appID&&s.fileID?s.fileID:this.options.playID,this.playID=a,e&&e.src?this.source=e.src.split("?")[0]:n.cache_&&n.cache_.source&&n.cache_.source.src&&(this.source=n.cache_.source.src.split("?")[0]),(a||this.source)&&(log$7("ContinuePlay initializing"),this.lastTime=store2.get(this.getStoreKey()),n.off("timeupdate",videojs.bind(this,this.onTimeUpdate)),n.on("timeupdate",videojs.bind(this,this.onTimeUpdate)),n.one(this.getTriggerEvent(),videojs.bind(this,this.onPlay)),!this.options.auto&&n.getChild("ContinuePlayTips")&&n.getChild("ContinuePlayTips").close(),log$7("ContinuePlay initialized"),n.trigger({type:"feature",data:"continue"}))}))},t.prototype.onTimeUpdate=function(e){store2.set(this.getStoreKey(),this.player.currentTime())},t.prototype.onPlay=function(e){var n=this.player;Math.round(this.lastTime)>1&&this.player.duration()>1&&this.player.duration()!==1/0&&Math.round(this.lastTime)!=Math.round(this.player.duration())?this.options.auto?this.start():n.addChild("ContinuePlayTips",videojs.mergeOptions(this.options,{time:this.lastTime,resumeCallback:videojs.bind(this,this.start)})):n.techName_=="Flash"&&Math.round(this.lastTime)>1&&Math.round(this.lastTime)!=Math.round(this.player.duration())&&this.player.duration()!==1/0&&!this.player.duration()&&n.one("loadedmetadata",videojs.bind(this,this.onPlay))},t.prototype.start=function(){var e=this.player;e.currentTime(this.lastTime),e.techName_=="Flash"&&e.tech(!0).trigger("seeked"),e.trigger({type:"continueplay",data:{lastTime:this.lastTime}})},t.prototype.generatePlayID=function(){},t.prototype.getStoreKey=function(){return"tcplayer-lpt-"+(this.playID||this.source)},t.prototype.getTriggerEvent=function(){var e=this.player,n=e.options_;return n.autoplay&&e.techName_=="Flash"?"loadedmetadata":"playing"},t}(Plugin$8);videojs.registerPlugin("ContinuePlay",ContinuePlay);var defaults$2={align:"top-left",className:"",content:"",debug:!1,showBackground:!0,attachToControlBar:!1,overlays:[]},Component$12=videojs.getComponent("Component"),dom$1=videojs.dom||videojs,registerPlugin$1=videojs.registerPlugin||videojs.plugin,isNumber=function(r){return typeof r=="number"&&r===r},hasNoWhitespace=function(r){return typeof r=="string"&&/^\S+$/.test(r)},Overlay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return["start","end"].forEach(function(a){var l=s.options_[a];if(isNumber(l))s[a+"Event_"]="timeupdate";else if(hasNoWhitespace(l))s[a+"Event_"]=l;else if(a==="start")throw new Error('invalid "start" option; expected number or string')}),["endListener_","rewindListener_","startListener_"].forEach(function(a){s[a]=function(l){return t.prototype[a].call(s,l)}}),s.startEvent_==="timeupdate"&&s.on(e,"timeupdate",s.rewindListener_),s.debug('created, listening to "'+s.startEvent_+'" for "start" and "'+(s.endEvent_||"nothing")+'" for "end"'),s.hide(),s}return inherits(t,r),t.prototype.createEl=function(){var e=this.options_,n=e.content,s=e.showBackground?"tcp-overlay-background":"tcp-overlay-no-background",a=dom$1.createEl("div",{className:`
|
|
66
82
|
tcp-overlay
|
|
67
83
|
tcp-overlay-`+e.align+`
|
|
68
84
|
`+e.className+`
|
|
69
85
|
`+s+`
|
|
70
86
|
vjs-hidden
|
|
71
|
-
`});return typeof n=="string"?a.innerHTML=n:videojs.browser.IS_IE8||n instanceof window_1.DocumentFragment?a.appendChild(n):dom$1.appendContent(a,n),a},t.prototype.debug=function(){if(this.options_.debug){for(var e=videojs.log,n=e,s=arguments.length,a=Array(s),l=0;l<s;l++)a[l]=arguments[l];e.hasOwnProperty(a[0])&&typeof e[a[0]]=="function"&&(n=e[a.shift()]),n.apply(void 0,["overlay#"+this.id()+": "].concat(a))}},t.prototype.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.options_.once?(videojs.browser.IS_IOS&&videojs.browser.IS_WECHAT?this.player().hasStarted()||this.player().ready(videojs.bind(this,function(){this.startListener_({type:this.startEvent_})})):this.player().hasStarted()||this.on(this.player(),this.startEvent_,this.startListener_),this):(this.startEvent_==="pause"?this.on(this.player(),this.startEvent_,this.startOnPause_):this.on(this.player(),this.startEvent_,this.startListener_),this)},t.prototype.startOnPause_=function(e){var n=this.player();e.type==="pause"?n.seeking()||n.ended()||this.startListener_({type:"pause"}):n.paused()&&this.startListener_({type:"pause"})},t.prototype.shouldHide_=function(e,n){var s=this.options_.end;return isNumber(s)?e>=s:s===n},t.prototype.show=function(){return r.prototype.show.call(this),this.startEvent_==="pause"&&this.off(this.player(),this.startEvent_,this.startOnPause_),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},t.prototype.shouldShow_=function(e,n){var s=this.options_.start,a=this.options_.end;return isNumber(s)?isNumber(a)?e>=s&&e<a:this.hasShownSinceSeek_?Math.floor(e)===s:(this.hasShownSinceSeek_=!0,e>=s):s===n},t.prototype.startListener_=function(e){var n=this.player().currentTime();this.shouldShow_(n,e.type)&&this.show()},t.prototype.endListener_=function(e){var n=this.player().currentTime();this.shouldHide_(n,e.type)&&this.hide()},t.prototype.rewindListener_=function(e){var n=this.player().currentTime(),s=this.previousTime_,a=this.options_.start,l=this.options_.end;n<s&&(this.debug("rewind detected"),isNumber(l)&&!this.shouldShow_(n)?(this.debug("hiding; "+l+" is an integer and overlay should not show at this time"),this.hasShownSinceSeek_=!1,this.hide()):hasNoWhitespace(l)&&n<a&&(this.debug("hiding; show point ("+a+") is before now ("+n+") and end point ("+l+") is an event"),this.hasShownSinceSeek_=!1,this.hide())),this.previousTime_=n},t}(Component$12);videojs.registerComponent("Overlay",Overlay);var plugin=function(r){var t=this,e=videojs.mergeOptions(defaults$2,r);Array.isArray(this.overlays_)&&this.overlays_.forEach(function(s){t.removeChild(s),t.controlBar&&t.controlBar.removeChild(s),s.dispose()});var n=e.overlays;delete e.overlays,this.overlays_=n.map(function(s){var a=videojs.mergeOptions(e,s);return a.attachToControlBar&&t.controlBar&&a.align.indexOf("bottom")!==-1?t.controlBar.addChild("overlay",a):t.addChild("overlay",a)})};registerPlugin$1("Patch",plugin);var Plugin$10=videojs.getPlugin("plugin"),log$9=videojs.log,locations=["start","pause","ended"],startEvent=["loadstart","pause","ended"],endEvent=["play","play","play"],ImagePatch=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.hasInit=!1,s.init(n),s}return inherits(t,r),t.prototype.init=function(e){var n=this,s=this.player,a={showBackground:!1,overlays:[]};Array.isArray(e)&&e.length>0&&(log$9("ImagePatch initializing"),e.forEach(function(l){var u=void 0,c=void 0,h=void 0,p=void 0,m=document.createDocumentFragment();h=document.createElement("a"),h.className="tcp-overlay-link",h.target="_blank",l.link&&(h.href=l.link),l.url&&(p=n.loadImg(unifyProtocol(l.url),videojs.bind(n,n.onImgLoaded)),p.className="tcp-overlay-img",h.appendChild(p),videojs.browser.IS_IE8?(u=document.createElement("div"),u.className="tcp-overlay-table",c=document.createElement("div"),c.className="tcp-overlay-cell",c.appendChild(h),u.appendChild(c),m.appendChild(u)):m.appendChild(h),a.overlays.push({content:m,className:"tcp-image-patch tcp-image-patch-"+locations[l.location],start:startEvent[l.location],end:endEvent[l.location],once:l.location==0,align:"center"}))}),a.overlays.length>0?(s.Patch(a),s.trigger({type:"feature",data:"patch"}),this.hasInit=!0):this.reset(),log$9("ImagePatch initialized"))},t.prototype.loadImg=function(e,n){var s,a,l,u,c,h=new Image;return h.src=e,h.complete?(n&&n.call(n,h),h):(a=h.width,l=h.height,h.onerror=function(){s.end=!0,h=h.onload=h.onerror=null},s=function(){u=h.width,c=h.height,(u!==a||c!==l||u*c>1024)&&(n&&n.call(n,h),s.end=!0)},s(),h.onload=function(){!s.end&&s(),h=h.onload=h.onerror=null},h)},t.prototype.onImgLoaded=function(e){if(videojs.browser.IE_VERSION){var n=parseInt(this.player.el().currentStyle.width),s=parseInt(this.player.el().currentStyle.height);if(e.width>n||e.height>s){var a=n/(e.width/e.height);e.width/e.height>n/s||(e.style.marginTop=(s-a)/2+"px"),e.style.width="100%",e.style.height="auto"}}},t.prototype.reset=function(){this.hasInit&&(log$9("ImagePatch reset"),this.player.Patch(),this.hasInit=!1)},t}(Plugin$10);videojs.registerPlugin("ImagePatch",ImagePatch);var Plugin$11=videojs.getPlugin("plugin"),log$10=videojs.log,ContextMenu=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return s.options=n,log$10("ContextMenu initializing"),s.init(),log$10("ContextMenu initialized"),s}return inherits(t,r),t.prototype.init=function(){this.player.addChild("RightClickPopupMenu",this.options)},t}(Plugin$11);videojs.registerPlugin("ContextMenu",ContextMenu);var Plugin$12=videojs.getPlugin("plugin"),LevelSwitch=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return s.options=n,s.init(),s}return inherits(t,r),t.prototype.init=function(){var e=this.player,n=e.options_.plugins.ContextMenu;n&&n.levelSwitch&&n.levelSwitch.open&&e.addChild("LevelSwitchTips",this.options)},t}(Plugin$12);videojs.registerPlugin("LevelSwitch",LevelSwitch);var Plugin$13=videojs.getPlugin("plugin"),log$12=videojs.log,defaults$3={width:0,height:0,basePath:""},VttThumbnail=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return s.hasInit=!1,n.vttUrl&&e.ready(videojs.bind(s,function(){this.init(n)})),s}return inherits(t,r),t.prototype.loadTrackFile=function(e){var n=this,s=this.player,a=s.addRemoteTextTrack({src:e.vttUrl,kind:"metadata"},!0);a&&a.addEventListener("load",function(){n.trackInfo=a})},t.prototype.init=function(e){if(!videojs.browser.IS_IOS&&!videojs.browser.IS_ANDROID&&this.player.controlBar&&this.player.controlBar.progressControl){if(log$12("VttThumbnail initializing",e),!this.player.controlBar)return void log$12("VttThumbnail can not initialize without control bar");this.options=e;var n=this.player,s=n.controlBar.progressControl;this.loadTrackFile(e),defaults$3.basePath=parseBasePath(e.vttUrl),this.initUI(),s.on("mouseenter",videojs.bind(this,this.onMouseEnter)),s.on("mousemove",videojs.bind(this,this.onMouseMove)),s.on("mouseleave",videojs.bind(this,this.onMouseOut)),this.hasInit=!0,log$12("VttThumbnail initialized"),n.trigger({type:"feature",data:"thumbnail"})}},t.prototype.initTrackFile=function(e){e.track,this.trackInfo=e},t.prototype.initUI=function(){var e=videojs.dom.createEl("div",{className:"tcp-vtt-thumbnail-container"}),n=videojs.dom.createEl("img",{className:"tcp-vtt-thumbnail-img"});e.appendChild(n),this.containerEl=e,this.imgEl=n,this.player.controlBar.progressControl.el().appendChild(e)},t.prototype.onMouseEnter=function(){this.containerEl.style.display="block"},t.prototype.onMouseMove=function(e){if(!this.trackInfo)return!1;var n=void 0,s=void 0,a=void 0,l=void 0,u=void 0,c=void 0,h=void 0,p=void 0,m=0,b=void 0,f=void 0,g=void 0,v=void 0;for(a=this.player.controlBar.progressControl,l=this.player.controlBar.progressControl.seekBar,u=offsetParent(a.el()).getBoundingClientRect(),c=offsetParent(l.el()).getBoundingClientRect(),n=e.clientX,p=this.player.duration(),h=((n-c.left)/l.width()*p).toFixed(3),b=this.trackInfo.track||this.trackInfo;m<b.cues.length;){if(f=b.cues[m],f.startTime<=h&&f.endTime>=h){g=parseImageLink(f.text);break}m++}if(!g)return this.onMouseOut(),!1;v=n-c.left+g.w/2-l.width(),v=Math.max(0,v),s=n-u.left-g.w/2-v,s=Math.max(l.el().offsetLeft,s),g.left=s,this.setView(g)},t.prototype.onMouseOut=function(){this.containerEl.style.display="none"},t.prototype.setView=function(e){var n=this.containerEl,s=this.imgEl,a=this.options;n.style.width==e.w&&n.style.height==e.h||(n.style.width=e.w+"px",n.style.height=e.h+"px"),n.style.left=e.left+"px",a.imgUrl&&s.src!=a.imgUrl?s.src=a.imgUrl:s.src=e.src,s.style.left=-e.x+"px",s.style.top=-e.y+"px",s.style.clip="rect("+e.y+"px,"+(e.w+e.x)+"px,"+(e.y+e.h)+"px,"+e.x+"px)"},t.prototype.reset=function(){if(this.hasInit){log$12("VttThumbnail reset");var e=this.player,n=e.controlBar.progressControl;n.off("mousemove",videojs.bind(this,this.onMouseMove)),n.off("mouseleave",videojs.bind(this,this.onMouseOut)),this.hasInit=!1}},t}(Plugin$13),getComputedStyle=function(r,t){return function(e){return window.getComputedStyle?window.getComputedStyle(r,t)[e]:r.currentStyle[e]}},offsetParent=function r(t){return t.nodeName!=="HTML"&&getComputedStyle(t)("position")==="static"?r(t.offsetParent):t},parseImageLink=function(r){var t=void 0,e=void 0,n=void 0;if((e=r.indexOf("#"))===-1)return{src:r,w:0,h:0,x:0,y:0};if(t=r.substring(0,e),/^(http:|https:|\/\/)/.test(t)||(t=defaults$3.basePath+t),n=r.substring(e+1),n.substring(0,5)!=="xywh=")return{src:t,w:0,h:0,x:0,y:0};var s=n.substring(5).split(",");return{src:t,w:parseInt(s[2]),h:parseInt(s[3]),x:parseInt(s[0]),y:parseInt(s[1])}},parseBasePath=function(r){/^(\/\/)/.test(r)&&(r="https:"+r);var t=/(\w+):\/\/([^\:|\/]+)(\:\d*)?(.*\/)([^#|\?|\n]+)?(#.*)?(\?.*)?/i,e=r.match(t);if(e&&e[2]&&e[4])return"//"+e[2]+e[4]};videojs.registerPlugin("VttThumbnail",VttThumbnail);var Plugin$14=videojs.getPlugin("plugin"),log$13=videojs.log,PlayerMetrics=function(r){function t(e,n){classCallCheck(this,t),log$13("PlayerMetrics initializing");var s=possibleConstructorReturn(this,r.call(this,e));if(e.options_.reportable===!1){var a;return a=!1,possibleConstructorReturn(s,a)}return s.player=e,s.checkPrevData(),s.initData(),s.registerListener(),log$13("PlayerMetrics initialized"),s}return inherits(t,r),t.prototype.checkPrevData=function(){var e=localStorage.getItem("tcplayer_data");if(e){var n=JSON.parse(e);Reporter.reportPlayMetrics(n,function(){localStorage.removeItem("tcplayer_data")})}},t.prototype.initData=function(){this.bytes_token=guid(),this.vodBaseData={uint32_service:2,uint32_platform:3,bytes_version:String(version),uint64_appid:0,bytes_bizid:this.guid("dev_uuid"),bytes_stream_id:"",uint32_module_id:1011,uint32_data_type:1,uint32_command:40303,uint64_data_time:0,bytes_token:this.bytes_token,token:this.bytes_token,dev_uuid:this.guid("dev_uuid"),str_app_name:"",str_app_version:"",str_stream_url:"",str_brand_type:this.getDevice(),str_device_resolution:screen.width+"_"+screen.height,str_device_type:"",str_package_name:"",str_sdk_name:"TCPlayer",str_user_id:this.guid("dev_uuid"),sys_type:this.getSystem(),sys_version:String(this.getSystemVer()),str_user_agent:USER_AGENT,str_browser_version:String(this.getBrowserVer()),str_browser_model:String(this.getBrowser()),u32_app_id:String(this.player.options_.appID),str_fileid:String(this.player.options_.fileID),u32_network_type:this.getNetworkType()},this.liveBaseData={str_user_id:this.guid("dev_uuid"),dev_uuid:this.guid("dev_uuid"),str_session_id:this.bytes_token,bytes_token:this.bytes_token,str_device_type:"",str_os_info:this.getSystem(),str_package_name:"",u32_network_type:this.getNetworkType()!=="0xFF"?this.getNetworkType():"",u32_server_ip:"",str_stream_url:this.player.cache_.src,u64_timestamp:this.player.startTime,u32_link_type:1,u32_channel_type:1,str_app_version:"",platform:3,uint32_platform:3,str_browser_version:this.getBrowserVer(),str_browser_model:this.getBrowser(),str_user_agent:USER_AGENT,u32_video_drop:"",u32_drop_usage:"",float64_rtt:""},this.features=[],this.afterCanplay=!1,this.videoDuration=0,this.consumeDuration=0,this.playScene=2,this.timing={},this.playStatus={isFirstPlay:!1,pauseDuration:0},this.contentComputTimePoint=[],this.firstFrameDuration=0,this.firstIFrameDuration=0,this.blockInterval=5e3,this.bufferBlock=[],this.u32_drm_type="plain",this.resetLagStatus(),this.resetBlockData()},t.prototype.getComsumeDuration=function(e){var n=getTimeStamp()-this.timing.firstPlaying;this.consumeDuration=n-this.lagStatus.lagDuration-this.playStatus.pauseDuration,e&&this.consumeDuration<0&&(this.consumeDuration=n>0?n:0)},t.prototype.registerListener=function(){var e=this.player;e.on("loadedmetadata",videojs.bind(this,this.onLoadedmetadata)),e.one("canplay",videojs.bind(this,this.oneCanplay)),e.one("play",videojs.bind(this,this.onePlay)),e.on("play",videojs.bind(this,this.onPlay)),e.on("playing",videojs.bind(this,this.onPlaying)),e.on("seeking",videojs.bind(this,this.onSeeking)),e.on("seeked",videojs.bind(this,this.onSeeked)),e.on("error",videojs.bind(this,this.onError)),e.on("resolutionswitching",videojs.bind(this,this.onResolutionSwitching)),e.on("pause",videojs.bind(this,this.onPause)),e.on("playcgiend",videojs.bind(this,this.onPlaycgiend)),e.on("ended",videojs.bind(this,this.onEnded)),e.on("feature",videojs.bind(this,this.onFeature)),e.on("dispose",videojs.bind(this,this.onDispose)),document.addEventListener("visibilitychange",videojs.bind(this,this.onVisibilityChange)),window.addEventListener("pagehide",videojs.bind(this,this.onPageHide))},t.prototype.onPageHide=function(){this.saveData()},t.prototype.onVisibilityChange=function(){document.visibilityState==="hidden"&&this.saveData()},t.prototype.saveData=function(){this.bytes_token&&this.playScene!==3&&this.player&&(this.getComsumeDuration(),this.report(this.playScene===2?40304:40102,{},function(e){localStorage.setItem("tcplayer_data",JSON.stringify(e))}))},t.prototype.onLoadedmetadata=function(){this.player.tech_.webrtcProvider?this.playScene=3:this.playScene=this.player.duration()===1/0?1:2,this.videoDuration=parseInt(this.player.duration())||0,videojs.bind(this,this.calculateFirstFrameDuration)(),this.playScene===2&&this.report(40303)},t.prototype.oneCanplay=function(){videojs.bind(this,this.calculateFirstFrameDuration)(),this.playScene===1&&this.report(40101)},t.prototype.calculateFirstFrameDuration=function(){var e=getperformance();e.mark&&e.measure&&e.getEntriesByName&&(e.mark("firstIFrameEnd"),e.measure("firstIFrame","firstFrameStart","firstIFrameEnd"),this.firstIFrameDuration=e.getEntriesByName("firstIFrame")[0].duration)},t.prototype.onePlay=function(){var e=this;this.setTimingData({firstPlay:getTimeStamp()});var n=this.player.el_.firstChild;this.bufferStart=n&&n.buffered&&n.buffered.length>0?n.buffered.start(n.buffered.length-1):0,this.bufferBlock=[this.bufferStart];var s=this.player.getVideoPlaybackQuality();this.recvFrames=s.totalVideoFrames,this.renderedFrames=s.totalVideoFrames-s.droppedVideoFrames,this.blockStartTime=getTimeStamp(),this.blockTimer=setInterval(function(){if(e.playScene===2)return!1;if(e.lagStatus.lagging&&e.lagStatus.lagStart){var a=getTimeStamp()-e.lagStatus.lagStart;a>e.blockInterval?e.blockData.lagBlockDuration=e.blockInterval:e.blockData.lagBlockDuration+=a}e.blockStartTime=getTimeStamp();var l=n&&n.buffered&&n.buffered.length>0?n.buffered.end(n.buffered.length-1):0,u=e.player.getVideoPlaybackQuality(),c=u.totalVideoFrames,h=u.totalVideoFrames-u.droppedVideoFrames;Object.assign(e.blockData,{buffer_avg:parseInt(1e3*(l-e.bufferStart)),recv_frames:c-e.recvFrames,render_frames:h-e.renderedFrames}),e.bufferBlock.push(e.blockData.buffer_avg),e.bufferStart=l,e.recvFrames=c,e.renderedFrames=h,e.report(40100)},this.blockInterval)},t.prototype.onDispose=function(){clearInterval(this.blockTimer)},t.prototype.onPlay=function(){this.playStatus.pauseTime&&(this.playStatus.pauseDuration=this.playStatus.pauseDuration+getTimeStamp()-this.playStatus.pauseTime,this.playStatus.pauseTime=0)},t.prototype.onPlaying=function(){var e=this;if(!this.playStatus.isFirstPlay&&(this.playStatus.isFirstPlay=!0,this.setTimingData({firstPlaying:getTimeStamp()}),this.player.on("waiting",function(){e.lagStatus.lagging||e.player.seeking()||e.lagStatus.skip||(e.lagStatus.lagging=!0,e.lagStatus.lagStart=getTimeStamp())}),this.player.currentSource().keySystems)){var n=this.player.currentSource().keySystems;n.plain&&(this.u32_drm_type="plain"),n.SimpleAES&&(this.u32_drm_type="SimpleAES")}this.lagStatus.lagging&&(this.lagStatus.lagEnd=getTimeStamp())-this.lagStatus.lagStart>this.lagStatus.lagInterval&&(this.lagStatus.lagging=!1,this.lagStatus.lagCount++,this.lagStatus.lagAvg.push(this.lagStatus.lagEnd-this.lagStatus.lagStart),this.lagStatus.lagDuration+=this.lagStatus.lagEnd-this.lagStatus.lagStart,this.lagStatus.lagStart<this.blockStartTime&&(this.blockData.lagBlockDuration=this.lagStatus.lagEnd-this.blockStartTime),this.lagStatus.lagStart>=this.blockStartTime&&(this.blockData.lagBlockDuration+=this.lagStatus.lagEnd-this.lagStatus.lagStart),this.lagStatus.lagEnd=this.lagStatus.lagStart=0,this.lagStatus.isFirstLag||(this.lagStatus.isFirstLag=!0,this.setTimingData({firstLag:getTimeStamp()}))),[60,200,500,1e3].forEach(function(s){e.lagStatus.lagging&&(e.lagStatus.lagEnd=getTimeStamp())-e.lagStatus.lagStart>s&&e.blockData["lagCount_"+s]++}),this.lagStatus.skip=!1},t.prototype.onSeeking=function(){this.contentComputTimePoint.push({type:"end",time:this.player.currentTime()})},t.prototype.onSeeked=function(){this.contentComputTimePoint.push({type:"start",time:this.player.currentTime()})},t.prototype.onError=function(e){this.getComsumeDuration(!0);var n={u64_err_code:e.data.code,str_err_info:e.data.message||(defaults$1.errors[e.data.code]||{}).message},s=(this.player.cache_.src||"").indexOf("vod")>-1||this.player.options_.fileID;e&&e.data&&e.data.code&&(this.playScene===2&&s?this.report(40304,n):this.afterCanplay?this.report(40102,n):this.report(40101,n))},t.prototype.onResolutionSwitching=function(){this.lagStatus.skip=!0},t.prototype.onPause=function(){this.playStatus.pauseTime=getTimeStamp(),this.lagStatus.lagging&&(this.lagStatus.skip=!0)},t.prototype.onPlaycgiend=function(e){var n=this,s=e.data;s.result&&s.result.code==0&&(this.playStatus.requestID=s.result.requestId,setTimeout(function(){if(n.player.currentSources().length>0&&n.player.currentSources()[0].keySystems){var a=n.player.currentSources()[0].keySystems;a["com.widevine.alpha"]&&n.reportMTA("drm",{initialized:"Widevine"}),a["com.apple.fps.1_0"]&&n.reportMTA("drm",{initialized:"FairPlay"})}else n.player.options_.plugins.DRM&&n.player.options_.plugins.DRM.token&&n.reportMTA("drm",{initialized:"SimpleAES"})},0)),this.setTimingData({cgiStart:e.data.startTime,cgiEnd:e.data.time})},t.prototype.onEnded=function(){this.getComsumeDuration(),this.playScene===1?this.report(40102):this.report(40304)},t.prototype.onFeature=function(e){this.features.indexOf(e.data)==-1&&this.features.push(e.data)},t.prototype.guid=function(e){var n=localStorage.getItem(e);return n||(n=guid(),localStorage.setItem(e,n)),n},t.prototype.report=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments[2];if(this.playScene===3)return!1;e&&this["report_"+e](n,s)},t.prototype.report_40101=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.player)return!1;var n={uint64_data_time:getTimeStampBySecond(),str_stream_url:this.player.cache_.src,u64_timestamp:this.player.startTime,u32_dns_time:"",u32_connect_server_time:parseInt(this.firstFrameDuration),u32_video_decode_type:0,u32_first_frame_down:parseInt(this.firstFrameDuration),u32_first_video_decode_time:parseInt(this.firstIFrameDuration),u32_first_i_frame:parseInt(this.firstIFrameDuration),u32_first_audio_frame_down:parseInt(this.firstFrameDuration),u32_first_audio_render_time:parseInt(this.firstIFrameDuration),u64_err_code:e.u64_err_code||"",str_err_info:e.str_err_info||""},s={app_id:0,data:[Object.assign({},this.liveBaseData,n,e)],module_id:1005,command:40101};Reporter.reportPlayMetrics(s)},t.prototype.report_40100=function(e){var n=this,s=this.player||{};this.blockData=this.blockData||{};var a={u32_cpu_usage:"",u32_app_cpu_usage:"",u32_avg_memory:"",u32_avg_cpu_usage:"",str_stream_url:s.cache_&&s.cache_.src,uint64_data_time:getTimeStampBySecond(),u32_recv_av_diff_time:0,u32_play_av_diff_time:0,u64_playtime:getTimeStamp()-this.timing.firstPlaying,u32_audio_decode_type:2,u32_audio_block_count:this.blockData.lagCount_500,u32_audio_cache_time:this.blockData.buffer_avg,u32_audio_drop:"",u32_video_decode_type:0,u32_video_recv_fps:this.blockData.recv_frames,u32_fps:this.blockData.render_frames,u32_video_cache_time:this.blockData.buffer_avg,u32_avg_cache_count:0,u32_video_block_count:this.blockData.lagCount_1000,u32_avg_net_speed:"",u32_video_light_block_count:this.blockData.lagCount_200,u32_video_large_block_count:this.blockData.lagCount_500,u32_audio_jitter_60ms_count:this.blockData.lagCount_60,u32_video_decode_fail:"",u32_audio_decode_fail:"",u32_avg_video_bitrate:0,u32_avg_audio_bitrate:0,u32_block_usage:1e3*parseInt(this.blockData.lagBlockDuration/this.blockInterval)},l={app_id:0,data:[Object.assign({},this.liveBaseData,a,e)],module_id:1005,command:40100};Reporter.reportPlayMetrics(l,function(){n.resetBlockData()})},t.prototype.report_40102=function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments[1],a=this.player||{},l=0,u=0,c=0;JSON.stringify(a)!=="{}"?(l=this.lagStatus.lagAvg.length>0?this.lagStatus.lagAvg.reduce(function(m,b){return m+b},0)/this.lagStatus.lagAvg.length:0,u=this.bufferBlock.length>0?this.bufferBlock.reduce(function(m,b){return m+b},0)/this.bufferBlock.length:0,c=(a.getVideoPlaybackQuality&&a.getVideoPlaybackQuality()||{}).totalVideoFrames/n.duration):this.resetLagStatus();var h={uint64_data_time:getTimeStampBySecond(),str_stream_url:a.cache_&&a.cache_.src,u64_timestamp:getTimeStamp(),u32_avg_cpu_usage:"",u32_avg_memory:"",u64_begin_timestamp:a.startTime,u32_result:this.consumeDuration,u64_err_code:n.u64_err_code,u32_speed_cnt:0,u32_avg_cache_time:u,u32_max_load:Math.max.apply(Math,this.lagStatus.lagAvg),u32_audio_block_time:this.lagStatus.lagDuration,u32_avg_load:l,u32_load_cnt:this.lagStatus.lagAvg.length||0,u32_nodata_cnt:this.lagStatus.lagAvg.length||0,u32_first_i_frame:this.firstIFrameDuration,u32_video_width:a.width_,u32_video_height:a.height_,u32_video_avg_fps:c,u32_avg_block_time:l,u64_block_count:this.lagStatus.lagAvg.length||0,u32_video_block_time:this.lagStatus.lagDuration,u64_jitter_cache_max:0,u64_block_duration_max:Math.max.apply(Math,this.lagStatus.lagAvg),u64_jitter_cache_avg:0,u32_ip_count_quic:"",u32_connect_count_quic:"",u32_connect_count_tcp:"",u32_is_real_time:"",u32_first_frame_black:"",u32_delay_report:0},p={app_id:0,data:[Object.assign({},this.liveBaseData,h,n)],module_id:1005,command:40102};return n.u32_delay_report?(localStorage.setItem("tcplayer_data",JSON.stringify(p)),!1):s?(p.data.u32_delay_report=1,s(p)):void Reporter.reportPlayMetrics(p,function(){e.bytes_token=null,localStorage.removeItem("tcplayer_data")})},t.prototype.report_40303=function(){this.setTimingData({initEnd:getTimeStamp()});var e={msg_client_ip:{uint32_ip:""},uint32_service:this.playScene,uint64_data_time:getTimeStampBySecond(),str_stream_url:this.player.cache_.src,uint32_command:40303},n={app_id:0,data:[Object.assign({},this.vodBaseData,e)],module_id:1011,command:40303};Reporter.reportPlayMetrics(n)},t.prototype.report_40304=function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments[1],a=this.lagStatus.lagAvg.length>0?this.lagStatus.lagAvg.reduce(function(c,h){return c+h},0)/this.lagStatus.lagAvg.length:0,l={uint64_data_time:getTimeStampBySecond(),uint32_command:40304,str_stream_url:this.player.cache_.src,u32_timeuse:String(parseInt(this.consumeDuration/1e3)||0),u32_videotime:String(this.videoDuration),u32_avg_load:String(a),u32_load_cnt:String(this.lagStatus.lagCount),u32_max_load:this.lagStatus.lagAvg.length>0?String(Math.max.apply(Math,this.lagStatus.lagAvg)):String(0),u32_avg_block_time:String(this.lagStatus.lagDuration),u32_player_type:String(4),u32_dns_time:"",u32_tcp_did_connect:"",u32_first_video_packet:String(parseInt(this.firstFrameDuration)),u32_first_i_frame:String(parseInt(this.firstIFrameDuration)),u32_server_ip:"",u32_drm_type:this.u32_drm_type,u32_playmode:String(1),u64_err_code:String(n.u64_err_code||""),str_err_info:String(n.str_err_info||""),u32_video_decode_type:String(0),u32_speed:this.player&&String(100*this.player.playbackRate())||"1000"},u={app_id:0,data:[Object.assign({},this.vodBaseData,l)],module_id:1011,command:40304};if(s)return s(u);Reporter.reportPlayMetrics(u,function(){e.bytes_token=null,localStorage.removeItem("tcplayer_data")})},t.prototype.setTimingData=function(e){this.timing=videojs.mergeOptions(this.timing,e)},t.prototype.reset=function(){this.playStatus={isFirstPlay:!1}},t.prototype.resetLagStatus=function(){this.lagStatus={lagCount:0,lagging:!1,lagStart:0,lagEnd:0,lagInterval:500,lagDuration:0,lagAvg:[],isFirstLag:!1,skip:!1}},t.prototype.resetBlockData=function(){this.blockData={lagCount_60:0,lagCount_200:0,lagCount_500:0,lagCount_1000:0,lagBlockDuration:0,buffer_avg:0,recv_frames:0,render_frames:0}},t.prototype.reportMTA=function(e,n){},t.prototype.getSystem=function(){return IS_IOS?"ios":IS_ANDROID?"android":IS_WIN?"win":IS_MAC?"mac":"other"},t.prototype.getSystemVer=function(){var e=this.getSystem();return e=="ios"?IOS_VERSION:e=="android"?ANDROID_VERSION:e=="win"?WIN_VER:e=="mac"?MAC_VER:void 0},t.prototype.getBrowser=function(){return IS_FIREFOX?"firefox":IS_EDGE?"edge":IS_MQQB?"mqq":IS_QQB?"qq":IS_TBS?"tbs":IS_CHROME?"chrome":IE_VERSION?"ie":IS_SAFARI?"safari":"other"},t.prototype.getBrowserVer=function(){var e=this.getBrowser();return e=="firefox"?FIREFOX_VER:e=="edge"?EDGE_VER:e=="chrome"?CHROME_VER:e=="ie"?IE_VERSION:e=="safari"?SAFARI_VER:e=="qq"||e=="mqq"?QQ_VER:e=="tbs"?TBS_VERSION:"other"},t.prototype.getDevice=function(){return IS_IOS?"IPHONE":IS_HUAWEI?"HUAWEI":IS_XIAOMI?"XIAOMI":IS_OPPO?"OPPO":IS_VIVO?"VIVO":IS_SX?"SUMSUNG":IS_CP?"COOLPAD":IS_ONE?"ONEPLUS":IS_ZX?"ZTE":"OTHER"},t.prototype.getMediaType=function(){return this.player.src()&&/\/(.+)\.(.+)\?|\/(.+)\.(.+)/.test(this.player.src()),RegExp.$2||RegExp.$4},t.prototype.getNetworkType=function(){var e=navigator.userAgent,n=e.match(/NetType\/\w+/)?e.match(/NetType\/\w+/)[0]:"NetType/other";n=n.toLowerCase().replace("nettype/","");var s;switch(n){case"wifi":s="1";break;case"4g":s="2";break;case"3g":case"3gnet":s="3";break;case"2g":s="4";break;default:s="0xFF"}return s},t}(Plugin$14);videojs.registerPlugin("PlayerMetrics",PlayerMetrics);var Plugin$15=videojs.getPlugin("plugin"),log$14=videojs.log,ProgressMarker=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return e.ready(videojs.bind(s,s.init)),s}return inherits(t,r),t.prototype.init=function(){function e(){Array.isArray(n.options_.dots)&&n.options_.dots.length>0&&(n.options_.dots.forEach(function(a){!a.emitted&&a.timeOffset-1e3*(n.currentTime()||0)<500&&(a.emitted=!0,n.trigger("marker",a.content))}),n.options_.dots[n.options_.dots.length-1].emitted||window.requestAnimationFrame(e))}var n=this.player;if(n.options_.dots){if(window.requestAnimationFrame(e),IS_IOS||IS_ANDROID)return!1;if(!n.controlBar||!this.player.controlBar.progressControl)return void log$14("ProgressMarker can not initialize without control bar or progress control");log$14("ProgressMarker initializing");var s=n.controlBar.getChild("ProgressControl").getChild("SeekBar");s.getChild("ProgressMarkerGenerator")&&s.removeChild("ProgressMarkerGenerator"),n.options_.plugins.ProgressMarker&&(s.addChild("ProgressMarkerGenerator"),log$14("ProgressMarker initialized"),n.trigger({type:"feature",data:"marker"}))}},t}(Plugin$15);videojs.registerPlugin("ProgressMarker",ProgressMarker);var Component$15=videojs.getComponent("Component"),PlayListItem=function(r){function t(e,n){return classCallCheck(this,t),possibleConstructorReturn(this,r.call(this,e,n))}return inherits(t,r),t.prototype.createEl=function(){var e=this.options_,n=videojs.dom.createEl("div",{className:"tcp-playlist-item"}),s=videojs.dom.createEl("div",{className:"tcp-playlist-item-video",innerHTML:e.img?'<img src="'+e.img+'" class="tcp-playlist-item-img">':'<img src="https://imgcache.qq.com/open_proj/proj_qcloud_v2/mc_2014/video/console/v2/css/img/vod/default-cover.png" height="100" class="tcp-playlist-item-img">'}),a=videojs.dom.createEl("div",{className:"tcp-playlist-item-duration",textContent:this.timeFormat(e.duration)});s.appendChild(a);var l=videojs.dom.createEl("div",{className:"tcp-playlist-item-desc",textContent:e.text});return n.appendChild(s),n.appendChild(l),this.bindEvent(n),n},t.prototype.bindEvent=function(e){var n=this;videojs.on(e,["click"],function(){n.player_.trigger({type:"playItem",data:n.options_})})},t.prototype.timeFormat=function(e){var n="",s=Math.floor(e/3600);s!=0&&(e-=3600*s,s<10&&(s="0"+s),n+=s+":");var a=Math.floor(e/60);return a<10&&(a="0"+a),e-=60*a,e<10&&(e="0"+e),n+=a+":"+e},t}(Component$15);videojs.registerComponent("PlayListItem",PlayListItem);var Component$16=videojs.getComponent("Component"),PlayListTitle=function(r){function t(e,n){return classCallCheck(this,t),possibleConstructorReturn(this,r.call(this,e,n))}return inherits(t,r),t.prototype.createEl=function(){var e=this.options_;return videojs.dom.createEl("div",{className:"tcp-playlist-title",textContent:e.title})},t}(Component$16);videojs.registerComponent("PlayListTitle",PlayListTitle);var Component$14=videojs.getComponent("Component"),PlayListBox=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.init(),s.activeIndex=-1,s}return inherits(t,r),t.prototype.createEl=function(){return videojs.dom.createEl("div",{className:"tcp-playlist-box"})},t.prototype.init=function(){var e=this,n=this.options_.data;this.addChild("PlayListTitle",{title:this.options_.title}),n.forEach(function(s,a){s.index=a,e.addChild("PlayListItem",s)}),this.player_.on("ready",function(){e.options_.loop&&(e.activeIndex=0,e.player_.on("ended",videojs.bind(e,function(){e.player_.trigger({type:"playItem"})})))}),this.player_.on("playItem",function(s){var a=s.data,l=void 0;e.activeIndex=a?a.index:(e.activeIndex+1)%n.length,l=n[e.activeIndex],e.player_.loadVideoByID({fileID:l.fileID,appID:l.appID,psign:l.psign}),e.player_.one("loadedmetadata",videojs.bind(e,function(){e.player_.play()})),document.querySelectorAll(".tcp-playlist-item").forEach(function(c){videojs.dom.removeClass(c,"tcp-playlist-item-active")});var u=document.querySelectorAll(".tcp-playlist-item")[e.activeIndex];videojs.dom.addClass(u,"tcp-playlist-item-active")})},t}(Component$14);videojs.registerComponent("PlayListBox",PlayListBox);var Component$17=videojs.getComponent("Component"),PlayListToggle=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.status=0,s}return inherits(t,r),t.prototype.createEl=function(){var e=videojs.dom.createEl("div",{className:"tcp-playlist-toggle",textContent:"<"});return this.bindEvent(e),e},t.prototype.bindEvent=function(e){var n=this;videojs.on(e,["click"],function(s){n.status=!n.status;var a=document.querySelector(".tcp-playlist");n.status?(e.textContent=">",videojs.dom.addClass(a,"tcp-playlist-open"),videojs.dom.removeClass(a,"tcp-playlist-close")):(videojs.dom.addClass(a,"tcp-playlist-close"),videojs.dom.removeClass(a,"tcp-playlist-open"),e.textContent="<")})},t}(Component$17);videojs.registerComponent("PlayListToggle",PlayListToggle);var Component$13=videojs.getComponent("Component"),PlayList$1=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.init(),s}return inherits(t,r),t.prototype.createEl=function(){return videojs.dom.createEl("div",{className:"tcp-playlist tcp-playlist-close"})},t.prototype.init=function(){this.addChild("PlayListToggle"),this.addChild("PlayListBox",this.options_)},t}(Component$13);videojs.registerComponent("PlayList",PlayList$1);var Button$5=videojs.getComponent("Button"),PlayNextButton=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.addClass(),s}return inherits(t,r),t.prototype.addClass=function(){videojs.dom.addClass(this.el_,"vjs-play-next")},t.prototype.update=function(){},t.prototype.handleClick=function(e){this.player_.trigger({type:"playItem"})},t}(Button$5);PlayNextButton.prototype.controlText_="Play Next",videojs.registerComponent("PlayNextButton",PlayNextButton);var Plugin$16=videojs.getPlugin("plugin"),log$15=videojs.log,PlayList=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return IS_IOS||IS_ANDROID?possibleConstructorReturn(s):(s.options=n,n&&n.data instanceof Array&&n.data.length>0&&e.ready(videojs.bind(s,s.init)),s)}return inherits(t,r),t.prototype.init=function(){log$15("PlayList initializing"),this.player.addChild("PlayList",this.options),this.player.controlBar.addChild("PlayNextButton",{},1),log$15("PlayList initialized"),this.player.trigger({type:"feature",data:"playlist"})},t}(Plugin$16);videojs.registerPlugin("PlayList",PlayList);var Plugin$17=videojs.getPlugin("plugin"),log$16=videojs.log,HLSToken=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return log$16("HLSToken",e,n),s.init(n),s}return inherits(t,r),t.prototype.init=function(e){log$16("HLSToken init",e,this.player);var n=this.player;e.token&&(this.options=e,n.on("playcgiend",videojs.bind(this,function(s){this.modifyData(s.data)})))},t.prototype.modifyData=function(e){var n=this;if(log$16("HLSToken modifyData",e),e.result.code===0){var s=e.result.videoInfo;if(s.masterPlayList){var a=s.masterPlayList.url.split("/");a[a.length-1]="voddrm.token."+this.options.token+"."+a[a.length-1],s.masterPlayList.url=a.join("/")}s.transcodeList&&s.transcodeList.length>0&&(s.transcodeList=s.transcodeList.map(function(l){var u=l.url.split("/");return u[u.length-1]="voddrm.token."+n.options.token+"."+u[u.length-1],l.url=u.join("/"),l}))}},t}(Plugin$17);videojs.registerPlugin("HLSToken",HLSToken);var getMessageContents=function(r){var t=new window_1.DOMParser().parseFromString(String.fromCharCode.apply(null,new Uint16Array(r)),"application/xml"),e=t.getElementsByTagName("HttpHeaders")[0],n={};if(e)for(var s=e.getElementsByTagName("name"),a=e.getElementsByTagName("value"),l=0;l<s.length;l++)n[s[l].childNodes[0].nodeValue]=a[l].childNodes[0].nodeValue;var u=t.getElementsByTagName("Challenge")[0],c=void 0;return u&&(c=window_1.atob(u.childNodes[0].nodeValue)),{headers:n,message:c}},requestPlayreadyLicense=function(r,t,e){var n=getMessageContents(t),s=n.headers,a=n.message;videojs.xhr({uri:r,method:"post",headers:s,body:a,responseType:"arraybuffer"},e)},getSupportedKeySystem=function(r){var t=void 0;return Object.keys(r).forEach(function(e){var n={},s=r[e].audioContentType,a=r[e].videoContentType;s&&(n.audioCapabilities=[{contentType:s}]),a&&(n.videoCapabilities=[{contentType:a}]),t=t?t.catch(function(l){return window_1.navigator.requestMediaKeySystemAccess(e,[n])}):window_1.navigator.requestMediaKeySystemAccess(e,[n])}),t},makeNewRequest=function(r){var t=r.mediaKeys,e=r.initDataType,n=r.initData,s=r.options,a=r.getLicense,l=r.removeSession,u=r.eventBus,c=t.createSession();c.addEventListener("message",function(h){a(s,h.message).then(function(p){return c.update(p)}).catch(videojs.log.error.bind(videojs.log.error,"failed to get and set license"))},!1),c.addEventListener("keystatuseschange",function(h){var p=!1;c.keyStatuses.forEach(function(m,b){switch(u.trigger({keyId:b,status:m,target:c,type:"keystatuschange"}),m){case"expired":p=!0;break;case"internal-error":videojs.log.warn(`Key status reported as "internal-error." Leaving the session open since we don't have enough details to know if this error is fatal.`,h)}}),p&&c.close().then(function(){l(n)})},!1),c.generateRequest(e,n).catch(videojs.log.error.bind(videojs.log.error,"Unable to create or initialize key session"))},addSession=function(r){var t=r.video,e=r.initDataType,n=r.initData,s=r.options,a=r.getLicense,l=r.removeSession,u=r.eventBus;t.mediaKeysObject?makeNewRequest({mediaKeys:t.mediaKeysObject,initDataType:e,initData:n,options:s,getLicense:a,removeSession:l,eventBus:u}):t.pendingSessionData.push({initDataType:e,initData:n})},setMediaKeys=function(r){var t=r.video,e=r.certificate,n=r.createdMediaKeys,s=r.options,a=r.getLicense,l=r.removeSession,u=r.eventBus;t.mediaKeysObject=n,e&&n.setServerCertificate(e);for(var c=0;c<t.pendingSessionData.length;c++){var h=t.pendingSessionData[c];makeNewRequest({mediaKeys:t.mediaKeysObject,initDataType:h.initDataType,initData:h.initData,options:s,getLicense:a,removeSession:l,eventBus:u})}return t.pendingSessionData=[],t.setMediaKeys(n)},defaultPlayreadyGetLicense=function(r){return function(t,e,n){requestPlayreadyLicense(r,e,function(s,a,l){if(s)return void n(s);n(null,l)})}},defaultGetLicense=function(r){return function(t,e,n){videojs.xhr({uri:r,method:"POST",responseType:"arraybuffer",body:e,headers:{"Content-type":"application/octet-stream"}},function(s,a,l){if(s)return void n(s);n(null,l)})}},promisifyGetLicense=function(r,t){return function(e,n){return new Promise(function(s,a){r(e,n,function(l,u){t&&t.trigger("licenserequestattempted"),l&&a(l),s(u)})})}},standardizeKeySystemOptions=function(r,t){if(typeof t=="string"&&(t={url:t}),!t.url&&!t.getLicense)throw new Error("Neither URL nor getLicense function provided to get license");return t.url&&!t.getLicense&&(t.getLicense=r==="com.microsoft.playready"?defaultPlayreadyGetLicense(t.url):defaultGetLicense(t.url)),t},standard5July2016=function(r){var t=r.video,e=r.initDataType,n=r.initData,s=r.options,a=r.removeSession,l=r.eventBus,u=Promise.resolve();if(typeof t.mediaKeysObject>"u"){t.mediaKeysObject=null,t.pendingSessionData=[];var c=void 0,h=void 0;if(!(u=getSupportedKeySystem(s.keySystems)))return videojs.log.error("No supported key system found"),Promise.resolve();u=u.then(function(p){return new Promise(function(m,b){if(t.keySystem=p.keySystem,h=standardizeKeySystemOptions(p.keySystem,s.keySystems[p.keySystem]),!h.getCertificate)return void m(p);h.getCertificate(s,function(f,g){if(f)return void b(f);c=g,m(p)})})}).then(function(p){return p.createMediaKeys()}).then(function(p){return setMediaKeys({video:t,certificate:c,createdMediaKeys:p,options:s,getLicense:promisifyGetLicense(h.getLicense,l),removeSession:a,eventBus:l})}).catch(videojs.log.error.bind(videojs.log.error,"Failed to create and initialize a MediaKeys object"))}return u.then(function(){addSession({video:t,initDataType:e,initData:n,options:s,getLicense:t.keySystem?promisifyGetLicense(standardizeKeySystemOptions(t.keySystem,s.keySystems[t.keySystem]).getLicense,l):null,removeSession:a,eventBus:l})})},stringToUint16Array=function(r){for(var t=new ArrayBuffer(2*r.length),e=new Uint16Array(t),n=0;n<r.length;n++)e[n]=r.charCodeAt(n);return e},uint8ArrayToString=function(r){return String.fromCharCode.apply(null,new Uint16Array(r.buffer))},getHostnameFromUri=function(r){var t=document_1.createElement("a");return r=r.match(/.*(skd\:\/\/.+)/i)[1],t.href=r,t.hostname},arrayBuffersEqual=function(r,t){if(r===t)return!0;if(r.byteLength!==t.byteLength)return!1;for(var e=new DataView(r),n=new DataView(t),s=0;s<e.byteLength;s++)if(e.getUint8(s)!==n.getUint8(s))return!1;return!0},arrayBufferFrom=function(r){return r instanceof Uint8Array||r instanceof Uint16Array?r.buffer:r},FAIRPLAY_KEY_SYSTEM="com.apple.fps.1_0",concatInitDataIdAndCertificate=function(r){var t=r.initData,e=r.id,n=r.cert;typeof e=="string"&&(e=stringToUint16Array(e));var s=0,a=new ArrayBuffer(t.byteLength+4+e.byteLength+4+n.byteLength),l=new DataView(a);new Uint8Array(a,s,t.byteLength).set(t),s+=t.byteLength,l.setUint32(s,e.byteLength,!0),s+=4;var u=new Uint16Array(a,s,e.length);return u.set(e),s+=u.byteLength,l.setUint32(s,n.byteLength,!0),s+=4,new Uint8Array(a,s,n.byteLength).set(n),new Uint8Array(a,0,a.byteLength)},addKey=function(r){var t=r.video,e=r.contentId,n=r.initData,s=r.cert,a=r.options,l=r.getLicense,u=r.eventBus;return new Promise(function(c,h){if(t.webkitKeys||t.webkitSetMediaKeys(new window_1.WebKitMediaKeys(FAIRPLAY_KEY_SYSTEM)),!t.webkitKeys)return void h("Could not create MediaKeys");var p=t.webkitKeys.createSession("video/mp4",concatInitDataIdAndCertificate({id:e,initData:n,cert:s}));if(!p)return void h("Could not create key session");p.contentId=e,p.addEventListener("webkitkeymessage",function(m){l(a,e,m,function(b,f){if(u&&u.trigger("licenserequestattempted"),b)return void h(b);p.update(new Uint8Array(f))})}),p.addEventListener("webkitkeyadded",function(m){c(m)}),p.addEventListener("webkitkeyerror",function(m){h(m)})})},defaultGetCertificate=function(r){return function(t,e){videojs.xhr({uri:r,responseType:"arraybuffer"},function(n,s,a){if(n)return void e(n);e(null,new Uint8Array(a))})}},defaultGetContentId=function(r,t){return getHostnameFromUri(uint8ArrayToString(t))},defaultGetLicense$1=function(r){return function(t,e,n,s){videojs.xhr({uri:r,method:"POST",responseType:"arraybuffer",body:n.message,headers:{"Content-type":"application/x-www-form-urlencoded"}},function(a,l,u){if(a)return void s(a);s(null,u)})}},fairplay=function(r){var t=r.video,e=r.initData,n=r.options,s=r.eventBus,a=n.keySystems[FAIRPLAY_KEY_SYSTEM],l=a.getCertificate||defaultGetCertificate(a.certificateUri),u=a.getContentId||defaultGetContentId,c=a.getLicense||defaultGetLicense$1(a.licenseUri);return new Promise(function(h,p){l(n,function(m,b){if(m)return void p(m);h(b)})}).then(function(h){return addKey({video:t,cert:h,initData:e,getLicense:c,options:n,contentId:u(n,e),eventBus:s})}).catch(function(h){s.player_.error({code:3,message:h})})},PLAYREADY_KEY_SYSTEM="com.microsoft.playready",addKeyToSession=function(r,t,e,n){var s=r.keySystems[PLAYREADY_KEY_SYSTEM];if(typeof s.getKey=="function")return void s.getKey(r,e.destinationURL,e.message.buffer,function(l,u){if(l)return void videojs.log.error("Unable to get key: "+l);t.update(u)});typeof s=="string"&&(s={url:s});var a=s.url||e.destinationURL;requestPlayreadyLicense(a,e.message.buffer,function(l,u){if(n&&n.trigger("licenserequestattempted"),l)return void videojs.log.error("Unable to request key from url: "+a);t.update(new Uint8Array(u.body))})},createSession=function(r,t,e,n){var s=r.msKeys.createSession("video/mp4",t);if(!s)return void videojs.log.error("Could not create key session.");s.addEventListener("mskeymessage",function(a){addKeyToSession(e,s,a,n)}),s.addEventListener("mskeyerror",function(a){videojs.log.error("Unexpected key error from key session with code: "+s.error.code+" and systemCode: "+s.error.systemCode)})},msPrefixed=function(r){var t=r.video,e=r.initData,n=r.options,s=r.eventBus;t.msKeys&&delete t.msKeys;try{t.msSetMediaKeys(new window_1.MSMediaKeys(PLAYREADY_KEY_SYSTEM))}catch(a){return void videojs.log.error("Unable to create media keys for PlayReady key system. Error: "+a.message)}createSession(t,e,n,s)},Plugin$18=videojs.getPlugin("plugin"),hasSession=function(r,t){for(var e=0;e<r.length;e++)if(r[e].initData){var n=arrayBufferFrom(r[e].initData),s=arrayBufferFrom(t);if(arrayBuffersEqual(n,s))return!0}return!1},removeSession=function(r,t){for(var e=0;e<r.length;e++)if(r[e].initData===t)return void r.splice(e,1)},handleEncryptedEvent=function(r,t,e,n){if(!t||!t.keySystems||t.src&&t.src.indexOf("m3u8")>-1)return Promise.resolve();var s=r.initData;return getSupportedKeySystem(t.keySystems).then(function(a){var l=a.keySystem;if(t.keySystems[l]&&t.keySystems[l].pssh&&(s=t.keySystems[l].pssh),!hasSession(e,s)&&s)return e.push({initData:s}),standard5July2016({video:r.target,initDataType:r.initDataType,initData:s,options:t,removeSession:removeSession.bind(null,e),eventBus:n})})},handleWebKitNeedKeyEvent=function(r,t,e){if(t.keySystems&&t.keySystems[FAIRPLAY_KEY_SYSTEM]&&r.initData)return fairplay({video:r.target,initData:r.initData,options:t,eventBus:e})},handleMsNeedKeyEvent=function(r,t,e,n){if(t.keySystems&&t.keySystems[PLAYREADY_KEY_SYSTEM]&&!e.reduce(function(a,l){return a||l.playready},!1)){var s=r.initData;t.keySystems[PLAYREADY_KEY_SYSTEM]&&t.keySystems[PLAYREADY_KEY_SYSTEM].pssh&&(s=t.keySystems[PLAYREADY_KEY_SYSTEM].pssh),s&&(e.push({playready:!0,initData:s}),msPrefixed({video:r.target,initData:s,options:t,eventBus:n}))}},getOptions=function(r){return videojs.mergeOptions(r.currentSource(),r.eme.options)},setupSessions=function(r){var t=r.src();t!==r.eme.activeSrc&&(r.eme.activeSrc=t,r.eme.sessions=[])},onPlayerReady=function(r){r.$(".vjs-tech").tagName.toLowerCase()==="video"&&r.tech_&&(setupSessions(r),r.tech_.el_.addEventListener("encrypted",function(t){if(r.currentSource().keySystems&&r.currentSource().keySystems["com.widevine.alpha"]&&r.currentSource().type==="application/dash+xml")return!1;setupSessions(r),handleEncryptedEvent(t,getOptions(r),r.eme.sessions,r.tech_)}),r.tech_.el_.addEventListener("webkitneedkey",function(t){setupSessions(r),handleWebKitNeedKeyEvent(t,getOptions(r),r.tech_)}),videojs.browser.IS_EDGE||r.tech_.el_.addEventListener("msneedkey",function(t){setupSessions(r),handleMsNeedKeyEvent(t,getOptions(r),r.eme.sessions,r.tech_)}))},DRM=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return s.options=n,e.ready(function(){return onPlayerReady(e)}),e.eme={initializeMediaKeys:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},u=videojs.mergeOptions(e.currentSource(),n,a),c={initDataType:"cenc",initData:null,target:e.tech_.el_};setupSessions(e),e.tech_.el_.setMediaKeys?handleEncryptedEvent(c,u,e.eme.sessions,e.tech_).then(function(){return l()}).catch(function(h){return l(h)}):e.tech_.el_.msSetMediaKeys&&(handleMsNeedKeyEvent(c,u,e.eme.sessions,e.tech_),l())},options:n},s}return inherits(t,r),t.prototype.setOptions=function(e){this.options=e,this.player.options_.plugins.DRM=e},t}(Plugin$18),registerPlugin$2=videojs.registerPlugin||videojs.plugin;registerPlugin$2("DRM",DRM);var Plugin$19=videojs.getPlugin("plugin"),dom$2=videojs.dom;if(!window.requestAnimationFrame){var lastTime=0;window.requestAnimationFrame=function(r){var t=new Date().getTime(),e=Math.max(0,16.7-(t-lastTime)),n=window.setTimeout(function(){r(t+e)},e);return lastTime=t+e,n}}window.cancelAnimationFrame||(window.cancelAnimationFrame=function(r){clearTimeout(r)});var DynamicWatermark=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return s.options=n||{},s.options.content&&s.init(),s}return inherits(t,r),t.prototype.dispose=function(){this.stopAnimation(),this.player.$(".tcp-dynamic-watermark-container")&&this.player.el().removeChild(this.containerElement),r.prototype.dispose.call(this)},t.prototype.init=function(){var e=this,n=this.player;this.isFirstShow=!0,this.initUI(),this.initStyle(),this.initSpeed(),n.on("loadedmetadata",function(){e.calculateStyle(),e.setStyle(),dom$2.removeClass(e.containerElement,"vjs-hidden")}),n.one("play",function(){e.encModule=new Enc,e.ghostCycle=e.encModule.calculateGhost(e.player.duration()),e.startAnimation()}),n.on(["fullscreenchange","playerresize"],function(){setTimeout(function(){e.calculateStyle()},200)})},t.prototype.initUI=function(){var e=this.player,n=dom$2.createEl("div",{className:"tcp-dynamic-watermark-container vjs-hidden"}),s=dom$2.createEl("div",{innerHTML:encodeHTML(this.options.content),className:"tcp-dynamic-watermark-content"});if(n.appendChild(s),this.options.keep||e.el().appendChild(n),this.containerElement=n,this.markContentElement=s,this.options.type==="image"){var a=document.createElement("img");this.options.width&&(a.style.width=this.options.width),this.options.height&&(a.style.height=this.options.height),a.setAttribute("src",this.options.content),this.markContentElement.innerHTML="",this.markContentElement.appendChild(a)}},t.prototype.initStyle=function(){this.style={containerWidth:"",containerHeight:"",containerLeft:"",containerTop:"",contentLeft:80*Math.random(),contentTop:80*Math.random(),margin:0,padding:0,display:"block",visibility:"visible",opacity:.5,position:"absolute",color:"rgba(255, 255, 255)"}},t.prototype.initSpeed=function(){this.speed=this.options.keep&&this.options.speed===0?.2:this.options.speed},t.prototype.calculateStyle=function(){var e=this.player,n=this.style,s=e.videoWidth(),a=e.videoHeight(),l=dom$2.getBoundingClientRect(e.el()),u=l.width,c=l.height,h=(u/c).toFixed(2),p=(s/a).toFixed(2),m=void 0,b=void 0;p<h?(b=c,m=b*p):p>h?(m=u,b=m/p):p==h&&(m=u,b=c),n.containerLeft=(u-m)/2/u*100,n.containerTop=(c-b)/2/c*100,n.containerWidth=m/u*100,n.containerHeight=b/c*100},t.prototype.setStyle=function(){var e=this.containerElement,n=this.markContentElement,s=this.style;e.style.left=s.containerLeft+"%",e.style.top=s.containerTop+"%",e.style.width=s.containerWidth+"%",e.style.height=s.containerHeight+"%",e.style.display=n.style.display=s.display,e.style.visibility=n.style.visibility=s.visibility,e.style.opacity=n.style.opacity=s.opacity,e.style.position=n.style.position=s.position,e.style.margin=n.style.margin=s.margin,e.style.padding=n.style.padding=s.padding,n.style.left=this.options.left||s.contentLeft+"%",n.style.top=this.options.top||s.contentTop+"%",this.options.right&&(n.style.right=this.options.right),this.options.bottom&&(n.style.bottom=this.options.bottom),n.style.color=this.options.color||s.color,this.options.keep||(e.style.opacity=n.style.opacity=this.options.opacity||s.opacity),this.options.type==="text"&&(n.style.fontSize=this.options.fontSize||"12px",n.innerHTML=encodeHTML(this.options.content))},t.prototype.setContent=function(e){this.options.content=e},t.prototype.startAnimation=function(){var e=this;if(!this.rafID){var n=this.player,s=this.style,a=this.containerElement,l=this.markContentElement,u=1,c=1,h=Math.random(),p=function m(){try{if(!e.isPauseAnimation){var b=Math.min(1,e.speed===0?0:e.speed?e.speed:.2),f=dom$2.getBoundingClientRect(a),g=dom$2.getBoundingClientRect(l),v=g.left-f.left,_=g.top-f.top;v+=b*u*h,_+=b*c*(1-h),v+g.width>f.width?(u=-1,h=Math.random()):v<0&&(u=1,h=Math.random()),_+g.height>f.height?(c=-1,h=Math.random()):_<0&&(c=1,h=Math.random()),v=Math.min(f.width-g.width,v),_=Math.min(f.height-g.height,_),s.contentLeft=v/f.width*100,s.contentTop=_/f.height*100,e.setStyle(),e.options.keep&&(e.waterMarkWillRemove||(e.waterMarkWillRemove=!0,setTimeout(function(){n.el()&&n.el().removeChild(a),e.waterMarkWillRemove=!1},1e3*e.ghostCycle.ghostOn)))}}catch{e.player&&e.encModule.handleWatermarkElementAdd(e)}if(e.isStopAnimation)return e.isStopAnimation=!1,cancelAnimationFrame(e.rafID),void(e.rafID=null);e.speed!==0&&requestAnimationFrame(m)};this.rafID=requestAnimationFrame(p)}},t.prototype.resumeAnimation=function(){this.isPauseAnimation=!1},t.prototype.pauseAnimation=function(){this.isPauseAnimation=!0},t.prototype.stopAnimation=function(){this.isStopAnimation=!0},t}(Plugin$19);videojs.registerPlugin("DynamicWatermark",DynamicWatermark);var Plugin$20=videojs.getPlugin("plugin"),XP2PHlsjsPlugin=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return s.options=n,s.hlsp2p=null,s}return inherits(t,r),t.prototype.startHLSP2P=function(e,n,s){var a=this,l=this.player.tech_,u=l.options_,c=u.xp2pConfig;if(n.isSupported()&&!window.hlsp2p){for(var h=["videoType","xp2pPackage","xp2pAppId","tencentCloudAppId"],b=h,p=Array.isArray(b),m=0,b=p?b:b[Symbol.iterator]();;){var f;if(p){if(m>=b.length)break;f=b[m++]}else{if(m=b.next(),m.done)break;f=m.value}var g=f;if(c[g]===void 0)return}var v={videoId:u.playerId+"_html5_api",url:u.source.src,videoType:c.videoType,cloudAppId:c.tencentCloudAppId,domain:c.xp2pPackage,xp2pAppId:c.xp2pAppId,p2pStartDelay:1e3},_=HLSP2P.create(e,Object.assign(v,c));_.on(HLSP2P.Events.Rollback,function(I){a.destroy(),s&&s(I)}),this.hlsp2p=_}},t.prototype.destroy=function(){this.hlsp2p&&(this.hlsp2p.destroy(),this.hlsp2p=null,window.hlsp2p=void 0)},t.prototype.dispose=function(){this.destroy()},t}(Plugin$20);videojs.registerPlugin("XP2PHlsjsPlugin",XP2PHlsjsPlugin);var Plugin$21=videojs.getPlugin("plugin"),XP2PFlvjsPlugin=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return s.options=n,s}return inherits(t,r),t.prototype.createLoader=function(e,n,s){var a=this.player.tech();return function(l){function u(c,h){classCallCheck(this,u);var p=possibleConstructorReturn(this,l.call(this));return p._qvbp2p=null,p._receivedLength=0,p._config=h,p}return inherits(u,l),u.isSupported=function(){return n&&n.isSupported()},u.prototype.destroy=function(){this._destroyQVBP2P(),l.prototype.destroy.call(this)},u.prototype.open=function(c){this._createQVBP2P(),this._qvbp2p.on(n.ComEvents.STATE_CHANGE,this._onQVBP2PStateChange.bind(this)),this._qvbp2p.setMediaElement(a.el());var h={src:c.url};this._qvbp2p.loadSource(h)},u.prototype.abort=function(){this._destroyQVBP2P()},u.prototype._onQVBP2PStateChange=function(c,h){var p=n.ComCodes;switch(h.code){case p.RECEIVE_BUFFER:this._receiveBuffer(h.payload);break;case p.ROLLBACK:this._rollback(h)}},u.prototype._receiveBuffer=function(c){var h=this._receivedLength;this._receivedLength+=c.byteLength,this._onDataArrival&&this._onDataArrival(c,h,this._receivedLength)},u.prototype._rollback=function(c){s&&s(c)},u.prototype._createQVBP2P=function(){this._qvbp2p&&this._destroyQVBP2P(),this._qvbp2p=n.create(this._config.xp2pConfig),window.qvbp2p=this._qvbp2p},u.prototype._destroyQVBP2P=function(){this._qvbp2p&&(this._qvbp2p.destroy(),this._qvbp2p=null,window.qvbp2p=null)},u}(e.BaseLoader)},t}(Plugin$21);videojs.registerPlugin("XP2PFlvjsPlugin",XP2PFlvjsPlugin);var defaultConfig$1={enableStashBuffer:!1},Html5FlvJS=function(){function r(t,e,n){var s=this;classCallCheck(this,r);var a=function(){var l=window.flvjs;s.flvjs=l;var u=videojs.mergeOptions(defaultConfig$1,n.flvConfig,{xp2pConfig:n.xp2pConfig}),c=e.player();if(window.QVBP2P&&n.xp2pConfig&&n.xp2pConfig.useXP2P&&c.XP2PFlvjsPlugin){var h=c.XP2PFlvjsPlugin().createLoader(l,window.QVBP2P,function(b){s.dispose(),n.xp2pConfig.useXP2P=!1;var f=s.tech.player(),g=s.tech.currentSource_.src;f.src(g)});s.xp2pFlvLoader=h,u.customLoader=h}var p=new l.createPlayer({isLive:!1,url:t.src,type:"flv"},u);s.tech=e,p.on(l.Events.ERROR,videojs.bind(s,s.onError));for(var m in l.Events)(function(b){p.on(l.Events[b],videojs.bind(s,function(f){this.onEvent(b,f)}))})(m);s.flv=p,s._id=new Date().getTime(),e.el().srcObject&&(e.el().srcObject=null),p.attachMediaElement(e.el()),p.load()};Promise.all([function(){return n.xp2pConfig&&n.xp2pConfig.useXP2P&&n.xp2pConfig.format==="flv"&&!window.QVBP2P?new Promise(function(l){loadScript(XP2P_FLV_PATH,function(){l()})}):Promise.resolve()}(),function(){return window.flvjs?Promise.resolve():new Promise(function(l){loadScript(FLV_PATH,function(){l()})})}()]).then(function(){a()})}return r.prototype.onError=function(t,e,n){var s=this.tech.player();t===this.flvjs.ErrorTypes.NETWORK_ERROR&&s.error({code:2,source:n}),t===this.flvjs.ErrorTypes.MEDIA_ERROR&&s.error({code:3,source:n})},r.prototype.onEvent=function(t,e){this.tech.player().trigger({type:"FLVJS_EVENT",data:{type:t,data:e}})},r.prototype.dispose=function(){if(this.tech.player().pause(),this.tech.flvProvider)try{this.flv.destroy()}catch{}this.tech.flvProvider=null},r}(),flvTypeRE=/^video\/flv$/i,flvExtRE=/.flv(?![^?])/i,flvProtoRE=/^(ws:\/\/)/i,FlvSourceHandler={name:"flvSourceHandler",canHandleSource:function(r){return flvTypeRE.test(r.type)?"probably":flvExtRE.test(r.src)||flvProtoRE.test(r.src)?"maybe":""},handleSource:function(r,t,e){return t.flvProvider&&t.flvProvider.dispose(),t.flvProvider=new Html5FlvJS(r,t,e),t.flvProvider},canPlayType:function(r){if(flvTypeRE.test(r))return"probably"}};TCPlayer.mountFlvProvider=mountFlvProvider,mountFlvProvider();var defaultConfig$2={receiveVideo:!0,receiveAudio:!0,showLog:!1},WebRTCProvider=function(){function r(t,e,n){var s=this;classCallCheck(this,r);var a=function(){s.tech=e,s.player=s.tech.player(),s.playerMetrics=s.player.PlayerMetrics(),s.report=s.player.options_.reportable;var l=window.TXLivePlayer;s.TXLivePlayer=l;var u=videojs.mergeOptions(defaultConfig$2,n.webrtcConfig);n.xp2pConfig&&n.xp2pConfig.format==="webrtc"&&n.xp2pConfig.useXP2P&&Object.assign(u,{p2pEnable:n.xp2pConfig.useXP2P,p2pConfig:{cloudAppid:n.xp2pConfig.tencentCloudAppId,xp2pAppid:n.xp2pConfig.xp2pAppId,appKey:n.xp2pConfig.xp2pAppKey,xp2pDomain:n.xp2pConfig.xp2pPackage}});var c=new l;c.setPlayerView(e.el()),c.setConfig(u),c.setPlayListener({onPlayEvent:videojs.bind(s,s.onPlayEvent),onPlayStats:videojs.bind(s,s.onPlayStats),onPlayReport:videojs.bind(s,s.onPlayReport)}),c.startPlay(t.src),s.webrtcPlayer=c};window.TXLivePlayer?a():loadScript(WEBRTC_PATH,function(){a()})}return r.prototype.onPlayStats=function(t){this.tech.player().trigger({type:"webrtcstats",data:t})},r.prototype.onPlayEvent=function(t,e){var n=this.tech.player();if(t<-2e3){if(t===-2003&&e&&e.videoActive&&(n.trigger("blocked"),n.trigger({type:"webrtcevent",data:{code:2005}})),t===-2003)return!1;if(t===-2005||t===-2001||t===-2004){var s=n.options_.webrtcConfig;if(!s||s.fallback!==!1)return this.switchPlaySource(),!1}return n.error({code:t,source:e}),!1}n.trigger({type:"webrtcevent",data:{code:t,data:e}})},r.prototype.onPlayReport=function(t){if(this.report===!1)return!1;t.uint32_command===40101&&this.playerMetrics.report_40101(t),t.uint32_command===40100&&this.playerMetrics.report_40100(t),t.uint32_command===40102&&this.playerMetrics.report_40102(t)},r.prototype.dispose=function(){this.webrtcPlayer&&(this.webrtcPlayer.setPlayListener({onPlayEvent:function(){},onPlayStats:function(){}}),this.webrtcPlayer.stopPlay(),this.webrtcPlayer.setPlayerView(videojs.dom.createEl("video"))),this.webrtcPlayer=null},r.prototype.setSource=function(t){var e=this;this.webrtcPlayer.startPlay(t.src),this.tech.player().one("webrtcevent",function(n){n.data.code===-1002&&e.tech.player().play()})},r.prototype.recovery=function(){var t=this,e=this.tech.player(),n=void 0;e.one("waiting",function(){n=setTimeout(function(){e.one("webrtcevent",function(s){if(s.data.code===1004){t.webrtcPlayer&&t.webrtcPlayer.startPlay(e.src()),e.play();var a=function l(u){u.data.code===1002&&(e.play(),e.off("webrtcevent",l))};e.on("webrtcevent",a)}}),t.webrtcPlayer&&t.webrtcPlayer.stopPlay()},2e3)}),e.one("playing",function(){n&&clearTimeout(n)})},r.prototype.switchPlaySource=function(){var t=this.tech.player(),e=this.tech.currentSource_.src,n=this.convertProtocol(e);t.bigPlayButton&&t.bigPlayButton.hide(),t.posterImage&&t.posterImage.hide(),t.src(n);var s=videojs.browser.IS_IOS||videojs.browser.IS_ANDROID?"loadeddata":"loadedmetadata",a=function l(){t.play(),t.one("progress",function(){t.play(),t.off(s,l)})};t.on(s,a)},r.prototype.convertProtocol=function(t){var e=[];if(t.indexOf(".sdp")>-1)t=t.replace(".sdp",".flv"),e.push(t.replace(".sdp",".m3u8"));else{var n=t.replace("webrtc://","https://").replace("?",".flv?");n.indexOf("?")===-1&&n.indexOf(".flv")===-1&&(n+=".flv"),hlsSrc=t.replace("webrtc://","https://").replace("?",".m3u8?"),hlsSrc.indexOf("?")===-1&&hlsSrc.indexOf(".m3u8")===-1&&(hlsSrc+=".m3u8"),e.push(hlsSrc)}return e},r}(),webrtcTypeRE=/^webrtc/i,webrtcExtRE=/\.sdp/i,webrtcProtoRE=/^(webrtc:\/\/)/i,sourceHandler={name:"webrtcSourceHandler",canHandleSource:function(r){return webrtcTypeRE.test(r.type)?"probably":webrtcExtRE.test(r.src)||webrtcProtoRE.test(r.src)?"maybe":""},handleSource:function(r,t,e){return t.webrtcProvider&&t.webrtcProvider.dispose(),t.webrtcProvider=new WebRTCProvider(r,t,e),t.webrtcProvider},canPlayType:function(r){if(webrtcTypeRE.test(r))return"probably"}};mountWebRTCProvider();for(var Tech$2=videojs.getComponent("Tech"),Dom$1=videojs.dom,Url$1=videojs.url,createTimeRange=videojs.createTimeRange,mergeOptions$1=videojs.mergeOptions,navigator$2=window_1&&window_1.navigator||{},Flash=function(r){function t(e,n,s){classCallCheck(this,t);var a=possibleConstructorReturn(this,r.call(this,e,n,s));return n.source&&a.ready(function(){this.setSource(n.source)},!0),n.startTime&&a.ready(function(){this.load(),this.play(),this.currentTime(n.startTime)},!0),window_1.videojs=window_1.videojs||{},window_1.videojs.Flash=window_1.videojs.Flash||{},window_1.videojs.Flash.onReady=t.onReady,window_1.videojs.Flash.onEvent=t.onEvent,window_1.videojs.Flash.onError=t.onError,a.on("seeked",function(){this.lastSeekTarget_=void 0}),a}return inherits(t,r),t.prototype.createEl=function(){var e=this.options_;e.swf||(e.swf=unifyProtocol("//imgcache.qq.com/open/qcloud/video/tcplayer/player.swf"));var n=e.techId,s=mergeOptions$1({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:e.autoplay,preload:e.preload,loop:e.loop,muted:e.muted},e.flashVars),a=mergeOptions$1({wmode:"opaque",bgcolor:"#000000"},e.params),l=mergeOptions$1({id:n,name:n,class:"vjs-tech"},e.attributes);return this.el_=t.embed(e.swf,s,a,l),this.el_.tech=this,this.el_},t.prototype.play=function(){this.ended()&&this.setCurrentTime(0),this.el_.vjs_play()},t.prototype.pause=function(){this.el_.vjs_pause()},t.prototype.src=function(e){return e===void 0?this.currentSrc():this.setSrc(e)},t.prototype.setSrc=function(e){var n=this;e=Url$1.getAbsoluteURL(e),this.el_.vjs_src(e),this.autoplay()&&this.setTimeout(function(){return n.play()},0)},t.prototype.seeking=function(){return this.lastSeekTarget_!==void 0},t.prototype.setCurrentTime=function(e){var n=this.seekable();n.length&&(e=e>n.start(0)?e:n.start(0),e=e<n.end(n.length-1)?e:n.end(n.length-1),this.lastSeekTarget_=e,this.trigger("seeking"),this.el_.vjs_setProperty("currentTime",e),r.prototype.setCurrentTime.call(this))},t.prototype.currentTime=function(){return this.seeking()?this.lastSeekTarget_||0:this.el_.vjs_getProperty("currentTime")},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.vjs_getProperty("currentSrc")},t.prototype.duration=function(){if(this.readyState()===0)return NaN;var e=this.el_.vjs_getProperty("duration");return e>=0?e:1/0},t.prototype.load=function(){this.el_.vjs_load()},t.prototype.poster=function(){this.el_.vjs_getProperty("poster")},t.prototype.setPoster=function(){},t.prototype.seekable=function(){var e=this.duration();return e===0?createTimeRange():createTimeRange(0,e)},t.prototype.buffered=function(){var e=this.el_.vjs_getProperty("buffered");return e.length===0?createTimeRange():createTimeRange(e[0][0],e[0][1])},t.prototype.supportsFullScreen=function(){return!1},t.prototype.enterFullScreen=function(){return!1},t.prototype.getVideoPlaybackQuality=function(){var e=this.el_.vjs_getProperty("getVideoPlaybackQuality");return window_1.performance&&typeof window_1.performance.now=="function"?e.creationTime=window_1.performance.now():window_1.performance&&window_1.performance.timing&&typeof window_1.performance.timing.navigationStart=="number"&&(e.creationTime=window_1.Date.now()-window_1.performance.timing.navigationStart),e},t}(Tech$2),_readWrite=["rtmpConnection","rtmpStream","preload","defaultPlaybackRate","playbackRate","autoplay","loop","controls","volume","muted","defaultMuted"],_readOnly=["networkState","readyState","initialTime","startOffsetTime","paused","ended","videoWidth","videoHeight"],_api=Flash.prototype,i$2=0;i$2<_readWrite.length;i$2++)_createGetter(_readWrite[i$2]),_createSetter(_readWrite[i$2]);for(var _i$1=0;_i$1<_readOnly.length;_i$1++)_createGetter(_readOnly[_i$1]);Flash.isSupported=function(){return Flash.version()[0]>=10},Tech$2.withSourceHandlers(Flash),Flash.nativeSourceHandler={},Flash.nativeSourceHandler.canPlayType=function(r){return r in Flash.formats?"maybe":""},Flash.nativeSourceHandler.canHandleSource=function(r,t){var e=void 0;return e=r.type?r.type.replace(/;.*/,"").toLowerCase():function(n){var s=Url$1.getFileExtension(n);return s?"video/"+s:""}(r.src),Flash.nativeSourceHandler.canPlayType(e)},Flash.nativeSourceHandler.handleSource=function(r,t,e){t.setSrc(r.src)},Flash.nativeSourceHandler.dispose=function(){},Flash.registerSourceHandler(Flash.nativeSourceHandler),Flash.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},Flash.onReady=function(r){var t=Dom$1.$("#"+r),e=t&&t.tech;e&&e.el()&&Flash.checkReady(e)},Flash.checkReady=function(r){r.el()&&(r.el().vjs_getProperty?r.triggerReady():this.setTimeout(function(){Flash.checkReady(r)},50))},Flash.onEvent=function(r,t){var e=Dom$1.$("#"+r).tech,n=Array.prototype.slice.call(arguments,2);e.setTimeout(function(){e.trigger(t,n)},1)},Flash.onError=function(r,t){var e=Dom$1.$("#"+r).tech;if(t==="srcnotfound")return e.error(4);e.error("FLASH: "+t)},Flash.version=function(){var r="0,0,0";try{r=new window_1.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch{try{navigator$2.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(r=(navigator$2.plugins["Shockwave Flash 2.0"]||navigator$2.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch{}}return r.split(",")},Flash.embed=function(r,t,e,n){var s=Flash.getEmbedCode(r,t,e,n);return Dom$1.createEl("div",{innerHTML:s}).childNodes[0]},Flash.getEmbedCode=function(r,t,e,n){var s="",a="",l="";return t&&Object.getOwnPropertyNames(t).forEach(function(u){s+=u+"="+t[u]+"&"}),e=mergeOptions$1({movie:r,flashvars:s,allowScriptAccess:"always",allowNetworking:"all"},e),Object.getOwnPropertyNames(e).forEach(function(u){a+='<param name="'+u+'" value="'+e[u]+'" />'}),n=mergeOptions$1({data:r,width:"100%",height:"100%"},n),Object.getOwnPropertyNames(n).forEach(function(u){l+=u+'="'+n[u]+'" '}),'<object type="application/x-shockwave-flash" '+l+">"+a+"</object>"},FlashRtmpDecorator(Flash),Tech$2.getTech("Flash")?(videojs.log.warn("Not using videojs-flash as it appears to already be registered"),videojs.log.warn("videojs-flash should only be used with video.js@6 and above")):videojs.registerTech("Flash",Flash);var FlashlsSourceHandler={},mpegurlRE$1=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i;FlashlsSourceHandler.canPlayType=function(r){return mpegurlRE$1.test(r)?"maybe":""},FlashlsSourceHandler.canHandleSource=function(r,t){return FlashlsSourceHandler.canPlayType(r.type)==="maybe"},FlashlsSourceHandler.handleSource=function(r,t,e){t.setSrc(r.src)},FlashlsSourceHandler.dispose=function(){},videojs.getTech("Flash").registerSourceHandler(FlashlsSourceHandler,0),FlashlsSourceHandler.VERSION="__VERSION__";var Play="播放",Pause="暂停",LIVE="直播",Loaded="加载完毕",Progress="进度",Fullscreen="全屏",Mute="静音",Unmute="取消静音",Subtitles="字幕",Captions="内嵌字幕",Chapters="节目段落",Descriptions="描述",Close="关闭",Replay="重播",Text="文字",White="白",Black="黑",Red="红",Green="绿",Blue="蓝",Yellow="黄",Magenta="紫红",Cyan="青",Background="背景",Window="视窗",Transparent="透明",Opaque="不透明",None="无",Raised="浮雕",Depressed="压低",Uniform="均匀",Dropshadow="下阴影",Casual="舒适",Script="手写体",Reset="重启",Done="完成",auto="自动",Mirror="镜像",CN={Play,Pause,LIVE,Loaded,Progress,Fullscreen,Mute,Unmute,Subtitles,Captions,Chapters,Descriptions,Close,Replay,Text,White,Black,Red,Green,Blue,Yellow,Magenta,Cyan,Background,Window,Transparent,Opaque,None,Raised,Depressed,Uniform,Dropshadow,Casual,Script,Reset,Done,auto,Mirror,"Current Time":"当前时间","Duration Time":"时长","Remaining Time":"剩余时间","Stream Type":"媒体流类型","Non-Fullscreen":"退出全屏","Playback Rate":"播放速度","subtitles off":"关闭字幕","captions off":"关闭内嵌字幕","Close Modal Dialog":"关闭弹窗","descriptions off":"关闭描述","Audio Track":"音轨","You aborted the media playback":"视频播放被终止","A network error caused the media download to fail part-way.":"网络错误导致视频下载中途失败。","The media could not be loaded, either because the server or network failed or because the format is not supported.":"视频因格式不支持或者服务器或网络的问题无法加载。","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"由于视频文件损坏或是该视频使用了你的浏览器不支持的功能,播放终止。","No compatible source was found for this media.":"无法找到此视频兼容的源或者当前环境无法播放该视频。","The media is encrypted and we do not have the keys to decrypt it.":"视频已加密,无法解密。","Play Video":"播放视频","Modal Window":"弹窗","This is a modal window":"这是一个弹窗","This modal can be closed by pressing the Escape key or activating the close button.":"可以按ESC按键或启用关闭按钮来关闭此弹窗。",", opens captions settings dialog":", 开启标题设置弹窗",", opens subtitles settings dialog":", 开启字幕设置弹窗",", opens descriptions settings dialog":", 开启描述设置弹窗",", selected":", 选择","captions settings":"字幕设定","Audio Player":"音频播放器","Video Player":"视频播放器","Progress Bar":"进度小节","Volume Level":"音量","subtitles settings":"字幕设定","descriptions settings":"描述设定","Semi-Transparent":"半透明","Font Size":"字体尺寸","Text Edge Style":"字体边缘样式","Font Family":"字体库","Proportional Sans-Serif":"比例无细体","Monospace Sans-Serif":"单间隔无细体","Proportional Serif":"比例细体","Monospace Serif":"单间隔细体","Small Caps":"小型大写字体","restore all settings to the default values":"恢复全部设定至预设值","Caption Settings Dialog":"字幕设定视窗","Beginning of dialog window. Escape will cancel and close the window.":"开始对话视窗。离开会取消及关闭视窗","End of dialog window.":"结束对话视窗","Request timed out.":"请求超时,请稍后再试。","Could not download the video.":"无法加载视频,请检查网络。","Server is not respond.":"服务器请求失败,请稍后再试。","Server respond error data.":"服务器返回数据有误,请稍后再试。","Last time play at ":"上次看到 ","Resume play":"恢复播放","Powered by Tencent Cloud.":"腾讯云提供技术支持","Rise an internal exception when playing HLS.":"播放 HLS 时出现内部异常。","Authentication failed.":"防盗链参数鉴权失败。","Server failed.":"媒体服务器错误。","Get file error.":"媒体服务器获取文件错误。","The media file does not exist. Please check if the fileID is correct.":"媒体文件不存在,请检查 fileID 是否正确。","No video transcoding information found.":"没有找到视频转码信息。","Current browser not support DRM.":"浏览器不支持当前 DRM 方案。","The trial duration is illegal. The trial duration must be within the video duration.":"试看时长不合法,试看时长要在视频时长范围内。","Param pcfg is not unique.":"pcfg 不唯一。","The license has expired. Please check whether the expiration time setting is reasonable.":"license 过期,请检查过期时间设置是否合理。","Did not find an adaptive stream that can be played.":"没有找到可以播放的自适应码流,<a href='https://cloud.tencent.com/document/product/266/34071' style='color: white;' target='_blank'>查看文档</a>。","Invalid request format, please check the request format.":"请求格式不合法,请检查请求格式。","AppID is not exist, Please check if the AppID is correct.":"AppID 不存在,请检查 AppID 是否正确。","Without anti-leech information.":"没带防盗链检测。","qsign invalid.":"播放参数 qsign 校验失败","psign check failed.":"播放参数 psign 校验失败,<a href='https://cloud.tencent.com/document/product/266/45554' style='color: white' target='_blank'>查看文档</a>。","Other errors.":"其他错误。","Internal error.":"内部错误。","Response data verification failed.":"响应数据校验失败","Video statistic":"视频统计信息","Play Next":"下一个","Current browser not support play this stream, please select another one.":"无法找到此视频兼容的源或者当前环境无法播放该视频,请选择其他视频播放。","Server respond error data.(eg. stream not exist)":"媒体服务器获取数据异常,可能该视频不存在,请选择其他视频播放。","Video play failed, please refresh to start play again.":"视频播放器失败,请刷新并重新播放。","Connection to the server has failed and the number of connection retries has exceeded the set value.":"媒体服务器连接异常,并达到最大重试次数,请检查网络是否正常并刷新重试","Video decoding failure.":"视频解码失败,请选择其他视频播放。"},log=videojs.log;if(Function.prototype.bind&&(typeof console>"u"?"undefined":_typeof(console))=="object"&&_typeof(console.log)=="object")for(var logFns=["log","info","warn","error","assert","dir","clear","profile","profileEnd"],i=0;i<logFns.length;i++){var method=logFns[i];console[method]=Function.prototype.call.bind(console[method],console)}return videojs.addLanguage("zh-CN",CN),Object.keys(videojs).forEach(function(r){TCPlayer[r]=videojs[r]}),TCPlayer})})(tcplayer_v4_8_0_min$2);var tcplayer_v4_8_0_minExports=tcplayer_v4_8_0_min$2.exports;const tcplayer_v4_8_0_min=getDefaultExportFromCjs(tcplayer_v4_8_0_minExports),tcplayer_v4_8_0_min$1=_mergeNamespaces({__proto__:null,default:tcplayer_v4_8_0_min},[tcplayer_v4_8_0_minExports]);var hammer$2={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
87
|
+
`});return typeof n=="string"?a.innerHTML=n:videojs.browser.IS_IE8||n instanceof window_1.DocumentFragment?a.appendChild(n):dom$1.appendContent(a,n),a},t.prototype.debug=function(){if(this.options_.debug){for(var e=videojs.log,n=e,s=arguments.length,a=Array(s),l=0;l<s;l++)a[l]=arguments[l];e.hasOwnProperty(a[0])&&typeof e[a[0]]=="function"&&(n=e[a.shift()]),n.apply(void 0,["overlay#"+this.id()+": "].concat(a))}},t.prototype.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.options_.once?(videojs.browser.IS_IOS&&videojs.browser.IS_WECHAT?this.player().hasStarted()||this.player().ready(videojs.bind(this,function(){this.startListener_({type:this.startEvent_})})):this.player().hasStarted()||this.on(this.player(),this.startEvent_,this.startListener_),this):(this.startEvent_==="pause"?this.on(this.player(),this.startEvent_,this.startOnPause_):this.on(this.player(),this.startEvent_,this.startListener_),this)},t.prototype.startOnPause_=function(e){var n=this.player();e.type==="pause"?n.seeking()||n.ended()||this.startListener_({type:"pause"}):n.paused()&&this.startListener_({type:"pause"})},t.prototype.shouldHide_=function(e,n){var s=this.options_.end;return isNumber(s)?e>=s:s===n},t.prototype.show=function(){return r.prototype.show.call(this),this.startEvent_==="pause"&&this.off(this.player(),this.startEvent_,this.startOnPause_),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},t.prototype.shouldShow_=function(e,n){var s=this.options_.start,a=this.options_.end;return isNumber(s)?isNumber(a)?e>=s&&e<a:this.hasShownSinceSeek_?Math.floor(e)===s:(this.hasShownSinceSeek_=!0,e>=s):s===n},t.prototype.startListener_=function(e){var n=this.player().currentTime();this.shouldShow_(n,e.type)&&this.show()},t.prototype.endListener_=function(e){var n=this.player().currentTime();this.shouldHide_(n,e.type)&&this.hide()},t.prototype.rewindListener_=function(e){var n=this.player().currentTime(),s=this.previousTime_,a=this.options_.start,l=this.options_.end;n<s&&(this.debug("rewind detected"),isNumber(l)&&!this.shouldShow_(n)?(this.debug("hiding; "+l+" is an integer and overlay should not show at this time"),this.hasShownSinceSeek_=!1,this.hide()):hasNoWhitespace(l)&&n<a&&(this.debug("hiding; show point ("+a+") is before now ("+n+") and end point ("+l+") is an event"),this.hasShownSinceSeek_=!1,this.hide())),this.previousTime_=n},t}(Component$12);videojs.registerComponent("Overlay",Overlay);var plugin=function(r){var t=this,e=videojs.mergeOptions(defaults$2,r);Array.isArray(this.overlays_)&&this.overlays_.forEach(function(s){t.removeChild(s),t.controlBar&&t.controlBar.removeChild(s),s.dispose()});var n=e.overlays;delete e.overlays,this.overlays_=n.map(function(s){var a=videojs.mergeOptions(e,s);return a.attachToControlBar&&t.controlBar&&a.align.indexOf("bottom")!==-1?t.controlBar.addChild("overlay",a):t.addChild("overlay",a)})};registerPlugin$1("Patch",plugin);var Plugin$9=videojs.getPlugin("plugin"),log$8=videojs.log,locations=["start","pause","ended"],startEvent=["loadstart","pause","ended"],endEvent=["play","play","play"],ImagePatch=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.hasInit=!1,s.init(n),s}return inherits(t,r),t.prototype.init=function(e){var n=this,s=this.player,a={showBackground:!1,overlays:[]};Array.isArray(e)&&e.length>0&&(log$8("ImagePatch initializing"),e.forEach(function(l){var u=void 0,c=void 0,h=void 0,p=void 0,g=document.createDocumentFragment();h=document.createElement("a"),h.className="tcp-overlay-link",h.target="_blank",l.link&&(h.href=l.link),l.url&&(p=n.loadImg(unifyProtocol(l.url),videojs.bind(n,n.onImgLoaded)),p.className="tcp-overlay-img",h.appendChild(p),videojs.browser.IS_IE8?(u=document.createElement("div"),u.className="tcp-overlay-table",c=document.createElement("div"),c.className="tcp-overlay-cell",c.appendChild(h),u.appendChild(c),g.appendChild(u)):g.appendChild(h),a.overlays.push({content:g,className:"tcp-image-patch tcp-image-patch-"+locations[l.location],start:startEvent[l.location],end:endEvent[l.location],once:l.location==0,align:"center"}))}),a.overlays.length>0?(s.Patch(a),s.trigger({type:"feature",data:"patch"}),this.hasInit=!0):this.reset(),log$8("ImagePatch initialized"))},t.prototype.loadImg=function(e,n){var s,a,l,u,c,h=new Image;return h.src=e,h.complete?(n&&n.call(n,h),h):(a=h.width,l=h.height,h.onerror=function(){s.end=!0,h=h.onload=h.onerror=null},s=function(){u=h.width,c=h.height,(u!==a||c!==l||u*c>1024)&&(n&&n.call(n,h),s.end=!0)},s(),h.onload=function(){!s.end&&s(),h=h.onload=h.onerror=null},h)},t.prototype.onImgLoaded=function(e){if(videojs.browser.IE_VERSION){var n=parseInt(this.player.el().currentStyle.width),s=parseInt(this.player.el().currentStyle.height);if(e.width>n||e.height>s){var a=n/(e.width/e.height);e.width/e.height>n/s||(e.style.marginTop=(s-a)/2+"px"),e.style.width="100%",e.style.height="auto"}}},t.prototype.reset=function(){this.hasInit&&(log$8("ImagePatch reset"),this.player.Patch(),this.hasInit=!1)},t}(Plugin$9);videojs.registerPlugin("ImagePatch",ImagePatch);var Plugin$10=videojs.getPlugin("plugin"),log$9=videojs.log,ContextMenu=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return s.options=n,log$9("ContextMenu initializing"),s.init(),log$9("ContextMenu initialized"),s}return inherits(t,r),t.prototype.init=function(){this.player.addChild("RightClickPopupMenu",this.options)},t}(Plugin$10);videojs.registerPlugin("ContextMenu",ContextMenu);var Plugin$11=videojs.getPlugin("plugin"),LevelSwitch=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return s.options=n,s.init(),s}return inherits(t,r),t.prototype.init=function(){var e=this.player,n=e.options_.plugins.ContextMenu;n&&n.levelSwitch&&n.levelSwitch.open&&e.addChild("LevelSwitchTips",this.options)},t}(Plugin$11);videojs.registerPlugin("LevelSwitch",LevelSwitch);var getParams$1=getParams,Plugin$12=videojs.getPlugin("plugin"),log$11=videojs.log,defaults$3={width:0,height:0,basePath:""},VttThumbnail=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return s.hasInit=!1,s.spriteData=[],(n.vttUrl||n.enable===!0)&&(e.ready(videojs.bind(s,function(){this.init(n)})),e.on("loadedmetadata",function(){s.getSpriteConfig()})),s}return inherits(t,r),t.prototype.checkEventDvr=function(){if(get_1(this.player,"options_.plugins.Dvr.mode")!=="event")return!1;var e=this.player.src();if(!e)return!1;var n=getParams$1("txTimeshift",e),s=getParams$1("tsStart",e),a=getParams$1("tsEnd",e);return!!(n&&s&&a)},t.prototype.loadTrackFile=function(e){var n=this,s=this.player,a=s.addRemoteTextTrack({src:e.vttUrl,kind:"metadata"},!0);a&&a.addEventListener("load",function(){n.trackInfo=a})},t.prototype.getSpriteConfig=function(){if(!this.checkEventDvr())return!1;var e=this,n=this.player,s=n.src(),a=getParams$1(s,"tsEnd"),l=parseInt(new Date().getTime()/1e3),u=s.replace("m3u8","json").replace(a,l)+"&tsSpritemode=1",c=s.indexOf("http://")>-1?"http://":"https://",h=s.replace("https://","").replace("http://","").split("/")[0];xhr({url:u,timeout:3e3},function(p,g,v){if(!v)return!1;e.spriteData=JSON.parse(v),e.lastTime=e.spriteData[e.spriteData.length-1].last_time;var y=getParams$1("tsStart",u);e.spriteData.sort(function(C,I){return C.start_time-I.start_time});for(var _=0;_<e.spriteData.length;_++){var b=e.spriteData[_];_==0&&y>b.start_time?(b.hidden_dur=y-b.start_time,b.play_dur=b.end_time-y,b.hasOwnProperty("duration")&&(b.play_dur=b.duration*b.play_dur/(b.end_time-b.start_time),b.hidden_dur=b.duration-b.play_dur)):(b.hidden_dur=0,b.play_dur=b.end_time-b.start_time,b.hasOwnProperty("duration")&&(b.play_dur=b.duration))}e.baseHost=c+h||"http://5000.liveplay.myqcloud.com",e.prefix=e.baseHost+e.spriteData[0].path})},t.prototype.init=function(e){var n=this;if(!videojs.browser.IS_IOS&&!videojs.browser.IS_ANDROID&&this.player.controlBar&&this.player.controlBar.progressControl){if(log$11("VttThumbnail initializing",e),!this.player.controlBar)return void log$11("VttThumbnail can not initialize without control bar");this.options=e;var s=this.player,a=s.controlBar.progressControl;e.vttUrl&&(this.loadTrackFile(e),defaults$3.basePath=parseBasePath(e.vttUrl)),this.initUI(),setTimeout(function(){a.on("mouseenter",videojs.bind(n,n.onMouseEnter)),a.on("mousemove",videojs.bind(n,n.onMouseMove)),a.on("mouseleave",videojs.bind(n,n.onMouseOut))},100),this.hasInit=!0,log$11("VttThumbnail initialized"),s.trigger({type:"feature",data:"thumbnail"})}},t.prototype.initTrackFile=function(e){e.track,this.trackInfo=e},t.prototype.initUI=function(){var e=videojs.dom.createEl("div",{className:"tcp-vtt-thumbnail-container"}),n=videojs.dom.createEl("img",{className:"tcp-vtt-thumbnail-img"});e.appendChild(n),this.containerEl=e,this.imgEl=n,this.player.controlBar.progressControl.el().appendChild(e)},t.prototype.onMouseEnter=function(){this.containerEl.style.display="block"},t.prototype.getRelativeOffset=function(e){for(var n=0,s=e,a=0;a<this.spriteData.length;a++){if(e<n+this.spriteData[a].play_dur){s=e-n+this.spriteData[a].hidden_dur;break}n+=this.spriteData[a].play_dur}return s},t.prototype.getSpritePosition=function(e){var n=this.getRelativeOffset(e),s=Math.floor(n/60),a=Math.floor(n%60/10),l=this.prefix+s+".jpg";l+="?txTimeshift=on";var u=160*Math.floor(a%3),c=90*Math.floor(a/3);return{picUrl:l,xpos:u,ypos:c}},t.prototype.onMouseMove=function(e){var n=void 0,s=void 0,a=void 0,l=void 0,u=void 0,c=void 0,h=void 0,p=void 0,g=0,v=void 0,y=void 0,_=void 0,b=void 0;if(a=this.player.controlBar.progressControl,l=this.player.controlBar.progressControl.seekBar,u=offsetParent(a.el()).getBoundingClientRect(),c=offsetParent(l.el()).getBoundingClientRect(),n=e.clientX,p=this.player.duration(),!+(h=((n-c.left)/l.width()*p).toFixed(3)))return!1;if(get_1(this.player,"options_.plugins.Dvr.mode")==="event"){var C=player.currentPDT()/100;if(C&&(C>this.lastTime||!this.prefix))return this.getSpriteConfig(),!1;var I=this.getSpritePosition(h);return _={h:90,left:0,src:I.picUrl,w:160,x:I.xpos,y:I.ypos},b=n-c.left+_.w/2-l.width(),b=Math.max(0,b),s=n-u.left-_.w/2-b,s=Math.max(l.el().offsetLeft,s),_.left=s,this.setView(_),!1}if(!this.trackInfo)return!1;for(v=this.trackInfo.track||this.trackInfo;g<v.cues.length;){if(y=v.cues[g],y.startTime<=h&&y.endTime>=h){_=parseImageLink(y.text);break}g++}if(!_)return this.onMouseOut(),!1;b=n-c.left+_.w/2-l.width(),b=Math.max(0,b),s=n-u.left-_.w/2-b,s=Math.max(l.el().offsetLeft,s),_.left=s,this.setView(_)},t.prototype.onMouseOut=function(){this.containerEl.style.display="none"},t.prototype.setView=function(e){var n=this.containerEl,s=this.imgEl,a=this.options;n.style.width==e.w&&n.style.height==e.h||(n.style.width=e.w+"px",n.style.height=e.h+"px"),n.style.left=e.left+"px",s.src!==e.src&&(a.imgUrl&&s.src!=a.imgUrl?s.src=a.imgUrl:s.src=e.src),s.style.left=-e.x+"px",s.style.top=-e.y+"px",s.style.clip="rect("+e.y+"px,"+(e.w+e.x)+"px,"+(e.y+e.h)+"px,"+e.x+"px)"},t.prototype.reset=function(){if(this.hasInit){log$11("VttThumbnail reset");var e=this.player,n=e.controlBar.progressControl;n.off("mousemove",videojs.bind(this,this.onMouseMove)),n.off("mouseleave",videojs.bind(this,this.onMouseOut)),this.hasInit=!1}},t}(Plugin$12),getComputedStyle=function(r,t){return function(e){return window.getComputedStyle?window.getComputedStyle(r,t)[e]:r.currentStyle[e]}},offsetParent=function r(t){return t.nodeName!=="HTML"&&getComputedStyle(t)("position")==="static"?r(t.offsetParent):t},parseImageLink=function(r){var t=void 0,e=void 0,n=void 0;if((e=r.indexOf("#"))===-1)return{src:r,w:0,h:0,x:0,y:0};if(t=r.substring(0,e),/^(http:|https:|\/\/)/.test(t)||(t=defaults$3.basePath+t),n=r.substring(e+1),n.substring(0,5)!=="xywh=")return{src:t,w:0,h:0,x:0,y:0};var s=n.substring(5).split(",");return{src:t,w:parseInt(s[2]),h:parseInt(s[3]),x:parseInt(s[0]),y:parseInt(s[1])}},parseBasePath=function(r){/^(\/\/)/.test(r)&&(r="https:"+r);var t=/(\w+):\/\/([^\:|\/]+)(\:\d*)?(.*\/)([^#|\?|\n]+)?(#.*)?(\?.*)?/i,e=r.match(t);if(e&&e[2]&&e[4])return"//"+e[2]+e[4]};videojs.registerPlugin("VttThumbnail",VttThumbnail);var Plugin$13=videojs.getPlugin("plugin"),log$12=videojs.log,PlayerMetrics=function(r){function t(e,n){classCallCheck(this,t),log$12("PlayerMetrics initializing");var s=possibleConstructorReturn(this,r.call(this,e));if(e.options_.reportable===!1){var a;return a=!1,possibleConstructorReturn(s,a)}return s.player=e,s.checkPrevData(),s.initData(),s.registerListener(),log$12("PlayerMetrics initialized"),s}return inherits(t,r),t.prototype.checkPrevData=function(){var e=localStorage.getItem("tcplayer_data");if(e){var n=JSON.parse(e);Reporter.reportPlayMetrics(n,function(){localStorage.removeItem("tcplayer_data")})}},t.prototype.initData=function(){this.bytes_token=guid(),this.vodBaseData={uint32_service:2,uint32_platform:3,bytes_version:String(version),uint64_appid:0,bytes_bizid:this.guid("dev_uuid"),bytes_stream_id:"",uint32_module_id:1011,uint32_data_type:1,uint32_command:40303,uint64_data_time:0,bytes_token:this.bytes_token,token:this.bytes_token,dev_uuid:this.guid("dev_uuid"),str_app_name:"",str_app_version:"",str_stream_url:"",str_brand_type:this.getDevice(),str_device_resolution:screen.width+"_"+screen.height,str_device_type:"",str_package_name:"",str_sdk_name:"TCPlayer",str_user_id:this.guid("dev_uuid"),sys_type:this.getSystem(),sys_version:String(this.getSystemVer()),str_user_agent:USER_AGENT,str_browser_version:String(this.getBrowserVer()),str_browser_model:String(this.getBrowser()),u32_app_id:String(this.player.options_.appID),str_fileid:String(this.player.options_.fileID),u32_network_type:this.getNetworkType()},this.liveBaseData={str_user_id:this.guid("dev_uuid"),dev_uuid:this.guid("dev_uuid"),str_session_id:this.bytes_token,bytes_token:this.bytes_token,str_device_type:"",str_os_info:this.getSystem(),str_package_name:"",u32_network_type:this.getNetworkType()!=="0xFF"?this.getNetworkType():"",u32_server_ip:"",str_stream_url:this.player.cache_.src,u64_timestamp:this.player.startTime,u32_link_type:1,u32_channel_type:1,str_app_version:"",platform:3,uint32_platform:3,str_browser_version:this.getBrowserVer(),str_browser_model:this.getBrowser(),str_user_agent:USER_AGENT,u32_video_drop:"",u32_drop_usage:"",float64_rtt:""},this.features=[],this.afterCanplay=!1,this.videoDuration=0,this.consumeDuration=0,this.playScene=1,this.timing={},this.playStatus={isFirstPlay:!1,pauseDuration:0},this.contentComputTimePoint=[],this.firstFrameDuration=0,this.firstIFrameDuration=0,this.blockInterval=5e3,this.bufferBlock=[],this.u32_drm_type="plain",this.resetLagStatus(),this.resetBlockData()},t.prototype.getComsumeDuration=function(e){var n=getTimeStamp()-this.timing.firstPlaying;this.consumeDuration=n-this.lagStatus.lagDuration-this.playStatus.pauseDuration,e&&this.consumeDuration<0&&(this.consumeDuration=n>0?n:0)},t.prototype.registerListener=function(){var e=this.player;e.on("loadedmetadata",videojs.bind(this,this.onLoadedmetadata)),e.one("canplay",videojs.bind(this,this.oneCanplay)),e.one("play",videojs.bind(this,this.onePlay)),e.on("play",videojs.bind(this,this.onPlay)),e.on("playing",videojs.bind(this,this.onPlaying)),e.on("seeking",videojs.bind(this,this.onSeeking)),e.on("seeked",videojs.bind(this,this.onSeeked)),e.on("error",videojs.bind(this,this.onError)),e.on("resolutionswitching",videojs.bind(this,this.onResolutionSwitching)),e.on("pause",videojs.bind(this,this.onPause)),e.on("playcgiend",videojs.bind(this,this.onPlaycgiend)),e.on("ended",videojs.bind(this,this.onEnded)),e.on("feature",videojs.bind(this,this.onFeature)),e.on("dispose",videojs.bind(this,this.onDispose)),document.addEventListener("visibilitychange",videojs.bind(this,this.onVisibilityChange)),window.addEventListener("pagehide",videojs.bind(this,this.onPageHide))},t.prototype.onPageHide=function(){this.saveData()},t.prototype.onVisibilityChange=function(){document.visibilityState==="hidden"&&this.saveData()},t.prototype.saveData=function(){this.bytes_token&&this.playScene!==3&&this.player&&(this.getComsumeDuration(),this.report(this.playScene===2?40304:40102,{},function(e){localStorage.setItem("tcplayer_data",JSON.stringify(e))}))},t.prototype.onLoadedmetadata=function(){this.player.tech_.webrtcProvider?this.playScene=3:this.playScene=this.player.duration()===1/0?1:2,this.videoDuration=parseInt(this.player.duration())||0,videojs.bind(this,this.calculateFirstFrameDuration)(),this.playScene===2&&this.report(40303)},t.prototype.oneCanplay=function(){videojs.bind(this,this.calculateFirstFrameDuration)(),this.playScene===1&&this.report(40101)},t.prototype.calculateFirstFrameDuration=function(){var e=getperformance();e.mark&&e.measure&&e.getEntriesByName&&(e.mark("firstIFrameEnd"),e.measure("firstIFrame","firstFrameStart","firstIFrameEnd"),this.firstIFrameDuration=e.getEntriesByName("firstIFrame")[0].duration)},t.prototype.onePlay=function(){var e=this;this.setTimingData({firstPlay:getTimeStamp()});var n=this.player.el_.firstChild;this.bufferStart=n&&n.buffered&&n.buffered.length>0?n.buffered.start(n.buffered.length-1):0,this.bufferBlock=[this.bufferStart];var s=this.player.getVideoPlaybackQuality();this.recvFrames=s.totalVideoFrames,this.renderedFrames=s.totalVideoFrames-s.droppedVideoFrames,this.blockStartTime=getTimeStamp(),this.blockTimer=setInterval(function(){if(e.playScene===2)return!1;if(e.lagStatus.lagging&&e.lagStatus.lagStart){var a=getTimeStamp()-e.lagStatus.lagStart;a>e.blockInterval?e.blockData.lagBlockDuration=e.blockInterval:e.blockData.lagBlockDuration+=a}e.blockStartTime=getTimeStamp();var l=n&&n.buffered&&n.buffered.length>0?n.buffered.end(n.buffered.length-1):0,u=e.player.getVideoPlaybackQuality(),c=u.totalVideoFrames,h=u.totalVideoFrames-u.droppedVideoFrames;Object.assign(e.blockData,{buffer_avg:parseInt(1e3*(l-e.bufferStart)),recv_frames:c-e.recvFrames,render_frames:h-e.renderedFrames}),e.bufferBlock.push(e.blockData.buffer_avg),e.bufferStart=l,e.recvFrames=c,e.renderedFrames=h,e.report(40100)},this.blockInterval)},t.prototype.onDispose=function(){clearInterval(this.blockTimer)},t.prototype.onPlay=function(){this.playStatus.pauseTime&&(this.playStatus.pauseDuration=this.playStatus.pauseDuration+getTimeStamp()-this.playStatus.pauseTime,this.playStatus.pauseTime=0)},t.prototype.onPlaying=function(){var e=this;if(!this.playStatus.isFirstPlay&&(this.playStatus.isFirstPlay=!0,this.setTimingData({firstPlaying:getTimeStamp()}),this.player.on("waiting",function(){e.lagStatus.lagging||e.player.seeking()||e.lagStatus.skip||(e.lagStatus.lagging=!0,e.lagStatus.lagStart=getTimeStamp())}),this.player.currentSource().keySystems)){var n=this.player.currentSource().keySystems;n.plain&&(this.u32_drm_type="plain"),n.SimpleAES&&(this.u32_drm_type="SimpleAES")}this.lagStatus.lagging&&(this.lagStatus.lagEnd=getTimeStamp())-this.lagStatus.lagStart>this.lagStatus.lagInterval&&(this.lagStatus.lagging=!1,this.lagStatus.lagCount++,this.lagStatus.lagAvg.push(this.lagStatus.lagEnd-this.lagStatus.lagStart),this.lagStatus.lagDuration+=this.lagStatus.lagEnd-this.lagStatus.lagStart,this.lagStatus.lagStart<this.blockStartTime&&(this.blockData.lagBlockDuration=this.lagStatus.lagEnd-this.blockStartTime),this.lagStatus.lagStart>=this.blockStartTime&&(this.blockData.lagBlockDuration+=this.lagStatus.lagEnd-this.lagStatus.lagStart),this.lagStatus.lagEnd=this.lagStatus.lagStart=0,this.lagStatus.isFirstLag||(this.lagStatus.isFirstLag=!0,this.setTimingData({firstLag:getTimeStamp()}))),[60,200,500,1e3].forEach(function(s){e.lagStatus.lagging&&(e.lagStatus.lagEnd=getTimeStamp())-e.lagStatus.lagStart>s&&e.blockData["lagCount_"+s]++}),this.lagStatus.skip=!1},t.prototype.onSeeking=function(){this.contentComputTimePoint.push({type:"end",time:this.player.currentTime()})},t.prototype.onSeeked=function(){this.contentComputTimePoint.push({type:"start",time:this.player.currentTime()})},t.prototype.onError=function(e){this.getComsumeDuration(!0);var n={u64_err_code:e.data.code,str_err_info:e.data.message||(defaults$1.errors[e.data.code]||{}).message},s=(this.player.cache_.src||"").indexOf("vod")>-1||this.player.options_.fileID;e&&e.data&&e.data.code&&(this.playScene===2&&s?this.report(40304,n):this.afterCanplay?this.report(40102,n):this.report(40101,n))},t.prototype.onResolutionSwitching=function(){this.lagStatus.skip=!0},t.prototype.onPause=function(){this.playStatus.pauseTime=getTimeStamp(),this.lagStatus.lagging&&(this.lagStatus.skip=!0)},t.prototype.onPlaycgiend=function(e){var n=this,s=e.data;s.result&&s.result.code==0&&(this.playStatus.requestID=s.result.requestId,setTimeout(function(){if(n.player.currentSources().length>0&&n.player.currentSources()[0].keySystems){var a=n.player.currentSources()[0].keySystems;a["com.widevine.alpha"]&&n.reportMTA("drm",{initialized:"Widevine"}),a["com.apple.fps.1_0"]&&n.reportMTA("drm",{initialized:"FairPlay"})}else n.player.options_.plugins.DRM&&n.player.options_.plugins.DRM.token&&n.reportMTA("drm",{initialized:"SimpleAES"})},0)),this.setTimingData({cgiStart:e.data.startTime,cgiEnd:e.data.time})},t.prototype.onEnded=function(){this.getComsumeDuration(),this.playScene===1?this.report(40102):this.report(40304)},t.prototype.onFeature=function(e){this.features.indexOf(e.data)==-1&&this.features.push(e.data)},t.prototype.guid=function(e){var n=localStorage.getItem(e);return n||(n=guid(),localStorage.setItem(e,n)),n},t.prototype.report=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments[2];if(this.playScene===3)return!1;e&&this["report_"+e](n,s)},t.prototype.report_40101=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.player)return!1;var n={uint64_data_time:getTimeStampBySecond(),str_stream_url:this.player.cache_.src,u64_timestamp:this.player.startTime,u32_dns_time:"",u32_connect_server_time:parseInt(this.firstFrameDuration),u32_video_decode_type:0,u32_first_frame_down:parseInt(this.firstFrameDuration),u32_first_video_decode_time:parseInt(this.firstIFrameDuration),u32_first_i_frame:parseInt(this.firstIFrameDuration),u32_first_audio_frame_down:parseInt(this.firstFrameDuration),u32_first_audio_render_time:parseInt(this.firstIFrameDuration),u64_err_code:e.u64_err_code||"",str_err_info:e.str_err_info||""},s={app_id:0,data:[Object.assign({},this.liveBaseData,n,e)],module_id:1005,command:40101};Reporter.reportPlayMetrics(s)},t.prototype.report_40100=function(e){var n=this,s=this.player||{};this.blockData=this.blockData||{};var a={u32_cpu_usage:"",u32_app_cpu_usage:"",u32_avg_memory:"",u32_avg_cpu_usage:"",str_stream_url:s.cache_&&s.cache_.src,uint64_data_time:getTimeStampBySecond(),u32_recv_av_diff_time:0,u32_play_av_diff_time:0,u64_playtime:getTimeStamp()-this.timing.firstPlaying,u32_audio_decode_type:2,u32_audio_block_count:this.blockData.lagCount_500,u32_audio_cache_time:this.blockData.buffer_avg,u32_audio_drop:"",u32_video_decode_type:0,u32_video_recv_fps:this.blockData.recv_frames,u32_fps:this.blockData.render_frames,u32_video_cache_time:this.blockData.buffer_avg,u32_avg_cache_count:0,u32_video_block_count:this.blockData.lagCount_1000,u32_avg_net_speed:"",u32_video_light_block_count:this.blockData.lagCount_200,u32_video_large_block_count:this.blockData.lagCount_500,u32_audio_jitter_60ms_count:this.blockData.lagCount_60,u32_video_decode_fail:"",u32_audio_decode_fail:"",u32_avg_video_bitrate:0,u32_avg_audio_bitrate:0,u32_block_usage:1e3*parseInt(this.blockData.lagBlockDuration/this.blockInterval)},l={app_id:0,data:[Object.assign({},this.liveBaseData,a,e)],module_id:1005,command:40100};Reporter.reportPlayMetrics(l,function(){n.resetBlockData()})},t.prototype.report_40102=function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments[1],a=this.player||{},l=0,u=0,c=0;JSON.stringify(a)!=="{}"?(l=this.lagStatus.lagAvg.length>0?this.lagStatus.lagAvg.reduce(function(g,v){return g+v},0)/this.lagStatus.lagAvg.length:0,u=this.bufferBlock.length>0?this.bufferBlock.reduce(function(g,v){return g+v},0)/this.bufferBlock.length:0,c=(a.getVideoPlaybackQuality&&a.getVideoPlaybackQuality()||{}).totalVideoFrames/n.duration):this.resetLagStatus();var h={uint64_data_time:getTimeStampBySecond(),str_stream_url:a.cache_&&a.cache_.src,u64_timestamp:getTimeStamp(),u32_avg_cpu_usage:"",u32_avg_memory:"",u64_begin_timestamp:a.startTime,u32_result:this.consumeDuration,u64_err_code:n.u64_err_code,u32_speed_cnt:0,u32_avg_cache_time:u,u32_max_load:Math.max.apply(Math,this.lagStatus.lagAvg),u32_audio_block_time:this.lagStatus.lagDuration,u32_avg_load:l,u32_load_cnt:this.lagStatus.lagAvg.length||0,u32_nodata_cnt:this.lagStatus.lagAvg.length||0,u32_first_i_frame:this.firstIFrameDuration,u32_video_width:a.width_,u32_video_height:a.height_,u32_video_avg_fps:c,u32_avg_block_time:l,u64_block_count:this.lagStatus.lagAvg.length||0,u32_video_block_time:this.lagStatus.lagDuration,u64_jitter_cache_max:0,u64_block_duration_max:Math.max.apply(Math,this.lagStatus.lagAvg),u64_jitter_cache_avg:0,u32_ip_count_quic:"",u32_connect_count_quic:"",u32_connect_count_tcp:"",u32_is_real_time:"",u32_first_frame_black:"",u32_delay_report:0},p={app_id:0,data:[Object.assign({},this.liveBaseData,h,n)],module_id:1005,command:40102};return n.u32_delay_report?(localStorage.setItem("tcplayer_data",JSON.stringify(p)),!1):s?(p.data.u32_delay_report=1,s(p)):void Reporter.reportPlayMetrics(p,function(){e.bytes_token=null,localStorage.removeItem("tcplayer_data")})},t.prototype.report_40303=function(){this.setTimingData({initEnd:getTimeStamp()});var e={msg_client_ip:{uint32_ip:""},uint32_service:this.playScene,uint64_data_time:getTimeStampBySecond(),str_stream_url:this.player.cache_.src,uint32_command:40303},n={app_id:0,data:[Object.assign({},this.vodBaseData,e)],module_id:1011,command:40303};Reporter.reportPlayMetrics(n)},t.prototype.report_40304=function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments[1],a=this.lagStatus.lagAvg.length>0?this.lagStatus.lagAvg.reduce(function(c,h){return c+h},0)/this.lagStatus.lagAvg.length:0,l={uint64_data_time:getTimeStampBySecond(),uint32_command:40304,str_stream_url:this.player.cache_.src,u32_timeuse:String(parseInt(this.consumeDuration/1e3)||0),u32_videotime:String(this.videoDuration),u32_avg_load:String(a),u32_load_cnt:String(this.lagStatus.lagCount),u32_max_load:this.lagStatus.lagAvg.length>0?String(Math.max.apply(Math,this.lagStatus.lagAvg)):String(0),u32_avg_block_time:String(this.lagStatus.lagDuration),u32_player_type:String(4),u32_dns_time:"",u32_tcp_did_connect:"",u32_first_video_packet:String(parseInt(this.firstFrameDuration)),u32_first_i_frame:String(parseInt(this.firstIFrameDuration)),u32_server_ip:"",u32_drm_type:this.u32_drm_type,u32_playmode:String(1),u64_err_code:String(n.u64_err_code||""),str_err_info:String(n.str_err_info||""),u32_video_decode_type:String(0),u32_speed:this.player&&String(100*this.player.playbackRate())||"1000"},u={app_id:0,data:[Object.assign({},this.vodBaseData,l)],module_id:1011,command:40304};if(s)return s(u);Reporter.reportPlayMetrics(u,function(){e.bytes_token=null,localStorage.removeItem("tcplayer_data")})},t.prototype.setTimingData=function(e){this.timing=videojs.mergeOptions(this.timing,e)},t.prototype.reset=function(){this.playStatus={isFirstPlay:!1}},t.prototype.resetLagStatus=function(){this.lagStatus={lagCount:0,lagging:!1,lagStart:0,lagEnd:0,lagInterval:500,lagDuration:0,lagAvg:[],isFirstLag:!1,skip:!1}},t.prototype.resetBlockData=function(){this.blockData={lagCount_60:0,lagCount_200:0,lagCount_500:0,lagCount_1000:0,lagBlockDuration:0,buffer_avg:0,recv_frames:0,render_frames:0}},t.prototype.reportMTA=function(e,n){},t.prototype.getSystem=function(){return IS_IOS?"ios":IS_ANDROID?"android":IS_WIN?"win":IS_MAC?"mac":"other"},t.prototype.getSystemVer=function(){var e=this.getSystem();return e=="ios"?IOS_VERSION:e=="android"?ANDROID_VERSION:e=="win"?WIN_VER:e=="mac"?MAC_VER:void 0},t.prototype.getBrowser=function(){return IS_FIREFOX?"firefox":IS_EDGE?"edge":IS_MQQB?"mqq":IS_QQB?"qq":IS_TBS?"tbs":IS_CHROME?"chrome":IE_VERSION?"ie":IS_SAFARI?"safari":"other"},t.prototype.getBrowserVer=function(){var e=this.getBrowser();return e=="firefox"?FIREFOX_VER:e=="edge"?EDGE_VER:e=="chrome"?CHROME_VER:e=="ie"?IE_VERSION:e=="safari"?SAFARI_VER:e=="qq"||e=="mqq"?QQ_VER:e=="tbs"?TBS_VERSION:"other"},t.prototype.getDevice=function(){return IS_IOS?"IPHONE":IS_HUAWEI?"HUAWEI":IS_XIAOMI?"XIAOMI":IS_OPPO?"OPPO":IS_VIVO?"VIVO":IS_SX?"SUMSUNG":IS_CP?"COOLPAD":IS_ONE?"ONEPLUS":IS_ZX?"ZTE":"OTHER"},t.prototype.getMediaType=function(){return this.player.src()&&/\/(.+)\.(.+)\?|\/(.+)\.(.+)/.test(this.player.src()),RegExp.$2||RegExp.$4},t.prototype.getNetworkType=function(){var e=navigator.userAgent,n=e.match(/NetType\/\w+/)?e.match(/NetType\/\w+/)[0]:"NetType/other";n=n.toLowerCase().replace("nettype/","");var s;switch(n){case"wifi":s="1";break;case"4g":s="2";break;case"3g":case"3gnet":s="3";break;case"2g":s="4";break;default:s="0xFF"}return s},t}(Plugin$13);videojs.registerPlugin("PlayerMetrics",PlayerMetrics);var Plugin$14=videojs.getPlugin("plugin"),log$13=videojs.log,ProgressMarker=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return e.ready(videojs.bind(s,s.init)),s}return inherits(t,r),t.prototype.init=function(){var e=this.player;if(e.options_.dots){var n=function a(){Array.isArray(e.options_.dots)&&e.options_.dots.length>0&&(e.options_.dots.forEach(function(l){!l.emitted&&l.timeOffset-1e3*(e.currentTime()||0)<500&&(l.emitted=!0,e.trigger("marker",l.content))}),e.options_.dots[e.options_.dots.length-1].emitted||window.requestAnimationFrame(a))};window.requestAnimationFrame(n)}if(IS_IOS||IS_ANDROID)return!1;if(!e.controlBar||!this.player.controlBar.progressControl)return void log$13("ProgressMarker can not initialize without control bar or progress control");log$13("ProgressMarker initializing");var s=e.controlBar.getChild("ProgressControl").getChild("SeekBar");s.getChild("ProgressMarkerGenerator")&&s.removeChild("ProgressMarkerGenerator"),e.options_.plugins.ProgressMarker&&(s.addChild("ProgressMarkerGenerator"),log$13("ProgressMarker initialized"),e.trigger({type:"feature",data:"marker"}))},t}(Plugin$14);videojs.registerPlugin("ProgressMarker",ProgressMarker);var Component$15=videojs.getComponent("Component"),PlayListItem=function(r){function t(e,n){return classCallCheck(this,t),possibleConstructorReturn(this,r.call(this,e,n))}return inherits(t,r),t.prototype.createEl=function(){var e=this.options_,n=videojs.dom.createEl("div",{className:"tcp-playlist-item"}),s=videojs.dom.createEl("div",{className:"tcp-playlist-item-video",innerHTML:e.img?'<img src="'+e.img+'" class="tcp-playlist-item-img">':'<img src="https://imgcache.qq.com/open_proj/proj_qcloud_v2/mc_2014/video/console/v2/css/img/vod/default-cover.png" height="100" class="tcp-playlist-item-img">'}),a=videojs.dom.createEl("div",{className:"tcp-playlist-item-duration",textContent:this.timeFormat(e.duration)});s.appendChild(a);var l=videojs.dom.createEl("div",{className:"tcp-playlist-item-desc",textContent:e.text});return n.appendChild(s),n.appendChild(l),this.bindEvent(n),n},t.prototype.bindEvent=function(e){var n=this;videojs.on(e,["click"],function(){n.player_.trigger({type:"playItem",data:n.options_})})},t.prototype.timeFormat=function(e){var n="",s=Math.floor(e/3600);s!=0&&(e-=3600*s,s<10&&(s="0"+s),n+=s+":");var a=Math.floor(e/60);return a<10&&(a="0"+a),e-=60*a,e<10&&(e="0"+e),n+=a+":"+e},t}(Component$15);videojs.registerComponent("PlayListItem",PlayListItem);var Component$16=videojs.getComponent("Component"),PlayListTitle=function(r){function t(e,n){return classCallCheck(this,t),possibleConstructorReturn(this,r.call(this,e,n))}return inherits(t,r),t.prototype.createEl=function(){var e=this.options_;return videojs.dom.createEl("div",{className:"tcp-playlist-title",textContent:e.title})},t}(Component$16);videojs.registerComponent("PlayListTitle",PlayListTitle);var Component$14=videojs.getComponent("Component"),PlayListBox=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.init(),s.activeIndex=-1,s}return inherits(t,r),t.prototype.createEl=function(){return videojs.dom.createEl("div",{className:"tcp-playlist-box"})},t.prototype.init=function(){var e=this,n=this.options_.data;this.addChild("PlayListTitle",{title:this.options_.title}),n.forEach(function(s,a){s.index=a,e.addChild("PlayListItem",s)}),this.player_.on("ready",function(){e.options_.loop&&(e.activeIndex=0,e.player_.on("ended",videojs.bind(e,function(){e.player_.trigger({type:"playItem"})})))}),this.player_.on("playItem",function(s){var a=s.data,l=void 0;e.activeIndex=a?a.index:(e.activeIndex+1)%n.length,l=n[e.activeIndex],e.player_.loadVideoByID({fileID:l.fileID,appID:l.appID,psign:l.psign}),e.player_.one("loadedmetadata",videojs.bind(e,function(){e.player_.play()})),document.querySelectorAll(".tcp-playlist-item").forEach(function(c){videojs.dom.removeClass(c,"tcp-playlist-item-active")});var u=document.querySelectorAll(".tcp-playlist-item")[e.activeIndex];videojs.dom.addClass(u,"tcp-playlist-item-active")})},t}(Component$14);videojs.registerComponent("PlayListBox",PlayListBox);var Component$17=videojs.getComponent("Component"),PlayListToggle=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.status=0,s}return inherits(t,r),t.prototype.createEl=function(){var e=videojs.dom.createEl("div",{className:"tcp-playlist-toggle",textContent:"<"});return this.bindEvent(e),e},t.prototype.bindEvent=function(e){var n=this;videojs.on(e,["click"],function(s){n.status=!n.status;var a=document.querySelector(".tcp-playlist");n.status?(e.textContent=">",videojs.dom.addClass(a,"tcp-playlist-open"),videojs.dom.removeClass(a,"tcp-playlist-close")):(videojs.dom.addClass(a,"tcp-playlist-close"),videojs.dom.removeClass(a,"tcp-playlist-open"),e.textContent="<")})},t}(Component$17);videojs.registerComponent("PlayListToggle",PlayListToggle);var Component$13=videojs.getComponent("Component"),PlayList$1=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.init(),s}return inherits(t,r),t.prototype.createEl=function(){return videojs.dom.createEl("div",{className:"tcp-playlist tcp-playlist-close"})},t.prototype.init=function(){this.addChild("PlayListToggle"),this.addChild("PlayListBox",this.options_)},t}(Component$13);videojs.registerComponent("PlayList",PlayList$1);var Button$5=videojs.getComponent("Button"),PlayNextButton=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.addClass(),s}return inherits(t,r),t.prototype.addClass=function(){videojs.dom.addClass(this.el_,"vjs-play-next")},t.prototype.update=function(){},t.prototype.handleClick=function(e){this.player_.trigger({type:"playItem"})},t}(Button$5);PlayNextButton.prototype.controlText_="Play Next",videojs.registerComponent("PlayNextButton",PlayNextButton);var Plugin$15=videojs.getPlugin("plugin"),log$14=videojs.log,PlayList=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return IS_IOS||IS_ANDROID?possibleConstructorReturn(s):(s.options=n,n&&n.data instanceof Array&&n.data.length>0&&e.ready(videojs.bind(s,s.init)),s)}return inherits(t,r),t.prototype.init=function(){log$14("PlayList initializing"),this.player.addChild("PlayList",this.options),this.player.controlBar.addChild("PlayNextButton",{},1),log$14("PlayList initialized"),this.player.trigger({type:"feature",data:"playlist"})},t}(Plugin$15);videojs.registerPlugin("PlayList",PlayList);var Plugin$16=videojs.getPlugin("plugin"),log$15=videojs.log,HLSToken=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return log$15("HLSToken",e,n),s.init(n),s}return inherits(t,r),t.prototype.init=function(e){log$15("HLSToken init",e,this.player);var n=this.player;e.token&&(this.options=e,n.on("playcgiend",videojs.bind(this,function(s){this.modifyData(s.data)})))},t.prototype.modifyData=function(e){var n=this;if(log$15("HLSToken modifyData",e),e.result.code===0){var s=e.result.videoInfo;if(s.masterPlayList){var a=s.masterPlayList.url.split("/");a[a.length-1]="voddrm.token."+this.options.token+"."+a[a.length-1],s.masterPlayList.url=a.join("/")}s.transcodeList&&s.transcodeList.length>0&&(s.transcodeList=s.transcodeList.map(function(l){var u=l.url.split("/");return u[u.length-1]="voddrm.token."+n.options.token+"."+u[u.length-1],l.url=u.join("/"),l}))}},t}(Plugin$16);videojs.registerPlugin("HLSToken",HLSToken);var getMessageContents=function(r){var t=new window_1.DOMParser().parseFromString(String.fromCharCode.apply(null,new Uint16Array(r)),"application/xml"),e=t.getElementsByTagName("HttpHeaders")[0],n={};if(e)for(var s=e.getElementsByTagName("name"),a=e.getElementsByTagName("value"),l=0;l<s.length;l++)n[s[l].childNodes[0].nodeValue]=a[l].childNodes[0].nodeValue;var u=t.getElementsByTagName("Challenge")[0],c=void 0;return u&&(c=window_1.atob(u.childNodes[0].nodeValue)),{headers:n,message:c}},requestPlayreadyLicense=function(r,t,e){var n=getMessageContents(t),s=n.headers,a=n.message;videojs.xhr({uri:r,method:"post",headers:s,body:a,responseType:"arraybuffer"},e)},getSupportedKeySystem=function(r){var t=void 0;return Object.keys(r).forEach(function(e){var n={},s=r[e].audioContentType,a=r[e].videoContentType;s&&(n.audioCapabilities=[{contentType:s}]),a&&(n.videoCapabilities=[{contentType:a}]),t=t?t.catch(function(l){return window_1.navigator.requestMediaKeySystemAccess(e,[n])}):window_1.navigator.requestMediaKeySystemAccess(e,[n])}),t},makeNewRequest=function(r){var t=r.mediaKeys,e=r.initDataType,n=r.initData,s=r.options,a=r.getLicense,l=r.removeSession,u=r.eventBus,c=t.createSession();c.addEventListener("message",function(h){a(s,h.message).then(function(p){return c.update(p)}).catch(videojs.log.error.bind(videojs.log.error,"failed to get and set license"))},!1),c.addEventListener("keystatuseschange",function(h){var p=!1;c.keyStatuses.forEach(function(g,v){switch(u.trigger({keyId:v,status:g,target:c,type:"keystatuschange"}),g){case"expired":p=!0;break;case"internal-error":videojs.log.warn(`Key status reported as "internal-error." Leaving the session open since we don't have enough details to know if this error is fatal.`,h)}}),p&&c.close().then(function(){l(n)})},!1),c.generateRequest(e,n).catch(videojs.log.error.bind(videojs.log.error,"Unable to create or initialize key session"))},addSession=function(r){var t=r.video,e=r.initDataType,n=r.initData,s=r.options,a=r.getLicense,l=r.removeSession,u=r.eventBus;t.mediaKeysObject?makeNewRequest({mediaKeys:t.mediaKeysObject,initDataType:e,initData:n,options:s,getLicense:a,removeSession:l,eventBus:u}):t.pendingSessionData.push({initDataType:e,initData:n})},setMediaKeys=function(r){var t=r.video,e=r.certificate,n=r.createdMediaKeys,s=r.options,a=r.getLicense,l=r.removeSession,u=r.eventBus;t.mediaKeysObject=n,e&&n.setServerCertificate(e);for(var c=0;c<t.pendingSessionData.length;c++){var h=t.pendingSessionData[c];makeNewRequest({mediaKeys:t.mediaKeysObject,initDataType:h.initDataType,initData:h.initData,options:s,getLicense:a,removeSession:l,eventBus:u})}return t.pendingSessionData=[],t.setMediaKeys(n)},defaultPlayreadyGetLicense=function(r){return function(t,e,n){requestPlayreadyLicense(r,e,function(s,a,l){if(s)return void n(s);n(null,l)})}},defaultGetLicense=function(r){return function(t,e,n){videojs.xhr({uri:r,method:"POST",responseType:"arraybuffer",body:e,headers:{"Content-type":"application/octet-stream"}},function(s,a,l){if(s)return void n(s);n(null,l)})}},promisifyGetLicense=function(r,t){return function(e,n){return new Promise(function(s,a){r(e,n,function(l,u){t&&t.trigger("licenserequestattempted"),l&&a(l),s(u)})})}},standardizeKeySystemOptions=function(r,t){if(typeof t=="string"&&(t={url:t}),!t.url&&!t.getLicense)throw new Error("Neither URL nor getLicense function provided to get license");return t.url&&!t.getLicense&&(t.getLicense=r==="com.microsoft.playready"?defaultPlayreadyGetLicense(t.url):defaultGetLicense(t.url)),t},standard5July2016=function(r){var t=r.video,e=r.initDataType,n=r.initData,s=r.options,a=r.removeSession,l=r.eventBus,u=Promise.resolve();if(typeof t.mediaKeysObject>"u"){t.mediaKeysObject=null,t.pendingSessionData=[];var c=void 0,h=void 0;if(!(u=getSupportedKeySystem(s.keySystems)))return videojs.log.error("No supported key system found"),Promise.resolve();u=u.then(function(p){return new Promise(function(g,v){if(t.keySystem=p.keySystem,h=standardizeKeySystemOptions(p.keySystem,s.keySystems[p.keySystem]),!h.getCertificate)return void g(p);h.getCertificate(s,function(y,_){if(y)return void v(y);c=_,g(p)})})}).then(function(p){return p.createMediaKeys()}).then(function(p){return setMediaKeys({video:t,certificate:c,createdMediaKeys:p,options:s,getLicense:promisifyGetLicense(h.getLicense,l),removeSession:a,eventBus:l})}).catch(videojs.log.error.bind(videojs.log.error,"Failed to create and initialize a MediaKeys object"))}return u.then(function(){addSession({video:t,initDataType:e,initData:n,options:s,getLicense:t.keySystem?promisifyGetLicense(standardizeKeySystemOptions(t.keySystem,s.keySystems[t.keySystem]).getLicense,l):null,removeSession:a,eventBus:l})})},stringToUint16Array=function(r){for(var t=new ArrayBuffer(2*r.length),e=new Uint16Array(t),n=0;n<r.length;n++)e[n]=r.charCodeAt(n);return e},uint8ArrayToString=function(r){return String.fromCharCode.apply(null,new Uint16Array(r.buffer))},getHostnameFromUri=function(r){var t=document_1.createElement("a");return r=r.match(/.*(skd\:\/\/.+)/i)[1],t.href=r,t.hostname},arrayBuffersEqual=function(r,t){if(r===t)return!0;if(r.byteLength!==t.byteLength)return!1;for(var e=new DataView(r),n=new DataView(t),s=0;s<e.byteLength;s++)if(e.getUint8(s)!==n.getUint8(s))return!1;return!0},arrayBufferFrom=function(r){return r instanceof Uint8Array||r instanceof Uint16Array?r.buffer:r},FAIRPLAY_KEY_SYSTEM="com.apple.fps.1_0",concatInitDataIdAndCertificate=function(r){var t=r.initData,e=r.id,n=r.cert;typeof e=="string"&&(e=stringToUint16Array(e));var s=0,a=new ArrayBuffer(t.byteLength+4+e.byteLength+4+n.byteLength),l=new DataView(a);new Uint8Array(a,s,t.byteLength).set(t),s+=t.byteLength,l.setUint32(s,e.byteLength,!0),s+=4;var u=new Uint16Array(a,s,e.length);return u.set(e),s+=u.byteLength,l.setUint32(s,n.byteLength,!0),s+=4,new Uint8Array(a,s,n.byteLength).set(n),new Uint8Array(a,0,a.byteLength)},addKey=function(r){var t=r.video,e=r.contentId,n=r.initData,s=r.cert,a=r.options,l=r.getLicense,u=r.eventBus;return new Promise(function(c,h){if(t.webkitKeys||t.webkitSetMediaKeys(new window_1.WebKitMediaKeys(FAIRPLAY_KEY_SYSTEM)),!t.webkitKeys)return void h("Could not create MediaKeys");var p=t.webkitKeys.createSession("video/mp4",concatInitDataIdAndCertificate({id:e,initData:n,cert:s}));if(!p)return void h("Could not create key session");p.contentId=e,p.addEventListener("webkitkeymessage",function(g){l(a,e,g,function(v,y){if(u&&u.trigger("licenserequestattempted"),v)return void h(v);p.update(new Uint8Array(y))})}),p.addEventListener("webkitkeyadded",function(g){c(g)}),p.addEventListener("webkitkeyerror",function(g){h(g)})})},defaultGetCertificate=function(r){return function(t,e){videojs.xhr({uri:r,responseType:"arraybuffer"},function(n,s,a){if(n)return void e(n);e(null,new Uint8Array(a))})}},defaultGetContentId=function(r,t){return getHostnameFromUri(uint8ArrayToString(t))},defaultGetLicense$1=function(r){return function(t,e,n,s){videojs.xhr({uri:r,method:"POST",responseType:"arraybuffer",body:n.message,headers:{"Content-type":"application/x-www-form-urlencoded"}},function(a,l,u){if(a)return void s(a);s(null,u)})}},fairplay=function(r){var t=r.video,e=r.initData,n=r.options,s=r.eventBus,a=n.keySystems[FAIRPLAY_KEY_SYSTEM],l=a.getCertificate||defaultGetCertificate(a.certificateUri),u=a.getContentId||defaultGetContentId,c=a.getLicense||defaultGetLicense$1(a.licenseUri);return new Promise(function(h,p){l(n,function(g,v){if(g)return void p(g);h(v)})}).then(function(h){return addKey({video:t,cert:h,initData:e,getLicense:c,options:n,contentId:u(n,e),eventBus:s})}).catch(function(h){s.player_.error({code:3,message:h})})},PLAYREADY_KEY_SYSTEM="com.microsoft.playready",addKeyToSession=function(r,t,e,n){var s=r.keySystems[PLAYREADY_KEY_SYSTEM];if(typeof s.getKey=="function")return void s.getKey(r,e.destinationURL,e.message.buffer,function(l,u){if(l)return void videojs.log.error("Unable to get key: "+l);t.update(u)});typeof s=="string"&&(s={url:s});var a=s.url||e.destinationURL;requestPlayreadyLicense(a,e.message.buffer,function(l,u){if(n&&n.trigger("licenserequestattempted"),l)return void videojs.log.error("Unable to request key from url: "+a);t.update(new Uint8Array(u.body))})},createSession=function(r,t,e,n){var s=r.msKeys.createSession("video/mp4",t);if(!s)return void videojs.log.error("Could not create key session.");s.addEventListener("mskeymessage",function(a){addKeyToSession(e,s,a,n)}),s.addEventListener("mskeyerror",function(a){videojs.log.error("Unexpected key error from key session with code: "+s.error.code+" and systemCode: "+s.error.systemCode)})},msPrefixed=function(r){var t=r.video,e=r.initData,n=r.options,s=r.eventBus;t.msKeys&&delete t.msKeys;try{t.msSetMediaKeys(new window_1.MSMediaKeys(PLAYREADY_KEY_SYSTEM))}catch(a){return void videojs.log.error("Unable to create media keys for PlayReady key system. Error: "+a.message)}createSession(t,e,n,s)},Plugin$17=videojs.getPlugin("plugin"),hasSession=function(r,t){for(var e=0;e<r.length;e++)if(r[e].initData){var n=arrayBufferFrom(r[e].initData),s=arrayBufferFrom(t);if(arrayBuffersEqual(n,s))return!0}return!1},removeSession=function(r,t){for(var e=0;e<r.length;e++)if(r[e].initData===t)return void r.splice(e,1)},handleEncryptedEvent=function(r,t,e,n){if(!t||!t.keySystems||t.src&&t.src.indexOf("m3u8")>-1)return Promise.resolve();var s=r.initData;return getSupportedKeySystem(t.keySystems).then(function(a){var l=a.keySystem;if(t.keySystems[l]&&t.keySystems[l].pssh&&(s=t.keySystems[l].pssh),!hasSession(e,s)&&s)return e.push({initData:s}),standard5July2016({video:r.target,initDataType:r.initDataType,initData:s,options:t,removeSession:removeSession.bind(null,e),eventBus:n})})},handleWebKitNeedKeyEvent=function(r,t,e){if(t.keySystems&&t.keySystems[FAIRPLAY_KEY_SYSTEM]&&r.initData)return fairplay({video:r.target,initData:r.initData,options:t,eventBus:e})},handleMsNeedKeyEvent=function(r,t,e,n){if(t.keySystems&&t.keySystems[PLAYREADY_KEY_SYSTEM]&&!e.reduce(function(a,l){return a||l.playready},!1)){var s=r.initData;t.keySystems[PLAYREADY_KEY_SYSTEM]&&t.keySystems[PLAYREADY_KEY_SYSTEM].pssh&&(s=t.keySystems[PLAYREADY_KEY_SYSTEM].pssh),s&&(e.push({playready:!0,initData:s}),msPrefixed({video:r.target,initData:s,options:t,eventBus:n}))}},getOptions=function(r){return videojs.mergeOptions(r.currentSource(),r.eme.options)},setupSessions=function(r){var t=r.src();t!==r.eme.activeSrc&&(r.eme.activeSrc=t,r.eme.sessions=[])},onPlayerReady=function(r){r.$(".vjs-tech").tagName.toLowerCase()==="video"&&r.tech_&&(setupSessions(r),r.tech_.el_.addEventListener("encrypted",function(t){if(r.currentSource().keySystems&&r.currentSource().keySystems["com.widevine.alpha"]&&r.currentSource().type==="application/dash+xml")return!1;setupSessions(r),handleEncryptedEvent(t,getOptions(r),r.eme.sessions,r.tech_)}),r.tech_.el_.addEventListener("webkitneedkey",function(t){setupSessions(r),handleWebKitNeedKeyEvent(t,getOptions(r),r.tech_)}),videojs.browser.IS_EDGE||r.tech_.el_.addEventListener("msneedkey",function(t){setupSessions(r),handleMsNeedKeyEvent(t,getOptions(r),r.eme.sessions,r.tech_)}))},DRM=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return s.options=n,e.ready(function(){return onPlayerReady(e)}),e.eme={initializeMediaKeys:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},u=videojs.mergeOptions(e.currentSource(),n,a),c={initDataType:"cenc",initData:null,target:e.tech_.el_};setupSessions(e),e.tech_.el_.setMediaKeys?handleEncryptedEvent(c,u,e.eme.sessions,e.tech_).then(function(){return l()}).catch(function(h){return l(h)}):e.tech_.el_.msSetMediaKeys&&(handleMsNeedKeyEvent(c,u,e.eme.sessions,e.tech_),l())},options:n},s}return inherits(t,r),t.prototype.setOptions=function(e){this.options=e,this.player.options_.plugins.DRM=e},t}(Plugin$17),registerPlugin$2=videojs.registerPlugin||videojs.plugin;registerPlugin$2("DRM",DRM);var Plugin$18=videojs.getPlugin("plugin"),PDT=function(r){function t(e){classCallCheck(this,t);var n=possibleConstructorReturn(this,r.call(this,e));return e.plugins=e.plugins||{},e.plugins.pdt=!0,n}return inherits(t,r),t}(Plugin$18);videojs.registerPlugin("PDT",PDT);var Plugin$19=videojs.getPlugin("plugin"),dom$2=videojs.dom;if(!window.requestAnimationFrame){var lastTime=0;window.requestAnimationFrame=function(r){var t=new Date().getTime(),e=Math.max(0,16.7-(t-lastTime)),n=window.setTimeout(function(){r(t+e)},e);return lastTime=t+e,n}}window.cancelAnimationFrame||(window.cancelAnimationFrame=function(r){clearTimeout(r)});var DynamicWatermark=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return s.options=n||{},s.options.content&&s.init(),s}return inherits(t,r),t.prototype.dispose=function(){this.stopAnimation(),this.player.$(".tcp-dynamic-watermark-container")&&this.player.el().removeChild(this.containerElement),r.prototype.dispose.call(this)},t.prototype.init=function(){var e=this,n=this.player;this.isFirstShow=!0,this.initUI(),this.initStyle(),this.initSpeed(),n.on("loadedmetadata",function(){e.calculateStyle(),e.setStyle(),dom$2.removeClass(e.containerElement,"vjs-hidden")}),n.one("play",function(){e.encModule=new Enc,e.ghostCycle=e.encModule.calculateGhost(e.player.duration()),e.startAnimation()}),n.on(["fullscreenchange","playerresize"],function(){setTimeout(function(){e.calculateStyle()},200)})},t.prototype.initUI=function(){var e=this.player,n=dom$2.createEl("div",{className:"tcp-dynamic-watermark-container vjs-hidden"}),s=dom$2.createEl("div",{innerHTML:encodeHTML(this.options.content),className:"tcp-dynamic-watermark-content"});if(n.appendChild(s),this.options.keep||e.el().appendChild(n),this.containerElement=n,this.markContentElement=s,this.options.type==="image"){var a=document.createElement("img");this.options.width&&(a.style.width=this.options.width),this.options.height&&(a.style.height=this.options.height),a.setAttribute("src",this.options.content),this.markContentElement.innerHTML="",this.markContentElement.appendChild(a)}},t.prototype.initStyle=function(){this.style={containerWidth:"",containerHeight:"",containerLeft:"",containerTop:"",contentLeft:80*Math.random(),contentTop:80*Math.random(),margin:0,padding:0,display:"block",visibility:"visible",opacity:.5,position:"absolute",color:"rgba(255, 255, 255)"}},t.prototype.initSpeed=function(){this.speed=this.options.keep&&this.options.speed===0?.2:this.options.speed},t.prototype.calculateStyle=function(){var e=this.player,n=this.style,s=e.videoWidth(),a=e.videoHeight(),l=dom$2.getBoundingClientRect(e.el()),u=l.width,c=l.height,h=(u/c).toFixed(2),p=(s/a).toFixed(2),g=void 0,v=void 0;p<h?(v=c,g=v*p):p>h?(g=u,v=g/p):p==h&&(g=u,v=c),n.containerLeft=(u-g)/2/u*100,n.containerTop=(c-v)/2/c*100,n.containerWidth=g/u*100,n.containerHeight=v/c*100},t.prototype.setStyle=function(){var e=this.containerElement,n=this.markContentElement,s=this.style;e.style.left=s.containerLeft+"%",e.style.top=s.containerTop+"%",e.style.width=s.containerWidth+"%",e.style.height=s.containerHeight+"%",e.style.display=n.style.display=s.display,e.style.visibility=n.style.visibility=s.visibility,e.style.opacity=n.style.opacity=s.opacity,e.style.position=n.style.position=s.position,e.style.margin=n.style.margin=s.margin,e.style.padding=n.style.padding=s.padding,n.style.left=this.options.left||s.contentLeft+"%",n.style.top=this.options.top||s.contentTop+"%",this.options.right&&(n.style.right=this.options.right),this.options.bottom&&(n.style.bottom=this.options.bottom),n.style.color=this.options.color||s.color,this.options.keep||(e.style.opacity=n.style.opacity=this.options.opacity||s.opacity),this.options.type==="text"&&(n.style.fontSize=this.options.fontSize||"12px",n.innerHTML=encodeHTML(this.options.content))},t.prototype.setContent=function(e){this.options.content=e},t.prototype.startAnimation=function(){var e=this;if(!this.rafID){var n=(this.player,this.style),s=this.containerElement,a=this.markContentElement,l=1,u=1,c=Math.random(),h=function p(){try{if(!e.isPauseAnimation){var g=Math.min(1,e.speed===0?0:e.speed?e.speed:.2),v=dom$2.getBoundingClientRect(s),y=dom$2.getBoundingClientRect(a),_=y.left-v.left,b=y.top-v.top;_+=g*l*c,b+=g*u*(1-c),_+y.width>v.width?(l=-1,c=Math.random()):_<0&&(l=1,c=Math.random()),b+y.height>v.height?(u=-1,c=Math.random()):b<0&&(u=1,c=Math.random()),_=Math.min(v.width-y.width,_),b=Math.min(v.height-y.height,b),n.contentLeft=_/v.width*100,n.contentTop=b/v.height*100,e.setStyle(),e.player&&e.encModule.removeWaterMark(e)}}catch{e.player&&e.encModule.handleWatermarkElementAdd(e)}if(e.isStopAnimation)return e.isStopAnimation=!1,cancelAnimationFrame(e.rafID),void(e.rafID=null);e.speed!==0&&requestAnimationFrame(p)};this.rafID=requestAnimationFrame(h)}},t.prototype.resumeAnimation=function(){this.isPauseAnimation=!1},t.prototype.pauseAnimation=function(){this.isPauseAnimation=!0},t.prototype.stopAnimation=function(){this.isStopAnimation=!0},t}(Plugin$19);videojs.registerPlugin("DynamicWatermark",DynamicWatermark);var Plugin$20=videojs.getPlugin("plugin"),XP2PHlsjsPlugin=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return s.options=n,s.hlsp2p=null,s}return inherits(t,r),t.prototype.startHLSP2P=function(e,n,s){var a=this,l=this.player.tech_,u=l.options_,c=u.xp2pConfig;if(n.isSupported()&&!window.hlsp2p){for(var h=["videoType","xp2pPackage","xp2pAppId","tencentCloudAppId"],v=h,p=Array.isArray(v),g=0,v=p?v:v[Symbol.iterator]();;){var y;if(p){if(g>=v.length)break;y=v[g++]}else{if(g=v.next(),g.done)break;y=g.value}var _=y;if(c[_]===void 0)return}var b={videoId:u.playerId+"_html5_api",url:u.source.src,videoType:c.videoType,cloudAppId:c.tencentCloudAppId,domain:c.xp2pPackage,xp2pAppId:c.xp2pAppId,p2pStartDelay:1e3},C=HLSP2P.create(e,Object.assign(b,c));C.on(HLSP2P.Events.Rollback,function(I){a.destroy(),s&&s(I)}),this.hlsp2p=C}},t.prototype.destroy=function(){this.hlsp2p&&(this.hlsp2p.destroy(),this.hlsp2p=null,window.hlsp2p=void 0)},t.prototype.dispose=function(){this.destroy()},t}(Plugin$20);videojs.registerPlugin("XP2PHlsjsPlugin",XP2PHlsjsPlugin);var Plugin$21=videojs.getPlugin("plugin"),XP2PFlvjsPlugin=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e));return s.options=n,s}return inherits(t,r),t.prototype.createLoader=function(e,n,s){var a=this.player.tech();return function(l){function u(c,h){classCallCheck(this,u);var p=possibleConstructorReturn(this,l.call(this));return p._qvbp2p=null,p._receivedLength=0,p._config=h,p}return inherits(u,l),u.isSupported=function(){return n&&n.isSupported()},u.prototype.destroy=function(){this._destroyQVBP2P(),l.prototype.destroy.call(this)},u.prototype.open=function(c){this._createQVBP2P(),this._qvbp2p.on(n.ComEvents.STATE_CHANGE,this._onQVBP2PStateChange.bind(this)),this._qvbp2p.setMediaElement(a.el());var h={src:c.url};this._qvbp2p.loadSource(h)},u.prototype.abort=function(){this._destroyQVBP2P()},u.prototype._onQVBP2PStateChange=function(c,h){var p=n.ComCodes;switch(h.code){case p.RECEIVE_BUFFER:this._receiveBuffer(h.payload);break;case p.ROLLBACK:this._rollback(h)}},u.prototype._receiveBuffer=function(c){var h=this._receivedLength;this._receivedLength+=c.byteLength,this._onDataArrival&&this._onDataArrival(c,h,this._receivedLength)},u.prototype._rollback=function(c){s&&s(c)},u.prototype._createQVBP2P=function(){this._qvbp2p&&this._destroyQVBP2P(),this._qvbp2p=n.create(this._config.xp2pConfig),window.qvbp2p=this._qvbp2p},u.prototype._destroyQVBP2P=function(){this._qvbp2p&&(this._qvbp2p.destroy(),this._qvbp2p=null,window.qvbp2p=null)},u}(e.BaseLoader)},t}(Plugin$21);videojs.registerPlugin("XP2PFlvjsPlugin",XP2PFlvjsPlugin);var defaultConfig$1={enableStashBuffer:!1},Html5FlvJS=function(){function r(t,e,n){var s=this;classCallCheck(this,r);var a=function(){var l=window.flvjs;s.flvjs=l;var u=videojs.mergeOptions(defaultConfig$1,n.flvConfig,{xp2pConfig:n.xp2pConfig}),c=e.player();if(window.QVBP2P&&n.xp2pConfig&&n.xp2pConfig.useXP2P&&c.XP2PFlvjsPlugin){var h=c.XP2PFlvjsPlugin().createLoader(l,window.QVBP2P,function(v){s.dispose(),n.xp2pConfig.useXP2P=!1;var y=s.tech.player(),_=s.tech.currentSource_.src;y.src(_)});s.xp2pFlvLoader=h,u.customLoader=h}var p=new l.createPlayer(Object.assign({isLive:!1,url:t.src,type:"flv"},u),u);s.tech=e,p.on(l.Events.ERROR,videojs.bind(s,s.onError));for(var g in l.Events)(function(v){p.on(l.Events[v],videojs.bind(s,function(y){this.onEvent(v,y)}))})(g);c.trigger({type:"flvInstanceCreated",data:{flv:p}}),p.on(l.Events.STATISTICS_INFO,function(v){var y=(v.bps_audio||0)+(v.bps_video||0);c.trigger({type:"playstatus",data:{type:"flv",decodedFrames:v.decodedFrames,droppedFrames:v.droppedFrames,speed:v.speed.toFixed(0),bitrate:y||0,bpsAudio:v.bps_audio||0,bpsVideo:v.bps_video||0}})}),s.flv=p,s._id=new Date().getTime(),e.el().srcObject&&(e.el().srcObject=null),p.attachMediaElement(e.el()),p.load()};Promise.all([function(){return n.xp2pConfig&&n.xp2pConfig.useXP2P&&n.xp2pConfig.format==="flv"&&!window.QVBP2P?new Promise(function(l){loadScript(XP2P_FLV_PATH,function(){l()})}):Promise.resolve()}(),function(){return window.flvjs?Promise.resolve():new Promise(function(l){loadScript(FLV_PATH,function(){l()})})}()]).then(function(){a()})}return r.prototype.onError=function(t,e,n){var s=this.tech.player();t===this.flvjs.ErrorTypes.NETWORK_ERROR&&s.error({code:2,source:n}),t===this.flvjs.ErrorTypes.MEDIA_ERROR&&s.error({code:3,source:n})},r.prototype.onEvent=function(t,e){this.tech.player().trigger({type:"FLVJS_EVENT",data:{type:t,data:e}})},r.prototype.dispose=function(){if(this.tech.player().pause(),this.tech.flvProvider)try{this.flv.destroy()}catch{}this.tech.flvProvider=null},r}(),flvTypeRE=/^video\/flv$/i,flvExtRE=/.flv(?![^?])/i,flvProtoRE=/^(ws:\/\/)/i,FlvSourceHandler={name:"flvSourceHandler",canHandleSource:function(r){return flvTypeRE.test(r.type)?"probably":flvExtRE.test(r.src)||flvProtoRE.test(r.src)?"maybe":""},handleSource:function(r,t,e){return t.flvProvider&&t.flvProvider.dispose(),t.flvProvider=new Html5FlvJS(r,t,e),t.flvProvider},canPlayType:function(r){if(flvTypeRE.test(r))return"probably"}};TCPlayer.mountFlvProvider=mountFlvProvider,mountFlvProvider();var defaultConfig$2={connectRetryCount:2,connectTimeout:5,receiveVideo:!0,receiveAudio:!0,showLog:!1},WebRTCProvider=function(){function r(t,e,n){var s=this;classCallCheck(this,r);var a=function(){s.tech=e,s.player=s.tech.player(),s.playerMetrics=s.player.PlayerMetrics(),s.report=s.player.options_.reportable;var l=window.TXLivePlayer;s.TXLivePlayer=l;var u=videojs.mergeOptions(defaultConfig$2,n.webrtcConfig);n.xp2pConfig&&n.xp2pConfig.format==="webrtc"&&n.xp2pConfig.useXP2P&&Object.assign(u,{p2pEnable:n.xp2pConfig.useXP2P,p2pConfig:{cloudAppid:n.xp2pConfig.tencentCloudAppId,xp2pAppid:n.xp2pConfig.xp2pAppId,appKey:n.xp2pConfig.xp2pAppKey,xp2pDomain:n.xp2pConfig.xp2pPackage}});var c=new l;s.webrtcConfig=u,c.setPlayerView(e.el()),c.setConfig(u),c.setPlayListener({onPlayEvent:videojs.bind(s,s.onPlayEvent),onPlayStats:videojs.bind(s,s.onPlayStats),onPlayReport:videojs.bind(s,s.onPlayReport),onPlaySEI:videojs.bind(s,s.onPlaySEI)}),c.startPlay(t.src),s.player.trigger({type:"webrtcInstanceCreated",data:{webrtc:c}}),s.webrtcPlayer=c};window.TXLivePlayer?a():loadScript(WEBRTC_PATH,function(){a()})}return r.prototype.onPlayStats=function(t){this.tech.player().trigger({type:"webrtcstats",data:t})},r.prototype.onPlayEvent=function(t,e){var n=this.tech.player();if(n.trigger({type:"debug",data:{code:t,data:e}}),t<-2e3){if(t===-2003&&e&&e.videoActive&&(n.trigger("blocked"),n.trigger({type:"webrtcevent",data:{code:2005}})),t===-2003)return!1;if(t===-2005||t===-2001||t===-2004){n.trigger({type:"debug",data:{message:"debug === webrtc 状态码 "+t+",进入降级逻辑"}});var s=n.options_.webrtcConfig;if(!s||s.fallback!==!1)return this.switchPlaySource(),!1}return n.error({code:t,source:e}),!1}n.trigger({type:"webrtcevent",data:{code:t,data:e}})},r.prototype.onPlayReport=function(t){if(this.report===!1)return!1;t.uint32_command===40101&&(this.tech.player().trigger({type:"debug",data:{code:"report",data:t}}),this.playerMetrics.report_40101(t)),t.uint32_command===40100&&this.playerMetrics.report_40100(t),t.uint32_command===40102&&this.playerMetrics.report_40102(t)},r.prototype.onPlaySEI=function(t){this.tech.player().trigger({type:"webrtcsei",data:t})},r.prototype.dispose=function(){this.webrtcPlayer&&(this.webrtcPlayer.setPlayListener({onPlayEvent:function(){},onPlayStats:function(){}}),this.webrtcPlayer.stopPlay(),this.webrtcPlayer.setPlayerView(videojs.dom.createEl("video"))),this.webrtcPlayer=null},r.prototype.setSource=function(t){var e=this;this.webrtcPlayer.startPlay(t.src),this.tech.player().one("webrtcevent",function(n){n.data.code===-1002&&e.tech.player().play()})},r.prototype.recovery=function(){var t=this,e=this.tech.player(),n=void 0;e.one("waiting",function(){n=setTimeout(function(){e.one("webrtcevent",function(s){if(s.data.code===1004){t.webrtcPlayer&&t.webrtcPlayer.startPlay(e.src()),e.play();var a=function l(u){u.data.code===1002&&(e.play(),e.off("webrtcevent",l))};e.on("webrtcevent",a)}}),t.webrtcPlayer&&t.webrtcPlayer.stopPlay()},2e3)}),e.one("playing",function(){n&&clearTimeout(n)})},r.prototype.switchPlaySource=function(){var t=this.tech.player(),e=void 0,n=this.tech.currentSource_.src;e=this.webrtcConfig&&this.webrtcConfig.fallbackUrl?[{src:this.webrtcConfig.fallbackUrl}]:this.convertProtocol(n),t.trigger({type:"webrtcfallback",data:{target:e[0].src}}),t.bigPlayButton&&t.bigPlayButton.hide(),t.posterImage&&t.posterImage.hide();var s=[];t.options_.hlsConfig&&t.options_.hlsConfig.skipHlsJs?e.forEach(function(u){u.src?s.push({src:u.src,skipHlsJs:!0}):s.push({src:u,skipHlsJs:!0})}):s=[].concat(e),t.src(s);var a=videojs.browser.IS_IOS||videojs.browser.IS_ANDROID?"loadeddata":"loadedmetadata",l=function u(){t.play(),t.one("progress",function(){t.play(),t.off(a,u)})};t.on(a,l)},r.prototype.convertProtocol=function(t){var e=[];if(t.indexOf(".sdp")>-1)t=t.replace(".sdp",".flv"),e.push(t.replace(".sdp",".m3u8"));else{var n=t.replace("webrtc://","https://").replace("?",".flv?");n.indexOf("?")===-1&&n.indexOf(".flv")===-1&&(n+=".flv");var s=t.replace("webrtc://","https://").replace("?",".m3u8?");s.indexOf("?")===-1&&s.indexOf(".m3u8")===-1&&(s+=".m3u8"),e.push(s)}return e},r}(),webrtcTypeRE=/^webrtc/i,webrtcExtRE=/\.sdp/i,webrtcProtoRE=/^(webrtc:\/\/)/i,sourceHandler={name:"webrtcSourceHandler",canHandleSource:function(r){return webrtcTypeRE.test(r.type)?"probably":webrtcExtRE.test(r.src)||webrtcProtoRE.test(r.src)?"maybe":""},handleSource:function(r,t,e){return t.webrtcProvider&&t.webrtcProvider.dispose(),t.webrtcProvider=new WebRTCProvider(r,t,e),t.webrtcProvider},canPlayType:function(r){if(webrtcTypeRE.test(r))return"probably"}};mountWebRTCProvider();for(var Tech$2=videojs.getComponent("Tech"),Dom$1=videojs.dom,Url$1=videojs.url,createTimeRange=videojs.createTimeRange,mergeOptions$1=videojs.mergeOptions,navigator$2=window_1&&window_1.navigator||{},Flash=function(r){function t(e,n,s){classCallCheck(this,t);var a=possibleConstructorReturn(this,r.call(this,e,n,s));return n.source&&a.ready(function(){this.setSource(n.source)},!0),n.startTime&&a.ready(function(){this.load(),this.play(),this.currentTime(n.startTime)},!0),window_1.videojs=window_1.videojs||{},window_1.videojs.Flash=window_1.videojs.Flash||{},window_1.videojs.Flash.onReady=t.onReady,window_1.videojs.Flash.onEvent=t.onEvent,window_1.videojs.Flash.onError=t.onError,a.on("seeked",function(){this.lastSeekTarget_=void 0}),a}return inherits(t,r),t.prototype.createEl=function(){var e=this.options_;e.swf||(e.swf=unifyProtocol("//imgcache.qq.com/open/qcloud/video/tcplayer/player.swf"));var n=e.techId,s=mergeOptions$1({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:e.autoplay,preload:e.preload,loop:e.loop,muted:e.muted},e.flashVars),a=mergeOptions$1({wmode:"opaque",bgcolor:"#000000"},e.params),l=mergeOptions$1({id:n,name:n,class:"vjs-tech"},e.attributes);return this.el_=t.embed(e.swf,s,a,l),this.el_.tech=this,this.el_},t.prototype.play=function(){this.ended()&&this.setCurrentTime(0),this.el_.vjs_play()},t.prototype.pause=function(){this.el_.vjs_pause()},t.prototype.src=function(e){return e===void 0?this.currentSrc():this.setSrc(e)},t.prototype.setSrc=function(e){var n=this;e=Url$1.getAbsoluteURL(e),this.el_.vjs_src(e),this.autoplay()&&this.setTimeout(function(){return n.play()},0)},t.prototype.seeking=function(){return this.lastSeekTarget_!==void 0},t.prototype.setCurrentTime=function(e){var n=this.seekable();n.length&&(e=e>n.start(0)?e:n.start(0),e=e<n.end(n.length-1)?e:n.end(n.length-1),this.lastSeekTarget_=e,this.trigger("seeking"),this.el_.vjs_setProperty("currentTime",e),r.prototype.setCurrentTime.call(this))},t.prototype.currentTime=function(){return this.seeking()?this.lastSeekTarget_||0:this.el_.vjs_getProperty("currentTime")},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.vjs_getProperty("currentSrc")},t.prototype.duration=function(){if(this.readyState()===0)return NaN;var e=this.el_.vjs_getProperty("duration");return e>=0?e:1/0},t.prototype.load=function(){this.el_.vjs_load()},t.prototype.poster=function(){this.el_.vjs_getProperty("poster")},t.prototype.setPoster=function(){},t.prototype.seekable=function(){var e=this.duration();return e===0?createTimeRange():createTimeRange(0,e)},t.prototype.buffered=function(){var e=this.el_.vjs_getProperty("buffered");return e.length===0?createTimeRange():createTimeRange(e[0][0],e[0][1])},t.prototype.supportsFullScreen=function(){return!1},t.prototype.enterFullScreen=function(){return!1},t.prototype.getVideoPlaybackQuality=function(){var e=this.el_.vjs_getProperty("getVideoPlaybackQuality");return window_1.performance&&typeof window_1.performance.now=="function"?e.creationTime=window_1.performance.now():window_1.performance&&window_1.performance.timing&&typeof window_1.performance.timing.navigationStart=="number"&&(e.creationTime=window_1.Date.now()-window_1.performance.timing.navigationStart),e},t}(Tech$2),_readWrite=["rtmpConnection","rtmpStream","preload","defaultPlaybackRate","playbackRate","autoplay","loop","controls","volume","muted","defaultMuted"],_readOnly=["networkState","readyState","initialTime","startOffsetTime","paused","ended","videoWidth","videoHeight"],_api=Flash.prototype,i$2=0;i$2<_readWrite.length;i$2++)_createGetter(_readWrite[i$2]),_createSetter(_readWrite[i$2]);for(var _i$1=0;_i$1<_readOnly.length;_i$1++)_createGetter(_readOnly[_i$1]);Flash.isSupported=function(){return Flash.version()[0]>=10},Tech$2.withSourceHandlers(Flash),Flash.nativeSourceHandler={},Flash.nativeSourceHandler.canPlayType=function(r){return r in Flash.formats?"maybe":""},Flash.nativeSourceHandler.canHandleSource=function(r,t){var e=void 0;return e=r.type?r.type.replace(/;.*/,"").toLowerCase():function(n){var s=Url$1.getFileExtension(n);return s?"video/"+s:""}(r.src),Flash.nativeSourceHandler.canPlayType(e)},Flash.nativeSourceHandler.handleSource=function(r,t,e){t.setSrc(r.src)},Flash.nativeSourceHandler.dispose=function(){},Flash.registerSourceHandler(Flash.nativeSourceHandler),Flash.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},Flash.onReady=function(r){var t=Dom$1.$("#"+r),e=t&&t.tech;e&&e.el()&&Flash.checkReady(e)},Flash.checkReady=function(r){r.el()&&(r.el().vjs_getProperty?r.triggerReady():this.setTimeout(function(){Flash.checkReady(r)},50))},Flash.onEvent=function(r,t){var e=Dom$1.$("#"+r).tech,n=Array.prototype.slice.call(arguments,2);e.setTimeout(function(){e.trigger(t,n)},1)},Flash.onError=function(r,t){var e=Dom$1.$("#"+r).tech;if(t==="srcnotfound")return e.error(4);e.error("FLASH: "+t)},Flash.version=function(){var r="0,0,0";try{r=new window_1.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch{try{navigator$2.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(r=(navigator$2.plugins["Shockwave Flash 2.0"]||navigator$2.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch{}}return r.split(",")},Flash.embed=function(r,t,e,n){var s=Flash.getEmbedCode(r,t,e,n);return Dom$1.createEl("div",{innerHTML:s}).childNodes[0]},Flash.getEmbedCode=function(r,t,e,n){var s="",a="",l="";return t&&Object.getOwnPropertyNames(t).forEach(function(u){s+=u+"="+t[u]+"&"}),e=mergeOptions$1({movie:r,flashvars:s,allowScriptAccess:"always",allowNetworking:"all"},e),Object.getOwnPropertyNames(e).forEach(function(u){a+='<param name="'+u+'" value="'+e[u]+'" />'}),n=mergeOptions$1({data:r,width:"100%",height:"100%"},n),Object.getOwnPropertyNames(n).forEach(function(u){l+=u+'="'+n[u]+'" '}),'<object type="application/x-shockwave-flash" '+l+">"+a+"</object>"},FlashRtmpDecorator(Flash),Tech$2.getTech("Flash")?(videojs.log.warn("Not using videojs-flash as it appears to already be registered"),videojs.log.warn("videojs-flash should only be used with video.js@6 and above")):videojs.registerTech("Flash",Flash);var FlashlsSourceHandler={},mpegurlRE$1=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i;FlashlsSourceHandler.canPlayType=function(r){return mpegurlRE$1.test(r)?"maybe":""},FlashlsSourceHandler.canHandleSource=function(r,t){return FlashlsSourceHandler.canPlayType(r.type)==="maybe"},FlashlsSourceHandler.handleSource=function(r,t,e){t.setSrc(r.src)},FlashlsSourceHandler.dispose=function(){},videojs.getTech("Flash").registerSourceHandler(FlashlsSourceHandler,0),FlashlsSourceHandler.VERSION="__VERSION__";var Play="播放",Pause="暂停",LIVE="直播",Loaded="加载完毕",Progress="进度",Fullscreen="全屏",Mute="静音",Unmute="取消静音",Subtitles="字幕",Captions="内嵌字幕",Chapters="节目段落",Descriptions="描述",Close="关闭",Replay="重播",Text="文字",White="白",Black="黑",Red="红",Green="绿",Blue="蓝",Yellow="黄",Magenta="紫红",Cyan="青",Background="背景",Window="视窗",Transparent="透明",Opaque="不透明",None="无",Raised="浮雕",Depressed="压低",Uniform="均匀",Dropshadow="下阴影",Casual="舒适",Script="手写体",Reset="重启",Done="完成",auto="自动",Mirror="镜像",CN={Play,Pause,LIVE,Loaded,Progress,Fullscreen,Mute,Unmute,Subtitles,Captions,Chapters,Descriptions,Close,Replay,Text,White,Black,Red,Green,Blue,Yellow,Magenta,Cyan,Background,Window,Transparent,Opaque,None,Raised,Depressed,Uniform,Dropshadow,Casual,Script,Reset,Done,auto,Mirror,"Current Time":"当前时间","Duration Time":"时长","Remaining Time":"剩余时间","Stream Type":"媒体流类型","Non-Fullscreen":"退出全屏","Playback Rate":"播放速度","subtitles off":"关闭字幕","captions off":"关闭内嵌字幕","Close Modal Dialog":"关闭弹窗","descriptions off":"关闭描述","Audio Track":"音轨","You aborted the media playback":"视频播放被终止","A network error caused the media download to fail part-way.":"网络错误导致视频下载中途失败。","The media could not be loaded, either because the server or network failed or because the format is not supported.":"视频因格式不支持或者服务器或网络的问题无法加载。","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"由于视频文件损坏或是该视频使用了你的浏览器不支持的功能,播放终止。","No compatible source was found for this media.":"无法找到此视频兼容的源或者当前环境无法播放该视频。","The media is encrypted and we do not have the keys to decrypt it.":"视频已加密,无法解密。","Play Video":"播放视频","Modal Window":"弹窗","This is a modal window":"这是一个弹窗","This modal can be closed by pressing the Escape key or activating the close button.":"可以按ESC按键或启用关闭按钮来关闭此弹窗。",", opens captions settings dialog":", 开启标题设置弹窗",", opens subtitles settings dialog":", 开启字幕设置弹窗",", opens descriptions settings dialog":", 开启描述设置弹窗",", selected":", 选择","captions settings":"字幕设定","Audio Player":"音频播放器","Video Player":"视频播放器","Progress Bar":"进度小节","Volume Level":"音量","subtitles settings":"字幕设定","descriptions settings":"描述设定","Semi-Transparent":"半透明","Font Size":"字体尺寸","Text Edge Style":"字体边缘样式","Font Family":"字体库","Proportional Sans-Serif":"比例无细体","Monospace Sans-Serif":"单间隔无细体","Proportional Serif":"比例细体","Monospace Serif":"单间隔细体","Small Caps":"小型大写字体","restore all settings to the default values":"恢复全部设定至预设值","Caption Settings Dialog":"字幕设定视窗","Beginning of dialog window. Escape will cancel and close the window.":"开始对话视窗。离开会取消及关闭视窗","End of dialog window.":"结束对话视窗","Request timed out.":"请求超时,请稍后再试。","Could not download the video.":"无法加载视频,请检查网络。","Server is not respond.":"服务器请求失败,请稍后再试。","Server respond error data.":"服务器返回数据有误,请稍后再试。","Last time play at ":"上次看到 ","Resume play":"恢复播放","Powered by Tencent Cloud.":"腾讯云提供技术支持","Rise an internal exception when playing HLS.":"播放 HLS 时出现内部异常。","Authentication failed.":"防盗链参数鉴权失败。","Server failed.":"媒体服务器错误。","Get file error.":"媒体服务器获取文件错误。","The media file does not exist. Please check if the fileID is correct.":"媒体文件不存在,请检查 fileID 是否正确。","No video transcoding information found.":"没有找到视频转码信息。","Current browser not support DRM.":"浏览器不支持当前 DRM 方案。","The trial duration is illegal. The trial duration must be within the video duration.":"试看时长不合法,试看时长要在视频时长范围内。","Param pcfg is not unique.":"pcfg 不唯一。","The license has expired. Please check whether the expiration time setting is reasonable.":"license 过期,请检查过期时间设置是否合理。","Did not find an adaptive stream that can be played.":"没有找到可以播放的自适应码流,<a href='https://cloud.tencent.com/document/product/266/34071' style='color: white;' target='_blank'>查看文档</a>。","Invalid request format, please check the request format.":"请求格式不合法,请检查请求格式。","AppID is not exist, Please check if the AppID is correct.":"AppID 不存在,请检查 AppID 是否正确。","Without anti-leech information.":"没带防盗链检测。","qsign invalid.":"播放参数 qsign 校验失败","psign check failed.":"播放参数 psign 校验失败,<a href='https://cloud.tencent.com/document/product/266/45554' style='color: white' target='_blank'>查看文档</a>。","Other errors.":"其他错误。","Internal error.":"内部错误。","Response data verification failed.":"响应数据校验失败","Video statistic":"视频统计信息","Play Next":"下一个","Current browser not support play this stream, please select another one.":"无法找到此视频兼容的源或者当前环境无法播放该视频,请选择其他视频播放。","Server respond error data.(eg. stream not exist)":"媒体服务器获取数据异常,可能该视频不存在,请选择其他视频播放。","Video play failed, please refresh to start play again.":"视频播放器失败,请刷新并重新播放。","Connection to the server has failed and the number of connection retries has exceeded the set value.":"媒体服务器连接异常,并达到最大重试次数,请检查网络是否正常并刷新重试","Video decoding failure.":"视频解码失败,请选择其他视频播放。"},log=videojs.log;if(Function.prototype.bind&&(typeof console>"u"?"undefined":_typeof(console))=="object"&&_typeof(console.log)=="object")for(var logFns=["log","info","warn","error","assert","dir","clear","profile","profileEnd"],i=0;i<logFns.length;i++){var method=logFns[i];console[method]=Function.prototype.call.bind(console[method],console)}return videojs.addLanguage("zh-CN",CN),Object.keys(videojs).forEach(function(r){TCPlayer[r]=videojs[r]}),TCPlayer})})(tcplayer_v4_9_1_min$2);var tcplayer_v4_9_1_minExports=tcplayer_v4_9_1_min$2.exports;const tcplayer_v4_9_1_min=getDefaultExportFromCjs(tcplayer_v4_9_1_minExports),tcplayer_v4_9_1_min$1=_mergeNamespaces({__proto__:null,default:tcplayer_v4_9_1_min},[tcplayer_v4_9_1_minExports]);var hammer$2={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
72
88
|
* http://hammerjs.github.io/
|
|
73
89
|
*
|
|
74
90
|
* Copyright (c) 2016 Jorik Tangelder;
|
|
75
|
-
* Licensed under the MIT license */(function(r){(function(t,e,n,s){var a=["","webkit","Moz","MS","ms","o"],l=e.createElement("div"),u="function",c=Math.round,h=Math.abs,p=Date.now;function
|
|
91
|
+
* Licensed under the MIT license */(function(r){(function(t,e,n,s){var a=["","webkit","Moz","MS","ms","o"],l=e.createElement("div"),u="function",c=Math.round,h=Math.abs,p=Date.now;function g(S,A,R){return setTimeout(x(S,R),A)}function v(S,A,R){return Array.isArray(S)?(y(S,R[A],R),!0):!1}function y(S,A,R){var Z;if(S)if(S.forEach)S.forEach(A,R);else if(S.length!==s)for(Z=0;Z<S.length;)A.call(R,S[Z],Z,S),Z++;else for(Z in S)S.hasOwnProperty(Z)&&A.call(R,S[Z],Z,S)}function _(S,A,R){var Z="DEPRECATED METHOD: "+A+`
|
|
76
92
|
`+R+` AT
|
|
77
|
-
`;return function(){var H=new Error("get-stack-trace"),G=H&&H.stack?H.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Y=t.console&&(t.console.warn||t.console.log);return Y&&Y.call(t.console,O,G),E.apply(this,arguments)}}var v;typeof Object.assign!="function"?v=function(C){if(C===s||C===null)throw new TypeError("Cannot convert undefined or null to object");for(var R=Object(C),O=1;O<arguments.length;O++){var H=arguments[O];if(H!==s&&H!==null)for(var G in H)H.hasOwnProperty(G)&&(R[G]=H[G])}return R}:v=Object.assign;var _=g(function(C,R,O){for(var H=Object.keys(R),G=0;G<H.length;)(!O||O&&C[H[G]]===s)&&(C[H[G]]=R[H[G]]),G++;return C},"extend","Use `assign`."),I=g(function(C,R){return _(C,R,!0)},"merge","Use `assign`.");function P(E,C,R){var O=C.prototype,H;H=E.prototype=Object.create(O),H.constructor=E,H._super=O,R&&v(H,R)}function A(E,C){return function(){return E.apply(C,arguments)}}function x(E,C){return typeof E==u?E.apply(C&&C[0]||s,C):E}function k(E,C){return E===s?C:E}function d(E,C,R){f(D(C),function(O){E.addEventListener(O,R,!1)})}function y(E,C,R){f(D(C),function(O){E.removeEventListener(O,R,!1)})}function S(E,C){for(;E;){if(E==C)return!0;E=E.parentNode}return!1}function w(E,C){return E.indexOf(C)>-1}function D(E){return E.trim().split(/\s+/g)}function M(E,C,R){if(E.indexOf&&!R)return E.indexOf(C);for(var O=0;O<E.length;){if(R&&E[O][R]==C||!R&&E[O]===C)return O;O++}return-1}function j(E){return Array.prototype.slice.call(E,0)}function V(E,C,R){for(var O=[],H=[],G=0;G<E.length;){var Y=C?E[G][C]:E[G];M(H,Y)<0&&O.push(E[G]),H[G]=Y,G++}return R&&(C?O=O.sort(function(ee,re){return ee[C]>re[C]}):O=O.sort()),O}function K(E,C){for(var R,O,H=C[0].toUpperCase()+C.slice(1),G=0;G<a.length;){if(R=a[G],O=R?R+H:C,O in E)return O;G++}return s}var W=1;function ie(){return W++}function z(E){var C=E.ownerDocument||E;return C.defaultView||C.parentWindow||t}var L=/mobile|tablet|ip(ad|hone|od)|android/i,B="ontouchstart"in t,U=K(t,"PointerEvent")!==s,F=B&&L.test(navigator.userAgent),N="touch",q="pen",Q="mouse",te="kinect",me=25,X=1,ne=2,J=4,oe=8,Ie=1,Te=2,be=4,Ee=8,Se=16,ue=Te|be,ye=Ee|Se,Qe=ue|ye,Ye=["x","y"],Re=["clientX","clientY"];function se(E,C){var R=this;this.manager=E,this.callback=C,this.element=E.element,this.target=E.options.inputTarget,this.domHandler=function(O){x(E.options.enable,[E])&&R.handler(O)},this.init()}se.prototype={handler:function(){},init:function(){this.evEl&&d(this.element,this.evEl,this.domHandler),this.evTarget&&d(this.target,this.evTarget,this.domHandler),this.evWin&&d(z(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&y(this.element,this.evEl,this.domHandler),this.evTarget&&y(this.target,this.evTarget,this.domHandler),this.evWin&&y(z(this.element),this.evWin,this.domHandler)}};function pt(E){var C,R=E.options.inputClass;return R?C=R:U?C=Be:F?C=De:B?C=He:C=Ae,new C(E,dt)}function dt(E,C,R){var O=R.pointers.length,H=R.changedPointers.length,G=C&X&&O-H===0,Y=C&(J|oe)&&O-H===0;R.isFirst=!!G,R.isFinal=!!Y,G&&(E.session={}),R.eventType=C,ft(E,R),E.emit("hammer.input",R),E.recognize(R),E.session.prevInput=R}function ft(E,C){var R=E.session,O=C.pointers,H=O.length;R.firstInput||(R.firstInput=We(C)),H>1&&!R.firstMultiple?R.firstMultiple=We(C):H===1&&(R.firstMultiple=!1);var G=R.firstInput,Y=R.firstMultiple,Z=Y?Y.center:G.center,ee=C.center=ze(O);C.timeStamp=p(),C.deltaTime=C.timeStamp-G.timeStamp,C.angle=Ne(Z,ee),C.distance=Pe(Z,ee),gt(R,C),C.offsetDirection=Je(C.deltaX,C.deltaY);var re=Xe(C.deltaTime,C.deltaX,C.deltaY);C.overallVelocityX=re.x,C.overallVelocityY=re.y,C.overallVelocity=h(re.x)>h(re.y)?re.x:re.y,C.scale=Y?vt(Y.pointers,O):1,C.rotation=Y?yt(Y.pointers,O):0,C.maxPointers=R.prevInput?C.pointers.length>R.prevInput.maxPointers?C.pointers.length:R.prevInput.maxPointers:C.pointers.length,mt(R,C);var he=E.element;S(C.srcEvent.target,he)&&(he=C.srcEvent.target),C.target=he}function gt(E,C){var R=C.center,O=E.offsetDelta||{},H=E.prevDelta||{},G=E.prevInput||{};(C.eventType===X||G.eventType===J)&&(H=E.prevDelta={x:G.deltaX||0,y:G.deltaY||0},O=E.offsetDelta={x:R.x,y:R.y}),C.deltaX=H.x+(R.x-O.x),C.deltaY=H.y+(R.y-O.y)}function mt(E,C){var R=E.lastInterval||C,O=C.timeStamp-R.timeStamp,H,G,Y,Z;if(C.eventType!=oe&&(O>me||R.velocity===s)){var ee=C.deltaX-R.deltaX,re=C.deltaY-R.deltaY,he=Xe(O,ee,re);G=he.x,Y=he.y,H=h(he.x)>h(he.y)?he.x:he.y,Z=Je(ee,re),E.lastInterval=C}else H=R.velocity,G=R.velocityX,Y=R.velocityY,Z=R.direction;C.velocity=H,C.velocityX=G,C.velocityY=Y,C.direction=Z}function We(E){for(var C=[],R=0;R<E.pointers.length;)C[R]={clientX:c(E.pointers[R].clientX),clientY:c(E.pointers[R].clientY)},R++;return{timeStamp:p(),pointers:C,center:ze(C),deltaX:E.deltaX,deltaY:E.deltaY}}function ze(E){var C=E.length;if(C===1)return{x:c(E[0].clientX),y:c(E[0].clientY)};for(var R=0,O=0,H=0;H<C;)R+=E[H].clientX,O+=E[H].clientY,H++;return{x:c(R/C),y:c(O/C)}}function Xe(E,C,R){return{x:C/E||0,y:R/E||0}}function Je(E,C){return E===C?Ie:h(E)>=h(C)?E<0?Te:be:C<0?Ee:Se}function Pe(E,C,R){R||(R=Ye);var O=C[R[0]]-E[R[0]],H=C[R[1]]-E[R[1]];return Math.sqrt(O*O+H*H)}function Ne(E,C,R){R||(R=Ye);var O=C[R[0]]-E[R[0]],H=C[R[1]]-E[R[1]];return Math.atan2(H,O)*180/Math.PI}function yt(E,C){return Ne(C[1],C[0],Re)+Ne(E[1],E[0],Re)}function vt(E,C){return Pe(C[0],C[1],Re)/Pe(E[0],E[1],Re)}var _t={mousedown:X,mousemove:ne,mouseup:J},Tt="mousedown",bt="mousemove mouseup";function Ae(){this.evEl=Tt,this.evWin=bt,this.pressed=!1,se.apply(this,arguments)}P(Ae,se,{handler:function(C){var R=_t[C.type];R&X&&C.button===0&&(this.pressed=!0),R&ne&&C.which!==1&&(R=J),this.pressed&&(R&J&&(this.pressed=!1),this.callback(this.manager,R,{pointers:[C],changedPointers:[C],pointerType:Q,srcEvent:C}))}});var Et={pointerdown:X,pointermove:ne,pointerup:J,pointercancel:oe,pointerout:oe},St={2:N,3:q,4:Q,5:te},Ze="pointerdown",et="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Ze="MSPointerDown",et="MSPointerMove MSPointerUp MSPointerCancel");function Be(){this.evEl=Ze,this.evWin=et,se.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}P(Be,se,{handler:function(C){var R=this.store,O=!1,H=C.type.toLowerCase().replace("ms",""),G=Et[H],Y=St[C.pointerType]||C.pointerType,Z=Y==N,ee=M(R,C.pointerId,"pointerId");G&X&&(C.button===0||Z)?ee<0&&(R.push(C),ee=R.length-1):G&(J|oe)&&(O=!0),!(ee<0)&&(R[ee]=C,this.callback(this.manager,G,{pointers:R,changedPointers:[C],pointerType:Y,srcEvent:C}),O&&R.splice(ee,1))}});var Ct={touchstart:X,touchmove:ne,touchend:J,touchcancel:oe},wt="touchstart",kt="touchstart touchmove touchend touchcancel";function tt(){this.evTarget=wt,this.evWin=kt,this.started=!1,se.apply(this,arguments)}P(tt,se,{handler:function(C){var R=Ct[C.type];if(R===X&&(this.started=!0),!!this.started){var O=It.call(this,C,R);R&(J|oe)&&O[0].length-O[1].length===0&&(this.started=!1),this.callback(this.manager,R,{pointers:O[0],changedPointers:O[1],pointerType:N,srcEvent:C})}}});function It(E,C){var R=j(E.touches),O=j(E.changedTouches);return C&(J|oe)&&(R=V(R.concat(O),"identifier",!0)),[R,O]}var Rt={touchstart:X,touchmove:ne,touchend:J,touchcancel:oe},Pt="touchstart touchmove touchend touchcancel";function De(){this.evTarget=Pt,this.targetIds={},se.apply(this,arguments)}P(De,se,{handler:function(C){var R=Rt[C.type],O=At.call(this,C,R);O&&this.callback(this.manager,R,{pointers:O[0],changedPointers:O[1],pointerType:N,srcEvent:C})}});function At(E,C){var R=j(E.touches),O=this.targetIds;if(C&(X|ne)&&R.length===1)return O[R[0].identifier]=!0,[R,R];var H,G,Y=j(E.changedTouches),Z=[],ee=this.target;if(G=R.filter(function(re){return S(re.target,ee)}),C===X)for(H=0;H<G.length;)O[G[H].identifier]=!0,H++;for(H=0;H<Y.length;)O[Y[H].identifier]&&Z.push(Y[H]),C&(J|oe)&&delete O[Y[H].identifier],H++;if(Z.length)return[V(G.concat(Z),"identifier",!0),Z]}var Dt=2500,nt=25;function He(){se.apply(this,arguments);var E=A(this.handler,this);this.touch=new De(this.manager,E),this.mouse=new Ae(this.manager,E),this.primaryTouch=null,this.lastTouches=[]}P(He,se,{handler:function(C,R,O){var H=O.pointerType==N,G=O.pointerType==Q;if(!(G&&O.sourceCapabilities&&O.sourceCapabilities.firesTouchEvents)){if(H)Ot.call(this,R,O);else if(G&&jt.call(this,O))return;this.callback(C,R,O)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function Ot(E,C){E&X?(this.primaryTouch=C.changedPointers[0].identifier,rt.call(this,C)):E&(J|oe)&&rt.call(this,C)}function rt(E){var C=E.changedPointers[0];if(C.identifier===this.primaryTouch){var R={x:C.clientX,y:C.clientY};this.lastTouches.push(R);var O=this.lastTouches,H=function(){var G=O.indexOf(R);G>-1&&O.splice(G,1)};setTimeout(H,Dt)}}function jt(E){for(var C=E.srcEvent.clientX,R=E.srcEvent.clientY,O=0;O<this.lastTouches.length;O++){var H=this.lastTouches[O],G=Math.abs(C-H.x),Y=Math.abs(R-H.y);if(G<=nt&&Y<=nt)return!0}return!1}var it=K(l.style,"touchAction"),ot=it!==s,st="compute",at="auto",Ve="manipulation",ve="none",Ce="pan-x",we="pan-y",Oe=Mt();function Fe(E,C){this.manager=E,this.set(C)}Fe.prototype={set:function(E){E==st&&(E=this.compute()),ot&&this.manager.element.style&&Oe[E]&&(this.manager.element.style[it]=E),this.actions=E.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var E=[];return f(this.manager.recognizers,function(C){x(C.options.enable,[C])&&(E=E.concat(C.getTouchAction()))}),xt(E.join(" "))},preventDefaults:function(E){var C=E.srcEvent,R=E.offsetDirection;if(this.manager.session.prevented){C.preventDefault();return}var O=this.actions,H=w(O,ve)&&!Oe[ve],G=w(O,we)&&!Oe[we],Y=w(O,Ce)&&!Oe[Ce];if(H){var Z=E.pointers.length===1,ee=E.distance<2,re=E.deltaTime<250;if(Z&&ee&&re)return}if(!(Y&&G)&&(H||G&&R&ue||Y&&R&ye))return this.preventSrc(C)},preventSrc:function(E){this.manager.session.prevented=!0,E.preventDefault()}};function xt(E){if(w(E,ve))return ve;var C=w(E,Ce),R=w(E,we);return C&&R?ve:C||R?C?Ce:we:w(E,Ve)?Ve:at}function Mt(){if(!ot)return!1;var E={},C=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(R){E[R]=C?t.CSS.supports("touch-action",R):!0}),E}var je=1,ae=2,_e=4,ge=8,pe=ge,ke=16,ce=32;function de(E){this.options=v({},this.defaults,E||{}),this.id=ie(),this.manager=null,this.options.enable=k(this.options.enable,!0),this.state=je,this.simultaneous={},this.requireFail=[]}de.prototype={defaults:{},set:function(E){return v(this.options,E),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(E){if(b(E,"recognizeWith",this))return this;var C=this.simultaneous;return E=xe(E,this),C[E.id]||(C[E.id]=E,E.recognizeWith(this)),this},dropRecognizeWith:function(E){return b(E,"dropRecognizeWith",this)?this:(E=xe(E,this),delete this.simultaneous[E.id],this)},requireFailure:function(E){if(b(E,"requireFailure",this))return this;var C=this.requireFail;return E=xe(E,this),M(C,E)===-1&&(C.push(E),E.requireFailure(this)),this},dropRequireFailure:function(E){if(b(E,"dropRequireFailure",this))return this;E=xe(E,this);var C=M(this.requireFail,E);return C>-1&&this.requireFail.splice(C,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(E){return!!this.simultaneous[E.id]},emit:function(E){var C=this,R=this.state;function O(H){C.manager.emit(H,E)}R<ge&&O(C.options.event+lt(R)),O(C.options.event),E.additionalEvent&&O(E.additionalEvent),R>=ge&&O(C.options.event+lt(R))},tryEmit:function(E){if(this.canEmit())return this.emit(E);this.state=ce},canEmit:function(){for(var E=0;E<this.requireFail.length;){if(!(this.requireFail[E].state&(ce|je)))return!1;E++}return!0},recognize:function(E){var C=v({},E);if(!x(this.options.enable,[this,C])){this.reset(),this.state=ce;return}this.state&(pe|ke|ce)&&(this.state=je),this.state=this.process(C),this.state&(ae|_e|ge|ke)&&this.tryEmit(C)},process:function(E){},getTouchAction:function(){},reset:function(){}};function lt(E){return E&ke?"cancel":E&ge?"end":E&_e?"move":E&ae?"start":""}function ut(E){return E==Se?"down":E==Ee?"up":E==Te?"left":E==be?"right":""}function xe(E,C){var R=C.manager;return R?R.get(E):E}function le(){de.apply(this,arguments)}P(le,de,{defaults:{pointers:1},attrTest:function(E){var C=this.options.pointers;return C===0||E.pointers.length===C},process:function(E){var C=this.state,R=E.eventType,O=C&(ae|_e),H=this.attrTest(E);return O&&(R&oe||!H)?C|ke:O||H?R&J?C|ge:C&ae?C|_e:ae:ce}});function Me(){le.apply(this,arguments),this.pX=null,this.pY=null}P(Me,le,{defaults:{event:"pan",threshold:10,pointers:1,direction:Qe},getTouchAction:function(){var E=this.options.direction,C=[];return E&ue&&C.push(we),E&ye&&C.push(Ce),C},directionTest:function(E){var C=this.options,R=!0,O=E.distance,H=E.direction,G=E.deltaX,Y=E.deltaY;return H&C.direction||(C.direction&ue?(H=G===0?Ie:G<0?Te:be,R=G!=this.pX,O=Math.abs(E.deltaX)):(H=Y===0?Ie:Y<0?Ee:Se,R=Y!=this.pY,O=Math.abs(E.deltaY))),E.direction=H,R&&O>C.threshold&&H&C.direction},attrTest:function(E){return le.prototype.attrTest.call(this,E)&&(this.state&ae||!(this.state&ae)&&this.directionTest(E))},emit:function(E){this.pX=E.deltaX,this.pY=E.deltaY;var C=ut(E.direction);C&&(E.additionalEvent=this.options.event+C),this._super.emit.call(this,E)}});function Ge(){le.apply(this,arguments)}P(Ge,le,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ve]},attrTest:function(E){return this._super.attrTest.call(this,E)&&(Math.abs(E.scale-1)>this.options.threshold||this.state&ae)},emit:function(E){if(E.scale!==1){var C=E.scale<1?"in":"out";E.additionalEvent=this.options.event+C}this._super.emit.call(this,E)}});function Ue(){de.apply(this,arguments),this._timer=null,this._input=null}P(Ue,de,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[at]},process:function(E){var C=this.options,R=E.pointers.length===C.pointers,O=E.distance<C.threshold,H=E.deltaTime>C.time;if(this._input=E,!O||!R||E.eventType&(J|oe)&&!H)this.reset();else if(E.eventType&X)this.reset(),this._timer=m(function(){this.state=pe,this.tryEmit()},C.time,this);else if(E.eventType&J)return pe;return ce},reset:function(){clearTimeout(this._timer)},emit:function(E){this.state===pe&&(E&&E.eventType&J?this.manager.emit(this.options.event+"up",E):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}});function $e(){le.apply(this,arguments)}P($e,le,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ve]},attrTest:function(E){return this._super.attrTest.call(this,E)&&(Math.abs(E.rotation)>this.options.threshold||this.state&ae)}});function qe(){le.apply(this,arguments)}P(qe,le,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:ue|ye,pointers:1},getTouchAction:function(){return Me.prototype.getTouchAction.call(this)},attrTest:function(E){var C=this.options.direction,R;return C&(ue|ye)?R=E.overallVelocity:C&ue?R=E.overallVelocityX:C&ye&&(R=E.overallVelocityY),this._super.attrTest.call(this,E)&&C&E.offsetDirection&&E.distance>this.options.threshold&&E.maxPointers==this.options.pointers&&h(R)>this.options.velocity&&E.eventType&J},emit:function(E){var C=ut(E.offsetDirection);C&&this.manager.emit(this.options.event+C,E),this.manager.emit(this.options.event,E)}});function Le(){de.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}P(Le,de,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ve]},process:function(E){var C=this.options,R=E.pointers.length===C.pointers,O=E.distance<C.threshold,H=E.deltaTime<C.time;if(this.reset(),E.eventType&X&&this.count===0)return this.failTimeout();if(O&&H&&R){if(E.eventType!=J)return this.failTimeout();var G=this.pTime?E.timeStamp-this.pTime<C.interval:!0,Y=!this.pCenter||Pe(this.pCenter,E.center)<C.posThreshold;this.pTime=E.timeStamp,this.pCenter=E.center,!Y||!G?this.count=1:this.count+=1,this._input=E;var Z=this.count%C.taps;if(Z===0)return this.hasRequireFailures()?(this._timer=m(function(){this.state=pe,this.tryEmit()},C.interval,this),ae):pe}return ce},failTimeout:function(){return this._timer=m(function(){this.state=ce},this.options.interval,this),ce},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==pe&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function fe(E,C){return C=C||{},C.recognizers=k(C.recognizers,fe.defaults.preset),new Ke(E,C)}fe.VERSION="2.0.7",fe.defaults={domEvents:!1,touchAction:st,enable:!0,inputTarget:null,inputClass:null,preset:[[$e,{enable:!1}],[Ge,{enable:!1},["rotate"]],[qe,{direction:ue}],[Me,{direction:ue},["swipe"]],[Le],[Le,{event:"doubletap",taps:2},["tap"]],[Ue]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Lt=1,ct=2;function Ke(E,C){this.options=v({},fe.defaults,C||{}),this.options.inputTarget=this.options.inputTarget||E,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=E,this.input=pt(this),this.touchAction=new Fe(this,this.options.touchAction),ht(this,!0),f(this.options.recognizers,function(R){var O=this.add(new R[0](R[1]));R[2]&&O.recognizeWith(R[2]),R[3]&&O.requireFailure(R[3])},this)}Ke.prototype={set:function(E){return v(this.options,E),E.touchAction&&this.touchAction.update(),E.inputTarget&&(this.input.destroy(),this.input.target=E.inputTarget,this.input.init()),this},stop:function(E){this.session.stopped=E?ct:Lt},recognize:function(E){var C=this.session;if(!C.stopped){this.touchAction.preventDefaults(E);var R,O=this.recognizers,H=C.curRecognizer;(!H||H&&H.state&pe)&&(H=C.curRecognizer=null);for(var G=0;G<O.length;)R=O[G],C.stopped!==ct&&(!H||R==H||R.canRecognizeWith(H))?R.recognize(E):R.reset(),!H&&R.state&(ae|_e|ge)&&(H=C.curRecognizer=R),G++}},get:function(E){if(E instanceof de)return E;for(var C=this.recognizers,R=0;R<C.length;R++)if(C[R].options.event==E)return C[R];return null},add:function(E){if(b(E,"add",this))return this;var C=this.get(E.options.event);return C&&this.remove(C),this.recognizers.push(E),E.manager=this,this.touchAction.update(),E},remove:function(E){if(b(E,"remove",this))return this;if(E=this.get(E),E){var C=this.recognizers,R=M(C,E);R!==-1&&(C.splice(R,1),this.touchAction.update())}return this},on:function(E,C){if(E!==s&&C!==s){var R=this.handlers;return f(D(E),function(O){R[O]=R[O]||[],R[O].push(C)}),this}},off:function(E,C){if(E!==s){var R=this.handlers;return f(D(E),function(O){C?R[O]&&R[O].splice(M(R[O],C),1):delete R[O]}),this}},emit:function(E,C){this.options.domEvents&&Nt(E,C);var R=this.handlers[E]&&this.handlers[E].slice();if(!(!R||!R.length)){C.type=E,C.preventDefault=function(){C.srcEvent.preventDefault()};for(var O=0;O<R.length;)R[O](C),O++}},destroy:function(){this.element&&ht(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function ht(E,C){var R=E.element;if(R.style){var O;f(E.options.cssProps,function(H,G){O=K(R.style,G),C?(E.oldCssProps[O]=R.style[O],R.style[O]=H):R.style[O]=E.oldCssProps[O]||""}),C||(E.oldCssProps={})}}function Nt(E,C){var R=e.createEvent("Event");R.initEvent(E,!0,!0),R.gesture=C,C.target.dispatchEvent(R)}v(fe,{INPUT_START:X,INPUT_MOVE:ne,INPUT_END:J,INPUT_CANCEL:oe,STATE_POSSIBLE:je,STATE_BEGAN:ae,STATE_CHANGED:_e,STATE_ENDED:ge,STATE_RECOGNIZED:pe,STATE_CANCELLED:ke,STATE_FAILED:ce,DIRECTION_NONE:Ie,DIRECTION_LEFT:Te,DIRECTION_RIGHT:be,DIRECTION_UP:Ee,DIRECTION_DOWN:Se,DIRECTION_HORIZONTAL:ue,DIRECTION_VERTICAL:ye,DIRECTION_ALL:Qe,Manager:Ke,Input:se,TouchAction:Fe,TouchInput:De,MouseInput:Ae,PointerEventInput:Be,TouchMouseInput:He,SingleTouchInput:tt,Recognizer:de,AttrRecognizer:le,Tap:Le,Pan:Me,Swipe:qe,Pinch:Ge,Rotate:$e,Press:Ue,on:d,off:y,each:f,merge:I,extend:_,assign:v,inherit:P,bindFn:A,prefixed:K});var Bt=typeof t<"u"?t:typeof self<"u"?self:{};Bt.Hammer=fe,typeof s=="function"&&s.amd?s(function(){return fe}):r.exports?r.exports=fe:t[n]=fe})(window,document,"Hammer")})(hammer$2);var hammerExports=hammer$2.exports;const hammer=getDefaultExportFromCjs(hammerExports),hammer$1=Object.freeze(Object.defineProperty({__proto__:null,default:hammer},Symbol.toStringTag,{value:"Module"}));exports.HLSCONFIG=HLSCONFIG,exports.VideoStatus=VideoStatus,exports.loadVideoPlayer=loadVideoPlayer,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})});
|
|
93
|
+
`;return function(){var K=new Error("get-stack-trace"),ee=K&&K.stack?K.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",f=t.console&&(t.console.warn||t.console.log);return f&&f.call(t.console,Z,ee),S.apply(this,arguments)}}var b;typeof Object.assign!="function"?b=function(A){if(A===s||A===null)throw new TypeError("Cannot convert undefined or null to object");for(var R=Object(A),Z=1;Z<arguments.length;Z++){var K=arguments[Z];if(K!==s&&K!==null)for(var ee in K)K.hasOwnProperty(ee)&&(R[ee]=K[ee])}return R}:b=Object.assign;var C=_(function(A,R,Z){for(var K=Object.keys(R),ee=0;ee<K.length;)(!Z||Z&&A[K[ee]]===s)&&(A[K[ee]]=R[K[ee]]),ee++;return A},"extend","Use `assign`."),I=_(function(A,R){return C(A,R,!0)},"merge","Use `assign`.");function N(S,A,R){var Z=A.prototype,K;K=S.prototype=Object.create(Z),K.constructor=S,K._super=Z,R&&b(K,R)}function x(S,A){return function(){return S.apply(A,arguments)}}function F(S,A){return typeof S==u?S.apply(A&&A[0]||s,A):S}function P(S,A){return S===s?A:S}function d(S,A,R){y(D(A),function(Z){S.addEventListener(Z,R,!1)})}function m(S,A,R){y(D(A),function(Z){S.removeEventListener(Z,R,!1)})}function E(S,A){for(;S;){if(S==A)return!0;S=S.parentNode}return!1}function k(S,A){return S.indexOf(A)>-1}function D(S){return S.trim().split(/\s+/g)}function L(S,A,R){if(S.indexOf&&!R)return S.indexOf(A);for(var Z=0;Z<S.length;){if(R&&S[Z][R]==A||!R&&S[Z]===A)return Z;Z++}return-1}function G(S){return Array.prototype.slice.call(S,0)}function Y(S,A,R){for(var Z=[],K=[],ee=0;ee<S.length;){var f=A?S[ee][A]:S[ee];L(K,f)<0&&Z.push(S[ee]),K[ee]=f,ee++}return R&&(A?Z=Z.sort(function(B,O){return B[A]>O[A]}):Z=Z.sort()),Z}function ae(S,A){for(var R,Z,K=A[0].toUpperCase()+A.slice(1),ee=0;ee<a.length;){if(R=a[ee],Z=R?R+K:A,Z in S)return Z;ee++}return s}var he=1;function ke(){return he++}function fe(S){var A=S.ownerDocument||S;return A.defaultView||A.parentWindow||t}var U=/mobile|tablet|ip(ad|hone|od)|android/i,q="ontouchstart"in t,re=ae(t,"PointerEvent")!==s,W=q&&U.test(navigator.userAgent),V="touch",oe="pen",ue="mouse",Te="kinect",Re=25,me=1,Ee=2,ye=4,Ae=8,Fe=1,Le=2,Pe=4,X=8,Q=16,J=Le|Pe,se=X|Q,ie=J|se,ge=["x","y"],be=["clientX","clientY"];function de(S,A){var R=this;this.manager=S,this.callback=A,this.element=S.element,this.target=S.options.inputTarget,this.domHandler=function(Z){F(S.options.enable,[S])&&R.handler(Z)},this.init()}de.prototype={handler:function(){},init:function(){this.evEl&&d(this.element,this.evEl,this.domHandler),this.evTarget&&d(this.target,this.evTarget,this.domHandler),this.evWin&&d(fe(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&m(this.element,this.evEl,this.domHandler),this.evTarget&&m(this.target,this.evTarget,this.domHandler),this.evWin&&m(fe(this.element),this.evWin,this.domHandler)}};function Be(S){var A,R=S.options.inputClass;return R?A=R:re?A=dt:W?A=nt:q?A=it:A=tt,new A(S,xe)}function xe(S,A,R){var Z=R.pointers.length,K=R.changedPointers.length,ee=A&me&&Z-K===0,f=A&(ye|Ae)&&Z-K===0;R.isFirst=!!ee,R.isFinal=!!f,ee&&(S.session={}),R.eventType=A,Ye(S,R),S.emit("hammer.input",R),S.recognize(R),S.session.prevInput=R}function Ye(S,A){var R=S.session,Z=A.pointers,K=Z.length;R.firstInput||(R.firstInput=Ct(A)),K>1&&!R.firstMultiple?R.firstMultiple=Ct(A):K===1&&(R.firstMultiple=!1);var ee=R.firstInput,f=R.firstMultiple,w=f?f.center:ee.center,B=A.center=St(Z);A.timeStamp=p(),A.deltaTime=A.timeStamp-ee.timeStamp,A.angle=pt(w,B),A.distance=et(w,B),De(R,A),A.offsetDirection=At(A.deltaX,A.deltaY);var O=wt(A.deltaTime,A.deltaX,A.deltaY);A.overallVelocityX=O.x,A.overallVelocityY=O.y,A.overallVelocity=h(O.x)>h(O.y)?O.x:O.y,A.scale=f?kt(f.pointers,Z):1,A.rotation=f?Lt(f.pointers,Z):0,A.maxPointers=R.prevInput?A.pointers.length>R.prevInput.maxPointers?A.pointers.length:R.prevInput.maxPointers:A.pointers.length,xt(R,A);var M=S.element;E(A.srcEvent.target,M)&&(M=A.srcEvent.target),A.target=M}function De(S,A){var R=A.center,Z=S.offsetDelta||{},K=S.prevDelta||{},ee=S.prevInput||{};(A.eventType===me||ee.eventType===ye)&&(K=S.prevDelta={x:ee.deltaX||0,y:ee.deltaY||0},Z=S.offsetDelta={x:R.x,y:R.y}),A.deltaX=K.x+(R.x-Z.x),A.deltaY=K.y+(R.y-Z.y)}function xt(S,A){var R=S.lastInterval||A,Z=A.timeStamp-R.timeStamp,K,ee,f,w;if(A.eventType!=Ae&&(Z>Re||R.velocity===s)){var B=A.deltaX-R.deltaX,O=A.deltaY-R.deltaY,M=wt(Z,B,O);ee=M.x,f=M.y,K=h(M.x)>h(M.y)?M.x:M.y,w=At(B,O),S.lastInterval=A}else K=R.velocity,ee=R.velocityX,f=R.velocityY,w=R.direction;A.velocity=K,A.velocityX=ee,A.velocityY=f,A.direction=w}function Ct(S){for(var A=[],R=0;R<S.pointers.length;)A[R]={clientX:c(S.pointers[R].clientX),clientY:c(S.pointers[R].clientY)},R++;return{timeStamp:p(),pointers:A,center:St(A),deltaX:S.deltaX,deltaY:S.deltaY}}function St(S){var A=S.length;if(A===1)return{x:c(S[0].clientX),y:c(S[0].clientY)};for(var R=0,Z=0,K=0;K<A;)R+=S[K].clientX,Z+=S[K].clientY,K++;return{x:c(R/A),y:c(Z/A)}}function wt(S,A,R){return{x:A/S||0,y:R/S||0}}function At(S,A){return S===A?Fe:h(S)>=h(A)?S<0?Le:Pe:A<0?X:Q}function et(S,A,R){R||(R=ge);var Z=A[R[0]]-S[R[0]],K=A[R[1]]-S[R[1]];return Math.sqrt(Z*Z+K*K)}function pt(S,A,R){R||(R=ge);var Z=A[R[0]]-S[R[0]],K=A[R[1]]-S[R[1]];return Math.atan2(K,Z)*180/Math.PI}function Lt(S,A){return pt(A[1],A[0],be)+pt(S[1],S[0],be)}function kt(S,A){return et(A[0],A[1],be)/et(S[0],S[1],be)}var Bt={mousedown:me,mousemove:Ee,mouseup:ye},Nt="mousedown",Gt="mousemove mouseup";function tt(){this.evEl=Nt,this.evWin=Gt,this.pressed=!1,de.apply(this,arguments)}N(tt,de,{handler:function(A){var R=Bt[A.type];R&me&&A.button===0&&(this.pressed=!0),R&Ee&&A.which!==1&&(R=ye),this.pressed&&(R&ye&&(this.pressed=!1),this.callback(this.manager,R,{pointers:[A],changedPointers:[A],pointerType:ue,srcEvent:A}))}});var Zt={pointerdown:me,pointermove:Ee,pointerup:ye,pointercancel:Ae,pointerout:Ae},Ft={2:V,3:oe,4:ue,5:Te},It="pointerdown",Pt="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(It="MSPointerDown",Pt="MSPointerMove MSPointerUp MSPointerCancel");function dt(){this.evEl=It,this.evWin=Pt,de.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}N(dt,de,{handler:function(A){var R=this.store,Z=!1,K=A.type.toLowerCase().replace("ms",""),ee=Zt[K],f=Ft[A.pointerType]||A.pointerType,w=f==V,B=L(R,A.pointerId,"pointerId");ee&me&&(A.button===0||w)?B<0&&(R.push(A),B=R.length-1):ee&(ye|Ae)&&(Z=!0),!(B<0)&&(R[B]=A,this.callback(this.manager,ee,{pointers:R,changedPointers:[A],pointerType:f,srcEvent:A}),Z&&R.splice(B,1))}});var Ut={touchstart:me,touchmove:Ee,touchend:ye,touchcancel:Ae},Ht="touchstart",Vt="touchstart touchmove touchend touchcancel";function ft(){this.evTarget=Ht,this.evWin=Vt,this.started=!1,de.apply(this,arguments)}N(ft,de,{handler:function(A){var R=Ut[A.type];if(R===me&&(this.started=!0),!!this.started){var Z=Qt.call(this,A,R);R&(ye|Ae)&&Z[0].length-Z[1].length===0&&(this.started=!1),this.callback(this.manager,R,{pointers:Z[0],changedPointers:Z[1],pointerType:V,srcEvent:A})}}});function Qt(S,A){var R=G(S.touches),Z=G(S.changedTouches);return A&(ye|Ae)&&(R=Y(R.concat(Z),"identifier",!0)),[R,Z]}var Rt={touchstart:me,touchmove:Ee,touchend:ye,touchcancel:Ae},$t="touchstart touchmove touchend touchcancel";function nt(){this.evTarget=$t,this.targetIds={},de.apply(this,arguments)}N(nt,de,{handler:function(A){var R=Rt[A.type],Z=Yt.call(this,A,R);Z&&this.callback(this.manager,R,{pointers:Z[0],changedPointers:Z[1],pointerType:V,srcEvent:A})}});function Yt(S,A){var R=G(S.touches),Z=this.targetIds;if(A&(me|Ee)&&R.length===1)return Z[R[0].identifier]=!0,[R,R];var K,ee,f=G(S.changedTouches),w=[],B=this.target;if(ee=R.filter(function(O){return E(O.target,B)}),A===me)for(K=0;K<ee.length;)Z[ee[K].identifier]=!0,K++;for(K=0;K<f.length;)Z[f[K].identifier]&&w.push(f[K]),A&(ye|Ae)&&delete Z[f[K].identifier],K++;if(w.length)return[Y(ee.concat(w),"identifier",!0),w]}var qt=2500,rt=25;function it(){de.apply(this,arguments);var S=x(this.handler,this);this.touch=new nt(this.manager,S),this.mouse=new tt(this.manager,S),this.primaryTouch=null,this.lastTouches=[]}N(it,de,{handler:function(A,R,Z){var K=Z.pointerType==V,ee=Z.pointerType==ue;if(!(ee&&Z.sourceCapabilities&&Z.sourceCapabilities.firesTouchEvents)){if(K)zt.call(this,R,Z);else if(ee&&Kt.call(this,Z))return;this.callback(A,R,Z)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function zt(S,A){S&me?(this.primaryTouch=A.changedPointers[0].identifier,Ot.call(this,A)):S&(ye|Ae)&&Ot.call(this,A)}function Ot(S){var A=S.changedPointers[0];if(A.identifier===this.primaryTouch){var R={x:A.clientX,y:A.clientY};this.lastTouches.push(R);var Z=this.lastTouches,K=function(){var ee=Z.indexOf(R);ee>-1&&Z.splice(ee,1)};setTimeout(K,qt)}}function Kt(S){for(var A=S.srcEvent.clientX,R=S.srcEvent.clientY,Z=0;Z<this.lastTouches.length;Z++){var K=this.lastTouches[Z],ee=Math.abs(A-K.x),f=Math.abs(R-K.y);if(ee<=rt&&f<=rt)return!0}return!1}var Dt=ae(l.style,"touchAction"),H=Dt!==s,gt="compute",mt="auto",yt="manipulation",Ve="none",Xe="pan-x",Ke="pan-y",Je=Xt();function vt(S,A){this.manager=S,this.set(A)}vt.prototype={set:function(S){S==gt&&(S=this.compute()),H&&this.manager.element.style&&Je[S]&&(this.manager.element.style[Dt]=S),this.actions=S.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var S=[];return y(this.manager.recognizers,function(A){F(A.options.enable,[A])&&(S=S.concat(A.getTouchAction()))}),Wt(S.join(" "))},preventDefaults:function(S){var A=S.srcEvent,R=S.offsetDirection;if(this.manager.session.prevented){A.preventDefault();return}var Z=this.actions,K=k(Z,Ve)&&!Je[Ve],ee=k(Z,Ke)&&!Je[Ke],f=k(Z,Xe)&&!Je[Xe];if(K){var w=S.pointers.length===1,B=S.distance<2,O=S.deltaTime<250;if(w&&B&&O)return}if(!(f&&ee)&&(K||ee&&R&J||f&&R&se))return this.preventSrc(A)},preventSrc:function(S){this.manager.session.prevented=!0,S.preventDefault()}};function Wt(S){if(k(S,Ve))return Ve;var A=k(S,Xe),R=k(S,Ke);return A&&R?Ve:A||R?A?Xe:Ke:k(S,yt)?yt:mt}function Xt(){if(!H)return!1;var S={},A=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(R){S[R]=A?t.CSS.supports("touch-action",R):!0}),S}var ot=1,je=2,Ie=4,Qe=8,Me=Qe,qe=16,Ne=32;function Ue(S){this.options=b({},this.defaults,S||{}),this.id=ke(),this.manager=null,this.options.enable=P(this.options.enable,!0),this.state=ot,this.simultaneous={},this.requireFail=[]}Ue.prototype={defaults:{},set:function(S){return b(this.options,S),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(S){if(v(S,"recognizeWith",this))return this;var A=this.simultaneous;return S=ze(S,this),A[S.id]||(A[S.id]=S,S.recognizeWith(this)),this},dropRecognizeWith:function(S){return v(S,"dropRecognizeWith",this)?this:(S=ze(S,this),delete this.simultaneous[S.id],this)},requireFailure:function(S){if(v(S,"requireFailure",this))return this;var A=this.requireFail;return S=ze(S,this),L(A,S)===-1&&(A.push(S),S.requireFailure(this)),this},dropRequireFailure:function(S){if(v(S,"dropRequireFailure",this))return this;S=ze(S,this);var A=L(this.requireFail,S);return A>-1&&this.requireFail.splice(A,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(S){return!!this.simultaneous[S.id]},emit:function(S){var A=this,R=this.state;function Z(K){A.manager.emit(K,S)}R<Qe&&Z(A.options.event+_t(R)),Z(A.options.event),S.additionalEvent&&Z(S.additionalEvent),R>=Qe&&Z(A.options.event+_t(R))},tryEmit:function(S){if(this.canEmit())return this.emit(S);this.state=Ne},canEmit:function(){for(var S=0;S<this.requireFail.length;){if(!(this.requireFail[S].state&(Ne|ot)))return!1;S++}return!0},recognize:function(S){var A=b({},S);if(!F(this.options.enable,[this,A])){this.reset(),this.state=Ne;return}this.state&(Me|qe|Ne)&&(this.state=ot),this.state=this.process(A),this.state&(je|Ie|Qe|qe)&&this.tryEmit(A)},process:function(S){},getTouchAction:function(){},reset:function(){}};function _t(S){return S&qe?"cancel":S&Qe?"end":S&Ie?"move":S&je?"start":""}function jt(S){return S==Q?"down":S==X?"up":S==Le?"left":S==Pe?"right":""}function ze(S,A){var R=A.manager;return R?R.get(S):S}function we(){Ue.apply(this,arguments)}N(we,Ue,{defaults:{pointers:1},attrTest:function(S){var A=this.options.pointers;return A===0||S.pointers.length===A},process:function(S){var A=this.state,R=S.eventType,Z=A&(je|Ie),K=this.attrTest(S);return Z&&(R&Ae||!K)?A|qe:Z||K?R&ye?A|Qe:A&je?A|Ie:je:Ne}});function st(){we.apply(this,arguments),this.pX=null,this.pY=null}N(st,we,{defaults:{event:"pan",threshold:10,pointers:1,direction:ie},getTouchAction:function(){var S=this.options.direction,A=[];return S&J&&A.push(Ke),S&se&&A.push(Xe),A},directionTest:function(S){var A=this.options,R=!0,Z=S.distance,K=S.direction,ee=S.deltaX,f=S.deltaY;return K&A.direction||(A.direction&J?(K=ee===0?Fe:ee<0?Le:Pe,R=ee!=this.pX,Z=Math.abs(S.deltaX)):(K=f===0?Fe:f<0?X:Q,R=f!=this.pY,Z=Math.abs(S.deltaY))),S.direction=K,R&&Z>A.threshold&&K&A.direction},attrTest:function(S){return we.prototype.attrTest.call(this,S)&&(this.state&je||!(this.state&je)&&this.directionTest(S))},emit:function(S){this.pX=S.deltaX,this.pY=S.deltaY;var A=jt(S.direction);A&&(S.additionalEvent=this.options.event+A),this._super.emit.call(this,S)}});function bt(){we.apply(this,arguments)}N(bt,we,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ve]},attrTest:function(S){return this._super.attrTest.call(this,S)&&(Math.abs(S.scale-1)>this.options.threshold||this.state&je)},emit:function(S){if(S.scale!==1){var A=S.scale<1?"in":"out";S.additionalEvent=this.options.event+A}this._super.emit.call(this,S)}});function Tt(){Ue.apply(this,arguments),this._timer=null,this._input=null}N(Tt,Ue,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[mt]},process:function(S){var A=this.options,R=S.pointers.length===A.pointers,Z=S.distance<A.threshold,K=S.deltaTime>A.time;if(this._input=S,!Z||!R||S.eventType&(ye|Ae)&&!K)this.reset();else if(S.eventType&me)this.reset(),this._timer=g(function(){this.state=Me,this.tryEmit()},A.time,this);else if(S.eventType&ye)return Me;return Ne},reset:function(){clearTimeout(this._timer)},emit:function(S){this.state===Me&&(S&&S.eventType&ye?this.manager.emit(this.options.event+"up",S):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}});function Et(){we.apply(this,arguments)}N(Et,we,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ve]},attrTest:function(S){return this._super.attrTest.call(this,S)&&(Math.abs(S.rotation)>this.options.threshold||this.state&je)}});function We(){we.apply(this,arguments)}N(We,we,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:J|se,pointers:1},getTouchAction:function(){return st.prototype.getTouchAction.call(this)},attrTest:function(S){var A=this.options.direction,R;return A&(J|se)?R=S.overallVelocity:A&J?R=S.overallVelocityX:A&se&&(R=S.overallVelocityY),this._super.attrTest.call(this,S)&&A&S.offsetDirection&&S.distance>this.options.threshold&&S.maxPointers==this.options.pointers&&h(R)>this.options.velocity&&S.eventType&ye},emit:function(S){var A=jt(S.offsetDirection);A&&this.manager.emit(this.options.event+A,S),this.manager.emit(this.options.event,S)}});function at(){Ue.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}N(at,Ue,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[yt]},process:function(S){var A=this.options,R=S.pointers.length===A.pointers,Z=S.distance<A.threshold,K=S.deltaTime<A.time;if(this.reset(),S.eventType&me&&this.count===0)return this.failTimeout();if(Z&&K&&R){if(S.eventType!=ye)return this.failTimeout();var ee=this.pTime?S.timeStamp-this.pTime<A.interval:!0,f=!this.pCenter||et(this.pCenter,S.center)<A.posThreshold;this.pTime=S.timeStamp,this.pCenter=S.center,!f||!ee?this.count=1:this.count+=1,this._input=S;var w=this.count%A.taps;if(w===0)return this.hasRequireFailures()?(this._timer=g(function(){this.state=Me,this.tryEmit()},A.interval,this),je):Me}return Ne},failTimeout:function(){return this._timer=g(function(){this.state=Ne},this.options.interval,this),Ne},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Me&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function Ge(S,A){return A=A||{},A.recognizers=P(A.recognizers,Ge.defaults.preset),new ut(S,A)}Ge.VERSION="2.0.7",Ge.defaults={domEvents:!1,touchAction:gt,enable:!0,inputTarget:null,inputClass:null,preset:[[Et,{enable:!1}],[bt,{enable:!1},["rotate"]],[We,{direction:J}],[st,{direction:J},["swipe"]],[at],[at,{event:"doubletap",taps:2},["tap"]],[Tt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Mt=1,lt=2;function ut(S,A){this.options=b({},Ge.defaults,A||{}),this.options.inputTarget=this.options.inputTarget||S,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=S,this.input=Be(this),this.touchAction=new vt(this,this.options.touchAction),ct(this,!0),y(this.options.recognizers,function(R){var Z=this.add(new R[0](R[1]));R[2]&&Z.recognizeWith(R[2]),R[3]&&Z.requireFailure(R[3])},this)}ut.prototype={set:function(S){return b(this.options,S),S.touchAction&&this.touchAction.update(),S.inputTarget&&(this.input.destroy(),this.input.target=S.inputTarget,this.input.init()),this},stop:function(S){this.session.stopped=S?lt:Mt},recognize:function(S){var A=this.session;if(!A.stopped){this.touchAction.preventDefaults(S);var R,Z=this.recognizers,K=A.curRecognizer;(!K||K&&K.state&Me)&&(K=A.curRecognizer=null);for(var ee=0;ee<Z.length;)R=Z[ee],A.stopped!==lt&&(!K||R==K||R.canRecognizeWith(K))?R.recognize(S):R.reset(),!K&&R.state&(je|Ie|Qe)&&(K=A.curRecognizer=R),ee++}},get:function(S){if(S instanceof Ue)return S;for(var A=this.recognizers,R=0;R<A.length;R++)if(A[R].options.event==S)return A[R];return null},add:function(S){if(v(S,"add",this))return this;var A=this.get(S.options.event);return A&&this.remove(A),this.recognizers.push(S),S.manager=this,this.touchAction.update(),S},remove:function(S){if(v(S,"remove",this))return this;if(S=this.get(S),S){var A=this.recognizers,R=L(A,S);R!==-1&&(A.splice(R,1),this.touchAction.update())}return this},on:function(S,A){if(S!==s&&A!==s){var R=this.handlers;return y(D(S),function(Z){R[Z]=R[Z]||[],R[Z].push(A)}),this}},off:function(S,A){if(S!==s){var R=this.handlers;return y(D(S),function(Z){A?R[Z]&&R[Z].splice(L(R[Z],A),1):delete R[Z]}),this}},emit:function(S,A){this.options.domEvents&&$e(S,A);var R=this.handlers[S]&&this.handlers[S].slice();if(!(!R||!R.length)){A.type=S,A.preventDefault=function(){A.srcEvent.preventDefault()};for(var Z=0;Z<R.length;)R[Z](A),Z++}},destroy:function(){this.element&&ct(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function ct(S,A){var R=S.element;if(R.style){var Z;y(S.options.cssProps,function(K,ee){Z=ae(R.style,ee),A?(S.oldCssProps[Z]=R.style[Z],R.style[Z]=K):R.style[Z]=S.oldCssProps[Z]||""}),A||(S.oldCssProps={})}}function $e(S,A){var R=e.createEvent("Event");R.initEvent(S,!0,!0),R.gesture=A,A.target.dispatchEvent(R)}b(Ge,{INPUT_START:me,INPUT_MOVE:Ee,INPUT_END:ye,INPUT_CANCEL:Ae,STATE_POSSIBLE:ot,STATE_BEGAN:je,STATE_CHANGED:Ie,STATE_ENDED:Qe,STATE_RECOGNIZED:Me,STATE_CANCELLED:qe,STATE_FAILED:Ne,DIRECTION_NONE:Fe,DIRECTION_LEFT:Le,DIRECTION_RIGHT:Pe,DIRECTION_UP:X,DIRECTION_DOWN:Q,DIRECTION_HORIZONTAL:J,DIRECTION_VERTICAL:se,DIRECTION_ALL:ie,Manager:ut,Input:de,TouchAction:vt,TouchInput:nt,MouseInput:tt,PointerEventInput:dt,TouchMouseInput:it,SingleTouchInput:ft,Recognizer:Ue,AttrRecognizer:we,Tap:at,Pan:st,Swipe:We,Pinch:bt,Rotate:Et,Press:Tt,on:d,off:m,each:y,merge:I,extend:C,assign:b,inherit:N,bindFn:x,prefixed:ae});var ht=typeof t<"u"?t:typeof self<"u"?self:{};ht.Hammer=Ge,typeof s=="function"&&s.amd?s(function(){return Ge}):r.exports?r.exports=Ge:t[n]=Ge})(window,document,"Hammer")})(hammer$2);var hammerExports=hammer$2.exports;const hammer=getDefaultExportFromCjs(hammerExports),hammer$1=Object.freeze(Object.defineProperty({__proto__:null,default:hammer},Symbol.toStringTag,{value:"Module"}));exports.HLSCONFIG=HLSCONFIG,exports.VideoStatus=VideoStatus,exports.loadVideoPlayer=loadVideoPlayer,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})});
|