From: Rogério Brito Date: Fri, 4 Oct 2013 12:25:46 +0000 (-0300) Subject: Merge tag 'upstream/2013.10.04' X-Git-Url: https://git.rapsys.eu/youtubedl/commitdiff_plain/0a55ea74a5189ae5ba16d182df9a75995d367009?hp=3a13758a7879c524f704ce73ca0781d4354d3b72 Merge tag 'upstream/2013.10.04' Upstream version 2013.10.04 --- diff --git a/README.md b/README.md index fc8070c..14d62b1 100644 --- a/README.md +++ b/README.md @@ -31,8 +31,9 @@ which means you can modify it, redistribute it or use it however you like. --proxy URL Use the specified HTTP/HTTPS proxy --no-check-certificate Suppress HTTPS certificate validation. --cache-dir None Location in the filesystem where youtube-dl can - store downloaded information permanently. - ~/.youtube-dl/cache by default + store downloaded information permanently. By + default $XDG_CACHE_HOME/youtube-dl or ~/.cache + /youtube-dl . --no-cache-dir Disable filesystem caching ## Video Selection: @@ -50,6 +51,7 @@ which means you can modify it, redistribute it or use it however you like. --date DATE download only videos uploaded in this date --datebefore DATE download only videos uploaded before this date --dateafter DATE download only videos uploaded after this date + --no-playlist download only the currently playing video ## Download Options: -r, --rate-limit LIMIT maximum download rate (e.g. 50k or 44.6m) diff --git a/README.txt b/README.txt index 0437c57..fc84c9b 100644 --- a/README.txt +++ b/README.txt @@ -38,8 +38,9 @@ OPTIONS --proxy URL Use the specified HTTP/HTTPS proxy --no-check-certificate Suppress HTTPS certificate validation. --cache-dir None Location in the filesystem where youtube-dl can - store downloaded information permanently. - ~/.youtube-dl/cache by default + store downloaded information permanently. By + default $XDG_CACHE_HOME/youtube-dl or ~/.cache + /youtube-dl . --no-cache-dir Disable filesystem caching Video Selection: @@ -59,6 +60,7 @@ Video Selection: --date DATE download only videos uploaded in this date --datebefore DATE download only videos uploaded before this date --dateafter DATE download only videos uploaded after this date + --no-playlist download only the currently playing video Download Options: ----------------- diff --git a/test/test_youtube_lists.py b/test/test_youtube_lists.py index dd9e292..53e6581 100644 --- a/test/test_youtube_lists.py +++ b/test/test_youtube_lists.py @@ -27,6 +27,14 @@ class TestYoutubeLists(unittest.TestCase): ytie_results = [YoutubeIE()._extract_id(url['url']) for url in result['entries']] self.assertEqual(ytie_results, [ 'bV9L5Ht9LgY', 'FXxLjLQi3Fg', 'tU3Bgo5qJZE']) + def test_youtube_playlist_noplaylist(self): + dl = FakeYDL() + dl.params['noplaylist'] = True + ie = YoutubePlaylistIE(dl) + result = ie.extract('https://www.youtube.com/watch?v=FXxLjLQi3Fg&list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re') + self.assertEqual(result['_type'], 'url') + self.assertEqual(YoutubeIE()._extract_id(result['url']), 'FXxLjLQi3Fg') + def test_issue_673(self): dl = FakeYDL() ie = YoutubePlaylistIE(dl) diff --git a/test/testdata/html5player-vflUKrNpT.js b/test/testdata/html5player-vflUKrNpT.js new file mode 100644 index 0000000..2f9f436 --- /dev/null +++ b/test/testdata/html5player-vflUKrNpT.js @@ -0,0 +1,889 @@ +(function(){var f,aa=aa||{},l=this;function n(a,b){for(var c=a.split("."),d=b||l,e;e=c.shift();)if(null!=d[e])d=d[e];else return null;return d}function ba(){}function ca(a){a.getInstance=function(){return a.Zp?a.Zp:a.Zp=new a}} +function da(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; +else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function q(a){return void 0!==a}function ea(a){return null!=a}function t(a){return"array"==da(a)}function fa(a){var b=da(a);return"array"==b||"object"==b&&"number"==typeof a.length}function u(a){return"string"==typeof a}function ga(a){return"number"==typeof a}function ha(a){return"function"==da(a)}function ia(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ja(a){return a[ka]||(a[ka]=++la)} +var ka="closure_uid_"+(1E9*Math.random()>>>0),la=0;function ma(a,b,c){return a.call.apply(a.bind,arguments)}function na(a,b,c){if(!a)throw Error();if(2")&&(a=a.replace(Ca,">"));-1!=a.indexOf('"')&&(a=a.replace(Da,"""));return a}var Aa=/&/g,Ba=//g,Da=/\"/g,za=/[&<>\"]/; +function Ea(a,b){for(var c=0,d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=String(b).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),g=Math.max(d.length,e.length),h=0;0==c&&h(0==D[1].length? +0:parseInt(D[1],10))?1:0)||((0==s[2].length)<(0==D[2].length)?-1:(0==s[2].length)>(0==D[2].length)?1:0)||(s[2]D[2]?1:0)}while(0==c)}return c}function Fa(a){var b=Number(a);return 0==b&&/^[\s\xa0]*$/.test(a)?NaN:b};function Ga(){};function Ha(a){return a[a.length-1]} +var Ia=Array.prototype,Ja=Ia.indexOf?function(a,b,c){return Ia.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(u(a))return u(b)&&1==b.length?a.indexOf(b,c):-1;for(;cb?null:u(a)?a.charAt(b):a[b]}function Qa(a,b,c){for(var d=a.length,e=u(a)?a.split(""):a,g=0;gc?null:u(a)?a.charAt(c):a[c]} +function Sa(a,b,c){for(var d=u(a)?a.split(""):a,e=a.length-1;0<=e;e--)if(e in d&&b.call(c,d[e],e,a))return e;return-1}function Ta(a,b){return 0<=Ja(a,b)}function Ua(a){return 0==a.length}function Va(a){if(!t(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function Wa(a,b){Ta(a,b)||a.push(b)}function Xa(a,b){var c=Ja(a,b),d;(d=0<=c)&&Ya(a,c);return d}function Ya(a,b){Ia.splice.call(a,b,1)}function Za(a,b){var c=Qa(a,b,void 0);0<=c&&Ya(a,c)} +function $a(a){return Ia.concat.apply(Ia,arguments)}function ab(a){var b=a.length;if(0=arguments.length?Ia.slice.call(a,b):Ia.slice.call(a,b,c)}function eb(a){for(var b={},c=0,d=0;d>1,k;k=b(c,a[h]);0b?1:ac&&cb(a,-(c+1),0,b)}function mb(a){for(var b=[],c=0;cb?e+="000":256>b?e+="00":4096>b&&(e+="0");return ub[a]=e+b.toString(16)}),'"')};function wb(a,b,c){return Math.min(Math.max(a,b),c)};function A(a,b){this.x=q(a)?a:0;this.y=q(b)?b:0}f=A.prototype;f.clone=function(){return new A(this.x,this.y)};function xb(a,b){var c=a.x-b.x,d=a.y-b.y;return Math.sqrt(c*c+d*d)}function yb(a,b){return new A(a.x-b.x,a.y-b.y)}f.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};f.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};f.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; +f.scale=function(a,b){var c=ga(b)?b:a;this.x*=a;this.y*=c;return this};function zb(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}f=zb.prototype;f.clone=function(){return new zb(this.top,this.right,this.bottom,this.left)};f.contains=function(a){return this&&a?a instanceof zb?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1}; +f.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};f.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};f.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; +f.scale=function(a,b){var c=ga(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function B(a,b){this.width=a;this.height=b}function Ab(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}f=B.prototype;f.clone=function(){return new B(this.width,this.height)};function Bb(a){return a.width/a.height}f.isEmpty=function(){return!(this.width*this.height)};f.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};f.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; +f.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};f.scale=function(a,b){var c=ga(b)?b:a;this.width*=a;this.height*=c;return this};function Cb(a,b){return a.scale(Bb(a)>Bb(b)?b.width/a.width:b.height/a.height)};function Db(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}f=Db.prototype;f.clone=function(){return new Db(this.left,this.top,this.width,this.height)};function Eb(a){return new Db(a.left,a.top,a.right-a.left,a.bottom-a.top)}function Fb(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1} +f.contains=function(a){return a instanceof Db?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};function Gb(a){return new B(a.width,a.height)}f.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; +f.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};f.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};f.scale=function(a,b){var c=ga(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function Hb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Ib(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}function Jb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Kb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Lb(a,b){for(var c in a)if(a[c]==b)return!0;return!1}function Mb(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c}function Nb(a){for(var b in a)return!1;return!0}function Ob(a){var b={},c;for(c in a)b[c]=a[c];return b} +function Pb(a){var b=da(a);if("object"==b||"array"==b){if(a.clone)return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=Pb(a[c]);return b}return a}var Qb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Rb(a,b){for(var c,d,e=1;eparseFloat(nc)){mc=String(rc);break t}}mc=nc}var sc=mc,tc={};function uc(a){return tc[a]||(tc[a]=0<=Ea(sc,a))} +function vc(a){return C&&wc>=a}var xc=l.document,wc=xc&&C?lc()||("CSS1Compat"==xc.compatMode?parseInt(sc,10):5):void 0;var yc=!C||vc(9),zc=!fc&&!C||C&&vc(9)||fc&&uc("1.9.1"),Ac=C&&!uc("9"),Bc=C||ec||gc;function Cc(a){a=a.className;return u(a)&&a.match(/\S+/g)||[]}function Dc(a,b){for(var c=Cc(a),d=db(arguments,1),e=c.length+d.length,g=c,h=0;h");g=g.join("")}g=e.createElement(g);h&&(u(h)?g.className=h:t(h)?Dc.apply(null,[g].concat(h)):Pc(g,h));2a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null} +function td(a){for(var b=new zb(0,Infinity,Infinity,0),c=Jc(a),d=c.a.body,e=c.a.documentElement,g=Tc(c.a);a=sd(a);)if(!(C&&0==a.clientWidth||gc&&0==a.clientHeight&&a==d||a==d||a==e||"visible"==od(a,"overflow"))){var h=ud(a),k;k=a;if(fc&&!uc("1.9")){var m=parseFloat(nd(k,"borderLeftWidth"));if(vd(k))var p=k.offsetWidth-k.clientWidth-m-parseFloat(nd(k,"borderRightWidth")),m=m+p;k=new A(m,parseFloat(nd(k,"borderTopWidth")))}else k=new A(k.clientLeft,k.clientTop);h.x+=k.x;h.y+=k.y;b.top=Math.max(b.top, +h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}d=g.scrollLeft;g=g.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,g);c=Rc(c.a.parentWindow||c.a.defaultView||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,g+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null} +function ud(a){var b,c=Lc(a),d=od(a,"position"),e=fc&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),g=new A(0,0),h;b=c?Lc(c):document;h=!C||vc(9)||ld(Jc(b))?b.documentElement:b.body;if(a==h)return g;if(a.getBoundingClientRect)b=rd(a),a=md(Jc(c)),g.x=b.left+a.x,g.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(h),g.x=b.screenX-a.screenX,g.y=b.screenY-a.screenY;else{b=a;do{g.x+=b.offsetLeft;g.y+= +b.offsetTop;b!=a&&(g.x+=b.clientLeft||0,g.y+=b.clientTop||0);if(gc&&"fixed"==od(b,"position")){g.x+=c.body.scrollLeft;g.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(ec||gc&&"absolute"==d)g.y-=c.body.offsetTop;for(b=a;(b=sd(b))&&b!=c.body&&b!=h;)g.x-=b.scrollLeft,ec&&"TR"==b.tagName||(g.y-=b.scrollTop)}return g}function wd(a,b){var c=xd(a),d=xd(b);return new A(c.x-d.x,c.y-d.y)} +function yd(a){var b;if(a.getBoundingClientRect)b=rd(a),b=new A(b.left,b.top);else{b=md(Jc(a));var c=ud(a);b=new A(c.x-b.x,c.y-b.y)}if(fc&&!uc(12)){var d;C?d="-ms-transform":gc?d="-webkit-transform":ec?d="-o-transform":fc&&(d="-moz-transform");var e;d&&(e=od(a,d));e||(e=od(a,"transform"));a=e?(a=e.match(zd))?new A(parseFloat(a[1]),parseFloat(a[2])):new A(0,0):new A(0,0);a=new A(b.x+a.x,b.y+a.y)}else a=b;return a} +function xd(a){if(1==a.nodeType)return yd(a);var b=ha(a.Mx),c=a;a.targetTouches?c=a.targetTouches[0]:b&&a.le.targetTouches&&(c=a.le.targetTouches[0]);return new A(c.clientX,c.clientY)}function Ad(a,b,c){if(b instanceof B)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");Bd(a,b);a.style.height=qd(c,!0)}function qd(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Bd(a,b){a.style.width=qd(b,!0)} +function Cd(a){var b=Dd;if("none"!=od(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,g=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=g;c.visibility=e;return a}function Dd(a){var b=a.offsetWidth,c=a.offsetHeight,d=gc&&!b&&!c;return q(b)&&!d||!a.getBoundingClientRect?new B(b,c):(a=rd(a),new B(a.right-a.left,a.bottom-a.top))}function Ed(a){var b=ud(a);a=Cd(a);return new Db(b.x,b.y,a.width,a.height)} +function Fd(a,b){var c=a.style;"opacity"in c?c.opacity=b:"MozOpacity"in c?c.MozOpacity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity="+100*b+")")}function vd(a){return"rtl"==od(a,"direction")} +function Gd(a){var b=Lc(a),c=C&&a.currentStyle;if(c&&ld(Jc(b))&&"auto"!=c.width&&"auto"!=c.height&&!c.boxSizing)return b=Hd(a,c.width,"width","pixelWidth"),a=Hd(a,c.height,"height","pixelHeight"),new B(b,a);c=new B(a.offsetWidth,a.offsetHeight);b=Id(a);a=Jd(a);return new B(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom)} +function Hd(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);var e=a.style[c],g=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=g;return b}function Kd(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?Hd(a,c,"left","pixelLeft"):0} +function Id(a){if(C){var b=Kd(a,"paddingLeft"),c=Kd(a,"paddingRight"),d=Kd(a,"paddingTop");a=Kd(a,"paddingBottom");return new zb(d,c,a,b)}b=nd(a,"paddingLeft");c=nd(a,"paddingRight");d=nd(a,"paddingTop");a=nd(a,"paddingBottom");return new zb(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var Ld={thin:2,medium:4,thick:6}; +function Md(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;return c in Ld?Ld[c]:Hd(a,c,"left","pixelLeft")} +function Jd(a){if(C&&!vc(9)){var b=Md(a,"borderLeft"),c=Md(a,"borderRight"),d=Md(a,"borderTop");a=Md(a,"borderBottom");return new zb(d,c,a,b)}b=nd(a,"borderLeftWidth");c=nd(a,"borderRightWidth");d=nd(a,"borderTopWidth");a=nd(a,"borderBottomWidth");return new zb(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var Nd=/[^\d]+$/,Od={cm:1,"in":1,mm:1,pc:1,pt:1},Pd={em:1,ex:1}; +function Qd(a){var b=od(a,"fontSize"),c;c=(c=b.match(Nd))&&c[0]||null;if(b&&"px"==c)return parseInt(b,10);if(C){if(c in Od)return Hd(a,b,"left","pixelLeft");if(a.parentNode&&1==a.parentNode.nodeType&&c in Pd)return a=a.parentNode,c=od(a,"fontSize"),Hd(a,b==c?"1em":b,"left","pixelLeft")}c=Uc("span",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;F(c);return b}var zd=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;var Rd="StopIteration"in l?l.StopIteration:Error("StopIteration");function Sd(){}Sd.prototype.next=function(){throw Rd;};Sd.prototype.Id=function(){return this};function Td(a){if(a instanceof Sd)return a;if("function"==typeof a.Id)return a.Id(!1);if(fa(a)){var b=0,c=new Sd;c.next=function(){for(;;){if(b>=a.length)throw Rd;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");} +function Ud(a,b,c){if(fa(a))try{z(a,b,c)}catch(d){if(d!==Rd)throw d;}else{a=Td(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==Rd)throw e;}}}function Vd(a){if(fa(a))return ab(a);a=Td(a);var b=[];Ud(a,function(a){b.push(a)});return b};function Wd(a,b){this.b={};this.a=[];this.g=this.T=0;var c=arguments.length;if(12*this.T&&Xd(this),!0):!1}; +function Xd(a){if(a.T!=a.a.length){for(var b=0,c=0;b=c.length)throw Rd;var h=c[b++];return a?h:d[h]}};return h};function Zd(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function $d(a){if("function"==typeof a.ic)return a.ic();if(u(a))return a.split("");if(fa(a)){for(var b=[],c=a.length,d=0;dc?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")}function ie(a,b,c){if(t(b))for(var d=0;db)throw Error("Bad port number "+b);a.ih=b}else a.ih=null}function ve(a,b,c){b instanceof xe?(a.a=b,De(a.a,a.Ze)):(c||(b=ye(b,Ee)),a.a=new xe(b,0,a.Ze))}function Fe(a,b,c){a.a.set(b,c)}function Ge(a,b,c){t(c)||(c=[String(c)]);He(a.a,b,c)}function we(a,b,c){a.ql=c?b?decodeURIComponent(b):"":b;return a} +function Ie(a){Fe(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^x()).toString(36));return a}function Je(a){return a instanceof re?a.clone():new re(a,void 0)}function Ke(a,b,c,d){var e=new re(null,void 0);a&&se(e,a);b&&te(e,b);c&&ue(e,c);d&&(e.jh=d);return e}function ye(a,b){return u(a)?encodeURI(a).replace(b,Le):null}function Le(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)} +var ze=/[#\/\?@]/g,Be=/[\#\?:]/g,Ae=/[\#\?]/g,Ee=/[\#\?@]/g,Ce=/#/g;function xe(a,b,c){this.a=a||null;this.b=!!c}function Me(a){if(!a.Ja&&(a.Ja=new Wd,a.T=0,a.a))for(var b=a.a.split("&"),c=0;cc?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(x()+1E3*c)).toUTCString();this.a.cookie=a+"="+b+e+d+c+g}; +f.get=function(a,b){for(var c=a+"=",d=(this.a.cookie||"").split(Pf),e=0,g;g=d[e];e++){if(0==g.lastIndexOf(c,0))return g.substr(c.length);if(g==a)return""}return b};f.remove=function(a,b,c){var d=q(this.get(a));this.set(a,"",0,b,c);return d};f.tc=function(){return Qf(this).keys};f.ic=function(){return Qf(this).Fv};f.isEmpty=function(){return!this.a.cookie};f.hb=function(){return this.a.cookie?(this.a.cookie||"").split(Pf).length:0};f.clear=function(){for(var a=Qf(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])}; +function Qf(a){a=(a.a.cookie||"").split(Pf);for(var b=[],c=[],d,e,g=0;e=a[g];g++)d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,Fv:c}}var Rf=new Of(document);Rf.b=3950;function Sf(){};function Tf(){}y(Tf,Sf);Tf.prototype.hb=function(){var a=0;Ud(this.Id(!0),function(){a++});return a};Tf.prototype.clear=function(){var a=Vd(this.Id(!0)),b=this;z(a,function(a){b.remove(a)})};function Uf(a){this.a=a}y(Uf,Tf);f=Uf.prototype;f.isAvailable=function(){if(!this.a)return!1;try{return this.a.setItem("__sak","1"),this.a.removeItem("__sak"),!0}catch(a){return!1}};f.set=function(a,b){try{this.a.setItem(a,b)}catch(c){if(0==this.a.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};f.get=function(a){a=this.a.getItem(a);if(!u(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};f.remove=function(a){this.a.removeItem(a)}; +f.hb=function(){return this.a.length};f.Id=function(a){var b=0,c=this.a,d=new Sd;d.next=function(){if(b>=c.length)throw Rd;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!u(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};f.clear=function(){this.a.clear()};f.key=function(a){return this.a.key(a)};function Vf(){var a=null;try{a=window.localStorage||null}catch(b){}this.a=a}y(Vf,Uf);function Wf(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.a=a}y(Wf,Uf);function Xf(a){this.If=a;this.Tp=new rb}f=Xf.prototype;f.If=null;f.Tp=null;f.set=function(a,b){q(b)?this.If.set(a,qb(this.Tp,b)):this.If.remove(a)};f.get=function(a){var b;try{b=this.If.get(a)}catch(c){return}if(null!==b)try{return nb(b)}catch(d){throw"Storage: Invalid value was encountered";}};f.remove=function(a){this.If.remove(a)};function Yf(a){Xf.call(this,a)}y(Yf,Xf);function Zf(a){this.data=a}function $f(a){return!q(a)||a instanceof Zf?a:new Zf(a)}Yf.prototype.set=function(a,b){Yf.C.set.call(this,a,$f(b))};Yf.prototype.a=function(a){a=Yf.C.get.call(this,a);if(!q(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};Yf.prototype.get=function(a){if(a=this.a(a)){if(a=a.data,!q(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};function ag(a){Xf.call(this,a)}y(ag,Yf);function bg(a){var b=a.creation;a=a.expiration;return!!a&&ax()}ag.prototype.set=function(a,b,c){if(b=$f(b)){if(c){if(cthis.j;){var c=this.a-this.j,d=this.g[0];d.weight<=c?(this.a-=d.weight,this.g.shift()):(this.a-=c,d.weight-=c)}};function Qh(a,b){Ph(a,"value");var c=b*a.a,d=0,e=NaN;a.g.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});return e}Oh.prototype.i=function(){return Qh(this,this.F)}; +function Ph(a,b){a.k!=b&&(a.k=b,ib(a.g,b))};function Rh(a){var b=ig(a);if(!b){var c=new Vf;c.isAvailable()&&(b=(new Xf(c)).get(a))}return b}function Sh(){var a={volume:100,muted:!1,nonNormalized:100},b=Rh("yt-player-volume")||{};a.volume=isNaN(b.volume)?100:wb(b.volume,0,100);a.nonNormalized=isNaN(b.nonNormalized)?a.volume:b.nonNormalized;a.muted=void 0==b.muted?!1:b.muted;return a};function Th(a){this.g=this.i=0;this.j=new Nh(4);a.Kc?this.b=new Nh(16):this.b=new Oh(16,0.6);a.Ll?this.a=new Oh(8,0.6):a.Jl?this.a=new Oh(16,0.6):a.Kl?this.a=new Oh(24,0.6):"play"==a.La?this.a=new Nh(17):this.a=new Oh(17,0.6);var b=Rh("yt-player-bandwidth");a=a.jb?0.1:0.5;b&&!isNaN(b.byterate)?this.a.b(a,b.byterate):this.a.b(a,13E4)}function Uh(a){a=a.b.i();return a=isNaN(a)?0.5:a}function Vh(a){return a.j.i()||0}function Wh(a){a=a.a.i();return 0=this.start&&(a=a.keyCode)a.keyCode=-1}catch(b){}};f.Mx=function(){return this.le};var gi="closure_listenable_"+(1E6*Math.random()|0);function hi(a){try{return!(!a||!a[gi])}catch(b){return!1}}var ii=0;function ji(a,b,c,d,e){this.Ye=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.gb=e;this.key=++ii;this.removed=this.Ei=!1}function ki(a){a.removed=!0;a.Ye=null;a.proxy=null;a.src=null;a.gb=null};function li(a){this.src=a;this.a={};this.b=0}li.prototype.add=function(a,b,c,d,e){var g=this.a[a];g||(g=this.a[a]=[],this.b++);var h=mi(g,b,d,e);-1c.keyCode||void 0!=c.returnValue)){t:{var g=!1;if(0==c.keyCode)try{c.keyCode=-1;break t}catch(h){g=!0}if(g||void 0==c.returnValue)c.returnValue=!0}c=[];for(g=d.currentTarget;g;g=g.parentNode)c.push(g);for(var g=a.type,k=c.length-1;!d.ne&&0<=k;k--)d.currentTarget=c[k],e&=zi(c[k],g,!0,d);for(k=0;!d.ne&&k>>0);function ti(a){return ha(a)?a:a[Bi]||(a[Bi]=function(b){return a.handleEvent(b)})};function Ci(){this.$c=new li(this);this.V=this}y(Ci,K);Ci.prototype[gi]=!0;f=Ci.prototype;f.zl=null;f.addEventListener=function(a,b,c,d){si(this,a,b,c,d)};f.removeEventListener=function(a,b,c,d){xi(this,a,b,c,d)}; +function Di(a,b){var c,d=a.zl;if(d){c=[];for(var e=1;d;d=d.zl)c.push(d),++e}var d=a.V,e=b,g=e.type||e;if(u(e))e=new ei(e,d);else if(e instanceof ei)e.target=e.target||d;else{var h=e,e=new ei(g,d);Rb(e,h)}var h=!0,k;if(c)for(var m=c.length-1;!e.ne&&0<=m;m--)k=e.currentTarget=c[m],h=Ei(k,g,!0,e)&&h;e.ne||(k=e.currentTarget=d,h=Ei(k,g,!0,e)&&h,e.ne||(h=Ei(k,g,!1,e)&&h));if(c)for(m=0;!e.ne&&mb)break}return c}function Ki(a,b,c){for(var d=[],e=0;ec)break;g.start>b&&d.push(g)}return d}function Li(a,b){for(var c=[],d=0;db){c.push(e.start);break}}c.sort(hb);return c[0]};var Mi,Ni,Oi,Pi,Qi;Qi=Pi=Oi=Ni=Mi=!1;var Ri=ac();Ri&&(-1!=Ri.indexOf("Firefox")||-1!=Ri.indexOf("Camino")||(-1!=Ri.indexOf("iPhone")||-1!=Ri.indexOf("iPod")?Mi=!0:-1!=Ri.indexOf("iPad")?Ni=!0:-1!=Ri.indexOf("Chrome")?Pi=!0:-1!=Ri.indexOf("Android")?Oi=!0:-1!=Ri.indexOf("Safari")&&(Qi=!0)));var Si=Mi,Ti=Ni,Ui=Oi,Vi=Pi,Wi=Qi;var Xi,Yi;var Zi=ac(),$i=Zi.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!$i||2>$i.length)Xi=void 0;else{var aj=Zi.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);Xi=aj&&6==aj.length?Number(aj[5].replace("_",".")):0}(Yi=0<=Xi)&&0<=ac().search("Safari")&&ac().search("Version");var bj=Si||Ti;function cj(){return dj("(ps3; leanback shell)")}function dj(a){var b=ac();return b?0<=b.toLowerCase().indexOf(a.toLowerCase()):!1};function ej(){}var fj=Yi&&4>Xi?0.1:0,gj=new ej;f=ej.prototype;f.Bd=null;f.Bk=!1;f.Rd=0;f.Gl=0;function hj(a,b){var c="";b&&(a.Bd=b,c=ij(b));a.src&&""==c||(c&&a.src!=c&&(a.src=c),b&&b.a||a.load())}function jj(a,b){0a);c++)if(a<=b.end(c))return c;return 0}f.inUnbufferedArea=function(){var a=this.buffered;if(!a||!a.length)return!0;var b=kj(this);if(0c||a.end(b)e.end&&(c.push(e),a.a.splice(d--,1))}d=Ji(a.b,2147483646);d=d.concat(Ki(a.b,2147483646));e=[];if(c.length)for(var g=0;gthis.g&&(d=d.concat(Ki(this.b,this.g,b)));c=c.concat(Bj(this,d));this.g=b;!this.Kh&&this.k&&(c.unshift(["onLockBlockExit",this.k]),this.k=null,P(e,2)&&(this.g=2147483647));this.B()&&(b=Li(this.b,this.g),null!=b&& +(this.Hg=Hi(v(this.Xb,this),b-this.g)));for(d=0;da.status)e=Rj(c,a);if(d)t:{switch(c){case "XML":d=0==parseInt(e&&e.return_code,10);break t;case "RAW":d=!0;break t}d=!!e}var e=e||{},k=b.S||l;d?b.Pa&&b.Pa.call(k, +a,e):b.onError&&b.onError.call(k,a,e);b.pd&&b.pd.call(k,a,e)}},b.method,e,b.headers,b.responseType,b.withCredentials);b.Sk&&0=g[0]||b>=g[1]){a=e;break t}}a="tiny"}else a="auto";this.i=a;this.a=c||0}var fk="auto highres hd1440 hd1080 hd720 large medium small tiny".split(" "),gk={auto:[0,0],tiny:[256,144],light:[320,240],small:[320,240],medium:[640,360],large:[854,480],hd720:[1280,720],hd1080:[1920,1080],hd1440:[2560,1440],highres:[2048,1536]};function hk(a,b){this.start=a;this.end=b;this.length=b-a+1}function ik(a){a=a.split("-");return 2==a.length&&(a=new hk(parseInt(a[0],10),parseInt(a[1],10)),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0a.info.Ha||4==a.info.type)return!0;var b=wk(a),c=b.getUint32(0,!1),b=b.getUint32(4,!1);if(2==a.info.type)return c==a.info.Ha&&1936286840==b;if(3==a.info.type&&0==a.info.ob)return 1836019558==b}return!0};function yk(a){this.a=a;this.b=0;this.g=-1}var zk=0;function Ak(a,b){a.a=Kj(a.a,b)};function Bk(a,b){this.index=null;this.info=b;this.b=null;this.i=!1;this.j=new yk(a)}f=Bk.prototype;f.Do=function(){return!1};f.Yb=function(){return!1};f.Aj=function(){return!1};f.mn=function(){return[]};f.qf=function(){return null};f.Ej=function(){return null};f.Co=function(){};function Ck(a){this.b=a[0].a.j;this.a=a};function Dk(){this.T=0;this.a=new Float64Array(128);this.b=new Float32Array(128);this.g=!1}Dk.prototype.hb=function(){return this.T};function Ek(a,b){var c=fb(a.b.subarray(0,a.T),hb,b);return 0<=c?c:Math.max(0,-c-2)}function Fk(a){if(a.a.lengthd;d++)c=256*c+Mk(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+Mk(a),e*=128;return b?c-e:c} +function Mk(a){return a.b.getUint8(a.a++)};function Nk(a,b,c,d){Bk.call(this,a,b);this.o=c;this.k=d;this.g=null;this.index=new Dk;b=parseInt;c=a.search(oe);d=ne(a,0,"clen",c);if(0>d)a=null;else{var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=5;a=xa(a.substr(d,e-d))}this.a=b(a,10)}y(Nk,Bk);f=Nk.prototype;f.Yb=function(){return!(!this.b||!this.index.hb())}; +f.mn=function(a){var b=new qk(1,this,this.o),c=new qk(2,this,this.k),d=[],e=[b];sk(b,c)?e.push(c):d.push(new Ck([c]));isNaN(this.a)?a=0:a>this.a&&(a=this.a);b=e[e.length-1];c=b.U.end-e[0].U.start+1;a>c&&(a=jk(b.U.end+1,a-c),e.push(new qk(4,this,a)));d.push(new Ck(e));return d}; +f.Co=function(a){if(1==a.info.type){if(this.b)return;this.b=new Uint8Array(a.buffer,a.U.start,a.U.length)}else if(2==a.info.type){if(this.g||this.index.hb())return;if(1==this.info.j){var b=this.index,c=wk(a),d=a.info.U.start;a=0;var e=c.getUint32(0,!1),g=c.getUint8(a+8);a+=12;var h=c.getUint32(a+4,!1);a+=8;var k;0==g?(g=c.getUint32(a,!1),k=c.getUint32(a+4,!1),a+=8):(g=(c.getUint32(a,!1)<<32)+c.getUint32(a+4,!1),k=(c.getUint32(a+8,!1)<<32)+c.getUint32(a+12,!1),a+=16);b.a[0]=k+(e+d);b.b[0]=g;b.g=!0; +d=c.getUint16(a+2,!1);a+=4;for(e=0;e=a.b.byteLength);)if(m= +Hk(a),2807729==m)g=Lk(a);else if(2807730==m)k=Lk(a);else if(17545==m){var d=a,m=Ik(d,!0),p=0;4==m?p=d.b.getFloat32(d.a):8==m&&(p=d.b.getFloat64(d.a));d.a+=m;d=p}else Jk(a);g/=k;d*=g;a=new Gk(e);if(475249515==Hk(a)){for(a=Kk(a);!(a.a>=a.b.byteLength);)if(m=Hk(a),187==m){e=Kk(a);m=g;k=h;if(179!=Hk(e))m=null;else if(m*=Lk(e),183!=Hk(e))m=null;else{e=Kk(e);for(p=k;!(e.a>=e.b.byteLength);)241==Hk(e)?p=Lk(e)+k:Jk(e);m=[p,m]}e=b;k=m[0];m=m[1];Fk(e);e.a[e.T]=k;e.b[e.T]=m;e.T++}else Jk(a);a=d;c=c+h;Fk(b); +b.g=!0;b.b[b.T]=a;b.a[b.T]=c}}this.g=null}};function Ok(a,b,c,d){for(var e=[];b=c+d)break}return new Ck(e)} +function Pk(a,b){for(var c=0;c+1=a.index.a[c+1];)c++;return Ok(a,c,b.U.start,b.U.length).a}f.Aj=function(a){return this.Yb()?!0:isNaN(this.a)?!1:a.U.end+1this.a&&(c=new hk(c.start,this.a-1));c=[new qk(4,a.a,c)];return new Ck(c)}4==a.type&&(c=Pk(this,a),a=c[c.length-1]);var c=0,d=a.U.start+a.ob+a.Ha;3==a.type&&(c=a.j,d==a.U.end+1&&(c+=1));return Ok(this,c,d,b)}; +f.Ej=function(a,b){var c=Ek(this.index,a);return Ok(this,c,this.index.a[c],b)};f.Do=function(){return this.Yb()&&!isNaN(this.a)&&(this.index.g?this.index.a[this.index.T]:-1)!=this.a};function Qk(){this.duration=0;this.a={}}var Rk=/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/;function Sk(a){var b=new Qk;z(a,function(a){var d=a.type,e=a.itag,g=null;ck(d)&&(g=a.size.split("x"),g=new ek(parseInt(g[0],10),parseInt(g[1],10)));var h=null;bk(d)&&(h=new Yj);d=new Zj(e,d,h,g,null,parseInt(a.bitrate,10)/8);g=ik(a.init);h=ik(a.index);(a=Tk(a.url,d,a.s))&&(b.a[e]=new Nk(a,d,g,h))});return b} +function Uk(a,b){for(var c=a;c;c=c.parentNode)if(c.attributes){var d=c.attributes[b];if(d)return d.value}return""}function Vk(a,b){for(var c=a;c;c=c.parentNode){var d=c.getElementsByTagName(b);if(0=b)return a.b[b]=d;a.b[b]=c-1;return c-1};var bl={0:"MONO",1:"LEFT_RIGHT",2:"RIGHT_LEFT",3:"TOP_BOTTOM",4:"BOTTOM_TOP"};var cl={VB:1,WB:2,XB:3};var dl;var el=ac(),el=el.toLowerCase();if(-1!=el.indexOf("android")){var fl=el.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(fl)dl=Number(fl[1]);else{var gl={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},hl=el.match("("+Kb(gl).join("|")+")");dl=hl?gl[hl[0]]:0}}else dl=void 0;var il,jl;function kl(){var a=n("yt.player.utils.videoElement_");a||(a=document.createElement("video"),pa("yt.player.utils.videoElement_",a));return a}function ll(){if(2.2==dl)return!0;var a=kl();try{return!(!a||!a.canPlayType||!a.canPlayType('video/mp4; codecs="avc1.42001E, mp4a.40.2"')&&!a.canPlayType('video/webm; codecs="vp8.0, vorbis"'))}catch(b){return!1}} +function ml(){var a=Uc("div",{"class":"html5-player-css-loaded"});document.body.appendChild(a);var b="none"==nd(a,"display");F(a);return b};function nl(){var a;if(void 0==il&&(il=!1,window.crypto&&window.crypto.iy))try{a=new Uint8Array(1),window.crypto.iy(a),il=!0}catch(b){}if(il){a=Array(16);var c=new Uint8Array(16);window.crypto.getRandomValues(c);for(var d=0;dc;c++){for(var d=x(),e=0;e=a.hb()){a=this.a;for(var d=0;d>1,a[d].a>c.a)a[b]=a[d],b=d;else break;a[b]=c}f=ul.prototype; +f.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Va(a);else{a[0]=a.pop();for(var a=0,b=this.a,d=b.length,e=b[a];a>1;){var g=2*a+1,h=2*a+2,g=he.a)break;b[a]=b[g];a=g}b[a]=e}return c.b}};f.ic=function(){for(var a=this.a,b=[],c=a.length,d=0;dXi?!1:!0;a.Dj="1"==c.infringe||"1"==c.muted;a.An=c.authkey;a.Ea=c.authuser;a.Da||(a.Da=c.cpn||ol());a.Kc=c.csi_page_type;a.Ka=c.sw;a.hd=c.t;a.Fk=T(a.Fk,c.cenchd);a.fg="1"==c.enable_cardio;a.Vl="1"==c.enable_cardio_before_playback;a.nf=void 0==(c.end||c.endSeconds)?a.nf:Number(c.end||c.endSeconds);a.Wl="1"!=c.no_get_video_log;a.gj="1"==c.tmi;a.Bn="1"==c.livemonitor;a.Cb="1"==c.live_playback;a.Ck=T(a.Ck,c.mdx);a.Gk=T(a.Gk,c.on3g);a.Dk=T(a.Dk, +c.utpsa);a.oo=c.iurlmaxres;a.G=U(a.G,c.oauth_token);a.Q=U(a.Q,c.vvt);a.ld=c.osig;a.Ra=c.ptchn;a.Va=c.oid;a.A=c.ptk;a.jb=c.pltype;a.fb=c.plid;a.k=c.eventid;a.Ta=U(a.Ta,c.list);a.kb=c.pyv_beacon_url;a.jd=c.purchase_id;a.ga=c.sdetail;a.gd=c.sourceid;a.aa=U(a.aa,c.feature);a.Sa=1==(void 0==c.is_fling?a.Sa?1:0:Number(c.is_fling));a.ha=U(a.ha,c.ytr);a.po=c.iurlsd;a.Yl="1"==c.skip_kansas_logging;a.ff=ql(a.ff,c.vq||c.suggestedQuality,dk);a.oe=c.approx_threed_layout||0;a.rj="1"==c.threed_converted;a.Bi=c.iurl; +a.Zi="1"==c.sendtmp;a.Xl=!!a.Ka||a.Zi;a.ya=void 0==(c.start||c.startSeconds)?a.ya:Number(c.start||c.startSeconds);a.M=c.docid||c.video_id||c.videoId;cm(a,c.watermark);a.Ic=U(a.Ic,c.ypc_gid);a.Jc=U(a.Jc,c.ypc_license_session_token);if(c.ad3_module||c.ad_module)"1"==c.allow_html5_ads?(a.ca=!0,"1"==c.ad_preroll&&a.I.push("ad")):"1"==c.supported_without_ads||c.cta&&c.fexp&&(-1!=c.fexp.indexOf("924604")||-1!=c.fexp.indexOf("924610"))||(a.jm=!0);c.adaptive_fmts&&(a.Rk=c.adaptive_fmts);c.allow_embed&&(a.no= +"1"==c.allow_embed);c.autoplay&&(a.df="1"==c.autoplay);c.iv_load_policy&&(a.da=dm(c.iv_load_policy,a.da));c.cc_load_policy&&(a.Bm=dm(c.cc_load_policy,2));q(c.dash)&&void 0===a.Y&&(a.Y="1"==c.dash);if(c.dashmpd){a.B=S(c.dashmpd,{cpn:a.Da});var d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.B);e&&(e=Xj(e[1]),a.B=a.B.replace(d,"/signature/"+e))}c.delay&&(a.J=Fa(c.delay));c.idpj&&(a.Vf=Fa(c.idpj));c.url_encoded_fmt_stream_map&&(a.Jn=c.url_encoded_fmt_stream_map);c.hlsvp&&(a.va=c.hlsvp);c.length_seconds&&(a.ra=Fa(c.length_seconds)); +c.ldpj&&(a.nh=Fa(c.ldpj));c.loudness&&(a.za=c.loudness,a.uh=-15a.za?Math.pow(10,(-18-a.za)/20):1);c.partnerid&&(a.md=Fa(c.partnerid));c.pyv_billable_url&&ok(c.pyv_billable_url,mk)&&(a.O=c.pyv_billable_url);c.pyv_conv_url&&ok(c.pyv_conv_url,mk)&&(a.Ca=c.pyv_conv_url);c.url_encoded_third_party_media&&(a.gf=bm(c.url_encoded_third_party_media));c.threed_module&&!c.threed_converted&&(a.P=c.threed_module,a.Hc=6);if("1"==c.track_embed||c.tk)a.Zl=!0;c.watch_ajax_token&&ef("watch_actions_ajax",c.watch_ajax_token); +c.fresca_preroll&&a.I.push("fresca");c.ypc_clickwrap_module&&a.I.push("ypc_clickwrap");void 0!=c.start&&(a.Cj=c.start);void 0!=c.end&&(a.Am=c.end);a.lc=U(a.lc,c.ucid);z(["baseUrl","uid","oeid","ieid","ppe"],function(a){this.i[a]=c[a]},a);a.i.focEnabled="1"==c.focEnabled;a.i.rmktEnabled="1"==c.rmktEnabled;a.$l=em(c.rmktPingThreshold,c.length_seconds);a.b=c;Kh(a,c);a.Y&&fm(a)} +function fm(a){if(dj("android")&&dj("chrome")&&!uc(29)?0:window.MediaSource||window.WebKitMediaSource||HTMLMediaElement.prototype.webkitSourceAddId)if(a.Rk)a.L=Sk(gm(a,a.Rk));else if(a.B){var b={format:"RAW",method:"GET",S:a,Pa:a.Qw,onError:a.gl};a.Fe=!0;a=pk(a.B);Qj(a,b)}} +f.Qw=function(a){if(!this.ka()){if(200<=a.status&&400>a.status){var b=new Qk;t:{a=a.responseText;a=(new DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];var c;if(c=Uk(a,"mediaPresentationDuration")){var d=Rk.exec(c);c=d?3600*parseFloat(d[2]||0)+60*parseFloat(d[4]||0)+parseFloat(d[6]||0):parseFloat(c)}else c=0;b.duration=c;a=a.getElementsByTagName("Representation");for(c=0;c=a.Mb)if(a.loop)a.ua=0;else return null;xh(a,a.ua);return wh(a,a.ua)}function ym(a){if(0>--a.ua)if(a.loop)a.ua=a.Mb-1;else return null;xh(a,a.ua);return wh(a,a.ua)}function wh(a,b){var c=void 0!=b?b:a.ua;if(c=a.a&&c in a.a?a.a[a.b[c]]:null)c.ya=a.ya||c.Cj||0;return c} +function yh(a,b){a.xo=b;var c=a.b&&null!=a.b[a.ua]?a.b[a.ua]:a.ua;a.b=[];for(var d=0;dc&&(e+="0"));0d&&(e+="0"));e+=d+":";10>a&&(e+="0");return e+a};var En={HC:"html5-stop-propagation",gA:"html5-chromeless",SB:"html5-live-dvr-disabled",TB:"html5-live-dvr-engaged",UB:"html5-live-playback",bC:"html5-mobile",dC:"modest-branding",fC:"html5-native-controls",MC:"html5-tablet",LC:"html5-tablet-body",ZB:"html5-main-video",WC:"html5-video-container",XC:"html5-video-content",YC:"html5-video-controls",ZC:"ytp-fallback",$C:"ytp-fallback-content",bD:"html5-video-loader",gD:"html5-watermark",Qz:"html5-branded-watermark",fD:"html5-viewport-sheet",mA:"html5-context-menu", +Tr:"html5-context-menu-copy-debug-info",Ur:"html5-context-menu-copy-embed-html",Vr:"html5-context-menu-copy-video-url",Wr:"html5-context-menu-copy-video-url-at-current-time",Xr:"html5-context-menu-link",Yr:"html5-context-menu-report-playback-issue",Zr:"html5-context-menu-show-video-info",nA:"html5-show-video-info-template",cC:"html5-modal-panel",JB:"html5-info-bar",Kz:"autohide-off",Lz:"autohide-on",Jz:"autohide-fade",Hz:"autohide-auto",Iz:"autohide-embeds",Mz:"autohide-seekbar",Gz:"autohide-aspect", +xB:"hide-controls",yB:"hide-info-bar",zB:"html5-hide-share",AB:"html5-hide-volume",eD:"video-thumbnail",qC:"html5-popup-dialog",Az:"html5-async-progress",Bz:"html5-async-success",zz:"html5-async-error",bA:"html5-center-overlay",AC:"ytp-scalable-icon-shrink",zC:"ytp-scalable-icon-grow",EB:"house-brand"};function Fn(a,b){(a=Mc(a))&&a.style&&(a.style.display=b?"":"none",Hc(a,"hid",!b))}function Gn(a){return(a=Mc(a))?!("none"==a.style.display||Gc(a,"hid")):!1}function Hn(a){z(arguments,function(a){Fn(a,!0)})}function In(a){z(arguments,function(a){Fn(a,!1)})}function Jn(a){var b=document.body;if(void 0!=b.style[a])return a;a=a.charAt(0).toUpperCase()+a.substr(1);for(var c=["Moz","Webkit","ms","O"],d=0;da?(Cn(this.b,a/1E4),a=1E4-a,E("videowall-still-listlabel-autoplay-message",this.a).innerHTML=nf("AUTOPLAY_MESSAGE",Math.ceil(a/1E3))):(jf(this.k),this.select("autoplay"))}; +f.ku=function(a){var b=jd(a.target,"videowall-still-listlabel-autoplay"),c=E("autoplay-play-canvas",this.a);V(b,"videowall-still-listlabel-autoplay-hide");V(c,"autoplay-play-canvas-hide");X(this.a,"videowall-still-autoplay",!1);a.stopPropagation();this.F.log({cancelButtonClick:"1"});jf(this.k)};f.jv=function(a){this.select(void 0,a.ctrlKey)};f.kv=function(a){switch(a.keyCode){case 13:case 32:this.select(),a.preventDefault()}};function Yn(a,b,c){Wm.call(this,a,b);this.o="videowall-endscreen";this.B=c;this.F=[];this.a=this.j=null;this.A=!1;this.k=0;this.Eb.D("onResize",this.Uu,this);this.Eb.D("videodatachange",this.Vu,this)}y(Yn,Wm);f=Yn.prototype;f.create=function(){Yn.C.create.call(this);this.a=this.b.getVideoData().mc;Zn(this)};f.destroy=function(){this.g&&(this.g.innerHTML="");this.a=[];Yn.C.destroy.call(this)}; +f.load=function(){Yn.C.load.call(this);if(this.a&&this.a.length&&this.a[0].endscreen_autoplay){var a=$n(this,0);a.b=new zn;V(a.b.element,"autoplay-play-canvas");a.b.W(a.a);a.b.show();X(a.a,"videowall-still-autoplay",!0);var b=E("videowall-still-listlabel-autoplay",a.a),c=new un(a.o);c.W(b);wn(c,"videowall-still-listlabel-autoplay-cancel");c.Aa(a.o.getMsg("YTP_BUTTON_CANCEL"));c.show();J(c,"click",v(a.ku,a));a.F.log({cancelButtonShow:"1"});a.A=new Date;a.k=hf(v(a.ju,a),50)}}; +function Zn(a){if(a.vc&&a.a&&a.a.length){X(a.i,"endscreen-enable-layout",!0);a.g.innerHTML="";var b=Cd(a.i);Dm(Q(a.b),"ad-showing")&&(b.height-=200);b.height-=30;var c=Math.floor(b.width/158),d=Math.floor(b.height/(158/1.45));if(1>d||1>c)a.k=0;else{var e=a.a.length,g=!1,h="episodic"==a.a[0].feature_type,k=a.a[0].endscreen_autoplay;(a.a[0].featured||h||k)&&2=k,s=e>=h;if(p&&s||!r&&s)e-=h,k++;else if(r)e-= +k,h++;else break;p=1.45*(h/k)>m}a.A=p;c=new B(h,k);a.A?(d=1/c.width,b=b.width*d,d=b/1.45):(d=1/c.height,d*=b.height,b=1.45*d);b=new B(Math.floor(b),Math.floor(d));a.k=c.width*c.height;g&&(a.k-=3);a.j&&ln(a.j);g=ao(b);d={Ib:a.j};a.j=kn(".videowall-still",g,d);g=ao(b.clone().scale(2));d.Ib=a.j;kn(".feature-video .videowall-still:first-child",g,d);Ad(a.g,b.width*c.width,b.height*c.height)}g=0;for(b=a.k;g=b.B&&b.cancel())}this.L?this.L.call(this.J,this):this.G=!0;this.g||this.a(new jo)}};io.prototype.I=function(a,b){this.A=!1;ko(this,a,b)};function ko(a,b,c){a.g=!0;a.j=c;a.k=!b;lo(a)} +function mo(a){if(a.g){if(!a.G)throw new no;a.G=!1}}io.prototype.b=function(a){mo(this);ko(this,!0,a)};io.prototype.a=function(a){mo(this);ko(this,!1,a)};function oo(a,b,c,d){a.o.push([b,c,d]);a.g&&lo(a);return a}function po(a){var b=new io;oo(a,b.b,b.a,b);return b}function qo(a){return Ma(a.o,function(a){return ha(a[1])})} +function lo(a){a.F&&a.g&&qo(a)&&(l.clearTimeout(a.F),delete a.F);a.i&&(a.i.B--,delete a.i);for(var b=a.j,c=!1,d=!1;a.o.length&&!a.A;){var e=a.o.shift(),g=e[0],h=e[1],e=e[2];if(g=a.k?h:g)try{var k=g.call(e||a.J,b);q(k)&&(a.k=a.k&&(k==b||k instanceof Error),a.j=b=k);b instanceof io&&(d=!0,a.A=!0)}catch(m){b=m,a.k=!0,qo(a)||(c=!0)}}a.j=b;d&&(oo(b,v(a.I,a,!0),v(a.I,a,!1)),b.ev=!0);c&&(a.F=l.setTimeout(Tb(b),0))}function no(){ua.call(this)}y(no,ua);no.prototype.message="Deferred has already fired"; +no.prototype.name="AlreadyCalledError";function jo(){ua.call(this)}y(jo,ua);jo.prototype.message="Deferred was canceled";jo.prototype.name="CanceledError";function ro(a,b){var c=b||{},d=c.document||document,e=Xc("SCRIPT"),g={Io:e,uc:void 0},h=new io(so,g),k=null,m=null!=c.timeout?c.timeout:5E3;0a&&Gi(this.a,2*a)};function Co(){this.g=new Xm(["div","html5-fresca-module",["div","html5-fresca-band-slate",["hgroup","html5-fresca-message",["h2","html5-fresca-heading","{{heading}}"],["h3","html5-fresca-subheading","{{subheading}}"],["h4","html5-fresca-long-test","{{long_text}}"]],["span","html5-fresca-countdown","{{countdown}}"]]]);L(this,this.g);this.b=this.g.a["html5-fresca-module"];V(this.b,"html5-stop-propagation");this.i=0;this.a=null}y(Co,K);Co.prototype.N=function(){return this.b}; +Co.prototype.update=function(a){if(!this.k||this.a.state!=a.state||this.a.startTime!=a.startTime||this.a.b!=a.b||this.a.a.join()!=a.a.join()){this.a=a;this.b.style.backgroundImage=this.a.b||"none";a=this.a.a;if(!a.length){t:switch(this.a.state){case 6:a="";break t;case 8:case 7:a=mf("FRESCA_COMPLETE_MESSAGE");break t;default:a=mf("FRESCA_STAND_BY_MESSAGE")}a=[a]}this.g.update({heading:a[0]||"",subheading:a[1]||"",long_text:a[2]||""});this.j()}}; +function Do(a){var b=Math.floor((new Date).valueOf()/1E3);return b>a?mf("FRESCA_STARTING_SOON_MESSAGE"):Dn(a-b)}Co.prototype.j=function(){var a;a=this.a;a.startTime?(a=a.state,a=6==a||8==a||7==a?!1:!0):a=!1;X(this.b,"html5-fresca-show-countdown",a);a&&(this.g.update({countdown:Do(this.a.startTime)}),I(this.i),this.i=H(v(this.j,this),1E3))};Co.prototype.H=function(){I(this.i);this.b=null;Co.C.H.call(this)};function Eo(a){this.a=[];a&&Fo(this,a)}Eo.prototype.state=-1;function Fo(a,b){var c=b.feed;if(c){var d=c.yt$lifeCycleState;d&&(a.state=ho[d.$t]||-1);(d=c.yt$when)&&d.start&&(d=new Date(d.start),a.startTime=Math.floor(d.valueOf()/1E3));if(c=c.yt$slate)c.imgUrl&&(a.b="url("+c.imgUrl+")"),(c=c.content)&&c.length&&(c=c.splice(0,3),a.a=La(c,function(a){return a.$t}))}};function Go(a){Im.call(this,a)}y(Go,Im);f=Go.prototype;f.qa="fresca";f.ad="fresca";f.Zh=!1;f.Kg=!1;f.$a=function(){return qm(this.a.getVideoData(),"fresca_module")};f.create=function(a){Go.C.create.call(this);this.Zh=this.Kg=!1;Sm(this,["play_pause","seek"]);this.i=new Co;this.a.app.R.g.appendChild(this.i.N());this.g=a||new Bo(this.a.getVideoData().M);this.g.D("payload",this.Lu,this);this.g.D("error",this.Ku,this);this.D("onStateChange",this.ko,this)}; +f.destroy=function(){this.ba&&this.unload();this.$("onStateChange",this.ko,this);Ug(this.g,this.i);Go.C.destroy.call(this)};f.load=function(){Go.C.load.call(this);this.ba=!0};f.unload=function(){this.ba=!1;Go.C.unload.call(this)};f.ko=function(a){this.b&&(this.Zh=P(a.state,2),(Ho(a,16)||this.Zh)&&Io(this,this.b))};f.Ku=function(){this.Kg||(this.b=new Eo,Io(this,this.b))};f.Lu=function(a){this.b=new Eo(a);a=this.a.getVideoData();6!=this.b.state||a.va||a.B?Io(this,this.b):this.a.Lj(a.M)}; +function Io(a,b){var c=6>b.state;!c&&a.a.app.b.ga&&(b.b||b.a.length)&&(c=!0);a.Zh&&!a.a.K().xc&&(c=!0);if(!a.Kg)switch(b.state){case 6:a.Kg=!0;Sm(a,["play_pause","seek"]);Km(a);break;case 8:case 7:c=a.Kg=!0}c&&a.i.update(b);c&&!a.ba?a.load():!c&&a.ba&&a.unload()}function Jo(a){return qm(a.getVideoData(),"fresca_module")?new Go(a):null};function Ko(a){this.Ig=a||window;this.ae=[]}f=Ko.prototype;f.Ig=null;f.ae=null;f.listen=function(a,b,c,d){c=v(c,d||this.Ig);a=J(a,b,c);this.ae.push(a);return a};function Lo(a,b,c,d){d=v(d,a.Ig);b=zf(b,c,d);a.ae.push(b);return b}function Mo(a,b,c){c=v(c,a.Ig);b=Cf(b,c,"yt-uix-button-menu-item");a.ae.push(b)}f.ac=function(a){yf(a);Xa(this.ae,a)};f.removeAll=function(){yf(this.ae);this.ae=[]};function No(a,b,c,d,e){this.b=a;this.a=b;this.ia=c;this.He=d;this.g=e};function Oo(a,b,c){this.a=a;this.i=b||0;this.b=c;this.g=v(this.Vt,this)}y(Oo,K);f=Oo.prototype;f.Ba=0;f.H=function(){Oo.C.H.call(this);this.stop();delete this.a;delete this.b};f.start=function(a){this.stop();this.Ba=Hi(this.g,q(a)?a:this.i)};f.stop=function(){0!=this.Ba&&l.clearTimeout(this.Ba);this.Ba=0};f.Vt=function(){this.Ba=0;this.a&&this.a.call(this.b)};var Po={},Qo=null;function Ro(a){a=ja(a);delete Po[a];Nb(Po)&&Qo&&Qo.stop()}function So(){Qo||(Qo=new Oo(function(){To()},20));var a=Qo;0!=a.Ba||a.start()}function To(){var a=x();Hb(Po,function(b){Uo(b,a)});Nb(Po)||So()};function Vo(){Ci.call(this);this.a=0;this.k=this.startTime=null}y(Vo,Ci);f=Vo.prototype;f.kk=function(){this.Ed("begin")};f.Gi=function(){this.Ed("end")};f.pd=function(){this.Ed("finish")};f.onStop=function(){this.Ed("stop")};f.Ed=function(a){Di(this,a)};function Wo(a,b,c,d){Vo.call(this);if(!t(a)||!t(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.g=a;this.o=b;this.duration=c;this.j=d;this.b=[]}y(Wo,Vo);f=Wo.prototype;f.Yc=0; +function Xo(a){if(0==a.a)a.Yc=0,a.b=a.g;else if(1==a.a)return;Ro(a);var b=x();a.startTime=b;-1==a.a&&(a.startTime-=a.duration*a.Yc);a.k=a.startTime+a.duration;a.Yc||a.kk();a.Ed("play");-1==a.a&&a.Ed("resume");a.a=1;var c=ja(a);c in Po||(Po[c]=a);So();Uo(a,b)}f.stop=function(a){Ro(this);this.a=0;a&&(this.Yc=1);Yo(this,this.Yc);this.onStop();this.Gi()};f.H=function(){0==this.a||this.stop(!1);this.Ed("destroy");Wo.C.H.call(this)};f.destroy=function(){this.dispose()}; +function Uo(a,b){a.Yc=(b-a.startTime)/(a.k-a.startTime);1<=a.Yc&&(a.Yc=1);Yo(a,a.Yc);1==a.Yc?(a.a=0,Ro(a),a.pd(),a.Gi()):1==a.a&&a.al()}function Yo(a,b){ha(a.j)&&(b=a.j(b));a.b=Array(a.g.length);for(var c=0;c=e.right)&&(g&=-2),132==(g&132)&&(d.y=e.bottom)&&(g&=-5),d.xe.right&&g&16&&(h.width=Math.max(h.width-(d.x+h.width-e.right),0),k|=4),d.x+h.width>e.right&&g&1&&(d.x=Math.max(e.right- +h.width,e.left),k|=1),g&2&&(k=k|(d.xe.right?32:0)),d.y=e.top&&d.y+h.height>e.bottom&&g&32&&(h.height=Math.max(h.height-(d.y+h.height-e.bottom),0),k|=8),d.y+h.height>e.bottom&&g&4&&(d.y=Math.max(e.bottom-h.height,e.top),k|=2),g&8&&(k=k|(d.ye.bottom?128:0)),e=k):e=256,e&496))return;pd(b,a);Ab(c,h)||(e=ld(Jc(Lc(b))), +!C||e&&uc("8")?(b=b.style,fc?b.MozBoxSizing="border-box":gc?b.WebkitBoxSizing="border-box":b.boxSizing="border-box",b.width=Math.max(h.width,0)+"px",b.height=Math.max(h.height,0)+"px"):(a=b.style,e?(e=Id(b),b=Jd(b),a.pixelWidth=h.width-b.left-e.left-e.right-b.right,a.pixelHeight=h.height-b.top-e.top-e.bottom-b.bottom):(a.pixelWidth=h.width,a.pixelHeight=h.height)))};var rp={},sp="ontouchstart"in document;function tp(a,b,c){var d;switch(a){case "mouseover":case "mouseout":d=3;break;case "mouseenter":case "mouseleave":d=9}return kd(c,function(a){return Gc(a,b)},!0,d)} +function up(a){var b="mouseover"==a.type&&"mouseenter"in rp||"mouseout"==a.type&&"mouseleave"in rp,c=a.type in rp||b;if("HTML"!=a.target.tagName&&c){if(b){var b="mouseover"==a.type?"mouseenter":"mouseleave",c=rp[b],d;for(d in c.Sb){var e=tp(b,d,a.target);e&&!kd(a.relatedTarget,function(a){return a==e},!0)&&c.u(d,e,b,a)}}if(b=rp[a.type])for(d in b.Sb)(e=tp(a.type,d,a.target))&&b.u(d,e,a.type,a)}}J(document,"blur",up,!0);J(document,"change",up,!0);J(document,"click",up);J(document,"focus",up,!0); +J(document,"mouseover",up);J(document,"mouseout",up);J(document,"mousedown",up);J(document,"keydown",up);J(document,"keyup",up);J(document,"keypress",up);J(document,"cut",up);J(document,"paste",up);sp&&(J(document,"touchstart",up),J(document,"touchend",up),J(document,"touchcancel",up));var vp=window.yt&&window.yt.uix&&window.yt.uix.widgets_||{};pa("yt.uix.widgets_",vp);function wp(a){a=a.getInstance();var b=Z(a);b in vp||!a.$p()||(a.register(),vp[b]=a)};function xp(){this.a={}}xp.prototype.g=!!eval("/*@cc_on!@*/false");xp.prototype.$p=function(){return!0};function yp(a,b,c){var d=Z(a,void 0),e=v(c,a);b in rp||(rp[b]=new Xh);rp[b].D(d,e);a.a[c]=e}xp.prototype.b=function(a,b,c){var d=G(a,b);if(d&&(d=n(d))){var e=db(arguments,2);cb(e,0,0,a);d.apply(null,e)}};function zp(a,b){Pe(a,"tooltip-text",b)}xp.prototype.removeData=function(a,b){a.dataset?delete a.dataset[Qe(b)]:a.removeAttribute("data-"+b)}; +function Z(a,b){return"yt-uix"+(a.Wi?"-"+a.Wi:"")+(b?"-"+b:"")};function Ap(){this.a={}}y(Ap,xp);ca(Ap);f=Ap.prototype;f.Wi="button";f.Bf=null;f.register=function(){yp(this,"click",this.Sx);yp(this,"keydown",this.Qx);yp(this,"keypress",this.Rx)};f.Sx=function(a){a&&!a.disabled&&(Bp(this,a),this.click(a))}; +f.Qx=function(a,b,c){if(!(c.altKey||c.ctrlKey||c.shiftKey)&&(b=Cp(this,a))){var d=function(a){var b="";a.tagName&&(b=a.tagName.toLowerCase());return"ul"==b||"table"==b};if(d=d(b)?b:ed(b,d)){var d=d.tagName.toLowerCase(),e;"ul"==d?e=this.Wx:"table"==d&&(e=this.Vx);e&&Dp(this,a,b,c,v(e,this))}}}; +function Dp(a,b,c,d,e){var g=Gn(c),h=9==d.keyCode;h||32==d.keyCode||13==d.keyCode?(d=Ep(a,c))?(b=ad(d),"a"==b.tagName.toLowerCase()?window.location=b.href:Ef(b,"click")):h&&Fp(a,b):g?27==d.keyCode?(Ep(a,c),Fp(a,b)):e(b,c,d):(a=Gc(b,Z(a,"reverse"))?38:40,d.keyCode==a&&(Ef(b,"click"),d.preventDefault()))}f.Rx=function(a,b,c){c.altKey||c.ctrlKey||c.shiftKey||(a=Cp(this,a),Gn(a)&&c.preventDefault())};function Ep(a,b){var c=Z(a,"menu-item-highlight"),d=E(c,b);d&&Ec(d,c);return d} +function Gp(a,b,c){Dc(c,Z(a,"menu-item-highlight"));b.setAttribute("aria-activedescendant",c.getAttribute("id"))}f.Vx=function(a,b,c){var d=Ep(this,b);b=Ve("table",b);var e=Ve("tr",b),e=Oc("td",null,e).length;b=Oc("td",null,b);d=Hp(d,b,e,c);-1!=d&&(Gp(this,a,b[d]),c.preventDefault())};f.Wx=function(a,b,c){if(40==c.keyCode||38==c.keyCode){var d=Ep(this,b);b=Oc("li",null,b);d=Hp(d,b,1,c);Gp(this,a,b[d]);c.preventDefault()}}; +function Hp(a,b,c,d){var e=b.length;a=Ja(b,a);if(-1==a)if(38==d.keyCode)a=e-c;else{if(37==d.keyCode||38==d.keyCode||40==d.keyCode)a=0}else 39==d.keyCode?(a%c==c-1&&(a-=c),a+=1):37==d.keyCode?(0==a%c&&(a+=c),a-=1):38==d.keyCode?(a=e-c&&(a-=e),a+=c);return a}function Ip(a,b){var c=b.iframeMask;c||(c=document.createElement("iframe"),c.src='javascript:""',c.className=Z(a,"menu-mask"),b.iframeMask=c);return c} +function Jp(a,b,c,d){var e=jd(b,Z(a,"group")),g=!!G(b,"button-menu-ignore-group"),e=e&&!g?e:b,g=5,h=4,k=Ed(b);if(Gc(b,Z(a,"reverse"))){g=4;h=5;k=k.top+"px";try{c.style.maxHeight=k}catch(m){}}Gc(b,"flip")&&(Gc(b,Z(a,"reverse"))?(g=6,h=7):(g=7,h=6));var p;G(b,"button-has-sibling-menu")?p=sd(e):G(b,"button-menu-root-container")&&(p=Kp(b));C&&!uc("8")&&(p=null);var r;p&&(r=Ed(p),r=new zb(-r.top,r.left,r.top,-r.left));p=new A(0,1);Gc(b,Z(a,"center-menu"))&&(p.x-=Math.round((Cd(c).width-Cd(b).width)/2)); +d&&(p.y+=Sc(document).y);if(a=Ip(a,b))b=Cd(c),a.style.width=b.width+"px",a.style.height=b.height+"px",pp(e,g,a,h,p,r),d&&Kn(a,"position","fixed");pp(e,g,c,h,p,r)}function Kp(a){if(G(a,"button-menu-root-container")){var b=G(a,"button-menu-root-container");return jd(a,b)}return document.body} +f.bp=function(a){if(a){var b=Cp(this,a);if(b){a.setAttribute("aria-pressed","true");a.setAttribute("aria-expanded","true");b.originalParentNode=b.parentNode;b.activeButtonNode=a;b.parentNode.removeChild(b);var c;c=G(a,"button-has-sibling-menu")?a.parentNode:Kp(a);c.appendChild(b);b.style.minWidth=a.offsetWidth-2+"px";var d=Ip(this,a);d&&c.appendChild(d);c=!!G(a,"button-menu-fixed");Jp(this,a,b,c);Hn(b);this.b(a,"button-menu-action",!0);Dc(a,Z(this,"active"));b=v(this.ap,this,a,!1);c=v(this.ap,this, +a,!0);c=J(document,"click",c);b=J(document,"contextmenu",b);Pe(a,"button-listener",c);Pe(a,"button-context-menu-listener",b);this.Bf=a}}}; +function Fp(a,b){if(b){var c=Cp(a,b);if(c){a.Bf=null;b.setAttribute("aria-pressed","false");b.setAttribute("aria-expanded","false");b.removeAttribute("aria-activedescendant");In(c);a.b(b,"button-menu-action",!1);var d=Ip(a,b);H(function(){d&&d.parentNode&&d.parentNode.removeChild(d);c.originalParentNode&&(c.parentNode.removeChild(c),c.originalParentNode.appendChild(c),c.originalParentNode=null,c.activeButtonNode=null)},1)}var e=jd(b,Z(a,"group"));Ec(b,Z(a,"active"));e&&Ec(e,Z(a,"group-active"));if(e= +G(b,"button-listener"))yf(e),a.removeData(b,"button-listener");if(e=G(b,"button-context-menu-listener"))yf(e),a.removeData(b,"button-context-menu-listener")}}function Lp(a,b){var c=Cp(a,b);c&&Jp(a,b,c)}function Mp(a,b){return Cp(a,b)} +f.ap=function(a,b,c){c=c||window.event;c=c.target||c.srcElement;3==c.nodeType&&(c=c.parentNode);var d=jd(c,Z(this));if(d){var d=Cp(this,d),e=Cp(this,a);if(d==e)return}if(!jd(c,Z(this,"menu"))||Gc(c,Z(this,"menu-item"))||Gc(c,Z(this,"menu-close")))if(Fp(this,a),(d=jd(c,Z(this,"menu")))&&b&&G(a,"button-menu-indicate-selected")){if(a=E(Z(this,"content"),a))Ac&&"innerText"in c?b=c.innerText.replace(/(\r\n|\r|\n)/g,"\n"):(b=[],id(c,b,!0),b=b.join("")),b=b.replace(/ \xAD /g," ").replace(/\xAD/g,""),b=b.replace(/\u200B/g, +""),Ac||(b=b.replace(/ +/g," "))," "!=b&&(b=b.replace(/^\s*/,"")),dd(a,b);a=Z(this,"menu-item-selected");(b=E(a,d))&&Ec(b,a);Dc(c.parentNode,a)}};function Cp(a,b){if(!b.widgetMenu){var c=G(b,"button-menu-id"),c=c&&Mc(c),d=Z(a,"menu");c?(Dc(c,d),Dc(c,Z(a,"menu-external"))):c=E(d,b);b.widgetMenu=c}return b.widgetMenu} +function Bp(a,b){if(G(b,"button-toggle")){var c=jd(b,Z(a,"group"));if(c&&G(c,"button-toggle-group")){var d=G(c,"button-toggle-group"),c=Nc(Z(a),c),e=Z(a,"toggled"),g=Gc(b,e);z(c,function(a){a!=b||"optional"==d&&g?Ec(a,e):Dc(b,e)})}else Ic(b,Z(a,"toggled"))}}f.click=function(a){if(Cp(this,a)){var b=Cp(this,a),c=jd(b.activeButtonNode||b.parentNode,Z(this));c&&c!=a?(Fp(this,c),H(v(this.bp,this,a),1)):Gn(b)?Fp(this,a):this.bp(a);a.focus()}this.b(a,"button-action")};function Np(a,b,c){this.i=a;this.g=b;this.b=c;this.a=v(this.Wt,this)}y(Np,K);f=Np.prototype;f.Ui=!1;f.Df=null;function Op(a){a.Df?a.Ui=!0:Pp(a)}f.stop=function(){this.Df&&(l.clearTimeout(this.Df),this.Df=null,this.Ui=!1)};f.H=function(){Np.C.H.call(this);this.stop()};f.Wt=function(){this.Df=null;this.Ui&&(this.Ui=!1,Pp(this))};function Pp(a){a.Df=Hi(a.a,a.g);a.i.call(a.b)};function Qp(a,b,c){b||(b={});var d=c||window;c="undefined"!=typeof a.href?a.href:String(a);a=b.target||a.target;var e=[],g;for(g in b)switch(g){case "width":case "height":case "top":case "left":e.push(g+"="+b[g]);break;case "target":case "noreferrer":break;default:e.push(g+"="+(b[g]?1:0))}g=e.join(",");if(b.noreferrer){if(b=d.open("",a,g))C&&-1!=c.indexOf(";")&&(c="'"+c.replace(/'/g,"%27")+"'"),b.opener=null,c=ya(c),b.document.write(''),b.document.close()}else b= +d.open(c,a,g);return b}function Rp(a,b){var c;c=b||{};c.target=c.target||a.target||"YouTube";c.width=c.width||600;c.height=c.height||600;(c=Qp(a,c))?(c.opener||(c.opener=window),c.focus()):c=null;return!c};function Sp(a,b){Tp().tick[a]=b||x()}function Up(a){var b=Tp().tick;return a in b}function Vp(a){var b="https:"==window.location.protocol?"https://gg.google.com/csi":"http://csi.gstatic.com/csi",c="",d;for(d in a)c+="&"+d+"="+a[d];sa(b+"?"+c.substring(1))}function Wp(){return Tp().info}function Tp(){return n("ytcsi.data_")||Xp()}function Xp(){var a={tick:{},span:{},info:{}};pa("ytcsi.data_",a);return a};function Yp(a,b){return null!=b&&!!b.match(a)}function Zp(a,b){for(var c in a)if(a[c]==b)return!0;return!1}function $p(a,b,c,d){var e=new aq;e.type=c;e.defaultValue=d;e.b=oa(Yp,/.+/);return bq(a[b],e)}function cq(a,b,c){var d=new aq;d.type="OPTIONAL";d.a=function(a){if(isNaN(parseInt(a,0)))return null;a=parseInt(a,0).toString(16);return"#"+"000000".substring(0,6-a.length)+a};d.b=function(a){return!!a};d.defaultValue=c;return bq(a[b],d)} +function dq(a,b,c,d){var e=new aq;e.type=c;e.defaultValue=d;return bq(a[b],e)}function eq(a,b,c,d,e){var g=new aq;g.type=d;g.defaultValue=e;g.b=oa(Zp,c);return bq(a[b],g)}function fq(a,b,c){var d=new aq;d.type="OPTIONAL";d.defaultValue=c;d.b=function(a){return!0==a||!1==a};d.a=function(a){return"true"==a||"false"==a?"true"==a:a};return bq(a[b],d)}function gq(a,b,c){var d=new aq;d.type="OPTIONAL";d.defaultValue=c;d.a=function(a){return parseFloat(a)};return bq(a[b],d)} +function hq(a){var b=new aq;b.type="OPTIONAL";b.defaultValue=0;b.a=function(a){return parseInt(a,10)};return bq(a.d,b)}function iq(a,b,c,d,e,g,h){var k=new aq;k.type="OPTIONAL";k.a=function(a){a=10==c?parseFloat(a):parseInt(a,c);return g&&null!=a&&!isNaN(a)?wb(a,d,e):a};k.defaultValue=h;k.b=function(a){return null!=a&&!isNaN(a)&&a>=d&&a<=e};return bq(a[b],k)} +function jq(a,b){var c=new aq;c.type="OPTIONAL";c.defaultValue=0;c.a=function(a){if("never"==a)return-1;a=a.split(":");if(3a&&(c=-c);b=60*b+Math.abs(a)});return c*b};return bq(a[b],c)}function kq(a,b){return null==b?null:a(b)}function lq(a,b,c,d,e){if(null==a||null==a[b])return null;var g=new aq;g.type=d;g.defaultValue=e;g.b=function(a){return!!a};g.a=oa(kq,c);return bq(a[b],g)} +function bq(a,b){var c;if("OPTIONAL"==b.type||"REQUIRED"==b.type){if(c=null==a?null:b.a(t(a)&&a.length?a[0]:a),!b.b(c)){if("REQUIRED"==b.type)throw"Required field missing.";c=null==b.defaultValue?null:b.defaultValue}}else c="REPEATED"==b.type?null!=a?mq(t(a)?a:[a],b):null!=b.defaultValue?t(b.defaultValue)?b.defaultValue:[b.defaultValue]:[]:"IDLIST"==b.type?nq(a,b):null;return c} +function nq(a,b){function c(a){return Ka(a.split(/ +/),function(a){return""!=a})}return null!=a?mq(c(a),b):null!=b.defaultValue?t(b.defaultValue)?b.defaultValue:[b.defaultValue]:[]}function mq(a,b){for(var c=[],d=0;db.length||!b[0])return!1;b=b[0].toLowerCase().split(".").reverse();return 2>b.length?!1:("com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1])&&-1==a.indexOf("/redirect?")} +function vq(a,b){if("new"==a.target)return-1;var c=tq(a);if(!c)return-1;var c=c.replace(/https?:\/\//g,""),d;(d=!uq(c))||(d=ge(c)||"",d=d.split("/"),d="/"+(1c.length)return-1;(c=Fj(c[1]))&&c.t?(d=c.t,c=0,-1!=d.indexOf("h")&&(d=d.split("h"),c=3600*d[0],d=d[1]),-1!=d.indexOf("m")&&(d=d.split("m"),c=60*d[0]+c,d=d[1]),-1!=d.indexOf("s")?(d=d.split("s"),c=1*d[0]+c):c=1*d+c):c=-1;return c} +function wq(a,b,c){return(a=tq(a))?uq(a)?Kj(a,{src_vid:c.M,feature:"iv",annotation_id:b.id}):a:null}function xq(a){return a.target?"new"==a.target?"_blank":"_top":uq(tq(a))?"_top":"_blank"};function yq(a,b,c){this.ib=a;this.element=b;this.S=c;this.Gb=this.a=!1;this.ll=!0}function zq(a,b){b.D("onHideControls",function(){this.ll=!1;this.dh()},a);b.D("onShowControls",function(){this.ll=!0;this.dh()},a);b.D("onResize",a.dh,a)}function Aq(a,b){var c=Uc("div","annotation-x-button-container"),d=Uc("div","annotation-x-button");c.appendChild(d);a.S.b.listen(c,"click",v(function(a){var c=this.S.He,d=this.ib;d&&d.i&&c.log_(Bq(c,d,4));b(a);a.stopPropagation();this.Gb=!0},a));return c}f=yq.prototype; +f.N=function(){return this.element};function Cq(a,b){a.S.b.listen(b,"click",v(function(){var a=Dq(this.ib),b=wq(a,this.ib,this.S.ia),e=v(function(){this.S.g.Qj();window.open(b,xq(a))},this);uq(tq(a))&&"new"!=a.target||(e(),e=null);Eq(this.S.He,this.ib,e)},a))}f.show=function(){};f.hide=function(){};f.destroy=function(){F(this.element)};f.dh=function(){};function Fq(a,b,c){yq.call(this,a,b,c);this.b=Uc("div","invideo-video-text-container");this.g=!1}y(Fq,yq);function Gq(a){var b=new dp(a.element,[a.element.offsetLeft,a.element.offsetTop],[a.element.offsetLeft,a.element.offsetTop-a.element.offsetHeight],300,fp);si(b,"begin",v(function(){this.a=!0},a));Xo(b)} +function Hq(a){var b=new dp(a.element,[a.element.offsetLeft,a.element.offsetTop],[a.element.offsetLeft,a.element.offsetTop+a.element.offsetHeight+4],300,ep);si(b,"end",v(function(){this.a=!1;In(this.element)},a));Xo(b)} +function Iq(a){Ad(a.element,444,56);var b=a.ib.data,c={src:b.image_url,"class":"invideo-video-img"},d=Uc("div","invideo-video-img-container"),c=Uc("img",c);Ad(c,100,56);d.appendChild(c);a.element.appendChild(d);Ad(a.b,244,56);d=Uc("span","iv-subtitle-text");dd(d,b.text_line_1);a.b.appendChild(d);d=Uc("span","iv-title-text");dd(d,b.text_line_2);a.b.appendChild(d);a.element.appendChild(a.b);b=Aq(a,v(function(){Hq(this)},a));a.element.appendChild(b);Cq(a,a.element)} +Fq.prototype.show=function(){if(!this.a){this.g||(Iq(this),this.g=!0);this.dh();Hn(this.element);var a=this.S.He,b=this.ib;b&&b.i&&a.log_(Bq(a,b,2));Gq(this)}};Fq.prototype.hide=function(){this.a&&Hq(this)};Fq.prototype.dh=function(){var a=this.S.a.tf,b=this.S.a.Oc;if(a&&b){var c=Cd(this.element),d=b.height-a.top,b=c.width=this.j?0:1-(a-this.k)/this.b;var c=E("countdowntimer-diminishing-pieslice",this.a),d=Ve("svg",this.a);!d&&this.a.querySelectorAll&&(d=this.a.querySelectorAll("svg"),d=d.length?d[0]:null);var d=parseInt(d.getAttribute("width"),10),e=new Mr,g=d/2-5;Or(e,d/2,d/2);e.Ga(d/2,5);Pr(e,g,g,-90,360*-b);e.Ga(d/2,d/2);e.close();c.setAttribute("d",ns(e));a>=this.j&&(this.stop(),this.i&&this.i())}};function qs(a,b){this.b=a;this.a=b}function Eq(a,b,c){b&&b.i&&Dq(b)&&a.log_(Bq(a,b,3),c)}function Bq(a,b,c){var d={};d["iv-event"]=c;d["a-id"]=b.id;d["a-type"]=rs(b);if(c=Dq(b))d.link=escape(tq(c)),c.a&&(d["l-class"]=c.a);d.ps=a.a.La;if(b.A){var e=new xe(b.A);z(e.tc(),function(a){d[a]=e.get(a)})}return d} +function rs(a){switch(a.type){case "text":switch(a.style){case "popup":return 1;case "speech":return 2;case "anchored":return 8;case "label":return 9;case "title":return 4;default:return 0}case "highlight":return 3;case "image":switch(a.style){case "video":return 11;case "channel":return 10;default:return 0}default:return 0}}qs.prototype.log_=function(a,b){this.b.u("command_log","iv",a,b)};function ss(){this.element=this.label=null;this.priority=0}y(ss,K);ss.prototype.listen=function(a,b,c){return this.element.listen(this.element,a,b,c||this)};ss.prototype.ac=function(a){this.element.ac(a)};function ts(a,b,c){Y.call(this,["div","ytp-segmented-control"]);this.g=a;this.b=-1;this.a=[];q(b)&&us(this,b,c)}y(ts,Y);function us(a,b,c){Ug(a.a);a.a=[];for(var d=0;d=h.width||0>=h.height)){var k;if(k=(a=(a=a.a?a.a.a.length?a.a.a[0]:null:null)&&a.a?a.a:null)&&a.length?a[0]:null){var m;c=c?br(c,b):null;a=Xq(k,new Db(k.B,k.G,k.k,k.i),b);c?(a.top+=c.top,a.left+=c.left):(a.top+=b.top,a.left+=b.left);m=new A(a.left,a.top);c=h.clone();a=new Db(m.x,m.y,1,1);var g=Math.max(c.left+c.width,a.left+a.width),p=Math.max(c.top+c.height,a.top+ +a.height);c.left=Math.min(c.left,a.left);c.top=Math.min(c.top,a.top);c.width=g-c.left;c.height=p-c.top;c=Os(c,d.b);a=zs(this,c.width,c.height);var g=Ns(d,c.width,c.height,this.Qc),h=new Db(h.left-c.left,h.top-c.top,h.width,h.height),r=new A(m.x-c.left,m.y-c.top);this.a=17*Zq(b,k.g,k.a?k.a:"xy");b=d.g;k=e?e.a/2:0;m=Rs(h,r);var p=this.b(h,b,r,m),s=r.x,r=r.y,D=h.width,O=h.height,ta=h.left,h=h.top,$=new Mr;Or($,ta+b+k,h+k);"t"==m&&($.Ga(p.start,h+k),$.Ga(s,r),$.Ga(p.end,h+k));$.Ga(ta+D-b-k,h+k);Pr($, +b,b,-90,90);"r"==m&&($.Ga(ta+D-k,p.start),$.Ga(s,r),$.Ga(ta+D-k,p.end));$.Ga(ta+D-k,h+O-b-k);Pr($,b,b,0,90);"b"==m&&($.Ga(p.end,h+O-k),$.Ga(s,r),$.Ga(p.start,h+O-k));$.Ga(ta+b+k,h+O-k);Pr($,b,b,90,90);"l"==m&&($.Ga(ta+k,p.end),$.Ga(s,r),$.Ga(ta+k,p.start));$.Ga(ta+k,h+b+k);Pr($,b,b,180,90);$.close();ms(a,$,e,g);if(e=this.N())V(e,"annotation-shape"),V(e,"annotation-speech-shape"),pd(e,c.left,c.top),Ad(e,c.width,c.height),Ps(a,e,d.b)}}}}; +function Rs(a,b){var c=a.top-b.y,d=b.x-a.left-a.width,e=b.y-a.top-a.height,g=a.left-b.x,h=Math.max(c,d,e,g);if(0>h)return"i";switch(h){case c:return"t";case d:return"r";case e:return"b";case g:return"l"}return"i"}Qs.prototype.b=function(a,b,c,d){function e(a,c,d){h=Math.min(Math.max(d-2*b,0),g);k=wb(a-h/2,c+b,c+d-h-b)}var g=this.a,h=0,k=0;"t"==d||"b"==d?e(c.x,a.left,a.width):"l"!=d&&"r"!=d||e(c.y,a.top,a.height);return new xs(k,k+h)};function Ss(){}y(Ss,ys);Ss.prototype.Yd=function(a,b,c){var d=Br(a);d&&(b=br(d,b,c),0>=b.width||0>=b.height||(a=a.b,c=Os(b,a.b),d=zs(this,c.width,c.height),Ks(d,new Db(0,0,b.width,b.height),a.g,new Sr(!a.i&&this.Qc?1:a.i,a.j),new Rr("#000",0)),b=this.N(),V(b,"annotation-shape"),Fd(b,this.Qc?Math.max(a.a,0.9):a.a),pd(b,c.left,c.top),Ad(b,c.width,c.height)))};function Ts(a,b,c){this.a=a||0;this.g=b||0;this.b=c||!1}y(Ts,ys);function Us(a,b){var c=a.width,d=a.height,e=0,g=0;0b?(d=a.width/b,g=(a.height-d)/2):(c=a.height*b,e=(a.width-c)/2));return new Db(e,g,c,d)} +Ts.prototype.Yd=function(a,b,c){var d=br(Br(a),b,c);if(!(0>=d.width||0>=d.height)){var e=Us(d,this.g);e.left+=d.left;e.top+=d.top;b=a.b;c=Os(e,b.b);var g=zs(this,c.width,c.height),h=new Rr("#000",0),e=Us(e,this.a);a=a.j?a.j.a?a.j.a:a.j.M?Qn(a.j.M,"hqdefault.jpg"):"":"";e=bs(g,"image",{x:e.left,y:e.top,width:e.width,height:e.height,"image-rendering":"optimizeQuality",preserveAspectRatio:"none"});e.setAttributeNS("http://www.w3.org/1999/xlink","href",a);a=new is(e,g);g.b.N().appendChild(a.N());if(e= +this.N()){var k=this.Qc?Math.max(b.a,0.9):b.a;Fd(e,k);if(this.b&&0=e.width||0>=e.height)){b=a.b;c=Os(e,b.b);var d=zs(this,c.width,c.height),g=b.F;a=this.Qc&&xr(a);a=(g+=a?1:0)?new Sr(g,a?b.k:b.o):null;g=new Db(0,0,e.width,e.height);e=Ns(b,e.width,e.height,this.Qc);Ks(d,g,b.g,a,e);if(a=this.N())V(a,"annotation-shape"),V(a,"annotation-popup-shape"),pd(a,c.left,c.top),Ad(a,c.width,c.height),Ps(d,a,b.b)}}};function Ws(){}y(Ws,Qs);Ws.prototype.b=function(a,b,c,d){function e(a,c,d){h=Math.min(Math.max(d-2*b,0),g);k=a<=c+d/2?Math.max(c+d/4-h/2,c+b):Math.min(c+3*d/4-h/2,c+d-h-b)}var g=this.a,h=0,k=0;"t"==d||"b"==d?e(c.x,a.left,a.width):"l"!=d&&"r"!=d||e(c.y,a.top,a.height);return new xs(k,k+h)};function Xs(a,b){this.b=Mc(a);this.a=Un(this.b,b)} +function Ys(a,b){var c=Vn(a.a,b,void 0),c=c.replace(/^[\s\xa0]+/,""),d;d=String(c.substr(0,3)).toLowerCase();(d=0==(""+c+"");var e=c,g=document,c=g.createElement("div");C?(c.innerHTML="
"+e,c.removeChild(c.firstChild)):c.innerHTML=e;if(1==c.childNodes.length)c=c.removeChild(c.firstChild);else{for(e=g.createDocumentFragment();c.firstChild;)e.appendChild(c.firstChild);c=e}d&&(c=ad(ad(c)));return c};function Zs(a,b,c,d,e){this.a=a;this.j=b;this.g=c;this.o=d;this.k=e;this.i=new Ko(this)}f=Zs.prototype;f.na=null;f.Sc=null;f.dc=null;f.Fa=null;f.Tk=null;function $s(a,b){var c=v(function(a,c,g){c=g?at(this,c,v(g,this)):at(this,c);this.i.listen(b,a,c)},a);c("mouseover","e",a.Kw);c("mouseout","d",a.Jw);c("click","b");c("mousedown","a");c("touchend","b")} +function bt(a){if(a.a.F){var b;if(Ma(a.a.g,function(a){return"close"==a.type},void 0))b=a.na;else{b=Ys(new Xs("annotation-close-button-template",[]),{});if(!(b instanceof Element))return;a.dc=b;Pe(a.dc,"annotation_id",a.a.id);a.na.appendChild(a.dc);b=a.dc}var c=function(a){a.stopPropagation()};a.i.listen(b,"click",at(a,"c",c));a.i.listen(b,"touchend",at(a,"c",c))}} +function at(a,b,c){return v(function(a){if(this.k)c&&c(a);else if(a.target instanceof Element){In(a.target);var e=document.elementFromPoint(a.clientX,a.clientY);Hn(a.target);jd(e,"annotation")&&Ef(e,a.type)}this.o.u(b,this.a)},a)}f.Kw=function(){this.dc&&Hn(this.dc);this.Sc&&Fd(this.Sc,1);var a=ct(this);this.Fa&&(this.Fa.Qc=!0,Fd(this.na,dt(this)?1:0),a&&this.Fa.Yd(this.a,a,et(this)))}; +f.Jw=function(){this.dc&&In(this.dc);this.Sc&&Fd(this.Sc,0);var a=ct(this);this.Fa&&(this.Fa.Qc=!1,Fd(this.na,dt(this)?1:0),a&&this.Fa.Yd(this.a,a,et(this)))};function et(a){return a.Tk?Br(a.Tk):null} +function Jr(a){if(a.na||a.Fa){var b=Br(a.a);if(b){var c=ct(a),d=et(a);if(a.na&&c){b=br(b,c,d);Ad(a.na,b.width,b.height);pd(a.na,b.left,b.top);var e=a.g.tf;e&&(e=new zb(360*ft(a).top*Dr(a.a,e)/100,640*ft(a).right*Cr(a.a,e)/100,360*ft(a).bottom*Dr(a.a,e)/100,640*ft(a).left*Cr(a.a,e)/100),a.Sc&&(e.right+=1.5*c.height/100),a.na.style.padding=e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px");"label"==a.a.style&&a.b&&(a.b.style.padding=a.na.style.padding);if(a.Sc){e=4.2*c.height/100;e=new B(e,e);Ad(a.Sc, +e);if("highlight"==a.a.type||"label"==a.a.style)var g=1.5*c.height/100,e=new A(b.width-e.width-g,b.height-e.height-g);else e=new A(b.width-e.width-3*c.height/100,(b.height-e.height)/2);pd(a.Sc,e)}if(a.dc){Ad(a.dc,new B(18,18));var e=a.dc,g=Cd(a.dc),h=9<=c.left+c.width-(b.left+b.width),k=9<=b.top-c.top;pd(e,h&&k?new A(b.width-9,-9):h?new A(b.width-9,b.height>27+g.height?9:b.height-9):k?new A(b.width>27+g.width?b.width-9-g.width:-9,-9):b.width/c.width>b.height/c.height?new A(b.width>27+g.width?b.width- +9-g.width:-9,b.height-9):new A(-9,b.height>27+g.height?9:b.height-9))}}a.Fa&&c&&a.Fa.Yd(a.a,c,d);if(a.na){c=a.na;d=a.a.b;c.style.color="highlightText"==a.a.style?d.B:d.k;c.style.fontSize=360*d.G*Dr(a.a,a.g.tf)/100+"px";c.style.textAlign=d.textAlign?d.textAlign:"title"==a.a.style||"highlightText"==a.a.style?"center":"left";d.A&&(c.style.fontWeight=d.A);a=a.na;c=a.style.overflow;(d=E("annotation-link-icon",a))&&In(d);a.style.overflow="scroll";for(b=100;0e)break;e--;a.style.fontSize=e+"px"}a.style.overflow=c;d&&Hn(d)}}}}function ft(a){var b=a.a.b;return b.padding?b.padding:new zb("speech"==a.a.style?1.6:0.8,"speech"==a.a.style?1.6:0.8,"speech"==a.a.style?1.6:0.8,"speech"==a.a.style?1.6:0.8)} +f.show=function(){var a=this.a.b,a=(a&&0==a.a||"title"==this.a.style||"highlightText"==this.a.style||"pause"==this.a.type?!1:!0)&&!this.Fa,b=!this.na,c="widget"==this.a.type;if(a){var d=ct(this);if(d){var e=null;"highlight"==this.a.type||"label"==this.a.style?e=new Ss:"popup"==this.a.style?e=new Vs:"anchored"==this.a.style?e=new Qs:"speech"==this.a.style?e=new Ws:"image"==this.a.type&&("video"==this.a.style?e=new Ts(4/3,16/9,!0):"channel"==this.a.style&&(e=new Ts));e&&(e.Yd(this.a,d,et(this)),this.Fa= +e,d=e.N())&&(In(d),V(d,"annotation-type-"+this.a.type.toLowerCase()),this.j(d))}}if(b){d=["annotation","hid"];"highlightText"!=this.a.style||d.push("annotation-no-mouse");d.push("annotation-type-"+this.a.type.toLowerCase());this.na=Uc("div",d);this.a.o&&("label"==this.a.style?(this.b=Uc("div",["label-text"]),this.b.style.backgroundColor=this.a.b.j,dd(this.b,this.a.o),this.na.appendChild(this.b)):dd(this.na,this.a.o));Pe(this.na,"annotation_id",this.a.id);this.j(this.na);$s(this,this.na);if(xr(this.a)&& +"image"!=this.a.type&&wr(this.a)){if(d=Dq(this.a))this.na.title=tq(d);this.Sc=Uc("span","annotation-link-icon");this.na.appendChild(this.Sc)}bt(this);xr(this.a)||(this.na.style.cursor="default")}c&&("subscribe"==this.a.style?E("yt-uix-subscription-button",this.na)||(this.na.innerHTML=this.a.k):this.a.k&&(this.na.innerHTML=this.a.k));if(a||b){t:{a=this.a.a.a;if(a.length&&(a=ir(a[0]))){a=a.o;break t}a=0}this.na&&(this.na.style.zIndex=a);this.Fa&&this.Fa.N()&&(this.Fa.N().style.zIndex=a)}Hn(this.na); +Fd(this.na,dt(this)?1:0);Jr(this);this.Fa&&Hn(this.Fa.N())};f.hide=function(){In(this.na);this.Fa&&In(this.Fa.N())};function dt(a){return"label"!=a.a.style||a.Fa.Qc}function ct(a){var b=a.g.tf;return b?"player_relative"==a.a.G?(a=a.g.Oc)?new Db(-b.left,-b.top,a.width,a.height):null:new Db(0,0,b.width,b.height):null};function gt(a){Im.call(this,a);this.b={};this.i={};this.j=new qs(this.F,this.a.K());var b=Q(a),c=E("html5-annotations-button",b);this.g=null;a.K().Ma?(F(c),this.g=new ws(this.a.app.R.B),this.g.listen("change",this.uq,this)):J(c,"click",v(this.Aq,this));this.D("onHideControls",this.zq,this);this.D("onShowControls",this.Cq,this);this.D("onStateChange",this.Bq,this);this.D("e",this.Eq,this);this.D("d",this.Dq,this);this.D("a",this.xq,this);this.D("b",this.wq,this);this.D("c",this.yq,this);a=E("video-annotations", +b);a=E("countdowntimer",a);this.k=Uc("DIV",["video-annotations","html5-stop-propagation"]);Lm(this,this.k);Lm(this,a);this.A=new ps(a,v(this.nj,this))}y(gt,Im);f=gt.prototype;f.qa="iv-module";f.tl=!1;f.ep=!0;f.ba=!1;f.yd=0;function ht(a){return E("video-annotations",Q(a))&&it(a)?new gt(a):null}function it(a){return"leanback"==a.K().Z?!1:qm(a.getVideoData(),"iv3_module")}f.$a=function(){return it(this.a)}; +f.create=function(){gt.C.create.call(this);this.g&&this.u("module_menu_item_add",this.g);1==(this.a.K().ga||this.a.getVideoData().da)?this.load():jt(this,"tooltip-default")};f.destroy=function(){this.unload();this.g&&this.u("module_menu_item_remove",this.g);gt.C.destroy.call(this)};f.Aq=function(){this.ba||this.yd?this.unload():this.load()};f.uq=function(){var a=this.ba||this.yd,b=0==this.g.getSelected();a&&!b?this.unload():!a&&b&&this.load()};f.Bq=function(a){this.ep=P(a.state,8);0>Ho(a,4)&&this.A.stop()}; +f.load=function(){gt.C.load.call(this);jt(this,"tooltip-alt");var a={format:"XML",method:"GET",pd:v(this.Jo,this,null)},b=this.a.getVideoData();b.Jk&&(this.yd++,Qj(b.Jk,a));b.Ik&&(this.yd++,Qj(b.Ik,a));b.Hk&&(this.a.K().lc||this.a.K().Lc)&&(a={format:"XML",method:"GET",pd:v(this.Jo,this,v(this.fv,this,b.Ca))},this.yd++,Qj(b.Hk,a));this.g&&this.g.Za(0)}; +f.unload=function(){this.g&&this.g.Za(1);this.j.log_({"iv-event":1});this.nj();Jm(this);Hb(this.b,function(a){a.destroy()});Hb(this.i,function(a){a.destroy()});this.yd=0;this.ba=!1;this.b={};this.i={};jt(this,"tooltip-default");gt.C.unload.call(this)};function jt(a,b){var c=E("html5-annotations-button",Q(a.a));if(c){var d=G(c,b)||"";Pe(c,"tooltip",d);c.setAttribute("aria-label",d)}} +function kt(a,b){for(var c={},d=0;de.length)e=null;else var g=e.length-1,e=0>=e[0].b&&0>=e[g].b?null:{start:e[0].b,end:e[g].b};else e=null;else e=null;if(g=e)e=1E3*g.start,g=1E3*g.end,0==e&&(e++,g++),e==g&&g++,g< +e||(e=new $h(e,g,{id:d}),c.push(e))}for(d in this.i)e=this.i[d].ib,e=new $h(e.data.start_ms,e.data.end_ms,{id:d}),c.push(e);this.uf.apply(this,c)}}};function mt(a,b){var c=nt(a,b);if(!c)return null;zr(b,function(a){a=v(this.ax,this,b.id,a);this.D("ivTrigger:"+b.id,a)},a);return new Gr(a.F,b,c)} +function ot(a,b){var c=Uc("div",["annotation","annotation-type-custom","hid"]);a.k.appendChild(c);var d=null,e=new No(new Ko(a),a.a.K(),a.a.getVideoData(),a.j,a.a);switch(b.style){case "video":d=new Fq(b,c,e)}d&&zq(d,a.F);return d} +function lt(a,b){for(var c=b.getElementsByTagName("annotation"),d=0;dx()-this.Vi)){var b=parseInt(G(a,"tooltip-hide-timer"),10);b&&(this.removeData(a,"tooltip-hide-timer"),I(b));var b=v(function(){Ft(this,a);this.removeData(a,"tooltip-show-timer")},this),c=parseInt(G(a,"tooltip-show-delay"),10)||0,b=H(b,c);Pe(a,"tooltip-show-timer",b.toString());a.title&&(zp(a,Gt(a)),a.title="")}}; +f.Hl=function(a){var b=parseInt(G(a,"tooltip-show-timer"),10);b&&(I(b),this.removeData(a,"tooltip-show-timer"));b=v(function(){Ht(this,a);this.removeData(a,"tooltip-hide-timer")},this);b=H(b,50);Pe(a,"tooltip-hide-timer",b.toString());if(b=G(a,"tooltip-text"))a.title=b};f.Kx=function(a,b){this.Vi=0;var c=tp(b,Z(this),null[0].target);this.Lp(c)};f.Rp=function(a,b){this.Vi=x();var c=tp(b,Z(this),null[0].target);this.Hl(c)};function It(a,b){zp(a,b);var c=G(a,"content-id");if(c=Mc(c))c.innerHTML=b} +function Gt(a){return G(a,"tooltip-text")||a.title} +function Ft(a,b){if(b){var c=Gt(b);if(c){var d=Mc(Jt(a,b));if(!d){d=document.createElement("div");d.id=Jt(a,b);d.className=Z(a,"tip");var e=document.createElement("div");e.className=Z(a,"tip-body");var g=document.createElement("div");g.className=Z(a,"tip-arrow");var h=document.createElement("div");h.className=Z(a,"tip-content");var k=Kt(a,b),m=Jt(a,b,"content");h.id=m;Pe(b,"content-id",m);e.appendChild(h);k&&d.appendChild(k);d.appendChild(e);d.appendChild(g);(Gf()||document.body).appendChild(d);It(b, +c);(c=parseInt(G(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",Dc(h,Z(a,"normal-wrap")));h=Gc(b,Z(a,"reverse"));Lt(a,b,d,e,k,h)||Lt(a,b,d,e,k,!h);var p=Z(a,"tip-visible");H(function(){Dc(d,p)},0)}}}} +function Lt(a,b,c,d,e,g){Hc(c,Z(a,"tip-reverse"),g);var h=0;g&&(h=1);a=Cd(b);g=new A((a.width-10)/2,g?a.height:0);var k=ud(b);qp(new A(k.x+g.x,k.y+g.y),c,h);h=Rc(window);k=xd(c);c=Cd(d);var m=Math.floor(c.width/2);e&&(e.style.left="3px",e.style.height=c.height+"px",e.style.width=c.width+"px");e=!!(h.heightb;b++){var c=2*Math.PI/8*(a+b),d=11*this.b*Math.cos(c),c=11*this.b*Math.sin(c),e=(b+1)/9;this.S.beginPath();this.S.arc(d,c,4*this.b,0,2*Math.PI,!1);this.S.fillStyle="rgba(189, 189, 189, "+e+")";this.S.fill()}};Tt.prototype.hide=function(){I(this.a);Tt.C.hide.call(this)};function Ut(){Y.call(this,["div","ytp-sentiment-display",["div","ytp-sentiment-bar",["div","ytp-sentiment-bar-likes"],["div","ytp-sentiment-bar-dislikes"]],["div","ytp-sentiment-text","{{sentiment}}"]]);this.b=this.template.a["ytp-sentiment-bar-likes"];this.a=this.template.a["ytp-sentiment-bar-dislikes"]}y(Ut,Y);Ut.prototype.H=function(){this.a=this.b=null;Ut.C.H.call(this)};function Vt(a){a=["button","ytp-button-share-more",["div","ytp-button-share-more-icon yt-uix-button-icon-new-window"],["span","ytp-button-share-more-content",a.getMsg("YTP_BUTTON_MORE_SHARE")]];Y.call(this,a)}y(Vt,Y);function Wt(a,b,c,d){un.call(this,a,"share-service-icon-"+d+"-sharebar",b,c);V(this.element,"share-service-icon-sharebar")}y(Wt,un);function Xt(){Y.call(this,["div","ytp-share-url-container",["input","ytp-share-url"]]);this.a=this.template.a["ytp-share-url"]}y(Xt,Y);Xt.prototype.H=function(){this.a=null;Xt.C.H.call(this)};function Yt(a,b,c){R.call(this);this.a=a;this.g=b;this.i=c;this.gb=new Ko(this);this.j=this.b=this.k=this.ia=null;this.A=this.o=!1}y(Yt,R);f=Yt.prototype;f.Nj=function(){var a=E("html5-title",this.a);this.k=E("html5-title-text",a);this.gb.listen(this.k,"click",this.qn);this.b=new Ct(this.i);this.b.W(a,1);this.gb.listen(this.b.g,"click",this.bk);this.g.hf&&this.b.g.hide();this.gb.listen(this.b.i,"click",this.Vh)};f.reset=function(){}; +f.update=function(a){this.ia=a;this.reset();dd(this.k,a.title||"");Hn(this.a)};f.qn=function(){this.Ci(this.ia.Lc||Zt(this.g,this.ia))};f.bk=function(){if(!this.o){this.o=!0;hn(this.ia?this.ia.M:void 0,!1,this.$s,ba,this,this.g.Ea,this.g.Ua);if(!this.j){var a=E("html5-info-panel-loading-icon",this.a);this.j=new Tt;V(this.j.element,"html5-info-panel-loader");this.j.W(a);L(this,this.j)}this.j.show()}Bt(this.b.i);W(this.a,"show-share");a=this.b.g;a.b?Bt(a):At(a);return Gm(this.a,"show-more-info")}; +f.Vh=function(a){Bt(this.b.g);W(this.a,"show-more-info");if("detailpage"!=this.g.Z){if(!this.A){this.A=!0;var b={action_get_share_info:1,feature:"player_embedded",video_id:this.ia?this.ia.M:void 0};this.g.Ea&&(b.authuser=this.g.Ea);this.g.Ua&&(b.pageid=this.g.Ua);Qj("/share_ajax",{S:this,method:"GET",onError:this.Bt,Pa:this.Ct,rf:b})}a&&a.stopPropagation();a=this.b.i;a.b?Bt(a):At(a);Gm(this.a,"show-share")}}; +f.$s=function(a,b){if(!this.ka()){var c=E("html5-info-panel",this.a),d=b.user_info;this.ia&&(this.ia.pa=d.external_id);var e=E("html5-author-img",c).getElementsByTagName("img")[0];e.src=d.image_url;this.gb.listen(e,"click",this.Nn);e=E("html5-author-name",c);dd(e,d.username);this.gb.listen(e,"click",this.Nn);e=b.video_info;e.subscription_ajax_token&&ef("subscription_ajax",e.subscription_ajax_token);var g=E("html5-subscribe-button-container",c);g.innerHTML=d.subscription_button_html?d.subscription_button_html: +"";d=Nt.getInstance();(d=E(Z(d),g))&&$t(this.i,d);E("html5-view-count",c).innerHTML=e.view_count_string;var h=parseInt(e.likes_count_unformatted,10),g=parseInt(e.dislikes_count_unformatted,10),d=new Ut,k=0,m=0;0xb(d,b)){a.stopPropagation();a.preventDefault();ou.splice(c,1);break}},!0))} +function ru(a){ou.push(a);window.setTimeout(function(){var b=ou.indexOf(a);-1!=b&&ou.splice(b,1)},2500)}f=mu.prototype;f.Wk=1E3; +f.Tv=function(a){if(!(1-p&&r<2*g+p?(a.g.style.left=r+"px",cn(a.g)):dn(a.g);m-=h;0<=m?(Bd(a.k,Math.min(m,2*g)),cn(a.k)):dn(a.k);k-=h;0<=k?(Bd(a.i,Math.min(k,2*g)),cn(a.i)):dn(a.i);if(b){g=(h-e.a)/2/60;e=(d-e.a)/2/60;h=0;for(d=Math.ceil(g);d<=e;d++)h=c.left&&tf(a)>=c.top&&sf(a)=this.ga.x-c&&sf(a)<=this.ga.x+c)return;this.A=!1;this.ga=this.P=b}else{Ru(this);return}}}else this.P=b;Su(this)}; +function Su(a){if(a.a&&a.a.a){var b=Ed(a.a.N());if(a.I&&a.A){var c=b.left,b=c+b.width;a.j=c>a.O.x?a.O.x-c:bthis.j)a=0.15*this.j-0.1,this.j-=a,0this.j&&(this.j=0);else return;var b=ud(this.g).x;this.P.x=wb(this.P.x+a,b,b+Pu(this).width);Su(this);a=Tu(this);Uu(this,a.td,this.ha);this.u("seekto",a.td*this.B,!1)}; +function Ru(a){a.za.removeAll();a.b&&a.b.hide();a.a&&a.a.a&&(a.a.disable(),Qu(a));a.Va=Lo(a.k,a.i,"over",a.bn)}f.vv=function(a){a.stopPropagation();a.preventDefault();this.b&&this.b.hide();this.a&&this.a.a&&Qu(this);Vu(this);this.Lh(a)};f.Zs=function(a){a.stopPropagation();a.preventDefault();this.A=!0;Vu(this);this.Lh(a)};function Vu(a){a.I=!0;a.u("beginseeking");Lo(a.Ca,document,"move",a.Lh);Lo(a.Ca,document,"up",a.Ow);a.A&&(a.Sa=hf(v(a.Nw,a),20))} +f.Ow=function(a){a.stopPropagation();this.I=!1;this.Ca.removeAll();jf(this.Sa);Ru(this);this.u("endseeking")};f.Lh=function(a){a.stopPropagation();a.preventDefault();this.jn(a);a=this.A?Tu(this):Pu(this);var b=a.td*this.B;Uu(this,a.td,this.ha);(bthis.aa)&&this.dl();this.u("seekto",b,!this.I)};function Tu(a){return a.a&&a.a.a?a.A?Iu(a.a,a.O.x-ud(a.g).x):Iu(a.a):Pu(a)}function Pu(a){return new Gu(a.P.x-ud(a.g).x,a.Q.clientWidth,a.pa.clientWidth/2,a.pa.clientWidth/2)} +function Wu(a,b,c){Uu(a,q(b)&&!a.I?b:a.xa,q(c)?c:a.ha)}function Uu(a,b,c){a.xa=b;var d=Math.round(1E3*b)/10,e;if(!a.Ma&&(e=a.Ka,a.Ma="transform",void 0===e.style.transform)){var g=(gc?"Webkit":fc?"Moz":C?"ms":ec?"O":null)+"Transform";void 0!==e.style[g]&&(a.Ma=g)}e=a.Ma;a.Ka.style[e]="scalex("+b+")";a.pa.style.left=d+"%";a.ha=Math.max(a.xa,c);a.Ra.style[e]="scalex("+a.ha+")";a.a&&(a=a.a,a.B=b,a.F=c,Ku(a,!1))}f.Xa=function(a){this.B=a;Xu(this);this.a&&this.a.Xa(a)}; +function Xu(a){var b=0a.k&&(a.k=b,a.element.style.minWidth=a.k+"px")}function av(a){a.g?(a.a.show(),a.listen(window,"blur",a.o,a,"menu"),a.listen(document,"click",a.o,a,"menu")):(a.a.hide(),fn(a,"menu"));var b=Cd(a.b.N());a.a.N().style.bottom=b.height-1+"px";bv(a,b.width)}$u.prototype.H=function(){this.F=null;$u.C.H.call(this)};function cv(a){un.call(this,a,"ytp-drop-down-menu-button");this.i=new Y(["div","ytp-drop-down-menu-button-check"]);L(this,this.i)}y(cv,un);cv.prototype.Aa=function(a){cv.C.Aa.call(this,[this.i,a])};cv.prototype.Za=function(a){X(this.element,"ytp-drop-down-menu-button-selected",a)};function dv(a){Y.call(this,["span"]);this.element.innerHTML=a}y(dv,Y);function ev(a){ss.call(this);this.g=a;this.j={};this.a=[];this.k=new Y(["div","ytp-menu-drop-down-content"]);L(this,this.k);this.b="auto";this.i=!0;this.label=this.g.getMsg("YTP_QUALITY_TITLE");this.element=new $u(a,void 0,this.k);L(this,this.element);bv(this.element,100);fv(this,this.b,this.b);this.priority=-1}y(ev,ss);function gv(a,b){if(!jb(a.a,b)){for(var c=0;c=b;b++)W(a.oa,"anchor-point-"+b);V(a.oa,"anchor-point-"+a.ta.anchorPoint)}f.Lo=function(a){var b=[];z(a,function(a){a.Qi?b[b.length-1]+=a.ce:b.push(a.ce)});this.Te(b.join("\n"));this.Gc=a};f.Te=function(a){this.$g=a=Lv(a);this.ma.innerHTML=this.$g;this.Bl();this.Pf()}; +f.Bl=function(){this.oa.style.textAlign=this.ta.textAlign;this.ma.style.backgroundColor=this.ta.backgroundColor;this.ma.style.color=this.ta.ai;this.ma.style.opacity=this.ta.Al;this.ma.style.fontFamily=this.ta.fontFamily;this.ma.style.fontSize=this.ta.ix;1==this.ta.Ke?this.ma.setAttribute("dir","rtl"):this.ma.removeAttribute("dir")};f.toString=function(){var a="Caption window ("+this.id+"): "+this.$g,b;for(b in this.ta)a+=b+" "+this.ta[b]+" | ";return a}; +function Lv(a){a=a.split("\n");for(var b=0,c=a.length;b")}f.Ti=function(){this.Gc=[];this.Te("")};function Mv(a,b){Jv.call(this,a,b);this.ma.style.display="block";this.ma.style.padding="0";this.Qb=[];var c=this.ma;W(c,"captions-text");V(c,"caption-painton-text-rows")}y(Mv,Jv);f=Mv.prototype;f.type=0;f.Vn="";f.Zg=!1;f.yb=null;f.Qb=null;f.Mi=function(){return this.Qb[0]?this.Qb[0].offsetHeight:0};function Nv(a){return a.Qb.reduce(function(a,c){return Math.max(a,c.offsetWidth)},0)} +f.Pf=function(){0!=this.id&&(Bd(this.oa,"100%"),Bd(this.oa,this.Zg?Nv(this):this.yb.width));var a=Math.round(this.ta.zd*this.Mi());this.oa.style.maxHeight=a+"px";Kv(this);Fn(this.oa,this.ta.isVisible)}; +f.Te=function(a){this.Ti();a=Lv(a);this.Zg||(this.$g=a);a=a.split("
");for(var b=0,c=a.length;b=b)this.Ti();else{for(var c=0;c=a.Gc.length)Rv(a);else{var b=a.Ab.length-1;0>b&&(a.je.push(0),a.ke=0,a.Ab.push(""),b=0);for(var c=a.Gc.length,d=a.ke;da.ta.zd;){a.Ab.shift();var b=a.je.shift();0=g?h.Dc=g:h=null);switch(d.getAttribute("op")){case "kill":g= +null;break t;case "define":h=null}h?h.j=!0:h=Xv();var k={};w(k,h?h.params:Fv);d.getAttribute("id")&&(k.id=d.getAttribute("id"));d.getAttribute("op")&&(k.py=d.getAttribute("op"));d.getAttribute("rc")&&(k.zd=parseInt(d.getAttribute("rc"),10));d.getAttribute("cc")&&(k.mk=parseInt(d.getAttribute("cc"),10));d.getAttribute("ap")&&(h=parseInt(d.getAttribute("ap"),10),k.anchorPoint=0>h||8> ",a.a.b);return b.join("")}f.toString=function(){var a=[this.b,": ",this.gc," (",this.Lb,")"];this.a&&a.push(" >> ",this.a.a);return a.join("")};f.equals=function(a){if(!a)return!1;var b=this.a,c=a.a;if(b&&c){if(b.a!=c.a)return!1}else if(b||c)return!1;return this.b==a.b&&this.gc==a.gc&&this.Lb==a.Lb};function dw(){this.g=[];this.a=[]}dw.prototype.g=null;dw.prototype.a=null;dw.prototype.b=-1;function ew(a,b){return b?a.a.concat(a.g):a.a}function fw(a,b){switch(b.Lb){case "asr":return gw(b,a.g);default:if(b.hi||0>a.b)a.b=a.a.length;return gw(b,a.a)}}function gw(a,b){return Pa(b,v(a.equals,a))?!1:(b.push(a),!0)};function hw(a,b,c,d){this.Jd=a;c?this.Jd=Kj(this.Jd,{hl:c}):(a=Gj(this.Jd).hl||"",a=a.split("_").join("-"),this.Jd=Kj(this.Jd,{hl:a}));this.Di=b;this.Bp=!!d;this.Hd=new dw;this.qi=[];this.Cp={}}f=hw.prototype;f.Jd="";f.Di=null;f.Bp=!1;f.Hd=null;f.qi=null;f.Cp=null;function iw(a,b){return Pa(ew(a.Hd,!0),function(a){return a.toString()==b})}function jw(a,b){var c=a.Jd,d={v:a.Di,type:"track",lang:b.b,name:b.gc,kind:b.Lb,fmt:b.Ak};b.a&&(d.tlang=b.a.a);return c=Kj(c,d)} +function kw(a,b,c){var d=jw(a,b);a=v(function(a){a=new Zv(a.responseText);c(a,b)},a);Nj(d,a)}function lw(a){var b=a.Hd.b;a=ew(a.Hd,!0);return 0>b?null:a[b]} +function mw(a,b){var c=a.Jd,d={type:"list",tlangs:1,v:a.Di,fmts:Number(!0)};a.Bp&&(d.asrs=1);c=Kj(c,d);d=v(function(a){if((a=a.responseXML)&&a.firstChild){for(var c=this.Hd,d=a.getElementsByTagName("track"),k=d.length,m=0;m]*>?/g,""),b.Te(c));Lm(this,this.ji.oa);this.Xg.start();this.u("publish_external_event","captionschanged",bw(a))};f.yc=function(a){0==a.getId().indexOf("caption")&&(a=parseInt(a.getId().split("caption")[1],10),!isNaN(a)&&this.Me[a]&&(this.he.push(this.Me[a]),this.Lf.start()))}; +f.Vc=function(a){0==a.getId().indexOf("caption")&&(a=parseInt(a.getId().split("caption")[1],10),!isNaN(a)&&this.Me[a]&&(a=this.he.indexOf(this.Me[a]),0<=a&&this.he.splice(a,1),this.Lf.start()))}; +function ww(a,b){if(b instanceof Wv){var c=a.Ia[b.id];w(b.params,a.b);c&&c.getType()!=(b.params.ek?2:b.b?0:1)&&(F(c.oa),delete a.Ia[b.id]);if(!a.Ia[b.id]){var c=a.Ia,d=b.id,e;t:{e=b.id;var g=b.params;switch(b.params.ek?2:b.b?0:1){case 0:e=new Mv(e,g);break t;case 2:e=new Ov(e,g);break t;default:e=new Jv(e,g)}}c[d]=e;c=a.Ia[b.id].oa;X(c,"captions-asr","asr"==a.fc.Lb);null!=b.params.Ke&&(b.params.Ke=a.Hn?1:0);0==a.Ia[b.id].id?(V(c,a.qa),xw(a.a.app.R,c)):Lm(a,c)}w(a.Ia[b.id].ta,b.params);if(0==(b.params.ek? +2:b.b?0:1)){c=a.Ia[b.id];c.Vn=b.g;c.yb={};c.Zg=!0;c.Te(c.Vn);c.yb.zd=c.Qb.length;c.yb.width=c.oa.offsetWidth;c.yb.height=c.oa.offsetHeight;c.yb.Tn=[];c.yb.Un=[];for(d=0;d=c*d?b:new B(c,d))}this.xh=b;this.Ra=U(this.Ra,a.attrib);this.aa=U(this.aa,a.sk);this.protocol=this.Jj?"https":"http";this.qe="0"!=this.Ij; +this.dj=T(this.qe,a.store_user_volume);this.Md=T(this.Md,a.use_media_volume);(b=a.BASE_YT_URL)&&ok(b,kk)&&(this.lb=b);Lx(this,a);Mx(this,a);"detailpage"==this.Z&&delete this.b;this.Yi=Nx(this)+"s";this.zc=this.jf&&!this.Ub?!this.Vb:this.Vb||this.qe?!1:this.zc;b=this.Tb||"detailpage"==this.Z;c=!0;this.nc&&(c=!1);dj("nintendo wiiu")&&(c=!1);this.Hj&&(c=!0);this.Ul=b&&c;this.a=a}y(Ix,K);f=Ix.prototype;f.lm=!0;f.sh=!0;f.Ea="";f.yh="2";f.Tb=!1;f.Hj=!1;f.lb="/";f.gy=!0;f.color="red";f.Ij="1";f.Wf="web"; +f.ef="html5";f.Fh=!1;f.Eg=!0;f.Fg=!0;f.gg=!1;f.am=!1;f.Z="detailpage";f.Cm=!1;f.fk=!1;f.hf=!1;f.nc=!1;f.pb=!1;f.Nd=!1;f.ze=!0;f.Dm=!1;f.Uf=!0;f.qg=!1;f.loop=!1;f.jf=!1;f.oh=!1;f.Ch=null;f.ej="";f.Xf=!1;f.Ua="";f.La=null;f.th=!1;f.mg=!1;f.fm=!1;f.tg=!1;f.Ul=!1;f.Nc=!1;f.wj=!0;f.xj=!0;f.qe=!0;f.dj=!0;f.Md=!1;f.Vb=!0;f.xc=!0;f.kl=!1;f.oc=!1;f.zc=!1;f.hj=!1;f.Hh=!1;f.bm=!1;f.Ub=!1;f.tb=!0;f.Jj=!1;f.Db=!1;f.Oc=null;f.xh=null;f.Ko=null;f.tf=null;f.Ya=null;f.Bj=null;f.qc="yt";f.fj=!1; +function Lx(a,b){a.Nc=T(a.Nc,b.logwatch);a.la=void 0==b.user_age?a.la:Number(b.user_age);a.rp=U(a.rp,b.user_display_image);a.Dl=U(a.Dl,b.user_display_name);a.pa=U(a.pa,b.user_gender)} +function Mx(a,b){var c;t:{if(b&&((c=b.adformat)||(c=(c=b.attrib)&&c in Dx&&c in Ex?Ex[c]+"_"+Dx[c]:void 0),c)){var d=c.match(/^(\d*)_((\d*)_?(\d*))$/);if(d&&5==d.length&&(d=d[3],d=6==d||7==d||8==d||9==d||10==d||11==d,Kx(a)||d))break t}c=void 0}c&&(a.g=c,a.a.adformat=b.adformat);c=b.agcid;a.Va=c;a.a.agcid=c;c=b.feature;a.j=c;a.a.feature=c;if(c=b.referrer)a.referrer=c,a.a.referrer=c;"1"==b.enablecsi&&(a.fk=!1)} +function Ox(a){var b={};b.c=a.Wf;a.ef&&(b.cver=a.ef);a.O&&(b.cplatform=a.O);a.F&&(b.cbrand=a.F);a.G&&(b.cmodel=a.G);a.I&&(b.cnetwork=a.I);a.A&&(b.cbr=a.A);a.B&&(b.cbrver=a.B);a.J&&(b.cos=a.J);a.L&&(b.cosver=a.L);return b} +function Jx(a,b){if(b){a.o=b.split(",");var c={};z(a.o,function(a){c[a]=!0});a.Ic=!!c["918108"];a.ld=!!c["912711"];a.Yf=!!c["925900"];a.eg=!!c["913559"];a.cj=!c["904831"];a.Ka=!!c["913424"];a.xa=!!c["932206"];a.jd=!!c["932217"];a.Kc=!!c["932246"];a.Jc=!!c["932245"];a.gd=!!c["932240"];a.ag=!!c["932236"];a.kd=!!c["932237"];a.kb=!!c["932242"];a.mc=!!c["932243"];a.jb=!!c["932247"];a.bg=!!c["932248"];a.za=!!c["932239"];a.Ca=!!c["932250"];a.Zf=!!c["932252"];a.$f=!!c["932253"];a.lc=!!c["924604"];a.Lc=!!c["924610"]; +a.oe=!!c["918117"];a.Ma=!!c["907231"]&&"leanback"!=a.Z;a.ja=!!c["938600"];a.Hc=!!c["936903"];a.hd=!!c["927845"]}} +function Px(a,b){switch(b.md){case 38:var c=b.M.indexOf(":"),d=b.M.slice(0,c),c=b.M.slice(c+1);return S("//play.google.com/books/volumes/"+d+"/content/media",{aid:c,sig:b.ld});case 30:return d="//docs.google.com/",a.lb!=Ix.prototype.lb&&(d=a.lb),S(d+"get_video_info",{docid:b.M,authuser:b.Ea,authkey:b.An,eurl:a.b});case 33:return S("//google-liveplayer.appspot.com/get_video_info",{key:b.M});default:return d={html5:"1",video_id:b.M,cpn:b.Da,eurl:a.b,ps:a.La,el:a.Z,hl:a.i,list:b.Ta,agcid:a.Va,sts:15973}, +b.Q?d.vvt=b.Q:b.G&&(d.access_token=b.G),a.g&&(d.adformat=a.g),b.da&&(d.iv_load_policy=b.da),b.df&&(d.autoplay="1"),b.Ck&&(d.mdx="1"),b.Dk&&(d.utpsa="1"),b.Sa&&(d.is_fling="1"),c=Qx(a),c.width&&(d.width=c.width),c.height&&(d.height=c.height),b.ja&&(d.ypc_preview="1"),b.Ld&&(d.splay="1"),a.k&&(d.content_v=a.k),b.Bn&&(d.livemonitor=1),a.Ea&&(d.authuser=a.Ea),a.Ua&&(d.pageid=a.Ua),w(d,Ox(a)),S(a.lb+"get_video_info",d)}} +function Nx(a){return a.Fh?"//s.youtubeeducation.com/":a.Uf?"//s.youtube.com/":"//video.google.com/"}function Rx(a){return a.referrer?a.referrer.slice(0,128):""} +function Zt(a,b,c,d){b={v:b.M,list:b.Ta};a.Z&&(b.feature="player_"+a.Z);c&&w(b,c);a=S(a.protocol+"://"+("www.youtube-nocookie.com"==window.location.host||a.Fh?"www.youtube.com":window.location.host)+"/watch",b);if(d){c="";c="!"=="#".charAt(1)?"#".substr(0,2):"#";b="#";"#"==b.charAt(0)&&(b="!"==b.charAt(1)?b.substr(2):b.substr(1));b=Fj(b);for(var e in d)b[e]=d[e];d=c+Hj(b);a=a+d}return a} +function Sx(a){var b={contact_type:"playbackissue",html5:1,plid:a.fb,ei:a.k,v:a.M};a.a&&(b.fmt=a.a.Oa);return S("//www.google.com/support/youtube/bin/request.py",b)}function Qx(a){return(a=a.Bj)?new B(a.clientWidth,a.clientHeight):new B(Number.NaN,Number.NaN)}function yw(a){return a.Ya?new B(a.Ya.clientWidth,a.Ya.clientHeight):new B(Number.NaN,Number.NaN)} +function Tx(a){var b={};if(!a.Ya)return b;a.Ya.webkitDecodedFrameCount&&(b.hmewdfc=a.Ya.webkitDecodedFrameCount,b.hmewdrop=a.Ya.webkitDroppedFrameCount,b.hmewvdbc=a.Ya.webkitVideoDecodedByteCount,b.hmewadbc=a.Ya.webkitAudioDecodedByteCount);a.Ya.mozParsedFrames&&(b.hmempf=a.Ya.mozParsedFrames,b.hmemdf=a.Ya.mozDecodedFrames,b.hmempresented=a.Ya.mozPresentedFrames,b.hmempainted=a.Ya.mozPaintedFrames,b.hmempaintdelay=a.Ya.mozPaintDelay);return b} +function Ux(a){var b=n("yt.www.watch.activity.getTimeSinceActive",window);if("detailpage"==a.Z&&b)return b();var c;a.Sa&&(c=x()-a.Sa);return c}function eo(a){return"leanback"==a.Z||a.hf||!a.xc&&!a.kl?!1:!0}function Eh(a){return"detailpage"!=a.Z?!1:!0}function Kx(a){a=nk()&&(ok(a.Y,kk)||ok(a.Y,lk));var b=ok(document.location.toString(),kk)&&!nk();return a||b}f.H=function(){this.Bj=this.Ya=null;Ix.C.H.call(this)};function Vx(){this.b=0;this.a=this.j=this.g=this.i=NaN}function Wx(a,b){for(var c=0;c=b)return a.end(c)-b;return 0};function Xx(a){this.b=a;this.pendingRequests_=[];this.a=[];this.i=this.g=null;this.j=0}function Yx(a,b){a.pendingRequests_.push(b);a.g=b.g[b.g.length-1];a.j+=b.U.length}function Zx(a){for(;a.pendingRequests_.length&&5==a.pendingRequests_[0].state;){var b=a.pendingRequests_.shift();z(b.o,a.F,a)}} +Xx.prototype.F=function(a){if(4==a.info.type){for(var b=Pk(a.info.a,a.info),c=[],d=a.a,e=0;e=b)return null;var d;for(d=1;db||e)break}d--;var e=a.a[d].U.end,g=a.a[d].info.k-b;if(c&&1c-b.j)){if(32768g)b.o+=e;else{var h=b.g,e=Math.max(e,0.05);h.a.b(e,g/e)}}b.j=c;b.b=d}this.b.b>this.b.A&&4>this.state&&ly(this,4);4==a.target.readyState&&oy(this.b,a.timeStamp)}}; +f.mq=function(a){if(!this.ka()&&a==this.a){this.i&&(I(this.i),this.i=NaN);var b=null==a.response||400<=a.status;if(!b){a=a.response;var c;t:{if(2048>a.byteLength&&(c=String.fromCharCode.apply(String,new Uint8Array(a)),ok(c,kk)))break t;c=""}if(c)a=this.F,c=qe(c,"keepalive"),c=qe(c,"playerretry"),c=qe(c,"range"),c=qe(c,"shost"),a.a=c,ly(this,3);else if(a.byteLength!=this.U.length)b=!0;else{c=this.g;if(1==c.length&&!c[0].U){var d;d=c[0];var e=jk(0,a.byteLength);d=new qk(d.type,d.a,e,d.j,d.startTime, +d.duration,d.ob,e.length,d.b);c[0]=d}d=[];for(var e=0,g=!1,h=!1,k=0;ka.F.g&&1<=a.F.b)}function ly(a,b){a.state=b;3<=a.state&&a.B&&a.B(a)} +f.ym=function(){this.i=NaN;if(!this.ka()&&this.b){var a=!1;if(this.b.i){var b=this.b.F;my(this.b);this.b.F-b>=0.8*(this.k.a/1E3)?(this.A++,a=5<=this.A):this.A=0}else a=5a.a.g)return;b=a.a.g}b={cwndbw:(8*b/1024).toFixed(0)};Ak(a.i.b.j,b);Ak(a.b.b.j,b)}}function xy(a,b,c){c-=a.a.L;c-=c*b*Vh(a.j);c=Math.max(a.a.J,Math.min(a.a.P,c));a=Math.max(a.a.O,Math.ceil(a.a.J*b));return Math.min(a,Math.ceil(c*b))} +function yy(a,b){var c=Math.min(2.5,Uh(a.j));return Math.ceil(b*c+32768)}function zy(a){var b=Wh(a.j);a=Uh(a.j)+1048576*Vh(a.j);return b*Math.min(1,1048576/(b*a))} +function Ay(a,b){if(!b.g){if(!b.b.Yb())return;cy(b,a.k)}if(!(b.j>a.a.A)){var c=b.g;4==c.type&&c.a.Yb()&&(b.g=Ha(Pk(c.a,c)),c=b.g);if(!(c.b||!c.a.Aj(c)||c.a.info.i&&(4==c.type||a.b.g&&!a.b.g.b&&a.b.g.kd||2<=iy(b)+1)){var d=c.k-a.k,e=c.a.info.b,g=c.a.Yb()?xy(a,e,d):a.a.I,h=yy(a,c.a.info.b),k=!1,e=!1;if(c&&3==c.type&&b.b.Yb()&&c.a!=b.b){var d=xy(a,b.b.info.b,d+(c.startTime+c.duration-c.k)),m=yy(a,b.b.info.b), +e=c.a.info.b=m)k=!0,g=d,h=m}d=h;0e&&(b.a.pop(),b.a.length&&b.a[g-1].buffer==h.buffer||(b.j-=h.buffer.byteLength));ay(b)}b.g&& +!b.g.g&&(e=new jy(a.a,gy(b)),By(a,e,!0),Yx(b,e));b.g&&(c=b.g?b.g.startTime+b.g.duration+sy:0);d=new jy(a.a,b.b.Ej(c,d))}else d=new jy(a.a,c.qf(d));By(a,d,!1);Yx(b,d)}}}}function By(a,b,c){c=c?2:1;a.a.V&&(c=0);var d=Math.min(2.5,Uh(a.j)),e=Wh(a.j);b.b=new qy(a.j,c,b.U.length,0.95*b.U.length-d*e);a=v(a.Du,a);b.B=a;b.start()} +f.Du=function(a){if(!this.ka()){var b=6==a.state&&ky(a);3==a.state||b?(b&&this.u("softerror",209),a.start()):5==a.state?(!this.J&&a.g[0].a.info.a&&(this.J=a.I),Cy(this),z(a.o,function(a){rk(a.info)&&a.info.a.Co(a)}),Na(a.o,function(a){return xk(a)})&&!a.g[0].a.Do()?ty(this):Dy(this,126)):7==a.state||4==a.state?(7==a.state&&this.u("softerror",210),ty(this)):Dy(this,121)}}; +function Cy(a){if(!a.O&&a.J&&window.performance&&window.performance.getEntriesByName){var b=window.performance.getEntriesByName(a.J);b.length&&(b=b[0],uy("vrst",b.fetchStart),uy("vdns",b.domainLookupEnd),uy("vreq",b.requestStart),uy("fvb",b.responseStart),uy("vrc",b.responseEnd),a.O=!0)}}function ty(a){isNaN(a.I)&&(a.I=H(v(a.Of,a),0))}function Ey(a){isNaN(a.G)&&(a.G=H(v(function(){this.Of();this.G=NaN},a),1E3))} +f.Of=function(){this.I=NaN;if(!this.L&&this.g){var a=Math.floor(Math.max(by(this.i),by(this.b)));isNaN(a)||(this.g.Xa(a),this.L=!0)}if(!this.ka())if("prerender"==window.document.webkitVisibilityState)Ey(this);else{this.g&&this.g.Gb()&&vy(this);Zx(this.b);Zx(this.i);fy(this.b);fy(this.i);a=!1;if(this.g){var a=Fy(this,this.b,this.g.rd),b=Gy(this.g.rd,this.k);if(!isNaN(b)||this.b.i&&this.b.i.b)this.b.i&&this.b.i.b&&(b=NaN),a|=Fy(this,this.i,this.g.Zb,b);if(this.b.i&&this.b.i.b&&this.i.i&&this.i.i.b&& +!this.g.Zb.updating&&!this.g.rd.updating&&this.g.isOpen()){a=this.g;a.isOpen()&&a.g.endOfStream();return}}this.dm();Ay(this,this.b);Ay(this,this.i);a&&(this.g.Zb.appendBuffer||ty(this))}};f.dm=function(){if(!this.ka()&&!isNaN(this.a.F)){var a=zy(this);!isNaN(this.A)&&Math.abs(this.A-a)/a +d.end?(k=b.a[0],h=d.end-b.a[0].U.start+1,h=Math.min(h,k.info.Ha),g=new qk(k.info.type,k.info.a,k.info.U,k.info.j,k.info.startTime,k.info.duration,k.info.ob,h,!1),a=jk(k.U.start,h),g=new vk(g,k.buffer,a,k.a),h=new qk(k.info.type,k.info.a,k.info.U,k.info.j,k.info.startTime,k.info.duration,k.info.ob+h,k.info.Ha-h,k.info.b),a=new hk(a.end+1,k.U.end),a=[g,new vk(h,k.buffer,a,!1)],k=a[0],b.a[0]=a[1]):k=b.a.shift(),a=b,a.i=k.info,a.k&&a.i.g&&(a.k=!1),k.U.end!=d.end););b.a.length&&k.buffer==b.a[0].buffer|| +(b.j-=k.buffer.byteLength);e.a&&(c.g=e.info.a.b);return!c.appendBuffer||c.updating}function Hy(a,b,c){if(b.appendBuffer)try{b.appendBuffer(c)}catch(d){return!1}else b.append(c);return!a.g.Gb()}function Gy(a,b){for(var c=0;c=b)return a.buffered.end(c);return NaN}function Iy(a,b){if(!a.ka()){var c=Jy(a,a.b,b,a.g&&a.g.rd),d=Jy(a,a.i,c,a.g&&a.g.Zb);a.k=Math.max(b,c,d);a.B=!0;ty(a)}} +function Jy(a,b,c,d){if(b.b.Yb())if(d){if(a.o&&a.a.b)return dy(b),cy(b,c);var e=Gy(d,c),g=NaN,h=b.i;h&&(g=Gy(d,h.a.index.b[h.j]));if(e==g)return c;dy(b);b.b.info.a&&b.i&&!b.i.g&&!hy(b)&&(d=new jy(a.a,gy(b)),By(a,d,!0),Yx(b,d));if(isNaN(e))return cy(b,c);cy(b,e+sy)}else cy(b,c);else b.b.i?0!=c&&ey(b):Ky(a,b,!1);return c} +function Ky(a,b,c){var d=c?65536:0;c&&!isNaN(a.a.j)&&(d=Math.floor(Math.max(d,a.a.j*b.b.info.b)));d=b.b.mn(d);z(d,function(a){var c=new jy(this.a,a);By(this,c,!0);!rk(a.a[a.a.length-1])&&Yx(b,c)},a);b.b.i=!0;if(b.b.info.a&&c)for(c=0;cMath.round(e*g)&&(a=Math.round(e*g));a*=g;e=null;for(g=0;ga,k=!0;e.a&&c&&(k=e.b.info.b+e.g.info.bb.ya){var c=b.nf;a.P&&(a.Rh(a.va),a.va=null);a.P=new $h(1E3*c,2147483646);a.P.Eb.D("onEnter",a.lg,a);a.xk(a.P)}fz(a,"newdata")}function cz(a){jf(a.da);a.k&&(Tg(a.k),a.k=null)}f.getVideoData=function(){return this.a};f.K=function(){return this.o}; +function gz(a){return!(!a.a||!a.a.j.length)}function hz(a){if(a.a&&(a.a.M||a.a.gf))return!0;ex(a,2);return!1}function iz(a){if(!a.V){var b=new tj;jz(a,uj(b,b.b|8));a.k&&(b=a.k,b.A=x(),b=b.i,b.i.vps=["0.000:N"],b.G=x(),b.F=hf(v(b.ng,b),1E4),b.j.start());a.V=!0;!hz(a)||a.a&&a.a.Fe||(gz(a)||hm(a.a,a.o.mg),gz(a)?kz(a):a.a.Fe||(lz(a)?kz(a):(b=Px(a.o,a.a),pm(a.a,b))))}} +function mz(a){if(!a.Q.length){if(!a.A.ug){var b=a.A;b.g=Cj(b);b.ug=!0;b.Xb()}a.Q.length||0a.b.seekable.length?NaN:a.b.seekable.end(a.b.seekable.length-1);a.j&&!isNaN(Math.floor(Math.min(by(a.j.i),by(a.j.b))))&&(e=Math.floor(Math.min(by(a.j.i),by(a.j.b))));b>e&&(b=e,pz(a,!0));0>b&&(b=0)}else b=0;a.a.ya=b;a.G=b;c?a.Sh():(Az(a),d&&(a.J||(a.J=new Oo(a.Sh,d,a)),a.J.start()),Bz(a,!0));a.P&&b>a.a.nf&&(a.Rh(a.va),a.va=null);a.u("seekto",a,b)}else a.a.ya=b||0} +function Az(a){P(a.i,32)||(jz(a,uj(a.i,a.i.b|32)),P(a.i,8)&&qz(a),a.u("beginseeking",a))}f.Sh=function(){if(!isNaN(this.G)&&this.b){var a=this.od();!this.a.Cb&&this.G>=Math.floor(a)?(this.G=a,this.u("endseeking",this),qz(this),this.lg()):(this.j&&Iy(this.j,this.G),jj(this.b,this.G))}this.J&&(this.J.dispose(),this.J=null);P(this.i,32)&&(jz(this,uj(this.i,this.i.b&-33)),this.u("endseeking",this))}; +f.getCurrentTime=function(){if(!isNaN(this.G))return this.G;var a=0;this.b?a=this.b.getCurrentTime():this.a&&(a=this.a.pe);return a};f.od=function(){var a=0;this.b&&(a=this.b.Rd);0==a&&this.a&&(a=this.a.ra);return a};f.qq=function(){var a=new Vx;if(this.Y){var b=this.Y;a.g=b.g;a.j=b.i;a.a=Wh(b)}this.j?(b=this.j,b.g&&(a.b=Wx(b.g.rd.buffered,b.k),a.i=Wx(b.g.Zb.buffered,b.k)),a.a=zy(b),Wh(b.j),Uh(b.j),Vh(b.j)):this.b&&(a.b=Wx(this.b.buffered,this.getCurrentTime()));return a}; +function Cz(a,b){var c=isNaN(b)?a.getCurrentTime():b,d=a.od();return Infinity==d?1:d?c/d:0}f.sq=function(){var a;if(this.a){a=this.a;var b={};a.a&&(b.fmt=a.a.Oa,a.la&&(b.afmt=a.la.Oa));a.P&&(b.threed=a.Hc);b.plid=a.fb;b.ei=a.k;b.list=a.Ta;b.cpn=a.Da;a.M&&(b.v=a.M);a.Dj&&(b.infringe=1);a.Ld&&(b.splay=1);a.Cb&&(b.live=a.eb?"dvr":"live");a.df&&(b.autoplay=1);a.ga&&(b.sdetail=a.ga);a.md&&(b.partnerid=a.md);a=b}else a={};return a}; +function Dz(a,b){var c={};if(b){if(a.k){var d=Ez(a.k);d&&w(c,d.Mh())}a.b&&w(c,{vct:a.b.currentTime.toFixed(3),vd:a.b.duration.toFixed(3),vpl:qj(a.b.played),vbu:qj(a.b.buffered),vpa:a.b.paused,vsk:a.b.seeking,vpr:a.b.playbackRate,vrs:a.b.readyState,vns:a.b.networkState,vec:a.b.error?a.b.error.errorCode:null});if(a.j){var d=a.j,e={lct:d.k.toFixed(3),lsk:d.B,lmf:d.o,lbw:Wh(d.j).toFixed(3),lhd:Uh(d.j).toFixed(3),ltd:Vh(d.j).toFixed(3),laa:d.i.i?uk(d.i.i):"",lva:d.b.i?uk(d.b.i):"",lar:d.i.g?uk(d.i.g): +"",lvr:d.b.g?uk(d.b.g):""};d.g&&!d.g.Gb()&&(e.lab=qj(d.g.Zb.buffered),e.lvb=qj(d.g.rd.buffered));w(c,e)}P(a.i,384)&&(c.debug_error=a.i.a)}c.debug_videoId=a.a.M;return c}f.xk=function(a){this.A.cx(a)};f.Rh=function(a){this.A.fx(a)};f.Qt=function(a){this.u("commoninfoloaded",a);fz(this,"dataloaded");hm(this.a,this.o.mg);this.V&&kz(this)};f.Rt=function(){fz(this)};f.Pt=function(a){ex(this,parseInt(a.errorcode,10),unescape(a.reason),a.errordetail)}; +function fz(a,b){a.u("internalvideodatachange",b||"dataupdated",a,a.a)}function uz(a){z("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange error waiting abort".split(" "),function(a){this.L.listen(this.b,a,this.Lv)},a)} +f.Lv=function(a){var b=a.target;if(b==this.b&&b.currentSrc){switch(a.type){case "durationchange":this.a.eb||(b.Xa(b.duration||0),b=b.Rd,(!this.g||isFinite(b)&&0this.O&&(this.b.currentTime=this.O,this.O=NaN,this.pa=this.L.listen(this.b,"canplay",this.ft));case "suspend":Bz(this);this.u("onLoadProgress",this,this.b?ih(this.b):0);break;case "seeking":Fz(this);break;case "timeupdate":Fz(this),Bz(this),this.u("onVideoProgress",this,b.getCurrentTime())}this.u("videoelementevent",a);t:if(b=this.i,d=this.la,P(b,128))a=b;else{var c=b.b,e=b.a,g=a.target;switch(a.type){case "ended":if(0>= +g.networkState)break;c=wj();e=null;break;case "pause":P(b,32)||P(b,2)||(c=4,P(b,1)&&P(b,8)&&(c|=1),e=null);break;case "playing":c=8;e=null;break;case "abort":if(64==c)break;case "error":c|=256;a=g.error;d=107;if(a&&a.code)switch(a.code){case a.MEDIA_ERR_ABORTED:d=200;break;case a.MEDIA_ERR_NETWORK:d=201;break;case a.MEDIA_ERR_DECODE:d=202;break;case a.MEDIA_ERR_SRC_NOT_SUPPORTED:d=203}e={errorCode:d};Ta(sj,e.errorCode)&&(c|=128);break;case "canplay":c&=-2;break;case "progress":P(b,8)&&(g=a.target.getCurrentTime(), +d&&Zy(d,g,a.timeStamp)&&(c|=1));break;case "seeked":c&=-18;break;case "seeking":c|=16;g.inUnbufferedArea()&&(c|=1);c&=-3;break;case "waiting":P(b,2)||(c|=1);break;case "timeupdate":P(b,16)||(c&=-2);c&=-65;break;default:a=b;break t}a=uj(b,c,e)}jz(this,a)}}; +f.cn=function(){if(this.b&&0a.od()&&(d=a.od(),0==d&&(d=c),oz(a,1.2*d));var d=Cz(a),e=0;a.b.buffered&&0a.b.seekable.length?NaN:a.b.seekable.end(a.b.seekable.length-1))/a.od()):e=a.b?ih(a.b):0);5g&&(a.a.Ae+=h-g);a.a.ra&&a.a.J&&a.a.Ae>=a.a.J&&(g=a.k,g.g&&g.a.J&&(h=Ez(g,"delayplay"),h.$i=!0,h.A=g.j(),h.send()),a.a.J=NaN)}if(a.a.Zl&&(g=a.a.Yj,h=a.a.pe,1==g&&0Ho(c,8)&&pz(a,!1);0a.width||a.height=a}gB.prototype.rb=!0;function jB(a,b,c){this.a=a;this.k=b;this.g=c;this.j=this.b=-1;this.g&&0=a)){var b=this.a.a.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Hb(this.k.i,function(a){if(a.qd&&a.isVisible&&!(0>=mB(this,a))){var g;g=a.getId();g=this.k.j[g];if(mB(this,a)>b){var m=!nB(this,a);m!=g.Pc&&(g.Pc=m,c.push(g));m||(g=mB(this,a)-b,g=c||0>=a.b)return!1;var d=x()/1E3,e=mB(a,b)-a.a.a.getCurrentTime();0d&&(d=e);sB(this,b);tB(this,b,d)}}else this.i[a.getId()]=a,tB(this,a,d);Km(this.a);c&&this.sg(a);a=this.i;var b=0,g;for(g in a)b++;b==this.b.length&&this.k.i();rB(this)}; +function tB(a,b,c){var d=yA(b);if(!isNaN(d)){var e={};e.priority=-2!=b.start?2:3;e.id=String(b.getId());e.visible=b.isVisible;c=new $h(d,c,e);a.j[b.getId()]=c;a.a.uf(c)}}function sB(a,b){a.j[b.getId()]&&(a.a.lv(a.j[b.getId()]),delete a.j[b.getId()])}f.sg=function(a){a.$("adBreakComplete",this.fl,this);this.Cd&&a==this.Cd&&(this.Cd=null);sB(this,a);Xa(this.b,a);delete this.i[a.getId()];Tg(a)}; +f.Eu=function(a){if(a.qd){if(-1!=a.start&&a.hk){var b=this.a;uB(b);Um(b)}else AA(a)&&!a.hk?(b=this.a,uB(b),Um(b)):(uB(this.a),this.a.mb(!1));this.sg(a);a=this.k;a.g&&0a.start&&(2147483647==a.end||2147483646==a.end)&&(a=this.Td,(b=a.i[b])&&a.Cd==b&&!b.qd&&b.isVisible&&b.Ok&&b.a instanceof tA&&uA(b.a,google.ima.ViewMode.FULLSCREEN))}; +f.jq=function(){CA(this,"sdk");if(this.ki)return this.ki;var a;if(this.ea.P){a=new yx(this.app,2);var b=google.ima.AdDisplayContainer,c=nn(this.b),d=qn(this.b);a.j||(a.j=Ob(a.i),a.j.addEventListener=v(a.Xt,a),a.j.removeEventListener=v(a.Yt,a));a=new b(c,void 0,d,a.j)}else{a=this.b.X.K().tb?this.b.X.app.R.b:rn(this.b);if(!a)return a=Error("AdModule.getVideoElement returned an invalid element."),b=new io,b.a(a),b;a=new google.ima.AdDisplayContainer(nn(this.b),a,qn(this.b))}return this.ki=new google.ima.AdsLoader(a)}; +function CA(a,b){var c=b;"nl"==b&&(c=a.ue,c.j++,c=c.j.toString());a.j[c]=x();"bs"!=c&&"fb"!=c||Om(a,a.j,a.i)}function oB(a,b){a.u("command_update_cuerange_markers",b,a.a.a)}f.ie=function(a){this.u(a)};function EB(a){return FB(a||arguments.callee.caller,[])} +function FB(a,b){var c=[];if(Ta(b,a))c.push("[...circular reference...]");else if(a&&50>b.length){c.push(GB(a)+"(");for(var d=a.arguments,e=0;e'+h.fileName+"\nLine: "+h.lineNumber+"\n\nBrowser stack:\n"+ya(h.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+ya(EB(g)+"-> ")}catch(O){e="Exception trying to expose exception! You win, we lose. "+O}d.a=e}return d};f.info=function(){};var QB={},RB=null;function SB(){RB||(RB=new KB(""),QB[""]=RB)} +function TB(a){SB();var b;if(!(b=QB[a])){b=new KB(a);var c=a.lastIndexOf("."),d=a.substr(c+1);TB(a.substr(0,c)).getChildren()[d]=b;QB[a]=b}return b};function UB(){this.a=x()}var VB=new UB;UB.prototype.set=function(a){this.a=a};UB.prototype.reset=function(){this.set(x())};UB.prototype.get=function(){return this.a};function WB(a){this.g=a||"";this.i=VB}WB.prototype.b=!0;WB.prototype.a=!1;function XB(a){return 10>a?"0"+a:String(a)}function YB(a,b){var c=(a.i-b)/1E3,d=c.toFixed(3),e=0;if(1>c)e=2;else for(;100>c;)e++,c*=10;for(;0b)break t}else if(3>b||3==b&&!ec&&!sC(this.Qa))break t;this.Je||4!=b||7==c||(8==c||0>=d?this.b.Bc(3):this.b.Bc(2));tC(this);var e=rC(this.Qa);this.vg=e;var g=sC(this.Qa);g||this.a.debug("No response text for uri "+this.Kb+" status "+e);this.Cc=200==e;this.a.info("XMLHTTP RESP ("+this.g+") [ attempt "+this.i+"]: "+this.vf+"\n"+this.Kb+"\n"+b+" "+e);this.Cc?(4==b&&uC(this),this.F?(vC(this, +b,g),ec&&this.Cc&&3==b&&(this.o.listen(this.k,"tick",this.dt),this.k.start())):(wC(this.a,this.g,g,null),xC(this,g)),this.Cc&&!this.Je&&(4==b?this.b.Uh(this):(this.Cc=!1,pC(this)))):(this.Ie=400==e&&0b.length)return lC;var e=b.substr(d,c);a.Og=d+c;return e} +function BC(a,b){a.xg=x();pC(a);var c=b?window.location.hostname:"";a.Kb=a.Wd.clone();Fe(a.Kb,"DOMAIN",c);Fe(a.Kb,"t",a.i);try{a.Ec=new ActiveXObject("htmlfile")}catch(d){uC(a);a.Ie=7;yC();zC(a);return}var e="";b&&(e+='