(function(){'use strict';var f,aa=function(a,b){function c(){}c.prototype=b.prototype;a.lc=b.prototype;a.prototype=new c;a.prototype.constructor=a;for(var d in b)if(Object.defineProperties){var e=Object.getOwnPropertyDescriptor(b,d);e&&Object.defineProperty(a,d,e)}else a[d]=b[d]},ba="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},h="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:
this,ca=function(){ca=function(){};h.Symbol||(h.Symbol=da)},ea=0,da=function(a){return"jscomp_symbol_"+(a||"")+ea++},l=function(){ca();var a=h.Symbol.iterator;a||(a=h.Symbol.iterator=h.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&ba(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return fa(this)}});l=function(){}},fa=function(a){var b=0;return ga(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})},ga=function(a){l();a={next:a};a[h.Symbol.iterator]=function(){return this};
return a},ha=function(a){l();var b=a[Symbol.iterator];return b?b.call(a):fa(a)},m=this,ia=function(){},ja=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||
"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},ka=function(a){var b=ja(a);return"array"==b||"object"==b&&"number"==typeof a.length},p=function(a){return"string"==typeof a},la="closure_uid_"+(1E9*Math.random()>>>0),ma=0,oa=function(a,b,c){return a.call.apply(a.bind,arguments)},pa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=
Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},q=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?q=oa:q=pa;return q.apply(null,arguments)},t=function(a,b){a=a.split(".");var c=m;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&
c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};var chrome=chrome||window.chrome||{};chrome.cast=chrome.cast||{};chrome.cast.media=chrome.cast.media||{};chrome.cast.VERSION=[1,2];t("chrome.cast.VERSION",chrome.cast.VERSION);chrome.cast.nc=!0;t("chrome.cast.usingPresentationApi",chrome.cast.nc);chrome.cast.Error=function(a,b,c){this.code=a;this.description=b||null;this.details=c||null};t("chrome.cast.Error",chrome.cast.Error);chrome.cast.pb=function(a){this.platform=a;this.packageId=this.url=null};t("chrome.cast.SenderApplication",chrome.cast.pb);chrome.cast.Image=function(a){this.url=a;this.width=this.height=null};t("chrome.cast.Image",chrome.cast.Image);
chrome.cast.Volume=function(a,b){this.level=void 0!==a?a:null;this.muted=void 0!==b?b:null};t("chrome.cast.Volume",chrome.cast.Volume);var qa=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},ra=/&/g,sa=/</g,ta=/>/g,ua=/"/g,va=/'/g,wa=/\x00/g,xa=/[\x00&<>"']/,za=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=m.document.createElement("div");return a.replace(ya,function(a,e){var d=b[a];if(d)return d;"#"==e.charAt(0)&&(e=Number("0"+e.substr(1)),isNaN(e)||(d=String.fromCharCode(e)));d||(c.innerHTML=a+" ",d=c.firstChild.nodeValue.slice(0,-1));return b[a]=
d})},Aa=function(a){return a.replace(/&([^;]+);/g,function(a,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))?a:String.fromCharCode(c)}})},ya=/&([^;\s<&]+);?/g,Ba=function(a,b){return a<b?-1:a>b?1:0};chrome.cast.ha={CUSTOM_CONTROLLER_SCOPED:"custom_controller_scoped",TAB_AND_ORIGIN_SCOPED:"tab_and_origin_scoped",ORIGIN_SCOPED:"origin_scoped",PAGE_SCOPED:"page_scoped"};t("chrome.cast.AutoJoinPolicy",chrome.cast.ha);chrome.cast.ia={CREATE_SESSION:"create_session",CAST_THIS_TAB:"cast_this_tab"};t("chrome.cast.DefaultActionPolicy",chrome.cast.ia);chrome.cast.U={VIDEO_OUT:"video_out",AUDIO_OUT:"audio_out",VIDEO_IN:"video_in",AUDIO_IN:"audio_in",MULTIZONE_GROUP:"multizone_group"};
t("chrome.cast.Capability",chrome.cast.U);chrome.cast.v={CANCEL:"cancel",TIMEOUT:"timeout",API_NOT_INITIALIZED:"api_not_initialized",INVALID_PARAMETER:"invalid_parameter",EXTENSION_NOT_COMPATIBLE:"extension_not_compatible",EXTENSION_MISSING:"extension_missing",RECEIVER_UNAVAILABLE:"receiver_unavailable",SESSION_ERROR:"session_error",CHANNEL_ERROR:"channel_error",LOAD_MEDIA_FAILED:"load_media_failed"};t("chrome.cast.ErrorCode",chrome.cast.v);chrome.cast.M={AVAILABLE:"available",UNAVAILABLE:"unavailable"};
t("chrome.cast.ReceiverAvailability",chrome.cast.M);chrome.cast.qb={CHROME:"chrome",IOS:"ios",ANDROID:"android"};t("chrome.cast.SenderPlatform",chrome.cast.qb);chrome.cast.ra={CAST:"cast",DIAL:"dial",HANGOUT:"hangout",CUSTOM:"custom"};t("chrome.cast.ReceiverType",chrome.cast.ra);chrome.cast.Sa={RUNNING:"running",STOPPED:"stopped",ERROR:"error"};t("chrome.cast.DialAppState",chrome.cast.Sa);chrome.cast.lb={CAST:"cast",STOP:"stop"};t("chrome.cast.ReceiverAction",chrome.cast.lb);
chrome.cast.G={CONNECTED:"connected",DISCONNECTED:"disconnected",STOPPED:"stopped"};t("chrome.cast.SessionStatus",chrome.cast.G);chrome.cast.Bb={ATTENUATION:"attenuation",FIXED:"fixed",MASTER:"master"};t("chrome.cast.VolumeControlType",chrome.cast.Bb);chrome.cast.Na=function(a,b,c,d,e){this.sessionRequest=a;this.sessionListener=b;this.receiverListener=c;this.autoJoinPolicy=d||chrome.cast.ha.TAB_AND_ORIGIN_SCOPED;this.defaultActionPolicy=e||chrome.cast.ia.CREATE_SESSION;this.customDialLaunchCallback=null;this.invisibleSender=!1;this.additionalSessionRequests=[]};t("chrome.cast.ApiConfig",chrome.cast.Na);chrome.cast.Va=function(a,b){this.appName=a;this.launchParameter=b||null};t("chrome.cast.DialRequest",chrome.cast.Va);
chrome.cast.Ta=function(a,b,c){this.receiver=a;this.appState=b;this.extraData=c||null};t("chrome.cast.DialLaunchData",chrome.cast.Ta);chrome.cast.Ua=function(a,b){this.doLaunch=a;this.launchParameter=b||null};t("chrome.cast.DialLaunchResponse",chrome.cast.Ua);chrome.cast.rb=function(a,b,c){this.appId=a;this.capabilities="array"==ja(b)?b:[chrome.cast.U.VIDEO_OUT,chrome.cast.U.AUDIO_OUT];this.requestSessionTimeout=c||chrome.cast.timeout.requestSession;this.dialRequest=this.language=null};
t("chrome.cast.SessionRequest",chrome.cast.rb);
chrome.cast.kb=function(a,b,c,d){this.label=a;a=b;xa.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(ra,"&amp;")),-1!=a.indexOf("<")&&(a=a.replace(sa,"&lt;")),-1!=a.indexOf(">")&&(a=a.replace(ta,"&gt;")),-1!=a.indexOf('"')&&(a=a.replace(ua,"&quot;")),-1!=a.indexOf("'")&&(a=a.replace(va,"&#39;")),-1!=a.indexOf("\x00")&&(a=a.replace(wa,"&#0;")));this.friendlyName=a;this.capabilities=c||[];this.volume=d||null;this.receiverType=chrome.cast.ra.CAST;this.displayStatus=this.isActiveInput=null};
t("chrome.cast.Receiver",chrome.cast.kb);chrome.cast.mb=function(a,b){this.statusText=a;this.appImages=b;this.showStop=null};t("chrome.cast.ReceiverDisplayStatus",chrome.cast.mb);chrome.cast.ua=function(){this.requestSession=6E4;this.sendCustomMessage=this.setReceiverVolume=this.stopSession=this.leaveSession=3E3};t("chrome.cast.Timeout",chrome.cast.ua);chrome.cast.timeout=new chrome.cast.ua;t("chrome.cast.timeout",chrome.cast.timeout);chrome.cast.Ma="auto-join";chrome.cast.fb="cast-session_";chrome.cast.media.ab={PAUSE:"pause",SEEK:"seek",STREAM_VOLUME:"stream_volume",STREAM_MUTE:"stream_mute"};t("chrome.cast.media.MediaCommand",chrome.cast.media.ab);chrome.cast.media.s={GENERIC:0,MOVIE:1,TV_SHOW:2,MUSIC_TRACK:3,PHOTO:4};t("chrome.cast.media.MetadataType",chrome.cast.media.s);chrome.cast.media.F={IDLE:"IDLE",PLAYING:"PLAYING",PAUSED:"PAUSED",BUFFERING:"BUFFERING"};t("chrome.cast.media.PlayerState",chrome.cast.media.F);
chrome.cast.media.V={OFF:"REPEAT_OFF",ALL:"REPEAT_ALL",SINGLE:"REPEAT_SINGLE",ALL_AND_SHUFFLE:"REPEAT_ALL_AND_SHUFFLE"};t("chrome.cast.media.RepeatMode",chrome.cast.media.V);chrome.cast.media.nb={PLAYBACK_START:"PLAYBACK_START",PLAYBACK_PAUSE:"PLAYBACK_PAUSE"};t("chrome.cast.media.ResumeState",chrome.cast.media.nb);chrome.cast.media.ta={BUFFERED:"BUFFERED",LIVE:"LIVE",OTHER:"OTHER"};t("chrome.cast.media.StreamType",chrome.cast.media.ta);
chrome.cast.media.Ya={CANCELLED:"CANCELLED",INTERRUPTED:"INTERRUPTED",FINISHED:"FINISHED",ERROR:"ERROR"};t("chrome.cast.media.IdleReason",chrome.cast.media.Ya);chrome.cast.media.zb={TEXT:"TEXT",AUDIO:"AUDIO",VIDEO:"VIDEO"};t("chrome.cast.media.TrackType",chrome.cast.media.zb);chrome.cast.media.wb={SUBTITLES:"SUBTITLES",CAPTIONS:"CAPTIONS",DESCRIPTIONS:"DESCRIPTIONS",CHAPTERS:"CHAPTERS",METADATA:"METADATA"};t("chrome.cast.media.TextTrackType",chrome.cast.media.wb);
chrome.cast.media.sb={NONE:"NONE",OUTLINE:"OUTLINE",DROP_SHADOW:"DROP_SHADOW",RAISED:"RAISED",DEPRESSED:"DEPRESSED"};t("chrome.cast.media.TextTrackEdgeType",chrome.cast.media.sb);chrome.cast.media.xb={NONE:"NONE",NORMAL:"NORMAL",ROUNDED_CORNERS:"ROUNDED_CORNERS"};t("chrome.cast.media.TextTrackWindowType",chrome.cast.media.xb);
chrome.cast.media.tb={SANS_SERIF:"SANS_SERIF",MONOSPACED_SANS_SERIF:"MONOSPACED_SANS_SERIF",SERIF:"SERIF",MONOSPACED_SERIF:"MONOSPACED_SERIF",CASUAL:"CASUAL",CURSIVE:"CURSIVE",SMALL_CAPITALS:"SMALL_CAPITALS"};t("chrome.cast.media.TextTrackFontGenericFamily",chrome.cast.media.tb);chrome.cast.media.ub={NORMAL:"NORMAL",BOLD:"BOLD",BOLD_ITALIC:"BOLD_ITALIC",ITALIC:"ITALIC"};t("chrome.cast.media.TextTrackFontStyle",chrome.cast.media.ub);chrome.cast.media.ja=function(){this.customData=null};t("chrome.cast.media.GetStatusRequest",chrome.cast.media.ja);chrome.cast.media.ka=function(){this.customData=null};t("chrome.cast.media.PauseRequest",chrome.cast.media.ka);chrome.cast.media.la=function(){this.customData=null};t("chrome.cast.media.PlayRequest",chrome.cast.media.la);chrome.cast.media.ob=function(){this.customData=this.resumeState=this.currentTime=null};t("chrome.cast.media.SeekRequest",chrome.cast.media.ob);
chrome.cast.media.sa=function(){this.customData=null};t("chrome.cast.media.StopRequest",chrome.cast.media.sa);chrome.cast.media.Cb=function(a){this.volume=a;this.customData=null};t("chrome.cast.media.VolumeRequest",chrome.cast.media.Cb);chrome.cast.media.Za=function(a){this.type="LOAD";this.requestId=0;this.sessionId=null;this.media=a;this.activeTrackIds=null;this.autoplay=!0;this.customData=this.currentTime=null};t("chrome.cast.media.LoadRequest",chrome.cast.media.Za);
chrome.cast.media.hb=function(a){this.type="PRECACHE";this.requestId=0;this.data=a};chrome.cast.media.Wa=function(a,b){this.requestId=0;this.activeTrackIds=a||null;this.textTrackStyle=b||null};t("chrome.cast.media.EditTracksInfoRequest",chrome.cast.media.Wa);chrome.cast.media.Xa=function(){this.metadataType=this.type=chrome.cast.media.s.GENERIC;this.releaseDate=this.releaseYear=this.images=this.subtitle=this.title=null};t("chrome.cast.media.GenericMediaMetadata",chrome.cast.media.Xa);
chrome.cast.media.cb=function(){this.metadataType=this.type=chrome.cast.media.s.MOVIE;this.releaseDate=this.releaseYear=this.images=this.subtitle=this.studio=this.title=null};t("chrome.cast.media.MovieMediaMetadata",chrome.cast.media.cb);chrome.cast.media.Ab=function(){this.metadataType=this.type=chrome.cast.media.s.TV_SHOW;this.originalAirdate=this.releaseYear=this.images=this.episode=this.episodeNumber=this.season=this.seasonNumber=this.episodeTitle=this.title=this.seriesTitle=null};
t("chrome.cast.media.TvShowMediaMetadata",chrome.cast.media.Ab);chrome.cast.media.eb=function(){this.metadataType=this.type=chrome.cast.media.s.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=null};t("chrome.cast.media.MusicTrackMediaMetadata",chrome.cast.media.eb);
chrome.cast.media.gb=function(){this.metadataType=this.type=chrome.cast.media.s.PHOTO;this.creationDateTime=this.height=this.width=this.longitude=this.latitude=this.images=this.location=this.artist=this.title=null};t("chrome.cast.media.PhotoMediaMetadata",chrome.cast.media.gb);chrome.cast.media.bb=function(a,b){this.contentId=a;this.streamType=chrome.cast.media.ta.BUFFERED;this.contentType=b;this.customData=this.textTrackStyle=this.tracks=this.duration=this.metadata=null};
t("chrome.cast.media.MediaInfo",chrome.cast.media.bb);chrome.cast.media.na=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};t("chrome.cast.media.QueueItem",chrome.cast.media.na);chrome.cast.media.Ra="CC1AD845";t("chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID",chrome.cast.media.Ra);chrome.cast.media.timeout={};chrome.cast.media.timeout.load=0;t("chrome.cast.media.timeout.load",chrome.cast.media.timeout.load);
chrome.cast.media.timeout.O=0;t("chrome.cast.media.timeout.getStatus",chrome.cast.media.timeout.O);chrome.cast.media.timeout.play=0;t("chrome.cast.media.timeout.play",chrome.cast.media.timeout.play);chrome.cast.media.timeout.pause=0;t("chrome.cast.media.timeout.pause",chrome.cast.media.timeout.pause);chrome.cast.media.timeout.seek=0;t("chrome.cast.media.timeout.seek",chrome.cast.media.timeout.seek);chrome.cast.media.timeout.stop=0;t("chrome.cast.media.timeout.stop",chrome.cast.media.timeout.stop);
chrome.cast.media.timeout.T=0;t("chrome.cast.media.timeout.setVolume",chrome.cast.media.timeout.T);chrome.cast.media.timeout.N=0;t("chrome.cast.media.timeout.editTracksInfo",chrome.cast.media.timeout.N);chrome.cast.media.timeout.o=0;t("chrome.cast.media.timeout.queue",chrome.cast.media.timeout.o);chrome.cast.media.yb=function(a,b){this.trackId=a;this.trackContentType=this.trackContentId=null;this.type=b;this.customData=this.subtype=this.language=this.name=null};t("chrome.cast.media.Track",chrome.cast.media.yb);
chrome.cast.media.vb=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};t("chrome.cast.media.TextTrackStyle",chrome.cast.media.vb);chrome.cast.media.ib=function(a){this.type="QUEUE_LOAD";this.sessionId=this.requestId=null;this.items=a;this.startIndex=0;this.repeatMode=chrome.cast.media.V.OFF;this.customData=null};
t("chrome.cast.media.QueueLoadRequest",chrome.cast.media.ib);chrome.cast.media.ma=function(a){this.type="QUEUE_INSERT";this.sessionId=this.requestId=null;this.items=a;this.customData=this.insertBefore=null};t("chrome.cast.media.QueueInsertItemsRequest",chrome.cast.media.ma);chrome.cast.media.jb=function(a){this.type="QUEUE_UPDATE";this.sessionId=this.requestId=null;this.items=a;this.customData=null};t("chrome.cast.media.QueueUpdateItemsRequest",chrome.cast.media.jb);
chrome.cast.media.L=function(){this.type="QUEUE_UPDATE";this.customData=this.jump=this.currentItemId=this.sessionId=this.requestId=null};t("chrome.cast.media.QueueJumpRequest",chrome.cast.media.L);chrome.cast.media.qa=function(){this.type="QUEUE_UPDATE";this.customData=this.repeatMode=this.sessionId=this.requestId=null};t("chrome.cast.media.QueueSetPropertiesRequest",chrome.cast.media.qa);
chrome.cast.media.oa=function(a){this.type="QUEUE_REMOVE";this.sessionId=this.requestId=null;this.itemIds=a;this.customData=null};t("chrome.cast.media.QueueRemoveItemsRequest",chrome.cast.media.oa);chrome.cast.media.pa=function(a){this.type="QUEUE_REORDER";this.sessionId=this.requestId=null;this.itemIds=a;this.customData=this.insertBefore=null};t("chrome.cast.media.QueueReorderItemsRequest",chrome.cast.media.pa);var Ca=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=p(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},Da=function(a,b){for(var c=a.length,d=p(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return e;return-1},Ea=function(a){return Array.prototype.concat.apply([],arguments)},Fa=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};chrome.cast.media.b=function(a,b){this.sessionId=a;this.mediaSessionId=b;this.media=null;this.playbackRate=1;this.playerState=chrome.cast.media.F.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.V.OFF;this.c=!1;this.a=[]};t("chrome.cast.media.Media",chrome.cast.media.b);
chrome.cast.media.b.prototype.O=function(a,b,c){a||(a=new chrome.cast.media.ja);u.a(this,"MEDIA_GET_STATUS",a,b,c,chrome.cast.media.timeout.O)};chrome.cast.media.b.prototype.getStatus=chrome.cast.media.b.prototype.O;chrome.cast.media.b.prototype.play=function(a,b,c){this.za(u,a,b,c)};chrome.cast.media.b.prototype.play=chrome.cast.media.b.prototype.play;chrome.cast.media.b.prototype.za=function(a,b,c,d){b||(b=new chrome.cast.media.la);a.a(this,"PLAY",b,c,d,chrome.cast.media.timeout.play)};
chrome.cast.media.b.prototype.playWithContext=chrome.cast.media.b.prototype.za;chrome.cast.media.b.prototype.pause=function(a,b,c){this.ya(u,a,b,c)};chrome.cast.media.b.prototype.pause=chrome.cast.media.b.prototype.pause;chrome.cast.media.b.prototype.ya=function(a,b,c,d){b||(b=new chrome.cast.media.ka);a.a(this,"PAUSE",b,c,d,chrome.cast.media.timeout.pause)};chrome.cast.media.b.prototype.pauseWithContext=chrome.cast.media.b.prototype.ya;
chrome.cast.media.b.prototype.seek=function(a,b,c){u.a(this,"SEEK",a,b,c,chrome.cast.media.timeout.seek)};chrome.cast.media.b.prototype.seek=chrome.cast.media.b.prototype.seek;chrome.cast.media.b.prototype.stop=function(a,b,c){a||(a=new chrome.cast.media.sa);u.a(this,"STOP_MEDIA",a,b,c,chrome.cast.media.timeout.stop)};chrome.cast.media.b.prototype.stop=chrome.cast.media.b.prototype.stop;chrome.cast.media.b.prototype.T=function(a,b,c){u.a(this,"MEDIA_SET_VOLUME",a,b,c,chrome.cast.media.timeout.T)};
chrome.cast.media.b.prototype.setVolume=chrome.cast.media.b.prototype.T;chrome.cast.media.b.prototype.N=function(a,b,c){u.a(this,"EDIT_TRACKS_INFO",a,b,c,chrome.cast.media.timeout.N)};chrome.cast.media.b.prototype.editTracksInfo=chrome.cast.media.b.prototype.N;chrome.cast.media.b.prototype.Rb=function(a,b,c){u.a(this,"QUEUE_INSERT",a,b,c,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queueInsertItems=chrome.cast.media.b.prototype.Rb;
chrome.cast.media.b.prototype.Qb=function(a,b,c){u.a(this,"QUEUE_INSERT",new chrome.cast.media.ma([a]),b,c,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queueAppendItem=chrome.cast.media.b.prototype.Qb;chrome.cast.media.b.prototype.bc=function(a,b,c){u.a(this,"QUEUE_UPDATE",a,b,c,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queueUpdateItems=chrome.cast.media.b.prototype.bc;
chrome.cast.media.b.prototype.Wb=function(a,b){var c=new chrome.cast.media.L;c.jump=-1;u.a(this,"QUEUE_UPDATE",c,a,b,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queuePrev=chrome.cast.media.b.prototype.Wb;chrome.cast.media.b.prototype.Vb=function(a,b){var c=new chrome.cast.media.L;c.jump=1;u.a(this,"QUEUE_UPDATE",c,a,b,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queueNext=chrome.cast.media.b.prototype.Vb;
chrome.cast.media.b.prototype.Sb=function(a,b,c){if(!(0>Ga(this,a))){var d=new chrome.cast.media.L;d.currentItemId=a;u.a(this,"QUEUE_UPDATE",d,b,c,chrome.cast.media.timeout.o)}};chrome.cast.media.b.prototype.queueJumpToItem=chrome.cast.media.b.prototype.Sb;chrome.cast.media.b.prototype.ac=function(a,b,c){var d=new chrome.cast.media.qa;d.repeatMode=a;u.a(this,"QUEUE_UPDATE",d,b,c,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queueSetRepeatMode=chrome.cast.media.b.prototype.ac;
chrome.cast.media.b.prototype.Yb=function(a,b,c){u.a(this,"QUEUE_REMOVE",a,b,c,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queueRemoveItems=chrome.cast.media.b.prototype.Yb;chrome.cast.media.b.prototype.Xb=function(a,b,c){0>Ga(this,a)||u.a(this,"QUEUE_REMOVE",new chrome.cast.media.oa([a]),b,c,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queueRemoveItem=chrome.cast.media.b.prototype.Xb;chrome.cast.media.b.prototype.Zb=function(a,b,c){u.a(this,"QUEUE_REORDER",a,b,c,chrome.cast.media.timeout.o)};
chrome.cast.media.b.prototype.queueReorderItems=chrome.cast.media.b.prototype.Zb;chrome.cast.media.b.prototype.Ub=function(a,b,c,d){var e=Ga(this,a);if(!(0>e))if(0>b)d&&d(new chrome.cast.Error(chrome.cast.v.INVALID_PARAMETER));else if(e==b)c&&c();else{var g=null;b=b>e?b+1:b;b<this.items.length&&(g=this.items[b]);a=new chrome.cast.media.pa([a]);a.insertBefore=g?g.itemId:null;u.a(this,"QUEUE_REORDER",a,c,d,chrome.cast.media.timeout.o)}};chrome.cast.media.b.prototype.queueMoveItemToNewIndex=chrome.cast.media.b.prototype.Ub;
chrome.cast.media.b.prototype.mc=function(a){return-1<this.supportedMediaCommands.indexOf(a)};chrome.cast.media.b.prototype.supportsCommand=chrome.cast.media.b.prototype.mc;chrome.cast.media.b.prototype.Jb=function(){if(this.playerState==chrome.cast.media.F.PLAYING&&0<=this.g){var a=this.currentTime+(Date.now()-this.g)/1E3*this.playbackRate;this.media&&null!=this.media.duration&&a>this.media.duration&&(a=this.media.duration);0>a&&(a=0);return a}return this.currentTime};
chrome.cast.media.b.prototype.getEstimatedTime=chrome.cast.media.b.prototype.Jb;chrome.cast.media.b.prototype.Y=function(a){this.H(u,a)};chrome.cast.media.b.prototype.addUpdateListener=chrome.cast.media.b.prototype.Y;chrome.cast.media.b.prototype.H=function(a,b){a.Eb(this,b)};chrome.cast.media.b.prototype.addUpdateListenerWithContext=chrome.cast.media.b.prototype.H;chrome.cast.media.b.prototype.ba=function(a){this.K(u,a)};chrome.cast.media.b.prototype.removeUpdateListener=chrome.cast.media.b.prototype.ba;
chrome.cast.media.b.prototype.K=function(a,b){u.dc(this,b)};chrome.cast.media.b.prototype.removeUpdateListenerWithContext=chrome.cast.media.b.prototype.K;var Ga=function(a,b){return Da(a.items,function(a){return a.itemId==b})};var u=null;var Ha=function(a,b,c){this.sessionId=a;this.namespaceName=b;this.message=c};var Ia=function(a,b){this.type="SET_VOLUME";this.requestId=0;this.volume=a;this.expectedVolume=b||null};var Ja=function(a){this.type="STOP";this.requestId=0;this.sessionId=a||null};chrome.cast.f=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.G.CONNECTED;this.transportId=""};t("chrome.cast.Session",chrome.cast.f);chrome.cast.f.prototype.kc=function(a,b,c){this.Ga(u,a,b,c)};chrome.cast.f.prototype.setReceiverVolumeLevel=chrome.cast.f.prototype.kc;
chrome.cast.f.prototype.Ga=function(a,b,c,d){b=new Ia(new chrome.cast.Volume(b,null),this.receiver.volume);a.setReceiverVolume(this.sessionId,b,c,d)};chrome.cast.f.prototype.setReceiverVolumeLevelWithContext=chrome.cast.f.prototype.Ga;chrome.cast.f.prototype.jc=function(a,b,c){this.Fa(0,a,b,c)};chrome.cast.f.prototype.setReceiverMuted=chrome.cast.f.prototype.jc;
chrome.cast.f.prototype.Fa=function(a,b,c,d){a=new Ia(new chrome.cast.Volume(null,b),this.receiver.volume);u.setReceiverVolume(this.sessionId,a,c,d)};chrome.cast.f.prototype.setReceiverMutedWithContext=chrome.cast.f.prototype.Fa;chrome.cast.f.prototype.Lb=function(a,b){u.leaveSession(this.sessionId,a,b)};chrome.cast.f.prototype.leave=chrome.cast.f.prototype.Lb;chrome.cast.f.prototype.stop=function(a,b){this.Ia(u,a,b)};chrome.cast.f.prototype.stop=chrome.cast.f.prototype.stop;
chrome.cast.f.prototype.Ia=function(a,b,c){a.Da(new Ja(this.sessionId),b,c,chrome.cast.timeout.stopSession)};chrome.cast.f.prototype.stopWithContext=chrome.cast.f.prototype.Ia;chrome.cast.f.prototype.sendMessage=function(a,b,c,d){this.Ea(u,a,b,c,d)};chrome.cast.f.prototype.sendMessage=chrome.cast.f.prototype.sendMessage;chrome.cast.f.prototype.Ea=function(a,b,c,d,e){a.gc(new Ha(this.sessionId,b,c),d,e)};chrome.cast.f.prototype.sendMessageWithContext=chrome.cast.f.prototype.Ea;
chrome.cast.f.prototype.Y=function(a){this.H(u,a)};chrome.cast.f.prototype.addUpdateListener=chrome.cast.f.prototype.Y;chrome.cast.f.prototype.H=function(a,b){a.Gb(this.sessionId,b)};chrome.cast.f.prototype.addUpdateListenerWithContext=chrome.cast.f.prototype.H;chrome.cast.f.prototype.ba=function(a){this.K(u,a)};chrome.cast.f.prototype.removeUpdateListener=chrome.cast.f.prototype.ba;chrome.cast.f.prototype.K=function(a,b){a.fc(this.sessionId,b)};
chrome.cast.f.prototype.removeUpdateListenerWithContext=chrome.cast.f.prototype.K;chrome.cast.f.prototype.Fb=function(a,b){this.wa(u,a,b)};chrome.cast.f.prototype.addMessageListener=chrome.cast.f.prototype.Fb;chrome.cast.f.prototype.wa=function(a,b,c){a.Db(this.sessionId,b,c)};chrome.cast.f.prototype.addMessageListenerWithContext=chrome.cast.f.prototype.wa;chrome.cast.f.prototype.W=function(a){this.va(u,a)};chrome.cast.f.prototype.addMediaListener=chrome.cast.f.prototype.W;
chrome.cast.f.prototype.va=function(a,b){a.W(this.sessionId,b)};chrome.cast.f.prototype.addMediaListenerWithContext=chrome.cast.f.prototype.va;chrome.cast.f.prototype.Z=function(a){this.Aa(u,a)};chrome.cast.f.prototype.removeMediaListener=chrome.cast.f.prototype.Z;chrome.cast.f.prototype.Aa=function(a,b){a.Z(this.sessionId,b)};chrome.cast.f.prototype.removeMediaListenerWithContext=chrome.cast.f.prototype.Aa;chrome.cast.f.prototype.ec=function(a,b){this.Ba(u,a,b)};
chrome.cast.f.prototype.removeMessageListener=chrome.cast.f.prototype.ec;chrome.cast.f.prototype.Ba=function(a,b,c){a.cc(this.sessionId,b,c)};chrome.cast.f.prototype.removeMessageListenerWithContext=chrome.cast.f.prototype.Ba;chrome.cast.f.prototype.Mb=function(a,b,c){a.sessionId=this.sessionId;u.ga(a,"LOAD",b,c)};chrome.cast.f.prototype.loadMedia=chrome.cast.f.prototype.Mb;chrome.cast.f.prototype.Tb=function(a,b,c){a.sessionId=this.sessionId;u.ga(a,"QUEUE_LOAD",b,c)};
chrome.cast.f.prototype.queueLoad=chrome.cast.f.prototype.Tb;var Ka=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};var v="StopIteration"in m?m.StopIteration:{message:"StopIteration",stack:""},w=function(){};w.prototype.next=function(){throw v;};w.prototype.w=function(){return this};
var La=function(a){if(a instanceof w)return a;if("function"==typeof a.w)return a.w(!1);if(ka(a)){var b=0,c=new w;c.next=function(){for(;;){if(b>=a.length)throw v;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},x=function(a,b){if(ka(a))try{Ca(a,b,void 0)}catch(c){if(c!==v)throw c;}else{a=La(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==v)throw c;}}};var y=function(a,b){this.c={};this.a=[];this.h=this.g=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){if(a instanceof y)d=a.I(),c=a.u();else{var c=[],e=0;for(d in a)c[e++]=d;d=c;c=Ka(a)}for(e=0;e<d.length;e++)this.set(d[e],c[e])}};y.prototype.u=function(){z(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.c[this.a[b]]);return a};y.prototype.I=function(){z(this);return this.a.concat()};
y.prototype.clear=function(){this.c={};this.h=this.g=this.a.length=0};y.prototype.remove=function(a){return A(this.c,a)?(delete this.c[a],this.g--,this.h++,this.a.length>2*this.g&&z(this),!0):!1};var z=function(a){if(a.g!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];A(a.c,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.g!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],A(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}};y.prototype.get=function(a,b){return A(this.c,a)?this.c[a]:b};
y.prototype.set=function(a,b){A(this.c,a)||(this.g++,this.a.push(a),this.h++);this.c[a]=b};y.prototype.forEach=function(a,b){for(var c=this.I(),d=0;d<c.length;d++){var e=c[d],g=this.get(e);a.call(b,g,e,this)}};y.prototype.w=function(a){z(this);var b=0,c=this.h,d=this,e=new w;e.next=function(){if(c!=d.h)throw Error("The map has changed since the iterator was created");if(b>=d.a.length)throw v;var e=d.a[b++];return a?e:d.c[e]};return e};
var A=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Ma=function(a,b){this.requestId=a;this.h=b;this.Ja=null};Ma.prototype.c=function(){};var Na=function(){this.a=new y},Oa=function(a,b){a.a.set(b.requestId,b);b.Ja=setTimeout(function(){a.a.remove(b.requestId);b.c()},b.h)},Pa=function(a,b){var c=a.a.get(b);if(!c)return null;clearTimeout(c.Ja);a.a.remove(b);return c};var Qa=function(a){this.a=a},Sa=function(a){var b=Ra.get(a);b||(b=new Qa(a),Ra.set(a,b));return b};Qa.prototype.log=function(a,b,c){if(!(1>a)){"function"==typeof b&&(b=b());b=b.replace(Ta,"[Redacted URL]");b=b.replace(Ua,"[Redacted domain/email]");var d={pc:this.a,level:a,time:Date.now(),message:b,oc:c};Va.forEach(function(a){return a(d)})}};Qa.prototype.error=function(a,b){this.log(3,a,b)};
var Wa=function(a){B.log(1,a,void 0)},Va=[],Ra=new Map,Ua=/(([\w.+-]+@)|((www|m|mail|ftp)[.]))[\w.-]+[.][\w-]{2,4}/gi,Ta=/(data:|https?:\/\/)\S+/gi;var C;a:{var Xa=m.navigator;if(Xa){var Ya=Xa.userAgent;if(Ya){C=Ya;break a}}C=""}var D=function(a){return-1!=C.indexOf(a)};var E=function(){this.c=this.c;this.j=this.j};E.prototype.c=!1;var $a=function(a,b){var c=Za;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var ab=D("Opera"),F=D("Trident")||D("MSIE"),bb=D("Edge"),G=D("Gecko")&&!(-1!=C.toLowerCase().indexOf("webkit")&&!D("Edge"))&&!(D("Trident")||D("MSIE"))&&!D("Edge"),H=-1!=C.toLowerCase().indexOf("webkit")&&!D("Edge"),cb;
a:{var db="",eb=function(){var a=C;if(G)return/rv\:([^\);]+)(\)|;)/.exec(a);if(bb)return/Edge\/([\d\.]+)/.exec(a);if(F)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(H)return/WebKit\/(\S+)/.exec(a);if(ab)return/(?:Version)[ \/]?(\S+)/.exec(a)}();eb&&(db=eb?eb[1]:"");if(F){var I,fb=m.document;I=fb?fb.documentMode:void 0;if(null!=I&&I>parseFloat(db)){cb=String(I);break a}}cb=db}
var gb=cb,Za={},J=function(a){return $a(a,function(){for(var b=0,c=qa(String(gb)).split("."),d=qa(String(a)).split("."),e=Math.max(c.length,d.length),g=0;0==b&&g<e;g++){var k=c[g]||"",n=d[g]||"";do{k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];n=/(\d*)(\D*)(.*)/.exec(n)||["","","",""];if(0==k[0].length&&0==n[0].length)break;b=Ba(0==k[1].length?0:parseInt(k[1],10),0==n[1].length?0:parseInt(n[1],10))||Ba(0==k[2].length,0==n[2].length)||Ba(k[2],n[2]);k=k[3];n=n[3]}while(0==b)}return 0<=b})};F&&J("9");!H||J("528");G&&J("1.9b")||F&&J("8")||ab&&J("9.5")||H&&J("528");G&&!J("8")||F&&J("9");var K=function(a,b,c){E.call(this);this.i=null!=c?q(a,c):a;this.h=b;this.g=q(this.Ob,this);this.a=[]};(function(){function a(){}a.prototype=E.prototype;K.lc=E.prototype;K.prototype=new a;K.prototype.constructor=K;K.a=function(a,c,d){for(var b=Array(arguments.length-2),g=2;g<arguments.length;g++)b[g-2]=arguments[g];return E.prototype[c].apply(a,b)}})();f=K.prototype;f.D=!1;f.J=0;f.A=null;f.Ib=function(a){this.a=arguments;this.A||this.J?this.D=!0:hb(this)};
f.stop=function(){this.A&&(m.clearTimeout(this.A),this.A=null,this.D=!1,this.a=[])};f.pause=function(){this.J++};f.resume=function(){this.J--;this.J||!this.D||this.A||(this.D=!1,hb(this))};f.Ob=function(){this.A=null;this.D&&!this.J&&(this.D=!1,hb(this))};var hb=function(a){var b;b=a.g;var c=a.h;if("function"!=ja(b))if(b&&"function"==typeof b.handleEvent)b=q(b.handleEvent,b);else throw Error("Invalid listener argument");b=2147483647<Number(c)?-1:m.setTimeout(b,c||0);a.A=b;a.i.apply(null,a.a)};var ib=D("Safari")&&!((D("Chrome")||D("CriOS"))&&!D("Edge")||D("Coast")||D("Opera")||D("Edge")||D("Silk")||D("Android"))&&!(D("iPhone")&&!D("iPod")&&!D("iPad")||D("iPad")||D("iPod"));var L=null,jb=G||H&&!ib||ab||"function"==typeof m.btoa,kb=function(a){var b;if(jb)b=m.btoa(a);else{b=[];for(var c=0,d=0;d<a.length;d++){for(var e=a.charCodeAt(d);255<e;)b[c++]=e&255,e>>=8;b[c++]=e}if(!L)for(L={},a=0;65>a;a++)L[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a);a=L;c=[];for(d=0;d<b.length;d+=3){var g=b[d],k=(e=d+1<b.length)?b[d+1]:0,n=d+2<b.length,r=n?b[d+2]:0,na=g>>2,g=(g&3)<<4|k>>4,k=(k&15)<<2|r>>6,r=r&63;n||(r=64,e||(k=64));c.push(a[na],a[g],a[k],a[r])}b=
c.join("")}return b};var lb=function(a){if(a.u&&"function"==typeof a.u)return a.u();if(p(a))return a.split("");if(ka(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Ka(a)};var mb=function(a){this.a=new y;if(a){a=lb(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])}},nb=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(a[la]||(a[la]=++ma)):b.substr(0,1)+a};f=mb.prototype;f.add=function(a){this.a.set(nb(a),a)};f.removeAll=function(a){a=lb(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};f.remove=function(a){return this.a.remove(nb(a))};f.clear=function(){this.a.clear()};f.contains=function(a){a=nb(a);return A(this.a.c,a)};f.u=function(){return this.a.u()};
f.w=function(){return this.a.w(!1)};var M=function(a,b,c,d){Ma.call(this,a,d||6E5);this.g=b;this.a=c};aa(M,Ma);M.prototype.c=function(){this.a(new chrome.cast.Error(chrome.cast.v.TIMEOUT))};var N=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 O=function(a,b){this.g=a;this.c=b||String(Date.now())+String(Math.floor(1E5*Math.random()));this.a=null},ob=function(a,b){if(!a.a)return P.error("No active session"),"No active session";b.clientId=a.c;b=JSON.stringify(b);if(32768<b.length)return P.error("Message length over limit"),"Message length over limit";P.log(0,"Send "+b,void 0);a.a.send(b);return null};O.prototype.connect=function(a){this.a=a;this.a.onmessage=q(this.h,this);ob(this,new N("client_connect",this.c))};
O.prototype.disconnect=function(){this.a.close();this.a=null};O.prototype.h=function(a){P.log(0,"Receive "+a.data,void 0);a=JSON.parse(a.data);if(a.clientId==this.c)this.g.onMessage(a)};var P=Sa("mr.cast.ExtensionMessenger");var pb=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,qb=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e,g=null;0<=d?(e=a[c].substring(0,d),g=a[c].substring(d+1)):e=a[c];b(e,g?decodeURIComponent(g.replace(/\+/g," ")):"")}}};var rb=function(a,b){this.h=this.j=this.c="";this.i=null;this.l=this.m="";this.a=!1;var c;a instanceof rb?(this.a=void 0!==b?b:a.a,sb(this,a.c),this.j=a.j,tb(this,a.h),ub(this,a.i),vb(this,a.m),b=a.g,c=new Q,c.g=b.g,b.a&&(c.a=new y(b.a),c.c=b.c),wb(this,c),xb(this,a.l)):a&&(c=String(a).match(pb))?(this.a=!!b,sb(this,c[1]||"",!0),this.j=R(c[2]||""),tb(this,c[3]||"",!0),ub(this,c[4]),vb(this,c[5]||"",!0),wb(this,c[6]||"",!0),xb(this,c[7]||"",!0)):(this.a=!!b,this.g=new Q(null,0,this.a))};
rb.prototype.toString=function(){var a=[],b=this.c;b&&a.push(S(b,yb,!0),":");var c=this.h;if(c||"file"==b)a.push("//"),(b=this.j)&&a.push(S(b,yb,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.i,null!=c&&a.push(":",String(c));if(c=this.m)this.h&&"/"!=c.charAt(0)&&a.push("/"),a.push(S(c,"/"==c.charAt(0)?zb:Ab,!0));(c=this.g.toString())&&a.push("?",c);(c=this.l)&&a.push("#",S(c,Bb));return a.join("")};
var sb=function(a,b,c){a.c=c?R(b,!0):b;a.c&&(a.c=a.c.replace(/:$/,""))},tb=function(a,b,c){a.h=c?R(b,!0):b},ub=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.i=b}else a.i=null},vb=function(a,b,c){a.m=c?R(b,!0):b},wb=function(a,b,c){b instanceof Q?(a.g=b,Cb(a.g,a.a)):(c||(b=S(b,Db)),a.g=new Q(b,0,a.a))},xb=function(a,b,c){a.l=c?R(b):b},R=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},S=function(a,b,c){return p(a)?(a=encodeURI(a).replace(b,
Eb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Eb=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},yb=/[#\/\?@]/g,Ab=/[\#\?:]/g,zb=/[\#\?]/g,Db=/[\#\?@]/g,Bb=/#/g,Q=function(a,b,c){this.c=this.a=null;this.g=a||null;this.h=!!c},T=function(a){a.a||(a.a=new y,a.c=0,a.g&&qb(a.g,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};
Q.prototype.add=function(a,b){T(this);this.g=null;a=U(this,a);var c=this.a.get(a);c||this.a.set(a,c=[]);c.push(b);this.c+=1;return this};Q.prototype.remove=function(a){T(this);a=U(this,a);return A(this.a.c,a)?(this.g=null,this.c-=this.a.get(a).length,this.a.remove(a)):!1};Q.prototype.clear=function(){this.a=this.g=null;this.c=0};var Fb=function(a,b){T(a);b=U(a,b);return A(a.a.c,b)};f=Q.prototype;
f.I=function(){T(this);for(var a=this.a.u(),b=this.a.I(),c=[],d=0;d<b.length;d++)for(var e=a[d],g=0;g<e.length;g++)c.push(b[d]);return c};f.u=function(a){T(this);var b=[];if(p(a))Fb(this,a)&&(b=Ea(b,this.a.get(U(this,a))));else{a=this.a.u();for(var c=0;c<a.length;c++)b=Ea(b,a[c])}return b};f.set=function(a,b){T(this);this.g=null;a=U(this,a);Fb(this,a)&&(this.c-=this.a.get(a).length);this.a.set(a,[b]);this.c+=1;return this};f.get=function(a,b){a=a?this.u(a):[];return 0<a.length?String(a[0]):b};
f.toString=function(){if(this.g)return this.g;if(!this.a)return"";for(var a=[],b=this.a.I(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.u(d),g=0;g<d.length;g++){var k=e;""!==d[g]&&(k+="="+encodeURIComponent(String(d[g])));a.push(k)}return this.g=a.join("&")};
var U=function(a,b){b=String(b);a.h&&(b=b.toLowerCase());return b},Cb=function(a,b){b&&!a.h&&(T(a),a.g=null,a.a.forEach(function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),this.remove(c),0<a.length&&(this.g=null,this.a.set(U(this,c),Fa(a)),this.c+=a.length))},a));a.h=b};var Gb=function(a,b,c,d,e,g,k,n,r,na){this.B=a;this.m=b||null;this.c=c||null;this.i=d||null;this.l=void 0!==e?e:null;this.a=g||null;this.j=k||null;this.C=n||!1;this.h=r||null;this.g=na||null};
Gb.prototype.toString=function(){var a=new rb;sb(a,"https");tb(a,"google.com");vb(a,"/cast");var b=[];Ca(this.B,function(a){var c="__castAppId__="+a.appId;a.capabilities&&0<a.capabilities.length&&(c=c+"("+a.capabilities.join(","),c+=")");b.push(c)});this.m&&b.push("__castClientId__="+this.m);this.c&&b.push("__castAutoJoinPolicy__="+this.c);this.i&&b.push("__castDefaultActionPolicy__="+this.i);null!=this.l&&b.push("__castLaunchTimeout__="+this.l);this.a&&b.push("__dialAppName__="+this.a);this.j&&b.push("__dialPostData__="+
this.j);this.C&&b.push("__castInvisibleSender__=true");this.h&&(b.push("__castBroadcastNamespace__="+this.h),b.push("__castBroadcastId__="+Math.random()));this.g&&b.push("__castBroadcastMessage__="+encodeURIComponent(JSON.stringify(this.g)));xb(a,b.join("/"));return a.toString()};var Hb=function(){this.a={};this.c={}},Ib=function(a,b,c){var d=a.a[b];return d?(d.status=c,d.media.forEach(function(b){delete a.c[b.sessionId+"#"+b.mediaSessionId]}),delete a.a[b],!0):!1},Kb=function(a,b){var c=a.a[b.sessionId];if(c)return c.statusText=b.statusText,c.namespaces=b.namespaces||[],c.receiver.volume=b.receiver.volume,c;var c=new chrome.cast.f(b.sessionId,b.appId,b.displayName,b.appImages,b.receiver),d;for(d in b)"media"==d?c.media=b.media.map(function(b){b=Jb(a,b);b.h=!1;b.c=!0;return b}):
b.hasOwnProperty(d)&&(c[d]=b[d]);return a.a[b.sessionId]=c},Jb=function(a,b){var c=b.sessionId+"#"+b.mediaSessionId,d=a.c[c];d||(d=new chrome.cast.media.b(b.sessionId,b.mediaSessionId),a.c[c]=d,(a=a.a[b.sessionId])&&a.media.push(d));a=d;a.currentItemId=null;a.loadingItemId=null;a.preloadedItemId=null;for(var e in b)"items"!=e&&b.hasOwnProperty(e)&&("volume"==e?(a.volume.level=b.volume.level,a.volume.muted=b.volume.muted):a[e]=b[e]);e=ha(["idleReason","extendedStatus"]);for(c=e.next();!c.done;c=e.next())c=
c.value,b.hasOwnProperty(c)||(a[c]=null);"currentTime"in b&&(a.g=Date.now());if(a.playerState==chrome.cast.media.F.IDLE&&null==a.loadingItemId)a.currentItemId=null,a.loadingItemId=null,a.preloadedItemId=null,a.items=null;else if(b.hasOwnProperty("items")&&b.items){e=[];var g=a.items,c={};if(g)for(var k=0;k<g.length;k++)c[g[k].itemId]=k;b=ha(b.items);for(g=b.next();!g.done;g=b.next()){g=g.value;if(!g.media){var k=g.itemId,n=a.items?a.items[c[k]]:null;n&&n.media?g.media=n.media:k==a.currentItemId&&
a.media&&(g.media=a.media)}e.push(Lb(g))}a.items=e}return d},Mb=function(a,b){delete a.c[b.sessionId+"#"+b.mediaSessionId];if(a=a.a[b.sessionId])b=a.media.indexOf(b),-1!=b&&a.media.splice(b,1)},Lb=function(a){var b=new chrome.cast.media.na(a.media),c;for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b};var V=function(){this.l=new O(this);this.c=null;this.S=new Hb;this.h=0;this.fa=new Na;this.m=new y;this.La=!1;this.j=new y;this.C=new y;this.R=[];this.Pa=this.Hb.bind(this);this.g=null;this.B=0;this.i=null;this.Oa=new K(this.Qa,200,this);this.Ka=null},Nb=function(a){var b=new chrome.cast.Error(chrome.cast.v.INVALID_PARAMETER,"Already requesting session");a&&a(b)},W=function(a,b,c,d){c&&Oa(a.fa,c);void 0!==d?b.sequenceNumber=d:(b.sequenceNumber=a.h,a.h=(a.h+1)%9007199254740992);d=ob(a.l,b);c&&d&&(a=
Pa(a.fa,b.sequenceNumber),b=new chrome.cast.Error(chrome.cast.v.INVALID_PARAMETER,d),(a=a.a)&&a(b))};
V.prototype.P=function(a,b){var c=this;u=this;this.c||(this.c=a,a.invisibleSender||(a=new PresentationRequest(X(this)),a.getAvailability().then(function(a){a.onchange=function(){c.La=!!a.value;c.c.receiverListener(a.value?chrome.cast.M.AVAILABLE:chrome.cast.M.UNAVAILABLE)};a.onchange()},function(){c.c.receiverListener(chrome.cast.M.AVAILABLE)}),a.onconnectionavailable=function(a){Y(c,a.connection)},this.Ka=(m.navigator||null).presentation.defaultRequest=a,a.reconnect(chrome.cast.Ma).then(function(a){Y(c,
a)},ia)));b&&b(void 0)};V.prototype.da=function(a){a.navigator.presentation.defaultRequest=this.Ka};
var Y=function(a,b,c){c=void 0===c?null:c;b.onclose=function(b){a.g=null;switch(b.reason){case "closed":Ob(a,chrome.cast.G.DISCONNECTED);break;case "error":c&&(b=new chrome.cast.Error(chrome.cast.v.SESSION_ERROR),c&&c(b))}};b.onterminate=function(){Ob(a,chrome.cast.G.STOPPED)};"connected"==b.state?a.l.connect(b):b.onconnect=function(){a.l.connect(b)}},Rb=function(a){var b=Z;Pb.has(a.type)?b.La&&(b.i?(a.sessionId=b.i,Qb(b,null,a.type,a,function(){Wa("Send Broadcast directly succeeded")},function(a){B.error("Send Broadcast directly failed with code "+
a.code)})):b.Oa.Ib(X(b,void 0,"urn:x-cast:com.google.cast.media",a))):B.error("Unsupported broadcast message type - "+a.type)};V.prototype.Qa=function(a){Wa("Broadcast request "+a);(a=(new PresentationRequest(a)).getAvailability())?a.then(function(){Wa("Broadcast succeeded")},function(){B.log(2,"Broadcast failed",void 0)}):B.error("presentationRequest.getAvailability return undefined")};
V.prototype.requestSession=function(a,b,c){var d=this;this.g?Nb(b):(c=X(this,c),this.g=a,(new PresentationRequest(c.toString())).start().then(function(a){Y(d,a,b)}).catch(function(a){d.g=null;a=new chrome.cast.Error("AbortError"==a.name||"NotAllowedError"==a.name?chrome.cast.v.CANCEL:chrome.cast.v.SESSION_ERROR);b&&b(a)}))};
var X=function(a,b,c,d){var e=null,g=null,k=b||a.c.sessionRequest,n=k.dialRequest;n&&(e=n.appName,(g=n.launchParameter)&&!g.match(Sb)&&(g=kb(g)));var r=[];r.push({appId:k.appId,capabilities:k.capabilities});b||Ca(a.c.additionalSessionRequests,function(a){r.push({appId:a.appId,capabilities:a.capabilities})});return(new Gb(r,a.l.c,a.c.autoJoinPolicy,a.c.defaultActionPolicy,k.requestSessionTimeout,e,g,a.c.invisibleSender,c,d)).toString()};
V.prototype.ga=function(a,b,c,d){var e=this;this.B++;Qb(this,null,b,a,function(a){e.B--;a.c=!0;c&&c(a)},function(a){e.B--;d(a)},chrome.cast.media.timeout.load)};V.prototype.a=function(a,b,c,d,e,g){var k=this;Qb(this,a,b,c,function(a){k.xa(a);d&&d(void 0)},e,g)};
var Qb=function(a,b,c,d,e,g,k){d.type=c;null!=b&&(d.mediaSessionId=b.mediaSessionId,d.sessionId=b.sessionId);a.Da(d,function(a){a.status&&1==a.status.length?e&&e(a.status[0]):(a=new chrome.cast.Error(chrome.cast.v.SESSION_ERROR),g&&g(a))},g,k)};f=V.prototype;f.setReceiverVolume=function(a,b,c,d){b.sessionId=a;W(this,new N("v2_message",b,void 0,chrome.cast.timeout.setReceiverVolume),new M(this.h,c,d,chrome.cast.timeout.sendCustomMessage))};
f.ca=function(a){var b=this;(new PresentationRequest(X(this))).reconnect(chrome.cast.fb+a).then(function(a){Y(b,a)},ia)};f.leaveSession=function(a,b,c){W(this,new N("leave_session",a,void 0,chrome.cast.timeout.leaveSession),new M(this.h,b,c,chrome.cast.timeout.leaveSession))};f.gc=function(a,b,c){W(this,new N("app_message",a,void 0,chrome.cast.timeout.sendCustomMessage),new M(this.h,b,c,chrome.cast.timeout.sendCustomMessage))};
f.Da=function(a,b,c,d){W(this,new N("v2_message",a,void 0,d),new M(this.h,b,c,d))};var Tb=function(a,b,c){var d=a.get(b);d||(d=new mb,a.set(b,d));d.add(c)};f=V.prototype;f.Gb=function(a,b){Tb(this.m,a,b)};f.fc=function(a,b){(a=this.m.get(a))&&a.remove(b)};f.X=function(a){this.R.push(a)};f.aa=function(a){a=this.R.indexOf(a);0<=a&&this.R.splice(a,1)};f.Db=function(a,b,c){var d=this.j.get(a);d||(d=new y,this.j.set(a,d));a=d.get(b);a||(a=new mb,d.set(b,a));a.add(c)};
f.cc=function(a,b,c){(a=this.j.get(a))&&(b=a.get(b))&&b.remove(c)};f.W=function(a,b){Tb(this.C,a,b)};f.Z=function(a,b){(a=this.C.get(a))&&a.remove(b)};f.Eb=function(a,b){-1==a.a.indexOf(b)&&a.a.push(b)};f.dc=function(a,b){b=a.a.indexOf(b);-1!=b&&a.a.splice(b,1)};f.xa=function(a){if(a.c){var b=a.playerState!=chrome.cast.media.F.IDLE||null!=a.loadingItemId;a.a.forEach(function(a){a(b)});b||Mb(this.S,a)}else if(!(0<this.B)){a.c=!0;var c=this.C.get(a.sessionId);c&&x(c.w(),function(b){b(a)})}};
f.Hb=function(a){return Jb(this.S,a)};var Ob=function(a,b){if(a.i){var c=a.i;a.i=null;a.l.disconnect();var d=b!=chrome.cast.G.STOPPED;Ib(a.S,c,b)&&(a.j.remove(c),a.C.remove(c),b=a.m.get(c))&&(a.m.remove(c),x(b.w(),function(a){a(d)}))}};
V.prototype.onMessage=function(a){switch(a.type){case "new_session":case "update_session":a.message=Kb(this.S,a.message);break;case "v2_message":var b=a.message;b&&"MEDIA_STATUS"==b.type&&b.status&&(b.status=b.status.map(this.Pa))}if(b=Pa(this.fa,a.sequenceNumber))"error"==a.type?(b=b.a)&&b(a.message):(b=b.g)&&b(a.message);if(b=a.message)switch(a.type){case "receiver_action":Ub(this,b);break;case "new_session":this.i=b.sessionId;this.g?(this.g(b),this.g=null):this.c&&this.c.sessionListener(b);break;
case "update_session":Vb(this,b);break;case "app_message":Wb(this,b);break;case "v2_message":"MEDIA_STATUS"==b.type&&b.status.forEach(this.xa.bind(this));break;case "custom_dial_launch":Xb(this,a.sequenceNumber,b)}};
var Vb=function(a,b){(a=a.m.get(b.sessionId))&&x(a.w(),function(a){a(!0)})},Ub=function(a,b){a.R.forEach(function(a){a(b.receiver,b.action)})},Wb=function(a,b){(a=a.j.get(b.sessionId))&&(a=a.get(b.namespaceName))&&x(a.w(),function(a){a(b.namespaceName,b.message)})},Yb=function(a,b,c){W(a,new N("custom_dial_launch",c,void 0,chrome.cast.timeout.sendCustomMessage),null,b)},Xb=function(a,b,c){a.c.customDialLaunchCallback?a.c.customDialLaunchCallback(c).then(function(c){Yb(a,b,c)},function(){Yb(a,b)}):
Yb(a,b)},Sb=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Pb=new Set(["PRECACHE"]),Z=new V,B=Sa("mr.cast.Api");chrome.cast.P=function(a,b,c){Z.P(a,b,c)};t("chrome.cast.initialize",chrome.cast.P);chrome.cast.Kb=function(a,b,c){var d=new V;d.P(a,b,c);return d};t("chrome.cast.initializeWithContext",chrome.cast.Kb);chrome.cast.da=function(a){Z.da(a)};t("chrome.cast.setPageContext",chrome.cast.da);chrome.cast.requestSession=function(a,b,c){Z.requestSession(a,b,c)};t("chrome.cast.requestSession",chrome.cast.requestSession);chrome.cast.Pb=function(a){Rb(new chrome.cast.media.hb(a))};t("chrome.cast.precache",chrome.cast.Pb);
chrome.cast.ca=function(a){chrome.cast.Ca(Z,a)};t("chrome.cast.requestSessionById",chrome.cast.ca);chrome.cast.Ca=function(a,b){a.ca(b)};t("chrome.cast.requestSessionByIdWithContext",chrome.cast.Ca);chrome.cast.X=function(a){Z.X(a)};t("chrome.cast.addReceiverActionListener",chrome.cast.X);chrome.cast.aa=function(a){Z.aa(a)};t("chrome.cast.removeReceiverActionListener",chrome.cast.aa);chrome.cast.Nb=function(){};t("chrome.cast.logMessage",chrome.cast.Nb);chrome.cast.hc=function(a,b){b()};
t("chrome.cast.setCustomReceivers",chrome.cast.hc);chrome.cast.ic=function(a,b){b()};t("chrome.cast.setReceiverDisplayStatus",chrome.cast.ic);chrome.cast.unescape=function(a){return-1!=a.indexOf("&")?"document"in m?za(a):Aa(a):a};t("chrome.cast.unescape",chrome.cast.unescape);chrome.cast.isAvailable=!1;t("chrome.cast.isAvailable",chrome.cast.isAvailable);chrome.cast.Ha=!1;
chrome.cast.ea=function(){if(!chrome.cast.Ha){chrome.cast.Ha=!0;chrome.cast.isAvailable=!0;var a=window.__onGCastApiAvailable;a&&"function"==typeof a&&a(!0)}};"complete"==document.readyState?chrome.cast.ea():(window.addEventListener("load",chrome.cast.ea,!1),window.addEventListener("DOMContentLoaded",chrome.cast.ea,!1));}).call(this);
