(function(){/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ 'use strict';var f,aa=function(a){var b=0;return function(){return b>> 0),ja=0,ka=function(a,b,c){return a.call.apply(a.bind,arguments)},la=function(a,b,c){if(!a)throw Error();if(2/g,ta=/"/g,ua=/'/g,va=/\x00/g,wa=/[\x00&<>"']/;var B;a:{var xa=p.navigator;if(xa){var ya=xa.userAgent;if(ya){B=ya;break a}}B=""}var C=function(a){return-1!=B.indexOf(a)};var E=function(a,b,c){this.g=c===D?a:""};E.prototype.toString=function(){return this.g.toString()};var za=function(a){if(a instanceof E&&a.constructor===E)return a.g;na("expected object of type SafeHtml, got '"+a+"' of type "+ia(a));return"type_error:SafeHtml"},D={},Aa=new E(p.trustedTypes&&p.trustedTypes.emptyHTML||"",0,D);var Ba={MATH:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Ca=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if("undefined"===typeof document)return!1;var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);if(!a.firstChild)return!1;b=a.firstChild.firstChild;a.innerHTML=za(Aa);return!b.parentElement});var Ea=function(a){var b={"&":"&","<":"<",">":">",""":'"'};var c=p.document.createElement("div");return a.replace(Da,function(d,e){var h=b[d];if(h)return h;"#"==e.charAt(0)&&(e=Number("0"+e.substr(1)),isNaN(e)||(h=String.fromCharCode(e)));if(!h){h=d+" ";if(void 0===A){e=null;var k=p.trustedTypes;if(k&&k.createPolicy){try{e=k.createPolicy("goog#html",{createHTML:x,createScript:x,createScriptURL:x})}catch(l){p.console&&p.console.error(l.message)}A=e}else A=e}h=(e=A)?e.createHTML(h):h; h=new E(h,null,D);if(c.tagName&&Ba[c.tagName.toUpperCase()])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+c.tagName+".");if(Ca())for(;c.lastChild;)c.removeChild(c.lastChild);c.innerHTML=za(h);h=c.firstChild.nodeValue.slice(0,-1)}return b[d]=h})},Fa=function(a){return a.replace(/&([^;]+);/g,function(b,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return"#"!=c.charAt(0)||(c=Number("0"+c.substr(1)),isNaN(c))?b:String.fromCharCode(c)}})}, Da=/&([^;\s<&]+);?/g;chrome.cast.bb=function(a,b,c,d,e){this.sessionRequest=a;this.sessionListener=b;this.receiverListener=c;this.autoJoinPolicy=d||chrome.cast.na.TAB_AND_ORIGIN_SCOPED;this.defaultActionPolicy=e||chrome.cast.qa.CREATE_SESSION;this.customDialLaunchCallback=null;this.invisibleSender=!1;this.additionalSessionRequests=[]};w("chrome.cast.ApiConfig",chrome.cast.bb);chrome.cast.lb=function(a,b){this.appName=a;this.launchParameter=b||null};w("chrome.cast.DialRequest",chrome.cast.lb); chrome.cast.jb=function(a,b,c){this.receiver=a;this.appState=b;this.extraData=c||null};w("chrome.cast.DialLaunchData",chrome.cast.jb);chrome.cast.kb=function(a,b){this.doLaunch=a;this.launchParameter=b||null};w("chrome.cast.DialLaunchResponse",chrome.cast.kb); chrome.cast.Kb=function(a,b,c,d,e){c=void 0===c?chrome.cast.timeout.requestSession:c;this.appId=a;this.capabilities=Array.isArray(b)?b:[chrome.cast.Y.VIDEO_OUT,chrome.cast.Y.AUDIO_OUT];this.requestSessionTimeout=c;this.dialRequest=this.language=null;this.androidReceiverCompatible=void 0===d?!1:d;this.credentialsData=void 0===e?null:e};w("chrome.cast.SessionRequest",chrome.cast.Kb); chrome.cast.Db=function(a,b,c,d){this.label=a;a=b;wa.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(qa,"&")),-1!=a.indexOf("<")&&(a=a.replace(ra,"<")),-1!=a.indexOf(">")&&(a=a.replace(sa,">")),-1!=a.indexOf('"')&&(a=a.replace(ta,""")),-1!=a.indexOf("'")&&(a=a.replace(ua,"'")),-1!=a.indexOf("\x00")&&(a=a.replace(va,"�")));this.friendlyName=a;this.capabilities=c||[];this.volume=d||null;this.receiverType=chrome.cast.Ea.CAST;this.displayStatus=this.isActiveInput=null}; w("chrome.cast.Receiver",chrome.cast.Db);chrome.cast.Fb=function(a,b){this.statusText=a;this.appImages=b;this.showStop=null};w("chrome.cast.ReceiverDisplayStatus",chrome.cast.Fb);chrome.cast.Ha=function(){this.requestSession=6E4;this.getDialAppInfo=this.sendCustomMessage=this.setReceiverVolume=this.stopSession=this.leaveSession=3E3};w("chrome.cast.Timeout",chrome.cast.Ha);chrome.cast.timeout=new chrome.cast.Ha;w("chrome.cast.timeout",chrome.cast.timeout);chrome.cast.ab="auto-join"; chrome.cast.xb="cast-session_";chrome.cast.media.qb={SDR:"sdr",HDR:"hdr",DV:"dv"};w("chrome.cast.media.HdrType",chrome.cast.media.qb);chrome.cast.media.rb={AAC:"aac",AC3:"ac3",MP3:"mp3",TS:"ts",TS_AAC:"ts_aac",E_AC3:"e_ac3",FMP4:"fmp4"};w("chrome.cast.media.HlsSegmentFormat",chrome.cast.media.rb);chrome.cast.media.sb={MPEG2_TS:"mpeg2_ts",FMP4:"fmp4"};w("chrome.cast.media.HlsVideoSegmentFormat",chrome.cast.media.sb);chrome.cast.media.vb={PAUSE:"pause",SEEK:"seek",STREAM_VOLUME:"stream_volume",STREAM_MUTE:"stream_mute"}; w("chrome.cast.media.MediaCommand",chrome.cast.media.vb);chrome.cast.media.Bb={ALBUM:"ALBUM",PLAYLIST:"PLAYLIST",AUDIOBOOK:"AUDIOBOOK",RADIO_STATION:"RADIO_STATION",PODCAST_SERIES:"PODCAST_SERIES",TV_SERIES:"TV_SERIES",VIDEO_PLAYLIST:"VIDEO_PLAYLIST",LIVE_TV:"LIVE_TV",MOVIE:"MOVIE"};w("chrome.cast.media.QueueType",chrome.cast.media.Bb);chrome.cast.media.aa={GENERIC_CONTAINER:0,AUDIOBOOK_CONTAINER:1};w("chrome.cast.media.ContainerType",chrome.cast.media.aa); chrome.cast.media.I={GENERIC:0,MOVIE:1,TV_SHOW:2,MUSIC_TRACK:3,PHOTO:4,AUDIOBOOK_CHAPTER:5};w("chrome.cast.media.MetadataType",chrome.cast.media.I);chrome.cast.media.H={IDLE:"IDLE",PLAYING:"PLAYING",PAUSED:"PAUSED",BUFFERING:"BUFFERING"};w("chrome.cast.media.PlayerState",chrome.cast.media.H);chrome.cast.media.ba={OFF:"REPEAT_OFF",ALL:"REPEAT_ALL",SINGLE:"REPEAT_SINGLE",ALL_AND_SHUFFLE:"REPEAT_ALL_AND_SHUFFLE"};w("chrome.cast.media.RepeatMode",chrome.cast.media.ba); chrome.cast.media.Gb={PLAYBACK_START:"PLAYBACK_START",PLAYBACK_PAUSE:"PLAYBACK_PAUSE"};w("chrome.cast.media.ResumeState",chrome.cast.media.Gb);chrome.cast.media.Ga={BUFFERED:"BUFFERED",LIVE:"LIVE",OTHER:"OTHER"};w("chrome.cast.media.StreamType",chrome.cast.media.Ga);chrome.cast.media.tb={CANCELLED:"CANCELLED",INTERRUPTED:"INTERRUPTED",FINISHED:"FINISHED",ERROR:"ERROR"};w("chrome.cast.media.IdleReason",chrome.cast.media.tb);chrome.cast.media.Sb={TEXT:"TEXT",AUDIO:"AUDIO",VIDEO:"VIDEO"}; w("chrome.cast.media.TrackType",chrome.cast.media.Sb);chrome.cast.media.Pb={SUBTITLES:"SUBTITLES",CAPTIONS:"CAPTIONS",DESCRIPTIONS:"DESCRIPTIONS",CHAPTERS:"CHAPTERS",METADATA:"METADATA"};w("chrome.cast.media.TextTrackType",chrome.cast.media.Pb);chrome.cast.media.Lb={NONE:"NONE",OUTLINE:"OUTLINE",DROP_SHADOW:"DROP_SHADOW",RAISED:"RAISED",DEPRESSED:"DEPRESSED"};w("chrome.cast.media.TextTrackEdgeType",chrome.cast.media.Lb);chrome.cast.media.Qb={NONE:"NONE",NORMAL:"NORMAL",ROUNDED_CORNERS:"ROUNDED_CORNERS"}; w("chrome.cast.media.TextTrackWindowType",chrome.cast.media.Qb);chrome.cast.media.Mb={SANS_SERIF:"SANS_SERIF",MONOSPACED_SANS_SERIF:"MONOSPACED_SANS_SERIF",SERIF:"SERIF",MONOSPACED_SERIF:"MONOSPACED_SERIF",CASUAL:"CASUAL",CURSIVE:"CURSIVE",SMALL_CAPITALS:"SMALL_CAPITALS"};w("chrome.cast.media.TextTrackFontGenericFamily",chrome.cast.media.Mb);chrome.cast.media.Nb={NORMAL:"NORMAL",BOLD:"BOLD",BOLD_ITALIC:"BOLD_ITALIC",ITALIC:"ITALIC"};w("chrome.cast.media.TextTrackFontStyle",chrome.cast.media.Nb); chrome.cast.media.Tb={LIKE:"LIKE",DISLIKE:"DISLIKE",FOLLOW:"FOLLOW",UNFOLLOW:"UNFOLLOW"};w("chrome.cast.media.UserAction",chrome.cast.media.Tb);chrome.cast.media.sa=function(){this.customData=null};w("chrome.cast.media.GetStatusRequest",chrome.cast.media.sa);chrome.cast.media.wa=function(){this.customData=null};w("chrome.cast.media.PauseRequest",chrome.cast.media.wa);chrome.cast.media.ya=function(){this.customData=null};w("chrome.cast.media.PlayRequest",chrome.cast.media.ya);chrome.cast.media.Hb=function(){this.customData=this.resumeState=this.currentTime=null};w("chrome.cast.media.SeekRequest",chrome.cast.media.Hb); chrome.cast.media.Fa=function(){this.customData=null};w("chrome.cast.media.StopRequest",chrome.cast.media.Fa);chrome.cast.media.Yb=function(a){this.volume=a;this.customData=null};w("chrome.cast.media.VolumeRequest",chrome.cast.media.Yb); chrome.cast.media.ub=function(a){this.type="LOAD";this.requestId=0;this.sessionId=null;this.media=a;this.activeTrackIds=null;this.autoplay=!0;this.atvCredentialsType=this.atvCredentials=this.credentialsType=this.credentials=void 0;this.customData=this.currentTime=null;this.queueData=this.playbackRate=void 0};w("chrome.cast.media.LoadRequest",chrome.cast.media.ub);chrome.cast.media.yb=function(a){this.type="PRECACHE";this.requestId=0;this.precacheData=a}; chrome.cast.media.mb=function(a,b){this.requestId=0;this.activeTrackIds=a||null;this.textTrackStyle=b||null};w("chrome.cast.media.EditTracksInfoRequest",chrome.cast.media.mb);chrome.cast.media.Z=function(a){this.containerType=a=void 0===a?chrome.cast.media.aa.GENERIC_CONTAINER:a;this.containerDuration=this.containerImages=this.sections=this.title=void 0};w("chrome.cast.media.ContainerMetadata",chrome.cast.media.Z); chrome.cast.media.u=function(a){this.metadataType=this.type=a;this.queueItemId=this.sectionStartTimeInContainer=this.sectionStartAbsoluteTime=this.sectionStartTimeInMedia=this.sectionDuration=void 0};w("chrome.cast.media.MediaMetadata",chrome.cast.media.u);chrome.cast.media.ra=function(){chrome.cast.media.u.call(this,chrome.cast.media.I.GENERIC);this.releaseDate=this.releaseYear=this.images=this.subtitle=this.title=void 0};n(chrome.cast.media.ra,chrome.cast.media.u); w("chrome.cast.media.GenericMediaMetadata",chrome.cast.media.ra);chrome.cast.media.ua=function(){chrome.cast.media.u.call(this,chrome.cast.media.I.MOVIE);this.releaseDate=this.releaseYear=this.images=this.subtitle=this.studio=this.title=void 0};n(chrome.cast.media.ua,chrome.cast.media.u);w("chrome.cast.media.MovieMediaMetadata",chrome.cast.media.ua); chrome.cast.media.Ia=function(){chrome.cast.media.u.call(this,chrome.cast.media.I.TV_SHOW);this.originalAirdate=this.releaseYear=this.images=this.episode=this.episodeNumber=this.season=this.seasonNumber=this.episodeTitle=this.title=this.seriesTitle=void 0};n(chrome.cast.media.Ia,chrome.cast.media.u);w("chrome.cast.media.TvShowMediaMetadata",chrome.cast.media.Ia); chrome.cast.media.va=function(){chrome.cast.media.u.call(this,chrome.cast.media.I.MUSIC_TRACK);this.releaseDate=this.releaseYear=this.images=this.discNumber=this.trackNumber=this.artistName=this.songName=this.composer=this.artist=this.albumArtist=this.title=this.albumName=void 0};n(chrome.cast.media.va,chrome.cast.media.u);w("chrome.cast.media.MusicTrackMediaMetadata",chrome.cast.media.va); chrome.cast.media.xa=function(){chrome.cast.media.u.call(this,chrome.cast.media.I.PHOTO);this.creationDateTime=this.height=this.width=this.longitude=this.latitude=this.images=this.location=this.artist=this.title=void 0};n(chrome.cast.media.xa,chrome.cast.media.u);w("chrome.cast.media.PhotoMediaMetadata",chrome.cast.media.xa);chrome.cast.media.ma=function(){chrome.cast.media.Z.call(this,chrome.cast.media.aa.AUDIOBOOK_CONTAINER);this.releaseDate=this.publisher=this.narrators=this.authors=void 0}; n(chrome.cast.media.ma,chrome.cast.media.Z);w("chrome.cast.media.AudiobookContainerMetadata",chrome.cast.media.ma);chrome.cast.media.la=function(){chrome.cast.media.u.call(this,chrome.cast.media.I.AUDIOBOOK_CHAPTER);this.images=this.subtitle=this.bookTitle=this.chapterNumber=this.title=this.chapterTitle=void 0};n(chrome.cast.media.la,chrome.cast.media.u);w("chrome.cast.media.AudiobookChapterMediaMetadata",chrome.cast.media.la); chrome.cast.media.wb=function(a,b){this.contentId=a;this.contentUrl=void 0;this.streamType=chrome.cast.media.Ga.BUFFERED;this.contentType=b;this.metadata=null;this.atvEntity=this.entity=void 0;this.duration=null;this.startAbsoluteTime=void 0;this.customData=this.textTrackStyle=this.tracks=null;this.userActionStates=this.hlsVideoSegmentFormat=this.hlsSegmentFormat=this.vmapAdsRequest=this.breakClips=this.breaks=void 0};w("chrome.cast.media.MediaInfo",chrome.cast.media.wb); chrome.cast.media.Aa=function(a){this.itemId=null;this.media=a;this.autoplay=!0;this.startTime=0;this.playbackDuration=null;this.preloadTime=0;this.customData=this.activeTrackIds=null};w("chrome.cast.media.QueueItem",chrome.cast.media.Aa);chrome.cast.media.hb="CC1AD845";w("chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID",chrome.cast.media.hb);chrome.cast.media.timeout={};chrome.cast.media.timeout.load=0;w("chrome.cast.media.timeout.load",chrome.cast.media.timeout.load); chrome.cast.media.timeout.V=0;w("chrome.cast.media.timeout.getStatus",chrome.cast.media.timeout.V);chrome.cast.media.timeout.play=0;w("chrome.cast.media.timeout.play",chrome.cast.media.timeout.play);chrome.cast.media.timeout.pause=0;w("chrome.cast.media.timeout.pause",chrome.cast.media.timeout.pause);chrome.cast.media.timeout.seek=0;w("chrome.cast.media.timeout.seek",chrome.cast.media.timeout.seek);chrome.cast.media.timeout.stop=0;w("chrome.cast.media.timeout.stop",chrome.cast.media.timeout.stop); chrome.cast.media.timeout.X=0;w("chrome.cast.media.timeout.setVolume",chrome.cast.media.timeout.X);chrome.cast.media.timeout.U=0;w("chrome.cast.media.timeout.editTracksInfo",chrome.cast.media.timeout.U);chrome.cast.media.timeout.A=0;w("chrome.cast.media.timeout.queue",chrome.cast.media.timeout.A);chrome.cast.media.Rb=function(a,b){this.trackId=a;this.trackContentType=this.trackContentId=null;this.type=b;this.customData=this.subtype=this.language=this.name=null};w("chrome.cast.media.Track",chrome.cast.media.Rb); chrome.cast.media.Ob=function(){this.customData=this.fontStyle=this.fontGenericFamily=this.fontFamily=this.fontScale=this.windowRoundedCornerRadius=this.windowColor=this.windowType=this.edgeColor=this.edgeType=this.backgroundColor=this.foregroundColor=null};w("chrome.cast.media.TextTrackStyle",chrome.cast.media.Ob);chrome.cast.media.Ab=function(a){this.type="QUEUE_LOAD";this.sessionId=this.requestId=null;this.items=a;this.startIndex=0;this.repeatMode=chrome.cast.media.ba.OFF;this.customData=null}; w("chrome.cast.media.QueueLoadRequest",chrome.cast.media.Ab);chrome.cast.media.za=function(a){this.type="QUEUE_INSERT";this.sessionId=this.requestId=null;this.items=a;this.customData=this.insertBefore=null};w("chrome.cast.media.QueueInsertItemsRequest",chrome.cast.media.za);chrome.cast.media.Cb=function(a){this.type="QUEUE_UPDATE";this.sessionId=this.requestId=null;this.items=a;this.customData=null};w("chrome.cast.media.QueueUpdateItemsRequest",chrome.cast.media.Cb); chrome.cast.media.S=function(){this.type="QUEUE_UPDATE";this.customData=this.jump=this.currentItemId=this.sessionId=this.requestId=null};w("chrome.cast.media.QueueJumpRequest",chrome.cast.media.S);chrome.cast.media.Da=function(){this.type="QUEUE_UPDATE";this.customData=this.repeatMode=this.sessionId=this.requestId=null};w("chrome.cast.media.QueueSetPropertiesRequest",chrome.cast.media.Da); chrome.cast.media.Ba=function(a){this.type="QUEUE_REMOVE";this.sessionId=this.requestId=null;this.itemIds=a;this.customData=null};w("chrome.cast.media.QueueRemoveItemsRequest",chrome.cast.media.Ba);chrome.cast.media.Ca=function(a){this.type="QUEUE_REORDER";this.sessionId=this.requestId=null;this.itemIds=a;this.customData=this.insertBefore=null};w("chrome.cast.media.QueueReorderItemsRequest",chrome.cast.media.Ca); chrome.cast.media.cb=function(a,b,c){this.id=a;this.breakClipIds=b;this.position=c;this.duration=void 0;this.isWatched=!1;this.isEmbedded=void 0};w("chrome.cast.media.Break",chrome.cast.media.cb);chrome.cast.media.eb=function(a){this.id=a;this.vastAdsRequest=this.customData=this.hlsSegmentFormat=this.clickThroughUrl=this.posterUrl=this.whenSkippable=this.duration=this.title=this.contentType=this.contentUrl=this.contentId=void 0};w("chrome.cast.media.BreakClip",chrome.cast.media.eb); chrome.cast.media.Vb=function(){this.adsResponse=this.adTagUrl=void 0};w("chrome.cast.media.VastAdsRequest",chrome.cast.media.Vb);chrome.cast.media.fb=function(){this.whenSkippable=this.breakClipId=this.breakId=this.currentBreakClipTime=this.currentBreakTime=void 0};w("chrome.cast.media.BreakStatus",chrome.cast.media.fb);chrome.cast.media.ta=function(a,b,c,d){this.start=a;this.end=b;this.isMovingWindow=c;this.isLiveDone=d};w("chrome.cast.media.LiveSeekableRange",chrome.cast.media.ta); chrome.cast.media.zb=function(a,b,c,d,e,h,k){this.id=a;this.queueType=this.entity=void 0;this.name=b;this.description=c;this.repeatMode=d;this.shuffle=!1;this.items=e;this.startIndex=h;this.startTime=k;this.containerMetadata=void 0};w("chrome.cast.media.QueueData",chrome.cast.media.zb);chrome.cast.media.Ub=function(a){this.userAction=a;this.customData=void 0};w("chrome.cast.media.UserActionState",chrome.cast.media.Ub);chrome.cast.media.Wb=function(a,b,c){this.width=a;this.height=b;this.hdrType=c}; w("chrome.cast.media.VideoInformation",chrome.cast.media.Wb);chrome.cast.media.h=function(a,b){this.sessionId=a;this.mediaSessionId=b;this.media=null;this.videoInfo=this.queueData=void 0;this.playbackRate=1;this.playerState=chrome.cast.media.H.IDLE;this.currentTime=0;this.g=-1;this.supportedMediaCommands=[];this.volume=new chrome.cast.Volume;this.items=this.preloadedItemId=this.loadingItemId=this.currentItemId=this.customData=this.activeTrackIds=this.idleReason=null;this.repeatMode=chrome.cast.media.ba.OFF;this.breakStatus=void 0;this.l=!1;this.j=[];this.liveSeekableRange= void 0};f=chrome.cast.media.h.prototype;f.V=function(a,b,c){a||(a=new chrome.cast.media.sa);F.s(this,"MEDIA_GET_STATUS",a,b,c,chrome.cast.media.timeout.V)};f.play=function(a,b,c){this.Oa(F,a,b,c)};f.Oa=function(a,b,c,d){b||(b=new chrome.cast.media.ya);a.s(this,"PLAY",b,c,d,chrome.cast.media.timeout.play)};f.pause=function(a,b,c){this.Na(F,a,b,c)};f.Na=function(a,b,c,d){b||(b=new chrome.cast.media.wa);a.s(this,"PAUSE",b,c,d,chrome.cast.media.timeout.pause)}; f.seek=function(a,b,c){F.s(this,"SEEK",a,b,c,chrome.cast.media.timeout.seek)};f.stop=function(a,b,c){a||(a=new chrome.cast.media.Fa);F.s(this,"STOP_MEDIA",a,b,c,chrome.cast.media.timeout.stop)};f.X=function(a,b,c){F.s(this,"MEDIA_SET_VOLUME",a,b,c,chrome.cast.media.timeout.X)};f.U=function(a,b,c){F.s(this,"EDIT_TRACKS_INFO",a,b,c,chrome.cast.media.timeout.U)};f.pc=function(a,b,c){F.s(this,"QUEUE_INSERT",a,b,c,chrome.cast.media.timeout.A)}; f.oc=function(a,b,c){F.s(this,"QUEUE_INSERT",new chrome.cast.media.za([a]),b,c,chrome.cast.media.timeout.A)};f.zc=function(a,b,c){F.s(this,"QUEUE_UPDATE",a,b,c,chrome.cast.media.timeout.A)};f.uc=function(a,b){var c=new chrome.cast.media.S;c.jump=-1;F.s(this,"QUEUE_UPDATE",c,a,b,chrome.cast.media.timeout.A)};f.tc=function(a,b){var c=new chrome.cast.media.S;c.jump=1;F.s(this,"QUEUE_UPDATE",c,a,b,chrome.cast.media.timeout.A)}; f.qc=function(a,b,c){if(!(0>G(this,a))){var d=new chrome.cast.media.S;d.currentItemId=a;F.s(this,"QUEUE_UPDATE",d,b,c,chrome.cast.media.timeout.A)}};f.yc=function(a,b,c){var d=new chrome.cast.media.Da;d.repeatMode=a;F.s(this,"QUEUE_UPDATE",d,b,c,chrome.cast.media.timeout.A)};f.wc=function(a,b,c){F.s(this,"QUEUE_REMOVE",a,b,c,chrome.cast.media.timeout.A)};f.vc=function(a,b,c){0>G(this,a)||F.s(this,"QUEUE_REMOVE",new chrome.cast.media.Ba([a]),b,c,chrome.cast.media.timeout.A)}; f.xc=function(a,b,c){F.s(this,"QUEUE_REORDER",a,b,c,chrome.cast.media.timeout.A)};f.sc=function(a,b,c,d){var e=G(this,a);if(!(0>e))if(0>b)d&&d(new chrome.cast.Error(chrome.cast.D.INVALID_PARAMETER));else if(e==b)c&&c();else{var h=null;b=b>e?b+1:b;bthis.media.duration&&-1!=this.media.duration&&(a=this.media.duration);0>a&&(a=0);return a}return this.currentTime};f.fc=function(){if(this.breakStatus&&void 0!==this.breakStatus.currentBreakTime)return this.playerState==chrome.cast.media.H.PLAYING&&0<=this.g?this.breakStatus.currentBreakTime+(Date.now()-this.g)/1E3:this.breakStatus.currentBreakTime}; f.ec=function(){if(this.breakStatus&&void 0!==this.breakStatus.currentBreakClipTime)return this.playerState==chrome.cast.media.H.PLAYING&&0<=this.g?this.breakStatus.currentBreakClipTime+(Date.now()-this.g)/1E3:this.breakStatus.currentBreakClipTime}; f.hc=function(){if(this.liveSeekableRange&&void 0!==this.liveSeekableRange.start&&void 0!==this.liveSeekableRange.end){if(this.playerState==chrome.cast.media.H.PLAYING&&0<=this.g){var a=(Date.now()-this.g)/1E3,b=new chrome.cast.media.ta;b.isMovingWindow=this.liveSeekableRange.isMovingWindow;b.isLiveDone=this.liveSeekableRange.isLiveDone;b.start=b.isMovingWindow?this.liveSeekableRange.start+a:this.liveSeekableRange.start;b.end=b.isLiveDone?this.liveSeekableRange.end:this.liveSeekableRange.end+a;return b}return this.liveSeekableRange}}; f.ea=function(a){this.O(F,a)};f.O=function(a,b){a.ac(this,b)};f.ha=function(a){this.R(F,a)};f.R=function(a,b){F.Bc(this,b)};var G=function(a,b){return pa(a.items,function(c){return c.itemId==b})};w("chrome.cast.media.Media",chrome.cast.media.h);chrome.cast.media.h.prototype.removeUpdateListenerWithContext=chrome.cast.media.h.prototype.R;chrome.cast.media.h.prototype.removeUpdateListener=chrome.cast.media.h.prototype.ha;chrome.cast.media.h.prototype.addUpdateListenerWithContext=chrome.cast.media.h.prototype.O; chrome.cast.media.h.prototype.addUpdateListener=chrome.cast.media.h.prototype.ea;chrome.cast.media.h.prototype.getEstimatedLiveSeekableRange=chrome.cast.media.h.prototype.hc;chrome.cast.media.h.prototype.getEstimatedBreakClipTime=chrome.cast.media.h.prototype.ec;chrome.cast.media.h.prototype.getEstimatedBreakTime=chrome.cast.media.h.prototype.fc;chrome.cast.media.h.prototype.getEstimatedTime=chrome.cast.media.h.prototype.ic;chrome.cast.media.h.prototype.supportsCommand=chrome.cast.media.h.prototype.Kc; chrome.cast.media.h.prototype.queueMoveItemToNewIndex=chrome.cast.media.h.prototype.sc;chrome.cast.media.h.prototype.queueReorderItems=chrome.cast.media.h.prototype.xc;chrome.cast.media.h.prototype.queueRemoveItem=chrome.cast.media.h.prototype.vc;chrome.cast.media.h.prototype.queueRemoveItems=chrome.cast.media.h.prototype.wc;chrome.cast.media.h.prototype.queueSetRepeatMode=chrome.cast.media.h.prototype.yc;chrome.cast.media.h.prototype.queueJumpToItem=chrome.cast.media.h.prototype.qc; chrome.cast.media.h.prototype.queueNext=chrome.cast.media.h.prototype.tc;chrome.cast.media.h.prototype.queuePrev=chrome.cast.media.h.prototype.uc;chrome.cast.media.h.prototype.queueUpdateItems=chrome.cast.media.h.prototype.zc;chrome.cast.media.h.prototype.queueAppendItem=chrome.cast.media.h.prototype.oc;chrome.cast.media.h.prototype.queueInsertItems=chrome.cast.media.h.prototype.pc;chrome.cast.media.h.prototype.editTracksInfo=chrome.cast.media.h.prototype.U; chrome.cast.media.h.prototype.setVolume=chrome.cast.media.h.prototype.X;chrome.cast.media.h.prototype.stop=chrome.cast.media.h.prototype.stop;chrome.cast.media.h.prototype.seek=chrome.cast.media.h.prototype.seek;chrome.cast.media.h.prototype.pauseWithContext=chrome.cast.media.h.prototype.Na;chrome.cast.media.h.prototype.pause=chrome.cast.media.h.prototype.pause;chrome.cast.media.h.prototype.playWithContext=chrome.cast.media.h.prototype.Oa;chrome.cast.media.h.prototype.play=chrome.cast.media.h.prototype.play; chrome.cast.media.h.prototype.getStatus=chrome.cast.media.h.prototype.V;var F=null;var Ga=function(a,b,c){this.sessionId=a;this.namespaceName=b;this.message=c};var Ha=function(a,b){this.type="SET_VOLUME";this.requestId=0;this.volume=a;this.expectedVolume=b||null};var Ia=function(a){this.type="STOP";this.requestId=0;this.sessionId=a||null};chrome.cast.i=function(a,b,c,d,e){this.sessionId=a;this.appId=b;this.displayName=c;this.statusText=null;this.appImages=d;this.receiver=e;this.senderApps=[];this.namespaces=[];this.media=[];this.status=chrome.cast.N.CONNECTED;this.transportId=""};f=chrome.cast.i.prototype;f.Ic=function(a,b,c){this.Wa(F,a,b,c)};f.Wa=function(a,b,c,d){b=new Ha(new chrome.cast.Volume(b,null),this.receiver.volume);a.setReceiverVolume(this.sessionId,b,c,d)};f.Hc=function(a,b,c){this.Va(F,a,b,c)}; f.Va=function(a,b,c,d){a=new Ha(new chrome.cast.Volume(null,b),this.receiver.volume);F.setReceiverVolume(this.sessionId,a,c,d)};f.getDialAppInfo=function(a,b){this.Ma(F,a,b)};f.Ma=function(a,b,c){a.getDialAppInfo(b,c)};f.kc=function(a,b){F.leaveSession(this.sessionId,a,b)};f.stop=function(a,b){this.Ya(F,a,b)};f.Ya=function(a,b,c){a.Sa(new Ia(this.sessionId),b,c,chrome.cast.timeout.stopSession)};f.sendMessage=function(a,b,c,d){this.Ua(F,a,b,c,d)}; f.Ua=function(a,b,c,d,e){a.Ec(new Ga(this.sessionId,b,c),d,e)};f.ea=function(a){this.O(F,a)};f.O=function(a,b){a.cc(this.sessionId,b)};f.ha=function(a){this.R(F,a)};f.R=function(a,b){a.Dc(this.sessionId,b)};f.bc=function(a,b){this.Ka(F,a,b)};f.Ka=function(a,b,c){a.Zb(this.sessionId,b,c)};f.ca=function(a){this.Ja(F,a)};f.Ja=function(a,b){a.ca(this.sessionId,b)};f.fa=function(a){this.Pa(F,a)};f.Pa=function(a,b){a.fa(this.sessionId,b)};f.Cc=function(a,b){this.Qa(F,a,b)}; f.Qa=function(a,b,c){a.Ac(this.sessionId,b,c)};f.lc=function(a,b,c){a.sessionId=this.sessionId;F.Ta(a,"LOAD",b,c)};f.rc=function(a,b,c){a.sessionId=this.sessionId;F.Ta(a,"QUEUE_LOAD",b,c)};w("chrome.cast.Session",chrome.cast.i);chrome.cast.i.prototype.queueLoad=chrome.cast.i.prototype.rc;chrome.cast.i.prototype.loadMedia=chrome.cast.i.prototype.lc;chrome.cast.i.prototype.removeMessageListenerWithContext=chrome.cast.i.prototype.Qa;chrome.cast.i.prototype.removeMessageListener=chrome.cast.i.prototype.Cc; chrome.cast.i.prototype.removeMediaListenerWithContext=chrome.cast.i.prototype.Pa;chrome.cast.i.prototype.removeMediaListener=chrome.cast.i.prototype.fa;chrome.cast.i.prototype.addMediaListenerWithContext=chrome.cast.i.prototype.Ja;chrome.cast.i.prototype.addMediaListener=chrome.cast.i.prototype.ca;chrome.cast.i.prototype.addMessageListenerWithContext=chrome.cast.i.prototype.Ka;chrome.cast.i.prototype.addMessageListener=chrome.cast.i.prototype.bc; chrome.cast.i.prototype.removeUpdateListenerWithContext=chrome.cast.i.prototype.R;chrome.cast.i.prototype.removeUpdateListener=chrome.cast.i.prototype.ha;chrome.cast.i.prototype.addUpdateListenerWithContext=chrome.cast.i.prototype.O;chrome.cast.i.prototype.addUpdateListener=chrome.cast.i.prototype.ea;chrome.cast.i.prototype.sendMessageWithContext=chrome.cast.i.prototype.Ua;chrome.cast.i.prototype.sendMessage=chrome.cast.i.prototype.sendMessage;chrome.cast.i.prototype.stopWithContext=chrome.cast.i.prototype.Ya; chrome.cast.i.prototype.stop=chrome.cast.i.prototype.stop;chrome.cast.i.prototype.leave=chrome.cast.i.prototype.kc;chrome.cast.i.prototype.getDialAppInfoWithContext=chrome.cast.i.prototype.Ma;chrome.cast.i.prototype.getDialAppInfo=chrome.cast.i.prototype.getDialAppInfo;chrome.cast.i.prototype.setReceiverMutedWithContext=chrome.cast.i.prototype.Va;chrome.cast.i.prototype.setReceiverMuted=chrome.cast.i.prototype.Hc;chrome.cast.i.prototype.setReceiverVolumeLevelWithContext=chrome.cast.i.prototype.Wa; chrome.cast.i.prototype.setReceiverVolumeLevel=chrome.cast.i.prototype.Ic;var H="StopIteration"in p?p.StopIteration:{message:"StopIteration",stack:""},I=function(){};I.prototype.next=function(){throw H;};I.prototype.F=function(){return this}; var Ja=function(a){if(a instanceof I)return a;if("function"==typeof a.F)return a.F(!1);if(r(a)){var b=0,c=new I;c.next=function(){for(;;){if(b>=a.length)throw H;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},J=function(a,b){if(r(a))try{oa(a,b,void 0)}catch(c){if(c!==H)throw c;}else{a=Ja(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==H)throw c;}}};var K=function(a,b){this.g={};this.o=[];this.l=this.j=0;var c=arguments.length;if(12*this.j&&L(this),!0):!1};var L=function(a){if(a.j!=a.o.length){for(var b=0,c=0;b=d.o.length)throw H;var h=d.o[b++];return a?h:d.g[h]};return e};var M=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var N=function(a,b){this.requestId=a;this.m=b;this.Za=null};N.prototype.j=function(){};var Ka=function(){this.g=new K},La=function(a,b){a.g.set(b.requestId,b);b.Za=setTimeout(function(){a.g.remove(b.requestId);b.j()},b.m)},Ma=function(a,b){var c=a.g.get(b);if(!c)return null;clearTimeout(c.Za);a.g.remove(b);return c};var O=function(a,b,c,d){N.call(this,a,d||6E5);this.l=b;this.g=c};n(O,N);O.prototype.j=function(){this.g(new chrome.cast.Error(chrome.cast.D.TIMEOUT))};var P=function(a,b,c,d){this.type=a;this.message=b;this.sequenceNumber=void 0!==c?c:-1;this.timeoutMillis=d||0;this.clientId=""};var Q=function(a){this.l=a;this.j=String(Date.now())+String(Math.floor(1E5*Math.random()));this.g=null},Na=function(a,b){if(!a.g)return"No active session";b.clientId=a.j;b=JSON.stringify(b);if(32768>=8);b[c++]=e}a=void 0;void 0===a&&(a=0);if(!U)for(U={},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),d=["+/=","+/","-_=","-_.","-_"],e=0;5>e;e++){var h=c.concat(d[e].split(""));db[e]=h;for(var k=0;k>2;q=(q&3)<<4|t>>4;t=(t&15)<<2|l>>6;l&=63;h||(l=64,e||(t=64));c.push(a[k],a[q],a[t]||"",a[l]||"")}b=c.join("")}return b};var gb=function(a){if(a.P&&"function"==typeof a.P)return a.P();if("string"===typeof a)return a.split("");if(r(a)){for(var b=[],c=a.length,d=0;d