!B.pv&&!Ia(B,n6.FRAMERATE))return"capHfr";if(D.ww&&X.video.qualityOrdinal>= 4320)return"blk8khfr";if(X.V()&&D.uY&&X.contentProtection&&X.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(D.Zf&&X.Zf>D.Zf)return"ratecap";if(D.s7>0&&X.qp()&&X.video.height>D.s7)return"mvhcap";D=hdb(B,X);return D!==!0?D:!0}; ql=function(D,X=[]){g.HA(D,(B,C)=>{const V=C.Zf-B.Zf;if(!B.qp()||!C.qp())return V;let x=C.video.height*C.video.width-B.video.height*B.video.width;!x&&X&&X.length>0&&(B=X.indexOf(B.NF)+1,C=X.indexOf(C.NF)+1,x=B===0||C===0?C||-1:B-C);x||(x=V);return x})}; JtA=function(D,X){if(X>D.NU())D.segments=[];else{var B=tz(D.segments,C=>C.Xy>=X,D); B>0&&D.segments.splice(0,B)}}; Kt=function(D){const X=D.data.getUint8(D.offset+D.L);D.L+=1;return X}; oa=function(D){const X=D.data.getUint16(D.offset+D.L);D.L+=2;return X}; eB=function(D){const X=D.data.getInt32(D.offset+D.L);D.L+=4;return X}; dH=function(D){const X=D.data.getUint32(D.offset+D.L);D.L+=4;return X}; Gr=function(D){var X=D.data;var B=D.offset+D.L;X=X.getUint32(B)*4294967296+X.getUint32(B+4);D.L+=8;return X}; Z8=function(D,X=NaN){let B;if(isNaN(X))B=D.size;else for(B=D.L;B1?Math.ceil(V*X):Math.floor(V*X))}D.skip(1);B=Kt(D)<<16|oa(D);if(B&256){C=B&1;V=B&4;var x=B&512,y=B&1024,m=B&2048;B=dH(D);C&&D.skip(4);V&&D.skip(4);C=(x?4:0)+(y?4:0)+(m?4:0);for(V=0;V1?Math.ceil(y*X):Math.floor(y*X)),D.skip(C)}}}; nt=function(D,X){if(D.byteLength-X<8)return!1;var B=D.getUint32(X);if(B<8||D.byteLength-X122)return!1}return!0}; wH=function(D,X){const B=D.getUint32(X),C=D.getUint32(X+4);return new kBV(D,X,B,C)}; g.tB=function(D){const X=D.data.getUint8(D.dataOffset)?20:12;return D.data.getUint32(D.dataOffset+X)}; OH=function(D){D=new DataView(D.buffer,D.byteOffset,D.byteLength);return(D=g.PG(D,0,1836476516))?g.tB(D):NaN}; SB=function(D){return D===1701082227||D===1836019558||D===1836019574||D===1835297121||D===1835626086||D===1937007212||D===1953653094||D===1953653099||D===1836475768}; UeA=function(D){var X=g.PG(D,0,1937011556);if(!X)return null;X=Tr(D,X.dataOffset+8,1635148593)||Tr(D,X.dataOffset+8,1635135537);if(!X)return null;var B=Tr(D,X.dataOffset+78,1936995172),C=Tr(D,X.dataOffset+78,1937126244);if(!C)return null;X=null;if(B)switch(B.skip(4),Kt(B)){default:X=0;break;case 1:X=2;break;case 2:X=1;break;case 3:X=255}let V=B=null,x=null;if(C=Tr(D,C.dataOffset,1886547818)){const y=Tr(D,C.dataOffset,1886546020);let m=Tr(D,C.dataOffset,2037673328);if(!m&&(m=Tr(D,C.dataOffset,1836279920), !m))return null;y&&(y.skip(4),B=eB(y)/65536,x=eB(y)/65536,V=eB(y)/65536);D=MA9(m);D=new DataView(D.buffer,D.byteOffset+8,D.byteLength-8);return new sV1(X,B,x,V,D)}return null}; g.rH=function(D){if(D.data.getUint8(D.dataOffset)){var X=D.data;D=D.dataOffset+4;X=X.getUint32(D)*4294967296+X.getUint32(D+4)}else X=D.data.getUint32(D.dataOffset+4);return X}; Rds=function(D){D=new kBV(D.data,D.offset,D.size,D.type,D.Z);var X=Kt(D);D.skip(7);const B=dH(D);let C;X===0?(X=dH(D),C=dH(D)):(X=Gr(D),C=Gr(D));D.skip(2);const V=oa(D),x=[],y=[];for(let m=0;m=2)return null;const V=new DataView(X.buffer,X.byteOffset,X.length),x=g.PG(V,0,1937011556);if(!x)return null;X=V.getUint32(x.dataOffset+8);C=V.getUint32(x.dataOffset+12);if(C!==1701733217&&C!==1701733238)return null;C=new a$X(D.byteLength+X);QC(C,D,0,B.offset+12);C.data.setInt32(C.offset,2);C.offset+=4;QC(C,D,B.offset+16,B.size-16);QC(C,V,V.byteOffset+x.dataOffset+8,X);QC(C,D,B.offset+B.size,D.byteLength- (B.offset+B.size));B=[1836019574,1953653099,1835297121,1835626086,1937007212,1937011556];for(const y of B)B=g.PG(D,0,y),C.data.setUint32(B.offset,B.size+X);D=g.PG(C.data,0,1953654136);C.data.setUint32(D.offset+16,2);return C.data}; I$$=function(D){var X=g.PG(D,0,1937011556);if(!X)return null;var B=D.getUint32(X.dataOffset+12);if(B!==1701733217&&B!==1701733238)return null;X=Tr(D,X.offset+24+(B===1701733217?28:78),1936289382);if(!X)return null;B=Tr(D,X.offset+8,1935894637);if(!B||D.getUint32(B.offset+12)!==1667392371)return null;X=Tr(D,X.offset+8,1935894633);if(!X)return null;X=Tr(D,X.offset+8,1952804451);if(!X)return null;B=new Uint8Array(16);for(let C=0;C<16;C++)B[C]=D.getInt8(X.offset+16+C);return B}; mG=function(D,X,B){var C=new By(B);if(!CC(C,D))return!1;C=VP(C);if(!xW(C,X))return!1;for(D=0;X;)X>>>=8,D++;X=C.start+C.pos;const V=yP(C,!0);C=D+(C.start+C.pos-X)+V;C=C>9?K8$(C-9,8):K8$(C-2,1);D=X-D;B.setUint8(D++,236);for(X=0;XB;V++)B=B*256+fC(D),C*=128;return X?B-C:B}; iI=function(D){return D.pos>=D.L.byteLength}; lI=function(D){const X=yP(D,!0);let B=fC(D);for(let C=1;C0){const C=WN(10,6357,X.substring(B+1));g.kg(C,function(V,x){this.set(x,V)},D); X=X.substring(0,B)}X=pl(25,6277,X);g.kg(X,function(C,V){this.set(V,C)},D)}; L8_=function(D){const X=D.FI.hO(),B=[];g.kg(D.L,(V,x)=>{B.push(`${x}=${V}`)}); if(!B.length)return X;const C=B.join("&");D=Cg(2,6293,D.FI)?"&":"?";return X+D+C}; hI=function(D,X){D[X]||(D[X]=new gHu);return D[X]}; JI=function(D){D.V=(0,g.Q)();D.started=0;D.timedOut=0;D.L=0}; Mb=function(D,X){let B=D.started+D.L*4;X&&(B+=D.Z);B=Math.max(0,B-3);return 1.6**B}; EHV=function(D,X,B){if(pl(8,6858,D.L))return!1;var C=hI(B,Hl(45,5251,D.L));if(C.timedOut<1&&C.L<1)return!1;C=C.timedOut+C.L;D=AI(D,X);B=hI(B,Hl(29,5299,D));return B.timedOut+B.L+00))return D}; Ug=function(D,X){return new kW(D,D+X-1)}; RR=function(D){if(!D)return new kW(0,0);var X=Number(D.start);D=Number(D.end);if(!isNaN(X)&&!isNaN(D)&&(X=new kW(X,D),X.length>0))return X}; w9A=function(D){D.length===1||g.P1(D,B=>!!B.range); for(var X=1;X=X.range.start+X.L&&D.range.start+D.L+D.Z<=X.range.start+X.L+X.Z:D.Xy===X.Xy&&D.L>=X.L&&(D.L+D.Z<=X.L+X.Z||X.U)}; VnX=function(D,X){return D.VV!==X.VV?!1:D.N()&&X.type===3&&D.VV.L()?(D=D.VV.vZ(D),So(D,B=>VnX(B,X))):D.Xy===X.Xy&&!!X.Z&&X.L+X.Z>D.L&&X.L+X.Z<=D.L+D.Z}; KC=function(D,X){var B=X.Xy;D.Y="updateWithSegmentInfo";D.Xy=B;if(D.startTime!==X.startTime||D.duration!==X.duration)D.startTime=X.startTime,D.duration=X.duration,Pe9(D)}; oR=function(D){return!Nb(D.dw[D.dw.length-1])}; e6=function(D){return D.dw[D.dw.length-1].N()}; g.dR=function(D,X,B){let C;B=D.dk===null?D.cC.dk(X,B,D.dw[0].type):D.dk;D.L?(X=B?M0(D.L,X.Hc):D.L,C=new j6(X),C.get("alr")||C.set("alr","yes"),D.Z&&QVV(C,D.Z)):/http[s]?:\/\//.test(D.Z)?C=new j6(new g.pQ(D.Z)):(C=Hy(D.cC,B,X),D.Z&&QVV(C,D.Z));(X=D.range)?C.set("range",X.toString()):D.dw[0].VV.K()&&D.dw.length===1&&D.dw[0].L&&C.set("range",`${D.dw[0].L}-`);D.requestId&&C.set("req_id",D.requestId);isNaN(D.UI)||C.set("headm",D.UI.toString());isNaN(D.G)||C.set("mffa",`${D.G}ms`);D.urlParams&&g.kg(D.urlParams, (V,x)=>{C.set(x,V)}); return C}; xzu=function(D){if(D.range)return D.U;D=D.dw[0];return Math.round(D.K*D.VV.info.Zf)}; yDu=function(D,X){return Math.max(0,D.dw[0].V-X)}; mzs=function(D,X){for(const B of D.dw)if(B.type===3&&X>=B.V&&X<=B.G)return!0;return!1}; Go=function(D,X,B){for(;D;D=D.parentNode){if(!D.attributes||B&&D.nodeName!==B)continue;const C=D.getAttribute(X);if(C)return C}return""}; ZI=function(D,X){for(;D;D=D.parentNode){const B=D.getElementsByTagName(X);if(B.length>0)return B[0]}return null}; i9Y=function(D){if(!D)return 0;const X=D.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return X?(Number(X[2])|0)*3600+(Number(X[4])|0)*60+(Number(X[6])|0):Number(D)|0}; lds=function(D){return D.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?`${D}Z`:D}; $z_=function(D){const X=D.U;D.U=[];return X}; Wvu=function(D){D.L||(D.L=new QP);return D.L}; vMB=function(D,X){D.Z[X]||(D.Z[X]=new QP);return D.Z[X]}; LC=function(D,X="",B=""){D=new g.pQ(D,!0);D.set("alr","yes");B&&(B=fQ(84,4692,fQ(16,4852,B)),D[h[3]](X,RD(10,4164,B)));return D}; fds=function(D,X){D.U[X]||(D.U[X]=new QP);return D.U[X]}; urA=function(D,X){const B=[];X=Array.from(X.getElementsByTagName("SegmentTimeline"));for(const C of X){X=C.parentNode.parentNode;let V=null;X.nodeName==="Period"?V=Wvu(D):X.nodeName==="AdaptationSet"?(X=X.getAttribute("id")||X.getAttribute("mimetype")||"",V=vMB(D,X)):X.nodeName==="Representation"&&(X=X.getAttribute("id")||"",V=fds(D,X));if(V==null)return;V.update(C);g.$g(B,$z_(V))}g.$g(D.V,B);$Xb(D.V,C=>C.startSecs*1E3+C.L)}; plX=function(D){D.L&&(D.L.L=[]);g.kg(D.Z,X=>{X.L=[]}); g.kg(D.U,X=>{X.L=[]})}; gR=function(D,X){return jU(D.segments,B=>X-B.Xy)}; h1Y=function(D,X,B){const C=D.index.K(X),V=D.index.getStartTime(X);let x=D.index.getDuration(X);B?x=B=0:B=D.info.Zf*x;return new Eg([new IR(3,D,void 0,"otfCreateRequestInfoForSegment",X,V,x,0,B)],C)}; JDo=function(D,X){if(!D.index.isLoaded()){var B=[],C=X.G;X=X.Y.split(",").filter(W=>W.length>0); var V=0,x=0,y=0,m=/^(\d+)/,l=/r=(\d+)/;for(let W=0;W0&&(D.L=Math.min(D.L+B,10),D.Z=V),D.L>0?(D.L--, D=!0):D=!1,D?(typeof C==="function"&&(C=C()),console.log(`${"plyr"}.${X}`,C)):(C=(FvY.get(X)??0)+1,FvY.set(X,C),C%100===1&&console.warn("plyr",`${"plyr"}.${X} is chatty, dropping logs.`)))}; Py=function(D){if(!D.Y){if(g.EO(D.info.VV.info)){var X=g.S6(D);var B=Tr(X,0,1836019574);if(B){B=B.offset+B.size;var C=new Uint8Array(B);C.set(new Uint8Array(X.buffer,X.byteOffset,B));X=C}else X=null}else X=deY(new By(g.S6(D)));X&&(D.info.VV.Z=X,D.Y=!0)}}; g.S6=function(D){return Ge_(D.Z)}; z1u=function(D,X){X=Math.min(X,D.info.Z);const {v_:B,M5:C}=D.Z.split(X),V=new tI(new IR(D.info.type,D.info.VV,D.info.range,D.info.Y,D.info.Xy,D.info.startTime,D.info.duration,D.info.L,X,!1,D.info.WK,D.info.clipId),B);V.V=D.V;V.U=D.U;X=new tI(new IR(D.info.type,D.info.VV,D.info.range,D.info.Y,D.info.Xy,D.info.startTime,D.info.duration,D.info.L+X,D.info.Z-X,D.info.U,D.info.WK,D.info.clipId),C);X.V=D.V;X.U=D.U;return[V,X]}; g.Og=function(D){g.EO(D.info.VV.info)||D.info.VV.info.o8();if(D.U!==-1)return D.U;if(D.L&&HGu(D.L))return D.U=HGu(D.L),D.U;if(g.EO(D.info.VV.info)){var X=g.S6(D);var B=D.info.VV.Z,C=NaN;let V=NaN,x=0;for(;nt(X,x);){const y=wH(X,x);y.type===1936286840?V=y.data.getUint32(y.dataOffset+8):y.type===1836476516?V=g.tB(y):y.type===1952867444&&isNaN(C)&&(C=g.rH(y));x=SB(y.type)?x+8:x+y.size}!V&&B&&(V=OH(B));X=C/V}else X=new By(g.S6(D)),B=D.G?X:new By(new DataView(D.info.VV.Z.buffer)),C=uI(B),B=X.pos,X.pos= 0,pC(X)?xW(X,231)?(C=lI(X)*C/1E9,X.pos=B,X=C):(X.pos=B,X=NaN):(X.pos=B,X=NaN);D.U=X||D.info.V;return D.U}; b9_=function(D,X){g.EO(D.info.VV.info)||D.info.VV.info.o8();D.U=X;if(g.EO(D.info.VV.info)){var B=g.S6(D);D=D.info.VV.Z;var C=NaN,V=NaN;let l=0;for(;nt(B,l);){const W=wH(B,l);isNaN(C)&&(W.type===1936286840?C=W.data.getUint32(W.dataOffset+8):W.type===1836476516&&(C=g.tB(W)));if(W.type===1952867444){!C&&D&&(C=OH(D));var x=g.rH(W);isNaN(V)&&(V=Math.round(X*C)-x);var y=W;x+=V;if(y.data.getUint8(y.dataOffset)){var m=y.data;y=y.dataOffset+4;m.setUint32(y,Math.floor(x/4294967296));m.setUint32(y+4,x&4294967295)}else y.data.setUint32(y.dataOffset+ 4,x)}l=SB(W.type)?l+8:l+W.size}return!0}B=new By(g.S6(D));D=D.G?B:new By(new DataView(D.info.VV.Z.buffer));C=uI(D);D=B.pos;B.pos=0;if(pC(B)&&xW(B,231))if(V=yP(B,!0),X=Math.floor(X*1E9/C),Math.ceil(Math.log(X)/Math.log(2)/8)>V)X=!1;else{for(C=V-1;C>=0;C--)B.L.setUint8(B.pos+C,X&255),X>>>=8;B.pos=D;X=!0}else X=!1;return X}; knu=function(D,X){D.timestampOffset>0&&(X-=D.timestampOffset);var B=g.Og(D)+X;b9_(D,B);D.timestampOffset=X}; rR=function(D){g.EO(D.info.VV.info)||D.info.VV.info.o8();if(D.L&&D.info.type===6)return D.L.Ba;if(g.EO(D.info.VV.info)){var X=g.S6(D);var B=0;X=g.DI(X,1936286840);for(var C of X)X=Rds(C),B+=X.yZ[0]/X.timescale;B=B||NaN;if(!(B>=0))a:{B=g.S6(D);C=D.info.VV.Z;let f=X=0;for(var V=0;nt(B,X);){const u=wH(B,X);if(u.type===1836476516)f=g.tB(u);else if(u.type===1836019558){!f&&C&&(f=OH(C));if(!f){B=NaN;break a}var x=Tr(u.data,u.dataOffset,1953653094),y=x;x=f;var m=Tr(y.data,y.dataOffset,1952868452);y=Tr(y.data, y.dataOffset,1953658222);var l=eB(m);eB(m);l&2&&eB(m);m=l&8?eB(m):0;var W=eB(y),v=W&1;l=W&4;const p=W&256,M=W&512,k=W&1024;W&=2048;const N=dH(y);v&&eB(y);l&&eB(y);v=0;for(let Y=0;Yg.DG(X,B,4,1E3),D,{format:"RAW", method:"GET",withCredentials:!0})}; g.Id_=function(D){let X;D.responseType&&D.responseType!=="text"?D.responseType==="arraybuffer"&&(X=kb(new Uint8Array(D.response))):X=D.responseText;return!X||X.length>2048?"":X.indexOf("https://")===0?X:""}; Ba=function(D,X,B){X.match(KvY);return D(X,B).then(C=>{const V=g.Id_(C.xhr);return V?Ba(D,V,B):C.xhr})}; oMV=function(D){return So(D,X=>"FORMAT_STREAM_TYPE_OTF"===X.type)?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; dzz=function(D,X,B=0,C){C=new g.yj("",C,!1);C.duration=B||0;for(const V of D){D=mg(V,X,C.duration);const {k_:x,s:y,At:m}=fQ(58,6271,V);(B=LC(x||V.url||"",m,y))&&(D.streamType==="FORMAT_STREAM_TYPE_OTF"?iR(C,new e1$(B,D)):iR(C,new lR(B,D,RR(V.initRange),RR(V.indexRange))))}C.isOtf=!0;return C}; Gn$=function(D,X,B=0,C){C=new g.yj("",C.experiments,!1);C.duration=B||0;for(const V of D){D=mg(V,X,C.duration);B=RR(V.initRange);const x=RR(V.indexRange),{k_:y,s:m,At:l}=fQ(59,6270,V),W=LC(y||V.url||"",l,m);W&&iR(C,new lR(W,D,B,x))}return C}; mg=function(D,X,B=0){let C=D.mimeType||"";var V=D.itag;var x=D.xtags;V=V?V.toString():"";x&&(V+=`;${x}`);x=V;if(dA(C)){var y=D.width||640;V=D.height||360;var m=D.fps,l=D.qualityLabel;const k=D.qualityOrdinal,N=D.colorInfo,Y=D.projectionType;var W;D.stereoLayout&&(W=Z9B[D.stereoLayout]);const a=adb(D)||void 0;var v;N?.primaries&&(v=QLz[N.primaries]||void 0);y=new Zr(y,V,m,Y,W,void 0,l,k&&Lv9[k],a,v);C=$E(C,y,Wa[D.itag||""]);va&&(C+="; enableflushduringseek=true");f7&&(C+="; enableresetaudiodecoder=true")}let f; if(eh(C)){var u=D.audioSampleRate;W=D.audioTrack;u=new Gl(u?+u:void 0,D.audioChannels,D.spatialAudioType,D.isDrc,D.loudnessDb,D.trackAbsoluteLoudnessLkfs,D.audioQuality||"AUDIO_QUALITY_UNKNOWN",D.isVb);W&&(v=W.displayName,V=W.id,m=W.audioIsDefault,W=W.isAutoDubbed,v&&(f=new g.uR(v,V||"",!!m,!!W)))}let p;D.captionTrack&&(W=D.captionTrack.displayName,v=D.captionTrack.vssId,V=D.captionTrack.languageCode,m=D.captionTrack.kind,l=D.captionTrack.id,W&&v&&V&&(p=new gMY(W,v,V,m,D.xtags,l)));W=Number(D.bitrate)/ 8;v=Number(D.contentLength);V=Number(D.lastModified);l=D.drmFamilies;m=D.type;D=Number(D.approxDurationMs);let M;if(X&&l){M={};for(const k of l)(l=p7[k])&&(M[l]=X[l])}return new Qy(x,C,{audio:u,video:y,Se:f,contentProtection:M,Zf:W,Yc:B&&v?v/B:0,contentLength:v,lastModified:V,captionTrack:p,streamType:m,approxDurationMs:D})}; EM9=function(D){return So(D,X=>"FORMAT_STREAM_TYPE_OTF"===X.stream_type)?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; nM$=function(D,X,B=0,C){C=new g.yj("",C,!1);C.duration=B||0;for(const V of D)if(D=hk(V,X,C.duration),B=LC(V.url,V.sp,V.s))if(D.streamType==="FORMAT_STREAM_TYPE_OTF")iR(C,new e1$(B,D));else{const x=sg(V.init),y=sg(V.index);iR(C,new lR(B,D,x,y))}C.isOtf=!0;return C}; wl9=function(D,X,B=0,C){C=new g.yj("",C?.experiments,!1);C.duration=B||0;for(const V of D){D=hk(V,X,C.duration);B=sg(V.init);const x=sg(V.index),y=LC(V.url,V.sp,V.s);y&&iR(C,new lR(y,D,B,x))}return C}; hk=function(D,X,B=0){let C=D.type;var V=D.itag;var x=D.xtags;x&&(V=D.itag+";"+x);if(dA(C)){var y=(D.size||"640x360").split("x");y=new Zr(+y[0],+y[1],+D.fps,D.projection_type,+D.stereo_layout,void 0,D.quality_label,+D.quality_ordinal,D.eotf,D.primaries);C=$E(C,y,Wa[D.itag]);va&&(C+="; enableflushduringseek=true");f7&&(C+="; enableresetaudiodecoder=true")}let m,l;eh(C)&&(m=new Gl(+D.audio_sample_rate||void 0,+D.audio_channels||0,D.spatial_audio_type,!!D.drc),D.name&&(l=new g.uR(D.name,D.audio_track_id, D.isDefault==="1",D.isAutoDubbed==="1")));let W;D.caption_display_name&&D.caption_vss_id&&D.caption_language_code&&(W=new gMY(D.caption_display_name,D.caption_vss_id,D.caption_language_code,D.caption_kind,D.xtags,D.caption_id));x=Number(D.bitrate)/8;const v=Number(D.clen),f=Number(D.lmt);B=B&&v?v/B:0;let u;if(X&&D.drm_families){u={};for(const p of D.drm_families.split(","))u[p]=X[p]}return new Qy(V,C,{audio:m,video:y,Se:l,contentProtection:u,Zf:x,Yc:B,contentLength:v,lastModified:f,captionTrack:W, streamType:D.stream_type,approxDurationMs:Number(D.approx_duration_ms)})}; Tcz=function(D){switch(D){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}}; SrB=function(D){switch(D){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}}; tnu=function(D,X,B){return Ps9(new g.yj(D,X,B),D)}; sH=function(D){return g.cA(D.L,X=>pl(15,6861,X.cC.L))}; $eo=function(D){return g.cA(D.L,X=>!!X.info.video&&X.info.video.isHdr())}; iR=function(D,X){D.L[X.info.id]=X;D.G.set(bI(X,D.ao),X)}; Ps9=function(D,X=""){D.state=1;D.HZ=(0,g.Q)();return Yru(X||D.sourceUrl).then(B=>{if(!D.S7()){D.gf=B.status;B=B.responseText;const V=new DOMParser;B=CH(V,Cs(B),"text/xml").getElementsByTagName("MPD")[0];D.pv=i9Y(Go(B,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(B.attributes)for(C of B.attributes)if(C.value==="http://youtube.com/yt/2012/10/10"){var C=C.name.split(":")[1];break b}C=""}D.S=C;D.isLive=D.pv{let C; B instanceof OG&&(C=B.xhr,D.gf=C.status);D.state=3;D.publish("loaderror");return IW(C)})}; g.rD1=function(D){return g.cA(D.L,X=>oD(X.info.mimeType))}; DiY=function(D){return g.cA(D.L,X=>X.info.video?X.info.video.projectionType==="EQUIRECTANGULAR":!1)}; Xiz=function(D){return g.cA(D.L,X=>X.info.video?X.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1)}; Bjo=function(D){return g.cA(D.L,X=>X.info.video?X.info.video.projectionType==="MESH":!1)}; CJz=function(D){return g.cA(D.L,X=>X.info.video?X.info.video.stereoLayout===1:!1)}; VaY=function(D){return NC(D.L,X=>X.info.video?X.O7():!0)}; yaA=function(D,X){let B=Go(X,"id");B=B.replace(":",";");let C=Go(X,"mimeType");var V=Go(X,"codecs");C=V?`${C}; codecs="${V}"`:C;V=Number(Go(X,"bandwidth"))/8;const x=Number(ZI(X,"BaseURL").getAttribute(D.S+":contentLength")),y=D.duration&&x?x/D.duration:0;if(dA(C)){var m=Number(Go(X,"width")),l=Number(Go(X,"height")),W=Number(Go(X,"frameRate"));const M=Tcz(Go(X,D.S+":projectionType"));a:switch(Go(X,D.S+":stereoLayout")){case "layout_left_right":var v=1;break a;case "layout_top_bottom":v=2;break a; default:v=0}v=new Zr(m,l,W,M,v)}if(eh(C)){var f=Number(Go(X,"audioSamplingRate"));var u=Number(Go(X.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=SrB(Go(X,D.S+":spatialAudioType"));f=new Gl(f,u,m);a:{l=Go(X,"lang")||"und";if(u=ZI(X,"Role"))if(W=Go(u,"value")||"",g.K0(xi9,W)){u=`${l}.${xi9[W]}`;m=W==="main";D=Go(X,D.S+":langName")||`${l} - ${W}`;u=new g.uR(D,u,m);break a}u=void 0}}if(X=ZI(X,"ContentProtection"))if(X.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var p= {};for(X=X.firstChild;X!=null;X=X.nextSibling){if(!(X instanceof Element))continue;if(!/SystemURL/.test(X.nodeName))continue;D=X.getAttribute("type");m=X.textContent;D&&m&&(p[D]=m.trim())}}else p=void 0;return new Qy(B,C,{audio:f,video:v,Se:u,contentProtection:p,Zf:V,Yc:y,contentLength:x})}; O9A=function(D){var X=D.pv;isFinite(X)&&(Jk(D)?D.refresh():(X=Math.max(0,D.HZ+X-(0,g.Q)()),D.V||(D.V=new g.tM(D.refresh,X,D),g.U(D,D.V)),D.V.start(X)))}; Jk=function(D){return D.isLive&&(0,g.Q)()-D.HZ>=D.pv}; mib=function(D){D=D.L;for(const X in D){const B=D[X].index;if(B.isLoaded())return B.NU()+1}return 0}; MW=function(D){return D.Pm?D.Pm-(D.N||D.timestampOffset):0}; Ak=function(D){return D.Ao?D.Ao-(D.N||D.timestampOffset):0}; jJ=function(D){if(!isNaN(D.G2))return D.G2;var X=D.L;for(var B in X){var C=X[B].index;if(C.isLoaded()&&!oD(X[B].info.mimeType)){X=0;for(B=C.Jv();B<=C.NU();B++)X+=C.getDuration(B);X/=C.u2();X=Math.round(X/.5)*.5;C.u2()>10&&(D.G2=X);return X}if(D.isLive&&(C=X[B],C.Ba))return C.Ba}return NaN}; ibo=function(D,X){D=G8(D.L,C=>C.index.isLoaded()); if(!D)return NaN;D=D.index;const B=D.iW(X);return D.getStartTime(B)===X?X:B49?"p60":X>32?"p48":""}`;X=ft()[D];if(X!=null&&X>0)return X;X=YE.get(D);if(X!=null&&X>0)return X;B=B?.get(D);return B!=null&&B>0?B:8192}; Jaz=function(D,X=!1){eNu(X);dBV(X);if(X){for(const B of YE.keys())B.startsWith("1")||YE.delete(B);for(const B of K7.values())B.startsWith("1")||K7.delete(B);for(const B of D.keys())B.startsWith("1")||D.delete(B)}else YE.clear(),K7.clear(),D.clear()}; j0Y=function(D,{isOtf:X,YZ:B,bF:C,IS:V,nJ:x,fD:y,l6:m,SK:l,N_:W,disableAv1:v,Gp:f}){const u=new Ma$(D);if(D.je()||D.X("html5_logging_format_selection"))u.L=!0;u.O7=x;u.fD=y&&D.K;u.N_=W;g.hl("windows nt 5.1")&&!g.oq&&(u.Dt=!0);if(x=B)x=g.eJ(D)?Aa_(D):!1;x&&(u.Z3=!0);m&&(u.Dt=!0,u.Ay=!0);X&&!D.X("html5_otf_prefer_vp9")&&(u.Dt=!0);D.playerStyle==="picasaweb"&&(X&&(u.Dt=!1),u.J=!1);V&&(u.Dt=!0);Ia(D.G,n6.CHANNELS)&&(D.X("html5_enable_ac3")&&(u.V=!0),D.X("html5_enable_eac3")&&(u.G=!0),D.X("html5_enable_ac3_gapless")&& (u.vZ=!0));D.X("html5_block_8k_hfr")&&(u.ww=!0);u.S=g.vg(D.experiments,"html5_max_selectable_quality_ordinal");u.Y=g.vg(D.experiments,"html5_min_selectable_quality_ordinal");dl&&(u.zW=480);if(C||B)u.J=!1;u.D3=!1;u.disableAv1=v;X=Gb(D,u.Z,void 0,u.disableAv1);X>0&&X<2160&&(CD()||D.X("html5_format_hybridization"))&&(u.Z.supportsChangeType=+CD(),u.Ya=X);X>=2160&&(u.U7=!0);u.SK=l;u.b0=g.yF||N6()&&!l?!1:!0;u.K=D.X("html5_format_hybridization");u.BZ=D.X("html5_disable_encrypted_vp9_live_non_2k_4k");u.xU= f;return u}; Gb=function(D,X={},B,C=!1){if(C)return X.disabled=1,0;if(Ia(D.G,n6.AV1_CODECS)&&Ia(D.G,n6.HEIGHT)&&Ia(D.G,n6.BITRATE))return X.isCapabilityUsable=1,8192;C=1080;var V=navigator.hardwareConcurrency;V<=2&&(C=480);X.coreCount=V;if(V=g.vg(D.experiments,"html5_default_av1_threshold"))C=X["default"]=V;if(D=D.G.Z3)X.mcap=D,C=Math.max(C,D);if(B){if(D=B.videoInfos.find(x=>x.L())?.G?.powerEfficient)C=8192,X.isEfficient=1; B=B.videoInfos[0].video;V=Math.min(Iq("1",B.fps),Iq("1",30));X.perfCap=V;C=Math.min(C,V);B.isHdr()&&!D&&(X.hdr=1,C*=.75)}else B=Iq("1",30),X.perfCap30=B,C=Math.min(C,B),B=Iq("1",60),X.perfCap60=B,C=Math.min(C,B);return X.av1Threshold=C}; VAB=function(D){let X=["o","a","A"];D.N_===1&&(D.V&&(X=["mac3","MAC3"].concat(X)),D.G&&(X=["meac3","MEAC3"].concat(X)),D.Lr&&(X=["i","I"].concat(X)));D.Z3&&(X=["so","sa"].concat(X));!D.Ay||D.vZ||D.U||D.F2||X.unshift("a");D.U&&(X=(HbB[D.U]||[D.U]).concat(X));return X}; W8u=function(D){if(D.O7)return["f"];if(g.hl("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");let X=["9h","9","h","8"];D.X2&&X.push("1e");X=X.concat(["(h","(","H","*"]);D.U7&&(X.unshift("1"),X.unshift("1h"));D.Dt&&X.unshift("h");D.N&&(X=(HbB[D.N]||[D.N]).concat(X));return X}; Z9=function(){const D=window;let X=D.MSMediaKeys;za()&&!X&&(X=D.WebKitMediaKeys);return X&&X.isTypeSupported?X:null}; Qj=function(D){return navigator.requestMediaKeySystemAccess?g.f6&&!g.M6()?R_("45"):g.yF||g.u_?D.hF("edge_nonprefixed_eme"):g.oq?R_("47"):g.o6&&D.hF("html5_enable_safari_fairplay")?!1:!0:!1}; L7=function(D){return D.V?!1:!D.keySystemAccess&&!!Z9()&&D.keySystem==="com.microsoft.playready"}; gl=function(D){return D.keySystem==="com.microsoft.playready"}; EC=function(D){return!D.keySystemAccess&&!!Z9()&&D.keySystem==="com.apple.fps.1_0"}; n7=function(D){return D.keySystem==="com.youtube.fairplay"}; g.wl=function(D){return D.flavor==="fairplay"}; Fa9=function(D,X,B,C){const V=Al(),x=(B=V||B&&za())?["com.youtube.fairplay"]:["com.widevine.alpha"];X&&x.unshift("com.youtube.widevine.l3");V&&C&&x.unshift("com.youtube.fairplay.sbdl");return B?x:D?[...x,...Tb.playready]:[...Tb.playready,...x]}; Pa=function(D){if(!D.S7())if(D.Z.length===0)D.callback(D.V);else{var X=D.Z[0],B=D.U[X],C=zVX(D,B);SJ&&SJ.keySystem===X&&SJ.CE===JSON.stringify(C)?(D.T2("remksa",{re:!0}),bb1(D,B,SJ.keySystemAccess)):(D.T2("remksa",{re:!1,ok:SJ?.keySystem??""}),SJ=void 0,navigator.requestMediaKeySystemAccess(X,C).then(Sw(V=>{bb1(D,B,V,C)}),Sw(()=>{D.G=!D.G&&D.U[D.Z[0]].flavor==="widevine"; D.G||D.Z.shift();Pa(D)})))}}; s0u=function(D){if(Z9()&&(g.o6||ke))D.V.push(new tk("fairplay","com.apple.fps.1_0","",D.qF.experiments));else{var X=kTs(),B=g.O$(D.Z,C=>{const V=D.U[C];let x=!1,y=!1;for(const m in D.L[V.flavor])X(m,C)&&(V.Z[m]=!0,x=x||m.indexOf("audio/")===0,y=y||m.indexOf("video/")===0);return x&&y}); B&&D.V.push(D.U[B]);D.Z=[]}D.callback(D.V)}; Ui$=function(D,X){D.callback=X;D.V=[];Qj(D.qF.experiments)?Pa(D):s0u(D)}; zVX=function(D,X){const B={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(D.X("html5_enable_vp9_fairplay")&&n7(X))return B.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),B.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[B];gl(X)&&(B.initDataTypes=["keyids","cenc"]);for(const V of Object.keys(D.L[X.flavor])){var C=V.indexOf("audio/")===0;const x=C?B.audioCapabilities:B.videoCapabilities;X.flavor!=="widevine"||D.G?x.push({contentType:V}): C?x.push({contentType:V,robustness:"SW_SECURE_CRYPTO"}):(g.f6&&g.hl("windows nt")&&!D.X("html5_drm_enable_moho")||x.push({contentType:V,robustness:"HW_SECURE_ALL"}),C=V,D.qF.G.Z&&V.includes("vp09")&&(C=V+"; experimental=allowed"),x.push({contentType:C,robustness:"SW_SECURE_DECODE"}),OC(D.qF)==="MWEB"&&(cD()||Jl())&&(D.T2("swcrypto",{}),x.push({contentType:V,robustness:"SW_SECURE_CRYPTO"})))}return[B]}; bb1=function(D,X,B,C){if(!D.S7()){C&&(SJ={keySystem:X.keySystem,keySystemAccess:B,CE:JSON.stringify(C)});X.keySystemAccess=B;if(gl(X)){var V=Wz();for(var x of Object.keys(D.L[X.flavor]))X.Z[x]=!!V.canPlayType(x)}else{x=X.keySystemAccess.getConfiguration();if(x.audioCapabilities)for(V of x.audioCapabilities)X.Z[V.contentType]=!0;if(x.videoCapabilities)for(const y of x.videoCapabilities)X.Z[y.contentType]=!0}D.V.push(X);D.useCobaltWidevine||D.X("html5_enable_vp9_fairplay")&&X.L()?(D.Z.shift(),Pa(D)): D.callback(D.V)}}; kTs=function(){const D=Z9();if(D){const B=D.isTypeSupported;return(C,V)=>B(V,C)}const X=Wz(); return X&&(X.addKey||X.webkitAddKey)?(B,C)=>!!X.canPlayType(B,C):()=>!1}; qxV=function(D,X){switch(X.Wb){case "bool":return D.hF(X.jC);case "int":return D=RVB(D,X.jC),Xy(D);case "double":return RVB(D,X.jC);case "string":return cau(D,X.jC);case "int32_list":return Nju(D,X.jC);case "int64_list":return Nju(D,X.jC).map(B=>Xy(B)); case "string_list":throw Error("String list flags are not supported in WPCC");default:throw Error("Unknown flag type");}}; RVB=function(D,X){D=D.flags.get(`${X}`);return Number(D)||0}; cau=function(D,X){return(D=D.flags.get(`${X}`))?D.toString():""}; Nju=function(D,X){if(D=D.flags.get(`${X}`))if(D=D.replace(/\[ *(.*?) *\]/,"$1"))return D.split(",").map(Number);return[]}; rl=function(D,X){return(D=D.Fy(X))?D.toString():""}; g.vg=function(D,X,B=0){D=D.Fy(X);JSON.stringify(D);return D===void 0?B:Number(D)}; aU9=function(D){if(D=D.Fy("html5_web_po_experiment_ids"))if(D=D.replace(/\[ *(.*?) *\]/,"$1"))return D.split(",").map(Number);return[]}; Yxu=function(D){if(D.L)return D.L;if(D.experimentIds.length<=1)return D.L=D.experimentIds,D.L;const X=[...D.experimentIds].map(B=>Number(B)); X.sort();for(let B=X.length-1;B>0;--B)X[B]-=X[B-1];D.L=X.map(B=>B.toString()); D.L.unshift("v1");return D.L}; ytV=function(D,X){const B=new Map;for(const C of X.keys()){const V=C.split("_")[0];D.has(V)||B.set(C,X.get(C))}return B}; iGA=function(D,X,B){const C=X.video?.fps||0,V=`${D}_${C}`,x=!!X.audio,y={itag:X.itag,NF:D,Y4:x};if(x)y.numChannels=X.audio.numChannels;else{var m=X.video;y.maxWidth=m?.width;y.maxHeight=m?.height;y.maxFramerate=C;y.maxBitrateBps=X.Zf*8;y.Xm=m?.isHdr()}m=B.get(V);m?x||(X=Math.max(m.maxWidth||0,m.maxHeight||0)>Math.max(y.maxWidth||0,y.maxHeight||0)?m:y,D={itag:X.itag,NF:D,Y4:x,maxWidth:Math.max(m.maxWidth||0,y.maxWidth||0),maxHeight:Math.max(m.maxHeight||0,y.maxHeight||0),maxFramerate:C,Xm:X.Xm},D.maxBitrateBps= X.maxBitrateBps,B.set(V,D)):B.set(V,y)}; hdb=function(D,X,B=1){const C=X.itag;if(C==="0")return!0;let V=X.mimeType;if(X.NF==="1e"&&!D.V)return"dav1enc";if(X.L()&&D.N)return"dav1";if(X.video&&(X.video.isHdr()||X.video.primaries==="bt2020")&&!(Ia(D,n6.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(C==="338"&&!(g.f6?R_(53):g.oq&&R_(64)))return"dopus";B=r4_(X,B);D.Z&&X.V()&&(B[n6.EXPERIMENTAL.name]= "allowed");for(const m of Object.keys(n6)){const l=n6[m];var x;if(x=B[l.name])if(x=!(l===n6.EOTF&&X.mimeType.indexOf("vp09.02")>0)){x=l;var y=X;x=!(D.experiments.hF("html5_ignore_h264_framerate_cap")&&x===n6.FRAMERATE&&Scu(y))}if(x)if(Ia(D,l))if(D.G){if(D.G[l.name]1080&&X.contentProtection&&(V+="; hdcp=2.2");return C==="227"?"hqcenc":C!=="585"&&C!=="588"&&C!== "583"&&C!=="586"&&C!=="584"&&C!=="587"&&C!=="591"&&C!=="592"||D.experiments.hF("html5_enable_new_hvc_enc")?Al()&&pE()>=21&&g.hl("appletv5")&&(C==="410"||C==="845")?!0:D.isTypeSupported(V)?!0:"tpus":"newhvc"}; Ia=function(D,X){X.name in D.Y||(D.Y[X.name]=IU$(D,X));return D.Y[X.name]}; Ka_=function(D){navigator.mediaCapabilities?.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(X=>{X.smooth&&X.powerEfficient&&(D.Z3=2160)})}; Dy=function(){const D=Jl()&&!R_(29),X=g.hl("google tv")&&g.hl("chrome")&&!R_(30);return D||X?!1:Cis()}; oj$=function(D,X,B){let C=480;for(const V of X)X=V.video.qualityOrdinal,X<=1080&&X>C&&hdb(D,V,B)===!0&&(C=X);return C}; g.XS=function(D,X=!1){return Dy()&&D.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!X&&D.canPlayType(Wz(),"application/x-mpegURL")?!0:!1}; dio=function(D){eVo(()=>{for(const X of Object.keys(n6))Ia(D,n6[X])})}; IU$=function(D,X){if(D.G)return!!D.G[X.name];if(X===n6.BITRATE&&D.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!D.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(X===n6.AV1_CODECS)return D.isTypeSupported(`video/mp4; codecs=${X.valid}`)&&!D.isTypeSupported(`video/mp4; codecs=${X.HD}`);let B;X.video?(B='video/webm; codecs="vp9"',D.isTypeSupported(B)||(B='video/mp4; codecs="avc1.4d401e"')):(B='audio/webm; codecs="opus"', D.isTypeSupported(B)||(B='audio/mp4; codecs="mp4a.40.2"'));return D.isTypeSupported(`${B}; ${X.name}=${X.valid}`)&&!D.isTypeSupported(`${B}; ${X.name}=${X.HD}`)}; GTB=function(D,X){let B=0;D.U.has(X)&&(B=D.U.get(X).G1);D.U.set(X,{G1:B+1,A0:2**(B+1)});D.L=!0}; Q0B=function(D,X,B,C,V){if(X&&typeof X==="object"){const x=y=>ZbV(D,y,B,C,V); if(UD(X))return X.then(x);if(K_(X))return G$(X,x)}return ZbV(D,X,B,C,V)}; gjb=function(D,X,B,C=1){B>=0&&(X in D.L||(D.L[X]=new LaY),D.L[X].xS(B,C))}; ZbV=function(D,X,B,C,V){const x=(0,g.Q)();V=V?V(X):void 0;const y=V?.Mx??1;y!==0&&gjb(D,V?.profile??B,x-C,y);return X}; Ej1=function(D){const X=window;X.ywc||(X.ywc={});var B=X.ywc[D];if(B)return B;B={};return X.ywc[D]=B}; njb=function(D){const X=window;X.ywc&&delete X.ywc[D]}; wi_=function(D){const X=Ej1(D);if(X.binP)return X.binP;X.binP=Promise.resolve().then(()=>fetch(D)).then(B=>{if(!B.ok)throw Error(`HTTP${B.statusText}`); return B.arrayBuffer()}); X.binP.then(B=>{X.bin=B},()=>{njb(D)}); return X.binP}; PJ9=function(D,X,B){return L_(void 0,function(){return function*(){const C=BU.ST(),V=D&&C$;if(!V&&!X)return B?.("wasmns",{p:D?"1":"0",a:X?"1":"0",s:C$?"1":"0"}),ew(Error("wasm.wm.ns"));const x=new Tj$;if(V)try{const y=yield*gk(SxX(x,D)),m=new VT(y,x,!1,!0);BU.WX("winit",C);B?.("wasmsw",{});return m}catch(y){if(B?.("wasmerrw",{e:`${y}`}),!X)throw Error(`wasm.wm.iw: ${y}`);}if(!X)throw Error("wasm.wm.xx");try{const y=yield*gk(X(x)),m=new VT({exports:y},x,!0,!0);BU.WX("winitjs",C);B?.("wasmsa",{});return m}catch(y){throw B?.("wasmerra", {e:`${y}`}),Error(`wasm.wm.ia: ${y}`);}}()})}; SxX=function(D,X){return L_(ta$,function(){const B=this;return function*(){if(!B.L)throw"wasm.ps.ns";const C=yield*gk(Obb(B,X));if(!C)throw"wasm.ps.um";return yield*gk(WebAssembly.instantiate(C,D))}()})}; Obb=function(D,X){return L_(D,function(){const B=this;return function*(){const C=[],V=()=>"wasm.ps.c: ["+C.map(m=>`"${m}"`).join(", ")+"]",x=Ej1(X); if(x.mod)return x.mod;if(x.modP)try{return yield*gk(x.modP)}catch(m){C.unshift("pcm")}let y=x.bin;if(!y&&x.binP)try{y=yield*gk(x.binP)}catch(m){C.unshift("pfb")}if(!y)try{y=yield*gk(wi_(X))}catch(m){throw B.L=!1,C.unshift(`fb: ${m}`),V();}try{return yield*gk(WebAssembly.compile(y))}catch(m){njb(X),C.unshift(`ca: ${m}`)}throw V();}()})}; rao=function(D,X,B,C){B=D.L.MP(B);var V=D.Z;V.L.exports.AES128CTRCipher_setCounter(V.cipher,B.byteOffset);X=D.L.MP(X);D.Z.encrypt(X);V=void 0;if(C){C=D.L;V=D.U;const x=new Uint8Array(C.exports.memory.buffer,C.malloc(32),32);C.exports.Sha256Hmac(V.byteOffset,V.byteLength,B.byteOffset,B.byteLength,X.byteOffset,X.byteLength,x.byteOffset);V=D.L.Mc(x)}D.L.free(B.byteOffset);return{Le:D.L.Mc(X),signature:V}}; DAb=function(D){D.V||(D.V=new x8(D.Z));return D.V}; yT=function(D){try{return Nx(D)}catch(X){return null}}; X69=function(D){var X=oAu();if(X.values){X=X.values;const y={};for(var B of Object.keys(D.values)){X[B]&&D.Z[B]&&(D.values[B]+=X[B]-D.Z[B]);var C=D,V=C;if(!V.values[B]){var x=oAu();V.values=x.values||{};V.ue=x.halfLives||{};V.Z=x.values?Object.assign({},x.values):{}}y[B]=C.values[B]&&C.ue[B]?C.values[B]/2**(C.L/C.ue[B]):0}D.Z=y}B=D.ue;X={};X.values=D.Z;X.halfLives=B;g.xk("yt-player-memory",X,2592E3)}; fB=function(D){return/web/i.test(OC(D))}; g.m4=function(D){return OC(D)==="WEB_UNPLUGGED"}; g.n9=function(D){return OC(D)==="WEB_REMIX"}; g.iE=function(D){return D.X("html5_local_playsinline")?ke&&!g.kh(602)&&!("playsInline"in Wz()):ke&&!D.Fb||g.hl("nintendo wiiu")?!0:!1}; g.WU=function(D){return D.V&&g.lE(D)&&!$8(D)&&!D.S}; BSb=function(D){return OC(D)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; $8=function(D){return D.pv==="adunit"||D.playerStyle==="gvn"}; vU=function(D){return D.pv==="detailpage"}; g.lE=function(D){return D.pv==="embedded"}; g.f$=function(D){return D.pv==="profilepage"}; g.uE=function(D){if(!D.webPlayerContextConfig?.embedsHostFlags?.enableLiteUx||D.Io||D.S||D.U||D.U7==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";D=g.vg(D.experiments,"embeds_web_lite_mode");return D===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":D>=0&&D0&&D.Ht&&(C.sort(),g.UW(new g.AO("Player client parameters changed after startup",C)));D.userAge=KE(D.userAge,X.user_age);D.SS=oo(D.SS,X.user_display_email);D.userDisplayImage=oo(D.userDisplayImage,X.user_display_image);g.zP(D.userDisplayImage)||(D.userDisplayImage="");D.userDisplayName=oo(D.userDisplayName, X.user_display_name);D.KH=oo(D.KH,X.user_gender);D.csiPageType=oo(D.csiPageType,X.csi_page_type);D.csiServiceName=oo(D.csiServiceName,X.csi_service_name);D.SR=ao(D.SR,X.enablecsi);D.pageId=oo(D.pageId,X.pageid);if(B=X.enabled_engage_types)D.enabledEngageTypes=new Set(B.split(","));X.living_room_session_po_token&&(D.Z1=X.living_room_session_po_token.toString())}; hw=function(D){return OC(D)==="WEB_KIDS"}; OC=function(D){return D.L.c}; qR=function(D,X){return!D.S&&Jl()&&R_(55)&&D.controlsType==="3"&&!X}; g.M1=function(D){D=Jw(D.Ds);return D==="www.youtube-nocookie.com"?"www.youtube.com":D}; Aw=function(D,X,B){return D.protocol+"://i1.ytimg.com/vi/"+X+"/"+(B||"hqdefault.jpg")}; jG=function(D){return vU(D)&&!g.m4(D)}; HU=function(D){return D.pv==="leanback"}; g.uA=function(D){return/^TVHTML5/.test(OC(D))}; FS=function(D){return OC(D)==="TVHTML5"}; xAz=function(D){return D.L.cmodel==="CHROMECAST ULTRA/STEAK"||D.L.cmodel==="CHROMECAST/STEAK"}; g.zV=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; g.bE=function(D){return OC(D).toUpperCase()==="WEB"}; k8=function(D){return OC(D)==="TVHTML5_UNPLUGGED"}; g.vT=function(D){return g.m4(D)||OC(D)==="TV_UNPLUGGED_CAST"||k8(D)}; Cg=function(D,X,B,C){var V=X^D;((D^46)&14)==2&&(C=(C%B[h[V^850]]+B[h[V^850]])%B[h[V^850]],B[h[6]](C,1));if((D&71)==D){WN(3,V^6775,B);var x=g.cA(B[h[V^6311]],yF1)}if((D>>2&14)==2&&B[h[9]]!=0){var y=EP(1,6738,C,B);C=y[0]}(D+3&26)>=D&&(D+2&39){V.signedOut?B.resolve(""):B.resolve(x.token)},x=>{g.UW(new g.AO("b189348328_oauth_callback_failed",{error:x})); B.resolve(X)}); return C!==void 0?CE(C):new XG(B)}return CE(X)}; K$=function(D,X=""){return D.bv?ou(!0):Qa(G$(ou(g.IM(D,X)),B=>ou(!!B)),()=>ou(!1))}; Wwb=function(D,X){D.Cv=X;D.Ay?.L?.S(X);X.L?D.Y2.push("asmjs"):D.Y2.push("wasm")}; Jw=function(D){const X=g.re(D);return(D=Number(g.td(D)[4]||null)||null)?`${X}:${D}`:X}; oM=function(D,X=!1){const B=Wa[D];let C=vbz[B];const V=fk$[D];if(!V||!C)return null;X=new Zr(X?V.height:V.width,X?V.width:V.height,V.fps);C=$E(C,X,B);return new Qy(D,C,{video:X,Zf:V.bitrate/8})}; p69=function(D){const X=vbz[Wa[D]],B=ut_[D];return B&&X?new Qy(D,X,{audio:new Gl(B.audioSampleRate,B.numChannels)}):null}; NR=function(D,X,B,C){if(B)return BD();B={};const V=Wz();for(const x of X)if(D.canPlayType(V,x.getInfo().mimeType)||C)if(X=x.L.video.quality,!B[X]||B[X].getInfo().o8())B[X]=x;D=[];B.auto&&D.push(B.auto);for(const x of aD)(C=B[x])&&D.push(C);return D.length?CE(D):BD()}; JF1=function(D,X=!1,B=!0,C={}){const V={};for(const y of D){if(X&&MediaSource&&MediaSource.isTypeSupported&&(D=y.type,y.audio_channels&&(D=D+"; channels="+y.audio_channels),!MediaSource.isTypeSupported(D))){C[y.itag]="tpus";continue}if(!B&&y.drm_families&&(y.eotf==="smpte2084"||y.eotf==="arib-std-b67")){C[y.itag]="enchdr";continue}D=void 0;const m={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"};var x=y.type.match(/codecs="([^"]*)"/);x=x?x[1]:"";y.audio_track_id&&(D=new g.uR(y.name, y.audio_track_id,!!y.is_default));const l=y.eotf;D=new hiu({itag:y.itag,url:y.url,codecs:x,width:Number(y.width),height:Number(y.height),fps:Number(y.fps),bitrate:Number(y.bitrate),audioItag:y.audio_itag,Ud:l?m[l]:void 0,contentProtection:y.drm_families,Se:D,audioChannels:Number(y.audio_channels)});V[D.itag]=V[D.itag]||[];V[D.itag].push(D)}return V}; Mzz=function(D,X){D.U.some(B=>B.Se?.getId()===X); D.L=X}; AF1=function(D){const X=[],B=[];for(const C of D.Z)C.bitrate<=D.V?X.push(C):B.push(C);X.sort((C,V)=>V.bitrate-C.bitrate); B.sort((C,V)=>C.bitrate-V.bitrate); D.Z=X.concat(B)}; eG=function(D,X,B){D.cpn&&(X=g.lm(X,{cpn:D.cpn}));B&&(X=g.lm(X,{paired:B}));return X}; jnu=function(D,X){D=D.itag.toString();X!==null&&(D+=X.itag.toString());return D}; HAu=function(D,X){if(!(xf||za()||Al()))return null;D=JF1(X,D.X("html5_filter_fmp4_in_hls"));if(!D)return null;X=[];const B={};for(const C of Object.keys(D))for(const V of D[C])if(V.Se){const x=V.Se.getId();if(!B[x]){const y=new g.d0(x,V.Se);B[x]=y;X.push(y)}}return X.length>0?X:null}; sn$=function(D,X,B,C,V,x,y){if(!(xf||za()||Al()))return BD();const m={},l=Fwo(B),W=JF1(B,D.X("html5_filter_fmp4_in_hls"),D.G.S,m);if(!W)return y({noplst:1}),BD();zi$(W);const v={fairplay:"https://youtube.com/api/drm/fps?ek=uninitialized"};let f;B=[];const u=[],p=[];var M=null;let k="";C=C&&C.match(/hls_timedtext_playlist/)?new hiu({itag:"0",url:C,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Se:new g.uR("English","en",!1)}):null;for(const K of Object.keys(W))if(!D.X("html5_disable_drm_hfr_1080")|| K!=="383"&&K!=="373")for(const G of W[K])if(G.width){for(const Gs of G.Z)if(W[Gs]){G.L=Gs;break}G.L||(G.L=bA$(W,G));const x_=W[G.L];if(!x_)continue;B.push(G);G.contentProtection==="fairplay"&&(f=v);let yA="";G.Ud==="PQ"?yA="smpte2084":G.Ud==="HLG"&&(yA="arib-std-b67");yA&&(k=yA);p.push(k0A(x_,[G],C,x,G.itag,G.width,G.height,G.fps,l,void 0,void 0,f,yA));if(!M||G.width*G.height*G.fps>M.width*M.height*M.fps)M=G}else u.push(G);else m[K]="disdrmhfr";p.reduce((K,G)=>G.getInfo().isEncrypted()&&K,!0)&&(f= v); V=Math.max(V,0);const {fps:N=0,width:Y=0,height:a=0}=M||{};M=D.X("html5_native_audio_track_switching");p.push(k0A(u,B,C,x,"93",Y,a,N,l,"auto",V,f,k,M));Object.entries(m).length&&y(m);return NR(D.G,p,qR(D,X),!1)}; k0A=function(D,X,B,C,V,x,y,m,l,W,v,f,u,p){let M=0,k="";for(const N of D)k||(k=N.itag),N.audioChannels&&N.audioChannels>M&&(M=N.audioChannels,k=N.itag);V=new Qy(V,"application/x-mpegURL",{audio:new Gl(0,M),video:new Zr(x,y,m,null,void 0,W,void 0,void 0,u),contentProtection:f,vz:k});D=new UAV(D,X,B?[B]:[],C,!!p);D.V=v?v:1369843;return new Rio(V,D,l)}; Fwo=function(D){for(const X of D)if(X.url&&(D=X.url.split("expire/"),!(D.length<=1)))return+D[1].split("/")[0];return NaN}; bA$=function(D,X){for(const B of Object.keys(D)){const C=D[B][0];if(!C.width&&C.contentProtection===X.contentProtection&&!C.audioChannels)return B}return""}; zi$=function(D){const X=new Set;for(var B of Object.values(D))if(B.length){var C=B[0];C.height&&C.codecs.startsWith("vp09")&&X.add(C.height)}B=[];if(X.size)for(const V of Object.keys(D))D[V].length&&(C=D[V][0],C.height&&X.has(C.height)&&!C.codecs.startsWith("vp09")&&B.push(V));for(const V of B)delete D[V]}; NS9=function(D,X,B){const C=[];for(const V of B){if(!V||!V.url)continue;B=cz(V.type,"medium","0");C.push(new cF1(B,V.url))}return NR(D.G,C,qR(D,X),!1)}; qmA=function(D,X){const B=[],C=cz(X.type,"auto",X.itag);B.push(new cF1(C,X.url));return NR(D.G,B,!1,!0)}; Ym$=function(D){return D&&aku[D]?aku[D]:null}; Ik_=function(D){switch(D){case "multiview.ustreamer_disabled":case "sabr.invalid_input_stream":case "sabr.live_no_max_sq":case "sabr.live_unauthorized_request":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return D;default:return"sabr.config"}}; obY=function(D,X){if(X=X?.watchEndpointSupportedOnesieConfig?.html5PlaybackOnesieConfig)D.vB=new Kw$(X)}; g.GV=function(D){const X=[];if(D.displayName)X.push(D.displayName);else{const B=D.languageName||"";X.push(B);D.kind==="asr"&&B.indexOf("(")===-1&&X.push(" (Automatic Captions)");D.name&&X.push(` - ${D.name}`)}D.translationLanguage&&X.push(` >> ${D.translationLanguage.languageName}`);return X.join("")}; g.Zy=function(D){const X={languageCode:D.languageCode,languageName:D.languageName,displayName:g.GV(D),kind:D.kind,name:D.name,id:D.id,is_servable:D.L,is_default:D.isDefault,is_translateable:D.isTranslateable,vss_id:D.vssId};D.xtags&&(X.xtags=D.xtags);D.captionId&&(X.captionId=D.captionId);D.translationLanguage&&(X.translationLanguage=D.translationLanguage);return X}; g.QT=function(D){return D.translationLanguage?D.translationLanguage.languageCode:D.languageCode}; g.eiu=function(D){let X=D.vssId;D.translationLanguage&&X&&(X=`t${X}.${g.QT(D)}`);return X}; QnV=function(D,X,B,C){D||(D=X&&dAV.hasOwnProperty(X)&&G0A.hasOwnProperty(X)?G0A[X]+"_"+dAV[X]:void 0);X=D;if(!X)return null;D=X.match(ZAV);if(!D||D.length!==5)return null;{const x=X.match(ZAV);if(x){D=Number(x[3]);var V=[7,8,10,5,6];D=!(Number(x[1])===1&&D===8)&&V.indexOf(D)>=0}else D=!1}return B||C||D?X:null}; L$=function(D,X){const B={};for(const V of Object.keys(Lw1)){var C=X?X+V:V;C=D[C+"_webp"]||D[C];g.zP(C)&&(B[Lw1[V]]=C)}return B}; g0=function(D){const X={};if(!D||!D.thumbnails)return X;D=D.thumbnails.filter(V=>!!V.url); D.sort((V,x)=>V.width-x.width||V.height-x.height); for(var B of Object.keys(gbo)){var C=Number(B);const V=gbo[C];for(const x of D)if(x.width>=C){C=Eb_(x.url);g.zP(C)&&(X[V]=C);break}}(B=D.pop())&&B.width>=1280&&(B=Eb_(B.url),g.zP(B)&&(X["maxresdefault.jpg"]=B));return X}; Eb_=function(D){return D.startsWith("//")?"https:"+D:D}; El=function(D){return D&&D.baseUrl||""}; n$=function(D){D=g.jX(D);for(const X of Object.keys(D)){const B=D[X];D[X]=Array.isArray(B)?B[0]:B}return D}; w6u=function(D,X){for(var B of X)if(X=B.playerAnnotationsUrlsRenderer){X.adsOnly&&(D.uE=!0);if(B=X.loadPolicy)D.annotationsLoadPolicy=nbY[B];if(B=X.invideoUrl)D.OZ=bA(B);D.Rs=!0;break}}; TS$=function(D,X){D.botguardData=X.playerAttestationRenderer.botguardData;X=X.playerAttestationRenderer.challenge;X!=null&&(D.K8=X)}; PTY=function(D,X){D.captionTracks=[];if(X.captionTracks)for(var B of X.captionTracks){var C=Sm9(B.baseUrl);if(!C)return;C={is_translateable:!!B.isTranslatable,languageC