(window.webpackJsonp=window.webpackJsonp||[]).push([[94],{818:function(e,t,r){"use strict";var n=r(47),o=r(580),c=r(0),l=r.n(c);var h=n.a.getComponent("Tech"),f=n.a.dom,d=n.a.url,v=n.a.createTimeRange,y=n.a.mergeOptions,m=l.a&&l.a.navigator||{},S=function(e){function t(r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r,n));return r.source&&o.ready(function(){this.setSource(r.source)},!0),r.startTime&&o.ready(function(){this.load(),this.play(),this.currentTime(r.startTime)},!0),l.a.videojs=l.a.videojs||{},l.a.videojs.Flash=l.a.videojs.Flash||{},l.a.videojs.Flash.onReady=t.onReady,l.a.videojs.Flash.onEvent=t.onEvent,l.a.videojs.Flash.onError=t.onError,o.on("seeked",function(){this.lastSeekTarget_=void 0}),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(){var e=this.options_;e.swf||(e.swf="https://vjs.zencdn.net/swf/"+o.a+"/video-js.swf");var r=e.techId,n=y({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),c=y({wmode:"opaque",bgcolor:"#000000"},e.params),l=y({id:r,name:r,class:"vjs-tech"},e.attributes);return this.el_=t.embed(e.swf,n,c,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 void 0===e?this.currentSrc():this.setSrc(e)},t.prototype.setSrc=function(e){var t=this;e=d.getAbsoluteURL(e),this.el_.vjs_src(e),this.autoplay()&&this.setTimeout(function(){return t.play()},0)},t.prototype.seeking=function(){return void 0!==this.lastSeekTarget_},t.prototype.setCurrentTime=function(time){var t=this.seekable();t.length&&(time=(time=time>t.start(0)?time:t.start(0))=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 0===e?v():v(0,e)},t.prototype.buffered=function(){var e=this.el_.vjs_getProperty("buffered");return 0===e.length?v():v(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 l.a.performance&&"function"==typeof l.a.performance.now?e.creationTime=l.a.performance.now():l.a.performance&&l.a.performance.timing&&"number"==typeof l.a.performance.timing.navigationStart&&(e.creationTime=l.a.Date.now()-l.a.performance.timing.navigationStart),e},t}(h),w=["rtmpConnection","rtmpStream","preload","defaultPlaybackRate","playbackRate","autoplay","loop","controls","volume","muted","defaultMuted"],_=["networkState","readyState","initialTime","startOffsetTime","paused","ended","videoWidth","videoHeight"],j=S.prototype;function T(e){var t=e.charAt(0).toUpperCase()+e.slice(1);j["set"+t]=function(t){return this.el_.vjs_setProperty(e,t)}}function P(e){j[e]=function(){return this.el_.vjs_getProperty(e)}}for(var i=0;i=10},h.withSourceHandlers(S),S.nativeSourceHandler={},S.nativeSourceHandler.canPlayType=function(e){return e in S.formats?"maybe":""},S.nativeSourceHandler.canHandleSource=function(source,e){var t,r,n=void 0;return source.type?n=source.type.replace(/;.*/,"").toLowerCase():(t=source.src,n=(r=d.getFileExtension(t))?"video/"+r:""),S.nativeSourceHandler.canPlayType(n)},S.nativeSourceHandler.handleSource=function(source,e,t){e.setSrc(source.src)},S.nativeSourceHandler.dispose=function(){},S.registerSourceHandler(S.nativeSourceHandler),S.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},S.onReady=function(e){var t=f.$("#"+e),r=t&&t.tech;r&&r.el()&&S.checkReady(r)},S.checkReady=function(e){e.el()&&(e.el().vjs_getProperty?e.triggerReady():this.setTimeout(function(){S.checkReady(e)},50))},S.onEvent=function(e,t){var r=f.$("#"+e).tech,n=Array.prototype.slice.call(arguments,2);r.setTimeout(function(){r.trigger(t,n)},1)},S.onError=function(e,t){var r=f.$("#"+e).tech;if("srcnotfound"===t)return r.error(4);"string"==typeof t?r.error("FLASH: "+t):(t.origin="flash",r.error(t))},S.version=function(){var e="0,0,0";try{e=new l.a.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(t){try{m.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(e=(m.plugins["Shockwave Flash 2.0"]||m.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(e){}}return e.split(",")},S.embed=function(e,t,r,n){var code=S.getEmbedCode(e,t,r,n);return f.createEl("div",{innerHTML:code}).childNodes[0]},S.getEmbedCode=function(e,t,r,n){var o="",c="",l="";return t&&Object.getOwnPropertyNames(t).forEach(function(e){o+=e+"="+t[e]+"&"}),r=y({movie:e,flashvars:o,allowScriptAccess:"always",allowNetworking:"all"},r),Object.getOwnPropertyNames(r).forEach(function(e){c+=''}),n=y({data:e,width:"100%",height:"100%"},n),Object.getOwnPropertyNames(n).forEach(function(e){l+=e+'="'+n[e]+'" '}),'"+c+""},function(e){e.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},e.streamFromParts=function(e,t){return e+"&"+t},e.streamToParts=function(e){var t={connection:"",stream:""};if(!e)return t;var r=e.search(/&(?![\w-]+=)/),n=void 0;return-1!==r?n=r+1:0===(r=n=e.lastIndexOf("/")+1)&&(r=n=e.length),t.connection=e.substring(0,r),t.stream=e.substring(n,e.length),t},e.isStreamingType=function(t){return t in e.streamingFormats},e.RTMP_RE=/^rtmp[set]?:\/\//i,e.isStreamingSrc=function(t){return e.RTMP_RE.test(t)},e.rtmpSourceHandler={},e.rtmpSourceHandler.canPlayType=function(t){return e.isStreamingType(t)?"maybe":""},e.rtmpSourceHandler.canHandleSource=function(source,t){var r=e.rtmpSourceHandler.canPlayType(source.type);return r||(e.isStreamingSrc(source.src)?"maybe":"")},e.rtmpSourceHandler.handleSource=function(source,t,r){var n=e.streamToParts(source.src);t.setRtmpConnection(n.connection),t.setRtmpStream(n.stream)},e.registerSourceHandler(e.rtmpSourceHandler)}(S),h.getTech("Flash")?(n.a.log.warn("Not using videojs-flash as it appears to already be registered"),n.a.log.warn("videojs-flash should only be used with video.js@6 and above")):n.a.registerTech("Flash",S),S.VERSION="2.2.1"}}]);