(function(g){var window=this;'use strict';var P0=function(k){g.Os(k,"zx",Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^g.Z7()).toString(36));return k},v0=function(k,y,q){Array.isArray(q)||(q=[String(q)]); g.KlG(k.V,y,q)},z31=function(k){if(k instanceof g.uM)return k; if(typeof k.Pf=="function")return k.Pf(!1);if(g.dT(k)){var y=0,q=new g.uM;q.next=function(){for(;;){if(y>=k.length)return g.WQ;if(y in k)return g.a7(k[y++]);y++}}; return q}throw Error("Not implemented");},pN1=function(k,y,q){if(g.dT(k))g.HY(k,y,q); else for(k=z31(k);;){var N=k.next();if(N.done)break;y.call(q,N.value,void 0,k)}},r1x=function(k,y){var q=[]; pN1(y,function(N){try{var D=g.h9.prototype.N.call(this,N,!0)}catch(n){if(n=="Storage: Invalid value was encountered")return;throw n;}D===void 0?q.push(N):g.XsD(D)&&q.push(N)},k); return q},mSG=function(k,y){r1x(k,y).forEach(function(q){g.h9.prototype.remove.call(this,q)},k)},iSe=function(k){if(k.sT){if(k.sT.locationOverrideToken)return{locationOverrideToken:k.sT.locationOverrideToken}; if(k.sT.latitudeE7!=null&&k.sT.longitudeE7!=null)return{latitudeE7:k.sT.latitudeE7,longitudeE7:k.sT.longitudeE7}}return null},fc1=function(k,y){g.eB(k,y)||k.push(y)},OSb=function(k){var y=0,q; for(q in k)y++;return y},PaO=function(k,y){return g.Bl(k,y)},vS1=function(k){try{return g.FZ.JSON.parse(k)}catch(y){}k=String(k); if(/^\s*$/.test(k)?0:/^[\],:{}\s\u2028\u2029]*$/.test(k.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+k+")")}catch(y){}throw Error("Invalid JSON string: "+k);},C7=function(k){if(g.FZ.JSON)try{return g.FZ.JSON.parse(k)}catch(y){}return vS1(k)},CaB=function(k){if(k.sy&&typeof k.sy=="function")return k.sy(); if(typeof Map!=="undefined"&&k instanceof Map||typeof Set!=="undefined"&&k instanceof Set)return Array.from(k.values());if(typeof k==="string")return k.split("");if(g.dT(k)){for(var y=[],q=k.length,N=0;N1){if(q%2)throw Error("Uneven number of arguments");for(var N=0;N5&&(k=k.slice(k.length-5)); var y=g.My(n6q(),function(N){return N.loungeToken}),q=g.My(k,function(N){return N.loungeToken}); g.FR(q,function(N){return!g.eB(y,N)})&&TZE(); g.l0("yt-remote-local-screens",k,31536E3)},GX=function(k){k||(g.JF("yt-remote-session-screen-id"),g.JF("yt-remote-session-video-id")); NZe();k=Y8();g.ZT(k,S_());yzF(k)},ISN=function(){if(!L7){var k=g.J9(); k&&(L7=new g.dj(k))}},HOx=function(){ISN(); return L7?!!L7.get("yt-remote-use-staging-server"):!1},dw=function(k,y){g.iK[k]=!0; var q=g.rf();q&&q.publish.apply(q,arguments);g.iK[k]=!1},K1B=function(){},Em=function(){if(!gw){gw=new g.BA(new K1B); var k=g.FV("client_streamz_web_flush_count",-1);k!==-1&&(gw.C=k)}return gw},Azw=function(){var k=window.navigator.userAgent.match(/Chrome\/([0-9]+)/); return k?parseInt(k[1],10):0},czO=function(k){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+k)!=-1||document.currentScript.src.indexOf("&"+k)!=-1)},u9B=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},o1=function(k){k.length?aS$(k.shift(),function(){o1(k)}):xJF()},jwE=function(k){return"chrome-extension://"+k+"/cast_sender.js"},aS$=function(k,y,q){var N=document.createElement("script"); N.onerror=y;q&&(N.onload=q);g.JO(N,g.Gd(k));(document.head||document.documentElement).appendChild(N)},Xhw=function(){var k=Azw(),y=[]; if(k>1){var q=k-1;y.push("//www.gstatic.com/eureka/clank/"+k+"/cast_sender.js");y.push("//www.gstatic.com/eureka/clank/"+q+"/cast_sender.js")}return y},xJF=function(){var k=u9B(); k&&k(!1,"No cast extension found")},zae=function(){if($Je){var k=2,y=u9B(),q=function(){k--; k==0&&y&&y(!0)}; window.__onGCastApiAvailable=q;aS$("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",xJF,q)}},ph1=function(){zae(); var k=Xhw();k.push("//www.gstatic.com/eureka/clank/cast_sender.js");o1(k)},mJF=function(){zae(); var k=Xhw();k.push.apply(k,g.m(rzb.map(jwE)));k.push("//www.gstatic.com/eureka/clank/cast_sender.js");o1(k)},h_=function(k,y,q){g.S.call(this); this.Y=q!=null?(0,g.RD)(k,q):k;this.Tg=y;this.j=(0,g.RD)(this.CP,this);this.Z=!1;this.N=0;this.C=this.Dn=null;this.V=[]},R1=function(k,y,q){g.S.call(this); this.V=q!=null?k.bind(q):k;this.Tg=y;this.C=null;this.Z=!1;this.N=0;this.Dn=null},iOT=function(k){k.Dn=g.bG(function(){k.Dn=null; k.Z&&!k.N&&(k.Z=!1,iOT(k))},k.Tg); var y=k.C;k.C=null;k.V.apply(null,y)},e_=function(){},fST=function(){g.gC.call(this,"p")},OO1=function(){g.gC.call(this,"o")},v6w=function(){return P21=P21||new g.Tp},C2T=function(k){g.gC.call(this,"serverreachability",k)},W0=function(k){var y=v6w(); y.dispatchEvent(new C2T(y,k))},E6e=function(k){g.gC.call(this,"statevent",k)},ZO=function(k){var y=v6w(); y.dispatchEvent(new E6e(y,k))},bOL=function(k,y,q,N){g.gC.call(this,"timingevent",k); this.size=y;this.rtt=q;this.retries=N},l9=function(k,y){if(typeof k!=="function")throw Error("Fn must not be null and must be a function"); return g.FZ.setTimeout(function(){k()},y)},sm=function(){},J_=function(k,y,q,N){this.C=k; this.V=y;this.Bc=q;this.vc=N||1;this.UT=new g.bI(this);this.aO=45E3;this.wF=null;this.Y=!1;this.U=this.Dx=this.J=this.Wl=this.AV=this.MD=this.sT=null;this.ND=[];this.Z=null;this.B=0;this.j=this.pS=null;this.GL=-1;this.QM=!1;this.RO=0;this.hV=null;this.jH=this.fS=this.oM=this.eb=!1;this.N=new VJG},VJG=function(){this.C=null; this.Z="";this.N=!1},UJG=function(k,y,q){k.Wl=1; k.J=P0(y.clone());k.U=q;k.eb=!0;BZq(k,null)},BZq=function(k,y){k.AV=Date.now(); t_(k);k.Dx=k.J.clone();v0(k.Dx,"t",k.vc);k.B=0;var q=k.C.Wl;k.N=new VJG;k.Z=QwG(k.C,q?y:null,!k.U);k.RO>0&&(k.hV=new R1((0,g.RD)(k.yS,k,k.Z),k.RO));k.UT.listen(k.Z,"readystatechange",k.pP);y=k.wF?g.Y2(k.wF):{};k.U?(k.pS||(k.pS="POST"),y["Content-Type"]="application/x-www-form-urlencoded",k.Z.send(k.Dx,k.pS,k.U,y)):(k.pS="GET",k.Z.send(k.Dx,k.pS,null,y));W0(1)},F1b=function(k){if(!MJG(k))return g.nX(k.Z); var y=g.Tl(k.Z);if(y==="")return"";var q="",N=y.length,D=g.Nx(k.Z)==4;if(!k.N.C){if(typeof TextDecoder==="undefined")return kc(k),yl(k),"";k.N.C=new g.FZ.TextDecoder}for(var n=0;ny.length)return Y3L;y=y.slice(N,N+q);k.B=N+q;return y},t_=function(k){k.MD=Date.now()+k.aO; L1F(k,k.aO)},L1F=function(k,y){if(k.sT!=null)throw Error("WatchDog timer not null"); k.sT=l9((0,g.RD)(k.nP,k),y)},dJB=function(k){k.sT&&(g.FZ.clearTimeout(k.sT),k.sT=null)},yl=function(k){k.C.yb()||k.QM||g6B(k.C,k)},kc=function(k){dJB(k); g.n1(k.hV);k.hV=null;k.UT.removeAll();if(k.Z){var y=k.Z;k.Z=null;y.abort();y.dispose()}},swG=function(k,y){try{var q=k.C; if(q.rS!=0&&(q.Z==k||o6b(q.N,k)))if(!k.fS&&o6b(q.N,k)&&q.rS==3){try{var N=q.uu.Z.parse(y)}catch(r){N=null}if(Array.isArray(N)&&N.length==3){var D=N;if(D[0]==0)a:{if(!q.J){if(q.Z)if(q.Z.AV+3E30&&(q.RO=1.5*I);N=q;var H=k.k$();if(H){var K=g.wN(H,"X-Client-Wire-Protocol");if(K){var A=N.N;!A.Z&&(g.rx(K,"spdy")||g.rx(K,"quic")||g.rx(K,"h2"))&&(A.V=A.j,A.Z=new Set,A.N&&(eaB(A,A.N),A.N=null))}if(N.eb){var c=g.wN(H,"X-HTTP-Session-Id");c&&(N.CZ=c,g.Os(N.wF,N.eb,c))}}q.rS=3;q.j&&q.j.cR();q.LY&&(q.tb=Date.now()-k.AV);N=q;var u=k;N.mT=W1e(N,N.Wl?N.vc:null,N.Bc);if(u.fS){ZOT(N.N, u);var a=u,x=N.RO;x&&a.setTimeout(x);a.sT&&(dJB(a),t_(a));N.Z=u}else lSe(N);q.C.length>0&&nZ(q)}else n[0]!="stop"&&n[0]!="close"||Dp(q,7);else q.rS==3&&(n[0]=="stop"||n[0]=="close"?n[0]=="stop"?Dp(q,7):q.disconnect():n[0]!="noop"&&q.j&&q.j.zk(n),q.ND=0)}W0(4)}catch(r){}},JzL=function(k,y){this.Z=k; this.map=y;this.context=null},tJw=function(k){this.j=k||10; g.FZ.PerformanceNavigationTiming?(k=g.FZ.performance.getEntriesByType("navigation"),k=k.length>0&&(k[0].nextHopProtocol=="hq"||k[0].nextHopProtocol=="h2")):k=!!(g.FZ.chrome&&g.FZ.chrome.loadTimes&&g.FZ.chrome.loadTimes()&&g.FZ.chrome.loadTimes().wasFetchedViaSpdy);this.V=k?this.j:1;this.Z=null;this.V>1&&(this.Z=new Set);this.N=null;this.C=[]},kHx=function(k){return k.N?!0:k.Z?k.Z.size>=k.V:!1},Raw=function(k){return k.N?1:k.Z?k.Z.size:0},o6b=function(k,y){return k.N?k.N==y:k.Z?k.Z.has(y):!1},eaB= function(k,y){k.Z?k.Z.add(y):k.N=y},ZOT=function(k,y){k.N&&k.N==y?k.N=null:k.Z&&k.Z.has(y)&&k.Z.delete(y)},y8b=function(k){if(k.N!=null)return k.C.concat(k.N.ND); if(k.Z!=null&&k.Z.size!==0){var y=k.C;k=g.p(k.Z.values());for(var q=k.next();!q.done;q=k.next())y=y.concat(q.value.ND);return y}return g.Je(k.C)},qGB=function(k,y){var q=new sm; if(g.FZ.Image){var N=new Image;N.onload=g.W6(TA,q,"TestLoadImage: loaded",!0,y,N);N.onerror=g.W6(TA,q,"TestLoadImage: error",!1,y,N);N.onabort=g.W6(TA,q,"TestLoadImage: abort",!1,y,N);N.ontimeout=g.W6(TA,q,"TestLoadImage: timeout",!1,y,N);g.FZ.setTimeout(function(){if(N.ontimeout)N.ontimeout()},1E4); N.src=k}else y(!1)},Nfe=function(k,y){var q=new sm,N=new AbortController,D=setTimeout(function(){N.abort(); TA(q,"TestPingServer: timeout",!1,y)},1E4); fetch(k,{signal:N.signal}).then(function(n){clearTimeout(D);n.ok?TA(q,"TestPingServer: ok",!0,y):TA(q,"TestPingServer: server error",!1,y)}).catch(function(){clearTimeout(D); TA(q,"TestPingServer: error",!1,y)})},TA=function(k,y,q,N,D){try{D&&(D.onload=null,D.onerror=null,D.onabort=null,D.ontimeout=null),N(q)}catch(n){}},Duq=function(){this.Z=new e_},nvN=function(k,y,q){var N=q||""; try{bSw(k,function(D,n){var T=D;g.gT(D)&&(T=g.Qs(D));y.push(N+n+"="+encodeURIComponent(T))})}catch(D){throw y.push(N+"type="+encodeURIComponent("_badmap")),D; }},wS=function(k,y,q){return q&&q.U0?q.U0[k]||y:y},TfL=function(k){this.C=[]; this.vc=this.mT=this.wF=this.Bc=this.Z=this.CZ=this.eb=this.QM=this.B=this.GL=this.U=null;this.Rx=this.Dx=0;this.Op=wS("failFast",!1,k);this.fS=this.sT=this.J=this.Y=this.j=null;this.Jz=!0;this.MS=this.hV=-1;this.jH=this.ND=this.AV=0;this.qP=wS("baseRetryDelayMs",5E3,k);this.O4=wS("retryDelaySeedMs",1E4,k);this.hw=wS("forwardChannelMaxRetries",2,k);this.w1=wS("forwardChannelRequestTimeoutMs",2E4,k);this.cX=k&&k.x3S||void 0;this.oH=k&&k.dZx||void 0;this.cH=k&&k.LCT||!1;this.RO=void 0;this.Wl=k&&k.XOS|| !1;this.V="";this.N=new tJw(k&&k.qkF);this.uu=new Duq;this.UT=k&&k.UNH||!1;this.MD=k&&k.mNF||!1;this.UT&&this.MD&&(this.MD=!1);this.cO=k&&k.kHF||!1;k&&k.ZhS&&(this.Jz=!1);this.LY=!this.UT&&this.Jz&&k&&k.BzV||!1;this.XM=void 0;k&&k.au&&k.au>0&&(this.XM=k.au);this.Zn=void 0;this.tb=0;this.aO=!1;this.oM=this.pS=null},No=function(k){k.Z&&(wTO(k),k.Z.cancel(),k.Z=null)},ImG=function(k){No(k); k.J&&(g.FZ.clearTimeout(k.J),k.J=null);qo(k);k.N.cancel();k.Y&&(typeof k.Y==="number"&&g.FZ.clearTimeout(k.Y),k.Y=null)},nZ=function(k){kHx(k.N)||k.Y||(k.Y=!0,g.jN(k.lF,k),k.AV=0)},KCT=function(k,y){if(Raw(k.N)>=k.N.V-(k.Y?1:0))return!1; if(k.Y)return k.C=y.ND.concat(k.C),!0;if(k.rS==1||k.rS==2||k.AV>=(k.Op?0:k.hw))return!1;k.Y=l9((0,g.RD)(k.lF,k,y),HYO(k,k.AV));k.AV++;return!0},c8w=function(k,y){var q; y?q=y.Bc:q=k.Dx++;var N=k.wF.clone();g.Os(N,"SID",k.V);g.Os(N,"RID",q);g.Os(N,"AID",k.hV);Ir(k,N);k.B&&k.U&&g.Es(N,k.B,k.U);q=new J_(k,k.V,q,k.AV+1);k.B===null&&(q.wF=k.U);y&&(k.C=y.ND.concat(k.C));y=A8B(k,q,1E3);q.setTimeout(Math.round(k.w1*.5)+Math.round(k.w1*.5*Math.random()));eaB(k.N,q);UJG(q,N,y)},Ir=function(k,y){k.QM&&g.fd(k.QM,function(q,N){g.Os(y,N,q)}); k.j&&bSw({},function(q,N){g.Os(y,N,q)})},A8B=function(k,y,q){q=Math.min(k.C.length,q); var N=k.j?(0,g.RD)(k.j.F9,k.j,k):null;a:{for(var D=k.C,n=-1;;){var T=["count="+q];n==-1?q>0?(n=D[0].Z,T.push("ofs="+n)):n=0:T.push("ofs="+n);for(var I=!0,H=0;H=3)return!1; k.jH++;k.J=l9((0,g.RD)(k.Zb,k),HYO(k,k.ND));k.ND++;return!0},wTO=function(k){k.pS!=null&&(g.FZ.clearTimeout(k.pS),k.pS=null)},uuF=function(k){k.Z=new J_(k,k.V,"rpc",k.jH); k.B===null&&(k.Z.wF=k.U);k.Z.RO=0;var y=k.mT.clone();g.Os(y,"RID","rpc");g.Os(y,"SID",k.V);g.Os(y,"AID",k.hV);g.Os(y,"CI",k.fS?"0":"1");!k.fS&&k.XM&&g.Os(y,"TO",k.XM);g.Os(y,"TYPE","xmlhttp");Ir(k,y);k.B&&k.U&&g.Es(y,k.B,k.U);k.RO&&k.Z.setTimeout(k.RO);var q=k.Z;k=k.vc;q.Wl=1;q.J=P0(y.clone());q.U=null;q.eb=!0;BZq(q,k)},qo=function(k){k.sT!=null&&(g.FZ.clearTimeout(k.sT),k.sT=null)},g6B=function(k,y){var q=null; if(k.Z==y){qo(k);wTO(k);k.Z=null;var N=2}else if(o6b(k.N,y))q=y.ND,ZOT(k.N,y),N=1;else return;if(k.rS!=0)if(y.Y)if(N==1){q=y.U?y.U.length:0;y=Date.now()-y.AV;var D=k.AV;N=v6w();N.dispatchEvent(new bOL(N,q,y,D));nZ(k)}else lSe(k);else{var n=y.GL;D=y.getLastError();if(D==3||D==0&&n>0||!(N==1&&KCT(k,y)||N==2&&hab(k)))switch(q&&q.length>0&&(y=k.N,y.C=y.C.concat(q)),D){case 1:Dp(k,5);break;case 4:Dp(k,10);break;case 3:Dp(k,6);break;default:Dp(k,2)}}},HYO=function(k,y){var q=k.qP+Math.floor(Math.random()* k.O4); k.isActive()||(q*=2);return q*y},Dp=function(k,y){if(y==2){var q=(0,g.RD)(k.iXS,k),N=k.oH,D=!N; N=new g.Xm(N||"//www.google.com/images/cleardot.gif");g.FZ.location&&g.FZ.location.protocol=="http"||g.$1(N,"https");P0(N);D?qGB(N.toString(),q):Nfe(N.toString(),q)}else ZO(2);k.rS=0;k.j&&k.j.Nv(y);amx(k);ImG(k)},amx=function(k){k.rS=0; k.oM=[];if(k.j){var y=y8b(k.N);if(y.length!=0||k.C.length!=0)g.te(k.oM,y),g.te(k.oM,k.C),k.N.C.length=0,g.Je(k.C),k.C.length=0;k.j.sS()}},xuG=function(k){if(k.rS==0)return k.oM; var y=[];g.te(y,y8b(k.N));g.te(y,k.C);return y},W1e=function(k,y,q){var N=g.Pa(q); N.Z!=""?(y&&g.zY(N,y+"."+N.Z),g.pC(N,N.C)):(N=g.FZ.location,N=Vm1(N.protocol,y?y+"."+N.hostname:N.hostname,+N.port,q));y=k.eb;q=k.CZ;y&&q&&g.Os(N,y,q);g.Os(N,"VER",k.uF);Ir(k,N);return N},QwG=function(k,y,q){if(y&&!k.Wl)throw Error("Can't create secondary domain capable XhrIo object."); y=k.cH&&!k.cX?new g.ko(new g.uI({Dj:q})):new g.ko(k.cX);y.B=k.Wl;return y},j8N=function(){},XTN=function(){},KZ=function(k,y){g.Tp.call(this); this.Z=new TfL(y);this.j=k;this.N=y&&y.Pww||null;k=y&&y.Rvl||null;y&&y.YkS&&(k?k["X-Client-Protocol"]="webchannel":k={"X-Client-Protocol":"webchannel"});this.Z.U=k;k=y&&y.ANO||null;y&&y.NI&&(k?k["X-WebChannel-Content-Type"]=y.NI:k={"X-WebChannel-Content-Type":y.NI});y&&y.hg&&(k?k["X-WebChannel-Client-Profile"]=y.hg:k={"X-WebChannel-Client-Profile":y.hg});this.Z.GL=k;(k=y&&y.EVS)&&!g.p1(k)&&(this.Z.B=k);this.Y=y&&y.XOS||!1;this.V=y&&y.n2T||!1;(y=y&&y.LW)&&!g.p1(y)&&(this.Z.eb=y,g.VR(this.N,y)&&(k= this.N,y in k&&delete k[y]));this.C=new Hd(this)},$uq=function(k){fST.call(this); k.__headers__&&(this.headers=k.__headers__,this.statusCode=k.__status__,delete k.__headers__,delete k.__status__);var y=k.__sm__;y?this.data=(this.Z=g.Cd(y))?g.MI(y,this.Z):y:this.data=k},zFe=function(k){OO1.call(this); this.status=1;this.errorCode=k},Hd=function(k){this.Z=k},pTq=function(k,y){this.N=k; this.Z=y},r81=function(k){return xuG(k.Z).map(function(y){var q=k.N; y=y.map;"__data__"in y?(y=y.__data__,q=q.V?vS1(y):y):q=y;return q})},AQ=function(k,y){if(typeof k!=="function")throw Error("Fn must not be null and must be a function"); return g.FZ.setTimeout(function(){k()},y)},uY=function(k){cd.dispatchEvent(new muL(cd,k))},muL=function(k){g.gC.call(this,"statevent",k)},ar=function(k,y,q,N){this.Z=k; this.V=y;this.B=q;this.Y=N||1;this.N=45E3;this.C=new g.bI(this);this.j=new g.EC;this.j.setInterval(250)},fmO=function(k,y,q){k.YO=1; k.tZ=P0(y.clone());k.P2=q;k.eb=!0;iYg(k,null)},OYE=function(k,y,q,N,D){k.YO=1; k.tZ=P0(y.clone());k.P2=null;k.eb=q;D&&(k.C9=!1);iYg(k,N)},iYg=function(k,y){k.wE=Date.now(); PKN(k);k.WP=k.tZ.clone();v0(k.WP,"t",k.Y);k.qH=0;k.z2=k.Z.wq(k.Z.kI()?y:null);k.VO>0&&(k.Gi=new R1((0,g.RD)(k.o5,k,k.z2),k.VO));k.C.listen(k.z2,"readystatechange",k.t8);y=k.mU?g.Y2(k.mU):{};k.P2?(k.vP="POST",y["Content-Type"]="application/x-www-form-urlencoded",k.z2.send(k.WP,k.vP,k.P2,y)):(k.vP="GET",k.C9&&!g.q3&&(y.Connection="close"),k.z2.send(k.WP,k.vP,null,y));k.Z.fN(1)},EvL=function(k,y){var q=k.qH,N=y.indexOf("\n",q); if(N==-1)return vve;q=Number(y.substring(q,N));if(isNaN(q))return CKB;N+=1;if(N+q>y.length)return vve;y=y.slice(N,N+q);k.qH=N+q;return y},PKN=function(k){k.j2=Date.now()+k.N; bYx(k,k.N)},bYx=function(k,y){if(k.Cy!=null)throw Error("WatchDog timer not null"); k.Cy=AQ((0,g.RD)(k.H1,k),y)},ViF=function(k){k.Cy&&(g.FZ.clearTimeout(k.Cy),k.Cy=null)},BfN=function(k){k.Z.yb()||k.Vh||k.Z.QO(k)},xc=function(k){ViF(k); g.n1(k.Gi);k.Gi=null;k.j.stop();k.C.removeAll();if(k.z2){var y=k.z2;k.z2=null;y.abort();y.dispose()}k.zF&&(k.zF=null)},Uuq=function(k,y){try{k.Z.ES(k,y),k.Z.fN(4)}catch(q){}},MiG=function(k,y,q,N,D){if(N==0)q(!1); else{var n=D||0;N--;Q8O(k,y,function(T){T?q(!0):g.FZ.setTimeout(function(){MiG(k,y,q,N,n)},n)})}},Q8O=function(k,y,q){var N=new Image; N.onload=function(){try{jh(N),q(!0)}catch(D){}}; N.onerror=function(){try{jh(N),q(!1)}catch(D){}}; N.onabort=function(){try{jh(N),q(!1)}catch(D){}}; N.ontimeout=function(){try{jh(N),q(!1)}catch(D){}}; g.FZ.setTimeout(function(){if(N.ontimeout)N.ontimeout()},y); N.src=k},jh=function(k){k.onload=null; k.onerror=null;k.onabort=null;k.ontimeout=null},FCG=function(k){this.Z=k; this.N=new e_},YGN=function(k){var y=XX(k.Z,k.Be,"/mail/images/cleardot.gif"); P0(y);MiG(y.toString(),5E3,(0,g.RD)(k.U3,k),3,2E3);k.fN(1)},SGT=function(k){var y=k.Z.Y; y!=null?(uY(5),y?(uY(11),$c(k.Z,k,!1)):(uY(12),$c(k.Z,k,!0))):(k.Sr=new ar(k),k.Sr.mU=k.Id,y=k.Z,y=XX(y,y.kI()?k.OJ:null,k.bA),uY(5),v0(y,"TYPE","xmlhttp"),OYE(k.Sr,y,!1,k.OJ,!1))},GH1=function(k,y,q){this.Z=1; this.N=[];this.C=[];this.j=new e_;this.U=k||null;this.Y=y!=null?y:null;this.J=q||!1},LCb=function(k,y){this.Z=k; this.map=y;this.context=null},duO=function(k,y,q,N){g.gC.call(this,"timingevent",k); this.size=y;this.rtt=q;this.retries=N},gvb=function(k){g.gC.call(this,"serverreachability",k)},hFE=function(k){k.Ve(1,0); k.iS=XX(k,null,k.G6);ov1(k)},RF$=function(k){k.Pp&&(k.Pp.abort(),k.Pp=null); k.zD&&(k.zD.cancel(),k.zD=null);k.Kh&&(g.FZ.clearTimeout(k.Kh),k.Kh=null);zA(k);k.oA&&(k.oA.cancel(),k.oA=null);k.GX&&(g.FZ.clearTimeout(k.GX),k.GX=null)},eFB=function(k,y){if(k.Z==0)throw Error("Invalid operation: sending map when state is closed"); k.N.push(new LCb(k.jX++,y));k.Z!=2&&k.Z!=3||ov1(k)},WCT=function(k){var y=0; k.zD&&y++;k.oA&&y++;return y},ov1=function(k){k.oA||k.GX||(k.GX=AQ((0,g.RD)(k.eF,k),0),k.eD=0)},s8x=function(k,y){if(k.Z==1){if(!y){k.Qh=Math.floor(Math.random()*1E5); y=k.Qh++;var q=new ar(k,"",y);q.mU=k.n6;var N=ZYL(k),D=k.iS.clone();g.Os(D,"RID",y);g.Os(D,"CVER","1");pZ(k,D);fmO(q,D,N);k.oA=q;k.Z=2}}else k.Z==3&&(y?lmB(k,y):k.N.length==0||k.oA||lmB(k))},lmB=function(k,y){if(y)if(k.Ty>6){k.N=k.C.concat(k.N); k.C.length=0;var q=k.Qh-1;y=ZYL(k)}else q=y.B,y=y.P2;else q=k.Qh++,y=ZYL(k);var N=k.iS.clone();g.Os(N,"SID",k.V);g.Os(N,"RID",q);g.Os(N,"AID",k.Fr);pZ(k,N);q=new ar(k,k.V,q,k.eD+1);q.mU=k.n6;q.setTimeout(1E4+Math.round(1E4*Math.random()));k.oA=q;fmO(q,N,y)},pZ=function(k,y){k.q2&&(k=k.q2.jF())&&g.fd(k,function(q,N){g.Os(y,N,q)})},ZYL=function(k){var y=Math.min(k.N.length,1E3),q=["count="+y]; if(k.Ty>6&&y>0){var N=k.N[0].Z;q.push("ofs="+N)}else N=0;for(var D={},n=0;n=3)return!1; k.B++;k.Kh=AQ((0,g.RD)(k.pp,k),tiw(k,k.py));k.py++;return!0},$c=function(k,y,q){k.Lf=k.Y==null?q:!k.Y; k.p6=y.Lh;k.J||hFE(k)},zA=function(k){k.SQ!=null&&(g.FZ.clearTimeout(k.SQ),k.SQ=null)},tiw=function(k,y){var q=5E3+Math.floor(Math.random()*1E4); k.isActive()||(q*=2);return q*y},rS=function(k,y){if(y==2||y==9){var q=null; k.q2&&(q=null);var N=(0,g.RD)(k.OXj,k);q||(q=new g.Xm("//www.google.com/images/cleardot.gif"),P0(q));Q8O(q.toString(),1E4,N)}else uY(2);yRT(k,y)},yRT=function(k,y){k.Z=0; k.q2&&k.q2.Fb(y);qRx(k);RF$(k)},qRx=function(k){k.Z=0; k.p6=-1;if(k.q2)if(k.C.length==0&&k.N.length==0)k.q2.WF();else{var y=g.Je(k.C),q=g.Je(k.N);k.C.length=0;k.N.length=0;k.q2.WF(y,q)}},XX=function(k,y,q){var N=g.Pa(q); if(N.Z!="")y&&g.zY(N,y+"."+N.Z),g.pC(N,N.C);else{var D=window.location;N=Vm1(D.protocol,y?y+"."+D.hostname:D.hostname,+D.port,q)}k.I9&&g.fd(k.I9,function(n,T){g.Os(N,T,n)}); g.Os(N,"VER",k.Ty);pZ(k,N);return N},Ngb=function(){},DAT=function(){this.Z=[]; this.N=[]},nhB=function(k){g.gC.call(this,"channelMessage"); this.message=k},Tge=function(k){g.gC.call(this,"channelError"); this.error=k},wj$=function(k,y){this.action=k; this.params=y||{}},mE=function(k,y){g.S.call(this); this.Z=new g.c3(this.HZH,0,this);g.G(this,this.Z);this.Tg=5E3;this.N=0;if(typeof k==="function")y&&(k=(0,g.RD)(k,y));else if(k&&typeof k.handleEvent==="function")k=(0,g.RD)(k.handleEvent,k);else throw Error("Invalid listener argument");this.C=k},IFb=function(k,y,q,N,D){q=q===void 0?!1:q; N=N===void 0?function(){return""}:N; D=D===void 0?!1:D;this.AV=k;this.B=y;this.C=new g.LD;this.N=new mE(this.dPw,this);this.Z=null;this.sT=!1;this.Y=null;this.U="";this.J=this.j=0;this.V=[];this.Wl=q;this.ND=N;this.fS=D;this.wF=new Bbq;this.pS=new USq;this.QM=new Qm$;this.eb=new MmL;this.hV=new FcF;this.Dx=new YHG},HlL=function(k){if(k.Z){var y=k.ND(),q=k.Z.n6||{}; y?q["x-youtube-lounge-xsrf-token"]=y:delete q["x-youtube-lounge-xsrf-token"];k.Z.n6=q}},iY=function(k){this.scheme="https"; this.port=this.domain="";this.Z="/api/lounge";this.N=!0;k=k||document.location.href;var y=Number(g.gP(4,k))||"";y&&(this.port=":"+y);this.domain=g.ok(k)||"";k=g.Pg();k.search("MSIE")>=0&&(k=k.match(/MSIE ([\d.]+)/)[1],g.Ob(k,"10.0")<0&&(this.N=!1))},fZ=function(k,y){var q=k.Z; k.N&&(q=k.scheme+"://"+k.domain+k.port+k.Z);return g.lG(q+y,{})},Kf$=function(k,y){g.Tp.call(this); var q=this;this.oe=k();this.oe.subscribe("handlerOpened",this.IE,this);this.oe.subscribe("handlerClosed",this.onClosed,this);this.oe.subscribe("handlerError",function(N,D){q.onError(D)}); this.oe.subscribe("handlerMessage",this.onMessage,this);this.Z=y},AR$=function(k,y,q){var N=this; q=q===void 0?function(){return""}:q; var D=D===void 0?new XTN:D;var n=n===void 0?new g.LD:n;this.pathPrefix=k;this.Z=y;this.AV=q;this.j=n;this.J=null;this.U=this.B=0;this.channel=null;this.Y=0;this.C=new mE(function(){N.C.isActive();var T;((T=N.channel)==null?void 0:Raw((new pTq(T,T.Z)).Z.N))===0&&N.connect(N.J,N.B)}); this.V={};this.N={};this.sT=!1;this.logger=null;this.ND=[];this.OG=void 0;this.wF=new Bbq;this.pS=new USq;this.QM=new Qm$;this.eb=new MmL},cRF=function(k){g.tu(k.channel,"m",function(){k.Y=3; k.C.reset();k.J=null;k.B=0;for(var y=g.p(k.ND),q=y.next();!q.done;q=y.next())q=q.value,k.channel&&k.channel.send(q);k.ND=[];k.publish("webChannelOpened");k.wF.Z("WEB_CHANNEL")}); g.tu(k.channel,"n",function(){k.Y=0;k.C.isActive()||k.publish("webChannelClosed");var y,q=(y=k.channel)==null?void 0:r81(new pTq(y,y.Z));q&&(k.ND=[].concat(g.m(q)));k.pS.Z("WEB_CHANNEL")}); g.tu(k.channel,"p",function(y){var q=y.data;q[0]==="gracefulReconnect"?(k.C.start(),k.channel&&k.channel.close()):k.publish("webChannelMessage",new wj$(q[0],q[1]));k.OG=y.statusCode;k.QM.Z("WEB_CHANNEL")}); g.tu(k.channel,"o",function(){k.OG===401||k.C.start();k.publish("webChannelError");k.eb.Z("WEB_CHANNEL")})},u4F=function(k){var y=k.AV(); y?k.V["x-youtube-lounge-xsrf-token"]=y:delete k.V["x-youtube-lounge-xsrf-token"]},aFF=function(k){g.Tp.call(this); this.Z=k();this.Z.subscribe("webChannelOpened",this.Qe,this);this.Z.subscribe("webChannelClosed",this.onClosed,this);this.Z.subscribe("webChannelError",this.onError,this);this.Z.subscribe("webChannelMessage",this.onMessage,this)},xAe=function(k,y,q,N,D){function n(){return new IFb(fZ(k,"/bc"),y,!1,q,N)} q=q===void 0?function(){return""}:q; return g.M5("enable_mdx_web_channel_desktop")?new aFF(function(){return new AR$(fZ(k,"/wc"),y,q)}):new Kf$(n,D)},zrq=function(){var k=jWw; XjO();O9.push(k);$A1()},Pd=function(k,y){XjO(); var q=pjg(k,String(y));O9.length==0?rRe(q):($A1(),g.HY(O9,function(N){N(q)}))},vd=function(k){Pd("CP",k)},XjO=function(){O9||(O9=g.S6("yt.mdx.remote.debug.handlers_")||[],g.YU("yt.mdx.remote.debug.handlers_",O9))},rRe=function(k){var y=(CZ+1)%50; CZ=y;E9[y]=k;bY||(bY=y==49)},$A1=function(){var k=O9; if(E9[0]){var y=bY?CZ:-1,q={};do q={rH:void 0},y=(y+1)%50,q.rH=E9[y],g.HY(k,function(N){return function(D){D(N.rH)}}(q)); while(y!=CZ);E9=Array(50);CZ=-1;bY=!1}},pjg=function(k,y){var q=(Date.now()-mAw)/1E3; q.toFixed&&(q=q.toFixed(3));var N=[];N.push("[",q+"s","] ");N.push("[","yt.mdx.remote","] ");N.push(k+": "+y,"\n");return N.join("")},Vl=function(k){g.fr.call(this); this.Y=k;this.screens=[]},ile=function(k,y){var q=k.get(y.uuid)||k.get(y.id); if(q)return k=q.name,q.id=y.id||q.id,q.name=y.name,q.token=y.token,q.uuid=y.uuid||q.uuid,q.name!=k;k.screens.push(y);return!0},fFG=function(k,y){var q=k.screens.length!=y.length; k.screens=g.$C(k.screens,function(n){return!!J1g(y,n)}); for(var N=y.length,D=0;D0&&k.V0&&hQ(k,q)},function(y){k.j=function(){}; k.Yi(y)})},kUe=function(k){var y={}; y.pairingCode=k.pS;y.theme=k.Wl;HOx()&&(y.env_useStageMdx=1);return g.ZJ(y)},yle=function(k){return new Promise(function(y){k.pS=lcx(); if(k.wF){var q=new chrome.cast.DialLaunchResponse(!0,kUe(k));y(q);tce(k)}else k.sT=function(){g.B1(k.U);k.sT=function(){}; k.U=NaN;var N=new chrome.cast.DialLaunchResponse(!0,kUe(k));y(N);tce(k)},k.U=g.bW(function(){k.sT()},100)})},NqL=function(k,y,q){k.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(y)); var N=new Um(y);return(new Promise(function(D){qoN(k,N,function(n){n?(k.ND=!0,Yc(k.V,N),GA(k,N),hQ(k,q)):g.c1(Error("DialSession, RemoteScreen from screenData: "+JSON.stringify(y)+" is not online."));D(n)},5)})).then(function(D){return D?new chrome.cast.DialLaunchResponse(!1):yle(k)})},DMx=function(k,y){var q=k.J.receiver.label,N=k.N.friendlyName; return(new Promise(function(D){FfL(k.V,q,y,N,function(n){n&&n.token&&GA(k,n);D(n)},function(n){LZ(k,"Failed to get DIAL screen: "+n); D(null)})})).then(function(D){return D&&D.token?new chrome.cast.DialLaunchResponse(!1):yle(k)})},qoN=function(k,y,q,N){g.B1(k.Y); k.Y=0;SR1(k.V,y,function(D){D||N<0?q(D):k.Y=g.bW(function(){qoN(k,y,q,N-1)},300)})},hQ=function(k,y){k.info("getDialAppInfoWithTimeout_ "+y); or(k)&&(g.B1(k.B),k.B=0,y==0?nlT(k):k.B=g.bW(function(){nlT(k)},y))},nlT=function(k){or(k)&&k.C.getDialAppInfo(function(y){k.info("getDialAppInfo dialLaunchData: "+JSON.stringify(y)); y=y.extraData||{};var q=null;if(y.loungeToken){var N;((N=k.Z)==null?void 0:N.token)==y.loungeToken&&(q="staleLoungeToken")}else q="missingLoungeToken";q?(k.AV=q,hQ(k,3E4)):(k.ND=!1,k.AV="unknown",ghg(k,y.loungeToken),hQ(k,y.loungeTokenRefreshIntervalMs))},function(y){k.info("getDialAppInfo error: "+y); k.AV="noLoungeTokenResponse";hQ(k,3E4)})},Tqg=function(k){g.B1(k.Y); k.Y=0;g.B1(k.B);k.B=0;k.j();k.j=function(){}; g.B1(k.U)},Rr=function(k,y){Sh.call(this,k,y,"ManualSession"); this.C=g.bW((0,g.RD)(this.z7,this,null),150)},eh=function(k,y){g.fr.call(this); this.config_=y;this.N=k;this.J=y.appId||"233637DE";this.V=y.theme||"cl";this.U=y.disableCastApi||!1;this.Y=y.forceMirroring||!1;this.Z=null;this.B=!1;this.C=[];this.j=(0,g.RD)(this.WTH,this)},wox=function(k,y){return y?g.he(k.C,function(q){return Qg(y,q.label)},k):null},Wd=function(k){Pd("Controller",k)},jWw=function(k){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(k)},Zp=function(k){return k.B||!!k.C.length||!!k.Z},lY=function(k,y,q){y!=k.Z&&(g.n1(k.Z),(k.Z=y)?(q?k.publish("yt-remote-cast2-receiver-resumed", y.N):k.publish("yt-remote-cast2-receiver-selected",y.N),y.subscribe("sessionScreen",(0,g.RD)(k.Z$,k,y)),y.subscribe("sessionFailed",function(){return IPN(k,y)}),y.Z?k.publish("yt-remote-cast2-session-change",y.Z):q&&k.Z.z7(null)):k.publish("yt-remote-cast2-session-change",null))},IPN=function(k,y){k.Z==y&&k.publish("yt-remote-cast2-session-failed")},HrE=function(k){var y=k.N.wl(),q=k.Z&&k.Z.N; k=g.My(y,function(N){q&&Qg(N,q.label)&&(q=null);var D=N.uuid?N.uuid:N.id,n=wox(this,N);n?(n.label=D,n.friendlyName=N.name):(n=new chrome.cast.Receiver(D,N.name),n.receiverType=chrome.cast.ReceiverType.CUSTOM);return n},k); q&&(q.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(q=new chrome.cast.Receiver(q.label,q.friendlyName),q.receiverType=chrome.cast.ReceiverType.CUSTOM),k.push(q));return k},jtG=function(k,y,q,N){N.disableCastApi?s9("Cannot initialize because disabled by Mdx config."):KOg()?Alg(y,N)&&(clE(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?ujO(k,q):(window.__onGCastApiAvailable=function(D,n){D?ujO(k,q):(JQ("Failed to load cast API: "+n),aPe(!1),clE(!1),g.JF("yt-remote-cast-available"),g.JF("yt-remote-cast-receiver"), xMB(),q(!1))},N.loadCastApiSetupScript?g.CY("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?Azw()>=60&&ph1():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?xJF():Azw()>=89?mJF():(zae(),o1(rzb.map(jwE))))):s9("Cannot initialize because not running Chrome")},xMB=function(){s9("dispose"); var k=tQ();k&&k.dispose();g.YU("yt.mdx.remote.cloudview.instance_",null);XoF(!1);g.PT($MF);$MF.length=0},k0=function(){return!!g.sq("yt-remote-cast-installed")},zgN=function(){var k=g.sq("yt-remote-cast-receiver"); return k?k.friendlyName:null},poG=function(){s9("clearCurrentReceiver"); g.JF("yt-remote-cast-receiver")},rlN=function(){return k0()?tQ()?tQ().getCastSession():(JQ("getCastSelector: Cast is not initialized."),null):(JQ("getCastSelector: Cast API is not installed!"),null)},mMe=function(){k0()?tQ()?yD()?(s9("Requesting cast selector."),tQ().requestSession()):(s9("Wait for cast API to be ready to request the session."),$MF.push(g.OG("yt-remote-cast2-api-ready",mMe))):JQ("requestCastSelector: Cast is not initialized."):JQ("requestCastSelector: Cast API is not installed!")}, q1=function(k,y){yD()?tQ().setConnectedScreenStatus(k,y):JQ("setConnectedScreenStatus called before ready.")},KOg=function(){var k=g.Pg().search(/ (CrMo|Chrome|CriOS)\//)>=0; return g.Zl||k},irB=function(k,y){tQ().init(k,y)},Alg=function(k,y){var q=!1; tQ()||(k=new eh(k,y),k.subscribe("yt-remote-cast2-availability-change",function(N){g.l0("yt-remote-cast-available",N);dw("yt-remote-cast2-availability-change",N)}),k.subscribe("yt-remote-cast2-receiver-selected",function(N){s9("onReceiverSelected: "+N.friendlyName); g.l0("yt-remote-cast-receiver",N);dw("yt-remote-cast2-receiver-selected",N)}),k.subscribe("yt-remote-cast2-receiver-resumed",function(N){s9("onReceiverResumed: "+N.friendlyName); g.l0("yt-remote-cast-receiver",N);dw("yt-remote-cast2-receiver-resumed",N)}),k.subscribe("yt-remote-cast2-session-change",function(N){s9("onSessionChange: "+M4(N)); N||g.JF("yt-remote-cast-receiver");dw("yt-remote-cast2-session-change",N)}),g.YU("yt.mdx.remote.cloudview.instance_",k),q=!0); s9("cloudview.createSingleton_: "+q);return q},tQ=function(){return g.S6("yt.mdx.remote.cloudview.instance_")},ujO=function(k,y){aPe(!0); clE(!1);irB(k,function(q){q?(XoF(!0),g.vT("yt-remote-cast2-api-ready")):(JQ("Failed to initialize cast API."),aPe(!1),g.JF("yt-remote-cast-available"),g.JF("yt-remote-cast-receiver"),xMB());y(q)})},s9=function(k){Pd("cloudview",k)},JQ=function(k){Pd("cloudview",k)},aPe=function(k){s9("setCastInstalled_ "+k); g.l0("yt-remote-cast-installed",k)},yD=function(){return!!g.S6("yt.mdx.remote.cloudview.apiReady_")},XoF=function(k){s9("setApiReady_ "+k); g.YU("yt.mdx.remote.cloudview.apiReady_",k)},clE=function(k){g.YU("yt.mdx.remote.cloudview.initializing_",k)},N1=function(k){this.index=-1; this.videoId=this.listId="";this.volume=this.playerState=-1;this.muted=!1;this.audioTrackId=null;this.Y=this.B=0;this.trackData=null;this.oC=this.PD=!1;this.J=this.j=this.Z=this.V=0;this.C=NaN;this.N=!1;this.reset(k)},fP$=function(k){k.audioTrackId=null; k.trackData=null;k.playerState=-1;k.PD=!1;k.oC=!1;k.B=0;k.Y=g.Z7();k.V=0;k.Z=0;k.j=0;k.J=0;k.C=NaN;k.N=!1},D8=function(k){return k.isPlaying()?(g.Z7()-k.Y)/1E3:0},n5=function(k,y){k.B=y; k.Y=g.Z7()},T$=function(k){switch(k.playerState){case 1:case 1081:return(g.Z7()-k.Y)/1E3+k.B; case -1E3:return 0}return k.B},wD=function(k,y,q){var N=k.videoId; k.videoId=y;k.index=q;y!=N&&fP$(k)},OrO=function(k){var y={}; y.index=k.index;y.listId=k.listId;y.videoId=k.videoId;y.playerState=k.playerState;y.volume=k.volume;y.muted=k.muted;y.audioTrackId=k.audioTrackId;y.trackData=g.SQ(k.trackData);y.hasPrevious=k.PD;y.hasNext=k.oC;y.playerTime=k.B;y.playerTimeAt=k.Y;y.seekableStart=k.V;y.seekableEnd=k.Z;y.duration=k.j;y.loadedTime=k.J;y.liveIngestionTime=k.C;return y},HV=function(k,y){g.fr.call(this); var q=this;this.C=0;this.V=k;this.Y=[];this.j=new DAT;this.N=this.Z=null;this.U=(0,g.RD)(this.tHH,this);this.B=(0,g.RD)(this.ea,this);this.J=(0,g.RD)(this.HYw,this);this.sT=(0,g.RD)(this.jMH,this);var N=0;k?(N=k.getProxyState(),N!=3&&(k.subscribe("proxyStateChange",this.Ad,this),PJ$(this))):N=3;N!=0&&(y?this.Ad(N):g.bW(function(){q.Ad(N)},0)); (k=rlN())&&Ip(this,k);this.subscribe("yt-remote-cast2-session-change",this.sT)},K5=function(k){return new N1(k.V.getPlayerContextData())},PJ$=function(k){g.HY("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(y){this.Y.push(this.V.subscribe(y,g.W6(this.XZw,y),this))},k)},vlx=function(k){g.HY(k.Y,function(y){this.V.unsubscribeByKey(y)},k); k.Y.length=0},Aq=function(k){return k.getState()==1},cV=function(k,y){var q=k.j; q.Z.length+q.N.length<50&&k.j.enqueue(y)},CJe=function(k,y,q){var N=K5(k); n5(N,q);N.playerState!=-1E3&&(N.playerState=y);ur(k,N)},ap=function(k,y,q){k.V.sendMessage(y,q)},ur=function(k,y){vlx(k); k.V.setPlayerContextData(OrO(y));PJ$(k)},Ip=function(k,y){k.N&&(k.N.removeUpdateListener(k.U),k.N.removeMediaListener(k.B),k.ea(null)); k.N=y;k.N&&(vd("Setting cast session: "+k.N.sessionId),k.N.addUpdateListener(k.U),k.N.addMediaListener(k.B),k.N.media.length&&k.ea(k.N.media[0]))},Ele=function(k){var y=k.Z.media,q=k.Z.customData; if(y&&q){var N=K5(k);y.contentId!=N.videoId&&vd("Cast changing video to: "+y.contentId);N.videoId=y.contentId;N.playerState=q.playerState;n5(N,k.Z.getEstimatedTime());ur(k,N)}else vd("No cast media video. Ignoring state update.")},x0=function(k,y,q){return(0,g.RD)(function(N){this.IH("Failed to "+y+" with cast v2 channel. Error code: "+N.code); N.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.IH("Retrying "+y+" using MDx browser channel."),ap(this,y,q))},k)},$0=function(k,y,q,N){N=N===void 0?!1:N; g.fr.call(this);var D=this;this.Y=NaN;this.pS=!1;this.U=this.J=this.ND=this.AV=NaN;this.sT=[];this.j=this.B=this.V=this.Z=this.N=null;this.wF=k;this.QM=N;this.sT.push(g.Sl(window,"beforeunload",function(){D.ZH(2)})); this.C=[];this.Z=new N1;this.Wl=y.id;this.eb=y.idType;this.N=xAe(this.wF,q,this.Xb,this.eb=="shortLived",this.Wl);this.N.listen("channelOpened",function(){br$(D)}); this.N.listen("channelClosed",function(){jp("Channel closed");isNaN(D.Y)?GX(!0):GX();D.dispose()}); this.N.listen("channelError",function(n){GX();isNaN(D.lc())?(n==1&&D.eb=="shortLived"&&D.publish("browserChannelAuthError",n),jp("Channel error: "+n+" without reconnection"),D.dispose()):(D.pS=!0,jp("Channel error: "+n+" with reconnection in "+D.lc()+" ms"),XQ(D,2))}); this.N.listen("channelMessage",function(n){V4G(D,n)}); this.N.ZI(y.token);this.subscribe("remoteQueueChange",function(){var n=D.Z.videoId;g.tF()&&g.l0("yt-remote-session-video-id",n)})},Bqx=function(k){return g.he(k.C,function(y){return y.type=="LOUNGE_SCREEN"})},jp=function(k){Pd("conn",k)},XQ=function(k,y){k.publish("proxyStateChange",y)},UMb=function(k){k.Y=g.bW(function(){jp("Connecting timeout"); k.ZH(1)},2E4)},QtF=function(k){g.B1(k.Y); k.Y=NaN},M4w=function(k){g.B1(k.AV); k.AV=NaN},YoL=function(k){FO1(k); k.ND=g.bW(function(){z$(k,"getNowPlaying")},2E4)},FO1=function(k){g.B1(k.ND); k.ND=NaN},br$=function(k){jp("Channel opened"); k.pS&&(k.pS=!1,M4w(k),k.AV=g.bW(function(){jp("Timing out waiting for a screen.");k.ZH(1)},15E3))},GUT=function(k,y){var q=null; if(y){var N=Bqx(k);N&&(q={clientName:N.clientName,deviceMake:N.brand,deviceModel:N.model,osVersion:N.osVersion})}g.YU("yt.mdx.remote.remoteClient_",q);y&&(QtF(k),M4w(k));q=k.N.Jk()&&isNaN(k.Y);y==q?y&&(XQ(k,1),z$(k,"getSubtitlesTrack")):y?(k.J6()&&k.Z.reset(),XQ(k,1),z$(k,"getNowPlaying"),Sow(k)):k.ZH(1)},LOB=function(k,y){var q=y.params.videoId; delete y.params.videoId;q==k.Z.videoId&&(g.QR(y.params)?k.Z.trackData=null:k.Z.trackData=y.params,k.publish("remotePlayerChange"))},dM1=function(k,y,q){var N=y.params.videoId||y.params.video_id,D=parseInt(y.params.currentIndex,10); k.Z.listId=y.params.listId||k.Z.listId;wD(k.Z,N,D);k.publish("remoteQueueChange",q)},olb=function(k,y){y.params=y.params||{}; dM1(k,y,"NOW_PLAYING_MAY_CHANGE");glq(k,y);k.publish("autoplayDismissed")},glq=function(k,y){var q=parseInt(y.params.currentTime||y.params.current_time,10); n5(k.Z,isNaN(q)?0:q);q=parseInt(y.params.state,10);q=isNaN(q)?-1:q;q==-1&&k.Z.playerState==-1E3&&(q=-1E3);k.Z.playerState=q;q=Number(y.params.loadedTime);k.Z.J=isNaN(q)?0:q;k.Z.bb(Number(y.params.duration));q=k.Z;var N=Number(y.params.liveIngestionTime);q.C=N;q.N=isNaN(N)?!1:!0;q=k.Z;N=Number(y.params.seekableStartTime);y=Number(y.params.seekableEndTime);q.V=isNaN(N)?0:N;q.Z=isNaN(y)?0:y;k.Z.playerState==1?YoL(k):FO1(k);k.publish("remotePlayerChange")},hgw=function(k,y){if(k.Z.playerState!=-1E3){var q= 1085; switch(parseInt(y.params.adState,10)){case 1:q=1081;break;case 2:q=1084;break;case 0:q=1083}k.Z.playerState=q;y=parseInt(y.params.currentTime,10);n5(k.Z,isNaN(y)?0:y);k.publish("remotePlayerChange")}},RgB=function(k,y){var q=y.params.muted=="true"; k.Z.volume=parseInt(y.params.volume,10);k.Z.muted=q;k.publish("remotePlayerChange")},egT=function(k,y){k.B=y.params.videoId; k.publish("nowAutoplaying",parseInt(y.params.timeout,10))},WO$=function(k,y){k.B=y.params.videoId||null; k.publish("autoplayUpNext",k.B)},Zrw=function(k,y){k.j=y.params.autoplayMode; k.publish("autoplayModeChange",k.j);k.j=="DISABLED"&&k.publish("autoplayDismissed")},lPL=function(k,y){var q=y.params.hasNext=="true"; k.Z.PD=y.params.hasPrevious=="true";k.Z.oC=q;k.publish("previousNextChange")},V4G=function(k,y){y=y.message; y.params?jp("Received: action="+y.action+", params="+g.Qs(y.params)):jp("Received: action="+y.action+" {}");switch(y.action){case "loungeStatus":y=C7(y.params.devices);k.C=g.My(y,function(N){return new gSb(N)}); y=!!g.he(k.C,function(N){return N.type=="LOUNGE_SCREEN"}); GUT(k,y);y=k.ou("mlm");k.publish("multiStateLoopEnabled",y);break;case "loungeScreenDisconnected":g.lO(k.C,function(N){return N.type=="LOUNGE_SCREEN"}); GUT(k,!1);break;case "remoteConnected":var q=new gSb(C7(y.params.device));g.he(k.C,function(N){return q?N.id==q.id:!1})||fc1(k.C,q); break;case "remoteDisconnected":q=new gSb(C7(y.params.device));g.lO(k.C,function(N){return q?N.id==q.id:!1}); break;case "gracefulDisconnect":break;case "playlistModified":dM1(k,y,"QUEUE_MODIFIED");break;case "nowPlaying":olb(k,y);break;case "onStateChange":glq(k,y);break;case "onAdStateChange":hgw(k,y);break;case "onVolumeChanged":RgB(k,y);break;case "onSubtitlesTrackChanged":LOB(k,y);break;case "nowAutoplaying":egT(k,y);break;case "autoplayDismissed":k.publish("autoplayDismissed");break;case "autoplayUpNext":WO$(k,y);break;case "onAutoplayModeChanged":Zrw(k,y);break;case "onHasPreviousNextChanged":lPL(k, y);break;case "requestAssistedSignIn":k.publish("assistedSignInRequested",y.params.authCode);break;case "onLoopModeChanged":k.publish("loopModeChange",y.params.loopMode);break;default:jp("Unrecognized action: "+y.action)}},Sow=function(k){g.B1(k.U); k.U=g.bW(function(){k.ZH(1)},864E5)},z$=function(k,y,q){q?jp("Sending: action="+y+", params="+g.Qs(q)):jp("Sending: action="+y); k.N.sendMessage(y,q)},stO=function(k){Vl.call(this,"ScreenServiceProxy"); this.Hn=k;this.Z=[];this.Z.push(this.Hn.$_s("screenChange",(0,g.RD)(this.B1,this)));this.Z.push(this.Hn.$_s("onlineScreenChange",(0,g.RD)(this.olT,this)))},quE=function(k,y){ISN(); if(!L7||!L7.get("yt-remote-disable-remote-module-for-dev")){y=g.H1("MDX_CONFIG")||y;tm$();NZe();p5||(p5=new iY(y?y.loungeApiHost:void 0),HOx()&&(p5.Z="/api/loungedev"));rD||(rD=g.S6("yt.mdx.remote.deferredProxies_")||[],g.YU("yt.mdx.remote.deferredProxies_",rD));JlL();var q=mJ();if(!q){var N=new FX(p5,y?y.disableAutomaticScreenCache||!1:!1);g.YU("yt.mdx.remote.screenService_",N);q=mJ();var D={};y&&(D={appId:y.appId,disableDial:y.disableDial,theme:y.theme,loadCastApiSetupScript:y.loadCastApiSetupScript, disableCastApi:y.disableCastApi,enableDialLoungeToken:y.enableDialLoungeToken,enableCastLoungeToken:y.enableCastLoungeToken,forceMirroring:y.forceMirroring});g.YU("yt.mdx.remote.enableConnectWithInitialState_",y?y.enableConnectWithInitialState||!1:!1);jtG(k,N,function(n){n?ir()&&q1(ir(),"YouTube TV"):N.subscribe("onlineScreenChange",function(){dw("yt-remote-receiver-availability-change")})},D)}y&&!g.S6("yt.mdx.remote.initialized_")&&(g.YU("yt.mdx.remote.initialized_",!0),f5("Initializing: "+g.Qs(y)), OF.push(g.OG("yt-remote-cast2-api-ready",function(){dw("yt-remote-api-ready")})),OF.push(g.OG("yt-remote-cast2-availability-change",function(){dw("yt-remote-receiver-availability-change")})),OF.push(g.OG("yt-remote-cast2-receiver-selected",function(){PV(null); dw("yt-remote-auto-connect","cast-selector-receiver")})),OF.push(g.OG("yt-remote-cast2-receiver-resumed",function(){dw("yt-remote-receiver-resumed","cast-selector-receiver")})),OF.push(g.OG("yt-remote-cast2-session-change",t4$)),OF.push(g.OG("yt-remote-connection-change",function(n){n?q1(ir(),"YouTube TV"):vV()||(q1(null,null),poG())})),OF.push(g.OG("yt-remote-cast2-session-failed",function(){dw("yt-remote-connection-failed")})),k=ktB(),y.isAuto&&(k.id+="#dial"),D=y.capabilities||[],g.M5("desktop_enable_autoplay")&& D.push("atp"),D.length>0&&(k.capabilities=D),k.name=y.device,k.app=y.app,(y=y.theme)&&(k.theme=y),f5(" -- with channel params: "+g.Qs(k)),k?(g.l0("yt-remote-session-app",k.app),g.l0("yt-remote-session-name",k.name)):(g.JF("yt-remote-session-app"),g.JF("yt-remote-session-name")),g.YU("yt.mdx.remote.channelParams_",k),q.start(),ir()||yEN())}},N7w=function(){var k=mJ().Hn.$_gos(); var y=C5();y&&EF()&&(J1g(k,y)||k.push(y));return smO(k)},nAO=function(){var k=D8N(); !k&&k0()&&zgN()&&(k={key:"cast-selector-receiver",name:zgN()});return k},D8N=function(){var k=N7w(),y=C5(); y||(y=vV());return g.he(k,function(q){return y&&Qg(y,q.key)?!0:!1})},C5=function(){var k=ir(); if(!k)return null;var y=mJ().z3();return Fo(y,k)},t4$=function(k){f5("remote.onCastSessionChange_: "+M4(k)); if(k){var y=C5();if(y&&y.id==k.id){if(q1(y.id,"YouTube TV"),k.idType=="shortLived"&&(k=k.token))br&&(br.token=k),(y=EF())&&y.ZI(k)}else y&&VD(),BV(k,1)}else EF()&&VD()},VD=function(){yD()?tQ().stopSession():JQ("stopSession called before API ready."); var k=EF();k&&(k.disconnect(1),T7F(null))},wxg=function(){var k=EF(); return!!k&&k.getProxyState()!=3},f5=function(k){Pd("remote",k)},mJ=function(){if(!IAq){var k=g.S6("yt.mdx.remote.screenService_"); IAq=k?new stO(k):null}return IAq},ir=function(){return g.S6("yt.mdx.remote.currentScreenId_")},How=function(k){g.YU("yt.mdx.remote.currentScreenId_",k)},KeL=function(){return g.S6("yt.mdx.remote.connectData_")},PV=function(k){g.YU("yt.mdx.remote.connectData_",k)},EF=function(){return g.S6("yt.mdx.remote.connection_")},T7F=function(k){var y=EF(); PV(null);k||How("");g.YU("yt.mdx.remote.connection_",k);rD&&(g.HY(rD,function(q){q(k)}),rD.length=0); y&&!k?dw("yt-remote-connection-change",!1):!y&&k&&dw("yt-remote-connection-change",!0)},vV=function(){var k=g.tF(); if(!k)return null;var y=mJ();if(!y)return null;y=y.z3();return Fo(y,k)},BV=function(k,y){ir(); C5()&&C5();if(UF)br=k;else{How(k.id);var q=g.S6("yt.mdx.remote.enableConnectWithInitialState_")||!1;k=new $0(p5,k,ktB(),q);k.connect(y,KeL());k.subscribe("beforeDisconnect",function(N){dw("yt-remote-before-disconnect",N)}); k.subscribe("beforeDispose",function(){EF()&&(EF(),T7F(null))}); k.subscribe("browserChannelAuthError",function(){var N=C5();N&&N.idType=="shortLived"&&(yD()?tQ().handleBrowserChannelAuthError():JQ("refreshLoungeToken called before API ready."))}); T7F(k)}},yEN=function(){var k=vV(); k?(f5("Resume connection to: "+M4(k)),BV(k,0)):(GX(),poG(),f5("Skipping connecting because no session screen found."))},JlL=function(){var k=ktB(); if(g.QR(k)){k=S_();var y=g.sq("yt-remote-session-name")||"",q=g.sq("yt-remote-session-app")||"";k={device:"REMOTE_CONTROL",id:k,name:y,app:q,mdxVersion:3};k.authuser=String(g.H1("SESSION_INDEX","0"));(y=g.H1("DELEGATED_SESSION_ID"))&&(k.pageId=String(y));g.YU("yt.mdx.remote.channelParams_",k)}},ktB=function(){return g.S6("yt.mdx.remote.channelParams_")||{}},uH$=function(k,y,q){g.S.call(this); var N=this;this.module=k;this.G=y;this.C_=q;this.events=new g.to(this);this.V=!1;this.j=new g.Cq(64);this.Z=new g.c3(this.iy,500,this);this.N=new g.c3(this.h9,1E3,this);this.B=new h_(this.lrj,0,this);this.C={};this.J=new g.c3(this.GF,1E3,this);this.Y=new R1(this.seekTo,1E3,this);this.U=this.events.T(this.G,"onVolumeChange",function(D){AEG(N,D)}); g.G(this,this.events);this.events.T(y,"onCaptionsTrackListChanged",this.JzO);this.events.T(y,"captionschanged",this.e0O);this.events.T(y,"captionssettingschanged",this.rA);this.events.T(y,"videoplayerreset",this.VT);this.events.T(y,"mdxautoplaycancel",function(){N.C_.M4()}); y.W("enable_mdx_video_play_directly")&&this.events.T(y,"videodatachange",function(){cEx(N.module)||QD(N)||M1(N,0)}); k=this.C_;k.VM();k.subscribe("proxyStateChange",this.MI,this);k.subscribe("remotePlayerChange",this.Qy,this);k.subscribe("remoteQueueChange",this.VT,this);k.subscribe("previousNextChange",this.L8,this);k.subscribe("nowAutoplaying",this.Tz,this);k.subscribe("autoplayDismissed",this.Q7,this);g.G(this,this.Z);g.G(this,this.N);g.G(this,this.B);g.G(this,this.J);g.G(this,this.Y);this.rA();this.VT();this.Qy()},AEG=function(k,y){if(QD(k)){k.C_.unsubscribe("remotePlayerChange",k.Qy,k); var q=Math.round(y.volume);y=!!y.muted;var N=K5(k.C_);if(q!==N.volume||y!==N.muted)k.C_.setVolume(q,y),k.J.start();k.C_.subscribe("remotePlayerChange",k.Qy,k)}},aAb=function(k){k.Qx(0); k.Z.stop();k.cZ(new g.Cq(64))},x8E=function(k,y){if(QD(k)&&!k.V){var q=null; y&&(q={style:k.G.getSubtitlesUserSettings()},Object.assign(q,y));k.C_.bF(k.G.getVideoData(1).videoId,q);k.C=K5(k.C_).trackData}},M1=function(k,y){var q=k.G.getPlaylist(); if(q==null?0:q.listId){var N=q.index;var D=q.listId.toString()}q=k.G.getVideoData(1);k.C_.playVideo(q.videoId,y,N,D,q.playerParams,q.eb,iSe(q));k.cZ(new g.Cq(1))},juw=function(k,y){if(y){var q=k.G.getOption("captions","tracklist",{TU:1}); q&&q.length?(k.G.setOption("captions","track",y),k.V=!1):(k.G.loadModule("captions"),k.V=!0)}else k.G.setOption("captions","track",{})},QD=function(k){return K5(k.C_).videoId===k.G.getVideoData(1).videoId},FQ=function(){g.R.call(this,{X:"div", D:"ytp-mdx-popup-dialog",K:{role:"dialog"},L:[{X:"div",D:"ytp-mdx-popup-dialog-inner-content",L:[{X:"div",D:"ytp-mdx-popup-title",oO:"Saliste de tu cuenta"},{X:"div",D:"ytp-mdx-popup-description",oO:"Es posible que los videos que mires se agreguen al historial de reproducciones de la TV, lo que puede influir en las recomendaciones. Para que esto no suceda, presiona \u201cCancelar\u201d y accede a YouTube desde tu computadora."},{X:"div",D:"ytp-mdx-privacy-popup-buttons",L:[{X:"button",jb:["ytp-button", "ytp-mdx-privacy-popup-cancel"],oO:"Cancelar"},{X:"button",jb:["ytp-button","ytp-mdx-privacy-popup-confirm"],oO:"Confirmar"}]}]}]});this.Z=new g.zt(this,250);this.cancelButton=this.nS("ytp-mdx-privacy-popup-cancel");this.confirmButton=this.nS("ytp-mdx-privacy-popup-confirm");g.G(this,this.Z);this.T(this.cancelButton,"click",this.N);this.T(this.confirmButton,"click",this.C)},Y0=function(k){g.R.call(this,{X:"div", D:"ytp-remote",L:[{X:"div",D:"ytp-remote-display-status",L:[{X:"div",D:"ytp-remote-display-status-icon",L:[g.BhZ()]},{X:"div",D:"ytp-remote-display-status-text",oO:"{{statustext}}"}]}]});this.api=k;this.Z=new g.zt(this,250);g.G(this,this.Z);this.T(k,"presentingplayerstatechange",this.onStateChange);this.T_(k.getPlayerStateObject())},Sp=function(k,y){g.oQ.call(this,"Reproducir en",1,k,y); this.G=k;this.g5={};this.T(k,"onMdxReceiversChange",this.V);this.T(k,"presentingplayerstatechange",this.V);this.V()},Xx1=function(k){g.pi.call(this,k); this.zp={key:lcx(),name:"Esta computadora"};this.T3=null;this.subscriptions=[];this.jV=this.C_=null;this.g5=[this.zp];this.TX=this.zp;this.M5=new g.Cq(64);this.Xj=0;this.Zm=-1;this.TV=!1;this.rh=this.xU=null;if(!g.h0(this.player.S())&&!g.NF(this.player.S())){k=this.player;var y=g.na(k);y&&(y=y.l3())&&(y=new Sp(k,y),g.G(this,y));y=new Y0(k);g.G(this,y);g.pa(k,y.element,4);this.xU=new FQ;g.G(this,this.xU);g.pa(k,this.xU.element,4);this.TV=!!vV()}},G$=function(k){k.rh&&(k.player.removeEventListener("presentingplayerstatechange", k.rh),k.rh=null)},$8O=function(k,y,q){k.M5=q; k.player.publish("presentingplayerstatechange",new g.VS(q,y))},L5=function(k,y){if(y.key!==k.TX.key)if(y.key===k.zp.key)VD(); else if(cEx(k)&&zQw(k),k.TX=y,!k.player.S().W("disable_mdx_connection_in_mdx_module_for_music_web")||!g.NF(k.player.S())){var q=k.player.getPlaylistId();var N=k.player.getVideoData(1);var D=N.videoId;if(!q&&!D||(k.player.getAppState()===2||k.player.getAppState()===1)&&k.player.S().W("should_clear_video_data_on_player_cued_unstarted"))N=null;else{var n=k.player.getPlaylist();if(n){var T=[];for(var I=0;I2*this.size&&B0(this),!0):!1}; g.w.get=function(k,y){return b9(this.N,k)?this.N[k]:y}; g.w.set=function(k,y){b9(this.N,k)||(this.size+=1,this.Z.push(k),this.qm++);this.N[k]=y}; g.w.forEach=function(k,y){for(var q=this.HS(),N=0;N=N.Z.length)return g.WQ;var n=N.Z[y++];return g.a7(k?n:N.N[n])}; return D}; var oSq={p6v:"atp",BCx:"ska",NCS:"que",HHS:"mus",hTS:"sus",LBb:"dsp",jRl:"seq",c3H:"mic",cTj:"dpa",w6S:"cds",epl:"mlm",zPb:"dsdtr",QCD:"ntb",wSb:"vsp",jsl:"scn",gbb:"rpe",lCb:"dcn",ssO:"dcp",Rpb:"pas",NLS:"drq",Ynv:"opf",VOF:"els",tOl:"isg",b1S:"svq",FFD:"mvp",wnj:"ads"},h3E={VWw:"u",qVl:"cl",mVS:"k",A0M:"i",Jpb:"cr",t9H:"m",hPM:"g",jB:"up"},q3g="",L7=null; K1B.prototype.flush=function(k,y){k=k===void 0?[]:k;y=y===void 0?!1:y;if(g.M5("enable_client_streamz_web")){k=g.p(k);for(var q=k.next();!q.done;q=k.next())q=g.gY6(q.value),q={serializedIncrementBatch:g.xz(q.Z())},g.OH("streamzIncremented",q,{sendIsolatedPayload:y})}}; var gw,$Je=czO("loadCastFramework")||czO("loadCastApplicationFramework"),rzb=["pkedcjkdefgpdelpbcmbmeomcjbeemfm","enhhojjnijigcajfphajepfemndkmdlo"];g.lZ(h_,g.S);g.w=h_.prototype;g.w.A8=function(k){this.V=arguments;this.Z=!1;this.Dn?this.C=g.Z7()+this.Tg:this.Dn=g.bG(this.j,this.Tg)}; g.w.stop=function(){this.Dn&&(g.FZ.clearTimeout(this.Dn),this.Dn=null);this.C=null;this.Z=!1;this.V=[]}; g.w.pause=function(){++this.N}; g.w.resume=function(){this.N&&(--this.N,!this.N&&this.Z&&(this.Z=!1,this.Y.apply(null,this.V)))}; g.w.gF=function(){this.stop();h_.g9.gF.call(this)}; g.w.CP=function(){this.Dn&&(g.FZ.clearTimeout(this.Dn),this.Dn=null);this.C?(this.Dn=g.bG(this.j,this.C-g.Z7()),this.C=null):this.N?this.Z=!0:(this.Z=!1,this.Y.apply(null,this.V))};g.z(R1,g.S);g.w=R1.prototype;g.w.tG=function(k){this.C=arguments;this.Dn||this.N?this.Z=!0:iOT(this)}; g.w.stop=function(){this.Dn&&(g.FZ.clearTimeout(this.Dn),this.Dn=null,this.Z=!1,this.C=null)}; g.w.pause=function(){this.N++}; g.w.resume=function(){this.N--;this.N||!this.Z||this.Dn||(this.Z=!1,iOT(this))}; g.w.gF=function(){g.S.prototype.gF.call(this);this.stop()};e_.prototype.stringify=function(k){return g.FZ.JSON.stringify(k,void 0)}; e_.prototype.parse=function(k){return g.FZ.JSON.parse(k,void 0)};g.lZ(fST,g.gC);g.lZ(OO1,g.gC);var P21=null;g.lZ(C2T,g.gC);g.lZ(E6e,g.gC);g.lZ(bOL,g.gC);sm.prototype.debug=function(){}; sm.prototype.info=function(){}; sm.prototype.warning=function(){};var S3T={},Y3L={};g.w=J_.prototype;g.w.setTimeout=function(k){this.aO=k}; g.w.pP=function(k){k=k.target;var y=this.hV;y&&g.Nx(k)==3?y.tG():this.yS(k)}; g.w.yS=function(k){try{if(k==this.Z)a:{var y=g.Nx(this.Z),q=this.Z.N,N=this.Z.getStatus();if(!(y<3)&&(y!=3||this.Z&&(this.N.N||g.nX(this.Z)||g.Tl(this.Z)))){this.QM||y!=4||q==7||(q==8||N<=0?W0(3):W0(2));dJB(this);var D=this.Z.getStatus();this.GL=D;var n=F1b(this);if(this.Y=D==200){if(this.oM&&!this.fS){b:{if(this.Z){var T=g.wN(this.Z,"X-HTTP-Initial-Response");if(T&&!g.p1(T)){var I=T;break b}}I=null}if(k=I)this.fS=!0,swG(this,k);else{this.Y=!1;this.j=3;ZO(12);kc(this);yl(this);break a}}if(this.eb){k= !0;for(var H;!this.QM&&this.B0&&!this.jH&&(this.jH=!0,this.C.wG(this)):(kc(this),yl(this))}else swG(this,n);y==4&&kc(this);this.Y&&!this.QM&&(y==4?g6B(this.C,this):(this.Y=!1,t_(this)))}else g.I26(this.Z),D==400&&n.indexOf("Unknown SID")> 0?(this.j=3,ZO(12)):(this.j=0,ZO(13)),kc(this),yl(this)}}}catch(K){}finally{}}; g.w.cancel=function(){this.QM=!0;kc(this)}; g.w.nP=function(){this.sT=null;var k=Date.now();k-this.MD>=0?(this.Wl!=2&&(W0(3),ZO(17)),kc(this),this.j=2,yl(this)):L1F(this,this.MD-k)}; g.w.getLastError=function(){return this.j}; g.w.k$=function(){return this.Z};tJw.prototype.cancel=function(){this.C=y8b(this);if(this.N)this.N.cancel(),this.N=null;else if(this.Z&&this.Z.size!==0){for(var k=g.p(this.Z.values()),y=k.next();!y.done;y=k.next())y.value.cancel();this.Z.clear()}};g.w=TfL.prototype;g.w.uF=8;g.w.rS=1;g.w.connect=function(k,y,q,N){ZO(0);this.Bc=k;this.QM=y||{};q&&N!==void 0&&(this.QM.OSID=q,this.QM.OAID=N);this.fS=this.Jz;this.wF=W1e(this,null,this.Bc);nZ(this)}; g.w.disconnect=function(){ImG(this);if(this.rS==3){var k=this.Dx++,y=this.wF.clone();g.Os(y,"SID",this.V);g.Os(y,"RID",k);g.Os(y,"TYPE","terminate");Ir(this,y);k=new J_(this,this.V,k);k.Wl=2;k.J=P0(y.clone());y=!1;if(g.FZ.navigator&&g.FZ.navigator.sendBeacon)try{y=g.FZ.navigator.sendBeacon(k.J.toString(),"")}catch(q){}!y&&g.FZ.Image&&((new Image).src=k.J,y=!0);y||(k.Z=QwG(k.C,null),k.Z.send(k.J));k.AV=Date.now();t_(k)}amx(this)}; g.w.yb=function(){return this.rS==0}; g.w.getState=function(){return this.rS}; g.w.lF=function(k){if(this.Y)if(this.Y=null,this.rS==1){if(!k){this.Dx=Math.floor(Math.random()*1E5);k=this.Dx++;var y=new J_(this,"",k),q=this.U;this.GL&&(q?(q=g.Y2(q),g.Gw(q,this.GL)):q=this.GL);this.B!==null||this.MD||(y.wF=q,q=null);var N;if(this.UT)a:{for(var D=N=0;D4096){N=D;break a}if(N===4096||D===this.C.length-1){N=D+1;break a}}N= 1E3}else N=1E3;N=A8B(this,y,N);D=this.wF.clone();g.Os(D,"RID",k);g.Os(D,"CVER",22);this.eb&&g.Os(D,"X-HTTP-Session-Id",this.eb);Ir(this,D);q&&(this.MD?N="headers="+g.NI(g.Au7(q))+"&"+N:this.B&&g.Es(D,this.B,q));eaB(this.N,y);this.cO&&g.Os(D,"TYPE","init");this.UT?(g.Os(D,"$req",N),g.Os(D,"SID","null"),y.oM=!0,UJG(y,D,null)):UJG(y,D,N);this.rS=2}}else this.rS==3&&(k?c8w(this,k):this.C.length==0||kHx(this.N)||c8w(this))}; g.w.Zb=function(){this.J=null;uuF(this);if(this.LY&&!(this.aO||this.Z==null||this.tb<=0)){var k=2*this.tb;this.pS=l9((0,g.RD)(this.pcF,this),k)}}; g.w.pcF=function(){this.pS&&(this.pS=null,this.fS=!1,this.aO=!0,ZO(10),No(this),uuF(this))}; g.w.wG=function(k){this.Z==k&&this.LY&&!this.aO&&(wTO(this),this.aO=!0,ZO(11))}; g.w.eX=function(){this.sT!=null&&(this.sT=null,No(this),hab(this),ZO(19))}; g.w.iXS=function(k){k?ZO(2):ZO(1)}; g.w.isActive=function(){return!!this.j&&this.j.isActive(this)}; g.w=j8N.prototype;g.w.cR=function(){}; g.w.zk=function(){}; g.w.Nv=function(){}; g.w.sS=function(){}; g.w.isActive=function(){return!0}; g.w.F9=function(){};g.lZ(KZ,g.Tp);KZ.prototype.open=function(){this.Z.j=this.C;this.Y&&(this.Z.Wl=!0);this.Z.connect(this.j,this.N||void 0)}; KZ.prototype.close=function(){this.Z.disconnect()}; KZ.prototype.send=function(k){var y=this.Z;if(typeof k==="string"){var q={};q.__data__=k;k=q}else this.V&&(q={},q.__data__=g.Qs(k),k=q);y.C.push(new JzL(y.Rx++,k));y.rS==3&&nZ(y)}; KZ.prototype.gF=function(){this.Z.j=null;delete this.C;this.Z.disconnect();delete this.Z;KZ.g9.gF.call(this)}; g.lZ($uq,fST);g.lZ(zFe,OO1);g.lZ(Hd,j8N);Hd.prototype.cR=function(){this.Z.dispatchEvent("m")}; Hd.prototype.zk=function(k){this.Z.dispatchEvent(new $uq(k))}; Hd.prototype.Nv=function(k){this.Z.dispatchEvent(new zFe(k))}; Hd.prototype.sS=function(){this.Z.dispatchEvent("n")};var cd=new g.Tp;g.z(muL,g.gC);g.w=ar.prototype;g.w.mU=null;g.w.XK=!1;g.w.Cy=null;g.w.j2=null;g.w.wE=null;g.w.YO=null;g.w.tZ=null;g.w.WP=null;g.w.P2=null;g.w.z2=null;g.w.qH=0;g.w.zF=null;g.w.vP=null;g.w.RP=null;g.w.jC=-1;g.w.C9=!0;g.w.Vh=!1;g.w.VO=0;g.w.Gi=null;var CKB={},vve={};g.w=ar.prototype;g.w.setTimeout=function(k){this.N=k}; g.w.t8=function(k){k=k.target;var y=this.Gi;y&&g.Nx(k)==3?y.tG():this.o5(k)}; g.w.o5=function(k){try{if(k==this.z2)a:{var y=g.Nx(this.z2),q=this.z2.N,N=this.z2.getStatus();if(g.q3&&!g.a5("420+")){if(y<4)break a}else if(y<3||y==3&&!g.nX(this.z2))break a;this.Vh||y!=4||q==7||(q==8||N<=0?this.Z.fN(3):this.Z.fN(2));ViF(this);var D=this.z2.getStatus();this.jC=D;var n=g.nX(this.z2);if(this.XK=D==200){y==4&&xc(this);if(this.eb){for(k=!0;!this.Vh&&this.qH0?(this.RP=3,uY(13)):(this.RP=0,uY(14)),xc(this),BfN(this)}}catch(I){}finally{}}; g.w.cancel=function(){this.Vh=!0;xc(this)}; g.w.H1=function(){this.Cy=null;var k=Date.now();k-this.j2>=0?(this.YO!=2&&this.Z.fN(3),xc(this),this.RP=2,uY(18),BfN(this)):bYx(this,this.j2-k)}; g.w.getLastError=function(){return this.RP};g.w=FCG.prototype;g.w.Id=null;g.w.Sr=null;g.w.JW=!1;g.w.bA=null;g.w.On=null;g.w.Lh=-1;g.w.OJ=null;g.w.Be=null;g.w.connect=function(k){this.bA=k;k=XX(this.Z,null,this.bA);uY(3);Date.now();var y=this.Z.U;y!=null?(this.OJ=y[0],(this.Be=y[1])?(this.On=1,YGN(this)):(this.On=2,SGT(this))):(v0(k,"MODE","init"),this.Sr=new ar(this),this.Sr.mU=this.Id,OYE(this.Sr,k,!1,null,!0),this.On=0)}; g.w.U3=function(k){if(k)this.On=2,SGT(this);else{uY(4);var y=this.Z;y.p6=y.Pp.Lh;rS(y,9)}k&&this.fN(2)}; g.w.wq=function(k){return this.Z.wq(k)}; g.w.abort=function(){this.Sr&&(this.Sr.cancel(),this.Sr=null);this.Lh=-1}; g.w.yb=function(){return!1}; g.w.ES=function(k,y){this.Lh=k.jC;if(this.On==0)if(y){try{var q=this.N.parse(y)}catch(N){k=this.Z;k.p6=this.Lh;rS(k,2);return}this.OJ=q[0];this.Be=q[1]}else k=this.Z,k.p6=this.Lh,rS(k,2);else this.On==2&&(this.JW?(uY(7),Date.now()):y=="11111"?(uY(6),this.JW=!0,Date.now(),this.Lh=200,this.Sr.cancel(),uY(12),$c(this.Z,this,!0)):(uY(8),Date.now(),this.JW=!1))}; g.w.QO=function(){this.Lh=this.Sr.jC;if(this.Sr.XK)this.On==0?this.Be?(this.On=1,YGN(this)):(this.On=2,SGT(this)):this.On==2&&(this.JW?(uY(12),$c(this.Z,this,!0)):(uY(11),$c(this.Z,this,!1)));else{this.On==0?uY(9):this.On==2&&uY(10);var k=this.Z;this.Sr.getLastError();k.p6=this.Lh;rS(k,2)}}; g.w.kI=function(){return this.Z.kI()}; g.w.isActive=function(){return this.Z.isActive()}; g.w.fN=function(k){this.Z.fN(k)};g.w=GH1.prototype;g.w.n6=null;g.w.I9=null;g.w.oA=null;g.w.zD=null;g.w.G6=null;g.w.iS=null;g.w.Am=null;g.w.XP=null;g.w.Qh=0;g.w.jX=0;g.w.q2=null;g.w.GX=null;g.w.Kh=null;g.w.SQ=null;g.w.Pp=null;g.w.Lf=null;g.w.Fr=-1;g.w.Cp=-1;g.w.p6=-1;g.w.eD=0;g.w.py=0;g.w.Ty=8;g.lZ(duO,g.gC);g.lZ(gvb,g.gC);g.w=GH1.prototype;g.w.connect=function(k,y,q,N,D){uY(0);this.G6=y;this.I9=q||{};N&&D!==void 0&&(this.I9.OSID=N,this.I9.OAID=D);this.J?(AQ((0,g.RD)(this.B$,this,k),100),hFE(this)):this.B$(k)}; g.w.disconnect=function(){RF$(this);if(this.Z==3){var k=this.Qh++,y=this.iS.clone();g.Os(y,"SID",this.V);g.Os(y,"RID",k);g.Os(y,"TYPE","terminate");pZ(this,y);k=new ar(this,this.V,k);k.YO=2;k.tZ=P0(y.clone());(new Image).src=k.tZ.toString();k.wE=Date.now();PKN(k)}qRx(this)}; g.w.B$=function(k){this.Pp=new FCG(this);this.Pp.Id=this.n6;this.Pp.N=this.j;this.Pp.connect(k)}; g.w.yb=function(){return this.Z==0}; g.w.getState=function(){return this.Z}; g.w.eF=function(k){this.GX=null;s8x(this,k)}; g.w.pp=function(){this.Kh=null;this.zD=new ar(this,this.V,"rpc",this.B);this.zD.mU=this.n6;this.zD.VO=0;var k=this.Am.clone();g.Os(k,"RID","rpc");g.Os(k,"SID",this.V);g.Os(k,"CI",this.Lf?"0":"1");g.Os(k,"AID",this.Fr);pZ(this,k);g.Os(k,"TYPE","xmlhttp");OYE(this.zD,k,!0,this.XP,!1)}; g.w.ES=function(k,y){if(this.Z!=0&&(this.zD==k||this.oA==k))if(this.p6=k.jC,this.oA==k&&this.Z==3)if(this.Ty>7){try{var q=this.j.parse(y)}catch(N){q=null}if(Array.isArray(q)&&q.length==3)if(k=q,k[0]==0)a:{if(!this.Kh){if(this.zD)if(this.zD.wE+3E30)){if(N=y==1)this.oA||this.GX||this.Z==1||this.eD>=2?N=!1:(this.GX=AQ((0,g.RD)(this.eF,this,k),tiw(this,this.eD)),this.eD++,N=!0);N=!(N||y==2&&kWT(this))}if(N)switch(q){case 1:rS(this, 5);break;case 4:rS(this,10);break;case 3:rS(this,6);break;case 7:rS(this,12);break;default:rS(this,2)}}}; g.w.Ve=function(k){if(!g.eB(arguments,this.Z))throw Error("Unexpected channel state: "+this.Z);}; g.w.OXj=function(k){k?uY(2):(uY(1),yRT(this,8))}; g.w.wq=function(k){if(k)throw Error("Can't create secondary domain capable XhrIo object.");k=new g.ko;k.B=!1;return k}; g.w.isActive=function(){return!!this.q2&&this.q2.isActive(this)}; g.w.fN=function(k){var y=cd;y.dispatchEvent(new gvb(y,k))}; g.w.kI=function(){return!1}; g.w=Ngb.prototype;g.w.Vo=function(){}; g.w.HR=function(){}; g.w.Fb=function(){}; g.w.WF=function(){}; g.w.jF=function(){return{}}; g.w.isActive=function(){return!0};g.w=DAT.prototype;g.w.enqueue=function(k){this.N.push(k)}; g.w.isEmpty=function(){return this.Z.length===0&&this.N.length===0}; g.w.clear=function(){this.Z=[];this.N=[]}; g.w.contains=function(k){return g.eB(this.Z,k)||g.eB(this.N,k)}; g.w.remove=function(k){var y=this.Z;var q=(0,g.qbL)(y,k);q>=0?(g.Wg(y,q),y=!0):y=!1;return y||g.ZT(this.N,k)}; g.w.sy=function(){for(var k=[],y=this.Z.length-1;y>=0;--y)k.push(this.Z[y]);y=this.N.length;for(var q=0;q=pxG.length?this.publish("pairingFailed",Error("DIAL polling timed out")):(k=pxG[this.N],this.Dn=g.bW((0,g.RD)(this.YQ,this),k),this.N++):this.publish("pairingFailed",Error("Server error "+k.status))}; g.w.W1=function(){this.Z=null;this.publish("pairingFailed",Error("Server not responding"))}; var pxG=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];g.lZ(U9,Vl);g.w=U9.prototype;g.w.start=function(){Bd(this)&&this.publish("screenChange");!g.sq("yt-remote-lounge-token-expiration")&&vhF(this);g.B1(this.Z);this.Z=g.bW((0,g.RD)(this.start,this),1E4)}; g.w.add=function(k,y){Bd(this);ile(this,k);Ql(this,!1);this.publish("screenChange");y(k);k.token||vhF(this)}; g.w.remove=function(k,y){var q=Bd(this);Ol$(this,k)&&(Ql(this,!1),q=!0);y(k);q&&this.publish("screenChange")}; g.w.JS=function(k,y,q,N){var D=Bd(this),n=this.get(k.id);n?(n.name!=y&&(n.name=y,Ql(this,!1),D=!0),q(k)):N(Error("no such local screen."));D&&this.publish("screenChange")}; g.w.gF=function(){g.B1(this.Z);U9.g9.gF.call(this)}; g.w.jk=function(k){Bd(this);var y=this.screens.length;k=k&&k.screens||[];for(var q=k.length,N=0;N20)break a;I=y(n,T)}n=I}D.name=n}q(Yc(this,D))},this), onError:(0,g.RD)(function(D){N(Error("pairing request failed: "+D.status))},this), onTimeout:(0,g.RD)(function(){N(Error("pairing request timed out."))},this)})}; g.w.gF=function(){g.n1(this.N);g.n1(this.Z);FX.g9.gF.call(this)}; g.w.v8=function(){GWF(this);this.publish("screenChange");this.Z.update()}; FX.prototype.dispose=FX.prototype.dispose;g.lZ(Sh,g.fr);g.w=Sh.prototype;g.w.Yi=function(k){this.VM()||(k&&(LZ(this,""+k),this.publish("sessionFailed")),this.Z=null,this.publish("sessionScreen",null))}; g.w.info=function(k){Pd(this.eb,k)}; g.w.I5=function(){return null}; g.w.zj=function(k){var y=this.N;k?(y.displayStatus=new chrome.cast.ReceiverDisplayStatus(k,[]),y.displayStatus.showStop=!0):y.displayStatus=null;chrome.cast.setReceiverDisplayStatus(y,(0,g.RD)(function(){this.info("Updated receiver status for "+y.friendlyName+": "+k)},this),(0,g.RD)(function(){LZ(this,"Failed to update receiver status for: "+y.friendlyName)},this))}; g.w.gF=function(){this.zj("");Sh.g9.gF.call(this)};g.z(dS,Sh);g.w=dS.prototype;g.w.s6=function(k){if(this.C){if(this.C==k)return;LZ(this,"Overriding cast session with new session object");JRT(this);this.AV=!1;this.U="unknown";this.C.removeUpdateListener(this.ND);this.C.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.pS)}this.C=k;this.C.addUpdateListener(this.ND);this.C.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.pS);erT(this,"getMdxSessionStatus")}; g.w.z7=function(k){this.info("launchWithParams no-op for Cast: "+g.Qs(k))}; g.w.stop=function(){this.C?this.C.stop((0,g.RD)(function(){this.Yi()},this),(0,g.RD)(function(){this.Yi(Error("Failed to stop receiver app."))},this)):this.Yi(Error("Stopping cast device without session."))}; g.w.zj=function(){}; g.w.gF=function(){this.info("disposeInternal");JRT(this);this.C&&(this.C.removeUpdateListener(this.ND),this.C.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.pS));this.C=null;Sh.prototype.gF.call(this)}; g.w.OZM=function(k,y){if(!this.VM())if(y)if(y=C7(y),g.gT(y))switch(k=""+y.type,y=y.data||{},this.info("onYoutubeMessage_: "+k+" "+g.Qs(y)),k){case "mdxSessionStatus":ohF(this,y);break;case "loungeToken":Wfw(this,y);break;default:LZ(this,"Unknown youtube message: "+k)}else LZ(this,"Unable to parse message.");else LZ(this,"No data in message.")}; g.w.UD=function(k,y,q,N){g.B1(this.J);this.J=0;FfL(this.V,this.N.label,k,this.N.friendlyName,(0,g.RD)(function(D){D?y(D):N>=0?(LZ(this,"Screen "+k+" appears to be offline. "+N+" retries left."),this.J=g.bW((0,g.RD)(this.UD,this,k,y,q,N-1),300)):q(Error("Unable to fetch screen."))},this),q)}; g.w.I5=function(){return this.C}; g.w.v1=function(k){this.VM()||k||(LZ(this,"Cast session died."),this.Yi())};g.z(gS,Sh);g.w=gS.prototype;g.w.s6=function(k){this.C=k;this.C.addUpdateListener(this.QM)}; g.w.z7=function(k){this.wF=k;this.sT()}; g.w.stop=function(){Tqg(this);this.C?this.C.stop((0,g.RD)(this.Yi,this,null),(0,g.RD)(this.Yi,this,"Failed to stop DIAL device.")):this.Yi()}; g.w.gF=function(){Tqg(this);this.C&&this.C.removeUpdateListener(this.QM);this.C=null;Sh.prototype.gF.call(this)}; g.w.qa=function(k){this.VM()||k||(LZ(this,"DIAL session died."),this.j(),this.j=function(){},this.Yi())};g.z(Rr,Sh);Rr.prototype.stop=function(){this.Yi()}; Rr.prototype.s6=function(){}; Rr.prototype.z7=function(){g.B1(this.C);this.C=NaN;var k=Fo(this.V.z3(),this.N.label);k?GA(this,k):this.Yi(Error("No such screen"))}; Rr.prototype.gF=function(){g.B1(this.C);this.C=NaN;Sh.prototype.gF.call(this)};g.z(eh,g.fr);g.w=eh.prototype; g.w.init=function(k,y){chrome.cast.timeout.requestSession=3E4;var q=new chrome.cast.SessionRequest(this.J,[chrome.cast.Capability.AUDIO_OUT]);g.M5("desktop_enable_cast_connect")&&(q.androidReceiverCompatible=!0);this.U||(q.dialRequest=new chrome.cast.DialRequest("YouTube"));var N=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;k=k||this.Y?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var D=(0,g.RD)(this.qbO,this);q=new chrome.cast.ApiConfig(q,(0,g.RD)(this.y7, this),D,N,k);q.customDialLaunchCallback=(0,g.RD)(this.GLS,this);chrome.cast.initialize(q,(0,g.RD)(function(){this.VM()||(chrome.cast.addReceiverActionListener(this.j),zrq(),this.N.subscribe("onlineScreenChange",(0,g.RD)(this.Qo,this)),this.C=HrE(this),chrome.cast.setCustomReceivers(this.C,function(){},(0,g.RD)(function(n){this.IH("Failed to set initial custom receivers: "+g.Qs(n))},this)),this.publish("yt-remote-cast2-availability-change",Zp(this)),y(!0))},this),(0,g.RD)(function(n){this.IH("Failed to initialize API: "+ g.Qs(n)); y(!1)},this))}; g.w.xPj=function(k,y){Wd("Setting connected screen ID: "+k+" -> "+y);if(this.Z){var q=this.Z.Z;if(!k||q&&q.id!=k)Wd("Unsetting old screen status: "+this.Z.N.friendlyName),lY(this,null)}if(k&&y){if(!this.Z){k=Fo(this.N.z3(),k);if(!k){Wd("setConnectedScreenStatus: Unknown screen.");return}if(k.idType=="shortLived"){Wd("setConnectedScreenStatus: Screen with id type to be short lived.");return}q=wox(this,k);q||(Wd("setConnectedScreenStatus: Connected receiver not custom..."),q=new chrome.cast.Receiver(k.uuid? k.uuid:k.id,k.name),q.receiverType=chrome.cast.ReceiverType.CUSTOM,this.C.push(q),chrome.cast.setCustomReceivers(this.C,function(){},(0,g.RD)(function(N){this.IH("Failed to set initial custom receivers: "+g.Qs(N))},this))); Wd("setConnectedScreenStatus: new active receiver: "+q.friendlyName);lY(this,new Rr(this.N,q),!0)}this.Z.zj(y)}else Wd("setConnectedScreenStatus: no screen.")}; g.w.uuS=function(k){this.VM()?this.IH("Setting connection data on disposed cast v2"):this.Z?this.Z.z7(k):this.IH("Setting connection data without a session")}; g.w.h8=function(){this.VM()?this.IH("Stopping session on disposed cast v2"):this.Z?(this.Z.stop(),lY(this,null)):Wd("Stopping non-existing session")}; g.w.requestSession=function(){chrome.cast.requestSession((0,g.RD)(this.y7,this),(0,g.RD)(this.ZZF,this))}; g.w.gF=function(){this.N.unsubscribe("onlineScreenChange",(0,g.RD)(this.Qo,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.j);var k=jWw,y=g.S6("yt.mdx.remote.debug.handlers_");g.ZT(y||[],k);g.n1(this.Z);g.fr.prototype.gF.call(this)}; g.w.IH=function(k){Pd("Controller",k)}; g.w.Z$=function(k,y){this.Z==k&&(y||lY(this,null),this.publish("yt-remote-cast2-session-change",y))}; g.w.WTH=function(k,y){if(!this.VM())if(k)switch(k.friendlyName=chrome.cast.unescape(k.friendlyName),Wd("onReceiverAction_ "+k.label+" / "+k.friendlyName+"-- "+y),y){case chrome.cast.ReceiverAction.CAST:if(this.Z)if(this.Z.N.label!=k.label)Wd("onReceiverAction_: Stopping active receiver: "+this.Z.N.friendlyName),this.Z.stop();else{Wd("onReceiverAction_: Casting to active receiver.");this.Z.Z&&this.publish("yt-remote-cast2-session-change",this.Z.Z);break}switch(k.receiverType){case chrome.cast.ReceiverType.CUSTOM:lY(this, new Rr(this.N,k));break;case chrome.cast.ReceiverType.DIAL:lY(this,new gS(this.N,k,this.V,this.config_));break;case chrome.cast.ReceiverType.CAST:lY(this,new dS(this.N,k,this.config_));break;default:this.IH("Unknown receiver type: "+k.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.Z&&this.Z.N.label==k.label?this.Z.stop():this.IH("Stopping receiver w/o session: "+k.friendlyName)}else this.IH("onReceiverAction_ called without receiver.")}; g.w.GLS=function(k){if(this.VM())return Promise.reject(Error("disposed"));var y=k.receiver;y.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.IH("Not DIAL receiver: "+y.friendlyName),y.receiverType=chrome.cast.ReceiverType.DIAL);var q=this.Z?this.Z.N:null;if(!q||q.label!=y.label)return this.IH("Receiving DIAL launch request for non-clicked DIAL receiver: "+y.friendlyName),Promise.reject(Error("illegal DIAL launch"));if(q&&q.label==y.label&&q.receiverType!=chrome.cast.ReceiverType.DIAL){if(this.Z.Z)return Wd("Reselecting dial screen."), this.publish("yt-remote-cast2-session-change",this.Z.Z),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.IH('Changing CAST intent from "'+q.receiverType+'" to "dial" for '+y.friendlyName);lY(this,new gS(this.N,y,this.V,this.config_))}y=this.Z;y.J=k;y.J.appState==chrome.cast.DialAppState.RUNNING?(k=y.J.extraData||{},q=k.screenId||null,or(y)&&k.loungeToken?k.loungeTokenRefreshIntervalMs?k=NqL(y,{name:y.N.friendlyName,screenId:k.screenId,loungeToken:k.loungeToken,dialId:y.J.receiver.label, screenIdType:"shortLived"},k.loungeTokenRefreshIntervalMs):(g.c1(Error("No loungeTokenRefreshIntervalMs presents in additionalData: "+JSON.stringify(k)+".")),k=DMx(y,q)):k=DMx(y,q)):k=yle(y);return k}; g.w.y7=function(k){var y=this;if(!this.VM()&&!this.Y){Wd("New cast session ID: "+k.sessionId);var q=k.receiver;if(q.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.Z)if(q.receiverType==chrome.cast.ReceiverType.CAST)Wd("Got resumed cast session before resumed mdx connection."),q.friendlyName=chrome.cast.unescape(q.friendlyName),lY(this,new dS(this.N,q,this.config_),!0);else{this.IH("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var N=this.Z.N,D=Fo(this.N.z3(), N.label);D&&Qg(D,q.label)&&N.receiverType!=chrome.cast.ReceiverType.CAST&&q.receiverType==chrome.cast.ReceiverType.CAST&&(Wd("onSessionEstablished_: manual to cast session change "+q.friendlyName),g.n1(this.Z),this.Z=new dS(this.N,q,this.config_),this.Z.subscribe("sessionScreen",(0,g.RD)(this.Z$,this,this.Z)),this.Z.subscribe("sessionFailed",function(){return IPN(y,y.Z)}),this.Z.z7(null)); this.Z.s6(k)}}}; g.w.OF=function(){return this.Z?this.Z.I5():null}; g.w.ZZF=function(k){this.VM()||(this.IH("Failed to estabilish a session: "+g.Qs(k)),k.code!=chrome.cast.ErrorCode.CANCEL&&lY(this,null),this.publish("yt-remote-cast2-session-failed"))}; g.w.qbO=function(k){Wd("Receiver availability updated: "+k);if(!this.VM()){var y=Zp(this);this.B=k==chrome.cast.ReceiverAvailability.AVAILABLE;Zp(this)!=y&&this.publish("yt-remote-cast2-availability-change",Zp(this))}}; g.w.Qo=function(){this.VM()||(this.C=HrE(this),Wd("Updating custom receivers: "+g.Qs(this.C)),chrome.cast.setCustomReceivers(this.C,function(){},(0,g.RD)(function(){this.IH("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",Zp(this)))}; eh.prototype.setLaunchParams=eh.prototype.uuS;eh.prototype.setConnectedScreenStatus=eh.prototype.xPj;eh.prototype.stopSession=eh.prototype.h8;eh.prototype.getCastSession=eh.prototype.OF;eh.prototype.requestSession=eh.prototype.requestSession;eh.prototype.init=eh.prototype.init;eh.prototype.dispose=eh.prototype.dispose;var $MF=[];g.w=N1.prototype; g.w.reset=function(k){this.listId="";this.index=-1;this.videoId="";fP$(this);this.volume=-1;this.muted=!1;k&&(this.index=k.index,this.listId=k.listId,this.videoId=k.videoId,this.playerState=k.playerState,this.volume=k.volume,this.muted=k.muted,this.audioTrackId=k.audioTrackId,this.trackData=k.trackData,this.PD=k.hasPrevious,this.oC=k.hasNext,this.B=k.playerTime,this.Y=k.playerTimeAt,this.V=k.seekableStart,this.Z=k.seekableEnd,this.j=k.duration,this.J=k.loadedTime,this.C=k.liveIngestionTime,this.N= !isNaN(this.C))}; g.w.isPlaying=function(){return this.playerState==1}; g.w.isBuffering=function(){return this.playerState==3}; g.w.pn=function(){return this.playerState==1081}; g.w.bb=function(k){this.j=isNaN(k)?0:k}; g.w.getDuration=function(){return this.N?this.j+D8(this):this.j}; g.w.clone=function(){return new N1(OrO(this))};g.z(HV,g.fr);g.w=HV.prototype;g.w.getState=function(){return this.C}; g.w.Eu=function(){return this.V.getReconnectTimeout()}; g.w.w4=function(){this.V.reconnect()}; g.w.play=function(){Aq(this)?(this.Z?this.Z.play(null,g.$x,x0(this,"play")):ap(this,"play"),CJe(this,1,T$(K5(this))),this.publish("remotePlayerChange")):cV(this,this.play)}; g.w.pause=function(){Aq(this)?(this.Z?this.Z.pause(null,g.$x,x0(this,"pause")):ap(this,"pause"),CJe(this,2,T$(K5(this))),this.publish("remotePlayerChange")):cV(this,this.pause)}; g.w.seekTo=function(k){if(Aq(this)){if(this.Z){var y=K5(this),q=new chrome.cast.media.SeekRequest;q.currentTime=k;y.isPlaying()||y.isBuffering()?q.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:q.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.Z.seek(q,g.$x,x0(this,"seekTo",{newTime:k}))}else ap(this,"seekTo",{newTime:k});CJe(this,3,k);this.publish("remotePlayerChange")}else cV(this,g.W6(this.seekTo,k))}; g.w.stop=function(){if(Aq(this)){this.Z?this.Z.stop(null,g.$x,x0(this,"stopVideo")):ap(this,"stopVideo");var k=K5(this);k.index=-1;k.videoId="";fP$(k);ur(this,k);this.publish("remotePlayerChange")}else cV(this,this.stop)}; g.w.setVolume=function(k,y){if(Aq(this)){var q=K5(this);if(this.N){if(q.volume!=k){var N=Math.round(k)/100;this.N.setReceiverVolumeLevel(N,(0,g.RD)(function(){vd("set receiver volume: "+N)},this),(0,g.RD)(function(){this.IH("failed to set receiver volume.")},this))}q.muted!=y&&this.N.setReceiverMuted(y,(0,g.RD)(function(){vd("set receiver muted: "+y)},this),(0,g.RD)(function(){this.IH("failed to set receiver muted.")},this))}else{var D={volume:k, muted:y};q.volume!=-1&&(D.delta=k-q.volume);ap(this,"setVolume",D)}q.muted=y;q.volume=k;ur(this,q)}else cV(this,g.W6(this.setVolume,k,y))}; g.w.bF=function(k,y){if(Aq(this)){var q=K5(this);k={videoId:k};y&&(q.trackData={trackName:y.name,languageCode:y.languageCode,sourceLanguageCode:y.translationLanguage?y.translationLanguage.languageCode:"",languageName:y.languageName,kind:y.kind},k.style=g.Qs(y.style),g.Gw(k,q.trackData));ap(this,"setSubtitlesTrack",k);ur(this,q)}else cV(this,g.W6(this.bF,k,y))}; g.w.setAudioTrack=function(k,y){Aq(this)?(y=y.getLanguageInfo().getId(),ap(this,"setAudioTrack",{videoId:k,audioTrackId:y}),k=K5(this),k.audioTrackId=y,ur(this,k)):cV(this,g.W6(this.setAudioTrack,k,y))}; g.w.playVideo=function(k,y,q,N,D,n,T){N=N===void 0?null:N;D=D===void 0?null:D;n=n===void 0?null:n;T=T===void 0?null:T;var I=K5(this),H={videoId:k};q!==void 0&&(H.currentIndex=q);wD(I,k,q||0);y!==void 0&&(n5(I,y),H.currentTime=y);N&&(H.listId=N);D&&(H.playerParams=D);n&&(H.clickTrackingParams=n);T&&(H.locationInfo=g.Qs(T));ap(this,"setPlaylist",H);N||ur(this,I)}; g.w.mW=function(k,y){if(Aq(this)){if(k&&y){var q=K5(this);wD(q,k,y);ur(this,q)}ap(this,"previous")}else cV(this,g.W6(this.mW,k,y))}; g.w.nextVideo=function(k,y){if(Aq(this)){if(k&&y){var q=K5(this);wD(q,k,y);ur(this,q)}ap(this,"next")}else cV(this,g.W6(this.nextVideo,k,y))}; g.w.RI=function(){if(Aq(this)){ap(this,"clearPlaylist");var k=K5(this);k.reset();ur(this,k);this.publish("remotePlayerChange")}else cV(this,this.RI)}; g.w.M4=function(){Aq(this)?ap(this,"dismissAutoplay"):cV(this,this.M4)}; g.w.dispose=function(){if(this.C!=3){var k=this.C;this.C=3;this.publish("proxyStateChange",k,this.C)}g.fr.prototype.dispose.call(this)}; g.w.gF=function(){vlx(this);this.V=null;this.j.clear();Ip(this,null);g.fr.prototype.gF.call(this)}; g.w.Ad=function(k){if((k!=this.C||k==2)&&this.C!=3&&k!=0){var y=this.C;this.C=k;this.publish("proxyStateChange",y,k);if(k==1)for(;!this.j.isEmpty();)y=k=this.j,y.Z.length===0&&(y.Z=y.N,y.Z.reverse(),y.N=[]),k.Z.pop().apply(this);else k==3&&this.dispose()}}; g.w.XZw=function(k,y){this.publish(k,y)}; g.w.tHH=function(k){if(!k)this.ea(null),Ip(this,null);else if(this.N.receiver.volume){k=this.N.receiver.volume;var y=K5(this),q=Math.round(100*k.level||0);if(y.volume!=q||y.muted!=k.muted)vd("Cast volume update: "+k.level+(k.muted?" muted":"")),y.volume=q,y.muted=!!k.muted,ur(this,y)}}; g.w.ea=function(k){vd("Cast media: "+!!k);this.Z&&this.Z.removeUpdateListener(this.J);if(this.Z=k)this.Z.addUpdateListener(this.J),Ele(this),this.publish("remotePlayerChange")}; g.w.HYw=function(k){k?(Ele(this),this.publish("remotePlayerChange")):this.ea(null)}; g.w.Jd=function(){ap(this,"sendDebugCommand",{debugCommand:"stats4nerds "})}; g.w.jMH=function(){var k=rlN();k&&Ip(this,k)}; g.w.IH=function(k){Pd("CP",k)};g.z($0,g.fr);g.w=$0.prototype; g.w.connect=function(k,y){if(y){var q=y.listId,N=y.videoId,D=y.videoIds,n=y.playerParams,T=y.clickTrackingParams,I=y.index,H={videoId:N},K=y.currentTime,A=y.locationInfo;y=y.loopMode;K!==void 0&&(H.currentTime=K<=5?0:K);n&&(H.playerParams=n);A&&(H.locationInfo=A);T&&(H.clickTrackingParams=T);q&&(H.listId=q);D&&D.length>0&&(H.videoIds=D.join(","));I!==void 0&&(H.currentIndex=I);this.QM&&(H.loopMode=y||"LOOP_MODE_OFF");q&&(this.Z.listId=q);this.Z.videoId=N;this.Z.index=I||0;this.Z.state=3;n5(this.Z, K);this.j="UNSUPPORTED";q=this.QM?"setInitialState":"setPlaylist";jp("Connecting with "+q+" and params: "+g.Qs(H));this.N.connect({method:q,params:g.Qs(H)},k,DJb())}else jp("Connecting without params"),this.N.connect({},k,DJb());UMb(this)}; g.w.ZI=function(k){this.N.ZI(k)}; g.w.dispose=function(){this.VM()||(g.YU("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),XQ(this,3));g.fr.prototype.dispose.call(this)}; g.w.gF=function(){QtF(this);FO1(this);M4w(this);g.B1(this.J);this.J=NaN;g.B1(this.U);this.U=NaN;this.V=null;g.GI(this.sT);this.sT.length=0;this.N.dispose();g.fr.prototype.gF.call(this);this.j=this.B=this.C=this.Z=this.N=null}; g.w.ou=function(k){if(!this.C||this.C.length===0)return!1;for(var y=g.p(this.C),q=y.next();!q.done;q=y.next())if(!q.value.capabilities.has(k))return!1;return!0}; g.w.yQ=function(){var k=3;this.VM()||(k=0,isNaN(this.lc())?this.N.Jk()&&isNaN(this.Y)&&(k=1):k=2);return k}; g.w.ZH=function(k){jp("Disconnecting with "+k);g.YU("yt.mdx.remote.remoteClient_",null);QtF(this);this.publish("beforeDisconnect",k);k==1&&GX();this.N.disconnect(k);this.dispose()}; g.w.Jy=function(){var k=this.Z;this.V&&(k=this.Z.clone(),wD(k,this.V,k.index));return OrO(k)}; g.w.sHH=function(k){var y=this,q=new N1(k);q.videoId&&q.videoId!=this.Z.videoId&&(this.V=q.videoId,g.B1(this.J),this.J=g.bW(function(){if(y.V){var D=y.V;y.V=null;y.Z.videoId!=D&&z$(y,"getNowPlaying")}},5E3)); var N=[];this.Z.listId==q.listId&&this.Z.videoId==q.videoId&&this.Z.index==q.index||N.push("remoteQueueChange");this.Z.playerState==q.playerState&&this.Z.volume==q.volume&&this.Z.muted==q.muted&&T$(this.Z)==T$(q)&&g.Qs(this.Z.trackData)==g.Qs(q.trackData)||N.push("remotePlayerChange");this.Z.reset(k);g.HY(N,function(D){this.publish(D)},this)}; g.w.J6=function(){var k=this.N.getDeviceId(),y=g.he(this.C,function(q){return q.type=="REMOTE_CONTROL"&&q.id!=k}); return y?y.id:""}; g.w.lc=function(){return this.N.Eu()}; g.w.Wz=function(){return this.j||"UNSUPPORTED"}; g.w.YA=function(){return this.B||""}; g.w.fP=function(){!isNaN(this.lc())&&this.N.w4()}; g.w.JwD=function(k,y){z$(this,k,y);Sow(this)}; g.w.Xb=function(){var k=g.tw("SAPISID","")||g.tw("__Secure-1PAPISID")||"",y=g.tw("__Secure-3PAPISID","")||"";if(!k&&!y)return"";k=g.xz(g.Xq(k),2);y=g.xz(g.Xq(y),2);return g.xz(g.Xq(","+k+","+y),2)}; $0.prototype.subscribe=$0.prototype.subscribe;$0.prototype.unsubscribeByKey=$0.prototype.q0;$0.prototype.getProxyState=$0.prototype.yQ;$0.prototype.disconnect=$0.prototype.ZH;$0.prototype.getPlayerContextData=$0.prototype.Jy;$0.prototype.setPlayerContextData=$0.prototype.sHH;$0.prototype.getOtherConnectedRemoteId=$0.prototype.J6;$0.prototype.getReconnectTimeout=$0.prototype.lc;$0.prototype.getAutoplayMode=$0.prototype.Wz;$0.prototype.getAutoplayVideoId=$0.prototype.YA;$0.prototype.reconnect=$0.prototype.fP; $0.prototype.sendMessage=$0.prototype.JwD;$0.prototype.getXsrfToken=$0.prototype.Xb;$0.prototype.isCapabilitySupportedOnConnectedDevices=$0.prototype.ou;g.z(stO,Vl);g.w=stO.prototype;g.w.z3=function(k){return this.Hn.$_gs(k)}; g.w.contains=function(k){return!!this.Hn.$_c(k)}; g.w.get=function(k){return this.Hn.$_g(k)}; g.w.start=function(){this.Hn.$_st()}; g.w.add=function(k,y,q){this.Hn.$_a(k,y,q)}; g.w.remove=function(k,y,q){this.Hn.$_r(k,y,q)}; g.w.JS=function(k,y,q,N){this.Hn.$_un(k,y,q,N)}; g.w.gF=function(){for(var k=this.Z.length,y=0;y1&&!this.G.getOption("remote","quickCast")?(this.g5=g.KA(k,this.Z,this),this.Ln(g.My(k,this.Z)),k=this.G.getOption("remote","currentReceiver"),k=this.Z(k),this.options[k]&&this.n0(k),this.enable(!0)):this.enable(!1)}; Sp.prototype.Z=function(k){return k.key}; Sp.prototype.J0=function(k){return k==="cast-selector-receiver"?"Transmitir\u2026":this.g5[k].name}; Sp.prototype.gS=function(k){g.oQ.prototype.gS.call(this,k);this.G.setOption("remote","currentReceiver",this.g5[k]);this.nY.IM()};g.z(Xx1,g.pi);g.w=Xx1.prototype; g.w.create=function(){var k=this.player.S(),y=g.o9(k);k={device:"Desktop",app:"youtube-desktop",loadCastApiSetupScript:k.W("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:k.W("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:k.W("enable_cast_short_lived_lounge_token")};quE(y,k);this.subscriptions.push(g.OG("yt-remote-before-disconnect",this.nzS,this));this.subscriptions.push(g.OG("yt-remote-connection-change",this.i_S,this));this.subscriptions.push(g.OG("yt-remote-receiver-availability-change",this.xN, this));this.subscriptions.push(g.OG("yt-remote-auto-connect",this.vlF,this));this.subscriptions.push(g.OG("yt-remote-receiver-resumed",this.Ybj,this));this.subscriptions.push(g.OG("mdx-privacy-popup-confirm",this.zES,this));this.subscriptions.push(g.OG("mdx-privacy-popup-cancel",this.NpM,this));this.xN()}; g.w.load=function(){this.player.cancelPlayback();g.pi.prototype.load.call(this);this.T3=new uH$(this,this.player,this.C_);var k=(k=KeL())?k.currentTime:0;var y=wxg()?new HV(EF(),void 0):null;k==0&&y&&(k=T$(K5(y)));k!==0&&this.Qx(k);$8O(this,this.M5,this.M5);this.player.QA(6)}; g.w.unload=function(){this.player.publish("mdxautoplaycanceled");this.TX=this.zp;g.TF(this.T3,this.C_);this.C_=this.T3=null;g.pi.prototype.unload.call(this);this.player.QA(5);G$(this)}; g.w.gF=function(){g.PT(this.subscriptions);g.pi.prototype.gF.call(this)}; g.w.tF=function(k){var y=g.P6.apply(1,arguments);this.loaded&&this.T3.Cn.apply(this.T3,[k].concat(g.m(y)))}; g.w.getAdState=function(){return this.Zm}; g.w.PD=function(){return this.C_?K5(this.C_).PD:!1}; g.w.oC=function(){return this.C_?K5(this.C_).oC:!1}; g.w.Qx=function(k,y){this.Xj=k||0;this.player.publish("progresssync",k,y);this.player.rf("onVideoProgress",k||0)}; g.w.getCurrentTime=function(){return this.Xj}; g.w.getProgressState=function(){var k=K5(this.C_),y=this.player.getVideoData();return{airingStart:0,airingEnd:0,allowSeeking:!k.pn()&&this.player.VD(),clipEnd:y.clipEnd,clipStart:y.clipStart,current:this.getCurrentTime(),displayedStart:-1,duration:k.getDuration(),ingestionTime:k.N?k.C+D8(k):k.C,isAtLiveHead:(k.N?k.Z+D8(k):k.Z)-this.getCurrentTime()<=1,loaded:k.J,seekableEnd:k.N?k.Z+D8(k):k.Z,seekableStart:k.V>0?k.V+D8(k):k.V,offset:0,viewerLivestreamJoinMediaTime:0}}; g.w.nextVideo=function(){this.C_&&this.C_.nextVideo()}; g.w.mW=function(){this.C_&&this.C_.mW()}; g.w.nzS=function(k){k===1&&(this.jV=this.C_?K5(this.C_):null)}; g.w.i_S=function(){var k=wxg()?new HV(EF(),void 0):null;if(k){var y=this.TX;this.loaded&&this.unload();this.C_=k;this.jV=null;y.key!==this.zp.key&&(this.TX=y,this.load())}else g.n1(this.C_),this.C_=null,this.loaded&&(this.unload(),(k=this.jV)&&k.videoId===this.player.getVideoData().videoId&&this.player.cueVideoById(k.videoId,T$(k)));this.player.publish("videodatachange","newdata",this.player.getVideoData(),3)}; g.w.xN=function(){var k=[this.zp],y=k.concat,q=N7w();k0()&&g.sq("yt-remote-cast-available")&&q.push({key:"cast-selector-receiver",name:"Cast..."});this.g5=y.call(k,q);k=nAO()||this.zp;L5(this,k);this.player.rf("onMdxReceiversChange")}; g.w.vlF=function(){var k=nAO();L5(this,k)}; g.w.Ybj=function(){this.TX=nAO()}; g.w.zES=function(){this.TV=!0;G$(this);UF=!1;br&&BV(br,1);br=null}; g.w.NpM=function(){this.TV=!1;G$(this);L5(this,this.zp);this.TX=this.zp;UF=!1;br=null;this.player.playVideo()}; g.w.aU=function(k,y){switch(k){case "casting":return this.loaded;case "receivers":return this.g5;case "currentReceiver":return y&&(y.key==="cast-selector-receiver"?mMe():L5(this,y)),this.loaded?this.TX:this.zp;case "quickCast":return this.g5.length===2&&this.g5[1].key==="cast-selector-receiver"?(y&&mMe(),!0):!1}}; g.w.Jd=function(){this.C_.Jd()}; g.w.vQ=function(){return!1}; g.w.getOptions=function(){return["casting","receivers","currentReceiver","quickCast"]}; g.w.isLoggedIn=function(){var k,y;return((k=g.H1("PLAYER_CONFIG"))==null?void 0:(y=k.args)==null?void 0:y.authuser)!==void 0?!0:!(!g.H1("SESSION_INDEX")&&!g.H1("LOGGED_IN"))};g.zg("remote",Xx1);})(_yt_player);