(function(){'use strict';function m(a){var b=0;return function(){return b>>0)+"_",f=0;return b});
t("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c>>0),F=0;Math.max.apply(Math,x(Object.values({u:1,s:2,o:4,B:8,D:16,v:32,h:64,l:128,i:256,C:512,j:1024,m:2048,A:4096})));function G(a,b){this.width=a;this.height=b}
G.prototype.aspectRatio=function(){return this.width/this.height};
G.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
G.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
G.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function H(){var a=document;var b="DIV";a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)}
;var I=new WeakMap;function J(a,b){a=[a];for(var c=b.length-1;c>=0;--c)a.push(typeof b[c],b[c]);return a.("\v")}
;function K(a,b,c){if(b instanceof G)c=b.height,b=b.width;else if(c==void 0)throw Error("missing height argument");a.style.width=L(b);a.style.height=L(c)}
function L(a){typeof a=="number"&&(a=Math.round(a)+"px");return a}
;var M=function(a,b){function c(f){f=v(f);f.next();f=w(f);return b(d,f)}
b=b===void 0?J:b;var d=D(a);return function(){var f=z.apply(0,arguments),g=this||B,h=I.get(g);h||(h={},I.set(g,h));g=h;h=[this].concat(x(f));f=c?c(h):h;if(Object.prototype.hasOwnProperty.call(g,f))g=g[f];else{var p=v(h);h=p.next().value;p=w(p);h=a.apply(h,p);g=g[f]=h}return g}}(function(a){var b=H();
a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=H();K(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;b&&b.parentNode&&b.parentNode.removeChild(b);return a});var N=B.window,O,P,Q=(N==null?void 0:(O=N.yt)==null?void 0:O.config_)||(N==null?void 0:(P=N.ytcfg)==null?void 0:P.data_)||{};C("yt.config_",Q);function R(){var a={};return"EXPERIMENT_FLAGS"in Q?Q.EXPERIMENT_FLAGS:a}
;function S(a){a=R()[a];return typeof a==="string"&&a==="false"?!1:!!a}
function T(a,b){a=R()[a];return a===void 0&&b!==void 0?b:Number(a||0)}
;var U=T("kevlar_watch_page_horizontal_margin",24),V=T("kevlar_watch_page_columns_top_padding",24),aa=426+U*2,W=T("kevlar_watch_two_column_width_threshold",1E3),X=U*2,ba=T("kevlar_watch_secondary_width",402),ca=T("kevlar_watch_max_player_width",1280),da=T("kevlar_watch_flexy_metadata_height",136),ea=X+310+U,fa=X+360+U;
function Y(a,b,c){c=c===void 0?!1:c;var d=Math.max(a.width,aa);if(S("kevlar_watch_feed_big_thumbs")&&a.width>=1550-M()&&a.height>=800)d-=fa;else if(a.width>=W){var f=X+ba+U;S("kevlar_watch_feed_big_thumbs")&&(f=ea);d-=f}else d-=X;d=Math.min(d,ca);f=240;c&&(f=380);b<.5624||(!S("kevlar_watch_flexy_disable_small_window_sizing")&&(a.height<630&&a.width>=657||a.height>=630&&a.width>=W&&a.width<1327)?f=360:!S("kevlar_watch_flexy_disable_large_window_sizing")&&a.height>=630&&a.width>=1327&&(f=480));var g=
Math.min(d*b,a.height-(56+V+da));g=Math.max(g,f);b<1?d=g/b:a.width>=W&&(d=Y(a,.5625,c).width);return new G(Math.round(d),Math.round(g))}
function Z(a){if(a){var b=.5625,c=a.querySelector(".html5-video-player");c&&typeof c.getVideoAspectRatio==="function"&&(b=1/c.getVideoAspectRatio());c=window.document;c=c.compatMode=="CSS1Compat"?c.documentElement:c.body;b=Y(new G(c.clientWidth,c.clientHeight),b);K(a,b)}}
;C("yt.flexy.setPlayerlikeElementSize",Z);S("desktop_delay_player_resizing")||Z(document.querySelector("#player.skeleton #player-api"));}).call(this);
AboutPressCopyright usCreatorsDevelopersCancel hipsPrivacyPolicy & SafetyHow YouTube worksTest new features