try{
//core.js-4.40.0
try{!function(){var OO={VERSION:{core:{releaseVersion:"4.40.0",rev:"<CORE_REV>"}},playerParams:{core_version:4,vast_proxy_url:"http://player.ooyala.com/adinsertion/vast_proxy"}};(function(){return function e(t,i,n){function a(s,o){if(!i[s]){if(!t[s]){var l="function"==typeof require&&require;if(!o&&l)return l(s,!0);if(r)return r(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=i[s]={exports:{}};t[s][0].call(u.exports,function(e){return a(t[s][1][e]||e)},u,u.exports,e,t,i,n)}return i[s].exports}for(var r="function"==typeof require&&require,s=0;s<n.length;s++)a(n[s]);return a}})()({1:[function(e,t,i){OO||(OO={})},{}],2:[function(e,t,i){e("./InitOO.js"),window._||(window._=e("underscore")),OO._||(OO._=window._.noConflict())},{"./InitOO.js":1,underscore:36}],3:[function(e,t,i){!function(e,t,i){e.getRandomString=function(){return Math.random().toString(36).substring(7)},e.safeClone=function(n){if(t.isNumber(n)||t.isString(n)||t.isBoolean(n)||t.isFunction(n)||t.isNull(n)||t.isUndefined(n))return n;var a=n instanceof Array?[]:{};try{i.extend(!0,a,n)}catch(t){e.log("deep clone error",t)}return a},e.d=function(){e.isDebug&&e.log.apply(e,arguments),e.$("#OOYALA_DEBUG_CONSOLE").append(JSON.stringify(e.safeClone(arguments))+"<br>")},e.inherit=function(t,i){if("function"!=typeof t)return e.log("invalid inherit, ParentClass need to be a class",t),null;var n=function(){t.apply(this,arguments),"function"==typeof i&&i.apply(this,arguments)},a=new t;return e._.extend(n.prototype,a),n.prototype.parentClass=a,n};var n={};e.attachStyle=function(e,t){var a=i('<style type="text/css">'+e+"</style>").appendTo("head");n[t]=n[t]||[],n[t].push(a)},e.removeStyles=function(t){e._.each(n[t],function(e){e.remove()})},e.getInnerProperty=function(e,i){for(var n=e,a=i;a.length>0;){var r=a.shift();if(t.isNull(n)||!t.isObject(n)||t.isFunction(n)||t.isArray(n))return null;n=n[r]}return n},e.formatSeconds=function(e){var t=parseInt(e,10)%60,i=parseInt(e/3600,10),n=parseInt((e-3600*i)/60,10);return i<10&&(i="0"+i),n<10&&(n="0"+n),t<10&&(t="0"+t),parseInt(i,10)>0?i+":"+n+":"+t:n+":"+t},e.timeStringToSeconds=function(e){var i=(e||"").split(":");return t.reduce(i,function(e,t){return 60*e+parseInt(t,10)},0)},e.leftPadding=function(e,t){for(var i=e?e.toString():"";i.length<t;)i="0"+i;return i},e.getColorString=function(t){return"#"+e.leftPadding(t.toString(16),6).toUpperCase()},e.hexToRgb=function(e){return[(16711680&e)>>16,(65280&e)>>8,255&e]},e.changeColor=function(t,i,n){var a=n?Math.max:Math.min,r=n?0:255,s=Math.round(255*i)*(n?-1:1),o=e.hexToRgb(t);return[e.leftPadding(a(o[0]+s,r).toString(16),2),e.leftPadding(a(o[1]+s,r).toString(16),2),e.leftPadding(a(o[2]+s,r).toString(16),2)].join("")},e.decode64=function(e){e=e.replace(/\n/g,"");var t,i="",n=0,a=[];if(window.atob)return atob(e);do{for(t=0;t<4;t++)a[t]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(n++));i+=String.fromCharCode(a[0]<<2|a[1]>>4,64==a[2]?0:(15&a[1])<<4|a[2]>>2,64==a[3]?0:(3&a[2])<<6|a[3])}while(n<e.length);return i.replace(/\0/g,"")},e.pixelPing=function(t){var i=new Image;i.onerror=i.onabort=function(){e.d("onerror:",t)},i.src=e.getNormalizedTagUrl(t)},e.pixelPings=function(i){t.isEmpty(i)||t.each(i,function(t){e.pixelPing(t)},this)},e.stringToBoolean=function(e){return"string"==typeof e?e.toLowerCase().indexOf("true")>-1||e.toLowerCase().indexOf("yes")>-1:!!e},e.regexEscape=function(e){return e.replace(/[<>()\[\]{}]/g,"\\$&")},e.getNormalizedTagUrl=function(i,n){var a=(new Date).getTime(),r=escape(document.URL),s=function(n,a){t.each(n,function(t){var n=new RegExp("("+e.regexEscape(t)+")","gi");i=i.replace(n,a)},this)};return s(e.TEMPLATES.RANDOM_PLACE_HOLDER,a),s(e.TEMPLATES.REFERAK_PLACE_HOLDER,r),n&&s(e.TEMPLATES.EMBED_CODE_PLACE_HOLDER,n),i},e.safeSeekRange=function(e){return{start:e.length>0?e.start(0):0,end:e.length>0?e.end(0):0}},e.loadedJS=e.loadedJS||{},e.jsOnSuccessList=e.jsOnSuccessList||{},e.safeFuncCall=function(t){if("function"==typeof t)try{t.apply()}catch(t){e.log("Can not invoke function!",t)}},e.loadScriptOnce=function(t,n,a,r){return e.jsOnSuccessList[t]=e.jsOnSuccessList[t]||[],e.loadedJS[t]?("loaded"===e.loadedJS[t]?e.safeFuncCall(n):"loading"===e.loadedJS[t]&&e.jsOnSuccessList[t].unshift(n),!1):(e.loadedJS[t]="loading",i.ajax({url:t,type:"GET",cache:!0,dataType:"script",timeout:r||15e3,success:function(){e.loadedJS[t]="loaded",e.jsOnSuccessList[t].unshift(n),e._.each(e.jsOnSuccessList[t],function(t){e.safeFuncCall(t)},this),e.jsOnSuccessList[t]=[]},error:function(){e.safeFuncCall(a)}}),!0)};try{e.localStorage=window.localStorage}catch(t){e.log(t)}e.localStorage||(e.localStorage={getItem:function(e){return e&&this.hasOwnProperty(e)?unescape(document.cookie.replace(new RegExp("(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*"),"$1")):null},key:function(e){return unescape(document.cookie.replace(/\s*\=(?:.(?!;))*$/,"").split(/\s*\=(?:[^;](?!;))*[^;]?;\s*/)[e])},setItem:function(e,t){e&&(document.cookie=escape(e)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/",this.length=document.cookie.match(/\=/g).length)},length:0,removeItem:function(e){e&&this.hasOwnProperty(e)&&(document.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/",this.length--)},hasOwnProperty:function(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)}},e.localStorage.length=(document.cookie.match(/\=/g)||e.localStorage).length),e.setItem=function(t,i){try{e.localStorage.setItem(t,i)}catch(t){e.log(t)}},e.ensureNumber=function(e,i){var n;return(null===e||t.isArray(e))&&(e=NaN),n=t.isNumber(e)?e:Number(e),isFinite(n)?n:void 0===i?null:i},e.JSON=window.JSON}(OO,OO._,OO.$)},{}],4:[function(e,t,i){if(e("./InitAnalyticsNamespace.js"),!OO.Analytics.AD_TYPE){OO.Analytics.AD_TYPE={LINEAR_OVERLAY:"linearOverlay",NONLINEAR_OVERLAY:"nonlinearOverlay",LINEAR_VIDEO:"linearVideo",COMPANION:"companion"}}if(!OO.Analytics.STREAM_TYPE){OO.Analytics.STREAM_TYPE={VOD:"vod",LIVE_STREAM:"liveStream"}}if(!OO.Analytics.ERROR_CODE){var n={100:"General Error"};OO.Analytics.ERROR_CODE=n}if(!OO.Analytics.EVENTS){OO.Analytics.EVENTS={VIDEO_PLAYER_CREATED:"video_player_created",VIDEO_ELEMENT_CREATED:"video_element_created",INITIAL_PLAYBACK_REQUESTED:"initial_playback_requested",VIDEO_CONTENT_COMPLETED:"video_content_completed",PLAYBACK_COMPLETED:"playback_completed",VIDEO_PLAY_REQUESTED:"video_play_requested",VIDEO_PAUSE_REQUESTED:"video_pause_requested",VIDEO_PLAYING:"video_playing",VIDEO_PAUSED:"video_paused",VIDEO_REPLAY_REQUESTED:"video_replay_requested",VIDEO_SOURCE_CHANGED:"video_source_changed",VIDEO_STREAM_METADATA_UPDATED:"video_stream_metadata_updated",VIDEO_CONTENT_METADATA_UPDATED:"video_content_metadata_updated",STREAM_TYPE_UPDATED:"stream_type_updated",VIDEO_SEEK_REQUESTED:"video_seek_requested",VIDEO_SEEK_COMPLETED:"video_seek_completed",VIDEO_STREAM_DOWNLOADING:"video_stream_downloading",VIDEO_BUFFERING_STARTED:"video_buffering_started",VIDEO_BUFFERING_ENDED:"video_buffering_ended",VIDEO_STREAM_BITRATE_PROFILES:"video_stream_bitrate_profiles",VIDEO_STREAM_TARGET_BITRATE_REQUESTED:"video_stream_target_bitrate_requested",VIDEO_STREAM_BITRATE_CHANGED:"video_stream_bitrate_changed",VIDEO_STREAM_POSITION_CHANGED:"video_stream_position_changed",VIDEO_ERROR:"video_error",WILL_PLAY_FROM_BEGINNING:"willPlayFromBeginning",INITIAL_PLAY_STARTING:"initialPlayStarting",PLAYBACK_READY:"playbackReady",API_ERROR:"apiError",BITRATE_INITIAL:"bitrateInitial",BITRATE_FIVE_SEC:"bitrateFiveSec",BITRATE_STABLE:"bitrateStable",PLAYBACK_START_ERROR:"playbackStartError",PLAYBACK_MIDSTREAM_ERROR:"playbackMidstreamError",PLUGIN_LOADED:"pluginLoaded",VC_PLUGIN_ERROR:"videoPluginError",AD_SDK_LOADED:"adSdkLoaded",AD_SDK_LOAD_FAILURE:"adSdkLoadFailed",AD_REQUEST:"adRequest",AD_REQUEST_SUCCESS:"adRequestSuccess",AD_REQUEST_ERROR:"adRequestError",AD_REQUEST_EMPTY:"adRequestEmpty",AD_PLAYBACK_ERROR:"adPlaybackError",AD_SDK_IMPRESSION:"adSdkImpression",AD_BREAK_STARTED:"ad_break_started",AD_BREAK_ENDED:"ad_break_ended",AD_POD_STARTED:"ad_pod_started",AD_POD_ENDED:"ad_pod_ended",AD_STARTED:"ad_started",AD_ENDED:"ad_ended",AD_SKIPPED:"ad_skipped",AD_ERROR:"ad_error",AD_CLICKED:"ad_clicked",AD_IMPRESSION:"ad_impression",AD_COMPLETED:"adCompleted",AD_CLICKTHROUGH_OPENED:"ad_clickthrough_opened",SDK_AD_EVENT:"sdkAdEvent",REPORT_DISCOVERY_CLICK:"reportDiscoveryClick",REPORT_DISCOVERY_IMPRESSION:"reportDiscoveryImpression",FULLSCREEN_CHANGED:"fullscreen_changed",SSAI_PLAY_SINGLE_AD:"ssai_play_single_ad",SSAI_SINGLE_AD_PLAYED:"ssai_single_ad_played",SSAI_AD_TIMELINE_RECEIVED:"ssai_ad_timeline_received",VOLUME_CHANGED:"volume_changed",DESTROY:"destroy",ERROR:{GENERAL:"general_error",METADATA_LOADING:"metadata_loading_error",VIDEO_PLAYBACK:"video_playback_error",AUTHORIZATION:"authorization_error"}}}if(!OO.Analytics.EVENT_DATA){var a={VideoElementData:function(e){var t=OO._.bind(r,this,"VideoElementData");this.streamUrl=t(e,"streamUrl",["string"])},VideoSourceData:function(e,t){var i=OO._.bind(r,this,"VideoSourceData");this.embedCode=i(e,"embedCode",["string"]),this.metadata=i(t,"metadata",["object"])},VideoContentMetadata:function(e,t,i,n,a,s){var o=OO._.bind(r,this,"VideoContentMetadata");this.title=o(e,"title",["string"]),this.description=o(t,"description",["string"]),this.duration=o(i,"duration",["number"]),this.closedCaptions=o(n,"closedCaptions",["object"]),this.contentType=o(a,"contentType",["string"]),this.hostedAtURL=o(s,"hostedAtURL",["string"])},StreamTypeMetadata:function(e){var t=OO._.bind(r,this,"StreamTypeMetadata");this.streamType=t(e,"streamType",["string"])},GeoMetadata:function(e){var t=OO._.bind(r,this,"GeoMetadata");null==e&&(e={}),e.country&&(this.country=t(e.country,"country",["string"])),e.region&&(this.region=t(e.region,"region",["string"])),e.state&&(this.state=t(e.state,"state",["string"])),e.city&&(this.city=t(e.city,"city",["string"])),e.latitude&&(this.latitude=t(e.latitude,"latitude",["number"])),e.longitude&&(this.longitude=t(e.longitude,"longitude",["number"])),e.dma&&(this.dma=t(e.dma,"dma",["string"]))},VideoDownloadingMetadata:function(e,t,i,n,a){var s=OO._.bind(r,this,"VideoDownloadingMetadata");this.currentTime=s(e,"currentTime",["number"]),this.totalStreamDuration=s(t,"totalStreamDuration",["number"]),this.streamBufferedUntilTime=s(i,"streamBufferedUntilTime",["number"]),this.seekableRangeStart=s(n,"seekableRangeStart",["number"]),this.seekableRangeEnd=s(a,"seekableRangeEnd",["number"])},VideoBufferingStartedData:function(e,t,i){var n=OO._.bind(r,this,"VideoBufferingStartedData");this.streamUrl=n(e,"streamUrl",["string"]),this.videoId=n(t,"videoId",["string"]),this.position=n(i,"position",["number"])},VideoBufferingEndedData:function(e){var t=OO._.bind(r,this,"VideoBufferingEndedData");this.streamUrl=t(e,"streamUrl",["string"])},VideoBitrateProfileLookupData:function(e){var t=OO._.bind(r,this,"VideoBitrateProfileLookupData")(e,"bitrateProfileArray",["array"])||[];this.profiles={};for(var i=0;i<t.length;i++){var n=t[i];n&&n.id&&(this.profiles[n.id]=n)}},VideoBitrateProfileData:function(e){var t=OO._.bind(r,this,"VideoBitrateProfileData");this.bitrate=t(e.bitrate,"bitrate",["number","string"]),this.height=t(e.height,"height",["number"]),this.width=t(e.width,"width",["number"]),this.id=t(e.id,"id",["string"])},VideoTargetBitrateData:function(e){var t=OO._.bind(r,this,"VideoTargetBitrateData");this.targetProfile=t(e,"targetProfile",["string"])},VideoSeekRequestedData:function(e){var t=OO._.bind(r,this,"VideoSeekRequestedData");this.seekingToTime=t(e,"seekingToTime",["number"])},VideoSeekCompletedData:function(e){var t=OO._.bind(r,this,"VideoSeekCompletedData");this.timeSeekedTo=t(e,"timeSeekedTo",["number"])},VideoStreamPositionChangedData:function(e,t,i,n){var a=OO._.bind(r,this,"VideoStreamPositionChangedData");this.streamPosition=a(e,"streamPosition",["number"]),this.totalStreamDuration=a(t,"totalStreamDuration",["number"]),this.videoId=a(i,"videoId",["string"]),this.currentLiveTime=a(n,"currentLiveTime",["number"])},VideoErrorData:function(e){var t=OO._.bind(r,this,"VideoErrorData");this.errorCode=t(e,"errorCode",["string"]),this.errorMessage=o(e)},GeneralErrorData:function(e,t){var i=OO._.bind(r,this,"GeneralErrorData");this.errorCode=i(e,"errorCode",["string"]),this.errorMessage=i(t,"errorMessage",["string"])},MetadataLoadingErrorData:function(e,t){var i=OO._.bind(r,this,"MetadataLoadingErrorData");this.errorCode=i(e,"errorCode",["string"]),this.errorMessage=i(t,"errorMessage",["string"])},VideoPlaybackErrorData:function(e,t){var i=OO._.bind(r,this,"VideoPlaybackErrorData");this.errorCode=i(e,"errorCode",["string"]),this.errorMessage=i(t,"errorMessage",["string"])},AuthorizationErrorData:function(e,t){var i=OO._.bind(r,this,"AuthorizationErrorData");this.errorCode=i(e,"errorCode",["string"]),this.errorMessage=i(t,"errorMessage",["string"])},AdPodStartedData:function(e){var t=OO._.bind(r,this,"AdPodStartedData");this.numberOfAds=t(e,"numberOfAds",["number"])},AdPodEndedData:function(e){var t=OO._.bind(r,this,"AdPodEndedData");this.adId=t(e,"adId",["string"])},AdStartedData:function(e,t){var i=OO._.bind(r,this,"AdStartedData");this.adType=i(e,"adType",["string"]),this.adMetadata=s(e,t)},LinearVideoData:function(e,t,i){var n=OO._.bind(r,this,"LinearVideoData");this.adId=n(e,"adId",["string"]),this.adDuration=n(t,"adDuration",["number"]),this.adPodPosition=n(i,"adPodPosition",["number"])},NonLinearOverlayData:function(e){var t=OO._.bind(r,this,"NonLinearOverlayData");this.adId=t(e,"adId",["string"])},AdEndedData:function(e,t){var i=OO._.bind(r,this,"AdEndedData");this.adType=i(e,"adType",["string"]),this.adId=i(t,"adId",["string"])},AdErrorData:function(e){var t=OO._.bind(r,this,"AdErrorData");this.error=t(e,"error",["string","object"])},AdClickedData:function(e){var t=OO._.bind(r,this,"AdClickedData");this.metadata=t(e,"metadata",["object"])},VideoPlayerCreatedData:function(e,t,i,n){var a=OO._.bind(r,this,"VideoPlayerCreatedData");this.playerCoreVersion=a(e,"playerCoreVersion",["string"]),this.params=a(t,"params",["object"]),this.embedCode=a(i,"embedCode",["string"]),this.playerUrl=a(n,"playerUrl",["string"]),this.pcode=a(this.params.pcode,"pcode",["string"])},InitialPlayStartingData:function(e,t,i,n,a,s,o,l,c,u,d){var h=OO._.bind(r,this,"VideoPlayerCreatedData");this.playerCoreVersion=h(e,"playerCoreVersion",["string"]),this.timeSinceInitialPlay=h(t,"timeSinceInitialPlay",["number"]),this.autoplayed=h(i,"autoplayed",["boolean"]),this.hadPreroll=h(n,"hadPreroll",["boolean"]),this.position=h(a,"position",["number"]),this.plugin=h(s,"plugin",["string"]),this.technology=h(o,"technology",["string"]),this.encoding=h(l,"encoding",["string"]),this.streamUrl=h(c,"streamUrl",["string"]),this.drm=h(u,"drm",["string"]),this.isLive=h(d,"isLive",["boolean"])},PlaybackReadyData:function(e,t,i){var n=OO._.bind(r,this,"PlaybackReadyData");this.playerCoreVersion=n(e,"playerCoreVersion",["string"]),this.timeSincePlayerCreated=n(t,"timeSincePlayerCreated",["number"]),this.pluginList=n(i,"pluginList",["array"])},ApiErrorData:function(e,t,i,n){var a=OO._.bind(r,this,"ApiErrorData");this.playerCoreVersion=a(e,"playerCoreVersion",["string"]),this.errorCode=a(t,"errorCode",["number"]),this.errorMessage=a(i,"errorMessage",["string"]),this.url=a(n,"url",["string"])},BitrateInitialData:function(e){var t=OO._.bind(r,this,"BitrateInitialData");this.bitrate=t(e,"bitrate",["number"])},BitrateFiveSecData:function(e){var t=OO._.bind(r,this,"BitrateFiveSecData");this.bitrate=t(e,"bitrate",["number"])},BitrateStableData:function(e){var t=OO._.bind(r,this,"BitrateStableData");this.bitrate=t(e,"bitrate",["number"])},PlaybackStartErrorData:function(e,t,i){var n=OO._.bind(r,this,"PlaybackStartErrorData");this.errorCodes=n(e,"errorCodes",["object"]),this.errorMessages=n(t,"errorMessages",["object"]),this.drm=n(i,"drm",["object"])},PlaybackMidstreamErrorData:function(e,t,i){var n=OO._.bind(r,this,"PlaybackMidstreamErrorData");this.errorCodes=n(e,"errorCodes",["object"]),this.errorMessages=n(t,"errorMessages",["object"]),this.position=n(i,"position",["number"])},PluginLoadedData:function(e,t,i,n){var a=OO._.bind(r,this,"PluginLoadedData");this.playerCoreVersion=a(e,"playerCoreVersion",["string"]),this.pluginType=a(t,"pluginType",["string"]),this.pluginName=a(i,"pluginName",["string"]),this.loadTime=a(n,"loadTime",["number"])},AdErrorData:function(e){var t=OO._.bind(r,this,"AdErrorData");this.error=t(e,"error",["string","object"])},AdRequestData:function(e,t){var i=OO._.bind(r,this,"AdRequestData");this.adPluginName=i(e,"adPluginName",["string"]),this.adPosition=i(t,"adPosition",["number"])},AdRequestSuccessData:function(e,t,i,n){var a=OO._.bind(r,this,"AdRequestSuccessData");this.adPluginName=a(e,"adPluginName",["string"]),this.adPosition=a(t,"adPosition",["number"]),this.responseTime=a(i,"responseTime",["number"]),this.timeSinceInitialPlay=a(n,"timeSinceInitialPlay",["number"])},AdRequestEmptyData:function(e,t,i,n,a){var s=OO._.bind(r,this,"AdRequestEmptyData");this.adPluginName=s(e,"adPluginName",["string"]),this.adPosition=s(t,"adPosition",["number"]),this.adTagUrl=s(i,"adTagUrl",["string"]),this.errorCodes=s(n,"errorCodes",["object"]),this.errorMessage=s(a,"errorMessage",["string"])},AdRequestErrorData:function(e,t,i,n,a,s){var o=OO._.bind(r,this,"AdRequestErrorData");this.adPluginName=o(e,"adPluginName",["string"]),this.adPosition=o(t,"adPosition",["number"]),this.adTagUrl=o(i,"adTagUrl",["string"]),this.errorCodes=o(n,"errorCodes",["object"]),this.errorMessage=o(a,"errorMessage",["string"]),this.isTimeout=o(s,"isTimeout",["boolean"])},AdPlaybackErrorData:function(e,t,i,n,a,s,o){var l=OO._.bind(r,this,"AdPlaybackErrorData");this.adPluginName=l(e,"adPluginName",["string"]),this.adPosition=l(t,"adPosition",["number"]),this.adTagUrl=l(i,"adTagUrl",["string"]),this.errorCodes=l(n,"errorCodes",["object"]),this.errorMessage=l(a,"errorMessage",["string"]),this.videoPluginList=l(s,"videoPluginList",["array"]),this.mediaFileUrl=l(o,"mediaFileUrl",["string"])},AdSdkImpressionData:function(e,t,i,n,a){var s=OO._.bind(r,this,"AdSdkImpressionData");this.adPluginName=s(e,"adPluginName",["string"]),this.adPosition=s(t,"adPosition",["number"]),this.adLoadTime=s(i,"adLoadTime",["number"]),this.adProtocol=s(n,"adProtocol",["string"]),this.adType=s(a,"adType",["string"])},AdCompletedData:function(e,t,i,n){var a=OO._.bind(r,this,"AdCompletedData");this.adPluginName=a(e,"adPluginName",["string"]),this.timeSinceImpression=a(t,"timeSinceImpression",["number"]),this.skipped=a(i,"skipped",["boolean"]),this.adTagUrl=a(n,"adTagUrl",["string"])},LoadAdSdkData:function(e,t){var i=OO._.bind(r,this,"LoadAdSdkData");this.adPluginName=i(e,"adPluginName",["string"]),this.playerCoreVersion=i(t,"playerCoreVersion",["string"])},LoadAdSdkFailureData:function(e,t,i){var n=OO._.bind(r,this,"LoadAdSdkFailureData");this.adPluginName=n(e,"adPluginName",["string"]),this.playerCoreVersion=n(t,"playerCoreVersion",["string"]),this.errorMessage=n(i,"errorMessage",["string"])},ReportDiscoveryImpressionEventData:function(e){var t=OO._.bind(r,this,"ReportDiscoveryImpressionEventData");this.metadata=t(e,"metadata",["object"])},ReportDiscoveryClickEventData:function(e){var t=OO._.bind(r,this,"ReportDiscoveryClickEventData");this.metadata=t(e,"metadata",["object"])},SdkAdEventData:function(e,t,i){var n=OO._.bind(r,this,"SdkAdEventData");this.adPluginName=n(e,"adPluginName",["string"]),this.adEventName=n(t,"adEventName",["string"]),this.adEventData=n(i,"adEventData",["object"])},FullscreenChangedData:function(e){var t=OO._.bind(r,this,"FullscreenChangedData");this.changingToFullscreen=t(e,"changingToFullscreen",["boolean"])},SsaiPlaySingleAdData:function(e){var t=OO._.bind(r,this,"SsaiPlaySingleAdData");this.ad=t(e,"ad",["object"])},SsaiAdTimelineReceivedData:function(e){var t=OO._.bind(r,this,"SsaiAdTimelineReceivedData");this.timeline=t(e,"timeline",["array"])},VolumeChangedData:function(e){var t=OO._.bind(r,this,"VolumeChangedData");this.currentVolume=t(e,"currentVolume",["number"])}},r=function(e,t,i,n){for(var a=!0,r=t,s=0;s<n.length;s++){var o=n[s];if("string"===o){if(OO._.isString(r)){a=!1;break}}else if("object"===o){if(r&&OO._.isObject(r)){a=!1;break}}else if("array"===o)r&&OO._.isArray(r)&&(a=!1);else if("number"===o){var c=parseFloat(r);if(OO._.isNumber(r)){a=!1;break}if(!isNaN(c)){r=c,a=!1;break}}else if("boolean"===o)if(OO._.isBoolean(r))a=!1;else{if("true"===r){r=!0,a=!1;break}if("false"===r){r=!1,a=!1;break}}}if(!a)return r;l("Analytics.EVENT_DATA."+e+" being created with invalid "+i+". Should be one of these types ["+n+"] but was ["+typeof t+"].")},s=function(e,t){var i;switch(e){case OO.Analytics.AD_TYPE.LINEAR_VIDEO:i=new a.LinearVideoData(t.name,t.duration,t.indexInPod);break;case OO.Analytics.AD_TYPE.NONLINEAR_OVERLAY:i=new a.NonLinearOverlayData(t.id);break;default:l("Ad Type not recognized. Should be one of these values ["+OO._.values(OO.Analytics.AD_TYPE)+"] but was ["+e+"].")}return i},o=function(e){var t;return _.has(n,e)?t=n[e]:l("Error code not recognized. Error code provided was: "+e),t},l=function(e){OO.log("Error AnalyticsConstants: "+e)};OO.Analytics.EVENT_DATA=a}if(!OO.Analytics.REQUIRED_PLUGIN_FUNCTIONS){OO.Analytics.REQUIRED_PLUGIN_FUNCTIONS=["getName","getVersion","setPluginID","getPluginID","init","setMetadata","destroy","processEvent"]}},{"./InitAnalyticsNamespace.js":6}],5:[function(e,t,i){e("../../html5-common/js/utils/InitModules/InitOOUnderscore.js"),e("./InitAnalyticsNamespace.js"),e("./AnalyticsConstants.js"),OO.Analytics.RecordedEvent=function(e,t,i){this.timeStamp=e,this.eventName=t,this.params=i},OO.Analytics.Framework=function(){var e,t=OO._,i={},n=[],a=!0,r={},s=0,o=!0,l=t.bind(function(e){if(!t.isFunction(e))throw E("Trying to make private function but "+e+" is not a function.");return t.bind(e,this)},this);this.setPluginMetadata=function(i){var n=!1;if(e&&OO.log(E("Trying to run setPluginMetadata more than once. Ignoring new data.")),t.isObject(i)){e=i;for(var a=this.getPluginIDList(),r=0;r<a.length;r++){var s=d(a[r]);A(s)}n=!0}else OO.log(E("Calling setPluginMetadata without valid metadata object. Defaulting to no metadata"));return n},this.destroy=l(function(){for(var a in OO.Analytics.UnregisterFrameworkInstance(this),i)this.unregisterPlugin(a);t=null,i=null,n=null,e=null,r=null});var c=l(function(e,t){if(a&&n.length<500){var i=(new Date).getTime(),r=new OO.Analytics.RecordedEvent(i,e,t);n.push(r)}else u()}),u=(l(function(){n=[]}),l(function(){a=!0}),l(function(){a=!1}));this.getRecordedEvents=function(){return n?t.clone(n):[]},this.registerPlugin=function(t){var n,a,r=!1;if(t||(OO.log(E("Trying to register plugin class that is a falsy value.")),r=!0),!r)try{a=new t(this)}catch(e){OO.log(e),OO.log(E("Error was thrown during plugin creation.")),r=!0}if(r||(this.validatePlugin(a)?(p(a,"init"),e&&A(a)):r=!0),r||((n=h(a))?i[n]||(i[n]={factory:t,instance:a,active:!0},p(a,"setPluginID",[n])):r=!0),r)if(n)OO.log(E("'"+n+"' is not valid and was not registered."));else{var s=p(a,"getName");s?OO.log(E("'"+s+"' is not valid and was not registered.")):OO.log(E("Plugin validation failed and was not registered."))}return n},this.unregisterPlugin=function(e){var t=!1;if(e&&i&&i[e]){var n=d(e);p(n,"destroy"),delete i[e],t=!0}return t},this.validatePlugin=function(e){var i=!0;if(e||(i=!1,OO.log(E("Plugin has falsy value and is not valid. Actual value: "),e)),i){for(var n=0;n<OO.Analytics.REQUIRED_PLUGIN_FUNCTIONS.length;n++){var a=OO.Analytics.REQUIRED_PLUGIN_FUNCTIONS[n];if(!e.hasOwnProperty(a)||"function"!=typeof e[a]){if(i=!1,e.getName&&"function"==typeof e.getName)try{OO.log(E("Plugin '"+e.getName()+"' missing function: "+a))}catch(e){OO.log(E("Plugin missing function: "+a))}else OO.log(E("Plugin missing function: "+a));break}}if(i)try{var r=e.getName();r&&t.isString(r)||(OO.log(E("Plugin does not have 'string' as return type of getName() or is empty string")),i=!1)}catch(e){OO.log(E("Plugin throws error on call to getName")),i=!1}if(i)try{var s=e.getVersion();s&&t.isString(s)||(OO.log(E("Plugin does not have 'string' as return type of getVersion() or is empty string")),i=!1)}catch(e){OO.log(E("Plugin throws error on call to getVersion")),i=!1}}return i},this.getPluginIDList=function(){var e=[];if(i)for(var t in i)e.push(t);return e};var d=l(function(e){var t;return i&&i[e]&&(t=i[e].instance),t});this.isPluginActive=function(e){return!!(e&&i&&i[e]&&t.isBoolean(i[e].active))&&i[e].active},this.makePluginActive=function(e){var t=!1;return e&&i&&i[e]&&(i[e].active=!0,t=!0),t},this.makePluginInactive=function(e){var t=!1;return e&&i&&i[e]&&(i[e].active=!1,t=!0),t},this.flattenEvents=function(e){for(var i=[],n=t.keys(e),a=0;a<n.length;a++){var r=e[n[a]];if("object"==typeof r)for(var s=this.flattenEvents(r),o=0;o<s.length;o++){var l=s[o];i.push(l)}else i.push(r)}return i},this.createEventDictionary=function(){var e=null,t=this.flattenEvents(OO.Analytics.EVENTS);if(t&&t instanceof Array){e={};for(var i=0;i<t.length;i++){e[t[i]]=!0}}return e},r=this.createEventDictionary(),this.stopPublishingEvents=function(){o=!1},this.resumePublishingEvents=function(){o=!0},this.publishEvent=function(e,n){if(!o)return!1;var s=!1;if(r[e]){var l;for(l in t.isArray(n)||(n=[]),a&&c(e,n),i)if(this.isPluginActive(l)){var u=d(l);p(u,"processEvent",[e,n])}s=!0}else OO.log(E("Event '"+e+"' being published and it's not in the list of OO.Analytics.EVENTS"));return s};var h=l(function(e){var t=null;if(e){var n=p(e,"getName"),a=p(e,"getVersion");n&&a&&(i[t=s+"_"+n+"_"+a]?(OO.log(E("Failed to create a unique name for plugin "+n+"_"+a)),t=null):s++,s>20&&OO.log(E("You have tried to create more than 20 unique plugin ids. There is probably an infinite loop or some other error.")))}return t}),A=l(function(t){if(e){var i=p(t,"getName");if(!i)return void OO.log(E("Trying to pass in metadata to plugin that does not have valid name"));var n=e[i];p(t,"setMetadata",[n])}}),E=function(e){return"ERROR Analytics Framework: "+e},p=l(function(e,i,n){OO.DEBUG&&f(i);try{if(t.isFunction(e[i]))return e[i].apply(e,n)}catch(n){try{e&&t.isFunction(e.getName)&&(OO.log(E("Error occurred during call to function '"+i+"' on plugin '"+e.getName()+"'\n")),OO.log(n))}catch(e){OO.log(E("Error occurred during call to function '"+i+"' on plugin\n",n))}}return null}),f=l(function(e){t.contains(OO.Analytics.REQUIRED_PLUGIN_FUNCTIONS,e)||OO.log(E("Calling function '"+e+"' in framework code and it's not in the REQUIRED_PLUGIN_FUNCTIONS list."))});OO.Analytics.RegisterFrameworkInstance(this)}},{"../../html5-common/js/utils/InitModules/InitOOUnderscore.js":2,"./AnalyticsConstants.js":4,"./InitAnalyticsNamespace.js":6}],6:[function(e,t,i){e("../../html5-common/js/utils/InitModules/InitOO.js"),e("../../html5-common/js/utils/InitModules/InitOOUnderscore.js"),OO.Analytics||(OO.Analytics={}),OO.Analytics.FrameworkInstanceList||(OO.Analytics.FrameworkInstanceList=[]),OO.Analytics.PluginFactoryList||(OO.Analytics.PluginFactoryList=[]),OO.Analytics.RegisterPluginFactory||(OO.Analytics.RegisterPluginFactory=function(e){if(OO.Analytics.PluginFactoryList.push(e),OO.Analytics.FrameworkInstanceList&&OO.Analytics.FrameworkInstanceList.length)for(var t=0;t<OO.Analytics.FrameworkInstanceList.length;t++)OO.Analytics.FrameworkInstanceList[t].registerPluginFactory(e)}),OO.Analytics.FrameworkRegistrationObject||(OO.Analytics.FrameworkRegistrationObject=function(e){this.registerPluginFactory=function(t){e.registerPlugin(t)}}),OO.Analytics.RegisterFrameworkInstance||(OO.Analytics.RegisterFrameworkInstance=function(e){var t=new OO.Analytics.FrameworkRegistrationObject(e);if(e.frameworkRegistrationObject=t,OO.Analytics.FrameworkInstanceList.push(t),OO._.isArray(OO.Analytics.PluginFactoryList)&&OO.Analytics.PluginFactoryList.length>0)for(var i=0;i<OO.Analytics.PluginFactoryList.length;i++)e.registerPlugin(OO.Analytics.PluginFactoryList[i])}),OO.Analytics.UnregisterFrameworkInstance||(OO.Analytics.UnregisterFrameworkInstance=function(e){if(e){var t=e.frameworkRegistrationObject;t&&(OO.Analytics.FrameworkInstanceList=OO._.without(OO.Analytics.FrameworkInstanceList,t))}})},{"../../html5-common/js/utils/InitModules/InitOO.js":1,"../../html5-common/js/utils/InitModules/InitOOUnderscore.js":2}],7:[function(e,t,i){e("../framework/InitAnalyticsNamespace.js"),e("../../html5-common/js/utils/utils.js");var n=function(e){var t,i=e,n=!1,a=null,r=null,s="",o=null,l=!1,c=!1,u=!1,d=null,h=null,A=!1,E=!1,p=!1,f=!1,T=0,g=0,y=0,m=[],_=!1,S=!1,O=null;this.ooyalaReporter=null,this.videoStartSent=!1,this.testMode=!1,this.getName=function(){return"iq"},this.getVersion=function(){return"v1"},this.getAutoPlay=function(){return n},this.getIqEnabled=function(){return c},this.getAllowThrift=function(){return u},this.getThriftPcode=function(){return d},this.getJsonPcode=function(){return h},this.setPluginID=function(e){t=e},this.getPluginID=function(){return t},this.init=function(){this.testMode?v():this.ooyalaReporter||OO.loadScriptOnce("//analytics.ooyala.com/static/v3/analytics.js",v,b,3e3)},this.setMetadata=function(e){e&&e.metadata&&(null!=e.metadata.enabled&&(c=1==e.metadata.enabled||"true"===e.metadata.enabled),null!=e.metadata.allowThrift&&(u=1==e.metadata.allowThrift||"true"===e.metadata.allowThrift),null!=e.metadata.thriftPcode&&(d=e.metadata.thriftPcode),null!=e.metadata.jsonPcode&&(h=e.metadata.jsonPcode,a=h)),OO.log("Analytics Template: PluginID '"+t+"' received this metadata:",e)},this.processAdTimeline=function(e){if(null===e||"array"!=typeof e)return[];for(var t=[],i=0,n=0;n<e.length;n++){var a=Math.floor(1e3*e[n].duration),r=Math.floor(1e3*e[n].start);i+=a;var s={adId:e[n].id,start:r,end:r+a,duration:a,offset:i};t.push(s)}return t},this.updateAdOffset=function(e){if(null!==m){y=0;for(var t=0;t<m.length;t++)m[t].start<=e&&(y+=m[t].duration)}},this.isSSAIAdPlaying=function(e){for(var t=0;t<m.length;t++)if(e>=m[t].start&&e<m[t].end)return!0;return!1},this.reportAdPlaythrough=function(e,t,i){var n=0,a=!1;if(OO._.isFinite(t)&&t>=0&&OO._.isFinite(i)&&i>0){var r=Math.floor(1e3*t),s=Math.floor(1e3*i);r>=.25*s&&!A?(n=.25,A=!0,a=!0):r>=.5*s&&!E?(n=.5,E=!0,a=!0):r>=.75*s&&!p?(n=.75,p=!0,a=!0):r>=1*s&&!f&&(n=1,f=!0,a=!0),a&&(OO.log("IQ: Reported: reportCustomEvent() for event: adPlaythrough with args:"+JSON.stringify(n)),this.ooyalaReporter.reportCustomEvent(e,{adEventName:"adPlaythrough",percent:n}))}},this.processEvent=function(e,i){switch(OO.log("IQ: PluginID '"+t+"' received this event '"+e+"' with these params:",i),e){case OO.Analytics.EVENTS.VIDEO_STREAM_METADATA_UPDATED:if(i&&i[0]){var b=i[0].modules;b&&this.setMetadata(b.iq)}break;case OO.Analytics.EVENTS.VIDEO_SOURCE_CHANGED:i&&i[0]&&i[0].metadata&&(n=i[0].metadata.autoPlay,s=i[0].embedCode!=o?o:"",o=i[0].embedCode);break;case OO.Analytics.EVENTS.SSAI_AD_TIMELINE_RECEIVED:i&&i[0]&&i[0].timeline&&(m=this.processAdTimeline(i[0].timeline)),this.updateAdOffset(T);break;case OO.Analytics.EVENTS.SSAI_PLAY_SINGLE_AD:for(var v=!1,I=0;I<m.length;I++)m[I].adId===i[0].ad.adId&&(v=!0);if(!v){var N=Math.floor(1e3*i[0].ad.duration),D={adId:i[0].ad.adId,start:T,end:T+N,duration:N,offset:0};m.push(D)}_=!0;break;case OO.Analytics.EVENTS.SSAI_SINGLE_AD_PLAYED:_=!1,S=!0}if(e!==OO.Analytics.EVENTS.STREAM_TYPE_UPDATED)if(e!==OO.Analytics.EVENTS.STREAM_TYPE_UPDATED){if(c)if(this.ooyalaReporter)switch(e){case OO.Analytics.EVENTS.VIDEO_CONTENT_METADATA_UPDATED:if(i&&i[0]){S=!1,_=!1,T=0,g=0,y=0,m=[];var C=i[0].duration;this.ooyalaReporter.initializeMedia(o,"ooyala"),OO.log("IQ: Reported: initializeMedia() with args: "+o+", ooyala"),this.ooyalaReporter.setMediaDuration(C),OO.log("IQ: Reported: setMediaDuration() with args: "+C)}break;case OO.Analytics.EVENTS.VIDEO_PLAYER_CREATED:if(i&&i[0]&&i[0].params){var R=i[0];a=R.params.pcode,null!=h&&(a=h),r=R.params.playerBrandingId,(V=i[0]).qosEventName=e,this.ooyalaReporter._base.pcode=a,this.ooyalaReporter.reportCustomEvent(e,V),OO.log("IQ: Reported: reportCustomEvent() for event: "+e+" with args:"+JSON.stringify(V)),u&&null==d&&null==h||(this.ooyalaReporter.reportPlayerLoad(),OO.log("IQ: Reported: reportPlayerLoad()"))}break;case OO.Analytics.EVENTS.INITIAL_PLAYBACK_REQUESTED:u&&null==d&&null==h||(OO.log("IQ: Reported: reportPlayRequested() with args: "+n),this.ooyalaReporter.reportPlayRequested(n));break;case OO.Analytics.EVENTS.VIDEO_STREAM_POSITION_CHANGED:if(i&&i[0]&&i[0].streamPosition>0)if(l||_)l&&this.reportAdPlaythrough(e,i[0].streamPosition,i[0].totalStreamDuration);else if(!u||null!=d||null!=h){var L=i[0].streamPosition;OO._.isFinite(i[0].currentLiveTime)&&i[0].currentLiveTime>0&&(L=i[0].currentLiveTime,y=0);var P=Math.floor(1e3*L);if(OO._.isFinite(L)&&L>0){if(S){if(this.isSSAIAdPlaying(P))break;this.updateAdOffset(P),S=!1}var w=(T=P)-y;w>=0&&w>g&&(g=w,this.ooyalaReporter.reportPlayHeadUpdate(w),OO.log("IQ: Reported: reportPlayHeadUpdate() with args: "+w))}}break;case OO.Analytics.EVENTS.VIDEO_PAUSED:this.ooyalaReporter.reportPause(),OO.log("IQ: Reported: reportPause()");break;case OO.Analytics.EVENTS.VIDEO_PLAYING:u&&null==d&&null==h||(this.videoStartSent?(this.ooyalaReporter.reportResume(),OO.log("IQ: Reported: reportResume()")):(s!=o?(this.ooyalaReporter.reportPlaybackStarted(),OO.log("IQ: Reported: reportPlaybackStarted()")):(this.ooyalaReporter.reportReplay(),OO.log("IQ: Reported: reportReplay()")),s=o,this.videoStartSent=!0));break;case OO.Analytics.EVENTS.VIDEO_SEEK_COMPLETED:if(g=0,i&&i[0]){var k=Math.floor(1e3*i[0].timeSeekedTo);_=this.isSSAIAdPlaying(k),this.updateAdOffset(k),this.ooyalaReporter.reportSeek(T,k),OO.log("IQ: Reported: reportSeek() with args: "+T+", "+k),T=k}break;case OO.Analytics.EVENTS.PLAYBACK_COMPLETED:this.ooyalaReporter.reportComplete(),OO.log("IQ: Reported: reportComplete()");break;case OO.Analytics.EVENTS.VIDEO_REPLAY_REQUESTED:g=0,_=this.isSSAIAdPlaying(0),this.updateAdOffset(0);break;case OO.EVENTS.WILL_PLAY_FROM_BEGINNING:this.videoStartSent=!1;break;case OO.Analytics.EVENTS.VIDEO_BUFFERING_STARTED:case OO.Analytics.EVENTS.VIDEO_BUFFERING_ENDED:case OO.Analytics.EVENTS.INITIAL_PLAY_STARTING:case OO.Analytics.EVENTS.PLAYBACK_READY:case OO.Analytics.EVENTS.API_ERROR:case OO.Analytics.EVENTS.BITRATE_INITIAL:case OO.Analytics.EVENTS.BITRATE_FIVE_SEC:case OO.Analytics.EVENTS.BITRATE_STABLE:case OO.Analytics.EVENTS.PLAYBACK_START_ERROR:case OO.Analytics.EVENTS.PLAYBACK_MIDSTREAM_ERROR:case OO.Analytics.EVENTS.PLUGIN_LOADED:(V=i&&i[0]?i[0]:{}).qosEventName=e,OO.log("IQ: Reported: reportCustomEvent() for event: "+e+" with args:"+JSON.stringify(V)),this.ooyalaReporter.reportCustomEvent(e,V);break;case OO.Analytics.EVENTS.AD_BREAK_STARTED:l=!0,this.ooyalaReporter.reportCustomEvent(e,{adEventName:e});break;case OO.Analytics.EVENTS.AD_BREAK_ENDED:l=!1,this.ooyalaReporter.reportCustomEvent(e,{adEventName:e});break;case OO.Analytics.EVENTS.AD_STARTED:A=!1,E=!1,p=!1,f=!1;case OO.Analytics.EVENTS.AD_REQUEST:case OO.Analytics.EVENTS.AD_REQUEST_SUCCESS:case OO.Analytics.EVENTS.AD_SDK_LOADED:case OO.Analytics.EVENTS.AD_SDK_LOAD_FAILURE:case OO.Analytics.EVENTS.AD_POD_STARTED:case OO.Analytics.EVENTS.AD_POD_ENDED:case OO.Analytics.EVENTS.AD_ENDED:case OO.Analytics.EVENTS.AD_SKIPPED:case OO.Analytics.EVENTS.AD_ERROR:case OO.Analytics.EVENTS.AD_REQUEST_EMPTY:case OO.Analytics.EVENTS.AD_REQUEST_ERROR:case OO.Analytics.EVENTS.AD_PLAYBACK_ERROR:case OO.Analytics.EVENTS.AD_IMPRESSION:case OO.Analytics.EVENTS.AD_SDK_IMPRESSION:case OO.Analytics.EVENTS.AD_COMPLETED:case OO.Analytics.EVENTS.AD_CLICKTHROUGH_OPENED:case OO.Analytics.EVENTS.AD_CLICKED:case OO.Analytics.EVENTS.SDK_AD_EVENT:i&&i[0]||(i=[]);var V=i[0];V||(V={}),V.adEventName?V.adEventName=e+":"+V.adEventName:V.adEventName=e,this.ooyalaReporter.reportCustomEvent(e,V),OO.log("IQ: Reported: reportCustomEvent() for event: "+e+" with args:"+JSON.stringify(V));break;case OO.Analytics.EVENTS.REPORT_DISCOVERY_IMPRESSION:if((!u||null!=d||null!=h)&&i&&i[0]&&i[0].metadata)try{V=i[0].metadata,OO.log("IQ: Reported: reportAssetImpression() with args: "+JSON.stringify(i[0])),this.ooyalaReporter.reportAssetImpression(V.asset,V.customData,V.uiTag,V.contentSource,V.pageSize,V.assetPosition)}catch(t){OO.log("IQ: Tried reporting event: "+e+" but received error: "+t)}break;case OO.Analytics.EVENTS.REPORT_DISCOVERY_CLICK:if((!u||null!=d||null!=h)&&i&&i[0]&&i[0].metadata)try{V=i[0].metadata,OO.log("IQ: Reported: reportAssetClick() with args: "+JSON.stringify(i[0])),this.ooyalaReporter.reportAssetClick(V.asset,V.customData,V.uiTag,V.contentSource,V.pageSize,V.assetPosition)}catch(t){OO.log("IQ: Tried reporting event: "+e+" but received error: "+t)}}else OO.log("Tried reporting event: "+e+" but ooyalaReporter is: "+this.ooyalaReporter)}else i&&i[1]&&((O=i[1]).countryCode=O.country,delete O.country,O.geoVendor=O.dma,delete O.dma,this.ooyalaReporter.setUserInfo(null,null,null,O));else i&&i[1]&&((O=i[1]).countryCode=O.country,delete O.country,O.geoVendor=O.dma,delete O.dma,this.ooyalaReporter.setUserInfo(null,null,null,O))},this.destroy=function(){i=null};var b=function(){OO._.isString(t)&&e.unregisterPlugin(t),this.destroy()},v=OO._.bind(function(){if(window.Ooyala){var e;if(this.ooyalaReporter=new Ooyala.Analytics.Reporter,i&&OO._.isFunction(i.getRecordedEvents)){e=i.getRecordedEvents();for(var t=0;t<e.length;t++)recordedEvent=e[t],this.processEvent(recordedEvent.eventName,recordedEvent.params)}var n=OO.VERSION.core.releaseVersion,a=!1;switch(OO.trackingLevel){case OO.TRACKING_LEVEL.DISABLED:case OO.TRACKING_LEVEL.ANONYMOUS:a=!0;break;case OO.TRACKING_LEVEL.DEFAULT:}this.ooyalaReporter.setDeviceInfo(null,null,null,a),this.ooyalaReporter.setPlayerInfo(r,"Ooyala Player",n)}else OO.log("IQ Plugin: Analytics SDK not loaded")},this)};OO.Analytics.RegisterPluginFactory(n),t.exports=n},{"../../html5-common/js/utils/utils.js":3,"../framework/InitAnalyticsNamespace.js":6}],8:[function(e,t,i){t.exports=function(e){if(Array.isArray(e))return e}},{}],9:[function(e,t,i){function n(e,t,i,n,a,r,s){try{var o=e[r](s),l=o.value}catch(e){return void i(e)}o.done?t(l):Promise.resolve(l).then(n,a)}t.exports=function(e){return function(){var t=this,i=arguments;return new Promise(function(a,r){var s=e.apply(t,i);function o(e){n(s,a,r,o,l,"next",e)}function l(e){n(s,a,r,o,l,"throw",e)}o(void 0)})}}},{}],10:[function(e,t,i){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},{}],11:[function(e,t,i){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}t.exports=function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}},{}],12:[function(e,t,i){t.exports=function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}},{}],13:[function(e,t,i){t.exports=function(e){return e&&e.__esModule?e:{default:e}}},{}],14:[function(e,t,i){t.exports=function(e,t){var i=[],n=!0,a=!1,r=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){a=!0,r=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw r}}return i}},{}],15:[function(e,t,i){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},{}],16:[function(e,t,i){var n=e("./defineProperty");t.exports=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},a=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),a.forEach(function(t){n(e,t,i[t])})}return e}},{"./defineProperty":12}],17:[function(e,t,i){var n=e("./arrayWithHoles"),a=e("./iterableToArrayLimit"),r=e("./nonIterableRest");t.exports=function(e,t){return n(e)||a(e,t)||r()}},{"./arrayWithHoles":8,"./iterableToArrayLimit":14,"./nonIterableRest":15}],18:[function(e,t,i){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?t.exports=a=function(e){return n(e)}:t.exports=a=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},a(e)}t.exports=a},{}],19:[function(e,t,i){var n=function(e){"use strict";var t,i=Object.prototype,n=i.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},r=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",o=a.toStringTag||"@@toStringTag";function l(e,t,i,n){var a=t&&t.prototype instanceof p?t:p,r=Object.create(a.prototype),s=new N(n||[]);return r._invoke=function(e,t,i){var n=u;return function(a,r){if(n===h)throw new Error("Generator is already running");if(n===A){if("throw"===a)throw r;return C()}for(i.method=a,i.arg=r;;){var s=i.delegate;if(s){var o=b(s,i);if(o){if(o===E)continue;return o}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(n===u)throw n=A,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n=h;var l=c(e,t,i);if("normal"===l.type){if(n=i.done?A:d,l.arg===E)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(n=A,i.method="throw",i.arg=l.arg)}}}(e,i,s),r}function c(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var u="suspendedStart",d="suspendedYield",h="executing",A="completed",E={};function p(){}function f(){}function T(){}var g={};g[r]=function(){return this};var y=Object.getPrototypeOf,m=y&&y(y(D([])));m&&m!==i&&n.call(m,r)&&(g=m);var _=T.prototype=p.prototype=Object.create(g);function S(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function O(e){var t;this._invoke=function(i,a){function r(){return new Promise(function(t,r){!function t(i,a,r,s){var o=c(e[i],e,a);if("throw"!==o.type){var l=o.arg,u=l.value;return u&&"object"==typeof u&&n.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,r,s)},function(e){t("throw",e,r,s)}):Promise.resolve(u).then(function(e){l.value=e,r(l)},function(e){return t("throw",e,r,s)})}s(o.arg)}(i,a,t,r)})}return t=t?t.then(r,r):r()}}function b(e,i){var n=e.iterator[i.method];if(n===t){if(i.delegate=null,"throw"===i.method){if(e.iterator.return&&(i.method="return",i.arg=t,b(e,i),"throw"===i.method))return E;i.method="throw",i.arg=new TypeError("The iterator does not provide a 'throw' method")}return E}var a=c(n,e.iterator,i.arg);if("throw"===a.type)return i.method="throw",i.arg=a.arg,i.delegate=null,E;var r=a.arg;return r?r.done?(i[e.resultName]=r.value,i.next=e.nextLoc,"return"!==i.method&&(i.method="next",i.arg=t),i.delegate=null,E):r:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,E)}function v(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(v,this),this.reset(!0)}function D(e){if(e){var i=e[r];if(i)return i.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,s=function i(){for(;++a<e.length;)if(n.call(e,a))return i.value=e[a],i.done=!1,i;return i.value=t,i.done=!0,i};return s.next=s}}return{next:C}}function C(){return{value:t,done:!0}}return f.prototype=_.constructor=T,T.constructor=f,T[o]=f.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,T):(e.__proto__=T,o in e||(e[o]="GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},S(O.prototype),O.prototype[s]=function(){return this},e.AsyncIterator=O,e.async=function(t,i,n,a){var r=new O(l(t,i,n,a));return e.isGeneratorFunction(i)?r:r.next().then(function(e){return e.done?e.value:r.next()})},S(_),_[o]="Generator",_[r]=function(){return this},_.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var i in e)t.push(i);return t.reverse(),function i(){for(;t.length;){var n=t.pop();if(n in e)return i.value=n,i.done=!1,i}return i.done=!0,i}},e.values=D,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var i in this)"t"===i.charAt(0)&&n.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var i=this;function a(n,a){return o.type="throw",o.arg=e,i.next=n,a&&(i.method="next",i.arg=t),!!a}for(var r=this.tryEntries.length-1;r>=0;--r){var s=this.tryEntries[r],o=s.completion;if("root"===s.tryLoc)return a("end");if(s.tryLoc<=this.prev){var l=n.call(s,"catchLoc"),c=n.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return a(s.catchLoc,!0);if(this.prev<s.finallyLoc)return a(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return a(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return a(s.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var r=a;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var s=r?r.completion:{};return s.type=e,s.arg=t,r?(this.method="next",this.next=r.finallyLoc,E):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),E},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),I(i),E}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var a=n.arg;I(i)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,i,n){return this.delegate={iterator:D(e),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=t),E}},e}("object"==typeof t?t.exports:{});try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}},{}],20:[function(e,t,i){t.exports=e("regenerator-runtime")},{"regenerator-runtime":19}],21:[function(e,t,i){"use strict";var n=e("./utils");function a(){var e={},t=0,i=0,n=0;return{add:function(a,r){r||(r=a,a=0),a>i?i=a:a<n&&(n=a),e[a]||(e[a]=[]),e[a].push(r),t++},process:function(){for(var t=n;t<=i;t++)for(var a=e[t],r=0;r<a.length;r++)(0,a[r])()},size:function(){return t}}}t.exports=function(e){var t=(e=e||{}).reporter,i=n.getOption(e,"async",!0),r=n.getOption(e,"auto",!0);r&&!i&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),i=!0);var s,o=a(),l=!1;function c(){for(l=!0;o.size();){var e=o;o=a(),e.process()}l=!1}function u(){var e;e=c,s=setTimeout(e,0)}return{add:function(e,t){!l&&r&&i&&0===o.size()&&u(),o.add(e,t)},force:function(e){l||(void 0===e&&(e=i),s&&(clearTimeout(s),s=null),e?u():c())}}}},{"./utils":22}],22:[function(e,t,i){"use strict";(t.exports={}).getOption=function(e,t,i){var n=e[t];if(null==n&&void 0!==i)return i;return n}},{}],23:[function(e,t,i){"use strict";var n=t.exports={};n.isIE=function(e){return(-1!==(t=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/"))&&(!e||e===function(){var e=3,t=document.createElement("div"),i=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(i[0]);return e>4?e:void 0}());var t},n.isLegacyOpera=function(){return!!window.opera}},{}],24:[function(e,t,i){"use strict";(t.exports={}).forEach=function(e,t){for(var i=0;i<e.length;i++){var n=t(e[i]);if(n)return n}}},{}],25:[function(e,t,i){"use strict";var n=e("../browser-detector");t.exports=function(e){var t=(e=e||{}).reporter,i=e.batchProcessor,a=e.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function r(e){return a(e).object}return{makeDetectable:function(e,r,s){s||(s=r,r=e,e=null),(e=e||{}).debug,n.isIE(8)?s(r):function(e,r){var s="display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; padding: 0; margin: 0; opacity: 0; z-index: -1000; pointer-events: none;",o=!1,l=window.getComputedStyle(e),c=e.offsetWidth,u=e.offsetHeight;function d(){function i(){if("static"===l.position){e.style.position="relative";var i=function(e,t,i,n){var a=i[n];"auto"!==a&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(a)&&(e.warn("An element that is positioned static has style."+n+"="+a+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+n+" will be set to 0. Element: ",t),t.style[n]=0)};i(t,e,l,"top"),i(t,e,l,"right"),i(t,e,l,"bottom"),i(t,e,l,"left")}}""!==l.position&&(i(),o=!0);var c=document.createElement("object");c.style.cssText=s,c.tabIndex=-1,c.type="text/html",c.onload=function(){o||i(),function e(t,i){t.contentDocument?i(t.contentDocument):setTimeout(function(){e(t,i)},100)}(this,function(t){r(e)})},n.isIE()||(c.data="about:blank"),e.appendChild(c),a(e).object=c,n.isIE()&&(c.data="about:blank")}a(e).startSize={width:c,height:u},i?i.add(d):d()}(r,s)},addListener:function(e,t){if(!r(e))throw new Error("Element is not detectable by this strategy.");function i(){t(e)}n.isIE(8)?(a(e).object={proxy:i},e.attachEvent("onresize",i)):r(e).contentDocument.defaultView.addEventListener("resize",i)},uninstall:function(e){n.isIE(8)?e.detachEvent("onresize",a(e).object.proxy):e.removeChild(r(e)),delete a(e).object}}}},{"../browser-detector":23}],26:[function(e,t,i){"use strict";var n=e("../collection-utils").forEach;t.exports=function(e){var t=(e=e||{}).reporter,i=e.batchProcessor,a=e.stateHandler.getState,r=(e.stateHandler.hasState,e.idHandler);if(!i)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var s=function(){var e=document.createElement("div");e.style.cssText="position: absolute; width: 1000px; height: 1000px; visibility: hidden; margin: 0; padding: 0;";var t=document.createElement("div");t.style.cssText="position: absolute; width: 500px; height: 500px; overflow: scroll; visibility: none; top: -1500px; left: -1500px; visibility: hidden; margin: 0; padding: 0;",t.appendChild(e),document.body.insertBefore(t,document.body.firstChild);var i=500-t.clientWidth,n=500-t.clientHeight;return document.body.removeChild(t),{width:i,height:n}}(),o="erd_scroll_detection_container";function l(e,i,n){if(e.addEventListener)e.addEventListener(i,n);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+i,n)}}function c(e,i,n){if(e.removeEventListener)e.removeEventListener(i,n);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+i,n)}}function u(e){return a(e).container.childNodes[0].childNodes[0].childNodes[0]}function d(e){return a(e).container.childNodes[0].childNodes[0].childNodes[1]}return function(e,t){if(!document.getElementById(e)){var i=t+"_animation",n=t+"_animation_active",a="/* Created by the element-resize-detector library. */\n";a+="."+t+" > div::-webkit-scrollbar { display: none; }\n\n",a+="."+n+" { -webkit-animation-duration: 0.1s; animation-duration: 0.1s; -webkit-animation-name: "+i+"; animation-name: "+i+"; }\n",a+="@-webkit-keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(t,i){i=i||function(e){document.head.appendChild(e)};var n=document.createElement("style");n.innerHTML=t,n.id=e,i(n)}(a+="@keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}("erd_scroll_detection_scrollbar_style",o),{makeDetectable:function(e,c,h){function A(){if(e.debug){var i=Array.prototype.slice.call(arguments);if(i.unshift(r.get(c),"Scroll: "),t.log.apply)t.log.apply(null,i);else for(var n=0;n<i.length;n++)t.log(i[n])}}function E(e){var t=a(e).container.childNodes[0],i=window.getComputedStyle(t);return!i.width||-1===i.width.indexOf("px")}function p(){var e=window.getComputedStyle(c),t={};return t.position=e.position,t.width=c.offsetWidth,t.height=c.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function f(){if(A("storeStyle invoked."),a(c)){var e=p();a(c).style=e}else A("Aborting because element has been uninstalled")}function T(e,t,i){a(e).lastWidth=t,a(e).lastHeight=i}function g(){return 2*s.width+1}function y(){return 2*s.height+1}function m(e){return e+10+g()}function _(e){return e+10+y()}function S(e,t,i){var n=u(e),a=d(e),r=m(t),s=_(i),o=function(e){return 2*e+g()}(t),l=function(e){return 2*e+y()}(i);n.scrollLeft=r,n.scrollTop=s,a.scrollLeft=o,a.scrollTop=l}function O(){var e=a(c).container;if(!e){(e=document.createElement("div")).className=o,e.style.cssText="visibility: hidden; display: inline; width: 0px; height: 0px; z-index: -1; overflow: hidden; margin: 0; padding: 0;",a(c).container=e,function(e){e.className+=" "+o+"_animation_active"}(e),c.appendChild(e);var t=function(){a(c).onRendered&&a(c).onRendered()};l(e,"animationstart",t),a(c).onAnimationStart=t}return e}function b(){if(A("Injecting elements"),a(c)){!function(){var e=a(c).style;if("static"===e.position){c.style.position="relative";var i=function(e,t,i,n){var a=i[n];"auto"!==a&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(a)&&(e.warn("An element that is positioned static has style."+n+"="+a+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+n+" will be set to 0. Element: ",t),t.style[n]=0)};i(t,c,e,"top"),i(t,c,e,"right"),i(t,c,e,"bottom"),i(t,c,e,"left")}}();var e=a(c).container;e||(e=O());var i,n,r,u,d=s.width,h=s.height,E="position: absolute; flex: none; overflow: hidden; z-index: -1; visibility: hidden; left: "+(i=(i=-(1+d))?i+"px":"0")+"; top: "+(n=(n=-(1+h))?n+"px":"0")+"; right: "+(u=(u=-d)?u+"px":"0")+"; bottom: "+(r=(r=-h)?r+"px":"0")+";",p=document.createElement("div"),f=document.createElement("div"),T=document.createElement("div"),g=document.createElement("div"),y=document.createElement("div"),m=document.createElement("div");p.dir="ltr",p.style.cssText="position: absolute; flex: none; overflow: hidden; z-index: -1; visibility: hidden; width: 100%; height: 100%; left: 0px; top: 0px;",p.className=o,f.className=o,f.style.cssText=E,T.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",g.style.cssText="position: absolute; left: 0; top: 0;",y.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",m.style.cssText="position: absolute; width: 200%; height: 200%;",T.appendChild(g),y.appendChild(m),f.appendChild(T),f.appendChild(y),p.appendChild(f),e.appendChild(p),l(T,"scroll",_),l(y,"scroll",S),a(c).onExpandScroll=_,a(c).onShrinkScroll=S}else A("Aborting because element has been uninstalled");function _(){a(c).onExpand&&a(c).onExpand()}function S(){a(c).onShrink&&a(c).onShrink()}}function v(){function s(e,t,i){var n=function(e){return u(e).childNodes[0]}(e),a=m(t),r=_(i);n.style.width=a+"px",n.style.height=r+"px"}function o(n){var o=c.offsetWidth,u=c.offsetHeight;A("Storing current size",o,u),T(c,o,u),i.add(0,function(){if(a(c))if(l()){if(e.debug){var i=c.offsetWidth,n=c.offsetHeight;i===o&&n===u||t.warn(r.get(c),"Scroll: Size changed before updating detector elements.")}s(c,o,u)}else A("Aborting because element container has not been initialized");else A("Aborting because element has been uninstalled")}),i.add(1,function(){a(c)?l()?S(c,o,u):A("Aborting because element container has not been initialized"):A("Aborting because element has been uninstalled")}),n&&i.add(2,function(){a(c)?l()?n():A("Aborting because element container has not been initialized"):A("Aborting because element has been uninstalled")})}function l(){return!!a(c).container}function h(){A("notifyListenersIfNeeded invoked");var e=a(c);return void 0===a(c).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?A("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?A("Not notifying: Size already notified"):(A("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void n(a(c).listeners,function(e){e(c)}))}function p(){if(A("Scroll detected."),E(c))A("Scroll event fired while unrendered. Ignoring...");else{var e=c.offsetWidth,t=c.offsetHeight;e!==a(c).lastWidth||t!==a(c).lastHeight?(A("Element size changed."),o(h)):A("Element size has not changed ("+e+"x"+t+").")}}if(A("registerListenersAndPositionElements invoked."),a(c)){a(c).onRendered=function(){if(A("startanimation triggered."),E(c))A("Ignoring since element is still unrendered...");else{A("Element rendered.");var e=u(c),t=d(c);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(A("Scrollbars out of sync. Updating detector elements..."),o(h))}},a(c).onExpand=p,a(c).onShrink=p;var f=a(c).style;s(c,f.width,f.height)}else A("Aborting because element has been uninstalled")}function I(){if(A("finalizeDomMutation invoked."),a(c)){var e=a(c).style;T(c,e.width,e.height),S(c,e.width,e.height)}else A("Aborting because element has been uninstalled")}function N(){h(c)}function D(){var e;A("Installing..."),a(c).listeners=[],e=p(),a(c).startSize={width:e.width,height:e.height},A("Element start size",a(c).startSize),i.add(0,f),i.add(1,b),i.add(2,v),i.add(3,I),i.add(4,N)}h||(h=c,c=e,e=null),e=e||{},A("Making detectable..."),function(e){return!function(e){return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)}(e)||null===window.getComputedStyle(e)}(c)?(A("Element is detached"),O(),A("Waiting until element is attached..."),a(c).onRendered=function(){A("Element is now attached"),D()}):D()},addListener:function(e,t){if(!a(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");a(e).listeners.push(t)},uninstall:function(e){var t=a(e);t&&(t.onExpandScroll&&c(u(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&c(d(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&c(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))}}}},{"../collection-utils":24}],27:[function(e,t,i){"use strict";var n=e("./collection-utils").forEach,a=e("./element-utils"),r=e("./listener-handler"),s=e("./id-generator"),o=e("./id-handler"),l=e("./reporter"),c=e("./browser-detector"),u=e("batch-processor"),d=e("./state-handler"),h=e("./detection-strategy/object.js"),A=e("./detection-strategy/scroll.js");function E(e){return Array.isArray(e)||void 0!==e.length}function p(e){if(Array.isArray(e))return e;var t=[];return n(e,function(e){t.push(e)}),t}function f(e){return e&&1===e.nodeType}function T(e,t,i){var n=e[t];return null==n&&void 0!==i?i:n}t.exports=function(e){var t;if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var i=s(),g=o({idGenerator:i,stateHandler:d});t=g}var y=e.reporter;y||(y=l(!1===y));var m=T(e,"batchProcessor",u({reporter:y})),_={};_.callOnAdd=!!T(e,"callOnAdd",!0),_.debug=!!T(e,"debug",!1);var S,O=r(t),b=a({stateHandler:d}),v=T(e,"strategy","object"),I={reporter:y,batchProcessor:m,stateHandler:d,idHandler:t};if("scroll"===v&&(c.isLegacyOpera()?(y.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),v="object"):c.isIE(9)&&(y.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),v="object")),"scroll"===v)S=A(I);else{if("object"!==v)throw new Error("Invalid strategy name: "+v);S=h(I)}var N={};return{listenTo:function(e,i,a){function r(e){var t=O.get(e);n(t,function(t){t(e)})}function s(e,t,i){O.add(t,i),e&&i(t)}if(a||(a=i,i=e,e={}),!i)throw new Error("At least one element required.");if(!a)throw new Error("Listener required.");if(f(i))i=[i];else{if(!E(i))return y.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");i=p(i)}var o=0,l=T(e,"callOnAdd",_.callOnAdd),c=T(e,"onReady",function(){}),u=T(e,"debug",_.debug);n(i,function(e){d.getState(e)||(d.initState(e),t.set(e));var h=t.get(e);if(u&&y.log("Attaching listener to element",h,e),!b.isDetectable(e))return u&&y.log(h,"Not detectable."),b.isBusy(e)?(u&&y.log(h,"System busy making it detectable"),s(l,e,a),N[h]=N[h]||[],void N[h].push(function(){++o===i.length&&c()})):(u&&y.log(h,"Making detectable..."),b.markBusy(e,!0),S.makeDetectable({debug:u},e,function(e){if(u&&y.log(h,"onElementDetectable"),d.getState(e)){b.markAsDetectable(e),b.markBusy(e,!1),S.addListener(e,r),s(l,e,a);var t=d.getState(e);if(t&&t.startSize){var A=e.offsetWidth,E=e.offsetHeight;t.startSize.width===A&&t.startSize.height===E||r(e)}N[h]&&n(N[h],function(e){e()})}else u&&y.log(h,"Element uninstalled before being detectable.");delete N[h],++o===i.length&&c()}));u&&y.log(h,"Already detecable, adding listener."),s(l,e,a),o++}),o===i.length&&c()},removeListener:O.removeListener,removeAllListeners:O.removeAllListeners,uninstall:function(e){if(!e)return y.error("At least one element is required.");if(f(e))e=[e];else{if(!E(e))return y.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=p(e)}n(e,function(e){O.removeAllListeners(e),S.uninstall(e),d.cleanState(e)})}}}},{"./browser-detector":23,"./collection-utils":24,"./detection-strategy/object.js":25,"./detection-strategy/scroll.js":26,"./element-utils":28,"./id-generator":29,"./id-handler":30,"./listener-handler":31,"./reporter":32,"./state-handler":33,"batch-processor":21}],28:[function(e,t,i){"use strict";t.exports=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var i=t(e);return i&&!!i.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,i){t(e).busy=!!i}}}},{}],29:[function(e,t,i){"use strict";t.exports=function(){var e=1;return{generate:function(){return e++}}}},{}],30:[function(e,t,i){"use strict";t.exports=function(e){var t=e.idGenerator,i=e.stateHandler.getState;return{get:function(e){var t=i(e);return t&&void 0!==t.id?t.id:null},set:function(e){var n=i(e);if(!n)throw new Error("setId required the element to have a resize detection state.");var a=t.generate();return n.id=a,a}}}},{}],31:[function(e,t,i){"use strict";t.exports=function(e){var t={};function i(i){var n=e.get(i);return void 0===n?[]:t[n]||[]}return{get:i,add:function(i,n){var a=e.get(i);t[a]||(t[a]=[]),t[a].push(n)},removeListener:function(e,t){for(var n=i(e),a=0,r=n.length;a<r;++a)if(n[a]===t){n.splice(a,1);break}},removeAllListeners:function(e){var t=i(e);t&&(t.length=0)}}}},{}],32:[function(e,t,i){"use strict";t.exports=function(e){function t(){}var i={log:t,warn:t,error:t};if(!e&&window.console){var n=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var i=0;i<arguments.length;i++)e(arguments[i])}};n(i,"log"),n(i,"warn"),n(i,"error")}return i}},{}],33:[function(e,t,i){"use strict";var n="_erd";function a(e){return e[n]}t.exports={initState:function(e){return e[n]={},a(e)},getState:a,cleanState:function(e){delete e[n]}}},{}],34:[function(e,t,i){!function(e,i){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?i(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return i(e)}:i(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var i=[],n=e.document,a=Object.getPrototypeOf,r=i.slice,s=i.concat,o=i.push,l=i.indexOf,c={},u=c.toString,d=c.hasOwnProperty,h=d.toString,A=h.call(Object),E={},p=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},f=function(e){return null!=e&&e===e.window},T={type:!0,src:!0,noModule:!0};function g(e,t,i){var a,r=(t=t||n).createElement("script");if(r.text=e,i)for(a in T)i[a]&&(r[a]=i[a]);t.head.appendChild(r).parentNode.removeChild(r)}function y(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[u.call(e)]||"object":typeof e}var m=function(e,t){return new m.fn.init(e,t)},_=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function S(e){var t=!!e&&"length"in e&&e.length,i=y(e);return!p(e)&&!f(e)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}m.fn=m.prototype={jquery:"3.3.1",constructor:m,length:0,toArray:function(){return r.call(this)},get:function(e){return null==e?r.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=m.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return m.each(this,e)},map:function(e){return this.pushStack(m.map(this,function(t,i){return e.call(t,i,t)}))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:o,sort:i.sort,splice:i.splice},m.extend=m.fn.extend=function(){var e,t,i,n,a,r,s=arguments[0]||{},o=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[o]||{},o++),"object"==typeof s||p(s)||(s={}),o===l&&(s=this,o--);o<l;o++)if(null!=(e=arguments[o]))for(t in e)i=s[t],s!==(n=e[t])&&(c&&n&&(m.isPlainObject(n)||(a=Array.isArray(n)))?(a?(a=!1,r=i&&Array.isArray(i)?i:[]):r=i&&m.isPlainObject(i)?i:{},s[t]=m.extend(c,r,n)):void 0!==n&&(s[t]=n));return s},m.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,i;return!(!e||"[object Object]"!==u.call(e))&&(!(t=a(e))||"function"==typeof(i=d.call(t,"constructor")&&t.constructor)&&h.call(i)===A)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){g(e)},each:function(e,t){var i,n=0;if(S(e))for(i=e.length;n<i&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},trim:function(e){return null==e?"":(e+"").replace(_,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(S(Object(e))?m.merge(i,"string"==typeof e?[e]:e):o.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:l.call(t,e,i)},merge:function(e,t){for(var i=+t.length,n=0,a=e.length;n<i;n++)e[a++]=t[n];return e.length=a,e},grep:function(e,t,i){for(var n=[],a=0,r=e.length,s=!i;a<r;a++)!t(e[a],a)!==s&&n.push(e[a]);return n},map:function(e,t,i){var n,a,r=0,o=[];if(S(e))for(n=e.length;r<n;r++)null!=(a=t(e[r],r,i))&&o.push(a);else for(r in e)null!=(a=t(e[r],r,i))&&o.push(a);return s.apply([],o)},guid:1,support:E}),"function"==typeof Symbol&&(m.fn[Symbol.iterator]=i[Symbol.iterator]),m.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});var O=function(e){var t,i,n,a,r,s,o,l,c,u,d,h,A,E,p,f,T,g,y,m="sizzle"+1*new Date,_=e.document,S=0,O=0,b=se(),v=se(),I=se(),N=function(e,t){return e===t&&(d=!0),0},D={}.hasOwnProperty,C=[],R=C.pop,L=C.push,P=C.push,w=C.slice,k=function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},V="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",B="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",F="\\["+B+"*("+M+")(?:"+B+"*([*^$|!~]?=)"+B+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+B+"*\\]",U=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",H=new RegExp(B+"+","g"),x=new RegExp("^"+B+"+|((?:^|[^\\\\])(?:\\\\.)*)"+B+"+$","g"),G=new RegExp("^"+B+"*,"+B+"*"),Y=new RegExp("^"+B+"*([>+~]|"+B+")"+B+"*"),j=new RegExp("="+B+"*([^\\]'\"]*?)"+B+"*\\]","g"),W=new RegExp(U),K=new RegExp("^"+M+"$"),z={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+V+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},q=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,$=new RegExp("\\\\([\\da-f]{1,6}"+B+"?|("+B+")|.)","ig"),ee=function(e,t,i){var n="0x"+t-65536;return n!=n||i?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ne=function(){h()},ae=ge(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{P.apply(C=w.call(_.childNodes),_.childNodes),C[_.childNodes.length].nodeType}catch(e){P={apply:C.length?function(e,t){L.apply(e,w.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function re(e,t,n,a){var r,o,c,u,d,E,T,g=t&&t.ownerDocument,S=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==S&&9!==S&&11!==S)return n;if(!a&&((t?t.ownerDocument||t:_)!==A&&h(t),t=t||A,p)){if(11!==S&&(d=Z.exec(e)))if(r=d[1]){if(9===S){if(!(c=t.getElementById(r)))return n;if(c.id===r)return n.push(c),n}else if(g&&(c=g.getElementById(r))&&y(t,c)&&c.id===r)return n.push(c),n}else{if(d[2])return P.apply(n,t.getElementsByTagName(e)),n;if((r=d[3])&&i.getElementsByClassName&&t.getElementsByClassName)return P.apply(n,t.getElementsByClassName(r)),n}if(i.qsa&&!I[e+" "]&&(!f||!f.test(e))){if(1!==S)g=t,T=e;else if("object"!==t.nodeName.toLowerCase()){for((u=t.getAttribute("id"))?u=u.replace(te,ie):t.setAttribute("id",u=m),o=(E=s(e)).length;o--;)E[o]="#"+u+" "+Te(E[o]);T=E.join(","),g=J.test(e)&&pe(t.parentNode)||t}if(T)try{return P.apply(n,g.querySelectorAll(T)),n}catch(e){}finally{u===m&&t.removeAttribute("id")}}}return l(e.replace(x,"$1"),t,n,a)}function se(){var e=[];return function t(i,a){return e.push(i+" ")>n.cacheLength&&delete t[e.shift()],t[i+" "]=a}}function oe(e){return e[m]=!0,e}function le(e){var t=A.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var i=e.split("|"),a=i.length;a--;)n.attrHandle[i[a]]=t}function ue(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function Ae(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function Ee(e){return oe(function(t){return t=+t,oe(function(i,n){for(var a,r=e([],i.length,t),s=r.length;s--;)i[a=r[s]]&&(i[a]=!(n[a]=i[a]))})})}function pe(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=re.support={},r=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},h=re.setDocument=function(e){var t,a,s=e?e.ownerDocument||e:_;return s!==A&&9===s.nodeType&&s.documentElement?(E=(A=s).documentElement,p=!r(A),_!==A&&(a=A.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",ne,!1):a.attachEvent&&a.attachEvent("onunload",ne)),i.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),i.getElementsByTagName=le(function(e){return e.appendChild(A.createComment("")),!e.getElementsByTagName("*").length}),i.getElementsByClassName=Q.test(A.getElementsByClassName),i.getById=le(function(e){return E.appendChild(e).id=m,!A.getElementsByName||!A.getElementsByName(m).length}),i.getById?(n.filter.ID=function(e){var t=e.replace($,ee);return function(e){return e.getAttribute("id")===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var i=t.getElementById(e);return i?[i]:[]}}):(n.filter.ID=function(e){var t=e.replace($,ee);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var i,n,a,r=t.getElementById(e);if(r){if((i=r.getAttributeNode("id"))&&i.value===e)return[r];for(a=t.getElementsByName(e),n=0;r=a[n++];)if((i=r.getAttributeNode("id"))&&i.value===e)return[r]}return[]}}),n.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],a=0,r=t.getElementsByTagName(e);if("*"===e){for(;i=r[a++];)1===i.nodeType&&n.push(i);return n}return r},n.find.CLASS=i.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&p)return t.getElementsByClassName(e)},T=[],f=[],(i.qsa=Q.test(A.querySelectorAll))&&(le(function(e){E.appendChild(e).innerHTML="<a id='"+m+"'></a><select id='"+m+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&f.push("[*^$]="+B+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||f.push("\\["+B+"*(?:value|"+V+")"),e.querySelectorAll("[id~="+m+"-]").length||f.push("~="),e.querySelectorAll(":checked").length||f.push(":checked"),e.querySelectorAll("a#"+m+"+*").length||f.push(".#.+[+~]")}),le(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=A.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&f.push("name"+B+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&f.push(":enabled",":disabled"),E.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),f.push(",.*:")})),(i.matchesSelector=Q.test(g=E.matches||E.webkitMatchesSelector||E.mozMatchesSelector||E.oMatchesSelector||E.msMatchesSelector))&&le(function(e){i.disconnectedMatch=g.call(e,"*"),g.call(e,"[s!='']:x"),T.push("!=",U)}),f=f.length&&new RegExp(f.join("|")),T=T.length&&new RegExp(T.join("|")),t=Q.test(E.compareDocumentPosition),y=t||Q.test(E.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},N=t?function(e,t){if(e===t)return d=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===n?e===A||e.ownerDocument===_&&y(_,e)?-1:t===A||t.ownerDocument===_&&y(_,t)?1:u?k(u,e)-k(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return d=!0,0;var i,n=0,a=e.parentNode,r=t.parentNode,s=[e],o=[t];if(!a||!r)return e===A?-1:t===A?1:a?-1:r?1:u?k(u,e)-k(u,t):0;if(a===r)return ue(e,t);for(i=e;i=i.parentNode;)s.unshift(i);for(i=t;i=i.parentNode;)o.unshift(i);for(;s[n]===o[n];)n++;return n?ue(s[n],o[n]):s[n]===_?-1:o[n]===_?1:0},A):A},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==A&&h(e),t=t.replace(j,"='$1']"),i.matchesSelector&&p&&!I[t+" "]&&(!T||!T.test(t))&&(!f||!f.test(t)))try{var n=g.call(e,t);if(n||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return re(t,A,null,[e]).length>0},re.contains=function(e,t){return(e.ownerDocument||e)!==A&&h(e),y(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==A&&h(e);var a=n.attrHandle[t.toLowerCase()],r=a&&D.call(n.attrHandle,t.toLowerCase())?a(e,t,!p):void 0;return void 0!==r?r:i.attributes||!p?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},re.escape=function(e){return(e+"").replace(te,ie)},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,n=[],a=0,r=0;if(d=!i.detectDuplicates,u=!i.sortStable&&e.slice(0),e.sort(N),d){for(;t=e[r++];)t===e[r]&&(a=n.push(r));for(;a--;)e.splice(n[a],1)}return u=null,e},a=re.getText=function(e){var t,i="",n=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=a(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[n++];)i+=a(t);return i},(n=re.selectors={cacheLength:50,createPseudo:oe,match:z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace($,ee),e[3]=(e[3]||e[4]||e[5]||"").replace($,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&re.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&W.test(i)&&(t=s(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace($,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=b[e+" "];return t||(t=new RegExp("(^|"+B+")"+e+"("+B+"|$)"))&&b(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,i){return function(n){var a=re.attr(n,e);return null==a?"!="===t:!t||(a+="","="===t?a===i:"!="===t?a!==i:"^="===t?i&&0===a.indexOf(i):"*="===t?i&&a.indexOf(i)>-1:"$="===t?i&&a.slice(-i.length)===i:"~="===t?(" "+a.replace(H," ")+" ").indexOf(i)>-1:"|="===t&&(a===i||a.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,n,a){var r="nth"!==e.slice(0,3),s="last"!==e.slice(-4),o="of-type"===t;return 1===n&&0===a?function(e){return!!e.parentNode}:function(t,i,l){var c,u,d,h,A,E,p=r!==s?"nextSibling":"previousSibling",f=t.parentNode,T=o&&t.nodeName.toLowerCase(),g=!l&&!o,y=!1;if(f){if(r){for(;p;){for(h=t;h=h[p];)if(o?h.nodeName.toLowerCase()===T:1===h.nodeType)return!1;E=p="only"===e&&!E&&"nextSibling"}return!0}if(E=[s?f.firstChild:f.lastChild],s&&g){for(y=(A=(c=(u=(d=(h=f)[m]||(h[m]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===S&&c[1])&&c[2],h=A&&f.childNodes[A];h=++A&&h&&h[p]||(y=A=0)||E.pop();)if(1===h.nodeType&&++y&&h===t){u[e]=[S,A,y];break}}else if(g&&(y=A=(c=(u=(d=(h=t)[m]||(h[m]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===S&&c[1]),!1===y)for(;(h=++A&&h&&h[p]||(y=A=0)||E.pop())&&((o?h.nodeName.toLowerCase()!==T:1!==h.nodeType)||!++y||(g&&((u=(d=h[m]||(h[m]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]=[S,y]),h!==t)););return(y-=a)===n||y%n==0&&y/n>=0}}},PSEUDO:function(e,t){var i,a=n.pseudos[e]||n.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return a[m]?a(t):a.length>1?(i=[e,e,"",t],n.setFilters.hasOwnProperty(e.toLowerCase())?oe(function(e,i){for(var n,r=a(e,t),s=r.length;s--;)e[n=k(e,r[s])]=!(i[n]=r[s])}):function(e){return a(e,0,i)}):a}},pseudos:{not:oe(function(e){var t=[],i=[],n=o(e.replace(x,"$1"));return n[m]?oe(function(e,t,i,a){for(var r,s=n(e,null,a,[]),o=e.length;o--;)(r=s[o])&&(e[o]=!(t[o]=r))}):function(e,a,r){return t[0]=e,n(t,null,r,i),t[0]=null,!i.pop()}}),has:oe(function(e){return function(t){return re(e,t).length>0}}),contains:oe(function(e){return e=e.replace($,ee),function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}}),lang:oe(function(e){return K.test(e||"")||re.error("unsupported lang: "+e),e=e.replace($,ee).toLowerCase(),function(t){var i;do{if(i=p?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===E},focus:function(e){return e===A.activeElement&&(!A.hasFocus||A.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:Ae(!1),disabled:Ae(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!n.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:Ee(function(){return[0]}),last:Ee(function(e,t){return[t-1]}),eq:Ee(function(e,t,i){return[i<0?i+t:i]}),even:Ee(function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e}),odd:Ee(function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e}),lt:Ee(function(e,t,i){for(var n=i<0?i+t:i;--n>=0;)e.push(n);return e}),gt:Ee(function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e})}}).pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})n.pseudos[t]=he(t);function fe(){}function Te(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function ge(e,t,i){var n=t.dir,a=t.next,r=a||n,s=i&&"parentNode"===r,o=O++;return t.first?function(t,i,a){for(;t=t[n];)if(1===t.nodeType||s)return e(t,i,a);return!1}:function(t,i,l){var c,u,d,h=[S,o];if(l){for(;t=t[n];)if((1===t.nodeType||s)&&e(t,i,l))return!0}else for(;t=t[n];)if(1===t.nodeType||s)if(u=(d=t[m]||(t[m]={}))[t.uniqueID]||(d[t.uniqueID]={}),a&&a===t.nodeName.toLowerCase())t=t[n]||t;else{if((c=u[r])&&c[0]===S&&c[1]===o)return h[2]=c[2];if(u[r]=h,h[2]=e(t,i,l))return!0}return!1}}function ye(e){return e.length>1?function(t,i,n){for(var a=e.length;a--;)if(!e[a](t,i,n))return!1;return!0}:e[0]}function me(e,t,i,n,a){for(var r,s=[],o=0,l=e.length,c=null!=t;o<l;o++)(r=e[o])&&(i&&!i(r,n,a)||(s.push(r),c&&t.push(o)));return s}function _e(e,t,i,n,a,r){return n&&!n[m]&&(n=_e(n)),a&&!a[m]&&(a=_e(a,r)),oe(function(r,s,o,l){var c,u,d,h=[],A=[],E=s.length,p=r||function(e,t,i){for(var n=0,a=t.length;n<a;n++)re(e,t[n],i);return i}(t||"*",o.nodeType?[o]:o,[]),f=!e||!r&&t?p:me(p,h,e,o,l),T=i?a||(r?e:E||n)?[]:s:f;if(i&&i(f,T,o,l),n)for(c=me(T,A),n(c,[],o,l),u=c.length;u--;)(d=c[u])&&(T[A[u]]=!(f[A[u]]=d));if(r){if(a||e){if(a){for(c=[],u=T.length;u--;)(d=T[u])&&c.push(f[u]=d);a(null,T=[],c,l)}for(u=T.length;u--;)(d=T[u])&&(c=a?k(r,d):h[u])>-1&&(r[c]=!(s[c]=d))}}else T=me(T===s?T.splice(E,T.length):T),a?a(null,s,T,l):P.apply(s,T)})}function Se(e){for(var t,i,a,r=e.length,s=n.relative[e[0].type],o=s||n.relative[" "],l=s?1:0,u=ge(function(e){return e===t},o,!0),d=ge(function(e){return k(t,e)>-1},o,!0),h=[function(e,i,n){var a=!s&&(n||i!==c)||((t=i).nodeType?u(e,i,n):d(e,i,n));return t=null,a}];l<r;l++)if(i=n.relative[e[l].type])h=[ge(ye(h),i)];else{if((i=n.filter[e[l].type].apply(null,e[l].matches))[m]){for(a=++l;a<r&&!n.relative[e[a].type];a++);return _e(l>1&&ye(h),l>1&&Te(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(x,"$1"),i,l<a&&Se(e.slice(l,a)),a<r&&Se(e=e.slice(a)),a<r&&Te(e))}h.push(i)}return ye(h)}return fe.prototype=n.filters=n.pseudos,n.setFilters=new fe,s=re.tokenize=function(e,t){var i,a,r,s,o,l,c,u=v[e+" "];if(u)return t?0:u.slice(0);for(o=e,l=[],c=n.preFilter;o;){for(s in i&&!(a=G.exec(o))||(a&&(o=o.slice(a[0].length)||o),l.push(r=[])),i=!1,(a=Y.exec(o))&&(i=a.shift(),r.push({value:i,type:a[0].replace(x," ")}),o=o.slice(i.length)),n.filter)!(a=z[s].exec(o))||c[s]&&!(a=c[s](a))||(i=a.shift(),r.push({value:i,type:s,matches:a}),o=o.slice(i.length));if(!i)break}return t?o.length:o?re.error(e):v(e,l).slice(0)},o=re.compile=function(e,t){var i,a=[],r=[],o=I[e+" "];if(!o){for(t||(t=s(e)),i=t.length;i--;)(o=Se(t[i]))[m]?a.push(o):r.push(o);(o=I(e,function(e,t){var i=t.length>0,a=e.length>0,r=function(r,s,o,l,u){var d,E,f,T=0,g="0",y=r&&[],m=[],_=c,O=r||a&&n.find.TAG("*",u),b=S+=null==_?1:Math.random()||.1,v=O.length;for(u&&(c=s===A||s||u);g!==v&&null!=(d=O[g]);g++){if(a&&d){for(E=0,s||d.ownerDocument===A||(h(d),o=!p);f=e[E++];)if(f(d,s||A,o)){l.push(d);break}u&&(S=b)}i&&((d=!f&&d)&&T--,r&&y.push(d))}if(T+=g,i&&g!==T){for(E=0;f=t[E++];)f(y,m,s,o);if(r){if(T>0)for(;g--;)y[g]||m[g]||(m[g]=R.call(l));m=me(m)}P.apply(l,m),u&&!r&&m.length>0&&T+t.length>1&&re.uniqueSort(l)}return u&&(S=b,c=_),y};return i?oe(r):r}(r,a))).selector=e}return o},l=re.select=function(e,t,i,a){var r,l,c,u,d,h="function"==typeof e&&e,A=!a&&s(e=h.selector||e);if(i=i||[],1===A.length){if((l=A[0]=A[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&p&&n.relative[l[1].type]){if(!(t=(n.find.ID(c.matches[0].replace($,ee),t)||[])[0]))return i;h&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(r=z.needsContext.test(e)?0:l.length;r--&&(c=l[r],!n.relative[u=c.type]);)if((d=n.find[u])&&(a=d(c.matches[0].replace($,ee),J.test(l[0].type)&&pe(t.parentNode)||t))){if(l.splice(r,1),!(e=a.length&&Te(l)))return P.apply(i,a),i;break}}return(h||o(e,A))(a,t,!p,i,!t||J.test(e)&&pe(t.parentNode)||t),i},i.sortStable=m.split("").sort(N).join("")===m,i.detectDuplicates=!!d,h(),i.sortDetached=le(function(e){return 1&e.compareDocumentPosition(A.createElement("fieldset"))}),le(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ce("type|href|height|width",function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),i.attributes&&le(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ce("value",function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||ce(V,function(e,t,i){var n;if(!i)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),re}(e);m.find=O,m.expr=O.selectors,m.expr[":"]=m.expr.pseudos,m.uniqueSort=m.unique=O.uniqueSort,m.text=O.getText,m.isXMLDoc=O.isXML,m.contains=O.contains,m.escapeSelector=O.escape;var b=function(e,t,i){for(var n=[],a=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(a&&m(e).is(i))break;n.push(e)}return n},v=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},I=m.expr.match.needsContext;function N(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function C(e,t,i){return p(t)?m.grep(e,function(e,n){return!!t.call(e,n,e)!==i}):t.nodeType?m.grep(e,function(e){return e===t!==i}):"string"!=typeof t?m.grep(e,function(e){return l.call(t,e)>-1!==i}):m.filter(t,e,i)}m.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?m.find.matchesSelector(n,e)?[n]:[]:m.find.matches(e,m.grep(t,function(e){return 1===e.nodeType}))},m.fn.extend({find:function(e){var t,i,n=this.length,a=this;if("string"!=typeof e)return this.pushStack(m(e).filter(function(){for(t=0;t<n;t++)if(m.contains(a[t],this))return!0}));for(i=this.pushStack([]),t=0;t<n;t++)m.find(e,a[t],i);return n>1?m.uniqueSort(i):i},filter:function(e){return this.pushStack(C(this,e||[],!1))},not:function(e){return this.pushStack(C(this,e||[],!0))},is:function(e){return!!C(this,"string"==typeof e&&I.test(e)?m(e):e||[],!1).length}});var R,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(m.fn.init=function(e,t,i){var a,r;if(!e)return this;if(i=i||R,"string"==typeof e){if(!(a="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:L.exec(e))||!a[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(a[1]){if(t=t instanceof m?t[0]:t,m.merge(this,m.parseHTML(a[1],t&&t.nodeType?t.ownerDocument||t:n,!0)),D.test(a[1])&&m.isPlainObject(t))for(a in t)p(this[a])?this[a](t[a]):this.attr(a,t[a]);return this}return(r=n.getElementById(a[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):p(e)?void 0!==i.ready?i.ready(e):e(m):m.makeArray(e,this)}).prototype=m.fn,R=m(n);var P=/^(?:parents|prev(?:Until|All))/,w={children:!0,contents:!0,next:!0,prev:!0};function k(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}m.fn.extend({has:function(e){var t=m(e,this),i=t.length;return this.filter(function(){for(var e=0;e<i;e++)if(m.contains(this,t[e]))return!0})},closest:function(e,t){var i,n=0,a=this.length,r=[],s="string"!=typeof e&&m(e);if(!I.test(e))for(;n<a;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(s?s.index(i)>-1:1===i.nodeType&&m.find.matchesSelector(i,e))){r.push(i);break}return this.pushStack(r.length>1?m.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?l.call(m(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(m.uniqueSort(m.merge(this.get(),m(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),m.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return b(e,"parentNode")},parentsUntil:function(e,t,i){return b(e,"parentNode",i)},next:function(e){return k(e,"nextSibling")},prev:function(e){return k(e,"previousSibling")},nextAll:function(e){return b(e,"nextSibling")},prevAll:function(e){return b(e,"previousSibling")},nextUntil:function(e,t,i){return b(e,"nextSibling",i)},prevUntil:function(e,t,i){return b(e,"previousSibling",i)},siblings:function(e){return v((e.parentNode||{}).firstChild,e)},children:function(e){return v(e.firstChild)},contents:function(e){return N(e,"iframe")?e.contentDocument:(N(e,"template")&&(e=e.content||e),m.merge([],e.childNodes))}},function(e,t){m.fn[e]=function(i,n){var a=m.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(a=m.filter(n,a)),this.length>1&&(w[e]||m.uniqueSort(a),P.test(e)&&a.reverse()),this.pushStack(a)}});var V=/[^\x20\t\r\n\f]+/g;function B(e){return e}function M(e){throw e}function F(e,t,i,n){var a;try{e&&p(a=e.promise)?a.call(e).done(t).fail(i):e&&p(a=e.then)?a.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}m.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return m.each(e.match(V)||[],function(e,i){t[i]=!0}),t}(e):m.extend({},e);var t,i,n,a,r=[],s=[],o=-1,l=function(){for(a=a||e.once,n=t=!0;s.length;o=-1)for(i=s.shift();++o<r.length;)!1===r[o].apply(i[0],i[1])&&e.stopOnFalse&&(o=r.length,i=!1);e.memory||(i=!1),t=!1,a&&(r=i?[]:"")},c={add:function(){return r&&(i&&!t&&(o=r.length-1,s.push(i)),function t(i){m.each(i,function(i,n){p(n)?e.unique&&c.has(n)||r.push(n):n&&n.length&&"string"!==y(n)&&t(n)})}(arguments),i&&!t&&l()),this},remove:function(){return m.each(arguments,function(e,t){for(var i;(i=m.inArray(t,r,i))>-1;)r.splice(i,1),i<=o&&o--}),this},has:function(e){return e?m.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return a=s=[],r=i="",this},disabled:function(){return!r},lock:function(){return a=s=[],i||t||(r=i=""),this},locked:function(){return!!a},fireWith:function(e,i){return a||(i=[e,(i=i||[]).slice?i.slice():i],s.push(i),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},m.extend({Deferred:function(t){var i=[["notify","progress",m.Callbacks("memory"),m.Callbacks("memory"),2],["resolve","done",m.Callbacks("once memory"),m.Callbacks("once memory"),0,"resolved"],["reject","fail",m.Callbacks("once memory"),m.Callbacks("once memory"),1,"rejected"]],n="pending",a={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var e=arguments;return m.Deferred(function(t){m.each(i,function(i,n){var a=p(e[n[4]])&&e[n[4]];r[n[1]](function(){var e=a&&a.apply(this,arguments);e&&p(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[n[0]+"With"](this,a?[e]:arguments)})}),e=null}).promise()},then:function(t,n,a){var r=0;function s(t,i,n,a){return function(){var o=this,l=arguments,c=function(){var e,c;if(!(t<r)){if((e=n.apply(o,l))===i.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,p(c)?a?c.call(e,s(r,i,B,a),s(r,i,M,a)):(r++,c.call(e,s(r,i,B,a),s(r,i,M,a),s(r,i,B,i.notifyWith))):(n!==B&&(o=void 0,l=[e]),(a||i.resolveWith)(o,l))}},u=a?c:function(){try{c()}catch(e){m.Deferred.exceptionHook&&m.Deferred.exceptionHook(e,u.stackTrace),t+1>=r&&(n!==M&&(o=void 0,l=[e]),i.rejectWith(o,l))}};t?u():(m.Deferred.getStackHook&&(u.stackTrace=m.Deferred.getStackHook()),e.setTimeout(u))}}return m.Deferred(function(e){i[0][3].add(s(0,e,p(a)?a:B,e.notifyWith)),i[1][3].add(s(0,e,p(t)?t:B)),i[2][3].add(s(0,e,p(n)?n:M))}).promise()},promise:function(e){return null!=e?m.extend(e,a):a}},r={};return m.each(i,function(e,t){var s=t[2],o=t[5];a[t[1]]=s.add,o&&s.add(function(){n=o},i[3-e][2].disable,i[3-e][3].disable,i[0][2].lock,i[0][3].lock),s.add(t[3].fire),r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this},r[t[0]+"With"]=s.fireWith}),a.promise(r),t&&t.call(r,r),r},when:function(e){var t=arguments.length,i=t,n=Array(i),a=r.call(arguments),s=m.Deferred(),o=function(e){return function(i){n[e]=this,a[e]=arguments.length>1?r.call(arguments):i,--t||s.resolveWith(n,a)}};if(t<=1&&(F(e,s.done(o(i)).resolve,s.reject,!t),"pending"===s.state()||p(a[i]&&a[i].then)))return s.then();for(;i--;)F(a[i],o(i),s.reject);return s.promise()}});var U=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;m.Deferred.exceptionHook=function(t,i){e.console&&e.console.warn&&t&&U.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)},m.readyException=function(t){e.setTimeout(function(){throw t})};var H=m.Deferred();function x(){n.removeEventListener("DOMContentLoaded",x),e.removeEventListener("load",x),m.ready()}m.fn.ready=function(e){return H.then(e).catch(function(e){m.readyException(e)}),this},m.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--m.readyWait:m.isReady)||(m.isReady=!0,!0!==e&&--m.readyWait>0||H.resolveWith(n,[m]))}}),m.ready.then=H.then,"complete"===n.readyState||"loading"!==n.readyState&&!n.documentElement.doScroll?e.setTimeout(m.ready):(n.addEventListener("DOMContentLoaded",x),e.addEventListener("load",x));var G=function(e,t,i,n,a,r,s){var o=0,l=e.length,c=null==i;if("object"===y(i))for(o in a=!0,i)G(e,t,o,i[o],!0,r,s);else if(void 0!==n&&(a=!0,p(n)||(s=!0),c&&(s?(t.call(e,n),t=null):(c=t,t=function(e,t,i){return c.call(m(e),i)})),t))for(;o<l;o++)t(e[o],i,s?n:n.call(e[o],o,t(e[o],i)));return a?e:c?t.call(e):l?t(e[0],i):r},Y=/^-ms-/,j=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function K(e){return e.replace(Y,"ms-").replace(j,W)}var z=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function q(){this.expando=m.expando+q.uid++}q.uid=1,q.prototype={cache:function(e){var t=e[this.expando];return t||(t={},z(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,a=this.cache(e);if("string"==typeof t)a[K(t)]=i;else for(n in t)a[K(n)]=t[n];return a},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][K(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n=e[this.expando];if(void 0!==n){if(void 0!==t){i=(t=Array.isArray(t)?t.map(K):(t=K(t))in n?[t]:t.match(V)||[]).length;for(;i--;)delete n[t[i]]}(void 0===t||m.isEmptyObject(n))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!m.isEmptyObject(t)}};var X=new q,Q=new q,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function $(e,t,i){var n;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(J,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Z.test(e)?JSON.parse(e):e)}(i)}catch(e){}Q.set(e,t,i)}else i=void 0;return i}m.extend({hasData:function(e){return Q.hasData(e)||X.hasData(e)},data:function(e,t,i){return Q.access(e,t,i)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,i){return X.access(e,t,i)},_removeData:function(e,t){X.remove(e,t)}}),m.fn.extend({data:function(e,t){var i,n,a,r=this[0],s=r&&r.attributes;if(void 0===e){if(this.length&&(a=Q.get(r),1===r.nodeType&&!X.get(r,"hasDataAttrs"))){for(i=s.length;i--;)s[i]&&0===(n=s[i].name).indexOf("data-")&&(n=K(n.slice(5)),$(r,n,a[n]));X.set(r,"hasDataAttrs",!0)}return a}return"object"==typeof e?this.each(function(){Q.set(this,e)}):G(this,function(t){var i;if(r&&void 0===t)return void 0!==(i=Q.get(r,e))?i:void 0!==(i=$(r,e))?i:void 0;this.each(function(){Q.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),m.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=X.get(e,t),i&&(!n||Array.isArray(i)?n=X.access(e,t,m.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=m.queue(e,t),n=i.length,a=i.shift(),r=m._queueHooks(e,t);"inprogress"===a&&(a=i.shift(),n--),a&&("fx"===t&&i.unshift("inprogress"),delete r.stop,a.call(e,function(){m.dequeue(e,t)},r)),!n&&r&&r.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return X.get(e,i)||X.access(e,i,{empty:m.Callbacks("once memory").add(function(){X.remove(e,[t+"queue",i])})})}}),m.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?m.queue(this[0],e):void 0===t?this:this.each(function(){var i=m.queue(this,e,t);m._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&m.dequeue(this,e)})},dequeue:function(e){return this.each(function(){m.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,a=m.Deferred(),r=this,s=this.length,o=function(){--n||a.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(i=X.get(r[s],e+"queueHooks"))&&i.empty&&(n++,i.empty.add(o));return o(),a.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],ne=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&m.contains(e.ownerDocument,e)&&"none"===m.css(e,"display")},ae=function(e,t,i,n){var a,r,s={};for(r in t)s[r]=e.style[r],e.style[r]=t[r];for(r in a=i.apply(e,n||[]),t)e.style[r]=s[r];return a};function re(e,t,i,n){var a,r,s=20,o=n?function(){return n.cur()}:function(){return m.css(e,t,"")},l=o(),c=i&&i[3]||(m.cssNumber[t]?"":"px"),u=(m.cssNumber[t]||"px"!==c&&+l)&&te.exec(m.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)m.style(e,t,u+c),(1-r)*(1-(r=o()/l||.5))<=0&&(s=0),u/=r;u*=2,m.style(e,t,u+c),i=i||[]}return i&&(u=+u||+l||0,a=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=u,n.end=a)),a}var se={};function oe(e){var t,i=e.ownerDocument,n=e.nodeName,a=se[n];return a||(t=i.body.appendChild(i.createElement(n)),a=m.css(t,"display"),t.parentNode.removeChild(t),"none"===a&&(a="block"),se[n]=a,a)}function le(e,t){for(var i,n,a=[],r=0,s=e.length;r<s;r++)(n=e[r]).style&&(i=n.style.display,t?("none"===i&&(a[r]=X.get(n,"display")||null,a[r]||(n.style.display="")),""===n.style.display&&ne(n)&&(a[r]=oe(n))):"none"!==i&&(a[r]="none",X.set(n,"display",i)));for(r=0;r<s;r++)null!=a[r]&&(e[r].style.display=a[r]);return e}m.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ne(this)?m(this).show():m(this).hide()})}});var ce=/^(?:checkbox|radio)$/i,ue=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,de=/^$|^module$|\/(?:java|ecma)script/i,he={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ae(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&N(e,t)?m.merge([e],i):i}function Ee(e,t){for(var i=0,n=e.length;i<n;i++)X.set(e[i],"globalEval",!t||X.get(t[i],"globalEval"))}he.optgroup=he.option,he.tbody=he.tfoot=he.colgroup=he.caption=he.thead,he.th=he.td;var pe,fe,Te=/<|&#?\w+;/;function ge(e,t,i,n,a){for(var r,s,o,l,c,u,d=t.createDocumentFragment(),h=[],A=0,E=e.length;A<E;A++)if((r=e[A])||0===r)if("object"===y(r))m.merge(h,r.nodeType?[r]:r);else if(Te.test(r)){for(s=s||d.appendChild(t.createElement("div")),o=(ue.exec(r)||["",""])[1].toLowerCase(),l=he[o]||he._default,s.innerHTML=l[1]+m.htmlPrefilter(r)+l[2],u=l[0];u--;)s=s.lastChild;m.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(t.createTextNode(r));for(d.textContent="",A=0;r=h[A++];)if(n&&m.inArray(r,n)>-1)a&&a.push(r);else if(c=m.contains(r.ownerDocument,r),s=Ae(d.appendChild(r),"script"),c&&Ee(s),i)for(u=0;r=s[u++];)de.test(r.type||"")&&i.push(r);return d}pe=n.createDocumentFragment().appendChild(n.createElement("div")),(fe=n.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),pe.appendChild(fe),E.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",E.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue;var ye=n.documentElement,me=/^key/,_e=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Se=/^([^.]*)(?:\.(.+)|)/;function Oe(){return!0}function be(){return!1}function ve(){try{return n.activeElement}catch(e){}}function Ie(e,t,i,n,a,r){var s,o;if("object"==typeof t){for(o in"string"!=typeof i&&(n=n||i,i=void 0),t)Ie(e,o,i,n,t[o],r);return e}if(null==n&&null==a?(a=i,n=i=void 0):null==a&&("string"==typeof i?(a=n,n=void 0):(a=n,n=i,i=void 0)),!1===a)a=be;else if(!a)return e;return 1===r&&(s=a,(a=function(e){return m().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=m.guid++)),e.each(function(){m.event.add(this,t,a,n,i)})}m.event={global:{},add:function(e,t,i,n,a){var r,s,o,l,c,u,d,h,A,E,p,f=X.get(e);if(f)for(i.handler&&(i=(r=i).handler,a=r.selector),a&&m.find.matchesSelector(ye,a),i.guid||(i.guid=m.guid++),(l=f.events)||(l=f.events={}),(s=f.handle)||(s=f.handle=function(t){return void 0!==m&&m.event.triggered!==t.type?m.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(V)||[""]).length;c--;)A=p=(o=Se.exec(t[c])||[])[1],E=(o[2]||"").split(".").sort(),A&&(d=m.event.special[A]||{},A=(a?d.delegateType:d.bindType)||A,d=m.event.special[A]||{},u=m.extend({type:A,origType:p,data:n,handler:i,guid:i.guid,selector:a,needsContext:a&&m.expr.match.needsContext.test(a),namespace:E.join(".")},r),(h=l[A])||((h=l[A]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,n,E,s)||e.addEventListener&&e.addEventListener(A,s)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=i.guid)),a?h.splice(h.delegateCount++,0,u):h.push(u),m.event.global[A]=!0)},remove:function(e,t,i,n,a){var r,s,o,l,c,u,d,h,A,E,p,f=X.hasData(e)&&X.get(e);if(f&&(l=f.events)){for(c=(t=(t||"").match(V)||[""]).length;c--;)if(A=p=(o=Se.exec(t[c])||[])[1],E=(o[2]||"").split(".").sort(),A){for(d=m.event.special[A]||{},h=l[A=(n?d.delegateType:d.bindType)||A]||[],o=o[2]&&new RegExp("(^|\\.)"+E.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=h.length;r--;)u=h[r],!a&&p!==u.origType||i&&i.guid!==u.guid||o&&!o.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(h.splice(r,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,E,f.handle)||m.removeEvent(e,A,f.handle),delete l[A])}else for(A in l)m.event.remove(e,A+t[c],i,n,!0);m.isEmptyObject(l)&&X.remove(e,"handle events")}},dispatch:function(e){var t,i,n,a,r,s,o=m.event.fix(e),l=new Array(arguments.length),c=(X.get(this,"events")||{})[o.type]||[],u=m.event.special[o.type]||{};for(l[0]=o,t=1;t<arguments.length;t++)l[t]=arguments[t];if(o.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,o)){for(s=m.event.handlers.call(this,o,c),t=0;(a=s[t++])&&!o.isPropagationStopped();)for(o.currentTarget=a.elem,i=0;(r=a.handlers[i++])&&!o.isImmediatePropagationStopped();)o.rnamespace&&!o.rnamespace.test(r.namespace)||(o.handleObj=r,o.data=r.data,void 0!==(n=((m.event.special[r.origType]||{}).handle||r.handler).apply(a.elem,l))&&!1===(o.result=n)&&(o.preventDefault(),o.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,o),o.result}},handlers:function(e,t){var i,n,a,r,s,o=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(r=[],s={},i=0;i<l;i++)void 0===s[a=(n=t[i]).selector+" "]&&(s[a]=n.needsContext?m(a,this).index(c)>-1:m.find(a,this,null,[c]).length),s[a]&&r.push(n);r.length&&o.push({elem:c,handlers:r})}return c=this,l<t.length&&o.push({elem:c,handlers:t.slice(l)}),o},addProp:function(e,t){Object.defineProperty(m.Event.prototype,e,{enumerable:!0,configurable:!0,get:p(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[m.expando]?e:new m.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ve()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===ve()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&N(this,"input"))return this.click(),!1},_default:function(e){return N(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},m.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},m.Event=function(e,t){if(!(this instanceof m.Event))return new m.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Oe:be,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&m.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[m.expando]=!0},m.Event.prototype={constructor:m.Event,isDefaultPrevented:be,isPropagationStopped:be,isImmediatePropagationStopped:be,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Oe,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Oe,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Oe,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},m.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&me.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&_e.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},m.event.addProp),m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){m.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,n=e.relatedTarget,a=e.handleObj;return n&&(n===this||m.contains(this,n))||(e.type=a.origType,i=a.handler.apply(this,arguments),e.type=t),i}}}),m.fn.extend({on:function(e,t,i,n){return Ie(this,e,t,i,n)},one:function(e,t,i,n){return Ie(this,e,t,i,n,1)},off:function(e,t,i){var n,a;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,m(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(a in e)this.off(a,t,e[a]);return this}return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=be),this.each(function(){m.event.remove(this,e,i,t)})}});var Ne=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,De=/<script|<style|<link/i,Ce=/checked\s*(?:[^=]|=\s*.checked.)/i,Re=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Le(e,t){return N(e,"table")&&N(11!==t.nodeType?t:t.firstChild,"tr")&&m(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function we(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ke(e,t){var i,n,a,r,s,o,l,c;if(1===t.nodeType){if(X.hasData(e)&&(r=X.access(e),s=X.set(t,r),c=r.events))for(a in delete s.handle,s.events={},c)for(i=0,n=c[a].length;i<n;i++)m.event.add(t,a,c[a][i]);Q.hasData(e)&&(o=Q.access(e),l=m.extend({},o),Q.set(t,l))}}function Ve(e,t,i,n){t=s.apply([],t);var a,r,o,l,c,u,d=0,h=e.length,A=h-1,f=t[0],T=p(f);if(T||h>1&&"string"==typeof f&&!E.checkClone&&Ce.test(f))return e.each(function(a){var r=e.eq(a);T&&(t[0]=f.call(this,a,r.html())),Ve(r,t,i,n)});if(h&&(r=(a=ge(t,e[0].ownerDocument,!1,e,n)).firstChild,1===a.childNodes.length&&(a=r),r||n)){for(l=(o=m.map(Ae(a,"script"),Pe)).length;d<h;d++)c=a,d!==A&&(c=m.clone(c,!0,!0),l&&m.merge(o,Ae(c,"script"))),i.call(e[d],c,d);if(l)for(u=o[o.length-1].ownerDocument,m.map(o,we),d=0;d<l;d++)c=o[d],de.test(c.type||"")&&!X.access(c,"globalEval")&&m.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?m._evalUrl&&m._evalUrl(c.src):g(c.textContent.replace(Re,""),u,c))}return e}function Be(e,t,i){for(var n,a=t?m.filter(t,e):e,r=0;null!=(n=a[r]);r++)i||1!==n.nodeType||m.cleanData(Ae(n)),n.parentNode&&(i&&m.contains(n.ownerDocument,n)&&Ee(Ae(n,"script")),n.parentNode.removeChild(n));return e}m.extend({htmlPrefilter:function(e){return e.replace(Ne,"<$1></$2>")},clone:function(e,t,i){var n,a,r,s,o,l,c,u=e.cloneNode(!0),d=m.contains(e.ownerDocument,e);if(!(E.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||m.isXMLDoc(e)))for(s=Ae(u),n=0,a=(r=Ae(e)).length;n<a;n++)o=r[n],l=s[n],c=void 0,"input"===(c=l.nodeName.toLowerCase())&&ce.test(o.type)?l.checked=o.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=o.defaultValue);if(t)if(i)for(r=r||Ae(e),s=s||Ae(u),n=0,a=r.length;n<a;n++)ke(r[n],s[n]);else ke(e,u);return(s=Ae(u,"script")).length>0&&Ee(s,!d&&Ae(e,"script")),u},cleanData:function(e){for(var t,i,n,a=m.event.special,r=0;void 0!==(i=e[r]);r++)if(z(i)){if(t=i[X.expando]){if(t.events)for(n in t.events)a[n]?m.event.remove(i,n):m.removeEvent(i,n,t.handle);i[X.expando]=void 0}i[Q.expando]&&(i[Q.expando]=void 0)}}}),m.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return G(this,function(e){return void 0===e?m.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Ve(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Le(this,e).appendChild(e)})},prepend:function(){return Ve(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Le(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Ve(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ve(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(m.cleanData(Ae(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return m.clone(this,e,t)})},html:function(e){return G(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!De.test(e)&&!he[(ue.exec(e)||["",""])[1].toLowerCase()]){e=m.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(m.cleanData(Ae(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Ve(this,arguments,function(t){var i=this.parentNode;m.inArray(this,e)<0&&(m.cleanData(Ae(this)),i&&i.replaceChild(t,this))},e)}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){m.fn[e]=function(e){for(var i,n=[],a=m(e),r=a.length-1,s=0;s<=r;s++)i=s===r?this:this.clone(!0),m(a[s])[t](i),o.apply(n,i.get());return this.pushStack(n)}});var Me=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Fe=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=e),i.getComputedStyle(t)},Ue=new RegExp(ie.join("|"),"i");function He(e,t,i){var n,a,r,s,o=e.style;return(i=i||Fe(e))&&(""!==(s=i.getPropertyValue(t)||i[t])||m.contains(e.ownerDocument,e)||(s=m.style(e,t)),!E.pixelBoxStyles()&&Me.test(s)&&Ue.test(t)&&(n=o.width,a=o.minWidth,r=o.maxWidth,o.minWidth=o.maxWidth=o.width=s,s=i.width,o.width=n,o.minWidth=a,o.maxWidth=r)),void 0!==s?s+"":s}function xe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ye.appendChild(c).appendChild(u);var t=e.getComputedStyle(u);a="1%"!==t.top,l=12===i(t.marginLeft),u.style.right="60%",o=36===i(t.right),r=36===i(t.width),u.style.position="absolute",s=36===u.offsetWidth||"absolute",ye.removeChild(c),u=null}}function i(e){return Math.round(parseFloat(e))}var a,r,s,o,l,c=n.createElement("div"),u=n.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",E.clearCloneStyle="content-box"===u.style.backgroundClip,m.extend(E,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),o},pixelPosition:function(){return t(),a},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),s}}))}();var Ge=/^(none|table(?!-c[ea]).+)/,Ye=/^--/,je={position:"absolute",visibility:"hidden",display:"block"},We={letterSpacing:"0",fontWeight:"400"},Ke=["Webkit","Moz","ms"],ze=n.createElement("div").style;function qe(e){var t=m.cssProps[e];return t||(t=m.cssProps[e]=function(e){if(e in ze)return e;for(var t=e[0].toUpperCase()+e.slice(1),i=Ke.length;i--;)if((e=Ke[i]+t)in ze)return e}(e)||e),t}function Xe(e,t,i){var n=te.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function Qe(e,t,i,n,a,r){var s="width"===t?1:0,o=0,l=0;if(i===(n?"border":"content"))return 0;for(;s<4;s+=2)"margin"===i&&(l+=m.css(e,i+ie[s],!0,a)),n?("content"===i&&(l-=m.css(e,"padding"+ie[s],!0,a)),"margin"!==i&&(l-=m.css(e,"border"+ie[s]+"Width",!0,a))):(l+=m.css(e,"padding"+ie[s],!0,a),"padding"!==i?l+=m.css(e,"border"+ie[s]+"Width",!0,a):o+=m.css(e,"border"+ie[s]+"Width",!0,a));return!n&&r>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-l-o-.5))),l}function Ze(e,t,i){var n=Fe(e),a=He(e,t,n),r="border-box"===m.css(e,"boxSizing",!1,n),s=r;if(Me.test(a)){if(!i)return a;a="auto"}return s=s&&(E.boxSizingReliable()||a===e.style[t]),("auto"===a||!parseFloat(a)&&"inline"===m.css(e,"display",!1,n))&&(a=e["offset"+t[0].toUpperCase()+t.slice(1)],s=!0),(a=parseFloat(a)||0)+Qe(e,t,i||(r?"border":"content"),s,n,a)+"px"}function Je(e,t,i,n,a){return new Je.prototype.init(e,t,i,n,a)}m.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=He(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,r,s,o=K(t),l=Ye.test(t),c=e.style;if(l||(t=qe(o)),s=m.cssHooks[t]||m.cssHooks[o],void 0===i)return s&&"get"in s&&void 0!==(a=s.get(e,!1,n))?a:c[t];"string"===(r=typeof i)&&(a=te.exec(i))&&a[1]&&(i=re(e,t,a),r="number"),null!=i&&i==i&&("number"===r&&(i+=a&&a[3]||(m.cssNumber[o]?"":"px")),E.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(i=s.set(e,i,n))||(l?c.setProperty(t,i):c[t]=i))}},css:function(e,t,i,n){var a,r,s,o=K(t);return Ye.test(t)||(t=qe(o)),(s=m.cssHooks[t]||m.cssHooks[o])&&"get"in s&&(a=s.get(e,!0,i)),void 0===a&&(a=He(e,t,n)),"normal"===a&&t in We&&(a=We[t]),""===i||i?(r=parseFloat(a),!0===i||isFinite(r)?r||0:a):a}}),m.each(["height","width"],function(e,t){m.cssHooks[t]={get:function(e,i,n){if(i)return!Ge.test(m.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ze(e,t,n):ae(e,je,function(){return Ze(e,t,n)})},set:function(e,i,n){var a,r=Fe(e),s="border-box"===m.css(e,"boxSizing",!1,r),o=n&&Qe(e,t,n,s,r);return s&&E.scrollboxSize()===r.position&&(o-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(r[t])-Qe(e,t,"border",!1,r)-.5)),o&&(a=te.exec(i))&&"px"!==(a[3]||"px")&&(e.style[t]=i,i=m.css(e,t)),Xe(0,i,o)}}}),m.cssHooks.marginLeft=xe(E.reliableMarginLeft,function(e,t){if(t)return(parseFloat(He(e,"marginLeft"))||e.getBoundingClientRect().left-ae(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),m.each({margin:"",padding:"",border:"Width"},function(e,t){m.cssHooks[e+t]={expand:function(i){for(var n=0,a={},r="string"==typeof i?i.split(" "):[i];n<4;n++)a[e+ie[n]+t]=r[n]||r[n-2]||r[0];return a}},"margin"!==e&&(m.cssHooks[e+t].set=Xe)}),m.fn.extend({css:function(e,t){return G(this,function(e,t,i){var n,a,r={},s=0;if(Array.isArray(t)){for(n=Fe(e),a=t.length;s<a;s++)r[t[s]]=m.css(e,t[s],!1,n);return r}return void 0!==i?m.style(e,t,i):m.css(e,t)},e,t,arguments.length>1)}}),m.Tween=Je,Je.prototype={constructor:Je,init:function(e,t,i,n,a,r){this.elem=e,this.prop=i,this.easing=a||m.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=r||(m.cssNumber[i]?"":"px")},cur:function(){var e=Je.propHooks[this.prop];return e&&e.get?e.get(this):Je.propHooks._default.get(this)},run:function(e){var t,i=Je.propHooks[this.prop];return this.options.duration?this.pos=t=m.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):Je.propHooks._default.set(this),this}},Je.prototype.init.prototype=Je.prototype,Je.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=m.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){m.fx.step[e.prop]?m.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[m.cssProps[e.prop]]&&!m.cssHooks[e.prop]?e.elem[e.prop]=e.now:m.style(e.elem,e.prop,e.now+e.unit)}}},Je.propHooks.scrollTop=Je.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},m.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},m.fx=Je.prototype.init,m.fx.step={};var $e,et,tt=/^(?:toggle|show|hide)$/,it=/queueHooks$/;function nt(){et&&(!1===n.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(nt):e.setTimeout(nt,m.fx.interval),m.fx.tick())}function at(){return e.setTimeout(function(){$e=void 0}),$e=Date.now()}function rt(e,t){var i,n=0,a={height:e};for(t=t?1:0;n<4;n+=2-t)a["margin"+(i=ie[n])]=a["padding"+i]=e;return t&&(a.opacity=a.width=e),a}function st(e,t,i){for(var n,a=(ot.tweeners[t]||[]).concat(ot.tweeners["*"]),r=0,s=a.length;r<s;r++)if(n=a[r].call(i,t,e))return n}function ot(e,t,i){var n,a,r=0,s=ot.prefilters.length,o=m.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var t=$e||at(),i=Math.max(0,c.startTime+c.duration-t),n=1-(i/c.duration||0),r=0,s=c.tweens.length;r<s;r++)c.tweens[r].run(n);return o.notifyWith(e,[c,n,i]),n<1&&s?i:(s||o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c]),!1)},c=o.promise({elem:e,props:m.extend({},t),opts:m.extend(!0,{specialEasing:{},easing:m.easing._default},i),originalProperties:t,originalOptions:i,startTime:$e||at(),duration:i.duration,tweens:[],createTween:function(t,i){var n=m.Tween(e,c.opts,t,i,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(n),n},stop:function(t){var i=0,n=t?c.tweens.length:0;if(a)return this;for(a=!0;i<n;i++)c.tweens[i].run(1);return t?(o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c,t])):o.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var i,n,a,r,s;for(i in e)if(a=t[n=K(i)],r=e[i],Array.isArray(r)&&(a=r[1],r=e[i]=r[0]),i!==n&&(e[n]=r,delete e[i]),(s=m.cssHooks[n])&&"expand"in s)for(i in r=s.expand(r),delete e[n],r)i in e||(e[i]=r[i],t[i]=a);else t[n]=a}(u,c.opts.specialEasing);r<s;r++)if(n=ot.prefilters[r].call(c,e,u,c.opts))return p(n.stop)&&(m._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return m.map(u,st,c),p(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),m.fx.timer(m.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}m.Animation=m.extend(ot,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return re(i.elem,e,te.exec(t),i),i}]},tweener:function(e,t){p(e)?(t=e,e=["*"]):e=e.match(V);for(var i,n=0,a=e.length;n<a;n++)i=e[n],ot.tweeners[i]=ot.tweeners[i]||[],ot.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var n,a,r,s,o,l,c,u,d="width"in t||"height"in t,h=this,A={},E=e.style,p=e.nodeType&&ne(e),f=X.get(e,"fxshow");for(n in i.queue||(null==(s=m._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,o=s.empty.fire,s.empty.fire=function(){s.unqueued||o()}),s.unqueued++,h.always(function(){h.always(function(){s.unqueued--,m.queue(e,"fx").length||s.empty.fire()})})),t)if(a=t[n],tt.test(a)){if(delete t[n],r=r||"toggle"===a,a===(p?"hide":"show")){if("show"!==a||!f||void 0===f[n])continue;p=!0}A[n]=f&&f[n]||m.style(e,n)}if((l=!m.isEmptyObject(t))||!m.isEmptyObject(A))for(n in d&&1===e.nodeType&&(i.overflow=[E.overflow,E.overflowX,E.overflowY],null==(c=f&&f.display)&&(c=X.get(e,"display")),"none"===(u=m.css(e,"display"))&&(c?u=c:(le([e],!0),c=e.style.display||c,u=m.css(e,"display"),le([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===m.css(e,"float")&&(l||(h.done(function(){E.display=c}),null==c&&(u=E.display,c="none"===u?"":u)),E.display="inline-block")),i.overflow&&(E.overflow="hidden",h.always(function(){E.overflow=i.overflow[0],E.overflowX=i.overflow[1],E.overflowY=i.overflow[2]})),l=!1,A)l||(f?"hidden"in f&&(p=f.hidden):f=X.access(e,"fxshow",{display:c}),r&&(f.hidden=!p),p&&le([e],!0),h.done(function(){for(n in p||le([e]),X.remove(e,"fxshow"),A)m.style(e,n,A[n])})),l=st(p?f[n]:0,n,h),n in f||(f[n]=l.start,p&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ot.prefilters.unshift(e):ot.prefilters.push(e)}}),m.speed=function(e,t,i){var n=e&&"object"==typeof e?m.extend({},e):{complete:i||!i&&t||p(e)&&e,duration:e,easing:i&&t||t&&!p(t)&&t};return m.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in m.fx.speeds?n.duration=m.fx.speeds[n.duration]:n.duration=m.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){p(n.old)&&n.old.call(this),n.queue&&m.dequeue(this,n.queue)},n},m.fn.extend({fadeTo:function(e,t,i,n){return this.filter(ne).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var a=m.isEmptyObject(e),r=m.speed(t,i,n),s=function(){var t=ot(this,m.extend({},e),r);(a||X.get(this,"finish"))&&t.stop(!0)};return s.finish=s,a||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(e,t,i){var n=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,a=null!=e&&e+"queueHooks",r=m.timers,s=X.get(this);if(a)s[a]&&s[a].stop&&n(s[a]);else for(a in s)s[a]&&s[a].stop&&it.test(a)&&n(s[a]);for(a=r.length;a--;)r[a].elem!==this||null!=e&&r[a].queue!==e||(r[a].anim.stop(i),t=!1,r.splice(a,1));!t&&i||m.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,i=X.get(this),n=i[e+"queue"],a=i[e+"queueHooks"],r=m.timers,s=n?n.length:0;for(i.finish=!0,m.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<s;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete i.finish})}}),m.each(["toggle","show","hide"],function(e,t){var i=m.fn[t];m.fn[t]=function(e,n,a){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(rt(t,!0),e,n,a)}}),m.each({slideDown:rt("show"),slideUp:rt("hide"),slideToggle:rt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){m.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}}),m.timers=[],m.fx.tick=function(){var e,t=0,i=m.timers;for($e=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||m.fx.stop(),$e=void 0},m.fx.timer=function(e){m.timers.push(e),m.fx.start()},m.fx.interval=13,m.fx.start=function(){et||(et=!0,nt())},m.fx.stop=function(){et=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(t,i){return t=m.fx&&m.fx.speeds[t]||t,i=i||"fx",this.queue(i,function(i,n){var a=e.setTimeout(i,t);n.stop=function(){e.clearTimeout(a)}})},function(){var e=n.createElement("input"),t=n.createElement("select").appendChild(n.createElement("option"));e.type="checkbox",E.checkOn=""!==e.value,E.optSelected=t.selected,(e=n.createElement("input")).value="t",e.type="radio",E.radioValue="t"===e.value}();var lt,ct=m.expr.attrHandle;m.fn.extend({attr:function(e,t){return G(this,m.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){m.removeAttr(this,e)})}}),m.extend({attr:function(e,t,i){var n,a,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?m.prop(e,t,i):(1===r&&m.isXMLDoc(e)||(a=m.attrHooks[t.toLowerCase()]||(m.expr.match.bool.test(t)?lt:void 0)),void 0!==i?null===i?void m.removeAttr(e,t):a&&"set"in a&&void 0!==(n=a.set(e,i,t))?n:(e.setAttribute(t,i+""),i):a&&"get"in a&&null!==(n=a.get(e,t))?n:null==(n=m.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!E.radioValue&&"radio"===t&&N(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n=0,a=t&&t.match(V);if(a&&1===e.nodeType)for(;i=a[n++];)e.removeAttribute(i)}}),lt={set:function(e,t,i){return!1===t?m.removeAttr(e,i):e.setAttribute(i,i),i}},m.each(m.expr.match.bool.source.match(/\w+/g),function(e,t){var i=ct[t]||m.find.attr;ct[t]=function(e,t,n){var a,r,s=t.toLowerCase();return n||(r=ct[s],ct[s]=a,a=null!=i(e,t,n)?s:null,ct[s]=r),a}});var ut=/^(?:input|select|textarea|button)$/i,dt=/^(?:a|area)$/i;function ht(e){return(e.match(V)||[]).join(" ")}function At(e){return e.getAttribute&&e.getAttribute("class")||""}function Et(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(V)||[]}m.fn.extend({prop:function(e,t){return G(this,m.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[m.propFix[e]||e]})}}),m.extend({prop:function(e,t,i){var n,a,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&m.isXMLDoc(e)||(t=m.propFix[t]||t,a=m.propHooks[t]),void 0!==i?a&&"set"in a&&void 0!==(n=a.set(e,i,t))?n:e[t]=i:a&&"get"in a&&null!==(n=a.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=m.find.attr(e,"tabindex");return t?parseInt(t,10):ut.test(e.nodeName)||dt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),E.optSelected||(m.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this}),m.fn.extend({addClass:function(e){var t,i,n,a,r,s,o,l=0;if(p(e))return this.each(function(t){m(this).addClass(e.call(this,t,At(this)))});if((t=Et(e)).length)for(;i=this[l++];)if(a=At(i),n=1===i.nodeType&&" "+ht(a)+" "){for(s=0;r=t[s++];)n.indexOf(" "+r+" ")<0&&(n+=r+" ");a!==(o=ht(n))&&i.setAttribute("class",o)}return this},removeClass:function(e){var t,i,n,a,r,s,o,l=0;if(p(e))return this.each(function(t){m(this).removeClass(e.call(this,t,At(this)))});if(!arguments.length)return this.attr("class","");if((t=Et(e)).length)for(;i=this[l++];)if(a=At(i),n=1===i.nodeType&&" "+ht(a)+" "){for(s=0;r=t[s++];)for(;n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");a!==(o=ht(n))&&i.setAttribute("class",o)}return this},toggleClass:function(e,t){var i=typeof e,n="string"===i||Array.isArray(e);return"boolean"==typeof t&&n?t?this.addClass(e):this.removeClass(e):p(e)?this.each(function(i){m(this).toggleClass(e.call(this,i,At(this),t),t)}):this.each(function(){var t,a,r,s;if(n)for(a=0,r=m(this),s=Et(e);t=s[a++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==i||((t=At(this))&&X.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":X.get(this,"__className__")||""))})},hasClass:function(e){var t,i,n=0;for(t=" "+e+" ";i=this[n++];)if(1===i.nodeType&&(" "+ht(At(i))+" ").indexOf(t)>-1)return!0;return!1}});var pt=/\r/g;m.fn.extend({val:function(e){var t,i,n,a=this[0];return arguments.length?(n=p(e),this.each(function(i){var a;1===this.nodeType&&(null==(a=n?e.call(this,i,m(this).val()):e)?a="":"number"==typeof a?a+="":Array.isArray(a)&&(a=m.map(a,function(e){return null==e?"":e+""})),(t=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))})):a?(t=m.valHooks[a.type]||m.valHooks[a.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(a,"value"))?i:"string"==typeof(i=a.value)?i.replace(pt,""):null==i?"":i:void 0}}),m.extend({valHooks:{option:{get:function(e){var t=m.find.attr(e,"value");return null!=t?t:ht(m.text(e))}},select:{get:function(e){var t,i,n,a=e.options,r=e.selectedIndex,s="select-one"===e.type,o=s?null:[],l=s?r+1:a.length;for(n=r<0?l:s?r:0;n<l;n++)if(((i=a[n]).selected||n===r)&&!i.disabled&&(!i.parentNode.disabled||!N(i.parentNode,"optgroup"))){if(t=m(i).val(),s)return t;o.push(t)}return o},set:function(e,t){for(var i,n,a=e.options,r=m.makeArray(t),s=a.length;s--;)((n=a[s]).selected=m.inArray(m.valHooks.option.get(n),r)>-1)&&(i=!0);return i||(e.selectedIndex=-1),r}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=m.inArray(m(e).val(),t)>-1}},E.checkOn||(m.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),E.focusin="onfocusin"in e;var ft=/^(?:focusinfocus|focusoutblur)$/,Tt=function(e){e.stopPropagation()};m.extend(m.event,{trigger:function(t,i,a,r){var s,o,l,c,u,h,A,E,T=[a||n],g=d.call(t,"type")?t.type:t,y=d.call(t,"namespace")?t.namespace.split("."):[];if(o=E=l=a=a||n,3!==a.nodeType&&8!==a.nodeType&&!ft.test(g+m.event.triggered)&&(g.indexOf(".")>-1&&(y=g.split("."),g=y.shift(),y.sort()),u=g.indexOf(":")<0&&"on"+g,(t=t[m.expando]?t:new m.Event(g,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=a),i=null==i?[t]:m.makeArray(i,[t]),A=m.event.special[g]||{},r||!A.trigger||!1!==A.trigger.apply(a,i))){if(!r&&!A.noBubble&&!f(a)){for(c=A.delegateType||g,ft.test(c+g)||(o=o.parentNode);o;o=o.parentNode)T.push(o),l=o;l===(a.ownerDocument||n)&&T.push(l.defaultView||l.parentWindow||e)}for(s=0;(o=T[s++])&&!t.isPropagationStopped();)E=o,t.type=s>1?c:A.bindType||g,(h=(X.get(o,"events")||{})[t.type]&&X.get(o,"handle"))&&h.apply(o,i),(h=u&&o[u])&&h.apply&&z(o)&&(t.result=h.apply(o,i),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||A._default&&!1!==A._default.apply(T.pop(),i)||!z(a)||u&&p(a[g])&&!f(a)&&((l=a[u])&&(a[u]=null),m.event.triggered=g,t.isPropagationStopped()&&E.addEventListener(g,Tt),a[g](),t.isPropagationStopped()&&E.removeEventListener(g,Tt),m.event.triggered=void 0,l&&(a[u]=l)),t.result}},simulate:function(e,t,i){var n=m.extend(new m.Event,i,{type:e,isSimulated:!0});m.event.trigger(n,null,t)}}),m.fn.extend({trigger:function(e,t){return this.each(function(){m.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return m.event.trigger(e,t,i,!0)}}),E.focusin||m.each({focus:"focusin",blur:"focusout"},function(e,t){var i=function(e){m.event.simulate(t,e.target,m.event.fix(e))};m.event.special[t]={setup:function(){var n=this.ownerDocument||this,a=X.access(n,t);a||n.addEventListener(e,i,!0),X.access(n,t,(a||0)+1)},teardown:function(){var n=this.ownerDocument||this,a=X.access(n,t)-1;a?X.access(n,t,a):(n.removeEventListener(e,i,!0),X.remove(n,t))}}});var gt=e.location,yt=Date.now(),mt=/\?/;m.parseXML=function(t){var i;if(!t||"string"!=typeof t)return null;try{i=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){i=void 0}return i&&!i.getElementsByTagName("parsererror").length||m.error("Invalid XML: "+t),i};var _t=/\[\]$/,St=/\r?\n/g,Ot=/^(?:submit|button|image|reset|file)$/i,bt=/^(?:input|select|textarea|keygen)/i;function vt(e,t,i,n){var a;if(Array.isArray(t))m.each(t,function(t,a){i||_t.test(e)?n(e,a):vt(e+"["+("object"==typeof a&&null!=a?t:"")+"]",a,i,n)});else if(i||"object"!==y(t))n(e,t);else for(a in t)vt(e+"["+a+"]",t[a],i,n)}m.param=function(e,t){var i,n=[],a=function(e,t){var i=p(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(Array.isArray(e)||e.jquery&&!m.isPlainObject(e))m.each(e,function(){a(this.name,this.value)});else for(i in e)vt(i,e[i],t,a);return n.join("&")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=m.prop(this,"elements");return e?m.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!m(this).is(":disabled")&&bt.test(this.nodeName)&&!Ot.test(e)&&(this.checked||!ce.test(e))}).map(function(e,t){var i=m(this).val();return null==i?null:Array.isArray(i)?m.map(i,function(e){return{name:t.name,value:e.replace(St,"\r\n")}}):{name:t.name,value:i.replace(St,"\r\n")}}).get()}});var It=/%20/g,Nt=/#.*$/,Dt=/([?&])_=[^&]*/,Ct=/^(.*?):[ \t]*([^\r\n]*)$/gm,Rt=/^(?:GET|HEAD)$/,Lt=/^\/\//,Pt={},wt={},kt="*/".concat("*"),Vt=n.createElement("a");function Bt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,a=0,r=t.toLowerCase().match(V)||[];if(p(i))for(;n=r[a++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function Mt(e,t,i,n){var a={},r=e===wt;function s(o){var l;return a[o]=!0,m.each(e[o]||[],function(e,o){var c=o(t,i,n);return"string"!=typeof c||r||a[c]?r?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)}),l}return s(t.dataTypes[0])||!a["*"]&&s("*")}function Ft(e,t){var i,n,a=m.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((a[i]?e:n||(n={}))[i]=t[i]);return n&&m.extend(!0,e,n),e}Vt.href=gt.href,m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:gt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(gt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":kt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ft(Ft(e,m.ajaxSettings),t):Ft(m.ajaxSettings,e)},ajaxPrefilter:Bt(Pt),ajaxTransport:Bt(wt),ajax:function(t,i){"object"==typeof t&&(i=t,t=void 0),i=i||{};var a,r,s,o,l,c,u,d,h,A,E=m.ajaxSetup({},i),p=E.context||E,f=E.context&&(p.nodeType||p.jquery)?m(p):m.event,T=m.Deferred(),g=m.Callbacks("once memory"),y=E.statusCode||{},_={},S={},O="canceled",b={readyState:0,getResponseHeader:function(e){var t;if(u){if(!o)for(o={};t=Ct.exec(s);)o[t[1].toLowerCase()]=t[2];t=o[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return u?s:null},setRequestHeader:function(e,t){return null==u&&(e=S[e.toLowerCase()]=S[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==u&&(E.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)b.always(e[b.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||O;return a&&a.abort(t),v(0,t),this}};if(T.promise(b),E.url=((t||E.url||gt.href)+"").replace(Lt,gt.protocol+"//"),E.type=i.method||i.type||E.method||E.type,E.dataTypes=(E.dataType||"*").toLowerCase().match(V)||[""],null==E.crossDomain){c=n.createElement("a");try{c.href=E.url,c.href=c.href,E.crossDomain=Vt.protocol+"//"+Vt.host!=c.protocol+"//"+c.host}catch(e){E.crossDomain=!0}}if(E.data&&E.processData&&"string"!=typeof E.data&&(E.data=m.param(E.data,E.traditional)),Mt(Pt,E,i,b),u)return b;for(h in(d=m.event&&E.global)&&0==m.active++&&m.event.trigger("ajaxStart"),E.type=E.type.toUpperCase(),E.hasContent=!Rt.test(E.type),r=E.url.replace(Nt,""),E.hasContent?E.data&&E.processData&&0===(E.contentType||"").indexOf("application/x-www-form-urlencoded")&&(E.data=E.data.replace(It,"+")):(A=E.url.slice(r.length),E.data&&(E.processData||"string"==typeof E.data)&&(r+=(mt.test(r)?"&":"?")+E.data,delete E.data),!1===E.cache&&(r=r.replace(Dt,"$1"),A=(mt.test(r)?"&":"?")+"_="+yt+++A),E.url=r+A),E.ifModified&&(m.lastModified[r]&&b.setRequestHeader("If-Modified-Since",m.lastModified[r]),m.etag[r]&&b.setRequestHeader("If-None-Match",m.etag[r])),(E.data&&E.hasContent&&!1!==E.contentType||i.contentType)&&b.setRequestHeader("Content-Type",E.contentType),b.setRequestHeader("Accept",E.dataTypes[0]&&E.accepts[E.dataTypes[0]]?E.accepts[E.dataTypes[0]]+("*"!==E.dataTypes[0]?", "+kt+"; q=0.01":""):E.accepts["*"]),E.headers)b.setRequestHeader(h,E.headers[h]);if(E.beforeSend&&(!1===E.beforeSend.call(p,b,E)||u))return b.abort();if(O="abort",g.add(E.complete),b.done(E.success),b.fail(E.error),a=Mt(wt,E,i,b)){if(b.readyState=1,d&&f.trigger("ajaxSend",[b,E]),u)return b;E.async&&E.timeout>0&&(l=e.setTimeout(function(){b.abort("timeout")},E.timeout));try{u=!1,a.send(_,v)}catch(e){if(u)throw e;v(-1,e)}}else v(-1,"No Transport");function v(t,i,n,o){var c,h,A,_,S,O=i;u||(u=!0,l&&e.clearTimeout(l),a=void 0,s=o||"",b.readyState=t>0?4:0,c=t>=200&&t<300||304===t,n&&(_=function(e,t,i){for(var n,a,r,s,o=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(a in o)if(o[a]&&o[a].test(n)){l.unshift(a);break}if(l[0]in i)r=l[0];else{for(a in i){if(!l[0]||e.converters[a+" "+l[0]]){r=a;break}s||(s=a)}r=r||s}if(r)return r!==l[0]&&l.unshift(r),i[r]}(E,b,n)),_=function(e,t,i,n){var a,r,s,o,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(r=u.shift();r;)if(e.responseFields[r]&&(i[e.responseFields[r]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=c[l+" "+r]||c["* "+r]))for(a in c)if((o=a.split(" "))[1]===r&&(s=c[l+" "+o[0]]||c["* "+o[0]])){!0===s?s=c[a]:!0!==c[a]&&(r=o[0],u.unshift(o[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(E,_,b,c),c?(E.ifModified&&((S=b.getResponseHeader("Last-Modified"))&&(m.lastModified[r]=S),(S=b.getResponseHeader("etag"))&&(m.etag[r]=S)),204===t||"HEAD"===E.type?O="nocontent":304===t?O="notmodified":(O=_.state,h=_.data,c=!(A=_.error))):(A=O,!t&&O||(O="error",t<0&&(t=0))),b.status=t,b.statusText=(i||O)+"",c?T.resolveWith(p,[h,O,b]):T.rejectWith(p,[b,O,A]),b.statusCode(y),y=void 0,d&&f.trigger(c?"ajaxSuccess":"ajaxError",[b,E,c?h:A]),g.fireWith(p,[b,O]),d&&(f.trigger("ajaxComplete",[b,E]),--m.active||m.event.trigger("ajaxStop")))}return b},getJSON:function(e,t,i){return m.get(e,t,i,"json")},getScript:function(e,t){return m.get(e,void 0,t,"script")}}),m.each(["get","post"],function(e,t){m[t]=function(e,i,n,a){return p(i)&&(a=a||n,n=i,i=void 0),m.ajax(m.extend({url:e,type:t,dataType:a,data:i,success:n},m.isPlainObject(e)&&e))}}),m._evalUrl=function(e){return m.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},m.fn.extend({wrapAll:function(e){var t;return this[0]&&(p(e)&&(e=e.call(this[0])),t=m(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return p(e)?this.each(function(t){m(this).wrapInner(e.call(this,t))}):this.each(function(){var t=m(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=p(e);return this.each(function(i){m(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){m(this).replaceWith(this.childNodes)}),this}}),m.expr.pseudos.hidden=function(e){return!m.expr.pseudos.visible(e)},m.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},m.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Ut={0:200,1223:204},Ht=m.ajaxSettings.xhr();E.cors=!!Ht&&"withCredentials"in Ht,E.ajax=Ht=!!Ht,m.ajaxTransport(function(t){var i,n;if(E.cors||Ht&&!t.crossDomain)return{send:function(a,r){var s,o=t.xhr();if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)o[s]=t.xhrFields[s];for(s in t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest"),a)o.setRequestHeader(s,a[s]);i=function(e){return function(){i&&(i=n=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?r(0,"error"):r(o.status,o.statusText):r(Ut[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=i(),n=o.onerror=o.ontimeout=i("error"),void 0!==o.onabort?o.onabort=n:o.onreadystatechange=function(){4===o.readyState&&e.setTimeout(function(){i&&n()})},i=i("abort");try{o.send(t.hasContent&&t.data||null)}catch(e){if(i)throw e}},abort:function(){i&&i()}}}),m.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return m.globalEval(e),e}}}),m.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),m.ajaxTransport("script",function(e){var t,i;if(e.crossDomain)return{send:function(a,r){t=m("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",i=function(e){t.remove(),i=null,e&&r("error"===e.type?404:200,e.type)}),n.head.appendChild(t[0])},abort:function(){i&&i()}}});var xt,Gt=[],Yt=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||m.expando+"_"+yt++;return this[e]=!0,e}}),m.ajaxPrefilter("json jsonp",function(t,i,n){var a,r,s,o=!1!==t.jsonp&&(Yt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(t.data)&&"data");if(o||"jsonp"===t.dataTypes[0])return a=t.jsonpCallback=p(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,o?t[o]=t[o].replace(Yt,"$1"+a):!1!==t.jsonp&&(t.url+=(mt.test(t.url)?"&":"?")+t.jsonp+"="+a),t.converters["script json"]=function(){return s||m.error(a+" was not called"),s[0]},t.dataTypes[0]="json",r=e[a],e[a]=function(){s=arguments},n.always(function(){void 0===r?m(e).removeProp(a):e[a]=r,t[a]&&(t.jsonpCallback=i.jsonpCallback,Gt.push(a)),s&&p(r)&&r(s[0]),s=r=void 0}),"script"}),E.createHTMLDocument=((xt=n.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===xt.childNodes.length),m.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(E.createHTMLDocument?((a=(t=n.implementation.createHTMLDocument("")).createElement("base")).href=n.location.href,t.head.appendChild(a)):t=n),s=!i&&[],(r=D.exec(e))?[t.createElement(r[1])]:(r=ge([e],t,s),s&&s.length&&m(s).remove(),m.merge([],r.childNodes)));var a,r,s},m.fn.load=function(e,t,i){var n,a,r,s=this,o=e.indexOf(" ");return o>-1&&(n=ht(e.slice(o)),e=e.slice(0,o)),p(t)?(i=t,t=void 0):t&&"object"==typeof t&&(a="POST"),s.length>0&&m.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done(function(e){r=arguments,s.html(n?m("<div>").append(m.parseHTML(e)).find(n):e)}).always(i&&function(e,t){s.each(function(){i.apply(this,r||[e.responseText,t,e])})}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){m.fn[t]=function(e){return this.on(t,e)}}),m.expr.pseudos.animated=function(e){return m.grep(m.timers,function(t){return e===t.elem}).length},m.offset={setOffset:function(e,t,i){var n,a,r,s,o,l,c=m.css(e,"position"),u=m(e),d={};"static"===c&&(e.style.position="relative"),o=u.offset(),r=m.css(e,"top"),l=m.css(e,"left"),("absolute"===c||"fixed"===c)&&(r+l).indexOf("auto")>-1?(s=(n=u.position()).top,a=n.left):(s=parseFloat(r)||0,a=parseFloat(l)||0),p(t)&&(t=t.call(e,i,m.extend({},o))),null!=t.top&&(d.top=t.top-o.top+s),null!=t.left&&(d.left=t.left-o.left+a),"using"in t?t.using.call(e,d):u.css(d)}},m.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){m.offset.setOffset(this,e,t)});var t,i,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,n=this[0],a={top:0,left:0};if("fixed"===m.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===m.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((a=m(e).offset()).top+=m.css(e,"borderTopWidth",!0),a.left+=m.css(e,"borderLeftWidth",!0))}return{top:t.top-a.top-m.css(n,"marginTop",!0),left:t.left-a.left-m.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===m.css(e,"position");)e=e.offsetParent;return e||ye})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var i="pageYOffset"===t;m.fn[e]=function(n){return G(this,function(e,n,a){var r;if(f(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===a)return r?r[t]:e[n];r?r.scrollTo(i?r.pageXOffset:a,i?a:r.pageYOffset):e[n]=a},e,n,arguments.length)}}),m.each(["top","left"],function(e,t){m.cssHooks[t]=xe(E.pixelPosition,function(e,i){if(i)return i=He(e,t),Me.test(i)?m(e).position()[t]+"px":i})}),m.each({Height:"height",Width:"width"},function(e,t){m.each({padding:"inner"+e,content:t,"":"outer"+e},function(i,n){m.fn[n]=function(a,r){var s=arguments.length&&(i||"boolean"!=typeof a),o=i||(!0===a||!0===r?"margin":"border");return G(this,function(t,i,a){var r;return f(t)?0===n.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===a?m.css(t,i,o):m.style(t,i,a,o)},t,s?a:void 0,s)}})}),m.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){m.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}}),m.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),m.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)}}),m.proxy=function(e,t){var i,n,a;if("string"==typeof t&&(i=e[t],t=e,e=i),p(e))return n=r.call(arguments,2),(a=function(){return e.apply(t||this,n.concat(r.call(arguments)))}).guid=e.guid=e.guid||m.guid++,a},m.holdReady=function(e){e?m.readyWait++:m.ready(!0)},m.isArray=Array.isArray,m.parseJSON=JSON.parse,m.nodeName=N,m.isFunction=p,m.isWindow=f,m.camelCase=K,m.type=y,m.now=Date.now,m.isNumeric=function(e){var t=m.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return m});var jt=e.jQuery,Wt=e.$;return m.noConflict=function(t){return e.$===m&&(e.$=Wt),t&&e.jQuery===m&&(e.jQuery=jt),m},t||(e.jQuery=e.$=m),m})},{}],35:[function(e,t,i){var n,a,r=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(e){n=s}try{a="function"==typeof clearTimeout?clearTimeout:o}catch(e){a=o}}();var c,u=[],d=!1,h=-1;function A(){d&&c&&(d=!1,c.length?u=c.concat(u):h=-1,u.length&&E())}function E(){if(!d){var e=l(A);d=!0;for(var t=u.length;t;){for(c=u,u=[];++h<t;)c&&c[h].run();h=-1,t=u.length}c=null,d=!1,function(e){if(a===clearTimeout)return clearTimeout(e);if((a===o||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];u.push(new p(e,t)),1!==u.length||d||l(E)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},{}],36:[function(e,t,i){(function(e){!function(){var n="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||this||{},a=n._,r=Array.prototype,s=Object.prototype,o="undefined"!=typeof Symbol?Symbol.prototype:null,l=r.push,c=r.slice,u=s.toString,d=s.hasOwnProperty,h=Array.isArray,A=Object.keys,E=Object.create,p=function(){},f=function(e){return e instanceof f?e:this instanceof f?void(this._wrapped=e):new f(e)};void 0===i||i.nodeType?n._=f:(void 0!==t&&!t.nodeType&&t.exports&&(i=t.exports=f),i._=f),f.VERSION="1.9.1";var T,g=function(e,t,i){if(void 0===t)return e;switch(null==i?3:i){case 1:return function(i){return e.call(t,i)};case 3:return function(i,n,a){return e.call(t,i,n,a)};case 4:return function(i,n,a,r){return e.call(t,i,n,a,r)}}return function(){return e.apply(t,arguments)}},y=function(e,t,i){return f.iteratee!==T?f.iteratee(e,t):null==e?f.identity:f.isFunction(e)?g(e,t,i):f.isObject(e)&&!f.isArray(e)?f.matcher(e):f.property(e)};f.iteratee=T=function(e,t){return y(e,t,1/0)};var m=function(e,t){return t=null==t?e.length-1:+t,function(){for(var i=Math.max(arguments.length-t,0),n=Array(i),a=0;a<i;a++)n[a]=arguments[a+t];switch(t){case 0:return e.call(this,n);case 1:return e.call(this,arguments[0],n);case 2:return e.call(this,arguments[0],arguments[1],n)}var r=Array(t+1);for(a=0;a<t;a++)r[a]=arguments[a];return r[t]=n,e.apply(this,r)}},_=function(e){if(!f.isObject(e))return{};if(E)return E(e);p.prototype=e;var t=new p;return p.prototype=null,t},S=function(e){return function(t){return null==t?void 0:t[e]}},O=function(e,t){return null!=e&&d.call(e,t)},b=function(e,t){for(var i=t.length,n=0;n<i;n++){if(null==e)return;e=e[t[n]]}return i?e:void 0},v=Math.pow(2,53)-1,I=S("length"),N=function(e){var t=I(e);return"number"==typeof t&&t>=0&&t<=v};f.each=f.forEach=function(e,t,i){var n,a;if(t=g(t,i),N(e))for(n=0,a=e.length;n<a;n++)t(e[n],n,e);else{var r=f.keys(e);for(n=0,a=r.length;n<a;n++)t(e[r[n]],r[n],e)}return e},f.map=f.collect=function(e,t,i){t=y(t,i);for(var n=!N(e)&&f.keys(e),a=(n||e).length,r=Array(a),s=0;s<a;s++){var o=n?n[s]:s;r[s]=t(e[o],o,e)}return r};var D=function(e){return function(t,i,n,a){var r=arguments.length>=3;return function(t,i,n,a){var r=!N(t)&&f.keys(t),s=(r||t).length,o=e>0?0:s-1;for(a||(n=t[r?r[o]:o],o+=e);o>=0&&o<s;o+=e){var l=r?r[o]:o;n=i(n,t[l],l,t)}return n}(t,g(i,a,4),n,r)}};f.reduce=f.foldl=f.inject=D(1),f.reduceRight=f.foldr=D(-1),f.find=f.detect=function(e,t,i){var n=(N(e)?f.findIndex:f.findKey)(e,t,i);if(void 0!==n&&-1!==n)return e[n]},f.filter=f.select=function(e,t,i){var n=[];return t=y(t,i),f.each(e,function(e,i,a){t(e,i,a)&&n.push(e)}),n},f.reject=function(e,t,i){return f.filter(e,f.negate(y(t)),i)},f.every=f.all=function(e,t,i){t=y(t,i);for(var n=!N(e)&&f.keys(e),a=(n||e).length,r=0;r<a;r++){var s=n?n[r]:r;if(!t(e[s],s,e))return!1}return!0},f.some=f.any=function(e,t,i){t=y(t,i);for(var n=!N(e)&&f.keys(e),a=(n||e).length,r=0;r<a;r++){var s=n?n[r]:r;if(t(e[s],s,e))return!0}return!1},f.contains=f.includes=f.include=function(e,t,i,n){return N(e)||(e=f.values(e)),("number"!=typeof i||n)&&(i=0),f.indexOf(e,t,i)>=0},f.invoke=m(function(e,t,i){var n,a;return f.isFunction(t)?a=t:f.isArray(t)&&(n=t.slice(0,-1),t=t[t.length-1]),f.map(e,function(e){var r=a;if(!r){if(n&&n.length&&(e=b(e,n)),null==e)return;r=e[t]}return null==r?r:r.apply(e,i)})}),f.pluck=function(e,t){return f.map(e,f.property(t))},f.where=function(e,t){return f.filter(e,f.matcher(t))},f.findWhere=function(e,t){return f.find(e,f.matcher(t))},f.max=function(e,t,i){var n,a,r=-1/0,s=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var o=0,l=(e=N(e)?e:f.values(e)).length;o<l;o++)null!=(n=e[o])&&n>r&&(r=n);else t=y(t,i),f.each(e,function(e,i,n){((a=t(e,i,n))>s||a===-1/0&&r===-1/0)&&(r=e,s=a)});return r},f.min=function(e,t,i){var n,a,r=1/0,s=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var o=0,l=(e=N(e)?e:f.values(e)).length;o<l;o++)null!=(n=e[o])&&n<r&&(r=n);else t=y(t,i),f.each(e,function(e,i,n){((a=t(e,i,n))<s||a===1/0&&r===1/0)&&(r=e,s=a)});return r},f.shuffle=function(e){return f.sample(e,1/0)},f.sample=function(e,t,i){if(null==t||i)return N(e)||(e=f.values(e)),e[f.random(e.length-1)];var n=N(e)?f.clone(e):f.values(e),a=I(n);t=Math.max(Math.min(t,a),0);for(var r=a-1,s=0;s<t;s++){var o=f.random(s,r),l=n[s];n[s]=n[o],n[o]=l}return n.slice(0,t)},f.sortBy=function(e,t,i){var n=0;return t=y(t,i),f.pluck(f.map(e,function(e,i,a){return{value:e,index:n++,criteria:t(e,i,a)}}).sort(function(e,t){var i=e.criteria,n=t.criteria;if(i!==n){if(i>n||void 0===i)return 1;if(i<n||void 0===n)return-1}return e.index-t.index}),"value")};var C=function(e,t){return function(i,n,a){var r=t?[[],[]]:{};return n=y(n,a),f.each(i,function(t,a){var s=n(t,a,i);e(r,t,s)}),r}};f.groupBy=C(function(e,t,i){O(e,i)?e[i].push(t):e[i]=[t]}),f.indexBy=C(function(e,t,i){e[i]=t}),f.countBy=C(function(e,t,i){O(e,i)?e[i]++:e[i]=1});var R=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;f.toArray=function(e){return e?f.isArray(e)?c.call(e):f.isString(e)?e.match(R):N(e)?f.map(e,f.identity):f.values(e):[]},f.size=function(e){return null==e?0:N(e)?e.length:f.keys(e).length},f.partition=C(function(e,t,i){e[i?0:1].push(t)},!0),f.first=f.head=f.take=function(e,t,i){return null==e||e.length<1?null==t?void 0:[]:null==t||i?e[0]:f.initial(e,e.length-t)},f.initial=function(e,t,i){return c.call(e,0,Math.max(0,e.length-(null==t||i?1:t)))},f.last=function(e,t,i){return null==e||e.length<1?null==t?void 0:[]:null==t||i?e[e.length-1]:f.rest(e,Math.max(0,e.length-t))},f.rest=f.tail=f.drop=function(e,t,i){return c.call(e,null==t||i?1:t)},f.compact=function(e){return f.filter(e,Boolean)};var L=function(e,t,i,n){for(var a=(n=n||[]).length,r=0,s=I(e);r<s;r++){var o=e[r];if(N(o)&&(f.isArray(o)||f.isArguments(o)))if(t)for(var l=0,c=o.length;l<c;)n[a++]=o[l++];else L(o,t,i,n),a=n.length;else i||(n[a++]=o)}return n};f.flatten=function(e,t){return L(e,t,!1)},f.without=m(function(e,t){return f.difference(e,t)}),f.uniq=f.unique=function(e,t,i,n){f.isBoolean(t)||(n=i,i=t,t=!1),null!=i&&(i=y(i,n));for(var a=[],r=[],s=0,o=I(e);s<o;s++){var l=e[s],c=i?i(l,s,e):l;t&&!i?(s&&r===c||a.push(l),r=c):i?f.contains(r,c)||(r.push(c),a.push(l)):f.contains(a,l)||a.push(l)}return a},f.union=m(function(e){return f.uniq(L(e,!0,!0))}),f.intersection=function(e){for(var t=[],i=arguments.length,n=0,a=I(e);n<a;n++){var r=e[n];if(!f.contains(t,r)){var s;for(s=1;s<i&&f.contains(arguments[s],r);s++);s===i&&t.push(r)}}return t},f.difference=m(function(e,t){return t=L(t,!0,!0),f.filter(e,function(e){return!f.contains(t,e)})}),f.unzip=function(e){for(var t=e&&f.max(e,I).length||0,i=Array(t),n=0;n<t;n++)i[n]=f.pluck(e,n);return i},f.zip=m(f.unzip),f.object=function(e,t){for(var i={},n=0,a=I(e);n<a;n++)t?i[e[n]]=t[n]:i[e[n][0]]=e[n][1];return i};var P=function(e){return function(t,i,n){i=y(i,n);for(var a=I(t),r=e>0?0:a-1;r>=0&&r<a;r+=e)if(i(t[r],r,t))return r;return-1}};f.findIndex=P(1),f.findLastIndex=P(-1),f.sortedIndex=function(e,t,i,n){for(var a=(i=y(i,n,1))(t),r=0,s=I(e);r<s;){var o=Math.floor((r+s)/2);i(e[o])<a?r=o+1:s=o}return r};var w=function(e,t,i){return function(n,a,r){var s=0,o=I(n);if("number"==typeof r)e>0?s=r>=0?r:Math.max(r+o,s):o=r>=0?Math.min(r+1,o):r+o+1;else if(i&&r&&o)return n[r=i(n,a)]===a?r:-1;if(a!=a)return(r=t(c.call(n,s,o),f.isNaN))>=0?r+s:-1;for(r=e>0?s:o-1;r>=0&&r<o;r+=e)if(n[r]===a)return r;return-1}};f.indexOf=w(1,f.findIndex,f.sortedIndex),f.lastIndexOf=w(-1,f.findLastIndex),f.range=function(e,t,i){null==t&&(t=e||0,e=0),i||(i=t<e?-1:1);for(var n=Math.max(Math.ceil((t-e)/i),0),a=Array(n),r=0;r<n;r++,e+=i)a[r]=e;return a},f.chunk=function(e,t){if(null==t||t<1)return[];for(var i=[],n=0,a=e.length;n<a;)i.push(c.call(e,n,n+=t));return i};var k=function(e,t,i,n,a){if(!(n instanceof t))return e.apply(i,a);var r=_(e.prototype),s=e.apply(r,a);return f.isObject(s)?s:r};f.bind=m(function(e,t,i){if(!f.isFunction(e))throw new TypeError("Bind must be called on a function");var n=m(function(a){return k(e,n,t,this,i.concat(a))});return n}),f.partial=m(function(e,t){var i=f.partial.placeholder,n=function(){for(var a=0,r=t.length,s=Array(r),o=0;o<r;o++)s[o]=t[o]===i?arguments[a++]:t[o];for(;a<arguments.length;)s.push(arguments[a++]);return k(e,n,this,this,s)};return n}),f.partial.placeholder=f,f.bindAll=m(function(e,t){var i=(t=L(t,!1,!1)).length;if(i<1)throw new Error("bindAll must be passed function names");for(;i--;){var n=t[i];e[n]=f.bind(e[n],e)}}),f.memoize=function(e,t){var i=function(n){var a=i.cache,r=""+(t?t.apply(this,arguments):n);return O(a,r)||(a[r]=e.apply(this,arguments)),a[r]};return i.cache={},i},f.delay=m(function(e,t,i){return setTimeout(function(){return e.apply(null,i)},t)}),f.defer=f.partial(f.delay,f,1),f.throttle=function(e,t,i){var n,a,r,s,o=0;i||(i={});var l=function(){o=!1===i.leading?0:f.now(),n=null,s=e.apply(a,r),n||(a=r=null)},c=function(){var c=f.now();o||!1!==i.leading||(o=c);var u=t-(c-o);return a=this,r=arguments,u<=0||u>t?(n&&(clearTimeout(n),n=null),o=c,s=e.apply(a,r),n||(a=r=null)):n||!1===i.trailing||(n=setTimeout(l,u)),s};return c.cancel=function(){clearTimeout(n),o=0,n=a=r=null},c},f.debounce=function(e,t,i){var n,a,r=function(t,i){n=null,i&&(a=e.apply(t,i))},s=m(function(s){if(n&&clearTimeout(n),i){var o=!n;n=setTimeout(r,t),o&&(a=e.apply(this,s))}else n=f.delay(r,t,this,s);return a});return s.cancel=function(){clearTimeout(n),n=null},s},f.wrap=function(e,t){return f.partial(t,e)},f.negate=function(e){return function(){return!e.apply(this,arguments)}},f.compose=function(){var e=arguments,t=e.length-1;return function(){for(var i=t,n=e[t].apply(this,arguments);i--;)n=e[i].call(this,n);return n}},f.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},f.before=function(e,t){var i;return function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=null),i}},f.once=f.partial(f.before,2),f.restArguments=m;var V=!{toString:null}.propertyIsEnumerable("toString"),B=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],M=function(e,t){var i=B.length,n=e.constructor,a=f.isFunction(n)&&n.prototype||s,r="constructor";for(O(e,r)&&!f.contains(t,r)&&t.push(r);i--;)(r=B[i])in e&&e[r]!==a[r]&&!f.contains(t,r)&&t.push(r)};f.keys=function(e){if(!f.isObject(e))return[];if(A)return A(e);var t=[];for(var i in e)O(e,i)&&t.push(i);return V&&M(e,t),t},f.allKeys=function(e){if(!f.isObject(e))return[];var t=[];for(var i in e)t.push(i);return V&&M(e,t),t},f.values=function(e){for(var t=f.keys(e),i=t.length,n=Array(i),a=0;a<i;a++)n[a]=e[t[a]];return n},f.mapObject=function(e,t,i){t=y(t,i);for(var n=f.keys(e),a=n.length,r={},s=0;s<a;s++){var o=n[s];r[o]=t(e[o],o,e)}return r},f.pairs=function(e){for(var t=f.keys(e),i=t.length,n=Array(i),a=0;a<i;a++)n[a]=[t[a],e[t[a]]];return n},f.invert=function(e){for(var t={},i=f.keys(e),n=0,a=i.length;n<a;n++)t[e[i[n]]]=i[n];return t},f.functions=f.methods=function(e){var t=[];for(var i in e)f.isFunction(e[i])&&t.push(i);return t.sort()};var F=function(e,t){return function(i){var n=arguments.length;if(t&&(i=Object(i)),n<2||null==i)return i;for(var a=1;a<n;a++)for(var r=arguments[a],s=e(r),o=s.length,l=0;l<o;l++){var c=s[l];t&&void 0!==i[c]||(i[c]=r[c])}return i}};f.extend=F(f.allKeys),f.extendOwn=f.assign=F(f.keys),f.findKey=function(e,t,i){t=y(t,i);for(var n,a=f.keys(e),r=0,s=a.length;r<s;r++)if(t(e[n=a[r]],n,e))return n};var U,H,x=function(e,t,i){return t in i};f.pick=m(function(e,t){var i={},n=t[0];if(null==e)return i;f.isFunction(n)?(t.length>1&&(n=g(n,t[1])),t=f.allKeys(e)):(n=x,t=L(t,!1,!1),e=Object(e));for(var a=0,r=t.length;a<r;a++){var s=t[a],o=e[s];n(o,s,e)&&(i[s]=o)}return i}),f.omit=m(function(e,t){var i,n=t[0];return f.isFunction(n)?(n=f.negate(n),t.length>1&&(i=t[1])):(t=f.map(L(t,!1,!1),String),n=function(e,i){return!f.contains(t,i)}),f.pick(e,n,i)}),f.defaults=F(f.allKeys,!0),f.create=function(e,t){var i=_(e);return t&&f.extendOwn(i,t),i},f.clone=function(e){return f.isObject(e)?f.isArray(e)?e.slice():f.extend({},e):e},f.tap=function(e,t){return t(e),e},f.isMatch=function(e,t){var i=f.keys(t),n=i.length;if(null==e)return!n;for(var a=Object(e),r=0;r<n;r++){var s=i[r];if(t[s]!==a[s]||!(s in a))return!1}return!0},U=function(e,t,i,n){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var a=typeof e;return("function"===a||"object"===a||"object"==typeof t)&&H(e,t,i,n)},H=function(e,t,i,n){e instanceof f&&(e=e._wrapped),t instanceof f&&(t=t._wrapped);var a=u.call(e);if(a!==u.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return o.valueOf.call(e)===o.valueOf.call(t)}var r="[object Array]"===a;if(!r){if("object"!=typeof e||"object"!=typeof t)return!1;var s=e.constructor,l=t.constructor;if(s!==l&&!(f.isFunction(s)&&s instanceof s&&f.isFunction(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];for(var c=(i=i||[]).length;c--;)if(i[c]===e)return n[c]===t;if(i.push(e),n.push(t),r){if((c=e.length)!==t.length)return!1;for(;c--;)if(!U(e[c],t[c],i,n))return!1}else{var d,h=f.keys(e);if(c=h.length,f.keys(t).length!==c)return!1;for(;c--;)if(d=h[c],!O(t,d)||!U(e[d],t[d],i,n))return!1}return i.pop(),n.pop(),!0},f.isEqual=function(e,t){return U(e,t)},f.isEmpty=function(e){return null==e||(N(e)&&(f.isArray(e)||f.isString(e)||f.isArguments(e))?0===e.length:0===f.keys(e).length)},f.isElement=function(e){return!(!e||1!==e.nodeType)},f.isArray=h||function(e){return"[object Array]"===u.call(e)},f.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},f.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){f["is"+e]=function(t){return u.call(t)==="[object "+e+"]"}}),f.isArguments(arguments)||(f.isArguments=function(e){return O(e,"callee")});var G=n.document&&n.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof G&&(f.isFunction=function(e){return"function"==typeof e||!1}),f.isFinite=function(e){return!f.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},f.isNaN=function(e){return f.isNumber(e)&&isNaN(e)},f.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===u.call(e)},f.isNull=function(e){return null===e},f.isUndefined=function(e){return void 0===e},f.has=function(e,t){if(!f.isArray(t))return O(e,t);for(var i=t.length,n=0;n<i;n++){var a=t[n];if(null==e||!d.call(e,a))return!1;e=e[a]}return!!i},f.noConflict=function(){return n._=a,this},f.identity=function(e){return e},f.constant=function(e){return function(){return e}},f.noop=function(){},f.property=function(e){return f.isArray(e)?function(t){return b(t,e)}:S(e)},f.propertyOf=function(e){return null==e?function(){}:function(t){return f.isArray(t)?b(e,t):e[t]}},f.matcher=f.matches=function(e){return e=f.extendOwn({},e),function(t){return f.isMatch(t,e)}},f.times=function(e,t,i){var n=Array(Math.max(0,e));t=g(t,i,1);for(var a=0;a<e;a++)n[a]=t(a);return n},f.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},f.now=Date.now||function(){return(new Date).getTime()};var Y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},j=f.invert(Y),W=function(e){var t=function(t){return e[t]},i="(?:"+f.keys(e).join("|")+")",n=RegExp(i),a=RegExp(i,"g");return function(e){return e=null==e?"":""+e,n.test(e)?e.replace(a,t):e}};f.escape=W(Y),f.unescape=W(j),f.result=function(e,t,i){f.isArray(t)||(t=[t]);var n=t.length;if(!n)return f.isFunction(i)?i.call(e):i;for(var a=0;a<n;a++){var r=null==e?void 0:e[t[a]];void 0===r&&(r=i,a=n),e=f.isFunction(r)?r.call(e):r}return e};var K=0;f.uniqueId=function(e){var t=++K+"";return e?e+t:t},f.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var z=/(.)^/,q={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},X=/\\|'|\r|\n|\u2028|\u2029/g,Q=function(e){return"\\"+q[e]};f.template=function(e,t,i){!t&&i&&(t=i),t=f.defaults({},t,f.templateSettings);var n,a=RegExp([(t.escape||z).source,(t.interpolate||z).source,(t.evaluate||z).source].join("|")+"|$","g"),r=0,s="__p+='";e.replace(a,function(t,i,n,a,o){return s+=e.slice(r,o).replace(X,Q),r=o+t.length,i?s+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":a&&(s+="';\n"+a+"\n__p+='"),t}),s+="';\n",t.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{n=new Function(t.variable||"obj","_",s)}catch(e){throw e.source=s,e}var o=function(e){return n.call(this,e,f)},l=t.variable||"obj";return o.source="function("+l+"){\n"+s+"}",o},f.chain=function(e){var t=f(e);return t._chain=!0,t};var Z=function(e,t){return e._chain?f(t).chain():t};f.mixin=function(e){return f.each(f.functions(e),function(t){var i=f[t]=e[t];f.prototype[t]=function(){var e=[this._wrapped];return l.apply(e,arguments),Z(this,i.apply(f,e))}}),f},f.mixin(f),f.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=r[e];f.prototype[e]=function(){var i=this._wrapped;return t.apply(i,arguments),"shift"!==e&&"splice"!==e||0!==i.length||delete i[0],Z(this,i)}}),f.each(["concat","join","slice"],function(e){var t=r[e];f.prototype[e]=function(){return Z(this,t.apply(this._wrapped,arguments))}}),f.prototype.value=function(){return this._wrapped},f.prototype.valueOf=f.prototype.toJSON=f.prototype.value,f.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return f})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,i){"use strict";var n;n={PADCHAR:"=",ALPHA:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",makeDOMException:function(){try{return new DOMException(DOMException.INVALID_CHARACTER_ERR)}catch(t){var e=new Error("DOM Exception 5");return e.code=e.number=5,e.name=e.description="INVALID_CHARACTER_ERR",e.toString=function(){return"Error: "+e.name+": "+e.message},e}},getbyte64:function(e,t){var i=n.ALPHA.indexOf(e.charAt(t));if(-1===i)throw n.makeDOMException();return i},decode:function(e){e=""+e;var t,i,a,r=n.getbyte64,s=e.length;if(0===s)return e;if(s%4!=0)throw n.makeDOMException();t=0,e.charAt(s-1)===n.PADCHAR&&(t=1,e.charAt(s-2)===n.PADCHAR&&(t=2),s-=4);var o=[];for(i=0;i<s;i+=4)a=r(e,i)<<18|r(e,i+1)<<12|r(e,i+2)<<6|r(e,i+3),o.push(String.fromCharCode(a>>16,a>>8&255,255&a));switch(t){case 1:a=r(e,i)<<18|r(e,i+1)<<12|r(e,i+2)<<6,o.push(String.fromCharCode(a>>16,a>>8&255));break;case 2:a=r(e,i)<<18|r(e,i+1)<<12,o.push(String.fromCharCode(a>>16))}return o.join("")},getbyte:function(e,t){var i=e.charCodeAt(t);if(i>255)throw n.makeDOMException();return i},encode:function(e){if(1!==arguments.length)throw new SyntaxError("Not enough arguments");var t,i,a=n.PADCHAR,r=n.ALPHA,s=n.getbyte,o=[],l=(e=""+e).length-e.length%3;if(0===e.length)return e;for(t=0;t<l;t+=3)i=s(e,t)<<16|s(e,t+1)<<8|s(e,t+2),o.push(r.charAt(i>>18)),o.push(r.charAt(i>>12&63)),o.push(r.charAt(i>>6&63)),o.push(r.charAt(63&i));switch(e.length-l){case 1:i=s(e,t)<<16,o.push(r.charAt(i>>18)+r.charAt(i>>12&63)+a+a);break;case 2:i=s(e,t)<<16|s(e,t+1)<<8,o.push(r.charAt(i>>18)+r.charAt(i>>12&63)+r.charAt(i>>6&63)+a)}return o.join("")}},window.base64=n},{}],38:[function(e,t,i){"use strict";var n=function(e,t){var i=function t(i){if(this.config=i||{},!e.isObject(this.config))throw new Error("Hazmat is not initialized properly");this.fail=e.isFunction(this.config.fail)?this.config.fail:t.fail,this.warn=e.isFunction(this.config.warn)?this.config.warn:t.warn,this.log=e.isFunction(this.config.log)?this.config.log:t.log};return e.extend(i,{ID_REGEX:/^[\_\-A-Za-z0-9]+$/,create:function(e){return new i(e)},noConflict:function(){return t.Hazmat=i.original,i},log:function(){window.console&&e.isFunction(window.console.log)&&window.console.log.apply(window.console,arguments)},fail:function(e,t){var n=e||"";throw i.log("Hazmat Failure::",n,t||{}),new Error("Hazmat Failure "+n.toString())},warn:function(e,t){i.log("Hazmat Warning::",e||"",t||{})},fixDomId:function(t){return e.isString(t)&&t.length>0?t.replace(/[^A-Za-z0-9\_]/g,""):null},isDomId:function(t){return e.isString(t)&&t.match(i.ID_REGEX)},__placeholder:!0}),e.extend(i.prototype,{_safeValue:function(t,i,n,a){var r=n;return e.isFunction(n)&&(n=e.once(function(){try{return r.apply(this,arguments)}catch(e){}})),a.checker(i)?i:a.evalFallback&&e.isFunction(n)&&a.checker(n(i))?(this.warn("Expected valid "+a.name+" for "+t+" but was able to sanitize it:",[i,n(i)]),n(i)):a.checker(r)?(this.warn("Expected valid "+a.name+" for "+t+" but was able to fallback to default value:",[i,r]),r):void this.fail("Expected valid "+a.name+" for "+t+" but received:",i)},safeString:function(t,i,n){return this._safeValue(t,i,n,{name:"String",checker:e.isString,evalFallback:!0})},safeStringOrNull:function(t,i,n){return null==i?i:this._safeValue(t,i,n,{name:"String",checker:e.isString,evalFallback:!0})},safeDomId:function(e,t,n){return this._safeValue(e,t,n,{name:"DOM ID",checker:i.isDomId,evalFallback:!0})},safeFunction:function(t,i,n){return this._safeValue(t,i,n,{name:"Function",checker:e.isFunction,evalFallback:!1})},safeFunctionOrNull:function(t,i,n){return null==i?i:this._safeValue(t,i,n,{name:"Function",checker:e.isFunction,evalFallback:!1})},safeObject:function(t,i,n){return this._safeValue(t,i,n,{name:"Object",checker:e.isObject,evalFallback:!1})},safeObjectOrNull:function(t,i,n){return null==i?i:this._safeValue(t,i,n,{name:"Object",checker:e.isObject,evalFallback:!1})},safeArray:function(t,i,n){return this._safeValue(t,i,n,{name:"Array",checker:e.isArray,evalFallback:!1})},safeArrayOfElements:function(t,i,n,a){var r=this._safeValue(t,i,a,{name:"Array",checker:e.isArray,evalFallback:!1});return e.map(r,n)},__placeholder:!0}),i},a=e("underscore");if("undefined"!=typeof window&&void 0!==a){(r=n(a,window)).original=window.Hazmat,window.Hazmat=r}else{var r=n(a);a.extend(i,r)}},{underscore:36}],39:[function(e,t,i){"use strict";!function(e,t,i){window.XDomainRequest&&e.$.ajaxTransport(function(t){var i;if(t.crossDomain&&t.async)return t.timeout&&(t.xdrTimeout=t.timeout,delete t.timeout),{send:function(n,a){function r(t,n,r,s){i.onload=i.onerror=i.ontimeout=e.$.noop,i=void 0,a(t,n,r,s)}(i=new XDomainRequest).open(t.type,t.url),i.onload=function(){r(200,"OK",{text:i.responseText},"Content-Type: "+i.contentType)},i.onerror=function(){r(404,"Not Found")},i.onprogress=function(){},t.xdrTimeout&&(i.ontimeout=function(){r(0,"timeout")},i.timeout=t.xdrTimeout),i.send(t.hasContent&&t.data||null)},abort:function(){i&&(i.onerror=e.$.noop(),i.abort())}}}),t.getScriptRetry=function(e,n,a){var r=(a=a||{}).error;i.each(["error","dataType","success"],function(e){delete a[e]});var s={url:e,type:"get",dataType:"script",success:n,cache:!0,timeout:5e3,tryCount:0,retryLimit:1,warning:!1,warningMessage:"Can not load URL",error:function(){this.tryCount<this.retryLimit?(this.tryCount++,t.ajax(this)):(this.warning&&alert(this.warningMessage),r&&r.apply(null,arguments))}};i.extend(s,a),t.ajax(s)}}(OO,OO.$,OO._)},{}],40:[function(e,t,i){"use strict";var n,a,r,s,o,l,c,u,d,h,A,E,p,f,T,g;n=function(e){var t,i=[],n=8*e.length;for(t=0;t<n;t+=8)i[t>>5]|=(255&e.charCodeAt(t/8))<<24-t%32;return i},a=function(e){var t,i,n=[],a=e.length;for(t=0;t<a;t+=2){if(i=parseInt(e.substr(t,2),16),isNaN(i))return"INVALID HEX STRING";n[t>>3]|=i<<24-t%8*4}return n},r=function(e){var t,i,n="0123456789abcdef",a="",r=4*e.length;for(t=0;t<r;t+=1)i=e[t>>2]>>8*(3-t%4),a+=n.charAt(i>>4&15)+n.charAt(15&i);return a},s=function(e){var t,i,n,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="",s=4*e.length;for(t=0;t<s;t+=3)for(n=(e[t>>2]>>8*(3-t%4)&255)<<16|(e[t+1>>2]>>8*(3-(t+1)%4)&255)<<8|e[t+2>>2]>>8*(3-(t+2)%4)&255,i=0;i<4;i+=1)8*t+6*i<=32*e.length?r+=a.charAt(n>>6*(3-i)&63):r+="";return r},o=function(e,t){return e>>>t|e<<32-t},l=function(e,t){return e>>>t},c=function(e,t,i){return e&t^~e&i},u=function(e,t,i){return e&t^e&i^t&i},d=function(e){return o(e,2)^o(e,13)^o(e,22)},h=function(e){return o(e,6)^o(e,11)^o(e,25)},A=function(e){return o(e,7)^o(e,18)^l(e,3)},E=function(e,t){var i=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(i>>>16))<<16|65535&i},p=function(e,t,i,n){var a=(65535&e)+(65535&t)+(65535&i)+(65535&n);return(65535&(e>>>16)+(t>>>16)+(i>>>16)+(n>>>16)+(a>>>16))<<16|65535&a},f=function(e,t,i,n,a){var r=(65535&e)+(65535&t)+(65535&i)+(65535&n)+(65535&a);return(65535&(e>>>16)+(t>>>16)+(i>>>16)+(n>>>16)+(a>>>16)+(r>>>16))<<16|65535&r},T=function(e,t,i){var n,a,r,s,T,g,y,m,_,S,O,b,v,I,N,D,C,R=[];for("SHA-224"!==i&&"SHA-256"!==i||(b=15+(t+65>>9<<4),N=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],O="SHA-224"===i?[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]:[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),e[t>>5]|=128<<24-t%32,e[b]=t,D=e.length,v=0;v<D;v+=16){for(n=O[0],a=O[1],r=O[2],s=O[3],T=O[4],g=O[5],y=O[6],m=O[7],I=0;I<64;I+=1)R[I]=I<16?e[I+v]:p((C=R[I-2],o(C,17)^o(C,19)^l(C,10)),R[I-7],A(R[I-15]),R[I-16]),_=f(m,h(T),c(T,g,y),N[I],R[I]),S=E(d(n),u(n,a,r)),m=y,y=g,g=T,T=E(s,_),s=r,r=a,a=n,n=E(_,S);O[0]=E(n,O[0]),O[1]=E(a,O[1]),O[2]=E(r,O[2]),O[3]=E(s,O[3]),O[4]=E(T,O[4]),O[5]=E(g,O[5]),O[6]=E(y,O[6]),O[7]=E(m,O[7])}switch(i){case"SHA-224":return[O[0],O[1],O[2],O[3],O[4],O[5],O[6]];case"SHA-256":return O;default:return[]}},(g=function(e,t){if(this.sha224=null,this.sha256=null,this.strBinLen=null,this.strToHash=null,"HEX"===t){if(e.length%2!=0)return"TEXT MUST BE IN BYTE INCREMENTS";this.strBinLen=4*e.length,this.strToHash=a(e)}else{if("ASCII"!==t&&void 0!==t)return"UNKNOWN TEXT INPUT TYPE";this.strBinLen=8*e.length,this.strToHash=n(e)}}).prototype={getHash:function(e,t){var i=null,n=this.strToHash.slice();switch(t){case"HEX":i=r;break;case"B64":i=s;break;default:return"FORMAT NOT RECOGNIZED"}switch(e){case"SHA-224":return null===this.sha224&&(this.sha224=T(n,this.strBinLen,e)),i(this.sha224);case"SHA-256":return null===this.sha256&&(this.sha256=T(n,this.strBinLen,e)),i(this.sha256);default:return"HASH NOT RECOGNIZED"}},getHMAC:function(e,t,i,o){var l,c,u,d,h,A,E=[],p=[];switch(o){case"HEX":l=r;break;case"B64":l=s;break;default:return"FORMAT NOT RECOGNIZED"}switch(i){case"SHA-224":A=224;break;case"SHA-256":A=256;break;default:return"HASH NOT RECOGNIZED"}if("HEX"===t){if(e.length%2!=0)return"KEY MUST BE IN BYTE INCREMENTS";c=a(e),h=4*e.length}else{if("ASCII"!==t)return"UNKNOWN KEY INPUT TYPE";c=n(e),h=8*e.length}for(h/8>64?(c=T(c,h,i))[15]&=4294967040:h/8<64&&(c[15]&=4294967040),u=0;u<=15;u+=1)E[u]=909522486^c[u],p[u]=1549556828^c[u];return d=T(E.concat(this.strToHash),512+this.strBinLen,i),l(d=T(p.concat(d),512+A,i))}},window.jsSHA=g},{}],41:[function(e,t,i){"use strict";window.LZW={encode:function(e){for(var t,i={},n=(e+"").split(""),a=[],r=n[0],s=256,o=1;o<n.length;o++)null!=i[r+(t=n[o])]?r+=t:(a.push(r.length>1?i[r]:r.charCodeAt(0)),i[r+t]=s,s++,r=t);a.push(r.length>1?i[r]:r.charCodeAt(0));for(o=0;o<a.length;o++)a[o]=String.fromCharCode(a[o]);return a.join("")},decode:function(e){for(var t,i={},n=(e+"").split(""),a=n[0],r=a,s=[a],o=256,l=1;l<n.length;l++){var c=n[l].charCodeAt(0);t=c<256?n[l]:i[c]?i[c]:r+a,s.push(t),a=t.charAt(0),i[o]=r+a,o++,r=t}return s.join("")}}},{}],42:[function(e,t,i){(function(t,i){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault")(e("@babel/runtime/helpers/typeof"));!function(e,a,r){var s;!function(){var e=function(e,a){if("undefined"==typeof WinJS){var r=void 0!==t&&t.versions&&!!t.versions.node?i:a;"undefined"!=typeof window&&(r=window),r||console.log((new Error).stack);for(var s=e.split("."),o=r,l=0;l<s.length;l++){var c=s[l];if(o[c]){var u=s.slice(0,l).join(".");if("object"!=(0,n.default)(o[c]))throw new Error("Namespace error: the name '"+u+"' already exists and is not a namespace.")}else o[c]={};o=o[c]}}else WinJS.Namespace.define(e,{})};e("Ooyala.Util",this),Ooyala.Util.createNamespace=e}(),function(){Ooyala.Util.createNamespace("Ooyala.Analytics",this),Ooyala.Analytics._GuidManager=function(){this._guid_key_name="ooyala_guid"},Ooyala.Analytics._GuidManager.prototype={_isGuidInLocalStorage:function(){return"undefined"!=typeof Storage&&null!==localStorage.getItem(this._guid_key_name)},_getGuidFromLocalStorage:function(){return"undefined"!=typeof Storage?localStorage.getItem(this._guid_key_name):null},_getRandomString:function(){return(new Date).getTime()+Math.random().toString(16).split(".")[1]},_generateGuid:function(){return Ooyala.ThirdParty.SHA256.sha256ToBase64String(this._getRandomString())},_setGuid:function(e){return"undefined"!=typeof Storage&&(localStorage.setItem(this._guid_key_name,e),!0)},getOrGenerateGuid:function(e){var t=this._generateGuid();return e||(this._isGuidInLocalStorage()?t=this._getGuidFromLocalStorage():this._setGuid(t)),t}}}(),Ooyala.Util.createNamespace("Ooyala.ThirdParty.SHA256",this),function(){function e(e,t){var i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function t(e,t){return e>>>t|e<<32-t}function i(e,t){return e>>>t}function n(e,t,i){return e&t^~e&i}function a(e,t,i){return e&t^e&i^t&i}function r(e){return t(e,2)^t(e,13)^t(e,22)}function s(e){return t(e,6)^t(e,11)^t(e,25)}function o(e){return t(e,7)^t(e,18)^i(e,3)}function l(e){return t(e,17)^t(e,19)^i(e,10)}function c(t,i){var c,u,d,h,A,E,p,f,T,g,y=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),m=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),_=new Array(64);t[i>>5]|=128<<24-i%32,t[15+(i+64>>9<<4)]=i;for(var S=0;S<t.length;S+=16){c=m[0],u=m[1],d=m[2],h=m[3],A=m[4],E=m[5],p=m[6],f=m[7];for(var O=0;O<64;O++)_[O]=O<16?t[O+S]:e(e(e(l(_[O-2]),_[O-7]),o(_[O-15])),_[O-16]),T=e(e(e(e(f,s(A)),n(A,E,p)),y[O]),_[O]),g=e(r(c),a(c,u,d)),f=p,p=E,E=A,A=e(h,T),h=d,d=u,u=c,c=e(T,g);m[0]=e(c,m[0]),m[1]=e(u,m[1]),m[2]=e(d,m[2]),m[3]=e(h,m[3]),m[4]=e(A,m[4]),m[5]=e(E,m[5]),m[6]=e(p,m[6]),m[7]=e(f,m[7])}return m}function u(e){for(var t=Array(),i=(1<<d)-1,n=0;n<e.length*d;n+=d)t[n>>5]|=(e.charCodeAt(n/d)&i)<<24-n%32;return t}var d=8,h=0;Ooyala.ThirdParty.SHA256.sha256ToHexString=function(e){return function(e){for(var t=h?"0123456789ABCDEF":"0123456789abcdef",i="",n=0;n<4*e.length;n++)i+=t.charAt(e[n>>2]>>8*(3-n%4)+4&15)+t.charAt(e[n>>2]>>8*(3-n%4)&15);return i}(c(u(e),e.length*d))},Ooyala.ThirdParty.SHA256.sha256ToBase64String=function(e){return function(e){for(var t="",i=0;i<4*e.length;i+=3)for(var n=(e[i>>2]>>8*(3-i%4)&255)<<16|(e[i+1>>2]>>8*(3-(i+1)%4)&255)<<8|e[i+2>>2]>>8*(3-(i+2)%4)&255,a=0;a<4;a++)t+=8*i+6*a>32*e.length?"":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6*(3-a)&63);return t}(c(u(e),e.length*d))},Ooyala.ThirdParty.SHA256.sha256ToString=function(e){return function(e){for(var t="",i=(1<<d)-1,n=0;n<32*e.length;n+=d)t+=String.fromCharCode(e[n>>5]>>>24-n%32&i);return t}(c(u(e),e.length*d))}}(),function(e){function t(e){return e={eventName:e.name,time:(new Date).toISOString()}}function i(e){Date.now()+this._priorityIntervals[e]<this._flushTime&&(this._flushTimeout&&clearTimeout(this._flushTimeout),this._flushTimeout=setTimeout(function(){s.call(this)}.bind(this),this._priorityIntervals[e]),this._flushTime=Date.now()+this._priorityIntervals[e])}function a(e){if(e>0){var i=t(g.PLAYHEAD_UPDATE);i.playheadPositionMillis=Math.floor(e),I.call(this,i,g.PLAYHEAD_UPDATE.priority)}}function r(e){if(e>0){var i=t(g.TIME_PLAYED);i.timePlayedMillis=e,I.call(this,i,g.TIME_PLAYED.priority),this._timePlayed=0}}function s(){var e=Date.now()/1e3,t=new Date;this._base.clientTime=t.toISOString(),r.call(this,this._timePlayedMillis),a.call(this,this._playheadPositionMillis),this._base.events=this._pendingEvents,function(e){new Ooyala.HttpRequester(e,this._iqEndpoint,this._base.disablePiiLogging)}.call(this,this._base),this._pendingEvents=[],this._flushTime=Number.MAX_VALUE,this._lastFlush=e}function o(e){this._buckets.watched[e]||(this._buckets.watched[e]=!0,function(e){var i=t(g.PERCENTAGE_WATCHED);i.startMille=25*e+1,i.endMille=25*e+25,I.call(this,i,g.PERCENTAGE_WATCHED.priority),this._buckets.watchedCount++,function(e){for(;e/10>this._nextPlaythroughToReport||100==this._nextPlaythroughToReport&&e/10>95;){var i=t(g.PLAYTHROUGH_PERCENT);i.percent=Math.floor(this._nextPlaythroughToReport),I.call(this,i,g.PLAYTHROUGH_PERCENT.priority),this._nextPlaythroughToReport+=25}}.call(this,i.endMille)}.call(this,e)),this._buckets.current!==e&&(function(e){var i=t(g.BUCKETS_WATCHED);i.startMille=25*e+1,i.endMille=25*e+25,I.call(this,i,g.BUCKETS_WATCHED.priority)}.call(this,e),this._buckets.current=e)}function l(e){var i=t(e);I.call(this,i,e.priority)}function c(e){var t=new Error(e.message);return t.name=e.name,t}function u(){this._buckets={watched:[],current:-1,startingTimes:[],count:40,watchedCount:0},this._nextPlaythroughToReport=25,this._playheadPositionMillis=0,this._timePlayed=0,this._lastTimePlayed=0,this._timePlayedMillis=0,this._base.source={},this._base.plugins=[],this._bufferingStartedTime=0,this._bufferingTime=0,this._adBreakStartedTime=0,this._adBreakTime=0,this._playRequestedTime=0,this._joinTime=0}function d(e,t,i,n,a,r){var s={},o={};if(s.uiTag=i,s.contentSource=n,e.hasOwnProperty("ooyalaDiscoveryContext"))o=e.ooyalaDiscoveryContext;else{if(!e.hasOwnProperty("bucket_info")){var l=c(y.MISSING_DISCOVERY_CONTEXT);throw l.message=l.message.replace("{{asset}}",JSON.stringify(e)),l}o.version="1",o.data=function(e){if(e&&e.length>0&&"2"==e.charAt(0)){var t=JSON.parse(e.substring(1));return window.atob(t.encoded)}var i=c(y.INVALID_BUCKET_INFO);throw i.message=i.message.replace("{{bucket_info}}",e),i}(e.bucket_info)}return t&&(o.customData=t),s.ooyalaDiscoveryContext=JSON.stringify(o),s.pageSize=a,s.assetPosition=r,s}function h(e){var t=Ooyala.Analytics.MediaContentType.OOYALA_CONTENT,i="";return e.hasOwnProperty("id_type")&&(t=e.id_type),e.hasOwnProperty("embed_code")&&(i=e.embed_code),{id:i,idType:t}}function A(e){if(!e.hasOwnProperty("name")||!e.hasOwnProperty("active"))return c(y.PLUGIN_FIELDS_MISSING);for(var t in e)if("name"!==t&&"active"!==t&&"version"!==t){var i=c(y.PLUGIN_FIELD_INVALID);return i.message=i.message.replace("{{field}}",t),i}return null}function E(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}var p=0,f=1,T=2,g={PLAYER_LOAD:{name:"playerLoad",priority:T},DISPLAY:{name:"display",priority:T},PLAY_REQUESTED:{name:"playRequested",priority:T},VIDEO_STARTED:{name:"videoStarted",priority:T},PLAYTHROUGH_PERCENT:{name:"playthroughPercent",priority:T},PERCENTAGE_WATCHED:{name:"percentageWatched",priority:f},BUCKETS_WATCHED:{name:"bucketWatched",priority:f},REPLAY:{name:"replay",priority:T},SEEK:{name:"seek",priority:f},PAUSE:{name:"pause",priority:f},RESUME:{name:"resume",priority:f},TIME_PLAYED:{name:"timePlayed",priority:p},PLAYHEAD_UPDATE:{name:"playheadUpdate",priority:p},CUSTOM:{name:"custom",priority:f},OFFLINE_CONTENT_ACQUIRED:{name:"offlineContentAcquired",priority:T},ASSET_IMPRESSION:{name:"assetImpression",priority:f},ASSET_CLICK:{name:"assetClick",priority:T}},y={INVALID_DOWNLOAD_TYPE:{name:"InvalidDownloadType",message:"Not a valid download type for offline content, Download type should be own/rental."},MISSING_DISCOVERY_CONTEXT:{name:"MissingDiscoveryContext",message:"Missing ooyalaDiscoveryContext or bucket_info for {{asset}}."},INVALID_BUCKET_INFO:{name:"InvalidBucketInfo",message:"Not a version 2 bucket_info: {{bucket_info}}."},PLUGIN_FIELDS_MISSING:{name:"PluginFieldsMissing",message:"Plugin missing required fields - name and active."},PLUGIN_FIELD_INVALID:{name:"PluginFieldInvalid",message:"Plugin contains invalid field {{field}}."},PLUGINS_NOT_AN_ARRAY:{name:"PluginsNotAnArray",message:"Plugins must be an array."},INVALID_CUSTOM_DIMENSION:{name:"InvalidCustomObject",message:"The custom dimensions can only contain string, numerals or boolean values. They cannot contain complex objects."},GEO_FIELD_INVALID:{name:"GeoFieldInvalid",message:"Geo contains invalid field {{field}}."}},m="video_buffering_started",_="video_buffering_ended",S="videoBufferingTime",O="ad_break_started",b="ad_break_ended",v="joinTime",I=function(e,t){e.sequenceNum=this._currentSequenceNumber,i.call(this,t),this._pendingEvents.push(e),this._currentSequenceNumber++};Ooyala.Util.createNamespace("Ooyala.Analytics",e),Ooyala.Analytics.Reporter=function(e,t,i){this._base={},this._base.asset={},this._base.sessionId=t||E(),this._base.contentSessionId="",this._base.pcode=e,this._base.disablePiiLogging=i||!1,this._base.sessionStartTime=(new Date).toISOString(),this._base.analyticsSdkName="ooyala-iq-analytics-js-sdk",this._base.analyticsSdkVersion="1.0.21.3.0",this._base.player={playerInfo:{}},this._base.documentUrl=null,this._base.device={deviceInfo:{}},this._base.user={},this._lastFlush=0,this._liveContent=!1,this._contentDuration=0,this._date=new Date,this._pendingEvents=[],this._currentSequenceNumber=0,this._flushTime=Number.MAX_VALUE,this._priorityIntervals=[1e4,5e3,1e3],this._seek={start:0,end:0},this._hasContentStarted=!1,this._flushTimeout=null,this._lastClickedAsset={};this._iqEndpoint="https://l-staging.ooyala.com/v3/analytics/events",u.call(this)},Ooyala.Analytics.Reporter.prototype={setIQBackendURL:function(e){this._iqEndpoint=e},setDocumentURL:function(e){this._base.documentUrl=e},setDeviceInfo:function(e,t,i,n){e||(e=(new Ooyala.Analytics._GuidManager).getOrGenerateGuid(n));var a={};for(var r in t)a[r]=t[r];this._base.device={id:e,deviceInfo:a},this._base.userAgent=i},setUserInfo:function(e,t,i,n,a){var r={};for(var s in n){if("countryCode"!==s&&"region"!==s&&"state"!==s&&"city"!==s&&"latitude"!==s&&"longitude"!==s&&"geoVendor"!==s){var o=c(y.GEO_FIELD_INVALID);throw o.message=o.message.replace("{{field}}",s),o}r[s]=n[s]}this._base.user={emailHashMD5:e,userId:t,gender:i,geo:r,isSubscriber:null!=a&&a}},setPlayerInfo:function(e,t,i){this._base.player={id:e,name:t,version:i}},setSessionId:function(e){this._base.sessionId=e},reportPlayerLoad:function(){l.call(this,g.PLAYER_LOAD)},initializeMedia:function(e,t,i){u.call(this),this._base.asset.id=e,this._base.asset.idType=t,this._base.contentSessionId=i||E(),this._lastClickedAsset.hasOwnProperty("id")&&(e===this._lastClickedAsset.id&&t===this._lastClickedAsset.idType?this.updateTopLevelSource(this._lastClickedAsset.source):this._lastClickedAsset={})},setMediaDuration:function(e){this._contentDuration=e,e<=0?this._liveContent=!0:function(e){for(var t=e/this._buckets.count,i=0;i<this._buckets.count;i++)this._buckets.startingTimes[i]=i*t}.call(this,e),l.call(this,g.DISPLAY)},reportPlayRequested:function(e){var i=t(g.PLAY_REQUESTED);i.isAutoPlay=e||!1,this._playRequestedTime=(new Date).getTime(),I.call(this,i,g.PLAY_REQUESTED.priority)},setPlugins:function(e){if(e){if("[object Array]"!=Object.prototype.toString.call(e))throw c(y.PLUGINS_NOT_AN_ARRAY);for(var t in e){var i=A(e[t]);if(i)throw i}this._base.plugins=e}},reportOfflineContentAcquired:function(e){if(e!=Ooyala.Analytics.OfflineContentDownloadType.FOR_RENT&&e!=Ooyala.Analytics.OfflineContentDownloadType.TO_OWN)throw c(y.INVALID_DOWNLOAD_TYPE);var i=t(g.OFFLINE_CONTENT_ACQUIRED);i.downloadType=e,I.call(this,i,g.OFFLINE_CONTENT_ACQUIRED.priority)},reportReplay:function(){var e=t(g.REPLAY);e.isAutoPlay=!1,I.call(this,e,g.REPLAY.priority)},reportPlaybackStarted:function(){0!==this._playRequestedTime&&(this._joinTime=0===this._adBreakTime?(new Date).getTime()-this._playRequestedTime:(new Date).getTime()-this._playRequestedTime-this._adBreakTime,this.reportPrecalculatedEvent(v),this._adBreakTime=0,this._playRequestedTime=0),l.call(this,g.VIDEO_STARTED)},reportPlayHeadUpdate:function(e){if(this._timePlayed=this._timePlayed+(e-this._lastTimePlayed),(this._timePlayed>2*this._priorityIntervals[0]||this._timePlayed<0)&&(this._timePlayed=this._priorityIntervals[0]),this._lastTimePlayed=e,this._playheadPositionMillis=e,this._timePlayedMillis=Math.floor(this._timePlayed),i.call(this,g.PLAYHEAD_UPDATE.priority),i.call(this,g.TIME_PLAYED.priority),!this._liveContent){var t=function(e){for(var t=!1,i=0,n=0;!t;)i===this._buckets.count||this._buckets.startingTimes[i]>e?(n=i-1,t=!0):i+=1;return n}.call(this,e);o.call(this,t)}},reportPause:function(){l.call(this,g.PAUSE)},reportResume:function(){l.call(this,g.RESUME)},reportSeek:function(e,i){var n=t(g.SEEK);n.fromMillis=e,n.toMillis=i,I.call(this,n,g.SEEK.priority)},reportComplete:function(){s.call(this),this._flushTimeout&&clearTimeout(this._flushTimeout)},reportCustomEvent:function(e,i){var n=t(g.CUSTOM);switch(n.customEventName=e,e){case m:this._bufferingStartedTime=new Date(n.time).getTime();break;case _:0!==this._bufferingStartedTime&&(this._bufferingTime=new Date(n.time).getTime()-this._bufferingStartedTime,this.reportPrecalculatedEvent(S),this._bufferingStartedTime=0);break;case O:this._adBreakStartedTime=new Date(n.time).getTime();break;case b:0!==this._adBreakStartedTime&&(this._adBreakTime=new Date(n.time).getTime()-this._adBreakStartedTime,this._adBreakStartedTime=0)}for(var a in i)n[a]=i[a];I.call(this,n,g.CUSTOM.priority)},reportPrecalculatedEvent:function(e){var i=t(g.CUSTOM);switch(i.customEventName=e,e){case S:i.bufferingTimeMillis=this._bufferingTime,this._bufferingTime=0;break;case v:i.joinTimeMillis=this._joinTime,this._joinTime=0}I.call(this,i,g.CUSTOM.priority)},updateTopLevelSource:function(e){this._base.source=e},reportAssetImpression:function(e,i,n,a,r,s){var o=t(g.ASSET_IMPRESSION);o.source=d(e,i,n,a,r,s),o.asset=h(e),I.call(this,o,g.ASSET_IMPRESSION.priority)},reportAssetClick:function(e,i,n,a,r,s){var o=t(g.ASSET_CLICK);this._lastClickedAsset.source=d(e,i,n,a,r,s),o.asset=h(e),this._lastClickedAsset.idType=o.asset.idType,this._lastClickedAsset.id=o.asset.id,o.source=this._lastClickedAsset.source;var l=!1;i&&i.hasOwnProperty("autoplay")&&(l=i.autoplay),o.isAutoPlay=l,I.call(this,o,g.ASSET_CLICK.priority)},setCustomDimensions:function(e){if(e)for(var t in e)if("object"==(0,n.default)(e[t]))throw c(y.INVALID_CUSTOM_DIMENSION);this._base.customDimensions=e}},Ooyala.Analytics.MediaContentType={OOYALA_CONTENT:"ooyala",EXTERNAL_CONTENT:"external"},Ooyala.Analytics.OfflineContentDownloadType={TO_OWN:"own",FOR_RENT:"rental"}}(this),s=this,Ooyala.HttpRequester=function(e,t,i){if(this._iqEndpoint=t,this.object=e,this.disablePiiLogging=i||!1,s.XMLHttpRequest)(n=new XMLHttpRequest).open("POST",this._iqEndpoint),n.setRequestHeader("Content-Type","application/json;charset=UTF-8"),this.disablePiiLogging&&n.setRequestHeader("OO-No-Follow","true"),n.send(JSON.stringify(this.object));else if(s.XDomainRequest){var n;(n=new s.XDomainRequest).onload=function(){onSuccess(n.responseText)},n.onerror=function(){console.log("Error: "+httpErrorCodeTranslation.ieError)};try{n.open(method,uri),n.timeout=timeout,n.send()}catch(e){console.log("Error: "+httpErrorCodeTranslation.ieError)}}}}(0,OO.$,OO._)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/typeof":18,_process:35}],43:[function(e,t,i){"use strict";!function(e,t,i){e.AnalyticsBase=function(e,t){},i.extend(e.AnalyticsBase.prototype,{loadSucceed:function(){},reportEvent:function(){throw new Error("Please override this function")},setup:function(e,t,n){this.mb=e,this.elementId=t,this._loaded=!1,this._bufferedEvents=[],this.mb.subscribe("*",n,i.bind(this._onAnalyticsEvent,this))},loadExternalAnalyticsJs:function(n){t.getScriptRetry(n,i.bind(this._onLoaded,this),{error:function(){e.log("can not load url",n)}})},_onLoaded:function(){this._loaded=!0,this.loadSucceed(),this._bufferedEvents&&i.each(this._bufferedEvents,function(e){this._safeReportEvent.apply(this,e)},this)},_onAnalyticsEvent:function(){this._loaded?this._safeReportEvent.apply(this,arguments):this._bufferedEvents.push(arguments)},_safeReportEvent:function(){try{this.reportEvent.apply(this,arguments)}catch(t){e.log("can not log event")}},__place_holder:!0})}(OO,OO.$,OO._)},{}],44:[function(e,t,i){"use strict";!function(e,t,i){var n=e.inherit(e.AnalyticsBase,function(t,n){e.requiredInEnvironment("html5-playback")&&(this.setup(t,n,"ooyala_analytics"),this.lastEmbedCode="",this.currentEmbedcode="",this.playingInstreamAd=!1,this.playingSsaiAd=!1,this.currentPlayhead=0,this.lastReportedPlayhead=0,this.guid=void 0,this.adOffset=0,this.adTimeline=[],this.accountId=void 0,this.accountIdSet=!1,this.guidSet=!1,this.parameters=void 0,this.ssaiAdTransition=!1,this.documentUrl=void 0,this.videoStartSent=!1,this.isChromeCasting=!1,this.enableThrift=!0,this.enableIQ=!1,this.thriftPcode=null,this.jsonPcode=null,this.analyticsParams=null,t.subscribe(e.EVENTS.AUTHORIZATION_FETCHED,"ooyala_analytics",i.bind(this._onAuthorizationFetched,this)),t.subscribe(e.EVENTS.ERROR,"ooyala_analytics",i.bind(this._onErrorEvent,this)),t.subscribe(e.EVENTS.GUID_SET,"ooyala_analytics",i.bind(this._onGuidSet,this)),t.subscribe(e.EVENTS.REPORT_DISCOVERY_IMPRESSION,"ooyala_analytics",i.bind(this._onReportDiscoveryImpression,this)),t.subscribe(e.EVENTS.REPORT_DISCOVERY_CLICK,"ooyala_analytics",i.bind(this._onReportDiscoveryClick,this)),t.subscribe(e.EVENTS.PLAYER_CREATED,"ooyala_analytics",i.bind(this._onPlayerCreated,this)),t.subscribe(e.EVENTS.METADATA_FETCHED,"ooyala_analytics",i.bind(this._onMetadataFetched,this)),t.subscribe(e.EVENTS.ASSET_CHANGED,"ooyala_analytics",i.bind(this._onFirstAssetChanged,this)),t.subscribe(e.EVENTS.CHROMECAST_START_CAST,"ooyala_analytics",i.bind(this._onChromecastStartCast,this)),t.subscribe(e.EVENTS.CHROMECAST_END_CAST,"ooyala_analytics",i.bind(this._onChromecastEndCast,this)))});i.extend(n.prototype,{_onGuidSet:function(e,t){this.guid=t,this.guidSet=!0,this._onGuidAndAccountIdSet()},_onPlayerCreated:function(t,i,n){this.parameters=n,this.parameters&&this.parameters.docUrl?this.documentUrl=this.parameters.docUrl:this.parameters&&this.parameters.flashParams&&this.parameters.flashParams.docUrl&&(this.documentUrl=this.parameters.flashParams.docUrl),n&&n.modules&&n.modules.iq&&this._setMetadata(n.modules.iq),e.log("OO.OoyalaAnalytics: Player Created")},_onMetadataFetched:function(e,t){t&&t.modules&&t.modules.iq&&t.modules.iq.metadata&&this._setMetadata(t.modules.iq.metadata),this.parameters&&this.parameters.iq&&this.parameters.iq.metadata&&this._setMetadata(this.parameters.iq.metadata)},_onAuthorizationFetched:function(t,n){n.user_info&&n.user_info.account_id?this.accountId=n.user_info.account_id:n.debug_data&&n.debug_data.user_info&&n.debug_data.user_info.account_id&&(this.accountId=n.debug_data.user_info.account_id),this.mb.unsubscribe(e.EVENTS.ERROR,"ooyala_analytics"),this.mb.unsubscribe(e.EVENTS.AUTHORIZATION_FETCHED,"ooyala_analytics"),i.isNumber(this.accountId)&&(this.accountId=this.accountId.toString()),i.isString(this.accountId)?e.d("OO.OoyalaAnalytics: SAS authorization fetched with accountId == "+this.accountId):(this.accountId=void 0,e.d("OO.OoyalaAnalytics: SAS authorization fetched without an accountId")),this.accountIdSet=!0,this._onGuidAndAccountIdSet()},_updateAdOffset:function(e){if(null!==this.adTimeline){this.adOffset=0;for(var t=0;t<this.adTimeline.length;t++)this.adTimeline[t].start<=e&&(this.adOffset+=this.adTimeline[t].duration)}},_processAdTimeline:function(e){if(null===e)return[];for(var t=[],i=0,n=0;n<e.length;n++){var a=Math.floor(1e3*e[n].duration),r=Math.floor(1e3*e[n].start);i+=a;var s={adId:e[n].id,start:r,end:r+a,duration:a,offset:i};t.push(s)}return t},_isSSAIAdPlaying:function(e){for(var t=0;t<this.adTimeline.length;t++)if(e>=this.adTimeline[t].start&&e<this.adTimeline[t].end)return!0;return!1},_onGuidAndAccountIdSet:function(){this.guidSet&&this.accountIdSet&&(e.d("Loading Analytics Module..."),this._loadAnalytics())},_onErrorEvent:function(t,n){if(n&&n.code){var a=n.code,r=!1;i.each(e.ERROR.API.SAS,function(e,t){e===a&&(r=!0)}),r&&this._onAuthorizationError(t,a)}},_onAuthorizationError:function(t,i){this.mb.unsubscribe(e.EVENTS.ERROR,"ooyala_analytics"),this.mb.unsubscribe(e.EVENTS.AUTHORIZATION_FETCHED,"ooyala_analytics"),e.d("OO.OoyalaAnalytics: SAS authorization failed, loading external analytics module ..."),this._loadAnalytics()},_onReportDiscoveryImpression:function(t,i){if(this.reporter)try{e.log("Reporting a discovery event: "+t+" with params: "+JSON.stringify(i.custom)+" and relatedVideos: "+JSON.stringify(i.relatedVideos)),this.reporter.reportDiscoveryImpression(i.relatedVideos,i.custom),e.log("OO.OoyalaAnalytics: Reported event: reportDiscoveryImpression with params: "+JSON.stringify(i.custom)+" and relatedVideos: "+JSON.stringify(i.relatedVideos))}catch(t){e.log("Failed to report a discovery impression event with params "+JSON.stringify(i)+": "+t)}},_onReportDiscoveryClick:function(t,i){if(this.reporter)try{e.log("Reporting a discovery event: "+t+"with params: "+JSON.stringify(i.custom)+" for clickedVideo: "+JSON.stringify(i.clickedVideo)),this.reporter.reportDiscoveryClick(i.clickedVideo,i.custom),e.log("OO.OoyalaAnalytics: Reported event: reportDiscoveryClick with params: "+JSON.stringify(i.custom)+" for clickedVideo: "+JSON.stringify(i.clickedVideo))}catch(t){e.log("Failed to report a discovery click event with params "+JSON.stringify(i)+": "+t)}},_loadAnalytics:function(){i.bind(this._onLoaded,this)()},_setMetadata:function(e){null!=e.jsonPcode&&(this.jsonPcode=e.jsonPcode),null!=e.thriftPcode&&(this.thriftPcode=e.thriftPcode),null!=e.enabled&&(this.enableIQ=!0===e.enabled||"true"===e.enabled),null!=e.allowThrift&&(this.enableThrift=!0===e.allowThrift||"true"===e.allowThrift),this._initializeReporter()},_canReportDisplay:function(){return!this.enableIQ||null!=this.thriftPcode||null!=this.jsonPcode},_initializeReporter:function(t){if(!this.enableIQ||this.enableThrift||null!=this.thriftPcode||null!=this.jsonPcode){var i=e.playerParams.pcode;null!=this.thriftPcode&&(i=this.thriftPcode),n&&n.Reporter&&(this.reporter=new n.Reporter(i,this.analyticsParams))}else this.reporter=null},_onFirstAssetChanged:function(t,i){i.ooyalaAsset&&(this.mb.unsubscribe(e.EVENTS.ASSET_CHANGED,"ooyala_analytics",this._onFirstAssetChanged),this.accountId=void 0,this.accountIdSet=!0,this._onGuidAndAccountIdSet())},_onChromecastStartCast:function(e){this.isChromeCasting=!0},_onChromecastEndCast:function(e){this.isChromeCasting=!1},loadSucceed:function(){if(window.Ooyala&&window.Ooyala.Reporter&&(n.Reporter=Ooyala.Reporter,n.Pinger=Ooyala.Pinger,this.reporter=null,e.playerParams.pcode)){switch(this.analyticsParams={accountId:this.accountId,guid:this.guid,playerBrandingId:e.playerParams.playerBrandingId},e.trackingLevel){case e.TRACKING_LEVEL.DISABLED:case e.TRACKING_LEVEL.ANONYMOUS:this.analyticsParams.doNotTrack=!0;break;case e.TRACKING_LEVEL.DEFAULT:}this.documentUrl&&(this.analyticsParams=i.extend(this.analyticsParams,{documentUrl:this.documentUrl})),this._initializeReporter()}},reportEvent:function(t,n,a){if(this.reporter){if(!this.isChromeCasting){e.log("OO.OoyalaAnalytics: Received event: "+t+", args: "+n+", "+a);switch(t){case e.EVENTS.PLAYER_CREATED:this.reporter.reportPlayerLoad(),e.log("OO.OoyalaAnalytics: Reported event: reportPlayerLoad");break;case e.EVENTS.EMBED_CODE_CHANGED:case e.EVENTS.EMBED_CODE_CHANGED_AFTER_OOYALA_AD:n!==this.currentEmbedcode?this.lastEmbedCode=this.currentEmbedcode:this.lastEmbedCode="",this.currentEmbedcode=n;break;case e.EVENTS.CONTENT_TREE_FETCHED:this.ssaiAdTransition=!1,this.playingSsaiAd=!1,this.currentPlayhead=0,this.lastReportedPlayhead=0,this.adOffset=0,this.adTimeline=[],this.reporter.initializeVideo(this.currentEmbedcode,n.duration),e.log("OO.OoyalaAnalytics: Reported event: initializeVideo with embedCode: "+this.currentEmbedcode+" and duration: "+n.duration),this._canReportDisplay()&&(this.reporter.reportDisplay(),e.log("OO.OoyalaAnalytics: Reported event: reportDisplay"));break;case e.EVENTS.ASSET_CHANGED:if(!n)break;n.id!==this.currentEmbedcode?this.lastEmbedCode=this.currentEmbedcode:this.lastEmbedCode="";break;case e.EVENTS.WILL_PLAY_FROM_BEGINNING:this.videoStartSent=!1;break;case e.EVENTS.PLAYING:this.videoStartSent||(this.lastEmbedCode===this.currentEmbedcode?(this.reporter.reportReplay(),e.log("OO.OoyalaAnalytics: Reported event: reportReplay")):(this.reporter.reportVideoStarted(),e.log("OO.OoyalaAnalytics: Reported event: reportVideoStarted"),this.lastEmbedCode=this.currentEmbedcode),this.videoStartSent=!0);break;case e.EVENTS.SSAI_PLAY_SINGLE_AD:for(var r=!1,s=0;s<this.adTimeline.length;s++)this.adTimeline[s].adId===n.adId&&(r=!0);if(!r){var o=Math.floor(1e3*n.duration),l={adId:n.adId,start:this.currentPlayhead,end:this.currentPlayhead+o,duration:o,offset:0};this.adTimeline.push(l)}this.playingSsaiAd=!0;break;case e.EVENTS.SSAI_SINGLE_AD_PLAYED:this.playingSsaiAd=!1,this.ssaiAdTransition=!0;break;case e.EVENTS.REPLAY:this.lastReportedPlayhead=0,this.playingSsaiAd=this._isSSAIAdPlaying(0),this._updateAdOffset(0);break;case e.EVENTS.SEEKED:this.lastReportedPlayhead=0;var c=Math.floor(1e3*n);this.playingSsaiAd=this._isSSAIAdPlaying(c),this._updateAdOffset(c);break;case e.EVENTS.WILL_PLAY_ADS:this.playingInstreamAd=!0;var u=Ooyala.Reporter.AdSource.UNKNOWN;n&&n.type&&"string"==typeof n.type&&(u=Ooyala.Reporter.AdSource[n.type.toUpperCase()]),this.reporter.setAdSource(u,this.currentEmbedcode,n&&n.click_url),this.reporter.reportAdImpression(),e.log("OO.OoyalaAnalytics: Reported event: reportAdImpression");break;case e.EVENTS.ADS_PLAYED:this.playingInstreamAd=!1;break;case e.EVENTS.ADS_CLICKED:this.reporter.reportAdClickToVideo(),e.log("OO.OoyalaAnalytics: Reported event: reportAdClickToVideo");break;case e.EVENTS.PLAYHEAD_TIME_CHANGED:if(this.playingInstreamAd||this.playingSsaiAd)this.reporter.reportAdPlaythrough(n,a),e.log("OO.OoyalaAnalytics: Reported event: reportAdPlaythrough with playheadTime: "+n+" and totalTime: "+a);else{var d=n;void 0!==arguments[6]&&(d=arguments[6],this.adOffset=0);var h=Math.floor(1e3*d);if(i.isFinite(d)&&d>0){if(this.ssaiAdTransition){if(this._isSSAIAdPlaying(h))break;this._updateAdOffset(h),this.ssaiAdTransition=!1}this.currentPlayhead=h;var A=this.currentPlayhead-this.adOffset;if(A<0)break;A>this.lastReportedPlayhead&&(this.lastReportedPlayhead=A,this.reporter.reportPlayheadUpdate(A),e.log("OO.OoyalaAnalytics: Reported event: reportPlayheadUpdate with playheadPosition: "+A))}}break;case e.EVENTS.REPORT_EXPERIMENT_VARIATIONS:e.log("OO.OoyalaAnalytics: Reported event: reportExperimentVariation with variationIds: "+JSON.stringify(n)),this.reporter.reportExperimentVariation(n.variationIds),e.log("OO.OoyalaAnalytics: Reported event: reportExperimentVariation with variationIds: "+JSON.stringify(n.variationIds));break;case e.EVENTS.INITIAL_PLAY:this.reporter.reportPlayRequested(),e.log("OO.OoyalaAnalytics: Reported event: reportPlayRequested");break;case e.EVENTS.SSAI_AD_TIMELINE_RECEIVED:this.playingSsaiAd=!0,this.adTimeline=this._processAdTimeline(n.ads),this._updateAdOffset(this.currentPlayhead)}}}else this.enableThrift&&e.log("Error: trying to report event but reporter does not exist yet.")},__place_holder:!0}),e.registerModule(e.MODULE_NAMES.OOYALA_ANALYTICS,function(e,t){return new n(e,t)})}(OO,OO.$,OO._)},{}],45:[function(e,t,i){"use strict";!function(e){e.get_css=function(t){return e.stylus_css&&t?e.stylus_css[t+".styl"]:null}}(OO)},{}],46:[function(e,t,i){"use strict";OO.VERSION.core.rev="517545ffdf0e70ada8fb2a37c7e7f88800672b61"},{}],47:[function(e,t,i){"use strict";!function(e){e.stylus_css={"root.styl":"#<%= elementId %>>div{width:0;height:0;position:relative;z-index:10000;overflow:hidden}#<%= elementId %> .innerWrapper{background:#000;text-align:left}#<%= elementId %> .innerWrapper:-webkit-full-screen{width:100%;height:100%}#<%= elementId %> .innerWrapper:-webkit-full-screen video{width:100%}#<%= elementId %> .innerWrapper.fullscreen{position:fixed;top:0;left:0;width:100%;height:100%;background:#fff}#<%= elementId %> .oo_playhead{-ms-touch-action:none}",__end_marker:1}}(OO)},{}],48:[function(e,t,i){"use strict";!function(t){e("../3rdparty/hazmat-0.1.4.js"),e("../3rdparty/base64.js"),e("../3rdparty/jquery_plugins.js"),e("../3rdparty/jsSHA-1.31.js"),e("../3rdparty/lzw.js");var i={};window.debugHazmat||(i={warn:function(){}}),t.HM=window.Hazmat.noConflict().create(i),t.jsSHA=window.jsSHA,t.LZW=window.LZW,window.console&&window.console.log||(window.console=window.console||{},window.console.log=function(){})}(OO)},{"../3rdparty/base64.js":37,"../3rdparty/hazmat-0.1.4.js":38,"../3rdparty/jquery_plugins.js":39,"../3rdparty/jsSHA-1.31.js":40,"../3rdparty/lzw.js":41}],49:[function(e,t,i){"use strict";!function(e,t){e.Emitter=function(e){this.mb=e,this._subscribers={}},t.extend(e.Emitter.prototype,{on:function(e,t,i){this._subscribers[e]=this._subscribers[e]||[],this._subscribers[e].push({callback:i,subscriber:t})},off:function(e,i,n){this._subscribers[e]=t.reject(this._subscribers[e]||[],function(e){return(e.callback===n||void 0===n)&&e.subscriber===i})},trigger:function(e){t.each(this._subscribers[e]||[],t.bind(this._triggerSubscriber,this,e,arguments)),t.each(this._subscribers["*"]||[],t.bind(this._triggerSubscriber,this,e,arguments))},_triggerSubscriber:function(t,i,n){try{n.callback.apply(this,i)}catch(r){var a=r.stack||"unavailable";e.log("Uncaught exception",r,"Stack",a,"triggering subscriber",n,"with event",t,"Parameters: ",i)}},__placeholder:!0})}(OO,OO._)},{}],50:[function(e,t,i){"use strict";!function(e,t,i){e.playerParams=i.safeObject("environment.playerParams",e.playerParams,{}),e.configurePublisher=function(t){e.playerParams.pcode=t.pcode||e.playerParams.pcode||"",e.playerParams.playerBrandingId=t.playerBrandingId||e.playerParams.playerBrandingId||"",e.playerParams.playerType=t.playerType||e.playerParams.playerType||e.CONSTANTS.PLAYER_TYPE.VIDEO,e.playerParams.debug=t.debug||e.playerParams.debug||""},e.isPublisherConfigured=function(){return!(!e.playerParams.pcode||!e.playerParams.playerBrandingId)},e.setServerHost=function(t){e.playerParams.api_ssl_server=t.api_ssl_server||e.playerParams.api_ssl_server||null,e.playerParams.api_server=t.api_server||e.playerParams.api_server||null,e.playerParams.auth_ssl_server=t.auth_ssl_server||e.playerParams.auth_ssl_server||null,e.playerParams.auth_server=t.auth_server||e.playerParams.auth_server||null,e.playerParams.analytics_ssl_server=t.analytics_ssl_server||e.playerParams.analytics_ssl_server||null,e.playerParams.analytics_server=t.analytics_server||e.playerParams.analytics_server||null,n()};var n=function(){e.SERVER={API:e.isSSL?e.playerParams.api_ssl_server||"https://player.ooyala.com":e.playerParams.api_server||"http://player.ooyala.com",AUTH:e.isSSL?e.playerParams.auth_ssl_server||"https://player.ooyala.com/sas":e.playerParams.auth_server||"http://player.ooyala.com/sas",ANALYTICS:e.isSSL?e.playerParams.analytics_ssl_server||"https://player.ooyala.com":e.playerParams.analytics_server||"http://player.ooyala.com"}};e.playerParams.tweaks=e.playerParams.tweaks||"",e.playerParams.tweaks=i.safeString("environment.playerParams.tweaks",e.playerParams.tweaks,""),e.playerParams.tweaks=e.playerParams.tweaks.split(","),e.tweaks={},e.tweaks["android-enable-hls"]=t.contains(e.playerParams.tweaks,"android-enable-hls"),e.tweaks["html5-force-mp4"]=t.contains(e.playerParams.tweaks,"html5-force-mp4");var a,r,s,o,l;e.playerParams.maxAdsTimeout=e.playerParams.maxAdsTimeout||5,e.playerParams.maxVastWrapperDepth=e.playerParams.maxVastWrapperDepth||3,e.playerParams.minLiveSeekWindow=e.playerParams.minLiveSeekWindow||10,e.guid="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e.toLowerCase()?t:3&t|8).toString(16)}),e.playerCount=0,e.isProd=!(!e.playerParams.environment||!e.playerParams.environment.match(/^prod/i)),e.platform=window.navigator.platform,e.os=window.navigator.appVersion,e.supportsVideo=!!document.createElement("video").canPlayType,e.browserSupportsCors=function(){try{return t.has(new window.XMLHttpRequest,"withCredentials")||t.has(window.XMLHttpRequest.prototype,"withCredentials")}catch(e){return!1}}(),e.isWindows=!!e.platform.match(/Win/),e.isWindows7=e.isWindows&&"Windows NT 6.1"===window.navigator.userAgent.match(/Windows NT [\d.]*/)[0].trim(),e.isIos=!!e.platform.match(/iPhone|iPad|iPod/),e.isIphone=!!e.platform.match(/iPhone|iPod/),e.isIpad=!!e.platform.match(/iPad/),e.iosMajorVersion=function(){try{return e.isIos?parseInt(window.navigator.userAgent.match(/OS (\d+)/)[1],10):null}catch(e){return null}}(),e.isAndroid=!(!e.os.match(/Android/)||e.os.match(/Windows Phone/)),e.isAndroid4Plus=((a=e.os.match(/Android [\d\.]*;/))&&a.length>0&&(a=parseInt(a[0].substring(a[0].indexOf(" ")+1,a[0].search("[.;]")))),e.isAndroid&&a>=4),e.isAndroid4_4Plus=function(){var t=!1;if(e.isAndroid){var i=e.os.match(/Android [\d\.]*;/);if(i&&i.length){var n=i[0].toLowerCase().match(/android\s([0-9\.]*)/)[1];t=parseFloat(n)>4.3}}return t}(),e.isRimDevice=!(!e.os.match(/BlackBerry/)&&!e.os.match(/PlayBook/)),e.isFirefox=!!window.navigator.userAgent.match(/Firefox/),e.isSamsungBrowser=!!window.navigator.userAgent.match(/SamsungBrowser/),e.isChrome=!!window.navigator.userAgent.match(/Chrome/)&&!window.navigator.userAgent.match(/Edge/),e.isSafari=!(!window.navigator.userAgent.match(/AppleWebKit/)||window.navigator.userAgent.match(/Chrome/)||window.navigator.userAgent.match(/CriOS/)||window.navigator.userAgent.match(/like iPhone/)),e.chromeMajorVersion=function(){try{return parseInt(window.navigator.userAgent.match(/Chrome.([0-9]*)/)[1],10)}catch(e){return null}}(),e.isIE=!!window.navigator.userAgent.match(/MSIE/)||!!window.navigator.userAgent.match(/Trident/),e.isEdge=!!window.navigator.userAgent.match(/Edge/),e.isIE11Plus=function(){if(!window.navigator.userAgent.match(/Trident/))return!1;var e=window.navigator.userAgent.match(/rv:(\d*)/);return(e&&e[1])>=11}(),e.isWinPhone=!!e.os.match(/Windows Phone/)||!!e.os.match(/ZuneWP/)||!!e.os.match(/XBLWP/),e.isSmartTV=!!window.navigator.userAgent.match(/SmartTV/)||!!window.navigator.userAgent.match(/NetCast/),e.ismatches=!e.isIos&&!!e.os.match(/Mac/)&&!window.navigator.userAgent.match(/like iPhone/),e.ismatchesLionOrLater=function(){var t=e.os.match(/Mac OS X ([0-9]+)_([0-9]+)/);if(null==t||t.length<3)return!1;return parseInt(t[1],10)>=10&&parseInt(t[2],10)>=7}(),e.matchesSafariVersion=function(){try{return e.ismatches&&e.isSafari?parseInt(window.navigator.userAgent.match(/Version\/(\d+)/)[1],10):null}catch(e){return null}}(),e.isKindleHD=!!e.os.match(/Silk\/2/),e.supportMSE="MediaSource"in window||"WebKitMediaSource"in window||"mozMediaSource"in window||"msMediaSource"in window,e.supportAds=!e.isWinPhone&&!e.os.match(/Android [23]/),e.allowGesture=e.isIos,e.allowAutoPlay=!e.isIos&&!e.isAndroid,e.supportTouch=document.documentElement.hasOwnProperty&&document.documentElement.hasOwnProperty("ontouchstart"),e.docDomain=function(){var t=null;try{t=document.domain}catch(e){}return e._.isEmpty(t)?e.isSmartTV?"SmartTV":"unknown":t}(),e.uiParadigm=function(){var t="tablet";if(e.isAndroid4Plus&&e.tweaks["android-enable-hls"])t="tablet";else if(e.isIphone)t="mobile-native";else if(e.os.match(/BlackBerry/))t="mobile-native";else if(e.os.match(/iPad/))t="tablet";else if(e.isKindleHD)t="mobile-native";else if(e.os.match(/Silk/))t="mobile";else if(e.os.match(/Android 2/)){window.orientation%180==0&&window.outerWidth/window.devicePixelRatio<=480?t="mobile":window.outerWidth/window.devicePixelRatio<=560&&(t="mobile")}else e.os.match(/Android/)?t="tablet":e.isWinPhone?t="mobile":(e.platform.match(/Mac/)||e.platform.match(/Win/)||e.platform.match(/Linux/))&&(t="desktop");return t}(),e.requiresSingleVideoElement=(r=e.isIos,s=e.isAndroid&&(!e.isAndroid4Plus||e.chromeMajorVersion<40),r||s),e.supportedVideoProfiles=e.isIos||e.isAndroid?"baseline":null,e.device=(o="html5",e.isIphone?o="iphone-html5":e.isIpad?o="ipad-html5":e.isAndroid?o="android-html5":e.isRimDevice?o="rim-html5":e.isWinPhone?o="winphone-html5":e.isSmartTV&&(o="smarttv-html5"),o),e.environmentRequiredFeatures=(l=[],e.os.match(/Android 2/)?l.push("html5-playback"):(l.push("html5-playback"),e.supportAds&&l.push("ads")),t.reduce(l,function(e,t){return e+t+" "},"")),e.supportMidRollAds="desktop"===e.uiParadigm&&!e.isIos&&!e.isRimDevice,e.supportCookies=function(){document.cookie="ooyala_cookie_test=true";var e=document.cookie.indexOf("ooyala_cookie_test=true")>=0;return document.cookie="ooyala_cookie_test=; expires=Thu, 01 Jan 1970 00:00:00 GMT",e}(),e.isSSL="https:"===document.location.protocol,n(),e.requiredInEnvironment=e.featureEnabled=function(t){return!!e.environmentRequiredFeatures.match(new RegExp(t))},e.chromeExtensionEnabled=!!document.getElementById("ooyala-extension-installed"),e.locale="",e.setLocale=function(t){e.locale=t.toUpperCase()},e.getLocale=function(){return(e.locale||document.documentElement.lang||navigator.language||navigator.userLanguage||"en").substr(0,2).toUpperCase()}}(OO,OO._,OO.HM)},{}],51:[function(e,t,i){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault")(e("@babel/runtime/helpers/typeof"));!function(e,t){e.MessageBus=function(){this._emitter=new e.Emitter(this),this._dependentEmitter=new e.Emitter(this),this._interceptEmitter=new e.Emitter(this),this._interceptArgs={},this._dependentList={},this._blockList={},this._readyEventList={},this._dispatching=!1,this._publishingQueue=[],this.blockedEvent={},this.blockedParams={},this._messageHistory=[],this._tracer=t.bind(this._internalTracer,this),this.MbId=e.getRandomString(),this.debug=!1},t.extend(e.MessageBus.prototype,{addTracer:function(e){e&&t.isFunction(e)&&(this._tracer?this._tracer=t.wrap(this._tracer,function(){e.apply(this,t.rest(arguments))}):this._tracer=e)},_internalTracer:function(){this._messageHistory.push(t.toArray(arguments))},messageTraceSnapshot:function(){return t.toArray(this._messageHistory)},addDependent:function(i,n,a,r){if(i&&""!==i&&n&&""!==n){this.debug&&e.log('MB DEBUG: "'+i+'" depends on "'+n+'". Added by "'+a+'"'),this._dependentList[i]=this._dependentList[i]||[],this._dependentList[i].push(n),this._blockList[n]=this._blockList[n]||[],this._blockList[n].push(i),this.blockedParams[i]=[];var s=e._.bind(function(a){if(1===this.blockedEvent[a]){var s=e.safeClone(t.flatten(arguments)),o=e.safeClone(this.blockedParams[i]);s.shift(),o.shift();var l=r&&r.apply(this,[i,n,o,s])||o;l=[a].concat(l),delete this.blockedEvent[a],this.blockedParams[a]=[],this.debug&&e.log('MB DEBUG: unblocking "'+a+'" because of "'+n+'" with args ',l),this._publish.apply(this,l)}},this);this._dependentEmitter.on(i,a,s)}else console.error("MB: addDependent called on message bus from subscriber "+a+" with no event name given.")},removeDependent:function(t,i){t&&""!==t&&i&&""!==i?(this.debug&&e.log('MB DEBUG: "'+t+'" no longer depends on "'+i+'"'),this._clearDependent(t,i)):console.warn("MB: removeDependent called on message bus with no event name given.")},publish:function(){if(arguments&&arguments[0]&&""!==arguments[0]){var i=e.safeClone(t.flatten(arguments));if(this._publishingQueue.push(i),this.debug&&e.log('MB DEBUG: queueing "'+arguments[0]+'" args',i),!this._dispatching){this._dispatching=!0;for(var n=this._publishingQueue.shift();n;)this._publish.apply(this,n),n=this._publishingQueue.shift();this._dispatching=!1}}else console.error("MB: publish called on message bus with no event name given.")},_publish:function(i){this._readyEventList[i]=1;var a=e.safeClone(t.flatten(arguments));if(this._interceptEmitter.trigger.apply(this._interceptEmitter,a),!1!==this._interceptArgs[i]){if(this._interceptArgs[i]&&(a=t.flatten([i,this._interceptArgs[i]])),this._tracer&&t.isFunction(this._tracer)){var r=t.flatten(["publish"].concat(a));this._tracer.apply(this._tracer,r)}if(this._noDependency(i)){if(this.debug&&e.log('MB DEBUG: publishing "'+i+'"args ',a),i===e.EVENTS.SET_EMBED_CODE){if(!a[1]||0===a[1].length||!a[1].trim()){var s=a[2];if(!(e.isPlaylistsPluginIncluded()&&s&&null!==s&&"object"===(0,n.default)(s)&&void 0!==s[e.PLUGINS.PLAYLISTS_PLUGIN]&&s[e.PAGE_LEVEL_PARAMS.USE_FIRST_VIDEO_FROM_PLAYLIST]))return void console.error("MB: no embed code and/or playlist plugin")}}this._emitter.trigger.apply(this._emitter,a),t.each(this._blockList[i],function(e){this._clearDependent(e,i),a[0]=e,this._dependentEmitter.trigger.apply(this._dependentEmitter,a)},this),delete this._blockList[i]}else this.debug&&e.log('MB DEBUG: blocking "'+i+'" because of "'+this._dependentList?this._dependentList[i]:'[null]"'),this.blockedEvent[i]=1,this.blockedParams[i]=a}else this._interceptArgs[i]=!0},intercept:function(i,n,a){this._interceptEmitter.on(i,n,t.bind(function(){if(i&&""!==i){var r=e.safeClone(t.flatten(arguments));!1!==this._interceptArgs[i]&&(this._interceptArgs[i]=a.apply(this,r))}else console.error("MB: intercept called on message bus from subscriber "+n+" with no event name given.")},this)),this._interceptArgs[i]=[i]},subscribe:function(e,t,i){e&&""!==e?this._emitter.on(e,t,i):console.error("MB: subscribe called on message bus from subscriber "+t+" with no event name given.")},unsubscribe:function(e,t,i){e&&""!==e?this._emitter.off(e,t,i):console.error("MB: unsubscribe called on message bus from subscriber "+t+" with no event name given.")},_noDependency:function(e){return!this._dependentList[e]||0===this._dependentList[e].length},_clearDependent:function(t,i){var n=this._dependentList[t];this._dependentList[t]=e._.filter(n,function(e){return e!==i},this)},startDebug:function(){return this.debug=!0,"MB DEBUGGING STARTED"},stopDebug:function(){return this.debug=!1,"MB DEBUGGING STOPPED"},listDependencies:function(){var e,t="------------------------------------\n[blocked] Message --\x3e Dependency\n------------------------------------\n";if(this._dependentList)for(var i in this._dependentList)if(this._dependentList[i])for(e=0;e<this._dependentList[i].length;e++)1===this.blockedEvent[i]&&(t+="[blocked]"),t+=i+" --\x3e "+this._dependentList[i]+"\n";return t+="------------------------------------"}})}(OO,OO._)},{"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/typeof":18}],52:[function(e,t,i){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault")(e("@babel/runtime/helpers/typeof"));!function(e,t,i){e.players={},e.Player=function(a,r,s){s=s||{};var o=e.HM.safeDomId("Player.create.elementId",a),l=e.HM.safeObject("Player.create.parameters",s,{}),c={closedCaptionOptions:{}};l.onCreate=e.HM.safeFunctionOrNull("Player.create.parameters.onCreate",l.onCreate);var u=new e.MessageBus;l.debug&&l.enableDebugTools&&!0===l.enableDebugTools.startDebugMB&&(u.debug=!0),i("#"+o).html("");var d=e._.map(e.modules,function(t){var i=t.name+"-"+e.getRandomString(),n={name:t.name,moduleId:i,instance:t.factory(u,i,l)};return e.log("Loaded plugin",n.moduleId,n),n}),h=e.localStorage.getItem(e.CONSTANTS.OOYALA_PLAYER_SETTINGS_KEY);h&&(c=JSON.parse(h));var A=new e.PlayerApi(u,a,d,l,c);u.subscribe(e.EVENTS.DESTROY,"player",t.bind(function(t,n){i("#"+o).empty(),delete e.players[o],e.removeStyles(o),A.triggerDestroyCallback()},this)),t.isFunction(l.onCreate)&&l.onCreate(A);var E=(new Date).valueOf(),p="";return null!=e.$.ajaxSettings&&(p=e.$.ajaxSettings.url),u.publish(e.EVENTS.PLAYER_CREATED,o,l,c,r,E,p),"object"===(0,n.default)(r)?(r=e.HM.safeObject("assetObject",r),A.setAsset(r,l)):"string"==typeof r&&(r=e.HM.safeStringOrNull("assetString",r),e.isHevcEnabled(l)&&e.checkHevcAvailability(function(t,i){var n={};n[i]=t.result,t.error?u.publish(e.EVENTS.HEVC_CHECKED,n,i,t.error):u.publish(e.EVENTS.HEVC_CHECKED,n,i)}),A.setEmbedCode(r,l)),A},e.exposeStaticApi("Player",{create:function(i,n,a){a=a||{};if(!e.playerParams.core_version||"4"!==e.playerParams.core_version&&4!==e.playerParams.core_version)return console.error("Error: A v4 player has been specified using a mismatch route. v4 players can only be used with a v4 route."),null;var r=t.extend({},e.playerParams,a);return e.configurePublisher(r),e.isPublisherConfigured()?(e.setServerHost(r),e.players[i]||(e.playerCount++,e.players[i]=e.Player(i,n,r)),!1!==e.DEBUG&&!0!==e.DEBUG&&(e.DEBUG=!0===r.debug,!0===e.DEBUG&&(this.exposeDebugApi(i,e.players[i]),this.enableDebugTools(i,r.enableDebugTools))),e.players[i]):(console.error("Error: pcode and playerBrandingId must be provided"),null)},isolate:function(i){var n,a="http://debug.ooyala.com/?",r=e.playerParams.playerBrandingId;if(r&&(a+="pbid="+r+"&"),i)n=e.players[i];else{if(e.playerCount>1)return console.log("More than one player to choose.Please specify the target div of the intended player as a parameter"),console.log("Available players are: ",t.keys(e.players)),t.keys(e.players);if(e.playerCount<1)return console.log("There are no players on the page to isolate"),"";n=t.values(e.players)[0]}var s=JSON.stringify(n.parameters),o=n.embedCode;return s&&(a+="options="+encodeURIComponent(s)+"&"),o&&(a+="ec="+o+"&"),"local-dev"!==e.playerParams.environment&&"default"!==e.playerParams.v3_version_source&&(a+="version="+e.playerParams.v3_version+"&"),e.environmentRequiredFeatures.indexOf("html5-playback")>-1&&(a+="useHtml5=true&"),console.log("If you are copying this link, do not highlight. Right click and press 'copy link address'"),a},exposeDebugApi:function(t,n){e.publicApi&&(e.publicApi.DEBUG||(e.publicApi.DEBUG={}),e.publicApi.DEBUG.consoleOutput=e.consoleOutput,e.publicApi.DEBUG.startRecordingConsoleOutput=e.startRecordingConsoleOutput,e.publicApi.DEBUG.stopRecordingConsoleOutput=e.stopRecordingConsoleOutput,e.publicApi.DEBUG.clearRecordedConsoleOutput=e.clearRecordedConsoleOutput,e.publicApi.DEBUG.setMaxConsoleOutputLines=e.setMaxConsoleOutputLines,e.publicApi.DEBUG.listStateMachines=e._.bind(e.StateMachine.getActiveList,e.StateMachine),e.publicApi.DEBUG.startDebugStateMachine=e._.bind(e.StateMachine.startDebugTransitionsFor,e.StateMachine),e.publicApi.DEBUG.stopDebugStateMachine=e._.bind(e.StateMachine.stopDebugTransitionsFor,e.StateMachine),e.publicApi.DEBUG[t]=e.publicApi.DEBUG[t]||{},e.publicApi.DEBUG[t].startDebugMB=e._.bind(n.mb.startDebug,n.mb),e.publicApi.DEBUG[t].stopDebugMB=e._.bind(n.mb.stopDebug,n.mb),e.publicApi.DEBUG[t].listMBDependencies=e._.bind(n.mb.listDependencies,n.mb),i.extend(e.publicApi.DEBUG[t],e.debug_tools[t]))},enableDebugTools:function(t,i){if(e.publicApi&&e.publicApi.DEBUG&&i&&t){if(i.hasOwnProperty("startRecordingConsoleOutput")){var n=i.startRecordingConsoleOutput;e.publicApi.DEBUG.startRecordingConsoleOutput(n)}if(e._.isFinite(i.setMaxConsoleOutputLines)&&e.publicApi.DEBUG.setMaxConsoleOutputLines(i.setMaxConsoleOutputLines),i.hasOwnProperty("startDebugStateMachine")&&e._.isString(i.startDebugStateMachine)){var a=[];if("all"===i.startDebugStateMachine)for(var r in a=e.publicApi.DEBUG.listStateMachines())a.hasOwnProperty(r)&&e.publicApi.DEBUG.startDebugStateMachine(r);else for(var s in a=i.startDebugStateMachine.split(","))if(a.hasOwnProperty(s)){var o=a[s].trim();e.publicApi.DEBUG.startDebugStateMachine(o)}}!0===i.startDebugMB&&e.publicApi.DEBUG[t].startDebugMB()}},__placeholder:0})}(OO,OO._,OO.$)},{"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/typeof":18}],53:[function(e,t,i){"use strict";!function(e,t,i){e.PlayerApi=function(i,n,a,r,s){var o=this;this.mb=i,this.modules=a,this.parameters=r,this.hvcChecked=!1,this.hevChecked=!1,this.persistentSettings=s;var l=n,c=!1,u=!1,d=!1,h=-1,A=!1,E=-1,p=-1,f=-1,T=null,g=-1,y={},m={},_={},S=null,O=null,b=!1,v=null,I=e.STATE.LOADING,N=0,D=!1,C=1,R=!1,L=!1,P=null,w=null,k=null,V=function(){b=!0,R=!1,L=!1},B=function(){c=!1,u=!1,d=!1,I=e.STATE.LOADING,h=-1,A=!1,E=-1,p=-1,f=-1,T=null,g=-1,y={},m={},_={},S=null,O=null,b=!1,L=!1};this.mb.subscribe(e.EVENTS.PLAYBACK_READY,"player",t.bind(function(){I=e.STATE.READY,c=!0,m=Object.assign({},s.closedCaptionOptions),R&&this.play()},this)),this.mb.subscribe(e.EVENTS.REPLAY,"player",t.bind(function(){V()},this)),this.mb.subscribe(e.EVENTS.PLAY,"player",t.bind(function(){V()},this)),this.mb.subscribe(e.EVENTS.INITIAL_PLAY,"player",t.bind(function(){V()},this)),this.mb.subscribe(e.EVENTS.PLAYING,"player",t.bind(function(){I!==e.STATE.ERROR&&(I=e.STATE.PLAYING,b=!0,d=!0),L=!1},this)),this.mb.subscribe(e.EVENTS.HEVC_CHECKED,"player",t.bind(function(i,n,a,r){t.extend(k,n),r&&(r.code&&!r.message&&(r.message=e.getMediaElementErrorFromCode(r.code)),e.log("HEVC check returned error for codec "+a+": code: "+r.code+" message: "+r.message)),a===e.CONSTANTS.HEVC_CODEC.HVC1&&(this.hvcChecked=!0),a===e.CONSTANTS.HEVC_CODEC.HEV1&&(this.hevChecked=!0),this.hvcChecked&&this.hevChecked&&this.mb.publish(e.EVENTS.SET_EMBED_CODE,w,k||{})},this)),this.mb.subscribe(e.EVENTS.PAUSED,"player",t.bind(function(){I!==e.STATE.ERROR&&(I=e.STATE.PAUSED),d=!1},this)),this.mb.subscribe(e.EVENTS.BUFFERING,"player",t.bind(function(){I!==e.STATE.ERROR&&(I=e.STATE.BUFFERING)},this)),this.mb.subscribe(e.EVENTS.BUFFERED,"player",t.bind(function(){I===e.STATE.BUFFERING&&(I=d?e.STATE.PLAYING:e.STATE.PAUSED)},this)),this.mb.subscribe(e.EVENTS.PLAYED,"player",t.bind(function(){I=e.STATE.READY,L=!0,d=!1},this)),this.mb.subscribe(e.EVENTS.WILL_PLAY_ADS,"player",t.bind(function(e,t){p=t,b=!0,u=!0,L=!1},this)),this.mb.subscribe(e.EVENTS.AD_POD_STARTED,"player",t.bind(function(e,t){u=!0},this)),this.mb.subscribe(e.EVENTS.ADS_PLAYED,"player",t.bind(function(){p=-1,u=!1},this)),this.mb.subscribe(e.EVENTS.AD_POD_ENDED,"player",t.bind(function(){p=-1,u=!1},this)),this.mb.subscribe(e.EVENTS.CONTENT_TREE_FETCHED,"player",t.bind(function(e,t){T=t;if(t){var i=Number(t.duration);isNaN(i)||(E=i/1e3)}},this)),this.mb.subscribe(e.EVENTS.WILL_FETCH_AUTHORIZATION,"player",t.bind(function(e){g=(new Date).getTime()},this)),this.mb.subscribe(e.EVENTS.AUTHORIZATION_FETCHED,"player",t.bind(function(e,t){if(t.debug_data&&t.debug_data.user_info){var i=(new Date).getTime(),n=(i-g-t.debug_data.server_latency)/2;N=1e3*t.debug_data.user_info.request_timestamp+n-i}},this)),this.mb.subscribe(e.EVENTS.VC_CREATE_VIDEO_ELEMENT,"player",t.bind(function(t,i,n,a,r){i===e.VIDEO.MAIN&&(A=!!n&&n.isLive)},this)),this.mb.subscribe(e.EVENTS.PLAYHEAD_TIME_CHANGED,"player",t.bind(function(e,t,i,n){h=t,i&&(E=i),f=n,v||(v=(new Date).getTime())},this)),this.mb.subscribe(e.EVENTS.DOWNLOADING,"player",t.bind(function(e,t,i,n){h=t,i&&(E=i),f=n},this)),this.mb.subscribe(e.EVENTS.FULLSCREEN_CHANGED,"player",t.bind(function(e,t){D=t},this)),this.mb.subscribe(e.EVENTS.ERROR,"player",t.bind(function(t,i){S=i,I=e.STATE.ERROR,d=!1},this)),this.mb.subscribe(e.EVENTS.VOLUME_CHANGED,"player",t.bind(function(e,t){C=t},this)),this.mb.subscribe(e.EVENTS.SAVE_PLAYER_SETTINGS,"player",t.bind(function(i,n){t.extend(this.persistentSettings.closedCaptionOptions,n.closedCaptionOptions);var a=JSON.stringify(this.persistentSettings);e.setItem(e.CONSTANTS.OOYALA_PLAYER_SETTINGS_KEY,a)},this)),this.mb.subscribe(e.EVENTS.SET_EMBED_CODE,"player",t.bind(function(e,i,n){this.parameters=t.extend(this.parameters,n),n.isAd||B()},this)),this.mb.subscribe(e.EVENTS.SET_ASSET,"player",t.bind(function(e,i,n){this.parameters=t.extend(this.parameters,n),B()},this)),this.mb.subscribe(e.EVENTS.ASSET_CHANGED,"player",t.bind(function(e,t){T=t.content,E=T.duration},this)),this.mb.subscribe(e.EVENTS.DESTROY,"player",t.bind(function(t,i){I=e.STATE.DESTROYED},this)),this.mb.subscribe(e.EVENTS.BITRATE_INFO_AVAILABLE,"player",t.bind(function(e,t){_=t.bitrates},this)),this.mb.subscribe(e.EVENTS.BITRATE_CHANGED,"player",t.bind(function(e,t){O=t},this)),this.mb.subscribe(e.EVENTS.CLOSED_CAPTIONS_INFO_AVAILABLE,"player",t.bind(function(e,t){y=t},this)),this.mb.subscribe(e.EVENTS.SET_CLOSED_CAPTIONS_LANGUAGE,"player",function(e,t){m.enabled=Boolean(t),m.enabled&&(m.language=t)}),this.setEmbedCode=function(t,i){!this.hevcChecked&&e.isHevcEnabled(i)?(w=t,k=i):this.mb.publish(e.EVENTS.SET_EMBED_CODE,t,i||{},!0)},this.setAsset=function(t,i){this.mb.publish(e.EVENTS.SET_ASSET,t,i||{},!0)},this.mute=function(){this.mb.publish(e.EVENTS.CHANGE_MUTE_STATE,!0,null,!1)},this.unmute=function(t){var i=!1;"boolean"==typeof t&&(i=t),this.mb.publish(e.EVENTS.CHANGE_MUTE_STATE,!1,null,i)},this.play=function(){I!==e.STATE.ERROR&&(c?L?this.mb.publish(e.EVENTS.REPLAY):b?this.mb.publish(e.EVENTS.PLAY):this.mb.publish(e.EVENTS.INITIAL_PLAY,Date.now(),!1):R=!0)},this.pause=function(){this.mb.publish(e.EVENTS.PAUSE)},this.setPlaybackSpeed=function(t){return!!e.isValidPlaybackSpeed(t)&&(this.mb.publish(e.EVENTS.SET_PLAYBACK_SPEED,t),!0)},this.seek=function(t){L?this.mb.publish(e.EVENTS.REPLAY,t):this.mb.publish(e.EVENTS.SEEK,t)},this.setVolume=function(t){this.mb.publish(e.EVENTS.CHANGE_VOLUME,t)},this.destroy=t.bind(function(t){t&&"function"==typeof t&&(P=t),this.mb.publish(e.EVENTS.DESTROY)},this),this.triggerDestroyCallback=function(){P&&(P(),P=null)},this.updateAsset=function(t){this.mb.publish(e.EVENTS.UPDATE_ASSET,t)},this.getPlayheadTime=function(){return h},this.getLiveTime=function(){return new Date(v+1e3*h+N)},this.getDuration=function(){return A?1/0:E},this.isAutoplayBlocked=function(){var t=this;return new Promise(function(i){try{e.checkAutoplay.runTest(function(n,a){e.log("Autoplay state checked",a),t.mb.publish(e.EVENTS.AUTOPLAY_STATE_CHECKED,a),i(a)})}catch(a){var n=e.CONSTANTS.AUTOPLAY_STATE.ALL_BLOCKED;e.log("Autoplay state check failed with",a),t.mb.publish(e.EVENTS.AUTOPLAY_STATE_CHECKED,n),i(n)}})},this.getAdDuration=function(){return p},this.getBufferLength=function(){return f},this.getItem=function(){return T},this.getDescription=function(){return T?T.description:null},this.getEmbedCode=function(){return T?T.embedCode||T.embed_code||"":null},this.getTitle=function(){return T?T.title:null},this.isFullscreen=function(){return D},this.getErrorCode=function(){return null!=S?S.code:null},this.getState=function(){return I},this.getVolume=function(){return C},this.skipAd=function(){this.mb.publish(e.EVENTS.SKIP_AD)},this.getBitratesAvailable=function(){return _},this.getCurrentBitrate=function(){return O},this.setTargetBitrate=function(t){this.mb.publish(e.EVENTS.SEND_QUALITY_CHANGE,t),this.mb.publish(e.EVENTS.SET_TARGET_BITRATE,t)},this.getCurrentItemClosedCaptionsLanguages=function(){return y},this.setClosedCaptionsLanguage=function(t){if(t){var i={forceEnabled:!m.enabled};this.mb.publish(e.EVENTS.CHANGE_CLOSED_CAPTION_LANGUAGE,t,i)}},this.getClosedCaptionOptions=function(){return{closedCaptionsEnabled:m.enabled,availableLanguages:y.languages,currentCCLanguage:m.language}},this.toggleClosedCaptions=function(){o.mb.publish(e.EVENTS.TOGGLE_CLOSED_CAPTIONS)},this.subscribe=function(e,i,n){this.mb.subscribe(e,i,function(){var e=t.toArray(arguments);e.unshift(n),t.defer.apply(this,e)})},this.getVersion=function(){return e.VERSION.version},this.getElementId=function(){return l},this.isPlaying=function(){return d},this.isAdPlaying=function(){return u}}}(OO,OO._,OO.$)},{}],54:[function(e,t,i){"use strict";!function(e,t,i){e.modules=[],e.registerModule=function(t,i){if(e.trackingLevel===e.TRACKING_LEVEL.DISABLED&&e.TRACKING_MODULES.indexOf(t)>-1)e.log("Core: Registration was aborted for module "+t+" due to tracking restrictions.");else{var n=e.HM.safeDomId("moduleName",t,e.HM.fixDomId),a=e.HM.safeFunction("moduleFactoryMethod",i);e.modules.push({name:n,factory:a})}},e.plugin=function(t,i){e.log("Registered optional plugin: ",t),e.registerModule(t,function(t,n){return new(i.apply({},[e,e._,e.$,window]))(t,n)})},e.exposeStaticApi=function(t,i){var n=e.HM.safeDomId("apiModule",t),a=e.HM.safeObject("apiObject",i);e.publicApi[n]=e.publicApi[n]||{},e._.extend(e.publicApi[n],a)}}(OO,OO._,OO.$)},{}],55:[function(e,t,i){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault")(e("@babel/runtime/helpers/typeof"));!function(e,t){e.StateMachine={create:function(i){var a,r=e.HM.safeObject("statemachine.create.cfg",i),s=e.HM.safeDomId("statemachine.create.cfg.initial",r.initial),o=e.HM.safeObject("statemachine.create.cfg.target",r.target,{}),l=e.HM.safeArrayOfElements("statemachine.create.cfg.events",r.events,function(t){return e.HM.safeObject("statemachine.create.cfg.events[]",t)},[]),c=e.HM.safeString("statemachine.create.cfg.moduleName",r.moduleName,""),u=e.HM.safeObject("statemachine.create.cfg.messageBus",r.messageBus),d={};o.debugTransitions=!1;var h="";e.StateMachine.addToActiveList(r.moduleName,o);var A=function(t){var i=null,n=t.replace(/[^\/]*\//,"").match(/^(.)(.*)/),a="on"+n[1].toUpperCase()+n[2];if(o[a])i=o[a];else{var r=t.replace(/\/.*/,"").match(/^(.)(.*)/),s="on"+r[1].toUpperCase()+r[2]+n[1].toUpperCase()+n[2];o[s]&&(i=o[s])}if(i)try{return!1!==i.apply(o,arguments)?"ok":"fail"}catch(t){if(e.log(t),e.TEST_TEST_TEST)throw t;return"fail"}return"not_found"},E=function(e){var t,i=e.from instanceof Array?e.from:e.from?[e.from]:["*"];for(d[e.name]=d[e.name]||{},t=0;t<i.length;t++)d[e.name][i[t]]=e.to||i[t]};o.removeEvent=function(e){d[e]&&(d[e]=null)},o.destroyFsm=function(){for(a in e.StateMachine.removeFromActiveList(this.moduleName,this),d)u.unsubscribe(a.toString(),c,o.receive);r=null,s=null,o=null,l=null,c=null,u=null,d={}};var p=function(t,i){t&&"*"!==i&&(t.debugTransitions&&e.log("Transition "+(c||"")+"\n  OldState: "+(t.currentState?t.currentState:"")+"\n  NewState: "+(i||"")+"\n  CausedBy: "+(h||"")),t.currentState=i)};for(o.canReceive=function(e){return d[e]&&(d[e].hasOwnProperty(o.currentState)||d[e].hasOwnProperty("*"))},o.receive=function(i){if(o)if(o.canReceive(i)){h=arguments[0];var n=o.currentState,a=d[i][n]||d[i]["*"]||n;if(n!==a){p(o,a);var r="not_found";switch("*"!==a&&(r=A.apply(o,t.union([a],t.rest(arguments)))),"not_found"===r&&(r=A.apply(o,arguments)),r){case"not_found":e.log("Module '"+c+"' does not handle state '"+a+"' or event '"+arguments[0]+"'"),p(o,n);break;case"fail":p(o,n)}}else A.apply(o,arguments)}else e.log("dropped event '"+arguments[0]+"' for '"+c+"' while in state '"+o.currentState+"' with map:",d)},a=0;a<l.length;a++)"object"===(0,n.default)(l[a])&&E(l[a]);if(p(o,s),void 0!==u)for(a in d)u.subscribe(a.toString(),c,o.receive);return o},activeStateMachines:{},addToActiveList:function(e,t){this.activeStateMachines[e]||(this.activeStateMachines[e]=[]),this.activeStateMachines[e].push(t)},removeFromActiveList:function(e,t){var i=this.activeStateMachines[e];if(i)for(var n=0;n<i.length;n++)if(i[n]===t){i.splice(n,1);break}},startDebugTransitionsFor:function(e){return this.debugTransitionsHelper(e,!0)?"STATEMACHINE '"+e+"' DEBUGGING STARTED":"Couldn't find '"+e+"'"},stopDebugTransitionsFor:function(e){return this.debugTransitionsHelper(e,!1)?"STATEMACHINE '"+e+"' DEBUGGING STOPPED":"Couldn't find '"+e+"'"},debugTransitionsHelper:function(e,t){var i=this.activeStateMachines[e];if(!i)return!1;for(var n=0;n<i.length;n++)i[n].debugTransitions=t;return!0},getActiveList:function(){var e={};for(var t in this.activeStateMachines)e[t]=this.activeStateMachines[t].length;return e},__end_marker:!0}}(OO,OO._)},{"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/typeof":18}],56:[function(e,t,i){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),a=n(e("@babel/runtime/helpers/typeof")),r=n(e("@babel/runtime/helpers/slicedToArray"));!function(e,t,i){e.canAutoplay=function(){var t="data:video/mp4;base64,AAAAHGZ0eXBpc29tAAACAGlzb21pc28ybXA0MQAAAAhmcmVlAAALl21kYXQAAAMRJgGvHYCh+rRXrzsdF9OQ5sh6IUZVTbyUH1TYc9eQ5kYBqfbDfH2M5v71r9vJSjxNUUON5TCnZyZh+hxfdR9bgRVQkfi8f9fXf0JglIlP6t46usUo9ioTIvqfewozMNadUuHkUisjCSA0FXb9FBpztGmCtQqeIsvh7yfEYBOEzNm1c1FrOrc2UduY1ZJv8Ij2xWZoIGQcRgA2bPr7ykA0aQu2eXLGvLrF8ZSdktns6UXrvYY00LIOodKhFrsz6YYTjWwzDetgzC3KPCEnOYuxbu2xm43OhS/pHAlf9tlSSRoJx8TTwBpgTcQbrtaqVTSQAu+7FHXB2HkZG4bEZg8Gm4zkjMLCo47TPJ/CfAy4zWXLsZAZr0jGDydkNewLwRikhLIuel01AZH+lW3kO+YYP409hXSCu90OCly97bSYqbBYpa72JOvFhmKebViOP080hLrQ/lGzHOV7CW1TrXY5JAQrfz2cdpmH/pcFLr+VwvRPJzhDo6LM0GWELCApILayF4ag6eOncqhSW1+gVp2iNjOlx8tUFmCL8ZfdOG6FsekMj9nkSmhRuuZaOCeLB/fqc/gKoDVIO3EjK9ErHs1XQOqeNxVwFsB7rz1h9TTV6t3/3qLNnBxIjl2E3v24Gmy5bZncjU7CmMl8o5nfaYy23B0BDqvRBwI2RGnV21dunF7CyZRxTHQVe0uuwes2ePGVdfBl2U/Bt3ntG2z21MFiXkN0MwpiZYsR6maapbTXTxGEiVa9O3NcpjATS0AFVHzcDBO5k6DTVPn6llDGr1xGe9zyfb1VaJfWYiK0CSGRiGfkpSe3w4yddULOTLYS+7t6KttCXuZIxNg9MWBekV6iAeYHgQNhZiMY++tRNois/cEixZVMTtaJqafcubkHlLqO1Qdk4V0rCxS8VI/Yrwu9cb6u6XIN8emW92YkyRXZlOzZ7vDptz8ZqxlTtkNistfCcIB5+ECLhUbZ+MIqiyju61wHPKatY6rZEiH/TFY/c2JWYgmJPcVJSYbhzh1ictew8YhBv5w+3B/9zA3cD4Y87dwAAAB7AgHQKUvBDCDknQwMwyznK16ybbK58f4zdJvWIpTxMEBYlESWfEba4x/4AZwvXFJvYaXeYeyziD6qyFesKwEuL3SDHdh1AIoYosdbXUl4UZWhi3f1iILFuCghJnYZz1SRJhJK0VUxpuE8ztSA4uQXXYw8SmSc3DXMiTD4AAAAEAIB4GSdcCBB4IBoGMwFrsAAAAAQAAHgJPVZokCm5L7EAt3HIAAAAAwAAeBE11miQKLu53QAAAAMAAHghrflQgUwk1KAAAAA4QIB0FCS1fXEMAg5q1JHiGvrjLlBWFggBq1i3Wv3WeiiPbWpyxS2KOx/Qg+W8RAsAHbwyOhETI9aYEHbRtZ0GCC/NbFtmnfGMGGn6VdWj7bsDTnuTZirVKRUcChflUHyaLhVc54GO7OvhQLb8NGFxR+p6GsvCoGhzi+ZLKA9sc+m0Yt1azhLkPyOT8f4PRDTLg0FuGuCYBodg3uBCxH12aMVTgHF8CxR2jc1mvlXbu0RRJQzCXWc7hy2xKqVg6bDNzu75TX01l2csQlrm3SuoJRoGjE2rn7NbLYXmOqIMqw8jwAAABICAeECJ1ddcIEE3yEq1A5k84AAAAAOAAHgwj1dVlokCmCTUoAAAAASAAHg4jVX1lokCiBDybePM1twAAAADQAB4SKt1flwgUyTUoAAAAAaAgHQWN1dX1xDAIOwluVtntqoufg+5WPtikwAAABqAgHQeNJ1ddcQwCDk/lFkKk/qlPlZlN6NiV7m/ymkHztxrqFqf3OWPOMC3pKHbGh+5gIvudQTTXndRwDnk8AxB+/PhgCHrzBiEv5T9Zd7A48wXaOrBQmoq1hgyR7wMCJQbD+T+dVycQy6WAAAABICAeGipdS1lwgQQPOajw3cSlAAAAAQAAHhgj9dZaJAojw09gjewAAAAA0AAeHCrXXlwgUw7ud0AAAAHAIB0JDXVddcQwCDsGkyL7oLlRzAVpH5qSX05FQAAAAOAgHiIqVVf1wgQ+mpmsIAAAANAAHiAj1X5aJAou7ndAAAAGsCAdC40vVV1z4GiDmvPRMMtWfoNTXZjOkbl89TTlTtZFDiv1YrxLoy4Neym5M0VFiUTRa0yLPo2ZzXMJ3pmmLLbcfq2HjuGErGpB1cO6Pts588MYZSJmNs5A+V4N7is7C+TcCBcdMEBF3hywAAABMCAeKip9VXXCBB/sTrh7xmOjAFAAAAEAAB4mI/JVdaJApgL2665CcAAAAQAAHigjXJ11okCiAvbrVgkwAAACIAAeLCrfJ9cIFM9+IaT1CP4IgkFrEODfmTIqc//sF6kUNHAAADOioBrGBsjRHGYLDH3TXdmAexNEEI/lFVpm37he9h94H4YPgoZYwdOPFHPl7pMMOwiVwOuiRl86GtfkysComKlEYKV2zlHElYJaEgnYia4zEqG3RiQeY+CZsOoKJV9Gv9sdh2ZKtZ+nS0vwMWHgW8j/J5I6vQlsh3n8IoXMvR7m9SdfwbSqalOgPkx2XX/aLFVTOBjpV0YazzwgraqgW8MCSBKnbYYaipCdlU/naAHns1rh4uTXHuCZo4+2IeA5vYJbfKWq963KMapbAo1MWiKSW1SVM6nnoJzijuw+WoOXn9N+5mfnbAKaDxV/U7tlMAORiFd45QqtjfmX3QO+wA1AOvtsK2b2i1btFBQE+jp0bgIdatIecG+UBr5I/EPch+6s+S6rQ942uGLYbCl6ivSaoPt+2NKYLEETqlHlUlGuc9efZj4GpPpN5DveT/N+Iybtv05pmk0JDNj65MldO8gpqiVQIHz+gRkp6iMfERioai6AdmjGRtxV4oX6gUYvKNJSBc0AQX5l1cqKBlpQHxdjAzr936nyiETd5NRHkneidrJyxVj2H7wr/ymFvx2mRCL5wKOz9UmT/mxRteWEVRYCzKLOudsDNQ8bvCK/ETACopuhaxxAC76nx9/49pTNLlRKWp0twGGSOmlIt/WugcEtwNt4TgNFMk3/fEZSeGHVrHXv3GnrvZ05VQznR8pnc9v5MF+4KPcaHTUPTdM7eQx6fdL/TL24nTvnE3idhSNx3vvcD6W0WBDNSoc/fZgDZ/PqadsQez6sFotbmwWHEnlVn9x0Ae21IU3MYhcBFh/dCQICxL/NWieTD/D/w2RV78lMfSTZ/gNDEx9fGLf0g9E000QUc+UZ92JE+hvF3WPHO7bamxh2Vp6lAogMVhwQ8XLYR8mbL8rqcxlugvAvi6IhGw7T6SN4jJiZ4sfF2ArEx6d5qbLxQjdgxPuc6V1I0s18fK3mhVpC9JLGUHOWo3kaeCwuJ5bSoETClOF3SLcQgnXEr3gZJ7BhYdb7XAkMqIdoUsT8CcCIz6DX1vWtad2PeSmUejWGK/2gmentwIIo0R1syHR+DSNS3rTS8FPMucOqPd+AdTueg/m4AAAADCAgHQ6UvhDCDkrDUmT1MeQXkhvW7sPKLELfLhpA6HdslJsP7R6x6/I7bb3c1dRChK55f9Qjj7GVMJdkyC0s59awYPGguErC15TAAMTMLnsmxTB2kwShgrGZ0sODar3kxY9jOzjraQLjCPC+UGQFhjXqEIcxk12j+CD0kx2ySUCKsadNeR32WKhr2a0J05wh6RbVzZ1PDlrHEzSuM2TNJrnP7HUVo/+aLbABVaAYQfYoIRdvOQE5fZxByfZ5n1eKAb78AAAABbAgHjZJ1wIEP+jqco37lyuyi9BWTm5gY+vnx4mocxOuHP1QwmtevSxuPsy16LhMrJngT4pEg3knXILN+P48ngp+hGhnGWuVBhd3YeUCrbReOBk7jlRV2e2i5LbwAAAA8AAeMk9V2iQKbg57h1QoAAAAAUAAHjRNddokCm4RHV8ktW2o70/WsAAAAPAAHjhrf1QgUw4R74nbNgAAAIcW1vb3YAAABsbXZoZAAAAAAAAAAAAAAAAAAAA+gAAATiAAEAAAEAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAebdHJhawAAAFx0a2hkAAAAAwAAAAAAAAAAAAAAAQAAAAAAAATiAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAQAAAAABCAAAAQgAAAAAAJGVkdHMAAAAcZWxzdAAAAAAAAAABAAAE4gAABAAAAQAAAAAHE21kaWEAAAAgbWRoZAAAAAAAAAAAAAAAAAAAMAAAADwAVcQAAAAAAC1oZGxyAAAAAAAAAAB2aWRlAAAAAAAAAAAAAAAAVmlkZW9IYW5kbGVyAAAABr5taW5mAAAAFHZtaGQAAAABAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAAZ+c3RibAAABKpzdHNkAAAAAAAAAAEAAASaaGV2MQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAABCAEIASAAAAEgAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABj//wAABDpodmNDAQFgAAAAkAAAAAAAHvAA/P34+AAADwQgAAEAGEABDAH//wFgAAADAJAAAAMAAAMAHpmYCSEAAQApQgEBAWAAAAMAkAAAAwAAAwAeoCSBJySZZmaSTK4BAAADAAEAAAMAGAgiAAEAB0QBwXK0IkAnAAEDv04BBf///7osot4JtRdH27tVpP5/wvxOeDI2NSAoYnVpbGQgODApIC0gMS45KzctZGM2MmI0N2RkMGQ5OltNYWMgT1MgWF1bY2xhbmcgNC4yLjBdWzY0IGJpdF0gOGJpdCAtIEguMjY1L0hFVkMgY29kZWMgLSBDb3B5cmlnaHQgMjAxMy0yMDE1IChjKSBNdWx0aWNvcmV3YXJlIEluYyAtIGh0dHA6Ly94MjY1Lm9yZyAtIG9wdGlvbnM6IDcyeDcyIGZwcz0yNC8xIGJpdGRlcHRoPTggbm8td3BwIGN0dT02NCBtaW4tY3Utc2l6ZT04IG1heC10dS1zaXplPTMyIHR1LWludHJhLWRlcHRoPTEgdHUtaW50ZXItZGVwdGg9MSBtZT0xIHN1Ym1lPTIgbWVyYW5nZT01NyBuby1yZWN0IG5vLWFtcCBtYXgtbWVyZ2U9MiB0ZW1wb3JhbC1tdnAgbm8tZWFybHktc2tpcCByZHBlbmFsdHk9MCBuby10c2tpcCBuby10c2tpcC1mYXN0IHN0cm9uZy1pbnRyYS1zbW9vdGhpbmcgbm8tbG9zc2xlc3Mgbm8tY3UtbG9zc2xlc3Mgbm8tY29uc3RyYWluZWQtaW50cmEgbm8tZmFzdC1pbnRyYSBvcGVuLWdvcCBuby10ZW1wb3JhbC1sYXllcnMgaW50ZXJsYWNlPTAga2V5aW50PTI1MCBtaW4ta2V5aW50PTI0IHNjZW5lY3V0PTQwIHJjLWxvb2thaGVhZD0yMCBsb29rYWhlYWQtc2xpY2VzPTAgYmZyYW1lcz00IGJmcmFtZS1iaWFzPTAgYi1hZGFwdD0yIHJlZj0zIGxpbWl0LXJlZnM9MyBuby1saW1pdC1tb2RlcyB3ZWlnaHRwIG5vLXdlaWdodGIgYXEtbW9kZT0xIHFnLXNpemU9MzIgYXEtc3RyZW5ndGg9MS4wMCBjYnFwb2Zmcz0wIGNycXBvZmZzPTAgcmQ9MyBwc3ktcmQ9Mi4wMCByZG9xLWxldmVsPTAgcHN5LXJkb3E9MC4wMCBuby1yZC1yZWZpbmUgc2lnbmhpZGUgZGVibG9jayBzYW8gbm8tc2FvLW5vbi1kZWJsb2NrIGItcHlyYW1pZCBjdXRyZWUgbm8taW50cmEtcmVmcmVzaCByYz1jcmYgY3JmPTI4LjAgcWNvbXA9MC42MCBxcG1pbj0wIHFwbWF4PTUxIHFwc3RlcD00IGlwcmF0aW89MS40MCBwYnJhdGlvPTEuMzCAAAAACmZpZWwBAAAAABhzdHRzAAAAAAAAAAEAAAAeAAACAAAAABhzdHNzAAAAAAAAAAIAAAABAAAAGQAAAOBjdHRzAAAAAAAAABoAAAABAAAEAAAAAAEAAAwAAAAAAQAABgAAAAACAAAAAAAAAAEAAAIAAAAAAQAADAAAAAABAAAGAAAAAAIAAAAAAAAAAQAAAgAAAAABAAAEAAAAAAEAAAoAAAAAAQAABAAAAAABAAAAAAAAAAEAAAIAAAAAAQAACAAAAAABAAAEAAAAAAEAAAAAAAAAAQAADAAAAAABAAAGAAAAAAIAAAAAAAAAAQAAAgAAAAABAAAEAAAAAAEAAAwAAAAAAQAABgAAAAACAAAAAAAAAAEAAAIAAAAAHHN0c2MAAAAAAAAAAQAAAAEAAAAeAAAAAQAAAIxzdHN6AAAAAAAAAAAAAAAeAAADFQAAAH8AAAAUAAAAFAAAABAAAAAQAAAA5QAAABYAAAASAAAAFgAAABEAAAAeAAAAbgAAABYAAAAUAAAAEQAAACAAAAASAAAAEQAAAG8AAAAXAAAAFAAAABQAAAAmAAADPgAAAMYAAABfAAAAEwAAABgAAAATAAAAFHN0Y28AAAAAAAAAAQAAACwAAABidWR0YQAAAFptZXRhAAAAAAAAACFoZGxyAAAAAAAAAABtZGlyYXBwbAAAAAAAAAAAAAAAAC1pbHN0AAAAJal0b28AAAAdZGF0YQAAAAEAAAAATGF2ZjU2LjQwLjEwMQ==",i="data:video/mp4;base64,AAAAHGZ0eXBpc29tAAACAGlzb21pc28ybXA0MQAAAAhmcmVlAAALl21kYXQAAAMRJgGvHYCh+rRXrzsdF9OQ5sh6IUZVTbyUH1TYc9eQ5kYBqfbDfH2M5v71r9vJSjxNUUON5TCnZyZh+hxfdR9bgRVQkfi8f9fXf0JglIlP6t46usUo9ioTIvqfewozMNadUuHkUisjCSA0FXb9FBpztGmCtQqeIsvh7yfEYBOEzNm1c1FrOrc2UduY1ZJv8Ij2xWZoIGQcRgA2bPr7ykA0aQu2eXLGvLrF8ZSdktns6UXrvYY00LIOodKhFrsz6YYTjWwzDetgzC3KPCEnOYuxbu2xm43OhS/pHAlf9tlSSRoJx8TTwBpgTcQbrtaqVTSQAu+7FHXB2HkZG4bEZg8Gm4zkjMLCo47TPJ/CfAy4zWXLsZAZr0jGDydkNewLwRikhLIuel01AZH+lW3kO+YYP409hXSCu90OCly97bSYqbBYpa72JOvFhmKebViOP080hLrQ/lGzHOV7CW1TrXY5JAQrfz2cdpmH/pcFLr+VwvRPJzhDo6LM0GWELCApILayF4ag6eOncqhSW1+gVp2iNjOlx8tUFmCL8ZfdOG6FsekMj9nkSmhRuuZaOCeLB/fqc/gKoDVIO3EjK9ErHs1XQOqeNxVwFsB7rz1h9TTV6t3/3qLNnBxIjl2E3v24Gmy5bZncjU7CmMl8o5nfaYy23B0BDqvRBwI2RGnV21dunF7CyZRxTHQVe0uuwes2ePGVdfBl2U/Bt3ntG2z21MFiXkN0MwpiZYsR6maapbTXTxGEiVa9O3NcpjATS0AFVHzcDBO5k6DTVPn6llDGr1xGe9zyfb1VaJfWYiK0CSGRiGfkpSe3w4yddULOTLYS+7t6KttCXuZIxNg9MWBekV6iAeYHgQNhZiMY++tRNois/cEixZVMTtaJqafcubkHlLqO1Qdk4V0rCxS8VI/Yrwu9cb6u6XIN8emW92YkyRXZlOzZ7vDptz8ZqxlTtkNistfCcIB5+ECLhUbZ+MIqiyju61wHPKatY6rZEiH/TFY/c2JWYgmJPcVJSYbhzh1ictew8YhBv5w+3B/9zA3cD4Y87dwAAAB7AgHQKUvBDCDknQwMwyznK16ybbK58f4zdJvWIpTxMEBYlESWfEba4x/4AZwvXFJvYaXeYeyziD6qyFesKwEuL3SDHdh1AIoYosdbXUl4UZWhi3f1iILFuCghJnYZz1SRJhJK0VUxpuE8ztSA4uQXXYw8SmSc3DXMiTD4AAAAEAIB4GSdcCBB4IBoGMwFrsAAAAAQAAHgJPVZokCm5L7EAt3HIAAAAAwAAeBE11miQKLu53QAAAAMAAHghrflQgUwk1KAAAAA4QIB0FCS1fXEMAg5q1JHiGvrjLlBWFggBq1i3Wv3WeiiPbWpyxS2KOx/Qg+W8RAsAHbwyOhETI9aYEHbRtZ0GCC/NbFtmnfGMGGn6VdWj7bsDTnuTZirVKRUcChflUHyaLhVc54GO7OvhQLb8NGFxR+p6GsvCoGhzi+ZLKA9sc+m0Yt1azhLkPyOT8f4PRDTLg0FuGuCYBodg3uBCxH12aMVTgHF8CxR2jc1mvlXbu0RRJQzCXWc7hy2xKqVg6bDNzu75TX01l2csQlrm3SuoJRoGjE2rn7NbLYXmOqIMqw8jwAAABICAeECJ1ddcIEE3yEq1A5k84AAAAAOAAHgwj1dVlokCmCTUoAAAAASAAHg4jVX1lokCiBDybePM1twAAAADQAB4SKt1flwgUyTUoAAAAAaAgHQWN1dX1xDAIOwluVtntqoufg+5WPtikwAAABqAgHQeNJ1ddcQwCDk/lFkKk/qlPlZlN6NiV7m/ymkHztxrqFqf3OWPOMC3pKHbGh+5gIvudQTTXndRwDnk8AxB+/PhgCHrzBiEv5T9Zd7A48wXaOrBQmoq1hgyR7wMCJQbD+T+dVycQy6WAAAABICAeGipdS1lwgQQPOajw3cSlAAAAAQAAHhgj9dZaJAojw09gjewAAAAA0AAeHCrXXlwgUw7ud0AAAAHAIB0JDXVddcQwCDsGkyL7oLlRzAVpH5qSX05FQAAAAOAgHiIqVVf1wgQ+mpmsIAAAANAAHiAj1X5aJAou7ndAAAAGsCAdC40vVV1z4GiDmvPRMMtWfoNTXZjOkbl89TTlTtZFDiv1YrxLoy4Neym5M0VFiUTRa0yLPo2ZzXMJ3pmmLLbcfq2HjuGErGpB1cO6Pts588MYZSJmNs5A+V4N7is7C+TcCBcdMEBF3hywAAABMCAeKip9VXXCBB/sTrh7xmOjAFAAAAEAAB4mI/JVdaJApgL2665CcAAAAQAAHigjXJ11okCiAvbrVgkwAAACIAAeLCrfJ9cIFM9+IaT1CP4IgkFrEODfmTIqc//sF6kUNHAAADOioBrGBsjRHGYLDH3TXdmAexNEEI/lFVpm37he9h94H4YPgoZYwdOPFHPl7pMMOwiVwOuiRl86GtfkysComKlEYKV2zlHElYJaEgnYia4zEqG3RiQeY+CZsOoKJV9Gv9sdh2ZKtZ+nS0vwMWHgW8j/J5I6vQlsh3n8IoXMvR7m9SdfwbSqalOgPkx2XX/aLFVTOBjpV0YazzwgraqgW8MCSBKnbYYaipCdlU/naAHns1rh4uTXHuCZo4+2IeA5vYJbfKWq963KMapbAo1MWiKSW1SVM6nnoJzijuw+WoOXn9N+5mfnbAKaDxV/U7tlMAORiFd45QqtjfmX3QO+wA1AOvtsK2b2i1btFBQE+jp0bgIdatIecG+UBr5I/EPch+6s+S6rQ942uGLYbCl6ivSaoPt+2NKYLEETqlHlUlGuc9efZj4GpPpN5DveT/N+Iybtv05pmk0JDNj65MldO8gpqiVQIHz+gRkp6iMfERioai6AdmjGRtxV4oX6gUYvKNJSBc0AQX5l1cqKBlpQHxdjAzr936nyiETd5NRHkneidrJyxVj2H7wr/ymFvx2mRCL5wKOz9UmT/mxRteWEVRYCzKLOudsDNQ8bvCK/ETACopuhaxxAC76nx9/49pTNLlRKWp0twGGSOmlIt/WugcEtwNt4TgNFMk3/fEZSeGHVrHXv3GnrvZ05VQznR8pnc9v5MF+4KPcaHTUPTdM7eQx6fdL/TL24nTvnE3idhSNx3vvcD6W0WBDNSoc/fZgDZ/PqadsQez6sFotbmwWHEnlVn9x0Ae21IU3MYhcBFh/dCQICxL/NWieTD/D/w2RV78lMfSTZ/gNDEx9fGLf0g9E000QUc+UZ92JE+hvF3WPHO7bamxh2Vp6lAogMVhwQ8XLYR8mbL8rqcxlugvAvi6IhGw7T6SN4jJiZ4sfF2ArEx6d5qbLxQjdgxPuc6V1I0s18fK3mhVpC9JLGUHOWo3kaeCwuJ5bSoETClOF3SLcQgnXEr3gZJ7BhYdb7XAkMqIdoUsT8CcCIz6DX1vWtad2PeSmUejWGK/2gmentwIIo0R1syHR+DSNS3rTS8FPMucOqPd+AdTueg/m4AAAADCAgHQ6UvhDCDkrDUmT1MeQXkhvW7sPKLELfLhpA6HdslJsP7R6x6/I7bb3c1dRChK55f9Qjj7GVMJdkyC0s59awYPGguErC15TAAMTMLnsmxTB2kwShgrGZ0sODar3kxY9jOzjraQLjCPC+UGQFhjXqEIcxk12j+CD0kx2ySUCKsadNeR32WKhr2a0J05wh6RbVzZ1PDlrHEzSuM2TNJrnP7HUVo/+aLbABVaAYQfYoIRdvOQE5fZxByfZ5n1eKAb78AAAABbAgHjZJ1wIEP+jqco37lyuyi9BWTm5gY+vnx4mocxOuHP1QwmtevSxuPsy16LhMrJngT4pEg3knXILN+P48ngp+hGhnGWuVBhd3YeUCrbReOBk7jlRV2e2i5LbwAAAA8AAeMk9V2iQKbg57h1QoAAAAAUAAHjRNddokCm4RHV8ktW2o70/WsAAAAPAAHjhrf1QgUw4R74nbNgAAAIcW1vb3YAAABsbXZoZAAAAAAAAAAAAAAAAAAAA+gAAATiAAEAAAEAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAebdHJhawAAAFx0a2hkAAAAAwAAAAAAAAAAAAAAAQAAAAAAAATiAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAQAAAAABCAAAAQgAAAAAAJGVkdHMAAAAcZWxzdAAAAAAAAAABAAAE4gAABAAAAQAAAAAHE21kaWEAAAAgbWRoZAAAAAAAAAAAAAAAAAAAMAAAADwAVcQAAAAAAC1oZGxyAAAAAAAAAAB2aWRlAAAAAAAAAAAAAAAAVmlkZW9IYW5kbGVyAAAABr5taW5mAAAAFHZtaGQAAAABAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAAZ+c3RibAAABKpzdHNkAAAAAAAAAAEAAASaaHZjMQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAABCAEIASAAAAEgAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABj//wAABDpodmNDAQFgAAAAkAAAAAAAHvAA/P34+AAADwQgAAEAGEABDAH//wFgAAADAJAAAAMAAAMAHpmYCSEAAQApQgEBAWAAAAMAkAAAAwAAAwAeoCSBJySZZmaSTK4BAAADAAEAAAMAGAgiAAEAB0QBwXK0IkAnAAEDv04BBf///7osot4JtRdH27tVpP5/wvxOeDI2NSAoYnVpbGQgODApIC0gMS45KzctZGM2MmI0N2RkMGQ5OltNYWMgT1MgWF1bY2xhbmcgNC4yLjBdWzY0IGJpdF0gOGJpdCAtIEguMjY1L0hFVkMgY29kZWMgLSBDb3B5cmlnaHQgMjAxMy0yMDE1IChjKSBNdWx0aWNvcmV3YXJlIEluYyAtIGh0dHA6Ly94MjY1Lm9yZyAtIG9wdGlvbnM6IDcyeDcyIGZwcz0yNC8xIGJpdGRlcHRoPTggbm8td3BwIGN0dT02NCBtaW4tY3Utc2l6ZT04IG1heC10dS1zaXplPTMyIHR1LWludHJhLWRlcHRoPTEgdHUtaW50ZXItZGVwdGg9MSBtZT0xIHN1Ym1lPTIgbWVyYW5nZT01NyBuby1yZWN0IG5vLWFtcCBtYXgtbWVyZ2U9MiB0ZW1wb3JhbC1tdnAgbm8tZWFybHktc2tpcCByZHBlbmFsdHk9MCBuby10c2tpcCBuby10c2tpcC1mYXN0IHN0cm9uZy1pbnRyYS1zbW9vdGhpbmcgbm8tbG9zc2xlc3Mgbm8tY3UtbG9zc2xlc3Mgbm8tY29uc3RyYWluZWQtaW50cmEgbm8tZmFzdC1pbnRyYSBvcGVuLWdvcCBuby10ZW1wb3JhbC1sYXllcnMgaW50ZXJsYWNlPTAga2V5aW50PTI1MCBtaW4ta2V5aW50PTI0IHNjZW5lY3V0PTQwIHJjLWxvb2thaGVhZD0yMCBsb29rYWhlYWQtc2xpY2VzPTAgYmZyYW1lcz00IGJmcmFtZS1iaWFzPTAgYi1hZGFwdD0yIHJlZj0zIGxpbWl0LXJlZnM9MyBuby1saW1pdC1tb2RlcyB3ZWlnaHRwIG5vLXdlaWdodGIgYXEtbW9kZT0xIHFnLXNpemU9MzIgYXEtc3RyZW5ndGg9MS4wMCBjYnFwb2Zmcz0wIGNycXBvZmZzPTAgcmQ9MyBwc3ktcmQ9Mi4wMCByZG9xLWxldmVsPTAgcHN5LXJkb3E9MC4wMCBuby1yZC1yZWZpbmUgc2lnbmhpZGUgZGVibG9jayBzYW8gbm8tc2FvLW5vbi1kZWJsb2NrIGItcHlyYW1pZCBjdXRyZWUgbm8taW50cmEtcmVmcmVzaCByYz1jcmYgY3JmPTI4LjAgcWNvbXA9MC42MCBxcG1pbj0wIHFwbWF4PTUxIHFwc3RlcD00IGlwcmF0aW89MS40MCBwYnJhdGlvPTEuMzCAAAAACmZpZWwBAAAAABhzdHRzAAAAAAAAAAEAAAAeAAACAAAAABhzdHNzAAAAAAAAAAIAAAABAAAAGQAAAOBjdHRzAAAAAAAAABoAAAABAAAEAAAAAAEAAAwAAAAAAQAABgAAAAACAAAAAAAAAAEAAAIAAAAAAQAADAAAAAABAAAGAAAAAAIAAAAAAAAAAQAAAgAAAAABAAAEAAAAAAEAAAoAAAAAAQAABAAAAAABAAAAAAAAAAEAAAIAAAAAAQAACAAAAAABAAAEAAAAAAEAAAAAAAAAAQAADAAAAAABAAAGAAAAAAIAAAAAAAAAAQAAAgAAAAABAAAEAAAAAAEAAAwAAAAAAQAABgAAAAACAAAAAAAAAAEAAAIAAAAAHHN0c2MAAAAAAAAAAQAAAAEAAAAeAAAAAQAAAIxzdHN6AAAAAAAAAAAAAAAeAAADFQAAAH8AAAAUAAAAFAAAABAAAAAQAAAA5QAAABYAAAASAAAAFgAAABEAAAAeAAAAbgAAABYAAAAUAAAAEQAAACAAAAASAAAAEQAAAG8AAAAXAAAAFAAAABQAAAAmAAADPgAAAMYAAABfAAAAEwAAABgAAAATAAAAFHN0Y28AAAAAAAAAAQAAACwAAABidWR0YQAAAFptZXRhAAAAAAAAACFoZGxyAAAAAAAAAABtZGlyYXBwbAAAAAAAAAAAAAAAAC1pbHN0AAAAJal0b28AAAAdZGF0YQAAAAEAAAAATGF2ZjU3LjgzLjEwMA==",n="data:video/mp4;base64,AAAAHGZ0eXBpc29tAAACAGlzb21pc28ybXA0MQAAAAhmcmVlAAAC721kYXQhEAUgpBv/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3pwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcCEQBSCkG//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADengAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAsJtb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAALwABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAB7HRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAIAAAAAAAAALwAAAAAAAAAAAAAAAQEAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAC8AAAAAAAEAAAAAAWRtZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAAKxEAAAIAFXEAAAAAAAtaGRscgAAAAAAAAAAc291bgAAAAAAAAAAAAAAAFNvdW5kSGFuZGxlcgAAAAEPbWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAADTc3RibAAAAGdzdHNkAAAAAAAAAAEAAABXbXA0YQAAAAAAAAABAAAAAAAAAAAAAgAQAAAAAKxEAAAAAAAzZXNkcwAAAAADgICAIgACAASAgIAUQBUAAAAAAfQAAAHz+QWAgIACEhAGgICAAQIAAAAYc3R0cwAAAAAAAAABAAAAAgAABAAAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAIAAAABAAAAHHN0c3oAAAAAAAAAAAAAAAIAAAFzAAABdAAAABRzdGNvAAAAAAAAAAEAAAAsAAAAYnVkdGEAAABabWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAbWRpcmFwcGwAAAAAAAAAAAAAAAAtaWxzdAAAACWpdG9vAAAAHWRhdGEAAAABAAAAAExhdmY1Ni40MC4xMDE=";function a(t){return e._.extend({muted:!1,timeout:250,inline:!1,usePromise:!1},t)}function r(t,i,n){null==t&&(t=a({}));var r,s,o=t.muted,l=t.timeout,c=t.inline,u=t.usePromise&&!e.isIE&&!e.isEdge,d=n(),h=d.element,A=d.source,E=!1;h.muted=o,!0===o&&h.setAttribute("muted","muted"),!0===c&&h.setAttribute("playsinline","playsinline");var p=function(){h.pause&&h.pause(),h.src="",h.querySelectorAll&&Array.prototype.forEach.call(h.querySelectorAll("source")||[],function(e){e.remove&&e.remove()}),h.remove&&h.remove(),i&&i.apply(this,arguments)},f=function e(){clearTimeout(s),p({result:!1,error:h.error},d.type),h.removeEventListener("playing",T,!0),h.removeEventListener("error",e,!0)},T=function e(){clearTimeout(s),p({result:!0},d.type),h.removeEventListener("playing",e,!0),h.removeEventListener("error",f,!0)};h.src=A,s=setTimeout(function(){E=!0,clearTimeout(s),p({result:!1,error:new Error("Timeout "+l+" ms has been reached"),timedOut:!0},d.type),h.removeEventListener("playing",T,!0),h.removeEventListener("error",f,!0)},l),u||(h.addEventListener("playing",T,!0),h.addEventListener("error",f,!0)),"function"==typeof h.play?void 0!==(r=h.play())&&r.then(function(e){u&&!E&&T()},function(){u&&!E&&f()}):f()}return{playHev1:function(i,n){return r(a(i),n,function(){return{element:document.createElement("video"),source:t,type:e.CONSTANTS.HEVC_CODEC.HEV1}})},playHvc1:function(t,n){return r(a(t),n,function(){return{element:document.createElement("video"),source:i,type:e.CONSTANTS.HEVC_CODEC.HVC1}})},playVideo:function(e,t){return r(a(e),t,function(){return{element:document.createElement("video"),source:n}})}}}(),e.checkAutoplay=function(){return{runTest:function(i){if("function"==typeof i){var n={},a=e.CONSTANTS.AUTOPLAY_STATE.ALL_BLOCKED,r=!1,s=!1,o=!1,l=function(){o||(o=!0,i(n,a))},c={timeout:750,usePromise:!0};e.isIos&&(c.inline=!0);var u=t.clone(c);u.muted=!0,e.canAutoplay.playVideo(c,function(t){r=!0,t.timedOut||(n.unmuted=t.result),t.result?(n.muted=!0,a=e.CONSTANTS.AUTOPLAY_STATE.ALL_UNBLOCKED,l()):s&&(n.muted&&(a=e.CONSTANTS.AUTOPLAY_STATE.UNBLOCKED_WITHOUT_AUDIO),l())}),e.canAutoplay.playVideo(u,function(t){s=!0,t.timedOut||(n.muted=t.result),r&&(t.result&&(a=e.CONSTANTS.AUTOPLAY_STATE.UNBLOCKED_WITHOUT_AUDIO),l())})}}}}(),e.getRandomString=function(){return Math.random().toString(36).substring(7)},e.safeClone=function(n){if(t.isNumber(n)||t.isString(n)||t.isBoolean(n)||t.isFunction(n)||t.isNull(n)||t.isUndefined(n))return n;var a=n instanceof Array?[]:{};try{i.extend(!0,a,n)}catch(t){e.log("deep clone error",t)}return a},e.debug=function(){e.isDebug&&e.log.apply(e,arguments),e.$("#OOYALA_DEBUG_CONSOLE").append(JSON.stringify(e.safeClone(arguments))+"<br>")},e.inherit=function(t,i){if("function"!=typeof t)return e.log("invalid inherit, ParentClass need to be a class",t),null;var n=function(){t.apply(this,arguments),"function"==typeof i&&i.apply(this,arguments)},a=new t;return e._.extend(n.prototype,a),n.prototype.parentClass=a,n};var n={};e.attachStyle=function(e,t){var a=i('<style type="text/css">'+e+"</style>").appendTo("head");n[t]=n[t]||[],n[t].push(a)},e.removeStyles=function(t){e._.each(n[t],function(e){e.remove()})},e.getInnerProperty=function(e,i){for(var n=e,a=i;a.length>0;){var r=a.shift();if(t.isNull(n)||!t.isObject(n)||t.isFunction(n)||t.isArray(n))return null;n=n[r]}return n},e.checkHevcAvailability=function(t){var i={timeout:300,muted:!0};e.isIos&&(i.inline=!0),e.canAutoplay.playHev1(i,t),e.canAutoplay.playHvc1(i,t)},e.stripNonMp4Streams=function(e){for(var t=[],i=0;i<e.length;i++)"mp4"===e[i].delivery_type&&t.push(e[i]);return t},e.formatSeconds=function(e){var t=parseInt(e,10)%60,i=parseInt(e/3600,10),n=parseInt((e-3600*i)/60,10);return i<10&&(i="0"+i),n<10&&(n="0"+n),t<10&&(t="0"+t),parseInt(i,10)>0?i+":"+n+":"+t:n+":"+t},e.getMediaElementErrorFromCode=function(t){return{1:e.ERROR.MEDIA.MEDIA_ERR_ABORTED,2:e.ERROR.MEDIA.MEDIA_ERR_NETWORK,3:e.ERROR.MEDIA.MEDIA_ERR_DECODE,4:e.ERROR.MEDIA.MEDIA_ERR_SRC_NOT_SUPPORTED}[t]},e.timeStringToSeconds=function(e){var i=(e||"").split(":");return t.reduce(i,function(e,t){return 60*e+parseInt(t,10)},0)},e.leftPadding=function(e,t){for(var i=e?e.toString():"";i.length<t;)i="0"+i;return i},e.getColorString=function(t){return"#"+e.leftPadding(t.toString(16),6).toUpperCase()},e.isHevcEnabled=function(e){return e&&(!0===e.preferHevc||"true"===e.preferHevc)},e.hexToRgb=function(e){return[(16711680&e)>>16,(65280&e)>>8,255&e]},e.changeColor=function(t,i,n){var a=n?Math.max:Math.min,s=n?0:255,o=Math.round(255*i)*(n?-1:1),l=e.hexToRgb(t),c=(0,r.default)(l,3),u=c[0],d=c[1],h=c[2];return[e.leftPadding(a(u+o,s).toString(16),2),e.leftPadding(a(d+o,s).toString(16),2),e.leftPadding(a(h+o,s).toString(16),2)].join("")},e.decode64=function(e){var t,i=e.replace(/\n/g,""),n="",a=0,r=[];if(window.atob)return window.atob(i);do{for(t=0;t<4;t++)r[t]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i.charAt(a++));n+=String.fromCharCode(r[0]<<2|r[1]>>4,64===r[2]?0:(15&r[1])<<4|r[2]>>2,64===r[3]?0:(3&r[2])<<6|r[3])}while(a<i.length);return n.replace(/\0/g,"")},e.pixelPing=function(t){var i=new window.Image;i.onerror=i.onabort=function(){e.debug("onerror:",t)},i.src=e.getNormalizedTagUrl(t)},e.pixelPings=function(i){t.isEmpty(i)||t.each(i,function(t){e.pixelPing(t)},this)},e.stringToBoolean=function(e){return"string"==typeof e?e.toLowerCase().indexOf("true")>-1||e.toLowerCase().indexOf("yes")>-1:!!e},e.regexEscape=function(e){return e.replace(/[<>()\[\]{}]/g,"\\$&")},e.getNormalizedTagUrl=function(t,i){var n=(new Date).getTime(),a=escape(document.URL),r=t,s=function(t,i){t.forEach(function(t){var n=new RegExp("(".concat(e.regexEscape(t),")"),"gi");r=r.replace(n,i)})};return s(e.TEMPLATES.RANDOM_PLACE_HOLDER,n),s(e.TEMPLATES.REFERAK_PLACE_HOLDER,a),i&&s(e.TEMPLATES.EMBED_CODE_PLACE_HOLDER,i),r},e.safeSeekRange=function(e){return{start:e.length>0?e.start(0):0,end:e.length>0?e.end(0):0}},e.loadedJS=e.loadedJS||{},e.jsOnSuccessList=e.jsOnSuccessList||{},e.safeFuncCall=function(t){if("function"==typeof t)try{t.apply()}catch(t){e.log("Can not invoke function!",t)}},e.loadScriptOnce=function(t,n,a,r){if(e.jsOnSuccessList[t]=e.jsOnSuccessList[t]||[],e.loadedJS[t])return"loaded"===e.loadedJS[t]?e.safeFuncCall(n):"loading"===e.loadedJS[t]&&e.jsOnSuccessList[t].unshift(n),!1;e.loadedJS[t]="loading";return i.ajax({url:t,type:"GET",cache:!0,dataType:"script",timeout:r||15e3,success:function(){e.loadedJS[t]="loaded",e.jsOnSuccessList[t].unshift(n),e._.each(e.jsOnSuccessList[t],function(t){e.safeFuncCall(t)},this),e.jsOnSuccessList[t]=[]},error:function(){e.safeFuncCall(a)}}),!0};try{e.localStorage=window.localStorage}catch(t){e.log(t)}e.localStorage||(e.localStorage={getItem:function(e){return e&&this.hasOwnProperty(e)?unescape(document.cookie.replace(new RegExp("(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*"),"$1")):null},key:function(e){return unescape(document.cookie.replace(/\s*\=(?:.(?!;))*$/,"").split(/\s*\=(?:[^;](?!;))*[^;]?;\s*/)[e])},setItem:function(e,t){e&&(document.cookie=escape(e)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/",this.length=document.cookie.match(/\=/g).length)},length:0,removeItem:function(e){e&&this.hasOwnProperty(e)&&(document.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/",this.length--)},hasOwnProperty:function(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)}},e.localStorage.length=(document.cookie.match(/\=/g)||e.localStorage).length),e.setItem=function(t,i){try{e.localStorage.setItem(t,i)}catch(t){e.log(t)}},e.ensureNumber=function(e,i){var n,a;return a=null===e||t.isArray(e)?NaN:e,n=t.isNumber(a)?a:Number(a),isFinite(n)?n:void 0===i?null:i},e.JSON=window.JSON,e.normalizeLanguage=function(e){return function(i){if(e&&e.length&&i&&"string"==typeof i){var n=t.find(e,function(e){return t.some(["1","2T","2B","3"],function(t){return e[t]===i})});return n?n["2B"]:null}return null}},e.normalizeLanguageCode=e.normalizeLanguage(e.LANGUAGE_LIST),e.getLanguageFromPageLevelParams=function(t){var i=null,n=null;return t&&(t.audioLanguage?i=t.audioLanguage:t.skinConfig&&t.skinConfig.inline&&t.skinConfig.inline.audio&&t.skinConfig.inline.audio.audioLanguage&&(i=t.skinConfig.inline.audio.audioLanguage)),i&&(n=e.normalizeLanguageCode(i)),n?{issuer:"pageLevelParams",defaultTrack:n}:null},e.getLanguageFromBrowser=function(t){var i=t&&(t.language||t.userLanguage),n=i&&i.split("-")[0],a=null;return n&&(a=e.normalizeLanguageCode(n)),a?{issuer:"browser",defaultTrack:a}:null},e.getLanguageFromSkinConfig=function(t){var i=null,n=null;return t&&t.audio&&t.audio.audioLanguage&&(i=t.audio.audioLanguage),i&&(n=e.normalizeLanguageCode(i)),n?{issuer:"skinConfig",defaultTrack:n}:null},e.getLanguageFromContentTree=function(t){var i=null,n=null;return t&&t.movie_attributes&&t.movie_attributes.default_language&&t.movie_attributes.default_language.length&&(i=t.movie_attributes.default_language),i&&(n=e.normalizeLanguageCode(i)),n?{issuer:"contentTree",defaultTrack:n}:null},e.getTrackFromLocalStorage=function(t){var i=null;return t&&"function"==typeof t.getItem&&(i=t.getItem(e.CONSTANTS.SELECTED_AUDIO)),i?JSON.parse(i):null},e.restoreDefaultTrack=function(i,n){var a=t.find(n,function(t){return t.label===i.label&&t.lang===e.normalizeLanguageCode(i.lang)});return a||(a=t.find(n,function(t){return t.lang===e.normalizeLanguageCode(i.lang)})),a||null},e.getFirstTrack=function(e){return{issuer:"firstTrack",defaultTrack:t.head(e)}},e.determineDefaultTrack=function(e,i){return e.reduce(function(e,n){var a=t.find(i,function(e){return e.lang===n.defaultTrack});return e||a},null)},e.getDefaultTrack=function(t,i){var n=null,a=null;if(i&&(i.localStorage&&(n=e.getTrackFromLocalStorage(i.localStorage))&&(a=e.restoreDefaultTrack(n,t)),!a)){var r=[e.getLanguageFromPageLevelParams(i.pageLevelParams),e.getLanguageFromSkinConfig(i.skinConfig),e.getLanguageFromContentTree(i.contentTree)].filter(function(e){return e});r.length&&(a=e.determineDefaultTrack(r,t))}return a||(a=e.getFirstTrack(t).defaultTrack),a},e.isValidPlaybackSpeed=function(t){return"number"==typeof t&&t>=e.CONSTANTS.PLAYBACK_SPEED.MIN&&t<=e.CONSTANTS.PLAYBACK_SPEED.MAX},e.isAudioOnlyStream=function(t){return t===e.VIDEO.ENCODING.AUDIO_HLS||t===e.VIDEO.ENCODING.AUDIO||t===e.VIDEO.ENCODING.AUDIO_OGG||t===e.VIDEO.ENCODING.AUDIO_M4A},e.isPlaylistsPluginIncluded=function(){if(e.modules&&e.modules.length)for(var t=e.modules.length-1;t>=0;t--){var i=e.modules[t];if(null!==i&&"object"===(0,a.default)(i)&&i.name===e.PLUGINS.PLAYLISTS_PLUGIN)return!0}return!1}}(OO,OO._,OO.$)},{"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/slicedToArray":17,"@babel/runtime/helpers/typeof":18}],57:[function(e,t,i){"use strict";!function(e,t){e.STATE={LOADING:"loading",READY:"ready",PLAYING:"playing",PAUSED:"paused",BUFFERING:"buffering",ERROR:"error",DESTROYED:"destroyed",__end_marker:!0},e.EVENTS={PLAYER_CREATED:"playerCreated",PLAYER_EMBEDDED:"playerEmbedded",SET_EMBED_CODE:"setEmbedCode",HEVC_CHECKED:"hevcChecked",SET_EMBED_CODE_AFTER_OOYALA_AD:"setEmbedCodeAfterOoyalaAd",SET_ASSET:"setAsset",ASSET_CHANGED:"assetChanged",EMBED_CODE_CHANGED:"embedCodeChanged",EMBED_CODE_CHANGED_AFTER_OOYALA_AD:"embedCodeChangedAfterOoyalaAd",AUTH_TOKEN_CHANGED:"authTokenChanged",GUID_SET:"guidSet",WILL_FETCH_PLAYER_XML:"willFetchPlayerXml",PLAYER_XML_FETCHED:"playerXmlFetched",WILL_FETCH_CONTENT_TREE:"willFetchContentTree",SAVE_PLAYER_SETTINGS:"savePlayerSettings",CONTENT_TREE_FETCHED:"contentTreeFetched",WILL_REQUIRE_EMBED_CODE_METADATA:"willRequireEmbedCodeMetadata",WILL_FETCH_EMBED_CODE_METADATA:"willFetchEmbedCodeMetadata",EMBED_CODE_METADATA_FETCHED:"embedCodeMetadataFetched",WILL_FETCH_METADATA:"willFetchMetadata",METADATA_FETCHED:"metadataFetched",SKIN_METADATA_FETCHED:"skinMetadataFetched",ATTRIBUTES_FETCHED:"attributesFetched",THUMBNAILS_FETCHED:"thumbnailsFetched",WILL_FETCH_AUTHORIZATION:"willFetchAuthorization",AUTHORIZATION_FETCHED:"authorizationFetched",WILL_FETCH_AD_AUTHORIZATION:"willFetchAdAuthorization",AD_AUTHORIZATION_FETCHED:"adAuthorizationFetched",UPDATE_ASSET:"updateAsset",ASSET_UPDATED:"assetUpdated",CAN_SEEK:"canSeek",WILL_RESUME_MAIN_VIDEO:"willResumeMainVideo",PLAYBACK_READY:"playbackReady",INITIAL_PLAY:"initialPlay",CAN_PLAY:"canPlay",WILL_PLAY:"willPlay",REPLAY:"replay",SET_PLAYBACK_SPEED:"setPlaybackSpeed",PLAYBACK_SPEED_CHANGED:"playbackSpeedChanged",PLAYHEAD_TIME_CHANGED:"playheadTimeChanged",BUFFERING:"buffering",BUFFERED:"buffered",DOWNLOADING:"downloading",STALLED:"stalled",BITRATE_INFO_AVAILABLE:"bitrateInfoAvailable",SET_TARGET_BITRATE:"setTargetBitrate",BITRATE_CHANGED:"bitrateChanged",SEND_QUALITY_CHANGE:"receiveVideoQualityChangeEvent",CLOSED_CAPTIONS_INFO_AVAILABLE:"closedCaptionsInfoAvailable",SET_CLOSED_CAPTIONS_LANGUAGE:"setClosedCaptionsLanguage",TOGGLE_CLOSED_CAPTIONS:"toggleCLosedCaptions",SKIN_UI_LANGUAGE:"skinUiLanguage",CLOSED_CAPTION_CUE_CHANGED:"closedCaptionCueChanged",MULTI_AUDIO_FETCHED:"multiAudioFetched",MULTI_AUDIO_CHANGED:"multiAudioChanged",SET_CURRENT_AUDIO:"setCurrentAudio",MULTIAUDIO_ERROR:"multiAudioError",ASSET_DIMENSION:"assetDimension",SCRUBBING:"scrubbing",SCRUBBED:"scrubbed",SEEK:"seek",SEEKED:"seeked",LIVE_BUTTON_CLICKED:"liveButtonClicked",PLAY:"play",PLAYING:"playing",PLAY_FAILED:"playFailed",PAUSE:"pause",PAUSED:"paused",PLAYED:"played",SHOULD_DISPLAY_CUE_POINTS:"shouldDisplayCuePoints",INSERT_CUE_POINT:"insertCuePoint",RESET_CUE_POINTS:"resetCuePoints",WILL_CHANGE_FULLSCREEN:"willChangeFullscreen",FULLSCREEN_CHANGED:"fullscreenChanged",SIZE_CHANGED:"sizeChanged",CHANGE_VOLUME:"changeVolume",VOLUME_CHANGED:"volumeChanged",CHANGE_MUTE_STATE:"changeMuteState",MUTE_STATE_CHANGED:"muteStateChanged",TOGGLE_STEREO_VR:"toggleStereoVr",TOGGLE_FULLSCREEN_VR:"toggleFullscreenVr",MOVE_VR_TO_DIRECTION:"moveVrToDirection",VIDEO_VR:"videoVr",CLEAR_VIDEO_TYPE:"clearVideoType",RECREATING_UI:"recreatingUI",CONTROLS_SHOWN:"controlsShown",CONTROLS_HIDDEN:"controlsHidden",END_SCREEN_SHOWN:"endScreenShown",CHANGE_CLOSED_CAPTION_LANGUAGE:"changeClosedCaptionLanguage",ERROR:"error",API_ERROR:"apiError",BITRATE_INITIAL:"bitrateInitial",BITRATE_FIVE_SEC:"bitrateFiveSec",BITRATE_STABLE:"bitrateStable",PLAYBACK_START_ERROR:"playbackStartError",PLAYBACK_MIDSTREAM_ERROR:"playbackMidstreamError",PLUGIN_LOADED:"pluginLoaded",SKIN_CONFIG_LOADED:"skinConfigLoaded",AUTOPLAY_CHECK_COMPLETE:"autoplayCheckComplete",INITIAL_PLAY_STARTING:"initialPlayStarting",REQUEST_PREVIOUS_VIDEO:"requestPreviousVideo",REQUEST_NEXT_VIDEO:"requestNextVideo",POSITION_IN_PLAYLIST_DETERMINED:"positionInPlaylistDetermined",VC_PLUGIN_ERROR:"videoPluginError",DESTROY:"destroy",WILL_PLAY_FROM_BEGINNING:"willPlayFromBeginning",DISABLE_PLAYBACK_CONTROLS:"disablePlaybackControls",ENABLE_PLAYBACK_CONTROLS:"enablePlaybackControls",VC_READY:"videoControllerReady",VC_CREATE_VIDEO_ELEMENT:"videoControllerCreateVideoElement",VC_UPDATE_ELEMENT_STREAM:"videoControllerUpdateElementStream",VC_VIDEO_ELEMENT_CREATED:"videoControllerVideoElementCreated",VC_FOCUS_VIDEO_ELEMENT:"videoControllerFocusVideoElement",VC_VIDEO_ELEMENT_IN_FOCUS:"videoControllerVideoElementInFocus",VC_VIDEO_ELEMENT_LOST_FOCUS:"videoControllerVideoElementLostFocus",VC_DISPOSE_VIDEO_ELEMENT:"videoControllerDisposeVideoElement",VC_VIDEO_ELEMENT_DISPOSED:"videoControllerVideoElementDisposed",VC_SET_VIDEO_STREAMS:"videoControllerSetVideoStreams",VC_ERROR:"videoControllerError",VC_SET_INITIAL_TIME:"videoSetInitialTime",VC_PLAY:"videoPlay",PLAY_VIDEO_ELEMENT:"playVideoElement",VC_CAN_PLAY:"videoCanPlay",VC_WILL_PLAY:"videoWillPlay",VC_PLAYING:"videoPlaying",VC_PLAYED:"videoPlayed",VC_PLAY_FAILED:"videoPlayFailed",VC_PAUSE:"videoPause",VC_PAUSED:"videoPaused",VC_SEEK:"videoSeek",VC_SEEKING:"videoSeeking",VC_SEEKED:"videoSeeked",VC_PRELOAD:"videoPreload",VC_RELOAD:"videoReload",VC_TAG_FOUND:"videoTagFound",VC_RELOAD_AND_PLAY:"vcReloadAndPlay",VC_WILL_RELOAD_AND_PLAY:"vcWillReloadAndPlay",VC_RELOADED:"vcReloaded",AD_SDK_LOADED:"adSdkLoaded",AD_SDK_LOAD_FAILED:"adSdkLoadFailed",AD_REQUEST:"adRequest",AD_REQUEST_SUCCESS:"adRequestSuccess",AD_REQUEST_ERROR:"adRequestError",AD_REQUEST_EMPTY:"adRequestEmpty",AD_PLAYBACK_ERROR:"adPlaybackError",AD_SDK_IMPRESSION:"adSdkImpression",AD_COMPLETED:"adCompleted",SSAI_AD_TIMELINE_RECEIVED:"adTimelineReceived",SSAI_PLAY_SINGLE_AD:"ssaiPlaySingleAd",SSAI_SINGLE_AD_PLAYED:"ssaiSingleAdPlayed",WILL_FETCH_ADS:"willFetchAds",DISABLE_SEEKING:"disableSeeking",ENABLE_SEEKING:"enableSeeking",WILL_PLAY_ADS:"willPlayAds",WILL_PLAY_SINGLE_AD:"willPlaySingleAd",WILL_PAUSE_ADS:"willPauseAds",WILL_RESUME_ADS:"willResumeAds",WILL_PLAY_NONLINEAR_AD:"willPlayNonlinearAd",PLAY_NONLINEAR_AD:"playNonlinearAd",ADS_PLAYED:"adsPlayed",SINGLE_AD_PLAYED:"singleAdPlayed",ADS_ERROR:"adsError",ADS_CLICKED:"adsClicked",FIRST_AD_FETCHED:"firstAdFetched",AD_CONFIG_READY:"adConfigReady",WILL_SHOW_COMPANION_ADS:"willShowCompanionAds",AD_FETCH_FAILED:"adFetchFailed",MIDROLL_PLAY_FAILED:"midrollPlayFailed",SKIP_AD:"skipAd",UPDATE_AD_COUNTDOWN:"updateAdCountdown",REPORT_EXPERIMENT_VARIATIONS:"reportExperimentVariations",FETCH_STYLE:"fetchStyle",STYLE_FETCHED:"styleFetched",SET_STYLE:"setStyle",USE_SERVER_SIDE_HLS_ADS:"useServerSideHlsAds",LOAD_ALL_VAST_ADS:"loadAllVastAds",ADS_FILTERED:"adsFiltered",ADS_MANAGER_HANDLING_ADS:"adsManagerHandlingAds",ADS_MANAGER_FINISHED_ADS:"adsManagerFinishedAds",OVERLAY_RENDERING:"overlayRendering",SHOW_AD_MARQUEE:"showAdMarquee",SDK_AD_EVENT:"sdkAdEvent",PAGE_UNLOAD_REQUESTED:"pageUnloadRequested",PAGE_PROBABLY_UNLOADING:"pageProbablyUnloading",REPORT_DISCOVERY_IMPRESSION:"reportDiscoveryImpression",REPORT_DISCOVERY_CLICK:"reportDiscoveryClick",DISCOVERY_API:{SEND_DISPLAY_EVENT:"sendDisplayEvent",SEND_CLICK_EVENT:"sendClickEvent"},PLAYLISTS_READY:"playlistReady",UI_READY:"uiReady",TOUCH_MOVE:"touchMove",END_VR_MOVE:"endVrMove",CHECK_VR_DIRECTION:"checkVrDirection",VR_DIRECTION_CHANGED:"vrDirectionChanged",VIDEO_TYPE_CHANGED:"videoTypeChanged",AUTOPLAY_STATE_CHECKED:"autoplayStateChecked",HA_ENABLED:"haEnabled",HA_FAILOVER_NOW:"haFailoverNow",HA_CONFIG_UPDATE:"haConfigUpdate",HA_NOTIFY:"haNotify",HA_NOTIFIED:"haNotified",HA_CONFIG_UPDATED:"haConfigUpdated",HA_WILL_FAILOVER:"haWillFailover",HA_FAILOVER_COMPLETE:"haFailoverComplete",HA_FAILOVER_ERROR:"haFailoverError",CANCEL_GEO_CHECKING:"cancelGeoChecking",CHROMECAST_AVAILABLE:"chromecastAvailable",CHROMECAST_CLICKED:"chromecastClicked",CHROMECAST_START_CAST:"chromecastStartCast",CHROMECAST_END_CAST:"chromecastEndCast",MARKER_DATA_AVAILABLE:"markerDataAvailable",AIRPLAY:{BUTTON_CLICKED:"airplayButtonClicked",SESSION_RESUMED:"airplaySessionResumed",AVAILABILITY_CHANGED:"airplayAvailabilityChanged",CONNECTION_CHANGED:"airplayPlaybackTargetChanged"},__end_marker:!0},e.ERROR={API:{NETWORK:"network",SAS:{GENERIC:"sas",GEO:"geo",DOMAIN:"domain",FUTURE:"future",PAST:"past",DEVICE:"device",PROXY:"proxy",CONCURRENT_STREAMS:"concurrent_streams",INVALID_HEARTBEAT:"invalid_heartbeat",ERROR_DEVICE_INVALID_AUTH_TOKEN:"device_invalid_auth_token",ERROR_DEVICE_LIMIT_REACHED:"device_limit_reached",ERROR_NON_REGISTERED_DEVICE:"non_registered_device",ERROR_DEVICE_BINDING_FAILED:"device_binding_failed",ERROR_DEVICE_ID_TOO_LONG:"device_id_too_long",ERROR_DRM_RIGHTS_SERVER_ERROR:"drm_server_error",ERROR_DRM_TOKEN_EXPIRED:"drm_token_expired",ERROR_DRM_GENERAL_FAILURE:"drm_general_failure",ERROR_INVALID_ENTITLEMENTS:"invalid_entitlements"},CONTENT_TREE:"content_tree",METADATA:"metadata"},PLAYBACK:{GENERIC:"playback",STREAM:"stream",LIVESTREAM:"livestream",NETWORK:"network_error"},CHROMECAST:{MANIFEST:"chromecast_manifest",MEDIAKEYS:"chromecast_mediakeys",NETWORK:"chromecast_network",PLAYBACK:"chromecast_playback"},UNPLAYABLE_CONTENT:"unplayable_content",INVALID_EXTERNAL_ID:"invalid_external_id",EMPTY_CHANNEL:"empty_channel",EMPTY_CHANNEL_SET:"empty_channel_set",CHANNEL_CONTENT:"channel_content",VC:{UNSUPPORTED_ENCODING:"unsupported_encoding",UNABLE_TO_CREATE_VIDEO_ELEMENT:"unable_to_create_video_element"},MULTIAUDIO:{UNSUPPORTED_ENCODING:"multiaudio_unsupported_encoding"},MEDIA:{MEDIA_ERR_ABORTED:"aborted",MEDIA_ERR_NETWORK:"network_error",MEDIA_ERR_DECODE:"decode_error",MEDIA_ERR_SRC_NOT_SUPPORTED:"unsupported_source"}},e.URLS={VAST_PROXY:t.template("http://player.ooyala.com/nuplayer/mobile_vast_ads_proxy?callback=<%=cb%>&embed_code=<%=embedCode%>&expires=<%=expires%>&tag_url=<%=tagUrl%>"),EXTERNAL_ID:t.template("<%=server%>/player_api/v1/content_tree/external_id/<%=pcode%>/<%=externalId%>"),CONTENT_TREE:t.template("<%=server%>/player_api/v1/content_tree/embed_code/<%=pcode%>/<%=embedCode%>"),METADATA:t.template("<%=server%>/player_api/v1/metadata/embed_code/<%=playerBrandingId%>/<%=embedCode%>?videoPcode=<%=pcode%>"),EMBED_CODE_METADATA:t.template("<%=server%>/player_api/v1/metadata/embed_code/xxx/<%=embedCode%>?videoPcode=<%=pcode%>"),SAS:t.template("<%=server%>/player_api/v2/authorization/embed_code/<%=pcode%>/<%=embedCode%>"),ANALYTICS:t.template("<%=server%>/reporter.js"),THUMBNAILS:t.template("<%=server%>/api/v1/thumbnail_images/<%=embedCode%>"),GEO_BLOCKING:t.template("<%=server%>/player_api/v2/mid_stream_check/<%=pcode%>/<%=embedCode%>/<%=authToken%>"),__end_marker:!0},e.TRACKING_LEVEL={DEFAULT:"default",ANONYMOUS:"anonymous",DISABLED:"disabled"},e.MODULE_NAMES={OOYALA_ANALYTICS:"ooyala_analytics",ANALYTICS_FRAMEWORK_TRANSLATOR:"AnalyticsFrameworkTranslator",LIBRATO:"Librato"},e.TRACKING_MODULES=[e.MODULE_NAMES.OOYALA_ANALYTICS,e.MODULE_NAMES.ANALYTICS_FRAMEWORK_TRANSLATOR,e.MODULE_NAMES.LIBRATO],e.PLUGINS={ADS:"ads",VIDEO:"video",ANALYTICS:"analytics",PLAYLIST:"playlist",SKIN:"skin",PLAYLISTS_PLUGIN:"playlistsPlugin"},e.PAGE_LEVEL_PARAMS={USE_FIRST_VIDEO_FROM_PLAYLIST:"useFirstVideoFromPlaylist"},e.VIDEO={MAIN:"main",RELOAD:"reload",ADS:"ads",ENCODING:{DRM:{HLS:"hls_drm",DASH:"dash_drm"},AUDIO:"audio",AUDIO_OGG:"audio_ogg",AUDIO_M4A:"audio_m4a",AUDIO_HLS:"audio_hls",DASH:"dash",HDS:"hds",HLS:"hls",IMA:"ima",PULSE:"pulse",MP4:"mp4",YOUTUBE:"youtube",RTMP:"rtmp",SMOOTH:"smooth",WEBM:"webm",AKAMAI_HD_VOD:"akamai_hd_vod",AKAMAI_HD2_VOD_HLS:"akamai_hd2_vod_hls",AKAMAI_HD2_VOD_HDS:"akamai_hd2_vod_hds",AKAMAI_HD2_HDS:"akamai_hd2_hds",AKAMAI_HD2_HLS:"akamai_hd2_hls",FAXS_HLS:"faxs_hls",WIDEVINE_HLS:"wv_hls",WIDEVINE_MP4:"wv_mp4",WIDEVINE_WVM:"wv_wvm",UNKNOWN:"unknown"},FEATURE:{CLOSED_CAPTIONS:"closedCaptions",VIDEO_OBJECT_SHARING_GIVE:"videoObjectSharingGive",VIDEO_OBJECT_SHARING_TAKE:"videoObjectSharingTake",BITRATE_CONTROL:"bitrateControl"},TECHNOLOGY:{FLASH:"flash",HTML5:"html5",MIXED:"mixed",OTHER:"other"}},e.VIDEO_PLAYERS={OOYALA_HTML5_VIDEO_TECH:"ooyalaHtml5VideoTech",BIT_WRAPPER:"bit-wrapper"},e.PLAYER_VR={DEFAULT_SETTINGS:{STEREO:!1,CONTENT_TYPE:"single",START_POSITION:0,VIEW_WINDOW:{minYaw:0,maxYaw:360,minPitch:-90,maxPitch:90}}},e.CSS={VISIBLE_POSITION:"0px",INVISIBLE_POSITION:"-100000px",VISIBLE_DISPLAY:"block",INVISIBLE_DISPLAY:"none",VIDEO_Z_INDEX:1e4,SUPER_Z_INDEX:2e4,ALICE_SKIN_Z_INDEX:11e3,OVERLAY_Z_INDEX:10500,TRANSPARENT_COLOR:"rgba(255, 255, 255, 0)",__end_marker:!0},e.TEMPLATES={RANDOM_PLACE_HOLDER:["[place_random_number_here]","<now>","[timestamp]","<rand-num>","[cache_buster]","[random]"],REFERAK_PLACE_HOLDER:["[referrer_url]","[LR_URL]","[description_url]"],EMBED_CODE_PLACE_HOLDER:["[oo_embedcode]"],MESSAGE:'<table width="100%" height="100%" bgcolor="black" style="padding-left:55px; padding-right:55px; background-color:black; color: white;"><tbody><tr valign="middle"><td align="right"><span style="font-family:Arial; font-size:20px"><%= message %></span></td></tr></tbody></table>',__end_marker:!0},e.CONSTANTS={AD_PLAY_COUNT_KEY:"oo_ad_play_count",AD_ID_TO_PLAY_COUNT_DIVIDER:": ",AD_PLAY_COUNT_DIVIDER:"|",MAX_AD_PLAY_COUNT_HISTORY_LENGTH:20,CONTROLS_BOTTOM_PADDING:10,SEEK_TO_END_LIMIT:4,PLAYER_TYPE:{VIDEO:"video",AUDIO:"audio"},HEVC_CODEC:{HEV1:"hev1",HVC1:"hvc1"},AUTO_BITRATE:"auto",CLOSED_CAPTIONS:{SHOWING:"showing",HIDDEN:"hidden",DISABLED:"disabled"},OOYALA_PLAYER_SETTINGS_KEY:"ooyala_player_settings",SELECTED_AUDIO:"selectedAudio",VALHALLA_CACHE_CONTENT_TREE_KEY:"content_tree",VALHALLA_CACHE_METADATA_KEY:"metadata",VALHALLA_CACHE_SAS_KEY:"sas_auth",GUID_STORAGE_KEY:"ooyala_guid",PLAYBACK_SPEED:{MIN:.5,MAX:2},AUTOPLAY_STATE:{ALL_UNBLOCKED:"All_Unblocked",ALL_BLOCKED:"All_Blocked",UNBLOCKED_WITHOUT_AUDIO:"Unblocked_without_Audio"},__end_marker:!0}}(OO,OO._)},{}],58:[function(e,t,i){"use strict";var n,a=e("jquery"),r=e("underscore");OO._=r,OO.$=a,OO.publicApi=OO.publicApi||{},OO.playerParams=OO.playerParams||{},OO.publicApi.trackingLevel=OO.trackingLevel=(window.OO||{}).trackingLevel;var s=!1,o=2e3;OO.consoleOutput=[],OO.log=function(){if(void 0!==window.console&&"function"==typeof window.console.log&&OO.playerParams.debug&&window.console.log.apply(window.console,arguments),s){var e,t,i="";for(e=0;e<arguments.length;e++)i+=arguments[e]+" ";OO.consoleOutput||(OO.consoleOutput=[]),n&&(t=new RegExp(n)),t&&!t.test(i)||(OO.consoleOutput.length>=o&&OO.consoleOutput.shift(),OO.consoleOutput.push(i))}},OO.startRecordingConsoleOutput=function(e){return n=e,s=!0,"CONSOLE RECORDING STARTED"},OO.stopRecordingConsoleOutput=function(){return s=!1,"CONSOLE RECORDING STOPPED"},OO.clearRecordedConsoleOutput=function(){return OO.consoleOutput||(OO.consoleOutput=[]),OO.consoleOutput.splice(0,OO.consoleOutput.length),"CONSOLE RECORDING CLEARED"},OO.setMaxConsoleOutputLines=function(e){return OO.consoleOutput||(OO.consoleOutput=[]),e<OO.consoleOutput.length&&OO.consoleOutput.splice(0,OO.consoleOutput.length-e),"CONSOLE MAX LINES: "+(o=e)},window.JSON||(window.JSON={stringify:function(e){return"<object>"},__end_marker:!0});var l=OO.playerParams.namespace||"OO";if(window[l]&&window[l].Player)throw OO.log("PlayerV4 is loaded already!!!"),window[l].REV!==OO.publicApi.REV&&OO.log("there is a different VERSION loaded:",window[l].REV,OO.publicApi.REV),new Error("PlayerV4 already defined!!");window[l]&&window[l].__static?OO.publicApi.__static=window[l].__static:OO.publicApi.__static={readyList:[],docReady:!1,apiReady:!1},window[l]=OO.publicApi,window[l].__internal=OO,OO.isReady=function(){return OO.publicApi.__static.apiReady&&OO.publicApi.__static.docReady},OO.tryCallReady=function(){if(OO.isReady())for(;OO.publicApi.__static.readyList.length>0;){var e=OO.publicApi.__static.readyList.pop();if("function"==typeof e)try{e(OO.publicApi)}catch(e){OO.log("Error executing ready function",e,e.stack)}}},OO.publicApi.ready=function(e){OO.publicApi.__static.readyList.unshift(e),OO.tryCallReady()};var c=OO;OO.publicApi.plugin=function(e,t){c.isReady()?(OO.log("plugin is ready to register",c,e),c.plugin(e,t)):(OO.log("plugin",e),OO.publicApi.__static.readyList.push(function(i){i.plugin(e,t)}))}},{jquery:34,underscore:36}],59:[function(e,t,i){"use strict";!function(e){e.LANGUAGE_LIST=[{1:"aa",3:"aar",name:"Afar","2B":"aar","2T":"",local:"Qafaraf"},{1:"ab",3:"abk",name:"Abkhazian","2B":"abk","2T":"",local:"Аҧсуа бызшәа"},{1:"",3:"ace",name:"Achinese","2B":"ace","2T":"",local:"بهسا اچيه"},{1:"",3:"ach",name:"Acoli","2B":"ach","2T":"",local:"Lwo"},{1:"",3:"ada",name:"Adangme","2B":"ada","2T":"",local:"Dangme"},{1:"",3:"ady",name:"Adyghe","2B":"ady","2T":"",local:"Адыгабзэ"},{1:"",3:"",name:"Afro-Asiatic languages","2B":"afa","2T":"",local:"Afro-Asiatic languages"},{1:"",3:"afh",name:"Afrihili","2B":"afh","2T":"",local:"El-Afrihili"},{1:"af",3:"afr",name:"Afrikaans","2B":"afr","2T":"",local:"Afrikaans"},{1:"",3:"ain",name:"Ainu","2B":"ain","2T":"",local:"アイヌ・イタㇰ"},{1:"ak",3:"aka",name:"Akan","2B":"aka","2T":"",local:"Akan"},{1:"",3:"akk",name:"Akkadian","2B":"akk","2T":"",local:"𒀝𒅗𒁺𒌑"},{1:"sq",3:"sqi",name:"Albanian","2B":"alb","2T":"sqi",local:"Shqip"},{1:"",3:"ale",name:"Aleut","2B":"ale","2T":"",local:"Унáӈам тунуý"},{1:"",3:"",name:"Algonquian languages","2B":"alg","2T":"",local:"Algonquian languages"},{1:"",3:"alt",name:"Southern Altai","2B":"alt","2T":"",local:"Алтай тили"},{1:"am",3:"amh",name:"Amharic","2B":"amh","2T":"",local:"አማርኛ"},{1:"",3:"ang",name:"Old English (ca. 450–1100)","2B":"ang","2T":"",local:"Ænglisc"},{1:"",3:"anp",name:"Angika","2B":"anp","2T":"",local:"Angika"},{1:"",3:"",name:"Apache languages","2B":"apa","2T":"",local:"Apache languages"},{1:"ar",3:"ara",name:"Arabic","2B":"ara","2T":"",local:"العَرَبِيَّة"},{1:"",3:"arc",name:"Official Aramaic (700–300 BCE)","2B":"arc","2T":"",local:"Official Aramaic (700–300 BCE)"},{1:"an",3:"arg",name:"Aragonese","2B":"arg","2T":"",local:"aragonés"},{1:"hy",3:"hye",name:"Armenian","2B":"arm","2T":"hye",local:"Հայերէն"},{1:"",3:"arn",name:"Mapudungun","2B":"arn","2T":"",local:"Mapudungun"},{1:"",3:"arp",name:"Arapaho","2B":"arp","2T":"",local:"Hinónoʼeitíít"},{1:"",3:"",name:"Artificial languages","2B":"art","2T":"",local:"Artificial languages"},{1:"",3:"arw",name:"Arawak","2B":"arw","2T":"",local:"Lokono"},{1:"as",3:"asm",name:"Assamese","2B":"asm","2T":"",local:"অসমীয়া"},{1:"",3:"ast",name:"Asturian","2B":"ast","2T":"",local:"Asturianu"},{1:"",3:"",name:"Athapascan languages","2B":"ath","2T":"",local:"Athapascan languages"},{1:"",3:"",name:"Australian languages","2B":"aus","2T":"",local:"Australian languages"},{1:"av",3:"ava",name:"Avaric","2B":"ava","2T":"",local:"Магӏарул мацӏ"},{1:"ae",3:"ave",name:"Avestan","2B":"ave","2T":"",local:"Avestan"},{1:"",3:"awa",name:"Awadhi","2B":"awa","2T":"",local:"अवधी"},{1:"ay",3:"aym",name:"Aymara","2B":"aym","2T":"",local:"Aymar aru"},{1:"az",3:"aze",name:"Azerbaijani","2B":"aze","2T":"",local:"Azərbaycan dili"},{1:"",3:"",name:"Banda languages","2B":"bad","2T":"",local:"Banda languages"},{1:"",3:"",name:"Bamileke languages","2B":"bai","2T":"",local:"Bamiléké"},{1:"ba",3:"bak",name:"Bashkir","2B":"bak","2T":"",local:"Башҡорт теле"},{1:"",3:"bal",name:"Baluchi","2B":"bal","2T":"",local:"بلوچی"},{1:"bm",3:"bam",name:"Bambara","2B":"bam","2T":"",local:"ߓߊߡߊߣߊߣߞߊߣ"},{1:"",3:"ban",name:"Balinese","2B":"ban","2T":"",local:"ᬪᬵᬱᬩᬮᬶ"},{1:"eu",3:"eus",name:"Basque","2B":"baq","2T":"eus",local:"euskara"},{1:"",3:"bas",name:"Basa","2B":"bas","2T":"",local:"Mbene"},{1:"",3:"",name:"Baltic languages","2B":"bat","2T":"",local:"Baltic languages"},{1:"",3:"bej",name:"Beja","2B":"bej","2T":"",local:"Bidhaawyeet"},{1:"be",3:"bel",name:"Belarusian","2B":"bel","2T":"",local:"Беларуская мова"},{1:"",3:"bem",name:"Bemba","2B":"bem","2T":"",local:"Chibemba"},{1:"bn",3:"ben",name:"Bengali","2B":"ben","2T":"",local:"বাংলা"},{1:"",3:"",name:"Berber languages","2B":"ber","2T":"",local:"Tamaziɣt"},{1:"",3:"bho",name:"Bhojpuri","2B":"bho","2T":"",local:"भोजपुरी"},{1:"bh",3:"",name:"Bihari languages","2B":"bih","2T":"",local:"Bihari languages"},{1:"",3:"bik",name:"Bikol","2B":"bik","2T":"",local:"Bikol"},{1:"",3:"bin",name:"Bini","2B":"bin","2T":"",local:"Ẹ̀dó"},{1:"bi",3:"bis",name:"Bislama","2B":"bis","2T":"",local:"Bislama"},{1:"",3:"bla",name:"Siksika","2B":"bla","2T":"",local:"ᓱᖽᐧᖿ"},{1:"",3:"",name:"Bantu languages","2B":"bnt","2T":"",local:"Bantu languages"},{1:"bo",3:"bod",name:"Tibetan","2B":"ib","2T":"bod",local:"བོད་སྐད་"},{1:"bs",3:"bos",name:"Bosnian","2B":"bos","2T":"",local:"bosanski"},{1:"",3:"bra",name:"Braj","2B":"bra","2T":"",local:"Braj"},{1:"br",3:"bre",name:"Breton","2B":"bre","2T":"",local:"Brezhoneg"},{1:"",3:"",name:"Batak languages","2B":"btk","2T":"",local:"Batak languages"},{1:"",3:"bua",name:"Buriat","2B":"bua","2T":"",local:"буряад хэлэн"},{1:"",3:"bug",name:"Buginese","2B":"bug","2T":"",local:"ᨅᨔ ᨕᨘᨁᨗ"},{1:"bg",3:"bul",name:"Bulgarian","2B":"bul","2T":"",local:"български език"},{1:"my",3:"mya",name:"Burmese","2B":"bur","2T":"mya",local:"မြန်မာစာ"},{1:"",3:"byn",name:"Bilin","2B":"byn","2T":"",local:"ብሊና, ብሊን"},{1:"",3:"cad",name:"Caddo","2B":"cad","2T":"",local:"Hasí:nay"},{1:"",3:"",name:"Central American Indian languages","2B":"cai","2T":"",local:"Central American Indian languages"},{1:"",3:"car",name:"Galibi Carib","2B":"car","2T":"",local:"Kari'nja"},{1:"ca",3:"cat",name:"Catalan","2B":"cat","2T":"",local:"català"},{1:"",3:"",name:"Caucasian languages","2B":"cau","2T":"",local:"Caucasian languages"},{1:"",3:"ceb",name:"Cebuano","2B":"ceb","2T":"",local:"Sinugbuanong Binisayâ"},{1:"",3:"",name:"Celtic languages","2B":"cel","2T":"",local:"Celtic languages"},{1:"cs",3:"ces",name:"Czech","2B":"ze","2T":"ces",local:"čeština"},{1:"ch",3:"cha",name:"Chamorro","2B":"cha","2T":"",local:"Finu' Chamoru"},{1:"",3:"chb",name:"Chibcha","2B":"chb","2T":"",local:"Muysccubun"},{1:"ce",3:"che",name:"Chechen","2B":"che","2T":"",local:"Нохчийн мотт"},{1:"",3:"chg",name:"Chagatai","2B":"chg","2T":"",local:"جغتای"},{1:"zh",3:"zho",name:"Chinese","2B":"chi","2T":"zho",local:"中文"},{1:"",3:"chk",name:"Chuukese","2B":"chk","2T":"",local:"Chuukese"},{1:"",3:"chm",name:"Mari","2B":"chm","2T":"",local:"марий йылме"},{1:"",3:"chn",name:"Chinook jargon","2B":"chn","2T":"",local:"chinuk wawa"},{1:"",3:"cho",name:"Choctaw","2B":"cho","2T":"",local:"Chahta'"},{1:"",3:"chp",name:"Chipewyan","2B":"chp","2T":"",local:"ᑌᓀᓱᒼᕄᓀ (Dënesųłiné)"},{1:"",3:"chr",name:"Cherokee","2B":"chr","2T":"",local:"ᏣᎳᎩ ᎦᏬᏂᎯᏍᏗ"},{1:"cu",3:"chu",name:"Church Slavic","2B":"chu","2T":"",local:"Славе́нскїй ѧ҆зы́къ"},{1:"cv",3:"chv",name:"Chuvash","2B":"chv","2T":"",local:"Чӑвашла"},{1:"",3:"chy",name:"Cheyenne","2B":"chy","2T":"",local:"Tsėhésenėstsestȯtse"},{1:"",3:"",name:"Chamic languages","2B":"cmc","2T":"",local:"Chamic languages"},{1:"",3:"cnr",name:"Montenegrin","2B":"cnr","2T":"",local:"crnogorski / црногорски"},{1:"",3:"cop",name:"Coptic","2B":"cop","2T":"",local:"ϯⲙⲉⲑⲣⲉⲙⲛ̀ⲭⲏⲙⲓ"},{1:"kw",3:"cor",name:"Cornish","2B":"cor","2T":"",local:"Kernowek"},{1:"co",3:"cos",name:"Corsican","2B":"cos","2T":"",local:"Corsu"},{1:"",3:"",name:"English based Creoles and pidgins","2B":"cpe","2T":"",local:"English based Creoles and pidgins"},{1:"",3:"",name:"French-based Creoles and pidgins","2B":"cpf","2T":"",local:"French-based Creoles and pidgins"},{1:"",3:"",name:"Portuguese-based Creoles and pidgins","2B":"cpp","2T":"",local:"Portuguese-based Creoles and pidgins"},{1:"cr",3:"cre",name:"Cree","2B":"cre","2T":"",local:"Cree"},{1:"",3:"crh",name:"Crimean Tatar","2B":"crh","2T":"",local:"Къырымтатарджа"},{1:"",3:"",name:"Creoles and pidgins","2B":"crp","2T":"",local:"Creoles and pidgins"},{1:"",3:"csb",name:"Kashubian","2B":"csb","2T":"",local:"Kaszëbsczi jãzëk"},{1:"",3:"",name:"Cushitic languages","2B":"cus","2T":"",local:"Cushitic languages"},{1:"cy",3:"cym",name:"Welsh","2B":"el","2T":"cym",local:"Cymraeg"},{1:"cs",3:"ces",name:"Czech","2B":"cze","2T":"ces",local:"čeština"},{1:"",3:"dak",name:"Dakota","2B":"dak","2T":"",local:"Dakhótiyapi"},{1:"da",3:"dan",name:"Danish","2B":"dan","2T":"",local:"dansk"},{1:"",3:"dar",name:"Dargwa","2B":"dar","2T":"",local:"дарган мез"},{1:"",3:"",name:"Land Dayak languages","2B":"day","2T":"",local:"Land Dayak languages"},{1:"",3:"del",name:"Delaware","2B":"del","2T":"",local:"Delaware"},{1:"",3:"den",name:"Slave (Athapascan)","2B":"den","2T":"",local:"Dene K'e"},{1:"de",3:"deu",name:"German","2B":"ger","2T":"deu",local:"Deutsch"},{1:"",3:"dgr",name:"Dogrib","2B":"dgr","2T":"",local:"डोगरी ڈوگرى"},{1:"",3:"din",name:"Dinka","2B":"din","2T":"",local:"Thuɔŋjäŋ"},{1:"dv",3:"div",name:"Dhivehi","2B":"div","2T":"",local:"ދިވެހި"},{1:"",3:"doi",name:"Dogri","2B":"doi","2T":"",local:"डोगरी"},{1:"",3:"",name:"Dravidian languages","2B":"dra","2T":"",local:"Dravidian languages"},{1:"",3:"dsb",name:"Lower Sorbian","2B":"dsb","2T":"",local:"Dolnoserbski"},{1:"",3:"dua",name:"Duala","2B":"dua","2T":"",local:"Duala"},{1:"",3:"dum",name:"Middle Dutch (ca. 1050–1350)","2B":"dum","2T":"",local:"Middle Dutch (ca. 1050–1350)"},{1:"nl",3:"nld",name:"Dutch","2B":"dut","2T":"nld",local:"Nederlands"},{1:"",3:"dyu",name:"Dyula","2B":"dyu","2T":"",local:"Julakan"},{1:"dz",3:"dzo",name:"Dzongkha","2B":"dzo","2T":"",local:"རྫོང་ཁ་"},{1:"",3:"efi",name:"Efik","2B":"efi","2T":"",local:"Efik"},{1:"",3:"egy",name:"Egyptian (Ancient)","2B":"egy","2T":"",local:"Egyptian (Ancient)"},{1:"",3:"eka",name:"Ekajuk","2B":"eka","2T":"",local:"Ekajuk"},{1:"el",3:"ell",name:"Modern Greek (1453–)","2B":"re","2T":"ell",local:"Νέα Ελληνικά"},{1:"",3:"elx",name:"Elamite","2B":"elx","2T":"",local:"Elamite"},{1:"en",3:"eng",name:"English","2B":"eng","2T":"",local:"English"},{1:"",3:"enm",name:"Middle English (1100–1500)","2B":"enm","2T":"",local:"Middle English (1100–1500)"},{1:"eo",3:"epo",name:"Esperanto","2B":"epo","2T":"",local:"Esperanto"},{1:"et",3:"est",name:"Estonian","2B":"est","2T":"",local:"eesti keel"},{1:"eu",3:"eus",name:"Basque","2B":"aq","2T":"eus",local:"euskara"},{1:"ee",3:"ewe",name:"Ewe","2B":"ewe","2T":"",local:"Èʋegbe"},{1:"",3:"ewo",name:"Ewondo","2B":"ewo","2T":"",local:"Ewondo"},{1:"",3:"fan",name:"Fang","2B":"fan","2T":"",local:"Fang"},{1:"fo",3:"fao",name:"Faroese","2B":"fao","2T":"",local:"føroyskt"},{1:"fa",3:"fas",name:"Persian","2B":"er","2T":"fas",local:"فارسی"},{1:"",3:"fat",name:"Fanti","2B":"fat","2T":"",local:"Mfantse"},{1:"fj",3:"fij",name:"Fijian","2B":"fij","2T":"",local:"Na Vosa Vakaviti"},{1:"",3:"fil",name:"Filipino","2B":"fil","2T":"",local:"Wikang Filipino"},{1:"fi",3:"fin",name:"Finnish","2B":"fin","2T":"",local:"suomen kieli"},{1:"",3:"",name:"Finno-Ugrian languages","2B":"fiu","2T":"",local:"Finno-Ugrian languages"},{1:"",3:"fon",name:"Fon","2B":"fon","2T":"",local:"Fon gbè"},{1:"fr",3:"fra",name:"French","2B":"fre","2T":"fra",local:"Français"},{1:"",3:"frm",name:"Middle French (ca. 1400–1600)","2B":"frm","2T":"",local:"François"},{1:"",3:"fro",name:"Old French (842–ca. 1400)","2B":"fro","2T":"",local:"Franceis"},{1:"",3:"frr",name:"Northern Frisian","2B":"frr","2T":"",local:"Frasch"},{1:"",3:"frs",name:"Eastern Frisian","2B":"frs","2T":"",local:"Seeltersk"},{1:"fy",3:"fry",name:"Western Frisian","2B":"fry","2T":"",local:"Frysk"},{1:"ff",3:"ful",name:"Fulah","2B":"ful","2T":"",local:"Fulfulde"},{1:"",3:"fur",name:"Friulian","2B":"fur","2T":"",local:"Furlan"},{1:"",3:"gaa",name:"Ga","2B":"gaa","2T":"",local:"Gã"},{1:"",3:"gay",name:"Gayo","2B":"gay","2T":"",local:"Basa Gayo"},{1:"",3:"gba",name:"Gbaya","2B":"gba","2T":"",local:"Gbaya"},{1:"",3:"",name:"Germanic languages","2B":"gem","2T":"",local:"Germanic languages"},{1:"ka",3:"kat",name:"Georgian","2B":"geo","2T":"kat",local:"ქართული"},{1:"de",3:"deu",name:"German","2B":"ger","2T":"deu",local:"Deutsch"},{1:"",3:"gez",name:"Geez","2B":"gez","2T":"",local:"ግዕዝ"},{1:"",3:"gil",name:"Gilbertese","2B":"gil","2T":"",local:"Taetae ni Kiribati"},{1:"gd",3:"gla",name:"Gaelic","2B":"gla","2T":"",local:"Gàidhlig"},{1:"ga",3:"gle",name:"Irish","2B":"gle","2T":"",local:"Gaeilge"},{1:"gl",3:"glg",name:"Galician","2B":"glg","2T":"",local:"galego"},{1:"gv",3:"glv",name:"Manx","2B":"glv","2T":"",local:"Gaelg"},{1:"",3:"gmh",name:"Middle High German (ca. 1050–1500)","2B":"gmh","2T":"",local:"Diutsch"},{1:"",3:"goh",name:"Old High German (ca. 750–1050)","2B":"goh","2T":"",local:"Diutisk"},{1:"",3:"gon",name:"Gondi","2B":"gon","2T":"",local:"Gondi"},{1:"",3:"gor",name:"Gorontalo","2B":"gor","2T":"",local:"Bahasa Hulontalo"},{1:"",3:"got",name:"Gothic","2B":"got","2T":"",local:"Gothic"},{1:"",3:"grb",name:"Grebo","2B":"grb","2T":"",local:"Grebo"},{1:"",3:"grc",name:"Ancient Greek (to 1453)","2B":"grc","2T":"",local:"Ἑλληνική"},{1:"el",3:"ell",name:"Modern Greek (1453–)","2B":"gre","2T":"ell",local:"Νέα Ελληνικά"},{1:"gn",3:"grn",name:"Guarani","2B":"grn","2T":"",local:"Avañe'ẽ"},{1:"",3:"gsw",name:"Swiss German","2B":"gsw","2T":"",local:"Schwiizerdütsch"},{1:"gu",3:"guj",name:"Gujarati","2B":"guj","2T":"",local:"ગુજરાતી"},{1:"",3:"gwi",name:"Gwichʼin","2B":"gwi","2T":"",local:"Dinjii Zhu’ Ginjik"},{1:"",3:"hai",name:"Haida","2B":"hai","2T":"",local:"X̱aat Kíl"},{1:"ht",3:"hat",name:"Haitian","2B":"hat","2T":"",local:"kreyòl ayisyen"},{1:"ha",3:"hau",name:"Hausa","2B":"hau","2T":"",local:"Harshen Hausa"},{1:"",3:"haw",name:"Hawaiian","2B":"haw","2T":"",local:"ʻŌlelo Hawaiʻi"},{1:"he",3:"heb",name:"Hebrew","2B":"heb","2T":"",local:"עברית"},{1:"hz",3:"her",name:"Herero","2B":"her","2T":"",local:"Otjiherero"},{1:"",3:"hil",name:"Hiligaynon","2B":"hil","2T":"",local:"Ilonggo"},{1:"",3:"",name:"Himachali languages","2B":"him","2T":"",local:"Himachali languages"},{1:"hi",3:"hin",name:"Hindi","2B":"hin","2T":"",local:"हिन्दी"},{1:"",3:"hit",name:"Hittite","2B":"hit","2T":"",local:"𒉈𒅆𒇷"},{1:"",3:"hmn",name:"Hmong","2B":"hmn","2T":"",local:"lus Hmoob"},{1:"ho",3:"hmo",name:"Hiri Motu","2B":"hmo","2T":"",local:"Hiri Motu"},{1:"hr",3:"hrv",name:"Croatian","2B":"hrv","2T":"",local:"hrvatski"},{1:"",3:"hsb",name:"Upper Sorbian","2B":"hsb","2T":"",local:"hornjoserbšćina"},{1:"hu",3:"hun",name:"Hungarian","2B":"hun","2T":"",local:"magyar nyelv"},{1:"",3:"hup",name:"Hupa","2B":"hup","2T":"",local:"Na:tinixwe Mixine:whe'"},{1:"hy",3:"hye",name:"Armenian","2B":"rm","2T":"hye",local:"Հայերէն"},{1:"",3:"iba",name:"Iban","2B":"iba","2T":"",local:"Jaku Iban"},{1:"ig",3:"ibo",name:"Igbo","2B":"ibo","2T":"",local:"Asụsụ Igbo"},{1:"is",3:"isl",name:"Icelandic","2B":"ice","2T":"isl",local:"íslenska"},{1:"io",3:"ido",name:"Ido","2B":"ido","2T":"",local:"Ido"},{1:"ii",3:"iii",name:"Sichuan Yi","2B":"iii","2T":"",local:"ꆈꌠꉙ"},{1:"",3:"",name:"Ijo languages","2B":"ijo","2T":"",local:"Ịjọ"},{1:"iu",3:"iku",name:"Inuktitut","2B":"iku","2T":"",local:"ᐃᓄᒃᑎᑐᑦ"},{1:"ie",3:"ile",name:"Interlingue","2B":"ile","2T":"",local:"Interlingue"},{1:"",3:"ilo",name:"Iloko","2B":"ilo","2T":"",local:"Pagsasao nga Ilokano"},{1:"ia",3:"ina",name:"Interlingua (International Auxiliary Language Association)","2B":"ina","2T":"",local:"Interlingua (International Auxiliary Language Association)"},{1:"",3:"",name:"Indic languages","2B":"inc","2T":"",local:"Indic languages"},{1:"id",3:"ind",name:"Indonesian","2B":"ind","2T":"",local:"bahasa Indonesia"},{1:"",3:"",name:"Indo-European languages","2B":"ine","2T":"",local:"Indo-European languages"},{1:"",3:"inh",name:"Ingush","2B":"inh","2T":"",local:"ГӀалгӀай мотт"},{1:"ik",3:"ipk",name:"Inupiaq","2B":"ipk","2T":"",local:"Iñupiaq"},{1:"",3:"",name:"Iranian languages","2B":"ira","2T":"",local:"Iranian languages"},{1:"",3:"",name:"Iroquoian languages","2B":"iro","2T":"",local:"Iroquoian languages"},{1:"is",3:"isl",name:"Icelandic","2B":"ce","2T":"isl",local:"íslenska"},{1:"it",3:"ita",name:"Italian","2B":"ita","2T":"",local:"italiano"},{1:"jv",3:"jav",name:"Javanese","2B":"jav","2T":"",local:"ꦧꦱꦗꦮ"},{1:"",3:"jbo",name:"Lojban","2B":"jbo","2T":"",local:"la .lojban."},{1:"ja",3:"jpn",name:"Japanese","2B":"jpn","2T":"",local:"日本語"},{1:"",3:"jpr",name:"Judeo-Persian","2B":"jpr","2T":"",local:"Dzhidi"},{1:"",3:"jrb",name:"Judeo-Arabic","2B":"jrb","2T":"",local:"عربية يهودية / ערבית יהודית"},{1:"",3:"kaa",name:"Kara-Kalpak","2B":"kaa","2T":"",local:"Qaraqalpaq tili"},{1:"",3:"kab",name:"Kabyle","2B":"kab","2T":"",local:"Tamaziɣt Taqbaylit"},{1:"",3:"kac",name:"Kachin","2B":"kac","2T":"",local:"Jingpho"},{1:"kl",3:"kal",name:"Kalaallisut","2B":"kal","2T":"",local:"Kalaallisut"},{1:"",3:"kam",name:"Kamba","2B":"kam","2T":"",local:"Kamba"},{1:"kn",3:"kan",name:"Kannada","2B":"kan","2T":"",local:"ಕನ್ನಡ"},{1:"",3:"",name:"Karen languages","2B":"kar","2T":"",local:"Karen languages"},{1:"ks",3:"kas",name:"Kashmiri","2B":"kas","2T":"",local:"कॉशुर / كأشُر"},{1:"ka",3:"kat",name:"Georgian","2B":"eo","2T":"kat",local:"ქართული"},{1:"kr",3:"kau",name:"Kanuri","2B":"kau","2T":"",local:"Kanuri"},{1:"",3:"kaw",name:"Kawi","2B":"kaw","2T":"",local:"ꦧꦱꦗꦮ"},{1:"kk",3:"kaz",name:"Kazakh","2B":"kaz","2T":"",local:"қазақ тілі / qazaq tili"},{1:"",3:"kbd",name:"Kabardian","2B":"kbd","2T":"",local:"Адыгэбзэ (Къэбэрдейбзэ)"},{1:"",3:"kha",name:"Khasi","2B":"kha","2T":"",local:"কা কতিয়েন খাশি"},{1:"",3:"",name:"Khoisan languages","2B":"khi","2T":"",local:"Khoisan languages"},{1:"km",3:"khm",name:"Central Khmer","2B":"khm","2T":"",local:"ភាសាខ្មែរ"},{1:"",3:"kho",name:"Khotanese","2B":"kho","2T":"",local:"Khotanese"},{1:"ki",3:"kik",name:"Kikuyu","2B":"kik","2T":"",local:"Gĩkũyũ"},{1:"rw",3:"kin",name:"Kinyarwanda","2B":"kin","2T":"",local:"Kinyarwanda"},{1:"ky",3:"kir",name:"Kirghiz","2B":"kir","2T":"",local:"кыргызча"},{1:"",3:"kmb",name:"Kimbundu","2B":"kmb","2T":"",local:"Kimbundu"},{1:"",3:"kok",name:"Konkani","2B":"kok","2T":"",local:"कोंकणी"},{1:"kv",3:"kom",name:"Komi","2B":"kom","2T":"",local:"Коми кыв"},{1:"kg",3:"kon",name:"Kongo","2B":"kon","2T":"",local:"Kongo"},{1:"ko",3:"kor",name:"Korean","2B":"kor","2T":"",local:"한국어"},{1:"",3:"kos",name:"Kosraean","2B":"kos","2T":"",local:"Kosraean"},{1:"",3:"kpe",name:"Kpelle","2B":"kpe","2T":"",local:"Kpɛlɛwoo"},{1:"",3:"krc",name:"Karachay-Balkar","2B":"krc","2T":"",local:"Къарачай-Малкъар тил"},{1:"",3:"krl",name:"Karelian","2B":"krl","2T":"",local:"karjal"},{1:"",3:"",name:"Kru languages","2B":"kro","2T":"",local:"Kru languages"},{1:"",3:"kru",name:"Kurukh","2B":"kru","2T":"",local:"कुड़ुख़"},{1:"kj",3:"kua",name:"Kuanyama","2B":"kua","2T":"",local:"Kuanyama"},{1:"",3:"kum",name:"Kumyk","2B":"kum","2T":"",local:"къумукъ тил/qumuq til"},{1:"ku",3:"kur",name:"Kurdish","2B":"kur","2T":"",local:"Kurdî / کوردی"},{1:"",3:"kut",name:"Kutenai","2B":"kut","2T":"",local:"Kutenai"},{1:"",3:"lad",name:"Ladino","2B":"lad","2T":"",local:"Judeo-español"},{1:"",3:"lah",name:"Lahnda","2B":"lah","2T":"",local:"بھارت کا"},{1:"",3:"lam",name:"Lamba","2B":"lam","2T":"",local:"Lamba"},{1:"lo",3:"lao",name:"Lao","2B":"lao","2T":"",local:"ພາສາລາວ"},{1:"la",3:"lat",name:"Latin","2B":"lat","2T":"",local:"Lingua latīna"},{1:"lv",3:"lav",name:"Latvian","2B":"lav","2T":"",local:"Latviešu valoda"},{1:"",3:"lez",name:"Lezghian","2B":"lez","2T":"",local:"Лезги чӏал"},{1:"li",3:"lim",name:"Limburgan","2B":"lim","2T":"",local:"Lèmburgs"},{1:"ln",3:"lin",name:"Lingala","2B":"lin","2T":"",local:"Lingala"},{1:"lt",3:"lit",name:"Lithuanian","2B":"lit","2T":"",local:"lietuvių kalba"},{1:"",3:"lol",name:"Mongo","2B":"lol","2T":"",local:"Lomongo"},{1:"",3:"loz",name:"Lozi","2B":"loz","2T":"",local:"Lozi"},{1:"lb",3:"ltz",name:"Luxembourgish","2B":"ltz","2T":"",local:"Lëtzebuergesch"},{1:"",3:"lua",name:"Luba-Lulua","2B":"lua","2T":"",local:"Tshiluba"},{1:"lu",3:"lub",name:"Luba-Katanga","2B":"lub","2T":"",local:"Kiluba"},{1:"lg",3:"lug",name:"Ganda","2B":"lug","2T":"",local:"Luganda"},{1:"",3:"lui",name:"Luiseno","2B":"lui","2T":"",local:"Cham'teela"},{1:"",3:"lun",name:"Lunda","2B":"lun","2T":"",local:"Chilunda"},{1:"",3:"luo",name:"Luo (Kenya and Tanzania)","2B":"luo","2T":"",local:"Dholuo"},{1:"",3:"lus",name:"Lushai","2B":"lus","2T":"",local:"Mizo ṭawng"},{1:"mk",3:"mkd",name:"Macedonian","2B":"mac","2T":"mkd",local:"македонски јазик"},{1:"",3:"mad",name:"Madurese","2B":"mad","2T":"",local:"Madhura"},{1:"",3:"mag",name:"Magahi","2B":"mag","2T":"",local:"मगही"},{1:"mh",3:"mah",name:"Marshallese","2B":"mah","2T":"",local:"Kajin M̧ajeļ"},{1:"",3:"mai",name:"Maithili","2B":"mai","2T":"",local:"मैथिली"},{1:"",3:"mak",name:"Makasar","2B":"mak","2T":"",local:"Basa Mangkasara' / ᨅᨔ ᨆᨀᨔᨑ"},{1:"ml",3:"mal",name:"Malayalam","2B":"mal","2T":"",local:"മലയാളം"},{1:"",3:"man",name:"Mandingo","2B":"man","2T":"",local:"Mandi'nka kango"},{1:"mi",3:"mri",name:"Maori","2B":"mao","2T":"mri",local:"Te Reo Māori"},{1:"",3:"",name:"Austronesian languages","2B":"map","2T":"",local:"Austronesian languages"},{1:"mr",3:"mar",name:"Marathi","2B":"mar","2T":"",local:"मराठी"},{1:"",3:"mas",name:"Masai","2B":"mas","2T":"",local:"ɔl"},{1:"ms",3:"msa",name:"Malay","2B":"may","2T":"msa",local:"Bahasa Melayu"},{1:"",3:"mdf",name:"Moksha","2B":"mdf","2T":"",local:"мокшень кяль"},{1:"",3:"mdr",name:"Mandar","2B":"mdr","2T":"",local:"Mandar"},{1:"",3:"men",name:"Mende","2B":"men","2T":"",local:"Mɛnde yia"},{1:"",3:"mga",name:"Middle Irish (900–1200)","2B":"mga","2T":"",local:"Gaoidhealg"},{1:"",3:"mic",name:"Mi'kmaq","2B":"mic","2T":"",local:"Míkmawísimk"},{1:"",3:"min",name:"Minangkabau","2B":"min","2T":"",local:"Baso Minang"},{1:"",3:"mis",name:"Uncoded languages","2B":"mis","2T":"",local:"Uncoded languages"},{1:"mk",3:"mkd",name:"Macedonian","2B":"ac","2T":"mkd",local:"македонски јазик"},{1:"",3:"",name:"Mon-Khmer languages","2B":"mkh","2T":"",local:"Mon-Khmer languages"},{1:"mg",3:"mlg",name:"Malagasy","2B":"mlg","2T":"",local:"Malagasy"},{1:"mt",3:"mlt",name:"Maltese","2B":"mlt","2T":"",local:"Malti"},{1:"",3:"mnc",name:"Manchu","2B":"mnc","2T":"",local:"ᠮᠠᠨᠵᡠ ᡤᡳᠰᡠᠨ"},{1:"",3:"mni",name:"Manipuri","2B":"mni","2T":"",local:"Manipuri"},{1:"",3:"",name:"Manobo languages","2B":"mno","2T":"",local:"Manobo languages"},{1:"",3:"moh",name:"Mohawk","2B":"moh","2T":"",local:"Kanien’kéha"},{1:"mn",3:"mon",name:"Mongolian","2B":"mon","2T":"",local:"монгол хэл"},{1:"",3:"mos",name:"Mossi","2B":"mos","2T":"",local:"Mooré"},{1:"mi",3:"mri",name:"Maori","2B":"ao","2T":"mri",local:"Te Reo Māori"},{1:"ms",3:"msa",name:"Malay","2B":"ay","2T":"msa",local:"Bahasa Melayu"},{1:"",3:"mul",name:"Multiple languages","2B":"mul","2T":"",local:"Multiple languages"},{1:"",3:"",name:"Munda languages","2B":"mun","2T":"",local:"Munda languages"},{1:"",3:"mus",name:"Creek","2B":"mus","2T":"",local:"Mvskoke"},{1:"",3:"mwl",name:"Mirandese","2B":"mwl","2T":"",local:"mirandés"},{1:"",3:"mwr",name:"Marwari","2B":"mwr","2T":"",local:"मारवाड़ी"},{1:"my",3:"mya",name:"Burmese","2B":"ur","2T":"mya",local:"မြန်မာစာ"},{1:"",3:"",name:"Mayan languages","2B":"myn","2T":"",local:"Mayan languages"},{1:"",3:"myv",name:"Erzya","2B":"myv","2T":"",local:"эрзянь кель"},{1:"",3:"",name:"Nahuatl languages","2B":"nah","2T":"",local:"Nahuatl languages"},{1:"",3:"",name:"North American Indian languages","2B":"nai","2T":"",local:"North American Indian languages"},{1:"",3:"nap",name:"Neapolitan","2B":"nap","2T":"",local:"napulitano"},{1:"na",3:"nau",name:"Nauru","2B":"nau","2T":"",local:"dorerin Naoero"},{1:"nv",3:"nav",name:"Navajo","2B":"nav","2T":"",local:"Diné bizaad"},{1:"nr",3:"nbl",name:"South Ndebele","2B":"nbl","2T":"",local:"isiNdebele seSewula"},{1:"nd",3:"nde",name:"North Ndebele","2B":"nde","2T":"",local:"siNdebele saseNyakatho"},{1:"ng",3:"ndo",name:"Ndonga","2B":"ndo","2T":"",local:"ndonga"},{1:"",3:"nds",name:"Low German","2B":"nds","2T":"",local:"Plattdütsch"},{1:"ne",3:"nep",name:"Nepali","2B":"nep","2T":"",local:"नेपाली भाषा"},{1:"",3:"new",name:"Nepal Bhasa","2B":"new","2T":"",local:"नेवाः भाय्"},{1:"",3:"nia",name:"Nias","2B":"nia","2T":"",local:"Li Niha"},{1:"",3:"",name:"Niger-Kordofanian languages","2B":"nic","2T":"",local:"Niger-Kordofanian languages"},{1:"",3:"niu",name:"Niuean","2B":"niu","2T":"",local:"ko e vagahau Niuē"},{1:"nl",3:"nld",name:"Dutch","2B":"ut","2T":"nld",local:"Nederlands"},{1:"nn",3:"nno",name:"Norwegian Nynorsk","2B":"nno","2T":"",local:"nynorsk"},{1:"nb",3:"nob",name:"Norwegian Bokmål","2B":"nob","2T":"",local:"bokmål"},{1:"",3:"nog",name:"Nogai","2B":"nog","2T":"",local:"Ногай тили"},{1:"",3:"non",name:"Old Norse","2B":"non","2T":"",local:"Dǫnsk tunga"},{1:"no",3:"nor",name:"Norwegian","2B":"nor","2T":"",local:"norsk"},{1:"",3:"nqo",name:"N'Ko","2B":"nqo","2T":"",local:"N'Ko"},{1:"",3:"nso",name:"Pedi","2B":"nso","2T":"",local:"Sesotho sa Leboa"},{1:"",3:"",name:"Nubian languages","2B":"nub","2T":"",local:"لغات نوبية"},{1:"",3:"nwc",name:"Classical Newari","2B":"nwc","2T":"",local:"पुलां भाय्"},{1:"ny",3:"nya",name:"Chichewa","2B":"nya","2T":"",local:"Chichewa"},{1:"",3:"nym",name:"Nyamwezi","2B":"nym","2T":"",local:"Nyamwezi"},{1:"",3:"nyn",name:"Nyankole","2B":"nyn","2T":"",local:"Nyankole"},{1:"",3:"nyo",name:"Nyoro","2B":"nyo","2T":"",local:"Runyoro"},{1:"",3:"nzi",name:"Nzima","2B":"nzi","2T":"",local:"Nzima"},{1:"oc",3:"oci",name:"Occitan (post 1500)","2B":"oci","2T":"",local:"occitan"},{1:"oj",3:"oji",name:"Ojibwa","2B":"oji","2T":"",local:"Ojibwa"},{1:"or",3:"ori",name:"Oriya","2B":"ori","2T":"",local:"ଓଡ଼ିଆ"},{1:"om",3:"orm",name:"Oromo","2B":"orm","2T":"",local:"Afaan Oromoo"},{1:"",3:"osa",name:"Osage","2B":"osa","2T":"",local:"Wazhazhe ie / 𐓏𐓘𐓻𐓘𐓻𐓟 𐒻𐓟"},{1:"os",3:"oss",name:"Ossetian","2B":"oss","2T":"",local:"Ирон æвзаг"},{1:"",3:"ota",name:"Ottoman Turkish (1500–1928)","2B":"ota","2T":"",local:"لسان عثمانى / lisân-ı Osmânî"},{1:"",3:"",name:"Otomian languages","2B":"oto","2T":"",local:"Otomian languages"},{1:"",3:"",name:"Papuan languages","2B":"paa","2T":"",local:"Papuan languages"},{1:"",3:"pag",name:"Pangasinan","2B":"pag","2T":"",local:"Salitan Pangasinan"},{1:"",3:"pal",name:"Pahlavi","2B":"pal","2T":"",local:"Pārsīk"},{1:"",3:"pam",name:"Pampanga","2B":"pam","2T":"",local:"Amánung Kapampangan"},{1:"pa",3:"pan",name:"Panjabi","2B":"pan","2T":"",local:"ਪੰਜਾਬੀ / پنجابی"},{1:"",3:"pap",name:"Papiamento","2B":"pap","2T":"",local:"Papiamentu"},{1:"",3:"pau",name:"Palauan","2B":"pau","2T":"",local:"a tekoi er a Belau"},{1:"",3:"peo",name:"Old Persian (ca. 600–400 B.C.)","2B":"peo","2T":"",local:"Old Persian (ca. 600–400 B.C.)"},{1:"fa",3:"fas",name:"Persian","2B":"per","2T":"fas",local:"فارسی"},{1:"",3:"",name:"Philippine languages","2B":"phi","2T":"",local:"Philippine languages"},{1:"",3:"phn",name:"Phoenician","2B":"phn","2T":"",local:"𐤃𐤁𐤓𐤉𐤌 𐤊𐤍𐤏𐤍𐤉𐤌"},{1:"pi",3:"pli",name:"Pali","2B":"pli","2T":"",local:"Pāli"},{1:"pl",3:"pol",name:"Polish","2B":"pol","2T":"",local:"Język polski"},{1:"",3:"pon",name:"Pohnpeian","2B":"pon","2T":"",local:"Pohnpeian"},{1:"pt",3:"por",name:"Portuguese","2B":"por","2T":"",local:"português"},{1:"",3:"",name:"Prakrit languages","2B":"pra","2T":"",local:"Prakrit languages"},{1:"",3:"pro",name:"Old Provençal (to 1500)","2B":"pro","2T":"",local:"Old Provençal (to 1500)"},{1:"ps",3:"pus",name:"Pushto","2B":"pus","2T":"",local:"پښتو"},{1:"",3:"qaa-qtz",name:"Reserved for local use","2B":"qaa-qtz","2T":"",local:"Reserved for local use"},{1:"qu",3:"que",name:"Quechua","2B":"que","2T":"",local:"Runa simi"},{1:"",3:"raj",name:"Rajasthani","2B":"raj","2T":"",local:"राजस्थानी"},{1:"",3:"rap",name:"Rapanui","2B":"rap","2T":"",local:"Vananga rapa nui"},{1:"",3:"rar",name:"Rarotongan","2B":"rar","2T":"",local:"Māori Kūki 'Āirani"},{1:"",3:"",name:"Romance languages","2B":"roa","2T":"",local:"Romance languages"},{1:"rm",3:"roh",name:"Romansh","2B":"roh","2T":"",local:"Rumantsch"},{1:"",3:"rom",name:"Romany","2B":"rom","2T":"",local:"romani čhib"},{1:"ro",3:"ron",name:"Romanian","2B":"um","2T":"ron",local:"limba română"},{1:"ro",3:"ron",name:"Romanian","2B":"rum","2T":"ron",local:"limba română"},{1:"rn",3:"run",name:"Rundi","2B":"run","2T":"",local:"Ikirundi"},{1:"",3:"rup",name:"Aromanian","2B":"rup","2T":"",local:"armãneashce"},{1:"ru",3:"rus",name:"Russian","2B":"rus","2T":"",local:"Русский язык"},{1:"",3:"sad",name:"Sandawe","2B":"sad","2T":"",local:"Sandaweeki"},{1:"sg",3:"sag",name:"Sango","2B":"sag","2T":"",local:"yângâ tî sängö"},{1:"",3:"sah",name:"Yakut","2B":"sah","2T":"",local:"Сахалыы"},{1:"",3:"",name:"South American Indian languages","2B":"sai","2T":"",local:"South American Indian languages"},{1:"",3:"",name:"Salishan languages","2B":"sal","2T":"",local:"Salishan languages"},{1:"",3:"sam",name:"Samaritan Aramaic","2B":"sam","2T":"",local:"ארמית"},{1:"sa",3:"san",name:"Sanskrit","2B":"san","2T":"",local:"संस्कृतम्"},{1:"",3:"sas",name:"Sasak","2B":"sas","2T":"",local:"Sasak"},{1:"",3:"sat",name:"Santali","2B":"sat","2T":"",local:"ᱥᱟᱱᱛᱟᱲᱤ"},{1:"",3:"scn",name:"Sicilian","2B":"scn","2T":"",local:"Sicilianu"},{1:"",3:"sco",name:"Scots","2B":"sco","2T":"",local:"Braid Scots"},{1:"",3:"sel",name:"Selkup","2B":"sel","2T":"",local:"Selkup"},{1:"",3:"",name:"Semitic languages","2B":"sem","2T":"",local:"Semitic languages"},{1:"",3:"sga",name:"Old Irish (to 900)","2B":"sga","2T":"",local:"Goídelc"},{1:"",3:"",name:"Sign languages","2B":"sgn","2T":"",local:"Sign languages"},{1:"",3:"shn",name:"Shan","2B":"shn","2T":"",local:"ၵႂၢမ်းတႆးယႂ်"},{1:"",3:"sid",name:"Sidamo","2B":"sid","2T":"",local:"Sidaamu Afoo"},{1:"si",3:"sin",name:"Sinhala","2B":"sin","2T":"",local:"සිංහල"},{1:"",3:"",name:"Siouan languages","2B":"sio","2T":"",local:"Siouan languages"},{1:"",3:"",name:"Sino-Tibetan languages","2B":"sit","2T":"",local:"Sino-Tibetan languages"},{1:"",3:"",name:"Slavic languages","2B":"sla","2T":"",local:"Slavic languages"},{1:"sk",3:"slk",name:"Slovak","2B":"slo","2T":"slk",local:"slovenčina"},{1:"sk",3:"slk",name:"Slovak","2B":"lo","2T":"slk",local:"slovenčina"},{1:"sl",3:"slv",name:"Slovenian","2B":"slv","2T":"",local:"slovenski jezik"},{1:"",3:"sma",name:"Southern Sami","2B":"sma","2T":"",local:"Åarjelsaemien gïele"},{1:"se",3:"sme",name:"Northern Sami","2B":"sme","2T":"",local:"davvisámegiella"},{1:"",3:"",name:"Sami languages","2B":"smi","2T":"",local:"Sami languages"},{1:"",3:"smj",name:"Lule Sami","2B":"smj","2T":"",local:"julevsámegiella"},{1:"",3:"smn",name:"Inari Sami","2B":"smn","2T":"",local:"anarâškielâ"},{1:"sm",3:"smo",name:"Samoan","2B":"smo","2T":"",local:"Gagana faʻa Sāmoa"},{1:"",3:"sms",name:"Skolt Sami","2B":"sms","2T":"",local:"sääʹmǩiõll"},{1:"sn",3:"sna",name:"Shona","2B":"sna","2T":"",local:"chiShona"},{1:"sd",3:"snd",name:"Sindhi","2B":"snd","2T":"",local:"سنڌي / सिन्धी / ਸਿੰਧੀ"},{1:"",3:"snk",name:"Soninke","2B":"snk","2T":"",local:"Sooninkanxanne"},{1:"",3:"sog",name:"Sogdian","2B":"sog","2T":"",local:"Sogdian"},{1:"so",3:"som",name:"Somali","2B":"som","2T":"",local:"af Soomaali"},{1:"",3:"",name:"Songhai languages","2B":"son","2T":"",local:"Songhai languages"},{1:"st",3:"sot",name:"Southern Sotho","2B":"sot","2T":"",local:"Sesotho [southern]"},{1:"es",3:"spa",name:"Spanish","2B":"spa","2T":"",local:"Español"},{1:"sq",3:"sqi",name:"Albanian","2B":"lb","2T":"sqi",local:"Shqip"},{1:"sc",3:"srd",name:"Sardinian","2B":"srd","2T":"",local:"sardu"},{1:"",3:"srn",name:"Sranan Tongo","2B":"srn","2T":"",local:"Sranan Tongo"},{1:"sr",3:"srp",name:"Serbian","2B":"srp","2T":"",local:"српски / srpski"},{1:"",3:"srr",name:"Serer","2B":"srr","2T":"",local:"Seereer"},{1:"",3:"",name:"Nilo-Saharan languages","2B":"ssa","2T":"",local:"Nilo-Saharan languages"},{1:"ss",3:"ssw",name:"Swati","2B":"ssw","2T":"",local:"siSwati"},{1:"",3:"suk",name:"Sukuma","2B":"suk","2T":"",local:"Kɪsukuma"},{1:"su",3:"sun",name:"Sundanese","2B":"sun","2T":"",local:"ᮘᮞ ᮞᮥᮔ᮪ᮓ / Basa Sunda"},{1:"",3:"sus",name:"Susu","2B":"sus","2T":"",local:"Sosoxui"},{1:"",3:"sux",name:"Sumerian","2B":"sux","2T":"",local:"𒅴𒂠"},{1:"sw",3:"swa",name:"Swahili","2B":"swa","2T":"",local:"Kiswahili"},{1:"sv",3:"swe",name:"Swedish","2B":"swe","2T":"",local:"svenska"},{1:"",3:"syc",name:"Classical Syriac","2B":"syc","2T":"",local:"Classical Syriac"},{1:"",3:"syr",name:"Syriac","2B":"syr","2T":"",local:"ܠܫܢܐ ܣܘܪܝܝܐ"},{1:"ty",3:"tah",name:"Tahitian","2B":"tah","2T":"",local:"Reo Tahiti"},{1:"",3:"",name:"Tai languages","2B":"tai","2T":"",local:"ภาษาไท"},{1:"ta",3:"tam",name:"Tamil","2B":"tam","2T":"",local:"தமிழ்"},{1:"tt",3:"tat",name:"Tatar","2B":"tat","2T":"",local:"татар теле / tatar tele / تاتار"},{1:"te",3:"tel",name:"Telugu","2B":"tel","2T":"",local:"తెలుగు"},{1:"",3:"tem",name:"Timne","2B":"tem","2T":"",local:"KʌThemnɛ"},{1:"",3:"ter",name:"Tereno","2B":"ter","2T":"",local:"Terêna"},{1:"",3:"tet",name:"Tetum","2B":"tet","2T":"",local:"Lia-Tetun"},{1:"tg",3:"tgk",name:"Tajik","2B":"tgk","2T":"",local:"тоҷикӣ / tojikī"},{1:"tl",3:"tgl",name:"Tagalog","2B":"tgl","2T":"",local:"Wikang Tagalog"},{1:"th",3:"tha",name:"Thai","2B":"tha","2T":"",local:"ภาษาไทย"},{1:"bo",3:"bod",name:"Tibetan","2B":"tib","2T":"bod",local:"བོད་སྐད་"},{1:"",3:"tig",name:"Tigre","2B":"tig","2T":"",local:"ትግረ"},{1:"ti",3:"tir",name:"Tigrinya","2B":"tir","2T":"",local:"ትግርኛ"},{1:"",3:"tiv",name:"Tiv","2B":"tiv","2T":"",local:"Tiv"},{1:"",3:"tkl",name:"Tokelau","2B":"tkl","2T":"",local:"Tokelau"},{1:"",3:"tlh",name:"Klingon","2B":"tlh","2T":"",local:"Klingon"},{1:"",3:"tli",name:"Tlingit","2B":"tli","2T":"",local:"Lingít"},{1:"",3:"tmh",name:"Tamashek","2B":"tmh","2T":"",local:"Tamashek"},{1:"",3:"tog",name:"Tonga (Nyasa)","2B":"tog","2T":"",local:"chiTonga"},{1:"to",3:"ton",name:"Tonga (Tonga Islands)","2B":"ton","2T":"",local:"lea faka-Tonga"},{1:"",3:"tpi",name:"Tok Pisin","2B":"tpi","2T":"",local:"Tok Pisin"},{1:"",3:"tsi",name:"Tsimshian","2B":"tsi","2T":"",local:"Tsimshian"},{1:"tn",3:"tsn",name:"Tswana","2B":"tsn","2T":"",local:"Setswana"},{1:"ts",3:"tso",name:"Tsonga","2B":"tso","2T":"",local:"Xitsonga"},{1:"tk",3:"tuk",name:"Turkmen","2B":"tuk","2T":"",local:"Türkmençe / Түркменче / تورکمن تیلی ,تورکمنچه"},{1:"",3:"tum",name:"Tumbuka","2B":"tum","2T":"",local:"chiTumbuka"},{1:"",3:"",name:"Tupi languages","2B":"tup","2T":"",local:"Tupi languages"},{1:"tr",3:"tur",name:"Turkish","2B":"tur","2T":"",local:"Türkçe"},{1:"",3:"",name:"Altaic languages","2B":"tut","2T":"",local:"Altaic languages"},{1:"",3:"tvl",name:"Tuvalua","2B":"tvl","2T":"",local:"Te Ggana Tuuvalu"},{1:"tw",3:"twi",name:"Twi","2B":"twi","2T":"",local:"Twi"},{1:"",3:"tyv",name:"Tuvinian","2B":"tyv","2T":"",local:"тыва дыл"},{1:"",3:"udm",name:"Udmurt","2B":"udm","2T":"",local:"удмурт кыл"},{1:"",3:"uga",name:"Ugaritic","2B":"uga","2T":"",local:"Ugaritic"},{1:"ug",3:"uig",name:"Uighur","2B":"uig","2T":"",local:"ئۇيغۇرچە  "},{1:"uk",3:"ukr",name:"Ukrainian","2B":"ukr","2T":"",local:"українська мова"},{1:"",3:"umb",name:"Umbundu","2B":"umb","2T":"",local:"Úmbúndú"},{1:"",3:"und",name:"Undefined language","2B":"und","2T":"",local:"Undefined language"},{1:"ur",3:"urd",name:"Urdu","2B":"urd","2T":"",local:"اُردُو"},{1:"uz",3:"uzb",name:"Uzbek","2B":"uzb","2T":"",local:"Oʻzbekcha / ўзбекча / ئوزبېچه"},{1:"",3:"vai",name:"Vai","2B":"vai","2T":"",local:"ꕙꔤ"},{1:"ve",3:"ven",name:"Venda","2B":"ven","2T":"",local:"Tshivenḓa"},{1:"vi",3:"vie",name:"Vietnamese","2B":"vie","2T":"",local:"Tiếng Việt"},{1:"vo",3:"vol",name:"Volapük","2B":"vol","2T":"",local:"Volapük"},{1:"",3:"vot",name:"Votic","2B":"vot","2T":"",local:"vađđa ceeli"},{1:"",3:"",name:"Wakashan languages","2B":"wak","2T":"",local:"Wakashan languages"},{1:"",3:"wal",name:"Wolaitta","2B":"wal","2T":"",local:"Wolaitta"},{1:"",3:"war",name:"Waray","2B":"war","2T":"",local:"Winaray"},{1:"",3:"was",name:"Washo","2B":"was","2T":"",local:"wá:šiw ʔítlu"},{1:"cy",3:"cym",name:"Welsh","2B":"wel","2T":"cym",local:"Cymraeg"},{1:"",3:"",name:"Sorbian languages","2B":"wen","2T":"",local:"Serbsce / Serbski"},{1:"wa",3:"wln",name:"Walloon","2B":"wln","2T":"",local:"Walon"},{1:"wo",3:"wol",name:"Wolof","2B":"wol","2T":"",local:"Wolof"},{1:"",3:"xal",name:"Kalmyk","2B":"xal","2T":"",local:"Хальмг келн / Xaľmg keln"},{1:"xh",3:"xho",name:"Xhosa","2B":"xho","2T":"",local:"isiXhosa"},{1:"",3:"yao",name:"Yao","2B":"yao","2T":"",local:"Yao"},{1:"",3:"yap",name:"Yapese","2B":"yap","2T":"",local:"Yapese"},{1:"yi",3:"yid",name:"Yiddish","2B":"yid","2T":"",local:"ייִדיש, יידיש"},{1:"yo",3:"yor",name:"Yoruba","2B":"yor","2T":"",local:"èdè Yorùbá"},{1:"",3:"",name:"Yupik languages","2B":"ypk","2T":"",local:"Yupik languages"},{1:"",3:"zap",name:"Zapotec","2B":"zap","2T":"",local:"Diidxazá"},{1:"",3:"zbl",name:"Blissymbols","2B":"zbl","2T":"",local:"Blissymbols"},{1:"",3:"zen",name:"Zenaga","2B":"zen","2T":"",local:"Tuḍḍungiyya"},{1:"",3:"zgh",name:"Standard Moroccan Tamazight","2B":"zgh","2T":"",local:"ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ"},{1:"za",3:"zha",name:"Zhuang","2B":"zha","2T":"",local:"Vahcuengh / 話僮"},{1:"zh",3:"zho",name:"Chinese","2B":"hi","2T":"zho",local:"中文"},{1:"",3:"",name:"Zande languages","2B":"znd","2T":"",local:"Zande languages"},{1:"zu",3:"zul",name:"Zulu","2B":"zul","2T":"",local:"isiZulu"},{1:"",3:"zun",name:"Zuni","2B":"zun","2T":"",local:"Shiwi'ma"},{1:"",3:"zxx",name:"No linguistic content","2B":"zxx","2T":"",local:"No linguistic content"},{1:"",3:"zza",name:"Zaza","2B":"zza","2T":"",local:"Zaza"}]}(OO)},{}],60:[function(e,t,i){"use strict";!function(e){e.MESSAGES={EN:{},ES:{},FR:{},JA:{}};var t=e.MESSAGES.EN,i=e.MESSAGES.ES,n=e.MESSAGES.FR,a=e.MESSAGES.JA;t[e.ERROR.API.NETWORK]="Cannot Contact Server",t[e.ERROR.API.SAS.GENERIC]="Invalid Authorization Response",t[e.ERROR.API.SAS.GEO]="This video is not authorized in your location",t[e.ERROR.API.SAS.DOMAIN]="This video is not authorized for your domain",t[e.ERROR.API.SAS.FUTURE]="This video will be available soon",t[e.ERROR.API.SAS.PAST]="This video is no longer available",t[e.ERROR.API.SAS.DEVICE]="This video is not authorized for playback on this device",t[e.ERROR.API.SAS.PROXY]="An anonymous proxy was detected. Please disable the proxy and retry.",t[e.ERROR.API.SAS.CONCURRENT_STREAMS]="You have exceeded the maximum number of concurrent streams",t[e.ERROR.API.SAS.INVALID_HEARTBEAT]="Invalid heartbeat response",t[e.ERROR.API.SAS.ERROR_INVALID_ENTITLEMENTS]="User Entitlement Terminated - Stream No Longer Active for the User",t[e.ERROR.API.CONTENT_TREE]="Invalid Content",t[e.ERROR.API.METADATA]="Invalid Metadata",t[e.ERROR.PLAYBACK.GENERIC]="Could not play the content",t[e.ERROR.PLAYBACK.STREAM]="This video isn't encoded for your device",t[e.ERROR.PLAYBACK.LIVESTREAM]="Live stream is off air",t[e.ERROR.PLAYBACK.NETWORK]="Network connection temporarily lost",t[e.ERROR.UNPLAYABLE_CONTENT]="This video is not playable on this player",t[e.ERROR.INVALID_EXTERNAL_ID]="Invalid External ID",t[e.ERROR.EMPTY_CHANNEL]="This channel is empty",t[e.ERROR.EMPTY_CHANNEL_SET]="This channel set is empty",t[e.ERROR.CHANNEL_CONTENT]="This channel is not playable at this time",t[e.ERROR.VC_PLAY_FAILED]="This video is not encoded for your device",t[e.TEXT.ADS_COUNTDOWN]="Advertisement: Your Video will resume shortly",t[e.TEXT.ADS_COUNTDOWN_SECONDS]="Advertisement: Your Video will resume in <%= time %> <%= seconds %>",t[e.TEXT.LIVE]="LIVE",i[e.ERROR.API.NETWORK]="No se puede contactar al servidor",i[e.ERROR.API.SAS.GENERIC]="Respuesta de autorización no válida",i[e.ERROR.API.SAS.GEO]="El vídeo no está autorizado en su ubicación",i[e.ERROR.API.SAS.DOMAIN]="El vídeo no está autorizado para su dominio",i[e.ERROR.API.SAS.FUTURE]="El vídeo estará disponible pronto",i[e.ERROR.API.SAS.PAST]="El vídeo ya no está disponible",i[e.ERROR.API.SAS.DEVICE]="El vídeo no está autorizado para reproducirse en este dispositivo",i[e.ERROR.API.SAS.PROXY]="Se detectó un proxy anónimo. Deshabilite el proxy e intente nuevamente.",i[e.ERROR.API.SAS.CONCURRENT_STREAMS]="Ha superado la cantidad máxima de transmisiones concurrentes",i[e.ERROR.API.SAS.INVALID_HEARTBEAT]="Respuesta de pulso no válida",i[e.ERROR.API.SAS.ERROR_INVALID_ENTITLEMENTS]="La suscripción del usuario a terminado - El video ya no está disponible para el usuario",i[e.ERROR.API.CONTENT_TREE]="Contenido no válido",i[e.ERROR.API.METADATA]="Metadatos no válidos",i[e.ERROR.PLAYBACK.GENERIC]="No se pudo reproducir el contenido",i[e.ERROR.PLAYBACK.STREAM]="El vídeo no está codificado para su dispositivo",i[e.ERROR.PLAYBACK.LIVESTREAM]="La transmisión en vivo está fuera del aire",i[e.ERROR.PLAYBACK.NETWORK]="La conexión de red se halla temporalmente perdida",i[e.ERROR.UNPLAYABLE_CONTENT]="El vídeo no se puede reproducir en este reproductor",i[e.ERROR.INVALID_EXTERNAL_ID]="ID externo no válido",i[e.ERROR.EMPTY_CHANNEL]="El canal está vacío",i[e.ERROR.EMPTY_CHANNEL_SET]="El conjunto de canales está vacío",i[e.ERROR.CHANNEL_CONTENT]="El canal no se puede reproducir en este momento",i[e.ERROR.VC_PLAY_FAILED]="El vídeo no está codificado para su dispositivo",i[e.TEXT.ADS_COUNTDOWN]="Anuncio: el vídeo se reanudará en breve",i[e.TEXT.LIVE]="EN VIVO",n[e.ERROR.API.NETWORK]="Impossible de contacter le serveur",n[e.ERROR.API.SAS.GENERIC]="Réponse d'autorisation non valide",n[e.ERROR.API.SAS.GEO]="Cette vidéo n'est pas autorisée dans votre pays",n[e.ERROR.API.SAS.DOMAIN]="Cette vidéo n'est pas autorisée pour votre domaine",n[e.ERROR.API.SAS.FUTURE]="Cette vidéo sera bientôt disponible",n[e.ERROR.API.SAS.PAST]="Cette vidéo n'est plus disponible",n[e.ERROR.API.SAS.DEVICE]="La lecture de cette vidéo n'est pas autorisée sur cet appareil",n[e.ERROR.API.SAS.PROXY]="Un proxy anonyme a été détecté. Désactivez le proxy, puis réessayez.",n[e.ERROR.API.SAS.CONCURRENT_STREAMS]="Vous avez dépassé le nombre maximum de flux simultanés.",n[e.ERROR.API.SAS.INVALID_HEARTBEAT]="Réponse du signal de pulsation ('heartbeat') non valide",n[e.ERROR.API.CONTENT_TREE]="Contenu non valide",n[e.ERROR.API.METADATA]="Métadonnées non valides",n[e.ERROR.PLAYBACK.GENERIC]="Impossible de lire le contenu",n[e.ERROR.PLAYBACK.STREAM]="Cette vidéo n'est pas encodée pour votre appareil",n[e.ERROR.PLAYBACK.LIVESTREAM]="Le flux direct a été interrompu",n[e.ERROR.PLAYBACK.NETWORK]="Connexion au réseau temporairement interrompue",n[e.ERROR.UNPLAYABLE_CONTENT]="Vous ne pouvez pas lire cette vidéo sur ce lecteur",n[e.ERROR.INVALID_EXTERNAL_ID]="Identifiant externe non valide",n[e.ERROR.EMPTY_CHANNEL]="Cette chaîne est vide",n[e.ERROR.EMPTY_CHANNEL_SET]="Ce groupe de chaînes est vide",n[e.ERROR.CHANNEL_CONTENT]="Vous ne pouvez pas lire cette chaîne pour le moment",n[e.ERROR.VC_PLAY_FAILED]="Cette vidéo n'est pas encodée pour votre appareil",n[e.TEXT.ADS_COUNTDOWN]="Publicité : votre vidéo reprendra bientôt",n[e.TEXT.LIVE]="EN DIRECT",a[e.ERROR.API.NETWORK]="後でご確認ください。",a[e.ERROR.API.SAS.GENERIC]="ビデオを認証できません。",a[e.ERROR.API.SAS.GEO]="この地域ではこのビデオは許可されていません。",a[e.ERROR.API.SAS.DOMAIN]="お使いのドメインではこのビデオは許可されていません。",a[e.ERROR.API.SAS.FUTURE]="このビデオはしばらくすると再生可能になります。",a[e.ERROR.API.SAS.PAST]="このビデオは、既に御利用いただけません。",a[e.ERROR.API.SAS.DEVICE]="このビデオは、このデバイスでの再生は許可されていません。",a[e.ERROR.API.SAS.CONCURRENT_STREAMS]="最大同時接続数を超えています。",a[e.ERROR.API.SAS.INVALID_HEARTBEAT]="同時再生ストリームの最大数に達しました。",a[e.ERROR.API.CONTENT_TREE]="不正なコンテンツです。",a[e.ERROR.API.METADATA]="不正なメタデータです。",a[e.ERROR.PLAYBACK.GENERIC]="このコンテンツを再生できませんでした。",a[e.ERROR.PLAYBACK.STREAM]="このビデオは、お使いのデバイス向けにエンコードされていません。",a[e.ERROR.PLAYBACK.LIVESTREAM]="ライブ配信はされておりません。",a[e.ERROR.PLAYBACK.NETWORK]="ネットワークに一時的に接続できません。",a[e.ERROR.UNPLAYABLE_CONTENT]="このビデオは、このプレーヤーでは再生できません。",a[e.ERROR.INVALID_EXTERNAL_ID]="External IDが不正です。",a[e.ERROR.EMPTY_CHANNEL]="このチャンネルは空です。",a[e.ERROR.EMPTY_CHANNEL_SET]="このチャンネルセットは空です。",a[e.ERROR.CHANNEL_CONTENT]="このチャンネルは、現在再生できません。",a[e.ERROR.VC_PLAY_FAILED]="このビデオは、お使いのデバイス向けにエンコードされていません。",a[e.TEXT.ADS_COUNTDOWN]="広告：",a[e.TEXT.ADS_COUNTDOWN_SECONDS]="広告: <%= time %>数秒後にビデオの再生が開始します",a[e.TEXT.LIVE]="ライブ",e.getLocalizedMessage=function(t){var i=e.getLocale();return(e.MESSAGES[i]?e.MESSAGES[i][t]:void 0)||e.MESSAGES.EN[t]||""}}(OO)},{}],61:[function(e,t,i){"use strict";!function(e){e.TEXT={ADS_COUNTDOWN:"adsCountdown",ADS_COUNTDOWN_SECONDS:"adsCountdownSeconds",LIVE:"LIVE",__end_marker:!0}}(OO)},{}],62:[function(e,t,i){"use strict";e("./include/init.js"),e("./core/3rd_party_initializer.js"),e("./core/environment.js"),e("./include/constants.js"),e("./include/resource.js"),e("./include/messages.js"),e("./include/languages.js"),e("./autogen/stylus_css.js"),e("./autogen/oo_rev.js"),e("./assets/asset_utils.js"),e("./core/utils.js"),e("./core/emitter.js"),e("./core/message_bus.js"),e("./core/state_machine.js"),e("./core/registration.js"),e("./core/player.js"),e("./core/playerExternalApi.js"),e("./modules/ooyala_storage.js"),e("./modules/device_id.js"),e("./modules/chromeless_ui.js"),e("./modules/ha_failover.js"),e("./modules/asset/asset_controller.js"),e("./modules/playback/playback_controller.js"),e("./modules/playback/video_controller.js"),e("./modules/valhalla_cache.js"),e("./modules/api.js"),e("./modules/channels.js"),e("./modules/external_id.js"),e("./modules/auth_heartbeat.js"),e("./modules/ads/ad_manager_controller.js"),e("./modules/ads/ad_manager_ooyala.js"),e("../html5-analytics-plugins/js/framework/AnalyticsFramework.js"),e("../html5-analytics-plugins/js/plugins/iq.js"),e("./modules/analytics/analytics_framework_translator.js"),e("./analytics/analytics.js"),e("./analytics/analytics_base.js"),e("./analytics/ooyala_analytics.js"),e("./modules/plugins/librato.js"),e("./modules/chromecastSender.js"),e("./modules/airplay.js")},{"../html5-analytics-plugins/js/framework/AnalyticsFramework.js":5,"../html5-analytics-plugins/js/plugins/iq.js":7,"./analytics/analytics.js":42,"./analytics/analytics_base.js":43,"./analytics/ooyala_analytics.js":44,"./assets/asset_utils.js":45,"./autogen/oo_rev.js":46,"./autogen/stylus_css.js":47,"./core/3rd_party_initializer.js":48,"./core/emitter.js":49,"./core/environment.js":50,"./core/message_bus.js":51,"./core/player.js":52,"./core/playerExternalApi.js":53,"./core/registration.js":54,"./core/state_machine.js":55,"./core/utils.js":56,"./include/constants.js":57,"./include/init.js":58,"./include/languages.js":59,"./include/messages.js":60,"./include/resource.js":61,"./modules/ads/ad_manager_controller.js":63,"./modules/ads/ad_manager_ooyala.js":64,"./modules/airplay.js":65,"./modules/analytics/analytics_framework_translator.js":66,"./modules/api.js":67,"./modules/asset/asset_controller.js":68,"./modules/auth_heartbeat.js":69,"./modules/channels.js":70,"./modules/chromecastSender.js":71,"./modules/chromeless_ui.js":72,"./modules/device_id.js":73,"./modules/external_id.js":74,"./modules/ha_failover.js":75,"./modules/ooyala_storage.js":76,"./modules/playback/playback_controller.js":77,"./modules/playback/video_controller.js":78,"./modules/plugins/librato.js":79,"./modules/valhalla_cache.js":80}],63:[function(e,t,i){(function(t){"use strict";var i=e("@babel/runtime/helpers/interopRequireDefault"),n=i(e("@babel/runtime/helpers/objectSpread")),a=i(e("@babel/runtime/helpers/typeof"));!function(e,i,r){e.EVENTS.AMC_ALL_ADS_DONE="adManagerControllerAllAdsDone",e.EVENTS.AMC_PREROLLS_DONE="adManagerControllerPrerollsDone",e.EVENTS.AMC_ALL_READY="adManagerControllerAllReady",e.EVENTS.AMC_AD_SETUP="adManagerControllerAdSetup",e.EVENTS.AD_POD_STARTED="adPodStarted",e.EVENTS.AD_POD_ENDED="adPodEnded",e.EVENTS.NONLINEAR_AD_PLAYED="nonlinearAdPlayed",e.EVENTS.HIDE_NONLINEAR_AD="hideNonlinearAd",e.EVENTS.SHOW_NONLINEAR_AD="showNonlinearAd",e.EVENTS.SHOW_NONLINEAR_AD_CLOSE_BUTTON="showNonlinearAdCloseButton",e.EVENTS.NONLINEAR_AD_DISPLAYED="nonlinearAdDisplayed",e.EVENTS.AD_MANAGER_HANDLED_ADS="adManagerHandledAds",e.EVENTS.SHOW_AD_SKIP_BUTTON="showAdSkipButton",e.EVENTS.SHOW_AD_CONTROLS="showAdControls",e.EVENTS.SHOW_AD_MARQUEE="showAdMarquee",e.EVENTS.ADS_CLICKTHROUGH_OPENED="adsClickthroughOpened";var s=3e3,o=25e3,l={},c={PAUSE_AD_ON_CLICK:"pauseAdOnClick",AD_MANAGER_LOAD_TIMEOUT:"adManagerLoadTimeout",AD_LOAD_TIMEOUT:"adLoadTimeout",DISPLAY_CUE_POINTS:"displayCuePointMarkers",REPLAY_ADS:"replayAds",SHOW_NONLINEAR_CLOSE_BUTTON:"showNonLinearCloseButton",SHOW_LINEAR_AD_SKIP_BUTTON:"showLinearAdSkipButton",LINEAR_AD_SKIP_BUTTON_START_TIME:"linearAdSkipButtonStartTime",ALLOW_AD_CLICK_THROUGH_ON_VIDEO:"allowAdClickThroughOnVideo",PAUSE_ON_LIVE_ADS:"pauseOnLiveAds",DELAY_FOR_PREROLL:"delayForPreroll",LATE_PREROLL_RESTART_THRESHOLD:"latePrerollRestartThreshold",PRELOAD_ADS:"preloadAds"},u=[];e.Ads={manager:function(t){if("function"==typeof t){var n=t.apply({},[i,r]);e.Ads.validateAdManager(n)&&(e.log("AMC: Registering ad manager factory: "+n.name),l[n.name]=t)}},unregisterAdManager:function(t){e.log("AMC: Removing an ad manager factory: "+t),t&&l[t]&&(u.push(t),delete l[t])},validateAdManager:function(t){var n,r,s,o={name:"string",ready:"boolean"},c=["initialize","buildTimeline","playAd","cancelAd"];function u(t){e.log("AMC: "+t)}function d(e,n){return!!i.isFunction(t[e])||(u('The ad manager "'+n+'" requires a "'+e+'" function'),!1)}if(!t)return u(" The ad manager must be defined"),!1;if(!i.isObject(t))return u("The ad manager must be an object"),!1;for(var h in o)if(n=h,r=o[h],s=t.name,!(i.has(t,n)?(0,a.default)(t[n])===r||(u('The ad manager "'+s+'" property "'+n+'" should be type "'+r+'"'),0):(u('The ad manager "'+s+'" requires a "'+n+'" property'),0)))return!1;for(var A=0;A<c.length;A++)if(!d(c[A],t.name))return!1;return!l[t.name]||(u('The ad manager "'+t.name+'" has already been registered'),!1)},getUnregisteredAdManagers:function(){return u}},e.exposeStaticApi("Ads",e.Ads);var d=function(){for(var e=i.union(["EVENTS","ADTYPE","AD_CANCEL_CODE","AD_SETTINGS","MAX_AD_REQUEST_TIMEOUT","Ad","ui","platform","adManagerSettings","playerSettings","backlotSettings","pageSettings","currentEmbedCode","movieMetadata","startTime","movieDuration","isLiveStream","uiLanguage"],["updateMainStreamUrl","playAd","addPlayerListener","removePlayerListener","loadAdModule","notify","onAdManagerReady","removeAdManager","adsClicked","raiseAdError","appendToTimeline","showCompanion","forceAdToPlay","adManagerWillControlAds","adsClickthroughOpened","adManagerDoneControllingAds","notifyPodStarted","notifyPodEnded","notifyLinearAdStarted","notifyLinearAdEnded","notifyNonlinearAdStarted","notifyNonlinearAdEnded","hidePlayerUi","isLastAdPlayed","sendURLToLoadAndPlayNonLinearAd","showSkipVideoAdButton","showNonlinearAdCloseButton","focusAdVideo","getRegisteredAdManagers","unregisterAdManager","onSdkAdEvent","onAdSdkLoaded","onAdSdkLoadFailure","onAdRequest","onAdRequestSuccess","onAdRequestEmpty","onAdRequestError","onAdPlaybackError","onAdCompleted","onAdSdkImpression","reportPluginLoaded","willRequireEmbedCodeMetadata","notifySSAIAdTimelineReceived","notifySSAIAdPlaying","notifySSAIAdPlayed","raiseApiError"]),t=0;t<e.length;t++)if(i.isFunction(p[e[t]]))this[e[t]]=i.bind(p[e[t]],p);else{var n=i.bind(function(e){return this[e]},p,e[t]);Object.defineProperty(this,e[t],{get:n})}},h=function(){this.requiredInEnvironment=e.requiredInEnvironment;for(var t=["platform","os","isIos","iosMajorVersion","isAndroid4Plus","isAndroid4_4Plus","isFirefox","isChrome","chromeMajorVersion","isIE","isIE11Plus","isMacOs","isMacOsLionOrLater","isKindleHD","isSSL","device","isIphone","isIpad","isAndroid","isRimDevice","isWinPhone","isSmartTV","DEV"],i=0;i<t.length;i++)this[t[i]]=e[t[i]]},A=function(t,n,a){var r=t,s=a;this.elementId=null,this.useSingleVideoElement=!1,this.rootElement=null,this.videoWrapper=null,this.playerSkinVideoWrapper=null,this.ooyalaVideoElement=null,this.adVideoElement=null,this.adWrapper=null,this.pluginsElement=null,this.playerSkinPluginsElement=null,this.height=null,this.width=null,this.uiParameters={},this.aliceUiParameters={};var o=null,l=i.bind(function(){this.useSingleVideoElement=e.requiresSingleVideoElement,r.subscribe(e.EVENTS.VC_VIDEO_ELEMENT_CREATED,"amcUi",d),r.subscribe(e.EVENTS.VC_VIDEO_ELEMENT_DISPOSED,"amcUi",A),r.subscribe(e.EVENTS.VC_VIDEO_ELEMENT_IN_FOCUS,"amcUi",p),r.subscribe(e.EVENTS.EMBED_CODE_CHANGED,"amcUi",f),r.subscribe(e.EVENTS.EMBED_CODE_CHANGED_AFTER_OOYALA_AD,"amcUi",T)},this);this.destroy=function(){h(!0),r.unsubscribe(e.EVENTS.VC_VIDEO_ELEMENT_CREATED,"amcUi"),r.unsubscribe(e.EVENTS.VC_VIDEO_ELEMENT_IN_FOCUS,"amcUi"),r.unsubscribe(e.EVENTS.VC_VIDEO_ELEMENT_DISPOSED,"amcUi"),r.unsubscribe(e.EVENTS.EMBED_CODE_CHANGED,"amcUi"),r.unsubscribe(e.EVENTS.EMBED_CODE_CHANGED_AFTER_OOYALA_AD,"amcUi")};var u=function(t){for(var i=t;document.getElementById(i);)i=t+"-"+e.getRandomString();return i};this.setupUiElements=function(){var e=this.uiParameters;this.videoWrapper=this.rootElement.find("."+e.videoWrapperClass),this.pluginsElement=this.videoWrapper.find("."+e.pluginsClass),this.pluginsElement.attr("id",u("ooyala-plugins-element")),this.videoWrapper.attr("id",u("ooyala-inner-wrapper"));var t=this.aliceUiParameters;i.isEmpty(t)||(this.playerSkinVideoWrapper=this.rootElement.find("."+t.videoWrapperClass),this.playerSkinPluginsElement=this.playerSkinVideoWrapper.find("."+t.pluginsClass),this.playerSkinPluginsElement.attr("id",u("ooyala-plugins-element")),this.playerSkinVideoWrapper.attr("id",u("ooyala-inner-wrapper"))),this.adWrapper=this.useSingleVideoElement?this.videoWrapper:this.pluginsElement},this.registerUi=function(){for(var e in s)s[e]&&E(s[e],"registerUi",[])},this.setupAndRegisterUi=function(){this.setupUiElements(),this.registerUi()},this.prepAdVideoElement=function(){e.log("AMC: Prepping player with a video element on load");var t={};t[e.VIDEO.ENCODING.MP4]="";var n=null,a=[];for(var r in s)if(s[r].videoRestrictions&&(s[r].videoRestrictions.technology&&(n=s[r].videoRestrictions.technology),s[r].videoRestrictions.features))for(var o in s[r].videoRestrictions.features)a.push(s[r].videoRestrictions.features[o]);a=i.uniq(a),this.createAdVideoElement(t,{technology:n,features:a})},this.createAdVideoElement=function(t,i){var n={};for(var a in t)n[a]={url:t[a]};r.publish(e.EVENTS.VC_CREATE_VIDEO_ELEMENT,e.VIDEO.ADS,n,this.pluginsElement,i)};var d=i.bind(function(t,i){i.videoId===e.VIDEO.MAIN?(this.ooyalaVideoElement=i.videoElement,this.useSingleVideoElement&&this.setupAndRegisterUi()):i.videoId===e.VIDEO.ADS&&(this.adVideoElement=i.videoElement,this.adWrapper=i.parent)},this),h=i.bind(function(t){this.adVideoElement&&t&&r.publish(e.EVENTS.VC_DISPOSE_VIDEO_ELEMENT,e.VIDEO.ADS)},this),A=i.bind(function(t,i){i===e.VIDEO.ADS&&(this.adVideoElement=null)},this),p=i.bind(function(t,i){if((o=i)===e.VIDEO.ADS)for(var n in s)s[n]&&E(s[n],"adVideoFocused",[])},this),f=i.bind(function(){},this),T=i.bind(function(){(e.isAndroid||e.isIos)&&r.publish(e.EVENTS.VC_FOCUS_VIDEO_ELEMENT,e.VIDEO.MAIN,"true")},this);this.isAdInFocus=function(){return o===e.VIDEO.ADS},this.transitionToAd=function(){r.publish(e.EVENTS.VC_FOCUS_VIDEO_ELEMENT,e.VIDEO.ADS)},this.transitionToMainContent=function(t,n,a){o!==e.VIDEO.MAIN&&r.publish(e.EVENTS.VC_FOCUS_VIDEO_ELEMENT,e.VIDEO.MAIN),t&&!n&&(r.publish(e.EVENTS.VC_PLAY,e.VIDEO.MAIN),i.isNumber(a)&&r.publish(e.EVENTS.VC_SET_INITIAL_TIME,e.VIDEO.MAIN,a))},this.shouldDisplayCuePointMarkers=function(){r.publish(e.EVENTS.SHOULD_DISPLAY_CUE_POINTS,n[c.DISPLAY_CUE_POINTS])},this.resetCuePoints=function(t,i){var n=t.map(function(e){return e.position>i?i:e.position},this);r.publish(e.EVENTS.RESET_CUE_POINTS,n)},l()};e.AdManagerController=function(t,a){var u="adManagerController",f=t,T=!1,g={},y=!1,m={};this.adManagerSettings={},this.playerSettings={},this.backlotSettings=null,this.pageSettings=null,this.uiLanguage="";var _,S=null,O=null,b=null,v=!1,I=!1,N={},D=5,C="";this.currentEmbedCode="",this.movieMetadata=null,this.startTime=-1,this.movieDuration=-1,this.isLiveStream=!1,this.liveStreamTimestamps={},this.timeMainVideoIdleMs=0;var R=0,L=[],P=[],w=[],k=!1,V=0,B=!1,M=!1,F=0,U=!1,H=!1,x=!1;this.ended=!1,this.waitForPostrollToPlay=!0;var G={},Y=!1,j=!1,W=!1,K=!1,z=!1,q=!1,X=!1,Q=!1,Z=null,J=null;this.adStarted=!1;var $=!1,ee=!1,te={},ie={},ne=!0,ae=null,re=!1,se=!1,oe=!1,le=0,ce=!1,ue=!1,de=!1;this.ui=null,this.platform=null,this.amcInterface=null,this.adManagers={},this.unregisteredAdManagers=[],this.MAX_AD_MODULE_LOAD_TIMEOUT=5e3,this.MAX_AD_REQUEST_TIMEOUT=8e3;this.testMode=!1,this.AD_SETTINGS=c,this.EVENTS={INITIAL_PLAY_REQUESTED:"initialPlayRequested",REPLAY_REQUESTED:"replayRequested",PLAY_STARTED:"playStarted",PLAYHEAD_TIME_CHANGED:"playheadTimeChanged",AD_PLAYHEAD_TIME_CHANGED:"adPlayheadTimeChanged",PAUSE:"pause",RESUME:"resume",CONTENT_COMPLETED:"contentCompleted",CONTENT_AND_ADS_COMPLETED:"contentAndAdsCompleted",CONTENT_TREE_FETCHED:"contentTreeFetched",SIZE_CHANGED:"sizeChanged",CONTROLS_SHOWN:"controlsShown",CONTROLS_HIDDEN:"controlsHidden",CONTENT_CHANGED:"contentChanged",FULLSCREEN_CHANGED:"fullscreenChanged",VOLUME_CHANGED:"volumeChanged",AD_VOLUME_CHANGED:"adVolumeChanged",MUTE_STATE_CHANGED:"muteStateChanged",MAIN_CONTENT_IN_FOCUS:"mainContentInFocus",VIDEO_TAG_FOUND:"videoTagFound",CONTENT_URL_CHANGED:"contentURLChanged",NONLINEAR_AD_DISPLAYED:"nonlinearAdDisplayed",WILL_FETCH_AD_AUTHORIZATION:"willFetchAdAuthorization",AMC_PREROLLS_DONE:"amcPrerollsDone",SET_EMBED_CODE:"setEmbedCode",SET_EMBED_CODE_AFTER_OOYALA_AD:"setEmbedCodeAfterOoyalaAd",DEVICE_ID_SET:"deviceIdSet"};var he="seeked",Ae="contentVideoPlayed";this.ADTYPE={LINEAR_OVERLAY:"linearOverlay",NONLINEAR_OVERLAY:"nonlinearOverlay",LINEAR_VIDEO:"linearVideo",NONLINEAR_VIDEO:"nonlinearVideo",COMPANION:"companion",AD_REQUEST:"adRequest",UNKNOWN_AD_REQUEST:"unknownAdRequest"},this.AD_CANCEL_CODE={SKIPPED:"skipped",TIMEOUT:"timeout",ERROR:"error",STREAM_ENDED:"streamEnded"},this.FORCED_AD_POSITION=-1,this.Ad=function(t){var n=t||{};this.id=i.uniqueId(n.adManager+"_"),this.duration=n.duration||0,this.adManager=n.adManager,this.ad=n.ad||{},this.adType=n.adType||p.ADTYPE.LINEAR_VIDEO,this.isLinear=this.adType===p.ADTYPE.LINEAR_VIDEO||this.adType===p.ADTYPE.LINEAR_OVERLAY,this.isRequest=this.adType===p.ADTYPE.AD_REQUEST||this.adType===p.ADTYPE.UNKNOWN_AD_REQUEST,this.streams=n.streams||{},this.played=!1,this.videoRestrictions=n.videoRestrictions;var a="t";"p"===n.positionType&&(a="p");var r=+n.position;switch(i.isNumber(r)&&i.isFinite(r)?this.position=r:this.position=0,a){case"p":if(this.position>=100)this.position=1e9;else{var s=n.mainContentDuration;i.isFinite(s)&&s>0?this.position=this.position/100*s:(e.log("Creating a Ad instance with movieDuration = 0"),this.position=0)}}};var Ee=["Init","Ready","Playback","Reload","Overlay"],pe=["LinearAd"];this.fsm=e.StateMachine.create({initial:"Init",messageBus:f,moduleName:u,target:this,events:[{name:e.EVENTS.PLAYER_CREATED,from:"Init",to:"Init"},{name:e.EVENTS.PLAY,from:pe,to:"*"},{name:e.EVENTS.INITIAL_PLAY,from:"Ready",to:"Playback"},{name:e.EVENTS.SET_EMBED_CODE,from:"*",to:"Reload"},{name:e.EVENTS.EMBED_CODE_CHANGED,from:"*",to:"Ready"},{name:e.EVENTS.PLAYED,from:"*",to:"Ready"},{name:e.EVENTS.REPLAY,from:"*",to:"Playback"},{name:e.EVENTS.AMC_ALL_READY,from:"*",to:"Ready"},{name:e.EVENTS.AMC_AD_SETUP,from:Ee,to:"LinearAd"},{name:e.EVENTS.WILL_PLAY_ADS,from:Ee,to:"LinearAd"},{name:e.EVENTS.AD_POD_STARTED,from:"*",to:"LinearAd"},{name:e.EVENTS.WILL_PLAY_NONLINEAR_AD,from:"*",to:"*"},{name:e.EVENTS.PLAY_NONLINEAR_AD,from:"*",to:"Overlay"},{name:e.EVENTS.NONLINEAR_AD_PLAYED,from:"*",to:"Playback"},{name:e.EVENTS.ADS_PLAYED,from:"*",to:"Playback"}]});var fe=i.bind(function(){if(!y&&O&&S&&b){y=!0;for(var t=i.values(c),n=0;n<t.length;n++){var a=t[n];void 0!==this.pageSettings[a]&&(this.adManagerSettings[a]=this.pageSettings[a])}for(var r={},l=i.keys(this.adManagers),u=0;u<l.length;u++){var d=l[u],h=this.adManagers[d];if(h){var A=e.getInnerProperty(this.backlotSettings,["modules",d,"metadata"])||{};A=i.extend(A,e.getInnerProperty(this.pageSettings,[d]));for(var p=0;p<t.length;p++){var f=t[p];void 0!==A[f]&&(this.adManagerSettings[f]=A[f])}r[d]={metadata:A,adManagerClass:h}}}this.adManagerSettings[c.PAUSE_AD_ON_CLICK]=void 0===this.adManagerSettings[c.PAUSE_AD_ON_CLICK]||ge(this.adManagerSettings[c.PAUSE_AD_ON_CLICK]),this.adManagerSettings[c.DISPLAY_CUE_POINTS]=void 0===this.adManagerSettings[c.DISPLAY_CUE_POINTS]||ge(this.adManagerSettings[c.DISPLAY_CUE_POINTS]),this.adManagerSettings[c.REPLAY_ADS]=void 0===this.adManagerSettings[c.REPLAY_ADS]||ge(this.adManagerSettings[c.REPLAY_ADS]),this.adManagerSettings[c.SHOW_NONLINEAR_CLOSE_BUTTON]=void 0!==this.adManagerSettings[c.SHOW_NONLINEAR_CLOSE_BUTTON]&&ge(this.adManagerSettings[c.SHOW_NONLINEAR_CLOSE_BUTTON]),this.adManagerSettings[c.SHOW_LINEAR_AD_SKIP_BUTTON]=void 0!==this.adManagerSettings[c.SHOW_LINEAR_AD_SKIP_BUTTON]&&ge(this.adManagerSettings[c.SHOW_LINEAR_AD_SKIP_BUTTON]),this.adManagerSettings[c.LINEAR_AD_SKIP_BUTTON_START_TIME]=void 0===this.adManagerSettings[c.LINEAR_AD_SKIP_BUTTON_START_TIME]?5:parseInt(this.adManagerSettings[c.LINEAR_AD_SKIP_BUTTON_START_TIME]),this.adManagerSettings[c.ALLOW_AD_CLICK_THROUGH_ON_VIDEO]=void 0===this.adManagerSettings[c.ALLOW_AD_CLICK_THROUGH_ON_VIDEO]||ge(this.adManagerSettings[c.ALLOW_AD_CLICK_THROUGH_ON_VIDEO]),this.adManagerSettings[c.AD_LOAD_TIMEOUT]=Te(this.adManagerSettings[c.AD_LOAD_TIMEOUT])?1e3*this.adManagerSettings[c.AD_LOAD_TIMEOUT]:null,this.adManagerSettings[c.AD_MANAGER_LOAD_TIMEOUT]=Te(this.adManagerSettings[c.AD_MANAGER_LOAD_TIMEOUT])?1e3*this.adManagerSettings[c.AD_MANAGER_LOAD_TIMEOUT]:null,this.adManagerSettings[c.PRELOAD_ADS]=void 0!==this.adManagerSettings[c.PRELOAD_ADS]&&ge(this.adManagerSettings[c.PRELOAD_ADS]),this.preloadAds=this.adManagerSettings[c.PRELOAD_ADS],Te(this.adManagerSettings[c.AD_LOAD_TIMEOUT])&&(o=this.adManagerSettings[c.AD_LOAD_TIMEOUT]),Te(this.adManagerSettings[c.AD_MANAGER_LOAD_TIMEOUT])&&(s=this.adManagerSettings[c.AD_MANAGER_LOAD_TIMEOUT]),"boolean"==typeof this.adManagerSettings[c.DELAY_FOR_PREROLL]&&(ce=this.adManagerSettings[c.DELAY_FOR_PREROLL]),"number"==typeof this.adManagerSettings[c.LATE_PREROLL_RESTART_THRESHOLD]&&(D=this.adManagerSettings[c.LATE_PREROLL_RESTART_THRESHOLD]),void 0!==this.adManagerSettings[c.PAUSE_ON_LIVE_ADS]&&(Y=!this.adManagerSettings[c.PAUSE_ON_LIVE_ADS]),this.testMode?Se():i.delay(i.bind(Se,this),s);for(var T=i.values(r),g=0;g<T.length;g++){var m=T[g];E(m.adManagerClass,"setMuteFirstPlay",[!!this.pageSettings.muteFirstPlay]),E(m.adManagerClass,"loadMetadata",[m.metadata,e.getInnerProperty(this.backlotSettings,["base"])||{},this.movieMetadata])}this.ui.shouldDisplayCuePointMarkers(),_e()}},this),Te=i.bind(function(e){return i.isFinite(e)&&e>=0},this),ge=function(e){var t=e.toString().toLowerCase();return"true"===t||"yes"===t||"1"===t},ye=function(t){var i=t||!1;if(f.removeDependent(e.EVENTS.PLAYBACK_READY,e.EVENTS.AMC_ALL_READY),f.removeDependent(e.EVENTS.WILL_PLAY_FROM_BEGINNING,e.EVENTS.AMC_PREROLLS_DONE),f.removeDependent(e.EVENTS.PLAYED,e.EVENTS.AMC_ALL_ADS_DONE),f.removeDependent(e.EVENTS.PLAYED,e.EVENTS.AD_MANAGER_HANDLED_ADS),G={},!i){var n=function(e,t,i,n){return i};f.addDependent(e.EVENTS.PLAYBACK_READY,e.EVENTS.AMC_ALL_READY,u,n),f.addDependent(e.EVENTS.WILL_PLAY_FROM_BEGINNING,e.EVENTS.AMC_PREROLLS_DONE,u,n),f.addDependent(e.EVENTS.PLAYED,e.EVENTS.AMC_ALL_ADS_DONE,u,n)}};this.onPlayerCreated=function(t,n,a){var s=i.bind(function(){ht(),f.publish(e.EVENTS.AMC_ALL_READY,{prerolls:0})},this);for(var o in l){var c=l[o].apply({},[i,r]);e.log("AMC: Registering ad manager: "+c.name),this.adManagers[c.name]=c}if(this.adManagers&&!i.isEmpty(this.adManagers))if(e.supportAds&&e.requiredInEnvironment("ads")&&!e.requiredInEnvironment("flash-playback")){if(this.ui=new A(f,this.adManagerSettings,this.adManagers),this.platform=new h(f),this.amcInterface=new d(this),this.pageSettings=a,O=!0,a&&null!=a.initialTime&&(this.startTime=a.initialTime),this.ui.elementId=n,this.ui.rootElement=r("#"+n),!this.ui.rootElement)return s();for(var p in this.ui.height=this.ui.rootElement.height(),this.ui.width=this.ui.rootElement.width(),ye(),f.intercept(e.EVENTS.DESTROY,u,i.bind(this.onDestroy,this)),this.adManagers)this.adManagers[p]&&E(this.adManagers[p],"initialize",[this.amcInterface,n]);f.subscribe(e.EVENTS.PLAYER_EMBEDDED,u,i.bind(this.onPlayerEmbedded,this)),f.subscribe(e.EVENTS.METADATA_FETCHED,u,i.bind(this.onMetadataFetched,this)),f.subscribe(e.EVENTS.CONTENT_TREE_FETCHED,u,i.bind(this.onContentTreeFetched,this)),f.subscribe(e.EVENTS.AUTHORIZATION_FETCHED,u,i.bind(this.onAuthorizationFetched,this)),f.subscribe(e.EVENTS.ASSET_CHANGED,u,i.bind(this.onAssetChanged,this)),f.subscribe(e.EVENTS.UI_READY,u,i.bind(this.onUiReady,this)),f.subscribe(e.EVENTS.PLAYBACK_READY,u,i.bind(this.onPlaybackReady,this)),f.subscribe(e.EVENTS.AD_AUTHORIZATION_FETCHED,u,i.bind(this.onAdAuthorizationFetched,this)),f.subscribe(e.EVENTS.GUID_SET,u,i.bind(this.onGuidSet,this)),f.subscribe(e.EVENTS.AUTOPLAY_CHECK_COMPLETE,u,i.bind(this.onAutoplayCheckComplete,this)),f.subscribe(e.EVENTS.WILL_PLAY_FROM_BEGINNING,u,i.bind(this.onWillPlayFromBeginning,this)),f.subscribe(e.EVENTS.PLAYHEAD_TIME_CHANGED,u,this.onPlayheadTimeChanged),f.subscribe(e.EVENTS.PAUSE,u,i.bind(this.onPause,this)),f.subscribe(e.EVENTS.WILL_PLAY,u,i.bind(this.onWillPlay,this)),f.subscribe(e.EVENTS.PLAYING,u,i.bind(this.onPlaying,this)),f.subscribe(e.EVENTS.SEEK,u,i.bind(this.onSeek,this)),f.subscribe(e.EVENTS.SEEKED,u,i.bind(this.onSeeked,this)),f.subscribe(e.EVENTS.VC_PLAY,u,Xe),f.subscribe(e.EVENTS.VC_PAUSED,u,i.bind(this.onVideoPaused,this)),f.subscribe(e.EVENTS.VC_PLAYING,u,i.bind(this.onVideoPlaying,this)),f.subscribe(e.EVENTS.VC_PLAY_FAILED,u,i.bind(this.onVideoPlayFailed,this)),f.subscribe(e.EVENTS.VC_PLAYED,u,i.bind(this.onVideoPlayed,this)),f.subscribe(e.EVENTS.VC_VIDEO_ELEMENT_IN_FOCUS,u,i.bind(this.onVideoElementInFocus,this)),f.subscribe(e.EVENTS.MUTE_STATE_CHANGED,u,i.bind(this.onMuteStateChanged,this)),f.subscribe(e.EVENTS.SKIN_UI_LANGUAGE,u,i.bind(this.onSkinUiLanguage,this)),f.subscribe(e.EVENTS.FULLSCREEN_CHANGED,u,i.bind(this.onFullscreenChanged,this)),f.subscribe(e.EVENTS.SIZE_CHANGED,u,i.bind(this.onSizeChanged,this)),f.subscribe(e.EVENTS.VOLUME_CHANGED,u,i.bind(this.onVolumeChanged,this)),f.subscribe(e.EVENTS.CONTROLS_SHOWN,u,i.bind(this.onControlsShown,this)),f.subscribe(e.EVENTS.CONTROLS_HIDDEN,u,i.bind(this.onControlsHidden,this)),f.subscribe(e.EVENTS.ADS_CLICKED,u,i.bind(this.onAdsClicked,this)),f.subscribe(e.EVENTS.SKIP_AD,u,i.bind(this.onSkipAd,this)),f.subscribe(e.EVENTS.WILL_PAUSE_ADS,u,i.bind(this.onWillPauseAds,this)),f.subscribe(e.EVENTS.WILL_RESUME_ADS,u,i.bind(this.onWillResumeAds,this)),f.subscribe(e.EVENTS.AD_POD_ENDED,u,i.bind(this.onAdPodEnded,this)),f.subscribe(e.EVENTS.NONLINEAR_AD_DISPLAYED,u,i.bind(this.onNonlinearAdDisplayed,this)),f.subscribe(e.EVENTS.VC_TAG_FOUND,u,i.bind(this.onVideoTagFound,this)),f.subscribe(e.EVENTS.VC_VIDEO_ELEMENT_CREATED,u,i.bind(this.onVideoElementCreated,this)),f.subscribe(e.EVENTS.CHROMECAST_START_CAST,u,i.bind(this.onChromecastStartCast,this)),f.subscribe(e.EVENTS.CHROMECAST_END_CAST,u,i.bind(this.onChromecastEndCast,this)),fe()}else s();else s()};var me=i.bind(function(){X||i.isEmpty(this.ui.uiParameters)||(this.ui.setupAndRegisterUi(),X=!0)},this);this.onPlayerEmbedded=function(e,t){t&&(this.ui.uiParameters=t)},this.onUiReady=function(e,t){t&&(this.ui.aliceUiParameters=t),this.ui.useSingleVideoElement||me()},this.onPlaybackReady=function(){this.ui.useSingleVideoElement||me()},this.onMetadataFetched=function(e,t){this.backlotSettings=t,S=!0,fe()},this.onContentTreeFetched=function(e,t){this.movieMetadata=t,b=!0,t&&t.duration&&(this.movieDuration=t.duration/1e3,Ke(this.EVENTS.CONTENT_TREE_FETCHED,(0,n.default)({},t,{duration:t.duration/1e3*60}))),fe()},this.onAuthorizationFetched=function(e,t){for(var i in this.isLiveStream=!1,t&&t.streams&&t.streams[0]&&(this.isLiveStream=t.streams[0].is_live_stream||!1),this.adManagers)this.adManagers[i]&&E(this.adManagers[i],"authorizationFetched")},this.onAdAuthorizationFetched=function(e,t){var i=t;for(var n in this.adManagers)this.adManagers[n]&&"ooyala-ads-manager"===n&&(E(this.adManagers[n],"ooyalaAdData",[i]),m=this.adManagers[n])},this.onAssetChanged=function(e,t,i){for(var n in this.adManagers)this.adManagers[n].ready=!1;t.id!==this.currentEmbedCode&&(C=this.currentEmbedCode),this.currentEmbedCode=t.id,""!==C&&C!==this.currentEmbedCode&&(Ke(this.EVENTS.CONTENT_CHANGED),et()),this.pageSettings=i,this.backlotSettings={},S=!0,this.movieMetadata=t.content,b=!0,t.content&&t.content.duration&&(this.movieDuration=t.content.duration/1e3),this.isLiveStream=!1,t.content&&t.content.streams&&t.content.streams[0]&&(this.isLiveStream=t.content.streams[0].is_live_stream||!1),fe()},this.loadAdModule=function(t,n,a){i.defer(function(t,n,a,r){e.loadScriptOnce(a,i.bind(function(){r(!0),t.onAdManagerReady()},t,n,r),i.bind(function(){r(!1),t.removeAdManager(n)},t,n,r),t.MAX_AD_MODULE_LOAD_TIMEOUT)},this,t,n,a)},this.onAdManagerReady=function(e){e&&this.ui.prepAdVideoElement(),_e()},this.willRequireEmbedCodeMetadata=function(){f.publish(e.EVENTS.WILL_REQUIRE_EMBED_CODE_METADATA,!0)},this.reportPluginLoaded=function(t,i){f.publish(e.EVENTS.PLUGIN_LOADED,e.PLUGINS.ADS,i,t)},this.removeAdManager=function(t){e.log("AMC: removing failed ad manager "+t),this.unregisterAdManager(t),_e()};var _e=i.bind(function(){if(!T){for(var t in this.adManagers)if(!this.adManagers[t].ready)return;T=!0,Oe();var i=ve(L);f.publish(e.EVENTS.AMC_ALL_READY,{prerolls:i.length})}},this),Se=i.bind(function(){if(!T){for(var t in this.adManagers)this.adManagers[t].ready||this.removeAdManager(t);if(!T){T=!0,Oe();var i=ve(L);f.publish(e.EVENTS.AMC_ALL_READY,{prerolls:i.length})}}},this);this.onAdManagerControllerAllReady=function(){if(!l||i.isEmpty(l))return e.log("AMC: No ad manager factories, destroying AMC"),void ht();z=!1,ze()};var Oe=i.bind(function(){for(var e in this.adManagers){var t=this.adManagers[e];if(t){var n=E(t,"buildTimeline",[]);i.isArray(n)&&(L=i.union(L,n),be(L))}}L=De(L),this.ui.resetCuePoints(L,this.movieDuration)},this),be=i.bind(function(e){i.each(e,function(e){Ue(e)&&(e.ad.lastPlayed=e.position,e.ad.playTimes={},P.push(e))},this)},this),ve=i.bind(function(e){var t=[];return i.each(e,function(e){0===e.position&&t.push(e)},this),t},this),Ie=i.bind(function(e,t){var n=[];return i.each(e,function(e){e.adManager===t&&n.push(e)},this),n},this);this.appendToTimeline=function(e){i.isArray(e)&&(L=L.concat(e),L=De(L),be(e))};var Ne=i.bind(function(e){w.push(e),w=De(w)},this),De=function(t){var i=t;return!e._.isArray(i)||!i.length||i.length<1?[]:(i.sort(function(t,i){return t&&e._.isObject(t)&&void 0!==t.position?i&&e._.isObject(i)&&void 0!==i.position?t.position<i.position?-1:t.position===i.position?!0===t.played&&!1===i.played?-1:!1===t.played&&!0===i.played?1:t.isRequest?-1:i.isRequest?1:t.isLinear?i.isLinear?0:-1:1:1:-1:1}),i)};this.showCompanion=function(t){f.publish(e.EVENTS.WILL_SHOW_COMPANION_ADS,{ads:t})},this.hideCompanion=function(){},this.adManagerWillControlAds=function(t){G[t]||(r.isEmptyObject(G)&&f.addDependent(e.EVENTS.PLAYED,e.EVENTS.AD_MANAGER_HANDLED_ADS,u,function(){}),G[t]=!0)},this.forceAdToPlay=function(e,t,i,n,a){var r={adManager:e,adType:i,ad:t,streams:n,duration:a,position:this.FORCED_AD_POSITION},s=new this.Ad(r);Ne(s),be([s]),se||Ce(R,!1)},this.adManagerDoneControllingAds=function(t){G[t]&&(delete G[t],r.isEmptyObject(G)&&f.publish(e.EVENTS.AD_MANAGER_HANDLED_ADS))},this.isAdManagerControllingAds=function(e){return e?!!G[e]:r.isEmptyObject(G)};var Ce=i.bind(function(t,i,n,a){if(L&&!re&&!de&&(ue||a)){V||(V=this.movieDuration-e.CONSTANTS.SEEK_TO_END_LIMIT);var s=we(t,i,n);w.length>0?a||r.inArray(this.currentState,pe)>=0?ke(a):it({type:w[0].adManager,duration:s}):this.tryAdsCompleted()||a||Re()}},this),Re=i.bind(function(){var t=!1;return z||q||H&&!e.isIos&&!e.isAndroid||(f.publish(e.EVENTS.AMC_PREROLLS_DONE),q=!0,t=!0),t},this),Le=i.bind(function(e,t,n){var a=[];n!==he?i.each(P,function(i){var a=i.ad.lastPlayed+i.ad.repeatAfter;if(a<=e&&e<this.movieDuration||!t&&n===Ae){if(this.startTime>=0){var r,s=i.ad.repeatAfter;r=e>i.position?Math.floor((e-i.position)/s)*s+i.position:i.position,i.ad.lastPlayed=r}else i.ad.lastPlayed=a;t||Pe(i,i.ad.lastPlayed)||w.push(i)}},this):i.each(P,function(t){var i,n=t.ad.repeatAfter,r=Be();(r&&r===t&&(t.ad.firstPlay=!0),i=e>t.position?Math.floor((e-t.position)/n)*n+t.position:t.position,r)?r&&e>=i&&(t.ad.lastPlayed=i):(t.ad.lastPlayed+n<=e&&e<V&&!Pe(t,i)&&a.push(t),t.ad.lastPlayed=i)},this),w=w.concat(a)},this),Pe=i.bind(function(e,t){var i=!1;return e&&t in e.ad.playTimes&&(i=e.ad.playTimes[t]),i},this),we=i.bind(function(e,t,n){var a=0;if(null==L||0===L.length)return a;t&&(w=i.filter(w,i.bind(function(e){return e.position===this.FORCED_AD_POSITION},this)));var r=0;for(r=0;r<L.length-1&&!(L[r+1].position>=e);r++);for(;r>0&&L[r].position===L[r-1].position&&!0!==L[r].played;)r--;for(;L[r]&&L[r].position<=e;)L[r].played||k&&L[r].position<F||i.indexOf(w,L[r])>=0?r++:(w.push(L[r]),L[r].isLinear&&(a+=L[r].duration),r++);return w.length>0?Le(e,!0,n):(Le(e,!1,n),i.each(w,function(e){e.isLinear&&(a+=e.duration)},this)),w=De(w),a},this);this.getTimeline=function(){return L},this.getRepeatAds=function(){return i.clone(P)},this.getAdQueue=function(){return w},this.getCurrentPlayhead=i.bind(function(){return R},this),this.getAdManagerLoadTimeout=function(){return s},this.getAdLoadTimeout=function(){return o},this.isLastAdPlayed=function(){return 0===L.length||L[L.length-1].played},this.sendURLToLoadAndPlayNonLinearAd=function(t,i,n){f.publish(e.EVENTS.PLAY_NONLINEAR_AD,{ad:t,url:n}),this.notifyNonlinearAdStarted(i),n&&this.adManagerSettings[c.SHOW_NONLINEAR_CLOSE_BUTTON]&&f.publish(e.EVENTS.SHOW_NONLINEAR_AD_CLOSE_BUTTON)},this.showSkipVideoAdButton=function(e,t){"boolean"==typeof e&&(ne=e,t&&(ae=t))};var ke=i.bind(function(t){if(ue||t){var i=nt(),n=M||!H&&R>0||this.startTime>=this.movieDuration&&!this.isLiveStream;if((this.startTime>=this.movieDuration||this.ended)&&(R=Number.MAX_VALUE),we(R,n),w.length<=0||w[0]&&!w[0].isRequest&&w[0].isLinear!==i)i&&f.publish(e.EVENTS.ADS_PLAYED);else{var a=t?w[0]:w.shift();this.playAd(a,t)}}},this),Ve=i.bind(function(){P=[]},this),Be=function(){return w.length>0?w[0]:null},Me=i.bind(function(t){ee=!0,Z&&"ooyala-ads-manager"!==Z.adManager&&this.adManagers[Z.adManager]&&(Fe(Z,t),f.publish(e.EVENTS.ADS_PLAYED))},this),Fe=i.bind(function(e,t){e&&this.adManagers[e.adManager]&&E(this.adManagers[e.adManager],"cancelAd",[e,t])},this);this.updateMainStreamUrl=function(t){f.publish(e.EVENTS.VC_UPDATE_ELEMENT_STREAM,e.VIDEO.MAIN,t)},this.playAd=function(t,n){if(t&&t.ad){ee=!1,(Z=t).played=!n;var a=i.bind(function(t,i,n){e.log("AMC: Cancelling an ad due to timeout "+n),Fe(i,{code:this.AD_CANCEL_CODE.TIMEOUT}),t.publish(e.EVENTS.SINGLE_AD_PLAYED,n),t.publish(e.EVENTS.AD_POD_ENDED,n)},this,f,t,t.id);if(ot(t.ad.first_shown,t.ad.frequency)){var r;if(i.isFinite(t.duration)&&t.duration>0&&(this.timeMainVideoIdleMs+=1e3*t.duration),Ue(t))t.ad.firstPlay?(r=t.position,t.ad.firstPlay=!1):r=t.ad.lastPlayed,t.ad.playTimes[r]=!0;if(t.isLinear||t.isRequest)if(e.log("AMC: Will play a linear ad for time: "+t.position+" at playhead "+R),He(t,a,o),t.adManager&&this.adManagers[t.adManager]){var s=this.adManagers[t.adManager].videoRestrictions?this.adManagers[t.adManager].videoRestrictions:{};t.videoRestrictions&&(s=t.videoRestrictions);var l=this.pageSettings?this.pageSettings.platform:null;s&&l&&(s.platform=l),t.adType!==this.ADTYPE.UNKNOWN_AD_REQUEST&&(t.adType!==this.ADTYPE.LINEAR_VIDEO||t.ad&&t.ad.ssai)?(t.ad.ssai&&this.hidePlayerUi(!0,!0),E(this.adManagers[t.adManager],"playAd",[t,n])):(f.subscribe(e.EVENTS.VC_VIDEO_ELEMENT_CREATED,"amc",i.bind(xe,this,n)),f.subscribe(e.EVENTS.VC_ERROR,"amc",i.bind(je,this,t.id)),this.ui.createAdVideoElement(t.streams,s))}else this.notifyPodEnded(t.id);else Q=!0,J=Z=t,f.publish(e.EVENTS.WILL_PLAY_NONLINEAR_AD,t)}else a()}};var Ue=i.bind(function(e){return e&&e.ad?e.ad.repeatAfter:null},this),He=i.bind(function(e,t,n){e&&"function"==typeof t&&!this.isAdManagerControllingAds(e.adManager)&&(Ye(e.id),te[e.id]=i.delay(t,n))},this);this.focusAdVideo=function(){this.ui.transitionToAd(),Z&&Z.adType===this.ADTYPE.UNKNOWN_AD_REQUEST&&f.publish(e.EVENTS.VC_PLAY,e.VIDEO.ADS)};var xe=i.bind(function(t){e.log("AMC: Start play ad"),f.unsubscribe(e.EVENTS.VC_VIDEO_ELEMENT_CREATED,"amc"),f.unsubscribe(e.EVENTS.VC_ERROR,"amc"),E(this.adManagers[Z.adManager],"playAd",[Z,t]),Z.adType===this.ADTYPE.LINEAR_VIDEO&&f.publish(e.EVENTS.VC_PLAY,e.VIDEO.ADS)},this),Ge=i.bind(function(t){if(!this.adStarted){var i={};if(Z&&Z.id===t&&(i.type=Z.adManager,i.duration=Z.duration),f.publish(e.EVENTS.WILL_PLAY_ADS,i),H&&(!Z||!Z.ad||!Z.ad.ssai)){var n=Math.max(0,this.startTime),a=R-n;a>=0&&a<=D&&!e.requiresSingleVideoElement&&f.publish(e.EVENTS.VC_SET_INITIAL_TIME,e.VIDEO.MAIN,n)}}Ye(t),this.adStarted=!0},this),Ye=i.bind(function(e){te&&te[e]&&(clearTimeout(te[e]),delete te[e])},this),je=i.bind(function(t,i,n,a){n===e.VIDEO.ADS&&(f.unsubscribe(e.EVENTS.VC_VIDEO_ELEMENT_CREATED,"amc"),f.unsubscribe(e.EVENTS.VC_VIDEO_ELEMENT_IN_FOCUS,"amc"),f.unsubscribe(e.EVENTS.VC_ERROR,"amc"),Z&&Z.isLinear&&this.adManagers[Z.adManager]&&E(this.adManagers[Z.adManager],"adVideoError",[Z,a]),this.notifyPodEnded(t))},this);this.notifySSAIAdTimelineReceived=function(t){f.publish(e.EVENTS.SSAI_AD_TIMELINE_RECEIVED,t)},this.notifySSAIAdPlaying=function(t){oe=!0,f.publish(e.EVENTS.SSAI_PLAY_SINGLE_AD,t)},this.notifySSAIAdPlayed=function(){oe=!1,f.publish(e.EVENTS.SSAI_SINGLE_AD_PLAYED)},this.notifyPodStarted=function(t,i){e.log("AMC: Start ad pod "+t),Ye(t),f.publish(e.EVENTS.AD_POD_STARTED,i)},this.notifyPodEnded=function(t){e.log("AMC: End ad pod "+t),se=!0,Ye(t),We(),f.publish(e.EVENTS.AD_POD_ENDED,t)},this.notifyNonlinearAdStarted=function(t){e.log("AMC: Start of non-linear ad "+t),Ge(t)},this.notifyNonlinearAdEnded=function(t){J=null,e.log("AMC: End of non-linear ad "+t),We(),f.publish(e.EVENTS.NONLINEAR_AD_PLAYED,t)},this.notifyLinearAdStarted=function(t,i){e.log("AMC: Start of linear ad "+t),re=!0,Z&&Z.ad&&Z.ad.ssai||this.focusAdVideo(),Ge(t),f.publish(e.EVENTS.WILL_PLAY_SINGLE_AD,i)},this.notifyLinearAdEnded=function(t){e.log("AMC: End of linear ad "+t),re=!1,clearTimeout(ie),f.publish(e.EVENTS.SINGLE_AD_PLAYED,t)},this.hidePlayerUi=function(t,n,a){var r=!!i.isBoolean(t)&&t,s=!!i.isBoolean(n)&&n,o=!i.isBoolean(a)||a;f.publish(e.EVENTS.SHOW_AD_CONTROLS,r,o),f.publish(e.EVENTS.SHOW_AD_MARQUEE,s)};var We=i.bind(function(){f.publish(e.EVENTS.SHOW_AD_CONTROLS,!0),f.publish(e.EVENTS.SHOW_AD_MARQUEE,!0)},this);this.showNonlinearAdCloseButton=function(){f.publish(e.EVENTS.SHOW_NONLINEAR_AD_CLOSE_BUTTON)},this.raiseAdError=function(t){f.publish(e.EVENTS.ADS_ERROR,t)},this.raiseApiError=function(t,i,n){f.publish(e.EVENTS.API_ERROR,t,i,n)},this.addPlayerListener=function(e,t){i.indexOf(i.values(this.EVENTS),e)<0||(null==g[e]&&(g[e]=[]),i.isFunction(t)&&g[e].push(t))},this.notify=function(e,t,i){f.publish(e,t,i)},this.removePlayerListener=function(e,t){var i=g[e];if(i){var n=i.indexOf(t);n>=0&&i.splice(n,1),i.length<=0&&delete g[e]}};var Ke=i.bind(function(e){if(g[e]&&i.isArray(g[e]))for(var t=0;t<g[e].length;t++)g[e][t].apply(this,arguments)},this);this.onPlay=function(){r.inArray(this.currentState,pe)<0||!this.adStarted||f.publish(e.EVENTS.WILL_RESUME_ADS)},this.onInitialPlay=function(t,n,a){for(var r in K=!0,this.startTime<=0&&(R=0,this.startTime=0),lt(),this.isLiveStream&&(this.liveStreamTimestamps.initialPlay={ms:n,delayUsed:!1}),le=0,this.adManagers){if(this.adManagers[r])if(Ie(L,r).length)for(var s=E(this.adManagers[r],"createAdVideoElementOnPlayerInit",[])||[],o=void 0,l=0;l<s.length;l++)(o={})[s[l]]="",this.ui.createAdVideoElement(o),le++}le?(f.subscribe(e.EVENTS.VC_ERROR,"amc",i.bind(function(){e.log("Error creating ad video element on initial play"),--le||this.setupInitialPlay(a)},this)),f.subscribe(e.EVENTS.VC_VIDEO_ELEMENT_CREATED,"amc",i.bind(function(){--le||this.setupInitialPlay(a)},this))):this.setupInitialPlay(a)},this.onAutoplayCheckComplete=function(e,t){v=!0,N=t,ze()},this.setupInitialPlay=function(t){I=t,void 0===_&&(_=!!t),f.unsubscribe(e.EVENTS.VC_ERROR,"amc"),f.unsubscribe(e.EVENTS.VC_VIDEO_ELEMENT_CREATED,"amc"),e.isAndroid&&e.isChrome&&f.publish(e.EVENTS.VC_RELOAD,e.VIDEO.MAIN),R=this.startTime,ce&&K&&Re(),ze()};var ze=i.bind(function(){var e=N.muted||N.unmuted,t=v&&(void 0===N.muted||void 0===N.unmuted),i=this.preloadAds;ue||!K&&!i||I&&_&&!e&&!t||(K&&(ue=!0,Ke(this.EVENTS.INITIAL_PLAY_REQUESTED,I)),Ce(R,R>0,null,!K))},this);this.onReplay=function(){this.startTime=0,R=0,lt(),ut(),ct(),ye(),Ve(),Ke(this.EVENTS.REPLAY_REQUESTED),this.adManagerSettings[c.REPLAY_ADS]?(L=[],Oe()):i.each(L,i.bind(function(e){e.played=!0},this)),Ce(0,!1)},this.onWillPlayFromBeginning=function(){H||r.inArray(this.currentState,pe)>=0||(C=this.currentEmbedCode)},this.onSetEmbedCode=function(e,t,n){n&&(this.pageSettings=i.extend(this.pageSettings,n))},this.onEmbedCodeChanged=function(e,t){for(var i in this.adManagers)this.adManagers[i].ready=!1;t!==this.currentEmbedCode&&(C=this.currentEmbedCode),this.currentEmbedCode=t,""!==C&&C!==this.currentEmbedCode&&(Ke(this.EVENTS.CONTENT_CHANGED),et())},this.onPlayheadTimeChanged=function(t,n,a,r,s,o){var l=null,u=n;if(this.isLiveStream&&!Y&&(l=u,u=st()),o===e.VIDEO.MAIN){if(-1===this.movieDuration&&a>0&&(this.movieDuration=a),!H||this.ended)return;if(R=u,U||M||B)return;if(!j&&R>this.startTime&&(e.log("Reached start time at playhead: "+R+" for start time: "+this.startTime),j=!0),-1===this.startTime)return void(this.startTime=R);if(nt()||!ue)return;j&&Ce(R,!0),Ke(this.EVENTS.PLAYHEAD_TIME_CHANGED,u,a,l)}else if(o===e.VIDEO.ADS){var d={};d[c.SHOW_LINEAR_AD_SKIP_BUTTON]=ne;var h=qe(c.SHOW_LINEAR_AD_SKIP_BUTTON,[this.pageSettings,d,this.adManagerSettings]);if(void 0!==h&&(h=ge(h)),h){var A;ae&&(A=ae.indexOf("%")===ae.length-1?parseInt(ae)/100*Z.duration:parseInt(ae)),d[c.LINEAR_AD_SKIP_BUTTON_START_TIME]=A;var E=qe(c.LINEAR_AD_SKIP_BUTTON_START_TIME,[this.pageSettings,d,this.adManagerSettings]);i.isNumber(E)&&E>=0&&u>=E&&f.publish(e.EVENTS.SHOW_AD_SKIP_BUTTON)}Ke(this.EVENTS.AD_PLAYHEAD_TIME_CHANGED,u,a,l)}}.bind(this);var qe=i.bind(function(e,t){for(var i,n=0;n<t.length&&void 0===(i=t[n][e]);n++);return i},this);this.onPause=function(){if(r.inArray(this.currentState,pe)>=0&&this.adStarted)Z&&this.adManagers[Z.adManager]&&f.publish(e.EVENTS.WILL_PAUSE_ADS);else{if(U=!0,Q){Ke("pauseOverlayTimer")}H&&Ke(this.EVENTS.PAUSE)}},this.onVideoPaused=function(){this.liveStreamTimestamps&&(this.liveStreamTimestamps.paused={ms:Date.now(),delayUsed:!1})},this.onWillPauseAds=function(){Z&&this.adManagers[Z.adManager]&&(E(this.adManagers[Z.adManager],"pauseAd",[Z]),(!Z.ad||Z.ad&&!Z.ad.ssai)&&f.publish(e.EVENTS.VC_PAUSE,e.VIDEO.ADS),$=!0)},this.onWillResumeAds=function(){Z&&this.adManagers[Z.adManager]&&(E(this.adManagers[Z.adManager],"resumeAd",[Z]),(!Z.ad||Z.ad&&!Z.ad.ssai)&&f.publish(e.EVENTS.VC_PLAY,e.VIDEO.ADS),$=!1)},this.onGuidSet=function(e,t){Ke(this.EVENTS.DEVICE_ID_SET,t)},this.onWillPlay=function(e,t){H||Ke(this.EVENTS.PLAY_STARTED),U&&x&&Ke(this.EVENTS.RESUME,t),U&&(U=!1,M&&$e())};var Xe=i.bind(function(t,i){i===e.VIDEO.MAIN&&(x=!0)},this);this.onPlaying=function(){!H&&I&&!1===N.muted&&!1===N.unmuted&&(I=!1,ze()),B=!1,H=!0},this.onVideoPlayed=function(t,i){i===e.VIDEO.MAIN?Qe(t,i):i===e.VIDEO.ADS&&(Z&&Z.isLinear&&this.adManagers[Z.adManager]?E(this.adManagers[Z.adManager],"adVideoEnded"):m&&E(m,"adVideoEnded"))},this.onVideoElementInFocus=function(t,i){i===e.VIDEO.MAIN&&(We(),Ke(this.EVENTS.MAIN_CONTENT_IN_FOCUS))};var Qe=i.bind(function(t,i){i===e.VIDEO.MAIN&&(Q&&tt(),this.ended=!0,J=null,Q=!1,this.waitForPostrollToPlay=!1,Ke(this.EVENTS.CONTENT_COMPLETED),Ce(Number.MAX_VALUE,!1,Ae),de&&f.publish(e.EVENTS.AMC_ALL_ADS_DONE))},this);this.onPlayed=function(){H=!1,x=!1,C=this.currentEmbedCode},this.onSeek=function(e,t){r.inArray(this.currentState,pe)>=0?Z&&Z.adManager&&E(this.adManagers[Z.adManager],"seekAd"):(j||t===this.startTime||(j=!0),k=t>=V,F=t,R=t,B=!0)},this.onSeeked=function(e,t){"number"==typeof t&&(R=t),B=!1,Je()},this.onVideoPlaying=function(t,i){rt(),i===e.VIDEO.ADS&&Z&&E(this.adManagers[Z.adManager],"adVideoPlaying")},this.onVideoPlayFailed=function(t,i,n){i===e.VIDEO.ADS?Z&&Z.isLinear&&this.adManagers[Z.adManager]&&E(this.adManagers[Z.adManager],"adVideoError",[Z,n]):i===e.VIDEO.MAIN&&dt()};var Ze=i.bind(function(){M=!1,B=!1},this),Je=i.bind(function(){H&&(B=!1,M=!0,U||$e())},this),$e=i.bind(function(){Ze(),j&&Ce(R,!0,he)},this),et=i.bind(function(){Me({code:this.AD_CANCEL_CODE.STREAM_ENDED}),dt(),z=!0},this);this.onFullscreenChanged=function(e,t){t!==W&&(Ke(this.EVENTS.FULLSCREEN_CHANGED,t),W=t)},this.onSizeChanged=function(e,t,i){t<0||i<0||(this.ui.height=i,this.ui.width=t,Ke(this.EVENTS.SIZE_CHANGED,t,i))},this.onControlsShown=function(){Ke(this.EVENTS.CONTROLS_SHOWN)},this.onControlsHidden=function(){Ke(this.EVENTS.CONTROLS_HIDDEN)},this.onVolumeChanged=function(t,i,n){Ke(this.EVENTS.VOLUME_CHANGED,i),(n===e.VIDEO.ADS||oe)&&Ke(this.EVENTS.AD_VOLUME_CHANGED,i)},this.onMuteStateChanged=function(e,t,i,n){Ke(this.EVENTS.MUTE_STATE_CHANGED,t)},this.onSkinUiLanguage=function(e,t){i.isString(t)&&(this.uiLanguage=t)},this.adsClicked=function(t){if(m&&E(m,"playerClicked"),Z)if(!$||t&&"learnMoreButton"===t.source){if(this.adManagerSettings[c.PAUSE_AD_ON_CLICK]&&(Z&&(!Z.isLinear||Z.ad&&Z.ad.ssai)?f.publish(e.EVENTS.PAUSE):this.onPause()),Z.isLinear&&!this.adManagerSettings[c.ALLOW_AD_CLICK_THROUGH_ON_VIDEO]&&t&&"videoWindow"===t.source)return;this.adManagers[Z.adManager]&&E(this.adManagers[Z.adManager],"playerClicked",[Z,!0])}else f.publish(e.EVENTS.PLAY)},this.adsClickthroughOpened=function(){f.publish(e.EVENTS.ADS_CLICKTHROUGH_OPENED)},this.onSkipAd=function(){m&&E(m,"cancelAd",[Z,{code:this.AD_CANCEL_CODE.SKIPPED}]),"LinearAd"===this.currentState?(e.log("AMC: Canceling linear ad due to skip button clicked."),Fe(Z,{code:this.AD_CANCEL_CODE.SKIPPED})):"Overlay"===this.currentState&&(e.log("AMC: Canceling nonlinear ad due to skip button clicked."),tt())};var tt=i.bind(function(){Q&&Z&&this.adManagers[Z.adManager]&&(ee=!0,E(this.adManagers[Z.adManager],"cancelOverlay",[Z]),f.publish(e.EVENTS.NONLINEAR_AD_PLAYED,Z.id))},this),it=i.bind(function(t){Ze(),Q&&Z&&this.adManagers[Z.adManager]&&(i.isFunction(this.adManagers[Z.adManager].hideOverlay)?(E(this.adManagers[Z.adManager],"hideOverlay",[Z]),f.publish(e.EVENTS.HIDE_NONLINEAR_AD)):tt()),f.publish(e.EVENTS.AMC_AD_SETUP)},this),nt=i.bind(function(){return r.inArray(this.currentState,pe)>=0},this);this.onAdManagerControllerAdSetup=function(){ke()},this.onAdPodStarted=function(){f.publish(e.EVENTS.DISABLE_SEEKING,e.VIDEO.ADS)},this.onWillPlayNonlinearAd=function(t,n){var a=i.bind(function(t,i,n){J=null,e.log("AMC: Cancelling a non-linear ad due to timeout "+n),Fe(i,{code:this.AD_CANCEL_CODE.TIMEOUT}),t.publish(e.EVENTS.NONLINEAR_AD_PLAYED,n)},this,f,n,n.id);He(n,a,o),n.adManager&&this.adManagers[n.adManager]?E(this.adManagers[n.adManager],"playAd",[n]):this.notifyNonlinearAdEnded(n.id)},this.onPlayNonlinearAd=function(){};var at=i.bind(function(){ct(),ee||ke()},this);this.onAdPodEnded=function(t,i){se=!1,f.publish(e.EVENTS.ENABLE_SEEKING,e.VIDEO.ADS),f.publish(e.EVENTS.VC_SET_VIDEO_STREAMS,e.VIDEO.ADS,null),at(i)},this.onNonlinearAdDisplayed=function(e){Ke(this.EVENTS.NONLINEAR_AD_DISPLAYED)},this.onNonlinearAdPlayed=function(e,t){at(t)},this.tryAdsCompleted=function(){var t=!1;return this.ended&&!this.waitForPostrollToPlay&&(w.length<=0||w[0]&&!w[0].isLinear&&!w[0].isRequest)&&(this.waitForPostrollToPlay=!0,this.ui.transitionToMainContent(!1,this.ended),t=!0,e.log("AMC: All ads completed, unblocking played event"),f.publish(e.EVENTS.AMC_ALL_ADS_DONE)),t},this.onAdsPlayed=function(){if(ee=!1,!this.tryAdsCompleted()){var t,i=!z&&this.ui.isAdInFocus(),n=Math.max(0,this.startTime),a=R-n;H&&a>=0&&a<=D&&e.requiresSingleVideoElement&&(t=n),this.ui.transitionToMainContent(i,this.ended,t),Re(),ke(),ct(),Q&&Z&&this.adManagers[Z.adManager]&&(E(this.adManagers[Z.adManager],"showOverlay"),f.publish(e.EVENTS.SHOW_NONLINEAR_AD))}},this.onAdsClicked=function(e,t){this.adsClicked(t)},this.onVideoTagFound=function(e,t,i,n){Ke(this.EVENTS.VIDEO_TAG_FOUND,t,i,n)},this.onVideoElementCreated=i.bind(function(t,i){if(i.videoId===e.VIDEO.MAIN){var n=i.streamUrl;n&&Ke(this.EVENTS.CONTENT_URL_CHANGED,n)}},this),this.onChromecastStartCast=function(){de=!0,f.unsubscribe(e.EVENTS.PLAYHEAD_TIME_CHANGED,u,this.onPlayheadTimeChanged)},this.onChromecastEndCast=function(){de=!1,f.subscribe(e.EVENTS.PLAYHEAD_TIME_CHANGED,u,this.onPlayheadTimeChanged)},this.onAdSdkLoaded=function(t){e.log("onAdSdkLoaded: ",t,e.VERSION.core.releaseVersion),f.publish(e.EVENTS.AD_SDK_LOADED,t,e.VERSION.core.releaseVersion)},this.onAdSdkLoadFailure=function(t,i){f.publish(e.EVENTS.AD_SDK_LOAD_FAILED,t,e.VERSION.core.releaseVersion,i)},this.onAdRequest=function(t,i){f.publish(e.EVENTS.AD_REQUEST,t,i)},this.onAdRequestSuccess=function(t,i,n,a){f.publish(e.EVENTS.AD_REQUEST_SUCCESS,t,i,n,a)},this.onAdRequestEmpty=function(t,i,n,a,r){f.publish(e.EVENTS.AD_REQUEST_EMPTY,t,i,n,a,r)},this.onAdRequestError=function(t,i,n,a,r,s){f.publish(e.EVENTS.AD_REQUEST_ERROR,t,i,n,a,r,s)},this.onAdPlaybackError=function(t,i,n,a,r,s){var o=e.Video.getRegisteredPlugins(),l={pluginNames:Object.getOwnPropertyNames(o)};f.publish(e.EVENTS.AD_PLAYBACK_ERROR,t,i,n,a,r,l,s)},this.onAdSdkImpression=function(t,i,n,a,r){f.publish(e.EVENTS.AD_SDK_IMPRESSION,t,i,n,a,r)},this.onAdCompleted=function(t,i,n,a){f.publish(e.EVENTS.AD_COMPLETED,t,i,n,a)},this.onSdkAdEvent=function(t,i,n){f.publish(e.EVENTS.SDK_AD_EVENT,t,i,n)};var rt=i.bind(function(){var e=Date.now(),t=this.liveStreamTimestamps.paused,n=this.liveStreamTimestamps.initialPlay;t&&i.isFinite(t.ms)&&!t.delayUsed&&(this.timeMainVideoIdleMs+=e-t.ms,this.liveStreamTimestamps.paused.delayUsed=!0),n&&i.isFinite(n.ms)&&!n.delayUsed&&(this.timeMainVideoIdleMs+=e-n.ms,this.liveStreamTimestamps.initialPlay.delayUsed=!0)},this),st=i.bind(function(){if(this.liveStreamTimestamps&&this.liveStreamTimestamps.initialPlay){return(Date.now()-this.liveStreamTimestamps.initialPlay.ms-this.timeMainVideoIdleMs)/1e3}return 0},this),ot=function(t,i){var n=t>0?t:0,a=i>0?i:0,r=e.localStorage.getItem("OO Main Video Count"),s=!1;return(r=r&&+r>0?+r:0)>=n&&(0===a||(r-n)%a==0)&&(s=!0),s},lt=i.bind(function(){var t=e.localStorage.getItem("OO Main Video Count");t=1+(t&&+t>0?+t:0),e.setItem("OO Main Video Count",t),e.log("MAIN VIDEO COUNT: "+e.localStorage.getItem("OO Main Video Count"))},this),ct=i.bind(function(){J?(Z=J,Q=!0,this.adStarted=!0):(Z=null,Q=!1,this.adStarted=!1),re=!1,$=!1,oe=!1,ne=!0,ae=null,se=!1},this),ut=i.bind(function(){w=[],M=!1,B=!1,U=!1,J=null,this.ended=!1,V=0,k=!1,F=0,this.waitForPostrollToPlay=!0,H=!1,x=!1,b=!1,S=!1,K=!1,q=!1},this),dt=i.bind(function(t){T=!1,y=!1,ue=!1,this.movieMetadata=null,this.startTime=-1,this.movieDuration=-1,this.isLiveStream=!1,R=0,L=[],ee=!1,f.unsubscribe(e.EVENTS.VC_VIDEO_ELEMENT_CREATED,"amc"),f.unsubscribe(e.EVENTS.VC_VIDEO_ELEMENT_IN_FOCUS,"amc"),f.unsubscribe(e.EVENTS.VC_ERROR,"amc"),ut(),ct(),ye(t)},this),ht=i.bind(function(){for(var e in this.ui&&"function"==typeof this.ui.destroy&&this.ui.destroy(),te)te.hasOwnProperty(e)&&Ye(e);for(var t in"LinearAd"!==this.currentState&&"Overlay"!==this.currentState||Me({code:this.AD_CANCEL_CODE.STREAM_ENDED}),this.adManagers)this.unregisterAdManager(t);this.fsm.destroyFsm(),dt(!0)},this);this.onDestroy=function(){ht()},this.getRegisteredAdManagers=function(){return this.adManagers},this.unregisterAdManager=function(t){if(e.log("AMC: Removing an ad manager: "+t),t&&this.adManagers[t]){if(i.isFunction(this.adManagers[t].destroy))try{this.adManagers[t].destroy()}catch(t){e.log("AMC: Error destroying an ad manager - "+t)}this.unregisteredAdManagers.push(t),delete this.adManagers[t]}}};var E=function(t,n,a){try{if(i.isFunction(t[n]))return t[n].apply(t,a)}catch(i){e.log("AMC: ad manager",t&&t.name,"at function '"+n+"' threw exception -",i)}return null},p=null,f=i.bind(function(t,i){return p=new e.AdManagerController(t,i)},this);e.TEST_TEST_TEST&&(t.amcModuleFactory=f),e.registerModule("adManagerController",f)}(OO,OO._,OO.$)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/objectSpread":16,"@babel/runtime/helpers/typeof":18}],64:[function(e,t,i){"use strict";OO.Ads.manager(function(e,t){return new function(){this.name="ooyala-ads-manager",this.adId=null,this.ready=!1,this.initTime=Date.now(),this.movieMetadata={},this.streams={};var t=null,i="",n="",a=!0,r={},s=!1,o=!1,l=!1,c=!1,u=0,d=e.bind(function(){OO.log(this.name+": resetting"),this.adId=null,this.ready=!1,this.initTime=Date.now(),this.movieMetadata={},this.streams={},i="",n="",a=!0,r={},s=!1,o=!1,l=!1,c=!1},this);this.initialize=function(e,i){d(),u=(new Date).getTime(),t=e},this.loadMetadata=function(e,i,r){OO.log(this.name+": Load Metadata at "+((new Date).getTime()-u)+" ms"),t&&(t.addPlayerListener(t.EVENTS.CONTENT_CHANGED,f),this.movieMetadata=r,a&&r&&(this.ready=!1,n=r.embed_code,a=!1),o=!0,h())},this.authorizationFetched=function(){OO.log(this.name+": Authorization Fetched at "+((new Date).getTime()-u)+" ms")};var h=e.bind(function(){if(OO.log(this.name+": Try Fetch Ad Authorization at "+((new Date).getTime()-u)+" ms"),o&&t&&!l){if(!this.movieMetadata||!this.movieMetadata.ads||this.movieMetadata.ads.length<=0||!this.movieMetadata.ads[0]||!this.movieMetadata.ads[0].ad_embed_code)return OO.log(this.name+": No Ooyala Ads at "+((new Date).getTime()-u)+" ms"),l=!0,E(),d(),void(this.ready=!0);OO.log(this.name+": Fetching Ad Authorization at "+((new Date).getTime()-u)+" ms"),l=!0,i=this.movieMetadata.ads[0].ad_embed_code;var e={pcode:this.movieMetadata.asset_pcode||"unknown",embedCode:i,server:OO.SERVER.AUTH,params:OO.playerParams};t.notify(t.EVENTS.WILL_FETCH_AD_AUTHORIZATION,e,A)}},this),A=function(e,t,i){OO.log("Error: Failed SAS call for Ooyala Ad. Continuing on with playback."),E()};this.ooyalaAdData=function(e){OO.log(this.name+": Ooyala Ad Data at "+((new Date).getTime()-u)+" ms"),e&&(this.streams[OO.VIDEO.ENCODING.MP4]=e,E())};var E=e.bind(function(){OO.log(this.name+": Set ready at "+((new Date).getTime()-u)+" ms"),this.ready=!0;var i=Date.now()-this.initTime;t.reportPluginLoaded(i,this.name);var n=!e.isEmpty(this.streams);t.onAdManagerReady(n)},this);this.buildTimeline=function(){var e=[];if(OO.log(this.name+": Build Timeline at "+((new Date).getTime()-u)+" ms"),!this.movieMetadata||!this.movieMetadata.ads)return e;for(var i=0;i<this.movieMetadata.ads.length;i++){var n=this.movieMetadata.ads[i];if(n&&"ooyala"===n.type){var a={position:n.time,adManager:this.name,ad:n,streams:{},adType:t.ADTYPE.UNKNOWN_AD_REQUEST};a.streams[OO.VIDEO.ENCODING.MP4]="";var r=new t.Ad(a);e.push(r)}}return e},this.playAd=function(n){OO.log(this.name+": Play Ad at "+((new Date).getTime()-u)+" ms"),t.pageSettings.autoPlay=!0,t.pageSettings.ooyalaAds=!0,r.indexInPod=1,this.movieMetadata?(r.name=this.movieMetadata.title,r.duration=this.movieMetadata.duration):(r.name="",r.duration=30),r.ooyalaAds=!0,r.hasClickUrl=n.ad.click_url,r.skippable=!1,this.adId=n.id;var a=e.clone(t.pageSettings);a.onCreate=null,a.isAd=!0,t.notify(t.EVENTS.SET_EMBED_CODE,i,a),t.notifyLinearAdStarted(n.id,r)},this.cancelAd=function(e,i){if(OO.log("Cancelling Ooyala ad"),i&&i.code===t.AD_CANCEL_CODE.SKIPPED){t.pageSettings.ooyalaAds=!1,t.notify(OO.EVENTS.SINGLE_AD_PLAYED,this.adId),t.notify(OO.EVENTS.AD_POD_ENDED,this.adId);var a=n;d(),c=!0,t.notify(OO.EVENTS.SET_EMBED_CODE_AFTER_OOYALA_AD,a,t.pageSettings)}},this.playerClicked=function(){OO.log("Click Url = "+r.hasClickUrl),s?(t.notify(OO.EVENTS.PLAY),s=!1):(t.notify(OO.EVENTS.PAUSE),this.openUrl(r.hasClickUrl)&&t.adsClickthroughOpened(),s=!0)};var p=e.bind(function(e){return"string"==typeof e&&e.length>0},this);this.openUrl=function(e){return!!p(e)&&(window.open(e),!0)},this.adVideoEnded=function(){OO.log(this.name+": adVideoEnded at "+((new Date).getTime()-u)+" ms"),t.pageSettings.ooyalaAds=!1,t.notify(OO.EVENTS.SINGLE_AD_PLAYED,this.adId),t.notify(OO.EVENTS.AD_POD_ENDED,this.adId);var e=n;d(),c=!0,t.notify(OO.EVENTS.SET_EMBED_CODE_AFTER_OOYALA_AD,e,t.pageSettings)};var f=e.bind(function(){OO.log(this.name+": onContentChanged at "+((new Date).getTime()-u)+" ms"),u=(new Date).getTime(),this.ready=!0,c&&d()},this);this.destroy=function(){OO.log(this.name+": Destroy at "+((new Date).getTime()-u)+" ms"),t&&t.removePlayerListener(t.EVENTS.CONTENT_CHANGED,f),s=!1}}})},{}],65:[function(e,t,i){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),a=n(e("@babel/runtime/helpers/classCallCheck")),r=n(e("@babel/runtime/helpers/createClass"));if(window.WebKitPlaybackTargetAvailabilityEvent&&OO.isSafari){var s="Airplay";OO.plugin(s,function(e){return function(){function t(i){var n=this;(0,a.default)(this,t),this.mb=i,this.airplayEnabledInPlayerParams=!0,this.vcVideoElementParams=null,this.safariPriorTo12m1=t.checkIfSafariVersionIsPriorTo12minor1(),this.ignoreFirstConnectedEvent=this.safariPriorTo12m1,this.ignoreSecondConnectedEvent=!1,this.availability=null,this.isSessionResumed=t.checkIfPageWasReloadedWhileCasting(),this.isAirplayConnected=this.isSessionResumed,this.mb.subscribe(e.EVENTS.PLAYER_CREATED,s,this.onPlayerCreated.bind(this)),this.mb.subscribe(e.EVENTS.VC_VIDEO_ELEMENT_CREATED,s,this.onVcVideoElementCreated.bind(this)),this.mb.subscribe(e.EVENTS.AIRPLAY.BUTTON_CLICKED,s,this.onAirplayButtonClicked.bind(this)),this.mb.subscribe(e.EVENTS.WILL_PLAY_ADS,s,function(){n.adsPlaying=!0}),this.mb.subscribe(e.EVENTS.ADS_PLAYED,s,function(){n.adsPlaying=!1}),this.mb.subscribe(e.EVENTS.SET_EMBED_CODE,s,function(){n.safariPriorTo12m1&&n.isAirplayConnected&&!n.isSessionResumed&&(n.ignoreSecondConnectedEvent=!0)}),this.mb.subscribe(e.EVENTS.CAN_PLAY,s,function(){n.vcVideoElementParams&&(n.webkitListenersInitialized||(n.video=n.vcVideoElementParams.parent[0].querySelector("video"),n.video&&n.airplayEnabledInPlayerParams&&(n.initWebkitListeners(),n.webkitListenersInitialized=!0)))})}return(0,r.default)(t,[{key:"onPlayerCreated",value:function(e,t,i){!1!==i.airplay&&"false"!==i.airplay||(this.airplayEnabledInPlayerParams=!1)}},{key:"onVcVideoElementCreated",value:function(e,t){this.safariPriorTo12m1&&(this.ignoreFirstConnectedEvent=!0),this.webkitListenersInitialized||(this.vcVideoElementParams=t,this.video=t.parent[0].querySelector("video"),this.video&&this.airplayEnabledInPlayerParams&&(this.initWebkitListeners(),this.webkitListenersInitialized=!0))}},{key:"initWebkitListeners",value:function(){this.video.addEventListener("webkitplaybacktargetavailabilitychanged",this.onAvailabilityChanged.bind(this)),this.video.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",this.onConnectedChanged.bind(this))}},{key:"onAvailabilityChanged",value:function(t){var i="available"===t.availability;this.availability!==i&&(this.availability=i,this.mb.publish(e.EVENTS.AIRPLAY.AVAILABILITY_CHANGED,i))}},{key:"onConnectedChanged",value:function(){if(!this.adsPlaying)if(this.safariPriorTo12m1&&this.ignoreFirstConnectedEvent)this.ignoreFirstConnectedEvent=!1;else if(this.safariPriorTo12m1&&this.ignoreSecondConnectedEvent)this.ignoreSecondConnectedEvent=!1;else{if(this.isSessionResumed)return this.isSessionResumed=!1,void this.mb.publish(e.EVENTS.AIRPLAY.SESSION_RESUMED);t.toggleSessionStorageMarker(),this.isAirplayConnected=!this.isAirplayConnected,this.mb.publish(e.EVENTS.AIRPLAY.CONNECTION_CHANGED,this.isAirplayConnected)}}},{key:"onAirplayButtonClicked",value:function(){var e=this;setTimeout(function(){return e.video.webkitShowPlaybackTargetPicker()})}}],[{key:"checkIfPageWasReloadedWhileCasting",value:function(){return Boolean(window.sessionStorage.getItem("OO_AIRPLAY_CONNECTED"))}},{key:"checkIfSafariVersionIsPriorTo12minor1",value:function(){try{return parseFloat(window.navigator.userAgent.match(/Version\/([\d.]+)/)[1])<12.1}catch(e){return!1}}},{key:"toggleSessionStorageMarker",value:function(){window.sessionStorage.getItem("OO_AIRPLAY_CONNECTED")?window.sessionStorage.removeItem("OO_AIRPLAY_CONNECTED"):window.sessionStorage.setItem("OO_AIRPLAY_CONNECTED",!0)}}]),t}()})}},{"@babel/runtime/helpers/classCallCheck":10,"@babel/runtime/helpers/createClass":11,"@babel/runtime/helpers/interopRequireDefault":13}],66:[function(e,t,i){"use strict";OO.exposeStaticApi("Analytics",OO.Analytics),OO.plugin(OO.MODULE_NAMES.ANALYTICS_FRAMEWORK_TRANSLATOR,function(e,t,i){var n,a,r=!1,s=!1,o=null,l=!1,c={};c.SAS=e.ERROR.API.SAS,c.PLAYBACK=e.ERROR.PLAYBACK,c.METADATA_LOADING=e.ERROR.API,c.GENERAL=e.ERROR;var u=t.bind(function(e){if(!t.isFunction(e))throw Ne("Trying to make private function but "+e+" is not a function.");return t.bind(e,this)},this),d=u(function(t,i,n,r,s,o,l){var c;try{c=new e.Analytics.EVENT_DATA.VideoPlayerCreatedData(e.VERSION.core.releaseVersion,n,s,l)}catch(e){De(t),c={}}a.setPluginMetadata(n),a.publishEvent(e.Analytics.EVENTS.VIDEO_PLAYER_CREATED,[c])}),h=u(function(t,i,n){var r;try{r=new e.Analytics.EVENT_DATA.VideoSourceData(i,n)}catch(e){De(t),r={}}a.setPluginMetadata(n),a.publishEvent(e.Analytics.EVENTS.VIDEO_SOURCE_CHANGED,[r])}),A=u(function(t,i){var n;try{var r=i;null!==r.closed_captions&&void 0!==r.closed_captions||(r.closed_captions={}),n=new e.Analytics.EVENT_DATA.VideoContentMetadata(r.title,r.description,r.duration,r.closed_captions,r.content_type,r.hostedAtURL)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.VIDEO_CONTENT_METADATA_UPDATED,[n])}),E=u(function(t,i){var n;try{n=i}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.VIDEO_STREAM_METADATA_UPDATED,[n])}),p=u(function(t,i){var n;try{var r;r=i&&i.streams&&i.streams[0]&&i.streams[0].is_live_stream?e.Analytics.STREAM_TYPE.LIVE_STREAM:e.Analytics.STREAM_TYPE.VOD,n=new e.Analytics.EVENT_DATA.StreamTypeMetadata(r)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.STREAM_TYPE_UPDATED,[n])}),f=u(function(t){a.publishEvent(e.Analytics.EVENTS.INITIAL_PLAYBACK_REQUESTED)}),T=u(function(t){a.publishEvent(e.Analytics.EVENTS.VIDEO_PLAY_REQUESTED)}),g=u(function(t,i,n,r,s){var o;try{o=new e.Analytics.EVENT_DATA.VideoDownloadingMetadata(i,n,r,s.start,s.end)}catch(e){o={},De(t)}a.publishEvent(e.Analytics.EVENTS.VIDEO_STREAM_DOWNLOADING,[o])}),y=u(function(t,i,n,r){var s;try{s=new e.Analytics.EVENT_DATA.VideoBufferingStartedData(i,n,r)}catch(e){De(t),s={}}a.publishEvent(e.Analytics.EVENTS.VIDEO_BUFFERING_STARTED,[s])}),m=u(function(t,i){var n;try{n=new e.Analytics.EVENT_DATA.VideoBufferingEndedData(i)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.VIDEO_BUFFERING_ENDED,[n])}),_=u(function(t,i){var n;try{n=new e.Analytics.EVENT_DATA.VideoBitrateProfileLookupData(i.bitrates)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.VIDEO_STREAM_BITRATE_PROFILES,[n])}),S=u(function(t,i){var n;try{n=new e.Analytics.EVENT_DATA.VideoTargetBitrateData(i)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.VIDEO_STREAM_TARGET_BITRATE_REQUESTED,[n])}),O=u(function(t,i){var n;try{n=new e.Analytics.EVENT_DATA.VideoBitrateProfileData(i)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.VIDEO_STREAM_BITRATE_CHANGED,[n])}),b=u(function(t){a.publishEvent(e.Analytics.EVENTS.VIDEO_PLAYING)}),v=u(function(t,i,n,r,s,o,l){var c;try{var u=l;null==u&&(u=-1),c=new e.Analytics.EVENT_DATA.VideoStreamPositionChangedData(i,n,o,u)}catch(e){De(t),c={}}a.publishEvent(e.Analytics.EVENTS.VIDEO_STREAM_POSITION_CHANGED,[c])}),I=u(function(t){a.publishEvent(e.Analytics.EVENTS.PLAYBACK_COMPLETED)}),N=u(function(t){a.publishEvent(e.Analytics.EVENTS.VIDEO_PAUSE_REQUESTED)}),D=u(function(t){a.publishEvent(e.Analytics.EVENTS.VIDEO_PAUSED)}),C=u(function(t){a.publishEvent(e.Analytics.EVENTS.VIDEO_REPLAY_REQUESTED)}),R=u(function(t,i){var n;try{n=new e.Analytics.EVENT_DATA.VideoSeekRequestedData(i)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.VIDEO_SEEK_REQUESTED,[n])}),L=u(function(t,i){var n;try{n=new e.Analytics.EVENT_DATA.VideoSeekCompletedData(i)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.VIDEO_SEEK_COMPLETED,[n])}),P=u(function(t){return a.publishEvent(e.Analytics.EVENTS.WILL_PLAY_FROM_BEGINNING)}),w=u(function(t,i,n,r,s,o,l,c,u,d,h){var A;try{A=new e.Analytics.EVENT_DATA.InitialPlayStartingData(e.VERSION.core.releaseVersion,i,n,r,s,o,l,c,u,d,h)}catch(e){De(t),A={}}a.publishEvent(e.Analytics.EVENTS.INITIAL_PLAY_STARTING,[A])}),k=u(function(t,i){var n;try{var r={};e.Video&&(r=e.Video.getRegisteredPlugins());var s=[];r&&(s=Object.getOwnPropertyNames(r)),n=new e.Analytics.EVENT_DATA.PlaybackReadyData(e.VERSION.core.releaseVersion,i,s)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.PLAYBACK_READY,[n])}),V=u(function(t,i,n,r){var s;try{s=new e.Analytics.EVENT_DATA.ApiErrorData(e.VERSION.core.releaseVersion,i,n,r)}catch(e){De(t),s={}}a.publishEvent(e.Analytics.EVENTS.API_ERROR,[s])}),B=u(function(t,i){if(-1!==i){var n;try{n=new e.Analytics.EVENT_DATA.BitrateInitialData(i)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.BITRATE_INITIAL,[n])}}),M=u(function(t,i){var n;try{n=new e.Analytics.EVENT_DATA.BitrateFiveSecData(i)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.BITRATE_FIVE_SEC,[n])}),F=u(function(t,i){var n;try{n=new e.Analytics.EVENT_DATA.BitrateStableData(i)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.BITRATE_STABLE,[n])}),U=u(function(t,i){var n;try{var r={},s={};null!=i.pluginErrorMessage&&(r.plugin=i.pluginErrorMessage),null!=i.mediaErrorMessage&&(r.media=i.mediaErrorMessage),null!=i.ooyalaErrorMessage&&(r.ooyala=i.ooyalaErrorMessage),null!=i.pluginErrorCode&&(s.plugin=i.pluginErrorCode),null!=i.mediaErrorCode&&(s.media=i.mediaErrorCode),null!=i.ooyalaErrorCode&&(s.ooyala=i.ooyalaErrorCode),n=new e.Analytics.EVENT_DATA.PlaybackStartErrorData(s,r,i.drm)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.PLAYBACK_START_ERROR,[n])}),H=u(function(t,i,n,r){var s;try{s=new e.Analytics.EVENT_DATA.PluginLoadedData(e.VERSION.core.releaseVersion,i,n,r)}catch(e){De(t),s={}}a.publishEvent(e.Analytics.EVENTS.PLUGIN_LOADED,[s])}),x=u(function(t,i){var n;try{var r={},s={};null!=i.pluginErrorMessage&&(r.plugin=i.pluginErrorMessage),null!=i.mediaErrorMessage&&(r.media=i.mediaErrorMessage),null!=i.ooyalaErrorMessage&&(r.ooyala=i.ooyalaErrorMessage),null!=i.pluginErrorCode&&(s.plugin=i.pluginErrorCode),null!=i.mediaErrorCode&&(s.media=i.mediaErrorCode),null!=i.ooyalaErrorCode&&(s.ooyala=i.ooyalaErrorCode),n=new e.Analytics.EVENT_DATA.PlaybackMidstreamErrorData(s,r,i.playhead)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.PLAYBACK_MIDSTREAM_ERROR,[n])}),G=u(function(t,i,n){var r;try{r=new e.Analytics.EVENT_DATA.LoadAdSdkData(i,n)}catch(e){De(t),r={}}a.publishEvent(e.Analytics.EVENTS.AD_SDK_LOADED,[r])}),Y=u(function(t,i,n,r){var s;try{s=new e.Analytics.EVENT_DATA.LoadAdSdkFailureData(i,n,r)}catch(r){De(t),s={}}a.publishEvent(e.Analytics.EVENTS.AD_SDK_LOAD_FAILURE,[s])}),j=u(function(t,i,n){var r;try{r=new e.Analytics.EVENT_DATA.AdRequestData(i,n)}catch(e){De(t),r={}}a.publishEvent(e.Analytics.EVENTS.AD_REQUEST,[r])}),W=u(function(t,i,n,r,s){var o;try{o=new e.Analytics.EVENT_DATA.AdRequestSuccessData(i,n,r,s)}catch(e){De(t),o={}}a.publishEvent(e.Analytics.EVENTS.AD_REQUEST_SUCCESS,[o])}),K=u(function(t,i,n,r,s,o){var l;try{l=new e.Analytics.EVENT_DATA.AdRequestEmptyData(i,n,r,s,o)}catch(e){De(t),l={}}a.publishEvent(e.Analytics.EVENTS.AD_REQUEST_EMPTY,[l])}),z=u(function(t,i,n,r,s,o,l){var c;try{c=new e.Analytics.EVENT_DATA.AdRequestErrorData(i,n,r,s,o,l)}catch(e){De(t),c={}}a.publishEvent(e.Analytics.EVENTS.AD_REQUEST_ERROR,[c])}),q=u(function(t,i,n,r,s,o,l,c){var u;try{u=new e.Analytics.EVENT_DATA.AdPlaybackErrorData(i,n,r,s,o,l.pluginNames,c)}catch(e){De(t),u={}}a.publishEvent(e.Analytics.EVENTS.AD_PLAYBACK_ERROR,[u])}),X=u(function(t,i,n,r,s,o){var l;try{l=new e.Analytics.EVENT_DATA.AdSdkImpressionData(i,n,r,s,o)}catch(e){De(t),l={}}a.publishEvent(e.Analytics.EVENTS.AD_SDK_IMPRESSION,[l])}),Q=u(function(t,i,n,r,s){var o;try{o=new e.Analytics.EVENT_DATA.AdCompletedData(i,n,r,s)}catch(e){De(t),o={}}a.publishEvent(e.Analytics.EVENTS.AD_COMPLETED,[o])}),Z=u(function(t){r=!0,a.publishEvent(e.Analytics.EVENTS.AD_BREAK_STARTED)}),J=u(function(t,i){var n;try{n=new e.Analytics.EVENT_DATA.AdPodStartedData(i)}catch(e){De(t),n={}}var a=[n];s?$(a):o=a}),$=u(function(t){var i=t||[{}];a.publishEvent(e.Analytics.EVENTS.AD_POD_STARTED,i)}),ee=u(function(t,i){if(s){var n;try{n=new e.Analytics.EVENT_DATA.AdPodEndedData(i)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.AD_POD_ENDED,[n])}}),te=u(function(t,i){var n;s||($(o),o=null),s=!0,l=!1;try{n=new e.Analytics.EVENT_DATA.AdStartedData(e.Analytics.AD_TYPE.LINEAR_VIDEO,i)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.AD_STARTED,[n])}),ie=u(function(t,i){var n;try{n=new e.Analytics.EVENT_DATA.AdEndedData(e.Analytics.AD_TYPE.LINEAR_VIDEO,i)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.AD_ENDED,[n])}),ne=u(function(t,i){var n;try{n=new e.Analytics.EVENT_DATA.AdStartedData(e.Analytics.AD_TYPE.NONLINEAR_OVERLAY,i)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.AD_STARTED,[n])}),ae=u(function(t,i){var n;try{n=new e.Analytics.EVENT_DATA.AdEndedData(e.Analytics.AD_TYPE.NONLINEAR_OVERLAY,i)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.AD_ENDED,[n])}),re=u(function(t){r=!1,l=!1,s&&a.publishEvent(e.Analytics.EVENTS.AD_BREAK_ENDED),s=!1,o=null}),se=u(function(t){a.publishEvent(e.Analytics.EVENTS.AD_SKIPPED)}),oe=u(function(t,i){var n;try{n=new e.Analytics.EVENT_DATA.AdErrorData(i)}catch(i){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.AD_ERROR,[n])}),le=u(function(t,i){var n;try{n=new e.Analytics.EVENT_DATA.AdClickedData({adMetadata:i})}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.AD_CLICKED,[n])}),ce=u(function(t){a.publishEvent(e.Analytics.EVENTS.AD_CLICKTHROUGH_OPENED)}),ue=u(function(t,i,n,r){var s;try{s=new e.Analytics.EVENT_DATA.SdkAdEventData(i,n,r)}catch(i){e.log("Exception in AnalyticsFrameworkTranslator: "+i),De(t),s={}}a.publishEvent(e.Analytics.EVENTS.SDK_AD_EVENT,[s])}),de=u(function(t,i){var n;try{n=new e.Analytics.EVENT_DATA.FullscreenChangedData(i)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.FULLSCREEN_CHANGED,[n])}),he=u(function(t,i){var n;try{n=new e.Analytics.EVENT_DATA.VolumeChangedData(i)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.VOLUME_CHANGED,[n])}),Ae=u(function(t){a.publishEvent(e.Analytics.EVENTS.DESTROY)}),Ee=u(function(t,i){i===e.VIDEO.MAIN&&a.publishEvent(e.Analytics.EVENTS.VIDEO_CONTENT_COMPLETED)}),pe=u(function(t,i){i===e.VIDEO.ADS&&r&&!l&&(l=!0,a.publishEvent(e.Analytics.EVENTS.AD_IMPRESSION))}),fe=u(function(t,i,n){var r;try{r=new e.Analytics.EVENT_DATA.VideoErrorData(n.mediaErrorCode)}catch(e){De(t),r={}}a.publishEvent(e.Analytics.EVENTS.VIDEO_ERROR,[r])}),Te=u(function(t,i){if(i&&i.videoId===e.VIDEO.MAIN){var n=null;try{n=new e.Analytics.EVENT_DATA.VideoElementData(i.streamUrl)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.VIDEO_ELEMENT_CREATED,[n])}}),ge=u(function(t,i){var n;try{n=new e.Analytics.EVENT_DATA.SsaiPlaySingleAdData(i)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.SSAI_PLAY_SINGLE_AD,[n])}),ye=u(function(t){a.publishEvent(e.Analytics.EVENTS.SSAI_SINGLE_AD_PLAYED)}),me=u(function(t,i){var n;try{n=new e.Analytics.EVENT_DATA.SsaiAdTimelineReceivedData(i.ads)}catch(e){De(t),n={}}a.publishEvent(e.Analytics.EVENTS.SSAI_AD_TIMELINE_RECEIVED,[n])}),_e=u(function(t,i){if(i&&i.metadata){var n;try{n=new e.Analytics.EVENT_DATA.ReportDiscoveryImpressionEventData(i.metadata)}catch(i){e.log("Exception in AnalyticsFrameworkTranslator: "+i),De(t),n={}}a.publishEvent(e.Analytics.EVENTS.REPORT_DISCOVERY_IMPRESSION,[n])}}),Se=u(function(t,i){if(i&&i.metadata){var n;try{n=new e.Analytics.EVENT_DATA.ReportDiscoveryClickEventData(i.metadata)}catch(i){e.log("Exception in AnalyticsFrameworkTranslator: "+i),De(t),n={}}a.publishEvent(e.Analytics.EVENTS.REPORT_DISCOVERY_CLICK,[n])}}),Oe=u(function(t,i){if(i&&i.code){var n=i.code,r=Ie(n);if(r){var s,o=e.getLocalizedMessage(n);switch(r){case"SAS":s=new e.Analytics.EVENT_DATA.AuthorizationErrorData(n,o),a.publishEvent(e.Analytics.EVENTS.ERROR.AUTHORIZATION,[s]);break;case"PLAYBACK":s=new e.Analytics.EVENT_DATA.VideoPlaybackErrorData(n,o),a.publishEvent(e.Analytics.EVENTS.ERROR.VIDEO_PLAYBACK,[s]);break;case"METADATA_LOADING":s=new e.Analytics.EVENT_DATA.MetadataLoadingErrorData(n,o),a.publishEvent(e.Analytics.EVENTS.ERROR.METADATA_LOADING,[s]);break;case"GENERAL":s=new e.Analytics.EVENT_DATA.GeneralErrorData(n,o),a.publishEvent(e.Analytics.EVENTS.ERROR.GENERAL,[s])}}else Ne("error while reporting error message - error code does not fall under a recognized category. error code provided is: "+n)}else Ne("error while reporting error message - expected errorData is malformed: "+i)}),be=u(function(e){a.stopPublishingEvents()}),ve=u(function(e){a.resumePublishingEvents()}),Ie=u(function(e){for(var i=null,n=t.keys(c),a=0;a<n.length;a++){var r=n[a],s=t.values(c[r]);if(t.contains(s,e)){i=r;break}}return i}),Ne=u(function(e){return"Error AnalyticsFrameworkTranslator: "+e}),De=u(function(t){e.log(Ne(t+" data changed and is causing an error."))});return function(t,i){this.id=i,n=t,a=new e.Analytics.Framework,n.subscribe(e.EVENTS.PLAYER_CREATED,"AnalyticsFrameworkTranslator",d),n.subscribe(e.EVENTS.EMBED_CODE_CHANGED,"AnalyticsFrameworkTranslator",h),n.subscribe(e.EVENTS.EMBED_CODE_CHANGED_AFTER_OOYALA_AD,"AnalyticsFrameworkTranslator",h),n.subscribe(e.EVENTS.ASSET_CHANGED,"AnalyticsFrameworkTranslator",h),n.subscribe(e.EVENTS.CONTENT_TREE_FETCHED,"AnalyticsFrameworkTranslator",A),n.subscribe(e.EVENTS.METADATA_FETCHED,"AnalyticsFrameworkTranslator",E),n.subscribe(e.EVENTS.AUTHORIZATION_FETCHED,"AnalyticsFrameworkTranslator",p),n.subscribe(e.EVENTS.INITIAL_PLAY,"AnalyticsFrameworkTranslator",f),n.subscribe(e.EVENTS.PLAY,"AnalyticsFrameworkTranslator",T),n.subscribe(e.EVENTS.DOWNLOADING,"AnalyticsFrameworkTranslator",g),n.subscribe(e.EVENTS.BUFFERING,"AnalyticsFrameworkTranslator",y),n.subscribe(e.EVENTS.BUFFERED,"AnalyticsFrameworkTranslator",m),n.subscribe(e.EVENTS.BITRATE_INFO_AVAILABLE,"AnalyticsFrameworkTranslator",_),n.subscribe(e.EVENTS.SET_TARGET_BITRATE,"AnalyticsFrameworkTranslator",S),n.subscribe(e.EVENTS.BITRATE_CHANGED,"AnalyticsFrameworkTranslator",O),n.subscribe(e.EVENTS.PLAYING,"AnalyticsFrameworkTranslator",b),n.subscribe(e.EVENTS.PLAYHEAD_TIME_CHANGED,"AnalyticsFrameworkTranslator",v),n.subscribe(e.EVENTS.PLAYED,"AnalyticsFrameworkTranslator",I),n.subscribe(e.EVENTS.PAUSE,"AnalyticsFrameworkTranslator",N),n.subscribe(e.EVENTS.PAUSED,"AnalyticsFrameworkTranslator",D),n.subscribe(e.EVENTS.REPLAY,"AnalyticsFrameworkTranslator",C),n.subscribe(e.EVENTS.SEEK,"AnalyticsFrameworkTranslator",R),n.subscribe(e.EVENTS.SEEKED,"AnalyticsFrameworkTranslator",L),n.subscribe(e.EVENTS.WILL_PLAY_FROM_BEGINNING,"AnalyticsFrameworkTranslator",P),n.subscribe(e.EVENTS.INITIAL_PLAY_STARTING,"AnalyticsFrameworkTranslator",w),n.subscribe(e.EVENTS.PLAYBACK_READY,"AnalyticsFrameworkTranslator",k),n.subscribe(e.EVENTS.API_ERROR,"AnalyticsFrameworkTranslator",V),n.subscribe(e.EVENTS.BITRATE_INITIAL,"AnalyticsFrameworkTranslator",B),n.subscribe(e.EVENTS.BITRATE_FIVE_SEC,"AnalyticsFrameworkTranslator",M),n.subscribe(e.EVENTS.BITRATE_STABLE,"AnalyticsFrameworkTranslator",F),n.subscribe(e.EVENTS.PLAYBACK_START_ERROR,"AnalyticsFrameworkTranslator",U),n.subscribe(e.EVENTS.PLAYBACK_MIDSTREAM_ERROR,"AnalyticsFrameworkTranslator",x),n.subscribe(e.EVENTS.PLUGIN_LOADED,"AnalyticsFrameworkTranslator",H),n.subscribe(e.EVENTS.AD_SDK_LOADED,"AnalyticsFrameworkTranslator",G),n.subscribe(e.EVENTS.AD_SDK_LOAD_FAILED,"AnalyticsFrameworkTranslator",Y),n.subscribe(e.EVENTS.AD_REQUEST,"AnalyticsFrameworkTranslator",j),n.subscribe(e.EVENTS.AD_REQUEST_SUCCESS,"AnalyticsFrameworkTranslator",W),n.subscribe(e.EVENTS.AD_REQUEST_EMPTY,"AnalyticsFrameworkTranslator",K),n.subscribe(e.EVENTS.AD_REQUEST_ERROR,"AnalyticsFrameworkTranslator",z),n.subscribe(e.EVENTS.AD_PLAYBACK_ERROR,"AnalyticsFrameworkTranslator",q),n.subscribe(e.EVENTS.AD_SDK_IMPRESSION,"AnalyticsFrameworkTranslator",X),n.subscribe(e.EVENTS.AD_COMPLETED,"AnalyticsFrameworkTranslator",Q),n.subscribe(e.EVENTS.WILL_PLAY_ADS,"AnalyticsFrameworkTranslator",Z),n.subscribe(e.EVENTS.AD_POD_STARTED,"AnalyticsFrameworkTranslator",J),n.subscribe(e.EVENTS.AD_POD_ENDED,"AnalyticsFrameworkTranslator",ee),n.subscribe(e.EVENTS.WILL_PLAY_SINGLE_AD,"AnalyticsFrameworkTranslator",te),n.subscribe(e.EVENTS.SINGLE_AD_PLAYED,"AnalyticsFrameworkTranslator",ie),n.subscribe(e.EVENTS.WILL_PLAY_NONLINEAR_AD,"AnalyticsFrameworkTranslator",ne),n.subscribe(e.EVENTS.NONLINEAR_AD_PLAYED,"AnalyticsFrameworkTranslator",ae),n.subscribe(e.EVENTS.ADS_PLAYED,"AnalyticsFrameworkTranslator",re),n.subscribe(e.EVENTS.SKIP_AD,"AnalyticsFrameworkTranslator",se),n.subscribe(e.EVENTS.ADS_ERROR,"AnalyticsFrameworkTranslator",oe),n.subscribe(e.EVENTS.ADS_CLICKED,"AnalyticsFrameworkTranslator",le),n.subscribe(e.EVENTS.ADS_CLICKTHROUGH_OPENED,"AnalyticsFrameworkTranslator",ce),n.subscribe(e.EVENTS.SDK_AD_EVENT,"AnalyticsFrameworkTranslator",ue),n.subscribe(e.EVENTS.FULLSCREEN_CHANGED,"AnalyticsFrameworkTranslator",de),n.subscribe(e.EVENTS.VOLUME_CHANGED,"AnalyticsFrameworkTranslator",he),n.subscribe(e.EVENTS.DESTROY,"AnalyticsFrameworkTranslator",Ae),n.subscribe(e.EVENTS.VC_PLAYED,"AnalyticsFrameworkTranslator",Ee),n.subscribe(e.EVENTS.VC_PLAYING,"AnalyticsFrameworkTranslator",pe),n.subscribe(e.EVENTS.VC_VIDEO_ELEMENT_CREATED,"AnalyticsFrameworkTranslator",Te),n.subscribe(e.EVENTS.SSAI_PLAY_SINGLE_AD,"AnalyticsFrameworkTranslator",ge),n.subscribe(e.EVENTS.SSAI_SINGLE_AD_PLAYED,"AnalyticsFrameworkTranslator",ye),n.subscribe(e.EVENTS.SSAI_AD_TIMELINE_RECEIVED,"AnalyticsFrameworkTranslator",me),n.subscribe(e.EVENTS.ERROR,"AnalyticsFrameworkTranslator",Oe),n.subscribe(e.EVENTS.DISCOVERY_API.SEND_DISPLAY_EVENT,"AnalyticsFrameworkTranslator",_e),n.subscribe(e.EVENTS.DISCOVERY_API.SEND_CLICK_EVENT,"AnalyticsFrameworkTranslator",Se),n.subscribe(e.EVENTS.CHROMECAST_START_CAST,"AnalyticsFrameworkTranslator",be),n.subscribe(e.EVENTS.CHROMECAST_END_CAST,"AnalyticsFrameworkTranslator",ve),n.subscribe(e.EVENTS.VC_PLAY_FAILED,"AnalyticsFrameworkTranslator",fe)}})},{}],67:[function(e,t,i){"use strict";!function(e,t,i){var n=function(i,n,a){this.mb=i,this.id=n,this.params=a||{},this.ooyalaAds=!1,this.contentTree={},this.metadata={},this.skinMetadata={},this.attributes={},this.sasResponse={},this.authToken=e.localStorage.getItem("oo_auth_token"),this._isEmbedCodeMetadataRequired=!1,this._aborting=!1,this._contentAjax=null,this._metadataAjax=null,this._embedCodeMetadataAjax=null,this._sasAjax=null,this._gbAjax=null,this.valhallaCache=e.publicApi.cache||{get:function(){},exists:function(){}},this.mb.subscribe(e.EVENTS.WILL_REQUIRE_EMBED_CODE_METADATA,"api",t.bind(this._willRequireEmbedCodeMetadata,this)),e.StateMachine.create({initial:"Init",messageBus:this.mb,moduleName:"Api",target:this,events:[{name:e.EVENTS.SET_EMBED_CODE,from:"*",to:"Init"},{name:e.EVENTS.SET_EMBED_CODE_AFTER_OOYALA_AD,from:"*",to:"Init"},{name:e.EVENTS.EMBED_CODE_CHANGED,from:"Init",to:"WaitingForAPIResponse"},{name:e.EVENTS.EMBED_CODE_CHANGED_AFTER_OOYALA_AD,from:"Init",to:"WaitingForAPIResponse"},{name:e.EVENTS.WILL_FETCH_CONTENT_TREE,from:"WaitingForAPIResponse"},{name:e.EVENTS.WILL_FETCH_METADATA,from:"WaitingForAPIResponse"},{name:e.EVENTS.WILL_FETCH_EMBED_CODE_METADATA,from:"WaitingForAPIResponse"},{name:e.EVENTS.WILL_FETCH_AUTHORIZATION,from:"WaitingForAPIResponse"},{name:e.EVENTS.WILL_FETCH_AD_AUTHORIZATION,from:["WaitingForAPIResponse","Init"]},{name:e.EVENTS.PLAYBACK_READY,from:"WaitingForAPIResponse",to:"Init"}]})};t.extend(n.prototype,{_processSetEmbedCode:function(e,t,i){this.rootEmbedCode=t,this.adSetCode=i?i.adSetCode:void 0,this.embedToken=i&&i.embedToken||this.embedToken,this.authToken=i&&i.authToken||this.authToken},onSetEmbedCode:function(t,i,n){this._processSetEmbedCode(t,i,n),this.mb.publish(e.EVENTS.EMBED_CODE_CHANGED,i,n)},onSetEmbedCodeAfterOoyalaAd:function(t,i,n){this._processSetEmbedCode(t,i,n),this.mb.publish(e.EVENTS.EMBED_CODE_CHANGED_AFTER_OOYALA_AD,i,n)},_processOnEmbedCodeChanged:function(i,n,a){this.currentEmbedCode=n;var r={};a&&a.ooyalaAds&&(r=a),this._abort(this._contentAjax),this._abort(this._metadataAjax),this._abort(this._embedCodeMetadataAjax),this._abort(this._sasAjax),this._abort(this._gbAjax),t.isEmpty(this.adSetCode)||t.extend(r,{adSetCode:this.adSetCode}),t.isEmpty(this.embedToken)||t.extend(r,{embedToken:this.embedToken}),a&&!0===a[e.CONSTANTS.HEVC_CODEC.HVC1]?t.extend(r,{codecPriority:"hvc"}):a&&!0===a[e.CONSTANTS.HEVC_CODEC.HEV1]?t.extend(r,{codecPriority:"hev"}):t.extend(r,{codecPriority:"avc"});var s={embedCode:this.currentEmbedCode,pcode:e.playerParams.pcode||"unknown",playerBrandingId:e.playerParams.playerBrandingId||"unknown"},o=t.extend({},s,{server:e.SERVER.API}),l=t.extend({},s,{server:e.SERVER.AUTH});if(o.params=t.clone(r),l.params=t.clone(r),a&&!a.ooyalaAds&&"string"==typeof a.dynamicFilters&&(l.params.dynamicFilters=a.dynamicFilters,l.params.dynamicFilters.indexOf(" ")>=0)){var c=l.params.dynamicFilters.split(",");t.each(c,function(e,t,i){c[t]=e.trim()}),l.params.dynamicFilters=c.join(",")}this.mb.publish(e.EVENTS.WILL_FETCH_METADATA,o),this._isEmbedCodeMetadataRequired&&this.mb.publish(e.EVENTS.WILL_FETCH_EMBED_CODE_METADATA,o),e.requiredInEnvironment("html5-playback")&&(this.mb.publish(e.EVENTS.WILL_FETCH_PLAYER_XML,o),this.mb.publish(e.EVENTS.WILL_FETCH_CONTENT_TREE,o),this.mb.publish(e.EVENTS.WILL_FETCH_AUTHORIZATION,l))},onEmbedCodeChangedAfterOoyalaAd:function(e,t,i){this._processOnEmbedCodeChanged(e,t,i)},onEmbedCodeChanged:function(e,t,i){this._processOnEmbedCodeChanged(e,t,i)},_willRequireEmbedCodeMetadata:function(e,t){this._isEmbedCodeMetadataRequired=t},onWillFetchContentTree:function(n,a){if(a.params&&a.params.ooyalaAds?this.ooyalaAds=a.params.ooyalaAds:this.ooyalaAds=!1,this.valhallaCache.exists(e.CONSTANTS.VALHALLA_CACHE_CONTENT_TREE_KEY))return e.log("Using valhallaCache to populate contentTree"),void this._onContentTreeFetched(this.valhallaCache.get(e.CONSTANTS.VALHALLA_CACHE_CONTENT_TREE_KEY,!0));var r;void 0!==this.contentTree[this.currentEmbedCode]?this.mb.publish(e.EVENTS.CONTENT_TREE_FETCHED,this.contentTree[this.currentEmbedCode],this.ooyalaAds):this._contentAjax=i.ajax({url:e.URLS.CONTENT_TREE(a)+"?"+i.param(a.params),type:"GET",dataType:"json",crossDomain:!0,success:t.bind(this._onContentTreeFetched,this),error:(r=this,function(e,t,i){r._onApiError(e,t,"Error in Content Tree request. "+i,this.url)})})},_onContentTreeFetched:function(i){var n=e.HM.safeObject("playbackControl.contentTree",i,{});this._contentAjax=null,n.errors&&0==+n.errors.code&&t.each(n.content_tree,t.bind(function(e,t){this.contentTree[t]=n.content_tree[t]},this));if(this.contentTree[this.currentEmbedCode]){var a=n.content_tree[this.currentEmbedCode].hostedAtURL;""!==a&&null!==a||(n.content_tree[this.currentEmbedCode].hostedAtURL=document.URL),["Video","VideoAd","LiveStream","Channel","MultiChannel","Youtube","Audio"].indexOf(this.contentTree[this.currentEmbedCode].content_type)>=0?this.mb.publish(e.EVENTS.CONTENT_TREE_FETCHED,this.contentTree[this.currentEmbedCode],this.ooyalaAds):this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.CONTENT_TREE});var r=this.contentTree[this.currentEmbedCode].asset_pcode,s=this.params.pcode;s!==r&&console.warn('Warning: The PCODE (Ooyala Partner Code) "'.concat(r,'" ')+'is not associated to the same account as the content being played "'.concat(s,'". ')+"This may cause data to not report into Ooyala IQ and be lost.")}else this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.UNPLAYABLE_CONTENT})},onWillFetchMetadata:function(n,a){if(a.params&&a.params.ooyalaAds?this.ooyalaAds=a.params.ooyalaAds:this.ooyalaAds=!1,this.valhallaCache.exists(e.CONSTANTS.VALHALLA_CACHE_METADATA_KEY))return e.log("Using valhallaCache to populate metadata"),void this._onMetadataFetched(this.valhallaCache.get(e.CONSTANTS.VALHALLA_CACHE_METADATA_KEY,!0));var r;void 0!==this.metadata[this.currentEmbedCode]?this.mb.publish(e.EVENTS.METADATA_FETCHED,this.metadata[this.currentEmbedCode],this.ooyalaAds):this._metadataAjax=i.ajax({url:e.URLS.METADATA(a)+"&"+i.param(a.params),type:"GET",dataType:"json",crossDomain:!0,success:t.bind(this._onMetadataFetched,this),error:(r=this,function(e,t,i){r._onApiError(e,t,"Error in Metadata request. "+i,this.url)})})},_onMetadataFetched:function(i){this.metadata=this.metadata||{};var n=e.HM.safeObject("api.metadata",i,{});this._metadataAjax=null,n.errors&&0==+n.errors.code&&(this.skinMetadata=n.skin,this.attributes=n.attributes,t.each(n.metadata,t.bind(function(e,i){this.metadata[i]=n.metadata[i],this.metadata[i].modules=this.metadata[i].modules||{},this.metadata[i].modules=t.extend(this.metadata[i].modules,this.params.modules||{})},this))),this.mb.publish(e.EVENTS.METADATA_FETCHED,this.metadata[this.currentEmbedCode]||{},this.ooyalaAds),this.skinMetadata&&this.mb.publish(e.EVENTS.SKIN_METADATA_FETCHED,this.skinMetadata),this.attributes&&this.mb.publish(e.EVENTS.ATTRIBUTES_FETCHED,this.attributes),n.errors&&n.errors.player_movie_mismatch&&void 0!==window.console&&"function"==typeof window.console.log&&console.log("WARNING: Player and movie providers do not match")},onWillFetchEmbedCodeMetadata:function(n,a){var r;this._embedCodeMetadataAjax=i.ajax({url:e.URLS.EMBED_CODE_METADATA(a),type:"GET",dataType:"json",crossDomain:!0,success:t.bind(this._onEmbedCodeMetadataFetched,this),error:(r=this,function(e,t,i){r._onApiError(e,t,"Error in Embed Code Metadata request. "+i,this.url)})})},_onEmbedCodeMetadataFetched:function(i){var n=e.HM.safeObject("api.metadata",i,{});this._embedCodeMetadataAjax=null,n.metadata&&!t.isEmpty(n.metadata)?n.errors&&0==+n.errors.code&&this.mb.publish(e.EVENTS.EMBED_CODE_METADATA_FETCHED,n||{}):this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.METADATA})},onWillFetchAuthorization:function(i,n){if(this.mb.publish(e.EVENTS.CANCEL_GEO_CHECKING),n.params&&n.params.ooyalaAds?this.ooyalaAds=n.params.ooyalaAds:this.ooyalaAds=!1,this.valhallaCache.exists(e.CONSTANTS.VALHALLA_CACHE_SAS_KEY))return e.log("Using valhallaCache to populate sasResponse"),void this._onAuthorizationFetched(this.valhallaCache.get(e.CONSTANTS.VALHALLA_CACHE_SAS_KEY,!0));var a;this.sasResponse[this.currentEmbedCode]&&0==+this.sasResponse[this.currentEmbedCode].code?this.mb.publish(e.EVENTS.AUTHORIZATION_FETCHED,this.sasResponse[this.currentEmbedCode],this.ooyalaAds):this._sendSasRequest(n,t.bind(this._onAuthorizationFetched,this),(a=this,function(e,t,i){a._onApiError(e,t,"Error in SAS request. "+i,this.url)}))},_onAuthorizationFetched:function(i){var n,a;this._sasAjax=null;var r=e.HM.safeObject("playbackControl.sasResponse",i,{});if(r.auth_token?(e.setItem("oo_auth_token",r.auth_token),this.authToken=r.auth_token):(e.localStorage.removeItem("oo_auth_token"),this.authToken=null),t.each(r.authorization_data,t.bind(function(t,i){if(this.sasResponse[i]=r.authorization_data[i],!0===this.sasResponse[i].is_cmaf||"true"===this.sasResponse[i].is_cmaf){e.isIos&&e.iosMajorVersion<=9&&(this.sasResponse[i].streams=e.stripNonMp4Streams(this.sasResponse[i].streams))}r.debug_data&&(this.sasResponse[i].debug_data=r.debug_data),r.user_info&&(this.sasResponse[i].user_info=r.user_info),r.auth_token&&(this.sasResponse[i].auth_token=r.auth_token),r.heartbeat_data&&(this.sasResponse[i].heartbeat_data=r.heartbeat_data),r.mid_stream_check_interval&&(this.sasResponse[i].mid_stream_check_interval=r.mid_stream_check_interval)},this)),n=this.sasResponse[this.currentEmbedCode].code,this.checkGeoBlocking(),0!=+n)if(t.isString(n))if(a=n.split(","),t.contains(a,"2"))this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.SAS.DOMAIN});else if(t.contains(a,"3"))this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.SAS.GEO});else if(t.contains(a,"4")){var s=this.sasResponse[this.currentEmbedCode].retry;this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.SAS.FUTURE,flight_start_time:s})}else t.contains(a,"5")?this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.SAS.PAST}):t.contains(a,"13")?this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.SAS.DEVICE}):t.contains(a,"18")?this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.SAS.CONCURRENT_STREAMS}):t.contains(a,"24")?this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.SAS.PROXY}):this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.SAS.GENERIC});else this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.SAS.GENERIC});else this.mb.publish(e.EVENTS.AUTHORIZATION_FETCHED,this.sasResponse[this.currentEmbedCode],this.ooyalaAds)},onWillFetchAdAuthorization:function(e,i,n){this._sendSasRequest(i,t.bind(this._onAdAuthorizationFetched,this),n)},checkGeoBlocking:function(){if(this._sendGeoBlockingRequest=this._sendGeoBlockingRequest.bind(this),this.sasResponse&&this.sasResponse[this.currentEmbedCode]&&this.sasResponse[this.currentEmbedCode].require_mid_stream_check&&this.sasResponse[this.currentEmbedCode].mid_stream_check_interval){this._sendGeoBlockingRequest();e.geoCheckingInterval=setInterval(this._sendGeoBlockingRequest,1e3*this.sasResponse[this.currentEmbedCode].mid_stream_check_interval)}},_onAdAuthorizationFetched:function(i){var n=e.HM.safeObject("playbackControl.sasResponse",i,{}),a={};t.each(n.authorization_data,t.bind(function(e,t){a[t]=n.authorization_data[t]},this)),this.mb.publish(e.EVENTS.AD_AUTHORIZATION_FETCHED,a)},_sendSasRequest:function(t,n,a){var r=e.supportedVideoProfiles,s=e.device;i.extend(t.params,{device:s,domain:e.docDomain,player_type:e.playerParams.playerType}),t.params.player_type===e.CONSTANTS.PLAYER_TYPE.AUDIO&&(t.params.player_type=t.params.player_type+"_only"),r&&i.extend(t.params,{profiles:r}),this.authToken&&i.extend(t.params,{auth_token:this.authToken});var o=e.URLS.SAS(t)+"?"+i.param(t.params);this._sasAjax=i.ajax({url:o,type:"GET",dataType:"json",xhrFields:{withCredentials:!0},crossDomain:!0,success:n,error:a})},_abort:function(e){e&&(this._aborting=!0,e.abort(),this._aborting=!1)},_onApiError:function(t,i,n,a){this._aborting||(e.debug(n,i,t,a),this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.NETWORK,xhrStatus:i,description:n,url:a}),this.mb.publish(e.EVENTS.API_ERROR,t.status,n,a))},_sendGeoBlockingRequest:function(){this._gbAjax=null;var n={pcode:this.params.pcode,embedCode:this.currentEmbedCode,authToken:this.authToken,server:e.SERVER.AUTH},a=e.URLS.GEO_BLOCKING(n);this._gbAjax=i.ajax({url:a,type:"GET",crossDomain:!0,statusCode:{403:t.bind(function(){this.mb.publish(e.EVENTS.PAUSE),this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.SAS.GEO}),this.mb.publish(e.EVENTS.VC_DISPOSE_VIDEO_ELEMENT,e.VIDEO.MAIN),this.mb.publish(e.EVENTS.CANCEL_GEO_CHECKING)},this)}})},__placeholder:!0}),e.registerModule("api",function(e,t,i){return new n(e,t,i)})}(OO,OO._,OO.$)},{}],68:[function(e,t,i){"use strict";!function(e,t,i){var n=function(i,n){this.toString=function(){return"asset-controller"},this.mb=i,this.id=n,this.currentAssetId="",this.mb.subscribe(e.EVENTS.SET_ASSET,"asset",t.bind(this.setAsset,this)),this.mb.subscribe(e.EVENTS.UPDATE_ASSET,"asset",t.bind(this.updateAsset,this))};t.extend(n.prototype,{normalizeAsset:function(e){e.content.duration=1e3*e.content.duration},setAsset:function(i,n,a){this.validate(n)?(this.normalizeAsset(n),this.currentAssetId=n.id,t.defer(t.bind(function(){this.mb.publish(e.EVENTS.ASSET_CHANGED,n,a)},this)),this.validateKeyframes(n)&&this.mb.publish(e.EVENTS.THUMBNAILS_FETCHED,{data:n.content.keyFrames}),n.relatedVideos&&n.relatedVideos.length>0&&this.mb.publish(e.EVENTS.DISCOVERY_API.RELATED_VIDEOS_FETCHED,{videos:n.relatedVideos})):this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.API.CONTENT_TREE})},updateAsset:function(t,i,n){this.validateUpdate(i)&&this.mb.publish(e.EVENTS.ASSET_UPDATED,i),this.validateKeyframes(i)&&this.mb.publish(e.EVENTS.THUMBNAILS_FETCHED,{data:i.content.keyFrames}),i.relatedVideos.length>0&&this.mb.publish(e.EVENTS.DISCOVERY_API.RELATED_VIDEOS_FETCHED,{videos:i.relatedVideos})},validate:function(e){return this.validateRelatedVideos(e),e&&"string"==typeof e.id&&e.content&&e.content.streams&&e.content.streams.length>0&&"string"==typeof e.content.title&&"string"==typeof e.content.description&&"number"==typeof e.content.duration&&e.content.posterImages&&e.content.posterImages.length>0&&e.content.captions},validateUpdate:function(e){return this.validateRelatedVideos(e),e&&"string"==typeof e.id&&e.id===this.currentAssetId&&(e.relatedVideos&&e.relatedVideos.length>0||e.content&&("string"==typeof e.content.title||"string"==typeof e.content.description||"number"==typeof e.content.duration||e.content.captions||e.content.posterImages&&e.content.posterImages.length>0))},validateRelatedVideos:function(e){if(e.relatedVideos&&e.relatedVideos.length>0){for(var t=[],i=0;i<e.relatedVideos.length;i++)this.validate(e.relatedVideos[i].asset)&&"string"==typeof e.relatedVideos[i].name&&"string"==typeof e.relatedVideos[i].preview_image_url&&t.push(e.relatedVideos[i]);e.relatedVideos=t}},validateKeyframes:function(e){return e&&e.content&&e.content.keyFrames&&e.content.keyFrames.available_widths&&e.content.keyFrames.available_widths.length>0&&e.content.keyFrames.available_time_slices&&e.content.keyFrames.available_time_slices.length>0&&e.content.keyFrames.thumbnails&&Object.keys(e.content.keyFrames.thumbnails).length===e.content.keyFrames.available_time_slices.length}}),e.registerModule("assetController",function(e,t){return new n(e,t)})}(OO,OO._,OO.$)},{}],69:[function(e,t,i){"use strict";!function(e,t,i){var n=function(i,n){e.requiredInEnvironment("html5-playback")&&(this.mb=i,this.id=n,this.embedCode=null,this.authToken=null,this.heartbeatInterval=300,this.timer=null,this.retries=3,this.require_heartbeat=!1,this.AUTH_HEARTBEAT_URL=t.template("<%=server%>/player_api/v1/auth_heartbeat/pcode/<%=pcode%>/auth_token/<%=authToken%>?embed_code=<%=embedCode%>"),this.mb.subscribe(e.EVENTS.EMBED_CODE_CHANGED,"auth_heartbeat",t.bind(this._onEmbedCodeChanged,this)),this.mb.subscribe(e.EVENTS.AUTHORIZATION_FETCHED,"auth_heartbeat",t.bind(this._onAuthorizationFetched,this)),this.mb.subscribe(e.EVENTS.INITIAL_PLAY_STARTING,"auth_heartbeat",t.bind(this._startTimer,this)),this.mb.subscribe(e.EVENTS.CHROMECAST_START_CAST,"auth_heartbeat",t.bind(this._clearTimer,this)),this.mb.subscribe(e.EVENTS.CHROMECAST_END_CAST,"auth_heartbeat",t.bind(this._startTimer,this)),this.mb.subscribe(e.EVENTS.DESTROY,"auth_heartbeat",t.bind(this._onDestroy,this)))};t.extend(n.prototype,{_onEmbedCodeChanged:function(e,t,i){void 0!==i.isAd&&i.isAd||(this.embedCode=t,this.timer&&clearInterval(this.timer),this.ajax&&(this.ajax.error=null,this.ajax.abort(),this.ajax=null),this.retries=3)},_startTimer:function(){if(this.require_heartbeat){this.timer=setInterval(t.bind(this._onTimerTick,this),1e3*this.heartbeatInterval),this._onTimerTick()}},_clearTimer:function(){clearInterval(this.timer)},_onAuthorizationFetched:function(e,t){t.heartbeat_data&&t.heartbeat_data.heartbeat_interval&&(this.heartbeatInterval=t.heartbeat_data.heartbeat_interval),t.auth_token&&(this.authToken=t.auth_token),this.require_heartbeat=t.require_heartbeat},_onTimerTick:function(){this.ajax=i.ajax({url:this.AUTH_HEARTBEAT_URL({server:e.SERVER.AUTH,pcode:e.playerParams.pcode||"unknown",authToken:this.authToken||"",embedCode:this.embedCode||""}),type:"GET",dataType:"json",crossDomain:!0,cache:!1,success:t.bind(this._onHeartbeatResponse,this),error:t.bind(this._onHeartbeatErrorResponse,this)})},_onHeartbeatResponse:function(t){this.ajax=null,t.message&&"OK"===t.message&&t.signature?(this.retries=3,null!=t.auth_token&&(this.authToken=t.auth_token,e.setItem("oo_auth_token",t.auth_token))):this._onHeartbeatError(e.ERROR.API.SAS.INVALID_HEARTBEAT)},_onHeartbeatErrorResponse:function(t){this.ajax=null,t&&t.responseText&&t.responseText.indexOf("Invalid entitlements")>-1?this._onHeartbeatError(e.ERROR.API.SAS.ERROR_INVALID_ENTITLEMENTS):this._onHeartbeatError(e.ERROR.API.SAS.CONCURRENT_STREAMS)},_onHeartbeatError:function(t){this.ajax=null,this.retries--,this.retries>0?this._onTimerTick():(this.timer&&clearInterval(this.timer),this.mb.publish(e.EVENTS.ERROR,{code:t}))},_onDestroy:function(){this.mb.unsubscribe(e.EVENTS.EMBED_CODE_CHANGED,"auth_heartbeat"),this.mb.unsubscribe(e.EVENTS.AUTHORIZATION_FETCHED,"auth_heartbeat"),this.mb.unsubscribe(e.EVENTS.INITIAL_PLAY_STARTING,"auth_heartbeat"),this.mb.unsubscribe(e.EVENTS.CHROMECAST_START_CAST,"auth_heartbeat"),this.mb.unsubscribe(e.EVENTS.CHROMECAST_END_CAST,"auth_heartbeat"),this.mb.unsubscribe(e.EVENTS.DESTROY,"auth_heartbeat"),this._clearTimer()}}),e.registerModule("auth_heartbeat",function(e,t){return new n(e,t)})}(OO,OO._,OO.$)},{}],70:[function(e,t,i){"use strict";OO.plugin("Channels",function(e,t,i,n){var a=function(t,i){this.id=i,this.mb=t,this.channel_tree=null,this.channel_pos=-1,this.replay=!1,e.StateMachine.create({initial:"Init",messageBus:this.mb,moduleName:"Channels",target:this,events:[{name:e.EVENTS.PLAYER_CREATED,from:"*"}]})};return t.extend(a.prototype,{onPlayerCreated:function(i,n,a){this.enableChannels=a.enableChannels||e.playerParams.enableChannels||!1,this.mb.intercept(e.EVENTS.CONTENT_TREE_FETCHED,"channels",t.bind(this._checkTreeForChannel,this))},_checkTreeForChannel:function(i,n,a){if(n&&(["Channel","MultiChannel"].indexOf(n.content_type)>=0||n.lineup)){if(this.enableChannels){if(e.requiredInEnvironment("html5-playback")||e.requiredInEnvironment("cast-playback")){if(!n.children)return"Channel"===n.content_type?this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.EMPTY_CHANNEL}):this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.EMPTY_CHANNEL_SET}),!1;this.channel_tree=n,this.channel_pos=0,this.mb.subscribe(e.EVENTS.PLAYED,"channels",t.bind(this.onPlayed,this)),this.mb.subscribe(e.EVENTS.PLAYBACK_READY,"channels",t.bind(this.onPlaybackReady,this)),this.mb.publish(e.EVENTS.SET_EMBED_CODE,n.children[0].embed_code)}return!1}return this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.CHANNEL_CONTENT}),!1}return[n,a]},onPlayed:function(t){this.channel_pos++,this.channel_tree.children[this.channel_pos]?this.mb.publish(e.EVENTS.SET_EMBED_CODE,this.channel_tree.children[this.channel_pos].embed_code):(this.channel_pos=0,this.mb.publish(e.EVENTS.SET_EMBED_CODE,this.channel_tree.children[0].embed_code))},onPlaybackReady:function(t){this.channel_pos>0&&this.mb.publish(e.EVENTS.PLAY)}}),a})},{}],71:[function(e,t,i){"use strict";if(OO.isChrome&&!OO.isIos){OO.plugin("Chromecast",function(e,t,i){var n,a="Ooyala Chromecast: ",r="Ooyala Chromecast Error: ",s=e.isAndroid&&null!==navigator.mediaSession,o="",l={},c=!1,u=!1,d=!1,h=!1,A="start",E="playing",p="paused",f="end",T="playing",g="played",y="paused",m="playheadTimeChanged",_="seek",S="statusUpdate",O="receiverStatusLoss",b="toggleClosedCaptions",v="setCCLanguage",I=["playerBrandingId","pcode","encodingPriority","embedToken"],N={embedCode:"",params:{},state:A,isMuted:!1,playbackStarted:!1,volume:1,playhead:0,duration:0,metadata:null},D=function(){n.unsubscribe(e.EVENTS.PLAYER_CREATED,"Chromecast",R),n.unsubscribe(e.EVENTS.PLAYBACK_READY,"Chromecast",L),n.unsubscribe(e.EVENTS.EMBED_CODE_CHANGED,"Chromecast",B),n.unsubscribe(e.EVENTS.ASSET_CHANGED,"Chromecast",M),n.unsubscribe(e.EVENTS.PLAY,"Chromecast",F),n.unsubscribe(e.EVENTS.PAUSE,"Chromecast",G),n.unsubscribe(e.EVENTS.SEEK,"Chromecast",W),n.unsubscribe(e.EVENTS.REPLAY,"Chromecast",q),n.unsubscribe(e.EVENTS.CHANGE_VOLUME,"Chromecast",X),n.unsubscribe(e.EVENTS.CHANGE_MUTE_STATE,"Chromecast",Z),n.unsubscribe(e.EVENTS.PLAYHEAD_TIME_CHANGED,"Chromecast",$),n.unsubscribe(e.EVENTS.CONTENT_TREE_FETCHED,"Chromecast",w)},C=function(){if(u&&c&&d){var e=cast.framework.CastContext.getInstance();l.receiverApplicationId=o,l.autoJoinPolicy=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED,e.setOptions(l),e.addEventListener(cast.framework.CastContextEventType.CAST_STATE_CHANGED,Ae),e.addEventListener(cast.framework.CastContextEventType.SESSION_STATE_CHANGED,Ee)}},R=function(t,i,n){var a=!1,s=n.chromecast;s&&"string"==typeof s.appId&&""!==s.appId?o=s.appId:e.log(r,"Provide your receiver appId."),s&&"boolean"==typeof s.enable&&!0===s.enable&&""!==o&&(a=!0),a?(window.__onGCastApiAvailable=function(e){e&&(c=!0,C())},e.loadScriptOnce("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1")):D()},L=function(e){d=!0,h||C()},P=function(){N.playbackStarted=!0},w=function(e,t){N.metadata=t},k=function(){h&&cast.framework.CastContext.getInstance().getCurrentSession().sendMessage("urn:x-cast:ooyala",{action:b})},V=function(e,t){h&&cast.framework.CastContext.getInstance().getCurrentSession().sendMessage("urn:x-cast:ooyala",{action:v,data:t})},B=function(e,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};N.playbackStarted=!1,N.embedCode=i,n&&!t.isEmpty(n)&&(N.params=t.pick(n,I)),h&&ee(N.embedCode,N.params)},M=function(e){},F=function(e){U()},U=function(){if(h){var e=cast.framework.CastContext.getInstance().getCurrentSession().getMediaSession();if(e){var t=new chrome.cast.media.PlayRequest;e.play(t,H,x)}else ee(N.embedCode,N.params,N.playhead)}else N.state=E},H=function(){e.log(a,"Play request done for: ",N.embedCode),he(E)},x=function(t){e.log(r,t)},G=function(e){if(h){var t=cast.framework.CastContext.getInstance().getCurrentSession().getMediaSession();if(t){var i=new chrome.cast.media.PauseRequest;t.pause(i,Y,j)}}else N.state=p},Y=t.bind(function(){e.log(a,"Pause request done for: ",N.embedCode),he(p)},this),j=t.bind(function(t){e.log(r,t)},this),W=t.bind(function(e,t){if(h){var i=cast.framework.CastContext.getInstance().getCurrentSession().getMediaSession(),n=new chrome.cast.media.SeekRequest;n.currentTime=t,i.seek(n,K,z)}},this),K=t.bind(function(){e.log(a,"Seek request done")},this),z=t.bind(function(t){e.log(r,"Seek request failed:",t)},this),q=function(e,t){h&&ee(N.embedCode,N.params,t)},X=function(e,t){h?cast.framework.CastContext.getInstance().getCurrentSession().setVolume(t).then(ge,Q):N.volume=t},Q=t.bind(function(t){e.log(r,"Volume request failed:",t)},this),Z=function(e,t){if(h){var i=cast.framework.CastContext.getInstance().getCurrentSession();i.isMute()!==t&&i.setMute(t).then(Te,J)}else N.isMuted=t},J=t.bind(function(t){e.log(r,"Mute request failed:",t)},this),$=function(e,t,i){N.playhead=t,N.duration=i},ee=function(t,i,a){var r=new chrome.cast.media.MediaInfo(t,"video/mp4"),s=e.localStorage.getItem("oo_auth_token");r.customData={ec:N.embedCode,params:JSON.parse(JSON.stringify(i))},a&&0!==a&&(r.customData.params.initialTime=a),s&&(r.customData.params.authToken=s);var o=cast.framework.CastContext.getInstance().getCurrentSession(),l=new chrome.cast.media.LoadRequest(r);o.loadMedia(l).then(te,ie),n.publish(e.EVENTS.VC_FOCUS_VIDEO_ELEMENT,e.VIDEO.MAIN)},te=function(){ye()},ie=function(t){e.log(r,t)},ne=function(e){ue(e.isMute),de(e.volume)},ae=function(i,n){if("urn:x-cast:ooyala"===i){var a;try{a=JSON.parse(n)}catch(t){return void e.log(r,"event from chromecast was badly formatted",n)}if(0!==a.length){var s=a[0]||a.action;switch(s){case m:var o=a[1],l=a[2];if(t.isNumber(o)&&t.isFinite(o)&&o>=0&&t.isNumber(l)&&t.isFinite(l)&&l>0){var c=a[3]||0,u=a[4]||{min:0,max:l},d=a[5]||e.VIDEO.MAIN;re({playhead:o,duration:l,bufferedTime:c,minMaxSeekTime:u,videoElement:d})}break;case S:a.isCompleted&&ce();break;case T:_e(),oe();break;case y:_e(),se();break;case _:var h=a[1];le(h);break;case g:ce()}}}},re=function(i){if(t.isNumber(i.playhead)&&t.isFinite(i.playhead)&&i.playhead>=0&&t.isNumber(i.duration)&&t.isFinite(i.duration)&&i.duration>0){N.playhead=i.playhead,N.duration=i.duration;var a=i.bufferedTime||0,r=i.minMaxSeekTime||{min:0,max:N.duration},s=i.videoElement||e.VIDEO.MAIN;n.publish(e.EVENTS.PLAYHEAD_TIME_CHANGED,N.playhead,N.duration,a,r,s)}},se=function(){N.state=p,n.publish(e.EVENTS.VC_PAUSED,e.VIDEO.MAIN),he(p)},oe=function(){N.state=E,n.publish(e.EVENTS.VC_PLAYING,e.VIDEO.MAIN),he(E)},le=function(i){if(t.isNumber(i)&&t.isFinite(i)&&i>=0){N.playhead=i;var a={playhead:N.playhead,duration:N.duration};n.publish(e.EVENTS.SEEKED),re(a)}},ce=function(){N.state=f,n.publish(e.EVENTS.VC_PLAYED,e.VIDEO.MAIN),n.publish(e.EVENTS.PLAYED)},ue=function(t){N.isMuted=t,n.publish(e.EVENTS.MUTE_STATE_CHANGED,t)},de=function(t){N.volume=t,n.publish(e.EVENTS.VOLUME_CHANGED,t)},he=function(e){s&&(navigator.mediaSession.playbackState=e)},Ae=function(t){t.castState===cast.framework.CastState.CONNECTED&&(!function(){var t,i=cast.framework.CastContext.getInstance().getCurrentSession();if(i){i.setVolume(N.volume).then(ge,Q),t=i.getCastDevice(),N.state===E&&n.publish(e.EVENTS.PAUSE,e.VIDEO.MAIN),i.addMessageListener("urn:x-cast:ooyala",ae),i.addEventListener(cast.framework.SessionEventType.VOLUME_CHANGED,ne);var a=i.getMediaSession();if(a)if(a.media&&a.media.contentId)if(a.media&&a.media.contentId===N.embedCode){if(N.state===A&&(n.publish(e.EVENTS.INITIAL_PLAY,e.VIDEO.MAIN),n.publish(e.EVENTS.PAUSE,e.VIDEO.MAIN),a.playerState===chrome.cast.media.PlayerState.PLAYING&&oe(),a.playerState===chrome.cast.media.PlayerState.PAUSED)){se();var s={playhead:a.currentTime,duration:a.media.duration,videoElement:e.VIDEO.MAIN};re(s)}}else ee(N.embedCode,N.params,N.playhead);else ee(N.embedCode,N.params,N.playhead);else{var o=i.getSessionState()===cast.framework.SessionState.SESSION_RESUMED;if(!N.playbackStarted&&!o)return void i.endSession(!0);N.state!==A&&ee(N.embedCode,N.params,N.playhead)}h=!0,n.publish(e.EVENTS.CHROMECAST_START_CAST,t.friendlyName)}else e.log(r,"Error connecting to the chromecast.")}(),pe()),t.castState===cast.framework.CastState.NOT_CONNECTED&&(h=!1,N.state===E&&(n.publish(e.EVENTS.CHROMECAST_END_CAST),me()),fe())},Ee=function(e){e.sessionState===cast.framework.SessionState.SESSION_RESUMED&&e.session.sendMessage("urn:x-cast:ooyala",{action:O})},pe=function(){s&&(null!==N.metadata&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:N.metadata.title})),navigator.mediaSession.setActionHandler("play",U),navigator.mediaSession.setActionHandler("pause",G))},fe=function(){s&&(navigator.mediaSession.metadata=null,navigator.mediaSession.playbackState="none",navigator.mediaSession.setActionHandler("play",null),navigator.mediaSession.setActionHandler("pause",null))},Te=function(){if(h){var e=cast.framework.CastContext.getInstance().getCurrentSession();ue(e.isMute())}},ge=function(){if(h){var e=cast.framework.CastContext.getInstance().getCurrentSession();de(e.getVolume())}},ye=function(){var e=cast.framework.CastContext.getInstance().getCurrentSession(),t=e.getMediaSession();t&&N.state===E&&t.playerState===chrome.cast.media.PlayerState.PAUSED&&t.play(new chrome.cast.media.PlayRequest,H,x),de(e.getVolume()),ue(e.isMute())},me=function(){switch(N.state){case p:n.publish(e.EVENTS.SEEK,N.playhead),n.publish(e.EVENTS.PAUSE,e.VIDEO.MAIN);break;case E:n.publish(e.EVENTS.SEEK,N.playhead),n.publish(e.EVENTS.PLAY,e.VIDEO.MAIN)}},_e=function(){var e=new chrome.cast.media.GetStatusRequest,t=cast.framework.CastContext.getInstance().getCurrentSession();t&&t.getMediaSession()&&t.getMediaSession().getStatus(e,Se,Oe)},Se=function(){e.log(a,"Status done")},Oe=function(t){e.log(r,"failed to get status:",t)};return function(t){u=!0,(n=t).subscribe(e.EVENTS.PLAYER_CREATED,"Chromecast",R),n.subscribe(e.EVENTS.PLAYBACK_READY,"Chromecast",L),n.subscribe(e.EVENTS.INITIAL_PLAY,"Chromecast",P),n.subscribe(e.EVENTS.EMBED_CODE_CHANGED,"Chromecast",B),n.subscribe(e.EVENTS.ASSET_CHANGED,"Chromecast",M),n.subscribe(e.EVENTS.PLAY,"Chromecast",F),n.subscribe(e.EVENTS.PAUSE,"Chromecast",G),n.subscribe(e.EVENTS.SEEK,"Chromecast",W),n.subscribe(e.EVENTS.REPLAY,"Chromecast",q),n.subscribe(e.EVENTS.CHANGE_VOLUME,"Chromecast",X),n.subscribe(e.EVENTS.CHANGE_MUTE_STATE,"Chromecast",Z),n.subscribe(e.EVENTS.PLAYHEAD_TIME_CHANGED,"Chromecast",$),n.subscribe(e.EVENTS.CONTENT_TREE_FETCHED,"Chromecast",w),n.subscribe(e.EVENTS.TOGGLE_CLOSED_CAPTIONS,"Chromecast",k),n.subscribe(e.EVENTS.SET_CLOSED_CAPTIONS_LANGUAGE,"Chromecast",V),C()}})}},{}],72:[function(e,t,i){"use strict";!function(t,i,n){var a=e("element-resize-detector"),r=function(e,i){this.id=i,this.mb=e,this.width=0,this.height=0,this.useCustomControls=!t.uiParadigm.match(/mobile/),this.useNativeControls=!!t.uiParadigm.match(/native/),this.originalZ=null,this.originalOverflow=null,this.playbackReady=!1,t.StateMachine.create({initial:"Init",messageBus:this.mb,moduleName:"ChromelessUi",target:this,events:[{name:t.EVENTS.PLAYER_CREATED,from:"Init",to:"PlayerCreated"},{name:t.EVENTS.EMBED_CODE_CHANGED,from:"*",to:"WaitingPlaybackReady"},{name:t.EVENTS.ASSET_CHANGED,from:"*",to:"WaitingPlaybackReady"},{name:t.EVENTS.PLAYBACK_READY,from:"WaitingPlaybackReady",to:"Ready"},{name:t.EVENTS.INITIAL_PLAY,from:"*"},{name:t.EVENTS.WILL_PLAY,from:["Ready","Paused"],to:"StartingToPlay"},{name:t.EVENTS.PLAYING,from:["StartingToPlay","Paused"],to:"Playing"},{name:t.EVENTS.ERROR,from:"*"},{name:t.EVENTS.PLAY,from:"*"},{name:t.EVENTS.WILL_CHANGE_FULLSCREEN,from:"*"},{name:t.EVENTS.FULLSCREEN_CHANGED,from:"*"},{name:t.EVENTS.VC_PLAYING,from:"*"},{name:t.EVENTS.INITIAL_PLAY,from:"*"},{name:t.EVENTS.REPLAY,from:"*"},{name:t.EVENTS.WILL_PLAY_ADS,from:"*"},{name:t.EVENTS.PLAY_MIDROLL_STREAM,from:"*"},{name:t.EVENTS.PLAYING,from:"*"}]})};n.extend(r.prototype,{onInitialPlay:function(){this.playbackReady},onPlayerCreated:function(e,r,s){this.elementId=r,this.topMostElement=i("#"+this.elementId),this.topMostElement.append('<div class="innerWrapper" style="width:inherit; height:inherit"></div>'),this.rootElement=this.topMostElement.find("div.innerWrapper"),this.params=s,this.rootElement.append('<div class="plugins" style="position: absolute; width: 100%; height: 100%;"></div>');var o=n.bind(this._onBrowserOriginatedFullscreenChange,this),l=this.rootElement;n.each(["fullscreenchange","webkitfullscreenchange"],function(e){l.on(e,o)}),i(document).on("mozfullscreenchange",o),document.onwebkitfullscreenchange=o,i(document).on("MSFullscreenChange",o),i(window).resize(n.bind(this._onResize,this)),a({strategy:"scroll"}).listenTo(l[0],this._onResize.bind(this)),i(window).on("beforeunload",n.bind(this._onBeforeUnload,this)),this.mb.publish(t.EVENTS.PLAYER_EMBEDDED,{videoWrapperClass:"innerWrapper",pluginsClass:"plugins"})},onEmbedCodeChanged:function(){this._assetChanged()},onAssetChanged:function(){this._assetChanged()},_assetChanged:function(){this.playbackReady=!1},onPlaybackReady:function(e,t){this.playbackReady=!0},_isFullscreen:function(){return!!this.rootElement.hasClass("fullscreen")||!!(document.fullscreen||document.mozFullScreen||document.webkitIsFullScreen||document.webkitDisplayingFullscreen||document.msFullscreenElement)},_onBrowserOriginatedFullscreenChange:function(){t.debug("Fullscreen Changed",this._isFullscreen()),this.mb.publish(t.EVENTS.SIZE_CHANGED,this.rootElement.innerWidth(),this.rootElement.innerHeight()),this.mb.publish(t.EVENTS.FULLSCREEN_CHANGED,this._isFullscreen())},onFullscreenChanged:function(e,t){!t||this.originalZ||this.originalOverflow?t||(this.rootElement.css("z-index",""),this.rootElement.css("overflow",this.originalOverflow),this.originalZ=null,this.originalOverflow=null):(this.originalZ=this.rootElement.css("z-index"),this.originalOverflow=this.rootElement.css("overflow"),this.rootElement.css("z-index",this.originalZ+1e3),this.rootElement.css("overflow","visible"))},_onResize:function(){this.width===this.rootElement.innerWidth()&&this.height===this.rootElement.innerHeight()||(this.width=this.rootElement.innerWidth(),this.height=this.rootElement.innerHeight(),this.mb.publish(t.EVENTS.SIZE_CHANGED,this.width,this.height))},onPlay:function(){this.useCustomControls||this.useNativeControls||this.mb.publish(t.EVENTS.WILL_CHANGE_FULLSCREEN,!0)},onWillChangeFullscreen:function(e,t){(this.useNativeControls||this.useCustomControls)&&(t?this._showFullscreen():this._hideFullscreen())},_getActiveVideo:function(){var e=this.rootElement.find("video.video").get(0),t=this.rootElement.find("div.plugins video").get(0);return t&&!this._isVideoDomVisible("video.video")&&(e=t),e},_showFullscreen:function(){var e=this.rootElement[0],n=this._getActiveVideo(),a=e.requestFullScreen||e.requestFullscreen||e.mozRequestFullScreen||e.webkitRequestFullScreen||e.msRequestFullscreen;(!a||t.isAndroid&&!t.isChrome)&&n&&n.webkitEnterFullscreen?(n.isFullScreenMode=!0,n.webkitEnterFullscreen()):a?(i(n).css("background-color","black"),a.call(e)):this.rootElement.addClass("fullscreen"),this.mb.publish(t.EVENTS.FULLSCREEN_CHANGED,!0)},_hideFullscreen:function(){var e=this._getActiveVideo();document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():e&&e.webkitExitFullscreen?(e.isFullScreenMode=!1,e.webkitExitFullscreen()):document.msExitFullscreen?document.msExitFullscreen():this.rootElement.removeClass("fullscreen"),i(e).css("background-color",""),this.mb.publish(t.EVENTS.FULLSCREEN_CHANGED,!1)},_isVideoDomVisible:function(e){return this.rootElement.find(e).css("display")===t.CSS.VISIBLE_DISPLAY},_onBeforeUnload:function(e){this.mb.publish(t.EVENTS.PAGE_UNLOAD_REQUESTED,!0)},__placeholder:!0}),t.registerModule("chromeless_ui",function(e,t){return new r(e,t)})}(OO,OO.$,OO._)},{"element-resize-detector":27}],73:[function(e,t,i){"use strict";t.exports=function(e,t,i){var n=[],a=!1,r=function(i){e.ooyalaStorage.getItem(e.CONSTANTS.GUID_STORAGE_KEY,function(n){n?e.GUID=n:(e.GUID=o(),e.ooyalaStorage.setItem(e.CONSTANTS.GUID_STORAGE_KEY,e.GUID)),t.isFunction(i)&&i()})},s=function(){a=!0;for(var i=n.shift();i;)t.isFunction(i)&&i(e.GUID),i=n.shift()};e.publicApi.getGuid=e.getGuid=function(t){if(a){if("function"==typeof t)try{t(e.GUID)}catch(e){}}else n.push(t)};var o=function(){var t=(new Date).getTime()+window.navigator.userAgent+Math.random().toString(16).split(".")[1];return new e.jsSHA(t,"ASCII").getHash("SHA-256","B64")};e.plugin("DeviceId",function(e,t,i,n){return function(t,i){t.subscribe(e.EVENTS.PLAYER_CREATED,"DeviceId",function(){e.publicApi.getGuid(function(i){t.publish(e.EVENTS.GUID_SET,i)})})}}),function(){switch(e.trackingLevel){case e.TRACKING_LEVEL.DISABLED:delete e.GUID,s();break;case e.TRACKING_LEVEL.ANONYMOUS:e.GUID=o(),s();break;case e.TRACKING_LEVEL.DEFAULT:default:r(s)}}()}(OO,OO._,OO.$)},{}],74:[function(e,t,i){"use strict";OO.plugin("ExternalId",function(e,t,i,n){var a=function(i,n){this.id=n,this.mb=i,this.mb.intercept(e.EVENTS.SET_EMBED_CODE,"ExternalId",t.bind(this._checkExternalId,this))};return t.extend(a.prototype,{_checkExternalId:function(t,i,n,a){var r=i.match("^extId:(.*)");return r&&r[1]?(this.externalId=r[1],this.options=n||{},this.isExternalApiCall=a,this._fetchExternalId({externalId:this.externalId,pcode:e.playerParams.pcode||"1kNG061cgaoolOncv54OAO1ceO-I",server:e.SERVER.API}),!1):[i,n,a]},_fetchExternalId:function(n){this._contentAjax=i.ajax({url:e.URLS.EXTERNAL_ID(n),type:"GET",dataType:"json",crossDomain:!0,cache:!1,success:t.bind(this._onExternalIdFetched,this),error:t.bind(this._onExternalIdError,this)})},_onExternalIdFetched:function(i){var n=null,a=e.HM.safeObject("playbackControl.contentTree",i,{});a.errors&&0==+a.errors.code&&t.each(a.content_tree,t.bind(function(e,t){e.external_id===this.externalId&&(n=t)},this)),t.extend(this.options,{originalId:this.externalId}),n?this.mb.publish(e.EVENTS.SET_EMBED_CODE,n,this.options,this.isExternalApiCall):this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.INVALID_EXTERNAL_ID})},_onExternalIdError:function(t){this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.INVALID_EXTERNAL_ID})}}),a})},{}],75:[function(e,t,i){"use strict";OO.plugin("HAFailoverMechanism",function(e,t,i){var n=function(){e.log.apply(this,i.merge(["HAFailoverMechanism:"],arguments))},a={feed:function(){},feedSegments:function(){},updateConfig:function(){},isEnabled:function(){return!1},isDummy:!0};return function(r){if(!r)return n("Wrong configuration. Returning dummy object",r,a),e.exposeStaticApi("ha",a),a;var s=this,o={},l=Object.freeze({failRatio:.4,maxSegmentsToCheck:20,segmentsBuffered:3,timeoutCheckFrequencyMs:500,manifestFailureTimeoutMs:3e3,failoverErrorTimeoutMs:6e3,plugin:"bit-wrapper"});s.CONSTANTS=Object.freeze({HA_ASSET_FLAG:"ha_enabled",HA_IGNORE_MAX_FLAG:"ha_ignore_max_timeout",DEFAULT_SEGMENT_LENGTH:4,PROXY_REFRESH_TIME:6});var c=!1,u=!1,d=!1,h=[],A="",E=!1,p=[],f=null,T=o.segmentLength||0,g=0,y={},m=0,_=!1,S=!1,O=0,b=0,v=0,I=0,N=0,D=0,C=null;function R(e){E=!0}function L(e){n("Failover due to event",e),$()}function P(e,t){t&&(A=t.id||"",n("_onBitrateChanged",e,t))}function w(e,t){t&&(h=t.bitrates||[],n("_onBitrateInfoAvailable",e,t))}function k(e,t,i){var n=t&&t.highAvailability||{},a={base:{}};void 0!==n.enabled&&(a.base[s.CONSTANTS.HA_ASSET_FLAG]=V(n.enabled)),void 0!==n.ignoreMaxTimeout&&(a.base[s.CONSTANTS.HA_IGNORE_MAX_FLAG]=V(n.ignoreMaxTimeout)),M(e,a)}function V(e){return!e||!0!==e&&"true"!==e?"false":"true"}function B(e,t){M(e,t)}function M(t,i){if(i){ae();var a=i.base&&i.base[s.CONSTANTS.HA_ASSET_FLAG]||"";c="true"===String(a).toLowerCase();var l=i.base&&i.base[s.CONSTANTS.HA_IGNORE_MAX_FLAG]||"";u="true"===String(l).toLowerCase(),clearInterval(C),c&&(C=setInterval(se,o.timeoutCheckFrequencyMs)),r.publish(e.EVENTS.HA_ENABLED,c),n("_onMetadataFetched",t,i)}}function F(){d&&(d=!1,r.publish(e.EVENTS.HA_FAILOVER_COMPLETE)),r.unsubscribe(e.EVENTS.VC_WILL_PLAY,"HAFailoverMechanism")}function U(e,t,i,n){if(X()&&Z()&&E&&!(g>=o.maxSegmentsToCheck)){var a=K();N=n,D=a}}function H(e){S=!0,v=K()}function x(e){var t=S?(K()-v)/1e3:0,i=I+t;if(O-t<0&&(i+=b-O),Z()&&re(i))return n("failover due to buffering issues after resume"),void $();S=!1,v=0}function G(e,t,i,n,a,r,s){X()&&Z()&&(I=s,b=i,O=t)}function Y(t,i){o=W(i||{}),n("Config updated",o),r.publish(e.EVENTS.HA_CONFIG_UPDATED,o)}function j(e,t,i){switch(t){case"requestCompleted":J(i);break;case"segmentLoaded":ee(i)}}function W(e){var t=i.extend(i.extend({},l),e);return t.segmentLength?t.maxSegmentsToCheck=-1:t.maxSegmentsToCheck=t.maxSegmentsToCheck||l.maxSegmentsToCheck,t}function K(){return(new Date).valueOf()}function z(){return T||s.CONSTANTS.DEFAULT_SEGMENT_LENGTH}function q(){var e=z()*o.segmentsBuffered*1e3/2;return u?e:Math.max(e,1e3*s.CONSTANTS.PROXY_REFRESH_TIME)}function X(){return E&&c&&ne()}function Q(){return"bit-wrapper"===o.plugin}function Z(){return"ooyalaHtml5VideoTech"===o.plugin||"vjs-wrapper"}function J(e){return e&&e.downloadType?X()&&Q()?(!e.success&&e.attempt>0?(p.push(e),f||(f=K()),n("data type is ",e.downloadType)):ae(),function(){if(p.length&&X()){var e=p[p.length-1];!(_="manifest"===e.downloadType&&e.url===(o.streams&&o.chosenEncoding&&o.streams[o.chosenEncoding]&&(o.streams[o.chosenEncoding].url||"")||""))&&e.attempt>=2&&!y[A]&&(m++,y[A]=!0,n("Bitrate failure",A))}}(),X()&&h.length>0&&m>=Math.round(h.length*o.failRatio)&&(n("failover due to check of bitrates",m),$()),!0):(n("disabled feed ignored"),!1):(n("invalid data provided to feed method",e),!1)}function $(){if(!X())return n("disabled. failover ignored"),void n(E,c,ne());d?n("video stream is in a process of fail over"):(r.publish(e.EVENTS.HA_WILL_FAILOVER),n("trying to failover"),d=!0,r.subscribe(e.EVENTS.VC_WILL_PLAY,"HAFailoverMechanism",F),r.publish(e.EVENTS.VC_RELOAD_AND_PLAY,o.streams||{}),n("failover initiated"),setTimeout(function(){d&&(r.publish(e.EVENTS.HA_FAILOVER_ERROR),d=!1)},o.failoverErrorTimeoutMs),ae(!0))}function ee(e){if(e&&e.duration)if(-1!==o.maxSegmentsToCheck)if(Q()){if(!(g>o.maxSegmentsToCheck)){if(e.duration){var t=parseFloat(e.duration);t&&te(t)}n("Average segments length",T)}}else n("segments check disabled due to unsupported plugin",o.plugin);else n("segments check disabled");else n("invalid data provided to feedSegments method",e)}function te(e){g>=0&&(T=(T*g+e)/(g+1),g++)}function ie(){ae(!0),r.unsubscribe(e.EVENTS.INITIAL_PLAY,"HAFailoverMechanism"),r.unsubscribe(e.EVENTS.BITRATE_CHANGED,"HAFailoverMechanism"),r.unsubscribe(e.EVENTS.BITRATE_INFO_AVAILABLE,"HAFailoverMechanism"),r.unsubscribe(e.EVENTS.ASSET_CHANGED,"HAFailoverMechanism"),r.unsubscribe(e.EVENTS.METADATA_FETCHED,"HAFailoverMechanism"),r.unsubscribe(e.EVENTS.VC_WILL_PLAY,"HAFailoverMechanism"),r.unsubscribe(e.EVENTS.DESTROY,"HAFailoverMechanism"),r.unsubscribe(e.EVENTS.DOWNLOADING,"HAFailoverMechanism"),r.unsubscribe(e.EVENTS.PLAYHEAD_TIME_CHANGED,"HAFailoverMechanism"),r.unsubscribe(e.EVENTS.DOWNLOADING,"HAFailoverMechanism"),r.unsubscribe(e.EVENTS.PLAYHEAD_TIME_CHANGED,"HAFailoverMechanism"),r.unsubscribe(e.EVENTS.HA_FAILOVER_NOW,"HAFailoverMechanism"),r.unsubscribe(e.EVENTS.HA_CONFIG_UPDATE,"HAFailoverMechanism"),r.unsubscribe(e.EVENTS.HA_NOTIFY,"HAFailoverMechanism"),clearInterval(C),n("destroy")}function ne(){return!!o.streams}function ae(t){p=[],f=null,m=0,_=!1,y={},T=o.segmentLength||0,g=0,t&&(h=[],A="",D=0),e.TEST_TEST_TEST&&"hard"===t&&(d=!1)}function re(e){var t=z();if(D&&N&&e){var i=5*t,n=t/2,a=(K()-D)/1e3;if(N-e<n&&a>i)return!0}return!1}function se(){if(X()){if(Z()&&re(I))return n("failover due to buffering issues"),void $();if(Q()){if(_&&K()-f>o.manifestFailureTimeoutMs)return n("failover due to manifest failure"),void $();m&&K()-f>q()&&(n("failover due to timeout"),$())}}}e.TEST_TEST_TEST&&(s.failover=$,s.reset=ae,s.isEnabled=X,s.feed=J,s.feedSegments=ee,s._getTimeoutTimeMs=q,s._getSegmentLength=t.bind(z,this),s._updateAvgSegmentLength=t.bind(te,this),s.pluginSupportsNativeEventsOnly=t.bind(Z,this)),o=W(o),r.subscribe(e.EVENTS.INITIAL_PLAY,"HAFailoverMechanism",R),r.subscribe(e.EVENTS.HA_FAILOVER_NOW,"HAFailoverMechanism",L),r.subscribe(e.EVENTS.HA_CONFIG_UPDATE,"HAFailoverMechanism",Y),r.subscribe(e.EVENTS.HA_NOTIFY,"HAFailoverMechanism",j),r.subscribe(e.EVENTS.BITRATE_CHANGED,"HAFailoverMechanism",P),r.subscribe(e.EVENTS.BITRATE_INFO_AVAILABLE,"HAFailoverMechanism",w),r.subscribe(e.EVENTS.ASSET_CHANGED,"HAFailoverMechanism",k),r.subscribe(e.EVENTS.METADATA_FETCHED,"HAFailoverMechanism",B),r.subscribe(e.EVENTS.DESTROY,"HAFailoverMechanism",ie),r.subscribe(e.EVENTS.DOWNLOADING,"HAFailoverMechanism",U),r.subscribe(e.EVENTS.PAUSED,"HAFailoverMechanism",H),r.subscribe(e.EVENTS.PLAY,"HAFailoverMechanism",x),r.subscribe(e.EVENTS.PLAYHEAD_TIME_CHANGED,"HAFailoverMechanism",G),n("initialization completed",o),e.TEST_TEST_TEST&&e.exposeStaticApi("ha",s)}})},{}],76:[function(e,t,i){"use strict";!function(e,t,i){var n=t.template("<%=server%>/ooyala_storage.html")({server:e.SERVER.API}),a=e.SERVER.API,r="LOADED",s=0,o=1,l=2,c=s,u=[],d={},h=null,A=document.createElement("iframe");A.style.display="none",A.src=n;var E=function(){document.body.appendChild(A),h=setTimeout(function(){f(o)},3e3)};function p(e){if(e.origin===a){if(e.data===r)return clearTimeout(h),void f(l);var t=null;try{t=JSON.parse(e.data)}catch(e){}t&&t.callback&&d[t.callback]&&(d[t.callback](t.result),delete d[t.callback])}}function f(e){var t;for(c=e;void 0!==(t=u.pop());)T(t[0],t[1],t[2])}function T(t,i,n){if(c!==s)if(c!==o&&A.contentWindow.postMessage){var r={method:t,arguments:i,callback:Math.random().toString(36).substring(7)};d[r.callback]=n,A.contentWindow.postMessage(JSON.stringify(r),a)}else{var l;l="setItem"===t?e[t].apply(e.localStorage,i):e.localStorage[t].apply(e.localStorage,i),n&&n(l)}else u.push(arguments)}e.TEST_TEST_TEST?E():i(document).ready(E),window.addEventListener?window.addEventListener("message",p,!1):window.attachEvent&&window.attachEvent("onmessage",p),e.ooyalaStorage={getItem:function(e,t){T("getItem",[e],t)},key:function(e,t){T("key",[e],t)},setItem:function(e,t,i){T("setItem",[e,t],i)},removeItem:function(e,t){T("removeItem",[e],t)},hasOwnProperty:function(e,t){T("hasOwnProperty",[e],t)}},e.TEST_TEST_TEST&&(e.ooyalaStorage._getIframeState=function(){return c})}(OO,OO._,OO.$)},{}],77:[function(e,t,i){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault")(e("@babel/runtime/helpers/typeof"));!function(e,t,i){var a="thirdquartile",r=function(i,n){this.toString=function(){return"playback-controller"},this.IOS_PLAY_MODE_OPTIONS={INLINE:"inline",FULLSCREEN:"fullscreen"},this.BITRATE_TIMERS={FIVE_SEC:5e3,STABLE:3e4},this.mb=i,this.id=n,this.playbackElements={},this.currentPlaybackElement=null,this.publishedPlaybackReady=!1,this.willPlayFromBeginning=!0,this.metadataHasFetched=!1,this.playedAtLeastOnce=!1,this.hasPlayed=!1,this.endScreenShown=!1,this.mobileContinuousPlayDisabled={},this.previousWasOoyalaAd=!1,this.initialPlayHasOccurred=!1,this.initialPlaybackHasStarted=!1,this.currentBitrate=-1,this.mainVideoElementCreated=!1,this.currentPlaybackElementCreated=!1,this.amcAllReady=!1,this.playingAds=!1,this.prerollsDone=!1,this.currentPodSize=0,this.finalPreroll=!1,this.reachedPrerollThresholdForPreloading=!1,this.preloaded=!1,this.requestedThumbnails=!1,this.totalPrerollPods=0,this.currentPrerollPod=0,this.fiveSecBitrateTimer=null,this.bitrateTimerPassed=0,this.refreshTimers=!1,this.thirtySecBitrateTimer=null,this.hasContentSet=!1,this.contentChangeRequestedExternally=!1,this.bitrateTimerStartTime=-1,this.playerParams=null,this.shouldPreload=!1,this.initialTime=0,this.playerCreatedTime=-1,this.closedCaptions=null,this.autoplayed=!1,this.contentStarted=!1,this.elementId=null,this.iosPlayMode=this.IOS_PLAY_MODE_OPTIONS.FULLSCREEN,this.runningAutoplayCheck=!1,this.autoplayChecked=!1,this.autoplayCapabilities={},this.delayForPreroll=!1,this.isAudioOnlyAsset=!1,this.bitrateProperty={level:e.CONSTANTS.AUTO_BITRATE,duration:1/0},this.bitrateOverrideFunction=null,this.bitrateOverrideTimer=null,this.chosenBitrateIndex=e.CONSTANTS.AUTO_BITRATE,this.isBitrateOverrideReady={isBitrateInfoAvailable:!1,isBitrateOverridden:!1},this.isVr=!1,this.isVideoTypeChanged=!1,this.PRELOAD_THRESHOLD_EVENT=a,this.mb.subscribe(e.EVENTS.PLAYER_CREATED,"playback",t.bind(this.playerCreated,this)),this.mb.subscribe(e.EVENTS.AUTOPLAY_CHECK_COMPLETE,"playback",t.bind(this.autoplayCheckComplete,this)),this.mb.subscribe(e.EVENTS.EMBED_CODE_CHANGED,"playback",t.bind(this.embedCodeChanged,this)),this.mb.subscribe(e.EVENTS.EMBED_CODE_CHANGED_AFTER_OOYALA_AD,"playback",t.bind(this.embedCodeChanged,this)),this.mb.subscribe(e.EVENTS.SET_EMBED_CODE,"playback",t.bind(this.setEmbedCode,this)),this.mb.subscribe(e.EVENTS.SET_ASSET,"playback",t.bind(this.setAsset,this)),this.mb.subscribe(e.EVENTS.CONTENT_TREE_FETCHED,"playback",t.bind(this.contentTreeFetched,this)),this.mb.subscribe(e.EVENTS.METADATA_FETCHED,"playback",t.bind(this.metadataFetched,this)),this.mb.subscribe(e.EVENTS.AUTHORIZATION_FETCHED,"playback",t.bind(this.authorizationFetched,this)),this.mb.subscribe(e.EVENTS.INITIAL_PLAY,"playback",t.bind(this.initialPlay,this)),this.mb.subscribe(e.EVENTS.WILL_PLAY_FROM_BEGINNING,"playback",t.bind(this.onWillPlayFromBeginning,this)),this.mb.subscribe(e.EVENTS.PLAYED,"playback",t.bind(this.played,this)),this.mb.subscribe(e.EVENTS.ASSET_CHANGED,"playback",t.bind(this.assetChanged,this)),this.mb.subscribe(e.EVENTS.VC_VIDEO_ELEMENT_CREATED,"playback",t.bind(this.vcVideoElementCreated,this)),this.mb.subscribe(e.EVENTS.VC_VIDEO_ELEMENT_IN_FOCUS,"playback",t.bind(this.videoControllerVideoElementInFocus,this)),this.mb.subscribe(e.EVENTS.VC_VIDEO_ELEMENT_DISPOSED,"playback",t.bind(this.vcVideoElementDisposed,this)),this.mb.subscribe(e.EVENTS.VC_PLAYED,"playback",t.bind(this.vcPlayed,this)),this.mb.subscribe(e.EVENTS.VC_PLAYING,"playback",t.bind(this.vcPlaying,this)),this.mb.subscribe(e.EVENTS.VC_CAN_PLAY,"playback",t.bind(this.vcCanPlay,this)),this.mb.subscribe(e.EVENTS.VC_PAUSED,"playback",t.bind(this.vcPaused,this)),this.mb.subscribe(e.EVENTS.VC_SEEKED,"playback",t.bind(this.vcSeeked,this)),this.mb.subscribe(e.EVENTS.VC_PLAY_FAILED,"playback",t.bind(this.vcPlayFailed,this)),this.mb.subscribe(e.EVENTS.VC_ERROR,"playback",t.bind(this.vcError,this)),this.mb.subscribe(e.EVENTS.VC_WILL_PLAY,"playback",t.bind(this.vcWillPlay,this)),this.mb.subscribe(e.EVENTS.REPLAY,"playback",t.bind(this.replay,this)),this.mb.subscribe(e.EVENTS.PLAYBACK_READY,"playback",t.bind(this.playbackReady,this)),this.mb.subscribe(e.EVENTS.BITRATE_CHANGED,"playback",t.bind(this.bitrateChanged,this)),this.mb.subscribe(e.EVENTS.BITRATE_INFO_AVAILABLE,"playback",t.bind(this.bitrateInfoAvailable,this)),this.mb.subscribe(e.EVENTS.SET_TARGET_BITRATE,"playback",t.bind(this.setTargetBitrate,this)),this.mb.subscribe(e.EVENTS.AMC_ALL_READY,"playback",t.bind(this.onAmcAllReady,this)),this.mb.subscribe(e.EVENTS.AMC_PREROLLS_DONE,"playback",t.bind(this.onAmcPrerollsDone,this)),this.mb.subscribe(e.EVENTS.SDK_AD_EVENT,"playback",t.bind(this.onSdkAdEvent,this)),this.mb.subscribe(e.EVENTS.WILL_PLAY_ADS,"playback",t.bind(this.onWillPlayAds,this)),this.mb.subscribe(e.EVENTS.ADS_PLAYED,"playback",t.bind(this.onAdsPlayed,this)),this.mb.subscribe(e.EVENTS.WILL_PLAY_SINGLE_AD,"playback",t.bind(this.onWillPlaySingleAd,this)),this.mb.subscribe(e.EVENTS.AD_POD_STARTED,"playback",t.bind(this.onAdPodStarted,this)),this.mb.subscribe(e.EVENTS.WILL_RESUME_MAIN_VIDEO,"playback",t.bind(this.willResume,this)),this.mb.subscribe(e.EVENTS.CANCEL_GEO_CHECKING,"playback",t.bind(this.onCancelGeoChecking,this)),this.mb.subscribe(e.EVENTS.DESTROY,"playback",t.bind(this.onDestroy,this))};t.extend(r.prototype,{getStreams:function(i){if(!i)return null;if(t.isEmpty(i.streams))return null;var n={};this.isAudioOnlyAsset=i.streams.every(function(t){return e.isAudioOnlyStream(t.delivery_type)});for(var a=0;a<i.streams.length;a++){var r=i.streams[a].delivery_type;if("youtube"===r)return n={deliveryType:r,youtube:{url:i.streams[a].youtube_id}};if(i.streams[a].url&&r&&(!i.streams[a].drm||!t.isEmpty(i.streams[a].drm))){var s=i.streams[a].drm||{};t.isEmpty(s)||"remote_asset"===r||(r=r.concat("_drm")),n[r]={url:e.decode64(i.streams[a].url.data)},t.isEmpty(s)||(n[r].drm=s);var o=i.streams[a].akamai_secure_hd||null;"boolean"==typeof o&&(n[r].contentMetadata={assetId:this.currentEmbedCode,accountId:this.playerParams.pcode,secureContent:o}),n.isLive=i.streams[a].is_live_stream||!1}}return n.remote_asset&&(n[e.VIDEO.ENCODING.UNKNOWN]=n.remote_asset,delete n.remote_asset),n},getAssets:function(e){if(!e||!e.content||t.isEmpty(e.content.streams))return null;for(var i={},n=e.content.streams,a=0;a<n.length;a++){var r=n[a];r.url&&r.delivery_type&&(i[r.delivery_type]={url:r.url},i.isLive=r.is_live_stream||!1)}return i},checkDataReady:function(e){null!=this.contentTree&&this.metadataHasFetched&&null!=this.authorization&&this.dataReady(e)},dataReady:function(i){var n=i?e.VIDEO.ADS:e.VIDEO.MAIN;this.playbackElements[n]={streams:this.streams},this.currentPlaybackElement=n,this.publishClosedCaptionInfo(n,this.closedCaptions);var a=this.playerParams?this.playerParams.platform:void 0,r=this.playerParams?this.playerParams.crossorigin:void 0,s=this.playerParams?this.playerParams.pcode:void 0,o={closedCaptions:this.playbackElements[n].closedCaptions,platform:a,crossorigin:r,authenticationData:{pcode:s},initialTime:this.initialTime,pluginParams:t.extend({},e.playerParams,this.playerParams)};if(this.isVr){var l=this.getPlayerVrParams();o.pluginParams[e.VIDEO_PLAYERS.BIT_WRAPPER]=t.extend({},l,o.pluginParams[e.VIDEO_PLAYERS.BIT_WRAPPER]),e.isIos&&e.iosMajorVersion>=11&&(o.crossorigin="anonymous")}this.mb.publish(e.EVENTS.VC_CREATE_VIDEO_ELEMENT,n,this.streams,null,o)},resetStreamData:function(){this.contentTree=null,this.metadataHasFetched=!1,this.authorization=null,this.streams=null,this.currentEmbedCode=null,this.endScreenShown=!1,this.mainVideoElementCreated=!1,this.currentPlaybackElementCreated=!1,this.previousWasOoyalaAd||(this.amcAllReady=!1),this.playingAds=!1,this.prerollsDone=!1,this.currentPodSize=0,this.finalPreroll=!1,this.reachedPrerollThresholdForPreloading=!1,this.preloaded=!1,this.totalPrerollPods=0,this.currentPrerollPod=0,this.publishedPlaybackReady=!1,this.autoplayed=!1,this.contentStarted=!1,this.requestedThumbnails=!1,this.playedAtLeastOnce=!1,this.previousWasOoyalaAd||this.playerParams.ooyalaAds||(this.initialTime=0),this.playerParams&&this.playerParams.ooyalaAds?this.previousWasOoyalaAd=!0:this.previousWasOoyalaAd=!1,this.bitrateProperty={level:e.CONSTANTS.AUTO_BITRATE,duration:1/0},this.chosenBitrateIndex=e.CONSTANTS.AUTO_BITRATE,this.isBitrateOverrideReady={isBitrateInfoAvailable:!1,isBitrateOverridden:!1}},preloadStream:function(){(this.shouldPreload||this.shouldAutoplay())&&!this.preloaded&&this.mainVideoElementCreated&&(this.prerollsDone||this.reachedPrerollThresholdForPreloading&&!e.isIos)&&(this.preloaded=!0,this.mb.publish(e.EVENTS.VC_PRELOAD,this.currentPlaybackElement))},canAutoplay:function(){return!(!1===this.autoplayCapabilities.muted&&!1===this.autoplayCapabilities.unmuted)},shouldAutoplay:function(){if(e.isSamsungBrowser)return!1;var t=this.autoplayEnabled()&&(this.canAutoplay()||this.initialPlayHasOccurred),i=!this.mobileContinuousPlayDisabled[this.currentPlaybackElement]&&t&&this.hasPlayed,n=!1;return this.playerParams&&this.playerParams.ooyalaAds&&(n=!0),!(e.isIphone&&this.iosPlayMode!==this.IOS_PLAY_MODE_OPTIONS.INLINE&&!i&&!n)&&!!(i||!1===this.playedAtLeastOnce&&t||n)},triggerAutoplay:function(){this.shouldAutoplay()&&(this.autoplayed=!0,this.mb.publish(e.EVENTS.INITIAL_PLAY,Date.now(),this.autoplayed))},setAutoPlayParam:function(){this.playerParams&&(this.playerParams.autoPlay="true"===this.playerParams.autoPlay||!0===this.playerParams.autoPlay||"true"===this.playerParams.autoplay||!0===this.playerParams.autoplay,this.initialPlayHasOccurred&&(void 0!==this.playerParams.autoPlayUpNextVideosOnly&&"true"!==this.playerParams.autoPlayUpNextVideosOnly&&!0!==this.playerParams.autoPlayUpNextVideosOnly||(this.playerParams.autoPlay=!0)))},triggerLoopPlay:function(){!!this.playerParams&&("true"===this.playerParams.loop||!0===this.playerParams.loop)&&this.mb.publish(e.EVENTS.REPLAY)},playerCreated:function(i,n,a,r,s,o){var l=this;this.elementId=n,this.playerParams=a,this.playerCreatedTime=o,e.isIos&&7===e.iosMajorVersion?window.addEventListener("pageshow",t.bind(function(){this.mb.publish(e.EVENTS.PAUSE)},this)):(e.isAndroid||e.isIos)&&document.addEventListener("visibilitychange",t.bind(function(t){document.hidden&&this.mb.publish(e.EVENTS.PAUSE)},this)),this.autoplayEnabled()&&(this.runningAutoplayCheck=!0,e.checkAutoplay.runTest(function(t,i){e.log("Autoplay check complete",t),l.mb.publish(e.EVENTS.AUTOPLAY_CHECK_COMPLETE,t),e.log("Autoplay state checked",i),l.mb.publish(e.EVENTS.AUTOPLAY_STATE_CHECKED,i)}))},applyPlayerParams:function(){if(this.playerParams){if(void 0!==this.playerParams.locale&&e.setLocale(this.playerParams.locale),(!this.hasContentSet||this.contentChangeRequestedExternally)&&void 0!==this.playerParams.initialTime){var t=parseFloat(this.playerParams.initialTime);!isNaN(t)&&t>0&&(this.initialTime=t)}!1===this.playerParams.preload||this.initialTime?this.shouldPreload=!1:!0===this.playerParams.preload&&(this.shouldPreload=!0),void 0!==this.playerParams.iosPlayMode&&(this.iosPlayMode=this.playerParams.iosPlayMode),"boolean"==typeof this.playerParams.delayForPreroll&&(this.delayForPreroll=this.playerParams.delayForPreroll),this.initialBitrateOverride(this.playerParams)}},autoplayEnabled:function(){var e=this.playerParams;return e&&("true"===e.autoPlay||!0===e.autoPlay||"true"===e.autoplay||!0===e.autoplay)},autoplayCheckComplete:function(e,t){this.autoplayChecked=!0,this.autoplayCapabilities=t,this.tryPublishPlaybackReady()},fetchThumbnails:function(){if(!this.requestedThumbnails){this.requestedThumbnails=!0;var n={server:e.SERVER.API,embedCode:this.currentEmbedCode};i.ajax({url:e.URLS.THUMBNAILS(n),type:"GET",dataType:"json",cache:!0,success:t.bind(this.thumbnailsFetched,this),error:t.bind(this._thumbnailsFailed,this)})}},thumbnailsFetched:function(i){i&&i.data&&!t.isEmpty(i.data.thumbnails)&&this.mb.publish(e.EVENTS.THUMBNAILS_FETCHED,i)},_thumbnailsFailed:function(t,i,n){e.log("Failed to fetch thumbnails")},shouldDisplayMarkers:function(){return void 0===this.playerParams.markers||"boolean"!=typeof this.playerParams.markers||!1!==this.playerParams.markers.valueOf()},playbackReady:function(){this.shouldAutoplay()||this.isAudioOnlyAsset||(this.fetchThumbnails(),this.shouldDisplayMarkers()&&this.loadMarkers()),this.triggerAutoplay()},loadMarkers:function(){var e=this.getMarkersURL();""!==e?i.ajax({url:e,type:"GET",dataType:"json",cache:!0,success:t.bind(this.publishMarkerData,this),error:t.bind(this.onMarkersFailed,this)}):this.publishMarkerData()},publishMarkerData:function(t){var i={list:[]},n=this.getInlineMarkers(),a=t&&t.type&&""!==t.type?t.type:null;t&&Array.isArray(t.markerList)&&t.markerList.length>0?(n.forEach(function(e){var i=t.markerList.findIndex(function(t){return t.start===e.start});i>=0?t.markerList[i]=Object.assign({},t.markerList[i],e):t.markerList.push(e)}),i.list=t.markerList):n.length>0&&(i.list=n),a&&(i.type=a,i.list=i.list.map(function(e){return void 0!==e.type&&""!==e.type||(e.type=a),e})),i.list.length>0&&(i.list=i.list.sort(function(e,t){return e.start>t.start?1:-1}),this.mb.publish(e.EVENTS.MARKER_DATA_AVAILABLE,i))},getInlineMarkers:function(){return this.playerParams.markers&&Array.isArray(this.playerParams.markers.inline)&&this.playerParams.markers.inline.length>0?this.playerParams.markers.inline:[]},onMarkersFailed:function(t,i,n){e.log("Error: Failed to fetch markers data")},getMarkersURL:function(){return this.playerParams&&this.playerParams.markers&&this.playerParams.markers.config?this.playerParams.markers.config:this.contentTree&&this.contentTree.markers_url?this.contentTree.markers_url:""},clearBitrateTimers:function(){clearTimeout(this.fiveSecBitrateTimer),this.fiveSecBitrateTimer=null,clearTimeout(this.thirtySecBitrateTimer),this.thirtySecBitrateTimer=null,clearTimeout(this.bitrateOverrideTimer),this.bitrateOverrideTimer=null},initialBitrateOverride:function(t){if(t&&t.initialBitrate){var n=t.initialBitrate.level;(n===e.CONSTANTS.AUTO_BITRATE||i.isNumeric(n)&&n>=0&&n<=1)&&(this.bitrateProperty.level=n);var a=t.initialBitrate.duration;i.isNumeric(a)&&a>0&&(this.bitrateProperty.duration=a)}t&&t.bitrateOverrideFunction&&"function"==typeof t.bitrateOverrideFunction&&(this.bitrateOverrideFunction=t.bitrateOverrideFunction)},bitrateInfoAvailable:function(t,i,n){if(this.isAudioOnlyAsset&&i&&i.bitrates){for(var a=!1,r=0;r<i.bitrates.length;r++)if(i.bitrates[r].width||i.bitrates[r].height){a=!0;break}if(a){var s={ooyalaErrorCode:e.ERROR.PLAYBACK.GENERIC,ooyalaErrorMessage:"Audio only asset contains video streams.",mediaErrorMessage:"Source is unsupported."};return this.mb.publish(e.EVENTS.ERROR,{code:e.ERROR.PLAYBACK.GENERIC}),void this.mb.publish(e.EVENTS.PLAYBACK_START_ERROR,s)}}if(i&&i.bitrates&&this.bitrateProperty.level!==e.CONSTANTS.AUTO_BITRATE&&n===e.VIDEO.MAIN){for(var o=[],l={},c=0;c<i.bitrates.length;c++)i.bitrates[c].id!==e.CONSTANTS.AUTO_BITRATE&&(o.push(i.bitrates[c].bitrate),l[i.bitrates[c].bitrate]=i.bitrates[c].id);if(o.sort(function(e,t){return e-t}),o.length>0){for(var u=this.bitrateProperty.level*o[o.length-1],d=o[0],h=0;h<o.length&&o[h]<=u;h++)d=o[h];this.chosenBitrateIndex=l[d],this.isBitrateOverrideReady.isBitrateInfoAvailable=!0}this.publishInitialBitrateOverride()}},publishInitialBitrateOverride:function(){this.isBitrateOverrideReady.isBitrateOverridden||("function"==typeof this.bitrateOverrideFunction?(this.bitrateOverrideFunction(),this.isBitrateOverrideReady.isBitrateOverridden=!0):this.isBitrateOverrideReady.isBitrateInfoAvailable&&this.bitrateProperty.level!==e.CONSTANTS.AUTO_BITRATE&&this.chosenBitrateIndex!==e.CONSTANTS.AUTO_BITRATE&&(this.mb.publish(e.EVENTS.SET_TARGET_BITRATE,this.chosenBitrateIndex,{setTimer:!0},e.VIDEO.MAIN),this.mb.publish(e.EVENTS.SEND_QUALITY_CHANGE,this.chosenBitrateIndex,{setTimer:!0},e.VIDEO.MAIN),this.isBitrateOverrideReady.isBitrateOverridden=!0))},videoControllerVideoElementInFocus:function(e){this.publishInitialBitrateOverride()},setTargetBitrate:function(i,n,a){a&&a.setTimer?this.bitrateOverrideTimer=setTimeout(t.bind(function(){this.mb.publish(e.EVENTS.SET_TARGET_BITRATE,e.CONSTANTS.AUTO_BITRATE,{},e.VIDEO.MAIN)},this),1e3*this.bitrateProperty.duration):this.bitrateOverrideTimer&&(clearTimeout(this.bitrateOverrideTimer),this.bitrateOverrideTimer=null)},startBitrateTimers:function(){var t=this;this.bitrateTimerStartTime=Date.now(),this.refreshTimers&&(this.refreshTimers=!1,this.bitrateTimerPassed=0),this.bitrateTimerPassed<this.BITRATE_TIMERS.FIVE_SEC&&!this.fiveSecBitrateTimer&&(this.fiveSecBitrateTimer=setTimeout(function(){t.fiveSecBitrateSent=!0,t.mb.publish(e.EVENTS.BITRATE_FIVE_SEC,t.currentBitrate)},this.BITRATE_TIMERS.FIVE_SEC-this.bitrateTimerPassed)),this.startBitrateStableTimer()},startBitrateStableTimer:function(){var e=this;this.thirtySecBitrateTimer||(this.thirtySecBitrateTimer=setTimeout(function(){e.publishBitrateInfo()},this.BITRATE_TIMERS.STABLE))},publishBitrateInfo:function(){var t=this;this.mb.publish(e.EVENTS.BITRATE_STABLE,this.currentBitrate),this.thirtySecBitrateTimer=setTimeout(function(){t.publishBitrateInfo()},this.BITRATE_TIMERS.STABLE)},bitrateChanged:function(t,i){this.currentBitrate=i.bitrate,this.initialPlaybackHasStarted||(this.initialPlaybackHasStarted=!0,this.mb.publish(e.EVENTS.BITRATE_INITIAL,this.currentBitrate),this.bitrateTimerPassed=0,this.startBitrateTimers()),this.startBitrateStableTimer()},authorizationFetched:function(e,t,i){this.authorization=t,this.streams=this.getStreams(t),this.checkDataReady(i)},contentTreeFetched:function(t,i,n){this.contentTree=i,i&&(this.closedCaptions={closed_captions:i.closed_captions,closed_captions_vtt:i.closed_captions_vtt});var a=!!this.hasVrParams();if(this.isVideoTypeChanged=this.isVr!==a,this.isVideoTypeChanged&&(this.mb.publish(e.EVENTS.VIDEO_TYPE_CHANGED),this.isVr=a,this.recreateUi(a)),a){var r=this.getPlayerVrParams();this.mb.publish(e.EVENTS.VIDEO_VR,{videoId:n?e.VIDEO.ADS:e.VIDEO.MAIN,source:(r||{}).source})}this.checkDataReady(n)},publishClosedCaptionInfo:function(i,n){if(n){var a={};if(n.closed_captions_vtt&&n.closed_captions_vtt.captions&&t.size(n.closed_captions_vtt.captions)>0){a.closed_captions_vtt=n.closed_captions_vtt.captions,a.availableLanguages=n.closed_captions_vtt.languages,a.locale={};for(var r=0;r<a.availableLanguages.length;r++){var s=a.availableLanguages[r];a.locale[s]=a.closed_captions_vtt[s].name}}if(n.closed_captions&&n.closed_captions.length>0&&(a.closed_captions_dfxp=n.closed_captions[0],a.availableLanguages=n.closed_captions[0].languages),t.size(a)>0){var o={videoId:i};if(o.languages=n.closed_captions_vtt&&n.closed_captions_vtt.languages||a.closed_captions_dfxp&&a.closed_captions_dfxp.languages,o.locale={},o.languages&&o.languages.length>0){for(var l=0;l<o.languages.length;l++){var c=o.languages[l];a.closed_captions_vtt&&a.closed_captions_vtt[c]&&(o.locale[c]=a.closed_captions_vtt[c].name)}t.extend(this.playbackElements[this.currentPlaybackElement],{closedCaptions:a}),this.mb.publish(e.EVENTS.CLOSED_CAPTIONS_INFO_AVAILABLE,o)}}}},metadataFetched:function(e,t,i){this.metadataHasFetched=!0,this.checkDataReady(i)},hasVrParams:function(){return"mono"===(this.contentTree&&this.contentTree.movie_attributes&&this.contentTree.movie_attributes.vr360type)},recreateUi:function(t){if(t){return this.mb.publish(e.EVENTS.RECREATING_UI,this.elementId,this.playerParams,{closedCaptionOptions:{}}),!0}return!1},getPlayerVrParams:function(){var t={stereo:e.PLAYER_VR.DEFAULT_SETTINGS.STEREO,contentType:e.PLAYER_VR.DEFAULT_SETTINGS.CONTENT_TYPE,startPosition:e.PLAYER_VR.DEFAULT_SETTINGS.START_POSITION,viewWindow:e.PLAYER_VR.DEFAULT_SETTINGS.VIEW_WINDOW};if(this.hasVrParams()){var i=null;return(t=this._correctParametersName(t))&&(i={source:{vr:t}}),i}return null},_correctParametersName:function(e){switch(this.contentTree.movie_attributes.vr360type){case"stereo_lr":e.stereo=!0,e.contentType="sbs";break;case"stereo_tb":e.stereo=!0,e.contentType="tab"}return e},initialPlay:function(t,i,n){this.initialPlayHasOccurred=!0,this.willPlayFromBeginning&&this.mb.publish(e.EVENTS.WILL_PLAY_FROM_BEGINNING),this.willPlayFromBeginning=!1},onWillPlayFromBeginning:function(){this.initialBitrateDataSent=!1,this.playerParams&&this.playerParams.ooyalaAds||this.mb.publish(e.EVENTS.VC_SET_INITIAL_TIME,e.VIDEO.MAIN,this.initialTime),this.playingAds||(this.mb.publish(e.EVENTS.VC_FOCUS_VIDEO_ELEMENT,this.currentPlaybackElement),this.mb.publish(e.EVENTS.PLAY))},vcVideoElementCreated:function(t,i){this.currentPlaybackElement&&i.videoId===this.currentPlaybackElement&&(this.currentPlaybackElement===e.VIDEO.MAIN&&(this.mainVideoElementCreated=!0),this.currentPlaybackElementCreated=!0,this.tryPublishPlaybackReady())},tryPublishPlaybackReady:function(){var t=this.totalPrerollPods>0&&this.autoplayEnabled()&&this.runningAutoplayCheck&&!this.delayForPreroll,i=this.autoplayChecked||!t;if(!this.publishedPlaybackReady&&this.currentPlaybackElementCreated&&i&&this.amcAllReady){this.publishedPlaybackReady=!0,e.log("playbackready publishing, wait for autoplay check",t);var n=(new Date).valueOf()-this.playerCreatedTime;this.mb.publish(e.EVENTS.PLAYBACK_READY,n,{willAutoplay:this.shouldAutoplay()}),this.preloadStream()}},vcVideoElementDisposed:function(e,t){this.mobileContinuousPlayDisabled[t]=!0},setEmbedCode:function(e,t,i,n){this.contentChangeRequestedExternally=!!n},setAsset:function(e,t,i,n){this.contentChangeRequestedExternally=!!n},embedCodeChanged:function(e,t,i){this.prepareForContentChange(i),this.currentEmbedCode=t},assetChanged:function(e,t,i){this.prepareForContentChange(i),this.streams=this.getAssets(t),this.closedCaptions={closed_captions:t.content.captions.closed_captions,closed_captions_vtt:t.content.captions.closed_captions_vtt},this.dataReady()},prepareForContentChange:function(t){this.playerParams="object"===(0,n.default)(t)?t:{},this.clearBitrateTimers(),this.resetStreamData(),this.applyPlayerParams(),this.setAutoPlayParam(),this.willPlayFromBeginning=!0,this.hasContentSet=!0,this.initialPlayHasOccurred&&this.mb.publish(e.EVENTS.MARKER_DATA_AVAILABLE,{list:[]})},willResume:function(){this.mb.publish(e.EVENTS.VC_PLAY,this.currentPlaybackElement)},vcPlayFailed:function(t,i,n){if(this.currentPlaybackElement&&i===this.currentPlaybackElement){this.clearBitrateTimers();var a=window.MediaError?window.MediaError.MEDIA_ERR_ABORTED:1,r=window.MediaError?window.MediaError.MEDIA_ERR_NETWORK:2,s=window.MediaError?window.MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:4;this.mb.publish(e.EVENTS.PLAY_FAILED,n.mediaErrorCode);var o,l,c,u=parseInt(n.mediaErrorCode);switch(u){case-1:o="An unknown error has occurred.";break;case 0:o="No stream found.";break;case 1:o="Aborted by user.";break;case 2:o="A network error occurred retrieving the video source.";break;case 3:o="Error decoding source.";break;case 4:o="Source is unsupported.";break;case 5:o="Source could not be decrypted.";break;case 6:o="A DRM server error has occurred.";break;case 15:o="Token expired.";break;case 22:o="Device not registered to viewer account.";break;case 29:o="Device limit reached."}if(u===a||u===s)l=e.ERROR.PLAYBACK.GENERIC,c="Could not play the content.";else if(u===r)l=e.ERROR.PLAYBACK.NETWORK,c="The network connection was temporarily lost.";else if(6===u)l=e.ERROR.API.SAS.ERROR_DRM_RIGHTS_SERVER_ERROR,c="DRM server error.";else if(22===u)l=e.ERROR.API.SAS.ERROR_NON_REGISTERED_DEVICE,c="Device not registered to viewer account.";else if(29===u)l=e.ERROR.API.SAS.ERROR_DEVICE_LIMIT_REACHED,c="Device limit reached.";else if(15===u)l=e.ERROR.API.SAS.ERROR_DRM_TOKEN_EXPIRED,c="Token expired.";else if(this.contentTree)switch(this.contentTree.content_type){case"Video":l=e.ERROR.VC.UNSUPPORTED_ENCODING,c="This video encoding is not supported on your device";break;case"LiveStream":l=e.ERROR.PLAYBACK.LIVESTREAM,c="Live stream is off air.";break;default:l=e.ERROR.PLAYBACK.GENERIC,c="Could not play the content."}n.ooyalaErrorCode=l,n.ooyalaErrorMessage=c,n.mediaErrorMessage=o,this.mb.publish(e.EVENTS.ERROR,{code:l}),n.playhead>0?this.mb.publish(e.EVENTS.PLAYBACK_MIDSTREAM_ERROR,n):this.mb.publish(e.EVENTS.PLAYBACK_START_ERROR,n)}},vcError:function(t,i,n){if(this.currentPlaybackElement&&i===this.currentPlaybackElement){this.clearBitrateTimers();var a={};n.ooyalaErrorCode===e.ERROR.VC.UNSUPPORTED_ENCODING?(n.ooyalaErrorMessage="This device does not have an available decoder for this stream type.",a.code=n.ooyalaErrorCode):n.ooyalaErrorCode===e.ERROR.VC.UNABLE_TO_CREATE_VIDEO_ELEMENT?(n.ooyalaErrorMessage="A video element to play the given stream could not be created.",a.code=n.ooyalaErrorCode):a=n,n.playhead>0?this.mb.publish(e.EVENTS.PLAYBACK_MIDSTREAM_ERROR,n):this.mb.publish(e.EVENTS.PLAYBACK_START_ERROR,n),this.mb.publish(e.EVENTS.ERROR,a)}},vcWillPlay:function(t,i){this.playbackElements[i]&&(this.mb.publish(e.EVENTS.WILL_PLAY),e.isIos&&this.endScreenShown&&this.mb.publish(e.EVENTS.REPLAY),this.endScreenShown=!1,this.startBitrateStableTimer())},replay:function(t,i){this.endScreenShown=!1,this.bitrateOverrideTimer&&(clearTimeout(this.bitrateOverrideTimer),this.bitrateOverrideTimer=null),this.isBitrateOverrideReady.isBitrateOverridden=!1,this.initialTime=i||0,this.mb.publish(e.EVENTS.WILL_PLAY_FROM_BEGINNING),this.isVr&&this.mb.publish(e.EVENTS.MOVE_VR_TO_DIRECTION,e.VIDEO.MAIN,!0,"init")},vcPlayed:function(t,i){this.currentPlaybackElement&&i===this.currentPlaybackElement&&(this.clearBitrateTimers(),this.endScreenShown=!0,this.playedAtLeastOnce=!0,this.mb.publish(e.EVENTS.PLAYED))},vcPlaying:function(t,i){this.currentPlaybackElement&&i===this.currentPlaybackElement&&(this.initialBitrateDataSent||(this.initialBitrateDataSent=!0,this.mb.publish(e.EVENTS.BITRATE_INITIAL,this.currentBitrate),this.startBitrateTimers()),i===e.VIDEO.MAIN&&(!this.autoplayed||this.contentStarted||this.isAudioOnlyAsset||(this.fetchThumbnails(),this.shouldDisplayMarkers()&&this.loadMarkers()),this.contentStarted=!0),this.hasPlayed=!0,this.mobileContinuousPlayDisabled[i]=!1,this.mb.publish(e.EVENTS.PLAYING))},vcCanPlay:function(t,i){this.currentPlaybackElement===i&&this.mb.publish(e.EVENTS.CAN_PLAY)},vcPaused:function(t,i){this.clearBitrateTimers(),this.bitrateTimerPassed+=Date.now()-this.bitrateTimerStartTime,this.currentPlaybackElement&&i===this.currentPlaybackElement&&this.mb.publish(e.EVENTS.PAUSED)},vcSeeked:function(t,i,n){this.currentPlaybackElement&&i===this.currentPlaybackElement&&this.mb.publish(e.EVENTS.SEEKED,n)},played:function(){this.playedAtLeastOnce=!0,this.preloaded=!1,this.preloadStream(),this.triggerLoopPlay()},onAmcAllReady:function(e,t){this.amcAllReady=!0,t&&(this.totalPrerollPods=t.prerolls,this.totalPrerollPods||(this.prerollsDone=!0,this.preloadStream())),this.tryPublishPlaybackReady()},onAmcPrerollsDone:function(){this.prerollsDone=!0,this.preloadStream()},onSdkAdEvent:function(t,i,n,a){var r=(e.playerParams||{}).preloadThresholdEvent||this.PRELOAD_THRESHOLD_EVENT;this.finalPreroll&&n===r&&(this.reachedPrerollThresholdForPreloading=!0,this.preloadStream())},onAdPodStarted:function(e,t){this.refreshTimers=!0,this.clearBitrateTimers(),this.currentPodSize=t,this.currentPrerollPod++},onWillPlaySingleAd:function(e,t){t&&this.currentPrerollPod===this.totalPrerollPods&&t.indexInPod===this.currentPodSize&&!this.contentStarted&&(this.finalPreroll=!0)},onWillPlayAds:function(e){this.playingAds=!0},onAdsPlayed:function(e){this.playingAds=!1},onCancelGeoChecking:function(){"number"==typeof e.geoCheckingInterval&&(clearInterval(e.geoCheckingInterval),e.geoCheckingInterval=null)},onDestroy:function(){this.onCancelGeoChecking()}}),e.registerModule("playbackController",function(e,t){return new r(e,t)})}(OO,OO._,OO.$)},{"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/typeof":18}],78:[function(e,t,i){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),a=n(e("@babel/runtime/regenerator")),r=n(e("@babel/runtime/helpers/asyncToGenerator")),s=n(e("@babel/runtime/helpers/typeof"));!function(e,t,i){var n=function(){e.log.apply(this,i.merge(["VC:"],arguments))},o={},l={},c=t.bind(function(){var e=[];return t.each(l,function(t,i){t&&t.length>0&&e.push(i)}),e},this);e.Video={plugin:function(e){if(this.validate(e)){n("Registering video plugin:",e.name);for(var t=0;t<e.encodings.length;t++){var i=e.encodings[t];l[i]?l[i].push(e.name):l[i]=[e.name]}o[e.name]=e}},unregister:function(e){if(n("Removing a video plugin:",e),e&&o[e]){for(var i=0;i<o[e].encodings.length;i++){var a=o[e].encodings[i],r=l[a]?l[a].indexOf(e):-1;r>-1&&l[a].splice(r,1)}if(t.isFunction(o[e].destroy))try{o[e].destroy()}catch(t){n("Error destroying a video plugin",e,".",t)}delete o[e]}},validate:function(e){var i,a,r,l={name:"string",encodings:"object",features:"object",technology:"string"},c=["create"];function u(e){n(e)}function d(i,n){return!!t.isFunction(e[i])||(u("The video plugin '"+n+"' requires a '"+i+"' function"),!1)}if(!e)return u("The video plugin must be defined"),!1;if(!t.isObject(e))return u("The video plugin must be an object"),!1;for(var h in l)if(i=h,a=l[h],r=e.name,!(t.has(e,i)?(0,s.default)(e[i])===a||(u("The video plugin '"+r+"' property '"+i+"' should be type '"+a+"'"),0):(u("The video plugin '"+r+"' requires a '"+i+"' property"),0)))return!1;for(var A=0;A<c.length;A++)if(!d(c[A],e.name))return!1;return!o[e.name]||(u("The video plugin '"+e.name+"' has already been registered"),!1)},getRegisteredPlugins:function(){return o}},e.exposeStaticApi("Video",e.Video);var u=function(e,i,n){this.videoId=i,this.EVENTS=e.EVENTS,this.notify=t.bind(function(t,i){return e.notify(this.videoId,n,t,i)},this),this.markNotReady=t.bind(e.markNotReady,e,this.videoId),this.markReady=t.bind(e.markReady,e,this.videoId),this.PLUGIN_MAGIC="087d2ef5-9d39-43ed-a57a-16a312c87c0b"},d=function(s,d){this.IOS_PLAY_MODE_OPTIONS={INLINE:"inline",FULLSCREEN:"fullscreen"};var h=s,A=null,E=[],p=[],f=null;this.activeInstances={},this.focusVideoId=null;var T="",g=e.CONSTANTS.CLOSED_CAPTIONS.SHOWING;this.elementId=null,this.currentPlayhead=0,this.currentDuration=0,this.failoverPlayhead=0,this.handleFailover=!1,this.paused=!0,this.pauseAfterReload=!1,this.initialPlayTime=-1,this.hasPlayedAd=!1,this.isVideoTypeChanged=!1,this.startPositionVr=0,this.isVr=!1,this.initialPlayHasStarted=!1,this.defaultAudioTracks={},this.desiredPlaybackSpeed=1,this.vrVideoId=e.VIDEO.MAIN,this.ALLOWED_MULTI_AUDIO_ENCODINGS=[e.VIDEO.ENCODING.DASH,e.VIDEO.ENCODING.HLS,e.VIDEO.ENCODING.DRM.HLS,e.VIDEO.ENCODING.DRM.DASH],this.toString=function(){return"video-controller"};var y=function(e){this.plugin=e.plugin&&e.plugin.name,this.domId=oi(),this.supportedEncodings=e.plugin.encodings||[],this.parentContainer=e.parentContainer||f&&f.find(".innerWrapper")||null,this.wrapper=e.wrapper,this.sharedObjectToInstance=e.sharedObjectToInstance,this.isControllingObject=void 0===e.isControllingObject||e.isControllingObject,this.primedForUnmutedAutoPlayback=!1},m=function(e){this.plugin=e.plugin&&e.plugin.name,this.parentContainer=e.parentContainer,this.element=e.element||null,this.isControllingElement=!!e.isControllingElement,this.playhead=0,this.encoding=e.encoding||null,this.stream=e.stream||null,this.vtcInterface=e.vtcInterface||{},this.closedCaptions=e.closedCaptions||{},this.crossorigin=e.crossorigin||null,this.isLive=e.isLive||!1,this.params=e.params||{},this.playing=!1,this.disableNativeSeek=!1},_={},S={},O={},b=null,v=!0,I=[],N=1,D=!1,C=!1,R=null,L=!1,P=!1,w=this.IOS_PLAY_MODE_OPTIONS.FULLSCREEN,k=!1,V=null,B={},M={},F=!1,U=!1,H=null,x=!1,G={},Y=!1;this.EVENTS={PLAY:"play",CAN_PLAY:"canPlay",PLAYING:"playing",ENDED:"ended",ERROR:"error",SEEKING:"seeking",SEEKED:"seeked",PAUSED:"paused",PLAYBACK_RATE_CHANGE:"playbackRateChange",STALLED:"stalled",TIME_UPDATE:"timeupdate",VOLUME_CHANGE:"volumechange",MUTE_STATE_CHANGE:"mutestatechange",BUFFERING:"buffering",BUFFERED:"buffered",DURATION_CHANGE:"durationchange",PROGRESS:"progress",WAITING:"waiting",FULLSCREEN_CHANGED:"fullScreenChanged",CAPTIONS_FOUND_ON_PLAYING:"captionsFoundOnPlaying",CAPTIONS_LANGUAGE_CHANGE:"captionsLanguageChange",ASSET_DIMENSION:"assetDimension",BITRATE_CHANGED:"bitrateChanged",BITRATES_AVAILABLE:"bitratesAvailable",CLOSED_CAPTION_CUE_CHANGED:"closedCaptionCueChanged",METADATA_FOUND:"metadataFound",PLUGIN_LOADED:"pluginLoaded",TOUCH_MOVE:"touchMove",CHECK_VR_DIRECTION:"checkVrDirection",ON_DOWNLOAD_FINISHED:"onDownloadFinished",ON_SEGMENT_LOADED:"onSegmentLoaded",UNMUTED_PLAYBACK_FAILED:"unmutedPlaybackFailed",UNMUTED_PLAYBACK_SUCCEEDED:"unmutedPlaybackSucceeded",MUTED_PLAYBACK_FAILED:"mutedPlaybackFailed",MUTED_PLAYBACK_SUCCEEDED:"mutedPlaybackSucceeded",MULTI_AUDIO_AVAILABLE:"multiAudioAvailable",MULTI_AUDIO_CHANGED:"multiAudioChanged",SET_CURRENT_AUDIO:"setCurrentAudio"};var j="encodingPriority",W="initialVolume",K="pauseOnLiveAds",z="iosPlayMode",q="muteFirstPlay",X="initialPlaybackSpeed",Q="default",Z="pageLevel",J="backlot",$="backdoor",ee="ooyalaAds",te={};te[Q]=[e.VIDEO.ENCODING.DRM.DASH,e.VIDEO.ENCODING.DRM.HLS,e.VIDEO.ENCODING.DASH,e.VIDEO.ENCODING.HLS,e.VIDEO.ENCODING.AKAMAI_HD2_VOD_HLS,e.VIDEO.ENCODING.AKAMAI_HD2_HLS,e.VIDEO.ENCODING.MP4,e.VIDEO.ENCODING.YOUTUBE,e.VIDEO.ENCODING.HDS,e.VIDEO.ENCODING.WEBM,e.VIDEO.ENCODING.IMA,e.VIDEO.ENCODING.PULSE,e.VIDEO.ENCODING.AUDIO_HLS,e.VIDEO.ENCODING.AUDIO_M4A,e.VIDEO.ENCODING.AUDIO_OGG],te[ee]=[e.VIDEO.ENCODING.MP4];var ie=Q,ne=null,ae={width:"100%",height:"100%",position:"absolute",visibility:"hidden","z-index":e.CSS.VIDEO_Z_INDEX};e.isIos?ae.display=e.CSS.INVISIBLE_DISPLAY:ae.left="-100000px";var re=t.bind(function(){h.subscribe(e.EVENTS.PLAYER_CREATED,"vtc",se),h.subscribe(e.EVENTS.AD_SDK_IMPRESSION,"vtc",oe),h.subscribe(e.EVENTS.INITIAL_PLAY,"vtc",Se),h.subscribe(e.EVENTS.AUTOPLAY_CHECK_COMPLETE,"vtc",Oe),h.subscribe(e.EVENTS.EMBED_CODE_METADATA_FETCHED,"vtc",de),h.subscribe(e.EVENTS.METADATA_FETCHED,"vtc",he),h.subscribe(e.EVENTS.CONTENT_TREE_FETCHED,"vtc",Ae),h.subscribe(e.EVENTS.EMBED_CODE_CHANGED,"vtc",Ee),h.subscribe(e.EVENTS.EMBED_CODE_CHANGED_AFTER_OOYALA_AD,"vtc",Ee),h.subscribe(e.EVENTS.ASSET_CHANGED,"vtc",pe),h.subscribe(e.EVENTS.PLAYBACK_READY,"vtc",fe),h.subscribe(e.EVENTS.VC_CREATE_VIDEO_ELEMENT,"vtc",Ne),h.subscribe(e.EVENTS.VC_VIDEO_ELEMENT_CREATED,"vtc",qe),h.subscribe(e.EVENTS.VC_UPDATE_ELEMENT_STREAM,"vtc",Ve),h.subscribe(e.EVENTS.VC_DISPOSE_VIDEO_ELEMENT,"vtc",Xe),h.subscribe(e.EVENTS.VC_FOCUS_VIDEO_ELEMENT,"vtc",Je),h.subscribe(e.EVENTS.WILL_PLAY_ADS,"vtc",Ze),h.subscribe(e.EVENTS.ADS_PLAYED,"vtc",et),h.subscribe(e.EVENTS.VC_PRELOAD,"vtc",it),h.subscribe(e.EVENTS.VC_RELOAD,"vtc",nt),h.subscribe(e.EVENTS.VC_SET_INITIAL_TIME,"vtc",at),h.subscribe(e.EVENTS.VC_SET_VIDEO_STREAMS,"vtc",tt),h.subscribe(e.EVENTS.PLAY,"vtc",st),h.subscribe(e.EVENTS.VC_PLAY,"vtc",ot),h.subscribe(e.EVENTS.PLAY_VIDEO_ELEMENT,"vtc",lt),h.subscribe(e.EVENTS.PAUSE,"vtc",ct),h.subscribe(e.EVENTS.VC_PAUSE,"vtc",ut),h.subscribe(e.EVENTS.SEEK,"vtc",Et),h.subscribe(e.EVENTS.VC_SEEK,"vtc",pt),h.subscribe(e.EVENTS.CHANGE_VOLUME,"vtc",ft),h.subscribe(e.EVENTS.CHANGE_MUTE_STATE,"vtc",Tt),h.subscribe(e.EVENTS.PAGE_UNLOAD_REQUESTED,"vtc",St),h.subscribe(e.EVENTS.DISABLE_SEEKING,"vtc",bt),h.subscribe(e.EVENTS.ENABLE_SEEKING,"vtc",Ot),h.subscribe(e.EVENTS.SET_CLOSED_CAPTIONS_LANGUAGE,"vtc",vt),h.subscribe(e.EVENTS.SET_TARGET_BITRATE,"vtc",wt),h.subscribe(e.EVENTS.DESTROY,"vtc",t.bind(this.onDestroy,this)),h.subscribe(e.EVENTS.LIVE_BUTTON_CLICKED,"vtc",ve),h.subscribe(e.EVENTS.HA_WILL_FAILOVER,"vtc",ce),h.subscribe(e.EVENTS.HA_FAILOVER_ERROR,"vtc",le),h.subscribe(e.EVENTS.HA_ENABLED,"vtc",ue),h.subscribe(e.EVENTS.VC_RELOAD_AND_PLAY,"vtc",Fe),h.subscribe(e.EVENTS.TOGGLE_STEREO_VR,"vtc",yt),h.subscribe(e.EVENTS.TOGGLE_FULLSCREEN_VR,"vtc",mt),h.subscribe(e.EVENTS.TOUCH_MOVE,"vtc",dt),h.subscribe(e.EVENTS.END_VR_MOVE,"vtc",ht),h.subscribe(e.EVENTS.CHECK_VR_DIRECTION,"vtc",At),h.subscribe(e.EVENTS.MOVE_VR_TO_DIRECTION,"vtc",_t),h.subscribe(e.EVENTS.VIDEO_VR,"vtc",gt),h.subscribe(e.EVENTS.VIDEO_TYPE_CHANGED,"vtc",Ie),h.subscribe(e.EVENTS.SET_CURRENT_AUDIO,"vtc",It),h.subscribe(e.EVENTS.SKIN_CONFIG_LOADED,"vtc",Nt),h.subscribe(e.EVENTS.SET_PLAYBACK_SPEED,"vtc",Dt),h.subscribe(e.EVENTS.CHROMECAST_START_CAST,"vtc",Ct),h.subscribe(e.EVENTS.CHROMECAST_END_CAST,"vtc",Rt)},this),se=t.bind(function(t,n,a,r,s,o){this.elementId=n,V=s,f=i("#"+n),(_=a)&&(_[j]&&(te[Z]=_[j],ie=Z),void 0!==_[W]&&(N=parseFloat(_[W])),void 0!==_[K]&&(P=!_[K]),void 0!==_[z]&&(w=_[z]),!0!==_[q]&&"true"!==_[q]||(C=!0)),e.debug_tools=e.debug_tools||{},e.debug_tools[n]||(e.debug_tools[n]={}),e.debug_tools[n].video=hi},this),oe=t.bind(function(){this.hasPlayedAd=!0},this),le=t.bind(function(){h.publish(e.EVENTS.VC_ERROR,this.focusVideoId,{code:e.ERROR.PLAYBACK.LIVESTREAM})},this),ce=t.bind(function(){this.failoverPlayhead=this.currentPlayhead,this.handleFailover=!0},this),ue=t.bind(function(e,t){k=!!t},this),de=t.bind(function(e,t){M=t},this),he=t.bind(function(e,t){if(t&&t.base&&t.base[j]){var i=t.base[j];i=i.replace(/(&.+?;)|[ \[\]]/g,""),te[J]=i.split(","),ie!==Z&&(ie=J)}k=!1},this),Ae=t.bind(function(e,i,n){S=t.extend(S,i),i.movie_attributes&&(B=i.movie_attributes)},this),Ee=t.bind(function(t,i,n){for(var a=e.VIDEO.ENCODING.MP4,r=0;r<p.length;r++)Bt(p[r],"setVideoUrl",["",a,!1]);for(var s in this.defaultAudioTracks={},this.isVr=!1,this.isVideoTypeChanged=!1,V=i,te[J]=null,this.activeInstances)T=null,ti(s,{availableLanguages:[],locale:{}});if(n&&n.ooyalaAds?(ie!==ee&&(ne=ie),ie=ee):ie===J?ie=te[$]?$:Q:ie===ee&&(ie=te[ne]?ne:Q),n&&"number"==typeof n[X]){var o=n[X];Dt({},o)}L=!1,F=!1,x=!1},this),pe=t.bind(function(){L=!1},this),fe=t.bind(function(){L=!0},this),Te=t.bind(function(e){return"hls"===e||"dash"===e},this),ge=t.bind(function(){return!t.isEmpty(B)&&(!!B.ssai_enabled&&"1"===B.ssai_enabled)},this),ye=t.bind(function(){if(t.isEmpty(M)||t.isUndefined(M.attributes)||t.isUndefined(M.attributes.provider))return!1;var e=M.attributes.provider,i=e.ssai_vod_enabled_movie_level;if(i&&"false"!==i&&null!==V){var n=M.metadata[V].base.ssai_vod_enabled;if(n)return Te(n)}else if(e.ssai_vod_enabled)return Te(e.ssai_vod_enabled);return!1},this),me=t.bind(function(e){return e?ge():ye()},this),_e=t.bind(function(e){if(t.isEmpty(_))return e;var i=JSON.stringify(_);return e+"&player_params="+encodeURIComponent(i)},this),Se=t.bind(function(){var t=(0,r.default)(a.default.mark(function t(i,n,r){return a.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(L=!0,this.initialPlayTime=n,F=r,r){t.next=6;break}return t.next=6,Promise.all([be(e.VIDEO.MAIN),be(e.VIDEO.ADS)]);case 6:case"end":return t.stop()}},t,this)}));return function(e,i,n){return t.apply(this,arguments)}}(),this),Oe=t.bind(function(e,t){if((G=t).unmuted)for(var i=0;i<p.length;i++)Bt(p[i],"notifyUnmutedContentAutoPlaybackSucceeded")},this),be=t.bind(function(){var e=(0,r.default)(a.default.mark(function e(t){return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.activeInstances[t]||!Ut(t)||this.activeInstances[t].element.primedForUnmutedAutoPlayback){e.next=5;break}return Bt(this.activeInstances[t].element,"load",[!0]),e.next=4,$t(t,this.activeInstances[t].encoding,this.activeInstances[t].stream,this.activeInstances[t].isLive);case 4:this.activeInstances[t].element.primedForUnmutedAutoPlayback=!0;case 5:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),this),ve=t.bind(function(){Ht(this.focusVideoId,"onLiveClick")},this),Ie=t.bind(function(){this.isVideoTypeChanged=!0},this),Ne=t.bind(function(){var i=(0,r.default)(a.default.mark(function i(r,s,c,u,d){var A,E,p,f,T,g,y,m,_;return a.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(d&&(d.technology||d.features)?(p=Ce(d.technology),f=Re(d.features),A=t.pick(o,t.intersection(p,f))):A=o,T=we(c,Le(A),Pe())){i.next=5;break}return h.publish(e.EVENTS.VC_ERROR,s,{ooyalaErrorCode:e.ERROR.VC.UNSUPPORTED_ENCODING,playhead:this.currentPlayhead}),i.abrupt("return");case 5:if(me(c.isLive)&&(c[T].url=_e(c[T].url)),n("For video '"+s+"', selected encoding '"+T+"', with stream url "+c[T].url),g=!(!this.focusVideoId||this.focusVideoId!==s),y=e.isSafari&&this.isVr,!(!!this.activeInstances[s]&&!!this.activeInstances[s].element)){i.next=26;break}if(y||!A[this.activeInstances[s].plugin]||!t.contains(this.activeInstances[s].element.supportedEncodings,T)||this.isVideoTypeChanged){i.next=23;break}return n("Element already existed and supports chosen encoding.  Setting new video url."),this.activeInstances[s].disableNativeSeek=!1,ii(s,d),i.next=17,$t(s,T,c[T],c.isLive);case 17:return ni(s,c[T].contentMetadata),e.isIos&&"main"===(E=this.activeInstances[s].element.sharedObjectToInstance)&&this.activeInstances[E].element&&(this.currentPlayhead=Bt(this.activeInstances[E].element,"getCurrentTime")),ke(s),i.abrupt("return");case 23:this.isVideoTypeChanged&&ii(s,d),n("Destroying existing element because some of major factors were changed."),Xe(e.EVENTS.VC_CREATE_VIDEO_ELEMENT,s);case 26:if(m=t.intersection(l[T]||[],t.keys(A)),_=null,(null==m||m.length<1)&&T===e.VIDEO.ENCODING.UNKNOWN&&t.size(A)>0?_=A[t.keys(A)[0]]:m&&m.length>0&&t.size(A)>0&&(_=A[m[0]]),_=De(_,{videoId:s,validPlugins:A,encoding:T})){i.next=33;break}return h.publish(e.EVENTS.VC_ERROR,s,{ooyalaErrorCode:e.ERROR.VC.UNSUPPORTED_ENCODING,playhead:this.currentPlayhead}),i.abrupt("return");case 33:return n("For video '"+s+"', elected plugin '"+_.name+"'"),i.next=36,Ue(_,s,u,T,c[T],c.isLive,d);case 36:this.activeInstances[s]?(ke(s),g&&h.publish(e.EVENTS.VC_FOCUS_VIDEO_ELEMENT,s),s!==e.VIDEO.MAIN&&s!==e.VIDEO.RELOAD||h.publish(e.EVENTS.HA_CONFIG_UPDATE,{focusVideoId:s,streams:c,chosenEncoding:T,plugin:_.name})):h.publish(e.EVENTS.VC_ERROR,s,{ooyalaErrorCode:e.ERROR.VC.UNABLE_TO_CREATE_VIDEO_ELEMENT,playhead:this.currentPlayhead});case 37:case"end":return i.stop()}},i,this)}));return function(e,t,n,a,r){return i.apply(this,arguments)}}(),this),De=t.bind(function(t,i){if(i){var n=i.encoding===e.VIDEO.ENCODING.HLS||i.encoding===e.VIDEO.ENCODING.DRM.HLS;(this.isVr||e.isAndroid4_4Plus&&n)&&i.videoId===e.VIDEO.MAIN&&i.validPlugins[e.VIDEO_PLAYERS.BIT_WRAPPER]&&(t=i.validPlugins[e.VIDEO_PLAYERS.BIT_WRAPPER])}return t},this),Ce=t.bind(function(e){if(!e)return t.keys(o);var i=[];for(var n in o)o[n].technology===e&&i.push(n);return i},this),Re=t.bind(function(e){if(!e||e.length<1)return t.keys(o);var i=[];for(var n in o){var a=t.difference(e,o[n].features);a&&0!==a.length||i.push(n)}return i},this),Le=t.bind(function(e){var i=[];for(var n in e)i=i.concat(o[n].encodings);return t.uniq(i)},this),Pe=t.bind(function(){var e=te[ie],t=i(c()).not(e).get();return e.concat(t)},this),we=t.bind(function(i,n,a){if(i&&!(t.size(i)<1)){for(var r={},s=0;s<n.length;s++){var o=n[s];i.hasOwnProperty(o)&&(r[o]=i[o])}for(var l=null,c=0;c<a.length;c++)if(r.hasOwnProperty(a[c])){l=a[c];break}return null==l&&i.hasOwnProperty(e.VIDEO.ENCODING.UNKNOWN)&&(l=e.VIDEO.ENCODING.UNKNOWN),l}},this),ke=t.bind(function(i){if(this.activeInstances&&this.activeInstances[i]&&this.activeInstances[i].element){var n=this.activeInstances[i].element,a=n.parentContainer&&n.parentContainer.length>0?n.parentContainer.find("#"+n.domId):[],r=this.activeInstances[i].stream?this.activeInstances[i].stream.url:null;t.delay(function(){h.publish(e.EVENTS.VC_VIDEO_ELEMENT_CREATED,{videoId:i,encodings:n.supportedEncodings,parent:n.parentContainer,domId:n.domId,videoElement:a,streamUrl:r})},1)}},this),Ve=t.bind(function(e,t,i){this.activeInstances&&this.activeInstances[t]&&this.activeInstances[t].element&&this.activeInstances[t].stream&&(this.activeInstances[t].stream.url=i,$t(t,this.activeInstances[t].encoding,this.activeInstances[t].stream,this.activeInstances[t].isLive))},this),Be=t.bind(function(t,n){if(n===e.VIDEO.RELOAD){var a=this.activeInstances[e.VIDEO.MAIN].element;this.activeInstances[e.VIDEO.MAIN]=i.extend({},this.activeInstances[e.VIDEO.RELOAD]),this.activeInstances[e.VIDEO.MAIN].vtcInterface.videoId=e.VIDEO.MAIN,this.activeInstances[e.VIDEO.RELOAD].element=a,this.focusVideoId=e.VIDEO.RELOAD,h.publish(e.EVENTS.VC_FOCUS_VIDEO_ELEMENT,e.VIDEO.MAIN),h.publish(e.EVENTS.VC_DISPOSE_VIDEO_ELEMENT,e.VIDEO.RELOAD),this.pauseAfterReload&&(this.pauseAfterReload=!1,h.publish(e.EVENTS.PAUSE)),h.unsubscribe(e.EVENTS.VC_PLAYING,"vtc_t",Be),h.unsubscribe(e.EVENTS.VC_VIDEO_ELEMENT_CREATED,"vtc_t",Me)}},this),Me=t.bind(function(t,i){i.videoId===e.VIDEO.RELOAD&&(h.subscribe(e.EVENTS.VC_PLAYING,"vtc_t",Be),h.publish(e.EVENTS.VC_PLAY,e.VIDEO.RELOAD))},this),Fe=t.bind(function(t,i){var a=this;if(this.focusVideoId&&this.activeInstances&&this.activeInstances[this.focusVideoId]&&this.activeInstances[this.focusVideoId].element&&i&&i[this.activeInstances[this.focusVideoId].encoding])if(this.focusVideoId===e.VIDEO.MAIN){h.publish(e.EVENTS.VC_WILL_RELOAD_AND_PLAY);var r=this.activeInstances[this.focusVideoId].encoding;if(i[r]&&(i[r].url=li(i[r].url)),h.publish(e.EVENTS.MULTI_AUDIO_CHANGED,{}),e.isIos||e.isSafari)return n("Trying to hard reload for ios or safari"),h.publish(e.EVENTS.VC_UPDATE_ELEMENT_STREAM,this.focusVideoId,i[r].url),h.publish(e.EVENTS.HA_CONFIG_UPDATE,{focusVideoId:this.focusVideoId,streams:i,chosenEncoding:r,plugin:this.activeInstances[this.focusVideoId].plugin}),void setTimeout(function(){return h.publish(e.EVENTS.PLAY,a.focusVideoId)});this.pauseAfterReload=!!this.paused,h.subscribe(e.EVENTS.VC_VIDEO_ELEMENT_CREATED,"vtc_t",Me),Ne(e.EVENTS.VC_CREATE_VIDEO_ELEMENT,e.VIDEO.RELOAD,i,this.activeInstances[this.focusVideoId].parentContainer,this.activeInstances[this.focusVideoId].params)}else n("not supported videoId for reload",this.focusVideoId);else n("invalid data for reload and play")},this),Ue=t.bind(function(t,i,n,a,r,s,o){if(!t||!i)return Promise.resolve();if(t.name===e.VIDEO_PLAYERS.BIT_WRAPPER&&k){var l=this;(o=o||{}).pluginParams=o.pluginParams||{},o.pluginParams[e.VIDEO_PLAYERS.BIT_WRAPPER]=o.pluginParams[e.VIDEO_PLAYERS.BIT_WRAPPER]||{},o.pluginParams[e.VIDEO_PLAYERS.BIT_WRAPPER].network=o.pluginParams[e.VIDEO_PLAYERS.BIT_WRAPPER].network||{},o.pluginParams[e.VIDEO_PLAYERS.BIT_WRAPPER].network.retryHttpRequest=function(e,n){var a=404;n&&n.request&&n.request.status&&(a=n.request.status);var r={type:"onDownloadFinished",timestamp:Date.now(),httpStatus:a,url:n&&n.url||"",size:0,downloadTime:0,attempt:2,success:!1,maxAttempts:"media/video"===e?3:1/0,mimeType:"media/video"===e?"video/mp4":null,downloadType:e};return l.notify(i,t,l.EVENTS.ON_DOWNLOAD_FINISHED,r),new Promise(function(e){setTimeout(function(){e(n.request)},1e3)})}}if(He(t)){var c=Ge(t.technology);if(c&&this.activeInstances[c].plugin!==t.name){if(xe(c,t))return this.activeInstances[c]?Ye(t,i,a,r,s,n,o,c):(h.publish(e.EVENTS.VC_ERROR,i,{ooyalaErrorCode:e.ERROR.VC.UNABLE_TO_CREATE_VIDEO_ELEMENT,playhead:this.currentPlayhead}),Promise.resolve())}else if(c)return We(t,i,a,r,s,o)}return t.maxSupportedElements>-1&&je(t.name)>=t.maxSupportedElements?We(t,i,a,r,s,o):Ke(t,i,n,a,r,s,o)},this),He=t.bind(function(t){if(e.requiresSingleVideoElement&&(t.technology===e.VIDEO.TECHNOLOGY.HTML5||t.technology===e.VIDEO.TECHNOLOGY.MIXED))for(var i in this.activeInstances)if((o[this.activeInstances[i].plugin].technology===e.VIDEO.TECHNOLOGY.HTML5||o[this.activeInstances[i].plugin].technology===e.VIDEO.TECHNOLOGY.MIXED)&&this.activeInstances[i].element)return!0;return!1},this),xe=t.bind(function(i,n){var a=t.contains(o[this.activeInstances[i].plugin].features,e.VIDEO.FEATURE.VIDEO_OBJECT_SHARING_GIVE),r=t.contains(n.features,e.VIDEO.FEATURE.VIDEO_OBJECT_SHARING_TAKE),s=o[this.activeInstances[i].plugin].technology===n.technology,l=n.technology!==e.VIDEO.TECHNOLOGY.MIXED;return a&&r&&s&&l},this),Ge=t.bind(function(i){var n=null;for(var a in this.activeInstances)if(o[this.activeInstances[a].plugin].technology===i&&this.activeInstances[a].element){if(t.contains(o[this.activeInstances[a].plugin].features,e.VIDEO.FEATURE.VIDEO_OBJECT_SHARING_GIVE))return a;n=a}return n},this),Ye=t.bind(function(){var e=(0,r.default)(a.default.mark(function e(t,i,r,s,o,l,c,d){var h,A,E,f;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&i){e.next=2;break}return e.abrupt("return");case 2:return n("For video '"+i+"', sharing element with video '"+d+"'"),this.activeInstances[d].element.sharedObjectToInstance=i,h=new y({plugin:t,parentContainer:l,sharedObjectToInstance:d,isControllingObject:!1}),p.push(h),A=new u(this,i,t),this.activeInstances[i]?this.activeInstances[i].element=h:this.activeInstances[i]=new m({plugin:t,parentContainer:l,element:h,encoding:r,stream:s,isLive:o,vtcInterface:A,isControllingElement:!0,params:c}),c&&(ti(i,c.closedCaptions),xt(i,c.crossorigin),A.authenticationData=c.authenticationData),E=this.activeInstances[d].element.domId,f=Jt(E),h.wrapper=t.createFromExisting(f,A,this.elementId),e.next=14,$t(i,r,s,o);case 14:ni(i,s.contentMetadata),G.unmuted&&Bt(this.activeInstances[i].element,"notifyUnmutedContentAutoPlaybackSucceeded");case 16:case"end":return e.stop()}},e,this)}));return function(t,i,n,a,r,s,o,l){return e.apply(this,arguments)}}(),this),je=t.bind(function(e){for(var t=0,i=0;i<p.length;i++)p[i].plugin===e&&t++;return t},this),We=t.bind(function(){var t=(0,r.default)(a.default.mark(function t(i,r,s,o,l,c){var d,h,A;return a.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i&&r){t.next=2;break}return t.abrupt("return");case 2:d=null,h=0;case 4:if(!(h<p.length)){t.next=11;break}if(p[h].plugin!==i.name){t.next=8;break}return d=p[h],t.abrupt("break",11);case 8:h++,t.next=4;break;case 11:if(d){t.next=13;break}return t.abrupt("return");case 13:if(n("For video '"+r+"', sharing existing element with index "+h),A=new u(this,r,i),this.activeInstances[r]?this.activeInstances[r].element=d:this.activeInstances[r]=new m({plugin:i,parentContainer:d.parentContainer,element:d,encoding:s,stream:o,isLive:l,vtcInterface:A,params:c}),c&&(ti(r,c.closedCaptions),xt(r,c.crossorigin),A.authenticationData=c.authenticationData),r!==e.VIDEO.MAIN||L){t.next=21;break}return Zt(r),t.next=21,$t(r,s,o,l);case 21:ni(r,o.contentMetadata),G.unmuted&&Bt(this.activeInstances[r].element,"notifyUnmutedContentAutoPlaybackSucceeded");case 23:case"end":return t.stop()}},t,this)}));return function(e,i,n,a,r,s){return t.apply(this,arguments)}}(),this),Ke=t.bind(function(){var e=(0,r.default)(a.default.mark(function e(t,i,n,r,s,o,l){var c,d,h,A;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&i){e.next=2;break}return e.abrupt("return");case 2:return c=new y({plugin:t,parentContainer:n}),p.push(c),d=new u(this,i,t),this.activeInstances[i]?this.activeInstances[i].element=c:this.activeInstances[i]=new m({plugin:t,parentContainer:c.parentContainer,element:c,encoding:r,stream:s,isLive:o,vtcInterface:d,isControllingElement:!0,params:l}),h={},l&&(ti(i,l.closedCaptions),xt(i,l.crossorigin),d.authenticationData=l.authenticationData,h=l.pluginParams||{}),A=h[t.name]||{},this.isVr&&(w=this.IOS_PLAY_MODE_OPTIONS.INLINE),A.iosPlayMode=w,c.wrapper=t.create(c.parentContainer,c.domId,d,ae,this.elementId,A),e.next=14,$t(i,r,s,o);case 14:ni(i,s.contentMetadata),ui(i),G.unmuted&&Bt(this.activeInstances[i].element,"notifyUnmutedContentAutoPlaybackSucceeded");case 17:case"end":return e.stop()}},e,this)}));return function(t,i,n,a,r,s,o){return e.apply(this,arguments)}}(),this),ze=t.bind(function(t,i){return U=!0,i&&(H=t),setTimeout(function(){return h.publish(e.EVENTS.CHANGE_MUTE_STATE,!0,t)}),!0},this),qe=t.bind(function(t,i){var n=i.videoId;C&&(h.publish(e.EVENTS.CHANGE_MUTE_STATE,!0,n),U=!0),Gt(n)},this),Xe=t.bind(function(i,n){if(n){if(this.focusVideoId===n&&$e(n),Wt(n),this.activeInstances[n]){var a=this.activeInstances[n].element;this.isVr&&e.isIos&&this.focusVideoId===e.VIDEO.MAIN&&n===e.VIDEO.ADS&&(a=this.activeInstances[this.focusVideoId].element),delete this.activeInstances[n],a&&!Qe(a)&&(Bt(a,"destroy",[]),p=t.without(p,a),a=null)}this.isVideoTypeChanged||h.publish(e.EVENTS.VC_VIDEO_ELEMENT_DISPOSED,n)}},this),Qe=t.bind(function(e){if(!e)return!1;for(var t in this.activeInstances)if(this.activeInstances[t]&&this.activeInstances[t].element&&this.activeInstances[t].element===e)return!0;return!1},this),Ze=t.bind(function(t,i){e.isIos&&i&&i.duration>0&&vt("","",{mode:g})},this),Je=t.bind(function(i,n,a){if(n&&this.focusVideoId===n)h.publish(e.EVENTS.VC_VIDEO_ELEMENT_IN_FOCUS,n);else if(this.focusVideoId&&(P&&this.focusVideoId===e.VIDEO.MAIN&&this.activeInstances[this.focusVideoId]&&this.activeInstances[this.focusVideoId].isLive&&!He(o[this.activeInstances[this.focusVideoId].plugin])?(R=null===N?1:N,Ht(this.focusVideoId,"setVolume",[0,D])):$e(this.focusVideoId)),this.focusVideoId=null,n&&this.activeInstances[n]){this.focusVideoId=n,this.focusVideoId===e.VIDEO.MAIN&&null!==R&&Ht(this.focusVideoId,"setVolume",[R,D]),a&&n===e.VIDEO.MAIN&&(this.activeInstances[n].isControllingElement=!1),Zt(n);var r={visibility:"visible"};e.isIos?r.display=e.CSS.VISIBLE_DISPLAY:r.left="0px",Bt(this.activeInstances[n].element,"applyCss",[r]),e.isIos?t.delay(function(){h.publish(e.EVENTS.VC_VIDEO_ELEMENT_IN_FOCUS,n)},1):h.publish(e.EVENTS.VC_VIDEO_ELEMENT_IN_FOCUS,n),this.defaultAudioTracks[n]&&h.publish(e.EVENTS.SET_CURRENT_AUDIO,n,this.defaultAudioTracks[n]),vt("",T,{mode:g})}},this),$e=t.bind(function(t){if(t&&this.activeInstances&&this.activeInstances[t]&&this.activeInstances[t].element){this.focusVideoId===e.VIDEO.ADS&&null!==R&&Ht(e.VIDEO.MAIN,"setVolume",[R,D]),e.requiresSingleVideoElement||h.publish(e.EVENTS.VC_PAUSE,t,"transition"),this.focusVideoId=null;var i={visibility:"hidden"};e.isIos?i.display=e.CSS.INVISIBLE_DISPLAY:i.left="-100000px",Bt(this.activeInstances[t].element,"applyCss",[i]),Bt(this.activeInstances[t].element,"setClosedCaptionsMode",[e.CONSTANTS.CLOSED_CAPTIONS.DISABLED]),h.publish(e.EVENTS.VC_VIDEO_ELEMENT_LOST_FOCUS,t)}},this),et=t.bind(function(e){this.activeInstances[this.focusVideoId]&&Bt(this.activeInstances[this.focusVideoId].element,"onAdsPlayed")},this),tt=t.bind(function(t,i,n,a){if(i&&this.activeInstances&&this.activeInstances[i]&&this.activeInstances[i].element)if(n){var r=we(n,this.activeInstances[i].element.supportedEncodings,Pe());r?$t(i,r,n[r],a||this.activeInstances[i].isLive):h.publish(e.EVENTS.VC_ERROR,i,{ooyalaErrorCode:e.ERROR.VC.UNSUPPORTED_ENCODING,playhead:this.currentPlayhead})}else $t(i,"",{url:""},!1)},this),it=t.bind(function(t,i){e.log("VTC: Video preload called."),Ht(i,"load",[!1])},this),nt=t.bind(function(e,t){Ht(t,"load",[!1])},this),at=t.bind(function(e,t,i){this.activeInstances&&this.activeInstances[t]&&this.activeInstances[t].element&&Bt(this.activeInstances[t].element,"setInitialTime",[i])},this),rt=t.bind(function(e){Ut(e)&&(Bt(this.activeInstances[e].element,"primeVideoElement",[]),this.activeInstances[e].element.primedForUnmutedAutoPlayback=!0)},this),st=t.bind(function(t,i){x&&(x=!1,rt(e.VIDEO.MAIN)),h.publish(e.EVENTS.VC_PLAY,i||this.focusVideoId)},this),ot=t.bind(function(){var t=(0,r.default)(a.default.mark(function t(i,n,r){var s,o,l,c,u;return a.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.activeInstances&&this.activeInstances[n]){t.next=2;break}return t.abrupt("return");case 2:if(s=!this.activeInstances[n].playing&&F,o=s&&!1===G.unmuted&&!D&&(!this.activeInstances[n].element||!this.activeInstances[n].element.primedForUnmutedAutoPlayback),l=s&&!1===G.muted&&(!this.activeInstances[n].element||!this.activeInstances[n].element.primedForUnmutedAutoPlayback),c=!1,u=Bt(this.activeInstances[n].element,"isMuted",[]),this.activeInstances[n].playing,o||l||(c=D&&!u,h.publish(e.EVENTS.CHANGE_MUTE_STATE,D,n)),"number"==typeof N&&h.publish(e.EVENTS.CHANGE_VOLUME,N,n),r&&(this.activeInstances[n].stream?this.activeInstances[n].stream.url=r:this.activeInstances[n].stream={url:r}),Zt(n),!(this.activeInstances[n].stream&&this.activeInstances[n].stream.url&&this.activeInstances[n].plugin!==e.VIDEO_PLAYERS.BIT_WRAPPER)){t.next=15;break}return t.next=14,$t(n,this.activeInstances[n].encoding,this.activeInstances[n].stream,this.activeInstances[n].isLive);case 14:this.activeInstances[n].playing=!0;case 15:l?(e.log("VTC: notifying of muted playback failure on initial play because test showed we cannot autoplay"),this.notify(n,"",this.EVENTS.MUTED_PLAYBACK_FAILED)):o?(e.log("VTC: notifying of unmuted playback failure on initial play because test showed we need to mute"),this.notify(n,"",this.EVENTS.UNMUTED_PLAYBACK_FAILED)):c?H=n:h.publish(e.EVENTS.PLAY_VIDEO_ELEMENT,n);case 16:case"end":return t.stop()}},t,this)}));return function(e,i,n){return t.apply(this,arguments)}}(),this),lt=t.bind(function(e,t){if(this.activeInstances&&this.activeInstances[t]){var i=Math.abs(this.failoverPlayhead-this.currentDuration)<1;this.handleFailover&&!i&&(Ht(t,"handleFailover",[this.failoverPlayhead]),this.handleFailover=!1),Bt(this.activeInstances[t].element,"play",[]),ui(t)}},this),ct=t.bind(function(t,i){h.publish(e.EVENTS.VC_PAUSE,i||this.focusVideoId)},this),ut=t.bind(function(e,t){Ht(t,"pause",[]),this.isVr&&_t(e,t,!1)},this),dt=t.bind(function(t,i,n,a,r){var s=i;i&&i!==e.VIDEO.ADS||(s=e.VIDEO.MAIN),Ht(s,"setVrViewingDirection",[{yaw:n,roll:a,pitch:r}])},this),ht=t.bind(function(t,i){var n=i;i||(n=e.VIDEO.MAIN),Ht(n,"onEndVrMove")}),At=t.bind(function(t,i,n){i!==e.VIDEO.ADS&&(this.vrVideoId=i);var a=Ht(this.vrVideoId,"getIsVideoMoving",[]),r=n||a?"getVrViewingDirection":"getCurrentDirection",s=Ht(this.vrVideoId,r)||{yaw:0,roll:0,pitch:0};h.publish(e.EVENTS.VR_DIRECTION_CHANGED,s.yaw,s.roll,s.pitch)},this),Et=t.bind(function(t,i,n){var a=n||this.focusVideoId;h.publish(e.EVENTS.VC_SEEK,a,i)},this),pt=t.bind(function(e,t,i){t&&this.activeInstances[t]&&this.activeInstances[t].element&&this.activeInstances[t].element.wrapper&&Ht(t,"seek",[i])},this),ft=t.bind(function(e,t,i){if("number"!=typeof t||t<0||t>1)n("Can not assign volume with invalid value",t);else if(N=t,i)Ht(i,"setVolume",[N,D]);else for(var a=0;a<p.length;a++)Bt(p[a],"setVolume",[N,D])},this),Tt=t.bind(function(){var t=(0,r.default)(a.default.mark(function t(i,n,r,s){var l,c,u;return a.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(l=D,D=n,C&&!n&&s&&(C=!1),!F||n||!l||!s){t.next=12;break}if(c=this.activeInstances&&this.activeInstances[e.VIDEO.MAIN]&&this.activeInstances[e.VIDEO.MAIN].plugin&&He(o[this.activeInstances[e.VIDEO.MAIN].plugin]),this.initialPlayHasStarted){t.next=10;break}if(c){t.next=10;break}return t.next=9,be(e.VIDEO.MAIN);case 9:e.isAndroid&&rt(e.VIDEO.MAIN);case 10:this.activeInstances&&this.activeInstances[e.VIDEO.ADS]&&this.activeInstances[e.VIDEO.ADS].element&&(this.activeInstances[e.VIDEO.ADS].element.primedForUnmutedAutoPlayback=!0),Ht(e.VIDEO.ADS,"unmute",[s]);case 12:if(n||(U=!1),r)n?Ht(r,"mute"):(s&&this.activeInstances&&this.activeInstances[r]&&this.activeInstances[r].element&&(this.activeInstances[r].element.primedForUnmutedAutoPlayback=!0),Ht(r,"unmute",[s]));else for(u=0;u<p.length;u++)n?Bt(p[u],"mute"):(s&&(p[u].primedForUnmutedAutoPlayback=!0),Bt(p[u],"unmute",[s]));case 14:case"end":return t.stop()}},t,this)}));return function(e,i,n,a){return t.apply(this,arguments)}}(),this),gt=t.bind(function(t,i){this.isVr=!0,i&&i.source&&i.source.vr&&i.source.vr.startPosition&&(this.startPositionVr=i.source.vr.startPosition),Ht(e.VIDEO.MAIN,"setVrViewingDirection",[{yaw:this.startPositionVr}]),this.desiredPlaybackSpeed=1},this),yt=t.bind(function(){p.forEach(function(e){Bt(e,"toggleStereoVr",[])})},this),mt=t.bind(function(e,t){Ht(t,"toggleFullscreen",[])},this),_t=t.bind(function(e,t,i,n){Ht(t,"moveVrToDirection",[i,n])},this),St=t.bind(function(){si()},this),Ot=t.bind(function(e,t){t&&this.activeInstances[t]&&(this.activeInstances[t].disableNativeSeek=!1,this.activeInstances[t].isControllingElement&&this.activeInstances[t].element&&this.activeInstances[t].element.isControllingObject&&this.activeInstances[t].element.wrapper&&(this.activeInstances[t].element.wrapper.disableNativeSeek=!1))},this),bt=t.bind(function(e,t){t&&this.activeInstances[t]&&(this.activeInstances[t].disableNativeSeek=!0,this.activeInstances[t].isControllingElement&&this.activeInstances[t].element&&this.activeInstances[t].element.isControllingObject&&this.activeInstances[t].element.wrapper&&(this.activeInstances[t].element.wrapper.disableNativeSeek=!0))},this),vt=t.bind(function(t,i,n){var a=n||{};if(null==a.mode&&(a.mode=e.CONSTANTS.CLOSED_CAPTIONS.SHOWING),T=i,g=a.mode,this.focusVideoId&&a.mode===e.CONSTANTS.CLOSED_CAPTIONS.DISABLED)Ht(this.focusVideoId,"setClosedCaptionsMode",[a.mode]);else if(this.activeInstances[this.focusVideoId]){(e.isIphone||e.isIpad)&&(a.isFullScreen||a.isGoingFullScreen)&&a.mode===e.CONSTANTS.CLOSED_CAPTIONS.HIDDEN&&(a.mode=e.CONSTANTS.CLOSED_CAPTIONS.SHOWING),Ht(this.focusVideoId,"setClosedCaptions",[i,this.activeInstances[this.focusVideoId].closedCaptions,a])}},this),It=t.bind(function(e,t,i){i&&i.id&&(Ht(t,"setAudio",[i.id]),this.defaultAudioTracks[t]=i)},this),Nt=t.bind(function(e,i,n){O=t.extend(O,i)},this),Dt=t.bind(function(t,i){if(e.isValidPlaybackSpeed(i)){var n=this.activeInstances[e.VIDEO.MAIN]&&this.activeInstances[e.VIDEO.MAIN].isLive;this.isVr||n?this.desiredPlaybackSpeed=1:this.desiredPlaybackSpeed=i,this.activeInstances[e.VIDEO.MAIN]&&this.activeInstances[e.VIDEO.MAIN].element&&Bt(this.activeInstances[e.VIDEO.MAIN].element,"setPlaybackSpeed",[this.desiredPlaybackSpeed])}else e.log("Playback speed was not valid. Will be ignored.",i)},this),Ct=t.bind(function(e){Y=!0,Lt()},this),Rt=t.bind(function(e){Y=!1,Pt()},this),Lt=function(){h.unsubscribe(e.EVENTS.PLAY,"vtc",st),h.unsubscribe(e.EVENTS.PAUSE,"vtc",ct),h.unsubscribe(e.EVENTS.SEEK,"vtc",Et)},Pt=function(){h.subscribe(e.EVENTS.PLAY,"vtc",st),h.subscribe(e.EVENTS.PAUSE,"vtc",ct),h.subscribe(e.EVENTS.SEEK,"vtc",Et)},wt=t.bind(function(i,n,a,r){var s=r||this.focusVideoId;s&&t.contains(o[this.activeInstances[s].plugin].features,e.VIDEO.FEATURE.BITRATE_CONTROL)&&Ht(s,"setBitrate",[n])},this);this.onDestroy=function(){for(var t in this.activeInstances)Xe(e.EVENTS.DESTROY,t)},this.notify=function(i,a,r,s){if(!Y){var o=s||{};switch(r){case this.EVENTS.PLAY:h.publish(e.EVENTS.VC_WILL_PLAY,i,o.url);break;case this.EVENTS.CAN_PLAY:h.publish(e.EVENTS.VC_CAN_PLAY,i);break;case this.EVENTS.PLAYING:if(e.log("Video Id on play: "+i),this.paused=!1,!this.initialPlayHasStarted&&i===e.VIDEO.MAIN){this.initialPlayHasStarted=!0;var l=this.activeInstances[i].stream.drm,c="none";for(var u in l)l[u]&&!t.isEmpty(l[u])&&(c=u);var d=this.activeInstances[i].element.plugin;h.publish(e.EVENTS.INITIAL_PLAY_STARTING,Date.now()-this.initialPlayTime,F,this.hasPlayedAd,this.currentPlayhead,d,a.technology,this.activeInstances[i].encoding,this.activeInstances[i].stream.url,c,this.activeInstances[i].isLive)}this.activeInstances[i]&&(this.activeInstances[i].playing=!0),h.publish(e.EVENTS.VC_PLAYING,i);break;case this.EVENTS.ENDED:this.activeInstances[i]&&(this.activeInstances[i].playing=!1),h.publish(e.EVENTS.VC_PLAYED,i),h.publish(e.EVENTS.CANCEL_GEO_CHECKING),this.isVr&&_t(r,i,!1);break;case this.EVENTS.ERROR:this.markReady(i),this.activeInstances[i]&&(this.activeInstances[i].playing=!1),0==+o.errorcode&&h.publish(e.EVENTS.HA_FAILOVER_NOW),ai(o,i);break;case this.EVENTS.SEEKING:h.publish(e.EVENTS.VC_SEEKING,i);break;case this.EVENTS.SEEKED:if(this.activeInstances[i]){var A=Bt(this.activeInstances[i].element,"getCurrentTime");h.publish(e.EVENTS.VC_SEEKED,i,A)}break;case this.EVENTS.PAUSED:this.paused=!0,h.publish(e.EVENTS.VC_PAUSED,i);break;case this.EVENTS.PLAYBACK_RATE_CHANGE:h.publish(e.EVENTS.PLAYBACK_SPEED_CHANGED,i,o.playbackRate);break;case this.EVENTS.TIME_UPDATE:if("number"!=typeof o.duration)return;if("number"!=typeof o.currentTime)return;var E;this.activeInstances[i].isLive&&(E=o.currentLiveTime,this.currentDuration=o.duration),this.currentPlayhead=o.currentTime,h.publish(e.EVENTS.PLAYHEAD_TIME_CHANGED,o.currentTime,o.duration,o.buffer,o.seekRange,i,E);break;case this.EVENTS.VOLUME_CHANGE:h.publish(e.EVENTS.VOLUME_CHANGED,o.volume,i);break;case this.EVENTS.MUTE_STATE_CHANGE:e.isIos&&D!==o.muted&&h.publish(e.EVENTS.CHANGE_MUTE_STATE,o.muted,i,!0),h.publish(e.EVENTS.MUTE_STATE_CHANGED,o.muted,i,U),H===i&&!0===o.muted&&(H=null,h.publish(e.EVENTS.PLAY_VIDEO_ELEMENT,i));break;case this.EVENTS.BUFFERING:h.publish(e.EVENTS.BUFFERING,o.url,i,this.currentPlayhead);break;case this.EVENTS.BUFFERED:h.publish(e.EVENTS.BUFFERED,o.url,i);break;case this.EVENTS.DURATION_CHANGE:if("number"!=typeof o.duration)return;h.publish(e.EVENTS.PLAYHEAD_TIME_CHANGED,o.currentTime,o.duration,o.buffer,o.seekRange,i);break;case this.EVENTS.PROGRESS:h.publish(e.EVENTS.DOWNLOADING,o.currentTime,o.duration,o.buffer,o.seekRange,i);break;case this.EVENTS.STALLED:h.publish(e.EVENTS.STALLED);break;case this.EVENTS.WAITING:h.publish(e.EVENTS.BUFFERING,o.url,i,this.currentPlayhead);break;case this.EVENTS.FULLSCREEN_CHANGED:h.publish(e.EVENTS.FULLSCREEN_CHANGED,o.isFullScreen,o.paused,i),vt("",T,{mode:g,isFullScreen:o.isFullScreen});break;case this.EVENTS.CAPTIONS_LANGUAGE_CHANGE:o.language&&h.publish(e.EVENTS.CHANGE_CLOSED_CAPTION_LANGUAGE,o.language,{forceEnabled:!0});break;case this.EVENTS.CAPTIONS_FOUND_ON_PLAYING:if(this.activeInstances[i]&&s){xt(i,"anonymous");var p={videoId:i,languages:[],locale:{}};this.activeInstances[i].closedCaptions&&this.activeInstances[i].closedCaptions.availableLanguages&&this.activeInstances[i].closedCaptions.locale&&(p.languages=this.activeInstances[i].closedCaptions.availableLanguages,p.locale=this.activeInstances[i].closedCaptions.locale),p.languages=t.union(p.languages,s.languages),p.locale=t.extend(p.locale,s.locale),h.publish(e.EVENTS.CLOSED_CAPTIONS_INFO_AVAILABLE,p)}break;case this.EVENTS.ASSET_DIMENSION:"number"==typeof o.width&&o.width>0&&"number"==typeof o.height&&o.height>0&&(t.extend(o,{videoId:i}),h.publish(e.EVENTS.ASSET_DIMENSION,o));break;case this.EVENTS.BITRATES_AVAILABLE:var f=t.isArray(s)?s.slice():[];f.sort(function(t,i){var n=t||{},a=i||{},r=e.ensureNumber(n.width,1)*e.ensureNumber(n.height,1),s=e.ensureNumber(a.width,1)*e.ensureNumber(a.height,1),o=e.ensureNumber(n.bitrate,0),l=e.ensureNumber(a.bitrate,0);return s-r||l-o}),h.publish(e.EVENTS.BITRATE_INFO_AVAILABLE,{bitrates:f},i);break;case this.EVENTS.BITRATE_CHANGED:ci(s)?h.publish(e.EVENTS.BITRATE_CHANGED,s):n("Invalid bitrate object reported",s);break;case this.EVENTS.CLOSED_CAPTION_CUE_CHANGED:if("string"!=typeof s)return;h.publish(e.EVENTS.CLOSED_CAPTION_CUE_CHANGED,s);break;case this.EVENTS.METADATA_FOUND:s.type&&s.data&&h.publish(e.EVENTS.VC_TAG_FOUND,i,s.type,s.data);break;case this.EVENTS.PLUGIN_LOADED:s.name&&s.time&&h.publish(e.EVENTS.PLUGIN_LOADED,e.PLUGINS.VIDEO,s.name,s.time);break;case this.EVENTS.ON_DOWNLOAD_FINISHED:h.publish(e.EVENTS.HA_NOTIFY,"requestCompleted",s);break;case this.EVENTS.ON_SEGMENT_LOADED:h.publish(e.EVENTS.HA_NOTIFY,"segmentLoaded",s);break;case this.EVENTS.UNMUTED_PLAYBACK_FAILED:e.log("Unmuted playback failed, attempting muted autoplay"),F&&(G.unmuted=!1,ze(i,!0));break;case this.EVENTS.UNMUTED_PLAYBACK_SUCCEEDED:i===e.VIDEO.MAIN&&F&&!this.initialPlayHasStarted&&void 0===G.unmuted&&h.publish(e.EVENTS.AUTOPLAY_CHECK_COMPLETE,{unmuted:!0,muted:!0});break;case this.EVENTS.MUTED_PLAYBACK_FAILED:e.log("Muted playback failed"),i===e.VIDEO.MAIN&&F&&!this.initialPlayHasStarted&&void 0===G.muted&&h.publish(e.EVENTS.AUTOPLAY_CHECK_COMPLETE,{muted:!1,unmuted:!1}),F&&(F=!1,x=e.isAndroid,C?(h.publish(e.EVENTS.CHANGE_MUTE_STATE,!0,i),U=!0):h.publish(e.EVENTS.CHANGE_MUTE_STATE,!1,i),this.notify(i,a,this.EVENTS.PAUSED));break;case this.EVENTS.MUTED_PLAYBACK_SUCCEEDED:i===e.VIDEO.MAIN&&F&&!this.initialPlayHasStarted&&void 0===G.muted&&h.publish(e.EVENTS.AUTOPLAY_CHECK_COMPLETE,{muted:!0});break;case this.EVENTS.MULTI_AUDIO_AVAILABLE:var y=!1;if(null!==this.activeInstances[i]&&(y=Mt(this.activeInstances[i].encoding,this.ALLOWED_MULTI_AUDIO_ENCODINGS)),y){var m=s,b=m.map(function(t){var i=e.normalizeLanguageCode(t.lang);return{id:t.id,lang:i,label:t.label,enabled:t.enabled}}),v={localStorage:e.localStorage,pageLevelParams:_,skinConfig:O,contentTree:S};this.defaultAudioTracks[i]=e.getDefaultTrack(b,v),h.publish(e.EVENTS.MULTI_AUDIO_FETCHED,{tracks:m,languageList:e.LANGUAGE_LIST}),h.publish(e.EVENTS.SET_CURRENT_AUDIO,i,this.defaultAudioTracks[i])}else Ft();break;case this.EVENTS.MULTI_AUDIO_CHANGED:var I=s;h.publish(e.EVENTS.MULTI_AUDIO_CHANGED,{tracks:I})}}},this.markNotReady=function(t){t&&this.activeInstances[t]&&!L&&(E.push(t),null===A&&(h.addDependent(e.EVENTS.PLAYBACK_READY,e.EVENTS.VC_READY,"vtc",kt),A=setTimeout(Vt,3e3)))},this.markReady=function(i){null===A&&0===E.length||0===(E=i?t.without(E,i):[]).length&&(null!==A&&(clearTimeout(A),A=null),h.publish(e.EVENTS.VC_READY))};var kt=function(e,t,i,n){return i},Vt=t.bind(function(){this.markReady()},this),Bt=function(e,i,n){if(e){var a=e.wrapper;if(a){try{if(t.isFunction(a[i]))return a[i].apply(a,n)}catch(t){console.warn("Video tech plugin",e&&e.plugin,"at function '"+i+"' threw exception - ",t)}return null}}},Mt=t.bind(function(e,i){if(t.isString(e)&&t.isArray(i))for(var n=0;n<i.length;n++)if(e===i[n])return!0;return!1},this),Ft=t.bind(function(){h.publish(e.EVENTS.MULTIAUDIO_ERROR,this.focusVideoId,{code:e.ERROR.MULTIAUDIO.UNSUPPORTED_ENCODING})},this),Ut=t.bind(function(e){return!!(this.activeInstances[e]&&this.activeInstances[e].element&&this.activeInstances[e].isControllingElement)},this),Ht=t.bind(function(e,t,i){if(Ut(e))return Bt(this.activeInstances[e].element,t,i)},this),xt=t.bind(function(e,t){this.activeInstances[e]&&(this.activeInstances[e].crossorigin=t,Gt(e))},this),Gt=t.bind(function(e){this.activeInstances[e]&&(this.activeInstances[e].crossorigin?Ht(e,"setCrossorigin",[this.activeInstances[e].crossorigin]):Ht(e,"setCrossorigin",[null]))},this),Yt=t.bind(function(e){var t=jt(e);Gt(e),this.activeInstances[e].element.wrapper.controller=this.activeInstances[e].vtcInterface,zt(this.activeInstances[e],t)},this),jt=t.bind(function(e){var t=this.activeInstances[e];if(t.isControllingElement)return t;var i,a=null;for(i in this.activeInstances)if(this.activeInstances[i]&&this.activeInstances[i].element&&this.activeInstances[i].element===t.element&&this.activeInstances[i].isControllingElement){a=this.activeInstances[i];break}return n("Switching element between instances.  From: '"+i+"', To: '"+e+"'"),t.isControllingElement=!0,a?(a.isControllingElement=!1,a):void 0},this),Wt=t.bind(function(e){var t=this.activeInstances[e];if(t&&t.isControllingElement){var i=null;for(var n in this.activeInstances)if(this.activeInstances[n]&&this.activeInstances[n].element&&this.activeInstances[n].element===t.element&&!this.activeInstances[n].isControllingElement){i=this.activeInstances[n];break}t.isControllingElement=!1,i&&(i.isControllingElement=!0)}},this),Kt=t.bind(function(e){if(!this.activeInstances[e].element.isControllingObject){var t=this.activeInstances[e].element.sharedObjectToInstance;n("Switching wrapper between elements.  From: '"+t+"', To: '"+e+"'"),Bt(this.activeInstances[t].element,"sharedElementGive",[]),this.activeInstances[t].element.isControllingObject=!1,Bt(this.activeInstances[e].element,"sharedElementTake",[]),this.activeInstances[e].element.isControllingObject=!0,zt(this.activeInstances[e],this.activeInstances[t])}},this),zt=t.bind(function(i,n){if(n&&(!0===n.playing?(n.playhead=Bt(n.element,"getCurrentTime"),e.isIos&&0===n.playhead&&(n.playhead=this.currentPlayhead,this.currentPlayhead=0)):n.playhead=0),i.stream){var a=i.stream,r=i.encoding,s=i.isLive;Ht(i.element,"setPlatform",[i.params.platform,r]),Bt(i.element,"setVideoUrl",[a.url,r,s||!1]),i.playing=!1,a.drm&&!t.isEmpty(a.drm)&&ei(r)&&Bt(i.element,"setDRM",[a.drm])}i.playhead>0&&Bt(i.element,"setInitialTime",[i.playhead]),i.element&&i.element.wrapper&&(i.element.wrapper.disableNativeSeek=i.disableNativeSeek)},this);this.disposeAnyElementKeepInstance=function(){var t=e.VIDEO.TECHNOLOGY.HTML5,i=qt(t);Xt(i)};var qt=t.bind(function(t){var i=null;for(var n in this.activeInstances)if(this.activeInstances[n]&&this.activeInstances[n].element){var a=o[this.activeInstances[n].plugin].technology;if(a===t)return n;a===e.VIDEO.TECHNOLOGY.MIXED&&(i=n)}return i},this),Xt=t.bind(function(e){if(e){var i;for(i in!0===this.activeInstances[e].playing?this.activeInstances[e].playhead=Bt(this.activeInstances[e].element,"getCurrentTime"):this.activeInstances[e].playhead=0,this.focusVideoId===e&&$e(e),this.activeInstances)i!==e&&this.activeInstances[i]&&this.activeInstances[i].element&&this.activeInstances[i].element===this.activeInstances[e].element&&(this.activeInstances[i].isControllingElement=!0,this.activeInstances[i].element=null);this.activeInstances[e].element&&(Bt(this.activeInstances[e].element,"destroy",[]),p=t.without(p,this.activeInstances[e].element),this.activeInstances[i].isControllingElement=!0,this.activeInstances[e].element=null)}},this),Qt=t.bind(function(e){var t=this.activeInstances[e].playhead;Ue(o[this.activeInstances[e].plugin],e,this.activeInstances[e].parentContainer,this.activeInstances[e].encoding,this.activeInstances[e].stream,this.activeInstances[e].isLive,this.activeInstances[e].params),qe("recreate",{videoId:e}),t>0&&Bt(this.activeInstances[e].element,"setInitialTime",[t]),this.activeInstances[e].element&&this.activeInstances[e].element.wrapper&&(this.activeInstances[e].element.wrapper.disableNativeSeek=this.activeInstances[e].disableNativeSeek)},this),Zt=t.bind(function(e){this.activeInstances[e]&&!this.activeInstances[e].element&&Qt(e),this.activeInstances[e].isControllingElement||Yt(e),Kt(e)},this),Jt=t.bind(function(e){var t=i("#"+e);if(t.length>0&&!t.is("video")){var n=t.find("video").attr("id");if(n)return n}return e},this),$t=t.bind(function(i,n,a,r){if(!this.activeInstances[i])return Promise.reject(new Error("No videoId was given"));this.activeInstances[i].playhead=0,this.activeInstances[i].playing=!1,this.activeInstances[i].stream=a,this.activeInstances[i].encoding=n,this.activeInstances[i].isLive=!!r,i===e.VIDEO.MAIN&&!0===this.activeInstances[i].isLive&&(this.desiredPlaybackSpeed=1);var s=0;return this.activeInstances[i].params&&this.activeInstances[i].params.initialTime&&(s=this.activeInstances[i].params.initialTime),a.drm&&!t.isEmpty(a.drm)&&ei(n)&&Ht(i,"setDRM",[a.drm]),Ht(i,"setPlatform",[this.activeInstances[i].params.platform,n]),_&&_["adobe-ads"]?Ht(i,"setVideoUrl",[a.url,n,r||!1,_["adobe-ads"]]):Ht(i,"setVideoUrl",[a.url,n,r||!1,s])},this),ei=t.bind(function(t){for(var i in e.VIDEO.ENCODING.DRM)if(e.VIDEO.ENCODING.DRM[i]===t)return!0;return!1},this),ti=t.bind(function(e,t){this.activeInstances[e]&&(me(this.activeInstances[e].isLive)||(this.activeInstances[e].closedCaptions=t))},this),ii=t.bind(function(e,t){this.activeInstances[e]&&t&&(this.activeInstances[e].params=t,ti(e,t.closedCaptions),xt(e,t.crossorigin))},this),ni=t.bind(function(e,t){this.activeInstances[e]&&t&&Ht(e,"setSecureContent",[t])},this),ai=t.bind(function(t,i){var n={mediaErrorCode:t.errorcode,pluginErrorCode:t.pluginErrorCode,pluginErrorMessage:t.pluginErrorMessage,playhead:this.currentPlayhead},a={};if(6===t.errorcode&&(a=this.activeInstances[i].stream.drm),n.drm=a,!v)return e.debug("Error not emitted: "+t.errorcode),I.push(n),void h.publish(e.EVENTS.PAGE_PROBABLY_UNLOADING);ri(),h.publish(e.EVENTS.VC_PLAY_FAILED,i,n),h.publish(e.EVENTS.CANCEL_GEO_CHECKING)},this),ri=t.bind(function(){v=!0;t.each(I,function(t){h.publish(e.EVENTS.VC_PLAY_FAILED,"",t)}),I=[]},this),si=t.bind(function(){v=!1,clearTimeout(b),setTimeout(function(){b=t.delay(ri,5e3)},1)},this),oi=function(){return Math.random().toString(36).substring(7)},li=function(e){var t=e||"",i=new RegExp(/[&\?]try=(\d*)/).exec(t),n=i?i[1]:0,a=(parseInt(n,10)||0)+1;return-1!==t.indexOf("try=")?t.replace(/try=(\d*)/,"try="+a):-1!==t.indexOf("?")?t+"&try=1":t+"?try=1"},ci=function(e){if(!e)return!1;var t=void 0!==e.id&&"string"==typeof e.id,i=void 0!==e.bitrate&&("number"==typeof e.bitrate||"string"==typeof e.bitrate),n=void 0!==e.height&&"number"==typeof e.height,a=void 0!==e.width&&"number"==typeof e.width;return t&&i&&n&&a},ui=t.bind(function(t){this.activeInstances&&this.activeInstances[t]&&this.activeInstances[t].element&&(t===e.VIDEO.MAIN?e.isValidPlaybackSpeed(this.desiredPlaybackSpeed)&&Bt(this.activeInstances[t].element,"setPlaybackSpeed",[this.desiredPlaybackSpeed]):t===e.VIDEO.ADS&&Bt(this.activeInstances[t].element,"setPlaybackSpeed",[1]))},this),di=this,hi={getRegisteredPlugins:function(){return e.Video.getRegisteredPlugins()},getEncodingPriority:function(){return Pe()},getSupportedEncodings:function(){return Le(this.getRegisteredPlugins())},getVideoInstances:function(){return di.activeInstances},getVideoElements:function(){return p}};re()};e.registerModule("videoController",function(e,t){return new d(e,t)})}(OO,OO._,OO.$)},{"@babel/runtime/helpers/asyncToGenerator":9,"@babel/runtime/helpers/interopRequireDefault":13,"@babel/runtime/helpers/typeof":18,"@babel/runtime/regenerator":20}],79:[function(e,t,i){"use strict";OO.plugin(OO.MODULE_NAMES.LIBRATO,function(e,t,i,n){var a=Math.floor(10*Math.random());if(!e.runningUnitTests&&a>0)return function(){};var r=[{name:"v4-load-time",low:500,high:2e3},{name:"player.load.time",low:500,high:2e3},{name:"v4-playback-ready",low:500,high:2e3},{name:"player.playbackReady.time",low:500,high:2e3},{name:"v4-time-to-first-content-frame",low:1e3,high:3e3},{name:"player.firstFrame.time",low:1e3,high:3e3},{name:"v4-time-to-first-ad-frame",low:1e3,high:3e3},{name:"player.adsFirstFrame.time",low:1e3,high:3e3}],s=function(){this.basic_auth_token="abelrios@ooyala.com:95d53e8841835839469f2a2f96fd95b564342ffadff759ad9d49f1897805db1b",window.btoa?this.basic_auth_token=window.btoa(this.basic_auth_token):this.basic_auth_token=window.base64.encode(this.basic_auth_token),this.tag=this._generateTagJSON(),this.source=this._generateSourceString()};t.extend(s.prototype,{_measureDurationMilli:function(e,t){return t-e},_addMeasurementValue:function(e,t,i){var n=[];return e&&e.measurements&&e.measurements.length>0&&(n=e.measurements),n.push({name:t,value:i}),{tags:this.tag,measurements:n}},_addMetricValue:function(e,t,i){return e[t]={value:i,source:this.source},e},_reportSingleMeasurement:function(e,t){var i={};i=this._addMeasurementValue(i,e,t),this._sendMeasurement(i)},_reportSingleMetric:function(e,t){var i={};i=this._addMetricValue(i,e,t),this._sendReport(i)},_sendMeasurement:function(e){i.ajax({url:"https://metrics-api.librato.com/v1/measurements",type:"post",data:JSON.stringify(e),contentType:"application/json",headers:{Authorization:"Basic "+this.basic_auth_token},success:function(e){}})},_sendReport:function(e){i.ajax({url:"https://metrics-api.librato.com/v1/metrics",type:"post",data:{gauges:e},dataType:"json",headers:{Authorization:"Basic "+this.basic_auth_token},success:function(e){}})},_getThresholdText:function(e,t){var i="-within-range";return e>t.high?i="-above-range":e<t.low&&(i="-below-range"),t.name+i},_matchEvent:function(e){var i;return t.each(r,function(t,n){t.name===e&&(i=t)}),i},_generateTagJSON:function(){var i={platform:"web",os:"generic",browser:"generic",customer:"undefined",version:"undefined",source:"api"};if(e.VERSION&&e.VERSION.core&&e.VERSION.core.releaseVersion&&"<CORE_VERSION>"!==e.VERSION.core.releaseVersion&&(i.version=e.VERSION.core.releaseVersion),e.isIos?i.os="ios":e.isAndroid?i.os="android":e.isMacOs?i.os="macosx":e.isWinPhone?i.os="winphone":e.isWindows?i.os="windows":i.os="generic",e.isChrome?i.browser="chrome":e.isFirefox?i.browser="firefox":e.isEdge?i.browser="edge":e.isIE11Plus?i.browser="ie11plus":e.isIE?i.browser="ieold":e.isSafari?i.browser="safari":i.browser="generic",window.performance&&window.performance.getEntriesByType){t.find(window.performance.getEntriesByType("resource"),function(e){return e.name.match("player.*ooyala.*core.*js")})&&(i.source="static")}return i},_generateSourceString:function(){var i={},n=t.template("<%= version %>-<%= os %>-<%= browser %>");return i.version="undefined",e.VERSION&&e.VERSION.core&&e.VERSION.core.releaseVersion&&"<CORE_VERSION>"!==e.VERSION.core.releaseVersion&&(i.version=e.VERSION.core.releaseVersion),e.isIos?i.os="ios":e.isAndroid?i.os="android":e.isMacOs?i.os="macosx":e.isWinPhone?i.os="winphone":e.isWindows?i.os="windows":i.os="generic",e.isChrome?i.browser="chrome":e.isFirefox?i.browser="firefox":e.isIE11Plus?i.browser="ie11plus":e.isIE?i.browser="ieold":e.isSafari?i.browser="safari":i.browser="generic",n(i)},start:function(){var e={},i={};if(this._addMetricValue(e,"v4-load",1),i=this._addMeasurementValue(i,"player.display",1),window.performance&&window.performance.getEntries){var n=t.find(window.performance.getEntriesByType("resource"),function(e){return e.name.match("player.*ooyala.*core")});n&&n.duration>0&&(this._addMetricValue(e,this._getThresholdText(n.duration,this._matchEvent("v4-load-time")),1),i=this._addMeasurementValue(i,this._getThresholdText(n.duration,this._matchEvent("player.load.time")),1),i=this._addMeasurementValue(i,"player.load.time",n.duration))}this._sendReport(e),this._sendMeasurement(i)}});var o=new s;t.defer(t.bind(o.start,o));var l=function(i,n){this.id=n,this.mb=i,this.initializationTs=this._takeTimestamp(),this.helper=o,this.setEmbedCodeTs=0,this.playbackReadyTs=0,this.lastStateChangeTs=0,this.firstFrameTs=0,this.errorTs=0,this.mb.subscribe(e.EVENTS.SET_EMBED_CODE,"librato",t.bind(this._onSetEmbedCode,this)),this.mb.subscribe(e.EVENTS.SET_EMBED_CODE_AFTER_OOYALA_AD,"librato",t.bind(this._onSetEmbedCode,this)),this.mb.subscribe(e.EVENTS.PLAYBACK_READY,"librato",t.bind(this._onPlaybackReady,this)),this.mb.subscribe(e.EVENTS.INITIAL_PLAY,"librato",t.bind(this._onInitialPlay,this)),this.mb.subscribe(e.EVENTS.PLAY,"librato",t.bind(this._onInitialPlay,this)),this.mb.subscribe(e.EVENTS.PLAYING,"librato",t.bind(this._onInitialPlay,this)),this.mb.subscribe(e.EVENTS.ADS_PLAYED,"librato",t.bind(this._onAdsPlayed,this)),this.mb.subscribe(e.EVENTS.PLAYHEAD_TIME_CHANGED,"librato",t.bind(this._onPlayheadTimeChanged,this)),this.mb.subscribe(e.EVENTS.PLAY_FAILED,"librato",t.bind(this._onPlayerPlayFailure,this)),this.mb.subscribe(e.EVENTS.ERROR,"librato",t.bind(this._onPlayerError,this)),this.mb.subscribe(e.EVENTS.WILL_PLAY_ADS,"librato",t.bind(this._willPlayAds,this))};return t.extend(l.prototype,{_takeTimestamp:function(){return(new Date).getTime()},_onSetEmbedCode:function(){this.setEmbedCodeTs=this._takeTimestamp(),this.wasPlayStartReported=!1,this.wasTimeToFirstFrameReported=!1,this.wasTimeToFirstAdFrameReported=!1,this.adsPlaying=!1,this.wasErrorReported=!1,this.playbackReadyTs=0,this.lastStateChangeTs=0,this.firstFrameTs=0,this.errorTs=0},_onPlaybackReady:function(){var e={};o._reportSingleMetric("v4-playback-ready",1),this.playbackReadyTs=this._takeTimestamp();var t=o._measureDurationMilli(this.setEmbedCodeTs,this.playbackReadyTs);o._reportSingleMetric(o._getThresholdText(t,o._matchEvent("v4-playback-ready")),1),e=o._addMeasurementValue(e,o._getThresholdText(t,o._matchEvent("player.playbackReady.time")),1),e=o._addMeasurementValue(e,"player.playbackReady.time",t),o._sendMeasurement(e)},_onInitialPlay:function(){this.wasPlayStartReported||(this.lastStateChangeTs=this._takeTimestamp(),this.wasPlayStartReported=!0,o._reportSingleMetric("v4-play",1),o._reportSingleMeasurement("player.playRequested",1))},_willPlayAds:function(){this.lastStateChangeTs=this._takeTimestamp(),this.adsPlaying=!0,o._reportSingleMetric("v4-play-ad",1),o._reportSingleMeasurement("player.adsRequested",1)},_onAdsPlayed:function(){this.lastStateChangeTs=this._takeTimestamp(),this.adsPlaying=!1},_onPlayheadTimeChanged:function(e,t){if((!this.wasTimeToFirstFrameReported||!this.wasTimeToFirstAdFrameReported)&&t&&!(t<=0)){this.firstFrameTs=this._takeTimestamp();var i=o._measureDurationMilli(this.lastStateChangeTs,this.firstFrameTs);if(!this.wasTimeToFirstFrameReported&&!this.adsPlaying){o._reportSingleMetric(o._getThresholdText(i,o._matchEvent("v4-time-to-first-content-frame")),1),this.wasTimeToFirstFrameReported=!0;var n={};n=o._addMeasurementValue(n,o._getThresholdText(i,o._matchEvent("player.firstFrame.time")),1),n=o._addMeasurementValue(n,"player.firstFrame.time",i),n=o._addMeasurementValue(n,"player.playStarted",1),o._sendMeasurement(n)}if(this.adsPlaying&&!this.wasTimeToFirstAdFrameReported){o._reportSingleMetric(o._getThresholdText(i,o._matchEvent("v4-time-to-first-ad-frame")),1),this.wasTimeToFirstAdFrameReported=!0;var a={};a=o._addMeasurementValue(a,o._getThresholdText(i,o._matchEvent("player.adsFirstFrame.time")),1),a=o._addMeasurementValue(a,"player.adsFirstFrame.time",i),o._sendMeasurement(a)}}},_onPlayerPlayFailure:function(){o._reportSingleMetric("v4-play-fail",1),o._reportSingleMeasurement("player.playFail",1)},_onPlayerError:function(e,t){this.wasErrorReported||(this.errorTs=this._takeTimestamp(),o._reportSingleMetric("v4-error",1),o._reportSingleMeasurement("player.error",1),this.wasErrorReported=!0)}}),l})},{}],80:[function(e,t,i){"use strict";!function(e,t,i){var n=new function(){var e={};this.set=function(t,i){t&&i&&(e[t]=i)},this.get=function(t,i){var n=e[t]||null;return i&&this.remove(t),n},this.exists=function(t){return!!e[t]},this.remove=function(t){return!!this.exists(t)&&delete e[t]},this.flushAll=function(){e={}}};e.exposeStaticApi("cache",n)}(OO,OO._,OO.$)},{}]},{},[62]),function(OO,$,_){var b;!function(){var e="undefined"!=typeof process&&process.versions&&!!process.versions.node?global:window;void 0===e.Ooyala&&(e.Ooyala={}),Ooyala.Util={};var t=function(e,t){if(!e)throw t},i=function(i){t("string"==typeof i,"The namespace name must be a string.");var n=i.split(".");t(n.length>0,"The namespace '"+i+"' is not valid.");for(var a=e,r=0;r<n.length;r++){var s=n[r];if(t(s.length>0,"The namespace '"+i+"' is not valid."),a[s]){var o=n.slice(0,r).join(".");t("object"==typeof a[s],"Namespace error: the name '"+o+"' already exists and is not a namespace.")}else a[s]={};a=a[s]}};i("Ooyala.Util"),Ooyala.Util.createNamespace=i}(),Ooyala.Util.getOwnProperties=function(e){var t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(i);return t},Ooyala.Util.extend=function(e,t){for(var i in t)t.hasOwnProperty(i)&&null==e[i]&&(e[i]=t[i])},Ooyala.Util.createNamespace("Ooyala.Util"),Ooyala.Util.bind=function(e,t){var i=Array.prototype.slice.call(arguments,2);return function(){return e.apply(t,i.concat(Array.prototype.slice.call(arguments)))}},Ooyala.Util.createNamespace("Ooyala.Util.Enumerable"),Ooyala.Util.extend(Ooyala.Util.Enumerable,{_checkFunction:function(e){if("function"!=typeof e)throw new TypeError},foreach:function(e,t){this._checkFunction(t);for(var i=0;i<e.length;i++)t.call(void 0,e[i])},map:function(e,t){this._checkFunction(t);var i=[];return Ooyala.Util.Enumerable.foreach(e,function(e){i.push(t.call(void 0,e))}),i},select:function(e,t){this._checkFunction(t);var i=[];return Ooyala.Util.Enumerable.foreach(e,function(e){t.call(void 0,e)&&i.push(e)}),i},reject:function(e,t){return this.select(e,function(e){return!t.call(void 0,e)})}}),Ooyala.Util.createNamespace("Ooyala.Util.Http"),Ooyala.Util.Http._XMLHttpRequestFactories=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new ActiveXObject("MSXML2.XMLHTTP.3.0")},function(){return new ActiveXObject("MSXML2.XMLHTTP")}],Ooyala.Util.Http._XMLHttpRequestFactory=null,Ooyala.Util.Http.createXMLHttpRequest=function(){if(null!=Ooyala.Util.Http._XMLHttpRequestFactory)return Ooyala.Util.Http._XMLHttpRequestFactory();for(var e=0;e<Ooyala.Util.Http._XMLHttpRequestFactories.length;e++)try{var t=Ooyala.Util.Http._XMLHttpRequestFactories[e],i=t();if(null!=i)return Ooyala.Util.Http._XMLHttpRequestFactory=t,i}catch(e){continue}Ooyala.Util.Http._XMLHttpRequestFactory=function(){throw"XMLHttpRequest not supported."},Ooyala.Util.Http._XMLHttpRequestFactory()},Ooyala.Util.OoyalaStorage=function(e,t){var i;switch(e){case Ooyala.Util.OoyalaStorage.TYPE.COOKIES:i=new Ooyala.Util.CookieManager(t.name,t.daysToLive,t.compareFn),t.deDupe&&i.deDupe();break;case Ooyala.Util.OoyalaStorage.TYPE.LOCAL_MEMORY:default:i=new Ooyala.Util.OoyalaStorage.SimpleKeyValueStore}return{get:function(e){return i.get(e)},set:function(e,t){i.set(e,t)}}},Ooyala.Util.OoyalaStorage.SimpleKeyValueStore=function(){var e={};return{get:function(t){var i=e[t];return i||null},set:function(t,i){e[t]=i.toString()}}},Ooyala.Util.OoyalaStorage.TYPE={COOKIES:"cookies",LOCAL_MEMORY:"localMemory"},Ooyala.Util.CookieManager=function(e,t,i){this._cookieName=e,this._daysToLive=t,this._compareFn=i,this._keysValuesHash={},this._cookiesEnabled=window.navigator.cookieEnabled,Ooyala.Util.CookieManager.cookieNames.push(e)},Ooyala.Util.CookieManager.MAX_COOKIE_SIZE=2048,Ooyala.Util.CookieManager.cookieNames=[],Ooyala.Util.CookieManager.prototype={deDupe:function(){for(var e=this._readAllCookies(this._cookieName),t=0;t<e.length;t++)this._updateHashFromString(e[t]);this._writeCookie(this._cookieName,this._updateStringFromHash()),this._destroyCookies(this._cookieName)},get:function(e){if(!this._cookiesEnabled)return null;this._updateHashFromString(this._readCookie(this._cookieName));var t=this._keysValuesHash[e];return t||null},set:function(e,t){this._cookiesEnabled&&(this._keysValuesHash[e]=t.toString(),this._writeCookie(this._cookieName,this._updateStringFromHash()))},_compare:function(e,t){return this._compareFn(this._keysValuesHash[t],this._keysValuesHash[e])},_updateHashFromString:function(e){if(e)for(var t=e.split("&"),i=0;i<t.length;i++){var n=t[i],a=n.indexOf(":");if(-1!=a){var r=n.substring(0,a),s=n.substring(a+1),o=this._keysValuesHash[r];this._compareFn(o,s)<0&&(this._keysValuesHash[r]=s)}}},_updateStringFromHash:function(){for(var e=Ooyala.Util.getOwnProperties(this._keysValuesHash).sort(Ooyala.Util.bind(this._compare,this)),t="",i=this._cookieOverhead(this._cookieName),n=0;n<Ooyala.Util.CookieManager.cookieNames.length;n++){var a=Ooyala.Util.CookieManager.cookieNames[n];a!=this._cookieName&&(i+=this._cookieOverhead(a)+(this._readCookie(a)||"").length)}for(n=0;n<e.length;n++){var r=e[n],s=this._keysValuesHash[r];if(i+t.length+r.length+s.length+(0==n?1:2)>Ooyala.Util.CookieManager.MAX_COOKIE_SIZE)break;t+=(0==n?"":"&")+r+":"+s}return t},_writeCookie:function(e,t){document.cookie=e+"="+t+"; expires="+this._getExpiryDate()+"; path=/;"},_readCookie:function(e){var t=document.cookie;if(!t)return null;for(var i=e+"=",n=t.split(";"),a=0;a<n.length;a++){for(var r=n[a];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(i)){var s=r.substring(i.length,r.length);return s.length>0?s:null}}return null},_readAllCookies:function(e){var t=document.cookie,i=[];if(!t)return i;for(var n=e+"=",a=t.split(";"),r=0;r<a.length;r++){for(var s=a[r];" "==s.charAt(0);)s=s.substring(1);if(0==s.indexOf(n)){var o=s.substring(n.length,s.length);o.length>0&&i.push(o)}}return i},_destroyCookies:function(e,t){if(e){t||(t=!1);for(var i=document.location.pathname;;){var n=i.lastIndexOf("/");if(-1===n)break;if(0===n&&1===i.length)break;document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path="+i+";",i=i.substring(0,n)}t&&(document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/;")}},_cookieOverhead:function(e){return e.length+this._getExpiryDate().length+10+9},_getExpiryDate:function(){var e=(new Date).getTime();return new Date(e+24*this._daysToLive*60*60*1e3).toGMTString()}},Ooyala.Util.createNamespace("Ooyala.Util"),Ooyala.Util.extend(Ooyala.Util,{base64Encode:function(e){for(var t,i,n,a,r,s,o,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",u=0;u<e.length;)a=(t=e[u++])>>2,r=(3&t)<<4|(i=e[u++])>>4,s=(15&i)<<2|(n=e[u++])>>6,o=63&n,isNaN(i)?s=o=64:isNaN(n)&&(o=64),c=c+l.charAt(a)+l.charAt(r)+l.charAt(s)+l.charAt(o);return c},utf8Encode:function(e){e=e.replace(/\r\n/g,"\n");for(var t="",i=0;i<e.length;i++){var n=e.charCodeAt(i);n<128?t+=String.fromCharCode(n):n>127&&n<2048?(t+=String.fromCharCode(n>>6|192),t+=String.fromCharCode(63&n|128)):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128),t+=String.fromCharCode(63&n|128))}return t},encodeDouble:function(e){var t,i,n,a,r,s,o,l,c,u=new Array(8),d=e,h=8,A=52,E=0;for(s=A,l=(c=(1<<(o=8*h-A-1))-1)>>1,t=d<0?1:0,d=Math.abs(d),isNaN(d)||d==1/0?(n=isNaN(d)?1:0,i=c):(i=Math.floor(Math.log(d)/Math.LN2),d*(r=Math.pow(2,-i))<1&&(i--,r*=2),(d+=i+l>=1?E/r:E*Math.pow(2,1-l))*r>=2&&(i++,r/=2),i+l>=c?(n=0,i=c):i+l>=1?(n=(d*r-1)*Math.pow(2,s),i+=l):(n=d*Math.pow(2,l-1)*Math.pow(2,s),i=0)),a=h-1,-1;s>=8;u[0+a]=255&n,a+=-1,n/=256,s-=8);for(i=i<<s|n,o+=s;o>0;u[0+a]=255&i,a+=-1,i/=256,o-=8);return u[0+a- -1]|=128*t,u}}),Ooyala.Util.createNamespace("Ooyala.Analytics"),Ooyala.Analytics._GuidManager=function(){this._guid_key_name="ooyala_guid"},Ooyala.Analytics._GuidManager.prototype={_isGuidInLocalStorage:function(){return"undefined"!=typeof Storage&&null!==localStorage.getItem(this._guid_key_name)},_getGuidFromLocalStorage:function(){return"undefined"!=typeof Storage?localStorage.getItem(this._guid_key_name):null},_getRandomString:function(){return(new Date).getTime()+window.navigator.userAgent+Math.random().toString(16).split(".")[1]},_generateGuid:function(){return Ooyala.ThirdParty.SHA256.sha256ToBase64String(this._getRandomString())},_setGuid:function(e){return"undefined"!=typeof Storage&&(localStorage.setItem(this._guid_key_name,e),!0)},getOrGenerateGuid:function(){if(this._isGuidInLocalStorage())return this._getGuidFromLocalStorage();var e=this._generateGuid();return this._setGuid(e),e}},function(){var Thrift={Type:{STOP:0,VOID:1,BOOL:2,BYTE:3,I08:3,DOUBLE:4,I16:6,I32:8,I64:10,STRING:11,UTF7:11,STRUCT:12,MAP:13,SET:14,LIST:15,UTF8:16,UTF16:17},MessageType:{CALL:1,REPLY:2,EXCEPTION:3},TException:{}};Thrift.TException.prototype={initialize:function(e,t){this.message=e,this.code=null==t?0:t}},Thrift.TApplicationExceptionType={UNKNOWN:0,UNKNOWN_METHOD:1,INVALID_MESSAGE_TYPE:2,WRONG_METHOD_NAME:3,BAD_SEQUENCE_ID:4,MISSING_RESULT:5},Thrift.TApplicationException=function(e,t){this.message=e,this.code=null==t?0:t},Thrift.TApplicationException.prototype={read:function(e){var t=e.readStructBegin(fname);for(this.fname=t.fname;(t=e.readFieldBegin()).ftype!=TType.STOP;){switch(t.fid){case 1:t.ftype==Type.STRING?(t=e.readString(),this.message=t.value):t=e.skip(t.ftype);break;case 2:t.ftype==Type.I32?(t=e.readI32(),this.code=t.value):t=e.skip(t.ftype);break;default:t=e.skip(t.ftype)}e.readFieldEnd()}e.readStructEnd()},write:function(e){e.writeStructBegin("TApplicationException"),this.message&&(e.writeFieldBegin("message",Type.STRING,1),e.writeString(this.getMessage()),e.writeFieldEnd()),this.code&&(e.writeFieldBegin("type",Type.I32,2),e.writeI32(this.code),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()},getCode:function(){return this.code},getMessage:function(){return this.message}},Thrift.Transport=function(e){this.url=e,this.wpos=0,this.rpos=0,this.send_buf="",this.recv_buf=""},Thrift.Transport.prototype={getXmlHttpRequestObject:function(){try{return new XMLHttpRequest}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}throw"Your browser doesn't support the XmlHttpRequest object.  Try upgrading to Firefox."},flush:function(){if(null==this.url||""==this.url)return this.send_buf;var e=this.getXmlHttpRequestObject();if(e.overrideMimeType&&e.overrideMimeType("application/json"),e.open("POST",this.url,!1),e.send(this.send_buf),4!=e.readyState)throw"encountered an unknown ajax ready state: "+e.readyState;if(200!=e.status)throw"encountered a unknown request status: "+e.status;this.recv_buf=e.responseText,this.recv_buf_sz=this.recv_buf.length,this.wpos=this.recv_buf.length,this.rpos=0},setRecvBuffer:function(e){this.recv_buf=e,this.recv_buf_sz=this.recv_buf.length,this.wpos=this.recv_buf.length,this.rpos=0},isOpen:function(){return!0},open:function(){},close:function(){},read:function(e){var t=this.wpos-this.rpos;if(0==t)return"";var i=e;t<e&&(i=t);var n=this.read_buf.substr(this.rpos,i);return this.rpos+=i,n},readAll:function(){return this.recv_buf},write:function(e){this.send_buf=e},getSendBuffer:function(){return this.send_buf}},Thrift.Protocol=function(e){this.transport=e},Thrift.Protocol.Type={},Thrift.Protocol.Type[Thrift.Type.BOOL]='"tf"',Thrift.Protocol.Type[Thrift.Type.BYTE]='"i8"',Thrift.Protocol.Type[Thrift.Type.I16]='"i16"',Thrift.Protocol.Type[Thrift.Type.I32]='"i32"',Thrift.Protocol.Type[Thrift.Type.I64]='"i64"',Thrift.Protocol.Type[Thrift.Type.DOUBLE]='"dbl"',Thrift.Protocol.Type[Thrift.Type.STRUCT]='"rec"',Thrift.Protocol.Type[Thrift.Type.STRING]='"str"',Thrift.Protocol.Type[Thrift.Type.MAP]='"map"',Thrift.Protocol.Type[Thrift.Type.LIST]='"lst"',Thrift.Protocol.Type[Thrift.Type.SET]='"set"',Thrift.Protocol.RType={},Thrift.Protocol.RType.tf=Thrift.Type.BOOL,Thrift.Protocol.RType.i8=Thrift.Type.BYTE,Thrift.Protocol.RType.i16=Thrift.Type.I16,Thrift.Protocol.RType.i32=Thrift.Type.I32,Thrift.Protocol.RType.i64=Thrift.Type.I64,Thrift.Protocol.RType.dbl=Thrift.Type.DOUBLE,Thrift.Protocol.RType.rec=Thrift.Type.STRUCT,Thrift.Protocol.RType.str=Thrift.Type.STRING,Thrift.Protocol.RType.map=Thrift.Type.MAP,Thrift.Protocol.RType.lst=Thrift.Type.LIST,Thrift.Protocol.RType.set=Thrift.Type.SET,Thrift.Protocol.Version=1,Thrift.Protocol.prototype={getTransport:function(){return this.transport},writeMessageBegin:function(e,t,i){this.tstack=new Array,this.tpos=new Array,this.tstack.push([Thrift.Protocol.Version,'"'+e+'"',t,i])},writeMessageEnd:function(){var e=this.tstack.pop();this.wobj=this.tstack.pop(),this.wobj.push(e),this.wbuf="["+this.wobj.join(",")+"]",this.transport.write(this.wbuf)},writeStructBegin:function(e){this.tpos.push(this.tstack.length),this.tstack.push({})},writeStructEnd:function(){var e=this.tpos.pop(),t=this.tstack[e],i="{",n=!0;for(var a in t)n?n=!1:i+=",",i+=a+":"+t[a];i+="}",this.tstack[e]=i},writeFieldBegin:function(e,t,i){this.tpos.push(this.tstack.length),this.tstack.push({fieldId:'"'+i+'"',fieldType:Thrift.Protocol.Type[t]})},writeFieldEnd:function(){var e=this.tstack.pop(),t=this.tstack.pop();this.tstack[this.tstack.length-1][t.fieldId]="{"+t.fieldType+":"+e+"}",this.tpos.pop()},writeFieldStop:function(){},writeMapBegin:function(e,t,i){this.tpos.push(this.tstack.length),this.tstack.push([Thrift.Protocol.Type[e],Thrift.Protocol.Type[t],0])},writeMapEnd:function(){var e=this.tpos.pop();if(e!=this.tstack.length){(this.tstack.length-e-1)%2!=0&&this.tstack.push("");var t=(this.tstack.length-e-1)/2;this.tstack[e][this.tstack[e].length-1]=t;for(var i="{",n=!0;this.tstack.length>e+1;){var a=this.tstack.pop();n?n=!1:i+=",",i+='"'+this.tstack.pop()+'":'+a}i+="}",this.tstack[e].push(i),this.tstack[e]="["+this.tstack[e].join(",")+"]"}},writeListBegin:function(e,t){this.tpos.push(this.tstack.length),this.tstack.push([Thrift.Protocol.Type[e],t])},writeListEnd:function(){for(var e=this.tpos.pop();this.tstack.length>e+1;){var t=this.tstack[e+1];this.tstack.splice(e+1,1),this.tstack[e].push(t)}this.tstack[e]="["+this.tstack[e].join(",")+"]"},writeSetBegin:function(e,t){this.tpos.push(this.tstack.length),this.tstack.push([Thrift.Protocol.Type[e],t])},writeSetEnd:function(){for(var e=this.tpos.pop();this.tstack.length>e+1;){var t=this.tstack[e+1];this.tstack.splice(e+1,1),this.tstack[e].push(t)}this.tstack[e]="["+this.tstack[e].join(",")+"]"},writeBool:function(e){this.tstack.push(e?1:0)},writeByte:function(e){this.tstack.push(e)},writeI16:function(e){this.tstack.push(e)},writeI32:function(e){this.tstack.push(e)},writeI64:function(e){this.tstack.push(e)},writeDouble:function(e){this.tstack.push(e)},writeString:function(e){this.tstack.push('"'+encodeURIComponent(e)+'"')},writeBinary:function(e){this.writeString(e)},readMessageBegin:function(name,messageType,seqid){this.rstack=new Array,this.rpos=new Array,this.robj=eval(this.transport.readAll());var r={},version=this.robj.shift();if(version!=Thrift.Protocol.Version)throw"Wrong thrift protocol version: "+version;return r.fname=this.robj.shift(),r.mtype=this.robj.shift(),r.rseqid=this.robj.shift(),this.rstack.push(this.robj.shift()),r},readMessageEnd:function(){},readStructBegin:function(e){var t={fname:""};return this.rstack[this.rstack.length-1]instanceof Array&&this.rstack.push(this.rstack[this.rstack.length-1].shift()),t},readStructEnd:function(){this.rstack[this.rstack.length-2]instanceof Array&&this.rstack.pop()},readFieldBegin:function(){var e={},t=-1,i=Thrift.Type.STOP;for(var n in this.rstack[this.rstack.length-1])if(null!=n){t=parseInt(n),this.rpos.push(this.rstack.length);var a=this.rstack[this.rstack.length-1][t];delete this.rstack[this.rstack.length-1][t],this.rstack.push(a);break}if(-1!=t)for(var n in this.rstack[this.rstack.length-1])null!=Thrift.Protocol.RType[n]&&(i=Thrift.Protocol.RType[n],this.rstack[this.rstack.length-1]=this.rstack[this.rstack.length-1][n]);return e.fname="",e.ftype=i,e.fid=t,e},readFieldEnd:function(){for(var e=this.rpos.pop();this.rstack.length>e;)this.rstack.pop()},readMapBegin:function(e,t,i){var n=this.rstack.pop(),a={};return a.ktype=Thrift.Protocol.RType[n.shift()],a.vtype=Thrift.Protocol.RType[n.shift()],a.size=n.shift(),this.rpos.push(this.rstack.length),this.rstack.push(n.shift()),a},readMapEnd:function(){this.readFieldEnd()},readListBegin:function(e,t){var i=this.rstack[this.rstack.length-1],n={};return n.etype=Thrift.Protocol.RType[i.shift()],n.size=i.shift(),this.rpos.push(this.rstack.length),this.rstack.push(i),n},readListEnd:function(){this.readFieldEnd()},readSetBegin:function(e,t){return this.readListBegin(e,t)},readSetEnd:function(){return this.readListEnd()},readBool:function(){var e=this.readI32();return null!=e&&"1"==e.value?e.value=!0:e.value=!1,e},readByte:function(){return this.readI32()},readI16:function(){return this.readI32()},readI32:function(e){null==e&&(e=this.rstack[this.rstack.length-1]);var t={};if(e instanceof Array)0==e.length?t.value=void 0:t.value=e.shift();else if(e instanceof Object){for(var i in e)if(null!=i){this.rstack.push(e[i]),delete e[i],t.value=i;break}}else t.value=e;return t},readI64:function(){return this.readI32()},readDouble:function(){return this.readI32()},readString:function(){var e=this.readI32();return e.value=decodeURIComponent(e.value),e},readBinary:function(){return this.readString()},skip:function(e){throw"skip not supported yet"}},Ooyala.Thrift=Thrift}(),Ooyala.Thrift.BinaryProtocol=function(e){this.transport=e},Ooyala.Thrift.BinaryProtocol.VERSION_MASK=4294901760,Ooyala.Thrift.BinaryProtocol.VERSION_1=2147549184,Ooyala.Thrift.BinaryProtocol.TYPE_MASK=255,Ooyala.Thrift.BinaryProtocol.prototype={getTransport:function(){return this.transport},writeMessageBegin:function(e,t,i){this.writeI16(Ooyala.Thrift.BinaryProtocol.VERSION_1>>16),this.writeI16(t),this.writeString(e),this.writeI32(i)},writeMessageEnd:function(){},writeStructBegin:function(e){},writeStructEnd:function(){},writeFieldBegin:function(e,t,i){this.writeByte(t),this.writeI16(i)},writeFieldEnd:function(){},writeFieldStop:function(){this.writeByte(Ooyala.Thrift.Type.STOP)},writeMapBegin:function(e,t,i){this.writeByte(e),this.writeByte(t),this.writeI32(i)},writeMapEnd:function(){},writeListBegin:function(e,t){this.writeByte(e),this.writeI32(t)},writeListEnd:function(){},writeSetBegin:function(e,t){this.writeByte(e),this.writeI32(t)},writeSetEnd:function(){},writeBool:function(e){this.writeByte(e?1:0)},writeByte:function(e){this.transport.write([e])},writeI16:function(e){var t=(65280&e)>>8,i=255&e;this.transport.write([t,i])},writeI32:function(e){var t=(4294901760&e)>>16,i=65535&e;this.writeI16(t),this.writeI16(i)},writeI64:function(e){var t=e/4294967296&4294967295,i=4294967295&e;this.writeI32(t),this.writeI32(i)},writeDouble:function(e){var t=Ooyala.Util.encodeDouble(e);this.transport.write(t)},writeString:function(e){var t=Ooyala.Util.utf8Encode(e);this.writeI32(t.length);for(var i=0;i<t.length;i++)this.writeByte(t.charCodeAt(i))},readMessageBegin:function(e,t,i){},readMessageEnd:function(){},readStructBegin:function(e){},readStructEnd:function(){},readFieldBegin:function(){},readFieldEnd:function(){},readMapBegin:function(e,t,i){},readMapEnd:function(){},readListBegin:function(e,t){},readListEnd:function(){},readSetBegin:function(e,t){},readSetEnd:function(){},readBool:function(){},readByte:function(){},readI16:function(){},readI32:function(e){},readI64:function(){},readDouble:function(){},readString:function(){},skip:function(e){throw"skip not supported yet"}},Ooyala.Thrift.MemoryBufferTransport=function(e){this.buf=e||[],this.index=0},Ooyala.Thrift.MemoryBufferTransport.prototype={isOpen:function(){return!0},open:function(){},close:function(){},read:function(e){var t=this.buf.slice(this.index,this.index+e);return this.index+=e,this.index>this.buf.length&&(this.index=this.buf.length),this.wpos,this.rpos,t},readAll:function(){return this.buf},write:function(e){this.buf=this.buf.concat(e)},flush:function(){},resetBuffer:function(){this.buf=[],this.index=0}},Ooyala.Thrift.Serializer=function(){this.transport=new Ooyala.Thrift.MemoryBufferTransport(null),this.protocol=new Ooyala.Thrift.BinaryProtocol(this.transport)},Ooyala.Thrift.Serializer.prototype={serialize:function(e){return this.transport.resetBuffer(),e.write(this.protocol),this.transport.readAll()}},"undefined"==typeof Ooyala&&(Ooyala={}),void 0===Ooyala.AdsLogging&&(Ooyala.AdsLogging={}),Ooyala.AdsLogging.AdFormat={VIDEO:1,OVERLAY:2,ENDCAP:3,COMPANION:4},Ooyala.AdsLogging.AdSourceId={OOYALA:1,DOUBLECLICK:2,LIGHTNINGCAST:3,YUME:4,TREMOR:5,ADSENSE:6,TV2N:7,OAS:8,ADTECH:9,SCANSCOUT:10,ATLAS:11,FREEWHEEL:12,OPENX:13,LIVERAIL:14,VAST:15,ADIFY:16,DART_ENTERPRISE:17,CBSI:18,BRIGHTROLL:19,UNKNOWN:20,ADAPTV:21,VIDEOPLAZA:22,SPOTXCHANGE:23},Ooyala.AdsLogging.AdPositionType={PREROLL:1,MIDROLL:2,POSTROLL:3,OVERLAY_POSITION:4,ENDSLATE:5,STANDALONE:6},Ooyala.AdsLogging.AdFailureReason={LOAD_ERROR:1,LOAD_TIMEOUT:2,LOAD_IO_ERROR:3,PREFETCH_ERROR:4,PREFETCH_TIMEOUT:5,PREFETCH_IO_ERROR:6,PLAY_ERROR:7,PLAY_TIMEOUT:8,PLAY_IO_ERROR:9,INVALID_PLAYER_CONFIGURATION:10,INVALID_AD_CONFIGURATION:11,AD_NOT_FOUND:12,EXCEPTION:13,AD_ERROR:14,INVALID_AD_RESPONSE:15,CONNECTION_ERROR:16,BUFFERING_TIMEOUT:17,POLICY_RESTRICTION:18},Ooyala.AdsLogging.AD_FORMAT_MAP={1:"video",2:"overlay",3:"endcap",4:"companion"},Ooyala.AdsLogging.AD_SOURCE_MAP={1:"ooyala",2:"doubleclick",3:"lightningcast",4:"yume",5:"tremor",6:"adsense",7:"tv2n",8:"oas",9:"adtech",10:"scanscout",11:"atlas",12:"freewheel",13:"openx",14:"liverail",15:"vast",16:"adify",17:"dart_enterprise",18:"cbsi",19:"brightroll",21:"adap-tv",22:"videoplaza",23:"spotxchange",20:"[unknown]"},Ooyala.AdsLogging.AD_POSITION_TYPE_MAP={1:"preroll",2:"midroll",3:"postroll",4:"overlay",5:"endslate",6:"standalone"},Ooyala.AdsLogging.AD_FAILURE_REASON_MAP={1:"loadError",2:"loadTimeout",3:"loadIOError",4:"prefetchError",5:"prefetchTimeout",6:"prefetchIOError",7:"playError",8:"playTimeout",9:"playIOError",10:"invalidPlayerConfiguration",11:"invalidAdConfiguration",12:"adNotFound",13:"exception",14:"adError",15:"invalidAdResponse",16:"connectionError",17:"bufferingTimeout",18:"policyRestriction"},Ooyala.AdsLogging.AdParams=function(e){this.string_key="",this.integer_key=0,this.value="",null!=e&&(null!=e.string_key&&(this.string_key=e.string_key),null!=e.integer_key&&(this.integer_key=e.integer_key),null!=e.value&&(this.value=e.value))},Ooyala.AdsLogging.AdParams.prototype={},Ooyala.AdsLogging.AdParams.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 1:if(i==Ooyala.Thrift.Type.STRING){var a=e.readString();this.string_key=a.value}else e.skip(i);break;case 2:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.integer_key=a.value}else e.skip(i);break;case 3:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.value=a.value}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.AdsLogging.AdParams.prototype.write=function(e){e.writeStructBegin("AdParams"),null!=this.string_key&&(e.writeFieldBegin("string_key",Ooyala.Thrift.Type.STRING,1),e.writeString(this.string_key),e.writeFieldEnd()),null!=this.integer_key&&(e.writeFieldBegin("integer_key",Ooyala.Thrift.Type.I32,2),e.writeI32(this.integer_key),e.writeFieldEnd()),null!=this.value&&(e.writeFieldBegin("value",Ooyala.Thrift.Type.STRING,3),e.writeString(this.value),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()},Ooyala.AdsLogging.AdClick=function(e){this.clickUrl="",this.playheadTimeMillis=0,this.realTime=0,null!=e&&(null!=e.clickUrl&&(this.clickUrl=e.clickUrl),null!=e.playheadTimeMillis&&(this.playheadTimeMillis=e.playheadTimeMillis),null!=e.realTime&&(this.realTime=e.realTime))},Ooyala.AdsLogging.AdClick.prototype={},Ooyala.AdsLogging.AdClick.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 1:if(i==Ooyala.Thrift.Type.STRING){var a=e.readString();this.clickUrl=a.value}else e.skip(i);break;case 2:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.playheadTimeMillis=a.value}else e.skip(i);break;case 3:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.realTime=a.value}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.AdsLogging.AdClick.prototype.write=function(e){e.writeStructBegin("AdClick"),null!=this.clickUrl&&(e.writeFieldBegin("clickUrl",Ooyala.Thrift.Type.STRING,1),e.writeString(this.clickUrl),e.writeFieldEnd()),null!=this.playheadTimeMillis&&(e.writeFieldBegin("playheadTimeMillis",Ooyala.Thrift.Type.I32,2),e.writeI32(this.playheadTimeMillis),e.writeFieldEnd()),null!=this.realTime&&(e.writeFieldBegin("realTime",Ooyala.Thrift.Type.I32,3),e.writeI32(this.realTime),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()},Ooyala.AdsLogging.AdSpot=function(e){this.adSource=0,this.adFormat=0,this.adPositionType=0,this.ooyalaAdReportingIdIndex=0,this.adPositionInMillis=0,this.parentContentReportingIdIndex=0,this.adSourceContentId=0,this.tagUrl="",this.passthroughParameters="",this.adId=0,null!=e&&(null!=e.adSource&&(this.adSource=e.adSource),null!=e.adFormat&&(this.adFormat=e.adFormat),null!=e.adPositionType&&(this.adPositionType=e.adPositionType),null!=e.ooyalaAdReportingIdIndex&&(this.ooyalaAdReportingIdIndex=e.ooyalaAdReportingIdIndex),null!=e.adPositionInMillis&&(this.adPositionInMillis=e.adPositionInMillis),null!=e.parentContentReportingIdIndex&&(this.parentContentReportingIdIndex=e.parentContentReportingIdIndex),null!=e.adSourceContentId&&(this.adSourceContentId=e.adSourceContentId),null!=e.tagUrl&&(this.tagUrl=e.tagUrl),null!=e.passthroughParameters&&(this.passthroughParameters=e.passthroughParameters),null!=e.adId&&(this.adId=e.adId))},Ooyala.AdsLogging.AdSpot.prototype={},Ooyala.AdsLogging.AdSpot.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 1:if(i==Ooyala.Thrift.Type.BYTE){var a=e.readByte();this.adSource=a.value}else e.skip(i);break;case 2:if(i==Ooyala.Thrift.Type.BYTE){a=e.readByte();this.adFormat=a.value}else e.skip(i);break;case 3:if(i==Ooyala.Thrift.Type.BYTE){a=e.readByte();this.adPositionType=a.value}else e.skip(i);break;case 4:if(i==Ooyala.Thrift.Type.BYTE){a=e.readByte();this.ooyalaAdReportingIdIndex=a.value}else e.skip(i);break;case 5:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.adPositionInMillis=a.value}else e.skip(i);break;case 6:if(i==Ooyala.Thrift.Type.BYTE){a=e.readByte();this.parentContentReportingIdIndex=a.value}else e.skip(i);break;case 7:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.adSourceContentId=a.value}else e.skip(i);break;case 8:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.tagUrl=a.value}else e.skip(i);break;case 9:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.passthroughParameters=a.value}else e.skip(i);break;case 10:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.adId=a.value}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.AdsLogging.AdSpot.prototype.write=function(e){e.writeStructBegin("AdSpot"),null!=this.adSource&&(e.writeFieldBegin("adSource",Ooyala.Thrift.Type.BYTE,1),e.writeByte(this.adSource),e.writeFieldEnd()),null!=this.adFormat&&(e.writeFieldBegin("adFormat",Ooyala.Thrift.Type.BYTE,2),e.writeByte(this.adFormat),e.writeFieldEnd()),null!=this.adPositionType&&(e.writeFieldBegin("adPositionType",Ooyala.Thrift.Type.BYTE,3),e.writeByte(this.adPositionType),e.writeFieldEnd()),null!=this.ooyalaAdReportingIdIndex&&(e.writeFieldBegin("ooyalaAdReportingIdIndex",Ooyala.Thrift.Type.BYTE,4),e.writeByte(this.ooyalaAdReportingIdIndex),e.writeFieldEnd()),null!=this.adPositionInMillis&&(e.writeFieldBegin("adPositionInMillis",Ooyala.Thrift.Type.I32,5),e.writeI32(this.adPositionInMillis),e.writeFieldEnd()),null!=this.parentContentReportingIdIndex&&(e.writeFieldBegin("parentContentReportingIdIndex",Ooyala.Thrift.Type.BYTE,6),e.writeByte(this.parentContentReportingIdIndex),e.writeFieldEnd()),null!=this.adSourceContentId&&(e.writeFieldBegin("adSourceContentId",Ooyala.Thrift.Type.I32,7),e.writeI32(this.adSourceContentId),e.writeFieldEnd()),null!=this.tagUrl&&(e.writeFieldBegin("tagUrl",Ooyala.Thrift.Type.STRING,8),e.writeString(this.tagUrl),e.writeFieldEnd()),null!=this.passthroughParameters&&(e.writeFieldBegin("passthroughParameters",Ooyala.Thrift.Type.STRING,9),e.writeString(this.passthroughParameters),e.writeFieldEnd()),null!=this.adId&&(e.writeFieldBegin("adId",Ooyala.Thrift.Type.I32,10),e.writeI32(this.adId),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()},Ooyala.AdsLogging.AdTracking=function(e){this.adSpotIndex=0,this.playThroughCompletion=0,this.clickToVideo=!1,this.clickUrl="",this.dupClick=!1,this.failureAfterAdImpression=!1,this.failureReason=0,null!=e&&(null!=e.adSpotIndex&&(this.adSpotIndex=e.adSpotIndex),null!=e.playThroughCompletion&&(this.playThroughCompletion=e.playThroughCompletion),null!=e.clickToVideo&&(this.clickToVideo=e.clickToVideo),null!=e.clickUrl&&(this.clickUrl=e.clickUrl),null!=e.dupClick&&(this.dupClick=e.dupClick),null!=e.failureAfterAdImpression&&(this.failureAfterAdImpression=e.failureAfterAdImpression),null!=e.failureReason&&(this.failureReason=e.failureReason))},Ooyala.AdsLogging.AdTracking.prototype={},Ooyala.AdsLogging.AdTracking.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 1:if(i==Ooyala.Thrift.Type.BYTE){var a=e.readByte();this.adSpotIndex=a.value}else e.skip(i);break;case 2:if(i==Ooyala.Thrift.Type.I16){a=e.readI16();this.playThroughCompletion=a.value}else e.skip(i);break;case 3:if(i==Ooyala.Thrift.Type.BOOL){a=e.readBool();this.clickToVideo=a.value}else e.skip(i);break;case 4:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.clickUrl=a.value}else e.skip(i);break;case 5:if(i==Ooyala.Thrift.Type.BOOL){a=e.readBool();this.dupClick=a.value}else e.skip(i);break;case 6:if(i==Ooyala.Thrift.Type.BOOL){a=e.readBool();this.failureAfterAdImpression=a.value}else e.skip(i);break;case 7:if(i==Ooyala.Thrift.Type.BYTE){a=e.readByte();this.failureReason=a.value}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.AdsLogging.AdTracking.prototype.write=function(e){e.writeStructBegin("AdTracking"),null!=this.adSpotIndex&&(e.writeFieldBegin("adSpotIndex",Ooyala.Thrift.Type.BYTE,1),e.writeByte(this.adSpotIndex),e.writeFieldEnd()),null!=this.playThroughCompletion&&(e.writeFieldBegin("playThroughCompletion",Ooyala.Thrift.Type.I16,2),e.writeI16(this.playThroughCompletion),e.writeFieldEnd()),null!=this.clickToVideo&&(e.writeFieldBegin("clickToVideo",Ooyala.Thrift.Type.BOOL,3),e.writeBool(this.clickToVideo),e.writeFieldEnd()),null!=this.clickUrl&&(e.writeFieldBegin("clickUrl",Ooyala.Thrift.Type.STRING,4),e.writeString(this.clickUrl),e.writeFieldEnd()),null!=this.dupClick&&(e.writeFieldBegin("dupClick",Ooyala.Thrift.Type.BOOL,5),e.writeBool(this.dupClick),e.writeFieldEnd()),null!=this.failureAfterAdImpression&&(e.writeFieldBegin("failureAfterAdImpression",Ooyala.Thrift.Type.BOOL,6),e.writeBool(this.failureAfterAdImpression),e.writeFieldEnd()),null!=this.failureReason&&(e.writeFieldBegin("failureReason",Ooyala.Thrift.Type.BYTE,7),e.writeByte(this.failureReason),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()},"undefined"==typeof Ooyala&&(Ooyala={}),void 0===Ooyala.CustomEventsLogging&&(Ooyala.CustomEventsLogging={}),Ooyala.CustomEventsLogging.Callee={AS:1,JS:2,OPF:3,OTHER:4},Ooyala.CustomEventsLogging.CalleeFormat={1:"actionscript api",2:"javascript api",3:"OPF api",4:"unknown api"},Ooyala.CustomEventsLogging.CustomEvent=function(e){this.event="",this.operations=[],this.callee=0,this.process=!1,this.value=0,null!=e&&(null!=e.event&&(this.event=e.event),null!=e.operations&&(this.operations=e.operations),null!=e.callee&&(this.callee=e.callee),null!=e.process&&(this.process=e.process),null!=e.value&&(this.value=e.value))},Ooyala.CustomEventsLogging.CustomEvent.prototype={},Ooyala.CustomEventsLogging.CustomEvent.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 1:if(i==Ooyala.Thrift.Type.STRING){var a=e.readString();this.event=a.value}else e.skip(i);break;case 2:if(i==Ooyala.Thrift.Type.LIST){var r,s;this.operations=[];(r=e.readListBegin()).etype,s=r.size;for(var o=0;o<s;++o){var l;l=(a=e.readString()).value,this.operations.push(l)}e.readListEnd()}else e.skip(i);break;case 3:if(i==Ooyala.Thrift.Type.BYTE){a=e.readByte();this.callee=a.value}else e.skip(i);break;case 4:if(i==Ooyala.Thrift.Type.BOOL){a=e.readBool();this.process=a.value}else e.skip(i);break;case 5:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.value=a.value}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.CustomEventsLogging.CustomEvent.prototype.write=function(e){if(e.writeStructBegin("CustomEvent"),null!=this.event&&(e.writeFieldBegin("event",Ooyala.Thrift.Type.STRING,1),e.writeString(this.event),e.writeFieldEnd()),null!=this.operations){e.writeFieldBegin("operations",Ooyala.Thrift.Type.LIST,2),e.writeListBegin(Ooyala.Thrift.Type.STRING,this.operations.length);for(var t=0;t<this.operations.length;t++){var i=this.operations[t];e.writeString(i)}e.writeListEnd(),e.writeFieldEnd()}null!=this.callee&&(e.writeFieldBegin("callee",Ooyala.Thrift.Type.BYTE,3),e.writeByte(this.callee),e.writeFieldEnd()),null!=this.process&&(e.writeFieldBegin("process",Ooyala.Thrift.Type.BOOL,4),e.writeBool(this.process),e.writeFieldEnd()),null!=this.value&&(e.writeFieldBegin("value",Ooyala.Thrift.Type.I32,5),e.writeI32(this.value),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()},"undefined"==typeof Ooyala&&(Ooyala={}),void 0===Ooyala.MetricsLogging&&(Ooyala.MetricsLogging={}),Ooyala.MetricsLogging.MetricsKey={TIME_TO_UI_READY:1,TIME_TO_PLAYBACK_READY:2,TIME_TO_START_SCREEN_IMAGE_DISPLAYED:3,TIME_FROM_PLAY_CLICK_TO_PLAY:4,TIME_TO_START_PLAY_WITH_AUTOPLAY:5,TIME_TO_LOAD_AD:6,TIME_TO_PREFETCH_AD:7,TIME_TO_PLAY_AD:8,USER_VIEWABLE_LATENCY_FOR_AD:9,TIME_TO_LOAD_AD_FAILURE:10,TIME_TO_PREFETCH_AD_FAILURE:11,TIME_TO_PLAY_AD_FAILURE:12,USER_VIEWABLE_LATENCY_FOR_AD_FAILURE:13,TIME_SPENT_BUFFERING:20,TIME_FROM_LOAD_TO_API_READY:30,TIME_FROM_PLAY_TO_PLAYBACK_STARTED:31},Ooyala.MetricsLogging.METRICS_KEY_TYPENAMES={1:"timeToUIReady",2:"timeToPlaybackReady",3:"timeToStartScreenImageDisplayed",5:"timeToStartPlayWithAutoplay",4:"timeFromPlayClickToPlay",6:"timeToLoadAd",7:"timeToPrefetchAd",8:"timeToPlayAd",9:"userViewableLatencyForAd",10:"timeToLoadAdFailure",11:"timeToPrefetchAdFailure",12:"timeToPlayAdFailure",13:"userViewableLatencyForAdFailure",20:"timeSpentBuffering",30:"timeFromLoadToAPIReady",31:"timeFromPlayToPlaybackStarted"},Ooyala.MetricsLogging.Metric=function(e){this.key=0,this.values=[],null!=e&&(null!=e.key&&(this.key=e.key),null!=e.values&&(this.values=e.values))},Ooyala.MetricsLogging.Metric.prototype={},Ooyala.MetricsLogging.Metric.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 1:if(i==Ooyala.Thrift.Type.I16){var a=e.readI16();this.key=a.value}else e.skip(i);break;case 2:if(i==Ooyala.Thrift.Type.LIST){var r,s;this.values=[];(r=e.readListBegin()).etype,s=r.size;for(var o=0;o<s;++o){var l;l=(a=e.readI32()).value,this.values.push(l)}e.readListEnd()}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.MetricsLogging.Metric.prototype.write=function(e){if(e.writeStructBegin("Metric"),null!=this.key&&(e.writeFieldBegin("key",Ooyala.Thrift.Type.I16,1),e.writeI16(this.key),e.writeFieldEnd()),null!=this.values){e.writeFieldBegin("values",Ooyala.Thrift.Type.LIST,2),e.writeListBegin(Ooyala.Thrift.Type.I32,this.values.length);for(var t=0;t<this.values.length;t++){var i=this.values[t];e.writeI32(i)}e.writeListEnd(),e.writeFieldEnd()}e.writeFieldStop(),e.writeStructEnd()},"undefined"==typeof Ooyala&&(Ooyala={}),void 0===Ooyala.Logging&&(Ooyala.Logging={}),Ooyala.Logging.PlayerEventType={UNKNOWN:0,DISPLAY:1,PLAY:2,PERCENTAGE_WATCHED:3,SEEK:4,REPLAY:5,PAUSE:6,BUCKETS_WATCHED:7,TOTAL_TIME_PLAYED:8,BITRATE_PLAYED:9,DOWNLOAD:10,CHUNK_FAILOVER:11,BUFFER:12,CV_INFO:13,AD_CLICK:14,AD_IMPRESSION:15,AD_PLAYTHROUGH:16,AD_PLAY_FAILED:17,METRIC:18,PLAYER_LOAD:19,BITRATE_TRANSITION:20,BITRATES_AVAILABLE:21,SHARE:22,PAY_PER_VIEW:23,SAS_AUTHORIZE:24,SAS_AUTHORIZE_V2:25,AD_REQUESTED:26,AD_MOUSEOVER:27,VIDEO_START:28,CUSTOM:29,RELATED_VIDEO_SELECTED:30,RELATED_VIDEOS_DISPLAYED:31,PLAYTHROUGH_PERCENT:32},Ooyala.Logging.FileType={VIDEO_FILE:1,IMAGE:2,PLAYER:3,MODULE:4,XML:5},Ooyala.Logging.ChunkFailoverReason={UNKNOWN_REASON:0,READ_TIMEOUT:1,CONNECTION_TIMEOUT:2,CONNECTION_ERROR:3,CLOSE:4,DISCONNECTED:5},Ooyala.Logging.StreamFormat={VP6:1,H264:2,OTHER:3},Ooyala.Logging.PlayerEmbedType={JS:1,OBJECT:2,FLASH_IN_FLASH:3,EXTERNAL_ANALYTICS:4},Ooyala.Logging.BufferType={UNKNOWN_BUFFER_TYPE:0,LOW_BANDWIDTH:1,USER_INITIATED:2,CONNECTION_LOST:3},Ooyala.Logging.Gateway={PAYPAL:1,PAYMO:2},Ooyala.Logging.PayPerViewCheckoutType={CHECKOUT_PRESENTED:1,CHECKOUT_STARTED:2,CHECKOUT_FINISHED:3,CHECKOUT_CANCELLED:4,CHECKOUT_FAILED:5},Ooyala.Logging.ReportingIdType={GLOBAL:1,VIDEO:2,CHANNEL:3,CHANNEL_SET:4,PROVIDER:5},Ooyala.Logging.UserInfoSource={AKAMAI:1,MAXMIND:2,ENCRYPTED_SAS:3},Ooyala.Logging.SourceType={OOYALA_PLAYER:1,STANDALONE_ANALYTICS:2},Ooyala.Logging.PLAYER_EVENT_TYPENAMES={0:"unknown",1:"display",2:"play",3:"percentageWatched",4:"seek",5:"replay",6:"pause",7:"bucketsWatched",8:"totalTimePlayed",9:"bitratePlayed",10:"download",11:"chunkFailover",12:"buffer",13:"cvInfo",14:"adClick",27:"adMouseover",26:"adRequested",15:"adImpression",16:"adPlaythrough",17:"adPlayFailed",18:"metric",19:"playerLoad",20:"bitrateTransition",21:"bitratesAvailable",22:"share",23:"payPerView",24:"sasAuthorize",25:"sasAuthorizeV2",28:"videoStart",29:"customEvent",30:"relatedVideoSelected",31:"relatedVideoDisplayed",32:"playthroughPercent"},Ooyala.Logging.FILE_TYPENAMES={1:"video",2:"image",3:"player",4:"module",5:"xml"},Ooyala.Logging.STREAM_FORMAT_TYPENAMES={1:"vp6",2:"h264",3:"other"},Ooyala.Logging.PLAYER_EMBED_TYPENAMES={1:"js",2:"object",3:"flashInFlash",4:"externalAnalytics"},Ooyala.Logging.BUFFER_TYPENAMES={0:"unknown",1:"lowBandwidth",2:"userInitiated",3:"connectionLost"},Ooyala.Logging.GATEWAY_TYPENAMES={1:"paypal",2:"paymo"},Ooyala.Logging.PAY_PER_VIEW_CHECKOUT_TYPENAMES={1:"checkoutPresented",2:"checkoutStarted",3:"checkoutFinished",4:"checkoutCancelled",5:"checkoutFailed"},Ooyala.Logging.REPORTING_ID_TYPE_MAP={1:"global",2:"video",3:"channel",4:"channelSet",5:"provider"},Ooyala.Logging.SOURCE_TYPENAMES={1:"ooyalaPlayer",2:"standaloneAnalytics"},Ooyala.Logging.DownloadStats=function(e){this.servingDomainId=0,this.fileTypeToBytesDownloaded={},this.servingDomain="",this.timesToFirstByte=[],this.downloadTime=0,this.numLatencyPoints=0,this.avgTimeToFirstByte=0,this.percentSingleConnection=100,this.bytesDownloadedFromSingleConnection=0,this.totalSingleStreamBytes=0,this.totalSingleStreamPlayTime=0,this.filetype=1,this.bytesDownloaded=0,this.timeToFirstByte=0,null!=e&&(null!=e.servingDomainId&&(this.servingDomainId=e.servingDomainId),null!=e.fileTypeToBytesDownloaded&&(this.fileTypeToBytesDownloaded=e.fileTypeToBytesDownloaded),null!=e.servingDomain&&(this.servingDomain=e.servingDomain),null!=e.timesToFirstByte&&(this.timesToFirstByte=e.timesToFirstByte),null!=e.downloadTime&&(this.downloadTime=e.downloadTime),null!=e.numLatencyPoints&&(this.numLatencyPoints=e.numLatencyPoints),null!=e.avgTimeToFirstByte&&(this.avgTimeToFirstByte=e.avgTimeToFirstByte),null!=e.percentSingleConnection&&(this.percentSingleConnection=e.percentSingleConnection),null!=e.bytesDownloadedFromSingleConnection&&(this.bytesDownloadedFromSingleConnection=e.bytesDownloadedFromSingleConnection),null!=e.totalSingleStreamBytes&&(this.totalSingleStreamBytes=e.totalSingleStreamBytes),null!=e.totalSingleStreamPlayTime&&(this.totalSingleStreamPlayTime=e.totalSingleStreamPlayTime),null!=e.filetype&&(this.filetype=e.filetype),null!=e.bytesDownloaded&&(this.bytesDownloaded=e.bytesDownloaded),null!=e.timeToFirstByte&&(this.timeToFirstByte=e.timeToFirstByte))},Ooyala.Logging.DownloadStats.prototype={},Ooyala.Logging.DownloadStats.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 2:if(i==Ooyala.Thrift.Type.I32){var a=e.readI32();this.servingDomainId=a.value}else e.skip(i);break;case 11:if(i==Ooyala.Thrift.Type.MAP){var r;this.fileTypeToBytesDownloaded={};(o=e.readMapBegin()).ktype,o.vtype,r=o.size;for(var s=0;s<r;++s){key5=0,val6=0;a=e.readByte();key5=a.value;a=e.readI32();val6=a.value,this.fileTypeToBytesDownloaded[key5]=val6}e.readMapEnd()}else e.skip(i);break;case 15:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.servingDomain=a.value}else e.skip(i);break;case 12:if(i==Ooyala.Thrift.Type.LIST){var o,l;this.timesToFirstByte=[];(o=e.readListBegin()).etype,l=o.size;for(var c=0;c<l;++c){var u;u=(a=e.readI16()).value,this.timesToFirstByte.push(u)}e.readListEnd()}else e.skip(i);break;case 5:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.downloadTime=a.value}else e.skip(i);break;case 13:if(i==Ooyala.Thrift.Type.I16){a=e.readI16();this.numLatencyPoints=a.value}else e.skip(i);break;case 14:if(i==Ooyala.Thrift.Type.I16){a=e.readI16();this.avgTimeToFirstByte=a.value}else e.skip(i);break;case 6:if(i==Ooyala.Thrift.Type.BYTE){a=e.readByte();this.percentSingleConnection=a.value}else e.skip(i);break;case 7:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.bytesDownloadedFromSingleConnection=a.value}else e.skip(i);break;case 8:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.totalSingleStreamBytes=a.value}else e.skip(i);break;case 9:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.totalSingleStreamPlayTime=a.value}else e.skip(i);break;case 1:if(i==Ooyala.Thrift.Type.BYTE){a=e.readByte();this.filetype=a.value}else e.skip(i);break;case 3:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.bytesDownloaded=a.value}else e.skip(i);break;case 4:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.timeToFirstByte=a.value}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.Logging.DownloadStats.prototype.write=function(e){if(e.writeStructBegin("DownloadStats"),null!=this.servingDomainId&&(e.writeFieldBegin("servingDomainId",Ooyala.Thrift.Type.I32,2),e.writeI32(this.servingDomainId),e.writeFieldEnd()),null!=this.fileTypeToBytesDownloaded){e.writeFieldBegin("fileTypeToBytesDownloaded",Ooyala.Thrift.Type.MAP,11);var t=0;for(key in this.fileTypeToBytesDownloaded)this.fileTypeToBytesDownloaded.hasOwnProperty(key)&&t++;for(var i in e.writeMapBegin(Ooyala.Thrift.Type.BYTE,Ooyala.Thrift.Type.I32,t),this.fileTypeToBytesDownloaded){var n=this.fileTypeToBytesDownloaded[i];e.writeByte(i),e.writeI32(n)}e.writeMapEnd(),e.writeFieldEnd()}if(null!=this.servingDomain&&(e.writeFieldBegin("servingDomain",Ooyala.Thrift.Type.STRING,15),e.writeString(this.servingDomain),e.writeFieldEnd()),null!=this.timesToFirstByte){e.writeFieldBegin("timesToFirstByte",Ooyala.Thrift.Type.LIST,12),e.writeListBegin(Ooyala.Thrift.Type.I16,this.timesToFirstByte.length);for(var a=0;a<this.timesToFirstByte.length;a++){var r=this.timesToFirstByte[a];e.writeI16(r)}e.writeListEnd(),e.writeFieldEnd()}null!=this.downloadTime&&(e.writeFieldBegin("downloadTime",Ooyala.Thrift.Type.I32,5),e.writeI32(this.downloadTime),e.writeFieldEnd()),null!=this.numLatencyPoints&&(e.writeFieldBegin("numLatencyPoints",Ooyala.Thrift.Type.I16,13),e.writeI16(this.numLatencyPoints),e.writeFieldEnd()),null!=this.avgTimeToFirstByte&&(e.writeFieldBegin("avgTimeToFirstByte",Ooyala.Thrift.Type.I16,14),e.writeI16(this.avgTimeToFirstByte),e.writeFieldEnd()),null!=this.percentSingleConnection&&(e.writeFieldBegin("percentSingleConnection",Ooyala.Thrift.Type.BYTE,6),e.writeByte(this.percentSingleConnection),e.writeFieldEnd()),null!=this.bytesDownloadedFromSingleConnection&&(e.writeFieldBegin("bytesDownloadedFromSingleConnection",Ooyala.Thrift.Type.I32,7),e.writeI32(this.bytesDownloadedFromSingleConnection),e.writeFieldEnd()),null!=this.totalSingleStreamBytes&&(e.writeFieldBegin("totalSingleStreamBytes",Ooyala.Thrift.Type.I32,8),e.writeI32(this.totalSingleStreamBytes),e.writeFieldEnd()),null!=this.totalSingleStreamPlayTime&&(e.writeFieldBegin("totalSingleStreamPlayTime",Ooyala.Thrift.Type.I32,9),e.writeI32(this.totalSingleStreamPlayTime),e.writeFieldEnd()),null!=this.filetype&&(e.writeFieldBegin("filetype",Ooyala.Thrift.Type.BYTE,1),e.writeByte(this.filetype),e.writeFieldEnd()),null!=this.bytesDownloaded&&(e.writeFieldBegin("bytesDownloaded",Ooyala.Thrift.Type.I32,3),e.writeI32(this.bytesDownloaded),e.writeFieldEnd()),null!=this.timeToFirstByte&&(e.writeFieldBegin("timeToFirstByte",Ooyala.Thrift.Type.I32,4),e.writeI32(this.timeToFirstByte),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()},Ooyala.Logging.ChunkFailoverInfo=function(e){this.reason=0,this.servingDomainId=0,this.chunkShortUrl="",this.firstForChunk=!1,this.firstForUrl=!1,null!=e&&(null!=e.reason&&(this.reason=e.reason),null!=e.servingDomainId&&(this.servingDomainId=e.servingDomainId),null!=e.chunkShortUrl&&(this.chunkShortUrl=e.chunkShortUrl),null!=e.firstForChunk&&(this.firstForChunk=e.firstForChunk),null!=e.firstForUrl&&(this.firstForUrl=e.firstForUrl))},Ooyala.Logging.ChunkFailoverInfo.prototype={},Ooyala.Logging.ChunkFailoverInfo.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 1:if(i==Ooyala.Thrift.Type.I32){var a=e.readI32();this.reason=a.value}else e.skip(i);break;case 2:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.servingDomainId=a.value}else e.skip(i);break;case 3:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.chunkShortUrl=a.value}else e.skip(i);break;case 4:if(i==Ooyala.Thrift.Type.BOOL){a=e.readBool();this.firstForChunk=a.value}else e.skip(i);break;case 5:if(i==Ooyala.Thrift.Type.BOOL){a=e.readBool();this.firstForUrl=a.value}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.Logging.ChunkFailoverInfo.prototype.write=function(e){e.writeStructBegin("ChunkFailoverInfo"),null!=this.reason&&(e.writeFieldBegin("reason",Ooyala.Thrift.Type.I32,1),e.writeI32(this.reason),e.writeFieldEnd()),null!=this.servingDomainId&&(e.writeFieldBegin("servingDomainId",Ooyala.Thrift.Type.I32,2),e.writeI32(this.servingDomainId),e.writeFieldEnd()),null!=this.chunkShortUrl&&(e.writeFieldBegin("chunkShortUrl",Ooyala.Thrift.Type.STRING,3),e.writeString(this.chunkShortUrl),e.writeFieldEnd()),null!=this.firstForChunk&&(e.writeFieldBegin("firstForChunk",Ooyala.Thrift.Type.BOOL,4),e.writeBool(this.firstForChunk),e.writeFieldEnd()),null!=this.firstForUrl&&(e.writeFieldBegin("firstForUrl",Ooyala.Thrift.Type.BOOL,5),e.writeBool(this.firstForUrl),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()},Ooyala.Logging.PlayheadStatus=function(e){this.playheadTimeMillis=0,this.lastSeekTimeMillis=0,this.fromSeekTimeMillis=0,this.DEPRECATED_firstForUser=!1,this.DEPRECATED_firstForVideo=!1,null!=e&&(null!=e.playheadTimeMillis&&(this.playheadTimeMillis=e.playheadTimeMillis),null!=e.lastSeekTimeMillis&&(this.lastSeekTimeMillis=e.lastSeekTimeMillis),null!=e.fromSeekTimeMillis&&(this.fromSeekTimeMillis=e.fromSeekTimeMillis),null!=e.DEPRECATED_firstForUser&&(this.DEPRECATED_firstForUser=e.DEPRECATED_firstForUser),null!=e.DEPRECATED_firstForVideo&&(this.DEPRECATED_firstForVideo=e.DEPRECATED_firstForVideo))},Ooyala.Logging.PlayheadStatus.prototype={},Ooyala.Logging.PlayheadStatus.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 1:if(i==Ooyala.Thrift.Type.I32){var a=e.readI32();this.playheadTimeMillis=a.value}else e.skip(i);break;case 2:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.lastSeekTimeMillis=a.value}else e.skip(i);break;case 4:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.fromSeekTimeMillis=a.value}else e.skip(i);break;case 3:if(i==Ooyala.Thrift.Type.BOOL){a=e.readBool();this.DEPRECATED_firstForUser=a.value}else e.skip(i);break;case 5:if(i==Ooyala.Thrift.Type.BOOL){a=e.readBool();this.DEPRECATED_firstForVideo=a.value}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.Logging.PlayheadStatus.prototype.write=function(e){e.writeStructBegin("PlayheadStatus"),null!=this.playheadTimeMillis&&(e.writeFieldBegin("playheadTimeMillis",Ooyala.Thrift.Type.I32,1),e.writeI32(this.playheadTimeMillis),e.writeFieldEnd()),null!=this.lastSeekTimeMillis&&(e.writeFieldBegin("lastSeekTimeMillis",Ooyala.Thrift.Type.I32,2),e.writeI32(this.lastSeekTimeMillis),e.writeFieldEnd()),null!=this.fromSeekTimeMillis&&(e.writeFieldBegin("fromSeekTimeMillis",Ooyala.Thrift.Type.I32,4),e.writeI32(this.fromSeekTimeMillis),e.writeFieldEnd()),null!=this.DEPRECATED_firstForUser&&(e.writeFieldBegin("DEPRECATED_firstForUser",Ooyala.Thrift.Type.BOOL,3),e.writeBool(this.DEPRECATED_firstForUser),e.writeFieldEnd()),null!=this.DEPRECATED_firstForVideo&&(e.writeFieldBegin("DEPRECATED_firstForVideo",Ooyala.Thrift.Type.BOOL,5),e.writeBool(this.DEPRECATED_firstForVideo),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()},Ooyala.Logging.CvObjectClickInfo=function(e){this.trackId="",this.oid="",this.mouseX=0,this.mouseY=0,this.clickTime=0,this.label="",this.link="",this.outline=[],null!=e&&(null!=e.trackId&&(this.trackId=e.trackId),null!=e.oid&&(this.oid=e.oid),null!=e.mouseX&&(this.mouseX=e.mouseX),null!=e.mouseY&&(this.mouseY=e.mouseY),null!=e.clickTime&&(this.clickTime=e.clickTime),null!=e.label&&(this.label=e.label),null!=e.link&&(this.link=e.link),null!=e.outline&&(this.outline=e.outline))},Ooyala.Logging.CvObjectClickInfo.prototype={},Ooyala.Logging.CvObjectClickInfo.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 1:if(i==Ooyala.Thrift.Type.STRING){var a=e.readString();this.trackId=a.value}else e.skip(i);break;case 2:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.oid=a.value}else e.skip(i);break;case 3:if(i==Ooyala.Thrift.Type.DOUBLE){a=e.readDouble();this.mouseX=a.value}else e.skip(i);break;case 4:if(i==Ooyala.Thrift.Type.DOUBLE){a=e.readDouble();this.mouseY=a.value}else e.skip(i);break;case 5:if(i==Ooyala.Thrift.Type.DOUBLE){a=e.readDouble();this.clickTime=a.value}else e.skip(i);break;case 6:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.label=a.value}else e.skip(i);break;case 7:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.link=a.value}else e.skip(i);break;case 8:if(i==Ooyala.Thrift.Type.LIST){var r,s;this.outline=[];(r=e.readListBegin()).etype,s=r.size;for(var o=0;o<s;++o){var l;l=(a=e.readDouble()).value,this.outline.push(l)}e.readListEnd()}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.Logging.CvObjectClickInfo.prototype.write=function(e){if(e.writeStructBegin("CvObjectClickInfo"),null!=this.trackId&&(e.writeFieldBegin("trackId",Ooyala.Thrift.Type.STRING,1),e.writeString(this.trackId),e.writeFieldEnd()),null!=this.oid&&(e.writeFieldBegin("oid",Ooyala.Thrift.Type.STRING,2),e.writeString(this.oid),e.writeFieldEnd()),null!=this.mouseX&&(e.writeFieldBegin("mouseX",Ooyala.Thrift.Type.DOUBLE,3),e.writeDouble(this.mouseX),e.writeFieldEnd()),null!=this.mouseY&&(e.writeFieldBegin("mouseY",Ooyala.Thrift.Type.DOUBLE,4),e.writeDouble(this.mouseY),e.writeFieldEnd()),null!=this.clickTime&&(e.writeFieldBegin("clickTime",Ooyala.Thrift.Type.DOUBLE,5),e.writeDouble(this.clickTime),e.writeFieldEnd()),null!=this.label&&(e.writeFieldBegin("label",Ooyala.Thrift.Type.STRING,6),e.writeString(this.label),e.writeFieldEnd()),null!=this.link&&(e.writeFieldBegin("link",Ooyala.Thrift.Type.STRING,7),e.writeString(this.link),e.writeFieldEnd()),null!=this.outline){e.writeFieldBegin("outline",Ooyala.Thrift.Type.LIST,8),e.writeListBegin(Ooyala.Thrift.Type.DOUBLE,this.outline.length);for(var t=0;t<this.outline.length;t++){var i=this.outline[t];e.writeDouble(i)}e.writeListEnd(),e.writeFieldEnd()}e.writeFieldStop(),e.writeStructEnd()},Ooyala.Logging.WatchedBuckets=function(e){this.minPerMille=0,this.maxPerMille=0,null!=e&&(null!=e.minPerMille&&(this.minPerMille=e.minPerMille),null!=e.maxPerMille&&(this.maxPerMille=e.maxPerMille))},Ooyala.Logging.WatchedBuckets.prototype={},Ooyala.Logging.WatchedBuckets.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 1:if(i==Ooyala.Thrift.Type.I16){var a=e.readI16();this.minPerMille=a.value}else e.skip(i);break;case 2:if(i==Ooyala.Thrift.Type.I16){a=e.readI16();this.maxPerMille=a.value}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.Logging.WatchedBuckets.prototype.write=function(e){e.writeStructBegin("WatchedBuckets"),null!=this.minPerMille&&(e.writeFieldBegin("minPerMille",Ooyala.Thrift.Type.I16,1),e.writeI16(this.minPerMille),e.writeFieldEnd()),null!=this.maxPerMille&&(e.writeFieldBegin("maxPerMille",Ooyala.Thrift.Type.I16,2),e.writeI16(this.maxPerMille),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()},Ooyala.Logging.BitratePlayed=function(e){this.timePlayed=0,this.videoKbps=0,this.videoFormat=0,this.audioKbps=0,this.userBandwidthInKbps=0,null!=e&&(null!=e.timePlayed&&(this.timePlayed=e.timePlayed),null!=e.videoKbps&&(this.videoKbps=e.videoKbps),null!=e.videoFormat&&(this.videoFormat=e.videoFormat),null!=e.audioKbps&&(this.audioKbps=e.audioKbps),null!=e.userBandwidthInKbps&&(this.userBandwidthInKbps=e.userBandwidthInKbps))},Ooyala.Logging.BitratePlayed.prototype={},Ooyala.Logging.BitratePlayed.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 1:if(i==Ooyala.Thrift.Type.I32){var a=e.readI32();this.timePlayed=a.value}else e.skip(i);break;case 2:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.videoKbps=a.value}else e.skip(i);break;case 3:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.videoFormat=a.value}else e.skip(i);break;case 4:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.audioKbps=a.value}else e.skip(i);break;case 5:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.userBandwidthInKbps=a.value}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.Logging.BitratePlayed.prototype.write=function(e){e.writeStructBegin("BitratePlayed"),null!=this.timePlayed&&(e.writeFieldBegin("timePlayed",Ooyala.Thrift.Type.I32,1),e.writeI32(this.timePlayed),e.writeFieldEnd()),null!=this.videoKbps&&(e.writeFieldBegin("videoKbps",Ooyala.Thrift.Type.I32,2),e.writeI32(this.videoKbps),e.writeFieldEnd()),null!=this.videoFormat&&(e.writeFieldBegin("videoFormat",Ooyala.Thrift.Type.I32,3),e.writeI32(this.videoFormat),e.writeFieldEnd()),null!=this.audioKbps&&(e.writeFieldBegin("audioKbps",Ooyala.Thrift.Type.I32,4),e.writeI32(this.audioKbps),e.writeFieldEnd()),null!=this.userBandwidthInKbps&&(e.writeFieldBegin("userBandwidthInKbps",Ooyala.Thrift.Type.I32,5),e.writeI32(this.userBandwidthInKbps),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()},Ooyala.Logging.BitrateTransition=function(e){this.oldVideoKbps=0,this.newVideoKbps=0,this.oldAudioKbps=0,this.newAudioKbps=0,this.transitionTimeInMillis=0,null!=e&&(null!=e.oldVideoKbps&&(this.oldVideoKbps=e.oldVideoKbps),null!=e.newVideoKbps&&(this.newVideoKbps=e.newVideoKbps),null!=e.oldAudioKbps&&(this.oldAudioKbps=e.oldAudioKbps),null!=e.newAudioKbps&&(this.newAudioKbps=e.newAudioKbps),null!=e.transitionTimeInMillis&&(this.transitionTimeInMillis=e.transitionTimeInMillis))},Ooyala.Logging.BitrateTransition.prototype={},Ooyala.Logging.BitrateTransition.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 1:if(i==Ooyala.Thrift.Type.I32){var a=e.readI32();this.oldVideoKbps=a.value}else e.skip(i);break;case 2:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.newVideoKbps=a.value}else e.skip(i);break;case 3:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.oldAudioKbps=a.value}else e.skip(i);break;case 4:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.newAudioKbps=a.value}else e.skip(i);break;case 5:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.transitionTimeInMillis=a.value}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.Logging.BitrateTransition.prototype.write=function(e){e.writeStructBegin("BitrateTransition"),null!=this.oldVideoKbps&&(e.writeFieldBegin("oldVideoKbps",Ooyala.Thrift.Type.I32,1),e.writeI32(this.oldVideoKbps),e.writeFieldEnd()),null!=this.newVideoKbps&&(e.writeFieldBegin("newVideoKbps",Ooyala.Thrift.Type.I32,2),e.writeI32(this.newVideoKbps),e.writeFieldEnd()),null!=this.oldAudioKbps&&(e.writeFieldBegin("oldAudioKbps",Ooyala.Thrift.Type.I32,3),e.writeI32(this.oldAudioKbps),e.writeFieldEnd()),null!=this.newAudioKbps&&(e.writeFieldBegin("newAudioKbps",Ooyala.Thrift.Type.I32,4),e.writeI32(this.newAudioKbps),e.writeFieldEnd()),null!=this.transitionTimeInMillis&&(e.writeFieldBegin("transitionTimeInMillis",Ooyala.Thrift.Type.I32,5),e.writeI32(this.transitionTimeInMillis),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()},Ooyala.Logging.Sharing=function(e){this.email=!1,this.embedCodeCopy=!1,this.digg=!1,this.stumbleUpon=!1,this.facebook=!1,this.twitter=!1,this.urlCopy=!1,null!=e&&(null!=e.email&&(this.email=e.email),null!=e.embedCodeCopy&&(this.embedCodeCopy=e.embedCodeCopy),null!=e.digg&&(this.digg=e.digg),null!=e.stumbleUpon&&(this.stumbleUpon=e.stumbleUpon),null!=e.facebook&&(this.facebook=e.facebook),null!=e.twitter&&(this.twitter=e.twitter),null!=e.urlCopy&&(this.urlCopy=e.urlCopy))},Ooyala.Logging.Sharing.prototype={},Ooyala.Logging.Sharing.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 1:if(i==Ooyala.Thrift.Type.BOOL){var a=e.readBool();this.email=a.value}else e.skip(i);break;case 2:if(i==Ooyala.Thrift.Type.BOOL){a=e.readBool();this.embedCodeCopy=a.value}else e.skip(i);break;case 3:if(i==Ooyala.Thrift.Type.BOOL){a=e.readBool();this.digg=a.value}else e.skip(i);break;case 4:if(i==Ooyala.Thrift.Type.BOOL){a=e.readBool();this.stumbleUpon=a.value}else e.skip(i);break;case 5:if(i==Ooyala.Thrift.Type.BOOL){a=e.readBool();this.facebook=a.value}else e.skip(i);break;case 6:if(i==Ooyala.Thrift.Type.BOOL){a=e.readBool();this.twitter=a.value}else e.skip(i);break;case 7:if(i==Ooyala.Thrift.Type.BOOL){a=e.readBool();this.urlCopy=a.value}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.Logging.Sharing.prototype.write=function(e){e.writeStructBegin("Sharing"),null!=this.email&&(e.writeFieldBegin("email",Ooyala.Thrift.Type.BOOL,1),e.writeBool(this.email),e.writeFieldEnd()),null!=this.embedCodeCopy&&(e.writeFieldBegin("embedCodeCopy",Ooyala.Thrift.Type.BOOL,2),e.writeBool(this.embedCodeCopy),e.writeFieldEnd()),null!=this.digg&&(e.writeFieldBegin("digg",Ooyala.Thrift.Type.BOOL,3),e.writeBool(this.digg),e.writeFieldEnd()),null!=this.stumbleUpon&&(e.writeFieldBegin("stumbleUpon",Ooyala.Thrift.Type.BOOL,4),e.writeBool(this.stumbleUpon),e.writeFieldEnd()),null!=this.facebook&&(e.writeFieldBegin("facebook",Ooyala.Thrift.Type.BOOL,5),e.writeBool(this.facebook),e.writeFieldEnd()),null!=this.twitter&&(e.writeFieldBegin("twitter",Ooyala.Thrift.Type.BOOL,6),e.writeBool(this.twitter),e.writeFieldEnd()),null!=this.urlCopy&&(e.writeFieldBegin("urlCopy",Ooyala.Thrift.Type.BOOL,7),e.writeBool(this.urlCopy),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()},Ooyala.Logging.PersonalizationBucketInfo=function(e){this.bucketInfo="",null!=e&&null!=e.bucketInfo&&(this.bucketInfo=e.bucketInfo)},Ooyala.Logging.PersonalizationBucketInfo.prototype={},Ooyala.Logging.PersonalizationBucketInfo.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 1:if(i==Ooyala.Thrift.Type.STRING){var a=e.readString();this.bucketInfo=a.value}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.Logging.PersonalizationBucketInfo.prototype.write=function(e){e.writeStructBegin("PersonalizationBucketInfo"),null!=this.bucketInfo&&(e.writeFieldBegin("bucketInfo",Ooyala.Thrift.Type.STRING,1),e.writeString(this.bucketInfo),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()},Ooyala.Logging.PayPerView=function(e){this.checkoutType=0,this.gateway=0,this.price=0,this.mobilePrice=0,this.currency="",this.previewWindowInMillis=0,this.playheadTimeInMillis=0,this.error="",null!=e&&(null!=e.checkoutType&&(this.checkoutType=e.checkoutType),null!=e.gateway&&(this.gateway=e.gateway),null!=e.price&&(this.price=e.price),null!=e.mobilePrice&&(this.mobilePrice=e.mobilePrice),null!=e.currency&&(this.currency=e.currency),null!=e.previewWindowInMillis&&(this.previewWindowInMillis=e.previewWindowInMillis),null!=e.playheadTimeInMillis&&(this.playheadTimeInMillis=e.playheadTimeInMillis),null!=e.error&&(this.error=e.error))},Ooyala.Logging.PayPerView.prototype={},Ooyala.Logging.PayPerView.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 1:if(i==Ooyala.Thrift.Type.BYTE){var a=e.readByte();this.checkoutType=a.value}else e.skip(i);break;case 2:if(i==Ooyala.Thrift.Type.BYTE){a=e.readByte();this.gateway=a.value}else e.skip(i);break;case 3:if(i==Ooyala.Thrift.Type.DOUBLE){a=e.readDouble();this.price=a.value}else e.skip(i);break;case 4:if(i==Ooyala.Thrift.Type.DOUBLE){a=e.readDouble();this.mobilePrice=a.value}else e.skip(i);break;case 5:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.currency=a.value}else e.skip(i);break;case 6:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.previewWindowInMillis=a.value}else e.skip(i);break;case 7:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.playheadTimeInMillis=a.value}else e.skip(i);break;case 8:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.error=a.value}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.Logging.PayPerView.prototype.write=function(e){e.writeStructBegin("PayPerView"),null!=this.checkoutType&&(e.writeFieldBegin("checkoutType",Ooyala.Thrift.Type.BYTE,1),e.writeByte(this.checkoutType),e.writeFieldEnd()),null!=this.gateway&&(e.writeFieldBegin("gateway",Ooyala.Thrift.Type.BYTE,2),e.writeByte(this.gateway),e.writeFieldEnd()),null!=this.price&&(e.writeFieldBegin("price",Ooyala.Thrift.Type.DOUBLE,3),e.writeDouble(this.price),e.writeFieldEnd()),null!=this.mobilePrice&&(e.writeFieldBegin("mobilePrice",Ooyala.Thrift.Type.DOUBLE,4),e.writeDouble(this.mobilePrice),e.writeFieldEnd()),null!=this.currency&&(e.writeFieldBegin("currency",Ooyala.Thrift.Type.STRING,5),e.writeString(this.currency),e.writeFieldEnd()),null!=this.previewWindowInMillis&&(e.writeFieldBegin("previewWindowInMillis",Ooyala.Thrift.Type.I32,6),e.writeI32(this.previewWindowInMillis),e.writeFieldEnd()),null!=this.playheadTimeInMillis&&(e.writeFieldBegin("playheadTimeInMillis",Ooyala.Thrift.Type.I32,7),e.writeI32(this.playheadTimeInMillis),e.writeFieldEnd()),null!=this.error&&(e.writeFieldBegin("error",Ooyala.Thrift.Type.STRING,8),e.writeString(this.error),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()},Ooyala.Logging.SasAuthorize=function(e){this.authorized=!1,this.requestTime=0,this.latency=0,this.codes="",this.messages="",this.isAuthorizedInPlayerXML=!1,null!=e&&(null!=e.authorized&&(this.authorized=e.authorized),null!=e.requestTime&&(this.requestTime=e.requestTime),null!=e.latency&&(this.latency=e.latency),null!=e.codes&&(this.codes=e.codes),null!=e.messages&&(this.messages=e.messages),null!=e.isAuthorizedInPlayerXML&&(this.isAuthorizedInPlayerXML=e.isAuthorizedInPlayerXML))},Ooyala.Logging.SasAuthorize.prototype={},Ooyala.Logging.SasAuthorize.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 1:if(i==Ooyala.Thrift.Type.BOOL){var a=e.readBool();this.authorized=a.value}else e.skip(i);break;case 2:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.requestTime=a.value}else e.skip(i);break;case 3:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.latency=a.value}else e.skip(i);break;case 4:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.codes=a.value}else e.skip(i);break;case 5:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.messages=a.value}else e.skip(i);break;case 6:if(i==Ooyala.Thrift.Type.BOOL){a=e.readBool();this.isAuthorizedInPlayerXML=a.value}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.Logging.SasAuthorize.prototype.write=function(e){e.writeStructBegin("SasAuthorize"),null!=this.authorized&&(e.writeFieldBegin("authorized",Ooyala.Thrift.Type.BOOL,1),e.writeBool(this.authorized),e.writeFieldEnd()),null!=this.requestTime&&(e.writeFieldBegin("requestTime",Ooyala.Thrift.Type.I32,2),e.writeI32(this.requestTime),e.writeFieldEnd()),null!=this.latency&&(e.writeFieldBegin("latency",Ooyala.Thrift.Type.I32,3),e.writeI32(this.latency),e.writeFieldEnd()),null!=this.codes&&(e.writeFieldBegin("codes",Ooyala.Thrift.Type.STRING,4),e.writeString(this.codes),e.writeFieldEnd()),null!=this.messages&&(e.writeFieldBegin("messages",Ooyala.Thrift.Type.STRING,5),e.writeString(this.messages),e.writeFieldEnd()),null!=this.isAuthorizedInPlayerXML&&(e.writeFieldBegin("isAuthorizedInPlayerXML",Ooyala.Thrift.Type.BOOL,6),e.writeBool(this.isAuthorizedInPlayerXML),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()},Ooyala.Logging.SasAuthorizeV2=function(e){this.requestId="",this.rootEmbedCode="",this.responseCode=0,this.serverSideLatency=0,this.clientSideLatency=0,this.clientSideLatencyForLastRequest=0,this.country="",this.continent="",null!=e&&(null!=e.requestId&&(this.requestId=e.requestId),null!=e.rootEmbedCode&&(this.rootEmbedCode=e.rootEmbedCode),null!=e.responseCode&&(this.responseCode=e.responseCode),null!=e.serverSideLatency&&(this.serverSideLatency=e.serverSideLatency),null!=e.clientSideLatency&&(this.clientSideLatency=e.clientSideLatency),null!=e.clientSideLatencyForLastRequest&&(this.clientSideLatencyForLastRequest=e.clientSideLatencyForLastRequest),null!=e.country&&(this.country=e.country),null!=e.continent&&(this.continent=e.continent))},Ooyala.Logging.SasAuthorizeV2.prototype={},Ooyala.Logging.SasAuthorizeV2.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 1:if(i==Ooyala.Thrift.Type.STRING){var a=e.readString();this.requestId=a.value}else e.skip(i);break;case 2:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.rootEmbedCode=a.value}else e.skip(i);break;case 3:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.responseCode=a.value}else e.skip(i);break;case 4:if(i==Ooyala.Thrift.Type.DOUBLE){a=e.readDouble();this.serverSideLatency=a.value}else e.skip(i);break;case 5:if(i==Ooyala.Thrift.Type.DOUBLE){a=e.readDouble();this.clientSideLatency=a.value}else e.skip(i);break;case 6:if(i==Ooyala.Thrift.Type.DOUBLE){a=e.readDouble();this.clientSideLatencyForLastRequest=a.value}else e.skip(i);break;case 7:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.country=a.value}else e.skip(i);break;case 8:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.continent=a.value}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.Logging.SasAuthorizeV2.prototype.write=function(e){e.writeStructBegin("SasAuthorizeV2"),null!=this.requestId&&(e.writeFieldBegin("requestId",Ooyala.Thrift.Type.STRING,1),e.writeString(this.requestId),e.writeFieldEnd()),null!=this.rootEmbedCode&&(e.writeFieldBegin("rootEmbedCode",Ooyala.Thrift.Type.STRING,2),e.writeString(this.rootEmbedCode),e.writeFieldEnd()),null!=this.responseCode&&(e.writeFieldBegin("responseCode",Ooyala.Thrift.Type.I32,3),e.writeI32(this.responseCode),e.writeFieldEnd()),null!=this.serverSideLatency&&(e.writeFieldBegin("serverSideLatency",Ooyala.Thrift.Type.DOUBLE,4),e.writeDouble(this.serverSideLatency),e.writeFieldEnd()),null!=this.clientSideLatency&&(e.writeFieldBegin("clientSideLatency",Ooyala.Thrift.Type.DOUBLE,5),e.writeDouble(this.clientSideLatency),e.writeFieldEnd()),null!=this.clientSideLatencyForLastRequest&&(e.writeFieldBegin("clientSideLatencyForLastRequest",Ooyala.Thrift.Type.DOUBLE,6),e.writeDouble(this.clientSideLatencyForLastRequest),e.writeFieldEnd()),null!=this.country&&(e.writeFieldBegin("country",Ooyala.Thrift.Type.STRING,7),e.writeString(this.country),e.writeFieldEnd()),null!=this.continent&&(e.writeFieldBegin("continent",Ooyala.Thrift.Type.STRING,8),e.writeString(this.continent),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()},Ooyala.Logging.ReportingIdDescriptor=function(e){this.reportingIdType=0,this.providerReportingIdIndex=0,this.parentContentIdIndex=0,this.syndicationDestinationIdIndex=0,this.adSetId=0,null!=e&&(null!=e.reportingIdType&&(this.reportingIdType=e.reportingIdType),null!=e.providerReportingIdIndex&&(this.providerReportingIdIndex=e.providerReportingIdIndex),null!=e.parentContentIdIndex&&(this.parentContentIdIndex=e.parentContentIdIndex),null!=e.syndicationDestinationIdIndex&&(this.syndicationDestinationIdIndex=e.syndicationDestinationIdIndex),null!=e.adSetId&&(this.adSetId=e.adSetId))},Ooyala.Logging.ReportingIdDescriptor.prototype={},Ooyala.Logging.ReportingIdDescriptor.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 1:if(i==Ooyala.Thrift.Type.BYTE){var a=e.readByte();this.reportingIdType=a.value}else e.skip(i);break;case 2:if(i==Ooyala.Thrift.Type.BYTE){a=e.readByte();this.providerReportingIdIndex=a.value}else e.skip(i);break;case 3:if(i==Ooyala.Thrift.Type.BYTE){a=e.readByte();this.parentContentIdIndex=a.value}else e.skip(i);break;case 4:if(i==Ooyala.Thrift.Type.BYTE){a=e.readByte();this.syndicationDestinationIdIndex=a.value}else e.skip(i);break;case 5:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.adSetId=a.value}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.Logging.ReportingIdDescriptor.prototype.write=function(e){e.writeStructBegin("ReportingIdDescriptor"),null!=this.reportingIdType&&(e.writeFieldBegin("reportingIdType",Ooyala.Thrift.Type.BYTE,1),e.writeByte(this.reportingIdType),e.writeFieldEnd()),null!=this.providerReportingIdIndex&&(e.writeFieldBegin("providerReportingIdIndex",Ooyala.Thrift.Type.BYTE,2),e.writeByte(this.providerReportingIdIndex),e.writeFieldEnd()),null!=this.parentContentIdIndex&&(e.writeFieldBegin("parentContentIdIndex",Ooyala.Thrift.Type.BYTE,3),e.writeByte(this.parentContentIdIndex),e.writeFieldEnd()),null!=this.syndicationDestinationIdIndex&&(e.writeFieldBegin("syndicationDestinationIdIndex",Ooyala.Thrift.Type.BYTE,4),e.writeByte(this.syndicationDestinationIdIndex),e.writeFieldEnd()),null!=this.adSetId&&(e.writeFieldBegin("adSetId",Ooyala.Thrift.Type.I32,5),e.writeI32(this.adSetId),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()},Ooyala.Logging.PlayerEvent=function(e){this.reportingIdIndex=0,this.reportingIdIndices=[],this.eventType=0,this.param1="",this.param2="",this.download=new Ooyala.Logging.DownloadStats,this.chunkFailover=new Ooyala.Logging.ChunkFailoverInfo,this.playhead=new Ooyala.Logging.PlayheadStatus,this.cvinfo=new Ooyala.Logging.CvObjectClickInfo,this.DEPRECATED_adClick=new Ooyala.AdsLogging.AdClick,this.buckets=new Ooyala.Logging.WatchedBuckets,this.timePlayed=0,this.bitratePlayed=new Ooyala.Logging.BitratePlayed,this.adTracking=new Ooyala.AdsLogging.AdTracking,this.metric=new Ooyala.MetricsLogging.Metric,this.lastEventTime=0,this.firstForPlayer=!1,this.firstForRootContent=!1,this.firstForVideo=!1,this.bufferType=0,this.bitrateTransition=new Ooyala.Logging.BitrateTransition,this.bitratesAvailable=[],this.sharing=new Ooyala.Logging.Sharing,this.payPerView=new Ooyala.Logging.PayPerView,this.sasAuthorize=new Ooyala.Logging.SasAuthorize,this.sasAuthorizeV2=new Ooyala.Logging.SasAuthorizeV2,this.autoplay=!1,this.customEvent=new Ooyala.CustomEventsLogging.CustomEvent,this.personalizationBucketInfo=new Ooyala.Logging.PersonalizationBucketInfo,this.reportingIdIndexToPlayheadPositionMillis={},this.playthroughPercent=0,this.seqnum=0,null!=e&&(null!=e.reportingIdIndex&&(this.reportingIdIndex=e.reportingIdIndex),null!=e.reportingIdIndices&&(this.reportingIdIndices=e.reportingIdIndices),null!=e.eventType&&(this.eventType=e.eventType),null!=e.param1&&(this.param1=e.param1),null!=e.param2&&(this.param2=e.param2),null!=e.download&&(this.download=e.download),null!=e.chunkFailover&&(this.chunkFailover=e.chunkFailover),null!=e.playhead&&(this.playhead=e.playhead),null!=e.cvinfo&&(this.cvinfo=e.cvinfo),null!=e.DEPRECATED_adClick&&(this.DEPRECATED_adClick=e.DEPRECATED_adClick),null!=e.buckets&&(this.buckets=e.buckets),null!=e.timePlayed&&(this.timePlayed=e.timePlayed),null!=e.bitratePlayed&&(this.bitratePlayed=e.bitratePlayed),null!=e.adTracking&&(this.adTracking=e.adTracking),null!=e.metric&&(this.metric=e.metric),null!=e.lastEventTime&&(this.lastEventTime=e.lastEventTime),null!=e.firstForPlayer&&(this.firstForPlayer=e.firstForPlayer),null!=e.firstForRootContent&&(this.firstForRootContent=e.firstForRootContent),null!=e.firstForVideo&&(this.firstForVideo=e.firstForVideo),null!=e.bufferType&&(this.bufferType=e.bufferType),null!=e.bitrateTransition&&(this.bitrateTransition=e.bitrateTransition),null!=e.bitratesAvailable&&(this.bitratesAvailable=e.bitratesAvailable),null!=e.sharing&&(this.sharing=e.sharing),null!=e.payPerView&&(this.payPerView=e.payPerView),null!=e.sasAuthorize&&(this.sasAuthorize=e.sasAuthorize),null!=e.sasAuthorizeV2&&(this.sasAuthorizeV2=e.sasAuthorizeV2),null!=e.autoplay&&(this.autoplay=e.autoplay),null!=e.customEvent&&(this.customEvent=e.customEvent),null!=e.personalizationBucketInfo&&(this.personalizationBucketInfo=e.personalizationBucketInfo),null!=e.reportingIdIndexToPlayheadPositionMillis&&(this.reportingIdIndexToPlayheadPositionMillis=e.reportingIdIndexToPlayheadPositionMillis),null!=e.playthroughPercent&&(this.playthroughPercent=e.playthroughPercent),null!=e.seqnum&&(this.seqnum=e.seqnum))},Ooyala.Logging.PlayerEvent.prototype={},Ooyala.Logging.PlayerEvent.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 1:if(i==Ooyala.Thrift.Type.BYTE){var a=e.readByte();this.reportingIdIndex=a.value}else e.skip(i);break;case 11:if(i==Ooyala.Thrift.Type.LIST){var r;this.reportingIdIndices=[];(d=e.readListBegin()).etype,r=d.size;for(var s=0;s<r;++s){var o;o=(a=e.readByte()).value,this.reportingIdIndices.push(o)}e.readListEnd()}else e.skip(i);break;case 2:if(i==Ooyala.Thrift.Type.BYTE){a=e.readByte();this.eventType=a.value}else e.skip(i);break;case 3:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.param1=a.value}else e.skip(i);break;case 4:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.param2=a.value}else e.skip(i);break;case 5:i==Ooyala.Thrift.Type.STRUCT?(this.download=new Ooyala.Logging.DownloadStats,this.download.read(e)):e.skip(i);break;case 7:i==Ooyala.Thrift.Type.STRUCT?(this.chunkFailover=new Ooyala.Logging.ChunkFailoverInfo,this.chunkFailover.read(e)):e.skip(i);break;case 8:i==Ooyala.Thrift.Type.STRUCT?(this.playhead=new Ooyala.Logging.PlayheadStatus,this.playhead.read(e)):e.skip(i);break;case 9:i==Ooyala.Thrift.Type.STRUCT?(this.cvinfo=new Ooyala.Logging.CvObjectClickInfo,this.cvinfo.read(e)):e.skip(i);break;case 10:i==Ooyala.Thrift.Type.STRUCT?(this.DEPRECATED_adClick=new Ooyala.AdsLogging.AdClick,this.DEPRECATED_adClick.read(e)):e.skip(i);break;case 12:i==Ooyala.Thrift.Type.STRUCT?(this.buckets=new Ooyala.Logging.WatchedBuckets,this.buckets.read(e)):e.skip(i);break;case 13:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.timePlayed=a.value}else e.skip(i);break;case 14:i==Ooyala.Thrift.Type.STRUCT?(this.bitratePlayed=new Ooyala.Logging.BitratePlayed,this.bitratePlayed.read(e)):e.skip(i);break;case 15:i==Ooyala.Thrift.Type.STRUCT?(this.adTracking=new Ooyala.AdsLogging.AdTracking,this.adTracking.read(e)):e.skip(i);break;case 16:i==Ooyala.Thrift.Type.STRUCT?(this.metric=new Ooyala.MetricsLogging.Metric,this.metric.read(e)):e.skip(i);break;case 6:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.lastEventTime=a.value}else e.skip(i);break;case 17:if(i==Ooyala.Thrift.Type.BOOL){a=e.readBool();this.firstForPlayer=a.value}else e.skip(i);break;case 18:if(i==Ooyala.Thrift.Type.BOOL){a=e.readBool();this.firstForRootContent=a.value}else e.skip(i);break;case 19:if(i==Ooyala.Thrift.Type.BOOL){a=e.readBool();this.firstForVideo=a.value}else e.skip(i);break;case 20:if(i==Ooyala.Thrift.Type.BYTE){a=e.readByte();this.bufferType=a.value}else e.skip(i);break;case 21:i==Ooyala.Thrift.Type.STRUCT?(this.bitrateTransition=new Ooyala.Logging.BitrateTransition,this.bitrateTransition.read(e)):e.skip(i);break;case 22:if(i==Ooyala.Thrift.Type.LIST){var l;this.bitratesAvailable=[];(d=e.readListBegin()).etype,l=d.size;for(var c=0;c<l;++c){var u;u=(a=e.readI16()).value,this.bitratesAvailable.push(u)}e.readListEnd()}else e.skip(i);break;case 23:i==Ooyala.Thrift.Type.STRUCT?(this.sharing=new Ooyala.Logging.Sharing,this.sharing.read(e)):e.skip(i);break;case 24:i==Ooyala.Thrift.Type.STRUCT?(this.payPerView=new Ooyala.Logging.PayPerView,this.payPerView.read(e)):e.skip(i);break;case 25:i==Ooyala.Thrift.Type.STRUCT?(this.sasAuthorize=new Ooyala.Logging.SasAuthorize,this.sasAuthorize.read(e)):e.skip(i);break;case 26:i==Ooyala.Thrift.Type.STRUCT?(this.sasAuthorizeV2=new Ooyala.Logging.SasAuthorizeV2,this.sasAuthorizeV2.read(e)):e.skip(i);break;case 28:if(i==Ooyala.Thrift.Type.BOOL){a=e.readBool();this.autoplay=a.value}else e.skip(i);break;case 29:i==Ooyala.Thrift.Type.STRUCT?(this.customEvent=new Ooyala.CustomEventsLogging.CustomEvent,this.customEvent.read(e)):e.skip(i);break;case 30:i==Ooyala.Thrift.Type.STRUCT?(this.personalizationBucketInfo=new Ooyala.Logging.PersonalizationBucketInfo,this.personalizationBucketInfo.read(e)):e.skip(i);break;case 31:if(i==Ooyala.Thrift.Type.MAP){var d,h;this.reportingIdIndexToPlayheadPositionMillis={};(d=e.readMapBegin()).ktype,d.vtype,h=d.size;for(var A=0;A<h;++A){key42=0,val43=0;a=e.readByte();key42=a.value;a=e.readI32();val43=a.value,this.reportingIdIndexToPlayheadPositionMillis[key42]=val43}e.readMapEnd()}else e.skip(i);break;case 32:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.playthroughPercent=a.value}else e.skip(i);break;case 33:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.seqnum=a.value}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.Logging.PlayerEvent.prototype.write=function(e){if(e.writeStructBegin("PlayerEvent"),null!=this.reportingIdIndex&&(e.writeFieldBegin("reportingIdIndex",Ooyala.Thrift.Type.BYTE,1),e.writeByte(this.reportingIdIndex),e.writeFieldEnd()),null!=this.reportingIdIndices){e.writeFieldBegin("reportingIdIndices",Ooyala.Thrift.Type.LIST,11),e.writeListBegin(Ooyala.Thrift.Type.BYTE,this.reportingIdIndices.length);for(var t=0;t<this.reportingIdIndices.length;t++){var i=this.reportingIdIndices[t];e.writeByte(i)}e.writeListEnd(),e.writeFieldEnd()}if(null!=this.eventType&&(e.writeFieldBegin("eventType",Ooyala.Thrift.Type.BYTE,2),e.writeByte(this.eventType),e.writeFieldEnd()),null!=this.param1&&(e.writeFieldBegin("param1",Ooyala.Thrift.Type.STRING,3),e.writeString(this.param1),e.writeFieldEnd()),null!=this.param2&&(e.writeFieldBegin("param2",Ooyala.Thrift.Type.STRING,4),e.writeString(this.param2),e.writeFieldEnd()),null!=this.download&&(e.writeFieldBegin("download",Ooyala.Thrift.Type.STRUCT,5),this.download.write(e),e.writeFieldEnd()),null!=this.chunkFailover&&(e.writeFieldBegin("chunkFailover",Ooyala.Thrift.Type.STRUCT,7),this.chunkFailover.write(e),e.writeFieldEnd()),null!=this.playhead&&(e.writeFieldBegin("playhead",Ooyala.Thrift.Type.STRUCT,8),this.playhead.write(e),e.writeFieldEnd()),null!=this.cvinfo&&(e.writeFieldBegin("cvinfo",Ooyala.Thrift.Type.STRUCT,9),this.cvinfo.write(e),e.writeFieldEnd()),null!=this.DEPRECATED_adClick&&(e.writeFieldBegin("DEPRECATED_adClick",Ooyala.Thrift.Type.STRUCT,10),this.DEPRECATED_adClick.write(e),e.writeFieldEnd()),null!=this.buckets&&(e.writeFieldBegin("buckets",Ooyala.Thrift.Type.STRUCT,12),this.buckets.write(e),e.writeFieldEnd()),null!=this.timePlayed&&(e.writeFieldBegin("timePlayed",Ooyala.Thrift.Type.I32,13),e.writeI32(this.timePlayed),e.writeFieldEnd()),null!=this.bitratePlayed&&(e.writeFieldBegin("bitratePlayed",Ooyala.Thrift.Type.STRUCT,14),this.bitratePlayed.write(e),e.writeFieldEnd()),null!=this.adTracking&&(e.writeFieldBegin("adTracking",Ooyala.Thrift.Type.STRUCT,15),this.adTracking.write(e),e.writeFieldEnd()),null!=this.metric&&(e.writeFieldBegin("metric",Ooyala.Thrift.Type.STRUCT,16),this.metric.write(e),e.writeFieldEnd()),null!=this.lastEventTime&&(e.writeFieldBegin("lastEventTime",Ooyala.Thrift.Type.I32,6),e.writeI32(this.lastEventTime),e.writeFieldEnd()),null!=this.firstForPlayer&&(e.writeFieldBegin("firstForPlayer",Ooyala.Thrift.Type.BOOL,17),e.writeBool(this.firstForPlayer),e.writeFieldEnd()),null!=this.firstForRootContent&&(e.writeFieldBegin("firstForRootContent",Ooyala.Thrift.Type.BOOL,18),e.writeBool(this.firstForRootContent),e.writeFieldEnd()),null!=this.firstForVideo&&(e.writeFieldBegin("firstForVideo",Ooyala.Thrift.Type.BOOL,19),e.writeBool(this.firstForVideo),e.writeFieldEnd()),null!=this.bufferType&&(e.writeFieldBegin("bufferType",Ooyala.Thrift.Type.BYTE,20),e.writeByte(this.bufferType),e.writeFieldEnd()),null!=this.bitrateTransition&&(e.writeFieldBegin("bitrateTransition",Ooyala.Thrift.Type.STRUCT,21),this.bitrateTransition.write(e),e.writeFieldEnd()),null!=this.bitratesAvailable){e.writeFieldBegin("bitratesAvailable",Ooyala.Thrift.Type.LIST,22),e.writeListBegin(Ooyala.Thrift.Type.I16,this.bitratesAvailable.length);for(var n=0;n<this.bitratesAvailable.length;n++){var a=this.bitratesAvailable[n];e.writeI16(a)}e.writeListEnd(),e.writeFieldEnd()}if(null!=this.sharing&&(e.writeFieldBegin("sharing",Ooyala.Thrift.Type.STRUCT,23),this.sharing.write(e),e.writeFieldEnd()),null!=this.payPerView&&(e.writeFieldBegin("payPerView",Ooyala.Thrift.Type.STRUCT,24),this.payPerView.write(e),e.writeFieldEnd()),null!=this.sasAuthorize&&(e.writeFieldBegin("sasAuthorize",Ooyala.Thrift.Type.STRUCT,25),this.sasAuthorize.write(e),e.writeFieldEnd()),null!=this.sasAuthorizeV2&&(e.writeFieldBegin("sasAuthorizeV2",Ooyala.Thrift.Type.STRUCT,26),this.sasAuthorizeV2.write(e),e.writeFieldEnd()),null!=this.autoplay&&(e.writeFieldBegin("autoplay",Ooyala.Thrift.Type.BOOL,28),e.writeBool(this.autoplay),e.writeFieldEnd()),null!=this.customEvent&&(e.writeFieldBegin("customEvent",Ooyala.Thrift.Type.STRUCT,29),this.customEvent.write(e),e.writeFieldEnd()),null!=this.personalizationBucketInfo&&(e.writeFieldBegin("personalizationBucketInfo",Ooyala.Thrift.Type.STRUCT,30),this.personalizationBucketInfo.write(e),e.writeFieldEnd()),null!=this.reportingIdIndexToPlayheadPositionMillis){e.writeFieldBegin("reportingIdIndexToPlayheadPositionMillis",Ooyala.Thrift.Type.MAP,31);var r=0;for(key in this.reportingIdIndexToPlayheadPositionMillis)this.reportingIdIndexToPlayheadPositionMillis.hasOwnProperty(key)&&r++;for(var s in e.writeMapBegin(Ooyala.Thrift.Type.BYTE,Ooyala.Thrift.Type.I32,r),this.reportingIdIndexToPlayheadPositionMillis){var o=this.reportingIdIndexToPlayheadPositionMillis[s];e.writeByte(s),e.writeI32(o)}e.writeMapEnd(),e.writeFieldEnd()}null!=this.playthroughPercent&&(e.writeFieldBegin("playthroughPercent",Ooyala.Thrift.Type.I32,32),e.writeI32(this.playthroughPercent),e.writeFieldEnd()),null!=this.seqnum&&(e.writeFieldBegin("seqnum",Ooyala.Thrift.Type.I32,33),e.writeI32(this.seqnum),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()},Ooyala.Logging.User=function(e){this.country="",this.region="",this.county="",this.city="",this.lat=0,this.lon=0,this.clientIP="",this.dmaCode=0,this.pmsaCode=0,this.source=0,this.cookie="",null!=e&&(null!=e.country&&(this.country=e.country),null!=e.region&&(this.region=e.region),null!=e.county&&(this.county=e.county),null!=e.city&&(this.city=e.city),null!=e.lat&&(this.lat=e.lat),null!=e.lon&&(this.lon=e.lon),null!=e.clientIP&&(this.clientIP=e.clientIP),null!=e.dmaCode&&(this.dmaCode=e.dmaCode),null!=e.pmsaCode&&(this.pmsaCode=e.pmsaCode),null!=e.source&&(this.source=e.source),null!=e.cookie&&(this.cookie=e.cookie))},Ooyala.Logging.User.prototype={},Ooyala.Logging.User.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 1:if(i==Ooyala.Thrift.Type.STRING){var a=e.readString();this.country=a.value}else e.skip(i);break;case 2:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.region=a.value}else e.skip(i);break;case 3:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.county=a.value}else e.skip(i);break;case 4:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.city=a.value}else e.skip(i);break;case 6:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.lat=a.value}else e.skip(i);break;case 7:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.lon=a.value}else e.skip(i);break;case 8:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.clientIP=a.value}else e.skip(i);break;case 9:if(i==Ooyala.Thrift.Type.I16){a=e.readI16();this.dmaCode=a.value}else e.skip(i);break;case 10:if(i==Ooyala.Thrift.Type.I16){a=e.readI16();this.pmsaCode=a.value}else e.skip(i);break;case 11:if(i==Ooyala.Thrift.Type.BYTE){a=e.readByte();this.source=a.value}else e.skip(i);break;case 12:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.cookie=a.value}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.Logging.User.prototype.write=function(e){e.writeStructBegin("User"),null!=this.country&&(e.writeFieldBegin("country",Ooyala.Thrift.Type.STRING,1),e.writeString(this.country),e.writeFieldEnd()),null!=this.region&&(e.writeFieldBegin("region",Ooyala.Thrift.Type.STRING,2),e.writeString(this.region),e.writeFieldEnd()),null!=this.county&&(e.writeFieldBegin("county",Ooyala.Thrift.Type.STRING,3),e.writeString(this.county),e.writeFieldEnd()),null!=this.city&&(e.writeFieldBegin("city",Ooyala.Thrift.Type.STRING,4),e.writeString(this.city),e.writeFieldEnd()),null!=this.lat&&(e.writeFieldBegin("lat",Ooyala.Thrift.Type.I32,6),e.writeI32(this.lat),e.writeFieldEnd()),null!=this.lon&&(e.writeFieldBegin("lon",Ooyala.Thrift.Type.I32,7),e.writeI32(this.lon),e.writeFieldEnd()),null!=this.clientIP&&(e.writeFieldBegin("clientIP",Ooyala.Thrift.Type.STRING,8),e.writeString(this.clientIP),e.writeFieldEnd()),null!=this.dmaCode&&(e.writeFieldBegin("dmaCode",Ooyala.Thrift.Type.I16,9),e.writeI16(this.dmaCode),e.writeFieldEnd()),null!=this.pmsaCode&&(e.writeFieldBegin("pmsaCode",Ooyala.Thrift.Type.I16,10),e.writeI16(this.pmsaCode),e.writeFieldEnd()),null!=this.source&&(e.writeFieldBegin("source",Ooyala.Thrift.Type.BYTE,11),e.writeByte(this.source),e.writeFieldEnd()),null!=this.cookie&&(e.writeFieldBegin("cookie",Ooyala.Thrift.Type.STRING,12),e.writeString(this.cookie),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()},Ooyala.Logging.PlayerLogEntry=function(e){this.version=1,this.user=new Ooyala.Logging.User,this.logTime=0,this.ipaddr="",this.userAgent="",this.logServer="",this.userTime=0,this.userTimezone=0,this.guid="",this.country="",this.documentUrl="",this.authenticationTime=0,this.reportingIds=[],this.reportingIdDescriptors=[],this.tags=[],this.timezoneIds=[],this.clientStat="",this.events=[],this.adSpots=[],this.providerReportingIdIndex=0,this.source=0,this.rootContentReportingIdIndex=0,this.playerEmbedType=0,this.flashCookieAge=0,this.isUntrustedDocUrl=!1,this.bucketInfo="",this.customEvents=[],this.accountId="",this.variationIds=[],this.playerBrandingId="",this.sessionStartTimeMillis=0,this.randomSessionSeed=0,this.logTimeMillis=0,this.userTimeMillis=0,null!=e&&(null!=e.version&&(this.version=e.version),null!=e.user&&(this.user=e.user),null!=e.logTime&&(this.logTime=e.logTime),null!=e.ipaddr&&(this.ipaddr=e.ipaddr),null!=e.userAgent&&(this.userAgent=e.userAgent),null!=e.logServer&&(this.logServer=e.logServer),null!=e.userTime&&(this.userTime=e.userTime),null!=e.userTimezone&&(this.userTimezone=e.userTimezone),null!=e.guid&&(this.guid=e.guid),null!=e.country&&(this.country=e.country),null!=e.documentUrl&&(this.documentUrl=e.documentUrl),null!=e.authenticationTime&&(this.authenticationTime=e.authenticationTime),null!=e.reportingIds&&(this.reportingIds=e.reportingIds),null!=e.reportingIdDescriptors&&(this.reportingIdDescriptors=e.reportingIdDescriptors),null!=e.tags&&(this.tags=e.tags),null!=e.timezoneIds&&(this.timezoneIds=e.timezoneIds),null!=e.clientStat&&(this.clientStat=e.clientStat),null!=e.events&&(this.events=e.events),null!=e.adSpots&&(this.adSpots=e.adSpots),null!=e.providerReportingIdIndex&&(this.providerReportingIdIndex=e.providerReportingIdIndex),null!=e.source&&(this.source=e.source),null!=e.rootContentReportingIdIndex&&(this.rootContentReportingIdIndex=e.rootContentReportingIdIndex),null!=e.playerEmbedType&&(this.playerEmbedType=e.playerEmbedType),null!=e.flashCookieAge&&(this.flashCookieAge=e.flashCookieAge),null!=e.isUntrustedDocUrl&&(this.isUntrustedDocUrl=e.isUntrustedDocUrl),null!=e.bucketInfo&&(this.bucketInfo=e.bucketInfo),null!=e.customEvents&&(this.customEvents=e.customEvents),null!=e.accountId&&(this.accountId=e.accountId),null!=e.variationIds&&(this.variationIds=e.variationIds),null!=e.playerBrandingId&&(this.playerBrandingId=e.playerBrandingId),null!=e.sessionStartTimeMillis&&(this.sessionStartTimeMillis=e.sessionStartTimeMillis),null!=e.randomSessionSeed&&(this.randomSessionSeed=e.randomSessionSeed),null!=e.logTimeMillis&&(this.logTimeMillis=e.logTimeMillis),null!=e.userTimeMillis&&(this.userTimeMillis=e.userTimeMillis))},Ooyala.Logging.PlayerLogEntry.prototype={},Ooyala.Logging.PlayerLogEntry.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 1:if(i==Ooyala.Thrift.Type.BYTE){var a=e.readByte();this.version=a.value}else e.skip(i);break;case 21:i==Ooyala.Thrift.Type.STRUCT?(this.user=new Ooyala.Logging.User,this.user.read(e)):e.skip(i);break;case 2:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.logTime=a.value}else e.skip(i);break;case 3:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.ipaddr=a.value}else e.skip(i);break;case 16:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.userAgent=a.value}else e.skip(i);break;case 22:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.logServer=a.value}else e.skip(i);break;case 8:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.userTime=a.value}else e.skip(i);break;case 9:if(i==Ooyala.Thrift.Type.I16){a=e.readI16();this.userTimezone=a.value}else e.skip(i);break;case 4:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.guid=a.value}else e.skip(i);break;case 5:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.country=a.value}else e.skip(i);break;case 6:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.documentUrl=a.value}else e.skip(i);break;case 7:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.authenticationTime=a.value}else e.skip(i);break;case 10:if(i==Ooyala.Thrift.Type.LIST){var r;this.reportingIds=[];(I=e.readListBegin()).etype,r=I.size;for(var s=0;s<r;++s){var o;o=(a=e.readString()).value,this.reportingIds.push(o)}e.readListEnd()}else e.skip(i);break;case 20:if(i==Ooyala.Thrift.Type.LIST){var l;this.reportingIdDescriptors=[];(I=e.readListBegin()).etype,l=I.size;for(var c=0;c<l;++c){var u=null;(u=new Ooyala.Logging.ReportingIdDescriptor).read(e),this.reportingIdDescriptors.push(u)}e.readListEnd()}else e.skip(i);break;case 24:if(i==Ooyala.Thrift.Type.LIST){var d;this.tags=[];(I=e.readListBegin()).etype,d=I.size;for(var h=0;h<d;++h){var A;A=(a=e.readString()).value,this.tags.push(A)}e.readListEnd()}else e.skip(i);break;case 12:if(i==Ooyala.Thrift.Type.LIST){var E;this.timezoneIds=[];(I=e.readListBegin()).etype,E=I.size;for(var p=0;p<E;++p){var f;f=(a=e.readI32()).value,this.timezoneIds.push(f)}e.readListEnd()}else e.skip(i);break;case 13:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.clientStat=a.value}else e.skip(i);break;case 11:if(i==Ooyala.Thrift.Type.LIST){var T;this.events=[];(I=e.readListBegin()).etype,T=I.size;for(var g=0;g<T;++g){var y=null;(y=new Ooyala.Logging.PlayerEvent).read(e),this.events.push(y)}e.readListEnd()}else e.skip(i);break;case 14:if(i==Ooyala.Thrift.Type.LIST){var m;this.adSpots=[];(I=e.readListBegin()).etype,m=I.size;for(var _=0;_<m;++_){var S=null;(S=new Ooyala.AdsLogging.AdSpot).read(e),this.adSpots.push(S)}e.readListEnd()}else e.skip(i);break;case 17:if(i==Ooyala.Thrift.Type.BYTE){a=e.readByte();this.providerReportingIdIndex=a.value}else e.skip(i);break;case 34:if(i==Ooyala.Thrift.Type.BYTE){a=e.readByte();this.source=a.value}else e.skip(i);break;case 18:if(i==Ooyala.Thrift.Type.BYTE){a=e.readByte();this.rootContentReportingIdIndex=a.value}else e.skip(i);break;case 15:if(i==Ooyala.Thrift.Type.BYTE){a=e.readByte();this.playerEmbedType=a.value}else e.skip(i);break;case 19:if(i==Ooyala.Thrift.Type.I32){a=e.readI32();this.flashCookieAge=a.value}else e.skip(i);break;case 23:if(i==Ooyala.Thrift.Type.BOOL){a=e.readBool();this.isUntrustedDocUrl=a.value}else e.skip(i);break;case 25:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.bucketInfo=a.value}else e.skip(i);break;case 26:if(i==Ooyala.Thrift.Type.LIST){var O;this.customEvents=[];(I=e.readListBegin()).etype,O=I.size;for(var b=0;b<O;++b){var v=null;(v=new Ooyala.CustomEventsLogging.CustomEvent).read(e),this.customEvents.push(v)}e.readListEnd()}else e.skip(i);break;case 27:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.accountId=a.value}else e.skip(i);break;case 28:if(i==Ooyala.Thrift.Type.LIST){var I,N;this.variationIds=[];(I=e.readListBegin()).etype,N=I.size;for(var D=0;D<N;++D){var C;C=(a=e.readI32()).value,this.variationIds.push(C)}e.readListEnd()}else e.skip(i);break;case 29:if(i==Ooyala.Thrift.Type.STRING){a=e.readString();this.playerBrandingId=a.value}else e.skip(i);break;case 30:if(i==Ooyala.Thrift.Type.I64){a=e.readI64();this.sessionStartTimeMillis=a.value}else e.skip(i);break;case 31:if(i==Ooyala.Thrift.Type.I64){a=e.readI64();this.randomSessionSeed=a.value}else e.skip(i);break;case 32:if(i==Ooyala.Thrift.Type.I64){a=e.readI64();this.logTimeMillis=a.value}else e.skip(i);break;case 33:if(i==Ooyala.Thrift.Type.I64){a=e.readI64();this.userTimeMillis=a.value}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.Logging.PlayerLogEntry.prototype.write=function(e){if(e.writeStructBegin("PlayerLogEntry"),null!=this.version&&(e.writeFieldBegin("version",Ooyala.Thrift.Type.BYTE,1),e.writeByte(this.version),e.writeFieldEnd()),null!=this.user&&(e.writeFieldBegin("user",Ooyala.Thrift.Type.STRUCT,21),this.user.write(e),e.writeFieldEnd()),null!=this.logTime&&(e.writeFieldBegin("logTime",Ooyala.Thrift.Type.I32,2),e.writeI32(this.logTime),e.writeFieldEnd()),null!=this.ipaddr&&(e.writeFieldBegin("ipaddr",Ooyala.Thrift.Type.STRING,3),e.writeString(this.ipaddr),e.writeFieldEnd()),null!=this.userAgent&&(e.writeFieldBegin("userAgent",Ooyala.Thrift.Type.STRING,16),e.writeString(this.userAgent),e.writeFieldEnd()),null!=this.logServer&&(e.writeFieldBegin("logServer",Ooyala.Thrift.Type.STRING,22),e.writeString(this.logServer),e.writeFieldEnd()),null!=this.userTime&&(e.writeFieldBegin("userTime",Ooyala.Thrift.Type.I32,8),e.writeI32(this.userTime),e.writeFieldEnd()),null!=this.userTimezone&&(e.writeFieldBegin("userTimezone",Ooyala.Thrift.Type.I16,9),e.writeI16(this.userTimezone),e.writeFieldEnd()),null!=this.guid&&(e.writeFieldBegin("guid",Ooyala.Thrift.Type.STRING,4),e.writeString(this.guid),e.writeFieldEnd()),null!=this.country&&(e.writeFieldBegin("country",Ooyala.Thrift.Type.STRING,5),e.writeString(this.country),e.writeFieldEnd()),null!=this.documentUrl&&(e.writeFieldBegin("documentUrl",Ooyala.Thrift.Type.STRING,6),e.writeString(this.documentUrl),e.writeFieldEnd()),null!=this.authenticationTime&&(e.writeFieldBegin("authenticationTime",Ooyala.Thrift.Type.I32,7),e.writeI32(this.authenticationTime),e.writeFieldEnd()),null!=this.reportingIds){e.writeFieldBegin("reportingIds",Ooyala.Thrift.Type.LIST,10),e.writeListBegin(Ooyala.Thrift.Type.STRING,this.reportingIds.length);for(var t=0;t<this.reportingIds.length;t++){var i=this.reportingIds[t];e.writeString(i)}e.writeListEnd(),e.writeFieldEnd()}if(null!=this.reportingIdDescriptors){e.writeFieldBegin("reportingIdDescriptors",Ooyala.Thrift.Type.LIST,20),e.writeListBegin(Ooyala.Thrift.Type.STRUCT,this.reportingIdDescriptors.length);for(var n=0;n<this.reportingIdDescriptors.length;n++){this.reportingIdDescriptors[n].write(e)}e.writeListEnd(),e.writeFieldEnd()}if(null!=this.tags){e.writeFieldBegin("tags",Ooyala.Thrift.Type.LIST,24),e.writeListBegin(Ooyala.Thrift.Type.STRING,this.tags.length);for(var a=0;a<this.tags.length;a++){var r=this.tags[a];e.writeString(r)}e.writeListEnd(),e.writeFieldEnd()}if(null!=this.timezoneIds){e.writeFieldBegin("timezoneIds",Ooyala.Thrift.Type.LIST,12),e.writeListBegin(Ooyala.Thrift.Type.I32,this.timezoneIds.length);for(var s=0;s<this.timezoneIds.length;s++){var o=this.timezoneIds[s];e.writeI32(o)}e.writeListEnd(),e.writeFieldEnd()}if(null!=this.clientStat&&(e.writeFieldBegin("clientStat",Ooyala.Thrift.Type.STRING,13),e.writeString(this.clientStat),e.writeFieldEnd()),null!=this.events){e.writeFieldBegin("events",Ooyala.Thrift.Type.LIST,11),e.writeListBegin(Ooyala.Thrift.Type.STRUCT,this.events.length);for(var l=0;l<this.events.length;l++){this.events[l].write(e)}e.writeListEnd(),e.writeFieldEnd()}if(null!=this.adSpots){e.writeFieldBegin("adSpots",Ooyala.Thrift.Type.LIST,14),e.writeListBegin(Ooyala.Thrift.Type.STRUCT,this.adSpots.length);for(var c=0;c<this.adSpots.length;c++){this.adSpots[c].write(e)}e.writeListEnd(),e.writeFieldEnd()}if(null!=this.providerReportingIdIndex&&(e.writeFieldBegin("providerReportingIdIndex",Ooyala.Thrift.Type.BYTE,17),e.writeByte(this.providerReportingIdIndex),e.writeFieldEnd()),null!=this.source&&(e.writeFieldBegin("source",Ooyala.Thrift.Type.BYTE,34),e.writeByte(this.source),e.writeFieldEnd()),null!=this.rootContentReportingIdIndex&&(e.writeFieldBegin("rootContentReportingIdIndex",Ooyala.Thrift.Type.BYTE,18),e.writeByte(this.rootContentReportingIdIndex),e.writeFieldEnd()),null!=this.playerEmbedType&&(e.writeFieldBegin("playerEmbedType",Ooyala.Thrift.Type.BYTE,15),e.writeByte(this.playerEmbedType),e.writeFieldEnd()),null!=this.flashCookieAge&&(e.writeFieldBegin("flashCookieAge",Ooyala.Thrift.Type.I32,19),e.writeI32(this.flashCookieAge),e.writeFieldEnd()),null!=this.isUntrustedDocUrl&&(e.writeFieldBegin("isUntrustedDocUrl",Ooyala.Thrift.Type.BOOL,23),e.writeBool(this.isUntrustedDocUrl),e.writeFieldEnd()),null!=this.bucketInfo&&(e.writeFieldBegin("bucketInfo",Ooyala.Thrift.Type.STRING,25),e.writeString(this.bucketInfo),e.writeFieldEnd()),null!=this.customEvents){e.writeFieldBegin("customEvents",Ooyala.Thrift.Type.LIST,26),e.writeListBegin(Ooyala.Thrift.Type.STRUCT,this.customEvents.length);for(var u=0;u<this.customEvents.length;u++){this.customEvents[u].write(e)}e.writeListEnd(),e.writeFieldEnd()}if(null!=this.accountId&&(e.writeFieldBegin("accountId",Ooyala.Thrift.Type.STRING,27),e.writeString(this.accountId),e.writeFieldEnd()),null!=this.variationIds){e.writeFieldBegin("variationIds",Ooyala.Thrift.Type.LIST,28),e.writeListBegin(Ooyala.Thrift.Type.I32,this.variationIds.length);for(var d=0;d<this.variationIds.length;d++){var h=this.variationIds[d];e.writeI32(h)}e.writeListEnd(),e.writeFieldEnd()}null!=this.playerBrandingId&&(e.writeFieldBegin("playerBrandingId",Ooyala.Thrift.Type.STRING,29),e.writeString(this.playerBrandingId),e.writeFieldEnd()),null!=this.sessionStartTimeMillis&&(e.writeFieldBegin("sessionStartTimeMillis",Ooyala.Thrift.Type.I64,30),e.writeI64(this.sessionStartTimeMillis),e.writeFieldEnd()),null!=this.randomSessionSeed&&(e.writeFieldBegin("randomSessionSeed",Ooyala.Thrift.Type.I64,31),e.writeI64(this.randomSessionSeed),e.writeFieldEnd()),null!=this.logTimeMillis&&(e.writeFieldBegin("logTimeMillis",Ooyala.Thrift.Type.I64,32),e.writeI64(this.logTimeMillis),e.writeFieldEnd()),null!=this.userTimeMillis&&(e.writeFieldBegin("userTimeMillis",Ooyala.Thrift.Type.I64,33),e.writeI64(this.userTimeMillis),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()},"undefined"==typeof Ooyala&&(Ooyala={}),void 0===Ooyala.Logging&&(Ooyala.Logging={}),Ooyala.Logging.Session=function(e){this.log_entries=[],null!=e&&null!=e.log_entries&&(this.log_entries=e.log_entries)},Ooyala.Logging.Session.prototype={},Ooyala.Logging.Session.prototype.read=function(e){for(var t=e.readStructBegin();;){var i=((t=e.readFieldBegin()).fname,t.ftype),n=t.fid;if(i==Ooyala.Thrift.Type.STOP)break;switch(n){case 1:if(i==Ooyala.Thrift.Type.LIST){var a,r;this.log_entries=[];(a=e.readListBegin()).etype,r=a.size;for(var s=0;s<r;++s){var o=null;(o=new Ooyala.Logging.PlayerLogEntry).read(e),this.log_entries.push(o)}e.readListEnd()}else e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},Ooyala.Logging.Session.prototype.write=function(e){if(e.writeStructBegin("Session"),null!=this.log_entries){e.writeFieldBegin("log_entries",Ooyala.Thrift.Type.LIST,1),e.writeListBegin(Ooyala.Thrift.Type.STRUCT,this.log_entries.length);for(var t=0;t<this.log_entries.length;t++){this.log_entries[t].write(e)}e.writeListEnd(),e.writeFieldEnd()}e.writeFieldStop(),e.writeStructEnd()},Ooyala.Util.createNamespace("Ooyala.ThirdParty.CRC32"),b=function(e,t){e=function(e){e=e.replace(/\x0d\x0a/g,"\n");for(var t="",i=0;i<e.length;i++){var n=e.charCodeAt(i);n<128?t+=String.fromCharCode(n):n>127&&n<2048?(t+=String.fromCharCode(n>>6|192),t+=String.fromCharCode(63&n|128)):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128),t+=String.fromCharCode(63&n|128))}return t}(e),void 0===t&&(t=0);var i=0;t^=-1;for(var n=0,a=e.length;n<a;n++)i=255&(t^e.charCodeAt(n)),t=t>>>8^"0x"+"00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D".substr(9*i,8);return-1^t},Ooyala.ThirdParty.CRC32.computeCrc=function(e){var t=b(e);return 2*(t>>>1)+(1&t)},Ooyala.Util.createNamespace("Ooyala.ThirdParty.SHA256"),function(){function e(e,t){var i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function t(e,t){return e>>>t|e<<32-t}function i(e,t){return e>>>t}function n(e,t,i){return e&t^~e&i}function a(e,t,i){return e&t^e&i^t&i}function r(e){return t(e,2)^t(e,13)^t(e,22)}function s(e){return t(e,6)^t(e,11)^t(e,25)}function o(e){return t(e,7)^t(e,18)^i(e,3)}function l(e){return t(e,17)^t(e,19)^i(e,10)}function c(t,i){var c,u,d,h,A,E,p,f,T,g,y=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),m=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),_=new Array(64);t[i>>5]|=128<<24-i%32,t[15+(i+64>>9<<4)]=i;for(var S=0;S<t.length;S+=16){c=m[0],u=m[1],d=m[2],h=m[3],A=m[4],E=m[5],p=m[6],f=m[7];for(var O=0;O<64;O++)_[O]=O<16?t[O+S]:e(e(e(l(_[O-2]),_[O-7]),o(_[O-15])),_[O-16]),T=e(e(e(e(f,s(A)),n(A,E,p)),y[O]),_[O]),g=e(r(c),a(c,u,d)),f=p,p=E,E=A,A=e(h,T),h=d,d=u,u=c,c=e(T,g);m[0]=e(c,m[0]),m[1]=e(u,m[1]),m[2]=e(d,m[2]),m[3]=e(h,m[3]),m[4]=e(A,m[4]),m[5]=e(E,m[5]),m[6]=e(p,m[6]),m[7]=e(f,m[7])}return m}function u(e){for(var t=Array(),i=(1<<d)-1,n=0;n<e.length*d;n+=d)t[n>>5]|=(e.charCodeAt(n/d)&i)<<24-n%32;return t}var d=8,h=0;Ooyala.ThirdParty.SHA256.sha256ToHexString=function(e){return function(e){for(var t=h?"0123456789ABCDEF":"0123456789abcdef",i="",n=0;n<4*e.length;n++)i+=t.charAt(e[n>>2]>>8*(3-n%4)+4&15)+t.charAt(e[n>>2]>>8*(3-n%4)&15);return i}(c(u(e),e.length*d))},Ooyala.ThirdParty.SHA256.sha256ToBase64String=function(e){return function(e){for(var t="",i=0;i<4*e.length;i+=3)for(var n=(e[i>>2]>>8*(3-i%4)&255)<<16|(e[i+1>>2]>>8*(3-(i+1)%4)&255)<<8|e[i+2>>2]>>8*(3-(i+2)%4)&255,a=0;a<4;a++)t+=8*i+6*a>32*e.length?"":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6*(3-a)&63);return t}(c(u(e),e.length*d))},Ooyala.ThirdParty.SHA256.sha256ToString=function(e){return function(e){for(var t="",i=(1<<d)-1,n=0;n<32*e.length;n+=d)t+=String.fromCharCode(e[n>>5]>>>24-n%32&i);return t}(c(u(e),e.length*d))}}(),Ooyala.Constants={LOGGING_SERVER_DOMAIN:("https:"==window.location.protocol?"https:":"http:")+"//l.ooyala.com",IFRAME_PINGER_PATH:"/analytics/iframe.html",SAS_URL:("https:"==window.location.protocol?"https:":"http:")+"//player.ooyala.com/sas/analytics",HIGH_PRIORITY_EVENT:0,LOW_PRIORITY_EVENT:1,HIGH_PRIORITY_EVENT_FLUSH_INTERVAL_MS:1e3,LOW_PRIORITY_EVENT_FLUSH_INTERVAL_MS:1e4,MIN_DURATION_FOR_STEP_BACKOFF:24e4},Ooyala.Util.createNamespace("Ooyala.Pinger"),Ooyala.Pinger.ALIVE_MESSAGE="&handshake!",Ooyala.Pinger.COOKIE_NAME="gi",Ooyala.Pinger.DAYS_TO_LIVE=7300,Ooyala.Pinger._numCompare=function(e,t){return-1},Ooyala.Pinger._getQueryStringParams=function(){for(var e={},t=window.location.search.split(/\?|&|\//),i=0;i<t.length;i++)if(t[i]){var n=t[i].split(/=/);e[n[0]]=n[1]}return e},Ooyala.Pinger.RegisterMessageListener=function(e){window.addEventListener?window.addEventListener("message",e,!1):window.attachEvent("onmessage",e)},Ooyala.Pinger.RemoveMessageListener=function(e){window.removeEventListener?window.removeEventListener("message",e):window.detachEvent("onmessage",e)},Ooyala.Pinger.GuidManager=function(){var e=Ooyala.Pinger._getQueryStringParams(),t="true"===e.doNotTrack||!0===e.doNotTrack?Ooyala.Util.OoyalaStorage.TYPE.LOCAL_MEMORY:Ooyala.Util.OoyalaStorage.TYPE.COOKIES,i=new Ooyala.Util.OoyalaStorage(t,{name:Ooyala.Pinger.COOKIE_NAME,daysToLive:Ooyala.Pinger.DAYS_TO_LIVE,compareFn:Ooyala.Pinger._numCompare});return{getOrCreateGuid:function(){var e=i.get("guid");return null==e&&(e=function(){var e=(new Date).getTime(),t=window.navigator.userAgent,n=Math.random(),a=e+t+(n>0?n.toString(16).split(".")[1]:"00000000"),r=Ooyala.ThirdParty.SHA256.sha256ToBase64String(a);return i.set("guid",r),r}()),e}}},Ooyala.Pinger.Listener=function(e){this._reconstructor=new Ooyala.Pinger.ChunkReconstructor(e)},Ooyala.Pinger.Listener.POLL_INTERVAL=500,Ooyala.Pinger.Listener.prototype={_pollAndSend:function(){var e=window.location.hash;e.length>1&&(window.location.hash="",this._reconstructor.push(e.substring(1))),window.setTimeout(Ooyala.Util.bind(this._pollAndSend,this),Ooyala.Pinger.Listener.POLL_INTERVAL)},_messageHandler:function(e){this._reconstructor.push(e.data)},start:function(){if(window.postMessage){var e=new Ooyala.Pinger.GuidManager;try{parent.postMessage(Ooyala.Pinger.ALIVE_MESSAGE+";"+e.getOrCreateGuid(),"*")}catch(e){}Ooyala.Pinger.RegisterMessageListener(Ooyala.Util.bind(this._messageHandler,this))}else this._pollAndSend()}},Ooyala.Pinger.ChunkReconstructor=function(e){this._receiver=e,this._reset()},Ooyala.Pinger.ChunkReconstructor.prototype={_parseChunk:function(e){var t=e.split("~");if(3!=t.length)return null;var i={};if(i.data=t[0],i.id=parseInt(t[1]),i.count=parseInt(t[2]),i.id<=0||i.count<=0||i.id>i.count)throw"Bad chunk ID or total chunk count in ping chunk.";return i},_reset:function(){this._data="",this._chunksSeen=0,this._totalChunks=0},_handleChunk:function(e){if(0==this._totalChunks){if(e.id>1)return;return 1==e.count?void this._receiver.sendPing(e.data):(this._chunksSeen=1,this._totalChunks=e.count,void(this._data=e.data))}if(e.count==this._totalChunks&&e.id==this._chunksSeen+1){if(e.count==e.id){var t=this._data+e.data;return this._reset(),void this._receiver.sendPing(t)}return this._chunksSeen+=1,void(this._data+=e.data)}this._reset(),this._handleChunk(e)},push:function(e){var t=this._parseChunk(e);null!==t&&this._handleChunk(t)}},Ooyala.Pinger.ServerPinger=function(e){this._pingUrl=e},Ooyala.Pinger.MAX_XVERIFY_HEADER_LENGTH=7500,Ooyala.Pinger.ServerPinger.prototype={sendPing:function(e){if(e.length>Ooyala.Pinger.MAX_XVERIFY_HEADER_LENGTH)throw"Ping (length = "+e.length+") is too long.";var t=Ooyala.Util.Http.createXMLHttpRequest();t.open("POST",this._pingUrl,!0),t.setRequestHeader("X-Verify",e),t.send(null)}},Ooyala.Util.createNamespace("Ooyala.Pinger"),Ooyala.Pinger.OuterPinger=function(e,t){this._pingerIFrame=null,this._pingerIFrameWindow=null,this._browserCompatible=!0,this._onReadyFn=e,this._doNotTrack=t,this._initializePingerIFrame(),this._bufferedChunks=[],this._scheduleFlushInMillis(Ooyala.Pinger.OuterPinger.SEND_INTERVAL_MILLIS)},Ooyala.Pinger.OuterPinger.IFRAME_BASE_URL=Ooyala.Constants.LOGGING_SERVER_DOMAIN+Ooyala.Constants.IFRAME_PINGER_PATH,Ooyala.Pinger.OuterPinger.MAX_MESSAGE_LENGTH=7500,Ooyala.Pinger.OuterPinger.MAX_CHUNKS_PER_MESSAGE=2,Ooyala.Pinger.OuterPinger.MAX_CHUNK_LENGTH=Math.ceil(Ooyala.Pinger.OuterPinger.MAX_MESSAGE_LENGTH/Ooyala.Pinger.OuterPinger.MAX_CHUNKS_PER_MESSAGE),Ooyala.Pinger.OuterPinger.SEND_INTERVAL_MILLIS=1e3,Ooyala.Pinger.OuterPinger.prototype={sendMessage:function(e){if(-1!==window.navigator.userAgent.indexOf("Netgem")){if(e.length>7500)throw"Ping (length = "+e.length+") is too long.";var t=Ooyala.Util.Http.createXMLHttpRequest();t.open("POST",Ooyala.Constants.LOGGING_SERVER_DOMAIN+"/verify",!0),t.setRequestHeader("X-Verify",e),t.send(null)}else if(this._browserCompatible){var i=this._convertMessageToChunks(e);this._bufferedChunks=this._bufferedChunks.concat(i)}},_convertMessageToChunks:function(e){if(e.length<=Ooyala.Pinger.OuterPinger.MAX_MESSAGE_LENGTH){for(var t=[],i=Math.ceil(e.length/Ooyala.Pinger.OuterPinger.MAX_CHUNK_LENGTH),n=0;n<i;n++){var a=n*Ooyala.Pinger.OuterPinger.MAX_CHUNK_LENGTH,r=e.substr(a,Ooyala.Pinger.OuterPinger.MAX_CHUNK_LENGTH)+"~"+(n+1).toString()+"~"+i.toString();t.push(r)}return t}throw new Error("Message (length = "+e.length+") is too long.")},_flushNextChunk:function(){var e=this._bufferedChunks.length>0?this._bufferedChunks.shift():null;e&&(window.postMessage?this._pingerIFrameWindow.postMessage(e,Ooyala.Constants.LOGGING_SERVER_DOMAIN):this._pingerIFrame.setAttribute("src",Ooyala.Pinger.OuterPinger.IFRAME_BASE_URL+"#"+e)),this._scheduleFlushInMillis(Ooyala.Pinger.OuterPinger.SEND_INTERVAL_MILLIS)},_scheduleFlushInMillis:function(e){setTimeout(Ooyala.Util.bind(this._flushNextChunk,this),e)},_getUnusedId:function(e){for(var t=0;document.getElementById(e+t.toString());)t+=1;return e+t.toString()},_initializePingerIFrame:function(){var e=this._getUnusedId("OoyalaPingerIFrame");if(window.postMessage)this._pingerIFrame=document.createElement("iframe"),this._setUpHiddenIFrame(this._pingerIFrame,e),document.body.appendChild(this._pingerIFrame),this._pingerIFrameWindow=window.frames[e],Ooyala.Pinger.RegisterMessageListener(Ooyala.Util.bind(this._handleHandshake,this));else if(-1!==window.navigator.userAgent.indexOf("Netgem"))document.write("<IFRAME id='"+e+"'></IFRAME>"),this._pingerIFrame=document.getElementById(e),this._setUpHiddenIFrame(this._pingerIFrame,e),this._pingerIFrameWindow=null,this._onReadyFn&&this._onReadyFn();else if(window.ActiveXObject){var t=new ActiveXObject("htmlfile");t.open();var i=this._getIframeUrl();t.write("<html><body><iframe id='"+e+"' src='"+i+"'></iframe></body></html>"),t.close(),this._pingerIFrame=t.getElementById(e),this._pingerIFrameWindow=null,this._pingerIFrameDocument=t,this._onReadyFn&&this._onReadyFn()}else this._browserCompatible=!1},_getIframeUrl:function(){var e=Ooyala.Pinger.OuterPinger.IFRAME_BASE_URL;return this._doNotTrack&&(e+="?doNotTrack=true"),e},_handleHandshake:function(e){if(e&&"string"==typeof e.data){var t=e.data.split(";");2==t.length&&t[0]==Ooyala.Pinger.ALIVE_MESSAGE&&this._onReadyFn&&this._onReadyFn(t[1])}},_setUpHiddenIFrame:function(e,t){e.setAttribute("name",t),e.setAttribute("id",t);var i=this._getIframeUrl();e.setAttribute("src",i),e.style.visibility="hidden",e.style["border-style"]="none",e.style.width="1px",e.style.height="1px",e.style.position="absolute",e.style.top="-5px",e.style.left="-5px"}},Ooyala.PlaytimeTracker=function(e,t,i,n){this._lastPlayheadPosition=0,this._totalTimeBetweenPlayheadUpdates=Ooyala.PlaytimeTracker.INITIAL_ESTIMATE_FOR_TIME_BETWEEN_PLAYHEAD_UPDATES,this._numPlayheadUpdateDataPoints=1,this._bucketsWatched=Ooyala.Util.Enumerable.map(Array(Ooyala.PlaytimeTracker.NUM_BUCKETS),function(){return!1}),this._numBucketsWatched=0,this._updateWasSeek=!1,this._lastBucketWatchedIndex=0,this._duration=e,this._reportTimePlayedHandle=t,this._reportBucketWatchedHandle=i,this._reportPercentageWatchedHandle=n},Ooyala.PlaytimeTracker.INITIAL_ESTIMATE_FOR_TIME_BETWEEN_PLAYHEAD_UPDATES=250,Ooyala.PlaytimeTracker.MILLIS_BETWEEN_PLAYHEAD_UPDATES_FOR_SEEK=5e3,Ooyala.PlaytimeTracker.PER_MILLE_PER_BUCKET=25,Ooyala.PlaytimeTracker.NUM_BUCKETS=1e3/Ooyala.PlaytimeTracker.PER_MILLE_PER_BUCKET,Ooyala.PlaytimeTracker.prototype={processPlayheadUpdate:function(e){var t=this._computeTimeDiff(e),i=this._getRangeBucketsWatched(e),n=i[0],a=i[1];this._lastPlayheadPosition=e,t>0&&this._reportTimePlayedHandle(t,e);for(var r=0,s=n;s<a;s++){this._bucketsWatched[s]||(this._bucketsWatched[s]=!0,r++);var o=this._bucketToMinMaxPerMille(s);this._reportBucketWatchedHandle.call(void 0,o[0],o[1])}if(r>0){var l=this._numBucketsWatched*Ooyala.PlaytimeTracker.PER_MILLE_PER_BUCKET+1;this._numBucketsWatched+=r;var c=this._numBucketsWatched*Ooyala.PlaytimeTracker.PER_MILLE_PER_BUCKET;this._reportPercentageWatchedHandle.call(void 0,l,c)}},_computeTimeDiff:function(e){if(0==e)return this._updateWasSeek=!0,0;if(e-this._lastPlayheadPosition>Ooyala.PlaytimeTracker.MILLIS_BETWEEN_PLAYHEAD_UPDATES_FOR_SEEK||e<this._lastPlayheadPosition)return this._updateWasSeek=!0,this._estimatedTimeBetweenPlayheadUpdates();var t=e-this._lastPlayheadPosition;return this._updateEstimatedTimeBetweenPlayheadUpdates(t),this._updateWasSeek=!1,t},_getRangeBucketsWatched:function(e){var t=[0,0];if(0==e)return t;if(this._updateWasSeek){var i=this._timeToBucket(e);-1==i&&i++,t=[i,i+1]}else{t=[this._timeToBucket(this._lastPlayheadPosition)+1,this._timeToBucket(e)+1]}return t},_timeToBucket:function(e){if(e<0)return 0;if(e>=this._duration)return Ooyala.PlaytimeTracker.NUM_BUCKETS-1;var t=parseInt(e/this._duration*1e3);return this._perMilleToBucket(t)},_perMilleToBucket:function(e){return 0==e?-1:parseInt((e-1)/Ooyala.PlaytimeTracker.PER_MILLE_PER_BUCKET)},_bucketToMinMaxPerMille:function(e){return[e*Ooyala.PlaytimeTracker.PER_MILLE_PER_BUCKET+1,(e+1)*Ooyala.PlaytimeTracker.PER_MILLE_PER_BUCKET]},_estimatedTimeBetweenPlayheadUpdates:function(){return this._totalTimeBetweenPlayheadUpdates/this._numPlayheadUpdateDataPoints},_updateEstimatedTimeBetweenPlayheadUpdates:function(e){this._totalTimeBetweenPlayheadUpdates+=e,this._numPlayheadUpdateDataPoints+=1}},Ooyala.HistoryTracker=function(){var e=Ooyala.Util.OoyalaStorage.TYPE.LOCAL_MEMORY;this._storage=new Ooyala.Util.OoyalaStorage(e,{name:Ooyala.HistoryTracker.COOKIE_NAME,daysToLive:Ooyala.HistoryTracker.DAYS_TO_LIVE,compareFn:Ooyala.HistoryTracker.timestampCompare,deDupe:!0})},Ooyala.HistoryTracker.COOKIE_NAME="Ooyala",Ooyala.HistoryTracker.DAYS_TO_LIVE=365,Ooyala.HistoryTracker.timestampCompare=function(e,t){return(null==e?0:parseFloat(e))-(null==t?0:parseFloat(t))},Ooyala.HistoryTracker.prototype={getAndSetLastEventTime:function(e,t){if(null==e||null==t)return null;var i=e+"|"+t,n=this._storage.get(i),a=null==n?null:parseFloat(n);return this._storage.set(i,this._currentTimestamp()),a},_currentTimestamp:function(){return Math.round((new Date).getTime()/1e3)}},Ooyala.Reporter=function(e,t){if(!e)throw"No Provider Code was provided to the Reporter";this._id=Ooyala.Reporter._next_id.toString(),Ooyala.Reporter._next_id+=1,Ooyala.Reporter._map[this._id]=this,this._pCode=e,this._playerLoaded=!1,this._resetState(null);var i=t&&t.accountId;"string"!=typeof i&&(i=null);var n=t&&t.guid;"string"!=typeof n&&(n=null);var a=t&&t.documentUrl;"string"!=typeof a&&(a=null);var r=t&&t.playerBrandingId;"string"!=typeof r&&(r=null);var s=t&&t.source;typeof s!==Ooyala.Logging.SourceType.OOYALA_PLAYER&&s!==Ooyala.Logging.SourceType.STANDALONE_ANALYTICS&&(s=Ooyala.Logging.SourceType.OOYALA_PLAYER);var o=t&&t.doNotTrack;this._logger=new Ooyala.ThriftLogger(this._pCode,i,n,a,r,s,o),this._historyTracker=new Ooyala.HistoryTracker,this._logger.wait("SAS_Response"),this._requestSasInformation();var l=this._createEventWithLastEventTime(Ooyala.Logging.PlayerEventType.PLAYER_LOAD,[Ooyala.ThriftLogger.GLOBAL_REPORTING_ID_INDEX,Ooyala.ThriftLogger.PROVIDER_REPORTING_ID_INDEX]);this._logger.logPlayerEvents(l),this._playerLoaded=!0,this._adSpot=new Ooyala.AdsLogging.AdSpot,this._adInfo=new Object;var c=t&&t.tags;c&&this.setTags(c),this._playthroughReportFrequency=25,this._nextPlaythroughToReport=this._playthroughReportFrequency},Ooyala.Reporter._next_id=0,Ooyala.Reporter._map={},Ooyala.Reporter._NULL_PLAYER_EVENT_FIELDS=["bitratePlayed","download","chunkFailover","playhead","cvinfo","DEPRECATED_adClick","buckets","adTracking","metric","bitrateTransition","sharing","payPerView","sasAuthorize","sasAuthorizeV2","personalizationBucketInfo","customEvent","reportingIdIndex","lastEventTime","timePlayed","firstForPlayer","param1","param2","firstForRootContent","firstForVideo","bufferType","bitratesAvailable","reportingIdIndexToPlayheadPositionMillis","autoplay","playthroughPercent","seqnum"],Ooyala.Reporter.AdSource={OOYALA:1,DOUBLECLICK:2,LIGHTNINGCAST:3,YUME:4,TREMOR:5,ADSENSE:6,TV2N:7,OAS:8,ADTECH:9,SCANSCOUT:10,ATLAS:11,FREEWHEEL:12,OPENX:13,LIVERAIL:14,VAST:15,ADIFY:16,DART_ENTERPRISE:17,CBSI:18,BRIGHTROLL:19,UNKNOWN:20,ADAPTV:21,VIDEOPLAZA:22,SPOTXCHANGE:23},Ooyala.Reporter.AdPositionType={PREROLL:1,MIDROLL:2,POSTROLL:3,OVERLAY:4,ENDSLATE:5,STANDALONE:6},Ooyala.Reporter.AdFormat={VIDEO:1,OVERLAY:2,ENDCAP:3,COMPANION:4},Ooyala.Reporter.AdFailureReason={LOAD_ERROR:1,LOAD_TIMEOUT:2,LOAD_IO_ERROR:3,PREFETCH_ERROR:4,PREFETCH_TIMEOUT:5,PREFETCH_IO_ERROR:6,PLAY_ERROR:7,PLAY_TIMEOUT:8,PLAY_IO_ERROR:9,INVALID_PLAYER_CONFIGURATION:10,INVALID_AD_CONFIGURATION:11,AD_NOT_FOUND:12,EXCEPTION:13,AD_ERROR:14,INVALID_AD_RESPONSE:15,CONNECTION_ERROR:16,BUFFERING_TIMEOUT:17,POLICY_RESTRICTION:18},Ooyala.Reporter.prototype={reportPlayerLoad:function(){!window.Ooyala||this._playerLoaded},initializeVideo:function(e,t){window.Ooyala&&(this._resetState(e),this._logger.initializeVideo(e),this._reportGeneralEvent(Ooyala.Logging.PlayerEventType.DISPLAY,this._reportedDisplays,this._firstDisplayForPlayer),this._firstDisplayForPlayer=!1,this._nextPlaythroughToReport=this._playthroughReportFrequency,void 0!==t&&this.setVideoDuration(t))},setVideoDuration:function(e){this._resetPlayTimeTracker(e),this._backoff=Ooyala.Backoff.getAppropriateBackoff(e),this._logger.setBackoff(this._backoff)},reportPlayRequested:function(){window.Ooyala&&(this._reportGeneralEvent(Ooyala.Logging.PlayerEventType.PLAY,this._reportedPlays,this._firstPlayForPlayer),this._firstPlayForPlayer=!1)},reportPlayStarted:function(){this.reportPlayRequested()},reportVideoStarted:function(){window.Ooyala&&(this._reportGeneralEvent(Ooyala.Logging.PlayerEventType.VIDEO_START,this._reportedVideoStarts,this._firstVideoStartForPlayer),this._firstVideoStartForPlayer=!1)},reportPlayheadUpdate:function(e){window.Ooyala&&(this._backoff.setPlayheadPosition(e),this._tracker.processPlayheadUpdate(e),e>0&&(this._reportGeneralEvent(Ooyala.Logging.PlayerEventType.PLAY,this._reportedPlays,this._firstPlayForPlayer),this._reportGeneralEvent(Ooyala.Logging.PlayerEventType.VIDEO_START,this._reportedVideoStarts,this._firstVideoStartForPlayer)))},reportReplay:function(){if(window.Ooyala){var e=[Ooyala.ThriftLogger.GLOBAL_REPORTING_ID_INDEX,Ooyala.ThriftLogger.PROVIDER_REPORTING_ID_INDEX,Ooyala.ThriftLogger.VIDEO_REPORTING_ID_INDEX],t=this._createEventWithLastEventTime(Ooyala.Logging.PlayerEventType.REPLAY,e);this._logger.logPlayerEvents(t)}},setAdSource:function(e,t,i){if(("number"!=typeof e||e<=0||e>Object.keys(Ooyala.Reporter.AdSource).length)&&(e=Ooyala.Reporter.AdSource.UNKNOWN),this._adSpot.adSource=e,e===Ooyala.Reporter.AdSource.OOYALA){if(!t||"string"!=typeof t||32!==t.length)throw"No valid embed code specified";if(this._adInfo.ooyalaEmbedCode=t,i&&"string"!=typeof i)throw"Invalid Ad Click URL";this._adInfo.clickUrl=i}},setAdFormat:function(e){if("number"!=typeof e||e<=0||e>Object.keys(Ooyala.Reporter.AdFormat).length)throw"Invalid Ad Format";this._adSpot.adFormat=e},setAdPositionType:function(e){if("number"!=typeof e||e<=0||e>Object.keys(Ooyala.Reporter.AdPositionType).length)throw"Invalid Ad Position Type";this._adSpot.adPositionType=e},setAdPosition:function(e){if("number"!=typeof e)throw"Invalid Ad Position";this._adSpot.adPositionInMillis=e},setAdSourceContentId:function(e){if("number"!=typeof e)throw"Ad Source Content ID should be a number.";this._adSpot.adSourceContentId=e},setAdTagUrl:function(e){if("string"!=typeof e)throw"Invalid Tag URL";this._adSpot.tagUrl=e},setAdId:function(e){if("number"!=typeof e)throw"Ad ID should be a number.";this._adSpot.adId=e},setAdPassthroughParameters:function(e){if("object"!=typeof e)throw"Passthrough params should be given as an object.";this._adSpot.passthroughParameters=e},resetAdInformation:function(){window.Ooyala&&this._resetAdState()},reportAdRequest:function(){this._reportAdEvent(Ooyala.Logging.PlayerEventType.AD_REQUESTED,new Ooyala.AdsLogging.AdTracking)},reportAdImpression:function(){this._adInfo.adImpression=!0,this._reportAdEvent(Ooyala.Logging.PlayerEventType.AD_IMPRESSION,new Ooyala.AdsLogging.AdTracking)},reportAdClickToSite:function(){var e=this._clickTracking();1===this._adSpot.adSource&&(e.clickUrl=this._adInfo.clickUrl),this._reportAdEvent(Ooyala.Logging.PlayerEventType.AD_CLICK,e)},reportAdClickToVideo:function(){var e=this._clickTracking();e.clickToVideo=!0,this._reportAdEvent(Ooyala.Logging.PlayerEventType.AD_CLICK,e)},reportAdPlaythrough:function(e,t){if("number"!=typeof e||"number"!=typeof t)throw"Playhead time and total time should be numbers.";t<=0||(e>=.25*t&&this._reportPlaythroughIfNotReported(25),e>=.5*t&&this._reportPlaythroughIfNotReported(50),e>=.75*t&&this._reportPlaythroughIfNotReported(75),e>=t&&this._reportPlaythroughIfNotReported(100))},reportAdPlayFailure:function(e){if(e&&("number"!=typeof e||e<=0||e>Object.keys(Ooyala.Reporter.AdFailureReason).length))throw"Invalid Ad Failure Reason";var t=new Ooyala.AdsLogging.AdTracking;this._adInfo.adImpression&&(t.failureAfterAdImpression=!0),e&&(t.failureReason=e),this._reportAdEvent(Ooyala.Logging.PlayerEventType.AD_PLAY_FAILED,t)},reportDiscoveryImpression:function(e,t){if(window.Ooyala){if(e.constructor!==Array)throw"The relatedVideos argument must be an Array";if(0===e.length)throw"The relatedVideos array must not be empty";if(!e[0].bucket_info)throw"The relatedVideos[0] element does not have a bucket_info";var i,n=[Ooyala.ThriftLogger.GLOBAL_REPORTING_ID_INDEX,Ooyala.ThriftLogger.PROVIDER_REPORTING_ID_INDEX,Ooyala.ThriftLogger.VIDEO_REPORTING_ID_INDEX],a=this._createPlayerEvent(Ooyala.Logging.PlayerEventType.RELATED_VIDEOS_DISPLAYED,n);i=t?this._updateBucketInfoWithCustomData(e[0].bucket_info,t):e[0].bucket_info,a.personalizationBucketInfo=new Ooyala.Logging.PersonalizationBucketInfo,a.personalizationBucketInfo.bucketInfo=i,this._logger.logPlayerEvents([a])}},reportDiscoveryClick:function(e,t){if(window.Ooyala){if(!e.bucket_info)throw"The clickedVideo argument does not have a bucket_info";if(!e.embed_code)throw"The clickedVideo argument does not have an embed_code";var i,n=[Ooyala.ThriftLogger.GLOBAL_REPORTING_ID_INDEX];i=e.pcode?this._logger.getOrCreateExtraPcodeId(e.pcode):Ooyala.ThriftLogger.PROVIDER_REPORTING_ID_INDEX,n.push(i);var a=this._logger.getOrCreateExtraEmbedCodeId(e.embed_code,i);n.push(a);var r,s=this._createPlayerEvent(Ooyala.Logging.PlayerEventType.RELATED_VIDEO_SELECTED,n);r=t?this._updateBucketInfoWithCustomData(e.bucket_info,t):e.bucket_info,s.personalizationBucketInfo=new Ooyala.Logging.PersonalizationBucketInfo,s.personalizationBucketInfo.bucketInfo=r,this._logger.logPlayerEvents([s])}},getSessionStartTimeMillis:function(){return this._logger.getSessionStartTimeMillis()},getRandomSessionSeed:function(){return this._logger.getRandomSessionSeed()},getAndIncrementNextEventSeqnum:function(){return this._logger.getAndIncrementNextEventSeqnum()},_reportAdEvent:function(e,t){if(window.Ooyala){var i=[Ooyala.ThriftLogger.GLOBAL_REPORTING_ID_INDEX,Ooyala.ThriftLogger.PROVIDER_REPORTING_ID_INDEX,Ooyala.ThriftLogger.VIDEO_REPORTING_ID_INDEX];if(1===this._adSpot.adSource){var n=this._logger.addReportingId(this._adInfo.ooyalaEmbedCode);i.push(n)}var a=this._createPlayerEvent(e,i);a.adTracking=t,a.adTracking.adSpotIndex=this._logger.getOrCreateAdSpotIndex(this._adSpot),this._adSpot.parentContentReportingIdIndex=Ooyala.ThriftLogger.VIDEO_REPORTING_ID_INDEX,this._logger.logPlayerEvents([a])}},_clickTracking:function(){var e=new Ooyala.AdsLogging.AdTracking;return this._adInfo.clicked?e.dupClick=!0:this._adInfo.clicked=!0,e},_reportPlaythroughIfNotReported:function(e){if(this._adInfo.playthrough||(this._adInfo.playthrough=new Array(4)),!this._adInfo.playthrough[e/25-1]){this._adInfo.playthrough[e/25-1]=!0;var t=new Ooyala.AdsLogging.AdTracking;t.playThroughCompletion=e,this._reportAdEvent(Ooyala.Logging.PlayerEventType.AD_PLAYTHROUGH,t)}},setTags:function(e){this._logger.removeAllTags();for(var t=0;t<e.length;t++)this._logger.addTag(e[t]);return!0},getTags:function(){return this._logger.getTags()},_reportTimePlayed:function(e,t){var i=this._createPlayerEvent(Ooyala.Logging.PlayerEventType.TOTAL_TIME_PLAYED,[Ooyala.ThriftLogger.GLOBAL_REPORTING_ID_INDEX,Ooyala.ThriftLogger.PROVIDER_REPORTING_ID_INDEX,Ooyala.ThriftLogger.VIDEO_REPORTING_ID_INDEX]);i.timePlayed=e,i.reportingIdIndexToPlayheadPositionMillis={},i.reportingIdIndexToPlayheadPositionMillis[Ooyala.ThriftLogger.VIDEO_REPORTING_ID_INDEX]=t,this._logger.logPlayerEvents([i])},_reportBucketWatched:function(e,t){for(this._reportBucketWatchedEvent(Ooyala.Logging.PlayerEventType.BUCKETS_WATCHED,[Ooyala.ThriftLogger.VIDEO_REPORTING_ID_INDEX],e,t);t/10>this._nextPlaythroughToReport||100==this._nextPlaythroughToReport&&t/10>95;)this._reportPlaythrough(this._nextPlaythroughToReport,[Ooyala.ThriftLogger.VIDEO_REPORTING_ID_INDEX]),this._nextPlaythroughToReport+=this._playthroughReportFrequency},_reportPercentageWatched:function(e,t){this._reportBucketWatchedEvent(Ooyala.Logging.PlayerEventType.PERCENTAGE_WATCHED,[Ooyala.ThriftLogger.VIDEO_REPORTING_ID_INDEX],e,t)},_reportBucketWatchedEvent:function(e,t,i,n){var a=this._createPlayerEvent(e,t);a.buckets=new Ooyala.Logging.WatchedBuckets,a.buckets.minPerMille=i,a.buckets.maxPerMille=n,this._logger.logPlayerEvents([a])},_reportPlaythrough:function(e,t){var i=this._createPlayerEvent(Ooyala.Logging.PlayerEventType.PLAYTHROUGH_PERCENT,t);i.playthroughPercent=e,this._logger.logPlayerEvents([i])},_filterAndUpdateAlreadyReported:function(e,t){return Ooyala.Util.Enumerable.select(e,function(e){return!t[e]&&(t[e]=!0,!0)})},_reportGeneralEvent:function(e,t,i){var n=[],a=this._filterAndUpdateAlreadyReported([Ooyala.ThriftLogger.VIDEO_REPORTING_ID_INDEX],t);return a.length>0&&(a.push(Ooyala.ThriftLogger.GLOBAL_REPORTING_ID_INDEX),a.push(Ooyala.ThriftLogger.PROVIDER_REPORTING_ID_INDEX),n=this._createEventWithLastEventTime(e,a),i&&Ooyala.Util.Enumerable.foreach(n,function(e){e.firstForPlayer=!0})),this._logger.logPlayerEvents(n),n},_createEventWithLastEventTime:function(e,t){for(var i=[],n=0;n<t.length;n++){var a=this._createPlayerEvent(e,t[n]),r=this._getReportingCode(t[n]);a.lastEventTime=this._historyTracker.getAndSetLastEventTime(r,e),i.push(a)}return i},_getReportingCode:function(e){switch(e){case Ooyala.ThriftLogger.VIDEO_REPORTING_ID_INDEX:return this._embedCode;case Ooyala.ThriftLogger.PROVIDER_REPORTING_ID_INDEX:return this._pCode;case Ooyala.ThriftLogger.GLOBAL_REPORTING_ID_INDEX:return Ooyala.ThriftLogger.OOYALA_GLOBAL_ID}return""},_createPlayerEvent:function(e,t){var i=new Ooyala.Logging.PlayerEvent;if(Ooyala.Util.Enumerable.foreach(Ooyala.Reporter._NULL_PLAYER_EVENT_FIELDS,function(e){i[e]=null}),i.eventType=e,-1==t.constructor.toString().indexOf("Array"))i.reportingIdIndices.push(t);else for(var n=0;n<t.length;n++)i.reportingIdIndices.push(t[n]);return i},_resetState:function(e){this._embedCode=e,this._reportedDisplays={},this._firstDisplayForPlayer=!0,this._reportedPlays={},this._firstPlayForPlayer=!0,this._reportedVideoStarts={},this._firstVideoStartForPlayer=!0},_resetPlayTimeTracker:function(e){var t=Ooyala.Util.bind(this._reportTimePlayed,this),i=Ooyala.Util.bind(this._reportBucketWatched,this),n=Ooyala.Util.bind(this._reportPercentageWatched,this);this._tracker=new Ooyala.PlaytimeTracker(e,t,i,n)},_resetAdState:function(){this._adInfo={},this._adSpot=new Ooyala.AdsLogging.AdSpot},_requestSasInformation:function(){var e="id="+this._id+"&pcode="+encodeURIComponent(this._pCode),t=Ooyala.Constants.SAS_URL+"?"+e,i=Ooyala.Util.Http.createXMLHttpRequest();i.open("GET",t,!0),i.onreadystatechange=this._sasHandler,i.send()},_sasHandler:function(e){4==this.readyState&&(200==this.status?Ooyala.Reporter.processSAS(JSON.parse(this.response)):console.log("SAS Analytics Invocation Error: "+this.status))},_setSASInfo:function(e){this._logger.setKey(e.key),this._logger.setTimezoneId(e.timezone),this._logger.setAuthenticationTime(e.authentication_time),this._logger.signal("SAS_Response")},setGeoData:function(e){this._logger.setGeoData(e)},_updateBucketInfoWithCustomData:function(e,t){if(e&&e.length>0&&"2"==e.charAt(0)){var i=JSON.parse(e.substring(1)),n=JSON.parse(window.atob(i.encoded));if(n.custom)for(var a in t)t.hasOwnProperty(a)&&(n.custom[a]=t[a]);else n.custom=t;return i.encoded=window.btoa(JSON.stringify(n)),"2"+JSON.stringify(i)}throw"Not a version 2 bucket_info: "+e}},Ooyala.Reporter.processSAS=function(e){var t=Ooyala.Reporter._map[e.id];t&&t._setSASInfo(e)},Ooyala.Util.createNamespace("Ooyala.Signing"),Ooyala.Signing.getSignature=function(e,t){return Ooyala.ThirdParty.SHA256.sha256ToBase64String(e+t)},Ooyala.Signing.getXVerify=function(e,t){var i=Ooyala.Signing.getSignature(e,t),n=Ooyala.ThirdParty.CRC32.computeCrc(e);return e+"&sig="+i.substr(1,20)+"&crc="+n.toString()},Ooyala.Util.createNamespace("Ooyala.Backoff"),Ooyala.Backoff.getAppropriateBackoff=function(e){return e>Ooyala.Constants.MIN_DURATION_FOR_LINEAR_BACKOFF?new Ooyala.Backoff.StepBackoff(e):new Ooyala.Backoff.NoBackoff},Ooyala.Backoff.StepBackoff=function(e){this._duration=e,this._playheadPosition=0,this.resetBackoffBehavior()},Ooyala.Backoff.StepBackoff.DURATION_FLUSH_FREQUENCY={},Ooyala.Backoff.StepBackoff.DURATION_FLUSH_FREQUENCY[Ooyala.Constants.LOW_PRIORITY_EVENT]=[[5*Ooyala.Constants.MIN_DURATION_FOR_STEP_BACKOFF,18*Ooyala.Constants.LOW_PRIORITY_EVENT_FLUSH_INTERVAL_MS],[2*Ooyala.Constants.MIN_DURATION_FOR_STEP_BACKOFF,6*Ooyala.Constants.LOW_PRIORITY_EVENT_FLUSH_INTERVAL_MS],[Ooyala.Constants.MIN_DURATION_FOR_STEP_BACKOFF,3*Ooyala.Constants.LOW_PRIORITY_EVENT_FLUSH_INTERVAL_MS],[-1/0,Ooyala.Constants.LOW_PRIORITY_EVENT_FLUSH_INTERVAL_MS]],Ooyala.Backoff.StepBackoff.DURATION_FLUSH_FREQUENCY[Ooyala.Constants.HIGH_PRIORITY_EVENT]=[[2*Ooyala.Constants.MIN_DURATION_FOR_STEP_BACKOFF,30*Ooyala.Constants.HIGH_PRIORITY_EVENT_FLUSH_INTERVAL_MS],[Ooyala.Constants.MIN_DURATION_FOR_STEP_BACKOFF,10*Ooyala.Constants.HIGH_PRIORITY_EVENT_FLUSH_INTERVAL_MS],[-1/0,Ooyala.Constants.HIGH_PRIORITY_EVENT_FLUSH_INTERVAL_MS]],Ooyala.Backoff.StepBackoff.prototype={setPlayheadPosition:function(e){this._playheadPosition=e},getFlushInterval:function(e){for(var t=Ooyala.Backoff.StepBackoff.DURATION_FLUSH_FREQUENCY[e],i=this._playheadPosition-this._resetPosition,n=null,a=0;a<t.length;a++){var r=t[a];if(r[0]<i){n=r;break}}return null!==n?n[1]:e==Ooyala.Constants.HIGH_PRIORITY_EVENT?Ooyala.Constants.HIGH_PRIORITY_EVENT_FLUSH_INTERVAL_MS:Ooyala.Constants.LOW_PRIORITY_EVENT_FLUSH_INTERVAL_MS},resetBackoffBehavior:function(){this._resetPosition=this._playheadPosition}},Ooyala.Backoff.NoBackoff=function(){},Ooyala.Backoff.NoBackoff.prototype={setPlayheadPosition:function(e){},resetBackoffBehavior:function(){},getFlushInterval:function(e){return e==Ooyala.Constants.HIGH_PRIORITY_EVENT?Ooyala.Constants.HIGH_PRIORITY_EVENT_FLUSH_INTERVAL_MS:Ooyala.Constants.LOW_PRIORITY_EVENT_FLUSH_INTERVAL_MS}},Ooyala.ThriftLogger=function(e,t,i,n,a,r,s){var o=this._createReportingIdDescriptor(Ooyala.Logging.ReportingIdType.GLOBAL),l=this._createReportingIdDescriptor(Ooyala.Logging.ReportingIdType.PROVIDER);this._reportingIdDescriptors=[o,l],this._reportingIds=[Ooyala.ThriftLogger.OOYALA_GLOBAL_ID,e],this._playerEvents=[],this._totalTimePlayedEvent=null,this._serializer=new Ooyala.Thrift.Serializer,this._logTimer=new Ooyala.LogTimer,this._waitConditions=[],this._documentUrl=n||window.location.href,this._signingKey="",this._backoff=new Ooyala.Backoff.NoBackoff,this._adSpots=[],this._adSpotToIndex=new Object,this._tags=[],this._flushInturruptedByWaitConditions=!1,this._timezoneId=27,this._user=null,this._guid=i,this._accountId=t,this._playerBrandingId=a,this._source=r,this._sessionStartTimeMillis=Math.round((new Date).getTime()),this._randomSessionSeed=Math.round(4503599627370496*Math.random()),this._nextEventSeqnum=1,this.wait("pinger_ready"),this._pinger=new Ooyala.Pinger.OuterPinger(Ooyala.Util.bind(this._onReady,this),s)},Ooyala.ThriftLogger.OOYALA_GLOBAL_ID="o",Ooyala.ThriftLogger.GLOBAL_REPORTING_ID_INDEX=0,Ooyala.ThriftLogger.PROVIDER_REPORTING_ID_INDEX=1,Ooyala.ThriftLogger.VIDEO_REPORTING_ID_INDEX=2,Ooyala.ThriftLogger.ANALYTICS_VERSION=2,Ooyala.ThriftLogger.MAX_PLAYER_EVENTS=42,Ooyala.ThriftLogger.EVENT_PRIORITIES={HIGH:Ooyala.Constants.HIGH_PRIORITY_EVENT,LOW:Ooyala.Constants.LOW_PRIORITY_EVENT},Ooyala.ThriftLogger.HIGH_PRIORITY_EVENT_TYPES=[Ooyala.Logging.PlayerEventType.UNKNOWN,Ooyala.Logging.PlayerEventType.DISPLAY,Ooyala.Logging.PlayerEventType.PLAY,Ooyala.Logging.PlayerEventType.PERCENTAGE_WATCHED,Ooyala.Logging.PlayerEventType.SEEK,Ooyala.Logging.PlayerEventType.REPLAY,Ooyala.Logging.PlayerEventType.PAUSE,Ooyala.Logging.PlayerEventType.BUCKETS_WATCHED,Ooyala.Logging.PlayerEventType.AD_CLICK,Ooyala.Logging.PlayerEventType.AD_IMPRESSION,Ooyala.Logging.PlayerEventType.AD_PLAYTHROUGH,Ooyala.Logging.PlayerEventType.AD_PLAY_FAILED,Ooyala.Logging.PlayerEventType.PLAYER_LOAD,Ooyala.Logging.PlayerEventType.SHARE,Ooyala.Logging.PlayerEventType.PAY_PER_VIEW,Ooyala.Logging.PlayerEventType.SAS_AUTHORIZE,Ooyala.Logging.PlayerEventType.SAS_AUTHORIZE_V2,Ooyala.Logging.PlayerEventType.AD_REQUESTED,Ooyala.Logging.PlayerEventType.AD_MOUSEOVER,Ooyala.Logging.PlayerEventType.VIDEO_START,Ooyala.Logging.PlayerEventType.CUSTOM,Ooyala.Logging.PlayerEventType.RELATED_VIDEO_SELECTED,Ooyala.Logging.PlayerEventType.RELATED_VIDEOS_DISPLAYED],Ooyala.ThriftLogger.LOW_PRIORITY_EVENT_TYPES=[Ooyala.Logging.PlayerEventType.TOTAL_TIME_PLAYED,Ooyala.Logging.PlayerEventType.BITRATE_PLAYED,Ooyala.Logging.PlayerEventType.DOWNLOAD,Ooyala.Logging.PlayerEventType.CHUNK_FAILOVER,Ooyala.Logging.PlayerEventType.BUFFER,Ooyala.Logging.PlayerEventType.CV_INFO,Ooyala.Logging.PlayerEventType.METRIC,Ooyala.Logging.PlayerEventType.BITRATE_TRANSITION,Ooyala.Logging.PlayerEventType.BITRATES_AVAILABLE],Ooyala.ThriftLogger.EVENT_TYPE_TO_PRIORITY=null,Ooyala.ThriftLogger.BUCKETIZED_EVENT_TYPES=[Ooyala.Logging.PlayerEventType.PERCENTAGE_WATCHED,Ooyala.Logging.PlayerEventType.BUCKETS_WATCHED],Ooyala.ThriftLogger._NULL_PLAYER_LOG_ENTRY_FIELDS=["logTime","ipaddr","userAgent","logServer","country","clientStat","adSpots","rootContentReportingIdIndex","flashCookieAge","bucketInfo","accountId","logTimeMillis"],Ooyala.ThriftLogger._NULL_USER_FIELDS=["region","county","city","lat","lon","dmaCode","pmsaCode","cookie","clientIP"],Ooyala.ThriftLogger.prototype={initializeVideo:function(e){if(this._reportingIds.length>=3&&this._reportingIds[Ooyala.ThriftLogger.VIDEO_REPORTING_ID_INDEX]!=e)this.flushEventBufferInAtMostMillis(0),this._reportingIds[Ooyala.ThriftLogger.VIDEO_REPORTING_ID_INDEX]=e;else if(this._reportingIds.length<3){var t=this._createReportingIdDescriptor(Ooyala.Logging.ReportingIdType.VIDEO);t.providerReportingIdIndex=Ooyala.ThriftLogger.PROVIDER_REPORTING_ID_INDEX,this._reportingIdDescriptors.push(t),this._reportingIds.push(e)}this._clearExtraReportingIds()},setBackoff:function(e){this._backoff=e||new Ooyala.Backoff.NoBackoff},getOrCreateExtraPcodeId:function(e){for(var t=-1,i=0;i<this._reportingIds.length;i++)this._reportingIds[i]===e&&(t=i);if(t>=0)return t;var n=this._reportingIds.length;this._reportingIds.push(e);var a=this._createReportingIdDescriptor(Ooyala.Logging.ReportingIdType.PROVIDER);return this._reportingIdDescriptors.push(a),n},getOrCreateExtraEmbedCodeId:function(e,t){for(var i=-1,n=0;n<this._reportingIds.length;n++)this._reportingIds[n]===e&&(i=n);if(i>=0)return i;var a=this._reportingIds.length;this._reportingIds.push(e);var r=this._createReportingIdDescriptor(Ooyala.Logging.ReportingIdType.VIDEO);return r.providerReportingIdIndex=t,this._reportingIdDescriptors.push(r),a},_clearExtraReportingIds:function(){this._reportingIds.length>3&&(this._reportingIds=this._reportingIds.slice(0,3),this._reportingIdDescriptors=this._reportingIdDescriptors.slice(0,3))},getOrCreateAdSpotIndex:function(e){var t=this._adSpotToIndex[e];return t||(this._adSpotToIndex[e]=t=this._adSpots.length,this._adSpots.push(e)),t},addReportingId:function(e){this._reportingIds.push(e);var t=this._createReportingIdDescriptor(Ooyala.Logging.ReportingIdType.VIDEO);return t.providerReportingIdIndex=Ooyala.ThriftLogger.PROVIDER_REPORTING_ID_INDEX,this._reportingIdDescriptors.push(t),this._reportingIds.length-1},logPlayerEvents:function(e){for(var t=0;t<e.length;t++)this._logPlayerEvent(e[t]);this._playerEvents.length>=Ooyala.ThriftLogger.MAX_PLAYER_EVENTS&&this.flushEventBufferInAtMostMillis(0)},flushEventBufferInAtMostMillis:function(e){!e||e<=0?this.flushEventBuffer():this._logTimer.setLogTimeout(Ooyala.Util.bind(this.flushEventBuffer,this),e)},flushEventBuffer:function(){if(0!=this._playerEvents.length){if(this._waitConditions.length>0)return void(this._flushInturruptedByWaitConditions=!0);var e=this._playerEventsToPlayerLogEntry(),t=this._serializer.serialize(e),i=Ooyala.Util.base64Encode(t),n=Ooyala.Signing.getXVerify(i,this._signingKey);this._pinger.sendMessage(n),this._resetPlayerEvents(),this._clearExtraReportingIds()}},arrayIndexOf:function(e,t){for(var i=0;i<e.length;i++)if(e[i]===t)return i;return-1},wait:function(e){this._waitConditions.push(e)},signal:function(e){var t=this.arrayIndexOf(this._waitConditions,e);if(t<0)return!1;var i=this._waitConditions.length-1;return this._waitConditions[t]=this._waitConditions[i],this._waitConditions.pop(),0==this._waitConditions.length&&this._flushInturruptedByWaitConditions&&(this._flushInturruptedByWaitConditions=!1,this.flushEventBuffer()),!0},setKey:function(e){this._signingKey=e},setTimezoneId:function(e){this._timezoneId=e},setAuthenticationTime:function(e){this._authenticationTime=e},setGeoData:function(e){var t=new Ooyala.Logging.User;Ooyala.Util.Enumerable.foreach(Ooyala.ThriftLogger._NULL_USER_FIELDS,function(e){t[e]=null}),t.country=e.country,t.region=e.region,t.state=e.state,t.city=e.city,t.lat=e.latitude,t.lon=e.longitude,t.dmaCode=e.dma,t.source=Ooyala.Logging.UserInfoSource.ENCRYPTED_SAS,this._user=t},addTag:function(e){return!(this.arrayIndexOf(this._tags,e)>=0||(this._tags.push(e),0))},getTags:function(){return[].concat(this._tags)},removeTag:function(e){var t=this.arrayIndexOf(this._tags,e);if(t<0)return!1;var i=this._tags.length-1;return this._tags[t]=this._tags[i],this._tags.pop(),!0},removeAllTags:function(){return this._tags=[],!0},getSessionStartTimeMillis:function(){return this._sessionStartTimeMillis},getRandomSessionSeed:function(){return this._randomSessionSeed},getAndIncrementNextEventSeqnum:function(){var e=this._nextEventSeqnum;return this._nextEventSeqnum+=1,e},_onReady:function(e){this._guid=this._guid||e,this.signal("pinger_ready")},_logPlayerEvent:function(e){switch(e.eventType){case Ooyala.Logging.PlayerEventType.TOTAL_TIME_PLAYED:this._logTotalTimePlayedEvent(e);break;default:this._playerEvents.push(e)}this.flushEventBufferInAtMostMillis(this._playerEventTypeToFlushInterval(e.eventType))},_logTotalTimePlayedEvent:function(e){var t=this._totalTimePlayedEvent;t?(t.timePlayed+=e.timePlayed,t.reportingIdIndexToPlayheadPositionMillis=e.reportingIdIndexToPlayheadPositionMillis):(this._totalTimePlayedEvent=e,this._playerEvents.push(e))},_playerEventTypeToFlushInterval:function(e){Ooyala.ThriftLogger.EVENT_TYPE_TO_PRIORITY||this._initializeEventTypeToPriorityHash();var t=Ooyala.ThriftLogger.EVENT_TYPE_TO_PRIORITY[e]||Ooyala.ThriftLogger.EVENT_PRIORITIES.HIGH;return this._backoff.getFlushInterval(t)},_initializeEventTypeToPriorityHash:function(){if(!Ooyala.ThriftLogger.EVENT_TYPE_TO_PRIORITY){Ooyala.ThriftLogger.EVENT_TYPE_TO_PRIORITY={};for(var e=0;e<Ooyala.ThriftLogger.HIGH_PRIORITY_EVENT_TYPES.length;e++){var t=Ooyala.ThriftLogger.HIGH_PRIORITY_EVENT_TYPES[e];Ooyala.ThriftLogger.EVENT_TYPE_TO_PRIORITY[t]=Ooyala.ThriftLogger.EVENT_PRIORITIES.HIGH}for(e=0;e<Ooyala.ThriftLogger.LOW_PRIORITY_EVENT_TYPES.length;e++){t=Ooyala.ThriftLogger.LOW_PRIORITY_EVENT_TYPES[e];Ooyala.ThriftLogger.EVENT_TYPE_TO_PRIORITY[t]=Ooyala.ThriftLogger.EVENT_PRIORITIES.LOW}}},_compressAllBucketizedEvents:function(e){for(var t=0;t<Ooyala.ThriftLogger.BUCKETIZED_EVENT_TYPES.length;t++){var i=Ooyala.ThriftLogger.BUCKETIZED_EVENT_TYPES[t];e=this._compressBucketizedEventsForType(i,e)}return e},_compressBucketizedEventsForType:function(e,t){if(!this._isBucketizedEventType(e))return t;var i=Ooyala.Util.Enumerable.select(t,function(t){return t.eventType==e});if(!i||i.length<2)return t;i.sort(function(e,t){return e.buckets.minPerMille-t.buckets.minPerMille||e.buckets.maxPerMille-t.buckets.maxPerMille});for(var n=[],a=i.shift(),r=!1;0!=i.length;){var s=i.shift();a.buckets.maxPerMille!=s.buckets.minPerMille-1?(n.push(a),a=s):(a.buckets.maxPerMille=s.buckets.maxPerMille,r=!0)}return r?(n.push(a),t=(t=Ooyala.Util.Enumerable.reject(t,function(t){return t.eventType==e})).concat(n)):t},_isBucketizedEventType:function(e){for(var t=0;t<Ooyala.ThriftLogger.BUCKETIZED_EVENT_TYPES.length;t++)if(e==Ooyala.ThriftLogger.BUCKETIZED_EVENT_TYPES[t])return!0;return!1},_resetPlayerEvents:function(){this._playerEvents=[],this._totalTimePlayedEvent=null},_playerEventsToPlayerLogEntry:function(){var e=new Ooyala.Logging.PlayerLogEntry,t=new Date,i=t.getTimezoneOffset();Ooyala.Util.Enumerable.foreach(Ooyala.ThriftLogger._NULL_PLAYER_LOG_ENTRY_FIELDS,function(t){e[t]=null}),e.user=this._user,e.guid=this._guid,e.playerBrandingId=this._playerBrandingId,e.source=this._source,e.version=Ooyala.ThriftLogger.ANALYTICS_VERSION,e.userTimeMillis=Math.round(t.getTime()),e.userTime=Math.round(e.userTimeMillis/1e3),e.userTimezone=i,e.documentUrl=this._documentUrl,e.authenticationTime=this._authenticationTime,e.reportingIds=this._reportingIds.slice(0),Ooyala.ThriftLogger.VIDEO_REPORTING_ID_INDEX<e.reportingIds.length&&(e.rootContentReportingIdIndex=Ooyala.ThriftLogger.VIDEO_REPORTING_ID_INDEX),e.reportingIdDescriptors=this._reportingIdDescriptors.slice(0),e.timezoneIds=[0],e.tags=this._tags,e.sessionStartTimeMillis=this._sessionStartTimeMillis,e.randomSessionSeed=this._randomSessionSeed,this._accountId&&(e.accountId=this._accountId);for(var n=0;n<this._playerEvents.length;n++){var a=this._playerEvents[n];a.adTracking&&"number"==typeof a.adTracking.adSpotIndex&&(e.adSpots||(e.adSpots=[]),e.adSpots.push(this._adSpots[a.adTracking.adSpotIndex]))}for(;e.timezoneIds.length<e.reportingIds.length;)e.timezoneIds.push(this._timezoneId);e.events=this._compressAllBucketizedEvents(this._playerEvents),e.providerReportingIdIndex=Ooyala.ThriftLogger.PROVIDER_REPORTING_ID_INDEX,e.playerEmbedType=Ooyala.Logging.PlayerEmbedType.EXTERNAL_ANALYTICS,e.isUntrustedDocUrl=!1;for(n=0;n<e.events.length;n++)e.events[n].seqnum=this._nextEventSeqnum,this._nextEventSeqnum+=1;return e},_isPlayerLogEntryValid:function(e){return!!(e.events&&0!=e.events.length&&e.documentUrl&&0!=e.documentUrl.length&&e.reportingIds&&0!=e.reportingIds.length&&e.reportingIdDescriptors&&0!=e.reportingIdDescriptors.length)},_createReportingIdDescriptor:function(e){var t=new Ooyala.Logging.ReportingIdDescriptor;return t.reportingIdType=e,Ooyala.Util.Enumerable.foreach(["providerReportingIdIndex","parentContentIdIndex","syndicationDestinationIdIndex","adSetId"],function(e){t[e]=null}),t}},Ooyala.LogTimer=function(){this._timeoutId=null,this._nextTimeout=null},Ooyala.LogTimer.prototype={setLogTimeout:function(e,t){var i=(new Date).getTime(),n=i+t;if(null!==this._nextTimeout&&n>this._nextTimeout||n<i)return!1;this._clearLogTimer(),this._nextTimeout=n;var a=Ooyala.Util.bind(this._clearTimerAndCallCallback,this,e);return this._timeoutId=setTimeout(a,t),!0},_clearTimerAndCallCallback:function(e){this._clearLogTimer(),e()},_clearLogTimer:function(){null!==this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=null,this._nextTimeout=null)}},global=this,global.Ooyala=Ooyala,global.Ooyala.Reporter=Ooyala.Reporter,global.Ooyala.Reporter.prototype.reportPlayerLoad=Ooyala.Reporter.prototype.reportPlayerLoad,global.Ooyala.Reporter.prototype.initializeVideo=Ooyala.Reporter.prototype.initializeVideo,global.Ooyala.Reporter.prototype.reportPlayheadUpdate=Ooyala.Reporter.prototype.reportPlayheadUpdate,global.Ooyala.Reporter.prototype.reportReplay=Ooyala.Reporter.prototype.reportReplay}(OO,OO.$,OO._),OO.exposeStaticApi("EVENTS",OO.EVENTS),OO.exposeStaticApi("CONSTANTS",OO.CONSTANTS),OO.publicApi.log=OO.log,OO.exposeStaticApi("ERROR",OO.ERROR),OO.exposeStaticApi("STATE",OO.STATE),OO.exposeStaticApi("VERSION",OO.VERSION),OO.exposeStaticApi("VIDEO",OO.VIDEO),OO.publicApi.$=OO.$,OO.publicApi._=OO._,OO.publicApi.__static.apiReady=!0,OO.$(document).ready(function(){OO.publicApi.__static.docReady=!0,OO.tryCallReady()})}()}catch(e){e&&window.console&&window.console.log&&window.console.log(e,e.stack)}
//skin.js-4.40.0
!function a(i,l,s){function u(t,e){if(!l[t]){if(!i[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(c)return c(t,!0);var o=new Error("Cannot find module '"+t+"'");throw o.code="MODULE_NOT_FOUND",o}var r=l[t]={exports:{}};i[t][0].call(r.exports,function(e){return u(i[t][1][e]||e)},r,r.exports,a,i,l,s)}return l[t].exports}for(var c="function"==typeof require&&require,e=0;e<s.length;e++)u(s[e]);return u}({1:[function(e,t,n){t.exports={"Connected to":"Connected to","Learn More":"Learn More","CLOSED CAPTION PREVIEW":"CLOSED CAPTION PREVIEW","Sample Text":"Sample Text",Ad:"Ad","Skip Ad":"Skip Ad",LIVE:"LIVE","GO LIVE":"GO LIVE","CC Options":"Caption options",On:"On",Off:"Off",Discovery:"Discovery","Facebook Unavailable":"Facebook Unavailable","Facebook Success":"Check out this video on Facebook","Twitter Unavailable":"Twitter Unavailable","Twitter Success":"Check out this video on Twitter","Post Title":"Post Successfully","Account Configure":"Please set up your account on device",Discover:"Discover","Up next":"Up next","Video Quality":"Video Quality",Share:"Share","Start at":"Start at",Embed:"Embed",Email:"Email","Check out this video":"I found a video you might be interested in! Check it out: ",To:"To",Subject:"Subject",Message:"Message","name@email.com":"name@email.com","Optional Message":"Optional Message",Send:"Send","RELOAD YOUR SCREEN OR TRY SELECTING A DIFFERENT VIDEO":"RELOAD YOUR SCREEN OR TRY SELECTING A DIFFERENT VIDEO","THIS IS NOT WORKING! :(":"THIS IS NOT WORKING! :(","NETWORK ERROR":"NETWORK ERROR","Cannot Contact Server":"Cannot Contact Server","SAS ERROR":"SAS ERROR","Invalid Authorization Response":"Invalid Authorization Response","SAS GEO ERROR":"SAS GEO ERROR","This video is not authorized in your location":"This video is not authorized in your location","SAS DOMAIN ERROR":"SAS DOMAIN ERROR","This video is not authorized for your domain":"This video is not authorized for your domain","VIDEO NOT AVAILABLE YET":"VIDEO NOT AVAILABLE YET","This video will be available soon":"This video will be available soon","VIDEO COMING SOON!":"VIDEO COMING SOON!","This video is not available yet":"This video is not available yet","You may need to refresh the page to access the video after it becomes available":"You may need to refresh the page to access the video after it becomes available","VIDEO NO LONGER AVAILABLE":"VIDEO NO LONGER AVAILABLE","This video is no longer available":"This video is no longer available","SAS DEVICE ERROR":"SAS DEVICE ERROR","This video is not authorized for playback on this device":"This video is not authorized for playback on this device","SAS PROXY ERROR":"SAS PROXY ERROR","An anonymous proxy was detected. Please disable the proxy and retry.":"An anonymous proxy was detected. Please disable the proxy and retry.","CONCURRENT STREAMS NUMBER EXCEEDED":"CONCURRENT STREAMS NUMBER EXCEEDED","You have exceeded the maximum number of concurrent streams":"You have exceeded the maximum number of concurrent streams","DEVICE BINDING ERROR":"DEVICE BINDING ERROR","Device binding failed":"Device binding failed","DEVICE ID TOO LONG":"DEVICE ID TOO LONG","Device ID is too long":"Device ID is too long","INVALID PLAYER TOKEN":"INVALID PLAYER TOKEN","Invalid Ooyala Player token":"Invalid Ooyala Player token","AUTHORIZATION ERROR":"AUTHORIZATION ERROR","Unable to register this device to this account, as the maximum number of authorized devices has already been reached. Error Code 22":"Unable to register this device to this account, as the maximum number of authorized devices has already been reached. Error Code 22","Unable to access this content, as the maximum number of devices has already been authorized. Error Code 29":"Unable to access this content, as the maximum number of devices has already been authorized. Error Code 29","Please remove one of your authorized devices to enable this device.":"Please remove one of your authorized devices to enable this device.","LICENSE ERROR":"LICENSE ERROR","General error acquiring license":"General error acquiring license","DRM SERVER ERROR":"DRM SERVER ERROR","DRM server error":"DRM server error","INVALID ENTITLEMENTS ERROR":"INVALID ENTITLEMENTS ERROR","User Entitlement Terminated - Stream No Longer Active for the User":"User Entitlement Terminated - Stream No Longer Active for the User","INVALID HEARTBEAT":"INVALID HEARTBEAT","Invalid heartbeat response":"Invalid heartbeat response","INVALID CONTENT":"INVALID CONTENT","INVALID METADATA":"INVALID METADATA","Invalid Metadata":"Invalid Metadata","PLAYBACK ERROR":"PLAYBACK ERROR","Could not play the content":"Could not play the content","PLAYBACK STREAM ERROR":"PLAYBACK STREAM ERROR","This video isn't encoded for your device":"This video isn't encoded for your device","PLAYBACK LIVESTREAM ERROR":"PLAYBACK LIVESTREAM ERROR","Live stream is off air":"Live stream is off air","PLAYBACK NETWORK ERROR":"PLAYBACK NETWORK ERROR","Network connection temporarily lost":"Network connection temporarily lost","UNPLAYABLE CONTENT ERROR":"UNPLAYABLE CONTENT ERROR","This video is not playable on this player":"This video is not playable on this player","INVALID EXTERNAL ID":"INVALID EXTERNAL ID","Invalid External ID":"Invalid External ID","EMPTY CHANNEL ERROR":"EMPTY CHANNEL ERROR","This channel is empty":"This channel is empty","EMPTY CHANNEL SET ERROR":"EMPTY CHANNEL SET ERROR","This channel set is empty":"This channel set is empty","CHANNEL CONTENT ERROR":"CHANNEL CONTENT ERROR","This channel is not playable at this time":"This channel is not playable at this time","SOMETHING NOT RIGHT! THERE SHOULD BE VIDEOS HERE.":"SOMETHING NOT RIGHT! THERE SHOULD BE VIDEOS HERE.","(Try Clicking The Discover Button Again On Reload Your Page)":"(Try Clicking The Discover Button Again On Reload Your Page)","Something happened while we were trying to play your video! Click replay or simply reload your page.":"Something happened while we were trying to play your video! Click replay or simply reload your page.",Language:"Language","Color Selection":"Color Selection","Caption Opacity":"Caption Opacity","Font Type":"Font Type","Font Size":"Font Size","Text Enhancements":"Text Enhancements","Text color":"Text color","Background color":"Background color","Window color":"Window color",Transparent:"Transparent",White:"White",Blue:"Blue",Magenta:"Magenta",Green:"Green",Yellow:"Yellow",Red:"Red",Cyan:"Cyan",Black:"Black","Text opacity":"Text opacity","Background opacity":"Background opacity","Window opacity":"Window opacity","Font size":"Font size",Small:"Small",Medium:"Medium",Large:"Large","Extra Large":"Extra Large","Text enhancement":"Text enhancement",Uniform:"Uniform",Depressed:"Depressed",Raised:"Raised",Shadow:"Shadow",Play:"Play",Replay:"Replay",Pause:"Pause",Mute:"Mute",Unmute:"Unmute","Closed Captions":"Closed Captions","Full Screen":"Full Screen","Exit Full Screen":"Exit Full Screen","More Options":"More Options",Audio:"Audio",Subtitles:"Subtitles","Undefined language":"Undefined language","No linguistic content":"No linguistic content",Speed:"Speed",Normal:"Normal","Move left":"Move left","Move right":"Move right","Move up":"Move up","Move down":"Move down","Reset View":"Reset View","Authorization failed":"Authorization failed","Invalid Heartbeat":"Invalid Heartbeat","Content Tree Response Invalid":"Content Tree Response Invalid","The signature of the Authorization Response is invalid":"The signature of the Authorization Response is invalid","Content Tree Next failed":"Content Tree Next failed","Playback Error":"Playback Error","This video is not encoded for your device":"This video is not encoded for your device","An internal error occurred":"An internal error occurred","Invalid Player Token":"Invalid Player Token","Authorization Error":"Authorization Error","Failed to download a required file during the DRM workflow":"Failed to download a required file during the DRM workflow","Failed to complete device personalization during the DRM workflow":"Failed to complete device personalization during the DRM workflow","Failed to get rights for asset during the DRM workflow":"Failed to get rights for asset during the DRM workflow","The expected discovery parameters are not provided":"The expected discovery parameters are not provided","A discovery network error occurred":"A discovery network error occurred","A discovery response error occurred":"A discovery response error occurred","No available streams":"No available streams","The provided PCode does not match the embed code owner":"The provided PCode does not match the embed code owner","A download error occurred":"A download error occurred","Failed to return the advertising ID":"Failed to return the advertising ID","Failed to get discovery results":"Failed to get discovery results","Failed to post discovery pins":"Failed to post discovery pins","Player and player content do not correspond":"Player and player content do not correspond","Failed to create VR player":"Failed to create VR player","An unknown error occurred":"An unknown error occurred","Geo access denied":"Geo access denied","UNSUPPORTED CONTENT TYPE":"UNSUPPORTED CONTENT TYPE"}},{}],2:[function(e,t,n){t.exports={"Connected to":"Conectado a","Learn More":"Más información","CLOSED CAPTION PREVIEW":"VISTA PRELIMINAR DE SUBTÍTULOS","Sample Text":"Texto de muestra",Ad:"Anuncio","Skip Ad":"Omitir anuncio",LIVE:"EN VIVO","GO LIVE":"TRANSMITIR EN VIVO","CC Options":"Opciones de los subtítulos",On:"Sí",Off:"No",Discovery:"Discovery","Facebook Unavailable":"Facebook no está disponible.","Facebook Success":"Mirar este video en Facebook","Twitter Unavailable":"Twitter no está disponible.","Twitter Success":"Mirar este video en Facebook","Post Title":"Publicó el contenido correctamente.","Account Configure":"Configure su cuenta en el dispositivo.",Discover:"Descubrir","Up next":"Siguiente","Video Quality":"Calidad de video",Share:"Compartir","Start at":"Comenzar en",Embed:"Insertar",Email:"Correo electrónico","Check out this video":"¡Encontré este video que puede interesarle! Mírelo: ",To:"Para",Subject:"Asunto",Message:"Mensaje","name@email.com":"nombre@correoelectrónico.com","Optional Message":"Mensaje opcional",Send:"Enviar","RELOAD YOUR SCREEN OR TRY SELECTING A DIFFERENT VIDEO":"ACTUALICE LA PANTALLA O SELECCIONE UN VIDEO DIFERENTE.","THIS IS NOT WORKING! :(":"ESTO NO FUNCIONA. :(","NETWORK ERROR":"SE PRODUJO UN ERROR EN LA RED.","Cannot Contact Server":"No se puede contactar al servidor.","SAS ERROR":"SE PRODUJO UN ERROR EN SAS.","Invalid Authorization Response":"La respuesta de autorización no es válida.","SAS GEO ERROR":"SE PRODUJO UN ERROR EN LA UBICACIÓN DE SAS.","This video is not authorized in your location":"Este video no está autorizado en su ubicación.","SAS DOMAIN ERROR":"SE PRODUJO UN ERROR EN EL DOMINIO DE SAS.","This video is not authorized for your domain":"Este video no está autorizado en su dominio.","VIDEO NOT AVAILABLE YET":"EL VIDEO TODAVÍA NO ESTÁ DISPONIBLE.","This video will be available soon":"El video estará disponible próximamente.","VIDEO COMING SOON!":"¡PRÓXIMAMENTE UN VIDEO!","This video is not available yet":"El video todavía no está disponible.","You may need to refresh the page to access the video after it becomes available":"Es posible que deba actualizar la página para acceder al video una vez que esté disponible.","VIDEO NO LONGER AVAILABLE":"EL VIDEO YA NO ESTÁ DISPONIBLE.","This video is no longer available":"El video ya no está disponible.","SAS DEVICE ERROR":"SE PRODUJO UN ERROR EN EL DISPOSITIVO DE SAS.","This video is not authorized for playback on this device":"La reproducción de este video no está autorizada en este dispositivo.","SAS PROXY ERROR":"SE PRODUJO UN ERROR EN EL PROXY DE SAS.","An anonymous proxy was detected. Please disable the proxy and retry.":"Se detectó un proxy anónimo. Deshabilite el proxy e inténtelo nuevamente.","CONCURRENT STREAMS NUMBER EXCEEDED":"SE SUPERÓ LA CANTIDAD DE EMISIONES SIMULTÁNEAS.","You have exceeded the maximum number of concurrent streams":"Superó la cantidad máxima de emisiones simultáneas.","DEVICE BINDING ERROR":"SE PRODUJO UN ERROR EN EL ENLACE DE LOS DISPOSITIVOS.","Device binding failed":"Se produjo un error en el enlace de dispositivos.","DEVICE ID TOO LONG":"LA ID DEL DISPOSITIVO ES DEMASIADO LARGA.","Device ID is too long":"La ID del dispositivo es demasiado larga.","INVALID PLAYER TOKEN":"EL TOKEN DEL REPRODUCTOR NO ES VÁLIDO.","Invalid Ooyala Player token":"El token del reproductor de Ooyala no es válido.","AUTHORIZATION ERROR":"SE PRODUJO UN ERROR EN LA AUTORIZACIÓN.","Unable to register this device to this account, as the maximum number of authorized devices has already been reached. Error Code 22":"No se pudo registrar este dispositivo en esta cuenta, dado que se alcanzó el número máximo de dispositivos autorizados. Código de error: 22","Unable to access this content, as the maximum number of devices has already been authorized. Error Code 29":"No se pudo acceder a este contenido, dado que se alcanzó el número máximo de dispositivos autorizados. Código de error: 29","Please remove one of your authorized devices to enable this device.":"Quite uno de los dispositivos autorizados para permitir este dispositivo.","LICENSE ERROR":"SE PRODUJO UN ERROR EN LA LICENCIA.","General error acquiring license":"Se produjo un error general al adquirir la licencia.","DRM SERVER ERROR":"SE PRODUJO UN ERROR EN EL SERVIDOR DE DRM.","DRM server error":"Se produjo un error en el servidor de DRM.","INVALID ENTITLEMENTS ERROR":"SE PRODUJO UN ERROR CON ASIGNACIONES NO VÁLIDAS.","User Entitlement Terminated - Stream No Longer Active for the User":"Finalizó la asignación del usuario. La emisión ya no estará activa para el usuario.","INVALID HEARTBEAT":"LA PULSACIÓN NO ES VÁLIDA.","Invalid heartbeat response":"La respuesta de pulsación no es válida.","INVALID CONTENT":"EL CONTENIDO NO ES VÁLIDO.","INVALID METADATA":"LOS METADATOS NO SON VÁLIDOS.","Invalid Metadata":"Los metadatos no son válidos.","PLAYBACK ERROR":"SE PRODUJO UN ERROR EN LA REPRODUCCIÓN.","Could not play the content":"No se pudo reproducir el contenido.","PLAYBACK STREAM ERROR":"SE PRODUJO UN ERROR EN LA EMISIÓN DE LA REPRODUCCIÓN.","This video isn't encoded for your device":"Este video no está codificado para su dispositivo.","PLAYBACK LIVESTREAM ERROR":"SE PRODUJO UN ERROR EN LA EMISIÓN EN VIVO DE LA REPRODUCCIÓN.","Live stream is off air":"La emisión en vivo está desconectada.","PLAYBACK NETWORK ERROR":"SE PRODUJO UN ERROR EN LA RED DE LA REPRODUCCIÓN.","Network connection temporarily lost":"Se perdió temporalmente la conexión con la red.","UNPLAYABLE CONTENT ERROR":"SE PRODUJO UN ERROR CON EL CONTENIDO, NO SE PUEDE REPRODUCIR.","This video is not playable on this player":"Este video no se puede reproducir en este dispositivo.","INVALID EXTERNAL ID":"LA ID EXTERNA NO ES VÁLIDA.","Invalid External ID":"La ID externa no es válida.","EMPTY CHANNEL ERROR":"SE PRODUJO UN ERROR, EL CANAL ESTÁ VACÍO.","This channel is empty":"Este canal está vacío.","EMPTY CHANNEL SET ERROR":"SE PRODUJO UN ERROR, EL CONJUNTO DE CANALES ESTÁ VACÍO.","This channel set is empty":"Este conjunto de canales está vacío.","CHANNEL CONTENT ERROR":"SE PRODUJO UN ERROR CON EL CONTENIDO DEL CANAL.","This channel is not playable at this time":"Este canal no se puede reproducir en este momento.","SOMETHING NOT RIGHT! THERE SHOULD BE VIDEOS HERE.":"¡SE PRODUJO UN ERROR! DEBERÍA HABER VIDEOS AQUÍ.","(Try Clicking The Discover Button Again On Reload Your Page)":"(Intente hacer clic en el botón Descubrir de nuevo al cargar la página).","Something happened while we were trying to play your video! Click replay or simply reload your page.":"Se produjo un error cuando intentamos reproducir tu video. Seleccione la opción para repetir el video o vuelva a cargar la página.",Language:"Idioma","Color Selection":"Selección de color","Caption Opacity":"Opacidad de los subtítulos","Font Type":"Tipo de fuente","Font Size":"Tamaño de fuente","Text Enhancements":"Mejoras en el texto","Text color":"Color del texto","Background color":"Color del fondo","Window color":"Color de la ventana",Transparent:"Transparente",White:"Blanco",Blue:"Azul",Magenta:"Magenta",Green:"Verde",Yellow:"Amarillo",Red:"Rojo",Cyan:"Cian",Black:"Negro","Text opacity":"Opacidad del texto","Background opacity":"Opacidad del fondo","Window opacity":"Opacidad de la ventana","Font size":"Tamaño de fuente",Small:"Pequeña",Medium:"Mediana",Large:"Grande","Extra Large":"Extra grande","Text enhancement":"Mejora en el texto",Uniform:"Uniforme",Depressed:"Aplastada",Raised:"Elevada",Shadow:"Sombra",Play:"Reproducir",Replay:"Repetir video",Pause:"Pausar",Mute:"Silenciar",Unmute:"Sonido","Closed Captions":"Subtítulos","Full Screen":"Pantalla completa","Exit Full Screen":"Salir pantalla completa","More Options":"Más Opciones",Audio:"Audio",Subtitles:"Subtítulos","Undefined language":"Idioma no definido","No linguistic content":"Sin contenido lingüístico",Speed:"Velocidad",Normal:"Normal","Move left":"Mover a la izquierda","Move right":"Mover a la derecha","Move up":"Subir","Move down":"Bajar","Reset View":"Restablecer vista"}},{}],3:[function(e,t,n){t.exports={"Connected to":"接続先","Learn More":"詳細","CLOSED CAPTION PREVIEW":"字幕プレビューを閉じる","Sample Text":"サンプルテキスト",Ad:"広告","Skip Ad":"広告表示をスキップ",LIVE:"ライブ","GO LIVE":"公開開始","CC Options":"字幕オプション",On:"オン",Off:"オフ",Discovery:"検出","Facebook Unavailable":"Facebook を利用できません","Facebook Success":"Facebook でこのビデオを確認してください","Twitter Unavailable":"Twitter を利用できません","Twitter Success":"Twitter でこのビデオを確認してください","Post Title":"投稿成功","Account Configure":"デバイスでアカウントを設定してください",Discover:"検出","Up next":"次回","Video Quality":"ビデオ品質",Share:"共有","Start at":"開始ポイント",Embed:"埋め込み",Email:"メール","Check out this video":"関心があると思われるビデオがあります。確認: ",To:"発行先",Subject:"件名",Message:"メッセージ","name@email.com":"name@email.com","Optional Message":"オプションメッセージ",Send:"送信","RELOAD YOUR SCREEN OR TRY SELECTING A DIFFERENT VIDEO":"画面をリロードするか、別のビデオを選んでください","THIS IS NOT WORKING! :(":"現在これは動作していません! :(","NETWORK ERROR":"ネットワークエラー","Cannot Contact Server":"サーバーと通信できません","SAS ERROR":"SAS エラー","Invalid Authorization Response":"無効な認証応答","SAS GEO ERROR":"SAS GEO エラー","This video is not authorized in your location":"このビデオはユーザーの場所では許可されていません","SAS DOMAIN ERROR":"SAS ドメインエラー","This video is not authorized for your domain":"このビデオはユーザーのドメインでは許可されていません","VIDEO NOT AVAILABLE YET":"ビデオはまだご視聴いただけません","This video will be available soon":"このビデオはすぐに視聴可能になります","VIDEO COMING SOON!":"ビデオ近日公開!","This video is not available yet":"このビデオはまだご視聴いただけません","You may need to refresh the page to access the video after it becomes available":"ビデオが視聴可能になったら、ページを更新してご視聴ください","VIDEO NO LONGER AVAILABLE":"ビデオはもう視聴いただけません","This video is no longer available":"このビデオはもう視聴いただけません","SAS DEVICE ERROR":"SAS デバイスエラー","This video is not authorized for playback on this device":"このビデオをこのデバイスで再生することは許可されていません","SAS PROXY ERROR":"SAS プロキシエラー","An anonymous proxy was detected. Please disable the proxy and retry.":"匿名プロキシが検出されました。プロキシを無効にして再試行してください。","CONCURRENT STREAMS NUMBER EXCEEDED":"同時アクセスストリームの最大数を超過しました","You have exceeded the maximum number of concurrent streams":"同時アクセスストリームの最大数を超過しました","DEVICE BINDING ERROR":"デバイスバインドエラー","Device binding failed":"デバイスのバインドに失敗しました","DEVICE ID TOO LONG":"デバイス ID が長すぎます","Device ID is too long":"デバイス ID が長すぎます","INVALID PLAYER TOKEN":"無効な Player トークン","Invalid Ooyala Player token":"無効な Ooyaka Player トークン。","AUTHORIZATION ERROR":"認証エラー","Unable to register this device to this account, as the maximum number of authorized devices has already been reached. Error Code 22":"このデバイスをアカウントに登録できません。認証されたデバイスの数が上限に達しています。エラーコード22","Unable to access this content, as the maximum number of devices has already been authorized. Error Code 29":"このコンテンツにアクセスできません。認証されたデバイスの数が上限に達しています。エラーコード29","Please remove one of your authorized devices to enable this device.":"このデバイスを有効にするには、認証されたデバイスのうち1つを削除してください。","LICENSE ERROR":"ライセンスエラー","General error acquiring license":"ライセンス取得での一般的なエラー","DRM SERVER ERROR":"DRMサーバーエラー","DRM server error":"DRMサーバーエラー","INVALID ENTITLEMENTS ERROR":"無効な権利エラー","User Entitlement Terminated - Stream No Longer Active for the User":"ユーザー権利が終了しました - このユーザーのストリームはもう有効ではありません","INVALID HEARTBEAT":"無効なハートビート","Invalid heartbeat response":"無効なハートビート応答","INVALID CONTENT":"無効なコンテンツ","INVALID METADATA":"無効なメタデータ","Invalid Metadata":"無効なメタデータ","PLAYBACK ERROR":"再生エラー","Could not play the content":"コンテンツを再生できませんでした","PLAYBACK STREAM ERROR":"ストリーム再生エラー","This video isn't encoded for your device":"このビデオはお使いのデバイスで再生できるようにエンコードされていません","PLAYBACK LIVESTREAM ERROR":"ライブストリーム再生エラー","Live stream is off air":"ライブストリームはオフになっています","PLAYBACK NETWORK ERROR":"再生ネットワークエラー","Network connection temporarily lost":"ネットワークに一時的に接続できませんでした","UNPLAYABLE CONTENT ERROR":"コンテンツ再生不能エラー","This video is not playable on this player":"このビデオはこのプレイヤーでは再生できません","INVALID EXTERNAL ID":"無効な外部 ID","Invalid External ID":"無効な外部 ID","EMPTY CHANNEL ERROR":"空のチャンネルエラー","This channel is empty":"このチャンネルは空です","EMPTY CHANNEL SET ERROR":"空のチャンネルセットエラー","This channel set is empty":"このチャンネルセットは空です","CHANNEL CONTENT ERROR":"チャンネルコンテンツエラー","This channel is not playable at this time":"このチャンネルは現在再生できません","SOMETHING NOT RIGHT! THERE SHOULD BE VIDEOS HERE.":"エラーがあります!ビデオがあるはずです。","(Try Clicking The Discover Button Again On Reload Your Page)":"(ページをリロードして、[検出] ボタンを再度クリックしてください)","Something happened while we were trying to play your video! Click replay or simply reload your page.":"ビデオを再生するときに何らかのエラーが発生しました![リプレイ] をクリックするか、ページを単にリロードしてください。",Language:"言語","Color Selection":"カラーの選択","Caption Opacity":"字幕の不透明度","Font Type":"フォントタイプ","Font Size":"フォントサイズ","Text Enhancements":"テキストの拡張","Text color":"文字の色","Background color":"背景色","Window color":"ウィンドウの色",Transparent:"透明",White:"白",Blue:"青",Magenta:"マゼンタ",Green:"緑",Yellow:"黄",Red:"赤",Cyan:"シアン",Black:"黒","Text opacity":"テキストの不透明度","Background opacity":"背景の不透明度","Window opacity":"ウィンドウの不透明度","Font size":"フォントサイズ",Small:"小",Medium:"普通",Large:"大","Extra Large":"最大","Text enhancement":"テキストの拡張",Uniform:"均一",Depressed:"くぼみ",Raised:"浮かし",Shadow:"影付き",Play:"再生",Replay:"リプレイ",Pause:"一時停止",Mute:"ミュート",Unmute:"ミュート解除","Closed Captions":"クローズドキャプション","Full Screen":"全画面","Exit Full Screen":"全画面表示を終了","More Options":"その他のオプション",Audio:"オーディオ",Subtitles:"サブタイトル","Undefined language":"未定義の言語","No linguistic content":"言語コンテンツなし",Speed:"速度",Normal:"標準","Move left":"左に移動","Move right":"右に移動","Move up":"上に移動","Move down":"下に移動","Reset View":"表示をリセット"}},{}],4:[function(e,t,n){t.exports={"Connected to":"연결 대상","Learn More":"자세한 정보","CLOSED CAPTION PREVIEW":"선택 자막 미리보기","Sample Text":"샘플 텍스트",Ad:"광고","Skip Ad":"광고 건너뛰기",LIVE:"라이브","GO LIVE":"라이브 방송 시작하기","CC Options":"자막 옵션",On:"켜기",Off:"끄기",Discovery:"디스커버리","Facebook Unavailable":"Facebook 사용 불가","Facebook Success":"Facebook에서 비디오 시청하기","Twitter Unavailable":"Twitter 사용 불가","Twitter Success":"Twitter에서 비디오 시청하기","Post Title":"게시하기","Account Configure":"장치에 계정을 설정해 주십시오",Discover:"디스커버","Up next":"다음 콘텐츠","Video Quality":"비디오 품질",Share:"공유","Start at":"시작 지점:",Embed:"임베드",Email:"이메일","Check out this video":"당신이 흥미로워할 비디오를 찾았어요! 한 번 보세요: ",To:"받는 사람",Subject:"제목",Message:"메시지","name@email.com":"name@email.com","Optional Message":"옵션 메시지",Send:"보내기","RELOAD YOUR SCREEN OR TRY SELECTING A DIFFERENT VIDEO":"화면을 다시 불러오거나 다른 비디오를 선택해 보십시오","THIS IS NOT WORKING! :(":"오류가 있어요! :(","NETWORK ERROR":"네트워크 오류","Cannot Contact Server":"서버 연결 불가","SAS ERROR":"SAS 오류","Invalid Authorization Response":"유효하지 않은 권한 응답","SAS GEO ERROR":"SAS 위치 오류","This video is not authorized in your location":"사용자 위치에서 해당 비디오 접근이 허가되지 않습니다","SAS DOMAIN ERROR":"SAS 도메인 오류","This video is not authorized for your domain":"사용자 도메인에서 해당 비디오 접근이 허가되지 않습니다","VIDEO NOT AVAILABLE YET":"아직 비디오 미출시","This video will be available soon":"비디오가 곧 출시됩니다","VIDEO COMING SOON!":"비디오 출시 임박!","This video is not available yet":"아직 비디오가 출시되지 않았습니다","You may need to refresh the page to access the video after it becomes available":"비디오 출시 후 페이지를 새로 고쳐야 할 수 있습니다","VIDEO NO LONGER AVAILABLE":"비디오 제공 중단","This video is no longer available":"해당 비디오는 더 이상 제공되지 않습니다","SAS DEVICE ERROR":"SAS 장치 오류","This video is not authorized for playback on this device":"해당 장비에서 해당 비디오 재생이 허가되지 않습니다","SAS PROXY ERROR":"SAS 프록시 오류","An anonymous proxy was detected. Please disable the proxy and retry.":"익명 프록시가 감지되었습니다. 프록시를 비활성화하고 재시도하십시오.","CONCURRENT STREAMS NUMBER EXCEEDED":"동시 스트림 제한 초과","You have exceeded the maximum number of concurrent streams":"최대 허용 동시 스트림 수를 초과했습니다","DEVICE BINDING ERROR":"장치 바인딩 오류","Device binding failed":"장치 바인딩에 실패했습니다","DEVICE ID TOO LONG":"장치 ID 너무 김","Device ID is too long":"장치 ID가 너무 깁니다","INVALID PLAYER TOKEN":"유효하지 않은 플레이어 토큰","Invalid Ooyala Player token":"Ooyala Player Token이 유효하지 않습니다","AUTHORIZATION ERROR":"권한 부여 오류","Unable to register this device to this account, as the maximum number of authorized devices has already been reached. Error Code 22":"권한이 부여된 장치 최대 수에 이미 도달하여 이 장치를 이 계정에 등록할 수 없습니다. 오류 코드 22","Unable to access this content, as the maximum number of devices has already been authorized. Error Code 29":"이미 최대 수의 장치에 권한이 부여되서 이 콘텐츠에 액세스할 수 없습니다.","Please remove one of your authorized devices to enable this device.":"이 장치를 활성화하려면 권한이 부여된 장치 하나를 제거하세요.","LICENSE ERROR":"라이센스 오류","General error acquiring license":"라이센스 획득 관련 일반 오류입니다","DRM SERVER ERROR":"DRM 서버 오류","DRM server error":"DRM 서버 오류입니다","INVALID ENTITLEMENTS ERROR":"유효하지 않은 자격 오류","User Entitlement Terminated - Stream No Longer Active for the User":"사용자 자격 종료 - 사용자의 스트림이 비활성화되었습니다","INVALID HEARTBEAT":"유효하지 않은 심박동","Invalid heartbeat response":"유효하지 않은 심박동 응답입니다","INVALID CONTENT":"유효하지 않은 콘텐츠","INVALID METADATA":"유효하지 않은 메타데이터","Invalid Metadata":"유효하지 않은 메타데이터입니다","PLAYBACK ERROR":"재생 오류","Could not play the content":"콘텐츠를 재생할 수 없었습니다","PLAYBACK STREAM ERROR":"스트림 재생 오류","This video isn't encoded for your device":"해당 비디오는 장치에 맞게 인코딩되지 않았습니다","PLAYBACK LIVESTREAM ERROR":"라이브스트림 재생 오류","Live stream is off air":"라이브 스트림이 중단되었습니다","PLAYBACK NETWORK ERROR":"네트워크 재생 오류","Network connection temporarily lost":"네트워크 연결이 잠시 끊겼습니다","UNPLAYABLE CONTENT ERROR":"재생 불가 콘텐츠 오류","This video is not playable on this player":"해당 장비에서 해당 비디오가 재생되지 않습니다","INVALID EXTERNAL ID":"유효하지 않은 외부 ID","Invalid External ID":"유효하지 않은 외부 ID입니다","EMPTY CHANNEL ERROR":"빈 채널 오류","This channel is empty":"채널이 비었습니다","EMPTY CHANNEL SET ERROR":"빈 채널 세트 오류","This channel set is empty":"해당 채널 세트가 비었습니다","CHANNEL CONTENT ERROR":"채널 콘텐츠 오류","This channel is not playable at this time":"지금 해당 채널을 재생할 수 없습니다","SOMETHING NOT RIGHT! THERE SHOULD BE VIDEOS HERE.":"뭔가 이상해요! 여기 비디오가 있어야 하는데...","(Try Clicking The Discover Button Again On Reload Your Page)":"(디스커버 버튼을 다시 눌러보거나 페이지를 다시 불러오십시오)","Something happened while we were trying to play your video! Click replay or simply reload your page.":"비디오 재생 중에 오류가 발생했습니다! 리플레이를 클릭하거나 그냥 페이지를 다시 불러오십시오",Language:"언어","Color Selection":"색상 선택","Caption Opacity":"자막 불투명도","Font Type":"글꼴 유형","Font Size":"글꼴 크기","Text Enhancements":"텍스트 향상","Text color":"텍스트 색상","Background color":"배경 색상","Window color":"창 색상",Transparent:"투명",White:"흰색",Blue:"파란색",Magenta:"자홍색",Green:"녹색",Yellow:"노란색",Red:"빨간색",Cyan:"청록색",Black:"검은색","Text opacity":"텍스트 불투명도","Background opacity":"배경 불투명도","Window opacity":"창 불투명도","Font size":"글꼴 크기",Small:"소",Medium:"중",Large:"대","Extra Large":"특대","Text enhancement":"텍스트 향상",Uniform:"균일",Depressed:"음각",Raised:"양각",Shadow:"그림자",Play:"재생",Replay:"리플레이",Pause:"일시 중지",Mute:"음소거",Unmute:"음소거 취소","Closed Captions":"선택 자막","Full Screen":"전체 화면","Exit Full Screen":"전체 화면 나가기","More Options":"추가 옵션",Audio:"오디오",Subtitles:"자막","Undefined language":"정의되지 않은 언어","No linguistic content":"언어 콘텐츠 없음",Speed:"속도",Normal:"보통","Move left":"왼쪽으로 이동","Move right":"오른쪽으로 이동","Move up":"위로 이동","Move down":"아래로 이동","Reset View":"보기 재설정"}},{}],5:[function(e,t,n){t.exports={"Connected to":"连接到","Learn More":"了解更多","CLOSED CAPTION PREVIEW":"隐藏式字幕预览","Sample Text":"示例文本",Ad:"广告","Skip Ad":"跳过广告",LIVE:"直播","GO LIVE":"现场直播","CC Options":"字幕选项",On:"开",Off:"关",Discovery:"发现","Facebook Unavailable":"Facebook 不可用","Facebook Success":"在 Facebook 上观看此视频","Twitter Unavailable":"Twitter 不可用","Twitter Success":"在 Twitter 上观看此视频","Post Title":"发布成功","Account Configure":"请在设备上设置您的帐号",Discover:"发现","Up next":"下一个","Video Quality":"视频质量",Share:"分享","Start at":"开始于",Embed:"嵌入的",Email:"电子邮件","Check out this video":"我发现一个您可能会感兴趣的视频！点开看看： ",To:"收件人",Subject:"主题",Message:"消息","name@email.com":"name@email.com","Optional Message":"可选消息",Send:"发送","RELOAD YOUR SCREEN OR TRY SELECTING A DIFFERENT VIDEO":"重新加载屏幕或尝试选择其他视频","THIS IS NOT WORKING! :(":"无法正常运作！:(","NETWORK ERROR":"网络错误","Cannot Contact Server":"无法联系服务器","SAS ERROR":"SAS 错误","Invalid Authorization Response":"授权响应无效","SAS GEO ERROR":"SAS 地区错误","This video is not authorized in your location":"此视频未获得您所在地区的授权","SAS DOMAIN ERROR":"SAS 域错误","This video is not authorized for your domain":"此视频未获得您的域授权","VIDEO NOT AVAILABLE YET":"视频尚不能播放","This video will be available soon":"此视频很快即可播放","VIDEO COMING SOON!":"即将推出视频！","This video is not available yet":"此视频尚不能播放","You may need to refresh the page to access the video after it becomes available":"视频变成可播放后，您可能需要刷新页面以观看该视频","VIDEO NO LONGER AVAILABLE":"视频不再有效","This video is no longer available":"此视频不再有效","SAS DEVICE ERROR":"SAS 设备错误","This video is not authorized for playback on this device":"此视频未获得在此设备上回放的授权","SAS PROXY ERROR":"SAS 代理错误","An anonymous proxy was detected. Please disable the proxy and retry.":"检测到匿名代理。请禁用该代理并重试。","CONCURRENT STREAMS NUMBER EXCEEDED":"超过并发流数","You have exceeded the maximum number of concurrent streams":"您已超过最大并发流数","DEVICE BINDING ERROR":"设备绑定错误","Device binding failed":"设备绑定失败","DEVICE ID TOO LONG":"设备 ID 太长","Device ID is too long":"设备 ID 太长","INVALID PLAYER TOKEN":"播放器标记无效","Invalid Ooyala Player token":"Ooyala 播放器标记无效","AUTHORIZATION ERROR":"授权错误","Unable to register this device to this account, as the maximum number of authorized devices has already been reached. Error Code 22":"无法将此设备注册到该帐号，因为已达到授权设备的最大数量。错误代码 22","Unable to access this content, as the maximum number of devices has already been authorized. Error Code 29":"无法访问此内容，因为授权设备数量已达到最大值。错误代码 29","Please remove one of your authorized devices to enable this device.":"请删除其中一个已授权设备以启用此设备。","LICENSE ERROR":"许可证错误","General error acquiring license":"获得许可证一般错误","DRM SERVER ERROR":"DRM 服务器错误","DRM server error":"DRM 服务器错误","INVALID ENTITLEMENTS ERROR":"无效权限错误","User Entitlement Terminated - Stream No Longer Active for the User":"用户权限已终止 - 流对该用户不再有效","INVALID HEARTBEAT":"心跳无效","Invalid heartbeat response":"心跳响应无效","INVALID CONTENT":"内容无效","INVALID METADATA":"元数据无效","Invalid Metadata":"元数据无效","PLAYBACK ERROR":"回放错误","Could not play the content":"无法播放内容","PLAYBACK STREAM ERROR":"回放流错误","This video isn't encoded for your device":"此视频未针对您的设备进行编码","PLAYBACK LIVESTREAM ERROR":"回放直播流错误","Live stream is off air":"直播流已停播","PLAYBACK NETWORK ERROR":"回放网络错误","Network connection temporarily lost":"网络连接暂时中断","UNPLAYABLE CONTENT ERROR":"不可播放的内容错误","This video is not playable on this player":"此视频不能在此播放器上播放","INVALID EXTERNAL ID":"外部 ID 无效","Invalid External ID":"外部 ID 无效","EMPTY CHANNEL ERROR":"空白通道错误","This channel is empty":"此通道为空","EMPTY CHANNEL SET ERROR":"空白通道集错误","This channel set is empty":"此通道集为空","CHANNEL CONTENT ERROR":"通道内容错误","This channel is not playable at this time":"当前此通道不可播放","SOMETHING NOT RIGHT! THERE SHOULD BE VIDEOS HERE.":"出错了！此处应有视频。","(Try Clicking The Discover Button Again On Reload Your Page)":"（尝试再次单击“发现”按钮或重新加载页面）","Something happened while we were trying to play your video! Click replay or simply reload your page.":"尝试播放您的视频时发生问题！单击重新播放或只是重新加载页面。",Language:"语言","Color Selection":"颜色选择","Caption Opacity":"字幕不透明度","Font Type":"字体类型","Font Size":"字体大小","Text Enhancements":"文本增强","Text color":"文本颜色","Background color":"背景颜色","Window color":"窗口颜色",Transparent:"透明",White:"白色",Blue:"蓝色",Magenta:"品红",Green:"绿色",Yellow:"黄色",Red:"红色",Cyan:"青色",Black:"黑色","Text opacity":"文本不透明度","Background opacity":"背景不透明度","Window opacity":"窗口不透明度","Font size":"字体大小",Small:"小",Medium:"中",Large:"大","Extra Large":"超大","Text enhancement":"文本增强",Uniform:"均匀",Depressed:"凹陷",Raised:"凸起",Shadow:"阴影",Play:"播放",Replay:"重播",Pause:"暂停",Mute:"静音",Unmute:"取消静音","Closed Captions":"隐藏式字幕","Full Screen":"全屏","Exit Full Screen":"退出全屏","More Options":"更多选项",Audio:"音频",Subtitles:"字幕","Undefined language":"未定义语言","No linguistic content":"没有语言内容",Speed:"速度",Normal:"正常","Move left":"向左移动","Move right":"向右移动","Move up":"向前移动","Move down":"向后移动","Reset View":"重置视图"}},{}],6:[function(e,t,n){t.exports={general:{watermark:{imageResource:{url:"",androidResource:"logo",iosResource:"logo"},position:"bottomRight",clickUrl:"",target:"_blank",transparency:1,scalingOption:"default",scalingPercentage:20},bufferingSpinnerDelay:750,loadingImage:{imageResource:{url:"//player.ooyala.com/static/v4/stable/4.40.0/skin-plugin/assets/images/loader_svg.svg"}},accentColor:"#448aff"},localization:{defaultLanguage:"en",availableLanguageFile:[{language:"en",languageFile:"",androidResource:"skin-config/languageFiles/en.json",iosResource:"en"},{language:"es",languageFile:"",androidResource:"skin-config/languageFiles/es.json",iosResource:"es"},{language:"zh",languageFile:"",androidResource:"skin-config/languageFiles/zh.json",iosResource:"zh"},{language:"ja",languageFile:"",androidResource:"skin-config/languageFiles/ja.json",iosResource:"ja"},{language:"ko",languageFile:"",androidResource:"skin-config/languageFiles/ko.json",iosResource:"ko"}]},languageDirections:{ar:"rtl",dv:"rtl",he:"rtl",fa:"rtl",ks:"rtl",ku:"rtl",pa:"rtl",ps:"rtl",sd:"rtl",tk:"rtl",ug:"rtl",ur:"rtl",yi:"rtl"},responsive:{breakpoints:{"audio-only-xs":{id:"audio-only-xs",name:"oo-xsmall",multiplier:.7},xs:{id:"xs",name:"oo-xsmall",maxWidth:559,multiplier:.7},sm:{id:"sm",name:"oo-small",minWidth:560,maxWidth:839,multiplier:1},md:{id:"md",name:"oo-medium",minWidth:840,maxWidth:1279,multiplier:1},lg:{id:"lg",name:"oo-large",minWidth:1280,multiplier:1.2}},aspectRatio:"auto"},startScreen:{promoImageSize:"default",showPlayButton:!0,playButtonPosition:"center",playIconStyle:{color:"white",opacity:1},showTitle:!0,showDescription:!0,titleFont:{color:"white"},descriptionFont:{color:"white"},infoPanelPosition:"topLeft",showPromo:!0},pauseScreen:{showPauseIcon:!0,pauseIconPosition:"center",PauseIconStyle:{color:"white",opacity:1},showTitle:!0,showDescription:!0,infoPanelPosition:"topLeft",screenToShowOnPause:"default"},endScreen:{screenToShowOnEnd:"discovery",showReplayButton:!0,replayIconStyle:{color:"white",opacity:1},showTitle:!1,showDescription:!1,infoPanelPosition:"topLeft"},adScreen:{showAdMarquee:!0,showAdCountDown:!0,showControlBar:!1},discoveryScreen:{panelTitle:{titleFont:{fontFamily:"Roboto Condensed",color:"white"}},contentTitle:{show:!0,font:{fontFamily:"Roboto Condensed",color:"white"}},showCountDownTimerOnEndScreen:!0,countDownTime:10},shareScreen:{shareContent:["social","embed"],socialContent:["twitter","facebook","google+","email"],embed:{source:"<iframe width='640' height='480' frameborder='0' allowfullscreen src='//player.ooyala.com/static/v4/stable/4.40.0/skin-plugin/iframe.html?ec=<ASSET_ID>&pbid=<PLAYER_ID>&pcode=<PUBLISHER_ID>'></iframe>"}},moreOptionsScreen:{brightOpacity:1,darkOpacity:.4,iconSize:30,color:"white",iconStyle:{active:{color:"#FFFFFF",opacity:1},inactive:{color:"#FFFFFF",opacity:.95}}},closedCaptionOptions:{enabled:!0,language:"en",textColor:"White",windowColor:"Transparent",backgroundColor:"Black",textOpacity:1,backgroundOpacity:.6,windowOpacity:0,fontType:"Proportional Sans-Serif",fontSize:"Medium",textEnhancement:"Uniform"},upNext:{showUpNext:!0,timeToShow:10},playbackSpeed:{options:[.5,.75,1,1.25,1.5,2]},skipControls:{enabled:!1,skipBackwardTime:10,skipForwardTime:10,buttons:{previousVideo:{enabled:!0,index:1},skipBackward:{enabled:!0,index:2},skipForward:{enabled:!0,index:3},nextVideo:{enabled:!0,index:4}},controlBarSkipControls:{previousVideo:{enabled:!0,index:1},skipBackward:{enabled:!0,index:2},playPause:{enabled:!0,index:3},skipForward:{enabled:!0,index:4},nextVideo:{enabled:!0,index:5}}},castControls:{enabled:!1,skipBackwardTime:10,skipForwardTime:10,buttons:{previousVideo:{enabled:!0,index:1},skipBackward:{enabled:!0,index:2},skipForward:{enabled:!0,index:3},nextVideo:{enabled:!0,index:4}},iconStyle:{active:{color:"#3eb5f7"},inactive:{color:"#FFFFFF"}}},controlBar:{enabled:!0,volumeControl:{color:""},iconStyle:{active:{color:"#FFFFFF",opacity:1},inactive:{color:"#FFFFFF",opacity:.95}},autoHide:!0,height:90,logo:{imageResource:{url:"",androidResource:"logo",iosResource:"logo"},clickUrl:"http://www.ooyala.com",target:"_blank",width:96,height:24},adScrubberBar:{backgroundColor:"rgba(175,175,175,1)",bufferedColor:"rgba(127,127,127,1)",playedColor:"rgba(255,63,128,1)",scrubberHandleColor:"rgba(67,137,255,1)",scrubberHandleBorderColor:"rgba(255,255,255,1)"},scrubberBar:{backgroundColor:"rgba(175,175,175,0.5)",bufferedColor:"rgba(175,175,175,0.7)",playedColor:"",scrubberHandleColor:"rgba(67,137,255,1)",scrubberHandleBorderColor:"rgba(255,255,255,1)",thumbnailPreview:!0},tooltips:{enabled:!1},qualitySelection:{format:"bitrate"}},live:{forceDvrDisabled:!1},isVrAnimationEnabled:{vrNotification:!0,vrIcon:!1},audio:{audioLanguage:"none"},animationDurations:{vrNotification:5,vrIcon:4},buttons:{desktopContent:[{name:"playPause",location:"controlBar",whenDoesNotFit:"keep",minWidth:45},{name:"volume",location:"controlBar",whenDoesNotFit:"keep",minWidth:240},{name:"live",location:"controlBar",whenDoesNotFit:"keep",minWidth:45},{name:"timeDuration",location:"controlBar",whenDoesNotFit:"drop",minWidth:145},{name:"flexibleSpace",location:"controlBar",whenDoesNotFit:"keep",minWidth:1},{name:"chromecast",location:"controlBar",whenDoesNotFit:"moveToMoreOptions",minWidth:45},{name:"airPlay",location:"controlBar",whenDoesNotFit:"moveToMoreOptions",minWidth:45},{name:"share",location:"controlBar",whenDoesNotFit:"moveToMoreOptions",minWidth:45},{name:"discovery",location:"controlBar",whenDoesNotFit:"moveToMoreOptions",minWidth:45},{name:"closedCaption",location:"controlBar",whenDoesNotFit:"moveToMoreOptions",minWidth:45},{name:"quality",location:"controlBar",whenDoesNotFit:"moveToMoreOptions",minWidth:45},{name:"logo",location:"controlBar",whenDoesNotFit:"keep",minWidth:125},{name:"stereoscopic",location:"controlBar",whenDoesNotFit:"keep",minWidth:45},{name:"audioAndCC",location:"controlBar",whenDoesNotFit:"moveToMoreOptions",minWidth:45},{name:"fullscreen",location:"controlBar",whenDoesNotFit:"keep",minWidth:45},{name:"moreOptions",location:"controlBar",whenDoesNotFit:"keep",minWidth:45},{name:"arrowsBlack",location:"mainView",whenDoesNotFit:"keep",minWidth:45}],desktopAd:[{name:"playPause",location:"controlBar",whenDoesNotFit:"keep",minWidth:45},{name:"volume",location:"controlBar",whenDoesNotFit:"keep",minWidth:240},{name:"flexibleSpace",location:"controlBar",whenDoesNotFit:"keep",minWidth:1},{name:"logo",location:"controlBar",whenDoesNotFit:"keep",minWidth:125},{name:"fullscreen",location:"controlBar",whenDoesNotFit:"keep",minWidth:45},{name:"moreOptions",location:"controlBar",whenDoesNotFit:"keep",minWidth:45}],mobileContent:[{name:"volume",location:"controlBar",whenDoesNotFit:"keep",minWidth:28},{name:"live",location:"controlBar",whenDoesNotFit:"keep",minWidth:45},{name:"timeDuration",location:"controlBar",whenDoesNotFit:"keep",minWidth:60},{name:"flexibleSpace",location:"controlBar",whenDoesNotFit:"keep",minWidth:1},{name:"chromecast",location:"controlBar",whenDoesNotFit:"moveToMoreOptions",minWidth:28},{name:"airPlay",location:"controlBar",whenDoesNotFit:"moveToMoreOptions",minWidth:28},{name:"share",location:"moreOptions"},{name:"discovery",location:"moreOptions"},{name:"closedCaption",location:"moreOptions"},{name:"stereoscopic",location:"controlBar",whenDoesNotFit:"moveToMoreOptions",minWidth:28},{name:"audioAndCC",location:"controlBar",whenDoesNotFit:"moveToMoreOptions",minWidth:28},{name:"fullscreen",location:"controlBar",whenDoesNotFit:"moveToMoreOptions",minWidth:28},{name:"moreOptions",location:"controlBar",whenDoesNotFit:"keep",minWidth:28},{name:"pipButton",location:"controlBar",whenDoesNotFit:"moveToMoreOptions",minWidth:28}],mobileAd:[{name:"volume",location:"controlBar",whenDoesNotFit:"keep",minWidth:28},{name:"flexibleSpace",location:"controlBar",whenDoesNotFit:"keep",minWidth:1},{name:"fullscreen",location:"controlBar",whenDoesNotFit:"moveToMoreOptions",minWidth:28},{name:"moreOptions",location:"controlBar",whenDoesNotFit:"keep",minWidth:28}],audioOnly:{desktop:[{name:"volume",location:"controlBar",whenDoesNotFit:"keep",minWidth:200},{name:"skipControls",location:"controlBar",whenDoesNotFit:"keep",minWidth:200},{name:"moreOptions",location:"controlBar",whenDoesNotFit:"keep",minWidth:50},{name:"share",location:"moreOptions"},{name:"playbackSpeed",location:"moreOptions"}],mobile:[{name:"volume",location:"controlBar",whenDoesNotFit:"keep",minWidth:60},{name:"seekBackwards",location:"controlBar",whenDoesNotFit:"keep",minWidth:60},{name:"playPause",location:"controlBar",whenDoesNotFit:"keep",minWidth:60},{name:"seekForward",location:"controlBar",whenDoesNotFit:"keep",minWidth:60},{name:"moreOptions",location:"controlBar",whenDoesNotFit:"keep",minWidth:50},{name:"share",location:"moreOptions"},{name:"playbackSpeed",location:"moreOptions"}]}},icons:{play:{fontFamilyName:"ooyala-slick-type",fontString:"v",fontStyleClass:"oo-icon oo-icon-play-slick"},pause:{fontFamilyName:"ooyala-slick-type",fontString:"g",fontStyleClass:"oo-icon oo-icon-pause-slick"},volume:{fontFamilyName:"ooyala-slick-type",fontString:"b",fontStyleClass:"oo-icon oo-icon-volume-on-ooyala-default"},volumeOff:{fontFamilyName:"ooyala-slick-type",fontString:"p",fontStyleClass:"oo-icon oo-icon-volume-mute-ooyala-default"},expand:{fontFamilyName:"ooyala-slick-type",fontString:"i",fontStyleClass:"oo-icon oo-icon-system-fullscreen"},compress:{fontFamilyName:"ooyala-slick-type",fontString:"j",fontStyleClass:"oo-icon oo-icon-system-minimizescreen"},ellipsis:{fontFamilyName:"ooyala-slick-type",fontString:"f",fontStyleClass:"oo-icon oo-icon-system-menu"},replay:{fontFamilyName:"ooyala-slick-type",fontString:"c",fontStyleClass:"oo-icon oo-icon-system-replay"},next:{fontFamilyName:"ooyala-slick-type",fontString:"D",fontStyleClass:"oo-icon oo-icon-next"},previous:{fontFamilyName:"ooyala-slick-type",fontString:"<",fontStyleClass:"oo-icon oo-icon-previous"},forward:{fontFamilyName:"ooyala-slick-type",fontString:"(",fontStyleClass:"oo-icon oo-icon-forward"},share:{fontFamilyName:"ooyala-slick-type",fontString:"o",fontStyleClass:"oo-icon oo-icon-share"},cc:{fontFamilyName:"ooyala-slick-type",fontString:"k",fontStyleClass:"oo-icon oo-icon-cc"},stereoscopic:{fontFamilyName:"ooyala-slick-type",fontString:"W",fontStyleClass:"oo-icon"},discovery:{fontFamilyName:"ooyala-slick-type",fontString:"l",fontStyleClass:"oo-icon oo-icon-discovery-binoculars"},quality:{fontFamilyName:"ooyala-slick-type",fontString:"m",fontStyleClass:"oo-icon oo-icon-bitrate"},setting:{fontFamilyName:"ooyala-slick-type",fontString:"n",fontStyleClass:"oo-icon oo-icon-system-settings"},dismiss:{fontFamilyName:"ooyala-slick-type",fontString:"e",fontStyleClass:"oo-icon oo-icon-system-close"},toggleOn:{fontFamilyName:"fontawesome",fontString:"",fontStyleClass:""},toggleOff:{fontFamilyName:"fontawesome",fontString:"",fontStyleClass:""},left:{fontFamilyName:"ooyala-slick-type",fontString:"r",fontStyleClass:"oo-icon oo-icon-system-left-arrow"},right:{fontFamilyName:"ooyala-slick-type",fontString:"s",fontStyleClass:"oo-icon oo-icon-system-right-arrow"},learn:{fontFamilyName:"ooyala-slick-type",fontString:"t",fontStyleClass:"oo-icon oo-icon-system-more-information"},skip:{fontFamilyName:"ooyala-slick-type",fontString:"u",fontStyleClass:"oo-icon oo-icon-skip-slick"},warning:{fontFamilyName:"fontawesome",fontString:"",fontStyleClass:""},auto:{fontFamilyName:"ooyala-slick-type",fontString:"d",fontStyleClass:"oo-icon oo-icon-system-auto"},arrowsBlack:{fontFamilyName:"ooyala-slick-type",fontString:"R",fontStyleClass:"oo-icon"},arrowsWhite:{fontFamilyName:"ooyala-slick-type",fontString:"R",fontStyleClass:"oo-icon"},circleArrowsBlack:{fontFamilyName:"ooyala-slick-type",fontString:"]",fontStyleClass:"oo-icon"},circleArrowsWhite:{fontFamilyName:"ooyala-slick-type",fontString:"]",fontStyleClass:"oo-icon"},stereoOn:{fontFamilyName:"ooyala-slick-type",fontString:"W",fontStyleClass:"oo-icon oo-icon-system-auto"},stereoOff:{fontFamilyName:"ooyala-slick-type",fontString:"W",fontStyleClass:"oo-icon oo-icon-system-auto"},vrIcon:{fontFamilyName:"ooyala-slick-type",fontString:"Y",fontStyleClass:"oo-icon"},audioAndCC:{fontFamilyName:"ooyala-slick-type",fontString:"_",fontStyleClass:"oo-icon oo-icon-audio-and-cc"},selected:{fontFamilyName:"ooyala-slick-type",fontString:"@",fontStyleClass:"oo-icon oo-icon-selected"},"chromecast-connected":{fontFamilyName:"ooyala-slick-type",fontString:";",fontStyleClass:"oo-icon"},"chromecast-disconnected":{fontFamilyName:"ooyala-slick-type",fontString:":",fontStyleClass:"oo-icon"},"airPlay-connected":{fontFamilyName:"ooyala-slick-type",fontString:"|",fontStyleClass:"oo-icon"},"airPlay-disconnected":{fontFamilyName:"ooyala-slick-type",fontString:"{",fontStyleClass:"oo-icon"},pipInButton:{fontFamilyName:"ooyala-slick-type",fontString:"+",fontStyleClass:"oo-icon"},pipOutButton:{fontFamilyName:"ooyala-slick-type",fontString:",",fontStyleClass:"oo-icon"}}}},{}],7:[function(e,t,n){"use strict";var s=o(e("../constants/constants")),u=o(e("./utils"));function o(e){return e&&e.__esModule?e:{default:e}}function r(e){this.controller=e,this.vrRotationAllowed=!0,this.keyDirectionMap={},this.keyDirectionMap[s.default.KEYCODES.A]=s.default.DIRECTIONS.LEFT,this.keyDirectionMap[s.default.KEYCODES.D]=s.default.DIRECTIONS.RIGHT,this.keyDirectionMap[s.default.KEYCODES.W]=s.default.DIRECTIONS.UP,this.keyDirectionMap[s.default.KEYCODES.S]=s.default.DIRECTIONS.DOWN,this.state={seekRate:1,lastKeyDownTime:0},this.prevKeyPressedArr=[],this.keyEventDown=this.keyEventDown.bind(this),this.keyEventUp=this.keyEventUp.bind(this),this.moveVrToDirection=this.moveVrToDirection.bind(this),this.getTargetTagName=this.getTargetTagName.bind(this),document.addEventListener("keydown",this.keyEventDown),document.addEventListener("keyup",this.keyEventUp)}r.prototype={SEEK_RATE:{INCREASE:1.1,MAXIMUM:300,TIME_THRESHOLD:500},cleanUp:function(){document.removeEventListener("keydown",this.keyEventDown),document.removeEventListener("keyup",this.keyEventUp)},keyEventDown:function(e){if(this.controller.state.accessibilityControlsEnabled){var t=this.getTargetTagName(e),n=e.which||e.keyCode;switch(this.controller.videoVr&&this.moveVrToDirection(e,n,!0,t),n){case s.default.KEYCODES.SPACE_KEY:"button"!==t&&(e.preventDefault(),this.controller.togglePlayPause(e));break;case s.default.KEYCODES.UP_ARROW_KEY:case s.default.KEYCODES.DOWN_ARROW_KEY:if(this.areArrowKeysAllowed()){e.preventDefault();var o=n===s.default.KEYCODES.UP_ARROW_KEY;this.changeVolumeBy(s.default.A11Y_CTRLS.VOLUME_CHANGE_DELTA,o)}break;case s.default.KEYCODES.LEFT_ARROW_KEY:case s.default.KEYCODES.RIGHT_ARROW_KEY:if(this.areArrowKeysAllowed()){e.preventDefault();var r=e.keyCode===s.default.KEYCODES.RIGHT_ARROW_KEY,a=u.default.getPropertyValue(this.controller,"skin.props.skinConfig"),i=u.default.getSkipTimes(a),l=r?i.forward:i.backward;this.seekBy(l,r,!0)}}}},areArrowKeysAllowed:function(){var e="";switch(document.activeElement&&(e=document.activeElement.getAttribute("role")),e){case s.default.ARIA_ROLES.SLIDER:case s.default.ARIA_ROLES.MENU_ITEM:case s.default.ARIA_ROLES.MENU_ITEM_RADIO:case s.default.ARIA_ROLES.MENU_ITEM_CHECKBOX:return!1;default:return!0}},keyEventUp:function(e){if((this.controller.state.accessibilityControlsEnabled||this.controller.state.isClickedOutside)&&this.controller.videoVr){var t=this.getTargetTagName(e),n=e.which||e.keyCode;this.moveVrToDirection(e,n,!1,t)}},getTargetTagName:function(e){var t="";return e.target&&"string"==typeof e.target.tagName&&(t=e.target.tagName.toLowerCase()),t},moveVrToDirection:function(e,t,n,o){var r=this.keyDirectionMap;if(!this.controller.videoVr&&!r[t]&&"button"===o)return!1;if(void 0!==e.repeat&&(this.vrRotationAllowed=!e.repeat),!this.vrRotationAllowed)return!1;if(this.vrRotationAllowed=!n,this.controller.moveVrToDirection(!1,r[t]),!0===n){this.prevKeyPressedArr.some(function(e){return e===t})&&this.prevKeyPressedArr.push(t)}else{var a=this.prevKeyPressedArr.findIndex(function(e){return e===t});-1<a&&this.prevKeyPressedArr.splice(a,1)}var i=n,l=t;return this.prevKeyPressedArr.length&&(i=!0,l=this.prevKeyPressedArr[this.prevKeyPressedArr.length-1]),this.controller.moveVrToDirection(i,r[l]),i},changeVolumeBy:function(e,t){var n=u.default.constrainToRange(e,0,100);if(n){var o=0,r=u.default.ensureNumber(this.controller.state.volumeState.volume,0),a=100*r;(o=t?u.default.constrainToRange(a+n,0,100)/100:u.default.constrainToRange(a-n,0,100)/100)!==r&&this.controller.setVolume(o)}},canSeek:function(){var e;switch(this.controller.state.screenToShow){case s.default.SCREEN.PLAYING_SCREEN:case s.default.SCREEN.PAUSE_SCREEN:case s.default.SCREEN.END_SCREEN:e=!this.controller.state.isPlayingAd;break;default:e=!1}return e},seekBy:function(e,t,n){if(this.canSeek()){var o=u.default.ensureNumber(e,1),r=t?1:-1,a=1;n||(a=this.getSeekRate());var i=o*r*a,l=u.default.ensureNumber(this.controller.skin.state.currentPlayhead,0)+i;l=u.default.constrainToRange(l,0,this.controller.skin.state.duration),this.controller.updateSeekingPlayhead(l),this.controller.seek(l)}},getSeekRate:function(){var e=Date.now();return e-this.state.lastKeyDownTime<this.SEEK_RATE.TIME_THRESHOLD?this.state.seekRate<this.SEEK_RATE.MAXIMUM&&(this.state.seekRate*=this.SEEK_RATE.INCREASE):this.state.seekRate=1,this.state.lastKeyDownTime=e,this.state.seekRate}},t.exports=r},{"../constants/constants":73,"./utils":66}],8:[function(e,t,n){"use strict";var C=r(e("react")),A=r(e("classnames")),o=r(e("prop-types")),a=r(e("./utils")),i=r(e("../constants/constants"));function r(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){function r(e){var n,t,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),t=this,o=u(r).call(this,e),d(f(f(n=!o||"object"!==l(o)&&"function"!=typeof o?f(t):o)),"onKeyDown",function(e){switch(e.key){case i.default.KEY_VALUES.SPACE:case i.default.KEY_VALUES.ENTER:case i.default.KEY_VALUES.CONTROL:case i.default.KEY_VALUES.ALT:n.triggeredWithKeyboard=!0}var t=n.props.onKeyDown;"function"==typeof t&&t(e)}),d(f(f(n)),"onMouseUp",function(e){a.default.blurOnMouseUp(e);var t=n.props.onMouseUp;"function"==typeof t&&t(e)}),d(f(f(n)),"wasTriggeredWithKeyboard",function(e){return void 0!==e&&(n.triggeredWithKeyboard=!!e),n.triggeredWithKeyboard}),d(f(f(n)),"focus",function(){n.domElement&&"function"==typeof n.domElement.focus&&n.domElement.focus()}),n.triggeredWithKeyboard=!1,n}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(r,C.default.Component),t=r,(n=[{key:"componentDidMount",value:function(){this.props.autoFocus&&this.focus()}},{key:"componentDidUpdate",value:function(e){var t=this.props.autoFocus;!(!!e&&e.autoFocus)&&t&&this.focus()}},{key:"render",value:function(){var t=this,e=this.props,n=e.autoFocus,o=e.children,r=e.style,a=e.className,i=e.focusId,l=e.ariaLabel,s=e.ariaChecked,u=e.ariaSelected,c=e.ariaHasPopup,f=e.ariaExpanded,d=e.role,p=e.disabled,h=e.onKeyUp,m=e.onMouseDown,y=e.onMouseOver,b=e.onMouseOut,v=e.onBlur,g=e.onMouseEnter,E=e.onMouseLeave,S=e.onFocus,_=e.onClick,T=e.onTouchStart,O=e.onTouchEnd;return C.default.createElement("button",{ref:function(e){t.domElement=e},type:"button",autoFocus:n,style:r,className:(0,A.default)(a,"oo-focusable-btn"),tabIndex:"0","data-focus-id":i,"aria-label":l,"aria-checked":s,"aria-selected":u,"aria-haspopup":c,"aria-expanded":f,role:d,disabled:p,onKeyDown:this.onKeyDown,onKeyUp:h,onMouseDown:m,onMouseUp:this.onMouseUp,onMouseOver:y,onMouseOut:b,onBlur:v,onMouseEnter:g,onMouseLeave:E,onTouchStart:T,onTouchEnd:O,onFocus:S,onClick:_},o)}}])&&s(t.prototype,n),o&&s(t,o),r}();p.propTypes={autoFocus:o.default.bool,children:o.default.oneOfType([o.default.arrayOf(o.default.node),o.default.node]),style:o.default.shape({}),className:o.default.string,focusId:o.default.string,ariaLabel:o.default.string.isRequired,ariaChecked:o.default.bool,ariaSelected:o.default.bool,ariaHasPopup:o.default.bool,ariaExpanded:o.default.bool,role:o.default.string,disabled:o.default.bool,onKeyDown:o.default.func,onKeyUp:o.default.func,onMouseDown:o.default.func,onMouseUp:o.default.func,onMouseOver:o.default.func,onMouseOut:o.default.func,onBlur:o.default.func,onMouseEnter:o.default.func,onMouseLeave:o.default.func,onFocus:o.default.func,onClick:o.default.func,onTouchStart:o.default.func,onTouchEnd:o.default.func};p.defaultProps=Object.create({},{focusId:{enumerable:!0,get:function(){return Math.random().toString(36).substr(2,10)}}}),p.defaultProps.children=[],p.defaultProps.autoFocus=!1,p.defaultProps.ariaChecked=null,p.defaultProps.ariaSelected=null,p.defaultProps.ariaHasPopup=null,p.defaultProps.ariaExpanded=null,p.defaultProps.role=null,t.exports=p},{"../constants/constants":73,"./utils":66,classnames:90,"prop-types":374,react:382}],9:[function(e,t,n){"use strict";var i=o(e("react")),s=o(e("classnames")),u=o(e("./closeButton")),c=o(e("../constants/constants"));function o(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(e){function l(){var e,o,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return t=this,n=(e=p(l)).call.apply(e,[this].concat(a)),m(h(h(o=!n||"object"!==f(n)&&"function"!=typeof n?h(t):n)),"closeOverlay",function(){var e=o.props.controller;e.closeNonlinearAd(),e.onSkipAdClicked()}),m(h(h(o)),"handleOverlayClick",function(){o.props.controller.onAdsClicked(c.default.AD_CLICK_SOURCE.OVERLAY)}),m(h(h(o)),"overlayLoaded",function(){var e=o.props,t=e.controller,n=e.showOverlay;e.overlay&&n&&t.onAdOverlayLoaded()}),o}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(l,i.default.Component),t=l,(n=[{key:"render",value:function(){var e=this.props,t=e.showOverlay,n=e.overlay,o=e.showOverlayCloseButton,r=(0,s.default)({"oo-ad-overlay":!0,"oo-hidden":!n&&t}),a=(0,s.default)({"oo-ad-overlay-close-button":!0,"oo-hidden":!o});return i.default.createElement("div",{className:r},i.default.createElement("a",{onClick:this.handleOverlayClick,role:"button"},i.default.createElement("img",{src:n,className:"oo-ad-overlay-image",onLoad:this.overlayLoaded,alt:"Overlay"})),i.default.createElement(u.default,d({},this.props,{cssClass:a,closeAction:this.closeOverlay,className:"oo-ad-overlay-close-button-icon"})))}}])&&r(t.prototype,n),o&&r(t,o),l}();t.exports=l},{"../constants/constants":73,"./closeButton":13,classnames:90,react:382}],10:[function(e,t,n){"use strict";var O=r(e("react")),C=r(e("classnames")),o=r(e("prop-types")),A=r(e("../constants/constants")),N=r(e("./utils")),w=r(e("./icon")),R=r(e("./adPanelTopBarItem"));function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){function r(e){var T,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),t=this,n=l(r).call(this,e),c(u(u(T=!n||"object"!==a(n)&&"function"!=typeof n?u(t):n)),"handleSkipAdButtonClick",function(){T.props.controller.onSkipAdClicked()}),c(u(u(T)),"handleSkipAdButtonKeyUp",function(e){e.keyCode===A.default.KEYCODES.SPACE_KEY&&(e.stopPropagation(),T.handleSkipAdButtonClick())}),c(u(u(T)),"handleLearnMoreButtonClick",function(){T.props.controller.onAdsClicked(A.default.AD_CLICK_SOURCE.LEARN_MORE_BUTTON)}),c(u(u(T)),"handleLearnMoreButtonKeyUp",function(e){e.keyCode===A.default.KEYCODES.SPACE_KEY&&(e.stopPropagation(),T.handleLearnMoreButtonClick())}),c(u(u(T)),"handleAdTopBarClick",function(e){"touchend"!==e.type&&T.isMobile||e.stopPropagation()}),c(u(u(T)),"isValidAdPlaybackInfo",function(e){return null!=e&&""!==e}),c(u(u(T)),"populateAdTopBar",function(){var e=T.props,t=e.currentAdsInfo,n=e.contentTree,o=e.componentWidth,r=e.language,a=e.localizableStrings,i=e.skinConfig,l=e.controller,s=[],u="Unknown";u=t&&t.currentAdItem&&n&&t.currentAdItem.ooyalaAds&&n.title?n.title:t.currentAdItem.name;if(T.isValidAdPlaybackInfo(u)&&560<o){var c=O.default.createElement(R.default,{key:"adTitle","data-testid":"adTitle",itemClassName:"oo-ad-title"},u);s.push(c)}var f=N.default.getLocalizedString(r,A.default.SKIN_TEXT.AD,a),d=t.currentAdItem.indexInPod,p=t.numberOfAds;if(T.isValidAdPlaybackInfo(d)&&T.isValidAdPlaybackInfo(p)&&(f="".concat(f,": (").concat(d,"/").concat(p,")")),i.adScreen.showAdCountDown){var h=l.getAdRemainingTime();Number.isFinite(h)?(h=N.default.formatSeconds(Math.max(0,h)),f="".concat(f," - ").concat(h)):OO.log("ad remaining time is not a finite number")}var m=O.default.createElement(R.default,{key:"adPlaybackInfo",itemClassName:"oo-ad-playback-info","data-testid":"adPlaybackInfo"},f);s.push(m);var y=O.default.createElement(R.default,{key:"flexibleSpace",itemClassName:"oo-flexible-space"});s.push(y);var b=(0,C.default)({"oo-learn-more":!0,"oo-hidden":!t.currentAdItem.hasClickUrl});if(null!==t.currentAdItem&&T.isValidAdPlaybackInfo(t.currentAdItem.hasClickUrl)){var v=N.default.getLocalizedString(r,A.default.SKIN_TEXT.LEARN_MORE,a),g=O.default.createElement(R.default,{key:"learnMoreButton",onButtonClick:T.handleLearnMoreButtonClick,onButtonKeyUp:T.handleLearnMoreButtonKeyUp,itemClassName:b},O.default.createElement(w.default,{icon:"learn",className:"oo-button-icon",skinConfig:i}),v);s.push(g)}var E=(0,C.default)({"oo-skip-button":!0,"oo-visible":t.skipAdButtonEnabled,"oo-enabled":t.skipAdButtonEnabled}),S=N.default.getLocalizedString(r,A.default.SKIN_TEXT.SKIP_AD,a),_=O.default.createElement(R.default,{key:"skipButton",onButtonClick:T.handleSkipAdButtonClick,onButtonKeyUp:T.handleSkipAdButtonKeyUp,itemClassName:E},O.default.createElement(w.default,{icon:"skip",className:"oo-button-icon",skinConfig:i}),S);return s.push(_),s});var o=e.controller;return T.isMobile=o.state.isMobile,T}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(r,O.default.Component),t=r,(n=[{key:"render",value:function(){var e=this.populateAdTopBar();return O.default.createElement("div",{className:"oo-ad-screen-panel"},O.default.createElement("div",{className:"oo-ad-screen-panel-click-layer"}),O.default.createElement("div",{className:"oo-ad-top-bar",onClick:this.handleAdTopBarClick,onTouchEnd:this.handleAdTopBarClick},e))}}])&&i(t.prototype,n),o&&i(t,o),r}();f.propTypes={currentAdsInfo:o.default.shape({currentAdItem:o.default.shape({hasClickUrl:o.default.bool,name:o.default.string,indexInPod:o.default.number,isLive:o.default.bool}),numberOfAds:0,skipAdButtonEnabled:!1}),contentTree:o.default.shape({title:o.default.string}),controller:o.default.shape({setCurrentAudio:o.default.func,onClosedCaptionChange:o.default.func,state:o.default.shape({closedCaptionOptions:o.default.shape({}),multiAudio:o.default.shape({tracks:o.default.array})}),languageList:o.default.array}).isRequired,componentWidth:o.default.number,language:o.default.string,localizableStrings:o.default.shape({}),skinConfig:o.default.shape({})},f.defaultProps={currentAdsInfo:{numberOfAds:0,skipAdButtonEnabled:!1,currentAdItem:{hasClickUrl:!1,name:"",indexInPod:0,isLive:!1}},contentTree:{title:""},componentWidth:null,language:"",localizableStrings:{en:{}},skinConfig:{}},t.exports=f},{"../constants/constants":73,"./adPanelTopBarItem":11,"./icon":42,"./utils":66,classnames:90,"prop-types":374,react:382}],11:[function(e,t,n){"use strict";var a=r(e("react")),o=r(e("prop-types"));function r(e){return e&&e.__esModule?e:{default:e}}var i=function(e){var t=e.itemClassName,n=e.onButtonClick,o=e.onButtonKeyUp,r=e.children;return n?a.default.createElement("div",{className:t,onClick:n,onKeyUp:o,role:"button",tabIndex:0},r):a.default.createElement("div",{className:t},r)};i.propTypes={itemClassName:o.default.string,onButtonClick:o.default.func,onButtonKeyUp:o.default.func,children:o.default.oneOfType([o.default.arrayOf(o.default.node),o.default.node])},i.defaultProps={itemClassName:"",onButtonClick:null,onButtonKeyUp:function(){},children:[]},t.exports=i},{"prop-types":374,react:382}],12:[function(e,t,n){"use strict";var l=r(e("react")),o=r(e("prop-types")),s=r(e("classnames")),u=r(e("../constants/constants")),c=r(e("./utils"));function r(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t=e.language,n=e.localizableStrings,o=e.className,r=e.device,a=c.default.getLocalizedString(t,u.default.SKIN_TEXT.CONNECTED_TO,n),i=(0,s.default)("oo-info-panel-cast",o);return l.default.createElement("div",{className:i},l.default.createElement("p",null,a," ",l.default.createElement("span",null,r)))};a.propTypes={className:o.default.string,device:o.default.string,language:o.default.string,localizableStrings:o.default.shape({})},a.defaultProps={className:"",device:"",language:"en",localizableStrings:{en:{}}},t.exports=a},{"../constants/constants":73,"./utils":66,classnames:90,"prop-types":374,react:382}],13:[function(e,t,n){"use strict";var l=r(e("react")),o=r(e("prop-types")),s=r(e("./accessibleButton")),u=r(e("./icon")),c=r(e("../constants/constants"));function r(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t=e.className,n=e.cssClass,o=e.role,r=e.closeAction,a=e.skinConfig,i=e.style;return l.default.createElement(s.default,{className:n,focusId:"".concat(c.default.FOCUS_IDS.CLOSE,"-").concat(Date.now()),ariaLabel:c.default.ARIA_LABELS.CLOSE,role:o,onClick:r},l.default.createElement(u.default,{icon:"dismiss",className:t,skinConfig:a,style:i}))};a.propTypes={className:o.default.string,cssClass:o.default.string,role:o.default.string,style:o.default.shape({}),skinConfig:o.default.shape({}).isRequired,closeAction:o.default.func},a.defaultProps={className:"",cssClass:"oo-close-button",role:"",style:{},closeAction:function(){}},t.exports=a},{"../constants/constants":73,"./accessibleButton":8,"./icon":42,"prop-types":374,react:382}],14:[function(e,t,n){"use strict";var f=r(e("react")),d=r(e("classnames")),o=r(e("prop-types")),p=r(e("../utils")),h=r(e("../../constants/constants")),m=r(e("./tab")),y=r(e("./multiAudioTab"));function r(e){return e&&e.__esModule?e:{default:e}}var a=function(n){var e,t,o=null,r=null,a=n.controller,i=n.localizableStrings,l=n.language,s=n.skinConfig,u=n.menuClassName;if(a&&a.state&&a.state.multiAudio&&a.state.multiAudio.tracks&&0<a.state.multiAudio.tracks.length&&(o=f.default.createElement(y.default,{header:p.default.getLocalizedString(l,h.default.SKIN_TEXT.AUDIO,i),handleClick:function(t){if(n.controller&&"function"==typeof n.controller.setCurrentAudio&&n.controller.state&&n.controller.state.multiAudio&&n.controller.state.multiAudio.tracks){var e=n.controller.state.multiAudio.tracks.find(function(e){return e.id===t});n.controller.setCurrentAudio(e)}n.togglePopoverAction&&"function"==typeof n.togglePopoverAction&&n.togglePopoverAction({restoreToggleButtonFocus:!0})},skinConfig:s,audioTracksList:a.state.multiAudio.tracks,language:l,languageList:a.languageList,localizableStrings:i})),a&&a.state&&a.state.closedCaptionOptions&&a.state.closedCaptionOptions.availableLanguages&&a.state.closedCaptionOptions.availableLanguages.languages&&0<a.state.closedCaptionOptions.availableLanguages.languages.length){var c=(e=a.state.closedCaptionOptions.availableLanguages.languages,t=a.state.closedCaptionOptions.language,Array.isArray(e)?e.map(function(e){return{id:e,label:e,enabled:e===t}}):[]);r=f.default.createElement(m.default,{tabClassName:"oo-hidden",handleClick:function(e){n.controller&&"function"==typeof n.controller.onClosedCaptionChange&&n.controller.onClosedCaptionChange("language",e)},skinConfig:s,itemsList:c,header:p.default.getLocalizedString(l,h.default.SKIN_TEXT.SUBTITLES,i)})}return f.default.createElement("div",{className:(0,d.default)("oo-cc-ma-menu",u)},o,r)};a.propTypes={menuClassName:o.default.string,skinConfig:o.default.shape({}),togglePopoverAction:o.default.func,language:o.default.string,localizableStrings:o.default.shape({}),controller:o.default.shape({setCurrentAudio:o.default.func,onClosedCaptionChange:o.default.func,state:o.default.shape({closedCaptionOptions:o.default.shape({}),multiAudio:o.default.shape({tracks:o.default.array})}),languageList:o.default.array}).isRequired},a.defaultProps={menuClassName:"",skinConfig:{},togglePopoverAction:function(){},language:"",localizableStrings:{}},t.exports=a},{"../../constants/constants":73,"../utils":66,"./multiAudioTab":16,"./tab":17,classnames:90,"prop-types":374,react:382}],15:[function(e,t,n){"use strict";var a=e("underscore"),r=o(e("../../constants/constants")),i=o(e("../utils"));function o(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(o=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);o=!0);}catch(e){r=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function s(e){var t=e.language||"",n=e.label||"",o=e.noLanguageText||r.default.SKIN_TEXT.UNDEFINED_LANGUAGE;return t.length||n.length?t.length&&!n.length?t:!t.length&&n.length?n:(e.langCode===r.default.LANGUAGE.UNDEFINED_LANGUAGE&&(t=""),t.concat(" ",n).trim()):o}t.exports={getDisplayLabel:function(e){var t="";return e&&e.label&&e.lang!==e.label&&(t=e.label),t},getDisplayLanguage:function(e,t){var n="";if(i.default.isValidString(t)&&e&&Array.isArray(e)&&e.length){var o=e.find(function(e){return e["2T"]===t||e[1]===t||e["2B"]===t||e[3]===t});o&&(n=o.local)}return n},getDisplayTitle:s,transformTracksList:function(e,o){var t=[];if(e&&e.length){var r=(0,a.groupBy)(e,"language"),n=Object.keys(r);t=n.length===e.length?e.map(function(e){var t=s({language:e.language,langCode:e.lang,noLanguageText:o});return{id:e.id,label:t,enabled:e.enabled}}):n.map(function(e){if(1<r[e].length)return r[e].map(function(e){var t=s({language:e.language,label:e.label,langCode:e.lang,noLanguageText:o});return{enabled:e.enabled,label:t,id:e.id}});var t=l(r[e],1)[0],n=s({language:t.language,langCode:t.lang,noLanguageText:o});return{enabled:t.enabled,label:n,id:t.id}}).reduce(function(e,t){return e.concat(t)},[])}return t},getUniqueTracks:function(e){var t=[];if(e&&e.length&&Array.isArray(e)){var n=(0,a.groupBy)(e,"label"),o=Object.keys(n);t=o.length===e.length?e:o.map(function(e){return 1<n[e].length?n[e].map(function(e,t){var n=t?" ".concat(t):"",o=e.label.concat(n);return{enabled:e.enabled,label:o,id:e.id}}):l(n[e],1)[0]}).reduce(function(e,t){return e.concat(t)},[])}return t},getLocalizedSpecialLanguage:function(e,t,n,o){var r=o?o[e]:"",a=i.default.getLocalizedString(t,r,n);return a=a||r||""},isSpecialLanguage:function(e,t){return!!t&&!!t[e]}}},{"../../constants/constants":73,"../utils":66,underscore:391}],16:[function(e,t,n){"use strict";var d=r(e("react")),o=r(e("prop-types")),p=r(e("./tab")),h=r(e("./helpers")),m=r(e("../../constants/constants")),y=r(e("../utils"));function r(e){return e&&e.__esModule?e:{default:e}}var b={};b[m.default.LANGUAGE.UNDEFINED_LANGUAGE]=m.default.SKIN_TEXT.UNDEFINED_LANGUAGE,b[m.default.LANGUAGE.NO_LINGUISTIC_CONTENT]=m.default.SKIN_TEXT.NO_LINGUISTIC_CONTENT,b[m.default.LANGUAGE.UNCODED_LANGUAGES]=m.default.SKIN_TEXT.UNCODED_LANGUAGES,b[m.default.LANGUAGE.MULTIPLE_LANGUAGES]=m.default.SKIN_TEXT.MULTIPLE_LANGUAGES;var a=function(o){var e=o.audioTracksList,t=o.language,n=o.localizableStrings,r=o.handleClick,a=o.skinConfig,i=o.languageList,l=o.header,s=e.map(function(e){var t="";t=h.default.isSpecialLanguage(e.lang,b)?h.default.getLocalizedSpecialLanguage(e.lang,o.language,o.localizableStrings,b):h.default.getDisplayLanguage(i,e.lang);var n=h.default.getDisplayLabel(e);return{enabled:e.enabled,language:t,label:n,id:e.id,lang:e.lang}}),u=y.default.getLocalizedString(t,m.default.SKIN_TEXT.UNDEFINED_LANGUAGE,n),c=h.default.transformTracksList(s,u),f=h.default.getUniqueTracks(c);return d.default.createElement(p.default,{handleClick:r,skinConfig:a,itemsList:f,header:l})};a.propTypes={header:o.default.string.isRequired,audioTracksList:o.default.arrayOf(o.default.shape({id:o.default.string.isRequired,lang:o.default.string.isRequired,label:o.default.string.isRequired,enabled:o.default.bool.isRequired})).isRequired,skinConfig:o.default.shape({}),handleClick:o.default.func,language:o.default.string,languageList:o.default.arrayOf(o.default.shape({})),localizableStrings:o.default.shape({})},a.defaultProps={skinConfig:{},language:"",handleClick:function(){},languageList:[],localizableStrings:{}},t.exports=a},{"../../constants/constants":73,"../utils":66,"./helpers":15,"./tab":17,"prop-types":374,react:382}],17:[function(e,t,n){"use strict";var i=a(e("react")),l=a(e("classnames")),o=a(e("prop-types")),s=a(e("../customScrollArea")),u=a(e("../icon")),c=a(e("../accessibleButton")),r=a(e("../higher-order/accessibleMenu")),f=a(e("../../constants/constants"));function a(e){return e&&e.__esModule?e:{default:e}}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var b=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),h(this,m(t).apply(this,arguments))}var n,o,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(t,i.default.Component),n=t,(o=[{key:"handleClick",value:function(e){var t=this.props.handleClick;"function"==typeof t&&t(e)}},{key:"render",value:function(){var o=this,e=this.props,t=e.tabClassName,n=e.header,r=e.itemsList,a=e.skinConfig;return i.default.createElement("div",{className:(0,l.default)("oo-cc-ma-menu__coll",t)},i.default.createElement("div",{className:"oo-cc-ma-menu__header"},n),i.default.createElement(s.default,{className:"oo-cc-ma-menu__scrollarea",speed:1,horizontal:!1},i.default.createElement("ul",{className:"oo-cc-ma-menu__list",role:f.default.ARIA_ROLES.MENU},r.map(function(e,t){var n=e.id;return i.default.createElement("li",{key:n,role:f.default.ARIA_ROLES.PRESENTATION,className:(0,l.default)("oo-cc-ma-menu__element",{"oo-cc-ma-menu__element--active":e.enabled})},i.default.createElement(c.default,{key:e.id,className:"oo-multi-audio-btn",focusId:f.default.FOCUS_IDS.MULTI_AUDIO+t,role:f.default.ARIA_ROLES.MENU_ITEM_RADIO,ariaLabel:e.label,ariaChecked:e.enabled,onClick:function(){return o.handleClick(n)}},i.default.createElement(u.default,{skinConfig:a,icon:"selected",className:(0,l.default)({"oo-icon-hidden":!e.enabled})}),i.default.createElement("span",{className:"oo-cc-ma-menu__name",title:e.label},e.label)))}))))}}])&&p(n.prototype,o),r&&p(n,r),t}(),v=(0,r.default)(b,{useRovingTabindex:!1});b.defaultProps={tabClassName:"",header:"",skinConfig:{responsive:{breakpoints:{xs:{id:"xs"},sm:{id:"sm"},md:{id:"md"},lg:{id:"lg"}}}},handleClick:function(){}},b.propTypes={tabClassName:o.default.string,header:o.default.string,itemsList:o.default.arrayOf(o.default.shape({id:o.default.string.isRequired,label:o.default.string.isRequired,enabled:o.default.bool.isRequired})).isRequired,skinConfig:o.default.shape({}),handleClick:o.default.func},t.exports=v},{"../../constants/constants":73,"../accessibleButton":8,"../customScrollArea":33,"../higher-order/accessibleMenu":38,"../icon":42,classnames:90,"prop-types":374,react:382}],18:[function(e,t,n){"use strict";var s=r(e("react")),o=r(e("prop-types")),u=r(e("../utils")),c=r(e("../../constants/constants")),f=r(e("./selectionContainer")),d=r(e("../slider"));function r(e){return e&&e.__esModule?e:{default:e}}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(e){function l(){var e,r,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return t=this,n=(e=h(l)).call.apply(e,[this].concat(a)),y(m(m(r=!n||"object"!==p(n)&&"function"!=typeof n?m(t):n)),"changeTextOpacity",function(e){var t=r.props,n=t.closedCaptionOptions,o=t.controller;n.enabled||o.toggleClosedCaptionEnabled(),o.onClosedCaptionChange("textOpacity",e)}),y(m(m(r)),"changeBackgroundOpacity",function(e){var t=r.props,n=t.closedCaptionOptions,o=t.controller;n.enabled||o.toggleClosedCaptionEnabled(),o.onClosedCaptionChange("backgroundOpacity",e)}),y(m(m(r)),"changeWindowOpacity",function(e){var t=r.props,n=t.closedCaptionOptions,o=t.controller;n.enabled||o.toggleClosedCaptionEnabled(),o.onClosedCaptionChange("windowOpacity",e)}),y(m(m(r)),"percentString",function(e){return"".concat((100*e).toString(),"%")}),r}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(l,s.default.Component),t=l,(n=[{key:"render",value:function(){var e=this.props,t=e.language,n=e.localizableStrings,o=e.closedCaptionOptions,r=u.default.getLocalizedString(t,c.default.SKIN_TEXT.TEXT_OPACITY,n),a=u.default.getLocalizedString(t,c.default.SKIN_TEXT.BACKGROUND_OPACITY,n),i=u.default.getLocalizedString(t,c.default.SKIN_TEXT.WINDOW_OPACITY,n);return s.default.createElement("div",{className:"oo-caption-opacity-tab"},s.default.createElement("div",{className:"oo-caption-opacity-inner-wrapper","aria-label":c.default.ARIA_LABELS.CAPTION_OPACITY_MENU,role:c.default.ARIA_ROLES.MENU},s.default.createElement(f.default,{title:r,selectionText:this.percentString(o.textOpacity)},s.default.createElement(d.default,{value:parseFloat(o.textOpacity),onChange:this.changeTextOpacity,className:"oo-slider-caption-opacity",itemRef:"textOpacitySlider",minValue:0,maxValue:1,step:.1,usePercentageForAria:!0,ariaLabel:r,settingName:r})),s.default.createElement(f.default,{title:a,selectionText:this.percentString(o.backgroundOpacity)},s.default.createElement(d.default,{value:parseFloat(o.backgroundOpacity),onChange:this.changeBackgroundOpacity,className:"oo-slider-caption-opacity",itemRef:"backgroundOpacitySlider",minValue:0,maxValue:1,step:.1,usePercentageForAria:!0,ariaLabel:a,settingName:a})),s.default.createElement(f.default,{title:i,selectionText:this.percentString(o.windowOpacity)},s.default.createElement(d.default,{value:parseFloat(o.windowOpacity),onChange:this.changeWindowOpacity,className:"oo-slider-caption-opacity",itemRef:"windowOpacitySlider",minValue:0,maxValue:1,step:.1,usePercentageForAria:!0,ariaLabel:i,settingName:i}))))}}])&&a(t.prototype,n),o&&a(t,o),l}();l.propTypes={language:o.default.string,localizableStrings:o.default.shape({}),closedCaptionOptions:o.default.shape({enabled:o.default.bool,textOpacity:o.default.number,backgroundOpacity:o.default.number,windowOpacity:o.default.number}),controller:o.default.shape({toggleClosedCaptionEnabled:o.default.func,onClosedCaptionChange:o.default.func}).isRequired},l.defaultProps={language:"en",localizableStrings:{},closedCaptionOptions:{}},t.exports=l},{"../../constants/constants":73,"../slider":56,"../utils":66,"./selectionContainer":27,"prop-types":374,react:382}],19:[function(e,t,n){"use strict";var l=o(e("react")),s=o(e("classnames")),u=o(e("../utils")),c=o(e("../../constants/constants")),f=o(e("../textTrackPanel"));function o(e){return e&&e.__esModule?e:{default:e}}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}t.exports=function(e){var t=e.language,n=e.localizableStrings,o=e.closedCaptionOptions,r=u.default.getLocalizedString(t,c.default.SKIN_TEXT.CLOSED_CAPTION_PREVIEW,n),a=u.default.getLocalizedString(o.language,c.default.SKIN_TEXT.SAMPLE_TEXT,n);a||(a=u.default.getLocalizedString("en",c.default.SKIN_TEXT.SAMPLE_TEXT,e.localizableStrings));var i=(0,s.default)({"oo-preview-caption":!0,"oo-disabled":!o.enabled});return l.default.createElement("div",{className:"oo-preview-panel"},l.default.createElement("div",{className:i},r),l.default.createElement(f.default,d({},e,{cueText:a})))}},{"../../constants/constants":73,"../textTrackPanel":59,"../utils":66,classnames:90,react:382}],20:[function(e,t,n){"use strict";var c=o(e("react")),f=o(e("../utils")),d=o(e("../../constants/constants")),p=o(e("./languageTab")),h=o(e("./colorSelectionTab")),m=o(e("./captionOpacityTab")),y=o(e("./fontTypeTab")),b=o(e("./fontSizeTab")),v=o(e("./textEnhancementsTab")),g=o(e("./ccPreviewPanel")),E=o(e("../tabs"));function o(e){return e&&e.__esModule?e:{default:e}}function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var _=E.default.Panel;t.exports=function(e){var t=e.language,n=e.localizableStrings,o=e.componentWidth,r=f.default.getLocalizedString(t,d.default.SKIN_TEXT.LANGUAGE_TAB_TITLE,n),a=f.default.getLocalizedString(t,d.default.SKIN_TEXT.COLOR_SELECTION_TAB_TITLE,n),i=f.default.getLocalizedString(t,d.default.SKIN_TEXT.CAPTION_OPACITY_TAB_TITLE,n),l=f.default.getLocalizedString(t,d.default.SKIN_TEXT.FONT_TYPE_TAB_TITLE,n),s=f.default.getLocalizedString(t,d.default.SKIN_TEXT.FONT_SIZE_TAB_TITLE,n),u=f.default.getLocalizedString(t,d.default.SKIN_TEXT.TEXT_ENHANCEMENTS_TAB_TITLE,n);return c.default.createElement("div",{className:"oo-content-panel oo-closed-captions-panel"},c.default.createElement(E.default,S({className:"captions-navbar",showScrollButtons:o<{en:730,es:995,zh:610}[t]},e),c.default.createElement(_,{title:r},c.default.createElement(p.default,e)),c.default.createElement(_,{title:a},c.default.createElement(h.default,e)),c.default.createElement(_,{title:i},c.default.createElement(m.default,e)),c.default.createElement(_,{title:l},c.default.createElement(y.default,e)),c.default.createElement(_,{title:s},c.default.createElement(b.default,e)),c.default.createElement(_,{title:u},c.default.createElement(v.default,e))),c.default.createElement(g.default,e))}},{"../../constants/constants":73,"../tabs":58,"../utils":66,"./captionOpacityTab":18,"./ccPreviewPanel":19,"./colorSelectionTab":22,"./fontSizeTab":23,"./fontTypeTab":24,"./languageTab":25,"./textEnhancementsTab":28,react:382}],21:[function(e,t,n){"use strict";var a=r(e("react")),s=r(e("../../constants/constants")),i=r(e("../utils")),o=r(e("../higher-order/accessibleMenu")),u=r(e("../accessibleButton")),c=r(e("./onOffSwitch")),f=r(e("../closeButton"));function r(e){return e&&e.__esModule?e:{default:e}}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(e){function l(){var e,t,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=this,o=(e=m(l)).call.apply(e,[this].concat(a)),v(b(b(t=!o||"object"!==d(o)&&"function"!=typeof o?b(n):o)),"moreOptionsBtn",null),v(b(b(t)),"handleClose",function(){(0,t.props.togglePopoverAction)({restoreToggleButtonFocus:!0})}),v(b(b(t)),"handleMoreCaptions",function(){var e=t.props.controller;t.moreOptionsBtn&&(t.moreOptionsBtn.wasTriggeredWithKeyboard()&&(e.state.focusedControl=s.default.CONTROL_BAR_KEYS.CLOSED_CAPTION),e.state.closedCaptionOptions.autoFocus=t.moreOptionsBtn.wasTriggeredWithKeyboard(),t.moreOptionsBtn.wasTriggeredWithKeyboard(!1)),e.toggleScreen(s.default.SCREEN.CLOSED_CAPTION_SCREEN),t.handleClose()}),t}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(l,a.default.Component),t=l,(n=[{key:"render",value:function(){var t=this,e=this.props,n=e.language,o=e.localizableStrings,r=i.default.getLocalizedString(n,s.default.SKIN_TEXT.CC_OPTIONS,o);return a.default.createElement("ul",{className:"oo-popover-horizontal",role:"menu"},a.default.createElement("li",{role:"presentation"},a.default.createElement(c.default,p({},this.props,{ariaLabel:s.default.ARIA_LABELS.TOGGLE_CLOSED_CAPTIONS,role:s.default.ARIA_ROLES.MENU_ITEM_CHECKBOX}))),a.default.createElement("li",{role:"presentation"},a.default.createElement(u.default,{ref:function(e){t.moreOptionsBtn=e},className:"oo-more-captions",ariaLabel:s.default.ARIA_LABELS.CAPTION_OPTIONS,role:s.default.ARIA_ROLES.MENU_ITEM,onClick:this.handleMoreCaptions},r)),a.default.createElement("li",{role:"presentation"},a.default.createElement(f.default,p({},this.props,{role:s.default.ARIA_ROLES.MENU_ITEM,closeAction:this.handleClose}))))}}])&&h(t.prototype,n),o&&h(t,o),l}(),g=(0,o.default)(l);t.exports=g},{"../../constants/constants":73,"../accessibleButton":8,"../closeButton":13,"../higher-order/accessibleMenu":38,"../utils":66,"./onOffSwitch":26,react:382}],22:[function(e,t,n){"use strict";var c=o(e("react")),f=o(e("../utils")),d=o(e("../../constants/constants")),p=o(e("./selectionContainer")),h=o(e("../colorSelector"));function o(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v={TEXT:["White","Blue","Magenta","Green","Yellow","Red","Cyan","Black"],WINDOW:["Transparent","White","Blue","Magenta","Green","Yellow","Red","Cyan","Black"],BACKGROUND:["Transparent","White","Blue","Magenta","Green","Yellow","Red","Cyan","Black"]},i=function(e){function l(){var e,r,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return t=this,n=(e=u(l)).call.apply(e,[this].concat(a)),b(y(y(r=!n||"object"!==s(n)&&"function"!=typeof n?y(t):n)),"changeTextColor",function(e){var t=r.props,n=t.closedCaptionOptions,o=t.controller;n.enabled||o.toggleClosedCaptionEnabled(),o.onClosedCaptionChange("textColor",e)}),b(y(y(r)),"changeWindowColor",function(e){var t=r.props,n=t.closedCaptionOptions,o=t.controller;n.enabled||o.toggleClosedCaptionEnabled(),o.onClosedCaptionChange("windowColor",e)}),b(y(y(r)),"changeBackgroundColor",function(e){var t=r.props,n=t.closedCaptionOptions,o=t.controller;n.enabled||o.toggleClosedCaptionEnabled(),o.onClosedCaptionChange("backgroundColor",e)}),r}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(l,c.default.Component),t=l,(n=[{key:"render",value:function(){var e=this.props,t=e.closedCaptionOptions,n=e.language,o=e.localizableStrings,r=f.default.getLocalizedString(n,d.default.SKIN_TEXT.TEXT_COLOR,o),a=f.default.getLocalizedString(n,d.default.SKIN_TEXT[t.textColor.toUpperCase()],o),i=f.default.getLocalizedString(n,d.default.SKIN_TEXT.BACKGROUND_COLOR,o),l=f.default.getLocalizedString(n,d.default.SKIN_TEXT[t.backgroundColor.toUpperCase()],o),s=f.default.getLocalizedString(n,d.default.SKIN_TEXT.WINDOW_COLOR,o),u=f.default.getLocalizedString(n,d.default.SKIN_TEXT[t.windowColor.toUpperCase()],o);return c.default.createElement("div",{className:"oo-color-selection-tab"},c.default.createElement("div",{className:"oo-color-selection-inner-wrapper"},c.default.createElement(p.default,{className:"oo-text-color-selection-container",title:r,selectionText:a},c.default.createElement("div",{className:"oo-text-color-items-container"},c.default.createElement(h.default,m({},this.props,{ariaLabel:d.default.ARIA_LABELS.TEXT_COLOR_MENU,colors:v.TEXT,onColorChange:this.changeTextColor,selectedColor:t.textColor,enabled:t.enabled})))),c.default.createElement(p.default,{title:i,selectionText:l},c.default.createElement(h.default,m({},this.props,{ariaLabel:d.default.ARIA_LABELS.BACKGROUND_COLOR_MENU,colors:v.BACKGROUND,onColorChange:this.changeBackgroundColor,selectedColor:t.backgroundColor,enabled:t.enabled}))),c.default.createElement(p.default,{title:s,selectionText:u},c.default.createElement(h.default,m({},this.props,{ariaLabel:d.default.ARIA_LABELS.WINDOW_COLOR_MENU,colors:v.WINDOW,onColorChange:this.changeWindowColor,selectedColor:t.windowColor,enabled:t.enabled})))))}}])&&r(t.prototype,n),o&&r(t,o),l}();t.exports=i},{"../../constants/constants":73,"../colorSelector":29,"../utils":66,"./selectionContainer":27,react:382}],23:[function(e,t,n){"use strict";var f=i(e("react")),r=i(e("classnames")),o=i(e("prop-types")),d=i(e("../utils")),p=i(e("../accessibleButton")),a=i(e("../higher-order/accessibleMenu")),h=i(e("../../constants/constants")),m=i(e("./selectionContainer"));function i(e){return e&&e.__esModule?e:{default:e}}function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var g=["Small","Medium","Large","Extra Large"],u=function(e){function c(){var e,r,t,n,o,a,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];return t=this,n=(e=b(c)).call.apply(e,[this].concat(s)),r=!n||"object"!==y(n)&&"function"!=typeof n?v(t):n,o=v(v(r)),i=function(e){var t=r.props,n=t.closedCaptionOptions,o=t.controller;n.enabled||o.toggleClosedCaptionEnabled(),o.onClosedCaptionChange("fontSize",e)},(a="changeFontSize")in o?Object.defineProperty(o,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[a]=i,r}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(c,f.default.Component),t=c,(n=[{key:"setClassname",value:function(e,t){var n=this.props.closedCaptionOptions;return(0,r.default)({"oo-font-size-letter":"letter"===t,"oo-font-size-label":"label"===t,"oo-font-size-selected":n.fontSize===e&&n.enabled,"oo-font-size-label-selected":n.fontSize===e&&n.enabled&&"label"===t,"oo-disabled":!n.enabled})}},{key:"render",value:function(){var r=this,e=this.props,a=e.language,i=e.localizableStrings,l=e.closedCaptionOptions,s=e.skinConfig,t=d.default.getLocalizedString(a,h.default.SKIN_TEXT.FONT_SIZE,i),n=d.default.getLocalizedString(a,h.default.SKIN_TEXT[l.fontSize.toUpperCase().replace(" ","_")],i),u=[];return g.forEach(function(e){var t=l.fontSize===e,n={};l.enabled&&s.general.accentColor&&t&&(n={color:s.general.accentColor});var o=d.default.getLocalizedString(a,h.default.SKIN_TEXT[e.toUpperCase().replace(" ","_")],i);u.push(f.default.createElement(p.default,{key:e,className:"oo-font-size-container",ariaLabel:o,ariaChecked:t,role:h.default.ARIA_ROLES.MENU_ITEM_RADIO,onClick:function(){return r.changeFontSize(e)}},f.default.createElement("span",{className:"".concat(r.setClassname(e,"letter")," oo-font-size-letter-").concat(e.replace(" ","-")),style:n},"A"),f.default.createElement("span",{className:r.setClassname(e,"label"),style:n},o)))}),f.default.createElement("div",{className:"oo-font-size-tab"},f.default.createElement("div",{className:"oo-font-size-inner-wrapper"},f.default.createElement(m.default,{title:t,selectionText:n,ariaLabel:h.default.ARIA_LABELS.FONT_SIZE_MENU,role:h.default.ARIA_ROLES.MENU},u)))}}])&&l(t.prototype,n),o&&l(t,o),c}(),c=(0,a.default)(u,{useRovingTabindex:!0});u.propTypes={language:o.default.string,localizableStrings:o.default.objectOf(o.default.objectOf(o.default.string)),closedCaptionOptions:o.default.shape({enabled:o.default.bool,fontSize:o.default.string}),controller:o.default.shape({toggleClosedCaptionEnabled:o.default.func.isRequired,onClosedCaptionChange:o.default.func.isRequired}).isRequired,skinConfig:o.default.shape({general:o.default.shape({accentColor:o.default.string})})},u.defaultProps={language:"en",localizableStrings:{},closedCaptionOptions:{},skinConfig:{}},t.exports=c},{"../../constants/constants":73,"../accessibleButton":8,"../higher-order/accessibleMenu":38,"../utils":66,"./selectionContainer":27,classnames:90,"prop-types":374,react:382}],24:[function(e,t,n){"use strict";var s=r(e("react")),o=r(e("prop-types")),u=r(e("../../constants/constants")),c=r(e("../dataSelector"));function r(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=function(e){function l(e){var o,t,n,r,a,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),t=this,n=p(l).call(this,e),o=!n||"object"!==f(n)&&"function"!=typeof n?h(t):n,r=h(h(o)),i=function(e){var t=o.props,n=t.controller;t.closedCaptionOptions.enabled||n.toggleClosedCaptionEnabled(),n.onClosedCaptionChange("fontType",e),o.setState({selectedFontType:e})},(a="changeFontType")in r?Object.defineProperty(r,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[a]=i,o.state={selectedFontType:e.closedCaptionOptions.fontType,availableFontTypes:["Monospaced Serif","Proportional Serif","Monospaced Sans-Serif","Proportional Sans-Serif","Casual","Cursive","Small Capitals"]},o}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(l,s.default.Component),t=l,(n=[{key:"render",value:function(){var e=this.props,t=e.responsiveView,n=e.dataItemsPerPage,o=e.closedCaptionOptions,r=this.state,a=r.selectedFontType,i=r.availableFontTypes;return s.default.createElement("div",{className:"oo-font-type-tab"},s.default.createElement(c.default,d({},this.props,{ariaLabel:u.default.ARIA_LABELS.FONT_TYPE_MENU,viewSize:t,dataItemsPerPage:n,selectedData:a,enabled:o.enabled,availableDataItems:i,onDataChange:this.changeFontType})))}}])&&a(t.prototype,n),o&&a(t,o),l}();l.propTypes={dataItemsPerPage:o.default.objectOf(o.default.number),responsiveView:o.default.string},l.defaultProps={dataItemsPerPage:{xs:1,sm:4,md:8,lg:8},responsiveView:"md"},t.exports=l},{"../../constants/constants":73,"../dataSelector":34,"prop-types":374,react:382}],25:[function(e,t,n){"use strict";var a=r(e("react")),i=r(e("lodash.values")),o=r(e("prop-types")),s=r(e("../../constants/constants")),u=r(e("../dataSelector"));function r(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=function(e){function l(e){var i,t,n,o,r,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),t=this,n=p(l).call(this,e),i=!n||"object"!==c(n)&&"function"!=typeof n?m(t):n,o=m(m(i)),a=function(e){var t=i.props,n=t.closedCaptionOptions,o=t.controller,r=n.availableLanguages,a={};r.languages.forEach(function(e){a[r.locale[e]]=e}),n.enabled||o.toggleClosedCaptions(),o.onClosedCaptionChange("language",a[e]),i.setState({selectedLanguage:e})},(r="changeLanguage")in o?Object.defineProperty(o,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[r]=a,i.state={selectedLanguage:e.closedCaptionOptions.availableLanguages.locale[e.closedCaptionOptions.language]},i}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(l,a.default.Component),t=l,(n=[{key:"render",value:function(){var e=this.props,t=e.responsiveView,n=e.dataItemsPerPage,o=e.closedCaptionOptions,r=this.state.selectedLanguage;return a.default.createElement("div",{className:"oo-language-tab"},a.default.createElement(u.default,f({},this.props,{ariaLabel:s.default.ARIA_LABELS.LANGUAGE_MENU,viewSize:t,dataItemsPerPage:n,selectedData:r,enabled:o.enabled,availableDataItems:(0,i.default)(o.availableLanguages.locale),onDataChange:this.changeLanguage})))}}])&&d(t.prototype,n),o&&d(t,o),l}();l.propTypes={dataItemsPerPage:o.default.objectOf(o.default.number),responsiveView:o.default.string},l.defaultProps={dataItemsPerPage:{xs:1,sm:4,md:8,lg:8},responsiveView:"md"},t.exports=l},{"../../constants/constants":73,"../dataSelector":34,"lodash.values":367,"prop-types":374,react:382}],26:[function(e,t,n){"use strict";var m=r(e("react")),y=r(e("classnames")),o=r(e("prop-types")),b=r(e("../utils")),v=r(e("../accessibleButton")),g=r(e("../../constants/constants"));function r(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t=e.closedCaptionOptions,n=e.skinConfig,o=e.language,r=e.localizableStrings,a=e.ariaLabel,i=e.role,l=e.controller,s=(0,y.default)({"oo-switch-thumb":!0,"oo-switch-thumb-on":t.enabled,"oo-switch-thumb-off":!t.enabled}),u=(0,y.default)({"oo-switch-body":!0,"oo-switch-body-off":!t.enabled}),c=(0,y.default)({"oo-switch-captions oo-switch-captions-on":!0,"oo-switch-captions-active":t.enabled}),f=(0,y.default)({"oo-switch-captions oo-switch-captions-off":!0,"oo-switch-captions-active":!t.enabled}),d={backgroundColor:t.enabled&&n.general.accentColor?n.general.accentColor:null},p=b.default.getLocalizedString(o,g.default.SKIN_TEXT.OFF,r),h=b.default.getLocalizedString(o,g.default.SKIN_TEXT.ON,r);return m.default.createElement("div",{className:"oo-switch-container"},m.default.createElement("span",{className:f},p),m.default.createElement("div",{className:"oo-switch-element"},m.default.createElement("span",{className:u,style:d}),m.default.createElement("span",{className:s})),m.default.createElement("span",{className:c},h),m.default.createElement(v.default,{className:"oo-switch-container-selectable",ariaLabel:a,ariaChecked:t.enabled,role:i||g.default.ARIA_ROLES.CHECKBOX,onClick:function(){return l.toggleClosedCaptions()}}))};a.propTypes={closedCaptionOptions:o.default.shape({enabled:o.default.bool}),skinConfig:o.default.shape({general:o.default.shape({accentColor:o.default.string})}),language:o.default.string,localizableStrings:o.default.shape({}),ariaLabel:o.default.string,role:o.default.string,controller:o.default.shape({toggleClosedCaptionEnabled:o.default.func}).isRequired},a.defaultProps={closedCaptionOptions:{},skinConfig:{},language:"en",localizableStrings:{},ariaLabel:"",role:""},t.exports=a},{"../../constants/constants":73,"../accessibleButton":8,"../utils":66,classnames:90,"prop-types":374,react:382}],27:[function(e,t,n){"use strict";var l=r(e("react")),o=r(e("prop-types"));function r(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t=e.title,n=e.ariaLabel,o=e.role,r=e.children,a=e.className,i=e.selectionText;return l.default.createElement("div",{className:"oo-selection-container".concat(a?" ".concat(a):"")},l.default.createElement("div",{className:"oo-selection-inner-wrapper"},l.default.createElement("div",{className:"oo-selection-container-title"},t,":"," ",l.default.createElement("span",{className:"oo-selection-container-selection-text"},i)),l.default.createElement("div",{className:"oo-selection-items-container","aria-label":n,role:o},r)))};a.propTypes={className:o.default.string,selectionText:o.default.string,title:o.default.string,ariaLabel:o.default.string,role:o.default.string,children:o.default.oneOfType([o.default.array,o.default.element]).isRequired},a.defaultProps={className:"",selectionText:"",title:"",ariaLabel:"",role:""},t.exports=a},{"prop-types":374,react:382}],28:[function(e,t,n){"use strict";var f=i(e("react")),r=i(e("classnames")),o=i(e("prop-types")),d=i(e("../utils")),p=i(e("../accessibleButton")),a=i(e("../higher-order/accessibleMenu")),h=i(e("../../constants/constants")),m=i(e("./selectionContainer"));function i(e){return e&&e.__esModule?e:{default:e}}function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var g=["Uniform","Depressed","Raised","Shadow"],u=function(e){function c(){var e,r,t,n,o,a,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];return t=this,n=(e=b(c)).call.apply(e,[this].concat(s)),r=!n||"object"!==y(n)&&"function"!=typeof n?v(t):n,o=v(v(r)),i=function(e){var t=r.props,n=t.closedCaptionOptions,o=t.controller;n.enabled||o.toggleClosedCaptionEnabled(),o.onClosedCaptionChange("textEnhancement",e)},(a="changeTextEnhancement")in o?Object.defineProperty(o,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[a]=i,r}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(c,f.default.Component),t=c,(n=[{key:"setClassname",value:function(e,t){var n=this.props.closedCaptionOptions;return(0,r.default)({"oo-text-enhancement-letter":"letter"===t,"oo-text-enhancement-label":"label"===t,"oo-text-enhancement-selected":n.textEnhancement===e&&n.enabled,"oo-text-enhancement-label-selected":n.textEnhancement===e&&n.enabled&&"label"===t,"oo-disabled":!n.enabled})}},{key:"render",value:function(){var r=this,e=this.props,a=e.closedCaptionOptions,i=e.language,l=e.localizableStrings,s=e.skinConfig,t=d.default.getLocalizedString(i,h.default.SKIN_TEXT.TEXT_ENHANCEMENT,l),n=d.default.getLocalizedString(i,h.default.SKIN_TEXT[a.textEnhancement.toUpperCase()],l),u=[];return g.forEach(function(e){var t=a.textEnhancement===e,n={};a.enabled&&s.general.accentColor&&t&&(n={color:s.general.accentColor});var o=d.default.getLocalizedString(i,h.default.SKIN_TEXT[e.toUpperCase()],l);u.push(f.default.createElement(p.default,{key:e,className:"oo-text-enhancements-container",ariaLabel:o,ariaChecked:t,role:h.default.ARIA_ROLES.MENU_ITEM_RADIO,onClick:function(){return r.changeTextEnhancement(e)}},f.default.createElement("span",{className:"".concat(r.setClassname(e,"letter")," oo-text-enhancement-letter-").concat(e),style:n},"A"),f.default.createElement("span",{className:r.setClassname(e,"label"),style:n},o)))}),f.default.createElement("div",{className:"oo-text-enhancements-tab"},f.default.createElement("div",{className:"oo-text-enhancements-inner-wrapper"},f.default.createElement(m.default,{title:t,selectionText:n,ariaLabel:h.default.ARIA_LABELS.TEXT_ENHANCEMENTS_MENU,role:h.default.ARIA_ROLES.MENU},u)))}}])&&l(t.prototype,n),o&&l(t,o),c}(),c=(0,a.default)(u,{useRovingTabindex:!0});u.propTypes={language:o.default.string,localizableStrings:o.default.objectOf(o.default.objectOf(o.default.string)),controller:o.default.shape({toggleClosedCaptionEnabled:o.default.func.isRequired,onClosedCaptionChange:o.default.func.isRequired}).isRequired,skinConfig:o.default.shape({general:o.default.shape({accentColor:o.default.string})}),closedCaptionOptions:o.default.shape({textEnhancement:o.default.string,enabled:o.default.bool})},u.defaultProps={language:"en",localizableStrings:{},skinConfig:{},closedCaptionOptions:{}},t.exports=c},{"../../constants/constants":73,"../accessibleButton":8,"../higher-order/accessibleMenu":38,"../utils":66,"./selectionContainer":27,classnames:90,"prop-types":374,react:382}],29:[function(e,t,n){"use strict";var f=a(e("react")),d=a(e("classnames")),o=a(e("prop-types")),p=a(e("./accessibleButton")),r=a(e("./higher-order/accessibleMenu")),h=a(e("../constants/constants"));function a(e){return e&&e.__esModule?e:{default:e}}function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var s=function(e){function c(){var e,r,t,n,o,a,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];return t=this,n=(e=y(c)).call.apply(e,[this].concat(s)),r=!n||"object"!==m(n)&&"function"!=typeof n?b(t):n,o=b(b(r)),i=function(e){var t=r.props,n=t.selectedColor,o=t.enabled;return(0,d.default)({"oo-item":!0,"oo-item-selected":n===e&&o,"oo-disabled":!o})},(a="setClassname")in o?Object.defineProperty(o,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[a]=i,r}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(c,f.default.Component),t=c,(n=[{key:"render",value:function(){var a=this,e=this.props,i=e.ariaLabel,l=e.selectedColor,s=e.skinConfig,u=e.enabled,c=e.onColorChange,t=e.colors.map(function(e){var t=l===e,n={};if(u&&t&&s.general.accentColor){var o="solid ";n={border:o+=s.general.accentColor}}var r="".concat(i," ").concat(e);return f.default.createElement("div",{key:e,className:a.setClassname(e),style:n,role:h.default.ARIA_ROLES.PRESENTATION},f.default.createElement(p.default,{className:"oo-color-item oo-color-item-".concat(e),ariaLabel:r,ariaChecked:t,role:h.default.ARIA_ROLES.MENU_ITEM_RADIO,onClick:function(){return c(e)}}))});return f.default.createElement("div",{className:"oo-color-selector","aria-label":i,role:h.default.ARIA_ROLES.MENU},t)}}])&&i(t.prototype,n),o&&i(t,o),c}(),u=(0,r.default)(s,{useRovingTabindex:!0});s.propTypes={enabled:o.default.bool,selectedColor:o.default.string,colors:o.default.arrayOf(o.default.string).isRequired,ariaLabel:o.default.string.isRequired,onColorChange:o.default.func,skinConfig:o.default.shape({general:o.default.shape({accentColor:o.default.string})})},s.defaultProps={enabled:!1,selectedColor:void 0,onColorChange:function(){},skinConfig:{general:{accentColor:"red"}}},t.exports=u},{"../constants/constants":73,"./accessibleButton":8,"./higher-order/accessibleMenu":38,classnames:90,"prop-types":374,react:382}],30:[function(e,t,n){"use strict";var re=i(e("react")),ae=i(e("classnames")),o=i(e("prop-types")),ie=i(e("../constants/constants")),p=i(e("./scrubberBar")),le=i(e("./utils")),se=i(e("../views/popover")),ue=i(e("./controlButton")),ce=i(e("./playbackSpeedButton")),fe=i(e("./volumeControls")),de=i(e("./videoQualityPanel")),pe=i(e("./playbackSpeedPanel")),he=i(e("./closed-caption/closedCaptionPopover")),me=i(e("./closed-caption-multi-audio-menu/closedCaptionMultiAudioMenu")),r=i(e("./higher-order/preserveKeyboardFocus")),ye=i(e("./logo")),be=i(e("./skipControls")),a=i(e("./utils/autofocus"));function i(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ve(){return(ve=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){function o(e){var oe,t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=this,n=u(o).call(this,e),d(f(f(oe=!n||"object"!==l(n)&&"function"!=typeof n?f(t):n)),"getResponsiveUIMultiple",function(e){return oe.props.skinConfig.responsive.breakpoints[e].multiplier}),d(f(f(oe)),"handleControlBarMouseUp",function(e){var t=oe.props.controller;"touchend"!==e.type&&oe.isMobile||(e.stopPropagation(),t.state.accessibilityControlsEnabled=!0,t.startHideControlBarTimer())}),d(f(f(oe)),"handleFullscreenClick",function(e){e.stopPropagation(),e.preventDefault();var t=oe.props.controller;t&&(t.toggleFullscreen(),oe.vr&&oe.isPhone&&t.isVrStereo&&oe.toggleStereoVr())}),d(f(f(oe)),"handleStereoVrClick",function(e){if(oe.vr){e.stopPropagation(),e.preventDefault(),oe.toggleStereoVr();var t=oe.props.controller;if(t)(t.state.isFullScreenSupported||t.state.isVideoFullScreenSupported?t.state.fullscreen:t.state.isFullWindow)||"function"!=typeof t.toggleFullscreen||t.toggleFullscreen(),t.isVrStereo?(t.checkDeviceOrientation=!0,oe.setLandscapeScreenOrientation()):oe.unlockScreenOrientation()}}),d(f(f(oe)),"setLandscapeScreenOrientation",function(){var e=oe.props.controller;e&&e.checkDeviceOrientation&&le.default.setLandscapeScreenOrientation&&le.default.setLandscapeScreenOrientation()}),d(f(f(oe)),"unlockScreenOrientation",function(){var e=window.screen;e.orientation&&e.orientation.unlock?e.orientation.unlock():e.unlockOrientation?e.unlockOrientation():e.mozUnlockOrientation?e.mozUnlockOrientation():e.msUnlockOrientation&&e.msUnlockOrientation()}),d(f(f(oe)),"toggleStereoVr",function(){var e=oe.props.controller;e&&"function"==typeof e.toggleStereoVr&&e.toggleStereoVr()}),d(f(f(oe)),"seekToLivePoint",function(){var e=oe.props,t=e.controller,n=e.duration;t.onLiveClick(),t.seek(n)}),d(f(f(oe)),"handleLiveClick",function(e){e.stopPropagation(),oe.seekToLivePoint()}),d(f(f(oe)),"handleLiveKeyUp",function(e){e.keyCode===ie.default.KEYCODES.SPACE_KEY&&(e.stopPropagation(),oe.seekToLivePoint())}),d(f(f(oe)),"handleVolumeIconClick",function(e){var t=oe.props,n=t.clickToVolumeScreen,o=t.controller;n?o.toggleScreen(ie.default.SCREEN.VOLUME_SCREEN,!0):oe.isMobile?(o.startHideControlBarTimer(),e.stopPropagation(),o.state.volumeState.volumeSliderVisible?o.handleMuteClick():o.showVolumeSliderBar()):o.handleMuteClick()}),d(f(f(oe)),"handlePlayClick",function(){oe.props.controller.togglePlayPause()}),d(f(f(oe)),"handleShareClick",function(){oe.props.controller.toggleShareScreen()}),d(f(f(oe)),"handleMenuToggleClick",function(e){oe.configureMenuAutofocus(e);var t=oe.props,n=t.controller,o=t.responsiveView,r=t.skinConfig;if(n.state.isMobile||o===r.responsive.breakpoints.xs.id){var a=ie.default.MENU_OPTIONS_SCREENS[e];n.toggleScreen(a)}else oe.togglePopover(e),oe.closeOtherPopovers(e)}),d(f(f(oe)),"handleAirPlayClick",function(){oe.props.controller.onAirplayButtonClicked()}),d(f(f(oe)),"handleMultiAudioClick",function(){oe.configureMenuAutofocus(ie.default.MENU_OPTIONS.MULTI_AUDIO);var e=oe.props,t=e.controller,n=e.skinConfig,o=e.responsiveView;n.responsive&&n.responsive.breakpoints&&n.responsive.breakpoints.lg&&o===n.responsive.breakpoints.lg.id?(oe.togglePopover(ie.default.MENU_OPTIONS.MULTI_AUDIO),oe.closeOtherPopovers(ie.default.MENU_OPTIONS.MULTI_AUDIO)):t.toggleMultiAudioScreen()}),d(f(f(oe)),"closePopover",function(e,t){var n=oe.props.controller;n&&"function"==typeof n.closePopover&&n.closePopover(e,t)}),d(f(f(oe)),"closeOtherPopovers",function(e){var t=oe.props.controller;t&&"function"==typeof t.closeOtherPopovers&&t.closeOtherPopovers(e)}),d(f(f(oe)),"togglePopover",function(e){var t=oe.props.controller,n=t.state[e],o=oe.getToggleButtons(e);o&&n&&n.showPopover&&o.wasTriggeredWithKeyboard(!1),t.togglePopover(e)}),d(f(f(oe)),"handleDiscoveryClick",function(){oe.props.controller.toggleDiscoveryScreen()}),d(f(f(oe)),"handleMoreOptionsClick",function(){var e=oe.props.controller;oe.configureMenuAutofocus(ie.default.MENU_OPTIONS.MORE_OPTIONS),e.toggleMoreOptionsScreen(oe.moreOptionsItems)}),d(f(f(oe)),"getAudioControlsConfig",function(){var e=oe.props.skinConfig;if(!(e&&e.buttons&&e.buttons.audioOnly&&e.buttons.audioOnly.desktop&&Array.isArray(e.buttons.audioOnly.desktop)))return[];var t=e.buttons.audioOnly.desktop,n=e.buttons.desktopContent,o=JSON.parse(JSON.stringify(t));return n.forEach(function(t){"none"===t.location&&o.filter(function(e){return e.name===t.name}).map(function(e){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(e){d(t,e,n[e])})}return t}({},e,{location:"none"})})}),o}),d(f(f(oe)),"populateControlBar",function(){var e,t,n=oe.props,o=n.audioOnly,r=n.componentWidth,a=n.controller,i=n.controlBarItems,l=n.playerState,s=n.isLiveStream,u=n.skinConfig,c=n.currentPlayhead,f=n.duration,d=n.totalTime,p=n.language,h=n.localizableStrings,m=n.responsiveView,y=n.hideVolumeControls,b=n.playheadTime,v=le.default.getPlayButtonDetails(l),g=v.icon,E=v.ariaLabel,S=v.buttonTooltip,_=a.state.volumeState.muted||0===a.state.volumeState.volume,T=_?"volumeOff":"volume",O=_?ie.default.ARIA_LABELS.UNMUTE:ie.default.ARIA_LABELS.MUTE,C=a.state.fullscreen?"compress":"expand",A=a.state.fullscreen?ie.default.ARIA_LABELS.EXIT_FULLSCREEN:ie.default.ARIA_LABELS.FULLSCREEN;oe.vr&&(e="stereoOff",t=ie.default.ARIA_LABELS.STEREO_OFF,a&&a.isVrStereo&&(e="stereoOn",t=ie.default.ARIA_LABELS.STEREO_ON));var N,w={color:u.controlBar.iconStyle.inactive.color},R=c-f,P=Math.abs(R)<1,k=P?null:oe.handleLiveClick,I=P?null:oe.handleLiveKeyUp,L=s?null:re.default.createElement("span",{className:"oo-total-time"},d),D=le.default.getLocalizedString(p,ie.default.SKIN_TEXT.LIVE,h),x=(0,ae.default)({"oo-control-bar-item oo-live oo-live-indicator":!0,"oo-live-nonclickable":P}),M=(0,ae.default)({"oo-quality":!0,"oo-selected":a.state.videoQualityOptions.showPopover}),V=(0,ae.default)({"oo-closed-caption":!0,"oo-selected":a.state.closedCaptionOptions.showPopover}),j=(0,ae.default)({"oo-selected":a.state.playbackSpeedOptions.showPopover}),U=(0,ae.default)({"oo-multiaudio":!0,"oo-selected":a.state.multiAudioOptions.showPopover}),B={color:u.general.accentColor||null},F={},W={language:p,localizableStrings:h,responsiveView:m,skinConfig:u,controller:a,getTooltipAlignment:function(e){return F[e]||ie.default.TOOLTIP_ALIGNMENT.CENTER}},Y=a.state.closedCaptionOptions.availableLanguages&&a.state.closedCaptionOptions.availableLanguages.languages?a.state.closedCaptionOptions.availableLanguages.languages:[],K=a.state.multiAudio&&a.state.multiAudio.tracks?a.state.multiAudio.tracks:[],H=(0,ae.default)("oo-popover"),z=(0,ae.default)(H,"oo-cc-ma-container"),G={playPause:re.default.createElement(ue.default,ve({},W,{key:ie.default.CONTROL_BAR_KEYS.PLAY_PAUSE,className:"oo-play-pause",focusId:ie.default.CONTROL_BAR_KEYS.PLAY_PAUSE,ariaLabel:E,icon:g,tooltip:S,onClick:oe.handlePlayClick,role:"switch"})),live:re.default.createElement("div",{key:ie.default.CONTROL_BAR_KEYS.LIVE,className:x,onClick:k,onKeyUp:I,role:"button",tabIndex:0},re.default.createElement("div",{className:"oo-live-circle"}),re.default.createElement("span",{className:"oo-live-text"},D)),volume:re.default.createElement("div",{key:ie.default.CONTROL_BAR_KEYS.VOLUME,className:"oo-volume oo-control-bar-item"},re.default.createElement(ue.default,ve({},W,{className:"oo-mute-unmute",focusId:ie.default.CONTROL_BAR_KEYS.VOLUME,ariaLabel:O,icon:T,tooltip:_?ie.default.SKIN_TEXT.UNMUTE:ie.default.SKIN_TEXT.MUTE,onClick:oe.handleVolumeIconClick,role:"switch"})),!y&&re.default.createElement(fe.default,oe.props)),timeDuration:re.default.createElement("div",{key:ie.default.CONTROL_BAR_KEYS.TIME_DURATION,className:"oo-time-duration oo-control-bar-duration",style:w},re.default.createElement("span",null,b),L),flexibleSpace:re.default.createElement("div",{key:ie.default.CONTROL_BAR_KEYS.FLEXIBLE_SPACE,className:"oo-flexible-space oo-control-bar-flex-space"}),moreOptions:re.default.createElement("div",{key:ie.default.CONTROL_BAR_KEYS.MORE_OPTIONS,className:"oo-control-bar-item"},re.default.createElement(ue.default,ve({},W,{key:ie.default.CONTROL_BAR_KEYS.MORE_OPTIONS,onRef:function(e){return oe.setToggleButtons(ie.default.MENU_OPTIONS.MORE_OPTIONS,e)},className:"oo-more-options",style:{position:"relative",textAlign:"right"},focusId:ie.default.CONTROL_BAR_KEYS.MORE_OPTIONS,ariaLabel:ie.default.ARIA_LABELS.MORE_OPTIONS,icon:"ellipsis",tooltip:ie.default.SKIN_TEXT.MORE_OPTIONS,onClick:oe.handleMoreOptionsClick}))),quality:re.default.createElement("div",{key:ie.default.CONTROL_BAR_KEYS.QUALITY,className:"oo-popover-button-container"},re.default.createElement(ue.default,ve({},W,{onRef:function(e){return oe.setToggleButtons(ie.default.MENU_OPTIONS.VIDEO_QUALITY,e)},style:B,className:M,focusId:ie.default.CONTROL_BAR_KEYS.QUALITY,ariaLabel:ie.default.ARIA_LABELS.VIDEO_QUALITY,ariaHasPopup:!0,ariaExpanded:!!a.state.videoQualityOptions.showPopover||null,icon:"quality",tooltip:ie.default.SKIN_TEXT.VIDEO_QUALITY,onClick:function(){return oe.handleMenuToggleClick(ie.default.MENU_OPTIONS.VIDEO_QUALITY)}})),a.state.videoQualityOptions.showPopover&&re.default.createElement(se.default,{autoFocus:a.state.videoQualityOptions.autoFocus,closeActionEnabled:a.state.accessibilityControlsEnabled,closeAction:function(){return oe.closePopover(ie.default.MENU_OPTIONS.VIDEO_QUALITY)}},re.default.createElement(de.default,ve({},oe.props,{onClose:function(){return oe.closePopover(ie.default.MENU_OPTIONS.VIDEO_QUALITY)},isPopover:!0})))),discovery:re.default.createElement(ue.default,ve({},W,{key:ie.default.CONTROL_BAR_KEYS.DISCOVERY,className:"oo-discovery",focusId:ie.default.CONTROL_BAR_KEYS.DISCOVERY,ariaHidden:!0,icon:"discovery",tooltip:ie.default.SKIN_TEXT.DISCOVER,onClick:oe.handleDiscoveryClick})),closedCaption:re.default.createElement("div",{key:ie.default.CONTROL_BAR_KEYS.CLOSED_CAPTION,className:"oo-popover-button-container"},re.default.createElement(ue.default,ve({},W,{onRef:function(e){return oe.setToggleButtons(ie.default.MENU_OPTIONS.CLOSED_CAPTIONS,e)},style:B,className:V,focusId:ie.default.CONTROL_BAR_KEYS.CLOSED_CAPTION,ariaLabel:ie.default.ARIA_LABELS.CLOSED_CAPTIONS,ariaHasPopup:!0,ariaExpanded:!!a.state.closedCaptionOptions.showPopover||null,icon:"cc",tooltip:ie.default.SKIN_TEXT.CLOSED_CAPTIONS,onClick:function(){return oe.handleMenuToggleClick(ie.default.MENU_OPTIONS.CLOSED_CAPTIONS)}})),a.state.closedCaptionOptions.showPopover&&re.default.createElement(se.default,{popoverClassName:H,autoFocus:a.state.closedCaptionOptions.autoFocus,closeActionEnabled:a.state.accessibilityControlsEnabled,closeAction:function(){return oe.closePopover(ie.default.MENU_OPTIONS.CLOSED_CAPTIONS)}},re.default.createElement(he.default,ve({},oe.props,{togglePopoverAction:function(){return oe.closePopover(ie.default.MENU_OPTIONS.CLOSED_CAPTIONS)}})))),chromecast:re.default.createElement("div",{key:ie.default.CONTROL_BAR_KEYS.CHROMECAST,tooltip:ie.default.SKIN_TEXT.CHROMECAST,className:"oo-cast oo-control-bar-item"},re.default.createElement("google-cast-launcher",{class:"oo-icon"})),airPlay:re.default.createElement(ue.default,ve({},W,{key:ie.default.CONTROL_BAR_KEYS.AIRPLAY,className:"oo-airplay",focusId:ie.default.CONTROL_BAR_KEYS.AIRPLAY,ariaLabel:ie.default.ARIA_LABELS.AIRPLAY,icon:a.state.airplay&&a.state.airplay.statusIcon,tooltip:ie.default.SKIN_TEXT.AIRPLAY,onClick:oe.handleAirPlayClick})),audioAndCC:0===Y.length&&0===K.length?null:re.default.createElement("div",{key:ie.default.CONTROL_BAR_KEYS.AUDIO_AND_CC,className:"oo-popover-button-container"},re.default.createElement(ue.default,ve({},W,{onRef:function(e){return oe.setToggleButtons(ie.default.MENU_OPTIONS.MULTI_AUDIO,e)},style:B,className:U,focusId:ie.default.CONTROL_BAR_KEYS.AUDIO_AND_CC,ariaLabel:ie.default.ARIA_LABELS.MULTI_AUDIO,ariaHasPopup:!0,ariaExpanded:!!a.state.multiAudioOptions.showPopover||null,icon:"audioAndCC",tooltip:ie.default.SKIN_TEXT.AUDIO,onClick:oe.handleMultiAudioClick})),a.state.multiAudioOptions.showPopover&&re.default.createElement(se.default,{popoverClassName:z,autoFocus:a.state.multiAudioOptions.autoFocus,closeActionEnabled:a.state.accessibilityControlsEnabled,closeAction:function(){return oe.closePopover(ie.default.MENU_OPTIONS.MULTI_AUDIO)}},re.default.createElement(me.default,ve({language:p,localizableStrings:h,menuClassName:"oo-cc-ma-menu--popover",togglePopoverAction:function(){return oe.closePopover(ie.default.MENU_OPTIONS.MULTI_AUDIO)}},oe.props)))),playbackSpeed:re.default.createElement("div",{key:ie.default.CONTROL_BAR_KEYS.PLAYBACK_SPEED,className:"oo-popover-button-container"},re.default.createElement(ce.default,ve({},W,{onRef:function(e){return oe.setToggleButtons(ie.default.MENU_OPTIONS.PLAYBACK_SPEED,e)},className:j,style:a.state.playbackSpeedOptions.showPopover?B:null,focusId:ie.default.CONTROL_BAR_KEYS.PLAYBACK_SPEED,ariaHasPopup:!0,ariaExpanded:!!a.state.playbackSpeedOptions.showPopover||null,tooltip:ie.default.SKIN_TEXT.PLAYBACK_SPEED,onClick:function(){return oe.handleMenuToggleClick(ie.default.MENU_OPTIONS.PLAYBACK_SPEED)}})),a.state.playbackSpeedOptions.showPopover&&re.default.createElement(se.default,{autoFocus:a.state.playbackSpeedOptions.autoFocus,closeActionEnabled:a.state.accessibilityControlsEnabled,closeAction:function(){return oe.closePopover(ie.default.MENU_OPTIONS.PLAYBACK_SPEED)}},re.default.createElement(pe.default,{isPopover:!0,language:p,localizableStrings:h,controller:a,skinConfig:u,onClose:function(){return oe.closePopover(ie.default.MENU_OPTIONS.PLAYBACK_SPEED)}}))),share:re.default.createElement(ue.default,ve({},W,{key:ie.default.CONTROL_BAR_KEYS.SHARE,className:"oo-share",focusId:ie.default.CONTROL_BAR_KEYS.SHARE,ariaHidden:!0,icon:"share",tooltip:ie.default.SKIN_TEXT.SHARE,onClick:oe.handleShareClick})),stereoscopic:!(!oe.vr||!oe.isPhone)&&re.default.createElement(ue.default,ve({},W,{key:ie.default.CONTROL_BAR_KEYS.STEREOSCOPIC,className:"oo-video-type oo-vr-stereo-button",focusId:ie.default.CONTROL_BAR_KEYS.STEREOSCOPIC,ariaLabel:t,icon:e,onClick:oe.handleStereoVrClick})),fullscreen:re.default.createElement(ue.default,ve({},W,{key:ie.default.CONTROL_BAR_KEYS.FULLSCREEN,className:"oo-fullscreen",focusId:ie.default.CONTROL_BAR_KEYS.FULLSCREEN,ariaLabel:A,icon:C,tooltip:a.state.fullscreen?ie.default.SKIN_TEXT.EXIT_FULL_SCREEN:ie.default.SKIN_TEXT.FULL_SCREEN,onClick:oe.handleFullscreenClick})),logo:re.default.createElement(ye.default,{key:ie.default.CONTROL_BAR_KEYS.LOGO,imageUrl:u.controlBar.logo.imageResource.url,clickUrl:u.controlBar.logo.clickUrl,target:u.controlBar.logo.target,width:m!==u.responsive.breakpoints.xs.id?u.controlBar.logo.width:null,height:u.controlBar.logo.height}),skipControls:re.default.createElement(be.default,{key:ie.default.CONTROL_BAR_KEYS.SKIP_CONTROLS,buttonConfig:le.default.getPropertyValue(u,"skipControls.controlBarSkipControls",{}),forceShowButtons:!0,className:"oo-absolute-centered oo-control-bar-item",config:a.state.skipControls,language:p,localizableStrings:h,responsiveView:m,skinConfig:u,controller:a,currentPlayhead:c,a11yControls:a.accessibilityControls,isInactive:!a.state.controlBarVisible,isInBackground:a.state.scrubberBar.isHovering,onFocus:oe.handleFocus})},X=(N=i&&i.length?i:o?u.buttons.audioOnly?u.buttons.audioOnly.desktop:[]:a.state.isPlayingAd?u.buttons.desktopAd:u.buttons.desktopContent).find(function(e){return"volume"===e.name}),q=0;X&&(q=(oe.isMobile&&!a.state.volumeState.volumeSliderVisible||X&&le.default.isIos()?+X.minWidth:0)+(oe.isMobile?0:+X.minWidth/2));var Q=0<parseInt(f/3600,10)?0:45,$=2*ie.default.UI.DEFAULT_SCRUBBERBAR_LEFT_RIGHT_PADDING,J=N.filter(function(e){var t=le.default.getPropertyValue(u,"shareScreen.shareContent",[]),n=le.default.getPropertyValue(u,"shareScreen.socialContent",[]),o=1===t.length&&"social"===t[0],r=le.default.getPropertyValue(a,"state.closedCaptionOptions.availableLanguages.languages",[]);return void 0!==G[e.name]&&"none"!==e.location&&(e.name!==ie.default.CONTROL_BAR_KEYS.PLAYBACK_SPEED||!s&&!a.videoVr&&!a.state.isOoyalaAds)&&("share"!==e.name||!a.state.isOoyalaAds&&t.length&&(!o||n.length))&&(e.name!==ie.default.CONTROL_BAR_KEYS.CLOSED_CAPTION||r.length&&!a.state.isOoyalaAds)&&("quality"!==e.name||!a.state.isOoyalaAds&&a.state.videoQualityOptions.availableBitrates)&&("discovery"!==e.name||!a.state.isOoyalaAds&&a.state.metadata&&a.state.metadata.modules&&a.state.metadata.modules["discovery-ui"]&&a.state.discoveryData)&&("logo"!==e.name||u.controlBar.logo.imageResource.url)&&("volume"!==e.name||!le.default.isIos())&&("live"!==e.name||void 0!==s&&s)&&("audioAndCC"!==e.name||a.state.multiAudio)&&("chromecast"!==e.name||a.state.cast.showButton)&&("airPlay"!==e.name||a.state.airplay&&a.state.airplay.available&&!le.default.isIos())}),Z=le.default.collapse(r+oe.responsiveUIMultiple*(Q+q-$),J,oe.responsiveUIMultiple),ee=Z.fit||{},te=Z.overflow||{};oe.moreOptionsItems=te;var ne=a.state.isOoyalaAds||0===te.length?ee.length-2:ee.length-1;return ee.filter(function(e){return"moreOptions"!==e.name||!a.state.isOoyalaAds&&0!==te.length}).map(function(e,t){var n=ie.default.TOOLTIP_ALIGNMENT.CENTER;return t===ne&&(n=ie.default.TOOLTIP_ALIGNMENT.RIGHT),0===t&&(n=ie.default.TOOLTIP_ALIGNMENT.LEFT),F[e.name]=n,G[e.name]})}),oe.isMobile=e.controller.state.isMobile,oe.isPhone="phone"===le.default.getUserDevice(),oe.responsiveUIMultiple=oe.getResponsiveUIMultiple(e.responsiveView),oe.moreOptionsItems=null,oe.vr=null,oe.autofocus=new a.default(e.controller.state,e.controller.toggleButtons),oe.getToggleButtons=oe.autofocus.getToggleButtons.bind(f(f(oe))),oe.setToggleButtons=oe.autofocus.setToggleButtons.bind(f(f(oe))),oe.configureMenuAutofocus=oe.autofocus.configureMenuAutofocus.bind(f(f(oe))),e.controller&&e.controller.videoVrSource&&e.controller.videoVrSource.vr&&(oe.vr=e.controller.videoVrSource.vr),oe}var t,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(o,re.default.Component),t=o,(n=[{key:"componentDidMount",value:function(){window.addEventListener("orientationchange",this.closeOtherPopovers),window.addEventListener("orientationchange",this.setLandscapeScreenOrientation,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.responsiveView;e.responsiveView!==t&&(this.responsiveUIMultiple=this.getResponsiveUIMultiple(e.responsiveView))}},{key:"componentWillUnmount",value:function(){var e=this.props.controller;e.cancelTimer(),this.closeOtherPopovers(),le.default.isAndroid()&&e.hideVolumeSliderBar(),window.removeEventListener("orientationchange",this.closeOtherPopovers),window.removeEventListener("orientationchange",this.setLandscapeScreenOrientation)}},{key:"render",value:function(){var e=this.props,t=e.audioOnly,n=e.controlBarVisible,o=e.animatingControlBar,r=e.height,a=e.onFocus,i=e.onBlur,l=e.hideScrubberBar,s=e.skinConfig;if(!(s&&s.controlBar&&s.controlBar.enabled))return null;var u=(0,ae.default)({"oo-control-bar":!0,"oo-control-bar-hidden":!n,"oo-animating-control-bar":o}),c=this.populateControlBar(),f={};r&&(f.height=r);var d=(0,ae.default)("oo-control-bar-items-wrapper",{"oo-flex-row-parent":t,"oo-flex-end":t&&le.default.isIos()});return re.default.createElement("div",{className:u,style:f,onFocus:a,onBlur:i,onMouseUp:this.handleControlBarMouseUp,onTouchEnd:this.handleControlBarMouseUp,role:"presentation"},l?null:re.default.createElement(p.default,this.props),re.default.createElement("div",{className:d},c))}}])&&s(t.prototype,n),r&&s(t,r),o}();h.propTypes={totalTime:o.default.string.isRequired,playheadTime:o.default.string.isRequired,clickToVolumeScreen:o.default.bool,hideVolumeControls:o.default.bool,hideScrubberBar:o.default.bool,audioOnly:o.default.bool,animatingControlBar:o.default.bool,controlBarItems:o.default.arrayOf(o.default.shape({})),isLiveStream:o.default.bool,controlBarVisible:o.default.bool,playerState:o.default.string,responsiveView:o.default.string,language:o.default.string,localizableStrings:o.default.shape({}),duration:o.default.number,currentPlayhead:o.default.number,componentWidth:o.default.number,onFocus:o.default.func,onBlur:o.default.func,skinConfig:o.default.shape({responsive:o.default.shape({breakpoints:o.default.shape({})})}),controller:o.default.shape({state:o.default.shape({}),videoVrSource:o.default.shape({vr:o.default.shape({})}),cancelTimer:o.default.func,startHideControlBarTimer:o.default.func,hideVolumeSliderBar:o.default.func,closePopover:o.default.func,closeOtherPopovers:o.default.func,isVrStereo:o.default.bool})},h.defaultProps={clickToVolumeScreen:!1,hideVolumeControls:!1,hideScrubberBar:!1,audioOnly:!1,animatingControlBar:!0,controlBarItems:[],isLiveStream:!1,controlBarVisible:!0,playerState:"",responsiveView:"md",language:"en",localizableStrings:{},duration:0,currentPlayhead:0,componentWidth:500,onFocus:function(){},onBlur:function(){},skinConfig:{responsive:{breakpoints:{xs:{id:"xs"},sm:{id:"sm"},md:{id:"md"},lg:{id:"lg"}}}},controller:{state:{},videoVrSource:{vr:{}},cancelTimer:function(){},startHideControlBarTimer:function(){},hideVolumeSliderBar:function(){},closePopover:function(){},closeOtherPopovers:function(){},isVrStereo:function(){},togglePopover:function(){}}},t.exports=(0,r.default)(h)},{"../constants/constants":73,"../views/popover":86,"./closed-caption-multi-audio-menu/closedCaptionMultiAudioMenu":14,"./closed-caption/closedCaptionPopover":21,"./controlButton":31,"./higher-order/preserveKeyboardFocus":40,"./logo":43,"./playbackSpeedButton":51,"./playbackSpeedPanel":52,"./scrubberBar":53,"./skipControls":55,"./utils":66,"./utils/autofocus":67,"./videoQualityPanel":68,"./volumeControls":70,classnames:90,"prop-types":374,react:382}],31:[function(e,t,n){"use strict";var m=r(e("react")),y=r(e("classnames")),o=r(e("prop-types")),a=r(e("./accessibleButton")),i=r(e("./nonAccessibleButton")),b=r(e("./icon")),v=r(e("./tooltip")),s=r(e("./utils")),l=r(e("../constants/constants"));function r(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var h=function(e){function r(e){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),n=this,(t=!(o=f(r).call(this,e))||"object"!==u(o)&&"function"!=typeof o?p(n):o).storeRef=t.storeRef.bind(p(p(t))),t.onMouseEnter=t.onMouseEnter.bind(p(p(t))),t.onMouseLeave=t.onMouseLeave.bind(p(p(t))),t.getButtonComponent=t.getButtonComponent.bind(p(p(t))),t.getTooltipAlignment=t.getTooltipAlignment.bind(p(p(t))),t.getTooltipVerticalOffset=t.getTooltipVerticalOffset.bind(p(p(t))),t.getResponsiveUiMultiplier=t.getResponsiveUiMultiplier.bind(p(p(t))),t.getIconStyles=t.getIconStyles.bind(p(p(t))),t.highlight=t.highlight.bind(p(p(t))),t.removeHighlight=t.removeHighlight.bind(p(p(t))),t.areTooltipsEnabled=t.areTooltipsEnabled.bind(p(p(t))),t}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(r,m.default.Component),t=r,(n=[{key:"onMouseEnter",value:function(e){this.highlight(e);var t=this.props.onMouseOver;"function"==typeof t&&t(e)}},{key:"onMouseLeave",value:function(e){this.removeHighlight(e);var t=this.props.onMouseOut;"function"==typeof t&&t(e)}},{key:"getButtonComponent",value:function(){return!0===this.props.ariaHidden?i.default:a.default}},{key:"getTooltipAlignment",value:function(e){var t=this.props.getTooltipAlignment;return"function"==typeof t?t(e):l.default.TOOLTIP_ALIGNMENT.CENTER}},{key:"getTooltipVerticalOffset",value:function(){var e=this.props,t=e.tooltipVerticalOffset,n=e.skinConfig;return void 0!==t?t:s.default.getPropertyValue(n,"controlBar.height",0)}},{key:"getResponsiveUiMultiplier",value:function(){var e=this.props,t=e.responsiveView,n=e.skinConfig;return(s.default.getPropertyValue(n,"responsive.breakpoints",{})[t]||{}).multiplier||1}},{key:"getIconStyles",value:function(){var e=this.props.skinConfig;return{color:s.default.getPropertyValue(e,"controlBar.iconStyle.inactive.color"),opacity:s.default.getPropertyValue(e,"controlBar.iconStyle.inactive.opacity")}}},{key:"storeRef",value:function(e){this.buttonRef=e;var t=this.props.onRef;"function"==typeof t&&t(this.buttonRef)}},{key:"highlight",value:function(e){var t=this.props,n=t.controller,o=t.skinConfig;if(!e.currentTarget.disabled&&!n.state.isMobile){var r=s.default.getEventIconElement(e);if(r){var a=s.default.getPropertyValue(o,"controlBar.iconStyle.active.opacity",1),i=s.default.getPropertyValue(o,"general.accentColor"),l=s.default.getPropertyValue(o,"controlBar.iconStyle.active.color",i);s.default.highlight(r,a,l)}}}},{key:"removeHighlight",value:function(e){var t=s.default.getEventIconElement(e),n=this.props.skinConfig;if(t){var o=s.default.getPropertyValue(n,"controlBar.iconStyle.inactive.opacity"),r=s.default.getPropertyValue(n,"controlBar.iconStyle.inactive.color");s.default.removeHighlight(t,o,r)}}},{key:"areTooltipsEnabled",value:function(){var e=!1,t=this.props,n=t.controller,o=t.skinConfig;return n.state.isMobile||(e=s.default.getPropertyValue(o,"controlBar.tooltips.enabled",!1)),e}},{key:"render",value:function(){var e,t,n=this.props,o=n.children,r=n.className,a=n.focusId,i=n.tooltip,l=n.icon,s=n.language,u=n.skinConfig,c=n.localizableStrings,f=this.getButtonComponent(),d=(0,y.default)("oo-control-bar-item",r),p=this.getIconStyles(),h=this.areTooltipsEnabled();return h&&i&&(e=this.getResponsiveUiMultiplier(),t=this.getTooltipVerticalOffset()),m.default.createElement(f,g({},this.props,{ref:this.storeRef,className:d,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave}),l&&m.default.createElement(b.default,{icon:l,skinConfig:u,style:p}),o,i&&m.default.createElement(v.default,{enabled:h,text:i,parentKey:a,responsivenessMultiplier:e,bottom:e*t,language:s,localizableStrings:c,getAlignment:this.getTooltipAlignment}))}}])&&c(t.prototype,n),o&&c(t,o),r}();h.propTypes={focusId:o.default.string,className:o.default.string,icon:o.default.string,tooltip:o.default.string,tooltipVerticalOffset:o.default.number,language:o.default.string,localizableStrings:o.default.shape({}),responsiveView:o.default.string.isRequired,getTooltipAlignment:o.default.func,onRef:o.default.func,onClick:o.default.func,skinConfig:o.default.shape({general:o.default.shape({accentColor:o.default.string.isRequired}),responsive:o.default.shape({breakpoints:o.default.object}),controlBar:o.default.shape({height:o.default.number.isRequired,iconStyle:o.default.shape({active:o.default.shape({color:o.default.string.isRequired,opacity:o.default.number.isRequired}),inactive:o.default.shape({color:o.default.string.isRequired,opacity:o.default.number.isRequired})}),tooltips:o.default.shape({enabled:o.default.bool})})}).isRequired,controller:o.default.shape({state:o.default.shape({isMobile:o.default.bool.isRequired})}).isRequired},h.defaultProps={focusId:"",className:"",icon:"",tooltip:"",tooltipVerticalOffset:void 0,language:"en",localizableStrings:{},getTooltipAlignment:function(){},onRef:function(){},onClick:function(){}},t.exports=h},{"../constants/constants":73,"./accessibleButton":8,"./icon":42,"./nonAccessibleButton":50,"./tooltip":63,"./utils":66,classnames:90,"prop-types":374,react:382}],32:[function(e,t,n){"use strict";var i=r(e("react")),l=r(e("classnames")),o=r(e("prop-types")),p=r(e("./utils")),h=r(e("../constants/constants"));function r(e){return e&&e.__esModule?e:{default:e}}function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e){function f(e){var d,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),t=this,n=y(f).call(this,e),v(b(b(d=!n||"object"!==m(n)&&"function"!=typeof n?b(t):n)),"setupCanvas",function(){d.context=d.canvas.getContext("2d"),d.context.textAlign="center",d.context.textBaseline="middle",d.context.font="regular 12px Arial"}),v(b(b(d)),"setupCountDownTimer",function(){d.setupCanvas(),d.drawBackground(),d.drawTimer(),d.startTimer()}),v(b(b(d)),"handleClick",function(e){"touchend"!==e.type&&d.isMobile||d.props.controller.state.screenToShow===h.default.SCREEN.DISCOVERY_SCREEN&&(d.setState({hideClock:!0}),clearInterval(d.interval))}),v(b(b(d)),"drawBackground",function(){var e=d.context,t=e.beginPath,n=e.arc,o=e.fill,r=d.state,a=r.clockContainerWidth,i=r.clockRadius;t.call(d.context),d.context.globalAlpha=1,d.context.fillStyle="gray",n.call(d.context,a/2,i,i,0,2*Math.PI,!1),n.call(d.context,a/2,i,i/1.2,2*Math.PI,0,!0),o.call(d.context)}),v(b(b(d)),"updateClockSize",function(){var e,t=d.props,n=t.controller,o=t.responsiveView,r=t.skinConfig;e=n.state.screenToShow===h.default.SCREEN.DISCOVERY_SCREEN?75:o===r.responsive.breakpoints.xs.id?25:36,d.setState({clockRadius:parseInt(e,10)/2,clockContainerWidth:parseInt(e,10)})}),v(b(b(d)),"drawTimer",function(){var e=d.props.controller,t=d.state,n=t.fraction,o=t.remainSeconds,r=t.clockContainerWidth,a=t.clockRadius,i=d.context,l=i.fillText,s=i.beginPath,u=i.arc,c=i.fill,f=n*o+1.5;d.context.fillStyle="white",e.state.screenToShow!==h.default.SCREEN.PLAYING_SCREEN&&e.state.screenToShow!==h.default.SCREEN.PAUSE_SCREEN||l.call(d.context,o.toFixed(void 0),r/2,a,100),s.call(d.context),u.call(d.context,r/2,a,a,1.5*Math.PI,Math.PI*f,!1),u.call(d.context,r/2,a,a/1.2,Math.PI*f,1.5*Math.PI,!0),c.call(d.context)}),v(b(b(d)),"startTimer",function(){var e=d.state.counterInterval;d.interval=setInterval(d.tick,1e3*e)}),v(b(b(d)),"tick",function(){var e=d.props,t=e.controller,n=e.playerState,o=e.duration,r=e.currentPlayhead,a=d.state,i=a.remainSeconds,l=a.counterInterval;t.state.screenToShow===h.default.SCREEN.DISCOVERY_SCREEN?i<1?(d.setState({remainSeconds:0}),clearInterval(d.interval),d.startDiscoveryVideo()):(d.setState({remainSeconds:i-l}),d.updateCanvas()):t.state.screenToShow!==h.default.SCREEN.PLAYING_SCREEN&&t.state.screenToShow!==h.default.SCREEN.PAUSE_SCREEN||(i<1||n===h.default.STATE.END?(d.setState({remainSeconds:0}),clearInterval(d.interval),d.startUpNextVideo()):(d.setState({remainSeconds:o-r}),d.updateCanvas()))}),v(b(b(d)),"updateCanvas",function(){d.clearCanvas(),d.drawTimer()}),v(b(b(d)),"clearCanvas",function(){d.context=d.canvas.getContext("2d"),d.context.clearRect.call(d.context,0,0,d.canvas.width,d.canvas.height),d.drawBackground()}),v(b(b(d)),"startDiscoveryVideo",function(){var e=d.props,t=e.controller,n=e.discoveryData,o=n.relatedVideos[0],r={source:h.default.SCREEN.UP_NEXT_SCREEN,autoplay:!1},a={clickedVideo:o,custom:n.custom,metadata:p.default.getDiscoveryEventData(1,1,h.default.UI_TAG.UP_NEXT,o,r)};t.sendDiscoveryClickEvent(a,!1)}),v(b(b(d)),"startUpNextVideo",function(){OO.log("startUpNext");var e=d.props,t=e.controller,n=e.upNextInfo.upNextData,o={source:h.default.SCREEN.UP_NEXT_SCREEN,autoplay:!0},r={clickedVideo:n,custom:o,metadata:p.default.getDiscoveryEventData(1,1,h.default.UI_TAG.UP_NEXT,n,o)};t.sendDiscoveryClickEvent(r,!0)}),d.canvas=null,d.context=null,d.interval=null;var o=0,r=0,a=d.props,i=a.controller,l=a.currentPlayhead,s=a.duration,u=a.timeToShow,c=Number.parseInt(i.state.upNextInfo.timeToShow,0);return r=i.state.screenToShow===h.default.SCREEN.DISCOVERY_SCREEN?(o=2/u,u):(o=2/c,s-l),d.state={counterInterval:.05,fraction:o,remainSeconds:r,hideClock:!1},d}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(f,i.default.Component),t=f,(n=[{key:"componentWillMount",value:function(){this.updateClockSize()}},{key:"componentDidMount",value:function(){this.setupCountDownTimer()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){var t=this,e=this.props.controller,n=this.state,o=n.hideClock,r=n.clockContainerWidth,a=(0,l.default)({"oo-countdown-clock":!0,"oo-up-next-count-down":e.state.screenToShow!==h.default.SCREEN.DISCOVERY_SCREEN,"oo-discovery-count-down":e.state.screenToShow===h.default.SCREEN.DISCOVERY_SCREEN,"oo-hidden":o});return i.default.createElement("canvas",{className:a,width:r,height:r,onClick:this.handleClick,onTouchEnd:this.handleClick,ref:function(e){t.canvas=e}})}}])&&a(t.prototype,n),o&&a(t,o),f}();u.propTypes={discoveryData:o.default.shape({}),timeToShow:o.default.number,currentPlayhead:o.default.number,controller:o.default.shape({}),duration:o.default.number,skinConfig:o.default.shape({}),upNextInfo:o.default.shape({}),playerState:o.default.string,responsiveView:o.default.string.isRequired},u.defaultProps={timeToShow:10,currentPlayhead:0,controller:{state:{screenToShow:"",upNextInfo:{timeToShow:10}}},duration:0,playerState:"",discoveryData:{},skinConfig:{responsive:{breakpoints:{xs:{id:"xs"}}}},upNextInfo:{}},t.exports=u},{"../constants/constants":73,"./utils":66,classnames:90,"prop-types":374,react:382}],33:[function(e,t,n){"use strict";var a=o(e("react")),i=o(e("react-dom")),l=o(e("react-scrollbar/dist/no-css"));function o(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var r=function(e){function r(e){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),n=this,(t=!(o=f(r).call(this,e))||"object"!==s(o)&&"function"!=typeof o?p(n):o).state={canScroll:!1},t.storeRef=t.storeRef.bind(p(p(t))),t.composedComponentDidUpdate=t.composedComponentDidUpdate.bind(p(p(t))),t.onTouchMove=t.onTouchMove.bind(p(p(t))),t}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(r,a.default.Component),t=r,(n=[{key:"componentWillUnmount",value:function(){this.removeDomListeners()}},{key:"onTouchMove",value:function(e){this.state.canScroll&&this.domNode===e.currentTarget&&e.preventDefault()}},{key:"removeDomListeners",value:function(){this.domNode&&this.domNode.removeEventListener("touchmove",this.onTouchMove)}},{key:"storeRef",value:function(e){this.composedComponent=e,this.composedComponent&&(this.composedComponentDidUpdateHandler=this.composedComponent.componentDidUpdate,this.composedComponent.componentDidUpdate=this.composedComponentDidUpdate,this.removeDomListeners(),this.domNode=i.default.findDOMNode(this.composedComponent),this.domNode&&this.domNode.addEventListener("touchmove",this.onTouchMove))}},{key:"composedComponentDidUpdate",value:function(){if("function"==typeof this.composedComponentDidUpdateHandler){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.composedComponentDidUpdateHandler.apply(this.composedComponent,t)}if(this.composedComponent){var o=this.composedComponent.canScroll(this.composedComponent.state);this.state.canScroll!==o&&this.setState({canScroll:o})}}},{key:"render",value:function(){var e=this.props.children,t=this.state.canScroll;return a.default.createElement(l.default,u({},this.props,{ref:this.storeRef,stopScrollPropagation:t}),e)}}])&&c(t.prototype,n),o&&c(t,o),r}();t.exports=r},{react:382,"react-dom":378,"react-scrollbar/dist/no-css":379}],34:[function(e,t,n){"use strict";var b=a(e("react")),v=a(e("classnames")),o=a(e("prop-types")),g=a(e("./accessibleButton")),r=a(e("./higher-order/accessibleMenu")),E=a(e("./icon")),S=a(e("../constants/constants"));function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(){return(_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(e){function o(e){var u,t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=this,n=s(o).call(this,e),f(c(c(u=!n||"object"!==i(n)&&"function"!=typeof n?c(t):n)),"getItemButtonRefCallback",function(t){return function(e){u.itemButtons[t]=e}}),f(c(c(u)),"setClassname",function(e){var t=u.props,n=t.selectedData,o=t.enabled;return(0,v.default)({"oo-item":!0,"oo-item-selected":n===e&&o,"oo-disabled":!o})}),f(c(c(u)),"resetAutoFocus",function(){u.autoFocus.first=!1,u.autoFocus.last=!1,u.autoFocus.selected=!1}),f(c(c(u)),"handleDataSelection",function(e){var t=u.props.onDataChange;u.resetAutoFocus(),u.autoFocus.selected=u.checkAndResetBtnAutoFocus(u.itemButtons[e]),t(e)}),f(c(c(u)),"handleLeftChevronClick",function(e){e.preventDefault(),u.resetAutoFocus(),u.autoFocus.last=u.checkAndResetBtnAutoFocus(u.leftChevronBtn);var t=u.state.currentPage;u.setState({currentPage:t-1})}),f(c(c(u)),"handleRightChevronClick",function(e){e.preventDefault(),u.resetAutoFocus(),u.autoFocus.first=u.checkAndResetBtnAutoFocus(u.rightChevronBtn);var t=u.state.currentPage;u.setState({currentPage:t+1})}),f(c(c(u)),"checkAndResetBtnAutoFocus",function(e){var t=!1;return e&&"function"==typeof e.wasTriggeredWithKeyboard&&(t=e.wasTriggeredWithKeyboard(),e.wasTriggeredWithKeyboard(!1)),t}),f(c(c(u)),"componentWillReceiveProps",function(e){var t=u.props,n=t.viewSize,o=t.dataItemsPerPage,r=u.state.currentPage;if(e.viewSize!==n){var a=n,i=e.viewSize,l=r*o[a]-o[a],s=Math.floor(l/e.dataItemsPerPage[i])+1;u.setState({currentPage:s})}}),f(c(c(u)),"shouldAutoFocusItem",function(e,t,n){var o=u.autoFocus.first&&0===t,r=u.autoFocus.last&&t===e.length-1,a=u.autoFocus.selected&&n;return o||r||a}),u.state={currentPage:1},u}var t,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(o,b.default.Component),t=o,(n=[{key:"componentWillMount",value:function(){this.leftChevronBtn=null,this.rightChevronBtn=null,this.itemButtons={},this.autoFocus={first:!1,last:!1,selected:!1}}},{key:"render",value:function(){var a=this,e=this.props,t=e.ariaLabel,n=e.viewSize,o=e.dataItemsPerPage,r=e.availableDataItems,i=e.selectedData,l=e.enabled,s=e.skinConfig,u=this.state.currentPage,c=o[n],f=c*(u-1),d=c*u,p=r.slice(f,d),h=[];p.forEach(function(e,t){var n=i===e,o={};n&&l&&s.general.accentColor&&(o={backgroundColor:s.general.accentColor});var r=a.shouldAutoFocusItem(p,t,n);h.push(b.default.createElement(g.default,{key:e,ref:a.getItemButtonRefCallback(e),autoFocus:r,className:a.setClassname(e),style:o,ariaLabel:e,ariaChecked:n,role:S.default.ARIA_ROLES.MENU_ITEM_RADIO,onClick:function(){return a.handleDataSelection(e)}},b.default.createElement("span",{className:"oo-data"},e)))});var m=(0,v.default)({"oo-left-button":!0,"oo-hidden":!l||u<=1}),y=(0,v.default)({"oo-right-button":!0,"oo-hidden":!l||d>=r.length});return b.default.createElement("div",{className:"oo-data-selector","aria-label":t,role:S.default.ARIA_ROLES.MENU},b.default.createElement(g.default,{ref:function(e){a.leftChevronBtn=e},className:m,ariaLabel:S.default.ARIA_LABELS.PREVIOUS_OPTIONS,role:S.default.ARIA_ROLES.MENU_ITEM,onClick:this.handleLeftChevronClick},b.default.createElement(E.default,_({},this.props,{icon:"left"}))),b.default.createElement("div",{className:"oo-data-panel oo-flexcontainer"},h),b.default.createElement(g.default,{ref:function(e){a.rightChevronBtn=e},className:y,ariaLabel:S.default.ARIA_LABELS.MORE_OPTIONS,role:S.default.ARIA_ROLES.MENU_ITEM,onClick:this.handleRightChevronClick},b.default.createElement(E.default,_({},this.props,{icon:"right"}))))}}])&&l(t.prototype,n),r&&l(t,r),o}(),p=(0,r.default)(d,{useRovingTabindex:!0});d.propTypes={enabled:o.default.bool.isRequired,selectedData:o.default.string,availableDataItems:o.default.arrayOf(o.default.string).isRequired,dataItemsPerPage:o.default.objectOf(o.default.number),viewSize:o.default.string.isRequired,ariaLabel:o.default.string,onDataChange:o.default.func.isRequired,skinConfig:o.default.shape({general:o.default.shape({accentColor:o.default.string})})},d.defaultProps={selectedData:"",dataItemsPerPage:{sm:10,md:10,lg:10},ariaLabel:o.default.string,skinConfig:{general:{accentColor:""}}},t.exports=p},{"../constants/constants":73,"./accessibleButton":8,"./higher-order/accessibleMenu":38,"./icon":42,classnames:90,"prop-types":374,react:382}],35:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var h=r(e("react")),m=r(e("classnames")),o=r(e("prop-types")),y=r(e("./controlButton")),a=r(e("../constants/constants"));function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var f=function(e){function r(e){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),n=this,(t=!(o=s(r).call(this,e))||"object"!==i(o)&&"function"!=typeof o?c(n):o).state={isTouched:!1},t.rotateVrVideo=t.rotateVrVideo.bind(c(c(t))),t.handleMouseOrTouchEvent=t.handleMouseOrTouchEvent.bind(c(c(t))),t.handleKeyboardEvent=t.handleKeyboardEvent.bind(c(c(t))),t}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(r,h.default.Component),t=r,(n=[{key:"rotateVrVideo",value:function(e,t){var n=this.state.isTouched,o=this.props,r=o.dir,a=o.handleVrViewControlsClick;(!n&&t||n&&!t)&&(a(e,t,r),this.setState({isTouched:t}))}},{key:"handleMouseOrTouchEvent",value:function(e){var t=e&&("mousedown"===e.type||"touchstart"===e.type);this.rotateVrVideo(e,t)}},{key:"handleKeyboardEvent",value:function(e){var t=e.which||e.keyCode,n=a.default.KEYCODES.ENTER_KEY,o=a.default.KEYCODES.SPACE_KEY,r=e&&"keydown"===e.type&&(t===n||t===o);this.rotateVrVideo(e,r)}},{key:"render",value:function(){var e="oo-vr-icon--move",t=this.props,n=t.dir,o=t.focusId,r=t.ariaLabel,a=t.tooltip,i=t.language,l=t.localizableStrings,s=t.responsiveView,u=t.skinConfig,c=t.controller,f=this.state.isTouched,d="".concat(e,"--").concat(n),p="";return f&&(p="".concat(d,"--touched")),h.default.createElement(y.default,{className:(0,m.default)("oo-direction-control",e,d,p),onMouseDown:this.handleMouseOrTouchEvent,onMouseUp:this.handleMouseOrTouchEvent,onMouseOut:this.handleMouseOrTouchEvent,onTouchStart:this.handleMouseOrTouchEvent,onTouchEnd:this.handleMouseOrTouchEvent,onBlur:this.handleMouseOrTouchEvent,onKeyDown:this.handleKeyboardEvent,onKeyUp:this.handleKeyboardEvent,language:i,localizableStrings:l,responsiveView:s,skinConfig:u,controller:c,key:o,focusId:o,ariaLabel:r,tooltip:a})}}])&&l(t.prototype,n),o&&l(t,o),r}();f.propTypes={dir:o.default.string,focusId:o.default.string.isRequired,tooltip:o.default.string,ariaLabel:o.default.string,language:o.default.string,responsiveView:o.default.string,controller:o.default.shape({state:o.default.shape({isMobile:o.default.bool.isRequired})}).isRequired,skinConfig:o.default.shape({}).isRequired,localizableStrings:o.default.shape({}),handleVrViewControlsClick:o.default.func},f.defaultProps={dir:void 0,tooltip:"",ariaLabel:"",language:"en",localizableStrings:{},responsiveView:"md",handleVrViewControlsClick:function(){}};var d=f;n.default=d},{"../constants/constants":73,"./controlButton":31,classnames:90,"prop-types":374,react:382}],36:[function(e,t,n){"use strict";var u=r(e("react")),o=r(e("prop-types")),s=r(e("../constants/constants")),c=r(e("./utils"));function r(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=function(e){function l(e){var n,t,o,r,a,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),t=this,o=d(l).call(this,e),n=!o||"object"!==f(o)&&"function"!=typeof o?p(t):o,r=p(p(n)),i=function(e){var t=n.props.onClickAction;e.keyCode===s.default.KEYCODES.SPACE_KEY&&(e.stopPropagation(),t())},(a="handleKeyUp")in r?Object.defineProperty(r,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[a]=i,n.state={imgError:!1},n}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(l,u.default.Component),t=l,(n=[{key:"componentWillMount",value:function(){var e=this,t=this.props.src,n=new window.Image;n.src=t,n.onerror=function(){e.setState({imgError:!0})}}},{key:"render",value:function(){var e=this.props,t=e.contentTitle,n=e.contentTitleClassName,o=e.children,r=e.onClickAction,a=e.skinConfig,i=e.src;if(this.state.imgError)return null;var l={backgroundImage:"url('".concat(i,"')")},s={color:c.default.getPropertyValue(a,"discoveryScreen.contentTitle.font.color"),fontFamily:c.default.getPropertyValue(a,"discoveryScreen.contentTitle.font.fontFamily")};return u.default.createElement("div",{className:"oo-discovery-image-wrapper-style"},u.default.createElement("div",{className:"oo-discovery-wrapper"},u.default.createElement("div",{onClick:r,onKeyUp:this.handleKeyUp,role:"button",tabIndex:0},u.default.createElement("div",{className:"oo-image-style",style:l})),o),u.default.createElement("div",{className:n,style:s,dangerouslySetInnerHTML:c.default.createMarkup(t)}))}}])&&a(t.prototype,n),o&&a(t,o),l}();l.propTypes={contentTitle:o.default.string,contentTitleClassName:o.default.string,children:o.default.oneOfType([o.default.arrayOf(o.default.node),o.default.node]),onClickAction:o.default.func,src:o.default.string.isRequired,skinConfig:o.default.shape({discoveryScreen:o.default.shape({contentTitle:o.default.shape({font:o.default.shape({color:o.default.string,fontFamily:o.default.string})})})})},l.defaultProps={contentTitle:"",contentTitleClassName:"",children:[],onClickAction:function(){},skinConfig:{discoveryScreen:{contentTitle:{font:{}}}}},t.exports=l},{"../constants/constants":73,"./utils":66,"prop-types":374,react:382}],37:[function(e,t,n){"use strict";var R=r(e("react")),P=r(e("classnames")),o=r(e("prop-types")),f=r(e("./utils")),k=r(e("../constants/constants")),I=r(e("./countDownClock")),L=r(e("./discoverItem")),D=r(e("./icon"));function r(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(){return(x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=function(e){function i(e){var c,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=this,n=s(i).call(this,e),p(d(d(c=!n||"object"!==l(n)&&"function"!=typeof n?d(t):n)),"handleResize",function(e){var t=c.props,n=t.videosPerPage,o=t.responsiveView,r=c.state.currentPage,a=o,i=e.responsiveView,l=r*n[a]-n[a],s=Math.floor(l/e.videosPerPage[i])+1;c.setState({currentPage:s}),c.detectHeight()}),p(d(d(c)),"goToPrevPage",function(){c.setState(function(e){return{currentPage:e.currentPage-1}})}),p(d(d(c)),"goToNextPage",function(){c.setState(function(e){return{currentPage:e.currentPage+1}})}),p(d(d(c)),"handleLeftButtonClick",function(e){e.preventDefault(),c.goToPrevPage()}),p(d(d(c)),"handleLeftButtonKeyUp",function(e){e.keyCode===k.default.KEYCODES.SPACE_KEY&&(e.stopPropagation(),c.goToPrevPage())}),p(d(d(c)),"handleRightButtonClick",function(e){e.preventDefault(),c.goToNextPage()}),p(d(d(c)),"handleRightButtonKeyUp",function(e){e.keyCode===k.default.KEYCODES.SPACE_KEY&&(e.stopPropagation(),c.goToNextPage())}),p(d(d(c)),"handleDiscoveryContentClick",function(e){var t=c.props,n=t.controller,o=t.discoveryData,r=t.responsiveView,a=t.videosPerPage[r],i=e%a+1,l=o.relatedVideos[e],s={source:k.default.SCREEN.DISCOVERY_SCREEN,autoplay:!1},u={clickedVideo:l,custom:s,metadata:f.default.getDiscoveryEventData(i,a,k.default.UI_TAG.DISCOVERY,l,s)};n.sendDiscoveryClickEvent(u,!1)}),p(d(d(c)),"shouldShowCountdownTimer",function(){var e=c.state.showDiscoveryCountDown,t=c.props.playerState;return e&&t===k.default.STATE.END}),p(d(d(c)),"handleDiscoveryCountDownClick",function(e){e.preventDefault(),c.setState({showDiscoveryCountDown:!1}),c.countDownClock.handleClick(e)}),p(d(d(c)),"detectHeight",function(){c.setState({componentHeight:c.discoveryPanel.getBoundingClientRect().height})});var o=c.props,r=o.forceCountDownTimer,a=o.skinConfig;return c.discoveryPanel=null,c.state={showDiscoveryCountDown:a.discoveryScreen.showCountDownTimerOnEndScreen||r,currentPage:1,componentHeight:null,shownAssets:-1},c}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(i,R.default.Component),t=i,(n=[{key:"componentDidMount",value:function(){this.detectHeight()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.componentWidth;e.componentWidth!==t&&this.handleResize(e)}},{key:"render",value:function(){var t=this,e=this.props,n=e.componentWidth,o=e.controller,r=e.skinConfig,a=e.discoveryData,i=e.responsiveView,l=e.videosPerPage,s=this.state.shownAssets,u=a.relatedVideos;u.length;for(var c=l[i],f=this.state,d=f.componentHeight,p=f.currentPage,h=f.showDiscoveryCountDown,m=c*(p-1),y=c*p,b=u.slice(m,y),v=1,g=m;g<y;g+=1)s<g&&g<u.length&&(o.sendDiscoveryDisplayEvent(v,c,k.default.UI_TAG.DISCOVERY,u[g],{}),this.state.shownAssets+=1,v+=1);for(var E=(0,P.default)({"oo-discovery-content-name":!0,"oo-hidden":!r.discoveryScreen.contentTitle.show}),S=(0,P.default)({"oo-discovery-count-down-wrapper-style":!0,"oo-hidden":!h}),_=(0,P.default)({"oo-discovery-toaster-container-style":!0,"oo-flexcontainer":!0,"oo-scale-size":i===r.responsive.breakpoints.xs.id&&(n<=420||d<=175)||i===r.responsive.breakpoints.sm.id&&(n<=420||d<=320)}),T=(0,P.default)({"oo-left-button":!0,"oo-hidden":p<=1}),O=(0,P.default)({"oo-right-button":!0,"oo-hidden":y>=u.length}),C=this.shouldShowCountdownTimer()?R.default.createElement("div",{className:S},R.default.createElement("div",{className:"oo-discovery-count-down-icon-style",onClick:this.handleDiscoveryCountDownClick,role:"button",tabIndex:0},R.default.createElement(I.default,x({},this.props,{timeToShow:r.discoveryScreen.countDownTime,ref:function(e){t.countDownClock=e}})),R.default.createElement(D.default,x({},this.props,{icon:"pause"})))):null,A=[],N=function(e){A.push(R.default.createElement(L.default,x({},t.props,{key:e,src:b[e].preview_image_url,contentTitle:b[e].name,contentTitleClassName:E,onClickAction:function(){t.handleDiscoveryContentClick(c*(p-1)+e)}}),C&&0===e&&p<=1?C:null))},w=0;w<b.length;w+=1)N(w);return R.default.createElement("div",{className:"oo-content-panel oo-discovery-panel",ref:function(e){t.discoveryPanel=e}},R.default.createElement("div",{className:_},A),R.default.createElement("div",{className:T,onClick:this.handleLeftButtonClick,onKeyUp:this.handleLeftButtonKeyUp,role:"button",tabIndex:0,"data-testid":"left-button"},R.default.createElement(D.default,x({},this.props,{icon:"left"}))),R.default.createElement("div",{className:O,onClick:this.handleRightButtonClick,onKeyUp:this.handleRightButtonKeyUp,role:"button",tabIndex:0},R.default.createElement(D.default,x({},this.props,{icon:"right"}))))}}])&&a(t.prototype,n),o&&a(t,o),i}();i.propTypes={responsiveView:o.default.string,videosPerPage:o.default.objectOf(o.default.number),discoveryData:o.default.shape({relatedVideos:o.default.arrayOf(o.default.shape({preview_image_url:o.default.string,name:o.default.string}))}),skinConfig:o.default.shape({discoveryScreen:o.default.shape({showCountDownTimerOnEndScreen:o.default.bool,countDownTime:o.default.number,contentTitle:o.default.shape({show:o.default.bool})}),icons:o.default.objectOf(o.default.object)}),controller:o.default.shape({sendDiscoveryClickEvent:o.default.func,sendDiscoveryDisplayEvent:o.default.func})},i.defaultProps={videosPerPage:{xs:2,sm:4,md:6,lg:8},skinConfig:{discoveryScreen:{showCountDownTimerOnEndScreen:!0,countDownTime:10,contentTitle:{show:!0}},icons:{pause:{fontStyleClass:"oo-icon oo-icon-pause"},discovery:{fontStyleClass:"oo-icon oo-icon-topmenu-discovery"},left:{fontStyleClass:"oo-icon oo-icon-left"},right:{fontStyleClass:"oo-icon oo-icon-right"}},responsive:{breakpoints:{xs:{id:"xs"},sm:{id:"sm"},md:{id:"md"},lg:{id:"lg"}}}},discoveryData:{relatedVideos:[]},controller:{sendDiscoveryClickEvent:function(){},sendDiscoveryDisplayEvent:function(){}},responsiveView:"md"},t.exports=i},{"../constants/constants":73,"./countDownClock":32,"./discoverItem":36,"./icon":42,"./utils":66,classnames:90,"prop-types":374,react:382}],38:[function(e,t,n){"use strict";var r=o(e("react")),a=o(e("react-dom")),u=o(e("../../constants/constants"));function o(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.exports=function(o){var s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return function(e){function l(){var e,r,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return t=this,n=(e=d(l)).call.apply(e,[this].concat(a)),m(h(h(r=!n||"object"!==c(n)&&"function"!=typeof n?h(t):n)),"onKeyDown",function(e){if(e.target&&e.target.hasAttribute(u.default.KEYBD_FOCUS_ID_ATTR)&&e.target.getAttribute("role")!==u.default.ARIA_ROLES.SLIDER)switch(e.which||e.keyCode){case u.default.KEYCODES.UP_ARROW_KEY:case u.default.KEYCODES.LEFT_ARROW_KEY:e.preventDefault(),r.focusOnMenuItemSibling(e.target,!1);break;case u.default.KEYCODES.DOWN_ARROW_KEY:case u.default.KEYCODES.RIGHT_ARROW_KEY:e.preventDefault(),r.focusOnMenuItemSibling(e.target,!0)}}),m(h(h(r)),"getMenuItemList",function(){var e=[];return r.menuDomElement&&(e=r.menuDomElement.querySelectorAll("[".concat(u.default.KEYBD_FOCUS_ID_ATTR,"]:not(.oo-hidden)"))),e}),m(h(h(r)),"getMenuItemSiblingIndex",function(e,t,n){if(!e||!e.length)return-1;var o=Array.prototype.indexOf.call(e,t),r=n?o+1:o-1;return r<0&&(r=e.length-1),r>=e.length&&(r=0),r}),m(h(h(r)),"focusOnMenuItemSibling",function(e,t){var n=r.getMenuItemList();if(n.length){var o=n[r.getMenuItemSiblingIndex(n,e,t)];o&&"function"==typeof e.focus&&o.focus()}}),m(h(h(r)),"composedComponentDidUpdate",function(){if("function"==typeof r.composedComponentDidUpdateHandler){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.composedComponentDidUpdateHandler.apply(r.composedComponent,t)}r.applyRovingTabIndex()}),m(h(h(r)),"applyOptions",function(){s.selector&&r.menuDomElement&&(r.menuDomElement=r.menuDomElement.querySelector(s.selector)),s.useRovingTabindex&&(r.applyRovingTabIndex(),r.composedComponent&&(r.composedComponentDidUpdateHandler=r.composedComponent.componentDidUpdate,r.composedComponent.componentDidUpdate=r.composedComponentDidUpdate))}),m(h(h(r)),"applyRovingTabIndex",function(){var t=!1,e=r.getMenuItemList();e.forEach(function(e){"true"===e.getAttribute("aria-checked")||"true"===e.getAttribute("aria-selected")?(e.setAttribute("tabindex",0),t=!0):e.setAttribute("tabindex",-1)}),e.length&&!t&&e[0].setAttribute("tabindex",0)}),r}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(l,r.default.Component),f((t=l).prototype,[{key:"componentDidMount",value:function(){this.menuDomElement=a.default.findDOMNode(this.composedComponent),this.applyOptions(),this.menuDomElement&&this.menuDomElement.addEventListener("keydown",this.onKeyDown)}},{key:"componentWillUnmount",value:function(){this.menuDomElement&&this.menuDomElement.removeEventListener("keydown",this.onKeyDown)}},{key:"render",value:function(){var t=this;return r.default.createElement(o,i({ref:function(e){t.composedComponent=e}},this.props))}}]),n&&f(t,n),l}()}},{"../../constants/constants":73,react:382,"react-dom":378}],39:[function(e,t,n){"use strict";var a=o(e("react")),r=o(e("prop-types")),i=o(e("../../constants/constants"));function o(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.exports=function(o){var e=function(e){function r(e){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),n=this,(t=!(o=c(r).call(this,e))||"object"!==l(o)&&"function"!=typeof o?d(n):o).startTimer=null,t.repeatTimer=null,t.onKeyDown=t.onKeyDown.bind(d(d(t))),t.onMouseDown=t.onMouseDown.bind(d(d(t))),t.holdClick=t.holdClick.bind(d(d(t))),t.releaseClick=t.releaseClick.bind(d(d(t))),t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(r,a.default.Component),u((t=r).prototype,[{key:"componentDidUpdate",value:function(){this.props.disabled&&this.releaseClick()}},{key:"componentWillUnmount",value:function(){this.releaseClick()}},{key:"onKeyDown",value:function(e){var t=this.props.onClick;e.key!==i.default.KEY_VALUES.SPACE&&e.key!==i.default.KEY_VALUES.ENTER||t()}},{key:"onMouseDown",value:function(){(0,this.props.onClick)(),this.queueHoldClick()}},{key:"queueHoldClick",value:function(){clearTimeout(this.startTimer),this.startTimer=setTimeout(this.holdClick,500)}},{key:"holdClick",value:function(){var e=this,t=this.props.onClick;clearTimeout(this.repeatTimer),this.repeatTimer=setTimeout(function(){t(),e.holdClick()},100)}},{key:"releaseClick",value:function(){clearTimeout(this.startTimer),this.startTimer=null,clearTimeout(this.repeatTimer),this.repeatTimer=null}},{key:"render",value:function(){var e=this.props.children;return a.default.createElement(o,s({},this.props,{onClick:null,onKeyDown:this.onKeyDown,onMouseDown:this.onMouseDown,onMouseUp:this.releaseClick,onMouseLeave:this.releaseClick}),e)}}]),n&&u(t,n),r}();return e.propTypes={onClick:r.default.func.isRequired},e}},{"../../constants/constants":73,"prop-types":374,react:382}],40:[function(e,t,n){"use strict";var a=o(e("react")),i=o(e("react-dom")),r=o(e("prop-types")),l=o(e("../../constants/constants"));function o(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.exports=function(o){var e=function(e){function r(e){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),n=this,(t=!(o=f(r).call(this,e))||"object"!==s(o)&&"function"!=typeof o?p(n):o).onFocus=t.onFocus.bind(p(p(t))),t.onBlur=t.onBlur.bind(p(p(t))),t.composedComponentRef=a.default.createRef(),t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(r,a.default.Component),c((t=r).prototype,[{key:"componentDidMount",value:function(){var e=i.default.findDOMNode(this.composedComponentRef.current);this.tryRestoreFocusedControl(e)}},{key:"onBlur",value:function(e){var t=this.props,n=t.controller,o=t.onBlur;n.setFocusedControl(null),"function"==typeof o&&o(e)}},{key:"onFocus",value:function(e){var t=this.props,n=t.controller,o=t.onFocus,r=e.target?e.target.getAttribute(l.default.KEYBD_FOCUS_ID_ATTR):void 0;r&&n.setFocusedControl(r),"function"==typeof o&&o(e)}},{key:"tryRestoreFocusedControl",value:function(e){var t=this.props,n=t.controller,o=t.playerState;if(e&&n.state.focusedControl){var r="[".concat(l.default.KEYBD_FOCUS_ID_ATTR,'="').concat(n.state.focusedControl,'"]'),a=e.querySelector(r);a&&"function"==typeof a.focus&&(a.focus(),o===l.default.STATE.PLAYING&&n.startHideControlBarTimer())}}},{key:"render",value:function(){var e=this.props.children;return a.default.createElement(o,u({},this.props,{ref:this.composedComponentRef,onFocus:this.onFocus,onBlur:this.onBlur}),e)}}]),n&&c(t,n),r}();return e.propTypes={playerState:r.default.string,controller:r.default.shape({state:r.default.shape({focusedControl:r.default.string}),setFocusedControl:r.default.func.isRequired,startHideControlBarTimer:r.default.func.isRequired})},e.defaultProps={playerState:l.default.STATE.PAUSE,controller:{state:{focusedControl:void 0}}},e}},{"../../constants/constants":73,"prop-types":374,react:382,"react-dom":378}],41:[function(e,t,n){"use strict";var o=a(e("./controlButton")),r=a(e("./higher-order/holdOnClick"));function a(e){return e&&e.__esModule?e:{default:e}}t.exports=(0,r.default)(o.default)},{"./controlButton":31,"./higher-order/holdOnClick":39}],42:[function(e,t,n){"use strict";var u=r(e("react")),o=r(e("prop-types"));function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),l(this,s(t).apply(this,arguments))}var n,o,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,u.default.Component),n=t,(o=[{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.icon,o=t.className,r=t.style;return this.props&&(n!==e.icon||o!==e.className||r!==e.style)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.icon,o=e.skinConfig,r=e.style,a=o.icons?o.icons[n]:null,i=function(r){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{},t=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(a).filter(function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.forEach(function(e){var t,n,o;t=r,o=a[n=e],n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o})}return r}({fontFamily:a?a.fontFamilyName:""},r),l=a?a.fontStyleClass:"",s=a?a.fontString:"";return u.default.createElement("span",{className:"".concat(l," ").concat(t),style:i},s)}}])&&i(n.prototype,o),r&&i(n,r),t}();f.propTypes={icon:o.default.string,skinConfig:o.default.shape({}),className:o.default.string,style:o.default.shape({})},f.defaultProps={icon:"",skinConfig:{},className:"",style:{}},t.exports=f},{"prop-types":374,react:382}],43:[function(e,t,n){"use strict";var s=r(e("react")),o=r(e("prop-types"));function r(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t=e.clickUrl,n=e.height,o=e.imageUrl,r=e.target,a=e.width,i=e.style,l=t?s.default.createElement("a",{href:t,target:r},s.default.createElement("img",{width:a,height:n,src:o,alt:""})):s.default.createElement("img",{width:a,height:n,src:o,alt:""});return s.default.createElement("div",{className:"oo-logo oo-control-bar-item",style:i},l)};a.propTypes={imageUrl:o.default.string,clickUrl:o.default.string,target:o.default.string,width:o.default.oneOfType([o.default.string,o.default.number]),height:o.default.oneOfType([o.default.string,o.default.number]),style:o.default.shape({})},a.defaultProps={imageUrl:"/assets/images/ooyala.png",clickUrl:"",target:"_blank",width:null,height:null,style:{}},t.exports=a},{"prop-types":374,react:382}],44:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getPosition=function(e,t,n){return e&&t&&n?parseFloat(n)/parseFloat(e)*t:0},n.getSize=function(e,t,n,o){var r=a;if(!e||!t)return 0;o&&0<o&&(r=o-n);return parseFloat(r)*parseFloat(t)/parseFloat(e)};var a=2},{}],45:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=i(e("react")),o=i(e("prop-types")),s=e("./helpers"),a=i(e("../../constants/constants"));function i(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c=function(e){function c(){var e,a,t,n,o,r,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];return t=this,n=(e=d(c)).call.apply(e,[this].concat(s)),a=!n||"object"!==f(n)&&"function"!=typeof n?p(t):n,o=p(p(a)),i=function(e){var t=a.props,n=t.data,o=t.duration,r=t.scrubberBarWidth;return n.start!==e.data.start||n.end!==e.data.end||o!==e.duration||r!==e.scrubberBarWidth},(r="shouldComponentUpdate")in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i,a}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(c,r.default.Component),t=c,(n=[{key:"getStyles",value:function(){var e=this.props,t=e.data,n=e.config,o=e.accentColor,r=e.duration,a=e.scrubberBarWidth,i=Object.assign({},n,t),l=i.markerColor?i.markerColor:o;return{left:(0,s.getPosition)(r,a,t.start),width:(0,s.getSize)(r,a,t.start,t.end),backgroundColor:l}}},{key:"render",value:function(){var e=this.props.data;return!e.type||!e.start&&0!==e.start||e.type===a.default.MARKERS.TYPE.TEXT&&!e.text?null:r.default.createElement("div",{style:this.getStyles(),className:"oo-marker"})}}])&&l(t.prototype,n),o&&l(t,o),c}();c.propTypes={duration:o.default.number,scrubberBarWidth:o.default.number,data:o.default.shape({type:o.default.string,start:o.default.number,end:o.default.number,text:o.default.string,iconUrl:o.default.string,imageUrl:o.default.string,backgroundColor:o.default.string,hoverColor:o.default.string}),config:o.default.shape({iconUrl:o.default.string,backgroundColor:o.default.string,hoverColor:o.default.string}),accentColor:o.default.string},c.defaultProps={duration:0,scrubberBarWidth:0,data:{},config:{},accentColor:""};var h=c;n.default=h},{"../../constants/constants":73,"./helpers":44,"prop-types":374,react:382}],46:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}}(e("react")),o=r(e("prop-types")),c=r(e("classnames")),d=e("./helpers"),p=r(e("../../constants/constants"));function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(e){function a(e){var r,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=this,n=s(a).call(this,e),m(h(h(r=!n||"object"!==i(n)&&"function"!=typeof n?h(t):n)),"onMarkerClick",function(){var e=r.props,t=e.controller,n=e.data,o=r.state.hover;if(r.isMobile){if(!o)return void r.setState({hover:!0});r.setState({hover:!1})}t.seek(n.start),t.updateSeekingPlayhead(n.start)}),m(h(h(r)),"onMouseEnter",function(){r.isMobile||r.setState({hover:!0})}),m(h(h(r)),"onMouseLeave",function(){r.isMobile||r.setState({hover:!1})});var o=r.props.controller;return r.state={hover:!1},r.isMobile=o.state.isMobile,r}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(a,u.Component),t=a,(n=[{key:"shouldComponentUpdate",value:function(e,t){var n=this.props,o=n.duration,r=n.scrubberBarWidth,a=this.state.hover;return o!==e.duration||(r!==e.scrubberBarWidth||a!==t.hover)}},{key:"getStyles",value:function(){var e=this.props,t=e.duration,n=e.scrubberBarWidth,o=e.data,r=e.config,a=e.accentColor,i=e.level,l=this.state.hover,s=Object.assign({},r,o),u=s.hoverColor?s.hoverColor:a,c=s.backgroundColor?s.backgroundColor:a,f={left:(0,d.getPosition)(t,n,o.start),zIndex:l?p.default.MARKERS.ZINDEX:p.default.MARKERS.ZINDEX-i};return o.type===p.default.MARKERS.TYPE.TEXT&&(f.left-=l?p.default.MARKERS.OFFSET.TEXT_HOVER:p.default.MARKERS.OFFSET.TEXT,f.backgroundColor=l?u:c),o.type===p.default.MARKERS.TYPE.ICON&&(f.left-=l&&this.hasCoverImage()?p.default.MARKERS.OFFSET.ICON_HOVER:p.default.MARKERS.OFFSET.ICON),f}},{key:"getContent",value:function(){var e=this.props,t=e.data,n=e.config,o=this.state.hover,r=Object.assign({},n,t);switch(r.type){case p.default.MARKERS.TYPE.TEXT:if(!r.text||0===r.text.length)return null;var a=r.text.length<=p.default.MARKERS.MAXCHAR?r.text:r.text.slice(0,p.default.MARKERS.MAXCHAR).concat(" ...");return u.default.createElement("p",null,a);case p.default.MARKERS.TYPE.ICON:if(!r.iconUrl||0===r.iconUrl.length)return null;var i=(0,c.default)({"oo-hidden":o&&this.hasCoverImage()}),l=(0,c.default)({"oo-hidden":!o&&this.hasCoverImage()});return u.default.createElement(u.default.Fragment,null,u.default.createElement("img",{className:i,src:r.iconUrl,alt:r.text}),this.hasCoverImage()&&u.default.createElement("img",{className:l,src:r.imageUrl,alt:r.text}));default:return null}}},{key:"hasCoverImage",value:function(){var e=this.props,t=e.data,n=e.config,o=Object.assign({},n,t);return o.imageUrl&&""!==o.imageUrl}},{key:"render",value:function(){var e,t=this.props,n=t.data,o=t.scrubberBarWidth,r=t.duration,a=this.state.hover,i=this.getStyles(),l=(0,c.default)((m(e={"oo-marker-bubble":!0},"oo-marker-".concat(n.type||"text"),!0),m(e,"oo-marker-expanded",a&&(n.type===p.default.MARKERS.TYPE.ICON&&this.hasCoverImage()||n.type===p.default.MARKERS.TYPE.TEXT)),e)),s=this.getContent();return r&&o&&s?u.default.createElement("div",{style:i,className:l,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onClick:this.onMarkerClick},s):null}}])&&l(t.prototype,n),o&&l(t,o),a}();a.propTypes={duration:o.default.number,scrubberBarWidth:o.default.number,data:o.default.shape({type:o.default.string,start:o.default.number,end:o.default.number,text:o.default.string,iconUrl:o.default.string,imageUrl:o.default.string,backgroundColor:o.default.string,hoverColor:o.default.string}),config:o.default.shape({iconUrl:o.default.string,backgroundColor:o.default.string,hoverColor:o.default.string}),accentColor:o.default.string,controller:o.default.shape({seek:o.default.func,updateSeekingPlayhead:o.default.func,state:o.default.shape({isMobile:o.default.bool})}),level:o.default.number},a.defaultProps={duration:0,scrubberBarWidth:0,data:{},config:{},accentColor:"",controller:null,level:0};var y=a;n.default=y},{"../../constants/constants":73,"./helpers":44,classnames:90,"prop-types":374,react:382}],47:[function(e,t,n){"use strict";var f=a(e("react")),d=a(e("classnames")),o=a(e("prop-types")),p=a(e("./customScrollArea")),r=a(e("./higher-order/accessibleMenu")),s=a(e("./menuPanelItem")),h=a(e("./utils")),m=a(e("../constants/constants"));function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){function o(e){var l,t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=this,n=u(o).call(this,e),b(y(y(l=!n||"object"!==i(n)&&"function"!=typeof n?y(t):n)),"onMenuItemClick",function(e){var t=l.props,n=t.onMenuItemClick,o=t.onClose;n(e),"function"==typeof o&&o({restoreToggleButtonFocus:!0})}),b(y(y(l)),"renderMenuItem",function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length?arguments[1]:void 0,n=2<arguments.length?arguments[2]:void 0,o=l.props,r=o.buttonClassName,a=o.skinConfig,i=e.value===t;return f.default.createElement(s.default,{key:e.value,itemValue:e.value,itemLabel:e.label,ariaLabel:e.ariaLabel,buttonClassName:r,isSelected:i,focusId:m.default.FOCUS_IDS.MENU_ITEM+e.value,accentColor:n,skinConfig:a,onClick:l.onMenuItemClick})}),l.onMenuItemClick=l.onMenuItemClick.bind(y(y(l))),l}var t,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(o,f.default.Component),t=o,(n=[{key:"render",value:function(){var t=this,e=this.props,n=e.className,o=e.contentClassName,r=e.title,a=e.selectedValue,i=e.isPopover,l=e.skinConfig,s=e.menuItems,u=(0,d.default)("oo-menu-panel",n,{"oo-menu-popover":i,"oo-content-panel":!i}),c=h.default.getPropertyValue(l,"general.accentColor",null);return f.default.createElement("div",{className:u},f.default.createElement(p.default,{className:(0,d.default)("oo-menu-panel-content",o),speed:i?m.default.UI.POPOVER_SCROLL_RATE:1},r&&f.default.createElement("div",{className:"oo-menu-panel-title"},r),f.default.createElement("ul",{className:"oo-menu-panel-list",role:m.default.ARIA_ROLES.MENU},s.map(function(e){return t.renderMenuItem(e,a,c)}))))}}])&&l(t.prototype,n),r&&l(t,r),o}();v.propTypes={className:o.default.string,contentClassName:o.default.string,buttonClassName:o.default.string,title:o.default.string,selectedValue:o.default.oneOfType([o.default.string,o.default.number]).isRequired,isPopover:o.default.bool,onMenuItemClick:o.default.func.isRequired,onClose:o.default.func,menuItems:o.default.arrayOf(o.default.shape({value:o.default.oneOfType([o.default.string,o.default.number]).isRequired,label:o.default.string.isRequired,ariaLabel:o.default.string.isRequired})).isRequired,skinConfig:o.default.shape({general:o.default.shape({accentColor:o.default.string})})},v.defaultProps={className:"",contentClassName:"",buttonClassName:"",title:"",isPopover:!1,onClose:function(){},skinConfig:{}},t.exports=(0,r.default)(v)},{"../constants/constants":73,"./customScrollArea":33,"./higher-order/accessibleMenu":38,"./menuPanelItem":48,"./utils":66,classnames:90,"prop-types":374,react:382}],48:[function(e,t,n){"use strict";var p=r(e("react")),h=r(e("classnames")),o=r(e("prop-types")),m=r(e("./accessibleButton")),y=r(e("./icon")),b=r(e("../constants/constants"));function r(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t=e.itemValue,n=e.itemLabel,o=e.ariaLabel,r=e.buttonClassName,a=e.isSelected,i=e.focusId,l=e.accentColor,s=e.skinConfig,u=e.onClick,c=(0,h.default)("oo-menu-panel-item",{"oo-selected":a}),f=(0,h.default)("oo-menu-btn",r,{"oo-selected":a}),d={color:a?l:null};return p.default.createElement("li",{className:c,role:b.default.ARIA_ROLES.PRESENTATION},p.default.createElement(m.default,{className:f,style:d,focusId:i,role:b.default.ARIA_ROLES.MENU_ITEM_RADIO,ariaLabel:o,ariaChecked:a,onClick:function(){return u(t)}},a&&p.default.createElement(y.default,{skinConfig:s,icon:"selected"}),p.default.createElement("span",{className:"oo-menu-btn-label"},n)))};a.propTypes={itemValue:o.default.oneOfType([o.default.string,o.default.number]).isRequired,itemLabel:o.default.string.isRequired,ariaLabel:o.default.string.isRequired,buttonClassName:o.default.string,isSelected:o.default.bool.isRequired,focusId:o.default.string.isRequired,accentColor:o.default.string,skinConfig:o.default.shape({}).isRequired,onClick:o.default.func.isRequired},a.defaultProps={buttonClassName:"",accentColor:""},t.exports=a},{"../constants/constants":73,"./accessibleButton":8,"./icon":42,classnames:90,"prop-types":374,react:382}],49:[function(e,t,n){"use strict";var u=o(e("react")),a=o(e("classnames")),c=o(e("../constants/constants")),f=o(e("./controlButton")),d=o(e("./playbackSpeedButton")),i=o(e("./utils/autofocus"));function o(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=function(e){function o(e){var s,t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=this,n=h(o).call(this,e),b(y(y(s=!n||"object"!==l(n)&&"function"!=typeof n?y(t):n)),"startAnimation",function(){s.setState({animate:!0})}),b(y(y(s)),"handleShareClick",function(){s.props.controller.toggleShareScreen()}),b(y(y(s)),"handleMenuClick",function(e,t){var n=s.props.controller;n&&"function"==typeof n.toggleScreen&&e&&(s.configureMenuAutofocus(t),n.toggleScreen(e))}),b(y(y(s)),"handleDiscoveryClick",function(){s.props.controller.toggleDiscoveryScreen()}),b(y(y(s)),"buildMoreOptionsButtonList",function(){var e=s.props,t=e.controller,n=e.language,o=e.localizableStrings,r=e.responsiveView,a=e.skinConfig,i={language:n,localizableStrings:o,responsiveView:r,skinConfig:a,controller:t,style:{fontSize:"".concat(a.moreOptionsScreen.iconSize,"px")},getTooltipAlignment:function(){return c.default.TOOLTIP_ALIGNMENT.CENTER}},l={};return l[c.default.CONTROL_BAR_KEYS.QUALITY]=u.default.createElement(f.default,p({},i,{key:c.default.CONTROL_BAR_KEYS.QUALITY,onRef:function(e){return s.setToggleButtons(c.default.MENU_OPTIONS.VIDEO_QUALITY,e)},className:"oo-quality",focusId:c.default.CONTROL_BAR_KEYS.QUALITY,ariaLabel:c.default.ARIA_LABELS.VIDEO_QUALITY,icon:"quality",onClick:function(){return s.handleMenuClick(c.default.SCREEN.VIDEO_QUALITY_SCREEN,c.default.MENU_OPTIONS.VIDEO_QUALITY)}})),l[c.default.CONTROL_BAR_KEYS.DISCOVERY]=u.default.createElement(f.default,p({},i,{key:c.default.CONTROL_BAR_KEYS.DISCOVERY,className:"oo-discovery",focusId:c.default.CONTROL_BAR_KEYS.DISCOVERY,ariaHidden:!0,icon:"discovery",onClick:s.handleDiscoveryClick})),l[c.default.CONTROL_BAR_KEYS.AUDIO_AND_CC]=u.default.createElement(f.default,p({},i,{key:c.default.CONTROL_BAR_KEYS.AUDIO_AND_CC,onRef:function(e){return s.setToggleButtons(c.default.MENU_OPTIONS.MULTI_AUDIO,e)},className:"oo-multiaudio",focusId:c.default.CONTROL_BAR_KEYS.AUDIO_AND_CC,ariaLabel:c.default.ARIA_LABELS.MULTI_AUDIO,icon:"audioAndCC",onClick:function(){return s.handleMenuClick(c.default.SCREEN.MULTI_AUDIO_SCREEN,c.default.MENU_OPTIONS.MULTI_AUDIO)}})),l[c.default.CONTROL_BAR_KEYS.CLOSED_CAPTION]=u.default.createElement(f.default,p({},i,{key:c.default.CONTROL_BAR_KEYS.CLOSED_CAPTION,onRef:function(e){return s.setToggleButtons(c.default.MENU_OPTIONS.CLOSED_CAPTIONS,e)},className:"oo-closed-caption",focusId:c.default.CONTROL_BAR_KEYS.CLOSED_CAPTION,ariaLabel:c.default.ARIA_LABELS.CLOSED_CAPTIONS,icon:"cc",onClick:function(){return s.handleMenuClick(c.default.SCREEN.CLOSED_CAPTION_SCREEN,c.default.MENU_OPTIONS.CLOSED_CAPTIONS)}})),l[c.default.CONTROL_BAR_KEYS.PLAYBACK_SPEED]=u.default.createElement(d.default,p({},i,{key:c.default.CONTROL_BAR_KEYS.PLAYBACK_SPEED,onRef:function(e){return s.setToggleButtons(c.default.MENU_OPTIONS.PLAYBACK_SPEED,e)},focusId:c.default.CONTROL_BAR_KEYS.PLAYBACK_SPEED,ariaLabel:c.default.ARIA_LABELS.PLAYBACK_SPEED,onClick:function(){return s.handleMenuClick(c.default.SCREEN.PLAYBACK_SPEED_SCREEN,c.default.MENU_OPTIONS.PLAYBACK_SPEED)}})),l[c.default.CONTROL_BAR_KEYS.SHARE]=u.default.createElement(f.default,p({},i,{key:c.default.CONTROL_BAR_KEYS.SHARE,className:"oo-share",focusId:c.default.CONTROL_BAR_KEYS.SHARE,ariaHidden:!0,icon:"share",onClick:s.handleShareClick})),t.state.moreOptionsItems.map(function(e){return l[e.name]})}),s.autofocus=new i.default(e.controller.state,e.controller.toggleButtons),s.getToggleButtons=s.autofocus.getToggleButtons.bind(y(y(s))),s.setToggleButtons=s.autofocus.setToggleButtons.bind(y(y(s))),s.configureMenuAutofocus=s.autofocus.configureMenuAutofocus.bind(y(y(s))),s.state={animate:!1},s}var t,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(o,u.default.Component),t=o,(n=[{key:"componentDidMount",value:function(){this.animateTimer=setTimeout(this.startAnimation,1)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.animateTimer)}},{key:"render",value:function(){var e=this.state.animate,t=(0,a.default)({"oo-more-options-items":!0,"oo-animate-more-options":e}),n=this.buildMoreOptionsButtonList();return u.default.createElement("div",{className:"oo-content-panel oo-more-options-panel"},u.default.createElement("div",{className:t},n))}}])&&s(t.prototype,n),r&&s(t,r),o}();r.defaultProps={skinConfig:{moreOptionsScreen:{iconStyle:{active:{color:"#FFF",opacity:1},inactive:{color:"#FFF",opacity:.6}}}}},t.exports=r},{"../constants/constants":73,"./controlButton":31,"./playbackSpeedButton":51,"./utils/autofocus":67,classnames:90,react:382}],50:[function(e,t,n){"use strict";var s=r(e("react")),o=r(e("prop-types"));function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),l(this,u(t).apply(this,arguments))}var n,o,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,s.default.Component),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.style,n=e.className,o=e.ariaHidden,r=e.onMouseEnter,a=e.onMouseLeave,i=e.onClick,l=e.children;return s.default.createElement("a",{style:t,className:n,"aria-hidden":o,onMouseEnter:r,onMouseLeave:a,onClick:i},l)}}])&&i(n.prototype,o),r&&i(n,r),t}();f.defaultProps={style:{},className:"",ariaHidden:!1,onMouseEnter:function(){},onMouseLeave:function(){},onClick:function(){},children:[]},f.propTypes={style:o.default.shape({}),className:o.default.string,ariaHidden:o.default.bool,onMouseEnter:o.default.func,onMouseLeave:o.default.func,onClick:o.default.func,children:o.default.oneOfType([o.default.arrayOf(o.default.node),o.default.node])},t.exports=f},{"prop-types":374,react:382}],51:[function(e,t,n){"use strict";var i=r(e("react")),l=r(e("classnames")),o=r(e("prop-types")),s=r(e("./controlButton")),u=r(e("./utils")),c=r(e("../constants/constants"));function r(e){return e&&e.__esModule?e:{default:e}}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var a=function(e){var t=e.children,n=e.className,o=e.controller,r=u.default.getPropertyValue(o,"state.playbackSpeedOptions.currentSpeed",1),a=c.default.ARIA_LABELS.PLAYBACK_SPEED_OPTION;return i.default.createElement(s.default,f({},e,{className:(0,l.default)("oo-playback-speed",n),ariaLabel:a}),i.default.createElement("span",{className:"oo-current-speed oo-icon"},r,"x"),t)};a.propTypes={controller:o.default.shape({state:o.default.shape({playbackSpeedOptions:o.default.shape({currentSpeed:o.default.number.isRequired})})}).isRequired},t.exports=a},{"../constants/constants":73,"./controlButton":31,"./utils":66,classnames:90,"prop-types":374,react:382}],52:[function(e,t,n){"use strict";var c=r(e("react")),o=r(e("prop-types")),f=r(e("./menuPanel")),d=r(e("./utils")),p=r(e("../constants/constants")),a=r(e("../constants/macros"));function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var y=function(e){function r(e){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),n=this,(t=!(o=u(r).call(this,e))||"object"!==i(o)&&"function"!=typeof o?m(n):o).onMenuItemClick=t.onMenuItemClick.bind(m(m(t))),t}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(r,c.default.Component),t=r,(n=[{key:"onMenuItemClick",value:function(e){this.props.controller.setPlaybackSpeed(e)}},{key:"getPlaybackSpeedOptions",value:function(){var e=this.props.skinConfig;return this.playbackSpeedOptions||(1<=e.playbackSpeed.length&&(e.playbackSpeed.options=l(e.playbackSpeed)),this.playbackSpeedOptions=d.default.getPropertyValue(e,"playbackSpeed.options",p.default.PLAYBACK_SPEED.DEFAULT_OPTIONS),this.playbackSpeedOptions=this.playbackSpeedOptions.map(function(e){return d.default.sanitizePlaybackSpeed(e)}),this.playbackSpeedOptions=d.default.dedupeArray(this.playbackSpeedOptions),this.playbackSpeedOptions.sort(function(e,t){return e-t})),this.playbackSpeedOptions}},{key:"getMenuItems",value:function(){var e=this.props,o=e.language,r=e.localizableStrings;return this.getPlaybackSpeedOptions().map(function(e){var t,n;return n=e===p.default.PLAYBACK_SPEED.DEFAULT_VALUE?(t=d.default.getLocalizedString(o,p.default.SKIN_TEXT.NORMAL_SPEED,r),p.default.ARIA_LABELS.NORMAL_SPEED):(t="".concat(e,"x"),p.default.ARIA_LABELS.PLAYBACK_SPEED.replace(a.default.RATE,e)),{value:e,label:t,ariaLabel:n}})}},{key:"render",value:function(){var e=this.getMenuItems(),t=this.props,n=t.isPopover,o=t.language,r=t.localizableStrings,a=t.controller,i=t.skinConfig,l=t.onClose,s=d.default.getPropertyValue(a,"state.playbackSpeedOptions.currentSpeed",p.default.UI.DEFAULT_PLAYBACK_SPEED),u=d.default.getLocalizedString(o,n?p.default.SKIN_TEXT.PLAYBACK_SPEED:"",r);return c.default.createElement(f.default,{className:"oo-playback-speed-panel",title:u,selectedValue:s,isPopover:n,skinConfig:i,menuItems:e,onMenuItemClick:this.onMenuItemClick,onClose:l})}}])&&s(t.prototype,n),o&&s(t,o),r}();y.propTypes={isPopover:o.default.bool,language:o.default.string.isRequired,localizableStrings:o.default.shape({}).isRequired,onClose:o.default.func,controller:o.default.shape({state:o.default.shape({playbackSpeedOptions:o.default.shape({currentSpeed:o.default.number.isRequired})}),setPlaybackSpeed:o.default.func.isRequired}).isRequired,skinConfig:o.default.shape({general:o.default.shape({accentColor:o.default.string}),playbackSpeed:o.default.shape({options:o.default.arrayOf(o.default.number).isRequired})})},y.defaultProps={isPopover:!1,onClose:function(){},skinConfig:{}},t.exports=y},{"../constants/constants":73,"../constants/macros":74,"./menuPanel":47,"./utils":66,"prop-types":374,react:382}],53:[function(e,t,n){"use strict";var F=r(e("react")),o=r(e("prop-types")),W=r(e("classnames")),Y=r(e("./thumbnailContainer")),K=r(e("./utils")),a=r(e("../constants/macros")),H=r(e("../constants/constants")),z=r(e("./markers/marker")),l=r(e("./markers/markerIcon"));function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){function r(e){var u,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),t=this,n=c(r).call(this,e),d(f(f(u=!n||"object"!==i(n)&&"function"!=typeof n?f(t):n)),"state",{scrubberBarWidth:0,playheadWidth:0,scrubbingPlayheadX:0,hoveringX:0}),d(f(f(u)),"getResponsiveUIMultiple",function(e){return u.props.skinConfig.responsive.breakpoints[e].multiplier}),d(f(f(u)),"handleResize",function(){u.setState({scrubberBarWidth:u.scrubberBar.clientWidth,playheadWidth:u.playhead.clientWidth})}),d(f(f(u)),"handlePlayheadMouseDown",function(e){var t=u.props.controller;if(t.state.screenToShow!==H.default.SCREEN.AD_SCREEN){if(t.startHideControlBarTimer(),e.target.className.match("playhead")&&"mousedown"!==e.type&&(u.touchInitiated=!0),u.touchInitiated&&"mousedown"!==e.type||!u.touchInitiated&&"mousedown"===e.type){e.preventDefault();var n=u.touchInitiated?e.touches[0]:e;t.beginSeeking(),t.renderSkin(),u.lastScrubX||(u.lastScrubX=n.clientX),u.touchInitiated?(u.root.parentNode.addEventListener("touchmove",u.handlePlayheadMouseMove),document.addEventListener("touchend",u.handlePlayheadMouseUp,!0)):(u.root.parentNode.addEventListener("mousemove",u.handlePlayheadMouseMove),document.addEventListener("mouseup",u.handlePlayheadMouseUp,!0))}}else e.preventDefault()}),d(f(f(u)),"handlePlayheadMouseMove",function(e){var t=u.props,n=t.controller,o=t.currentPlayhead,r=t.duration,a=t.seeking,i=u.state.scrubberBarWidth;if(n.startHideControlBarTimer(),e.preventDefault(),a&&0<r){var l=u.touchInitiated?e.touches[0]:e,s=o*i/r+(l.clientX-u.lastScrubX);u.targetPlayhead=s/i*r,n.updateSeekingPlayhead(s/i*r),u.setState({scrubbingPlayheadX:s}),u.lastScrubX=l.clientX}}),d(f(f(u)),"handlePlayheadMouseUp",function(e){var t=u.props.controller,n=f(f(u)).targetPlayhead;t.startHideControlBarTimer(),e.preventDefault(),e.stopPropagation(),u.scrubberBar&&u.scrubberBar.blur(),u.lastScrubX=null,u.touchInitiated?(u.root.parentNode.removeEventListener("touchmove",u.handlePlayheadMouseMove),document.removeEventListener("touchend",u.handlePlayheadMouseUp,!0)):(u.root.parentNode.removeEventListener("mousemove",u.handlePlayheadMouseMove),document.removeEventListener("mouseup",u.handlePlayheadMouseUp,!0)),t.seek(n),u.setState({scrubbingPlayheadX:0}),u.touchInitiated=!1}),d(f(f(u)),"handleScrubberBarKeyDown",function(e){var t=u.props.controller;switch(e.key){case H.default.KEY_VALUES.ARROW_UP:case H.default.KEY_VALUES.ARROW_RIGHT:e.preventDefault(),t.accessibilityControls.seekBy(H.default.A11Y_CTRLS.SEEK_DELTA,!0);break;case H.default.KEY_VALUES.ARROW_DOWN:case H.default.KEY_VALUES.ARROW_LEFT:e.preventDefault(),t.accessibilityControls.seekBy(H.default.A11Y_CTRLS.SEEK_DELTA,!1)}}),d(f(f(u)),"handleScrubberBarMouseDown",function(e){var t=u.props,n=t.controller,o=t.duration;if(n.state.screenToShow!==H.default.SCREEN.AD_SCREEN){if(!(e.target.className.match("oo-playhead")||u.touchInitiated&&"mousedown"===e.type)){var r=0;u.touchInitiated="touchstart"===e.type,r=u.touchInitiated?e.targetTouches[0].pageX-e.target.getBoundingClientRect().left:void 0===e.nativeEvent.offsetX?e.nativeEvent.layerX:e.nativeEvent.offsetX,e.target.className.match("oo-marker")&&(r+=e.target.offsetLeft),u.setState({scrubbingPlayheadX:r});var a=u.state.scrubberBarWidth;u.targetPlayhead=r/a*o,u.handlePlayheadMouseDown(e)}}else e.preventDefault()}),d(f(f(u)),"handleScrubberBarMouseMove",function(e){u.handleScrubberBarMouseOver(e)}),d(f(f(u)),"handleScrubberBarMouseOver",function(e){var t=u.props,n=t.controller;if(t.skinConfig.controlBar.scrubberBar.thumbnailPreview&&n.state.screenToShow!==H.default.SCREEN.AD_SCREEN&&!u.isMobile&&!(e.target.className.match("oo-playhead")||e.target.className.match("oo-text-truncate")||e.target.className.match("oo-marker-bubble")||e.target.parentElement.className.match("oo-marker-bubble"))){n.setScrubberBarHoverState(!0);var o=e.nativeEvent.offsetX;e.target.className.match("oo-marker")&&(o+=e.target.offsetLeft),u.setState({hoveringX:o})}}),d(f(f(u)),"handleScrubberBarMouseOut",function(){var e=u.props.controller;e.state.thumbnails&&(e.setScrubberBarHoverState(!1),u.setState({hoveringX:0}))}),d(f(f(u)),"handleScrubberBarMouseLeave",function(){u.props.controller.setScrubberBarHoverState(!1)}),d(f(f(u)),"getAriaValueText",function(){var e=u.props,t=e.currentPlayhead,n=e.duration,o=e.isLiveStream,r=K.default.getTimeDisplayValues(t,n,o);return o?r.totalTime?H.default.ARIA_LABELS.TIME_DISPLAY_DVR.replace(a.default.CURRENT_TIME,r.currentTime).replace(a.default.TOTAL_TIME,r.totalTime):H.default.ARIA_LABELS.TIME_DISPLAY_LIVE:H.default.ARIA_LABELS.TIME_DISPLAY.replace(a.default.CURRENT_TIME,r.currentTime).replace(a.default.TOTAL_TIME,r.totalTime)}),d(f(f(u)),"getMarkerIcons",function(){var e=u.props,n=e.controller,o=e.skinConfig,r=e.duration,a=u.state.scrubberBarWidth,t=n.state.markers?n.state.markers.list:[],i=o.markers&&o.markers.types?o.markers.types:[];return t.map(function(e,t){return F.default.createElement(l.default,{key:t,level:t,data:e,config:i[e.type],duration:r,scrubberBarWidth:a,accentColor:o.general.accentColor,controller:n})})}),u.lastScrubX=null;var o=u.props.controller;return u.isMobile=o.state.isMobile,u.touchInitiated=!1,u.targetPlayhead=0,u.root=null,u.scrubberBar=null,u.playhead=null,u}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(r,F.default.Component),t=r,(n=[{key:"componentDidMount",value:function(){this.handleResize()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.componentWidth;e.componentWidth!==t&&this.handleResize()}},{key:"componentDidUpdate",value:function(e){this.props.forceResize&&!e.forceResize&&this.handleResize()}},{key:"componentWillUnmount",value:function(){this.isMobile?(this.root.parentNode.removeEventListener("touchmove",this.handlePlayheadMouseMove),document.removeEventListener("touchend",this.handlePlayheadMouseUp,!0)):(this.root.parentNode.removeEventListener("mousemove",this.handlePlayheadMouseMove),document.removeEventListener("mouseup",this.handlePlayheadMouseUp,!0))}},{key:"render",value:function(){var t=this,e=this.props,n=e.audioOnly,o=e.buffered,r=e.controller,a=e.currentPlayhead,i=e.duration,l=e.skinConfig,s={backgroundColor:l.controlBar.scrubberBar.backgroundColor},u={width:"".concat(Math.min(parseFloat(o)/parseFloat(i)*100,100),"%"),backgroundColor:l.controlBar.scrubberBar.bufferedColor},c={width:"".concat(Math.min(parseFloat(a)/parseFloat(i)*100,100),"%"),backgroundColor:l.controlBar.scrubberBar.playedColor?l.controlBar.scrubberBar.playedColor:l.general.accentColor},f={backgroundColor:l.controlBar.scrubberBar.playedColor?l.controlBar.scrubberBar.playedColor:l.general.accentColor},d=this.state,p=d.hoveringX,h=d.scrubbingPlayheadX,m=d.scrubberBarWidth,y=d.playheadWidth,b=parseFloat(a)/parseFloat(i)*m;b=Math.max(Math.min(m-Number.parseInt(y,0)/2,b),0),Number.isNaN(b)&&(b=0);var v={};v.left="rtl"===r.state.readDirection?m-b:b;var g=this.handlePlayheadMouseDown,E=this.handleScrubberBarMouseDown,S=this.handleScrubberBarMouseOver,_=this.handleScrubberBarMouseOut,T=this.handleScrubberBarMouseMove,O="oo-played-indicator",C="oo-playhead";r.state.screenToShow===H.default.SCREEN.AD_SCREEN&&(C+=" oo-ad-playhead",O+=" oo-played-ad-indicator",g=null,s.backgroundColor=l.controlBar.adScrubberBar.backgroundColor,u.backgroundColor=l.controlBar.adScrubberBar.bufferedColor,c.backgroundColor=l.controlBar.adScrubberBar.playedColor);var A=0,N=0,w=null,R=!1,P=null;if(r.state.thumbnails&&(h||this.lastScrubX||p)){var k=K.default.getPropertyValue(r,"state.vrViewingDirection",{yaw:0,roll:0,pitch:0}),I=K.default.getPropertyValue(r,"state.fullscreen",!1),L=K.default.getPropertyValue(r,"state.videoVr",!1),D=!!h;h?(A=(N=h)/m*i,C+=" oo-playhead-scrubbing"):this.lastScrubX?(N=a*m/i,A=a,C+=" oo-playhead-scrubbing"):p&&(A=(N=p)/m*i,w={width:"".concat(Math.min(parseFloat(A)/parseFloat(i)*100,100),"%"),backgroundColor:l.controlBar.scrubberBar.playedColor?l.controlBar.scrubberBar.playedColor:l.general.accentColor},R=!0,C+=" oo-playhead-hovering"),P=F.default.createElement(Y.default,{isCarousel:D,thumbnails:r.state.thumbnails,duration:i,hoverPosition:N,hoverTime:0<A?A:0,scrubberBarWidth:m,videoVr:L,fullscreen:I,vrViewingDirection:k})}var x=(0,W.default)({"oo-scrubber-bar":!0,"oo-scrubber-bar-hover":R,"oo-scrubber-bar-video":!n}),M=this.getAriaValueText(),V=r.state.markers?r.state.markers.list:[],j=l.markers&&l.markers.types?l.markers.types:{},U=V.map(function(e,t){return F.default.createElement(z.default,{key:t,duration:i,scrubberBarWidth:m,data:e,config:j[e.type],accentColor:l.general.accentColor})}),B=this.getMarkerIcons();return F.default.createElement("div",{className:"oo-scrubber-bar-container",onMouseOver:S,onMouseOut:_,onMouseLeave:this.handleScrubberBarMouseLeave,onMouseMove:T,ref:function(e){t.root=e}},!!r.state.markers&&0<r.state.markers.list.length&&F.default.createElement("div",{className:"oo-marker-container"},B),P,F.default.createElement("div",{className:"oo-scrubber-bar-padding",onMouseDown:E,onTouchStart:E},F.default.createElement("div",{ref:function(e){t.scrubberBar=e},className:x,style:s,role:"slider","aria-label":H.default.ARIA_LABELS.SEEK_SLIDER,"aria-valuemin":"0","aria-valuemax":i,"aria-valuenow":K.default.ensureNumber(a,0).toFixed(2),"aria-valuetext":M,"data-focus-id":H.default.FOCUS_IDS.SCRUBBER_BAR,tabIndex:"0",onKeyDown:this.handleScrubberBarKeyDown},F.default.createElement("div",{className:"oo-buffered-indicator",style:u}),F.default.createElement("div",{className:"oo-hovered-indicator",style:w}),F.default.createElement("div",{className:O,style:c}),U,F.default.createElement("div",{className:"oo-playhead-padding",style:v,onMouseDown:g,onTouchStart:g},F.default.createElement("div",{ref:function(e){t.playhead=e},className:C,style:f,"data-testid":"playhead"})))))}}])&&s(t.prototype,n),o&&s(t,o),r}();p.propTypes={audioOnly:o.default.bool,buffered:o.default.number,controller:o.default.shape({}).isRequired,duration:o.default.number,forceResize:o.default.bool,isLiveStream:o.default.bool,currentPlayhead:o.default.number,seeking:o.default.bool,skinConfig:o.default.shape({}),componentWidth:o.default.number},p.defaultProps={audioOnly:!1,buffered:0,componentWidth:0,currentPlayhead:0,duration:0,forceResize:!1,isLiveStream:!1,seeking:!1,skinConfig:{controlBar:{scrubberBar:{backgroundColor:"rgba(5,175,175,1)",bufferedColor:"rgba(127,5,127,1)",playedColor:"rgba(67,137,5,1)"},adScrubberBar:{backgroundColor:"rgba(175,175,5,1)",bufferedColor:"rgba(127,5,127,1)",playedColor:"rgba(5,63,128,1)"}}}},t.exports=p},{"../constants/constants":73,"../constants/macros":74,"./markers/marker":45,"./markers/markerIcon":46,"./thumbnailContainer":62,"./utils":66,classnames:90,"prop-types":374,react:382}],54:[function(e,t,n){"use strict";var h=r(e("react")),m=r(e("classnames")),o=r(e("prop-types")),y=r(e("./utils")),b=r(e("../constants/constants"));function r(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(e){function u(e){var s,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),t=this,n=d(u).call(this,e),v(p(p(s=!n||"object"!==c(n)&&"function"!=typeof n?p(t):n)),"getActivePanel",function(){var t,e=s.state.activeTab,n=s.props,o=n.assetId,r=n.playerParam,a=n.skinConfig;if(e===s.tabs.SHARE){var i=f(new Set(y.default.getPropertyValue(a,"shareScreen.socialContent",[]))),l=[];return i.forEach(function(e){switch(e){case"twitter":l.push(h.default.createElement("a",{key:"twitter",className:"oo-twitter",onClick:s.handleTwitterClick}));break;case"facebook":l.push(h.default.createElement("a",{key:"facebook",className:"oo-facebook",onClick:s.handleFacebookClick}));break;case"google+":l.push(h.default.createElement("a",{key:"google+",className:"oo-google-plus",onClick:s.handleGPlusClick}));break;case"email":l.push(h.default.createElement("a",{key:"email",className:"oo-email-share",onClick:s.handleEmailClick}))}},p(p(s))),h.default.createElement("div",{className:"oo-share-tab-panel"},l)}if(e!==s.tabs.EMBED)return null;try{t=a.shareScreen.embed.source.replace("<ASSET_ID>",o).replace("<PLAYER_ID>",r.playerBrandingId).replace("<PUBLISHER_ID>",r.pcode)}catch(e){t=""}return h.default.createElement("div",{className:"oo-share-tab-panel"},h.default.createElement("textarea",{className:"oo-form-control oo-embed-form",rows:"3",value:t,readOnly:!0}))}),v(p(p(s)),"handleEmailClick",function(e){var t=s.props,n=t.contentTree,o=t.language,r=t.localizableStrings;e.preventDefault();var a=y.default.getLocalizedString(o,b.default.SKIN_TEXT.EMAIL_BODY,r),i="mailto:";if(i+="?subject=".concat(encodeURIComponent(n.title)),i+="&body=".concat(encodeURIComponent(a+window.location.href)),OO.isIos&&OO.isSafari)document.location=i;else{var l=window.open(i,"email","height=315,width=780");setTimeout(function(){try{l.close()}catch(e){console.error("email send error - ",e)}},2e3)}}),v(p(p(s)),"handleFacebookClick",function(){var e="http://www.facebook.com/sharer.php";e+="?u=".concat(encodeURIComponent(window.location.href)),window.open(e,"facebook window","height=315,width=780")}),v(p(p(s)),"handleGPlusClick",function(){var e="https://plus.google.com/share";e+="?url=".concat(encodeURIComponent(window.location.href)),window.open(e,"google+ window","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600")}),v(p(p(s)),"handleTwitterClick",function(){var e="https://twitter.com/intent/tweet",t=s.props.contentTree;e+="?text=".concat(encodeURIComponent("".concat(t.title,": "))),e+="&url=".concat(encodeURIComponent(window.location.href)),window.open(e,"twitter window","height=300,width=750")});var o=s.props.skinConfig,r=y.default.getPropertyValue(o,"shareScreen.shareContent"),a=y.default.getPropertyValue(o,"shareScreen.socialContent",[]),i=r?r[0]:null;if(r&&!a.length)for(var l=0;l<r.length;l+=1)if("social"!==r[l]){i=r[l];break}return s.tabs={SHARE:"social",EMBED:"embed"},s.state={activeTab:i},s}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(u,h.default.Component),t=u,(n=[{key:"showPanel",value:function(e){this.setState({activeTab:e})}},{key:"render",value:function(){var t=this,e=this.props,n=e.language,o=e.localizableStrings,r=e.skinConfig,a=this.state.activeTab,i=y.default.getPropertyValue(r,"shareScreen.shareContent"),l=y.default.getPropertyValue(r,"shareScreen.socialContent",[]);if(!i)return null;var s=!!i.find(function(e){return e===t.tabs.EMBED}),u=!!i.find(function(e){return e===t.tabs.SHARE&&l.length}),c=(0,m.default)({"oo-share-tab":!0,"oo-active":a===this.tabs.SHARE,"oo-hidden":!u}),f=(0,m.default)({"oo-embed-tab":!0,"oo-active":a===this.tabs.EMBED,"oo-hidden":!s}),d=y.default.getLocalizedString(n,b.default.SKIN_TEXT.SHARE,o),p=y.default.getLocalizedString(n,b.default.SKIN_TEXT.EMBED,o);return h.default.createElement("div",{className:"oo-content-panel oo-share-panel"},h.default.createElement("div",{className:"oo-tab-row"},h.default.createElement("a",{className:c,onClick:this.showPanel.bind(this,this.tabs.SHARE)},d),h.default.createElement("a",{className:f,onClick:this.showPanel.bind(this,this.tabs.EMBED)},p)),this.getActivePanel())}}])&&a(t.prototype,n),o&&a(t,o),u}();l.propTypes={assetId:o.default.string,language:o.default.string,localizableStrings:o.default.shape({}),playerParam:o.default.shape({}),skinConfig:o.default.shape({}),contentTree:o.default.shape({})},l.defaultProps={assetId:"",language:"en",localizableStrings:{},playerParam:{},skinConfig:{},contentTree:{title:""}},t.exports=l},{"../constants/constants":73,"./utils":66,classnames:90,"prop-types":374,react:382}],55:[function(e,t,n){"use strict";var d=a(e("react")),u=a(e("classnames")),o=a(e("prop-types")),p=a(e("./controlButton")),h=a(e("./holdControlButton")),r=a(e("./higher-order/preserveKeyboardFocus")),m=a(e("../constants/constants")),y=a(e("../constants/macros")),b=a(e("./utils"));function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var g=function(e){function r(e){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),n=this,(t=!(o=s(r).call(this,e))||"object"!==i(o)&&"function"!=typeof o?f(n):o).storeRef=t.storeRef.bind(f(f(t))),t.onPreviousVideo=t.onPreviousVideo.bind(f(f(t))),t.onNextVideo=t.onNextVideo.bind(f(f(t))),t.onSkipBackward=t.onSkipBackward.bind(f(f(t))),t.onSkipForward=t.onSkipForward.bind(f(f(t))),t.isAtVideoEdge=t.isAtVideoEdge.bind(f(f(t))),t.onMouseEnter=t.onMouseEnter.bind(f(f(t))),t.onPlayPauseClick=t.onPlayPauseClick.bind(f(f(t))),t}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(r,d.default.Component),t=r,(n=[{key:"componentDidMount",value:function(){var e=this.props.onMount;this.domElement&&"function"==typeof e&&e(this.domElement.getBoundingClientRect())}},{key:"onPreviousVideo",value:function(){var e=this.props.controller;"function"==typeof e.rewindOrRequestPreviousVideo&&e.rewindOrRequestPreviousVideo()}},{key:"onNextVideo",value:function(){var e=this.props.controller;"function"==typeof e.requestNextVideo&&e.requestNextVideo()}},{key:"onSkipBackward",value:function(){var e=this.props,t=e.a11yControls,n=e.skinConfig;if("function"==typeof t.seekBy){var o=b.default.getSkipTimes(n);t.seekBy(o.backward,!1,!0)}}},{key:"onSkipForward",value:function(){var e=this.props,t=e.a11yControls,n=e.skinConfig;if("function"==typeof t.seekBy){var o=b.default.getSkipTimes(n);t.seekBy(o.forward,!0,!0)}}},{key:"onMouseEnter",value:function(){this.props.controller.cancelTimer()}},{key:"onPlayPauseClick",value:function(){this.props.controller.togglePlayPause()}},{key:"getSortedButtonEntries",value:function(){var t=this,e=this.props,n=e.buttonConfig,o=e.skinConfig,r=n||b.default.getPropertyValue(o,"skipControls.buttons",{});return Object.keys(r).filter(function(e){return t.shouldDisplayButton(e,r[e])}).map(function(e){return{id:e,index:r[e].index}}).sort(function(e,t){return e.index-t.index})}},{key:"getButtonTemplate",value:function(){var e={},t={},n=this.props,o=n.config,r=n.controller,a=n.isInactive,i=n.skinConfig,l=b.default.getSkipTimes(i),s=m.default.ARIA_LABELS.SKIP_BACKWARD.replace(y.default.SECONDS,l.backward),u=m.default.ARIA_LABELS.SKIP_FORWARD.replace(y.default.SECONDS,l.forward);a&&(t.pointerEvents="none");var c=b.default.getPlayButtonDetails(r.state.playerState),f=b.default.getPropertyValue(r,"state.duration");return e[m.default.SKIP_CTRLS_KEYS.PREVIOUS_VIDEO]=d.default.createElement(p.default,v({},this.props,{key:m.default.SKIP_CTRLS_KEYS.PREVIOUS_VIDEO,focusId:m.default.SKIP_CTRLS_KEYS.PREVIOUS_VIDEO,style:t,className:"oo-previous-video",icon:"previous",ariaLabel:m.default.ARIA_LABELS.PREVIOUS_VIDEO,disabled:!o.hasPreviousVideos,onClick:this.onPreviousVideo})),e[m.default.SKIP_CTRLS_KEYS.SKIP_BACKWARD]=d.default.createElement(h.default,v({},this.props,{key:m.default.SKIP_CTRLS_KEYS.SKIP_BACKWARD,focusId:m.default.SKIP_CTRLS_KEYS.SKIP_BACKWARD,style:t,className:"oo-center-button oo-skip-backward",icon:"replay",ariaLabel:s,disabled:!f,onClick:this.onSkipBackward}),d.default.createElement("span",{className:"oo-btn-counter"},l.backward)),e[m.default.SKIP_CTRLS_KEYS.SKIP_FORWARD]=d.default.createElement(h.default,v({},this.props,{key:m.default.SKIP_CTRLS_KEYS.SKIP_FORWARD,focusId:m.default.SKIP_CTRLS_KEYS.SKIP_FORWARD,style:t,className:"oo-center-button oo-skip-forward",icon:"forward",ariaLabel:u,disabled:this.isAtVideoEdge()||!f,onClick:this.onSkipForward}),d.default.createElement("span",{className:"oo-btn-counter"},l.forward)),e[m.default.SKIP_CTRLS_KEYS.NEXT_VIDEO]=d.default.createElement(p.default,v({},this.props,{key:m.default.SKIP_CTRLS_KEYS.NEXT_VIDEO,focusId:m.default.SKIP_CTRLS_KEYS.NEXT_VIDEO,style:t,className:"oo-next-video",icon:"next",ariaLabel:m.default.ARIA_LABELS.NEXT_VIDEO,disabled:!o.hasNextVideos,onClick:this.onNextVideo})),e[m.default.SKIP_CTRLS_KEYS.PLAY_PAUSE]=d.default.createElement(p.default,v({},this.props,{key:m.default.CONTROL_BAR_KEYS.PLAY_PAUSE,className:"oo-play-pause",focusId:m.default.CONTROL_BAR_KEYS.PLAY_PAUSE,ariaLabel:c.ariaLabel,icon:c.icon,onClick:this.onPlayPauseClick})),e}},{key:"storeRef",value:function(e){this.domElement=e}},{key:"isAtVideoEdge",value:function(){var e=this.props,t=e.controller,n=e.currentPlayhead,o=b.default.getPropertyValue(t,"state.isLiveStream",!1),r=b.default.getPropertyValue(t,"state.duration",0),a=b.default.ensureNumber(n,0);return o?Math.abs(a-r)<1:r<=a}},{key:"shouldDisplayButton",value:function(e,t){var n=this.props,o=n.config,r=n.controller,a=n.forceShowButtons,i=!o.hasPreviousVideos&&!o.hasNextVideos,l=b.default.getPropertyValue(r,"state.duration"),s=e===m.default.SKIP_CTRLS_KEYS.PREVIOUS_VIDEO||e===m.default.SKIP_CTRLS_KEYS.NEXT_VIDEO,u=e===m.default.SKIP_CTRLS_KEYS.SKIP_BACKWARD||e===m.default.SKIP_CTRLS_KEYS.SKIP_FORWARD;return(!t||!1!==t.enabled||!s&&!u)&&!(!a&&(u&&!l||s&&i||!(t&&t.enabled)))}},{key:"render",value:function(){var e=this.getSortedButtonEntries();if(!e.length)return null;var t=this.props,n=t.className,o=t.isInactive,r=t.isInBackground,a=t.onFocus,i=t.onBlur,l=(0,u.default)("oo-skip-controls",n,{"oo-inactive":o,"oo-in-background":r}),s=this.getButtonTemplate();return d.default.createElement("div",{ref:this.storeRef,className:l,onMouseEnter:this.onMouseEnter,onFocus:a,onBlur:i},e.map(function(e){return s[e.id]}))}}])&&l(t.prototype,n),o&&l(t,o),r}();g.propTypes={className:o.default.string,maxWidth:o.default.number,forceShowButtons:o.default.bool,buttonConfig:o.default.shape({}),isInactive:o.default.bool,isInBackground:o.default.bool,language:o.default.string,localizableStrings:o.default.shape({}),responsiveView:o.default.string.isRequired,skinConfig:o.default.shape({}).isRequired,currentPlayhead:o.default.number.isRequired,onFocus:o.default.func,onBlur:o.default.func,config:o.default.shape({hasPreviousVideos:o.default.bool.isRequired,hasNextVideos:o.default.bool.isRequired}).isRequired,controller:o.default.shape({state:o.default.shape({isMobile:o.default.bool.isRequired,isLiveStream:o.default.bool.isRequired,duration:o.default.number.isRequired,scrubberBar:o.default.shape({isHovering:o.default.bool})}),rewindOrRequestPreviousVideo:o.default.func.isRequired,requestNextVideo:o.default.func.isRequired,setFocusedControl:o.default.func.isRequired,startHideControlBarTimer:o.default.func.isRequired,cancelTimer:o.default.func.isRequired,togglePlayPause:o.default.func.isRequired}).isRequired,a11yControls:o.default.shape({seekBy:o.default.func.isRequired})},g.defaultProps={className:"",maxWidth:0,forceShowButtons:!1,buttonConfig:void 0,isInactive:!1,isInBackground:!1,language:"en",localizableStrings:{},onFocus:function(){},onBlur:function(){},a11yControls:{seekBy:function(){}}},t.exports=(0,r.default)(g)},{"../constants/constants":73,"../constants/macros":74,"./controlButton":31,"./higher-order/preserveKeyboardFocus":40,"./holdControlButton":41,"./utils":66,classnames:90,"prop-types":374,react:382}],56:[function(e,t,n){"use strict";var d=r(e("react")),p=r(e("classnames")),o=r(e("prop-types")),l=r(e("../constants/macros")),h=r(e("../constants/constants")),m=r(e("./utils"));function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e){function o(e){var c,t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=this,n=s(o).call(this,e),y(f(f(c=!n||"object"!==a(n)&&"function"!=typeof n?f(t):n)),"getAriaValues",function(){var e={},t=c.props,n=t.maxValue,o=t.minValue,r=t.settingName,a=t.usePercentageForAria,i=t.value;return e.valueText=a?(e.valueMin=0,e.valueMax=100,e.valueNow=100*m.default.ensureNumber(i,0)/m.default.ensureNumber(n,1),e.valueText=h.default.ARIA_LABELS.SLIDER_VALUE_TEXT,e.valueText.replace(l.default.PERCENT,e.valueNow).replace(l.default.SETTING,r)):(e.valueMin=o,e.valueMax=n,e.valueNow=i,"".concat(e.valueNow," ").concat(r)),e}),y(f(f(c)),"getNextSliderValue",function(e){var t=e?1:-1,n=c.props,o=n.minValue,r=n.maxValue,a=n.value,i=n.step,l=m.default.ensureNumber(a)+m.default.ensureNumber(i,1)*t,s=m.default.ensureNumber(o,-1/0),u=m.default.ensureNumber(r,1/0);return m.default.toFixedNumber(m.default.constrainToRange(l,s,u),2)}),y(f(f(c)),"setupValueObserver",function(e){if(!e||!window.MutationObserver)return null;var t=new window.MutationObserver(c.triggerOnChangeForIe);return t.observe(e,{attributes:!0,attributeFilter:["value"]}),t}),y(f(f(c)),"handleSliderColoring",function(e){if(!m.default.isEdge()){var t=c.refs[c.props.itemRef],n=window.getComputedStyle(t,null),o=n.getPropertyValue("border-left-color"),r=n.getPropertyValue("border-right-color"),a=(e.value-e.minValue)/(e.maxValue-e.minValue);t.style.backgroundImage=["-webkit-gradient(","linear, ","left top, ","right top, ","color-stop(".concat(a,", ").concat(o,"), "),"color-stop(".concat(a,", ").concat(r,")"),")"].join("")}}),y(f(f(c)),"changeValue",function(e){if(e.target){var t=m.default.ensureNumber(e.target.value,0);(m.default.isIE()||m.default.isEdge())&&(t=m.default.toFixedNumber(t,2));var n=c.props.onChange;"change"!==e.type||m.default.isIE()?m.default.isIE()&&n(t):(n(t),c.handleSliderColoring(c.props))}}),y(f(f(c)),"triggerOnChangeForIe",function(){var e=c.refs[c.props.itemRef],t=c.props.onChange;e&&t(m.default.ensureNumber(e.getAttribute("value"),0))}),y(f(f(c)),"onMouseDown",function(){c.setState({isDragging:!0})}),y(f(f(c)),"onMouseUp",function(e){m.default.blurOnMouseUp(e),c.setState({isDragging:!1})}),y(f(f(c)),"onMouseMove",function(e){m.default.isIE()&&c.changeValue(e)}),y(f(f(c)),"onKeyDown",function(e){var t=c.props,n=t.minValue,o=t.maxValue,r=t.value;switch(e.key){case h.default.KEY_VALUES.ARROW_UP:case h.default.KEY_VALUES.ARROW_RIGHT:e.target.setAttribute("value",c.getNextSliderValue(!0));break;case h.default.KEY_VALUES.ARROW_DOWN:case h.default.KEY_VALUES.ARROW_LEFT:e.target.setAttribute("value",c.getNextSliderValue(!1));break;case h.default.KEY_VALUES.HOME:e.target.setAttribute("value",m.default.ensureNumber(n,r));break;case h.default.KEY_VALUES.END:e.target.setAttribute("value",m.default.ensureNumber(o,r))}}),c.state={isDragging:!1},c}var t,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(o,d.default.Component),t=o,(n=[{key:"componentDidMount",value:function(){this.handleSliderColoring(this.props),m.default.isIE()&&(this.valueObserver=this.setupValueObserver(this.refs[this.props.itemRef]))}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.value;e.value!==t&&this.handleSliderColoring(e)}},{key:"componentWillUnmount",value:function(){this.valueObserver&&"function"==typeof this.valueObserver.disconnect&&this.valueObserver.disconnect()}},{key:"render",value:function(){var e=this.getAriaValues(),t=this.props,n=t.ariaLabel,o=t.className,r=t.focusId,a=t.itemRef,i=t.minValue,l=t.maxValue,s=t.step,u=t.value,c=this.state.isDragging,f=(0,p.default)("oo-slider",o,{"oo-dragging":c});return d.default.createElement("input",{type:"range",ref:a,className:f,min:i,max:l,value:u,step:s,"data-focus-id":r,tabIndex:"0","aria-label":n,"aria-valuemin":e.valueMin,"aria-valuemax":e.valueMax,"aria-valuenow":e.valueNow,"aria-valuetext":e.valueText,role:h.default.ARIA_ROLES.SLIDER,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onChange:this.changeValue,onClick:this.changeValue,onMouseMove:this.onMouseMove,onKeyDown:m.default.isIE()?this.onKeyDown:null})}}])&&i(t.prototype,n),r&&i(t,r),o}();c.propTypes={focusId:o.default.string,value:o.default.number,minValue:o.default.number,maxValue:o.default.number,step:o.default.number,onChange:o.default.func,ariaLabel:o.default.string,usePercentageForAria:o.default.bool,settingName:o.default.string,className:o.default.string,itemRef:o.default.string};c.defaultProps={ariaLabel:"",className:"",focusId:Math.random().toString(36).substr(2,10),itemRef:"",minValue:0,maxValue:15,onChange:function(){},settingName:"",step:1,usePercentageForAria:!1,value:0},t.exports=c},{"../constants/constants":73,"../constants/macros":74,"./utils":66,classnames:90,"prop-types":374,react:382}],57:[function(e,t,n){"use strict";var o=a(e("react")),r=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}var i=function(e){var t=e.loadingImage;return o.default.createElement("div",{className:"oo-spinner-screen"},o.default.createElement("div",{className:"oo-spinner-wrapper"},o.default.createElement("img",{src:t,className:"oo-spinner",alt:"spinner"})))};i.propTypes={loadingImage:r.default.string.isRequired},t.exports=i},{"prop-types":374,react:382}],58:[function(e,t,n){"use strict";var c=i(e("react")),f=i(e("classnames")),o=i(e("prop-types")),d=i(e("./accessibleButton")),r=i(e("./higher-order/accessibleMenu")),p=i(e("../constants/constants")),a=i(e("./icon"));function i(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){function r(e){var u,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),t=this,n=h(r).call(this,e),b(y(y(u=!n||"object"!==l(n)&&"function"!=typeof n?y(t):n)),"getSelectedPanel",function(){var e=u.state.tabActive,t=u.props.children[e-1];return c.default.createElement("div",{className:"tab-panel",role:p.default.ARIA_ROLES.TAB_PANEL},t)}),b(y(y(u)),"getMenuItems",function(){var e=u.props,t=e.children,s=e.skinConfig;if(!t)throw new Error("Tabs must contain at least one Tabs.Panel");var n=t.map(function(e){return"function"==typeof e?e():e}).filter(function(e){return e}).map(function(e,t){var n=t+1,o=e.props.title,r={},a=u.state.tabActive===n,i=(0,f.default)("tabs-menu-item","tabs-menu-item-".concat(t),{"is-active":a});if(a&&s.general.accentColor){var l="solid ";r={borderBottom:l+=s.general.accentColor}}return c.default.createElement("li",{key:t,className:i,role:p.default.ARIA_ROLES.PRESENTATION},c.default.createElement(d.default,{style:r,className:"tabs-menu-item-btn",ariaLabel:o,ariaSelected:a,role:p.default.ARIA_ROLES.TAB,onClick:function(e){return u.setActive(n,e)},onMouseOver:u.highlight,onMouseOut:u.removeHighlight,onBlur:u.removeHighlight,onFocus:u.onMenuItemFocus},o))});return c.default.createElement("div",{className:"tabs-navigation",ref:function(e){u.tabsNavigationElement=e},tabIndex:"-1"},c.default.createElement("ul",{className:"tabs-menu",role:p.default.ARIA_ROLES.TAB_LIST,"aria-label":p.default.ARIA_LABELS.CAPTION_OPTIONS},n))}),b(y(y(u)),"highlight",function(e){var t=u.props.skinConfig;t.general.accentColor&&(e.target.style.color=t.general.accentColor)}),b(y(y(u)),"removeHighlight",function(e){u.props.skinConfig.general.accentColor&&(e.target.style.color="")}),b(y(y(u)),"onMenuItemFocus",function(e){e.currentTarget&&u.scrollIntoViewIfNeeded(e.currentTarget)}),b(y(y(u)),"setActive",function(e,t){t.preventDefault(),u.setState({tabActive:e})}),b(y(y(u)),"handleLeftChevronClick",function(e){e.preventDefault(),u.tabsNavigationElement&&(u.tabsNavigationElement.scrollLeft-=30)}),b(y(y(u)),"handleRightChevronClick",function(e){e.preventDefault(),u.tabsNavigationElement&&(u.tabsNavigationElement.scrollLeft+=30)}),b(y(y(u)),"scrollIntoViewIfNeeded",function(e){if(u.tabsNavigationElement&&e&&void 0!==e.clientWidth)if(e.offsetLeft<u.tabsNavigationElement.scrollLeft)u.tabsNavigationElement.scrollLeft=e.offsetLeft;else{var t=e.offsetLeft+e.clientWidth,n=u.tabsNavigationElement.clientWidth||u.tabsNavigationElement.getBoundingClientRect().width,o=u.tabsNavigationElement.scrollLeft+n;o<t&&(u.tabsNavigationElement.scrollLeft+=t-o)}});var o=u.props.tabActive;return u.state={tabActive:o},u}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(r,c.default.Component),t=r,(n=[{key:"componentWillReceiveProps",value:function(e){var t=this.props.tabActive;e.tabActive&&e.tabActive!==t&&this.setState({tabActive:e.tabActive})}},{key:"render",value:function(){var e=this.props.className,t=(0,f.default)("tabs",e),n=this.props.showScrollButtons,o=(0,f.default)({"oo-left-tab-button":!0,"oo-left-tab-button-active":n}),r=(0,f.default)({"oo-right-tab-button":!0,"oo-right-tab-button-active":n});return c.default.createElement("div",{className:t},this.getMenuItems(),this.getSelectedPanel(),c.default.createElement("div",{className:o,role:"presentation",onClick:this.handleLeftChevronClick},c.default.createElement(a.default,s({},this.props,{icon:"left"}))),c.default.createElement("div",{className:r,role:"presentation",onClick:this.handleRightChevronClick},c.default.createElement(a.default,s({},this.props,{icon:"right"}))))}}])&&u(t.prototype,n),o&&u(t,o),r}();v.propTypes={className:o.default.oneOfType([o.default.array,o.default.string,o.default.object]),tabActive:o.default.number,children:o.default.oneOfType([o.default.array,o.default.element]).isRequired},v.defaultProps={className:"",tabActive:1};var g=(0,r.default)(v,{selector:".tabs-menu",useRovingTabindex:!0});(t.exports=g).Panel=function(e){var t=e.children;return c.default.createElement("span",null,t)},g.Panel.propTypes={title:o.default.string.isRequired,children:o.default.oneOfType([o.default.array,o.default.element]).isRequired}},{"../constants/constants":73,"./accessibleButton":8,"./higher-order/accessibleMenu":38,"./icon":42,classnames:90,"prop-types":374,react:382}],59:[function(e,t,n){"use strict";var a=r(e("react")),i=r(e("classnames")),o=r(e("prop-types")),s=r(e("./utils"));function r(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(e){function l(){var e,i,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return t=this,n=(e=f(l)).call.apply(e,[this].concat(r)),h(p(p(i=!n||"object"!==u(n)&&"function"!=typeof n?p(t):n)),"colorMap",{White:"255,255,255",Blue:"0,0,255",Magenta:"255,0,255",Green:"0,255,0",Yellow:"255,255,0",Red:"255,0,0",Cyan:"0,255,255",Black:"0,0,0",Transparent:"0,0,0"}),h(p(p(i)),"fontTypeMap",{"Monospaced Serif":'"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace',"Proportional Serif":'"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif',"Monospaced Sans-Serif":'"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace',"Proportional Sans-Serif":'Roboto, "Arial Unicode Ms", Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif',Casual:'"Comic Sans MS", Impact, Handlee, fantasy',Cursive:'"Monotype Corsiva", "URW Chancery L", "Apple Chancery", "Dancing Script", cursive',"Small Capitals":'"Arial Unicode Ms", Arial, Helvetica, Verdana, "Marcellus SC", sans-serif'}),h(p(p(i)),"fontVariantMap",{"Monospaced Serif":"normal","Proportional Serif":"normal","Monospaced Sans-Serif":"normal","Proportional Sans-Serif":"normal",Casual:"normal",Cursive:"normal","Small Capitals":"small-caps"}),h(p(p(i)),"fontSizeMap",{Small:{xs:"".concat(.8,"em"),sm:"".concat(1,"em"),md:"".concat(1.2,"em"),lg:"".concat(1.4,"em")},Medium:{xs:"".concat(1.2,"em"),sm:"".concat(1.4,"em"),md:"".concat(1.6,"em"),lg:"".concat(1.8,"em")},Large:{xs:"".concat(1.6,"em"),sm:"".concat(1.8,"em"),md:"".concat(2,"em"),lg:"".concat(2.2,"em")},"Extra Large":{xs:"".concat(2,"em"),sm:"".concat(2.2,"em"),md:"".concat(2.4,"em"),lg:"".concat(2.6,"em")}}),h(p(p(i)),"textEnhancementMap",{Uniform:"none",Depressed:"1px 1px white",Raised:"-1px -1px white, -3px 0px 5px black",Shadow:"2px 2px 2px #1a1a1a"}),h(p(p(i)),"buildWindowBackgroundStyle",function(e,t){var n="Transparent"===e?0:t;return{backgroundColor:"rgba(".concat(i.colorMap[e],",").concat(n,")")}}),h(p(p(i)),"buildTextStyle",function(e,t,n,o,r){var a=i.props.responsiveView;return{color:"rgba(".concat(i.colorMap[e],",").concat(t,")"),fontFamily:i.fontTypeMap[n],fontVariant:i.fontVariantMap[n],fontSize:i.fontSizeMap[o][a],textShadow:i.textEnhancementMap[r]}}),i}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(l,a.default.Component),t=l,(n=[{key:"render",value:function(){var e=this.props,t=e.closedCaptionOptions,n=e.cueText,o=e.isInBackground;if(!n)return null;var r=(0,i.default)("oo-text-track-container",{"oo-in-background":o});return a.default.createElement("div",{className:r},a.default.createElement("div",{className:"oo-text-track-window",style:this.buildWindowBackgroundStyle(t.windowColor,t.windowOpacity)},a.default.createElement("div",{className:"oo-text-track-background",style:this.buildWindowBackgroundStyle(t.backgroundColor,t.backgroundOpacity)},a.default.createElement("div",{className:"oo-text-track",style:this.buildTextStyle(t.textColor,t.textOpacity,t.fontType,t.fontSize,t.textEnhancement)},a.default.createElement("span",{dangerouslySetInnerHTML:s.default.createMarkup(n)})))))}}])&&c(t.prototype,n),o&&c(t,o),l}();l.propTypes={cueText:o.default.string,isInBackground:o.default.bool,closedCaptionOptions:o.default.shape({textColor:o.default.string,windowColor:o.default.string,backgroundColor:o.default.string,textOpacity:o.default.oneOfType([o.default.string,o.default.number]),backgroundOpacity:o.default.oneOfType([o.default.string,o.default.number]),windowOpacity:o.default.oneOfType([o.default.string,o.default.number]),fontType:o.default.string,fontSize:o.default.string,textEnhancement:o.default.string}),responsiveView:o.default.string},l.defaultProps={cueText:null,isInBackground:!1,closedCaptionOptions:{textColor:"White",windowColor:"Transparent",backgroundColor:"Black",textOpacity:1,backgroundOpacity:.6,windowOpacity:0,fontType:"Proportional Sans-Serif",fontSize:"Medium",textEnhancement:"Uniform"},responsiveView:"md"},t.exports=l},{"./utils":66,classnames:90,"prop-types":374,react:382}],60:[function(e,t,n){"use strict";var a=r(e("react")),o=r(e("prop-types"));function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,u(t).apply(this,arguments))}var n,o,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,a.default.Component),n=t,(o=[{key:"componentDidMount",value:function(){(0,this.props.onRef)(this)}},{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.fullscreen,o=t.hoverPosition,r=t.imageWidth,a=t.videoVr,i=t.vrViewingDirection,l=e.hoverPosition!==o,s=e.fullscreen!==n&&a,u=e.vrViewingDirection!==i,c=e.imageWidth!==r;return l||s||u||c}},{key:"componentWillUnmount",value:function(){(0,this.props.onRef)(void 0)}},{key:"render",value:function(){var e=this.props,t=e.thumbnailStyle,n=e.time,o=e.videoVr?"oo-thumbnail oo-thumbnail-vr":"oo-thumbnail";return a.default.createElement("div",{className:"oo-scrubber-thumbnail-container"},a.default.createElement("div",{className:o,ref:"thumbnail",style:t},a.default.createElement("div",{className:"oo-thumbnail-time"},n)))}}])&&l(n.prototype,o),r&&l(n,r),t}();f.defaultProps={thumbnails:{},thumbnailStyle:{},hoverPosition:0,vrViewingDirection:{yaw:0,roll:0,pitch:0},videoVr:!1,fullscreen:!1,onRef:function(){},imageWidth:0,time:""},f.propTypes={hoverPosition:o.default.number,onRef:o.default.func,thumbnails:o.default.shape({}),thumbnailStyle:o.default.shape({}),vrViewingDirection:o.default.shape({yaw:o.default.number,roll:o.default.number,pitch:o.default.number}),time:o.default.string,imageWidth:o.default.number,videoVr:o.default.bool,fullscreen:o.default.bool},t.exports=f},{"prop-types":374,react:382}],61:[function(e,t,n){"use strict";var g=r(e("react")),o=r(e("prop-types")),m=r(e("./utils")),y=r(e("../constants/constants"));function r(e){return e&&e.__esModule?e:{default:e}}function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=function(e){function i(){var e,u,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return t=this,n=(e=l(i)).call.apply(e,[this].concat(r)),f(c(c(u=!n||"object"!==E(n)&&"function"!=typeof n?c(t):n)),"state",{thumbnailWidth:0,thumbnailHeight:0,centerThumbnailWidth:0,centerThumbnailHeight:0,thumbnailPadding:6}),f(c(c(u)),"carouselPositionX",0),f(c(c(u)),"carouselPositionY",0),f(c(c(u)),"centerThumbnail",null),f(c(c(u)),"thumbnail",null),f(c(c(u)),"findThumbnailsAfter",function(e){for(var t=(e.scrubberBarWidth+e.centerWidth)/2,n=[],o=e.pos+1,r=0;o<e.timeSlices.length;o+=1,r+=1){var a=t+e.padding+r*(e.imgWidth+e.padding);if(a+e.imgWidth<=e.scrubberBarWidth){var i=e.width,l=e.thumbnails.data.thumbnails[e.timeSlices[o]],s=u.getThumbnailsCarouselStyles(l,i);s.left=a,s.top=e.top,n.push(g.default.createElement("div",{className:"oo-thumbnail-carousel-image",key:o,ref:function(e){u.thumbnail=e},style:s}))}}return n}),f(c(c(u)),"findThumbnailsBefore",function(e){for(var t=(e.scrubberBarWidth-e.centerWidth)/2,n=[],o=e.pos-1,r=0;0<=o;o-=1,r+=1){var a=t-(r+1)*(e.imgWidth+e.padding);if(0<=a){var i=e.width,l=e.thumbnails.data.thumbnails[e.timeSlices[o]],s=u.getThumbnailsCarouselStyles(l,i);s.left=a,s.top=e.top,n.push(g.default.createElement("div",{className:"oo-thumbnail-carousel-image",key:o,ref:function(e){u.thumbnail=e},style:s}))}}return n}),u}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(i,g.default.Component),t=i,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.onRef,n=e.thumbnailWidth,o=e.thumbnailHeight,r=e.thumbnailCarouselWidth,a=e.thumbnailCarouselHeight;t(this);var i=this.centerThumbnail,l=this.thumbnail,s=l?window.getComputedStyle(l,null).getPropertyValue("padding"):0;s=parseFloat(s);var u=this.state.thumbnailPadding,c=Number.isNaN(s)?u:s;if(l&&i)if(l.clientWidth&&i.clientWidth)this.setState({thumbnailWidth:l.clientWidth,thumbnailHeight:l.clientHeight,centerThumbnailWidth:i.clientWidth,centerThumbnailHeight:i.clientHeight,thumbnailPadding:c});else{var f=Number.parseFloat(window.getComputedStyle(l,null).getPropertyValue("width")),d=Number.isNaN(f)?Number.parseInt(n,0):f,p=Number.parseFloat(window.getComputedStyle(l,null).getPropertyValue("height")),h=Number.isNaN(p)?parseInt(o,0):p,m=Number.parseFloat(window.getComputedStyle(i,null).getPropertyValue("width")),y=Number.isNaN(m)?Number.parseInt(r,0):m,b=Number.parseFloat(window.getComputedStyle(i,null).getPropertyValue("height")),v=Number.isNaN(b)?Number.parseInt(a,0):b;this.setState({thumbnailWidth:d,thumbnailHeight:h,centerThumbnailWidth:y,centerThumbnailHeight:v,thumbnailPadding:c})}}},{key:"componentWillUnmount",value:function(){(0,this.props.onRef)(void 0)}},{key:"getThumbnailsCarouselStyles",value:function(e,t){var n={},o=e[t],r=this.props,a=r.setBgPositionVr,i=r.thumbnailCarouselHeight,l=r.thumbnailCarouselWidth,s=r.videoVr,u=r.vrViewingDirection;if(s){var c=y.default.THUMBNAIL.THUMBNAIL_CAROUSEL_VR_RATIO*t;void 0!==e[c]&&void 0!==e[c].width&&e[c].width<y.default.THUMBNAIL.MAX_VR_THUMBNAIL_CAROUSEL_BG_WIDTH&&(o=e[c])}var f=o.url;if(m.default.isValidString(f)&&(n.backgroundImage="url('".concat(f,"')")),s){var d=o.width,p=o.height,h=a({yaw:u.yaw,pitch:u.pitch,imageWidth:d,imageHeight:p,thumbnailWidth:l,thumbnailHeight:i});h&&(this.carouselPositionX=h.positionX,this.carouselPositionY=h.positionY),n.backgroundRepeat="repeat no-repeat",n.backgroundSize="".concat(d,"px ").concat(p,"px"),n.backgroundPosition="".concat(this.carouselPositionX,"px ").concat(this.carouselPositionY,"px")}return n}},{key:"render",value:function(){var t=this,e=this.props,n=e.centralThumbnail,o=e.scrubberBarWidth,r=e.thumbnails,a=e.thumbnailStyle,i=e.videoVr,l=e.time,s=this.state,u=s.centerThumbnailWidth,c=s.thumbnailHeight,f=s.thumbnailPadding,d=s.thumbnailWidth,p=s.centerThumbnailHeight,h={thumbnails:r,timeSlices:r.data.available_time_slices,width:r.data.available_widths[0],imgWidth:d,centerWidth:u,scrubberBarWidth:o,top:p-c,pos:n.pos,padding:f},m=this.findThumbnailsBefore(h),y=this.findThumbnailsAfter(h),b="oo-thumbnail-carousel-center-image";i&&(b+=" oo-thumbnail-vr");var v={};return null!==a&&"object"===E(a)&&Object.assign(v,a),v.left=(h.scrubberBarWidth-h.centerWidth)/2,g.default.createElement("div",{className:"oo-scrubber-carousel-container"},m,g.default.createElement("div",{className:b,ref:function(e){t.centerThumbnail=e},style:v,"data-testid":"centerThumbnail"},g.default.createElement("div",{className:"oo-thumbnail-carousel-time"},l)),y)}}])&&a(t.prototype,n),o&&a(t,o),i}();i.propTypes={onRef:o.default.func,time:o.default.string,thumbnails:o.default.shape({}),centralThumbnail:o.default.shape({}),thumbnailStyle:o.default.shape({}),scrubberBarWidth:o.default.number,vrViewingDirection:o.default.shape({yaw:o.default.number,roll:o.default.number,pitch:o.default.number}),videoVr:o.default.bool,setBgPositionVr:o.default.func,thumbnailCarouselWidth:o.default.number,thumbnailCarouselHeight:o.default.number,thumbnailWidth:o.default.number,thumbnailHeight:o.default.number},i.defaultProps={onRef:function(){},time:"",thumbnails:{},centralThumbnail:{},thumbnailStyle:{},setBgPositionVr:function(){},scrubberBarWidth:0,thumbnailCarouselWidth:0,thumbnailCarouselHeight:0,vrViewingDirection:{yaw:0,roll:0,pitch:0},videoVr:!1,thumbnailWidth:0,thumbnailHeight:0},t.exports=i},{"../constants/constants":73,"./utils":66,"prop-types":374,react:382}],62:[function(e,t,n){"use strict";var h=r(e("react")),o=r(e("prop-types")),m=r(e("./utils")),s=r(e("../constants/constants")),y=r(e("./thumbnail")),b=r(e("./thumbnailCarousel"));function r(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e){function o(e){var u,t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=this,n=i(o).call(this,e),d(f(f(u=!n||"object"!==c(n)&&"function"!=typeof n?f(t):n)),"onRef",function(e){u.child=e}),d(f(f(u)),"setThumbnailSizesVr",function(){null!=u.child&&"object"===c(u.child)&&(u.setThumbnailSize("thumbnail","thumbnailWidth","thumbnailHeight"),u.props.isCarousel&&u.setThumbnailSize("thumbnailCarousel","thumbnailCarouselWidth","thumbnailCarouselHeight"))}),d(f(f(u)),"setThumbnailSize",function(e,t,n){if(u.child.refs&&u.child.refs[e]){var o=m.default.getClientWidth(u.child.refs[e]),r=m.default.getClientHeight(u.child.refs[e]);o&&(u[t]=o),r&&(u[n]=r)}}),d(f(f(u)),"setImageSizes",function(){var e=u.props,t=e.duration,n=e.hoverTime,o=e.thumbnails,r=e.videoVr,a=m.default.findThumbnail(o,n,t,r);if(null!=a&&"object"===c(a)){var i=a.imageWidth,l=a.imageHeight;i&&l&&(i>s.default.THUMBNAIL.MAX_VR_THUMBNAIL_BG_WIDTH&&(i=s.default.THUMBNAIL.MAX_VR_THUMBNAIL_BG_WIDTH,l=l*s.default.THUMBNAIL.MAX_VR_THUMBNAIL_BG_WIDTH/i),u.imageWidth=i,u.imageHeight=l)}}),d(f(f(u)),"setBgPositionVr",function(e){if(!e)return null;var t=m.default.ensureNumber(e.yaw,0),n=m.default.ensureNumber(e.pitch,0),o=m.default.ensureNumber(e.imageWidth,0),r=m.default.ensureNumber(e.imageHeight,0),a=m.default.ensureNumber(e.thumbnailWidth,0),i=m.default.ensureNumber(e.thumbnailHeight,0),l=-((r-i)/2-(n=360<=n?0:n)),s=-(r-i);return 0<l?l=0:l<s&&(l=s),{positionX:-(o-a/2-o*(t=u.getCurrentYawVr(t))/360),positionY:l}}),d(f(f(u)),"getCurrentYawVr",function(e){var t=e<=-360?-1:1;return e-t*Math.floor(t*e/360)*360}),u.child=null,u.positionY=0,u.positionX=0,u.imageWidth=0,u.imageHeight=0,u.thumbnailWidth=0,u.thumbnailHeight=0,u.thumbnailCarouselWidth=0,u.thumbnailCarouselHeight=0,u}var t,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(o,h.default.Component),t=o,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.videoVr,n=e.vrViewingDirection;if(t){this.setThumbnailSizesVr(),this.setImageSizes();var o={yaw:n.yaw,pitch:n.pitch,imageWidth:this.imageWidth,imageHeight:this.imageHeight,thumbnailWidth:this.thumbnailWidth,thumbnailHeight:this.thumbnailHeight},r=this.setBgPositionVr(o);r&&(this.positionX=r.positionX,this.positionY=r.positionY)}}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.videoVr;if(t.vrViewingDirection!==e.vrViewingDirection&&n){var o=e.vrViewingDirection,r={yaw:o.yaw,pitch:o.pitch,imageWidth:this.imageWidth,imageHeight:this.imageHeight,thumbnailWidth:this.thumbnailWidth,thumbnailHeight:this.thumbnailHeight},a=this.setBgPositionVr(r);a&&(this.positionX=a.positionX,this.positionY=a.positionY)}}},{key:"componentDidUpdate",value:function(){if(this.props.videoVr&&null!=this.child&&"object"===c(this.child)){if(this.child.refs&&this.child.refs.thumbnail){var e=m.default.getClientWidth(this.child.refs.thumbnail),t=m.default.getClientHeight(this.child.refs.thumbnail);if(e!==this.thumbnailWidth||t!==this.thumbnailHeight){this.thumbnailWidth=e,this.thumbnailHeight=t;var n=this.props.vrViewingDirection,o={yaw:n.yaw,pitch:n.pitch,imageWidth:this.imageWidth,imageHeight:this.imageHeight,thumbnailWidth:this.thumbnailWidth,thumbnailHeight:this.thumbnailHeight},r=this.setBgPositionVr(o);r&&(this.positionX=r.positionX,this.positionY=r.positionY)}}if(this.props.isCarousel&&this.child.refs&&this.child.refs.thumbnailCarousel){var a=m.default.getClientWidth(this.child.refs.thumbnailCarousel),i=m.default.getClientHeight(this.child.refs.thumbnailCarousel);a!==this.thumbnailCarouselWidth&&(this.thumbnailCarouselWidth=a),i!==this.thumbnailCarouselHeight&&(this.thumbnailCarouselHeight=i)}}}},{key:"render",value:function(){var e=this.props,t=e.duration,n=e.fullscreen,o=e.hoverPosition,r=e.hoverTime,a=e.isCarousel,i=e.scrubberBarWidth,l=e.thumbnails,s=e.videoVr,u=e.vrViewingDirection,c=Number.isFinite(Number.parseInt(r,0))?m.default.formatSeconds(Number.parseInt(r,0)):null,f=null,d=m.default.findThumbnail(l,r,t,s),p={};return p.left=o,m.default.isValidString(d.url)&&(p.backgroundImage="url('".concat(d.url,"')")),s&&(p.backgroundSize="".concat(this.imageWidth,"px ").concat(this.imageHeight,"px"),p.backgroundPosition="".concat(this.positionX,"px ").concat(this.positionY,"px")),f=a?h.default.createElement(b.default,{onRef:this.onRef,time:c,thumbnails:l,duration:t,hoverTime:r,scrubberBarWidth:i,hoverPosition:o,vrViewingDirection:u,videoVr:s,fullscreen:n,imageWidth:this.imageWidth,setBgPositionVr:this.setBgPositionVr,thumbnailCarouselWidth:this.thumbnailCarouselWidth,thumbnailCarouselHeight:this.thumbnailCarouselHeight,centralThumbnail:d,thumbnailStyle:p}):h.default.createElement(y.default,{onRef:this.onRef,time:c,thumbnails:l,hoverPosition:o,duration:t,hoverTime:r,vrViewingDirection:u,videoVr:s,fullscreen:n,positionY:this.positionY,positionX:this.positionX,imageWidth:this.imageWidth,thumbnailStyle:p}),h.default.createElement("div",{className:"oo-scrubber-thumbnail-wrapper"},f)}}])&&a(t.prototype,n),r&&a(t,r),o}();u.defaultProps={isCarousel:!1,thumbnails:{},hoverPosition:0,duration:0,hoverTime:0,vrViewingDirection:{yaw:0,roll:0,pitch:0},videoVr:!1,fullscreen:!1,scrubberBarWidth:0},u.propTypes={vrViewingDirection:o.default.shape({yaw:o.default.number,roll:o.default.number,pitch:o.default.number}),thumbnails:o.default.shape({}),hoverPosition:o.default.number,hoverTime:o.default.number,duration:o.default.number,scrubberBarWidth:o.default.number,isCarousel:o.default.bool,videoVr:o.default.bool,fullscreen:o.default.bool},t.exports=u},{"../constants/constants":73,"./thumbnail":60,"./thumbnailCarousel":61,"./utils":66,"prop-types":374,react:382}],63:[function(e,t,n){"use strict";var c=r(e("react")),l=r(e("deepmerge")),o=r(e("prop-types")),f=r(e("./utils")),a=r(e("../constants/constants"));function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var h={left:"10%",center:"45%",right:"85%"},m=function(e){function r(e){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),n=this,(t=!(o=u(r).call(this,e))||"object"!==i(o)&&"function"!=typeof o?p(n):o).state={visible:!1},t.showTooltip=t.showTooltip.bind(p(p(t))),t.hideTooltip=t.hideTooltip.bind(p(p(t))),t.getAlignment=t.getAlignment.bind(p(p(t))),t.element=null,t}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(r,c.default.Component),t=r,o=[{key:"getContainerStyle",value:function(e,t,n,o){var r=80*n,a={left:{left:0,transform:"translate(0,".concat(r,"%)"),WebkitTransform:"translate(0,".concat(r,"%)")},center:{left:"50%",transform:"translate(-50%,".concat(r,"%)"),WebkitTransform:"translate(-50%,".concat(r,"%)")},right:{right:0,transform:"translate(0,".concat(r,"%)"),WebkitTransform:"translate(0,".concat(r,"%)")}},i={position:"absolute",color:"white",fontFamily:'"Roboto Condensed", sans-serif',opacity:t?"0.75":"0",fontWeight:"normal",bottom:e,transition:"1s",visibility:t?"visible":"hidden"};return(0,l.default)(a[o],i)}},{key:"getBoxStyle",value:function(e){return{borderRadius:"3px",fontSize:"15px",textShadow:"none",background:"black",paddingTop:8*e,paddingRight:20*e,paddingBottom:8*e,paddingLeft:20*e}}},{key:"getPointerStyle",value:function(e){return{position:"absolute",borderLeft:"5px solid transparent",borderRight:"5px solid transparent",borderTop:"5px solid black",left:h[e]}}}],(n=[{key:"componentDidMount",value:function(){if(this.element){var e=this.element.parentElement;e.addEventListener("mouseover",this.showTooltip),e.addEventListener("mouseleave",this.hideTooltip),e.addEventListener("focus",this.showTooltip),e.addEventListener("blur",this.hideTooltip)}}},{key:"componentWillUnmount",value:function(){if(this.element){var e=this.element.parentElement;e.removeEventListener("mouseover",this.showTooltip),e.removeEventListener("mouseleave",this.hideTooltip),e.removeEventListener("focus",this.showTooltip),e.removeEventListener("blur",this.hideTooltip)}}},{key:"getAlignment",value:function(){var e=this.props,t=e.getAlignment,n=e.parentKey;return"function"==typeof t&&t(n)||a.default.TOOLTIP_ALIGNMENT.CENTER}},{key:"hideTooltip",value:function(){this.setState({visible:!1})}},{key:"showTooltip",value:function(){this.setState({visible:!0})}},{key:"render",value:function(){var t=this,e=this.props,n=e.bottom,o=e.enabled,r=e.language,a=e.localizableStrings,i=e.responsivenessMultiplier,l=e.text,s=this.state.visible;if(!o)return null;var u=this.getAlignment();return c.default.createElement("div",{className:"oo-tooltip-container",style:{position:"relative"},ref:function(e){t.element=e}},c.default.createElement("div",{className:"oo-tooltip",style:this.constructor.getContainerStyle(n,s,i,u)},c.default.createElement("div",{style:this.constructor.getBoxStyle(i)},f.default.getLocalizedString(r,l,a)),c.default.createElement("div",{style:this.constructor.getPointerStyle(u)})))}}])&&s(t.prototype,n),o&&s(t,o),r}();m.propTypes={enabled:o.default.bool,parentKey:o.default.string.isRequired,text:o.default.string,language:o.default.string,localizableStrings:o.default.shape({}),getAlignment:o.default.func,responsivenessMultiplier:o.default.number,bottom:o.default.number},m.defaultProps={enabled:!1,getAlignment:function(){},text:"",language:"en",localizableStrings:{},responsivenessMultiplier:1,bottom:0},t.exports=m},{"../constants/constants":73,"./utils":66,deepmerge:365,"prop-types":374,react:382}],64:[function(e,t,n){"use strict";var a=r(e("react")),i=r(e("classnames")),o=r(e("prop-types")),s=r(e("../constants/constants")),u=r(e("./icon"));function r(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=function(e){function l(e){var t,n,o,r,a,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),n=this,o=p(l).call(this,e),t=!o||"object"!==c(o)&&"function"!=typeof o?m(n):o,r=m(m(t)),i=function(e){e.stopPropagation(),t.props.controller.handleMuteClick()},(a="unmuteClick")in r?Object.defineProperty(r,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[a]=i,t.state={collapseTime:2e3},t}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(l,a.default.Component),t=l,o=[{key:"onMouseUp",value:function(e){e.stopPropagation()}}],(n=[{key:"componentDidMount",value:function(){var e=this,t=this.props.controller,n=this.state.collapseTime;!t.state.volumeState.unmuteIconCollapsed&&(clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.state.volumeState.unmuteIconCollapsed=!0,e.setState({})},n))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var e,t,n=this.props.controller;t=n.state.volumeState.muted?(e="volumeOff",s.default.ARIA_LABELS.UNMUTE):(e="volume",s.default.ARIA_LABELS.MUTE);var o=!n.state.volumeState.unmuteIconCollapsed,r=(0,i.default)({"oo-unmute":!0,"oo-expanded":o});return a.default.createElement("button",{className:r,onClick:this.unmuteClick,onMouseUp:this.constructor.onMouseUp,type:"button",tabIndex:"0","aria-label":t},a.default.createElement("div",{className:"oo-unmute-icon-wrapper"},a.default.createElement(u.default,f({},this.props,{icon:e}))),o?a.default.createElement("div",{className:"oo-unmute-message"},s.default.SKIN_TEXT.SELECT_TO_UNMUTE):null)}}])&&d(t.prototype,n),o&&d(t,o),l}();l.propTypes={controller:o.default.shape({state:o.default.shape({volumeState:o.default.shape({muted:o.default.bool,unmuteIconCollapsed:o.default.bool})})}).isRequired},t.exports=l},{"../constants/constants":73,"./icon":42,classnames:90,"prop-types":374,react:382}],65:[function(e,t,n){"use strict";var s=r(e("react")),o=r(e("prop-types")),u=r(e("../constants/constants")),c=r(e("./utils")),f=r(e("./closeButton")),d=r(e("./countDownClock")),p=r(e("./icon"));function r(e){return e&&e.__esModule?e:{default:e}}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(e){function l(){var e,i,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return t=this,n=(e=y(l)).call.apply(e,[this].concat(r)),v(b(b(i=!n||"object"!==h(n)&&"function"!=typeof n?b(t):n)),"closeUpNextPanel",function(){i.props.controller.upNextDismissButtonClicked()}),v(b(b(i)),"handleStartUpNextClick",function(e){e.preventDefault();var t=i.props,n=t.controller,o=t.upNextInfo.upNextData,r={source:u.default.SCREEN.UP_NEXT_SCREEN,countdown:0,autoplay:!0},a={clickedVideo:o,custom:r,metadata:c.default.getDiscoveryEventData(1,1,u.default.UI_TAG.UP_NEXT,o,r)};n.sendDiscoveryClickEvent(a,!1)}),i}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(l,s.default.Component),t=l,(n=[{key:"render",value:function(){var e=this.props,t=e.currentPlayhead,n=e.language,o=e.localizableStrings,r=e.skinConfig,a=e.upNextInfo,i=c.default.getLocalizedString(n,u.default.SKIN_TEXT.UP_NEXT,o),l={};return c.default.isValidString(a.upNextData.preview_image_url)&&(l.backgroundImage="url('".concat(a.upNextData.preview_image_url,"')")),s.default.createElement("div",{className:"oo-up-next-panel"},s.default.createElement("a",{className:"oo-up-next-content",onClick:this.handleStartUpNextClick,style:l},s.default.createElement(p.default,m({},this.props,{icon:"play"}))),s.default.createElement("div",{className:"oo-content-metadata"},s.default.createElement("div",{className:"oo-up-next-title"},s.default.createElement(d.default,m({},this.props,{timeToShow:r.upNext.timeToShow,currentPlayhead:t})),s.default.createElement("div",{className:"oo-up-next-title-text oo-text-truncate"},i,":"," ",s.default.createElement("span",{dangerouslySetInnerHTML:c.default.createMarkup(a.upNextData.name)}))),s.default.createElement("div",{className:"oo-content-description oo-text-truncate",dangerouslySetInnerHTML:c.default.createMarkup(a.upNextData.description)})),s.default.createElement(f.default,m({},this.props,{cssClass:"oo-up-next-close-btn",closeAction:this.closeUpNextPanel})))}}])&&a(t.prototype,n),o&&a(t,o),l}();l.propTypes={upNextInfo:o.default.shape({upNextData:o.default.shape({preview_image_url:o.default.string,name:o.default.string,description:o.default.string})}),skinConfig:o.default.shape({upNext:o.default.shape({timeToShow:o.default.number}),icons:o.default.objectOf(o.default.object)}),controller:o.default.shape({})},l.defaultProps={skinConfig:{upNext:{timeToShow:10},icons:{play:{fontStyleClass:"oo-icon oo-icon-play"},dismiss:{fontStyleClass:"oo-icon oo-icon-close"}}},upNextInfo:{upNextData:{}},controller:{upNextDismissButtonClicked:function(){},sendDiscoveryClickEvent:function(){}}},t.exports=l},{"../constants/constants":73,"./closeButton":13,"./countDownClock":32,"./icon":42,"./utils":66,"prop-types":374,react:382}],66:[function(e,t,n){"use strict";var s=o(e("deepmerge")),d=o(e("../constants/constants"));function o(e){return e&&e.__esModule?e:{default:e}}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(o=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);o=!0);}catch(e){r=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=function(e,t,n){var o=e.fit.lastIndexOf(t),r=n;return-1<o&&(e.fit.splice(o,1),e.overflow.unshift(t),t.minWidth&&(r-=t.minWidth)),r},c=function(e){return e&&"object"===r(e)&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)},f=function(e,t){var n;return t&&!0===t.clone&&c(e)?(0,s.default)((n=e,Array.isArray(n)?[]:{}),e,t):e},h={autoFocusFirstElement:function(e,t){if(e&&"function"==typeof e.querySelector){var n="[".concat(d.default.KEYBD_FOCUS_ID_ATTR,"]");t&&(n+=":not(.".concat(t,")"));var o=e.querySelector(n);o&&"function"==typeof o.focus&&o.focus()}},blurOnMouseUp:function(e){e&&e.currentTarget&&"function"==typeof e.currentTarget.blur&&e.currentTarget.blur()},ensureNumber:function(e,t){var n=Number(e);return Number.isFinite(n)?n:void 0===t?null:t},constrainToRange:function(e,t,n){var o=h.ensureNumber(e,0),r=h.ensureNumber(t,0),a=h.ensureNumber(n,0);return Math.min(Math.max(r,o),a)},toFixedNumber:function(e,t){var n=h.ensureNumber(e,0);return n=h.ensureNumber(n.toFixed(t))},getTimeDisplayValues:function(e,t,n,o){var r=h.ensureNumber(e),a=h.ensureNumber(t,0),i="",l="",s=parseInt(r,10),u=Number.isFinite(s)?h.formatSeconds(s):null,c=(r||0)-a;if(a&&(l=h.formatSeconds(a)),n){var f=Math.abs(c)<1;i=o?f?"":h.formatSeconds(c):f?l:h.formatSeconds(Math.ceil(a+c))}else i=u;return o&&(l=n?"":l),{currentTime:i,totalTime:l}},getDiscoveryEventData:function(e,t,n,o,r){return{customData:r,asset:{embed_code:o.embed_code,idType:d.default.DISCOVERY.ID_TYPE,ooyalaDiscoveryContext:h.getDiscoveryContext(o)},contentSource:d.default.DISCOVERY.SOURCE,assetPosition:e,pageSize:t,uiTag:n}},getDiscoveryContext:function(e){if(null==e)return{};if(null!=e.ooyalaDiscoveryContext)return e.ooyalaDiscoveryContext;if(null==e.bucket_info)return{};var t=JSON.parse(e.bucket_info.substring(1));return{version:"1",data:JSON.parse(window.atob(t.encoded))}},sortQualitiesByBitrate:function(e){var t=Array.isArray(e)?e.slice():[];return t.sort(function(e,t){var n=e||{},o=t||{},r=h.ensureNumber(n.bitrate,0),a=h.ensureNumber(o.bitrate,0),i=h.ensureNumber(n.width,1)*h.ensureNumber(n.height,1),l=h.ensureNumber(o.width,1)*h.ensureNumber(o.height,1);return a-r||l-i}),t},getSkipTimes:function(e){var t={};return t.backward=h.getPropertyValue(e,"skipControls.skipBackwardTime"),t.forward=h.getPropertyValue(e,"skipControls.skipForwardTime"),t.backward=h.ensureNumber(t.backward,d.default.UI.DEFAULT_SKIP_BACKWARD_TIME),t.forward=h.ensureNumber(t.forward,d.default.UI.DEFAULT_SKIP_FORWARD_TIME),t.backward=h.constrainToRange(Math.floor(t.backward),d.default.UI.MIN_SKIP_TIME,d.default.UI.MAX_SKIP_TIME),t.forward=h.constrainToRange(Math.floor(t.forward),d.default.UI.MIN_SKIP_TIME,d.default.UI.MAX_SKIP_TIME),t},sanitizePlaybackSpeed:function(e,t){var n=h.ensureNumber(e,d.default.PLAYBACK_SPEED.DEFAULT_VALUE);return t||(n=h.constrainToRange(n,d.default.PLAYBACK_SPEED.MIN,d.default.PLAYBACK_SPEED.MAX)),n=h.toFixedNumber(n,2)},dedupeArray:function(e){return Array.isArray(e)?e.filter(function(e,t,n){return n.indexOf(e)===t}):[]},isMouseInsideRect:function(e,t){return!(!e||!t)&&(e.clientX>=t.left&&e.clientX<=t.right&&e.clientY>=t.top&&e.clientY<=t.bottom)},getCurrentTimestamp:function(){return window.performance&&"function"==typeof window.performance.now?window.performance.now():Date.now()},truncateTextToWidth:function(e,t){var n=document.createElement("span");n.style.visibility="hidden",n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.whiteSpace="nowrap",n.innerHTML=t,e.appendChild(n);var o=e.clientWidth||e.getBoundingClientRect().width,r=n.scrollWidth,a="";if(1.8*o<r){var i=o/r,l=1.8*Math.floor(i*t.length)-3;a="".concat(t.slice(0,l),"...")}else a=t;return e.removeChild(n),a},formatSeconds:function(e){var t=Math.abs(e),n=parseInt(t,10)%60,o=parseInt(t/3600,10),r=parseInt((t-3600*o)/60,10);o<10&&(o="0".concat(o)),r<10&&(r="0".concat(r)),n<10&&(n="0".concat(n));var a=0<parseInt(o,10)?"".concat(o,":").concat(r,":").concat(n):"".concat(r,":").concat(n);return 0<=e?a:"-".concat(a)},isSafari:function(){return!!window.navigator.userAgent.match(/AppleWebKit/)&&!window.navigator.userAgent.match(/Chrome/)},isChrome:function(){return!!window.navigator.userAgent.match(/Chrome/)&&!!window.navigator.vendor.match(/Google Inc/)},isEdge:function(){return!!window.navigator.userAgent.match(/Edge/)},isIE:function(){return!!window.navigator.userAgent.match(/MSIE/)||!!window.navigator.userAgent.match(/Trident/)},isAndroid:function(){return!!window.navigator.appVersion.match(/Android/)},isIos:function(){return!!window.navigator.platform.match(/(iPhone|iPad|iPod)/)},isIPhone:function(){return!!window.navigator.platform.match(/(iPhone|iPod)/)},isMobile:function(){return h.isAndroid()||h.isIos()},getUserDevice:function(){var e="desktop",t=window.navigator.userAgent;if(t){var n=t.toLowerCase();/(mobi|ipod|phone|blackberry|opera mini|fennec|minimo|symbian|psp|nintendo ds|archos|skyfire|puffin|blazer|bolt|gobrowser|iris|maemo|semc|teashark|uzard)/.test(n)?e="phone":/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(n)&&(e="tablet")}return e},isIE10:function(){return!!window.navigator.userAgent.match(/MSIE 10/)},getLanguageToUse:function(e,t){if(!e)return"";var n,o=e.localization,r=!1;return t&&t.useBrowserLanguage&&(n=h.getUserBrowserLanguage(),r=!!o&&h.isLanguageCodeInAvailablelLanguageFile(o.availableLanguageFile,n)),n&&o&&r?n:h.getDefaultLanguage(o)},getDefaultLanguage:function(e){return!!e&&e.defaultLanguage||""},getUserBrowserLanguage:function(){var e,t=window.navigator;return t&&(e=t.language||t.userLanguage||t.systemLanguage),e?e.substr(0,2).toLowerCase():""},isLanguageCodeInAvailablelLanguageFile:function(e,t){return!!(e&&Array.isArray(e)&&t)&&e.some(function(e){return e.language===t})},getLocalizedString:function(e,t,n){try{return n[e][t]||t}catch(e){return t}},getStartCountdown:function(e){var t="day",n="hour",o="minute",r=e;try{if(r<0)return"";var a=Math.floor(r/864e5);1!==a&&(t+="s"),r-=24*a*36e5;var i=Math.floor(r/36e5);1!==i&&(n+="s"),r-=36e5*i;var l=Math.floor(r/6e4);return 1!==l&&(o+="s"),"".concat(a," ").concat(t,", ").concat(i," ").concat(n,", and ").concat(l," ").concat(o)}catch(e){return""}},getPropertyValue:function(e,t,n){var o=null,r=e,a=null;try{for(var i=t.split("."),l=0;l<i.length;l+=1)o=r[a=i[l]],r=r[a];return void 0===o?n:o}catch(e){return n}},convertStringToNumber:function(e){var t=e;return-1<t.toString().indexOf("%")&&(t=parseInt(t,0)/100),Number.isFinite(Number(t))?Number(t):0},elementHasClass:function(e,t){return!!e&&-1<" ".concat(e.className," ").indexOf(" ".concat(t," "))},getEventIconElement:function(e,t){var n=null,o=t||"oo-icon",r=e?e.currentTarget:null;return r&&(n=h.elementHasClass(r,o)?r:r.querySelector(".".concat(o))),n},highlight:function(e,t,n){e.style.opacity=t,e.style.color=n,e.style.textShadow="0px 0px 3px rgba(255, 255, 255, 0.5), 0px 0px 6px rgba(255, 255, 255, 0.5), 0px 0px 9px rgba(255, 255, 255, 0.5)"},removeHighlight:function(e,t,n){e.style.opacity=t,e.style.color=n,e.style.textShadow=""}};h.collapse=function(e,t,n){return"number"!=typeof e||Number.isNaN(e)||void 0===e?t:t?function(e,t,n){for(var o,r={fit:t.slice(),overflow:[]},a=t.reduce(function(e,t){return e+n*t.minWidth},0),i=t.length-1;0<=i;i-=1){var l=t[i];"moreOptions"===l.location&&(a=u(r,l,a)),e<a&&"controlBar"===(o=l).location&&o.whenDoesNotFit&&"keep"!==o.whenDoesNotFit&&(a=u(r,l,a))}return r}(e,t.filter(function(e){return(t=e)&&"moreOptions"===t.location||"controlBar"===t.location&&t.whenDoesNotFit&&void 0!==t.minWidth&&0<=t.minWidth;var t}),n):[]},h.findThumbnail=function(e,t,n,o){var r=e.data.available_time_slices,a=e.data.available_widths[0];if(o&&a<d.default.THUMBNAIL.MAX_VR_THUMBNAIL_BG_WIDTH){var i=e.data.available_widths.length-1>=d.default.THUMBNAIL.THUMBNAIL_VR_RATIO?d.default.THUMBNAIL.THUMBNAIL_VR_RATIO:e.data.available_widths.length-1;a=e.data.available_widths[i]}var l=Math.floor(t/n*r.length);l=Math.min(l,r.length-1);var s=null,u=l=Math.max(l,0);if(r[l]>=t){s=p(r,1)[0];for(var c=l;0<=c;c-=1)if(r[c]<=t){s=r[c],u=c;break}}else{s=r[r.length-1];for(var f=l;f<r.length;f+=1){if(r[f]===t){s=r[f],u=f;break}if(r[f]>t){s=r[f-1],u=f-1;break}}}return{url:e.data.thumbnails[s][a].url,pos:u,imageWidth:e.data.thumbnails[s][a].width,imageHeight:e.data.thumbnails[s][a].height}},h.browserSupportsTouch=function(){return"ontouchstart"in window||0<window.navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints},h.createMarkup=function(e){return{__html:e}},h.arrayDeepMerge=function(e,t,a){if(t&&t.length){if(t[0][a.arrayUnionBy]&&"replace"===a.buttonArrayFusion)return t;if(!t[0][a.arrayUnionBy]&&"deepmerge"!==a.arrayFusion)return t}var n=a.arraySwap?t:e,o=a.arraySwap?e:t,i=o.slice(),l=n.slice();if(o.forEach(function(r,e){void 0===l[e]?l[e]=f(r,a):c(r)?r[a.arrayUnionBy]?n.forEach(function(e,t){if(r[a.arrayUnionBy]===e[a.arrayUnionBy]){var n=a.arraySwap?r:e,o=a.arraySwap?e:r;l[t]=(0,s.default)(n,o,a),"prepend"===a.buttonArrayFusion&&i&&i.length&&Object.keys(i).some(function(e){return i[e][a.arrayUnionBy]===r[a.arrayUnionBy]&&(i.splice(e,1),!0)})}}):l[e]=(0,s.default)(n[e],r,a):-1===n.indexOf(r)&&l.push(f(r,a))}),"prepend"===a.buttonArrayFusion&&i&&i.length){var r=null;Object.keys(l).some(function(e){return"flexibleSpace"===l[e][a.arrayUnionBy]&&(r=Number.parseInt(e,0),!0)}),r?(r+=1,Object.keys(i).forEach(function(e){l.splice(r,0,i[e])})):l=l.concat(i)}return l},h.isValidString=function(e){return e&&("string"==typeof e||e instanceof String)},h.sanitizeConfigData=function(e){return e&&!Array.isArray(e)?e:(OO.log("Invalid player configuration json data: ",e),{})},h.canRenderSkin=function(){return!(OO.isIphone&&OO.iosMajorVersion<10)},h.getCoords=function(e){var t={},n=(OO.isIos||OO.isAndroid)&&e.touches&&!!e.touches.length;return t.y=n?(t.x=e.touches[0].pageX,e.touches[0].pageY):(t.x=e.pageX,e.pageY),t},h.getOrientationType=function(){var e=window.screen.orientation;return e=e&&null!==e&&"object"===r(e)?e.type:window.screen.mozOrientation||window.screen.msOrientation},h.setLandscapeScreenOrientation=function(){var e=h.getOrientationType();if(!e||"portrait-secondary"!==e&&"portrait-primary"!==e)return!1;var t="landscape-primary",n=window.screen;if(n.orientation&&n.orientation.lock)n.orientation.lock(t);else if(n.lockOrientation)n.lockOrientation(t);else if(n.mozLockOrientation)n.mozLockOrientation(t);else{if(!n.msLockOrientation)return!1;n.msLockOrientation(t)}return!0},h.getClientWidth=function(e){return e&&(e.clientWidth||e.getBoundingClientRect().width)},h.getClientHeight=function(e){return e&&(e.clientHeight||e.getBoundingClientRect().height)},h.getPlayButtonDetails=function(e){var t,n,o;return o=e===d.default.STATE.PLAYING?(t="pause",n=d.default.ARIA_LABELS.PAUSE,d.default.SKIN_TEXT.PAUSE):e===d.default.STATE.END?(t="replay",n=d.default.ARIA_LABELS.REPLAY,d.default.SKIN_TEXT.REPLAY):(t="play",n=d.default.ARIA_LABELS.PLAY,d.default.SKIN_TEXT.PLAY),{icon:t,ariaLabel:n,buttonTooltip:o}},t.exports=h},{"../constants/constants":73,deepmerge:365}],67:[function(e,t,n){"use strict";t.exports=function(o,n){var r=this;this.getToggleButtons=function(e){return n&&void 0!==n[e]?n[e]:{}},this.setToggleButtons=function(e,t){n&&(n[e]=t)},this.configureMenuAutofocus=function(e){var t=o[e]||{},n=r.getToggleButtons(e);t.showPopover?t.autoFocus=!1:n&&"function"==typeof n.wasTriggeredWithKeyboard&&(t.autoFocus=n.wasTriggeredWithKeyboard())}}},{}],68:[function(e,t,n){"use strict";var c=r(e("react")),f=r(e("classnames")),o=r(e("prop-types")),d=r(e("./menuPanel")),p=r(e("./utils")),h=r(e("../constants/constants")),m=r(e("../constants/macros"));function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){function o(e){var r,t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=this,n=l(o).call(this,e),y(u(u(r=!n||"object"!==a(n)&&"function"!=typeof n?u(t):n)),"onMenuItemClick",function(e){r.props.controller.sendVideoQualityChangeEvent({id:e}),r.setState({selectedValue:e})}),y(u(u(r)),"getBitrateButtons",function(){var a=[],e=r.props,t=e.skinConfig,n=e.videoQualityOptions.availableBitrates,i="",l=null,s=null,o=t.controlBar&&t.controlBar.qualitySelection&&t.controlBar.qualitySelection.format?t.controlBar.qualitySelection.format:h.default.QUALITY_SELECTION.FORMAT.BITRATE,u=0<=o.indexOf(h.default.QUALITY_SELECTION.FORMAT.RESOLUTION),c=0<=o.indexOf(h.default.QUALITY_SELECTION.FORMAT.BITRATE),f=null,d=null,p={};u&&(n.forEach(function(e){"number"==typeof e.height&&(p[e.height]||(p[e.height]=[]),p[e.height].push(e))}),Object.keys(p).forEach(function(e){p[e].sort(function(e,t){return e.bitrate-t.bitrate})}));return n.forEach(function(e){if(e.id===h.default.QUALITY_SELECTION.AUTO_QUALITY)a.unshift({value:h.default.QUALITY_SELECTION.AUTO_QUALITY,label:h.default.SKIN_TEXT.AUTO_QUALITY,ariaLabel:h.default.ARIA_LABELS.AUTO_QUALITY});else{if(d=f=s=l=i=null,"number"==typeof e.height&&(l=e.height),"number"==typeof e.bitrate){var t="kbps";1e3<=(s=Math.round(e.bitrate/1e3))&&(s=Math.round(s/10)/100,t="mbps"),s+=" ".concat(t)}else s=e.bitrate;switch(u&&c&&"number"==typeof l&&s?f=h.default.QUALITY_SELECTION.TEXT.RESOLUTION_BITRATE:c&&s?f=h.default.QUALITY_SELECTION.TEXT.BITRATE_ONLY:u&&"number"==typeof l&&(f=h.default.QUALITY_SELECTION.TEXT.RESOLUTION_ONLY),f){case h.default.QUALITY_SELECTION.TEXT.RESOLUTION_BITRATE:i=f.replace(m.default.BITRATE,s).replace(m.default.RESOLUTION,l),d=i;break;case h.default.QUALITY_SELECTION.TEXT.RESOLUTION_ONLY:if(p[l]&&1<p[l].length){var n=p[l].length,o=null;if(2===n?o=h.default.RESOLUTION_TIER.TWO:3<=n&&(o=h.default.RESOLUTION_TIER.THREE),o){var r=p[l].indexOf(e)-(p[l].length-o.length);0<=r&&r<o.length&&(f=h.default.QUALITY_SELECTION.TEXT.TIERED_RESOLUTION_ONLY,i=f.replace(m.default.RESOLUTION,l).replace(m.default.RESOLUTION_TIER,o[r]))}}else i=f.replace(m.default.RESOLUTION,l);d=i;break;case h.default.QUALITY_SELECTION.TEXT.BITRATE_ONLY:i=f.replace(m.default.BITRATE,s),d=i}i&&a.push({value:e.id,label:i,ariaLabel:d})}}),a}),r.ref=c.default.createRef(),r.state={selectedValue:p.default.getPropertyValue(r.props,"videoQualityOptions.selectedBitrate.id",h.default.QUALITY_SELECTION.AUTO_QUALITY)},r}var t,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(o,c.default.Component),t=o,(n=[{key:"render",value:function(){var e=this.getBitrateButtons(),t=this.props,n=t.language,o=t.isPopover,r=t.skinConfig,a=t.onClose,i=t.localizableStrings,l=p.default.getLocalizedString(n,o?h.default.SKIN_TEXT.VIDEO_QUALITY:"",i),s=(0,f.default)({"oo-content-panel oo-quality-panel":!o,"oo-quality-popover":o}),u=this.state.selectedValue;return c.default.createElement(d.default,{ref:this.ref,className:s,contentClassName:"oo-quality-screen-content",buttonClassName:"oo-quality-btn",title:l,selectedValue:u,isPopover:o,skinConfig:r,menuItems:e,onMenuItemClick:this.onMenuItemClick,onClose:a})}}])&&i(t.prototype,n),r&&i(t,r),o}();b.propTypes={isPopover:o.default.bool,language:o.default.string.isRequired,localizableStrings:o.default.shape({}).isRequired,onClose:o.default.func,videoQualityOptions:o.default.shape({selectedBitrate:o.default.shape({id:o.default.string}).isRequired,availableBitrates:o.default.arrayOf(o.default.shape({id:o.default.string,bitrate:o.default.oneOfType([o.default.string,o.default.number]),label:o.default.string})).isRequired}),skinConfig:o.default.shape({general:o.default.shape({accentColor:o.default.string}),controlBar:o.default.shape({qualitySelection:o.default.shape({format:o.default.string.isRequired})})}),controller:o.default.shape({sendVideoQualityChangeEvent:o.default.func})},b.defaultProps={isPopover:!1,onClose:function(){},videoQualityOptions:{},skinConfig:{},controller:{}},t.exports=b},{"../constants/constants":73,"../constants/macros":74,"./menuPanel":47,"./utils":66,classnames:90,"prop-types":374,react:382}],69:[function(e,t,n){"use strict";var r=l(e("react")),a=l(e("classnames")),o=l(e("prop-types")),i=l(e("./directionControlVr")),s=l(e("./icon")),u=l(e("../constants/constants"));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){function l(){var e,r,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return t=this,n=(e=p(l)).call.apply(e,[this].concat(a)),y(m(m(r=!n||"object"!==c(n)&&"function"!=typeof n?m(t):n)),"handleVrViewControlsClick",function(e,t,n){var o=r.props.controller;"touchend"!==e.type&&o.state.isMobile||(e.stopPropagation(),o.state.accessibilityControlsEnabled=!0),o.moveVrToDirection(t,n)}),y(m(m(r)),"setupIconSymbol",function(){var e=r.props.skinConfig;r.icon=e.buttons.desktopContent.find(function(e){return"mainView"===e.location})}),y(m(m(r)),"setupBackgroundSymbol",function(){r.icon&&("arrowsBlack"===r.icon.name?r.backgroundIcon="circleArrowsBlack":r.backgroundIcon="circleArrowsWhite")}),y(m(m(r)),"componentWillMount",function(){r.isMobile=!1,r.vr=null,r.icon={},r.backgroundIcon="";var e=r.props,t=e.controller,n=e.skinConfig;if(t&&(t.videoVrSource&&(r.vr=t.videoVrSource.vr),t.state&&(r.isMobile=t.state.isMobile),t.state&&!t.state.isPlayingAd&&!r.isMobile)){if(!(n&&n.buttons&&Array.isArray(n.buttons.desktopContent)))return;r.setupIconSymbol(),r.setupBackgroundSymbol()}}),r}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(l,r.default.Component),t=l,(n=[{key:"render",value:function(){var e=!(!this.icon||!this.icon.name),t=this.props.controlBarVisible;return e?r.default.createElement("div",{className:(0,a.default)("oo-vr-icon-container view-controls",{"oo-vr-icon-container--hidden":!t})},r.default.createElement(s.default,f({},this.props,{icon:this.backgroundIcon,className:(0,a.default)("oo-vr-icon--substrate")})),r.default.createElement(s.default,f({},this.props,{icon:this.icon.name,className:(0,a.default)("oo-vr-icon--icon-symbol")})),r.default.createElement(i.default,f({},this.props,{handleVrViewControlsClick:this.handleVrViewControlsClick,dir:"left",focusId:u.default.VR.KEYS.MOVE_LEFT,ariaLabel:u.default.ARIA_LABELS.MOVE_LEFT})),r.default.createElement(i.default,f({},this.props,{handleVrViewControlsClick:this.handleVrViewControlsClick,dir:"right",focusId:u.default.VR.KEYS.MOVE_RIGHT,ariaLabel:u.default.ARIA_LABELS.MOVE_RIGHT})),r.default.createElement(i.default,f({},this.props,{handleVrViewControlsClick:this.handleVrViewControlsClick,dir:"up",focusId:u.default.VR.KEYS.MOVE_UP,ariaLabel:u.default.ARIA_LABELS.MOVE_UP})),r.default.createElement(i.default,f({},this.props,{handleVrViewControlsClick:this.handleVrViewControlsClick,dir:"down",focusId:u.default.VR.KEYS.MOVE_DOWN,ariaLabel:u.default.ARIA_LABELS.MOVE_DOWN})),r.default.createElement(i.default,f({},this.props,{handleVrViewControlsClick:this.handleVrViewControlsClick,dir:"init",focusId:u.default.VR.KEYS.MOVE_CENTER,ariaLabel:u.default.ARIA_LABELS.MOVE_CENTER}))):null}}])&&d(t.prototype,n),o&&d(t,o),l}();b.propTypes={controller:o.default.shape({moveVrToDirection:o.default.func,state:o.default.shape({isMobile:o.default.bool})}).isRequired,skinConfig:o.default.shape({}).isRequired,language:o.default.string},b.defaultProps={language:"en"},t.exports=b},{"../constants/constants":73,"./directionControlVr":35,"./icon":42,classnames:90,"prop-types":374,react:382}],70:[function(e,t,n){"use strict";var s=r(e("react")),u=r(e("classnames")),o=r(e("prop-types")),c=r(e("./slider")),f=r(e("./utils")),d=r(e("../constants/macros")),p=r(e("../constants/constants"));function r(e){return e&&e.__esModule?e:{default:e}}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=function(e){function i(){var e,l,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return t=this,n=(e=y(i)).call.apply(e,[this].concat(r)),v(b(b(l=!n||"object"!==h(n)&&"function"!=typeof n?b(t):n)),"volumeChange",function(e){var t=l.props.controller,n=f.default.ensureNumber(e,1);t.setVolume(n),0!==n&&t.toggleMute(!1,!0)}),v(b(b(l)),"handleVolumeClick",function(e){var t=f.default.getPropertyValue(e,"currentTarget.dataset.volume");void 0===t&&(t=f.default.getPropertyValue(e,"target.dataset.volume")),void 0!==t&&(e.preventDefault(),l.volumeChange(t))}),v(b(b(l)),"handleVolumeSliderChange",function(e){var t=parseFloat(e);l.volumeChange(t)}),v(b(b(l)),"handleVolumeCtrlsKeyDown",function(e){var t=l.props.controller;switch(e.key){case p.default.KEY_VALUES.ARROW_UP:case p.default.KEY_VALUES.ARROW_RIGHT:e.preventDefault(),t.accessibilityControls.changeVolumeBy(p.default.A11Y_CTRLS.VOLUME_CHANGE_DELTA,!0);break;case p.default.KEY_VALUES.ARROW_DOWN:case p.default.KEY_VALUES.ARROW_LEFT:e.preventDefault(),t.accessibilityControls.changeVolumeBy(p.default.A11Y_CTRLS.VOLUME_CHANGE_DELTA,!1);break;case p.default.KEY_VALUES.HOME:e.preventDefault(),t.accessibilityControls.changeVolumeBy(100,!1);break;case p.default.KEY_VALUES.END:e.preventDefault(),t.accessibilityControls.changeVolumeBy(100,!0)}}),v(b(b(l)),"handleVolumeCtrlsMouseDown",function(e){f.default.isIE()&&e.preventDefault()}),v(b(b(l)),"getVolumePercent",function(){return(100*l.props.controller.state.volumeState.volume).toFixed(0)}),v(b(b(l)),"getAriaValueText",function(){return l.props.controller.state.volumeState.muted?p.default.ARIA_LABELS.MUTED:p.default.ARIA_LABELS.VOLUME_PERCENT.replace(d.default.VOLUME,l.getVolumePercent())}),v(b(b(l)),"renderVolumeBars",function(){var e=l.props,a=e.controller,i=e.skinConfig,t=m(Array(10).keys()).map(function(e){var t=(e+1)/10,n=a.state.volumeState.volume>=t&&!a.state.volumeState.muted,o=(0,u.default)({"oo-volume-bar":!0,"oo-on":n}),r={backgroundColor:i.controlBar.volumeControl.color?i.controlBar.volumeControl.color:i.general.accentColor};return s.default.createElement("a",{"data-volume":t,className:o,key:e,style:r,onClick:l.handleVolumeClick,"aria-hidden":"true"},s.default.createElement("span",{className:"oo-click-extender"}))}),n=l.getVolumePercent(),o=l.getAriaValueText();return s.default.createElement("span",{className:"oo-volume-controls",role:"slider","aria-label":p.default.ARIA_LABELS.VOLUME_SLIDER,"aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":n,"aria-valuetext":o,"data-focus-id":p.default.FOCUS_IDS.VOLUME_CONTROLS,tabIndex:"0",onMouseDown:l.handleVolumeCtrlsMouseDown,onMouseUp:f.default.blurOnMouseUp,onKeyDown:l.handleVolumeCtrlsKeyDown},t)}),v(b(b(l)),"renderVolumeSlider",function(){var e=l.props.controller,t=e.state.volumeState.muted?0:parseFloat(e.state.volumeState.volume);return s.default.createElement("div",{className:"oo-volume-slider"},s.default.createElement(c.default,{value:t,className:"oo-slider-volume",itemRef:"volumeSlider",role:"presentation",minValue:0,maxValue:1,step:.1,usePercentageForAria:!0,ariaLabel:p.default.ARIA_LABELS.VOLUME_SLIDER,settingName:p.default.ARIA_LABELS.VOLUME_SLIDER,focusId:p.default.FOCUS_IDS.VOLUME_SLIDER,onChange:l.handleVolumeSliderChange}))}),l}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(i,s.default.Component),t=i,(n=[{key:"render",value:function(){var e=this.props.controller;return e.state.audioOnly?this.renderVolumeSlider():e.state.isMobile?e.state.volumeState.volumeSliderVisible?this.renderVolumeSlider():null:this.renderVolumeBars()}}])&&a(t.prototype,n),o&&a(t,o),i}();i.propTypes={controller:o.default.shape({state:o.default.shape({audioOnly:o.default.bool,isMobile:o.default.bool.isRequired,volumeState:o.default.shape({volumeSliderVisible:o.default.bool.isRequired,volume:o.default.number.isRequired,muted:o.default.bool.isRequired})}),setVolume:o.default.func.isRequired}).isRequired,skinConfig:o.default.shape({general:o.default.shape({accentColor:o.default.string}),controlBar:o.default.shape({volumeControl:o.default.shape({color:o.default.string})})})},i.defaultProps={skinConfig:{general:{accentColor:"#448aff"},controlBar:{volumeControl:{color:"#448aff"}}}},t.exports=i},{"../constants/constants":73,"../constants/macros":74,"./slider":56,"./utils":66,classnames:90,"prop-types":374,react:382}],71:[function(e,t,n){"use strict";var f=r(e("react")),o=r(e("prop-types")),d=r(e("./controlBar"));function r(e){return e&&e.__esModule?e:{default:e}}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var a=function(e){var t=e.a11yControls,n=e.buffered,o=e.componentWidth,r=e.currentPlayhead,a=e.duration,i=e.isLiveStream,l=e.playerState,s=e.playheadTime,u=e.responsiveId,c=e.totalTime;return f.default.createElement("div",{className:"oo-absolute-centered oo-volume-panel"},f.default.createElement(d.default,p({},e,{hideScrubberBar:!0,controlBarVisible:!0,playerState:l,isLiveStream:i,a11yControls:t,currentPlayhead:r,duration:a,totalTime:c,playheadTime:s,buffered:n,responsiveView:u,componentWidth:o,controlBarItems:[{name:"volume",location:"controlBar",whenDoesNotFit:"keep",minWidth:200}]})))};a.propTypes={totalTime:o.default.string.isRequired,playheadTime:o.default.string.isRequired,clickToVolumeScreen:o.default.bool,hideVolumeControls:o.default.bool,hideScrubberBar:o.default.func,audioOnly:o.default.bool,isLiveStream:o.default.bool,controlBarVisible:o.default.bool,playerState:o.default.string,responsiveView:o.default.string,language:o.default.string,localizableStrings:o.default.shape({}),duration:o.default.number,currentPlayhead:o.default.number,componentWidth:o.default.number,onFocus:o.default.func,onBlur:o.default.func,skinConfig:o.default.shape({responsive:o.default.shape({breakpoints:o.default.object})}),controller:o.default.shape({state:o.default.object,videoVrSource:o.default.shape({vr:o.default.object}),cancelTimer:o.default.func,startHideControlBarTimer:o.default.func,hideVolumeSliderBar:o.default.func,closePopover:o.default.func,closeOtherPopovers:o.default.func,isVrStereo:o.default.bool}).isRequired},a.defaultProps={clickToVolumeScreen:!1,hideScrubberBar:function(){},hideVolumeControls:!1,audioOnly:!1,isLiveStream:!1,playerState:"playing",controlBarVisible:!1,responsiveView:"md",language:"en",localizableStrings:{},duration:0,currentPlayhead:0,componentWidth:0,onFocus:function(){},onBlur:function(){},skinConfig:{}},t.exports=a},{"./controlBar":30,"prop-types":374,react:382}],72:[function(e,t,n){"use strict";var y=r(e("react")),b=r(e("classnames")),o=r(e("prop-types")),v=r(e("./utils")),g=r(e("../constants/constants"));function r(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=function(e){function c(){var e,n,t,o,r,a,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];return t=this,o=(e=d(c)).call.apply(e,[this].concat(s)),n=!o||"object"!==f(o)&&"function"!=typeof o?p(t):o,r=p(p(n)),i=function(){var e=n.props,t=e.controller;e.playerState===g.default.STATE.PLAYING&&t.togglePlayPause()},(a="handleWatermarkClick")in r?Object.defineProperty(r,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[a]=i,n}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(c,y.default.Component),t=c,(n=[{key:"render",value:function(){var e=this.props,t=e.controlBarVisible,n=e.nonClickable,o=e.skinConfig,r=v.default.getPropertyValue(o,"general.watermark.imageResource.url"),a=v.default.getPropertyValue(o,"general.watermark.clickUrl"),i=v.default.getPropertyValue(o,"general.watermark.position"),l=v.default.getPropertyValue(o,"general.watermark.target","_blank"),s=v.default.getPropertyValue(o,"general.watermark.transparency",1),u=v.default.getPropertyValue(o,"general.watermark.scalingOption","default"),c=v.default.getPropertyValue(o,"general.watermark.scalingPercentage");if(!r||!i)return null;var f={},d={};f.opacity=s,"height"===u?(f.height="".concat(c,"%"),d.height="100%"):"width"===u?(f.width="".concat(c,"%"),d.width="100%"):"default"===u?(f.width="".concat(g.default.WATERMARK.DEFAULT_SCALING_PERCENTAGE,"%"),d.width="100%"):f.width="auto","left"!==(i=i.toLowerCase())&&"right"!==i||(i="center".concat(i)),"bottom"!==i&&"top"!==i||(i+="center");var p=(0,b.default)({"oo-watermark-container":!0,"oo-watermark-no-clickURL":!a,"oo-watermark-top":-1<i.indexOf("top"),"oo-watermark-bottom":-1<i.indexOf("bottom"),"oo-watermark-bottom-cb":t&&-1<i.indexOf("bottom"),"oo-watermark-left":-1<i.indexOf("left"),"oo-watermark-right":-1<i.indexOf("right"),"oo-watermark-center-horizontal":-1<i.indexOf("bottomcenter")||-1<i.indexOf("topcenter"),"oo-watermark-center-vertical":-1<i.indexOf("centerright")||-1<i.indexOf("centerleft")}),h=(0,b.default)({"oo-blur":n,"oo-watermark":!0}),m=y.default.createElement("img",{className:h,style:d,src:r,"data-testid":"watermarkImage",alt:"watermark"});return n||!a?y.default.createElement("div",{className:p,"data-testid":"watermark",style:f},m):y.default.createElement("a",{className:p,"data-testid":"watermark",style:f,href:o.general.watermark.clickUrl,target:l,onClick:this.handleWatermarkClick},m)}}])&&a(t.prototype,n),o&&a(t,o),c}();l.propTypes={nonClickable:o.default.bool,playerState:o.default.string,controlBarVisible:o.default.bool,skinConfig:o.default.shape({general:o.default.shape({watermark:o.default.shape({imageResource:o.default.shape({url:o.default.string}),clickUrl:o.default.string,position:o.default.string,target:o.default.string,transparency:o.default.number,scalingOption:o.default.string,scalingPercentage:o.default.number,nonClickable:o.default.bool})})}),controller:o.default.shape({togglePlayPause:o.default.func})},l.defaultProps={nonClickable:!1,playerState:g.default.STATE.PAUSE,controlBarVisible:!1,skinConfig:{general:{watermark:{imageResource:{url:""},clickUrl:"",position:"bottomRight",target:"_blank",transparency:1,scalingOption:"default",scalingPercentage:10,nonClickable:!1}}},controller:{togglePlayPause:function(){}}},t.exports=l},{"../constants/constants":73,"./utils":66,classnames:90,"prop-types":374,react:382}],73:[function(e,t,n){"use strict";var o;function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=e("./macros"),i={AIRPLAY_STATE:{CONNECTED:"airPlay-connected",DISCONNECTED:"airPlay-disconnected"},STATE:{START:"start",PLAYING:"playing",PAUSE:"pause",END:"end",ERROR:"error"},SCREEN:{INITIAL_SCREEN:"initialScreen",START_SCREEN:"startScreen",PLAYING_SCREEN:"playingScreen",PAUSE_SCREEN:"pauseScreen",END_SCREEN:"endScreen",SHARE_SCREEN:"shareScreen",VOLUME_SCREEN:"volumeScreen",DISCOVERY_SCREEN:"discoveryScreen",UP_NEXT_SCREEN:"upNextScreen",AD_SCREEN:"adScreen",MORE_OPTIONS_SCREEN:"moreOptionsScreen",LOADING_SCREEN:"loadingScreen",START_LOADING_SCREEN:"startLoadingScreen",CLOSED_CAPTION_SCREEN:"closedCaptionScreen",VIDEO_QUALITY_SCREEN:"videoQualityScreen",ERROR_SCREEN:"errorScreen",MULTI_AUDIO_SCREEN:"multiAudioScreen",PLAYBACK_SPEED_SCREEN:"playbackSpeedScreen"},UI_TAG:{DISCOVERY:"discovery-panel",UP_NEXT:"up-next-panel"},DISCOVERY:{ID_TYPE:"ooyala",SOURCE:"ooyala-discovery"},MENU_OPTIONS:{VIDEO_QUALITY:"videoQualityOptions",CLOSED_CAPTIONS:"closedCaptionOptions",MULTI_AUDIO:"multiAudioOptions",PLAYBACK_SPEED:"playbackSpeedOptions",MORE_OPTIONS:"moreOptionsOptions"},SKIN_TEXT:{CONNECTED_TO:"Connected to",LEARN_MORE:"Learn More",CLOSED_CAPTION_PREVIEW:"CLOSED CAPTION PREVIEW",SAMPLE_TEXT:"Sample Text",AD:"Ad",SKIP_AD:"Skip Ad",LIVE:"LIVE",GO_LIVE:"GO LIVE",CC_OPTIONS:"CC Options",MULTI_AUDIO_OPTIONS:"Multi Audio Options",ON:"On",OFF:"Off",DISCOVER:"Discover",UP_NEXT:"Up next",START_AT:"Start at",EMBED:"Embed",EMAIL:"Email",EMAIL_BODY:"Check out this video",TO:"To",SUBJECT:"Subject",MESSAGE:"Message",RECIPIENT:"name@email.com",OPTIONAL_MESSAGE:"Optional Message",SEND:"Send",ERROR_ACTION:"RELOAD YOUR SCREEN OR TRY SELECTING A DIFFERENT VIDEO",UNKNOWN_ERROR:"Something happened while we were trying to play your video! Click replay or simply reload your page.",LANGUAGE_TAB_TITLE:"Language",COLOR_SELECTION_TAB_TITLE:"Color Selection",CAPTION_OPACITY_TAB_TITLE:"Caption Opacity",FONT_TYPE_TAB_TITLE:"Font Type",FONT_SIZE_TAB_TITLE:"Font Size",TEXT_ENHANCEMENTS_TAB_TITLE:"Text Enhancements",TEXT_COLOR:"Text color",BACKGROUND_COLOR:"Background color",WINDOW_COLOR:"Window color",TRANSPARENT:"Transparent",WHITE:"White",BLUE:"Blue",MAGENTA:"Magenta",GREEN:"Green",YELLOW:"Yellow",RED:"Red",CYAN:"Cyan",BLACK:"Black",TEXT_OPACITY:"Text opacity",BACKGROUND_OPACITY:"Background opacity",WINDOW_OPACITY:"Window opacity",FONT_SIZE:"Font size",SMALL:"Small",MEDIUM:"Medium",LARGE:"Large",EXTRA_LARGE:"Extra Large",TEXT_ENHANCEMENT:"Text enhancement",UNIFORM:"Uniform",DEPRESSED:"Depressed",RAISED:"Raised",SHADOW:"Shadow",PLAY:"Play",REPLAY:"Replay",PAUSE:"Pause",MUTE:"Mute",UNMUTE:"Unmute",CLOSED_CAPTIONS:"Closed Captions",MULTI_AUDIO:"Multi Audio",FULL_SCREEN:"Full Screen",EXIT_FULL_SCREEN:"Exit Full Screen",VIDEO_QUALITY:"Video Quality",AUTO_QUALITY:"Auto",PLAYBACK_SPEED:"Speed",NORMAL_SPEED:"Normal",SHARE:"Share",MORE_OPTIONS:"More Options",SELECT_TO_UNMUTE:"SELECT TO UNMUTE",AUDIO:"Audio",SUBTITLES:"Subtitles",UNDEFINED_LANGUAGE:"Undefined language",NO_LINGUISTIC_CONTENT:"No linguistic content",UNCODED_LANGUAGES:"Uncoded languages",MULTIPLE_LANGUAGES:"Multiple languages",CHROMECAST:"Chromecast",AIRPLAY:"Airplay"},ARIA_LABELS:{VIDEO_PLAYER:"Video Player",START_PLAYBACK:"Start Playback",PLAY:"Play",PAUSE:"Pause",REPLAY:"Replay",MUTE:"Mute",MUTED:"Player is muted",UNMUTE:"Unmute",CLOSED_CAPTIONS:"Closed Captions",VIDEO_QUALITY:"Video Quality",AUTO_QUALITY:"Auto",MULTI_AUDIO:"Multi Audio",FULLSCREEN:"Fullscreen",EXIT_FULLSCREEN:"Exit Fullscreen",SEEK_SLIDER:"Seek slider",VOLUME_SLIDER:"Volume",VOLUME_PERCENT:"".concat(a.VOLUME,"% volume"),TIME_DISPLAY:"".concat(a.CURRENT_TIME," of ").concat(a.TOTAL_TIME),TIME_DISPLAY_LIVE:"Live video",TIME_DISPLAY_DVR:"".concat(a.CURRENT_TIME," of ").concat(a.TOTAL_TIME," live video"),CLOSE:"Close",TOGGLE_CLOSED_CAPTIONS:"Toggle Closed Captions",CAPTION_OPTIONS:"Closed Caption Options",STEREO_ON:"Stereoscopic",STEREO_OFF:"Monoscopic",MORE_OPTIONS:"More Options",PREVIOUS_OPTIONS:"Previous Options",SLIDER_VALUE_TEXT:"".concat(a.PERCENT,"% ").concat(a.SETTING),LANGUAGE_MENU:"Language",CAPTION_OPACITY_MENU:"Caption Opacity",TEXT_COLOR_MENU:"Text Color",BACKGROUND_COLOR_MENU:"Background Color",WINDOW_COLOR_MENU:"Window Color",FONT_TYPE_MENU:"Font Type",FONT_SIZE_MENU:"Font Size",TEXT_ENHANCEMENTS_MENU:"Text Enhancements",TOGGLE_MULTI_AUDIO:"Toggle Multi Audio",MULTI_AUDIO_OPTIONS:"Closed Multi Audio Options",PREVIOUS_VIDEO:"Previous Video",NEXT_VIDEO:"Next Video",SKIP_BACKWARD:"Rewind ".concat(a.SECONDS," Seconds"),SKIP_FORWARD:"Skip ".concat(a.SECONDS," Seconds Forward"),PLAYBACK_SPEED:"".concat(a.RATE,"x Playback Speed"),PLAYBACK_SPEED_OPTION:"Speed",NORMAL_SPEED:"Normal Speed",CHROMECAST:"Chromecast",AIRPLAY:"Airplay",MOVE_LEFT:"Move left",MOVE_RIGHT:"Move right",MOVE_UP:"Move up",MOVE_DOWN:"Move down",MOVE_CENTER:"Reset View"},CONTROL_BAR_KEYS:{PLAY_PAUSE:"playPause",LIVE:"live",VOLUME:"volume",TIME_DURATION:"timeDuration",FLEXIBLE_SPACE:"flexibleSpace",MORE_OPTIONS:"moreOptions",QUALITY:"quality",DISCOVERY:"discovery",CLOSED_CAPTION:"closedCaption",AUDIO_AND_CC:"audioAndCC",PLAYBACK_SPEED:"playbackSpeed",SHARE:"share",STEREOSCOPIC:"stereoscopic",FULLSCREEN:"fullscreen",LOGO:"logo",CHROMECAST:"chromecast",SKIP_CONTROLS:"skipControls",AIRPLAY:"airPlay"},VR:{KEYS:{MOVE_LEFT:"moveLeft",MOVE_RIGHT:"moveRight",MOVE_UP:"moveUp",MOVE_DOWN:"moveDown",MOVE_CENTER:"moveCenter"}},ARIA_ROLES:{PRESENTATION:"presentation",SLIDER:"slider",MENU:"menu",MENU_ITEM:"menuitem",MENU_ITEM_RADIO:"menuitemradio",MENU_ITEM_CHECKBOX:"menuitemcheckbox",CHECKBOX:"checkbox",TAB_LIST:"tablist",TAB:"tab",TAB_PANEL:"tabpanel"},KEYBD_FOCUS_ID_ATTR:"data-focus-id",FOCUS_IDS:{SCRUBBER_BAR:"scrubberBar",VOLUME_CONTROLS:"volumeControls",VOLUME_SLIDER:"volumeSlider",QUALITY_LEVEL:"qualityLevel",AUTO_QUALITY:"autoQuality",CLOSE:"close",MULTI_AUDIO:"multiAudio",MENU_ITEM:"menuItem"},SKIP_CTRLS_KEYS:{PREVIOUS_VIDEO:"previousVideo",SKIP_BACKWARD:"skipBackward",SKIP_FORWARD:"skipForward",NEXT_VIDEO:"nextVideo",PLAY_PAUSE:"playPause"},A11Y_CTRLS:{SEEK_DELTA:5,VOLUME_CHANGE_DELTA:10},KEYCODES:{SPACE_KEY:32,LEFT_ARROW_KEY:37,RIGHT_ARROW_KEY:39,UP_ARROW_KEY:38,DOWN_ARROW_KEY:40,ESCAPE_KEY:27,ENTER_KEY:13,A:65,D:68,W:87,S:83},DIRECTIONS:{LEFT:"left",RIGHT:"right",UP:"up",DOWN:"down"},KEY_VALUES:{ENTER:"Enter",TAB:"Tab",CONTROL:"Control",ALT:"Alt",ESCAPE:"Escape",SPACE:" ",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",HOME:"Home",END:"End"},UI:{defaultScrubberBarHeight:4,POPOVER_SCROLL_RATE:.6,DEFAULT_SCRUBBERBAR_LEFT_RIGHT_PADDING:15,MAX_BUFFERING_SPINNER_DELAY:6e4,DEFAULT_SKIP_BACKWARD_TIME:10,DEFAULT_SKIP_FORWARD_TIME:10,MIN_SKIP_TIME:1,MAX_SKIP_TIME:99,REQUEST_PREVIOUS_TIME_THRESHOLD:1500,REQUEST_PREVIOUS_PLAYHEAD_THRESHOLD:2,AUDIO_ONLY_DEFAULT_HEIGHT:"138px",AUDIO_ONLY_WITH_COVER_HEIGHT:"500px"},PLAYBACK_SPEED:{DEFAULT_VALUE:1,DEFAULT_OPTIONS:[.5,.75,1,1.25,1.5,2],MIN:.5,MAX:2},TOOLTIP_ALIGNMENT:{LEFT:"left",CENTER:"center",RIGHT:"right"},WATERMARK:{DEFAULT_SCALING_PERCENTAGE:10},AD_CLICK_SOURCE:{VIDEO_WINDOW:"videoWindow",LEARN_MORE_BUTTON:"learnMoreButton",OVERLAY:"overlay"},PAUSE_REASON:{TRANSITION:"transition"},MEDIA_TYPE:{HTML5:"html5",FLASH:"flash",VIDEO:"video",OBJECT:"object"},LANGUAGE:{ENGLISH:"en",SPANISH:"es",CHINESE:"zh",JAPANESE:"ja",NOT_MATCHED:"und",UNDEFINED_LANGUAGE:"und",NO_LINGUISTIC_CONTENT:"zxx",UNCODED_LANGUAGES:"mis",MULTIPLE_LANGUAGES:"mul"},ERROR_CODE:{NETWORK:"network",SAS:"sas",GEO:"geo",DOMAIN:"domain",FUTURE:"future",PAST:"past",DEVICE:"device",PROXY:"proxy",CONCURRENT_STREAMS:"concurrent_streams",DEVICE_BINDING_FAILED:"device_binding_failed",DEVICE_ID_TOO_LONG:"device_id_too_long",DEVICE_INVALID_AUTH_TOKEN:"device_invalid_auth_token",DEVICE_LIMIT_REACHED:"device_limit_reached",NON_REGISTERED_DEVICE:"non_registered_device",DRM_GENERAL_FAILURE:"drm_general_failure",DRM_SERVER_ERROR:"drm_server_error",INVALID_ENTITLEMENTS:"invalid_entitlements",INVALID_HEARTBEAT:"invalid_heartbeat",CONTENT_TREE:"content_tree",METADATA:"metadata",PLAYBACK:"playback",STREAM:"stream",LIVESTREAM:"livestream",NETWORK_ERROR:"network_error",UNPLAYABLE_CONTENT:"unplayable_content",INVALID_EXTERNAL_ID:"invalid_external_id",EMPTY_CHANNEL:"empty_channel",EMPTY_CHANNEL_SET:"empty_channel_set",CHANNEL_CONTENT:"channel_content",UNSUPPORTED_ENCODING:"unsupported_encoding",UNABLE_TO_CREATE_VIDEO_ELEMENT:"unable_to_create_video_element"},CLOSED_CAPTIONS:{NO_LANGUAGE:"none"},QUALITY_SELECTION:{AUTO_QUALITY:"auto",FORMAT:{RESOLUTION:"resolution",BITRATE:"bitrate"},TEXT:{RESOLUTION_BITRATE:"".concat(a.RESOLUTION,"p (").concat(a.BITRATE,")"),RESOLUTION_ONLY:"".concat(a.RESOLUTION,"p"),TIERED_RESOLUTION_ONLY:"".concat(a.RESOLUTION,"p (").concat(a.RESOLUTION_TIER,")"),BITRATE_ONLY:a.BITRATE}},RESOLUTION_TIER:{TWO:["Low","High"],THREE:["Low","Medium","High"]},ERROR_MESSAGE:{network:{name:"OO.ERROR.API.NETWORK",title:"NETWORK ERROR",description:"Cannot Contact Server"},sas:{name:"OO.ERROR.API.SAS.GENERIC",title:"SAS ERROR",description:"Invalid Authorization Response"},geo:{name:"OO.ERROR.API.SAS.GEO",title:"SAS GEO ERROR",description:"This video is not authorized in your location"},domain:{name:"OO.ERROR.API.SAS.DOMAIN",title:"SAS DOMAIN ERROR",description:"This video is not authorized for your domain"},future:{name:"OO.ERROR.API.SAS.FUTURE",title:"VIDEO COMING SOON!",description:"This video is not available yet",action:"You may need to refresh the page to access the video after it becomes available"},past:{name:"OO.ERROR.API.SAS.PAST",title:"VIDEO NO LONGER AVAILABLE",description:"This video is no longer available"},device:{name:"OO.ERROR.API.SAS.DEVICE",title:"SAS DEVICE ERROR",description:"This video is not authorized for playback on this device"},proxy:{name:"OO.ERROR.API.SAS.PROXY",title:"SAS PROXY ERROR",description:"An anonymous proxy was detected. Please disable the proxy and retry."},concurrent_streams:{name:"OO.ERROR.API.SAS.CONCURRENT_STREAMS",title:"CONCURRENT STREAMS NUMBER EXCEEDED",description:"You have exceeded the maximum number of concurrent streams"},device_binding_failed:{name:"OO.ERROR.API.SAS.ERROR.DEVICE_BINDING_FAILED",title:"DEVICE BINDING ERROR",description:"Device binding failed"},device_id_too_long:{name:"OO.ERROR.API.SAS.ERROR.DEVICE_ID_TOO_LONG",title:"DEVICE ID TOO LONG",description:"Device ID is too long"},device_invalid_auth_token:{name:"OO.ERROR.API.SAS.ERROR.DEVICE_INVALID_AUTH_TOKEN",title:"INVALID PLAYER TOKEN",description:"Invalid Ooyala Player token"},device_limit_reached:{name:"OO.ERROR.API.SAS.ERROR.ERROR_DEVICE_LIMIT_REACHED",title:"AUTHORIZATION ERROR",description:"Unable to access this content, as the maximum number of devices has already been authorized. Error Code 29",action:"Please remove one of your authorized devices to enable this device."},non_registered_device:{name:"OO.ERROR.API.SAS.ERROR.ERROR_NON_REGISTERED_DEVICE",title:"AUTHORIZATION ERROR",description:"Unable to register this device to this account, as the maximum number of authorized devices has already been reached. Error Code 22",action:"Please remove one of your authorized devices to enable this device."},drm_general_failure:{name:"OO.ERROR.API.SAS.ERROR_DRM_GENERAL_FAILURE",title:"LICENSE ERROR",description:"General error acquiring license"},drm_server_error:{name:"OO.ERROR.API.SAS.ERROR_DRM_RIGHTS_SERVER_ERROR",title:"DRM SERVER ERROR",description:"DRM server error"},drm_token_expired:{name:"OO.ERROR.API.SAS.ERROR_DRM_TOKEN_EXPIRED",title:"LICENSE REQUEST FAILED",description:"Token expired"},invalid_entitlements:{name:"OO.ERROR.API.SAS.ERROR_INVALID_ENTITLEMENTS",title:"INVALID ENTITLEMENTS ERROR",description:"User Entitlement Terminated - Stream No Longer Active for the User"},invalid_heartbeat:{name:"OO.ERROR.API.SAS.INVALID_HEARTBEAT",title:"INVALID HEARTBEAT",description:"Invalid heartbeat response"},content_tree:{name:"OO.ERROR.API.CONTENT_TREE",title:"INVALID CONTENT",description:"Invalid Content"},metadata:{name:"OO.ERROR.API.METADATA",title:"INVALID METADATA",description:"Invalid Metadata"},playback:{name:"OO.ERROR.PLAYBACK.GENERIC",title:"PLAYBACK ERROR",description:"Could not play the content"},stream:{name:"OO.ERROR.PLAYBACK.STREAM",title:"PLAYBACK STREAM ERROR",description:"This video isn't encoded for your device"},livestream:{name:"OO.ERROR.PLAYBACK.LIVESTREAM",title:"PLAYBACK LIVESTREAM ERROR",description:"Live stream is off air"},network_error:{name:"OO.ERROR.PLAYBACK.NETWORK",title:"PLAYBACK NETWORK ERROR",description:"Network connection temporarily lost"},unplayable_content:{name:"OO.ERROR.UNPLAYABLE_CONTENT",title:"UNPLAYABLE CONTENT ERROR",description:"This video is not playable on this player"},invalid_external_id:{name:"OO.ERROR.INVALID.EXTERNAL_ID",title:"INVALID EXTERNAL ID",description:"Invalid External ID"},empty_channel:{name:"OO.ERROR.EMPTY_CHANNEL",title:"EMPTY CHANNEL ERROR",description:"This channel is empty"},empty_channel_set:{name:"OO.ERROR.EMPTY_CHANNEL_SET",title:"EMPTY CHANNEL SET ERROR",description:"This channel set is empty"},channel_content:{name:"OO.ERROR.CHANNEL_CONTENT",title:"CHANNEL CONTENT ERROR",description:"This channel is not playable at this time"},unsupported_encoding:{name:"OO.ERROR.VC.UNSUPPORTED_ENCODING",title:"UNSUPPORTED CONTENT TYPE",description:"This video encoding is not supported on your device"},unable_to_create_video_element:{name:"OO.ERROR.VC.UNABLE_TO_CREATE_VIDEO_ELEMENT",description:"Something happened while we were trying to play your video! Click replay or simply reload your page."}},THUMBNAIL:{MAX_VR_THUMBNAIL_BG_WIDTH:380,MAX_VR_THUMBNAIL_CAROUSEL_BG_WIDTH:320,THUMBNAIL_VR_RATIO:4,THUMBNAIL_CAROUSEL_VR_RATIO:3},CLASS_NAMES:{SELECTABLE_SCREEN:"oo-state-screen-selectable"},MARKERS:{TYPE:{TEXT:"text",ICON:"icon",TEXT_ICON:"textIcon"},OFFSET:{TEXT:35,ICON:16,TEXT_HOVER:70,ICON_HOVER:50},ZINDEX:12e3,MAXCHAR:78}};i.MENU_OPTIONS_SCREENS=(r(o={},i.MENU_OPTIONS.VIDEO_QUALITY,i.SCREEN.VIDEO_QUALITY_SCREEN),r(o,i.MENU_OPTIONS.CLOSED_CAPTIONS,i.SCREEN.CLOSED_CAPTION_SCREEN),r(o,i.MENU_OPTIONS.MULTI_AUDIO,i.SCREEN.MULTI_AUDIO_SCREEN),r(o,i.MENU_OPTIONS.PLAYBACK_SPEED,i.SCREEN.PLAYBACK_SPEED_SCREEN),o),t.exports=i},{"./macros":74}],74:[function(e,t,n){"use strict";t.exports={VOLUME:"{volume}",CURRENT_TIME:"{currentTime}",TOTAL_TIME:"{totalTime}",LEVEL:"{level}",RESOLUTION:"{resolution}",RESOLUTION_TIER:"{resolutionTier}",BITRATE:"{bitrate}",PERCENT:"{percent}",SETTING:"{setting}",SECONDS:"{seconds}",RATE:"{rate}"}},{}],75:[function(e,t,n){"use strict";var v=c(e("react")),g=c(e("react-dom")),E=c(e("deepmerge")),o=c(e("screenfull")),S=c(e("./components/utils")),_=c(e("./constants/constants")),a=c(e("./components/accessibilityControls")),T=c(e("./skin")),O=c(e("../config/skin")),r=c(e("../config/languageFiles/en.json")),i=c(e("../config/languageFiles/es.json")),l=c(e("../config/languageFiles/ja.json")),s=c(e("../config/languageFiles/ko.json")),u=c(e("../config/languageFiles/zh.json"));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(o=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);o=!0);}catch(e){r=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var A={languageFiles:{en:r.default,es:i.default,ja:l.default,ko:s.default,zh:u.default}};t.exports=function(y,i,b){if(!y.playerParams.core_version||y.playerParams.core_version<=3)return console.error("Html5Skin requires at least player version 4."),null;function e(e,t){this.mb=e,this.id=t,this.accessibilityControls=null,this.videoVrSource=null,this.videoVr=!1,this.captionDirection="",this.isNewVrVideo=!0,this.vrMobileOrientationChecked=!1,this.checkDeviceOrientation=!1,this.isVrStereo=!1,this.toggleButtons={},this.handleVrMobileOrientation=this.handleVrMobileOrientation.bind(this),this.languageList=[],this.state={playerParam:{},skinMetaData:{},attributes:{},persistentSettings:{closedCaptionOptions:{}},assetId:null,contentTree:{},thumbnails:null,isLiveStream:!1,screenToShow:null,playerState:null,currentVideoId:null,discoveryData:null,forceCountDownTimerOnEndScreen:!1,isPlayingAd:!1,adOverlayUrl:null,showAdOverlay:!1,showAdOverlayCloseButton:!1,showAdControls:!0,showAdMarquee:!0,isOoyalaAds:!1,afterOoyalaAd:!1,configLoaded:!1,config:{},customSkinJSON:{},fullscreen:!1,pauseAnimationDisabled:!1,adPauseAnimationDisabled:!0,pausedCallback:null,seeking:!1,queuedPlayheadUpdate:null,accessibilityControlsEnabled:!1,duration:0,mainVideoDuration:0,adVideoDuration:0,adStartTime:0,adPausedTime:0,adEndTime:0,adWasPaused:!1,adPauseDuration:0,adRemainingTime:0,elementId:null,mainVideoContainer:null,mainVideoInnerWrapper:null,mainVideoElement:null,mainVideoElementContainer:null,mainVideoMediaType:null,mainVideoAspectRatio:0,pluginsElement:null,pluginsClickElement:null,buffering:!1,mainVideoBuffered:null,mainVideoPlayhead:0,adVideoPlayhead:0,focusedElement:null,focusedControl:null,currentAdsInfo:{currentAdItem:null,numberOfAds:0,skipAdButtonEnabled:!1},closedCaptionsInfoCache:{},closedCaptionOptions:{enabled:null,language:null,availableLanguages:null,cueText:null,showPopover:!1,autoFocus:!1,textColor:null,windowColor:null,backgroundColor:null,textOpacity:null,backgroundOpacity:null,windowOpacity:null,fontType:null,fontSize:null,textEnhancement:null},videoQualityOptions:{availableBitrates:null,selectedBitrate:null,showPopover:!1,autoFocus:!1},moreOptionsOptions:{autoFocus:!1},volumeState:{volume:1,muted:!1,volumeSliderVisible:!1,mutingForAutoplay:!1,unmuteIconCollapsed:!1},upNextInfo:{upNextData:null,countDownFinished:!1,countDownCancelled:!1,timeToShow:0,showing:!1,delayedSetEmbedCodeEvent:!1,delayedContentData:null},scrubberBar:{isHovering:!1},skipControls:{hasPreviousVideos:!1,hasNextVideos:!1,requestPreviousTimestamp:0},playbackSpeedOptions:{currentSpeed:_.default.PLAYBACK_SPEED.DEFAULT_VALUE,showPopover:!1,autoFocus:!1},moreOptionsItems:null,isMobile:!1,controlBarVisible:!0,forceControlBarVisible:!1,timer:null,bufferingTimer:null,errorCode:null,isSubscribed:!1,isPlaybackReadySubscribed:!1,isInitialPlay:!1,initialPlayHasOccurred:!1,isFullScreenSupported:!1,isVideoFullScreenSupported:!1,isFullWindow:!1,autoPauseDisabled:!1,isClickedOutside:!1,vrViewingDirection:{yaw:0,roll:0,pitch:0},hideMultiAudioIcon:!1,multiAudio:null,multiAudioOptions:{enabled:null,showPopover:!1,autoFocus:!1},cast:{showButton:!1,connected:!1,device:"",isReceiver:!1},markers:{list:[]},airplay:{available:!1,statusIcon:_.default.AIRPLAY_STATE.DISCONNECTED},audioOnly:!1},this.init()}return y.publicApi&&y.publicApi.VERSION&&(y.publicApi.VERSION.skin={releaseVersion:"4.40.0",rev:"657f6b2a57144b7ce4b3578c567ce05e66532c8a"}),e.prototype={init:function(){this.mb.subscribe(y.EVENTS.PLAYER_CREATED,"customerUi",i.bind(this.onPlayerCreated,this)),this.mb.subscribe(y.EVENTS.VC_VIDEO_ELEMENT_CREATED,"customerUi",i.bind(this.onVcVideoElementCreated,this)),this.mb.subscribe(y.EVENTS.DESTROY,"customerUi",i.bind(this.onPlayerDestroy,this)),this.mb.subscribe(y.EVENTS.SET_EMBED_CODE,"customerUi",i.bind(this.onSetEmbedCode,this)),this.mb.subscribe(y.EVENTS.EMBED_CODE_CHANGED,"customerUi",i.bind(this.onEmbedCodeChanged,this)),this.mb.subscribe(y.EVENTS.EMBED_CODE_CHANGED_AFTER_OOYALA_AD,"customerUi",i.bind(this.onEmbedCodeChangedAfterOoyalaAd,this)),this.mb.subscribe(y.EVENTS.CONTENT_TREE_FETCHED,"customerUi",i.bind(this.onContentTreeFetched,this)),this.mb.subscribe(y.EVENTS.THUMBNAILS_FETCHED,"customerUi",i.bind(this.onThumbnailsFetched,this)),this.mb.subscribe(y.EVENTS.AUTHORIZATION_FETCHED,"customerUi",i.bind(this.onAuthorizationFetched,this)),this.mb.subscribe(y.EVENTS.SKIN_METADATA_FETCHED,"customerUi",i.bind(this.onSkinMetaDataFetched,this)),this.mb.subscribe(y.EVENTS.METADATA_FETCHED,"customerUi",i.bind(this.onMetaDataFetched,this)),this.mb.subscribe(y.EVENTS.ATTRIBUTES_FETCHED,"customerUi",i.bind(this.onAttributesFetched,this)),this.mb.subscribe(y.EVENTS.ASSET_CHANGED,"customerUi",i.bind(this.onAssetChanged,this)),this.mb.subscribe(y.EVENTS.ASSET_UPDATED,"customerUi",i.bind(this.onAssetUpdated,this)),this.mb.subscribe(y.EVENTS.PLAYBACK_READY,"customerUi",i.bind(this.onPlaybackReady,this)),this.mb.subscribe(y.EVENTS.VIDEO_VR,"customerUi",i.bind(this.onSetVideoVr,this)),this.mb.subscribe(y.EVENTS.VIDEO_TYPE_CHANGED,"customerUi",i.bind(this.onClearVideoType,this)),this.mb.subscribe(y.EVENTS.VR_DIRECTION_CHANGED,"customerUi",i.bind(this.setVrViewingDirection,this)),this.mb.subscribe(y.EVENTS.RECREATING_UI,"customerUi",i.bind(this.recreatingUI,this)),this.mb.subscribe(y.EVENTS.POSITION_IN_PLAYLIST_DETERMINED,"customerUi",i.bind(this.onPositionInPlaylistDetermined,this)),this.mb.subscribe(y.EVENTS.ERROR,"customerUi",i.bind(this.onErrorEvent,this)),this.mb.addDependent(y.EVENTS.PLAYBACK_READY,y.EVENTS.UI_READY),this.mb.subscribe(y.EVENTS.CHROMECAST_START_CAST,"customerUi",i.bind(this.onChromecastStartCast,this)),this.mb.subscribe(y.EVENTS.CHROMECAST_END_CAST,"customerUi",i.bind(this.onChromecastEndCast,this)),this.mb.subscribe(y.EVENTS.MARKER_DATA_AVAILABLE,"customerUi",i.bind(this.onMarkersAvailable,this)),this.mb.subscribe(y.EVENTS.AIRPLAY.AVAILABILITY_CHANGED,"customerUi",this.onAirplayAvailabilityChanged.bind(this)),this.mb.subscribe(y.EVENTS.AIRPLAY.CONNECTION_CHANGED,"customerUi",this.onAirplayConnectionChanged.bind(this)),this.mb.subscribe(y.EVENTS.AIRPLAY.SESSION_RESUMED,"customerUi",this.onAirplaySessionResumed.bind(this)),this.state.isPlaybackReadySubscribed=!0;try{var e=document.getElementsByTagName("html")[0];this.state.readDirection="rtl"===e.getAttribute("dir")?"rtl":"ltr"}catch(e){this.state.readDirection="ltr"}},subscribeBasicPlaybackEvents:function(){this.state.isSubscribed||(this.mb.subscribe(y.EVENTS.SEND_QUALITY_CHANGE,"customerUi",i.bind(this.receiveVideoQualityChangeEvent,this)),this.mb.subscribe(y.EVENTS.INITIAL_PLAY,"customerUi",i.bind(this.onInitialPlay,this)),this.mb.subscribe(y.EVENTS.VC_PLAY,"customerUi",i.bind(this.onVcPlay,this)),this.mb.subscribe(y.EVENTS.VC_PLAYED,"customerUi",i.bind(this.onVcPlayed,this)),this.mb.subscribe(y.EVENTS.VC_PLAYING,"customerUi",i.bind(this.onPlaying,this)),this.mb.subscribe(y.EVENTS.VC_PAUSED,"customerUi",i.bind(this.onPaused,this)),this.mb.subscribe(y.EVENTS.VC_PAUSE,"customerUi",i.bind(this.onPause,this)),this.mb.subscribe(y.EVENTS.PLAYED,"customerUi",i.bind(this.onPlayed,this)),this.mb.subscribe(y.EVENTS.PLAYHEAD_TIME_CHANGED,"customerUi",i.bind(this.onPlayheadTimeChanged,this)),this.mb.subscribe(y.EVENTS.SEEK,"customerUi",this.onSeek.bind(this)),this.mb.subscribe(y.EVENTS.SEEKED,"customerUi",i.bind(this.onSeeked,this)),this.mb.subscribe(y.EVENTS.BUFFERING,"customerUi",i.bind(this.onBuffering,this)),this.mb.subscribe(y.EVENTS.BUFFERED,"customerUi",i.bind(this.onBuffered,this)),this.mb.subscribe(y.EVENTS.CLOSED_CAPTIONS_INFO_AVAILABLE,"customerUi",i.bind(this.onClosedCaptionsInfoAvailable,this)),this.mb.subscribe(y.EVENTS.MULTI_AUDIO_FETCHED,"customerUi",i.bind(this.onMultiAudioFetched,this)),this.mb.subscribe(y.EVENTS.MULTI_AUDIO_CHANGED,"customerUi",i.bind(this.onMultiAudioChanged,this)),this.mb.subscribe(y.EVENTS.BITRATE_INFO_AVAILABLE,"customerUi",i.bind(this.onBitrateInfoAvailable,this)),this.mb.subscribe(y.EVENTS.CLOSED_CAPTION_CUE_CHANGED,"customerUi",i.bind(this.onClosedCaptionCueChanged,this)),this.mb.subscribe(y.EVENTS.CHANGE_CLOSED_CAPTION_LANGUAGE,"customerUi",i.bind(this.onChangeClosedCaptionLanguage,this)),this.mb.subscribe(y.EVENTS.TOGGLE_CLOSED_CAPTIONS,"customerUi",this.toggleClosedCaptionEnabled.bind(this)),this.mb.subscribe(y.EVENTS.VOLUME_CHANGED,"customerUi",i.bind(this.onVolumeChanged,this)),this.mb.subscribe(y.EVENTS.MUTE_STATE_CHANGED,"customerUi",i.bind(this.onMuteStateChanged,this)),this.mb.subscribe(y.EVENTS.PLAYBACK_SPEED_CHANGED,"customerUi",i.bind(this.onPlaybackSpeedChanged,this)),this.mb.subscribe(y.EVENTS.VC_VIDEO_ELEMENT_IN_FOCUS,"customerUi",i.bind(this.onVideoElementFocus,this)),this.mb.subscribe(y.EVENTS.REPLAY,"customerUi",i.bind(this.onReplay,this)),this.mb.subscribe(y.EVENTS.ASSET_DIMENSION,"customerUi",i.bind(this.onAssetDimensionsReceived,this)),this.mb.subscribe(y.EVENTS.HA_WILL_FAILOVER,"customerUi",i.bind(this.onHAWillFailover,this)),this.mb.subscribe(y.EVENTS.HA_FAILOVER_COMPLETE,"customerUi",i.bind(this.onHAFailoverComplete,this)),this.mb.subscribe(y.EVENTS.HA_FAILOVER_ERROR,"customerUi",i.bind(this.onHAFailoverError,this)),this.state.isPlaybackReadySubscribed||this.mb.subscribe(y.EVENTS.PLAYBACK_READY,"customerUi",i.bind(this.onPlaybackReady,this)),S.default.canRenderSkin()&&(this.mb.subscribe(y.EVENTS.ADS_PLAYED,"customerUi",i.bind(this.onAdsPlayed,this)),this.mb.subscribe(y.EVENTS.WILL_PLAY_ADS,"customerUi",i.bind(this.onWillPlayAds,this)),this.mb.subscribe(y.EVENTS.AD_POD_STARTED,"customerUi",i.bind(this.onAdPodStarted,this)),this.mb.subscribe(y.EVENTS.WILL_PLAY_SINGLE_AD,"customerUi",i.bind(this.onWillPlaySingleAd,this)),this.mb.subscribe(y.EVENTS.SINGLE_AD_PLAYED,"customerUi",i.bind(this.onSingleAdPlayed,this)),this.mb.subscribe(y.EVENTS.PLAY_NONLINEAR_AD,"customerUi",i.bind(this.onPlayNonlinearAd,this)),this.mb.subscribe(y.EVENTS.NONLINEAR_AD_PLAYED,"customerUi",i.bind(this.closeNonlinearAd,this)),this.mb.subscribe(y.EVENTS.HIDE_NONLINEAR_AD,"customerUi",i.bind(this.hideNonlinearAd,this)),this.mb.subscribe(y.EVENTS.SHOW_NONLINEAR_AD,"customerUi",i.bind(this.showNonlinearAd,this)),this.mb.subscribe(y.EVENTS.SHOW_NONLINEAR_AD_CLOSE_BUTTON,"customerUi",i.bind(this.showNonlinearAdCloseButton,this)),this.mb.subscribe(y.EVENTS.SHOW_AD_SKIP_BUTTON,"customerUi",i.bind(this.onShowAdSkipButton,this)),this.mb.subscribe(y.EVENTS.SHOW_AD_CONTROLS,"customerUi",i.bind(this.onShowAdControls,this)),this.mb.subscribe(y.EVENTS.SHOW_AD_MARQUEE,"customerUi",i.bind(this.onShowAdMarquee,this)))),this.state.isSubscribed=!0},externalPluginSubscription:function(){y.EVENTS.DISCOVERY_API&&y.EVENTS.DISCOVERY_API.RELATED_VIDEOS_FETCHED&&this.mb.subscribe(y.EVENTS.DISCOVERY_API.RELATED_VIDEOS_FETCHED,"customerUi",i.bind(this.onRelatedVideosFetched,this))},onHAWillFailover:function(){this.state.failoverInProgress=!0,this.state.pauseAnimationDisabled=!0,this.renderSkin()},onHAFailoverComplete:function(){this.state.failoverInProgress=!1,this.state.screenToShow=_.default.SCREEN.PLAYING_SCREEN,this.renderSkin()},onHAFailoverError:function(){this.state.failoverInProgress=!1,this.renderSkin()},onPlayerCreated:function(e,t,n,o){var r=this;this.externalPluginSubscription(),this.state.mainVideoContainer=b("#".concat(t)),this.state.mainVideoInnerWrapper=b("#".concat(t," .innerWrapper")),this.state.playerParam=n,this.state.persistentSettings=o,this.state.elementId=t,this.state.isMobile=S.default.isMobile(),this.state.browserSupportsTouch=S.default.browserSupportsTouch(),this.state.hideMultiAudioIcon=!!n.hideMultiAudioIcon,this.state.mainVideoContainer.addClass("oo-player-container"),this.state.mainVideoInnerWrapper.addClass("oo-player"),this.state.mainVideoInnerWrapper.attr("aria-label",_.default.ARIA_LABELS.VIDEO_PLAYER),this.state.mainVideoInnerWrapper.attr("tabindex","-1"),this.state.mainVideoInnerWrapper.children(".oo-player-skin").length||this.state.mainVideoInnerWrapper.append("<div class='oo-player-skin'></div>"),this.setInlineStyles(),n.skin&&n.skin.config?b.getJSON(n.skin.config,function(e){r.state.customSkinJSON=e,r.loadConfigData(r.state.playerParam,r.state.persistentSettings,e,r.state.skinMetaData)}):this.loadConfigData(this.state.playerParam,this.state.persistentSettings,this.state.customSkinJSON,this.state.skinMetaData),this.accessibilityControls=this.accessibilityControls||new a.default(this),this.state.screenToShow=_.default.SCREEN.INITIAL_SCREEN},isChromecastEnabled:function(e){var t=e.chromecast,n=!!S.default.getPropertyValue(t,"enable",!1),o=S.default.getPropertyValue(t,"appId",""),r="string"==typeof o&&""!==o;return n&&!y.isSSL?(console.warn("Casting is enabled but impossible for http hosted pages.Serve the page through https for casting"),!1):r&&n},onChromecastStartCast:function(e,t){y.log("Chromecast Skin:",e,t),this.state.pauseAnimationDisabled=!0,this.renderSkin({cast:{connected:!0,device:t}})},onChromecastEndCast:function(e){y.log("Chromecast Skin:",e),this.state.pauseAnimationDisabled=!1,this.renderSkin({cast:{connected:!1,device:""}})},onAirplayAvailabilityChanged:function(e,t){this.state.airplay.available=t,this.renderSkin()},onAirplayConnectionChanged:function(e,t){var n=_.default.AIRPLAY_STATE,o=n.CONNECTED,r=n.DISCONNECTED;this.state.airplay.statusIcon=t?o:r,this.renderSkin()},onAirplaySessionResumed:function(){this.state.airplay.statusIcon=_.default.AIRPLAY_STATE.CONNECTED,this.renderSkin(),this.onAirplayButtonClicked()},onAirplayButtonClicked:function(){this.mb.publish(y.EVENTS.AIRPLAY.BUTTON_CLICKED)},setInlineStyles:function(){this.videoVr&&this.state.isMobile&&this.state.mainVideoInnerWrapper.attr("style","touch-action: none")},onSetVideoVr:function(e,t){this.videoVr=!0,this.setInlineStyles(),t&&(this.videoVrSource=t.source||null)},handleVrMobileOrientation:function(e){if(!this.vrMobileOrientationChecked||this.checkDeviceOrientation){var t=e.beta,n=e.gamma,o=this.state.vrViewingDirection.yaw,r=this.state.vrViewingDirection.pitch,a=t,i=S.default.getOrientationType();if(!i||"landscape-secondary"!==i&&"landscape-primary"!==i||(a=n),null!=a&&S.default.ensureNumber(a,0)){var l=[o,0,r+=-90+Math.abs(Math.round(a))];this.setVrViewingDirection(e,o,0,r),this.onTouchMove(l)}this.checkDeviceOrientation=!1}},onClearVideoType:function(){this.videoVr=!1,this.videoVrSource=null,this.vrMobileOrientationChecked=!1},setControllerVrViewingDirection:function(){var e=[this.state.vrViewingDirection.yaw,this.state.vrViewingDirection.roll,this.state.vrViewingDirection.pitch];this.onTouchMove(e)},onVcVideoElementCreated:function(e,t){var n=t.videoElement,o=this.findMainVideoElement(n);o&&o.addEventListener("loadedmetadata",this.metaDataLoaded.bind(this)),S.default.isIE10()&&o.attr("controls","controls"),t.videoId===y.VIDEO.MAIN&&(this.state.mainVideoElementContainer=n&&n[0]||n,this.state.mainVideoElement=o,this.enableFullScreen(),this.updateAspectRatio()),this.videoVr&&window.DeviceOrientationEvent&&window.addEventListener("deviceorientation",this.handleVrMobileOrientation,!1)},metaDataLoaded:function(){this.enableIosFullScreen()},onPlayerDestroy:function(){var e=this.state.elementId,t=document.querySelector("#".concat(e," .oo-player-skin"));t&&g.default.unmountComponentAtNode(t),this.stopBufferingTimer(),this.cleanUpEventListeners(),document.removeEventListener("deviceorientation",this.handleVrMobileOrientation),this.mb=null},cleanUpEventListeners:function(){this.accessibilityControls.cleanUp()},onSetEmbedCode:function(e,t){this.state.initialPlayHasOccurred&&this.state.assetId!==t&&(this.state.isPlayingAd=!1,this.state.screenToShow=_.default.SCREEN.LOADING_SCREEN,this.renderSkin())},onEmbedCodeChangedAfterOoyalaAd:function(e,t,n){n&&(this.state.playerParam=(0,E.default)(this.state.playerParam,n)),this.state.isOoyalaAds=!1,this.state.afterOoyalaAd=!0},onEmbedCodeChanged:function(e,t,n){this.state.videoQualityOptions.availableBitrates=null,this.state.videoQualityOptions.selectedBitrate=null,this.state.closedCaptionOptions.availableLanguages=null,this.state.closedCaptionOptions.cueText=null,this.state.closedCaptionsInfoCache={},this.state.discoveryData=null,this.state.thumbnails=null,this.state.afterOoyalaAd=!1,this.state.currentVideoId=null,this.state.multiAudio=null,this.resetUpNextInfo(!0),n&&!0===n.ooyalaAds?this.state.isOoyalaAds=!0:this.state.isOoyalaAds=!1,this.state.assetId=t,n&&(this.state.playerParam=(0,E.default)(this.state.playerParam,n)),this.subscribeBasicPlaybackEvents(),this.skin&&this.skin.updatePlayhead(0,0,0,0).catch(function(){y.log("onEmbedCodeChanged: Could not set new state for skin")})},onAuthorizationFetched:function(e,t){this.state.isLiveStream=t.streams[0].is_live_stream||"LiveStream"===this.state.contentTree.content_type},onContentTreeFetched:function(e,t){this.state.contentTree=t,this.state.playerState=_.default.STATE.START;var n=S.default.ensureNumber(t.duration,0)/1e3;this.skin&&this.skin.updatePlayhead(null,n).catch(function(){y.log("onContentTreeFetched: Could not set new state for skin")}),this.state.audioOnly&&t.promo_image&&this.state.config.audio.displayTitleOnVideoCanvas&&this.state.mainVideoContainer.height(_.default.UI.AUDIO_ONLY_WITH_COVER_HEIGHT)},onMarkersAvailable:function(e,t){this.state.markers.list=t.list,this.renderSkin()},onSkinMetaDataFetched:function(e,t){this.state.skinMetaData=t,this.loadConfigData(this.state.playerParam,this.state.persistentSettings,this.state.customSkinJSON,this.state.skinMetaData)},onMetaDataFetched:function(e,t){this.state.metadata=t},onAttributesFetched:function(e,t){this.state.attributes=t,this.trySetAnamorphicFixState(!0)},onThumbnailsFetched:function(e,t){this.state.thumbnails=t},onAssetChanged:function(e,t){this.state.videoQualityOptions.availableBitrates=null,this.state.closedCaptionOptions.availableLanguages=null,this.state.closedCaptionsInfoCache={},this.state.discoveryData=null,this.subscribeBasicPlaybackEvents(),this.resetUpNextInfo(!0),this.state.isOoyalaAds=!1,this.state.isLiveStream=t.content.streams[0].is_live_stream||"LiveStream"===this.state.contentTree.content_type;var n={};n.title=t.content.title,n.description=t.content.description,n.duration=t.content.duration,n.promo_image=t.content.posterImages[0].url,this.state.contentTree=n,this.state.playerState=_.default.STATE.START,this.skin&&this.skin.updatePlayhead(0,n.duration,0,0)},onAssetUpdated:function(e,t){this.resetUpNextInfo(!0),this.state.isLiveStream=t.content.streams[0].is_live_stream||"LiveStream"===this.state.contentTree.content_type,this.state.contentTree.title=t.content.title,this.state.contentTree.description=t.content.description,this.state.contentTree.duration=t.content.duration,this.state.contentTree.promo_image=t.content.posterImages[0].url,this.renderSkin({contentTree:this.state.contentTree})},isPlaying:function(){return this.state.currentVideoId&&this.state.playerState!==_.default.STATE.START&&this.state.playerState!==_.default.STATE.ERROR},onVolumeChanged:function(e,t,n){n&&n!==this.state.currentVideoId&&this.isPlaying()||(this.state.volumeState.volume=t<=0?0:t,this.renderSkin())},onMuteStateChanged:function(e,t,n,o){n&&n!==this.state.currentVideoId&&this.isPlaying()||((this.state.volumeState.muted=t)&&o&&(this.state.volumeState.mutingForAutoplay=!0),t||(this.state.volumeState.mutingForAutoplay=!1),this.renderSkin())},onPlaybackSpeedChanged:function(e,t,n){var o=S.default.sanitizePlaybackSpeed(n,!0),r=S.default.getPropertyValue(this.skin,"props.skinConfig.playbackSpeed.options");r&&r.indexOf(o)<0&&r.push(o),this.state.playbackSpeedOptions.currentSpeed=o,this.renderSkin()},resetUpNextInfo:function(e){e&&(this.state.upNextInfo.upNextData=null),this.state.upNextInfo.countDownFinished=!1,this.state.upNextInfo.countDownCancelled=!1},onPlayheadTimeChanged:function(e,t,n,o,r,a){if(a===y.VIDEO.MAIN&&(this.state.mainVideoPlayhead=t,this.state.mainVideoDuration=n,this.state.mainVideoBuffered=o),(a===y.VIDEO.ADS||this.state.isPlayingAd)&&(this.state.adVideoDuration=n,this.state.adVideoPlayhead=t,this.state.adRemainingTime=this.getAdRemainingTime()),this.state.duration=n,this.state.buffering&&this.setBufferingState(!1),!this.state.autoPauseDisabled&&S.default.isChrome()&&this.state.mainVideoMediaType===_.default.MEDIA_TYPE.FLASH){var i=b("#".concat(this.state.elementId," .oo-player-skin"));0===t&&this.state.playerState===_.default.STATE.PLAYING?i.addClass("oo-z-index-auto"):(i.removeClass("oo-z-index-auto"),this.state.autoPauseDisabled=!0)}this.state.screenToShow!==_.default.SCREEN.AD_SCREEN&&(this.skin.props.skinConfig.upNext.showUpNext?!S.default.canRenderSkin()||S.default.isIos()&&this.state.fullscreen||this.showUpNextScreenWhenReady(t,n):this.state.playerState===_.default.STATE.PLAYING&&this.state.screenToShow!==_.default.SCREEN.MULTI_AUDIO_SCREEN?this.state.screenToShow=_.default.SCREEN.PLAYING_SCREEN:this.state.playerState===_.default.STATE.PAUSE&&this.state.screenToShow!==_.default.SCREEN.CLOSED_CAPTION_SCREEN&&(this.state.screenToShow=_.default.SCREEN.PAUSE_SCREEN)),this.state.seeking?this.state.queuedPlayheadUpdate=[t,n,o]:this.skin.updatePlayhead(t,n,o,this.state.adVideoPlayhead)},showUpNextScreenWhenReady:function(e,t){var n=this.skin.props.skinConfig.upNext.timeToShow;if(n<1&&(n=(1-n)*t),this.state.upNextInfo.timeToShow=n,0!==this.state.mainVideoPlayhead&&0!==e&&0!==t&&t-e<=n&&!this.state.upNextInfo.countDownCancelled&&!0!==this.state.isPlayingAd&&null!==this.state.upNextInfo.upNextData&&(this.state.playerState===_.default.STATE.PLAYING||this.state.playerState===_.default.STATE.PAUSE)){if(!this.state.upNextInfo.showing){var o=S.default.getPropertyValue(this.state.upNextInfo,"upNextData.embed_code");this.sendDiscoveryDisplayEventRelatedVideos("endScreen",o),this.state.discoverySource=_.default.SCREEN.END_SCREEN;var r={playheadPercent:e/t};this.sendDiscoveryDisplayEvent(1,1,_.default.UI_TAG.UP_NEXT,this.state.upNextInfo.upNextData,r)}this.state.upNextInfo.showing=!0}else this.state.upNextInfo.showing=!1},onInitialPlay:function(){this.state.isInitialPlay=!0,this.state.initialPlayHasOccurred=!0,this.startHideControlBarTimer(),this.videoVr&&(this.vrMobileOrientationChecked=!0)},onVcPlay:function(e,t){this.state.cast.isReceiver&&this.hideControlBar(),this.state.currentVideoId=t,this.state.adWasPaused&&this.state.currentAdsInfo&&this.state.currentAdsInfo.currentAdItem&&this.state.currentAdsInfo.currentAdItem.ssai&&(this.state.adPauseDuration=Date.now()-this.state.adPausedTime,this.state.adEndTime=this.state.adEndTime+this.state.adPauseDuration,this.state.adWasPaused=!1,this.state.adPauseDuration=0)},onPlaying:function(e,t){t===y.VIDEO.MAIN&&(this.state.mainVideoMediaType||(this.state.mainVideoElement=this.findMainVideoElement(this.state.mainVideoElement)),this.state.pauseAnimationDisabled=this.state.cast.connected,this.state.screenToShow=_.default.SCREEN.PLAYING_SCREEN,this.state.playerState=_.default.STATE.PLAYING,this.setClosedCaptionsLanguage(),this.removeBlur(),this.state.isInitialPlay=!1,this.renderSkin()),(t===y.VIDEO.ADS||this.state.isPlayingAd)&&(this.state.adPauseAnimationDisabled=!0,this.state.pluginsElement.addClass("oo-showing"),this.state.pluginsClickElement.removeClass("oo-showing"),null!==this.state.currentAdsInfo.currentAdItem&&(this.state.playerState=_.default.STATE.PLAYING,this.state.screenToShow=_.default.SCREEN.AD_SCREEN,this.renderSkin()))},onPause:function(e,t,n){this.state.failoverInProgress||(this.state.cast.isReceiver&&this.showControlBar(),n===_.default.PAUSE_REASON.TRANSITION&&(this.state.pauseAnimationDisabled=!0,this.endSeeking()),this.state.isPlayingAd&&this.state.pluginsClickElement.addClass("oo-showing"))},onPaused:function(e,t){this.state.failoverInProgress||t!==this.focusedElement||this.state.screenToShow===_.default.SCREEN.END_SCREEN||(t===y.VIDEO.MAIN&&this.state.screenToShow!==_.default.SCREEN.AD_SCREEN&&this.state.screenToShow!==_.default.SCREEN.LOADING_SCREEN?(this.state.duration-this.state.mainVideoPlayhead<.01&&(this.state.pauseAnimationDisabled=!0),!this.state.pauseAnimationDisabled&&this.state.metadata&&this.state.metadata.modules["discovery-ui"]&&this.state.discoveryData&&"discovery"===this.skin.props.skinConfig.pauseScreen.screenToShowOnPause&&!(!S.default.canRenderSkin()||S.default.isIos()&&this.state.fullscreen)?(y.log("Should display DISCOVERY_SCREEN on pause"),this.sendDiscoveryDisplayEventRelatedVideos("pauseScreen"),this.state.discoverySource=_.default.SCREEN.PAUSE_SCREEN,this.state.screenToShow=_.default.SCREEN.DISCOVERY_SCREEN,this.addBlur()):"social"===this.skin.props.skinConfig.pauseScreen.screenToShowOnPause||(this.state.screenToShow=_.default.SCREEN.PAUSE_SCREEN),S.default.canRenderSkin()||(this.state.screenToShow=_.default.SCREEN.PAUSE_SCREEN),this.state.playerState=_.default.STATE.PAUSE,this.renderSkin()):(t===y.VIDEO.ADS||this.state.isPlayingAd)&&(this.state.config.adScreen.showControlBar=!0,this.state.adPauseAnimationDisabled=!1,this.state.currentAdsInfo&&this.state.currentAdsInfo.currentAdItem&&this.state.currentAdsInfo.currentAdItem.ssai&&(this.state.adWasPaused=!0,this.state.adPausedTime=Date.now()),this.state.playerState=_.default.STATE.PAUSE,this.renderSkin()),this.pausedCallback&&(this.pausedCallback(),this.pausedCallback=null))},onPlayed:function(){var e=this.state.mainVideoDuration||this.state.contentTree.duration/1e3;if(this.state.duration=e,this.state.playerState=_.default.STATE.END,this.state.upNextInfo.delayedSetEmbedCodeEvent){var t=this.state.upNextInfo.delayedContentData;this.state.screenToShow=_.default.SCREEN.LOADING_SCREEN,t.clickedVideo.embed_code?this.mb.publish(y.EVENTS.SET_EMBED_CODE,t.clickedVideo.embed_code,this.state.playerParam):t.clickedVideo.asset&&this.mb.publish(y.EVENTS.SET_ASSET,t.clickedVideo.asset,this.state.playerParam),this.mb.publish(y.EVENTS.DISCOVERY_API.SEND_CLICK_EVENT,t),this.state.upNextInfo.showing=!1,this.state.upNextInfo.delayedSetEmbedCodeEvent=!1,this.state.upNextInfo.delayedContentData=null}else this.state.metadata&&this.state.metadata.modules["discovery-ui"]&&this.state.discoveryData&&"discovery"===this.skin.props.skinConfig.endScreen.screenToShowOnEnd&&!(!S.default.canRenderSkin()||S.default.isIos()&&this.state.fullscreen)?(y.log("Should display DISCOVERY_SCREEN on end"),this.sendDiscoveryDisplayEventRelatedVideos("endScreen"),this.state.screenToShow=_.default.SCREEN.DISCOVERY_SCREEN,this.renderSkin()):"share"===this.skin.props.skinConfig.endScreen.screenToShowOnEnd?this.state.screenToShow=_.default.SCREEN.SHARE_SCREEN:(this.state.screenToShow=_.default.SCREEN.END_SCREEN,this.renderSkin(),this.mb.publish(y.EVENTS.END_SCREEN_SHOWN));S.default.canRenderSkin()||(this.state.screenToShow=_.default.SCREEN.START_SCREEN),this.setBufferingState(!1),this.skin.updatePlayhead(e,e,e)},onVcPlayed:function(e,t){this.onBuffered(),t===y.VIDEO.MAIN&&(this.mb.publish(y.EVENTS.SET_CLOSED_CAPTIONS_LANGUAGE,"",{mode:"disabled",isFullScreen:this.state.fullscreen}),this.state.mainVideoDuration=this.state.duration)},onTouchMove:function(e){this.videoVr&&this.mb.publish(y.EVENTS.TOUCH_MOVE,this.focusedElement,e)},onEndMove:function(){this.videoVr&&this.mb.publish(y.EVENTS.END_VR_MOVE,this.focusedElement)},checkVrDirection:function(e){this.videoVr&&this.mb.publish(y.EVENTS.CHECK_VR_DIRECTION,this.focusedElement,e)},setVrViewingDirection:function(e,t,n,o){this.state.vrViewingDirection={yaw:t,roll:n,pitch:o}},recreatingUI:function(){b(".oo-player-skin").length||this.state.mainVideoInnerWrapper.append("<div class='oo-player-skin'></div>"),this.loadConfigData(this.state.playerParam,this.state.persistentSettings,this.state.customSkinJSON,this.state.skinMetaData)},onMultiAudioFetched:function(e,t){if(!this.state.hideMultiAudioIcon){if(void 0!==t){var n=null;this.containsMultiAudio(t)&&(n={tracks:t.tracks}),this.state.multiAudio=n,this.languageList=t.languageList||this.languageList}this.renderSkin()}},onMultiAudioChanged:function(e,t){this.state.hideMultiAudioIcon||(this.containsMultiAudio(t)?this.state.multiAudio=t:this.state.multiAudio=null,this.renderSkin())},containsMultiAudio:function(e){return!!(e&&e.tracks&&1<e.tracks.length)},setCurrentAudio:function(e){var t=JSON.stringify(e);y.setItem(y.CONSTANTS.SELECTED_AUDIO,t),this.mb.publish(y.EVENTS.SET_CURRENT_AUDIO,this.state.currentVideoId,e)},onSeek:function(e,t){var n=this;this.state.cast.isReceiver&&this.skin.updatePlayhead(t).then(function(){n.state.playerState===_.default.STATE.PLAYING&&n.showControlBar()})},onSeeked:function(){var e,t=this;this.state.seeking=!1,this.state.queuedPlayheadUpdate&&(y.log("popping queued update"),(e=this.skin).updatePlayhead.apply(e,d(this.state.queuedPlayheadUpdate)).then(function(){t.state.queuedPlayheadUpdate=null}).catch(function(){y.log("onSeeked: Could not set new state for skin")})),this.state.cast.isReceiver&&this.state.playerState===_.default.STATE.PLAYING&&this.startHideControlBarTimer(),S.default.isIos()&&this.state.screenToShow===_.default.SCREEN.END_SCREEN&&this.state.fullscreen&&(this.state.pauseAnimationDisabled=!0,this.state.screenToShow=_.default.SCREEN.PAUSE_SCREEN,this.state.playerState=_.default.STATE.PAUSE)},onPlaybackReady:function(e,t,n){if(!this.state.failoverInProgress){var o=n||{};this.state.afterOoyalaAd?this.state.screenToShow=_.default.SCREEN.LOADING_SCREEN:o.willAutoplay?this.state.initialPlayHasOccurred?this.state.screenToShow=_.default.SCREEN.LOADING_SCREEN:this.state.screenToShow=_.default.SCREEN.START_LOADING_SCREEN:this.state.screenToShow=_.default.SCREEN.START_SCREEN,this.renderSkin({contentTree:this.state.contentTree})}},onBuffering:function(){!1===this.state.isInitialPlay&&this.state.screenToShow===_.default.SCREEN.START_SCREEN?this.setBufferingState(!1):this.startBufferingTimer()},onBuffered:function(){this.setBufferingState(!1)},startBufferingTimer:function(){var e=this;this.stopBufferingTimer();var t=S.default.getPropertyValue(this.skin.props.skinConfig,"general.bufferingSpinnerDelay");t=S.default.constrainToRange(t,0,_.default.UI.MAX_BUFFERING_SPINNER_DELAY),this.state.bufferingTimer=setTimeout(function(){e.setBufferingState(!0)},t)},stopBufferingTimer:function(){clearTimeout(this.state.bufferingTimer),this.state.bufferingTimer=null},setBufferingState:function(e){var t=!!e;t||this.stopBufferingTimer(),this.state.buffering!==t&&(this.state.buffering=t,this.renderSkin())},onReplay:function(){this.resetUpNextInfo(!1)},onAssetDimensionsReceived:function(e,t){t.videoId!==y.VIDEO.MAIN||"auto"!==this.skin.props.skinConfig.responsive.aspectRatio&&this.skin.props.skinConfig.responsive.aspectRatio||(this.state.mainVideoAspectRatio=this.calculateAspectRatio(t.width,t.height),this.state.currentVideoId===y.VIDEO.MAIN&&this.setAspectRatio())},onAdsPlayed:function(e){y.log("onAdsPlayed is called from event = ".concat(e)),this.state.playerState===_.default.STATE.END?this.state.screenToShow=_.default.SCREEN.END_SCREEN:this.state.screenToShow=_.default.SCREEN.PLAYING_SCREEN,this.state.duration=this.state.contentTree.duration/1e3,this.state.isPlayingAd=!1,this.state.pluginsElement.removeClass("oo-showing"),this.state.pluginsClickElement.removeClass("oo-showing"),this.trySetAnamorphicFixState(!0),this.setBufferingState(!1),this.videoVr&&this.state.isMobile&&this.setControllerVrViewingDirection(),this.skin.updatePlayhead(this.state.mainVideoPlayhead,this.state.mainVideoDuration,this.state.mainVideoBuffered).catch(function(){y.log("onAdsPlayed: Could not set new state for skin")})},onWillPlayAds:function(e){y.log("onWillPlayAds is called from event = ".concat(e)),this.state.isPlayingAd=!0,this.trySetAnamorphicFixState(!1),this.state.pluginsElement.addClass("oo-showing"),this.state.pluginsElement.css({height:"",width:""}),this.cancelTimer(),this.hideControlBar(),0<this.state.mainVideoPlayhead&&(this.isNewVrVideo=!1),this.state.adPausedTime=0,this.videoVr&&this.state.isMobile&&this.checkVrDirection(!0)},onAdPodStarted:function(e,t){y.log("onAdPodStarted is called from event = ".concat(e," with ").concat(t," ads")),this.state.currentAdsInfo.numberOfAds=t,this.renderSkin()},onWillPlaySingleAd:function(e,t){y.log("onWillPlaySingleAd is called with adItem = ".concat(t)),null!==t&&(this.state.adVideoDuration=1e3*t.duration,this.state.screenToShow=_.default.SCREEN.AD_SCREEN,this.state.isPlayingAd=!0,this.state.currentAdsInfo.currentAdItem=t,this.state.playerState=_.default.STATE.PLAYING,t.isLive?this.state.adStartTime=Date.now():this.state.adStartTime=0,this.state.adEndTime=this.state.adStartTime+this.state.adVideoDuration,this.skin.state.currentPlayhead=0,this.removeBlur(),this.renderSkin())},onSingleAdPlayed:function(){y.log("onSingleAdPlayed is called"),this.state.isPlayingAd=!1,this.state.adVideoDuration=0,this.state.currentAdsInfo.skipAdButtonEnabled=!1,this.state.screenToShow=_.default.SCREEN.PLAYING_SCREEN,this.renderSkin()},onShowAdSkipButton:function(){this.state.currentAdsInfo.skipAdButtonEnabled=!0,this.renderSkin()},onShowAdControls:function(e,t,n){this.state.showAdControls=t,this.state.forceControlBarVisible=!1,t&&this.state.config.adScreen.showControlBar?(this.state.pluginsElement.removeClass("oo-full"),this.state.pluginsClickElement.removeClass("oo-full"),"boolean"==typeof n&&(this.state.forceControlBarVisible=!n)):(this.state.pluginsElement.addClass("oo-full"),this.state.pluginsClickElement.addClass("oo-full")),this.renderSkin()},onShowAdMarquee:function(e,t){this.state.showAdMarquee=t,this.renderSkin()},onSkipAdClicked:function(){var e=this;y.log("onSkipAdClicked is called"),this.skin.updatePlayhead(this.state.mainVideoPlayhead,this.state.mainVideoDuration,this.state.mainVideoBuffered).then(function(){e.state.currentAdsInfo.skipAdButtonEnabled=!1,e.mb.publish(y.EVENTS.SKIP_AD)}).catch(function(){y.log("onSkipAdClicked: Could not set new state for skin")})},onAdsClicked:function(e){y.log("on ads clicked is called",e),this.mb.publish(y.EVENTS.ADS_CLICKED,{source:e})},publishOverlayRenderingEvent:function(e){this.mb.publish(y.EVENTS.OVERLAY_RENDERING,{marginHeight:e})},onPlayNonlinearAd:function(e,t){t.url&&(this.state.adOverlayUrl=t.url,this.state.showAdOverlay=!0),this.state.pluginsElement.addClass("oo-overlay-showing");var n={};if(t.ad.height&&-1!==t.ad.height){var o=t.ad.paddingHeight?t.ad.paddingHeight:0;n.height="".concat(t.ad.height+o,"px"),n.top="auto"}else n.top=0,n.bottom=0;if(t.ad.width&&-1!==t.ad.width){var r=t.ad.paddingWidth?t.ad.paddingWidth:0;n.width="".concat(t.ad.width+r,"px"),n.left="50%",n.transform="translateX(-50%)"}this.state.pluginsElement.css(n),this.renderSkin()},onAdOverlayLoaded:function(){this.mb.publish(y.EVENTS.NONLINEAR_AD_DISPLAYED)},onVideoElementFocus:function(e,t){this.focusedElement!==t&&this.setBufferingState(!1),this.focusedElement=t,this.setClosedCaptionsInfo(t),t===y.VIDEO.MAIN&&(this.state.pluginsElement.removeClass("oo-showing"),this.state.pluginsClickElement.removeClass("oo-showing")),this.state.currentVideoId=t},closeNonlinearAd:function(){this.state.adOverlayUrl=null,this.state.showAdOverlay=!1,this.state.showAdOverlayCloseButton=!1,this.state.pluginsElement.removeClass("oo-overlay-showing"),this.state.pluginsElement.css({top:"",left:"",right:"",bottom:"",height:"0",width:"0",transform:""}),this.renderSkin()},hideNonlinearAd:function(){this.state.showAdOverlay=!1,this.state.pluginsElement.removeClass("oo-overlay-showing"),this.renderSkin()},showNonlinearAd:function(){this.state.showAdOverlay=!0,this.state.pluginsElement.addClass("oo-overlay-showing"),this.renderSkin()},showNonlinearAdCloseButton:function(){this.state.showAdOverlayCloseButton=!0,this.renderSkin()},getAdRemainingTime:function(){var e=0,t=!!this.state.currentAdsInfo.currentAdItem&&this.state.currentAdsInfo.currentAdItem.isLive,n=!!this.state.currentAdsInfo.currentAdItem&&this.state.currentAdsInfo.currentAdItem.ssai;if(t){var o=this.state,r=o.adStartTime,a=o.adVideoDuration;e=parseInt((r+a-Date.now())/1e3,0),n&&(e=this.state.playerState!==_.default.STATE.PAUSE?(this.state.adEndTime-Date.now())/1e3:(this.state.adEndTime-this.state.adPausedTime)/1e3)}else e=parseInt(this.state.adVideoDuration-this.state.adVideoPlayhead,0);return e},loadConfigData:function(e,t,n,o){var r=S.default.sanitizeConfigData(t),a=S.default.sanitizeConfigData(S.default.getPropertyValue(e,"skin.inline")),i=S.default.sanitizeConfigData(n),l=S.default.sanitizeConfigData(o),s=e.buttonMerge?e.buttonMerge:"replace",u=(0,E.default)(O.default,l,{arrayMerge:S.default.arrayDeepMerge.bind(S.default),arrayUnionBy:"name",buttonArrayFusion:"prepend"});this.state.config=E.default.all([u,i,a,r],{arrayMerge:S.default.arrayDeepMerge.bind(S.default),arrayUnionBy:"name",buttonArrayFusion:s}),this.state.closedCaptionOptions=this.state.config.closedCaptionOptions;var c=S.default.getPropertyValue(this.state.config,"shareScreen.shareContent");if(c){for(var f=0;f<c.length;f+=1)"url"===c[f]&&c.splice(f,1);this.state.config.shareScreen.shareContent=c}var d=this.state,p=d.config,h=d.playerParam,m=S.default.getLanguageToUse(p,h);this.mb.publish(y.EVENTS.SKIN_UI_LANGUAGE,m),this.state.config.localization.availableLanguageFile&&this.state.config.localization.availableLanguageFile.forEach(function(t){t.language===m&&t.languageFile&&b.getJSON(t.languageFile,function(e){A.languageFiles[t.language]=e})}),this.state.config.upNext.timeToShow=S.default.convertStringToNumber(this.state.config.upNext.timeToShow),this.state.config.discoveryScreen.countDownTime=S.default.convertStringToNumber(this.state.config.discoveryScreen.countDownTime),this.state.audioOnly=e.playerType===y.CONSTANTS.PLAYER_TYPE.AUDIO,this.state.cast.showButton=this.isChromecastEnabled(e),this.state.cast.isReceiver=e.chromecast&&e.chromecast.isReceiver,this.state.isAirplayAllowed=S.default.getPropertyValue(e,"airplay",!0),this.skin=g.default.render(v.default.createElement(T.default,{skinConfig:this.state.config,localizableStrings:A.languageFiles,language:m,controller:this,closedCaptionOptions:this.state.closedCaptionOptions,pauseAnimationDisabled:this.state.pauseAnimationDisabled}),document.querySelector("#".concat(this.state.elementId," .oo-player-skin"))),this.state.configLoaded=!0,this.state.audioOnly?(this.state.mainVideoInnerWrapper.removeClass("oo-video-player"),this.state.mainVideoContainer.height()||this.state.mainVideoContainer.height(_.default.UI.AUDIO_ONLY_DEFAULT_HEIGHT)):this.state.mainVideoInnerWrapper.addClass("oo-video-player"),this.mb.publish(y.EVENTS.SKIN_CONFIG_LOADED,this.state.config),this.renderSkin(),this.createPluginElements(),"object"===C(this.state.config.closedCaptionOptions)&&void 0!==this.state.config.closedCaptionOptions.language&&this.setCaptionDirection(this.state.config.closedCaptionOptions.language)},createPluginElements:function(){var e=this;this.state.config.adScreen=this.state.config.adScreen||{},this.state.playerParam&&this.state.playerParam.playerControlsOverAds&&this.state.config&&(this.state.config.adScreen.showControlBar=!0);var t="";this.state.config&&this.state.config.adScreen&&this.state.config.adScreen.showControlBar||(t=" oo-full"),b("#".concat(this.state.elementId," .oo-player-skin")).append("<div class='oo-player-skin-plugins".concat(t,"'></div><div class='oo-player-skin-plugins-click-layer").concat(t,"'></div>")),this.state.pluginsElement=b("#".concat(this.state.elementId," .oo-player-skin-plugins")),this.state.pluginsClickElement=b("#".concat(this.state.elementId," .oo-player-skin-plugins-click-layer")),this.state.playerParam&&this.state.playerParam.playerControlsOverAds&&(this.state.pluginsElement.css("bottom",0),this.state.pluginsClickElement.css("bottom",0)),this.state.pluginsElement.mouseover(function(){e.showControlBar(),e.renderSkin(),e.startHideControlBarTimer()}),this.state.pluginsElement.mouseout(function(){e.hideControlBar()}),y.isAndroid||y.isIos?this.state.pluginsClickElement.on("touchend touchcancel",this.resumePlaybackAfterClickthrough.bind(this)):this.state.pluginsClickElement.click(this.resumePlaybackAfterClickthrough.bind(this)),this.state.pluginsClickElement.mouseover(function(){e.showControlBar(),e.renderSkin(),e.startHideControlBarTimer()}),this.state.pluginsClickElement.mouseout(function(){e.hideControlBar()}),this.mb.publish(y.EVENTS.UI_READY,{videoWrapperClass:"innerWrapper",pluginsClass:"oo-player-skin-plugins"})},resumePlaybackAfterClickthrough:function(){this.state.pluginsClickElement.removeClass("oo-showing"),this.mb.publish(y.EVENTS.PLAY)},onBitrateInfoAvailable:function(e,t){t&&t.bitrates&&(S.default.getPropertyValue(this.skin,"props.skinConfig.controlBar.qualitySelection.format")===_.default.QUALITY_SELECTION.FORMAT.BITRATE&&(t.bitrates=S.default.sortQualitiesByBitrate(t.bitrates)),this.state.videoQualityOptions.availableBitrates=t.bitrates,this.renderSkin({videoQualityOptions:{availableBitrates:t.bitrates,selectedBitrate:this.state.videoQualityOptions.selectedBitrate}}))},onClosedCaptionsInfoAvailable:function(e,t){t&&t.videoId&&t.languages&&(this.state.closedCaptionsInfoCache[t.videoId]=t,this.setClosedCaptionsInfo(t.videoId))},onClosedCaptionCueChanged:function(e,t){t&&0<t.length?this.state.closedCaptionOptions.cueText=t:this.state.closedCaptionOptions.cueText=null,this.renderSkin()},onRelatedVideosFetched:function(e,t){if(y.log("onRelatedVideosFetched is called"),t.videos&&t.videos.length){if(this.state.discoveryData={relatedVideos:t.videos},t.upNextVideo)this.state.upNextInfo.upNextData=t.upNextVideo;else{var n=f(t.videos,1);this.state.upNextInfo.upNextData=n[0]}this.renderSkin()}},enableFullScreen:function(){o.default.enabled&&(this.state.isFullScreenSupported=!0,document.addEventListener(o.default.raw.fullscreenchange,this.onFullscreenChanged.bind(this)))},enableIosFullScreen:function(){this.state.isFullScreenSupported||this.state.mainVideoElement.webkitSupportsFullscreen&&(this.state.isVideoFullScreenSupported=!0,this.state.mainVideoElement.addEventListener("webkitbeginfullscreen",this.webkitBeginFullscreen.bind(this)),this.state.mainVideoElement.addEventListener("webkitendfullscreen",this.webkitEndFullscreen.bind(this)))},onFullscreenChanged:function(){this.state.isFullScreenSupported?this.state.fullscreen=o.default.isFullscreen:this.toggleFullscreen(),this.videoVr&&this.state.isMobile&&this.isVrStereo&&!this.state.fullscreen&&this.toggleStereoVr(),this.state.fullscreen||this.closeOtherPopovers(),this.renderSkin()},closeOtherPopovers:function(n){var o=this;Object.keys(_.default.MENU_OPTIONS).forEach(function(e){var t=_.default.MENU_OPTIONS[e];t!==n&&o.closePopover(t)})},closePopover:function(e,t){var n=t||{},o=this.state[e],r=this.toggleButtons[e];o&&o.showPopover&&(n.restoreToggleButtonFocus&&r&&r.wasTriggeredWithKeyboard()&&r.focus(),r&&r.wasTriggeredWithKeyboard(!1),this.togglePopover(e))},toggleFullscreen:function(){this.state.isFullScreenSupported?o.default.toggle(this.state.mainVideoInnerWrapper.get(0)):this.state.isVideoFullScreenSupported&&!this.videoVr?this.toggleIOSNativeFullscreen():(this.videoVr&&this.mb.publish(y.EVENTS.TOGGLE_FULLSCREEN_VR,this.focusedElement),this.togglePseudoFullscreenMode()),this.state.fullscreen=!this.state.fullscreen,this.renderSkin()},toggleIOSNativeFullscreen:function(){this.state.fullscreen?this.state.mainVideoElement.webkitExitFullscreen():(this.setClosedCaptionsLanguage({isGoingFullScreen:!0}),this.state.mainVideoElement.webkitEnterFullscreen())},togglePseudoFullscreenMode:function(){this.state.isFullWindow?this.exitFullWindow():this.enterFullWindow()},enterFullWindow:function(){this.state.isFullWindow=!0,this.state.fullscreen=!0,document.addEventListener("keydown",this.exitFullWindowOnEscKey.bind(this)),document.documentElement.style.overflow="hidden",this.state.mainVideoInnerWrapper.addClass("oo-fullscreen")},exitFullWindow:function(){this.state.isFullWindow=!1,this.state.fullscreen=!1,document.removeEventListener("keydown",this.exitFullWindowOnEscKey),document.documentElement.style.overflow="visible",this.state.mainVideoInnerWrapper.removeClass("oo-fullscreen")},webkitBeginFullscreen:function(){this.state.fullscreen=!0},webkitEndFullscreen:function(){this.state.fullscreen=!1,(this.skin.props.skinConfig.upNext.showUpNext||this.skin.props.skinConfig.discoveryScreen.showCountDownTimerOnEndScreen)&&this.state.playerState===_.default.STATE.END&&this.state.metadata&&this.state.metadata.modules["discovery-ui"]&&this.state.discoveryData&&(this.state.forceCountDownTimerOnEndScreen=!0,this.sendDiscoveryDisplayEventRelatedVideos("endScreen"),this.state.discoverySource=_.default.SCREEN.END_SCREEN,this.state.pluginsElement.addClass("oo-overlay-blur"),this.state.screenToShow=_.default.SCREEN.DISCOVERY_SCREEN,this.renderSkin(),this.state.forceCountDownTimerOnEndScreen=!1)},exitFullWindowOnEscKey:function(e){e.keyCode===_.default.KEYCODES.ESCAPE_KEY&&(e.preventDefault(),this.exitFullWindow())},onErrorEvent:function(e,t){this.unsubscribeBasicPlaybackEvents(),this.setBufferingState(!1),this.state.currentVideoId=null,this.state.screenToShow=_.default.SCREEN.ERROR_SCREEN,this.state.playerState=_.default.STATE.ERROR,this.state.errorCode=t,this.mb.publish(y.EVENTS.PAUSE),this.renderSkin(),this.unsubscribeBasicPlaybackEvents()},unsubscribeFromMessageBus:function(){this.unsubscribeBasicPlaybackEvents(),this.mb.unsubscribe(y.EVENTS.PLAYER_CREATED,"customerUi"),this.mb.unsubscribe(y.EVENTS.CONTENT_TREE_FETCHED,"customerUi"),this.mb.unsubscribe(y.EVENTS.SKIN_METADATA_FETCHED,"customerUi"),this.mb.unsubscribe(y.EVENTS.METADATA_FETCHED,"customerUi"),this.mb.unsubscribe(y.EVENTS.ATTRIBUTES_FETCHED,"customerUi"),this.mb.unsubscribe(y.EVENTS.AUTHORIZATION_FETCHED,"customerUi"),this.mb.unsubscribe(y.EVENTS.ASSET_CHANGED,"customerUi"),this.mb.unsubscribe(y.EVENTS.ASSET_UPDATED,"customerUi"),this.mb.unsubscribe(y.EVENTS.PLAYBACK_READY,"customerUi"),this.mb.unsubscribe(y.EVENTS.ERROR,"customerUi"),this.mb.unsubscribe(y.EVENTS.SET_EMBED_CODE_AFTER_OOYALA_AD,"customerUi"),this.mb.unsubscribe(y.EVENTS.SET_EMBED_CODE,"customerUi"),this.mb.unsubscribe(y.EVENTS.POSITION_IN_PLAYLIST_DETERMINED,"customerUi"),this.mb.unsubscribe(y.EVENTS.CHROMECAST_START_CAST,"customerUi"),this.mb.unsubscribe(y.EVENTS.CHROMECAST_END_CAST,"customerUi"),this.mb.unsubscribe(y.EVENTS.MARKER_DATA_AVAILABLE,"customerUi")},unsubscribeBasicPlaybackEvents:function(){this.mb.unsubscribe(y.EVENTS.INITIAL_PLAY,"customerUi"),this.mb.unsubscribe(y.EVENTS.VC_PLAY,"customerUi"),this.mb.unsubscribe(y.EVENTS.VC_PLAYED,"customerUi"),this.mb.unsubscribe(y.EVENTS.VC_PLAYING,"customerUi"),this.mb.unsubscribe(y.EVENTS.VC_PAUSE,"customerUi"),this.mb.unsubscribe(y.EVENTS.VC_PAUSED,"customerUi"),this.mb.unsubscribe(y.EVENTS.PLAYED,"customerUi"),this.mb.unsubscribe(y.EVENTS.PLAYHEAD_TIME_CHANGED,"customerUi"),this.mb.unsubscribe(y.EVENTS.SEEK,"customerUi"),this.mb.unsubscribe(y.EVENTS.SEEKED,"customerUi"),this.mb.unsubscribe(y.EVENTS.BUFFERING,"customerUi"),this.mb.unsubscribe(y.EVENTS.BUFFERED,"customerUi"),this.mb.unsubscribe(y.EVENTS.CLOSED_CAPTIONS_INFO_AVAILABLE,"customerUi"),this.mb.unsubscribe(y.EVENTS.BITRATE_INFO_AVAILABLE,"customerUi"),this.mb.unsubscribe(y.EVENTS.CLOSED_CAPTION_CUE_CHANGED,"customerUi"),this.mb.unsubscribe(y.EVENTS.CHANGE_CLOSED_CAPTION_LANGUAGE,"customerUi"),this.mb.unsubscribe(y.EVENTS.VOLUME_CHANGED,"customerUi"),this.mb.unsubscribe(y.EVENTS.PLAYBACK_SPEED_CHANGED,"customerUi"),this.mb.unsubscribe(y.EVENTS.PLAYBACK_READY,"customerUi"),this.mb.unsubscribe(y.EVENTS.CHECK_VR_DIRECTION,"customerUi"),this.mb.unsubscribe(y.EVENTS.TOUCH_MOVE,"customerUi"),this.mb.unsubscribe(y.EVENTS.END_VR_MOVE,"customerUi"),this.mb.unsubscribe(y.EVENTS.VR_DIRECTION_CHANGED,"customerUi"),this.mb.unsubscribe(y.EVENTS.VIDEO_VR,"customerUi"),this.mb.unsubscribe(y.EVENTS.VIDEO_TYPE_CHANGED,"customerUi"),this.mb.unsubscribe(y.EVENTS.RECREATING_UI,"customerUi"),this.mb.unsubscribe(y.EVENTS.MULTI_AUDIO_FETCHED,"customerUi"),this.mb.unsubscribe(y.EVENTS.MULTI_AUDIO_CHANGED,"customerUi"),this.state.isPlaybackReadySubscribed=!1,S.default.canRenderSkin()&&(this.mb.unsubscribe(y.EVENTS.ADS_PLAYED,"customerUi"),this.mb.unsubscribe(y.EVENTS.WILL_PLAY_ADS,"customerUi"),this.mb.unsubscribe(y.EVENTS.AD_POD_STARTED,"customerUi"),this.mb.unsubscribe(y.EVENTS.WILL_PLAY_SINGLE_AD,"customerUi"),this.mb.unsubscribe(y.EVENTS.SINGLE_AD_PLAYED,"customerUi"),this.mb.unsubscribe(y.EVENTS.PLAY_NONLINEAR_AD,"customerUi"),this.mb.unsubscribe(y.EVENTS.NONLINEAR_AD_PLAYED,"customerUi"),this.mb.unsubscribe(y.EVENTS.HIDE_NONLINEAR_AD,"customerUi"),this.mb.unsubscribe(y.EVENTS.SHOW_NONLINEAR_AD,"customerUi"),this.mb.unsubscribe(y.EVENTS.SHOW_AD_SKIP_BUTTON,"customerUi"),this.mb.unsubscribe(y.EVENTS.SHOW_AD_CONTROLS,"customerUi"),this.mb.unsubscribe(y.EVENTS.SHOW_AD_MARQUEE,"customerUi"),y.EVENTS.DISCOVERY_API&&y.EVENTS.DISCOVERY_API.RELATED_VIDEOS_FETCHED&&this.mb.unsubscribe(y.EVENTS.DISCOVERY_API.RELATED_VIDEOS_FETCHED,"customerUi")),this.state.isSubscribed=!1},renderSkin:function(e){this.state.configLoaded&&(e&&(this.state=(0,E.default)(this.state,e)),this.skin.switchComponent(this.state))},toggleDiscoveryScreen:function(){var e=this;switch(this.state.playerState){case _.default.STATE.PLAYING:this.pausedCallback=function(){e.state.screenToShow=_.default.SCREEN.DISCOVERY_SCREEN,e.state.playerState=_.default.STATE.PAUSE,e.state.pluginsElement.addClass("oo-overlay-blur"),e.renderSkin(),y.log("finished toggleDiscoveryScreen")},this.togglePlayPause(),this.sendDiscoveryDisplayEventRelatedVideos("pauseScreen"),this.state.discoverySource=_.default.SCREEN.PAUSE_SCREEN;break;case _.default.STATE.PAUSE:this.state.screenToShow===_.default.SCREEN.DISCOVERY_SCREEN?(this.state.pauseAnimationDisabled=!0,this.state.pluginsElement.removeClass("oo-overlay-blur"),this.state.screenToShow=_.default.SCREEN.PAUSE_SCREEN):(this.sendDiscoveryDisplayEventRelatedVideos("pauseScreen"),this.state.discoverySource=_.default.SCREEN.PAUSE_SCREEN,this.state.pluginsElement.addClass("oo-overlay-blur"),this.state.screenToShow=_.default.SCREEN.DISCOVERY_SCREEN);break;case _.default.STATE.END:this.state.screenToShow===_.default.SCREEN.DISCOVERY_SCREEN?(this.state.pluginsElement.removeClass("oo-overlay-blur"),this.state.screenToShow=_.default.SCREEN.END_SCREEN):(this.sendDiscoveryDisplayEventRelatedVideos("endScreen"),this.state.discoverySource=_.default.SCREEN.END_SCREEN,this.state.pluginsElement.addClass("oo-overlay-blur"),this.state.screenToShow=_.default.SCREEN.DISCOVERY_SCREEN,this.skin.props.skinConfig.discoveryScreen.showCountDownTimerOnEndScreen=!1)}this.renderSkin()},toggleMute:function(e,t){this.mb.publish(y.EVENTS.CHANGE_MUTE_STATE,e,null,t)},toggleStereoVr:function(){this.isVrStereo=!this.isVrStereo,this.mb.publish(y.EVENTS.TOGGLE_STEREO_VR)},moveVrToDirection:function(e,t){this.mb.publish(y.EVENTS.MOVE_VR_TO_DIRECTION,this.focusedElement,e,t)},togglePlayPause:function(e){switch(this.state.playerState){case _.default.STATE.START:this.state.isInitialPlay||this.mb.publish(y.EVENTS.INITIAL_PLAY,Date.now(),!1);break;case _.default.STATE.END:this.mb.publish(y.EVENTS.REPLAY);break;case _.default.STATE.PAUSE:this.isNewVrVideo=!1,this.customPlayPause(e,y.EVENTS.PLAY);break;case _.default.STATE.PLAYING:this.isNewVrVideo=!1,this.showControlBar(),this.customPlayPause(e,y.EVENTS.PAUSE)}},customPlayPause:function(e,t){e&&"function"==typeof this.state.playerParam.onTogglePlayPause?this.state.playerParam.onTogglePlayPause(e,this.state.playerState):t&&this.mb.publish(t)},seek:function(e){this.state.playerState===_.default.STATE.END?(this.endSeeking(),this.mb.publish(y.EVENTS.REPLAY,e)):this.mb.publish(y.EVENTS.SEEK,e)},onLiveClick:function(){this.mb.publish(y.EVENTS.LIVE_BUTTON_CLICKED)},setVolume:function(e){this.mb.publish(y.EVENTS.CHANGE_VOLUME,e)},handleMuteClick:function(){this.toggleMute(!this.state.volumeState.muted,!0)},toggleShareScreen:function(){var e=this;this.state.screenToShow===_.default.SCREEN.SHARE_SCREEN?this.closeScreen():this.state.playerState===_.default.STATE.PLAYING?(this.pausedCallback=function(){e.state.pluginsElement.addClass("oo-overlay-blur"),e.state.screenToShow=_.default.SCREEN.SHARE_SCREEN,e.renderSkin()},this.mb.publish(y.EVENTS.PAUSE)):(this.state.screenToShow=_.default.SCREEN.SHARE_SCREEN,this.state.pluginsElement.addClass("oo-overlay-blur"),this.renderSkin())},toggleScreen:function(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]&&arguments[1];this.isNewVrVideo=!1,this.state.screenToShow===e?this.closeScreen():this.state.playerState===_.default.STATE.PLAYING?(this.pausedCallback=function(){t.state.pluginsElement.addClass("oo-overlay-blur"),t.state.screenToShow=e,t.renderSkin()},n?(this.pausedCallback(),this.pausedCallback=null):this.mb.publish(y.EVENTS.PAUSE)):(this.state.screenToShow=e,this.state.pluginsElement.addClass("oo-overlay-blur"),this.renderSkin())},toggleMultiAudioScreen:function(){this.state.screenToShow===_.default.SCREEN.MULTI_AUDIO_SCREEN?this.state.playerState===_.default.STATE.END?this.state.screenToShow=_.default.SCREEN.END_SCREEN:this.state.playerState===_.default.STATE.PAUSE?this.state.screenToShow=_.default.SCREEN.PAUSE_SCREEN:this.state.screenToShow=_.default.SCREEN.PLAYING_SCREEN:this.state.screenToShow=_.default.SCREEN.MULTI_AUDIO_SCREEN,this.renderSkin()},onPositionInPlaylistDetermined:function(e,t){var n=t||{};this.state.skipControls.hasPreviousVideos=!!n.hasPreviousVideos,this.state.skipControls.hasNextVideos=!!n.hasNextVideos},setScrubberBarHoverState:function(e){this.state.scrubberBar.isHovering!==e&&(this.state.scrubberBar.isHovering=e,this.renderSkin())},rewindOrRequestPreviousVideo:function(){var e=S.default.getCurrentTimestamp(),t=e-this.state.skipControls.requestPreviousTimestamp;this.state.seeking||t<_.default.UI.REQUEST_PREVIOUS_TIME_THRESHOLD||this.state.mainVideoPlayhead<_.default.UI.REQUEST_PREVIOUS_PLAYHEAD_THRESHOLD?this.mb.publish(y.EVENTS.REQUEST_PREVIOUS_VIDEO):(this.updateSeekingPlayhead(0),this.seek(0)),this.state.skipControls.requestPreviousTimestamp=e},requestNextVideo:function(){this.mb.publish(y.EVENTS.REQUEST_NEXT_VIDEO)},setPlaybackSpeed:function(e){this.mb.publish(y.EVENTS.SET_PLAYBACK_SPEED,e)},setFocusedControl:function(e){this.state.focusedControl=e},sendDiscoveryClickEvent:function(e,t){this.state.pluginsElement.removeClass("oo-overlay-blur"),t?(this.state.upNextInfo.delayedContentData=e,this.state.upNextInfo.delayedSetEmbedCodeEvent=!0):(this.state.upNextInfo.showing=!1,this.state.screenToShow=_.default.SCREEN.LOADING_SCREEN,this.renderSkin(),this.mb.publish(y.EVENTS.PAUSE),e.clickedVideo.embed_code?this.mb.publish(y.EVENTS.SET_EMBED_CODE,e.clickedVideo.embed_code,this.state.playerParam):e.clickedVideo.asset&&this.mb.publish(y.EVENTS.SET_ASSET,e.clickedVideo.asset),this.mb.publish(y.EVENTS.DISCOVERY_API.SEND_CLICK_EVENT,e))},sendDiscoveryDisplayEvent:function(e,t,n,o,r){if(r.source=this.state.discoverySource,o.embed_code){var a={metadata:S.default.getDiscoveryEventData(e,t,n,o,r)};this.mb.publish(y.EVENTS.DISCOVERY_API.SEND_DISPLAY_EVENT,a)}},sendDiscoveryDisplayEventRelatedVideos:function(e,t){var n=S.default.getPropertyValue(this.state.discoveryData,"relatedVideos",[]),o=n;if(t){var r=i.find(n,function(e){return e.embed_code===t});o=r?[r]:[]}var a={relatedVideos:o,custom:{source:e}};this.mb.publish(y.EVENTS.DISCOVERY_API.SEND_DISPLAY_EVENT,a)},togglePopover:function(e){var t=this.state[e];t&&(t.showPopover=!t.showPopover,this.renderSkin())},receiveVideoQualityChangeEvent:function(e,t){this.state.videoQualityOptions.selectedBitrate={id:t},this.renderSkin({videoQualityOptions:{availableBitrates:this.state.videoQualityOptions.availableBitrates,selectedBitrate:this.state.videoQualityOptions.selectedBitrate,showPopover:this.state.videoQualityOptions.showPopover}}),!0===this.state.videoQualityOptions.showPopover&&this.togglePopover(_.default.MENU_OPTIONS.VIDEO_QUALITY)},sendVideoQualityChangeEvent:function(e){this.state.videoQualityOptions.selectedBitrate={id:e.id},this.mb.publish(y.EVENTS.SET_TARGET_BITRATE,e.id)},setClosedCaptionsInfo:function(e){var t=this.state.closedCaptionsInfoCache[e];t&&(this.state.closedCaptionOptions.availableLanguages=t,this.state.closedCaptionOptions.enabled&&this.setClosedCaptionsLanguage())},setClosedCaptionsLanguage:function(e){var t=e||{},n=this.state.closedCaptionOptions.availableLanguages;if(n&&(null===this.state.closedCaptionOptions.language||!i.contains(n.languages,this.state.closedCaptionOptions.language))){var o=f(n.languages,1);this.state.closedCaptionOptions.language=o[0]}var r=this.state.closedCaptionOptions.enabled?this.state.closedCaptionOptions.language:"",a=this.state.closedCaptionOptions.enabled?y.CONSTANTS.CLOSED_CAPTIONS.HIDDEN:y.CONSTANTS.CLOSED_CAPTIONS.DISABLED;this.mb.publish(y.EVENTS.SET_CLOSED_CAPTIONS_LANGUAGE,r,{mode:a,isFullScreen:this.state.fullscreen,isGoingFullScreen:!!t.isGoingFullScreen})},closeScreen:function(){this.state.pluginsElement.removeClass("oo-overlay-blur"),this.state.pauseAnimationDisabled=!0,this.state.playerState===_.default.STATE.PAUSE?this.state.screenToShow=_.default.SCREEN.PAUSE_SCREEN:this.state.playerState===_.default.STATE.END?this.state.screenToShow=_.default.SCREEN.END_SCREEN:this.state.playerState===_.default.STATE.START?this.state.screenToShow=_.default.SCREEN.START_SCREEN:this.state.screenToShow=_.default.SCREEN.PLAYING_SCREEN,this.renderSkin()},onChangeClosedCaptionLanguage:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(t!==_.default.CLOSED_CAPTIONS.NO_LANGUAGE){var o=this.state.closedCaptionOptions.availableLanguages;if(t&&o&&i.contains(o.languages,t)){n.forceEnabled&&(this.state.closedCaptionOptions.enabled=!0,this.state.persistentSettings.closedCaptionOptions.enabled=!0),this.state.closedCaptionOptions.language=t,this.state.persistentSettings.closedCaptionOptions.language=t;var r=this.state.closedCaptionOptions.enabled?t:"",a=this.state.closedCaptionOptions.enabled?y.CONSTANTS.CLOSED_CAPTIONS.HIDDEN:y.CONSTANTS.CLOSED_CAPTIONS.DISABLED;this.mb.publish(y.EVENTS.SET_CLOSED_CAPTIONS_LANGUAGE,r,{mode:a,isFullScreen:this.state.fullscreen}),this.renderSkin(),this.mb.publish(y.EVENTS.SAVE_PLAYER_SETTINGS,this.state.persistentSettings)}else y.log("Invalid closed caption language.")}else this.state.closedCaptionOptions.enabled&&this.toggleClosedCaptionEnabled()},onClosedCaptionChange:function(e,t){this.state.closedCaptionOptions[e]=t,this.state.persistentSettings.closedCaptionOptions[e]=t,"language"===e&&(this.setClosedCaptionsLanguage(),this.setCaptionDirection(t)),this.renderSkin(),this.mb.publish(y.EVENTS.SAVE_PLAYER_SETTINGS,this.state.persistentSettings)},setCaptionDirection:function(e){"string"==typeof e&&2===e.length&&null!==this.state.config.languageDirections&&"object"===C(this.state.config.languageDirections)&&(this.state.config.languageDirections[e]?this.captionDirection=this.state.config.languageDirections[e]:this.captionDirection="")},trySetAnamorphicFixState:function(e){if(this.state&&this.state.mainVideoInnerWrapper)if(e){var t=S.default.getPropertyValue(this.state.attributes,"provider.ots_stretch_to_output");!0!==t&&"true"!==t||(this.state.mainVideoInnerWrapper.addClass("oo-anamorphic"),y.log("Anamorphic video fix: ON"))}else this.state.mainVideoInnerWrapper.removeClass("oo-anamorphic"),y.log("Anamorphic video fix: OFF")},toggleClosedCaptions:function(){this.mb.publish(y.EVENTS.TOGGLE_CLOSED_CAPTIONS)},toggleClosedCaptionEnabled:function(){this.state.closedCaptionOptions.enabled=!this.state.closedCaptionOptions.enabled,this.state.persistentSettings.closedCaptionOptions.enabled=!!this.state.closedCaptionOptions.enabled,this.setClosedCaptionsLanguage(),this.renderSkin(),this.mb.publish(y.EVENTS.SAVE_PLAYER_SETTINGS,this.state.persistentSettings)},upNextDismissButtonClicked:function(){this.state.upNextInfo.countDownCancelled=!0,this.state.upNextInfo.showing=!1,this.renderSkin()},toggleMoreOptionsScreen:function(e){this.state.screenToShow===_.default.SCREEN.MORE_OPTIONS_SCREEN?this.closeMoreOptionsScreen():this.displayMoreOptionsScreen(e)},closeMoreOptionsScreen:function(){this.state.pauseAnimationDisabled=!0,this.state.screenToShow=_.default.SCREEN.PAUSE_SCREEN,this.state.playerState=_.default.STATE.PAUSE,this.state.moreOptionsItems=null,this.state.pluginsElement.removeClass("oo-overlay-blur"),this.renderSkin()},displayMoreOptionsScreen:function(e){var t=this;this.state.playerState===_.default.STATE.PLAYING?(this.pausedCallback=function(){t.state.screenToShow=_.default.SCREEN.MORE_OPTIONS_SCREEN,t.state.pluginsElement.addClass("oo-overlay-blur"),t.renderSkin()},this.mb.publish(y.EVENTS.PAUSE)):(this.state.screenToShow=_.default.SCREEN.MORE_OPTIONS_SCREEN,this.state.pluginsElement.addClass("oo-overlay-blur"),this.renderSkin()),this.state.moreOptionsItems=e},enablePauseAnimation:function(){this.state.pauseAnimationDisabled=!1},beginSeeking:function(){this.state.seeking=!0},endSeeking:function(){this.state.seeking=!1},updateSeekingPlayhead:function(e){var t=Math.min(Math.max(0,e),this.skin.state.duration);this.skin.updatePlayhead(t,this.skin.state.duration,this.skin.state.buffered).catch(function(){y.log("updateSeekingPlayhead: Could not set new state for skin")})},hideVolumeSliderBar:function(){this.state.volumeState.volumeSliderVisible=!1,this.renderSkin()},showVolumeSliderBar:function(){this.state.volumeState.volumeSliderVisible=!0,S.default.isAndroid()&&this.startHideVolumeSliderTimer(),this.renderSkin()},startHideVolumeSliderTimer:function(){var e=this;this.cancelTimer();var t=setTimeout(function(){!0===e.state.volumeState.volumeSliderVisible&&e.hideVolumeSliderBar()},3e3);this.state.timer=t},startHideControlBarTimer:function(){var e=this;if(!0===this.skin.props.skinConfig.controlBar.autoHide&&!this.state.audioOnly){this.cancelTimer();var t=setTimeout(function(){!0===e.state.controlBarVisible&&e.hideControlBar()},3e3);this.state.timer=t}},showControlBar:function(){var e=this.state.controlBarVisible;this.state.controlBarVisible=!0,this.state.controlBarVisible!==e&&this.renderSkin()},hideControlBar:function(){if(!this.state.audioOnly){var e=this.state.controlBarVisible;this.state.controlBarVisible=!1,S.default.isAndroid()&&this.hideVolumeSliderBar(),this.state.controlBarVisible!==e&&this.renderSkin()}},cancelTimer:function(){null!==this.state.timer&&(clearTimeout(this.state.timer),this.state.timer=null)},updateAspectRatio:function(){if(this.skin&&this.skin.props.skinConfig.responsive.aspectRatio&&"auto"!==this.skin.props.skinConfig.responsive.aspectRatio){if("fluid"===this.skin.props.skinConfig.responsive.aspectRatio){var e=this.state.mainVideoContainer[0].parentNode,t=e.clientWidth,n=e.clientHeight;this.state.mainVideoAspectRatio=this.calculateAspectRatio(t,n)}else this.state.mainVideoAspectRatio=this.skin.props.skinConfig.responsive.aspectRatio;this.setAspectRatio()}},calculateAspectRatio:function(e,t){return(t/e*100).toFixed(2)},setAspectRatio:function(){0<this.state.mainVideoAspectRatio&&!this.state.audioOnly&&this.state.mainVideoInnerWrapper.css("padding-top","".concat(this.state.mainVideoAspectRatio,"%"))},findMainVideoElement:function(e){if(e[0]&&(e=e[0]),e.tagName&&-1!==e.tagName.toLowerCase().indexOf(_.default.MEDIA_TYPE.VIDEO))return this.state.mainVideoMediaType=_.default.MEDIA_TYPE.HTML5,e;if(e.getElementsByTagName(_.default.MEDIA_TYPE.VIDEO).length){var t=e.getElementsByTagName(_.default.MEDIA_TYPE.VIDEO);if(t.length)return this.state.mainVideoMediaType=_.default.MEDIA_TYPE.HTML5,t[0]}if(e.tagName&&-1!==e.tagName.toLowerCase().indexOf(_.default.MEDIA_TYPE.OBJECT))return this.state.mainVideoMediaType=_.default.MEDIA_TYPE.FLASH,e;if(e.getElementsByTagName(_.default.MEDIA_TYPE.OBJECT).length){var n=e.getElementsByTagName(_.default.MEDIA_TYPE.OBJECT);if(n.length)return this.state.mainVideoMediaType=_.default.MEDIA_TYPE.FLASH,n[0]}return e},addBlur:function(){!this.videoVr&&this.state.mainVideoElement&&this.state.mainVideoElement.classList&&this.state.mainVideoElement.classList.add("oo-blur")},removeBlur:function(){this.state.mainVideoElement&&this.state.mainVideoElement.classList&&this.state.mainVideoElement.classList.remove("oo-blur"),this.state.mainVideoElementContainer&&this.state.mainVideoElementContainer.classList&&this.state.mainVideoElementContainer.classList.remove("oo-blur")}},e}},{"../config/languageFiles/en.json":1,"../config/languageFiles/es.json":2,"../config/languageFiles/ja.json":3,"../config/languageFiles/ko.json":4,"../config/languageFiles/zh.json":5,"../config/skin":6,"./components/accessibilityControls":7,"./components/utils":66,"./constants/constants":73,"./skin":77,deepmerge:365,react:382,"react-dom":378,screenfull:390}],76:[function(e,t,n){"use strict";e("@babel/polyfill/noConflict");var o=e("../js/controller");OO.plugin("Html5Skin",o)},{"../js/controller":75,"@babel/polyfill/noConflict":89}],77:[function(e,t,n){"use strict";var F=o(e("react")),c=o(e("react-dom")),W=o(e("classnames")),a=o(e("lodash.debounce")),Y=e("./views/playingScreen"),K=e("./views/pauseScreen"),H=o(e("./views/adScreen")),z=o(e("./components/utils")),G=o(e("./constants/constants")),X=o(e("./components/spinner")),q=o(e("./components/closed-caption/onOffSwitch")),Q=o(e("./components/closed-caption/closedCaptionPanel")),$=o(e("./components/discoveryPanel")),J=o(e("./components/videoQualityPanel")),Z=o(e("./components/playbackSpeedPanel")),ee=o(e("./components/closed-caption-multi-audio-menu/closedCaptionMultiAudioMenu")),te=o(e("./components/sharePanel")),ne=o(e("./components/volumePanel")),oe=o(e("./components/moreOptionsPanel")),re=o(e("./views/endScreen")),ae=o(e("./views/startScreen")),ie=o(e("./views/errorScreen")),le=o(e("./views/contentScreen")),se=o(e("./views/audioOnlyScreen"));function o(e){return e&&e.__esModule?e:{default:e}}function ue(){return(ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=function(e){function o(e){var u,t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=this,n=s(o).call(this,e),d(f(f(u=!n||"object"!==i(n)&&"function"!=typeof n?f(t):n)),"onResize",function(){u.generateResponsiveData()}),d(f(f(u)),"getDefaultElementHeight",function(e){var t=0;return e&&z.default.ensureNumber(e)&&(t=.5625*e),t}),d(f(f(u)),"generateResponsiveData",function(){var n=0,e=0,t=c.default.findDOMNode(f(f(u))),o=u.props,r=o.controller,a=o.skinConfig;if(t&&(n=Math.ceil(t.getBoundingClientRect().width),!(e=t.parentNode?t.parentNode.getBoundingClientRect().height:e))){var i=n;!i&&r.state.mainVideoContainer&&(i=r.state.mainVideoContainer.width()),e=u.getDefaultElementHeight(i)}var l=a.responsive.breakpoints,s={classes:{},ids:{}};r.state.audioOnly?(s.classes[l["audio-only-xs"].name]=!0,s.ids[l["audio-only-xs"].id]=!0):Object.keys(l).forEach(function(e){if(l[e].minWidth&&!l[e].maxWidth)s.classes[l[e].name]=n>=l[e].minWidth,s.ids[l[e].id]=n>=l[e].minWidth;else if(l[e].minWidth&&l[e].maxWidth){var t=n>=l[e].minWidth&&n<=l[e].maxWidth;s.classes[l[e].name]=t,s.ids[l[e].id]=t}else l[e].maxWidth&&!l[e].minWidth&&(s.classes[l[e].name]=n<=l[e].maxWidth,s.ids[l[e].id]=n<=l[e].maxWidth)}),u.setState({componentWidth:n,componentHeight:e,responsiveClass:(0,W.default)(s.classes),responsiveId:(0,W.default)(s.ids)})}),d(f(f(u)),"handleClickOutsidePlayer",function(){var e=u.props.controller;e.state.accessibilityControlsEnabled=!1,e.state.isClickedOutside=!0}),d(f(f(u)),"switchComponent",function(e){var t=e||{};u.setState(t)}),d(f(f(u)),"updatePlayhead",function(o,r,a,i){return new Promise(function(e){u.setState(function(e){var t=z.default.ensureNumber(r,e.duration),n=u.getTotalTime(t);return{currentPlayhead:z.default.ensureNumber(o,e.currentPlayhead),duration:t,buffered:z.default.ensureNumber(a,e.buffered),currentAdPlayhead:z.default.ensureNumber(i,e.currentAdPlayhead),totalTime:n}},e)})}),d(f(f(u)),"getTotalTime",function(e){var t=z.default.ensureNumber(e)?z.default.ensureNumber(e):0;return z.default.formatSeconds(t)}),d(f(f(u)),"getPlayheadTime",function(){var e=u.state,t=e.currentPlayhead,n=e.duration,o=e.isLiveStream;if(!Number.isFinite(parseInt(t,0))||!Number.isFinite(parseInt(n,0)))return"--:--";var r=z.default.formatSeconds(parseInt(t,0));if(o){var a=t-n;r=Math.abs(a)<1?null:z.default.formatSeconds(a)}return r}),d(f(f(u)),"handleVrPlayerMouseDown",function(e){var t=u.props.controller;if(t&&!t.isVrStereo&&t.videoVr){var n=z.default.getCoords(e);u.setState({isVrMouseDown:!0,xVrMouseStart:n.x,yVrMouseStart:n.y});u.updateVrDirection(!0)}}),d(f(f(u)),"handleVrPlayerMouseMove",function(e){var t=u.props.controller,n=u.state.isVrMouseDown;if((!t||!t.isVrStereo)&&t&&t.videoVr&&n&&(e.preventDefault(),u.setState({isVrMouseMove:!0}),"function"==typeof t.onTouchMove)){var o=z.default.getCoords(e),r=u.getDirectionParams(o.x,o.y);t.onTouchMove(r,!0)}}),d(f(f(u)),"handleVrPlayerMouseUp",function(e){var t=u.props.controller;t&&t.videoVr&&!t.isVrStereo&&("object"===i(e)&&"touchend"===e.type||"function"!=typeof t.checkVrDirection||u.setState({isVrMouseDown:!1,xVrMouseStart:0,yVrMouseStart:0}))}),d(f(f(u)),"handleVrPlayerClick",function(){u.setState({isVrMouseMove:!1})}),d(f(f(u)),"handleVrPlayerFocus",function(){u.props.controller.state.accessibilityControlsEnabled=!0}),d(f(f(u)),"getDirectionParams",function(e,t){var n=u.getVrViewingDirectionParamValue("yaw"),o=u.getVrViewingDirectionParamValue("pitch"),r=u.state,a=r.componentWidth,i=r.componentHeight,l=r.xVrMouseStart,s=r.yVrMouseStart;if(a&&i){n+=(z.default.ensureNumber(e,0)-l)*(90/a),o+=(z.default.ensureNumber(t,0)-s)*(120/i)}return[n,0,o]}),d(f(f(u)),"getVrViewingDirectionParamValue",function(e){var t=0,n=u.props.controller;return n&&n.state&&n.state.vrViewingDirection&&"number"==typeof n.state.vrViewingDirection[e]&&(t=n.state.vrViewingDirection[e]),t}),d(f(f(u)),"onKeyDown",function(e){var t=u.props.controller;if(e.target&&u.domElement&&t.state.fullscreen&&e.key===G.default.KEY_VALUES.TAB){var n="[".concat(G.default.KEYBD_FOCUS_ID_ATTR,"]:enabled"),o=u.domElement.querySelectorAll(n);if(o.length){var r=o[0],a=o[o.length-1];e.target.hasAttribute(G.default.KEYBD_FOCUS_ID_ATTR)?e.shiftKey&&e.target===r?(e.preventDefault(),a.focus()):e.shiftKey||e.target!==a||(e.preventDefault(),r.focus()):(e.preventDefault(),e.shiftKey?a.focus():r.focus())}else OO.log("Skin: No focusable elements found")}}),d(f(f(u)),"handleTouchEndOnWindow",function(){u.props.controller.videoVr&&u.setState({isVrMouseDown:!1,isVrMouseMove:!1,xVrMouseStart:0,yVrMouseStart:0})}),d(f(f(u)),"handleTouchEndOnPlayer",function(e){var t=u.props.controller,n=u.state.isVrMouseMove;if(t.state.controlBarVisible){var o=!1;t.videoVr&&n||(o=!0),o&&t.togglePlayPause(e)}}),d(f(f(u)),"updateVrDirection",function(e){var t=u.props.controller;"function"==typeof t.checkVrDirection&&"function"==typeof t.setControllerVrViewingDirection&&(t.checkVrDirection(e),t.setControllerVrViewingDirection())}),u.overlayRenderingEventSent=!1,u.state={componentWidth:null,componentHeight:null,responsiveClass:null,responsiveId:null,totalTime:"00:00",screenToShow:null,currentPlayhead:0,discoveryData:null,isVrMouseDown:!1,isVrMouseMove:!1,xVrMouseStart:0,yVrMouseStart:0},u}var t,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(o,F.default.Component),t=o,(n=[{key:"componentDidMount",value:function(){window.addEventListener("resize",(0,a.default)(this.onResize,150)),window.addEventListener("webkitfullscreenchange",(0,a.default)(this.onResize,150)),this.generateResponsiveData(),window.addEventListener("mouseup",this.handleClickOutsidePlayer),document.addEventListener("keydown",this.onKeyDown)}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.controller,n=e.skinConfig,o=this.state,r=o.responsiveId;if(o.screenToShow&&this.overlayRenderingEventSent){var a=n.responsive.breakpoints[r].multiplier*n.controlBar.height;t.publishOverlayRenderingEvent(a),this.overlayRenderingEventSent=!0}}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onResize),window.removeEventListener("webkitfullscreenchange",this.onResize),window.removeEventListener("mouseup",this.handleClickOutsidePlayer),document.removeEventListener("keydown",this.onKeyDown)}},{key:"render",value:function(){var e,t=this,n=this.props,o=n.closedCaptionOptions,r=n.controller,a=n.language,i=n.localizableStrings,l=n.skinConfig,s=r.state.cast.isReceiver,u=this.state,c=u.adStartTime,f=u.assetId,d=u.screenToShow,p=u.buffered,h=u.contentTree,m=u.componentWidth,y=u.componentHeight,b=u.currentPlayhead,v=u.currentAdsInfo,g=u.currentAdPlayhead,E=u.discoveryData,S=u.duration,_=u.forceCountDownTimerOnEndScreen,T=u.isLiveStream,O=u.isVrMouseMove,C=u.fullscreen,A=u.multiAudioOptions,N=u.moreOptionsOptions,w=u.pauseAnimationDisabled,R=u.playbackSpeedOptions,P=u.playerParam,k=u.playerState,I=u.responsiveClass,L=u.seeking,D=u.responsiveId,x=u.totalTime,M=u.upNextInfo,V=u.videoQualityOptions;if(z.default.isIE10())e=d===G.default.SCREEN.START_SCREEN?F.default.createElement(ae.default,ue({},this.props,{componentWidth:m,contentTree:h})):F.default.createElement("div",null);else{if(r.state.audioOnly)switch(d){case G.default.SCREEN.INITIAL_SCREEN:case G.default.SCREEN.START_SCREEN:case G.default.SCREEN.PLAYING_SCREEN:case G.default.SCREEN.PAUSE_SCREEN:case G.default.SCREEN.END_SCREEN:e=F.default.createElement(se.default,ue({},this.props,{contentTree:h,currentPlayhead:b,duration:S,totalTime:x,playheadTime:this.getPlayheadTime(),buffered:p,fullscreen:C,playerState:k,seeking:L,upNextInfo:M,isLiveStream:T,responsiveView:D,componentWidth:m,componentHeight:y,videoQualityOptions:V,closedCaptionOptions:o,captionDirection:r.captionDirection}))}if(!e){var j=s?Y.PlayingScreen:Y.PlayingScreenWithAutoHide,U=s?K.PauseScreen:K.PauseScreenWithAutoHide;switch(d){case G.default.SCREEN.INITIAL_SCREEN:e=F.default.createElement(ae.default,ue({},this.props,{componentWidth:m,contentTree:h,isInitializing:!0}));break;case G.default.SCREEN.LOADING_SCREEN:e=F.default.createElement(X.default,{loadingImage:l.general.loadingImage.imageResource.url});break;case G.default.SCREEN.START_SCREEN:e=F.default.createElement(ae.default,ue({},this.props,{componentWidth:m,contentTree:h,isInitializing:!1}));break;case G.default.SCREEN.START_LOADING_SCREEN:e=F.default.createElement(ae.default,ue({},this.props,{componentWidth:m,contentTree:h,isInitializing:!1,showSpinner:!0}));break;case G.default.SCREEN.PLAYING_SCREEN:e=F.default.createElement(j,ue({},this.props,{handleTouchEndOnPlayer:this.handleTouchEndOnPlayer,handleVrPlayerMouseDown:this.handleVrPlayerMouseDown,handleVrPlayerMouseMove:this.handleVrPlayerMouseMove,handleVrPlayerMouseUp:this.handleVrPlayerMouseUp,handleVrPlayerClick:this.handleVrPlayerClick,handleVrPlayerFocus:this.handleVrPlayerFocus,handleTouchEndOnWindow:this.handleTouchEndOnWindow,isVrMouseMove:O,contentTree:h,currentPlayhead:b,duration:S,totalTime:x,playheadTime:this.getPlayheadTime(),buffered:p,fullscreen:C,playerState:k,seeking:L,upNextInfo:M,isLiveStream:T,responsiveView:D,componentWidth:m,componentHeight:y,videoQualityOptions:V,closedCaptionOptions:o,captionDirection:r.captionDirection}));break;case G.default.SCREEN.SHARE_SCREEN:e=F.default.createElement(le.default,ue({},this.props,{screen:G.default.SCREEN.SHARE_SCREEN,icon:"share"}),F.default.createElement(te.default,ue({},this.props,{assetId:f,playerParam:P,contentTree:h})));break;case G.default.SCREEN.VOLUME_SCREEN:e=F.default.createElement(le.default,ue({},this.props,{screen:G.default.SCREEN.VOLUME_SCREEN,icon:"volume"}),F.default.createElement(ne.default,ue({},this.props,{playerState:k,isLiveStream:T,a11yControls:r.accessibilityControls,currentPlayhead:b,duration:S,totalTime:x,playheadTime:this.getPlayheadTime(),buffered:p,responsiveView:D,componentWidth:m})));break;case G.default.SCREEN.PAUSE_SCREEN:e=F.default.createElement(U,ue({},this.props,{handleTouchEndOnPlayer:this.handleTouchEndOnPlayer,handleVrPlayerMouseDown:this.handleVrPlayerMouseDown,handleVrPlayerMouseMove:this.handleVrPlayerMouseMove,handleVrPlayerMouseUp:this.handleVrPlayerMouseUp,handleVrPlayerClick:this.handleVrPlayerClick,handleTouchEndOnWindow:this.handleTouchEndOnWindow,isVrMouseMove:O,contentTree:h,currentPlayhead:b,playerState:k,duration:S,totalTime:x,playheadTime:this.getPlayheadTime(),buffered:p,pauseAnimationDisabled:w,fullscreen:C,seeking:L,upNextInfo:M,isLiveStream:T,responsiveView:D,componentWidth:m,videoQualityOptions:V,captionDirection:r.captionDirection}));break;case G.default.SCREEN.END_SCREEN:e=F.default.createElement(re.default,ue({},this.props,{contentTree:h,discoveryData:E,currentPlayhead:b,duration:S,totalTime:x,playheadTime:this.getPlayheadTime(),buffered:p,fullscreen:C,playerState:k,seeking:L,isLiveStream:T,responsiveView:D,videoQualityOptions:V,componentWidth:m}));break;case G.default.SCREEN.AD_SCREEN:e=F.default.createElement(H.default,ue({},this.props,{contentTree:h,currentAdsInfo:v,currentPlayhead:b,currentAdPlayhead:g,fullscreen:C,playerState:k,duration:S,adVideoDuration:r.state.adVideoDuration,buffered:p,seeking:L,responsiveView:D,componentWidth:m,videoQualityOptions:V,adStartTime:c}));break;case G.default.SCREEN.DISCOVERY_SCREEN:e=F.default.createElement(le.default,ue({},this.props,{screen:G.default.SCREEN.DISCOVERY_SCREEN,titleText:G.default.SKIN_TEXT.DISCOVER,icon:"discovery"}),F.default.createElement($.default,ue({},this.props,{videosPerPage:{xs:2,sm:4,md:6,lg:8},forceCountDownTimer:_,discoveryData:E,playerState:k,responsiveView:D,componentWidth:m})));break;case G.default.SCREEN.MORE_OPTIONS_SCREEN:e=F.default.createElement(le.default,ue({},this.props,{screen:G.default.SCREEN.MORE_OPTIONS_SCREEN,autoFocus:N.autoFocus}),F.default.createElement(oe.default,ue({},this.props,{responsiveView:D,fullscreen:C})));break;case G.default.SCREEN.CLOSED_CAPTION_SCREEN:e=F.default.createElement(le.default,ue({},this.props,{screen:G.default.SCREEN.CLOSED_CAPTION_SCREEN,screenClassName:"oo-content-screen-closed-captions",titleText:G.default.SKIN_TEXT.CC_OPTIONS,autoFocus:o.autoFocus,closedCaptionOptions:o,element:F.default.createElement(q.default,ue({},this.props,{ariaLabel:G.default.ARIA_LABELS.TOGGLE_CLOSED_CAPTIONS})),icon:"cc"}),F.default.createElement(Q.default,ue({},this.props,{closedCaptionOptions:o,dataItemsPerPage:{xs:1,sm:4,md:8,lg:8},responsiveView:D,componentWidth:m})));break;case G.default.SCREEN.VIDEO_QUALITY_SCREEN:e=F.default.createElement(le.default,ue({},this.props,{screenClassName:"oo-menu-content-screen",screen:G.default.SCREEN.VIDEO_QUALITY_SCREEN,titleText:G.default.SKIN_TEXT.VIDEO_QUALITY,autoFocus:V.autoFocus}),F.default.createElement(J.default,ue({},this.props,{fullscreen:C,videoQualityOptions:V,responsiveView:D})));break;case G.default.SCREEN.PLAYBACK_SPEED_SCREEN:e=F.default.createElement(le.default,ue({},this.props,{screenClassName:"oo-menu-content-screen",screen:G.default.SCREEN.PLAYBACK_SPEED_SCREEN,titleText:G.default.SKIN_TEXT.PLAYBACK_SPEED,autoFocus:R.autoFocus}),F.default.createElement(Z.default,{language:a,localizableStrings:i,controller:r,skinConfig:l,fullscreen:C,responsiveView:D}));break;case G.default.SCREEN.MULTI_AUDIO_SCREEN:e=F.default.createElement(le.default,ue({},this.props,{cssClass:"oo-close-button oo-close-button--ma",dataItemsPerPage:{xs:1,sm:4,md:8,lg:8},screen:G.default.SCREEN.MULTI_AUDIO_SCREEN,screenClassName:"oo-cc-ma-container",autoFocus:A.autoFocus,icon:"cc"}),F.default.createElement(ee.default,this.props));break;case G.default.SCREEN.ERROR_SCREEN:e=F.default.createElement(ie.default,ue({},this.props,{errorCode:r.state.errorCode}));break;default:e=F.default.createElement("div",null)}}}var B=(0,W.default)(I,"oo-responsive",{"oo-audio-only":r.state.audioOnly});return F.default.createElement("div",{ref:function(e){t.domElement=e},className:B},e)}}])&&l(t.prototype,n),r&&l(t,r),o}();r.defaultProps={skinConfig:{general:{loadingImage:{imageResource:{url:null}}},responsive:{breakpoints:{md:{multiplier:1}}},controlBar:{height:90}},controller:{state:{adVideoDuration:0,errorCode:404},publishOverlayRenderingEvent:function(){}}},t.exports=r},{"./components/closed-caption-multi-audio-menu/closedCaptionMultiAudioMenu":14,"./components/closed-caption/closedCaptionPanel":20,"./components/closed-caption/onOffSwitch":26,"./components/discoveryPanel":37,"./components/moreOptionsPanel":49,"./components/playbackSpeedPanel":52,"./components/sharePanel":54,"./components/spinner":57,"./components/utils":66,"./components/videoQualityPanel":68,"./components/volumePanel":71,"./constants/constants":73,"./views/adScreen":78,"./views/audioOnlyScreen":79,"./views/contentScreen":80,"./views/endScreen":81,"./views/errorScreen":82,"./views/pauseScreen":84,"./views/playingScreen":85,"./views/startScreen":87,classnames:90,"lodash.debounce":366,react:382,"react-dom":378}],78:[function(e,t,n){"use strict";var a=o(e("react")),i=o(e("classnames")),l=o(e("../components/adPanel")),s=o(e("../components/controlBar")),u=o(e("../components/spinner")),c=o(e("../components/icon")),f=o(e("../components/unmuteIcon")),d=o(e("../constants/constants")),p=o(e("../components/utils"));function o(e){return e&&e.__esModule?e:{default:e}}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function y(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=function(e){function r(e){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),n=this,o=b(r).call(this,e),E(g(g(t=!o||"object"!==h(o)&&"function"!=typeof o?g(n):o)),"handleClick",function(e){e.stopPropagation(),t.props.controller.state.accessibilityControlsEnabled=!0,"click"!==e.type&&t.isMobile||t.props.skinConfig.adScreen.showAdMarquee||t.props.controller.onAdsClicked(d.default.AD_CLICK_SOURCE.VIDEO_WINDOW)}),E(g(g(t)),"handlePlayerClicked",function(e){"touchend"!==e.type&&t.isMobile||(p.default.canRenderSkin()||t.state.playerState!==d.default.STATE.PAUSE?(e.stopPropagation(),t.props.controller.onAdsClicked(d.default.AD_CLICK_SOURCE.VIDEO_WINDOW)):t.props.controller.togglePlayPause())}),E(g(g(t)),"showControlBar",function(){t.setState({controlBarVisible:!0}),t.props.controller.showControlBar()}),E(g(g(t)),"hideControlBar",function(e){!0!==t.props.skinConfig.controlBar.autoHide||t.isMobile&&e||(t.setState({controlBarVisible:!1}),t.props.controller.hideControlBar())}),E(g(g(t)),"handleTouchEnd",function(e){!t.state.controlBarVisible&&t.props.skinConfig.adScreen.showControlBar&&(t.showControlBar(),t.props.playerState===d.default.STATE.PAUSE&&t.props.controller.startHideControlBarTimer()),t.handlePlayerClicked(e)}),E(g(g(t)),"handlePlayerMouseMove",function(){t.props.playerState!==d.default.STATE.PAUSE&&!t.isMobile&&t.props.fullscreen&&(t.showControlBar(),t.props.controller.startHideControlBarTimer())}),E(g(g(t)),"handleResize",function(){t.props.controller.startHideControlBarTimer()}),E(g(g(t)),"unmuteClick",function(){t.props.controller.handleMuteClick()}),t.isMobile=t.props.controller.state.isMobile,t.state={controlBarVisible:!0},t}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(r,a.default.Component),t=r,(n=[{key:"componentDidMount",value:function(){(this.isMobile||this.props.fullscreen)&&this.props.controller.startHideControlBarTimer()}},{key:"componentWillUpdate",value:function(e){e&&(!1===e.controller.state.controlBarVisible&&!0===this.state.controlBarVisible&&this.hideControlBar(),!0===e.controller.state.controlBarVisible&&!1===this.state.controlBarVisible&&this.showControlBar(),!this.props.fullscreen&&e.fullscreen&&this.state.playerState!==d.default.STATE.PAUSE&&this.props.controller.startHideControlBarTimer(),this.props.fullscreen&&!e.fullscreen&&this.isMobile&&(this.showControlBar(),this.props.controller.startHideControlBarTimer()))}},{key:"componentDidUpdate",value:function(e){e.componentWidth!==this.props.componentWidth&&this.handleResize()}},{key:"componentWillUnmount",value:function(){this.props.controller.cancelTimer()}},{key:"getPlaybackControlItems",value:function(){if(!this.props.controller.state.showAdControls)return null;var e=this.props.playerState===d.default.STATE.PAUSE||this.props.controller.state.forceControlBarVisible||this.state.controlBarVisible;return a.default.createElement(s.default,m({},this.props,{height:this.props.skinConfig.controlBar.height,animatingControlBar:!0,controlBarVisible:e,playerState:this.props.playerState,key:"controlBar"}))}},{key:"render",value:function(){var e={color:this.props.skinConfig.pauseScreen.PauseIconStyle.color,opacity:this.props.skinConfig.pauseScreen.PauseIconStyle.opacity},t=(0,i.default)({"oo-action-icon-pause":!this.props.controller.state.adPauseAnimationDisabled,"oo-action-icon":this.props.controller.state.adPauseAnimationDisabled,"oo-animate-pause":!this.props.controller.state.adPauseAnimationDisabled,"oo-action-icon-top":-1<this.props.skinConfig.pauseScreen.pauseIconPosition.toLowerCase().indexOf("top"),"oo-action-icon-bottom":-1<this.props.skinConfig.pauseScreen.pauseIconPosition.toLowerCase().indexOf("bottom"),"oo-action-icon-left":-1<this.props.skinConfig.pauseScreen.pauseIconPosition.toLowerCase().indexOf("left"),"oo-action-icon-right":-1<this.props.skinConfig.pauseScreen.pauseIconPosition.toLowerCase().indexOf("right"),"oo-hidden":!this.props.skinConfig.pauseScreen.showPauseIcon,"oo-icon-hidden":this.props.playerState!==d.default.STATE.PAUSE}),n=null;this.props.skinConfig.adScreen.showAdMarquee&&this.props.controller.state.showAdMarquee&&(n=a.default.createElement(l.default,this.props));var o=null;this.props.skinConfig.adScreen.showControlBar&&(o=this.getPlaybackControlItems());var r=this.props.controller.state.volumeState.mutingForAutoplay&&this.props.controller.state.volumeState.muted;return a.default.createElement("div",{className:"oo-state-screen oo-ad-screen",role:"presentation",onMouseOver:this.showControlBar,onMouseOut:this.hideControlBar,onMouseMove:this.handlePlayerMouseMove,onMouseUp:this.handleClick},this.props.controller.state.buffering||0===this.props.buffered?a.default.createElement(u.default,{loadingImage:this.props.skinConfig.general.loadingImage.imageResource.url}):null,a.default.createElement("a",{className:t},a.default.createElement(c.default,m({},this.props,{icon:"pause",style:e}))),a.default.createElement("div",{className:"oo-ad-panel",role:"presentation",onClick:this.handlePlayerClicked,onTouchEnd:this.handleTouchEnd},n),a.default.createElement("div",{className:"oo-interactive-container"},o),r?a.default.createElement(f.default,this.props):null)}}])&&y(t.prototype,n),o&&y(t,o),r}();t.exports=r},{"../components/adPanel":10,"../components/controlBar":30,"../components/icon":42,"../components/spinner":57,"../components/unmuteIcon":64,"../components/utils":66,"../constants/constants":73,classnames:90,react:382}],79:[function(e,t,n){"use strict";var m=o(e("react")),y=o(e("classnames")),b=o(e("../constants/constants")),v=o(e("../components/utils")),g=o(e("../components/controlBar")),E=o(e("../components/scrubberBar"));function o(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var i=function(e){function c(){var e,t,n,o,r,a,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];return n=this,o=(e=d(c)).call.apply(e,[this].concat(s)),t=!o||"object"!==f(o)&&"function"!=typeof o?p(n):o,r=p(p(t)),i=function(e){e.stopPropagation(),e.preventDefault(),t.props.controller.onLiveClick(),t.props.controller.seek(t.props.duration)},(a="handleLiveClick")in r?Object.defineProperty(r,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[a]=i,t}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(c,m.default.Component),t=c,(n=[{key:"render",value:function(){var e={color:this.props.skinConfig.startScreen.titleFont.color},t=(0,y.default)({"oo-state-screen-audio-title":!0}),n=(0,y.default)({"oo-state-screen-audio-info":!0}),o=(0,y.default)({"oo-text-truncate":!0}),r=m.default.createElement("div",{style:{maxWidth:"70%"},className:o},m.default.createElement("span",{className:n,style:e},this.props.contentTree.title),": ",this.props.contentTree.description),a=v.default.getLocalizedString(this.props.language,b.default.SKIN_TEXT.LIVE,this.props.localizableStrings),i=this.props.currentPlayhead-this.props.duration,l=Math.abs(i)<1,s=m.default.createElement("span",{className:"oo-scrubber-bar-left oo-scrubber-bar-current-time"},this.props.playheadTime),u=m.default.createElement("span",{className:"oo-scrubber-bar-right oo-scrubber-bar-duration"},this.props.totalTime);if(this.props.isLiveStream){var c=l?"--:--":this.props.playheadTime,f=l?null:this.handleLiveClick,d=(0,y.default)({"oo-scrubber-bar-left oo-live oo-live-indicator":!0,"oo-live-nonclickable":f});s=m.default.createElement("a",{key:b.default.CONTROL_BAR_KEYS.LIVE,className:d,onClick:f},m.default.createElement("div",{className:"oo-live-circle"}),m.default.createElement("span",{className:"oo-live-text"},a)),u=m.default.createElement("span",{className:"oo-scrubber-bar-right oo-scrubber-bar-current-time"},c)}var p="".concat(b.default.UI.AUDIO_ONLY_WITH_COVER_HEIGHT.slice(0,-2)-b.default.UI.AUDIO_ONLY_DEFAULT_HEIGHT.slice(0,-2),"px"),h=this.props.contentTree.promo_image&&this.props.skinConfig.audio.displayTitleOnVideoCanvas;return m.default.createElement("div",null,h&&m.default.createElement("img",{height:p,src:this.props.contentTree.promo_image,className:"oo-audio-only-coverImg",alt:"promo"}),m.default.createElement("div",{className:"oo-state-screen-audio oo-flex-column-parent"},m.default.createElement("div",{className:t},r),m.default.createElement("div",{className:"oo-interactive-container"},m.default.createElement(g.default,S({},this.props,{audioOnly:!0,hideVolumeControls:!0,hideScrubberBar:!0,controlBarVisible:!0,playerState:this.props.playerState,isLiveStream:this.props.isLiveStream,a11yControls:this.props.controller.accessibilityControls,clickToVolumeScreen:!0}))),m.default.createElement("div",{className:"oo-interactive-container"},m.default.createElement("div",{className:"oo-scrubber-bar-parent oo-flex-row-parent"},s,m.default.createElement(E.default,S({},this.props,{audioOnly:!0,forceResize:this.props.isLiveStream})),u))))}}])&&r(t.prototype,n),o&&r(t,o),c}();t.exports=i},{"../components/controlBar":30,"../components/scrubberBar":53,"../components/utils":66,"../constants/constants":73,classnames:90,react:382}],80:[function(e,t,n){"use strict";var r=l(e("react")),a=l(e("classnames")),o=l(e("prop-types")),i=l(e("../components/closeButton")),s=l(e("../components/icon")),u=l(e("../components/watermark")),c=l(e("../components/utils")),f=l(e("../constants/constants"));function l(e){return e&&e.__esModule?e:{default:e}}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){function l(){var e,t,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=this,o=(e=m(l)).call.apply(e,[this].concat(a)),v(b(b(t=!o||"object"!==d(o)&&"function"!=typeof o?b(n):o)),"storeRef",function(e){t.domElement=e}),v(b(b(t)),"handleKeyDown",function(e){e.key===f.default.KEY_VALUES.ESCAPE&&t.handleClose()}),v(b(b(t)),"handleClose",function(){switch(t.props.screen){case f.default.SCREEN.DISCOVERY_SCREEN:t.props.controller.toggleDiscoveryScreen();break;case f.default.SCREEN.MULTI_AUDIO_SCREEN:t.props.controller.toggleMultiAudioScreen();break;default:t.props.controller.toggleScreen(t.props.screen)}}),t}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(l,r.default.Component),t=l,(n=[{key:"componentDidMount",value:function(){this.props.controller.state.accessibilityControlsEnabled=!1,this.props.autoFocus&&c.default.autoFocusFirstElement(this.domElement)}},{key:"componentWillUnmount",value:function(){this.props.controller.state.accessibilityControlsEnabled=!0}},{key:"render",value:function(){var e=this.props.screen===f.default.SCREEN.CLOSED_CAPTION_SCREEN?r.default.createElement("div",{className:"oo-closed-caption-overlay"}):null,t={};this.props.screen===f.default.SCREEN.DISCOVERY_SCREEN&&(t.fontFamily=c.default.getPropertyValue(this.props.skinConfig,"discoveryScreen.panelTitle.titleFont.fontFamily"),t.color=c.default.getPropertyValue(this.props.skinConfig,"discoveryScreen.panelTitle.titleFont.color"));var n=this.props.titleText?r.default.createElement("div",{className:"oo-content-screen-title",style:t},c.default.getLocalizedString(this.props.language,this.props.titleText,this.props.localizableStrings),this.props.icon&&r.default.createElement(s.default,p({},this.props,{icon:this.props.icon})),r.default.createElement("div",{className:"oo-content-screen-title-element"},this.props.element)):null;return r.default.createElement("div",{onKeyDown:this.handleKeyDown,ref:this.storeRef,role:"presentation"},r.default.createElement(u.default,p({},this.props,{controlBarVisible:!1,nonClickable:!0})),r.default.createElement("div",{className:(0,a.default)("oo-content-screen",this.props.screenClassName)},e,r.default.createElement("div",{className:this.props.titleBarClassName},n),this.props.children,r.default.createElement(i.default,p({},this.props,{closeAction:this.handleClose}))))}}])&&h(t.prototype,n),o&&h(t,o),l}();g.propTypes={controller:o.default.shape({toggleScreen:o.default.func,state:o.default.shape({accessibilityControlsEnabled:o.default.bool})}),element:o.default.element,icon:o.default.string,screen:o.default.string,skinConfig:o.default.shape({discoveryScreen:o.default.shape({panelTitle:o.default.shape({titleFont:o.default.shape({color:o.default.string,fontFamily:o.default.string})})})}).isRequired,titleBarClassName:o.default.string,titleText:o.default.string},g.defaultProps={screen:f.default.SCREEN.SHARE_SCREEN,titleBarClassName:"oo-content-screen-title-bar",titleText:"",element:null,icon:null,controller:{toggleScreen:function(){},state:{accessibilityControlsEnabled:!0}}},t.exports=g},{"../components/closeButton":13,"../components/icon":42,"../components/utils":66,"../components/watermark":72,"../constants/constants":73,classnames:90,"prop-types":374,react:382}],81:[function(e,t,n){"use strict";var T=o(e("react")),O=o(e("classnames")),C=o(e("../components/controlBar")),A=o(e("../components/watermark")),N=o(e("../components/icon")),w=o(e("../components/castPanel")),R=o(e("../constants/constants")),P=o(e("../components/utils"));function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(){return(k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=function(e){function r(e){var n,t,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),t=this,o=l(r).call(this,e),c(u(u(n=!o||"object"!==a(o)&&"function"!=typeof o?u(t):o)),"description",null),c(u(u(n)),"componentWillReceiveProps",function(e){var t=n.props.componentWidth;e.componentWidth!==t&&n.truncateText()}),c(u(u(n)),"truncateText",function(){if(n.description){var e=n.props.contentTree,t=P.default.truncateTextToWidth(n.description,e.description);n.setState({descriptionText:t})}}),c(u(u(n)),"handleClick",function(e){e.preventDefault();var t=n.props.controller;t.state.accessibilityControlsEnabled=!0,t.togglePlayPause()}),n.state={controlBarVisible:!0,descriptionText:e.contentTree.description},n}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(r,T.default.Component),t=r,(n=[{key:"componentDidMount",value:function(){this.truncateText()}},{key:"render",value:function(){var t=this,e=this.props,n=e.skinConfig,o=e.contentTree,r=e.controller,a=e.language,i=e.localizableStrings,l=e.playerState,s=e.isLiveStream,u=this.state,c=u.descriptionText,f=u.controlBarVisible,d={color:n.endScreen.replayIconStyle.color,opacity:n.endScreen.replayIconStyle.opacity};r.state.cast.connected&&(d.fontSize="125px");var p={color:n.startScreen.titleFont.color},h={color:n.startScreen.descriptionFont.color},m=(0,O.default)({"oo-action-icon":!0,"oo-hidden":!n.endScreen.showReplayButton}),y=P.default.getPropertyValue(n,"endScreen.infoPanelPosition"),b=y?(0,O.default)({"oo-state-screen-info":!0,"oo-info-panel-top":-1<y.toLowerCase().indexOf("top"),"oo-info-panel-bottom":-1<y.toLowerCase().indexOf("bottom"),"oo-info-panel-left":-1<y.toLowerCase().indexOf("left"),"oo-info-panel-right":-1<y.toLowerCase().indexOf("right")}):void 0,v=y?(0,O.default)({"oo-state-screen-title":!0,"oo-text-truncate":!0,"oo-pull-right":-1<y.toLowerCase().indexOf("right"),"oo-hidden":!P.default.getPropertyValue(n,"endScreen.showTitle")}):void 0,g=y?(0,O.default)({"oo-state-screen-description":!0,"oo-pull-right":-1<y.toLowerCase().indexOf("right"),"oo-hidden":!P.default.getPropertyValue(n,"endScreen.showDescription")}):void 0,E=(0,O.default)({"oo-info-panel-cast-bottom":!0}),S=T.default.createElement("div",{className:v,style:p},o.title),_=T.default.createElement("div",{className:g,ref:function(e){t.description=e},style:h},c);return T.default.createElement("div",{className:"oo-state-screen oo-end-screen"},T.default.createElement("div",{className:"oo-underlay-gradient"}),T.default.createElement("a",{className:"oo-state-screen-selectable",onClick:this.handleClick}),T.default.createElement(A.default,k({},this.props,{controlBarVisible:f})),T.default.createElement("div",{className:b},S,_),T.default.createElement("button",{type:"button",className:m,onClick:this.handleClick,onMouseUp:P.default.blurOnMouseUp,tabIndex:"0","aria-label":R.default.ARIA_LABELS.REPLAY},T.default.createElement(N.default,k({},this.props,{icon:"replay",style:d}))),r.state.cast.connected&&T.default.createElement(w.default,{language:a,localizableStrings:i,device:r.state.cast.device,className:E}),T.default.createElement("div",{className:"oo-interactive-container"},T.default.createElement(C.default,k({},this.props,{height:n.controlBar.height,animatingControlBar:!0,controlBarVisible:f,playerState:l,isLiveStream:s}))))}}])&&i(t.prototype,n),o&&i(t,o),r}();t.exports=r},{"../components/castPanel":12,"../components/controlBar":30,"../components/icon":42,"../components/utils":66,"../components/watermark":72,"../constants/constants":73,classnames:90,react:382}],82:[function(e,t,n){"use strict";var u=r(e("react")),c=r(e("classnames")),o=r(e("prop-types")),f=r(e("../constants/constants")),d=r(e("../components/utils"));function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),l(this,s(t).apply(this,arguments))}var n,o,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,u.default.Component),n=t,(o=[{key:"componentDidMount",value:function(){this.props.controller.state.accessibilityControlsEnabled=!1}},{key:"componentWillUnmount",value:function(){this.props.controller.state.accessibilityControlsEnabled=!0}},{key:"render",value:function(){var e,t,n,o=this.props,r=o.errorCode,a=o.language,i=o.localizableStrings;if(f.default.ERROR_MESSAGE[r.code]){n=f.default.SKIN_TEXT.ERROR_ACTION,f.default.ERROR_MESSAGE[r.code].action&&(n=f.default.ERROR_MESSAGE[r.code].action),e=d.default.getLocalizedString(a,f.default.ERROR_MESSAGE[r.code].title,i),t=d.default.getLocalizedString(a,f.default.ERROR_MESSAGE[r.code].description,i);var l=r.flight_start_time;if(r.code===f.default.ERROR_CODE.FUTURE&&a===f.default.LANGUAGE.ENGLISH&&null!==l&&!Number.isNaN(l)){t="This video will be available in "+"".concat(d.default.getStartCountdown(1e3*l-Date.now()))}n=d.default.getLocalizedString(a,n,i)}else t=d.default.getLocalizedString(a,f.default.SKIN_TEXT.UNKNOWN_ERROR,i),n=e=null;var s=(0,c.default)({"oo-error-content":!0,"oo-center-block":!0});return u.default.createElement("div",{className:"oo-state-screen oo-error-screen"},u.default.createElement("div",{className:s},u.default.createElement("div",{className:"oo-error-title oo-text-uppercase"},e),u.default.createElement("div",{className:"oo-error-description"},t),u.default.createElement("div",{className:"oo-error-action oo-text-uppercase"},n)))}}])&&i(n.prototype,o),r&&i(n,r),t}();h.propTypes={controller:o.default.shape({state:o.default.shape({accessibilityControlsEnabled:o.default.bool.isRequired}).isRequired}).isRequired,errorCode:o.default.shape({code:o.default.string,flight_start_time:o.default.number}).isRequired,language:o.default.string,localizableStrings:o.default.shape({})},h.defaultProps={language:"en",localizableStrings:{}},t.exports=h},{"../components/utils":66,"../constants/constants":73,classnames:90,"prop-types":374,react:382}],83:[function(e,t,n){"use strict";var a=o(e("react")),i=o(e("../../constants/constants"));function o(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.exports=function(o){return function(e){function r(e){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),n=this,o=c(r).call(this,e),p(d(d(t=!o||"object"!==l(o)&&"function"!=typeof o?d(n):o)),"handleTouchEnd",function(e){t.props.controller.state.controlBarVisible||(t.showControlBar(e),t.startHideControlBarTimer())}),p(d(d(t)),"handlePlayerMouseMove",function(){!t.props.controller.state.isMobile&&t.props.fullscreen&&(t.showControlBar(),t.startHideControlBarTimer())}),p(d(d(t)),"handleResize",function(){t.startHideControlBarTimer()}),p(d(d(t)),"handleKeyDown",function(e){-1!==[i.default.KEY_VALUES.TAB,i.default.KEY_VALUES.SPACE,i.default.KEY_VALUES.ENTER,i.default.KEY_VALUES.ARROW_UP,i.default.KEY_VALUES.ARROW_RIGHT,i.default.KEY_VALUES.ARROW_DOWN,i.default.KEY_VALUES.ARROW_LEFT].indexOf(e.key)&&(t.showControlBar(),t.startHideControlBarTimer())}),p(d(d(t)),"handleMouseOut",function(){t.props.controller.state.isMobile||t.hideControlBar()}),p(d(d(t)),"handleMouseOver",function(){t.showControlBar()}),p(d(d(t)),"showControlBar",function(e){(!t.props.controller.state.isMobile||e&&"touchend"===e.type)&&(t.props.controller.showControlBar(),t.autoHideRef.current.style.cursor="auto")}),p(d(d(t)),"hideControlBar",function(){!0===t.props.skinConfig.controlBar.autoHide&&(t.props.controller.hideControlBar(),t.autoHideRef.current.style.cursor="none")}),p(d(d(t)),"startHideControlBarTimer",function(){t.props.controller.startHideControlBarTimer()}),p(d(d(t)),"cancelHideControlBarTimer",function(){t.props.controller.cancelTimer()}),t.handleMouseOver=t.handleMouseOver.bind(d(d(t))),t.hideControlBar=t.hideControlBar.bind(d(d(t))),t.showControlBar=t.showControlBar.bind(d(d(t))),t.handleKeyDown=t.handleKeyDown.bind(d(d(t))),t.startHideControlBarTimer=t.startHideControlBarTimer.bind(d(d(t))),t.cancelHideControlBarTimer=t.cancelHideControlBarTimer.bind(d(d(t))),t.handleMouseOut=t.handleMouseOut.bind(d(d(t))),t.handlePlayerMouseMove=t.handlePlayerMouseMove.bind(d(d(t))),t.handleTouchEnd=t.handleTouchEnd.bind(d(d(t))),t.autoHideRef=a.default.createRef(),t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(r,a.default.Component),u((t=r).prototype,[{key:"componentDidMount",value:function(){document.addEventListener("mousemove",this.handlePlayerMouseMove,!1),document.addEventListener("touchmove",this.handlePlayerMouseMove,!1),(this.props.controller.state.isMobile||this.props.fullscreen||this.props.controller.state.browserSupportsTouch)&&this.startHideControlBarTimer()}},{key:"componentWillReceiveProps",value:function(e){e.componentWidth!==this.props.componentWidth&&this.handleResize()}},{key:"componentWillUpdate",value:function(e){e&&(!this.props.fullscreen&&e.fullscreen&&this.startHideControlBarTimer(),this.props.fullscreen&&!e.fullscreen&&this.props.controller.state.isMobile&&(this.props.controller.showControlBar(),this.startHideControlBarTimer()),e.controller.state.cast.connected&&(this.props.controller.showControlBar(),this.cancelHideControlBarTimer()))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousemove",this.handlePlayerMouseMove),document.removeEventListener("touchmove",this.handlePlayerMouseMove),this.cancelHideControlBarTimer()}},{key:"render",value:function(){return a.default.createElement("div",{ref:this.autoHideRef,onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseOut,onKeyDown:this.handleKeyDown,onTouchEnd:this.handleTouchEnd},a.default.createElement(o,s({},this.props,{hideControlBar:this.hideControlBar,showControlBar:this.showControlBar,startHideControlBarTimer:this.startHideControlBarTimer,cancelHideControlBarTimer:this.cancelHideControlBarTimer})))}}]),n&&u(t,n),r}()}},{"../../constants/constants":73,react:382}],84:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PauseScreenWithAutoHide=n.PauseScreen=void 0;var H=r(e("react")),z=r(e("classnames")),G=r(e("../components/controlBar")),X=r(e("../components/adOverlay")),q=r(e("../components/upNextPanel")),Q=r(e("../components/textTrackPanel")),$=r(e("../components/watermark")),J=r(e("../components/icon")),Z=r(e("../components/skipControls")),ee=r(e("../components/spinner")),te=r(e("../components/utils")),ne=r(e("../constants/constants")),oe=r(e("../components/viewControlsVr")),o=r(e("./higher-order/withAutoHide")),re=r(e("../components/castPanel"));function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ae(){return(ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(e){function o(e){var a,t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=this,n=l(o).call(this,e),f(c(c(a=!n||"object"!==i(n)&&"function"!=typeof n?c(t):n)),"description",null),f(c(c(a)),"startAnimation",function(){a.setState({animate:!0})}),f(c(c(a)),"truncateText",function(){if(a.description){var e=a.props.contentTree;a.setState({descriptionText:te.default.truncateTextToWidth(a.description,e.description)})}}),f(c(c(a)),"handleClick",function(e){var t=a.props,n=t.controller,o=t.handleVrPlayerClick,r=t.isVrMouseMove;n.videoVr&&e.preventDefault(),(r||n.state.isMobile)&&"function"!=typeof n.state.playerParam.onTogglePlayPause||n.togglePlayPause(e),n.state.accessibilityControlsEnabled=!0,n.state.isClickedOutside=!1,o()}),f(c(c(a)),"hideVrPauseButton",function(){if(a.props.controller.videoVr){setTimeout(function(){a.pauseButton&&(a.pauseButton.style.display="none")},1e3)}}),f(c(c(a)),"handlePlayerMouseDown",function(e){e.preventDefault();var t=a.props,n=t.controller,o=t.handleVrPlayerMouseDown;n.videoVr&&e.persist(),n.state.accessibilityControlsEnabled=!0,n.state.isClickedOutside=!1,o(e)}),f(c(c(a)),"handlePlayerMouseMove",function(e){(0,a.props.handleVrPlayerMouseMove)(e)}),f(c(c(a)),"handleFocus",function(e){var t=a.props.controller;(e.target||e.target.hasAttribute(ne.default.KEYBD_FOCUS_ID_ATTR))&&(t.state.accessibilityControlsEnabled=!0,t.state.isClickedOutside=!1)}),a.state={descriptionText:e.contentTree.description,containsText:e.skinConfig.pauseScreen.showTitle&&!!e.contentTree.title||e.skinConfig.pauseScreen.showDescription&&!!e.contentTree.description,animate:!1},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(o,H.default.Component),s(o,null,[{key:"handlePlayerMouseUp",value:function(e){e.stopPropagation()}}]),s(o,[{key:"componentDidMount",value:function(){var e=this.props,t=e.controller,n=e.handleVrPlayerMouseUp,o=e.handleTouchEndOnWindow;this.animateTimer=setTimeout(this.startAnimation,1),this.truncateText(),this.hideVrPauseButton(),t.videoVr&&(document.addEventListener("mousemove",this.handlePlayerMouseMove,!1),document.addEventListener("touchmove",this.handlePlayerMouseMove,{passive:!1}),document.addEventListener("mouseup",n,!1),document.addEventListener("touchend",o,{passive:!1}))}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.componentWidth;e.componentWidth!==t&&this.truncateText()}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.controller,n=e.handleVrPlayerMouseUp,o=e.handleTouchEndOnWindow;clearTimeout(this.animateTimer),t.enablePauseAnimation(),t.videoVr&&(document.removeEventListener("mousemove",this.handlePlayerMouseMove),document.removeEventListener("touchmove",this.handlePlayerMouseMove),document.removeEventListener("mouseup",n),document.removeEventListener("touchend",o))}},{key:"render",value:function(){var t=this,e=this.props,n=e.skinConfig,o=e.pauseAnimationDisabled,r=e.controller,a=e.contentTree,i=e.currentPlayhead,l=e.buffered,s=e.handleTouchEndOnPlayer,u=e.language,c=e.localizableStrings,f=e.responsiveView,d=e.closedCaptionOptions,p=e.playerState,h=e.isLiveStream,m=this.state,y=m.animate,b=m.descriptionText,v=m.containsText,g={color:n.startScreen.titleFont.color},E={color:n.startScreen.descriptionFont.color},S={color:n.pauseScreen.PauseIconStyle.color,opacity:n.pauseScreen.PauseIconStyle.opacity},_=(0,z.default)({"oo-fading-underlay":!0,"oo-fading-underlay-active":o&&r.state.controlBarVisible,"oo-animate-fade":y&&(!o||r.state.cast.connected)&&r.state.controlBarVisible}),T=n.pauseScreen.infoPanelPosition.toLowerCase(),O=(0,z.default)({"oo-state-screen-info":!0,"oo-inactive":!r.state.controlBarVisible,"oo-info-panel-top":-1<T.indexOf("top"),"oo-info-panel-bottom":-1<T.indexOf("bottom"),"oo-info-panel-left":-1<T.indexOf("left"),"oo-info-panel-right":-1<T.indexOf("right")}),C=(0,z.default)({"oo-state-screen-title":!0,"oo-text-truncate":!0,"oo-pull-right":-1<T.indexOf("right")}),A=(0,z.default)({"oo-state-screen-description":!0,"oo-pull-right":-1<T.indexOf("right")}),N=n.pauseScreen.pauseIconPosition.toLowerCase(),w=(0,z.default)({"oo-action-icon-pause":!o,"oo-action-icon":o,"oo-animate-pause":y&&!o,"oo-action-icon-top":-1<N.indexOf("top"),"oo-action-icon-bottom":-1<N.indexOf("bottom"),"oo-action-icon-left":-1<N.indexOf("left"),"oo-action-icon-right":-1<N.indexOf("right"),"oo-hidden":!n.pauseScreen.showPauseIcon||o}),R=H.default.createElement("div",{className:C,style:g},a.title),P=H.default.createElement("div",{className:A,ref:function(e){t.description=e},style:E},b),k=r.state.adOverlayUrl&&r.state.showAdOverlay?H.default.createElement(X.default,ae({},this.props,{overlay:r.state.adOverlayUrl,showOverlay:r.state.showAdOverlay,showOverlayCloseButton:r.state.showAdOverlayCloseButton})):null,I=r.state.upNextInfo.showing&&r.state.upNextInfo.upNextData?H.default.createElement(q.default,ae({},this.props,{controlBarVisible:r.state.controlBarVisible,currentPlayhead:i})):null,L=r.videoVr?H.default.createElement(oe.default,ae({},this.props,{controlBarVisible:r.state.controlBarVisible})):null,D=te.default.getPropertyValue(n,"skipControls.enabled",!1),x=D||r.state.scrubberBar.isHovering;v&&r.state.controlBarVisible?r.addBlur():r.removeBlur();var M=n.startScreen.showPromo?a.promo_image:"",V={};te.default.isValidString(M)&&(V.backgroundImage="url('".concat(M,"')"));var j=(0,z.default)({"oo-blur":!0,"oo-state-screen-poster":"small"!==n.startScreen.promoImageSize,"oo-state-screen-poster-small":"small"===n.startScreen.promoImageSize}),U=(0,z.default)({"oo-info-panel-cast-bottom":D}),B=r.state,F=B.buffering,W=B.cast,Y=F||!W.connected&&0===l&&!h,K=(0,z.default)("oo-interactive-container");return H.default.createElement("div",{className:"oo-state-screen oo-pause-screen"},r.state.cast.connected&&H.default.createElement("div",{className:j,style:V}),!r.videoVr&&v&&H.default.createElement("div",{className:_}),H.default.createElement("div",{className:ne.default.CLASS_NAMES.SELECTABLE_SCREEN,onClick:this.handleClick,onMouseDown:this.handlePlayerMouseDown,onTouchStart:this.handlePlayerMouseDown,onTouchEnd:s,onMouseUp:this.handlePlayerMouseUp}),H.default.createElement($.default,ae({},this.props,{controlBarVisible:r.state.controlBarVisible})),H.default.createElement("div",{className:O},n.pauseScreen.showTitle?R:null,n.pauseScreen.showDescription?P:null),H.default.createElement("button",{ref:function(e){t.pauseButton=e},type:"button",className:w,onClick:this.handleClick,"aria-hidden":"true",tabIndex:"-1"},H.default.createElement(J.default,ae({},this.props,{icon:"pause",style:S}))),r.state.cast.connected&&H.default.createElement(re.default,{language:u,localizableStrings:c,device:r.state.cast.device,className:U}),Y&&H.default.createElement(ee.default,{loadingImage:n.general.loadingImage.imageResource.url}),L,D&&H.default.createElement(Z.default,{className:"oo-absolute-centered",config:r.state.skipControls,language:u,localizableStrings:c,responsiveView:f,skinConfig:n,controller:r,currentPlayhead:i,a11yControls:r.accessibilityControls,isInactive:!r.state.controlBarVisible,isInBackground:r.state.scrubberBar.isHovering,onFocus:this.handleFocus}),H.default.createElement("div",{className:K,onFocus:this.handleFocus},d.enabled&&H.default.createElement(Q.default,{closedCaptionOptions:d,cueText:d.cueText,responsiveView:f,isInBackground:x}),k,I,H.default.createElement(G.default,ae({},this.props,{height:n.controlBar.height,animatingControlBar:!0,controlBarVisible:r.state.controlBarVisible,playerState:p,isLiveStream:h}))))}}]),o}();n.PauseScreen=d;var p=(0,o.default)(d);n.PauseScreenWithAutoHide=p},{"../components/adOverlay":9,"../components/castPanel":12,"../components/controlBar":30,"../components/icon":42,"../components/skipControls":55,"../components/spinner":57,"../components/textTrackPanel":59,"../components/upNextPanel":65,"../components/utils":66,"../components/viewControlsVr":69,"../components/watermark":72,"../constants/constants":73,"./higher-order/withAutoHide":83,classnames:90,react:382}],85:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PlayingScreenWithAutoHide=n.PlayingScreen=void 0;var x=r(e("react")),M=r(e("classnames")),V=r(e("../components/utils")),j=r(e("../components/controlBar")),U=r(e("../components/adOverlay")),B=r(e("../components/upNextPanel")),F=r(e("../components/spinner")),W=r(e("../components/textTrackPanel")),Y=r(e("../components/watermark")),K=r(e("../constants/constants")),H=r(e("../components/viewControlsVr")),z=r(e("../components/icon")),G=r(e("../components/skipControls")),X=r(e("../components/unmuteIcon")),o=r(e("./higher-order/withAutoHide")),q=r(e("../components/castPanel"));function r(e){return e&&e.__esModule?e:{default:e}}function Q(){return(Q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function $(e){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e){function o(e){var l,t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=this,n=i(o).call(this,e),u(s(s(l=!n||"object"!==$(n)&&"function"!=typeof n?s(t):n)),"handleVrAnimationEnd",function(n,o){if(n){n.addEventListener("animationend",function e(){if(o){var t={};t[o]=!0,l.setState(t)}n.removeEventListener("animationend",e,!1)},!1)}}),u(s(s(l)),"handleFocus",function(e){var t=l.props,n=t.controller,o=t.showControlBar,r=t.startHideControlBarTimer,a=e.target||e.target.hasAttribute(K.default.KEYBD_FOCUS_ID_ATTR);!n.state.controlBarVisible&&a&&("function"==typeof o&&o(),"function"==typeof r&&r(),n.state.accessibilityControlsEnabled=!0,n.state.isClickedOutside=!1)}),u(s(s(l)),"handlePlayerMouseDown",function(e){var t=l.props,n=t.controller,o=t.handleVrPlayerMouseDown;e.preventDefault(),n.videoVr&&e.persist(),o(e)}),u(s(s(l)),"handlePlayerMouseMove",function(e){var t=l.props.handleVrPlayerMouseMove;l.storeMousePosition(e),t(e)}),u(s(s(l)),"handlePlayerMouseUp",function(e){var t=l.props,n=t.controller,o=t.handleVrPlayerMouseUp;l.isMobile||(e.stopPropagation(),n.videoVr||n.togglePlayPause(e),n.state.accessibilityControlsEnabled=!0,n.state.isClickedOutside=!1),o(e)}),u(s(s(l)),"handleMouseOver",function(e){l.storeMousePosition(e)}),u(s(s(l)),"handleTouchStart",function(){l.hasCheckedMouseOverControls=!0}),u(s(s(l)),"storeMousePosition",function(e){e&&(l.mousePosition.clientX=e.clientX,l.mousePosition.clientY=e.clientY,l.tryCheckMouseOverControls())}),u(s(s(l)),"onSkipControlsMount",function(e){l.skipControlsClientRect=e,l.tryCheckMouseOverControls()}),u(s(s(l)),"tryCheckMouseOverControls",function(){if(!l.hasCheckedMouseOverControls&&l.skipControlsClientRect&&l.mousePosition.clientX&&l.mousePosition.clientY){if(V.default.isMouseInsideRect(l.mousePosition,l.skipControlsClientRect)){var e=l.props.cancelHideControlBarTimer;"function"==typeof e&&e()}l.hasCheckedMouseOverControls=!0}}),u(s(s(l)),"handlePlayerClicked",function(e){var t=l.props,n=t.isVrMouseMove,o=t.controller,r=t.handleVrPlayerClick;(n||l.isMobile)&&"function"!=typeof o.state.playerParam.onTogglePlayPause||o.togglePlayPause(e),r()}),u(s(s(l)),"handlePlayerFocus",function(){(0,l.props.handleVrPlayerFocus)()}),u(s(s(l)),"setAnimationDuration",function(e,t){var n=l.props.controller,o={},r=V.default.ensureNumber(t,3),a=n.state.config.animationDurations;if(null!==a&&"object"===$(a)&&void 0!==a[e]){var i="".concat(V.default.ensureNumber(a[e],r),"s");o={animationDuration:i,webkitAnimationDuration:i}}return o}),l.isMobile=e.controller.state.isMobile,l.skipControlsClientRect=null,l.hasCheckedMouseOverControls=!1,l.mousePosition={clientX:0,clientY:0},l.state={isVrNotificationHidden:!1,isVrIconHidden:!1},l}var t,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(o,x.default.Component),t=o,(n=[{key:"componentWillMount",value:function(){(0,this.props.handleVrPlayerMouseUp)()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.controller,n=e.handleTouchEndOnWindow;t.videoVr&&(document.addEventListener("mousemove",this.handlePlayerMouseMove,!1),document.addEventListener("mouseup",this.handlePlayerMouseUp,!1),document.addEventListener("touchmove",this.handlePlayerMouseMove,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),this.handleVrAnimationEnd(this.vrNotificatioContainer,"isVrNotificationHidden"),this.handleVrAnimationEnd(this.vrIconContainer,"isVrIconHidden"))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.controller,n=e.handleTouchEndOnWindow;t.videoVr&&(document.removeEventListener("mousemove",this.handlePlayerMouseMove),document.removeEventListener("touchmove",this.handlePlayerMouseMove),document.removeEventListener("mouseup",this.handlePlayerMouseUp),document.removeEventListener("touchend",n))}},{key:"render",value:function(){var t=this,e=this.props,n=e.controller,o=e.currentPlayhead,r=e.skinConfig,a=e.contentTree,i=e.buffered,l=e.handleTouchEndOnPlayer,s=e.language,u=e.localizableStrings,c=e.responsiveView,f=e.closedCaptionOptions,d=e.playerState,p=e.isLiveStream,h=this.state,m=h.isVrNotificationHidden,y=h.isVrIconHidden,b=n.state.adOverlayUrl&&n.state.showAdOverlay?x.default.createElement(U.default,Q({},this.props,{overlay:n.state.adOverlayUrl,showOverlay:n.state.showAdOverlay,showOverlayCloseButton:n.state.showAdOverlayCloseButton})):null,v=n.state.upNextInfo.showing&&n.state.upNextInfo.upNextData?x.default.createElement(B.default,Q({},this.props,{controlBarVisible:n.state.controlBarVisible,currentPlayhead:o})):null,g=n.videoVr?x.default.createElement(H.default,Q({},this.props,{controlBarVisible:n.state.controlBarVisible})):null,E=n.state.volumeState.mutingForAutoplay&&n.state.volumeState.muted,S=null;if(null!==n.state.config.isVrAnimationEnabled&&"object"===$(n.state.config.isVrAnimationEnabled)&&n.state.config.isVrAnimationEnabled.vrNotification&&n.videoVr&&!m&&n.isNewVrVideo){var _=this.setAnimationDuration("vrNotification",5);S=x.default.createElement("div",{ref:function(e){t.vrNotificatioContainer=e},className:"oo-state-screen-vr-notification-container"},x.default.createElement("p",{className:"oo-state-screen-vr-notification",style:_},"Select and drag to look around"))}var T=null;if(null!==n.state.config.isVrAnimationEnabled&&"object"===$(n.state.config.isVrAnimationEnabled)&&n.state.config.isVrAnimationEnabled.vrIcon&&n.videoVr&&!y&&n.isNewVrVideo){var O=this.setAnimationDuration("vrIcon",3);T=x.default.createElement("div",{ref:function(e){t.vrIconContainer=e},className:"oo-state-screen-vr-container",style:O},x.default.createElement("div",{className:"oo-state-screen-vr-bg"},x.default.createElement(z.default,Q({},this.props,{icon:"vrIcon",className:"oo-state-screen-vr-icon"}))))}var C=V.default.getPropertyValue(r,"skipControls.enabled",!1),A=n.state.scrubberBar.isHovering||C&&n.state.controlBarVisible,N=(0,M.default)("oo-state-screen oo-playing-screen",{"oo-controls-active":C&&n.state.controlBarVisible,"oo-hide-cursor":!n.state.controlBarVisible&&n.state.fullscreen}),w=r.startScreen.showPromo?a.promo_image:"",R={};V.default.isValidString(w)&&(R.backgroundImage="url('".concat(w,"')"));var P=(0,M.default)({"oo-blur":!0,"oo-state-screen-poster":"small"!==r.startScreen.promoImageSize,"oo-state-screen-poster-small":"small"===r.startScreen.promoImageSize}),k=(0,M.default)({"oo-info-panel-cast-bottom":C});n.state.cast.connected?n.addBlur():n.removeBlur();var I=(0,M.default)({"oo-fading-underlay":!0,"oo-fading-underlay-active":n.state.cast.connected,"oo-animate-fade":!0}),L=n.state.buffering||0===i&&!p,D=(0,M.default)("oo-interactive-container");return x.default.createElement("div",{className:N,onTouchStart:this.handleTouchStart,onMouseOver:this.handleMouseOver},n.state.cast.connected&&x.default.createElement("div",{className:P,style:R}),n.state.cast.connected&&x.default.createElement("div",{className:I}),x.default.createElement("div",{className:K.default.CLASS_NAMES.SELECTABLE_SCREEN,onMouseDown:this.handlePlayerMouseDown,onTouchStart:this.handlePlayerMouseDown,onTouchEnd:l,onClick:this.handlePlayerClicked,onFocus:this.handlePlayerFocus}),S,T,x.default.createElement(Y.default,Q({},this.props,{controlBarVisible:n.state.controlBarVisible})),n.state.cast.connected&&x.default.createElement(q.default,{language:s,localizableStrings:u,device:n.state.cast.device,className:k}),L&&x.default.createElement(F.default,{loadingImage:r.general.loadingImage.imageResource.url}),g,C&&x.default.createElement(G.default,{className:"oo-absolute-centered",config:n.state.skipControls,language:s,localizableStrings:u,responsiveView:c,skinConfig:r,controller:n,currentPlayhead:o,a11yControls:n.accessibilityControls,isInactive:!n.state.controlBarVisible,isInBackground:n.state.scrubberBar.isHovering,onMount:this.onSkipControlsMount,onFocus:this.handleFocus}),x.default.createElement("div",{className:D,onFocus:this.handleFocus},f.enabled&&x.default.createElement(W.default,{closedCaptionOptions:f,cueText:f.cueText,responsiveView:c,isInBackground:A}),b,v,x.default.createElement(j.default,Q({},this.props,{height:r.controlBar.height,animatingControlBar:!0,controlBarVisible:n.state.controlBarVisible,playerState:d,isLiveStream:p}))),E?x.default.createElement(X.default,this.props):null)}}])&&a(t.prototype,n),r&&a(t,r),o}();n.PlayingScreen=c;var f=(0,o.default)(c);n.PlayingScreenWithAutoHide=f},{"../components/adOverlay":9,"../components/castPanel":12,"../components/controlBar":30,"../components/icon":42,"../components/skipControls":55,"../components/spinner":57,"../components/textTrackPanel":59,"../components/unmuteIcon":64,"../components/upNextPanel":65,"../components/utils":66,"../components/viewControlsVr":69,"../components/watermark":72,"../constants/constants":73,"./higher-order/withAutoHide":83,classnames:90,react:382}],86:[function(e,t,n){"use strict";var r=i(e("react")),o=i(e("prop-types")),a=i(e("../components/utils")),f=i(e("../constants/constants"));function i(e){return e&&e.__esModule?e:{default:e}}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=function(e){function c(){var e,r,t,n,o,a,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];return t=this,n=(e=p(c)).call.apply(e,[this].concat(s)),r=!n||"object"!==d(n)&&"function"!=typeof n?h(t):n,o=h(h(r)),i=function(e){var t=r.props,n=t.closeActionEnabled,o=t.closeAction;n&&"function"==typeof o&&(e.which!==f.default.KEYCODES.ESCAPE_KEY&&e.keyCode!==f.default.KEYCODES.ESCAPE_KEY||o({restoreToggleButtonFocus:!!r.domElement&&r.domElement.contains(e.target)}))},(a="onKeyDown")in o?Object.defineProperty(o,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[a]=i,r}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(c,r.default.Component),t=c,(n=[{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.onKeyDown),this.props.autoFocus&&a.default.autoFocusFirstElement(this.domElement)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown)}},{key:"render",value:function(){var t=this,e=this.props,n=e.children,o=e.popoverClassName;return r.default.createElement("div",{ref:function(e){t.domElement=e},className:o},n)}}])&&l(t.prototype,n),o&&l(t,o),c}();u.propTypes={autoFocus:o.default.bool,popoverClassName:o.default.string,children:o.default.oneOfType([o.default.arrayOf(o.default.node),o.default.node]).isRequired,closeActionEnabled:o.default.bool,closeAction:o.default.func},u.defaultProps={autoFocus:!1,popoverClassName:"oo-popover",closeActionEnabled:!1,closeAction:function(){}},t.exports=u},{"../components/utils":66,"../constants/constants":73,"prop-types":374,react:382}],87:[function(e,t,n){"use strict";var N=r(e("react")),w=r(e("classnames")),o=r(e("prop-types")),R=r(e("../constants/constants")),P=r(e("../components/watermark")),k=r(e("../components/icon")),I=r(e("../components/spinner")),L=r(e("../components/utils"));function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(){return(D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){function o(e){var r,t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=this,n=l(o).call(this,e),c(u(u(r=!n||"object"!==a(n)&&"function"!=typeof n?u(t):n)),"description",null),c(u(u(r)),"componentWillReceiveProps",function(e){var t=r.props.componentWidth;e.componentWidth!==t&&r.truncateText()}),c(u(u(r)),"truncateText",function(){if(r.description){var e=r.props.contentTree,t=L.default.truncateTextToWidth(r.description,e.description);r.setState({descriptionText:t})}}),c(u(u(r)),"handleClick",function(e){var t=r.props,n=t.isInitializing,o=t.controller;n||(e.preventDefault(),o.togglePlayPause(),o.state.accessibilityControlsEnabled=!0,r.setState({playButtonClicked:!0}))}),r.state={playButtonClicked:!1,descriptionText:e.contentTree.description},r}var t,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(o,N.default.Component),t=o,(n=[{key:"componentDidMount",value:function(){this.truncateText()}},{key:"render",value:function(){var t=this,e=this.props,n=e.skinConfig,o=e.contentTree,r=e.controller,a=e.isInitializing,i=e.showSpinner,l=this.state,s=l.descriptionText,u=l.playButtonClicked,c={color:n.startScreen.titleFont.color},f={color:n.startScreen.descriptionFont.color},d={color:n.startScreen.playIconStyle.color,opacity:n.startScreen.playIconStyle.opacity},p=n.startScreen.showPromo?o.promo_image:"",h={};L.default.isValidString(p)&&(h.backgroundImage="url('".concat(p,"')"));var m,y,b=(0,w.default)({"oo-state-screen-poster":"small"!==n.startScreen.promoImageSize,"oo-state-screen-poster-small":"small"===n.startScreen.promoImageSize}),v=n.startScreen.infoPanelPosition.toLowerCase(),g=n.startScreen.playButtonPosition.toLowerCase(),E=(0,w.default)({"oo-state-screen-info":!0,"oo-info-panel-top":-1<v.indexOf("top"),"oo-info-panel-bottom":-1<v.indexOf("bottom"),"oo-info-panel-left":-1<v.indexOf("left"),"oo-info-panel-right":-1<v.indexOf("right")}),S=(0,w.default)({"oo-state-screen-title":!0,"oo-text-truncate":!0,"oo-pull-right":-1<v.indexOf("right")}),_=(0,w.default)({"oo-state-screen-description":!0,"oo-pull-right":-1<v.indexOf("right")}),T=(0,w.default)({"oo-action-icon":!0,"oo-action-icon-top":-1<g.indexOf("top"),"oo-action-icon-bottom":-1<g.indexOf("bottom"),"oo-action-icon-left":-1<g.indexOf("left"),"oo-action-icon-right":-1<g.indexOf("right"),"oo-hidden":!n.startScreen.showPlayButton}),O=N.default.createElement("div",{className:S,style:c},o.title),C=r.state.playerState===R.default.STATE.END?"replay":"play",A=N.default.createElement("div",{className:_,ref:function(e){t.description=e},style:f},s||o.description);return a||(m=N.default.createElement("button",{type:"button",className:T,onMouseUp:L.default.blurOnMouseUp,onClick:this.handleClick,tabIndex:"0","aria-label":R.default.ARIA_LABELS.START_PLAYBACK},N.default.createElement(k.default,D({},this.props,{icon:C,style:d}))),y=N.default.createElement("div",{className:E},n.startScreen.showTitle?O:null,n.startScreen.showDescription?A:null)),N.default.createElement("div",{className:"oo-state-screen oo-start-screen"},N.default.createElement("div",{className:b,style:h},N.default.createElement("div",{className:"oo-start-screen-linear-gradient"}),N.default.createElement("a",{className:"oo-state-screen-selectable",onClick:this.handleClick})),N.default.createElement(P.default,D({},this.props,{controlBarVisible:!1})),y,u&&r.state.playerState===R.default.STATE.START||r.state.buffering||i?N.default.createElement(I.default,{loadingImage:n.general.loadingImage.imageResource.url}):m)}}])&&i(t.prototype,n),r&&i(t,r),o}();f.propTypes={isInitializing:o.default.bool,skinConfig:o.default.shape({startScreen:o.default.shape({playIconStyle:o.default.shape({color:o.default.string})}),icons:o.default.objectOf(o.default.object)}),showSpinner:o.default.bool,controller:o.default.shape({togglePlayPause:o.default.func,state:o.default.shape({playerState:o.default.string,buffering:o.default.bool})}),contentTree:o.default.shape({promo_image:o.default.string,description:o.default.string,title:o.default.string})},f.defaultProps={isInitializing:!1,skinConfig:{general:{loadingImage:{imageResource:{url:null}}},startScreen:{titleFont:{},descriptionFont:{},playIconStyle:{color:"white"},infoPanelPosition:"topLeft",playButtonPosition:"center",showPlayButton:!0,showPromo:!0,showTitle:!0,showDescription:!0,promoImageSize:"default"},icons:{play:{fontStyleClass:"oo-icon oo-icon-play"},replay:{fontStyleClass:"oo-icon oo-icon-upnext-replay"}}},controller:{togglePlayPause:function(){},state:{playerState:"start",buffering:!1}},contentTree:{promo_image:"",description:"",title:""},showSpinner:!1},t.exports=f},{"../components/icon":42,"../components/spinner":57,"../components/utils":66,"../components/watermark":72,"../constants/constants":73,classnames:90,"prop-types":374,react:382}],88:[function(e,t,n){"use strict";e("core-js/es6"),e("core-js/fn/array/includes"),e("core-js/fn/string/pad-start"),e("core-js/fn/string/pad-end"),e("core-js/fn/symbol/async-iterator"),e("core-js/fn/object/get-own-property-descriptors"),e("core-js/fn/object/values"),e("core-js/fn/object/entries"),e("core-js/fn/promise/finally"),e("core-js/web"),e("regenerator-runtime/runtime")},{"core-js/es6":91,"core-js/fn/array/includes":92,"core-js/fn/object/entries":93,"core-js/fn/object/get-own-property-descriptors":94,"core-js/fn/object/values":95,"core-js/fn/promise/finally":96,"core-js/fn/string/pad-end":97,"core-js/fn/string/pad-start":98,"core-js/fn/symbol/async-iterator":99,"core-js/web":364,"regenerator-runtime/runtime":383}],89:[function(e,t,n){e("./lib/noConflict")},{"./lib/noConflict":88}],90:[function(e,t,n){!function(){"use strict";var i={}.hasOwnProperty;function l(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var r=l.apply(null,n);r&&e.push(r)}else if("object"===o)for(var a in n)i.call(n,a)&&n[a]&&e.push(a)}}return e.join(" ")}void 0!==t&&t.exports?(l.default=l,t.exports=l):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return l}):window.classNames=l}()},{}],91:[function(e,t,n){e("../modules/es6.symbol"),e("../modules/es6.object.create"),e("../modules/es6.object.define-property"),e("../modules/es6.object.define-properties"),e("../modules/es6.object.get-own-property-descriptor"),e("../modules/es6.object.get-prototype-of"),e("../modules/es6.object.keys"),e("../modules/es6.object.get-own-property-names"),e("../modules/es6.object.freeze"),e("../modules/es6.object.seal"),e("../modules/es6.object.prevent-extensions"),e("../modules/es6.object.is-frozen"),e("../modules/es6.object.is-sealed"),e("../modules/es6.object.is-extensible"),e("../modules/es6.object.assign"),e("../modules/es6.object.is"),e("../modules/es6.object.set-prototype-of"),e("../modules/es6.object.to-string"),e("../modules/es6.function.bind"),e("../modules/es6.function.name"),e("../modules/es6.function.has-instance"),e("../modules/es6.parse-int"),e("../modules/es6.parse-float"),e("../modules/es6.number.constructor"),e("../modules/es6.number.to-fixed"),e("../modules/es6.number.to-precision"),e("../modules/es6.number.epsilon"),e("../modules/es6.number.is-finite"),e("../modules/es6.number.is-integer"),e("../modules/es6.number.is-nan"),e("../modules/es6.number.is-safe-integer"),e("../modules/es6.number.max-safe-integer"),e("../modules/es6.number.min-safe-integer"),e("../modules/es6.number.parse-float"),e("../modules/es6.number.parse-int"),e("../modules/es6.math.acosh"),e("../modules/es6.math.asinh"),e("../modules/es6.math.atanh"),e("../modules/es6.math.cbrt"),e("../modules/es6.math.clz32"),e("../modules/es6.math.cosh"),e("../modules/es6.math.expm1"),e("../modules/es6.math.fround"),e("../modules/es6.math.hypot"),e("../modules/es6.math.imul"),e("../modules/es6.math.log10"),e("../modules/es6.math.log1p"),e("../modules/es6.math.log2"),e("../modules/es6.math.sign"),e("../modules/es6.math.sinh"),e("../modules/es6.math.tanh"),e("../modules/es6.math.trunc"),e("../modules/es6.string.from-code-point"),e("../modules/es6.string.raw"),e("../modules/es6.string.trim"),e("../modules/es6.string.iterator"),e("../modules/es6.string.code-point-at"),e("../modules/es6.string.ends-with"),e("../modules/es6.string.includes"),e("../modules/es6.string.repeat"),e("../modules/es6.string.starts-with"),e("../modules/es6.string.anchor"),e("../modules/es6.string.big"),e("../modules/es6.string.blink"),e("../modules/es6.string.bold"),e("../modules/es6.string.fixed"),e("../modules/es6.string.fontcolor"),e("../modules/es6.string.fontsize"),e("../modules/es6.string.italics"),e("../modules/es6.string.link"),e("../modules/es6.string.small"),e("../modules/es6.string.strike"),e("../modules/es6.string.sub"),e("../modules/es6.string.sup"),e("../modules/es6.date.now"),e("../modules/es6.date.to-json"),e("../modules/es6.date.to-iso-string"),e("../modules/es6.date.to-string"),e("../modules/es6.date.to-primitive"),e("../modules/es6.array.is-array"),e("../modules/es6.array.from"),e("../modules/es6.array.of"),e("../modules/es6.array.join"),e("../modules/es6.array.slice"),e("../modules/es6.array.sort"),e("../modules/es6.array.for-each"),e("../modules/es6.array.map"),e("../modules/es6.array.filter"),e("../modules/es6.array.some"),e("../modules/es6.array.every"),e("../modules/es6.array.reduce"),e("../modules/es6.array.reduce-right"),e("../modules/es6.array.index-of"),e("../modules/es6.array.last-index-of"),e("../modules/es6.array.copy-within"),e("../modules/es6.array.fill"),e("../modules/es6.array.find"),e("../modules/es6.array.find-index"),e("../modules/es6.array.species"),e("../modules/es6.array.iterator"),e("../modules/es6.regexp.constructor"),e("../modules/es6.regexp.to-string"),e("../modules/es6.regexp.flags"),e("../modules/es6.regexp.match"),e("../modules/es6.regexp.replace"),e("../modules/es6.regexp.search"),e("../modules/es6.regexp.split"),e("../modules/es6.promise"),e("../modules/es6.map"),e("../modules/es6.set"),e("../modules/es6.weak-map"),e("../modules/es6.weak-set"),e("../modules/es6.typed.array-buffer"),e("../modules/es6.typed.data-view"),e("../modules/es6.typed.int8-array"),e("../modules/es6.typed.uint8-array"),e("../modules/es6.typed.uint8-clamped-array"),e("../modules/es6.typed.int16-array"),e("../modules/es6.typed.uint16-array"),e("../modules/es6.typed.int32-array"),e("../modules/es6.typed.uint32-array"),e("../modules/es6.typed.float32-array"),e("../modules/es6.typed.float64-array"),e("../modules/es6.reflect.apply"),e("../modules/es6.reflect.construct"),e("../modules/es6.reflect.define-property"),e("../modules/es6.reflect.delete-property"),e("../modules/es6.reflect.enumerate"),e("../modules/es6.reflect.get"),e("../modules/es6.reflect.get-own-property-descriptor"),e("../modules/es6.reflect.get-prototype-of"),e("../modules/es6.reflect.has"),e("../modules/es6.reflect.is-extensible"),e("../modules/es6.reflect.own-keys"),e("../modules/es6.reflect.prevent-extensions"),e("../modules/es6.reflect.set"),e("../modules/es6.reflect.set-prototype-of"),t.exports=e("../modules/_core")},{"../modules/_core":118,"../modules/es6.array.copy-within":216,"../modules/es6.array.every":217,"../modules/es6.array.fill":218,"../modules/es6.array.filter":219,"../modules/es6.array.find":221,"../modules/es6.array.find-index":220,"../modules/es6.array.for-each":222,"../modules/es6.array.from":223,"../modules/es6.array.index-of":224,"../modules/es6.array.is-array":225,"../modules/es6.array.iterator":226,"../modules/es6.array.join":227,"../modules/es6.array.last-index-of":228,"../modules/es6.array.map":229,"../modules/es6.array.of":230,"../modules/es6.array.reduce":232,"../modules/es6.array.reduce-right":231,"../modules/es6.array.slice":233,"../modules/es6.array.some":234,"../modules/es6.array.sort":235,"../modules/es6.array.species":236,"../modules/es6.date.now":237,"../modules/es6.date.to-iso-string":238,"../modules/es6.date.to-json":239,"../modules/es6.date.to-primitive":240,"../modules/es6.date.to-string":241,"../modules/es6.function.bind":242,"../modules/es6.function.has-instance":243,"../modules/es6.function.name":244,"../modules/es6.map":245,"../modules/es6.math.acosh":246,"../modules/es6.math.asinh":247,"../modules/es6.math.atanh":248,"../modules/es6.math.cbrt":249,"../modules/es6.math.clz32":250,"../modules/es6.math.cosh":251,"../modules/es6.math.expm1":252,"../modules/es6.math.fround":253,"../modules/es6.math.hypot":254,"../modules/es6.math.imul":255,"../modules/es6.math.log10":256,"../modules/es6.math.log1p":257,"../modules/es6.math.log2":258,"../modules/es6.math.sign":259,"../modules/es6.math.sinh":260,"../modules/es6.math.tanh":261,"../modules/es6.math.trunc":262,"../modules/es6.number.constructor":263,"../modules/es6.number.epsilon":264,"../modules/es6.number.is-finite":265,"../modules/es6.number.is-integer":266,"../modules/es6.number.is-nan":267,"../modules/es6.number.is-safe-integer":268,"../modules/es6.number.max-safe-integer":269,"../modules/es6.number.min-safe-integer":270,"../modules/es6.number.parse-float":271,"../modules/es6.number.parse-int":272,"../modules/es6.number.to-fixed":273,"../modules/es6.number.to-precision":274,"../modules/es6.object.assign":275,"../modules/es6.object.create":276,"../modules/es6.object.define-properties":277,"../modules/es6.object.define-property":278,"../modules/es6.object.freeze":279,"../modules/es6.object.get-own-property-descriptor":280,"../modules/es6.object.get-own-property-names":281,"../modules/es6.object.get-prototype-of":282,"../modules/es6.object.is":286,"../modules/es6.object.is-extensible":283,"../modules/es6.object.is-frozen":284,"../modules/es6.object.is-sealed":285,"../modules/es6.object.keys":287,"../modules/es6.object.prevent-extensions":288,"../modules/es6.object.seal":289,"../modules/es6.object.set-prototype-of":290,"../modules/es6.object.to-string":291,"../modules/es6.parse-float":292,"../modules/es6.parse-int":293,"../modules/es6.promise":294,"../modules/es6.reflect.apply":295,"../modules/es6.reflect.construct":296,"../modules/es6.reflect.define-property":297,"../modules/es6.reflect.delete-property":298,"../modules/es6.reflect.enumerate":299,"../modules/es6.reflect.get":302,"../modules/es6.reflect.get-own-property-descriptor":300,"../modules/es6.reflect.get-prototype-of":301,"../modules/es6.reflect.has":303,"../modules/es6.reflect.is-extensible":304,"../modules/es6.reflect.own-keys":305,"../modules/es6.reflect.prevent-extensions":306,"../modules/es6.reflect.set":308,"../modules/es6.reflect.set-prototype-of":307,"../modules/es6.regexp.constructor":309,"../modules/es6.regexp.flags":310,"../modules/es6.regexp.match":311,"../modules/es6.regexp.replace":312,"../modules/es6.regexp.search":313,"../modules/es6.regexp.split":314,"../modules/es6.regexp.to-string":315,"../modules/es6.set":316,"../modules/es6.string.anchor":317,"../modules/es6.string.big":318,"../modules/es6.string.blink":319,"../modules/es6.string.bold":320,"../modules/es6.string.code-point-at":321,"../modules/es6.string.ends-with":322,"../modules/es6.string.fixed":323,"../modules/es6.string.fontcolor":324,"../modules/es6.string.fontsize":325,"../modules/es6.string.from-code-point":326,"../modules/es6.string.includes":327,"../modules/es6.string.italics":328,"../modules/es6.string.iterator":329,"../modules/es6.string.link":330,"../modules/es6.string.raw":331,"../modules/es6.string.repeat":332,"../modules/es6.string.small":333,"../modules/es6.string.starts-with":334,"../modules/es6.string.strike":335,"../modules/es6.string.sub":336,"../modules/es6.string.sup":337,"../modules/es6.string.trim":338,"../modules/es6.symbol":339,"../modules/es6.typed.array-buffer":340,"../modules/es6.typed.data-view":341,"../modules/es6.typed.float32-array":342,"../modules/es6.typed.float64-array":343,"../modules/es6.typed.int16-array":344,"../modules/es6.typed.int32-array":345,"../modules/es6.typed.int8-array":346,"../modules/es6.typed.uint16-array":347,"../modules/es6.typed.uint32-array":348,"../modules/es6.typed.uint8-array":349,"../modules/es6.typed.uint8-clamped-array":350,"../modules/es6.weak-map":351,"../modules/es6.weak-set":352}],92:[function(e,t,n){e("../../modules/es7.array.includes"),t.exports=e("../../modules/_core").Array.includes},{"../../modules/_core":118,"../../modules/es7.array.includes":353}],93:[function(e,t,n){e("../../modules/es7.object.entries"),t.exports=e("../../modules/_core").Object.entries},{"../../modules/_core":118,"../../modules/es7.object.entries":354}],94:[function(e,t,n){e("../../modules/es7.object.get-own-property-descriptors"),t.exports=e("../../modules/_core").Object.getOwnPropertyDescriptors},{"../../modules/_core":118,"../../modules/es7.object.get-own-property-descriptors":355}],95:[function(e,t,n){e("../../modules/es7.object.values"),t.exports=e("../../modules/_core").Object.values},{"../../modules/_core":118,"../../modules/es7.object.values":356}],96:[function(e,t,n){"use strict";e("../../modules/es6.promise"),e("../../modules/es7.promise.finally"),t.exports=e("../../modules/_core").Promise.finally},{"../../modules/_core":118,"../../modules/es6.promise":294,"../../modules/es7.promise.finally":357}],97:[function(e,t,n){e("../../modules/es7.string.pad-end"),t.exports=e("../../modules/_core").String.padEnd},{"../../modules/_core":118,"../../modules/es7.string.pad-end":358}],98:[function(e,t,n){e("../../modules/es7.string.pad-start"),t.exports=e("../../modules/_core").String.padStart},{"../../modules/_core":118,"../../modules/es7.string.pad-start":359}],99:[function(e,t,n){e("../../modules/es7.symbol.async-iterator"),t.exports=e("../../modules/_wks-ext").f("asyncIterator")},{"../../modules/_wks-ext":213,"../../modules/es7.symbol.async-iterator":360}],100:[function(e,t,n){t.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},{}],101:[function(e,t,n){var o=e("./_cof");t.exports=function(e,t){if("number"!=typeof e&&"Number"!=o(e))throw TypeError(t);return+e}},{"./_cof":114}],102:[function(e,t,n){var o=e("./_wks")("unscopables"),r=Array.prototype;null==r[o]&&e("./_hide")(r,o,{}),t.exports=function(e){r[o][e]=!0}},{"./_hide":136,"./_wks":214}],103:[function(e,t,n){t.exports=function(e,t,n,o){if(!(e instanceof t)||void 0!==o&&o in e)throw TypeError(n+": incorrect invocation!");return e}},{}],104:[function(e,t,n){var o=e("./_is-object");t.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},{"./_is-object":145}],105:[function(e,t,n){"use strict";var u=e("./_to-object"),c=e("./_to-absolute-index"),f=e("./_to-length");t.exports=[].copyWithin||function(e,t){var n=u(this),o=f(n.length),r=c(e,o),a=c(t,o),i=2<arguments.length?arguments[2]:void 0,l=Math.min((void 0===i?o:c(i,o))-a,o-r),s=1;for(a<r&&r<a+l&&(s=-1,a+=l-1,r+=l-1);0<l--;)a in n?n[r]=n[a]:delete n[r],r+=s,a+=s;return n}},{"./_to-absolute-index":199,"./_to-length":203,"./_to-object":204}],106:[function(e,t,n){"use strict";var l=e("./_to-object"),s=e("./_to-absolute-index"),u=e("./_to-length");t.exports=function(e){for(var t=l(this),n=u(t.length),o=arguments.length,r=s(1<o?arguments[1]:void 0,n),a=2<o?arguments[2]:void 0,i=void 0===a?n:s(a,n);r<i;)t[r++]=e;return t}},{"./_to-absolute-index":199,"./_to-length":203,"./_to-object":204}],107:[function(e,t,n){var s=e("./_to-iobject"),u=e("./_to-length"),c=e("./_to-absolute-index");t.exports=function(l){return function(e,t,n){var o,r=s(e),a=u(r.length),i=c(n,a);if(l&&t!=t){for(;i<a;)if((o=r[i++])!=o)return!0}else for(;i<a;i++)if((l||i in r)&&r[i]===t)return l||i||0;return!l&&-1}}},{"./_to-absolute-index":199,"./_to-iobject":202,"./_to-length":203}],108:[function(e,t,n){var g=e("./_ctx"),E=e("./_iobject"),S=e("./_to-object"),_=e("./_to-length"),o=e("./_array-species-create");t.exports=function(f,e){var d=1==f,p=2==f,h=3==f,m=4==f,y=6==f,b=5==f||y,v=e||o;return function(e,t,n){for(var o,r,a=S(e),i=E(a),l=g(t,n,3),s=_(i.length),u=0,c=d?v(e,s):p?v(e,0):void 0;u<s;u++)if((b||u in i)&&(r=l(o=i[u],u,a),f))if(d)c[u]=r;else if(r)switch(f){case 3:return!0;case 5:return o;case 6:return u;case 2:c.push(o)}else if(m)return!1;return y?-1:h||m?m:c}}},{"./_array-species-create":111,"./_ctx":120,"./_iobject":141,"./_to-length":203,"./_to-object":204}],109:[function(e,t,n){var c=e("./_a-function"),f=e("./_to-object"),d=e("./_iobject"),p=e("./_to-length");t.exports=function(e,t,n,o,r){c(t);var a=f(e),i=d(a),l=p(a.length),s=r?l-1:0,u=r?-1:1;if(n<2)for(;;){if(s in i){o=i[s],s+=u;break}if(s+=u,r?s<0:l<=s)throw TypeError("Reduce of empty array with no initial value")}for(;r?0<=s:s<l;s+=u)s in i&&(o=t(o,i[s],s,a));return o}},{"./_a-function":100,"./_iobject":141,"./_to-length":203,"./_to-object":204}],110:[function(e,t,n){var o=e("./_is-object"),r=e("./_is-array"),a=e("./_wks")("species");t.exports=function(e){var t;return r(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!r(t.prototype)||(t=void 0),o(t)&&null===(t=t[a])&&(t=void 0)),void 0===t?Array:t}},{"./_is-array":143,"./_is-object":145,"./_wks":214}],111:[function(e,t,n){var o=e("./_array-species-constructor");t.exports=function(e,t){return new(o(e))(t)}},{"./_array-species-constructor":110}],112:[function(e,t,n){"use strict";var a=e("./_a-function"),i=e("./_is-object"),l=e("./_invoke"),s=[].slice,u={};t.exports=Function.bind||function(t){var n=a(this),o=s.call(arguments,1),r=function(){var e=o.concat(s.call(arguments));return this instanceof r?function(e,t,n){if(!(t in u)){for(var o=[],r=0;r<t;r++)o[r]="a["+r+"]";u[t]=Function("F,a","return new F("+o.join(",")+")")}return u[t](e,n)}(n,e.length,e):l(n,e,t)};return i(n.prototype)&&(r.prototype=n.prototype),r}},{"./_a-function":100,"./_invoke":140,"./_is-object":145}],113:[function(e,t,n){var r=e("./_cof"),a=e("./_wks")("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?n:i?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},{"./_cof":114,"./_wks":214}],114:[function(e,t,n){var o={}.toString;t.exports=function(e){return o.call(e).slice(8,-1)}},{}],115:[function(e,t,n){"use strict";var i=e("./_object-dp").f,l=e("./_object-create"),s=e("./_redefine-all"),u=e("./_ctx"),c=e("./_an-instance"),f=e("./_for-of"),o=e("./_iter-define"),r=e("./_iter-step"),a=e("./_set-species"),d=e("./_descriptors"),p=e("./_meta").fastKey,h=e("./_validate-collection"),m=d?"_s":"size",y=function(e,t){var n,o=p(t);if("F"!==o)return e._i[o];for(n=e._f;n;n=n.n)if(n.k==t)return n};t.exports={getConstructor:function(e,a,n,o){var r=e(function(e,t){c(e,r,a,"_i"),e._t=a,e._i=l(null),e._f=void 0,e._l=void 0,e[m]=0,null!=t&&f(t,n,e[o],e)});return s(r.prototype,{clear:function(){for(var e=h(this,a),t=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete t[n.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var t=h(this,a),n=y(t,e);if(n){var o=n.n,r=n.p;delete t._i[n.i],n.r=!0,r&&(r.n=o),o&&(o.p=r),t._f==n&&(t._f=o),t._l==n&&(t._l=r),t[m]--}return!!n},forEach:function(e){h(this,a);for(var t,n=u(e,1<arguments.length?arguments[1]:void 0,3);t=t?t.n:this._f;)for(n(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!y(h(this,a),e)}}),d&&i(r.prototype,"size",{get:function(){return h(this,a)[m]}}),r},def:function(e,t,n){var o,r,a=y(e,t);return a?a.v=n:(e._l=a={i:r=p(t,!0),k:t,v:n,p:o=e._l,n:void 0,r:!1},e._f||(e._f=a),o&&(o.n=a),e[m]++,"F"!==r&&(e._i[r]=a)),e},getEntry:y,setStrong:function(e,n,t){o(e,n,function(e,t){this._t=h(e,n),this._k=t,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?r(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,r(1))},t?"entries":"values",!t,!0),a(n)}}},{"./_an-instance":103,"./_ctx":120,"./_descriptors":124,"./_for-of":133,"./_iter-define":149,"./_iter-step":151,"./_meta":158,"./_object-create":162,"./_object-dp":163,"./_redefine-all":181,"./_set-species":185,"./_validate-collection":211}],116:[function(e,t,n){"use strict";var i=e("./_redefine-all"),l=e("./_meta").getWeak,r=e("./_an-object"),s=e("./_is-object"),u=e("./_an-instance"),c=e("./_for-of"),o=e("./_array-methods"),f=e("./_has"),d=e("./_validate-collection"),a=o(5),p=o(6),h=0,m=function(e){return e._l||(e._l=new y)},y=function(){this.a=[]},b=function(e,t){return a(e.a,function(e){return e[0]===t})};y.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(t){var e=p(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(e,n,o,r){var a=e(function(e,t){u(e,a,n,"_i"),e._t=n,e._i=h++,e._l=void 0,null!=t&&c(t,o,e[r],e)});return i(a.prototype,{delete:function(e){if(!s(e))return!1;var t=l(e);return!0===t?m(d(this,n)).delete(e):t&&f(t,this._i)&&delete t[this._i]},has:function(e){if(!s(e))return!1;var t=l(e);return!0===t?m(d(this,n)).has(e):t&&f(t,this._i)}}),a},def:function(e,t,n){var o=l(r(t),!0);return!0===o?m(e).set(t,n):o[e._i]=n,e},ufstore:m}},{"./_an-instance":103,"./_an-object":104,"./_array-methods":108,"./_for-of":133,"./_has":135,"./_is-object":145,"./_meta":158,"./_redefine-all":181,"./_validate-collection":211}],117:[function(e,t,n){"use strict";var b=e("./_global"),v=e("./_export"),g=e("./_redefine"),E=e("./_redefine-all"),S=e("./_meta"),_=e("./_for-of"),T=e("./_an-instance"),O=e("./_is-object"),C=e("./_fails"),A=e("./_iter-detect"),N=e("./_set-to-string-tag"),w=e("./_inherit-if-required");t.exports=function(o,e,t,n,r,a){var i=b[o],l=i,s=r?"set":"add",u=l&&l.prototype,c={},f=function(e){var n=u[e];g(u,e,"delete"==e?function(e){return!(a&&!O(e))&&n.call(this,0===e?0:e)}:"has"==e?function(e){return!(a&&!O(e))&&n.call(this,0===e?0:e)}:"get"==e?function(e){return a&&!O(e)?void 0:n.call(this,0===e?0:e)}:"add"==e?function(e){return n.call(this,0===e?0:e),this}:function(e,t){return n.call(this,0===e?0:e,t),this})};if("function"==typeof l&&(a||u.forEach&&!C(function(){(new l).entries().next()}))){var d=new l,p=d[s](a?{}:-0,1)!=d,h=C(function(){d.has(1)}),m=A(function(e){new l(e)}),y=!a&&C(function(){for(var e=new l,t=5;t--;)e[s](t,t);return!e.has(-0)});m||(((l=e(function(e,t){T(e,l,o);var n=w(new i,e,l);return null!=t&&_(t,r,n[s],n),n})).prototype=u).constructor=l),(h||y)&&(f("delete"),f("has"),r&&f("get")),(y||p)&&f(s),a&&u.clear&&delete u.clear}else l=n.getConstructor(e,o,r,s),E(l.prototype,t),S.NEED=!0;return N(l,o),c[o]=l,v(v.G+v.W+v.F*(l!=i),c),a||n.setStrong(l,o,r),l}},{"./_an-instance":103,"./_export":128,"./_fails":130,"./_for-of":133,"./_global":134,"./_inherit-if-required":139,"./_is-object":145,"./_iter-detect":150,"./_meta":158,"./_redefine":182,"./_redefine-all":181,"./_set-to-string-tag":186}],118:[function(e,t,n){var o=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=o)},{}],119:[function(e,t,n){"use strict";var o=e("./_object-dp"),r=e("./_property-desc");t.exports=function(e,t,n){t in e?o.f(e,t,r(0,n)):e[t]=n}},{"./_object-dp":163,"./_property-desc":180}],120:[function(e,t,n){var a=e("./_a-function");t.exports=function(o,r,e){if(a(o),void 0===r)return o;switch(e){case 1:return function(e){return o.call(r,e)};case 2:return function(e,t){return o.call(r,e,t)};case 3:return function(e,t,n){return o.call(r,e,t,n)}}return function(){return o.apply(r,arguments)}}},{"./_a-function":100}],121:[function(e,t,n){"use strict";var o=e("./_fails"),r=Date.prototype.getTime,a=Date.prototype.toISOString,i=function(e){return 9<e?e:"0"+e};t.exports=o(function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-5e13-1))})||!o(function(){a.call(new Date(NaN))})?function(){if(!isFinite(r.call(this)))throw RangeError("Invalid time value");var e=this.getUTCFullYear(),t=this.getUTCMilliseconds(),n=e<0?"-":9999<e?"+":"";return n+("00000"+Math.abs(e)).slice(n?-6:-4)+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"."+(99<t?t:"0"+i(t))+"Z"}:a},{"./_fails":130}],122:[function(e,t,n){"use strict";var o=e("./_an-object"),r=e("./_to-primitive");t.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return r(o(this),"number"!=e)}},{"./_an-object":104,"./_to-primitive":205}],123:[function(e,t,n){t.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},{}],124:[function(e,t,n){t.exports=!e("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":130}],125:[function(e,t,n){var o=e("./_is-object"),r=e("./_global").document,a=o(r)&&o(r.createElement);t.exports=function(e){return a?r.createElement(e):{}}},{"./_global":134,"./_is-object":145}],126:[function(e,t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],127:[function(e,t,n){var l=e("./_object-keys"),s=e("./_object-gops"),u=e("./_object-pie");t.exports=function(e){var t=l(e),n=s.f;if(n)for(var o,r=n(e),a=u.f,i=0;r.length>i;)a.call(e,o=r[i++])&&t.push(o);return t}},{"./_object-gops":168,"./_object-keys":171,"./_object-pie":172}],128:[function(e,t,n){var m=e("./_global"),y=e("./_core"),b=e("./_hide"),v=e("./_redefine"),g=e("./_ctx"),E="prototype",S=function(e,t,n){var o,r,a,i,l=e&S.F,s=e&S.G,u=e&S.S,c=e&S.P,f=e&S.B,d=s?m:u?m[t]||(m[t]={}):(m[t]||{})[E],p=s?y:y[t]||(y[t]={}),h=p[E]||(p[E]={});for(o in s&&(n=t),n)a=((r=!l&&d&&void 0!==d[o])?d:n)[o],i=f&&r?g(a,m):c&&"function"==typeof a?g(Function.call,a):a,d&&v(d,o,a,e&S.U),p[o]!=a&&b(p,o,i),c&&h[o]!=a&&(h[o]=a)};m.core=y,S.F=1,S.G=2,S.S=4,S.P=8,S.B=16,S.W=32,S.U=64,S.R=128,t.exports=S},{"./_core":118,"./_ctx":120,"./_global":134,"./_hide":136,"./_redefine":182}],129:[function(e,t,n){var o=e("./_wks")("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[o]=!1,!"/./"[t](n)}catch(e){}}return!0}},{"./_wks":214}],130:[function(e,t,n){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],131:[function(e,t,n){"use strict";var l=e("./_hide"),s=e("./_redefine"),u=e("./_fails"),c=e("./_defined"),f=e("./_wks");t.exports=function(t,e,n){var o=f(t),r=n(c,o,""[t]),a=r[0],i=r[1];u(function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})&&(s(String.prototype,t,a),l(RegExp.prototype,o,2==e?function(e,t){return i.call(e,this,t)}:function(e){return i.call(e,this)}))}},{"./_defined":123,"./_fails":130,"./_hide":136,"./_redefine":182,"./_wks":214}],132:[function(e,t,n){"use strict";var o=e("./_an-object");t.exports=function(){var e=o(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},{"./_an-object":104}],133:[function(e,t,n){var d=e("./_ctx"),p=e("./_iter-call"),h=e("./_is-array-iter"),m=e("./_an-object"),y=e("./_to-length"),b=e("./core.get-iterator-method"),v={},g={};(n=t.exports=function(e,t,n,o,r){var a,i,l,s,u=r?function(){return e}:b(e),c=d(n,o,t?2:1),f=0;if("function"!=typeof u)throw TypeError(e+" is not iterable!");if(h(u)){for(a=y(e.length);f<a;f++)if((s=t?c(m(i=e[f])[0],i[1]):c(e[f]))===v||s===g)return s}else for(l=u.call(e);!(i=l.next()).done;)if((s=p(l,c,i.value,t))===v||s===g)return s}).BREAK=v,n.RETURN=g},{"./_an-object":104,"./_ctx":120,"./_is-array-iter":142,"./_iter-call":147,"./_to-length":203,"./core.get-iterator-method":215}],134:[function(e,t,n){var o=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=o)},{}],135:[function(e,t,n){var o={}.hasOwnProperty;t.exports=function(e,t){return o.call(e,t)}},{}],136:[function(e,t,n){var o=e("./_object-dp"),r=e("./_property-desc");t.exports=e("./_descriptors")?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},{"./_descriptors":124,"./_object-dp":163,"./_property-desc":180}],137:[function(e,t,n){var o=e("./_global").document;t.exports=o&&o.documentElement},{"./_global":134}],138:[function(e,t,n){t.exports=!e("./_descriptors")&&!e("./_fails")(function(){return 7!=Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":124,"./_dom-create":125,"./_fails":130}],139:[function(e,t,n){var a=e("./_is-object"),i=e("./_set-proto").set;t.exports=function(e,t,n){var o,r=t.constructor;return r!==n&&"function"==typeof r&&(o=r.prototype)!==n.prototype&&a(o)&&i&&i(e,o),e}},{"./_is-object":145,"./_set-proto":184}],140:[function(e,t,n){t.exports=function(e,t,n){var o=void 0===n;switch(t.length){case 0:return o?e():e.call(n);case 1:return o?e(t[0]):e.call(n,t[0]);case 2:return o?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return o?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return o?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},{}],141:[function(e,t,n){var o=e("./_cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},{"./_cof":114}],142:[function(e,t,n){var o=e("./_iterators"),r=e("./_wks")("iterator"),a=Array.prototype;t.exports=function(e){return void 0!==e&&(o.Array===e||a[r]===e)}},{"./_iterators":152,"./_wks":214}],143:[function(e,t,n){var o=e("./_cof");t.exports=Array.isArray||function(e){return"Array"==o(e)}},{"./_cof":114}],144:[function(e,t,n){var o=e("./_is-object"),r=Math.floor;t.exports=function(e){return!o(e)&&isFinite(e)&&r(e)===e}},{"./_is-object":145}],145:[function(e,t,n){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],146:[function(e,t,n){var o=e("./_is-object"),r=e("./_cof"),a=e("./_wks")("match");t.exports=function(e){var t;return o(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==r(e))}},{"./_cof":114,"./_is-object":145,"./_wks":214}],147:[function(e,t,n){var a=e("./_an-object");t.exports=function(t,e,n,o){try{return o?e(a(n)[0],n[1]):e(n)}catch(e){var r=t.return;throw void 0!==r&&a(r.call(t)),e}}},{"./_an-object":104}],148:[function(e,t,n){"use strict";var o=e("./_object-create"),r=e("./_property-desc"),a=e("./_set-to-string-tag"),i={};e("./_hide")(i,e("./_wks")("iterator"),function(){return this}),t.exports=function(e,t,n){e.prototype=o(i,{next:r(1,n)}),a(e,t+" Iterator")}},{"./_hide":136,"./_object-create":162,"./_property-desc":180,"./_set-to-string-tag":186,"./_wks":214}],149:[function(e,t,n){"use strict";var g=e("./_library"),E=e("./_export"),S=e("./_redefine"),_=e("./_hide"),T=e("./_iterators"),O=e("./_iter-create"),C=e("./_set-to-string-tag"),A=e("./_object-gpo"),N=e("./_wks")("iterator"),w=!([].keys&&"next"in[].keys()),R="values",P=function(){return this};t.exports=function(e,t,n,o,r,a,i){O(n,t,o);var l,s,u,c=function(e){if(!w&&e in h)return h[e];switch(e){case"keys":case R:return function(){return new n(this,e)}}return function(){return new n(this,e)}},f=t+" Iterator",d=r==R,p=!1,h=e.prototype,m=h[N]||h["@@iterator"]||r&&h[r],y=m||c(r),b=r?d?c("entries"):y:void 0,v="Array"==t&&h.entries||m;if(v&&(u=A(v.call(new e)))!==Object.prototype&&u.next&&(C(u,f,!0),g||"function"==typeof u[N]||_(u,N,P)),d&&m&&m.name!==R&&(p=!0,y=function(){return m.call(this)}),g&&!i||!w&&!p&&h[N]||_(h,N,y),T[t]=y,T[f]=P,r)if(l={values:d?y:c(R),keys:a?y:c("keys"),entries:b},i)for(s in l)s in h||S(h,s,l[s]);else E(E.P+E.F*(w||p),t,l);return l}},{"./_export":128,"./_hide":136,"./_iter-create":148,"./_iterators":152,"./_library":153,"./_object-gpo":169,"./_redefine":182,"./_set-to-string-tag":186,"./_wks":214}],150:[function(e,t,n){var a=e("./_wks")("iterator"),i=!1;try{var o=[7][a]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}t.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],r=o[a]();r.next=function(){return{done:n=!0}},o[a]=function(){return r},e(o)}catch(e){}return n}},{"./_wks":214}],151:[function(e,t,n){t.exports=function(e,t){return{value:t,done:!!e}}},{}],152:[function(e,t,n){t.exports={}},{}],153:[function(e,t,n){t.exports=!1},{}],154:[function(e,t,n){var o=Math.expm1;t.exports=!o||22025.465794806718<o(10)||o(10)<22025.465794806718||-2e-17!=o(-2e-17)?function(e){return 0==(e=+e)?e:-1e-6<e&&e<1e-6?e+e*e/2:Math.exp(e)-1}:o},{}],155:[function(e,t,n){var a=e("./_math-sign"),o=Math.pow,i=o(2,-52),l=o(2,-23),s=o(2,127)*(2-l),u=o(2,-126);t.exports=Math.fround||function(e){var t,n,o=Math.abs(e),r=a(e);return o<u?r*(o/u/l+1/i-1/i)*u*l:s<(n=(t=(1+l/i)*o)-(t-o))||n!=n?r*(1/0):r*n}},{"./_math-sign":157}],156:[function(e,t,n){t.exports=Math.log1p||function(e){return-1e-8<(e=+e)&&e<1e-8?e-e*e/2:Math.log(1+e)}},{}],157:[function(e,t,n){t.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},{}],158:[function(e,t,n){var o=e("./_uid")("meta"),r=e("./_is-object"),a=e("./_has"),i=e("./_object-dp").f,l=0,s=Object.isExtensible||function(){return!0},u=!e("./_fails")(function(){return s(Object.preventExtensions({}))}),c=function(e){i(e,o,{value:{i:"O"+ ++l,w:{}}})},f=t.exports={KEY:o,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,o)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[o].i},getWeak:function(e,t){if(!a(e,o)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[o].w},onFreeze:function(e){return u&&f.NEED&&s(e)&&!a(e,o)&&c(e),e}}},{"./_fails":130,"./_has":135,"./_is-object":145,"./_object-dp":163,"./_uid":209}],159:[function(e,t,n){var l=e("./_global"),s=e("./_task").set,u=l.MutationObserver||l.WebKitMutationObserver,c=l.process,f=l.Promise,d="process"==e("./_cof")(c);t.exports=function(){var n,o,r,e=function(){var e,t;for(d&&(e=c.domain)&&e.exit();n;){t=n.fn,n=n.next;try{t()}catch(e){throw n?r():o=void 0,e}}o=void 0,e&&e.enter()};if(d)r=function(){c.nextTick(e)};else if(!u||l.navigator&&l.navigator.standalone)if(f&&f.resolve){var t=f.resolve(void 0);r=function(){t.then(e)}}else r=function(){s.call(l,e)};else{var a=!0,i=document.createTextNode("");new u(e).observe(i,{characterData:!0}),r=function(){i.data=a=!a}}return function(e){var t={fn:e,next:void 0};o&&(o.next=t),n||(n=t,r()),o=t}}},{"./_cof":114,"./_global":134,"./_task":198}],160:[function(e,t,n){"use strict";var r=e("./_a-function");function o(e){var n,o;this.promise=new e(function(e,t){if(void 0!==n||void 0!==o)throw TypeError("Bad Promise constructor");n=e,o=t}),this.resolve=r(n),this.reject=r(o)}t.exports.f=function(e){return new o(e)}},{"./_a-function":100}],161:[function(e,t,n){"use strict";var d=e("./_object-keys"),p=e("./_object-gops"),h=e("./_object-pie"),m=e("./_to-object"),y=e("./_iobject"),r=Object.assign;t.exports=!r||e("./_fails")(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=r({},e)[n]||Object.keys(r({},t)).join("")!=o})?function(e,t){for(var n=m(e),o=arguments.length,r=1,a=p.f,i=h.f;r<o;)for(var l,s=y(arguments[r++]),u=a?d(s).concat(a(s)):d(s),c=u.length,f=0;f<c;)i.call(s,l=u[f++])&&(n[l]=s[l]);return n}:r},{"./_fails":130,"./_iobject":141,"./_object-gops":168,"./_object-keys":171,"./_object-pie":172,"./_to-object":204}],162:[function(o,e,t){var r=o("./_an-object"),a=o("./_object-dps"),i=o("./_enum-bug-keys"),l=o("./_shared-key")("IE_PROTO"),s=function(){},u="prototype",c=function(){var e,t=o("./_dom-create")("iframe"),n=i.length;for(t.style.display="none",o("./_html").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[u][i[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=r(e),n=new s,s[u]=null,n[l]=e):n=c(),void 0===t?n:a(n,t)}},{"./_an-object":104,"./_dom-create":125,"./_enum-bug-keys":126,"./_html":137,"./_object-dps":164,"./_shared-key":187}],163:[function(e,t,n){var o=e("./_an-object"),r=e("./_ie8-dom-define"),a=e("./_to-primitive"),i=Object.defineProperty;n.f=e("./_descriptors")?Object.defineProperty:function(e,t,n){if(o(e),t=a(t,!0),o(n),r)try{return i(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},{"./_an-object":104,"./_descriptors":124,"./_ie8-dom-define":138,"./_to-primitive":205}],164:[function(e,t,n){var i=e("./_object-dp"),l=e("./_an-object"),s=e("./_object-keys");t.exports=e("./_descriptors")?Object.defineProperties:function(e,t){l(e);for(var n,o=s(t),r=o.length,a=0;a<r;)i.f(e,n=o[a++],t[n]);return e}},{"./_an-object":104,"./_descriptors":124,"./_object-dp":163,"./_object-keys":171}],165:[function(e,t,n){var o=e("./_object-pie"),r=e("./_property-desc"),a=e("./_to-iobject"),i=e("./_to-primitive"),l=e("./_has"),s=e("./_ie8-dom-define"),u=Object.getOwnPropertyDescriptor;n.f=e("./_descriptors")?u:function(e,t){if(e=a(e),t=i(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},{"./_descriptors":124,"./_has":135,"./_ie8-dom-define":138,"./_object-pie":172,"./_property-desc":180,"./_to-iobject":202,"./_to-primitive":205}],166:[function(e,t,n){var o=e("./_to-iobject"),r=e("./_object-gopn").f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){return i&&"[object Window]"==a.call(e)?function(e){try{return r(e)}catch(e){return i.slice()}}(e):r(o(e))}},{"./_object-gopn":167,"./_to-iobject":202}],167:[function(e,t,n){var o=e("./_object-keys-internal"),r=e("./_enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},{"./_enum-bug-keys":126,"./_object-keys-internal":170}],168:[function(e,t,n){n.f=Object.getOwnPropertySymbols},{}],169:[function(e,t,n){var o=e("./_has"),r=e("./_to-object"),a=e("./_shared-key")("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}},{"./_has":135,"./_shared-key":187,"./_to-object":204}],170:[function(e,t,n){var i=e("./_has"),l=e("./_to-iobject"),s=e("./_array-includes")(!1),u=e("./_shared-key")("IE_PROTO");t.exports=function(e,t){var n,o=l(e),r=0,a=[];for(n in o)n!=u&&i(o,n)&&a.push(n);for(;t.length>r;)i(o,n=t[r++])&&(~s(a,n)||a.push(n));return a}},{"./_array-includes":107,"./_has":135,"./_shared-key":187,"./_to-iobject":202}],171:[function(e,t,n){var o=e("./_object-keys-internal"),r=e("./_enum-bug-keys");t.exports=Object.keys||function(e){return o(e,r)}},{"./_enum-bug-keys":126,"./_object-keys-internal":170}],172:[function(e,t,n){n.f={}.propertyIsEnumerable},{}],173:[function(e,t,n){var r=e("./_export"),a=e("./_core"),i=e("./_fails");t.exports=function(e,t){var n=(a.Object||{})[e]||Object[e],o={};o[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",o)}},{"./_core":118,"./_export":128,"./_fails":130}],174:[function(e,t,n){var s=e("./_object-keys"),u=e("./_to-iobject"),c=e("./_object-pie").f;t.exports=function(l){return function(e){for(var t,n=u(e),o=s(n),r=o.length,a=0,i=[];a<r;)c.call(n,t=o[a++])&&i.push(l?[t,n[t]]:n[t]);return i}}},{"./_object-keys":171,"./_object-pie":172,"./_to-iobject":202}],175:[function(e,t,n){var o=e("./_object-gopn"),r=e("./_object-gops"),a=e("./_an-object"),i=e("./_global").Reflect;t.exports=i&&i.ownKeys||function(e){var t=o.f(a(e)),n=r.f;return n?t.concat(n(e)):t}},{"./_an-object":104,"./_global":134,"./_object-gopn":167,"./_object-gops":168}],176:[function(e,t,n){var o=e("./_global").parseFloat,r=e("./_string-trim").trim;t.exports=1/o(e("./_string-ws")+"-0")!=-1/0?function(e){var t=r(String(e),3),n=o(t);return 0===n&&"-"==t.charAt(0)?-0:n}:o},{"./_global":134,"./_string-trim":196,"./_string-ws":197}],177:[function(e,t,n){var o=e("./_global").parseInt,r=e("./_string-trim").trim,a=e("./_string-ws"),i=/^[-+]?0[xX]/;t.exports=8!==o(a+"08")||22!==o(a+"0x16")?function(e,t){var n=r(String(e),3);return o(n,t>>>0||(i.test(n)?16:10))}:o},{"./_global":134,"./_string-trim":196,"./_string-ws":197}],178:[function(e,t,n){t.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},{}],179:[function(e,t,n){var o=e("./_an-object"),r=e("./_is-object"),a=e("./_new-promise-capability");t.exports=function(e,t){if(o(e),r(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},{"./_an-object":104,"./_is-object":145,"./_new-promise-capability":160}],180:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],181:[function(e,t,n){var r=e("./_redefine");t.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},{"./_redefine":182}],182:[function(e,t,n){var a=e("./_global"),i=e("./_hide"),l=e("./_has"),s=e("./_uid")("src"),o="toString",r=Function[o],u=(""+r).split(o);e("./_core").inspectSource=function(e){return r.call(e)},(t.exports=function(e,t,n,o){var r="function"==typeof n;r&&(l(n,"name")||i(n,"name",t)),e[t]!==n&&(r&&(l(n,s)||i(n,s,e[t]?""+e[t]:u.join(String(t)))),e===a?e[t]=n:o?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,o,function(){return"function"==typeof this&&this[s]||r.call(this)})},{"./_core":118,"./_global":134,"./_has":135,"./_hide":136,"./_uid":209}],183:[function(e,t,n){t.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},{}],184:[function(t,e,n){var o=t("./_is-object"),r=t("./_an-object"),a=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,n,o){try{(o=t("./_ctx")(Function.call,t("./_object-gopd").f(Object.prototype,"__proto__").set,2))(e,[]),n=!(e instanceof Array)}catch(e){n=!0}return function(e,t){return a(e,t),n?e.__proto__=t:o(e,t),e}}({},!1):void 0),check:a}},{"./_an-object":104,"./_ctx":120,"./_is-object":145,"./_object-gopd":165}],185:[function(e,t,n){"use strict";var o=e("./_global"),r=e("./_object-dp"),a=e("./_descriptors"),i=e("./_wks")("species");t.exports=function(e){var t=o[e];a&&t&&!t[i]&&r.f(t,i,{configurable:!0,get:function(){return this}})}},{"./_descriptors":124,"./_global":134,"./_object-dp":163,"./_wks":214}],186:[function(e,t,n){var o=e("./_object-dp").f,r=e("./_has"),a=e("./_wks")("toStringTag");t.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,a)&&o(e,a,{configurable:!0,value:t})}},{"./_has":135,"./_object-dp":163,"./_wks":214}],187:[function(e,t,n){var o=e("./_shared")("keys"),r=e("./_uid");t.exports=function(e){return o[e]||(o[e]=r(e))}},{"./_shared":188,"./_uid":209}],188:[function(e,t,n){var o=e("./_core"),r=e("./_global"),a="__core-js_shared__",i=r[a]||(r[a]={});(t.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:e("./_library")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":118,"./_global":134,"./_library":153}],189:[function(e,t,n){var r=e("./_an-object"),a=e("./_a-function"),i=e("./_wks")("species");t.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||null==(n=r(o)[i])?t:a(n)}},{"./_a-function":100,"./_an-object":104,"./_wks":214}],190:[function(e,t,n){"use strict";var o=e("./_fails");t.exports=function(e,t){return!!e&&o(function(){t?e.call(null,function(){},1):e.call(null)})}},{"./_fails":130}],191:[function(e,t,n){var s=e("./_to-integer"),u=e("./_defined");t.exports=function(l){return function(e,t){var n,o,r=String(u(e)),a=s(t),i=r.length;return a<0||i<=a?l?"":void 0:(n=r.charCodeAt(a))<55296||56319<n||a+1===i||(o=r.charCodeAt(a+1))<56320||57343<o?l?r.charAt(a):n:l?r.slice(a,a+2):o-56320+(n-55296<<10)+65536}}},{"./_defined":123,"./_to-integer":201}],192:[function(e,t,n){var o=e("./_is-regexp"),r=e("./_defined");t.exports=function(e,t,n){if(o(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(e))}},{"./_defined":123,"./_is-regexp":146}],193:[function(e,t,n){var o=e("./_export"),r=e("./_fails"),i=e("./_defined"),l=/"/g,a=function(e,t,n,o){var r=String(i(e)),a="<"+t;return""!==n&&(a+=" "+n+'="'+String(o).replace(l,"&quot;")+'"'),a+">"+r+"</"+t+">"};t.exports=function(t,e){var n={};n[t]=e(a),o(o.P+o.F*r(function(){var e=""[t]('"');return e!==e.toLowerCase()||3<e.split('"').length}),"String",n)}},{"./_defined":123,"./_export":128,"./_fails":130}],194:[function(e,t,n){var c=e("./_to-length"),f=e("./_string-repeat"),d=e("./_defined");t.exports=function(e,t,n,o){var r=String(d(e)),a=r.length,i=void 0===n?" ":String(n),l=c(t);if(l<=a||""==i)return r;var s=l-a,u=f.call(i,Math.ceil(s/i.length));return u.length>s&&(u=u.slice(0,s)),o?u+r:r+u}},{"./_defined":123,"./_string-repeat":195,"./_to-length":203}],195:[function(e,t,n){"use strict";var r=e("./_to-integer"),a=e("./_defined");t.exports=function(e){var t=String(a(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;0<o;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},{"./_defined":123,"./_to-integer":201}],196:[function(e,t,n){var i=e("./_export"),o=e("./_defined"),l=e("./_fails"),s=e("./_string-ws"),r="["+s+"]",a=RegExp("^"+r+r+"*"),u=RegExp(r+r+"*$"),c=function(e,t,n){var o={},r=l(function(){return!!s[e]()||"​"!="​"[e]()}),a=o[e]=r?t(f):s[e];n&&(o[n]=a),i(i.P+i.F*r,"String",o)},f=c.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(a,"")),2&t&&(e=e.replace(u,"")),e};t.exports=c},{"./_defined":123,"./_export":128,"./_fails":130,"./_string-ws":197}],197:[function(e,t,n){t.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},{}],198:[function(e,t,n){var o,r,a,i=e("./_ctx"),l=e("./_invoke"),s=e("./_html"),u=e("./_dom-create"),c=e("./_global"),f=c.process,d=c.setImmediate,p=c.clearImmediate,h=c.MessageChannel,m=c.Dispatch,y=0,b={},v="onreadystatechange",g=function(){var e=+this;if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},E=function(e){g.call(e.data)};d&&p||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return b[++y]=function(){l("function"==typeof e?e:Function(e),t)},o(y),y},p=function(e){delete b[e]},"process"==e("./_cof")(f)?o=function(e){f.nextTick(i(g,e,1))}:m&&m.now?o=function(e){m.now(i(g,e,1))}:h?(a=(r=new h).port2,r.port1.onmessage=E,o=i(a.postMessage,a,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(o=function(e){c.postMessage(e+"","*")},c.addEventListener("message",E,!1)):o=v in u("script")?function(e){s.appendChild(u("script"))[v]=function(){s.removeChild(this),g.call(e)}}:function(e){setTimeout(i(g,e,1),0)}),t.exports={set:d,clear:p}},{"./_cof":114,"./_ctx":120,"./_dom-create":125,"./_global":134,"./_html":137,"./_invoke":140}],199:[function(e,t,n){var o=e("./_to-integer"),r=Math.max,a=Math.min;t.exports=function(e,t){return(e=o(e))<0?r(e+t,0):a(e,t)}},{"./_to-integer":201}],200:[function(e,t,n){var o=e("./_to-integer"),r=e("./_to-length");t.exports=function(e){if(void 0===e)return 0;var t=o(e),n=r(t);if(t!==n)throw RangeError("Wrong length!");return n}},{"./_to-integer":201,"./_to-length":203}],201:[function(e,t,n){var o=Math.ceil,r=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(0<e?r:o)(e)}},{}],202:[function(e,t,n){var o=e("./_iobject"),r=e("./_defined");t.exports=function(e){return o(r(e))}},{"./_defined":123,"./_iobject":141}],203:[function(e,t,n){var o=e("./_to-integer"),r=Math.min;t.exports=function(e){return 0<e?r(o(e),9007199254740991):0}},{"./_to-integer":201}],204:[function(e,t,n){var o=e("./_defined");t.exports=function(e){return Object(o(e))}},{"./_defined":123}],205:[function(e,t,n){var r=e("./_is-object");t.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":145}],206:[function(e,t,n){"use strict";if(e("./_descriptors")){var b=e("./_library"),v=e("./_global"),g=e("./_fails"),E=e("./_export"),S=e("./_typed"),o=e("./_typed-buffer"),d=e("./_ctx"),_=e("./_an-instance"),r=e("./_property-desc"),T=e("./_hide"),a=e("./_redefine-all"),i=e("./_to-integer"),O=e("./_to-length"),C=e("./_to-index"),l=e("./_to-absolute-index"),s=e("./_to-primitive"),u=e("./_has"),A=e("./_classof"),N=e("./_is-object"),p=e("./_to-object"),h=e("./_is-array-iter"),w=e("./_object-create"),R=e("./_object-gpo"),P=e("./_object-gopn").f,m=e("./core.get-iterator-method"),c=e("./_uid"),f=e("./_wks"),y=e("./_array-methods"),k=e("./_array-includes"),I=e("./_species-constructor"),L=e("./es6.array.iterator"),D=e("./_iterators"),x=e("./_iter-detect"),M=e("./_set-species"),V=e("./_array-fill"),j=e("./_array-copy-within"),U=e("./_object-dp"),B=e("./_object-gopd"),F=U.f,W=B.f,Y=v.RangeError,K=v.TypeError,H=v.Uint8Array,z="ArrayBuffer",G="Shared"+z,X="BYTES_PER_ELEMENT",q="prototype",Q=Array[q],$=o.ArrayBuffer,J=o.DataView,Z=y(0),ee=y(2),te=y(3),ne=y(4),oe=y(5),re=y(6),ae=k(!0),ie=k(!1),le=L.values,se=L.keys,ue=L.entries,ce=Q.lastIndexOf,fe=Q.reduce,de=Q.reduceRight,pe=Q.join,he=Q.sort,me=Q.slice,ye=Q.toString,be=Q.toLocaleString,ve=f("iterator"),ge=f("toStringTag"),Ee=c("typed_constructor"),Se=c("def_constructor"),_e=S.CONSTR,Te=S.TYPED,Oe=S.VIEW,Ce="Wrong length!",Ae=y(1,function(e,t){return ke(I(e,e[Se]),t)}),Ne=g(function(){return 1===new H(new Uint16Array([1]).buffer)[0]}),we=!!H&&!!H[q].set&&g(function(){new H(1).set({})}),Re=function(e,t){var n=i(e);if(n<0||n%t)throw Y("Wrong offset!");return n},Pe=function(e){if(N(e)&&Te in e)return e;throw K(e+" is not a typed array!")},ke=function(e,t){if(!(N(e)&&Ee in e))throw K("It is not a typed array constructor!");return new e(t)},Ie=function(e,t){return Le(I(e,e[Se]),t)},Le=function(e,t){for(var n=0,o=t.length,r=ke(e,o);n<o;)r[n]=t[n++];return r},De=function(e,t,n){F(e,t,{get:function(){return this._d[n]}})},xe=function(e){var t,n,o,r,a,i,l=p(e),s=arguments.length,u=1<s?arguments[1]:void 0,c=void 0!==u,f=m(l);if(null!=f&&!h(f)){for(i=f.call(l),o=[],t=0;!(a=i.next()).done;t++)o.push(a.value);l=o}for(c&&2<s&&(u=d(u,arguments[2],2)),t=0,n=O(l.length),r=ke(this,n);t<n;t++)r[t]=c?u(l[t],t):l[t];return r},Me=function(){for(var e=0,t=arguments.length,n=ke(this,t);e<t;)n[e]=arguments[e++];return n},Ve=!!H&&g(function(){be.call(new H(1))}),je=function(){return be.apply(Ve?me.call(Pe(this)):Pe(this),arguments)},Ue={copyWithin:function(e,t){return j.call(Pe(this),e,t,2<arguments.length?arguments[2]:void 0)},every:function(e){return ne(Pe(this),e,1<arguments.length?arguments[1]:void 0)},fill:function(e){return V.apply(Pe(this),arguments)},filter:function(e){return Ie(this,ee(Pe(this),e,1<arguments.length?arguments[1]:void 0))},find:function(e){return oe(Pe(this),e,1<arguments.length?arguments[1]:void 0)},findIndex:function(e){return re(Pe(this),e,1<arguments.length?arguments[1]:void 0)},forEach:function(e){Z(Pe(this),e,1<arguments.length?arguments[1]:void 0)},indexOf:function(e){return ie(Pe(this),e,1<arguments.length?arguments[1]:void 0)},includes:function(e){return ae(Pe(this),e,1<arguments.length?arguments[1]:void 0)},join:function(e){return pe.apply(Pe(this),arguments)},lastIndexOf:function(e){return ce.apply(Pe(this),arguments)},map:function(e){return Ae(Pe(this),e,1<arguments.length?arguments[1]:void 0)},reduce:function(e){return fe.apply(Pe(this),arguments)},reduceRight:function(e){return de.apply(Pe(this),arguments)},reverse:function(){for(var e,t=Pe(this).length,n=Math.floor(t/2),o=0;o<n;)e=this[o],this[o++]=this[--t],this[t]=e;return this},some:function(e){return te(Pe(this),e,1<arguments.length?arguments[1]:void 0)},sort:function(e){return he.call(Pe(this),e)},subarray:function(e,t){var n=Pe(this),o=n.length,r=l(e,o);return new(I(n,n[Se]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,O((void 0===t?o:l(t,o))-r))}},Be=function(e,t){return Ie(this,me.call(Pe(this),e,t))},Fe=function(e){Pe(this);var t=Re(arguments[1],1),n=this.length,o=p(e),r=O(o.length),a=0;if(n<r+t)throw Y(Ce);for(;a<r;)this[t+a]=o[a++]},We={entries:function(){return ue.call(Pe(this))},keys:function(){return se.call(Pe(this))},values:function(){return le.call(Pe(this))}},Ye=function(e,t){return N(e)&&e[Te]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Ke=function(e,t){return Ye(e,t=s(t,!0))?r(2,e[t]):W(e,t)},He=function(e,t,n){return!(Ye(e,t=s(t,!0))&&N(n)&&u(n,"value"))||u(n,"get")||u(n,"set")||n.configurable||u(n,"writable")&&!n.writable||u(n,"enumerable")&&!n.enumerable?F(e,t,n):(e[t]=n.value,e)};_e||(B.f=Ke,U.f=He),E(E.S+E.F*!_e,"Object",{getOwnPropertyDescriptor:Ke,defineProperty:He}),g(function(){ye.call({})})&&(ye=be=function(){return pe.call(this)});var ze=a({},Ue);a(ze,We),T(ze,ve,We.values),a(ze,{slice:Be,set:Fe,constructor:function(){},toString:ye,toLocaleString:je}),De(ze,"buffer","b"),De(ze,"byteOffset","o"),De(ze,"byteLength","l"),De(ze,"length","e"),F(ze,ge,{get:function(){return this[Te]}}),t.exports=function(e,f,t,a){var d=e+((a=!!a)?"Clamped":"")+"Array",n="get"+e,i="set"+e,p=v[d],l=p||{},o=p&&R(p),r=!p||!S.ABV,s={},u=p&&p[q],h=function(e,r){F(e,r,{get:function(){return e=r,(t=this._d).v[n](e*f+t.o,Ne);var e,t},set:function(e){return t=r,n=e,o=this._d,a&&(n=(n=Math.round(n))<0?0:255<n?255:255&n),void o.v[i](t*f+o.o,n,Ne);var t,n,o},enumerable:!0})};r?(p=t(function(e,t,n,o){_(e,p,d,"_d");var r,a,i,l,s=0,u=0;if(N(t)){if(!(t instanceof $||(l=A(t))==z||l==G))return Te in t?Le(p,t):xe.call(p,t);r=t,u=Re(n,f);var c=t.byteLength;if(void 0===o){if(c%f)throw Y(Ce);if((a=c-u)<0)throw Y(Ce)}else if(c<(a=O(o)*f)+u)throw Y(Ce);i=a/f}else i=C(t),r=new $(a=i*f);for(T(e,"_d",{b:r,o:u,l:a,e:i,v:new J(r)});s<i;)h(e,s++)}),u=p[q]=w(ze),T(u,"constructor",p)):g(function(){p(1)})&&g(function(){new p(-1)})&&x(function(e){new p,new p(null),new p(1.5),new p(e)},!0)||(p=t(function(e,t,n,o){var r;return _(e,p,d),N(t)?t instanceof $||(r=A(t))==z||r==G?void 0!==o?new l(t,Re(n,f),o):void 0!==n?new l(t,Re(n,f)):new l(t):Te in t?Le(p,t):xe.call(p,t):new l(C(t))}),Z(o!==Function.prototype?P(l).concat(P(o)):P(l),function(e){e in p||T(p,e,l[e])}),p[q]=u,b||(u.constructor=p));var c=u[ve],m=!!c&&("values"==c.name||null==c.name),y=We.values;T(p,Ee,!0),T(u,Te,d),T(u,Oe,!0),T(u,Se,p),(a?new p(1)[ge]==d:ge in u)||F(u,ge,{get:function(){return d}}),s[d]=p,E(E.G+E.W+E.F*(p!=l),s),E(E.S,d,{BYTES_PER_ELEMENT:f}),E(E.S+E.F*g(function(){l.of.call(p,1)}),d,{from:xe,of:Me}),X in u||T(u,X,f),E(E.P,d,Ue),M(d),E(E.P+E.F*we,d,{set:Fe}),E(E.P+E.F*!m,d,We),b||u.toString==ye||(u.toString=ye),E(E.P+E.F*g(function(){new p(1).slice()}),d,{slice:Be}),E(E.P+E.F*(g(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!g(function(){u.toLocaleString.call([1,2])})),d,{toLocaleString:je}),D[d]=m?c:y,b||m||T(u,ve,y)}}else t.exports=function(){}},{"./_an-instance":103,"./_array-copy-within":105,"./_array-fill":106,"./_array-includes":107,"./_array-methods":108,"./_classof":113,"./_ctx":120,"./_descriptors":124,"./_export":128,"./_fails":130,"./_global":134,"./_has":135,"./_hide":136,"./_is-array-iter":142,"./_is-object":145,"./_iter-detect":150,"./_iterators":152,"./_library":153,"./_object-create":162,"./_object-dp":163,"./_object-gopd":165,"./_object-gopn":167,"./_object-gpo":169,"./_property-desc":180,"./_redefine-all":181,"./_set-species":185,"./_species-constructor":189,"./_to-absolute-index":199,"./_to-index":200,"./_to-integer":201,"./_to-length":203,"./_to-object":204,"./_to-primitive":205,"./_typed":208,"./_typed-buffer":207,"./_uid":209,"./_wks":214,"./core.get-iterator-method":215,"./es6.array.iterator":226}],207:[function(e,t,n){"use strict";var o=e("./_global"),r=e("./_descriptors"),a=e("./_library"),i=e("./_typed"),l=e("./_hide"),s=e("./_redefine-all"),u=e("./_fails"),c=e("./_an-instance"),f=e("./_to-integer"),d=e("./_to-length"),p=e("./_to-index"),h=e("./_object-gopn").f,m=e("./_object-dp").f,y=e("./_array-fill"),b=e("./_set-to-string-tag"),v="ArrayBuffer",g="DataView",E="prototype",S="Wrong index!",_=o[v],T=o[g],O=o.Math,C=o.RangeError,A=o.Infinity,N=_,w=O.abs,R=O.pow,P=O.floor,k=O.log,I=O.LN2,L="byteLength",D="byteOffset",x=r?"_b":"buffer",M=r?"_l":L,V=r?"_o":D;function j(e,t,n){var o,r,a,i=new Array(n),l=8*n-t-1,s=(1<<l)-1,u=s>>1,c=23===t?R(2,-24)-R(2,-77):0,f=0,d=e<0||0===e&&1/e<0?1:0;for((e=w(e))!=e||e===A?(r=e!=e?1:0,o=s):(o=P(k(e)/I),e*(a=R(2,-o))<1&&(o--,a*=2),2<=(e+=1<=o+u?c/a:c*R(2,1-u))*a&&(o++,a/=2),s<=o+u?(r=0,o=s):1<=o+u?(r=(e*a-1)*R(2,t),o+=u):(r=e*R(2,u-1)*R(2,t),o=0));8<=t;i[f++]=255&r,r/=256,t-=8);for(o=o<<t|r,l+=t;0<l;i[f++]=255&o,o/=256,l-=8);return i[--f]|=128*d,i}function U(e,t,n){var o,r=8*n-t-1,a=(1<<r)-1,i=a>>1,l=r-7,s=n-1,u=e[s--],c=127&u;for(u>>=7;0<l;c=256*c+e[s],s--,l-=8);for(o=c&(1<<-l)-1,c>>=-l,l+=t;0<l;o=256*o+e[s],s--,l-=8);if(0===c)c=1-i;else{if(c===a)return o?NaN:u?-A:A;o+=R(2,t),c-=i}return(u?-1:1)*o*R(2,c-t)}function B(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function F(e){return[255&e]}function W(e){return[255&e,e>>8&255]}function Y(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function K(e){return j(e,52,8)}function H(e){return j(e,23,4)}function z(e,t,n){m(e[E],t,{get:function(){return this[n]}})}function G(e,t,n,o){var r=p(+n);if(r+t>e[M])throw C(S);var a=e[x]._b,i=r+e[V],l=a.slice(i,i+t);return o?l:l.reverse()}function X(e,t,n,o,r,a){var i=p(+n);if(i+t>e[M])throw C(S);for(var l=e[x]._b,s=i+e[V],u=o(+r),c=0;c<t;c++)l[s+c]=u[a?c:t-c-1]}if(i.ABV){if(!u(function(){_(1)})||!u(function(){new _(-1)})||u(function(){return new _,new _(1.5),new _(NaN),_.name!=v})){for(var q,Q=(_=function(e){return c(this,_),new N(p(e))})[E]=N[E],$=h(N),J=0;$.length>J;)(q=$[J++])in _||l(_,q,N[q]);a||(Q.constructor=_)}var Z=new T(new _(2)),ee=T[E].setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),!Z.getInt8(0)&&Z.getInt8(1)||s(T[E],{setInt8:function(e,t){ee.call(this,e,t<<24>>24)},setUint8:function(e,t){ee.call(this,e,t<<24>>24)}},!0)}else _=function(e){c(this,_,v);var t=p(e);this._b=y.call(new Array(t),0),this[M]=t},T=function(e,t,n){c(this,T,g),c(e,_,g);var o=e[M],r=f(t);if(r<0||o<r)throw C("Wrong offset!");if(o<r+(n=void 0===n?o-r:d(n)))throw C("Wrong length!");this[x]=e,this[V]=r,this[M]=n},r&&(z(_,L,"_l"),z(T,"buffer","_b"),z(T,L,"_l"),z(T,D,"_o")),s(T[E],{getInt8:function(e){return G(this,1,e)[0]<<24>>24},getUint8:function(e){return G(this,1,e)[0]},getInt16:function(e){var t=G(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=G(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return B(G(this,4,e,arguments[1]))},getUint32:function(e){return B(G(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return U(G(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return U(G(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){X(this,1,e,F,t)},setUint8:function(e,t){X(this,1,e,F,t)},setInt16:function(e,t){X(this,2,e,W,t,arguments[2])},setUint16:function(e,t){X(this,2,e,W,t,arguments[2])},setInt32:function(e,t){X(this,4,e,Y,t,arguments[2])},setUint32:function(e,t){X(this,4,e,Y,t,arguments[2])},setFloat32:function(e,t){X(this,4,e,H,t,arguments[2])},setFloat64:function(e,t){X(this,8,e,K,t,arguments[2])}});b(_,v),b(T,g),l(T[E],i.VIEW,!0),n[v]=_,n[g]=T},{"./_an-instance":103,"./_array-fill":106,"./_descriptors":124,"./_fails":130,"./_global":134,"./_hide":136,"./_library":153,"./_object-dp":163,"./_object-gopn":167,"./_redefine-all":181,"./_set-to-string-tag":186,"./_to-index":200,"./_to-integer":201,"./_to-length":203,"./_typed":208}],208:[function(e,t,n){for(var o,r=e("./_global"),a=e("./_hide"),i=e("./_uid"),l=i("typed_array"),s=i("view"),u=!(!r.ArrayBuffer||!r.DataView),c=u,f=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(o=r[d[f++]])?(a(o.prototype,l,!0),a(o.prototype,s,!0)):c=!1;t.exports={ABV:u,CONSTR:c,TYPED:l,VIEW:s}},{"./_global":134,"./_hide":136,"./_uid":209}],209:[function(e,t,n){var o=0,r=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++o+r).toString(36))}},{}],210:[function(e,t,n){var o=e("./_global").navigator;t.exports=o&&o.userAgent||""},{"./_global":134}],211:[function(e,t,n){var o=e("./_is-object");t.exports=function(e,t){if(!o(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},{"./_is-object":145}],212:[function(e,t,n){var o=e("./_global"),r=e("./_core"),a=e("./_library"),i=e("./_wks-ext"),l=e("./_object-dp").f;t.exports=function(e){var t=r.Symbol||(r.Symbol=a?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:i.f(e)})}},{"./_core":118,"./_global":134,"./_library":153,"./_object-dp":163,"./_wks-ext":213}],213:[function(e,t,n){n.f=e("./_wks")},{"./_wks":214}],214:[function(e,t,n){var o=e("./_shared")("wks"),r=e("./_uid"),a=e("./_global").Symbol,i="function"==typeof a;(t.exports=function(e){return o[e]||(o[e]=i&&a[e]||(i?a:r)("Symbol."+e))}).store=o},{"./_global":134,"./_shared":188,"./_uid":209}],215:[function(e,t,n){var o=e("./_classof"),r=e("./_wks")("iterator"),a=e("./_iterators");t.exports=e("./_core").getIteratorMethod=function(e){if(null!=e)return e[r]||e["@@iterator"]||a[o(e)]}},{"./_classof":113,"./_core":118,"./_iterators":152,"./_wks":214}],216:[function(e,t,n){var o=e("./_export");o(o.P,"Array",{copyWithin:e("./_array-copy-within")}),e("./_add-to-unscopables")("copyWithin")},{"./_add-to-unscopables":102,"./_array-copy-within":105,"./_export":128}],217:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_array-methods")(4);o(o.P+o.F*!e("./_strict-method")([].every,!0),"Array",{every:function(e){return r(this,e,arguments[1])}})},{"./_array-methods":108,"./_export":128,"./_strict-method":190}],218:[function(e,t,n){var o=e("./_export");o(o.P,"Array",{fill:e("./_array-fill")}),e("./_add-to-unscopables")("fill")},{"./_add-to-unscopables":102,"./_array-fill":106,"./_export":128}],219:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_array-methods")(2);o(o.P+o.F*!e("./_strict-method")([].filter,!0),"Array",{filter:function(e){return r(this,e,arguments[1])}})},{"./_array-methods":108,"./_export":128,"./_strict-method":190}],220:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_array-methods")(6),a="findIndex",i=!0;a in[]&&Array(1)[a](function(){i=!1}),o(o.P+o.F*i,"Array",{findIndex:function(e){return r(this,e,1<arguments.length?arguments[1]:void 0)}}),e("./_add-to-unscopables")(a)},{"./_add-to-unscopables":102,"./_array-methods":108,"./_export":128}],221:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_array-methods")(5),a=!0;"find"in[]&&Array(1).find(function(){a=!1}),o(o.P+o.F*a,"Array",{find:function(e){return r(this,e,1<arguments.length?arguments[1]:void 0)}}),e("./_add-to-unscopables")("find")},{"./_add-to-unscopables":102,"./_array-methods":108,"./_export":128}],222:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_array-methods")(0),a=e("./_strict-method")([].forEach,!0);o(o.P+o.F*!a,"Array",{forEach:function(e){return r(this,e,arguments[1])}})},{"./_array-methods":108,"./_export":128,"./_strict-method":190}],223:[function(e,t,n){"use strict";var d=e("./_ctx"),o=e("./_export"),p=e("./_to-object"),h=e("./_iter-call"),m=e("./_is-array-iter"),y=e("./_to-length"),b=e("./_create-property"),v=e("./core.get-iterator-method");o(o.S+o.F*!e("./_iter-detect")(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,r,a=p(e),i="function"==typeof this?this:Array,l=arguments.length,s=1<l?arguments[1]:void 0,u=void 0!==s,c=0,f=v(a);if(u&&(s=d(s,2<l?arguments[2]:void 0,2)),null==f||i==Array&&m(f))for(n=new i(t=y(a.length));c<t;c++)b(n,c,u?s(a[c],c):a[c]);else for(r=f.call(a),n=new i;!(o=r.next()).done;c++)b(n,c,u?h(r,s,[o.value,c],!0):o.value);return n.length=c,n}})},{"./_create-property":119,"./_ctx":120,"./_export":128,"./_is-array-iter":142,"./_iter-call":147,"./_iter-detect":150,"./_to-length":203,"./_to-object":204,"./core.get-iterator-method":215}],224:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_array-includes")(!1),a=[].indexOf,i=!!a&&1/[1].indexOf(1,-0)<0;o(o.P+o.F*(i||!e("./_strict-method")(a)),"Array",{indexOf:function(e){return i?a.apply(this,arguments)||0:r(this,e,arguments[1])}})},{"./_array-includes":107,"./_export":128,"./_strict-method":190}],225:[function(e,t,n){var o=e("./_export");o(o.S,"Array",{isArray:e("./_is-array")})},{"./_export":128,"./_is-array":143}],226:[function(e,t,n){"use strict";var o=e("./_add-to-unscopables"),r=e("./_iter-step"),a=e("./_iterators"),i=e("./_to-iobject");t.exports=e("./_iter-define")(Array,"Array",function(e,t){this._t=i(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),a.Arguments=a.Array,o("keys"),o("values"),o("entries")},{"./_add-to-unscopables":102,"./_iter-define":149,"./_iter-step":151,"./_iterators":152,"./_to-iobject":202}],227:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_to-iobject"),a=[].join;o(o.P+o.F*(e("./_iobject")!=Object||!e("./_strict-method")(a)),"Array",{join:function(e){return a.call(r(this),void 0===e?",":e)}})},{"./_export":128,"./_iobject":141,"./_strict-method":190,"./_to-iobject":202}],228:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_to-iobject"),a=e("./_to-integer"),i=e("./_to-length"),l=[].lastIndexOf,s=!!l&&1/[1].lastIndexOf(1,-0)<0;o(o.P+o.F*(s||!e("./_strict-method")(l)),"Array",{lastIndexOf:function(e){if(s)return l.apply(this,arguments)||0;var t=r(this),n=i(t.length),o=n-1;for(1<arguments.length&&(o=Math.min(o,a(arguments[1]))),o<0&&(o=n+o);0<=o;o--)if(o in t&&t[o]===e)return o||0;return-1}})},{"./_export":128,"./_strict-method":190,"./_to-integer":201,"./_to-iobject":202,"./_to-length":203}],229:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_array-methods")(1);o(o.P+o.F*!e("./_strict-method")([].map,!0),"Array",{map:function(e){return r(this,e,arguments[1])}})},{"./_array-methods":108,"./_export":128,"./_strict-method":190}],230:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_create-property");o(o.S+o.F*e("./_fails")(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);e<t;)r(n,e,arguments[e++]);return n.length=t,n}})},{"./_create-property":119,"./_export":128,"./_fails":130}],231:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_array-reduce");o(o.P+o.F*!e("./_strict-method")([].reduceRight,!0),"Array",{reduceRight:function(e){return r(this,e,arguments.length,arguments[1],!0)}})},{"./_array-reduce":109,"./_export":128,"./_strict-method":190}],232:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_array-reduce");o(o.P+o.F*!e("./_strict-method")([].reduce,!0),"Array",{reduce:function(e){return r(this,e,arguments.length,arguments[1],!1)}})},{"./_array-reduce":109,"./_export":128,"./_strict-method":190}],233:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_html"),u=e("./_cof"),c=e("./_to-absolute-index"),f=e("./_to-length"),d=[].slice;o(o.P+o.F*e("./_fails")(function(){r&&d.call(r)}),"Array",{slice:function(e,t){var n=f(this.length),o=u(this);if(t=void 0===t?n:t,"Array"==o)return d.call(this,e,t);for(var r=c(e,n),a=c(t,n),i=f(a-r),l=new Array(i),s=0;s<i;s++)l[s]="String"==o?this.charAt(r+s):this[r+s];return l}})},{"./_cof":114,"./_export":128,"./_fails":130,"./_html":137,"./_to-absolute-index":199,"./_to-length":203}],234:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_array-methods")(3);o(o.P+o.F*!e("./_strict-method")([].some,!0),"Array",{some:function(e){return r(this,e,arguments[1])}})},{"./_array-methods":108,"./_export":128,"./_strict-method":190}],235:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_a-function"),a=e("./_to-object"),i=e("./_fails"),l=[].sort,s=[1,2,3];o(o.P+o.F*(i(function(){s.sort(void 0)})||!i(function(){s.sort(null)})||!e("./_strict-method")(l)),"Array",{sort:function(e){return void 0===e?l.call(a(this)):l.call(a(this),r(e))}})},{"./_a-function":100,"./_export":128,"./_fails":130,"./_strict-method":190,"./_to-object":204}],236:[function(e,t,n){e("./_set-species")("Array")},{"./_set-species":185}],237:[function(e,t,n){var o=e("./_export");o(o.S,"Date",{now:function(){return(new Date).getTime()}})},{"./_export":128}],238:[function(e,t,n){var o=e("./_export"),r=e("./_date-to-iso-string");o(o.P+o.F*(Date.prototype.toISOString!==r),"Date",{toISOString:r})},{"./_date-to-iso-string":121,"./_export":128}],239:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_to-object"),a=e("./_to-primitive");o(o.P+o.F*e("./_fails")(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=r(this),n=a(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},{"./_export":128,"./_fails":130,"./_to-object":204,"./_to-primitive":205}],240:[function(e,t,n){var o=e("./_wks")("toPrimitive"),r=Date.prototype;o in r||e("./_hide")(r,o,e("./_date-to-primitive"))},{"./_date-to-primitive":122,"./_hide":136,"./_wks":214}],241:[function(e,t,n){var o=Date.prototype,r="Invalid Date",a=o.toString,i=o.getTime;new Date(NaN)+""!=r&&e("./_redefine")(o,"toString",function(){var e=i.call(this);return e==e?a.call(this):r})},{"./_redefine":182}],242:[function(e,t,n){var o=e("./_export");o(o.P,"Function",{bind:e("./_bind")})},{"./_bind":112,"./_export":128}],243:[function(e,t,n){"use strict";var o=e("./_is-object"),r=e("./_object-gpo"),a=e("./_wks")("hasInstance"),i=Function.prototype;a in i||e("./_object-dp").f(i,a,{value:function(e){if("function"!=typeof this||!o(e))return!1;if(!o(this.prototype))return e instanceof this;for(;e=r(e);)if(this.prototype===e)return!0;return!1}})},{"./_is-object":145,"./_object-dp":163,"./_object-gpo":169,"./_wks":214}],244:[function(e,t,n){var o=e("./_object-dp").f,r=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in r||e("./_descriptors")&&o(r,"name",{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(e){return""}}})},{"./_descriptors":124,"./_object-dp":163}],245:[function(e,t,n){"use strict";var o=e("./_collection-strong"),r=e("./_validate-collection");t.exports=e("./_collection")("Map",function(e){return function(){return e(this,0<arguments.length?arguments[0]:void 0)}},{get:function(e){var t=o.getEntry(r(this,"Map"),e);return t&&t.v},set:function(e,t){return o.def(r(this,"Map"),0===e?0:e,t)}},o,!0)},{"./_collection":117,"./_collection-strong":115,"./_validate-collection":211}],246:[function(e,t,n){var o=e("./_export"),r=e("./_math-log1p"),a=Math.sqrt,i=Math.acosh;o(o.S+o.F*!(i&&710==Math.floor(i(Number.MAX_VALUE))&&i(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:94906265.62425156<e?Math.log(e)+Math.LN2:r(e-1+a(e-1)*a(e+1))}})},{"./_export":128,"./_math-log1p":156}],247:[function(e,t,n){var o=e("./_export"),r=Math.asinh;o(o.S+o.F*!(r&&0<1/r(0)),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},{"./_export":128}],248:[function(e,t,n){var o=e("./_export"),r=Math.atanh;o(o.S+o.F*!(r&&1/r(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},{"./_export":128}],249:[function(e,t,n){var o=e("./_export"),r=e("./_math-sign");o(o.S,"Math",{cbrt:function(e){return r(e=+e)*Math.pow(Math.abs(e),1/3)}})},{"./_export":128,"./_math-sign":157}],250:[function(e,t,n){var o=e("./_export");o(o.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},{"./_export":128}],251:[function(e,t,n){var o=e("./_export"),r=Math.exp;o(o.S,"Math",{cosh:function(e){return(r(e=+e)+r(-e))/2}})},{"./_export":128}],252:[function(e,t,n){var o=e("./_export"),r=e("./_math-expm1");o(o.S+o.F*(r!=Math.expm1),"Math",{expm1:r})},{"./_export":128,"./_math-expm1":154}],253:[function(e,t,n){var o=e("./_export");o(o.S,"Math",{fround:e("./_math-fround")})},{"./_export":128,"./_math-fround":155}],254:[function(e,t,n){var o=e("./_export"),s=Math.abs;o(o.S,"Math",{hypot:function(e,t){for(var n,o,r=0,a=0,i=arguments.length,l=0;a<i;)l<(n=s(arguments[a++]))?(r=r*(o=l/n)*o+1,l=n):r+=0<n?(o=n/l)*o:n;return l===1/0?1/0:l*Math.sqrt(r)}})},{"./_export":128}],255:[function(e,t,n){var o=e("./_export"),r=Math.imul;o(o.S+o.F*e("./_fails")(function(){return-5!=r(4294967295,5)||2!=r.length}),"Math",{imul:function(e,t){var n=+e,o=+t,r=65535&n,a=65535&o;return 0|r*a+((65535&n>>>16)*a+r*(65535&o>>>16)<<16>>>0)}})},{"./_export":128,"./_fails":130}],256:[function(e,t,n){var o=e("./_export");o(o.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},{"./_export":128}],257:[function(e,t,n){var o=e("./_export");o(o.S,"Math",{log1p:e("./_math-log1p")})},{"./_export":128,"./_math-log1p":156}],258:[function(e,t,n){var o=e("./_export");o(o.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},{"./_export":128}],259:[function(e,t,n){var o=e("./_export");o(o.S,"Math",{sign:e("./_math-sign")})},{"./_export":128,"./_math-sign":157}],260:[function(e,t,n){var o=e("./_export"),r=e("./_math-expm1"),a=Math.exp;o(o.S+o.F*e("./_fails")(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(r(e)-r(-e))/2:(a(e-1)-a(-e-1))*(Math.E/2)}})},{"./_export":128,"./_fails":130,"./_math-expm1":154}],261:[function(e,t,n){var o=e("./_export"),r=e("./_math-expm1"),a=Math.exp;o(o.S,"Math",{tanh:function(e){var t=r(e=+e),n=r(-e);return t==1/0?1:n==1/0?-1:(t-n)/(a(e)+a(-e))}})},{"./_export":128,"./_math-expm1":154}],262:[function(e,t,n){var o=e("./_export");o(o.S,"Math",{trunc:function(e){return(0<e?Math.floor:Math.ceil)(e)}})},{"./_export":128}],263:[function(e,t,n){"use strict";var o=e("./_global"),r=e("./_has"),a=e("./_cof"),i=e("./_inherit-if-required"),c=e("./_to-primitive"),l=e("./_fails"),s=e("./_object-gopn").f,u=e("./_object-gopd").f,f=e("./_object-dp").f,d=e("./_string-trim").trim,p="Number",h=o[p],m=h,y=h.prototype,b=a(e("./_object-create")(y))==p,v="trim"in String.prototype,g=function(e){var t=c(e,!1);if("string"==typeof t&&2<t.length){var n,o,r,a=(t=v?t.trim():d(t,3)).charCodeAt(0);if(43===a||45===a){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===a){switch(t.charCodeAt(1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+t}for(var i,l=t.slice(2),s=0,u=l.length;s<u;s++)if((i=l.charCodeAt(s))<48||r<i)return NaN;return parseInt(l,o)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof h&&(b?l(function(){y.valueOf.call(n)}):a(n)!=p)?i(new m(g(t)),n,h):g(t)};for(var E,S=e("./_descriptors")?s(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;S.length>_;_++)r(m,E=S[_])&&!r(h,E)&&f(h,E,u(m,E));(h.prototype=y).constructor=h,e("./_redefine")(o,p,h)}},{"./_cof":114,"./_descriptors":124,"./_fails":130,"./_global":134,"./_has":135,"./_inherit-if-required":139,"./_object-create":162,"./_object-dp":163,"./_object-gopd":165,"./_object-gopn":167,"./_redefine":182,"./_string-trim":196,"./_to-primitive":205}],264:[function(e,t,n){var o=e("./_export");o(o.S,"Number",{EPSILON:Math.pow(2,-52)})},{"./_export":128}],265:[function(e,t,n){var o=e("./_export"),r=e("./_global").isFinite;o(o.S,"Number",{isFinite:function(e){return"number"==typeof e&&r(e)}})},{"./_export":128,"./_global":134}],266:[function(e,t,n){var o=e("./_export");o(o.S,"Number",{isInteger:e("./_is-integer")})},{"./_export":128,"./_is-integer":144}],267:[function(e,t,n){var o=e("./_export");o(o.S,"Number",{isNaN:function(e){return e!=e}})},{"./_export":128}],268:[function(e,t,n){var o=e("./_export"),r=e("./_is-integer"),a=Math.abs;o(o.S,"Number",{isSafeInteger:function(e){return r(e)&&a(e)<=9007199254740991}})},{"./_export":128,"./_is-integer":144}],269:[function(e,t,n){var o=e("./_export");o(o.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{"./_export":128}],270:[function(e,t,n){var o=e("./_export");o(o.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{"./_export":128}],271:[function(e,t,n){var o=e("./_export"),r=e("./_parse-float");o(o.S+o.F*(Number.parseFloat!=r),"Number",{parseFloat:r})},{"./_export":128,"./_parse-float":176}],272:[function(e,t,n){var o=e("./_export"),r=e("./_parse-int");o(o.S+o.F*(Number.parseInt!=r),"Number",{parseInt:r})},{"./_export":128,"./_parse-int":177}],273:[function(e,t,n){"use strict";var o=e("./_export"),u=e("./_to-integer"),c=e("./_a-number-value"),f=e("./_string-repeat"),r=1..toFixed,a=Math.floor,i=[0,0,0,0,0,0],d="Number.toFixed: incorrect invocation!",p=function(e,t){for(var n=-1,o=t;++n<6;)o+=e*i[n],i[n]=o%1e7,o=a(o/1e7)},h=function(e){for(var t=6,n=0;0<=--t;)n+=i[t],i[t]=a(n/e),n=n%e*1e7},m=function(){for(var e=6,t="";0<=--e;)if(""!==t||0===e||0!==i[e]){var n=String(i[e]);t=""===t?n:t+f.call("0",7-n.length)+n}return t},y=function(e,t,n){return 0===t?n:t%2==1?y(e,t-1,n*e):y(e*e,t/2,n)};o(o.P+o.F*(!!r&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!e("./_fails")(function(){r.call({})})),"Number",{toFixed:function(e){var t,n,o,r,a=c(this,d),i=u(e),l="",s="0";if(i<0||20<i)throw RangeError(d);if(a!=a)return"NaN";if(a<=-1e21||1e21<=a)return String(a);if(a<0&&(l="-",a=-a),1e-21<a)if(n=(t=function(e){for(var t=0,n=e;4096<=n;)t+=12,n/=4096;for(;2<=n;)t+=1,n/=2;return t}(a*y(2,69,1))-69)<0?a*y(2,-t,1):a/y(2,t,1),n*=4503599627370496,0<(t=52-t)){for(p(0,n),o=i;7<=o;)p(1e7,0),o-=7;for(p(y(10,o,1),0),o=t-1;23<=o;)h(1<<23),o-=23;h(1<<o),p(1,1),h(2),s=m()}else p(0,n),p(1<<-t,0),s=m()+f.call("0",i);return s=0<i?l+((r=s.length)<=i?"0."+f.call("0",i-r)+s:s.slice(0,r-i)+"."+s.slice(r-i)):l+s}})},{"./_a-number-value":101,"./_export":128,"./_fails":130,"./_string-repeat":195,"./_to-integer":201}],274:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_fails"),a=e("./_a-number-value"),i=1..toPrecision;o(o.P+o.F*(r(function(){return"1"!==i.call(1,void 0)})||!r(function(){i.call({})})),"Number",{toPrecision:function(e){var t=a(this,"Number#toPrecision: incorrect invocation!");return void 0===e?i.call(t):i.call(t,e)}})},{"./_a-number-value":101,"./_export":128,"./_fails":130}],275:[function(e,t,n){var o=e("./_export");o(o.S+o.F,"Object",{assign:e("./_object-assign")})},{"./_export":128,"./_object-assign":161}],276:[function(e,t,n){var o=e("./_export");o(o.S,"Object",{create:e("./_object-create")})},{"./_export":128,"./_object-create":162}],277:[function(e,t,n){var o=e("./_export");o(o.S+o.F*!e("./_descriptors"),"Object",{defineProperties:e("./_object-dps")})},{"./_descriptors":124,"./_export":128,"./_object-dps":164}],278:[function(e,t,n){var o=e("./_export");o(o.S+o.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})},{"./_descriptors":124,"./_export":128,"./_object-dp":163}],279:[function(e,t,n){var o=e("./_is-object"),r=e("./_meta").onFreeze;e("./_object-sap")("freeze",function(t){return function(e){return t&&o(e)?t(r(e)):e}})},{"./_is-object":145,"./_meta":158,"./_object-sap":173}],280:[function(e,t,n){var o=e("./_to-iobject"),r=e("./_object-gopd").f;e("./_object-sap")("getOwnPropertyDescriptor",function(){return function(e,t){return r(o(e),t)}})},{"./_object-gopd":165,"./_object-sap":173,"./_to-iobject":202}],281:[function(e,t,n){e("./_object-sap")("getOwnPropertyNames",function(){return e("./_object-gopn-ext").f})},{"./_object-gopn-ext":166,"./_object-sap":173}],282:[function(e,t,n){var o=e("./_to-object"),r=e("./_object-gpo");e("./_object-sap")("getPrototypeOf",function(){return function(e){return r(o(e))}})},{"./_object-gpo":169,"./_object-sap":173,"./_to-object":204}],283:[function(e,t,n){var o=e("./_is-object");e("./_object-sap")("isExtensible",function(t){return function(e){return!!o(e)&&(!t||t(e))}})},{"./_is-object":145,"./_object-sap":173}],284:[function(e,t,n){var o=e("./_is-object");e("./_object-sap")("isFrozen",function(t){return function(e){return!o(e)||!!t&&t(e)}})},{"./_is-object":145,"./_object-sap":173}],285:[function(e,t,n){var o=e("./_is-object");e("./_object-sap")("isSealed",function(t){return function(e){return!o(e)||!!t&&t(e)}})},{"./_is-object":145,"./_object-sap":173}],286:[function(e,t,n){var o=e("./_export");o(o.S,"Object",{is:e("./_same-value")})},{"./_export":128,"./_same-value":183}],287:[function(e,t,n){var o=e("./_to-object"),r=e("./_object-keys");e("./_object-sap")("keys",function(){return function(e){return r(o(e))}})},{"./_object-keys":171,"./_object-sap":173,"./_to-object":204}],288:[function(e,t,n){var o=e("./_is-object"),r=e("./_meta").onFreeze;e("./_object-sap")("preventExtensions",function(t){return function(e){return t&&o(e)?t(r(e)):e}})},{"./_is-object":145,"./_meta":158,"./_object-sap":173}],289:[function(e,t,n){var o=e("./_is-object"),r=e("./_meta").onFreeze;e("./_object-sap")("seal",function(t){return function(e){return t&&o(e)?t(r(e)):e}})},{"./_is-object":145,"./_meta":158,"./_object-sap":173}],290:[function(e,t,n){var o=e("./_export");o(o.S,"Object",{setPrototypeOf:e("./_set-proto").set})},{"./_export":128,"./_set-proto":184}],291:[function(e,t,n){"use strict";var o=e("./_classof"),r={};r[e("./_wks")("toStringTag")]="z",r+""!="[object z]"&&e("./_redefine")(Object.prototype,"toString",function(){return"[object "+o(this)+"]"},!0)},{"./_classof":113,"./_redefine":182,"./_wks":214}],292:[function(e,t,n){var o=e("./_export"),r=e("./_parse-float");o(o.G+o.F*(parseFloat!=r),{parseFloat:r})},{"./_export":128,"./_parse-float":176}],293:[function(e,t,n){var o=e("./_export"),r=e("./_parse-int");o(o.G+o.F*(parseInt!=r),{parseInt:r})},{"./_export":128,"./_parse-int":177}],294:[function(n,e,t){"use strict";var o,r,a,i,l=n("./_library"),s=n("./_global"),u=n("./_ctx"),c=n("./_classof"),f=n("./_export"),d=n("./_is-object"),p=n("./_a-function"),h=n("./_an-instance"),m=n("./_for-of"),y=n("./_species-constructor"),b=n("./_task").set,v=n("./_microtask")(),g=n("./_new-promise-capability"),E=n("./_perform"),S=n("./_user-agent"),_=n("./_promise-resolve"),T="Promise",O=s.TypeError,C=s.process,A=C&&C.versions,N=A&&A.v8||"",w=s[T],R="process"==c(C),P=function(){},k=r=g.f,I=!!function(){try{var e=w.resolve(1),t=(e.constructor={})[n("./_wks")("species")]=function(e){e(P,P)};return(R||"function"==typeof PromiseRejectionEvent)&&e.then(P)instanceof t&&0!==N.indexOf("6.6")&&-1===S.indexOf("Chrome/66")}catch(e){}}(),L=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},D=function(c,n){if(!c._n){c._n=!0;var o=c._c;v(function(){for(var s=c._v,u=1==c._s,e=0,t=function(e){var t,n,o,r=u?e.ok:e.fail,a=e.resolve,i=e.reject,l=e.domain;try{r?(u||(2==c._h&&V(c),c._h=1),!0===r?t=s:(l&&l.enter(),t=r(s),l&&(l.exit(),o=!0)),t===e.promise?i(O("Promise-chain cycle")):(n=L(t))?n.call(t,a,i):a(t)):i(s)}catch(e){l&&!o&&l.exit(),i(e)}};o.length>e;)t(o[e++]);c._c=[],c._n=!1,n&&!c._h&&x(c)})}},x=function(a){b.call(s,function(){var e,t,n,o=a._v,r=M(a);if(r&&(e=E(function(){R?C.emit("unhandledRejection",o,a):(t=s.onunhandledrejection)?t({promise:a,reason:o}):(n=s.console)&&n.error&&n.error("Unhandled promise rejection",o)}),a._h=R||M(a)?2:1),a._a=void 0,r&&e.e)throw e.v})},M=function(e){return 1!==e._h&&0===(e._a||e._c).length},V=function(t){b.call(s,function(){var e;R?C.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},j=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),D(t,!0))},U=function(e){var n,o=this;if(!o._d){o._d=!0,o=o._w||o;try{if(o===e)throw O("Promise can't be resolved itself");(n=L(e))?v(function(){var t={_w:o,_d:!1};try{n.call(e,u(U,t,1),u(j,t,1))}catch(e){j.call(t,e)}}):(o._v=e,o._s=1,D(o,!1))}catch(e){j.call({_w:o,_d:!1},e)}}};I||(w=function(e){h(this,w,T,"_h"),p(e),o.call(this);try{e(u(U,this,1),u(j,this,1))}catch(e){j.call(this,e)}},(o=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n("./_redefine-all")(w.prototype,{then:function(e,t){var n=k(y(this,w));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=R?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&D(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new o;this.promise=e,this.resolve=u(U,e,1),this.reject=u(j,e,1)},g.f=k=function(e){return e===w||e===i?new a(e):r(e)}),f(f.G+f.W+f.F*!I,{Promise:w}),n("./_set-to-string-tag")(w,T),n("./_set-species")(T),i=n("./_core")[T],f(f.S+f.F*!I,T,{reject:function(e){var t=k(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(l||!I),T,{resolve:function(e){return _(l&&this===i?w:this,e)}}),f(f.S+f.F*!(I&&n("./_iter-detect")(function(e){w.all(e).catch(P)})),T,{all:function(e){var i=this,t=k(i),l=t.resolve,s=t.reject,n=E(function(){var o=[],r=0,a=1;m(e,!1,function(e){var t=r++,n=!1;o.push(void 0),a++,i.resolve(e).then(function(e){n||(n=!0,o[t]=e,--a||l(o))},s)}),--a||l(o)});return n.e&&s(n.v),t.promise},race:function(e){var t=this,n=k(t),o=n.reject,r=E(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,o)})});return r.e&&o(r.v),n.promise}})},{"./_a-function":100,"./_an-instance":103,"./_classof":113,"./_core":118,"./_ctx":120,"./_export":128,"./_for-of":133,"./_global":134,"./_is-object":145,"./_iter-detect":150,"./_library":153,"./_microtask":159,"./_new-promise-capability":160,"./_perform":178,"./_promise-resolve":179,"./_redefine-all":181,"./_set-species":185,"./_set-to-string-tag":186,"./_species-constructor":189,"./_task":198,"./_user-agent":210,"./_wks":214}],295:[function(e,t,n){var o=e("./_export"),a=e("./_a-function"),i=e("./_an-object"),l=(e("./_global").Reflect||{}).apply,s=Function.apply;o(o.S+o.F*!e("./_fails")(function(){l(function(){})}),"Reflect",{apply:function(e,t,n){var o=a(e),r=i(n);return l?l(o,t,r):s.call(o,t,r)}})},{"./_a-function":100,"./_an-object":104,"./_export":128,"./_fails":130,"./_global":134}],296:[function(e,t,n){var o=e("./_export"),l=e("./_object-create"),s=e("./_a-function"),u=e("./_an-object"),c=e("./_is-object"),r=e("./_fails"),f=e("./_bind"),d=(e("./_global").Reflect||{}).construct,p=r(function(){function e(){}return!(d(function(){},[],e)instanceof e)}),h=!r(function(){d(function(){})});o(o.S+o.F*(p||h),"Reflect",{construct:function(e,t){s(e),u(t);var n=arguments.length<3?e:s(arguments[2]);if(h&&!p)return d(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var o=[null];return o.push.apply(o,t),new(f.apply(e,o))}var r=n.prototype,a=l(c(r)?r:Object.prototype),i=Function.apply.call(e,a,t);return c(i)?i:a}})},{"./_a-function":100,"./_an-object":104,"./_bind":112,"./_export":128,"./_fails":130,"./_global":134,"./_is-object":145,"./_object-create":162}],297:[function(e,t,n){var o=e("./_object-dp"),r=e("./_export"),a=e("./_an-object"),i=e("./_to-primitive");r(r.S+r.F*e("./_fails")(function(){Reflect.defineProperty(o.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,n){a(e),t=i(t,!0),a(n);try{return o.f(e,t,n),!0}catch(e){return!1}}})},{"./_an-object":104,"./_export":128,"./_fails":130,"./_object-dp":163,"./_to-primitive":205}],298:[function(e,t,n){var o=e("./_export"),r=e("./_object-gopd").f,a=e("./_an-object");o(o.S,"Reflect",{deleteProperty:function(e,t){var n=r(a(e),t);return!(n&&!n.configurable)&&delete e[t]}})},{"./_an-object":104,"./_export":128,"./_object-gopd":165}],299:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_an-object"),a=function(e){this._t=r(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};e("./_iter-create")(a,"Object",function(){var e,t=this._k;do{if(this._i>=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),o(o.S,"Reflect",{enumerate:function(e){return new a(e)}})},{"./_an-object":104,"./_export":128,"./_iter-create":148}],300:[function(e,t,n){var o=e("./_object-gopd"),r=e("./_export"),a=e("./_an-object");r(r.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return o.f(a(e),t)}})},{"./_an-object":104,"./_export":128,"./_object-gopd":165}],301:[function(e,t,n){var o=e("./_export"),r=e("./_object-gpo"),a=e("./_an-object");o(o.S,"Reflect",{getPrototypeOf:function(e){return r(a(e))}})},{"./_an-object":104,"./_export":128,"./_object-gpo":169}],302:[function(e,t,n){var i=e("./_object-gopd"),l=e("./_object-gpo"),s=e("./_has"),o=e("./_export"),u=e("./_is-object"),c=e("./_an-object");o(o.S,"Reflect",{get:function e(t,n){var o,r,a=arguments.length<3?t:arguments[2];return c(t)===a?t[n]:(o=i.f(t,n))?s(o,"value")?o.value:void 0!==o.get?o.get.call(a):void 0:u(r=l(t))?e(r,n,a):void 0}})},{"./_an-object":104,"./_export":128,"./_has":135,"./_is-object":145,"./_object-gopd":165,"./_object-gpo":169}],303:[function(e,t,n){var o=e("./_export");o(o.S,"Reflect",{has:function(e,t){return t in e}})},{"./_export":128}],304:[function(e,t,n){var o=e("./_export"),r=e("./_an-object"),a=Object.isExtensible;o(o.S,"Reflect",{isExtensible:function(e){return r(e),!a||a(e)}})},{"./_an-object":104,"./_export":128}],305:[function(e,t,n){var o=e("./_export");o(o.S,"Reflect",{ownKeys:e("./_own-keys")})},{"./_export":128,"./_own-keys":175}],306:[function(e,t,n){var o=e("./_export"),r=e("./_an-object"),a=Object.preventExtensions;o(o.S,"Reflect",{preventExtensions:function(e){r(e);try{return a&&a(e),!0}catch(e){return!1}}})},{"./_an-object":104,"./_export":128}],307:[function(e,t,n){var o=e("./_export"),r=e("./_set-proto");r&&o(o.S,"Reflect",{setPrototypeOf:function(e,t){r.check(e,t);try{return r.set(e,t),!0}catch(e){return!1}}})},{"./_export":128,"./_set-proto":184}],308:[function(e,t,n){var s=e("./_object-dp"),u=e("./_object-gopd"),c=e("./_object-gpo"),f=e("./_has"),o=e("./_export"),d=e("./_property-desc"),p=e("./_an-object"),h=e("./_is-object");o(o.S,"Reflect",{set:function e(t,n,o){var r,a,i=arguments.length<4?t:arguments[3],l=u.f(p(t),n);if(!l){if(h(a=c(t)))return e(a,n,o,i);l=d(0)}if(f(l,"value")){if(!1===l.writable||!h(i))return!1;if(r=u.f(i,n)){if(r.get||r.set||!1===r.writable)return!1;r.value=o,s.f(i,n,r)}else s.f(i,n,d(0,o));return!0}return void 0!==l.set&&(l.set.call(i,o),!0)}})},{"./_an-object":104,"./_export":128,"./_has":135,"./_is-object":145,"./_object-dp":163,"./_object-gopd":165,"./_object-gpo":169,"./_property-desc":180}],309:[function(e,t,n){var o=e("./_global"),a=e("./_inherit-if-required"),r=e("./_object-dp").f,i=e("./_object-gopn").f,l=e("./_is-regexp"),s=e("./_flags"),u=o.RegExp,c=u,f=u.prototype,d=/a/g,p=/a/g,h=new u(d)!==d;if(e("./_descriptors")&&(!h||e("./_fails")(function(){return p[e("./_wks")("match")]=!1,u(d)!=d||u(p)==p||"/a/i"!=u(d,"i")}))){u=function(e,t){var n=this instanceof u,o=l(e),r=void 0===t;return!n&&o&&e.constructor===u&&r?e:a(h?new c(o&&!r?e.source:e,t):c((o=e instanceof u)?e.source:e,o&&r?s.call(e):t),n?this:f,u)};for(var m=function(t){t in u||r(u,t,{configurable:!0,get:function(){return c[t]},set:function(e){c[t]=e}})},y=i(c),b=0;y.length>b;)m(y[b++]);(f.constructor=u).prototype=f,e("./_redefine")(o,"RegExp",u)}e("./_set-species")("RegExp")},{"./_descriptors":124,"./_fails":130,"./_flags":132,"./_global":134,"./_inherit-if-required":139,"./_is-regexp":146,"./_object-dp":163,"./_object-gopn":167,"./_redefine":182,"./_set-species":185,"./_wks":214}],310:[function(e,t,n){e("./_descriptors")&&"g"!=/./g.flags&&e("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:e("./_flags")})},{"./_descriptors":124,"./_flags":132,"./_object-dp":163}],311:[function(e,t,n){e("./_fix-re-wks")("match",1,function(o,r,e){return[function(e){"use strict";var t=o(this),n=null==e?void 0:e[r];return void 0!==n?n.call(e,t):new RegExp(e)[r](String(t))},e]})},{"./_fix-re-wks":131}],312:[function(e,t,n){e("./_fix-re-wks")("replace",2,function(r,a,i){return[function(e,t){"use strict";var n=r(this),o=null==e?void 0:e[a];return void 0!==o?o.call(e,n,t):i.call(String(n),e,t)},i]})},{"./_fix-re-wks":131}],313:[function(e,t,n){e("./_fix-re-wks")("search",1,function(o,r,e){return[function(e){"use strict";var t=o(this),n=null==e?void 0:e[r];return void 0!==n?n.call(e,t):new RegExp(e)[r](String(t))},e]})},{"./_fix-re-wks":131}],314:[function(t,e,n){t("./_fix-re-wks")("split",2,function(r,a,i){"use strict";var p=t("./_is-regexp"),h=i,m=[].push,e="split",y="length";if("c"=="abbc"[e](/(b)*/)[1]||4!="test"[e](/(?:)/,-1)[y]||2!="ab"[e](/(?:ab)*/)[y]||4!="."[e](/(.?)(.?)/)[y]||1<"."[e](/()()/)[y]||""[e](/.?/)[y]){var b=void 0===/()??/.exec("")[1];i=function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!p(e))return h.call(n,e,t);var o,r,a,i,l,s=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=void 0===t?4294967295:t>>>0,d=new RegExp(e.source,u+"g");for(b||(o=new RegExp("^"+d.source+"$(?!\\s)",u));(r=d.exec(n))&&!(c<(a=r.index+r[0][y])&&(s.push(n.slice(c,r.index)),!b&&1<r[y]&&r[0].replace(o,function(){for(l=1;l<arguments[y]-2;l++)void 0===arguments[l]&&(r[l]=void 0)}),1<r[y]&&r.index<n[y]&&m.apply(s,r.slice(1)),i=r[0][y],c=a,s[y]>=f));)d.lastIndex===r.index&&d.lastIndex++;return c===n[y]?!i&&d.test("")||s.push(""):s.push(n.slice(c)),s[y]>f?s.slice(0,f):s}}else"0"[e](void 0,0)[y]&&(i=function(e,t){return void 0===e&&0===t?[]:h.call(this,e,t)});return[function(e,t){var n=r(this),o=null==e?void 0:e[a];return void 0!==o?o.call(e,n,t):i.call(String(n),e,t)},i]})},{"./_fix-re-wks":131,"./_is-regexp":146}],315:[function(t,e,n){"use strict";t("./es6.regexp.flags");var o=t("./_an-object"),r=t("./_flags"),a=t("./_descriptors"),i="toString",l=/./[i],s=function(e){t("./_redefine")(RegExp.prototype,i,e,!0)};t("./_fails")(function(){return"/a/b"!=l.call({source:"a",flags:"b"})})?s(function(){var e=o(this);return"/".concat(e.source,"/","flags"in e?e.flags:!a&&e instanceof RegExp?r.call(e):void 0)}):l.name!=i&&s(function(){return l.call(this)})},{"./_an-object":104,"./_descriptors":124,"./_fails":130,"./_flags":132,"./_redefine":182,"./es6.regexp.flags":310}],316:[function(e,t,n){"use strict";var o=e("./_collection-strong"),r=e("./_validate-collection");t.exports=e("./_collection")("Set",function(e){return function(){return e(this,0<arguments.length?arguments[0]:void 0)}},{add:function(e){return o.def(r(this,"Set"),e=0===e?0:e,e)}},o)},{"./_collection":117,"./_collection-strong":115,"./_validate-collection":211}],317:[function(e,t,n){"use strict";e("./_string-html")("anchor",function(t){return function(e){return t(this,"a","name",e)}})},{"./_string-html":193}],318:[function(e,t,n){"use strict";e("./_string-html")("big",function(e){return function(){return e(this,"big","","")}})},{"./_string-html":193}],319:[function(e,t,n){"use strict";e("./_string-html")("blink",function(e){return function(){return e(this,"blink","","")}})},{"./_string-html":193}],320:[function(e,t,n){"use strict";e("./_string-html")("bold",function(e){return function(){return e(this,"b","","")}})},{"./_string-html":193}],321:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_string-at")(!1);o(o.P,"String",{codePointAt:function(e){return r(this,e)}})},{"./_export":128,"./_string-at":191}],322:[function(e,t,n){"use strict";var o=e("./_export"),i=e("./_to-length"),l=e("./_string-context"),s="endsWith",u=""[s];o(o.P+o.F*e("./_fails-is-regexp")(s),"String",{endsWith:function(e){var t=l(this,e,s),n=1<arguments.length?arguments[1]:void 0,o=i(t.length),r=void 0===n?o:Math.min(i(n),o),a=String(e);return u?u.call(t,a,r):t.slice(r-a.length,r)===a}})},{"./_export":128,"./_fails-is-regexp":129,"./_string-context":192,"./_to-length":203}],323:[function(e,t,n){"use strict";e("./_string-html")("fixed",function(e){return function(){return e(this,"tt","","")}})},{"./_string-html":193}],324:[function(e,t,n){"use strict";e("./_string-html")("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},{"./_string-html":193}],325:[function(e,t,n){"use strict";e("./_string-html")("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},{"./_string-html":193}],326:[function(e,t,n){var o=e("./_export"),a=e("./_to-absolute-index"),i=String.fromCharCode,r=String.fromCodePoint;o(o.S+o.F*(!!r&&1!=r.length),"String",{fromCodePoint:function(e){for(var t,n=[],o=arguments.length,r=0;r<o;){if(t=+arguments[r++],a(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},{"./_export":128,"./_to-absolute-index":199}],327:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_string-context");o(o.P+o.F*e("./_fails-is-regexp")("includes"),"String",{includes:function(e){return!!~r(this,e,"includes").indexOf(e,1<arguments.length?arguments[1]:void 0)}})},{"./_export":128,"./_fails-is-regexp":129,"./_string-context":192}],328:[function(e,t,n){"use strict";e("./_string-html")("italics",function(e){return function(){return e(this,"i","","")}})},{"./_string-html":193}],329:[function(e,t,n){"use strict";var o=e("./_string-at")(!0);e("./_iter-define")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},{"./_iter-define":149,"./_string-at":191}],330:[function(e,t,n){"use strict";e("./_string-html")("link",function(t){return function(e){return t(this,"a","href",e)}})},{"./_string-html":193}],331:[function(e,t,n){var o=e("./_export"),i=e("./_to-iobject"),l=e("./_to-length");o(o.S,"String",{raw:function(e){for(var t=i(e.raw),n=l(t.length),o=arguments.length,r=[],a=0;a<n;)r.push(String(t[a++])),a<o&&r.push(String(arguments[a]));return r.join("")}})},{"./_export":128,"./_to-iobject":202,"./_to-length":203}],332:[function(e,t,n){var o=e("./_export");o(o.P,"String",{repeat:e("./_string-repeat")})},{"./_export":128,"./_string-repeat":195}],333:[function(e,t,n){"use strict";e("./_string-html")("small",function(e){return function(){return e(this,"small","","")}})},{"./_string-html":193}],334:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_to-length"),a=e("./_string-context"),i="startsWith",l=""[i];o(o.P+o.F*e("./_fails-is-regexp")(i),"String",{startsWith:function(e){var t=a(this,e,i),n=r(Math.min(1<arguments.length?arguments[1]:void 0,t.length)),o=String(e);return l?l.call(t,o,n):t.slice(n,n+o.length)===o}})},{"./_export":128,"./_fails-is-regexp":129,"./_string-context":192,"./_to-length":203}],335:[function(e,t,n){"use strict";e("./_string-html")("strike",function(e){return function(){return e(this,"strike","","")}})},{"./_string-html":193}],336:[function(e,t,n){"use strict";e("./_string-html")("sub",function(e){return function(){return e(this,"sub","","")}})},{"./_string-html":193}],337:[function(e,t,n){"use strict";e("./_string-html")("sup",function(e){return function(){return e(this,"sup","","")}})},{"./_string-html":193}],338:[function(e,t,n){"use strict";e("./_string-trim")("trim",function(e){return function(){return e(this,3)}})},{"./_string-trim":196}],339:[function(e,t,n){"use strict";var o=e("./_global"),i=e("./_has"),r=e("./_descriptors"),a=e("./_export"),l=e("./_redefine"),s=e("./_meta").KEY,u=e("./_fails"),c=e("./_shared"),f=e("./_set-to-string-tag"),d=e("./_uid"),p=e("./_wks"),h=e("./_wks-ext"),m=e("./_wks-define"),y=e("./_enum-keys"),b=e("./_is-array"),v=e("./_an-object"),g=e("./_is-object"),E=e("./_to-iobject"),S=e("./_to-primitive"),_=e("./_property-desc"),T=e("./_object-create"),O=e("./_object-gopn-ext"),C=e("./_object-gopd"),A=e("./_object-dp"),N=e("./_object-keys"),w=C.f,R=A.f,P=O.f,k=o.Symbol,I=o.JSON,L=I&&I.stringify,D="prototype",x=p("_hidden"),M=p("toPrimitive"),V={}.propertyIsEnumerable,j=c("symbol-registry"),U=c("symbols"),B=c("op-symbols"),F=Object[D],W="function"==typeof k,Y=o.QObject,K=!Y||!Y[D]||!Y[D].findChild,H=r&&u(function(){return 7!=T(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=w(F,t);o&&delete F[t],R(e,t,n),o&&e!==F&&R(F,t,o)}:R,z=function(e){var t=U[e]=T(k[D]);return t._k=e,t},G=W&&"symbol"==typeof k.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof k},X=function(e,t,n){return e===F&&X(B,t,n),v(e),t=S(t,!0),v(n),i(U,t)?(n.enumerable?(i(e,x)&&e[x][t]&&(e[x][t]=!1),n=T(n,{enumerable:_(0,!1)})):(i(e,x)||R(e,x,_(1,{})),e[x][t]=!0),H(e,t,n)):R(e,t,n)},q=function(e,t){v(e);for(var n,o=y(t=E(t)),r=0,a=o.length;r<a;)X(e,n=o[r++],t[n]);return e},Q=function(e){var t=V.call(this,e=S(e,!0));return!(this===F&&i(U,e)&&!i(B,e))&&(!(t||!i(this,e)||!i(U,e)||i(this,x)&&this[x][e])||t)},$=function(e,t){if(e=E(e),t=S(t,!0),e!==F||!i(U,t)||i(B,t)){var n=w(e,t);return!n||!i(U,t)||i(e,x)&&e[x][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=P(E(e)),o=[],r=0;n.length>r;)i(U,t=n[r++])||t==x||t==s||o.push(t);return o},Z=function(e){for(var t,n=e===F,o=P(n?B:E(e)),r=[],a=0;o.length>a;)!i(U,t=o[a++])||n&&!i(F,t)||r.push(U[t]);return r};W||(l((k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var t=d(0<arguments.length?arguments[0]:void 0),n=function(e){this===F&&n.call(B,e),i(this,x)&&i(this[x],t)&&(this[x][t]=!1),H(this,t,_(1,e))};return r&&K&&H(F,t,{configurable:!0,set:n}),z(t)})[D],"toString",function(){return this._k}),C.f=$,A.f=X,e("./_object-gopn").f=O.f=J,e("./_object-pie").f=Q,e("./_object-gops").f=Z,r&&!e("./_library")&&l(F,"propertyIsEnumerable",Q,!0),h.f=function(e){return z(p(e))}),a(a.G+a.W+a.F*!W,{Symbol:k});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)p(ee[te++]);for(var ne=N(p.store),oe=0;ne.length>oe;)m(ne[oe++]);a(a.S+a.F*!W,"Symbol",{for:function(e){return i(j,e+="")?j[e]:j[e]=k(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in j)if(j[t]===e)return t},useSetter:function(){K=!0},useSimple:function(){K=!1}}),a(a.S+a.F*!W,"Object",{create:function(e,t){return void 0===t?T(e):q(T(e),t)},defineProperty:X,defineProperties:q,getOwnPropertyDescriptor:$,getOwnPropertyNames:J,getOwnPropertySymbols:Z}),I&&a(a.S+a.F*(!W||u(function(){var e=k();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))})),"JSON",{stringify:function(e){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=t=o[1],(g(t)||void 0!==e)&&!G(e))return b(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),o[1]=t,L.apply(I,o)}}),k[D][M]||e("./_hide")(k[D],M,k[D].valueOf),f(k,"Symbol"),f(Math,"Math",!0),f(o.JSON,"JSON",!0)},{"./_an-object":104,"./_descriptors":124,"./_enum-keys":127,"./_export":128,"./_fails":130,"./_global":134,"./_has":135,"./_hide":136,"./_is-array":143,"./_is-object":145,"./_library":153,"./_meta":158,"./_object-create":162,"./_object-dp":163,"./_object-gopd":165,"./_object-gopn":167,"./_object-gopn-ext":166,"./_object-gops":168,"./_object-keys":171,"./_object-pie":172,"./_property-desc":180,"./_redefine":182,"./_set-to-string-tag":186,"./_shared":188,"./_to-iobject":202,"./_to-primitive":205,"./_uid":209,"./_wks":214,"./_wks-define":212,"./_wks-ext":213}],340:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_typed"),a=e("./_typed-buffer"),u=e("./_an-object"),c=e("./_to-absolute-index"),f=e("./_to-length"),i=e("./_is-object"),l=e("./_global").ArrayBuffer,d=e("./_species-constructor"),p=a.ArrayBuffer,h=a.DataView,s=r.ABV&&l.isView,m=p.prototype.slice,y=r.VIEW,b="ArrayBuffer";o(o.G+o.W+o.F*(l!==p),{ArrayBuffer:p}),o(o.S+o.F*!r.CONSTR,b,{isView:function(e){return s&&s(e)||i(e)&&y in e}}),o(o.P+o.U+o.F*e("./_fails")(function(){return!new p(2).slice(1,void 0).byteLength}),b,{slice:function(e,t){if(void 0!==m&&void 0===t)return m.call(u(this),e);for(var n=u(this).byteLength,o=c(e,n),r=c(void 0===t?n:t,n),a=new(d(this,p))(f(r-o)),i=new h(this),l=new h(a),s=0;o<r;)l.setUint8(s++,i.getUint8(o++));return a}}),e("./_set-species")(b)},{"./_an-object":104,"./_export":128,"./_fails":130,"./_global":134,"./_is-object":145,"./_set-species":185,"./_species-constructor":189,"./_to-absolute-index":199,"./_to-length":203,"./_typed":208,"./_typed-buffer":207}],341:[function(e,t,n){var o=e("./_export");o(o.G+o.W+o.F*!e("./_typed").ABV,{DataView:e("./_typed-buffer").DataView})},{"./_export":128,"./_typed":208,"./_typed-buffer":207}],342:[function(e,t,n){e("./_typed-array")("Float32",4,function(o){return function(e,t,n){return o(this,e,t,n)}})},{"./_typed-array":206}],343:[function(e,t,n){e("./_typed-array")("Float64",8,function(o){return function(e,t,n){return o(this,e,t,n)}})},{"./_typed-array":206}],344:[function(e,t,n){e("./_typed-array")("Int16",2,function(o){return function(e,t,n){return o(this,e,t,n)}})},{"./_typed-array":206}],345:[function(e,t,n){e("./_typed-array")("Int32",4,function(o){return function(e,t,n){return o(this,e,t,n)}})},{"./_typed-array":206}],346:[function(e,t,n){e("./_typed-array")("Int8",1,function(o){return function(e,t,n){return o(this,e,t,n)}})},{"./_typed-array":206}],347:[function(e,t,n){e("./_typed-array")("Uint16",2,function(o){return function(e,t,n){return o(this,e,t,n)}})},{"./_typed-array":206}],348:[function(e,t,n){e("./_typed-array")("Uint32",4,function(o){return function(e,t,n){return o(this,e,t,n)}})},{"./_typed-array":206}],349:[function(e,t,n){e("./_typed-array")("Uint8",1,function(o){return function(e,t,n){return o(this,e,t,n)}})},{"./_typed-array":206}],350:[function(e,t,n){e("./_typed-array")("Uint8",1,function(o){return function(e,t,n){return o(this,e,t,n)}},!0)},{"./_typed-array":206}],351:[function(e,t,n){"use strict";var a,o=e("./_array-methods")(0),i=e("./_redefine"),r=e("./_meta"),l=e("./_object-assign"),s=e("./_collection-weak"),u=e("./_is-object"),c=e("./_fails"),f=e("./_validate-collection"),d="WeakMap",p=r.getWeak,h=Object.isExtensible,m=s.ufstore,y={},b=function(e){return function(){return e(this,0<arguments.length?arguments[0]:void 0)}},v={get:function(e){if(u(e)){var t=p(e);return!0===t?m(f(this,d)).get(e):t?t[this._i]:void 0}},set:function(e,t){return s.def(f(this,d),e,t)}},g=t.exports=e("./_collection")(d,b,v,s,!0,!0);c(function(){return 7!=(new g).set((Object.freeze||Object)(y),7).get(y)})&&(l((a=s.getConstructor(b,d)).prototype,v),r.NEED=!0,o(["delete","has","get","set"],function(o){var e=g.prototype,r=e[o];i(e,o,function(e,t){if(!u(e)||h(e))return r.call(this,e,t);this._f||(this._f=new a);var n=this._f[o](e,t);return"set"==o?this:n})}))},{"./_array-methods":108,"./_collection":117,"./_collection-weak":116,"./_fails":130,"./_is-object":145,"./_meta":158,"./_object-assign":161,"./_redefine":182,"./_validate-collection":211}],352:[function(e,t,n){"use strict";var o=e("./_collection-weak"),r=e("./_validate-collection");e("./_collection")("WeakSet",function(e){return function(){return e(this,0<arguments.length?arguments[0]:void 0)}},{add:function(e){return o.def(r(this,"WeakSet"),e,!0)}},o,!1,!0)},{"./_collection":117,"./_collection-weak":116,"./_validate-collection":211}],353:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_array-includes")(!0);o(o.P,"Array",{includes:function(e){return r(this,e,1<arguments.length?arguments[1]:void 0)}}),e("./_add-to-unscopables")("includes")},{"./_add-to-unscopables":102,"./_array-includes":107,"./_export":128}],354:[function(e,t,n){var o=e("./_export"),r=e("./_object-to-array")(!0);o(o.S,"Object",{entries:function(e){return r(e)}})},{"./_export":128,"./_object-to-array":174}],355:[function(e,t,n){var o=e("./_export"),s=e("./_own-keys"),u=e("./_to-iobject"),c=e("./_object-gopd"),f=e("./_create-property");o(o.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,o=u(e),r=c.f,a=s(o),i={},l=0;a.length>l;)void 0!==(n=r(o,t=a[l++]))&&f(i,t,n);return i}})},{"./_create-property":119,"./_export":128,"./_object-gopd":165,"./_own-keys":175,"./_to-iobject":202}],356:[function(e,t,n){var o=e("./_export"),r=e("./_object-to-array")(!1);o(o.S,"Object",{values:function(e){return r(e)}})},{"./_export":128,"./_object-to-array":174}],357:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_core"),a=e("./_global"),i=e("./_species-constructor"),l=e("./_promise-resolve");o(o.P+o.R,"Promise",{finally:function(t){var n=i(this,r.Promise||a.Promise),e="function"==typeof t;return this.then(e?function(e){return l(n,t()).then(function(){return e})}:t,e?function(e){return l(n,t()).then(function(){throw e})}:t)}})},{"./_core":118,"./_export":128,"./_global":134,"./_promise-resolve":179,"./_species-constructor":189}],358:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_string-pad"),a=e("./_user-agent");o(o.P+o.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(a),"String",{padEnd:function(e){return r(this,e,1<arguments.length?arguments[1]:void 0,!1)}})},{"./_export":128,"./_string-pad":194,"./_user-agent":210}],359:[function(e,t,n){"use strict";var o=e("./_export"),r=e("./_string-pad"),a=e("./_user-agent");o(o.P+o.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(a),"String",{padStart:function(e){return r(this,e,1<arguments.length?arguments[1]:void 0,!0)}})},{"./_export":128,"./_string-pad":194,"./_user-agent":210}],360:[function(e,t,n){e("./_wks-define")("asyncIterator")},{"./_wks-define":212}],361:[function(e,t,n){for(var o=e("./es6.array.iterator"),r=e("./_object-keys"),a=e("./_redefine"),i=e("./_global"),l=e("./_hide"),s=e("./_iterators"),u=e("./_wks"),c=u("iterator"),f=u("toStringTag"),d=s.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=r(p),m=0;m<h.length;m++){var y,b=h[m],v=p[b],g=i[b],E=g&&g.prototype;if(E&&(E[c]||l(E,c,d),E[f]||l(E,f,b),s[b]=d,v))for(y in o)E[y]||a(E,y,o[y],!0)}},{"./_global":134,"./_hide":136,"./_iterators":152,"./_object-keys":171,"./_redefine":182,"./_wks":214,"./es6.array.iterator":226}],362:[function(e,t,n){var o=e("./_export"),r=e("./_task");o(o.G+o.B,{setImmediate:r.set,clearImmediate:r.clear})},{"./_export":128,"./_task":198}],363:[function(e,t,n){var o=e("./_global"),r=e("./_export"),a=e("./_user-agent"),i=[].slice,l=/MSIE .\./.test(a),s=function(r){return function(e,t){var n=2<arguments.length,o=!!n&&i.call(arguments,2);return r(n?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,t)}};r(r.G+r.B+r.F*l,{setTimeout:s(o.setTimeout),setInterval:s(o.setInterval)})},{"./_export":128,"./_global":134,"./_user-agent":210}],364:[function(e,t,n){e("../modules/web.timers"),e("../modules/web.immediate"),e("../modules/web.dom.iterable"),t.exports=e("../modules/_core")},{"../modules/_core":118,"../modules/web.dom.iterable":361,"../modules/web.immediate":362,"../modules/web.timers":363}],365:[function(e,t,n){"use strict";var s=function(e){return!(!(o=e)||"object"!=typeof o||(t=e,"[object RegExp]"===(n=Object.prototype.toString.call(t))||"[object Date]"===n||t.$$typeof===r));var t,n,o};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function u(e,t){var n;return t&&!0===t.clone&&s(e)?f((n=e,Array.isArray(n)?[]:{}),e,t):e}function c(n,e,o){var r=n.slice();return e.forEach(function(e,t){void 0===r[t]?r[t]=u(e,o):s(e)?r[t]=f(n[t],e,o):-1===n.indexOf(e)&&r.push(u(e,o))}),r}function f(e,t,n){var o,r,a,i,l=Array.isArray(t);return l===Array.isArray(e)?l?((n||{arrayMerge:c}).arrayMerge||c)(e,t,n):(r=t,a=n,i={},s(o=e)&&Object.keys(o).forEach(function(e){i[e]=u(o[e],a)}),Object.keys(r).forEach(function(e){s(r[e])&&o[e]?i[e]=f(o[e],r[e],a):i[e]=u(r[e],a)}),i):u(t,n)}f.all=function(e,n){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,t){return f(e,t,n)})};var o=f;t.exports=o},{}],366:[function(e,t,n){var a=NaN,i="[object Function]",l="[object GeneratorFunction]",s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,d=parseInt,p=Object.prototype.toString,g=Math.max,E=Date.now;function S(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _(e){if(S(e)){var t=(n=e.valueOf,(o=S(n)?p.call(n):"")==i||o==l?e.valueOf():e);e=S(t)?t+"":t}var n,o;if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var r=c.test(e);return r||f.test(e)?d(e.slice(2),r?2:8):u.test(e)?a:+e}t.exports=function(o,r,e){var a,i,l,s,u,c,f,d=0,p=!1,h=!1,m=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function t(){c&&clearTimeout(c),i&&clearTimeout(i),a=i=u=c=f=void(d=0)}function n(e,t){t&&clearTimeout(t),i=c=f=void 0,e&&(d=E(),l=o.apply(u,a),c||i||(a=u=void 0))}function y(){var e=r-(E()-s);e<=0||r<e?n(f,i):c=setTimeout(y,e)}function b(){n(m,c)}function v(){if(a=arguments,s=E(),u=this,f=m&&(c||!p),!1===h)var e=p&&!c;else{d||i||p||(d=s);var t=h-(s-d),n=(t<=0||h<t)&&(p||i);n?(i&&(i=clearTimeout(i)),d=s,l=o.apply(u,a)):i||(i=setTimeout(b,t))}return n&&c?c=clearTimeout(c):c||r===h||(c=setTimeout(y,r)),e&&(n=!0,l=o.apply(u,a)),!n||c||i||(a=u=void 0),l}return r=_(r)||0,S(e)&&(p=!!e.leading,h="maxWait"in e&&g(_(e.maxWait)||0,r),m="trailing"in e?!!e.trailing:m),v.cancel=t,v.flush=function(){return(c&&f||i&&m)&&(l=o.apply(u,a)),t(),l},v}},{}],367:[function(e,t,n){var o=e("lodash.keys");function r(t,e){return function(e,t){for(var n=-1,o=e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}(e,function(e){return t[e]})}t.exports=function(e){return e?r(e,o(e)):[]}},{"lodash.keys":368}],368:[function(e,t,n){var i=9007199254740991,u="[object Arguments]",l="[object Function]",s="[object GeneratorFunction]",o=/^(?:0|[1-9]\d*)$/;var r,a,c=Object.prototype,f=c.hasOwnProperty,d=c.toString,p=c.propertyIsEnumerable,h=(r=Object.keys,a=Object,function(e){return r(a(e))});function m(e,t){var n,o,r,a=v(e)||(r=o=n=e)&&"object"==typeof r&&g(o)&&f.call(n,"callee")&&(!p.call(n,"callee")||d.call(n)==u)?function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}(e.length,String):[],i=a.length,l=!!i;for(var s in e)!t&&!f.call(e,s)||l&&("length"==s||b(s,i))||a.push(s);return a}function y(e){if(n=(t=e)&&t.constructor,o="function"==typeof n&&n.prototype||c,t!==o)return h(e);var t,n,o,r=[];for(var a in Object(e))f.call(e,a)&&"constructor"!=a&&r.push(a);return r}function b(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||o.test(e))&&-1<e&&e%1==0&&e<t}var v=Array.isArray;function g(e){return null!=e&&("number"==typeof(a=e.length)&&-1<a&&a%1==0&&a<=i)&&(r=typeof(o=t=e),!((n=!o||"object"!=r&&"function"!=r?"":d.call(t))==l||n==s));var t,n,o,r,a}t.exports=function(e){return g(e)?m(e):y(e)}},{}],369:[function(e,t,n){"use strict";var s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,o,r=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a<arguments.length;a++){for(var i in n=Object(arguments[a]))u.call(n,i)&&(r[i]=n[i]);if(s){o=s(n);for(var l=0;l<o.length;l++)c.call(n,o[l])&&(r[o[l]]=n[o[l]])}}return r}},{}],370:[function(e,t,n){var o,r,a=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function s(t){if(o===setTimeout)return setTimeout(t,0);if((o===i||!o)&&setTimeout)return o=setTimeout,setTimeout(t,0);try{return o(t,0)}catch(e){try{return o.call(null,t,0)}catch(e){return o.call(this,t,0)}}}!function(){try{o="function"==typeof setTimeout?setTimeout:i}catch(e){o=i}try{r="function"==typeof clearTimeout?clearTimeout:l}catch(e){r=l}}();var u,c=[],f=!1,d=-1;function p(){f&&u&&(f=!1,u.length?c=u.concat(c):d=-1,c.length&&h())}function h(){if(!f){var e=s(p);f=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,f=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===l||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function y(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new m(e,t)),1!==c.length||f||s(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=y,a.addListener=y,a.once=y,a.off=y,a.removeListener=y,a.removeAllListeners=y,a.emit=y,a.prependListener=y,a.prependOnceListener=y,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],371:[function(e,t,n){"use strict";t.exports=function(e,t,n,o,r){}},{"./lib/ReactPropTypesSecret":375}],372:[function(e,t,n){"use strict";var l=e("./lib/ReactPropTypesSecret");function o(){}t.exports=function(){function e(e,t,n,o,r,a){if(a!==l){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}var n={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,n.PropTypes=n}},{"./lib/ReactPropTypesSecret":375}],373:[function(e,t,n){"use strict";var m=e("object-assign"),y=e("./lib/ReactPropTypesSecret"),r=e("./checkPropTypes"),b=function(){};function v(){return null}t.exports=function(l,u){var a="function"==typeof Symbol&&Symbol.iterator,i="@@iterator";var c="<<anonymous>>",e={array:t("array"),bool:t("boolean"),func:t("function"),number:t("number"),object:t("object"),string:t("string"),symbol:t("symbol"),any:n(v),arrayOf:function(u){return n(function(e,t,n,o,r){if("function"!=typeof u)return new d("Property `"+r+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var a=e[t];if(!Array.isArray(a)){var i=p(a);return new d("Invalid "+o+" `"+r+"` of type `"+i+"` supplied to `"+n+"`, expected an array.")}for(var l=0;l<a.length;l++){var s=u(a,l,n,o,r+"["+l+"]",y);if(s instanceof Error)return s}return null})},element:n(function(e,t,n,o,r){var a=e[t];if(l(a))return null;var i=p(a);return new d("Invalid "+o+" `"+r+"` of type `"+i+"` supplied to `"+n+"`, expected a single ReactElement.")}),instanceOf:function(s){return n(function(e,t,n,o,r){if(e[t]instanceof s)return null;var a=s.name||c,i=(l=e[t],l.constructor&&l.constructor.name?l.constructor.name:c);var l;return new d("Invalid "+o+" `"+r+"` of type `"+i+"` supplied to `"+n+"`, expected instance of `"+a+"`.")})},node:n(function(e,t,n,o,r){return s(e[t])?null:new d("Invalid "+o+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(u){return n(function(e,t,n,o,r){if("function"!=typeof u)return new d("Property `"+r+"` of component `"+n+"` has invalid PropType notation inside objectOf.");var a=e[t],i=p(a);if("object"!==i)return new d("Invalid "+o+" `"+r+"` of type `"+i+"` supplied to `"+n+"`, expected an object.");for(var l in a)if(a.hasOwnProperty(l)){var s=u(a,l,n,o,r+"."+l,y);if(s instanceof Error)return s}return null})},oneOf:function(s){if(!Array.isArray(s))return v;return n(function(e,t,n,o,r){for(var a=e[t],i=0;i<s.length;i++)if(f(a,s[i]))return null;var l=JSON.stringify(s);return new d("Invalid "+o+" `"+r+"` of value `"+a+"` supplied to `"+n+"`, expected one of "+l+".")})},oneOfType:function(l){if(!Array.isArray(l))return v;for(var e=0;e<l.length;e++){var t=l[e];if("function"!=typeof t)return b("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+o(t)+" at index "+e+"."),v}return n(function(e,t,n,o,r){for(var a=0;a<l.length;a++){var i=l[a];if(null==i(e,t,n,o,r,y))return null}return new d("Invalid "+o+" `"+r+"` supplied to `"+n+"`.")})},shape:function(c){return n(function(e,t,n,o,r){var a=e[t],i=p(a);if("object"!==i)return new d("Invalid "+o+" `"+r+"` of type `"+i+"` supplied to `"+n+"`, expected `object`.");for(var l in c){var s=c[l];if(s){var u=s(a,l,n,o,r+"."+l,y);if(u)return u}}return null})},exact:function(f){return n(function(e,t,n,o,r){var a=e[t],i=p(a);if("object"!==i)return new d("Invalid "+o+" `"+r+"` of type `"+i+"` supplied to `"+n+"`, expected `object`.");var l=m({},e[t],f);for(var s in l){var u=f[s];if(!u)return new d("Invalid "+o+" `"+r+"` key `"+s+"` supplied to `"+n+"`.\nBad object: "+JSON.stringify(e[t],null,"  ")+"\nValid keys: "+JSON.stringify(Object.keys(f),null,"  "));var c=u(a,s,n,o,r+"."+s,y);if(c)return c}return null})}};function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){this.message=e,this.stack=""}function n(s){function e(e,t,n,o,r,a,i){if((o=o||c,a=a||n,i!==y)&&u){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}return null==t[n]?e?null===t[n]?new d("The "+r+" `"+a+"` is marked as required in `"+o+"`, but its value is `null`."):new d("The "+r+" `"+a+"` is marked as required in `"+o+"`, but its value is `undefined`."):null:s(t,n,o,r,a)}var t=e.bind(null,!1);return t.isRequired=e.bind(null,!0),t}function t(l){return n(function(e,t,n,o,r,a){var i=e[t];return p(i)===l?null:new d("Invalid "+o+" `"+r+"` of type `"+h(i)+"` supplied to `"+n+"`, expected `"+l+"`.")})}function s(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(s);if(null===e||l(e))return!0;var t=function(e){var t=e&&(a&&e[a]||e[i]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,o=t.call(e);if(t!==e.entries){for(;!(n=o.next()).done;)if(!s(n.value))return!1}else for(;!(n=o.next()).done;){var r=n.value;if(r&&!s(r[1]))return!1}return!0;default:return!1}}function p(e){var t,n=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":(t=e,"symbol"===n||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol?"symbol":n)}function h(e){if(null==e)return""+e;var t=p(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function o(e){var t=h(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return d.prototype=Error.prototype,e.checkPropTypes=r,e.PropTypes=e}},{"./checkPropTypes":371,"./lib/ReactPropTypesSecret":375,"object-assign":369}],374:[function(e,t,n){t.exports=e("./factoryWithThrowingShims")()},{"./factoryWithThrowingShims":372,"./factoryWithTypeCheckers":373}],375:[function(e,t,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},{}],376:[function(e,t,n){"use strict"},{"object-assign":369,"prop-types/checkPropTypes":371,react:382,schedule:388,"schedule/tracing":389}],377:[function(e,t,n){"use strict";var r=e("react"),v=e("object-assign"),o=e("schedule");function V(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=0;o<t;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);!function(e,t,n,o,r,a,i,l){if(!e){if((e=void 0)===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,o,r,a,i,l],u=0;(e=Error(t.replace(/%s/g,function(){return s[u++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}r||V("227");var c=!1,f=null,d=!1,p=null,u={onError:function(e){c=!0,f=e}};function h(e,t,n,o,r,a,i,l,s){c=!1,f=null,function(e,t,n,o,r,a,i,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}.apply(u,arguments)}var m=null,y={};function a(){if(m)for(var e in y){var t=y[e],n=m.indexOf(e);if(-1<n||V("96",e),!g[n])for(var o in t.extractEvents||V("97",e),n=(g[n]=t).eventTypes){var r=void 0,a=n[o],i=t,l=o;E.hasOwnProperty(l)&&V("99",l);var s=(E[l]=a).phasedRegistrationNames;if(s){for(r in s)s.hasOwnProperty(r)&&b(s[r],i,l);r=!0}else r=!!a.registrationName&&(b(a.registrationName,i,l),!0);r||V("98",o,e)}}}function b(e,t,n){S[e]&&V("100",e),S[e]=t,s[e]=t.eventTypes[n].dependencies}var g=[],E={},S={},s={},i=null,l=null,_=null;function T(e,t,n,o){t=e.type||"unknown-event",e.currentTarget=_(o),function(e,t,n,o,r,a,i,l,s){if(h.apply(this,arguments),c){if(c){var u=f;c=!1,f=null}else V("198"),u=void 0;d||(d=!0,p=u)}}(t,n,void 0,e),e.currentTarget=null}function O(e,t){return null==t&&V("30"),null==e?t:Array.isArray(e)?(Array.isArray(t)?e.push.apply(e,t):e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function C(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var A=null;function N(e,t){if(e){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r<n.length&&!e.isPropagationStopped();r++)T(e,t,n[r],o[r]);else n&&T(e,t,n,o);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function w(e){return N(e,!0)}function R(e){return N(e,!1)}var P={injectEventPluginOrder:function(e){m&&V("101"),m=Array.prototype.slice.call(e),a()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var o=e[t];y.hasOwnProperty(t)&&y[t]===o||(y[t]&&V("102",t),y[t]=o,n=!0)}n&&a()}};function k(e,t){var n=e.stateNode;if(!n)return null;var o=i(n);if(!o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&V("231",t,typeof n),n)}function I(e,t){if(null!==e&&(A=O(A,e)),e=A,A=null,e&&(C(e,t?w:R),A&&V("95"),d))throw t=p,d=!1,p=null,t}var L=Math.random().toString(36).slice(2),D="__reactInternalInstance$"+L,x="__reactEventHandlers$"+L;function M(e){if(e[D])return e[D];for(;!e[D];){if(!e.parentNode)return null;e=e.parentNode}return 7===(e=e[D]).tag||8===e.tag?e:null}function j(e){return!(e=e[D])||7!==e.tag&&8!==e.tag?null:e}function U(e){if(7===e.tag||8===e.tag)return e.stateNode;V("33")}function B(e){return e[x]||null}function F(e){for(;(e=e.return)&&7!==e.tag;);return e||null}function W(e,t,n){(t=k(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=O(n._dispatchListeners,t),n._dispatchInstances=O(n._dispatchInstances,e))}function Y(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=F(t);for(t=n.length;0<t--;)W(n[t],"captured",e);for(t=0;t<n.length;t++)W(n[t],"bubbled",e)}}function K(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=k(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=O(n._dispatchListeners,t),n._dispatchInstances=O(n._dispatchInstances,e))}function H(e){e&&e.dispatchConfig.registrationName&&K(e._targetInst,null,e)}function z(e){C(e,Y)}var G=!("undefined"==typeof window||!window.document||!window.document.createElement);function X(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var q={animationend:X("Animation","AnimationEnd"),animationiteration:X("Animation","AnimationIteration"),animationstart:X("Animation","AnimationStart"),transitionend:X("Transition","TransitionEnd")},Q={},$={};function J(e){if(Q[e])return Q[e];if(!q[e])return e;var t,n=q[e];for(t in n)if(n.hasOwnProperty(t)&&t in $)return Q[e]=n[t];return e}G&&($=document.createElement("div").style,"AnimationEvent"in window||(delete q.animationend.animation,delete q.animationiteration.animation,delete q.animationstart.animation),"TransitionEvent"in window||delete q.transitionend.transition);var Z=J("animationend"),ee=J("animationiteration"),te=J("animationstart"),ne=J("transitionend"),oe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),re=null,ae=null,ie=null;function le(){if(ie)return ie;var e,t,n=ae,o=n.length,r="value"in re?re.value:re.textContent,a=r.length;for(e=0;e<o&&n[e]===r[e];e++);var i=o-e;for(t=1;t<=i&&n[o-t]===r[a-t];t++);return ie=r.slice(e,1<t?1-t:void 0)}function se(){return!0}function ue(){return!1}function ce(e,t,n,o){for(var r in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(r)&&((t=e[r])?this[r]=t(n):"target"===r?this.target=o:this[r]=n[r]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?se:ue,this.isPropagationStopped=ue,this}function fe(e,t,n,o){if(this.eventPool.length){var r=this.eventPool.pop();return this.call(r,e,t,n,o),r}return new this(e,t,n,o)}function de(e){e instanceof this||V("279"),e.destructor(),this.eventPool.length<10&&this.eventPool.push(e)}function pe(e){e.eventPool=[],e.getPooled=fe,e.release=de}v(ce.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=se)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=se)},persist:function(){this.isPersistent=se},isPersistent:ue,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ue,this._dispatchInstances=this._dispatchListeners=null}}),ce.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ce.extend=function(e){function t(){}function n(){return o.apply(this,arguments)}var o=this;t.prototype=o.prototype;var r=new t;return v(r,n.prototype),((n.prototype=r).constructor=n).Interface=v({},o.Interface,e),n.extend=o.extend,pe(n),n},pe(ce);var he=ce.extend({data:null}),me=ce.extend({data:null}),ye=[9,13,27,32],be=G&&"CompositionEvent"in window,ve=null;G&&"documentMode"in document&&(ve=document.documentMode);var ge=G&&"TextEvent"in window&&!ve,Ee=G&&(!be||ve&&8<ve&&ve<=11),Se=String.fromCharCode(32),_e={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Te=!1;function Oe(e,t){switch(e){case"keyup":return-1!==ye.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Ce(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ae=!1;var Ne={eventTypes:_e,extractEvents:function(e,t,n,o){var r=void 0,a=void 0;if(be)e:{switch(e){case"compositionstart":r=_e.compositionStart;break e;case"compositionend":r=_e.compositionEnd;break e;case"compositionupdate":r=_e.compositionUpdate;break e}r=void 0}else Ae?Oe(e,n)&&(r=_e.compositionEnd):"keydown"===e&&229===n.keyCode&&(r=_e.compositionStart);return a=r?(Ee&&"ko"!==n.locale&&(Ae||r!==_e.compositionStart?r===_e.compositionEnd&&Ae&&(a=le()):(ae="value"in(re=o)?re.value:re.textContent,Ae=!0)),r=he.getPooled(r,t,n,o),a?r.data=a:null!==(a=Ce(n))&&(r.data=a),z(r),r):null,(e=ge?function(e,t){switch(e){case"compositionend":return Ce(t);case"keypress":return 32!==t.which?null:(Te=!0,Se);case"textInput":return(e=t.data)===Se&&Te?null:e;default:return null}}(e,n):function(e,t){if(Ae)return"compositionend"===e||!be&&Oe(e,t)?(e=le(),ie=ae=re=null,Ae=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ee&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=me.getPooled(_e.beforeInput,t,n,o)).data=e,z(t)):t=null,null===a?t:null===t?a:[a,t]}},we=null,Re=null,Pe=null;function ke(e){if(e=l(e)){"function"!=typeof we&&V("280");var t=i(e.stateNode);we(e.stateNode,e.type,t)}}function Ie(e){Re?Pe?Pe.push(e):Pe=[e]:Re=e}function Le(){if(Re){var e=Re,t=Pe;if(Pe=Re=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function De(e,t){return e(t)}function xe(e,t,n){return e(t,n)}function Me(){}var Ve=!1;function je(e,t){if(Ve)return e(t);Ve=!0;try{return De(e,t)}finally{Ve=!1,(null!==Re||null!==Pe)&&(Me(),Le())}}var Ue={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Be(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ue[e.type]:"textarea"===t}function Fe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function We(e){if(!G)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function Ye(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ke(e){e._valueTracker||(e._valueTracker=function(e){var t=Ye(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var r=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){o=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(e){o=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function He(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=Ye(e)?e.checked?"true":"false":e.value),(e=o)!==n&&(t.setValue(e),!0)}var ze=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ge=/^(.*)[\\\/]/,Xe="function"==typeof Symbol&&Symbol.for,qe=Xe?Symbol.for("react.element"):60103,Qe=Xe?Symbol.for("react.portal"):60106,$e=Xe?Symbol.for("react.fragment"):60107,Je=Xe?Symbol.for("react.strict_mode"):60108,Ze=Xe?Symbol.for("react.profiler"):60114,et=Xe?Symbol.for("react.provider"):60109,tt=Xe?Symbol.for("react.context"):60110,nt=Xe?Symbol.for("react.async_mode"):60111,ot=Xe?Symbol.for("react.forward_ref"):60112,rt=Xe?Symbol.for("react.placeholder"):60113,at="function"==typeof Symbol&&Symbol.iterator;function it(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=at&&e[at]||e["@@iterator"])?e:null}function lt(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case nt:return"AsyncMode";case $e:return"Fragment";case Qe:return"Portal";case Ze:return"Profiler";case Je:return"StrictMode";case rt:return"Placeholder"}if("object"==typeof e){switch(e.$$typeof){case tt:return"Context.Consumer";case et:return"Context.Provider";case ot:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef")}if("function"==typeof e.then&&(e=1===e._reactStatus?e._reactResult:null))return lt(e)}return null}function st(e){var t="";do{e:switch(e.tag){case 4:case 0:case 1:case 2:case 3:case 7:case 10:var n=e._debugOwner,o=e._debugSource,r=lt(e.type),a=null;n&&(a=lt(n.type)),n=r,r="",o?r=" (at "+o.fileName.replace(Ge,"")+":"+o.lineNumber+")":a&&(r=" (created by "+a+")"),a="\n    in "+(n||"Unknown")+r;break e;default:a=""}t+=a,e=e.return}while(e);return t}var ut=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ct=Object.prototype.hasOwnProperty,ft={},dt={};function pt(e,t,n,o,r){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t}var ht={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ht[e]=new pt(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ht[t]=new pt(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ht[e]=new pt(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ht[e]=new pt(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ht[e]=new pt(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){ht[e]=new pt(e,3,!0,e,null)}),["capture","download"].forEach(function(e){ht[e]=new pt(e,4,!1,e,null)}),["cols","rows","size","span"].forEach(function(e){ht[e]=new pt(e,6,!1,e,null)}),["rowSpan","start"].forEach(function(e){ht[e]=new pt(e,5,!1,e.toLowerCase(),null)});var mt=/[\-:]([a-z])/g;function yt(e){return e[1].toUpperCase()}function bt(e,t,n,o){var r,a=ht.hasOwnProperty(t)?ht[t]:null;(null!==a?0===a.type:!o&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||t<1}return!1}(t,n,a,o)&&(n=null),o||null===a?(r=t,(ct.call(dt,r)||!ct.call(ft,r)&&(ut.test(r)?dt[r]=!0:!(ft[r]=!0)))&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n))):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,o=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}function vt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function gt(e,t){var n=t.checked;return v({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Et(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=vt(null!=t.value?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function St(e,t){null!=(t=t.checked)&&bt(e,"checked",t,!1)}function _t(e,t){St(e,t);var n=vt(t.value),o=t.type;if(null!=n)"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===o||"reset"===o)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ot(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ot(e,t.type,vt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Tt(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!("submit"!==o&&"reset"!==o||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ot(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(mt,yt);ht[t]=new pt(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(mt,yt);ht[t]=new pt(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(mt,yt);ht[t]=new pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),ht.tabIndex=new pt("tabIndex",1,!1,"tabindex",null);var Ct={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function At(e,t,n){return(e=ce.getPooled(Ct.change,e,t,n)).type="change",Ie(n),z(e),e}var Nt=null,wt=null;function Rt(e){I(e,!1)}function Pt(e){if(He(U(e)))return e}function kt(e,t){if("change"===e)return t}var It=!1;function Lt(){Nt&&(Nt.detachEvent("onpropertychange",Dt),wt=Nt=null)}function Dt(e){"value"===e.propertyName&&Pt(wt)&&je(Rt,e=At(wt,e,Fe(e)))}function xt(e,t,n){"focus"===e?(Lt(),wt=n,(Nt=t).attachEvent("onpropertychange",Dt)):"blur"===e&&Lt()}function Mt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Pt(wt)}function Vt(e,t){if("click"===e)return Pt(t)}function jt(e,t){if("input"===e||"change"===e)return Pt(t)}G&&(It=We("input")&&(!document.documentMode||9<document.documentMode));var Ut={eventTypes:Ct,_isInputEventSupported:It,extractEvents:function(e,t,n,o){var r=t?U(t):window,a=void 0,i=void 0,l=r.nodeName&&r.nodeName.toLowerCase();if("select"===l||"input"===l&&"file"===r.type?a=kt:Be(r)?It?a=jt:(a=Mt,i=xt):(l=r.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===r.type||"radio"===r.type)&&(a=Vt),a&&(a=a(e,t)))return At(a,n,o);i&&i(e,r,t),"blur"===e&&(e=r._wrapperState)&&e.controlled&&"number"===r.type&&Ot(r,"number",r.value)}},Bt=ce.extend({view:null,detail:null}),Ft={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ft[e])&&!!t[e]}function Yt(){return Wt}var Kt=0,Ht=0,zt=!1,Gt=!1,Xt=Bt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Yt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Kt;return Kt=e.screenX,zt?"mousemove"===e.type?e.screenX-t:0:(zt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Ht;return Ht=e.screenY,Gt?"mousemove"===e.type?e.screenY-t:0:(Gt=!0,0)}}),qt=Xt.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Qt={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},$t={eventTypes:Qt,extractEvents:function(e,t,n,o){var r="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(r&&(n.relatedTarget||n.fromElement)||!a&&!r)return null;if(r=o.window===o?o:(r=o.ownerDocument)?r.defaultView||r.parentWindow:window,a?(a=t,t=(t=n.relatedTarget||n.toElement)?M(t):null):a=null,a===t)return null;var i=void 0,l=void 0,s=void 0,u=void 0;"mouseout"===e||"mouseover"===e?(i=Xt,l=Qt.mouseLeave,s=Qt.mouseEnter,u="mouse"):"pointerout"!==e&&"pointerover"!==e||(i=qt,l=Qt.pointerLeave,s=Qt.pointerEnter,u="pointer");var c=null==a?r:U(a);if(r=null==t?r:U(t),(e=i.getPooled(l,a,n,o)).type=u+"leave",e.target=c,e.relatedTarget=r,(n=i.getPooled(s,t,n,o)).type=u+"enter",n.target=r,n.relatedTarget=c,o=t,a&&o)e:{for(r=o,u=0,i=t=a;i;i=F(i))u++;for(i=0,s=r;s;s=F(s))i++;for(;0<u-i;)t=F(t),u--;for(;0<i-u;)r=F(r),i--;for(;u--;){if(t===r||t===r.alternate)break e;t=F(t),r=F(r)}t=null}else t=null;for(r=t,t=[];a&&a!==r&&(null===(u=a.alternate)||u!==r);)t.push(a),a=F(a);for(a=[];o&&o!==r&&(null===(u=o.alternate)||u!==r);)a.push(o),o=F(o);for(o=0;o<t.length;o++)K(t[o],"bubbled",e);for(o=a.length;0<o--;)K(a[o],"captured",n);return[e,n]}},Jt=Object.prototype.hasOwnProperty;function Zt(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function en(e,t){if(Zt(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!Jt.call(t,n[o])||!Zt(e[n[o]],t[n[o]]))return!1;return!0}function tn(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 5===t.tag?2:3}function nn(e){2!==tn(e)&&V("188")}function on(e){if(!(e=function(e){var t=e.alternate;if(!t)return 3===(t=tn(e))&&V("188"),1===t?null:e;for(var n=e,o=t;;){var r=n.return,a=r?r.alternate:null;if(!r||!a)break;if(r.child===a.child){for(var i=r.child;i;){if(i===n)return nn(r),e;if(i===o)return nn(r),t;i=i.sibling}V("188")}if(n.return!==o.return)n=r,o=a;else{i=!1;for(var l=r.child;l;){if(l===n){i=!0,n=r,o=a;break}if(l===o){i=!0,o=r,n=a;break}l=l.sibling}if(!i){for(l=a.child;l;){if(l===n){i=!0,n=a,o=r;break}if(l===o){i=!0,o=a,n=r;break}l=l.sibling}i||V("189")}}n.alternate!==o&&V("190")}return 5!==n.tag&&V("188"),n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(7===t.tag||8===t.tag)return t;if(t.child)t=(t.child.return=t).child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var rn=ce.extend({animationName:null,elapsedTime:null,pseudoElement:null}),an=ce.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ln=Bt.extend({relatedTarget:null});function sn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var un={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fn=Bt.extend({key:function(e){if(e.key){var t=un[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=sn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?cn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Yt,charCode:function(e){return"keypress"===e.type?sn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?sn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),dn=Xt.extend({dataTransfer:null}),pn=Bt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Yt}),hn=ce.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),mn=Xt.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),yn=[["abort","abort"],[Z,"animationEnd"],[ee,"animationIteration"],[te,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[ne,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],bn={},vn={};function gn(e,t){var n=e[0],o="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[n],isInteractive:t},bn[e]=t,vn[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach(function(e){gn(e,!0)}),yn.forEach(function(e){gn(e,!1)});var En={eventTypes:bn,isInteractiveTopLevelEventType:function(e){return void 0!==(e=vn[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,o){var r=vn[e];if(!r)return null;switch(e){case"keypress":if(0===sn(n))return null;case"keydown":case"keyup":e=fn;break;case"blur":case"focus":e=ln;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Xt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=dn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=pn;break;case Z:case ee:case te:e=rn;break;case ne:e=hn;break;case"scroll":e=Bt;break;case"wheel":e=mn;break;case"copy":case"cut":case"paste":e=an;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=qt;break;default:e=ce}return z(t=e.getPooled(r,t,n,o)),t}},Sn=En.isInteractiveTopLevelEventType,_n=[];function Tn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var o;for(o=n;o.return;)o=o.return;if(!(o=5!==o.tag?null:o.stateNode.containerInfo))break;e.ancestors.push(n),n=M(o)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var r=Fe(e.nativeEvent);o=e.topLevelType;for(var a=e.nativeEvent,i=null,l=0;l<g.length;l++){var s=g[l];s&&(s=s.extractEvents(o,t,a,r))&&(i=O(i,s))}I(i,!1)}}var On=!0;function Cn(e,t){if(!t)return null;var n=(Sn(e)?Nn:wn).bind(null,e);t.addEventListener(e,n,!1)}function An(e,t){if(!t)return null;var n=(Sn(e)?Nn:wn).bind(null,e);t.addEventListener(e,n,!0)}function Nn(e,t){xe(wn,e,t)}function wn(e,t){if(On){var n=Fe(t);if(null===(n=M(n))||"number"!=typeof n.tag||2===tn(n)||(n=null),_n.length){var o=_n.pop();o.topLevelType=e,o.nativeEvent=t,o.targetInst=n,e=o}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{je(Tn,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,_n.length<10&&_n.push(e)}}}var Rn={},Pn=0,kn="_reactListenersID"+(""+Math.random()).slice(2);function In(e){return Object.prototype.hasOwnProperty.call(e,kn)||(e[kn]=Pn++,Rn[e[kn]]={}),Rn[e[kn]]}function Ln(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function Dn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xn(e,t){var n,o=Dn(e);for(e=0;o;){if(3===o.nodeType){if(n=e+o.textContent.length,e<=t&&t<=n)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Dn(o)}}function Mn(){for(var e=window,t=Ln();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=Ln(e.document)}return t}function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var jn=G&&"documentMode"in document&&document.documentMode<=11,Un={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Bn=null,Fn=null,Wn=null,Yn=!1;function Kn(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Yn||null==Bn||Bn!==Ln(n)?null:(n="selectionStart"in(n=Bn)&&Vn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Wn&&en(Wn,n)?null:(Wn=n,(e=ce.getPooled(Un.select,Fn,e,t)).type="select",e.target=Bn,z(e),e))}var Hn={eventTypes:Un,extractEvents:function(e,t,n,o){var r,a=o.window===o?o.document:9===o.nodeType?o:o.ownerDocument;if(!(r=!a)){e:{a=In(a),r=s.onSelect;for(var i=0;i<r.length;i++){var l=r[i];if(!a.hasOwnProperty(l)||!a[l]){a=!1;break e}}a=!0}r=!a}if(r)return null;switch(a=t?U(t):window,e){case"focus":(Be(a)||"true"===a.contentEditable)&&(Bn=a,Fn=t,Wn=null);break;case"blur":Wn=Fn=Bn=null;break;case"mousedown":Yn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Yn=!1,Kn(n,o);case"selectionchange":if(jn)break;case"keydown":case"keyup":return Kn(n,o)}return null}};function zn(e,t){var n,o;return e=v({children:void 0},t),n=t.children,o="",r.Children.forEach(n,function(e){null!=e&&(o+=e)}),(t=o)&&(e.children=t),e}function Gn(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&o&&(e[n].defaultSelected=!0)}else{for(n=""+vt(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(o&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function Xn(e,t){return null!=t.dangerouslySetInnerHTML&&V("91"),v({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function qn(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&V("92"),Array.isArray(t)&&(t.length<=1||V("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:vt(n)}}function Qn(e,t){var n=vt(t.value),o=vt(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=o&&(e.defaultValue=""+o)}function $n(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}P.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),i=B,l=j,_=U,P.injectEventPluginsByName({SimpleEventPlugin:En,EnterLeaveEventPlugin:$t,ChangeEventPlugin:Ut,SelectEventPlugin:Hn,BeforeInputEventPlugin:Ne});var Jn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Zn(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function eo(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Zn(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var to,no=void 0,oo=(to=function(e,t){if(e.namespaceURI!==Jn.svg||"innerHTML"in e)e.innerHTML=t;else{for((no=no||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=no.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,o){MSApp.execUnsafeLocalFunction(function(){return to(e,t)})}:to);function ro(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ao={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},io=["Webkit","ms","Moz","O"];function lo(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var o=0===n.indexOf("--"),r=n,a=t[n];r=null==a||"boolean"==typeof a||""===a?"":o||"number"!=typeof a||0===a||ao.hasOwnProperty(r)&&ao[r]?(""+a).trim():a+"px","float"===n&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}Object.keys(ao).forEach(function(t){io.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),ao[e]=ao[t]})});var so=v({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function uo(e,t){t&&(so[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&V("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&V("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||V("61")),null!=t.style&&"object"!=typeof t.style&&V("62",""))}function co(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function fo(e,t){var n=In(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=s[t];for(var o=0;o<t.length;o++){var r=t[o];if(!n.hasOwnProperty(r)||!n[r]){switch(r){case"scroll":An("scroll",e);break;case"focus":case"blur":An("focus",e),An("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":We(r)&&An(r,e);break;case"invalid":case"submit":case"reset":break;default:-1===oe.indexOf(r)&&Cn(r,e)}n[r]=!0}}}function po(){}var ho=null,mo=null;function yo(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function bo(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function vo(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function go(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var Eo=[],So=-1;function _o(e){So<0||(e.current=Eo[So],Eo[So]=null,So--)}function To(e,t){Eo[++So]=e.current,e.current=t}var Oo={},Co={current:Oo},Ao={current:!1},No=Oo;function wo(e,t){var n=e.type.contextTypes;if(!n)return Oo;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r,a={};for(r in n)a[r]=t[r];return o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ro(e){return null!=(e=e.childContextTypes)}function Po(e){_o(Ao),_o(Co)}function ko(e){_o(Ao),_o(Co)}function Io(e,t,n){Co.current!==Oo&&V("168"),To(Co,t),To(Ao,n)}function Lo(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(var r in o=o.getChildContext())r in e||V("108",lt(t)||"Unknown",r);return v({},n,o)}function Do(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Oo,No=Co.current,To(Co,t),To(Ao,Ao.current),!0}function xo(e,t,n){var o=e.stateNode;o||V("169"),n?(t=Lo(e,t,No),o.__reactInternalMemoizedMergedChildContext=t,_o(Ao),_o(Co),To(Co,t)):_o(Ao),To(Ao,n)}var Mo=null,Vo=null;function jo(t){return function(e){try{return t(e)}catch(e){}}}function Uo(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=null,this.index=0,this.ref=null,this.pendingProps=t,this.firstContextDependency=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Bo(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fo(e,t,n){var o=e.alternate;return null===o?((o=new Uo(e.tag,t,e.key,e.mode)).type=e.type,o.stateNode=e.stateNode,(o.alternate=e).alternate=o):(o.pendingProps=t,o.effectTag=0,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null),o.childExpirationTime=e.childExpirationTime,o.expirationTime=t!==e.pendingProps?n:e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,o.firstContextDependency=e.firstContextDependency,o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Wo(e,t,n){var o=e.type,r=e.key;e=e.props;var a=void 0;if("function"==typeof o)a=Bo(o)?2:4;else if("string"==typeof o)a=7;else e:switch(o){case $e:return Yo(e.children,t,n,r);case nt:a=10,t|=3;break;case Je:a=10,t|=2;break;case Ze:return(o=new Uo(15,e,r,4|t)).type=Ze,o.expirationTime=n,o;case rt:a=16;break;default:if("object"==typeof o&&null!==o)switch(o.$$typeof){case et:a=12;break e;case tt:a=11;break e;case ot:a=13;break e;default:if("function"==typeof o.then){a=4;break e}}V("130",null==o?o:typeof o,"")}return(t=new Uo(a,e,r,t)).type=o,t.expirationTime=n,t}function Yo(e,t,n,o){return(e=new Uo(9,e,o,t)).expirationTime=n,e}function Ko(e,t,n){return(e=new Uo(8,e,null,t)).expirationTime=n,e}function Ho(e,t,n){return(t=new Uo(6,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zo(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:t<n?e.earliestPendingTime=t:e.latestPendingTime<t&&(e.latestPendingTime=t),Go(t,e)}function Go(e,t){var n=t.earliestSuspendedTime,o=t.latestSuspendedTime,r=t.earliestPendingTime,a=t.latestPingedTime;0===(r=0!==r?r:a)&&(0===e||e<o)&&(r=o),0!==(e=r)&&0!==n&&n<e&&(e=n),t.nextExpirationTimeToWorkOn=r,t.expirationTime=e}var Xo=!1;function qo(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Qo(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function $o(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Jo(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Zo(e,t){var n=e.alternate;if(null===n){var o=e.updateQueue,r=null;null===o&&(o=e.updateQueue=qo(e.memoizedState))}else o=e.updateQueue,r=n.updateQueue,null===o?null===r?(o=e.updateQueue=qo(e.memoizedState),r=n.updateQueue=qo(n.memoizedState)):o=e.updateQueue=Qo(r):null===r&&(r=n.updateQueue=Qo(o));null===r||o===r?Jo(o,t):null===o.lastUpdate||null===r.lastUpdate?(Jo(o,t),Jo(r,t)):(Jo(o,t),r.lastUpdate=t)}function er(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=qo(e.memoizedState):tr(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function tr(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Qo(t)),t}function nr(e,t,n,o,r,a){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(a,o,r):e;case 3:e.effectTag=-1025&e.effectTag|64;case 0:if(null==(r="function"==typeof(e=n.payload)?e.call(a,o,r):e))break;return v({},o,r);case 2:Xo=!0}return o}function or(e,t,n,o,r){Xo=!1;for(var a=(t=tr(e,t)).baseState,i=null,l=0,s=t.firstUpdate,u=a;null!==s;){var c=s.expirationTime;r<c?(null===i&&(i=s,a=u),(0===l||c<l)&&(l=c)):(u=nr(e,0,s,u,n,o),null!==s.callback&&(e.effectTag|=32,(s.nextEffect=null)===t.lastEffect?t.firstEffect=t.lastEffect=s:(t.lastEffect.nextEffect=s,t.lastEffect=s))),s=s.next}for(c=null,s=t.firstCapturedUpdate;null!==s;){var f=s.expirationTime;r<f?(null===c&&(c=s,null===i&&(a=u)),(0===l||f<l)&&(l=f)):(u=nr(e,0,s,u,n,o),null!==s.callback&&(e.effectTag|=32,(s.nextEffect=null)===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=s:(t.lastCapturedEffect.nextEffect=s,t.lastCapturedEffect=s))),s=s.next}null===i&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===i&&null===c&&(a=u),t.baseState=a,t.firstUpdate=i,t.firstCapturedUpdate=c,e.expirationTime=l,e.memoizedState=u}function rr(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),ar(t.firstEffect,n),t.firstEffect=t.lastEffect=null,ar(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function ar(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var o=t;"function"!=typeof n&&V("191",n),n.call(o)}e=e.nextEffect}}function ir(e,t){return{value:e,source:t,stack:st(t)}}var lr={current:null},sr=null,ur=null,cr=null;function fr(e,t){var n=e.type._context;To(lr,n._currentValue),n._currentValue=t}function dr(e){var t=lr.current;_o(lr),e.type._context._currentValue=t}function pr(e){cr=ur=null,(sr=e).firstContextDependency=null}function hr(e,t){return cr!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(cr=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ur?(null===sr&&V("277"),sr.firstContextDependency=ur=t):ur=ur.next=t),e._currentValue}var mr={},yr={current:mr},br={current:mr},vr={current:mr};function gr(e){return e===mr&&V("174"),e}function Er(e,t){To(vr,t),To(br,e),To(yr,mr);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:eo(null,"");break;default:t=eo(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}_o(yr),To(yr,t)}function Sr(e){_o(yr),_o(br),_o(vr)}function _r(e){gr(vr.current);var t=gr(yr.current),n=eo(t,e.type);t!==n&&(To(br,e),To(yr,n))}function Tr(e){br.current===e&&(_o(yr),_o(br))}var Or=(new r.Component).refs;function Cr(e,t,n,o){n=null==(n=n(o,t=e.memoizedState))?t:v({},t,n),e.memoizedState=n,null!==(o=e.updateQueue)&&0===e.expirationTime&&(o.baseState=n)}var Ar={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===tn(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var o=li(),r=$o(o=La(o,e));r.payload=t,null!=n&&(r.callback=n),Zo(e,r),Da(e,o)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var o=li(),r=$o(o=La(o,e));r.tag=1,r.payload=t,null!=n&&(r.callback=n),Zo(e,r),Da(e,o)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=li(),o=$o(n=La(n,e));o.tag=2,null!=t&&(o.callback=t),Zo(e,o),Da(e,n)}};function Nr(e,t,n,o,r,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!en(n,o)||!en(r,a))}function wr(e,t,n,o){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,o),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&Ar.enqueueReplaceState(t,t.state,null)}function Rr(e,t,n,o){var r=e.stateNode,a=Ro(t)?No:Co.current;r.props=n,r.state=e.memoizedState,r.refs=Or,r.context=wo(e,a),null!==(a=e.updateQueue)&&(or(e,a,n,r,o),r.state=e.memoizedState),"function"==typeof(a=t.getDerivedStateFromProps)&&(Cr(e,t,a,n),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&Ar.enqueueReplaceState(r,r.state,null),null!==(a=e.updateQueue)&&(or(e,a,n,r,o),r.state=e.memoizedState)),"function"==typeof r.componentDidMount&&(e.effectTag|=4)}var Pr=Array.isArray;function kr(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var o=void 0;n&&(2!==n.tag&&3!==n.tag&&V("110"),o=n.stateNode),o||V("147",e);var r=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:((t=function(e){var t=o.refs;t===Or&&(t=o.refs={}),null===e?delete t[r]:t[r]=e})._stringRef=r,t)}"string"!=typeof e&&V("284"),n._owner||V("254",e)}return e}function Ir(e,t){"textarea"!==e.type&&V("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function Lr(f){function d(e,t){if(f){var n=e.lastEffect;null!==n?(n.nextEffect=t,e.lastEffect=t):e.firstEffect=e.lastEffect=t,t.nextEffect=null,t.effectTag=8}}function p(e,t){if(!f)return null;for(;null!==t;)d(e,t),t=t.sibling;return null}function h(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t,n){return(e=Fo(e,t,n)).index=0,e.sibling=null,e}function m(e,t,n){return e.index=n,f?null!==(n=e.alternate)?(n=n.index)<t?(e.effectTag=2,t):n:(e.effectTag=2,t):t}function l(e){return f&&null===e.alternate&&(e.effectTag=2),e}function a(e,t,n,o){return null===t||8!==t.tag?(t=Ko(n,e.mode,o)).return=e:(t=i(t,n,o)).return=e,t}function s(e,t,n,o){return null!==t&&t.type===n.type?(o=i(t,n.props,o)).ref=kr(e,t,n):(o=Wo(n,e.mode,o)).ref=kr(e,t,n),o.return=e,o}function u(e,t,n,o){return null===t||6!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Ho(n,e.mode,o)).return=e:(t=i(t,n.children||[],o)).return=e,t}function c(e,t,n,o,r){return null===t||9!==t.tag?(t=Yo(n,e.mode,o,r)).return=e:(t=i(t,n,o)).return=e,t}function y(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ko(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case qe:return(n=Wo(t,e.mode,n)).ref=kr(e,null,t),n.return=e,n;case Qe:return(t=Ho(t,e.mode,n)).return=e,t}if(Pr(t)||it(t))return(t=Yo(t,e.mode,n,null)).return=e,t;Ir(e,t)}return null}function b(e,t,n,o){var r=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==r?null:a(e,t,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case qe:return n.key===r?n.type===$e?c(e,t,n.props.children,o,r):s(e,t,n,o):null;case Qe:return n.key===r?u(e,t,n,o):null}if(Pr(n)||it(n))return null!==r?null:c(e,t,n,o,null);Ir(e,n)}return null}function v(e,t,n,o,r){if("string"==typeof o||"number"==typeof o)return a(t,e=e.get(n)||null,""+o,r);if("object"==typeof o&&null!==o){switch(o.$$typeof){case qe:return e=e.get(null===o.key?n:o.key)||null,o.type===$e?c(t,e,o.props.children,r,o.key):s(t,e,o,r);case Qe:return u(t,e=e.get(null===o.key?n:o.key)||null,o,r)}if(Pr(o)||it(o))return c(t,e=e.get(n)||null,o,r,null);Ir(t,o)}return null}return function(e,t,n,o){var r="object"==typeof n&&null!==n&&n.type===$e&&null===n.key;r&&(n=n.props.children);var a="object"==typeof n&&null!==n;if(a)switch(n.$$typeof){case qe:e:{for(a=n.key,r=t;null!==r;){if(r.key===a){if(9===r.tag?n.type===$e:r.type===n.type){p(e,r.sibling),(t=i(r,n.type===$e?n.props.children:n.props,o)).ref=kr(e,r,n),t.return=e,e=t;break e}p(e,r);break}d(e,r),r=r.sibling}e=n.type===$e?((t=Yo(n.props.children,e.mode,o,n.key)).return=e,t):((o=Wo(n,e.mode,o)).ref=kr(e,t,n),o.return=e,o)}return l(e);case Qe:e:{for(r=n.key;null!==t;){if(t.key===r){if(6===t.tag&&t.stateNode.containerInfo===n.containerInfo&&t.stateNode.implementation===n.implementation){p(e,t.sibling),(t=i(t,n.children||[],o)).return=e,e=t;break e}p(e,t);break}d(e,t),t=t.sibling}(t=Ho(n,e.mode,o)).return=e,e=t}return l(e)}if("string"==typeof n||"number"==typeof n)return n=""+n,l(e=((t=null!==t&&8===t.tag?(p(e,t.sibling),i(t,n,o)):(p(e,t),Ko(n,e.mode,o))).return=e,t));if(Pr(n))return function(t,e,n,o){for(var r=null,a=null,i=e,l=e=0,s=null;null!==i&&l<n.length;l++){i.index>l?(s=i,i=null):s=i.sibling;var u=b(t,i,n[l],o);if(null===u){null===i&&(i=s);break}f&&i&&null===u.alternate&&d(t,i),e=m(u,e,l),null===a?r=u:a.sibling=u,a=u,i=s}if(l===n.length)return p(t,i),r;if(null===i){for(;l<n.length;l++)(i=y(t,n[l],o))&&(e=m(i,e,l),null===a?r=i:a.sibling=i,a=i);return r}for(i=h(t,i);l<n.length;l++)(s=v(i,t,l,n[l],o))&&(f&&null!==s.alternate&&i.delete(null===s.key?l:s.key),e=m(s,e,l),null===a?r=s:a.sibling=s,a=s);return f&&i.forEach(function(e){return d(t,e)}),r}(e,t,n,o);if(it(n))return function(t,e,n,o){var r=it(n);"function"!=typeof r&&V("150"),null==(n=r.call(n))&&V("151");for(var a=r=null,i=e,l=e=0,s=null,u=n.next();null!==i&&!u.done;l++,u=n.next()){i.index>l?(s=i,i=null):s=i.sibling;var c=b(t,i,u.value,o);if(null===c){i||(i=s);break}f&&i&&null===c.alternate&&d(t,i),e=m(c,e,l),null===a?r=c:a.sibling=c,a=c,i=s}if(u.done)return p(t,i),r;if(null===i){for(;!u.done;l++,u=n.next())null!==(u=y(t,u.value,o))&&(e=m(u,e,l),null===a?r=u:a.sibling=u,a=u);return r}for(i=h(t,i);!u.done;l++,u=n.next())null!==(u=v(i,t,l,u.value,o))&&(f&&null!==u.alternate&&i.delete(null===u.key?l:u.key),e=m(u,e,l),null===a?r=u:a.sibling=u,a=u);return f&&i.forEach(function(e){return d(t,e)}),r}(e,t,n,o);if(a&&Ir(e,n),void 0===n&&!r)switch(e.tag){case 2:case 3:case 0:V("152",(o=e.type).displayName||o.name||"Component")}return p(e,t)}}var Dr=Lr(!0),xr=Lr(!1),Mr=null,Vr=null,jr=!1;function Ur(e,t){var n=new Uo(7,null,null,0);n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Br(e,t){switch(e.tag){case 7:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 8:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Fr(e){if(jr){var t=Vr;if(t){var n=t;if(!Br(e,t)){if(!(t=vo(n))||!Br(e,t))return e.effectTag|=2,jr=!1,void(Mr=e);Ur(Mr,n)}Mr=e,Vr=go(t)}else e.effectTag|=2,jr=!1,Mr=e}}function Wr(e){for(e=e.return;null!==e&&7!==e.tag&&5!==e.tag;)e=e.return;Mr=e}function Yr(e){if(e!==Mr)return!1;if(!jr)return Wr(e),!(jr=!0);var t=e.type;if(7!==e.tag||"head"!==t&&"body"!==t&&!bo(t,e.memoizedProps))for(t=Vr;t;)Ur(e,t),t=vo(t);return Wr(e),Vr=Mr?vo(e.stateNode):null,!0}function Kr(){Vr=Mr=null,jr=!1}var Hr=ze.ReactCurrentOwner;function zr(e,t,n,o){t.child=null===e?xr(t,null,n,o):Dr(t,e.child,n,o)}function Gr(e,t,n,o,r){n=n.render;var a=t.ref;return Ao.current||t.memoizedProps!==o||a!==(null!==e?e.ref:null)?(zr(e,t,n=n(o,a),r),t.memoizedProps=o,t.child):ea(e,t,r)}function Xr(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function qr(e,t,n,o,r){var a=Ro(n)?No:Co.current;return a=wo(t,a),pr(t),n=n(o,a),t.effectTag|=1,zr(e,t,n,r),t.memoizedProps=o,t.child}function Qr(e,t,n,o,r){if(Ro(n)){var a=!0;Do(t)}else a=!1;if(pr(t),null===e)if(null===t.stateNode){var i=Ro(n)?No:Co.current,l=n.contextTypes,s=null!=l,u=new n(o,l=s?wo(t,i):Oo);t.memoizedState=null!==u.state&&void 0!==u.state?u.state:null,u.updater=Ar,(t.stateNode=u)._reactInternalFiber=t,s&&((s=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,s.__reactInternalMemoizedMaskedChildContext=l),Rr(t,n,o,r),o=!0}else{i=t.stateNode,l=t.memoizedProps,i.props=l;var c=i.context;s=wo(t,s=Ro(n)?No:Co.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==o||c!==s)&&wr(t,i,o,s),Xo=!1;var d=t.memoizedState;c=i.state=d;var p=t.updateQueue;null!==p&&(or(t,p,o,i,r),c=t.memoizedState),o=l!==o||d!==c||Ao.current||Xo?("function"==typeof f&&(Cr(t,n,f,o),c=t.memoizedState),(l=Xo||Nr(t,n,l,o,d,c,s))?(u||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.effectTag|=4)):("function"==typeof i.componentDidMount&&(t.effectTag|=4),t.memoizedProps=o,t.memoizedState=c),i.props=o,i.state=c,i.context=s,l):("function"==typeof i.componentDidMount&&(t.effectTag|=4),!1)}else i=t.stateNode,l=t.memoizedProps,i.props=l,c=i.context,s=wo(t,s=Ro(n)?No:Co.current),(u="function"==typeof(f=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==o||c!==s)&&wr(t,i,o,s),Xo=!1,c=t.memoizedState,d=i.state=c,null!==(p=t.updateQueue)&&(or(t,p,o,i,r),d=t.memoizedState),o=l!==o||c!==d||Ao.current||Xo?("function"==typeof f&&(Cr(t,n,f,o),d=t.memoizedState),(f=Xo||Nr(t,n,l,o,c,d,s))?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(o,d,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(o,d,s)),"function"==typeof i.componentDidUpdate&&(t.effectTag|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=o,t.memoizedState=d),i.props=o,i.state=d,i.context=s,f):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),!1);return $r(e,t,n,o,a,r)}function $r(e,t,n,o,r,a){Xr(e,t);var i=0!=(64&t.effectTag);if(!o&&!i)return r&&xo(t,n,!1),ea(e,t,a);o=t.stateNode,Hr.current=t;var l=i?null:o.render();return t.effectTag|=1,null!==e&&i&&(zr(e,t,null,a),t.child=null),zr(e,t,l,a),t.memoizedState=o.state,t.memoizedProps=o.props,r&&xo(t,n,!0),t.child}function Jr(e){var t=e.stateNode;t.pendingContext?Io(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Io(0,t.context,!1),Er(e,t.containerInfo)}function Zr(e,t){if(e&&e.defaultProps)for(var n in t=v({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function ea(e,t,n){null!==e&&(t.firstContextDependency=e.firstContextDependency);var o=t.childExpirationTime;if(0===o||n<o)return null;if(null!==e&&t.child!==e.child&&V("153"),null!==t.child){for(n=Fo(e=t.child,e.pendingProps,e.expirationTime),(t.child=n).return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Fo(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function ta(e,t,n){var o=t.expirationTime;if(!Ao.current&&(0===o||n<o)){switch(t.tag){case 5:Jr(t),Kr();break;case 7:_r(t);break;case 2:Ro(t.type)&&Do(t);break;case 3:Ro(t.type._reactResult)&&Do(t);break;case 6:Er(t,t.stateNode.containerInfo);break;case 12:fr(t,t.memoizedProps.value)}return ea(e,t,n)}switch(t.expirationTime=0,t.tag){case 4:return function(e,t,n,o){null!==e&&V("155");var r=t.pendingProps;if("object"==typeof n&&null!==n&&"function"==typeof n.then){var a=n=function(n){switch(n._reactStatus){case 1:return n._reactResult;case 2:throw n._reactResult;case 0:throw n;default:throw n._reactStatus=0,n.then(function(e){if(0===n._reactStatus){if(n._reactStatus=1,"object"==typeof e&&null!==e){var t=e.default;e=null!=t?t:e}n._reactResult=e}},function(e){0===n._reactStatus&&(n._reactStatus=2,n._reactResult=e)}),n}}(n);a="function"==typeof a?Bo(a)?3:1:null!=a&&a.$$typeof?14:4,a=t.tag=a;var i=Zr(n,r);switch(a){case 1:return qr(e,t,n,i,o);case 3:return Qr(e,t,n,i,o);case 14:return Gr(e,t,n,i,o);default:V("283",n)}}if(a=wo(t,Co.current),pr(t),a=n(r,a),t.effectTag|=1,"object"!=typeof a||null===a||"function"!=typeof a.render||void 0!==a.$$typeof)return t.tag=0,zr(e,t,a,o),t.memoizedProps=r,t.child;t.tag=2,Ro(n)?(i=!0,Do(t)):i=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null;var l=n.getDerivedStateFromProps;return"function"==typeof l&&Cr(t,n,l,r),a.updater=Ar,Rr((t.stateNode=a)._reactInternalFiber=t,n,r,o),$r(e,t,n,!0,i,o)}(e,t,t.type,n);case 0:return qr(e,t,t.type,t.pendingProps,n);case 1:var r=t.type._reactResult;return e=qr(e,t,r,Zr(r,o=t.pendingProps),n),t.memoizedProps=o,e;case 2:return Qr(e,t,t.type,t.pendingProps,n);case 3:return e=Qr(e,t,r=t.type._reactResult,Zr(r,o=t.pendingProps),n),t.memoizedProps=o,e;case 5:return Jr(t),null===(o=t.updateQueue)&&V("282"),r=null!==(r=t.memoizedState)?r.element:null,or(t,o,t.pendingProps,null,n),t=(o=t.memoizedState.element)===r?(Kr(),ea(e,t,n)):(r=t.stateNode,(r=(null===e||null===e.child)&&r.hydrate)&&(Vr=go(t.stateNode.containerInfo),Mr=t,r=jr=!0),r?(t.effectTag|=2,t.child=xr(t,null,o,n)):(zr(e,t,o,n),Kr()),t.child);case 7:_r(t),null===e&&Fr(t),o=t.type,r=t.pendingProps;var a=null!==e?e.memoizedProps:null,i=r.children;return bo(o,r)?i=null:null!==a&&bo(o,a)&&(t.effectTag|=16),Xr(e,t),t=1073741823!==n&&1&t.mode&&r.hidden?(t.expirationTime=1073741823,t.memoizedProps=r,null):(zr(e,t,i,n),t.memoizedProps=r,t.child);case 8:return null===e&&Fr(t),t.memoizedProps=t.pendingProps,null;case 16:return null;case 6:return Er(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Dr(t,null,o,n):zr(e,t,o,n),t.memoizedProps=o,t.child;case 13:return Gr(e,t,t.type,t.pendingProps,n);case 14:return e=Gr(e,t,r=t.type._reactResult,Zr(r,o=t.pendingProps),n),t.memoizedProps=o,e;case 9:return zr(e,t,o=t.pendingProps,n),t.memoizedProps=o,t.child;case 10:return zr(e,t,o=t.pendingProps.children,n),t.memoizedProps=o,t.child;case 15:return zr(e,t,(o=t.pendingProps).children,n),t.memoizedProps=o,t.child;case 12:e:{if(o=t.type._context,r=t.pendingProps,i=t.memoizedProps,a=r.value,t.memoizedProps=r,fr(t,a),null!==i){var l=i.value;if(0===(a=l===a&&(0!==l||1/l==1/a)||l!=l&&a!=a?0:0|("function"==typeof o._calculateChangedBits?o._calculateChangedBits(l,a):1073741823))){if(i.children===r.children&&!Ao.current){t=ea(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){if(null!==(l=i.firstContextDependency))do{if(l.context===o&&0!=(l.observedBits&a)){if(2===i.tag||3===i.tag){var s=$o(n);s.tag=2,Zo(i,s)}(0===i.expirationTime||i.expirationTime>n)&&(i.expirationTime=n),null!==(s=i.alternate)&&(0===s.expirationTime||s.expirationTime>n)&&(s.expirationTime=n);for(var u=i.return;null!==u;){if(s=u.alternate,0===u.childExpirationTime||u.childExpirationTime>n)u.childExpirationTime=n,null!==s&&(0===s.childExpirationTime||s.childExpirationTime>n)&&(s.childExpirationTime=n);else{if(null===s||!(0===s.childExpirationTime||s.childExpirationTime>n))break;s.childExpirationTime=n}u=u.return}}s=i.child,l=l.next}while(null!==l);else s=12===i.tag&&i.type===t.type?null:i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}}zr(e,t,r.children,n),t=t.child}return t;case 11:return a=t.type,r=(o=t.pendingProps).children,pr(t),r=r(a=hr(a,o.unstable_observedBits)),t.effectTag|=1,zr(e,t,r,n),t.memoizedProps=o,t.child;default:V("156")}}function na(e){e.effectTag|=4}var oa=void 0,ra=void 0,aa=void 0;function ia(e,t){var n=t.source,o=t.stack;null===o&&null!==n&&(o=st(n)),null!==n&&lt(n.type),t=t.value,null!==e&&2===e.tag&&lt(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function la(t){var e=t.ref;if(null!==e)if("function"==typeof e)try{e(null)}catch(e){Ia(t,e)}else e.current=null}function sa(t){switch("function"==typeof Vo&&Vo(t),t.tag){case 2:case 3:la(t);var e=t.stateNode;if("function"==typeof e.componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Ia(t,e)}break;case 7:la(t);break;case 6:fa(t)}}function ua(e){return 7===e.tag||5===e.tag||6===e.tag}function ca(e){e:{for(var t=e.return;null!==t;){if(ua(t)){var n=t;break e}t=t.return}V("160"),n=void 0}var o=t=void 0;switch(n.tag){case 7:t=n.stateNode,o=!1;break;case 5:case 6:t=n.stateNode.containerInfo,o=!0;break;default:V("161")}16&n.effectTag&&(ro(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ua(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;7!==n.tag&&8!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||6===n.tag)continue t;n=(n.child.return=n).child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var r=e;;){if(7===r.tag||8===r.tag)if(n)if(o){var a=t,i=r.stateNode,l=n;8===a.nodeType?a.parentNode.insertBefore(i,l):a.insertBefore(i,l)}else t.insertBefore(r.stateNode,n);else o?(a=t,i=r.stateNode,8===a.nodeType?(l=a.parentNode).insertBefore(i,a):(l=a).appendChild(i),null===l.onclick&&(l.onclick=po)):t.appendChild(r.stateNode);else if(6!==r.tag&&null!==r.child){r=(r.child.return=r).child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function fa(e){for(var t=e,n=!1,o=void 0,r=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&V("160"),n.tag){case 7:o=n.stateNode,r=!1;break e;case 5:case 6:o=n.stateNode.containerInfo,r=!0;break e}n=n.return}n=!0}if(7===t.tag||8===t.tag){e:for(var a=t,i=a;;)if(sa(i),null!==i.child&&6!==i.tag)i.child.return=i,i=i.child;else{if(i===a)break;for(;null===i.sibling;){if(null===i.return||i.return===a)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}r?(a=o,i=t.stateNode,8===a.nodeType?a.parentNode.removeChild(i):a.removeChild(i)):o.removeChild(t.stateNode)}else if(6===t.tag?(o=t.stateNode.containerInfo,r=!0):sa(t),null!==t.child){t=(t.child.return=t).child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;6===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function da(e,t){switch(t.tag){case 2:case 3:break;case 7:var n=t.stateNode;if(null!=n){var o=t.memoizedProps,r=null!==e?e.memoizedProps:o;e=t.type;var a=t.updateQueue;if((t.updateQueue=null)!==a){for(n[x]=o,"input"===e&&"radio"===o.type&&null!=o.name&&St(n,o),co(e,r),t=co(e,o),r=0;r<a.length;r+=2){var i=a[r],l=a[r+1];"style"===i?lo(n,l):"dangerouslySetInnerHTML"===i?oo(n,l):"children"===i?ro(n,l):bt(n,i,l,t)}switch(e){case"input":_t(n,o);break;case"textarea":Qn(n,o);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,null!=(a=o.value)?Gn(n,!!o.multiple,a,!1):e!==!!o.multiple&&(null!=o.defaultValue?Gn(n,!!o.multiple,o.defaultValue,!0):Gn(n,!!o.multiple,o.multiple?[]:"",!1))}}}break;case 8:null===t.stateNode&&V("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 5:case 15:case 16:break;default:V("163")}}function pa(e,t,n){(n=$o(n)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){hi(o),ia(e,t)},n}function ha(n,o,e){(e=$o(e)).tag=3;var t=n.stateNode;return null!==t&&"function"==typeof t.componentDidCatch&&(e.callback=function(){null===Na?Na=new Set([this]):Na.add(this);var e=o.value,t=o.stack;ia(n,o),this.componentDidCatch(e,{componentStack:null!==t?t:""})}),e}function ma(e){switch(e.tag){case 2:Ro(e.type)&&Po();var t=e.effectTag;return 1024&t?(e.effectTag=-1025&t|64,e):null;case 3:return Ro(e.type._reactResult)&&Po(),1024&(t=e.effectTag)?(e.effectTag=-1025&t|64,e):null;case 5:return Sr(),ko(),0!=(64&(t=e.effectTag))&&V("285"),e.effectTag=-1025&t|64,e;case 7:return Tr(e),null;case 16:return 1024&(t=e.effectTag)?(e.effectTag=-1025&t|64,e):null;case 6:return Sr(),null;case 12:return dr(e),null;default:return null}}oa=function(){},ra=function(e,t,n,o,r){var a=e.memoizedProps;if(a!==o){var i=t.stateNode;switch(gr(yr.current),e=null,n){case"input":a=gt(i,a),o=gt(i,o),e=[];break;case"option":a=zn(i,a),o=zn(i,o),e=[];break;case"select":a=v({},a,{value:void 0}),o=v({},o,{value:void 0}),e=[];break;case"textarea":a=Xn(i,a),o=Xn(i,o),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof o.onClick&&(i.onclick=po)}uo(n,o),i=n=void 0;var l=null;for(n in a)if(!o.hasOwnProperty(n)&&a.hasOwnProperty(n)&&null!=a[n])if("style"===n){var s=a[n];for(i in s)s.hasOwnProperty(i)&&(l||(l={}),l[i]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(S.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in o){var u=o[n];if(s=null!=a?a[n]:void 0,o.hasOwnProperty(n)&&u!==s&&(null!=u||null!=s))if("style"===n)if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(l||(l={}),l[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(l||(l={}),l[i]=u[i])}else l||(e||(e=[]),e.push(n,l)),l=u;else"dangerouslySetInnerHTML"===n?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(e=e||[]).push(n,""+u)):"children"===n?s===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(n,""+u):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(S.hasOwnProperty(n)?(null!=u&&fo(r,n),e||s===u||(e=[])):(e=e||[]).push(n,u))}l&&(e=e||[]).push("style",l),r=e,(t.updateQueue=r)&&na(t)}},aa=function(e,t,n,o){n!==o&&na(t)};var ya={readContext:hr},ba=ze.ReactCurrentOwner,va=0,ga=0,Ea=!1,Sa=null,_a=null,Ta=0,Oa=!1,Ca=null,Aa=!1,Na=null;function wa(){if(null!==Sa)for(var e=Sa.return;null!==e;){var t=e;switch(t.tag){case 2:var n=t.type.childContextTypes;null!=n&&Po();break;case 3:null!=(n=t.type._reactResult.childContextTypes)&&Po();break;case 5:Sr(),ko();break;case 7:Tr(t);break;case 6:Sr();break;case 12:dr(t)}e=e.return}Ta=0,Oa=!1,Sa=_a=null}function Ra(e){for(;;){var t=e.alternate,n=e.return,o=e.sibling;if(0==(512&e.effectTag)){var r=t,a=(t=e).pendingProps;switch(t.tag){case 0:case 1:break;case 2:Ro(t.type)&&Po();break;case 3:Ro(t.type._reactResult)&&Po();break;case 5:Sr(),ko(),(a=t.stateNode).pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),null!==r&&null!==r.child||(Yr(t),t.effectTag&=-3),oa(t);break;case 7:Tr(t);var i=gr(vr.current),l=t.type;if(null!==r&&null!=t.stateNode)ra(r,t,l,a,i),r.ref!==t.ref&&(t.effectTag|=128);else if(a){var s=gr(yr.current);if(Yr(t)){r=(a=t).stateNode;var u=a.type,c=a.memoizedProps,f=i;switch(r[D]=a,r[x]=c,l=void 0,i=u){case"iframe":case"object":Cn("load",r);break;case"video":case"audio":for(u=0;u<oe.length;u++)Cn(oe[u],r);break;case"source":Cn("error",r);break;case"img":case"image":case"link":Cn("error",r),Cn("load",r);break;case"form":Cn("reset",r),Cn("submit",r);break;case"details":Cn("toggle",r);break;case"input":Et(r,c),Cn("invalid",r),fo(f,"onChange");break;case"select":r._wrapperState={wasMultiple:!!c.multiple},Cn("invalid",r),fo(f,"onChange");break;case"textarea":qn(r,c),Cn("invalid",r),fo(f,"onChange")}for(l in uo(i,c),u=null,c)c.hasOwnProperty(l)&&(s=c[l],"children"===l?"string"==typeof s?r.textContent!==s&&(u=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(u=["children",""+s]):S.hasOwnProperty(l)&&null!=s&&fo(f,l));switch(i){case"input":Ke(r),Tt(r,c,!0);break;case"textarea":Ke(r),$n(r);break;case"select":case"option":break;default:"function"==typeof c.onClick&&(r.onclick=po)}l=u,a.updateQueue=l,(a=null!==l)&&na(t)}else{c=t,r=l,f=a,u=9===i.nodeType?i:i.ownerDocument,s===Jn.html&&(s=Zn(r)),s===Jn.html?"script"===r?((r=u.createElement("div")).innerHTML="<script><\/script>",u=r.removeChild(r.firstChild)):"string"==typeof f.is?u=u.createElement(r,{is:f.is}):(u=u.createElement(r),"select"===r&&f.multiple&&(u.multiple=!0)):u=u.createElementNS(s,r),(r=u)[D]=c,r[x]=a;e:for(c=r,f=t,u=f.child;null!==u;){if(7===u.tag||8===u.tag)c.appendChild(u.stateNode);else if(6!==u.tag&&null!==u.child){u=(u.child.return=u).child;continue}if(u===f)break;for(;null===u.sibling;){if(null===u.return||u.return===f)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}f=r;var d=i,p=co(u=l,c=a);switch(u){case"iframe":case"object":Cn("load",f),i=c;break;case"video":case"audio":for(i=0;i<oe.length;i++)Cn(oe[i],f);i=c;break;case"source":Cn("error",f),i=c;break;case"img":case"image":case"link":Cn("error",f),Cn("load",f),i=c;break;case"form":Cn("reset",f),Cn("submit",f),i=c;break;case"details":Cn("toggle",f),i=c;break;case"input":Et(f,c),i=gt(f,c),Cn("invalid",f),fo(d,"onChange");break;case"option":i=zn(f,c);break;case"select":f._wrapperState={wasMultiple:!!c.multiple},i=v({},c,{value:void 0}),Cn("invalid",f),fo(d,"onChange");break;case"textarea":qn(f,c),i=Xn(f,c),Cn("invalid",f),fo(d,"onChange");break;default:i=c}uo(u,i),s=void 0;var h=u,m=f,y=i;for(s in y)if(y.hasOwnProperty(s)){var b=y[s];"style"===s?lo(m,b):"dangerouslySetInnerHTML"===s?null!=(b=b?b.__html:void 0)&&oo(m,b):"children"===s?"string"==typeof b?("textarea"!==h||""!==b)&&ro(m,b):"number"==typeof b&&ro(m,""+b):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?null!=b&&fo(d,s):null!=b&&bt(m,s,b,p))}switch(u){case"input":Ke(f),Tt(f,c,!1);break;case"textarea":Ke(f),$n(f);break;case"option":null!=c.value&&f.setAttribute("value",""+vt(c.value));break;case"select":(i=f).multiple=!!c.multiple,null!=(f=c.value)?Gn(i,!!c.multiple,f,!1):null!=c.defaultValue&&Gn(i,!!c.multiple,c.defaultValue,!0);break;default:"function"==typeof i.onClick&&(f.onclick=po)}(a=yo(l,a))&&na(t),t.stateNode=r}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&V("166");break;case 8:r&&null!=t.stateNode?aa(r,t,r.memoizedProps,a):("string"!=typeof a&&(null===t.stateNode&&V("166")),r=gr(vr.current),gr(yr.current),Yr(t)?(l=(a=t).stateNode,r=a.memoizedProps,l[D]=a,(a=l.nodeValue!==r)&&na(t)):(l=t,(a=(9===r.nodeType?r:r.ownerDocument).createTextNode(a))[D]=l,t.stateNode=a));break;case 13:case 14:case 16:case 9:case 10:case 15:break;case 6:Sr(),oa(t);break;case 12:dr(t);break;case 11:break;case 4:V("167");default:V("156")}if(t=Sa=null,a=e,1073741823===Ta||1073741823!==a.childExpirationTime){for(l=0,r=a.child;null!==r;)i=r.expirationTime,c=r.childExpirationTime,(0===l||0!==i&&i<l)&&(l=i),(0===l||0!==c&&c<l)&&(l=c),r=r.sibling;a.childExpirationTime=l}if(null!==t)return t;null!==n&&0==(512&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(null!==(e=ma(e)))return e.effectTag&=511,e;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=512)}if(null!==o)return o;if(null===n)break;e=n}return null}function Pa(e){var t=ta(e.alternate,e,Ta);return null===t&&(t=Ra(e)),ba.current=null,t}function ka(e,t,n){Ea&&V("243"),Ea=!0,ba.currentDispatcher=ya;var o=e.nextExpirationTimeToWorkOn;o===Ta&&e===_a&&null!==Sa||(wa(),Ta=o,Sa=Fo((_a=e).current,null,Ta),e.pendingCommitExpirationTime=0);for(var r=!1;;){try{if(t)for(;null!==Sa&&!pi();)Sa=Pa(Sa);else for(;null!==Sa;)Sa=Pa(Sa)}catch(e){if(null===Sa)r=!0,hi(e);else{null===Sa&&V("271");var a=Sa,i=a.return;if(null!==i){e:{var l=i,s=a,u=e;i=Ta,s.effectTag|=512,s.firstEffect=s.lastEffect=null,Oa=!0,u=ir(u,s);do{switch(l.tag){case 5:l.effectTag|=1024,l.expirationTime=i,er(l,i=pa(l,u,i));break e;case 2:case 3:s=u;var c=l.stateNode;if(0==(64&l.effectTag)&&null!==c&&"function"==typeof c.componentDidCatch&&(null===Na||!Na.has(c))){l.effectTag|=1024,l.expirationTime=i,er(l,i=ha(l,s,i));break e}}l=l.return}while(null!==l)}Sa=Ra(a);continue}r=!0,hi(e)}}break}if(Ea=!1,cr=ur=sr=ba.currentDispatcher=null,r)_a=null,e.finishedWork=null;else if(null!==Sa)e.finishedWork=null;else{if(null===(t=e.current.alternate)&&V("281"),_a=null,Oa){if(r=e.latestPendingTime,a=e.latestSuspendedTime,i=e.latestPingedTime,0!==r&&o<r||0!==a&&o<a||0!==i&&o<i)return e.didError=!1,0!==(n=e.latestPingedTime)&&n<=o&&(e.latestPingedTime=0),n=e.earliestPendingTime,t=e.latestPendingTime,n===o?e.earliestPendingTime=t===o?e.latestPendingTime=0:t:t===o&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,t=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=o:o<n?e.earliestSuspendedTime=o:t<o&&(e.latestSuspendedTime=o),Go(o,e),void(e.expirationTime=e.expirationTime);if(!e.didError&&!n)return e.didError=!0,e.nextExpirationTimeToWorkOn=o,o=e.expirationTime=1,void(e.expirationTime=o)}e.pendingCommitExpirationTime=o,e.finishedWork=t}}function Ia(e,t){var n;e:{for(Ea&&!Aa&&V("263"),n=e.return;null!==n;){switch(n.tag){case 2:case 3:var o=n.stateNode;if("function"!=typeof n.type.getDerivedStateFromCatch&&("function"!=typeof o.componentDidCatch||null!==Na&&Na.has(o)))break;Zo(n,e=ha(n,e=ir(t,e),1)),Da(n,1),n=void 0;break e;case 5:Zo(n,e=pa(n,e=ir(t,e),1)),Da(n,1),n=void 0;break e}n=n.return}5===e.tag&&(Zo(e,n=pa(e,n=ir(t,e),1)),Da(e,1)),n=void 0}return n}function La(e,t){return 0!==ga?e=ga:Ea?e=Aa?1:Ta:1&t.mode?(e=Qa?2+10*(1+((e-2+15)/10|0)):2+25*(1+((e-2+500)/25|0)),null!==_a&&e===Ta&&(e+=1)):e=1,Qa&&(0===Ya||Ya<e)&&(Ya=e),e}function Da(e,t){e:{(0===e.expirationTime||e.expirationTime>t)&&(e.expirationTime=t);var n=e.alternate;null!==n&&(0===n.expirationTime||n.expirationTime>t)&&(n.expirationTime=t);var o=e.return;if(null===o&&5===e.tag)e=e.stateNode;else{for(;null!==o;){if(n=o.alternate,(0===o.childExpirationTime||o.childExpirationTime>t)&&(o.childExpirationTime=t),null!==n&&(0===n.childExpirationTime||n.childExpirationTime>t)&&(n.childExpirationTime=t),null===o.return&&5===o.tag){e=o.stateNode;break e}o=o.return}e=null}}null!==e&&(!Ea&&0!==Ta&&t<Ta&&wa(),zo(e,t),Ea&&!Aa&&_a===e||(e=(t=e).expirationTime,null===t.nextScheduledRoot?(t.expirationTime=e,null===Va?(Ma=Va=t,t.nextScheduledRoot=t):(Va=Va.nextScheduledRoot=t).nextScheduledRoot=Ma):(0===(n=t.expirationTime)||e<n)&&(t.expirationTime=e),Ba||(Xa?qa&&fi(Fa=t,Wa=1,!0):1===e?ci(1,null):ii(t,e))),ti<ni&&(ni=0,V("185")))}function xa(e,t,n,o,r){var a=ga;ga=1;try{return e(t,n,o,r)}finally{ga=a}}var Ma=null,Va=null,ja=0,Ua=void 0,Ba=!1,Fa=null,Wa=0,Ya=0,Ka=!1,Ha=!1,za=null,Ga=null,Xa=!1,qa=!1,Qa=!1,$a=null,Ja=o.unstable_now(),Za=2+(Ja/10|0),ei=Za,ti=50,ni=0,oi=null,ri=1;function ai(){Za=2+((o.unstable_now()-Ja)/10|0)}function ii(e,t){if(0!==ja){if(ja<t)return;null!==Ua&&o.unstable_cancelScheduledWork(Ua)}ja=t,e=o.unstable_now()-Ja,Ua=o.unstable_scheduleWork(ui,{timeout:10*(t-2)-e})}function li(){return Ba||(si(),0!==Wa&&1073741823!==Wa||(ai(),ei=Za)),ei}function si(){var e=0,t=null;if(null!==Va)for(var n=Va,o=Ma;null!==o;){var r=o.expirationTime;if(0===r){if((null===n||null===Va)&&V("244"),o===o.nextScheduledRoot){Ma=Va=o.nextScheduledRoot=null;break}if(o===Ma)Ma=r=o.nextScheduledRoot,Va.nextScheduledRoot=r,o.nextScheduledRoot=null;else{if(o===Va){(Va=n).nextScheduledRoot=Ma,o.nextScheduledRoot=null;break}n.nextScheduledRoot=o.nextScheduledRoot,o.nextScheduledRoot=null}o=n.nextScheduledRoot}else{if((0===e||r<e)&&(e=r,t=o),o===Va)break;if(1===e)break;o=(n=o).nextScheduledRoot}}Fa=t,Wa=e}function ui(e){if(e.didTimeout&&null!==Ma){ai();var t=Ma;do{var n=t.expirationTime;0!==n&&n<=Za&&(t.nextExpirationTimeToWorkOn=Za),t=t.nextScheduledRoot}while(t!==Ma)}ci(0,e)}function ci(e,t){if(Ga=t,si(),null!==Ga)for(ai(),ei=Za;null!==Fa&&0!==Wa&&(0===e||Wa<=e)&&(!Ka||Wa<=Za);)fi(Fa,Wa,Wa<=Za),si(),ai(),ei=Za;else for(;null!==Fa&&0!==Wa&&(0===e||Wa<=e);)fi(Fa,Wa,!0),si();if(null!==Ga&&(ja=0,Ua=null),0!==Wa&&ii(Fa,Wa),Ka=!1,ni=0,(oi=Ga=null)!==$a)for(e=$a,$a=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){Ha||(Ha=!0,za=e)}}if(Ha)throw e=za,za=null,Ha=!1,e}function fi(e,t,n){if(Ba&&V("245"),Ba=!0,null===Ga||n){var o=e.finishedWork;null!==o?di(e,o,t):(e.finishedWork=null,ka(e,!1,n),null!==(o=e.finishedWork)&&di(e,o,t))}else null!==(o=e.finishedWork)?di(e,o,t):(e.finishedWork=null,ka(e,!0,n),null!==(o=e.finishedWork)&&(pi()?e.finishedWork=o:di(e,o,t)));Ba=!1}function di(e,t,n){var o=e.firstBatch;if(null!==o&&o._expirationTime<=n&&(null===$a?$a=[o]:$a.push(o),o._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===oi?ni++:(oi=e,ni=0),Aa=Ea=!0,e.current===t&&V("177"),0===(n=e.pendingCommitExpirationTime)&&V("261"),e.pendingCommitExpirationTime=0,o=t.expirationTime;var r=t.childExpirationTime;if(o=0===o||0!==r&&r<o?r:o,e.didError=!1,0===o?(e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0):(0!==(r=e.latestPendingTime)&&(r<o?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime<o&&(e.earliestPendingTime=e.latestPendingTime)),0===(r=e.earliestSuspendedTime)?zo(e,o):o>e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,zo(e,o)):o<r&&zo(e,o)),Go(0,e),ba.current=null,o=1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t).firstEffect:t:t.firstEffect,ho=On,Vn(r=Mn())){if("selectionStart"in r)var a={start:r.selectionStart,end:r.selectionEnd};else e:{var i=(a=(a=r.ownerDocument)&&a.defaultView||window).getSelection&&a.getSelection();if(i&&0!==i.rangeCount){a=i.anchorNode;var l=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{a.nodeType,s.nodeType}catch(e){a=null;break e}var u=0,c=-1,f=-1,d=0,p=0,h=r,m=null;t:for(;;){for(var y;h!==a||0!==l&&3!==h.nodeType||(c=u+l),h!==s||0!==i&&3!==h.nodeType||(f=u+i),3===h.nodeType&&(u+=h.nodeValue.length),null!==(y=h.firstChild);)m=h,h=y;for(;;){if(h===r)break t;if(m===a&&++d===l&&(c=u),m===s&&++p===i&&(f=u),null!==(y=h.nextSibling))break;m=(h=m).parentNode}h=y}a=-1===c||-1===f?null:{start:c,end:f}}else a=null}a=a||{start:0,end:0}}else a=null;for(On=!(mo={focusedElem:r,selectionRange:a}),Ca=o;null!==Ca;){r=!1,a=void 0;try{for(;null!==Ca;){if(256&Ca.effectTag){var b=Ca.alternate;e:switch(l=Ca,l.tag){case 2:case 3:if(256&l.effectTag&&null!==b){var v=b.memoizedProps,g=b.memoizedState,E=l.stateNode;E.props=l.memoizedProps,E.state=l.memoizedState;var S=E.getSnapshotBeforeUpdate(v,g);E.__reactInternalSnapshotBeforeUpdate=S}break e;case 5:case 7:case 8:case 6:break e;default:V("163")}}Ca=Ca.nextEffect}}catch(e){r=!0,a=e}r&&(null===Ca&&V("178"),Ia(Ca,a),null!==Ca&&(Ca=Ca.nextEffect))}for(Ca=o;null!==Ca;){b=!1,v=void 0;try{for(;null!==Ca;){var _=Ca.effectTag;if(16&_&&ro(Ca.stateNode,""),128&_){var T=Ca.alternate;if(null!==T){var O=T.ref;null!==O&&("function"==typeof O?O(null):O.current=null)}}switch(14&_){case 2:ca(Ca),Ca.effectTag&=-3;break;case 6:ca(Ca),Ca.effectTag&=-3,da(Ca.alternate,Ca);break;case 4:da(Ca.alternate,Ca);break;case 8:fa(g=Ca),g.return=null,g.child=null,g.alternate&&(g.alternate.child=null,g.alternate.return=null)}Ca=Ca.nextEffect}}catch(e){b=!0,v=e}b&&(null===Ca&&V("178"),Ia(Ca,v),null!==Ca&&(Ca=Ca.nextEffect))}if(O=mo,T=Mn(),_=O.focusedElem,v=O.selectionRange,T!==_&&_&&_.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(_.ownerDocument.documentElement,_)){null!==v&&Vn(_)&&(T=v.start,void 0===(O=v.end)&&(O=T),"selectionStart"in _?(_.selectionStart=T,_.selectionEnd=Math.min(O,_.value.length)):(T=((b=_.ownerDocument||document)&&b.defaultView||window).getSelection(),g=_.textContent.length,O=Math.min(v.start,g),v=void 0===v.end?O:Math.min(v.end,g),!T.extend&&v<O&&(g=v,v=O,O=g),g=xn(_,O),E=xn(_,v),g&&E&&(1!==T.rangeCount||T.anchorNode!==g.node||T.anchorOffset!==g.offset||T.focusNode!==E.node||T.focusOffset!==E.offset)&&((b=b.createRange()).setStart(g.node,g.offset),T.removeAllRanges(),v<O?(T.addRange(b),T.extend(E.node,E.offset)):(b.setEnd(E.node,E.offset),T.addRange(b))))),T=[];for(O=_;O=O.parentNode;)1===O.nodeType&&T.push({element:O,left:O.scrollLeft,top:O.scrollTop});for("function"==typeof _.focus&&_.focus(),_=0;_<T.length;_++)(O=T[_]).element.scrollLeft=O.left,O.element.scrollTop=O.top}for(On=!!ho,ho=mo=null,e.current=t,Ca=o;null!==Ca;){o=!1,_=void 0;try{for(T=n;null!==Ca;){var C=Ca.effectTag;if(36&C){var A=Ca.alternate;switch(b=T,(O=Ca).tag){case 2:case 3:var N=O.stateNode;if(4&O.effectTag)if(null===A)N.props=O.memoizedProps,N.state=O.memoizedState,N.componentDidMount();else{var w=A.memoizedProps,R=A.memoizedState;N.props=O.memoizedProps,N.state=O.memoizedState,N.componentDidUpdate(w,R,N.__reactInternalSnapshotBeforeUpdate)}var P=O.updateQueue;null!==P&&(N.props=O.memoizedProps,N.state=O.memoizedState,rr(0,P,N));break;case 5:var k=O.updateQueue;if(null!==k){if((v=null)!==O.child)switch(O.child.tag){case 7:v=O.child.stateNode;break;case 2:case 3:v=O.child.stateNode}rr(0,k,v)}break;case 7:var I=O.stateNode;null===A&&4&O.effectTag&&yo(O.type,O.memoizedProps)&&I.focus();break;case 8:case 6:case 15:case 16:break;default:V("163")}}if(128&C){var L=Ca.ref;if(null!==L){var D=Ca.stateNode;switch(Ca.tag){case 7:var x=D;break;default:x=D}"function"==typeof L?L(x):L.current=x}}var M=Ca.nextEffect;Ca.nextEffect=null,Ca=M}}catch(e){o=!0,_=e}o&&(null===Ca&&V("178"),Ia(Ca,_),null!==Ca&&(Ca=Ca.nextEffect))}Ea=Aa=!1,"function"==typeof Mo&&Mo(t.stateNode),C=t.expirationTime,t=t.childExpirationTime,0===(t=0===C||0!==t&&t<C?t:C)&&(Na=null),e.expirationTime=t,e.finishedWork=null}function pi(){return!!Ka||!(null===Ga||Ga.timeRemaining()>ri)&&(Ka=!0)}function hi(e){null===Fa&&V("246"),Fa.expirationTime=0,Ha||(Ha=!0,za=e)}function mi(e,t){var n=Xa;Xa=!0;try{return e(t)}finally{(Xa=n)||Ba||ci(1,null)}}function yi(e,t){if(Xa&&!qa){qa=!0;try{return e(t)}finally{qa=!1}}return e(t)}function bi(e,t,n){if(Qa)return e(t,n);Xa||Ba||0===Ya||(ci(Ya,null),Ya=0);var o=Qa,r=Xa;Xa=Qa=!0;try{return e(t,n)}finally{Qa=o,(Xa=r)||Ba||ci(1,null)}}function vi(e,t,n,o,r){var a=t.current;return n=function(e){if(!e)return Oo;e:{(2!==tn(e=e._reactInternalFiber)||2!==e.tag&&3!==e.tag)&&V("170");var t=e;do{switch(t.tag){case 5:t=t.stateNode.context;break e;case 2:if(Ro(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}break;case 3:if(Ro(t.type._reactResult)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);V("171"),t=void 0}if(2===e.tag){var n=e.type;if(Ro(n))return Lo(e,n,t)}else if(3===e.tag&&Ro(n=e.type._reactResult))return Lo(e,n,t);return t}(n),null===t.context?t.context=n:t.pendingContext=n,t=r,(r=$o(o)).payload={element:e},null!==(t=void 0===t?null:t)&&(r.callback=t),Zo(a,r),Da(a,o),o}function gi(e,t,n,o){var r=t.current;return vi(e,t,n,r=La(li(),r),o)}function Ei(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 7:default:return e.child.stateNode}}function Si(e){var t=2+25*(1+((li()-2+500)/25|0));t<=va&&(t=va+1),this._expirationTime=va=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function _i(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Ti(e,t,n){e={current:t=new Uo(5,null,null,t?3:0),containerInfo:e,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function Oi(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ci(e,t,n,o,r){Oi(n)||V("200");var a=n._reactRootContainer;if(a){if("function"==typeof r){var i=r;r=function(){var e=Ei(a._internalRoot);i.call(e)}}null!=e?a.legacy_renderSubtreeIntoContainer(e,t,r):a.render(t,r)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Ti(e,!1,t)}(n,o),"function"==typeof r){var l=r;r=function(){var e=Ei(a._internalRoot);l.call(e)}}yi(function(){null!=e?a.legacy_renderSubtreeIntoContainer(e,t,r):a.render(t,r)})}return Ei(a._internalRoot)}function Ai(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Oi(t)||V("200"),function(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Qe,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}we=function(e,t,n){switch(t){case"input":if(_t(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var r=B(o);r||V("90"),He(o),_t(o,r)}}}break;case"textarea":Qn(e,n);break;case"select":null!=(t=n.value)&&Gn(e,!!n.multiple,t,!1)}},Si.prototype.render=function(e){this._defer||V("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,o=new _i;return vi(e,t,null,n,o._onCommit),o},Si.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Si.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||V("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var o=null,r=t;r!==this;)r=(o=r)._next;null===o&&V("251"),o._next=r._next,this._next=t,e.firstBatch=this}this._defer=!1,t=n,Ba&&V("253"),fi(Fa=e,Wa=t,!0),ci(1,null),t=this._next,(this._next=null)!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},Si.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},_i.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},_i.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&V("191",n),n()}}},Ti.prototype.render=function(e,t){var n=this._internalRoot,o=new _i;return null!==(t=void 0===t?null:t)&&o.then(t),gi(e,n,null,o._onCommit),o},Ti.prototype.unmount=function(e){var t=this._internalRoot,n=new _i;return null!==(e=void 0===e?null:e)&&n.then(e),gi(null,t,null,n._onCommit),n},Ti.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var o=this._internalRoot,r=new _i;return null!==(n=void 0===n?null:n)&&r.then(n),gi(t,o,e,r._onCommit),r},Ti.prototype.createBatch=function(){var e=new Si(this),t=e._expirationTime,n=this._internalRoot,o=n.firstBatch;if(null===o)(n.firstBatch=e)._next=null;else{for(n=null;null!==o&&o._expirationTime<=t;)o=(n=o)._next;e._next=o,null!==n&&(n._next=e)}return e},Me=function(){Ba||0===Ya||(ci(Ya,null),Ya=0)};var Ni,wi,Ri={createPortal:Ai,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?V("188"):V("268",Object.keys(e))),e=null===(e=on(t))?null:e.stateNode},hydrate:function(e,t,n){return Ci(null,e,t,!0,n)},render:function(e,t,n){return Ci(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,o){return(null==e||void 0===e._reactInternalFiber)&&V("38"),Ci(e,t,n,!1,o)},unmountComponentAtNode:function(e){return Oi(e)||V("40"),!!e._reactRootContainer&&(yi(function(){Ci(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Ai.apply(void 0,arguments)},unstable_batchedUpdates:De=mi,unstable_interactiveUpdates:xe=bi,flushSync:function(e,t){Ba&&V("187");var n=Xa;Xa=!0;try{return xa(e,t)}finally{Xa=n,ci(1,null)}},unstable_flushControlled:function(e){var t=Xa;Xa=!0;try{xa(e)}finally{(Xa=t)||Ba||ci(1,null)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[j,U,B,P.injectEventPluginsByName,E,z,function(e){C(e,H)},Ie,Le,wn,I]},unstable_createRoot:function(e,t){return Oi(e)||V("278"),new Ti(e,!0,null!=t&&!0===t.hydrate)}};wi=(Ni={findFiberByHostInstance:M,bundleType:0,version:"16.5.2",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return;try{var n=t.inject(e);Mo=jo(function(e){return t.onCommitFiberRoot(n,e)}),Vo=jo(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}}(v({},Ni,{findHostInstanceByFiber:function(e){return null===(e=on(e))?null:e.stateNode},findFiberByHostInstance:function(e){return wi?wi(e):null}}));var Pi=Ri;t.exports=Pi.default||Pi},{"object-assign":369,react:382,schedule:388}],378:[function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),t.exports=e("./cjs/react-dom.production.min.js")},{"./cjs/react-dom.development.js":376,"./cjs/react-dom.production.min.js":377}],379:[function(e,t,n){var o,r;o=this,r=function(n){return function(n){function o(e){if(r[e])return r[e].exports;var t=r[e]={exports:{},id:e,loaded:!1};return n[e].call(t.exports,t,t.exports,o),t.loaded=!0,t.exports}var r={};return o.m=n,o.c=r,o.p="",o(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(13),a=(o=r)&&o.__esModule?o:{default:o};t.default=a.default},function(e,t){e.exports=n},function(e,t,n){e.exports=n(17)()},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]="number"==typeof e[n]?e[n]:e[n].val);return t},e.exports=t.default},function(r,e,t){(function(o){(function(){var e,t,n;"undefined"!=typeof performance&&null!==performance&&performance.now?r.exports=function(){return performance.now()}:n=null!=o&&o.hrtime?(r.exports=function(){return(e()-n)/1e6},t=o.hrtime,(e=function(){var e;return 1e9*(e=t())[0]+e[1]})()):Date.now?(r.exports=function(){return Date.now()-n},Date.now()):(r.exports=function(){return(new Date).getTime()-n},(new Date).getTime())}).call(this)}).call(e,t(10))},function(f,e,d){(function(e){for(var o=d(21),t="undefined"==typeof window?e:window,n=["moz","webkit"],r="AnimationFrame",a=t["request"+r],i=t["cancel"+r]||t["cancelRequest"+r],l=0;!a&&l<n.length;l++)a=t[n[l]+"Request"+r],i=t[n[l]+"Cancel"+r]||t[n[l]+"CancelRequest"+r];if(!a||!i){var s=0,u=0,c=[];a=function(e){if(0===c.length){var t=o(),n=Math.max(0,1e3/60-(t-s));s=n+t,setTimeout(function(){for(var e=c.slice(0),t=c.length=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(s)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return c.push({handle:++u,callback:e,cancelled:!1}),u},i=function(e){for(var t=0;t<c.length;t++)c[t].handle===e&&(c[t].cancelled=!0)}}f.exports=function(e){return a.call(t,e)},f.exports.cancel=function(){i.apply(t,arguments)},f.exports.polyfill=function(e){e||(e=t),e.requestAnimationFrame=a,e.cancelAnimationFrame=i}}).call(e,function(){return this}())},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=0);return t},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t,n){for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){if(0!==n[o])return!1;var r="number"==typeof t[o]?t[o]:t[o].val;if(e[o]!==r)return!1}return!0},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t,n,o,r,a,i){var l=n+(-r*(t-o)+-a*n)*e,s=t+l*e;return Math.abs(l)<i&&Math.abs(s-o)<i?(u[0]=o,u[1]=0):(u[0]=s,u[1]=l),u};var u=[0,0];e.exports=t.default},function(e,t,n){"use strict";function o(e){var t=e.version;if("string"!=typeof t)return!0;var n=t.split("."),o=parseInt(n[0],10),r=parseInt(n[1],10);return 0===o&&13===r}Object.defineProperty(t,"__esModule",{value:!0}),t.findDOMNode=function(e){return l?i.default.findDOMNode(e):e},t.warnAboutFunctionChild=function(){s||l||(s=!0,console.error("With React 0.14 and later versions, you no longer need to wrap <ScrollArea> child into a function."))},t.warnAboutElementChild=function(){!s&&l&&(s=!0,console.error("With React 0.13, you need to wrap <ScrollArea> child into a function."))},t.positiveOrZero=function(e){return e<0?0:e},t.modifyObjValues=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:function(e){return e},n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=t(e[o]));return n},t.isReact13=o;var r,a=n(1),i=(r=a)&&r.__esModule?r:{default:r},l=o(i.default),s=!1},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(t){if(u===setTimeout)return setTimeout(t,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(t,0);try{return u(t,0)}catch(e){try{return u.call(null,t,0)}catch(e){return u.call(this,t,0)}}}function a(){h&&d&&(h=!1,d.length?p=d.concat(p):m=-1,p.length&&i())}function i(){if(!h){var e=r(a);h=!0;for(var t=p.length;t;){for(d=p,p=[];++m<t;)d&&d[m].run();m=-1,t=p.length}d=null,h=!1,function(t){if(c===clearTimeout)return clearTimeout(t);if((c===o||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(t);try{c(t)}catch(e){try{return c.call(null,t)}catch(e){return c.call(this,t)}}}(e)}}function l(e,t){this.fun=e,this.array=t}function s(){}var u,c,f=e.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n}catch(e){u=n}try{c="function"==typeof clearTimeout?clearTimeout:o}catch(e){c=o}}();var d,p=[],h=!1,m=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];p.push(new l(e,t)),1!==p.length||h||r(i)},l.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=s,f.addListener=s,f.once=s,f.off=s,f.removeListener=s,f.removeAllListeners=s,f.emit=s,f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(e,t){"use strict";t.__esModule=!0,t.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var r=n(22);t.Motion=o(r);var a=n(23);t.StaggeredMotion=o(a);var i=n(24);t.TransitionMotion=o(i);var l=n(27);t.spring=o(l);var s=n(11);t.presets=o(s);var u=n(3);t.stripStyle=o(u);var c=n(26);t.reorderKeys=o(c)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=function(){function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}}(),h=o(n(1)),i=o(n(2)),l=o(n(16)),m=n(12),y=n(9),b=o(n(14)),v="wheel",g="api",E="touchEnd",S="keypress",s=function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=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,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.state={topPosition:0,leftPosition:0,realHeight:0,containerHeight:0,realWidth:0,containerWidth:0},t.scrollArea={refresh:function(){t.setSizesToState()},scrollTop:function(){t.scrollTop()},scrollBottom:function(){t.scrollBottom()},scrollYTo:function(e){t.scrollYTo(e)},scrollLeft:function(){t.scrollLeft()},scrollRight:function(){t.scrollRight()},scrollXTo:function(e){t.scrollXTo(e)}},t.evntsPreviousValues={clientX:0,clientY:0,deltaX:0,deltaY:0},t.bindedHandleWindowResize=t.handleWindowResize.bind(t),t}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)}(n,h.default.Component),a(n,[{key:"getChildContext",value:function(){return{scrollArea:this.scrollArea}}},{key:"componentDidMount",value:function(){this.props.contentWindow&&this.props.contentWindow.addEventListener("resize",this.bindedHandleWindowResize),this.lineHeightPx=(0,l.default)((0,y.findDOMNode)(this.content)),this.setSizesToState()}},{key:"componentWillUnmount",value:function(){this.props.contentWindow&&this.props.contentWindow.removeEventListener("resize",this.bindedHandleWindowResize)}},{key:"componentDidUpdate",value:function(){this.setSizesToState()}},{key:"render",value:function(){var t=this,e=this.props,n=e.children,o=e.className,r=e.contentClassName,a=e.ownerDocument,i=this.props.smoothScrolling&&(this.state.eventType===v||this.state.eventType===g||this.state.eventType===E||this.state.eventType===S),l=this.canScrollY()?h.default.createElement(b.default,{ownerDocument:a,realSize:this.state.realHeight,containerSize:this.state.containerHeight,position:this.state.topPosition,onMove:this.handleScrollbarMove.bind(this),onPositionChange:this.handleScrollbarYPositionChange.bind(this),containerStyle:this.props.verticalContainerStyle,scrollbarStyle:this.props.verticalScrollbarStyle,smoothScrolling:i,minScrollSize:this.props.minScrollSize,onFocus:this.focusContent.bind(this),type:"vertical"}):null,s=this.canScrollX()?h.default.createElement(b.default,{ownerDocument:a,realSize:this.state.realWidth,containerSize:this.state.containerWidth,position:this.state.leftPosition,onMove:this.handleScrollbarMove.bind(this),onPositionChange:this.handleScrollbarXPositionChange.bind(this),containerStyle:this.props.horizontalContainerStyle,scrollbarStyle:this.props.horizontalScrollbarStyle,smoothScrolling:i,minScrollSize:this.props.minScrollSize,onFocus:this.focusContent.bind(this),type:"horizontal"}):null;"function"==typeof n?((0,y.warnAboutFunctionChild)(),n=n()):(0,y.warnAboutElementChild)();var u="scrollarea "+(o||""),c="scrollarea-content "+(r||""),f={marginTop:-this.state.topPosition,marginLeft:-this.state.leftPosition},d=i?(0,y.modifyObjValues)(f,function(e){return(0,m.spring)(e)}):f;return h.default.createElement(m.Motion,{style:d},function(e){return h.default.createElement("div",{ref:function(e){return t.wrapper=e},className:u,style:t.props.style,onWheel:t.handleWheel.bind(t)},h.default.createElement("div",{ref:function(e){return t.content=e},style:p({},t.props.contentStyle,e),className:c,onTouchStart:t.handleTouchStart.bind(t),onTouchMove:t.handleTouchMove.bind(t),onTouchEnd:t.handleTouchEnd.bind(t),onKeyDown:t.handleKeyDown.bind(t),tabIndex:t.props.focusableTabIndex},n),l,s)})}},{key:"setStateFromEvent",value:function(e,t){this.props.onScroll&&this.props.onScroll(e),this.setState(p({},e,{eventType:t}))}},{key:"handleTouchStart",value:function(e){var t=e.touches;if(1===t.length){var n=t[0],o=n.clientX,r=n.clientY;this.eventPreviousValues=p({},this.eventPreviousValues,{clientY:r,clientX:o,timestamp:Date.now()})}}},{key:"handleTouchMove",value:function(e){this.canScroll()&&(e.preventDefault(),e.stopPropagation());var t=e.touches;if(1===t.length){var n=t[0],o=n.clientX,r=n.clientY,a=this.eventPreviousValues.clientY-r,i=this.eventPreviousValues.clientX-o;this.eventPreviousValues=p({},this.eventPreviousValues,{deltaY:a,deltaX:i,clientY:r,clientX:o,timestamp:Date.now()}),this.setStateFromEvent(this.composeNewState(-i,-a))}}},{key:"handleTouchEnd",value:function(e){var t=this.eventPreviousValues,n=t.deltaX,o=t.deltaY,r=t.timestamp;void 0===n&&(n=0),void 0===o&&(o=0),Date.now()-r<200&&this.setStateFromEvent(this.composeNewState(10*-n,10*-o),E),this.eventPreviousValues=p({},this.eventPreviousValues,{deltaY:0,deltaX:0})}},{key:"handleScrollbarMove",value:function(e,t){this.setStateFromEvent(this.composeNewState(t,e))}},{key:"handleScrollbarXPositionChange",value:function(e){this.scrollXTo(e)}},{key:"handleScrollbarYPositionChange",value:function(e){this.scrollYTo(e)}},{key:"handleWheel",value:function(e){var t=e.deltaY,n=e.deltaX;if(this.props.swapWheelAxes){var o=[n,t];t=o[0],n=o[1]}1===e.deltaMode&&(t*=this.lineHeightPx,n*=this.lineHeightPx),t*=this.props.speed,n*=this.props.speed;var r=this.composeNewState(-n,-t);(r.topPosition&&this.state.topPosition!==r.topPosition||r.leftPosition&&this.state.leftPosition!==r.leftPosition||this.props.stopScrollPropagation)&&(e.preventDefault(),e.stopPropagation()),this.setStateFromEvent(r,v),this.focusContent()}},{key:"handleKeyDown",value:function(e){if("input"!==e.target.tagName.toLowerCase()&&"textarea"!==e.target.tagName.toLowerCase()&&!e.target.isContentEditable){var t=0,n=0,o=this.lineHeightPx?this.lineHeightPx:10;switch(e.keyCode){case 33:t=this.state.containerHeight-o;break;case 34:t=-this.state.containerHeight+o;break;case 37:n=o;break;case 38:t=o;break;case 39:n=-o;break;case 40:t=-o}if(0!==t||0!==n){var r=this.composeNewState(n,t);e.preventDefault(),e.stopPropagation(),this.setStateFromEvent(r,S)}}}},{key:"handleWindowResize",value:function(){var e=this.computeSizes();e=this.getModifiedPositionsIfNeeded(e),this.setStateFromEvent(e)}},{key:"composeNewState",value:function(e,t){var n=this.computeSizes();return this.canScrollY(n)?n.topPosition=this.computeTopPosition(t,n):n.topPosition=0,this.canScrollX(n)&&(n.leftPosition=this.computeLeftPosition(e,n)),n}},{key:"computeTopPosition",value:function(e,t){var n=this.state.topPosition-e;return this.normalizeTopPosition(n,t)}},{key:"computeLeftPosition",value:function(e,t){var n=this.state.leftPosition-e;return this.normalizeLeftPosition(n,t)}},{key:"normalizeTopPosition",value:function(e,t){return e>t.realHeight-t.containerHeight&&(e=t.realHeight-t.containerHeight),e<0&&(e=0),e}},{key:"normalizeLeftPosition",value:function(e,t){return e>t.realWidth-t.containerWidth?e=t.realWidth-t.containerWidth:e<0&&(e=0),e}},{key:"computeSizes",value:function(){return{realHeight:this.content.offsetHeight,containerHeight:this.wrapper.offsetHeight,realWidth:this.content.offsetWidth,containerWidth:this.wrapper.offsetWidth}}},{key:"setSizesToState",value:function(){var e=this.computeSizes();e.realHeight===this.state.realHeight&&e.realWidth===this.state.realWidth||this.setStateFromEvent(this.getModifiedPositionsIfNeeded(e))}},{key:"scrollTop",value:function(){this.scrollYTo(0)}},{key:"scrollBottom",value:function(){this.scrollYTo(this.state.realHeight-this.state.containerHeight)}},{key:"scrollLeft",value:function(){this.scrollXTo(0)}},{key:"scrollRight",value:function(){this.scrollXTo(this.state.realWidth-this.state.containerWidth)}},{key:"scrollYTo",value:function(e){if(this.canScrollY()){var t=this.normalizeTopPosition(e,this.computeSizes());this.setStateFromEvent({topPosition:t},g)}}},{key:"scrollXTo",value:function(e){if(this.canScrollX()){var t=this.normalizeLeftPosition(e,this.computeSizes());this.setStateFromEvent({leftPosition:t},g)}}},{key:"canScrollY",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.state;return e.realHeight>e.containerHeight&&this.props.vertical}},{key:"canScrollX",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.state;return e.realWidth>e.containerWidth&&this.props.horizontal}},{key:"canScroll",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.state;return this.canScrollY(e)||this.canScrollX(e)}},{key:"getModifiedPositionsIfNeeded",value:function(e){var t=e.realHeight-e.containerHeight;this.state.topPosition>=t&&(e.topPosition=this.canScrollY(e)?(0,y.positiveOrZero)(t):0);var n=e.realWidth-e.containerWidth;return this.state.leftPosition>=n&&(e.leftPosition=this.canScrollX(e)?(0,y.positiveOrZero)(n):0),e}},{key:"focusContent",value:function(){this.content&&(0,y.findDOMNode)(this.content).focus()}}]),n}();(t.default=s).childContextTypes={scrollArea:i.default.object},s.propTypes={className:i.default.string,style:i.default.object,speed:i.default.number,contentClassName:i.default.string,contentStyle:i.default.object,vertical:i.default.bool,verticalContainerStyle:i.default.object,verticalScrollbarStyle:i.default.object,horizontal:i.default.bool,horizontalContainerStyle:i.default.object,horizontalScrollbarStyle:i.default.object,onScroll:i.default.func,contentWindow:i.default.any,ownerDocument:i.default.any,smoothScrolling:i.default.bool,minScrollSize:i.default.number,swapWheelAxes:i.default.bool,stopScrollPropagation:i.default.bool,focusableTabIndex:i.default.number},s.defaultProps={speed:1,vertical:!0,horizontal:!0,smoothScrolling:!1,swapWheelAxes:!1,contentWindow:"object"===("undefined"==typeof window?"undefined":r(window))?window:void 0,ownerDocument:"object"===("undefined"==typeof document?"undefined":r(document))?document:void 0,focusableTabIndex:1}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}}(),p=o(n(1)),a=o(n(2)),h=n(12),m=n(9),i=function(e){function o(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var t=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,(o.__proto__||Object.getPrototypeOf(o)).call(this,e)),n=t.calculateState(e);return t.state={position:n.position,scrollSize:n.scrollSize,isDragging:!1,lastClientPosition:0},"vertical"===e.type?t.bindedHandleMouseMove=t.handleMouseMoveForVertical.bind(t):t.bindedHandleMouseMove=t.handleMouseMoveForHorizontal.bind(t),t.bindedHandleMouseUp=t.handleMouseUp.bind(t),t}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)}(o,p.default.Component),r(o,[{key:"componentDidMount",value:function(){this.props.ownerDocument&&(this.props.ownerDocument.addEventListener("mousemove",this.bindedHandleMouseMove),this.props.ownerDocument.addEventListener("mouseup",this.bindedHandleMouseUp))}},{key:"componentWillReceiveProps",value:function(e){this.setState(this.calculateState(e))}},{key:"componentWillUnmount",value:function(){this.props.ownerDocument&&(this.props.ownerDocument.removeEventListener("mousemove",this.bindedHandleMouseMove),this.props.ownerDocument.removeEventListener("mouseup",this.bindedHandleMouseUp))}},{key:"calculateFractionalPosition",value:function(e,t,n){var o=e-t;return 1-(o-n)/o}},{key:"calculateState",value:function(e){var t=this.calculateFractionalPosition(e.realSize,e.containerSize,e.position),n=e.containerSize*e.containerSize/e.realSize,o=n<e.minScrollSize?e.minScrollSize:n,r=(e.containerSize-o)*t;return{scrollSize:o,position:Math.round(r)}}},{key:"render",value:function(){var t=this,e=this.props,n=e.smoothScrolling,o=e.isDragging,r=e.type,a=e.scrollbarStyle,i=e.containerStyle,l="horizontal"===r,s="vertical"===r,u=this.createScrollStyles(),c=n?(0,m.modifyObjValues)(u,function(e){return(0,h.spring)(e)}):u,f="scrollbar-container "+(o?"active":"")+" "+(l?"horizontal":"")+" "+(s?"vertical":"");return p.default.createElement(h.Motion,{style:c},function(e){return p.default.createElement("div",{className:f,style:i,onMouseDown:t.handleScrollBarContainerClick.bind(t),ref:function(e){return t.scrollbarContainer=e}},p.default.createElement("div",{className:"scrollbar",style:d({},a,e),onMouseDown:t.handleMouseDown.bind(t)}))})}},{key:"handleScrollBarContainerClick",value:function(e){e.preventDefault();var t=this.computeMultiplier(),n=this.isVertical()?e.clientY:e.clientX,o=this.scrollbarContainer.getBoundingClientRect(),r=o.top,a=o.left,i=n-(this.isVertical()?r:a),l=this.props.containerSize*this.props.containerSize/this.props.realSize;this.setState({isDragging:!0,lastClientPosition:n}),this.props.onPositionChange((i-l/2)/t)}},{key:"handleMouseMoveForHorizontal",value:function(e){var t=this.computeMultiplier();if(this.state.isDragging){e.preventDefault();var n=this.state.lastClientPosition-e.clientX;this.setState({lastClientPosition:e.clientX}),this.props.onMove(0,n/t)}}},{key:"handleMouseMoveForVertical",value:function(e){var t=this.computeMultiplier();if(this.state.isDragging){e.preventDefault();var n=this.state.lastClientPosition-e.clientY;this.setState({lastClientPosition:e.clientY}),this.props.onMove(n/t,0)}}},{key:"handleMouseDown",value:function(e){e.preventDefault(),e.stopPropagation();var t=this.isVertical()?e.clientY:e.clientX;this.setState({isDragging:!0,lastClientPosition:t}),this.props.onFocus()}},{key:"handleMouseUp",value:function(e){this.state.isDragging&&(e.preventDefault(),this.setState({isDragging:!1}))}},{key:"createScrollStyles",value:function(){return"vertical"===this.props.type?{height:this.state.scrollSize,marginTop:this.state.position}:{width:this.state.scrollSize,marginLeft:this.state.position}}},{key:"computeMultiplier",value:function(){return this.props.containerSize/this.props.realSize}},{key:"isVertical",value:function(){return"vertical"===this.props.type}}]),o}();i.propTypes={onMove:a.default.func,onPositionChange:a.default.func,onFocus:a.default.func,realSize:a.default.number,containerSize:a.default.number,position:a.default.number,containerStyle:a.default.object,scrollbarStyle:a.default.object,type:a.default.oneOf(["vertical","horizontal"]),ownerDocument:a.default.any,smoothScrolling:a.default.bool,minScrollSize:a.default.number},i.defaultProps={type:"vertical",smoothScrolling:!1},t.default=i},function(e,t){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,function(e,t){return t.toUpperCase()})]}},function(e,t,n){var s=n(15);e.exports=function(e){var t=s(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var o=e.style.lineHeight;e.style.lineHeight=t+"em",t=s(e,"line-height"),n=parseFloat(t,10),o?e.style.lineHeight=o:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var r=e.nodeName,a=document.createElement(r);a.innerHTML="&nbsp;";var i=s(e,"font-size");a.style.fontSize=i;var l=document.body;l.appendChild(a),n=a.offsetHeight,l.removeChild(a)}return n}},function(e,t,n){"use strict";var o=n(19),i=n(20),l=n(18);e.exports=function(){function e(e,t,n,o,r,a){a!==l&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}var n={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,n.PropTypes=n}},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){"use strict";function n(e){return function(){return e}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";e.exports=function(e,t,n,o,r,a,i,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,o,r,a,i,l],c=0;(s=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(l,e,t){(function(i){(function(){var e,t,n,o,r,a;"undefined"!=typeof performance&&null!==performance&&performance.now?l.exports=function(){return performance.now()}:null!=i&&i.hrtime?(l.exports=function(){return(e()-r)/1e6},t=i.hrtime,o=(e=function(){var e;return 1e9*(e=t())[0]+e[1]})(),a=1e9*i.uptime(),r=o-a):n=Date.now?(l.exports=function(){return Date.now()-n},Date.now()):(l.exports=function(){return(new Date).getTime()-n},(new Date).getTime())}).call(this)}).call(e,t(10))},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}}(),a=o(n(6)),i=o(n(3)),E=o(n(8)),S=o(n(4)),l=o(n(5)),_=o(n(7)),s=o(n(1)),c=o(n(2)),T=1e3/60,f=function(t){function n(e){var g=this;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n),t.call(this,e),this.wasAnimating=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyle=null,this.clearUnreadPropStyle=function(e){var t=!1,n=g.state,o=n.currentStyle,r=n.currentVelocity,a=n.lastIdealStyle,i=n.lastIdealVelocity;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var s=e[l];"number"==typeof s&&(t||(t=!0,o=u({},o),r=u({},r),a=u({},a),i=u({},i)),o[l]=s,r[l]=0,a[l]=s,i[l]=0)}t&&g.setState({currentStyle:o,currentVelocity:r,lastIdealStyle:a,lastIdealVelocity:i})},this.startAnimationIfNecessary=function(){g.animationID=l.default(function(e){var t=g.props.style;if(_.default(g.state.currentStyle,t,g.state.currentVelocity))return g.wasAnimating&&g.props.onRest&&g.props.onRest(),g.animationID=null,g.wasAnimating=!1,void(g.accumulatedTime=0);g.wasAnimating=!0;var n=e||S.default(),o=n-g.prevTime;if(g.prevTime=n,g.accumulatedTime=g.accumulatedTime+o,g.accumulatedTime>10*T&&(g.accumulatedTime=0),0===g.accumulatedTime)return g.animationID=null,void g.startAnimationIfNecessary();var r=(g.accumulatedTime-Math.floor(g.accumulatedTime/T)*T)/T,a=Math.floor(g.accumulatedTime/T),i={},l={},s={},u={};for(var c in t)if(Object.prototype.hasOwnProperty.call(t,c)){var f=t[c];if("number"==typeof f)s[c]=f,u[c]=0,i[c]=f,l[c]=0;else{for(var d=g.state.lastIdealStyle[c],p=g.state.lastIdealVelocity[c],h=0;h<a;h++){var m=E.default(T/1e3,d,p,f.val,f.stiffness,f.damping,f.precision);d=m[0],p=m[1]}var y=E.default(T/1e3,d,p,f.val,f.stiffness,f.damping,f.precision),b=y[0],v=y[1];s[c]=d+(b-d)*r,u[c]=p+(v-p)*r,i[c]=d,l[c]=p}}g.animationID=null,g.accumulatedTime-=a*T,g.setState({currentStyle:s,currentVelocity:u,lastIdealStyle:i,lastIdealVelocity:l}),g.unreadPropStyle=null,g.startAnimationIfNecessary()})},this.state=this.defaultState()}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)}(n,t),r(n,null,[{key:"propTypes",value:{defaultStyle:c.default.objectOf(c.default.number),style:c.default.objectOf(c.default.oneOfType([c.default.number,c.default.object])).isRequired,children:c.default.func.isRequired,onRest:c.default.func},enumerable:!0}]),n.prototype.defaultState=function(){var e=this.props,t=e.defaultStyle,n=e.style,o=t||i.default(n),r=a.default(o);return{currentStyle:o,currentVelocity:r,lastIdealStyle:o,lastIdealVelocity:r}},n.prototype.componentDidMount=function(){this.prevTime=S.default(),this.startAnimationIfNecessary()},n.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyle&&this.clearUnreadPropStyle(this.unreadPropStyle),this.unreadPropStyle=e.style,null==this.animationID&&(this.prevTime=S.default(),this.startAnimationIfNecessary())},n.prototype.componentWillUnmount=function(){null!=this.animationID&&(l.default.cancel(this.animationID),this.animationID=null)},n.prototype.render=function(){var e=this.props.children(this.state.currentStyle);return e&&s.default.Children.only(e)},n}(s.default.Component);t.default=f,e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}}(),a=o(n(6)),i=o(n(3)),A=o(n(8)),N=o(n(4)),l=o(n(5)),w=o(n(7)),s=o(n(1)),u=o(n(2)),R=1e3/60,c=function(t){function n(e){var C=this;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n),t.call(this,e),this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=C.state,n=t.currentStyles,o=t.currentVelocities,r=t.lastIdealStyles,a=t.lastIdealVelocities,i=!1,l=0;l<e.length;l++){var s=e[l],u=!1;for(var c in s)if(Object.prototype.hasOwnProperty.call(s,c)){var f=s[c];"number"==typeof f&&(u||(i=u=!0,n[l]=d({},n[l]),o[l]=d({},o[l]),r[l]=d({},r[l]),a[l]=d({},a[l])),n[l][c]=f,o[l][c]=0,r[l][c]=f,a[l][c]=0)}}i&&C.setState({currentStyles:n,currentVelocities:o,lastIdealStyles:r,lastIdealVelocities:a})},this.startAnimationIfNecessary=function(){C.animationID=l.default(function(e){var t=C.props.styles(C.state.lastIdealStyles);if(function(e,t,n){for(var o=0;o<e.length;o++)if(!w.default(e[o],t[o],n[o]))return!1;return!0}(C.state.currentStyles,t,C.state.currentVelocities))return C.animationID=null,void(C.accumulatedTime=0);var n=e||N.default(),o=n-C.prevTime;if(C.prevTime=n,C.accumulatedTime=C.accumulatedTime+o,C.accumulatedTime>10*R&&(C.accumulatedTime=0),0===C.accumulatedTime)return C.animationID=null,void C.startAnimationIfNecessary();for(var r=(C.accumulatedTime-Math.floor(C.accumulatedTime/R)*R)/R,a=Math.floor(C.accumulatedTime/R),i=[],l=[],s=[],u=[],c=0;c<t.length;c++){var f=t[c],d={},p={},h={},m={};for(var y in f)if(Object.prototype.hasOwnProperty.call(f,y)){var b=f[y];if("number"==typeof b)d[y]=b,p[y]=0,h[y]=b,m[y]=0;else{for(var v=C.state.lastIdealStyles[c][y],g=C.state.lastIdealVelocities[c][y],E=0;E<a;E++){var S=A.default(R/1e3,v,g,b.val,b.stiffness,b.damping,b.precision);v=S[0],g=S[1]}var _=A.default(R/1e3,v,g,b.val,b.stiffness,b.damping,b.precision),T=_[0],O=_[1];d[y]=v+(T-v)*r,p[y]=g+(O-g)*r,h[y]=v,m[y]=g}}s[c]=d,u[c]=p,i[c]=h,l[c]=m}C.animationID=null,C.accumulatedTime-=a*R,C.setState({currentStyles:s,currentVelocities:u,lastIdealStyles:i,lastIdealVelocities:l}),C.unreadPropStyles=null,C.startAnimationIfNecessary()})},this.state=this.defaultState()}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)}(n,t),r(n,null,[{key:"propTypes",value:{defaultStyles:u.default.arrayOf(u.default.objectOf(u.default.number)),styles:u.default.func.isRequired,children:u.default.func.isRequired},enumerable:!0}]),n.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,n=e.styles,o=t||n().map(i.default),r=o.map(function(e){return a.default(e)});return{currentStyles:o,currentVelocities:r,lastIdealStyles:o,lastIdealVelocities:r}},n.prototype.componentDidMount=function(){this.prevTime=N.default(),this.startAnimationIfNecessary()},n.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles),this.unreadPropStyles=e.styles(this.state.lastIdealStyles),null==this.animationID&&(this.prevTime=N.default(),this.startAnimationIfNecessary())},n.prototype.componentWillUnmount=function(){null!=this.animationID&&(l.default.cancel(this.animationID),this.animationID=null)},n.prototype.render=function(){var e=this.props.children(this.state.currentStyles);return e&&s.default.Children.only(e)},n}(s.default.Component);t.default=c,e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function R(e,t,o){var r=t;return null==r?e.map(function(e,t){return{key:e.key,data:e.data,style:o[t]}}):e.map(function(e,t){for(var n=0;n<r.length;n++)if(r[n].key===e.key)return{key:r[n].key,data:r[n].data,style:o[t]};return{key:e.key,data:e.data,style:o[t]}})}function P(e,o,r,t,n,a,i,l,s){for(var u=S.default(t,n,function(e,t){var n=o(t);return null==n?(r({key:t.key,data:t.data}),null):L.default(a[e],n,i[e])?(r({key:t.key,data:t.data}),null):{key:t.key,data:t.data,style:n}}),c=[],f=[],d=[],p=[],h=0;h<u.length;h++){for(var m=u[h],y=null,b=0;b<t.length;b++)if(t[b].key===m.key){y=b;break}if(null==y){var v=e(m);c[h]=v,d[h]=v;var g=E.default(m.style);f[h]=g,p[h]=g}else c[h]=a[y],d[h]=l[y],f[h]=i[y],p[h]=s[y]}return[u,c,f,d,p]}t.__esModule=!0;var d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}}(),E=o(n(6)),p=o(n(3)),k=o(n(8)),S=o(n(25)),I=o(n(4)),a=o(n(5)),L=o(n(7)),i=o(n(1)),l=o(n(2)),D=1e3/60,s=function(t){function n(e){var w=this;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n),t.call(this,e),this.unmounting=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=P(w.props.willEnter,w.props.willLeave,w.props.didLeave,w.state.mergedPropsStyles,e,w.state.currentStyles,w.state.currentVelocities,w.state.lastIdealStyles,w.state.lastIdealVelocities),n=t[0],o=t[1],r=t[2],a=t[3],i=t[4],l=0;l<e.length;l++){var s=e[l].style,u=!1;for(var c in s)if(Object.prototype.hasOwnProperty.call(s,c)){var f=s[c];"number"==typeof f&&(u||(u=!0,o[l]=d({},o[l]),r[l]=d({},r[l]),a[l]=d({},a[l]),i[l]=d({},i[l]),n[l]={key:n[l].key,data:n[l].data,style:d({},n[l].style)}),o[l][c]=f,r[l][c]=0,a[l][c]=f,i[l][c]=0,n[l].style[c]=f)}}w.setState({currentStyles:o,currentVelocities:r,mergedPropsStyles:n,lastIdealStyles:a,lastIdealVelocities:i})},this.startAnimationIfNecessary=function(){w.unmounting||(w.animationID=a.default(function(e){if(!w.unmounting){var t=w.props.styles,n="function"==typeof t?t(R(w.state.mergedPropsStyles,w.unreadPropStyles,w.state.lastIdealStyles)):t;if(function(e,t,n,o){if(o.length!==t.length)return!1;for(var r=0;r<o.length;r++)if(o[r].key!==t[r].key)return!1;for(r=0;r<o.length;r++)if(!L.default(e[r],t[r].style,n[r]))return!1;return!0}(w.state.currentStyles,n,w.state.currentVelocities,w.state.mergedPropsStyles))return w.animationID=null,void(w.accumulatedTime=0);var o=e||I.default(),r=o-w.prevTime;if(w.prevTime=o,w.accumulatedTime=w.accumulatedTime+r,w.accumulatedTime>10*D&&(w.accumulatedTime=0),0===w.accumulatedTime)return w.animationID=null,void w.startAnimationIfNecessary();for(var a=(w.accumulatedTime-Math.floor(w.accumulatedTime/D)*D)/D,i=Math.floor(w.accumulatedTime/D),l=P(w.props.willEnter,w.props.willLeave,w.props.didLeave,w.state.mergedPropsStyles,n,w.state.currentStyles,w.state.currentVelocities,w.state.lastIdealStyles,w.state.lastIdealVelocities),s=l[0],u=l[1],c=l[2],f=l[3],d=l[4],p=0;p<s.length;p++){var h=s[p].style,m={},y={},b={},v={};for(var g in h)if(Object.prototype.hasOwnProperty.call(h,g)){var E=h[g];if("number"==typeof E)m[g]=E,y[g]=0,b[g]=E,v[g]=0;else{for(var S=f[p][g],_=d[p][g],T=0;T<i;T++){var O=k.default(D/1e3,S,_,E.val,E.stiffness,E.damping,E.precision);S=O[0],_=O[1]}var C=k.default(D/1e3,S,_,E.val,E.stiffness,E.damping,E.precision),A=C[0],N=C[1];m[g]=S+(A-S)*a,y[g]=_+(N-_)*a,b[g]=S,v[g]=_}}f[p]=b,d[p]=v,u[p]=m,c[p]=y}w.animationID=null,w.accumulatedTime-=i*D,w.setState({currentStyles:u,currentVelocities:c,lastIdealStyles:f,lastIdealVelocities:d,mergedPropsStyles:s}),w.unreadPropStyles=null,w.startAnimationIfNecessary()}}))},this.state=this.defaultState()}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)}(n,t),r(n,null,[{key:"propTypes",value:{defaultStyles:l.default.arrayOf(l.default.shape({key:l.default.string.isRequired,data:l.default.any,style:l.default.objectOf(l.default.number).isRequired})),styles:l.default.oneOfType([l.default.func,l.default.arrayOf(l.default.shape({key:l.default.string.isRequired,data:l.default.any,style:l.default.objectOf(l.default.oneOfType([l.default.number,l.default.object])).isRequired}))]).isRequired,children:l.default.func.isRequired,willEnter:l.default.func,willLeave:l.default.func,didLeave:l.default.func},enumerable:!0},{key:"defaultProps",value:{willEnter:function(e){return p.default(e.style)},willLeave:function(){return null},didLeave:function(){}},enumerable:!0}]),n.prototype.defaultState=function(){var e,t=this.props,n=t.defaultStyles,o=t.styles,r=t.willEnter,a=t.willLeave,i=t.didLeave,l="function"==typeof o?o(n):o;e=null==n?l:n.map(function(e){for(var t=0;t<l.length;t++)if(l[t].key===e.key)return l[t];return e});var s=null==n?l.map(function(e){return p.default(e.style)}):n.map(function(e){return p.default(e.style)}),u=null==n?l.map(function(e){return E.default(e.style)}):n.map(function(e){return E.default(e.style)}),c=P(r,a,i,e,l,s,u,s,u),f=c[0];return{currentStyles:c[1],currentVelocities:c[2],lastIdealStyles:c[3],lastIdealVelocities:c[4],mergedPropsStyles:f}},n.prototype.componentDidMount=function(){this.prevTime=I.default(),this.startAnimationIfNecessary()},n.prototype.componentWillReceiveProps=function(e){this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles);var t=e.styles;this.unreadPropStyles="function"==typeof t?t(R(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.lastIdealStyles)):t,null==this.animationID&&(this.prevTime=I.default(),this.startAnimationIfNecessary())},n.prototype.componentWillUnmount=function(){this.unmounting=!0,null!=this.animationID&&(a.default.cancel(this.animationID),this.animationID=null)},n.prototype.render=function(){var e=R(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.currentStyles),t=this.props.children(e);return t&&i.default.Children.only(t)},n}(i.default.Component);t.default=s,e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,s,t){for(var u={},n=0;n<e.length;n++)u[e[n].key]=n;var c={};for(n=0;n<s.length;n++)c[s[n].key]=n;var o=[];for(n=0;n<s.length;n++)o[n]=s[n];for(n=0;n<e.length;n++)if(!Object.prototype.hasOwnProperty.call(c,e[n].key)){var r=t(n,e[n]);null!=r&&o.push(r)}return o.sort(function(e,t){var n=c[e.key],o=c[t.key],r=u[e.key],a=u[t.key];if(null!=n&&null!=o)return c[e.key]-c[t.key];if(null!=r&&null!=a)return u[e.key]-u[t.key];if(null!=n){for(var i=0;i<s.length;i++){var l=s[i].key;if(Object.prototype.hasOwnProperty.call(u,l)){if(n<c[l]&&a>u[l])return-1;if(n>c[l]&&a<u[l])return 1}}return 1}for(i=0;i<s.length;i++)if(l=s[i].key,Object.prototype.hasOwnProperty.call(u,l)){if(o<c[l]&&r>u[l])return 1;if(o>c[l]&&r<u[l])return-1}return-1})},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};t.default=function(e,t){return o({},l,t,{val:e})};var r,a=n(11),i=(r=a)&&r.__esModule?r:{default:r},l=o({},i.default.noWobble,{precision:.01});e.exports=t.default}])},"object"==typeof n&&"object"==typeof t?t.exports=r(e("react")):"function"==typeof define&&define.amd?define(["react"],r):"object"==typeof n?n.ScrollArea=r(e("react")):o.ScrollArea=r(o.React)},{react:382}],380:[function(e,t,n){"use strict"},{"object-assign":369,"prop-types/checkPropTypes":371}],381:[function(e,t,n){"use strict";var c=e("object-assign"),o="function"==typeof Symbol&&Symbol.for,f=o?Symbol.for("react.element"):60103,u=o?Symbol.for("react.portal"):60106,r=o?Symbol.for("react.fragment"):60107,a=o?Symbol.for("react.strict_mode"):60108,i=o?Symbol.for("react.profiler"):60114,l=o?Symbol.for("react.provider"):60109,s=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.async_mode"):60111,p=o?Symbol.for("react.forward_ref"):60112;o&&Symbol.for("react.placeholder");var h="function"==typeof Symbol&&Symbol.iterator;function m(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=0;o<t;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);!function(e,t,n,o,r,a,i,l){if(!e){if((e=void 0)===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,o,r,a,i,l],u=0;(e=Error(t.replace(/%s/g,function(){return s[u++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function v(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function g(){}function E(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&m("85"),this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var S=E.prototype=new g;S.constructor=E,c(S,v.prototype),S.isPureReactComponent=!0;var _={current:null,currentDispatcher:null},T=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var o=void 0,r={},a=null,i=null;if(null!=t)for(o in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)T.call(t,o)&&!O.hasOwnProperty(o)&&(r[o]=t[o]);var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===r[o]&&(r[o]=l[o]);return{$$typeof:f,type:e,key:a,ref:i,props:r,_owner:_.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===f}var N=/\/+/g,w=[];function R(e,t,n,o){if(w.length){var r=w.pop();return r.result=e,r.keyPrefix=t,r.func=n,r.context=o,r.count=0,r}return{result:e,keyPrefix:t,func:n,context:o,count:0}}function P(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,w.length<10&&w.push(e)}function k(e,t,n){return null==e?0:function e(t,n,o,r){var a=typeof t;"undefined"!==a&&"boolean"!==a||(t=null);var i=!1;if(null===t)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case f:case u:i=!0}}if(i)return o(r,t,""===n?"."+I(t,0):n),1;if(i=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;l<t.length;l++){var s=n+I(a=t[l],l);i+=e(a,s,o,r)}else if("function"==typeof(s=null===t||"object"!=typeof t?null:"function"==typeof(s=h&&t[h]||t["@@iterator"])?s:null))for(t=s.call(t),l=0;!(a=t.next()).done;)i+=e(a=a.value,s=n+I(a,l++),o,r);else"object"===a&&m("31","[object Object]"==(o=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":o,"");return i}(e,"",t,n)}function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=e.key,o={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,function(e){return o[e]})):t.toString(36);var n,o}function L(e,t){e.func.call(e.context,t,e.count++)}function D(e,t,n){var o,r,a=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?x(e,a,n,function(e){return e}):null!=e&&(A(e)&&(r=i+(!(o=e).key||t&&t.key===e.key?"":(""+e.key).replace(N,"$&/")+"/")+n,e={$$typeof:f,type:o.type,key:r,ref:o.ref,props:o.props,_owner:o._owner}),a.push(e))}function x(e,t,n,o,r){var a="";null!=n&&(a=(""+n).replace(N,"$&/")+"/"),k(e,D,t=R(t,a,o,r)),P(t)}var M={Children:{map:function(e,t,n){if(null==e)return e;var o=[];return x(e,o,null,t,n),o},forEach:function(e,t,n){if(null==e)return e;k(e,L,t=R(null,null,t,n)),P(t)},count:function(e){return k(e,function(){return null},null)},toArray:function(e){var t=[];return x(e,t,null,function(e){return e}),t},only:function(e){return A(e)||m("143"),e}},createRef:function(){return{current:null}},Component:v,PureComponent:E,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,Provider:null,Consumer:null,unstable_read:null}).Provider={$$typeof:l,_context:e},(e.Consumer=e).unstable_read=function(e,t){var n=_.currentDispatcher;return null===n&&m("277"),n.readContext(e,t)}.bind(null,e),e},forwardRef:function(e){return{$$typeof:p,render:e}},Fragment:r,StrictMode:a,unstable_AsyncMode:d,unstable_Profiler:i,createElement:C,cloneElement:function(e,t,n){null==e&&m("267",e);var o=void 0,r=c({},e.props),a=e.key,i=e.ref,l=e._owner;if(null!=t){void 0!==t.ref&&(i=t.ref,l=_.current),void 0!==t.key&&(a=""+t.key);var s=void 0;for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)T.call(t,o)&&!O.hasOwnProperty(o)&&(r[o]=void 0===t[o]&&void 0!==s?s[o]:t[o])}if(1===(o=arguments.length-2))r.children=n;else if(1<o){s=Array(o);for(var u=0;u<o;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:f,type:e.type,key:a,ref:i,props:r,_owner:l}},createFactory:function(e){var t=C.bind(null,e);return t.type=e,t},isValidElement:A,version:"16.5.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:_,assign:c}},V=M;t.exports=V.default||V},{"object-assign":369}],382:[function(e,t,n){"use strict";t.exports=e("./cjs/react.production.min.js")},{"./cjs/react.development.js":380,"./cjs/react.production.min.js":381}],383:[function(e,I,t){!function(e){"use strict";var s,t=Object.prototype,u=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag",i="object"==typeof I,l=e.regeneratorRuntime;if(l)i&&(I.exports=l);else{(l=e.regeneratorRuntime=i?I.exports:{}).wrap=g;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",m={},c={};c[r]=function(){return this};var y=Object.getPrototypeOf,b=y&&y(y(P([])));b&&b!==t&&u.call(b,r)&&(c=b);var v=T.prototype=S.prototype=Object.create(c);_.prototype=v.constructor=T,T.constructor=_,T[a]=_.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,T):(e.__proto__=T,a in e||(e[a]="GeneratorFunction")),e.prototype=Object.create(v),e},l.awrap=function(e){return{__await:e}},O(C.prototype),C.prototype[o]=function(){return this},l.AsyncIterator=C,l.async=function(e,t,n,o){var r=new C(g(e,t,n,o));return l.isGeneratorFunction(t)?r:r.next().then(function(e){return e.done?e.value:r.next()})},O(v),v[a]="Generator",v[r]=function(){return this},v.toString=function(){return"[object Generator]"},l.keys=function(n){var o=[];for(var e in n)o.push(e);return o.reverse(),function e(){for(;o.length;){var t=o.pop();if(t in n)return e.value=t,e.done=!1,e}return e.done=!0,e}},l.values=P,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=s,this.done=!1,this.delegate=null,this.method="next",this.arg=s,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&u.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=s)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var o=this;function e(e,t){return a.type="throw",a.arg=n,o.next=e,t&&(o.method="next",o.arg=s),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t],a=r.completion;if("root"===r.tryLoc)return e("end");if(r.tryLoc<=this.prev){var i=u.call(r,"catchLoc"),l=u.call(r,"finallyLoc");if(i&&l){if(this.prev<r.catchLoc)return e(r.catchLoc,!0);if(this.prev<r.finallyLoc)return e(r.finallyLoc)}else if(i){if(this.prev<r.catchLoc)return e(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return e(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&u.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;w(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=s),m}}}function g(e,t,n,o){var a,i,l,s,r=t&&t.prototype instanceof S?t:S,u=Object.create(r.prototype),c=new R(o||[]);return u._invoke=(a=e,i=n,l=c,s=f,function(e,t){if(s===p)throw new Error("Generator is already running");if(s===h){if("throw"===e)throw t;return k()}for(l.method=e,l.arg=t;;){var n=l.delegate;if(n){var o=A(n,l);if(o){if(o===m)continue;return o}}if("next"===l.method)l.sent=l._sent=l.arg;else if("throw"===l.method){if(s===f)throw s=h,l.arg;l.dispatchException(l.arg)}else"return"===l.method&&l.abrupt("return",l.arg);s=p;var r=E(a,i,l);if("normal"===r.type){if(s=l.done?h:d,r.arg===m)continue;return{value:r.arg,done:l.done}}"throw"===r.type&&(s=h,l.method="throw",l.arg=r.arg)}}),u}function E(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function S(){}function _(){}function T(){}function O(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function C(s){var t;this._invoke=function(n,o){function e(){return new Promise(function(e,t){!function t(e,n,o,r){var a=E(s[e],s,n);if("throw"!==a.type){var i=a.arg,l=i.value;return l&&"object"==typeof l&&u.call(l,"__await")?Promise.resolve(l.__await).then(function(e){t("next",e,o,r)},function(e){t("throw",e,o,r)}):Promise.resolve(l).then(function(e){i.value=e,o(i)},r)}r(a.arg)}(n,o,e,t)})}return t=t?t.then(e,e):e()}}function A(e,t){var n=e.iterator[t.method];if(n===s){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=s,A(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=E(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,m;var r=o.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=s),t.delegate=null,m):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function P(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(u.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=s,e.done=!0,e};return o.next=o}}return{next:k}}function k(){return{value:s,done:!0}}}(function(){return this}()||Function("return this")())},{}],384:[function(e,t,c){(function(e){"use strict";"production"!==e.env.NODE_ENV&&function(){Object.defineProperty(c,"__esModule",{value:!0});var u=0,e=0;c.__interactionsRef=null,c.__subscriberRef=null,c.__interactionsRef={current:new Set},c.__subscriberRef={current:null};var a=null;function t(t){var n=!1,o=null;if(a.forEach(function(e){try{e.onInteractionTraced(t)}catch(e){n||(n=!0,o=e)}}),n)throw o}function n(t){var n=!1,o=null;if(a.forEach(function(e){try{e.onInteractionScheduledWorkCompleted(t)}catch(e){n||(n=!0,o=e)}}),n)throw o}function o(t,n){var o=!1,r=null;if(a.forEach(function(e){try{e.onWorkScheduled(t,n)}catch(e){o||(o=!0,r=e)}}),o)throw r}function r(t,n){var o=!1,r=null;if(a.forEach(function(e){try{e.onWorkStarted(t,n)}catch(e){o||(o=!0,r=e)}}),o)throw r}function i(t,n){var o=!1,r=null;if(a.forEach(function(e){try{e.onWorkStopped(t,n)}catch(e){o||(o=!0,r=e)}}),o)throw r}function l(t,n){var o=!1,r=null;if(a.forEach(function(e){try{e.onWorkCanceled(t,n)}catch(e){o||(o=!0,r=e)}}),o)throw r}a=new Set,c.unstable_clear=function(e){var t=c.__interactionsRef.current;c.__interactionsRef.current=new Set;try{return e()}finally{c.__interactionsRef.current=t}},c.unstable_getCurrent=function(){return c.__interactionsRef.current},c.unstable_getThreadID=function(){return++e},c.unstable_trace=function(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,r={__count:1,id:u++,name:e,timestamp:t},a=c.__interactionsRef.current,i=new Set(a);i.add(r),c.__interactionsRef.current=i;var l=c.__subscriberRef.current,s=void 0;try{null!==l&&l.onInteractionTraced(r)}finally{try{null!==l&&l.onWorkStarted(i,o)}finally{try{s=n()}finally{c.__interactionsRef.current=a;try{null!==l&&l.onWorkStopped(i,o)}finally{r.__count--,null!==l&&0===r.__count&&l.onInteractionScheduledWorkCompleted(r)}}}}return s},c.unstable_wrap=function(n){var o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=c.__interactionsRef.current,a=c.__subscriberRef.current;null!==a&&a.onWorkScheduled(r,o),r.forEach(function(e){e.__count++});var i=!1;function e(){var e=c.__interactionsRef.current;c.__interactionsRef.current=r,a=c.__subscriberRef.current;try{var t=void 0;try{null!==a&&a.onWorkStarted(r,o)}finally{try{t=n.apply(void 0,arguments)}finally{c.__interactionsRef.current=e,null!==a&&a.onWorkStopped(r,o)}}return t}finally{i||(i=!0,r.forEach(function(e){e.__count--,null!==a&&0===e.__count&&a.onInteractionScheduledWorkCompleted(e)}))}}return e.cancel=function(){a=c.__subscriberRef.current;try{null!==a&&a.onWorkCanceled(r,o)}finally{r.forEach(function(e){e.__count--,a&&0===e.__count&&a.onInteractionScheduledWorkCompleted(e)})}},e},c.unstable_subscribe=function(e){a.add(e),1===a.size&&(c.__subscriberRef.current={onInteractionScheduledWorkCompleted:n,onInteractionTraced:t,onWorkCanceled:l,onWorkScheduled:o,onWorkStarted:r,onWorkStopped:i})},c.unstable_unsubscribe=function(e){a.delete(e),0===a.size&&(c.__subscriberRef.current=null)}}()}).call(this,e("_process"))},{_process:370}],385:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=0;n.__interactionsRef=null,n.__subscriberRef=null,n.unstable_clear=function(e){return e()},n.unstable_getCurrent=function(){return null},n.unstable_getThreadID=function(){return++o},n.unstable_trace=function(e,t,n){return n()},n.unstable_wrap=function(e){return e},n.unstable_subscribe=function(){},n.unstable_unsubscribe=function(){}},{}],386:[function(e,t,I){(function(e){"use strict";"production"!==e.env.NODE_ENV&&function(){Object.defineProperty(I,"__esModule",{value:!0});var s=null,n=!1,o=!1,e="object"==typeof performance&&"function"==typeof performance.now,r={timeRemaining:e?function(){var e=d()-performance.now();return 0<e?e:0}:function(){var e=d()-Date.now();return 0<e?e:0},didTimeout:!1};function u(){if(!n){var e=s.timesOutAt;o?f():o=!0,c(t,e)}}function a(e){var t=s,n=s.next;if(s===n)n=s=null;else{var o=s.previous;s=o.next=n,n.previous=o}t.next=t.previous=null,(0,t.callback)(r)}function t(e){n=!0,r.didTimeout=e;try{if(e)for(;null!==s;){var t=I.unstable_now();if(!(s.timesOutAt<=t))break;for(;a(),null!==s&&s.timesOutAt<=t;);}else if(null!==s)for(;a(),null!==s&&0<d()-I.unstable_now(););}finally{n=!1,null!==s?u():o=!1}}var i,l,c,f,d,p=Date,h="function"==typeof setTimeout?setTimeout:void 0,m="function"==typeof clearTimeout?clearTimeout:void 0,y="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,b="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0,v=function(t){i=y(function(e){m(l),t(e)}),l=h(function(){b(i),t(I.unstable_now())},100)};if(e){var g=performance;I.unstable_now=function(){return g.now()}}else I.unstable_now=function(){return p.now()};if("undefined"==typeof window){var E=-1;c=function(e,t){E=setTimeout(e,0,!0)},f=function(){clearTimeout(E)},d=function(){return 0}}else if(window._schedMock){var S=window._schedMock;c=S[0],f=S[1],d=S[2]}else{"undefined"!=typeof console&&("function"!=typeof y&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var _=null,T=!1,O=-1,C=!1,A=!1,N=0,w=33,R=33;d=function(){return N};var P="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(e){if(e.source===window&&e.data===P){T=!1;var t=I.unstable_now(),n=!1;if(N-t<=0){if(!(-1!==O&&O<=t))return void(C||(C=!0,v(k)));n=!0}O=-1;var o=_;if((_=null)!==o){A=!0;try{o(n)}finally{A=!1}}}},!1);var k=function(e){C=!1;var t=e-N+R;t<R&&w<R?(t<8&&(t=8),R=t<w?w:t):w=t,N=e+R,T||(T=!0,window.postMessage(P,"*"))};c=function(e,t){_=e,O=t,A?window.postMessage(P,"*"):C||(C=!0,v(k))},f=function(){_=null,T=!1,O=-1}}I.unstable_scheduleWork=function(e,t){var n,o=I.unstable_now(),r={callback:e,timesOutAt:n=null!=t&&null!==t.timeout&&void 0!==t.timeout?o+t.timeout:o+5e3,next:null,previous:null};if(null===s)s=r.next=r.previous=r,u();else{var a=null,i=s;do{if(i.timesOutAt>n){a=i;break}i=i.next}while(i!==s);null===a?a=s:a===s&&(s=r,u());var l=a.previous;l.next=a.previous=r,r.next=a,r.previous=l}return r},I.unstable_cancelScheduledWork=function(e){var t=e.next;if(null!==t){if(t===e)s=null;else{e===s&&(s=t);var n=e.previous;(n.next=t).previous=n}e.next=e.previous=null}}}()}).call(this,e("_process"))},{_process:370}],387:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=null,n=!1,o=!1,i="object"==typeof performance&&"function"==typeof performance.now,l={timeRemaining:i?function(){var e=m()-performance.now();return 0<e?e:0}:function(){var e=m()-Date.now();return 0<e?e:0},didTimeout:!1};function s(){if(!n){var e=a.timesOutAt;o?h():o=!0,p(c,e)}}function u(){var e=a,t=a.next;if(a===t)a=null;else{var n=a.previous;a=n.next=t,t.previous=n}e.next=e.previous=null,(e=e.callback)(l)}function c(e){n=!0,l.didTimeout=e;try{if(e)for(;null!==a;){var t=r.unstable_now();if(!(a.timesOutAt<=t))break;for(;u(),null!==a&&a.timesOutAt<=t;);}else if(null!==a)for(;u(),null!==a&&0<m()-r.unstable_now(););}finally{n=!1,null!==a?s():o=!1}}var f,d,p,h,m,y=Date,b="function"==typeof setTimeout?setTimeout:void 0,v="function"==typeof clearTimeout?clearTimeout:void 0,g="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,E="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function S(t){f=g(function(e){v(d),t(e)}),d=b(function(){E(f),t(r.unstable_now())},100)}if(i){var _=performance;r.unstable_now=function(){return _.now()}}else r.unstable_now=function(){return y.now()};if("undefined"==typeof window){var T=-1;p=function(e){T=setTimeout(e,0,!0)},h=function(){clearTimeout(T)},m=function(){return 0}}else if(window._schedMock){var O=window._schedMock;p=O[0],h=O[1],m=O[2]}else{"undefined"!=typeof console&&("function"!=typeof g&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof E&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var C=null,A=!1,N=-1,w=!1,R=!1,P=0,k=33,I=33;m=function(){return P};var L="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(e){if(e.source===window&&e.data===L){A=!1;var t=r.unstable_now();if(e=!1,P-t<=0){if(!(-1!==N&&N<=t))return void(w||(w=!0,S(D)));e=!0}if(N=-1,t=C,(C=null)!==t){R=!0;try{t(e)}finally{R=!1}}}},!1);var D=function(e){w=!1;var t=e-P+I;t<I&&k<I?(t<8&&(t=8),I=t<k?k:t):k=t,P=e+I,A||(A=!0,window.postMessage(L,"*"))};p=function(e,t){C=e,N=t,R?window.postMessage(L,"*"):w||(w=!0,S(D))},h=function(){C=null,A=!1,N=-1}}r.unstable_scheduleWork=function(e,t){var n=r.unstable_now();if(e={callback:e,timesOutAt:t=null!=t&&null!==t.timeout&&void 0!==t.timeout?n+t.timeout:n+5e3,next:null,previous:null},null===a)a=e.next=e.previous=e,s();else{n=null;var o=a;do{if(o.timesOutAt>t){n=o;break}o=o.next}while(o!==a);null===n?n=a:n===a&&(a=e,s()),(t=n.previous).next=n.previous=e,e.next=n,e.previous=t}return e},r.unstable_cancelScheduledWork=function(e){var t=e.next;if(null!==t){if(t===e)a=null;else{e===a&&(a=t);var n=e.previous;(n.next=t).previous=n}e.next=e.previous=null}}},{}],388:[function(t,n,e){(function(e){"use strict";"production"===e.env.NODE_ENV?n.exports=t("./cjs/schedule.production.min.js"):n.exports=t("./cjs/schedule.development.js")}).call(this,t("_process"))},{"./cjs/schedule.development.js":386,"./cjs/schedule.production.min.js":387,_process:370}],389:[function(t,n,e){(function(e){"use strict";"production"===e.env.NODE_ENV?n.exports=t("./cjs/schedule-tracing.production.min.js"):n.exports=t("./cjs/schedule-tracing.development.js")}).call(this,t("_process"))},{"./cjs/schedule-tracing.development.js":384,"./cjs/schedule-tracing.production.min.js":385,_process:370}],390:[function(e,n,t){!function(){"use strict";var a="undefined"!=typeof window&&void 0!==window.document?window.document:{},e=void 0!==n&&n.exports,r="undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element,i=function(){for(var e,t=[["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"]],n=0,o=t.length,r={};n<o;n++)if((e=t[n])&&e[1]in a){for(n=0;n<e.length;n++)r[t[0][n]]=e[n];return r}return!1}(),o={change:i.fullscreenchange,error:i.fullscreenerror},t={request:function(o){return new Promise(function(e){var t=i.requestFullscreen,n=function(){this.off("change",n),e()}.bind(this);o=o||a.documentElement,/ Version\/5\.1(?:\.\d+)? Safari\//.test(navigator.userAgent)?o[t]():o[t](r?Element.ALLOW_KEYBOARD_INPUT:{}),this.on("change",n)}.bind(this))},exit:function(){return new Promise(function(e){if(this.isFullscreen){var t=function(){this.off("change",t),e()}.bind(this);a[i.exitFullscreen](),this.on("change",t)}else e()}.bind(this))},toggle:function(e){return this.isFullscreen?this.exit():this.request(e)},onchange:function(e){this.on("change",e)},onerror:function(e){this.on("error",e)},on:function(e,t){var n=o[e];n&&a.addEventListener(n,t,!1)},off:function(e,t){var n=o[e];n&&a.removeEventListener(n,t,!1)},raw:i};i?(Object.defineProperties(t,{isFullscreen:{get:function(){return Boolean(a[i.fullscreenElement])}},element:{enumerable:!0,get:function(){return a[i.fullscreenElement]}},enabled:{enumerable:!0,get:function(){return Boolean(a[i.fullscreenEnabled])}}}),e?(n.exports=t,n.exports.default=t):window.screenfull=t):e?n.exports=!1:window.screenfull=!1}()},{}],391:[function(e,Q,$){(function(q){!function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof q&&q.global===q&&q||this||{},t=e._,o=Array.prototype,i=Object.prototype,f="undefined"!=typeof Symbol?Symbol.prototype:null,r=o.push,s=o.slice,d=i.toString,a=i.hasOwnProperty,n=Array.isArray,l=Object.keys,u=Object.create,c=function(){},p=function(e){return e instanceof p?e:this instanceof p?void(this._wrapped=e):new p(e)};void 0===$||$.nodeType?e._=p:(void 0!==Q&&!Q.nodeType&&Q.exports&&($=Q.exports=p),$._=p),p.VERSION="1.9.1";var h,m=function(r,a,e){if(void 0===a)return r;switch(null==e?3:e){case 1:return function(e){return r.call(a,e)};case 3:return function(e,t,n){return r.call(a,e,t,n)};case 4:return function(e,t,n,o){return r.call(a,e,t,n,o)}}return function(){return r.apply(a,arguments)}},y=function(e,t,n){return p.iteratee!==h?p.iteratee(e,t):null==e?p.identity:p.isFunction(e)?m(e,t,n):p.isObject(e)&&!p.isArray(e)?p.matcher(e):p.property(e)};p.iteratee=h=function(e,t){return y(e,t,1/0)};var b=function(r,a){return a=null==a?r.length-1:+a,function(){for(var e=Math.max(arguments.length-a,0),t=Array(e),n=0;n<e;n++)t[n]=arguments[n+a];switch(a){case 0:return r.call(this,t);case 1:return r.call(this,arguments[0],t);case 2:return r.call(this,arguments[0],arguments[1],t)}var o=Array(a+1);for(n=0;n<a;n++)o[n]=arguments[n];return o[a]=t,r.apply(this,o)}},v=function(e){if(!p.isObject(e))return{};if(u)return u(e);c.prototype=e;var t=new c;return c.prototype=null,t},g=function(t){return function(e){return null==e?void 0:e[t]}},E=function(e,t){return null!=e&&a.call(e,t)},S=function(e,t){for(var n=t.length,o=0;o<n;o++){if(null==e)return;e=e[t[o]]}return n?e:void 0},_=Math.pow(2,53)-1,T=g("length"),O=function(e){var t=T(e);return"number"==typeof t&&0<=t&&t<=_};p.each=p.forEach=function(e,t,n){var o,r;if(t=m(t,n),O(e))for(o=0,r=e.length;o<r;o++)t(e[o],o,e);else{var a=p.keys(e);for(o=0,r=a.length;o<r;o++)t(e[a[o]],a[o],e)}return e},p.map=p.collect=function(e,t,n){t=y(t,n);for(var o=!O(e)&&p.keys(e),r=(o||e).length,a=Array(r),i=0;i<r;i++){var l=o?o[i]:i;a[i]=t(e[l],l,e)}return a};var C=function(s){return function(e,t,n,o){var r=3<=arguments.length;return function(e,t,n,o){var r=!O(e)&&p.keys(e),a=(r||e).length,i=0<s?0:a-1;for(o||(n=e[r?r[i]:i],i+=s);0<=i&&i<a;i+=s){var l=r?r[i]:i;n=t(n,e[l],l,e)}return n}(e,m(t,o,4),n,r)}};p.reduce=p.foldl=p.inject=C(1),p.reduceRight=p.foldr=C(-1),p.find=p.detect=function(e,t,n){var o=(O(e)?p.findIndex:p.findKey)(e,t,n);if(void 0!==o&&-1!==o)return e[o]},p.filter=p.select=function(e,o,t){var r=[];return o=y(o,t),p.each(e,function(e,t,n){o(e,t,n)&&r.push(e)}),r},p.reject=function(e,t,n){return p.filter(e,p.negate(y(t)),n)},p.every=p.all=function(e,t,n){t=y(t,n);for(var o=!O(e)&&p.keys(e),r=(o||e).length,a=0;a<r;a++){var i=o?o[a]:a;if(!t(e[i],i,e))return!1}return!0},p.some=p.any=function(e,t,n){t=y(t,n);for(var o=!O(e)&&p.keys(e),r=(o||e).length,a=0;a<r;a++){var i=o?o[a]:a;if(t(e[i],i,e))return!0}return!1},p.contains=p.includes=p.include=function(e,t,n,o){return O(e)||(e=p.values(e)),("number"!=typeof n||o)&&(n=0),0<=p.indexOf(e,t,n)},p.invoke=b(function(e,n,o){var r,a;return p.isFunction(n)?a=n:p.isArray(n)&&(r=n.slice(0,-1),n=n[n.length-1]),p.map(e,function(e){var t=a;if(!t){if(r&&r.length&&(e=S(e,r)),null==e)return;t=e[n]}return null==t?t:t.apply(e,o)})}),p.pluck=function(e,t){return p.map(e,p.property(t))},p.where=function(e,t){return p.filter(e,p.matcher(t))},p.findWhere=function(e,t){return p.find(e,p.matcher(t))},p.max=function(e,o,t){var n,r,a=-1/0,i=-1/0;if(null==o||"number"==typeof o&&"object"!=typeof e[0]&&null!=e)for(var l=0,s=(e=O(e)?e:p.values(e)).length;l<s;l++)null!=(n=e[l])&&a<n&&(a=n);else o=y(o,t),p.each(e,function(e,t,n){r=o(e,t,n),(i<r||r===-1/0&&a===-1/0)&&(a=e,i=r)});return a},p.min=function(e,o,t){var n,r,a=1/0,i=1/0;if(null==o||"number"==typeof o&&"object"!=typeof e[0]&&null!=e)for(var l=0,s=(e=O(e)?e:p.values(e)).length;l<s;l++)null!=(n=e[l])&&n<a&&(a=n);else o=y(o,t),p.each(e,function(e,t,n){((r=o(e,t,n))<i||r===1/0&&a===1/0)&&(a=e,i=r)});return a},p.shuffle=function(e){return p.sample(e,1/0)},p.sample=function(e,t,n){if(null==t||n)return O(e)||(e=p.values(e)),e[p.random(e.length-1)];var o=O(e)?p.clone(e):p.values(e),r=T(o);t=Math.max(Math.min(t,r),0);for(var a=r-1,i=0;i<t;i++){var l=p.random(i,a),s=o[i];o[i]=o[l],o[l]=s}return o.slice(0,t)},p.sortBy=function(e,o,t){var r=0;return o=y(o,t),p.pluck(p.map(e,function(e,t,n){return{value:e,index:r++,criteria:o(e,t,n)}}).sort(function(e,t){var n=e.criteria,o=t.criteria;if(n!==o){if(o<n||void 0===n)return 1;if(n<o||void 0===o)return-1}return e.index-t.index}),"value")};var A=function(i,t){return function(o,r,e){var a=t?[[],[]]:{};return r=y(r,e),p.each(o,function(e,t){var n=r(e,t,o);i(a,e,n)}),a}};p.groupBy=A(function(e,t,n){E(e,n)?e[n].push(t):e[n]=[t]}),p.indexBy=A(function(e,t,n){e[n]=t}),p.countBy=A(function(e,t,n){E(e,n)?e[n]++:e[n]=1});var N=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;p.toArray=function(e){return e?p.isArray(e)?s.call(e):p.isString(e)?e.match(N):O(e)?p.map(e,p.identity):p.values(e):[]},p.size=function(e){return null==e?0:O(e)?e.length:p.keys(e).length},p.partition=A(function(e,t,n){e[n?0:1].push(t)},!0),p.first=p.head=p.take=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[0]:p.initial(e,e.length-t)},p.initial=function(e,t,n){return s.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},p.last=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[e.length-1]:p.rest(e,Math.max(0,e.length-t))},p.rest=p.tail=p.drop=function(e,t,n){return s.call(e,null==t||n?1:t)},p.compact=function(e){return p.filter(e,Boolean)};var w=function(e,t,n,o){for(var r=(o=o||[]).length,a=0,i=T(e);a<i;a++){var l=e[a];if(O(l)&&(p.isArray(l)||p.isArguments(l)))if(t)for(var s=0,u=l.length;s<u;)o[r++]=l[s++];else w(l,t,n,o),r=o.length;else n||(o[r++]=l)}return o};p.flatten=function(e,t){return w(e,t,!1)},p.without=b(function(e,t){return p.difference(e,t)}),p.uniq=p.unique=function(e,t,n,o){p.isBoolean(t)||(o=n,n=t,t=!1),null!=n&&(n=y(n,o));for(var r=[],a=[],i=0,l=T(e);i<l;i++){var s=e[i],u=n?n(s,i,e):s;t&&!n?(i&&a===u||r.push(s),a=u):n?p.contains(a,u)||(a.push(u),r.push(s)):p.contains(r,s)||r.push(s)}return r},p.union=b(function(e){return p.uniq(w(e,!0,!0))}),p.intersection=function(e){for(var t=[],n=arguments.length,o=0,r=T(e);o<r;o++){var a=e[o];if(!p.contains(t,a)){var i;for(i=1;i<n&&p.contains(arguments[i],a);i++);i===n&&t.push(a)}}return t},p.difference=b(function(e,t){return t=w(t,!0,!0),p.filter(e,function(e){return!p.contains(t,e)})}),p.unzip=function(e){for(var t=e&&p.max(e,T).length||0,n=Array(t),o=0;o<t;o++)n[o]=p.pluck(e,o);return n},p.zip=b(p.unzip),p.object=function(e,t){for(var n={},o=0,r=T(e);o<r;o++)t?n[e[o]]=t[o]:n[e[o][0]]=e[o][1];return n};var R=function(a){return function(e,t,n){t=y(t,n);for(var o=T(e),r=0<a?0:o-1;0<=r&&r<o;r+=a)if(t(e[r],r,e))return r;return-1}};p.findIndex=R(1),p.findLastIndex=R(-1),p.sortedIndex=function(e,t,n,o){for(var r=(n=y(n,o,1))(t),a=0,i=T(e);a<i;){var l=Math.floor((a+i)/2);n(e[l])<r?a=l+1:i=l}return a};var P=function(a,i,l){return function(e,t,n){var o=0,r=T(e);if("number"==typeof n)0<a?o=0<=n?n:Math.max(n+r,o):r=0<=n?Math.min(n+1,r):n+r+1;else if(l&&n&&r)return e[n=l(e,t)]===t?n:-1;if(t!=t)return 0<=(n=i(s.call(e,o,r),p.isNaN))?n+o:-1;for(n=0<a?o:r-1;0<=n&&n<r;n+=a)if(e[n]===t)return n;return-1}};p.indexOf=P(1,p.findIndex,p.sortedIndex),p.lastIndexOf=P(-1,p.findLastIndex),p.range=function(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var o=Math.max(Math.ceil((t-e)/n),0),r=Array(o),a=0;a<o;a++,e+=n)r[a]=e;return r},p.chunk=function(e,t){if(null==t||t<1)return[];for(var n=[],o=0,r=e.length;o<r;)n.push(s.call(e,o,o+=t));return n};var k=function(e,t,n,o,r){if(!(o instanceof t))return e.apply(n,r);var a=v(e.prototype),i=e.apply(a,r);return p.isObject(i)?i:a};p.bind=b(function(t,n,o){if(!p.isFunction(t))throw new TypeError("Bind must be called on a function");var r=b(function(e){return k(t,r,n,this,o.concat(e))});return r}),p.partial=b(function(r,a){var i=p.partial.placeholder,l=function(){for(var e=0,t=a.length,n=Array(t),o=0;o<t;o++)n[o]=a[o]===i?arguments[e++]:a[o];for(;e<arguments.length;)n.push(arguments[e++]);return k(r,l,this,this,n)};return l}),(p.partial.placeholder=p).bindAll=b(function(e,t){var n=(t=w(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var o=t[n];e[o]=p.bind(e[o],e)}}),p.memoize=function(o,r){var a=function(e){var t=a.cache,n=""+(r?r.apply(this,arguments):e);return E(t,n)||(t[n]=o.apply(this,arguments)),t[n]};return a.cache={},a},p.delay=b(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),p.defer=p.partial(p.delay,p,1),p.throttle=function(n,o,r){var a,i,l,s,u=0;r||(r={});var c=function(){u=!1===r.leading?0:p.now(),a=null,s=n.apply(i,l),a||(i=l=null)},e=function(){var e=p.now();u||!1!==r.leading||(u=e);var t=o-(e-u);return i=this,l=arguments,t<=0||o<t?(a&&(clearTimeout(a),a=null),u=e,s=n.apply(i,l),a||(i=l=null)):a||!1===r.trailing||(a=setTimeout(c,t)),s};return e.cancel=function(){clearTimeout(a),u=0,a=i=l=null},e},p.debounce=function(n,o,r){var a,i,l=function(e,t){a=null,t&&(i=n.apply(e,t))},e=b(function(e){if(a&&clearTimeout(a),r){var t=!a;a=setTimeout(l,o),t&&(i=n.apply(this,e))}else a=p.delay(l,o,this,e);return i});return e.cancel=function(){clearTimeout(a),a=null},e},p.wrap=function(e,t){return p.partial(t,e)},p.negate=function(e){return function(){return!e.apply(this,arguments)}},p.compose=function(){var n=arguments,o=n.length-1;return function(){for(var e=o,t=n[o].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},p.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},p.before=function(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},p.once=p.partial(p.before,2),p.restArguments=b;var I=!{toString:null}.propertyIsEnumerable("toString"),L=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],D=function(e,t){var n=L.length,o=e.constructor,r=p.isFunction(o)&&o.prototype||i,a="constructor";for(E(e,a)&&!p.contains(t,a)&&t.push(a);n--;)(a=L[n])in e&&e[a]!==r[a]&&!p.contains(t,a)&&t.push(a)};p.keys=function(e){if(!p.isObject(e))return[];if(l)return l(e);var t=[];for(var n in e)E(e,n)&&t.push(n);return I&&D(e,t),t},p.allKeys=function(e){if(!p.isObject(e))return[];var t=[];for(var n in e)t.push(n);return I&&D(e,t),t},p.values=function(e){for(var t=p.keys(e),n=t.length,o=Array(n),r=0;r<n;r++)o[r]=e[t[r]];return o},p.mapObject=function(e,t,n){t=y(t,n);for(var o=p.keys(e),r=o.length,a={},i=0;i<r;i++){var l=o[i];a[l]=t(e[l],l,e)}return a},p.pairs=function(e){for(var t=p.keys(e),n=t.length,o=Array(n),r=0;r<n;r++)o[r]=[t[r],e[t[r]]];return o},p.invert=function(e){for(var t={},n=p.keys(e),o=0,r=n.length;o<r;o++)t[e[n[o]]]=n[o];return t},p.functions=p.methods=function(e){var t=[];for(var n in e)p.isFunction(e[n])&&t.push(n);return t.sort()};var x=function(s,u){return function(e){var t=arguments.length;if(u&&(e=Object(e)),t<2||null==e)return e;for(var n=1;n<t;n++)for(var o=arguments[n],r=s(o),a=r.length,i=0;i<a;i++){var l=r[i];u&&void 0!==e[l]||(e[l]=o[l])}return e}};p.extend=x(p.allKeys),p.extendOwn=p.assign=x(p.keys),p.findKey=function(e,t,n){t=y(t,n);for(var o,r=p.keys(e),a=0,i=r.length;a<i;a++)if(t(e[o=r[a]],o,e))return o};var M,V,j=function(e,t,n){return t in n};p.pick=b(function(e,t){var n={},o=t[0];if(null==e)return n;p.isFunction(o)?(1<t.length&&(o=m(o,t[1])),t=p.allKeys(e)):(o=j,t=w(t,!1,!1),e=Object(e));for(var r=0,a=t.length;r<a;r++){var i=t[r],l=e[i];o(l,i,e)&&(n[i]=l)}return n}),p.omit=b(function(e,n){var t,o=n[0];return p.isFunction(o)?(o=p.negate(o),1<n.length&&(t=n[1])):(n=p.map(w(n,!1,!1),String),o=function(e,t){return!p.contains(n,t)}),p.pick(e,o,t)}),p.defaults=x(p.allKeys,!0),p.create=function(e,t){var n=v(e);return t&&p.extendOwn(n,t),n},p.clone=function(e){return p.isObject(e)?p.isArray(e)?e.slice():p.extend({},e):e},p.tap=function(e,t){return t(e),e},p.isMatch=function(e,t){var n=p.keys(t),o=n.length;if(null==e)return!o;for(var r=Object(e),a=0;a<o;a++){var i=n[a];if(t[i]!==r[i]||!(i in r))return!1}return!0},M=function(e,t,n,o){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var r=typeof e;return("function"===r||"object"===r||"object"==typeof t)&&V(e,t,n,o)},V=function(e,t,n,o){e instanceof p&&(e=e._wrapped),t instanceof p&&(t=t._wrapped);var r=d.call(e);if(r!==d.call(t))return!1;switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return f.valueOf.call(e)===f.valueOf.call(t)}var a="[object Array]"===r;if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var i=e.constructor,l=t.constructor;if(i!==l&&!(p.isFunction(i)&&i instanceof i&&p.isFunction(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}o=o||[];for(var s=(n=n||[]).length;s--;)if(n[s]===e)return o[s]===t;if(n.push(e),o.push(t),a){if((s=e.length)!==t.length)return!1;for(;s--;)if(!M(e[s],t[s],n,o))return!1}else{var u,c=p.keys(e);if(s=c.length,p.keys(t).length!==s)return!1;for(;s--;)if(u=c[s],!E(t,u)||!M(e[u],t[u],n,o))return!1}return n.pop(),o.pop(),!0},p.isEqual=function(e,t){return M(e,t)},p.isEmpty=function(e){return null==e||(O(e)&&(p.isArray(e)||p.isString(e)||p.isArguments(e))?0===e.length:0===p.keys(e).length)},p.isElement=function(e){return!(!e||1!==e.nodeType)},p.isArray=n||function(e){return"[object Array]"===d.call(e)},p.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},p.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){p["is"+t]=function(e){return d.call(e)==="[object "+t+"]"}}),p.isArguments(arguments)||(p.isArguments=function(e){return E(e,"callee")});var U=e.document&&e.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof U&&(p.isFunction=function(e){return"function"==typeof e||!1}),p.isFinite=function(e){return!p.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},p.isNaN=function(e){return p.isNumber(e)&&isNaN(e)},p.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===d.call(e)},p.isNull=function(e){return null===e},p.isUndefined=function(e){return void 0===e},p.has=function(e,t){if(!p.isArray(t))return E(e,t);for(var n=t.length,o=0;o<n;o++){var r=t[o];if(null==e||!a.call(e,r))return!1;e=e[r]}return!!n},p.noConflict=function(){return e._=t,this},p.identity=function(e){return e},p.constant=function(e){return function(){return e}},p.noop=function(){},p.property=function(t){return p.isArray(t)?function(e){return S(e,t)}:g(t)},p.propertyOf=function(t){return null==t?function(){}:function(e){return p.isArray(e)?S(t,e):t[e]}},p.matcher=p.matches=function(t){return t=p.extendOwn({},t),function(e){return p.isMatch(e,t)}},p.times=function(e,t,n){var o=Array(Math.max(0,e));t=m(t,n,1);for(var r=0;r<e;r++)o[r]=t(r);return o},p.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},p.now=Date.now||function(){return(new Date).getTime()};var B={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},F=p.invert(B),W=function(t){var n=function(e){return t[e]},e="(?:"+p.keys(t).join("|")+")",o=RegExp(e),r=RegExp(e,"g");return function(e){return e=null==e?"":""+e,o.test(e)?e.replace(r,n):e}};p.escape=W(B),p.unescape=W(F),p.result=function(e,t,n){p.isArray(t)||(t=[t]);var o=t.length;if(!o)return p.isFunction(n)?n.call(e):n;for(var r=0;r<o;r++){var a=null==e?void 0:e[t[r]];void 0===a&&(a=n,r=o),e=p.isFunction(a)?a.call(e):a}return e};var Y=0;p.uniqueId=function(e){var t=++Y+"";return e?e+t:t},p.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,H={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},z=/\\|'|\r|\n|\u2028|\u2029/g,G=function(e){return"\\"+H[e]};p.template=function(a,e,t){!e&&t&&(e=t),e=p.defaults({},e,p.templateSettings);var n,o=RegExp([(e.escape||K).source,(e.interpolate||K).source,(e.evaluate||K).source].join("|")+"|$","g"),i=0,l="__p+='";a.replace(o,function(e,t,n,o,r){return l+=a.slice(i,r).replace(z,G),i=r+e.length,t?l+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":n?l+="'+\n((__t=("+n+"))==null?'':__t)+\n'":o&&(l+="';\n"+o+"\n__p+='"),e}),l+="';\n",e.variable||(l="with(obj||{}){\n"+l+"}\n"),l="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+l+"return __p;\n";try{n=new Function(e.variable||"obj","_",l)}catch(e){throw e.source=l,e}var r=function(e){return n.call(this,e,p)},s=e.variable||"obj";return r.source="function("+s+"){\n"+l+"}",r},p.chain=function(e){var t=p(e);return t._chain=!0,t};var X=function(e,t){return e._chain?p(t).chain():t};p.mixin=function(n){return p.each(p.functions(n),function(e){var t=p[e]=n[e];p.prototype[e]=function(){var e=[this._wrapped];return r.apply(e,arguments),X(this,t.apply(p,e))}}),p},p.mixin(p),p.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=o[t];p.prototype[t]=function(){var e=this._wrapped;return n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],X(this,e)}}),p.each(["concat","join","slice"],function(e){var t=o[e];p.prototype[e]=function(){return X(this,t.apply(this._wrapped,arguments))}}),p.prototype.value=function(){return this._wrapped},p.prototype.valueOf=p.prototype.toJSON=p.prototype.value,p.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return p})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[76]);
//# sourceMappingURL=html5-skin.min.js.map

//bit_wrapper.js-4.40.0
!function(i){var n={};function r(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.m=i,r.c=n,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(i,n,function(e){return t[e]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=39)}([function(i,e,t){(function(e){var t;t="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},i.exports=t}).call(this,t(5))},function(r,e,a){(function(e){var t,i=void 0!==e?e:"undefined"!=typeof window?window:{},n=a(42);t="undefined"!=typeof document?document:(t=i["__GLOBAL_DOCUMENT_CACHE@4"])||(i["__GLOBAL_DOCUMENT_CACHE@4"]=n),r.exports=t}).call(this,a(5))},function(e,t){function i(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return s[e];var i,n=String(e);return(i=r[n.toLowerCase()])?i:(i=a[n.toLowerCase()])||(1===n.length?n.charCodeAt(0):void 0)}i.isEventKey=function(e,t){if(e&&"object"==typeof e){var i=e.which||e.keyCode||e.charCode;if(null==i)return!1;if("string"==typeof t){var n;if(n=r[t.toLowerCase()])return n===i;if(n=a[t.toLowerCase()])return n===i}else if("number"==typeof t)return t===i;return!1}};var r=(t=e.exports=i).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},a=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};
/*!
 * Programatically add the following
 */
for(n=97;n<123;n++)r[String.fromCharCode(n)]=n-32;for(var n=48;n<58;n++)r[n-48]=n;for(n=1;n<13;n++)r["f"+n]=n+111;for(n=0;n<10;n++)r["numpad "+n]=n+96;var s=t.names=t.title={};for(n in r)s[r[n]]=n;for(var o in a)r[o]=a[o]},function(e,t,i){"use strict";i.r(t);var n=i(0),v=i.n(n),r=i(1),h=i.n(r),a=i(32),d=i.n(a),s=i(2),p=i.n(s),o=i(19),c=i.n(o),u=i(20),l=i.n(u),f=i(21),m=i.n(f);
/*! @name m3u8-parser @version 4.4.0 @license Apache-2.0 */
function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}function y(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}function _(e){for(var t,i=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),n={},r=i.length;r--;)""!==i[r]&&((t=/([^=]*)=(.*)/.exec(i[r]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),n[t[0]]=t[1]);return n}var b=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var i=this.listeners[e].indexOf(t);return this.listeners[e].splice(i,1),-1<i},t.trigger=function(e,t){var i,n,r,a=this.listeners[e];if(a)if(2===arguments.length)for(n=a.length,i=0;i<n;++i)a[i].call(this,t);else for(r=Array.prototype.slice.call(arguments,1),n=a.length,i=0;i<n;++i)a[i].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(t){this.on("data",function(e){t.push(e)})},e}(),T=function(t){function e(){var e;return(e=t.call(this)||this).buffer="",e}return y(e,t),e.prototype.push=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");-1<t;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},e}(b),S=function(t){function e(){var e;return(e=t.call(this)||this).customParsers=[],e.tagMappers=[],e}y(e,t);var i=e.prototype;return i.push=function(n){var u,l,c=this;0!==(n=n.trim()).length&&("#"===n[0]?this.tagMappers.reduce(function(e,t){var i=t(n);return i===n?e:e.concat([i])},[n]).forEach(function(e){for(var t=0;t<c.customParsers.length;t++)if(c.customParsers[t].call(c,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),u=/^#EXTM3U/.exec(e))c.trigger("data",{type:"tag",tagType:"m3u"});else{if(u=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e))return l={type:"tag",tagType:"inf"},u[1]&&(l.duration=parseFloat(u[1])),u[2]&&(l.title=u[2]),void c.trigger("data",l);if(u=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e))return l={type:"tag",tagType:"targetduration"},u[1]&&(l.duration=parseInt(u[1],10)),void c.trigger("data",l);if(u=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(e))return l={type:"tag",tagType:"totalduration"},u[1]&&(l.duration=parseInt(u[1],10)),void c.trigger("data",l);if(u=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e))return l={type:"tag",tagType:"version"},u[1]&&(l.version=parseInt(u[1],10)),void c.trigger("data",l);if(u=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return l={type:"tag",tagType:"media-sequence"},u[1]&&(l.number=parseInt(u[1],10)),void c.trigger("data",l);if(u=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return l={type:"tag",tagType:"discontinuity-sequence"},u[1]&&(l.number=parseInt(u[1],10)),void c.trigger("data",l);if(u=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e))return l={type:"tag",tagType:"playlist-type"},u[1]&&(l.playlistType=u[1]),void c.trigger("data",l);if(u=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(e))return l={type:"tag",tagType:"byterange"},u[1]&&(l.length=parseInt(u[1],10)),u[2]&&(l.offset=parseInt(u[2],10)),void c.trigger("data",l);if(u=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e))return l={type:"tag",tagType:"allow-cache"},u[1]&&(l.allowed=!/NO/.test(u[1])),void c.trigger("data",l);if(u=/^#EXT-X-MAP:?(.*)$/.exec(e)){if(l={type:"tag",tagType:"map"},u[1]){var i=_(u[1]);if(i.URI&&(l.uri=i.URI),i.BYTERANGE){var n=i.BYTERANGE.split("@"),r=n[0],a=n[1];l.byterange={},r&&(l.byterange.length=parseInt(r,10)),a&&(l.byterange.offset=parseInt(a,10))}}c.trigger("data",l)}else if(u=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e)){if(l={type:"tag",tagType:"stream-inf"},u[1]){if(l.attributes=_(u[1]),l.attributes.RESOLUTION){var s=l.attributes.RESOLUTION.split("x"),o={};s[0]&&(o.width=parseInt(s[0],10)),s[1]&&(o.height=parseInt(s[1],10)),l.attributes.RESOLUTION=o}l.attributes.BANDWIDTH&&(l.attributes.BANDWIDTH=parseInt(l.attributes.BANDWIDTH,10)),l.attributes["PROGRAM-ID"]&&(l.attributes["PROGRAM-ID"]=parseInt(l.attributes["PROGRAM-ID"],10))}c.trigger("data",l)}else{if(u=/^#EXT-X-MEDIA:?(.*)$/.exec(e))return l={type:"tag",tagType:"media"},u[1]&&(l.attributes=_(u[1])),void c.trigger("data",l);if(u=/^#EXT-X-ENDLIST/.exec(e))c.trigger("data",{type:"tag",tagType:"endlist"});else if(u=/^#EXT-X-DISCONTINUITY/.exec(e))c.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(u=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e))return l={type:"tag",tagType:"program-date-time"},u[1]&&(l.dateTimeString=u[1],l.dateTimeObject=new Date(u[1])),void c.trigger("data",l);if(u=/^#EXT-X-KEY:?(.*)$/.exec(e))return l={type:"tag",tagType:"key"},u[1]&&(l.attributes=_(u[1]),l.attributes.IV&&("0x"===l.attributes.IV.substring(0,2).toLowerCase()&&(l.attributes.IV=l.attributes.IV.substring(2)),l.attributes.IV=l.attributes.IV.match(/.{8}/g),l.attributes.IV[0]=parseInt(l.attributes.IV[0],16),l.attributes.IV[1]=parseInt(l.attributes.IV[1],16),l.attributes.IV[2]=parseInt(l.attributes.IV[2],16),l.attributes.IV[3]=parseInt(l.attributes.IV[3],16),l.attributes.IV=new Uint32Array(l.attributes.IV))),void c.trigger("data",l);if(u=/^#EXT-X-START:?(.*)$/.exec(e))return l={type:"tag",tagType:"start"},u[1]&&(l.attributes=_(u[1]),l.attributes["TIME-OFFSET"]=parseFloat(l.attributes["TIME-OFFSET"]),l.attributes.PRECISE=/YES/.test(l.attributes.PRECISE)),void c.trigger("data",l);if(u=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e))return l={type:"tag",tagType:"cue-out-cont"},u[1]?l.data=u[1]:l.data="",void c.trigger("data",l);if(u=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e))return l={type:"tag",tagType:"cue-out"},u[1]?l.data=u[1]:l.data="",void c.trigger("data",l);if(u=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e))return l={type:"tag",tagType:"cue-in"},u[1]?l.data=u[1]:l.data="",void c.trigger("data",l);c.trigger("data",{type:"tag",data:e.slice(4)})}}}else c.trigger("data",{type:"comment",text:e.slice(1)})}):this.trigger("data",{type:"uri",uri:n}))},i.addParser=function(e){var t=this,i=e.expression,n=e.customType,r=e.dataParser,a=e.segment;"function"!=typeof r&&(r=function(e){return e}),this.customParsers.push(function(e){if(i.exec(e))return t.trigger("data",{type:"custom",data:r(e),customType:n,segment:a}),!0})},i.addTagMapper=function(e){var t=e.expression,i=e.map;this.tagMappers.push(function(e){return t.test(e)?i(e):e})},e}(b);var k=function(t){function e(){var e;(e=t.call(this)||this).lineStream=new T,e.parseStream=new S,e.lineStream.pipe(e.parseStream);var r,a,s=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e),o=[],u={},l={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},c=0;return e.manifest={allowCache:!0,discontinuityStarts:[],segments:[]},e.parseStream.on("data",function(t){var i,n;({tag:function(){({"allow-cache":function(){this.manifest.allowCache=t.allowed,"allowed"in t||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var e={};"length"in t&&((u.byterange=e).length=t.length,"offset"in t||(this.trigger("info",{message:"defaulting offset to zero"}),t.offset=0)),"offset"in t&&((u.byterange=e).offset=t.offset)},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),0<t.duration&&(u.duration=t.duration),0===t.duration&&(u.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=o},key:function(){if(t.attributes)if("NONE"!==t.attributes.METHOD)if(t.attributes.URI){if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===t.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(t.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===t.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==t.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):t.attributes.KEYID&&"0x"===t.attributes.KEYID.substring(0,2)?void(this.manifest.contentProtection={"com.widevine.alpha":{attributes:{schemeIdUri:t.attributes.KEYFORMAT,keyId:t.attributes.KEYID.substring(2)},pssh:function(e){for(var t=v.a.atob(e||""),i=new Uint8Array(t.length),n=0;n<t.length;n++)i[n]=t.charCodeAt(n);return i}(t.attributes.URI.split(",")[1])}}):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),a={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},void 0!==t.attributes.IV&&(a.iv=t.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else a=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(t.number)?this.manifest.mediaSequence=t.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number})},"discontinuity-sequence":function(){isFinite(t.number)?(this.manifest.discontinuitySequence=t.number,c=t.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number})},"playlist-type":function(){/VOD|EVENT/.test(t.playlistType)?this.manifest.playlistType=t.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist})},map:function(){r={},t.uri&&(r.uri=t.uri),t.byterange&&(r.byterange=t.byterange)},"stream-inf":function(){this.manifest.playlists=o,this.manifest.mediaGroups=this.manifest.mediaGroups||l,t.attributes?(u.attributes||(u.attributes={}),g(u.attributes,t.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||l,t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME){var e=this.manifest.mediaGroups[t.attributes.TYPE];e[t.attributes["GROUP-ID"]]=e[t.attributes["GROUP-ID"]]||{},i=e[t.attributes["GROUP-ID"]],(n={default:/yes/i.test(t.attributes.DEFAULT)}).default?n.autoselect=!0:n.autoselect=/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&&(n.language=t.attributes.LANGUAGE),t.attributes.URI&&(n.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&&(n.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&&(n.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&&(n.forced=/yes/i.test(t.attributes.FORCED)),i[t.attributes.NAME]=n}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){c+=1,u.discontinuity=!0,this.manifest.discontinuityStarts.push(o.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject),u.dateTimeString=t.dateTimeString,u.dateTimeObject=t.dateTimeObject},targetduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration}):this.manifest.targetDuration=t.duration},totalduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid total duration: "+t.duration}):this.manifest.totalDuration=t.duration},start:function(){t.attributes&&!isNaN(t.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:t.attributes["TIME-OFFSET"],precise:t.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){u.cueOut=t.data},"cue-out-cont":function(){u.cueOutCont=t.data},"cue-in":function(){u.cueIn=t.data}}[t.tagType]||function(){}).call(s)},uri:function(){u.uri=t.uri,o.push(u),!this.manifest.targetDuration||"duration"in u||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),u.duration=this.manifest.targetDuration),a&&(u.key=a),u.timeline=c,r&&(u.map=r),u={}},comment:function(){},custom:function(){t.segment?(u.custom=u.custom||{},u.custom[t.customType]=t.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[t.customType]=t.data)}})[t.type].call(s)}),e}y(e,t);var i=e.prototype;return i.push=function(e){this.lineStream.push(e)},i.end=function(){this.lineStream.push("\n")},i.addParser=function(e){this.parseStream.addParser(e)},i.addTagMapper=function(e){this.parseStream.addTagMapper(e)},e}(b),E=i(10),w=i(18),C=i.n(w),O=i(4),A=i.n(O),P=i(33),I=i.n(P),L=i(34),x=i.n(L);function D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var R=function(e,t,i){return t&&U(e.prototype,t),i&&U(e,i),e};function U(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var M=null,N=(j.prototype.decrypt=function(e,t,i,n,r,a){var s=this._key[1],o=e^s[0],u=n^s[1],l=i^s[2],c=t^s[3],h=void 0,d=void 0,p=void 0,f=s.length/4-2,m=void 0,g=4,y=this._tables[1],v=y[0],_=y[1],b=y[2],T=y[3],S=y[4];for(m=0;m<f;m++)h=v[o>>>24]^_[u>>16&255]^b[l>>8&255]^T[255&c]^s[g],d=v[u>>>24]^_[l>>16&255]^b[c>>8&255]^T[255&o]^s[g+1],p=v[l>>>24]^_[c>>16&255]^b[o>>8&255]^T[255&u]^s[g+2],c=v[c>>>24]^_[o>>16&255]^b[u>>8&255]^T[255&l]^s[g+3],g+=4,o=h,u=d,l=p;for(m=0;m<4;m++)r[(3&-m)+a]=S[o>>>24]<<24^S[u>>16&255]<<16^S[l>>8&255]<<8^S[255&c]^s[g++],h=o,o=u,u=l,l=c,c=h},j);function j(e){D(this,j),M=M||function(){var e=[[[],[],[],[],[]],[[],[],[],[],[]]],t=e[0],i=e[1],n=t[4],r=i[4],a=void 0,s=void 0,o=void 0,u=[],l=[],c=void 0,h=void 0,d=void 0,p=void 0,f=void 0;for(a=0;a<256;a++)l[(u[a]=a<<1^283*(a>>7))^a]=a;for(s=o=0;!n[s];s^=c||1,o=l[o]||1)for(d=(d=o^o<<1^o<<2^o<<3^o<<4)>>8^255&d^99,f=16843009*u[h=u[c=u[r[n[s]=d]=s]]]^65537*h^257*c^16843008*s,p=257*u[d]^16843008*d,a=0;a<4;a++)t[a][s]=p=p<<24^p>>>8,i[a][d]=f=f<<24^f>>>8;for(a=0;a<5;a++)t[a]=t[a].slice(0),i[a]=i[a].slice(0);return e}(),this._tables=[[M[0][0].slice(),M[0][1].slice(),M[0][2].slice(),M[0][3].slice(),M[0][4].slice()],[M[1][0].slice(),M[1][1].slice(),M[1][2].slice(),M[1][3].slice(),M[1][4].slice()]];var t=void 0,i=void 0,n=void 0,r=void 0,a=void 0,s=this._tables[0][4],o=this._tables[1],u=e.length,l=1;if(4!==u&&6!==u&&8!==u)throw new Error("Invalid aes key size");for(r=e.slice(0),a=[],this._key=[r,a],t=u;t<4*u+28;t++)n=r[t-1],(t%u==0||8===u&&t%u==4)&&(n=s[n>>>24]<<24^s[n>>16&255]<<16^s[n>>8&255]<<8^s[255&n],t%u==0&&(n=n<<8^n>>>24^l<<24,l=l<<1^283*(l>>7))),r[t]=r[t-u]^n;for(i=0;t;i++,t--)n=r[3&i?t:t-4],a[i]=t<=4||i<4?n:o[0][s[n>>>24]]^o[1][s[n>>16&255]]^o[2][s[n>>8&255]]^o[3][s[255&n]]}var B=(F.prototype.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},F.prototype.off=function(e,t){if(!this.listeners[e])return!1;var i=this.listeners[e].indexOf(t);return this.listeners[e].splice(i,1),-1<i},F.prototype.trigger=function(e,t){var i=this.listeners[e];if(i)if(2===arguments.length)for(var n=i.length,r=0;r<n;++r)i[r].call(this,t);else for(var a=Array.prototype.slice.call(arguments,1),s=i.length,o=0;o<s;++o)i[o].apply(this,a)},F.prototype.dispose=function(){this.listeners={}},F.prototype.pipe=function(t){this.on("data",function(e){t.push(e)})},F);function F(){D(this,F),this.listeners={}}var V,H=(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)}(q,V=B),q.prototype.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},q.prototype.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},q);function q(){D(this,q);var e=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,V.call(this,B));return e.jobs=[],e.delay=1,e.timeout_=null,e}function W(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24}function G(e,t,i){var n=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),r=new N(Array.prototype.slice.call(t)),a=new Uint8Array(e.byteLength),s=new Int32Array(a.buffer),o=void 0,u=void 0,l=void 0,c=void 0,h=void 0,d=void 0,p=void 0,f=void 0,m=void 0;for(o=i[0],u=i[1],l=i[2],c=i[3],m=0;m<n.length;m+=4)h=W(n[m]),d=W(n[m+1]),p=W(n[m+2]),f=W(n[m+3]),r.decrypt(h,d,p,f,s,m),s[m]=W(s[m]^o),s[m+1]=W(s[m+1]^u),s[m+2]=W(s[m+2]^l),s[m+3]=W(s[m+3]^c),o=h,u=d,l=p,c=f;return a}var z=($.prototype.decryptChunk_=function(t,i,n,r){return function(){var e=G(t,i,n);r.set(e,t.byteOffset)}},R($,null,[{key:"STEP",get:function(){return 32e3}}]),$);function $(e,t,i,n){D(this,$);var r=$.STEP,a=new Int32Array(e.buffer),s=new Uint8Array(e.byteLength),o=0;for(this.asyncStream_=new H,this.asyncStream_.push(this.decryptChunk_(a.subarray(o,o+r),t,i,s)),o=r;o<a.length;o+=r)i=new Uint32Array([W(a[o-4]),W(a[o-3]),W(a[o-2]),W(a[o-1])]),this.asyncStream_.push(this.decryptChunk_(a.subarray(o,o+r),t,i,s));this.asyncStream_.push(function(){n(null,function(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}(s))})}
/**
 * @license
 * Video.js 7.6.4 <http://videojs.com/>
 * Copyright Brightcove, Inc. <https://www.brightcove.com/>
 * Available under Apache License Version 2.0
 * <https://github.com/videojs/video.js/blob/master/LICENSE>
 *
 * Includes vtt.js <https://github.com/mozilla/vtt.js>
 * Available under Apache License Version 2.0
 * <https://github.com/mozilla/vtt.js/blob/master/LICENSE>
 */
var K=[],X=function(s,o){return function(e,t,i){var n=o.levels[t],r=new RegExp("^("+n+")$");if("log"!==e&&i.unshift(e.toUpperCase()+":"),i.unshift(s+":"),K&&K.push([].concat(i)),v.a.console){var a=v.a.console[e];a||"debug"!==e||(a=v.a.console.info||v.a.console.log),a&&n&&r.test(e)&&a[Array.isArray(i)?"apply":"call"](v.a.console,i)}}};var Y=function t(i){function n(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];r("log",a,t)}var r,a="info";return r=X(i,n),n.createLogger=function(e){return t(i+": "+e)},n.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:a},n.level=function(e){if("string"==typeof e){if(!n.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');a=e}return a},(n.history=function(){return K?[].concat(K):[]}).filter=function(t){return(K||[]).filter(function(e){return new RegExp(".*"+t+".*").test(e[0])})},n.history.clear=function(){K&&(K.length=0)},n.history.disable=function(){null!==K&&(K.length=0,K=null)},n.history.enable=function(){null===K&&(K=[])},n.error=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r("error",a,t)},n.warn=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r("warn",a,t)},n.debug=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r("debug",a,t)},n}("VIDEOJS"),J=Y.createLogger,Q=Object.prototype.toString,Z=function(e){return ie(e)?Object.keys(e):[]};function ee(t,i){Z(t).forEach(function(e){return i(t[e],e)})}function te(i){for(var e=arguments.length,t=new Array(1<e?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return Object.assign?Object.assign.apply(Object,[i].concat(t)):(t.forEach(function(e){e&&ee(e,function(e,t){i[t]=e})}),i)}function ie(e){return!!e&&"object"==typeof e}function ne(e){return ie(e)&&"[object Object]"===Q.call(e)&&e.constructor===Object}function re(e,t){if(!e||!t)return"";if("function"!=typeof v.a.getComputedStyle)return"";var i=v.a.getComputedStyle(e);return i?i.getPropertyValue(t)||i[t]:""}function ae(e){return"string"==typeof e&&/\S/.test(e)}function se(e){if(/\s/.test(e))throw new Error("class has illegal whitespace characters")}function oe(){return h.a===v.a.document}function ue(e){return ie(e)&&1===e.nodeType}function le(){try{return v.a.parent!==v.a.self}catch(e){return!0}}function ce(n){return function(e,t){if(!ae(e))return h.a[n](null);ae(t)&&(t=h.a.querySelector(t));var i=ue(t)?t:h.a;return i[n]&&i[n](e)}}function he(e,i,t,n){void 0===e&&(e="div"),void 0===i&&(i={}),void 0===t&&(t={});var r=h.a.createElement(e);return Object.getOwnPropertyNames(i).forEach(function(e){var t=i[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(Y.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+t+"."),r.setAttribute(e,t)):"textContent"===e?de(r,t):r[e]=t}),Object.getOwnPropertyNames(t).forEach(function(e){r.setAttribute(e,t[e])}),n&&Le(r,n),r}function de(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function pe(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function fe(e,t){return se(t),e.classList?e.classList.contains(t):function(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}(t).test(e.className)}function me(e,t){return e.classList?e.classList.add(t):fe(e,t)||(e.className=(e.className+" "+t).trim()),e}function ge(e,t){return e.classList?e.classList.remove(t):(se(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e}function ye(e,t,i){var n=fe(e,t);if("function"==typeof i&&(i=i(e,t)),"boolean"!=typeof i&&(i=!n),i!==n)return i?me(e,t):ge(e,t),e}function ve(i,n){Object.getOwnPropertyNames(n).forEach(function(e){var t=n[e];null==t||!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})}function _e(e){var t={},i=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&0<e.attributes.length)for(var n=e.attributes,r=n.length-1;0<=r;r--){var a=n[r].name,s=n[r].value;"boolean"!=typeof e[a]&&-1===i.indexOf(","+a+",")||(s=null!==s),t[a]=s}return t}function be(e,t){return e.getAttribute(t)}function Te(e,t,i){e.setAttribute(t,i)}function Se(e,t){e.removeAttribute(t)}function ke(){h.a.body.focus(),h.a.onselectstart=function(){return!1}}function Ee(){h.a.onselectstart=function(){return!0}}function we(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach(function(e){void 0!==t[e]&&(i[e]=t[e])}),i.height||(i.height=parseFloat(re(e,"height"))),i.width||(i.width=parseFloat(re(e,"width"))),i}}function Ce(e){var t;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var i=h.a.documentElement,n=h.a.body,r=i.clientLeft||n.clientLeft||0,a=v.a.pageXOffset||n.scrollLeft,s=t.left+a-r,o=i.clientTop||n.clientTop||0,u=v.a.pageYOffset||n.scrollTop,l=t.top+u-o;return{left:Math.round(s),top:Math.round(l)}}function Oe(e,t){var i={},n=Ce(e),r=e.offsetWidth,a=e.offsetHeight,s=n.top,o=n.left,u=t.pageY,l=t.pageX;return t.changedTouches&&(l=t.changedTouches[0].pageX,u=t.changedTouches[0].pageY),i.y=Math.max(0,Math.min(1,(s-u+a)/a)),i.x=Math.max(0,Math.min(1,(l-o)/r)),i}function Ae(e){return ie(e)&&3===e.nodeType}function Pe(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function Ie(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return"function"==typeof e&&(e=e()),ue(e)||Ae(e)?e:"string"==typeof e&&/\S/.test(e)?h.a.createTextNode(e):void 0}).filter(function(e){return e})}function Le(t,e){return Ie(e).forEach(function(e){return t.appendChild(e)}),t}function xe(e,t){return Le(Pe(e),t)}function De(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}var Re=ce("querySelector"),Ue=ce("querySelectorAll"),Me=Object.freeze({isReal:oe,isEl:ue,isInFrame:le,createEl:he,textContent:de,prependTo:pe,hasClass:fe,addClass:me,removeClass:ge,toggleClass:ye,setAttributes:ve,getAttributes:_e,getAttribute:be,setAttribute:Te,removeAttribute:Se,blockTextSelection:ke,unblockTextSelection:Ee,getBoundingClientRect:we,findPosition:Ce,getPointerPosition:Oe,isTextNode:Ae,emptyEl:Pe,normalizeContent:Ie,appendContent:Le,insertContent:xe,isSingleLeftClick:De,$:Re,$$:Ue}),Ne=new WeakMap,je=1;function Be(){return je++}function Fe(e,t){if(Ne.has(e)){var i=Ne.get(e);0===i.handlers[t].length&&(delete i.handlers[t],e.removeEventListener?e.removeEventListener(t,i.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,i.dispatcher)),Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled),0===Object.getOwnPropertyNames(i).length&&Ne.delete(e)}}function Ve(t,i,e,n){e.forEach(function(e){t(i,e,n)})}function He(e){function t(){return!0}function i(){return!1}if(!e||!e.isPropagationStopped){var n=e||v.a.event;for(var r in e={},n)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&("returnValue"===r&&n.preventDefault||(e[r]=n[r]));if(e.target||(e.target=e.srcElement||h.a),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){n.preventDefault&&n.preventDefault(),e.returnValue=!1,n.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),e.cancelBubble=!0,n.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=i,e.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=i,null!==e.clientX&&void 0!==e.clientX){var a=h.a.documentElement,s=h.a.body;e.pageX=e.clientX+(a&&a.scrollLeft||s&&s.scrollLeft||0)-(a&&a.clientLeft||s&&s.clientLeft||0),e.pageY=e.clientY+(a&&a.scrollTop||s&&s.scrollTop||0)-(a&&a.clientTop||s&&s.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e}var qe=!1;!function(){try{var e=Object.defineProperty({},"passive",{get:function(){qe=!0}});v.a.addEventListener("test",null,e),v.a.removeEventListener("test",null,e)}catch(e){}}();var We=["touchstart","touchmove"];function Ge(s,e,t){if(Array.isArray(e))return Ve(Ge,s,e,t);Ne.has(s)||Ne.set(s,{});var o=Ne.get(s);if(o.handlers||(o.handlers={}),o.handlers[e]||(o.handlers[e]=[]),t.guid||(t.guid=Be()),o.handlers[e].push(t),o.dispatcher||(o.disabled=!1,o.dispatcher=function(e,t){if(!o.disabled){e=He(e);var i=o.handlers[e.type];if(i)for(var n=i.slice(0),r=0,a=n.length;r<a&&!e.isImmediatePropagationStopped();r++)try{n[r].call(s,e,t)}catch(e){Y.error(e)}}}),1===o.handlers[e].length)if(s.addEventListener){var i=!1;qe&&-1<We.indexOf(e)&&(i={passive:!0}),s.addEventListener(e,o.dispatcher,i)}else s.attachEvent&&s.attachEvent("on"+e,o.dispatcher)}function ze(e,t,i){if(Ne.has(e)){var n=Ne.get(e);if(n.handlers){if(Array.isArray(t))return Ve(ze,e,t,i);var r=function(e,t){n.handlers[t]=[],Fe(e,t)};if(void 0!==t){var a=n.handlers[t];if(a)if(i){if(i.guid)for(var s=0;s<a.length;s++)a[s].guid===i.guid&&a.splice(s--,1);Fe(e,t)}else r(e,t)}else for(var o in n.handlers)Object.prototype.hasOwnProperty.call(n.handlers||{},o)&&r(e,o)}}}function $e(e,t,i){var n=Ne.has(e)?Ne.get(e):{},r=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=He(t),n.dispatcher&&n.dispatcher.call(e,t,i),r&&!t.isPropagationStopped()&&!0===t.bubbles)$e.call(null,r,t,i);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){Ne.has(t.target)||Ne.set(t.target,{});var a=Ne.get(t.target);t.target[t.type]&&(a.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),a.disabled=!1)}return!t.defaultPrevented}function Ke(e,t,i){if(Array.isArray(t))return Ve(Ke,e,t,i);function n(){ze(e,t,n),i.apply(this,arguments)}n.guid=i.guid=i.guid||Be(),Ge(e,t,n)}function Xe(e,t,i){function n(){ze(e,t,n),i.apply(this,arguments)}n.guid=i.guid=i.guid||Be(),Ge(e,t,n)}var Ye,Je=Object.freeze({fixEvent:He,on:Ge,off:ze,trigger:$e,one:Ke,any:Xe}),Qe=!1,Ze=function(){if(oe()&&!1!==Ye.options.autoSetup){var e=Array.prototype.slice.call(h.a.getElementsByTagName("video")),t=Array.prototype.slice.call(h.a.getElementsByTagName("audio")),i=Array.prototype.slice.call(h.a.getElementsByTagName("video-js")),n=e.concat(t,i);if(n&&0<n.length)for(var r=0,a=n.length;r<a;r++){var s=n[r];if(!s||!s.getAttribute){et(1);break}void 0===s.player&&null!==s.getAttribute("data-setup")&&Ye(s)}else Qe||et(1)}};function et(e,t){t&&(Ye=t),v.a.setTimeout(Ze,e)}oe()&&"complete"===h.a.readyState?Qe=!0:Ke(v.a,"load",function(){Qe=!0});function tt(e){var t=h.a.createElement("style");return t.className=e,t}function it(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t}function nt(e,t,i){t.guid||(t.guid=Be());var n=t.bind(e);return n.guid=i?i+"_"+t.guid:t.guid,n}function rt(t,i){var n=v.a.performance.now();return function(){var e=v.a.performance.now();i<=e-n&&(t.apply(void 0,arguments),n=e)}}function at(){}var st;at.prototype.allowedEvents_={},at.prototype.addEventListener=at.prototype.on=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},Ge(this,e,t),this.addEventListener=i},at.prototype.removeEventListener=at.prototype.off=function(e,t){ze(this,e,t)},at.prototype.one=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},Ke(this,e,t),this.addEventListener=i},at.prototype.any=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},Xe(this,e,t),this.addEventListener=i},at.prototype.dispatchEvent=at.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=He(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),$e(this,e)},at.prototype.queueTrigger=function(e){var t=this;st=st||new Map;var i=e.type||e,n=st.get(this);n||(n=new Map,st.set(this,n));var r=n.get(i);n.delete(i),v.a.clearTimeout(r);var a=v.a.setTimeout(function(){0===n.size&&(n=null,st.delete(t)),t.trigger(e)},0);n.set(i,a)};function ot(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length}function ut(e){if(!e.nodeName&&!pt(e))throw new Error("Invalid target; must be a DOM node or evented object.")}function lt(e){if(!ot(e))throw new Error("Invalid event type; must be a non-empty string or array.")}function ct(e){if("function"!=typeof e)throw new Error("Invalid listener; must be a function.")}function ht(e,t){var i,n,r,a=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return r=a?(i=e.eventBusEl_,3<=t.length&&t.shift(),n=t[0],t[1]):(i=t[0],n=t[1],t[2]),ut(i),lt(n),ct(r),{isTargetingSelf:a,target:i,type:n,listener:r=nt(e,r)}}function dt(e,t,i,n){ut(e),e.nodeName?Je[t](e,i,n):e[t](i,n)}var pt=function(t){return t instanceof at||!!t.eventBusEl_&&["on","one","off","trigger"].every(function(e){return"function"==typeof t[e]})},ft={on:function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];var r=ht(this,i),a=r.isTargetingSelf,s=r.target,o=r.type,u=r.listener;if(dt(s,"on",o,u),!a){var l=function(){return e.off(s,o,u)};l.guid=u.guid;var c=function(){return e.off("dispose",l)};c.guid=u.guid,dt(this,"on","dispose",l),dt(s,"on","dispose",c)}},one:function(){for(var r=this,e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=ht(this,t),a=n.isTargetingSelf,s=n.target,o=n.type,u=n.listener;if(a)dt(s,"one",o,u);else{var l=function e(){r.off(s,o,e);for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];u.apply(null,i)};l.guid=u.guid,dt(s,"one",o,l)}},any:function(){for(var r=this,e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=ht(this,t),a=n.isTargetingSelf,s=n.target,o=n.type,u=n.listener;if(a)dt(s,"any",o,u);else{var l=function e(){r.off(s,o,e);for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];u.apply(null,i)};l.guid=u.guid,dt(s,"any",o,l)}},off:function(e,t,i){if(!e||ot(e))ze(this.eventBusEl_,e,t);else{var n=e,r=t;ut(n),lt(r),ct(i),i=nt(this,i),this.off("dispose",i),n.nodeName?(ze(n,r,i),ze(n,"dispose",i)):pt(n)&&(n.off(r,i),n.off("dispose",i))}},trigger:function(e,t){return $e(this.eventBusEl_,e,t)}};function mt(e,t){void 0===t&&(t={});var i=t.eventBusKey;if(i){if(!e[i].nodeName)throw new Error('The eventBusKey "'+i+'" does not refer to an element.');e.eventBusEl_=e[i]}else e.eventBusEl_=he("span",{className:"vjs-event-bus"});return te(e,ft),e.eventedCallbacks&&e.eventedCallbacks.forEach(function(e){e()}),e.on("dispose",function(){e.off(),v.a.setTimeout(function(){e.eventBusEl_=null},0)}),e}var gt={state:{},setState:function(e){var i,n=this;return"function"==typeof e&&(e=e()),ee(e,function(e,t){n.state[t]!==e&&((i=i||{})[t]={from:n.state[t],to:e}),n.state[t]=e}),i&&pt(this)&&this.trigger({changes:i,type:"statechanged"}),i}};function yt(e,t){return te(e,gt),e.state=te({},e.state,t),"function"==typeof e.handleStateChanged&&pt(e)&&e.on("statechanged",e.handleStateChanged),e}function vt(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toLowerCase()})}function _t(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})}function bt(){for(var i={},e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.forEach(function(e){e&&ee(e,function(e,t){ne(e)?(ne(i[t])||(i[t]={}),i[t]=bt(i[t],e)):i[t]=e})}),i}var Tt=function(){function l(e,t,i){if(!e&&this.play?this.player_=e=this:this.player_=e,this.parentComponent_=null,this.options_=bt({},this.options_),t=this.options_=bt(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){var n=e&&e.id&&e.id()||"no_player";this.id_=n+"_component_"+Be()}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),!1!==t.evented&&mt(this,{eventBusKey:this.el_?"el_":null}),yt(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,(this.clearingTimersOnDispose_=!1)!==t.initChildren&&this.initChildren(),this.ready(i),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var e=l.prototype;return e.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var e=this.children_.length-1;0<=e;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Ne.has(this.el_)&&Ne.delete(this.el_),this.el_=null),this.player_=null},e.player=function(){return this.player_},e.options=function(e){return e&&(this.options_=bt(this.options_,e)),this.options_},e.el=function(){return this.el_},e.createEl=function(e,t,i){return he(e,t,i)},e.localize=function(e,r,t){void 0===t&&(t=e);var i=this.player_.language&&this.player_.language(),n=this.player_.languages&&this.player_.languages(),a=n&&n[i],s=i&&i.split("-")[0],o=n&&n[s],u=t;return a&&a[e]?u=a[e]:o&&o[e]&&(u=o[e]),r&&(u=u.replace(/\{(\d+)\}/g,function(e,t){var i=r[t-1],n=i;return void 0===i&&(n=e),n})),u},e.contentEl=function(){return this.contentEl_||this.el_},e.id=function(){return this.id_},e.name=function(){return this.name_},e.children=function(){return this.children_},e.getChildById=function(e){return this.childIndex_[e]},e.getChild=function(e){if(e)return this.childNameIndex_[e]},e.addChild=function(e,t,i){var n,r;if(void 0===t&&(t={}),void 0===i&&(i=this.children_.length),"string"==typeof e){r=_t(e);var a=t.componentClass||r;t.name=r;var s=l.getComponent(a);if(!s)throw new Error("Component "+a+" does not exist");if("function"!=typeof s)return null;n=new s(this.player_||this,t)}else n=e;if(n.parentComponent_&&n.parentComponent_.removeChild(n),this.children_.splice(i,0,n),n.parentComponent_=this,"function"==typeof n.id&&(this.childIndex_[n.id()]=n),(r=r||n.name&&_t(n.name()))&&(this.childNameIndex_[r]=n,this.childNameIndex_[vt(r)]=n),"function"==typeof n.el&&n.el()){var o=this.contentEl().children[i]||null;this.contentEl().insertBefore(n.el(),o)}return n},e.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,i=this.children_.length-1;0<=i;i--)if(this.children_[i]===e){t=!0,this.children_.splice(i,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[_t(e.name())]=null,this.childNameIndex_[vt(e.name())]=null;var n=e.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},e.initChildren=function(){var r=this,n=this.options_.children;if(n){var e,a=this.options_,i=l.getComponent("Tech");(e=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter(function(t){return!e.some(function(e){return"string"==typeof e?t===e:t===e.name})})).map(function(e){var t,i;return i="string"==typeof e?n[t=e]||r.options_[t]||{}:(t=e.name,e),{name:t,opts:i}}).filter(function(e){var t=l.getComponent(e.opts.componentClass||_t(e.name));return t&&!i.isTech(t)}).forEach(function(e){var t=e.name,i=e.opts;if(void 0!==a[t]&&(i=a[t]),!1!==i){!0===i&&(i={}),i.playerOptions=r.options_.playerOptions;var n=r.addChild(t,i);n&&(r[t]=n)}})}},e.buildCSSClass=function(){return""},e.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},e.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&0<e.length&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},e.$=function(e,t){return Re(e,t||this.contentEl())},e.$$=function(e,t){return Ue(e,t||this.contentEl())},e.hasClass=function(e){return fe(this.el_,e)},e.addClass=function(e){me(this.el_,e)},e.removeClass=function(e){ge(this.el_,e)},e.toggleClass=function(e,t){ye(this.el_,e,t)},e.show=function(){this.removeClass("vjs-hidden")},e.hide=function(){this.addClass("vjs-hidden")},e.lockShowing=function(){this.addClass("vjs-lock-showing")},e.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.getAttribute=function(e){return be(this.el_,e)},e.setAttribute=function(e,t){Te(this.el_,e,t)},e.removeAttribute=function(e){Se(this.el_,e)},e.width=function(e,t){return this.dimension("width",e,t)},e.height=function(e,t){return this.dimension("height",e,t)},e.dimensions=function(e,t){this.width(e,!0),this.height(t)},e.dimension=function(e,t,i){if(void 0!==t)return null!==t&&t==t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(i||this.trigger("componentresize"));if(!this.el_)return 0;var n=this.el_.style[e],r=n.indexOf("px");return-1!==r?parseInt(n.slice(0,r),10):parseInt(this.el_["offset"+_t(e)],10)},e.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=re(this.el_,e),0===(t=parseFloat(t))||isNaN(t)){var i="offset"+_t(e);t=this.el_[i]}return t},e.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.currentWidth=function(){return this.currentDimension("width")},e.currentHeight=function(){return this.currentDimension("height")},e.focus=function(){this.el_.focus()},e.blur=function(){this.el_.blur()},e.handleKeyDown=function(e){this.player_&&(e.stopPropagation(),this.player_.handleKeyDown(e))},e.handleKeyPress=function(e){this.handleKeyDown(e)},e.emitTapEvents=function(){var n,t=0,r=null;this.on("touchstart",function(e){1===e.touches.length&&(r={pageX:e.touches[0].pageX,pageY:e.touches[0].pageY},t=v.a.performance.now(),n=!0)}),this.on("touchmove",function(e){if(1<e.touches.length)n=!1;else if(r){var t=e.touches[0].pageX-r.pageX,i=e.touches[0].pageY-r.pageY;10<Math.sqrt(t*t+i*i)&&(n=!1)}});function e(){n=!1}this.on("touchleave",e),this.on("touchcancel",e),this.on("touchend",function(e){!(r=null)===n&&v.a.performance.now()-t<200&&(e.preventDefault(),this.trigger("tap"))})},e.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t,i=nt(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){i(),this.clearInterval(t),t=this.setInterval(i,250)});var e=function(e){i(),this.clearInterval(t)};this.on("touchmove",i),this.on("touchend",e),this.on("touchcancel",e)}},e.setTimeout=function(e,t){var i,n=this;return e=nt(this,e),this.clearTimersOnDispose_(),i=v.a.setTimeout(function(){n.setTimeoutIds_.has(i)&&n.setTimeoutIds_.delete(i),e()},t),this.setTimeoutIds_.add(i),i},e.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),v.a.clearTimeout(e)),e},e.setInterval=function(e,t){e=nt(this,e),this.clearTimersOnDispose_();var i=v.a.setInterval(e,t);return this.setIntervalIds_.add(i),i},e.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),v.a.clearInterval(e)),e},e.requestAnimationFrame=function(e){var t,i=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=nt(this,e),t=v.a.requestAnimationFrame(function(){i.rafIds_.has(t)&&i.rafIds_.delete(t),e()}),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},e.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),v.a.cancelAnimationFrame(e)),e):this.clearTimeout(e)},e.clearTimersOnDispose_=function(){var n=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(function(e){var t=e[0],i=e[1];n[t].forEach(n[i],n)}),n.clearingTimersOnDispose_=!1}))},l.registerComponent=function(e,t){if("string"!=typeof e||!e)throw new Error('Illegal component name, "'+e+'"; must be a non-empty string.');var i,n=l.getComponent("Tech"),r=n&&n.isTech(t),a=l===t||l.prototype.isPrototypeOf(t.prototype);if(r||!a)throw i=r?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+e+'"; '+i+".");e=_t(e),l.components_||(l.components_={});var s=l.getComponent("Player");if("Player"===e&&s&&s.players){var o=s.players,u=Object.keys(o);if(o&&0<u.length&&u.map(function(e){return o[e]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return l.components_[e]=t,l.components_[vt(e)]=t},l.getComponent=function(e){if(e&&l.components_)return l.components_[e]},l}();function St(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}function kt(e,t){return(kt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Et(e,t,i){return(Et=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,i){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return i&&kt(r,i.prototype),r}).apply(null,arguments)}function wt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Tt.prototype.supportsRaf_="function"==typeof v.a.requestAnimationFrame&&"function"==typeof v.a.cancelAnimationFrame,Tt.registerComponent("Component",Tt);var Ct,Ot,At,Pt,It=v.a.navigator&&v.a.navigator.userAgent||"",Lt=/AppleWebKit\/([\d.]+)/i.exec(It),xt=Lt?parseFloat(Lt.pop()):null,Dt=/iPad/i.test(It),Rt=/iPhone/i.test(It)&&!Dt,Ut=/iPod/i.test(It),Mt=Rt||Dt||Ut,Nt=(Ct=It.match(/OS (\d+)_/i))&&Ct[1]?Ct[1]:null,jt=/Android/i.test(It),Bt=function(){var e=It.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),i=e[2]&&parseFloat(e[2]);return t&&i?parseFloat(e[1]+"."+e[2]):t||null}(),Ft=jt&&Bt<5&&xt<537,Vt=/Firefox/i.test(It),Ht=/Edge/i.test(It),qt=!Ht&&(/Chrome/i.test(It)||/CriOS/i.test(It)),Wt=(Ot=It.match(/(Chrome|CriOS)\/(\d+)/))&&Ot[2]?parseFloat(Ot[2]):null,Gt=(At=/MSIE\s(\d+)\.\d/.exec(It),!(Pt=At&&parseFloat(At[1]))&&/Trident\/7.0/i.test(It)&&/rv:11.0/.test(It)&&(Pt=11),Pt),zt=/Safari/i.test(It)&&!qt&&!jt&&!Ht,$t=(zt||Mt)&&!qt,Kt=/Windows/i.test(It),Xt=oe()&&("ontouchstart"in v.a||v.a.navigator.maxTouchPoints||v.a.DocumentTouch&&v.a.document instanceof v.a.DocumentTouch),Yt=Object.freeze({IS_IPAD:Dt,IS_IPHONE:Rt,IS_IPOD:Ut,IS_IOS:Mt,IOS_VERSION:Nt,IS_ANDROID:jt,ANDROID_VERSION:Bt,IS_NATIVE_ANDROID:Ft,IS_FIREFOX:Vt,IS_EDGE:Ht,IS_CHROME:qt,CHROME_VERSION:Wt,IE_VERSION:Gt,IS_SAFARI:zt,IS_ANY_SAFARI:$t,IS_WINDOWS:Kt,TOUCH_ENABLED:Xt});function Jt(e,t,i,n){return function(e,t,i){if("number"!=typeof t||t<0||i<t)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+i+").")}(e,n,i.length-1),i[n][t]}function Qt(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:Jt.bind(null,"start",0,e),end:Jt.bind(null,"end",1,e)}}function Zt(e,t){return Array.isArray(e)?Qt(e):void 0===e||void 0===t?Qt():Qt([[e,t]])}function ei(e,t){var i,n,r=0;if(!t)return 0;e&&e.length||(e=Zt(0,0));for(var a=0;a<e.length;a++)i=e.start(a),t<(n=e.end(a))&&(n=t),r+=n-i;return r/t}for(var ti,ii={prefixed:!0},ni=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],ri=ni[0],ai=0;ai<ni.length;ai++)if(ni[ai][1]in h.a){ti=ni[ai];break}if(ti){for(var si=0;si<ti.length;si++)ii[ri[si]]=ti[si];ii.prefixed=ti[0]!==ri[0]}function oi(e){if(e instanceof oi)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:ie(e)&&("number"==typeof e.code&&(this.code=e.code),te(this,e)),this.message||(this.message=oi.defaultMessages[this.code]||"")}oi.prototype.code=0,oi.prototype.message="",oi.prototype.status=null,oi.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],oi.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 ui=0;ui<oi.errorTypes.length;ui++)oi[oi.errorTypes[ui]]=ui,oi.prototype[oi.errorTypes[ui]]=ui;function li(e){return null!=e&&"function"==typeof e.then}function ci(e){li(e)&&e.then(null,function(e){})}function hi(n){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(e,t,i){return n[t]&&(e[t]=n[t]),e},{cues:n.cues&&Array.prototype.map.call(n.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})}var di=function(e){var t=e.$$("track"),i=Array.prototype.map.call(t,function(e){return e.track});return Array.prototype.map.call(t,function(e){var t=hi(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return-1===i.indexOf(e)}).map(hi))},pi=function(e,i){return e.forEach(function(e){var t=i.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return t.addCue(e)})}),i.textTracks()},fi="vjs-modal-dialog",mi=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=he("div",{className:fi+"-content"},{role:"document"}),i.descEl_=he("p",{className:fi+"-description vjs-control-text",id:i.el().getAttribute("aria-describedby")}),de(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}St(e,n);var t=e.prototype;return t.createEl=function(){return n.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.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,n.prototype.dispose.call(this)},t.buildCSSClass=function(){return fi+" vjs-hidden "+n.prototype.buildCSSClass.call(this)},t.label=function(){return this.localize(this.options_.label||"Modal Window")},t.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.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.on("keydown",this.handleKeyDown),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},t.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},t.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},t.closeable=function(e){if("boolean"==typeof e){var t=this.closeable_=!!e,i=this.getChild("closeButton");if(t&&!i){var n=this.contentEl_;this.contentEl_=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=n,this.on(i,"close",this.close)}!t&&i&&(this.off(i,"close",this.close),this.removeChild(i),i.dispose())}return this.closeable_},t.fill=function(){this.fillWith(this.content())},t.fillWith=function(e){var t=this.contentEl(),i=t.parentNode,n=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(t),this.empty(),xe(t,e),this.trigger("modalfill"),n?i.insertBefore(t,n):i.appendChild(t);var r=this.getChild("closeButton");r&&i.appendChild(r.el_)},t.empty=function(){this.trigger("beforemodalempty"),Pe(this.contentEl()),this.trigger("modalempty")},t.content=function(e){return void 0!==e&&(this.content_=e),this.content_},t.conditionalFocus_=function(){var e=h.a.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,!t.contains(e)&&t!==e||(this.previouslyActiveEl_=e,this.focus())},t.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},t.handleKeyDown=function(e){if(e.stopPropagation(),p.a.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(p.a.isEventKey(e,"Tab")){for(var t,i=this.focusableEls_(),n=this.el_.querySelector(":focus"),r=0;r<i.length;r++)if(n===i[r]){t=r;break}h.a.activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(i[i.length-1].focus(),e.preventDefault()):e.shiftKey||t!==i.length-1||(i[0].focus(),e.preventDefault())}},t.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,function(e){return(e instanceof v.a.HTMLAnchorElement||e instanceof v.a.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof v.a.HTMLInputElement||e instanceof v.a.HTMLSelectElement||e instanceof v.a.HTMLTextAreaElement||e instanceof v.a.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof v.a.HTMLIFrameElement||e instanceof v.a.HTMLObjectElement||e instanceof v.a.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")})},e}(Tt);mi.prototype.options_={pauseOnOpen:!0,temporary:!0},Tt.registerComponent("ModalDialog",mi);var gi=function(n){function e(e){var t;void 0===e&&(e=[]),(t=n.call(this)||this).tracks_=[],Object.defineProperty(wt(t),"length",{get:function(){return this.tracks_.length}});for(var i=0;i<e.length;i++)t.addTrack(e[i]);return t}St(e,n);var t=e.prototype;return t.addTrack=function(e){var t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this}))},t.removeTrack=function(e){for(var t,i=0,n=this.length;i<n;i++)if(this[i]===e){(t=this[i]).off&&t.off(),this.tracks_.splice(i,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})},t.getTrackById=function(e){for(var t=null,i=0,n=this.length;i<n;i++){var r=this[i];if(r.id===e){t=r;break}}return t},e}(at);for(var yi in gi.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},gi.prototype.allowedEvents_)gi.prototype["on"+yi]=null;function vi(e,t){for(var i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].enabled=!1)}function _i(e,t){for(var i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].selected=!1)}function bi(e){var t=["protocol","hostname","port","pathname","search","hash","host"],i=h.a.createElement("a");i.href=e;var n,r=""===i.host&&"file:"!==i.protocol;r&&((n=h.a.createElement("div")).innerHTML='<a href="'+e+'"></a>',i=n.firstChild,n.setAttribute("style","display:none; position:absolute;"),h.a.body.appendChild(n));for(var a={},s=0;s<t.length;s++)a[t[s]]=i[t[s]];return"http:"===a.protocol&&(a.host=a.host.replace(/:80$/,"")),"https:"===a.protocol&&(a.host=a.host.replace(/:443$/,"")),a.protocol||(a.protocol=v.a.location.protocol),r&&h.a.body.removeChild(n),a}function Ti(e){if(!e.match(/^https?:\/\//)){var t=h.a.createElement("div");t.innerHTML='<a href="'+e+'">x</a>',e=t.firstChild.href}return e}function Si(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""}function ki(e){var t=v.a.location,i=bi(e);return(":"===i.protocol?t.protocol:i.protocol)+i.host!==t.protocol+t.host}function Ei(e,t){var i=new v.a.WebVTT.Parser(v.a,v.a.vttjs,v.a.WebVTT.StringDecoder()),n=[];i.oncue=function(e){t.addCue(e)},i.onparsingerror=function(e){n.push(e)},i.onflush=function(){t.trigger({type:"loadeddata",target:t})},i.parse(e),0<n.length&&(v.a.console&&v.a.console.groupCollapsed&&v.a.console.groupCollapsed("Text Track parsing errors for "+t.src),n.forEach(function(e){return Y.error(e)}),v.a.console&&v.a.console.groupEnd&&v.a.console.groupEnd()),i.flush()}var wi=function(n){function e(e){var t;void 0===e&&(e=[]);for(var i=e.length-1;0<=i;i--)if(e[i].enabled){vi(e,e[i]);break}return(t=n.call(this,e)||this).changing_=!1,t}St(e,n);var t=e.prototype;return t.addTrack=function(e){var t=this;e.enabled&&vi(this,e),n.prototype.addTrack.call(this,e),e.addEventListener&&(e.enabledChange_=function(){t.changing_||(t.changing_=!0,vi(t,e),t.changing_=!1,t.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))},t.removeTrack=function(e){n.prototype.removeTrack.call(this,e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)},e}(gi),Ci=function(n){function e(e){var t;void 0===e&&(e=[]);for(var i=e.length-1;0<=i;i--)if(e[i].selected){_i(e,e[i]);break}return(t=n.call(this,e)||this).changing_=!1,Object.defineProperty(wt(t),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),t}St(e,n);var t=e.prototype;return t.addTrack=function(e){var t=this;e.selected&&_i(this,e),n.prototype.addTrack.call(this,e),e.addEventListener&&(e.selectedChange_=function(){t.changing_||(t.changing_=!0,_i(t,e),t.changing_=!1,t.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))},t.removeTrack=function(e){n.prototype.removeTrack.call(this,e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)},e}(gi),Oi=function(i){function e(){return i.apply(this,arguments)||this}St(e,i);var t=e.prototype;return t.addTrack=function(e){var t=this;i.prototype.addTrack.call(this,e),this.queueChange_||(this.queueChange_=function(){return t.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return t.trigger("selectedlanguagechange")}),e.addEventListener("modechange",this.queueChange_);-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)},t.removeTrack=function(e){i.prototype.removeTrack.call(this,e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},e}(gi),Ai=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,i=e.length;t<i;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},t.getTrackElementByTrack_=function(e){for(var t,i=0,n=this.trackElements_.length;i<n;i++)if(e===this.trackElements_[i].track){t=this.trackElements_[i];break}return t},t.removeTrackElement_=function(e){for(var t=0,i=this.trackElements_.length;t<i;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}},e}(),Pi=function(){function t(e){t.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var e=t.prototype;return e.setCues_=function(e){var t=this.length||0,i=0,n=e.length;this.cues_=e,this.length_=e.length;function r(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})}if(t<n)for(i=t;i<n;i++)r.call(this,i)},e.getCueById=function(e){for(var t=null,i=0,n=this.length;i<n;i++){var r=this[i];if(r.id===e){t=r;break}}return t},t}(),Ii={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Li={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},xi={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Di={disabled:"disabled",hidden:"hidden",showing:"showing"},Ri=function(a){function e(e){var t;void 0===e&&(e={}),t=a.call(this)||this;function i(e){Object.defineProperty(wt(t),e,{get:function(){return n[e]},set:function(){}})}var n={id:e.id||"vjs_track_"+Be(),kind:e.kind||"",label:e.label||"",language:e.language||""};for(var r in n)i(r);return t}return St(e,a),e}(at),Ui=Object.freeze({parseUrl:bi,getAbsoluteURL:Ti,getFileExtension:Si,isCrossOrigin:ki}),Mi=function(l){function e(e){var t;if(void 0===e&&(e={}),!e.tech)throw new Error("A tech was not provided.");var i=bt(e,{kind:xi[e.kind]||"subtitles",language:e.language||e.srclang||""}),n=Di[i.mode]||"disabled",r=i.default;"metadata"!==i.kind&&"chapters"!==i.kind||(n="hidden"),(t=l.call(this,i)||this).tech_=i.tech,t.cues_=[],t.activeCues_=[];var a=new Pi(t.cues_),s=new Pi(t.activeCues_),o=!1,u=nt(wt(t),function(){this.activeCues=this.activeCues,o&&(this.trigger("cuechange"),o=!1)});return"disabled"!==n&&t.tech_.ready(function(){t.tech_.on("timeupdate",u)},!0),Object.defineProperties(wt(t),{default:{get:function(){return r},set:function(){}},mode:{get:function(){return n},set:function(e){var t=this;Di[e]&&("disabled"!==(n=e)?this.tech_.ready(function(){t.tech_.on("timeupdate",u)},!0):this.tech_.off("timeupdate",u),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?a:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return s;for(var e=this.tech_.currentTime(),t=[],i=0,n=this.cues.length;i<n;i++){var r=this.cues[i];r.startTime<=e&&r.endTime>=e?t.push(r):r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e&&t.push(r)}if(o=!1,t.length!==this.activeCues_.length)o=!0;else for(var a=0;a<t.length;a++)-1===this.activeCues_.indexOf(t[a])&&(o=!0);return this.activeCues_=t,s.setCues_(this.activeCues_),s},set:function(){}}}),i.src?(t.src=i.src,function(e,n){var t={uri:e},i=ki(e);i&&(t.cors=i),c()(t,nt(this,function(e,t,i){if(e)return Y.error(e,t);n.loaded_=!0,"function"!=typeof v.a.WebVTT?n.tech_&&n.tech_.any(["vttjsloaded","vttjserror"],function(e){if("vttjserror"!==e.type)return Ei(i,n);Y.error("vttjs failed to load, stopping trying to process "+n.src)}):Ei(i,n)}))}(i.src,wt(t))):t.loaded_=!0,t}St(e,l);var t=e.prototype;return t.addCue=function(e){var t=e;if(v.a.vttjs&&!(e instanceof v.a.vttjs.VTTCue)){for(var i in t=new v.a.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)i in t||(t[i]=e[i]);t.id=e.id,t.originalCue_=e}for(var n=this.tech_.textTracks(),r=0;r<n.length;r++)n[r]!==this&&n[r].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},t.removeCue=function(e){for(var t=this.cues_.length;t--;){var i=this.cues_[t];if(i===e||i.originalCue_&&i.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},e}(Ri);Mi.prototype.allowedEvents_={cuechange:"cuechange"};var Ni=function(r){function e(e){var t;void 0===e&&(e={});var i=bt(e,{kind:Li[e.kind]||""});t=r.call(this,i)||this;var n=!1;return Object.defineProperty(wt(t),"enabled",{get:function(){return n},set:function(e){"boolean"==typeof e&&e!==n&&(n=e,this.trigger("enabledchange"))}}),i.enabled&&(t.enabled=i.enabled),t.loaded_=!0,t}return St(e,r),e}(Ri),ji=function(r){function e(e){var t;void 0===e&&(e={});var i=bt(e,{kind:Ii[e.kind]||""});t=r.call(this,i)||this;var n=!1;return Object.defineProperty(wt(t),"selected",{get:function(){return n},set:function(e){"boolean"==typeof e&&e!==n&&(n=e,this.trigger("selectedchange"))}}),i.selected&&(t.selected=i.selected),t}return St(e,r),e}(Ri),Bi=function(r){function e(e){var t,i;void 0===e&&(e={}),t=r.call(this)||this;var n=new Mi(e);return t.kind=n.kind,t.src=n.src,t.srclang=n.language,t.label=n.label,t.default=n.default,Object.defineProperties(wt(t),{readyState:{get:function(){return i}},track:{get:function(){return n}}}),i=0,n.addEventListener("loadeddata",function(){i=2,t.trigger({type:"load",target:wt(t)})}),t}return St(e,r),e}(at);Bi.prototype.allowedEvents_={load:"load"},Bi.NONE=0,Bi.LOADING=1,Bi.LOADED=2,Bi.ERROR=3;var Fi={audio:{ListClass:wi,TrackClass:Ni,capitalName:"Audio"},video:{ListClass:Ci,TrackClass:ji,capitalName:"Video"},text:{ListClass:Oi,TrackClass:Mi,capitalName:"Text"}};Object.keys(Fi).forEach(function(e){Fi[e].getterName=e+"Tracks",Fi[e].privateName=e+"Tracks_"});var Vi={remoteText:{ListClass:Oi,TrackClass:Mi,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Ai,TrackClass:Bi,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Hi=bt(Fi,Vi);Vi.names=Object.keys(Vi),Fi.names=Object.keys(Fi),Hi.names=[].concat(Vi.names).concat(Fi.names);var qi=function(t){function i(i,e){var n;return void 0===i&&(i={}),void 0===e&&(e=function(){}),i.reportTouchActivity=!1,(n=t.call(this,null,i,e)||this).hasStarted_=!1,n.on("playing",function(){this.hasStarted_=!0}),n.on("loadstart",function(){this.hasStarted_=!1}),Hi.names.forEach(function(e){var t=Hi[e];i&&i[t.getterName]&&(n[t.privateName]=i[t.getterName])}),n.featuresProgressEvents||n.manualProgressOn(),n.featuresTimeupdateEvents||n.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(e){!1===i["native"+e+"Tracks"]&&(n["featuresNative"+e+"Tracks"]=!1)}),!1===i.nativeCaptions||!1===i.nativeTextTracks?n.featuresNativeTextTracks=!1:!0!==i.nativeCaptions&&!0!==i.nativeTextTracks||(n.featuresNativeTextTracks=!0),n.featuresNativeTextTracks||n.emulateTextTracks(),n.autoRemoteTextTracks_=new Hi.text.ListClass,n.initTrackListeners(),i.nativeControlsForTouch||n.emitTapEvents(),n.constructor&&(n.name_=n.constructor.name||"Unknown Tech"),n}St(i,t);var e=i.prototype;return e.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",function(){return t.setTimeout(function(){return t.triggerSourceset(e)},1)}),this.trigger({src:e,type:"sourceset"})},e.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},e.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},e.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(nt(this,function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),1===(this.bufferedPercent_=e)&&this.stopTrackingProgress()}),500)},e.onDurationChange=function(e){this.duration_=this.duration()},e.buffered=function(){return Zt(0,0)},e.bufferedPercent=function(){return ei(this.buffered(),this.duration_)},e.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},e.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},e.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},e.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},e.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.dispose=function(){this.clearTracks(Fi.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},e.clearTracks=function(e){var r=this;(e=[].concat(e)).forEach(function(e){for(var t=r[e+"Tracks"]()||[],i=t.length;i--;){var n=t[i];"text"===e&&r.removeRemoteTextTrack(n),t.removeTrack(n)}})},e.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var i=e[t];this.removeRemoteTextTrack(i)}},e.reset=function(){},e.error=function(e){return void 0!==e&&(this.error_=new oi(e),this.trigger("error")),this.error_},e.played=function(){return this.hasStarted_?Zt(0,0):Zt()},e.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.initTrackListeners=function(){var r=this;Fi.names.forEach(function(e){function t(){r.trigger(e+"trackchange")}var i=Fi[e],n=r[i.getterName]();n.addEventListener("removetrack",t),n.addEventListener("addtrack",t),r.on("dispose",function(){n.removeEventListener("removetrack",t),n.removeEventListener("addtrack",t)})})},e.addWebVttScript_=function(){var e=this;if(!v.a.WebVTT)if(h.a.body.contains(this.el())){if(!this.options_["vtt.js"]&&ne(l.a)&&0<Object.keys(l.a).length)return void this.trigger("vttjsloaded");var t=h.a.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){t.onload=null,t.onerror=null}),v.a.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},e.emulateTextTracks=function(){function t(e){return n.addTrack(e.track)}function i(e){return n.removeTrack(e.track)}var e=this,n=this.textTracks(),r=this.remoteTextTracks();r.on("addtrack",t),r.on("removetrack",i),this.addWebVttScript_();function a(){return e.trigger("texttrackchange")}function s(){a();for(var e=0;e<n.length;e++){var t=n[e];t.removeEventListener("cuechange",a),"showing"===t.mode&&t.addEventListener("cuechange",a)}}s(),n.addEventListener("change",s),n.addEventListener("addtrack",s),n.addEventListener("removetrack",s),this.on("dispose",function(){r.off("addtrack",t),r.off("removetrack",i),n.removeEventListener("change",s),n.removeEventListener("addtrack",s),n.removeEventListener("removetrack",s);for(var e=0;e<n.length;e++){n[e].removeEventListener("cuechange",a)}})},e.addTextTrack=function(e,t,i){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,i,n,r){void 0===r&&(r={});var a=e.textTracks();r.kind=t,i&&(r.label=i),n&&(r.language=n),r.tech=e;var s=new Hi.text.TrackClass(r);return a.addTrack(s),s}(this,e,t,i)},e.createRemoteTextTrack=function(e){var t=bt(e,{tech:this});return new Vi.remoteTextEl.TrackClass(t)},e.addRemoteTextTrack=function(e,t){var i=this;void 0===e&&(e={});var n=this.createRemoteTextTrack(e);return!0!==t&&!1!==t&&(Y.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),!0!==t&&this.ready(function(){return i.autoRemoteTextTracks_.addTrack(n.track)}),n},e.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},e.getVideoPlaybackQuality=function(){return{}},e.requestPictureInPicture=function(){var e=this.options_.Promise||v.a.Promise;if(e)return e.reject()},e.setPoster=function(){},e.playsinline=function(){},e.setPlaysinline=function(){},e.overrideNativeAudioTracks=function(){},e.overrideNativeVideoTracks=function(){},e.canPlayType=function(){return""},i.canPlayType=function(){return""},i.canPlaySource=function(e,t){return i.canPlayType(e.type)},i.isTech=function(e){return e.prototype instanceof i||e instanceof i||e===i},i.registerTech=function(e,t){if(i.techs_||(i.techs_={}),!i.isTech(t))throw new Error("Tech "+e+" must be a Tech");if(!i.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!i.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=_t(e),i.techs_[e]=t,i.techs_[vt(e)]=t,"Tech"!==e&&i.defaultTechOrder_.push(e),t},i.getTech=function(e){if(e)return i.techs_&&i.techs_[e]?i.techs_[e]:(e=_t(e),v.a&&v.a.videojs&&v.a.videojs[e]?(Y.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),v.a.videojs[e]):void 0)},i}(Tt);Hi.names.forEach(function(e){var t=Hi[e];qi.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),qi.prototype.featuresVolumeControl=!0,qi.prototype.featuresMuteControl=!0,qi.prototype.featuresFullscreenResize=!1,qi.prototype.featuresPlaybackRate=!1,qi.prototype.featuresProgressEvents=!1,qi.prototype.featuresSourceset=!1,qi.prototype.featuresTimeupdateEvents=!1,qi.prototype.featuresNativeTextTracks=!1,qi.withSourceHandlers=function(r){r.registerSourceHandler=function(e,t){var i=r.sourceHandlers;i=i||(r.sourceHandlers=[]),void 0===t&&(t=i.length),i.splice(t,0,e)},r.canPlayType=function(e){for(var t,i=r.sourceHandlers||[],n=0;n<i.length;n++)if(t=i[n].canPlayType(e))return t;return""},r.selectSourceHandler=function(e,t){for(var i=r.sourceHandlers||[],n=0;n<i.length;n++)if(i[n].canHandleSource(e,t))return i[n];return null},r.canPlaySource=function(e,t){var i=r.selectSourceHandler(e,t);return i?i.canHandleSource(e,t):""};["seekable","seeking","duration"].forEach(function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},r.prototype),r.prototype.setSource=function(e){var t=r.selectSourceHandler(e,this.options_);t||(r.nativeSourceHandler?t=r.nativeSourceHandler:Y.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),t!==r.nativeSourceHandler&&(this.currentSource_=e),this.sourceHandler_=t.handleSource(e,this,this.options_),this.one("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)}},Tt.registerComponent("Tech",qi),qi.registerTech("Tech",qi),qi.defaultTechOrder_=[];var Wi={},Gi={},zi={};function $i(e,t,i){e.setTimeout(function(){return function i(n,e,r,a,s,o){void 0===n&&(n={});void 0===e&&(e=[]);void 0===s&&(s=[]);void 0===o&&(o=!1);var t=e,u=t[0],l=t.slice(1);if("string"==typeof u)i(n,Wi[u],r,a,s,o);else if(u){var c=Zi(a,u);if(!c.setSource)return s.push(c),i(n,l,r,a,s,o);c.setSource(te({},n),function(e,t){if(e)return i(n,l,r,a,s,o);s.push(c),i(t,n.type===t.type?l:Wi[t.type],r,a,s,o)})}else l.length?i(n,l,r,a,s,o):o?r(n,s):i(n,Wi["*"],r,a,s,!0)}(t,Wi[t.type],i,e)},1)}function Ki(e,t,i,n){void 0===n&&(n=null);var r="call"+_t(i),a=e.reduce(Qi(r),n),s=a===zi,o=s?null:t[i](a);return function(e,t,i,n){for(var r=e.length-1;0<=r;r--){var a=e[r];a[t]&&a[t](n,i)}}(e,i,o,s),o}var Xi={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1,volume:1},Yi={setCurrentTime:1,setVolume:1},Ji={play:1,pause:1};function Qi(i){return function(e,t){return e===zi?zi:t[i]?t[i](e):e}}function Zi(e,t){var i=Gi[e.id()],n=null;if(null==i)return n=t(e),Gi[e.id()]=[[t,n]],n;for(var r=0;r<i.length;r++){var a=i[r],s=a[0],o=a[1];s===t&&(n=o)}return null===n&&(n=t(e),i.push([t,n])),n}function en(e){void 0===e&&(e="");var t=Si(e);return tn[t.toLowerCase()]||""}var tn={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",oga:"audio/ogg",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"};function nn(e){if(!e.type){var t=en(e.src);t&&(e.type=t)}return e}var rn=function(l){function e(e,t,i){var n,r=bt({createEl:!1},t);if(n=l.call(this,e,r,i)||this,t.playerOptions.sources&&0!==t.playerOptions.sources.length)e.src(t.playerOptions.sources);else for(var a=0,s=t.playerOptions.techOrder;a<s.length;a++){var o=_t(s[a]),u=qi.getTech(o);if(o||(u=Tt.getComponent(o)),u&&u.isSupported()){e.loadTech_(o);break}}return n}return St(e,l),e}(Tt);Tt.registerComponent("MediaLoader",rn);var an=function(r){function e(e,t){var i;return(i=r.call(this,e,t)||this).emitTapEvents(),i.enable(),i}St(e,r);var t=e.prototype;return t.createEl=function(e,t,i){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===i&&(i={}),t=te({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&Y.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),i=te({role:"button"},i),this.tabIndex_=t.tabIndex;var n=r.prototype.createEl.call(this,e,t,i);return this.createControlTextEl(n),n},t.dispose=function(){this.controlTextEl_=null,r.prototype.dispose.call(this)},t.createControlTextEl=function(e){return this.controlTextEl_=he("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},t.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var i=this.localize(e);this.controlText_=e,de(this.controlTextEl_,i),this.nonIconControl||t.setAttribute("title",i)},t.buildCSSClass=function(){return"vjs-control vjs-button "+r.prototype.buildCSSClass.call(this)},t.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("keydown",this.handleKeyDown))},t.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver),this.off("mouseout",this.handleMouseOut),this.off(["tap","click"],this.handleClick),this.off("keydown",this.handleKeyDown)},t.handleClick=function(e){},t.handleKeyDown=function(e){p.a.isEventKey(e,"Space")||p.a.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):r.prototype.handleKeyDown.call(this,e)},e}(Tt);Tt.registerComponent("ClickableComponent",an);var sn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).update(),e.on("posterchange",nt(wt(i),i.update)),i}St(e,n);var t=e.prototype;return t.dispose=function(){this.player().off("posterchange",this.update),n.prototype.dispose.call(this)},t.createEl=function(){return he("div",{className:"vjs-poster",tabIndex:-1})},t.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},t.setSrc=function(e){var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t},t.handleClick=function(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?ci(this.player_.play()):this.player_.pause())},e}(an);Tt.registerComponent("PosterImage",sn);var on="#222",un={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'};function ln(e,t){var i;if(4===e.length)i=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");i=e.slice(1)}return"rgba("+parseInt(i.slice(0,2),16)+","+parseInt(i.slice(2,4),16)+","+parseInt(i.slice(4,6),16)+","+t+")"}function cn(e,t,i){try{e.style[t]=i}catch(e){return}}var hn=function(a){function e(i,e,t){var n;n=a.call(this,i,e,t)||this;var r=nt(wt(n),n.updateDisplay);return i.on("loadstart",nt(wt(n),n.toggleDisplay)),i.on("texttrackchange",r),i.on("loadedmetadata",nt(wt(n),n.preselectTrack)),i.ready(nt(wt(n),function(){if(i.tech_&&i.tech_.featuresNativeTextTracks)this.hide();else{i.on("fullscreenchange",r),i.on("playerresize",r),v.a.addEventListener("orientationchange",r),i.on("dispose",function(){return v.a.removeEventListener("orientationchange",r)});for(var e=this.options_.playerOptions.tracks||[],t=0;t<e.length;t++)this.player_.addRemoteTextTrack(e[t],!0);this.preselectTrack()}})),n}St(e,a);var t=e.prototype;return t.preselectTrack=function(){for(var e,t,i,n={captions:1,subtitles:1},r=this.player_.textTracks(),a=this.player_.cache_.selectedLanguage,s=0;s<r.length;s++){var o=r[s];a&&a.enabled&&a.language&&a.language===o.language&&o.kind in n?i=o.kind===a.kind?o:i||o:a&&!a.enabled?t=e=i=null:o.default&&("descriptions"!==o.kind||e?o.kind in n&&!t&&(t=o):e=o)}i?i.mode="showing":t?t.mode="showing":e&&(e.mode="showing")},t.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},t.clearDisplay=function(){"function"==typeof v.a.WebVTT&&v.a.WebVTT.processCues(v.a,[],this.el_)},t.updateDisplay=function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){for(var i=[],n=0;n<e.length;++n){var r=e[n];"showing"===r.mode&&i.push(r)}this.updateForTrack(i)}else{for(var a=null,s=null,o=e.length;o--;){var u=e[o];"showing"===u.mode&&("descriptions"===u.kind?a=u:s=u)}s?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):a&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(a))}},t.updateDisplayState=function(e){for(var t=this.player_.textTrackSettings.getValues(),i=e.activeCues,n=i.length;n--;){var r=i[n];if(r){var a=r.displayState;if(t.color&&(a.firstChild.style.color=t.color),t.textOpacity&&cn(a.firstChild,"color",ln(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(a.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&cn(a.firstChild,"backgroundColor",ln(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?cn(a,"backgroundColor",ln(t.windowColor,t.windowOpacity)):a.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?a.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px "+on:"raised"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px "+on:"depressed"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px "+on:"uniform"===t.edgeStyle&&(a.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px "+on)),t.fontPercent&&1!==t.fontPercent){var s=v.a.parseFloat(a.style.fontSize);a.style.fontSize=s*t.fontPercent+"px",a.style.height="auto",a.style.top="auto",a.style.bottom="2px"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=un[t.fontFamily])}}},t.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"==typeof v.a.WebVTT&&!e.every(function(e){return!e.activeCues})){for(var t=[],i=0;i<e.length;++i)for(var n=e[i],r=0;r<n.activeCues.length;++r)t.push(n.activeCues[r]);v.a.WebVTT.processCues(v.a,t,this.el_);for(var a=0;a<e.length;++a){for(var s=e[a],o=0;o<s.activeCues.length;++o){var u=s.activeCues[o].displayState;me(u,"vjs-text-track-cue"),me(u,"vjs-text-track-cue-"+(s.language?s.language:a))}this.player_.textTrackSettings&&this.updateDisplayState(s)}}},e}(Tt);Tt.registerComponent("TextTrackDisplay",hn);var dn=function(r){function e(){return r.apply(this,arguments)||this}return St(e,r),e.prototype.createEl=function(){var e=this.player_.isAudio(),t=this.localize(e?"Audio Player":"Video Player"),i=he("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[t])}),n=r.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return n.appendChild(i),n},e}(Tt);Tt.registerComponent("LoadingSpinner",dn);var pn=function(t){function e(){return t.apply(this,arguments)||this}St(e,t);var i=e.prototype;return i.createEl=function(e,t,i){void 0===t&&(t={}),void 0===i&&(i={}),t=te({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},t),i=te({type:"button"},i);var n=Tt.prototype.createEl.call(this,"button",t,i);return this.createControlTextEl(n),n},i.addChild=function(e,t){void 0===t&&(t={});var i=this.constructor.name;return Y.warn("Adding an actionable (user controllable) child to a Button ("+i+") is not supported; use a ClickableComponent instead."),Tt.prototype.addChild.call(this,e,t)},i.enable=function(){t.prototype.enable.call(this),this.el_.removeAttribute("disabled")},i.disable=function(){t.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},i.handleKeyDown=function(e){p.a.isEventKey(e,"Space")||p.a.isEventKey(e,"Enter")?e.stopPropagation():t.prototype.handleKeyDown.call(this,e)},e}(an);Tt.registerComponent("Button",pn);var fn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).mouseused_=!1,i.on("mousedown",i.handleMouseDown),i}St(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-big-play-button"},t.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY)return ci(t),void(this.player_.tech(!0)&&this.player_.tech(!0).focus());var i=this.player_.getChild("controlBar"),n=i&&i.getChild("playToggle");if(n){var r=function(){return n.focus()};li(t)?t.then(r,function(){}):this.setTimeout(r,1)}else this.player_.tech(!0).focus()},t.handleKeyDown=function(e){this.mouseused_=!1,n.prototype.handleKeyDown.call(this,e)},t.handleMouseDown=function(e){this.mouseused_=!0},e}(pn);fn.prototype.controlText_="Play Video",Tt.registerComponent("BigPlayButton",fn);var mn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).controlText(t&&t.controlText||i.localize("Close")),i}St(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-close-button "+n.prototype.buildCSSClass.call(this)},t.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t.handleKeyDown=function(e){p.a.isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):n.prototype.handleKeyDown.call(this,e)},e}(pn);Tt.registerComponent("CloseButton",mn);var gn=function(n){function e(e,t){var i;return void 0===t&&(t={}),i=n.call(this,e,t)||this,t.replay=void 0===t.replay||t.replay,i.on(e,"play",i.handlePlay),i.on(e,"pause",i.handlePause),t.replay&&i.on(e,"ended",i.handleEnded),i}St(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-play-control "+n.prototype.buildCSSClass.call(this)},t.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},t.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t.handleEnded=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},e}(pn);gn.prototype.controlText_="Play",Tt.registerComponent("PlayToggle",gn);function yn(e,t){e=e<0?0:e;var i=Math.floor(e%60),n=Math.floor(e/60%60),r=Math.floor(e/3600),a=Math.floor(t/60%60),s=Math.floor(t/3600);return!isNaN(e)&&e!==1/0||(r=n=i="-"),(r=0<r||0<s?r+":":"")+(n=((r||10<=a)&&n<10?"0"+n:n)+":")+(i=i<10?"0"+i:i)}var vn=yn;function _n(e,t){return void 0===t&&(t=e),vn(e,t)}var bn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).throttledUpdateContent=rt(nt(wt(i),i.updateContent),30),i.on(e,"timeupdate",i.throttledUpdateContent),i}St(e,n);var t=e.prototype;return t.createEl=function(){var e=this.buildCSSClass(),t=n.prototype.createEl.call(this,"div",{className:e+" vjs-time-control vjs-control",innerHTML:'<span class="vjs-control-text" role="presentation">'+this.localize(this.labelText_)+" </span>"});return this.contentEl_=he("span",{className:e+"-display"},{"aria-live":"off",role:"presentation"}),this.updateTextNode_(),t.appendChild(this.contentEl_),t},t.dispose=function(){this.contentEl_=null,this.textNode_=null,n.prototype.dispose.call(this)},t.updateTextNode_=function(){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=h.a.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},t.formatTime_=function(e){return _n(e)},t.updateFormattedTime_=function(e){var t=this.formatTime_(e);t!==this.formattedTime_&&(this.formattedTime_=t,this.requestAnimationFrame(this.updateTextNode_))},t.updateContent=function(e){},e}(Tt);bn.prototype.labelText_="Time",bn.prototype.controlText_="Time",Tt.registerComponent("TimeDisplay",bn);var Tn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).on(e,"ended",i.handleEnded),i}St(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-current-time"},t.updateContent=function(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(t)},t.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},e}(bn);Tn.prototype.labelText_="Current Time",Tn.prototype.controlText_="Current Time",Tt.registerComponent("CurrentTimeDisplay",Tn);var Sn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).on(e,"durationchange",i.updateContent),i.on(e,"loadstart",i.updateContent),i.on(e,"loadedmetadata",i.throttledUpdateContent),i}St(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-duration"},t.updateContent=function(e){var t=this.player_.duration();this.duration_!==t&&(this.duration_=t,this.updateFormattedTime_(t))},e}(bn);Sn.prototype.labelText_="Duration",Sn.prototype.controlText_="Duration",Tt.registerComponent("DurationDisplay",Sn);var kn=function(e){function t(){return e.apply(this,arguments)||this}return St(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"},{"aria-hidden":!0})},t}(Tt);Tt.registerComponent("TimeDivider",kn);var En=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).on(e,"durationchange",i.throttledUpdateContent),i.on(e,"ended",i.handleEnded),i}St(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-remaining-time"},t.createEl=function(){var e=n.prototype.createEl.call(this);return e.insertBefore(he("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e},t.updateContent=function(e){"number"==typeof this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},t.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(0)},e}(bn);En.prototype.labelText_="Remaining Time",En.prototype.controlText_="Remaining Time",Tt.registerComponent("RemainingTimeDisplay",En);var wn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).updateShowing(),i.on(i.player(),"durationchange",i.updateShowing),i}St(e,n);var t=e.prototype;return t.createEl=function(){var e=n.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=he("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.dispose=function(){this.contentEl_=null,n.prototype.dispose.call(this)},t.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},e}(Tt);Tt.registerComponent("LiveDisplay",wn);var Cn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).updateLiveEdgeStatus(),i.player_.liveTracker&&i.on(i.player_.liveTracker,"liveedgechange",i.updateLiveEdgeStatus),i}St(e,n);var t=e.prototype;return t.createEl=function(){var e=n.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=he("span",{className:"vjs-seek-to-live-text",innerHTML:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e},t.updateLiveEdgeStatus=function(e){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},t.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},t.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatus),this.textEl_=null,n.prototype.dispose.call(this)},e}(pn);Cn.prototype.controlText_="Seek to live, currently playing live",Tt.registerComponent("SeekToLive",Cn);var On=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}St(e,n);var t=e.prototype;return t.enabled=function(){return this.enabled_},t.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("keydown",this.handleKeyDown),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.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("keydown",this.handleKeyDown),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.createEl=function(e,t,i){return void 0===t&&(t={}),void 0===i&&(i={}),t.className=t.className+" vjs-slider",t=te({tabIndex:0},t),i=te({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),n.prototype.createEl.call(this,e,t,i)},t.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||qt||e.preventDefault(),ke(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e)},t.handleMouseMove=function(e){},t.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;Ee(),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.update=function(){if(this.el_){var e=this.getPercent(),t=this.bar;if(t){("number"!=typeof e||e!=e||e<0||e===1/0)&&(e=0);var i=(100*e).toFixed(2)+"%",n=t.el().style,r=this.vertical()?"height":"width";return n[r]!==i&&(n[r]=i),e}}},t.calculateDistance=function(e){var t=Oe(this.el_,e);return this.vertical()?t.y:t.x},t.handleKeyDown=function(e){p.a.isEventKey(e,"Left")||p.a.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):p.a.isEventKey(e,"Right")||p.a.isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):n.prototype.handleKeyDown.call(this,e)},t.handleClick=function(e){e.stopPropagation(),e.preventDefault()},t.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},e}(Tt);Tt.registerComponent("Slider",On);var An=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).partEls_=[],i.on(e,"progress",i.update),i}St(e,n);var t=e.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+'</span>: <span class="vjs-control-text-loaded-percentage">0%</span></span>'})},t.dispose=function(){this.partEls_=null,n.prototype.dispose.call(this)},t.update=function(e){function t(e,t,i){var n=e/t||0;return n=100*(1<=n?1:n),i&&(n=n.toFixed(2)),n+"%"}var i=this.player_.liveTracker,n=this.player_.buffered(),r=i&&i.isLive()?i.seekableEnd():this.player_.duration(),a=this.player_.bufferedEnd(),s=this.partEls_,o=this.$(".vjs-control-text-loaded-percentage");this.el_.style.width=t(a,r),de(o,t(a,r,!0));for(var u=0;u<n.length;u++){var l=n.start(u),c=n.end(u),h=s[u];h||(h=this.el_.appendChild(he()),s[u]=h),h.style.left=t(l,a),h.style.width=t(c-l,a)}for(var d=s.length;d>n.length;d--)this.el_.removeChild(s[d-1]);s.length=n.length},e}(Tt);Tt.registerComponent("LoadProgressBar",An);var Pn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).update=rt(nt(wt(i),i.update),30),i}St(e,n);var t=e.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},t.update=function(e,t,i){var n=we(this.el_),r=we(this.player_.el()),a=e.width*t;if(r&&n){var s=e.left-r.left+a,o=e.width-a+(r.right-e.right),u=n.width/2;s<u?u+=u-s:o<u&&(u=o),u<0?u=0:u>n.width&&(u=n.width),this.el_.style.right="-"+u+"px",this.write(i)}},t.write=function(e){de(this.el_,e)},t.updateTime=function(r,a,s,o){var u=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var e,t=u.player_.duration();if(u.player_.liveTracker&&u.player_.liveTracker.isLive()){var i=u.player_.liveTracker.liveWindow(),n=i-a*i;e=(n<1?"":"-")+_n(n,i)}else e=_n(s,t);u.update(r,a,e),o&&o()})},e}(Tt);Tt.registerComponent("TimeTooltip",Pn);var In=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).update=rt(nt(wt(i),i.update),30),i}St(e,n);var t=e.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},t.update=function(e,t){var i=this.getChild("timeTooltip");if(i){var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();i.updateTime(e,t,n)}},e}(Tt);In.prototype.options_={children:[]},Mt||jt||In.prototype.options_.children.push("timeTooltip"),Tt.registerComponent("PlayProgressBar",In);var Ln=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).update=rt(nt(wt(i),i.update),30),i}St(e,n);var t=e.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.update=function(e,t){var i=this,n=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,n,function(){i.el_.style.left=e.width*t+"px"})},e}(Tt);Ln.prototype.options_={children:["timeTooltip"]},Tt.registerComponent("MouseTimeDisplay",Ln);var xn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).setEventHandlers_(),i}St(e,n);var t=e.prototype;return t.setEventHandlers_=function(){this.update=rt(nt(this,this.update),30),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.on(this.player_,"durationchange",this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.on(this.player_,["playing"],this.enableInterval_),this.on(this.player_,["ended","pause","waiting"],this.disableInterval_),"hidden"in h.a&&"visibilityState"in h.a&&this.on(h.a,"visibilitychange",this.toggleVisibility_)},t.toggleVisibility_=function(e){h.a.hidden?this.disableInterval_(e):(this.enableInterval_(),this.requestAnimationFrame(this.update))},t.enableInterval_=function(){var e=this;this.clearInterval(this.updateInterval),this.updateInterval=this.setInterval(function(){e.requestAnimationFrame(e.update)},30)},t.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&"ended"!==e.type||this.clearInterval(this.updateInterval)},t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.update_=function(e,t){var i=this.player_.liveTracker,n=this.player_.duration();i&&i.isLive()&&(n=this.player_.liveTracker.liveCurrentTime()),this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[_n(e,n),_n(n,n)],"{1} of {2}")),this.bar&&this.bar.update(we(this.el_),t)},t.update=function(e){if(null!==this.el().offsetParent){var t=n.prototype.update.call(this);return this.update_(this.getCurrentTime_(),t),t}},t.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},t.handleEnded=function(e){this.update_(this.player_.duration(),1)},t.getPercent=function(){var e,t=this.getCurrentTime_(),i=this.player_.liveTracker;return i&&i.isLive()?(e=(t-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),1<=e?1:e||0},t.handleMouseDown=function(e){De(e)&&(e.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),n.prototype.handleMouseDown.call(this,e))},t.handleMouseMove=function(e){if(De(e)){var t,i=this.calculateDistance(e),n=this.player_.liveTracker;if(n&&n.isLive()){var r=n.seekableStart(),a=n.liveCurrentTime();if(a<=(t=r+i*n.liveWindow())&&(t=a),t<=r&&(t=r+.1),t===1/0)return}else(t=i*this.player_.duration())===this.player_.duration()&&(t-=.1);this.player_.currentTime(t)}},t.enable=function(){n.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()},t.disable=function(){n.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()},t.handleMouseUp=function(e){n.prototype.handleMouseUp.call(this,e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&ci(this.player_.play())},t.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},t.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},t.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.handleKeyDown=function(e){if(p.a.isEventKey(e,"Space")||p.a.isEventKey(e,"Enter"))e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(p.a.isEventKey(e,"Home"))e.preventDefault(),e.stopPropagation(),this.player_.currentTime(0);else if(p.a.isEventKey(e,"End"))e.preventDefault(),e.stopPropagation(),this.player_.currentTime(this.player_.duration());else if(/^[0-9]$/.test(p()(e))){e.preventDefault(),e.stopPropagation();var t=10*(p.a.codes[p()(e)]-p.a.codes[0])/100;this.player_.currentTime(this.player_.duration()*t)}else p.a.isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.player_.currentTime(this.player_.currentTime()-60)):p.a.isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.player_.currentTime(this.player_.currentTime()+60)):n.prototype.handleKeyDown.call(this,e)},e}(On);xn.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},Mt||jt||xn.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Tt.registerComponent("SeekBar",xn);var Dn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).handleMouseMove=rt(nt(wt(i),i.handleMouseMove),30),i.throttledHandleMouseSeek=rt(nt(wt(i),i.handleMouseSeek),30),i.enable(),i}St(e,n);var t=e.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var i=t.getChild("mouseTimeDisplay"),n=t.el(),r=we(n),a=Oe(n,e).x;1<a?a=1:a<0&&(a=0),i&&i.update(r,a)}},t.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},t.enabled=function(){return this.enabled_},t.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.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.handleMouseDown=function(e){var t=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.handleMouseUp=function(e){var t=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseUp(e),this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},e}(Tt);Dn.prototype.options_={children:["seekBar"]},Tt.registerComponent("ProgressControl",Dn);var Rn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).on(e,["enterpictureinpicture","leavepictureinpicture"],i.handlePictureInPictureChange),h.a.pictureInPictureEnabled||i.disable(),i}St(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-picture-in-picture-control "+n.prototype.buildCSSClass.call(this)},t.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture")},t.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},e}(pn);Rn.prototype.controlText_="Picture-in-Picture",Tt.registerComponent("PictureInPictureToggle",Rn);var Un=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).on(e,"fullscreenchange",i.handleFullscreenChange),!1===h.a[e.fsApi_.fullscreenEnabled]&&i.disable(),i}St(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-fullscreen-control "+n.prototype.buildCSSClass.call(this)},t.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},e}(pn);Un.prototype.controlText_="Fullscreen",Tt.registerComponent("FullscreenToggle",Un);var Mn=function(e){function t(){return e.apply(this,arguments)||this}return St(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(Tt);Tt.registerComponent("VolumeLevel",Mn);var Nn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).on("slideractive",i.updateLastVolume_),i.on(e,"volumechange",i.updateARIAAttributes),e.ready(function(){return i.updateARIAAttributes()}),i}St(e,n);var t=e.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},t.handleMouseDown=function(e){De(e)&&n.prototype.handleMouseDown.call(this,e)},t.handleMouseMove=function(e){De(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},t.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},t.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},t.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",function(){0===e.player_.volume()&&e.player_.lastVolume_(t)})},e}(On);Nn.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Nn.prototype.playerEvent="volumechange",Tt.registerComponent("VolumeBar",Nn);var jn=function(n){function e(e,t){var i;return void 0===t&&(t={}),t.vertical=t.vertical||!1,void 0!==t.volumeBar&&!ne(t.volumeBar)||(t.volumeBar=t.volumeBar||{},t.volumeBar.vertical=t.vertical),function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})}(wt(i=n.call(this,e,t)||this),e),i.throttledHandleMouseMove=rt(nt(wt(i),i.handleMouseMove),30),i.on("mousedown",i.handleMouseDown),i.on("touchstart",i.handleMouseDown),i.on(i.volumeBar,["focus","slideractive"],function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")}),i.on(i.volumeBar,["blur","sliderinactive"],function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")}),i}St(e,n);var t=e.prototype;return t.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),n.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},t.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},e}(Tt);jn.prototype.options_={children:["volumeBar"]},Tt.registerComponent("VolumeControl",jn);var Bn=function(n){function e(e,t){var i;return function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})}(wt(i=n.call(this,e,t)||this),e),i.on(e,["loadstart","volumechange"],i.update),i}St(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-mute-control "+n.prototype.buildCSSClass.call(this)},t.handleClick=function(e){var t=this.player_.volume(),i=this.player_.lastVolume_();if(0===t){var n=i<.1?.1:i;this.player_.volume(n),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},t.update=function(e){this.updateIcon_(),this.updateControlText_()},t.updateIcon_=function(){var e=this.player_.volume(),t=3;Mt&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var i=0;i<4;i++)ge(this.el_,"vjs-vol-"+i);me(this.el_,"vjs-vol-"+t)},t.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},e}(pn);Bn.prototype.controlText_="Mute",Tt.registerComponent("MuteToggle",Bn);var Fn=function(n){function e(e,t){var i;return void 0===t&&(t={}),void 0!==t.inline?t.inline=t.inline:t.inline=!0,void 0!==t.volumeControl&&!ne(t.volumeControl)||(t.volumeControl=t.volumeControl||{},t.volumeControl.vertical=!t.inline),(i=n.call(this,e,t)||this).on(e,["loadstart"],i.volumePanelState_),i.on(i.muteToggle,"keyup",i.handleKeyPress),i.on(i.volumeControl,"keyup",i.handleVolumeControlKeyUp),i.on("keydown",i.handleKeyPress),i.on("mouseover",i.handleMouseOver),i.on("mouseout",i.handleMouseOut),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}St(e,n);var t=e.prototype;return t.sliderActive_=function(){this.addClass("vjs-slider-active")},t.sliderInactive_=function(){this.removeClass("vjs-slider-active")},t.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},t.createEl=function(){var e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),n.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+e})},t.dispose=function(){this.handleMouseOut(),n.prototype.dispose.call(this)},t.handleVolumeControlKeyUp=function(e){p.a.isEventKey(e,"Esc")&&this.muteToggle.focus()},t.handleMouseOver=function(e){this.addClass("vjs-hover"),Ge(h.a,"keyup",nt(this,this.handleKeyPress))},t.handleMouseOut=function(e){this.removeClass("vjs-hover"),ze(h.a,"keyup",nt(this,this.handleKeyPress))},t.handleKeyPress=function(e){p.a.isEventKey(e,"Esc")&&this.handleMouseOut()},e}(Tt);Fn.prototype.options_={children:["muteToggle","volumeControl"]},Tt.registerComponent("VolumePanel",Fn);var Vn=function(n){function e(e,t){var i;return i=n.call(this,e,t)||this,t&&(i.menuButton_=t.menuButton),i.focusedChild_=-1,i.on("keydown",i.handleKeyDown),i.boundHandleBlur_=nt(wt(i),i.handleBlur),i.boundHandleTapClick_=nt(wt(i),i.handleTapClick),i}St(e,n);var t=e.prototype;return t.addEventListenerForItem=function(e){e instanceof Tt&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},t.removeEventListenerForItem=function(e){e instanceof Tt&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},t.removeChild=function(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),n.prototype.removeChild.call(this,e)},t.addItem=function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)},t.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=he(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var t=n.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),Ge(t,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),t},t.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,n.prototype.dispose.call(this)},t.handleBlur=function(e){var t=e.relatedTarget||h.a.activeElement;if(!this.children().some(function(e){return e.el()===t})){var i=this.menuButton_;i&&i.buttonPressed_&&t!==i.el().firstChild&&i.unpressButton()}},t.handleTapClick=function(t){if(this.menuButton_){this.menuButton_.unpressButton();var e=this.children();if(!Array.isArray(e))return;var i=e.filter(function(e){return e.el()===t.target})[0];if(!i)return;"CaptionSettingsMenuItem"!==i.name()&&this.menuButton_.focus()}},t.handleKeyDown=function(e){p.a.isEventKey(e,"Left")||p.a.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(p.a.isEventKey(e,"Right")||p.a.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},t.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},t.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},t.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].className&&/vjs-menu-title/.test(t[0].className)&&t.shift(),0<t.length&&(e<0?e=0:e>=t.length&&(e=t.length-1),t[this.focusedChild_=e].el_.focus())},e}(Tt);Tt.registerComponent("Menu",Vn);var Hn=function(r){function e(e,t){var i;void 0===t&&(t={}),(i=r.call(this,e,t)||this).menuButton_=new pn(e,t),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true");var n=pn.prototype.buildCSSClass();return i.menuButton_.el_.className=i.buildCSSClass()+" "+n,i.menuButton_.removeClass("vjs-control"),i.addChild(i.menuButton_),i.update(),i.enabled_=!0,i.on(i.menuButton_,"tap",i.handleClick),i.on(i.menuButton_,"click",i.handleClick),i.on(i.menuButton_,"keydown",i.handleKeyDown),i.on(i.menuButton_,"mouseenter",function(){i.addClass("vjs-hover"),i.menu.show(),Ge(h.a,"keyup",nt(wt(i),i.handleMenuKeyUp))}),i.on("mouseleave",i.handleMouseLeave),i.on("keydown",i.handleSubmenuKeyDown),i}St(e,r);var t=e.prototype;return t.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.createMenu=function(){var e=new Vn(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=he("li",{className:"vjs-menu-title",innerHTML:_t(this.options_.title),tabIndex:-1});this.hideThreshold_+=1;var i=new Tt(this.player_,{el:t});e.addItem(i)}if(this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)e.addItem(this.items[n]);return e},t.createItems=function(){},t.createEl=function(){return r.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},t.buildWrapperCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+pn.prototype.buildCSSClass()+" "+r.prototype.buildCSSClass.call(this)},t.buildCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+r.prototype.buildCSSClass.call(this)},t.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},t.dispose=function(){this.handleMouseLeave(),r.prototype.dispose.call(this)},t.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},t.handleMouseLeave=function(e){this.removeClass("vjs-hover"),ze(h.a,"keyup",nt(this,this.handleMenuKeyUp))},t.focus=function(){this.menuButton_.focus()},t.blur=function(){this.menuButton_.blur()},t.handleKeyDown=function(e){p.a.isEventKey(e,"Esc")||p.a.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),p.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(p.a.isEventKey(e,"Up")||p.a.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))},t.handleMenuKeyUp=function(e){(p.a.isEventKey(e,"Esc")||p.a.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},t.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},t.handleSubmenuKeyDown=function(e){(p.a.isEventKey(e,"Esc")||p.a.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),p.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},t.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Mt&&le())return;this.menu.focus()}},t.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},t.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},t.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},e}(Tt);Tt.registerComponent("MenuButton",Hn);var qn=function(a){function e(e,t){var i,n=t.tracks;if((i=a.call(this,e,t)||this).items.length<=1&&i.hide(),!n)return wt(i);var r=nt(wt(i),i.update);return n.addEventListener("removetrack",r),n.addEventListener("addtrack",r),i.player_.on("ready",r),i.player_.on("dispose",function(){n.removeEventListener("removetrack",r),n.removeEventListener("addtrack",r)}),i}return St(e,a),e}(Hn);Tt.registerComponent("TrackButton",qn);var Wn=["Tab","Esc","Up","Down","Right","Left"],Gn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).selectable=t.selectable,i.isSelected_=t.selected||!1,i.multiSelectable=t.multiSelectable,i.selected(i.isSelected_),i.selectable?i.multiSelectable?i.el_.setAttribute("role","menuitemcheckbox"):i.el_.setAttribute("role","menuitemradio"):i.el_.setAttribute("role","menuitem"),i}St(e,n);var t=e.prototype;return t.createEl=function(e,t,i){return this.nonIconControl=!0,n.prototype.createEl.call(this,"li",te({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},t),i)},t.handleKeyDown=function(t){Wn.some(function(e){return p.a.isEventKey(t,e)})||n.prototype.handleKeyDown.call(this,t)},t.handleClick=function(e){this.selected(!0)},t.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},e}(an);Tt.registerComponent("MenuItem",Gn);var zn=function(u){function e(e,t){var n,i=t.track,r=e.textTracks();t.label=i.label||i.language||"Unknown",t.selected="showing"===i.mode,(n=u.call(this,e,t)||this).track=i,n.kinds=(t.kinds||[t.kind||n.track.kind]).filter(Boolean);function a(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.handleTracksChange.apply(wt(n),t)}function s(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.handleSelectedLanguageChange.apply(wt(n),t)}var o;e.on(["loadstart","texttrackchange"],a),r.addEventListener("change",a),r.addEventListener("selectedlanguagechange",s),n.on("dispose",function(){e.off(["loadstart","texttrackchange"],a),r.removeEventListener("change",a),r.removeEventListener("selectedlanguagechange",s)}),void 0===r.onchange&&n.on(["tap","click"],function(){if("object"!=typeof v.a.Event)try{o=new v.a.Event("change")}catch(e){}o||(o=h.a.createEvent("Event")).initEvent("change",!0,!0),r.dispatchEvent(o)});return n.handleTracksChange(),n}St(e,u);var t=e.prototype;return t.handleClick=function(e){var t=this.track,i=this.player_.textTracks();if(u.prototype.handleClick.call(this,e),i)for(var n=0;n<i.length;n++){var r=i[n];-1!==this.kinds.indexOf(r.kind)&&(r===t?"showing"!==r.mode&&(r.mode="showing"):"disabled"!==r.mode&&(r.mode="disabled"))}},t.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},t.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},t.dispose=function(){this.track=null,u.prototype.dispose.call(this)},e}(Gn);Tt.registerComponent("TextTrackMenuItem",zn);var $n=function(i){function e(e,t){return t.track={player:e,kind:t.kind,kinds:t.kinds,default:!1,mode:"disabled"},t.kinds||(t.kinds=[t.kind]),t.label?t.track.label=t.label:t.track.label=t.kinds.join(" and ")+" off",t.selectable=!0,t.multiSelectable=!1,i.call(this,e,t)||this}St(e,i);var t=e.prototype;return t.handleTracksChange=function(e){for(var t=this.player().textTracks(),i=!0,n=0,r=t.length;n<r;n++){var a=t[n];if(-1<this.options_.kinds.indexOf(a.kind)&&"showing"===a.mode){i=!1;break}}i!==this.isSelected_&&this.selected(i)},t.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),i=!0,n=0,r=t.length;n<r;n++){var a=t[n];if(-1<["captions","descriptions","subtitles"].indexOf(a.kind)&&"showing"===a.mode){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})},e}(zn);Tt.registerComponent("OffTextTrackMenuItem",$n);var Kn=function(i){function e(e,t){return void 0===t&&(t={}),t.tracks=e.textTracks(),i.call(this,e,t)||this}return St(e,i),e.prototype.createItems=function(e,t){var i;void 0===e&&(e=[]),void 0===t&&(t=zn),this.label_&&(i=this.label_+" off"),e.push(new $n(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;var n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r<n.length;r++){var a=n[r];if(-1<this.kinds_.indexOf(a.kind)){var s=new t(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});s.addClass("vjs-"+a.kind+"-menu-item"),e.push(s)}}return e},e}(qn);Tt.registerComponent("TextTrackButton",Kn);var Xn=function(s){function e(e,t){var i,n=t.track,r=t.cue,a=e.currentTime();return t.selectable=!0,t.multiSelectable=!1,t.label=r.text,t.selected=r.startTime<=a&&a<r.endTime,(i=s.call(this,e,t)||this).track=n,i.cue=r,n.addEventListener("cuechange",nt(wt(i),i.update)),i}St(e,s);var t=e.prototype;return t.handleClick=function(e){s.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},t.update=function(e){var t=this.cue,i=this.player_.currentTime();this.selected(t.startTime<=i&&i<t.endTime)},e}(Gn);Tt.registerComponent("ChaptersTrackMenuItem",Xn);var Yn=function(n){function e(e,t,i){return n.call(this,e,t,i)||this}St(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-chapters-button "+n.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-chapters-button "+n.prototype.buildWrapperCSSClass.call(this)},t.update=function(e){this.track_&&(!e||"addtrack"!==e.type&&"removetrack"!==e.type)||this.setTrack(this.findChaptersTrack()),n.prototype.update.call(this)},t.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var i=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);i&&i.addEventListener("load",this.updateHandler_)}}},t.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;0<=t;t--){var i=e[t];if(i.kind===this.kind_)return i}},t.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(_t(this.kind_))},t.createMenu=function(){return this.options_.title=this.getMenuCaption(),n.prototype.createMenu.call(this)},t.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var i=0,n=t.length;i<n;i++){var r=t[i],a=new Xn(this.player_,{track:this.track_,cue:r});e.push(a)}return e},e}(Kn);Yn.prototype.kind_="chapters",Yn.prototype.controlText_="Chapters",Tt.registerComponent("ChaptersButton",Yn);var Jn=function(s){function e(e,t,i){var n;n=s.call(this,e,t,i)||this;var r=e.textTracks(),a=nt(wt(n),n.handleTracksChange);return r.addEventListener("change",a),n.on("dispose",function(){r.removeEventListener("change",a)}),n}St(e,s);var t=e.prototype;return t.handleTracksChange=function(e){for(var t=this.player().textTracks(),i=!1,n=0,r=t.length;n<r;n++){var a=t[n];if(a.kind!==this.kind_&&"showing"===a.mode){i=!0;break}}i?this.disable():this.enable()},t.buildCSSClass=function(){return"vjs-descriptions-button "+s.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+s.prototype.buildWrapperCSSClass.call(this)},e}(Kn);Jn.prototype.kind_="descriptions",Jn.prototype.controlText_="Descriptions",Tt.registerComponent("DescriptionsButton",Jn);var Qn=function(n){function e(e,t,i){return n.call(this,e,t,i)||this}St(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-subtitles-button "+n.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+n.prototype.buildWrapperCSSClass.call(this)},e}(Kn);Qn.prototype.kind_="subtitles",Qn.prototype.controlText_="Subtitles",Tt.registerComponent("SubtitlesButton",Qn);var Zn=function(n){function e(e,t){var i;return t.track={player:e,kind:t.kind,label:t.kind+" settings",selectable:!1,default:!1,mode:"disabled"},t.selectable=!1,t.name="CaptionSettingsMenuItem",(i=n.call(this,e,t)||this).addClass("vjs-texttrack-settings"),i.controlText(", opens "+t.kind+" settings dialog"),i}return St(e,n),e.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},e}(zn);Tt.registerComponent("CaptionSettingsMenuItem",Zn);var er=function(n){function e(e,t,i){return n.call(this,e,t,i)||this}St(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-captions-button "+n.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-captions-button "+n.prototype.buildWrapperCSSClass.call(this)},t.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Zn(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),n.prototype.createItems.call(this,e)},e}(Kn);er.prototype.kind_="captions",er.prototype.controlText_="Captions",Tt.registerComponent("CaptionsButton",er);var tr=function(r){function e(){return r.apply(this,arguments)||this}return St(e,r),e.prototype.createEl=function(e,t,i){var n='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"captions"===this.options_.track.kind&&(n+='\n        <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n        <span class="vjs-control-text"> '+this.localize("Captions")+"</span>\n      "),n+="</span>",r.prototype.createEl.call(this,e,te({innerHTML:n},t),i)},e}(zn);Tt.registerComponent("SubsCapsMenuItem",tr);var ir=function(n){function e(e,t){var i;return void 0===t&&(t={}),(i=n.call(this,e,t)||this).label_="subtitles",-1<["en","en-us","en-ca","fr-ca"].indexOf(i.player_.language_)&&(i.label_="captions"),i.menuButton_.controlText(_t(i.label_)),i}St(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-subs-caps-button "+n.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+n.prototype.buildWrapperCSSClass.call(this)},t.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Zn(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=n.prototype.createItems.call(this,e,tr)},e}(Kn);ir.prototype.kinds_=["captions","subtitles"],ir.prototype.controlText_="Subtitles",Tt.registerComponent("SubsCapsButton",ir);var nr=function(s){function e(e,t){var n,i=t.track,r=e.audioTracks();t.label=i.label||i.language||"Unknown",t.selected=i.enabled,(n=s.call(this,e,t)||this).track=i,n.addClass("vjs-"+i.kind+"-menu-item");function a(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.handleTracksChange.apply(wt(n),t)}return r.addEventListener("change",a),n.on("dispose",function(){r.removeEventListener("change",a)}),n}St(e,s);var t=e.prototype;return t.createEl=function(e,t,i){var n='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"main-desc"===this.options_.track.kind&&(n+='\n        <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n        <span class="vjs-control-text"> '+this.localize("Descriptions")+"</span>\n      "),n+="</span>",s.prototype.createEl.call(this,e,te({innerHTML:n},t),i)},t.handleClick=function(e){var t=this.player_.audioTracks();s.prototype.handleClick.call(this,e);for(var i=0;i<t.length;i++){var n=t[i];n.enabled=n===this.track}},t.handleTracksChange=function(e){this.selected(this.track.enabled)},e}(Gn);Tt.registerComponent("AudioTrackMenuItem",nr);var rr=function(i){function e(e,t){return void 0===t&&(t={}),t.tracks=e.audioTracks(),i.call(this,e,t)||this}St(e,i);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-audio-button "+i.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-audio-button "+i.prototype.buildWrapperCSSClass.call(this)},t.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),i=0;i<t.length;i++){var n=t[i];e.push(new nr(this.player_,{track:n,selectable:!0,multiSelectable:!1}))}return e},e}(qn);rr.prototype.controlText_="Audio Track",Tt.registerComponent("AudioTrackButton",rr);var ar=function(a){function e(e,t){var i,n=t.rate,r=parseFloat(n,10);return t.label=n,t.selected=1===r,t.selectable=!0,t.multiSelectable=!1,(i=a.call(this,e,t)||this).label=n,i.rate=r,i.on(e,"ratechange",i.update),i}St(e,a);var t=e.prototype;return t.handleClick=function(e){a.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},t.update=function(e){this.selected(this.player().playbackRate()===this.rate)},e}(Gn);ar.prototype.contentElType="button",Tt.registerComponent("PlaybackRateMenuItem",ar);var sr=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).updateVisibility(),i.updateLabel(),i.on(e,"loadstart",i.updateVisibility),i.on(e,"ratechange",i.updateLabel),i}St(e,n);var t=e.prototype;return t.createEl=function(){var e=n.prototype.createEl.call(this);return this.labelEl_=he("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),e.appendChild(this.labelEl_),e},t.dispose=function(){this.labelEl_=null,n.prototype.dispose.call(this)},t.buildCSSClass=function(){return"vjs-playback-rate "+n.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-playback-rate "+n.prototype.buildWrapperCSSClass.call(this)},t.createMenu=function(){var e=new Vn(this.player()),t=this.playbackRates();if(t)for(var i=t.length-1;0<=i;i--)e.addChild(new ar(this.player(),{rate:t[i]+"x"}));return e},t.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.handleClick=function(e){for(var t=this.player().playbackRate(),i=this.playbackRates(),n=i[0],r=0;r<i.length;r++)if(i[r]>t){n=i[r];break}this.player().playbackRate(n)},t.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},t.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&0<this.playbackRates().length},t.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},e}(Hn);sr.prototype.controlText_="Playback Rate",Tt.registerComponent("PlaybackRateMenuButton",sr);var or=function(e){function t(){return e.apply(this,arguments)||this}St(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(Tt);Tt.registerComponent("Spacer",or);var ur=function(t){function e(){return t.apply(this,arguments)||this}St(e,t);var i=e.prototype;return i.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},i.createEl=function(){var e=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return e.innerHTML=" ",e},e}(or);Tt.registerComponent("CustomControlSpacer",ur);var lr=function(e){function t(){return e.apply(this,arguments)||this}return St(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(Tt);lr.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in h.a&&lr.prototype.options_.children.splice(lr.prototype.options_.children.length-1,0,"pictureInPictureToggle"),Tt.registerComponent("ControlBar",lr);var cr=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).on(e,"error",i.open),i}St(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-error-display "+n.prototype.buildCSSClass.call(this)},t.content=function(){var e=this.player().error();return e?this.localize(e.message):""},e}(mi);cr.prototype.options_=bt(mi.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Tt.registerComponent("ErrorDisplay",cr);var hr="vjs-text-track-settings",dr=["#000","Black"],pr=["#00F","Blue"],fr=["#0FF","Cyan"],mr=["#0F0","Green"],gr=["#F0F","Magenta"],yr=["#F00","Red"],vr=["#FFF","White"],_r=["#FF0","Yellow"],br=["1","Opaque"],Tr=["0.5","Semi-Transparent"],Sr=["0","Transparent"],kr={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[dr,vr,yr,mr,pr,_r,gr,fr]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[br,Tr,Sr]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[vr,dr,yr,mr,pr,_r,gr,fr]},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(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[br,Tr]},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:[Sr,Tr,br]}};function Er(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}kr.windowColor.options=kr.backgroundColor.options;var wr=function(n){function e(e,t){var i;return t.temporary=!1,(i=n.call(this,e,t)||this).updateDisplay=nt(wt(i),i.updateDisplay),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=he("p",{className:"vjs-control-text",textContent:i.localize("End of dialog window.")}),i.el().appendChild(i.endDialog),i.setDefaults(),void 0===t.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",function(){i.saveSettings(),i.close()}),i.on(i.$(".vjs-default-button"),"click",function(){i.setDefaults(),i.updateDisplay()}),ee(kr,function(e){i.on(i.$(e.selector),"change",i.updateDisplay)}),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}St(e,n);var t=e.prototype;return t.dispose=function(){this.endDialog=null,n.prototype.dispose.call(this)},t.createElSelect_=function(e,t,i){var n=this;void 0===t&&(t=""),void 0===i&&(i="label");var r=kr[e],a=r.id.replace("%s",this.id_),s=[t,a].join(" ").trim();return["<"+i+' id="'+a+'" class="'+("label"===i?"vjs-label":"")+'">',this.localize(r.label),"</"+i+">",'<select aria-labelledby="'+s+'">'].concat(r.options.map(function(e){var t=a+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+s+" "+t+'">',n.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")},t.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.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.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.createElColors_=function(){return he("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},t.createElFont_=function(){return he("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.createElControls_=function(){var e=this.localize("restore all settings to the default values");return he("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},t.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},t.label=function(){return this.localize("Caption Settings Dialog")},t.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},t.buildCSSClass=function(){return n.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},t.getValues=function(){var r=this;return function(i,n,e){return void 0===e&&(e=0),Z(i).reduce(function(e,t){return n(e,i[t],t)},e)}(kr,function(e,t,i){var n=function(e,t){return Er(e.options[e.options.selectedIndex].value,t)}(r.$(t.selector),t.parser);return void 0!==n&&(e[i]=n),e},{})},t.setValues=function(i){var n=this;ee(kr,function(e,t){!function(e,t,i){if(t)for(var n=0;n<e.options.length;n++)if(Er(e.options[n].value,i)===t){e.selectedIndex=n;break}}(n.$(e.selector),i[t],e.parser)})},t.setDefaults=function(){var i=this;ee(kr,function(e){var t=e.hasOwnProperty("default")?e.default:0;i.$(e.selector).selectedIndex=t})},t.restoreSettings=function(){var e;try{e=JSON.parse(v.a.localStorage.getItem(hr))}catch(e){Y.warn(e)}e&&this.setValues(e)},t.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?v.a.localStorage.setItem(hr,JSON.stringify(e)):v.a.localStorage.removeItem(hr)}catch(e){Y.warn(e)}}},t.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},t.conditionalBlur_=function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,i=e&&e.captionsButton;t?t.focus():i&&i.focus()},e}(mi);Tt.registerComponent("TextTrackSettings",wr);var Cr=function(a){function e(e,t){var i,n=t.ResizeObserver||v.a.ResizeObserver;null===t.ResizeObserver&&(n=!1);var r=bt({createEl:!n,reportTouchActivity:!1},t);return(i=a.call(this,e,r)||this).ResizeObserver=t.ResizeObserver||v.a.ResizeObserver,i.loadListener_=null,i.resizeObserver_=null,i.debouncedHandler_=function(n,r,a,s){var o;void 0===s&&(s=v.a);function e(){var e=this,t=arguments,i=function(){i=o=null,a||n.apply(e,t)};!o&&a&&n.apply(e,t),s.clearTimeout(o),o=s.setTimeout(i,r)}return e.cancel=function(){s.clearTimeout(o),o=null},e}(function(){i.resizeHandler()},100,!1,wt(i)),n?(i.resizeObserver_=new i.ResizeObserver(i.debouncedHandler_),i.resizeObserver_.observe(e.el())):(i.loadListener_=function(){if(i.el_&&i.el_.contentWindow){var e=i.debouncedHandler_,t=i.unloadListener_=function(){ze(this,"resize",e),ze(this,"unload",t),t=null};Ge(i.el_.contentWindow,"unload",t),Ge(i.el_.contentWindow,"resize",e)}},i.one("load",i.loadListener_)),i}St(e,a);var t=e.prototype;return t.createEl=function(){return a.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1},{"aria-hidden":"true"})},t.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},t.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,a.prototype.dispose.call(this)},e}(Tt);Tt.registerComponent("ResizeManager",Cr);var Or=function(r){function e(e,t){var i,n=bt({createEl:!1},t);return(i=r.call(this,e,n)||this).reset_(),i.on(i.player_,"durationchange",i.handleDurationchange),Gt&&"hidden"in h.a&&"visibilityState"in h.a&&i.on(h.a,"visibilitychange",i.handleVisibilityChange),i}St(e,r);var t=e.prototype;return t.handleVisibilityChange=function(){this.player_.duration()===1/0&&(h.a.hidden?this.stopTracking():this.startTracking())},t.isBehind_=function(){if(!this.timeupdateSeen_)return!1;var e=this.liveCurrentTime(),t=this.player_.currentTime(),i=2*this.seekableIncrement_+.07;return e!==1/0&&t<=e-i},t.trackLive_=function(){this.pastSeekEnd_=this.pastSeekEnd_;var e=this.player_.seekable();if(e&&e.length){var t=this.seekableEnd();t!==this.lastSeekEnd_&&(this.lastSeekEnd_&&(this.seekableIncrementList_=this.seekableIncrementList_.slice(-11),this.seekableIncrementList_.push(Math.abs(t-this.lastSeekEnd_)),3<this.seekableIncrementList_.length&&(this.seekableIncrement_=function(e){var t=Math.floor(e.length/2),i=[].concat(e).sort(function(e,t){return e-t});return e.length%2!=0?i[t]:(i[t-1]+i[t])/2}(this.seekableIncrementList_))),this.pastSeekEnd_=0,this.lastSeekEnd_=t,this.trigger("seekableendchange")),this.pastSeekEnd_=this.pastSeekEnd()+.03,this.isBehind_()!==this.behindLiveEdge()&&(this.behindLiveEdge_=this.isBehind_(),this.trigger("liveedgechange"))}},t.handleDurationchange=function(){this.player_.duration()===1/0?this.startTracking():this.stopTracking()},t.startTracking=function(){var e=this;this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLive_,30),this.trackLive_(),this.on(this.player_,"play",this.trackLive_),this.on(this.player_,"pause",this.trackLive_),this.timeupdateSeen_||(this.one(this.player_,"play",this.handlePlay),this.handleTimeupdate=function(){e.timeupdateSeen_=!0,e.handleTimeupdate=null},this.one(this.player_,"timeupdate",this.handleTimeupdate)))},t.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge)},t.reset_=function(){this.pastSeekEnd_=0,this.lastSeekEnd_=null,this.behindLiveEdge_=null,this.timeupdateSeen_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.seekableIncrement_=12,this.seekableIncrementList_=[],this.off(this.player_,"play",this.trackLive_),this.off(this.player_,"pause",this.trackLive_),this.off(this.player_,"play",this.handlePlay),this.off(this.player_,"timeupdate",this.seekToLiveEdge),this.handleTimeupdate&&(this.off(this.player_,"timeupdate",this.handleTimeupdate),this.handleTimeupdate=null)},t.stopTracking=function(){this.isTracking()&&this.reset_()},t.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.end(i));return t.length?t.sort()[t.length-1]:1/0},t.seekableStart=function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.start(i));return t.length?t.sort()[0]:0},t.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?1/0:e-this.seekableStart()},t.isLive=function(){return this.isTracking()},t.atLiveEdge=function(){return!this.behindLiveEdge()},t.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},t.pastSeekEnd=function(){return this.pastSeekEnd_},t.behindLiveEdge=function(){return this.behindLiveEdge_},t.isTracking=function(){return"number"==typeof this.trackingInterval_},t.seekToLiveEdge=function(){this.atLiveEdge()||(this.player_.currentTime(this.liveCurrentTime()),this.player_.paused()&&this.player_.play())},t.dispose=function(){this.stopTracking(),r.prototype.dispose.call(this)},e}(Tt);Tt.registerComponent("LiveTracker",Or);function Ar(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var i=e.$$("source"),n=[],r="";if(!i.length)return!1;for(var a=0;a<i.length;a++){var s=i[a].src;s&&-1===n.indexOf(s)&&n.push(s)}return!!n.length&&(1===n.length&&(r=n[0]),e.triggerSourceset(r),!0)}function Pr(e,t){for(var i={},n=0;n<e.length&&!((i=Object.getOwnPropertyDescriptor(e[n],t))&&i.set&&i.get);n++);return i.enumerable=!0,i.configurable=!0,i}function Ir(a){var s=a.el();if(!s.resetSourceWatch_){var t={},e=function(e){return Pr([e.el(),v.a.HTMLMediaElement.prototype,v.a.Element.prototype,xr],"innerHTML")}(a),i=function(r){return function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=r.apply(s,t);return Ar(a),n}};["append","appendChild","insertAdjacentHTML"].forEach(function(e){s[e]&&(t[e]=s[e],s[e]=i(t[e]))}),Object.defineProperty(s,"innerHTML",bt(e,{set:i(e.set)})),s.resetSourceWatch_=function(){s.resetSourceWatch_=null,Object.keys(t).forEach(function(e){s[e]=t[e]}),Object.defineProperty(s,"innerHTML",e)},a.one("sourceset",s.resetSourceWatch_)}}function Lr(n){if(n.featuresSourceset){var r=n.el();if(!r.resetSourceset_){var i=function(e){return Pr([e.el(),v.a.HTMLMediaElement.prototype,Dr],"src")}(n),a=r.setAttribute,t=r.load;Object.defineProperty(r,"src",bt(i,{set:function(e){var t=i.set.call(r,e);return n.triggerSourceset(r.src),t}})),r.setAttribute=function(e,t){var i=a.call(r,e,t);return/src/i.test(e)&&n.triggerSourceset(r.src),i},r.load=function(){var e=t.call(r);return Ar(n)||(n.triggerSourceset(""),Ir(n)),e},r.currentSrc?n.triggerSourceset(r.currentSrc):Ar(n)||Ir(n),r.resetSourceset_=function(){r.resetSourceset_=null,r.load=t,r.setAttribute=a,Object.defineProperty(r,"src",i),r.resetSourceWatch_&&r.resetSourceWatch_()}}}}var xr=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=h.a.createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var i=h.a.createDocumentFragment();t.childNodes.length;)i.appendChild(t.childNodes[0]);return this.innerText="",v.a.Element.prototype.appendChild.call(this,i),this.innerHTML}}),Dr=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?Ti(v.a.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return v.a.Element.prototype.setAttribute.call(this,"src",e),e}}),Rr=function(c){function o(e,t){var i;i=c.call(this,e,t)||this;var n=e.source,r=!1;if(n&&(i.el_.currentSrc!==n.src||e.tag&&3===e.tag.initNetworkState_)?i.setSource(n):i.handleLateInit_(i.el_),e.enableSourceset&&i.setupSourcesetHandling_(),i.el_.hasChildNodes()){for(var a=i.el_.childNodes,s=a.length,o=[];s--;){var u=a[s];"track"===u.nodeName.toLowerCase()&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(u),i.remoteTextTracks().addTrack(u.track),i.textTracks().addTrack(u.track),r||i.el_.hasAttribute("crossorigin")||!ki(u.src)||(r=!0)):o.push(u))}for(var l=0;l<o.length;l++)i.el_.removeChild(o[l])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&r&&Y.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),i.restoreMetadataTracksInIOSNativePlayer_(),(Xt||Rt||Ft)&&!0===e.nativeControlsForTouch&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}St(o,c);var e=o.prototype;return e.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),o.disposeMediaElement(this.el_),this.options_=null,c.prototype.dispose.call(this)},e.setupSourcesetHandling_=function(){Lr(this)},e.restoreMetadataTracksInIOSNativePlayer_=function(){function e(){i=[];for(var e=0;e<n.length;e++){var t=n[e];"metadata"===t.kind&&i.push({track:t,storedMode:t.mode})}}var i,n=this.textTracks();e(),n.addEventListener("change",e),this.on("dispose",function(){return n.removeEventListener("change",e)});function r(){for(var e=0;e<i.length;e++){var t=i[e];"disabled"===t.track.mode&&t.track.mode!==t.storedMode&&(t.track.mode=t.storedMode)}n.removeEventListener("change",r)}this.on("webkitbeginfullscreen",function(){n.removeEventListener("change",e),n.removeEventListener("change",r),n.addEventListener("change",r)}),this.on("webkitendfullscreen",function(){n.removeEventListener("change",e),n.addEventListener("change",e),n.removeEventListener("change",r)})},e.overrideNative_=function(e,t){var i=this;if(t===this["featuresNative"+e+"Tracks"]){var n=e.toLowerCase();this[n+"TracksListeners_"]&&Object.keys(this[n+"TracksListeners_"]).forEach(function(e){i.el()[n+"Tracks"].removeEventListener(e,i[n+"TracksListeners_"][e])}),this["featuresNative"+e+"Tracks"]=!t,this[n+"TracksListeners_"]=null,this.proxyNativeTracksForType_(n)}},e.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},e.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},e.proxyNativeTracksForType_=function(e){var n=this,t=Fi[e],r=this.el()[t.getterName],a=this[t.getterName]();if(this["featuresNative"+t.capitalName+"Tracks"]&&r&&r.addEventListener){var s={change:function(e){a.trigger({type:"change",target:a,currentTarget:a,srcElement:a})},addtrack:function(e){a.addTrack(e.track)},removetrack:function(e){a.removeTrack(e.track)}},i=function(){for(var e=[],t=0;t<a.length;t++){for(var i=!1,n=0;n<r.length;n++)if(r[n]===a[t]){i=!0;break}i||e.push(a[t])}for(;e.length;)a.removeTrack(e.shift())};this[t.getterName+"Listeners_"]=s,Object.keys(s).forEach(function(t){var i=s[t];r.addEventListener(t,i),n.on("dispose",function(e){return r.removeEventListener(t,i)})}),this.on("loadstart",i),this.on("dispose",function(e){return n.off("loadstart",i)})}},e.proxyNativeTracks_=function(){var t=this;Fi.names.forEach(function(e){t.proxyNativeTracksForType_(e)})},e.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var t=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(t,e),o.disposeMediaElement(e),e=t}else{e=h.a.createElement("video");var i=bt({},this.options_.tag&&_e(this.options_.tag));Xt&&!0===this.options_.nativeControlsForTouch||delete i.controls,ve(e,te(i,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&Te(e,"preload",this.options_.preload);for(var n=["loop","muted","playsinline","autoplay"],r=0;r<n.length;r++){var a=n[r],s=this.options_[a];void 0!==s&&(s?Te(e,a,a):Se(e,a),e[a]=s)}return e},e.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,i=function(){t=!0};this.on("loadstart",i);var n=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",n),void this.ready(function(){this.off("loadstart",i),this.off("loadedmetadata",n),t||this.trigger("loadstart")})}var r=["loadstart"];r.push("loadedmetadata"),2<=e.readyState&&r.push("loadeddata"),3<=e.readyState&&r.push("canplay"),4<=e.readyState&&r.push("canplaythrough"),this.ready(function(){r.forEach(function(e){this.trigger(e)},this)})}},e.setCurrentTime=function(e){try{this.el_.currentTime=e}catch(e){Y(e,"Video is not ready. (Video.js)")}},e.duration=function(){var t=this;if(this.el_.duration===1/0&&jt&&qt&&0===this.el_.currentTime){return this.on("timeupdate",function e(){0<t.el_.currentTime&&(t.el_.duration===1/0&&t.trigger("durationchange"),t.off("timeupdate",e))}),NaN}return this.el_.duration||NaN},e.width=function(){return this.el_.offsetWidth},e.height=function(){return this.el_.offsetHeight},e.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},i=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",i),this.on("dispose",function(){e.off("webkitbeginfullscreen",i),e.off("webkitendfullscreen",t)})}},e.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=v.a.navigator&&v.a.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},e.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()},e.exitFullScreen=function(){this.el_.webkitExitFullScreen()},e.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},e.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},e.reset=function(){o.resetMediaElement(this.el_)},e.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},e.setControls=function(e){this.el_.controls=!!e},e.addTextTrack=function(e,t,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,t,i):c.prototype.addTextTrack.call(this,e,t,i)},e.createRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return c.prototype.createRemoteTextTrack.call(this,e);var t=h.a.createElement("track");return e.kind&&(t.kind=e.kind),e.label&&(t.label=e.label),(e.language||e.srclang)&&(t.srclang=e.language||e.srclang),e.default&&(t.default=e.default),e.id&&(t.id=e.id),e.src&&(t.src=e.src),t},e.addRemoteTextTrack=function(e,t){var i=c.prototype.addRemoteTextTrack.call(this,e,t);return this.featuresNativeTextTracks&&this.el().appendChild(i),i},e.removeRemoteTextTrack=function(e){if(c.prototype.removeRemoteTextTrack.call(this,e),this.featuresNativeTextTracks)for(var t=this.$$("track"),i=t.length;i--;)e!==t[i]&&e!==t[i].track||this.el().removeChild(t[i])},e.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),v.a.performance&&"function"==typeof v.a.performance.now?e.creationTime=v.a.performance.now():v.a.performance&&v.a.performance.timing&&"number"==typeof v.a.performance.timing.navigationStart&&(e.creationTime=v.a.Date.now()-v.a.performance.timing.navigationStart),e},o}(qi);if(oe()){Rr.TEST_VID=h.a.createElement("video");var Ur=h.a.createElement("track");Ur.kind="captions",Ur.srclang="en",Ur.label="English",Rr.TEST_VID.appendChild(Ur)}Rr.isSupported=function(){try{Rr.TEST_VID.volume=.5}catch(e){return!1}return!(!Rr.TEST_VID||!Rr.TEST_VID.canPlayType)},Rr.canPlayType=function(e){return Rr.TEST_VID.canPlayType(e)},Rr.canPlaySource=function(e,t){return Rr.canPlayType(e.type)},Rr.canControlVolume=function(){try{var e=Rr.TEST_VID.volume;return Rr.TEST_VID.volume=e/2+.1,e!==Rr.TEST_VID.volume}catch(e){return!1}},Rr.canMuteVolume=function(){try{var e=Rr.TEST_VID.muted;return Rr.TEST_VID.muted=!e,Rr.TEST_VID.muted?Te(Rr.TEST_VID,"muted","muted"):Se(Rr.TEST_VID,"muted"),e!==Rr.TEST_VID.muted}catch(e){return!1}},Rr.canControlPlaybackRate=function(){if(jt&&qt&&Wt<58)return!1;try{var e=Rr.TEST_VID.playbackRate;return Rr.TEST_VID.playbackRate=e/2+.1,e!==Rr.TEST_VID.playbackRate}catch(e){return!1}},Rr.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(h.a.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(h.a.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(h.a.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(h.a.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},Rr.supportsNativeTextTracks=function(){return $t||Mt&&qt},Rr.supportsNativeVideoTracks=function(){return!(!Rr.TEST_VID||!Rr.TEST_VID.videoTracks)},Rr.supportsNativeAudioTracks=function(){return!(!Rr.TEST_VID||!Rr.TEST_VID.audioTracks)},Rr.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],Rr.prototype.featuresVolumeControl=Rr.canControlVolume(),Rr.prototype.featuresMuteControl=Rr.canMuteVolume(),Rr.prototype.featuresPlaybackRate=Rr.canControlPlaybackRate(),Rr.prototype.featuresSourceset=Rr.canOverrideAttributes(),Rr.prototype.movingMediaElementInDOM=!Mt,Rr.prototype.featuresFullscreenResize=!0,Rr.prototype.featuresProgressEvents=!0,Rr.prototype.featuresTimeupdateEvents=!0,Rr.prototype.featuresNativeTextTracks=Rr.supportsNativeTextTracks(),Rr.prototype.featuresNativeVideoTracks=Rr.supportsNativeVideoTracks(),Rr.prototype.featuresNativeAudioTracks=Rr.supportsNativeAudioTracks();var Mr=Rr.TEST_VID&&Rr.TEST_VID.constructor.prototype.canPlayType,Nr=/^application\/(?:x-|vnd\.apple\.)mpegurl/i;Rr.patchCanPlayType=function(){4<=Bt&&!Vt&&!qt&&(Rr.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&Nr.test(e)?"maybe":Mr.call(this,e)})},Rr.unpatchCanPlayType=function(){var e=Rr.TEST_VID.constructor.prototype.canPlayType;return Rr.TEST_VID.constructor.prototype.canPlayType=Mr,e},Rr.patchCanPlayType(),Rr.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},Rr.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),i=t.length;i--;)e.removeChild(t[i]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){Rr.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(t){Rr.prototype["set"+_t(t)]=function(e){(this.el_[t]=e)?this.el_.setAttribute(t,t):this.el_.removeAttribute(t)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(e){Rr.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach(function(t){Rr.prototype["set"+_t(t)]=function(e){this.el_[t]=e}}),["pause","load","play"].forEach(function(e){Rr.prototype[e]=function(){return this.el_[e]()}}),qi.withSourceHandlers(Rr),Rr.nativeSourceHandler={},Rr.nativeSourceHandler.canPlayType=function(e){try{return Rr.TEST_VID.canPlayType(e)}catch(e){return""}},Rr.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Rr.nativeSourceHandler.canPlayType(e.type);if(e.src){var i=Si(e.src);return Rr.nativeSourceHandler.canPlayType("video/"+i)}return""},Rr.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},Rr.nativeSourceHandler.dispose=function(){},Rr.registerSourceHandler(Rr.nativeSourceHandler),qi.registerTech("Html5",Rr);var jr=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Br={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Fr=["tiny","xsmall","small","medium","large","xlarge","huge"],Vr={};Fr.forEach(function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Vr[e]="vjs-layout-"+t});var Hr={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},qr=function(c){function l(e,t,i){var n;if(e.id=e.id||t.id||"vjs_video_"+Be(),(t=te(l.getTagSettings(e),t)).initChildren=!1,t.createEl=!1,t.evented=!1,t.reportTouchActivity=!1,!t.language)if("function"==typeof e.closest){var r=e.closest("[lang]");r&&r.getAttribute&&(t.language=r.getAttribute("lang"))}else for(var a=e;a&&1===a.nodeType;){if(_e(a).hasOwnProperty("lang")){t.language=a.getAttribute("lang");break}a=a.parentNode}if((n=c.call(this,null,t,i)||this).boundDocumentFullscreenChange_=nt(wt(n),n.documentFullscreenChange_),n.boundFullWindowOnEscKey_=nt(wt(n),n.fullWindowOnEscKey),n.log=J(n.id_),n.fsApi_=ii,n.isPosterFromTech_=!1,n.queuedCallbacks_=[],n.isReady_=!1,n.hasStarted_=!1,n.userActive_=!1,!n.options_||!n.options_.techOrder||!n.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(n.tag=e,n.tagAttributes=e&&_e(e),n.language(n.options_.language),t.languages){var s={};Object.getOwnPropertyNames(t.languages).forEach(function(e){s[e.toLowerCase()]=t.languages[e]}),n.languages_=s}else n.languages_=l.prototype.options_.languages;n.resetCache_(),n.poster_=t.poster||"",n.controls_=!!t.controls,e.controls=!1,e.removeAttribute("controls"),n.changingSrc_=!1,n.playCallbacks_=[],n.playTerminatedQueue_=[],e.hasAttribute("autoplay")?n.autoplay(!0):n.autoplay(n.options_.autoplay),t.plugins&&Object.keys(t.plugins).forEach(function(e){if("function"!=typeof n[e])throw new Error('plugin "'+e+'" does not exist')}),n.scrubbing_=!1,n.el_=n.createEl(),mt(wt(n),{eventBusKey:"el_"}),n.fluid_&&n.on("playerreset",n.updateStyleEl_);var o=bt(n.options_);t.plugins&&Object.keys(t.plugins).forEach(function(e){n[e](t.plugins[e])}),n.options_.playerOptions=o,n.middleware_=[],n.initChildren(),n.isAudio("audio"===e.nodeName.toLowerCase()),n.controls()?n.addClass("vjs-controls-enabled"):n.addClass("vjs-controls-disabled"),n.el_.setAttribute("role","region"),n.isAudio()?n.el_.setAttribute("aria-label",n.localize("Audio Player")):n.el_.setAttribute("aria-label",n.localize("Video Player")),n.isAudio()&&n.addClass("vjs-audio"),n.flexNotSupported_()&&n.addClass("vjs-no-flex"),Xt&&n.addClass("vjs-touch-enabled"),Mt||n.addClass("vjs-workinghover"),l.players[n.id_]=wt(n);var u="7.6.4".split(".")[0];return n.addClass("vjs-v"+u),n.userActive(!0),n.reportUserActivity(),n.one("play",n.listenForUserActivity_),n.on("stageclick",n.handleStageClick_),n.on("keydown",n.handleKeyDown),n.breakpoints(n.options_.breakpoints),n.responsive(n.options_.responsive),n}St(l,c);var e=l.prototype;return e.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),ze(h.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),ze(h.a,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),l.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.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),function(e){Gi[e.id()]=null}(this),Hi.names.forEach(function(e){var t=Hi[e],i=n[t.getterName]();i&&i.off&&i.off()}),c.prototype.dispose.call(this)},e.createEl=function(){var t,i=this.tag,e=this.playerElIngest_=i.parentNode&&i.parentNode.hasAttribute&&i.parentNode.hasAttribute("data-vjs-player"),n="video-js"===this.tag.tagName.toLowerCase();e?t=this.el_=i.parentNode:n||(t=this.el_=c.prototype.createEl.call(this,"div"));var r=_e(i);if(n){for(t=this.el_=i,i=this.tag=h.a.createElement("video");t.children.length;)i.appendChild(t.firstChild);fe(t,"video-js")||me(t,"video-js"),t.appendChild(i),e=this.playerElIngest_=t,Object.keys(t).forEach(function(e){i[e]=t[e]})}if(i.setAttribute("tabindex","-1"),r.tabindex="-1",(Gt||qt&&Kt)&&(i.setAttribute("role","application"),r.role="application"),i.removeAttribute("width"),i.removeAttribute("height"),"width"in r&&delete r.width,"height"in r&&delete r.height,Object.getOwnPropertyNames(r).forEach(function(e){n&&"class"===e||t.setAttribute(e,r[e]),n&&i.setAttribute(e,r[e])}),i.playerId=i.id,i.id+="_html5_api",i.className="vjs-tech",i.player=t.player=this,this.addClass("vjs-paused"),!0!==v.a.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=tt("vjs-styles-dimensions");var a=Re(".vjs-styles-defaults"),s=Re("head");s.insertBefore(this.styleEl_,a?a.nextSibling:s.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var o=i.getElementsByTagName("a"),u=0;u<o.length;u++){var l=o.item(u);me(l,"vjs-hidden"),l.setAttribute("hidden","hidden")}return i.initNetworkState_=i.networkState,i.parentNode&&!e&&i.parentNode.insertBefore(t,i),pe(i,t),this.children_.unshift(i),this.el_.setAttribute("lang",this.language_),this.el_=t},e.width=function(e){return this.dimension("width",e)},e.height=function(e){return this.dimension("height",e)},e.dimension=function(e,t){var i=e+"_";if(void 0===t)return this[i]||0;if(""===t)return this[i]=void 0,void this.updateStyleEl_();var n=parseFloat(t);isNaN(n)?Y.error('Improper value "'+t+'" supplied for for '+e):(this[i]=n,this.updateStyleEl_())},e.fluid=function(e){if(void 0===e)return!!this.fluid_;this.fluid_=!!e,pt(this)&&this.off("playerreset",this.updateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),function(e,t){pt(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))}(function(){this.on("playerreset",this.updateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()},e.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},e.aspectRatio=function(e){if(void 0===e)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_()},e.updateStyleEl_=function(){if(!0!==v.a.VIDEOJS_NO_DYNAMIC_STYLE){var e,t,i,n=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:0<this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),r=n[1]/n[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/r:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*r,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),it(this.styleEl_,"\n      ."+i+" {\n        width: "+e+"px;\n        height: "+t+"px;\n      }\n\n      ."+i+".vjs-fluid {\n        padding-top: "+100*r+"%;\n      }\n    ")}else{var a="number"==typeof this.width_?this.width_:this.options_.width,s="number"==typeof this.height_?this.height_:this.options_.height,o=this.tech_&&this.tech_.el();o&&(0<=a&&(o.width=a),0<=s&&(o.height=s))}},e.loadTech_=function(e,t){var i=this;this.tech_&&this.unloadTech_();var n=_t(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==n&&this.tag&&(qi.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;var a={source:t,autoplay:"string"!=typeof this.autoplay()&&this.autoplay(),nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",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"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};Hi.names.forEach(function(e){var t=Hi[e];a[t.getterName]=i[t.privateName]}),te(a,this.options_[n]),te(a,this.options_[r]),te(a,this.options_[e.toLowerCase()]),this.tag&&(a.tag=this.tag),t&&t.src===this.cache_.src&&0<this.cache_.currentTime&&(a.startTime=this.cache_.currentTime);var s=qi.getTech(e);if(!s)throw new Error("No Tech named '"+n+"' exists! '"+n+"' should be registered using videojs.registerTech()'");this.tech_=new s(a),this.tech_.ready(nt(this,this.handleTechReady_),!0),pi(this.textTracksJson_||[],this.tech_),jr.forEach(function(e){i.on(i.tech_,e,i["handleTech"+_t(e)+"_"])}),Object.keys(Br).forEach(function(t){i.on(i.tech_,t,function(e){0===i.tech_.playbackRate()&&i.tech_.seeking()?i.queuedCallbacks_.push({callback:i["handleTech"+Br[t]+"_"].bind(i),event:e}):i["handleTech"+Br[t]+"_"](e)})}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"sourceset",this.handleTechSourceset_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),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_,"enterpictureinpicture",this.handleTechEnterPictureInPicture_),this.on(this.tech_,"leavepictureinpicture",this.handleTechLeavePictureInPicture_),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_,"ratechange",this.handleTechRateChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===n&&this.tag||pe(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},e.unloadTech_=function(){var i=this;Hi.names.forEach(function(e){var t=Hi[e];i[t.privateName]=i[t.getterName]()}),this.textTracksJson_=di(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},e.tech=function(e){return void 0===e&&Y.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},e.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mouseup",this.handleTechClick_),this.on(this.tech_,"dblclick",this.handleTechDoubleClick_),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_)},e.removeTechControlsListeners_=function(){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_,"mouseup",this.handleTechClick_),this.off(this.tech_,"dblclick",this.handleTechDoubleClick_)},e.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},e.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay())},e.manualAutoplay_=function(t){var n=this;if(this.tech_&&"string"==typeof t){var e,i=function(){var e=n.muted();n.muted(!0);function t(){n.muted(e)}n.playTerminatedQueue_.push(t);var i=n.play();if(li(i))return i.catch(t)};if("any"===t&&!0!==this.muted()?li(e=this.play())&&(e=e.catch(i)):e="muted"===t&&!0!==this.muted()?i():this.play(),li(e))return e.then(function(){n.trigger({type:"autoplay-success",autoplay:t})}).catch(function(e){n.trigger({type:"autoplay-failure",autoplay:t})})}},e.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,i="";"string"!=typeof t&&(t=e.src,i=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!i&&(i=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var i=e.cache_.sources.filter(function(e){return e.src===t});if(i.length)return i[0].type;for(var n=e.$$("source"),r=0;r<n.length;r++){var a=n[r];if(a.type&&a.src&&a.src===t)return a.type}return en(t)}(this,t)),this.cache_.source=bt({},e,{src:t,type:i});for(var n=this.cache_.sources.filter(function(e){return e.src&&e.src===t}),r=[],a=this.$$("source"),s=[],o=0;o<a.length;o++){var u=_e(a[o]);r.push(u),u.src&&u.src===t&&s.push(u.src)}s.length&&!n.length?this.cache_.sources=r:n.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},e.handleTechSourceset_=function(e){var i=this;if(!this.changingSrc_){var t=function(e){return i.updateSourceCaches_(e)},n=this.currentSource().src,r=e.src;n&&!/^blob:/.test(n)&&/^blob:/.test(r)&&(this.lastSource_&&(this.lastSource_.tech===r||this.lastSource_.player===n)||(t=function(){})),t(r),e.src||this.tech_.any(["sourceset","loadstart"],function(e){if("sourceset"!==e.type){var t=i.techGet("currentSrc");i.lastSource_.tech=t,i.updateSourceCaches_(t)}})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},e.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},e.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},e.handleTechRateChange_=function(){0<this.tech_.playbackRate()&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},e.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting");var i=this.currentTime();this.on("timeupdate",function e(){i!==t.currentTime()&&(t.removeClass("vjs-waiting"),t.off("timeupdate",e))})},e.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},e.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},e.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},e.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},e.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},e.handleTechFirstPlay_=function(){this.options_.starttime&&(Y.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")},e.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},e.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},e.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},e.handleTechClick_=function(e){De(e)&&this.controls_&&(this.paused()?ci(this.play()):this.pause())},e.handleTechDoubleClick_=function(t){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(e){return e.contains(t.target)})||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,t):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},e.handleTechTap_=function(){this.userActive(!this.userActive())},e.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},e.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},e.handleTechTouchEnd_=function(e){e.preventDefault()},e.handleStageClick_=function(){this.reportUserActivity()},e.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},e.documentFullscreenChange_=function(e){var t=this.el(),i=h.a[this.fsApi_.fullscreenElement]===t;!i&&t.matches?i=t.matches(":"+this.fsApi_.fullscreen):!i&&t.msMatchesSelector&&(i=t.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(i),!1===this.isFullscreen()&&ze(h.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.fsApi_.prefixed&&this.trigger("fullscreenchange")},e.handleTechFullscreenChange_=function(e,t){t&&this.isFullscreen(t.isFullscreen),this.trigger("fullscreenchange")},e.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},e.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},e.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},e.handleTechError_=function(){var e=this.tech_.error();this.error(e)},e.handleTechTextData_=function(e,t){var i=null;1<arguments.length&&(i=t),this.trigger("textdata",i)},e.getCache=function(){return this.cache_},e.resetCache_=function(){this.cache_={currentTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],volume:1}},e.techCall_=function(e,t){this.ready(function(){if(e in Yi)return function(e,t,i,n){return t[i](e.reduce(Qi(i),n))}(this.middleware_,this.tech_,e,t);if(e in Ji)return Ki(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw Y(e),e}},!0)},e.techGet_=function(t){if(this.tech_&&this.tech_.isReady_){if(t in Xi)return function(e,t,i){return e.reduceRight(Qi(i),t[i]())}(this.middleware_,this.tech_,t);if(t in Ji)return Ki(this.middleware_,this.tech_,t);try{return this.tech_[t]()}catch(e){if(void 0===this.tech_[t])throw Y("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e),e;if("TypeError"===e.name)throw Y("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1,e;throw Y(e),e}}},e.play=function(){var t=this,e=this.options_.Promise||v.a.Promise;return e?new e(function(e){t.play_(e)}):this.play_()},e.play_=function(e){var t=this;void 0===e&&(e=ci),this.playCallbacks_.push(e);var i=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!i)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(i||!$t&&!Mt||this.load());var n=this.techGet_("play");null===n?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(n)},e.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})},e.runPlayCallbacks_=function(t){var e=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],e.forEach(function(e){e(t)})},e.pause=function(){this.techCall_("pause")},e.paused=function(){return!1!==this.techGet_("paused")},e.played=function(){return this.techGet_("played")||Zt(0,0)},e.scrubbing=function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},e.currentTime=function(e){return void 0!==e?(e<0&&(e=0),void this.techCall_("setCurrentTime",e)):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},e.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&((this.cache_.duration=e)===1/0?(this.addClass("vjs-live"),this.options_.liveui&&this.player_.liveTracker&&this.addClass("vjs-liveui")):(this.removeClass("vjs-live"),this.removeClass("vjs-liveui")),isNaN(e)||this.trigger("durationchange"))},e.remainingTime=function(){return this.duration()-this.currentTime()},e.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},e.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=Zt(0,0)),e},e.bufferedPercent=function(){return ei(this.buffered(),this.duration())},e.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),i=e.end(e.length-1);return t<i&&(i=t),i},e.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(0<t&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},e.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},e.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},e.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},e.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},e.isFullscreen=function(e){return void 0!==e?(this.isFullscreen_=!!e,void this.toggleFullscreenClass_()):!!this.isFullscreen_},e.requestFullscreen=function(e){var t;this.isFullscreen(!0),this.fsApi_.requestFullscreen?(Ge(h.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),ci(this.el_[this.fsApi_.requestFullscreen](t))):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))},e.exitFullscreen=function(){this.isFullscreen(!1),this.fsApi_.requestFullscreen?ci(h.a[this.fsApi_.exitFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))},e.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=h.a.documentElement.style.overflow,Ge(h.a,"keydown",this.boundFullWindowOnEscKey_),h.a.documentElement.style.overflow="hidden",me(h.a.body,"vjs-full-window"),this.trigger("enterFullWindow")},e.fullWindowOnEscKey=function(e){p.a.isEventKey(e,"Esc")&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},e.exitFullWindow=function(){this.isFullWindow=!1,ze(h.a,"keydown",this.boundFullWindowOnEscKey_),h.a.documentElement.style.overflow=this.docOrigOverflow,ge(h.a.body,"vjs-full-window"),this.trigger("exitFullWindow")},e.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},e.requestPictureInPicture=function(){if("pictureInPictureEnabled"in h.a)return this.techGet_("requestPictureInPicture")},e.exitPictureInPicture=function(){if("pictureInPictureEnabled"in h.a)return h.a.exitPictureInPicture()},e.handleKeyDown=function(e){var t=this.options_.userActions;if(t&&t.hotkeys){!function(e){var t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;if("input"===t)return-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type);return-1!==["textarea"].indexOf(t)}(this.el_.ownerDocument.activeElement)&&("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}},e.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},i=t.fullscreenKey,n=void 0===i?function(e){return p.a.isEventKey(e,"f")}:i,r=t.muteKey,a=void 0===r?function(e){return p.a.isEventKey(e,"m")}:r,s=t.playPauseKey,o=void 0===s?function(e){return p.a.isEventKey(e,"k")||p.a.isEventKey(e,"Space")}:s;if(n.call(this,e)){e.preventDefault(),e.stopPropagation();var u=Tt.getComponent("FullscreenToggle");!1!==h.a[this.fsApi_.fullscreenEnabled]&&u.prototype.handleClick.call(this,e)}else if(a.call(this,e)){e.preventDefault(),e.stopPropagation(),Tt.getComponent("MuteToggle").prototype.handleClick.call(this,e)}else if(o.call(this,e)){e.preventDefault(),e.stopPropagation(),Tt.getComponent("PlayToggle").prototype.handleClick.call(this,e)}},e.canPlayType=function(e){for(var t,i=0,n=this.options_.techOrder;i<n.length;i++){var r=n[i],a=qi.getTech(r);if(a=a||Tt.getComponent(r)){if(a.isSupported()&&(t=a.canPlayType(e)))return t}else Y.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},e.selectSource=function(e){function t(e,i,n){var r;return e.some(function(t){return i.some(function(e){if(r=n(t,e))return!0})}),r}function i(e,t){var i=e[0];if(e[1].canPlaySource(t,r.options_[i.toLowerCase()]))return{source:t,tech:i}}var n,r=this,a=this.options_.techOrder.map(function(e){return[e,qi.getTech(e)]}).filter(function(e){var t=e[0],i=e[1];return i?i.isSupported():(Y.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)});return(this.options_.sourceOrder?t(e,a,(n=i,function(e,t){return n(t,e)})):t(a,e,i))||!1},e.src=function(e){var i=this;if(void 0===e)return this.cache_.src||"";var n=function t(e){if(Array.isArray(e)){var i=[];e.forEach(function(e){e=t(e),Array.isArray(e)?i=i.concat(e):ie(e)&&i.push(e)}),e=i}else e="string"==typeof e&&e.trim()?[nn({src:e})]:ie(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[nn(e)]:[];return e}(e);n.length?(this.changingSrc_=!0,this.cache_.sources=n,this.updateSourceCaches_(n[0]),$i(this,n[0],function(e,t){if(i.middleware_=t,i.cache_.sources=n,i.updateSourceCaches_(e),i.src_(e))return 1<n.length?i.src(n.slice(1)):(i.changingSrc_=!1,i.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void i.triggerReady());!function(e,t){e.forEach(function(e){return e.setTech&&e.setTech(t)})}(t,i.tech_)})):this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)},e.src_=function(e){var t=this,i=this.selectSource([e]);return!i||(function(e,t){return _t(e)===_t(t)}(i.tech,this.techName_)?this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0):(this.changingSrc_=!0,this.loadTech_(i.tech,i.source),this.tech_.ready(function(){t.changingSrc_=!1})),!1)},e.load=function(){this.techCall_("load")},e.reset=function(){var e=this,t=this.options_.Promise||v.a.Promise;this.paused()||!t?this.doReset_():ci(this.play().then(function(){return e.doReset_()}))},e.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),pt(this)&&this.trigger("playerreset")},e.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},e.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar,t=e.durationDisplay,i=e.remainingTimeDisplay;t&&t.updateContent(),i&&i.updateContent()},e.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},e.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},e.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},e.currentSource=function(){return this.cache_.source||{}},e.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},e.currentType=function(){return this.currentSource()&&this.currentSource().type||""},e.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},e.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"==typeof e&&/(any|play|muted)/.test(e)?(this.options_.autoplay=e,this.manualAutoplay_(e),t=!1):this.options_.autoplay=!!e,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},e.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},e.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},e.poster=function(e){if(void 0===e)return this.poster_;(e=e||"")!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},e.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},e.controls=function(e){if(void 0===e)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_()))},e.usingNativeControls=function(e){if(void 0===e)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")))},e.error=function(e){if(void 0===e)return this.error_||null;if(this.options_.suppressNotSupportedError&&e&&e.message&&e.message===this.localize(this.options_.notSupportedMessage)){var t=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],t),void this.one("loadstart",function(){this.off(["click","touchstart"],t)})}if(null===e)return this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new oi(e),this.addClass("vjs-error"),Y.error("(CODE:"+this.error_.code+" "+oi.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error")},e.reportUserActivity=function(e){this.userActivity_=!0},e.userActive=function(e){if(void 0===e)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(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},e.listenForUserActivity_=function(){var t,i,n,r=nt(this,this.reportUserActivity);this.on("mousedown",function(){r(),this.clearInterval(t),t=this.setInterval(r,250)}),this.on("mousemove",function(e){e.screenX===i&&e.screenY===n||(i=e.screenX,n=e.screenY,r())}),this.on("mouseup",function(e){r(),this.clearInterval(t)});var a,e=this.getChild("controlBar");!e||Mt||jt||(e.on("mouseenter",function(e){this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout,this.player().options_.inactivityTimeout=0}),e.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",r),this.on("keyup",r),this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(a);var e=this.options_.inactivityTimeout;e<=0||(a=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))}},250)},e.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},e.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},e.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},e.addTextTrack=function(e,t,i){if(this.tech_)return this.tech_.addTextTrack(e,t,i)},e.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},e.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e.track;if(t=t||e,this.tech_)return this.tech_.removeRemoteTextTrack(t)},e.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},e.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},e.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},e.language=function(e){if(void 0===e)return this.language_;this.language_=String(e).toLowerCase()},e.languages=function(){return bt(l.prototype.options_.languages,this.languages_)},e.toJSON=function(){var e=bt(this.options_),t=e.tracks;e.tracks=[];for(var i=0;i<t.length;i++){var n=t[i];(n=bt(n)).player=void 0,e.tracks[i]=n}return e},e.createModal=function(e,t){var i=this;(t=t||{}).content=e||"";var n=new mi(this,t);return this.addChild(n),n.on("dispose",function(){i.removeChild(n)}),n.open(),n},e.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),i=0;i<Fr.length;i++){var n=Fr[i];if(t<=this.breakpoints_[n]){if(e===n)return;e&&this.removeClass(Vr[e]),this.addClass(Vr[n]),this.breakpoint_=n;break}}},e.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},e.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=te({},Hr,e),this.updateCurrentBreakpoint_()),te(this.breakpoints_)},e.responsive=function(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?((this.responsive_=e)?(this.on("playerresize",this.updateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.updateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},e.currentBreakpoint=function(){return this.breakpoint_},e.currentBreakpointClass=function(){return Vr[this.breakpoint_]||""},e.loadMedia=function(e,t){var i=this;if(e&&"object"==typeof e){this.reset(),this.cache_.media=bt(e);var n=this.cache_.media,r=n.artwork,a=n.poster,s=n.src,o=n.textTracks;!r&&a&&(this.cache_.media.artwork=[{src:a,type:en(a)}]),s&&this.src(s),a&&this.poster(a),Array.isArray(o)&&o.forEach(function(e){return i.addRemoteTextTrack(e,!1)}),this.ready(t)}},e.getMedia=function(){if(this.cache_.media)return bt(this.cache_.media);var e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}})};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:en(t.poster)}]),t},l.getTagSettings=function(e){var t={sources:[],tracks:[]},i=_e(e),n=i["data-setup"];if(fe(e,"vjs-fill")&&(i.fill=!0),fe(e,"vjs-fluid")&&(i.fluid=!0),null!==n){var r=d()(n||"{}"),a=r[0],s=r[1];a&&Y.error(a),te(i,s)}if(te(t,i),e.hasChildNodes())for(var o=e.childNodes,u=0,l=o.length;u<l;u++){var c=o[u],h=c.nodeName.toLowerCase();"source"===h?t.sources.push(_e(c)):"track"===h&&t.tracks.push(_e(c))}return t},e.flexNotSupported_=function(){var e=h.a.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},l}(Tt);Hi.names.forEach(function(e){var t=Hi[e];qr.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),qr.players={};var Wr=v.a.navigator;qr.prototype.options_={techOrder:qi.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Wr&&(Wr.languages&&Wr.languages[0]||Wr.userLanguage||Wr.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){qr.prototype[e]=function(){return this.techGet_(e)}}),jr.forEach(function(e){qr.prototype["handleTech"+_t(e)+"_"]=function(){return this.trigger(e)}}),Tt.registerComponent("Player",qr);function Gr(e){return Qr.hasOwnProperty(e)}function zr(e){return Gr(e)?Qr[e]:void 0}function $r(e,t){e[Jr]=e[Jr]||{},e[Jr][t]=!0}function Kr(e,t,i){var n=(i?"before":"")+"pluginsetup";e.trigger(n,t),e.trigger(n+":"+t.name,t)}function Xr(r,a){return a.prototype.name=r,function(){Kr(this,{name:r,plugin:a,instance:null},!0);for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=Et(a,[this].concat(t));return this[r]=function(){return n},Kr(this,n.getEventHash()),n}}var Yr="plugin",Jr="activePlugins_",Qr={},Zr=function(){function i(e){if(this.constructor===i)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,mt(this),delete this.trigger,yt(this,this.constructor.defaultState),$r(e,this.name),this.dispose=nt(this,this.dispose),e.on("dispose",this.dispose)}var e=i.prototype;return e.version=function(){return this.constructor.VERSION},e.getEventHash=function(e){return void 0===e&&(e={}),e.name=this.name,e.plugin=this.constructor,e.instance=this,e},e.trigger=function(e,t){return void 0===t&&(t={}),$e(this.eventBusEl_,e,this.getEventHash(t))},e.handleStateChanged=function(e){},e.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[Jr][e]=!1,this.player=this.state=null,t[e]=Xr(e,Qr[e])},i.isBasic=function(e){var t="string"==typeof e?zr(e):e;return"function"==typeof t&&!i.prototype.isPrototypeOf(t.prototype)},i.registerPlugin=function(e,t){if("string"!=typeof e)throw new Error('Illegal plugin name, "'+e+'", must be a string, was '+typeof e+".");if(Gr(e))Y.warn('A plugin named "'+e+'" already exists. You may want to avoid re-registering plugins!');else if(qr.prototype.hasOwnProperty(e))throw new Error('Illegal plugin name, "'+e+'", cannot share a name with an existing player method!');if("function"!=typeof t)throw new Error('Illegal plugin for "'+e+'", must be a function, was '+typeof t+".");return Qr[e]=t,e!==Yr&&(i.isBasic(t)?qr.prototype[e]=function(t,i){function n(){Kr(this,{name:t,plugin:i,instance:null},!0);var e=i.apply(this,arguments);return $r(this,t),Kr(this,{name:t,plugin:i,instance:e}),e}return Object.keys(i).forEach(function(e){n[e]=i[e]}),n}(e,t):qr.prototype[e]=Xr(e,t)),t},i.deregisterPlugin=function(e){if(e===Yr)throw new Error("Cannot de-register base plugin.");Gr(e)&&(delete Qr[e],delete qr.prototype[e])},i.getPlugins=function(e){var i;return void 0===e&&(e=Object.keys(Qr)),e.forEach(function(e){var t=zr(e);t&&((i=i||{})[e]=t)}),i},i.getPluginVersion=function(e){var t=zr(e);return t&&t.VERSION||""},i}();Zr.getPlugin=zr,Zr.BASE_PLUGIN_NAME=Yr,Zr.registerPlugin(Yr,Zr),qr.prototype.usingPlugin=function(e){return!!this[Jr]&&!0===this[Jr][e]},qr.prototype.hasPlugin=function(e){return!!Gr(e)};var ea=function(e){return 0===e.indexOf("#")?e.slice(1):e};function ta(e,i,t){var n=ta.getPlayer(e);if(n)return i&&Y.warn('Player "'+e+'" is already initialised. Options will not be applied.'),t&&n.ready(t),n;var r="string"==typeof e?Re("#"+ea(e)):e;if(!ue(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");r.ownerDocument.defaultView&&r.ownerDocument.body.contains(r)||Y.warn("The element supplied is not included in the DOM"),i=i||{},ta.hooks("beforesetup").forEach(function(e){var t=e(r,bt(i));ie(t)&&!Array.isArray(t)?i=bt(i,t):Y.error("please return an object in beforesetup hooks")});var a=Tt.getComponent("Player");return n=new a(r,i,t),ta.hooks("setup").forEach(function(e){return e(n)}),n}if(ta.hooks_={},ta.hooks=function(e,t){return ta.hooks_[e]=ta.hooks_[e]||[],t&&(ta.hooks_[e]=ta.hooks_[e].concat(t)),ta.hooks_[e]},ta.hook=function(e,t){ta.hooks(e,t)},ta.hookOnce=function(i,e){ta.hooks(i,[].concat(e).map(function(t){return function e(){return ta.removeHook(i,e),t.apply(void 0,arguments)}}))},ta.removeHook=function(e,t){var i=ta.hooks(e).indexOf(t);return!(i<=-1)&&(ta.hooks_[e]=ta.hooks_[e].slice(),ta.hooks_[e].splice(i,1),!0)},!0!==v.a.VIDEOJS_NO_DYNAMIC_STYLE&&oe()){var ia=Re(".vjs-styles-defaults");if(!ia){ia=tt("vjs-styles-defaults");var na=Re("head");na&&na.insertBefore(ia,na.firstChild),it(ia,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")}}et(1,ta),ta.VERSION="7.6.4",ta.options=qr.prototype.options_,ta.getPlayers=function(){return qr.players},ta.getPlayer=function(e){var t,i=qr.players;if("string"==typeof e){var n=ea(e),r=i[n];if(r)return r;t=Re("#"+n)}else t=e;if(ue(t)){var a=t,s=a.player,o=a.playerId;if(s||i[o])return s||i[o]}},ta.getAllPlayers=function(){return Object.keys(qr.players).map(function(e){return qr.players[e]}).filter(Boolean)},ta.players=qr.players,ta.getComponent=Tt.getComponent,ta.registerComponent=function(e,t){qi.isTech(t)&&Y.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Tt.registerComponent.call(Tt,e,t)},ta.getTech=qi.getTech,ta.registerTech=qi.registerTech,ta.use=function(e,t){Wi[e]=Wi[e]||[],Wi[e].push(t)},Object.defineProperty(ta,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(ta.middleware,"TERMINATOR",{value:zi,writeable:!1,enumerable:!0}),ta.browser=Yt,ta.TOUCH_ENABLED=Xt,ta.extend=function(e,t){void 0===t&&(t={});var i=function(){e.apply(this,arguments)},n={};for(var r in"object"==typeof t?(t.constructor!==Object.prototype.constructor&&(i=t.constructor),n=t):"function"==typeof t&&(i=t),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&&(e.super_=t)}(i,e),n)n.hasOwnProperty(r)&&(i.prototype[r]=n[r]);return i},ta.mergeOptions=bt,ta.bind=nt,ta.registerPlugin=Zr.registerPlugin,ta.deregisterPlugin=Zr.deregisterPlugin,ta.plugin=function(e,t){return Y.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Zr.registerPlugin(e,t)},ta.getPlugins=Zr.getPlugins,ta.getPlugin=Zr.getPlugin,ta.getPluginVersion=Zr.getPluginVersion,ta.addLanguage=function(e,t){var i;return e=(""+e).toLowerCase(),ta.options.languages=bt(ta.options.languages,((i={})[e]=t,i)),ta.options.languages[e]},ta.log=Y,ta.createLogger=J,ta.createTimeRange=ta.createTimeRanges=Zt,ta.formatTime=_n,ta.setFormatTime=function(e){vn=e},ta.resetFormatTime=function(){vn=yn},ta.parseUrl=bi,ta.isCrossOrigin=ki,ta.EventTarget=at,ta.on=Ge,ta.one=Ke,ta.off=ze,ta.trigger=$e,ta.xhr=c.a,ta.TextTrack=Mi,ta.AudioTrack=Ni,ta.VideoTrack=ji,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){ta[e]=function(){return Y.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Me[e].apply(null,arguments)}}),ta.computedStyle=re,ta.dom=Me,ta.url=Ui;function ra(e,t){return/^[a-z]+:/i.test(t)?t:(/\/\//i.test(e)||(e=m.a.buildAbsoluteURL(v.a.location.href,e)),m.a.buildAbsoluteURL(e,t))}function aa(e,t,i){return e&&i.responseURL&&t!==i.responseURL?i.responseURL:t}function sa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
/**
 * @videojs/http-streaming
 * @version 1.10.6
 * @copyright 2019 Brightcove, Inc
 * @license Apache-2.0
 */
var oa=function(e,t,i){return t&&ua(e.prototype,t),i&&ua(e,i),e};function ua(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function la(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)}function ca(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function ha(r,a){["AUDIO","SUBTITLES"].forEach(function(e){for(var t in r.mediaGroups[e])for(var i in r.mediaGroups[e][t]){var n=r.mediaGroups[e][t][i];a(n,e,t,i)}})}function da(e,t){var i=ya(e,{}),n=i.playlists[t.uri];if(!n)return null;if(n.segments&&t.segments&&n.segments.length===t.segments.length&&n.endList===t.endList&&n.mediaSequence===t.mediaSequence)return null;var r=ya(n,t);n.segments&&(r.segments=function(e,t,i){var n=t.slice();i=i||0;for(var r=Math.min(e.length,t.length+i),a=i;a<r;a++)n[a-i]=ya(e[a],n[a-i]);return n}(n.segments,t.segments,t.mediaSequence-n.mediaSequence)),r.segments.forEach(function(e){!function(e,t){e.resolvedUri||(e.resolvedUri=ra(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=ra(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=ra(t,e.map.uri))}(e,r.resolvedUri)});for(var a=0;a<i.playlists.length;a++)i.playlists[a].uri===t.uri&&(i.playlists[a]=r);return i.playlists[t.uri]=r,i}function pa(e){for(var t=e.playlists.length;t--;){var i=e.playlists[t];(e.playlists[i.uri]=i).resolvedUri=ra(e.uri,i.uri),i.id=t,i.attributes||(i.attributes={},va.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute."))}}function fa(t){ha(t,function(e){e.uri&&(e.resolvedUri=ra(t.uri,e.uri))})}function ma(e,t){var i=e.segments[e.segments.length-1];return t&&i&&i.duration?1e3*i.duration:500*(e.targetDuration||10)}var ga=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,r=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(r)throw a}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},ya=ta.mergeOptions,va=ta.log,_a=(la(ba,ta.EventTarget),oa(ba,[{key:"playlistRequestError",value:function(e,t,i){this.request=null,i&&(this.state=i),this.error={playlist:this.master.playlists[t],status:e.status,message:"HLS playlist request error at URL: "+t+".",responseText:e.responseText,code:500<=e.status?4:2},this.trigger("error")}},{key:"haveMetadata",value:function(e,t){var i=this;this.request=null,this.state="HAVE_METADATA";var n=new k;this.customTagParsers.forEach(function(e){return n.addParser(e)}),this.customTagMappers.forEach(function(e){return n.addTagMapper(e)}),n.push(e.responseText),n.end(),n.manifest.uri=t,n.manifest.attributes=n.manifest.attributes||{};var r=da(this.master,n.manifest);this.targetDuration=n.manifest.targetDuration,r?(this.master=r,this.media_=this.master.playlists[n.manifest.uri]):this.trigger("playlistunchanged"),this.media().endList||(v.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=v.a.setTimeout(function(){i.trigger("mediaupdatetimeout")},ma(this.media(),!!r))),this.trigger("loadedplaylist")}},{key:"dispose",value:function(){this.stopRequest(),v.a.clearTimeout(this.mediaUpdateTimeout),v.a.clearTimeout(this.finalRenditionTimeout)}},{key:"stopRequest",value:function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}},{key:"media",value:function(i,e){var n=this;if(!i)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof i){if(!this.master.playlists[i])throw new Error("Unknown playlist URI: "+i);i=this.master.playlists[i]}if(v.a.clearTimeout(this.finalRenditionTimeout),e){var t=i.targetDuration/2*1e3||5e3;this.finalRenditionTimeout=v.a.setTimeout(this.media.bind(this,i,!1),t)}else{var r=this.state,a=!this.media_||i.uri!==this.media_.uri;if(this.master.playlists[i.uri].endList)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=i,void(a&&(this.trigger("mediachanging"),this.trigger("mediachange")));if(a){if(this.state="SWITCHING_MEDIA",this.request){if(i.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.request=this.hls_.xhr({uri:i.resolvedUri,withCredentials:this.withCredentials},function(e,t){if(n.request){if(i.resolvedUri=aa(n.handleManifestRedirects,i.resolvedUri,t),e)return n.playlistRequestError(n.request,i.uri,r);n.haveMetadata(t,i.uri),"HAVE_MASTER"===r?n.trigger("loadedmetadata"):n.trigger("mediachange")}})}}}},{key:"pause",value:function(){this.stopRequest(),v.a.clearTimeout(this.mediaUpdateTimeout),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}},{key:"load",value:function(e){var t=this;v.a.clearTimeout(this.mediaUpdateTimeout);var i=this.media();if(e){var n=i?i.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=v.a.setTimeout(function(){return t.load()},n)}else this.started?i&&!i.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()}},{key:"start",value:function(){var n=this;this.started=!0,this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(e,t){if(n.request){if(n.request=null,e)return n.error={status:t.status,message:"HLS playlist request error at URL: "+n.srcUrl+".",responseText:t.responseText,code:2},"HAVE_NOTHING"===n.state&&(n.started=!1),n.trigger("error");var i=new k;return n.customTagParsers.forEach(function(e){return i.addParser(e)}),n.customTagMappers.forEach(function(e){return i.addTagMapper(e)}),i.push(t.responseText),i.end(),n.state="HAVE_MASTER",n.srcUrl=aa(n.handleManifestRedirects,n.srcUrl,t),i.manifest.uri=n.srcUrl,i.manifest.playlists?(n.master=i.manifest,pa(n.master),fa(n.master),n.trigger("loadedplaylist"),void(n.request||n.media(i.manifest.playlists[0]))):(n.master={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:v.a.location.href,playlists:[{uri:n.srcUrl,id:0,resolvedUri:n.srcUrl,attributes:{}}]},n.master.playlists[n.srcUrl]=n.master.playlists[0],n.haveMetadata(t,n.srcUrl),n.trigger("loadedmetadata"))}})}}]),ba);function ba(e,t){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};sa(this,ba);var n=ca(this,(ba.__proto__||Object.getPrototypeOf(ba)).call(this)),r=i.withCredentials,a=void 0!==r&&r,s=i.handleManifestRedirects,o=void 0!==s&&s;n.srcUrl=e,n.hls_=t,n.withCredentials=a,n.handleManifestRedirects=o;var u=t.options_;if(n.customTagParsers=u&&u.customTagParsers||[],n.customTagMappers=u&&u.customTagMappers||[],!n.srcUrl)throw new Error("A non-empty playlist URL is required");return n.state="HAVE_NOTHING",n.on("mediaupdatetimeout",function(){"HAVE_METADATA"===n.state&&(n.state="HAVE_CURRENT_METADATA",n.request=n.hls_.xhr({uri:ra(n.master.uri,n.media().uri),withCredentials:n.withCredentials},function(e,t){if(n.request)return e?n.playlistRequestError(n.request,n.media().uri,"HAVE_METADATA"):void n.haveMetadata(n.request,n.media().uri)}))}),n}function Ta(e,t,i){var n,r;return void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence?0:(n=function(e,t){var i=0,n=t-e.mediaSequence,r=e.segments[n];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;n--;){if(void 0!==(r=e.segments[n]).end)return{result:i+r.end,precise:!0};if(i+=r.duration,void 0!==r.start)return{result:i+r.start,precise:!0}}return{result:i,precise:!1}}(e,t)).precise?n.result:(r=function(e,t){for(var i=0,n=void 0,r=t-e.mediaSequence;r<e.segments.length;r++){if(void 0!==(n=e.segments[r]).start)return{result:n.start-i,precise:!0};if(i+=n.duration,void 0!==n.end)return{result:n.end-i,precise:!0}}return{result:-1,precise:!1}}(e,t)).precise?r.result:n.result+i}function Sa(e,t,i){if(!e)return 0;if("number"!=typeof i&&(i=0),void 0===t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return v.a.Infinity}return Ta(e,t,i)}function ka(e,t,i){var n=0;if(i<t){var r=[i,t];t=r[0],i=r[1]}if(t<0){for(var a=t;a<Math.min(0,i);a++)n+=e.targetDuration;t=0}for(var s=t;s<i;s++)n+=e.segments[s].duration;return n}function Ea(e){if(!e.segments.length)return 0;for(var t=e.segments.length-1,i=e.segments[t].duration||e.targetDuration,n=i+2*e.targetDuration;t--&&!(n<=(i+=e.segments[t].duration)););return Math.max(0,t)}function wa(e,t,i){if(!e||!e.segments)return null;if(e.endList)return Sa(e);if(null===t)return null;t=t||0;var n=i?Ea(e):e.segments.length;return Ta(e,e.mediaSequence+n,t)}function Ca(e){return e-Math.floor(e)==0}function Oa(e,t){if(Ca(t))return t+.1*e;for(var i=t.toString().split(".")[1].length,n=1;n<=i;n++){var r=Math.pow(10,n),a=t*r;if(Ca(a)||n===i)return(a+e)/r}}function Aa(e){return e.excludeUntil&&e.excludeUntil>Date.now()}function Pa(e){return e.excludeUntil&&e.excludeUntil===1/0}function Ia(e){var t=Aa(e);return!e.disabled&&!t}function La(e,t){return t.attributes&&t.attributes[e]}function xa(e,t){if(1===e.playlists.length)return!0;var i=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(function(e){return!!Ia(e)&&(e.attributes.BANDWIDTH||0)<i}).length}function Da(){return function e(t,n){t=is({timeout:45e3},t);var i=e.beforeRequest||ta.Hls.xhr.beforeRequest;if(i&&"function"==typeof i){var r=i(t);r&&(t=r)}var a=ts(t,function(e,t){var i=a.response;!e&&i&&(a.responseTime=Date.now(),a.roundTripTime=a.responseTime-a.requestTime,a.bytesReceived=i.byteLength||i.length,a.bandwidth||(a.bandwidth=Math.floor(a.bytesReceived/a.roundTripTime*8*1e3))),t.headers&&(a.responseHeaders=t.headers),e&&"ETIMEDOUT"===e.code&&(a.timedout=!0),e||a.aborted||200===t.statusCode||206===t.statusCode||0===t.statusCode||(e=new Error("XHR Failed with a response of: "+(a&&(i||a.responseText)))),n(e,a)}),s=a.abort;return a.abort=function(){return a.aborted=!0,s.apply(a,arguments)},a.uri=t.uri,a.requestTime=Date.now(),a}}function Ra(e){var t={};return e.byterange&&(t.Range=function(e){var t;return t=e.offset+e.length-1,"bytes="+e.offset+"-"+t}(e.byterange)),t}function Ua(e,t){var i=e.toString(16);return"00".substring(0,2-i.length)+i+(t%2?" ":"")}function Ma(e){return 32<=e&&e<126?String.fromCharCode(e):"."}function Na(i){var n={};return Object.keys(i).forEach(function(e){var t=i[e];ArrayBuffer.isView(t)?n[e]={bytes:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength}:n[e]=t}),n}function ja(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")}function Ba(e){return e.resolvedUri}function Fa(e){for(var t=Array.prototype.slice.call(e),i="",n=0;n<t.length/16;n++)i+=t.slice(16*n,16*n+16).map(Ua).join("")+" "+t.slice(16*n,16*n+16).map(Ma).join("")+"\n";return i}function Va(e){var t=e.playlist,i=e.time,n=void 0===i?void 0:i,r=e.callback;if(!r)throw new Error("getProgramTime: callback must be provided");if(!t||void 0===n)return r({message:"getProgramTime: playlist and time must be provided"});var a=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var i=0,n=void 0,r=0;r<t.segments.length&&!(e<=(i=(n=t.segments[r]).videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:i+n.duration));r++);var a=t.segments[t.segments.length-1];if(a.videoTimingInfo&&a.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(i<e){if(e>i+.25*a.duration)return null;n=a}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:i-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}}(n,t);if(!a)return r({message:"valid programTime was not found"});if("estimate"===a.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:a.estimatedStart});var s={mediaSeconds:n},o=function(e,t){if(!t.dateTimeObject)return null;var i=t.videoTimingInfo.transmuxerPrependedSeconds,n=e-(t.videoTimingInfo.transmuxedPresentationStart+i);return new Date(t.dateTimeObject.getTime()+1e3*n)}(n,a.segment);return o&&(s.programDateTime=o.toISOString()),r(null,s)}function Ha(e){var t=e.programTime,i=e.playlist,n=e.retryCount,r=void 0===n?2:n,a=e.seekTo,s=e.pauseAfterSeek,o=void 0===s||s,u=e.tech,l=e.callback;if(!l)throw new Error("seekToProgramTime: callback must be provided");if(void 0===t||!i||!a)return l({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!i.endList&&!u.hasStarted_)return l({message:"player must be playing a live stream to start buffering"});if(!function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t<e.segments.length;t++){if(!e.segments[t].dateTimeObject)return!1}return!0}(i))return l({message:"programDateTime tags must be provided in the manifest "+i.resolvedUri});var c=function(e,t){var i=void 0;try{i=new Date(e)}catch(e){return null}if(!t||!t.segments||0===t.segments.length)return null;var n=t.segments[0];if(i<n.dateTimeObject)return null;for(var r=0;r<t.segments.length-1;r++){if(n=t.segments[r],i<t.segments[r+1].dateTimeObject)break}var a=t.segments[t.segments.length-1],s=a.dateTimeObject,o=a.videoTimingInfo?function(e){return e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds}(a.videoTimingInfo):a.duration+.25*a.duration;return new Date(s.getTime()+1e3*o)<i?null:(s<i&&(n=a),{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:es.duration(t,t.mediaSequence+t.segments.indexOf(n)),type:n.videoTimingInfo?"accurate":"estimate"})}(t,i);if(!c)return l({message:t+" was not found in the stream"});var h=c.segment,d=function(e,t){var i=void 0,n=void 0;try{i=new Date(e),n=new Date(t)}catch(e){}var r=i.getTime();return(n.getTime()-r)/1e3}(h.dateTimeObject,t);if("estimate"===c.type)return 0===r?l({message:t+" is not buffered yet. Try again"}):(a(c.estimatedStart+d),void u.one("seeked",function(){Ha({programTime:t,playlist:i,retryCount:r-1,seekTo:a,pauseAfterSeek:o,tech:u,callback:l})}));var p=h.start+d;u.one("seeked",function(){return l(null,u.currentTime())}),o&&u.pause(),a(p)}function qa(e,t){var i=[],n=void 0;if(e&&e.length)for(n=0;n<e.length;n++)t(e.start(n),e.end(n))&&i.push([e.start(n),e.end(n)]);return ta.createTimeRanges(i)}function Wa(e,i){return qa(e,function(e,t){return e-.1<=i&&i<=t+.1})}function Ga(e,t){return qa(e,function(e){return t<=e-1/30})}function za(e){var t=[];if(!e||!e.length)return"";for(var i=0;i<e.length;i++)t.push(e.start(i)+" => "+e.end(i));return t.join(", ")}function $a(e){for(var t=[],i=0;i<e.length;i++)t.push({start:e.start(i),end:e.end(i)});return t}function Ka(e,t,i){var n=void 0,r=void 0;if(i&&i.cues)for(n=i.cues.length;n--;)(r=i.cues[n]).startTime<=t&&r.endTime>=e&&i.removeCue(r)}function Xa(e){return isNaN(e)||Math.abs(e)===1/0?Number.MAX_VALUE:e}function Ya(e,t,i){var n=v.a.WebKitDataCue||v.a.VTTCue;if(t&&t.forEach(function(e){var t=e.stream;this.inbandTextTracks_[t].addCue(new n(e.startTime+this.timestampOffset,e.endTime+this.timestampOffset,e.text))},e),i){var r=Xa(e.mediaSource_.duration);if(i.forEach(function(e){var i=e.cueTime+this.timestampOffset;!("number"!=typeof i||v.a.isNaN(i)||i<0)&&i<1/0&&e.frames.forEach(function(e){var t=new n(i,i,e.value||e.url||e.data||"");t.frame=e,t.value=e,function(e){Object.defineProperties(e.frame,{id:{get:function(){return ta.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return ta.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return ta.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})}(t),this.metadataTrack_.addCue(t)},this)},e),e.metadataTrack_&&e.metadataTrack_.cues&&e.metadataTrack_.cues.length){for(var a=e.metadataTrack_.cues,s=[],o=0;o<a.length;o++)a[o]&&s.push(a[o]);var u=s.reduce(function(e,t){var i=e[t.startTime]||[];return i.push(t),e[t.startTime]=i,e},{}),l=Object.keys(u).sort(function(e,t){return Number(e)-Number(t)});l.forEach(function(e,t){var i=u[e],n=Number(l[t+1])||r;i.forEach(function(e){e.endTime=n})})}}}var Ja=ta.createTimeRange,Qa=Oa.bind(null,1),Za=Oa.bind(null,-1),es={duration:Sa,seekable:function(e,t){var i=t||0,n=wa(e,t,!0);return null===n?Ja():Ja(i,n)},safeLiveIndex:Ea,getMediaInfoForTime:function(e,t,i,n){var r=void 0,a=void 0,s=e.segments.length,o=t-n;if(o<0){if(0<i)for(r=i-1;0<=r;r--)if(a=e.segments[r],0<(o+=Za(a.duration)))return{mediaIndex:r,startTime:n-ka(e,i,r)};return{mediaIndex:0,startTime:t}}if(i<0){for(r=i;r<0;r++)if((o-=e.targetDuration)<0)return{mediaIndex:0,startTime:t};i=0}for(r=i;r<s;r++)if(a=e.segments[r],(o-=Qa(a.duration))<0)return{mediaIndex:r,startTime:n+ka(e,i,r)};return{mediaIndex:s-1,startTime:t}},isEnabled:Ia,isDisabled:function(e){return e.disabled},isBlacklisted:Aa,isIncompatible:Pa,playlistEnd:wa,isAes:function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},isFmp4:function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].map)return!0;return!1},hasAttribute:La,estimateSegmentRequestTime:function(e,t,i,n){var r=3<arguments.length&&void 0!==n?n:0;return La("BANDWIDTH",i)?(e*i.attributes.BANDWIDTH-8*r)/t:NaN},isLowestEnabledRendition:xa},ts=ta.xhr,is=ta.mergeOptions,ns=Object.freeze({createTransferableMessage:Na,initSegmentId:ja,segmentKeyId:Ba,hexDump:Fa,tagDump:function(e){var t=e.bytes;return Fa(t)},textRanges:function(e){var t,i,n="",r=void 0;for(r=0;r<e.length;r++)n+=(i=r,(t=e).start(i)+"-"+t.end(i)+" ");return n}}),rs="undefined"!=typeof window?window:{},as="undefined"==typeof Symbol?"__target":Symbol(),ss="application/javascript",os=rs.BlobBuilder||rs.WebKitBlobBuilder||rs.MozBlobBuilder||rs.MSBlobBuilder,us=rs.URL||rs.webkitURL||us&&us.msURL,ls=rs.Worker;function cs(r,a){return function(e){var t=this;if(!a)return new ls(r);if(ls&&!e){var i=fs(a.toString().replace(/^function.+?{/,"").slice(0,-1));return this[as]=new ls(i),function(e,t){if(!e||!t)return;var i=e.terminate;e.objURL=t,e.terminate=function(){e.objURL&&us.revokeObjectURL(e.objURL),i.call(e)}}(this[as],i),this[as]}var n={postMessage:function(e){t.onmessage&&setTimeout(function(){t.onmessage({data:e,target:n})})}};a.call(n),this.postMessage=function(e){setTimeout(function(){n.onmessage({data:e,target:t})})},this.isThisThread=!0}}if(ls){var hs,ds=fs("self.onmessage = function () {}"),ps=new Uint8Array(1);try{(hs=new ls(ds)).postMessage(ps,[ps.buffer])}catch(e){ls=null}finally{us.revokeObjectURL(ds),hs&&hs.terminate()}}function fs(t){try{return us.createObjectURL(new Blob([t],{type:ss}))}catch(e){var i=new os;return i.append(t),us.createObjectURL(i.getBlob(type))}}function ms(e){return e.map(function(e){return e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,i){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(i).toString(16)).slice(-2)})})}function gs(e){var t,i=0<arguments.length&&void 0!==e?e:"",n={codecCount:0};return n.codecCount=i.split(",").length,n.codecCount=n.codecCount||2,(t=/(^|\s|,)+(avc[13])([^ ,]*)/i.exec(i))&&(n.videoCodec=t[2],n.videoObjectTypeIndicator=t[3]),n.audioProfile=/(^|\s|,)+mp4a.[0-9A-Fa-f]+\.([0-9A-Fa-f]+)/i.exec(i),n.audioProfile=n.audioProfile&&n.audioProfile[2],n}function ys(e,t,i){return e+"/"+t+'; codecs="'+i.filter(function(e){return!!e}).join(", ")+'"'}function vs(e,t){var i=function(e){return e.segments&&e.segments.length&&e.segments[0].map?"mp4":"mp2t"}(t),n=function(e){var t=e.attributes||{};return t.CODECS?gs(t.CODECS):Ss}(t),r=t.attributes||{},a=!0,s=!1;if(!t)return[];if(e.mediaGroups.AUDIO&&r.AUDIO){var o=e.mediaGroups.AUDIO[r.AUDIO];if(o)for(var u in a=!(s=!0),o)if(!o[u].uri&&!o[u].playlists){a=!0;break}}s&&!n.audioProfile&&(a||(n.audioProfile=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var i=e.mediaGroups.AUDIO[t];if(!i)return null;for(var n in i){var r=i[n];if(r.default&&r.playlists)return gs(r.playlists[0].attributes.CODECS).audioProfile}return null}(e,r.AUDIO)),n.audioProfile||(ta.log.warn("Multiple audio tracks present but no audio codec string is specified. Attempting to use the default audio codec (mp4a.40.2)"),n.audioProfile=Ss.audioProfile));var l={};n.videoCodec&&(l.video=""+n.videoCodec+n.videoObjectTypeIndicator),n.audioProfile&&(l.audio="mp4a.40."+n.audioProfile);var c=ys("audio",i,[l.audio]),h=ys("video",i,[l.video]),d=ys("video",i,[l.video,l.audio]);return s?!a&&l.video?[h,c]:a||l.video?[d,c]:[c,c]:l.video?[d]:[c]}function _s(e){return/mp4a\.\d+.\d+/i.test(e)}function bs(e){return/avc1\.[\da-f]+/i.test(e)}var Ts=new cs("./transmuxer-worker.worker.js",function(e,t){var kt=this;!function(){function e(){this.init=function(){var a={};this.on=function(e,t){a[e]||(a[e]=[]),a[e]=a[e].concat(t)},this.off=function(e,t){var i;return!!a[e]&&(i=a[e].indexOf(t),a[e]=a[e].slice(),a[e].splice(i,1),-1<i)},this.trigger=function(e){var t,i,n,r;if(t=a[e])if(2===arguments.length)for(n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);else{for(r=[],i=arguments.length,i=1;i<arguments.length;++i)r.push(arguments[i]);for(n=t.length,i=0;i<n;++i)t[i].apply(this,r)}},this.dispose=function(){a={}}}}e.prototype.pipe=function(t){return this.on("data",function(e){t.push(e)}),this.on("done",function(e){t.flush(e)}),this.on("partialdone",function(e){t.partialFlush(e)}),this.on("endedtimeline",function(e){t.endTimeline(e)}),this.on("reset",function(e){t.reset(e)}),t},e.prototype.push=function(e){this.trigger("data",e)},e.prototype.flush=function(e){this.trigger("done",e)},e.prototype.partialFlush=function(e){this.trigger("partialdone",e)},e.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},e.prototype.reset=function(e){this.trigger("reset",e)};var l,t,i,r,a,n,s,o,u,c,h,d,p,f,m,g,y,v,_,b,T,S,k,E,w,C,O,A,P,I,L,x,D,R,U,M,N,j,B,F,V=e,H=Math.pow(2,32)-1;!function(){var e;if(S={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(e in S)S.hasOwnProperty(e)&&(S[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);k=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),w=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),E=new Uint8Array([0,0,0,1]),C=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),O=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),A={video:C,audio:O},L=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),I=new Uint8Array([0,0,0,0,0,0,0,0]),x=new Uint8Array([0,0,0,0,0,0,0,0]),D=x,R=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),U=x,P=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),l=function(e){var t,i,n=[],r=0;for(t=1;t<arguments.length;t++)n.push(arguments[t]);for(t=n.length;t--;)r+=n[t].byteLength;for(i=new Uint8Array(r+8),new DataView(i.buffer,i.byteOffset,i.byteLength).setUint32(0,i.byteLength),i.set(e,4),t=0,r=8;t<n.length;t++)i.set(n[t],r),r+=n[t].byteLength;return i},t=function(){return l(S.dinf,l(S.dref,L))},i=function(e){return l(S.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},m=function(e){return l(S.hdlr,A[e])},f=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),l(S.mdhd,t)},p=function(e){return l(S.mdia,f(e),m(e.type),n(e))},a=function(e){return l(S.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},n=function(e){return l(S.minf,"video"===e.type?l(S.vmhd,P):l(S.smhd,I),t(),y(e))},s=function(e,t){for(var i=[],n=t.length;n--;)i[n]=_(t[n]);return l.apply(null,[S.moof,a(e)].concat(i))},o=function(e){for(var t=e.length,i=[];t--;)i[t]=h(e[t]);return l.apply(null,[S.moov,c(4294967295)].concat(i).concat(u(e)))},u=function(e){for(var t=e.length,i=[];t--;)i[t]=b(e[t]);return l.apply(null,[S.mvex].concat(i))},c=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return l(S.mvhd,t)},g=function(e){var t,i,n=e.samples||[],r=new Uint8Array(4+n.length);for(i=0;i<n.length;i++)t=n[i].flags,r[i+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return l(S.sdtp,r)},y=function(e){return l(S.stbl,v(e),l(S.stts,U),l(S.stsc,D),l(S.stsz,R),l(S.stco,x))},v=function(e){return l(S.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?M(e):N(e))},M=function(e){var t,i,n=e.sps||[],r=e.pps||[],a=[],s=[];for(t=0;t<n.length;t++)a.push((65280&n[t].byteLength)>>>8),a.push(255&n[t].byteLength),a=a.concat(Array.prototype.slice.call(n[t]));for(t=0;t<r.length;t++)s.push((65280&r[t].byteLength)>>>8),s.push(255&r[t].byteLength),s=s.concat(Array.prototype.slice.call(r[t]));if(i=[S.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),l(S.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([n.length],a,[r.length],s))),l(S.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var o=e.sarRatio[0],u=e.sarRatio[1];i.push(l(S.pasp,new Uint8Array([(4278190080&o)>>24,(16711680&o)>>16,(65280&o)>>8,255&o,(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u])))}return l.apply(null,i)},N=function(e){return l(S.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),i(e))},d=function(e){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return l(S.tkhd,t)},_=function(e){var t,i,n,r,a,s;return t=l(S.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),a=Math.floor(e.baseMediaDecodeTime/(1+H)),s=Math.floor(e.baseMediaDecodeTime%(1+H)),i=l(S.tfdt,new Uint8Array([1,0,0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a,s>>>24&255,s>>>16&255,s>>>8&255,255&s])),92,"audio"===e.type?(n=T(e,92),l(S.traf,t,i,n)):(r=g(e),n=T(e,r.length+92),l(S.traf,t,i,n,r))},h=function(e){return e.duration=e.duration||4294967295,l(S.trak,d(e),p(e))},b=function(e){var t=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),l(S.trex,t)},F=function(e,t){var i=0,n=0,r=0,a=0;return e.length&&(void 0!==e[0].duration&&(i=1),void 0!==e[0].size&&(n=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,i|n|r|a,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},B=function(e,t){var i,n,r,a;for(t+=20+16*(n=e.samples||[]).length,i=F(n,t),a=0;a<n.length;a++)r=n[a],i=i.concat([(4278190080&r.duration)>>>24,(16711680&r.duration)>>>16,(65280&r.duration)>>>8,255&r.duration,(4278190080&r.size)>>>24,(16711680&r.size)>>>16,(65280&r.size)>>>8,255&r.size,r.flags.isLeading<<2|r.flags.dependsOn,r.flags.isDependedOn<<6|r.flags.hasRedundancy<<4|r.flags.paddingValue<<1|r.flags.isNonSyncSample,61440&r.flags.degradationPriority,15&r.flags.degradationPriority,(4278190080&r.compositionTimeOffset)>>>24,(16711680&r.compositionTimeOffset)>>>16,(65280&r.compositionTimeOffset)>>>8,255&r.compositionTimeOffset]);return l(S.trun,new Uint8Array(i))},j=function(e,t){var i,n,r,a;for(t+=20+8*(n=e.samples||[]).length,i=F(n,t),a=0;a<n.length;a++)r=n[a],i=i.concat([(4278190080&r.duration)>>>24,(16711680&r.duration)>>>16,(65280&r.duration)>>>8,255&r.duration,(4278190080&r.size)>>>24,(16711680&r.size)>>>16,(65280&r.size)>>>8,255&r.size]);return l(S.trun,new Uint8Array(i))},T=function(e,t){return"audio"===e.type?j(e,t):B(e,t)};r=function(){return l(S.ftyp,k,E,k,w)};function q(e,t){var i={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return i.dataOffset=t,i.compositionTimeOffset=e.pts-e.dts,i.duration=e.duration,i.size=4*e.length,i.size+=e.byteLength,e.keyFrame&&(i.flags.dependsOn=2,i.flags.isNonSyncSample=0),i}function W(e){for(var t=[];e--;)t.push(0);return t}function G(){G.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new Pe(0,0),new Pe(0,1),new Pe(1,0),new Pe(1,1)],this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))},this)}var z,$,K,X,Y,J=function(e){return l(S.mdat,e)},Q=s,Z=function(e){var t,i=r(),n=o(e);return(t=new Uint8Array(i.byteLength+n.byteLength)).set(i),t.set(n,i.byteLength),t},ee=function(e){var t,i,n=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,t=n.byteLength=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(i=e[t]).nalUnitType?(n.length&&(n.duration=i.dts-n.dts,r.byteLength+=n.byteLength,r.nalCount+=n.length,r.duration+=n.duration,r.push(n)),(n=[i]).byteLength=i.data.byteLength,n.pts=i.pts,n.dts=i.dts):("slice_layer_without_partitioning_rbsp_idr"===i.nalUnitType&&(n.keyFrame=!0),n.duration=i.dts-n.dts,n.byteLength+=i.data.byteLength,n.push(i));return r.length&&(!n.duration||n.duration<=0)&&(n.duration=r[r.length-1].duration),r.byteLength+=n.byteLength,r.nalCount+=n.length,r.duration+=n.duration,r.push(n),r},te=function(e){var t,i,n=[],r=[];for(n.byteLength=0,n.nalCount=0,n.duration=0,n.pts=e[0].pts,n.dts=e[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,t=0;t<e.length;t++)(i=e[t]).keyFrame?(n.length&&(r.push(n),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration),(n=[i]).nalCount=i.length,n.byteLength=i.byteLength,n.pts=i.pts,n.dts=i.dts,n.duration=i.duration):(n.duration+=i.duration,n.nalCount+=i.length,n.byteLength+=i.byteLength,n.push(i));return r.length&&n.duration<=0&&(n.duration=r[r.length-1].duration),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration,r.push(n),r},ie=function(e){var t;return!e[0][0].keyFrame&&1<e.length&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},ne=function(e,t){var i,n,r,a,s,o=t||0,u=[];for(i=0;i<e.length;i++)for(a=e[i],n=0;n<a.length;n++)s=a[n],o+=(r=q(s,o)).size,u.push(r);return u},re=function(e){var t,i,n,r,a,s,o=0,u=e.byteLength,l=e.nalCount,c=new Uint8Array(u+4*l),h=new DataView(c.buffer);for(t=0;t<e.length;t++)for(r=e[t],i=0;i<r.length;i++)for(a=r[i],n=0;n<a.length;n++)s=a[n],h.setUint32(o,s.data.byteLength),o+=4,c.set(s.data,o),o+=s.data.byteLength;return c},ae=[33,16,5,32,164,27],se=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],oe={96e3:[ae,[227,64],W(154),[56]],88200:[ae,[231],W(170),[56]],64e3:[ae,[248,192],W(240),[56]],48e3:[ae,[255,192],W(268),[55,148,128],W(54),[112]],44100:[ae,[255,192],W(268),[55,163,128],W(84),[112]],32e3:[ae,[255,192],W(268),[55,234],W(226),[112]],24e3:[ae,[255,192],W(268),[55,255,128],W(268),[111,112],W(126),[224]],16e3:[ae,[255,192],W(268),[55,255,128],W(268),[111,255],W(269),[223,108],W(195),[1,192]],12e3:[se,W(268),[3,127,248],W(268),[6,255,240],W(268),[13,255,224],W(268),[27,253,128],W(259),[56]],11025:[se,W(268),[3,127,248],W(268),[6,255,240],W(268),[13,255,224],W(268),[27,255,192],W(268),[55,175,128],W(108),[112]],8e3:[se,W(268),[3,121,16],W(47),[7]]},ue=(z=oe,Object.keys(z).reduce(function(e,t){return e[t]=new Uint8Array(z[t].reduce(function(e,t){return e.concat(t)},[])),e},{})),le=9e4,ce=($=function(e){return 9e4*e},K=function(e,t){return e*t},X=function(e){return e/9e4},Y=function(e,t){return e/t},function(e,t){return $(Y(e,t))}),he=function(e,t){return K(X(e),t)},de=function(e,t,i){return X(i?e:e-t)},pe=function(e,t,i,n){var r,a,s,o,u,l=0,c=0,h=0;if(t.length&&(r=ce(e.baseMediaDecodeTime,e.samplerate),a=Math.ceil(le/(e.samplerate/1024)),i&&n&&(l=r-Math.max(i,n),h=(c=Math.floor(l/a))*a),!(c<1||le/2<h))){for(s=(s=ue[e.samplerate])||t[0].data,o=0;o<c;o++)u=t[0],t.splice(0,0,{data:s,dts:u.dts-a,pts:u.pts-a});e.baseMediaDecodeTime-=Math.floor(he(h,e.samplerate))}},fe=function(e,t,i){return t.minSegmentDts>=i?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts>=i&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)}))},me=function(e){var t,i,n=[];for(t=0;t<e.length;t++)i=e[t],n.push({size:i.data.byteLength,duration:1024});return n},ge=function(e){var t,i,n=0,r=new Uint8Array(function(e){var t,i=0;for(t=0;t<e.length;t++)i+=e[t].data.byteLength;return i}(e));for(t=0;t<e.length;t++)i=e[t],r.set(i.data,n),n+=i.data.byteLength;return r},ye=le,ve=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},_e=function(e,t){var i,n=e.minSegmentDts;return t||(n-=e.timelineStartInfo.dts),i=e.timelineStartInfo.baseMediaDecodeTime,i+=n,i=Math.max(0,i),"audio"===e.type&&(i*=e.samplerate/ye,i=Math.floor(i)),i},be=function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))},Te=function(e){for(var t=0,i={payloadType:-1,payloadSize:0},n=0,r=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)n+=255,t++;for(n+=e[t++];255===e[t];)r+=255,t++;if(r+=e[t++],!i.payload&&4===n){i.payloadType=n,i.payloadSize=r,i.payload=e.subarray(t,t+r);break}t+=r,r=n=0}return i},Se=function(e){return 181!==e.payload[0]?null:49!=(e.payload[1]<<8|e.payload[2])?null:"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])?null:3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},ke=function(e,t){var i,n,r,a,s=[];if(!(64&t[0]))return s;for(n=31&t[0],i=0;i<n;i++)a={type:3&t[2+(r=3*i)],pts:e},4&t[2+r]&&(a.ccData=t[3+r]<<8|t[4+r],s.push(a));return s},Ee=4;(G.prototype=new V).push=function(e){var t,i,n;if("sei_rbsp"===e.nalUnitType&&(t=Te(e.escapedRBSP)).payloadType===Ee&&(i=Se(t)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));n=ke(e.pts,i),this.captionPackets_=this.captionPackets_.concat(n),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},G.prototype.flushCCStreams=function(t){this.ccStreams_.forEach(function(e){return"flush"===t?e.flush():e.partialFlush()},this)},G.prototype.flushStream=function(e){this.captionPackets_.length&&(this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2&&this.dispatchCea608Packet(e)},this),this.captionPackets_.length=0),this.flushCCStreams(e)},G.prototype.flush=function(){return this.flushStream("flush")},G.prototype.partialFlush=function(){return this.flushStream("partialFlush")},G.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},G.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},G.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},G.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},G.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)};function we(e){return null===e?"":(e=Oe[e]||e,String.fromCharCode(e))}function Ce(){for(var e=[],t=15;t--;)e.push("");return e}var Oe={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Ae=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Pe=function e(t,i){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=i||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,i,n,r,a;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),n=t>>>8,r=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),i=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=i,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=Ce();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Ce();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=Ce()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(n,r))a=we((n=(3&n)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(n,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),a=we((n=(3&n)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isMidRowCode(n,r))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14==(14&r)&&this.addFormatting(e.pts,["i"]),1==(1&r)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(n,r))this.column_+=3&r;else if(this.isPAC(n,r)){var s=Ae.indexOf(7968&t);"rollUp"===this.mode_&&(s-this.rollUpRows_+1<0&&(s=this.rollUpRows_-1),this.setRollUp(e.pts,s)),s!==this.row_&&(this.clearFormatting(e.pts),this.row_=s),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(r)&&14==(14&r)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(n)&&(0===r&&(r=null),a=we(n),a+=we(r),this[this.mode_](e.pts,a),this.column_+=a.length)}else this.lastControlCode_=null}};Pe.prototype=new V,Pe.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e){try{return e.trim()}catch(e){return console.error("Skipping malformed caption."),""}}).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},Pe.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Ce(),this.nonDisplayed_=Ce(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},Pe.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Pe.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&48<=t&&t<=63},Pe.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&32<=t&&t<=63},Pe.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&32<=t&&t<=47},Pe.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&33<=t&&t<=35},Pe.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&64<=t&&t<=127},Pe.prototype.isColorPAC=function(e){return 64<=e&&e<=79||96<=e&&e<=127},Pe.prototype.isNormalChar=function(e){return 32<=e&&e<=127},Pe.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=Ce(),this.displayed_=Ce()),void 0!==t&&t!==this.row_)for(var i=0;i<this.rollUpRows_;i++)this.displayed_[t-i]=this.displayed_[this.row_-i],this.displayed_[this.row_-i]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},Pe.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var i=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,i)},Pe.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[],this[this.mode_](e,t)}},Pe.prototype.popOn=function(e,t){var i=this.nonDisplayed_[this.row_];i+=t,this.nonDisplayed_[this.row_]=i},Pe.prototype.rollUp=function(e,t){var i=this.displayed_[this.row_];i+=t,this.displayed_[this.row_]=i},Pe.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<15;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},Pe.prototype.paintOn=function(e,t){var i=this.displayed_[this.row_];i+=t,this.displayed_[this.row_]=i};function Ie(e,t){var i=1;for(t<e&&(i=-1);4294967296<Math.abs(t-e);)e+=8589934592*i;return e}function Le(e){var t,i;Le.prototype.init.call(this),this.type_=e||"shared",this.push=function(e){"shared"!==this.type_&&e.type!==this.type_||(void 0===i&&(i=e.dts),e.dts=Ie(e.dts,i),e.pts=Ie(e.pts,i),t=e.dts,this.trigger("data",e))},this.flush=function(){i=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){t=i=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}}var xe={CaptionStream:G,Cea608Stream:Pe},De={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21};Le.prototype=new V;function Re(e,t,i){var n,r="";for(n=t;n<i;n++)r+="%"+("00"+e[n].toString(16)).slice(-2);return r}function Ue(e,t,i){return decodeURIComponent(Re(e,t,i))}function Me(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]}var Ne,je=Le,Be={TXXX:function(e){var t;if(3===e.data[0]){for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Ue(e.data,1,t),e.value=Ue(e.data,t+1,e.data.length).replace(/\0*$/,"");break}e.data=e.value}},WXXX:function(e){var t;if(3===e.data[0])for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Ue(e.data,1,t),e.url=Ue(e.data,t+1,e.data.length);break}},PRIV:function(e){var t,i;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=(i=e.data,unescape(Re(i,0,t)));break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}};(Ne=function(e){var t,u={debug:!(!e||!e.debug),descriptor:e&&e.descriptor},l=0,c=[],h=0;if(Ne.prototype.init.call(this),this.dispatchType=De.METADATA_STREAM_TYPE.toString(16),u.descriptor)for(t=0;t<u.descriptor.length;t++)this.dispatchType+=("00"+u.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,i,n,r,a;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(h=0,c.length=0),0===c.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))u.debug&&console.log("Skipping unrecognized metadata packet");else if(c.push(e),h+=e.data.byteLength,1===c.length&&(l=Me(e.data.subarray(6,10)),l+=10),!(h<l)){for(t={data:new Uint8Array(l),frames:[],pts:c[0].pts,dts:c[0].dts},a=0;a<l;)t.data.set(c[0].data.subarray(0,l-a),a),a+=c[0].data.byteLength,h-=c[0].data.byteLength,c.shift();i=10,64&t.data[5]&&(i+=4,i+=Me(t.data.subarray(10,14)),l-=Me(t.data.subarray(16,20)));do{if((n=Me(t.data.subarray(i+4,i+8)))<1)return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.");if((r={id:String.fromCharCode(t.data[i],t.data[i+1],t.data[i+2],t.data[i+3]),data:t.data.subarray(i+10,i+n+10)}).key=r.id,Be[r.id]&&(Be[r.id](r),"com.apple.streaming.transportStreamTimestamp"===r.owner)){var s=r.data,o=(1&s[3])<<30|s[4]<<22|s[5]<<14|s[6]<<6|s[7]>>>2;o*=4,o+=3&s[7],r.timeStamp=o,void 0===t.pts&&void 0===t.dts&&(t.pts=r.timeStamp,t.dts=r.timeStamp),this.trigger("timestamp",r)}t.frames.push(r),i+=10,i+=n}while(i<l);this.trigger("data",t)}}}).prototype=new V;var Fe,Ve,He,qe=Ne,We=je;(Fe=function(){var r=new Uint8Array(188),a=0;Fe.prototype.init.call(this),this.push=function(e){var t,i=0,n=188;for(a?((t=new Uint8Array(e.byteLength+a)).set(r.subarray(0,a)),t.set(e,a),a=0):t=e;n<t.byteLength;)71!==t[i]||71!==t[n]?(i++,n++):(this.trigger("data",t.subarray(i,n)),i+=188,n+=188);i<t.byteLength&&(r.set(t.subarray(i),0),a=t.byteLength-i)},this.flush=function(){188===a&&71===r[0]&&(this.trigger("data",r),a=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){a=0,this.trigger("reset")}}).prototype=new V,(Ve=function(){var n,r,a,s;Ve.prototype.init.call(this),(s=this).packetsWaitingForPmt=[],this.programMapTable=void 0,n=function(e,t){var i=0;t.payloadUnitStartIndicator&&(i+=e[i]+1),"pat"===t.type?r(e.subarray(i),t):a(e.subarray(i),t)},r=function(e,t){t.section_number=e[7],t.last_section_number=e[8],s.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=s.pmtPid},a=function(e,t){var i,n;if(1&e[5]){for(s.programMapTable={video:null,audio:null,"timed-metadata":{}},i=3+((15&e[1])<<8|e[2])-4,n=12+((15&e[10])<<8|e[11]);n<i;){var r=e[n],a=(31&e[n+1])<<8|e[n+2];r===De.H264_STREAM_TYPE&&null===s.programMapTable.video?s.programMapTable.video=a:r===De.ADTS_STREAM_TYPE&&null===s.programMapTable.audio?s.programMapTable.audio=a:r===De.METADATA_STREAM_TYPE&&(s.programMapTable["timed-metadata"][a]=r),n+=5+((15&e[n+3])<<8|e[n+4])}t.programMapTable=s.programMapTable}},this.push=function(e){var t={},i=4;if(t.payloadUnitStartIndicator=!!(64&e[1]),t.pid=31&e[1],t.pid<<=8,t.pid|=e[2],1<(48&e[3])>>>4&&(i+=e[i]+1),0===t.pid)t.type="pat",n(e.subarray(i),t),this.trigger("data",t);else if(t.pid===this.pmtPid)for(t.type="pmt",n(e.subarray(i),t),this.trigger("data",t);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([e,i,t]):this.processPes_(e,i,t)},this.processPes_=function(e,t,i){i.pid===this.programMapTable.video?i.streamType=De.H264_STREAM_TYPE:i.pid===this.programMapTable.audio?i.streamType=De.ADTS_STREAM_TYPE:i.streamType=this.programMapTable["timed-metadata"][i.pid],i.type="pes",i.data=e.subarray(t),this.trigger("data",i)}}).prototype=new V,Ve.STREAM_TYPES={h264:27,adts:15},(He=function(){function n(e,t,i){var n,r,a=new Uint8Array(e.size),s={type:t},o=0,u=0;if(e.data.length&&!(e.size<9)){for(s.trackId=e.data[0].pid,o=0;o<e.data.length;o++)r=e.data[o],a.set(r.data,u),u+=r.data.byteLength;!function(e,t){var i;t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=0!=(4&e[6]),192&(i=e[7])&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&i&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8])}(a,s),n="video"===t||s.packetLength<=e.size,(i||n)&&(e.size=0,e.data.length=0),n&&l.trigger("data",s)}}var t,l=this,r={data:[],size:0},a={data:[],size:0},s={data:[],size:0};He.prototype.init.call(this),this.push=function(i){({pat:function(){},pes:function(){var e,t;switch(i.streamType){case De.H264_STREAM_TYPE:case De.H264_STREAM_TYPE:e=r,t="video";break;case De.ADTS_STREAM_TYPE:e=a,t="audio";break;case De.METADATA_STREAM_TYPE:e=s,t="timed-metadata";break;default:return}i.payloadUnitStartIndicator&&n(e,t,!0),e.data.push(i),e.size+=i.data.byteLength},pmt:function(){var e={type:"metadata",tracks:[]};null!==(t=i.programMapTable).video&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),l.trigger("data",e)}})[i.type]()},this.reset=function(){r.size=0,r.data.length=0,a.size=0,a.data.length=0,this.trigger("reset")},this.flushStreams_=function(){n(r,"video"),n(a,"audio"),n(s,"timed-metadata")},this.flush=function(){this.flushStreams_(),this.trigger("done")}}).prototype=new V;var Ge={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:Fe,TransportParseStream:Ve,ElementaryStream:He,TimestampRolloverStream:We,CaptionStream:xe.CaptionStream,Cea608Stream:xe.Cea608Stream,MetadataStream:qe};for(var ze in De)De.hasOwnProperty(ze)&&(Ge[ze]=De[ze]);var $e,Ke=Ge,Xe=le,Ye=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];($e=function(u){var l,c=0;$e.prototype.init.call(this),this.push=function(e){var t,i,n,r,a,s,o=0;if(u||(c=0),"audio"===e.type)for(l?(r=l,(l=new Uint8Array(r.byteLength+e.data.byteLength)).set(r),l.set(e.data,r.byteLength)):l=e.data;o+5<l.length;)if(255===l[o]&&240==(246&l[o+1])){if(i=2*(1&~l[o+1]),t=(3&l[o+3])<<11|l[o+4]<<3|(224&l[o+5])>>5,s=(a=1024*(1+(3&l[o+6])))*Xe/Ye[(60&l[o+2])>>>2],n=o+t,l.byteLength<n)return;if(this.trigger("data",{pts:e.pts+c*s,dts:e.dts+c*s,sampleCount:a,audioobjecttype:1+(l[o+2]>>>6&3),channelcount:(1&l[o+2])<<2|(192&l[o+3])>>>6,samplerate:Ye[(60&l[o+2])>>>2],samplingfrequencyindex:(60&l[o+2])>>>2,samplesize:16,data:l.subarray(o+7+i,n)}),c++,l.byteLength===n)return void(l=void 0);l=l.subarray(n)}else o++},this.flush=function(){c=0,this.trigger("done")},this.reset=function(){l=void 0,this.trigger("reset")},this.endTimeline=function(){l=void 0,this.trigger("endedtimeline")}}).prototype=new V;var Je,Qe,Ze,et=$e,tt=function(n){var r=n.byteLength,a=0,s=0;this.length=function(){return 8*r},this.bitsAvailable=function(){return 8*r+s},this.loadWord=function(){var e=n.byteLength-r,t=new Uint8Array(4),i=Math.min(4,r);if(0===i)throw new Error("no bytes available");t.set(n.subarray(e,e+i)),a=new DataView(t.buffer).getUint32(0),s=8*i,r-=i},this.skipBits=function(e){var t;e<s||(e-=s,e-=8*(t=Math.floor(e/8)),r-=t,this.loadWord()),a<<=e,s-=e},this.readBits=function(e){var t=Math.min(s,e),i=a>>>32-t;return 0<(s-=t)?a<<=t:0<r&&this.loadWord(),0<(t=e-t)?i<<t|this.readBits(t):i},this.skipLeadingZeros=function(){var e;for(e=0;e<s;++e)if(0!=(a&2147483648>>>e))return a<<=e,s-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};(Qe=function(){var n,r,a=0;Qe.prototype.init.call(this),this.push=function(e){for(var t,i=(r=r?((t=new Uint8Array(r.byteLength+e.data.byteLength)).set(r),t.set(e.data,r.byteLength),t):e.data).byteLength;a<i-3;a++)if(1===r[a+2]){n=a+5;break}for(;n<i;)switch(r[n]){case 0:if(0!==r[n-1]){n+=2;break}if(0!==r[n-2]){n++;break}for(a+3!==n-2&&this.trigger("data",r.subarray(a+3,n-2));1!==r[++n]&&n<i;);a=n-2,n+=3;break;case 1:if(0!==r[n-1]||0!==r[n-2]){n+=3;break}this.trigger("data",r.subarray(a+3,n-2)),a=n-2,n+=3;break;default:n+=3}r=r.subarray(a),n-=a,a=0},this.reset=function(){r=null,a=0,this.trigger("reset")},this.flush=function(){r&&3<r.byteLength&&this.trigger("data",r.subarray(a+3)),r=null,a=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}}).prototype=new V,Ze={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(Je=function(){var i,n,r,a,s,o,_,t=new Qe;Je.prototype.init.call(this),(i=this).push=function(e){"video"===e.type&&(n=e.trackId,r=e.pts,a=e.dts,t.push(e))},t.on("data",function(e){var t={trackId:n,pts:r,dts:a,data:e};switch(31&e[0]){case 5:t.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:t.nalUnitType="sei_rbsp",t.escapedRBSP=s(e.subarray(1));break;case 7:t.nalUnitType="seq_parameter_set_rbsp",t.escapedRBSP=s(e.subarray(1)),t.config=o(t.escapedRBSP);break;case 8:t.nalUnitType="pic_parameter_set_rbsp";break;case 9:t.nalUnitType="access_unit_delimiter_rbsp"}i.trigger("data",t)}),t.on("done",function(){i.trigger("done")}),t.on("partialdone",function(){i.trigger("partialdone")}),t.on("reset",function(){i.trigger("reset")}),t.on("endedtimeline",function(){i.trigger("endedtimeline")}),this.flush=function(){t.flush()},this.partialFlush=function(){t.partialFlush()},this.reset=function(){t.reset()},this.endTimeline=function(){t.endTimeline()},_=function(e,t){var i,n=8,r=8;for(i=0;i<e;i++)0!==r&&(r=(n+t.readExpGolomb()+256)%256),n=0===r?n:r},s=function(e){for(var t,i,n=e.byteLength,r=[],a=1;a<n-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return e;t=n-r.length,i=new Uint8Array(t);var s=0;for(a=0;a<t;s++,a++)s===r[0]&&(s++,r.shift()),i[a]=e[s];return i},o=function(e){var t,i,n,r,a,s,o,u,l,c,h,d,p,f=0,m=0,g=0,y=0,v=1;if(i=(t=new tt(e)).readUnsignedByte(),r=t.readUnsignedByte(),n=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),Ze[i]&&(3===(a=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(h=3!==a?8:12,p=0;p<h;p++)t.readBoolean()&&_(p<6?16:64,t);if(t.skipUnsignedExpGolomb(),0===(s=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===s)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),o=t.readUnsignedExpGolomb(),p=0;p<o;p++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),u=t.readUnsignedExpGolomb(),l=t.readUnsignedExpGolomb(),0===(c=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(f=t.readUnsignedExpGolomb(),m=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),y=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(t.readUnsignedByte()){case 1:d=[1,1];break;case 2:d=[12,11];break;case 3:d=[10,11];break;case 4:d=[16,11];break;case 5:d=[40,33];break;case 6:d=[24,11];break;case 7:d=[20,11];break;case 8:d=[32,11];break;case 9:d=[80,33];break;case 10:d=[18,11];break;case 11:d=[15,11];break;case 12:d=[64,33];break;case 13:d=[160,99];break;case 14:d=[4,3];break;case 15:d=[3,2];break;case 16:d=[2,1];break;case 255:d=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}d&&(v=d[0]/d[1])}return{profileIdc:i,levelIdc:n,profileCompatibility:r,width:Math.ceil((16*(u+1)-2*f-2*m)*v),height:(2-c)*(l+1)*16-2*g-2*y,sarRatio:d}}}).prototype=new V;var it,nt={H264Stream:Je,NalByteStream:Qe},rt=function(e){return e[0]==="I".charCodeAt(0)&&e[1]==="D".charCodeAt(0)&&e[2]==="3".charCodeAt(0)},at=function(e,t){var i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&e[t+5])>>4?20+i:10+i},st=function(e,t){var i=(224&e[t+5])>>5,n=e[t+4]<<3;return 6144&e[t+3]|n|i};(it=function(){var o=new Uint8Array,u=0;it.prototype.init.call(this),this.setTimestamp=function(e){u=e},this.push=function(e){var t,i,n,r,a=0,s=0;for(o.length?(r=o.length,(o=new Uint8Array(e.byteLength+r)).set(o.subarray(0,r)),o.set(e,r)):o=e;3<=o.length-s;)if(o[s]!=="I".charCodeAt(0)||o[s+1]!=="D".charCodeAt(0)||o[s+2]!=="3".charCodeAt(0))if(255!=(255&o[s])||240!=(240&o[s+1]))s++;else{if(o.length-s<7)break;if(s+(a=st(o,s))>o.length)break;n={type:"audio",data:o.subarray(s,s+a),pts:u,dts:u},this.trigger("data",n),s+=a}else{if(o.length-s<10)break;if(s+(a=at(o,s))>o.length)break;i={type:"timed-metadata",data:o.subarray(s,s+a)},this.trigger("data",i),s+=a}t=o.length-s,o=0<t?o.subarray(s):new Uint8Array},this.reset=function(){o=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){o=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new V;function ot(e,t){var i;if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}function ut(e,t,i,n,r,a){return{start:{dts:e,pts:e+(i-t)},end:{dts:e+(n-t),pts:e+(r-i)},prependedContentDuration:a,baseMediaDecodeTime:e}}var lt,ct,ht,dt,pt=it,ft=nt.H264Stream,mt=rt,gt=le,yt=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],vt=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"];(ct=function(a,s){var o=[],u=0,l=0,c=0,h=1/0;s=s||{},ct.prototype.init.call(this),this.push=function(t){be(a,t),a&&yt.forEach(function(e){a[e]=t[e]}),o.push(t)},this.setEarliestDts=function(e){l=e-a.timelineStartInfo.baseMediaDecodeTime},this.setVideoBaseMediaDecodeTime=function(e){h=e},this.setAudioAppendStart=function(e){c=e},this.flush=function(){var e,t,i,n,r;0!==o.length&&(e=fe(o,a,l),a.baseMediaDecodeTime=_e(a,s.keepOriginalTimestamps),pe(a,e,c,h),a.samples=me(e),i=J(ge(e)),o=[],t=Q(u,[a]),n=new Uint8Array(t.byteLength+i.byteLength),u++,n.set(t),n.set(i,t.byteLength),ve(a),r=Math.ceil(1024*gt/a.samplerate),e.length&&this.trigger("timingInfo",{start:e[0].dts,end:e[0].dts+e.length*r}),this.trigger("data",{track:a,boxes:n})),this.trigger("done","AudioSegmentStream")},this.reset=function(){ve(a),o=[],this.trigger("reset")}}).prototype=new V,(lt=function(c,h){var t,i,d=0,p=[],f=[];h=h||{},lt.prototype.init.call(this),delete c.minPTS,this.gopCache_=[],this.push=function(e){be(c,e),"seq_parameter_set_rbsp"!==e.nalUnitType||t||(t=e.config,c.sps=[e.data],vt.forEach(function(e){c[e]=t[e]},this)),"pic_parameter_set_rbsp"!==e.nalUnitType||i||(i=e.data,c.pps=[e.data]),p.push(e)},this.flush=function(){for(var e,t,i,n,r,a,s,o,u=0;p.length&&"access_unit_delimiter_rbsp"!==p[0].nalUnitType;)p.shift();if(0===p.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(e=ee(p),(i=te(e))[0][0].keyFrame||((t=this.getGopForFusion_(p[0],c))?(u=t.duration,i.unshift(t),i.byteLength+=t.byteLength,i.nalCount+=t.nalCount,i.pts=t.pts,i.dts=t.dts,i.duration+=t.duration):i=ie(i)),f.length){var l;if(!(l=h.alignGopsAtEnd?this.alignGopsAtEnd_(i):this.alignGopsAtStart_(i)))return this.gopCache_.unshift({gop:i.pop(),pps:c.pps,sps:c.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),p=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");ve(c),i=l}be(c,i),c.samples=ne(i),r=J(re(i)),c.baseMediaDecodeTime=_e(c,h.keepOriginalTimestamps),this.trigger("processedGopsInfo",i.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),s=i[0],o=i[i.length-1],this.trigger("segmentTimingInfo",ut(c.baseMediaDecodeTime,s.dts,s.pts,o.dts+o.duration,o.pts+o.duration,u)),this.trigger("timingInfo",{start:i[0].dts,end:i[i.length-1].dts+i[i.length-1].duration}),this.gopCache_.unshift({gop:i.pop(),pps:c.pps,sps:c.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),p=[],this.trigger("baseMediaDecodeTime",c.baseMediaDecodeTime),this.trigger("timelineStartInfo",c.timelineStartInfo),n=Q(d,[c]),a=new Uint8Array(n.byteLength+r.byteLength),d++,a.set(n),a.set(r,n.byteLength),this.trigger("data",{track:c,boxes:a}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),p=[],this.gopCache_.length=0,f.length=0,this.trigger("reset")},this.resetStream_=function(){ve(c),i=t=void 0},this.getGopForFusion_=function(e){var t,i,n,r,a,s=1/0;for(a=0;a<this.gopCache_.length;a++)n=(r=this.gopCache_[a]).gop,c.pps&&ot(c.pps[0],r.pps[0])&&c.sps&&ot(c.sps[0],r.sps[0])&&(n.dts<c.timelineStartInfo.dts||-1e4<=(t=e.dts-n.dts-n.duration)&&t<=45e3&&(!i||t<s)&&(i=r,s=t));return i?i.gop:null},this.alignGopsAtStart_=function(e){var t,i,n,r,a,s,o,u;for(a=e.byteLength,s=e.nalCount,o=e.duration,t=i=0;t<f.length&&i<e.length&&(n=f[t],r=e[i],n.pts!==r.pts);)r.pts>n.pts?t++:(i++,a-=r.byteLength,s-=r.nalCount,o-=r.duration);return 0===i?e:i===e.length?null:((u=e.slice(i)).byteLength=a,u.duration=o,u.nalCount=s,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(e){var t,i,n,r,a,s,o;for(t=f.length-1,i=e.length-1,a=null,s=!1;0<=t&&0<=i;){if(n=f[t],r=e[i],n.pts===r.pts){s=!0;break}n.pts>r.pts?t--:(t===f.length-1&&(a=i),i--)}if(!s&&null===a)return null;if(0===(o=s?i:a))return e;var u=e.slice(o),l=u.reduce(function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e},{byteLength:0,duration:0,nalCount:0});return u.byteLength=l.byteLength,u.duration=l.duration,u.nalCount=l.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){f=e}}).prototype=new V,(dt=function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,dt.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}}).prototype=new V,dt.prototype.flush=function(e){var t,i,n,r,a=0,s={captions:[],captionStreams:{},metadata:[],info:{}},o=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,vt.forEach(function(e){s.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(o=this.audioTrack.timelineStartInfo.pts,yt.forEach(function(e){s.info[e]=this.audioTrack[e]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?s.type=this.pendingTracks[0].type:s.type="combined",this.emittedTracks+=this.pendingTracks.length,n=Z(this.pendingTracks),s.initSegment=new Uint8Array(n.byteLength),s.initSegment.set(n),s.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)s.data.set(this.pendingBoxes[r],a),a+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)(t=this.pendingCaptions[r]).startTime=de(t.startPts,o,this.keepOriginalTimestamps),t.endTime=de(t.endPts,o,this.keepOriginalTimestamps),s.captionStreams[t.stream]=!0,s.captions.push(t);for(r=0;r<this.pendingMetadata.length;r++)(i=this.pendingMetadata[r]).cueTime=de(i.pts,o,this.keepOriginalTimestamps),s.metadata.push(i);for(s.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",s),r=0;r<s.captions.length;r++)t=s.captions[r],this.trigger("caption",t);for(r=0;r<s.metadata.length;r++)i=s.metadata[r],this.trigger("id3Frame",i)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},dt.prototype.setRemux=function(e){this.remuxTracks=e},(ht=function(n){var r,a,s=this,i=!0;ht.prototype.init.call(this),n=n||{},this.baseMediaDecodeTime=n.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var t={};(this.transmuxPipeline_=t).type="aac",t.metadataStream=new Ke.MetadataStream,t.aacStream=new pt,t.audioTimestampRolloverStream=new Ke.TimestampRolloverStream("audio"),t.timedMetadataTimestampRolloverStream=new Ke.TimestampRolloverStream("timed-metadata"),t.adtsStream=new et,t.coalesceStream=new dt(n,t.metadataStream),t.headOfPipeline=t.aacStream,t.aacStream.pipe(t.audioTimestampRolloverStream).pipe(t.adtsStream),t.aacStream.pipe(t.timedMetadataTimestampRolloverStream).pipe(t.metadataStream).pipe(t.coalesceStream),t.metadataStream.on("timestamp",function(e){t.aacStream.setTimestamp(e.timeStamp)}),t.aacStream.on("data",function(e){"timed-metadata"!==e.type||t.audioSegmentStream||(a=a||{timelineStartInfo:{baseMediaDecodeTime:s.baseMediaDecodeTime},codec:"adts",type:"audio"},t.coalesceStream.numberOfTracks++,t.audioSegmentStream=new ct(a,n),t.audioSegmentStream.on("timingInfo",s.trigger.bind(s,"audioTimingInfo")),t.adtsStream.pipe(t.audioSegmentStream).pipe(t.coalesceStream)),s.trigger("trackinfo",{hasAudio:!!a,hasVideo:!!r})}),t.coalesceStream.on("data",this.trigger.bind(this,"data")),t.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var i={};(this.transmuxPipeline_=i).type="ts",i.metadataStream=new Ke.MetadataStream,i.packetStream=new Ke.TransportPacketStream,i.parseStream=new Ke.TransportParseStream,i.elementaryStream=new Ke.ElementaryStream,i.timestampRolloverStream=new Ke.TimestampRolloverStream,i.adtsStream=new et,i.h264Stream=new ft,i.captionStream=new Ke.CaptionStream,i.coalesceStream=new dt(n,i.metadataStream),i.headOfPipeline=i.packetStream,i.packetStream.pipe(i.parseStream).pipe(i.elementaryStream).pipe(i.timestampRolloverStream),i.timestampRolloverStream.pipe(i.h264Stream),i.timestampRolloverStream.pipe(i.adtsStream),i.timestampRolloverStream.pipe(i.metadataStream).pipe(i.coalesceStream),i.h264Stream.pipe(i.captionStream).pipe(i.coalesceStream),i.elementaryStream.on("data",function(e){var t;if("metadata"===e.type){for(t=e.tracks.length;t--;)r||"video"!==e.tracks[t].type?a||"audio"!==e.tracks[t].type||((a=e.tracks[t]).timelineStartInfo.baseMediaDecodeTime=s.baseMediaDecodeTime):(r=e.tracks[t]).timelineStartInfo.baseMediaDecodeTime=s.baseMediaDecodeTime;r&&!i.videoSegmentStream&&(i.coalesceStream.numberOfTracks++,i.videoSegmentStream=new lt(r,n),i.videoSegmentStream.on("timelineStartInfo",function(e){a&&(a.timelineStartInfo=e,i.audioSegmentStream.setEarliestDts(e.dts))}),i.videoSegmentStream.on("processedGopsInfo",s.trigger.bind(s,"gopInfo")),i.videoSegmentStream.on("segmentTimingInfo",s.trigger.bind(s,"videoSegmentTimingInfo")),i.videoSegmentStream.on("baseMediaDecodeTime",function(e){a&&i.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),i.videoSegmentStream.on("timingInfo",s.trigger.bind(s,"videoTimingInfo")),i.h264Stream.pipe(i.videoSegmentStream).pipe(i.coalesceStream)),a&&!i.audioSegmentStream&&(i.coalesceStream.numberOfTracks++,i.audioSegmentStream=new ct(a,n),i.audioSegmentStream.on("timingInfo",s.trigger.bind(s,"audioTimingInfo")),i.adtsStream.pipe(i.audioSegmentStream).pipe(i.coalesceStream)),s.trigger("trackinfo",{hasAudio:!!a,hasVideo:!!r})}}),i.coalesceStream.on("data",this.trigger.bind(this,"data")),i.coalesceStream.on("id3Frame",function(e){e.dispatchType=i.metadataStream.dispatchType,s.trigger("id3Frame",e)}),i.coalesceStream.on("caption",this.trigger.bind(this,"caption")),i.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(e){var t=this.transmuxPipeline_;n.keepOriginalTimestamps||(this.baseMediaDecodeTime=e),a&&(a.timelineStartInfo.dts=void 0,a.timelineStartInfo.pts=void 0,ve(a),n.keepOriginalTimestamps||(a.timelineStartInfo.baseMediaDecodeTime=e),t.audioTimestampRolloverStream&&t.audioTimestampRolloverStream.discontinuity()),r&&(t.videoSegmentStream&&(t.videoSegmentStream.gopCache_=[]),r.timelineStartInfo.dts=void 0,r.timelineStartInfo.pts=void 0,ve(r),t.captionStream.reset(),n.keepOriginalTimestamps||(r.timelineStartInfo.baseMediaDecodeTime=e)),t.timestampRolloverStream&&t.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){a&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(e){var t=this.transmuxPipeline_;n.remux=e,t&&t.coalesceStream&&t.coalesceStream.setRemux(e)},this.alignGopsWith=function(e){r&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.push=function(e){if(i){var t=mt(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),i=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){i=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new V;var _t={Transmuxer:ht,VideoSegmentStream:lt,AudioSegmentStream:ct,AUDIO_PROPERTIES:yt,VIDEO_PROPERTIES:vt,generateVideoSegmentTimingInfo:ut};function bt(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Tt=(function(e,t,i){return t&&bt(e.prototype,t),i&&bt(e,i),e}(St,[{key:"init",value:function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new _t.Transmuxer(this.options),function(n,e){e.on("data",function(e){var t=e.initSegment;e.initSegment={data:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength};var i=e.data;e.data=i.buffer,n.postMessage({action:"data",segment:e,byteOffset:i.byteOffset,byteLength:i.byteLength},[e.data])}),e.captionStream&&e.captionStream.on("data",function(e){n.postMessage({action:"caption",data:e})}),e.on("done",function(e){n.postMessage({action:"done"})}),e.on("gopInfo",function(e){n.postMessage({action:"gopInfo",gopInfo:e})}),e.on("videoSegmentTimingInfo",function(e){n.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:e})})}(this.self,this.transmuxer)}},{key:"push",value:function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)}},{key:"reset",value:function(){this.init()}},{key:"setTimestampOffset",value:function(e){var t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(9e4*t))}},{key:"setAudioAppendStart",value:function(e){this.transmuxer.setAudioAppendStart(Math.ceil(9e4*e.appendStart))}},{key:"flush",value:function(e){this.transmuxer.flush()}},{key:"resetCaptions",value:function(){this.transmuxer.resetCaptions()}},{key:"alignGopsWith",value:function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())}}]),St);function St(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,St),this.options=t||{},this.self=e,this.init()}new function(t){t.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new Tt(t,e.data.options):(this.messageHandlers||(this.messageHandlers=new Tt(t)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}}(kt)}()}),Ss={videoCodec:"avc1",videoObjectTypeIndicator:".4d400d",audioProfile:"2"},ks=(la(Es,ta.EventTarget),oa(Es,[{key:"data_",value:function(e){var t=e.data.segment;t.data=new Uint8Array(t.data,e.data.byteOffset,e.data.byteLength),t.initSegment=new Uint8Array(t.initSegment.data,t.initSegment.byteOffset,t.initSegment.byteLength),function(e,t,i){var n=t.player_;if(i.captions&&i.captions.length)for(var r in e.inbandTextTracks_||(e.inbandTextTracks_={}),i.captionStreams)if(!e.inbandTextTracks_[r]){n.tech_.trigger({type:"usage",name:"hls-608"});var a=n.textTracks().getTrackById(r);e.inbandTextTracks_[r]=a||n.addRemoteTextTrack({kind:"captions",id:r,label:r},!1).track}i.metadata&&i.metadata.length&&!e.metadataTrack_&&(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=i.metadata.dispatchType)}(this,this.mediaSource_,t),this.pendingBuffers_.push(t)}},{key:"done_",value:function(e){"closed"!==this.mediaSource_.readyState?this.processPendingSegments_():this.pendingBuffers_.length=0}},{key:"videoSegmentTimingInfo_",value:function(e){var t={start:{decode:e.start.dts/9e4,presentation:e.start.pts/9e4},end:{decode:e.end.dts/9e4,presentation:e.end.pts/9e4},baseMediaDecodeTime:e.baseMediaDecodeTime/9e4};e.prependedContentDuration&&(t.prependedContentDuration=e.prependedContentDuration/9e4),this.trigger({type:"videoSegmentTimingInfo",videoSegmentTimingInfo:t})}},{key:"createRealSourceBuffers_",value:function(){var n=this,r=["audio","video"];r.forEach(function(t){if(n[t+"Codec_"]&&!n[t+"Buffer_"]){var i=null;if(n.mediaSource_[t+"Buffer_"])(i=n.mediaSource_[t+"Buffer_"]).updating=!1;else{var e=t+'/mp4;codecs="'+n[t+"Codec_"]+'"';i=function(e,t){var i=e.addSourceBuffer(t),n=Object.create(null);function r(t){"function"==typeof i[t]?n[t]=function(){return i[t].apply(i,arguments)}:void 0===n[t]&&Object.defineProperty(n,t,{get:function(){return i[t]},set:function(e){return i[t]=e}})}for(var a in n.updating=!1,n.realBuffer_=i)r(a);return n}(n.mediaSource_.nativeMediaSource_,e),n.mediaSource_[t+"Buffer_"]=i}n[t+"Buffer_"]=i,["update","updatestart","updateend"].forEach(function(e){i.addEventListener(e,function(){if("audio"!==t||!n.audioDisabled_)return"updateend"===e&&(n[t+"Buffer_"].updating=!1),r.every(function(e){return!("audio"!==e||!n.audioDisabled_)||t===e||!n[e+"Buffer_"]||!n[e+"Buffer_"].updating})?n.trigger(e):void 0})})}})}},{key:"appendBuffer",value:function(e){if(this.bufferUpdating_=!0,this.audioBuffer_&&this.audioBuffer_.buffered.length){var t=this.audioBuffer_.buffered;this.transmuxer_.postMessage({action:"setAudioAppendStart",appendStart:t.end(t.length-1)})}this.videoBuffer_&&this.transmuxer_.postMessage({action:"alignGopsWith",gopsToAlignWith:function(e,t,i){if(null==t||!e.length)return[];var n=Math.ceil(9e4*(t-i+3)),r=void 0;for(r=0;r<e.length&&!(e[r].pts>n);r++);return e.slice(r)}(this.gopBuffer_,this.mediaSource_.player_?this.mediaSource_.player_.currentTime():null,this.timeMapping_)}),this.transmuxer_.postMessage({action:"push",data:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength},[e.buffer]),this.transmuxer_.postMessage({action:"flush"})}},{key:"appendGopInfo_",value:function(e){this.gopBuffer_=function(e,t,i){if(!t.length)return e;if(i)return t.slice();for(var n=t[0].pts,r=0;r<e.length&&!(e[r].pts>=n);r++);return e.slice(0,r).concat(t)}(this.gopBuffer_,e.data.gopInfo,this.safeAppend_)}},{key:"remove",value:function(e,t){if(this.videoBuffer_&&(this.videoBuffer_.updating=!0,this.videoBuffer_.remove(e,t),this.gopBuffer_=function(e,t,i,n){for(var r=Math.ceil(9e4*(t-n)),a=Math.ceil(9e4*(i-n)),s=e.slice(),o=e.length;o--&&!(e[o].pts<=a););if(-1===o)return s;for(var u=o+1;u--&&!(e[u].pts<=r););return u=Math.max(u,0),s.splice(u,o-u+1),s}(this.gopBuffer_,e,t,this.timeMapping_)),!this.audioDisabled_&&this.audioBuffer_&&(this.audioBuffer_.updating=!0,this.audioBuffer_.remove(e,t)),Ka(e,t,this.metadataTrack_),this.inbandTextTracks_)for(var i in this.inbandTextTracks_)Ka(e,t,this.inbandTextTracks_[i])}},{key:"processPendingSegments_",value:function(){var e={video:{segments:[],bytes:0},audio:{segments:[],bytes:0},captions:[],metadata:[]};if(!this.pendingBuffers_.length)return this.trigger("updateend"),void(this.bufferUpdating_=!1);e=this.pendingBuffers_.reduce(function(e,t){var i=t.type,n=t.data,r=t.initSegment;return e[i].segments.push(n),e[i].bytes+=n.byteLength,e[i].initSegment=r,t.captions&&(e.captions=e.captions.concat(t.captions)),t.info&&(e[i].info=t.info),t.metadata&&(e.metadata=e.metadata.concat(t.metadata)),e},e),this.videoBuffer_||this.audioBuffer_||(0===e.video.bytes&&(this.videoCodec_=null),0===e.audio.bytes&&(this.audioCodec_=null),this.createRealSourceBuffers_()),e.audio.info&&this.mediaSource_.trigger({type:"audioinfo",info:e.audio.info}),e.video.info&&this.mediaSource_.trigger({type:"videoinfo",info:e.video.info}),this.appendAudioInitSegment_&&(!this.audioDisabled_&&this.audioBuffer_&&(e.audio.segments.unshift(e.audio.initSegment),e.audio.bytes+=e.audio.initSegment.byteLength),this.appendAudioInitSegment_=!1);var t=!1;this.videoBuffer_&&e.video.bytes?(e.video.segments.unshift(e.video.initSegment),e.video.bytes+=e.video.initSegment.byteLength,this.concatAndAppendSegments_(e.video,this.videoBuffer_)):!this.videoBuffer_||!this.audioDisabled_&&this.audioBuffer_||(t=!0),Ya(this,e.captions,e.metadata),!this.audioDisabled_&&this.audioBuffer_&&this.concatAndAppendSegments_(e.audio,this.audioBuffer_),this.pendingBuffers_.length=0,t&&this.trigger("updateend"),this.bufferUpdating_=!1}},{key:"concatAndAppendSegments_",value:function(e,t){var i=0,n=void 0;if(e.bytes){n=new Uint8Array(e.bytes),e.segments.forEach(function(e){n.set(e,i),i+=e.byteLength});try{t.updating=!0,t.appendBuffer(n)}catch(e){this.mediaSource_.player_&&this.mediaSource_.player_.error({code:-3,type:"APPEND_BUFFER_ERR",message:e.message,originalError:e})}}}},{key:"abort",value:function(){this.videoBuffer_&&this.videoBuffer_.abort(),!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"reset"}),this.pendingBuffers_.length=0,this.bufferUpdating_=!1}}]),Es);function Es(e,t){sa(this,Es);var i=ca(this,(Es.__proto__||Object.getPrototypeOf(Es)).call(this,ta.EventTarget));i.timestampOffset_=0,i.pendingBuffers_=[],i.bufferUpdating_=!1,i.mediaSource_=e,i.codecs_=t,i.audioCodec_=null,i.videoCodec_=null,i.audioDisabled_=!1,i.appendAudioInitSegment_=!0,i.gopBuffer_=[],i.timeMapping_=0,i.safeAppend_=11<=ta.browser.IE_VERSION;var n={remux:!1,alignGopsAtEnd:i.safeAppend_};return i.codecs_.forEach(function(e){_s(e)?i.audioCodec_=e:bs(e)&&(i.videoCodec_=e)}),i.transmuxer_=new Ts,i.transmuxer_.postMessage({action:"init",options:n}),i.transmuxer_.onmessage=function(e){return"data"===e.data.action?i.data_(e):"done"===e.data.action?i.done_(e):"gopInfo"===e.data.action?i.appendGopInfo_(e):"videoSegmentTimingInfo"===e.data.action?i.videoSegmentTimingInfo_(e.data.videoSegmentTimingInfo):void 0},Object.defineProperty(i,"timestampOffset",{get:function(){return this.timestampOffset_},set:function(e){"number"==typeof e&&0<=e&&(this.timestampOffset_=e,this.appendAudioInitSegment_=!0,this.gopBuffer_.length=0,this.timeMapping_=0,this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e}))}}),Object.defineProperty(i,"appendWindowStart",{get:function(){return(this.videoBuffer_||this.audioBuffer_).appendWindowStart},set:function(e){this.videoBuffer_&&(this.videoBuffer_.appendWindowStart=e),this.audioBuffer_&&(this.audioBuffer_.appendWindowStart=e)}}),Object.defineProperty(i,"updating",{get:function(){return!!(this.bufferUpdating_||!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.updating||this.videoBuffer_&&this.videoBuffer_.updating)}}),Object.defineProperty(i,"buffered",{get:function(){return function(e,t,i){var n=null,r=null,a=0,s=[],o=[];if(!e&&!t)return ta.createTimeRange();if(!e)return t.buffered;if(!t)return e.buffered;if(i)return e.buffered;if(0===e.buffered.length&&0===t.buffered.length)return ta.createTimeRange();for(var u=e.buffered,l=t.buffered,c=u.length;c--;)s.push({time:u.start(c),type:"start"}),s.push({time:u.end(c),type:"end"});for(c=l.length;c--;)s.push({time:l.start(c),type:"start"}),s.push({time:l.end(c),type:"end"});for(s.sort(function(e,t){return e.time-t.time}),c=0;c<s.length;c++)"start"===s[c].type?2===++a&&(n=s[c].time):"end"===s[c].type&&1===--a&&(r=s[c].time),null!==n&&null!==r&&(o.push([n,r]),r=n=null);return ta.createTimeRanges(o)}(this.videoBuffer_,this.audioBuffer_,this.audioDisabled_)}}),i}var ws=(la(Cs,ta.EventTarget),oa(Cs,[{key:"addSeekableRange_",value:function(e,t){var i=void 0;if(this.duration!==1/0)throw(i=new Error("MediaSource.addSeekableRange() can only be invoked when the duration is Infinity")).name="InvalidStateError",i.code=11,i;(t>this.nativeMediaSource_.duration||isNaN(this.nativeMediaSource_.duration))&&(this.nativeMediaSource_.duration=t)}},{key:"addSourceBuffer",value:function(e){var t=void 0,i=function(e){var r={type:"",parameters:{}},t=e.trim().split(";");return r.type=t.shift().trim(),t.forEach(function(e){var t=e.trim().split("=");if(1<t.length){var i=t[0].replace(/"/g,"").trim(),n=t[1].replace(/"/g,"").trim();r.parameters[i]=n}}),r}(e);if(/^(video|audio)\/mp2t$/i.test(i.type)){var n=[];i.parameters&&i.parameters.codecs&&(n=i.parameters.codecs.split(","),n=(n=ms(n)).filter(function(e){return _s(e)||bs(e)})),0===n.length&&(n=["avc1.4d400d","mp4a.40.2"]),t=new ks(this,n),0!==this.sourceBuffers.length&&(this.sourceBuffers[0].createRealSourceBuffers_(),t.createRealSourceBuffers_(),this.sourceBuffers[0].audioDisabled_=!0)}else t=this.nativeMediaSource_.addSourceBuffer(e);return this.sourceBuffers.push(t),t}}]),Cs);function Cs(){sa(this,Cs);var a=ca(this,(Cs.__proto__||Object.getPrototypeOf(Cs)).call(this)),e=void 0;for(e in a.nativeMediaSource_=new v.a.MediaSource,a.nativeMediaSource_)e in Cs.prototype||"function"!=typeof a.nativeMediaSource_[e]||(a[e]=a.nativeMediaSource_[e].bind(a.nativeMediaSource_));return a.duration_=NaN,Object.defineProperty(a,"duration",{get:function(){return this.duration_===1/0?this.duration_:this.nativeMediaSource_.duration},set:function(e){(this.duration_=e)===1/0||(this.nativeMediaSource_.duration=e)}}),Object.defineProperty(a,"seekable",{get:function(){return this.duration_===1/0?ta.createTimeRanges([[0,this.nativeMediaSource_.duration]]):this.nativeMediaSource_.seekable}}),Object.defineProperty(a,"readyState",{get:function(){return this.nativeMediaSource_.readyState}}),Object.defineProperty(a,"activeSourceBuffers",{get:function(){return this.activeSourceBuffers_}}),a.sourceBuffers=[],a.activeSourceBuffers_=[],a.updateActiveSourceBuffers_=function(){if(a.activeSourceBuffers_.length=0,1===a.sourceBuffers.length){var e=a.sourceBuffers[0];return e.appendAudioInitSegment_=!0,e.audioDisabled_=!e.audioCodec_,void a.activeSourceBuffers_.push(e)}for(var i=!1,n=!0,t=0;t<a.player_.audioTracks().length;t++){var r=a.player_.audioTracks()[t];if(r.enabled&&"main"!==r.kind){n=!(i=!0);break}}a.sourceBuffers.forEach(function(e,t){if(e.appendAudioInitSegment_=!0,e.videoCodec_&&e.audioCodec_)e.audioDisabled_=i;else if(e.videoCodec_&&!e.audioCodec_)e.audioDisabled_=!0,n=!1;else if(!e.videoCodec_&&e.audioCodec_&&(e.audioDisabled_=t?n:!n,e.audioDisabled_))return;a.activeSourceBuffers_.push(e)})},a.onPlayerMediachange_=function(){a.sourceBuffers.forEach(function(e){e.appendAudioInitSegment_=!0})},a.onHlsReset_=function(){a.sourceBuffers.forEach(function(e){e.transmuxer_&&e.transmuxer_.postMessage({action:"resetCaptions"})})},a.onHlsSegmentTimeMapping_=function(t){a.sourceBuffers.forEach(function(e){return e.timeMapping_=t.mapping})},["sourceopen","sourceclose","sourceended"].forEach(function(e){this.nativeMediaSource_.addEventListener(e,this.trigger.bind(this))},a),a.on("sourceopen",function(e){var t=h.a.querySelector('[src="'+a.url_+'"]');t&&(a.player_=ta(t.parentNode),a.player_&&(a.player_.tech_.on("hls-reset",a.onHlsReset_),a.player_.tech_.on("hls-segment-time-mapping",a.onHlsSegmentTimeMapping_),a.player_.audioTracks&&a.player_.audioTracks()&&(a.player_.audioTracks().on("change",a.updateActiveSourceBuffers_),a.player_.audioTracks().on("addtrack",a.updateActiveSourceBuffers_),a.player_.audioTracks().on("removetrack",a.updateActiveSourceBuffers_)),a.player_.on("mediachange",a.onPlayerMediachange_)))}),a.on("sourceended",function(e){for(var t=Xa(a.duration),i=0;i<a.sourceBuffers.length;i++){var n=a.sourceBuffers[i],r=n.metadataTrack_&&n.metadataTrack_.cues;r&&r.length&&(r[r.length-1].endTime=t)}}),a.on("sourceclose",function(e){this.sourceBuffers.forEach(function(e){e.transmuxer_&&e.transmuxer_.terminate()}),this.sourceBuffers.length=0,this.player_&&(this.player_.audioTracks&&this.player_.audioTracks()&&(this.player_.audioTracks().off("change",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("addtrack",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("removetrack",this.updateActiveSourceBuffers_)),this.player_.el_&&this.player_.off("mediachange",this.onPlayerMediachange_),this.player_.tech_&&this.player_.tech_.el_&&(this.player_.tech_.off("hls-reset",this.onHlsReset_),this.player_.tech_.off("hls-segment-time-mapping",this.onHlsSegmentTimeMapping_)))}),a}var Os=0;ta.mediaSources={};function As(e,t){var i=ta.mediaSources[e];if(!i)throw new Error("Media Source not found (Video.js)");i.trigger({type:"sourceopen",swfId:t})}function Ps(){return!!v.a.MediaSource&&!!v.a.MediaSource.isTypeSupported&&v.a.MediaSource.isTypeSupported('video/mp4;codecs="avc1.4d400d,mp4a.40.2"')}function Is(){if(this.MediaSource={open:As,supportsNativeMediaSources:Ps},Ps())return new ws;throw new Error("Cannot use create a virtual MediaSource for this video")}Is.open=As,Is.supportsNativeMediaSources=Ps;var Ls={createObjectURL:function(e){var t=void 0;return e instanceof ws?(t=v.a.URL.createObjectURL(e.nativeMediaSource_),e.url_=t):e instanceof ws?(t="blob:vjs-media-source/"+Os,Os++,ta.mediaSources[t]=e,t):(t=v.a.URL.createObjectURL(e),e.url_=t)}};ta.MediaSource=Is,ta.URL=Ls;function xs(e,t){for(var s=void 0,o=Ms(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod}),i=0;i<t.playlists.length;i++){var n=da(o,t.playlists[i]);n?o=n:s=!0}return ha(t,function(e,t,i,n){if(e.playlists&&e.playlists.length){var r=e.playlists[0].uri,a=da(o,e.playlists[0]);a&&((o=a).mediaGroups[t][i][n].playlists[0]=o.playlists[r],s=!1)}}),s?null:o}function Ds(e){var t=e.byterange.offset+e.byterange.length-1;return e.uri+"-"+e.byterange.offset+"-"+t}function Rs(e,t){var i,n,r={};for(var a in e){var s=e[a].sidx;if(s){var o=Ds(s);if(!t[o])break;var u=t[o].sidxInfo;i=u,n=s,(Boolean(!i.map&&!n.map)||Boolean(i.map&&n.map&&i.map.byterange.offset===n.map.byterange.offset&&i.map.byterange.length===n.map.byterange.length))&&i.uri===n.uri&&i.byterange.offset===n.byterange.offset&&i.byterange.length===n.byterange.length&&(r[o]=t[o])}}return r}function Us(e,t,i,n,r){var a={uri:aa(n.handleManifestRedirects,e.resolvedUri),byterange:e.byterange,playlist:t};return i(ta.mergeOptions(a,{responseType:"arraybuffer",headers:Ra(a)}),r)}var Ms=ta.mergeOptions,Ns=(la(js,ta.EventTarget),oa(js,[{key:"setupChildLoader",value:function(e,t){this.masterPlaylistLoader_=e,this.childPlaylist_=t}},{key:"dispose",value:function(){this.stopRequest(),this.loadedPlaylists_={},v.a.clearTimeout(this.minimumUpdatePeriodTimeout_),v.a.clearTimeout(this.mediaRequest_),v.a.clearTimeout(this.mediaUpdateTimeout)}},{key:"hasPendingRequest",value:function(){return this.request||this.mediaRequest_}},{key:"stopRequest",value:function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}},{key:"sidxRequestFinished_",value:function(r,a,s,o){var u=this;return function(e,t){if(u.request){if(u.request=null,e)return u.error={status:t.status,message:"DASH playlist request error at URL: "+r.uri,response:t.response,code:2},s&&(u.state=s),u.trigger("error"),o(a,null);var i=new Uint8Array(t.response),n=C.a.parseSidx(i.subarray(8));return o(a,n)}}}},{key:"media",value:function(i){var n=this;if(!i)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var r=this.state;if("string"==typeof i){if(!this.master.playlists[i])throw new Error("Unknown playlist URI: "+i);i=this.master.playlists[i]}var e=!this.media_||i.uri!==this.media_.uri;if(e&&this.loadedPlaylists_[i.uri]&&this.loadedPlaylists_[i.uri].endList)return this.state="HAVE_METADATA",this.media_=i,void(e&&(this.trigger("mediachanging"),this.trigger("mediachange")));if(e)if(this.media_&&this.trigger("mediachanging"),i.sidx){var t=void 0,a=void 0;a=this.masterPlaylistLoader_?(t=this.masterPlaylistLoader_.master,this.masterPlaylistLoader_.sidxMapping_):(t=this.master,this.sidxMapping_);var s=Ds(i.sidx);a[s]={sidxInfo:i.sidx},this.request=Us(i.sidx,i,this.hls_.xhr,{handleManifestRedirects:this.handleManifestRedirects},this.sidxRequestFinished_(i,t,r,function(e,t){if(!e||!t)throw new Error("failed to request sidx");a[s].sidx=t,n.haveMetadata({startingState:r,playlist:e.playlists[i.uri]})}))}else this.mediaRequest_=v.a.setTimeout(this.haveMetadata.bind(this,{startingState:r,playlist:i}),0)}},{key:"haveMetadata",value:function(e){var t=e.startingState,i=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[i.uri]=i,this.mediaRequest_=null,this.refreshMedia_(i.uri),"HAVE_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")}},{key:"pause",value:function(){this.stopRequest(),v.a.clearTimeout(this.mediaUpdateTimeout),v.a.clearTimeout(this.minimumUpdatePeriodTimeout_),"HAVE_NOTHING"===this.state&&(this.started=!1)}},{key:"load",value:function(e){var t=this;v.a.clearTimeout(this.mediaUpdateTimeout),v.a.clearTimeout(this.minimumUpdatePeriodTimeout_);var i=this.media();if(e){var n=i?i.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=v.a.setTimeout(function(){return t.load()},n)}else this.started?this.trigger("loadedplaylist"):this.start()}},{key:"parseMasterXml",value:function(){var a=Object(E.a)(this.masterXml_,{manifestUri:this.srcUrl,clientOffset:this.clientOffset_,sidxMapping:this.sidxMapping_});a.uri=this.srcUrl;for(var e=0;e<a.playlists.length;e++){var t="placeholder-uri-"+e;a.playlists[e].uri=t,a.playlists[t]=a.playlists[e]}return ha(a,function(e,t,i,n){if(e.playlists&&e.playlists.length){var r="placeholder-uri-"+t+"-"+i+"-"+n;e.playlists[0].uri=r,a.playlists[r]=e.playlists[0]}}),pa(a),fa(a),a}},{key:"start",value:function(){var i=this;this.started=!0,this.masterPlaylistLoader_?this.mediaRequest_=v.a.setTimeout(this.haveMaster_.bind(this),0):this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(e,t){if(i.request){if(i.request=null,e)return i.error={status:t.status,message:"DASH playlist request error at URL: "+i.srcUrl,responseText:t.responseText,code:2},"HAVE_NOTHING"===i.state&&(i.started=!1),i.trigger("error");i.masterXml_=t.responseText,t.responseHeaders&&t.responseHeaders.date?i.masterLoaded_=Date.parse(t.responseHeaders.date):i.masterLoaded_=Date.now(),i.srcUrl=aa(i.handleManifestRedirects,i.srcUrl,t),i.syncClientServerClock_(i.onClientServerClockSync_.bind(i))}})}},{key:"syncClientServerClock_",value:function(n){var r=this,a=Object(E.b)(this.masterXml_);return null===a?(this.clientOffset_=this.masterLoaded_-Date.now(),n()):"DIRECT"===a.method?(this.clientOffset_=a.value-Date.now(),n()):void(this.request=this.hls_.xhr({uri:ra(this.srcUrl,a.value),method:a.method,withCredentials:this.withCredentials},function(e,t){if(r.request){if(e)return r.clientOffset_=r.masterLoaded_-Date.now(),n();var i=void 0;i="HEAD"===a.method?t.responseHeaders&&t.responseHeaders.date?Date.parse(t.responseHeaders.date):r.masterLoaded_:Date.parse(t.responseText),r.clientOffset_=i-Date.now(),n()}}))}},{key:"haveMaster_",value:function(){this.state="HAVE_MASTER",this.mediaRequest_=null,this.masterPlaylistLoader_?this.media_||this.media(this.childPlaylist_):(this.master=this.parseMasterXml(),this.trigger("loadedplaylist"))}},{key:"onClientServerClockSync_",value:function(){var e=this;this.haveMaster_(),this.hasPendingRequest()||this.media_||this.media(this.master.playlists[0]),this.master&&this.master.minimumUpdatePeriod&&(this.minimumUpdatePeriodTimeout_=v.a.setTimeout(function(){e.trigger("minimumUpdatePeriod")},this.master.minimumUpdatePeriod))}},{key:"refreshXml_",value:function(){var o=this;this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(e,t){if(o.request){if(o.request=null,e)return o.error={status:t.status,message:"DASH playlist request error at URL: "+o.srcUrl,responseText:t.responseText,code:2},"HAVE_NOTHING"===o.state&&(o.started=!1),o.trigger("error");o.masterXml_=t.responseText,o.sidxMapping_=function(e,t,i,a){var n=Object(E.a)(e,{manifestUri:t,clientOffset:i}),s=Rs(n.playlists,a);return ha(n,function(e,t,i,n){if(e.playlists&&e.playlists.length){var r=e.playlists;s=Ms(s,Rs(r,a))}}),s}(o.masterXml_,o.srcUrl,o.clientOffset_,o.sidxMapping_);var i=o.parseMasterXml(),n=xs(o.master,i),r=o.media().sidx;if(n)if(r){var a=Ds(r);if(!o.sidxMapping_[a]){var s=o.media();o.request=Us(s.sidx,s,o.hls_.xhr,{handleManifestRedirects:o.handleManifestRedirects},o.sidxRequestFinished_(s,i,o.state,function(e,t){if(!e||!t)throw new Error("failed to request sidx on minimumUpdatePeriod");o.sidxMapping_[a].sidx=t,o.minimumUpdatePeriodTimeout_=v.a.setTimeout(function(){o.trigger("minimumUpdatePeriod")},o.master.minimumUpdatePeriod),o.refreshMedia_(o.media().uri)}))}}else o.master=n;o.minimumUpdatePeriodTimeout_=v.a.setTimeout(function(){o.trigger("minimumUpdatePeriod")},o.master.minimumUpdatePeriod)}})}},{key:"refreshMedia_",value:function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media uri");var i=void 0,n=void 0;n=this.masterPlaylistLoader_?(i=this.masterPlaylistLoader_.master,this.masterPlaylistLoader_.parseMasterXml()):(i=this.master,this.parseMasterXml());var r=xs(i,n);r?(this.masterPlaylistLoader_?this.masterPlaylistLoader_.master=r:this.master=r,this.media_=r.playlists[e]):(this.media_=n.playlists[e],this.trigger("playlistunchanged")),this.media().endList||(this.mediaUpdateTimeout=v.a.setTimeout(function(){t.trigger("mediaupdatetimeout")},ma(this.media(),!!r))),this.trigger("loadedplaylist")}}]),js);function js(e,t){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},n=arguments[3];sa(this,js);var r=ca(this,(js.__proto__||Object.getPrototypeOf(js)).call(this)),a=i.withCredentials,s=void 0!==a&&a,o=i.handleManifestRedirects,u=void 0!==o&&o;if(r.hls_=t,r.withCredentials=s,r.handleManifestRedirects=u,!e)throw new Error("A non-empty playlist URL or playlist is required");return r.on("minimumUpdatePeriod",function(){r.refreshXml_()}),r.on("mediaupdatetimeout",function(){r.refreshMedia_(r.media().uri)}),r.state="HAVE_NOTHING",r.loadedPlaylists_={},"string"==typeof e?(r.srcUrl=e,r.sidxMapping_={},ca(r)):(r.setupChildLoader(n,e),r)}function Bs(e){return ta.log.debug?ta.log.debug.bind(ta,"VHS:",e+" >"):function(){}}function Fs(){}var Vs=(oa(Hs,[{key:"createSourceBuffer_",value:function(e,t){var i=this;this.sourceBuffer_=this.mediaSource.addSourceBuffer(e),this.logger_("created SourceBuffer"),t&&(t.trigger("sourcebufferadded"),this.mediaSource.sourceBuffers.length<2)?t.on("sourcebufferadded",function(){i.start_()}):this.start_()}},{key:"start_",value:function(){var t=this;this.started_=!0,this.onUpdateendCallback_=function(){var e=t.pendingCallback_;t.pendingCallback_=null,t.sourceBuffer_.removing=!1,t.logger_("buffered ["+za(t.buffered())+"]"),e&&e(),t.runCallback_()},this.sourceBuffer_.addEventListener("updateend",this.onUpdateendCallback_),this.runCallback_()}},{key:"abort",value:function(e){var t=this;this.processedAppend_&&this.queueCallback_(function(){t.sourceBuffer_.abort()},e)}},{key:"appendBuffer",value:function(e,t){var i=this;this.processedAppend_=!0,this.queueCallback_(function(){e.videoSegmentTimingInfoCallback&&i.sourceBuffer_.addEventListener("videoSegmentTimingInfo",e.videoSegmentTimingInfoCallback),i.sourceBuffer_.appendBuffer(e.bytes)},function(){e.videoSegmentTimingInfoCallback&&i.sourceBuffer_.removeEventListener("videoSegmentTimingInfo",e.videoSegmentTimingInfoCallback),t()})}},{key:"buffered",value:function(){return this.sourceBuffer_?this.sourceBuffer_.buffered:ta.createTimeRanges()}},{key:"remove",value:function(e,t,i){var n=this,r=2<arguments.length&&void 0!==i?i:Fs;this.processedAppend_&&this.queueCallback_(function(){n.logger_("remove ["+e+" => "+t+"]"),n.sourceBuffer_.removing=!0,n.sourceBuffer_.remove(e,t)},r)}},{key:"updating",value:function(){return!this.sourceBuffer_||this.sourceBuffer_.updating||!!this.pendingCallback_&&this.pendingCallback_!==Fs}},{key:"timestampOffset",value:function(e){var t=this;return void 0!==e&&(this.queueCallback_(function(){t.sourceBuffer_.timestampOffset=e,t.runCallback_()}),this.timestampOffset_=e),this.timestampOffset_}},{key:"queueCallback_",value:function(e,t){this.callbacks_.push([e.bind(this),t]),this.runCallback_()}},{key:"runCallback_",value:function(){var e=void 0;!this.updating()&&this.callbacks_.length&&this.started_&&(e=this.callbacks_.shift(),this.pendingCallback_=e[1],e[0]())}},{key:"dispose",value:function(){function e(){t.sourceBuffer_&&"open"===t.mediaSource.readyState&&t.sourceBuffer_.abort(),t.sourceBuffer_.removeEventListener("updateend",e)}var t=this;this.sourceBuffer_.removeEventListener("updateend",this.onUpdateendCallback_),this.sourceBuffer_.removing?this.sourceBuffer_.addEventListener("updateend",e):e()}}]),Hs);function Hs(e,t,i,n){sa(this,Hs),this.callbacks_=[],this.pendingCallback_=null,this.timestampOffset_=0,this.mediaSource=e,this.processedAppend_=!1,this.type_=i,this.mimeType_=t,this.logger_=Bs("SourceUpdater["+i+"]["+t+"]"),"closed"===e.readyState?e.addEventListener("sourceopen",this.createSourceBuffer_.bind(this,t,n)):this.createSourceBuffer_(t,n)}function qs(e){e.forEach(function(e){e.abort()})}function Ws(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:eo,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:to,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:Zs,xhr:t}:null}function Gs(i,n,r){var a=0,s=!1;return function(e,t){if(!s)return e?(s=!0,qs(i),r(e,t)):(a+=1)===i.length?(t.endOfAllRequests=Date.now(),t.encryptedBytes?function(n,r,a){n.addEventListener("message",function e(t){if(t.data.source===r.requestId){n.removeEventListener("message",e);var i=t.data.decrypted;return r.bytes=new Uint8Array(i.bytes,i.byteOffset,i.byteLength),a(null,r)}});var e=void 0;e=r.key.bytes.slice?r.key.bytes.slice():new Uint32Array(Array.prototype.slice.call(r.key.bytes)),n.postMessage(Na({source:r.requestId,encrypted:r.encryptedBytes,key:e,iv:r.key.iv}),[r.encryptedBytes.buffer,e.buffer])}(n,t,r):r(null,t)):void 0}}function zs(t,i){return function(e){return t.stats=ta.mergeOptions(t.stats,function(e){var t=e.target,i={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return i.bytesReceived=e.loaded,i.bandwidth=Math.floor(i.bytesReceived/i.roundTripTime*8*1e3),i}(e)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),i(e,t)}}function $s(e,t,i,n,r,a,s){var o=[],u=Gs(o,i,s);if(r.key&&!r.key.bytes){var l=e(ta.mergeOptions(t,{uri:r.key.resolvedUri,responseType:"arraybuffer"}),function(a,s){return function(e,t){var i=t.response,n=Ws(e,t);if(n)return s(n,a);if(16!==i.byteLength)return s({status:t.status,message:"Invalid HLS key at URL: "+t.uri,code:Zs,xhr:t},a);var r=new DataView(i);return a.key.bytes=new Uint32Array([r.getUint32(0),r.getUint32(4),r.getUint32(8),r.getUint32(12)]),s(null,a)}}(r,u));o.push(l)}if(r.map&&!r.map.bytes){var c=e(ta.mergeOptions(t,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:Ra(r.map)}),function(r,a,s){return function(e,t){var i=t.response,n=Ws(e,t);return n?s(n,r):0===i.byteLength?s({status:t.status,message:"Empty HLS segment content at URL: "+t.uri,code:Zs,xhr:t},r):(r.map.bytes=new Uint8Array(t.response),a&&!a.isInitialized()&&a.init(),r.map.timescales=A.a.timescale(r.map.bytes),r.map.videoTrackIds=A.a.videoTrackIds(r.map.bytes),s(null,r))}}(r,n,u));o.push(c)}var h=e(ta.mergeOptions(t,{uri:r.resolvedUri,responseType:"arraybuffer",headers:Ra(r)}),function(a,s,o){return function(e,t){var i=t.response,n=Ws(e,t),r=void 0;return n?o(n,a):0===i.byteLength?o({status:t.status,message:"Empty HLS segment content at URL: "+t.uri,code:Zs,xhr:t},a):(a.stats=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}}(t),a.key?a.encryptedBytes=new Uint8Array(t.response):a.bytes=new Uint8Array(t.response),s&&a.map&&a.map.bytes&&(s.isInitialized()||s.init(),(r=s.parse(a.bytes,a.map.videoTrackIds,a.map.timescales))&&r.captions&&(a.captionStreams=r.captionStreams,a.fmp4Captions=r.captions)),o(null,a))}}(r,n,u));return h.addEventListener("progress",zs(r,a)),o.push(h),function(){return qs(o)}}function Ks(e,t){var i;return e&&(i=v.a.getComputedStyle(e))?i[t]:""}function Xs(e,n){var r=e.slice();e.sort(function(e,t){var i=n(e,t);return 0===i?r.indexOf(e)-r.indexOf(t):i})}function Ys(e,t){var i=void 0,n=void 0;return e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),i=i||v.a.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(n=t.attributes.BANDWIDTH),i-(n=n||v.a.Number.MAX_VALUE)}function Js(e){return"number"==typeof e&&isFinite(e)}var Qs={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,BUFFER_LOW_WATER_LINE_RATE:1},Zs=2,eo=-101,to=-102,io=(la(no,ta.EventTarget),oa(no,[{key:"resetStats_",value:function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0}},{key:"dispose",value:function(){this.state="DISPOSED",this.pause(),this.abort_(),this.sourceUpdater_&&this.sourceUpdater_.dispose(),this.resetStats_(),this.captionParser_&&this.captionParser_.reset()}},{key:"abort",value:function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)}},{key:"abort_",value:function(){this.pendingSegment_&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null}},{key:"error",value:function(e){return void 0!==e&&(this.error_=e),this.pendingSegment_=null,this.error_}},{key:"endOfStream",value:function(){this.ended_=!0,this.pause(),this.trigger("ended")}},{key:"buffered_",value:function(){return this.sourceUpdater_?this.sourceUpdater_.buffered():ta.createTimeRanges()}},{key:"initSegment",value:function(e,t){var i=1<arguments.length&&void 0!==t&&t;if(!e)return null;var n=ja(e),r=this.initSegments_[n];return i&&!r&&e.bytes&&(this.initSegments_[n]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,timescales:e.timescales,videoTrackIds:e.videoTrackIds}),r||e}},{key:"segmentKey",value:function(e,t){var i=1<arguments.length&&void 0!==t&&t;if(!e)return null;var n=Ba(e),r=this.keyCache_[n];this.cacheEncryptionKeys_&&i&&!r&&e.bytes&&(this.keyCache_[n]=r={resolvedUri:e.resolvedUri,bytes:e.bytes});var a={resolvedUri:(r||e).resolvedUri};return r&&(a.bytes=r.bytes),a}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&(this.sourceUpdater_||this.mimeType_&&"INIT"===this.state)&&!this.paused()}},{key:"load",value:function(){if(this.monitorBuffer_(),this.playlist_){if(this.syncController_.setDateTimeMapping(this.playlist_),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY")}}},{key:"init_",value:function(){return this.state="READY",this.sourceUpdater_=new Vs(this.mediaSource_,this.mimeType_,this.loaderType_,this.sourceBufferEmitter_),this.resetEverything(),this.monitorBuffer_()}},{key:"playlist",value:function(e,t){var i=1<arguments.length&&void 0!==t?t:{};if(e){var n=this.playlist_,r=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=i,this.hasPlayed_()||(e.syncInfo={mediaSequence:e.mediaSequence,time:0});var a=null;if(n&&(n.id?a=n.id:n.uri&&(a=n.uri)),this.logger_("playlist update ["+a+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(n&&n.uri===e.uri){var s=e.mediaSequence-n.mediaSequence;this.logger_("live window shift ["+s+"]"),null!==this.mediaIndex&&(this.mediaIndex-=s),r&&(r.mediaIndex-=s,0<=r.mediaIndex&&(r.segment=e.segments[r.mediaIndex])),this.syncController_.saveExpiredSegmentInfo(n,e)}else null!==this.mediaIndex&&this.resyncLoader()}}},{key:"pause",value:function(){this.checkBufferTimeout_&&(v.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}},{key:"paused",value:function(){return null===this.checkBufferTimeout_}},{key:"mimeType",value:function(e,t){this.mimeType_||(this.mimeType_=e,this.sourceBufferEmitter_=t,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_())}},{key:"resetEverything",value:function(e){this.ended_=!1,this.resetLoader(),this.remove(0,this.duration_(),e),this.captionParser_&&this.captionParser_.clearAllCaptions(),this.trigger("reseteverything")}},{key:"resetLoader",value:function(){this.fetchAtBuffer_=!1,this.resyncLoader()}},{key:"resyncLoader",value:function(){this.mediaIndex=null,this.syncPoint_=null,this.abort()}},{key:"remove",value:function(e,t,i){if(this.sourceUpdater_&&this.sourceUpdater_.remove(e,t,i),Ka(e,t,this.segmentMetadataTrack_),this.inbandTextTracks_)for(var n in this.inbandTextTracks_)Ka(e,t,this.inbandTextTracks_[n])}},{key:"monitorBuffer_",value:function(){this.checkBufferTimeout_&&v.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=v.a.setTimeout(this.monitorBufferTick_.bind(this),1)}},{key:"monitorBufferTick_",value:function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&v.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=v.a.setTimeout(this.monitorBufferTick_.bind(this),500)}},{key:"fillBuffer_",value:function(){if(!this.sourceUpdater_.updating()){this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var e=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);e&&(this.isEndOfStream_(e.mediaIndex)?this.endOfStream():e.mediaIndex===this.playlist_.segments.length-1&&"ended"===this.mediaSource_.readyState&&!this.seeking_()||(e.timeline!==this.currentTimeline_&&(this.syncController_.reset(),e.timestampOffset=e.startOfSegment,this.captionParser_&&this.captionParser_.clearAllCaptions()),this.loadSegment_(e)))}}},{key:"isEndOfStream_",value:function(e,t){return function(e,t,i){if(!e||!t)return!1;var n=i===e.segments.length;return e.endList&&"open"===t.readyState&&n}(1<arguments.length&&void 0!==t?t:this.playlist_,this.mediaSource_,e)&&!this.sourceUpdater_.updating()}},{key:"checkBuffer_",value:function(e,t,i,n,r,a){var s=0,o=void 0;e.length&&(s=e.end(e.length-1));var u=Math.max(0,s-r);if(!t.segments.length)return null;if(u>=this.goalBufferLength_())return null;if(!n&&1<=u)return null;if(null===a)return i=this.getSyncSegmentCandidate_(t),this.generateSegmentInfo_(t,i,null,!0);if(null!==i)return t.segments[i],o=s,this.generateSegmentInfo_(t,i+1,o,!1);if(this.fetchAtBuffer_){var l=es.getMediaInfoForTime(t,s,a.segmentIndex,a.time);i=l.mediaIndex,o=l.startTime}else{var c=es.getMediaInfoForTime(t,r,a.segmentIndex,a.time);i=c.mediaIndex,o=c.startTime}return this.generateSegmentInfo_(t,i,o,!1)}},{key:"getSyncSegmentCandidate_",value:function(e){var t=this;if(-1===this.currentTimeline_)return 0;var i=e.segments.map(function(e,t){return{timeline:e.timeline,segmentIndex:t}}).filter(function(e){return e.timeline===t.currentTimeline_});return i.length?i[Math.min(i.length-1,1)].segmentIndex:Math.max(e.segments.length-1,0)}},{key:"generateSegmentInfo_",value:function(e,t,i,n){if(t<0||t>=e.segments.length)return null;var r=e.segments[t];return{requestId:"segment-loader-"+Math.random(),uri:r.resolvedUri,mediaIndex:t,isSyncRequest:n,startOfSegment:i,playlist:e,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:r.timeline,duration:r.duration,segment:r}}},{key:"abortRequestEarly_",value:function(e){if(this.hls_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH)return!1;if(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return!1;var t=this.currentTime_(),i=e.bandwidth,n=this.pendingSegment_.duration,r=es.estimateSegmentRequestTime(n,i,this.playlist_,e.bytesReceived),a=function(e,t,i){var n=2<arguments.length&&void 0!==i?i:1;return((e.length?e.end(e.length-1):0)-t)/n}(this.buffered_(),t,this.hls_.tech_.playbackRate())-1;if(r<=a)return!1;var s=function(e){var t=e.master,i=e.currentTime,n=e.bandwidth,r=e.duration,a=e.segmentDuration,s=e.timeUntilRebuffer,o=e.currentTimeline,u=e.syncController,l=t.playlists.filter(function(e){return!es.isIncompatible(e)}),c=l.filter(es.isEnabled);c.length||(c=l.filter(function(e){return!es.isDisabled(e)}));var h=c.filter(es.hasAttribute.bind(null,"BANDWIDTH")).map(function(e){var t=u.getSyncPoint(e,r,o,i)?1:2;return{playlist:e,rebufferingImpact:es.estimateSegmentRequestTime(a,n,e)*t-s}}),d=h.filter(function(e){return e.rebufferingImpact<=0});return Xs(d,function(e,t){return Ys(t.playlist,e.playlist)}),d.length?d[0]:(Xs(h,function(e,t){return e.rebufferingImpact-t.rebufferingImpact}),h[0]||null)}({master:this.hls_.playlists.master,currentTime:t,bandwidth:i,duration:this.duration_(),segmentDuration:n,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(s){var o=r-a-s.rebufferingImpact,u=.5;return a<=1/30&&(u=1),!(!s.playlist||s.playlist.uri===this.playlist_.uri||o<u)&&(this.bandwidth=s.playlist.attributes.BANDWIDTH*Qs.BANDWIDTH_VARIANCE+1,this.abort(),this.trigger("earlyabort"),!0)}}},{key:"handleProgress_",value:function(e,t){this.pendingSegment_&&t.requestId===this.pendingSegment_.requestId&&!this.abortRequestEarly_(t.stats)&&this.trigger("progress")}},{key:"loadSegment_",value:function(e){this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),e.abortRequests=$s(this.hls_.xhr,this.xhrOptions_,this.decrypter_,this.captionParser_,this.createSimplifiedSegmentObj_(e),this.handleProgress_.bind(this),this.segmentRequestFinished_.bind(this))}},{key:"trimBackBuffer_",value:function(e){var t=function(e,t,i){var n=void 0;return n=e.length&&0<e.start(0)&&e.start(0)<t?e.start(0):t-30,Math.min(n,t-i)}(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);0<t&&this.remove(0,t)}},{key:"createSimplifiedSegmentObj_",value:function(e){var t=e.segment,i={resolvedUri:t.resolvedUri,byterange:t.byterange,requestId:e.requestId};if(t.key){var n=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);i.key=this.segmentKey(t.key),i.key.iv=n}return t.map&&(i.map=this.initSegment(t.map)),i}},{key:"segmentRequestFinished_",value:function(e,t){if(this.mediaRequests+=1,t.stats&&(this.mediaBytesTransferred+=t.stats.bytesReceived,this.mediaTransferDuration+=t.stats.roundTripTime),this.pendingSegment_){if(t.requestId===this.pendingSegment_.requestId){if(e)return this.pendingSegment_=null,this.state="READY",e.code===to?void(this.mediaRequestsAborted+=1):(this.pause(),e.code===eo?(this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,void this.trigger("bandwidthupdate")):(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error")));this.bandwidth=t.stats.bandwidth,this.roundTrip=t.stats.roundTripTime,t.map&&(t.map=this.initSegment(t.map,!0)),t.key&&this.segmentKey(t.key,!0),this.processSegmentResponse_(t)}}else this.mediaRequestsAborted+=1}},{key:"processSegmentResponse_",value:function(e){var t=this.pendingSegment_;t.bytes=e.bytes,e.map&&(t.segment.map.bytes=e.map.bytes),t.endOfAllRequests=e.endOfAllRequests,e.fmp4Captions&&(function(e,t,i){for(var n in i)if(!e[n]){t.trigger({type:"usage",name:"hls-608"});var r=t.textTracks().getTrackById(n);e[n]=r||t.addRemoteTextTrack({kind:"captions",id:n,label:n},!1).track}}(this.inbandTextTracks_,this.hls_.tech_,e.captionStreams),function(e){var r=e.inbandTextTracks,t=e.captionArray,a=e.timestampOffset;if(t){var s=window.WebKitDataCue||window.VTTCue;t.forEach(function(e){var t=e.stream,i=e.startTime,n=e.endTime;r[t]&&(i+=a,n+=a,r[t].addCue(new s(i,n,e.text)))})}}({inbandTextTracks:this.inbandTextTracks_,captionArray:e.fmp4Captions,timestampOffset:0}),this.captionParser_&&this.captionParser_.clearParsedCaptions()),this.handleSegment_()}},{key:"handleSegment_",value:function(){var e=this;if(this.pendingSegment_){var t=this.pendingSegment_,i=t.segment,n=this.syncController_.probeSegmentInfo(t);void 0===this.startingMedia_&&n&&(n.containsAudio||n.containsVideo)&&(this.startingMedia_={containsAudio:n.containsAudio,containsVideo:n.containsVideo});var r=function(e,t,i){return"main"===e&&t&&i?i.containsAudio||i.containsVideo?t.containsVideo&&!i.containsVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.containsVideo&&i.containsVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null}(this.loaderType_,this.startingMedia_,n);if(r)return this.error({message:r,blacklistDuration:1/0}),void this.trigger("error");if(t.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");if(null!==t.timestampOffset&&t.timestampOffset!==this.sourceUpdater_.timestampOffset()){if(n&&n.segmentTimestampInfo){var a=n.segmentTimestampInfo[0].ptsTime,s=n.segmentTimestampInfo[0].dtsTime;t.timestampOffset-=a-s}this.sourceUpdater_.timestampOffset(t.timestampOffset),this.trigger("timestampoffset")}var o=this.syncController_.mappingForTimeline(t.timeline);if(null!==o&&this.trigger({type:"segmenttimemapping",mapping:o}),this.state="APPENDING",i.map){var u=ja(i.map);if(!this.activeInitSegmentId_||this.activeInitSegmentId_!==u){var l=this.initSegment(i.map);this.sourceUpdater_.appendBuffer({bytes:l.bytes},function(){e.activeInitSegmentId_=u})}}t.byteLength=t.bytes.byteLength,"number"==typeof i.start&&"number"==typeof i.end?this.mediaSecondsLoaded+=i.end-i.start:this.mediaSecondsLoaded+=i.duration,this.logger_(function(e){var t=e.segment,i=t.start,n=t.end,r=e.playlist,a=r.mediaSequence,s=r.id,o=r.segments,u=void 0===o?[]:o,l=e.mediaIndex,c=e.timeline;return["appending ["+l+"] of ["+a+", "+(a+u.length)+"] from playlist ["+s+"]","["+i+" => "+n+"] in timeline ["+c+"]"].join(" ")}(t)),this.sourceUpdater_.appendBuffer({bytes:t.bytes,videoSegmentTimingInfoCallback:this.handleVideoSegmentTimingInfo_.bind(this,t.requestId)},this.handleUpdateEnd_.bind(this))}else this.state="READY"}},{key:"handleVideoSegmentTimingInfo_",value:function(e,t){if(this.pendingSegment_&&e===this.pendingSegment_.requestId){var i=this.pendingSegment_.segment;i.videoTimingInfo||(i.videoTimingInfo={}),i.videoTimingInfo.transmuxerPrependedSeconds=t.videoSegmentTimingInfo.prependedContentDuration||0,i.videoTimingInfo.transmuxedPresentationStart=t.videoSegmentTimingInfo.start.presentation,i.videoTimingInfo.transmuxedPresentationEnd=t.videoSegmentTimingInfo.end.presentation,i.videoTimingInfo.baseMediaDecodeTime=t.videoSegmentTimingInfo.baseMediaDecodeTime}}},{key:"handleUpdateEnd_",value:function(){if(!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_,t=e.segment,i=null!==this.mediaIndex;this.pendingSegment_=null,this.recordThroughput_(e),this.addSegmentMetadataCue_(e),this.state="READY",this.mediaIndex=e.mediaIndex,this.fetchAtBuffer_=!0,this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate"),t.end&&this.currentTime_()-t.end>3*e.playlist.targetDuration?this.resetEverything():(i&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.isEndOfStream_(e.mediaIndex+1,e.playlist)&&this.endOfStream(),this.paused()||this.monitorBuffer_())}},{key:"recordThroughput_",value:function(e){var t=this.throughput.rate,i=Date.now()-e.endOfAllRequests+1,n=Math.floor(e.byteLength/i*8*1e3);this.throughput.rate+=(n-t)/++this.throughput.count}},{key:"addSegmentMetadataCue_",value:function(e){if(this.segmentMetadataTrack_){var t=e.segment,i=t.start,n=t.end;if(Js(i)&&Js(n)){Ka(i,n,this.segmentMetadataTrack_);var r=v.a.WebKitDataCue||v.a.VTTCue,a={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.uri,start:i,end:n},s=new r(i,n,JSON.stringify(a));s.value=a,this.segmentMetadataTrack_.addCue(s)}}}}]),no);function no(e){sa(this,no);var t=ca(this,(no.__proto__||Object.getPrototypeOf(no)).call(this));if(!e)throw new TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");return t.bandwidth=e.bandwidth,t.throughput={rate:0,count:0},t.roundTrip=NaN,t.resetStats_(),t.mediaIndex=null,t.hasPlayed_=e.hasPlayed,t.currentTime_=e.currentTime,t.seekable_=e.seekable,t.seeking_=e.seeking,t.duration_=e.duration,t.mediaSource_=e.mediaSource,t.hls_=e.hls,t.loaderType_=e.loaderType,t.startingMedia_=void 0,t.segmentMetadataTrack_=e.segmentMetadataTrack,t.goalBufferLength_=e.goalBufferLength,t.sourceType_=e.sourceType,t.inbandTextTracks_=e.inbandTextTracks,t.state_="INIT",t.checkBufferTimeout_=null,t.error_=void 0,t.currentTimeline_=-1,t.pendingSegment_=null,t.mimeType_=null,t.sourceUpdater_=null,t.xhrOptions_=null,t.activeInitSegmentId_=null,t.initSegments_={},t.cacheEncryptionKeys_=e.cacheEncryptionKeys,t.keyCache_={},"main"===t.loaderType_?t.captionParser_=new I.a:t.captionParser_=null,t.decrypter_=e.decrypter,t.syncController_=e.syncController,t.syncPoint_={segmentIndex:0,time:0},t.syncController_.on("syncinfoupdate",function(){return t.trigger("syncinfoupdate")}),t.mediaSource_.addEventListener("sourceopen",function(){return t.ended_=!1}),t.fetchAtBuffer_=!1,t.logger_=Bs("SegmentLoader["+t.loaderType_+"]"),Object.defineProperty(t,"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e)}}),t}function ro(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))}var ao=new Uint8Array("\n\n".split("").map(function(e){return e.charCodeAt(0)})),so=(la(oo,io),oa(oo,[{key:"buffered_",value:function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues.length)return ta.createTimeRanges();var e=this.subtitlesTrack_.cues,t=e[0].startTime,i=e[e.length-1].startTime;return ta.createTimeRanges([[t,i]])}},{key:"initSegment",value:function(e,t){var i=1<arguments.length&&void 0!==t&&t;if(!e)return null;var n=ja(e),r=this.initSegments_[n];if(i&&!r&&e.bytes){var a=ao.byteLength+e.bytes.byteLength,s=new Uint8Array(a);s.set(e.bytes),s.set(ao,e.bytes.byteLength),this.initSegments_[n]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:s}}return r||e}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}},{key:"init_",value:function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}},{key:"track",value:function(e){return void 0===e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_}},{key:"remove",value:function(e,t){Ka(e,t,this.subtitlesTrack_)}},{key:"fillBuffer_",value:function(){var e=this;this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var t=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(t=this.skipEmptySegments_(t)){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline))return this.syncController_.one("timestampoffset",function(){e.state="READY",e.paused()||e.monitorBuffer_()}),void(this.state="WAITING_ON_TIMELINE");this.loadSegment_(t)}}},{key:"skipEmptySegments_",value:function(e){for(;e&&e.segment.empty;)e=this.generateSegmentInfo_(e.playlist,e.mediaIndex+1,e.startOfSegment+e.duration,e.isSyncRequest);return e}},{key:"handleSegment_",value:function(){var t=this;if(this.pendingSegment_&&this.subtitlesTrack_){this.state="APPENDING";var e=this.pendingSegment_,i=e.segment;if("function"!=typeof v.a.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var n=void 0,r=function(){t.subtitlesTrack_.tech_.off("vttjsloaded",n),t.error({message:"Error loading vtt.js"}),t.state="READY",t.pause(),t.trigger("error")};return n=function(){t.subtitlesTrack_.tech_.off("vttjserror",r),t.handleSegment_()},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",n),void this.subtitlesTrack_.tech_.one("vttjserror",r)}i.requested=!0;try{this.parseVTTCues_(e)}catch(e){return this.error({message:e.message}),this.state="READY",this.pause(),this.trigger("error")}if(this.updateTimeMapping_(e,this.syncController_.timelines[e.timeline],this.playlist_),e.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");e.byteLength=e.bytes.byteLength,this.mediaSecondsLoaded+=i.duration,e.cues.length&&this.remove(e.cues[0].endTime,e.cues[e.cues.length-1].endTime),e.cues.forEach(function(e){t.subtitlesTrack_.addCue(e)}),this.handleUpdateEnd_()}else this.state="READY"}},{key:"parseVTTCues_",value:function(t){var e=void 0,i=!1;"function"==typeof v.a.TextDecoder?e=new v.a.TextDecoder("utf8"):(e=v.a.WebVTT.StringDecoder(),i=!0);var n=new v.a.WebVTT.Parser(v.a,v.a.vttjs,e);if(t.cues=[],t.timestampmap={MPEGTS:0,LOCAL:0},n.oncue=t.cues.push.bind(t.cues),n.ontimestampmap=function(e){return t.timestampmap=e},n.onparsingerror=function(e){ta.log.warn("Error encountered when parsing cues: "+e.message)},t.segment.map){var r=t.segment.map.bytes;i&&(r=ro(r)),n.parse(r)}var a=t.bytes;i&&(a=ro(a)),n.parse(a),n.flush()}},{key:"updateTimeMapping_",value:function(e,t,i){var n=e.segment;if(t)if(e.cues.length){var r=e.timestampmap,a=r.MPEGTS/9e4-r.LOCAL+t.mapping;if(e.cues.forEach(function(e){e.startTime+=a,e.endTime+=a}),!i.syncInfo){var s=e.cues[0].startTime,o=e.cues[e.cues.length-1].startTime;i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:Math.min(s,o-n.duration)}}}else n.empty=!0}}]),oo);function oo(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};sa(this,oo);var i=ca(this,(oo.__proto__||Object.getPrototypeOf(oo)).call(this,e,t));return i.mediaSource_=null,i.subtitlesTrack_=null,i}function uo(e,t){for(var i=e.cues,n=0;n<i.length;n++){var r=i[n];if(t>=r.adStartTime&&t<=r.adEndTime)return r}return null}var lo=x.a.inspect,co=[{name:"VOD",run:function(e,t,i,n,r){if(i===1/0)return null;return{time:0,segmentIndex:0}}},{name:"ProgramDateTime",run:function(e,t,i,n,r){if(!e.datetimeToDisplayTime)return null;var a=t.segments||[],s=null,o=null;r=r||0;for(var u=0;u<a.length;u++){var l=a[u];if(l.dateTimeObject){var c=l.dateTimeObject.getTime()/1e3+e.datetimeToDisplayTime,h=Math.abs(r-c);if(null!==o&&(0===h||o<h))break;o=h,s={time:c,segmentIndex:u}}}return s}},{name:"Segment",run:function(e,t,i,n,r){var a=t.segments||[],s=null,o=null;r=r||0;for(var u=0;u<a.length;u++){var l=a[u];if(l.timeline===n&&void 0!==l.start){var c=Math.abs(r-l.start);if(null!==o&&o<c)break;(!s||null===o||c<=o)&&(o=c,s={time:l.start,segmentIndex:u})}}return s}},{name:"Discontinuity",run:function(e,t,i,n,r){var a=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var s=null,o=0;o<t.discontinuityStarts.length;o++){var u=t.discontinuityStarts[o],l=t.discontinuitySequence+o+1,c=e.discontinuities[l];if(c){var h=Math.abs(r-c.time);if(null!==s&&s<h)break;(!a||null===s||h<=s)&&(s=h,a={time:c.time,segmentIndex:u})}}return a}},{name:"Playlist",run:function(e,t,i,n,r){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence}:null}}],ho=(la(po,ta.EventTarget),oa(po,[{key:"getSyncPoint",value:function(e,t,i,n){var r=this.runStrategies_(e,t,i,n);return r.length?this.selectSyncPoint_(r,{key:"time",value:n}):null}},{key:"getExpiredTime",value:function(e,t){if(!e||!e.segments)return null;var i=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!i.length)return null;var n=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return 0<n.segmentIndex&&(n.time*=-1),Math.abs(n.time+ka(e,n.segmentIndex,0))}},{key:"runStrategies_",value:function(e,t,i,n){for(var r=[],a=0;a<co.length;a++){var s=co[a],o=s.run(this,e,t,i,n);o&&(o.strategy=s.name,r.push({strategy:s.name,syncPoint:o}))}return r}},{key:"selectSyncPoint_",value:function(e,t){for(var i=e[0].syncPoint,n=Math.abs(e[0].syncPoint[t.key]-t.value),r=e[0].strategy,a=1;a<e.length;a++){var s=Math.abs(e[a].syncPoint[t.key]-t.value);s<n&&(n=s,i=e[a].syncPoint,r=e[a].strategy)}return this.logger_("syncPoint for ["+t.key+": "+t.value+"] chosen with strategy ["+r+"]: [time:"+i.time+", segmentIndex:"+i.segmentIndex+"]"),i}},{key:"saveExpiredSegmentInfo",value:function(e,t){for(var i=t.mediaSequence-e.mediaSequence-1;0<=i;i--){var n=e.segments[i];if(n&&void 0!==n.start){t.syncInfo={mediaSequence:e.mediaSequence+i,time:n.start},this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}}},{key:"setDateTimeMapping",value:function(e){if(!this.datetimeToDisplayTime&&e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0].dateTimeObject.getTime()/1e3;this.datetimeToDisplayTime=-t}}},{key:"reset",value:function(){this.inspectCache_=void 0}},{key:"probeSegmentInfo",value:function(e){var t=e.segment,i=e.playlist,n=void 0;return(n=t.map?this.probeMp4Segment_(e):this.probeTsSegment_(e))&&this.calculateSegmentTimeMapping_(e,n)&&(this.saveDiscontinuitySyncInfo_(e),i.syncInfo||(i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:t.start})),n}},{key:"probeMp4Segment_",value:function(e){var t=e.segment,i=A.a.timescale(t.map.bytes),n=A.a.startTime(i,e.bytes);return null!==e.timestampOffset&&(e.timestampOffset-=n),{start:n,end:n+t.duration}}},{key:"probeTsSegment_",value:function(e){var t=lo(e.bytes,this.inspectCache_),i=void 0,n=void 0,r=void 0;return t?(t.video&&2===t.video.length?(this.inspectCache_=t.video[1].dts,i=t.video[0].dtsTime,n=t.video[1].dtsTime,r=t.video):t.audio&&2===t.audio.length&&(this.inspectCache_=t.audio[1].dts,i=t.audio[0].dtsTime,n=t.audio[1].dtsTime,r=t.audio),{segmentTimestampInfo:r,start:i,end:n,containsVideo:t.video&&2===t.video.length,containsAudio:t.audio&&2===t.audio.length}):null}},{key:"timestampOffsetForTimeline",value:function(e){return void 0===this.timelines[e]?null:this.timelines[e].time}},{key:"mappingForTimeline",value:function(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping}},{key:"calculateSegmentTimeMapping_",value:function(e,t){var i=e.segment,n=this.timelines[e.timeline];if(null!==e.timestampOffset)n={time:e.startOfSegment,mapping:e.startOfSegment-t.start},this.timelines[e.timeline]=n,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+n.time+"] [mapping: "+n.mapping+"]"),i.start=e.startOfSegment,i.end=t.end+n.mapping;else{if(!n)return!1;i.start=t.start+n.mapping,i.end=t.end+n.mapping}return!0}},{key:"saveDiscontinuitySyncInfo_",value:function(e){var t=e.playlist,i=e.segment;if(i.discontinuity)this.discontinuities[i.timeline]={time:i.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(var n=0;n<t.discontinuityStarts.length;n++){var r=t.discontinuityStarts[n],a=t.discontinuitySequence+n+1,s=r-e.mediaIndex,o=Math.abs(s);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>o){var u=void 0;u=s<0?i.start-ka(t,e.mediaIndex,r):i.end+ka(t,e.mediaIndex+1,r),this.discontinuities[a]={time:u,accuracy:o}}}}}]),po);function po(){sa(this,po);var e=ca(this,(po.__proto__||Object.getPrototypeOf(po)).call(this));return e.inspectCache_=void 0,e.timelines=[],e.discontinuities=[],e.datetimeToDisplayTime=null,e.logger_=Bs("SyncController"),e}function fo(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)}function mo(e,t){(t.activePlaylistLoader=e).load()}function go(t){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){bo[e](e,t)});var i=t.mediaTypes,e=t.masterPlaylistLoader,n=t.tech,r=t.hls;["AUDIO","SUBTITLES"].forEach(function(e){i[e].activeGroup=function(a,s){return function(t){var e=s.masterPlaylistLoader,i=s.mediaTypes[a].groups,n=e.media();if(!n)return null;var r=null;return n.attributes[a]&&(r=i[n.attributes[a]]),r=r||i.main,void 0===t?r:null===t?null:r.filter(function(e){return e.id===t.id})[0]||null}}(e,t),i[e].activeTrack=To[e](e,t),i[e].onGroupChanged=function(o,u){return function(){var e=u.segmentLoaders,t=e[o],i=e.main,n=u.mediaTypes[o],r=n.activeTrack(),a=n.activeGroup(r),s=n.activePlaylistLoader;fo(t,n),a&&(a.playlistLoader?(t.resyncLoader(),mo(a.playlistLoader,n)):s&&i.resetEverything())}}(e,t),i[e].onTrackChanged=function(o,u){return function(){var e=u.segmentLoaders,t=e[o],i=e.main,n=u.mediaTypes[o],r=n.activeTrack(),a=n.activeGroup(r),s=n.activePlaylistLoader;fo(t,n),a&&(a.playlistLoader?(s!==a.playlistLoader&&(t.track&&t.track(r),t.resetEverything()),mo(a.playlistLoader,n)):i.resetEverything())}}(e,t)});var a=i.AUDIO.activeGroup(),s=(a.filter(function(e){return e.default})[0]||a[0]).id;function o(){i.AUDIO.onTrackChanged(),n.trigger({type:"usage",name:"hls-audio-change"})}for(var u in i.AUDIO.tracks[s].enabled=!0,i.AUDIO.onTrackChanged(),e.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(e){return i[e].onGroupChanged()})}),n.audioTracks().addEventListener("change",o),n.remoteTextTracks().addEventListener("change",i.SUBTITLES.onTrackChanged),r.on("dispose",function(){n.audioTracks().removeEventListener("change",o),n.remoteTextTracks().removeEventListener("change",i.SUBTITLES.onTrackChanged)}),n.clearTracks("audio"),i.AUDIO.tracks)n.audioTracks().addTrack(i.AUDIO.tracks[u])}var yo=new cs("./decrypter-worker.worker.js",function(e,t){var i,c,g,n,r,u,s,a=this;i=function(e,t,i){return t&&o(e.prototype,t),i&&o(e,i),e},c=null,d.prototype.decrypt=function(e,t,i,n,r,a){var s=this._key[1],o=e^s[0],u=n^s[1],l=i^s[2],c=t^s[3],h=void 0,d=void 0,p=void 0,f=s.length/4-2,m=void 0,g=4,y=this._tables[1],v=y[0],_=y[1],b=y[2],T=y[3],S=y[4];for(m=0;m<f;m++)h=v[o>>>24]^_[u>>16&255]^b[l>>8&255]^T[255&c]^s[g],d=v[u>>>24]^_[l>>16&255]^b[c>>8&255]^T[255&o]^s[g+1],p=v[l>>>24]^_[c>>16&255]^b[o>>8&255]^T[255&u]^s[g+2],c=v[c>>>24]^_[o>>16&255]^b[u>>8&255]^T[255&l]^s[g+3],g+=4,o=h,u=d,l=p;for(m=0;m<4;m++)r[(3&-m)+a]=S[o>>>24]<<24^S[u>>16&255]<<16^S[l>>8&255]<<8^S[255&c]^s[g++],h=o,o=u,u=l,l=c,c=h},g=d,l.prototype.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},l.prototype.off=function(e,t){if(!this.listeners[e])return!1;var i=this.listeners[e].indexOf(t);return this.listeners[e].splice(i,1),-1<i},l.prototype.trigger=function(e,t){var i=this.listeners[e];if(i)if(2===arguments.length)for(var n=i.length,r=0;r<n;++r)i[r].call(this,t);else for(var a=Array.prototype.slice.call(arguments,1),s=i.length,o=0;o<s;++o)i[o].apply(this,a)},l.prototype.dispose=function(){this.listeners={}},l.prototype.pipe=function(t){this.on("data",function(e){t.push(e)})},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)}(p,r=n=l),p.prototype.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},p.prototype.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},u=p,f.prototype.decryptChunk_=function(t,i,n,r){return function(){var e=function(e,t,i){var n=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),r=new g(Array.prototype.slice.call(t)),a=new Uint8Array(e.byteLength),s=new Int32Array(a.buffer),o=void 0,u=void 0,l=void 0,c=void 0,h=void 0,d=void 0,p=void 0,f=void 0,m=void 0;for(o=i[0],u=i[1],l=i[2],c=i[3],m=0;m<n.length;m+=4)h=y(n[m]),d=y(n[m+1]),p=y(n[m+2]),f=y(n[m+3]),r.decrypt(h,d,p,f,s,m),s[m]=y(s[m]^o),s[m+1]=y(s[m+1]^u),s[m+2]=y(s[m+2]^l),s[m+3]=y(s[m+3]^c),o=h,u=d,l=p,c=f;return a}(t,i,n);r.set(e,t.byteOffset)}},i(f,null,[{key:"STEP",get:function(){return 32e3}}]),s=f,new function(a){a.onmessage=function(e){var i=e.data,t=new Uint8Array(i.encrypted.bytes,i.encrypted.byteOffset,i.encrypted.byteLength),n=new Uint32Array(i.key.bytes,i.key.byteOffset,i.key.byteLength/4),r=new Uint32Array(i.iv.bytes,i.iv.byteOffset,i.iv.byteLength/4);new s(t,n,r,function(e,t){a.postMessage(function(i){var n={};return Object.keys(i).forEach(function(e){var t=i[e];ArrayBuffer.isView(t)?n[e]={bytes:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength}:n[e]=t}),n}({source:i.source,decrypted:t}),[t.buffer])})}}(a);function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e){h(this,d),c=c||function(){var e=[[[],[],[],[],[]],[[],[],[],[],[]]],t=e[0],i=e[1],n=t[4],r=i[4],a=void 0,s=void 0,o=void 0,u=[],l=[],c=void 0,h=void 0,d=void 0,p=void 0,f=void 0;for(a=0;a<256;a++)l[(u[a]=a<<1^283*(a>>7))^a]=a;for(s=o=0;!n[s];s^=c||1,o=l[o]||1)for(d=(d=o^o<<1^o<<2^o<<3^o<<4)>>8^255&d^99,f=16843009*u[h=u[c=u[r[n[s]=d]=s]]]^65537*h^257*c^16843008*s,p=257*u[d]^16843008*d,a=0;a<4;a++)t[a][s]=p=p<<24^p>>>8,i[a][d]=f=f<<24^f>>>8;for(a=0;a<5;a++)t[a]=t[a].slice(0),i[a]=i[a].slice(0);return e}(),this._tables=[[c[0][0].slice(),c[0][1].slice(),c[0][2].slice(),c[0][3].slice(),c[0][4].slice()],[c[1][0].slice(),c[1][1].slice(),c[1][2].slice(),c[1][3].slice(),c[1][4].slice()]];var t=void 0,i=void 0,n=void 0,r=void 0,a=void 0,s=this._tables[0][4],o=this._tables[1],u=e.length,l=1;if(4!==u&&6!==u&&8!==u)throw new Error("Invalid aes key size");for(r=e.slice(0),a=[],this._key=[r,a],t=u;t<4*u+28;t++)n=r[t-1],(t%u==0||8===u&&t%u==4)&&(n=s[n>>>24]<<24^s[n>>16&255]<<16^s[n>>8&255]<<8^s[255&n],t%u==0&&(n=n<<8^n>>>24^l<<24,l=l<<1^283*(l>>7))),r[t]=r[t-u]^n;for(i=0;t;i++,t--)n=r[3&i?t:t-4],a[i]=t<=4||i<4?n:o[0][s[n>>>24]]^o[1][s[n>>16&255]]^o[2][s[n>>8&255]]^o[3][s[255&n]]}function l(){h(this,l),this.listeners={}}function p(){h(this,p);var e=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,r.call(this,n));return e.jobs=[],e.delay=1,e.timeout_=null,e}function y(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24}function f(e,t,i,n){h(this,f);var r=f.STEP,a=new Int32Array(e.buffer),s=new Uint8Array(e.byteLength),o=0;for(this.asyncStream_=new u,this.asyncStream_.push(this.decryptChunk_(a.subarray(o,o+r),t,i,s)),o=r;o<a.length;o+=r)i=new Uint32Array([y(a[o-4]),y(a[o-3]),y(a[o-2]),y(a[o-1])]),this.asyncStream_.push(this.decryptChunk_(a.subarray(o,o+r),t,i,s));this.asyncStream_.push(function(){n(null,function(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}(s))})}}),vo={AUDIO:function(u,l){return function(){var e=l.segmentLoaders[u],t=l.mediaTypes[u],i=l.blacklistCurrentPlaylist;fo(e,t);var n=t.activeTrack(),r=t.activeGroup(),a=(r.filter(function(e){return e.default})[0]||r[0]).id,s=t.tracks[a];if(n!==s){for(var o in ta.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),t.tracks)t.tracks[o].enabled=t.tracks[o]===s;t.onTrackChanged()}else i({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(n,r){return function(){var e=r.segmentLoaders[n],t=r.mediaTypes[n];ta.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),fo(e,t);var i=t.activeTrack();i&&(i.mode="disabled"),t.onTrackChanged()}}},_o={AUDIO:function(e,t,i){if(t){var n=i.tech,r=i.requestOptions,a=i.segmentLoaders[e];t.on("loadedmetadata",function(){var e=t.media();a.playlist(e,r),(!n.paused()||e.endList&&"none"!==n.preload())&&a.load()}),t.on("loadedplaylist",function(){a.playlist(t.media(),r),n.paused()||a.load()}),t.on("error",vo[e](e,i))}},SUBTITLES:function(e,t,i){var n=i.tech,r=i.requestOptions,a=i.segmentLoaders[e],s=i.mediaTypes[e];t.on("loadedmetadata",function(){var e=t.media();a.playlist(e,r),a.track(s.activeTrack()),(!n.paused()||e.endList&&"none"!==n.preload())&&a.load()}),t.on("loadedplaylist",function(){a.playlist(t.media(),r),n.paused()||a.load()}),t.on("error",vo[e](e,i))}},bo={AUDIO:function(e,t){var i,n,r=t.hls,a=t.sourceType,s=t.segmentLoaders[e],o=t.requestOptions,u=t.master.mediaGroups,l=t.mediaTypes[e],c=l.groups,h=l.tracks,d=t.masterPlaylistLoader;for(var p in u[e]&&0!==Object.keys(u[e]).length||(u[e]={main:{default:{default:!0}}}),u[e])for(var f in c[p]||(c[p]=[]),u[e][p]){var m=u[e][p][f],g=void 0;if(g=m.resolvedUri?new _a(m.resolvedUri,r,o):m.playlists&&"dash"===a?new Ns(m.playlists[0],r,o,d):null,m=ta.mergeOptions({id:f,playlistLoader:g},m),_o[e](e,m.playlistLoader,t),c[p].push(m),void 0===h[f]){var y=new ta.AudioTrack({id:f,kind:(i=m,n=void 0,n=i.default?"main":"alternative",i.characteristics&&0<=i.characteristics.indexOf("public.accessibility.describes-video")&&(n="main-desc"),n),enabled:!1,language:m.language,default:m.default,label:f});h[f]=y}}s.on("error",vo[e](e,t))},SUBTITLES:function(e,t){var i=t.tech,n=t.hls,r=t.sourceType,a=t.segmentLoaders[e],s=t.requestOptions,o=t.master.mediaGroups,u=t.mediaTypes[e],l=u.groups,c=u.tracks,h=t.masterPlaylistLoader;for(var d in o[e])for(var p in l[d]||(l[d]=[]),o[e][d])if(!o[e][d][p].forced){var f=o[e][d][p],m=void 0;if("hls"===r?m=new _a(f.resolvedUri,n,s):"dash"===r&&(m=new Ns(f.playlists[0],n,s,h)),f=ta.mergeOptions({id:p,playlistLoader:m},f),_o[e](e,f.playlistLoader,t),l[d].push(f),void 0===c[p]){var g=i.addRemoteTextTrack({id:p,kind:"subtitles",default:f.default&&f.autoselect,language:f.language,label:p},!1).track;c[p]=g}}a.on("error",vo[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var i=t.tech,n=t.master.mediaGroups,r=t.mediaTypes[e],a=r.groups,s=r.tracks;for(var o in n[e])for(var u in a[o]||(a[o]=[]),n[e][o]){var l=n[e][o][u];if(l.instreamId.match(/CC\d/)&&(a[o].push(ta.mergeOptions({id:u},l)),void 0===s[u])){var c=i.addRemoteTextTrack({id:l.instreamId,kind:"captions",default:l.default&&l.autoselect,language:l.language,label:u},!1).track;s[u]=c}}}},To={AUDIO:function(i,n){return function(){var e=n.mediaTypes[i].tracks;for(var t in e)if(e[t].enabled)return e[t];return null}},SUBTITLES:function(i,n){return function(){var e=n.mediaTypes[i].tracks;for(var t in e)if("showing"===e[t].mode)return e[t];return null}}},So=void 0,ko=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred"],Eo=(la(wo,ta.EventTarget),oa(wo,[{key:"setupMasterPlaylistLoaderListeners_",value:function(){var n=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var e=n.masterPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;xa(n.masterPlaylistLoader_.master,n.masterPlaylistLoader_.media())?n.requestOptions_.timeout=0:n.requestOptions_.timeout=t,e.endList&&"none"!==n.tech_.preload()&&(n.mainSegmentLoader_.playlist(e,n.requestOptions_),n.mainSegmentLoader_.load()),go({sourceType:n.sourceType_,segmentLoaders:{AUDIO:n.audioSegmentLoader_,SUBTITLES:n.subtitleSegmentLoader_,main:n.mainSegmentLoader_},tech:n.tech_,requestOptions:n.requestOptions_,masterPlaylistLoader:n.masterPlaylistLoader_,hls:n.hls_,master:n.master(),mediaTypes:n.mediaTypes_,blacklistCurrentPlaylist:n.blacklistCurrentPlaylist.bind(n)}),n.triggerPresenceUsage_(n.master(),e);try{n.setupSourceBuffers_()}catch(e){return ta.log.warn("Failed to create SourceBuffers",e),n.mediaSource.endOfStream("decode")}n.setupFirstPlay(),!n.mediaTypes_.AUDIO.activePlaylistLoader||n.mediaTypes_.AUDIO.activePlaylistLoader.media()?n.trigger("selectedinitialmedia"):n.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",function(){n.trigger("selectedinitialmedia")})}),this.masterPlaylistLoader_.on("loadedplaylist",function(){var e=n.masterPlaylistLoader_.media();if(!e){n.excludeUnsupportedVariants_();var t=void 0;return n.enableLowInitialPlaylist&&(t=n.selectInitialPlaylist()),t=t||n.selectPlaylist(),n.initialMedia_=t,void n.masterPlaylistLoader_.media(n.initialMedia_)}if(n.useCueTags_&&n.updateAdCues_(e),n.mainSegmentLoader_.playlist(e,n.requestOptions_),n.updateDuration(),n.tech_.paused()||(n.mainSegmentLoader_.load(),n.audioSegmentLoader_&&n.audioSegmentLoader_.load()),!e.endList){var i=function(){var e=n.seekable();0!==e.length&&n.mediaSource.addSeekableRange_(e.start(0),e.end(0))};n.duration()!==1/0?n.tech_.one("durationchange",function e(){n.duration()===1/0?i():n.tech_.one("durationchange",e)}):i()}}),this.masterPlaylistLoader_.on("error",function(){n.blacklistCurrentPlaylist(n.masterPlaylistLoader_.error)}),this.masterPlaylistLoader_.on("mediachanging",function(){n.mainSegmentLoader_.abort(),n.mainSegmentLoader_.pause()}),this.masterPlaylistLoader_.on("mediachange",function(){var e=n.masterPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;xa(n.masterPlaylistLoader_.master,n.masterPlaylistLoader_.media())?n.requestOptions_.timeout=0:n.requestOptions_.timeout=t,n.mainSegmentLoader_.playlist(e,n.requestOptions_),n.mainSegmentLoader_.load(),n.tech_.trigger({type:"mediachange",bubbles:!0})}),this.masterPlaylistLoader_.on("playlistunchanged",function(){var e=n.masterPlaylistLoader_.media();n.stuckAtPlaylistEnd_(e)&&(n.blacklistCurrentPlaylist({message:"Playlist no longer updating."}),n.tech_.trigger("playliststuck"))}),this.masterPlaylistLoader_.on("renditiondisabled",function(){n.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})}),this.masterPlaylistLoader_.on("renditionenabled",function(){n.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})}},{key:"triggerPresenceUsage_",value:function(e,t){var i=e.mediaGroups||{},n=!0,r=Object.keys(i.AUDIO);for(var a in i.AUDIO)for(var s in i.AUDIO[a])i.AUDIO[a][s].uri||(n=!1);n&&this.tech_.trigger({type:"usage",name:"hls-demuxed"}),Object.keys(i.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"hls-webvtt"}),So.Playlist.isAes(t)&&this.tech_.trigger({type:"usage",name:"hls-aes"}),So.Playlist.isFmp4(t)&&this.tech_.trigger({type:"usage",name:"hls-fmp4"}),r.length&&1<Object.keys(i.AUDIO[r[0]]).length&&this.tech_.trigger({type:"usage",name:"hls-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"})}},{key:"setupSegmentLoaderListeners_",value:function(){var a=this;this.mainSegmentLoader_.on("bandwidthupdate",function(){var e=a.selectPlaylist(),t=a.masterPlaylistLoader_.media(),i=a.tech_.buffered(),n=i.length?i.end(i.length-1)-a.tech_.currentTime():0,r=a.bufferLowWaterLine();(!t.endList||a.duration()<Qs.MAX_BUFFER_LOW_WATER_LINE||e.attributes.BANDWIDTH<t.attributes.BANDWIDTH||r<=n)&&a.masterPlaylistLoader_.media(e),a.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("progress",function(){a.trigger("progress")}),this.mainSegmentLoader_.on("error",function(){a.blacklistCurrentPlaylist(a.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on("syncinfoupdate",function(){a.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){a.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){a.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("ended",function(){a.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(){a.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120)}),this.mainSegmentLoader_.on("reseteverything",function(){a.tech_.trigger("hls-reset")}),this.mainSegmentLoader_.on("segmenttimemapping",function(e){a.tech_.trigger({type:"hls-segment-time-mapping",mapping:e.mapping})}),this.audioSegmentLoader_.on("ended",function(){a.onEndOfStream()})}},{key:"mediaSecondsLoaded_",value:function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}},{key:"load",value:function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}},{key:"smoothQualityChange_",value:function(){var e=this.selectPlaylist();e!==this.masterPlaylistLoader_.media()&&(this.masterPlaylistLoader_.media(e),this.mainSegmentLoader_.resetLoader())}},{key:"fastQualityChange_",value:function(){var e=this,t=this.selectPlaylist();t!==this.masterPlaylistLoader_.media()&&(this.masterPlaylistLoader_.media(t),this.mainSegmentLoader_.resetEverything(function(){ta.browser.IE_VERSION||ta.browser.IS_EDGE?e.tech_.setCurrentTime(e.tech_.currentTime()+.04):e.tech_.setCurrentTime(e.tech_.currentTime())}))}},{key:"play",value:function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.seekTo_(0),this.hasPlayed_()&&this.load();var e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.seekTo_(e.end(e.length-1)):void 0}}},{key:"setupFirstPlay",value:function(){var e=this,t=this.masterPlaylistLoader_.media();if(!t||this.tech_.paused()||this.hasPlayed_())return!1;if(!t.endList){var i=this.seekable();if(!i.length)return!1;if(ta.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",function(){e.trigger("firstplay"),e.seekTo_(i.end(0)),e.hasPlayed_=function(){return!0}}),!1;this.trigger("firstplay"),this.seekTo_(i.end(0))}return this.hasPlayed_=function(){return!0},this.load(),!0}},{key:"handleSourceOpen_",value:function(){try{this.setupSourceBuffers_()}catch(e){return ta.log.warn("Failed to create Source Buffers",e),this.mediaSource.endOfStream("decode")}if(this.tech_.autoplay()){var e=this.tech_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,function(e){})}this.trigger("sourceopen")}},{key:"onEndOfStream",value:function(){var e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader&&(e=!this.mainSegmentLoader_.startingMedia_||this.mainSegmentLoader_.startingMedia_.containsVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_),e){this.logger_("calling mediaSource.endOfStream()");try{this.mediaSource.endOfStream()}catch(e){ta.log.warn("Failed to call media source endOfStream",e)}}}},{key:"stuckAtPlaylistEnd_",value:function(e){if(!this.seekable().length)return!1;var t=this.syncController_.getExpiredTime(e,this.mediaSource.duration);if(null===t)return!1;var i=So.Playlist.playlistEnd(e,t),n=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return i-n<=.1;var a=r.end(r.length-1);return a-n<=.1&&i-a<=.1}},{key:"blacklistCurrentPlaylist",value:function(e,t){var i,n=0<arguments.length&&void 0!==e?e:{},r=t,a=void 0;if(a=n.playlist||this.masterPlaylistLoader_.media(),r=r||n.blacklistDuration||this.blacklistDuration,!a){this.error=n;try{return this.mediaSource.endOfStream("network")}catch(e){return this.trigger("error")}}var s=1===this.masterPlaylistLoader_.master.playlists.filter(Ia).length,o=this.masterPlaylistLoader_.master.playlists;return 1===o.length?(ta.log.warn("Problem encountered with the current HLS playlist. Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(s)):(s&&(ta.log.warn("Removing all playlists from the blacklist because the last rendition is about to be blacklisted."),o.forEach(function(e){e.excludeUntil!==1/0&&delete e.excludeUntil}),this.tech_.trigger("retryplaylist")),a.excludeUntil=Date.now()+1e3*r,this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"}),i=this.selectPlaylist(),ta.log.warn("Problem encountered with the current HLS playlist."+(n.message?" "+n.message:"")+" Switching to another playlist."),this.masterPlaylistLoader_.media(i,s))}},{key:"pauseLoading",value:function(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.pause(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.pause()}},{key:"setCurrentTime",value:function(e){var t=Wa(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0}},{key:"duration",value:function(){return this.masterPlaylistLoader_?this.mediaSource?this.mediaSource.duration:So.Playlist.duration(this.masterPlaylistLoader_.media()):0}},{key:"seekable",value:function(){return this.seekable_}},{key:"onSyncInfoUpdate_",value:function(){var e=void 0,t=void 0;if(this.masterPlaylistLoader_){var i=this.masterPlaylistLoader_.media();if(i){var n=this.syncController_.getExpiredTime(i,this.mediaSource.duration);if(null!==n&&0!==(e=So.Playlist.seekable(i,n)).length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(i=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(n=this.syncController_.getExpiredTime(i,this.mediaSource.duration)))return;if(0===(t=So.Playlist.seekable(i,n)).length)return}var r=void 0,a=void 0;this.seekable_&&this.seekable_.length&&(r=this.seekable_.end(0),a=this.seekable_.start(0)),t?t.start(0)>e.end(0)||e.start(0)>t.end(0)?this.seekable_=e:this.seekable_=ta.createTimeRanges([[t.start(0)>e.start(0)?t.start(0):e.start(0),t.end(0)<e.end(0)?t.end(0):e.end(0)]]):this.seekable_=e,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===r&&this.seekable_.start(0)===a||(this.logger_("seekable updated ["+za(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},{key:"updateDuration",value:function(){function e(){t.logger_("Setting duration from "+t.mediaSource.duration+" => "+n);try{t.mediaSource.duration=n}catch(e){ta.log.warn("Failed to set media source duration",e)}t.tech_.trigger("durationchange"),t.mediaSource.removeEventListener("sourceopen",e)}var t=this,i=this.mediaSource.duration,n=So.Playlist.duration(this.masterPlaylistLoader_.media()),r=this.tech_.buffered();0<r.length&&(n=Math.max(n,r.end(r.length-1))),i!==n&&("open"!==this.mediaSource.readyState?this.mediaSource.addEventListener("sourceopen",e):e())}},{key:"dispose",value:function(){var n=this;this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),["AUDIO","SUBTITLES"].forEach(function(e){var t=n.mediaTypes_[e].groups;for(var i in t)t[i].forEach(function(e){e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose()}},{key:"master",value:function(){return this.masterPlaylistLoader_.master}},{key:"media",value:function(){return this.masterPlaylistLoader_.media()||this.initialMedia_}},{key:"setupSourceBuffers_",value:function(){var e,t=this.masterPlaylistLoader_.media();if(t&&"open"===this.mediaSource.readyState){if((e=vs(this.masterPlaylistLoader_.master,t)).length<1)return this.error="No compatible SourceBuffer configuration for the variant stream:"+t.resolvedUri,this.mediaSource.endOfStream("decode");this.configureLoaderMimeTypes_(e),this.excludeIncompatibleVariants_(t)}}},{key:"configureLoaderMimeTypes_",value:function(e){var t=1<e.length&&-1===e[0].indexOf(",")&&e[0]!==e[1]?new ta.EventTarget:null;this.mainSegmentLoader_.mimeType(e[0],t),e[1]&&this.audioSegmentLoader_.mimeType(e[1],t)}},{key:"excludeUnsupportedVariants_",value:function(){this.master().playlists.forEach(function(e){e.attributes.CODECS&&v.a.MediaSource&&v.a.MediaSource.isTypeSupported&&!v.a.MediaSource.isTypeSupported('video/mp4; codecs="'+function(e){return e.replace(/avc1\.(\d+)\.(\d+)/i,function(e){return ms([e])[0]})}(e.attributes.CODECS)+'"')&&(e.excludeUntil=1/0)})}},{key:"excludeIncompatibleVariants_",value:function(e){var i=2,n=null,t=void 0;e.attributes.CODECS&&(t=gs(e.attributes.CODECS),n=t.videoCodec,i=t.codecCount),this.master().playlists.forEach(function(e){var t={codecCount:2,videoCodec:null};e.attributes.CODECS&&(t=gs(e.attributes.CODECS)),t.codecCount!==i&&(e.excludeUntil=1/0),t.videoCodec!==n&&(e.excludeUntil=1/0)})}},{key:"updateAdCues_",value:function(e){var t=0,i=this.seekable();i.length&&(t=i.start(0)),function(e,t,i){var n=2<arguments.length&&void 0!==i?i:0;if(e.segments)for(var r=n,a=void 0,s=0;s<e.segments.length;s++){var o=e.segments[s];if(a=a||uo(t,r+o.duration/2)){if("cueIn"in o){a.endTime=r,a.adEndTime=r,r+=o.duration,a=null;continue}if(r<a.endTime){r+=o.duration;continue}a.endTime+=o.duration}else if("cueOut"in o&&((a=new v.a.VTTCue(r,r+o.duration,o.cueOut)).adStartTime=r,a.adEndTime=r+parseFloat(o.cueOut),t.addCue(a)),"cueOutCont"in o){var u,l,c=o.cueOutCont.split("/").map(parseFloat),h=ga(c,2);u=h[0],l=h[1],(a=new v.a.VTTCue(r,r+o.duration,"")).adStartTime=r-u,a.adEndTime=a.adStartTime+l,t.addCue(a)}r+=o.duration}}(e,this.cueTagsTrack_,t)}},{key:"goalBufferLength",value:function(){var e=this.tech_.currentTime(),t=Qs.GOAL_BUFFER_LENGTH,i=Qs.GOAL_BUFFER_LENGTH_RATE,n=Math.max(t,Qs.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*i,n)}},{key:"bufferLowWaterLine",value:function(){var e=this.tech_.currentTime(),t=Qs.BUFFER_LOW_WATER_LINE,i=Qs.BUFFER_LOW_WATER_LINE_RATE,n=Math.max(t,Qs.MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*i,n)}}]),wo);function wo(e){sa(this,wo);var t=ca(this,(wo.__proto__||Object.getPrototypeOf(wo)).call(this)),i=e.url,n=e.handleManifestRedirects,r=e.withCredentials,a=e.tech,s=e.bandwidth,o=e.externHls,u=e.useCueTags,l=e.blacklistDuration,c=e.enableLowInitialPlaylist,h=e.sourceType,d=e.seekTo,p=e.cacheEncryptionKeys;if(!i)throw new Error("A non-empty playlist URL is required");So=o,t.withCredentials=r,t.tech_=a,t.hls_=a.hls,t.seekTo_=d,t.sourceType_=h,t.useCueTags_=u,t.blacklistDuration=l,t.enableLowInitialPlaylist=c,t.useCueTags_&&(t.cueTagsTrack_=t.tech_.addTextTrack("metadata","ad-cues"),t.cueTagsTrack_.inBandMetadataTrackDispatchType=""),t.requestOptions_={withCredentials:r,handleManifestRedirects:n,timeout:null},t.mediaTypes_=function(){var t={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){t[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:Fs,activeTrack:Fs,onGroupChanged:Fs,onTrackChanged:Fs}}),t}(),t.mediaSource=new ta.MediaSource,t.mediaSource.addEventListener("sourceopen",t.handleSourceOpen_.bind(t)),t.seekable_=ta.createTimeRanges(),t.hasPlayed_=function(){return!1},t.syncController_=new ho(e),t.segmentMetadataTrack_=a.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,t.decrypter_=new yo,t.inbandTextTracks_={};var f={hls:t.hls_,mediaSource:t.mediaSource,currentTime:t.tech_.currentTime.bind(t.tech_),seekable:function(){return t.seekable()},seeking:function(){return t.tech_.seeking()},duration:function(){return t.mediaSource.duration},hasPlayed:function(){return t.hasPlayed_()},goalBufferLength:function(){return t.goalBufferLength()},bandwidth:s,syncController:t.syncController_,decrypter:t.decrypter_,sourceType:t.sourceType_,inbandTextTracks:t.inbandTextTracks_,cacheEncryptionKeys:p};return t.masterPlaylistLoader_="dash"===t.sourceType_?new Ns(i,t.hls_,t.requestOptions_):new _a(i,t.hls_,t.requestOptions_),t.setupMasterPlaylistLoaderListeners_(),t.mainSegmentLoader_=new io(ta.mergeOptions(f,{segmentMetadataTrack:t.segmentMetadataTrack_,loaderType:"main"}),e),t.audioSegmentLoader_=new io(ta.mergeOptions(f,{loaderType:"audio"}),e),t.subtitleSegmentLoader_=new so(ta.mergeOptions(f,{loaderType:"vtt"}),e),t.setupSegmentLoaderListeners_(),ko.forEach(function(e){t[e+"_"]=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]}.bind(t,e)}),t.logger_=Bs("MPC"),t.masterPlaylistLoader_.load(),t}function Co(e,t,i){sa(this,Co);var n=e.masterPlaylistController_,r=n[(e.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(n);if(t.attributes.RESOLUTION){var a=t.attributes.RESOLUTION;this.width=a.width,this.height=a.height}this.bandwidth=t.attributes.BANDWIDTH,this.id=i,this.enabled=function(r,a,s){return function(e){var t=r.master.playlists[a],i=Pa(t),n=Ia(t);return void 0===e?n:(e?delete t.disabled:t.disabled=!0,e===n||i||(s(),e?r.trigger("renditionenabled"):r.trigger("renditiondisabled")),e)}}(e.playlists,t.uri,r)}var Oo=["seeking","seeked","pause","playing","error"],Ao=(oa(Po,[{key:"monitorCurrentTime_",value:function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&v.a.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=v.a.setTimeout(this.monitorCurrentTime_.bind(this),250)}},{key:"checkCurrentTime_",value:function(){if(this.tech_.seeking()&&this.fixesBadSeeks_())return this.consecutiveUpdates=0,void(this.lastRecordedTime=this.tech_.currentTime());if(!this.tech_.paused()&&!this.tech_.seeking()){var e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+.1>=t.end(t.length-1)))return this.techWaiting_();5<=this.consecutiveUpdates&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}}},{key:"cancelTimer_",value:function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null}},{key:"fixesBadSeeks_",value:function(){if(!this.tech_.seeking())return!1;var e=this.seekable(),t=this.tech_.currentTime(),i=void 0;return this.afterSeekableWindow_(e,t,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(i=e.end(e.length-1)),this.beforeSeekableWindow_(e,t)&&(i=e.start(0)+.1),void 0!==i&&(this.logger_("Trying to seek outside of seekable at time "+t+" with seekable range "+za(e)+". Seeking to "+i+"."),this.seekTo(i),!0)}},{key:"waiting_",value:function(){if(!this.techWaiting_()){var e=this.tech_.currentTime(),t=this.tech_.buffered(),i=Wa(t,e);return i.length&&e+3<=i.end(0)?(this.cancelTimer_(),this.seekTo(e),this.logger_("Stopped at "+e+" while inside a buffered region ["+i.start(0)+" -> "+i.end(0)+"]. Attempting to resume playback by seeking to the current time."),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}}},{key:"techWaiting_",value:function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_())return!0;if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t)){var i=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+i),this.cancelTimer_(),this.seekTo(i),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var n=this.tech_.buffered(),r=Ga(n,t);if(this.videoUnderflow_(r,n,t))return this.cancelTimer_(),this.seekTo(t),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;if(0<r.length){var a=r.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+a+", seeking to "+r.start(0)),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*a,t),!0}return!1}},{key:"afterSeekableWindow_",value:function(e,t,i,n){var r=3<arguments.length&&void 0!==n&&n;if(!e.length)return!1;var a=e.end(e.length-1)+.1;return!i.endList&&r&&(a=e.end(e.length-1)+3*i.targetDuration),a<t}},{key:"beforeSeekableWindow_",value:function(e,t){return!!(e.length&&0<e.start(0)&&t<e.start(0)-.1)}},{key:"videoUnderflow_",value:function(e,t,i){if(0===e.length){var n=this.gapFromVideoUnderflow_(t,i);if(n)return this.logger_("Encountered a gap in video from "+n.start+" to "+n.end+". Seeking to current time "+i),!0}return!1}},{key:"skipTheGap_",value:function(e){var t=this.tech_.buffered(),i=this.tech_.currentTime(),n=Ga(t,i);this.cancelTimer_(),0!==n.length&&i===e&&(this.logger_("skipTheGap_:","currentTime:",i,"scheduled currentTime:",e,"nextRange start:",n.start(0)),this.seekTo(n.start(0)+1/30),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))}},{key:"gapFromVideoUnderflow_",value:function(e,t){for(var i=function(e){if(e.length<2)return ta.createTimeRanges();for(var t=[],i=1;i<e.length;i++){var n=e.end(i-1),r=e.start(i);t.push([n,r])}return ta.createTimeRanges(t)}(e),n=0;n<i.length;n++){var r=i.start(n),a=i.end(n);if(t-r<4&&2<t-r)return{start:r,end:a}}return null}}]),Po);function Po(e){var t=this;sa(this,Po),this.tech_=e.tech,this.seekable=e.seekable,this.seekTo=e.seekTo,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=Bs("PlaybackWatcher"),this.logger_("initialize");function i(){return t.monitorCurrentTime_()}function n(){return t.techWaiting_()}function r(){return t.cancelTimer_()}function a(){return t.fixesBadSeeks_()}this.tech_.on("seekablechanged",a),this.tech_.on("waiting",n),this.tech_.on(Oo,r),this.tech_.on("canplay",i),this.dispose=function(){t.logger_("dispose"),t.tech_.off("seekablechanged",a),t.tech_.off("waiting",n),t.tech_.off(Oo,r),t.tech_.off("canplay",i),t.checkCurrentTimeTimeout_&&v.a.clearTimeout(t.checkCurrentTimeTimeout_),t.cancelTimer_()}}function Io(e){!function t(i,e){var n=0,r=0,a=ta.mergeOptions(Lo,e);i.ready(function(){i.trigger({type:"usage",name:"hls-error-reload-initialized"})});function s(){r&&i.currentTime(r)}function o(e){null!=e&&(r=i.duration()!==1/0&&i.currentTime()||0,i.one("loadedmetadata",s),i.src(e),i.trigger({type:"usage",name:"hls-error-reload"}),i.play())}function u(){if(Date.now()-n<1e3*a.errorInterval)i.trigger({type:"usage",name:"hls-error-reload-canceled"});else{if(a.getSource&&"function"==typeof a.getSource)return n=Date.now(),a.getSource.call(i,o);ta.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}}function l(){i.off("loadedmetadata",s),i.off("error",u),i.off("dispose",l)}i.on("error",u),i.on("dispose",l),i.reloadSourceOnError=function(e){l(),t(i,e)}}(this,e)}var Lo={errorInterval:30,getSource:function(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_)}};ta.use("*",function(t){return{setSource:function(e,t){t(null,e)},setCurrentTime:function(e){return t.vhs&&t.currentSource().src===t.vhs.source_.src&&t.vhs.setCurrentTime(e),e},play:function(){t.vhs&&t.currentSource().src===t.vhs.source_.src&&t.vhs.setCurrentTime(t.tech_.currentTime())}}});var xo={PlaylistLoader:_a,Playlist:es,Decrypter:z,AsyncStream:H,decrypt:G,utils:ns,STANDARD_PLAYLIST_SELECTOR:function(){return function(e,t,i,n,r){var a=e.playlists.map(function(e){var t,i;return t=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,i=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height,{bandwidth:e.attributes.BANDWIDTH||v.a.Number.MAX_VALUE,width:t,height:i,playlist:e}});Xs(a,function(e,t){return e.bandwidth-t.bandwidth});var s=(a=a.filter(function(e){return!es.isIncompatible(e.playlist)})).filter(function(e){return es.isEnabled(e.playlist)});s.length||(s=a.filter(function(e){return!es.isDisabled(e.playlist)}));var o=s.filter(function(e){return e.bandwidth*Qs.BANDWIDTH_VARIANCE<t}),u=o[o.length-1],l=o.filter(function(e){return e.bandwidth===u.bandwidth})[0];if(!1===r){var c=l||s[0]||a[0];return c?c.playlist:null}var h=o.filter(function(e){return e.width&&e.height});Xs(h,function(e,t){return e.width-t.width});var d=h.filter(function(e){return e.width===i&&e.height===n});u=d[d.length-1];var p=d.filter(function(e){return e.bandwidth===u.bandwidth})[0],f=void 0,m=void 0,g=void 0;p||(m=(f=h.filter(function(e){return e.width>i||e.height>n})).filter(function(e){return e.width===f[0].width&&e.height===f[0].height}),u=m[m.length-1],g=m.filter(function(e){return e.bandwidth===u.bandwidth})[0]);var y=g||p||l||s[0]||a[0];return y?y.playlist:null}(this.playlists.master,this.systemBandwidth,parseInt(Ks(this.tech_.el(),"width"),10),parseInt(Ks(this.tech_.el(),"height"),10),this.limitRenditionByPlayerDimensions)},INITIAL_PLAYLIST_SELECTOR:function(){var e=this.playlists.master.playlists.filter(es.isEnabled);return Xs(e,function(e,t){return Ys(e,t)}),e.filter(function(e){return gs(e.attributes.CODECS).videoCodec})[0]||null},comparePlaylistBandwidth:Ys,comparePlaylistResolution:function(e,t){var i=void 0,n=void 0;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),i=i||v.a.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(n=t.attributes.RESOLUTION.width),i===(n=n||v.a.Number.MAX_VALUE)&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:i-n},xhr:Da()};["GOAL_BUFFER_LENGTH","MAX_GOAL_BUFFER_LENGTH","GOAL_BUFFER_LENGTH_RATE","BUFFER_LOW_WATER_LINE","MAX_BUFFER_LOW_WATER_LINE","BUFFER_LOW_WATER_LINE_RATE","BANDWIDTH_VARIANCE"].forEach(function(t){Object.defineProperty(xo,t,{get:function(){return ta.log.warn("using Hls."+t+" is UNSAFE be sure you know what you are doing"),Qs[t]},set:function(e){ta.log.warn("using Hls."+t+" is UNSAFE be sure you know what you are doing"),"number"!=typeof e||e<0?ta.log.warn("value of Hls."+t+" must be greater than or equal to 0"):Qs[t]=e}})});function Do(e){return/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i.test(e)?"hls":/^application\/dash\+xml/i.test(e)?"dash":null}function Ro(e,t){for(var i=t.media(),n=-1,r=0;r<e.length;r++)if(e[r].id===i.uri){n=r;break}e.selectedIndex_=n,e.trigger({selectedIndex:n,type:"change"})}var Uo="videojs-vhs";xo.canPlaySource=function(){return ta.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};function Mo(e){if("dash"===e.options_.sourceType){var t=ta.players[e.tech_.options_.playerId];if(t.eme){var i=function(e,t,i){if(!e)return e;var n={};for(var r in e)n[r]={audioContentType:'audio/mp4; codecs="'+i.attributes.CODECS+'"',videoContentType:'video/mp4; codecs="'+t.attributes.CODECS+'"'},t.contentProtection&&t.contentProtection[r]&&t.contentProtection[r].pssh&&(n[r].pssh=t.contentProtection[r].pssh),"string"==typeof e[r]&&(n[r].url=e[r]);return ta.mergeOptions(e,n)}(e.source_.keySystems,e.playlists.media(),e.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader.media());i&&(t.currentSource().keySystems=i,t.eme.initializeMediaKeys&&t.eme.initializeMediaKeys())}}}function No(){if(!window.localStorage)return null;var e=window.localStorage.getItem(Uo);if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}xo.supportsNativeHls=function(){var t=h.a.createElement("video");if(!ta.getTech("Html5").isSupported())return!1;return["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(e){return/maybe|probably/i.test(t.canPlayType(e))})}(),xo.supportsNativeDash=!!ta.getTech("Html5").isSupported()&&/maybe|probably/i.test(h.a.createElement("video").canPlayType("application/dash+xml")),xo.supportsTypeNatively=function(e){return"hls"===e?xo.supportsNativeHls:"dash"===e&&xo.supportsNativeDash},xo.isSupported=function(){return ta.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var jo=ta.getComponent("Component"),Bo=(la(Fo,jo),oa(Fo,[{key:"setOptions_",value:function(){var t=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=this.options_.handleManifestRedirects||!1,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var e=No();e&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),e&&e.throughput&&(this.options_.throughput=e.throughput,this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=Qs.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Qs.INITIAL_BANDWIDTH,["withCredentials","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys"].forEach(function(e){void 0!==t.source_[e]&&(t.options_[e]=t.source_[e])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions}},{key:"src",value:function(e,t){var i=this;e&&(this.setOptions_(),this.options_.url=this.source_.src,this.options_.tech=this.tech_,this.options_.externHls=xo,this.options_.sourceType=Do(t),this.options_.seekTo=function(e){i.tech_.setCurrentTime(e),i.setCurrentTime(e)},this.masterPlaylistController_=new Eo(this.options_),this.playbackWatcher_=new Ao(ta.mergeOptions(this.options_,{seekable:function(){return i.seekable()},media:function(){return i.masterPlaylistController_.media()}})),this.masterPlaylistController_.on("error",function(){ta.players[i.tech_.options_.playerId].error(i.masterPlaylistController_.error)}),this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):xo.STANDARD_PLAYLIST_SELECTOR.bind(this),this.masterPlaylistController_.selectInitialPlaylist=xo.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(e){this.masterPlaylistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=e,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e=1/(this.bandwidth||1),t=void 0;return t=0<this.throughput?1/this.throughput:0,Math.floor(1/(e+t))},set:function(){ta.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return i.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return i.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return i.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return i.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return i.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return i.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return i.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return i.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},buffered:{get:function(){return $a(i.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return i.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return i.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return i.tech_.name_},enumerable:!0},duration:{get:function(){return i.tech_.duration()},enumerable:!0},master:{get:function(){return i.playlists.master},enumerable:!0},playerDimensions:{get:function(){return i.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return $a(i.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return i.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",function(){i.options_.useBandwidthFromLocalStorage&&function(e){if(window.localStorage){var t=No();t=t?ta.mergeOptions(t,e):e;try{window.localStorage.setItem(Uo,JSON.stringify(t))}catch(e){return}}}({bandwidth:i.bandwidth,throughput:Math.round(i.throughput)})}),this.masterPlaylistController_.on("selectedinitialmedia",function(){!function(i){var e=i.playlists;i.representations=function(){return e.master.playlists.filter(function(e){return!Pa(e)}).map(function(e,t){return new Co(i,e,e.uri)})}}(i),Mo(i)}),this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")}),this.tech_.ready(function(){return i.setupQualityLevels_()}),this.tech_.el()&&this.tech_.src(ta.URL.createObjectURL(this.masterPlaylistController_.mediaSource)))}},{key:"setupQualityLevels_",value:function(){var e=this,t=ta.players[this.tech_.options_.playerId];t&&t.qualityLevels&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",function(){!function(t,e){e.representations().forEach(function(e){t.addQualityLevel(e)}),Ro(t,e.playlists)}(e.qualityLevels_,e)}),this.playlists.on("mediachange",function(){Ro(e.qualityLevels_,e.playlists)}))}},{key:"play",value:function(){this.masterPlaylistController_.play()}},{key:"setCurrentTime",value:function(e){this.masterPlaylistController_.setCurrentTime(e)}},{key:"duration",value:function(){return this.masterPlaylistController_.duration()}},{key:"seekable",value:function(){return this.masterPlaylistController_.seekable()}},{key:"dispose",value:function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.hls&&delete this.tech_.hls,function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0}(Fo.prototype.__proto__||Object.getPrototypeOf(Fo.prototype),"dispose",this).call(this)}},{key:"convertToProgramTime",value:function(e,t){return Va({playlist:this.masterPlaylistController_.media(),time:e,callback:t})}},{key:"seekToProgramTime",value:function(e,t,i,n){var r=!(2<arguments.length&&void 0!==i)||i,a=3<arguments.length&&void 0!==n?n:2;return Ha({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:a,pauseAfterSeek:r,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})}}]),Fo);function Fo(e,t,i){sa(this,Fo);var n=ca(this,(Fo.__proto__||Object.getPrototypeOf(Fo)).call(this,t,i.hls));if(t.options_&&t.options_.playerId){var r=ta(t.options_.playerId);r.hasOwnProperty("hls")||Object.defineProperty(r,"hls",{get:function(){return ta.log.warn("player.hls is deprecated. Use player.tech().hls instead."),t.trigger({type:"usage",name:"hls-player-access"}),n},configurable:!0}),r.vhs=n,(r.dash=n).player_=r}if(n.tech_=t,n.source_=e,n.stats={},n.setOptions_(),n.options_.overrideNative&&t.overrideNativeAudioTracks&&t.overrideNativeVideoTracks)t.overrideNativeAudioTracks(!0),t.overrideNativeVideoTracks(!0);else if(n.options_.overrideNative&&(t.featuresNativeVideoTracks||t.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return n.on(h.a,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){var t=h.a.fullscreenElement||h.a.webkitFullscreenElement||h.a.mozFullScreenElement||h.a.msFullscreenElement;t&&t.contains(n.tech_.el())&&n.masterPlaylistController_.smoothQualityChange_()}),n.on(n.tech_,"seeking",function(){0===this.tech_.currentTime()&&this.tech_.player_.loop()&&this.setCurrentTime(0)}),n.on(n.tech_,"error",function(){this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()}),n.on(n.tech_,"play",n.play),n}var Vo={name:"videojs-http-streaming",VERSION:"1.10.6",canHandleSource:function(e,t){var i=ta.mergeOptions(ta.options,1<arguments.length&&void 0!==t?t:{});return Vo.canPlayType(e.type,i)},handleSource:function(e,t,i){var n=ta.mergeOptions(ta.options,2<arguments.length&&void 0!==i?i:{});return t.hls=new Bo(e,t,n),t.hls.xhr=Da(),t.hls.src(e.src,e.type),t.hls},canPlayType:function(e,t){var i=ta.mergeOptions(ta.options,1<arguments.length&&void 0!==t?t:{}).hls.overrideNative,n=Do(e);return n&&(!xo.supportsTypeNatively(n)||i)?"maybe":""}};void 0!==ta.MediaSource&&void 0!==ta.URL||(ta.MediaSource=Is,ta.URL=Ls),Is.supportsNativeMediaSources()&&ta.getTech("Html5").registerSourceHandler(Vo,0),ta.HlsHandler=Bo,ta.HlsSourceHandler=Vo,ta.Hls=xo,ta.use||ta.registerComponent("Hls",xo),ta.options.hls=ta.options.hls||{},ta.registerPlugin?ta.registerPlugin("reloadSourceOnError",Io):ta.plugin("reloadSourceOnError",Io);t.default=ta},function(e,t,i){"use strict";var f,m,n,r,a,s,g=i(27).toUnsigned,y=i(27).toHexString;f=function(e,t){var i,n,r,a,s,o=[];if(!t.length)return null;for(i=0;i<e.byteLength;)n=g(e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3]),r=m(e.subarray(i+4,i+8)),a=1<n?i+n:e.byteLength,r===t[0]&&(1===t.length?o.push(e.subarray(i+8,a)):(s=f(e.subarray(i+8,a),t.slice(1))).length&&(o=o.concat(s))),i=a;return o},m=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])},n=function(e){return f(e,["moov","trak"]).reduce(function(e,t){var i,n,r,a,s;return(i=f(t,["tkhd"])[0])?(n=i[0],a=g(i[r=0===n?12:20]<<24|i[r+1]<<16|i[r+2]<<8|i[r+3]),(s=f(t,["mdia","mdhd"])[0])?(r=0===(n=s[0])?12:20,e[a]=g(s[r]<<24|s[r+1]<<16|s[r+2]<<8|s[r+3]),e):null):null},{})},r=function(r,e){var t,i,n;return t=f(e,["moof","traf"]),i=[].concat.apply([],t.map(function(n){return f(n,["tfhd"]).map(function(e){var t,i;return t=g(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),i=r[t]||9e4,(f(n,["tfdt"]).map(function(e){var t,i;return t=e[0],i=g(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),1===t&&(i*=Math.pow(2,32),i+=g(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),i})[0]||1/0)/i})})),n=Math.min.apply(null,i),isFinite(n)?n:0},a=function(e){var t=f(e,["moov","trak"]),o=[];return t.forEach(function(e){var t=f(e,["mdia","hdlr"]),s=f(e,["tkhd"]);t.forEach(function(e,t){var i,n,r=m(e.subarray(8,12)),a=s[t];"vide"===r&&(n=0===(i=new DataView(a.buffer,a.byteOffset,a.byteLength)).getUint8(0)?i.getUint32(12):i.getUint32(20),o.push(n))})}),o},s=function(e){var t=f(e,["moov","trak"]),p=[];return t.forEach(function(e){var t,i,n={},r=f(e,["tkhd"])[0];r&&(i=(t=new DataView(r.buffer,r.byteOffset,r.byteLength)).getUint8(0),n.id=0===i?t.getUint32(12):t.getUint32(20));var a=f(e,["mdia","hdlr"])[0];if(a){var s=m(a.subarray(8,12));n.type="vide"===s?"video":"soun"===s?"audio":s}var o=f(e,["mdia","minf","stbl","stsd"])[0];if(o){var u=o.subarray(8);n.codec=m(u.subarray(4,8));var l,c=f(u,[n.codec])[0];c&&(/^[a-z]vc[1-9]$/i.test(n.codec)?(l=c.subarray(78),"avcC"===m(l.subarray(4,8))&&11<l.length?(n.codec+=".",n.codec+=y(l[9]),n.codec+=y(l[10]),n.codec+=y(l[11])):n.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(n.codec)&&(l=c.subarray(28),"esds"===m(l.subarray(4,8))&&20<l.length&&0!==l[19]?(n.codec+="."+y(l[19]),n.codec+="."+y(l[20]>>>2&63).replace(/^0/,"")):n.codec="mp4a.40.2"))}var h=f(e,["mdia","mdhd"])[0];if(h&&r){var d=0===i?12:20;n.timescale=g(h[d]<<24|h[1+d]<<16|h[2+d]<<8|h[3+d])}p.push(n)}),p},e.exports={findBox:f,parseType:m,timescale:n,startTime:r,videoTrackIds:a,tracks:s}},function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"==typeof window&&(i=window)}e.exports=i},function(e,t){OO=OO||{}},function(e,Q,t){(function(X,Y){var J;!function(){function i(){}var e="object"==typeof self&&self.self===self&&self||"object"==typeof X&&X.global===X&&X||this||{},t=e._,n=Array.prototype,s=Object.prototype,h="undefined"!=typeof Symbol?Symbol.prototype:null,r=n.push,u=n.slice,d=s.toString,a=s.hasOwnProperty,o=Array.isArray,l=Object.keys,c=Object.create,p=function(e){return e instanceof p?e:this instanceof p?void(this._wrapped=e):new p(e)};Q.nodeType?e._=p:(!Y.nodeType&&Y.exports&&(Q=Y.exports=p),Q._=p),p.VERSION="1.9.1";function f(r,a,e){if(void 0===a)return r;switch(null==e?3:e){case 1:return function(e){return r.call(a,e)};case 3:return function(e,t,i){return r.call(a,e,t,i)};case 4:return function(e,t,i,n){return r.call(a,e,t,i,n)}}return function(){return r.apply(a,arguments)}}function m(e,t,i){return p.iteratee!==g?p.iteratee(e,t):null==e?p.identity:p.isFunction(e)?f(e,t,i):p.isObject(e)&&!p.isArray(e)?p.matcher(e):p.property(e)}var g;p.iteratee=g=function(e,t){return m(e,t,1/0)};function y(r,a){return a=null==a?r.length-1:+a,function(){for(var e=Math.max(arguments.length-a,0),t=Array(e),i=0;i<e;i++)t[i]=arguments[i+a];switch(a){case 0:return r.call(this,t);case 1:return r.call(this,arguments[0],t);case 2:return r.call(this,arguments[0],arguments[1],t)}var n=Array(a+1);for(i=0;i<a;i++)n[i]=arguments[i];return n[a]=t,r.apply(this,n)}}function v(e){if(!p.isObject(e))return{};if(c)return c(e);i.prototype=e;var t=new i;return i.prototype=null,t}function _(t){return function(e){return null==e?void 0:e[t]}}function b(e,t){return null!=e&&a.call(e,t)}function T(e,t){for(var i=t.length,n=0;n<i;n++){if(null==e)return;e=e[t[n]]}return i?e:void 0}function S(e){var t=E(e);return"number"==typeof t&&0<=t&&t<=k}var k=Math.pow(2,53)-1,E=_("length");p.each=p.forEach=function(e,t,i){var n,r;if(t=f(t,i),S(e))for(n=0,r=e.length;n<r;n++)t(e[n],n,e);else{var a=p.keys(e);for(n=0,r=a.length;n<r;n++)t(e[a[n]],a[n],e)}return e},p.map=p.collect=function(e,t,i){t=m(t,i);for(var n=!S(e)&&p.keys(e),r=(n||e).length,a=Array(r),s=0;s<r;s++){var o=n?n[s]:s;a[s]=t(e[o],o,e)}return a};function w(u){return function(e,t,i,n){var r=3<=arguments.length;return function(e,t,i,n){var r=!S(e)&&p.keys(e),a=(r||e).length,s=0<u?0:a-1;for(n||(i=e[r?r[s]:s],s+=u);0<=s&&s<a;s+=u){var o=r?r[s]:s;i=t(i,e[o],o,e)}return i}(e,f(t,n,4),i,r)}}p.reduce=p.foldl=p.inject=w(1),p.reduceRight=p.foldr=w(-1),p.find=p.detect=function(e,t,i){var n=(S(e)?p.findIndex:p.findKey)(e,t,i);if(void 0!==n&&-1!==n)return e[n]},p.filter=p.select=function(e,n,t){var r=[];return n=m(n,t),p.each(e,function(e,t,i){n(e,t,i)&&r.push(e)}),r},p.reject=function(e,t,i){return p.filter(e,p.negate(m(t)),i)},p.every=p.all=function(e,t,i){t=m(t,i);for(var n=!S(e)&&p.keys(e),r=(n||e).length,a=0;a<r;a++){var s=n?n[a]:a;if(!t(e[s],s,e))return!1}return!0},p.some=p.any=function(e,t,i){t=m(t,i);for(var n=!S(e)&&p.keys(e),r=(n||e).length,a=0;a<r;a++){var s=n?n[a]:a;if(t(e[s],s,e))return!0}return!1},p.contains=p.includes=p.include=function(e,t,i,n){return S(e)||(e=p.values(e)),"number"==typeof i&&!n||(i=0),0<=p.indexOf(e,t,i)},p.invoke=y(function(e,i,n){var r,a;return p.isFunction(i)?a=i:p.isArray(i)&&(r=i.slice(0,-1),i=i[i.length-1]),p.map(e,function(e){var t=a;if(!t){if(r&&r.length&&(e=T(e,r)),null==e)return;t=e[i]}return null==t?t:t.apply(e,n)})}),p.pluck=function(e,t){return p.map(e,p.property(t))},p.where=function(e,t){return p.filter(e,p.matcher(t))},p.findWhere=function(e,t){return p.find(e,p.matcher(t))},p.max=function(e,n,t){var i,r,a=-1/0,s=-1/0;if(null==n||"number"==typeof n&&"object"!=typeof e[0]&&null!=e)for(var o=0,u=(e=S(e)?e:p.values(e)).length;o<u;o++)null!=(i=e[o])&&a<i&&(a=i);else n=m(n,t),p.each(e,function(e,t,i){r=n(e,t,i),(s<r||r===-1/0&&a===-1/0)&&(a=e,s=r)});return a},p.min=function(e,n,t){var i,r,a=1/0,s=1/0;if(null==n||"number"==typeof n&&"object"!=typeof e[0]&&null!=e)for(var o=0,u=(e=S(e)?e:p.values(e)).length;o<u;o++)null!=(i=e[o])&&i<a&&(a=i);else n=m(n,t),p.each(e,function(e,t,i){((r=n(e,t,i))<s||r===1/0&&a===1/0)&&(a=e,s=r)});return a},p.shuffle=function(e){return p.sample(e,1/0)},p.sample=function(e,t,i){if(null==t||i)return S(e)||(e=p.values(e)),e[p.random(e.length-1)];var n=S(e)?p.clone(e):p.values(e),r=E(n);t=Math.max(Math.min(t,r),0);for(var a=r-1,s=0;s<t;s++){var o=p.random(s,a),u=n[s];n[s]=n[o],n[o]=u}return n.slice(0,t)},p.sortBy=function(e,n,t){var r=0;return n=m(n,t),p.pluck(p.map(e,function(e,t,i){return{value:e,index:r++,criteria:n(e,t,i)}}).sort(function(e,t){var i=e.criteria,n=t.criteria;if(i!==n){if(n<i||void 0===i)return 1;if(i<n||void 0===n)return-1}return e.index-t.index}),"value")};function C(s,t){return function(n,r,e){var a=t?[[],[]]:{};return r=m(r,e),p.each(n,function(e,t){var i=r(e,t,n);s(a,e,i)}),a}}p.groupBy=C(function(e,t,i){b(e,i)?e[i].push(t):e[i]=[t]}),p.indexBy=C(function(e,t,i){e[i]=t}),p.countBy=C(function(e,t,i){b(e,i)?e[i]++:e[i]=1});var O=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;p.toArray=function(e){return e?p.isArray(e)?u.call(e):p.isString(e)?e.match(O):S(e)?p.map(e,p.identity):p.values(e):[]},p.size=function(e){return null==e?0:S(e)?e.length:p.keys(e).length},p.partition=C(function(e,t,i){e[i?0:1].push(t)},!0),p.first=p.head=p.take=function(e,t,i){return null==e||e.length<1?null==t?void 0:[]:null==t||i?e[0]:p.initial(e,e.length-t)},p.initial=function(e,t,i){return u.call(e,0,Math.max(0,e.length-(null==t||i?1:t)))},p.last=function(e,t,i){return null==e||e.length<1?null==t?void 0:[]:null==t||i?e[e.length-1]:p.rest(e,Math.max(0,e.length-t))},p.rest=p.tail=p.drop=function(e,t,i){return u.call(e,null==t||i?1:t)},p.compact=function(e){return p.filter(e,Boolean)};var A=function(e,t,i,n){for(var r=(n=n||[]).length,a=0,s=E(e);a<s;a++){var o=e[a];if(S(o)&&(p.isArray(o)||p.isArguments(o)))if(t)for(var u=0,l=o.length;u<l;)n[r++]=o[u++];else A(o,t,i,n),r=n.length;else i||(n[r++]=o)}return n};p.flatten=function(e,t){return A(e,t,!1)},p.without=y(function(e,t){return p.difference(e,t)}),p.uniq=p.unique=function(e,t,i,n){p.isBoolean(t)||(n=i,i=t,t=!1),null!=i&&(i=m(i,n));for(var r=[],a=[],s=0,o=E(e);s<o;s++){var u=e[s],l=i?i(u,s,e):u;t&&!i?(s&&a===l||r.push(u),a=l):i?p.contains(a,l)||(a.push(l),r.push(u)):p.contains(r,u)||r.push(u)}return r},p.union=y(function(e){return p.uniq(A(e,!0,!0))}),p.intersection=function(e){for(var t=[],i=arguments.length,n=0,r=E(e);n<r;n++){var a=e[n];if(!p.contains(t,a)){var s;for(s=1;s<i&&p.contains(arguments[s],a);s++);s===i&&t.push(a)}}return t},p.difference=y(function(e,t){return t=A(t,!0,!0),p.filter(e,function(e){return!p.contains(t,e)})}),p.unzip=function(e){for(var t=e&&p.max(e,E).length||0,i=Array(t),n=0;n<t;n++)i[n]=p.pluck(e,n);return i},p.zip=y(p.unzip),p.object=function(e,t){for(var i={},n=0,r=E(e);n<r;n++)t?i[e[n]]=t[n]:i[e[n][0]]=e[n][1];return i};function P(a){return function(e,t,i){t=m(t,i);for(var n=E(e),r=0<a?0:n-1;0<=r&&r<n;r+=a)if(t(e[r],r,e))return r;return-1}}p.findIndex=P(1),p.findLastIndex=P(-1),p.sortedIndex=function(e,t,i,n){for(var r=(i=m(i,n,1))(t),a=0,s=E(e);a<s;){var o=Math.floor((a+s)/2);i(e[o])<r?a=o+1:s=o}return a};function I(a,s,o){return function(e,t,i){var n=0,r=E(e);if("number"==typeof i)0<a?n=0<=i?i:Math.max(i+r,n):r=0<=i?Math.min(i+1,r):i+r+1;else if(o&&i&&r)return e[i=o(e,t)]===t?i:-1;if(t!=t)return 0<=(i=s(u.call(e,n,r),p.isNaN))?i+n:-1;for(i=0<a?n:r-1;0<=i&&i<r;i+=a)if(e[i]===t)return i;return-1}}p.indexOf=I(1,p.findIndex,p.sortedIndex),p.lastIndexOf=I(-1,p.findLastIndex),p.range=function(e,t,i){null==t&&(t=e||0,e=0),i=i||(t<e?-1:1);for(var n=Math.max(Math.ceil((t-e)/i),0),r=Array(n),a=0;a<n;a++,e+=i)r[a]=e;return r},p.chunk=function(e,t){if(null==t||t<1)return[];for(var i=[],n=0,r=e.length;n<r;)i.push(u.call(e,n,n+=t));return i};function L(e,t,i,n,r){if(!(n instanceof t))return e.apply(i,r);var a=v(e.prototype),s=e.apply(a,r);return p.isObject(s)?s:a}p.bind=y(function(t,i,n){if(!p.isFunction(t))throw new TypeError("Bind must be called on a function");var r=y(function(e){return L(t,r,i,this,n.concat(e))});return r}),p.partial=y(function(r,a){var s=p.partial.placeholder,o=function(){for(var e=0,t=a.length,i=Array(t),n=0;n<t;n++)i[n]=a[n]===s?arguments[e++]:a[n];for(;e<arguments.length;)i.push(arguments[e++]);return L(r,o,this,this,i)};return o}),(p.partial.placeholder=p).bindAll=y(function(e,t){var i=(t=A(t,!1,!1)).length;if(i<1)throw new Error("bindAll must be passed function names");for(;i--;){var n=t[i];e[n]=p.bind(e[n],e)}}),p.memoize=function(n,r){var a=function(e){var t=a.cache,i=""+(r?r.apply(this,arguments):e);return b(t,i)||(t[i]=n.apply(this,arguments)),t[i]};return a.cache={},a},p.delay=y(function(e,t,i){return setTimeout(function(){return e.apply(null,i)},t)}),p.defer=p.partial(p.delay,p,1),p.throttle=function(i,n,r){var a,s,o,u,l=0;r=r||{};function c(){l=!1===r.leading?0:p.now(),a=null,u=i.apply(s,o),a||(s=o=null)}function e(){var e=p.now();l||!1!==r.leading||(l=e);var t=n-(e-l);return s=this,o=arguments,t<=0||n<t?(a&&(clearTimeout(a),a=null),l=e,u=i.apply(s,o),a||(s=o=null)):a||!1===r.trailing||(a=setTimeout(c,t)),u}return e.cancel=function(){clearTimeout(a),l=0,a=s=o=null},e},p.debounce=function(i,n,r){function a(e,t){s=null,t&&(o=i.apply(e,t))}var s,o,e=y(function(e){if(s&&clearTimeout(s),r){var t=!s;s=setTimeout(a,n),t&&(o=i.apply(this,e))}else s=p.delay(a,n,this,e);return o});return e.cancel=function(){clearTimeout(s),s=null},e},p.wrap=function(e,t){return p.partial(t,e)},p.negate=function(e){return function(){return!e.apply(this,arguments)}},p.compose=function(){var i=arguments,n=i.length-1;return function(){for(var e=n,t=i[n].apply(this,arguments);e--;)t=i[e].call(this,t);return t}},p.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},p.before=function(e,t){var i;return function(){return 0<--e&&(i=t.apply(this,arguments)),e<=1&&(t=null),i}},p.once=p.partial(p.before,2),p.restArguments=y;function x(e,t){var i=R.length,n=e.constructor,r=p.isFunction(n)&&n.prototype||s,a="constructor";for(b(e,a)&&!p.contains(t,a)&&t.push(a);i--;)(a=R[i])in e&&e[a]!==r[a]&&!p.contains(t,a)&&t.push(a)}var D=!{toString:null}.propertyIsEnumerable("toString"),R=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];p.keys=function(e){if(!p.isObject(e))return[];if(l)return l(e);var t=[];for(var i in e)b(e,i)&&t.push(i);return D&&x(e,t),t},p.allKeys=function(e){if(!p.isObject(e))return[];var t=[];for(var i in e)t.push(i);return D&&x(e,t),t},p.values=function(e){for(var t=p.keys(e),i=t.length,n=Array(i),r=0;r<i;r++)n[r]=e[t[r]];return n},p.mapObject=function(e,t,i){t=m(t,i);for(var n=p.keys(e),r=n.length,a={},s=0;s<r;s++){var o=n[s];a[o]=t(e[o],o,e)}return a},p.pairs=function(e){for(var t=p.keys(e),i=t.length,n=Array(i),r=0;r<i;r++)n[r]=[t[r],e[t[r]]];return n},p.invert=function(e){for(var t={},i=p.keys(e),n=0,r=i.length;n<r;n++)t[e[i[n]]]=i[n];return t},p.functions=p.methods=function(e){var t=[];for(var i in e)p.isFunction(e[i])&&t.push(i);return t.sort()};function U(u,l){return function(e){var t=arguments.length;if(l&&(e=Object(e)),t<2||null==e)return e;for(var i=1;i<t;i++)for(var n=arguments[i],r=u(n),a=r.length,s=0;s<a;s++){var o=r[s];l&&void 0!==e[o]||(e[o]=n[o])}return e}}p.extend=U(p.allKeys),p.extendOwn=p.assign=U(p.keys),p.findKey=function(e,t,i){t=m(t,i);for(var n,r=p.keys(e),a=0,s=r.length;a<s;a++)if(t(e[n=r[a]],n,e))return n};function M(e,t,i){return t in i}var N,j;p.pick=y(function(e,t){var i={},n=t[0];if(null==e)return i;p.isFunction(n)?(1<t.length&&(n=f(n,t[1])),t=p.allKeys(e)):(n=M,t=A(t,!1,!1),e=Object(e));for(var r=0,a=t.length;r<a;r++){var s=t[r],o=e[s];n(o,s,e)&&(i[s]=o)}return i}),p.omit=y(function(e,i){var t,n=i[0];return p.isFunction(n)?(n=p.negate(n),1<i.length&&(t=i[1])):(i=p.map(A(i,!1,!1),String),n=function(e,t){return!p.contains(i,t)}),p.pick(e,n,t)}),p.defaults=U(p.allKeys,!0),p.create=function(e,t){var i=v(e);return t&&p.extendOwn(i,t),i},p.clone=function(e){return p.isObject(e)?p.isArray(e)?e.slice():p.extend({},e):e},p.tap=function(e,t){return t(e),e},p.isMatch=function(e,t){var i=p.keys(t),n=i.length;if(null==e)return!n;for(var r=Object(e),a=0;a<n;a++){var s=i[a];if(t[s]!==r[s]||!(s in r))return!1}return!0},N=function(e,t,i,n){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var r=typeof e;return("function"==r||"object"==r||"object"==typeof t)&&j(e,t,i,n)},j=function(e,t,i,n){e instanceof p&&(e=e._wrapped),t instanceof p&&(t=t._wrapped);var r=d.call(e);if(r!==d.call(t))return!1;switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return h.valueOf.call(e)===h.valueOf.call(t)}var a="[object Array]"===r;if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var s=e.constructor,o=t.constructor;if(s!==o&&!(p.isFunction(s)&&s instanceof s&&p.isFunction(o)&&o instanceof o)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];for(var u=(i=i||[]).length;u--;)if(i[u]===e)return n[u]===t;if(i.push(e),n.push(t),a){if((u=e.length)!==t.length)return!1;for(;u--;)if(!N(e[u],t[u],i,n))return!1}else{var l,c=p.keys(e);if(u=c.length,p.keys(t).length!==u)return!1;for(;u--;)if(l=c[u],!b(t,l)||!N(e[l],t[l],i,n))return!1}return i.pop(),n.pop(),!0},p.isEqual=function(e,t){return N(e,t)},p.isEmpty=function(e){return null==e||(S(e)&&(p.isArray(e)||p.isString(e)||p.isArguments(e))?0===e.length:0===p.keys(e).length)},p.isElement=function(e){return!(!e||1!==e.nodeType)},p.isArray=o||function(e){return"[object Array]"===d.call(e)},p.isObject=function(e){var t=typeof e;return"function"==t||"object"==t&&!!e},p.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){p["is"+t]=function(e){return d.call(e)==="[object "+t+"]"}}),p.isArguments(arguments)||(p.isArguments=function(e){return b(e,"callee")});var B=e.document&&e.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof B&&(p.isFunction=function(e){return"function"==typeof e||!1}),p.isFinite=function(e){return!p.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},p.isNaN=function(e){return p.isNumber(e)&&isNaN(e)},p.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===d.call(e)},p.isNull=function(e){return null===e},p.isUndefined=function(e){return void 0===e},p.has=function(e,t){if(!p.isArray(t))return b(e,t);for(var i=t.length,n=0;n<i;n++){var r=t[n];if(null==e||!a.call(e,r))return!1;e=e[r]}return!!i},p.noConflict=function(){return e._=t,this},p.identity=function(e){return e},p.constant=function(e){return function(){return e}},p.noop=function(){},p.property=function(t){return p.isArray(t)?function(e){return T(e,t)}:_(t)},p.propertyOf=function(t){return null==t?function(){}:function(e){return p.isArray(e)?T(t,e):t[e]}},p.matcher=p.matches=function(t){return t=p.extendOwn({},t),function(e){return p.isMatch(e,t)}},p.times=function(e,t,i){var n=Array(Math.max(0,e));t=f(t,i,1);for(var r=0;r<e;r++)n[r]=t(r);return n},p.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},p.now=Date.now||function(){return(new Date).getTime()};function F(t){function i(e){return t[e]}var e="(?:"+p.keys(t).join("|")+")",n=RegExp(e),r=RegExp(e,"g");return function(e){return e=null==e?"":""+e,n.test(e)?e.replace(r,i):e}}var V={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},H=p.invert(V);p.escape=F(V),p.unescape=F(H),p.result=function(e,t,i){p.isArray(t)||(t=[t]);var n=t.length;if(!n)return p.isFunction(i)?i.call(e):i;for(var r=0;r<n;r++){var a=null==e?void 0:e[t[r]];void 0===a&&(a=i,r=n),e=p.isFunction(a)?a.call(e):a}return e};var q=0;p.uniqueId=function(e){var t=++q+"";return e?e+t:t},p.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};function W(e){return"\\"+z[e]}var G=/(.)^/,z={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},$=/\\|'|\r|\n|\u2028|\u2029/g;p.template=function(a,e,t){!e&&t&&(e=t),e=p.defaults({},e,p.templateSettings);var i,n=RegExp([(e.escape||G).source,(e.interpolate||G).source,(e.evaluate||G).source].join("|")+"|$","g"),s=0,o="__p+='";a.replace(n,function(e,t,i,n,r){return o+=a.slice(s,r).replace($,W),s=r+e.length,t?o+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":i?o+="'+\n((__t=("+i+"))==null?'':__t)+\n'":n&&(o+="';\n"+n+"\n__p+='"),e}),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{i=new Function(e.variable||"obj","_",o)}catch(e){throw e.source=o,e}function r(e){return i.call(this,e,p)}var u=e.variable||"obj";return r.source="function("+u+"){\n"+o+"}",r},p.chain=function(e){var t=p(e);return t._chain=!0,t};function K(e,t){return e._chain?p(t).chain():t}p.mixin=function(i){return p.each(p.functions(i),function(e){var t=p[e]=i[e];p.prototype[e]=function(){var e=[this._wrapped];return r.apply(e,arguments),K(this,t.apply(p,e))}}),p},p.mixin(p),p.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var i=n[t];p.prototype[t]=function(){var e=this._wrapped;return i.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],K(this,e)}}),p.each(["concat","join","slice"],function(e){var t=n[e];p.prototype[e]=function(){return K(this,t.apply(this._wrapped,arguments))}}),p.prototype.value=function(){return this._wrapped},p.prototype.valueOf=p.prototype.toJSON=p.prototype.value,p.prototype.toString=function(){return String(this._wrapped)},void 0===(J=function(){return p}.apply(Q,[]))||(Y.exports=J)}()}).call(this,t(5),t(12)(e))},function(e,t,i){function n(a,e){var r=function(e){if(this.config=e||{},!a.isObject(this.config))throw new Error("Hazmat is not initialized properly");this.fail=a.isFunction(this.config.fail)?this.config.fail:r.fail,this.warn=a.isFunction(this.config.warn)?this.config.warn:r.warn,this.log=a.isFunction(this.config.log)?this.config.log:r.log};return a.extend(r,{ID_REGEX:/^[\_A-Za-z0-9]+$/,create:function(e){return new r(e)},noConflict:function(){return e.Hazmat=r.original,r},log:function(){console&&a.isFunction(console.log)&&console.log.apply(console,arguments)},fail:function(e,t){var i=e||"",n=t||{};throw r.log("Hazmat Failure::",i,n),new Error("Hazmat Failure "+i.toString())},warn:function(e,t){var i=e||"",n=t||{};r.log("Hazmat Warning::",i,n)},fixDomId:function(e){return a.isString(e)&&0<e.length?e.replace(/[^A-Za-z0-9\_]/g,""):null},isDomId:function(e){return a.isString(e)&&e.match(r.ID_REGEX)},__placeholder:!0}),a.extend(r.prototype,{_safeValue:function(e,t,i,n){var r=i;return a.isFunction(i)&&(i=a.once(function(){try{return r.apply(this,arguments)}catch(e){}})),n.checker(t)?t:n.evalFallback&&a.isFunction(i)&&n.checker(i(t))?(this.warn("Expected valid "+n.name+" for "+e+" but was able to sanitize it:",[t,i(t)]),i(t)):n.checker(r)?(this.warn("Expected valid "+n.name+" for "+e+" but was able to fallback to default value:",[t,r]),r):void this.fail("Expected valid "+n.name+" for "+e+" but received:",t)},safeString:function(e,t,i){return this._safeValue(e,t,i,{name:"String",checker:a.isString,evalFallback:!0})},safeStringOrNull:function(e,t,i){return null==t?t:this._safeValue(e,t,i,{name:"String",checker:a.isString,evalFallback:!0})},safeDomId:function(e,t,i){return this._safeValue(e,t,i,{name:"DOM ID",checker:r.isDomId,evalFallback:!0})},safeFunction:function(e,t,i){return this._safeValue(e,t,i,{name:"Function",checker:a.isFunction,evalFallback:!1})},safeFunctionOrNull:function(e,t,i){return null==t?t:this._safeValue(e,t,i,{name:"Function",checker:a.isFunction,evalFallback:!1})},safeObject:function(e,t,i){return this._safeValue(e,t,i,{name:"Object",checker:a.isObject,evalFallback:!1})},safeObjectOrNull:function(e,t,i){return null==t?t:this._safeValue(e,t,i,{name:"Object",checker:a.isObject,evalFallback:!1})},safeArray:function(e,t,i){return this._safeValue(e,t,i,{name:"Array",checker:a.isArray,evalFallback:!1})},safeArrayOfElements:function(e,t,i,n){var r=this._safeValue(e,t,n,{name:"Array",checker:a.isArray,evalFallback:!1});return a.map(r,i)},__placeholder:!0}),r}if("undefined"!=typeof window&&void 0!==window._){(a=n(window._,window)).original=window.Hazmat,window.Hazmat=a}else{var r=i(7),a=n(r);r.extend(t,a)}},function(e,t,i){i(6),window._||(window._=i(7)),OO._||(OO._=window._.noConflict())},function(e,G,z){"use strict";(function(e){z.d(G,"a",function(){return q}),z.d(G,"b",function(){return W});function n(e){return!!e&&"object"==typeof e}function p(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return t.reduce(function(t,i){return Object.keys(i).forEach(function(e){Array.isArray(t[e])&&Array.isArray(i[e])?t[e]=t[e].concat(i[e]):n(t[e])&&n(i[e])?t[e]=p(t[e],i[e]):t[e]=i[e]}),t},{})}function f(e){return e.reduce(function(e,t){return e.concat(t)},[])}function i(e){if(!e.length)return[];for(var t=[],i=0;i<e.length;i++)t.push(e[i]);return t}var t=z(0),d=z.n(t),m="INVALID_NUMBER_OF_PERIOD",r="DASH_EMPTY_MANIFEST",a="DASH_INVALID_XML",g="NO_BASE_URL",o="SEGMENT_TIME_UNSPECIFIED",s="UNSUPPORTED_UTC_TIMING_SCHEME";"undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self;function y(e,t){return/^[a-z]+:/i.test(t)?t:(/\/\//i.test(e)||(e=x.buildAbsoluteURL(d.a.location.href,e)),x.buildAbsoluteURL(e,t))}function v(e){var t=e.baseUrl,i=void 0===t?"":t,n=e.source,r=void 0===n?"":n,a=e.range,s=void 0===a?"":a,o=e.indexRange,u=void 0===o?"":o,l={uri:r,resolvedUri:y(i||"",r)};if(s||u){var c=(s||u).split("-"),h=parseInt(c[0],10),d=parseInt(c[1],10);l.byterange={length:d-h+1,offset:h}}return l}function _(e){var t=e.type,i=void 0===t?"static":t,n=e.duration,r=e.timescale,a=void 0===r?1:r,s=e.sourceDuration,o=D[i](e),u=function(e,t){for(var i=[],n=e;n<t;n++)i.push(n);return i}(o.start,o.end).map(function(o){return function(e,t){var i=o.duration,n=o.timescale,r=void 0===n?1:n,a=o.periodIndex,s=o.startNumber;return{number:(void 0===s?1:s)+e,duration:i/r,timeline:a,time:t*i}}}(e));if("static"===i){var l=u.length-1;u[l].duration=s-n/a*l}return u}function b(e){var t=e.baseUrl,i=e.initialization,n=void 0===i?{}:i,r=e.sourceDuration,a=e.timescale,s=void 0===a?1:a,o=e.indexRange,u=void 0===o?"":o,l=e.duration;if(!t)throw new Error(g);var c=v({baseUrl:t,source:n.sourceURL,range:n.range}),h=v({baseUrl:t,source:t,indexRange:u});if(h.map=c,l){var d=_(e);d.length&&(h.duration=d[0].duration,h.timeline=d[0].timeline)}else r&&(h.duration=r/s,h.timeline=0);return h.number=0,[h]}function u(e,t,i){for(var n=e.sidx.map?e.sidx.map:null,r=e.sidx.duration,a=e.timeline||0,s=e.sidx.byterange,o=s.offset+s.length,u=t.timescale,l=t.references.filter(function(e){return 1!==e.referenceType}),c=[],h=o+t.firstOffset,d=0;d<l.length;d++){var p=t.references[d],f=p.referencedSize,m=p.subsegmentDuration,g=b({baseUrl:i,timescale:u,timeline:a,periodIndex:a,duration:m,sourceDuration:r,indexRange:h+"-"+(h+f-1)})[0];n&&(g.map=n),c.push(g),h+=f}return e.segments=c,e}function h(e){return function(t){return Object.keys(t).map(function(e){return t[e]})}(e.reduce(function(e,t){var i,n=t.attributes.id+(t.attributes.lang||"");e[n]?(t.segments[0]&&(t.segments[0].discontinuity=!0),(i=e[n].segments).push.apply(i,t.segments),t.attributes.contentProtection&&(e[n].attributes.contentProtection=t.attributes.contentProtection)):e[n]=t;return e},{})).map(function(e){return e.discontinuityStarts=function(e,n){return e.reduce(function(e,t,i){return t[n]&&e.push(i),e},[])}(e.segments,"discontinuity"),e})}function T(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var i in e){var n=e[i];if(n.sidx){var r=n.sidx.uri+"-"+(s=n.sidx.byterange,void 0,o=s.offset+s.length-1,s.offset+"-"+o),a=t[r]&&t[r].sidx;n.sidx&&a&&u(n,a,n.sidx.resolvedUri)}}var s,o;return e}function S(e){var t,i=e.attributes,n=e.segments,r=e.sidx,a={attributes:(t={NAME:i.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:i.width,height:i.height},CODECS:i.codecs,BANDWIDTH:i.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===(i.type||"static"),timeline:i.periodIndex,resolvedUri:"",targetDuration:i.duration,segments:n,mediaSequence:n.length?n[0].number:1};return i.contentProtection&&(a.contentProtection=i.contentProtection),r&&(a.sidx=r),a}function l(e,t){var i;if(void 0===t&&(t={}),!e.length)return{};var n=e[0].attributes,r=n.sourceDuration,a=n.minimumUpdatePeriod,s=void 0===a?0:a,o=h(e.filter(function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video"===t.contentType})).map(S),u=h(e.filter(function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio"===t.contentType})),l=e.filter(function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType}),c={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(i={AUDIO:{},VIDEO:{}},i["CLOSED-CAPTIONS"]={},i.SUBTITLES={},i),uri:"",duration:r,playlists:T(o,t),minimumUpdatePeriod:1e3*s};return u.length&&(c.mediaGroups.AUDIO.audio=function(e,s){var o;void 0===s&&(s={});var t=e.reduce(function(e,t){var i=t.attributes.role&&t.attributes.role.value||"",n=t.attributes.lang||"",r="main";if(n){var a=i?" ("+i+")":"";r=t.attributes.lang+a}return e[r]&&e[r].playlists[0].attributes.BANDWIDTH>t.attributes.bandwidth||(e[r]={language:n,autoselect:!0,default:"main"===i,playlists:T([function(e){var t,i=e.attributes,n=e.segments,r=e.sidx,a={attributes:(t={NAME:i.id,BANDWIDTH:i.bandwidth,CODECS:i.codecs},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===(i.type||"static"),timeline:i.periodIndex,resolvedUri:"",targetDuration:i.duration,segments:n,mediaSequence:n.length?n[0].number:1};return i.contentProtection&&(a.contentProtection=i.contentProtection),r&&(a.sidx=r),a}(t)],s),uri:""},void 0===o&&"main"===i&&((o=t).default=!0)),e},{});o||(t[Object.keys(t)[0]].default=!0);return t}(u,t)),l.length&&(c.mediaGroups.SUBTITLES.subs=function(e,n){return void 0===n&&(n={}),e.reduce(function(e,t){var i=t.attributes.lang||"text";return e[i]||(e[i]={language:i,default:!1,autoselect:!1,playlists:T([function(e){var t,i=e.attributes,n=e.segments;return void 0===n&&(n=[{uri:i.baseUrl,timeline:i.periodIndex,resolvedUri:i.baseUrl||"",duration:i.sourceDuration,number:0}],i.duration=i.sourceDuration),{attributes:(t={NAME:i.id,BANDWIDTH:i.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===(i.type||"static"),timeline:i.periodIndex,resolvedUri:i.baseUrl||"",targetDuration:i.duration,segments:n,mediaSequence:n.length?n[0].number:1}}(t)],n),uri:""}),e},{})}(l,t)),c}function c(e,t){for(var i,n,r,a,s,o,u,l,c,h,d,p,f=e.type,m=void 0===f?"static":f,g=e.minimumUpdatePeriod,y=void 0===g?0:g,v=e.media,_=void 0===v?"":v,b=e.sourceDuration,T=e.timescale,S=void 0===T?1:T,k=e.startNumber,E=void 0===k?1:k,w=e.periodIndex,C=[],O=-1,A=0;A<t.length;A++){var P=t[A],I=P.d,L=P.r||0,x=P.t||0;O<0&&(O=x),x&&O<x&&(O=x);var D=void 0;if(L<0){var R=A+1;D=R===t.length?"dynamic"===m&&0<y&&0<_.indexOf("$Number$")?(n=O,r=I,void 0,a=(i=e).NOW,s=i.clientOffset,o=i.availabilityStartTime,u=i.timescale,l=void 0===u?1:u,c=i.start,h=void 0===c?0:c,d=i.minimumUpdatePeriod,p=(a+s)/1e3+(void 0===d?0:d)-(o+h),Math.ceil((p*l-n)/r)):(b*S-O)/I:(t[R].t-O)/I}else D=L+1;for(var U=E+C.length+D,M=E+C.length;M<U;)C.push({number:M,duration:I/S,time:O,timeline:w}),O+=I,M++}return C}function k(e,t){return e.replace(R,function(a){return function(e,t,i,n){if("$$"===e)return"$";if(void 0===a[t])return e;var r=""+a[t];return"RepresentationID"===t?r:(n=i?parseInt(n,10):1)<=r.length?r:new Array(n-r.length+1).join("0")+r}}(t))}function E(i,e){var n={RepresentationID:i.id,Bandwidth:i.bandwidth||0},t=i.initialization,r=void 0===t?{sourceURL:"",range:""}:t,a=v({baseUrl:i.baseUrl,source:k(r.sourceURL,n),range:r.range});return function(e,t){return e.duration||t?e.duration?_(e):c(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodIndex}]}(i,e).map(function(e){n.Number=e.number,n.Time=e.time;var t=k(i.media||"",n);return{uri:t,timeline:e.timeline,duration:e.duration,resolvedUri:y(i.baseUrl||"",t),map:a,number:e.number}})}function w(t,e){var i=t.duration,n=t.segmentUrls,r=void 0===n?[]:n;if(!i&&!e||i&&e)throw new Error(o);var a,s=r.map(function(e){return function(e,t){var i=e.baseUrl,n=e.initialization,r=void 0===n?{}:n,a=v({baseUrl:i,source:r.sourceURL,range:r.range}),s=v({baseUrl:i,source:t.media,range:t.mediaRange});return s.map=a,s}(t,e)});return i&&(a=_(t)),e&&(a=c(t,e)),a.map(function(e,t){if(s[t]){var i=s[t];return i.timeline=e.timeline,i.duration=e.duration,i.number=e.number,i}}).filter(function(e){return e})}function C(e){var t,i,n=e.attributes,r=e.segmentInfo;r.template?(i=E,t=p(n,r.template)):r.base?(i=b,t=p(n,r.base)):r.list&&(i=w,t=p(n,r.list));var a={attributes:n};if(!i)return a;var s=i(t,r.timeline);if(t.duration){var o=t,u=o.duration,l=o.timescale,c=void 0===l?1:l;t.duration=u/c}else s.length?t.duration=s.reduce(function(e,t){return Math.max(e,Math.ceil(t.duration))},0):t.duration=0;return a.attributes=t,a.segments=s,r.base&&t.indexRange&&(a.sidx=s[0],a.segments=[]),a}function O(e,t){return i(e.childNodes).filter(function(e){return e.tagName===t})}function A(e){return e.textContent.trim()}function P(e){var t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;var i=t.slice(1),n=i[0],r=i[1],a=i[2],s=i[3],o=i[4],u=i[5];return 31536e3*parseFloat(n||0)+2592e3*parseFloat(r||0)+86400*parseFloat(a||0)+3600*parseFloat(s||0)+60*parseFloat(o||0)+parseFloat(u||0)}function I(e){return e&&e.attributes?i(e.attributes).reduce(function(e,t){var i=U[t.name]||U.DEFAULT;return e[t.name]=i(t.value),e},{}):{}}var L,x=(function(e,t){var i,c,n,r,h;i=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/\?#]*\/)*.*?)??(;.*?)?(\?.*?)?(#.*?)?$/,c=/^([^\/?#]*)(.*)$/,n=/(?:\/|^)\.(?=\/)/g,r=/(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g,h={buildAbsoluteURL:function(e,t,i){if(i=i||{},e=e.trim(),!(t=t.trim())){if(!i.alwaysNormalize)return e;var n=h.parseURL(e);if(!n)throw new Error("Error trying to parse base URL.");return n.path=h.normalizePath(n.path),h.buildURLFromParts(n)}var r=h.parseURL(t);if(!r)throw new Error("Error trying to parse relative URL.");if(r.scheme)return i.alwaysNormalize?(r.path=h.normalizePath(r.path),h.buildURLFromParts(r)):t;var a=h.parseURL(e);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var s=c.exec(a.path);a.netLoc=s[1],a.path=s[2]}a.netLoc&&!a.path&&(a.path="/");var o={scheme:a.scheme,netLoc:r.netLoc,path:null,params:r.params,query:r.query,fragment:r.fragment};if(!r.netLoc&&(o.netLoc=a.netLoc,"/"!==r.path[0]))if(r.path){var u=a.path,l=u.substring(0,u.lastIndexOf("/")+1)+r.path;o.path=h.normalizePath(l)}else o.path=a.path,r.params||(o.params=a.params,r.query||(o.query=a.query));return null===o.path&&(o.path=i.alwaysNormalize?h.normalizePath(r.path):r.path),h.buildURLFromParts(o)},parseURL:function(e){var t=i.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(n,"");e.length!==(e=e.replace(r,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=h}(L={exports:{}},L.exports),L.exports),D={static:function(e){var t=e.duration,i=e.timescale,n=void 0===i?1:i,r=e.sourceDuration;return{start:0,end:Math.ceil(r/(t/n))}},dynamic:function(e){var t=e.NOW,i=e.clientOffset,n=e.availabilityStartTime,r=e.timescale,a=void 0===r?1:r,s=e.duration,o=e.start,u=void 0===o?0:o,l=e.minimumUpdatePeriod,c=void 0===l?0:l,h=e.timeShiftBufferDepth,d=void 0===h?1/0:h,p=(t+i)/1e3,f=n+u,m=p+c-f,g=Math.ceil(m*a/s),y=Math.floor((p-f-d)*a/s),v=Math.floor((p-f)*a/s);return{start:Math.max(0,y),end:Math.min(g,v)}}},R=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,U={mediaPresentationDuration:function(e){return P(e)},availabilityStartTime:function(e){return function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e)}(e)/1e3},minimumUpdatePeriod:function(e){return P(e)},timeShiftBufferDepth:function(e){return P(e)},start:function(e){return P(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?P(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}};function M(e,i){return i.length?f(e.map(function(t){return i.map(function(e){return y(t,A(e))})})):e}function N(e){var t=O(e,"SegmentTemplate")[0],i=O(e,"SegmentList")[0],n=i&&O(i,"SegmentURL").map(function(e){return p({tag:"SegmentURL"},I(e))}),r=O(e,"SegmentBase")[0],a=i||t,s=a&&O(a,"SegmentTimeline")[0],o=i||r||t,u=o&&O(o,"Initialization")[0],l=t&&I(t);l&&u?l.initialization=u&&I(u):l&&l.initialization&&(l.initialization={sourceURL:l.initialization});var c={template:l,timeline:s&&O(s,"S").map(function(e){return I(e)}),list:i&&p(I(i),{segmentUrls:n,initialization:I(u)}),base:r&&p(I(r),{initialization:I(u)})};return Object.keys(c).forEach(function(e){c[e]||delete c[e]}),c}function j(e){return e.reduce(function(e,t){var i=I(t),n=H[i.schemeIdUri];if(n){e[n]={attributes:i};var r=O(t,"cenc:pssh")[0];if(r){var a=A(r),s=a&&function(e){for(var t=d.a.atob(e),i=new Uint8Array(t.length),n=0;n<t.length;n++)i[n]=t.charCodeAt(n);return i}(a);e[n].pssh=s}}return e},{})}function B(c,h,d){return function(e){var t=I(e),i=M(h,O(e,"BaseURL")),n=O(e,"Role")[0],r={role:I(n)},a=p(c,t,r),s=j(O(e,"ContentProtection"));Object.keys(s).length&&(a=p(a,{contentProtection:s}));var o=N(e),u=O(e,"Representation"),l=p(d,o);return f(u.map(function(a,s,o){return function(e){var t=O(e,"BaseURL"),i=M(s,t),n=p(a,I(e)),r=N(e);return i.map(function(e){return{segmentInfo:p(o,r),attributes:p(n,{baseUrl:e})}})}}(a,i,l)))}}function F(e,t){void 0===t&&(t={});var i=t,n=i.manifestUri,r=void 0===n?"":n,a=i.NOW,s=void 0===a?Date.now():a,o=i.clientOffset,u=void 0===o?0:o,l=O(e,"Period");if(!l.length)throw new Error(m);var c=I(e),h=M([r],O(e,"BaseURL"));return c.sourceDuration=c.mediaPresentationDuration||0,c.NOW=s,c.clientOffset=u,f(l.map(function(l,c){return function(e,t){var i=M(c,O(e,"BaseURL")),n=I(e),r=parseInt(n.id,10),a=d.a.isNaN(r)?t:r,s=p(l,{periodIndex:a}),o=O(e,"AdaptationSet"),u=N(e);return f(o.map(B(s,i,u)))}}(c,h)))}function V(e){if(""===e)throw new Error(r);var t=(new d.a.DOMParser).parseFromString(e,"application/xml"),i=t&&"MPD"===t.documentElement.tagName?t.documentElement:null;if(!i||i&&0<i.getElementsByTagName("parsererror").length)throw new Error(a);return i}var H={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},q=function(e,t){return void 0===t&&(t={}),l(function(e){return e.map(C)}(F(V(e),t)),t.sidxMapping)},W=function(e){return function(e){var t=O(e,"UTCTiming")[0];if(!t)return null;var i=I(t);switch(i.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":i.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":i.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":i.method="DIRECT",i.value=Date.parse(i.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(s)}return i}(V(e))}}).call(this,z(5))},,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,i){i(9);var n={};window&&!window.debugHazmat&&(n={warn:function(){}}),OO.HM||"undefined"!=typeof window&&void 0!==window._?window.Hazmat||i(8):OO.HM=i(8).create(n),OO.HM||(OO.HM=window.Hazmat.noConflict().create(n))},function(e,t){!function(o,a,r){o.getRandomString=function(){return Math.random().toString(36).substring(7)},o.safeClone=function(e){if(a.isNumber(e)||a.isString(e)||a.isBoolean(e)||a.isFunction(e)||a.isNull(e)||a.isUndefined(e))return e;var t=e instanceof Array?[]:{};try{r.extend(!0,t,e)}catch(e){o.log("deep clone error",e)}return t},o.d=function(){o.isDebug&&o.log.apply(o,arguments),o.$("#OOYALA_DEBUG_CONSOLE").append(JSON.stringify(o.safeClone(arguments))+"<br>")},o.inherit=function(e,t){if("function"!=typeof e)return o.log("invalid inherit, ParentClass need to be a class",e),null;function i(){e.apply(this,arguments),"function"==typeof t&&t.apply(this,arguments)}var n=new e;return o._.extend(i.prototype,n),i.prototype.parentClass=n,i};var n={};o.attachStyle=function(e,t){var i=r('<style type="text/css">'+e+"</style>").appendTo("head");n[t]=n[t]||[],n[t].push(i)},o.removeStyles=function(e){o._.each(n[e],function(e){e.remove()})},o.getInnerProperty=function(e,t){for(var i=e,n=t;0<n.length;){var r=n.shift();if(a.isNull(i)||!a.isObject(i)||a.isFunction(i)||a.isArray(i))return null;i=i[r]}return i},o.formatSeconds=function(e){var t=parseInt(e,10)%60,i=parseInt(e/3600,10),n=parseInt((e-3600*i)/60,10);return i<10&&(i="0"+i),n<10&&(n="0"+n),t<10&&(t="0"+t),0<parseInt(i,10)?i+":"+n+":"+t:n+":"+t},o.timeStringToSeconds=function(e){var t=(e||"").split(":");return a.reduce(t,function(e,t){return 60*e+parseInt(t,10)},0)},o.leftPadding=function(e,t){for(var i=e?e.toString():"";i.length<t;)i="0"+i;return i},o.getColorString=function(e){return"#"+o.leftPadding(e.toString(16),6).toUpperCase()},o.hexToRgb=function(e){return[(16711680&e)>>16,(65280&e)>>8,255&e]},o.changeColor=function(e,t,i){var n=i?Math.max:Math.min,r=i?0:255,a=Math.round(255*t)*(i?-1:1),s=o.hexToRgb(e);return[o.leftPadding(n(s[0]+a,r).toString(16),2),o.leftPadding(n(s[1]+a,r).toString(16),2),o.leftPadding(n(s[2]+a,r).toString(16),2)].join("")},o.decode64=function(e){e=e.replace(/\n/g,"");var t,i="",n=0,r=[];if(window.atob)return atob(e);do{for(t=0;t<4;t++)r[t]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(n++));i+=String.fromCharCode(r[0]<<2|r[1]>>4,64==r[2]?0:(15&r[1])<<4|r[2]>>2,64==r[3]?0:(3&r[2])<<6|r[3])}while(n<e.length);return i.replace(/\0/g,"")},o.pixelPing=function(e){var t=new Image;t.onerror=t.onabort=function(){o.d("onerror:",e)},t.src=o.getNormalizedTagUrl(e)},o.pixelPings=function(e){a.isEmpty(e)||a.each(e,function(e){o.pixelPing(e)},this)},o.stringToBoolean=function(e){return"string"==typeof e?-1<e.toLowerCase().indexOf("true")||-1<e.toLowerCase().indexOf("yes"):!!e},o.regexEscape=function(e){return e.replace(/[<>()\[\]{}]/g,"\\$&")},o.getNormalizedTagUrl=function(n,e){function t(e,i){a.each(e,function(e){var t=new RegExp("("+o.regexEscape(e)+")","gi");n=n.replace(t,i)},this)}var i=(new Date).getTime(),r=escape(document.URL);return t(o.TEMPLATES.RANDOM_PLACE_HOLDER,i),t(o.TEMPLATES.REFERAK_PLACE_HOLDER,r),e&&t(o.TEMPLATES.EMBED_CODE_PLACE_HOLDER,e),n},o.safeSeekRange=function(e){return{start:0<e.length?e.start(0):0,end:0<e.length?e.end(0):0}},o.loadedJS=o.loadedJS||{},o.jsOnSuccessList=o.jsOnSuccessList||{},o.safeFuncCall=function(e){if("function"==typeof e)try{e.apply()}catch(e){o.log("Can not invoke function!",e)}},o.loadScriptOnce=function(e,t,i,n){return o.jsOnSuccessList[e]=o.jsOnSuccessList[e]||[],o.loadedJS[e]?("loaded"===o.loadedJS[e]?o.safeFuncCall(t):"loading"===o.loadedJS[e]&&o.jsOnSuccessList[e].unshift(t),!1):(o.loadedJS[e]="loading",r.ajax({url:e,type:"GET",cache:!0,dataType:"script",timeout:n||15e3,success:function(){o.loadedJS[e]="loaded",o.jsOnSuccessList[e].unshift(t),o._.each(o.jsOnSuccessList[e],function(e){o.safeFuncCall(e)},this),o.jsOnSuccessList[e]=[]},error:function(){o.safeFuncCall(i)}}),!0)};try{o.localStorage=window.localStorage}catch(e){o.log(e)}o.localStorage||(o.localStorage={getItem:function(e){return e&&this.hasOwnProperty(e)?unescape(document.cookie.replace(new RegExp("(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*"),"$1")):null},key:function(e){return unescape(document.cookie.replace(/\s*\=(?:.(?!;))*$/,"").split(/\s*\=(?:[^;](?!;))*[^;]?;\s*/)[e])},setItem:function(e,t){e&&(document.cookie=escape(e)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/",this.length=document.cookie.match(/\=/g).length)},length:0,removeItem:function(e){e&&this.hasOwnProperty(e)&&(document.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/",this.length--)},hasOwnProperty:function(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)}},o.localStorage.length=(document.cookie.match(/\=/g)||o.localStorage).length),o.setItem=function(e,t){try{o.localStorage.setItem(e,t)}catch(e){o.log(e)}},o.ensureNumber=function(e,t){var i;return null!==e&&!a.isArray(e)||(e=NaN),i=a.isNumber(e)?e:Number(e),isFinite(i)?i:void 0===t?null:t},o.JSON=window.JSON}(OO,OO._,OO.$)},function(e,t){!function(n,e,t){n.playerParams=t.safeObject("environment.playerParams",n.playerParams,{}),n.configurePublisher=function(e){n.playerParams.pcode=e.pcode||n.playerParams.pcode||"",n.playerParams.playerBrandingId=e.playerBrandingId||n.playerParams.playerBrandingId||"",n.playerParams.playerType=e.playerType||n.playerParams.playerType||n.CONSTANTS.PLAYER_TYPE.VIDEO,n.playerParams.debug=e.debug||n.playerParams.debug||""},n.isPublisherConfigured=function(){return!(!n.playerParams.pcode||!n.playerParams.playerBrandingId)},n.setServerHost=function(e){n.playerParams.api_ssl_server=e.api_ssl_server||n.playerParams.api_ssl_server||null,n.playerParams.api_server=e.api_server||n.playerParams.api_server||null,n.playerParams.auth_ssl_server=e.auth_ssl_server||n.playerParams.auth_ssl_server||null,n.playerParams.auth_server=e.auth_server||n.playerParams.auth_server||null,n.playerParams.analytics_ssl_server=e.analytics_ssl_server||n.playerParams.analytics_ssl_server||null,n.playerParams.analytics_server=e.analytics_server||n.playerParams.analytics_server||null,u()};var i,r,a,s,o,u=function(){n.SERVER={API:n.isSSL?n.playerParams.api_ssl_server||"https://player.ooyala.com":n.playerParams.api_server||"http://player.ooyala.com",AUTH:n.isSSL?n.playerParams.auth_ssl_server||"https://player.ooyala.com/sas":n.playerParams.auth_server||"http://player.ooyala.com/sas",ANALYTICS:n.isSSL?n.playerParams.analytics_ssl_server||"https://player.ooyala.com":n.playerParams.analytics_server||"http://player.ooyala.com"}};n.playerParams.tweaks=n.playerParams.tweaks||"",n.playerParams.tweaks=t.safeString("environment.playerParams.tweaks",n.playerParams.tweaks,""),n.playerParams.tweaks=n.playerParams.tweaks.split(","),n.tweaks={},n.tweaks["android-enable-hls"]=e.contains(n.playerParams.tweaks,"android-enable-hls"),n.tweaks["html5-force-mp4"]=e.contains(n.playerParams.tweaks,"html5-force-mp4"),n.playerParams.maxAdsTimeout=n.playerParams.maxAdsTimeout||5,n.playerParams.maxVastWrapperDepth=n.playerParams.maxVastWrapperDepth||3,n.playerParams.minLiveSeekWindow=n.playerParams.minLiveSeekWindow||10,n.guid="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}),n.playerCount=0,n.isProd=!(!n.playerParams.environment||!n.playerParams.environment.match(/^prod/i)),n.platform=window.navigator.platform,n.os=window.navigator.appVersion,n.supportsVideo=!!document.createElement("video").canPlayType,n.browserSupportsCors=function(){try{return e.has(new XMLHttpRequest,"withCredentials")||e.has(XMLHttpRequest.prototype,"withCredentials")}catch(e){return!1}}(),n.isWindows=!!n.platform.match(/Win/),n.isWindows7=n.isWindows&&"Windows NT 6.1"===window.navigator.userAgent.match(/Windows NT [\d.]*/)[0].trim(),n.isIos=!!n.platform.match(/iPhone|iPad|iPod/),n.isIphone=!!n.platform.match(/iPhone|iPod/),n.isIpad=!!n.platform.match(/iPad/),n.iosMajorVersion=function(){try{return n.isIos?parseInt(window.navigator.userAgent.match(/OS (\d+)/)[1],10):null}catch(e){return null}}(),n.isAndroid=!(!n.os.match(/Android/)||n.os.match(/Windows Phone/)),n.isAndroid4Plus=((i=n.os.match(/Android [\d\.]*;/))&&0<i.length&&(i=parseInt(i[0].substring(i[0].indexOf(" ")+1,i[0].search("[.;]")))),n.isAndroid&&4<=i),n.isAndroid4_4Plus=function(){var e=!1;if(n.isAndroid){var t=n.os.match(/Android [\d\.]*;/);if(t&&t.length){var i=t[0].toLowerCase().match(/android\s([0-9\.]*)/)[1];e=4.3<parseFloat(i)}}return e}(),n.isRimDevice=!(!n.os.match(/BlackBerry/)&&!n.os.match(/PlayBook/)),n.isFirefox=!!window.navigator.userAgent.match(/Firefox/),n.isChrome=!!window.navigator.userAgent.match(/Chrome/)&&!window.navigator.userAgent.match(/Edge/),n.isSafari=!(!window.navigator.userAgent.match(/AppleWebKit/)||window.navigator.userAgent.match(/Chrome/)||window.navigator.userAgent.match(/CriOS/)||window.navigator.userAgent.match(/like iPhone/)),n.chromeMajorVersion=function(){try{return parseInt(window.navigator.userAgent.match(/Chrome.([0-9]*)/)[1],10)}catch(e){return null}}(),n.isIE=!!window.navigator.userAgent.match(/MSIE/)||!!window.navigator.userAgent.match(/Trident/),n.isEdge=!!window.navigator.userAgent.match(/Edge/),n.isIE11Plus=function(){if(!window.navigator.userAgent.match(/Trident/))return!1;var e=window.navigator.userAgent.match(/rv:(\d*)/);return 11<=(e&&e[1])}(),n.isWinPhone=!!n.os.match(/Windows Phone/)||!!n.os.match(/ZuneWP/)||!!n.os.match(/XBLWP/),n.isSmartTV=!!window.navigator.userAgent.match(/SmartTV/)||!!window.navigator.userAgent.match(/NetCast/),n.isMacOs=!n.isIos&&!!n.os.match(/Mac/)&&!window.navigator.userAgent.match(/like iPhone/),n.isMacOsLionOrLater=!(null==(r=n.os.match(/Mac OS X ([0-9]+)_([0-9]+)/))||r.length<3)&&10<=parseInt(r[1],10)&&7<=parseInt(r[2],10),n.macOsSafariVersion=function(){try{return n.isMacOs&&n.isSafari?parseInt(window.navigator.userAgent.match(/Version\/(\d+)/)[1],10):null}catch(e){return null}}(),n.isKindleHD=!!n.os.match(/Silk\/2/),n.supportMSE="MediaSource"in window||"WebKitMediaSource"in window||"mozMediaSource"in window||"msMediaSource"in window,n.supportAds=!n.isWinPhone&&!n.os.match(/Android [23]/),n.allowGesture=n.isIos,n.allowAutoPlay=!n.isIos&&!n.isAndroid,n.supportTouch=!(!document.documentElement.hasOwnProperty||!document.documentElement.hasOwnProperty("ontouchstart")),n.docDomain=function(){var e=null;try{e=document.domain}catch(e){}return n._.isEmpty(e)?n.isSmartTV?"SmartTV":"unknown":e}(),n.uiParadigm=(a="tablet",n.isAndroid4Plus&&n.tweaks["android-enable-hls"]?a="tablet":n.isIphone?a="mobile-native":n.os.match(/BlackBerry/)?a="mobile-native":n.os.match(/iPad/)?a="tablet":n.isKindleHD?a="mobile-native":n.os.match(/Silk/)?a="mobile":n.os.match(/Android 2/)?window.orientation%180==0&&window.outerWidth/window.devicePixelRatio<=480?a="mobile":window.outerWidth/window.devicePixelRatio<=560&&(a="mobile"):n.os.match(/Android/)?a="tablet":n.isWinPhone?a="mobile":(n.platform.match(/Mac/)||n.platform.match(/Win/)||n.platform.match(/Linux/))&&(a="desktop"),a),n.requiresSingleVideoElement=n.isIos||n.isAndroid,n.supportedVideoProfiles=n.isIos||n.isAndroid?"baseline":null,n.device=(s="html5",n.isIphone?s="iphone-html5":n.isIpad?s="ipad-html5":n.isAndroid?s="android-html5":n.isRimDevice?s="rim-html5":n.isWinPhone?s="winphone-html5":n.isSmartTV&&(s="smarttv-html5"),s),n.environmentRequiredFeatures=(o=[],n.os.match(/Android 2/)?o.push("html5-playback"):(o.push("html5-playback"),n.supportAds&&o.push("ads")),e.reduce(o,function(e,t){return e+t+" "},"")),n.supportMidRollAds="desktop"===n.uiParadigm&&!n.isIos&&!n.isRimDevice,n.supportCookies=function(){document.cookie="ooyala_cookie_test=true";var e=0<=document.cookie.indexOf("ooyala_cookie_test=true");return document.cookie="ooyala_cookie_test=; expires=Thu, 01 Jan 1970 00:00:00 GMT",e}(),n.isSSL="https:"==document.location.protocol,u(),n.requiredInEnvironment=n.featureEnabled=function(e){return!!n.environmentRequiredFeatures.match(new RegExp(e))},n.chromeExtensionEnabled=!!document.getElementById("ooyala-extension-installed"),n.locale="",n.setLocale=function(e){n.locale=e.toUpperCase()},n.getLocale=function(){return(n.locale||document.documentElement.lang||navigator.language||navigator.userLanguage||"en").substr(0,2).toUpperCase()}}(OO,OO._,OO.HM)},function(e,t,i){"use strict";var n=i(46);e.exports=Function.prototype.bind||n},function(e,t,i){"use strict";function n(e){try{var t=r.call(e);return a.test(t)}catch(e){return!1}}var r=Function.prototype.toString,a=/^\s*class\b/,s=Object.prototype.toString,o="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(o)return function(e){try{return!n(e)&&(r.call(e),!0)}catch(e){return!1}}(e);if(n(e))return!1;var t=s.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,i){"use strict";function a(e){return new Date(1e3*e-20828448e5)}function d(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}}var n,s,h=i(4).parseType,p={avc1:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{dataReferenceIndex:t.getUint16(6),width:t.getUint16(24),height:t.getUint16(26),horizresolution:t.getUint16(28)+t.getUint16(30)/16,vertresolution:t.getUint16(32)+t.getUint16(34)/16,frameCount:t.getUint16(40),depth:t.getUint16(74),config:n(e.subarray(78,e.byteLength))}},avcC:function(e){var t,i,n,r,a=new DataView(e.buffer,e.byteOffset,e.byteLength),s={configurationVersion:e[0],avcProfileIndication:e[1],profileCompatibility:e[2],avcLevelIndication:e[3],lengthSizeMinusOne:3&e[4],sps:[],pps:[]},o=31&e[5];for(n=6,r=0;r<o;r++)i=a.getUint16(n),n+=2,s.sps.push(new Uint8Array(e.subarray(n,n+i))),n+=i;for(t=e[n],n++,r=0;r<t;r++)i=a.getUint16(n),n+=2,s.pps.push(new Uint8Array(e.subarray(n,n+i))),n+=i;return s},btrt:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{bufferSizeDB:t.getUint32(0),maxBitrate:t.getUint32(4),avgBitrate:t.getUint32(8)}},esds:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),esId:e[6]<<8|e[7],streamPriority:31&e[8],decoderConfig:{objectProfileIndication:e[11],streamType:e[12]>>>2&63,bufferSize:e[13]<<16|e[14]<<8|e[15],maxBitrate:e[16]<<24|e[17]<<16|e[18]<<8|e[19],avgBitrate:e[20]<<24|e[21]<<16|e[22]<<8|e[23],decoderConfigDescriptor:{tag:e[24],length:e[25],audioObjectType:e[26]>>>3&31,samplingFrequencyIndex:(7&e[26])<<1|e[27]>>>7&1,channelConfiguration:e[27]>>>3&15}}}},ftyp:function(e){for(var t=new DataView(e.buffer,e.byteOffset,e.byteLength),i={majorBrand:h(e.subarray(0,4)),minorVersion:t.getUint32(4),compatibleBrands:[]},n=8;n<e.byteLength;)i.compatibleBrands.push(h(e.subarray(n,n+4))),n+=4;return i},dinf:function(e){return{boxes:n(e)}},dref:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),dataReferences:n(e.subarray(8))}},hdlr:function(e){var t={version:new DataView(e.buffer,e.byteOffset,e.byteLength).getUint8(0),flags:new Uint8Array(e.subarray(1,4)),handlerType:h(e.subarray(8,12)),name:""},i=8;for(i=24;i<e.byteLength;i++){if(0===e[i]){i++;break}t.name+=String.fromCharCode(e[i])}return t.name=decodeURIComponent(escape(t.name)),t},mdat:function(e){return{byteLength:e.byteLength,nals:function(e){var t,i,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=[];for(t=0;t+4<e.length;t+=i)if(i=n.getUint32(t),t+=4,i<=0)r.push("<span style='color:red;'>MALFORMED DATA</span>");else switch(31&e[t]){case 1:r.push("slice_layer_without_partitioning_rbsp");break;case 5:r.push("slice_layer_without_partitioning_rbsp_idr");break;case 6:r.push("sei_rbsp");break;case 7:r.push("seq_parameter_set_rbsp");break;case 8:r.push("pic_parameter_set_rbsp");break;case 9:r.push("access_unit_delimiter_rbsp");break;default:r.push("UNKNOWN NAL - "+e[t]&31)}return r}(e)}},mdhd:function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n=4,r={version:i.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),language:""};return 1===r.version?(n+=4,r.creationTime=a(i.getUint32(n)),n+=8,r.modificationTime=a(i.getUint32(n)),n+=4,r.timescale=i.getUint32(n),n+=8):(r.creationTime=a(i.getUint32(n)),n+=4,r.modificationTime=a(i.getUint32(n)),n+=4,r.timescale=i.getUint32(n),n+=4),r.duration=i.getUint32(n),n+=4,t=i.getUint16(n),r.language+=String.fromCharCode(96+(t>>10)),r.language+=String.fromCharCode(96+((992&t)>>5)),r.language+=String.fromCharCode(96+(31&t)),r},mdia:function(e){return{boxes:n(e)}},mfhd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),sequenceNumber:e[4]<<24|e[5]<<16|e[6]<<8|e[7]}},minf:function(e){return{boxes:n(e)}},mp4a:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),i={dataReferenceIndex:t.getUint16(6),channelcount:t.getUint16(16),samplesize:t.getUint16(18),samplerate:t.getUint16(24)+t.getUint16(26)/65536};return 28<e.byteLength&&(i.streamDescriptor=n(e.subarray(28))[0]),i},moof:function(e){return{boxes:n(e)}},moov:function(e){return{boxes:n(e)}},mvex:function(e){return{boxes:n(e)}},mvhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),i=4,n={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4))};return 1===n.version?(i+=4,n.creationTime=a(t.getUint32(i)),i+=8,n.modificationTime=a(t.getUint32(i)),i+=4,n.timescale=t.getUint32(i),i+=8):(n.creationTime=a(t.getUint32(i)),i+=4,n.modificationTime=a(t.getUint32(i)),i+=4,n.timescale=t.getUint32(i),i+=4),n.duration=t.getUint32(i),i+=4,n.rate=t.getUint16(i)+t.getUint16(i+2)/16,i+=4,n.volume=t.getUint8(i)+t.getUint8(i+1)/8,i+=2,i+=2,i+=8,n.matrix=new Uint32Array(e.subarray(i,i+36)),i+=36,i+=24,n.nextTrackId=t.getUint32(i),n},pdin:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),rate:t.getUint32(4),initialDelay:t.getUint32(8)}},sdtp:function(e){var t,i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]};for(t=4;t<e.byteLength;t++)i.samples.push({dependsOn:(48&e[t])>>4,isDependedOn:(12&e[t])>>2,hasRedundancy:3&e[t]});return i},sidx:function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:i.getUint32(4),timescale:i.getUint32(8),earliestPresentationTime:i.getUint32(12),firstOffset:i.getUint32(16)},r=i.getUint16(22);for(t=24;r;t+=12,r--)n.references.push({referenceType:(128&e[t])>>>7,referencedSize:2147483647&i.getUint32(t),subsegmentDuration:i.getUint32(t+4),startsWithSap:!!(128&e[t+8]),sapType:(112&e[t+8])>>>4,sapDeltaTime:268435455&i.getUint32(t+8)});return n},smhd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),balance:e[4]+e[5]/256}},stbl:function(e){return{boxes:n(e)}},stco:function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),chunkOffsets:[]},r=i.getUint32(4);for(t=8;r;t+=4,r--)n.chunkOffsets.push(i.getUint32(t));return n},stsc:function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n=i.getUint32(4),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleToChunks:[]};for(t=8;n;t+=12,n--)r.sampleToChunks.push({firstChunk:i.getUint32(t),samplesPerChunk:i.getUint32(t+4),sampleDescriptionIndex:i.getUint32(t+8)});return r},stsd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleDescriptions:n(e.subarray(8))}},stsz:function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleSize:i.getUint32(4),entries:[]};for(t=12;t<e.byteLength;t+=4)n.entries.push(i.getUint32(t));return n},stts:function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),timeToSamples:[]},r=i.getUint32(4);for(t=8;r;t+=8,r--)n.timeToSamples.push({sampleCount:i.getUint32(t),sampleDelta:i.getUint32(t+4)});return n},styp:function(e){return p.ftyp(e)},tfdt:function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4)),baseMediaDecodeTime:e[4]<<24|e[5]<<16|e[6]<<8|e[7]};return 1===t.version&&(t.baseMediaDecodeTime*=Math.pow(2,32),t.baseMediaDecodeTime+=e[8]<<24|e[9]<<16|e[10]<<8|e[11]),t},tfhd:function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:i.getUint32(4)},r=1&n.flags[2],a=2&n.flags[2],s=8&n.flags[2],o=16&n.flags[2],u=32&n.flags[2],l=65536&n.flags[0],c=131072&n.flags[0];return t=8,r&&(t+=4,n.baseDataOffset=i.getUint32(12),t+=4),a&&(n.sampleDescriptionIndex=i.getUint32(t),t+=4),s&&(n.defaultSampleDuration=i.getUint32(t),t+=4),o&&(n.defaultSampleSize=i.getUint32(t),t+=4),u&&(n.defaultSampleFlags=i.getUint32(t)),l&&(n.durationIsEmpty=!0),!r&&c&&(n.baseDataOffsetIsMoof=!0),n},tkhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),i=4,n={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4))};return 1===n.version?(i+=4,n.creationTime=a(t.getUint32(i)),i+=8,n.modificationTime=a(t.getUint32(i)),i+=4,n.trackId=t.getUint32(i),i+=4,i+=8):(n.creationTime=a(t.getUint32(i)),i+=4,n.modificationTime=a(t.getUint32(i)),i+=4,n.trackId=t.getUint32(i),i+=4,i+=4),n.duration=t.getUint32(i),i+=4,i+=8,n.layer=t.getUint16(i),i+=2,n.alternateGroup=t.getUint16(i),i+=2,n.volume=t.getUint8(i)+t.getUint8(i+1)/8,i+=2,i+=2,n.matrix=new Uint32Array(e.subarray(i,i+36)),i+=36,n.width=t.getUint16(i)+t.getUint16(i+2)/16,i+=4,n.height=t.getUint16(i)+t.getUint16(i+2)/16,n},traf:function(e){return{boxes:n(e)}},trak:function(e){return{boxes:n(e)}},trex:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:t.getUint32(4),defaultSampleDescriptionIndex:t.getUint32(8),defaultSampleDuration:t.getUint32(12),defaultSampleSize:t.getUint32(16),sampleDependsOn:3&e[20],sampleIsDependedOn:(192&e[21])>>6,sampleHasRedundancy:(48&e[21])>>4,samplePaddingValue:(14&e[21])>>1,sampleIsDifferenceSample:!!(1&e[21]),sampleDegradationPriority:t.getUint16(22)}},trun:function(e){var t,i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&i.flags[2],a=4&i.flags[2],s=1&i.flags[1],o=2&i.flags[1],u=4&i.flags[1],l=8&i.flags[1],c=n.getUint32(4),h=8;for(r&&(i.dataOffset=n.getInt32(h),h+=4),a&&c&&(t={flags:d(e.subarray(h,h+4))},h+=4,s&&(t.duration=n.getUint32(h),h+=4),o&&(t.size=n.getUint32(h),h+=4),l&&(t.compositionTimeOffset=n.getUint32(h),h+=4),i.samples.push(t),c--);c--;)t={},s&&(t.duration=n.getUint32(h),h+=4),o&&(t.size=n.getUint32(h),h+=4),u&&(t.flags=d(e.subarray(h,h+4)),h+=4),l&&(t.compositionTimeOffset=n.getUint32(h),h+=4),i.samples.push(t);return i},"url ":function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4))}},vmhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),graphicsmode:t.getUint16(4),opcolor:new Uint16Array([t.getUint16(6),t.getUint16(8),t.getUint16(10)])}}};n=function(e){for(var t,i,n,r,a,s=0,o=[],u=new ArrayBuffer(e.length),l=new Uint8Array(u),c=0;c<e.length;++c)l[c]=e[c];for(t=new DataView(u);s<e.byteLength;)i=t.getUint32(s),n=h(e.subarray(s+4,s+8)),r=1<i?s+i:e.byteLength,(a=(p[n]||function(e){return{data:e}})(e.subarray(s+8,r))).size=i,a.type=n,o.push(a),s=r;return o},s=function(e,t){var a;return t=t||0,a=new Array(2*t+1).join(" "),e.map(function(r,e){return a+r.type+"\n"+Object.keys(r).filter(function(e){return"type"!==e&&"boxes"!==e}).map(function(e){var t=a+"  "+e+": ",i=r[e];if(i instanceof Uint8Array||i instanceof Uint32Array){var n=Array.prototype.slice.call(new Uint8Array(i.buffer,i.byteOffset,i.byteLength)).map(function(e){return" "+("00"+e.toString(16)).slice(-2)}).join("").match(/.{1,24}/g);return n?1===n.length?t+"<"+n.join("").slice(1)+">":t+"<\n"+n.map(function(e){return a+"  "+e}).join("\n")+"\n"+a+"  >":t+"<>"}return t+JSON.stringify(i,null,2).split("\n").map(function(e,t){return 0===t?e:a+"  "+e}).join("\n")}).join("\n")+(r.boxes?"\n"+s(r.boxes,t+1):"")}).join("\n")},e.exports={inspect:n,textify:s,parseTfdt:p.tfdt,parseHdlr:p.hdlr,parseTfhd:p.tfhd,parseTrun:p.trun,parseSidx:p.sidx}},function(e,t,i){"use strict";var n=i(0),r=i(43),g=i(44),a=i(59);function s(e,t,i){var n=e;return r(t)?(i=t,"string"==typeof e&&(n={uri:e})):n=a(t,{uri:e}),n.callback=i,n}function y(e,t,i){return o(t=s(e,t,i))}function o(n){if(void 0===n.callback)throw new Error("callback argument missing");var r=!1,a=function(e,t,i){r||(r=!0,n.callback(e,t,i))};function t(e){return clearTimeout(o),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,a(e,m)}function e(){if(!s){var e;clearTimeout(o),e=n.useXDR&&void 0===u.status?200:1223===u.status?204:u.status;var t=m,i=null;return 0!==e?(t={body:function(){var e=void 0;if(e=u.response?u.response:u.responseText||function(e){if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;return""!==e.responseType||t?null:e.responseXML}(u),f)try{e=JSON.parse(e)}catch(e){}return e}(),statusCode:e,method:c,headers:{},url:l,rawRequest:u},u.getAllResponseHeaders&&(t.headers=g(u.getAllResponseHeaders()))):i=new Error("Internal XMLHttpRequest Error"),a(i,t,t.body)}}var i,s,o,u=n.xhr||null,l=(u=u||(n.cors||n.useXDR?new y.XDomainRequest:new y.XMLHttpRequest)).url=n.uri||n.url,c=u.method=n.method||"GET",h=n.body||n.data,d=u.headers=n.headers||{},p=!!n.sync,f=!1,m={body:void 0,headers:{},statusCode:0,method:c,url:l,rawRequest:u};if("json"in n&&!1!==n.json&&(f=!0,d.accept||d.Accept||(d.Accept="application/json"),"GET"!==c&&"HEAD"!==c&&(d["content-type"]||d["Content-Type"]||(d["Content-Type"]="application/json"),h=JSON.stringify(!0===n.json?h:n.json))),u.onreadystatechange=function(){4===u.readyState&&setTimeout(e,0)},u.onload=e,u.onerror=t,u.onprogress=function(){},u.onabort=function(){s=!0},u.ontimeout=t,u.open(c,l,!p,n.username,n.password),p||(u.withCredentials=!!n.withCredentials),!p&&0<n.timeout&&(o=setTimeout(function(){if(!s){s=!0,u.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",t(e)}},n.timeout)),u.setRequestHeader)for(i in d)d.hasOwnProperty(i)&&u.setRequestHeader(i,d[i]);else if(n.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(n.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in n&&(u.responseType=n.responseType),"beforeSend"in n&&"function"==typeof n.beforeSend&&n.beforeSend(u),u.send(h||null),u}(e.exports=y).XMLHttpRequest=n.XMLHttpRequest||function(){},y.XDomainRequest="withCredentials"in new y.XMLHttpRequest?y.XMLHttpRequest:n.XDomainRequest,function(e,t){for(var i=0;i<e.length;i++)t(e[i])}(["get","put","post","patch","head","delete"],function(n){y["delete"===n?"del":n]=function(e,t,i){return(t=s(e,t,i)).method=n.toUpperCase(),o(t)}})},function(e,t,i){var n=i(0),r=e.exports={WebVTT:i(60),VTTCue:i(61),VTTRegion:i(62)};n.vttjs=r,n.WebVTT=r.WebVTT;var a=r.VTTCue,s=r.VTTRegion,o=n.VTTCue,u=n.VTTRegion;r.shim=function(){n.VTTCue=a,n.VTTRegion=s},r.restore=function(){n.VTTCue=o,n.VTTRegion=u},n.VTTCue||r.shim()},function(e,t,i){var n,c,r,a,h;n=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/\?#]*\/)*.*?)??(;.*?)?(\?.*?)?(#.*?)?$/,c=/^([^\/?#]*)(.*)$/,r=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g,h={buildAbsoluteURL:function(e,t,i){if(i=i||{},e=e.trim(),!(t=t.trim())){if(!i.alwaysNormalize)return e;var n=h.parseURL(e);if(!n)throw new Error("Error trying to parse base URL.");return n.path=h.normalizePath(n.path),h.buildURLFromParts(n)}var r=h.parseURL(t);if(!r)throw new Error("Error trying to parse relative URL.");if(r.scheme)return i.alwaysNormalize?(r.path=h.normalizePath(r.path),h.buildURLFromParts(r)):t;var a=h.parseURL(e);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var s=c.exec(a.path);a.netLoc=s[1],a.path=s[2]}a.netLoc&&!a.path&&(a.path="/");var o={scheme:a.scheme,netLoc:r.netLoc,path:null,params:r.params,query:r.query,fragment:r.fragment};if(!r.netLoc&&(o.netLoc=a.netLoc,"/"!==r.path[0]))if(r.path){var u=a.path,l=u.substring(0,u.lastIndexOf("/")+1)+r.path;o.path=h.normalizePath(l)}else o.path=a.path,r.params||(o.params=a.params,r.query||(o.query=a.query));return null===o.path&&(o.path=i.alwaysNormalize?h.normalizePath(r.path):r.path),h.buildURLFromParts(o)},parseURL:function(e){var t=n.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(r,"");e.length!==(e=e.replace(a,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=h},function(e,t,i){"use strict";function a(e,t,i,n){t in e&&(!function(e){return"function"==typeof e&&"[object Function]"===r.call(e)}(n)||!n())||(c?l(e,t,{configurable:!0,enumerable:!1,value:i,writable:!0}):e[t]=i)}function n(e,t){var i=2<arguments.length?arguments[2]:{},n=s(t);o&&(n=u.call(n,Object.getOwnPropertySymbols(t)));for(var r=0;r<n.length;r+=1)a(e,n[r],t[n[r]],i[n[r]])}var s=i(47),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),r=Object.prototype.toString,u=Array.prototype.concat,l=Object.defineProperty,c=l&&function(){var e={};try{for(var t in l(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}();n.supportsDescriptors=!!c,e.exports=n},function(e,t,i){"use strict";var n=i(16),r=i(49),a=n.call(Function.call,String.prototype.replace),s=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,o=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){var e=r.ToString(r.CheckObjectCoercible(this));return a(a(e,s,""),o,"")}},function(e,t,i){"use strict";var n,r=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,s=Object.getPrototypeOf||function(e){return e.__proto__},o=n,u="undefined"==typeof Uint8Array?n:s(Uint8Array),l={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":a?s([][Symbol.iterator]()):n,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":n,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":n,"$ %AsyncGenerator%":n,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":n,"$ %AsyncIteratorPrototype%":o&&a&&Symbol.asyncIterator?o[Symbol.asyncIterator]():n,"$ %Atomics%":"undefined"==typeof Atomics?n:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?n:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?n:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?n:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?n:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":n,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":n,"$ %Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?n:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?n:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?n:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":a?s(s([][Symbol.iterator]())):n,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?n:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&a?s((new Map)[Symbol.iterator]()):n,"$ %MapPrototype%":"undefined"==typeof Map?n:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?n:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?n:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?n:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?n:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?n:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?n:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?n:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?n:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?n:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&a?s((new Set)[Symbol.iterator]()):n,"$ %SetPrototype%":"undefined"==typeof Set?n:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":a?s(""[Symbol.iterator]()):n,"$ %StringPrototype%":String.prototype,"$ %Symbol%":a?Symbol:n,"$ %SymbolPrototype%":a?Symbol.prototype:n,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":r,"$ %TypedArray%":u,"$ %TypedArrayPrototype%":u?u.prototype:n,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?n:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?n:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?n:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?n:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?n:WeakSet.prototype};e.exports=function(e,t){if(1<arguments.length&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var i="$ "+e;if(!(i in l))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===l[i]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return l[i]}},function(e,t,i){"use strict";var n=i(16);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,i){"use strict";var n=i(23);e.exports=function(){return String.prototype.trim&&"​"==="​".trim()?String.prototype.trim:n}},function(e,t){e.exports={toUnsigned:function(e){return e>>>0},toHexString:function(e){return("00"+e.toString(16)).slice(-2)}}},function(e,t,i){"use strict";e.exports={parseSei:function(e){for(var t=0,i={payloadType:-1,payloadSize:0},n=0,r=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)n+=255,t++;for(n+=e[t++];255===e[t];)r+=255,t++;if(r+=e[t++],!i.payload&&4===n){i.payloadType=n,i.payloadSize=r,i.payload=e.subarray(t,t+r);break}t+=r,r=n=0}return i},parseUserData:function(e){return 181!==e.payload[0]?null:49!=(e.payload[1]<<8|e.payload[2])?null:"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])?null:3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},parseCaptionPackets:function(e,t){var i,n,r,a,s=[];if(!(64&t[0]))return s;for(n=31&t[0],i=0;i<n;i++)a={type:3&t[2+(r=3*i)],pts:e},4&t[2+r]&&(a.ccData=t[3+r]<<8|t[4+r],s.push(a));return s},discardEmulationPreventionBytes:function(e){for(var t,i,n=e.byteLength,r=[],a=1;a<n-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return e;t=n-r.length,i=new Uint8Array(t);var s=0;for(a=0;a<t;s++,a++)s===r[0]&&(s++,r.shift()),i[a]=e[s];return i},USER_DATA_REGISTERED_ITU_T_T35:4}},function(e,t,i){"use strict";function n(){this.init=function(){var a={};this.on=function(e,t){a[e]||(a[e]=[]),a[e]=a[e].concat(t)},this.off=function(e,t){var i;return!!a[e]&&(i=a[e].indexOf(t),a[e]=a[e].slice(),a[e].splice(i,1),-1<i)},this.trigger=function(e){var t,i,n,r;if(t=a[e])if(2===arguments.length)for(n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);else{for(r=[],i=arguments.length,i=1;i<arguments.length;++i)r.push(arguments[i]);for(n=t.length,i=0;i<n;++i)t[i].apply(this,r)}},this.dispose=function(){a={}}}}n.prototype.pipe=function(t){return this.on("data",function(e){t.push(e)}),this.on("done",function(e){t.flush(e)}),this.on("partialdone",function(e){t.partialFlush(e)}),this.on("endedtimeline",function(e){t.endTimeline(e)}),this.on("reset",function(e){t.reset(e)}),t},n.prototype.push=function(e){this.trigger("data",e)},n.prototype.flush=function(e){this.trigger("done",e)},n.prototype.partialFlush=function(e){this.trigger("partialdone",e)},n.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},n.prototype.reset=function(e){this.trigger("reset",e)},e.exports=n},function(e,t,i){"use strict";e.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},function(e,t,i){"use strict";function r(e){for(var t=new ArrayBuffer(e.length),i=new Uint8Array(t),n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return i}function n(){if(OO.localStorage){var e=OO.localStorage.getItem("oo_auth_token");if(e&&!_.isEmpty(e))return e}return null}function o(e,t,i){if(e)return OO.log(a,"Error retrieving Fairplay certificate",e),void i(e);var n=t.certificate.replace(/-/g,"+").replace(/_/g,"/");n=OO.decode64(n),i(null,r(n))}function u(e){var t=e.filter(function(e){return 0!==e}),i=String.fromCharCode.apply(null,t),n=decodeURIComponent(i),r=n.indexOf("skd://");return-1<r?n.substring(r+"skd://".length):(OO.log(a,"Fairplay: Incorrect contentId"),null)}function l(e,t,i){var n=btoa(String.fromCharCode.apply(null,e)),r={spc:n=n.replace(/\+/g,"-").replace(/\//g,"_"),asset_id:i,auth_token:t};return JSON.stringify(r)}function c(e,t,i){if(e)return OO.log(a,"Error retrieving Fairplay certificate",e),void i(e);var n=JSON.parse(t).ckc;_.isEmpty(n)?OO.log(a,"Fairplay: Missing CKC"):(n=n.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,""),n=atob(n),i(null,r(n)))}var a="vjs: ",h="com.microsoft.playready";e.exports={getSupportedEncodings:function(){var e=[];return OO.isIos?[]:(OO.isSafari||(e.push(OO.VIDEO.ENCODING.DASH),e.push(OO.VIDEO.ENCODING.DRM.DASH)),e.push(OO.VIDEO.ENCODING.MP4),e.push(OO.VIDEO.ENCODING.WEBM),e.push(OO.VIDEO.ENCODING.AUDIO_OGG),e.push(OO.VIDEO.ENCODING.AUDIO_M4A),OO.isSmartTV||OO.isRimDevice||OO.isMacOs&&!OO.isMacOsLionOrLater||(e.push(OO.VIDEO.ENCODING.HLS),OO.isChrome||OO.isAndroid||e.push(OO.VIDEO.ENCODING.AUDIO_HLS)),e.push(OO.VIDEO.ENCODING.DRM.HLS),e)},getSourceType:function(e){switch(e){case OO.VIDEO.ENCODING.HLS:case OO.VIDEO.ENCODING.AKAMAI_HD2_VOD_HLS:case OO.VIDEO.ENCODING.AKAMAI_HD2_HLS:case OO.VIDEO.ENCODING.AUDIO_HLS:case OO.VIDEO.ENCODING.DRM.HLS:return"application/x-mpegURL";case OO.VIDEO.ENCODING.DRM.DASH:case OO.VIDEO.ENCODING.DASH:return"application/dash+xml";case OO.VIDEO.ENCODING.MP4:return"video/mp4";case OO.VIDEO.ENCODING.AUDIO_OGG:return"audio/ogg";case OO.VIDEO.ENCODING.AUDIO_M4A:return"audio/mp4";default:return null}},stringToByteArray:r,getOOAuthToken:n,getKeySystems:function(r,a){var s=n(),e={};if(r.playready){e[h]={licenseHeaders:{"ooyala-auth-token":s}};var t=r.playready.LA_URL||r.playready.la_url;t&&(e[h].url=t)}return r.widevine&&(e["com.widevine.alpha"]={url:r.widevine.la_url}),r.fairplay&&(e["com.apple.fps.1_0"]={getCertificate:function(e,n){a({url:r.fairplay.certificate_url,method:"GET",responseType:"json"},function(e,t,i){o(e,i,n)})},getContentId:function(e,t){return u(t)},getLicense:function(e,t,i,n){a({url:r.fairplay.la_url,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:l(i,s,t)},function(e,t,i){c(e,i,n)})}}),e},getFairplayCertificate:o,getFairplayContentId:u,getFairplayLicense:c,getLicenseBody:l,normalizeAudioTrackName:function(e){return e.replace(/und \((.*)\)/,"$1")}}},function(e,t){e.exports=function(e,t){var i,n=null;try{i=JSON.parse(e,t)}catch(e){n=e}return[n,i]}},function(e,t,i){"use strict";function d(e,t){for(var i=e,n=0;n<t.length;n++){var r=t[n];if(i<r.size)return r;i-=r.size}return null}function l(e,c){var n=f.findBox(e,["moof","traf"]),t=f.findBox(e,["mdat"]),h={},r=[];return t.forEach(function(e,t){var i=n[t];r.push({mdat:e,traf:i})}),r.forEach(function(e){var t,i=e.mdat,n=e.traf,r=f.findBox(n,["tfhd"]),a=m.parseTfhd(r[0]),s=a.trackId,o=f.findBox(n,["tfdt"]),u=0<o.length?m.parseTfdt(o[0]).baseMediaDecodeTime:0,l=f.findBox(n,["trun"]);c===s&&0<l.length&&(t=function(e,t,i){var n,r,a,s,o=new DataView(e.buffer,e.byteOffset,e.byteLength),u=[];for(r=0;r+4<e.length;r+=a)if(a=o.getUint32(r),r+=4,!(a<=0))switch(31&e[r]){case 6:var l=e.subarray(r+1,r+1+a),c=d(r,t);n={nalUnitType:"sei_rbsp",size:a,data:l,escapedRBSP:p(l),trackId:i},c?(n.pts=c.pts,n.dts=c.dts,s=c):(n.pts=s.pts,n.dts=s.dts),u.push(n)}return u}(i,function(e,t,i){var n=t,r=i.defaultSampleDuration||0,a=i.defaultSampleSize||0,s=i.trackId,o=[];return e.forEach(function(e){var t=m.parseTrun(e).samples;t.forEach(function(e){void 0===e.duration&&(e.duration=r),void 0===e.size&&(e.size=a),e.trackId=s,e.dts=n,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),e.pts=n+e.compositionTimeOffset,n+=e.duration}),o=o.concat(t)}),o}(l,u,a),s),h[s]||(h[s]=[]),h[s]=h[s].concat(t))}),h}var p=i(28).discardEmulationPreventionBytes,r=i(63).CaptionStream,f=i(4),m=i(18);e.exports=function(){var t,a,s,o,u,i,n=!1;this.isInitialized=function(){return n},this.init=function(e){t=new r,n=!0,i=!!e&&e.isPartial,t.on("data",function(e){e.startTime=e.startPts/o,e.endTime=e.endPts/o,u.captions.push(e),u.captionStreams[e.stream]=!0})},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length)&&(s!==e[0]||o!==t[s])},this.parse=function(e,t,i){var n;if(!this.isInitialized())return null;if(!t||!i)return null;if(this.isNewInit(t,i))s=t[0],o=i[s];else if(null===s||!o)return a.push(e),null;for(;0<a.length;){var r=a.shift();this.parse(r,t,i)}return null!==(n=function(e,t,i){return null===t?null:{seiNals:l(e,t)[t],timescale:i}}(e,s,o))&&n.seiNals?(this.pushNals(n.seiNals),this.flushStream(),u):null},this.pushNals=function(e){if(!this.isInitialized()||!e||0===e.length)return null;e.forEach(function(e){t.push(e)})},this.flushStream=function(){if(!this.isInitialized())return null;i?t.partialFlush():t.flush()},this.clearParsedCaptions=function(){u.captions=[],u.captionStreams={}},this.resetCaptionStream=function(){if(!this.isInitialized())return null;t.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){a=[],o=s=null,u?this.clearParsedCaptions():u={captions:[],captionStreams:{}},this.resetCaptionStream()},this.reset()}},function(e,t,i){"use strict";var r=i(30),a=i(64).handleRollover,m={};m.ts=i(65),m.aac=i(66);function s(e,t,i){for(var n,r,a,s,o=0,u=188,l=!1;u<=e.byteLength;)if(71!==e[o]||71!==e[u]&&u!==e.byteLength)o++,u++;else{switch(n=e.subarray(o,u),m.ts.parseType(n,t.pid)){case"pes":r=m.ts.parsePesType(n,t.table),a=m.ts.parsePayloadUnitStartIndicator(n),"audio"===r&&a&&(s=m.ts.parsePesTime(n))&&(s.type="audio",i.audio.push(s),l=!0)}if(l)break;o+=188,u+=188}for(o=(u=e.byteLength)-188,l=!1;0<=o;)if(71!==e[o]||71!==e[u]&&u!==e.byteLength)o--,u--;else{switch(n=e.subarray(o,u),m.ts.parseType(n,t.pid)){case"pes":r=m.ts.parsePesType(n,t.table),a=m.ts.parsePayloadUnitStartIndicator(n),"audio"===r&&a&&(s=m.ts.parsePesTime(n))&&(s.type="audio",i.audio.push(s),l=!0)}if(l)break;o-=188,u-=188}}function o(e,t,i){for(var n,r,a,s,o,u,l,c=0,h=188,d=!1,p={data:[],size:0};h<e.byteLength;)if(71!==e[c]||71!==e[h])c++,h++;else{switch(n=e.subarray(c,h),m.ts.parseType(n,t.pid)){case"pes":if(r=m.ts.parsePesType(n,t.table),a=m.ts.parsePayloadUnitStartIndicator(n),"video"===r&&(a&&!d&&(s=m.ts.parsePesTime(n))&&(s.type="video",i.video.push(s),d=!0),!i.firstKeyFrame)){if(a&&0!==p.size){for(o=new Uint8Array(p.size),u=0;p.data.length;)l=p.data.shift(),o.set(l,u),u+=l.byteLength;if(m.ts.videoPacketContainsKeyFrame(o)){var f=m.ts.parsePesTime(o);f?(i.firstKeyFrame=f,i.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}p.size=0}p.data.push(n),p.size+=n.byteLength}}if(d&&i.firstKeyFrame)break;c+=188,h+=188}for(c=(h=e.byteLength)-188,d=!1;0<=c;)if(71!==e[c]||71!==e[h])c--,h--;else{switch(n=e.subarray(c,h),m.ts.parseType(n,t.pid)){case"pes":r=m.ts.parsePesType(n,t.table),a=m.ts.parsePayloadUnitStartIndicator(n),"video"===r&&a&&(s=m.ts.parsePesTime(n))&&(s.type="video",i.video.push(s),d=!0)}if(d)break;c-=188,h-=188}}function n(e){var t={pid:null,table:null},i={};for(var n in function(e,t){for(var i,n=0,r=188;r<e.byteLength;)if(71!==e[n]||71!==e[r])n++,r++;else{switch(i=e.subarray(n,r),m.ts.parseType(i,t.pid)){case"pat":t.pid||(t.pid=m.ts.parsePat(i));break;case"pmt":t.table||(t.table=m.ts.parsePmt(i))}if(t.pid&&t.table)return;n+=188,r+=188}}(e,t),t.table){if(t.table.hasOwnProperty(n))switch(t.table[n]){case r.H264_STREAM_TYPE:i.video=[],o(e,t,i),0===i.video.length&&delete i.video;break;case r.ADTS_STREAM_TYPE:i.audio=[],s(e,t,i),0===i.audio.length&&delete i.audio}}return i}var l=i(67).ONE_SECOND_IN_TS;e.exports={inspect:function(e,t){var i;return(i=m.aac.isLikelyAacData(e)?function(e){for(var t,i=!1,n=0,r=null,a=null,s=0,o=0;3<=e.length-o;){switch(m.aac.parseType(e,o)){case"timed-metadata":if(e.length-o<10){i=!0;break}if((s=m.aac.parseId3TagSize(e,o))>e.length){i=!0;break}null===a&&(t=e.subarray(o,o+s),a=m.aac.parseAacTimestamp(t)),o+=s;break;case"audio":if(e.length-o<7){i=!0;break}if((s=m.aac.parseAdtsSize(e,o))>e.length){i=!0;break}null===r&&(t=e.subarray(o,o+s),r=m.aac.parseSampleRate(t)),n++,o+=s;break;default:o++}if(i)return null}if(null===r||null===a)return null;var u=l/r;return{audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*n*u,pts:a+1024*n*u}]}}(e):n(e))&&(i.audio||i.video)?(function(e,t){if(e.audio&&e.audio.length){var i=t;void 0===i&&(i=e.audio[0].dts),e.audio.forEach(function(e){e.dts=a(e.dts,i),e.pts=a(e.pts,i),e.dtsTime=e.dts/l,e.ptsTime=e.pts/l})}if(e.video&&e.video.length){var n=t;if(void 0===n&&(n=e.video[0].dts),e.video.forEach(function(e){e.dts=a(e.dts,n),e.pts=a(e.pts,n),e.dtsTime=e.dts/l,e.ptsTime=e.pts/l}),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=a(r.dts,n),r.pts=a(r.pts,n),r.dtsTime=r.dts/l,r.ptsTime=r.dts/l}}}(i,t),i):null},parseAudioPes_:s}},,,,,function(e,t,i){"use strict";var n=i(40);OO.Video.plugin(new n)},function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=i(41),r=i(31).getSupportedEncodings,a="vjs-wrapper",s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=a,this.features=[OO.VIDEO.FEATURE.CLOSED_CAPTIONS,OO.VIDEO.FEATURE.BITRATE_CONTROL],this.encodings=r(),this.technology=OO.isIos||OO.isAndroid?OO.VIDEO.TECHNOLOGY.HTML5:OO.VIDEO.TECHNOLOGY.MIXED,this.maxSupportedElements=-1}return function(e,t,i){t&&n(e.prototype,t),i&&n(e,i)}(e,[{key:"create",value:function(e,t,i,n,r,a){var s=new o(e,t,i,a);return s.applyCss(n),s}},{key:"destroy",value:function(){OO.log("Destroy video plugin: ",a),this.encodings=[],this.create=function(){}}}]),e}();e.exports=s},function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function p(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e).value}function c(e,t,i){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");var n=t.get(e);if(!n.writable)throw new TypeError("attempted to set read only private field");return n.value=i}var s=i(3).default;i(68),i(69),i(70),i(6),i(13),i(14),i(15);var r=i(31),a=r.getKeySystems,o=r.normalizeAudioTrackName,h=r.getSourceType,u=i(72).default,l=u.createCustomDisplay,f=u.createTrack,m=u.setVisibility,g=u.addTrackListener,y=u.getSubtitleText,v="vjs: ",b=0,T=5,S=-1,k=4,E=6,w=function(){function r(e,t,i,n){var a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),C.set(this,{writable:!0,value:!1}),O.set(this,{writable:!0,value:0}),A.set(this,{writable:!0,value:0}),P.set(this,{writable:!0,value:!1}),I.set(this,{writable:!0,value:null}),L.set(this,{writable:!0,value:null}),x.set(this,{writable:!0,value:{auto:{id:"auto",width:0,height:0,bitrate:0}}}),D.set(this,{writable:!0,value:[]}),d(this,"setBitrate",function(t){var e=a.player.qualityLevels(),i=e.levels_.findIndex(function(e){return e.id===t});e.selectedIndex_=i,"auto"===t||-1===i?e.levels_.forEach(function(e){e.enabled=!0}):(e.levels_.forEach(function(e){e.enabled=!1}),e[i].enabled=!0),e.trigger({type:"change",selectedIndex:i})}),d(this,"destroy",function(){a.player.pause(),a.currentUrl=null,a.isLoadingSource=!1,a.player.dispose(),p(a,L).off("fullscreenchange webkitfullscreenchange mozfullscreenchange",p(a,J)),OO.$(document).off("MSFullscreenChange",p(a,Q)),c(a,D,[])}),d(this,"onPlayerCreated",function(){OO.log("%cVideoJs player version: ".concat(s.VERSION," has been setup on elementId: ").concat(a.el.getAttribute("id")),"color: blue; font-weight: bold"),OO.log(v,"Player global config:",a.config),a.subscribeAllEvents()}),d(this,"onSSAICuePoint",function(){var e=a.player.id3CuePointsTrack();if(e.activeCues)for(var t=0;t<e.activeCues.length;t++){var i=OO.isSafari?e.activeCues[t].value:e.activeCues[t].frame;if("TXXX"===i.key){var n={TXXX:i.data,frames:[{data:i.data,info:i.description,key:i.key}]};a.controller.notify(a.controller.EVENTS.METADATA_FOUND,{type:"ID3",data:n})}}}),d(this,"handleFailover",function(e){c(a,C,!0),c(a,O,e)}),R.set(this,{writable:!0,value:function(){var e={currentTime:p(a,Z).call(a),duration:p(a,ie).call(a),buffer:a.player.buffered().end(0),seekRange:p(a,te).call(a)};p(a,C)||a.controller.notify(a.controller.EVENTS.PROGRESS,e)}}),U.set(this,{writable:!0,value:function(e){a.controller.notify(a.controller.EVENTS.FULLSCREEN_CHANGED,{isFullScreen:!!e,paused:a.player.paused()})}}),M.set(this,{writable:!0,value:function(){c(a,A,Date.now())}}),N.set(this,{writable:!0,value:function(){var e=a.player.audioTracks();e.removeEventListener("change",p(a,B)),e.addEventListener("change",p(a,B)),p(a,B).call(a);var t=a.player.id3CuePointsTrack();t.removeEventListener("cuechange",a.onSSAICuePoint),t.addEventListener("cuechange",a.onSSAICuePoint)}}),j.set(this,{writable:!0,value:function(){var e=a.player.playbackRate();a.controller.notify(a.controller.EVENTS.PLAYBACK_RATE_CHANGE,{playbackRate:e})}}),B.set(this,{writable:!0,value:function(e){for(var t=a.player.audioTracks(),i=[],n=0;n<t.length;n++)i[n]={id:o(t[n].id),lang:t[n].language,label:o(t[n].label),enabled:t[n].enabled};var r=e?a.controller.EVENTS.MULTI_AUDIO_CHANGED:a.controller.EVENTS.MULTI_AUDIO_AVAILABLE;a.controller.notify(r,i)}}),F.set(this,{writable:!0,value:function(e){OO.log(v,"received event: ",e),p(a,C)&&(a.seek(p(a,O)),c(a,C,!1)),a.controller.notify(a.controller.EVENTS.PLAY,{url:a.currentUrl})}}),V.set(this,{writable:!0,value:function(e){OO.log(v,"received event: ",e),a.controller.notify(a.controller.EVENTS.PLAYING)}}),H.set(this,{writable:!0,value:function(){a.controller.notify(a.controller.EVENTS.PAUSED)}}),q.set(this,{writable:!0,value:function(){a.controller.notify(a.controller.EVENTS.BUFFERING,{url:a.currentUrl}),a.controller.notify(a.controller.EVENTS.SEEKING,a.seekTarget)}}),W.set(this,{writable:!0,value:function(){a.seekTarget=null,a.controller.notify(a.controller.EVENTS.BUFFERED,{url:a.currentUrl}),a.controller.notify(a.controller.EVENTS.SEEKED)}}),G.set(this,{writable:!0,value:function(){var e=a.player.muted();e!==p(a,P)?(a.controller.notify(a.controller.EVENTS.MUTE_STATE_CHANGE,{muted:e}),c(a,P,e)):a.controller.notify(a.controller.EVENTS.VOLUME_CHANGE,{volume:a.player.volume()})}}),z.set(this,{writable:!0,value:function(){OO.log(v,"onWaiting"),a.controller.notify(a.controller.EVENTS.BUFFERING,{url:a.currentUrl})}}),$.set(this,{writable:!0,value:function(){var e=p(a,Z).call(a),t=p(a,ie).call(a),i={currentTime:e,currentLiveTime:p(a,ee).call(a),duration:t,buffer:a.player.bufferedEnd(),seekRange:p(a,te).call(a)};a.controller.notify(a.controller.EVENTS.TIME_UPDATE,i)}}),K.set(this,{writable:!0,value:function(){a.controller.notify(a.controller.EVENTS.ENDED)}}),X.set(this,{writable:!0,value:function(e){e.src&&(a.controller.markReady(),a.isLoadingSource=!1,p(a,ne).call(a))}}),Y.set(this,{writable:!0,value:function(){var e=a.player.error();if(e&&"number"==typeof e.code)switch(e.code){case b:a.controller.notify(a.controller.EVENTS.ERROR,{errorcode:S});break;case T:a.controller.notify(a.controller.EVENTS.ERROR,{errorcode:E});break;default:a.controller.notify(a.controller.EVENTS.ERROR,{errorcode:e.code})}}}),J.set(this,{writable:!0,value:function(){var e=document.fullscreen||document.mozFullScreen||document.webkitIsFullScreen||document.webkitDisplayingFullscreen||document.msFullscreenElement;p(a,U).call(a,!!e)}}),Q.set(this,{writable:!0,value:function(){var e=OO.$(document.msFullscreenElement).is(p(a,L));p(a,U).call(a,!!e)}}),Z.set(this,{writable:!0,value:function(){var e=a.player.liveTracker.isLive(),t=a.player.currentTime();if(!e)return t;var i=p(a,ie).call(a);if(a.player.liveTracker.atLiveEdge())return i;var n=i-a.player.liveTracker.liveWindow()+t;return Math.min(n,i)}}),ee.set(this,{writable:!0,value:function(){if(!a.player.liveTracker.isLive())return 0;var e=a.player.liveTracker.liveCurrentTime(),t=p(a,ie).call(a);return _.isFinite(e)?e+p(a,A)/1e3-t:0}}),te.set(this,{writable:!0,value:function(){var e=a.player;if(e.liveTracker.isLive())return{start:e.liveTracker.seekableStart(0),end:e.liveTracker.seekableEnd(0)};var t=e.seekable();return 0<t.length?{start:t.start(0),end:t.end(0)}:{start:0,end:e.duration()}}}),ie.set(this,{writable:!0,value:function(){if(a.player.liveTracker.isLive())return a.player.liveTracker.liveWindow();var e=a.player.duration();if(_.isFinite(e))return e;var t=p(a,te).call(a),i=t.start;return t.end-i}}),ne.set(this,{writable:!0,value:function(){var e=a.player.qualityLevels();e.off("addqualitylevel",p(a,re)),e.off("change",p(a,ae)),e.on("addqualitylevel",p(a,re)),e.on("change",p(a,ae))}}),re.set(this,{writable:!0,value:function(e){var t=e.qualityLevel;p(a,x)[t.bitrate]||(p(a,x)[t.bitrate]=t,a.controller.notify(a.controller.EVENTS.BITRATES_AVAILABLE,Object.values(p(a,x))))}}),ae.set(this,{writable:!0,value:function(){var e=a.player.qualityLevels(),t=e[e.selectedIndex_],i=t?t.bitrate:"auto";a.controller.notify(a.controller.EVENTS.BITRATE_CHANGED,p(a,x)[i])}}),se.set(this,{writable:!0,value:function(){a.player.liveTracker.isLive()&&0===p(a,I)||_.isFinite(p(a,I))&&a.seek(p(a,I))}}),this.el=document.createElement("video"),this.controller=i,this.currentUrl=null,this.seekTarget=null,this.keySystems=null,this.isLoadingSource=!1,this.ccContainer=null,this.currentTrackId=null,this.config={preload:"none",controls:!1,enableSourceset:!0,children:["MediaLoader","liveTracker"],plugins:{proxyTracks:{}},html5:{nativeTextTracks:OO.isSafari,hls:{overrideNative:!OO.isSafari}}},OO._.extend(this.config,n),this.el.setAttribute("id",t),this.el.classList.add("video"),e.append(this.el),this.ccContainer=l(this.ccContainer,e),c(this,L,e),this.player=s(this.el,this.config,this.onPlayerCreated)}return function(e,t,i){t&&n(e.prototype,t),i&&n(e,i)}(r,[{key:"setVideoUrl",value:function(e,t,i,n){var r=3<arguments.length&&void 0!==n?n:0;if(!this.isLoadingSource&&e!==this.currentUrl&&e){c(this,D,[]);var a=h(t);if(!a||!t)return OO.log(v,"Error unknown encoding: ",t),void this.controller.notify(this.controller.EVENTS.ERROR,{errorcode:k});this.isLoadingSource=!0,this.currentUrl=e,c(this,C,!1),c(this,O,0),c(this,A,0);var s={src:e,type:a},o=!!this.keySystems&&!!Object.keys(this.keySystems).length;if(o&&(this.player.eme(),s.keySystems=this.keySystems,OO.isEdge&&s.keySystems["com.microsoft.playready"]&&!s.keySystems["com.microsoft.playready"].url)){var u=this.controller.authenticationData.pcode,l=this.currentUrl.split("/")[3];s.keySystems["com.microsoft.playready"].url="".concat(OO.SERVER.AUTH,"/drm2/").concat(u,"/").concat(l,"/playready_cenc/ooyala/version/1")}if((t===OO.VIDEO.ENCODING.DRM.HLS||t===OO.VIDEO.ENCODING.DRM.DASH)&&(!o||!OO.isSSL))throw this.controller.notify(this.controller.EVENTS.ERROR,{errorcode:E}),new Error("Missing DRM data, url: ".concat(e,", encoding: ").concat(t,", SSL enabled: ").concat(OO.isSSL));_.isFinite(r)?c(this,I,r):c(this,I,null),this.player.src(s)}}},{key:"setDRM",value:function(e){OO.log(v,"DRM detected"),e&&!_.isEmpty(e)&&(this.keySystems=a(e,s.xhr))}},{key:"setClosedCaptions",value:function(e,t,i){var n=this,r=1<arguments.length&&void 0!==t?t:{},a=2<arguments.length&&void 0!==i?i:{};if(e&&"unknown"!==e&&a.mode!==OO.CONSTANTS.CLOSED_CAPTIONS.DISABLED){var s=!0;a&&a.mode===OO.CONSTANTS.CLOSED_CAPTIONS.HIDDEN&&(s=!1);var o=this.player.textTracks().tracks_,u=void 0===o?[]:o,l=f(e,r,u,this.currentTrackId),c=this.ccContainer?this.ccContainer.find("ol.vjsSubtitles"):[];if(l){this.player.removeRemoteTextTrack(u.find(function(e){return e.id===n.currentTrackId})),this.player.addRemoteTextTrack(l,!1);if(this.currentTrackId=g(u,e,c,function(e){n.controller.notify(n.controller.EVENTS.CLOSED_CAPTION_CUE_CHANGED,y(e))}),!p(this,D).find(function(e){return e.language===l.language})){p(this,D).push(l);var h={languages:p(this,D).map(function(e){return e.language}),locale:p(this,D).reduce(function(e,t){return function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(e){d(t,e,i[e])})}return t}({},e,d({},t.language,t.label))},{})};this.controller.notify(this.controller.EVENTS.CAPTIONS_FOUND_ON_PLAYING,h)}}m(s,c)}}},{key:"setClosedCaptionsMode",value:function(e){var t=this,i=this.player.textTracks().tracks_,n=void 0===i?[]:i,r=this.ccContainer?this.ccContainer.find("ol.vjsSubtitles"):[];switch(e){case OO.CONSTANTS.CLOSED_CAPTIONS.DISABLED:var a=n.find(function(e){return e.id===t.currentTrackId});a&&(a.mode="disabled");break;case OO.CONSTANTS.CLOSED_CAPTIONS.SHOWING:m(!0,r);break;case OO.CONSTANTS.CLOSED_CAPTIONS.HIDDEN:m(!1,r)}}},{key:"play",value:function(){return this.player.play()}},{key:"pause",value:function(){this.player.pause()}},{key:"seek",value:function(e){this.seekTarget=e,this.player.currentTime(e)}},{key:"setVolume",value:function(e){var t=e;t<0?t=0:1<t&&(t=1),this.player.volume(t)}},{key:"setAudio",value:function(e){var t=this.player.audioTracks().getTrackById(e);t?t.enabled=!0:console.warn("Track id '".concat(e,"' not found in the list of tracks. Ignoring"))}},{key:"mute",value:function(){this.player.muted(!0)}},{key:"unmute",value:function(){this.player.muted(!1)}},{key:"isMuted",value:function(){return this.player.muted()}},{key:"setPlaybackSpeed",value:function(e){this.player.liveTracker.isLive()||this.player.playbackRate(e)}},{key:"load",value:function(){this.player.preload("auto")}},{key:"applyCss",value:function(e){OO.$(this.player.contentEl()).css(e)}},{key:"subscribeAllEvents",value:function(){var t=this,i={play:p(this,F),playing:p(this,V),pause:p(this,H),seeking:p(this,q),seeked:p(this,W),timeupdate:p(this,$),ended:p(this,K),error:p(this,Y),sourceset:p(this,X),volumechange:p(this,G),waiting:p(this,z),loadeddata:p(this,N),ratechange:p(this,j),progress:p(this,R)};Object.keys(i).forEach(function(e){return t.player.on(e,i[e])}),this.player.one("play",p(this,M)),this.player.one("canplay",p(this,se)),p(this,L).on("fullscreenchange webkitfullscreenchange mozfullscreenchange",p(this,J)),OO.$(document).on("MSFullscreenChange",p(this,Q))}}]),r}(),C=new WeakMap,O=new WeakMap,A=new WeakMap,P=new WeakMap,I=new WeakMap,L=new WeakMap,x=new WeakMap,D=new WeakMap,R=new WeakMap,U=new WeakMap,M=new WeakMap,N=new WeakMap,j=new WeakMap,B=new WeakMap,F=new WeakMap,V=new WeakMap,H=new WeakMap,q=new WeakMap,W=new WeakMap,G=new WeakMap,z=new WeakMap,$=new WeakMap,K=new WeakMap,X=new WeakMap,Y=new WeakMap,J=new WeakMap,Q=new WeakMap,Z=new WeakMap,ee=new WeakMap,te=new WeakMap,ie=new WeakMap,ne=new WeakMap,re=new WeakMap,ae=new WeakMap,se=new WeakMap;e.exports=w},function(e,t){},function(e,t){e.exports=function(e){var t=i.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var i=Object.prototype.toString},function(e,t,i){var a=i(45),n=i(58);e.exports=function(e){if(!e)return{};var r={};return n(a(e).split("\n"),function(e){var t=e.indexOf(":"),i=a(e.slice(0,t)).toLowerCase(),n=a(e.slice(t+1));void 0===r[i]?r[i]=n:!function(e){return"[object Array]"===Object.prototype.toString.call(e)}(r[i])?r[i]=[r[i],n]:r[i].push(n)}),r}},function(e,t,i){"use strict";var n=i(16),r=i(22),a=i(23),s=i(26),o=i(57),u=n.call(Function.call,s());r(u,{getPolyfill:s,implementation:a,shim:o}),e.exports=u},function(e,t,i){"use strict";var u=Array.prototype.slice,l=Object.prototype.toString;e.exports=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==l.call(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var n,r=u.call(arguments,1),e=Math.max(0,i.length-r.length),a=[],s=0;s<e;s++)a.push("$"+s);if(n=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof n){var e=i.apply(this,r.concat(u.call(arguments)));return Object(e)===e?e:this}return i.apply(t,r.concat(u.call(arguments)))}),i.prototype){var o=function(){};o.prototype=i.prototype,n.prototype=new o,o.prototype=null}return n}},function(e,t,i){"use strict";function d(e){var t=e.constructor;return t&&t.prototype===e}function n(e){var t=null!==e&&"object"==typeof e,i="[object Function]"===f.call(e),n=m(e),r=t&&"[object String]"===f.call(e),a=[];if(!t&&!i&&!n)throw new TypeError("Object.keys called on a non-object");var s=y&&i;if(r&&0<e.length&&!p.call(e,0))for(var o=0;o<e.length;++o)a.push(String(o));if(n&&0<e.length)for(var u=0;u<e.length;++u)a.push(String(u));else for(var l in e)s&&"prototype"===l||!p.call(e,l)||a.push(String(l));if(g)for(var c=function(e){if("undefined"==typeof window||!_)return d(e);try{return d(e)}catch(e){return!1}}(e),h=0;h<v.length;++h)c&&"constructor"===v[h]||!p.call(e,v[h])||a.push(v[h]);return a}var p=Object.prototype.hasOwnProperty,f=Object.prototype.toString,r=Array.prototype.slice,m=i(48),a=Object.prototype.propertyIsEnumerable,g=!a.call({toString:null},"toString"),y=a.call(function(){},"prototype"),v=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},_=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!s["$"+e]&&p.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n.shim=function(){if(Object.keys){if(!function(){return 2===(Object.keys(arguments)||"").length}(1,2)){var t=Object.keys;Object.keys=function(e){return m(e)?t(r.call(e)):t(e)}}}else Object.keys=n;return Object.keys||n},e.exports=n},function(e,t,i){"use strict";var n=Object.prototype.toString;e.exports=function(e){var t=n.call(e),i="[object Arguments]"===t;return i=i||"[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&0<=e.length&&"[object Function]"===n.call(e.callee)}},function(e,t,i){"use strict";var n=i(24),r=n("%Object%"),a=n("%TypeError%"),s=n("%String%"),o=i(50),u=i(51),l=i(52),c=i(53),h=i(54),d=i(17),p=i(55),f=i(25),m={ToPrimitive:p,ToBoolean:function(e){return!!e},ToNumber:function(e){return+e},ToInteger:function(e){var t=this.ToNumber(e);return u(t)?0:0!==t&&l(t)?c(t)*Math.floor(Math.abs(t)):t},ToInt32:function(e){return this.ToNumber(e)>>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(u(t)||0===t||!l(t))return 0;var i=c(t)*Math.floor(Math.abs(t));return h(i,65536)},ToString:function(e){return s(e)},ToObject:function(e){return this.CheckObjectCoercible(e),r(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new a(t||"Cannot call method on "+e);return e},IsCallable:d,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:u(e)&&u(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var i in e)if(f(e,i)&&!t[i])return!1;var n=f(e,"[[Value]]"),r=f(e,"[[Get]]")||f(e,"[[Set]]");if(n&&r)throw new a("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){return void 0!==e&&(o(this,"Property Descriptor","Desc",e),!(!f(e,"[[Get]]")&&!f(e,"[[Set]]")))},IsDataDescriptor:function(e){return void 0!==e&&(o(this,"Property Descriptor","Desc",e),!(!f(e,"[[Value]]")&&!f(e,"[[Writable]]")))},IsGenericDescriptor:function(e){return void 0!==e&&(o(this,"Property Descriptor","Desc",e),!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e))},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(o(this,"Property Descriptor","Desc",e),this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new a("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new a("ToPropertyDescriptor requires an object");var t={};if(f(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),f(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),f(e,"value")&&(t["[[Value]]"]=e.value),f(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),f(e,"get")){var i=e.get;if(void 0!==i&&!this.IsCallable(i))throw new TypeError("getter must be a function");t["[[Get]]"]=i}if(f(e,"set")){var n=e.set;if(void 0!==n&&!this.IsCallable(n))throw new a("setter must be a function");t["[[Set]]"]=n}if((f(t,"[[Get]]")||f(t,"[[Set]]"))&&(f(t,"[[Value]]")||f(t,"[[Writable]]")))throw new a("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=m},function(e,t,i){"use strict";var n=i(24),s=n("%TypeError%"),a=n("%SyntaxError%"),o=i(25),u={"Property Descriptor":function(e,t){if("Object"!==e.Type(t))return!1;var i={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in t)if(o(t,n)&&!i[n])return!1;var r=o(t,"[[Value]]"),a=o(t,"[[Get]]")||o(t,"[[Set]]");if(r&&a)throw new s("Property Descriptors may not be both accessor and data descriptors");return!0}};e.exports=function(e,t,i,n){var r=u[t];if("function"!=typeof r)throw new a("unknown record type: "+t);if(!r(e,n))throw new s(i+" must be a "+t);console.log(r(e,n),n)}},function(e,t){e.exports=Number.isNaN||function(e){return e!=e}},function(e,t){var i=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!i(e)&&e!==1/0&&e!==-1/0}},function(e,t){e.exports=function(e){return 0<=e?1:-1}},function(e,t){e.exports=function(e,t){var i=e%t;return Math.floor(0<=i?i:i+t)}},function(e,t,i){"use strict";var a=Object.prototype.toString,s=i(56),o=i(17),n=function(e){var t;if((t=1<arguments.length?arguments[1]:"[object Date]"===a.call(e)?String:Number)!==String&&t!==Number)throw new TypeError("invalid [[DefaultValue]] hint supplied");var i,n,r=t===String?["toString","valueOf"]:["valueOf","toString"];for(n=0;n<r.length;++n)if(o(e[r[n]])&&(i=e[r[n]](),s(i)))return i;throw new TypeError("No default value")};e.exports=function(e,t){return s(e)?e:1<arguments.length?n(e,t):n(e)}},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,i){"use strict";var n=i(22),r=i(26);e.exports=function(){var e=r();return n(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}},function(e,t,i){"use strict";var r=i(17),a=Object.prototype.toString,s=Object.prototype.hasOwnProperty;e.exports=function(e,t,i){if(!r(t))throw new TypeError("iterator must be a function");var n;3<=arguments.length&&(n=i),"[object Array]"===a.call(e)?function(e,t,i){for(var n=0,r=e.length;n<r;n++)s.call(e,n)&&(null==i?t(e[n],n,e):t.call(i,e[n],n,e))}(e,t,n):"string"==typeof e?function(e,t,i){for(var n=0,r=e.length;n<r;n++)null==i?t(e.charAt(n),n,e):t.call(i,e.charAt(n),n,e)}(e,t,n):function(e,t,i){for(var n in e)s.call(e,n)&&(null==i?t(e[n],n,e):t.call(i,e[n],n,e))}(e,t,n)}},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var i=arguments[t];for(var n in i)r.call(i,n)&&(e[n]=i[n])}return e};var r=Object.prototype.hasOwnProperty},function(e,t){var i=Object.create||function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return n.prototype=e,new n};function n(){}function l(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function m(e){function t(e,t,i,n){return 3600*(0|e)+60*(0|t)+(0|i)+(0|n)/1e3}var i=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return i?i[3]?t(i[1],i[2],i[3].replace(":",""),i[4]):59<i[1]?t(i[1],i[2],0,i[4]):t(0,i[1],i[2],i[4]):null}function c(){this.values=i(null)}function h(e,t,i,n){var r=n?e.split(n):[e];for(var a in r)if("string"==typeof r[a]){var s=r[a].split(i);if(2===s.length)t(s[0],s[1])}}function u(t,e,a){var i,n,s,r=t;function o(){var e=m(t);if(null===e)throw new l(l.Errors.BadTimeStamp,"Malformed timestamp: "+r);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function u(){t=t.replace(/^\s+/,"")}if(u(),e.startTime=o(),u(),"--\x3e"!==t.substr(0,3))throw new l(l.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);t=t.substr(3),u(),e.endTime=o(),u(),i=t,n=e,s=new c,h(i,function(e,t){switch(e){case"region":for(var i=a.length-1;0<=i;i--)if(a[i].id===t){s.set(e,a[i].region);break}break;case"vertical":s.alt(e,t,["rl","lr"]);break;case"line":var n=t.split(","),r=n[0];s.integer(e,r),s.percent(e,r)&&s.set("snapToLines",!1),s.alt(e,r,["auto"]),2===n.length&&s.alt("lineAlign",n[1],["start","middle","end"]);break;case"position":n=t.split(","),s.percent(e,n[0]),2===n.length&&s.alt("positionAlign",n[1],["start","middle","end"]);break;case"size":s.percent(e,t);break;case"align":s.alt(e,t,["start","middle","end","left","right"])}},/:/,/\s/),n.region=s.get("region",null),n.vertical=s.get("vertical",""),n.line=s.get("line","auto"),n.lineAlign=s.get("lineAlign","start"),n.snapToLines=s.get("snapToLines",!0),n.size=s.get("size",100),n.align=s.get("align","middle"),n.position=s.get("position",{start:0,left:0,middle:50,end:100,right:100},n.align),n.positionAlign=s.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},n.align)}((l.prototype=i(Error.prototype)).constructor=l).Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},c.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,i){return i?this.has(e)?this.values[e]:t[i]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,i){for(var n=0;n<i.length;++n)if(t===i[n]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&0<=(t=parseFloat(t))&&t<=100)&&(this.set(e,t),!0)}};var g={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},y={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},v={v:"title",lang:"lang"},_={rt:"ruby"};function a(a,i){function e(){if(!i)return null;var e,t=i.match(/^([^<]*)(<[^>]*>?)?/);return e=t[1]?t[1]:t[2],i=i.substr(e.length),e}function t(e){return g[e]}function n(e){for(;f=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)e=e.replace(f[0],t);return e}function r(e,t){var i=y[e];if(!i)return null;var n=a.document.createElement(i);n.localName=i;var r=v[e];return r&&t&&(n[r]=t.trim()),n}for(var s,o,u,l=a.document.createElement("div"),c=l,h=[];null!==(s=e());)if("<"!==s[0])c.appendChild(a.document.createTextNode(n(s)));else{if("/"===s[1]){h.length&&h[h.length-1]===s.substr(2).replace(">","")&&(h.pop(),c=c.parentNode);continue}var d,p=m(s.substr(1,s.length-2));if(p){d=a.document.createProcessingInstruction("timestamp",p),c.appendChild(d);continue}var f=s.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!f)continue;if(!(d=r(f[1],f[3])))continue;if(o=c,_[(u=d).localName]&&_[u.localName]!==o.localName)continue;f[2]&&(d.className=f[2].substr(1).replace("."," ")),h.push(f[1]),c.appendChild(d),c=d}return l}var r=[[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]];function s(e){for(var t=0;t<r.length;t++){var i=r[t];if(e>=i[0]&&e<=i[1])return!0}return!1}function o(){}function d(e,t,i){o.call(this),this.cue=t,this.cueDiv=a(e,t.text);var n={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(n,this.cueDiv),this.div=e.document.createElement("div"),n={direction:function(e){var t=[],i="";if(!e||!e.childNodes)return"ltr";function r(e,t){for(var i=t.childNodes.length-1;0<=i;i--)e.push(t.childNodes[i])}function a(e){if(!e||!e.length)return null;var t=e.pop(),i=t.textContent||t.innerText;if(i){var n=i.match(/^.*(\n|\r)/);return n?n[e.length=0]:i}return"ruby"===t.tagName?a(e):t.childNodes?(r(e,t),a(e)):void 0}for(r(t,e);i=a(t);)for(var n=0;n<i.length;n++)if(s(i.charCodeAt(n)))return"rtl";return"ltr"}(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:i.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(n),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":r=t.position;break;case"middle":r=t.position-t.size/2;break;case"end":r=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function b(e){var t,i,n,r;if(e.div){i=e.div.offsetHeight,n=e.div.offsetWidth,r=e.div.offsetTop;var a=(a=e.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();e=e.div.getBoundingClientRect(),t=a?Math.max(a[0]&&a[0].height||0,e.height/a.length):0}this.left=e.left,this.right=e.right,this.top=e.top||r,this.height=e.height||i,this.bottom=e.bottom||r+(e.height||i),this.width=e.width||n,this.lineHeight=void 0!==t?t:e.lineHeight}function p(e,t,o,u){var i=new b(t),n=t.cue,r=function(e){if("number"==typeof e.line&&(e.snapToLines||0<=e.line&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,i=t.textTrackList,n=0,r=0;r<i.length&&i[r]!==t;r++)"showing"===i[r].mode&&n++;return-1*++n}(n),a=[];if(n.snapToLines){var s;switch(n.vertical){case"":a=["+y","-y"],s="height";break;case"rl":a=["+x","-x"],s="width";break;case"lr":a=["-x","+x"],s="width"}var l=i.lineHeight,c=l*Math.round(r),h=o[s]+l,d=a[0];Math.abs(c)>h&&(c=c<0?-1:1,c*=Math.ceil(h/l)*l),r<0&&(c+=""===n.vertical?o.height:o.width,a=a.reverse()),i.move(d,c)}else{var p=i.lineHeight/o.height*100;switch(n.lineAlign){case"middle":r-=p/2;break;case"end":r-=p}switch(n.vertical){case"":t.applyStyles({top:t.formatStyle(r,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(r,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(r,"%")})}a=["+y","-x","+x","-y"],i=new b(t)}var f=function(e,t){for(var i,n=new b(e),r=1,a=0;a<t.length;a++){for(;e.overlapsOppositeAxis(o,t[a])||e.within(o)&&e.overlapsAny(u);)e.move(t[a]);if(e.within(o))return e;var s=e.intersectPercentage(o);s<r&&(i=new b(e),r=s),e=new b(n)}return i||n}(i,a);t.move(f.toCSSCompatValues(o))}function f(){}o.prototype.applyStyles=function(e,t){for(var i in t=t||this.div,e)e.hasOwnProperty(i)&&(t.style[i]=e[i])},o.prototype.formatStyle=function(e,t){return 0===e?0:e+t},(d.prototype=i(o.prototype)).constructor=d,b.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){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}},b.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},b.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},b.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},b.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},b.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},b.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},b.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,i=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,n=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||n,height:e.height||t,bottom:e.bottom||n+(e.height||t),width:e.width||i}},f.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},f.convertCueToDOMTree=function(e,t){return e&&t?a(e,t):null};f.processCues=function(n,r,e){if(!n||!r||!e)return null;for(;e.firstChild;)e.removeChild(e.firstChild);var a=n.document.createElement("div");if(a.style.position="absolute",a.style.left="0",a.style.right="0",a.style.top="0",a.style.bottom="0",a.style.margin="1.5%",e.appendChild(a),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(r)){var s=[],o=b.getSimpleBoxPosition(a),u={font:Math.round(.05*o.height*100)/100+"px sans-serif"};!function(){for(var e,t,i=0;i<r.length;i++)t=r[i],e=new d(n,t,u),a.appendChild(e.div),p(0,e,o,s),t.displayState=e.div,s.push(b.getSimpleBoxPosition(e))}()}else for(var t=0;t<r.length;t++)a.appendChild(r[t].displayState)},(f.Parser=function(e,t,i){i||(i=t,t={}),t=t||{},this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=i||new TextDecoder("utf8"),this.regionList=[]}).prototype={reportOrThrowError:function(e){if(!(e instanceof l))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var n=this;function t(){for(var e=n.buffer,t=0;t<e.length&&"\r"!==e[t]&&"\n"!==e[t];)++t;var i=e.substr(0,t);return"\r"===e[t]&&++t,"\n"===e[t]&&++t,n.buffer=e.substr(t),i}function i(e){e.match(/X-TIMESTAMP-MAP/)?h(e,function(e,t){switch(e){case"X-TIMESTAMP-MAP":!function(e){var i=new c;h(e,function(e,t){switch(e){case"MPEGT":i.integer(e+"S",t);break;case"LOCA":i.set(e+"L",m(t))}},/[^\d]:/,/,/),n.ontimestampmap&&n.ontimestampmap({MPEGTS:i.get("MPEGTS"),LOCAL:i.get("LOCAL")})}(t)}},/=/):h(e,function(e,t){switch(e){case"Region":!function(e){var r=new c;if(h(e,function(e,t){switch(e){case"id":r.set(e,t);break;case"width":r.percent(e,t);break;case"lines":r.integer(e,t);break;case"regionanchor":case"viewportanchor":var i=t.split(",");if(2!==i.length)break;var n=new c;if(n.percent("x",i[0]),n.percent("y",i[1]),!n.has("x")||!n.has("y"))break;r.set(e+"X",n.get("x")),r.set(e+"Y",n.get("y"));break;case"scroll":r.alt(e,t,["up"])}},/=/,/\s/),r.has("id")){var t=new(n.vttjs.VTTRegion||n.window.VTTRegion);t.width=r.get("width",100),t.lines=r.get("lines",3),t.regionAnchorX=r.get("regionanchorX",0),t.regionAnchorY=r.get("regionanchorY",100),t.viewportAnchorX=r.get("viewportanchorX",0),t.viewportAnchorY=r.get("viewportanchorY",100),t.scroll=r.get("scroll",""),n.onregion&&n.onregion(t),n.regionList.push({id:r.get("id"),region:t})}}(t)}},/:/)}e&&(n.buffer+=n.decoder.decode(e,{stream:!0}));try{var r;if("INITIAL"===n.state){if(!/\r\n|\n/.test(n.buffer))return this;var a=(r=t()).match(/^WEBVTT([ \t].*)?$/);if(!a||!a[0])throw new l(l.Errors.BadSignature);n.state="HEADER"}for(var s=!1;n.buffer;){if(!/\r\n|\n/.test(n.buffer))return this;switch(s?s=!1:r=t(),n.state){case"HEADER":/:/.test(r)?i(r):r||(n.state="ID");continue;case"NOTE":r||(n.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){n.state="NOTE";break}if(!r)continue;if(n.cue=new(n.vttjs.VTTCue||n.window.VTTCue)(0,0,""),n.state="CUE",-1===r.indexOf("--\x3e")){n.cue.id=r;continue}case"CUE":try{u(r,n.cue,n.regionList)}catch(e){n.reportOrThrowError(e),n.cue=null,n.state="BADCUE";continue}n.state="CUETEXT";continue;case"CUETEXT":var o=-1!==r.indexOf("--\x3e");if(!r||o&&(s=!0)){n.oncue&&n.oncue(n.cue),n.cue=null,n.state="ID";continue}n.cue.text&&(n.cue.text+="\n"),n.cue.text+=r;continue;case"BADCUE":r||(n.state="ID");continue}}}catch(e){n.reportOrThrowError(e),"CUETEXT"===n.state&&n.cue&&n.oncue&&n.oncue(n.cue),n.cue=null,n.state="INITIAL"===n.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),!t.cue&&"HEADER"!==t.state||(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new l(l.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}},e.exports=f},function(e,t){var y={"":1,lr:1,rl:1},i={start:1,middle:1,end:1,left:1,right:1};function v(e){return"string"==typeof e&&(!!i[e.toLowerCase()]&&e.toLowerCase())}function n(e,t,i){this.hasBeenReset=!1;var n="",r=!1,a=e,s=t,o=i,u=null,l="",c=!0,h="auto",d="start",p=50,f="middle",m=50,g="middle";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return n},set:function(e){n=""+e}},pauseOnExit:{enumerable:!0,get:function(){return r},set:function(e){r=!!e}},startTime:{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");a=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");s=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return o},set:function(e){o=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return u},set:function(e){u=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return l},set:function(e){var t=function(e){return"string"==typeof e&&(!!y[e.toLowerCase()]&&e.toLowerCase())}(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");l=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return c},set:function(e){c=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return h},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("An invalid number or illegal string was specified.");h=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return d},set:function(e){var t=v(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");d=t,this.hasBeenReset=!0}},position:{enumerable:!0,get:function(){return p},set:function(e){if(e<0||100<e)throw new Error("Position must be between 0 and 100.");p=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return f},set:function(e){var t=v(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");f=t,this.hasBeenReset=!0}},size:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||100<e)throw new Error("Size must be between 0 and 100.");m=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return g},set:function(e){var t=v(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");g=t,this.hasBeenReset=!0}}}),this.displayState=void 0}n.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=n},function(e,t){var u={"":!0,up:!0};function l(e){return"number"==typeof e&&0<=e&&e<=100}e.exports=function(){var t=100,i=3,n=0,r=100,a=0,s=100,o="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!l(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");i=e}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(e){if(!l(e))throw new Error("RegionAnchorX must be between 0 and 100.");r=e}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(e){if(!l(e))throw new Error("RegionAnchorY must be between 0 and 100.");n=e}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!l(e))throw new Error("ViewportAnchorY must be between 0 and 100.");s=e}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(e){if(!l(e))throw new Error("ViewportAnchorX must be between 0 and 100.");a=e}},scroll:{enumerable:!0,get:function(){return o},set:function(e){var t=function(e){return"string"==typeof e&&(!!u[e.toLowerCase()]&&e.toLowerCase())}(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");o=t}}})}},function(e,t,i){"use strict";var n=i(29),r=i(28),a=function(){a.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new c(0,0),new c(0,1),new c(1,0),new c(1,1)],this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))},this)};a.prototype=new n,a.prototype.push=function(e){var t,i,n;if("sei_rbsp"===e.nalUnitType&&(t=r.parseSei(e.escapedRBSP)).payloadType===r.USER_DATA_REGISTERED_ITU_T_T35&&(i=r.parseUserData(t)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));n=r.parseCaptionPackets(e.pts,i),this.captionPackets_=this.captionPackets_.concat(n),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},a.prototype.flushCCStreams=function(t){this.ccStreams_.forEach(function(e){return"flush"===t?e.flush():e.partialFlush()},this)},a.prototype.flushStream=function(e){this.captionPackets_.length&&(this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2&&this.dispatchCea608Packet(e)},this),this.captionPackets_.length=0),this.flushCCStreams(e)},a.prototype.flush=function(){return this.flushStream("flush")},a.prototype.partialFlush=function(){return this.flushStream("partialFlush")},a.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},a.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},a.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},a.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},a.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)};function o(e){return null===e?"":(e=s[e]||e,String.fromCharCode(e))}function u(){for(var e=[],t=15;t--;)e.push("");return e}var s={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},l=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],c=function(e,t){c.prototype.init.call(this),this.field_=e||0,this.dataChannel_=t||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,i,n,r,a;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),n=t>>>8,r=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),i=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=i,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=u();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=u();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=u()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(n,r))a=o((n=(3&n)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(n,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),a=o((n=(3&n)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isMidRowCode(n,r))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14==(14&r)&&this.addFormatting(e.pts,["i"]),1==(1&r)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(n,r))this.column_+=3&r;else if(this.isPAC(n,r)){var s=l.indexOf(7968&t);"rollUp"===this.mode_&&(s-this.rollUpRows_+1<0&&(s=this.rollUpRows_-1),this.setRollUp(e.pts,s)),s!==this.row_&&(this.clearFormatting(e.pts),this.row_=s),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(r)&&14==(14&r)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(n)&&(0===r&&(r=null),a=o(n),a+=o(r),this[this.mode_](e.pts,a),this.column_+=a.length)}else this.lastControlCode_=null}};c.prototype=new n,c.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e){try{return e.trim()}catch(e){return console.error("Skipping malformed caption."),""}}).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},c.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=u(),this.nonDisplayed_=u(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},c.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},c.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&48<=t&&t<=63},c.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&32<=t&&t<=63},c.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&32<=t&&t<=47},c.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&33<=t&&t<=35},c.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&64<=t&&t<=127},c.prototype.isColorPAC=function(e){return 64<=e&&e<=79||96<=e&&e<=127},c.prototype.isNormalChar=function(e){return 32<=e&&e<=127},c.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=u(),this.displayed_=u()),void 0!==t&&t!==this.row_)for(var i=0;i<this.rollUpRows_;i++)this.displayed_[t-i]=this.displayed_[this.row_-i],this.displayed_[this.row_-i]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},c.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var i=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,i)},c.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[],this[this.mode_](e,t)}},c.prototype.popOn=function(e,t){var i=this.nonDisplayed_[this.row_];i+=t,this.nonDisplayed_[this.row_]=i},c.prototype.rollUp=function(e,t){var i=this.displayed_[this.row_];i+=t,this.displayed_[this.row_]=i},c.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<15;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},c.prototype.paintOn=function(e,t){var i=this.displayed_[this.row_];i+=t,this.displayed_[this.row_]=i},e.exports={CaptionStream:a,Cea608Stream:c}},function(e,t,i){"use strict";function n(e,t){var i=1;for(t<e&&(i=-1);4294967296<Math.abs(t-e);)e+=8589934592*i;return e}var r=i(29),a=function(e){var t,i;a.prototype.init.call(this),this.type_=e||"shared",this.push=function(e){"shared"!==this.type_&&e.type!==this.type_||(void 0===i&&(i=e.dts),e.dts=n(e.dts,i),e.pts=n(e.pts,i),t=e.dts,this.trigger("data",e))},this.flush=function(){i=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){t=i=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};a.prototype=new r,e.exports={TimestampRolloverStream:a,handleRollover:n}},function(e,t,i){"use strict";function n(e){var t=31&e[1];return t<<=8,t|=e[2]}function o(e){return!!(64&e[1])}function u(e){var t=0;return 1<(48&e[3])>>>4&&(t+=e[4]+1),t}function s(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}}var r=i(30);e.exports={parseType:function(e,t){var i=n(e);return 0===i?"pat":i===t?"pmt":t?"pes":null},parsePat:function(e){var t=o(e),i=4+u(e);return t&&(i+=e[i]+1),(31&e[i+10])<<8|e[i+11]},parsePmt:function(e){var t={},i=o(e),n=4+u(e);if(i&&(n+=e[n]+1),1&e[n+5]){var r;r=3+((15&e[n+1])<<8|e[n+2])-4;for(var a=12+((15&e[n+10])<<8|e[n+11]);a<r;){var s=n+a;t[(31&e[s+1])<<8|e[s+2]]=e[s],a+=5+((15&e[s+3])<<8|e[s+4])}return t}},parsePayloadUnitStartIndicator:o,parsePesType:function(e,t){switch(t[n(e)]){case r.H264_STREAM_TYPE:return"video";case r.ADTS_STREAM_TYPE:return"audio";case r.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!o(e))return null;var t=4+u(e);if(t>=e.byteLength)return null;var i,n=null;return 192&(i=e[t+7])&&((n={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,n.pts*=4,n.pts+=(6&e[t+13])>>>1,n.dts=n.pts,64&i&&(n.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,n.dts*=4,n.dts+=(6&e[t+18])>>>1)),n},videoPacketContainsKeyFrame:function(e){for(var t=4+u(e),i=e.subarray(t),n=0,r=0,a=!1;r<i.byteLength-3;r++)if(1===i[r+2]){n=r+5;break}for(;n<i.byteLength;)switch(i[n]){case 0:if(0!==i[n-1]){n+=2;break}if(0!==i[n-2]){n++;break}for(r+3!==n-2&&"slice_layer_without_partitioning_rbsp_idr"===s(31&i[r+3])&&(a=!0);1!==i[++n]&&n<i.length;);r=n-2,n+=3;break;case 1:if(0!==i[n-1]||0!==i[n-2]){n+=3;break}"slice_layer_without_partitioning_rbsp_idr"===s(31&i[r+3])&&(a=!0),r=n-2,n+=3;break;default:n+=3}return i=i.subarray(r),n-=r,r=0,i&&3<i.byteLength&&"slice_layer_without_partitioning_rbsp_idr"===s(31&i[r+3])&&(a=!0),a}}},function(e,t,i){"use strict";function o(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]}var n=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];e.exports={isLikelyAacData:function(e){return e[0]==="I".charCodeAt(0)&&e[1]==="D".charCodeAt(0)&&e[2]==="3".charCodeAt(0)},parseId3TagSize:function(e,t){var i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&e[t+5])>>4?20+i:10+i},parseAdtsSize:function(e,t){var i=(224&e[t+5])>>5,n=e[t+4]<<3;return 6144&e[t+3]|n|i},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240==(240&e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return n[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,i,n;t=10,64&e[5]&&(t+=4,t+=o(e.subarray(10,14)));do{if((i=o(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){n=e.subarray(t+10,t+i+10);for(var r=0;r<n.byteLength;r++)if(0===n[r]){if("com.apple.streaming.transportStreamTimestamp"!==unescape(function(e,t,i){var n,r="";for(n=t;n<i;n++)r+="%"+("00"+e[n].toString(16)).slice(-2);return r}(n,0,r)))break;var a=n.subarray(r+1),s=(1&a[3])<<30|a[4]<<22|a[5]<<14|a[6]<<6|a[7]>>>2;return s*=4,s+=3&a[7]}}t+=10,t+=i}while(t<e.byteLength);return null}}},function(e,t){var i,n,r,a,s,o,u;i=function(e){return 9e4*e},n=function(e,t){return e*t},r=function(e){return e/9e4},a=function(e,t){return e/t},s=function(e,t){return i(a(e,t))},o=function(e,t){return n(r(e),t)},u=function(e,t,i){return r(i?e:e-t)},e.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:i,secondsToAudioTs:n,videoTsToSeconds:r,audioTsToSeconds:a,audioTsToVideoTs:s,videoTsToAudioTs:o,metadataTsToSeconds:u}},function(e,t,i){"use strict";i.r(t),i.d(t,"hasSession",function(){return k}),i.d(t,"removeSession",function(){return E}),i.d(t,"handleEncryptedEvent",function(){return w}),i.d(t,"handleWebKitNeedKeyEvent",function(){return C}),i.d(t,"handleMsNeedKeyEvent",function(){return O}),i.d(t,"getOptions",function(){return A}),i.d(t,"setupSessions",function(){return P}),i.d(t,"emeErrorHandler",function(){return I});function a(e,t){if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(var i=new DataView(e),n=new DataView(t),r=0;r<i.byteLength;r++)if(i.getUint8(r)!==n.getUint8(r))return!1;return!0}function s(e){return e instanceof Uint8Array||e instanceof Uint16Array?e.buffer:e}function l(){var t=v.default.mergeOptions.apply(v.default,arguments);return Object.keys(t).forEach(function(e){null===t[e]&&delete t[e]}),t}function o(e,t,i,n){var r=function(e){var t=(new b.a.DOMParser).parseFromString(String.fromCharCode.apply(null,new Uint16Array(e)),"application/xml"),i=t.getElementsByTagName("HttpHeaders")[0],n={};if(i)for(var r=i.getElementsByTagName("name"),a=i.getElementsByTagName("value"),s=0;s<r.length;s++)n[r[s].childNodes[0].nodeValue]=a[s].childNodes[0].nodeValue;var o,u=t.getElementsByTagName("Challenge")[0];return u&&(o=b.a.atob(u.childNodes[0].nodeValue)),{headers:n,message:o}}(t),a=r.message,s=l(r.headers,i.emeHeaders,e.licenseHeaders);v.default.xhr({uri:e.url,method:"post",headers:s,body:a,responseType:"arraybuffer"},function(e,t,i){e?n(e):n(null,i)})}function h(e){var t=e.mediaKeys,n=e.initDataType,r=e.initData,a=e.options,s=e.getLicense,o=e.removeSession,u=e.eventBus,l=t.createSession();return new Promise(function(t,i){l.addEventListener("message",function(e){s(a,e.message).then(function(e){t(l.update(e))}).catch(function(e){i(e)})},!1),l.addEventListener("keystatuseschange",function(i){var n=!1;l.keyStatuses.forEach(function(e,t){switch(u.trigger({keyId:t,status:e,target:l,type:"keystatuschange"}),e){case"expired":n=!0;break;case"internal-error":v.default.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.',i)}}),n&&l.close().then(function(){o(r)})},!1),l.generateRequest(n,r).catch(function(){i("Unable to create or initialize key session")})})}function d(r,a){return function(e,t){return new Promise(function(i,n){r(e,t,function(e,t){a&&a.trigger("licenserequestattempted"),e?n(e):i(t)})})}}function p(e,t){if("string"==typeof t&&(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="com.microsoft.playready"===e?function(n){return function(e,t,i){o(n,t,e,i)}}(t):function(r){return function(e,t,n){var i=l({"Content-type":"application/octet-stream"},e.emeHeaders,r.licenseHeaders);v.default.xhr({uri:r.url,method:"POST",responseType:"arraybuffer",body:t,headers:i},function(e,t,i){e?n(e):n(null,i)})}}(t)),t}function u(e){var r,t,a=e.video,i=e.initDataType,n=e.initData,s=e.keySystemAccess,o=e.options,u=e.removeSession,l=e.eventBus,c=Promise.resolve();return void 0===a.mediaKeysObject&&(a.mediaKeysObject=null,a.pendingSessionData=[],c=new Promise(function(i,n){a.keySystem=s.keySystem,(t=p(s.keySystem,o.keySystems[s.keySystem])).getCertificate?t.getCertificate(o,function(e,t){e?n(e):(r=t,i())}):i(s)}).then(function(){return s.createMediaKeys()}).then(function(e){return function(e){var t=e.video,i=e.certificate,n=e.createdMediaKeys,r=e.options,a=e.getLicense,s=e.removeSession,o=e.eventBus;t.mediaKeysObject=n;var u=[];i&&u.push(n.setServerCertificate(i));for(var l=0;l<t.pendingSessionData.length;l++){var c=t.pendingSessionData[l];u.push(h({mediaKeys:t.mediaKeysObject,initDataType:c.initDataType,initData:c.initData,options:r,getLicense:a,removeSession:s,eventBus:o}))}return t.pendingSessionData=[],u.push(t.setMediaKeys(n)),Promise.all(u)}({video:a,certificate:r,createdMediaKeys:e,options:o,getLicense:d(t.getLicense,l),removeSession:u,eventBus:l})}).catch(function(e){return e?Promise.reject(e):Promise.reject("Failed to create and initialize a MediaKeys object")})),c.then(function(){return function(e){var t=e.video,i=e.initDataType,n=e.initData,r=e.options,a=e.getLicense,s=e.removeSession,o=e.eventBus;return t.mediaKeysObject?h({mediaKeys:t.mediaKeysObject,initDataType:i,initData:n,options:r,getLicense:a,removeSession:s,eventBus:o}):(t.pendingSessionData.push({initDataType:i,initData:n}),Promise.resolve())}({video:a,initDataType:i,initData:n,options:o,getLicense:a.keySystem?d(p(a.keySystem,o.keySystems[a.keySystem]).getLicense,l):null,removeSession:u,eventBus:l})})}function c(e){var t=e.initData,i=e.id,n=e.cert;"string"==typeof i&&(i=function(e){for(var t=new ArrayBuffer(2*e.length),i=new Uint16Array(t),n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return i}(i));var r=0,a=new ArrayBuffer(t.byteLength+4+i.byteLength+4+n.byteLength),s=new DataView(a);new Uint8Array(a,r,t.byteLength).set(t),r+=t.byteLength,s.setUint32(r,i.byteLength,!0),r+=4;var o=new Uint16Array(a,r,i.length);return o.set(i),r+=o.byteLength,s.setUint32(r,n.byteLength,!0),r+=4,new Uint8Array(a,r,n.byteLength).set(n),new Uint8Array(a,0,a.byteLength)}function f(e,t){return function(e){var t=y.a.createElement("a");return t.href=e,t.hostname}(function(e){return String.fromCharCode.apply(null,new Uint16Array(e.buffer))}(t))}function n(e){var t=e.video,i=e.initData,r=e.options,n=e.eventBus,a=r.keySystems[T],s=a.getCertificate||function(i){return function(e,n){var t=l(e.emeHeaders,i.certificateHeaders);v.default.xhr({uri:i.certificateUri,responseType:"arraybuffer",headers:t},function(e,t,i){e?n(e):n(null,new Uint8Array(i))})}}(a),o=a.getContentId||f,u=a.getLicense||function(a){return function(e,t,i,n){var r=l({"Content-type":"application/octet-stream"},e.emeHeaders,a.licenseHeaders);v.default.xhr({uri:a.licenseUri,method:"POST",responseType:"arraybuffer",body:i,headers:r},function(e,t,i){e?n(e):n(null,i)})}}(a);return new Promise(function(i,n){s(r,function(e,t){e?n(e):i(t)})}).then(function(e){return function(e){var t=e.video,r=e.contentId,a=e.initData,s=e.cert,o=e.options,u=e.getLicense,l=e.eventBus;return new Promise(function(e,i){if(!t.webkitKeys)try{t.webkitSetMediaKeys(new b.a.WebKitMediaKeys(T))}catch(e){return void i("Could not create MediaKeys")}var n;try{n=t.webkitKeys.createSession("video/mp4",c({id:r,initData:a,cert:s}))}catch(e){return void i("Could not create key session")}n.contentId=r,n.addEventListener("webkitkeymessage",function(e){u(o,r,e.message,function(e,t){l&&l.trigger("licenserequestattempted"),e?i(e):n.update(new Uint8Array(t))})}),n.addEventListener("webkitkeyadded",function(){e()}),n.addEventListener("webkitkeyerror",function(){var e=n.error;i("KeySession error: code "+e.code+", systemCode "+e.systemCode)})})}({video:t,cert:e,initData:i,getLicense:u,options:r,contentId:o(r,i),eventBus:n})})}function m(e,t,i,n){var r=e.msKeys.createSession("video/mp4",t);if(!r)throw new Error("Could not create key session.");r.addEventListener("mskeymessage",function(e){!function(e,i,t,n){var r=e.keySystems[S];if("function"!=typeof r.getKey){"string"==typeof r?r={url:r}:"boolean"==typeof r&&(r={}),r.url||(r.url=t.destinationURL);var a=function(e,t){n&&n.trigger("licenserequestattempted"),e?n.trigger({message:"Unable to request key from url: "+r.url,target:i,type:"mskeyerror"}):i.update(new Uint8Array(t))};r.getLicense?r.getLicense(e,t.message.buffer,a):o(r,t.message.buffer,e,a)}else r.getKey(e,t.destinationURL,t.message.buffer,function(e,t){e?n.trigger({message:"Unable to get key: "+e,target:i,type:"mskeyerror"}):i.update(t)})}(i,r,e,n)}),r.addEventListener("mskeyerror",function(e){n.trigger({message:"Unexpected key error from key session with code: "+r.error.code+" and systemCode: "+r.error.systemCode,target:r,type:"mskeyerror"})}),r.addEventListener("mskeyadded",function(){n.trigger({target:r,type:"mskeyadded"})})}function r(s){void 0===s&&(s={});var o=this,u=I(o);o.ready(function(){return function(t,i){"video"===t.$(".vjs-tech").tagName.toLowerCase()&&(P(t),b.a.WebKitMediaKeys?t.tech_.el_.addEventListener("webkitneedkey",function(e){P(t),C(e,A(t),t.tech_).catch(i)}):b.a.MediaKeys?t.tech_.el_.addEventListener("encrypted",function(e){P(t),w(e,A(t),t.eme.sessions,t.tech_).catch(i)}):b.a.MSMediaKeys&&(t.tech_.el_.addEventListener("msneedkey",function(e){P(t);try{O(e,A(t),t.eme.sessions,t.tech_)}catch(e){i(e)}}),t.tech_.on("mskeyerror",i),t.on("dispose",function(){t.tech_.off("mskeyerror",i)})))}(o,u)}),o.eme={initializeMediaKeys:function(e,i,n){void 0===e&&(e={}),void 0===i&&(i=function(){}),void 0===n&&(n=!1);var t=v.default.mergeOptions(o.currentSource(),s,e),r={initDataType:"cenc",initData:null,target:o.tech_.el_};if(P(o),o.tech_.el_.setMediaKeys)w(r,t,o.eme.sessions,o.tech_).then(function(){return i()}).catch(function(e){i(e),n||u(e)});else if(o.tech_.el_.msSetMediaKeys){var a=function e(t){o.tech_.off("mskeyadded",e),o.tech_.off("mskeyerror",e),"mskeyerror"===t.type?(i(t.target.error),n||u(t.message)):i()};o.tech_.one("mskeyadded",a),o.tech_.one("mskeyerror",a);try{O(r,t,o.eme.sessions,o.tech_)}catch(e){o.tech_.off("mskeyadded",a),o.tech_.off("mskeyerror",a),i(e),n||u(e)}}},options:s}}var g=i(1),y=i.n(g),v=i(3),_=i(0),b=i.n(_),T="com.apple.fps.1_0",S="com.microsoft.playready",k=function(e,t){for(var i=0;i<e.length;i++)if(e[i].initData){var n=s(e[i].initData),r=s(t);if(a(n,r))return!0}return!1},E=function(e,t){for(var i=0;i<e.length;i++)if(e[i].initData===t)return void e.splice(i,1)},w=function(i,n,r,a){if(!n||!n.keySystems)return Promise.resolve();var s=i.initData;return function(r){var a;return Object.keys(r).forEach(function(t){var i={},e=r[t].audioContentType,n=r[t].videoContentType;e&&(i.audioCapabilities=[{contentType:e}]),n&&(i.videoCapabilities=[{contentType:n}]),a=a?a.catch(function(e){return b.a.navigator.requestMediaKeySystemAccess(t,[i])}):b.a.navigator.requestMediaKeySystemAccess(t,[i])}),a}(n.keySystems).then(function(e){var t=e.keySystem;return n.keySystems[t]&&n.keySystems[t].pssh&&(s=n.keySystems[t].pssh),k(r,s)||!s?Promise.resolve():(r.push({initData:s}),u({video:i.target,initDataType:i.initDataType,initData:s,keySystemAccess:e,options:n,removeSession:E.bind(null,r),eventBus:a}))})},C=function(e,t,i){return t.keySystems&&t.keySystems[T]&&e.initData?n({video:e.target,initData:e.initData,options:t,eventBus:i}):Promise.resolve()},O=function(e,t,i,n){if(t.keySystems&&t.keySystems[S]&&!i.reduce(function(e,t){return e||t.playready},!1)){var r=e.initData;t.keySystems[S]&&t.keySystems[S].pssh&&(r=t.keySystems[S].pssh),r&&(i.push({playready:!0,initData:r}),function(e){var t=e.video,i=e.initData,n=e.options,r=e.eventBus;t.msKeys&&delete t.msKeys;try{t.msSetMediaKeys(new b.a.MSMediaKeys(S))}catch(e){throw new Error("Unable to create media keys for PlayReady key system. Error: "+e.message)}m(t,i,n,r)}({video:e.target,initData:r,options:t,eventBus:n}))}},A=function(e){return v.default.mergeOptions(e.currentSource(),e.eme.options)},P=function(e){var t=e.src();t!==e.eme.activeSrc&&(e.eme.activeSrc=t,e.eme.sessions=[])},I=function(i){return function(e){var t=e?e.message||e:null;i.error({code:5,message:t})}};(v.default.registerPlugin||v.default.plugin)("eme",r),t.default=r},function(e,t,i){"use strict";i.r(t);var a=i(3),n=i(1),s=i.n(n);function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){var t=this;if(a.default.browser.IS_IE8)for(var i in t=s.a.createElement("custom"),u.prototype)"constructor"!==i&&(t[i]=u.prototype[i]);return t.id=e.id,t.label=t.id,t.width=e.width,t.height=e.height,t.bitrate=e.bandwidth,t.enabled_=e.enabled,Object.defineProperty(t,"enabled",{get:function(){return t.enabled_()},set:function(e){t.enabled_(e)}}),t}var r=function(n){function r(){var e,t=o(o(e=n.call(this)||this));if(a.default.browser.IS_IE8)for(var i in t=s.a.createElement("custom"),r.prototype)"constructor"!==i&&(t[i]=r.prototype[i]);return t.levels_=[],t.selectedIndex_=-1,Object.defineProperty(t,"selectedIndex",{get:function(){return t.selectedIndex_}}),Object.defineProperty(t,"length",{get:function(){return t.levels_.length}}),t||o(e)}!
/*! @name videojs-contrib-quality-levels @version 2.0.9 @license Apache-2.0 */
function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(r,n);var e=r.prototype;return e.addQualityLevel=function(e){var t=this.getQualityLevelById(e.id);if(t)return t;var i=this.levels_.length;return t=new u(e),""+i in this||Object.defineProperty(this,i,{get:function(){return this.levels_[i]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t},e.removeQualityLevel=function(e){for(var t=null,i=0,n=this.length;i<n;i++)if(this[i]===e){t=this.levels_.splice(i,1)[0],this.selectedIndex_===i?this.selectedIndex_=-1:this.selectedIndex_>i&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t},e.getQualityLevelById=function(e){for(var t=0,i=this.length;t<i;t++){var n=this[t];if(n.id===e)return n}return null},e.dispose=function(){this.selectedIndex_=-1,this.levels_.length=0},r}(a.default.EventTarget);for(var l in r.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"},r.prototype.allowedEvents_)r.prototype["on"+l]=null;function c(e){return function(t){var i=t.qualityLevels,n=new r;return t.on("dispose",function e(){n.dispose(),t.qualityLevels=i,t.off("dispose",e)}),t.qualityLevels=function(){return n},t.qualityLevels.VERSION="2.0.9",n}(this,a.default.mergeOptions({},e))}var h=a.default.registerPlugin||a.default.plugin;h("qualityLevels",c),c.VERSION="2.0.9",t.default=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=i(3))&&n.__esModule?n:{default:n},a=i(71);var s={id3CuePointsTrack:function(e){var t=this.proxyTracks_.id3;return t=t||(this.proxyTracks_.id3=new a.ProxyTextTrack(this,"id3",e))},mediaCuePointsTrack:function(e){var t=this.proxyTracks_.media;return t||((t=this.proxyTracks_.media=new a.ProxyTextTrack(this,"media",e)).track_||(this.addTextTrack("metadata","media-cues"),t.update_()),t)}};function o(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.proxyTracks_={};var n=r.default.createLogger("proxyTracks");e.debug||(n=function(){}),n("initialized"),Object.keys(s).forEach(function(e){t[e]=function(){return s[e].call(t,n)}}),this.ready(function(){Object.keys(s).forEach(function(e){var i=t[e]();i.on("cuechange",function(){for(var e=0;e<i.activeCues.length;e++){var t=i.activeCues[e];n("".concat(i.type_," -> cuechange -> activeCues[").concat(e,"]: ").concat(t.value&&t.value.key||t.frame&&t.frame.id))}})})})}r.default.registerPlugin("proxyTracks",o);var u=o;t.default=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyTextTrack=t.TEXT_TRACK_READ_WRITE=t.TEXT_TRACK_READ_ONLY=t.PROP_DEFAULTS=void 0;var n,o=(n=i(3))&&n.__esModule?n:{default:n};function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?h(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var d={activeCues:null,cues:null,id:"",inBandMetadataTrackDispatchType:void 0,kind:"metadata",label:"",language:"",mode:"",oncuechange:void 0};t.PROP_DEFAULTS=d;var p=["activeCues","cues","id","inBandMetadataTrackDispatchType","kind","label","language"];t.TEXT_TRACK_READ_ONLY=p;var f=["mode"];t.TEXT_TRACK_READ_WRITE=f;function m(e,t){return"media"===e&&"metadata"===t.kind&&"media-cues"===t.label||"id3"===e&&"string"==typeof t.inBandMetadataTrackDispatchType&&0<t.inBandMetadataTrackDispatchType.trim().length}var s=function(){function s(e,t){var i,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:function(){};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var r=h(h(i=u(this,l(s).call(this))));r.player_=e,r.reTriggerEvent_=o.default.bind(r,r.reTriggerEvent_),r.update_=o.default.bind(r,r.update_),r.type_=t,r.logger_=n,p.concat(f).forEach(function(t){var e={get:function(){return r.track_&&r.track_[t]||d[t]},enumerable:!0};-1!==f.indexOf(t)&&(e.set=function(e){r.track_&&(r.track_[t]=e)}),Object.defineProperty(r,t,e)}),r.update_();var a=e.textTracks();return["addtrack","removetrack"].forEach(function(e){return a.addEventListener(e,r.update_)}),r.player_.on("timeupdate",function(e){r.track_?"hidden"!==r.track_.mode&&(r.track_.mode="hidden",r.logger_("timeupdate -> type:".concat(r.type_).concat(r.track_?",mode:".concat(r.track_.mode):""," -> track was set to hidden"))):r.update_(e)}),u(i,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(s,o.default.EventTarget),function(e,t,i){t&&a(e.prototype,t),i&&a(e,i)}(s,[{key:"addCue",value:function(){var e=this,t=arguments;if(this.track_)return this.track_.addCue.apply(this.track_,t);this.one("trackexists",function(){return e.addCue.apply(e,t)})}},{key:"removeCue",value:function(){var e=this,t=arguments;return this.track_?this.track_.removeCue.apply(this.track_,t):this.one("trackexists",function(){return e.removeCue.apply(e,t)})}},{key:"reTriggerEvent_",value:function(e){this.trigger(e)}},{key:"update_",value:function(e){var t,i=0<arguments.length&&void 0!==e?e:{};if("removetrack"===i.type&&i.track&&i.track===this.track_)t=null;else if("addtrack"===i.type&&i.track&&!this.track_&&m(this.type_,i.track))t=i.track;else for(var n=this.player_.textTracks(),r=n.length;r--;)if(m(this.type_,n[r])){t=n[r];break}this.logger_("update -> type:".concat(this.type_,", mode:").concat(t?t.mode:"?"," -> event:").concat(i.type||"constructor")),this.track_!==t?(this.track_&&this.track_.removeEventListener("cuechange",this.reTriggerEvent_),this.track_=t,this.track_?("hidden"!==this.track_.mode&&(this.track_.mode="hidden"),this.track_.addEventListener("cuechange",this.reTriggerEvent_),this.trigger("trackexists"),this.logger_("update -> type:".concat(this.type_,", mode:").concat(t?t.mode:"?"," -> track exists"))):this.logger_("update -> type:".concat(this.type_,", mode:").concat(t?t.mode:"?"," -> track changed, but no new track exists"))):this.logger_("update -> type:".concat(this.type_,", mode:").concat(t?t.mode:"?"," -> ").concat(t?"already proxied":"no track to proxy"))}}]),s}();(t.ProxyTextTrack=s).prototype.allowedEvents_={cuechange:"cuechange"}},function(e,t,i){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;function h(e,t){var i={},n=e.closed_captions_vtt&&e.closed_captions_vtt[t];if(n)i.url=n.url,i.label=n.name;else if(e.closed_captions_dfxp&&e.closed_captions_dfxp.languages&&e.closed_captions_dfxp.languages.length){_.some(e.closed_captions_dfxp.languages,function(e){return e===t})&&(i.url=e.closed_captions_dfxp.url,i.label=t)}return i}function u(e,t,i){t.empty();for(var n=0;n<e.activeCues.length;n++){var r=e.activeCues[n],a=OO.$("<li>");a.attr("data-state",r.text),a.text(r.text),t.append(a)}i(t)}var n={createTrack:function(t,e,i,n){var r,a=2<arguments.length&&void 0!==i?i:[],s=3<arguments.length?n:void 0,o=h(e,t),u=null;if(u=a.find(function(e){return(e.id===s||e.url===o.url)&&"captions"===e.kind&&e.language===t}),r=a.find(function(e){return e.language===t}),u)return u.mode="hidden",null;var l=!r||o.url,c=l?"vjs_track_".concat(OO.getRandomString()):r.id;return!l||_.isEmpty(o)?null:{id:c,label:o.label,language:t,src:o.url,mode:"hidden",kind:"captions"}},createCustomDisplay:function(e,t){var i=e;(i=OO.$("<div>")).css({position:"absolute",bottom:0,width:"100%",height:"100%",margin:0,padding:0,pointerEvents:"none"});var n=OO.$("<div>"),r=OO.$('<ol class="vjsSubtitles">');n.css({textAlign:"center",left:"5%",top:"5%",width:"90%",height:"90%",fontFamily:"verdana",textShadow:"black 1px 1px 1px, black 1px -1px 1px, black -1px 1px 1px, black -1px -1px 1px",color:"white",position:"absolute",fontSize:"25px",lineHeight:"25px",margin:0,padding:0});return r.css({bottom:"30px",listStyle:"none",position:"absolute",margin:"0px 0px 10px",padding:0,width:"100%"}),n.append(r),i.append(n),OO.$(t).append(i),i},addTrackListener:function(i,n,r,a){for(var e=function(e){var t=i[e];if("captions"===t.kind&&t.language===n)return t.addEventListener("cuechange",function(){u(t,r,a)}),t.mode="hidden",{v:t.id}},t=0;t<i.length;t++){var s=e(t);if("object"===o(s))return s.v}return null},getData:h,setVisibility:function(e,t){t&&0!==t.length&&(e?t.show():t.hide())},onCueEnter:u,getSubtitleText:function(e){var t="";return e.children().each(function(){t+="".concat(OO.$(this).text(),"\n")}),OO.$.trim(t)}};t.default=n}]);
//main_html5.js-4.40.0
!function(){return function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){return o(t[a][1][e]||e)},l,l.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}}()({1:[function(e,t,n){OO||(OO={})},{}],2:[function(e,t,n){e("./InitOOUnderscore.js");var r={};window&&!window.debugHazmat&&(r={warn:function(){}}),OO.HM||"undefined"!=typeof window&&void 0!==window._?window.Hazmat||e("hazmat"):OO.HM=e("hazmat").create(r),OO.HM||(OO.HM=window.Hazmat.noConflict().create(r))},{"./InitOOUnderscore.js":3,hazmat:7}],3:[function(e,t,n){e("./InitOO.js"),window._||(window._=e("underscore")),OO._||(OO._=window._.noConflict())},{"./InitOO.js":1,underscore:8}],4:[function(e,t,n){!function(e,t){e.STATE={LOADING:"loading",READY:"ready",PLAYING:"playing",PAUSED:"paused",BUFFERING:"buffering",ERROR:"error",DESTROYED:"destroyed",__end_marker:!0},e.EVENTS={PLAYER_CREATED:"playerCreated",PLAYER_EMBEDDED:"playerEmbedded",SET_EMBED_CODE:"setEmbedCode",HEVC_CHECKED:"hevcChecked",SET_EMBED_CODE_AFTER_OOYALA_AD:"setEmbedCodeAfterOoyalaAd",EMBED_CODE_CHANGED:"embedCodeChanged",SET_ASSET:"setAsset",ASSET_CHANGED:"assetChanged",UPDATE_ASSET:"updateAsset",ASSET_UPDATED:"assetUpdated",AUTH_TOKEN_CHANGED:"authTokenChanged",GUID_SET:"guidSet",WILL_FETCH_PLAYER_XML:"willFetchPlayerXml",PLAYER_XML_FETCHED:"playerXmlFetched",WILL_FETCH_CONTENT_TREE:"willFetchContentTree",SAVE_PLAYER_SETTINGS:"savePlayerSettings",CONTENT_TREE_FETCHED:"contentTreeFetched",WILL_FETCH_METADATA:"willFetchMetadata",METADATA_FETCHED:"metadataFetched",SKIN_METADATA_FETCHED:"skinMetadataFetched",THUMBNAILS_FETCHED:"thumbnailsFetched",WILL_FETCH_AUTHORIZATION:"willFetchAuthorization",AUTHORIZATION_FETCHED:"authorizationFetched",WILL_FETCH_AD_AUTHORIZATION:"willFetchAdAuthorization",AD_AUTHORIZATION_FETCHED:"adAuthorizationFetched",CAN_SEEK:"canSeek",WILL_RESUME_MAIN_VIDEO:"willResumeMainVideo",PLAYBACK_READY:"playbackReady",INITIAL_PLAY:"initialPlay",WILL_PLAY:"willPlay",REPLAY:"replay",SET_PLAYBACK_SPEED:"setPlaybackSpeed",PLAYBACK_SPEED_CHANGED:"playbackSpeedChanged",PLAYHEAD_TIME_CHANGED:"playheadTimeChanged",BUFFERING:"buffering",BUFFERED:"buffered",DOWNLOADING:"downloading",BITRATE_INFO_AVAILABLE:"bitrateInfoAvailable",SET_TARGET_BITRATE:"setTargetBitrate",BITRATE_CHANGED:"bitrateChanged",CLOSED_CAPTIONS_INFO_AVAILABLE:"closedCaptionsInfoAvailable",SET_CLOSED_CAPTIONS_LANGUAGE:"setClosedCaptionsLanguage",SKIN_UI_LANGUAGE:"skinUiLanguage",CLOSED_CAPTION_CUE_CHANGED:"closedCaptionCueChanged",ASSET_DIMENSION:"assetDimension",SCRUBBING:"scrubbing",SCRUBBED:"scrubbed",SEEK:"seek",SEEKED:"seeked",PLAY:"play",PLAYING:"playing",PLAY_FAILED:"playFailed",PAUSE:"pause",PAUSED:"paused",PLAYED:"played",DISPLAY_CUE_POINTS:"displayCuePoints",INSERT_CUE_POINT:"insertCuePoint",RESET_CUE_POINTS:"resetCuePoints",WILL_CHANGE_FULLSCREEN:"willChangeFullscreen",FULLSCREEN_CHANGED:"fullscreenChanged",SIZE_CHANGED:"sizeChanged",CHANGE_VOLUME:"changeVolume",VOLUME_CHANGED:"volumeChanged",CHANGE_MUTE_STATE:"changeMuteState",MUTE_STATE_CHANGED:"muteStateChanged",CONTROLS_SHOWN:"controlsShown",CONTROLS_HIDDEN:"controlsHidden",END_SCREEN_SHOWN:"endScreenShown",ERROR:"error",API_ERROR:"apiError",BITRATE_INITIAL:"bitrateInitial",BITRATE_FIVE_SEC:"bitrateFiveSec",BITRATE_STABLE:"bitrateStable",PLAYBACK_START_ERROR:"playbackStartError",PLAYBACK_MIDSTREAM_ERROR:"playbackMidstreamError",PLUGIN_LOADED:"pluginLoaded",VC_PLUGIN_ERROR:"videoPluginError",INITIAL_PLAY_STARTING:"initialPlayStarting",REQUEST_PREVIOUS_VIDEO:"requestPreviousVideo",REQUEST_NEXT_VIDEO:"requestNextVideo",POSITION_IN_PLAYLIST_DETERMINED:"positionInPlaylistDetermined",DESTROY:"destroy",WILL_PLAY_FROM_BEGINNING:"willPlayFromBeginning",DISABLE_PLAYBACK_CONTROLS:"disablePlaybackControls",ENABLE_PLAYBACK_CONTROLS:"enablePlaybackControls",VC_READY:"videoControllerReady",VC_CREATE_VIDEO_ELEMENT:"videoControllerCreateVideoElement",VC_UPDATE_ELEMENT_STREAM:"videoControllerUpdateElementStream",VC_VIDEO_ELEMENT_CREATED:"videoControllerVideoElementCreated",VC_FOCUS_VIDEO_ELEMENT:"videoControllerFocusVideoElement",VC_VIDEO_ELEMENT_IN_FOCUS:"videoControllerVideoElementInFocus",VC_VIDEO_ELEMENT_LOST_FOCUS:"videoControllerVideoElementLostFocus",VC_DISPOSE_VIDEO_ELEMENT:"videoControllerDisposeVideoElement",VC_VIDEO_ELEMENT_DISPOSED:"videoControllerVideoElementDisposed",VC_SET_VIDEO_STREAMS:"videoControllerSetVideoStreams",VC_ERROR:"videoControllerError",VC_SET_INITIAL_TIME:"videoSetInitialTime",VC_PLAY:"videoPlay",PLAY_VIDEO_ELEMENT:"playVideoElement",VC_WILL_PLAY:"videoWillPlay",VC_PLAYING:"videoPlaying",VC_PLAYED:"videoPlayed",VC_PLAY_FAILED:"videoPlayFailed",VC_PAUSE:"videoPause",VC_PAUSED:"videoPaused",VC_SEEK:"videoSeek",VC_SEEKING:"videoSeeking",VC_SEEKED:"videoSeeked",VC_PRELOAD:"videoPreload",VC_RELOAD:"videoReload",VC_TAG_FOUND:"videoTagFound",INITIAL_PLAY_STARTING:"initialPlayStarting",AD_SDK_LOADED:"adSdkLoaded",AD_SDK_LOAD_FAILED:"adSdkLoadFailed",AD_REQUEST:"adRequest",AD_REQUEST_SUCCESS:"adRequestSuccess",AD_REQUEST_ERROR:"adRequestError",AD_REQUEST_EMPTY:"adRequestEmpty",AD_PLAYBACK_ERROR:"adPlaybackError",AD_SDK_IMPRESSION:"adSdkImpression",AD_COMPLETED:"adCompleted",WILL_FETCH_ADS:"willFetchAds",DISABLE_SEEKING:"disableSeeking",ENABLE_SEEKING:"enableSeeking",WILL_PLAY_ADS:"willPlayAds",WILL_PLAY_SINGLE_AD:"willPlaySingleAd",WILL_PAUSE_ADS:"willPauseAds",WILL_RESUME_ADS:"willResumeAds",WILL_PLAY_NONLINEAR_AD:"willPlayNonlinearAd",PLAY_NONLINEAR_AD:"playNonlinearAd",NONLINEAR_AD_DISPLAYED:"nonlinearAdDisplayed",ADS_PLAYED:"adsPlayed",SINGLE_AD_PLAYED:"singleAdPlayed",ADS_ERROR:"adsError",ADS_CLICKED:"adsClicked",FIRST_AD_FETCHED:"firstAdFetched",AD_CONFIG_READY:"adConfigReady",WILL_SHOW_COMPANION_ADS:"willShowCompanionAds",AD_FETCH_FAILED:"adFetchFailed",MIDROLL_PLAY_FAILED:"midrollPlayFailed",SKIP_AD:"skipAd",UPDATE_AD_COUNTDOWN:"updateAdCountdown",REPORT_EXPERIMENT_VARIATIONS:"reportExperimentVariations",FETCH_STYLE:"fetchStyle",STYLE_FETCHED:"styleFetched",SET_STYLE:"setStyle",USE_SERVER_SIDE_HLS_ADS:"useServerSideHlsAds",LOAD_ALL_VAST_ADS:"loadAllVastAds",ADS_FILTERED:"adsFiltered",ADS_MANAGER_HANDLING_ADS:"adsManagerHandlingAds",ADS_MANAGER_FINISHED_ADS:"adsManagerFinishedAds",OVERLAY_RENDERING:"overlayRendering",SHOW_AD_CONTROLS:"showAdControls",SHOW_AD_MARQUEE:"showAdMarquee",SDK_AD_EVENT:"sdkAdEvent",PAGE_UNLOAD_REQUESTED:"pageUnloadRequested",PAGE_PROBABLY_UNLOADING:"pageProbablyUnloading",REPORT_DISCOVERY_IMPRESSION:"reportDiscoveryImpression",REPORT_DISCOVERY_CLICK:"reportDiscoveryClick",DISCOVERY_API:{SEND_DISPLAY_EVENT:"sendDisplayEvent",SEND_CLICK_EVENT:"sendClickEvent"},PLAYLISTS_READY:"playlistReady",VIDEO_TYPE_CHANGED:"videoTypeChanged",UI_READY:"uiReady",__end_marker:!0},e.ERROR={API:{NETWORK:"network",SAS:{GENERIC:"sas",GEO:"geo",DOMAIN:"domain",FUTURE:"future",PAST:"past",DEVICE:"device",PROXY:"proxy",CONCURRENT_STREAMS:"concurrent_streams",INVALID_HEARTBEAT:"invalid_heartbeat",ERROR_DEVICE_INVALID_AUTH_TOKEN:"device_invalid_auth_token",ERROR_DEVICE_LIMIT_REACHED:"device_limit_reached",ERROR_DEVICE_BINDING_FAILED:"device_binding_failed",ERROR_DEVICE_ID_TOO_LONG:"device_id_too_long",ERROR_DRM_RIGHTS_SERVER_ERROR:"drm_server_error",ERROR_DRM_GENERAL_FAILURE:"drm_general_failure",ERROR_INVALID_ENTITLEMENTS:"invalid_entitlements"},CONTENT_TREE:"content_tree",METADATA:"metadata"},PLAYBACK:{GENERIC:"playback",STREAM:"stream",LIVESTREAM:"livestream",NETWORK:"network_error"},CHROMECAST:{MANIFEST:"chromecast_manifest",MEDIAKEYS:"chromecast_mediakeys",NETWORK:"chromecast_network",PLAYBACK:"chromecast_playback"},UNPLAYABLE_CONTENT:"unplayable_content",INVALID_EXTERNAL_ID:"invalid_external_id",EMPTY_CHANNEL:"empty_channel",EMPTY_CHANNEL_SET:"empty_channel_set",CHANNEL_CONTENT:"channel_content",VC:{UNSUPPORTED_ENCODING:"unsupported_encoding",UNABLE_TO_CREATE_VIDEO_ELEMENT:"unable_to_create_video_element"},MEDIA:{MEDIA_ERR_ABORTED:"aborted",MEDIA_ERR_NETWORK:"network_error",MEDIA_ERR_DECODE:"decode_error",MEDIA_ERR_SRC_NOT_SUPPORTED:"unsupported_source"}},e.URLS={VAST_PROXY:t.template("http://player.ooyala.com/nuplayer/mobile_vast_ads_proxy?callback=<%=cb%>&embed_code=<%=embedCode%>&expires=<%=expires%>&tag_url=<%=tagUrl%>"),EXTERNAL_ID:t.template("<%=server%>/player_api/v1/content_tree/external_id/<%=pcode%>/<%=externalId%>"),CONTENT_TREE:t.template("<%=server%>/player_api/v1/content_tree/embed_code/<%=pcode%>/<%=embedCode%>"),METADATA:t.template("<%=server%>/player_api/v1/metadata/embed_code/<%=playerBrandingId%>/<%=embedCode%>?videoPcode=<%=pcode%>"),SAS:t.template("<%=server%>/player_api/v1/authorization/embed_code/<%=pcode%>/<%=embedCode%>"),ANALYTICS:t.template("<%=server%>/reporter.js"),THUMBNAILS:t.template("<%=server%>/api/v1/thumbnail_images/<%=embedCode%>"),__end_marker:!0},e.TRACKING_LEVEL={DEFAULT:"default",ANONYMOUS:"anonymous",DISABLED:"disabled"},e.PLUGINS={ADS:"ads",VIDEO:"video",ANALYTICS:"analytics",PLAYLIST:"playlist",SKIN:"skin"},e.VIDEO={MAIN:"main",ADS:"ads",ENCODING:{DRM:{HLS:"hls_drm",DASH:"dash_drm"},AUDIO:"audio",AUDIO_OGG:"audio_ogg",AUDIO_M4A:"audio_m4a",AUDIO_HLS:"audio_hls",DASH:"dash",HDS:"hds",HLS:"hls",IMA:"ima",PULSE:"pulse",MP4:"mp4",YOUTUBE:"youtube",RTMP:"rtmp",SMOOTH:"smooth",WEBM:"webm",AKAMAI_HD_VOD:"akamai_hd_vod",AKAMAI_HD2_VOD_HLS:"akamai_hd2_vod_hls",AKAMAI_HD2_VOD_HDS:"akamai_hd2_vod_hds",AKAMAI_HD2_HDS:"akamai_hd2_hds",AKAMAI_HD2_HLS:"akamai_hd2_hls",FAXS_HLS:"faxs_hls",WIDEVINE_HLS:"wv_hls",WIDEVINE_MP4:"wv_mp4",WIDEVINE_WVM:"wv_wvm",UNKNOWN:"unknown"},FEATURE:{CLOSED_CAPTIONS:"closedCaptions",VIDEO_OBJECT_SHARING_GIVE:"videoObjectSharingGive",VIDEO_OBJECT_SHARING_TAKE:"videoObjectSharingTake",BITRATE_CONTROL:"bitrateControl"},TECHNOLOGY:{FLASH:"flash",HTML5:"html5",MIXED:"mixed",OTHER:"other"}},e.CSS={VISIBLE_POSITION:"0px",INVISIBLE_POSITION:"-100000px",VISIBLE_DISPLAY:"block",INVISIBLE_DISPLAY:"none",VIDEO_Z_INDEX:1e4,SUPER_Z_INDEX:2e4,ALICE_SKIN_Z_INDEX:11e3,OVERLAY_Z_INDEX:10500,TRANSPARENT_COLOR:"rgba(255, 255, 255, 0)",__end_marker:!0},e.TEMPLATES={RANDOM_PLACE_HOLDER:["[place_random_number_here]","<now>","[timestamp]","<rand-num>","[cache_buster]","[random]"],REFERAK_PLACE_HOLDER:["[referrer_url]","[LR_URL]","[description_url]"],EMBED_CODE_PLACE_HOLDER:["[oo_embedcode]"],MESSAGE:'                  <table width="100%" height="100%" bgcolor="black" style="padding-left:55px; padding-right:55px;                   background-color:black; color: white;">                  <tbody>                  <tr valign="middle">                  <td align="right"><span style="font-family:Arial; font-size:20px">                  <%= message %>                  </span></td></tr></tbody></table>                  ',__end_marker:!0},e.CONSTANTS={AD_PLAY_COUNT_KEY:"oo_ad_play_count",AD_ID_TO_PLAY_COUNT_DIVIDER:":",AD_PLAY_COUNT_DIVIDER:"|",MAX_AD_PLAY_COUNT_HISTORY_LENGTH:20,CONTROLS_BOTTOM_PADDING:10,SEEK_TO_END_LIMIT:3,PLAYER_TYPE:{VIDEO:"video",AUDIO:"audio"},HEVC_CODEC:{HEV1:"hev1",HVC1:"hvc1"},CLOSED_CAPTIONS:{SHOWING:"showing",HIDDEN:"hidden",DISABLED:"disabled"},OOYALA_PLAYER_SETTINGS_KEY:"ooyala_player_settings",PLAYBACK_SPEED:{MIN:.5,MAX:2},__end_marker:!0}}(OO,OO._)},{}],5:[function(e,t,n){!function(e,t,n){e.playerParams=n.safeObject("environment.playerParams",e.playerParams,{}),e.configurePublisher=function(t){e.playerParams.pcode=t.pcode||e.playerParams.pcode||"",e.playerParams.playerBrandingId=t.playerBrandingId||e.playerParams.playerBrandingId||"",e.playerParams.playerType=t.playerType||e.playerParams.playerType||e.CONSTANTS.PLAYER_TYPE.VIDEO,e.playerParams.debug=t.debug||e.playerParams.debug||""},e.isPublisherConfigured=function(){return!(!e.playerParams.pcode||!e.playerParams.playerBrandingId)},e.setServerHost=function(t){e.playerParams.api_ssl_server=t.api_ssl_server||e.playerParams.api_ssl_server||null,e.playerParams.api_server=t.api_server||e.playerParams.api_server||null,e.playerParams.auth_ssl_server=t.auth_ssl_server||e.playerParams.auth_ssl_server||null,e.playerParams.auth_server=t.auth_server||e.playerParams.auth_server||null,e.playerParams.analytics_ssl_server=t.analytics_ssl_server||e.playerParams.analytics_ssl_server||null,e.playerParams.analytics_server=t.analytics_server||e.playerParams.analytics_server||null,c()};var r,o,i,a,s,c=function(){e.SERVER={API:e.isSSL?e.playerParams.api_ssl_server||"https://player.ooyala.com":e.playerParams.api_server||"http://player.ooyala.com",AUTH:e.isSSL?e.playerParams.auth_ssl_server||"https://player.ooyala.com/sas":e.playerParams.auth_server||"http://player.ooyala.com/sas",ANALYTICS:e.isSSL?e.playerParams.analytics_ssl_server||"https://player.ooyala.com":e.playerParams.analytics_server||"http://player.ooyala.com"}};e.playerParams.tweaks=e.playerParams.tweaks||"",e.playerParams.tweaks=n.safeString("environment.playerParams.tweaks",e.playerParams.tweaks,""),e.playerParams.tweaks=e.playerParams.tweaks.split(","),e.tweaks={},e.tweaks["android-enable-hls"]=t.contains(e.playerParams.tweaks,"android-enable-hls"),e.tweaks["html5-force-mp4"]=t.contains(e.playerParams.tweaks,"html5-force-mp4"),e.playerParams.maxAdsTimeout=e.playerParams.maxAdsTimeout||5,e.playerParams.maxVastWrapperDepth=e.playerParams.maxVastWrapperDepth||3,e.playerParams.minLiveSeekWindow=e.playerParams.minLiveSeekWindow||10,e.guid="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}),e.playerCount=0,e.isProd=!(!e.playerParams.environment||!e.playerParams.environment.match(/^prod/i)),e.platform=window.navigator.platform,e.os=window.navigator.appVersion,e.supportsVideo=!!document.createElement("video").canPlayType,e.browserSupportsCors=function(){try{return t.has(new XMLHttpRequest,"withCredentials")||t.has(XMLHttpRequest.prototype,"withCredentials")}catch(e){return!1}}(),e.isWindows=!!e.platform.match(/Win/),e.isWindows7=e.isWindows&&"Windows NT 6.1"===window.navigator.userAgent.match(/Windows NT [\d.]*/)[0].trim(),e.isIos=!!e.platform.match(/iPhone|iPad|iPod/),e.isIphone=!!e.platform.match(/iPhone|iPod/),e.isIpad=!!e.platform.match(/iPad/),e.iosMajorVersion=function(){try{return e.isIos?parseInt(window.navigator.userAgent.match(/OS (\d+)/)[1],10):null}catch(e){return null}}(),e.isAndroid=!(!e.os.match(/Android/)||e.os.match(/Windows Phone/)),e.isAndroid4Plus=((r=e.os.match(/Android [\d\.]*;/))&&r.length>0&&(r=parseInt(r[0].substring(r[0].indexOf(" ")+1,r[0].search("[.;]")))),e.isAndroid&&r>=4),e.isAndroid4_4Plus=function(){var t=!1;if(e.isAndroid){var n=e.os.match(/Android [\d\.]*;/);if(n&&n.length){var r=n[0].toLowerCase().match(/android\s([0-9\.]*)/)[1];t=parseFloat(r)>4.3}}return t}(),e.isRimDevice=!(!e.os.match(/BlackBerry/)&&!e.os.match(/PlayBook/)),e.isFirefox=!!window.navigator.userAgent.match(/Firefox/),e.isChrome=!!window.navigator.userAgent.match(/Chrome/)&&!window.navigator.userAgent.match(/Edge/),e.isSafari=!(!window.navigator.userAgent.match(/AppleWebKit/)||window.navigator.userAgent.match(/Chrome/)||window.navigator.userAgent.match(/CriOS/)||window.navigator.userAgent.match(/like iPhone/)),e.chromeMajorVersion=function(){try{return parseInt(window.navigator.userAgent.match(/Chrome.([0-9]*)/)[1],10)}catch(e){return null}}(),e.isIE=!!window.navigator.userAgent.match(/MSIE/)||!!window.navigator.userAgent.match(/Trident/),e.isEdge=!!window.navigator.userAgent.match(/Edge/),e.isIE11Plus=function(){if(!window.navigator.userAgent.match(/Trident/))return!1;var e=window.navigator.userAgent.match(/rv:(\d*)/);return(e&&e[1])>=11}(),e.isWinPhone=!!e.os.match(/Windows Phone/)||!!e.os.match(/ZuneWP/)||!!e.os.match(/XBLWP/),e.isSmartTV=!!window.navigator.userAgent.match(/SmartTV/)||!!window.navigator.userAgent.match(/NetCast/),e.isMacOs=!e.isIos&&!!e.os.match(/Mac/)&&!window.navigator.userAgent.match(/like iPhone/),e.isMacOsLionOrLater=!(null==(o=e.os.match(/Mac OS X ([0-9]+)_([0-9]+)/))||o.length<3)&&parseInt(o[1],10)>=10&&parseInt(o[2],10)>=7,e.macOsSafariVersion=function(){try{return e.isMacOs&&e.isSafari?parseInt(window.navigator.userAgent.match(/Version\/(\d+)/)[1],10):null}catch(e){return null}}(),e.isKindleHD=!!e.os.match(/Silk\/2/),e.supportMSE="MediaSource"in window||"WebKitMediaSource"in window||"mozMediaSource"in window||"msMediaSource"in window,e.supportAds=!e.isWinPhone&&!e.os.match(/Android [23]/),e.allowGesture=e.isIos,e.allowAutoPlay=!e.isIos&&!e.isAndroid,e.supportTouch=!(!document.documentElement.hasOwnProperty||!document.documentElement.hasOwnProperty("ontouchstart")),e.docDomain=function(){var t=null;try{t=document.domain}catch(e){}return e._.isEmpty(t)?e.isSmartTV?"SmartTV":"unknown":t}(),e.uiParadigm=(i="tablet",e.isAndroid4Plus&&e.tweaks["android-enable-hls"]?i="tablet":e.isIphone?i="mobile-native":e.os.match(/BlackBerry/)?i="mobile-native":e.os.match(/iPad/)?i="tablet":e.isKindleHD?i="mobile-native":e.os.match(/Silk/)?i="mobile":e.os.match(/Android 2/)?window.orientation%180==0&&window.outerWidth/window.devicePixelRatio<=480?i="mobile":window.outerWidth/window.devicePixelRatio<=560&&(i="mobile"):e.os.match(/Android/)?i="tablet":e.isWinPhone?i="mobile":(e.platform.match(/Mac/)||e.platform.match(/Win/)||e.platform.match(/Linux/))&&(i="desktop"),i),e.requiresSingleVideoElement=e.isIos||e.isAndroid,e.supportedVideoProfiles=e.isIos||e.isAndroid?"baseline":null,e.device=(a="html5",e.isIphone?a="iphone-html5":e.isIpad?a="ipad-html5":e.isAndroid?a="android-html5":e.isRimDevice?a="rim-html5":e.isWinPhone?a="winphone-html5":e.isSmartTV&&(a="smarttv-html5"),a),e.environmentRequiredFeatures=(s=[],e.os.match(/Android 2/)?s.push("html5-playback"):(s.push("html5-playback"),e.supportAds&&s.push("ads")),t.reduce(s,function(e,t){return e+t+" "},"")),e.supportMidRollAds="desktop"===e.uiParadigm&&!e.isIos&&!e.isRimDevice,e.supportCookies=function(){document.cookie="ooyala_cookie_test=true";var e=document.cookie.indexOf("ooyala_cookie_test=true")>=0;return document.cookie="ooyala_cookie_test=; expires=Thu, 01 Jan 1970 00:00:00 GMT",e}(),e.isSSL="https:"==document.location.protocol,c(),e.requiredInEnvironment=e.featureEnabled=function(t){return!!e.environmentRequiredFeatures.match(new RegExp(t))},e.chromeExtensionEnabled=!!document.getElementById("ooyala-extension-installed"),e.locale="",e.setLocale=function(t){e.locale=t.toUpperCase()},e.getLocale=function(){return(e.locale||document.documentElement.lang||navigator.language||navigator.userLanguage||"en").substr(0,2).toUpperCase()}}(OO,OO._,OO.HM)},{}],6:[function(e,t,n){!function(e,t,n){e.getRandomString=function(){return Math.random().toString(36).substring(7)},e.safeClone=function(r){if(t.isNumber(r)||t.isString(r)||t.isBoolean(r)||t.isFunction(r)||t.isNull(r)||t.isUndefined(r))return r;var o=r instanceof Array?[]:{};try{n.extend(!0,o,r)}catch(t){e.log("deep clone error",t)}return o},e.d=function(){e.isDebug&&e.log.apply(e,arguments),e.$("#OOYALA_DEBUG_CONSOLE").append(JSON.stringify(e.safeClone(arguments))+"<br>")},e.inherit=function(t,n){if("function"!=typeof t)return e.log("invalid inherit, ParentClass need to be a class",t),null;var r=function(){t.apply(this,arguments),"function"==typeof n&&n.apply(this,arguments)},o=new t;return e._.extend(r.prototype,o),r.prototype.parentClass=o,r};var r={};e.attachStyle=function(e,t){var o=n('<style type="text/css">'+e+"</style>").appendTo("head");r[t]=r[t]||[],r[t].push(o)},e.removeStyles=function(t){e._.each(r[t],function(e){e.remove()})},e.getInnerProperty=function(e,n){for(var r=e,o=n;o.length>0;){var i=o.shift();if(t.isNull(r)||!t.isObject(r)||t.isFunction(r)||t.isArray(r))return null;r=r[i]}return r},e.formatSeconds=function(e){var t=parseInt(e,10)%60,n=parseInt(e/3600,10),r=parseInt((e-3600*n)/60,10);return n<10&&(n="0"+n),r<10&&(r="0"+r),t<10&&(t="0"+t),parseInt(n,10)>0?n+":"+r+":"+t:r+":"+t},e.timeStringToSeconds=function(e){var n=(e||"").split(":");return t.reduce(n,function(e,t){return 60*e+parseInt(t,10)},0)},e.leftPadding=function(e,t){for(var n=e?e.toString():"";n.length<t;)n="0"+n;return n},e.getColorString=function(t){return"#"+e.leftPadding(t.toString(16),6).toUpperCase()},e.hexToRgb=function(e){return[(16711680&e)>>16,(65280&e)>>8,255&e]},e.changeColor=function(t,n,r){var o=r?Math.max:Math.min,i=r?0:255,a=Math.round(255*n)*(r?-1:1),s=e.hexToRgb(t);return[e.leftPadding(o(s[0]+a,i).toString(16),2),e.leftPadding(o(s[1]+a,i).toString(16),2),e.leftPadding(o(s[2]+a,i).toString(16),2)].join("")},e.decode64=function(e){e=e.replace(/\n/g,"");var t,n="",r=0,o=[];if(window.atob)return atob(e);do{for(t=0;t<4;t++)o[t]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(r++));n+=String.fromCharCode(o[0]<<2|o[1]>>4,64==o[2]?0:(15&o[1])<<4|o[2]>>2,64==o[3]?0:(3&o[2])<<6|o[3])}while(r<e.length);return n.replace(/\0/g,"")},e.pixelPing=function(t){var n=new Image;n.onerror=n.onabort=function(){e.d("onerror:",t)},n.src=e.getNormalizedTagUrl(t)},e.pixelPings=function(n){t.isEmpty(n)||t.each(n,function(t){e.pixelPing(t)},this)},e.stringToBoolean=function(e){return"string"==typeof e?e.toLowerCase().indexOf("true")>-1||e.toLowerCase().indexOf("yes")>-1:!!e},e.regexEscape=function(e){return e.replace(/[<>()\[\]{}]/g,"\\$&")},e.getNormalizedTagUrl=function(n,r){var o=(new Date).getTime(),i=escape(document.URL),a=function(r,o){t.each(r,function(t){var r=new RegExp("("+e.regexEscape(t)+")","gi");n=n.replace(r,o)},this)};return a(e.TEMPLATES.RANDOM_PLACE_HOLDER,o),a(e.TEMPLATES.REFERAK_PLACE_HOLDER,i),r&&a(e.TEMPLATES.EMBED_CODE_PLACE_HOLDER,r),n},e.safeSeekRange=function(e){return{start:e.length>0?e.start(0):0,end:e.length>0?e.end(0):0}},e.loadedJS=e.loadedJS||{},e.jsOnSuccessList=e.jsOnSuccessList||{},e.safeFuncCall=function(t){if("function"==typeof t)try{t.apply()}catch(t){e.log("Can not invoke function!",t)}},e.loadScriptOnce=function(t,r,o,i){return e.jsOnSuccessList[t]=e.jsOnSuccessList[t]||[],e.loadedJS[t]?("loaded"===e.loadedJS[t]?e.safeFuncCall(r):"loading"===e.loadedJS[t]&&e.jsOnSuccessList[t].unshift(r),!1):(e.loadedJS[t]="loading",n.ajax({url:t,type:"GET",cache:!0,dataType:"script",timeout:i||15e3,success:function(){e.loadedJS[t]="loaded",e.jsOnSuccessList[t].unshift(r),e._.each(e.jsOnSuccessList[t],function(t){e.safeFuncCall(t)},this),e.jsOnSuccessList[t]=[]},error:function(){e.safeFuncCall(o)}}),!0)};try{e.localStorage=window.localStorage}catch(t){e.log(t)}e.localStorage||(e.localStorage={getItem:function(e){return e&&this.hasOwnProperty(e)?unescape(document.cookie.replace(new RegExp("(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*"),"$1")):null},key:function(e){return unescape(document.cookie.replace(/\s*\=(?:.(?!;))*$/,"").split(/\s*\=(?:[^;](?!;))*[^;]?;\s*/)[e])},setItem:function(e,t){e&&(document.cookie=escape(e)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/",this.length=document.cookie.match(/\=/g).length)},length:0,removeItem:function(e){e&&this.hasOwnProperty(e)&&(document.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/",this.length--)},hasOwnProperty:function(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)}},e.localStorage.length=(document.cookie.match(/\=/g)||e.localStorage).length),e.setItem=function(t,n){try{e.localStorage.setItem(t,n)}catch(t){e.log(t)}},e.ensureNumber=function(e,n){var r;return(null===e||t.isArray(e))&&(e=NaN),r=t.isNumber(e)?e:Number(e),isFinite(r)?r:void 0===n?null:n},e.JSON=window.JSON}(OO,OO._,OO.$)},{}],7:[function(e,t,n){var r=function(e,t){var n=function(t){if(this.config=t||{},!e.isObject(this.config))throw new Error("Hazmat is not initialized properly");this.fail=e.isFunction(this.config.fail)?this.config.fail:n.fail,this.warn=e.isFunction(this.config.warn)?this.config.warn:n.warn,this.log=e.isFunction(this.config.log)?this.config.log:n.log};return e.extend(n,{ID_REGEX:/^[\_A-Za-z0-9]+$/,create:function(e){return new n(e)},noConflict:function(){return t.Hazmat=n.original,n},log:function(){console&&e.isFunction(console.log)&&console.log.apply(console,arguments)},fail:function(e,t){var r=e||"",o=t||{};throw n.log("Hazmat Failure::",r,o),new Error("Hazmat Failure "+r.toString())},warn:function(e,t){var r=e||"",o=t||{};n.log("Hazmat Warning::",r,o)},fixDomId:function(t){return e.isString(t)&&t.length>0?t.replace(/[^A-Za-z0-9\_]/g,""):null},isDomId:function(t){return e.isString(t)&&t.match(n.ID_REGEX)},__placeholder:!0}),e.extend(n.prototype,{_safeValue:function(t,n,r,o){var i=r;return e.isFunction(r)&&(r=e.once(function(){try{return i.apply(this,arguments)}catch(e){}})),o.checker(n)?n:o.evalFallback&&e.isFunction(r)&&o.checker(r(n))?(this.warn("Expected valid "+o.name+" for "+t+" but was able to sanitize it:",[n,r(n)]),r(n)):o.checker(i)?(this.warn("Expected valid "+o.name+" for "+t+" but was able to fallback to default value:",[n,i]),i):void this.fail("Expected valid "+o.name+" for "+t+" but received:",n)},safeString:function(t,n,r){return this._safeValue(t,n,r,{name:"String",checker:e.isString,evalFallback:!0})},safeStringOrNull:function(t,n,r){return null==n?n:this._safeValue(t,n,r,{name:"String",checker:e.isString,evalFallback:!0})},safeDomId:function(e,t,r){return this._safeValue(e,t,r,{name:"DOM ID",checker:n.isDomId,evalFallback:!0})},safeFunction:function(t,n,r){return this._safeValue(t,n,r,{name:"Function",checker:e.isFunction,evalFallback:!1})},safeFunctionOrNull:function(t,n,r){return null==n?n:this._safeValue(t,n,r,{name:"Function",checker:e.isFunction,evalFallback:!1})},safeObject:function(t,n,r){return this._safeValue(t,n,r,{name:"Object",checker:e.isObject,evalFallback:!1})},safeObjectOrNull:function(t,n,r){return null==n?n:this._safeValue(t,n,r,{name:"Object",checker:e.isObject,evalFallback:!1})},safeArray:function(t,n,r){return this._safeValue(t,n,r,{name:"Array",checker:e.isArray,evalFallback:!1})},safeArrayOfElements:function(t,n,r,o){var i=this._safeValue(t,n,o,{name:"Array",checker:e.isArray,evalFallback:!1});return e.map(i,r)},__placeholder:!0}),n};if("undefined"!=typeof window&&void 0!==window._){(i=r(window._,window)).original=window.Hazmat,window.Hazmat=i}else{var o=e("underscore"),i=r(o);o.extend(n,i)}},{underscore:8}],8:[function(e,t,n){(function(e){!function(){var r="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||this||{},o=r._,i=Array.prototype,a=Object.prototype,s="undefined"!=typeof Symbol?Symbol.prototype:null,c=i.push,u=i.slice,l=a.toString,f=a.hasOwnProperty,d=Array.isArray,_=Object.keys,p=Object.create,h=function(){},E=function(e){return e instanceof E?e:this instanceof E?void(this._wrapped=e):new E(e)};void 0===n||n.nodeType?r._=E:(void 0!==t&&!t.nodeType&&t.exports&&(n=t.exports=E),n._=E),E.VERSION="1.9.1";var m,y=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)}}return function(){return e.apply(t,arguments)}},v=function(e,t,n){return E.iteratee!==m?E.iteratee(e,t):null==e?E.identity:E.isFunction(e)?y(e,t,n):E.isObject(e)&&!E.isArray(e)?E.matcher(e):E.property(e)};E.iteratee=m=function(e,t){return v(e,t,1/0)};var g=function(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),o=0;o<n;o++)r[o]=arguments[o+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var i=Array(t+1);for(o=0;o<t;o++)i[o]=arguments[o];return i[t]=r,e.apply(this,i)}},O=function(e){if(!E.isObject(e))return{};if(p)return p(e);h.prototype=e;var t=new h;return h.prototype=null,t},A=function(e){return function(t){return null==t?void 0:t[e]}},b=function(e,t){return null!=e&&f.call(e,t)},S=function(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0},T=Math.pow(2,53)-1,I=A("length"),N=function(e){var t=I(e);return"number"==typeof t&&t>=0&&t<=T};E.each=E.forEach=function(e,t,n){var r,o;if(t=y(t,n),N(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else{var i=E.keys(e);for(r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e)}return e},E.map=E.collect=function(e,t,n){t=v(t,n);for(var r=!N(e)&&E.keys(e),o=(r||e).length,i=Array(o),a=0;a<o;a++){var s=r?r[a]:a;i[a]=t(e[s],s,e)}return i};var D=function(e){return function(t,n,r,o){var i=arguments.length>=3;return function(t,n,r,o){var i=!N(t)&&E.keys(t),a=(i||t).length,s=e>0?0:a-1;for(o||(r=t[i?i[s]:s],s+=e);s>=0&&s<a;s+=e){var c=i?i[s]:s;r=n(r,t[c],c,t)}return r}(t,y(n,o,4),r,i)}};E.reduce=E.foldl=E.inject=D(1),E.reduceRight=E.foldr=D(-1),E.find=E.detect=function(e,t,n){var r=(N(e)?E.findIndex:E.findKey)(e,t,n);if(void 0!==r&&-1!==r)return e[r]},E.filter=E.select=function(e,t,n){var r=[];return t=v(t,n),E.each(e,function(e,n,o){t(e,n,o)&&r.push(e)}),r},E.reject=function(e,t,n){return E.filter(e,E.negate(v(t)),n)},E.every=E.all=function(e,t,n){t=v(t,n);for(var r=!N(e)&&E.keys(e),o=(r||e).length,i=0;i<o;i++){var a=r?r[i]:i;if(!t(e[a],a,e))return!1}return!0},E.some=E.any=function(e,t,n){t=v(t,n);for(var r=!N(e)&&E.keys(e),o=(r||e).length,i=0;i<o;i++){var a=r?r[i]:i;if(t(e[a],a,e))return!0}return!1},E.contains=E.includes=E.include=function(e,t,n,r){return N(e)||(e=E.values(e)),("number"!=typeof n||r)&&(n=0),E.indexOf(e,t,n)>=0},E.invoke=g(function(e,t,n){var r,o;return E.isFunction(t)?o=t:E.isArray(t)&&(r=t.slice(0,-1),t=t[t.length-1]),E.map(e,function(e){var i=o;if(!i){if(r&&r.length&&(e=S(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)})}),E.pluck=function(e,t){return E.map(e,E.property(t))},E.where=function(e,t){return E.filter(e,E.matcher(t))},E.findWhere=function(e,t){return E.find(e,E.matcher(t))},E.max=function(e,t,n){var r,o,i=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=N(e)?e:E.values(e)).length;s<c;s++)null!=(r=e[s])&&r>i&&(i=r);else t=v(t,n),E.each(e,function(e,n,r){((o=t(e,n,r))>a||o===-1/0&&i===-1/0)&&(i=e,a=o)});return i},E.min=function(e,t,n){var r,o,i=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=N(e)?e:E.values(e)).length;s<c;s++)null!=(r=e[s])&&r<i&&(i=r);else t=v(t,n),E.each(e,function(e,n,r){((o=t(e,n,r))<a||o===1/0&&i===1/0)&&(i=e,a=o)});return i},E.shuffle=function(e){return E.sample(e,1/0)},E.sample=function(e,t,n){if(null==t||n)return N(e)||(e=E.values(e)),e[E.random(e.length-1)];var r=N(e)?E.clone(e):E.values(e),o=I(r);t=Math.max(Math.min(t,o),0);for(var i=o-1,a=0;a<t;a++){var s=E.random(a,i),c=r[a];r[a]=r[s],r[s]=c}return r.slice(0,t)},E.sortBy=function(e,t,n){var r=0;return t=v(t,n),E.pluck(E.map(e,function(e,n,o){return{value:e,index:r++,criteria:t(e,n,o)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index}),"value")};var C=function(e,t){return function(n,r,o){var i=t?[[],[]]:{};return r=v(r,o),E.each(n,function(t,o){var a=r(t,o,n);e(i,t,a)}),i}};E.groupBy=C(function(e,t,n){b(e,n)?e[n].push(t):e[n]=[t]}),E.indexBy=C(function(e,t,n){e[n]=t}),E.countBy=C(function(e,t,n){b(e,n)?e[n]++:e[n]=1});var L=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;E.toArray=function(e){return e?E.isArray(e)?u.call(e):E.isString(e)?e.match(L):N(e)?E.map(e,E.identity):E.values(e):[]},E.size=function(e){return null==e?0:N(e)?e.length:E.keys(e).length},E.partition=C(function(e,t,n){e[n?0:1].push(t)},!0),E.first=E.head=E.take=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[0]:E.initial(e,e.length-t)},E.initial=function(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},E.last=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[e.length-1]:E.rest(e,Math.max(0,e.length-t))},E.rest=E.tail=E.drop=function(e,t,n){return u.call(e,null==t||n?1:t)},E.compact=function(e){return E.filter(e,Boolean)};var P=function(e,t,n,r){for(var o=(r=r||[]).length,i=0,a=I(e);i<a;i++){var s=e[i];if(N(s)&&(E.isArray(s)||E.isArguments(s)))if(t)for(var c=0,u=s.length;c<u;)r[o++]=s[c++];else P(s,t,n,r),o=r.length;else n||(r[o++]=s)}return r};E.flatten=function(e,t){return P(e,t,!1)},E.without=g(function(e,t){return E.difference(e,t)}),E.uniq=E.unique=function(e,t,n,r){E.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=v(n,r));for(var o=[],i=[],a=0,s=I(e);a<s;a++){var c=e[a],u=n?n(c,a,e):c;t&&!n?(a&&i===u||o.push(c),i=u):n?E.contains(i,u)||(i.push(u),o.push(c)):E.contains(o,c)||o.push(c)}return o},E.union=g(function(e){return E.uniq(P(e,!0,!0))}),E.intersection=function(e){for(var t=[],n=arguments.length,r=0,o=I(e);r<o;r++){var i=e[r];if(!E.contains(t,i)){var a;for(a=1;a<n&&E.contains(arguments[a],i);a++);a===n&&t.push(i)}}return t},E.difference=g(function(e,t){return t=P(t,!0,!0),E.filter(e,function(e){return!E.contains(t,e)})}),E.unzip=function(e){for(var t=e&&E.max(e,I).length||0,n=Array(t),r=0;r<t;r++)n[r]=E.pluck(e,r);return n},E.zip=g(E.unzip),E.object=function(e,t){for(var n={},r=0,o=I(e);r<o;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n};var k=function(e){return function(t,n,r){n=v(n,r);for(var o=I(t),i=e>0?0:o-1;i>=0&&i<o;i+=e)if(n(t[i],i,t))return i;return-1}};E.findIndex=k(1),E.findLastIndex=k(-1),E.sortedIndex=function(e,t,n,r){for(var o=(n=v(n,r,1))(t),i=0,a=I(e);i<a;){var s=Math.floor((i+a)/2);n(e[s])<o?i=s+1:a=s}return i};var w=function(e,t,n){return function(r,o,i){var a=0,s=I(r);if("number"==typeof i)e>0?a=i>=0?i:Math.max(i+s,a):s=i>=0?Math.min(i+1,s):i+s+1;else if(n&&i&&s)return r[i=n(r,o)]===o?i:-1;if(o!=o)return(i=t(u.call(r,a,s),E.isNaN))>=0?i+a:-1;for(i=e>0?a:s-1;i>=0&&i<s;i+=e)if(r[i]===o)return i;return-1}};E.indexOf=w(1,E.findIndex,E.sortedIndex),E.lastIndexOf=w(-1,E.findLastIndex),E.range=function(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),o=Array(r),i=0;i<r;i++,e+=n)o[i]=e;return o},E.chunk=function(e,t){if(null==t||t<1)return[];for(var n=[],r=0,o=e.length;r<o;)n.push(u.call(e,r,r+=t));return n};var j=function(e,t,n,r,o){if(!(r instanceof t))return e.apply(n,o);var i=O(e.prototype),a=e.apply(i,o);return E.isObject(a)?a:i};E.bind=g(function(e,t,n){if(!E.isFunction(e))throw new TypeError("Bind must be called on a function");var r=g(function(o){return j(e,r,t,this,n.concat(o))});return r}),E.partial=g(function(e,t){var n=E.partial.placeholder,r=function(){for(var o=0,i=t.length,a=Array(i),s=0;s<i;s++)a[s]=t[s]===n?arguments[o++]:t[s];for(;o<arguments.length;)a.push(arguments[o++]);return j(e,r,this,this,a)};return r}),E.partial.placeholder=E,E.bindAll=g(function(e,t){var n=(t=P(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=E.bind(e[r],e)}}),E.memoize=function(e,t){var n=function(r){var o=n.cache,i=""+(t?t.apply(this,arguments):r);return b(o,i)||(o[i]=e.apply(this,arguments)),o[i]};return n.cache={},n},E.delay=g(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),E.defer=E.partial(E.delay,E,1),E.throttle=function(e,t,n){var r,o,i,a,s=0;n||(n={});var c=function(){s=!1===n.leading?0:E.now(),r=null,a=e.apply(o,i),r||(o=i=null)},u=function(){var u=E.now();s||!1!==n.leading||(s=u);var l=t-(u-s);return o=this,i=arguments,l<=0||l>t?(r&&(clearTimeout(r),r=null),s=u,a=e.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=setTimeout(c,l)),a};return u.cancel=function(){clearTimeout(r),s=0,r=o=i=null},u},E.debounce=function(e,t,n){var r,o,i=function(t,n){r=null,n&&(o=e.apply(t,n))},a=g(function(a){if(r&&clearTimeout(r),n){var s=!r;r=setTimeout(i,t),s&&(o=e.apply(this,a))}else r=E.delay(i,t,this,a);return o});return a.cancel=function(){clearTimeout(r),r=null},a},E.wrap=function(e,t){return E.partial(t,e)},E.negate=function(e){return function(){return!e.apply(this,arguments)}},E.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},E.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},E.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},E.once=E.partial(E.before,2),E.restArguments=g;var R=!{toString:null}.propertyIsEnumerable("toString"),x=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],M=function(e,t){var n=x.length,r=e.constructor,o=E.isFunction(r)&&r.prototype||a,i="constructor";for(b(e,i)&&!E.contains(t,i)&&t.push(i);n--;)(i=x[n])in e&&e[i]!==o[i]&&!E.contains(t,i)&&t.push(i)};E.keys=function(e){if(!E.isObject(e))return[];if(_)return _(e);var t=[];for(var n in e)b(e,n)&&t.push(n);return R&&M(e,t),t},E.allKeys=function(e){if(!E.isObject(e))return[];var t=[];for(var n in e)t.push(n);return R&&M(e,t),t},E.values=function(e){for(var t=E.keys(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=e[t[o]];return r},E.mapObject=function(e,t,n){t=v(t,n);for(var r=E.keys(e),o=r.length,i={},a=0;a<o;a++){var s=r[a];i[s]=t(e[s],s,e)}return i},E.pairs=function(e){for(var t=E.keys(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=[t[o],e[t[o]]];return r},E.invert=function(e){for(var t={},n=E.keys(e),r=0,o=n.length;r<o;r++)t[e[n[r]]]=n[r];return t},E.functions=E.methods=function(e){var t=[];for(var n in e)E.isFunction(e[n])&&t.push(n);return t.sort()};var V=function(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var o=1;o<r;o++)for(var i=arguments[o],a=e(i),s=a.length,c=0;c<s;c++){var u=a[c];t&&void 0!==n[u]||(n[u]=i[u])}return n}};E.extend=V(E.allKeys),E.extendOwn=E.assign=V(E.keys),E.findKey=function(e,t,n){t=v(t,n);for(var r,o=E.keys(e),i=0,a=o.length;i<a;i++)if(t(e[r=o[i]],r,e))return r};var F,H,U=function(e,t,n){return t in n};E.pick=g(function(e,t){var n={},r=t[0];if(null==e)return n;E.isFunction(r)?(t.length>1&&(r=y(r,t[1])),t=E.allKeys(e)):(r=U,t=P(t,!1,!1),e=Object(e));for(var o=0,i=t.length;o<i;o++){var a=t[o],s=e[a];r(s,a,e)&&(n[a]=s)}return n}),E.omit=g(function(e,t){var n,r=t[0];return E.isFunction(r)?(r=E.negate(r),t.length>1&&(n=t[1])):(t=E.map(P(t,!1,!1),String),r=function(e,n){return!E.contains(t,n)}),E.pick(e,r,n)}),E.defaults=V(E.allKeys,!0),E.create=function(e,t){var n=O(e);return t&&E.extendOwn(n,t),n},E.clone=function(e){return E.isObject(e)?E.isArray(e)?e.slice():E.extend({},e):e},E.tap=function(e,t){return t(e),e},E.isMatch=function(e,t){var n=E.keys(t),r=n.length;if(null==e)return!r;for(var o=Object(e),i=0;i<r;i++){var a=n[i];if(t[a]!==o[a]||!(a in o))return!1}return!0},F=function(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;return("function"===o||"object"===o||"object"==typeof t)&&H(e,t,n,r)},H=function(e,t,n,r){e instanceof E&&(e=e._wrapped),t instanceof E&&(t=t._wrapped);var o=l.call(e);if(o!==l.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return s.valueOf.call(e)===s.valueOf.call(t)}var i="[object Array]"===o;if(!i){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,c=t.constructor;if(a!==c&&!(E.isFunction(a)&&a instanceof a&&E.isFunction(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var u=(n=n||[]).length;u--;)if(n[u]===e)return r[u]===t;if(n.push(e),r.push(t),i){if((u=e.length)!==t.length)return!1;for(;u--;)if(!F(e[u],t[u],n,r))return!1}else{var f,d=E.keys(e);if(u=d.length,E.keys(t).length!==u)return!1;for(;u--;)if(f=d[u],!b(t,f)||!F(e[f],t[f],n,r))return!1}return n.pop(),r.pop(),!0},E.isEqual=function(e,t){return F(e,t)},E.isEmpty=function(e){return null==e||(N(e)&&(E.isArray(e)||E.isString(e)||E.isArguments(e))?0===e.length:0===E.keys(e).length)},E.isElement=function(e){return!(!e||1!==e.nodeType)},E.isArray=d||function(e){return"[object Array]"===l.call(e)},E.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},E.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){E["is"+e]=function(t){return l.call(t)==="[object "+e+"]"}}),E.isArguments(arguments)||(E.isArguments=function(e){return b(e,"callee")});var G=r.document&&r.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof G&&(E.isFunction=function(e){return"function"==typeof e||!1}),E.isFinite=function(e){return!E.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},E.isNaN=function(e){return E.isNumber(e)&&isNaN(e)},E.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)},E.isNull=function(e){return null===e},E.isUndefined=function(e){return void 0===e},E.has=function(e,t){if(!E.isArray(t))return b(e,t);for(var n=t.length,r=0;r<n;r++){var o=t[r];if(null==e||!f.call(e,o))return!1;e=e[o]}return!!n},E.noConflict=function(){return r._=o,this},E.identity=function(e){return e},E.constant=function(e){return function(){return e}},E.noop=function(){},E.property=function(e){return E.isArray(e)?function(t){return S(t,e)}:A(e)},E.propertyOf=function(e){return null==e?function(){}:function(t){return E.isArray(t)?S(e,t):e[t]}},E.matcher=E.matches=function(e){return e=E.extendOwn({},e),function(t){return E.isMatch(t,e)}},E.times=function(e,t,n){var r=Array(Math.max(0,e));t=y(t,n,1);for(var o=0;o<e;o++)r[o]=t(o);return r},E.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},E.now=Date.now||function(){return(new Date).getTime()};var B={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Y=E.invert(B),K=function(e){var t=function(t){return e[t]},n="(?:"+E.keys(e).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,t):e}};E.escape=K(B),E.unescape=K(Y),E.result=function(e,t,n){E.isArray(t)||(t=[t]);var r=t.length;if(!r)return E.isFunction(n)?n.call(e):n;for(var o=0;o<r;o++){var i=null==e?void 0:e[t[o]];void 0===i&&(i=n,o=r),e=E.isFunction(i)?i.call(e):i}return e};var W=0;E.uniqueId=function(e){var t=++W+"";return e?e+t:t},E.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var z=/(.)^/,X={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},q=/\\|'|\r|\n|\u2028|\u2029/g,J=function(e){return"\\"+X[e]};E.template=function(e,t,n){!t&&n&&(t=n),t=E.defaults({},t,E.templateSettings);var r,o=RegExp([(t.escape||z).source,(t.interpolate||z).source,(t.evaluate||z).source].join("|")+"|$","g"),i=0,a="__p+='";e.replace(o,function(t,n,r,o,s){return a+=e.slice(i,s).replace(q,J),i=s+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(a+="';\n"+o+"\n__p+='"),t}),a+="';\n",t.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t.variable||"obj","_",a)}catch(e){throw e.source=a,e}var s=function(e){return r.call(this,e,E)},c=t.variable||"obj";return s.source="function("+c+"){\n"+a+"}",s},E.chain=function(e){var t=E(e);return t._chain=!0,t};var Z=function(e,t){return e._chain?E(t).chain():t};E.mixin=function(e){return E.each(E.functions(e),function(t){var n=E[t]=e[t];E.prototype[t]=function(){var e=[this._wrapped];return c.apply(e,arguments),Z(this,n.apply(E,e))}}),E},E.mixin(E),E.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=i[e];E.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],Z(this,n)}}),E.each(["concat","join","slice"],function(e){var t=i[e];E.prototype[e]=function(){return Z(this,t.apply(this._wrapped,arguments))}}),E.prototype.value=function(){return this._wrapped},E.prototype.valueOf=E.prototype.toJSON=E.prototype.value,E.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return E})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(e,t,n){t.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},{}],10:[function(e,t,n){var r=e("./_wks")("unscopables"),o=Array.prototype;null==o[r]&&e("./_hide")(o,r,{}),t.exports=function(e){o[r][e]=!0}},{"./_hide":30,"./_wks":73}],11:[function(e,t,n){var r=e("./_is-object");t.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},{"./_is-object":36}],12:[function(e,t,n){var r=e("./_to-iobject"),o=e("./_to-length"),i=e("./_to-absolute-index");t.exports=function(e){return function(t,n,a){var s,c=r(t),u=o(c.length),l=i(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},{"./_to-absolute-index":64,"./_to-iobject":66,"./_to-length":67}],13:[function(e,t,n){var r=e("./_ctx"),o=e("./_iobject"),i=e("./_to-object"),a=e("./_to-length"),s=e("./_array-species-create");t.exports=function(e,t){var n=1==e,c=2==e,u=3==e,l=4==e,f=6==e,d=5==e||f,_=t||s;return function(t,s,p){for(var h,E,m=i(t),y=o(m),v=r(s,p,3),g=a(y.length),O=0,A=n?_(t,g):c?_(t,0):void 0;g>O;O++)if((d||O in y)&&(E=v(h=y[O],O,m),e))if(n)A[O]=E;else if(E)switch(e){case 3:return!0;case 5:return h;case 6:return O;case 2:A.push(h)}else if(l)return!1;return f?-1:u||l?l:A}}},{"./_array-species-create":15,"./_ctx":18,"./_iobject":34,"./_to-length":67,"./_to-object":68}],14:[function(e,t,n){var r=e("./_is-object"),o=e("./_is-array"),i=e("./_wks")("species");t.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},{"./_is-array":35,"./_is-object":36,"./_wks":73}],15:[function(e,t,n){var r=e("./_array-species-constructor");t.exports=function(e,t){return new(r(e))(t)}},{"./_array-species-constructor":14}],16:[function(e,t,n){var r={}.toString;t.exports=function(e){return r.call(e).slice(8,-1)}},{}],17:[function(e,t,n){var r=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=r)},{}],18:[function(e,t,n){var r=e("./_a-function");t.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},{"./_a-function":9}],19:[function(e,t,n){t.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},{}],20:[function(e,t,n){t.exports=!e("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":25}],21:[function(e,t,n){var r=e("./_is-object"),o=e("./_global").document,i=r(o)&&r(o.createElement);t.exports=function(e){return i?o.createElement(e):{}}},{"./_global":28,"./_is-object":36}],22:[function(e,t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],23:[function(e,t,n){var r=e("./_object-keys"),o=e("./_object-gops"),i=e("./_object-pie");t.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,s=n(e),c=i.f,u=0;s.length>u;)c.call(e,a=s[u++])&&t.push(a);return t}},{"./_object-gops":50,"./_object-keys":53,"./_object-pie":54}],24:[function(e,t,n){var r=e("./_global"),o=e("./_core"),i=e("./_hide"),a=e("./_redefine"),s=e("./_ctx"),c=function(e,t,n){var u,l,f,d,_=e&c.F,p=e&c.G,h=e&c.S,E=e&c.P,m=e&c.B,y=p?r:h?r[t]||(r[t]={}):(r[t]||{}).prototype,v=p?o:o[t]||(o[t]={}),g=v.prototype||(v.prototype={});for(u in p&&(n=t),n)f=((l=!_&&y&&void 0!==y[u])?y:n)[u],d=m&&l?s(f,r):E&&"function"==typeof f?s(Function.call,f):f,y&&a(y,u,f,e&c.U),v[u]!=f&&i(v,u,d),E&&g[u]!=f&&(g[u]=f)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},{"./_core":17,"./_ctx":18,"./_global":28,"./_hide":30,"./_redefine":57}],25:[function(e,t,n){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],26:[function(e,t,n){"use strict";var r=e("./_hide"),o=e("./_redefine"),i=e("./_fails"),a=e("./_defined"),s=e("./_wks");t.exports=function(e,t,n){var c=s(e),u=n(a,c,""[e]),l=u[0],f=u[1];i(function(){var t={};return t[c]=function(){return 7},7!=""[e](t)})&&(o(String.prototype,e,l),r(RegExp.prototype,c,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},{"./_defined":19,"./_fails":25,"./_hide":30,"./_redefine":57,"./_wks":73}],27:[function(e,t,n){"use strict";var r=e("./_an-object");t.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},{"./_an-object":11}],28:[function(e,t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},{}],29:[function(e,t,n){var r={}.hasOwnProperty;t.exports=function(e,t){return r.call(e,t)}},{}],30:[function(e,t,n){var r=e("./_object-dp"),o=e("./_property-desc");t.exports=e("./_descriptors")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},{"./_descriptors":20,"./_object-dp":45,"./_property-desc":56}],31:[function(e,t,n){var r=e("./_global").document;t.exports=r&&r.documentElement},{"./_global":28}],32:[function(e,t,n){t.exports=!e("./_descriptors")&&!e("./_fails")(function(){return 7!=Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":20,"./_dom-create":21,"./_fails":25}],33:[function(e,t,n){var r=e("./_is-object"),o=e("./_set-proto").set;t.exports=function(e,t,n){var i,a=t.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(e,i),e}},{"./_is-object":36,"./_set-proto":58}],34:[function(e,t,n){var r=e("./_cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},{"./_cof":16}],35:[function(e,t,n){var r=e("./_cof");t.exports=Array.isArray||function(e){return"Array"==r(e)}},{"./_cof":16}],36:[function(e,t,n){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],37:[function(e,t,n){"use strict";var r=e("./_object-create"),o=e("./_property-desc"),i=e("./_set-to-string-tag"),a={};e("./_hide")(a,e("./_wks")("iterator"),function(){return this}),t.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},{"./_hide":30,"./_object-create":44,"./_property-desc":56,"./_set-to-string-tag":59,"./_wks":73}],38:[function(e,t,n){"use strict";var r=e("./_library"),o=e("./_export"),i=e("./_redefine"),a=e("./_hide"),s=e("./_iterators"),c=e("./_iter-create"),u=e("./_set-to-string-tag"),l=e("./_object-gpo"),f=e("./_wks")("iterator"),d=!([].keys&&"next"in[].keys()),_=function(){return this};t.exports=function(e,t,n,p,h,E,m){c(n,t,p);var y,v,g,O=function(e){if(!d&&e in T)return T[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},A=t+" Iterator",b="values"==h,S=!1,T=e.prototype,I=T[f]||T["@@iterator"]||h&&T[h],N=I||O(h),D=h?b?O("entries"):N:void 0,C="Array"==t&&T.entries||I;if(C&&(g=l(C.call(new e)))!==Object.prototype&&g.next&&(u(g,A,!0),r||"function"==typeof g[f]||a(g,f,_)),b&&I&&"values"!==I.name&&(S=!0,N=function(){return I.call(this)}),r&&!m||!d&&!S&&T[f]||a(T,f,N),s[t]=N,s[A]=_,h)if(y={values:b?N:O("values"),keys:E?N:O("keys"),entries:D},m)for(v in y)v in T||i(T,v,y[v]);else o(o.P+o.F*(d||S),t,y);return y}},{"./_export":24,"./_hide":30,"./_iter-create":37,"./_iterators":40,"./_library":41,"./_object-gpo":51,"./_redefine":57,"./_set-to-string-tag":59,"./_wks":73}],39:[function(e,t,n){t.exports=function(e,t){return{value:t,done:!!e}}},{}],40:[function(e,t,n){t.exports={}},{}],41:[function(e,t,n){t.exports=!1},{}],42:[function(e,t,n){var r=e("./_uid")("meta"),o=e("./_is-object"),i=e("./_has"),a=e("./_object-dp").f,s=0,c=Object.isExtensible||function(){return!0},u=!e("./_fails")(function(){return c(Object.preventExtensions({}))}),l=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=t.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return u&&f.NEED&&c(e)&&!i(e,r)&&l(e),e}}},{"./_fails":25,"./_has":29,"./_is-object":36,"./_object-dp":45,"./_uid":70}],43:[function(e,t,n){"use strict";var r=e("./_object-keys"),o=e("./_object-gops"),i=e("./_object-pie"),a=e("./_to-object"),s=e("./_iobject"),c=Object.assign;t.exports=!c||e("./_fails")(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){for(var n=a(e),c=arguments.length,u=1,l=o.f,f=i.f;c>u;)for(var d,_=s(arguments[u++]),p=l?r(_).concat(l(_)):r(_),h=p.length,E=0;h>E;)f.call(_,d=p[E++])&&(n[d]=_[d]);return n}:c},{"./_fails":25,"./_iobject":34,"./_object-gops":50,"./_object-keys":53,"./_object-pie":54,"./_to-object":68}],44:[function(e,t,n){var r=e("./_an-object"),o=e("./_object-dps"),i=e("./_enum-bug-keys"),a=e("./_shared-key")("IE_PROTO"),s=function(){},c=function(){var t,n=e("./_dom-create")("iframe"),r=i.length;for(n.style.display="none",e("./_html").appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=c(),void 0===t?n:o(n,t)}},{"./_an-object":11,"./_dom-create":21,"./_enum-bug-keys":22,"./_html":31,"./_object-dps":46,"./_shared-key":60}],45:[function(e,t,n){var r=e("./_an-object"),o=e("./_ie8-dom-define"),i=e("./_to-primitive"),a=Object.defineProperty;n.f=e("./_descriptors")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},{"./_an-object":11,"./_descriptors":20,"./_ie8-dom-define":32,"./_to-primitive":69}],46:[function(e,t,n){var r=e("./_object-dp"),o=e("./_an-object"),i=e("./_object-keys");t.exports=e("./_descriptors")?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),s=a.length,c=0;s>c;)r.f(e,n=a[c++],t[n]);return e}},{"./_an-object":11,"./_descriptors":20,"./_object-dp":45,"./_object-keys":53}],47:[function(e,t,n){var r=e("./_object-pie"),o=e("./_property-desc"),i=e("./_to-iobject"),a=e("./_to-primitive"),s=e("./_has"),c=e("./_ie8-dom-define"),u=Object.getOwnPropertyDescriptor;n.f=e("./_descriptors")?u:function(e,t){if(e=i(e),t=a(t,!0),c)try{return u(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},{"./_descriptors":20,"./_has":29,"./_ie8-dom-define":32,"./_object-pie":54,"./_property-desc":56,"./_to-iobject":66,"./_to-primitive":69}],48:[function(e,t,n){var r=e("./_to-iobject"),o=e("./_object-gopn").f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},{"./_object-gopn":49,"./_to-iobject":66}],49:[function(e,t,n){var r=e("./_object-keys-internal"),o=e("./_enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},{"./_enum-bug-keys":22,"./_object-keys-internal":52}],50:[function(e,t,n){n.f=Object.getOwnPropertySymbols},{}],51:[function(e,t,n){var r=e("./_has"),o=e("./_to-object"),i=e("./_shared-key")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},{"./_has":29,"./_shared-key":60,"./_to-object":68}],52:[function(e,t,n){var r=e("./_has"),o=e("./_to-iobject"),i=e("./_array-includes")(!1),a=e("./_shared-key")("IE_PROTO");t.exports=function(e,t){var n,s=o(e),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~i(u,n)||u.push(n));return u}},{"./_array-includes":12,"./_has":29,"./_shared-key":60,"./_to-iobject":66}],53:[function(e,t,n){var r=e("./_object-keys-internal"),o=e("./_enum-bug-keys");t.exports=Object.keys||function(e){return r(e,o)}},{"./_enum-bug-keys":22,"./_object-keys-internal":52}],54:[function(e,t,n){n.f={}.propertyIsEnumerable},{}],55:[function(e,t,n){var r=e("./_export"),o=e("./_core"),i=e("./_fails");t.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},{"./_core":17,"./_export":24,"./_fails":25}],56:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],57:[function(e,t,n){var r=e("./_global"),o=e("./_hide"),i=e("./_has"),a=e("./_uid")("src"),s=Function.toString,c=(""+s).split("toString");e("./_core").inspectSource=function(e){return s.call(e)},(t.exports=function(e,t,n,s){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(u&&(i(n,a)||o(n,a,e[t]?""+e[t]:c.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},{"./_core":17,"./_global":28,"./_has":29,"./_hide":30,"./_uid":70}],58:[function(e,t,n){var r=e("./_is-object"),o=e("./_an-object"),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{(r=e("./_ctx")(Function.call,e("./_object-gopd").f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(e){n=!0}return function(e,t){return i(e,t),n?e.__proto__=t:r(e,t),e}}({},!1):void 0),check:i}},{"./_an-object":11,"./_ctx":18,"./_is-object":36,"./_object-gopd":47}],59:[function(e,t,n){var r=e("./_object-dp").f,o=e("./_has"),i=e("./_wks")("toStringTag");t.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},{"./_has":29,"./_object-dp":45,"./_wks":73}],60:[function(e,t,n){var r=e("./_shared")("keys"),o=e("./_uid");t.exports=function(e){return r[e]||(r[e]=o(e))}},{"./_shared":61,"./_uid":70}],61:[function(e,t,n){var r=e("./_core"),o=e("./_global"),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:e("./_library")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":17,"./_global":28,"./_library":41}],62:[function(e,t,n){var r=e("./_export"),o=e("./_defined"),i=e("./_fails"),a=e("./_string-ws"),s="["+a+"]",c=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),l=function(e,t,n){var o={},s=i(function(){return!!a[e]()||"​"!="​"[e]()}),c=o[e]=s?t(f):a[e];n&&(o[n]=c),r(r.P+r.F*s,"String",o)},f=l.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(u,"")),e};t.exports=l},{"./_defined":19,"./_export":24,"./_fails":25,"./_string-ws":63}],63:[function(e,t,n){t.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},{}],64:[function(e,t,n){var r=e("./_to-integer"),o=Math.max,i=Math.min;t.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},{"./_to-integer":65}],65:[function(e,t,n){var r=Math.ceil,o=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?o:r)(e)}},{}],66:[function(e,t,n){var r=e("./_iobject"),o=e("./_defined");t.exports=function(e){return r(o(e))}},{"./_defined":19,"./_iobject":34}],67:[function(e,t,n){var r=e("./_to-integer"),o=Math.min;t.exports=function(e){return e>0?o(r(e),9007199254740991):0}},{"./_to-integer":65}],68:[function(e,t,n){var r=e("./_defined");t.exports=function(e){return Object(r(e))}},{"./_defined":19}],69:[function(e,t,n){var r=e("./_is-object");t.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":36}],70:[function(e,t,n){var r=0,o=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+o).toString(36))}},{}],71:[function(e,t,n){var r=e("./_global"),o=e("./_core"),i=e("./_library"),a=e("./_wks-ext"),s=e("./_object-dp").f;t.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},{"./_core":17,"./_global":28,"./_library":41,"./_object-dp":45,"./_wks-ext":72}],72:[function(e,t,n){n.f=e("./_wks")},{"./_wks":73}],73:[function(e,t,n){var r=e("./_shared")("wks"),o=e("./_uid"),i=e("./_global").Symbol,a="function"==typeof i;(t.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},{"./_global":28,"./_shared":61,"./_uid":70}],74:[function(e,t,n){"use strict";var r=e("./_export"),o=e("./_array-methods")(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),r(r.P+r.F*i,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),e("./_add-to-unscopables")("find")},{"./_add-to-unscopables":10,"./_array-methods":13,"./_export":24}],75:[function(e,t,n){"use strict";var r=e("./_add-to-unscopables"),o=e("./_iter-step"),i=e("./_iterators"),a=e("./_to-iobject");t.exports=e("./_iter-define")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},{"./_add-to-unscopables":10,"./_iter-define":38,"./_iter-step":39,"./_iterators":40,"./_to-iobject":66}],76:[function(e,t,n){var r=e("./_object-dp").f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||e("./_descriptors")&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},{"./_descriptors":20,"./_object-dp":45}],77:[function(e,t,n){"use strict";var r=e("./_global"),o=e("./_has"),i=e("./_cof"),a=e("./_inherit-if-required"),s=e("./_to-primitive"),c=e("./_fails"),u=e("./_object-gopn").f,l=e("./_object-gopd").f,f=e("./_object-dp").f,d=e("./_string-trim").trim,_=r.Number,p=_,h=_.prototype,E="Number"==i(e("./_object-create")(h)),m="trim"in String.prototype,y=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var n,r,o,i=(t=m?t.trim():d(t,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+t}for(var a,c=t.slice(2),u=0,l=c.length;u<l;u++)if((a=c.charCodeAt(u))<48||a>o)return NaN;return parseInt(c,r)}}return+t};if(!_(" 0o1")||!_("0b1")||_("+0x1")){_=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof _&&(E?c(function(){h.valueOf.call(n)}):"Number"!=i(n))?a(new p(y(t)),n,_):y(t)};for(var v,g=e("./_descriptors")?u(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;g.length>O;O++)o(p,v=g[O])&&!o(_,v)&&f(_,v,l(p,v));_.prototype=h,h.constructor=_,e("./_redefine")(r,"Number",_)}},{"./_cof":16,"./_descriptors":20,"./_fails":25,"./_global":28,"./_has":29,"./_inherit-if-required":33,"./_object-create":44,"./_object-dp":45,"./_object-gopd":47,"./_object-gopn":49,"./_redefine":57,"./_string-trim":62,"./_to-primitive":69}],78:[function(e,t,n){var r=e("./_export");r(r.S+r.F,"Object",{assign:e("./_object-assign")})},{"./_export":24,"./_object-assign":43}],79:[function(e,t,n){var r=e("./_to-object"),o=e("./_object-keys");e("./_object-sap")("keys",function(){return function(e){return o(r(e))}})},{"./_object-keys":53,"./_object-sap":55,"./_to-object":68}],80:[function(e,t,n){e("./_descriptors")&&"g"!=/./g.flags&&e("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:e("./_flags")})},{"./_descriptors":20,"./_flags":27,"./_object-dp":45}],81:[function(e,t,n){e("./_fix-re-wks")("match",1,function(e,t,n){return[function(n){"use strict";var r=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},n]})},{"./_fix-re-wks":26}],82:[function(e,t,n){e("./_fix-re-wks")("replace",2,function(e,t,n){return[function(r,o){"use strict";var i=e(this),a=null==r?void 0:r[t];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},n]})},{"./_fix-re-wks":26}],83:[function(e,t,n){"use strict";e("./es6.regexp.flags");var r=e("./_an-object"),o=e("./_flags"),i=e("./_descriptors"),a=/./.toString,s=function(t){e("./_redefine")(RegExp.prototype,"toString",t,!0)};e("./_fails")(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?s(function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!i&&e instanceof RegExp?o.call(e):void 0)}):"toString"!=a.name&&s(function(){return a.call(this)})},{"./_an-object":11,"./_descriptors":20,"./_fails":25,"./_flags":27,"./_redefine":57,"./es6.regexp.flags":80}],84:[function(e,t,n){"use strict";var r=e("./_global"),o=e("./_has"),i=e("./_descriptors"),a=e("./_export"),s=e("./_redefine"),c=e("./_meta").KEY,u=e("./_fails"),l=e("./_shared"),f=e("./_set-to-string-tag"),d=e("./_uid"),_=e("./_wks"),p=e("./_wks-ext"),h=e("./_wks-define"),E=e("./_enum-keys"),m=e("./_is-array"),y=e("./_an-object"),v=e("./_is-object"),g=e("./_to-iobject"),O=e("./_to-primitive"),A=e("./_property-desc"),b=e("./_object-create"),S=e("./_object-gopn-ext"),T=e("./_object-gopd"),I=e("./_object-dp"),N=e("./_object-keys"),D=T.f,C=I.f,L=S.f,P=r.Symbol,k=r.JSON,w=k&&k.stringify,j=_("_hidden"),R=_("toPrimitive"),x={}.propertyIsEnumerable,M=l("symbol-registry"),V=l("symbols"),F=l("op-symbols"),H=Object.prototype,U="function"==typeof P,G=r.QObject,B=!G||!G.prototype||!G.prototype.findChild,Y=i&&u(function(){return 7!=b(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=D(H,t);r&&delete H[t],C(e,t,n),r&&e!==H&&C(H,t,r)}:C,K=function(e){var t=V[e]=b(P.prototype);return t._k=e,t},W=U&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},z=function(e,t,n){return e===H&&z(F,t,n),y(e),t=O(t,!0),y(n),o(V,t)?(n.enumerable?(o(e,j)&&e[j][t]&&(e[j][t]=!1),n=b(n,{enumerable:A(0,!1)})):(o(e,j)||C(e,j,A(1,{})),e[j][t]=!0),Y(e,t,n)):C(e,t,n)},X=function(e,t){y(e);for(var n,r=E(t=g(t)),o=0,i=r.length;i>o;)z(e,n=r[o++],t[n]);return e},q=function(e){var t=x.call(this,e=O(e,!0));return!(this===H&&o(V,e)&&!o(F,e))&&(!(t||!o(this,e)||!o(V,e)||o(this,j)&&this[j][e])||t)},J=function(e,t){if(e=g(e),t=O(t,!0),e!==H||!o(V,t)||o(F,t)){var n=D(e,t);return!n||!o(V,t)||o(e,j)&&e[j][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=L(g(e)),r=[],i=0;n.length>i;)o(V,t=n[i++])||t==j||t==c||r.push(t);return r},$=function(e){for(var t,n=e===H,r=L(n?F:g(e)),i=[],a=0;r.length>a;)!o(V,t=r[a++])||n&&!o(H,t)||i.push(V[t]);return i};U||(s((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(F,n),o(this,j)&&o(this[j],e)&&(this[j][e]=!1),Y(this,e,A(1,n))};return i&&B&&Y(H,e,{configurable:!0,set:t}),K(e)}).prototype,"toString",function(){return this._k}),T.f=J,I.f=z,e("./_object-gopn").f=S.f=Z,e("./_object-pie").f=q,e("./_object-gops").f=$,i&&!e("./_library")&&s(H,"propertyIsEnumerable",q,!0),p.f=function(e){return K(_(e))}),a(a.G+a.W+a.F*!U,{Symbol:P});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Q.length>ee;)_(Q[ee++]);for(var te=N(_.store),ne=0;te.length>ne;)h(te[ne++]);a(a.S+a.F*!U,"Symbol",{for:function(e){return o(M,e+="")?M[e]:M[e]=P(e)},keyFor:function(e){if(!W(e))throw TypeError(e+" is not a symbol!");for(var t in M)if(M[t]===e)return t},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!U,"Object",{create:function(e,t){return void 0===t?b(e):X(b(e),t)},defineProperty:z,defineProperties:X,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:$}),k&&a(a.S+a.F*(!U||u(function(){var e=P();return"[null]"!=w([e])||"{}"!=w({a:e})||"{}"!=w(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(v(t)||void 0!==e)&&!W(e))return m(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!W(t))return t}),r[1]=t,w.apply(k,r)}}),P.prototype[R]||e("./_hide")(P.prototype,R,P.prototype.valueOf),f(P,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},{"./_an-object":11,"./_descriptors":20,"./_enum-keys":23,"./_export":24,"./_fails":25,"./_global":28,"./_has":29,"./_hide":30,"./_is-array":35,"./_is-object":36,"./_library":41,"./_meta":42,"./_object-create":44,"./_object-dp":45,"./_object-gopd":47,"./_object-gopn":49,"./_object-gopn-ext":48,"./_object-gops":50,"./_object-keys":53,"./_object-pie":54,"./_property-desc":56,"./_redefine":57,"./_set-to-string-tag":59,"./_shared":61,"./_to-iobject":66,"./_to-primitive":69,"./_uid":70,"./_wks":73,"./_wks-define":71,"./_wks-ext":72}],85:[function(e,t,n){e("./_wks-define")("asyncIterator")},{"./_wks-define":71}],86:[function(e,t,n){for(var r=e("./es6.array.iterator"),o=e("./_object-keys"),i=e("./_redefine"),a=e("./_global"),s=e("./_hide"),c=e("./_iterators"),u=e("./_wks"),l=u("iterator"),f=u("toStringTag"),d=c.Array,_={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=o(_),h=0;h<p.length;h++){var E,m=p[h],y=_[m],v=a[m],g=v&&v.prototype;if(g&&(g[l]||s(g,l,d),g[f]||s(g,f,m),c[m]=d,y))for(E in r)g[E]||i(g,E,r[E],!0)}},{"./_global":28,"./_hide":30,"./_iterators":40,"./_object-keys":53,"./_redefine":57,"./_wks":73,"./es6.array.iterator":75}],87:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r={ID_PREFIX:{INTERNAL:"CC",EXTERNAL:"VTT"},TEXT_TRACK:{KIND:{SUBTITLES:"subtitles",CAPTIONS:"captions",DESCRIPTIONS:"descriptions",CHAPTERS:"chapters",METADATA:"metadata"}}};n.default=r},{}],88:[function(e,t,n){"use strict";e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.number.constructor"),e("core-js/modules/es6.object.assign"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.array.find"),e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.iterator"),e("core-js/modules/es6.object.keys"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.replace"),e("core-js/modules/es6.regexp.match");var r,o,i,a,s,c=f(e("./text_track/text_track_map")),u=f(e("./text_track/text_track_helper")),l=f(e("./constants/constants"));function f(e){return e&&e.__esModule?e:{default:e}}e("../../../html5-common/js/utils/InitModules/InitOO.js"),e("../../../html5-common/js/utils/InitModules/InitOOUnderscore.js"),e("../../../html5-common/js/utils/InitModules/InitOOHazmat.js"),e("../../../html5-common/js/utils/constants.js"),e("../../../html5-common/js/utils/utils.js"),e("../../../html5-common/js/utils/environment.js"),r=OO._,o=OO.$,i={},a=function(e,t,n){var a=this;this.controller={},this.disableNativeSeek=!1,this.audioTracks=[];var s=t,f=n,d="",_=!1,p={},h=!1,E=!1,m=!1,y=null,v=!1,g=!1,O=!1,A=!1,b=!1,S=!1,T=!1,I=!1,N=0,D=0,C=0,L=0,P=!1,k=!0,w={value:0,reached:!0},j=!0,R=!1,x=!1,M=null,V=o(s).attr("preload")||"none",F=1,H="",U=[],G={},B=new c.default,Y=new u.default(s),K=null,W=!1,z=-1;if(OO.isAndroid&&OO.isChrome){var X=r.bind(function(e){document.hidden&&(j=!1)},this);document.addEventListener("visibilitychange",X)}this.sharedElementGive=function(){q(),d=""},this.sharedElementTake=function(){this.subscribeAllEvents()},this.subscribeAllEvents=function(){p={loadstart:$,loadedmetadata:Q,progress:ae,error:se,stalled:ce,canplay:ue,canplaythrough:le,playing:fe,waiting:de,seeking:_e,seeked:pe,ended:he,durationchange:Ee,timeupdate:ye,play:ve,pause:ge,ratechange:Ae,webkitbeginfullscreen:Se,webkitendfullscreen:Te},r.each(p,function(e,t){o(s).on(t,e)},this),s.addEventListener("volumechange",be)};var q=function(){r.each(p,function(e,t){o(s).off(t,e)},this),s.removeEventListener("volumechange",be)};this.setVideoUrl=function(e,t,n){var r=!1;return d.replace(/[?&]_=[^&]+$/,"")!==e&&(d=e||"",P=t===OO.VIDEO.ENCODING.HLS||t===OO.VIDEO.ENCODING.AKAMAI_HD2_VOD_HLS||t===OO.VIDEO.ENCODING.AKAMAI_HD2_HLS||t===OO.VIDEO.ENCODING.AUDIO_HLS,x=n,r=!0,J(),""===d?OO.isIos?delete s.src:OO.isMacOs&&OO.isSafari?(s.removeAttribute("src"),s.load()):s.src=null:s.src=d),this.setPlaybackSpeed(F),r};var J=r.bind(function(){this.audioTracks=[],v=!1,E=!1,m=!1,y=null,h=!1,g=!1,O=!1,b=!1,S=!1,k=!0,T=!1,I=!1,N=0,D=0,C=0,_=!1,{height:0,width:0},w={value:0,reached:!0},j=!0,R=!1,$e(),M=null,H="",U=[],G={},Y.removeExternalTracks(B),B.clear(),o(s).attr("preload",V),A=!1},this);this.onAdsPlayed=function(){},this.load=function(e){if(!h||e){if(e)if(OO.isEdge)D=0;else try{OO.isIos&&8===OO.iosMajorVersion?o(s).on("durationchange",r.bind(function(){s.currentTime=0,D=0},this)):(s.currentTime=0,D=0),s.pause()}catch(e){OO.log("VTC_OO: Failed to rewind video, probably ok; continuing")}E=!1,o(s).attr("preload","auto"),s.load(),h=!0}},this.setInitialTime=function(e){if("number"==typeof e&&(g||0!==e)){var t=OO.isSafari&&_&&0===e;w.value=e,w.reached=!1,OO.isAndroid||OO.isIE11Plus||t&&!OO.isIos?He(w.value):this.seek(w.value)}},this.handleFailover=function(e){I=!0,N=e},this.play=function(){if(O=!1,s.seeking)v=!0;else{var e=Re(!1),t=s.src;e&&(A=!0,"function"==typeof e.catch&&e.catch(r.bind(function(e){if(A=!1,e){if(OO.log("Play Promise Failure",e,e.name),OO.isIos&&s._fw_videoAdPlaying)return;if(s.src!==t)return void OO.log("Url has changed, ignoring play promise failure");(function(e){var t=!1;if(e){var n="NotAllowedError"===e.name;OO.isChrome&&!n||(t=!OO.isFirefox)}return t})(e)&&(s.muted?this.controller.notify(this.controller.EVENTS.MUTED_PLAYBACK_FAILED,{error:e}):this.controller.notify(this.controller.EVENTS.UNMUTED_PLAYBACK_FAILED,{error:e}))}},this)),"function"==typeof e.then&&e.then(r.bind(function(){I&&(this.seek(N),I=!1),s.muted?this.controller.notify(this.controller.EVENTS.MUTED_PLAYBACK_SUCCEEDED):this.controller.notify(this.controller.EVENTS.UNMUTED_PLAYBACK_SUCCEEDED),O||this.controller.notify(this.controller.EVENTS.PLAYING)},this)))}},this.pause=function(){v=!1,g?s.pause():O=!0},this.seek=function(e){if(e===Math.round(s.currentTime))return!1;var t=null;if(x){if(!Ge())return w.reached||e!==w.value||He(e),!1;t=Fe(s,e),C=Be(t)}else t=Ve(s,e);return null!==t?(s.currentTime=t,b=!0,S=!0,!0):(He(e),!1)},this.mute=function(){s.muted=!0},this.unmute=function(){s.muted=!1,L>0&&this.setVolume(L)},this.isMuted=function(){return s.muted},this.setVolume=function(e){var t=e;t<0?t=0:t>1&&(t=1),L=t,s.volume=t,""!==s.currentSrc&&null!==s.currentSrc||be({target:{volume:t}})},this.getCurrentTime=function(){return s.currentTime},this.primeVideoElement=function(){var e=Re(!0);OO.isIos&&e&&"function"==typeof e.then?(A=!0,e.then(function(){m||s.pause()}),"function"==typeof e.catch&&e.catch(function(){A=!1})):s.pause()},this.applyCss=function(e){o(s).css(e)},this.destroy=function(){s.pause(),$e(),OO.isIE||OO.isEdge||(s.src=""),q(),o(s).remove(),f&&i[f]&&i[f]>0&&i[f]--},this.setClosedCaptions=r.bind(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};OO.log("MainHtml5: setClosedCaptions called",e,t,n);var r=t.closed_captions_vtt||{};if(!!Object.keys(r).length)for(var o in this.setCrossorigin("anonymous"),r)G[o]=!0;E?(Ie(),Z.apply(this,arguments)):(OO.log("MainHtml5: setClosedCaptions called before load, queing operation."),U.push(arguments))},this);var Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.closed_captions_vtt||{},o=n.mode||OO.CONSTANTS.CLOSED_CAPTIONS.SHOWING,i=Y.findTrackByKey(e,B);H!==e&&ie(""),H=e,Ne(i),De(r,e,o)||we(i,o)};this.setClosedCaptionsMode=function(e){Y.forEach(function(t){return we(t,e)}),e===OO.CONSTANTS.CLOSED_CAPTIONS.DISABLED&&ie("")},this.setCrossorigin=function(e){if(e){OO.isIos&&11===OO.iosMajorVersion||o(s).attr("crossorigin",e)}else o(s).removeAttr("crossorigin")},this.getAvailableAudio=function(){var e=s.audioTracks,t=[];return void 0!==e&&e.length&&(e=r.filter(e,function(e){return e}),t=r.map(e,function(e){return{id:e.id,label:e.label,lang:e.language,enabled:e.enabled}},this)),t},this.setAudio=function(e){var t=s.audioTracks;if(t&&t.length){var n=r.find(t,function(e){return e.enabled}),o=null;if(n&&n.id&&(o=n.id)!==e){var i=t.getTrackById(e);if(i){var a=t.getTrackById(o);a&&(a.enabled=!1),i.enabled=!0}}}var c=this.getAvailableAudio();te(c)},this.setPlaybackSpeed=function(e){"number"!=typeof e||isNaN(e)||(F=x?1:e,s&&(s.playbackRate=F))},this.getPlaybackSpeed=function(){return F};var $=r.bind(function(){$e(),d=s.src,k=!0,_=!1,b=!1},this),Q=r.bind(function(){s.textTracks&&(s.textTracks.onaddtrack=ne,s.textTracks.onchange=re),s.audioTracks&&(s.audioTracks.onchange=ee),Ue(),(x=x||s.currentTime===1/0)&&this.setPlaybackSpeed(1),h=!0},this),ee=r.bind(function(e){var t=this.getAvailableAudio();te(t)},this),te=r.bind(function(e){r.isEqual(this.audioTracks,e)||(this.audioTracks=e,this.controller.notify(this.controller.EVENTS.MULTI_AUDIO_CHANGED,e))},this),ne=function(){Le(),ke()},re=function(){var e,t=Y.filterChangedTracks(B),n=!0,r=!1,o=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var c=i.value,u=B.findEntry({textTrack:c});if(E){if(c.mode===OO.CONSTANTS.CLOSED_CAPTIONS.DISABLED)e=e||"none";else if(B.areAllDisabled()||1!==t.length){e=!(!u.isExternal&&!G[u.language])?u.language:u.id}else OO.log("MainHtml5: Default browser CC language detected, ignoring in favor of plugin default");c.mode=u.mode}else OO.log("MainHtml5: Native CC changes detected before playback, ignoring."),c.mode=u.mode}}catch(e){r=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw o}}e&&(a.controller.notify(a.controller.EVENTS.CAPTIONS_LANGUAGE_CHANGE,{language:e}),OO.log('MainHtml5: CC track has been changed to "'.concat(e,'" by the native UI')))},oe=r.bind(function(e){var t="";if(e&&e.currentTarget&&e.currentTarget.activeCues)for(var n=0;n<e.currentTarget.activeCues.length;n++)e.currentTarget.activeCues[n].text&&(t+=e.currentTarget.activeCues[n].text+"\n");ie(t)},this),ie=r.bind(function(e){var t=e.trim();t!==M&&(M=t,this.controller.notify(this.controller.EVENTS.CLOSED_CAPTION_CUE_CHANGED,t))},this),ae=r.bind(function(e){var t=0;e.target.buffered&&e.target.buffered.length>0&&(t=e.target.buffered.end(0)),x&&Ue(),I||this.controller.notify(this.controller.EVENTS.PROGRESS,{currentTime:e.target.currentTime,duration:ze(e.target.duration),buffer:t,seekRange:xe(e.target.seekable)})},this),se=r.bind(function(e){$e();var t=e.target.error?e.target.error.code:-1;(4!==t||"null"!==o(e.target).attr("src")&&""!==o(e.target).attr("src"))&&this.controller.notify(this.controller.EVENTS.ERROR,{errorcode:t})},this),ce=r.bind(function(e){OO.isIpad&&0===e.target.currentTime&&s.pause(),this.controller.notify(this.controller.EVENTS.STALLED,{url:s.currentSrc})},this),ue=r.bind(function(){if((OO.isFirefox||OO.isIos)&&W&&le(),E=!0,k){Ie(),this.controller.notify(this.controller.EVENTS.ASSET_DIMENSION,{width:s.videoWidth,height:s.videoHeight});var e=this.getAvailableAudio();e&&e.length>1&&(this.audioTracks=e,this.controller.notify(this.controller.EVENTS.MULTI_AUDIO_AVAILABLE,e))}},this),le=r.bind(function(){W=!1,this.controller.notify(this.controller.EVENTS.BUFFERED,{url:s.currentSrc})},this),fe=r.bind(function(){R||(s&&O?s.pause():(!k&&T&&Ge()&&(C=Be(s.currentTime)),g=!0,A||this.controller.notify(this.controller.EVENTS.PLAYING),Je(),A=!1,k=!1,j=!0,b=!1,T=!1))},this),de=r.bind(function(){r.isEmpty(s.currentSrc)||(W=!0,this.controller.notify(this.controller.EVENTS.WAITING,{url:s.currentSrc}))},this),_e=r.bind(function(){b=!0,!R&&w.reached&&this.controller.notify(this.controller.EVENTS.SEEKING)},this),pe=r.bind(function(e){(b=!1,je(),this.disableNativeSeek)&&(Math.floor(s.currentTime)!==Math.floor(D)&&(s.currentTime=D));Ge()&&!S&&(C=Be(s.currentTime)),S=!1,w.reached?(this.controller.notify(this.controller.EVENTS.SEEKED),Ke(this.controller.EVENTS.TIME_UPDATE,e)):me()},this),he=r.bind(function(e){$e(),_||!d||OO.isEdge&&!e||!s.ended&&OO.isSafari||(_=!0,w.value=0,this.controller.notify(this.controller.EVENTS.ENDED))},this),Ee=r.bind(function(e){I||Ke(this.controller.EVENTS.DURATION_CHANGE,e)},this),me=function(){var e=s.currentTime;!w.reached&&w.value>=0&&e>=w.value&&(w.reached=!0,w.value=0)},ye=r.bind(function(e){b||(D=s.currentTime),me(),Ke(this.controller.EVENTS.TIME_UPDATE,e),Ue(),qe(e)},this),ve=r.bind(function(e){R||this.controller.notify(this.controller.EVENTS.PLAY,{url:e.target.src})},this),ge=r.bind(function(){R||(T=!0,OO.isIpad&&0===s.currentTime||this.controller.notify(this.controller.EVENTS.PAUSED),Xe())},this),Oe=r.bind(function(){OO.isIos&&s.hasAttribute("controls")&&s.removeAttribute("controls")}),Ae=r.bind(function(){var e=s?s.playbackRate:null;this.controller.notify(this.controller.EVENTS.PLAYBACK_RATE_CHANGE,{playbackRate:e})},this),be=r.bind(function(e){this.controller.notify(this.controller.EVENTS.VOLUME_CHANGE,{volume:e.target.volume}),this.controller.notify(this.controller.EVENTS.MUTE_STATE_CHANGE,{muted:s.muted})},this),Se=r.bind(function(e){this.controller.notify(this.controller.EVENTS.FULLSCREEN_CHANGED,{isFullScreen:!0,paused:e.target.paused})},this),Te=r.bind(function(e){this.controller.notify(this.controller.EVENTS.FULLSCREEN_CHANGED,{isFullScreen:!1,paused:e.target.paused}),Oe()},this),Ie=r.bind(function(){for(var e;e=U.shift();)Z.apply(this,e)},this),Ne=function(e){Y.forEach(function(t){t!==e&&we(t,OO.CONSTANTS.CLOSED_CAPTIONS.DISABLED)})},De=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=!1;for(var o in e){var i=Object.assign({language:o},e[o]);B.existsEntry({src:i.url})||(Ce(i,t,n),o===t&&(r=!0))}return r},Ce=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;e=t.language===n?r:OO.CONSTANTS.CLOSED_CAPTIONS.DISABLED;var o=B.addEntry({src:t.url,label:t.name,language:t.language,mode:e},!0);Y.addTrack({id:o,kind:l.default.TEXT_TRACK.KIND.SUBTITLES,label:o,srclang:t.language,src:t.url}),OO.isEdge&&ne()},Le=function(){Y.forEach(function(e){var t=B.findEntry({id:e.label});t&&(OO.log("MainHtml5: Registering newly added text track:",t.id),B.tryUpdateEntry({id:t.id},{textTrack:e}),Y.updateTrackLabel(t.id,t.label),we(e,t.mode)),Pe(e)})},Pe=function(e){var t=B.existsEntry({textTrack:e}),n=e.kind===l.default.TEXT_TRACK.KIND.CAPTIONS||e.kind===l.default.TEXT_TRACK.KIND.SUBTITLES;!t&&n&&(OO.log("MainHtml5: Registering internal text track:",e),B.addEntry({label:e.label,language:e.language,mode:e.mode,textTrack:e},!1))},ke=function(){var e={languages:[],locale:{}},t=B.getExternalEntries(),n=B.getInternalEntries(),r=!0,o=!1,i=void 0;try{for(var s,c=t[Symbol.iterator]();!(r=(s=c.next()).done);r=!0){var u=s.value;e.languages.push(u.language),e.locale[u.language]=u.label}}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}var l=!0,f=!1,d=void 0;try{for(var _,p=n[Symbol.iterator]();!(l=(_=p.next()).done);l=!0){var h=_.value;if(!(!!e.locale[h.language]||!!G[h.language])){var E=h.id,m=h.label||h.language||"Captions (".concat(E,")");e.languages.push(E),e.locale[E]=m}}}catch(e){f=!0,d=e}finally{try{l||null==p.return||p.return()}finally{if(f)throw d}}a.controller.notify(a.controller.EVENTS.CAPTIONS_FOUND_ON_PLAYING,e)},we=function(e,t){e&&e.mode!==t&&(e.mode=t,B.tryUpdateEntry({textTrack:e},{mode:t}),t===OO.CONSTANTS.CLOSED_CAPTIONS.DISABLED?e.oncuechange=null:e.oncuechange=oe,OO.log("MainHtml5: Text track mode set:",e.language,t))},je=r.bind(function(){v&&(v=!1,this.play())},this),Re=r.bind(function(e){R=e,h||this.load(!0);var t=s.play();return R||(m=!0,_=!1),t},this),xe=function(e){return e&&e.length&&"function"==typeof e.start&&"function"==typeof e.end?{start:e.length>0?e.start(0):0,end:e.length>0?e.end(0):0}:{start:0,end:0}},Me=function(){return OO.isSafari&&!E?null:s.seekable},Ve=function(e,t){if("number"!=typeof t||!j)return null;var n=xe(Me());if(0===n.start&&0===n.end)return null;var r=function(e,t){t-e<OO.CONSTANTS.SEEK_TO_END_LIMIT&&(e=t);var n=e>=t?t-.01:e<0?0:e;OO.isIpad&&n<.1&&(n=.1);return n}(t,e.duration);return n.start<=r&&n.end>=r?r:null},Fe=function(e,t){var n=We(t,-1);if(n<0)return(e||{}).currentTime||0;var r=xe(Me()),o=r.start+n;return o=Math.min(o,r.end)},He=function(e){y=e},Ue=r.bind(function(){if(null!==y){var e=y;y=null,this.seek(e)}},this),Ge=function(){return 0!==Ye()},Be=function(e){if(!x)return 0;var t=0,n=xe(Me());return t=We(e,n.end)-n.end,t=Math.min(t,0),t=Math.max(t,Ye())},Ye=function(){if(!x)return 0;var e=0,t=xe(Me());return e=t.end-t.start,e=We(e,0)>0?-e:0},Ke=r.bind(function(e,t){if(!R&&!(b||w.value>0)){var n=0,r=null,o=0,i=ze(t.target.duration);if(Ge()){var a=Ye();r=C-a,n=i=-a,o=s.currentTime}else s.buffered&&s.buffered.length>0&&(n=s.buffered.end(0)),r=We(s.currentTime,null);var c=xe(Me());this.controller.notify(e,{currentTime:r,currentLiveTime:o,duration:i,buffer:n,seekRange:c})}},this),We=function(e,t){var n;return(null===e||r.isArray(e))&&(e=NaN),n=r.isNumber(e)?e:Number(e),isFinite(n)?n:void 0===t?null:t},ze=function(e){return e===1/0||isNaN(e)?0:e},Xe=r.bind(function(){OO.isSafari&&!OO.isIos&&s.ended&&(console.log("VTC_OO: Force through the end of stream for Safari",s.currentSrc,s.duration,s.currentTime),he())},this),qe=r.bind(function(e){if(P){var t=ze(e.target.duration),n=Math.floor(t);s.currentTime===t&&t>n?(console.log("VTC_OO: manually triggering end of stream for m3u8",d,t,s.currentTime),r.defer(he)):!OO.isSafari||OO.isIos||!0!==b||s.ended||Math.round(s.currentTime)!==Math.round(s.duration)||(this.controller.notify(this.controller.EVENTS.SEEKED),_=!0,w.value=0,this.controller.notify(this.controller.EVENTS.ENDED))}},this),Je=r.bind(function(){if((OO.isChrome||OO.isIos||OO.isIE11Plus||OO.isEdge)&&!K){K=setInterval(Ze,300)}},this),Ze=r.bind(function(){if(m)return s.ended?$e():void(s.paused||s.currentTime!==z?(z=s.currentTime,W&&le()):W||de())},this),$e=r.bind(function(){clearInterval(K),K=null,W=!1,z=-1},this)},s=function(){return Math.random().toString(36).substring(7)},OO.Video.plugin(new function(){var e,t,n,r;this.name="ooyalaHtml5VideoTech",this.features=[OO.VIDEO.FEATURE.CLOSED_CAPTIONS,OO.VIDEO.FEATURE.VIDEO_OBJECT_SHARING_GIVE],this.technology=OO.VIDEO.TECHNOLOGY.HTML5,this.encodings=(e=[],"function"==typeof(t=document.createElement("video")).canPlayType&&(t.canPlayType("video/mp4")&&e.push(OO.VIDEO.ENCODING.MP4),t.canPlayType("audio/ogg")&&e.push(OO.VIDEO.ENCODING.AUDIO_OGG),t.canPlayType("audio/x-m4a")&&e.push(OO.VIDEO.ENCODING.AUDIO_M4A),t.canPlayType("video/webm")&&e.push(OO.VIDEO.ENCODING.WEBM),!t.canPlayType("application/vnd.apple.mpegurl")&&!t.canPlayType("application/x-mpegURL")||OO.isSmartTV||OO.isRimDevice||OO.isMacOs&&!OO.isMacOsLionOrLater||(e.push(OO.VIDEO.ENCODING.HLS),e.push(OO.VIDEO.ENCODING.AKAMAI_HD2_VOD_HLS),e.push(OO.VIDEO.ENCODING.AKAMAI_HD2_HLS),OO.isChrome||OO.isAndroid||e.push(OO.VIDEO.ENCODING.AUDIO_HLS)),window.navigator.userAgent.match(/SonyCEBrowser/)&&(e.push(OO.VIDEO.ENCODING.HLS),e.push(OO.VIDEO.ENCODING.AKAMAI_HD2_VOD_HLS),e.push(OO.VIDEO.ENCODING.AKAMAI_HD2_HLS),e.push(OO.VIDEO.ENCODING.AUDIO_HLS))),e),this.create=function(e,t,n,r){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s(),u=arguments.length>5?arguments[5]:void 0;if(!(this.maxSupportedElements>0&&c&&i[c]>=this.maxSupportedElements)){var l=o("<video>");l.attr("class","video"),l.attr("id",t),OO.isSafari&&!OO.isIos?l.attr("preload","metadata"):l.attr("preload","none"),l.css(r),OO.isIos&&l.attr("x-webkit-airplay","allow"),u&&"inline"===u.iosPlayMode&&l.attr("playsinline","");var f=new a(t,l[0],c);return i[c]&&i[c]>=0?i[c]++:i[c]=1,f.controller=n,n.notify(n.EVENTS.CAN_PLAY),f.subscribeAllEvents(),e.append(l),f}},this.destroy=function(){this.encodings=[],this.create=function(){}},this.maxSupportedElements=(n=OO.isIos,r=OO.isAndroid&&(!OO.isAndroid4Plus||OO.chromeMajorVersion<40),n||r?1:-1)})},{"../../../html5-common/js/utils/InitModules/InitOO.js":1,"../../../html5-common/js/utils/InitModules/InitOOHazmat.js":2,"../../../html5-common/js/utils/InitModules/InitOOUnderscore.js":3,"../../../html5-common/js/utils/constants.js":4,"../../../html5-common/js/utils/environment.js":5,"../../../html5-common/js/utils/utils.js":6,"./constants/constants":87,"./text_track/text_track_helper":89,"./text_track/text_track_map":90,"core-js/modules/es6.array.find":74,"core-js/modules/es6.array.iterator":75,"core-js/modules/es6.function.name":76,"core-js/modules/es6.number.constructor":77,"core-js/modules/es6.object.assign":78,"core-js/modules/es6.object.keys":79,"core-js/modules/es6.regexp.match":81,"core-js/modules/es6.regexp.replace":82,"core-js/modules/es6.regexp.to-string":83,"core-js/modules/es6.symbol":84,"core-js/modules/es7.symbol.async-iterator":85,"core-js/modules/web.dom.iterable":86}],89:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.array.find"),e("core-js/modules/web.dom.iterable");var r,o=(r=e("./text_track_map"))&&r.__esModule?r:{default:r};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.video=t}var t,n,r;return t=e,(n=[{key:"addTrack",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.video){var t=document.createElement("track");t.id=e.id,t.kind=e.kind,t.label=e.label,t.srclang=e.srclang,t.src=e.src,this.video.appendChild(t)}}},{key:"updateTrackLabel",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(this.video&&e){var n=this.video.querySelector("#".concat(e));n&&n.setAttribute("label",t)}}},{key:"forEach",value:function(e){this.video&&this.video.textTracks&&Array.prototype.forEach.call(this.video.textTracks,e)}},{key:"filter",value:function(e){return this.video&&this.video.textTracks?Array.prototype.filter.call(this.video.textTracks,e):[]}},{key:"find",value:function(e){if(this.video&&this.video.textTracks)return Array.prototype.find.call(this.video.textTracks,e)}},{key:"findTrackByKey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new o.default;return this.find(function(n){var r=t.findEntry({textTrack:n}),o=!!r&&!r.isExternal&&r.id===e,i=!!r&&r.isExternal&&n.language===e;return o||i})}},{key:"filterChangedTracks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new o.default;return this.filter(function(t){var n=e.findEntry({textTrack:t});return n&&t.mode!==n.mode})}},{key:"removeExternalTracks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.default)();if(this.video){var t=!0,n=!1,r=void 0;try{for(var i,a=e.getExternalEntries()[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=i.value,c=this.video.querySelector("#".concat(s.id));c&&c.remove()}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}}}}])&&i(t.prototype,n),r&&i(t,r),e}();n.default=a},{"./text_track_map":90,"core-js/modules/es6.array.find":74,"core-js/modules/es6.symbol":84,"core-js/modules/es7.symbol.async-iterator":85,"core-js/modules/web.dom.iterable":86}],90:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("core-js/modules/es6.array.find"),e("core-js/modules/es6.object.assign");var r,o=(r=e("../constants/constants"))&&r.__esModule?r:{default:r};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.textTracks=[]}var t,n,r;return t=e,(n=[{key:"addEntry",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r?(e=o.default.ID_PREFIX.EXTERNAL,t=this.getExternalEntries().length):(e=o.default.ID_PREFIX.INTERNAL,t=this.getInternalEntries().length);var i=Object.assign({},n,{id:"".concat(e).concat(t+1),isExternal:!!r});return this.textTracks.push(i),i.id}},{key:"findEntry",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.textTracks.find(function(t){var n=!0;for(var r in e)if(e.hasOwnProperty(r)&&e[r]!==t[r]){n=!1;break}return n})}},{key:"existsEntry",value:function(e){return!!this.findEntry(e)}},{key:"tryUpdateEntry",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.findEntry(e);return n&&(n=Object.assign(n,t)),n}},{key:"getInternalEntries",value:function(){return this.textTracks.filter(function(e){return!e.isExternal})}},{key:"getExternalEntries",value:function(){return this.textTracks.filter(function(e){return e.isExternal})}},{key:"areAllDisabled",value:function(){return this.textTracks.reduce(function(e,t){return e&&t.mode===OO.CONSTANTS.CLOSED_CAPTIONS.DISABLED},!0)}},{key:"clear",value:function(){this.textTracks=[]}}])&&i(t.prototype,n),r&&i(t,r),e}();n.default=a},{"../constants/constants":87,"core-js/modules/es6.array.find":74,"core-js/modules/es6.object.assign":78}]},{},[88]);
//freewheel.js-4.40.0
!function a(o,l,u){function E(t,e){if(!l[t]){if(!o[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(d)return d(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var i=l[t]={exports:{}};o[t][0].call(i.exports,function(e){return E(o[t][1][e]||e)},i,i.exports,a,o,l,u)}return l[t].exports}for(var d="function"==typeof require&&require,e=0;e<u.length;e++)E(u[e]);return E}({1:[function(e,t,n){var r,i;r=OO,i=OO._,r.STATE={LOADING:"loading",READY:"ready",PLAYING:"playing",PAUSED:"paused",BUFFERING:"buffering",ERROR:"error",DESTROYED:"destroyed",__end_marker:!0},r.EVENTS={PLAYER_CREATED:"playerCreated",PLAYER_EMBEDDED:"playerEmbedded",SET_EMBED_CODE:"setEmbedCode",HEVC_CHECKED:"hevcChecked",SET_EMBED_CODE_AFTER_OOYALA_AD:"setEmbedCodeAfterOoyalaAd",EMBED_CODE_CHANGED:"embedCodeChanged",SET_ASSET:"setAsset",ASSET_CHANGED:"assetChanged",UPDATE_ASSET:"updateAsset",ASSET_UPDATED:"assetUpdated",AUTH_TOKEN_CHANGED:"authTokenChanged",GUID_SET:"guidSet",WILL_FETCH_PLAYER_XML:"willFetchPlayerXml",PLAYER_XML_FETCHED:"playerXmlFetched",WILL_FETCH_CONTENT_TREE:"willFetchContentTree",SAVE_PLAYER_SETTINGS:"savePlayerSettings",CONTENT_TREE_FETCHED:"contentTreeFetched",WILL_FETCH_METADATA:"willFetchMetadata",METADATA_FETCHED:"metadataFetched",SKIN_METADATA_FETCHED:"skinMetadataFetched",THUMBNAILS_FETCHED:"thumbnailsFetched",WILL_FETCH_AUTHORIZATION:"willFetchAuthorization",AUTHORIZATION_FETCHED:"authorizationFetched",WILL_FETCH_AD_AUTHORIZATION:"willFetchAdAuthorization",AD_AUTHORIZATION_FETCHED:"adAuthorizationFetched",CAN_SEEK:"canSeek",WILL_RESUME_MAIN_VIDEO:"willResumeMainVideo",PLAYBACK_READY:"playbackReady",INITIAL_PLAY:"initialPlay",WILL_PLAY:"willPlay",REPLAY:"replay",SET_PLAYBACK_SPEED:"setPlaybackSpeed",PLAYBACK_SPEED_CHANGED:"playbackSpeedChanged",PLAYHEAD_TIME_CHANGED:"playheadTimeChanged",BUFFERING:"buffering",BUFFERED:"buffered",DOWNLOADING:"downloading",BITRATE_INFO_AVAILABLE:"bitrateInfoAvailable",SET_TARGET_BITRATE:"setTargetBitrate",BITRATE_CHANGED:"bitrateChanged",CLOSED_CAPTIONS_INFO_AVAILABLE:"closedCaptionsInfoAvailable",SET_CLOSED_CAPTIONS_LANGUAGE:"setClosedCaptionsLanguage",SKIN_UI_LANGUAGE:"skinUiLanguage",CLOSED_CAPTION_CUE_CHANGED:"closedCaptionCueChanged",ASSET_DIMENSION:"assetDimension",SCRUBBING:"scrubbing",SCRUBBED:"scrubbed",SEEK:"seek",SEEKED:"seeked",PLAY:"play",PLAYING:"playing",PLAY_FAILED:"playFailed",PAUSE:"pause",PAUSED:"paused",PLAYED:"played",DISPLAY_CUE_POINTS:"displayCuePoints",INSERT_CUE_POINT:"insertCuePoint",RESET_CUE_POINTS:"resetCuePoints",WILL_CHANGE_FULLSCREEN:"willChangeFullscreen",FULLSCREEN_CHANGED:"fullscreenChanged",SIZE_CHANGED:"sizeChanged",CHANGE_VOLUME:"changeVolume",VOLUME_CHANGED:"volumeChanged",CHANGE_MUTE_STATE:"changeMuteState",MUTE_STATE_CHANGED:"muteStateChanged",CONTROLS_SHOWN:"controlsShown",CONTROLS_HIDDEN:"controlsHidden",END_SCREEN_SHOWN:"endScreenShown",ERROR:"error",API_ERROR:"apiError",BITRATE_INITIAL:"bitrateInitial",BITRATE_FIVE_SEC:"bitrateFiveSec",BITRATE_STABLE:"bitrateStable",PLAYBACK_START_ERROR:"playbackStartError",PLAYBACK_MIDSTREAM_ERROR:"playbackMidstreamError",PLUGIN_LOADED:"pluginLoaded",VC_PLUGIN_ERROR:"videoPluginError",INITIAL_PLAY_STARTING:"initialPlayStarting",REQUEST_PREVIOUS_VIDEO:"requestPreviousVideo",REQUEST_NEXT_VIDEO:"requestNextVideo",POSITION_IN_PLAYLIST_DETERMINED:"positionInPlaylistDetermined",DESTROY:"destroy",WILL_PLAY_FROM_BEGINNING:"willPlayFromBeginning",DISABLE_PLAYBACK_CONTROLS:"disablePlaybackControls",ENABLE_PLAYBACK_CONTROLS:"enablePlaybackControls",VC_READY:"videoControllerReady",VC_CREATE_VIDEO_ELEMENT:"videoControllerCreateVideoElement",VC_UPDATE_ELEMENT_STREAM:"videoControllerUpdateElementStream",VC_VIDEO_ELEMENT_CREATED:"videoControllerVideoElementCreated",VC_FOCUS_VIDEO_ELEMENT:"videoControllerFocusVideoElement",VC_VIDEO_ELEMENT_IN_FOCUS:"videoControllerVideoElementInFocus",VC_VIDEO_ELEMENT_LOST_FOCUS:"videoControllerVideoElementLostFocus",VC_DISPOSE_VIDEO_ELEMENT:"videoControllerDisposeVideoElement",VC_VIDEO_ELEMENT_DISPOSED:"videoControllerVideoElementDisposed",VC_SET_VIDEO_STREAMS:"videoControllerSetVideoStreams",VC_ERROR:"videoControllerError",VC_SET_INITIAL_TIME:"videoSetInitialTime",VC_PLAY:"videoPlay",PLAY_VIDEO_ELEMENT:"playVideoElement",VC_WILL_PLAY:"videoWillPlay",VC_PLAYING:"videoPlaying",VC_PLAYED:"videoPlayed",VC_PLAY_FAILED:"videoPlayFailed",VC_PAUSE:"videoPause",VC_PAUSED:"videoPaused",VC_SEEK:"videoSeek",VC_SEEKING:"videoSeeking",VC_SEEKED:"videoSeeked",VC_PRELOAD:"videoPreload",VC_RELOAD:"videoReload",VC_PRIME_VIDEOS:"videoPrimeVideos",VC_TAG_FOUND:"videoTagFound",INITIAL_PLAY_STARTING:"initialPlayStarting",AD_SDK_LOADED:"adSdkLoaded",AD_SDK_LOAD_FAILED:"adSdkLoadFailed",AD_REQUEST:"adRequest",AD_REQUEST_SUCCESS:"adRequestSuccess",AD_REQUEST_ERROR:"adRequestError",AD_REQUEST_EMPTY:"adRequestEmpty",AD_PLAYBACK_ERROR:"adPlaybackError",AD_SDK_IMPRESSION:"adSdkImpression",AD_COMPLETED:"adCompleted",WILL_FETCH_ADS:"willFetchAds",DISABLE_SEEKING:"disableSeeking",ENABLE_SEEKING:"enableSeeking",WILL_PLAY_ADS:"willPlayAds",WILL_PLAY_SINGLE_AD:"willPlaySingleAd",WILL_PAUSE_ADS:"willPauseAds",WILL_RESUME_ADS:"willResumeAds",WILL_PLAY_NONLINEAR_AD:"willPlayNonlinearAd",PLAY_NONLINEAR_AD:"playNonlinearAd",NONLINEAR_AD_DISPLAYED:"nonlinearAdDisplayed",ADS_PLAYED:"adsPlayed",SINGLE_AD_PLAYED:"singleAdPlayed",ADS_ERROR:"adsError",ADS_CLICKED:"adsClicked",FIRST_AD_FETCHED:"firstAdFetched",AD_CONFIG_READY:"adConfigReady",WILL_SHOW_COMPANION_ADS:"willShowCompanionAds",AD_FETCH_FAILED:"adFetchFailed",MIDROLL_PLAY_FAILED:"midrollPlayFailed",SKIP_AD:"skipAd",UPDATE_AD_COUNTDOWN:"updateAdCountdown",REPORT_EXPERIMENT_VARIATIONS:"reportExperimentVariations",FETCH_STYLE:"fetchStyle",STYLE_FETCHED:"styleFetched",SET_STYLE:"setStyle",USE_SERVER_SIDE_HLS_ADS:"useServerSideHlsAds",LOAD_ALL_VAST_ADS:"loadAllVastAds",ADS_FILTERED:"adsFiltered",ADS_MANAGER_HANDLING_ADS:"adsManagerHandlingAds",ADS_MANAGER_FINISHED_ADS:"adsManagerFinishedAds",OVERLAY_RENDERING:"overlayRendering",SHOW_AD_CONTROLS:"showAdControls",SHOW_AD_MARQUEE:"showAdMarquee",SDK_AD_EVENT:"sdkAdEvent",PAGE_UNLOAD_REQUESTED:"pageUnloadRequested",PAGE_PROBABLY_UNLOADING:"pageProbablyUnloading",REPORT_DISCOVERY_IMPRESSION:"reportDiscoveryImpression",REPORT_DISCOVERY_CLICK:"reportDiscoveryClick",DISCOVERY_API:{SEND_DISPLAY_EVENT:"sendDisplayEvent",SEND_CLICK_EVENT:"sendClickEvent"},PLAYLISTS_READY:"playlistReady",VIDEO_TYPE_CHANGED:"videoTypeChanged",UI_READY:"uiReady",__end_marker:!0},r.ERROR={API:{NETWORK:"network",SAS:{GENERIC:"sas",GEO:"geo",DOMAIN:"domain",FUTURE:"future",PAST:"past",DEVICE:"device",PROXY:"proxy",CONCURRENT_STREAMS:"concurrent_streams",INVALID_HEARTBEAT:"invalid_heartbeat",ERROR_DEVICE_INVALID_AUTH_TOKEN:"device_invalid_auth_token",ERROR_DEVICE_LIMIT_REACHED:"device_limit_reached",ERROR_DEVICE_BINDING_FAILED:"device_binding_failed",ERROR_DEVICE_ID_TOO_LONG:"device_id_too_long",ERROR_DRM_RIGHTS_SERVER_ERROR:"drm_server_error",ERROR_DRM_GENERAL_FAILURE:"drm_general_failure",ERROR_INVALID_ENTITLEMENTS:"invalid_entitlements"},CONTENT_TREE:"content_tree",METADATA:"metadata"},PLAYBACK:{GENERIC:"playback",STREAM:"stream",LIVESTREAM:"livestream",NETWORK:"network_error"},CHROMECAST:{MANIFEST:"chromecast_manifest",MEDIAKEYS:"chromecast_mediakeys",NETWORK:"chromecast_network",PLAYBACK:"chromecast_playback"},UNPLAYABLE_CONTENT:"unplayable_content",INVALID_EXTERNAL_ID:"invalid_external_id",EMPTY_CHANNEL:"empty_channel",EMPTY_CHANNEL_SET:"empty_channel_set",CHANNEL_CONTENT:"channel_content",VC:{UNSUPPORTED_ENCODING:"unsupported_encoding",UNABLE_TO_CREATE_VIDEO_ELEMENT:"unable_to_create_video_element"},MEDIA:{MEDIA_ERR_ABORTED:"aborted",MEDIA_ERR_NETWORK:"network_error",MEDIA_ERR_DECODE:"decode_error",MEDIA_ERR_SRC_NOT_SUPPORTED:"unsupported_source"}},r.URLS={VAST_PROXY:i.template("http://player.ooyala.com/nuplayer/mobile_vast_ads_proxy?callback=<%=cb%>&embed_code=<%=embedCode%>&expires=<%=expires%>&tag_url=<%=tagUrl%>"),EXTERNAL_ID:i.template("<%=server%>/player_api/v1/content_tree/external_id/<%=pcode%>/<%=externalId%>"),CONTENT_TREE:i.template("<%=server%>/player_api/v1/content_tree/embed_code/<%=pcode%>/<%=embedCode%>"),METADATA:i.template("<%=server%>/player_api/v1/metadata/embed_code/<%=playerBrandingId%>/<%=embedCode%>?videoPcode=<%=pcode%>"),SAS:i.template("<%=server%>/player_api/v1/authorization/embed_code/<%=pcode%>/<%=embedCode%>"),ANALYTICS:i.template("<%=server%>/reporter.js"),THUMBNAILS:i.template("<%=server%>/api/v1/thumbnail_images/<%=embedCode%>"),__end_marker:!0},r.TRACKING_LEVEL={DEFAULT:"default",ANONYMOUS:"anonymous",DISABLED:"disabled"},r.PLUGINS={ADS:"ads",VIDEO:"video",ANALYTICS:"analytics",PLAYLIST:"playlist",SKIN:"skin"},r.VIDEO={MAIN:"main",ADS:"ads",ENCODING:{DRM:{HLS:"hls_drm",DASH:"dash_drm"},AUDIO:"audio",AUDIO_OGG:"audio_ogg",AUDIO_M4A:"audio_m4a",AUDIO_HLS:"audio_hls",DASH:"dash",HDS:"hds",HLS:"hls",IMA:"ima",PULSE:"pulse",MP4:"mp4",YOUTUBE:"youtube",RTMP:"rtmp",SMOOTH:"smooth",WEBM:"webm",AKAMAI_HD_VOD:"akamai_hd_vod",AKAMAI_HD2_VOD_HLS:"akamai_hd2_vod_hls",AKAMAI_HD2_VOD_HDS:"akamai_hd2_vod_hds",AKAMAI_HD2_HDS:"akamai_hd2_hds",AKAMAI_HD2_HLS:"akamai_hd2_hls",FAXS_HLS:"faxs_hls",WIDEVINE_HLS:"wv_hls",WIDEVINE_MP4:"wv_mp4",WIDEVINE_WVM:"wv_wvm",UNKNOWN:"unknown"},FEATURE:{CLOSED_CAPTIONS:"closedCaptions",VIDEO_OBJECT_SHARING_GIVE:"videoObjectSharingGive",VIDEO_OBJECT_SHARING_TAKE:"videoObjectSharingTake",BITRATE_CONTROL:"bitrateControl"},TECHNOLOGY:{FLASH:"flash",HTML5:"html5",MIXED:"mixed",OTHER:"other"}},r.CSS={VISIBLE_POSITION:"0px",INVISIBLE_POSITION:"-100000px",VISIBLE_DISPLAY:"block",INVISIBLE_DISPLAY:"none",VIDEO_Z_INDEX:1e4,SUPER_Z_INDEX:2e4,ALICE_SKIN_Z_INDEX:11e3,OVERLAY_Z_INDEX:10500,TRANSPARENT_COLOR:"rgba(255, 255, 255, 0)",__end_marker:!0},r.TEMPLATES={RANDOM_PLACE_HOLDER:["[place_random_number_here]","<now>","[timestamp]","<rand-num>","[cache_buster]","[random]"],REFERAK_PLACE_HOLDER:["[referrer_url]","[LR_URL]","[description_url]"],EMBED_CODE_PLACE_HOLDER:["[oo_embedcode]"],MESSAGE:'                  <table width="100%" height="100%" bgcolor="black" style="padding-left:55px; padding-right:55px;                   background-color:black; color: white;">                  <tbody>                  <tr valign="middle">                  <td align="right"><span style="font-family:Arial; font-size:20px">                  <%= message %>                  </span></td></tr></tbody></table>                  ',__end_marker:!0},r.CONSTANTS={AD_PLAY_COUNT_KEY:"oo_ad_play_count",AD_ID_TO_PLAY_COUNT_DIVIDER:":",AD_PLAY_COUNT_DIVIDER:"|",MAX_AD_PLAY_COUNT_HISTORY_LENGTH:20,CONTROLS_BOTTOM_PADDING:10,SEEK_TO_END_LIMIT:3,PLAYER_TYPE:{VIDEO:"video",AUDIO:"audio"},HEVC_CODEC:{HEV1:"hev1",HVC1:"hvc1"},CLOSED_CAPTIONS:{SHOWING:"showing",HIDDEN:"hidden",DISABLED:"disabled"},OOYALA_PLAYER_SETTINGS_KEY:"ooyala_player_settings",PLAYBACK_SPEED:{MIN:.5,MAX:2},__end_marker:!0}},{}],2:[function(e,t,n){"use strict";function te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var r=e("underscore"),ne=r.isFunction,re=r.each,ie=r.delay,ae=r.filter;e("../html5-common/js/utils/constants.js"),OO.Ads.manager(function(){return new function(){var l=this;this.name="freewheel-ads-manager",this.testMode=!1,this.videoRestrictions={technology:OO.VIDEO.TECHNOLOGY.HTML5,features:[OO.VIDEO.FEATURE.VIDEO_OBJECT_SHARING_GIVE]};var u=null,r=null,i=null;this.ready=!1,this.initTime=Date.now();var E=!1,n=null,a=null,o=!1,d=!1,_=null,s=null,c=null,A=null,f=null,S=null,T=null,t=[],p=[],D={},I={},h={},v={},R=0,L=null,O=null,m=null,C=null,N=null,y=null;this.loadMetadata=function(e,t,n){l.ready=!1,s=null;var r=n.external_id;if(e.use_external_id&&r){var i=e.external_id_filter;if(i){var a=r.match(i);if(0<a.length){var o=te(a,1);s=o[0]}}else s=r}s||(s=e.embedCode),_=u.platform.isSSL?"https://mssl.fwmrm.net/p/release/latest-JS/adm/prd/AdManager.js":"http://adm.fwmrm.net/p/release/latest-JS/adm/prd/AdManager.js",e&&(e.fw_mrm_network_id&&(c=parseInt(e.fw_mrm_network_id,10)),A=e.html5_player_profile,f=e.fw_site_section_id,s=e.fw_video_asset_id||e.fw_video_asset_network_id||s,T=e.FRMSegment,m=e.companion_ad_wrapper_id,S=u.platform.isSSL?e.html5_ssl_ad_server:e.html5_ad_server,_=e.fw_ad_module_js||_,O=parseInt(e.bitrateOverride,10)),null!=S&&null!=c?(s||(s=t&&t.fw_video_asset_id?t.fw_video_asset_id:u.pageSettings&&u.pageSettings.originalId?u.pageSettings.originalId:u.currentEmbedCode),E||l.testMode?(l.testMode?(l.ready=!0,E=!0):l.ready=!0,u.onAdManagerReady(!0),u.reportPluginLoaded(Date.now()-l.initTime,l.name)):u.loadAdModule(l.name,_,function(e){(E=e)&&(l.ready=!0,u.onAdManagerReady(!0),u.reportPluginLoaded(Date.now()-l.initTime,l.name))})):u.unregisterAdManager(l.name)};this.registerUi=function(){var e,t;m&&(C=document.getElementById(m)),e="#".concat(u.ui.videoWrapper.attr("id")," "),t=document.createElement("style"),e+='span[id^="_fw_ad_container"]{z-index: 10004 !important}',t.type="text/css",t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t)};var g=function(){L&&(clearTimeout(L),L=null)},P=function(){i.registerVideoDisplayBase(u.ui.adWrapper.attr("id"))},V=function(){OO.requiresSingleVideoElement?i.setContentVideoElement(u.ui.ooyalaVideoElement[0]):(y||((y=document.createElement("div")).style.width="100%",y.style.height="100%",(u.ui.playerSkinPluginsElement?u.ui.playerSkinPluginsElement[0]:u.ui.pluginsElement[0]).appendChild(y)),N||(N=document.createElement("video"),y.appendChild(N)),i.setContentVideoElement(N))},M=function(e,t){u.raiseAdError("FW: An ad error has occurred. The error string reported was: ".concat(t))},w=function(){g(),i._adResponse||(i.removeEventListener(tv.freewheel.SDK.EVENT_REQUEST_COMPLETE),OO.log("FW: freewheel ad request timeout"),M(0,"ad request timeout"),D[u.ADTYPE.AD_REQUEST](),delete D[u.ADTYPE.AD_REQUEST])},b=function(e){g(),e.success?(t=i.getTemporalSlots(),function(){if(t&&!(0<p.length))for(var e=0;e<t.length;e++)switch(t[e].getTimePositionClass()){case tv.freewheel.SDK.TIME_POSITION_CLASS_PREROLL:p.push(new u.Ad({position:0,duration:t[e].getTotalDuration(),adManager:l.name,ad:t[e],streams:{mp4:""},adType:u.ADTYPE.LINEAR_VIDEO}));break;case tv.freewheel.SDK.TIME_POSITION_CLASS_MIDROLL:p.push(new u.Ad({position:t[e].getTimePosition(),duration:t[e].getTotalDuration(),adManager:l.name,ad:t[e],streams:{mp4:""},adType:u.ADTYPE.LINEAR_VIDEO}));break;case tv.freewheel.SDK.TIME_POSITION_CLASS_POSTROLL:p.push(new u.Ad({position:Number.MAX_VALUE,duration:t[e].getTotalDuration(),adManager:l.name,ad:t[e],streams:{mp4:""},adType:u.ADTYPE.LINEAR_VIDEO}));break;case tv.freewheel.SDK.TIME_POSITION_CLASS_OVERLAY:p.push(new u.Ad({position:t[e].getTimePosition(),duration:t[e].getTotalDuration(),adManager:l.name,ad:t[e],adType:u.ADTYPE.NONLINEAR_OVERLAY}))}}(),u.appendToTimeline(p)):OO.log("FW: freewheel metadata request failure"),D[u.ADTYPE.AD_REQUEST](),delete D[u.ADTYPE.AD_REQUEST]};this.buildTimeline=function(){return p=[],[new u.Ad({position:0,duration:0,adManager:l.name,ad:{},adType:u.ADTYPE.AD_REQUEST})]};var U=function(){o=!1,n=a=null},Y=function(){if(null!==n)if(n.adType!==u.ADTYPE.AD_REQUEST&&"function"==typeof a.getCustomId){var e=a.getCustomId(),t=a.getTimePositionClass();ne(a.stop)&&a.stop(),t===tv.freewheel.SDK.TIME_POSITION_CLASS_OVERLAY&&P(),ne(I[e])&&(I[e](),delete I[e]),ne(D[e])&&(D[e](),delete D[e]),delete h[e],delete v[e],U()}else U()};this.cancelAd=function(e){e&&e.ad&&a&&(e.adType===u.ADTYPE.AD_REQUEST||a.getCustomId()===e.ad.getCustomId())&&Y()};var H=function(){},K=function(){a&&n&&!n.isLinear&&!l.testMode&&a&&(a.getTimePositionClass()!==tv.freewheel.SDK.TIME_POSITION_CLASS_OVERLAY?P():V())},F=function(){K()};this.playerClicked=function(){if(n&&n.adType!==u.ADTYPE.AD_REQUEST){var e=a.getCurrentAdInstance();if(o)o=!1;else{o=!0;var t=e.getEventCallback(tv.freewheel.SDK.EVENT_AD_CLICK,tv.freewheel.SDK.EVENT_TYPE_CLICK);t&&t._url&&e.getRendererController().processEvent({name:tv.freewheel.SDK.EVENT_AD_CLICK})}}},this.cancelOverlay=function(e){l.cancelAd(e)};var k=function(){K()},e=function(){C&&(C.style.display="")},G=function(){d=!0,e()},B=function(){U(),d=!0,e()},x=function(){i&&ne(i.setVideoState)&&i.setVideoState(tv.freewheel.SDK.VIDEO_STATE_PLAYING)},j=function(){i&&ne(i.setVideoState)&&i.setVideoState(tv.freewheel.SDK.VIDEO_STATE_PAUSED)},W=function(){i&&ne(i.setVideoState)&&i.setVideoState(tv.freewheel.SDK.VIDEO_STATE_PLAYING)},q=function(){i&&ne(i.setVideoState)&&i.setVideoState(tv.freewheel.SDK.VIDEO_STATE_STOPPED)},Q=function(){i&&ne(i.setVideoState)&&(i.setVideoState(tv.freewheel.SDK.VIDEO_STATE_COMPLETED),C&&(C.style.display="none"))},X=function(){o?o=!1:(o=!0,OO.log("FW: The ad was clicked!"),u.adsClicked()),u.adsClickthroughOpened()},z=function(e){if(R+=1,e&&e.adInstance){var t=e.adInstance,n=t.getSlot(),r=(n?n.getCustomId():"")||e.slotCustomId;if(ne(h[r])){var i=0<ae(t._eventCallbacks,function(e){return"defaultClick"===e._name}).length,a=t.getActiveCreativeRendition();h[r]({name:a.getPrimaryCreativeRenditionAsset().getName(),duration:t._creative.getDuration(),hasClickUrl:i,indexInPod:R,skippable:!1,width:a.getWidth(),height:a.getHeight()})}}},Z=function(e){u&&u.ui&&u.ui.adVideoElement&&u.ui.adVideoElement[0]&&(u.ui.adVideoElement[0].muted?i.setAdVolume(0):i.setAdVolume(u.ui.adVideoElement[0].volume)),ne(v[e.adInstance.getSlot().getCustomId()])&&v[e.adInstance.getSlot().getCustomId()]()},J=function(){a&&a.getTimePositionClass()!==tv.freewheel.SDK.TIME_POSITION_CLASS_OVERLAY&&u&&u.ui&&u.ui.adVideoElement&&u.ui.adVideoElement.removeAttr("controls"),ne(I[a.getCustomId()])&&I[a.getCustomId()](),delete I[a.getCustomId()]},$=function(e){a&&a.getTimePositionClass()!==tv.freewheel.SDK.TIME_POSITION_CLASS_OVERLAY&&u&&u.ui&&u.ui.adVideoElement&&u.ui.adVideoElement.attr("controls",!1),a&&a.getTimePositionClass()===tv.freewheel.SDK.TIME_POSITION_CLASS_OVERLAY&&P(),e&&e.slot&&(U(),ne(D[e.slot.getCustomId()])&&D[e.slot.getCustomId()](),delete D[e.slot.getCustomId()],delete h[e.slot.getCustomId()],delete v[e.slot.getCustomId()])},ee=function(){if(E){if(d=!1,"undefined"==typeof tv)return u.removeAdManager(l.name),void g();if((r=new tv.freewheel.SDK.AdManager).setNetwork(c),r.setServer(S),(i=r.newContext()).setProfile(A),i.setVideoAsset(s,u.movieDuration,c),i.setSiteSection(f,c),P(),V(),T&&re(T.split(";"),function(e){var t=e.split("=");i.addKeyValue(t[0],t[1])}),i.addEventListener(tv.freewheel.SDK.EVENT_AD_IMPRESSION,z),i.addEventListener(tv.freewheel.SDK.EVENT_AD_IMPRESSION_END,Z),i.addEventListener(tv.freewheel.SDK.EVENT_SLOT_STARTED,J),i.addEventListener(tv.freewheel.SDK.EVENT_SLOT_ENDED,$),i.addEventListener(tv.freewheel.SDK.EVENT_REQUEST_COMPLETE,b),i.addEventListener(tv.freewheel.SDK.EVENT_AD_CLICK,X),i.addEventListener(tv.freewheel.SDK.EVENT_ERROR,M),i.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_VIDEO_START_DETECT_TIMEOUT,1e4,tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL),i.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_VIDEO_PROGRESS_DETECT_TIMEOUT,1e4,tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL),i.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_VIDEO_DISPLAY_CONTROLS_WHEN_PAUSE,!1,tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL),i.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_VIDEO_CLICK_DETECTION,!0,tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL),O&&i.setParameter(tv.freewheel.SDK.PARAMETER_DESIRED_BITRATE,O,tv.freewheel.SDK.PARAMETER_LEVEL_OVERRIDE),OO.requiresSingleVideoElement){var e=u.ui.rootElement.find(".controlBar");e=0===e.length?60:e.height()+OO.CONSTANTS.CONTROLS_BOTTOM_PADDING,i.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_HTML_MARGIN_HEIGHT,e,tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL)}else i.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_HTML_MARGIN_HEIGHT,0,tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);var t,n;i.submitRequest(),t=w,n=u.MAX_AD_REQUEST_TIMEOUT,L?M(0,"Ad Request Timeout already exists - bad state"):l.testMode||(L=ie(t,n))}};this.playAd=function(t){U();try{t.adType===u.ADTYPE.AD_REQUEST?d?(R=0,u.notifyPodStarted(t.id,1),D[u.ADTYPE.AD_REQUEST]=function(){u.notifyPodEnded(t.id)},ee()):(u.notifyPodStarted(t.id,1),u.notifyPodEnded(t.id)):(a=(n=t).ad,R=0,t.isLinear?(P(),i.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_VIDEO_CLICK_DETECTION,!1,tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL),I[t.ad.getCustomId()]=function(){u.focusAdVideo()},D[t.ad.getCustomId()]=function(){u.notifyPodEnded(t.id)},h[t.ad.getCustomId()]=function(e){N&&y&&(y.removeChild(N),N=null),R<=1&&u.notifyPodStarted(t.id,t.ad.getAdCount()),u.notifyLinearAdStarted(t.id,e)},v[t.ad.getCustomId()]=function(){u.notifyLinearAdEnded(t.od)},1===a.getAdCount()?u.showSkipVideoAdButton(!0):u.showSkipVideoAdButton(!1)):(V(),i.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_VIDEO_CLICK_DETECTION,!0,tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL),h[t.ad.getCustomId()]=function(e){e&&(t.width=e.width,t.height=e.height,N&&(N.style.width="".concat(e.width,"px"),N.style.height="".concat(e.height,"px")),K()),u.sendURLToLoadAndPlayNonLinearAd(t,t.id,null)},v[t.ad.getCustomId()]=function(){N&&y&&(y.removeChild(N),N=null),u.notifyNonlinearAdEnded(t.id)},delete I[t.ad.getCustomId()],delete D[t.ad.getCustomId()]),t.ad.play())}catch(e){R=0,u.notifyPodStarted(t.id,1),u.raiseAdError("Ad could not be played.  ".concat(e)),u.notifyPodEnded(t.id)}},this.initialize=function(e){(u=e).addPlayerListener(u.EVENTS.INITIAL_PLAY_REQUESTED,G),u.addPlayerListener(u.EVENTS.REPLAY_REQUESTED,B),u.addPlayerListener(u.EVENTS.PLAY_STARTED,x),u.addPlayerListener(u.EVENTS.PAUSE,j),u.addPlayerListener(u.EVENTS.RESUME,W),u.addPlayerListener(u.EVENTS.CONTENT_COMPLETED,q),u.addPlayerListener(u.EVENTS.CONTENT_AND_ADS_COMPLETED,Q),u.addPlayerListener(u.EVENTS.CONTENT_CHANGED,H),u.addPlayerListener(u.EVENTS.SIZE_CHANGED,F),u.addPlayerListener(u.EVENTS.MAIN_CONTENT_IN_FOCUS,k)},this.getHandlingClick=function(){return o},this.destroy=function(){Y(),g(),l.ready=!1,E=!1,U(),T=S=f=A=c=s=_=null,t=[],N&&(N.parentElement&&N.parentElement.removeChild(N),N=null),y&&(y.parentElement&&y.parentElement.removeChild(y),y=null),i&&ne(i.dispose)&&i.dispose()}}})},{"../html5-common/js/utils/constants.js":1,underscore:3}],3:[function(e,z,Z){(function(X){!function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof X&&X.global===X&&X||this||{},t=e._,r=Array.prototype,o=Object.prototype,_="undefined"!=typeof Symbol?Symbol.prototype:null,i=r.push,u=r.slice,s=o.toString,a=o.hasOwnProperty,n=Array.isArray,l=Object.keys,E=Object.create,d=function(){},c=function(e){return e instanceof c?e:this instanceof c?void(this._wrapped=e):new c(e)};void 0===Z||Z.nodeType?e._=c:(void 0!==z&&!z.nodeType&&z.exports&&(Z=z.exports=c),Z._=c),c.VERSION="1.9.1";var A,f=function(i,a,e){if(void 0===a)return i;switch(null==e?3:e){case 1:return function(e){return i.call(a,e)};case 3:return function(e,t,n){return i.call(a,e,t,n)};case 4:return function(e,t,n,r){return i.call(a,e,t,n,r)}}return function(){return i.apply(a,arguments)}},S=function(e,t,n){return c.iteratee!==A?c.iteratee(e,t):null==e?c.identity:c.isFunction(e)?f(e,t,n):c.isObject(e)&&!c.isArray(e)?c.matcher(e):c.property(e)};c.iteratee=A=function(e,t){return S(e,t,1/0)};var T=function(i,a){return a=null==a?i.length-1:+a,function(){for(var e=Math.max(arguments.length-a,0),t=Array(e),n=0;n<e;n++)t[n]=arguments[n+a];switch(a){case 0:return i.call(this,t);case 1:return i.call(this,arguments[0],t);case 2:return i.call(this,arguments[0],arguments[1],t)}var r=Array(a+1);for(n=0;n<a;n++)r[n]=arguments[n];return r[a]=t,i.apply(this,r)}},p=function(e){if(!c.isObject(e))return{};if(E)return E(e);d.prototype=e;var t=new d;return d.prototype=null,t},D=function(t){return function(e){return null==e?void 0:e[t]}},I=function(e,t){return null!=e&&a.call(e,t)},h=function(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0},v=Math.pow(2,53)-1,R=D("length"),L=function(e){var t=R(e);return"number"==typeof t&&0<=t&&t<=v};c.each=c.forEach=function(e,t,n){var r,i;if(t=f(t,n),L(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var a=c.keys(e);for(r=0,i=a.length;r<i;r++)t(e[a[r]],a[r],e)}return e},c.map=c.collect=function(e,t,n){t=S(t,n);for(var r=!L(e)&&c.keys(e),i=(r||e).length,a=Array(i),o=0;o<i;o++){var l=r?r[o]:o;a[o]=t(e[l],l,e)}return a};var O=function(u){return function(e,t,n,r){var i=3<=arguments.length;return function(e,t,n,r){var i=!L(e)&&c.keys(e),a=(i||e).length,o=0<u?0:a-1;for(r||(n=e[i?i[o]:o],o+=u);0<=o&&o<a;o+=u){var l=i?i[o]:o;n=t(n,e[l],l,e)}return n}(e,f(t,r,4),n,i)}};c.reduce=c.foldl=c.inject=O(1),c.reduceRight=c.foldr=O(-1),c.find=c.detect=function(e,t,n){var r=(L(e)?c.findIndex:c.findKey)(e,t,n);if(void 0!==r&&-1!==r)return e[r]},c.filter=c.select=function(e,r,t){var i=[];return r=S(r,t),c.each(e,function(e,t,n){r(e,t,n)&&i.push(e)}),i},c.reject=function(e,t,n){return c.filter(e,c.negate(S(t)),n)},c.every=c.all=function(e,t,n){t=S(t,n);for(var r=!L(e)&&c.keys(e),i=(r||e).length,a=0;a<i;a++){var o=r?r[a]:a;if(!t(e[o],o,e))return!1}return!0},c.some=c.any=function(e,t,n){t=S(t,n);for(var r=!L(e)&&c.keys(e),i=(r||e).length,a=0;a<i;a++){var o=r?r[a]:a;if(t(e[o],o,e))return!0}return!1},c.contains=c.includes=c.include=function(e,t,n,r){return L(e)||(e=c.values(e)),("number"!=typeof n||r)&&(n=0),0<=c.indexOf(e,t,n)},c.invoke=T(function(e,n,r){var i,a;return c.isFunction(n)?a=n:c.isArray(n)&&(i=n.slice(0,-1),n=n[n.length-1]),c.map(e,function(e){var t=a;if(!t){if(i&&i.length&&(e=h(e,i)),null==e)return;t=e[n]}return null==t?t:t.apply(e,r)})}),c.pluck=function(e,t){return c.map(e,c.property(t))},c.where=function(e,t){return c.filter(e,c.matcher(t))},c.findWhere=function(e,t){return c.find(e,c.matcher(t))},c.max=function(e,r,t){var n,i,a=-1/0,o=-1/0;if(null==r||"number"==typeof r&&"object"!=typeof e[0]&&null!=e)for(var l=0,u=(e=L(e)?e:c.values(e)).length;l<u;l++)null!=(n=e[l])&&a<n&&(a=n);else r=S(r,t),c.each(e,function(e,t,n){i=r(e,t,n),(o<i||i===-1/0&&a===-1/0)&&(a=e,o=i)});return a},c.min=function(e,r,t){var n,i,a=1/0,o=1/0;if(null==r||"number"==typeof r&&"object"!=typeof e[0]&&null!=e)for(var l=0,u=(e=L(e)?e:c.values(e)).length;l<u;l++)null!=(n=e[l])&&n<a&&(a=n);else r=S(r,t),c.each(e,function(e,t,n){((i=r(e,t,n))<o||i===1/0&&a===1/0)&&(a=e,o=i)});return a},c.shuffle=function(e){return c.sample(e,1/0)},c.sample=function(e,t,n){if(null==t||n)return L(e)||(e=c.values(e)),e[c.random(e.length-1)];var r=L(e)?c.clone(e):c.values(e),i=R(r);t=Math.max(Math.min(t,i),0);for(var a=i-1,o=0;o<t;o++){var l=c.random(o,a),u=r[o];r[o]=r[l],r[l]=u}return r.slice(0,t)},c.sortBy=function(e,r,t){var i=0;return r=S(r,t),c.pluck(c.map(e,function(e,t,n){return{value:e,index:i++,criteria:r(e,t,n)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(r<n||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index}),"value")};var m=function(o,t){return function(r,i,e){var a=t?[[],[]]:{};return i=S(i,e),c.each(r,function(e,t){var n=i(e,t,r);o(a,e,n)}),a}};c.groupBy=m(function(e,t,n){I(e,n)?e[n].push(t):e[n]=[t]}),c.indexBy=m(function(e,t,n){e[n]=t}),c.countBy=m(function(e,t,n){I(e,n)?e[n]++:e[n]=1});var C=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;c.toArray=function(e){return e?c.isArray(e)?u.call(e):c.isString(e)?e.match(C):L(e)?c.map(e,c.identity):c.values(e):[]},c.size=function(e){return null==e?0:L(e)?e.length:c.keys(e).length},c.partition=m(function(e,t,n){e[n?0:1].push(t)},!0),c.first=c.head=c.take=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[0]:c.initial(e,e.length-t)},c.initial=function(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},c.last=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[e.length-1]:c.rest(e,Math.max(0,e.length-t))},c.rest=c.tail=c.drop=function(e,t,n){return u.call(e,null==t||n?1:t)},c.compact=function(e){return c.filter(e,Boolean)};var N=function(e,t,n,r){for(var i=(r=r||[]).length,a=0,o=R(e);a<o;a++){var l=e[a];if(L(l)&&(c.isArray(l)||c.isArguments(l)))if(t)for(var u=0,E=l.length;u<E;)r[i++]=l[u++];else N(l,t,n,r),i=r.length;else n||(r[i++]=l)}return r};c.flatten=function(e,t){return N(e,t,!1)},c.without=T(function(e,t){return c.difference(e,t)}),c.uniq=c.unique=function(e,t,n,r){c.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=S(n,r));for(var i=[],a=[],o=0,l=R(e);o<l;o++){var u=e[o],E=n?n(u,o,e):u;t&&!n?(o&&a===E||i.push(u),a=E):n?c.contains(a,E)||(a.push(E),i.push(u)):c.contains(i,u)||i.push(u)}return i},c.union=T(function(e){return c.uniq(N(e,!0,!0))}),c.intersection=function(e){for(var t=[],n=arguments.length,r=0,i=R(e);r<i;r++){var a=e[r];if(!c.contains(t,a)){var o;for(o=1;o<n&&c.contains(arguments[o],a);o++);o===n&&t.push(a)}}return t},c.difference=T(function(e,t){return t=N(t,!0,!0),c.filter(e,function(e){return!c.contains(t,e)})}),c.unzip=function(e){for(var t=e&&c.max(e,R).length||0,n=Array(t),r=0;r<t;r++)n[r]=c.pluck(e,r);return n},c.zip=T(c.unzip),c.object=function(e,t){for(var n={},r=0,i=R(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n};var y=function(a){return function(e,t,n){t=S(t,n);for(var r=R(e),i=0<a?0:r-1;0<=i&&i<r;i+=a)if(t(e[i],i,e))return i;return-1}};c.findIndex=y(1),c.findLastIndex=y(-1),c.sortedIndex=function(e,t,n,r){for(var i=(n=S(n,r,1))(t),a=0,o=R(e);a<o;){var l=Math.floor((a+o)/2);n(e[l])<i?a=l+1:o=l}return a};var g=function(a,o,l){return function(e,t,n){var r=0,i=R(e);if("number"==typeof n)0<a?r=0<=n?n:Math.max(n+i,r):i=0<=n?Math.min(n+1,i):n+i+1;else if(l&&n&&i)return e[n=l(e,t)]===t?n:-1;if(t!=t)return 0<=(n=o(u.call(e,r,i),c.isNaN))?n+r:-1;for(n=0<a?r:i-1;0<=n&&n<i;n+=a)if(e[n]===t)return n;return-1}};c.indexOf=g(1,c.findIndex,c.sortedIndex),c.lastIndexOf=g(-1,c.findLastIndex),c.range=function(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),a=0;a<r;a++,e+=n)i[a]=e;return i},c.chunk=function(e,t){if(null==t||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(u.call(e,r,r+=t));return n};var P=function(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var a=p(e.prototype),o=e.apply(a,i);return c.isObject(o)?o:a};c.bind=T(function(t,n,r){if(!c.isFunction(t))throw new TypeError("Bind must be called on a function");var i=T(function(e){return P(t,i,n,this,r.concat(e))});return i}),c.partial=T(function(i,a){var o=c.partial.placeholder,l=function(){for(var e=0,t=a.length,n=Array(t),r=0;r<t;r++)n[r]=a[r]===o?arguments[e++]:a[r];for(;e<arguments.length;)n.push(arguments[e++]);return P(i,l,this,this,n)};return l}),(c.partial.placeholder=c).bindAll=T(function(e,t){var n=(t=N(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=c.bind(e[r],e)}}),c.memoize=function(r,i){var a=function(e){var t=a.cache,n=""+(i?i.apply(this,arguments):e);return I(t,n)||(t[n]=r.apply(this,arguments)),t[n]};return a.cache={},a},c.delay=T(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),c.defer=c.partial(c.delay,c,1),c.throttle=function(n,r,i){var a,o,l,u,E=0;i||(i={});var d=function(){E=!1===i.leading?0:c.now(),a=null,u=n.apply(o,l),a||(o=l=null)},e=function(){var e=c.now();E||!1!==i.leading||(E=e);var t=r-(e-E);return o=this,l=arguments,t<=0||r<t?(a&&(clearTimeout(a),a=null),E=e,u=n.apply(o,l),a||(o=l=null)):a||!1===i.trailing||(a=setTimeout(d,t)),u};return e.cancel=function(){clearTimeout(a),E=0,a=o=l=null},e},c.debounce=function(n,r,i){var a,o,l=function(e,t){a=null,t&&(o=n.apply(e,t))},e=T(function(e){if(a&&clearTimeout(a),i){var t=!a;a=setTimeout(l,r),t&&(o=n.apply(this,e))}else a=c.delay(l,r,this,e);return o});return e.cancel=function(){clearTimeout(a),a=null},e},c.wrap=function(e,t){return c.partial(t,e)},c.negate=function(e){return function(){return!e.apply(this,arguments)}},c.compose=function(){var n=arguments,r=n.length-1;return function(){for(var e=r,t=n[r].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},c.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},c.before=function(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},c.once=c.partial(c.before,2),c.restArguments=T;var V=!{toString:null}.propertyIsEnumerable("toString"),M=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],w=function(e,t){var n=M.length,r=e.constructor,i=c.isFunction(r)&&r.prototype||o,a="constructor";for(I(e,a)&&!c.contains(t,a)&&t.push(a);n--;)(a=M[n])in e&&e[a]!==i[a]&&!c.contains(t,a)&&t.push(a)};c.keys=function(e){if(!c.isObject(e))return[];if(l)return l(e);var t=[];for(var n in e)I(e,n)&&t.push(n);return V&&w(e,t),t},c.allKeys=function(e){if(!c.isObject(e))return[];var t=[];for(var n in e)t.push(n);return V&&w(e,t),t},c.values=function(e){for(var t=c.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r},c.mapObject=function(e,t,n){t=S(t,n);for(var r=c.keys(e),i=r.length,a={},o=0;o<i;o++){var l=r[o];a[l]=t(e[l],l,e)}return a},c.pairs=function(e){for(var t=c.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r},c.invert=function(e){for(var t={},n=c.keys(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t},c.functions=c.methods=function(e){var t=[];for(var n in e)c.isFunction(e[n])&&t.push(n);return t.sort()};var b=function(u,E){return function(e){var t=arguments.length;if(E&&(e=Object(e)),t<2||null==e)return e;for(var n=1;n<t;n++)for(var r=arguments[n],i=u(r),a=i.length,o=0;o<a;o++){var l=i[o];E&&void 0!==e[l]||(e[l]=r[l])}return e}};c.extend=b(c.allKeys),c.extendOwn=c.assign=b(c.keys),c.findKey=function(e,t,n){t=S(t,n);for(var r,i=c.keys(e),a=0,o=i.length;a<o;a++)if(t(e[r=i[a]],r,e))return r};var U,Y,H=function(e,t,n){return t in n};c.pick=T(function(e,t){var n={},r=t[0];if(null==e)return n;c.isFunction(r)?(1<t.length&&(r=f(r,t[1])),t=c.allKeys(e)):(r=H,t=N(t,!1,!1),e=Object(e));for(var i=0,a=t.length;i<a;i++){var o=t[i],l=e[o];r(l,o,e)&&(n[o]=l)}return n}),c.omit=T(function(e,n){var t,r=n[0];return c.isFunction(r)?(r=c.negate(r),1<n.length&&(t=n[1])):(n=c.map(N(n,!1,!1),String),r=function(e,t){return!c.contains(n,t)}),c.pick(e,r,t)}),c.defaults=b(c.allKeys,!0),c.create=function(e,t){var n=p(e);return t&&c.extendOwn(n,t),n},c.clone=function(e){return c.isObject(e)?c.isArray(e)?e.slice():c.extend({},e):e},c.tap=function(e,t){return t(e),e},c.isMatch=function(e,t){var n=c.keys(t),r=n.length;if(null==e)return!r;for(var i=Object(e),a=0;a<r;a++){var o=n[a];if(t[o]!==i[o]||!(o in i))return!1}return!0},U=function(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&Y(e,t,n,r)},Y=function(e,t,n,r){e instanceof c&&(e=e._wrapped),t instanceof c&&(t=t._wrapped);var i=s.call(e);if(i!==s.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return _.valueOf.call(e)===_.valueOf.call(t)}var a="[object Array]"===i;if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,l=t.constructor;if(o!==l&&!(c.isFunction(o)&&o instanceof o&&c.isFunction(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var u=(n=n||[]).length;u--;)if(n[u]===e)return r[u]===t;if(n.push(e),r.push(t),a){if((u=e.length)!==t.length)return!1;for(;u--;)if(!U(e[u],t[u],n,r))return!1}else{var E,d=c.keys(e);if(u=d.length,c.keys(t).length!==u)return!1;for(;u--;)if(E=d[u],!I(t,E)||!U(e[E],t[E],n,r))return!1}return n.pop(),r.pop(),!0},c.isEqual=function(e,t){return U(e,t)},c.isEmpty=function(e){return null==e||(L(e)&&(c.isArray(e)||c.isString(e)||c.isArguments(e))?0===e.length:0===c.keys(e).length)},c.isElement=function(e){return!(!e||1!==e.nodeType)},c.isArray=n||function(e){return"[object Array]"===s.call(e)},c.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},c.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){c["is"+t]=function(e){return s.call(e)==="[object "+t+"]"}}),c.isArguments(arguments)||(c.isArguments=function(e){return I(e,"callee")});var K=e.document&&e.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof K&&(c.isFunction=function(e){return"function"==typeof e||!1}),c.isFinite=function(e){return!c.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},c.isNaN=function(e){return c.isNumber(e)&&isNaN(e)},c.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===s.call(e)},c.isNull=function(e){return null===e},c.isUndefined=function(e){return void 0===e},c.has=function(e,t){if(!c.isArray(t))return I(e,t);for(var n=t.length,r=0;r<n;r++){var i=t[r];if(null==e||!a.call(e,i))return!1;e=e[i]}return!!n},c.noConflict=function(){return e._=t,this},c.identity=function(e){return e},c.constant=function(e){return function(){return e}},c.noop=function(){},c.property=function(t){return c.isArray(t)?function(e){return h(e,t)}:D(t)},c.propertyOf=function(t){return null==t?function(){}:function(e){return c.isArray(e)?h(t,e):t[e]}},c.matcher=c.matches=function(t){return t=c.extendOwn({},t),function(e){return c.isMatch(e,t)}},c.times=function(e,t,n){var r=Array(Math.max(0,e));t=f(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r},c.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},c.now=Date.now||function(){return(new Date).getTime()};var F={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},k=c.invert(F),G=function(t){var n=function(e){return t[e]},e="(?:"+c.keys(t).join("|")+")",r=RegExp(e),i=RegExp(e,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,n):e}};c.escape=G(F),c.unescape=G(k),c.result=function(e,t,n){c.isArray(t)||(t=[t]);var r=t.length;if(!r)return c.isFunction(n)?n.call(e):n;for(var i=0;i<r;i++){var a=null==e?void 0:e[t[i]];void 0===a&&(a=n,i=r),e=c.isFunction(a)?a.call(e):a}return e};var B=0;c.uniqueId=function(e){var t=++B+"";return e?e+t:t},c.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var x=/(.)^/,j={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},W=/\\|'|\r|\n|\u2028|\u2029/g,q=function(e){return"\\"+j[e]};c.template=function(a,e,t){!e&&t&&(e=t),e=c.defaults({},e,c.templateSettings);var n,r=RegExp([(e.escape||x).source,(e.interpolate||x).source,(e.evaluate||x).source].join("|")+"|$","g"),o=0,l="__p+='";a.replace(r,function(e,t,n,r,i){return l+=a.slice(o,i).replace(W,q),o=i+e.length,t?l+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":n?l+="'+\n((__t=("+n+"))==null?'':__t)+\n'":r&&(l+="';\n"+r+"\n__p+='"),e}),l+="';\n",e.variable||(l="with(obj||{}){\n"+l+"}\n"),l="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+l+"return __p;\n";try{n=new Function(e.variable||"obj","_",l)}catch(e){throw e.source=l,e}var i=function(e){return n.call(this,e,c)},u=e.variable||"obj";return i.source="function("+u+"){\n"+l+"}",i},c.chain=function(e){var t=c(e);return t._chain=!0,t};var Q=function(e,t){return e._chain?c(t).chain():t};c.mixin=function(n){return c.each(c.functions(n),function(e){var t=c[e]=n[e];c.prototype[e]=function(){var e=[this._wrapped];return i.apply(e,arguments),Q(this,t.apply(c,e))}}),c},c.mixin(c),c.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=r[t];c.prototype[t]=function(){var e=this._wrapped;return n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],Q(this,e)}}),c.each(["concat","join","slice"],function(e){var t=r[e];c.prototype[e]=function(){return Q(this,t.apply(this._wrapped,arguments))}}),c.prototype.value=function(){return this._wrapped},c.prototype.valueOf=c.prototype.toJSON=c.prototype.value,c.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return c})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[2]);
//google_ima.js-4.40.0
!function a(i,l,d){function u(n,e){if(!l[n]){if(!i[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(s)return s(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var o=l[n]={exports:{}};i[n][0].call(o.exports,function(e){return u(i[n][1][e]||e)},o,o.exports,a,i,l,d)}return l[n].exports}for(var s="function"==typeof require&&require,e=0;e<d.length;e++)u(d[e]);return u}({1:[function(e,n,t){OO||(OO={})},{}],2:[function(e,n,t){e("./InitOO.js"),window._||(window._=e("underscore")),OO._||(OO._=window._.noConflict())},{"./InitOO.js":1,underscore:5}],3:[function(e,n,t){var r,o;r=OO,o=OO._,r.STATE={LOADING:"loading",READY:"ready",PLAYING:"playing",PAUSED:"paused",BUFFERING:"buffering",ERROR:"error",DESTROYED:"destroyed",__end_marker:!0},r.EVENTS={PLAYER_CREATED:"playerCreated",PLAYER_EMBEDDED:"playerEmbedded",SET_EMBED_CODE:"setEmbedCode",HEVC_CHECKED:"hevcChecked",SET_EMBED_CODE_AFTER_OOYALA_AD:"setEmbedCodeAfterOoyalaAd",EMBED_CODE_CHANGED:"embedCodeChanged",SET_ASSET:"setAsset",ASSET_CHANGED:"assetChanged",UPDATE_ASSET:"updateAsset",ASSET_UPDATED:"assetUpdated",AUTH_TOKEN_CHANGED:"authTokenChanged",GUID_SET:"guidSet",WILL_FETCH_PLAYER_XML:"willFetchPlayerXml",PLAYER_XML_FETCHED:"playerXmlFetched",WILL_FETCH_CONTENT_TREE:"willFetchContentTree",SAVE_PLAYER_SETTINGS:"savePlayerSettings",CONTENT_TREE_FETCHED:"contentTreeFetched",WILL_FETCH_METADATA:"willFetchMetadata",METADATA_FETCHED:"metadataFetched",SKIN_METADATA_FETCHED:"skinMetadataFetched",THUMBNAILS_FETCHED:"thumbnailsFetched",WILL_FETCH_AUTHORIZATION:"willFetchAuthorization",AUTHORIZATION_FETCHED:"authorizationFetched",WILL_FETCH_AD_AUTHORIZATION:"willFetchAdAuthorization",AD_AUTHORIZATION_FETCHED:"adAuthorizationFetched",CAN_SEEK:"canSeek",WILL_RESUME_MAIN_VIDEO:"willResumeMainVideo",PLAYBACK_READY:"playbackReady",INITIAL_PLAY:"initialPlay",WILL_PLAY:"willPlay",REPLAY:"replay",SET_PLAYBACK_SPEED:"setPlaybackSpeed",PLAYBACK_SPEED_CHANGED:"playbackSpeedChanged",PLAYHEAD_TIME_CHANGED:"playheadTimeChanged",BUFFERING:"buffering",BUFFERED:"buffered",DOWNLOADING:"downloading",BITRATE_INFO_AVAILABLE:"bitrateInfoAvailable",SET_TARGET_BITRATE:"setTargetBitrate",BITRATE_CHANGED:"bitrateChanged",CLOSED_CAPTIONS_INFO_AVAILABLE:"closedCaptionsInfoAvailable",SET_CLOSED_CAPTIONS_LANGUAGE:"setClosedCaptionsLanguage",SKIN_UI_LANGUAGE:"skinUiLanguage",CLOSED_CAPTION_CUE_CHANGED:"closedCaptionCueChanged",ASSET_DIMENSION:"assetDimension",SCRUBBING:"scrubbing",SCRUBBED:"scrubbed",SEEK:"seek",SEEKED:"seeked",PLAY:"play",PLAYING:"playing",PLAY_FAILED:"playFailed",PAUSE:"pause",PAUSED:"paused",PLAYED:"played",DISPLAY_CUE_POINTS:"displayCuePoints",INSERT_CUE_POINT:"insertCuePoint",RESET_CUE_POINTS:"resetCuePoints",WILL_CHANGE_FULLSCREEN:"willChangeFullscreen",FULLSCREEN_CHANGED:"fullscreenChanged",SIZE_CHANGED:"sizeChanged",CHANGE_VOLUME:"changeVolume",VOLUME_CHANGED:"volumeChanged",CHANGE_MUTE_STATE:"changeMuteState",MUTE_STATE_CHANGED:"muteStateChanged",CONTROLS_SHOWN:"controlsShown",CONTROLS_HIDDEN:"controlsHidden",END_SCREEN_SHOWN:"endScreenShown",ERROR:"error",API_ERROR:"apiError",BITRATE_INITIAL:"bitrateInitial",BITRATE_FIVE_SEC:"bitrateFiveSec",BITRATE_STABLE:"bitrateStable",PLAYBACK_START_ERROR:"playbackStartError",PLAYBACK_MIDSTREAM_ERROR:"playbackMidstreamError",PLUGIN_LOADED:"pluginLoaded",VC_PLUGIN_ERROR:"videoPluginError",INITIAL_PLAY_STARTING:"initialPlayStarting",REQUEST_PREVIOUS_VIDEO:"requestPreviousVideo",REQUEST_NEXT_VIDEO:"requestNextVideo",POSITION_IN_PLAYLIST_DETERMINED:"positionInPlaylistDetermined",DESTROY:"destroy",WILL_PLAY_FROM_BEGINNING:"willPlayFromBeginning",DISABLE_PLAYBACK_CONTROLS:"disablePlaybackControls",ENABLE_PLAYBACK_CONTROLS:"enablePlaybackControls",VC_READY:"videoControllerReady",VC_CREATE_VIDEO_ELEMENT:"videoControllerCreateVideoElement",VC_UPDATE_ELEMENT_STREAM:"videoControllerUpdateElementStream",VC_VIDEO_ELEMENT_CREATED:"videoControllerVideoElementCreated",VC_FOCUS_VIDEO_ELEMENT:"videoControllerFocusVideoElement",VC_VIDEO_ELEMENT_IN_FOCUS:"videoControllerVideoElementInFocus",VC_VIDEO_ELEMENT_LOST_FOCUS:"videoControllerVideoElementLostFocus",VC_DISPOSE_VIDEO_ELEMENT:"videoControllerDisposeVideoElement",VC_VIDEO_ELEMENT_DISPOSED:"videoControllerVideoElementDisposed",VC_SET_VIDEO_STREAMS:"videoControllerSetVideoStreams",VC_ERROR:"videoControllerError",VC_SET_INITIAL_TIME:"videoSetInitialTime",VC_PLAY:"videoPlay",PLAY_VIDEO_ELEMENT:"playVideoElement",VC_WILL_PLAY:"videoWillPlay",VC_PLAYING:"videoPlaying",VC_PLAYED:"videoPlayed",VC_PLAY_FAILED:"videoPlayFailed",VC_PAUSE:"videoPause",VC_PAUSED:"videoPaused",VC_SEEK:"videoSeek",VC_SEEKING:"videoSeeking",VC_SEEKED:"videoSeeked",VC_PRELOAD:"videoPreload",VC_RELOAD:"videoReload",VC_PRIME_VIDEOS:"videoPrimeVideos",VC_TAG_FOUND:"videoTagFound",INITIAL_PLAY_STARTING:"initialPlayStarting",AD_SDK_LOADED:"adSdkLoaded",AD_SDK_LOAD_FAILED:"adSdkLoadFailed",AD_REQUEST:"adRequest",AD_REQUEST_SUCCESS:"adRequestSuccess",AD_REQUEST_ERROR:"adRequestError",AD_REQUEST_EMPTY:"adRequestEmpty",AD_PLAYBACK_ERROR:"adPlaybackError",AD_SDK_IMPRESSION:"adSdkImpression",AD_COMPLETED:"adCompleted",WILL_FETCH_ADS:"willFetchAds",DISABLE_SEEKING:"disableSeeking",ENABLE_SEEKING:"enableSeeking",WILL_PLAY_ADS:"willPlayAds",WILL_PLAY_SINGLE_AD:"willPlaySingleAd",WILL_PAUSE_ADS:"willPauseAds",WILL_RESUME_ADS:"willResumeAds",WILL_PLAY_NONLINEAR_AD:"willPlayNonlinearAd",PLAY_NONLINEAR_AD:"playNonlinearAd",NONLINEAR_AD_DISPLAYED:"nonlinearAdDisplayed",ADS_PLAYED:"adsPlayed",SINGLE_AD_PLAYED:"singleAdPlayed",ADS_ERROR:"adsError",ADS_CLICKED:"adsClicked",FIRST_AD_FETCHED:"firstAdFetched",AD_CONFIG_READY:"adConfigReady",WILL_SHOW_COMPANION_ADS:"willShowCompanionAds",AD_FETCH_FAILED:"adFetchFailed",MIDROLL_PLAY_FAILED:"midrollPlayFailed",SKIP_AD:"skipAd",UPDATE_AD_COUNTDOWN:"updateAdCountdown",REPORT_EXPERIMENT_VARIATIONS:"reportExperimentVariations",FETCH_STYLE:"fetchStyle",STYLE_FETCHED:"styleFetched",SET_STYLE:"setStyle",USE_SERVER_SIDE_HLS_ADS:"useServerSideHlsAds",LOAD_ALL_VAST_ADS:"loadAllVastAds",ADS_FILTERED:"adsFiltered",ADS_MANAGER_HANDLING_ADS:"adsManagerHandlingAds",ADS_MANAGER_FINISHED_ADS:"adsManagerFinishedAds",OVERLAY_RENDERING:"overlayRendering",SHOW_AD_CONTROLS:"showAdControls",SHOW_AD_MARQUEE:"showAdMarquee",SDK_AD_EVENT:"sdkAdEvent",PAGE_UNLOAD_REQUESTED:"pageUnloadRequested",PAGE_PROBABLY_UNLOADING:"pageProbablyUnloading",REPORT_DISCOVERY_IMPRESSION:"reportDiscoveryImpression",REPORT_DISCOVERY_CLICK:"reportDiscoveryClick",DISCOVERY_API:{SEND_DISPLAY_EVENT:"sendDisplayEvent",SEND_CLICK_EVENT:"sendClickEvent"},PLAYLISTS_READY:"playlistReady",VIDEO_TYPE_CHANGED:"videoTypeChanged",UI_READY:"uiReady",__end_marker:!0},r.ERROR={API:{NETWORK:"network",SAS:{GENERIC:"sas",GEO:"geo",DOMAIN:"domain",FUTURE:"future",PAST:"past",DEVICE:"device",PROXY:"proxy",CONCURRENT_STREAMS:"concurrent_streams",INVALID_HEARTBEAT:"invalid_heartbeat",ERROR_DEVICE_INVALID_AUTH_TOKEN:"device_invalid_auth_token",ERROR_DEVICE_LIMIT_REACHED:"device_limit_reached",ERROR_DEVICE_BINDING_FAILED:"device_binding_failed",ERROR_DEVICE_ID_TOO_LONG:"device_id_too_long",ERROR_DRM_RIGHTS_SERVER_ERROR:"drm_server_error",ERROR_DRM_GENERAL_FAILURE:"drm_general_failure",ERROR_INVALID_ENTITLEMENTS:"invalid_entitlements"},CONTENT_TREE:"content_tree",METADATA:"metadata"},PLAYBACK:{GENERIC:"playback",STREAM:"stream",LIVESTREAM:"livestream",NETWORK:"network_error"},CHROMECAST:{MANIFEST:"chromecast_manifest",MEDIAKEYS:"chromecast_mediakeys",NETWORK:"chromecast_network",PLAYBACK:"chromecast_playback"},UNPLAYABLE_CONTENT:"unplayable_content",INVALID_EXTERNAL_ID:"invalid_external_id",EMPTY_CHANNEL:"empty_channel",EMPTY_CHANNEL_SET:"empty_channel_set",CHANNEL_CONTENT:"channel_content",VC:{UNSUPPORTED_ENCODING:"unsupported_encoding",UNABLE_TO_CREATE_VIDEO_ELEMENT:"unable_to_create_video_element"},MEDIA:{MEDIA_ERR_ABORTED:"aborted",MEDIA_ERR_NETWORK:"network_error",MEDIA_ERR_DECODE:"decode_error",MEDIA_ERR_SRC_NOT_SUPPORTED:"unsupported_source"}},r.URLS={VAST_PROXY:o.template("http://player.ooyala.com/nuplayer/mobile_vast_ads_proxy?callback=<%=cb%>&embed_code=<%=embedCode%>&expires=<%=expires%>&tag_url=<%=tagUrl%>"),EXTERNAL_ID:o.template("<%=server%>/player_api/v1/content_tree/external_id/<%=pcode%>/<%=externalId%>"),CONTENT_TREE:o.template("<%=server%>/player_api/v1/content_tree/embed_code/<%=pcode%>/<%=embedCode%>"),METADATA:o.template("<%=server%>/player_api/v1/metadata/embed_code/<%=playerBrandingId%>/<%=embedCode%>?videoPcode=<%=pcode%>"),SAS:o.template("<%=server%>/player_api/v1/authorization/embed_code/<%=pcode%>/<%=embedCode%>"),ANALYTICS:o.template("<%=server%>/reporter.js"),THUMBNAILS:o.template("<%=server%>/api/v1/thumbnail_images/<%=embedCode%>"),__end_marker:!0},r.TRACKING_LEVEL={DEFAULT:"default",ANONYMOUS:"anonymous",DISABLED:"disabled"},r.PLUGINS={ADS:"ads",VIDEO:"video",ANALYTICS:"analytics",PLAYLIST:"playlist",SKIN:"skin"},r.VIDEO={MAIN:"main",ADS:"ads",ENCODING:{DRM:{HLS:"hls_drm",DASH:"dash_drm"},AUDIO:"audio",AUDIO_OGG:"audio_ogg",AUDIO_M4A:"audio_m4a",AUDIO_HLS:"audio_hls",DASH:"dash",HDS:"hds",HLS:"hls",IMA:"ima",PULSE:"pulse",MP4:"mp4",YOUTUBE:"youtube",RTMP:"rtmp",SMOOTH:"smooth",WEBM:"webm",AKAMAI_HD_VOD:"akamai_hd_vod",AKAMAI_HD2_VOD_HLS:"akamai_hd2_vod_hls",AKAMAI_HD2_VOD_HDS:"akamai_hd2_vod_hds",AKAMAI_HD2_HDS:"akamai_hd2_hds",AKAMAI_HD2_HLS:"akamai_hd2_hls",FAXS_HLS:"faxs_hls",WIDEVINE_HLS:"wv_hls",WIDEVINE_MP4:"wv_mp4",WIDEVINE_WVM:"wv_wvm",UNKNOWN:"unknown"},FEATURE:{CLOSED_CAPTIONS:"closedCaptions",VIDEO_OBJECT_SHARING_GIVE:"videoObjectSharingGive",VIDEO_OBJECT_SHARING_TAKE:"videoObjectSharingTake",BITRATE_CONTROL:"bitrateControl"},TECHNOLOGY:{FLASH:"flash",HTML5:"html5",MIXED:"mixed",OTHER:"other"}},r.CSS={VISIBLE_POSITION:"0px",INVISIBLE_POSITION:"-100000px",VISIBLE_DISPLAY:"block",INVISIBLE_DISPLAY:"none",VIDEO_Z_INDEX:1e4,SUPER_Z_INDEX:2e4,ALICE_SKIN_Z_INDEX:11e3,OVERLAY_Z_INDEX:10500,TRANSPARENT_COLOR:"rgba(255, 255, 255, 0)",__end_marker:!0},r.TEMPLATES={RANDOM_PLACE_HOLDER:["[place_random_number_here]","<now>","[timestamp]","<rand-num>","[cache_buster]","[random]"],REFERAK_PLACE_HOLDER:["[referrer_url]","[LR_URL]","[description_url]"],EMBED_CODE_PLACE_HOLDER:["[oo_embedcode]"],MESSAGE:'                  <table width="100%" height="100%" bgcolor="black" style="padding-left:55px; padding-right:55px;                   background-color:black; color: white;">                  <tbody>                  <tr valign="middle">                  <td align="right"><span style="font-family:Arial; font-size:20px">                  <%= message %>                  </span></td></tr></tbody></table>                  ',__end_marker:!0},r.CONSTANTS={AD_PLAY_COUNT_KEY:"oo_ad_play_count",AD_ID_TO_PLAY_COUNT_DIVIDER:":",AD_PLAY_COUNT_DIVIDER:"|",MAX_AD_PLAY_COUNT_HISTORY_LENGTH:20,CONTROLS_BOTTOM_PADDING:10,SEEK_TO_END_LIMIT:3,PLAYER_TYPE:{VIDEO:"video",AUDIO:"audio"},HEVC_CODEC:{HEV1:"hev1",HVC1:"hvc1"},CLOSED_CAPTIONS:{SHOWING:"showing",HIDDEN:"hidden",DISABLED:"disabled"},OOYALA_PLAYER_SETTINGS_KEY:"ooyala_player_settings",PLAYBACK_SPEED:{MIN:.5,MAX:2},__end_marker:!0}},{}],4:[function(e,n,t){!function(l,a,o){l.getRandomString=function(){return Math.random().toString(36).substring(7)},l.safeClone=function(e){if(a.isNumber(e)||a.isString(e)||a.isBoolean(e)||a.isFunction(e)||a.isNull(e)||a.isUndefined(e))return e;var n=e instanceof Array?[]:{};try{o.extend(!0,n,e)}catch(e){l.log("deep clone error",e)}return n},l.d=function(){l.isDebug&&l.log.apply(l,arguments),l.$("#OOYALA_DEBUG_CONSOLE").append(JSON.stringify(l.safeClone(arguments))+"<br>")},l.inherit=function(e,n){if("function"!=typeof e)return l.log("invalid inherit, ParentClass need to be a class",e),null;var t=function(){e.apply(this,arguments),"function"==typeof n&&n.apply(this,arguments)},r=new e;return l._.extend(t.prototype,r),t.prototype.parentClass=r,t};var r={};l.attachStyle=function(e,n){var t=o('<style type="text/css">'+e+"</style>").appendTo("head");r[n]=r[n]||[],r[n].push(t)},l.removeStyles=function(e){l._.each(r[e],function(e){e.remove()})},l.getInnerProperty=function(e,n){for(var t=e,r=n;0<r.length;){var o=r.shift();if(a.isNull(t)||!a.isObject(t)||a.isFunction(t)||a.isArray(t))return null;t=t[o]}return t},l.formatSeconds=function(e){var n=parseInt(e,10)%60,t=parseInt(e/3600,10),r=parseInt((e-3600*t)/60,10);return t<10&&(t="0"+t),r<10&&(r="0"+r),n<10&&(n="0"+n),0<parseInt(t,10)?t+":"+r+":"+n:r+":"+n},l.timeStringToSeconds=function(e){var n=(e||"").split(":");return a.reduce(n,function(e,n){return 60*e+parseInt(n,10)},0)},l.leftPadding=function(e,n){for(var t=e?e.toString():"";t.length<n;)t="0"+t;return t},l.getColorString=function(e){return"#"+l.leftPadding(e.toString(16),6).toUpperCase()},l.hexToRgb=function(e){return[(16711680&e)>>16,(65280&e)>>8,255&e]},l.changeColor=function(e,n,t){var r=t?Math.max:Math.min,o=t?0:255,a=Math.round(255*n)*(t?-1:1),i=l.hexToRgb(e);return[l.leftPadding(r(i[0]+a,o).toString(16),2),l.leftPadding(r(i[1]+a,o).toString(16),2),l.leftPadding(r(i[2]+a,o).toString(16),2)].join("")},l.decode64=function(e){e=e.replace(/\n/g,"");var n,t="",r=0,o=[];if(window.atob)return atob(e);do{for(n=0;n<4;n++)o[n]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(r++));t+=String.fromCharCode(o[0]<<2|o[1]>>4,64==o[2]?0:(15&o[1])<<4|o[2]>>2,64==o[3]?0:(3&o[2])<<6|o[3])}while(r<e.length);return t.replace(/\0/g,"")},l.pixelPing=function(e){var n=new Image;n.onerror=n.onabort=function(){l.d("onerror:",e)},n.src=l.getNormalizedTagUrl(e)},l.pixelPings=function(e){a.isEmpty(e)||a.each(e,function(e){l.pixelPing(e)},this)},l.stringToBoolean=function(e){return"string"==typeof e?-1<e.toLowerCase().indexOf("true")||-1<e.toLowerCase().indexOf("yes"):!!e},l.regexEscape=function(e){return e.replace(/[<>()\[\]{}]/g,"\\$&")},l.getNormalizedTagUrl=function(r,e){var n=(new Date).getTime(),t=escape(document.URL),o=function(e,t){a.each(e,function(e){var n=new RegExp("("+l.regexEscape(e)+")","gi");r=r.replace(n,t)},this)};return o(l.TEMPLATES.RANDOM_PLACE_HOLDER,n),o(l.TEMPLATES.REFERAK_PLACE_HOLDER,t),e&&o(l.TEMPLATES.EMBED_CODE_PLACE_HOLDER,e),r},l.safeSeekRange=function(e){return{start:0<e.length?e.start(0):0,end:0<e.length?e.end(0):0}},l.loadedJS=l.loadedJS||{},l.jsOnSuccessList=l.jsOnSuccessList||{},l.safeFuncCall=function(e){if("function"==typeof e)try{e.apply()}catch(e){l.log("Can not invoke function!",e)}},l.loadScriptOnce=function(e,n,t,r){return l.jsOnSuccessList[e]=l.jsOnSuccessList[e]||[],l.loadedJS[e]?("loaded"===l.loadedJS[e]?l.safeFuncCall(n):"loading"===l.loadedJS[e]&&l.jsOnSuccessList[e].unshift(n),!1):(l.loadedJS[e]="loading",o.ajax({url:e,type:"GET",cache:!0,dataType:"script",timeout:r||15e3,success:function(){l.loadedJS[e]="loaded",l.jsOnSuccessList[e].unshift(n),l._.each(l.jsOnSuccessList[e],function(e){l.safeFuncCall(e)},this),l.jsOnSuccessList[e]=[]},error:function(){l.safeFuncCall(t)}}),!0)};try{l.localStorage=window.localStorage}catch(e){l.log(e)}l.localStorage||(l.localStorage={getItem:function(e){return e&&this.hasOwnProperty(e)?unescape(document.cookie.replace(new RegExp("(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*"),"$1")):null},key:function(e){return unescape(document.cookie.replace(/\s*\=(?:.(?!;))*$/,"").split(/\s*\=(?:[^;](?!;))*[^;]?;\s*/)[e])},setItem:function(e,n){e&&(document.cookie=escape(e)+"="+escape(n)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/",this.length=document.cookie.match(/\=/g).length)},length:0,removeItem:function(e){e&&this.hasOwnProperty(e)&&(document.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/",this.length--)},hasOwnProperty:function(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)}},l.localStorage.length=(document.cookie.match(/\=/g)||l.localStorage).length),l.setItem=function(e,n){try{l.localStorage.setItem(e,n)}catch(e){l.log(e)}},l.ensureNumber=function(e,n){var t;return(null===e||a.isArray(e))&&(e=NaN),t=a.isNumber(e)?e:Number(e),isFinite(t)?t:void 0===n?null:n},l.JSON=window.JSON}(OO,OO._,OO.$)},{}],5:[function(e,X,J){(function(z){!function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof z&&z.global===z&&z||this||{},n=e._,r=Array.prototype,i=Object.prototype,c="undefined"!=typeof Symbol?Symbol.prototype:null,o=r.push,d=r.slice,E=i.toString,a=i.hasOwnProperty,t=Array.isArray,l=Object.keys,u=Object.create,s=function(){},A=function(e){return e instanceof A?e:this instanceof A?void(this._wrapped=e):new A(e)};void 0===J||J.nodeType?e._=A:(void 0!==X&&!X.nodeType&&X.exports&&(J=X.exports=A),J._=A),A.VERSION="1.9.1";var f,_=function(o,a,e){if(void 0===a)return o;switch(null==e?3:e){case 1:return function(e){return o.call(a,e)};case 3:return function(e,n,t){return o.call(a,e,n,t)};case 4:return function(e,n,t,r){return o.call(a,e,n,t,r)}}return function(){return o.apply(a,arguments)}},p=function(e,n,t){return A.iteratee!==f?A.iteratee(e,n):null==e?A.identity:A.isFunction(e)?_(e,n,t):A.isObject(e)&&!A.isArray(e)?A.matcher(e):A.property(e)};A.iteratee=f=function(e,n){return p(e,n,1/0)};var g=function(o,a){return a=null==a?o.length-1:+a,function(){for(var e=Math.max(arguments.length-a,0),n=Array(e),t=0;t<e;t++)n[t]=arguments[t+a];switch(a){case 0:return o.call(this,n);case 1:return o.call(this,arguments[0],n);case 2:return o.call(this,arguments[0],arguments[1],n)}var r=Array(a+1);for(t=0;t<a;t++)r[t]=arguments[t];return r[a]=n,o.apply(this,r)}},T=function(e){if(!A.isObject(e))return{};if(u)return u(e);s.prototype=e;var n=new s;return s.prototype=null,n},O=function(n){return function(e){return null==e?void 0:e[n]}},I=function(e,n){return null!=e&&a.call(e,n)},m=function(e,n){for(var t=n.length,r=0;r<t;r++){if(null==e)return;e=e[n[r]]}return t?e:void 0},S=Math.pow(2,53)-1,h=O("length"),y=function(e){var n=h(e);return"number"==typeof n&&0<=n&&n<=S};A.each=A.forEach=function(e,n,t){var r,o;if(n=_(n,t),y(e))for(r=0,o=e.length;r<o;r++)n(e[r],r,e);else{var a=A.keys(e);for(r=0,o=a.length;r<o;r++)n(e[a[r]],a[r],e)}return e},A.map=A.collect=function(e,n,t){n=p(n,t);for(var r=!y(e)&&A.keys(e),o=(r||e).length,a=Array(o),i=0;i<o;i++){var l=r?r[i]:i;a[i]=n(e[l],l,e)}return a};var D=function(d){return function(e,n,t,r){var o=3<=arguments.length;return function(e,n,t,r){var o=!y(e)&&A.keys(e),a=(o||e).length,i=0<d?0:a-1;for(r||(t=e[o?o[i]:i],i+=d);0<=i&&i<a;i+=d){var l=o?o[i]:i;t=n(t,e[l],l,e)}return t}(e,_(n,r,4),t,o)}};A.reduce=A.foldl=A.inject=D(1),A.reduceRight=A.foldr=D(-1),A.find=A.detect=function(e,n,t){var r=(y(e)?A.findIndex:A.findKey)(e,n,t);if(void 0!==r&&-1!==r)return e[r]},A.filter=A.select=function(e,r,n){var o=[];return r=p(r,n),A.each(e,function(e,n,t){r(e,n,t)&&o.push(e)}),o},A.reject=function(e,n,t){return A.filter(e,A.negate(p(n)),t)},A.every=A.all=function(e,n,t){n=p(n,t);for(var r=!y(e)&&A.keys(e),o=(r||e).length,a=0;a<o;a++){var i=r?r[a]:a;if(!n(e[i],i,e))return!1}return!0},A.some=A.any=function(e,n,t){n=p(n,t);for(var r=!y(e)&&A.keys(e),o=(r||e).length,a=0;a<o;a++){var i=r?r[a]:a;if(n(e[i],i,e))return!0}return!1},A.contains=A.includes=A.include=function(e,n,t,r){return y(e)||(e=A.values(e)),("number"!=typeof t||r)&&(t=0),0<=A.indexOf(e,n,t)},A.invoke=g(function(e,t,r){var o,a;return A.isFunction(t)?a=t:A.isArray(t)&&(o=t.slice(0,-1),t=t[t.length-1]),A.map(e,function(e){var n=a;if(!n){if(o&&o.length&&(e=m(e,o)),null==e)return;n=e[t]}return null==n?n:n.apply(e,r)})}),A.pluck=function(e,n){return A.map(e,A.property(n))},A.where=function(e,n){return A.filter(e,A.matcher(n))},A.findWhere=function(e,n){return A.find(e,A.matcher(n))},A.max=function(e,r,n){var t,o,a=-1/0,i=-1/0;if(null==r||"number"==typeof r&&"object"!=typeof e[0]&&null!=e)for(var l=0,d=(e=y(e)?e:A.values(e)).length;l<d;l++)null!=(t=e[l])&&a<t&&(a=t);else r=p(r,n),A.each(e,function(e,n,t){o=r(e,n,t),(i<o||o===-1/0&&a===-1/0)&&(a=e,i=o)});return a},A.min=function(e,r,n){var t,o,a=1/0,i=1/0;if(null==r||"number"==typeof r&&"object"!=typeof e[0]&&null!=e)for(var l=0,d=(e=y(e)?e:A.values(e)).length;l<d;l++)null!=(t=e[l])&&t<a&&(a=t);else r=p(r,n),A.each(e,function(e,n,t){((o=r(e,n,t))<i||o===1/0&&a===1/0)&&(a=e,i=o)});return a},A.shuffle=function(e){return A.sample(e,1/0)},A.sample=function(e,n,t){if(null==n||t)return y(e)||(e=A.values(e)),e[A.random(e.length-1)];var r=y(e)?A.clone(e):A.values(e),o=h(r);n=Math.max(Math.min(n,o),0);for(var a=o-1,i=0;i<n;i++){var l=A.random(i,a),d=r[i];r[i]=r[l],r[l]=d}return r.slice(0,n)},A.sortBy=function(e,r,n){var o=0;return r=p(r,n),A.pluck(A.map(e,function(e,n,t){return{value:e,index:o++,criteria:r(e,n,t)}}).sort(function(e,n){var t=e.criteria,r=n.criteria;if(t!==r){if(r<t||void 0===t)return 1;if(t<r||void 0===r)return-1}return e.index-n.index}),"value")};var C=function(i,n){return function(r,o,e){var a=n?[[],[]]:{};return o=p(o,e),A.each(r,function(e,n){var t=o(e,n,r);i(a,e,t)}),a}};A.groupBy=C(function(e,n,t){I(e,t)?e[t].push(n):e[t]=[n]}),A.indexBy=C(function(e,n,t){e[t]=n}),A.countBy=C(function(e,n,t){I(e,t)?e[t]++:e[t]=1});var R=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;A.toArray=function(e){return e?A.isArray(e)?d.call(e):A.isString(e)?e.match(R):y(e)?A.map(e,A.identity):A.values(e):[]},A.size=function(e){return null==e?0:y(e)?e.length:A.keys(e).length},A.partition=C(function(e,n,t){e[t?0:1].push(n)},!0),A.first=A.head=A.take=function(e,n,t){return null==e||e.length<1?null==n?void 0:[]:null==n||t?e[0]:A.initial(e,e.length-n)},A.initial=function(e,n,t){return d.call(e,0,Math.max(0,e.length-(null==n||t?1:n)))},A.last=function(e,n,t){return null==e||e.length<1?null==n?void 0:[]:null==n||t?e[e.length-1]:A.rest(e,Math.max(0,e.length-n))},A.rest=A.tail=A.drop=function(e,n,t){return d.call(e,null==n||t?1:n)},A.compact=function(e){return A.filter(e,Boolean)};var v=function(e,n,t,r){for(var o=(r=r||[]).length,a=0,i=h(e);a<i;a++){var l=e[a];if(y(l)&&(A.isArray(l)||A.isArguments(l)))if(n)for(var d=0,u=l.length;d<u;)r[o++]=l[d++];else v(l,n,t,r),o=r.length;else t||(r[o++]=l)}return r};A.flatten=function(e,n){return v(e,n,!1)},A.without=g(function(e,n){return A.difference(e,n)}),A.uniq=A.unique=function(e,n,t,r){A.isBoolean(n)||(r=t,t=n,n=!1),null!=t&&(t=p(t,r));for(var o=[],a=[],i=0,l=h(e);i<l;i++){var d=e[i],u=t?t(d,i,e):d;n&&!t?(i&&a===u||o.push(d),a=u):t?A.contains(a,u)||(a.push(u),o.push(d)):A.contains(o,d)||o.push(d)}return o},A.union=g(function(e){return A.uniq(v(e,!0,!0))}),A.intersection=function(e){for(var n=[],t=arguments.length,r=0,o=h(e);r<o;r++){var a=e[r];if(!A.contains(n,a)){var i;for(i=1;i<t&&A.contains(arguments[i],a);i++);i===t&&n.push(a)}}return n},A.difference=g(function(e,n){return n=v(n,!0,!0),A.filter(e,function(e){return!A.contains(n,e)})}),A.unzip=function(e){for(var n=e&&A.max(e,h).length||0,t=Array(n),r=0;r<n;r++)t[r]=A.pluck(e,r);return t},A.zip=g(A.unzip),A.object=function(e,n){for(var t={},r=0,o=h(e);r<o;r++)n?t[e[r]]=n[r]:t[e[r][0]]=e[r][1];return t};var L=function(a){return function(e,n,t){n=p(n,t);for(var r=h(e),o=0<a?0:r-1;0<=o&&o<r;o+=a)if(n(e[o],o,e))return o;return-1}};A.findIndex=L(1),A.findLastIndex=L(-1),A.sortedIndex=function(e,n,t,r){for(var o=(t=p(t,r,1))(n),a=0,i=h(e);a<i;){var l=Math.floor((a+i)/2);t(e[l])<o?a=l+1:i=l}return a};var N=function(a,i,l){return function(e,n,t){var r=0,o=h(e);if("number"==typeof t)0<a?r=0<=t?t:Math.max(t+o,r):o=0<=t?Math.min(t+1,o):t+o+1;else if(l&&t&&o)return e[t=l(e,n)]===n?t:-1;if(n!=n)return 0<=(t=i(d.call(e,r,o),A.isNaN))?t+r:-1;for(t=0<a?r:o-1;0<=t&&t<o;t+=a)if(e[t]===n)return t;return-1}};A.indexOf=N(1,A.findIndex,A.sortedIndex),A.lastIndexOf=N(-1,A.findLastIndex),A.range=function(e,n,t){null==n&&(n=e||0,e=0),t||(t=n<e?-1:1);for(var r=Math.max(Math.ceil((n-e)/t),0),o=Array(r),a=0;a<r;a++,e+=t)o[a]=e;return o},A.chunk=function(e,n){if(null==n||n<1)return[];for(var t=[],r=0,o=e.length;r<o;)t.push(d.call(e,r,r+=n));return t};var P=function(e,n,t,r,o){if(!(r instanceof n))return e.apply(t,o);var a=T(e.prototype),i=e.apply(a,o);return A.isObject(i)?i:a};A.bind=g(function(n,t,r){if(!A.isFunction(n))throw new TypeError("Bind must be called on a function");var o=g(function(e){return P(n,o,t,this,r.concat(e))});return o}),A.partial=g(function(o,a){var i=A.partial.placeholder,l=function(){for(var e=0,n=a.length,t=Array(n),r=0;r<n;r++)t[r]=a[r]===i?arguments[e++]:a[r];for(;e<arguments.length;)t.push(arguments[e++]);return P(o,l,this,this,t)};return l}),(A.partial.placeholder=A).bindAll=g(function(e,n){var t=(n=v(n,!1,!1)).length;if(t<1)throw new Error("bindAll must be passed function names");for(;t--;){var r=n[t];e[r]=A.bind(e[r],e)}}),A.memoize=function(r,o){var a=function(e){var n=a.cache,t=""+(o?o.apply(this,arguments):e);return I(n,t)||(n[t]=r.apply(this,arguments)),n[t]};return a.cache={},a},A.delay=g(function(e,n,t){return setTimeout(function(){return e.apply(null,t)},n)}),A.defer=A.partial(A.delay,A,1),A.throttle=function(t,r,o){var a,i,l,d,u=0;o||(o={});var s=function(){u=!1===o.leading?0:A.now(),a=null,d=t.apply(i,l),a||(i=l=null)},e=function(){var e=A.now();u||!1!==o.leading||(u=e);var n=r-(e-u);return i=this,l=arguments,n<=0||r<n?(a&&(clearTimeout(a),a=null),u=e,d=t.apply(i,l),a||(i=l=null)):a||!1===o.trailing||(a=setTimeout(s,n)),d};return e.cancel=function(){clearTimeout(a),u=0,a=i=l=null},e},A.debounce=function(t,r,o){var a,i,l=function(e,n){a=null,n&&(i=t.apply(e,n))},e=g(function(e){if(a&&clearTimeout(a),o){var n=!a;a=setTimeout(l,r),n&&(i=t.apply(this,e))}else a=A.delay(l,r,this,e);return i});return e.cancel=function(){clearTimeout(a),a=null},e},A.wrap=function(e,n){return A.partial(n,e)},A.negate=function(e){return function(){return!e.apply(this,arguments)}},A.compose=function(){var t=arguments,r=t.length-1;return function(){for(var e=r,n=t[r].apply(this,arguments);e--;)n=t[e].call(this,n);return n}},A.after=function(e,n){return function(){if(--e<1)return n.apply(this,arguments)}},A.before=function(e,n){var t;return function(){return 0<--e&&(t=n.apply(this,arguments)),e<=1&&(n=null),t}},A.once=A.partial(A.before,2),A.restArguments=g;var M=!{toString:null}.propertyIsEnumerable("toString"),V=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],b=function(e,n){var t=V.length,r=e.constructor,o=A.isFunction(r)&&r.prototype||i,a="constructor";for(I(e,a)&&!A.contains(n,a)&&n.push(a);t--;)(a=V[t])in e&&e[a]!==o[a]&&!A.contains(n,a)&&n.push(a)};A.keys=function(e){if(!A.isObject(e))return[];if(l)return l(e);var n=[];for(var t in e)I(e,t)&&n.push(t);return M&&b(e,n),n},A.allKeys=function(e){if(!A.isObject(e))return[];var n=[];for(var t in e)n.push(t);return M&&b(e,n),n},A.values=function(e){for(var n=A.keys(e),t=n.length,r=Array(t),o=0;o<t;o++)r[o]=e[n[o]];return r},A.mapObject=function(e,n,t){n=p(n,t);for(var r=A.keys(e),o=r.length,a={},i=0;i<o;i++){var l=r[i];a[l]=n(e[l],l,e)}return a},A.pairs=function(e){for(var n=A.keys(e),t=n.length,r=Array(t),o=0;o<t;o++)r[o]=[n[o],e[n[o]]];return r},A.invert=function(e){for(var n={},t=A.keys(e),r=0,o=t.length;r<o;r++)n[e[t[r]]]=t[r];return n},A.functions=A.methods=function(e){var n=[];for(var t in e)A.isFunction(e[t])&&n.push(t);return n.sort()};var U=function(d,u){return function(e){var n=arguments.length;if(u&&(e=Object(e)),n<2||null==e)return e;for(var t=1;t<n;t++)for(var r=arguments[t],o=d(r),a=o.length,i=0;i<a;i++){var l=o[i];u&&void 0!==e[l]||(e[l]=r[l])}return e}};A.extend=U(A.allKeys),A.extendOwn=A.assign=U(A.keys),A.findKey=function(e,n,t){n=p(n,t);for(var r,o=A.keys(e),a=0,i=o.length;a<i;a++)if(n(e[r=o[a]],r,e))return r};var w,k,F=function(e,n,t){return n in t};A.pick=g(function(e,n){var t={},r=n[0];if(null==e)return t;A.isFunction(r)?(1<n.length&&(r=_(r,n[1])),n=A.allKeys(e)):(r=F,n=v(n,!1,!1),e=Object(e));for(var o=0,a=n.length;o<a;o++){var i=n[o],l=e[i];r(l,i,e)&&(t[i]=l)}return t}),A.omit=g(function(e,t){var n,r=t[0];return A.isFunction(r)?(r=A.negate(r),1<t.length&&(n=t[1])):(t=A.map(v(t,!1,!1),String),r=function(e,n){return!A.contains(t,n)}),A.pick(e,r,n)}),A.defaults=U(A.allKeys,!0),A.create=function(e,n){var t=T(e);return n&&A.extendOwn(t,n),t},A.clone=function(e){return A.isObject(e)?A.isArray(e)?e.slice():A.extend({},e):e},A.tap=function(e,n){return n(e),e},A.isMatch=function(e,n){var t=A.keys(n),r=t.length;if(null==e)return!r;for(var o=Object(e),a=0;a<r;a++){var i=t[a];if(n[i]!==o[i]||!(i in o))return!1}return!0},w=function(e,n,t,r){if(e===n)return 0!==e||1/e==1/n;if(null==e||null==n)return!1;if(e!=e)return n!=n;var o=typeof e;return("function"===o||"object"===o||"object"==typeof n)&&k(e,n,t,r)},k=function(e,n,t,r){e instanceof A&&(e=e._wrapped),n instanceof A&&(n=n._wrapped);var o=E.call(e);if(o!==E.call(n))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+n;case"[object Number]":return+e!=+e?+n!=+n:0==+e?1/+e==1/n:+e==+n;case"[object Date]":case"[object Boolean]":return+e==+n;case"[object Symbol]":return c.valueOf.call(e)===c.valueOf.call(n)}var a="[object Array]"===o;if(!a){if("object"!=typeof e||"object"!=typeof n)return!1;var i=e.constructor,l=n.constructor;if(i!==l&&!(A.isFunction(i)&&i instanceof i&&A.isFunction(l)&&l instanceof l)&&"constructor"in e&&"constructor"in n)return!1}r=r||[];for(var d=(t=t||[]).length;d--;)if(t[d]===e)return r[d]===n;if(t.push(e),r.push(n),a){if((d=e.length)!==n.length)return!1;for(;d--;)if(!w(e[d],n[d],t,r))return!1}else{var u,s=A.keys(e);if(d=s.length,A.keys(n).length!==d)return!1;for(;d--;)if(u=s[d],!I(n,u)||!w(e[u],n[u],t,r))return!1}return t.pop(),r.pop(),!0},A.isEqual=function(e,n){return w(e,n)},A.isEmpty=function(e){return null==e||(y(e)&&(A.isArray(e)||A.isString(e)||A.isArguments(e))?0===e.length:0===A.keys(e).length)},A.isElement=function(e){return!(!e||1!==e.nodeType)},A.isArray=t||function(e){return"[object Array]"===E.call(e)},A.isObject=function(e){var n=typeof e;return"function"===n||"object"===n&&!!e},A.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(n){A["is"+n]=function(e){return E.call(e)==="[object "+n+"]"}}),A.isArguments(arguments)||(A.isArguments=function(e){return I(e,"callee")});var G=e.document&&e.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof G&&(A.isFunction=function(e){return"function"==typeof e||!1}),A.isFinite=function(e){return!A.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},A.isNaN=function(e){return A.isNumber(e)&&isNaN(e)},A.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===E.call(e)},A.isNull=function(e){return null===e},A.isUndefined=function(e){return void 0===e},A.has=function(e,n){if(!A.isArray(n))return I(e,n);for(var t=n.length,r=0;r<t;r++){var o=n[r];if(null==e||!a.call(e,o))return!1;e=e[o]}return!!t},A.noConflict=function(){return e._=n,this},A.identity=function(e){return e},A.constant=function(e){return function(){return e}},A.noop=function(){},A.property=function(n){return A.isArray(n)?function(e){return m(e,n)}:O(n)},A.propertyOf=function(n){return null==n?function(){}:function(e){return A.isArray(e)?m(n,e):n[e]}},A.matcher=A.matches=function(n){return n=A.extendOwn({},n),function(e){return A.isMatch(e,n)}},A.times=function(e,n,t){var r=Array(Math.max(0,e));n=_(n,t,1);for(var o=0;o<e;o++)r[o]=n(o);return r},A.random=function(e,n){return null==n&&(n=e,e=0),e+Math.floor(Math.random()*(n-e+1))},A.now=Date.now||function(){return(new Date).getTime()};var Y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},H=A.invert(Y),x=function(n){var t=function(e){return n[e]},e="(?:"+A.keys(n).join("|")+")",r=RegExp(e),o=RegExp(e,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,t):e}};A.escape=x(Y),A.unescape=x(H),A.result=function(e,n,t){A.isArray(n)||(n=[n]);var r=n.length;if(!r)return A.isFunction(t)?t.call(e):t;for(var o=0;o<r;o++){var a=null==e?void 0:e[n[o]];void 0===a&&(a=t,o=r),e=A.isFunction(a)?a.call(e):a}return e};var j=0;A.uniqueId=function(e){var n=++j+"";return e?e+n:n},A.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var B=/(.)^/,W={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},K=/\\|'|\r|\n|\u2028|\u2029/g,q=function(e){return"\\"+W[e]};A.template=function(a,e,n){!e&&n&&(e=n),e=A.defaults({},e,A.templateSettings);var t,r=RegExp([(e.escape||B).source,(e.interpolate||B).source,(e.evaluate||B).source].join("|")+"|$","g"),i=0,l="__p+='";a.replace(r,function(e,n,t,r,o){return l+=a.slice(i,o).replace(K,q),i=o+e.length,n?l+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":t?l+="'+\n((__t=("+t+"))==null?'':__t)+\n'":r&&(l+="';\n"+r+"\n__p+='"),e}),l+="';\n",e.variable||(l="with(obj||{}){\n"+l+"}\n"),l="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+l+"return __p;\n";try{t=new Function(e.variable||"obj","_",l)}catch(e){throw e.source=l,e}var o=function(e){return t.call(this,e,A)},d=e.variable||"obj";return o.source="function("+d+"){\n"+l+"}",o},A.chain=function(e){var n=A(e);return n._chain=!0,n};var Q=function(e,n){return e._chain?A(n).chain():n};A.mixin=function(t){return A.each(A.functions(t),function(e){var n=A[e]=t[e];A.prototype[e]=function(){var e=[this._wrapped];return o.apply(e,arguments),Q(this,n.apply(A,e))}}),A},A.mixin(A),A.each(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=r[n];A.prototype[n]=function(){var e=this._wrapped;return t.apply(e,arguments),"shift"!==n&&"splice"!==n||0!==e.length||delete e[0],Q(this,e)}}),A.each(["concat","join","slice"],function(e){var n=r[e];A.prototype[e]=function(){return Q(this,n.apply(this._wrapped,arguments))}}),A.prototype.value=function(){return this._wrapped},A.prototype.valueOf=A.prototype.toJSON=A.prototype.value,A.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return A})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],6:[function(e,n,t){"use strict";function l(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(t.push(i.value),!n||t.length!==n);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return t}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var r=e("underscore"),ae=r.find,ie=r.isFinite,le=r.filter,de=r.delay,ue=r.each,se=r.contains,s=r.pairs;e("../html5-common/js/utils/InitModules/InitOOUnderscore.js"),e("../html5-common/js/utils/constants.js"),e("../html5-common/js/utils/utils.js"),function(d){var oe={};OO.Ads.manager(function(){var te=function(e){throw new Error("GOOGLE IMA: ".concat(e))},re=function(){return!(OO.iosMajorVersion<10&&OO.isIphone)};return new function(){var f=this;this.name="google-ima-ads-manager",this.ready=!1,this.runningUnitTests=!1,this.sharedVideoElement=null,this.initTime=Date.now(),this.enableIosSkippableAds=!1,this.mutedFirstPlay=!1;var _,p,i,g,n,a,T,O=null,t=!1,I=null,m=null,S=null,r=!1,o=null,l=null,d={left:OO.CSS.INVISIBLE_POSITION,visibility:"hidden"},u="ooyalaImaPluginTimeout",s=function(){_?_.currentTime=0:_={duration:0,currentTime:0}},c=function(){f.ready=!1,p=!0,f.startImaOnVtcPlay=!1,f.capturedUserClick=!1,f.initialPlayRequestTime=-1,f.adRequestTime=-1,f.adResponseTime=-1,f.mainContentDuration=0,f.initialPlayRequested=!1,f.canSetupAdsRequest=!0,f.adTagUrl=null,f.currentMedia=null,f.currentImpressionTime=0,f.adFinalTagUrl=null,f.adPosition=-1,f.adsReady=!1,f.additionalAdTagParameters=null,f.adsRequested=!1,f.adsRequestTimeoutRef=null,f.disableFlashAds=!1,f.contentEnded=!1,f.pauseAdOnClick=null,f.isFullscreen=!1,f.maxAdsRequestTimeout=15e3,f.uiRegistered=!1,f.metadataReady=!1,f.allAdInfo=null,f.currentAMCAdPod=null,f.currentIMAAd=null,f.currentNonLinearIMAAd=null,f.isReplay=!1,f.requestAdsOnReplay=!0,f.preloadAds=!1,T=!1,s(),f.hasPreroll=!1,f.adPlaybackStarted=!1,f.savedVolume=-1,f.showAdControls=!1,f.useGoogleAdUI=!1,f.useGoogleCountdown=!1,f.useInsecureVpaidMode=!1,f.imaIframeZIndex=10004,f.mutedFirstPlay=!1,f.adRulesLoadError=!1,n=!1,a=g=i=l=o=null},e=function(e){if(!e)return!1;var n=e.tag_url,t="r"===e.position_type;return p===t&&n&&"string"==typeof n},E=function(){return f.allAdInfo?le(f.allAdInfo,e):null},h=function(){var e=!1,n=p&&!f.hasPreroll&&f.currentAMCAdPod&&f.currentAMCAdPod.adType===O.ADTYPE.UNKNOWN_AD_REQUEST;return f.willPlayAdMuted()&&f.videoControllerWrapper&&!n&&(f.startImaOnVtcPlay=!0,f.videoControllerWrapper.raiseUnmutedPlaybackFailed(),e=!0),e},A=function(){!1===f.contentEnded&&(f.contentEnded=!0,i&&i.contentComplete())},y=function(e,n,t){_||s(),T||(_.currentTime=n,_.duration=t)},D=function(){!function(){if(g&&m){var e=f.isFullscreen?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL,n=m.clientWidth,t=m.clientHeight;f.currentAMCAdPod&&f.currentNonLinearIMAAd&&(f.currentAMCAdPod.width&&(n=f.currentAMCAdPod.width,f.currentAMCAdPod.paddingWidth&&(n+=f.currentAMCAdPod.paddingWidth)),f.currentAMCAdPod.height&&(t=f.currentAMCAdPod.height,f.currentAMCAdPod.paddingHeight&&(t+=f.currentAMCAdPod.paddingHeight))),g.resize(n,t,e)}}()},C=function(e,n){f.isFullscreen=n,D()},R=function(){return google&&google.ima&&google.ima.AdDisplayContainer},v=function(){i&&(i.destroy(),i=null)},L=function(){g&&(g.stop(),g.destroy(),g=null,n=!1)},N=function(){p&&O&&O.adManagerDoneControllingAds(f.name)},P=function(){N(),L(),i&&i.contentComplete(),f.currentIMAAd=null,f.currentNonLinearIMAAd=null,f.adsRequested=!1};this.createAdVideoElementOnPlayerInit=function(){return[OO.VIDEO.ENCODING.IMA]};var M=function(){a&&f.metadataReady&&!f.ready&&(f.ready=!0,O.onAdManagerReady(),O.reportPluginLoaded(Date.now()-f.initTime,f.name))},V=function(){f.videoControllerWrapper&&f.videoControllerWrapper.raisePauseEvent()},b=function(e){if(e&&O.pageSettings.companionAd&&O.pageSettings.companionAd.slots){var n=O.pageSettings.companionAd.slots,t=[],r=null;ue(n,function(n){n.width&&n.height&&(r=e.getCompanionAds(n.width,n.height)).length&&ue(r,function(e){t.push({slotSize:"".concat(n.width,"x").concat(n.height),ad:e.getContent()})})}),t.length&&O.showCompanion(t)}},U=function(){m&&null!=S&&m.setAttribute("style",S),S=null},w=function(){clearInterval(I),I=null},k=function(){var e=null;return m&&(e=m.querySelector("iframe")),e},F=function(){var e=k();e&&e.style&&(e.style.display="none")},G=function(e){OO.log("Google IMA Ad playthrough",e.type)},Y=function(){f.contentEnded=!1,N(),P(),s()},H=function(e){if(f.currentAMCAdPod){var n=f.currentAMCAdPod.id;f.currentAMCAdPod=null,T=!1,e?O.notifyPodEnded(n):(t=n,O.notifyNonlinearAdEnded(t),p||P())}var t},x=function(e){if(f.currentAMCAdPod)if(f.currentIMAAd){var n=f.currentIMAAd;if(f.currentIMAAd=null,n.isLinear()){var t=n.getAdPodInfo();t||(e&&H(!0),te("IMA ad returning bad value for this.currentIMAAd.getAdPodInfo().")),O.notifyLinearAdEnded(f.currentAMCAdPod.id);var r=t.getAdPosition(),o=t.getTotalAds();(!O.ui.useSingleVideoElement&&r===o||e)&&H(!0)}else H(f.currentAMCAdPod.isRequest)}else H(!0);U(),f.currentIMAAd=null,f.adPlaybackStarted=!1},j=function(){var e=null;return f.currentIMAAd&&f.currentAMCAdPod&&(f.currentIMAAd.isLinear()?(e=O.ADTYPE.LINEAR_VIDEO,function(){f.currentIMAAd||te("Trying to start linear ad and this.currentIMAAd is falsy"),f.currentAMCAdPod||te("Trying to start linear ad and this.currentAMCAdPod is falsy");var e=f.currentAMCAdPod.id,n={},t=1;n.indexInPod=1,n.name=null,n.duration=0,n.hasClickUrl=!1,n.skippable=!1;try{var r=f.currentIMAAd.getAdPodInfo();t=r.getTotalAds(),n.indexInPod=r.getAdPosition()}catch(e){te("IMA ad returning bad value for this.currentIMAAd.getAdPodInfo().")}"function"==typeof f.currentIMAAd.getTitle&&(n.name=f.currentIMAAd.getTitle()),"function"==typeof f.currentIMAAd.getDuration&&(n.duration=f.currentIMAAd.getDuration()),"function"==typeof f.currentIMAAd.isSkippable&&(n.skippable=f.currentIMAAd.isSkippable()),1===n.indexInPod&&O.notifyPodStarted(e,t),b(f.currentIMAAd),O.notifyLinearAdStarted(e,n)}()):(e=O.ADTYPE.NONLINEAR_OVERLAY,function(){f.currentAMCAdPod||te("Trying to start non linear overlay and this.currentAMCAdPod is falsy"),O.notifyPodStarted(f.currentAMCAdPod.id);var e={position_type:"t",forced_ad_type:O.ADTYPE.NONLINEAR_OVERLAY};b(f.currentIMAAd),x(!0),O.forceAdToPlay(f.name,e,O.ADTYPE.NONLINEAR_OVERLAY)}())),e},B=function(){OO.log("GOOGLE_IMA:: Content Resume Requested by Google IMA!"),x(!0)},W=function(e){if(clearTimeout(f.adsRequestTimeoutRef),p&&(f.adsReady||(f.adRulesLoadError=!0),N()),L(),e===u&&v(),e){var n="ERROR Google IMA";if(e.getError){var t=e.getError(),r=!1,o=!1,a=!1,i={vastErrorCode:t.getVastErrorCode(),innerErrorCode:t.getInnerError(),errorCode:t.getErrorCode()};OO.log("GOOGLE_IMA:: SDK Error received: Error Code List",JSON.stringify(i));var l=google.ima.AdError.ErrorCode;switch(i.vastErrorCode){case l.VAST_MEDIA_LOAD_TIMEOUT:case l.VAST_LOAD_TIMEOUT:r=!0;break;case l.VAST_NO_ADS_AFTER_WRAPPER:case l.VAST_EMPTY_RESPONSE:o=!0;break;case l.VAST_MEDIA_ERROR:case l.VIDEO_PLAY_ERROR:a=!0}i.errorCode===l.VIDEO_PLAY_ERROR&&(a=!0),O.onSdkAdEvent(f.name,e.type,{errorData:t}),o?O.onAdRequestEmpty(f.name,f.adPosition,f.adFinalTagUrl,i,t.getMessage()):a?O.onAdPlaybackError(f.name,f.adPosition,f.adFinalTagUrl,i,t.getMessage(),f.currentMedia):O.onAdRequestError(f.name,f.adPosition,f.adFinalTagUrl,i,t.getMessage(),r),n="ERROR Google SDK: ".concat(e.getError())}else n="ERROR Google IMA plugin: ".concat(e);O?O.raiseAdError(n):OO.log(n)}x(!0)},K=function(){OO.log("IMA Ad request timed out"),f.adsReady||W(u)},q=function(){if(!f.adsRequested&&f.canSetupAdsRequest&&f.adTagUrl&&f.uiRegistered&&O.currentEmbedCode&&i&&(!f.isReplay||f.requestAdsOnReplay)){google&&google.ima&&google.ima.settings&&google.ima.settings.setDisableFlashAds(f.disableFlashAds);var e=new google.ima.AdsRequest;if(f.additionalAdTagParameters){var n=0<f.adTagUrl.indexOf("?")?"&":"?",t=[];ue(f.additionalAdTagParameters,function(e,n){t.push("".concat(n,"=").concat(e))}),f.adTagUrl+=n+t.join("&")}e.adTagUrl=OO.getNormalizedTagUrl(f.adTagUrl,O.currentEmbedCode),f.adFinalTagUrl=e.adTagUrl;var r=O.ui.width,o=O.ui.height;e.linearAdSlotWidth=r,e.linearAdSlotHeight=o,e.nonLinearAdSlotWidth=r,e.nonLinearAdSlotHeight=o;var a=f.mutedFirstPlay||f.willPlayAdMuted();OO.log("IMA: setAdWillPlayMuted = ".concat(a)),e.setAdWillPlayMuted(a),P(),p&&O.adManagerWillControlAds(f.name),i.requestAds(e),f.adRequestTime=(new Date).valueOf(),O.onAdRequest(f.name,f.adPosition),f.runningUnitTests&&0===f.maxAdsRequestTimeout?K():f.adsRequestTimeoutRef=de(K,f.maxAdsRequestTimeout),f.adsRequested=!0}},Q=function(){var e=f.currentAMCAdPod&&o===f.currentAMCAdPod||p;if(g&&f.initialPlayRequested&&!n&&m&&e)try{!h()&&g&&(OO.log("Starting IMA Ads Manager"),g.start()),n=!(o=null),p&&!f.hasPreroll&&f.currentAMCAdPod&&0<f.currentAMCAdPod.duration&&f.currentAMCAdPod.adType===O.ADTYPE.UNKNOWN_AD_REQUEST&&(O.notifyPodStarted(f.currentAMCAdPod.id,1),x(!0))}catch(e){W(e)}},z=function(e){if(n=e,t=google.ima.AdEvent.Type,r=[t.COMPLETE,t.SKIPPED,t.FIRST_QUARTILE,t.MIDPOINT,t.PAUSED,t.RESUMED,t.THIRD_QUARTILE,t.USER_CLOSE],!n||!f.adPlaybackStarted&&se(r,n.type))OO.log("Ignoring IMA EVENT: ",e.type,e);else{var n,t,r;O.onSdkAdEvent(f.name,e.type,{adData:e.getAdData()});var o,a=google.ima.AdEvent.Type,i=e.getAd();switch(e.type){case a.LOADED:OO.log("GOOGLE_IMA:: starting playlist ad"),p&&(f.currentAMCAdPod&&f.currentNonLinearIMAAd&&f.cancelAd(f.currentAMCAdPod),S=m.getAttribute("style")||"",m.setAttribute("style","display: block; width: 100%; height: 100%; visibility: hidden; pointer-events: none;"),D(),h()),O.ui.useSingleVideoElement&&O.focusAdVideo(),f.currentMedia=i.getMediaUrl(),U();break;case a.STARTED:if(OO.isIos){var l=k();l&&l.style&&(l.style.display="block")}f.videoControllerWrapper&&f.requiresMutedAutoplay()&&f.videoControllerWrapper.raiseVolumeEvent(),f.adPlaybackStarted=!0,i.isLinear()?(T=!0,O.ui.useSingleVideoElement||O.focusAdVideo(),0<=f.savedVolume&&(f.setVolume(f.savedVolume),f.savedVolume=-1),O.hidePlayerUi(f.showAdControls,!1,f.autoHideAdControls),re()&&OO.isIphone&&!0===f.enableIosSkippableAds&&f.sharedVideoElement&&f.sharedVideoElement.webkitExitFullscreen()):f.currentNonLinearIMAAd=i,f.currentIMAAd=i,D(),j(),f.videoControllerWrapper&&(i.isLinear()&&f.videoControllerWrapper.raisePlayEvent(),f.videoControllerWrapper.raiseTimeUpdate(f.getCurrentTime(),f.getDuration()),w(),f.runningUnitTests||(I=setInterval(function(){T?f.videoControllerWrapper.raiseTimeUpdate(f.getCurrentTime(),f.getDuration()):w()},500))),p&&!i.isLinear()&&(o={position_type:"r",forced_ad_type:O.ADTYPE.NONLINEAR_OVERLAY},b(f.currentIMAAd),O.forceAdToPlay(f.name,o,O.ADTYPE.NONLINEAR_OVERLAY));break;case a.RESUMED:f.videoControllerWrapper&&i.isLinear()&&f.videoControllerWrapper.raisePlayEvent();break;case a.USER_CLOSE:case a.SKIPPED:case a.COMPLETE:OO.isIos&&F(),p&&(f.adResponseTime=(new Date).valueOf());var d=!1;e.type===a.SKIPPED&&(d=!0);var u=(new Date).valueOf()-f.currentImpressionTime;if(O.onAdCompleted(f.name,u,d,f.adFinalTagUrl),f.adPlaybackStarted=!1,f.videoControllerWrapper&&i&&i.isLinear()){w();var s=e.type===a.COMPLETE?f.getDuration():f.getCurrentTime();f.videoControllerWrapper.raiseTimeUpdate(s,f.getDuration()),f.videoControllerWrapper.raiseEndedEvent()}f.savedVolume=f.getVolume(),i&&i.isLinear()||(f.currentNonLinearIMAAd=null),x(!1),T=!1,G(e);break;case a.PAUSED:V();break;case a.ALL_ADS_COMPLETED:T=!1,OO.log("all google ima ads completed!"),N(),OO.isIos&&f.contentEnded&&O.isLastAdPlayed()&&B();break;case a.IMPRESSION:f.currentImpressionTime=(new Date).valueOf();var c=f.currentImpressionTime-f.adResponseTime,E="VAST";i&&i.g&&!0===i.g.vpaid&&(E="VPAID");var A="unknown";A=i&&i.isLinear()?0===i.getContentType().lastIndexOf("video",0)?O.ADTYPE.LINEAR_VIDEO:O.ADTYPE.LINEAR_OVERLAY:i&&0===i.getContentType().lastIndexOf("video",0)?O.ADTYPE.NONLINEAR_VIDEO:O.ADTYPE.NONLINEAR_OVERLAY,O.onAdSdkImpression(f.name,f.adPosition,c,E,A);break;case a.FIRST_QUARTILE:case a.MIDPOINT:case a.THIRD_QUARTILE:G(e);break;case a.VOLUME_CHANGED:case a.VOLUME_MUTED:e.type!==a.VOLUME_MUTED||f.adPlaybackStarted||g.resume(),f.videoControllerWrapper&&f.videoControllerWrapper.raiseVolumeEvent();break;case a.DURATION_CHANGE:f.videoControllerWrapper&&f.videoControllerWrapper.raiseDurationChange(f.getCurrentTime(),f.getDuration());break;case a.AD_BREAK_READY:break;case a.CLICK:O.adsClicked(),O.adsClickthroughOpened();break;case a.CONTENT_PAUSE_REQUESTED:p&&i&&0!==i.getAdPodInfo().getPodIndex()&&(f.adResponseTime=(new Date).valueOf()),function(){if(OO.log("GOOGLE_IMA:: Content Pause Requested by Google IMA!"),T=!0,p){var e={position_type:"r",forced_ad_type:O.ADTYPE.LINEAR_VIDEO},n={};if(n[OO.VIDEO.ENCODING.IMA]="",_.currentTime<=0){var t={position:O.FORCED_AD_POSITION,adManager:f.name,ad:e,streams:n,adType:O.ADTYPE.LINEAR_VIDEO,mainContentDuration:f.mainContentDuration};O.appendToTimeline([new O.Ad(t)]),x(!0)}else O.forceAdToPlay(f.name,e,O.ADTYPE.LINEAR_VIDEO,n)}}();break;case a.CONTENT_RESUME_REQUESTED:B()}}},X=function(e){clearTimeout(f.adsRequestTimeoutRef),f.adResponseTime=(new Date).valueOf();var n=f.adResponseTime-f.adRequestTime,t=f.adResponseTime-f.initialPlayRequestTime;O.onAdRequestSuccess(f.name,f.adPosition,n,t),O.onSdkAdEvent(f.name,e.type,{eventData:{}}),!p&&g&&(L(),f.currentIMAAd=null,f.currentNonLinearIMAAd=null);var r=new google.ima.AdsRenderingSettings;r.loadVideoTimeout=15e3,r.restoreCustomPlaybackStateOnAdBreakComplete=!1,r.useStyledNonLinearAds=!0,r.enablePreloading=f.preloadAds,f.useGoogleCountdown&&(r.uiElements=[google.ima.UiElements.COUNTDOWN,google.ima.UiElements.AD_ATTRIBUTION]),r.useStyledLinearAds=f.useGoogleAdUI,g=e.getAdsManager(_,r),f.videoControllerWrapper&&(f.videoControllerWrapper.readyForCss=!0),f.videoControllerWrapper&&f.videoControllerWrapper.applyStoredCss();var o=g.getCuePoints();f.hasPreroll=0<=o.indexOf(0);var a=google.ima.AdEvent.Type;g.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,W,!1,f);var i=[a.AD_BREAK_READY,a.AD_METADATA,a.ALL_ADS_COMPLETED,a.CLICK,a.COMPLETE,a.CONTENT_PAUSE_REQUESTED,a.CONTENT_RESUME_REQUESTED,a.DURATION_CHANGE,a.FIRST_QUARTILE,a.IMPRESSION,a.INTERACTION,a.LINEAR_CHANGED,a.LOADED,a.LOG,a.MIDPOINT,a.PAUSED,a.RESUMED,a.SKIPPABLE_STATE_CHANGED,a.SKIPPED,a.STARTED,a.THIRD_QUARTILE,a.USER_CLOSE,a.VOLUME_CHANGED,a.VOLUME_MUTED];ue(i,function(e){g.addEventListener(e,z,!1,f)},f),OO.isIos&&F(),p&&!f.initialPlayRequested||g.init(m.clientWidth,m.clientHeight,google.ima.ViewMode.NORMAL),M(),f.adsReady=!0,Q()},J=function(){if(a){var e=google.ima.AdsManagerLoadedEvent.Type,n=google.ima.AdErrorEvent.Type;v(),(i=new google.ima.AdsLoader(a)).addEventListener(e.ADS_MANAGER_LOADED,X,!1),i.addEventListener(n.AD_ERROR,W,!1)}},Z=function(){if(t&&f.uiRegistered){if(R()||te("IMA SDK loaded but does not contain valid data"),!a){google.ima.settings.setPlayerVersion("1.0"),google.ima.settings.setPlayerType("Ooyala"),O.uiLanguage?google.ima.settings.setLocale(O.uiLanguage):google.ima.settings.setLocale(OO.getLocale()),f.useInsecureVpaidMode?google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.INSECURE):google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(f.enableIosSkippableAds),f.maxRedirects&&"number"==typeof f.maxRedirects&&0<f.maxRedirects&&google.ima.settings.setNumRedirects(f.maxRedirects),m=O.ui.playerSkinPluginsElement?O.ui.playerSkinPluginsElement[0]:O.ui.pluginsElement[0];var e=f.sharedVideoElement;a=new google.ima.AdDisplayContainer(m,e)}J(),M()}},$=function(e,n){f.initialPlayRequestTime=(new Date).valueOf(),OO.log("_onInitialPlayRequested"),a||(W(),O.unregisterAdManager(f.name),te("onInitialPlayRequested called but _IMAAdDisplayContainer not created yet.")),f.initialPlayRequested=!0,f.isReplay=!1,a.initialize(),f.capturedUserClick=f.capturedUserClick||!n,p&&g&&g.init(m.clientWidth,m.clientHeight,google.ima.ViewMode.NORMAL),Q(),f.canSetupAdsRequest=!0,q()},ee=function(){i||J(),f.isReplay=!0,P(),s(),f.contentEnded=!1,f.adRulesLoadError=!1,p&&q()},ne=function(e){var n="";if(t=e,OO.log("onSdkLoaded!"),!e||!R())return W(),n="ERROR Google SDK failed to load",e&&!R()&&(n="ERROR Google SDK loaded but could not be validated"),O.onAdSdkLoadFailure(f.name,n),void O.unregisterAdManager(f.name);O.onAdSdkLoaded(f.name),Z(),q()};this.registerVideoControllerWrapper=function(e){f.videoControllerWrapper=e},this.setRequiresMutedAutoplay=function(e){r=!e},this.requiresMutedAutoplay=function(){return!r&&(OO.isSafari&&11<=OO.macOsSafariVersion||OO.isIos||OO.isAndroid||OO.isChrome&&66<=OO.chromeMajorVersion)};this.destroy=function(){m=null,N(),L(),v(),a&&(a.destroy(),a=null,f.capturedUserClick=!1),c(),O&&(O.removePlayerListener(O.EVENTS.INITIAL_PLAY_REQUESTED,$),O.removePlayerListener(O.EVENTS.CONTENT_COMPLETED,A),O.removePlayerListener(O.EVENTS.PLAYHEAD_TIME_CHANGED,y),O.removePlayerListener(O.EVENTS.SIZE_CHANGED,D),O.removePlayerListener(O.EVENTS.CONTENT_CHANGED,Y),O.removePlayerListener(O.EVENTS.REPLAY_REQUESTED,ee),O.removePlayerListener(O.EVENTS.FULL_SCREEN_CHANGED,C))},this.initialize=function(e,n){oe[n]=f,O=e;var t=OO.DEBUG?"_debug.js":".js",r="//imasdk.googleapis.com/js/sdkloader/ima3".concat(t);c(),O.addPlayerListener(O.EVENTS.INITIAL_PLAY_REQUESTED,$),O.addPlayerListener(O.EVENTS.CONTENT_COMPLETED,A),O.addPlayerListener(O.EVENTS.PLAYHEAD_TIME_CHANGED,y),O.addPlayerListener(O.EVENTS.SIZE_CHANGED,D),O.addPlayerListener(O.EVENTS.CONTENT_CHANGED,Y),O.addPlayerListener(O.EVENTS.REPLAY_REQUESTED,ee),O.addPlayerListener(O.EVENTS.FULLSCREEN_CHANGED,C),f.runningUnitTests?ne(!0):O.loadAdModule(f.name,r,ne)},this.loadMetadata=function(e,n,t){f.mainContentDuration=t.duration/1e3,f.allAdInfo=e.all_ads;var r=ae(e.all_ads,function(e){return"r"===e.position_type});p=!!r,f.adRulesLoadError=!1,f.adTagUrl=null,p&&(f.adTagUrl=r.tag_url,f.adPosition=0),f.requestAdsOnReplay=!0,Object.prototype.hasOwnProperty.call(O.adManagerSettings,O.AD_SETTINGS.REPLAY_ADS)&&(f.requestAdsOnReplay=O.adManagerSettings[O.AD_SETTINGS.REPLAY_ADS]),f.preloadAds=!1,Object.prototype.hasOwnProperty.call(O.adManagerSettings,O.AD_SETTINGS.PRELOAD_ADS)&&(f.preloadAds=O.adManagerSettings[O.AD_SETTINGS.PRELOAD_ADS]),f.maxAdsRequestTimeout=15e3,ie(O.adManagerSettings[O.AD_SETTINGS.AD_LOAD_TIMEOUT])&&(0<O.adManagerSettings[O.AD_SETTINGS.AD_LOAD_TIMEOUT]||f.runningUnitTests)&&(f.maxAdsRequestTimeout=O.adManagerSettings[O.AD_SETTINGS.AD_LOAD_TIMEOUT]),f.additionalAdTagParameters=null,Object.prototype.hasOwnProperty.call(e,"additionalAdTagParameters")&&(f.additionalAdTagParameters=e.additionalAdTagParameters),f.showAdControls=!1,f.playerControlsOverAds=O.pageSettings&&!0===O.pageSettings.playerControlsOverAds,f.playerControlsOverAds?f.showAdControls=!0:Object.prototype.hasOwnProperty.call(e,"showAdControls")&&(f.showAdControls=e.showAdControls),f.autoHideAdControls=!0,f.showAdControls&&!f.playerControlsOverAds&&(f.autoHideAdControls=!1),f.useGoogleAdUI=!1,Object.prototype.hasOwnProperty.call(e,"useGoogleAdUI")&&(f.useGoogleAdUI=e.useGoogleAdUI),f.useGoogleCountdown=!1,Object.prototype.hasOwnProperty.call(e,"useGoogleCountdown")&&(f.useGoogleCountdown=e.useGoogleCountdown),f.useInsecureVpaidMode=!1,Object.prototype.hasOwnProperty.call(e,"vpaidMode")&&(f.useInsecureVpaidMode="insecure"===e.vpaidMode),f.disableFlashAds=!1,Object.prototype.hasOwnProperty.call(e,"disableFlashAds")&&(f.disableFlashAds=e.disableFlashAds),f.imaIframeZIndex=10004,Object.prototype.hasOwnProperty.call(e,"iframeZIndex")&&(f.imaIframeZIndex=e.iframeZIndex),f.enableIosSkippableAds=!1,Object.prototype.hasOwnProperty.call(e,"enableIosSkippableAds")&&(f.enableIosSkippableAds=e.enableIosSkippableAds),Object.prototype.hasOwnProperty.call(e,"setMaxRedirects")&&("number"==typeof e.setMaxRedirects?f.maxRedirects=e.setMaxRedirects:"string"==typeof e.setMaxRedirects&&(f.maxRedirects=+e.setMaxRedirects)),a?i||J():Z(),f.metadataReady=!0,M();var o=E();o&&0<o.length&&p&&(f.canSetupAdsRequest=!1)},this.registerUi=function(){f.uiRegistered=!0,O.ui.useSingleVideoElement&&!f.sharedVideoElement&&O.ui.ooyalaVideoElement[0]&&"video"===O.ui.ooyalaVideoElement[0].className&&f.setupSharedVideoElement(O.ui.ooyalaVideoElement[0]),Z(),q()},this.setupSharedVideoElement=function(e){f.sharedVideoElement&&OO.isIphone&&"function"==typeof f.sharedVideoElement.removeEventListener&&f.sharedVideoElement.removeEventListener("webkitendfullscreen",V),f.sharedVideoElement=e,f.sharedVideoElement&&OO.isIphone&&"function"==typeof f.sharedVideoElement.addEventListener&&f.sharedVideoElement.addEventListener("webkitendfullscreen",V)},this.buildTimeline=function(){var e,n=[];if(p)return(e={})[OO.VIDEO.ENCODING.IMA]="",[new O.Ad({position:0,duration:0,adManager:f.name,ad:{},streams:e,adType:O.ADTYPE.UNKNOWN_AD_REQUEST})];var t=E();if(t)for(var r=0;r<t.length;r++){var o=t[r];if("r"!==o.position_type){(e={})[OO.VIDEO.ENCODING.IMA]="";var a={position:o.position/1e3,adManager:f.name,ad:o,streams:e,adType:O.ADTYPE.UNKNOWN_AD_REQUEST,mainContentDuration:f.mainContentDuration};"p"===o.position_type&&(a.positionType="p",a.position=o.position);var i=new O.Ad(a);n.push(i)}}return n},this.playAd=function(e,n){if(null!=e)if(n?l=e:o=e,l!==e||f.currentAMCAdPod!==e){f.currentAMCAdPod&&x(!0),f.currentAMCAdPod=e,f.currentAMCAdPod?f.currentAMCAdPod.ad||te("playAd() called but amcAdPod.ad is null."):te("playAd() called but amcAdPod is null.");var t=k();t&&t.style&&(t.style.zIndex=f.imaIframeZIndex),p&&f.currentAMCAdPod.adType===O.ADTYPE.UNKNOWN_AD_REQUEST?n&&(f.canSetupAdsRequest=!0,q()):(!O.ui.useSingleVideoElement&&O.ui.adVideoElement&&O.ui.adVideoElement.css(d),p&&f.currentAMCAdPod.ad.forced_ad_type!==O.ADTYPE.NONLINEAR_OVERLAY?j():f.currentAMCAdPod.ad.forced_ad_type!==O.ADTYPE.NONLINEAR_OVERLAY?(P(),f.adTagUrl=f.currentAMCAdPod.ad.tag_url,f.adPosition=f.currentAMCAdPod.ad.position/1e3,q()):(f.currentAMCAdPod&&f.currentNonLinearIMAAd&&(f.currentAMCAdPod.width=f.currentNonLinearIMAAd.getWidth(),f.currentAMCAdPod.height=f.currentNonLinearIMAAd.getHeight(),f.currentAMCAdPod.paddingWidth=50,f.currentAMCAdPod.paddingHeight=50,D()),O.sendURLToLoadAndPlayNonLinearAd(f.currentAMCAdPod,f.currentAMCAdPod.id,null)))}else n||(o=f.currentAMCAdPod,f.adsReady&&Q())},this.cancelAd=function(e){e&&f.currentAMCAdPod&&e.id!==f.currentAMCAdPod.id&&te("AMC canceling ad that is not the current one playing."),OO.log("GOOGLE IMA: ad got canceled by AMC"),p||L(),x(!0)},this.cancelOverlay=function(e){f.cancelAd(e)},this.pauseAd=function(){g&&f.adPlaybackStarted&&g.pause()},this.resumeAd=function(){f.startImaOnVtcPlay?(f.startImaOnVtcPlay=!1,g&&g.start()):g&&f.adPlaybackStarted&&(OO.isIphone&&f.sharedVideoElement&&(re()||f.sharedVideoElement.webkitEnterFullscreen(),f.sharedVideoElement.play()),g.resume())},this.getVolume=function(){var e=1;return g&&(e=g.getVolume()),e},this.setVolume=function(e){g?g.getVolume()===e||!f.capturedUserClick&&0!==e&&f.requiresMutedAutoplay()||(f.savedVolume=-1,g.setVolume(e),!f.videoControllerWrapper||f.adPlaybackStarted&&!f.sharedVideoElement||f.videoControllerWrapper.raiseVolumeEvent()):f.savedVolume=e},this.setupUnmutedPlayback=function(){f.capturedUserClick=!0,f.currentIMAAd||a&&a.initialize()},this.getCurrentTime=function(){var e=0;return g&&f.currentIMAAd&&0<=g.getRemainingTime()&&g.getRemainingTime()<=f.currentIMAAd.getDuration()&&(e=f.currentIMAAd.getDuration()-g.getRemainingTime()),e},this.getDuration=function(){var e=0;return f.currentIMAAd&&(e=f.currentIMAAd.getDuration()),e},this.adVideoFocused=function(){},this.willPlayAdMuted=function(){return f.requiresMutedAutoplay()&&!f.capturedUserClick},this.setMuteFirstPlay=function(e){f.mutedFirstPlay=e}}});var u=function(e){var t=this,r=e;this.controller={},this.disableNativeSeek=!0,this.isControllingVideo=!0,this.readyForCss=!1;var n=null,o=1;this.sharedElementTake=function(){t.isControllingVideo=!0},this.sharedElementGive=function(){t.isControllingVideo=!1},this.subscribeAllEvents=function(){r.registerVideoControllerWrapper(t)},this.play=function(){r.resumeAd()},this.pause=function(){r.pauseAd()},this.mute=function(){var e=r.getVolume();e&&(o=e),r.setVolume(0)},this.unmute=function(e){e&&r.setupUnmutedPlayback(),r.setVolume(o||1)},this.setVolume=function(e,n){o=e,n?t.mute():r.setVolume(e)},this.getCurrentTime=function(){return r.getCurrentTime()},this.applyStoredCss=function(){t.applyCss(n)};this.applyCss=function(e){t.readyForCss?function(e){if(e&&t.isControllingVideo&&r.sharedVideoElement){var o=document.querySelector(r.sharedVideoElement.className,"#".concat(r.sharedVideoElement.id));s(e).forEach(function(e){var n=l(e,2),t=n[0],r=n[1];o.style[t]=r})}}(e):n=e},this.destroy=function(){r.sharedVideoElement=null};var a=function(e,n){t.isControllingVideo&&t.controller.notify(e,n)};this.raisePlayEvent=function(){a(t.controller.EVENTS.PLAY,{}),a(t.controller.EVENTS.PLAYING)},this.raiseEndedEvent=function(){a(t.controller.EVENTS.ENDED)},this.raisePauseEvent=function(){a(t.controller.EVENTS.PAUSED)},this.raiseVolumeEvent=function(){var e=r.getVolume();0===e?a(t.controller.EVENTS.MUTE_STATE_CHANGE,{muted:!0}):(a(t.controller.EVENTS.MUTE_STATE_CHANGE,{muted:!1}),a(t.controller.EVENTS.VOLUME_CHANGE,{volume:e}))};var i=function(e,n,t){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:1;a(e,{currentTime:n,duration:t,buffer:r,seekRange:{begin:0,end:0}})};this.raiseTimeUpdate=function(e,n){i(t.controller.EVENTS.TIME_UPDATE,e,n)},this.raiseDurationChange=function(e,n){i(t.controller.EVENTS.DURATION_CHANGE,e,n)},this.raiseUnmutedPlaybackFailed=function(){a(t.controller.EVENTS.UNMUTED_PLAYBACK_FAILED)},this.notifyUnmutedContentAutoPlaybackSucceeded=function(){r.setRequiresMutedAutoplay(!1)}};OO.Video.plugin(new function(){var e=this;this.name="GoogleIMAVideoTech",this.encodings=[OO.VIDEO.ENCODING.IMA],this.features=[OO.VIDEO.FEATURE.VIDEO_OBJECT_SHARING_TAKE],this.technology=OO.VIDEO.TECHNOLOGY.HTML5,this.create=function(e,n,t,r,o){var a=oe[o],i=d("<div>");i.attr("id",n),e.prepend(i);var l=new u(a);return l.controller=t,l.subscribeAllEvents(),l},this.createFromExisting=function(e,n,t){var r=oe[t];r.setupSharedVideoElement(document.getElementById(e));var o=new u(r);return o.controller=n,o.subscribeAllEvents(),o},this.destroy=function(){e.encodings=[],e.create=function(){},e.createFromExisting=function(){}},this.maxSupportedElements=-1})}(OO.$)},{"../html5-common/js/utils/InitModules/InitOOUnderscore.js":2,"../html5-common/js/utils/constants.js":3,"../html5-common/js/utils/utils.js":4,underscore:7}],7:[function(e,n,t){arguments[4][5][0].apply(t,arguments)},{dup:5}]},{},[6]);
//pulse.js-4.40.0
!function a(o,l,s){function d(t,e){if(!l[t]){if(!o[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(u)return u(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var i=l[t]={exports:{}};o[t][0].call(i.exports,function(e){return d(o[t][1][e]||e)},i,i.exports,a,o,l,s)}return l[t].exports}for(var u="function"==typeof require&&require,e=0;e<s.length;e++)d(s[e]);return d}({1:[function(e,t,n){"use strict";function ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}!function(){var de={};OO.Ads.manager(function(){var ie=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];OO.Pulse?OO.Pulse.Utils.logTagged?(t.unshift([{tag:"v4",color:"#69388E"}]),OO.Pulse.Utils.logTagged.apply(null,t)):OO.Pulse.Utils.log.apply(null,t):(t.unshift("OO.Pulse: "),OO.log(t))},ae="uninitialized",oe="loading",le="ready",se="failed";return new function(){var E=this;this.name="videoplaza-ads-manager",this.ready=!1,this.initTime=Date.now(),this.sharedVideoElement=null,this._contentMetadata={},this._requestSettings={},this._pulseHost=null,this._isControllingVideo=!1;var _,p,n=this.ui=null,f=!1,t=!1,h=null,r=!1,i=null,a=null,o=0,l=null,s=0,d=!1,u=null,y=null,A=null,g=ae,v=!1,P={},S=!1;this.getAdPlayer=function(){return u},this.registerUi=function(){E.ui=A.ui;var e=document.createElement("style"),t=".oo-ad-overlay-image { width:100% !important} .oo-ad-overlay {  margin:auto !important}";e.type="text/css",e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t)),document.getElementsByTagName("head")[0].appendChild(e),A.ui.useSingleVideoElement&&!E.sharedVideoElement&&A.ui.ooyalaVideoElement[0]&&"video"===A.ui.ooyalaVideoElement[0].className&&(E.sharedVideoElement=E.ui.ooyalaVideoElement[0])};var c=function(e,t){return e?t?"".concat(e,",").concat(t):e:t},m=function e(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(function(e){return!!e});switch(i.length){case 0:return;case 1:return i[0];case 2:return c(i[0],i[1]);default:return c(i.shift(),e(i))}},T=function(e,t){return e?e.split(t):null},O=function(e,t){return e?e.map(t):null},N=function(t){Object.keys(t).forEach(function(e){null!==t[e]&&void 0!==t[e]||delete t[e]})},L=function(e){var t=parseInt(e,10);return!t||Number.isNaN(t)?null:t},D=function(){for(var e=0,t=arguments.length;e<t;e++)if((e<0||arguments.length<=e?void 0:arguments[e])||""===(e<0||arguments.length<=e?void 0:arguments[e]))return e<0||arguments.length<=e?void 0:arguments[e];return null},I=function e(){var t=document.getElementsByClassName("oo-ad-screen"),n=document.getElementsByClassName("oo-player-skin-plugins-click-layer");if(0===t.length)E.adScreenPointerEventsEnabled||E.adScreenIntervalId||(E.adScreenIntervalId=setInterval(function(){null===E._currentAdBreak?(clearInterval(E.adScreenIntervalId),E.adScreenIntervalId=void 0):e()},100));else{E.adScreenIntervalId&&(clearInterval(E.adScreenIntervalId),E.adScreenIntervalId=void 0);for(var r=0;r<t.length;++r)t[r].style["pointer-events"]=E.adScreenPointerEventsEnabled?"auto":"none";for(var i=0;i<n.length;++i)n[i].style["pointer-events"]=E.adScreenPointerEventsEnabled?"auto":"none"}},e=function(){E.adScreenPointerEventsEnabled=!0,I()},C=function(){clearTimeout(a),A.notifyNonlinearAdEnded(i.id),i=null},V=function(){o=Date.now(),a=setTimeout(C,s)};this.cancelAd=function(e,t){"skipped"===t.code?u.skipButtonClicked():n&&n.stopAdBreak()},this.cancelOverlay=function(e){u.overlayAdClosed(e.ad),clearTimeout(a),i=null},this.pauseAd=function(){u&&u.pause()},this.resumeAd=function(){u&&u.play()},this.playerClicked=function(){if(E._currentAd){var e=E._currentAd.getClickthroughURL();e&&E.openClickThrough(e)}else E._currentOverlayAd?u.overlayAdClicked(E._currentOverlayAd):E._currentPauseAd},this.destroy=function(){u&&u.destroy()},this.registerVideoControllerWrapper=function(e){E.videoControllerWrapper=e};var k=function(){},b=function(){r=!0,u&&u.contentPaused()},R=function(){r=!1,l&&(A.notifyNonlinearAdEnded(l.id),l=null),u&&u.contentStarted()};this.notifyAdPodStarted=function(e,t){h||(h=e),A.notifyPodStarted(h,t)},this.notifyAdPodEnded=function(){var e=h;h=null,A.notifyPodEnded(e)},this.showOverlayAd=function(e){i&&C(),E._currentOverlayAd=e,A.forceAdToPlay(E.name,e,A.ADTYPE.NONLINEAR_OVERLAY,[e.getResourceURL()])},this.showPauseAd=function(){},this.showOverlay=function(){i&&V()},this.hideOverlay=function(){s-=Date.now()-o},this.illegalOperationOccurred=function(){},this.sessionEnded=function(){A.adManagerDoneControllingAds()},this.openClickThrough=function(e){window.open(e),u&&u.adClickThroughOpened()},this.muted=function(){var e=!0;return u&&(e=u._muted),e};var w=function(){var e={};e[OO.VIDEO.ENCODING.PULSE]="",A.forceAdToPlay(E.name,{placeholder:!0},A.ADTYPE.LINEAR_VIDEO,e)},M=function(e,t){u&&u.contentPositionChanged(t)},F=function(){u&&u.contentStarted()},U=function(){E._contentFinished=!0,u&&u.contentFinished()},H=function(e,t){E._persistentId||(E._persistentId=t)},B=function(){u&&(u.resize(-1,-1,d),setTimeout(function(){u.resize(-1,-1,d)},500))},G=function(e,t){d=t,B()},x=function(){E.ready&&!S&&(f=!0,A.adManagerWillControlAds(),g===le&&(u||E.tryInitAdPlayer(),n=OO.Pulse.createSession(E._contentMetadata,E._requestSettings),u&&u.startSession(n,E)))},q=function(){E._contentFinished=!1,x.call(E)},Y=function(){A.notifyLinearAdEnded(1),e(),E._currentAd=null},K=function(){e()},W=function(){A.notifyLinearAdEnded(1),e(),E._currentAd=null},z=function(){E._currentAdBreak=null,E.notifyAdPodEnded()},j=function(e,t){u.resize(-1,-1,d),E._currentAdBreak=t.adBreak,E.notifyAdPodStarted(E._adBreakId,E._currentAdBreak.getPlayableAdsTotal())},Q=function(){E.videoControllerWrapper.togglePlayPause()},$=function(){E.videoControllerWrapper.raisePauseEvent()},J=function(){E.videoControllerWrapper.raisePlayingEvent()},X=function(e,t){E.videoControllerWrapper.raiseVolumeEvent(t.volume,E.muted())},Z=function(){E.muted()?E.videoControllerWrapper.raiseMutedPlaybackFailed():E.videoControllerWrapper.raiseUnmutedPlaybackFailed()},ee=function(){P&&P.onSessionCreated&&P.onSessionCreated(n)},te=function(e,t){var n=t.duration?t.duration:E.currentAd.getCoreAd().creatives[0].duration;E.videoControllerWrapper.raiseTimeUpdate(t.position,n)},ne=function(e,t){E._currentAd=t.ad;var n=E._currentAd.getMediaFiles()[0];n.apiFramework&&"VPAID"===n.apiFramework&&(ie("Playing VPAID ad; disabling pointer events on player"),E.adScreenPointerEventsEnabled=!1,I());var r=E._currentAd.getClickthroughURL(),i=E._currentAd.getSkipOffset(),a=null;E._showAdTitle&&(a=E._currentAd.getCoreAd().title),A.focusAdVideo(),A.notifyLinearAdStarted(1,{duration:E._currentAd.getCoreAd().creatives[0].duration,name:a,indexInPod:t.adPosition,skippable:E._currentAd.isSkippable(),hasClickUrl:!!r}),E._currentAd.isSkippable()?A.showSkipVideoAdButton(!0,i.toString()):A.showSkipVideoAdButton(!1),u.resize(-1,-1,d)},re=function(){};this.initialize=function(e,t){A=e,de[t]=E,A.addPlayerListener(A.EVENTS.CONTENT_CHANGED,k),A.addPlayerListener(A.EVENTS.PAUSED,b),A.addPlayerListener(A.EVENTS.RESUME,R),A.addPlayerListener(A.EVENTS.INITIAL_PLAY_REQUESTED,x),A.addPlayerListener(A.EVENTS.PLAY_STARTED,F),A.addPlayerListener(A.EVENTS.CONTENT_COMPLETED,U),A.addPlayerListener(A.EVENTS.SIZE_CHANGED,B),A.addPlayerListener(A.EVENTS.FULLSCREEN_CHANGED,G),A.addPlayerListener(A.EVENTS.REPLAY_REQUESTED,q),A.addPlayerListener(A.EVENTS.DEVICE_ID_SET,H)},this.loadMetadata=function(e,t,n){if(y=e.pulse_rendering_mode||"HTML5_FIRST",E._pulseHost=e.pulse_host||t.pulse_host||t.vpHost||e.vpDomain,!E._pulseHost)return ie("No Pulse hostname found in plugin parameters or media metadata;\n              will not attempt to show Pulse ads"),S=!0,E.ready=!0,A.onAdManagerReady(),void A.reportPluginLoaded(Date.now()-E.initTime,E.name);E.ready=!0,A.onAdManagerReady(),A.reportPluginLoaded(Date.now()-E.initTime,E.name),E._deviceContainer=e.pulse_device_container,e.pulse_persistent_id&&(E._persistentId=e.pulse_persistent_id);var r,i,a,o,l,s,d,u=0===E._pulseHost.indexOf("https")?"https://":"http://",c=E._pulseHost.match(/(?:https?:\/\/)?(.*)\/?/)[1];OO.Pulse?(ie("Using Pulse SDK already present on page"),g=le,f&&x.call(E)):(ie("Pulse SDK not present; loading latest .."),g=oe,A.loadAdModule(E.name,u+c+"/proxy/pulse-sdk-html5/2.1/latest.min.js",function(e){g=e?le:se,!e&&h?(ie("Failed to load Pulse SDK"),A.notifyPodEnded(h)):f&&(ie("Pulse SDK loaded, trying to play prerolls .."),x.call(E))})),P={},e.pulse_callbacks&&Object.entries(e.pulse_callbacks).forEach(function(e){var t=ue(e,2),n=t[0],r=t[1];"function"==typeof r&&(P[n]=r)}),_=void 0,e.pulse_force_site_id&&(_=e.pulse_force_site_id,ie("Forcing site id: ",_)),p=void 0,e.pulse_preview&&(p=e.pulse_preview,ie("Ad preview for id ",p)),E._requestSettings={height:e.pulse_height,width:e.pulse_width,maxBitRate:e.pulse_max_bitrate},_&&(E._requestSettings.forceSiteId=_),p&&(E._requestSettings.pulse_preview=p),E._contentMetadata.category=D(e.pulse_category,t.pulse_category,t.vpCategory,(r=e.playerLevelShares,(i=T(r,","))&&0!==i.length?i[0]:null),e.category),E._contentMetadata.contentForm=D(e.pulse_content_form,t.pulse_content_form,n.duration/1e3>e.longFormLimit?"longForm":"shortForm"),E._contentMetadata.contentPartner=D(e.pulse_content_partner,t.pulse_content_partner,(a=e.playerLevelShares,(o=T(a,","))&&2===o.length?o[1]:null)),E._requestSettings.referrerUrl=D(e.pulse_referrer_url,t.pulse_referrer_url),E._requestSettings.linearSlotSize=D(e.pulse_linear_slot_size,L(t.pulse_linear_slot_size)),E._contentMetadata.id=D(e.pulse_content_id,t.pulse_content_id,e.embedCode),E._contentMetadata.duration=D(e.pulse_duration,L(t.pulse_duration),n.duration/1e3),E._contentMetadata.customParameters=e.pulse_custom_parameters,E._contentMetadata.contentProviderInformation={embedCode:n.embed_code,pcode:n.asset_pcode},E._requestSettings.vptpTicketData=e.pulse_vptp_data,E._requestSettings.maxLinearBreakDuration=parseInt(e.pulse_max_linear_break_duration||t.pulse_max_linear_break_duration,10),Number.isNaN(E._requestSettings.maxLinearBreakDuration)&&(E._requestSettings.maxLinearBreakDuration=null),E._requestSettings.linearPlaybackPositions=O(T(D(e.pulse_linear_cuepoints,t.pulse_linear_cuepoints,t.cuepoints,e.playerLevelCuePoints),","),Number),E._requestSettings.nonlinearPlaybackPositions=O(T(D(e.pulse_non_linear_cuepoints,t.pulse_non_linear_cuepoints,e.nonLinearAdBreaks),","),Number),e.all_ads?E._requestSettings.insertionPointFilter=T(D(e.pulse_insertion_point_filter||t.pulse_insertion_point_filter||(l=e.all_ads[0].position,s=parseInt(l,10),d=[],1&s&&d.push("onBeforeContent"),2&s&&(d.push("playbackPosition"),d.push("playbackTime")),4&s&&d.push("onContentEnd"),0<d.length&&d.push("onPause"),0!==d.length?d.join(","):null)),","):E._requestSettings.insertionPointFilter=T(D(e.pulse_insertion_point_filter,t.pulse_insertion_point_filter),","),e.pulse_override_metadata?(ie("Overriding Backlot metadata with page-level parameters"),E._contentMetadata.flags=T(D(e.pulse_flags,t.pulse_flags,e.playerLevelFlags),","),E._contentMetadata.tags=T(D(e.pulse_tags,t.pulse_tags,t.vpTags,e.playerLevelTags),",")):(E._contentMetadata.flags=T(m(e.pulse_flags,t.pulse_flags,e.playerLevelFlags),","),E._contentMetadata.tags=T(m(e.pulse_tags,t.pulse_tags,t.vpTags,e.playerLevelTags),",")),v=e.pulse_debug,N(E._contentMetadata),N(E._requestSettings)},this.buildTimeline=function(){return S?[]:[function(e,t){var n={};return n[OO.VIDEO.ENCODING.PULSE]="",new A.Ad({position:t,duration:42,adManager:E.name,ad:{type:e,placeholder:!0},streams:n,adType:A.ADTYPE.UNKNOWN_AD_REQUEST})}.call(E,"adRequest",0)]},this.playAd=function(e){if(null!==e){switch(g){case ae:ie("playAd() called with unexpected state UNINITIALIZED");break;case oe:case le:break;case se:return ie("Aborting ad break as SDK failed to load"),void A.notifyPodEnded(e.id);default:return void ie("playAd() called with unexpected state ".concat(g))}if(e.adType===A.ADTYPE.NONLINEAR_OVERLAY)return r?l=e:i=e,A.sendURLToLoadAndPlayNonLinearAd(e.ad,e.id,e.ad.getResourceURL()),A.showNonlinearAdCloseButton(),void(r||i&&(s=1e3*i.ad.getDuration(),u.overlayAdShown(i.ad),V()));t=!0,h=e.id,E._isInPlayAd=!0,i&&(s-=Date.now()-o,clearTimeout(a)),u&&u.contentPaused(),E._mustExitAdMode&&(E._mustExitAdMode=!1,E.notifyAdPodEnded(),u&&u.contentStarted(),A.addPlayerListener(A.EVENTS.PLAYHEAD_TIME_CHANGED,M))}},this.startContentPlayback=function(){f=!1,t?(E.notifyAdPodEnded(),u&&u.contentStarted(),t=!1,A.addPlayerListener(A.EVENTS.PLAYHEAD_TIME_CHANGED,M)):E._mustExitAdMode=!0},this.pauseContentPlayback=function(){return A.removePlayerListener(A.EVENTS.PLAYHEAD_TIME_CHANGED,M),f||setTimeout(w,1),!!(t||f&&!E.ui.useSingleVideoElement)},this.tryInitAdPlayer=function(){var e=function(){try{try{var e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");try{e.AllowScriptAccess="always"}catch(e){return"6,0,0"}}catch(e){}return new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(e){try{if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)return(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(e){}}return"0,0,0"}().split(",").shift();if(E.ui&&g===le&&!u){var t=11<=e?OO.Pulse.AdPlayer.Settings.RenderingMode.HTML5_FIRST:OO.Pulse.AdPlayer.Settings.RenderingMode.HTML5_ONLY;OO.Pulse.debug=v||OO.Pulse.debug,OO.Pulse.setPulseHost(E._pulseHost,E._deviceContainer,E._persistentId),(u=OO.Pulse.createAdPlayer(A.ui.playerSkinPluginsElement?A.ui.playerSkinPluginsElement[0]:A.ui.pluginsElement[0],{VPAIDViewMode:OO.Pulse.AdPlayer.Settings.VPAIDViewMode.NORMAL,renderingMode:y||t},E.sharedVideoElement)).addEventListener(OO.Pulse.AdPlayer.Events.AD_BREAK_FINISHED,z),u.addEventListener(OO.Pulse.AdPlayer.Events.AD_BREAK_STARTED,j),u.addEventListener(OO.Pulse.AdPlayer.Events.LINEAR_AD_FINISHED,Y),u.addEventListener(OO.Pulse.AdPlayer.Events.LINEAR_AD_ERROR,K),u.addEventListener(OO.Pulse.AdPlayer.Events.LINEAR_AD_SKIPPED,W),u.addEventListener(OO.Pulse.AdPlayer.Events.LINEAR_AD_STARTED,ne),u.addEventListener(OO.Pulse.AdPlayer.Events.LINEAR_AD_PROGRESS,te),u.addEventListener(OO.Pulse.AdPlayer.Events.AD_CLICKED,Q),u.addEventListener(OO.Pulse.AdPlayer.Events.LINEAR_AD_PAUSED,$),u.addEventListener(OO.Pulse.AdPlayer.Events.LINEAR_AD_PLAYING,J),u.addEventListener(OO.Pulse.AdPlayer.Events.SESSION_STARTED,ee),u.addEventListener(OO.Pulse.AdPlayer.Events.OVERLAY_AD_SHOWN,re),u.addEventListener(OO.Pulse.AdPlayer.Events.AD_VOLUME_CHANGED,X),u.addEventListener(OO.Pulse.AdPlayer.Events.AD_PLAY_PROMISE_REJECTED,Z),P&&P.onAdPlayerCreated&&P.onAdPlayerCreated(u)}}}});var l=function(e){var n=this,r=e;this.controller={},this.isPlaying=!1,this.sharedElementGive=function(){setTimeout(function(){r.sharedVideoElement.style.display="block",r.sharedVideoElement.play()},100),r.sharedVideoElement.style.visibility="hidden",r._isControllingVideo=!1},this.sharedElementTake=function(){r.sharedVideoElement.crossorigin=null,r._isControllingVideo=!0,r.sharedVideoElement.style.visibility="visible",r&&r._waitingForContentPause&&(r._waitingForContentPause=!1)},this.subscribeAllEvents=function(){r.registerVideoControllerWrapper(n)};this.load=function(){},this.togglePlayPause=function(){n.isPlaying?n.pause():n.play()},this.play=function(){r&&(r.resumeAd(),n.isPlaying=!0,n.raisePlayingEvent())},this.pause=function(){r&&(r.pauseAd(),n.isPlaying=!1,n.raisePauseEvent())},this.seek=function(e){r&&r.getAdPlayer()&&r.getAdPlayer().seek(e)},this.setVolume=function(e){r&&r.getAdPlayer()&&!r.muted()&&r.getAdPlayer().setVolume(e)},this.mute=function(){r&&r.getAdPlayer()&&r.getAdPlayer().mute()},this.unmute=function(){r&&r.getAdPlayer()&&r.getAdPlayer().unmute()},this.getCurrentTime=function(){},this.applyCss=function(t){var n=r.sharedVideoElement;n&&Object.keys(t).forEach(function(e){n.style[e]=t[e]})},this.destroy=function(){},this.raisePlayEvent=function(e){n.controller.notify(n.controller.EVENTS.PLAY,{url:e.target.src})},this.raisePlayingEvent=function(){n.controller.notify(n.controller.EVENTS.PLAYING)},this.raiseEndedEvent=function(){n.controller.notify(n.controller.EVENTS.ENDED)},this.raiseErrorEvent=function(e){var t=e.target.error?e.target.error.code:-1;n.controller.notify(n.controller.EVENTS.ERROR,{errorcode:t})},this.raiseSeekingEvent=function(){n.controller.notify(n.controller.EVENTS.SEEKING)},this.raiseSeekedEvent=function(){n.controller.notify(n.controller.EVENTS.SEEKED)},this.raisePauseEvent=function(){n.controller.notify(n.controller.EVENTS.PAUSED)},this.raiseRatechangeEvent=function(){n.controller.notify(n.controller.EVENTS.RATE_CHANGE)},this.raiseStalledEvent=function(){n.controller.notify(n.controller.EVENTS.STALLED)},this.raiseVolumeEvent=function(e,t){0===e||t?n.controller.notify(n.controller.EVENTS.MUTE_STATE_CHANGE,{muted:!0}):(n.controller.notify(n.controller.EVENTS.MUTE_STATE_CHANGE,{muted:!1}),n.controller.notify(n.controller.EVENTS.VOLUME_CHANGE,{volume:e}))},this.raiseUnmutedPlaybackFailed=function(){n.controller.notify(n.controller.EVENTS.UNMUTED_PLAYBACK_FAILED)},this.raiseMutedPlaybackFailed=function(){n.controller.notify(n.controller.EVENTS.MUTED_PLAYBACK_FAILED)},this.raiseWaitingEvent=function(){n.controller.notify(n.controller.EVENTS.WAITING)},this.raiseTimeUpdate=function(e,t){n.controller.notify(n.controller.EVENTS.TIME_UPDATE,{currentTime:e,duration:t,buffer:t,seekRange:{begin:0,end:10}})},this.raiseDurationChange=function(e){n.raisePlayhead(n.controller.EVENTS.DURATION_CHANGE,e)},this.raisePlayhead=function(e,t){n.controller.notify(e,{currentTime:t.target.currentTime,duration:t.target.duration,buffer:10,seekRange:{begin:0,end:10}})},this.raiseProgress=function(e){n.controller.notify(n.controller.EVENTS.PROGRESS,{currentTime:e.target.currentTime,duration:e.target.duration,buffer:10,seekRange:{begin:0,end:10}})},this.raiseCanPlayThrough=function(){n.controller.notify(n.controller.EVENTS.BUFFERED)},this.raiseFullScreenBegin=function(e){n.controller.notify(n.controller.EVENTS.FULLSCREEN_CHANGED,{_isFullScreen:!0,paused:e.target.paused})},this.raiseFullScreenEnd=function(e){n.controller.notify(n.controller.EVENTS.FULLSCREEN_CHANGED,{_isFullScreen:!1,paused:e.target.paused})}};OO.Video.plugin(new function(){var e=this;this.adManager={},this.name="PulseVideoTech",this.encodings=[OO.VIDEO.ENCODING.PULSE],this.features=[OO.VIDEO.FEATURE.VIDEO_OBJECT_SHARING_TAKE],this.technology=OO.VIDEO.TECHNOLOGY.HTML5,this.ready=!0,this.create=function(e,t,n,r,i){var a=de[i],o=new l(a);return o.controller=n,o.subscribeAllEvents(),o},this.createFromExisting=function(e,t,n){var r=de[n],i=new l(r);return r.sharedVideoElement=document.getElementById(e),i.controller=t,i.subscribeAllEvents(),i},this.destroy=function(){e.encodings=[],e.create=function(){}},this.maxSupportedElements=-1})}()},{}]},{},[1]);
//ad_manager_vast.js-4.40.0
!function i(o,l,s){function c(n,e){if(!l[n]){if(!o[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(d)return d(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var a=l[n]={exports:{}};o[n][0].call(a.exports,function(e){return c(o[n][1][e]||e)},a,a.exports,i,o,l,s)}return l[n].exports}for(var d="function"==typeof require&&require,e=0;e<s.length;e++)c(s[e]);return c}({1:[function(e,n,t){OO||(OO={})},{}],2:[function(e,n,t){e("./InitOOUnderscore.js");var r={};window&&!window.debugHazmat&&(r={warn:function(){}}),OO.HM||"undefined"!=typeof window&&void 0!==window._?window.Hazmat||e("hazmat"):OO.HM=e("hazmat").create(r),OO.HM||(OO.HM=window.Hazmat.noConflict().create(r))},{"./InitOOUnderscore.js":4,hazmat:8}],3:[function(e,n,t){e("./InitOO.js"),OO.playerParams||(OO.playerParams={}),OO.playerParams.core_version||(OO.playerParams.core_version=4),OO.playerParams.vast_proxy_url||(OO.playerParams.vast_proxy_url="http://player.ooyala.com/adinsertion/vast_proxy")},{"./InitOO.js":1}],4:[function(e,n,t){e("./InitOO.js"),window._||(window._=e("underscore")),OO._||(OO._=window._.noConflict())},{"./InitOO.js":1,underscore:9}],5:[function(e,n,t){var r,a;r=OO,a=OO._,r.STATE={LOADING:"loading",READY:"ready",PLAYING:"playing",PAUSED:"paused",BUFFERING:"buffering",ERROR:"error",DESTROYED:"destroyed",__end_marker:!0},r.EVENTS={PLAYER_CREATED:"playerCreated",PLAYER_EMBEDDED:"playerEmbedded",SET_EMBED_CODE:"setEmbedCode",HEVC_CHECKED:"hevcChecked",SET_EMBED_CODE_AFTER_OOYALA_AD:"setEmbedCodeAfterOoyalaAd",EMBED_CODE_CHANGED:"embedCodeChanged",SET_ASSET:"setAsset",ASSET_CHANGED:"assetChanged",UPDATE_ASSET:"updateAsset",ASSET_UPDATED:"assetUpdated",AUTH_TOKEN_CHANGED:"authTokenChanged",GUID_SET:"guidSet",WILL_FETCH_PLAYER_XML:"willFetchPlayerXml",PLAYER_XML_FETCHED:"playerXmlFetched",WILL_FETCH_CONTENT_TREE:"willFetchContentTree",SAVE_PLAYER_SETTINGS:"savePlayerSettings",CONTENT_TREE_FETCHED:"contentTreeFetched",WILL_FETCH_METADATA:"willFetchMetadata",METADATA_FETCHED:"metadataFetched",SKIN_METADATA_FETCHED:"skinMetadataFetched",THUMBNAILS_FETCHED:"thumbnailsFetched",WILL_FETCH_AUTHORIZATION:"willFetchAuthorization",AUTHORIZATION_FETCHED:"authorizationFetched",WILL_FETCH_AD_AUTHORIZATION:"willFetchAdAuthorization",AD_AUTHORIZATION_FETCHED:"adAuthorizationFetched",CAN_SEEK:"canSeek",WILL_RESUME_MAIN_VIDEO:"willResumeMainVideo",PLAYBACK_READY:"playbackReady",INITIAL_PLAY:"initialPlay",WILL_PLAY:"willPlay",REPLAY:"replay",SET_PLAYBACK_SPEED:"setPlaybackSpeed",PLAYBACK_SPEED_CHANGED:"playbackSpeedChanged",PLAYHEAD_TIME_CHANGED:"playheadTimeChanged",BUFFERING:"buffering",BUFFERED:"buffered",DOWNLOADING:"downloading",BITRATE_INFO_AVAILABLE:"bitrateInfoAvailable",SET_TARGET_BITRATE:"setTargetBitrate",BITRATE_CHANGED:"bitrateChanged",CLOSED_CAPTIONS_INFO_AVAILABLE:"closedCaptionsInfoAvailable",SET_CLOSED_CAPTIONS_LANGUAGE:"setClosedCaptionsLanguage",SKIN_UI_LANGUAGE:"skinUiLanguage",CLOSED_CAPTION_CUE_CHANGED:"closedCaptionCueChanged",ASSET_DIMENSION:"assetDimension",SCRUBBING:"scrubbing",SCRUBBED:"scrubbed",SEEK:"seek",SEEKED:"seeked",PLAY:"play",PLAYING:"playing",PLAY_FAILED:"playFailed",PAUSE:"pause",PAUSED:"paused",PLAYED:"played",DISPLAY_CUE_POINTS:"displayCuePoints",INSERT_CUE_POINT:"insertCuePoint",RESET_CUE_POINTS:"resetCuePoints",WILL_CHANGE_FULLSCREEN:"willChangeFullscreen",FULLSCREEN_CHANGED:"fullscreenChanged",SIZE_CHANGED:"sizeChanged",CHANGE_VOLUME:"changeVolume",VOLUME_CHANGED:"volumeChanged",CHANGE_MUTE_STATE:"changeMuteState",MUTE_STATE_CHANGED:"muteStateChanged",CONTROLS_SHOWN:"controlsShown",CONTROLS_HIDDEN:"controlsHidden",END_SCREEN_SHOWN:"endScreenShown",ERROR:"error",API_ERROR:"apiError",BITRATE_INITIAL:"bitrateInitial",BITRATE_FIVE_SEC:"bitrateFiveSec",BITRATE_STABLE:"bitrateStable",PLAYBACK_START_ERROR:"playbackStartError",PLAYBACK_MIDSTREAM_ERROR:"playbackMidstreamError",PLUGIN_LOADED:"pluginLoaded",VC_PLUGIN_ERROR:"videoPluginError",INITIAL_PLAY_STARTING:"initialPlayStarting",REQUEST_PREVIOUS_VIDEO:"requestPreviousVideo",REQUEST_NEXT_VIDEO:"requestNextVideo",POSITION_IN_PLAYLIST_DETERMINED:"positionInPlaylistDetermined",DESTROY:"destroy",WILL_PLAY_FROM_BEGINNING:"willPlayFromBeginning",DISABLE_PLAYBACK_CONTROLS:"disablePlaybackControls",ENABLE_PLAYBACK_CONTROLS:"enablePlaybackControls",VC_READY:"videoControllerReady",VC_CREATE_VIDEO_ELEMENT:"videoControllerCreateVideoElement",VC_UPDATE_ELEMENT_STREAM:"videoControllerUpdateElementStream",VC_VIDEO_ELEMENT_CREATED:"videoControllerVideoElementCreated",VC_FOCUS_VIDEO_ELEMENT:"videoControllerFocusVideoElement",VC_VIDEO_ELEMENT_IN_FOCUS:"videoControllerVideoElementInFocus",VC_VIDEO_ELEMENT_LOST_FOCUS:"videoControllerVideoElementLostFocus",VC_DISPOSE_VIDEO_ELEMENT:"videoControllerDisposeVideoElement",VC_VIDEO_ELEMENT_DISPOSED:"videoControllerVideoElementDisposed",VC_SET_VIDEO_STREAMS:"videoControllerSetVideoStreams",VC_ERROR:"videoControllerError",VC_SET_INITIAL_TIME:"videoSetInitialTime",VC_PLAY:"videoPlay",PLAY_VIDEO_ELEMENT:"playVideoElement",VC_WILL_PLAY:"videoWillPlay",VC_PLAYING:"videoPlaying",VC_PLAYED:"videoPlayed",VC_PLAY_FAILED:"videoPlayFailed",VC_PAUSE:"videoPause",VC_PAUSED:"videoPaused",VC_SEEK:"videoSeek",VC_SEEKING:"videoSeeking",VC_SEEKED:"videoSeeked",VC_PRELOAD:"videoPreload",VC_RELOAD:"videoReload",VC_PRIME_VIDEOS:"videoPrimeVideos",VC_TAG_FOUND:"videoTagFound",INITIAL_PLAY_STARTING:"initialPlayStarting",AD_SDK_LOADED:"adSdkLoaded",AD_SDK_LOAD_FAILED:"adSdkLoadFailed",AD_REQUEST:"adRequest",AD_REQUEST_SUCCESS:"adRequestSuccess",AD_REQUEST_ERROR:"adRequestError",AD_REQUEST_EMPTY:"adRequestEmpty",AD_PLAYBACK_ERROR:"adPlaybackError",AD_SDK_IMPRESSION:"adSdkImpression",AD_COMPLETED:"adCompleted",WILL_FETCH_ADS:"willFetchAds",DISABLE_SEEKING:"disableSeeking",ENABLE_SEEKING:"enableSeeking",WILL_PLAY_ADS:"willPlayAds",WILL_PLAY_SINGLE_AD:"willPlaySingleAd",WILL_PAUSE_ADS:"willPauseAds",WILL_RESUME_ADS:"willResumeAds",WILL_PLAY_NONLINEAR_AD:"willPlayNonlinearAd",PLAY_NONLINEAR_AD:"playNonlinearAd",NONLINEAR_AD_DISPLAYED:"nonlinearAdDisplayed",ADS_PLAYED:"adsPlayed",SINGLE_AD_PLAYED:"singleAdPlayed",ADS_ERROR:"adsError",ADS_CLICKED:"adsClicked",FIRST_AD_FETCHED:"firstAdFetched",AD_CONFIG_READY:"adConfigReady",WILL_SHOW_COMPANION_ADS:"willShowCompanionAds",AD_FETCH_FAILED:"adFetchFailed",MIDROLL_PLAY_FAILED:"midrollPlayFailed",SKIP_AD:"skipAd",UPDATE_AD_COUNTDOWN:"updateAdCountdown",REPORT_EXPERIMENT_VARIATIONS:"reportExperimentVariations",FETCH_STYLE:"fetchStyle",STYLE_FETCHED:"styleFetched",SET_STYLE:"setStyle",USE_SERVER_SIDE_HLS_ADS:"useServerSideHlsAds",LOAD_ALL_VAST_ADS:"loadAllVastAds",ADS_FILTERED:"adsFiltered",ADS_MANAGER_HANDLING_ADS:"adsManagerHandlingAds",ADS_MANAGER_FINISHED_ADS:"adsManagerFinishedAds",OVERLAY_RENDERING:"overlayRendering",SHOW_AD_CONTROLS:"showAdControls",SHOW_AD_MARQUEE:"showAdMarquee",SDK_AD_EVENT:"sdkAdEvent",PAGE_UNLOAD_REQUESTED:"pageUnloadRequested",PAGE_PROBABLY_UNLOADING:"pageProbablyUnloading",REPORT_DISCOVERY_IMPRESSION:"reportDiscoveryImpression",REPORT_DISCOVERY_CLICK:"reportDiscoveryClick",DISCOVERY_API:{SEND_DISPLAY_EVENT:"sendDisplayEvent",SEND_CLICK_EVENT:"sendClickEvent"},PLAYLISTS_READY:"playlistReady",VIDEO_TYPE_CHANGED:"videoTypeChanged",UI_READY:"uiReady",__end_marker:!0},r.ERROR={API:{NETWORK:"network",SAS:{GENERIC:"sas",GEO:"geo",DOMAIN:"domain",FUTURE:"future",PAST:"past",DEVICE:"device",PROXY:"proxy",CONCURRENT_STREAMS:"concurrent_streams",INVALID_HEARTBEAT:"invalid_heartbeat",ERROR_DEVICE_INVALID_AUTH_TOKEN:"device_invalid_auth_token",ERROR_DEVICE_LIMIT_REACHED:"device_limit_reached",ERROR_DEVICE_BINDING_FAILED:"device_binding_failed",ERROR_DEVICE_ID_TOO_LONG:"device_id_too_long",ERROR_DRM_RIGHTS_SERVER_ERROR:"drm_server_error",ERROR_DRM_GENERAL_FAILURE:"drm_general_failure",ERROR_INVALID_ENTITLEMENTS:"invalid_entitlements"},CONTENT_TREE:"content_tree",METADATA:"metadata"},PLAYBACK:{GENERIC:"playback",STREAM:"stream",LIVESTREAM:"livestream",NETWORK:"network_error"},CHROMECAST:{MANIFEST:"chromecast_manifest",MEDIAKEYS:"chromecast_mediakeys",NETWORK:"chromecast_network",PLAYBACK:"chromecast_playback"},UNPLAYABLE_CONTENT:"unplayable_content",INVALID_EXTERNAL_ID:"invalid_external_id",EMPTY_CHANNEL:"empty_channel",EMPTY_CHANNEL_SET:"empty_channel_set",CHANNEL_CONTENT:"channel_content",VC:{UNSUPPORTED_ENCODING:"unsupported_encoding",UNABLE_TO_CREATE_VIDEO_ELEMENT:"unable_to_create_video_element"},MEDIA:{MEDIA_ERR_ABORTED:"aborted",MEDIA_ERR_NETWORK:"network_error",MEDIA_ERR_DECODE:"decode_error",MEDIA_ERR_SRC_NOT_SUPPORTED:"unsupported_source"}},r.URLS={VAST_PROXY:a.template("http://player.ooyala.com/nuplayer/mobile_vast_ads_proxy?callback=<%=cb%>&embed_code=<%=embedCode%>&expires=<%=expires%>&tag_url=<%=tagUrl%>"),EXTERNAL_ID:a.template("<%=server%>/player_api/v1/content_tree/external_id/<%=pcode%>/<%=externalId%>"),CONTENT_TREE:a.template("<%=server%>/player_api/v1/content_tree/embed_code/<%=pcode%>/<%=embedCode%>"),METADATA:a.template("<%=server%>/player_api/v1/metadata/embed_code/<%=playerBrandingId%>/<%=embedCode%>?videoPcode=<%=pcode%>"),SAS:a.template("<%=server%>/player_api/v1/authorization/embed_code/<%=pcode%>/<%=embedCode%>"),ANALYTICS:a.template("<%=server%>/reporter.js"),THUMBNAILS:a.template("<%=server%>/api/v1/thumbnail_images/<%=embedCode%>"),__end_marker:!0},r.TRACKING_LEVEL={DEFAULT:"default",ANONYMOUS:"anonymous",DISABLED:"disabled"},r.PLUGINS={ADS:"ads",VIDEO:"video",ANALYTICS:"analytics",PLAYLIST:"playlist",SKIN:"skin"},r.VIDEO={MAIN:"main",ADS:"ads",ENCODING:{DRM:{HLS:"hls_drm",DASH:"dash_drm"},AUDIO:"audio",AUDIO_OGG:"audio_ogg",AUDIO_M4A:"audio_m4a",AUDIO_HLS:"audio_hls",DASH:"dash",HDS:"hds",HLS:"hls",IMA:"ima",PULSE:"pulse",MP4:"mp4",YOUTUBE:"youtube",RTMP:"rtmp",SMOOTH:"smooth",WEBM:"webm",AKAMAI_HD_VOD:"akamai_hd_vod",AKAMAI_HD2_VOD_HLS:"akamai_hd2_vod_hls",AKAMAI_HD2_VOD_HDS:"akamai_hd2_vod_hds",AKAMAI_HD2_HDS:"akamai_hd2_hds",AKAMAI_HD2_HLS:"akamai_hd2_hls",FAXS_HLS:"faxs_hls",WIDEVINE_HLS:"wv_hls",WIDEVINE_MP4:"wv_mp4",WIDEVINE_WVM:"wv_wvm",UNKNOWN:"unknown"},FEATURE:{CLOSED_CAPTIONS:"closedCaptions",VIDEO_OBJECT_SHARING_GIVE:"videoObjectSharingGive",VIDEO_OBJECT_SHARING_TAKE:"videoObjectSharingTake",BITRATE_CONTROL:"bitrateControl"},TECHNOLOGY:{FLASH:"flash",HTML5:"html5",MIXED:"mixed",OTHER:"other"}},r.CSS={VISIBLE_POSITION:"0px",INVISIBLE_POSITION:"-100000px",VISIBLE_DISPLAY:"block",INVISIBLE_DISPLAY:"none",VIDEO_Z_INDEX:1e4,SUPER_Z_INDEX:2e4,ALICE_SKIN_Z_INDEX:11e3,OVERLAY_Z_INDEX:10500,TRANSPARENT_COLOR:"rgba(255, 255, 255, 0)",__end_marker:!0},r.TEMPLATES={RANDOM_PLACE_HOLDER:["[place_random_number_here]","<now>","[timestamp]","<rand-num>","[cache_buster]","[random]"],REFERAK_PLACE_HOLDER:["[referrer_url]","[LR_URL]","[description_url]"],EMBED_CODE_PLACE_HOLDER:["[oo_embedcode]"],MESSAGE:'                  <table width="100%" height="100%" bgcolor="black" style="padding-left:55px; padding-right:55px;                   background-color:black; color: white;">                  <tbody>                  <tr valign="middle">                  <td align="right"><span style="font-family:Arial; font-size:20px">                  <%= message %>                  </span></td></tr></tbody></table>                  ',__end_marker:!0},r.CONSTANTS={AD_PLAY_COUNT_KEY:"oo_ad_play_count",AD_ID_TO_PLAY_COUNT_DIVIDER:":",AD_PLAY_COUNT_DIVIDER:"|",MAX_AD_PLAY_COUNT_HISTORY_LENGTH:20,CONTROLS_BOTTOM_PADDING:10,SEEK_TO_END_LIMIT:3,PLAYER_TYPE:{VIDEO:"video",AUDIO:"audio"},HEVC_CODEC:{HEV1:"hev1",HVC1:"hvc1"},CLOSED_CAPTIONS:{SHOWING:"showing",HIDDEN:"hidden",DISABLED:"disabled"},OOYALA_PLAYER_SETTINGS_KEY:"ooyala_player_settings",PLAYBACK_SPEED:{MIN:.5,MAX:2},__end_marker:!0}},{}],6:[function(e,n,t){!function(r,e,n){r.playerParams=n.safeObject("environment.playerParams",r.playerParams,{}),r.configurePublisher=function(e){r.playerParams.pcode=e.pcode||r.playerParams.pcode||"",r.playerParams.playerBrandingId=e.playerBrandingId||r.playerParams.playerBrandingId||"",r.playerParams.playerType=e.playerType||r.playerParams.playerType||r.CONSTANTS.PLAYER_TYPE.VIDEO,r.playerParams.debug=e.debug||r.playerParams.debug||""},r.isPublisherConfigured=function(){return!(!r.playerParams.pcode||!r.playerParams.playerBrandingId)},r.setServerHost=function(e){r.playerParams.api_ssl_server=e.api_ssl_server||r.playerParams.api_ssl_server||null,r.playerParams.api_server=e.api_server||r.playerParams.api_server||null,r.playerParams.auth_ssl_server=e.auth_ssl_server||r.playerParams.auth_ssl_server||null,r.playerParams.auth_server=e.auth_server||r.playerParams.auth_server||null,r.playerParams.analytics_ssl_server=e.analytics_ssl_server||r.playerParams.analytics_ssl_server||null,r.playerParams.analytics_server=e.analytics_server||r.playerParams.analytics_server||null,s()};var t,a,i,o,l,s=function(){r.SERVER={API:r.isSSL?r.playerParams.api_ssl_server||"https://player.ooyala.com":r.playerParams.api_server||"http://player.ooyala.com",AUTH:r.isSSL?r.playerParams.auth_ssl_server||"https://player.ooyala.com/sas":r.playerParams.auth_server||"http://player.ooyala.com/sas",ANALYTICS:r.isSSL?r.playerParams.analytics_ssl_server||"https://player.ooyala.com":r.playerParams.analytics_server||"http://player.ooyala.com"}};r.playerParams.tweaks=r.playerParams.tweaks||"",r.playerParams.tweaks=n.safeString("environment.playerParams.tweaks",r.playerParams.tweaks,""),r.playerParams.tweaks=r.playerParams.tweaks.split(","),r.tweaks={},r.tweaks["android-enable-hls"]=e.contains(r.playerParams.tweaks,"android-enable-hls"),r.tweaks["html5-force-mp4"]=e.contains(r.playerParams.tweaks,"html5-force-mp4"),r.playerParams.maxAdsTimeout=r.playerParams.maxAdsTimeout||5,r.playerParams.maxVastWrapperDepth=r.playerParams.maxVastWrapperDepth||3,r.playerParams.minLiveSeekWindow=r.playerParams.minLiveSeekWindow||10,r.guid="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=16*Math.random()|0;return("x"==e?n:3&n|8).toString(16)}),r.playerCount=0,r.isProd=!(!r.playerParams.environment||!r.playerParams.environment.match(/^prod/i)),r.platform=window.navigator.platform,r.os=window.navigator.appVersion,r.supportsVideo=!!document.createElement("video").canPlayType,r.browserSupportsCors=function(){try{return e.has(new XMLHttpRequest,"withCredentials")||e.has(XMLHttpRequest.prototype,"withCredentials")}catch(e){return!1}}(),r.isWindows=!!r.platform.match(/Win/),r.isIos=!!r.platform.match(/iPhone|iPad|iPod/),r.isIphone=!!r.platform.match(/iPhone|iPod/),r.isIpad=!!r.platform.match(/iPad/),r.iosMajorVersion=function(){try{return r.isIos?parseInt(window.navigator.userAgent.match(/OS (\d+)/)[1],10):null}catch(e){return null}}(),r.isAndroid=!(!r.os.match(/Android/)||r.os.match(/Windows Phone/)),r.isAndroid4Plus=((t=r.os.match(/Android [\d\.]*;/))&&0<t.length&&(t=parseInt(t[0].substring(t[0].indexOf(" ")+1,t[0].search("[.;]")))),r.isAndroid&&4<=t),r.isAndroid4_4Plus=function(){var e=!1;if(r.isAndroid){var n=r.os.match(/Android [\d\.]*;/);if(n&&n.length){var t=n[0].toLowerCase().match(/android\s([0-9\.]*)/)[1];e=4.3<parseFloat(t)}}return e}(),r.isRimDevice=!(!r.os.match(/BlackBerry/)&&!r.os.match(/PlayBook/)),r.isFirefox=!!window.navigator.userAgent.match(/Firefox/),r.isChrome=!!window.navigator.userAgent.match(/Chrome/)&&!window.navigator.userAgent.match(/Edge/),r.isSafari=!!window.navigator.userAgent.match(/AppleWebKit/)&&!window.navigator.userAgent.match(/Chrome/)&&!window.navigator.userAgent.match(/like iPhone/),r.chromeMajorVersion=function(){try{return parseInt(window.navigator.userAgent.match(/Chrome.([0-9]*)/)[1],10)}catch(e){return null}}(),r.isIE=!!window.navigator.userAgent.match(/MSIE/)||!!window.navigator.userAgent.match(/Trident/),r.isEdge=!!window.navigator.userAgent.match(/Edge/),r.isIE11Plus=function(){if(!window.navigator.userAgent.match(/Trident/))return!1;var e=window.navigator.userAgent.match(/rv:(\d*)/);return 11<=(e&&e[1])}(),r.isWinPhone=!!r.os.match(/Windows Phone/)||!!r.os.match(/ZuneWP/)||!!r.os.match(/XBLWP/),r.isSmartTV=!!window.navigator.userAgent.match(/SmartTV/)||!!window.navigator.userAgent.match(/NetCast/),r.isMacOs=!r.isIos&&!!r.os.match(/Mac/)&&!window.navigator.userAgent.match(/like iPhone/),r.isMacOsLionOrLater=!(null==(a=r.os.match(/Mac OS X ([0-9]+)_([0-9]+)/))||a.length<3)&&10<=parseInt(a[1],10)&&7<=parseInt(a[2],10),r.macOsSafariVersion=function(){try{return r.isMacOs&&r.isSafari?parseInt(window.navigator.userAgent.match(/Version\/(\d+)/)[1],10):null}catch(e){return null}}(),r.isKindleHD=!!r.os.match(/Silk\/2/),r.supportMSE="MediaSource"in window||"WebKitMediaSource"in window||"mozMediaSource"in window||"msMediaSource"in window,r.supportAds=!r.isWinPhone&&!r.os.match(/Android [23]/),r.allowGesture=r.isIos,r.allowAutoPlay=!r.isIos&&!r.isAndroid,r.supportTouch=!(!document.documentElement.hasOwnProperty||!document.documentElement.hasOwnProperty("ontouchstart")),r.docDomain=function(){var e=null;try{e=document.domain}catch(e){}return r._.isEmpty(e)?r.isSmartTV?"SmartTV":"unknown":e}(),r.uiParadigm=(i="tablet",r.isAndroid4Plus&&r.tweaks["android-enable-hls"]?i="tablet":r.isIphone?i="mobile-native":r.os.match(/BlackBerry/)?i="mobile-native":r.os.match(/iPad/)?i="tablet":r.isKindleHD?i="mobile-native":r.os.match(/Silk/)?i="mobile":r.os.match(/Android 2/)?window.orientation%180==0&&window.outerWidth/window.devicePixelRatio<=480?i="mobile":window.outerWidth/window.devicePixelRatio<=560&&(i="mobile"):r.os.match(/Android/)?i="tablet":r.isWinPhone?i="mobile":(r.platform.match(/Mac/)||r.platform.match(/Win/)||r.platform.match(/Linux/))&&(i="desktop"),i),r.requiresSingleVideoElement=r.isIos||r.isAndroid,r.supportedVideoProfiles=r.isIos||r.isAndroid?"baseline":null,r.device=(o="html5",r.isIphone?o="iphone-html5":r.isIpad?o="ipad-html5":r.isAndroid?o="android-html5":r.isRimDevice?o="rim-html5":r.isWinPhone?o="winphone-html5":r.isSmartTV&&(o="smarttv-html5"),o),r.environmentRequiredFeatures=(l=[],r.os.match(/Android 2/)?l.push("html5-playback"):(l.push("html5-playback"),r.supportAds&&l.push("ads")),e.reduce(l,function(e,n){return e+n+" "},"")),r.supportMidRollAds="desktop"===r.uiParadigm&&!r.isIos&&!r.isRimDevice,r.supportCookies=function(){document.cookie="ooyala_cookie_test=true";var e=0<=document.cookie.indexOf("ooyala_cookie_test=true");return document.cookie="ooyala_cookie_test=; expires=Thu, 01 Jan 1970 00:00:00 GMT",e}(),r.isSSL="https:"==document.location.protocol,s(),r.requiredInEnvironment=r.featureEnabled=function(e){return!!r.environmentRequiredFeatures.match(new RegExp(e))},r.chromeExtensionEnabled=!!document.getElementById("ooyala-extension-installed"),r.locale="",r.setLocale=function(e){r.locale=e.toUpperCase()},r.getLocale=function(){return(r.locale||document.documentElement.lang||navigator.language||navigator.userLanguage||"en").substr(0,2).toUpperCase()}}(OO,OO._,OO.HM)},{}],7:[function(e,n,t){!function(l,i,a){l.getRandomString=function(){return Math.random().toString(36).substring(7)},l.safeClone=function(e){if(i.isNumber(e)||i.isString(e)||i.isBoolean(e)||i.isFunction(e)||i.isNull(e)||i.isUndefined(e))return e;var n=e instanceof Array?[]:{};try{a.extend(!0,n,e)}catch(e){l.log("deep clone error",e)}return n},l.d=function(){l.isDebug&&l.log.apply(l,arguments),l.$("#OOYALA_DEBUG_CONSOLE").append(JSON.stringify(l.safeClone(arguments))+"<br>")},l.inherit=function(e,n){if("function"!=typeof e)return l.log("invalid inherit, ParentClass need to be a class",e),null;var t=function(){e.apply(this,arguments),"function"==typeof n&&n.apply(this,arguments)},r=new e;return l._.extend(t.prototype,r),t.prototype.parentClass=r,t};var r={};l.attachStyle=function(e,n){var t=a('<style type="text/css">'+e+"</style>").appendTo("head");r[n]=r[n]||[],r[n].push(t)},l.removeStyles=function(e){l._.each(r[e],function(e){e.remove()})},l.getInnerProperty=function(e,n){for(var t=e,r=n;0<r.length;){var a=r.shift();if(i.isNull(t)||!i.isObject(t)||i.isFunction(t)||i.isArray(t))return null;t=t[a]}return t},l.formatSeconds=function(e){var n=parseInt(e,10)%60,t=parseInt(e/3600,10),r=parseInt((e-3600*t)/60,10);return t<10&&(t="0"+t),r<10&&(r="0"+r),n<10&&(n="0"+n),0<parseInt(t,10)?t+":"+r+":"+n:r+":"+n},l.timeStringToSeconds=function(e){var n=(e||"").split(":");return i.reduce(n,function(e,n){return 60*e+parseInt(n,10)},0)},l.leftPadding=function(e,n){for(var t=e?e.toString():"";t.length<n;)t="0"+t;return t},l.getColorString=function(e){return"#"+l.leftPadding(e.toString(16),6).toUpperCase()},l.hexToRgb=function(e){return[(16711680&e)>>16,(65280&e)>>8,255&e]},l.changeColor=function(e,n,t){var r=t?Math.max:Math.min,a=t?0:255,i=Math.round(255*n)*(t?-1:1),o=l.hexToRgb(e);return[l.leftPadding(r(o[0]+i,a).toString(16),2),l.leftPadding(r(o[1]+i,a).toString(16),2),l.leftPadding(r(o[2]+i,a).toString(16),2)].join("")},l.decode64=function(e){e=e.replace(/\n/g,"");var n,t="",r=0,a=[];if(window.atob)return atob(e);do{for(n=0;n<4;n++)a[n]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(r++));t+=String.fromCharCode(a[0]<<2|a[1]>>4,64==a[2]?0:(15&a[1])<<4|a[2]>>2,64==a[3]?0:(3&a[2])<<6|a[3])}while(r<e.length);return t.replace(/\0/g,"")},l.pixelPing=function(e){var n=new Image;n.onerror=n.onabort=function(){l.d("onerror:",e)},n.src=l.getNormalizedTagUrl(e)},l.pixelPings=function(e){i.isEmpty(e)||i.each(e,function(e){l.pixelPing(e)},this)},l.stringToBoolean=function(e){return"string"==typeof e?-1<e.toLowerCase().indexOf("true")||-1<e.toLowerCase().indexOf("yes"):!!e},l.regexEscape=function(e){return e.replace(/[<>()\[\]{}]/g,"\\$&")},l.getNormalizedTagUrl=function(r,e){var n=(new Date).getTime(),t=escape(document.URL),a=function(e,t){i.each(e,function(e){var n=new RegExp("("+l.regexEscape(e)+")","gi");r=r.replace(n,t)},this)};return a(l.TEMPLATES.RANDOM_PLACE_HOLDER,n),a(l.TEMPLATES.REFERAK_PLACE_HOLDER,t),e&&a(l.TEMPLATES.EMBED_CODE_PLACE_HOLDER,e),r},l.safeSeekRange=function(e){return{start:0<e.length?e.start(0):0,end:0<e.length?e.end(0):0}},l.loadedJS=l.loadedJS||{},l.jsOnSuccessList=l.jsOnSuccessList||{},l.safeFuncCall=function(e){if("function"==typeof e)try{e.apply()}catch(e){l.log("Can not invoke function!",e)}},l.loadScriptOnce=function(e,n,t,r){return l.jsOnSuccessList[e]=l.jsOnSuccessList[e]||[],l.loadedJS[e]?("loaded"===l.loadedJS[e]?l.safeFuncCall(n):"loading"===l.loadedJS[e]&&l.jsOnSuccessList[e].unshift(n),!1):(l.loadedJS[e]="loading",a.ajax({url:e,type:"GET",cache:!0,dataType:"script",timeout:r||15e3,success:function(){l.loadedJS[e]="loaded",l.jsOnSuccessList[e].unshift(n),l._.each(l.jsOnSuccessList[e],function(e){l.safeFuncCall(e)},this),l.jsOnSuccessList[e]=[]},error:function(){l.safeFuncCall(t)}}),!0)};try{l.localStorage=window.localStorage}catch(e){l.log(e)}l.localStorage||(l.localStorage={getItem:function(e){return e&&this.hasOwnProperty(e)?unescape(document.cookie.replace(new RegExp("(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*"),"$1")):null},key:function(e){return unescape(document.cookie.replace(/\s*\=(?:.(?!;))*$/,"").split(/\s*\=(?:[^;](?!;))*[^;]?;\s*/)[e])},setItem:function(e,n){e&&(document.cookie=escape(e)+"="+escape(n)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/",this.length=document.cookie.match(/\=/g).length)},length:0,removeItem:function(e){e&&this.hasOwnProperty(e)&&(document.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/",this.length--)},hasOwnProperty:function(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)}},l.localStorage.length=(document.cookie.match(/\=/g)||l.localStorage).length),l.setItem=function(e,n){try{l.localStorage.setItem(e,n)}catch(e){l.log(e)}},l.ensureNumber=function(e,n){var t;return(null===e||i.isArray(e))&&(e=NaN),t=i.isNumber(e)?e:Number(e),isFinite(t)?t:void 0===n?null:n},l.JSON=window.JSON}(OO,OO._,OO.$)},{}],8:[function(e,n,t){var r=function(i,e){var a=function(e){if(this.config=e||{},!i.isObject(this.config))throw new Error("Hazmat is not initialized properly");this.fail=i.isFunction(this.config.fail)?this.config.fail:a.fail,this.warn=i.isFunction(this.config.warn)?this.config.warn:a.warn,this.log=i.isFunction(this.config.log)?this.config.log:a.log};return i.extend(a,{ID_REGEX:/^[\_A-Za-z0-9]+$/,create:function(e){return new a(e)},noConflict:function(){return e.Hazmat=a.original,a},log:function(){console&&i.isFunction(console.log)&&console.log.apply(console,arguments)},fail:function(e,n){var t=e||"",r=n||{};throw a.log("Hazmat Failure::",t,r),new Error("Hazmat Failure "+t.toString())},warn:function(e,n){var t=e||"",r=n||{};a.log("Hazmat Warning::",t,r)},fixDomId:function(e){return i.isString(e)&&0<e.length?e.replace(/[^A-Za-z0-9\_]/g,""):null},isDomId:function(e){return i.isString(e)&&e.match(a.ID_REGEX)},__placeholder:!0}),i.extend(a.prototype,{_safeValue:function(e,n,t,r){var a=t;return i.isFunction(t)&&(t=i.once(function(){try{return a.apply(this,arguments)}catch(e){}})),r.checker(n)?n:r.evalFallback&&i.isFunction(t)&&r.checker(t(n))?(this.warn("Expected valid "+r.name+" for "+e+" but was able to sanitize it:",[n,t(n)]),t(n)):r.checker(a)?(this.warn("Expected valid "+r.name+" for "+e+" but was able to fallback to default value:",[n,a]),a):void this.fail("Expected valid "+r.name+" for "+e+" but received:",n)},safeString:function(e,n,t){return this._safeValue(e,n,t,{name:"String",checker:i.isString,evalFallback:!0})},safeStringOrNull:function(e,n,t){return null==n?n:this._safeValue(e,n,t,{name:"String",checker:i.isString,evalFallback:!0})},safeDomId:function(e,n,t){return this._safeValue(e,n,t,{name:"DOM ID",checker:a.isDomId,evalFallback:!0})},safeFunction:function(e,n,t){return this._safeValue(e,n,t,{name:"Function",checker:i.isFunction,evalFallback:!1})},safeFunctionOrNull:function(e,n,t){return null==n?n:this._safeValue(e,n,t,{name:"Function",checker:i.isFunction,evalFallback:!1})},safeObject:function(e,n,t){return this._safeValue(e,n,t,{name:"Object",checker:i.isObject,evalFallback:!1})},safeObjectOrNull:function(e,n,t){return null==n?n:this._safeValue(e,n,t,{name:"Object",checker:i.isObject,evalFallback:!1})},safeArray:function(e,n,t){return this._safeValue(e,n,t,{name:"Array",checker:i.isArray,evalFallback:!1})},safeArrayOfElements:function(e,n,t,r){var a=this._safeValue(e,n,r,{name:"Array",checker:i.isArray,evalFallback:!1});return i.map(a,t)},__placeholder:!0}),a};if("undefined"!=typeof window&&void 0!==window._){(i=r(window._,window)).original=window.Hazmat,window.Hazmat=i}else{var a=e("underscore"),i=r(a);a.extend(t,i)}},{underscore:9}],9:[function(e,Q,J){(function(X){!function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof X&&X.global===X&&X||this||{},n=e._,r=Array.prototype,o=Object.prototype,u="undefined"!=typeof Symbol?Symbol.prototype:null,a=r.push,s=r.slice,p=o.toString,i=o.hasOwnProperty,t=Array.isArray,l=Object.keys,c=Object.create,d=function(){},f=function(e){return e instanceof f?e:this instanceof f?void(this._wrapped=e):new f(e)};void 0===J||J.nodeType?e._=f:(void 0!==Q&&!Q.nodeType&&Q.exports&&(J=Q.exports=f),J._=f),f.VERSION="1.9.1";var A,E=function(a,i,e){if(void 0===i)return a;switch(null==e?3:e){case 1:return function(e){return a.call(i,e)};case 3:return function(e,n,t){return a.call(i,e,n,t)};case 4:return function(e,n,t,r){return a.call(i,e,n,t,r)}}return function(){return a.apply(i,arguments)}},_=function(e,n,t){return f.iteratee!==A?f.iteratee(e,n):null==e?f.identity:f.isFunction(e)?E(e,n,t):f.isObject(e)&&!f.isArray(e)?f.matcher(e):f.property(e)};f.iteratee=A=function(e,n){return _(e,n,1/0)};var m=function(a,i){return i=null==i?a.length-1:+i,function(){for(var e=Math.max(arguments.length-i,0),n=Array(e),t=0;t<e;t++)n[t]=arguments[t+i];switch(i){case 0:return a.call(this,n);case 1:return a.call(this,arguments[0],n);case 2:return a.call(this,arguments[0],arguments[1],n)}var r=Array(i+1);for(t=0;t<i;t++)r[t]=arguments[t];return r[i]=n,a.apply(this,r)}},h=function(e){if(!f.isObject(e))return{};if(c)return c(e);d.prototype=e;var n=new d;return d.prototype=null,n},g=function(n){return function(e){return null==e?void 0:e[n]}},v=function(e,n){return null!=e&&i.call(e,n)},T=function(e,n){for(var t=n.length,r=0;r<t;r++){if(null==e)return;e=e[n[r]]}return t?e:void 0},I=Math.pow(2,53)-1,S=g("length"),O=function(e){var n=S(e);return"number"==typeof n&&0<=n&&n<=I};f.each=f.forEach=function(e,n,t){var r,a;if(n=E(n,t),O(e))for(r=0,a=e.length;r<a;r++)n(e[r],r,e);else{var i=f.keys(e);for(r=0,a=i.length;r<a;r++)n(e[i[r]],i[r],e)}return e},f.map=f.collect=function(e,n,t){n=_(n,t);for(var r=!O(e)&&f.keys(e),a=(r||e).length,i=Array(a),o=0;o<a;o++){var l=r?r[o]:o;i[o]=n(e[l],l,e)}return i};var y=function(s){return function(e,n,t,r){var a=3<=arguments.length;return function(e,n,t,r){var a=!O(e)&&f.keys(e),i=(a||e).length,o=0<s?0:i-1;for(r||(t=e[a?a[o]:o],o+=s);0<=o&&o<i;o+=s){var l=a?a[o]:o;t=n(t,e[l],l,e)}return t}(e,E(n,r,4),t,a)}};f.reduce=f.foldl=f.inject=y(1),f.reduceRight=f.foldr=y(-1),f.find=f.detect=function(e,n,t){var r=(O(e)?f.findIndex:f.findKey)(e,n,t);if(void 0!==r&&-1!==r)return e[r]},f.filter=f.select=function(e,r,n){var a=[];return r=_(r,n),f.each(e,function(e,n,t){r(e,n,t)&&a.push(e)}),a},f.reject=function(e,n,t){return f.filter(e,f.negate(_(n)),t)},f.every=f.all=function(e,n,t){n=_(n,t);for(var r=!O(e)&&f.keys(e),a=(r||e).length,i=0;i<a;i++){var o=r?r[i]:i;if(!n(e[o],o,e))return!1}return!0},f.some=f.any=function(e,n,t){n=_(n,t);for(var r=!O(e)&&f.keys(e),a=(r||e).length,i=0;i<a;i++){var o=r?r[i]:i;if(n(e[o],o,e))return!0}return!1},f.contains=f.includes=f.include=function(e,n,t,r){return O(e)||(e=f.values(e)),("number"!=typeof t||r)&&(t=0),0<=f.indexOf(e,n,t)},f.invoke=m(function(e,t,r){var a,i;return f.isFunction(t)?i=t:f.isArray(t)&&(a=t.slice(0,-1),t=t[t.length-1]),f.map(e,function(e){var n=i;if(!n){if(a&&a.length&&(e=T(e,a)),null==e)return;n=e[t]}return null==n?n:n.apply(e,r)})}),f.pluck=function(e,n){return f.map(e,f.property(n))},f.where=function(e,n){return f.filter(e,f.matcher(n))},f.findWhere=function(e,n){return f.find(e,f.matcher(n))},f.max=function(e,r,n){var t,a,i=-1/0,o=-1/0;if(null==r||"number"==typeof r&&"object"!=typeof e[0]&&null!=e)for(var l=0,s=(e=O(e)?e:f.values(e)).length;l<s;l++)null!=(t=e[l])&&i<t&&(i=t);else r=_(r,n),f.each(e,function(e,n,t){a=r(e,n,t),(o<a||a===-1/0&&i===-1/0)&&(i=e,o=a)});return i},f.min=function(e,r,n){var t,a,i=1/0,o=1/0;if(null==r||"number"==typeof r&&"object"!=typeof e[0]&&null!=e)for(var l=0,s=(e=O(e)?e:f.values(e)).length;l<s;l++)null!=(t=e[l])&&t<i&&(i=t);else r=_(r,n),f.each(e,function(e,n,t){((a=r(e,n,t))<o||a===1/0&&i===1/0)&&(i=e,o=a)});return i},f.shuffle=function(e){return f.sample(e,1/0)},f.sample=function(e,n,t){if(null==n||t)return O(e)||(e=f.values(e)),e[f.random(e.length-1)];var r=O(e)?f.clone(e):f.values(e),a=S(r);n=Math.max(Math.min(n,a),0);for(var i=a-1,o=0;o<n;o++){var l=f.random(o,i),s=r[o];r[o]=r[l],r[l]=s}return r.slice(0,n)},f.sortBy=function(e,r,n){var a=0;return r=_(r,n),f.pluck(f.map(e,function(e,n,t){return{value:e,index:a++,criteria:r(e,n,t)}}).sort(function(e,n){var t=e.criteria,r=n.criteria;if(t!==r){if(r<t||void 0===t)return 1;if(t<r||void 0===r)return-1}return e.index-n.index}),"value")};var D=function(o,n){return function(r,a,e){var i=n?[[],[]]:{};return a=_(a,e),f.each(r,function(e,n){var t=a(e,n,r);o(i,e,t)}),i}};f.groupBy=D(function(e,n,t){v(e,t)?e[t].push(n):e[t]=[n]}),f.indexBy=D(function(e,n,t){e[t]=n}),f.countBy=D(function(e,n,t){v(e,t)?e[t]++:e[t]=1});var P=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;f.toArray=function(e){return e?f.isArray(e)?s.call(e):f.isString(e)?e.match(P):O(e)?f.map(e,f.identity):f.values(e):[]},f.size=function(e){return null==e?0:O(e)?e.length:f.keys(e).length},f.partition=D(function(e,n,t){e[t?0:1].push(n)},!0),f.first=f.head=f.take=function(e,n,t){return null==e||e.length<1?null==n?void 0:[]:null==n||t?e[0]:f.initial(e,e.length-n)},f.initial=function(e,n,t){return s.call(e,0,Math.max(0,e.length-(null==n||t?1:n)))},f.last=function(e,n,t){return null==e||e.length<1?null==n?void 0:[]:null==n||t?e[e.length-1]:f.rest(e,Math.max(0,e.length-n))},f.rest=f.tail=f.drop=function(e,n,t){return s.call(e,null==n||t?1:n)},f.compact=function(e){return f.filter(e,Boolean)};var L=function(e,n,t,r){for(var a=(r=r||[]).length,i=0,o=S(e);i<o;i++){var l=e[i];if(O(l)&&(f.isArray(l)||f.isArguments(l)))if(n)for(var s=0,c=l.length;s<c;)r[a++]=l[s++];else L(l,n,t,r),a=r.length;else t||(r[a++]=l)}return r};f.flatten=function(e,n){return L(e,n,!1)},f.without=m(function(e,n){return f.difference(e,n)}),f.uniq=f.unique=function(e,n,t,r){f.isBoolean(n)||(r=t,t=n,n=!1),null!=t&&(t=_(t,r));for(var a=[],i=[],o=0,l=S(e);o<l;o++){var s=e[o],c=t?t(s,o,e):s;n&&!t?(o&&i===c||a.push(s),i=c):t?f.contains(i,c)||(i.push(c),a.push(s)):f.contains(a,s)||a.push(s)}return a},f.union=m(function(e){return f.uniq(L(e,!0,!0))}),f.intersection=function(e){for(var n=[],t=arguments.length,r=0,a=S(e);r<a;r++){var i=e[r];if(!f.contains(n,i)){var o;for(o=1;o<t&&f.contains(arguments[o],i);o++);o===t&&n.push(i)}}return n},f.difference=m(function(e,n){return n=L(n,!0,!0),f.filter(e,function(e){return!f.contains(n,e)})}),f.unzip=function(e){for(var n=e&&f.max(e,S).length||0,t=Array(n),r=0;r<n;r++)t[r]=f.pluck(e,r);return t},f.zip=m(f.unzip),f.object=function(e,n){for(var t={},r=0,a=S(e);r<a;r++)n?t[e[r]]=n[r]:t[e[r][0]]=e[r][1];return t};var R=function(i){return function(e,n,t){n=_(n,t);for(var r=S(e),a=0<i?0:r-1;0<=a&&a<r;a+=i)if(n(e[a],a,e))return a;return-1}};f.findIndex=R(1),f.findLastIndex=R(-1),f.sortedIndex=function(e,n,t,r){for(var a=(t=_(t,r,1))(n),i=0,o=S(e);i<o;){var l=Math.floor((i+o)/2);t(e[l])<a?i=l+1:o=l}return i};var C=function(i,o,l){return function(e,n,t){var r=0,a=S(e);if("number"==typeof t)0<i?r=0<=t?t:Math.max(t+a,r):a=0<=t?Math.min(t+1,a):t+a+1;else if(l&&t&&a)return e[t=l(e,n)]===n?t:-1;if(n!=n)return 0<=(t=o(s.call(e,r,a),f.isNaN))?t+r:-1;for(t=0<i?r:a-1;0<=t&&t<a;t+=i)if(e[t]===n)return t;return-1}};f.indexOf=C(1,f.findIndex,f.sortedIndex),f.lastIndexOf=C(-1,f.findLastIndex),f.range=function(e,n,t){null==n&&(n=e||0,e=0),t||(t=n<e?-1:1);for(var r=Math.max(Math.ceil((n-e)/t),0),a=Array(r),i=0;i<r;i++,e+=t)a[i]=e;return a},f.chunk=function(e,n){if(null==n||n<1)return[];for(var t=[],r=0,a=e.length;r<a;)t.push(s.call(e,r,r+=n));return t};var k=function(e,n,t,r,a){if(!(r instanceof n))return e.apply(t,a);var i=h(e.prototype),o=e.apply(i,a);return f.isObject(o)?o:i};f.bind=m(function(n,t,r){if(!f.isFunction(n))throw new TypeError("Bind must be called on a function");var a=m(function(e){return k(n,a,t,this,r.concat(e))});return a}),f.partial=m(function(a,i){var o=f.partial.placeholder,l=function(){for(var e=0,n=i.length,t=Array(n),r=0;r<n;r++)t[r]=i[r]===o?arguments[e++]:i[r];for(;e<arguments.length;)t.push(arguments[e++]);return k(a,l,this,this,t)};return l}),(f.partial.placeholder=f).bindAll=m(function(e,n){var t=(n=L(n,!1,!1)).length;if(t<1)throw new Error("bindAll must be passed function names");for(;t--;){var r=n[t];e[r]=f.bind(e[r],e)}}),f.memoize=function(r,a){var i=function(e){var n=i.cache,t=""+(a?a.apply(this,arguments):e);return v(n,t)||(n[t]=r.apply(this,arguments)),n[t]};return i.cache={},i},f.delay=m(function(e,n,t){return setTimeout(function(){return e.apply(null,t)},n)}),f.defer=f.partial(f.delay,f,1),f.throttle=function(t,r,a){var i,o,l,s,c=0;a||(a={});var d=function(){c=!1===a.leading?0:f.now(),i=null,s=t.apply(o,l),i||(o=l=null)},e=function(){var e=f.now();c||!1!==a.leading||(c=e);var n=r-(e-c);return o=this,l=arguments,n<=0||r<n?(i&&(clearTimeout(i),i=null),c=e,s=t.apply(o,l),i||(o=l=null)):i||!1===a.trailing||(i=setTimeout(d,n)),s};return e.cancel=function(){clearTimeout(i),c=0,i=o=l=null},e},f.debounce=function(t,r,a){var i,o,l=function(e,n){i=null,n&&(o=t.apply(e,n))},e=m(function(e){if(i&&clearTimeout(i),a){var n=!i;i=setTimeout(l,r),n&&(o=t.apply(this,e))}else i=f.delay(l,r,this,e);return o});return e.cancel=function(){clearTimeout(i),i=null},e},f.wrap=function(e,n){return f.partial(n,e)},f.negate=function(e){return function(){return!e.apply(this,arguments)}},f.compose=function(){var t=arguments,r=t.length-1;return function(){for(var e=r,n=t[r].apply(this,arguments);e--;)n=t[e].call(this,n);return n}},f.after=function(e,n){return function(){if(--e<1)return n.apply(this,arguments)}},f.before=function(e,n){var t;return function(){return 0<--e&&(t=n.apply(this,arguments)),e<=1&&(n=null),t}},f.once=f.partial(f.before,2),f.restArguments=m;var N=!{toString:null}.propertyIsEnumerable("toString"),V=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],w=function(e,n){var t=V.length,r=e.constructor,a=f.isFunction(r)&&r.prototype||o,i="constructor";for(v(e,i)&&!f.contains(n,i)&&n.push(i);t--;)(i=V[t])in e&&e[i]!==a[i]&&!f.contains(n,i)&&n.push(i)};f.keys=function(e){if(!f.isObject(e))return[];if(l)return l(e);var n=[];for(var t in e)v(e,t)&&n.push(t);return N&&w(e,n),n},f.allKeys=function(e){if(!f.isObject(e))return[];var n=[];for(var t in e)n.push(t);return N&&w(e,n),n},f.values=function(e){for(var n=f.keys(e),t=n.length,r=Array(t),a=0;a<t;a++)r[a]=e[n[a]];return r},f.mapObject=function(e,n,t){n=_(n,t);for(var r=f.keys(e),a=r.length,i={},o=0;o<a;o++){var l=r[o];i[l]=n(e[l],l,e)}return i},f.pairs=function(e){for(var n=f.keys(e),t=n.length,r=Array(t),a=0;a<t;a++)r[a]=[n[a],e[n[a]]];return r},f.invert=function(e){for(var n={},t=f.keys(e),r=0,a=t.length;r<a;r++)n[e[t[r]]]=t[r];return n},f.functions=f.methods=function(e){var n=[];for(var t in e)f.isFunction(e[t])&&n.push(t);return n.sort()};var b=function(s,c){return function(e){var n=arguments.length;if(c&&(e=Object(e)),n<2||null==e)return e;for(var t=1;t<n;t++)for(var r=arguments[t],a=s(r),i=a.length,o=0;o<i;o++){var l=a[o];c&&void 0!==e[l]||(e[l]=r[l])}return e}};f.extend=b(f.allKeys),f.extendOwn=f.assign=b(f.keys),f.findKey=function(e,n,t){n=_(n,t);for(var r,a=f.keys(e),i=0,o=a.length;i<o;i++)if(n(e[r=a[i]],r,e))return r};var M,U,x=function(e,n,t){return n in t};f.pick=m(function(e,n){var t={},r=n[0];if(null==e)return t;f.isFunction(r)?(1<n.length&&(r=E(r,n[1])),n=f.allKeys(e)):(r=x,n=L(n,!1,!1),e=Object(e));for(var a=0,i=n.length;a<i;a++){var o=n[a],l=e[o];r(l,o,e)&&(t[o]=l)}return t}),f.omit=m(function(e,t){var n,r=t[0];return f.isFunction(r)?(r=f.negate(r),1<t.length&&(n=t[1])):(t=f.map(L(t,!1,!1),String),r=function(e,n){return!f.contains(t,n)}),f.pick(e,r,n)}),f.defaults=b(f.allKeys,!0),f.create=function(e,n){var t=h(e);return n&&f.extendOwn(t,n),t},f.clone=function(e){return f.isObject(e)?f.isArray(e)?e.slice():f.extend({},e):e},f.tap=function(e,n){return n(e),e},f.isMatch=function(e,n){var t=f.keys(n),r=t.length;if(null==e)return!r;for(var a=Object(e),i=0;i<r;i++){var o=t[i];if(n[o]!==a[o]||!(o in a))return!1}return!0},M=function(e,n,t,r){if(e===n)return 0!==e||1/e==1/n;if(null==e||null==n)return!1;if(e!=e)return n!=n;var a=typeof e;return("function"===a||"object"===a||"object"==typeof n)&&U(e,n,t,r)},U=function(e,n,t,r){e instanceof f&&(e=e._wrapped),n instanceof f&&(n=n._wrapped);var a=p.call(e);if(a!==p.call(n))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+n;case"[object Number]":return+e!=+e?+n!=+n:0==+e?1/+e==1/n:+e==+n;case"[object Date]":case"[object Boolean]":return+e==+n;case"[object Symbol]":return u.valueOf.call(e)===u.valueOf.call(n)}var i="[object Array]"===a;if(!i){if("object"!=typeof e||"object"!=typeof n)return!1;var o=e.constructor,l=n.constructor;if(o!==l&&!(f.isFunction(o)&&o instanceof o&&f.isFunction(l)&&l instanceof l)&&"constructor"in e&&"constructor"in n)return!1}r=r||[];for(var s=(t=t||[]).length;s--;)if(t[s]===e)return r[s]===n;if(t.push(e),r.push(n),i){if((s=e.length)!==n.length)return!1;for(;s--;)if(!M(e[s],n[s],t,r))return!1}else{var c,d=f.keys(e);if(s=d.length,f.keys(n).length!==s)return!1;for(;s--;)if(c=d[s],!v(n,c)||!M(e[c],n[c],t,r))return!1}return t.pop(),r.pop(),!0},f.isEqual=function(e,n){return M(e,n)},f.isEmpty=function(e){return null==e||(O(e)&&(f.isArray(e)||f.isString(e)||f.isArguments(e))?0===e.length:0===f.keys(e).length)},f.isElement=function(e){return!(!e||1!==e.nodeType)},f.isArray=t||function(e){return"[object Array]"===p.call(e)},f.isObject=function(e){var n=typeof e;return"function"===n||"object"===n&&!!e},f.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(n){f["is"+n]=function(e){return p.call(e)==="[object "+n+"]"}}),f.isArguments(arguments)||(f.isArguments=function(e){return v(e,"callee")});var F=e.document&&e.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof F&&(f.isFunction=function(e){return"function"==typeof e||!1}),f.isFinite=function(e){return!f.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},f.isNaN=function(e){return f.isNumber(e)&&isNaN(e)},f.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===p.call(e)},f.isNull=function(e){return null===e},f.isUndefined=function(e){return void 0===e},f.has=function(e,n){if(!f.isArray(n))return v(e,n);for(var t=n.length,r=0;r<t;r++){var a=n[r];if(null==e||!i.call(e,a))return!1;e=e[a]}return!!t},f.noConflict=function(){return e._=n,this},f.identity=function(e){return e},f.constant=function(e){return function(){return e}},f.noop=function(){},f.property=function(n){return f.isArray(n)?function(e){return T(e,n)}:g(n)},f.propertyOf=function(n){return null==n?function(){}:function(e){return f.isArray(e)?T(n,e):n[e]}},f.matcher=f.matches=function(n){return n=f.extendOwn({},n),function(e){return f.isMatch(e,n)}},f.times=function(e,n,t){var r=Array(Math.max(0,e));n=E(n,t,1);for(var a=0;a<e;a++)r[a]=n(a);return r},f.random=function(e,n){return null==n&&(n=e,e=0),e+Math.floor(Math.random()*(n-e+1))},f.now=Date.now||function(){return(new Date).getTime()};var H={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},j=f.invert(H),B=function(n){var t=function(e){return n[e]},e="(?:"+f.keys(n).join("|")+")",r=RegExp(e),a=RegExp(e,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(a,t):e}};f.escape=B(H),f.unescape=B(j),f.result=function(e,n,t){f.isArray(n)||(n=[n]);var r=n.length;if(!r)return f.isFunction(t)?t.call(e):t;for(var a=0;a<r;a++){var i=null==e?void 0:e[n[a]];void 0===i&&(i=t,a=r),e=f.isFunction(i)?i.call(e):i}return e};var Y=0;f.uniqueId=function(e){var n=++Y+"";return e?e+n:n},f.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var G=/(.)^/,W={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},q=/\\|'|\r|\n|\u2028|\u2029/g,K=function(e){return"\\"+W[e]};f.template=function(i,e,n){!e&&n&&(e=n),e=f.defaults({},e,f.templateSettings);var t,r=RegExp([(e.escape||G).source,(e.interpolate||G).source,(e.evaluate||G).source].join("|")+"|$","g"),o=0,l="__p+='";i.replace(r,function(e,n,t,r,a){return l+=i.slice(o,a).replace(q,K),o=a+e.length,n?l+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":t?l+="'+\n((__t=("+t+"))==null?'':__t)+\n'":r&&(l+="';\n"+r+"\n__p+='"),e}),l+="';\n",e.variable||(l="with(obj||{}){\n"+l+"}\n"),l="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+l+"return __p;\n";try{t=new Function(e.variable||"obj","_",l)}catch(e){throw e.source=l,e}var a=function(e){return t.call(this,e,f)},s=e.variable||"obj";return a.source="function("+s+"){\n"+l+"}",a},f.chain=function(e){var n=f(e);return n._chain=!0,n};var z=function(e,n){return e._chain?f(n).chain():n};f.mixin=function(t){return f.each(f.functions(t),function(e){var n=f[e]=t[e];f.prototype[e]=function(){var e=[this._wrapped];return a.apply(e,arguments),z(this,n.apply(f,e))}}),f},f.mixin(f),f.each(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=r[n];f.prototype[n]=function(){var e=this._wrapped;return t.apply(e,arguments),"shift"!==n&&"splice"!==n||0!==e.length||delete e[0],z(this,e)}}),f.each(["concat","join","slice"],function(e){var n=r[e];f.prototype[e]=function(){return z(this,n.apply(this._wrapped,arguments))}}),f.prototype.value=function(){return this._wrapped},f.prototype.valueOf=f.prototype.toJSON=f.prototype.value,f.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return f})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],10:[function(n,e,t){(function(me){"use strict";function he(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ge(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=[],r=!0,a=!1,i=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done)&&(t.push(o.value),!n||t.length!==n);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}return t}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var e=n("underscore"),ve=e.bind,Te=e.uniqueId,Ie=e.contains,Se=e.each,Oe=e.extend,ye=e.delay,De=e.isNumber,Pe=e.isString,Le=e.isArray,Re=e.clone,Ce=e.isFinite,ke=e.isEmpty,Ne=e.find,Ve=e.max,we=e.compose,be=e.map,Me=e.without,Ue=e.first,xe=e.has,Fe=e.isFunction;n("../html5-common/js/utils/InitModules/InitOO.js"),n("../html5-common/js/utils/InitModules/InitOOUnderscore.js"),n("../html5-common/js/utils/InitModules/InitOOHazmat.js"),n("../html5-common/js/utils/InitModules/InitOOPlayerParamsDefault.js"),n("../html5-common/js/utils/constants.js"),n("../html5-common/js/utils/utils.js"),n("../html5-common/js/utils/environment.js");var He=n("../utils/ad_manager_utils.js");OO.Ads.manager(function(){return new function(){var y=this;this.name="vast",this.amc=null,this.testMode=!1,this.ADTYPE="vast",this.ready=!1,this.initTime=Date.now(),this.currentDepth=0,this.loaded=!1,this.embedCode="unknown",this.lastOverlayAd=null,this.adTrackingInfo={},this.VAST_AD_CONTAINER="#vast_ad_container",this.currentAdBeingLoaded=null,this.wrapperParentId=null,this.adBreaks=[];var r={technology:OO.VIDEO.TECHNOLOGY.HTML5,features:[OO.VIDEO.FEATURE.VIDEO_OBJECT_SHARING_GIVE]};this.mainContentDuration=-1,this.testMode=!1,this.allAdInfo=null,this.adTagUrlOverride=null,this.showLinearAdSkipButton=!1;var o=null,l=!1,s=!1,c=!1,d=!1,u=!1,a=null,p=null,f=null,e=null;this.VPAID_AD_IFRAME_TIMEOUT=5e3,this.VPAID_AD_LOADED_TIMEOUT=5e3,this.VPAID_AD_STARTED_TIMEOUT=5e3,this.VPAID_AD_STOPPED_TIMEOUT=5e3,this._slot=null,this._videoSlot=null,this._videoSlotCanAutoPlay=!0,this.environmentVariables={},this._eventsCallbacks={},this._parameters={};var A={AD_LOADED:"AdLoaded",AD_STARTED:"AdStarted",AD_STOPPED:"AdStopped",AD_SKIPPED:"AdSkipped",AD_SKIPPABLE_STATE_CHANGE:"AdSkippableStateChange",AD_DURATION_CHANGE:"AdDurationChange",AD_SIZE_CHANGE:"AdSizeChange",AD_LINEAR_CHANGE:"AdLinearChange",AD_INTERACTION:"AdInteraction",AD_IMPRESSION:"AdImpression",AD_CLICK_THRU:"AdClickThru",AD_PAUSED:"AdPaused",AD_PLAYING:"AdPlaying",AD_VIDEO_START:"AdVideoStart",AD_VIDEO_COMPLETE:"AdVideoComplete",AD_ERROR:"AdError",AD_LOG:"AdLog",AD_REMAINING_TIME_CHANGE:"AdRemainingTimeChange",AD_VIDEO_FIRST_QUARTILE:"AdVideoFirstQuartile",AD_VIDEO_MIDPOINT:"AdVideoMidpoint",AD_VIDEO_THIRD_QUARTILE:"AdVideoThirdQuartile",AD_USER_ACCEPT_INVITATION:"AdUserAcceptInvitation",AD_VOLUME_CHANGE:"AdVolumeChange",AD_USER_MINIMIZE:"AdUserMinimize"};this.node=null;var E=(this.ads={},!1);this.ERROR_CODES={XML_PARSING:100,SCHEMA_VALIDATION:101,VERSION_UNSUPPORTED:102,AD_TYPE_UNSUPPORTED:200,VIDEO_EXPECT_DIFFERENT_LINEARITY:201,VIDEO_EXPECT_DIFFERENT_DURATION:202,VIDEO_EXPECT_DIFFERENT_SIZE:203,GENERAL_WRAPPER:300,WRAPPER_URI_TIMEOUT:301,WRAPPER_LIMIT_REACHED:302,WRAPPER_NO_ADS:303,GENERAL_LINEAR_ADS:400,FILE_NOT_FOUND:401,MEDIAFILE_TIMEOUT:402,MEDIAFILE_UNSUPPORTED:403,MEDIAFILE_DISPLAY_PROBLEM:405,GENERAL_NONLINEAR_ADS:500,NONLINEAR_ADS_DIMENSIONS:501,NONLINEAR_ADS_UNABLE_TO_FETCH:502,NONLINEAR_ADS_RESOURCE_UNSUPPORTED:503,GENERAL_COMPANION_ADS:600,COMPANION_ADS_DIMENSIONS:601,COMPANION_ADS_UNABLE_TO_DISPLAY:602,COMPANION_ADS_UNABLE_TO_FETCH:603,COMPANION_ADS_RESOURCE_UNSUPPORTED:604,UNDEFINED:900,GENERAL_VPAID:901};var m=null,i=null,h=null,g=null,v=!1,t=["2","3"],T="skipAd",n="poddedAds",I="adFallback",S={2:[]};S[3]=[T,n,I];var O,D="InLine",P="Wrapper",L={},R=!1,C=["creativeView","start","midpoint","firstQuartile","thirdQuartile","complete","mute","unmute","pause","rewind","resume","fullscreen","exitFullscreen","expand","collapse","acceptInvitation","close","skip"];this.isValidVastXML=function(e){return!!e&&y.isValidRootTagName(e)&&y.isValidVastVersion(e)};var k=function(e,n){if(e&&null!==e.getAttribute(n))return e.getAttribute(n)},N=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var r=n[0];1<n.length?(OO.log.apply(OO.log,n),r=n.join("")):OO.log(r),y.amc?y.amc.raiseAdError(r):OO.log("VAST: Failed to raise ad error. amc undefined.")},V=function(e,n,t){try{if(Fe(e[n]))return e[n].apply(e,t)}catch(e){N("".concat("VPAID 2.0: function '").concat(n,"' threw exception -"),e)}},w=function(e){try{var n=e.querySelectorAll("VAST");return 0===n.length?(N("VAST: No VAST tags in XML"),null):1<n.length?(N("VAST: Multiple VAST tags in XML"),null):n[0]}catch(e){return OO.log(e),null}},b=function(e){var n=w(e);return n?k(n,"version"):null},M=function(e){return"string"==typeof e?e.split(".")[0]:""};this.getErrorTrackingInfo=function(e){var n=e.querySelectorAll("Ad");Se(n,function(e){var n={vastAdObject:null,errorURLs:[],wrapperParentId:y.wrapperParentId||null},t=e.querySelector("Error");t&&(n.errorURLs=[t.textContent]);var r=k(e,"id");y.adTrackingInfo[r]=n})};var U=function(e){return Ie(S[M(e)],n)},x=function(){clearTimeout(a),a=null,clearTimeout(p),p=null,clearTimeout(f),f=null,clearTimeout(e),e=null},F=function(e,n){if(x(),y._slot&&y._slot.remove(),o&&o.remove(),m&&e)if(m=null,e.vpaidAd&&V(e.vpaidAd,"getAdLinear")||e.isLinear){if(y.amc.notifyLinearAdEnded(e.id),l&&(y.amc.ui.transitionToMainContent(!0,!1),l=!1,y.amc.notifyNonlinearAdEnded(e.id)),e.ad.adPodIndex===e.ad.adPodLength&&!n||!i){var t=g||e;g=null,y.amc.notifyPodEnded(t.id)}}else y.lastOverlayAd=null,y.amc.notifyNonlinearAdEnded(e.id);if(i){var r=i;i=null,y.amc.forceAdToPlay(y.name,r.ad,r.adType,r.streams)}},H=function(){s||(N("VPAID: iframe did not load"),F(m,!0))},j=function(){u||(N("VPAID: Did not receive AD_STOPPED event from creative"),F(m,!0))},B=function(){m&&m.vpaidAd&&(x(),e=ye(j,y.VPAID_AD_STOPPED_TIMEOUT),V(m.vpaidAd,"stopAd"))},Y=function(){c||(N("VPAID: Did not receive AD_LOADED event from creative"),F(m,!0))},G=function(){d||(N("VPAID: Did not receive AD_STARTED event from creative"),B())};this.registerUi=function(){},this.loadMetadata=function(e,n,t){y.mainContentDuration=t.duration/1e3,y.embedCode=y.amc.currentEmbedCode,y.allAdInfo=(e?e.all_ads:null)||(t?t.ads:{}),e&&e.vpaidTimeout&&(De(e.vpaidTimeout.iframe)&&0<=e.vpaidTimeout.iframe&&(y.VPAID_AD_IFRAME_TIMEOUT=1e3*e.vpaidTimeout.iframe),De(e.vpaidTimeout.loaded)&&0<=e.vpaidTimeout.loaded&&(y.VPAID_AD_LOADED_TIMEOUT=1e3*e.vpaidTimeout.loaded),De(e.vpaidTimeout.started)&&0<=e.vpaidTimeout.started&&(y.VPAID_AD_STARTED_TIMEOUT=1e3*e.vpaidTimeout.started),De(e.vpaidTimeout.stopped)&&0<=e.vpaidTimeout.stopped&&(y.VPAID_AD_STOPPED_TIMEOUT=1e3*e.vpaidTimeout.stopped)),e&&Pe(e.tagUrl)?y.adTagUrlOverride=e.tagUrl:y.adTagUrlOverride=null,y.ready=!0,y.amc.onAdManagerReady(!0),y.amc.reportPluginLoaded(Date.now()-y.initTime,y.name)},this.loadPreRolls=function(){},this.loadAllVastAds=function(){};var W=function(e){if(!e)return!1;var n;n=ke(e.data.linear.mediaFiles)?e.data.nonLinear.duration?OO.timeStringToSeconds(e.data.nonLinear.duration):0:OO.timeStringToSeconds(e.data.linear.duration);var t=new y.amc.Ad({position:e.positionSeconds,duration:n,adManager:y.name,ad:e,adType:e.data.type,streams:e.streams});return"vpaid"===e.data.adType&&(t.videoRestrictions=r),t},q=function(){var e=null,n=m;if(m=null,n)if(n.ad&&n.ad.fallbackAd&&(e=n.ad.fallbackAd),F(n,!0),e){var t=W(e);y.amc.forceAdToPlay(y.name,t.ad,t.adType,t.streams)}else{var r=g;g=null,r?y.amc.notifyPodEnded(r.id):y.amc.notifyPodEnded(n.id)}};this.initialPlay=function(){return y.loadAllVastAds()},this.replay=function(){y.loadPreRolls(),y.loadAllVastAds()};var K=function(e){return("string"==typeof e||"number"==typeof e)&&Ce(+e)};this.buildTimeline=function(){var e=[];if(y.allAdInfo&&Le(y.allAdInfo))for(var n=0;n<y.allAdInfo.length;n++){var t=Re(y.allAdInfo[n]),r={adManager:y.name,ad:t,duration:0,adType:y.amc.ADTYPE.AD_REQUEST,mainContentDuration:y.mainContentDuration};if("t"===t.position_type?K(t.time)?r.position=+t.time/1e3:K(t.position)&&(r.position=+t.position/1e3):"p"===t.position_type&&K(t.position)&&(r.positionType=t.position_type,r.position=+t.position),t.position=r.position,t.tag_url||(t.tag_url=t.url),Pe(y.adTagUrlOverride)&&(t.tag_url=y.adTagUrlOverride),Pe(t.tag_url)&&K(t.position)){var a=new y.amc.Ad(r);e.push(a)}}return e};var z=function(e){return e&&e.ad&&e.ad.data?e.ad.data:e&&e.data?e.data:e},X=function(e){return"vpaid"===z(e).adType},Q=function(e){var n=z(e),t=null;return n&&n.id&&(t=n.id),t},J=function e(E,n){if(!X(E)){var _=Q(E);if(E?Se(n,function(e){var n,t,r,a,i,o,l,s,c,d,u,p;switch(e){case"impression":u=z(E),p=null,u&&u.impression&&0<u.impression.length&&(p=u.impression),n=p;break;case"linearClickTracking":c=z(E),d=[],c&&(c.linear&&c.linear.clickTracking&&0<c.linear.clickTracking.length&&(d=d.concat(c.linear.clickTracking)),c.linear&&c.linear.customClick&&0<c.linear.customClick.length&&(d=d.concat(c.linear.customClick))),ke(d)&&(d=null),n=d;break;case"nonLinearClickTracking":l=z(E),s=null,l&&l.nonLinear&&l.nonLinear.nonLinearClickTracking&&0<l.nonLinear.nonLinearClickTracking.length&&(s=l.nonLinear.nonLinearClickTracking),n=s;break;default:t=e,r=z(E),a=null,i=[],o=[],r&&r.linear&&r.linear.tracking&&r.linear.tracking[t]&&0<r.linear.tracking[t].length&&(i=r.linear.tracking[t]),r&&r.nonLinear&&r.nonLinear.tracking&&r.nonLinear.tracking[t]&&0<r.nonLinear.tracking[t].length&&(o=r.nonLinear.tracking[t]),ke(i)&&ke(o)||(a=i.concat(o)),n=a}var f,A={};A[e]=n,f=_,Se(A,function(n){try{n?(OO.pixelPings(n),OO.log('VAST: "'.concat(n,'" tracking URLs pinged for VAST Ad Id: ').concat(f))):OO.log('VAST: No "'.concat(n,'" tracking URLs provided to ping for VAST Ad Id: ').concat(f))}catch(e){N('VAST: Failed to ping "'.concat(n,'" tracking URLs for VAST Ad Id: ').concat(f))}})}):OO.log("VAST: Tried to ping URLs: [".concat(n,"] but ad object passed in was: ").concat(E)),y.adTrackingInfo&&y.adTrackingInfo[_]&&y.adTrackingInfo[_].wrapperParentId){var t=y.adTrackingInfo[_].wrapperParentId;y.adTrackingInfo[t]&&e(y.adTrackingInfo[t].vastAdObject,n)}}},Z=function(e){var n=X(e),t=!1,r="";n&&(t=V(e.vpaidAd,"getAdSkippableState"));var a,i=!1;if(e&&e.ad&&e.ad.data&&(a=e.ad.data.version,i=Ie(S[M(a)],T)),i)if(r=e.ad.data.linear.skipOffset)if(r.indexOf("%")===r.length-1)y.amc.showSkipVideoAdButton(!0,r,!0);else{var o=r.split(":"),l=o[0],s=o[1],c=o[2],d=0,u=c.split(".");2===u.length&&(c=ge(u,1)[0],d=ge(u,2)[1]);var p=+d+1e3*+c+60*+s*1e3+60*+l*60*1e3;p=Math.round(p/1e3),y.amc.showSkipVideoAdButton(!0,p.toString(),!0)}else n?y.amc.showSkipVideoAdButton(t,y.amc.adManagerSettings.linearAdSkipButtonStartTime.toString()):y.amc.showSkipVideoAdButton(!1);else n?y.amc.showSkipVideoAdButton(t,y.amc.adManagerSettings.linearAdSkipButtonStartTime.toString()):y.amc.showSkipVideoAdButton(!0)};this.cancelAd=function(e,n){y.amc&&y.amc.ui&&e&&(n?n.code===y.amc.AD_CANCEL_CODE.TIMEOUT?q():n.code===y.amc.AD_CANCEL_CODE.SKIPPED&&m?m.vpaidAd?V(m.vpaidAd,"skipAd"):e.isLinear&&(F(h=m,!1),J(h,["skip"]),v=!1):e.isLinear||n.code!==y.amc.AD_CANCEL_CODE.STREAM_ENDED||F(e,!1):F(e,!1))},this.destroy=function(){y.cancelAd(m),y.ready=!1,y.currentDepth=0,y.lastOverlayAd=null,g=null};this.ajax=function(e,n,t,r,a){OO.$.ajax({url:OO.getNormalizedTagUrl(e,y.embedCode),type:"GET",beforeSend:function(e){e.withCredentials=!0},dataType:t,crossDomain:!0,cache:!1,success:"script"===t?function(){}:_.bind(y.onResponse,y,a,r||y.currentAdBeingLoaded),error:_.bind(n,y,r||y.currentAdBeingLoaded)}),y.currentAdBeingLoaded=null},this.playerClicked=function(e,n){if(e&&n){var t,r,a,i,o,l,s,c,d,u=!1,p=(t=z(e),r=null,t&&t.clickThrough&&(r=t.clickThrough),r),f=(i=null,(a=e)&&a.click_url&&(i=a.click_url),i);p&&(u=u||y.openUrl(p)),f&&(u=u||y.openUrl(f)),e.isLinear?(c=z(e),d=null,c&&c.linear&&c.linear.clickThrough&&(d=c.linear.clickThrough),o=d,u=u||y.openUrl(o),J(e,["linearClickTracking"])):(l=z(e),s=null,l&&l.nonLinear&&l.nonLinear.nonLinearClickThrough&&(s=l.nonLinear.nonLinearClickThrough),o=s,u=u||y.openUrl(o),J(e,["nonLinearClickTracking"])),u&&y.amc.adsClickthroughOpened()}},this.pauseAd=function(e){m&&m.vpaidAd&&V(m.vpaidAd,"pauseAd"),J(e,["pause"])},this.resumeAd=function(e){m&&m.vpaidAd&&V(m.vpaidAd,"resumeAd"),J(e,["resume"])},this.hideOverlay=function(e){y.lastOverlayAd=e},this.showOverlay=function(){y.amc.ended&&y.lastOverlayAd&&y.cancelAd(y.lastOverlayAd)},this.cancelOverlay=function(){J(m,["close"])},this.openUrl=function(e){return!(!e||"string"!=typeof e||(window.open(e).opener=null))},this.loadUrl=function(e){y.vastUrl=e,y.testMode||y.ajax(e,y.onVastError,"xml")},this.onVastError=function(){N("VAST: Ad failed to load"),q()},this.trackError=function(e,n){if(n&&n in y.adTrackingInfo){y.pingURLs(e,y.adTrackingInfo[n].errorURLs);var t=y.adTrackingInfo[n].wrapperParentId;t&&y.trackError(e,t)}},this.pingURL=function(e,n){var t=n.replace(/\[ERRORCODE\]/,e);OO.pixelPing(t)},this.pingURLs=function(n,e){Se(e,function(e){y.pingURL(n,e)})},this.extractStreamForType=function(e,n){var t=[];switch(n){case"hls":t.push("application/x-mpegurl"),t.push("application/mpegurl"),t.push("audio/mpegurl"),t.push("audio/x-mpegurl");break;default:t.push("video/".concat(n))}var r=Ne(e,function(e){return 0<=t.indexOf(e.type)});return r?r.url:null};var $=function(e,n){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(!e||ke(e.linear.mediaFiles))return N("VAST: General Linear Ads Error; No Mediafiles in Ad ",e),y.trackError(y.ERROR_CODES.GENERAL_LINEAR_ADS,e.id),null;var r=e.linear.mediaFiles,a=Ve(r,function(e){return parseInt(e.bitrate,10)}),i={data:{},vastUrl:y.vastUrl,maxBitrateStream:null};i.maxBitrateStream=a&&a.url,i.durationInMilliseconds=1e3*OO.timeStringToSeconds(e.linear.duration),Oe(i.data,e),i.data.tracking=e.linear.tracking,i.data.type=y.amc.ADTYPE.LINEAR_VIDEO,i.adPodIndex=t.adPodIndex?t.adPodIndex:1,i.adPodLength=t.adPodLength?t.adPodLength:1,i.positionSeconds=n.position,i.repeatAfter=n.repeatAfter?n.repeatAfter:null;var o={},l=e.linear;if(l&&l.mediaFiles){var s=l.mediaFiles,c=OO.VIDEO.ENCODING;Se(c,function(e){var n=y.extractStreamForType(s,e);n&&(o[e]=n)})}return i.streams=o,i},ee=function(e,n){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(!e||ke(e.nonLinear.url))return N("VAST: General NonLinear Ads Error: Cannot Find Playable Stream in Ad ",e),y.trackError(y.ERROR_CODES.GENERAL_NONLINEAR_ADS,e.id),null;var r=e.nonLinear.url,a={data:{},vastUrl:y.vastUrl,maxBitrateStream:null};return a.streamUrl=r,Oe(a.data,e),a.data.tracking=e.nonLinear.tracking,a.data.type=y.amc.ADTYPE.NONLINEAR_OVERLAY,a.adPodIndex=t.adPodIndex?t.adPodIndex:1,a.adPodLength=t.adPodLength?t.adPodLength:1,a.positionSeconds=n.position,a.repeatAfter=n.repeatAfter?n.repeatAfter:null,a};this.mergeVastAdResult=function(t,e){t.error=e.error.concat(t.error),t.impression=e.impression.concat(t.impression),t.companion=e.companion.concat(t.companion),e.linear.clickTracking&&(t.linear.clickTracking=e.linear.clickTracking.concat(t.linear.clickTracking||[])),e.linear.tracking&&(t.linear.tracking||(t.linear.tracking={}),Se(e.linear.tracking,function(e,n){t.linear.tracking[n]=t.linear.tracking[n]?e.concat(t.linear.tracking[n]):e})),e.nonLinear.tracking&&(t.nonLinear.tracking||(t.nonLinear.tracking={}),Se(e.nonLinear.tracking,function(e,n){t.nonLinear.tracking[n]=t.nonLinear.tracking[n]?e.concat(t.nonLinear.tracking[n]):e}))},this.checkCompanionAds=function(e){var n=e.data,t=m.vpaidAd?V(m.vpaidAd,"getAdCompanions"):null,r=n&&!ke(n.companion)?n.companion:t;ke(r)||y.amc.showCompanion(r)};var ne=function(e){return Me(e,null,"")},te=function(n){return function(e){return we(ne,function(e){return be(e,n)})(e)}},re=function(r){return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:C).reduce(function(e,n){var t="Tracking[event=".concat(n,"]");return function(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(e){he(n,e,t[e])})}return n}({},e,he({},n,we(te(function(e){return e.textContent}),Array.from)(r.querySelectorAll(t))))},{})},ae=function(e,n){if(!n)return e.textContent||void 0;var t=e.querySelector(n);return t&&t.textContent||void 0};this.checkNoAds=function(e){if(0===e.querySelectorAll("Ad").length){N("VAST: No ads in XML");var n=ae(e,"Error");return n&&y.pingURL(y.ERROR_CODES.WRAPPER_NO_ADS,n),y.trackError(y.ERROR_CODES.WRAPPER_NO_ADS,y.wrapperParentId),!0}return!1};var ie=function(e,n){if(e.vastAdTagUri){var t=Q(e);xe(y.adTrackingInfo,t)?(y.adTrackingInfo[t].vastAdObject=e,y.adTrackingInfo[t].wrapperParentId=y.wrapperParentId||null):y.adTrackingInfo[t]={vastAdObject:e,errorURLs:[],wrapperParentId:y.wrapperParentId||null},y.testMode||y.ajax(e.vastAdTagUri,y.onVastError,"xml",n,t)}},oe=function(e,i,n){var o=0;Se(e,function(e){ke(e.linear)||(o+=1)});var t,l=!1,s=!1,c=[],d={},r=null;Se(e,function(e,n){if(e.type===D){d={error:[],impression:[],companion:[],linear:{},nonLinear:{}};var t={adPodIndex:n+1,adPodLength:o};if(y.mergeVastAdResult(e,d),e.data&&"vpaid"===e.data.adType)c.push(e);else{if(!ke(e.linear)){var r=$(e,i,t);r&&((r=Re(r)).data.nonLinear={},c.push(r))}if(!ke(e.nonLinear)){var a=ee(e,i,t);a&&((a=Re(a)).data.linear={},c.push(a))}}}else e.type===P&&(ie(e,i),l=s=!0)}),n&&(n.type===D?(d={error:[],impression:[],companion:[],linear:{},nonLinear:{}},y.mergeVastAdResult(n,d),n.data&&"vpaid"===n.data.adType?r=n:(r=$(n,i))||(r=ee(n,i))):n.type===P&&(ie(n,i),l=s=!0)),0<c.length&&(Se(c,function(e){e.fallbackAd=r,t&&(t.nextAdInPod=e),t=e}),l=function(e){if(!e)return!1;var n=[],t=W(e);return(null!=e.streamUrl||t.adType===y.amc.ADTYPE.LINEAR_VIDEO&&!ke(e.streams)||t.adType===y.amc.ADTYPE.NONLINEAR_OVERLAY&&!ke(e.data.nonLinear.mediaFiles.url))&&(n.push(t),y.amc.appendToTimeline(n),!0)}(c[0])),l?y.loaded=!0:q(),m&&m.adType===y.amc.ADTYPE.AD_REQUEST&&!s&&y.amc.notifyPodEnded(m.id)};this.onResponse=function(e,n,t){y.amc.notifyPodStarted(n.id,1),0<t.querySelectorAll("vmap\\:VMAP, VMAP").length?y.onVMAPResponse(t):y.onVastResponse(n,t,e)},this.onVastResponse=function(e,n,t){y.wrapperParentId=t;var r=y.parser(n,e);if(!r||!e)return N("VAST: XML Parsing Error"),y.trackError(y.ERROR_CODES.XML_PARSING,y.wrapperParentId),void q();if(y.checkNoAds(n)||y.getErrorTrackingInfo(n),ke(r.podded)&&ke(r.standalone))return N("VAST: XML Parsing Error"),y.trackError(y.ERROR_CODES.XML_PARSING,y.wrapperParentId),void q();var a,i,o=b(n);Ie(S[M(o)],I)&&0<r.standalone.length&&(a=ge(r.standalone,1)[0]),U(o)?ke(r.podded)?(i=ge(r.standalone,1)[0])&&oe([i],e):e.vmap?e.allowMultipleAds&&oe(r.podded,e,a):oe(r.podded,e,a):oe(r.standalone,e)};this.onVMAPResponse=function(e){e.querySelectorAll("vmap\\:AdBreak, AdBreak").forEach(function(e){var n,t={timeOffset:k(n=e,"timeOffset"),breakType:k(n,"breakType"),breakId:k(n,"breakId"),repeatAfter:k(n,"repeatAfter")};if(!ke(t)){y.adBreaks.push(t);var r,a,i=e.querySelector("vmap\\:AdSource, AdSource"),o=(r=e.querySelectorAll("vmap\\:TrackingEvents, TrackingEvents"),Ne(Array.from(r),function(e){return-1<e.tagName.toLowerCase().indexOf("vmap:")}));if(o){var l=(a=o.querySelectorAll("vmap\\:Tracking, Tracking")).length?Array.from(a).map(function(e){return{url:ae(e),eventName:k(e,"event")}}):[];ke(l)||(t.trackingEvents=l)}if(i){var s,c={id:k(s=i,"id"),allowMultipleAds:k(s,"allowMultipleAds"),followRedirects:k(s,"followRedirects")};if(!ke(c)){t.adSource=c;var d=function(e){var n={vmap:!0,allowMultipleAds:!0,time:0,position_type:"t"};if(!e)return null;if(e.adSource&&e.adSource.allowMultipleAds){var t=e.adSource.allowMultipleAds;"true"!==t&&"false"!==t||(n.allowMultipleAds="true"===t)}return e.repeatAfter&&(n.repeatAfter=He.convertTimeStampToMilliseconds(e.repeatAfter)/1e3),e.timeOffset&&(/^start$/.test(e.timeOffset)?n.position=0:/^end$/.test(e.timeOffset)?n.position=y.amc.movieDuration+1:/^\d{2}:\d{2}:\d{2}\.000$|^\d{2}:\d{2}:\d{2}$/.test(e.timeOffset)?n.position=He.convertTimeStampToMilliseconds(e.timeOffset,y.amc.movieDuration)/1e3:/^\d{1,3}%$/.test(e.timeOffset)?n.position=He.convertPercentToMilliseconds(e.timeOffset)/1e3:(N("VAST, VMAP: No Matching 'timeOffset' Attribute format"),n=null)),n}(t);if(d){var u=i.querySelector("vmap\\:AdTagURI, AdTagURI"),p=i.querySelector("vmap\\:VASTAdData, VASTAdData");p||(p=i.querySelector("vmap\\:VASTData, VASTData")),p?(c.vastAdData=p,y.onVastResponse(d,p)):u&&(c.adTagURI=ae(u),y.testMode||y.ajax(c.adTagURI,y.onVastError,"xml",d))}else N("VAST, VMAP: Error creating Ad Object")}}}})};this.getVpaidImpressions=function(e){return Array.from(e.getElementsByTagName("Impression")).map(function(e){return{url:e.textContent}})},this.getVpaidTracking=function(e){var n,t,r,a=[],i=e.getElementsByTagName("Tracking");if(!i)return[];for(t=0,r=i.length;t<r;t++)n=i[t],a.push({event:n.getAttribute("event"),url:n.textContent});return a},this.sendVpaidError=function(){if(m&&m.data){var e=m.data.error;e&&OO.pixelPing(e);var n=Q(m);if(y.adTrackingInfo&&y.adTrackingInfo[n]&&y.adTrackingInfo[n].wrapperParentId){var t=y.adTrackingInfo[n].wrapperParentId;y.trackError(y.ERROR_CODES.GENERAL_VPAID,t)}}},this.sendVpaidImpressions=function(){if(m&&m.data){var e=m.data.impression;Se(e,function(e){e&&e.url&&OO.pixelPing(e.url)});var n=Q(m);if(y.adTrackingInfo&&y.adTrackingInfo[n]&&y.adTrackingInfo[n].wrapperParentId){var t=y.adTrackingInfo[n].wrapperParentId;if(y.adTrackingInfo[t]){var r=y.adTrackingInfo[t].vastAdObject;J(r,["impression"])}}}},this.sendVpaidTracking=function(n){var e=m;if(e&&e.data){var t,r=e.data.tracking;r&&(t=Ne(r,function(e){return e.event===n}))&&t.url&&OO.pixelPing(t.url);var a=Q(e);if(y.adTrackingInfo&&y.adTrackingInfo[a]&&y.adTrackingInfo[a].wrapperParentId){var i=y.adTrackingInfo[a].wrapperParentId;if(y.adTrackingInfo[i]){var o=y.adTrackingInfo[i].vastAdObject;J(o,[n])}}}},this.sendVpaidClickTracking=function(){var e=m;if(e&&e.data){if(e.data.videoClickTracking){var n=e.data.videoClickTracking.clickTracking;n&&OO.pixelPing(n);var t=e.data.videoClickTracking.customClick;t&&OO.pixelPing(t);var r=e.data.videoClickTracking.nonLinearClickThrough;r&&OO.pixelPing(r)}var a=Q(e);if(y.adTrackingInfo&&y.adTrackingInfo[a]&&y.adTrackingInfo[a].wrapperParentId){var i=y.adTrackingInfo[a].wrapperParentId;if(y.adTrackingInfo[i]){var o=y.adTrackingInfo[i].vastAdObject;e.data.type===y.amc.ADTYPE.NONLINEAR_OVERLAY?J(o,["nonLinearClickTracking"]):J(o,["linearClickTracking"])}}}};var le=function(e){return e?e.replace(/\r?\n|\r/g,"").trim():""},se=function(e){var n=le(ae(e,"StaticResource")),t=le(ae(e,"IFrameResource")),r=le(ae(e,"HTMLResource")),a={tracking:re(e,["creativeView"]),width:k(e,"width"),height:k(e,"height"),expandedWidth:k(e,"expandedWidth"),expandedHeight:k(e,"expandedHeight"),companionClickThrough:ae(e,"CompanionClickThrough")};return n?Oe(a,{type:"static",data:n,url:n}):t?Oe(a,{type:"iframe",data:t,url:t}):r&&Oe(a,{type:"html",data:r,htmlCode:r}),a},ce=function(e,n){var t={error:[],impression:[],linear:{},nonLinear:{},companion:[]},r=e.querySelectorAll(D),a=e.querySelectorAll(P);if(0<r.length)t.type=D;else{if(!(0<a.length))return null;t.type=P}t.version=n;var i,o,l,s=e.querySelector("Linear"),c=e.querySelector("NonLinearAds");t.type===P&&(t.vastAdTagUri=ae(e,"VASTAdTagURI")),t.error=we(te(function(e){return e.textContent}),Array.from)(e.querySelectorAll("Error")),t.impression=we(te(function(e){return e.textContent}),Array.from)(e.querySelectorAll("Impression")),t.title=we(Ue,te(function(e){return e.textContent}),Array.from)(e.querySelectorAll("AdTitle")),s&&(t.linear=(o={tracking:re(i=s),clickTracking:we(te(function(e){return e.textContent}),Array.from)(i.querySelectorAll("ClickTracking")),clickThrough:ae(i,"ClickThrough"),customClick:we(te(function(e){return e.textContent}),Array.from)(i.querySelectorAll("CustomClick")),skipOffset:k(i,"skipoffset")},0<(l=i.querySelectorAll("MediaFile")).length&&(o.mediaFiles=we(te(function(e){return{type:e.getAttribute("type").toLowerCase(),url:e.textContent.trim(),bitrate:e.getAttribute("bitrate"),width:e.getAttribute("width"),height:e.getAttribute("height")}},Array.from))(l),o.duration=ae(i,"Duration")),o)),c&&(t.nonLinear=function(e){var n={tracking:re(e)},t=e.querySelector("NonLinear");if(!t)return n;var r=t.querySelector("StaticResource"),a=t.querySelector("IFrameResource"),i=t.querySelector("HTMLResource");return n.width=k(t,"width"),n.height=k(t,"height"),n.expandedWidth=k(t,"expandedWidth"),n.expandedHeight=k(t,"expandedHeight"),n.scalable=k(t,"scalable"),n.maintainAspectRatio=k(t,"maintainAspectRatio"),n.minSuggestedDuration=k(t,"minSuggestedDuration"),n.nonLinearClickThrough=ae(t,"NonLinearClickThrough"),n.nonLinearClickTracking=we(te(function(e){return e.textContent}),Array.from)(e.querySelectorAll("NonLinearClickTracking")),r&&Oe(n,{type:"static",data:r.textContent,url:r.textContent}),a&&Oe(n,{type:"iframe",data:a.textContent,url:a.textContent}),i&&Oe(n,{type:"html",data:i.textContent,htmlCode:i.textContent}),n}(c)),t.companion=we(function(e){return be(e,function(e){return se(e)})},Array.from)(e.querySelectorAll("Companion"));var d=k(e,"sequence");return void 0!==d&&(t.sequence=d),t.id=k(e,"id"),t},de=function(e,n,t){var r="{}",a=function(e){var n;if((n=ge(e.getElementsByTagName("Linear"),1)[0])||(n=ge(e.getElementsByTagName("NonLinear"),1)[0]),n)return"linear"===n.nodeName.toLowerCase()?"Linear":"NonLinear"}(e),i="Linear"===a,o=e.querySelector(a);if(o){var l=o.querySelector("AdParameters"),s=i?o.querySelector("MediaFile"):o.querySelector("StaticResource"),c=e.querySelector("CompanionAds");if(s&&(p="VPAID"===(k(d=(u=i)?s:o,"apiFramework")||k(d,"apiframework")),f=u?k(d,"type"):k(d.querySelector("StaticResource"),"creativeType")||k(d.querySelector("StaticResource"),"creativetype"),p&&"application/javascript"===f)){var d,u,p,f;l&&(r=le(ae(l)));var A={url:s.textContent,type:k(s,"type")||k(s,"creativeType")};s=i?s:s.parentNode,A=Oe(A,{width:Number(s.getAttribute("width")),height:Number(s.getAttribute("height")),tracking:y.getVpaidTracking(s)});var E,_=y.getVpaidImpressions(e),m=y.getVpaidTracking(i?o:o.parentNode),h=le(ae(e,"Error"));E=i?{clickTracking:le(ae(e,"ClickTracking")),clickThrough:le(ae(e,"ClickThrough")),customClick:le(ae(e,"CustomClick"))}:{nonLinearClickThrough:le(ae(e,"NonLinearClickThrough"))};var g=k(e,"sequence"),v=e.parentNode.querySelectorAll("[sequence] Linear").length;U(n)&&De(parseInt(g,10))||(g=null);var T=[],I=c?c.querySelectorAll("Companion"):[];I.length&&I.forEach(function(e){T.push(se(e))});var S={mediaFiles:A,tracking:m,duration:i?ae(e,"Duration"):0,skipOffset:k(o,"skipoffset")};Oe(S,E);var O={id:k(e,"id"),adType:"vpaid",companion:T,error:h,impression:_,linear:S,nonLinear:S,title:le(ae(e,"AdTitle")),tracking:m,type:i?y.amc.ADTYPE.LINEAR_VIDEO:y.amc.ADTYPE.NONLINEAR_OVERLAY,version:n,videoClickTracking:E};return{adPodIndex:parseInt(g,10)||1,sequence:g||null,adPodLength:v||1,data:O,fallbackAd:null,positionSeconds:t.position,adParams:r,streams:{mp4:""},type:D,mediaFile:A,version:n,durationInMilliseconds:1e3*OO.timeStringToSeconds(S.duration)}}OO.log("VPaid: No valid media source, either is not a VPaid Ad\n                or ad unit is not in javascript format.")}},ue=function(){var e=o.contentWindow.document.createElement("script");e.src=le(m.ad.mediaFile.url),e.onload=y.initializeAd,e.onerror=function(e){x(),N("VPAID: iframe load threw an error: ".concat(e)),F(m,!0)},o.contentWindow.document.body.appendChild(e)},pe=function(e){var n=X(m);if(e.isLinear){1===e.ad.adPodIndex&&null===g&&(g=e,y.amc.notifyPodStarted(e.id,e.ad.adPodLength));var t=!!e.ad.data.linear.clickThrough;y.amc.notifyLinearAdStarted(e.id,{name:e.ad.data.title,duration:e.ad.durationInMilliseconds/1e3,hasClickUrl:t,indexInPod:e.ad.adPodIndex,skippable:!1})}else{var r;r=e.ad&&e.ad.streamUrl?e.ad.streamUrl:e.streamUrl?e.streamUrl:"",y.amc.sendURLToLoadAndPlayNonLinearAd(e,e.id,r)}n?(y.amc.hidePlayerUi(),x(),a=ye(H,y.VPAID_AD_IFRAME_TIMEOUT),(o=document.createElement("iframe")).style.display="none",o.onload=ue,document.body.appendChild(o)):(y.checkCompanionAds(e.ad),Z(e)),J(e,["creativeView","start","impression"])},fe=function(){var e;return null!=document.fullscreen?e=document.fullscreen:null!=document.mozFullScreen?e=document.mozFullScreen:null!=document.webkitIsFullScreen?e=document.webkitIsFullScreen:null!=document.msFullscreenElement&&(e=null!==document.msFullscreenElement),null==e&&(e=!1),e},Ae=function(){!function(){if(y._slot){var e=y._slot.getBoundingClientRect(),n=y._slot.offsetWidth?y._slot.offsetWidth:e.width,t=y._slot.offsetHeight?y._slot.offsetHeight:e.height,r=fe()?"fullscreen":"normal",a="fullscreen"===r?window.screen.width:n,i="fullscreen"===r?window.screen.height:t;y.resize(a,i,r)}}()},Ee=function(e,n,t,r){switch(e){case A.AD_LOADED:c=!0,X(m)&&this.checkCompanionAds(m.ad),x(),f=ye(G,this.VPAID_AD_STARTED_TIMEOUT),V(m.vpaidAd,"startAd"),Z(m),this._videoSlot.style.zIndex=10001;break;case A.AD_STARTED:d=!0,Ae(),h=m||null,this.sendVpaidTracking("creativeView"),V(m.vpaidAd,"getAdLinear")&&this._videoSlot&&this._videoSlot.buffered&&this._videoSlot.buffered.length<1&&(this._videoSlot.load(),this._videoSlot.play());break;case A.AD_IMPRESSION:this.sendVpaidImpressions();break;case A.AD_CLICK_THRU:r&&(n?this.openUrl(n):this.amc.adsClicked()),this.sendVpaidClickTracking();break;case A.AD_VIDEO_START:this.sendVpaidTracking("start");break;case A.AD_VIDEO_FIRST_QUARTILE:this.sendVpaidTracking("firstQuartile");break;case A.AD_VIDEO_MIDPOINT:this.sendVpaidTracking("midpoint");break;case A.AD_VIDEO_THIRD_QUARTILE:this.sendVpaidTracking("thirdQuartile");break;case A.AD_VIDEO_COMPLETE:this.sendVpaidTracking("complete"),B();break;case A.AD_STOPPED:u=!0,m&&F(m,!1);break;case A.AD_INTERACTION:this.sendVpaidTracking("interaction");break;case A.AD_ERROR:N("VPaid: Ad unit error: ".concat(n)),this.sendVpaidTracking("error"),this.sendVpaidError(),q();break;case A.AD_DURATION_CHANGE:V(m.vpaidAd,"getAdRemainingTime")<=0&&B();break;case A.AD_SKIPPED:this.sendVpaidTracking("skip"),m&&F(m,!1);break;case A.AD_SKIPPABLE_STATE_CHANGE:var a=V(m.vpaidAd,"getAdSkippableState");this.amc.showSkipVideoAdButton(a,"0");break;case A.AD_LINEAR_CHANGE:var i=V(m.vpaidAd,"getAdLinear");l=!0,i&&(function(){if(X(m)){var e=m.vpaidAd,n=m.ad.data.nonLinear?m.ad.data.nonLinear.nonLinearClickThrough:"";Z(m),y.amc.hidePlayerUi(),y.amc.notifyPodStarted(m.id,m.ad.adPodLength),y.amc.notifyLinearAdStarted(m.id,{name:m.data.title,duration:V(e,"getAdDuration"),clickUrl:0<n.length,indexInPod:m.ad.sequence,skippable:V(e,"getAdSkippableState")})}}(),this.amc.ui.transitionToAd());break;case A.AD_VOLUME_CHANGE:V(m.vpaidAd,"getAdVolume")?this.sendVpaidTracking("unmute"):this.sendVpaidTracking("mute");break;case A.AD_USER_ACCEPT_INVITATION:this.sendVpaidTracking("acceptInvitation");break;case A.AD_USER_MINIMIZE:this.sendVpaidTracking("collapse");break;case A.AD_USER_CLOSE:this.sendVpaidTracking("close");break;case A.AD_PAUSED:this.sendVpaidTracking("pause"),E=!0;break;case A.AD_PLAYING:this.sendVpaidTracking("resume")}},_e=function(e,n){Ae(),v&&(n?J(m,["fullscreen"]):n||J(m,["exitFullscreen"]))};this.onAdVolumeChanged=function(e,n){v&&(0===n&&n!==O?(R=!0,O=n,J(m,["mute"])):R&&n!==O&&(R=!1,O=n,J(m,["unmute"])))},this.resize=function(e,n,t){m&&m.vpaidAd&&V(m.vpaidAd,"resizeAd",[e,n,t])},this.initialize=function(e){y.amc=e,y.amc.addPlayerListener(y.amc.EVENTS.INITIAL_PLAY_REQUESTED,y.initialPlay),y.amc.addPlayerListener(y.amc.EVENTS.REPLAY_REQUESTED,y.replay),y.amc.addPlayerListener(y.amc.EVENTS.FULLSCREEN_CHANGED,_e),y.amc.addPlayerListener(y.amc.EVENTS.SIZE_CHANGED,Ae),y.amc.addPlayerListener(y.amc.EVENTS.AD_PLAYHEAD_TIME_CHANGED,y.onAdPlayheadTimeChanged),y.amc.addPlayerListener(y.amc.EVENTS.AD_VOLUME_CHANGED,y.onAdVolumeChanged)},this.initializeAd=function(){var e,n,t,r,a={};if(s=!0,X(m)){if(m.data=m.ad.data,!le(m.ad.mediaFile.url))return null;if("function"!=typeof o.contentWindow.getVPAIDAd&&!y.testMode)return void N("VPAID 2.0: Required function getVPAIDAd() is not defined.");try{m.vpaidAd=y.testMode?me.vpaid.getVPAIDAd():o.contentWindow.getVPAIDAd()}catch(e){N("VPAID 2.0: error while getting vpaid creative - ".concat(e))}Se(A,function(e){try{m.vpaidAd.subscribe(ve(Ee,y,e),e,y)}catch(e){N("VPAID 2.0: error while subscribing to creative events - ".concat(e))}}),y._slot=(t=y.amc.ui.playerSkinPluginsElement?y.amc.ui.playerSkinPluginsElement[0]:y.amc.ui.pluginsElement[0],(r=document.createElement("div")).id=Te("pluginElement_"),r.style.width="100%",r.style.height="100%",t.insertBefore(r,t.firstChild),r);var i=ge(y.amc.ui.adVideoElement,1)[0];y._videoSlot=i,!OO.requiresSingleVideoElement&&OO.isSafari&&(y._videoSlot.preload="auto"),e=Oe({slot:y._slot,videoSlot:y._videoSlot,videoSlotCanAutoPlay:!0},y.environmentVariables),y._properties={adWidth:y._slot.offsetWidth,adHeight:y._slot.offsetHeight,adDesiredBitrate:600},n=fe()?"fullscreen":"normal",a={AdParameters:m.ad.adParams},y.initVpaidAd(y._properties.adWidth,y._properties.adHeight,n,y._properties.adDesiredBitrate,a,e)}},this.initVpaidAd=function(e,n,t,r,a,i){!function(){var e=null;try{e=parseInt(m.vpaidAd.handshakeVersion("2.0"),10)}catch(e){OO.log("VPAID 2.0: Error while fetching VPAID 2.0 creative handshakeVersion - ".concat(e))}var n=!0;return 2!==e&&(OO.log("VPaid Ad Unit version is not supported."),n=!1),Se(["handshakeVersion","initAd","startAd","stopAd","skipAd","resizeAd","pauseAd","resumeAd","expandAd","collapseAd","subscribe","unsubscribe"],function(e){m&&m.vpaidAd&&"function"!=typeof m.vpaidAd[e]&&(n=!1,OO.log("VPaid Ad Unit is missing function: ".concat(e)))}),n}()?N("VPaid Ad Unit is not valid."):(x(),p=ye(Y,y.VPAID_AD_LOADED_TIMEOUT),V(m.vpaidAd,"initAd",[e,n,t,r,a,i]))},this.adVideoPlaying=function(){if(m&&m.ad&&m.ad.nextAdInPod&&!E){var e=m.ad.nextAdInPod;if(e){var n=W(e);(null!=e.streamUrl||n.adType===y.amc.ADTYPE.LINEAR_VIDEO&&!ke(e.streams)||X(m))&&(i=n)}}E=!1},this.adVideoEnded=function(){X(h=m)||(F(m,!1),J(h,["complete"])),v=!1},this.adVideoError=function(e,n){N("Ad failed to play with error code: ",n),q()},this.playAd=function(e){var n,t;v=!0,L={},e&&(m=e).ad&&(m.adType===y.amc.ADTYPE.AD_REQUEST?(t=(n=m).ad,y.currentAdBeingLoaded=n,y.loadUrl(t.tag_url)):pe(e))},this.parser=function(e,n){if(!y.isValidVastXML(e))return null;var r={podded:[],standalone:[]},t=y.parseAds(e,n);return Se(t,function(e){var n=void 0!==e.sequence&&De(parseInt(e.sequence,10))?e.sequence:null,t=void 0!==e.version?e.version:null;U(t)&&n?r.podded[+n-1]=e:r.standalone.push(e)}),r},this.parseAds=function(e,t){var r=b(e);return we(function(e){return be(e,function(e){var n=de(e,r,t);return n||(n=ce(e,r)),n})},Array.from)(e.querySelectorAll("Ad"))},this.onAdPlayheadTimeChanged=function(e,n,t){var r=t/4,a=t/2,i=3*t/4;!L.firstQuartile&&r<=n?(J(m,["firstQuartile"]),L.firstQuartile=!0):!L.midpoint&&a<=n?(J(m,["midpoint"]),L.midpoint=!0):!L.thirdQuartile&&i<=n&&(J(m,["thirdQuartile"]),L.thirdQuartile=!0)},this.isValidRootTagName=function(e){return!!w(e)||(N("VAST: Invalid VAST XML"),y.trackError(y.ERROR_CODES.SCHEMA_VALIDATION,y.wrapperParentId),!1)},this.isValidVastVersion=function(e){var n=b(e);return!!Ie(t,M(n))||(N("VAST: Invalid VAST Version: ".concat(n)),y.trackError(y.ERROR_CODES.VERSION_UNSUPPORTED,y.wrapperParentId),!1)}}})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../html5-common/js/utils/InitModules/InitOO.js":1,"../html5-common/js/utils/InitModules/InitOOHazmat.js":2,"../html5-common/js/utils/InitModules/InitOOPlayerParamsDefault.js":3,"../html5-common/js/utils/InitModules/InitOOUnderscore.js":4,"../html5-common/js/utils/constants.js":5,"../html5-common/js/utils/environment.js":6,"../html5-common/js/utils/utils.js":7,"../utils/ad_manager_utils.js":12,underscore:11}],11:[function(e,n,t){arguments[4][9][0].apply(t,arguments)},{dup:9}],12:[function(e,n,t){"use strict";var r=e("underscore"),l=r.isString,s=r.isNumber,c=r.isFinite;n.exports=new function(){this.convertTimeStampToMilliseconds=function(e){var n=null;if(l(e)&&r(e)){var t=e.split(":");n=1e3*(60*+t[0]*60+60*+t[1]+ +t[2])}else o("convertTimeStampToMilliseconds: invalid timeString received. Value was: "+e);return n},this.convertPercentToMilliseconds=function(e,n){var t=null,r=null,a=l(e),i=s(n);return a?(r=e.replace("%",""),r=parseFloat(r),(!c(r)||r<0)&&(a=!1,o("convertPercentToMilliseconds: invalid percentage was received. Value was: "+e))):o("convertPercentToMilliseconds: invalid timeString received. Value was: "+e),i||o("convertPercentToMilliseconds: invalid totalDuration was received. Value was: "+n),a&&i&&(t=+n*r*10),t};var r=function(e){var n=!1;if(e){var t=e.split(":");if(3===t.length){for(var r=!0,a=0;a<t.length;a++){var i=parseInt(t[a]);if(!c(i)||i<0){r=!1;break}}n=r}}return n},o=function(e){OO.log("AdManagerUtils: "+e)}}},{underscore:11}]},{},[10]);
OO.__internal.playerParams.api_ssl_server='https://player.ooyala.com';
OO.__internal.playerParams.auth_ssl_server='https://player.ooyala.com/sas';
OO.__internal.playerParams.autoPlayUpNextVideosOnly=false;
OO.__internal.playerParams.loop=false;
OO.__internal.playerParams.environment='production';
OO.__internal.playerParams.debug=false;
OO.__internal.playerParams.vast_proxy_url='http://player.ooyala.com/adinsertion/vast_proxy';
OO.__internal.playerParams.muteFirstPlay=false;
OO.__internal.playerParams.playerBrandingId='a48c819bd98e456692f8d7db51f9d69b';
OO.__internal.playerParams.analytics_server='http://player.ooyala.com';
OO.__internal.playerParams.api_server='http://player.ooyala.com';
OO.__internal.playerParams.auth_server='http://player.ooyala.com/sas';
OO.__internal.playerParams.autoplay=false;
OO.__internal.playerParams.v4_version='4.40.0';
OO.__internal.playerParams.pcode='dkYWs6u-4OJzjXwPqLZTRC6aAfWo';
OO.__internal.playerParams.analytics_ssl_server='https://player.ooyala.com';
OO.__internal.playerParams.preload=false;
OO.__internal.playerParams.iosPlayMode='fullscreen';
OO.isValhalla=true;
OO.__internal.isValhalla=true;
OO.__internal.playerParams['bit-wrapper']={"locationBaseUrl":"//player.ooyala.com/static/v4/stable/4.40.0/video-plugin"};
function addJs(a){var b=document.head,c=document.createElement('script');c.type='text/javascript';c.src=a;b.appendChild(c)};
function addCss(a){var b=document.head,c=document.createElement('link');c.type='text/css',c.rel='stylesheet',c.href=a,b.appendChild(c)};
addCss('https://player.ooyala.com/static/v4/stable/4.40.0/skin-plugin/html5-skin.min.css');
} catch (err) {
if (err && window.console && window.console.log) { window.console.log(err, err.stack); }
}