(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<a.length?{done:!1,value:a[b++]}:{done:!0}}},g="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a},ba=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");
},ca=ba(this),da=function(a,b){if(b)a:{var c=ca;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&g(c,a,{configurable:!0,writable:!0,value:b})}};
da("Symbol",function(a){if(a)return a;var b=function(h,k){this.g=h;g(this,"description",{configurable:!0,writable:!0,value:k})};b.prototype.toString=function(){return this.g};var c="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",d=0,e=function(h){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(h||"")+"_"+d++,h)};return e});
da("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=ca[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&g(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ea(aa(this))}})}return a});
var ea=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a},fa=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}},ha="function"==typeof Object.create?Object.create:function(a){var b=function(){};b.prototype=a;return new b},m;
if("function"==typeof Object.setPrototypeOf)m=Object.setPrototypeOf;else{var n;a:{var ia={a:!0},ja={};try{ja.__proto__=ia;n=ja.a;break a}catch(a){}n=!1}m=n?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
var ka=m,p=function(a,b){a.prototype=ha(b.prototype);a.prototype.constructor=a;if(ka)ka(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Gc=b.prototype},r=this||self,la=function(){},ma=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"},u=function(a){var b=ma(a);return"array"==b||"object"==b&&"number"==typeof a.length},v="closure_uid_"+(1E9*Math.random()>>>
0),na=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 e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}},w=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?w=oa:w=pa;return w.apply(null,arguments)},x=function(a,b){a=
a.split(".");var c=r;a[0]in c||"undefined"==typeof 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},qa=function(a,b){function c(){}c.prototype=b.prototype;a.Gc=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Jc=function(d,e,h){for(var k=Array(arguments.length-2),l=2;l<arguments.length;l++)k[l-2]=arguments[l];return b.prototype[e].apply(d,k)}},ra=function(a){return a};var chrome=chrome||window.chrome||{};chrome.cast=chrome.cast||{};chrome.cast.media=chrome.cast.media||{};chrome.cast.ReceiverActionListener={};chrome.cast.VERSION=[1,2];x("chrome.cast.VERSION",chrome.cast.VERSION);chrome.cast.Ic=!0;x("chrome.cast.usingPresentationApi",chrome.cast.Ic);chrome.cast.eb=function(a,b){this.credentials=a;this.credentialsType=void 0===b?"web":b};x("chrome.cast.CredentialsData",chrome.cast.eb);chrome.cast.Error=function(a,b,c){this.code=a;this.description=b||null;this.details=c||null};x("chrome.cast.Error",chrome.cast.Error);
chrome.cast.Gb=function(a){this.platform=a;this.packageId=this.url=null};x("chrome.cast.SenderApplication",chrome.cast.Gb);chrome.cast.Image=function(a){this.url=a;this.width=this.height=null};x("chrome.cast.Image",chrome.cast.Image);chrome.cast.Volume=function(a,b){this.level=void 0===a?null:a;this.muted=void 0===b?null:b};x("chrome.cast.Volume",chrome.cast.Volume);chrome.cast.la={CUSTOM_CONTROLLER_SCOPED:"custom_controller_scoped",TAB_AND_ORIGIN_SCOPED:"tab_and_origin_scoped",ORIGIN_SCOPED:"origin_scoped",PAGE_SCOPED:"page_scoped"};x("chrome.cast.AutoJoinPolicy",chrome.cast.la);chrome.cast.oa={CREATE_SESSION:"create_session",CAST_THIS_TAB:"cast_this_tab"};x("chrome.cast.DefaultActionPolicy",chrome.cast.oa);chrome.cast.cb={VIDEO_OUT:"video_out",AUDIO_OUT:"audio_out",VIDEO_IN:"video_in",AUDIO_IN:"audio_in",MULTIZONE_GROUP:"multizone_group"};
x("chrome.cast.Capability",chrome.cast.cb);chrome.cast.F={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"};x("chrome.cast.ErrorCode",chrome.cast.F);chrome.cast.T={AVAILABLE:"available",UNAVAILABLE:"unavailable"};
x("chrome.cast.ReceiverAvailability",chrome.cast.T);chrome.cast.Hb={CHROME:"chrome",IOS:"ios",ANDROID:"android"};x("chrome.cast.SenderPlatform",chrome.cast.Hb);chrome.cast.Ca={CAST:"cast",DIAL:"dial",HANGOUT:"hangout",CUSTOM:"custom"};x("chrome.cast.ReceiverType",chrome.cast.Ca);chrome.cast.gb={RUNNING:"running",STOPPED:"stopped",ERROR:"error"};x("chrome.cast.DialAppState",chrome.cast.gb);chrome.cast.Cb={CAST:"cast",STOP:"stop"};x("chrome.cast.ReceiverAction",chrome.cast.Cb);
chrome.cast.N={CONNECTED:"connected",DISCONNECTED:"disconnected",STOPPED:"stopped"};x("chrome.cast.SessionStatus",chrome.cast.N);chrome.cast.Vb={ATTENUATION:"attenuation",FIXED:"fixed",MASTER:"master"};x("chrome.cast.VolumeControlType",chrome.cast.Vb);function y(a){if(Error.captureStackTrace)Error.captureStackTrace(this,y);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}qa(y,Error);y.prototype.name="CustomError";var sa=function(a,b){a=a.split("%s");for(var c="",d=a.length-1,e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");y.call(this,c+a[d])};qa(sa,y);sa.prototype.name="AssertionError";var ta=function(a,b){throw new sa("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));};var ua=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,h=0;h<d;h++)h in e&&b.call(c,e[h],h,a)};function va(a,b){for(var c=a.length,d="string"===typeof 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};var z;var wa=/&/g,xa=/</g,ya=/>/g,za=/"/g,Aa=/'/g,Ba=/\x00/g,Ca=/[\x00&<>"']/;var A;a:{var Da=r.navigator;if(Da){var Ea=Da.userAgent;if(Ea){A=Ea;break a}}A=""}var B=function(a){return-1!=A.indexOf(a)};var Fa={},C=function(a,b,c){this.g=c===Fa?a:""};C.prototype.toString=function(){return this.g.toString()};var Ga=function(a){if(a instanceof C&&a.constructor===C)return a.g;ta("expected object of type SafeHtml, got '"+a+"' of type "+ma(a));return"type_error:SafeHtml"},Ha=new C(r.trustedTypes&&r.trustedTypes.emptyHTML||"",0,Fa);var Ia={MATH:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Ja=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=Ga(Ha);return!b.parentElement});var La=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var c=r.document.createElement("div");return a.replace(Ka,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===z){e=null;var k=r.trustedTypes;if(k&&k.createPolicy){try{e=k.createPolicy("goog#html",{createHTML:ra,createScript:ra,createScriptURL:ra})}catch(l){r.console&&r.console.error(l.message)}z=e}else z=e}h=(e=z)?e.createHTML(h):
h;h=new C(h,null,Fa);if(c.tagName&&Ia[c.tagName.toUpperCase()])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+c.tagName+".");if(Ja())for(;c.lastChild;)c.removeChild(c.lastChild);c.innerHTML=Ga(h);h=c.firstChild.nodeValue.slice(0,-1)}return b[d]=h})},Ma=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)}})},Ka=/&([^;\s<&]+);?/g;chrome.cast.Za=function(a,b,c,d,e){this.sessionRequest=a;this.sessionListener=b;this.receiverListener=c;this.autoJoinPolicy=d||chrome.cast.la.TAB_AND_ORIGIN_SCOPED;this.defaultActionPolicy=e||chrome.cast.oa.CREATE_SESSION;this.customDialLaunchCallback=null;this.invisibleSender=!1;this.additionalSessionRequests=[]};x("chrome.cast.ApiConfig",chrome.cast.Za);chrome.cast.jb=function(a,b){this.appName=a;this.launchParameter=b||null};x("chrome.cast.DialRequest",chrome.cast.jb);
chrome.cast.hb=function(a,b,c){this.receiver=a;this.appState=b;this.extraData=c||null};x("chrome.cast.DialLaunchData",chrome.cast.hb);chrome.cast.ib=function(a,b){this.doLaunch=a;this.launchParameter=b||null};x("chrome.cast.DialLaunchResponse",chrome.cast.ib);
chrome.cast.Ib=function(a,b,c,d,e){c=void 0===c?chrome.cast.timeout.requestSession:c;this.appId=a;this.capabilities=Array.isArray(b)?b:[];this.requestSessionTimeout=c;this.dialRequest=this.language=null;this.androidReceiverCompatible=void 0===d?!1:d;this.credentialsData=void 0===e?null:e};x("chrome.cast.SessionRequest",chrome.cast.Ib);
chrome.cast.Bb=function(a,b,c,d){this.label=a;a=b;Ca.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(wa,"&amp;")),-1!=a.indexOf("<")&&(a=a.replace(xa,"&lt;")),-1!=a.indexOf(">")&&(a=a.replace(ya,"&gt;")),-1!=a.indexOf('"')&&(a=a.replace(za,"&quot;")),-1!=a.indexOf("'")&&(a=a.replace(Aa,"&#39;")),-1!=a.indexOf("\x00")&&(a=a.replace(Ba,"&#0;")));this.friendlyName=a;this.capabilities=c||[];this.volume=d||null;this.receiverType=chrome.cast.Ca.CAST;this.displayStatus=this.isActiveInput=null};
x("chrome.cast.Receiver",chrome.cast.Bb);chrome.cast.Db=function(a,b){this.statusText=a;this.appImages=b;this.showStop=null};x("chrome.cast.ReceiverDisplayStatus",chrome.cast.Db);chrome.cast.Fa=function(){this.requestSession=6E4;this.getDialAppInfo=this.sendCustomMessage=this.setReceiverVolume=this.stopSession=this.leaveSession=3E3};x("chrome.cast.Timeout",chrome.cast.Fa);chrome.cast.timeout=new chrome.cast.Fa;x("chrome.cast.timeout",chrome.cast.timeout);chrome.cast.Ya="auto-join";
chrome.cast.vb="cast-session_";chrome.cast.media.ob={SDR:"sdr",HDR:"hdr",DV:"dv"};x("chrome.cast.media.HdrType",chrome.cast.media.ob);chrome.cast.media.pb={AAC:"aac",AC3:"ac3",MP3:"mp3",TS:"ts",TS_AAC:"ts_aac",E_AC3:"e_ac3",FMP4:"fmp4"};x("chrome.cast.media.HlsSegmentFormat",chrome.cast.media.pb);chrome.cast.media.qb={MPEG2_TS:"mpeg2_ts",FMP4:"fmp4"};x("chrome.cast.media.HlsVideoSegmentFormat",chrome.cast.media.qb);chrome.cast.media.tb={PAUSE:"pause",SEEK:"seek",STREAM_VOLUME:"stream_volume",STREAM_MUTE:"stream_mute"};
x("chrome.cast.media.MediaCommand",chrome.cast.media.tb);chrome.cast.media.zb={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"};x("chrome.cast.media.QueueType",chrome.cast.media.zb);chrome.cast.media.Z={GENERIC_CONTAINER:0,AUDIOBOOK_CONTAINER:1};x("chrome.cast.media.ContainerType",chrome.cast.media.Z);
chrome.cast.media.I={GENERIC:0,MOVIE:1,TV_SHOW:2,MUSIC_TRACK:3,PHOTO:4,AUDIOBOOK_CHAPTER:5};x("chrome.cast.media.MetadataType",chrome.cast.media.I);chrome.cast.media.H={IDLE:"IDLE",PLAYING:"PLAYING",PAUSED:"PAUSED",BUFFERING:"BUFFERING"};x("chrome.cast.media.PlayerState",chrome.cast.media.H);chrome.cast.media.$={OFF:"REPEAT_OFF",ALL:"REPEAT_ALL",SINGLE:"REPEAT_SINGLE",ALL_AND_SHUFFLE:"REPEAT_ALL_AND_SHUFFLE"};x("chrome.cast.media.RepeatMode",chrome.cast.media.$);
chrome.cast.media.Eb={PLAYBACK_START:"PLAYBACK_START",PLAYBACK_PAUSE:"PLAYBACK_PAUSE"};x("chrome.cast.media.ResumeState",chrome.cast.media.Eb);chrome.cast.media.Ea={BUFFERED:"BUFFERED",LIVE:"LIVE",OTHER:"OTHER"};x("chrome.cast.media.StreamType",chrome.cast.media.Ea);chrome.cast.media.rb={CANCELLED:"CANCELLED",INTERRUPTED:"INTERRUPTED",FINISHED:"FINISHED",ERROR:"ERROR"};x("chrome.cast.media.IdleReason",chrome.cast.media.rb);chrome.cast.media.Qb={TEXT:"TEXT",AUDIO:"AUDIO",VIDEO:"VIDEO"};
x("chrome.cast.media.TrackType",chrome.cast.media.Qb);chrome.cast.media.Nb={SUBTITLES:"SUBTITLES",CAPTIONS:"CAPTIONS",DESCRIPTIONS:"DESCRIPTIONS",CHAPTERS:"CHAPTERS",METADATA:"METADATA"};x("chrome.cast.media.TextTrackType",chrome.cast.media.Nb);chrome.cast.media.Jb={NONE:"NONE",OUTLINE:"OUTLINE",DROP_SHADOW:"DROP_SHADOW",RAISED:"RAISED",DEPRESSED:"DEPRESSED"};x("chrome.cast.media.TextTrackEdgeType",chrome.cast.media.Jb);chrome.cast.media.Ob={NONE:"NONE",NORMAL:"NORMAL",ROUNDED_CORNERS:"ROUNDED_CORNERS"};
x("chrome.cast.media.TextTrackWindowType",chrome.cast.media.Ob);chrome.cast.media.Kb={SANS_SERIF:"SANS_SERIF",MONOSPACED_SANS_SERIF:"MONOSPACED_SANS_SERIF",SERIF:"SERIF",MONOSPACED_SERIF:"MONOSPACED_SERIF",CASUAL:"CASUAL",CURSIVE:"CURSIVE",SMALL_CAPITALS:"SMALL_CAPITALS"};x("chrome.cast.media.TextTrackFontGenericFamily",chrome.cast.media.Kb);chrome.cast.media.Lb={NORMAL:"NORMAL",BOLD:"BOLD",BOLD_ITALIC:"BOLD_ITALIC",ITALIC:"ITALIC"};x("chrome.cast.media.TextTrackFontStyle",chrome.cast.media.Lb);
chrome.cast.media.Rb={LIKE:"LIKE",DISLIKE:"DISLIKE",FOLLOW:"FOLLOW",UNFOLLOW:"UNFOLLOW"};x("chrome.cast.media.UserAction",chrome.cast.media.Rb);chrome.cast.media.qa=function(){this.customData=null};x("chrome.cast.media.GetStatusRequest",chrome.cast.media.qa);chrome.cast.media.ua=function(){this.customData=null};x("chrome.cast.media.PauseRequest",chrome.cast.media.ua);chrome.cast.media.wa=function(){this.customData=null};x("chrome.cast.media.PlayRequest",chrome.cast.media.wa);chrome.cast.media.Fb=function(){this.customData=this.resumeState=this.currentTime=null};x("chrome.cast.media.SeekRequest",chrome.cast.media.Fb);
chrome.cast.media.Da=function(){this.customData=null};x("chrome.cast.media.StopRequest",chrome.cast.media.Da);chrome.cast.media.Wb=function(a){this.volume=a;this.customData=null};x("chrome.cast.media.VolumeRequest",chrome.cast.media.Wb);
chrome.cast.media.sb=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};x("chrome.cast.media.LoadRequest",chrome.cast.media.sb);chrome.cast.media.wb=function(a){this.type="PRECACHE";this.requestId=0;this.precacheData=a};
chrome.cast.media.kb=function(a,b){this.requestId=0;this.activeTrackIds=a||null;this.textTrackStyle=b||null};x("chrome.cast.media.EditTracksInfoRequest",chrome.cast.media.kb);chrome.cast.media.Y=function(a){this.containerType=a=void 0===a?chrome.cast.media.Z.GENERIC_CONTAINER:a;this.containerDuration=this.containerImages=this.sections=this.title=void 0};x("chrome.cast.media.ContainerMetadata",chrome.cast.media.Y);
chrome.cast.media.v=function(a){this.metadataType=this.type=a;this.queueItemId=this.sectionStartTimeInContainer=this.sectionStartAbsoluteTime=this.sectionStartTimeInMedia=this.sectionDuration=void 0};x("chrome.cast.media.MediaMetadata",chrome.cast.media.v);chrome.cast.media.pa=function(){chrome.cast.media.v.call(this,chrome.cast.media.I.GENERIC);this.releaseDate=this.releaseYear=this.images=this.subtitle=this.title=void 0};p(chrome.cast.media.pa,chrome.cast.media.v);
x("chrome.cast.media.GenericMediaMetadata",chrome.cast.media.pa);chrome.cast.media.sa=function(){chrome.cast.media.v.call(this,chrome.cast.media.I.MOVIE);this.releaseDate=this.releaseYear=this.images=this.subtitle=this.studio=this.title=void 0};p(chrome.cast.media.sa,chrome.cast.media.v);x("chrome.cast.media.MovieMediaMetadata",chrome.cast.media.sa);
chrome.cast.media.Ga=function(){chrome.cast.media.v.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};p(chrome.cast.media.Ga,chrome.cast.media.v);x("chrome.cast.media.TvShowMediaMetadata",chrome.cast.media.Ga);
chrome.cast.media.ta=function(){chrome.cast.media.v.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};p(chrome.cast.media.ta,chrome.cast.media.v);x("chrome.cast.media.MusicTrackMediaMetadata",chrome.cast.media.ta);
chrome.cast.media.va=function(){chrome.cast.media.v.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};p(chrome.cast.media.va,chrome.cast.media.v);x("chrome.cast.media.PhotoMediaMetadata",chrome.cast.media.va);chrome.cast.media.ka=function(){chrome.cast.media.Y.call(this,chrome.cast.media.Z.AUDIOBOOK_CONTAINER);this.releaseDate=this.publisher=this.narrators=this.authors=void 0};
p(chrome.cast.media.ka,chrome.cast.media.Y);x("chrome.cast.media.AudiobookContainerMetadata",chrome.cast.media.ka);chrome.cast.media.ja=function(){chrome.cast.media.v.call(this,chrome.cast.media.I.AUDIOBOOK_CHAPTER);this.images=this.subtitle=this.bookTitle=this.chapterNumber=this.title=this.chapterTitle=void 0};p(chrome.cast.media.ja,chrome.cast.media.v);x("chrome.cast.media.AudiobookChapterMediaMetadata",chrome.cast.media.ja);
chrome.cast.media.ub=function(a,b){this.contentId=a;this.contentUrl=void 0;this.streamType=chrome.cast.media.Ea.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};x("chrome.cast.media.MediaInfo",chrome.cast.media.ub);
chrome.cast.media.ya=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};x("chrome.cast.media.QueueItem",chrome.cast.media.ya);chrome.cast.media.fb="CC1AD845";x("chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID",chrome.cast.media.fb);chrome.cast.media.timeout={};chrome.cast.media.timeout.load=0;x("chrome.cast.media.timeout.load",chrome.cast.media.timeout.load);
chrome.cast.media.timeout.V=0;x("chrome.cast.media.timeout.getStatus",chrome.cast.media.timeout.V);chrome.cast.media.timeout.play=0;x("chrome.cast.media.timeout.play",chrome.cast.media.timeout.play);chrome.cast.media.timeout.pause=0;x("chrome.cast.media.timeout.pause",chrome.cast.media.timeout.pause);chrome.cast.media.timeout.seek=0;x("chrome.cast.media.timeout.seek",chrome.cast.media.timeout.seek);chrome.cast.media.timeout.stop=0;x("chrome.cast.media.timeout.stop",chrome.cast.media.timeout.stop);
chrome.cast.media.timeout.X=0;x("chrome.cast.media.timeout.setVolume",chrome.cast.media.timeout.X);chrome.cast.media.timeout.U=0;x("chrome.cast.media.timeout.editTracksInfo",chrome.cast.media.timeout.U);chrome.cast.media.timeout.B=0;x("chrome.cast.media.timeout.queue",chrome.cast.media.timeout.B);chrome.cast.media.Pb=function(a,b){this.trackId=a;this.trackContentType=this.trackContentId=null;this.type=b;this.customData=this.subtype=this.language=this.name=null};x("chrome.cast.media.Track",chrome.cast.media.Pb);
chrome.cast.media.Mb=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};x("chrome.cast.media.TextTrackStyle",chrome.cast.media.Mb);chrome.cast.media.yb=function(a){this.type="QUEUE_LOAD";this.sessionId=this.requestId=null;this.items=a;this.startIndex=0;this.repeatMode=chrome.cast.media.$.OFF;this.customData=null};
x("chrome.cast.media.QueueLoadRequest",chrome.cast.media.yb);chrome.cast.media.xa=function(a){this.type="QUEUE_INSERT";this.sessionId=this.requestId=null;this.items=a;this.customData=this.insertBefore=null};x("chrome.cast.media.QueueInsertItemsRequest",chrome.cast.media.xa);chrome.cast.media.Ab=function(a){this.type="QUEUE_UPDATE";this.sessionId=this.requestId=null;this.items=a;this.customData=null};x("chrome.cast.media.QueueUpdateItemsRequest",chrome.cast.media.Ab);
chrome.cast.media.S=function(){this.type="QUEUE_UPDATE";this.customData=this.jump=this.currentItemId=this.sessionId=this.requestId=null};x("chrome.cast.media.QueueJumpRequest",chrome.cast.media.S);chrome.cast.media.Ba=function(){this.type="QUEUE_UPDATE";this.customData=this.repeatMode=this.sessionId=this.requestId=null};x("chrome.cast.media.QueueSetPropertiesRequest",chrome.cast.media.Ba);
chrome.cast.media.za=function(a){this.type="QUEUE_REMOVE";this.sessionId=this.requestId=null;this.itemIds=a;this.customData=null};x("chrome.cast.media.QueueRemoveItemsRequest",chrome.cast.media.za);chrome.cast.media.Aa=function(a){this.type="QUEUE_REORDER";this.sessionId=this.requestId=null;this.itemIds=a;this.customData=this.insertBefore=null};x("chrome.cast.media.QueueReorderItemsRequest",chrome.cast.media.Aa);
chrome.cast.media.$a=function(a,b,c){this.id=a;this.breakClipIds=b;this.position=c;this.duration=void 0;this.isWatched=!1;this.isEmbedded=void 0};x("chrome.cast.media.Break",chrome.cast.media.$a);chrome.cast.media.ab=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};x("chrome.cast.media.BreakClip",chrome.cast.media.ab);
chrome.cast.media.Tb=function(){this.adsResponse=this.adTagUrl=void 0};x("chrome.cast.media.VastAdsRequest",chrome.cast.media.Tb);chrome.cast.media.bb=function(){this.whenSkippable=this.breakClipId=this.breakId=this.currentBreakClipTime=this.currentBreakTime=void 0};x("chrome.cast.media.BreakStatus",chrome.cast.media.bb);chrome.cast.media.ra=function(a,b,c,d){this.start=a;this.end=b;this.isMovingWindow=c;this.isLiveDone=d};x("chrome.cast.media.LiveSeekableRange",chrome.cast.media.ra);
chrome.cast.media.xb=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};x("chrome.cast.media.QueueData",chrome.cast.media.xb);chrome.cast.media.Sb=function(a){this.userAction=a;this.customData=void 0};x("chrome.cast.media.UserActionState",chrome.cast.media.Sb);chrome.cast.media.Ub=function(a,b,c){this.width=a;this.height=b;this.hdrType=c};
x("chrome.cast.media.VideoInformation",chrome.cast.media.Ub);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.$.OFF;this.breakStatus=void 0;this.l=!1;this.i=[];this.liveSeekableRange=
void 0};f=chrome.cast.media.h.prototype;f.V=function(a,b,c){a||(a=new chrome.cast.media.qa);D.s(this,"MEDIA_GET_STATUS",a,b,c,chrome.cast.media.timeout.V)};f.play=function(a,b,c){this.Ma(D,a,b,c)};f.Ma=function(a,b,c,d){b||(b=new chrome.cast.media.wa);a.s(this,"PLAY",b,c,d,chrome.cast.media.timeout.play)};f.pause=function(a,b,c){this.La(D,a,b,c)};f.La=function(a,b,c,d){b||(b=new chrome.cast.media.ua);a.s(this,"PAUSE",b,c,d,chrome.cast.media.timeout.pause)};
f.seek=function(a,b,c){D.s(this,"SEEK",a,b,c,chrome.cast.media.timeout.seek)};f.stop=function(a,b,c){a||(a=new chrome.cast.media.Da);D.s(this,"STOP_MEDIA",a,b,c,chrome.cast.media.timeout.stop)};f.X=function(a,b,c){D.s(this,"MEDIA_SET_VOLUME",a,b,c,chrome.cast.media.timeout.X)};f.U=function(a,b,c){D.s(this,"EDIT_TRACKS_INFO",a,b,c,chrome.cast.media.timeout.U)};f.mc=function(a,b,c){D.s(this,"QUEUE_INSERT",a,b,c,chrome.cast.media.timeout.B)};
f.lc=function(a,b,c){D.s(this,"QUEUE_INSERT",new chrome.cast.media.xa([a]),b,c,chrome.cast.media.timeout.B)};f.wc=function(a,b,c){D.s(this,"QUEUE_UPDATE",a,b,c,chrome.cast.media.timeout.B)};f.rc=function(a,b){var c=new chrome.cast.media.S;c.jump=-1;D.s(this,"QUEUE_UPDATE",c,a,b,chrome.cast.media.timeout.B)};f.qc=function(a,b){var c=new chrome.cast.media.S;c.jump=1;D.s(this,"QUEUE_UPDATE",c,a,b,chrome.cast.media.timeout.B)};
f.nc=function(a,b,c){if(!(0>Na(this,a))){var d=new chrome.cast.media.S;d.currentItemId=a;D.s(this,"QUEUE_UPDATE",d,b,c,chrome.cast.media.timeout.B)}};f.vc=function(a,b,c){var d=new chrome.cast.media.Ba;d.repeatMode=a;D.s(this,"QUEUE_UPDATE",d,b,c,chrome.cast.media.timeout.B)};f.tc=function(a,b,c){D.s(this,"QUEUE_REMOVE",a,b,c,chrome.cast.media.timeout.B)};f.sc=function(a,b,c){0>Na(this,a)||D.s(this,"QUEUE_REMOVE",new chrome.cast.media.za([a]),b,c,chrome.cast.media.timeout.B)};
f.uc=function(a,b,c){D.s(this,"QUEUE_REORDER",a,b,c,chrome.cast.media.timeout.B)};f.pc=function(a,b,c,d){var e=Na(this,a);if(!(0>e))if(0>b)d&&d(new chrome.cast.Error(chrome.cast.F.INVALID_PARAMETER));else if(e==b)c&&c();else{var h=null;b=b>e?b+1:b;b<this.items.length&&(h=this.items[b]);a=new chrome.cast.media.Aa([a]);a.insertBefore=h?h.itemId:null;D.s(this,"QUEUE_REORDER",a,c,d,chrome.cast.media.timeout.B)}};f.Hc=function(a){return-1<this.supportedMediaCommands.indexOf(a)};
f.ec=function(){if(this.playerState==chrome.cast.media.H.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&&-1!=this.media.duration&&(a=this.media.duration);0>a&&(a=0);return a}return this.currentTime};f.cc=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.bc=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.dc=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.ra;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.ca=function(a){this.O(D,a)};f.O=function(a,b){a.Yb(this,b)};f.fa=function(a){this.R(D,a)};f.R=function(a,b){D.yc(this,b)};var Na=function(a,b){return va(a.items,function(c){return c.itemId==b})};x("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.fa;chrome.cast.media.h.prototype.addUpdateListenerWithContext=chrome.cast.media.h.prototype.O;
chrome.cast.media.h.prototype.addUpdateListener=chrome.cast.media.h.prototype.ca;chrome.cast.media.h.prototype.getEstimatedLiveSeekableRange=chrome.cast.media.h.prototype.dc;chrome.cast.media.h.prototype.getEstimatedBreakClipTime=chrome.cast.media.h.prototype.bc;chrome.cast.media.h.prototype.getEstimatedBreakTime=chrome.cast.media.h.prototype.cc;chrome.cast.media.h.prototype.getEstimatedTime=chrome.cast.media.h.prototype.ec;chrome.cast.media.h.prototype.supportsCommand=chrome.cast.media.h.prototype.Hc;
chrome.cast.media.h.prototype.queueMoveItemToNewIndex=chrome.cast.media.h.prototype.pc;chrome.cast.media.h.prototype.queueReorderItems=chrome.cast.media.h.prototype.uc;chrome.cast.media.h.prototype.queueRemoveItem=chrome.cast.media.h.prototype.sc;chrome.cast.media.h.prototype.queueRemoveItems=chrome.cast.media.h.prototype.tc;chrome.cast.media.h.prototype.queueSetRepeatMode=chrome.cast.media.h.prototype.vc;chrome.cast.media.h.prototype.queueJumpToItem=chrome.cast.media.h.prototype.nc;
chrome.cast.media.h.prototype.queueNext=chrome.cast.media.h.prototype.qc;chrome.cast.media.h.prototype.queuePrev=chrome.cast.media.h.prototype.rc;chrome.cast.media.h.prototype.queueUpdateItems=chrome.cast.media.h.prototype.wc;chrome.cast.media.h.prototype.queueAppendItem=chrome.cast.media.h.prototype.lc;chrome.cast.media.h.prototype.queueInsertItems=chrome.cast.media.h.prototype.mc;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.La;chrome.cast.media.h.prototype.pause=chrome.cast.media.h.prototype.pause;chrome.cast.media.h.prototype.playWithContext=chrome.cast.media.h.prototype.Ma;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 D=null;var Oa=function(a,b,c){this.sessionId=a;this.namespaceName=b;this.message=c};var Pa=function(a,b){this.type="SET_VOLUME";this.requestId=0;this.volume=a;this.expectedVolume=b||null};var Qa=function(a){this.type="STOP";this.requestId=0;this.sessionId=a||null};chrome.cast.j=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.j.prototype;f.Fc=function(a,b,c){this.Ua(D,a,b,c)};f.Ua=function(a,b,c,d){b=new Pa(new chrome.cast.Volume(b,null),this.receiver.volume);a.setReceiverVolume(this.sessionId,b,c,d)};f.Ec=function(a,b,c){this.Ta(D,a,b,c)};
f.Ta=function(a,b,c,d){a=new Pa(new chrome.cast.Volume(null,b),this.receiver.volume);D.setReceiverVolume(this.sessionId,a,c,d)};f.getDialAppInfo=function(a,b){this.Ka(D,a,b)};f.Ka=function(a,b,c){a.getDialAppInfo(b,c)};f.hc=function(a,b){D.leaveSession(this.sessionId,a,b)};f.stop=function(a,b){this.Wa(D,a,b)};f.Wa=function(a,b,c){a.Qa(new Qa(this.sessionId),b,c,chrome.cast.timeout.stopSession)};f.sendMessage=function(a,b,c,d){this.Sa(D,a,b,c,d)};
f.Sa=function(a,b,c,d,e){a.Bc(new Oa(this.sessionId,b,c),d,e)};f.ca=function(a){this.O(D,a)};f.O=function(a,b){a.$b(this.sessionId,b)};f.fa=function(a){this.R(D,a)};f.R=function(a,b){a.Ac(this.sessionId,b)};f.Zb=function(a,b){this.Ia(D,a,b)};f.Ia=function(a,b,c){a.Xb(this.sessionId,b,c)};f.aa=function(a){this.Ha(D,a)};f.Ha=function(a,b){a.aa(this.sessionId,b)};f.da=function(a){this.Na(D,a)};f.Na=function(a,b){a.da(this.sessionId,b)};f.zc=function(a,b){this.Oa(D,a,b)};
f.Oa=function(a,b,c){a.xc(this.sessionId,b,c)};f.ic=function(a,b,c){a.sessionId=this.sessionId;D.Ra(a,"LOAD",b,c)};f.oc=function(a,b,c){a.sessionId=this.sessionId;D.Ra(a,"QUEUE_LOAD",b,c)};x("chrome.cast.Session",chrome.cast.j);chrome.cast.j.prototype.queueLoad=chrome.cast.j.prototype.oc;chrome.cast.j.prototype.loadMedia=chrome.cast.j.prototype.ic;chrome.cast.j.prototype.removeMessageListenerWithContext=chrome.cast.j.prototype.Oa;chrome.cast.j.prototype.removeMessageListener=chrome.cast.j.prototype.zc;
chrome.cast.j.prototype.removeMediaListenerWithContext=chrome.cast.j.prototype.Na;chrome.cast.j.prototype.removeMediaListener=chrome.cast.j.prototype.da;chrome.cast.j.prototype.addMediaListenerWithContext=chrome.cast.j.prototype.Ha;chrome.cast.j.prototype.addMediaListener=chrome.cast.j.prototype.aa;chrome.cast.j.prototype.addMessageListenerWithContext=chrome.cast.j.prototype.Ia;chrome.cast.j.prototype.addMessageListener=chrome.cast.j.prototype.Zb;
chrome.cast.j.prototype.removeUpdateListenerWithContext=chrome.cast.j.prototype.R;chrome.cast.j.prototype.removeUpdateListener=chrome.cast.j.prototype.fa;chrome.cast.j.prototype.addUpdateListenerWithContext=chrome.cast.j.prototype.O;chrome.cast.j.prototype.addUpdateListener=chrome.cast.j.prototype.ca;chrome.cast.j.prototype.sendMessageWithContext=chrome.cast.j.prototype.Sa;chrome.cast.j.prototype.sendMessage=chrome.cast.j.prototype.sendMessage;chrome.cast.j.prototype.stopWithContext=chrome.cast.j.prototype.Wa;
chrome.cast.j.prototype.stop=chrome.cast.j.prototype.stop;chrome.cast.j.prototype.leave=chrome.cast.j.prototype.hc;chrome.cast.j.prototype.getDialAppInfoWithContext=chrome.cast.j.prototype.Ka;chrome.cast.j.prototype.getDialAppInfo=chrome.cast.j.prototype.getDialAppInfo;chrome.cast.j.prototype.setReceiverMutedWithContext=chrome.cast.j.prototype.Ta;chrome.cast.j.prototype.setReceiverMuted=chrome.cast.j.prototype.Ec;chrome.cast.j.prototype.setReceiverVolumeLevelWithContext=chrome.cast.j.prototype.Ua;
chrome.cast.j.prototype.setReceiverVolumeLevel=chrome.cast.j.prototype.Fc;var Ra=function(a,b){this.g=a[r.Symbol.iterator]();this.i=b;this.l=0};Ra.prototype[Symbol.iterator]=function(){return this};Ra.prototype.next=function(){var a=this.g.next();return{value:a.done?void 0:this.i.call(void 0,a.value,this.l++),done:a.done}};var Sa=function(a,b){return new Ra(a,b)};var E="StopIteration"in r?r.StopIteration:{message:"StopIteration",stack:""},F=function(){};F.prototype.next=function(){return F.prototype.g.call(this)};F.prototype.g=function(){throw E;};F.prototype.u=function(){return this};
var Ta=function(a){if(a instanceof F)return a;if("function"==typeof a.u)return a.u(!1);if(u(a)){var b=0,c=new F;c.g=function(){for(;;){if(b>=a.length)throw E;if(b in a)return a[b++];b++}};c.next=c.g.bind(c);return c}throw Error("Not implemented");},G=function(a,b){if(u(a))try{ua(a,b,void 0)}catch(c){if(c!==E)throw c;}else{a=Ta(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==E)throw c;}}};var Va=function(a){if(a instanceof H||a instanceof I||a instanceof J)return a;if("function"==typeof a.next)return new H(function(){return Ua(a)});if("function"==typeof a[Symbol.iterator])return new H(function(){return a[Symbol.iterator]()});if("function"==typeof a.u)return new H(function(){return Ua(a.u())});throw Error("Not an iterator or iterable.");},Ua=function(a){if(!(a instanceof F))return a;var b=!1;return{next:function(){for(var c;!b;)try{c=a.next();break}catch(d){if(d!==E)throw d;b=!0}return{value:c,
done:b}}}},H=function(a){this.g=a};H.prototype.u=function(){return new I(this.g())};H.prototype[Symbol.iterator]=function(){return new J(this.g())};H.prototype.l=function(){return new J(this.g())};var I=function(a){this.i=a};p(I,F);I.prototype.g=function(){var a=this.i.next();if(a.done)throw E;return a.value};I.prototype.next=function(){return I.prototype.g.call(this)};I.prototype[Symbol.iterator]=function(){return new J(this.i)};I.prototype.l=function(){return new J(this.i)};
var J=function(a){H.call(this,function(){return a});this.i=a};p(J,H);J.prototype.next=function(){return this.i.next()};var K=function(a,b){this.g={};this.o=[];this.i=this.size=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 K)for(L(a),c=a.o.concat(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};K.prototype.P=function(){L(this);for(var a=[],b=0;b<this.o.length;b++)a.push(this.g[this.o[b]]);return a};K.prototype.has=function(a){return M(this.g,a)};
K.prototype.clear=function(){this.g={};this.i=this.size=this.o.length=0};K.prototype.remove=function(a){M(this.g,a)?(delete this.g[a],--this.size,this.i++,this.o.length>2*this.size&&L(this),a=!0):a=!1;return a};var L=function(a){if(a.size!=a.o.length){for(var b=0,c=0;b<a.o.length;){var d=a.o[b];M(a.g,d)&&(a.o[c++]=d);b++}a.o.length=c}if(a.size!=a.o.length){var e={};for(c=b=0;b<a.o.length;)d=a.o[b],M(e,d)||(a.o[c++]=d,e[d]=1),b++;a.o.length=c}};f=K.prototype;
f.get=function(a,b){return M(this.g,a)?this.g[a]:b};f.set=function(a,b){M(this.g,a)||(this.size+=1,this.o.push(a),this.i++);this.g[a]=b};f.keys=function(){return Va(this.u(!0)).l()};f.values=function(){return Va(this.u(!1)).l()};f.entries=function(){var a=this;return Sa(this.keys(),function(b){return[b,a.get(b)]})};
f.u=function(a){L(this);var b=0,c=this.i,d=this,e=new F;e.g=function(){if(c!=d.i)throw Error("The map has changed since the iterator was created");if(b>=d.o.length)throw E;var h=d.o[b++];return a?h:d.g[h]};e.next=e.g.bind(e);return e};var M=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Wa=function(a,b){this.requestId=a;this.m=b;this.Xa=null};Wa.prototype.i=function(){};var Xa=function(){this.g=new K},Ya=function(a,b){a.g.set(b.requestId,b);b.Xa=setTimeout(function(){a.g.remove(b.requestId);b.i()},b.m)},Za=function(a,b){var c=a.g.get(b);if(!c)return null;clearTimeout(c.Xa);a.g.remove(b);return c};var N=function(a,b,c,d){Wa.call(this,a,d||6E5);this.l=b;this.g=c};p(N,Wa);N.prototype.i=function(){this.g(new chrome.cast.Error(chrome.cast.F.TIMEOUT))};var O=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 P=function(a){this.l=a;this.i=String(Date.now())+String(Math.floor(1E5*Math.random()));this.g=null},$a=function(a,b){if(!a.g)return"No active session";b.clientId=a.i;b=JSON.stringify(b);if(32768<b.length)return"Message length over limit";a.g.send(b);return null};P.prototype.connect=function(a){this.g=a;this.g.onmessage=w(this.m,this);$a(this,new O("client_connect",this.i))};P.prototype.disconnect=function(){this.g.close();this.g=null};
P.prototype.m=function(a){a=JSON.parse(a.data);if(a.clientId==this.i)this.l.onMessage(a)};var ab=function(a,b,c){this.l=a;this.i=b;this.g=c},bb=function(a){var b="cast-dial:"+a.l,c=new URLSearchParams;a.i&&c.set("dialPostData",a.i);a.g&&c.set("clientId",a.g);(a=c.toString())&&(b+="?"+a);return b};var cb=function(a,b,c,d,e,h,k,l,q,t,jb,kb){this.L=a;this.g=b||null;this.l=c||null;this.D=d||null;this.G=void 0!==e?e:null;this.i=h||null;this.K=k||null;this.J=l||!1;this.A=q||null;this.m=t||null;this.M=jb?["WEB","ANDROID_TV"]:["WEB"];this.C=kb||null},db=function(a){var b=a.L.map(function(c){var d="cast:"+c.appId,e=new URLSearchParams;c.capabilities&&0<c.capabilities.length&&e.set("capabilities",c.capabilities.join(","));a.g&&e.set("clientId",a.g);a.l&&e.set("autoJoinPolicy",a.l);a.D&&e.set("defaultActionPolicy",
a.D);null!=a.G&&e.set("launchTimeout",String(a.G));a.J&&e.set("invisibleSender","true");a.A&&(e.set("broadcastNamespace",a.A),e.set("broadcastId",String(Math.random())));a.m&&e.set("broadcastMessage",encodeURIComponent(JSON.stringify(a.m)));e.set("supportedAppTypes",a.M.join(","));c=e.set;var h=JSON,k=h.stringify,l={launchCheckerParams:{}};a.C&&(l.launchCheckerParams.credentialsData=a.C);c.call(e,"appParams",k.call(h,l));return d+"?"+e.toString()});a.i&&b.push(bb(new ab(a.i,a.K,a.g)));return b};var eb=function(){this.g={};this.i={}},fb=function(a,b,c){var d=a.g[b];return d?(d.status=c,d.media.forEach(function(e){delete a.i[e.sessionId+"#"+e.mediaSessionId]}),delete a.g[b],!0):!1},hb=function(a,b){var c=a.g[b.sessionId];if(c)return c.statusText=b.statusText,c.namespaces=b.namespaces||[],c.receiver.volume=b.receiver.volume,c;c=new chrome.cast.j(b.sessionId,b.appId,b.displayName,b.appImages,b.receiver);for(var d in b)"media"==d?c.media=b.media.map(function(e){e=gb(a,e);e.m=!1;e.l=!0;return e}):
b.hasOwnProperty(d)&&(c[d]=b[d]);return a.g[b.sessionId]=c},gb=function(a,b){var c=b.sessionId+"#"+b.mediaSessionId,d=a.i[c];d||(d=new chrome.cast.media.h(b.sessionId,b.mediaSessionId),a.i[c]=d,(a=a.g[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=fa(["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.H.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 h=a.items;c={};if(h)for(var k=0;k<h.length;k++)c[h[k].itemId]=k;b=fa(b.items);for(h=b.next();!h.done;h=b.next()){h=h.value;if(!h.media){k=h.itemId;var l=a.items?a.items[c[k]]:null;l&&l.media?h.media=l.media:k==a.currentItemId&&
a.media&&(h.media=a.media)}k=e;l=k.push;var q=void 0,t=new chrome.cast.media.ya(h.media);for(q in h)h.hasOwnProperty(q)&&(t[q]=h[q]);l.call(k,t)}a.items=e}return d},ib=function(a,b){delete a.i[b.sessionId+"#"+b.mediaSessionId];if(a=a.g[b.sessionId])b=a.media.indexOf(b),-1!=b&&a.media.splice(b,1)};var Q=function(){this.A=this.A};Q.prototype.A=!1;Q.prototype.isDisposed=function(){return this.A};var lb=B("Opera"),mb=B("Gecko")&&!(-1!=A.toLowerCase().indexOf("webkit")&&!B("Edge"))&&!(B("Trident")||B("MSIE"))&&!B("Edge"),nb=-1!=A.toLowerCase().indexOf("webkit")&&!B("Edge");try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){};var ob=function(a,b){if("function"!==typeof a)if(a&&"function"==typeof a.handleEvent)a=w(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:r.setTimeout(a,b||0)};var R=function(a,b,c){Q.call(this);this.G=null!=c?a.bind(c):a;this.D=b;this.m=null;this.i=!1;this.l=0;this.g=null};p(R,Q);R.prototype.C=function(a){this.m=arguments;this.g||this.l?this.i=!0:pb(this)};R.prototype.stop=function(){this.g&&(r.clearTimeout(this.g),this.g=null,this.i=!1,this.m=null)};R.prototype.pause=function(){this.l++};R.prototype.resume=function(){this.l--;this.l||!this.i||this.g||(this.i=!1,pb(this))};
var pb=function(a){a.g=ob(function(){a.g=null;a.i&&!a.l&&(a.i=!1,pb(a))},a.D);var b=a.m;a.m=null;a.G.apply(null,b)};var qb=B("Safari")&&!((B("Chrome")||B("CriOS"))&&!B("Edge")||B("Coast")||B("Opera")||B("Edge")||B("Edg/")||B("OPR")||B("Firefox")||B("FxiOS")||B("Silk")||B("Android"))&&!(B("iPhone")&&!B("iPod")&&!B("iPad")||B("iPad")||B("iPod"));var rb={},S=null,sb=mb||nb&&!qb||lb||"function"==typeof r.btoa,tb=function(a){if(sb)var b=r.btoa(a);else{b=[];for(var c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}a=void 0;void 0===a&&(a=0);if(!S)for(S={},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),d=["+/=","+/","-_=","-_.","-_"],e=0;5>e;e++){var h=c.concat(d[e].split(""));rb[e]=h;for(var k=0;k<h.length;k++){var l=h[k];void 0===S[l]&&(S[l]=k)}}a=rb[a];c=Array(Math.floor(b.length/
3));d=a[64]||"";for(e=h=0;h<b.length-2;h+=3){var q=b[h],t=b[h+1];l=b[h+2];k=a[q>>2];q=a[(q&3)<<4|t>>4];t=a[(t&15)<<2|l>>6];l=a[l&63];c[e++]=""+k+q+t+l}k=0;l=d;switch(b.length-h){case 2:k=b[h+1],l=a[(k&15)<<2]||d;case 1:b=b[h],c[e]=""+a[b>>2]+a[(b&3)<<4|k>>4]+l+d}b=c.join("")}return b};var ub=function(a){if(a.P&&"function"==typeof a.P)return a.P();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(u(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}b=[];c=0;for(d in a)b[c++]=a[d];return b};var T=function(){this.g=new K;this.size=0},U=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(Object.prototype.hasOwnProperty.call(a,v)&&a[v]||(a[v]=++na)):b.substr(0,1)+a};f=T.prototype;f.add=function(a){this.g.set(U(a),a);this.size=this.g.size};f.removeAll=function(a){a=ub(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c]);this.size=this.g.size};f.remove=function(a){a=this.g.remove(U(a));this.size=this.g.size;return a};f.clear=function(){this.g.clear();this.size=0};
f.has=function(a){a=U(a);return this.g.has(a)};f.contains=function(a){a=U(a);return this.g.has(a)};f.P=function(){return this.g.P()};f.values=function(){return this.g.values()};f.u=function(){return this.g.u(!1)};T.prototype[Symbol.iterator]=function(){return this.values()};var V=function(){this.C=new P(this);this.g=null;this.J=new eb;this.i=0;this.M=new Xa;this.D=new K;this.na=!1;this.A=new K;this.K=new K;this.L=[];this.mb=this.ac.bind(this);this.l=null;this.G=0;this.m=null;this.lb=new R(this.nb,200,this);this.ma=null},vb=function(a){var b=new chrome.cast.Error(chrome.cast.F.INVALID_PARAMETER,"Already requesting session");a&&a(b)},W=function(a,b,c,d){c&&Ya(a.M,c);void 0!==d?b.sequenceNumber=d:(b.sequenceNumber=a.i,a.i=(a.i+1)%9007199254740992);d=$a(a.C,b);c&&d&&(a=
Za(a.M,b.sequenceNumber),b=new chrome.cast.Error(chrome.cast.F.INVALID_PARAMETER,d),(a=a.g)&&a(b))};
V.prototype.W=function(a,b){var c=this;D=this;this.g=a;a.invisibleSender||(a=new PresentationRequest(X(this)),a.getAvailability().then(function(d){d.onchange=function(){c.na=!!d.value;c.g.receiverListener(d.value?chrome.cast.T.AVAILABLE:chrome.cast.T.UNAVAILABLE)};d.onchange()},function(){c.g.receiverListener(chrome.cast.T.AVAILABLE)}),a.onconnectionavailable=function(d){Y(c,d.connection)},this.ma=(r.navigator||null).presentation.defaultRequest=a,a.reconnect(chrome.cast.Ya).then(function(d){Y(c,d)},
la));b&&b(void 0)};V.prototype.ha=function(a){a.navigator.presentation.defaultRequest=this.ma};
var Y=function(a,b,c){c=void 0===c?null:c;b.onclose=function(d){a.l=null;switch(d.reason){case "closed":wb(a,chrome.cast.N.DISCONNECTED);break;case "error":c&&(d=new chrome.cast.Error(chrome.cast.F.SESSION_ERROR),c&&c(d))}};b.onterminate=function(){wb(a,chrome.cast.N.STOPPED)};"connected"==b.state?a.C.connect(b):b.onconnect=function(){a.C.connect(b)}},zb=function(a){var b=Z;xb.has(a.type)&&b.na&&(b.m?(a.sessionId=b.m,yb(b,null,a.type,a,function(){},function(){})):b.lb.C(X(b,void 0,"urn:x-cast:com.google.cast.media",
a)))};V.prototype.nb=function(a){(a=(new PresentationRequest(a)).getAvailability())&&a.then(function(){},function(){})};V.prototype.requestSession=function(a,b,c){var d=this;this.l?vb(b):(c=X(this,c),this.l=a,(new PresentationRequest(c)).start().then(function(e){Y(d,e,b)}).catch(function(e){d.l=null;e=new chrome.cast.Error("AbortError"==e.name||"NotAllowedError"==e.name?chrome.cast.F.CANCEL:chrome.cast.F.SESSION_ERROR);b&&b(e)}))};
var X=function(a,b,c,d){var e=null,h=null,k=b||a.g.sessionRequest,l=k.dialRequest;l&&(e=l.appName,(h=l.launchParameter)&&!h.match(Ab)&&(h=tb(h)));var q=[];q.push({appId:k.appId,capabilities:k.capabilities});b||ua(a.g.additionalSessionRequests,function(t){q.push({appId:t.appId,capabilities:t.capabilities})});return db(new cb(q,a.C.i,a.g.autoJoinPolicy,a.g.defaultActionPolicy,k.requestSessionTimeout,e,h,a.g.invisibleSender,c,d,k.androidReceiverCompatible,k.credentialsData))};
V.prototype.Ra=function(a,b,c,d){var e=this;this.G++;yb(this,null,b,a,function(h){e.G--;h.l=!0;c&&c(h)},function(h){e.G--;d(h)},chrome.cast.media.timeout.load)};V.prototype.s=function(a,b,c,d,e,h){var k=this;yb(this,a,b,c,function(l){k.Ja(l);d&&d(void 0)},e,h)};
var yb=function(a,b,c,d,e,h,k){d.type=c;null!=b&&(d.mediaSessionId=b.mediaSessionId,d.sessionId=b.sessionId);a.Qa(d,function(l){l.status&&1==l.status.length?e&&e(l.status[0]):(l=new chrome.cast.Error(chrome.cast.F.SESSION_ERROR),h&&h(l))},h,k)};f=V.prototype;f.setReceiverVolume=function(a,b,c,d){b.sessionId=a;W(this,new O("v2_message",b,void 0,chrome.cast.timeout.setReceiverVolume),new N(this.i,c,d,chrome.cast.timeout.sendCustomMessage))};
f.getDialAppInfo=function(a,b){W(this,new O("dial_app_info",void 0,void 0,chrome.cast.timeout.getDialAppInfo),new N(this.i,a,b,chrome.cast.timeout.sendCustomMessage))};f.ga=function(a){var b=this;(new PresentationRequest(X(this))).reconnect(chrome.cast.vb+a).then(function(c){Y(b,c)},la)};f.leaveSession=function(a,b,c){W(this,new O("leave_session",a,void 0,chrome.cast.timeout.leaveSession),new N(this.i,b,c,chrome.cast.timeout.leaveSession))};
f.Bc=function(a,b,c){W(this,new O("app_message",a,void 0,chrome.cast.timeout.sendCustomMessage),new N(this.i,b,c,chrome.cast.timeout.sendCustomMessage))};f.Qa=function(a,b,c,d){W(this,new O("v2_message",a,void 0,d),new N(this.i,b,c,d))};var Bb=function(a,b,c){var d=a.get(b);d||(d=new T,a.set(b,d));d.add(c)};f=V.prototype;f.$b=function(a,b){Bb(this.D,a,b)};f.Ac=function(a,b){(a=this.D.get(a))&&a.remove(b)};f.ba=function(a){this.L.push(a)};
f.ea=function(a){a=this.L.indexOf(a);0<=a&&this.L.splice(a,1)};f.Xb=function(a,b,c){var d=this.A.get(a);d||(d=new K,this.A.set(a,d));a=d.get(b);a||(a=new T,d.set(b,a));a.add(c)};f.xc=function(a,b,c){(a=this.A.get(a))&&(b=a.get(b))&&b.remove(c)};f.aa=function(a,b){Bb(this.K,a,b)};f.da=function(a,b){(a=this.K.get(a))&&a.remove(b)};f.Yb=function(a,b){-1==a.i.indexOf(b)&&a.i.push(b)};f.yc=function(a,b){b=a.i.indexOf(b);-1!=b&&a.i.splice(b,1)};
f.Ja=function(a){if(a.l){var b=a.playerState!=chrome.cast.media.H.IDLE||null!=a.loadingItemId;a.i.forEach(function(d){d(b)});b||ib(this.J,a)}else if(!(0<this.G)){a.l=!0;var c=this.K.get(a.sessionId);c&&G(c.u(),function(d){d(a)})}};f.ac=function(a){return gb(this.J,a)};var wb=function(a,b){if(a.m){var c=a.m;a.m=null;a.C.disconnect();var d=b!=chrome.cast.N.STOPPED;fb(a.J,c,b)&&(a.A.remove(c),a.K.remove(c),b=a.D.get(c))&&(a.D.remove(c),G(b.u(),function(e){e(d)}))}};
V.prototype.onMessage=function(a){switch(a.type){case "new_session":case "update_session":a.message=hb(this.J,a.message);break;case "v2_message":var b=a.message;b&&"MEDIA_STATUS"==b.type&&b.status&&(b.status=b.status.map(this.mb))}if(b=Za(this.M,a.sequenceNumber))"error"==a.type?(b=b.g)&&b(a.message):(b=b.l)&&b(a.message);if(b=a.message)switch(a.type){case "receiver_action":Cb(this,b);break;case "new_session":this.m=b.sessionId;this.l?(this.l(b),this.l=null):this.g&&this.g.sessionListener(b);break;
case "update_session":Db(this,b);break;case "app_message":Eb(this,b);break;case "v2_message":"MEDIA_STATUS"==b.type&&b.status.forEach(this.Ja.bind(this));break;case "custom_dial_launch":Fb(this,a.sequenceNumber,b)}};
var Db=function(a,b){(a=a.D.get(b.sessionId))&&G(a.u(),function(c){c(!0)})},Cb=function(a,b){a.L.forEach(function(c){c(b.receiver,b.action)})},Eb=function(a,b){(a=a.A.get(b.sessionId))&&(a=a.get(b.namespaceName))&&G(a.u(),function(c){c(b.namespaceName,b.message)})},Gb=function(a,b,c){W(a,new O("custom_dial_launch",c,void 0,chrome.cast.timeout.sendCustomMessage),null,b)},Fb=function(a,b,c){a.g.customDialLaunchCallback?a.g.customDialLaunchCallback(c).then(function(d){Gb(a,b,d)},function(){Gb(a,b)}):
Gb(a,b)},Ab=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,xb=new Set(["PRECACHE"]),Z=new V;chrome.cast.W=function(a,b,c){Z.W(a,b,c)};x("chrome.cast.initialize",chrome.cast.W);chrome.cast.fc=function(a,b,c){var d=new V;d.W(a,b,c);return d};x("chrome.cast.initializeWithContext",chrome.cast.fc);chrome.cast.ha=function(a){Z.ha(a)};x("chrome.cast.setPageContext",chrome.cast.ha);chrome.cast.requestSession=function(a,b,c){Z.requestSession(a,b,c)};x("chrome.cast.requestSession",chrome.cast.requestSession);chrome.cast.kc=function(a){zb(new chrome.cast.media.wb(a))};x("chrome.cast.precache",chrome.cast.kc);
chrome.cast.ga=function(a){chrome.cast.Pa(Z,a)};x("chrome.cast.requestSessionById",chrome.cast.ga);chrome.cast.Pa=function(a,b){a.ga(b)};x("chrome.cast.requestSessionByIdWithContext",chrome.cast.Pa);chrome.cast.ba=function(a){Z.ba(a)};x("chrome.cast.addReceiverActionListener",chrome.cast.ba);chrome.cast.ea=function(a){Z.ea(a)};x("chrome.cast.removeReceiverActionListener",chrome.cast.ea);chrome.cast.jc=function(){};x("chrome.cast.logMessage",chrome.cast.jc);chrome.cast.Cc=function(a,b){b()};
x("chrome.cast.setCustomReceivers",chrome.cast.Cc);chrome.cast.Dc=function(a,b){b()};x("chrome.cast.setReceiverDisplayStatus",chrome.cast.Dc);chrome.cast.unescape=function(a){return-1!=a.indexOf("&")?"document"in r?La(a):Ma(a):a};x("chrome.cast.unescape",chrome.cast.unescape);chrome.cast.isAvailable=!1;x("chrome.cast.isAvailable",chrome.cast.isAvailable);chrome.cast.Va=!1;
chrome.cast.ia=function(){if(!chrome.cast.Va){chrome.cast.Va=!0;chrome.cast.isAvailable=!0;var a=window.__onGCastApiAvailable;a&&"function"==typeof a&&a(!0)}};"complete"==document.readyState?chrome.cast.ia():(window.addEventListener("load",chrome.cast.ia,!1),window.addEventListener("DOMContentLoaded",chrome.cast.ia,!1));}).call(this);
