(function(){var g,aa=aa||{},m=this;function n(a){a=a.split(".");for(var b=m,c;c=a.shift();)if(null!=b[c])b=b[c];else return null;return b}function ba(){}function ca(a){a.getInstance=function(){return a.Yc?a.Yc:a.Yc=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 r(a){return"array"==da(a)}function ea(a){var b=da(a);return"array"==b||"object"==b&&"number"==typeof a.length}function s(a){return"string"==typeof a}function fa(a){return"number"==typeof a}function ga(a){return"function"==da(a)}function ha(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ia(a){return a[ja]||(a[ja]=++ka)}
var ja="closure_uid_"+(1E9*Math.random()>>>0),ka=0;function la(a,b,c){return a.call.apply(a.bind,arguments)}function ma(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}
function t(a,b,c){t=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?la:ma;return t.apply(null,arguments)}function na(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}}var u=Date.now||function(){return+new Date};
function v(a,b){var c=a.split("."),d=m;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b}function x(a,b){function c(){}c.prototype=b.prototype;a.D=b.prototype;a.prototype=new c}Function.prototype.bind=Function.prototype.bind||function(a,b){if(1<arguments.length){var c=Array.prototype.slice.call(arguments,1);c.unshift(this,a);return t.apply(null,c)}return t(this,a)};function oa(a){return decodeURIComponent(a.replace(/\+/g," "))}function pa(a){if(!qa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ra,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(sa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(ta,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(ua,"&quot;"));return a}var ra=/&/g,sa=/</g,ta=/>/g,ua=/\"/g,qa=/[&<>\"]/;
function va(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("."),f=Math.max(d.length,e.length),h=0;0==c&&h<f;h++){var k=d[h]||"",l=e[h]||"",p=RegExp("(\\d*)(\\D*)","g"),I=RegExp("(\\d*)(\\D*)","g");do{var U=p.exec(k)||["","",""],w=I.exec(l)||["","",""];if(0==U[0].length&&0==w[0].length)break;c=((0==U[1].length?0:parseInt(U[1],10))<(0==w[1].length?0:parseInt(w[1],10))?-1:(0==U[1].length?0:parseInt(U[1],10))>(0==w[1].length?
0:parseInt(w[1],10))?1:0)||((0==U[2].length)<(0==w[2].length)?-1:(0==U[2].length)>(0==w[2].length)?1:0)||(U[2]<w[2]?-1:U[2]>w[2]?1:0)}while(0==c)}return c}function wa(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c),b%=4294967296;return b}function xa(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}
function ya(a){var b=s(void 0)?"undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"):"\\s";return a.replace(RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};var y=Array.prototype,za=y.indexOf?function(a,b,c){return y.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(s(a))return s(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},z=y.forEach?function(a,b,c){y.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=s(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Aa=y.filter?function(a,b,c){return y.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h=s(a)?
a.split(""):a,k=0;k<d;k++)if(k in h){var l=h[k];b.call(c,l,k,a)&&(e[f++]=l)}return e},A=y.map?function(a,b,c){return y.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=s(a)?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));return e},Ba=y.some?function(a,b,c){return y.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=s(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1},Ca=y.every?function(a,b,c){return y.every.call(a,b,c)}:function(a,b,c){for(var d=
a.length,e=s(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;return!0};function Da(a,b){var c=Ea(a,b,void 0);return 0>c?null:s(a)?a.charAt(c):a[c]}function Ea(a,b,c){for(var d=a.length,e=s(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1}function B(a,b){return 0<=za(a,b)}function Fa(){var a=Ga;if(!r(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function Ha(a,b){B(a,b)||a.push(b)}
function Ia(a,b){var c=za(a,b),d;(d=0<=c)&&y.splice.call(a,c,1);return d}function Ja(a,b){var c=Ea(a,b,void 0);0<=c&&y.splice.call(a,c,1)}function Ka(a){return y.concat.apply(y,arguments)}function La(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}
function Ma(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(r(d)||(e=ea(d))&&Object.prototype.hasOwnProperty.call(d,"callee"))a.push.apply(a,d);else if(e)for(var f=a.length,h=d.length,k=0;k<h;k++)a[f+k]=d[k];else a.push(d)}}function Na(a,b,c,d){return y.splice.apply(a,Oa(arguments,1))}function Oa(a,b,c){return 2>=arguments.length?y.slice.call(a,b):y.slice.call(a,b,c)}
function Pa(a,b,c){if(!ea(a)||!ea(b)||a.length!=b.length)return!1;var d=a.length;c=c||Qa;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0}function Ra(a,b){return a>b?1:a<b?-1:0}function Qa(a,b){return a===b};var Sa;function Ta(a){a=a.className;return s(a)&&a.match(/\S+/g)||[]}function Ua(a,b){for(var c=Ta(a),d=Oa(arguments,1),e=c,f=0;f<d.length;f++)B(e,d[f])||e.push(d[f]);c=c.join(" ");a.className=c}function Va(a,b){var c=Ta(a),d=Oa(arguments,1),c=Wa(c,d).join(" ");a.className=c}function Wa(a,b){return Aa(a,function(a){return!B(b,a)})}function Xa(a,b,c){c?Ua(a,b):Va(a,b)};function C(a,b){this.x=q(a)?a:0;this.y=q(b)?b:0}C.prototype.q=function(){return new C(this.x,this.y)};C.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};C.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};C.prototype.scale=function(a,b){var c=fa(b)?b:a;this.x*=a;this.y*=c;return this};function Ya(a,b){this.width=a;this.height=b}Ya.prototype.q=function(){return new Ya(this.width,this.height)};Ya.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};Ya.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};Ya.prototype.scale=function(a,b){var c=fa(b)?b:a;this.width*=a;this.height*=c;return this};function Za(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function $a(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function ab(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function bb(a){var b=cb,c;for(c in b)if(a.call(void 0,b[c],c,b))return c}function db(a){for(var b in a)return!1;return!0}function eb(a){var b={},c;for(c in a)b[c]=a[c];return b}var fb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function gb(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<fb.length;f++)c=fb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var hb,ib,jb,kb,lb,mb;function nb(){return m.navigator?m.navigator.userAgent:null}function ob(){return m.navigator}kb=jb=ib=hb=!1;var pb;if(pb=nb()){var qb=ob();hb=0==pb.lastIndexOf("Opera",0);ib=!hb&&(-1!=pb.indexOf("MSIE")||-1!=pb.indexOf("Trident"));jb=!hb&&-1!=pb.indexOf("WebKit");kb=!hb&&!jb&&!ib&&"Gecko"==qb.product}var rb=hb,D=ib,E=kb,F=jb,sb=ob(),tb=sb&&sb.platform||"";lb=-1!=tb.indexOf("Mac");mb=-1!=tb.indexOf("Win");var ub=!!ob()&&-1!=(ob().appVersion||"").indexOf("X11");
function vb(){var a=m.document;return a?a.documentMode:void 0}var wb;t:{var xb="",yb;if(rb&&m.opera)var zb=m.opera.version,xb="function"==typeof zb?zb():zb;else if(E?yb=/rv\:([^\);]+)(\)|;)/:D?yb=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:F&&(yb=/WebKit\/(\S+)/),yb)var Ab=yb.exec(nb()),xb=Ab?Ab[1]:"";if(D){var Bb=vb();if(Bb>parseFloat(xb)){wb=String(Bb);break t}}wb=xb}var Cb=wb,Db={};function G(a){return Db[a]||(Db[a]=0<=va(Cb,a))}function Eb(a){return D&&Fb>=a}
var Gb=m.document,Fb=Gb&&D?vb()||("CSS1Compat"==Gb.compatMode?parseInt(Cb,10):5):void 0;var Hb=!E&&!D||D&&Eb(9)||E&&G("1.9.1");D&&G("9");function Ib(a){return a?new Jb(Kb(a)):Sa||(Sa=new Jb)}function Lb(a){return H(a)}function H(a){var b=document;return s(a)?b.getElementById(a):a}function Mb(a){var b=document;return b.querySelectorAll&&b.querySelector?b.querySelectorAll("."+a):b.getElementsByClassName?b.getElementsByClassName(a):Nb(a)}
function Nb(a){var b,c,d,e;b=document;if(b.querySelectorAll&&b.querySelector&&a)return b.querySelectorAll(""+(a?"."+a:""));if(a&&b.getElementsByClassName){var f=b.getElementsByClassName(a);return f}f=b.getElementsByTagName("*");if(a){e={};for(c=d=0;b=f[c];c++){var h=b.className;"function"==typeof h.split&&B(h.split(/\s+/),a)&&(e[d++]=b)}e.length=d;return e}return f}function Ob(a){return"CSS1Compat"==a.compatMode}function Pb(a){for(var b;b=a.firstChild;)a.removeChild(b)}
function Qb(a){if(!a)return null;if(a.firstChild)return a.firstChild;for(;a&&!a.nextSibling;)a=a.parentNode;return a?a.nextSibling:null}function Rb(a){if(!a)return null;if(!a.previousSibling)return a.parentNode;for(a=a.previousSibling;a&&a.lastChild;)a=a.lastChild;return a}function Kb(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Sb(a){var b=Tb.qe;return b?Ub(a,function(a){return!b||B(Ta(a),b)},!0):null}
function Ub(a,b,c,d){c||(a=a.parentNode);c=null==d;for(var e=0;a&&(c||e<=d);){if(b(a))return a;a=a.parentNode;e++}return null}function Jb(a){this.b=a||m.document||document}Jb.prototype.createElement=function(a){return this.b.createElement(a)};function Vb(a){var b=a.b;a=!F&&Ob(b)?b.documentElement:b.body;b=b.parentWindow||b.defaultView;return D&&G("10")&&b.pageYOffset!=a.scrollTop?new C(a.scrollLeft,a.scrollTop):new C(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}
Jb.prototype.appendChild=function(a,b){a.appendChild(b)};Jb.prototype.getChildren=function(a){return Hb&&void 0!=a.children?a.children:Aa(a.childNodes,function(a){return 1==a.nodeType})};Jb.prototype.contains=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};function Wb(a,b,c){a.dataset?a.dataset[Xb(b)]=c:a.setAttribute("data-"+b,c)}function J(a,b){return a.dataset?a.dataset[Xb(b)]:a.getAttribute("data-"+b)}function Yb(a,b){a.dataset?delete a.dataset[Xb(b)]:a.removeAttribute("data-"+b)}var Zb={};function Xb(a){return Zb[a]||(Zb[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};var $b=n("yt.dom.getNextId_");if(!$b){$b=function(){return++ac};v("yt.dom.getNextId_",$b);var ac=0}function bc(a,b){if(a in b)return b[a];var c=a.charAt(0).toUpperCase()+a.substr(1);if("moz"+c in b)return b["moz"+c];if("ms"+c in b)return b["ms"+c];if("o"+c in b)return b["o"+c];if("webkit"+c in b)return b["webkit"+c]}function cc(){var a=document,b;Ba(["fullscreenElement","fullScreenElement"],function(c){b=bc(c,a);return!!b});return b};var dc=window.yt&&window.yt.config_||{};v("yt.config_",dc);var ec=window.yt&&window.yt.tokens_||{};v("yt.tokens_",ec);var fc=window.yt&&window.yt.msgs_||{};v("yt.msgs_",fc);var gc=window.yt&&window.yt.timeouts_||[];v("yt.timeouts_",gc);var hc=window.yt&&window.yt.intervals_||[];v("yt.intervals_",hc);function ic(a){jc(dc,arguments)}function K(a){return a in dc?dc[a]:void 0}function kc(a){jc(ec,arguments)}function lc(){return"subscription_ajax"in ec?ec.subscription_ajax:void 0}
function L(a,b){ga(a)&&(a=mc(a));var c=window.setTimeout(a,b);gc.push(c);return c}function nc(a){ga(a)&&(a=mc(a));a=window.setInterval(a,1E4);hc.push(a)}function oc(a){window.clearTimeout(a)}function mc(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw pc(b),b;}}:a}function pc(a){if(window&&window.yterr){var b=n("yt.www.errors.log");b?b(a):(b=K("ERRORS")||[],b.push(a),ic("ERRORS",b))}}
function qc(a,b,c){var d=b||{};if(a=a in fc?fc[a]:c)for(var e in d)a=a.replace(RegExp("\\$"+e,"gi"),function(){return d[e]});return a}function jc(a,b){if(1<b.length){var c=b[0];a[c]=b[1]}else{var d=b[0];for(c in d)a[c]=d[c]}}var rc="Microsoft Internet Explorer"==navigator.appName;function sc(a){if(a=a||window.event){for(var b in a)b in tc||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;this.Lb=a;(b=a.target||a.srcElement)&&3==b.nodeType&&(b=b.parentNode);this.target=b;if(b=a.relatedTarget)try{b=b.nodeName&&b}catch(c){b=null}else"mouseover"==this.type?b=a.fromElement:"mouseout"==this.type&&(b=a.toElement);this.relatedTarget=b;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;if(document.body&&document.documentElement){b=
document.body.scrollLeft+document.documentElement.scrollLeft;var d=document.body.scrollTop+document.documentElement.scrollTop;this.pageX=void 0!=a.pageX?a.pageX:a.clientX+b;this.pageY=void 0!=a.pageY?a.pageY:a.clientY+d}this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;"MozMousePixelScroll"==this.type?(this.wheelDeltaX=a.axis==a.HORIZONTAL_AXIS?a.detail:0,this.wheelDeltaY=a.axis==
a.HORIZONTAL_AXIS?0:a.detail):window.opera?(this.wheelDeltaX=0,this.wheelDeltaY=a.detail):0==a.wheelDelta%120?"WebkitTransform"in document.documentElement.style?window.chrome&&0==navigator.platform.indexOf("Mac")?(this.wheelDeltaX=a.wheelDeltaX/-30,this.wheelDeltaY=a.wheelDeltaY/-30):(this.wheelDeltaX=a.wheelDeltaX/-1.2,this.wheelDeltaY=a.wheelDeltaY/-1.2):(this.wheelDeltaX=0,this.wheelDeltaY=a.wheelDelta/-1.6):(this.wheelDeltaX=a.wheelDeltaX/-3,this.wheelDeltaY=a.wheelDeltaY/-3)}}g=sc.prototype;
g.Lb=null;g.type="";g.target=null;g.relatedTarget=null;g.currentTarget=null;g.data=null;g.source=null;g.keyCode=0;g.charCode=0;g.altKey=!1;g.ctrlKey=!1;g.shiftKey=!1;g.clientX=0;g.clientY=0;g.pageX=0;g.pageY=0;g.wheelDeltaX=0;g.wheelDeltaY=0;g.rotation=0;g.scale=1;g.preventDefault=function(){this.Lb.returnValue=!1;this.Lb.preventDefault&&this.Lb.preventDefault()};var tc={stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1};var cb=n("yt.events.listeners_")||{};v("yt.events.listeners_",cb);var uc=n("yt.events.counter_")||{count:0};v("yt.events.counter_",uc);function vc(a,b,c,d){return bb(function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})}
function M(a,b,c,d){if(a&&(a.addEventListener||a.attachEvent)){d=!!d;var e=vc(a,b,c,d);if(!e){var e=++uc.count+"",f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document),h;h=f?function(d){d=new sc(d);if(!Ub(d.relatedTarget,function(b){return b==a},!0))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new sc(b);b.currentTarget=a;return c.call(a,b)};h=mc(h);cb[e]=[a,b,c,h,d];a.addEventListener?"mouseenter"==b&&f?a.addEventListener("mouseover",h,d):"mouseleave"==
b&&f?a.addEventListener("mouseout",h,d):"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style?a.addEventListener("MozMousePixelScroll",h,d):a.addEventListener(b,h,d):a.attachEvent("on"+b,h)}}}function wc(a){a&&("string"==typeof a&&(a=[a]),z(a,function(a){if(a in cb){var c=cb[a],d=c[0],e=c[1],f=c[3],c=c[4];d.removeEventListener?d.removeEventListener(e,f,c):d.detachEvent("on"+e,f);delete cb[a]}}))};function xc(){}xc.prototype.p=!1;xc.prototype.dispose=function(){this.p||(this.p=!0,this.u())};function yc(a,b){a.va||(a.va=[]);a.va.push(t(b,void 0))}xc.prototype.u=function(){if(this.va)for(;this.va.length;)this.va.shift()()};function zc(a){a&&"function"==typeof a.dispose&&a.dispose()};function N(){this.b=[];this.Y={}}x(N,xc);g=N.prototype;g.Ac=1;g.Cb=0;g.F=function(a,b,c){var d=this.Y[a];d||(d=this.Y[a]=[]);var e=this.Ac;this.b[e]=a;this.b[e+1]=b;this.b[e+2]=c;this.Ac=e+3;d.push(e);return e};g.ka=function(a,b,c){if(a=this.Y[a]){var d=this.b;if(a=Da(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.la(a)}return!1};
g.la=function(a){if(0!=this.Cb)return this.g||(this.g=[]),this.g.push(a),!1;var b=this.b[a];if(b){var c=this.Y[b];c&&Ia(c,a);delete this.b[a];delete this.b[a+1];delete this.b[a+2]}return!!b};g.t=function(a,b){var c=this.Y[a];if(c){this.Cb++;for(var d=Oa(arguments,1),e=0,f=c.length;e<f;e++){var h=c[e];this.b[h+1].apply(this.b[h+2],d)}this.Cb--;if(this.g&&0==this.Cb)for(;c=this.g.pop();)this.la(c);return 0!=e}return!1};
g.clear=function(a){if(a){var b=this.Y[a];b&&(z(b,this.la,this),delete this.Y[a])}else this.b.length=0,this.Y={}};g.u=function(){N.D.u.call(this);delete this.b;delete this.Y;delete this.g};var Ac=n("yt.pubsub.instance_")||new N;N.prototype.subscribe=N.prototype.F;N.prototype.unsubscribeByKey=N.prototype.la;N.prototype.publish=N.prototype.t;N.prototype.clear=N.prototype.clear;v("yt.pubsub.instance_",Ac);function O(a,b,c){var d=Bc();return d?d.subscribe(a,function(){var a=arguments;try{L(function(){b.apply(c||m,a)},0)}catch(d){pc(d)}},c):0}function Cc(a){var b=Bc();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[parseInt(a,10)]),z(a,function(a){b.unsubscribeByKey(a)}))}
function P(a,b){var c=Bc();return c?c.publish.apply(c,arguments):!1}function Dc(a){var b=Bc();b&&b.clear(a)}function Bc(){return n("yt.pubsub.instance_")};function Ec(a,b,c,d,e){var f="";a&&(f+=a+":");b&&(f=f+"//"+b);c&&(f+=c);d&&(f+="?"+d);e&&(f+="#"+e);return f}var Fc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Gc(a){if(Hc){Hc=!1;var b=m.location;if(b){var c=b.href;if(c&&(c=Ic(c))&&c!=b.hostname)throw Hc=!0,Error();}}return a.match(Fc)}var Hc=F;function Ic(a){return(a=Gc(a)[3]||null)&&decodeURIComponent(a)}
function Jc(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")}function Kc(a,b,c){if(r(b))for(var d=0;d<b.length;d++)Kc(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))}function Lc(a,b,c){Math.max(b.length-(c||0),0);for(c=c||0;c<b.length;c+=2)Kc(b[c],b[c+1],a);return a}function Mc(a,b){for(var c in b)Kc(c,b[c],a);return a}
function Nc(a,b){return Jc(2==arguments.length?Lc([a],arguments[1],0):Lc([a],arguments,1))};function Oc(a,b){var c=Nc("/signin?context=popup","next",document.location.protocol+"//"+document.domain+"/post_login");b&&(c=Nc(c,"feature",b));if(c=window.open(c,"loginPopup","width=375,height=440,resizable=yes,scrollbars=yes",!0)){var d=O("LOGGED_IN",function(b){Cc(K("LOGGED_IN_PUBSUB_KEY"));a(b)});ic("LOGGED_IN_PUBSUB_KEY",d);c.moveTo((screen.width-375)/2,(screen.height-440)/2)}}v("yt.pubsub.publish",P);function Pc(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}g=Pc.prototype;g.q=function(){return new Pc(this.top,this.right,this.bottom,this.left)};g.contains=function(a){return this&&a?a instanceof Pc?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};
g.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};g.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};g.scale=function(a,b){var c=fa(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function Qc(a,b,c){var d;t:if(d=xa(c),void 0===a.style[d]&&(c=(F?"Webkit":E?"Moz":D?"ms":rb?"O":null)+ya(c),void 0!==a.style[c])){d=c;break t}d&&(a.style[d]=b)}function Rc(a,b){var c=Kb(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Sc(a,b){return Rc(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}
function Tc(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}D&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function Uc(a){if(D&&!Eb(8))return a.offsetParent;var b=Kb(a),c=Sc(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Sc(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null}
function Vc(a){var b,c=Kb(a),d=Sc(a,"position"),e=E&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new C(0,0),h;b=c?Kb(c):document;(h=!D)||(h=Eb(9))||(h=Ib(b),h=Ob(h.b));h=h?b.documentElement:b.body;if(a==h)return f;if(a.getBoundingClientRect)b=Tc(a),a=Vb(Ib(c)),f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(h),f.x=b.screenX-a.screenX,f.y=b.screenY-a.screenY;else{e=a;do{f.x+=
e.offsetLeft;f.y+=e.offsetTop;e!=a&&(f.x+=e.clientLeft||0,f.y+=e.clientTop||0);if(F&&"fixed"==Sc(e,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}e=e.offsetParent}while(e&&e!=a);if(rb||F&&"absolute"==d)f.y-=c.body.offsetTop;for(e=a;(e=Uc(e))&&e!=c.body&&e!=h;)f.x-=e.scrollLeft,rb&&"TR"==e.tagName||(f.y-=e.scrollTop)}return f}function Wc(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}
function Xc(a){var b=Yc;if("none"!=Sc(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a}function Yc(a){var b=a.offsetWidth,c=a.offsetHeight,d=F&&!b&&!c;return q(b)&&!d||!a.getBoundingClientRect?new Ya(b,c):(a=Tc(a),new Ya(a.right-a.left,a.bottom-a.top))}
function Zc(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e}function $c(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?Zc(a,c):0}var ad={thin:2,medium:4,thick:6};
function bd(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 ad?ad[c]:Zc(a,c)}var cd=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function dd(a,b){(a=H(a))&&a.style&&(a.style.display=b?"":"none",Xa(a,"hid",!b))}function ed(a){z(arguments,function(a){dd(a,!0)})}function fd(a){z(arguments,function(a){dd(a,!1)})};var gd={},hd="ontouchstart"in document;function id(a,b,c){var d;switch(a){case "mouseover":case "mouseout":d=3;break;case "mouseenter":case "mouseleave":d=9}return Ub(c,function(a){return B(Ta(a),b)},!0,d)}
function Q(a){var b="mouseover"==a.type&&"mouseenter"in gd||"mouseout"==a.type&&"mouseleave"in gd,c=a.type in gd||b;if("HTML"!=a.target.tagName&&c){if(b){var b="mouseover"==a.type?"mouseenter":"mouseleave",c=gd[b],d;for(d in c.Y){var e=id(b,d,a.target);e&&!Ub(a.relatedTarget,function(a){return a==e},!0)&&c.t(d,e,b,a)}}if(b=gd[a.type])for(d in b.Y)(e=id(a.type,d,a.target))&&b.t(d,e,a.type,a)}}M(document,"blur",Q,!0);M(document,"change",Q,!0);M(document,"click",Q);M(document,"focus",Q,!0);
M(document,"mouseover",Q);M(document,"mouseout",Q);M(document,"mousedown",Q);M(document,"keydown",Q);M(document,"keyup",Q);M(document,"keypress",Q);M(document,"cut",Q);M(document,"paste",Q);hd&&(M(document,"touchstart",Q),M(document,"touchend",Q),M(document,"touchcancel",Q));var jd=window.yt&&window.yt.uix&&window.yt.uix.widgets_||{};v("yt.uix.widgets_",jd);function kd(){this.b={}}kd.prototype.g=!!eval("/*@cc_on!@*/false");kd.prototype.Zc=function(){return!0};function ld(a,b,c){var d=R(a,void 0),e=t(c,a);b in gd||(gd[b]=new N);gd[b].F(d,e);a.b[c]=e}function md(a,b){Wb(a,"tooltip-text",b)}function R(a,b){return"yt-uix"+(a.ec?"-"+a.ec:"")+(b?"-"+b:"")};function nd(){this.b={}}x(nd,kd);ca(nd);g=nd.prototype;g.ec="tooltip";g.Kb=0;g.register=function(){ld(this,"mouseover",this.Lc);ld(this,"mouseout",this.dc);ld(this,"click",this.dc);ld(this,"touchstart",this.je);ld(this,"touchend",this.Qc);ld(this,"touchcancel",this.Qc)};g.Zc=function(){return!(this.g&&0==Cb.indexOf("6"))};
g.Lc=function(a){if(!(this.Kb&&1E3>u()-this.Kb)){var b=parseInt(J(a,"tooltip-hide-timer"),10);b&&(Yb(a,"tooltip-hide-timer"),oc(b));var b=t(function(){od(this,a);Yb(a,"tooltip-show-timer")},this),c=parseInt(J(a,"tooltip-show-delay"),10)||0,b=L(b,c);Wb(a,"tooltip-show-timer",b.toString());a.title&&(md(a,J(a,"tooltip-text")||a.title),a.title="")}};
g.dc=function(a){var b=parseInt(J(a,"tooltip-show-timer"),10);b&&(oc(b),Yb(a,"tooltip-show-timer"));b=t(function(){if(a){var b=Lb(pd(this,a));b&&(qd(b),b&&b.parentNode&&b.parentNode.removeChild(b),Yb(a,"content-id"))}Yb(a,"tooltip-hide-timer")},this);b=L(b,50);Wb(a,"tooltip-hide-timer",b.toString());if(b=J(a,"tooltip-text"))a.title=b};g.je=function(a,b){this.Kb=0;var c=id(b,R(this),null[0].target);this.Lc(c)};g.Qc=function(a,b){this.Kb=u();var c=id(b,R(this),null[0].target);this.dc(c)};
function rd(a,b){md(a,b);var c=J(a,"content-id");if(c=H(c))c.innerHTML=b}
function od(a,b){if(b){var c=J(b,"tooltip-text")||b.title;if(c){var d=Lb(pd(a,b));if(!d){d=document.createElement("div");d.id=pd(a,b);d.className=R(a,"tip");var e=document.createElement("div");e.className=R(a,"tip-body");var f=document.createElement("div");f.className=R(a,"tip-arrow");var h=document.createElement("div");h.className=R(a,"tip-content");var k=sd(a,b),l=pd(a,b,"content");h.id=l;Wb(b,"content-id",l);e.appendChild(h);k&&d.appendChild(k);d.appendChild(e);d.appendChild(f);(cc()||document.body).appendChild(d);
rd(b,c);(c=parseInt(J(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",Ua(h,R(a,"normal-wrap")));h=B(Ta(b),R(a,"reverse"));td(a,b,d,e,k,h)||td(a,b,d,e,k,!h);var p=R(a,"tip-visible");L(function(){Ua(d,p)},0)}}}}
function td(a,b,c,d,e,f){Xa(c,R(a,"tip-reverse"),f);var h=0;f&&(h=1);a=Xc(b);f=new C((a.width-10)/2,f?a.height:0);var k=Vc(b);var k=new C(k.x+f.x,k.y+f.y),k=k.q(),l=(h&4&&"rtl"==Sc(c,"direction")?h^2:h)&-5;f=Xc(c);h=f.q();0!=l&&(l&2&&(k.x-=h.width+0),l&1&&(k.y-=h.height+0));var p=k,l=E&&(lb||ub)&&G("1.9");p instanceof C?(k=p.x,p=p.y):(k=p,p=void 0);c.style.left=Wc(k,l);c.style.top=Wc(p,l);if(!(f==h||f&&h&&f.width==h.width&&f.height==h.height))if(f=Ib(Kb(c)),k=Ob(f.b),!D||k&&G("8"))f=c.style,E?f.MozBoxSizing=
"border-box":F?f.WebkitBoxSizing="border-box":f.boxSizing="border-box",f.width=Math.max(h.width,0)+"px",f.height=Math.max(h.height,0)+"px";else if(f=c.style,k){if(D)var k=$c(c,"paddingLeft"),l=$c(c,"paddingRight"),p=$c(c,"paddingTop"),I=$c(c,"paddingBottom"),k=new Pc(p,l,I,k);else k=Rc(c,"paddingLeft"),l=Rc(c,"paddingRight"),p=Rc(c,"paddingTop"),I=Rc(c,"paddingBottom"),k=new Pc(parseFloat(p),parseFloat(l),parseFloat(I),parseFloat(k));if(D)var l=bd(c,"borderLeft"),p=bd(c,"borderRight"),I=bd(c,"borderTop"),
U=bd(c,"borderBottom"),l=new Pc(I,p,U,l);else l=Rc(c,"borderLeftWidth"),p=Rc(c,"borderRightWidth"),I=Rc(c,"borderTopWidth"),U=Rc(c,"borderBottomWidth"),l=new Pc(parseFloat(I),parseFloat(p),parseFloat(U),parseFloat(l));f.pixelWidth=h.width-l.left-k.left-k.right-l.right;f.pixelHeight=h.height-l.top-k.top-k.bottom-l.bottom}else f.pixelWidth=h.width,f.pixelHeight=h.height;var h=window.document,h=Ob(h)?h.documentElement:h.body,h=new Ya(h.clientWidth,h.clientHeight),w;if(1==c.nodeType){c.getBoundingClientRect?
(f=Tc(c),f=new C(f.left,f.top)):(f=Vb(Ib(c)),k=Vc(c),f=new C(k.x-f.x,k.y-f.y));if(E&&!G(12)){var $;D?$="-ms-transform":F?$="-webkit-transform":rb?$="-o-transform":E&&($="-moz-transform");$&&(w=Sc(c,$));w||(w=Sc(c,"transform"));c=w?(c=w.match(cd))?new C(parseFloat(c[1]),parseFloat(c[2])):new C(0,0):new C(0,0);c=new C(f.x+c.x,f.y+c.y)}else c=f;w=c}else $=ga(c.Gd),w=c,c.targetTouches?w=c.targetTouches[0]:$&&c.gb.targetTouches&&(w=c.gb.targetTouches[0]),w=new C(w.clientX,w.clientY);c=Xc(d);f=Math.floor(c.width/
2);e&&(e.style.left="3px",e.style.height=c.height+"px",e.style.width=c.width+"px");e=!!(h.height<w.y+a.height);a=!!(w.y<a.height);$=!!(w.x<f);w=!!(h.width<w.x+f);h=(c.width+3)/-2- -5;b=J(b,"force-tooltip-direction");if("left"==b||$)h=-5;else if("right"==b||w)h=20-c.width-3;d.style.left=Math.floor(h)+"px";return!(e||a)}function pd(a,b,c){a=R(a);var d=b.__yt_uid_key;d||(d=$b(),b.__yt_uid_key=d);b=a+d;c&&(b+="-"+c);return b}
function sd(a,b){var c=null;mb&&B(Ta(b),R(a,"masked"))&&((c=H("yt-uix-tooltip-shared-mask"))?(c.parentNode.removeChild(c),ed(c)):(c=document.createElement("iframe"),c.src='javascript:""',c.id="yt-uix-tooltip-shared-mask",c.className=R(a,"tip-mask")));return c}function qd(a){var b=H("yt-uix-tooltip-shared-mask"),c=b&&Ub(b,function(b){return b==a},!1,2);b&&c&&(b.parentNode.removeChild(b),fd(b),document.body.appendChild(b))};function ud(){this.b={};this.h=[]}x(ud,kd);ca(ud);ud.prototype.ec="subscription-button";
ud.prototype.register=function(){ld(this,"click",this.Gc);this.h.push(O("subscription-subscribe-loading",this.Ic,this),O("subscription-subscribe-loaded",this.Hc,this),O("subscription-unsubscirbe-loading",this.Ic,this),O("subscription-unsubscribe-loaded",this.Hc,this),O("subscription-subscribe-success",this.Rd,this),O("subscription-unsubscribe-success",this.Sd,this),O("subscription-enable-ypc",this.Qd,this),O("subscription-disable-ypc",this.Pd,this))};
var Tb={Kc:"hover-enabled",de:"yt-uix-button-subscribe",ee:"yt-uix-button-subscribed",ye:"ypc-enabled",qe:"yt-uix-button-subscription-container",re:"yt-subscription-button-disabled-mask-container"},S={ze:"channel-external-id",fe:"subscriber-count-show-when-subscribed",ge:"subscriber-count-tooltip",he:"subscriber-count-title",Ae:"href",Uc:"is-subscribed",Be:"parent-url",Ce:"sessionlink",ie:"style-type",Vc:"subscription-id",De:"target",ke:"ypc-enabled",Oc:"ypc-item-type",Nc:"ypc-item-id",Pc:"ypc-offers-url"};
g=ud.prototype;g.Gc=function(a){var b=J(a,"href"),c=!!lc();if(b)a=J(a,"target")||"_self",window.open(b,a);else if(c){var b=J(a,"channel-external-id"),c=J(a,"sessionlink"),d;if(J(a,"ypc-enabled")){d=J(a,S.Oc);var e=J(a,S.Nc),f=J(a,S.Pc);d={itemType:d,itemId:e,offersUrl:f,subscriptionElement:a}}else d=null;e=J(a,"parent-url");J(a,"is-subscribed")?(f=J(a,"subscription-id"),P("subscription-unsubscribe",b,f,d,a,c,e)):P("subscription-subscribe",b,d,a,c,e)}else vd(this,a)};
g.Ic=function(a){this.Qa(a,this.Sc,!0)};g.Hc=function(a){this.Qa(a,this.Sc,!1)};g.Rd=function(a,b){this.Qa(a,this.Tc,!0,b)};g.Sd=function(a){this.Qa(a,this.Tc,!1)};g.Qd=function(a){this.Qa(a,this.ne)};g.Pd=function(a){this.Qa(a,this.le)};g.Tc=function(a,b,c){b?(Wb(a,S.Uc,"true"),c&&Wb(a,S.Vc,c)):(Yb(a,S.Uc),Yb(a,S.Vc));wd(a)};g.Sc=function(a,b){var c;c=Sb(a);Xa(c,Tb.re,b);a.setAttribute("aria-busy",b?"true":"false");a.disabled=b};
function wd(a){var b=J(a,S.ie),c=!!J(a,"is-subscribed"),b="-"+b,d=Tb.ee+b;Xa(a,Tb.de+b,!c);Xa(a,d,c);J(a,S.ge)&&!J(a,S.fe)&&(b=R(nd.getInstance()),Xa(a,b,!c),a.title=c?"":J(a,S.he));c?L(function(){Ua(a,Tb.Kc)},1E3):Va(a,Tb.Kc)}g.ne=function(a){var b=!!J(a,S.Oc),c=!!J(a,S.Nc),d=!!J(a,S.Pc);!J(a,"ypc-enabled")&&(b&&c&&d)&&(Ua(a,"ypc-enabled"),Wb(a,S.ke,"true"))};g.le=function(a){J(a,"ypc-enabled")&&(Va(a,"ypc-enabled"),Yb(a,"ypc-enabled"))};
function xd(a,b){var c=Mb(R(a));return Aa(c,function(a){return b==J(a,"channel-external-id")},a)}g.se=function(a,b,c){var d=Oa(arguments,2);z(a,function(a){b.apply(this,Ka(a,d))},this)};g.Qa=function(a,b,c){var d=xd(this,a),d=Ka([d],Oa(arguments,1));this.se.apply(this,d)};function vd(a,b){var c=t(function(a){a.subscription_ajax&&kc("subscription_ajax",a.subscription_ajax);this.Gc(b)},a);Oc(c,"sub_button")};function yd(a){a=a||{};this.url=a.url||"";this.urlV8=a.url_v8||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||eb(zd);this.assets=a.assets||{};this.attrs=a.attrs||eb(Ad);this.params=a.params||eb(Bd);this.minVersion=a.min_version||"8.0.0";this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded}var zd={enablejsapi:1},Ad={},Bd={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};
function Cd(a){a instanceof yd||(a=new yd(a));return a}yd.prototype.q=function(){var a=new yd,b;for(b in this){var c=this[b];"object"==da(c)?a[b]=eb(c):a[b]=c}return a};var Dd="StopIteration"in m?m.StopIteration:Error("StopIteration");function Ed(){}Ed.prototype.b=function(){throw Dd;};Ed.prototype.La=function(){return this};function Fd(a){if(a instanceof Ed)return a;if("function"==typeof a.La)return a.La(!1);if(ea(a)){var b=0,c=new Ed;c.b=function(){for(;;){if(b>=a.length)throw Dd;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");}
function Gd(a,b,c){if(ea(a))try{z(a,b,c)}catch(d){if(d!==Dd)throw d;}else{a=Fd(a);try{for(;;)b.call(c,a.b(),void 0,a)}catch(e){if(e!==Dd)throw e;}}}function Hd(a){if(ea(a))return La(a);a=Fd(a);var b=[];Gd(a,function(a){b.push(a)});return b};function Id(){};function Jd(){}x(Jd,Id);Jd.prototype.clear=function(){var a=Hd(this.La(!0)),b=this;z(a,function(a){b.remove(a)})};function Kd(a){this.b=a}x(Kd,Jd);g=Kd.prototype;g.isAvailable=function(){if(!this.b)return!1;try{return this.b.setItem("__sak","1"),this.b.removeItem("__sak"),!0}catch(a){return!1}};g.set=function(a,b){try{this.b.setItem(a,b)}catch(c){if(0==this.b.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};g.get=function(a){a=this.b.getItem(a);if(!s(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};g.remove=function(a){this.b.removeItem(a)};
g.La=function(a){var b=0,c=this.b,d=new Ed;d.b=function(){if(b>=c.length)throw Dd;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!s(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};g.clear=function(){this.b.clear()};g.key=function(a){return this.b.key(a)};function Ld(){var a=null;try{a=window.localStorage||null}catch(b){}this.b=a}x(Ld,Kd);function Md(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}function Nd(a){return eval("("+a+")")}function T(a){return Od(new Pd(void 0),a)}function Pd(a){this.b=a}
function Od(a,b){var c=[];Qd(a,b,c);return c.join("")}
function Qd(a,b,c){switch(typeof b){case "string":Rd(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(null==b){c.push("null");break}if(r(b)){var d=b.length;c.push("[");for(var e="",f=0;f<d;f++)c.push(e),e=b[f],Qd(a,a.b?a.b.call(b,String(f),e):e,c),e=",";c.push("]");break}c.push("{");d="";for(f in b)Object.prototype.hasOwnProperty.call(b,f)&&(e=b[f],"function"!=typeof e&&(c.push(d),Rd(f,c),c.push(":"),
Qd(a,a.b?a.b.call(b,f,e):e,c),d=","));c.push("}");break;case "function":break;default:throw Error("Unknown type: "+typeof b);}}var Sd={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Td=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function Rd(a,b){b.push('"',a.replace(Td,function(a){if(a in Sd)return Sd[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return Sd[a]=e+b.toString(16)}),'"')};function Ud(a){this.Ka=a;this.Rc=new Pd}g=Ud.prototype;g.Ka=null;g.Rc=null;g.set=function(a,b){q(b)?this.Ka.set(a,Od(this.Rc,b)):this.Ka.remove(a)};g.get=function(a){var b;try{b=this.Ka.get(a)}catch(c){return}if(null!==b)try{return Md(b)}catch(d){throw"Storage: Invalid value was encountered";}};g.remove=function(a){this.Ka.remove(a)};function Vd(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.b=a}x(Vd,Kd);function Wd(a){Ud.call(this,a)}x(Wd,Ud);function Xd(a){this.data=a}function Yd(a){return!q(a)||a instanceof Xd?a:new Xd(a)}Wd.prototype.set=function(a,b){Wd.D.set.call(this,a,Yd(b))};Wd.prototype.b=function(a){a=Wd.D.get.call(this,a);if(!q(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};Wd.prototype.get=function(a){if(a=this.b(a)){if(a=a.data,!q(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};function Zd(a){Ud.call(this,a)}x(Zd,Wd);function $d(a){var b=a.creation;a=a.expiration;return!!a&&a<u()||!!b&&b>u()}Zd.prototype.set=function(a,b,c){if(b=Yd(b)){if(c){if(c<u()){Zd.prototype.remove.call(this,a);return}b.expiration=c}b.creation=u()}Zd.D.set.call(this,a,b)};Zd.prototype.b=function(a,b){var c=Zd.D.b.call(this,a);if(c)if(!b&&$d(c))Zd.prototype.remove.call(this,a);else return c};function ae(a){Ud.call(this,a)}x(ae,Zd);function be(a,b){var c=[];Gd(b,function(a){var b;try{b=ae.prototype.b.call(this,a,!0)}catch(f){if("Storage: Invalid value was encountered"==f)return;throw f;}q(b)?$d(b)&&c.push(a):c.push(a)},a);return c}function ce(a,b){var c=be(a,b);z(c,function(a){ae.prototype.remove.call(this,a)},a)};function de(a,b,c){var d=c&&0<c?c:0;c=d?u()+1E3*d:0;if((d=d?ee:fe)&&window.JSON){s(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}function ge(a){if(!fe&&!ee||!window.JSON)return null;var b;try{b=fe.get(a),b=s(b)?b:ee.get(a)}catch(c){return null}if(!s(b))return null;try{b=JSON.parse(b,void 0)}catch(d){}return b}function he(a){fe&&fe.remove(a);ee&&ee.remove(a)}var ee,ie=new Ld;ee=ie.isAvailable()?new ae(ie):null;var fe,je=new Vd;fe=je.isAvailable()?new ae(je):null;function ke(){var a={volume:100,muted:!1,nonNormalized:100},b=ge("yt-player-volume");if(!b){var c=new Ld;c.isAvailable()&&(b=(new Ud(c)).get("yt-player-volume"))}b=b||{};a.volume=isNaN(b.volume)?100:Math.min(Math.max(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 le(a){this.b=a}var me=/\s*;\s*/;g=le.prototype;g.set=function(a,b,c,d,e,f){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');q(c)||(c=-1);e=e?";domain="+e:"";d=d?";path="+d:"";f=f?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(u()+1E3*c)).toUTCString();this.b.cookie=a+"="+b+e+d+c+f};
g.get=function(a,b){for(var c=a+"=",d=(this.b.cookie||"").split(me),e=0,f;f=d[e];e++){if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};g.remove=function(a,b,c){var d=q(this.get(a));this.set(a,"",0,b,c);return d};g.ia=function(){return ne(this).keys};g.Z=function(){return ne(this).Jd};g.clear=function(){for(var a=ne(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
function ne(a){a=(a.b.cookie||"").split(me);for(var b=[],c=[],d,e,f=0;e=a[f];f++)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,Jd:c}}var oe=new le(document);oe.g=3950;function pe(a,b,c){oe.set(""+a,b,c,"/","youtube.com")};function qe(){var a;if(a=oe.get("PREF",void 0)){a=unescape(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(re[d]=c.toString())}}}ca(qe);var re=n("yt.prefs.UserPrefs.prefs_")||{};v("yt.prefs.UserPrefs.prefs_",re);function se(a){if(/^f([1-9][0-9]*)$/.test(a))throw"ExpectedRegexMatch: "+a;}function te(a){if(!/^\w+$/.test(a))throw"ExpectedRegexMismatch: "+a;}qe.prototype.get=function(a,b){te(a);se(a);var c=void 0!==re[a]?re[a].toString():null;return null!=c?c:b?b:""};
qe.prototype.set=function(a,b){te(a);se(a);if(null==b)throw"ExpectedNotNull";re[a]=b.toString()};qe.prototype.remove=function(a){te(a);se(a);delete re[a]};qe.prototype.clear=function(){re={}};function ue(a){"?"==a.charAt(0)&&(a=a.substr(1));a=a.split("&");for(var b={},c=0,d=a.length;c<d;c++){var e=a[c].split("=");if(1==e.length&&e[0]||2==e.length){var f=oa(e[0]||""),e=oa(e[1]||"");f in b?r(b[f])?Ma(b[f],e):b[f]=[b[f],e]:b[f]=e}}return b}function ve(a){a=Mc([],a);a[0]="";return a.join("")}var we=Ic;function xe(a,b){var c=a.split("#",2);a=c[0];var c=1<c.length?"#"+c[1]:"",d=a.split("?",2);a=d[0];var d=ue(d[1]||""),e;for(e in b)d[e]=b[e];return Jc(Mc([a],d))+c}
function ye(a){a=we(a);a=null===a?null:a.split(".").reverse();return(null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:-nocookie)?$/)?!0:!1)||(null===a?!1:"google"==a[1]?!0:"google"==a[2]?"au"==a[0]&&"com"==a[1]?!0:"uk"==a[0]&&"co"==a[1]?!0:!1:!1)};function ze(){this.b=[];Ae(this)}ca(ze);g=ze.prototype;g.O=0;g.Aa=0;g.ib=0;g.cc="";g.Ud="";g.oa=0;g.load=function(a){3<=this.oa?a(this):this.b.push(a)};g.getVersion=function(){return[this.O,this.Aa,this.ib]};function Be(a,b,c,d){b="string"==typeof b?b.split("."):[b,c,d];b[0]=parseInt(b[0],10)||0;b[1]=parseInt(b[1],10)||0;b[2]=parseInt(b[2],10)||0;return a.O>b[0]||a.O==b[0]&&a.Aa>b[1]||a.O==b[0]&&a.Aa==b[1]&&a.ib>=b[2]}
function Ce(a){return-1<a.cc.indexOf("Gnash")&&-1==a.cc.indexOf("AVM2")||9==a.O&&1==a.Aa||9==a.O&&0==a.Aa&&1==a.ib?!1:9<=a.O}function De(a){return-1<navigator.userAgent.indexOf("Sony/COM2")&&!Be(a,9,1,58)?!1:!0}
function Ae(a){if(3>a.oa)if(1>a.oa){var b=n("window.navigator.plugins"),c=n("window.navigator.mimeTypes"),b=b&&b["Shockwave Flash"],c=c&&c["application/x-shockwave-flash"],c=b&&c&&c.enabledPlugin&&b.description||"";if(b=c){var d=b.indexOf("Shockwave Flash");0<=d&&(b=b.substr(d+15));for(var d=b.split(" "),e="",b="",f=0,h=d.length;f<h;f++)if(e)if(b)break;else b=d[f];else e=d[f];e=e.split(".");d=parseInt(e[0],10)||0;e=parseInt(e[1],10)||0;f=0;if("r"==b.charAt(0)||"d"==b.charAt(0))f=parseInt(b.substr(1),
10)||0;b=[d,e,f]}else b=[0,0,0];a.cc=c;c=b;a.O=c[0];a.Aa=c[1];a.ib=c[2];a.oa=1;0<a.O?Ee(a):Ae(a)}else 2>a.oa?Fe(a):Ee(a)}g.Xc=function(a){var b;a?(b=a.split(" ")[1].split(","),b=[parseInt(b[0],10)||0,parseInt(b[1],10)||0,parseInt(b[2],10)||0]):b=[0,0,0];this.Ud=a;a=b;this.O=a[0];this.Aa=a[1];this.ib=a[2];this.oa=2;0<this.O?Ee(this):Ae(this)};function Ee(a){if(3>a.oa){a.oa=3;for(var b=0,c=a.b.length;b<c;b++)a.b[b](a);a.b=[]}}
function Fe(a){function b(){if(c&&"GetVariable"in c)try{d=c.GetVariable("$version")}catch(a){d=""}d||10<=l?(e&&f&&e.removeChild(f),k(d||"")):(l++,L(b,10))}var c,d,e,f;if(rc){try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(h){c=null}c||a.Xc("")}else e=document.getElementsByTagName("body")[0],f=document.createElement("object"),f.setAttribute("type","application/x-shockwave-flash"),c=e.appendChild(f);var k=t(a.Xc,a),l=0;L(b,0)};function Ge(a,b,c){if((a=H(a))&&b&&c){c=Cd(c);var d=eb(c.attrs);d.tabindex=0;var e=eb(c.params);e.flashvars=ve(c.args);if(rc){d.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";e.movie=b;b=document.createElement("object");for(var f in d)b.setAttribute(f,d[f]);for(f in e)d=document.createElement("param"),d.setAttribute("name",f),d.setAttribute("value",e[f]),b.appendChild(d)}else{d.type="application/x-shockwave-flash";d.src=b;b=document.createElement("embed");b.setAttribute("name",d.id);for(f in d)b.setAttribute(f,
d[f]);for(f in e)b.setAttribute(f,e[f])}e=document.createElement("div");e.appendChild(b);a.innerHTML=e.innerHTML}}function He(a,b){a=H(a);b=Cd(b);if(window!=window.top){var c=null;document.referrer&&(c=document.referrer.substring(0,128));b.args.framer=c}Ie(function(c){Be(c,b.minVersion)||K("IS_OPERA_MINI")?(c=Ce(c)&&b.url||De(c)&&b.urlV9As2||b.urlV8||b.url,Ge(a,c,b)):Je(a,b,c)})}
function Ke(a,b,c){if(a&&a.attrs&&a.attrs.id){a=Cd(a);var d=!!b,e=H(a.attrs.id),f=e?e.parentNode:null;if(e&&f){if(window!=window.top){var h=null;if(document.referrer){var k=document.referrer.substring(0,128);ye(k)||(h=k)}else h="unknown";h&&(d=!0,a.args.framer=h)}Ie(function(b){if(Be(b,a.minVersion)||K("IS_OPERA_MINI")){var h=Ce(b)&&a.url||De(b)&&a.urlV9As2||a.urlV8||a.url,k="";-1<navigator.userAgent.indexOf("Sony/COM2")||(k=e.getAttribute("src")||e.movie);(k!=h||d)&&Ge(f,h,a);(mb?Be(b,11,2):lb?Be(b,
11,3):Ce(b))||(b=H("flash10-promo-div"),qe.getInstance(),h=void 0!==re["f"+(Math.floor(107/31)+1)]?re["f"+(Math.floor(107/31)+1)].toString():null,h=!!(((null!=h&&/^[A-Fa-f0-9]+$/.test(h)?parseInt(h,16):null)||0)&16384),b&&!h&&ed(b))}else Je(f,a,b);c&&c()})}else L(function(){Ke(a,b,c)},50)}}
function Je(a,b,c){0==c.O&&b.fallback?b.fallback():0==c.O&&b.fallbackMessage?b.fallbackMessage():a.innerHTML='<div id="flash-upgrade">'+qc("FLASH_UPGRADE",void 0,'You need to upgrade your Adobe Flash Player to watchthis video. <br> <a href="http://get.adobe.com/flashplayer/">Download it from Adobe.</a>')+"</div>"}
function Ie(a){ze.getInstance().load(function(b){qe.getInstance().set("fv",b.getVersion().join("."));var c;c=[];for(var d in re)c.push(d+"="+escape(re[d]));c=c.join("&");pe("PREF",c,63072E3);a(b)})};function Le(a,b){Me(a,b)}function Me(a,b){var c="js-"+wa(a),d=document.getElementById(c),e=d&&J(d,"loaded"),f=d&&!e;e?b&&b():(b&&O(c,b),f||(d=Ne(a,c,function(){J(d,"loaded")||(Wb(d,"loaded","true"),P(c),Dc(c))})))}
function Ne(a,b,c){var d=document.createElement("script");d.id=b;d.onload=function(){c&&setTimeout(c,0)};d.onreadystatechange=function(){switch(d.readyState){case "loaded":case "complete":d.onload()}};d.src=a;a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(d,a.firstChild);return d};var Oe;var Pe=nb(),Pe=Pe.toLowerCase();if(-1!=Pe.indexOf("android")){var Qe=Pe.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(Qe)Oe=Number(Qe[1]);else{var Re={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},Se=Pe.match("("+ab(Re).join("|")+")");Oe=Se?Re[Se[0]]:0}}else Oe=void 0;var Te;function Ue(){if(2.2==Oe)return!0;var a;a=n("yt.player.utils.videoElement_");a||(a=document.createElement("video"),v("yt.player.utils.videoElement_",a));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 Ve(a){this.i={};this.g={};this.h={};this.b=We(this,a)}x(Ve,xc);function We(a,b,c){var d=0,e;e=b[d++];e=document.createElement(e);if(s(b[d])||r(b[d])||null===b[d]){var f=b[d++];r(f)&&(f=f.join(" "));if(f=Xe(a,e,"className",f))Ye(a,e,"className",f),Ze(a,f,e)}for(;d<b.length;d++){var h=b[d];if(r(h))We(a,h,e);else if(ha(h)){var f=a,k=e,l=void 0;for(l in h)h[l]&&Ye(f,k,l,Xe(f,k,l,h[l]))}else s(h)&&Ye(a,e,"child",Xe(a,e,"child",h))}c&&c.appendChild(e);return e}Ve.prototype.Db=function(){return this.b};
function Ze(a,b,c){var d=b.split(" ");if(1<d.length)for(b=0;b<d.length;b++)Ze(a,d[b],c);else a.i[b]=c}Ve.prototype.vb=function(a,b){q(b)?a.insertBefore(this.b,a.childNodes[b]||null):a.appendChild(this.b)};Ve.prototype.Tb=function(){var a=this.b;a&&a.parentNode&&a.parentNode.removeChild(a)};function Xe(a,b,c,d){return s(d)&&"{{"==d.substr(0,2)?(a.g[d]=[b,c],null):d}
function Ye(a,b,c,d){if("child"==c){Pb(b);if(!r(d)||r(d)&&s(d[0]))d=[d];c=[];for(var e=0;e<d.length;e++){var f=d[e];null===f||(!f.nodeType||1!=f.nodeType&&3!=f.nodeType?r(f)&&s(f[0])?c.push(We(a,f)):f.Db?c.push(f.Db()):c.push(document.createTextNode(String(f.toString()))):c.push(f))}for(a=0;a<c.length;a++)b.appendChild(c[a])}else"className"==c?b.className=d:null===d?b.removeAttribute(c):b.setAttribute(c,d.toString())}Ve.prototype.u=function(){this.i={};this.g={};this.h={};this.Tb();this.b=null;Ve.D.u.call(this)};function $e(a){this.g=new Ve(a);yc(this,na(zc,this.g));this.b=this.g.Db()}x($e,xc);g=$e.prototype;g.Db=function(){return this.b};g.vb=function(a,b){this.g.vb(a,b)};g.Tb=function(){this.g.Tb()};g.addEventListener=function(a,b,c){this.b.addEventListener(a,b,c)};g.removeEventListener=function(a,b,c){this.b.removeEventListener(a,b,c)};g.u=function(){this.b=null;$e.D.u.call(this)};var af=!!m.DOMTokenList,bf=af?function(a){return a.classList}:function(a){a=a.className;return s(a)&&a.match(/\S+/g)||[]},cf=af?function(a,b){return a.classList.contains(b)}:function(a,b){return B(bf(a),b)},df=af?function(a,b){a.classList.add(b)}:function(a,b){cf(a,b)||(a.className+=0<a.className.length?" "+b:b)};function ef(a,b){$e.call(this,["canvas"]);this.b.width=a;this.b.height=b;this.width=a;this.height=b;this.ea=this.b.getContext("2d")}x(ef,$e);ef.prototype.u=function(){oc(0);this.ea=null;ef.D.u.call(this)};function ff(a,b){ef.call(this,a,b);df(this.b,"ytp-tv-static");if(a&&b){this.width=this.b.width=a;this.height=this.b.height=b;var c=document.createElement("canvas");c.width=a;c.height=b;for(var c=c.getContext("2d"),d=c.getImageData(0,0,a,b),e=a*b,f=0;f<e;f++){var h=4*f;d.data[h]=d.data[h+1]=d.data[h+2]=Math.floor(35*Math.random());d.data[h+3]=255}c.putImageData(d,0,0);this.ea.scale(1.5,1.5)}}x(ff,ef);function gf(){$e.call(this,["div",["ytp-error","html5-stop-propagation"],["div","ytp-error-content","{{content}}"]]);this.h=[];if(void 0==Te){var a=document.createElement("canvas");Te=!(!a.getContext||!a.getContext("2d"))}Te&&(this.i=new ff(1,1),this.i.vb(this.b,0),yc(this,na(zc,this.i)))}x(gf,$e);gf.prototype.u=function(){wc(this.h);this.h=[];gf.D.u.call(this)};function hf(a,b){this.g={};this.b=[];var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof hf?(c=a.ia(),d=a.Z()):(c=ab(a),d=$a(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}g=hf.prototype;g.Na=0;g.bb=0;g.Z=function(){jf(this);for(var a=[],b=0;b<this.b.length;b++)a.push(this.g[this.b[b]]);return a};g.ia=function(){jf(this);return this.b.concat()};
g.clear=function(){this.g={};this.bb=this.Na=this.b.length=0};g.remove=function(a){return kf(this.g,a)?(delete this.g[a],this.Na--,this.bb++,this.b.length>2*this.Na&&jf(this),!0):!1};function jf(a){if(a.Na!=a.b.length){for(var b=0,c=0;b<a.b.length;){var d=a.b[b];kf(a.g,d)&&(a.b[c++]=d);b++}a.b.length=c}if(a.Na!=a.b.length){for(var e={},c=b=0;b<a.b.length;)d=a.b[b],kf(e,d)||(a.b[c++]=d,e[d]=1),b++;a.b.length=c}}g.get=function(a,b){return kf(this.g,a)?this.g[a]:b};
g.set=function(a,b){kf(this.g,a)||(this.Na++,this.b.push(a),this.bb++);this.g[a]=b};g.q=function(){return new hf(this)};g.La=function(a){jf(this);var b=0,c=this.b,d=this.g,e=this.bb,f=this,h=new Ed;h.b=function(){for(;;){if(e!=f.bb)throw Error("The map has changed since the iterator was created");if(b>=c.length)throw Dd;var h=c[b++];return a?h:d[h]}};return h};function kf(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function lf(a){if("function"==typeof a.Z)return a.Z();if(s(a))return a.split("");if(ea(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return $a(a)}function mf(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(ea(a)||s(a))z(a,b,c);else{var d;if("function"==typeof a.ia)d=a.ia();else if("function"!=typeof a.Z)if(ea(a)||s(a)){d=[];for(var e=a.length,f=0;f<e;f++)d.push(f)}else d=ab(a);else d=void 0;for(var e=lf(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)}};function nf(a,b){var c;if(a instanceof nf)this.ya=q(b)?b:a.ya,of(this,a.Pa),this.Fb=a.Fb,pf(this,a.Oa),qf(this,a.fb),this.hb=a.hb,rf(this,a.b.q()),this.Eb=a.Eb;else if(a&&(c=Gc(String(a)))){this.ya=!!b;of(this,c[1]||"",!0);var d=c[2]||"";this.Fb=d?decodeURIComponent(d):"";pf(this,c[3]||"",!0);qf(this,c[4]);this.hb=(d=c[5]||"")?decodeURIComponent(d):"";rf(this,c[6]||"",!0);this.Eb=(c=c[7]||"")?decodeURIComponent(c):""}else this.ya=!!b,this.b=new sf(null,0,this.ya)}g=nf.prototype;g.Pa="";g.Fb="";
g.Oa="";g.fb=null;g.hb="";g.Eb="";g.ya=!1;g.toString=function(){var a=[],b=this.Pa;b&&a.push(tf(b,uf),":");if(b=this.Oa){a.push("//");var c=this.Fb;c&&a.push(tf(c,uf),"@");a.push(encodeURIComponent(String(b)));b=this.fb;null!=b&&a.push(":",String(b))}if(b=this.hb)this.Oa&&"/"!=b.charAt(0)&&a.push("/"),a.push(tf(b,"/"==b.charAt(0)?vf:wf));(b=this.b.toString())&&a.push("?",b);(b=this.Eb)&&a.push("#",tf(b,xf));return a.join("")};g.q=function(){return new nf(this)};
function of(a,b,c){a.Pa=c?b?decodeURIComponent(b):"":b;a.Pa&&(a.Pa=a.Pa.replace(/:$/,""))}function pf(a,b,c){a.Oa=c?b?decodeURIComponent(b):"":b}function qf(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.fb=b}else a.fb=null}function rf(a,b,c){b instanceof sf?(a.b=b,yf(a.b,a.ya)):(c||(b=tf(b,zf)),a.b=new sf(b,0,a.ya))}function V(a,b,c){a.b.set(b,c)}function Af(a,b,c){r(c)||(c=[String(c)]);Bf(a.b,b,c)}
function Cf(a){V(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^u()).toString(36));return a}function Df(a,b,c,d){var e=new nf(null,void 0);a&&of(e,a);b&&pf(e,b);c&&qf(e,c);d&&(e.hb=d);return e}function tf(a,b){return s(a)?encodeURI(a).replace(b,Ef):null}function Ef(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var uf=/[#\/\?@]/g,wf=/[\#\?:]/g,vf=/[\#\?]/g,zf=/[\#\?@]/g,xf=/#/g;
function sf(a,b,c){this.b=a||null;this.g=!!c}function Ff(a){if(!a.A&&(a.A=new hf,a.R=0,a.b))for(var b=a.b.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null,f=null;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=oa(e);e=Gf(a,e);a.add(e,f?oa(f):"")}}g=sf.prototype;g.A=null;g.R=null;g.add=function(a,b){Ff(this);this.b=null;a=Gf(this,a);var c=this.A.get(a);c||this.A.set(a,c=[]);c.push(b);this.R++;return this};
g.remove=function(a){Ff(this);a=Gf(this,a);return kf(this.A.g,a)?(this.b=null,this.R-=this.A.get(a).length,this.A.remove(a)):!1};g.clear=function(){this.A=this.b=null;this.R=0};function Hf(a,b){Ff(a);b=Gf(a,b);return kf(a.A.g,b)}g.ia=function(){Ff(this);for(var a=this.A.Z(),b=this.A.ia(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.Z=function(a){Ff(this);var b=[];if(s(a))Hf(this,a)&&(b=Ka(b,this.A.get(Gf(this,a))));else{a=this.A.Z();for(var c=0;c<a.length;c++)b=Ka(b,a[c])}return b};g.set=function(a,b){Ff(this);this.b=null;a=Gf(this,a);Hf(this,a)&&(this.R-=this.A.get(a).length);this.A.set(a,[b]);this.R++;return this};g.get=function(a,b){var c=a?this.Z(a):[];return 0<c.length?String(c[0]):b};function Bf(a,b,c){a.remove(b);0<c.length&&(a.b=null,a.A.set(Gf(a,b),La(c)),a.R+=c.length)}
g.toString=function(){if(this.b)return this.b;if(!this.A)return"";for(var a=[],b=this.A.ia(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.Z(d),f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+encodeURIComponent(String(d[f])));a.push(h)}return this.b=a.join("&")};g.q=function(){var a=new sf;a.b=this.b;this.A&&(a.A=this.A.q(),a.R=this.R);return a};function Gf(a,b){var c=String(b);a.g&&(c=c.toLowerCase());return c}
function yf(a,b){b&&!a.g&&(Ff(a),a.b=null,mf(a.A,function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),Bf(this,e,a))},a));a.g=b};var If="corp.google.com youtube.com youtube-nocookie.com prod.google.com sandbox.google.com docs.google.com drive.google.com play.google.com".split(" ");function Jf(a){a&&(this.name=a.name,this.N=a.screenId,this.S=a.loungeToken,this.M=a.dialId||"")}g=Jf.prototype;g.name="";g.N="";g.S="";g.M="";g.Wc=function(){return{key:this.N,name:this.name}};g.toString=function(){var a=this.S?this.S.slice(-6):"null";return"{name:"+this.name+",screenId:"+this.N+",loungeToken:..."+a+",dialId:"+this.M+"}"};function Kf(a){return a?a.toString():"null"}function Lf(a){a=a||[];return"["+A(a,function(a){return Kf(a)}).join(",")+"]"};function Mf(a){a&&(this.id=a.id||"",this.name=a.name||"",this.activityId=a.activityId||"",this.status=a.status||"UNKNOWN")}g=Mf.prototype;g.id="";g.name="";g.activityId="";g.status="UNKNOWN";g.Wc=function(){return{key:this.id,name:this.name}};function Nf(a){return{id:a.id,name:a.name,activityId:a.activityId,status:a.status}}g.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.activityId+",status:"+this.status+"}"};
function Of(a){a=a||[];return"["+A(a,function(a){return a?a.toString():"null"}).join(",")+"]"};function Pf(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;return("x"==a?b:b&3|8).toString(16)})}function Qf(a,b){return Da(a,function(a){return a.key==b})}function Rf(a){return A(a,function(a){return a.Wc()})}function Sf(a){return A(a,function(a){return Nf(a)})}function Tf(a){return A(a,function(a){return new Mf(a)})}function Uf(a,b){return a||b?a&&b?a.id==b.id&&a.name==b.name:!1:!0}function Vf(a,b){return Da(a,function(a){return a.id==b})}
function Wf(a){return A(a,function(a){return{name:a.name,screenId:a.N,loungeToken:a.S,dialId:a.M}})}function Xf(a){return A(a,function(a){return new Jf(a)})}function Yf(a,b){return a||b?a&&b?a.N==b.N:!1:!0}function Zf(a,b){return a||b?a&&b?a.N==b.N&&a.S==b.S&&a.name==b.name&&a.M==b.M:!1:!0}function $f(a,b){return Da(a,function(a){return Yf(a,b)})}function ag(a,b){return Da(a,function(a){return b==a.N||b==a.M})};function bg(){var a=cg(),b=dg();B(a,b);if(eg()){var c=a,d;d=0;for(var e=c.length,f;d<e;){var h=d+e>>1,k;k=Ra(b,c[h]);0<k?d=h+1:(e=h,f=!k)}d=f?d:~d;0>d&&Na(c,-(d+1),0,b)}a=fg(a);0==a.length?oe.remove("remote_sid","/","youtube.com"):pe("remote_sid",a.join(","))}function cg(){var a=ge("yt-remote-connected-devices")||[];y.sort.call(a,Ra);return a}
function fg(a){if(0==a.length)return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return A(a,function(a,b){return 0==b?a:a.substring(c.length)})}function gg(a){de("yt-remote-connected-devices",a,86400)}function dg(){if(hg)return hg;var a=ge("yt-remote-device-id");a||(a=Pf(),de("yt-remote-device-id",a,31536E3));for(var b=cg(),c=1,d=a;B(b,d);)c++,d=a+"#"+c;return hg=d}function eg(){return ge("yt-remote-session-screen-id")}
function ig(a){5<a.length&&(a=a.slice(a.length-5));var b=A(jg(),function(a){return a.loungeToken}),c=A(a,function(a){return a.loungeToken});Ca(c,function(a){return!B(b,a)})&&de("yt-remote-lounge-token-expiration",!0,86400);de("yt-remote-local-screens",a,31536E3)}function jg(){return ge("yt-remote-local-screens")||[]}function kg(){return ge("yt-remote-online-screens")||[]}function lg(a){de("yt-remote-online-dial-devices",a,30)}function mg(){return ge("yt-remote-online-dial-devices")||[]}
function ng(a,b){a?de("yt-remote-session-video-id",a):he("yt-remote-session-video-id");b?de("yt-remote-session-list-id",b):he("yt-remote-session-list-id")}function og(a){a||(he("yt-remote-session-screen-id"),he("yt-remote-session-video-id"),he("yt-remote-session-list-id"));bg();a=cg();Ia(a,dg());gg(a)}var hg="";function pg(){var a=Xf(kg()),b=Tf(mg()),b=Aa(b,function(b){return!ag(a,b.id)});return Rf(Ka(a,b))};function qg(a){return rg(a||arguments.callee.caller,[])}
function rg(a,b){var c=[];if(B(b,a))c.push("[...circular reference...]");else if(a&&50>b.length){c.push(sg(a)+"(");for(var d=a.arguments,e=0;e<d.length;e++){0<e&&c.push(", ");var f;f=d[e];switch(typeof f){case "object":f=f?"object":"null";break;case "string":break;case "number":f=String(f);break;case "boolean":f=f?"true":"false";break;case "function":f=(f=sg(f))?f:"[fn]";break;default:f=typeof f}40<f.length&&(f=f.substr(0,40)+"...");c.push(f)}b.push(a);c.push(")\n");try{c.push(rg(a.caller,b))}catch(h){c.push("[exception trying to get caller]\n")}}else a?
c.push("[...long stack...]"):c.push("[end]");return c.join("")}function sg(a){if(tg[a])return tg[a];a=String(a);if(!tg[a]){var b=/function ([^\(]+)/.exec(a);tg[a]=b?b[1]:"[Anonymous]"}return tg[a]}var tg={};function ug(a,b,c,d,e){this.k="number"==typeof e?e:vg++;this.i=d||u();this.j=a;this.p=b;this.h=c;delete this.g;delete this.b}ug.prototype.k=0;ug.prototype.g=null;ug.prototype.b=null;var vg=0;ug.prototype.getMessage=function(){return this.p};function W(a){this.g=a}W.prototype.h=null;W.prototype.b=null;function wg(a,b){this.name=a;this.value=b}wg.prototype.toString=function(){return this.name};var xg=new wg("SHOUT",1200),yg=new wg("SEVERE",1E3),zg=new wg("WARNING",900),Ag=new wg("INFO",800);g=W.prototype;g.pd=function(){};g.rd=function(){return!1};g.getChildren=function(){this.b||(this.b={});return this.b};g.log=function(){};
g.qd=function(a,b,c){var d=new ug(a,String(b),this.g);if(c){d.g=c;var e;var f=arguments.callee.caller;try{var h;var k=n("window.location.href");if(s(c))h={message:c,name:"Unknown error",lineNumber:"Not available",fileName:k,stack:"Not available"};else{var l,p,I=!1;try{l=c.lineNumber||c.ve||"Not available"}catch(U){l="Not available",I=!0}try{p=c.fileName||c.filename||c.sourceURL||m.$googDebugFname||k}catch(w){p="Not available",I=!0}h=!I&&c.lineNumber&&c.fileName&&c.stack&&c.message&&c.name?c:{message:c.message||
"Not available",name:c.name||"UnknownError",lineNumber:l,fileName:p,stack:c.stack||"Not available"}}e="Message: "+pa(h.message)+'\nUrl: <a href="view-source:'+h.fileName+'" target="_new">'+h.fileName+"</a>\nLine: "+h.lineNumber+"\n\nBrowser stack:\n"+pa(h.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+pa(qg(f)+"-> ")}catch($){e="Exception trying to expose exception! You win, we lose. "+$}d.b=e}return d};g.info=function(){};var Bg={},Cg=null;function Dg(){Cg||(Cg=new W(""),Bg[""]=Cg)}
function Eg(a){Dg();var b;if(!(b=Bg[a])){b=new W(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=Eg(a.substr(0,c));c.getChildren()[d]=b;b.h=c;Bg[a]=b}return b};function Fg(){this.b=u()}var Gg=new Fg;Fg.prototype.set=function(a){this.b=a};Fg.prototype.get=function(){return this.b};function Hg(a){this.h=a||"";this.i=Gg}Hg.prototype.g=!0;Hg.prototype.b=!1;function Ig(a){return 10>a?"0"+a:String(a)}function Jg(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(;0<e--;)d=" "+d;return d}function Kg(a){Hg.call(this,a)}x(Kg,Hg);
function Lg(a,b){var c=[];c.push(a.h," ");if(a.g){var d=new Date(b.i);c.push("[",Ig(d.getFullYear()-2E3)+Ig(d.getMonth()+1)+Ig(d.getDate())+" "+Ig(d.getHours())+":"+Ig(d.getMinutes())+":"+Ig(d.getSeconds())+"."+Ig(Math.floor(d.getMilliseconds()/10)),"] ")}c.push("[",Jg(b,a.i.get()),"s] ");c.push("[",b.h,"] ");c.push(b.getMessage(),"\n");a.b&&b.g&&c.push(b.b,"\n");return c.join("")};function Mg(a,b){this.type=a;this.currentTarget=this.target=b}g=Mg.prototype;g.dispose=function(){};g.Ba=!1;g.pe=!1;g.zc=!0;g.preventDefault=function(){this.pe=!0;this.zc=!1};function Ng(a){Ng[" "](a);return a}Ng[" "]=ba;var Og=!D||Eb(9),Pg=D&&!G("9");!F||G("528");E&&G("1.9b")||D&&G("8")||rb&&G("9.5")||F&&G("528");E&&!G("8")||D&&G("9");function Qg(a,b){a&&this.init(a,b)}x(Qg,Mg);g=Qg.prototype;g.target=null;g.relatedTarget=null;g.Yd=0;g.Zd=0;g.clientX=0;g.clientY=0;g.$d=0;g.ae=0;g.Wd=0;g.keyCode=0;g.charCode=0;g.ctrlKey=!1;g.altKey=!1;g.shiftKey=!1;g.Xd=!1;g.be=!1;g.gb=null;
g.init=function(a,b){var c=this.type=a.type;Mg.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(E){var e;t:{try{Ng(d.nodeName);e=!0;break t}catch(f){}e=!1}e||(d=null)}}else"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;this.Yd=F||void 0!==a.offsetX?a.offsetX:a.layerX;this.Zd=F||void 0!==a.offsetY?a.offsetY:a.layerY;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:a.pageY;
this.$d=a.screenX||0;this.ae=a.screenY||0;this.Wd=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.Xd=a.metaKey;this.be=lb?a.metaKey:a.ctrlKey;this.gb=a;a.defaultPrevented&&this.preventDefault();delete this.Ba};
g.preventDefault=function(){Qg.D.preventDefault.call(this);var a=this.gb;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Pg)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};g.Gd=function(){return this.gb};var Rg="closure_listenable_"+(1E6*Math.random()|0);function Sg(a){try{return!(!a||!a[Rg])}catch(b){return!1}}var Tg=0;function Ug(a,b,c,d,e){this.za=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Gb=e;this.key=++Tg;this.removed=this.Bb=!1}function Vg(a){a.removed=!0;a.za=null;a.proxy=null;a.src=null;a.Gb=null};function Wg(a){this.src=a;this.b={};this.g=0}Wg.prototype.add=function(a,b,c,d,e){var f=this.b[a];f||(f=this.b[a]=[],this.g++);var h=Xg(f,b,d,e);-1<h?(a=f[h],c||(a.Bb=!1)):(a=new Ug(b,this.src,a,!!d,e),a.Bb=c,f.push(a));return a};Wg.prototype.remove=function(a,b,c,d){if(!(a in this.b))return!1;var e=this.b[a];b=Xg(e,b,c,d);return-1<b?(Vg(e[b]),y.splice.call(e,b,1),0==e.length&&(delete this.b[a],this.g--),!0):!1};
function Yg(a,b){var c=b.type;if(!(c in a.b))return!1;var d=Ia(a.b[c],b);d&&(Vg(b),0==a.b[c].length&&(delete a.b[c],a.g--));return d}Wg.prototype.removeAll=function(a){var b=0,c;for(c in this.b)if(!a||c==a){for(var d=this.b[c],e=0;e<d.length;e++)++b,Vg(d[e]);delete this.b[c];this.g--}return b};function Zg(a,b,c,d,e){a=a.b[b];b=-1;a&&(b=Xg(a,c,d,e));return-1<b?a[b]:null}function Xg(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.removed&&f.za==b&&f.capture==!!c&&f.Gb==d)return e}return-1};var $g={},ah={},bh={};function ch(a,b,c,d,e){if(r(b)){for(var f=0;f<b.length;f++)ch(a,b[f],c,d,e);return null}c=dh(c);if(Sg(a))a=a.lb(b,c,d,e);else{f=c;if(!b)throw Error("Invalid event type");c=!!d;var h=ia(a),k=ah[h];k||(ah[h]=k=new Wg(a));d=k.add(b,f,!1,d,e);d.proxy||(e=eh(),d.proxy=e,e.src=a,e.za=d,a.addEventListener?a.addEventListener(b,e,c):a.attachEvent(b in bh?bh[b]:bh[b]="on"+b,e),$g[d.key]=d);a=d}return a}
function eh(){var a=fh,b=Og?function(c){return a.call(b.src,b.za,c)}:function(c){c=a.call(b.src,b.za,c);if(!c)return c};return b}function gh(a,b,c,d,e){if(r(b))for(var f=0;f<b.length;f++)gh(a,b[f],c,d,e);else c=dh(c),Sg(a)?a.Zb(b,c,d,e):a&&(d=!!d,(a=hh(a))&&(b=Zg(a,b,c,d,e))&&ih(b))}
function ih(a){if(fa(a)||!a||a.removed)return!1;var b=a.src;if(Sg(b))return Yg(b.ma,a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent&&b.detachEvent(c in bh?bh[c]:bh[c]="on"+c,d);(c=hh(b))?(Yg(c,a),0==c.g&&(c.src=null,delete ah[ia(b)])):Vg(a);delete $g[a.key];return!0}function jh(a,b,c,d){var e=1;if(a=hh(a))if(b=a.b[b])for(b=La(b),a=0;a<b.length;a++){var f=b[a];f&&(f.capture==c&&!f.removed)&&(e&=!1!==kh(f,d))}return Boolean(e)}
function kh(a,b){var c=a.za,d=a.Gb||a.src;a.Bb&&ih(a);return c.call(d,b)}
function fh(a,b){if(a.removed)return!0;if(!Og){var c=b||n("window.event"),d=new Qg(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){t:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break t}catch(h){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);for(var f=a.type,k=c.length-1;!d.Ba&&0<=k;k--)d.currentTarget=c[k],e&=jh(c[k],f,!0,d);for(k=0;!d.Ba&&k<c.length;k++)d.currentTarget=c[k],e&=jh(c[k],f,!1,d)}return e}return kh(a,new Qg(b,this))}
function hh(a){return a[ja]?ah[ia(a)]||null:null}var lh="__closure_events_fn_"+(1E9*Math.random()>>>0);function dh(a){return ga(a)?a:a[lh]||(a[lh]=function(b){return a.handleEvent(b)})};function mh(){this.ma=new Wg(this);this.ce=this}x(mh,xc);mh.prototype[Rg]=!0;g=mh.prototype;g.bc=null;g.addEventListener=function(a,b,c,d){ch(this,a,b,c,d)};g.removeEventListener=function(a,b,c,d){gh(this,a,b,c,d)};
function X(a,b){var c,d=a.bc;if(d){c=[];for(var e=1;d;d=d.bc)c.push(d),++e}var d=a.ce,e=b,f=e.type||e;if(s(e))e=new Mg(e,d);else if(e instanceof Mg)e.target=e.target||d;else{var h=e,e=new Mg(f,d);gb(e,h)}var h=!0,k;if(c)for(var l=c.length-1;!e.Ba&&0<=l;l--)k=e.currentTarget=c[l],h=nh(k,f,!0,e)&&h;e.Ba||(k=e.currentTarget=d,h=nh(k,f,!0,e)&&h,e.Ba||(h=nh(k,f,!1,e)&&h));if(c)for(l=0;!e.Ba&&l<c.length;l++)k=e.currentTarget=c[l],h=nh(k,f,!1,e)&&h}
g.u=function(){mh.D.u.call(this);this.ma&&this.ma.removeAll(void 0);this.bc=null};g.lb=function(a,b,c,d){return this.ma.add(a,b,!1,c,d)};g.Zb=function(a,b,c,d){return this.ma.remove(a,b,c,d)};function nh(a,b,c,d){b=a.ma.b[b];if(!b)return!0;b=La(b);for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.removed&&h.capture==c){var k=h.za,l=h.Gb||h.src;h.Bb&&Yg(a.ma,h);e=!1!==k.call(l,d)&&e}}return e&&!1!=d.zc};function oh(a,b){this.g=new Pd(a);this.b=b?Nd:Md}oh.prototype.stringify=function(a){return Od(this.g,a)};oh.prototype.parse=function(a){return this.b(a)};function ph(){};function qh(a,b){mh.call(this);this.b=a||1;this.g=b||m;this.h=t(this.fd,this);this.i=u()}x(qh,mh);g=qh.prototype;g.ja=!1;g.Q=null;function rh(a,b){a.b=b;a.Q&&a.ja?(a.stop(),a.start()):a.Q&&a.stop()}g.fd=function(){if(this.ja){var a=u()-this.i;0<a&&a<0.8*this.b?this.Q=this.g.setTimeout(this.h,this.b-a):(this.Q&&(this.g.clearTimeout(this.Q),this.Q=null),X(this,"tick"),this.ja&&(this.Q=this.g.setTimeout(this.h,this.b),this.i=u()))}};
g.start=function(){this.ja=!0;this.Q||(this.Q=this.g.setTimeout(this.h,this.b),this.i=u())};g.stop=function(){this.ja=!1;this.Q&&(this.g.clearTimeout(this.Q),this.Q=null)};g.u=function(){qh.D.u.call(this);this.stop();delete this.g};function sh(a,b,c){if(ga(a))c&&(a=t(a,c));else if(a&&"function"==typeof a.handleEvent)a=t(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:m.setTimeout(a,b||0)};function th(a,b,c){this.i=a;this.h=b;this.g=c;this.b=t(this.ed,this)}x(th,xc);g=th.prototype;g.Hb=!1;g.Ja=null;g.stop=function(){this.Ja&&(m.clearTimeout(this.Ja),this.Ja=null,this.Hb=!1)};g.u=function(){th.D.u.call(this);this.stop()};g.ed=function(){this.Ja=null;this.Hb&&(this.Hb=!1,uh(this))};function uh(a){a.Ja=sh(a.b,a.h);a.i.call(a.g)};function vh(a){this.g=a;this.b={}}x(vh,xc);var wh=[];g=vh.prototype;g.lb=function(a,b,c,d,e){r(b)||(wh[0]=b,b=wh);for(var f=0;f<b.length;f++){var h=ch(a,b[f],c||this,d||!1,e||this.g||this);if(!h)break;this.b[h.key]=h}return this};g.Zb=function(a,b,c,d,e){if(r(b))for(var f=0;f<b.length;f++)this.Zb(a,b[f],c,d,e);else e=e||this.g||this,c=dh(c||this),d=!!d,b=Sg(a)?Zg(a.ma,b,c,d,e):a?(a=hh(a))?Zg(a,b,c,d,e):null:null,b&&(ih(b),delete this.b[b.key]);return this};
g.removeAll=function(){Za(this.b,ih);this.b={}};g.u=function(){vh.D.u.call(this);this.removeAll()};g.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function xh(){}xh.prototype.b=null;var yh;function zh(){}x(zh,xh);function Ah(a){return(a=Bh(a))?new ActiveXObject(a):new XMLHttpRequest}function Ch(a){var b={};Bh(a)&&(b[0]=!0,b[1]=!0);return b}
function Bh(a){if(!a.g&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.g=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.g}yh=new zh;function Dh(a,b,c,d,e){this.g=a;this.b=b;this.j=c;this.h=d;this.i=e||1;this.o=45E3;this.k=new vh(this);this.p=new qh;rh(this.p,250)}g=Dh.prototype;g.pa=null;g.U=!1;g.Ma=null;g.Yb=null;g.Sa=null;g.Ga=null;g.ga=null;g.J=null;g.Ea=null;g.C=null;g.Xa=0;g.V=null;g.Fa=null;g.ra=null;g.Ra=-1;g.hc=!0;g.ua=!1;g.Ob=0;g.nb=null;function Eh(a,b){switch(a){case 0:return"Non-200 return code ("+b+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}}
var Fh={},Gh={};g=Dh.prototype;g.setTimeout=function(a){this.o=a};function Hh(a,b,c){a.Ga=1;a.ga=Cf(b.q());a.Ea=c;a.w=!0;Ih(a,null)}function Jh(a,b,c,d,e){a.Ga=1;a.ga=Cf(b.q());a.Ea=null;a.w=c;e&&(a.hc=!1);Ih(a,d)}
function Ih(a,b){a.Sa=u();Kh(a);a.J=a.ga.q();Af(a.J,"t",a.i);a.Xa=0;a.C=a.g.Qb(a.g.qb()?b:null);0<a.Ob&&(a.nb=new th(t(a.ic,a,a.C),a.Ob));a.k.lb(a.C,"readystatechange",a.ad);var c=a.pa?eb(a.pa):{};a.Ea?(a.Fa="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.C.send(a.J,a.Fa,a.Ea,c)):(a.Fa="GET",a.hc&&!F&&(c.Connection="close"),a.C.send(a.J,a.Fa,null,c));a.g.T(1);var d=a.Ea;if(d)for(var c="",d=d.split("&"),e=0;e<d.length;e++){var f=d[e].split("=");if(1<f.length)var h=f[0],f=f[1],k=h.split("_"),
c=2<=k.length&&"type"==k[1]?c+(h+"="+f+"&"):c+(h+"=redacted&")}else c=null;a.b.info("XMLHTTP REQ ("+a.h+") [attempt "+a.i+"]: "+a.Fa+"\n"+a.J+"\n"+c)}g.ad=function(a){a=a.target;var b=this.nb;b&&3==Lh(a)?(this.b.info("Throttling readystatechange."),b.Ja?b.Hb=!0:uh(b)):this.ic(a)};
g.ic=function(a){try{if(a==this.C)t:{var b=Lh(this.C),c=this.C.i,d=Mh(this.C);if(D&&!Eb(10)||F&&!G("420+")){if(4>b)break t}else if(3>b||3==b&&!rb&&!Nh(this.C))break t;this.ua||(4!=b||7==c)||(8==c||0>=d?this.g.T(3):this.g.T(2));Oh(this);var e=Mh(this.C);this.Ra=e;var f=Nh(this.C);f||this.b.info("No response text for uri "+this.J+" status "+e);this.U=200==e;this.b.info("XMLHTTP RESP ("+this.h+") [ attempt "+this.i+"]: "+this.Fa+"\n"+this.J+"\n"+b+" "+e);this.U?(4==b&&Ph(this),this.w?(Qh(this,b,f),rb&&
(this.U&&3==b)&&(this.k.lb(this.p,"tick",this.$c),this.p.start())):(Rh(this.b,this.h,f,null),Sh(this,f)),this.U&&!this.ua&&(4==b?this.g.ob(this):(this.U=!1,Kh(this)))):(this.ra=400==e&&0<f.indexOf("Unknown SID")?3:0,Y(),Ph(this),Th(this))}}catch(h){this.b.info("Failed call to OnXmlHttpReadyStateChanged_"),this.C&&Nh(this.C)&&Nh(this.C)}finally{}};
function Qh(a,b,c){for(var d=!0;!a.ua&&a.Xa<c.length;){var e=Uh(a,c);if(e==Gh){4==b&&(a.ra=4,Y(),d=!1);Rh(a.b,a.h,null,"[Incomplete Response]");break}else if(e==Fh){a.ra=4;Y();Rh(a.b,a.h,c,"[Invalid Chunk]");d=!1;break}else Rh(a.b,a.h,e,null),Sh(a,e)}4==b&&0==c.length&&(a.ra=1,Y(),d=!1);a.U=a.U&&d;d||(Rh(a.b,a.h,c,"[Invalid Chunked Response]"),Ph(a),Th(a))}g.$c=function(){var a=Lh(this.C),b=Nh(this.C);this.Xa<b.length&&(Oh(this),Qh(this,a,b),this.U&&4!=a&&Kh(this))};
function Uh(a,b){var c=a.Xa,d=b.indexOf("\n",c);if(-1==d)return Gh;c=Number(b.substring(c,d));if(isNaN(c))return Fh;d+=1;if(d+c>b.length)return Gh;var e=b.substr(d,c);a.Xa=d+c;return e}
function Vh(a,b){a.Sa=u();Kh(a);var c=b?window.location.hostname:"";a.J=a.ga.q();V(a.J,"DOMAIN",c);V(a.J,"t",a.i);try{a.V=new ActiveXObject("htmlfile")}catch(d){Ph(a);a.ra=7;Y();Th(a);return}var e="<html><body>";b&&(e+='<script>document.domain="'+c+'"\x3c/script>');e+="</body></html>";a.V.open();a.V.write(e);a.V.close();a.V.parentWindow.m=t(a.bd,a);a.V.parentWindow.d=t(a.nc,a,!0);a.V.parentWindow.rpcClose=t(a.nc,a,!1);c=a.V.createElement("div");a.V.parentWindow.document.body.appendChild(c);c.innerHTML=
'<iframe src="'+a.J+'"></iframe>';a.b.info("TRIDENT REQ ("+a.h+") [ attempt "+a.i+"]: GET\n"+a.J);a.g.T(1)}g.bd=function(a){Wh(t(this.ue,this,a),0)};g.ue=function(a){if(!this.ua){var b=this.b;b.info("TRIDENT TEXT ("+this.h+"): "+Xh(b,a));Oh(this);Sh(this,a);Kh(this)}};g.nc=function(a){Wh(t(this.te,this,a),0)};g.te=function(a){this.ua||(this.b.info("TRIDENT TEXT ("+this.h+"): "+a?"success":"failure"),Ph(this),this.U=a,this.g.ob(this),this.g.T(4))};function Yh(a){a.ua=!0;Ph(a)}
function Kh(a){a.Yb=u()+a.o;Zh(a,a.o)}function Zh(a,b){if(null!=a.Ma)throw Error("WatchDog timer not null");a.Ma=Wh(t(a.oe,a),b)}function Oh(a){a.Ma&&(m.clearTimeout(a.Ma),a.Ma=null)}g.oe=function(){this.Ma=null;var a=u();0<=a-this.Yb?(this.b.info("TIMEOUT: "+this.J),2!=this.Ga&&this.g.T(3),Ph(this),this.ra=2,Y(),Th(this)):Zh(this,this.Yb-a)};function Th(a){a.g.Dc()||a.ua||a.g.ob(a)}
function Ph(a){Oh(a);zc(a.nb);a.nb=null;a.p.stop();a.k.removeAll();if(a.C){var b=a.C;a.C=null;$h(b);b.dispose()}a.V&&(a.V=null)}function Sh(a,b){try{a.g.Ec(a,b),a.g.T(4)}catch(c){}};function ai(){}function Rh(a,b,c,d){a.info("XMLHTTP TEXT ("+b+"): "+Xh(a,c)+(d?" "+d:""))}function bi(a,b){a.info(b)}ai.prototype.info=function(){};function Xh(a,b){if(!b||"y2f%"==b)return b;try{var c=Nd(b);if(c)for(var d=0;d<c.length;d++)if(r(c[d])){var e=c[d];if(!(2>e.length)){var f=e[1];if(r(f)&&!(1>f.length)){var h=f[0];if("noop"!=h&&"stop"!=h)for(var k=1;k<f.length;k++)f[k]=""}}}return T(c)}catch(l){return a.info("Exception parsing expected JS array - probably was not JS"),b}};function ci(a,b,c,d,e){bi(new ai,"TestLoadImageWithRetries: "+e);if(0==d)c(!1);else{var f=e||0;d--;di(a,b,function(e){e?c(!0):m.setTimeout(function(){ci(a,b,c,d,f)},f)})}}
function di(a,b,c){var d=new ai;d.info("TestLoadImage: loading "+a);var e=new Image;e.onload=function(){try{d.info("TestLoadImage: loaded"),ei(e),c(!0)}catch(a){}};e.onerror=function(){try{d.info("TestLoadImage: error"),ei(e),c(!1)}catch(a){}};e.onabort=function(){try{d.info("TestLoadImage: abort"),ei(e),c(!1)}catch(a){}};e.ontimeout=function(){try{d.info("TestLoadImage: timeout"),ei(e),c(!1)}catch(a){}};m.setTimeout(function(){if(e.ontimeout)e.ontimeout()},b);e.src=a}
function ei(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};function fi(a,b){this.b=a;this.g=b;this.h=new oh(null,!0)}g=fi.prototype;g.Rb=null;g.K=null;g.yb=!1;g.sc=null;g.xb=null;g.Vb=null;g.Wb=null;g.L=null;g.wa=-1;g.Ya=null;g.$a=null;g.connect=function(a){this.Wb=a;a=gi(this.b,this.Wb);Y();this.sc=u();var b=this.b.w;null!=b?(this.Ya=b[0],(this.$a=b[1])?(this.L=1,hi(this)):(this.L=2,ii(this))):(Af(a,"MODE","init"),this.K=new Dh(this,this.g,void 0,void 0,void 0),this.K.pa=this.Rb,Jh(this.K,a,!1,null,!0),this.L=0)};
function hi(a){var b=ji(a.b,a.$a,"/mail/images/cleardot.gif");Cf(b);ci(b.toString(),5E3,t(a.Hd,a),3,2E3);a.T(1)}g.Hd=function(a){if(a)this.L=2,ii(this);else{Y();var b=this.b;b.b.info("Test Connection Blocked");b.ba=b.na.wa;ki(b,9)}a&&this.T(2)};
function ii(a){a.g.info("TestConnection: starting stage 2");var b=a.b.va;if(null!=b)a.g.info("TestConnection: skipping stage 2, precomputed result is "+b?"Buffered":"Unbuffered"),Y(),b?(Y(),li(a.b,a,!1)):(Y(),li(a.b,a,!0));else if(a.K=new Dh(a,a.g,void 0,void 0,void 0),a.K.pa=a.Rb,b=mi(a.b,a.Ya,a.Wb),Y(),!D||Eb(10))Af(b,"TYPE","xmlhttp"),Jh(a.K,b,!1,a.Ya,!1);else{Af(b,"TYPE","html");var c=a.K;a=Boolean(a.Ya);c.Ga=3;c.ga=Cf(b.q());Vh(c,a)}}g.Qb=function(a){return this.b.Qb(a)};g.Dc=function(){return!1};
g.Ec=function(a,b){this.wa=a.Ra;if(0==this.L)if(this.g.info("TestConnection: Got data for stage 1"),b){try{var c=this.h.parse(b)}catch(d){ni(this.b,this);return}this.Ya=c[0];this.$a=c[1]}else this.g.info("TestConnection: Null responseText"),ni(this.b,this);else if(2==this.L)if(this.yb)Y(),this.Vb=u();else if("11111"==b){if(Y(),this.yb=!0,this.xb=u(),c=this.xb-this.sc,!D||Eb(10)||500>c)this.wa=200,Yh(this.K),this.g.info("Test connection succeeded; using streaming connection"),Y(),li(this.b,this,!0)}else Y(),
this.xb=this.Vb=u(),this.yb=!1};
g.ob=function(){this.wa=this.K.Ra;if(!this.K.U)this.g.info("TestConnection: request failed, in state "+this.L),0==this.L?Y():2==this.L&&Y(),ni(this.b,this);else if(0==this.L)this.g.info("TestConnection: request complete for initial check"),this.$a?(this.L=1,hi(this)):(this.L=2,ii(this));else if(2==this.L){this.g.info("TestConnection: request complete for stage 2");var a=!1;(a=!D||Eb(10)?this.yb:200>this.Vb-this.xb?!1:!0)?(this.g.info("Test connection succeeded; using streaming connection"),Y(),li(this.b,
this,!0)):(this.g.info("Test connection failed; not using streaming"),Y(),li(this.b,this,!1))}};g.qb=function(){return this.b.qb()};g.T=function(a){this.b.T(a)};function oi(a){mh.call(this);this.headers=new hf;this.j=a||null;this.g=!1;this.aa=this.b=null;this.Ta=this.H="";this.i=0;this.k="";this.h=this.Da=this.w=this.qa=!1;this.o=0;this.P=null;this.kb="";this.$=this.gc=!1}x(oi,mh);var pi=/^https?$/i,qi=["POST","PUT"];g=oi.prototype;
g.send=function(a,b,c,d){if(this.b)throw Error("[goog.net.XhrIo] Object is active with another request="+this.H+"; newUri="+a);b=b?b.toUpperCase():"GET";this.H=a;this.k="";this.i=0;this.Ta=b;this.qa=!1;this.g=!0;this.b=this.j?Ah(this.j):Ah(yh);this.aa=this.j?this.j.b||(this.j.b=Ch(this.j)):yh.b||(yh.b=Ch(yh));this.b.onreadystatechange=t(this.jc,this);try{ph(ri(this,"Opening Xhr")),this.Da=!0,this.b.open(b,a,!0),this.Da=!1}catch(e){ph(ri(this,"Error opening Xhr: "+e.message));si(this,e);return}a=c||
"";var f=this.headers.q();d&&mf(d,function(a,b){f.set(b,a)});d=Da(f.ia(),ti);c=m.FormData&&a instanceof m.FormData;!B(qi,b)||(d||c)||f.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");mf(f,function(a,b){this.b.setRequestHeader(b,a)},this);this.kb&&(this.b.responseType=this.kb);"withCredentials"in this.b&&(this.b.withCredentials=this.gc);try{ui(this),0<this.o&&(this.$=D&&G(9)&&fa(this.b.timeout)&&q(this.b.ontimeout),ph(ri(this,"Will abort after "+this.o+"ms if incomplete, xhr2 "+
this.$)),this.$?(this.b.timeout=this.o,this.b.ontimeout=t(this.kc,this)):this.P=sh(this.kc,this.o,this)),ph(ri(this,"Sending request")),this.w=!0,this.b.send(a),this.w=!1}catch(h){ph(ri(this,"Send error: "+h.message)),si(this,h)}};function ti(a){return"content-type"==a.toLowerCase()}g.kc=function(){"undefined"!=typeof aa&&this.b&&(this.k="Timed out after "+this.o+"ms, aborting",this.i=8,ri(this,this.k),X(this,"timeout"),$h(this,8))};
function si(a,b){a.g=!1;a.b&&(a.h=!0,a.b.abort(),a.h=!1);a.k=b;a.i=5;vi(a);wi(a)}function vi(a){a.qa||(a.qa=!0,X(a,"complete"),X(a,"error"))}function $h(a,b){a.b&&a.g&&(ri(a,"Aborting"),a.g=!1,a.h=!0,a.b.abort(),a.h=!1,a.i=b||7,X(a,"complete"),X(a,"abort"),wi(a))}g.u=function(){this.b&&(this.g&&(this.g=!1,this.h=!0,this.b.abort(),this.h=!1),wi(this,!0));oi.D.u.call(this)};g.jc=function(){this.p||(this.Da||this.w||this.h?xi(this):this.Od())};g.Od=function(){xi(this)};
function xi(a){if(a.g&&"undefined"!=typeof aa)if(a.aa[1]&&4==Lh(a)&&2==Mh(a))ri(a,"Local request error detected and ignored");else if(a.w&&4==Lh(a))sh(a.jc,0,a);else if(X(a,"readystatechange"),4==Lh(a)){ri(a,"Request complete");a.g=!1;try{var b=Mh(a),c,d;t:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:d=!0;break t;default:d=!1}if(!(c=d)){var e;if(e=0===b){var f=Gc(String(a.H))[1]||null;if(!f&&self.location)var h=self.location.protocol,f=h.substr(0,h.length-1);e=!pi.test(f?
f.toLowerCase():"")}c=e}if(c)X(a,"complete"),X(a,"success");else{a.i=6;var k;try{k=2<Lh(a)?a.b.statusText:""}catch(l){k=""}a.k=k+" ["+Mh(a)+"]";vi(a)}}finally{wi(a)}}}function wi(a,b){if(a.b){ui(a);var c=a.b,d=a.aa[0]?ba:null;a.b=null;a.aa=null;b||X(a,"ready");try{c.onreadystatechange=d}catch(e){}}}function ui(a){a.b&&a.$&&(a.b.ontimeout=null);fa(a.P)&&(m.clearTimeout(a.P),a.P=null)}function Lh(a){return a.b?a.b.readyState:0}function Mh(a){try{return 2<Lh(a)?a.b.status:-1}catch(b){return-1}}
function Nh(a){try{return a.b?a.b.responseText:""}catch(b){return""}}function ri(a,b){return b+" ["+a.Ta+" "+a.H+" "+Mh(a)+"]"};function yi(a,b,c){this.o=a||null;this.g=1;this.h=[];this.i=[];this.b=new ai;this.p=new oh(null,!0);this.w=b||null;this.va=null!=c?c:null}function zi(a,b){this.b=a;this.map=b;this.ea=null}g=yi.prototype;g.cb=null;g.I=null;g.B=null;g.Pb=null;g.mb=null;g.lc=null;g.tb=null;g.Va=0;g.ld=0;g.G=null;g.ha=null;g.da=null;g.xa=null;g.na=null;g.jb=null;g.Ca=-1;g.tc=-1;g.ba=-1;g.Wa=0;g.Ia=0;g.ta=8;var Ai=new mh;function Bi(a){Mg.call(this,"statevent",a)}x(Bi,Mg);function Ci(a){Mg.call(this,"timingevent",a)}
x(Ci,Mg);function Di(a){Mg.call(this,"serverreachability",a)}x(Di,Mg);g=yi.prototype;g.connect=function(a,b,c,d,e){this.b.info("connect()");Y();this.Pb=b;this.cb=c||{};d&&q(e)&&(this.cb.OSID=d,this.cb.OAID=e);this.b.info("connectTest_()");this.na=new fi(this,this.b);this.na.Rb=null;this.na.h=this.p;this.na.connect(a)};
function Ei(a){if(a.na){var b=a.na;b.K&&(Yh(b.K),b.K=null);b.wa=-1;a.na=null}a.B&&(Yh(a.B),a.B=null);a.da&&(m.clearTimeout(a.da),a.da=null);Fi(a);a.I&&(Yh(a.I),a.I=null);a.ha&&(m.clearTimeout(a.ha),a.ha=null)}g.Dc=function(){return 0==this.g};function Gi(a){a.I||a.ha||(a.ha=Wh(t(a.vc,a),0),a.Wa=0)}
g.vc=function(a){this.ha=null;this.b.info("startForwardChannel_");if(1==this.g){if(!a){this.b.info("open_()");this.Va=Math.floor(1E5*Math.random());a=this.Va++;var b=new Dh(this,this.b,"",a,void 0);b.pa=null;var c=Hi(this),d=this.mb.q();V(d,"RID",a);this.o&&V(d,"CVER",this.o);Ii(this,d);Hh(b,d,c);this.I=b;this.g=2}}else 3==this.g&&(a?Ji(this,a):0==this.h.length?this.b.info("startForwardChannel_ returned: nothing to send"):this.I||(Ji(this),this.b.info("startForwardChannel_ finished, sent request")))};
function Ji(a,b){var c,d;b?6<a.ta?(a.h=a.i.concat(a.h),a.i.length=0,c=a.Va-1,d=Hi(a)):(c=b.h,d=b.Ea):(c=a.Va++,d=Hi(a));var e=a.mb.q();V(e,"SID",a.j);V(e,"RID",c);V(e,"AID",a.Ca);Ii(a,e);c=new Dh(a,a.b,a.j,c,a.Wa+1);c.pa=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.I=c;Hh(c,e,d)}function Ii(a,b){if(a.G){var c=a.G.Mc(a);c&&mf(c,function(a,c){V(b,c,a)})}}
function Hi(a){var b=Math.min(a.h.length,1E3),c=["count="+b],d;6<a.ta&&0<b?(d=a.h[0].b,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var f=a.h[e].b,h=a.h[e].map,f=6>=a.ta?e:f-d;try{mf(h,function(a,b){c.push("req"+f+"_"+b+"="+encodeURIComponent(a))})}catch(k){c.push("req"+f+"_type="+encodeURIComponent("_badmap"))}}a.i=a.i.concat(a.h.splice(0,b));return c.join("&")}function Ki(a){a.B||a.da||(a.k=1,a.da=Wh(t(a.yc,a),0),a.Ia=0)}
function Li(a){if(a.B||a.da||3<=a.Ia)return!1;a.b.info("Going to retry GET");a.k++;a.da=Wh(t(a.yc,a),Mi(a,a.Ia));a.Ia++;return!0}
g.yc=function(){this.da=null;this.b.info("Creating new HttpRequest");this.B=new Dh(this,this.b,this.j,"rpc",this.k);this.B.pa=null;this.B.Ob=0;var a=this.lc.q();V(a,"RID","rpc");V(a,"SID",this.j);V(a,"CI",this.jb?"0":"1");V(a,"AID",this.Ca);Ii(this,a);if(!D||Eb(10))V(a,"TYPE","xmlhttp"),Jh(this.B,a,!0,this.tb,!1);else{V(a,"TYPE","html");var b=this.B,c=Boolean(this.tb);b.Ga=3;b.ga=Cf(a.q());Vh(b,c)}this.b.info("New Request created")};
function li(a,b,c){a.b.info("Test Connection Finished");a.jb=c;a.ba=b.wa;a.b.info("connectChannel_()");a.Cd(1,0);a.mb=gi(a,a.Pb);Gi(a)}function ni(a,b){a.b.info("Test Connection Failed");a.ba=b.wa;ki(a,2)}
g.Ec=function(a,b){if(0!=this.g&&(this.B==a||this.I==a))if(this.ba=a.Ra,this.I==a&&3==this.g)if(7<this.ta){var c;try{c=this.p.parse(b)}catch(d){c=null}if(r(c)&&3==c.length){var e=c;if(0==e[0])t:if(this.b.info("Server claims our backchannel is missing."),this.da)this.b.info("But we are currently starting the request.");else{if(this.B)if(this.B.Sa+3E3<this.I.Sa)Fi(this),Yh(this.B),this.B=null;else break t;Li(this);Y()}else this.tc=e[1],c=this.tc-this.Ca,0<c&&(e=e[2],this.b.info(e+" bytes (in "+c+" arrays) are outstanding on the BackChannel"),
37500>e&&(this.jb&&0==this.Ia)&&!this.xa&&(this.xa=Wh(t(this.cd,this),6E3)))}else this.b.info("Bad POST response data returned"),ki(this,11)}else"y2f%"!=b&&(this.b.info("Bad data returned - missing/invald magic cookie"),ki(this,11));else if(this.B==a&&Fi(this),!/^[\s\xa0]*$/.test(b))for(c=this.p.parse(b),r(c),e=0;e<c.length;e++){var f=c[e];this.Ca=f[0];f=f[1];2==this.g?"c"==f[0]?(this.j=f[1],this.tb=f[2],f=f[3],null!=f?this.ta=f:this.ta=6,this.g=3,this.G&&this.G.qc(this),this.lc=mi(this,this.tb,this.Pb),
Ki(this)):"stop"==f[0]&&ki(this,7):3==this.g&&("stop"==f[0]?ki(this,7):"noop"!=f[0]&&this.G&&this.G.oc(this,f),this.Ia=0)}};g.cd=function(){null!=this.xa&&(this.xa=null,Yh(this.B),this.B=null,Li(this),Y())};function Fi(a){null!=a.xa&&(m.clearTimeout(a.xa),a.xa=null)}
g.ob=function(a){this.b.info("Request complete");var b;if(this.B==a)Fi(this),this.B=null,b=2;else if(this.I==a)this.I=null,b=1;else return;this.ba=a.Ra;if(0!=this.g)if(a.U)1==b?(u(),X(Ai,new Ci(Ai)),Gi(this),this.i.length=0):Ki(this);else{var c=a.ra;if(3==c||7==c||0==c&&0<this.ba)this.b.info("Not retrying due to error type");else{this.b.info("Maybe retrying, last error: "+Eh(c,this.ba));var d;if(d=1==b)this.I||this.ha?d=!1:1==this.g||2<=this.Wa?d=!1:(this.b.info("Going to retry POST"),this.ha=Wh(t(this.vc,
this,a),Mi(this,this.Wa)),this.Wa++,d=!0);if(d||2==b&&Li(this))return;this.b.info("Exceeded max number of retries")}this.b.info("Error: HTTP request failed");switch(c){case 1:ki(this,5);break;case 4:ki(this,10);break;case 3:ki(this,6);break;case 7:ki(this,12);break;default:ki(this,2)}}};function Mi(a,b){var c=5E3+Math.floor(1E4*Math.random());a.G||(a.b.info("Inactive channel"),c*=2);return c*b}g.Cd=function(a){if(!B(arguments,this.g))throw Error("Unexpected channel state: "+this.g);};
function ki(a,b){a.b.info("Error code "+b);if(2==b||9==b){var c=null;a.G&&(c=null);var d=t(a.Id,a);c||(c=new nf("//www.google.com/images/cleardot.gif"),Cf(c));di(c.toString(),1E4,d)}else Y();Ni(a,b)}g.Id=function(a){a?(this.b.info("Successfully pinged google.com"),Y()):(this.b.info("Failed to ping google.com"),Y(),Ni(this,8))};function Ni(a,b){a.b.info("HttpChannel: error - "+b);a.g=0;a.G&&a.G.wc(a,b);Oi(a);Ei(a)}
function Oi(a){a.g=0;a.ba=-1;if(a.G)if(0==a.i.length&&0==a.h.length)a.G.Ub(a);else{a.b.info("Number of undelivered maps, pending: "+a.i.length+", outgoing: "+a.h.length);var b=La(a.i),c=La(a.h);a.i.length=0;a.h.length=0;a.G.Ub(a,b,c)}}function gi(a,b){var c=ji(a,null,b);a.b.info("GetForwardChannelUri: "+c);return c}function mi(a,b,c){b=ji(a,a.qb()?b:null,c);a.b.info("GetBackChannelUri: "+b);return b}
function ji(a,b,c){var d=c instanceof nf?c.q():new nf(c,void 0);if(""!=d.Oa)b&&pf(d,b+"."+d.Oa),qf(d,d.fb);else var e=window.location,d=Df(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.cb&&mf(a.cb,function(a,b){V(d,b,a)});V(d,"VER",a.ta);Ii(a,d);return d}g.Qb=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new oi;a.gc=!1;return a};
function Wh(a,b){if(!ga(a))throw Error("Fn must not be null and must be a function");return m.setTimeout(function(){a()},b)}g.T=function(){X(Ai,new Di(Ai))};function Y(){X(Ai,new Bi(Ai))}g.qb=function(){return!(!D||Eb(10))};function Pi(){}g=Pi.prototype;g.qc=function(){};g.oc=function(){};g.wc=function(){};g.Ub=function(){};g.Mc=function(){return{}};function Qi(){this.w=new N;yc(this,na(zc,this.w))}x(Qi,xc);Qi.prototype.F=function(a,b,c){return this.p?0:this.w.F(a,b,c)};Qi.prototype.ka=function(a,b,c){return this.p?!1:this.w.ka(a,b,c)};Qi.prototype.la=function(a){return this.p?!1:this.w.la(a)};Qi.prototype.t=function(a,b){return this.p?!1:this.w.t.apply(this.w,arguments)};function Ri(){t(this.i,this);this.b=new Kg;this.b.g=!1;this.g=this.b.b=!1;this.h="";this.j={}}function Si(){var a=Ti;!0!=a.g&&(Dg(),a.g=!0)}Ri.prototype.i=function(a){if(!this.j[a.h]){var b=Lg(this.b,a),c=Ui;if(c)switch(a.j){case xg:Vi(c,"info",b);break;case yg:Vi(c,"error",b);break;case zg:Vi(c,"warn",b);break;default:Vi(c,"debug",b)}else window.opera?window.opera.postError(b):this.h+=b}};var Ti=null,Ui=window.console;function Vi(a,b,c){if(a[b])a[b](c);else a.log(c)};var Wi=null,Xi=null,Yi=Array(50),Zi=-1,$i=!1;function aj(a){var b=(Zi+1)%50;Zi=b;Yi[b]=a;$i||($i=49==b)}function bj(a){var b=Yi;if(b[0]){var c=Zi,d=$i?c:-1;do{var d=(d+1)%50,e=b[d];z(a,function(a){a(e)})}while(d!=c);Yi=Array(50);Zi=-1;$i=!1}}
function cj(a,b){var c=n("yt.remote.debug.logger_"),d=n("yt.remote.debug.handlers_");if(c){if(c.log(Ag,a+": "+b,void 0),d&&0!=d.length){bj(d);var e=c.getLogRecord(Ag,a+": "+b,void 0);z(d,function(a){a(e)})}}else d&&0!=d.length||aj(new ug(Ag,String(b),"yt.remote"))};function dj(a){a&&(this.id=a.id||a.name,this.name=a.name,this.app=a.app,this.type=a.type||"REMOTE_CONTROL",this.Bc=a.user||"")}g=dj.prototype;g.id="";g.name="";g.app="";g.type="REMOTE_CONTROL";g.Bc="";function ej(a){cj("DIAL",a)}function fj(a){var b=gj();a=Lg(hj,a);b.logMessage(a)}
function ij(){if(!jj){0==Ga.length&&Ma(Ga,mg());var a;"cast"in window?(a=window.cast||{},a="ActivityStatus"in a&&"Api"in a&&"IApi"in a&&"LaunchRequest"in a&&"Receiver"in a):a=!1;a&&((a=gj())?(a.removeReceiverListener("YouTube",kj),a.addReceiverListener("YouTube",kj),ej("API initialized in the other binary")):(a=new cast.Api,v("yt.remote.dialapi.api_",a),a.addReceiverListener("YouTube",kj),hj=new Kg,hj.g=!1,hj.b=!1,a.logMessage&&(n("yt.remote.debug.logger_")||(Ti||(Ti=new Ri),-1!=window.location.href.indexOf("Debug=true")&&
Si(),Si(),Ti.b.b=!0,Wi=n("yt.remote.debug.logger_")||Eg("yt.remote"),W.prototype.log=W.prototype.log,W.prototype.getLogRecord=W.prototype.qd,W.prototype.addHandler=W.prototype.pd,W.prototype.removeHandler=W.prototype.rd,v("yt.remote.debug.logger_",Wi),Xi=n("yt.remote.debug.handlers_")||[],v("yt.remote.debug.handlers_",Xi),n("yt.remote.debug.logger_")),a=n("yt.remote.debug.handlers_"),a.push(fj),bj(a)),ej("API initialized")),jj=!0)}}
function lj(a){var b=Ea(Ga,function(b){return b.id==a.id});0<=b&&(Ga[b]=Nf(a))}function kj(a){ej("Updating receivers: "+T(a));mj(a);P("yt-remote-dial-device-list-update",nj());z(nj(),function(a){oj(a.id)});z(a,function(a){a.isTabProjected&&(a=pj(a.id),ej("Detected device: "+a.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event."),P("yt-remote-dial-device-tab-projected",a))})}
function qj(a,b){ej("Updating "+a+" activity status: "+T(b));var c=pj(a);c?(b.activityId&&(c.activityId=b.activityId),c.status="running"==b.status?"RUNNING":"stopped"==b.status?"STOPPED":"error"==b.status?"ERROR":"UNKNOWN","RUNNING"!=c.status&&(c.activityId=""),lj(c),P("yt-remote-dial-device-status-update",c)):ej("Device not found")}function nj(){ij();return Tf(Ga)}
function mj(a){a=A(a,function(a){var c={id:a.id,name:a.name};if(a=pj(a.id))c.activityId=a.activityId,c.status=a.status;return c});Fa();Ma(Ga,a)}function pj(a){var b=nj();return Da(b,function(b){return b.id==a})||null}function oj(a){var b=pj(a),c=gj();c&&(b&&b.activityId)&&c.getActivityStatus(b.activityId,function(b){"error"==b.status&&(b.status="stopped");qj(a,b)})}
function rj(a,b,c,d){ij();var e=pj(a),f=gj();if(f&&e){var h=new cast.Receiver(e.id,e.name),h=new cast.LaunchRequest("YouTube",h);h.parameters="pairingCode="+b;h.description=new cast.LaunchDescription;h.description.text=document.title;c&&(h.parameters+="&v="+c,d&&(h.parameters+="&t="+Math.round(d)),h.description.url="http://i.ytimg.com/vi/"+c+"/default.jpg");"UNKNOWN"!=e.status&&(e.status="UNKNOWN",lj(e),P("yt-remote-dial-device-status-update",e));ej("Sending a DIAL launch request with params: "+h.parameters);
f.launch(h,na(qj,a))}else ej("No DIAL API or no DIAL device. Dropping DIAL launch.")}function sj(a){ij();var b=pj(a),c=gj();c&&b&&b.activityId?(ej("Stopping DIAL activity"),c.stopActivity(b.activityId,na(qj,a))):ej("Dropping DIAL activity stop")}function gj(){return n("yt.remote.dialapi.api_")}var hj=null,jj=!1,Ga=n("yt.remote.dialapi.devices_")||[];v("yt.remote.dialapi.devices_",Ga);function tj(a,b){this.action=a;this.params=b||null};function uj(a,b){qh.call(this);if(ga(a))b&&(a=t(a,b));else if(a&&ga(a.handleEvent))a=t(a.handleEvent,a);else throw Error("Invalid listener argument");this.o=a;ch(this,"tick",t(this.k,this));this.stop();rh(this,5E3+2E4*Math.random())}x(uj,qh);uj.prototype.j=0;uj.prototype.k=function(){if(500<this.b){var a=this.b;24E4>2*a&&(a*=2);rh(this,a)}this.o()};uj.prototype.start=function(){uj.D.start.call(this);this.j=u()+this.b};uj.prototype.stop=function(){this.j=0;uj.D.stop.call(this)};function vj(a,b){this.p=a;this.j=b;this.h=new N;this.g=new uj(this.dd,this);this.b=null}x(vj,Pi);g=vj.prototype;g.rb="";g.Za=0;g.wb=0;g.F=function(a,b,c){return this.h.F(a,b,c)};g.ka=function(a,b,c){return this.h.ka(a,b,c)};g.la=function(a){return this.h.la(a)};g.t=function(a,b){return this.h.t.apply(this.h,arguments)};
g.connect=function(a,b,c){if(!this.b||2!=this.b.g){this.rb="";this.g.stop();this.i=a||null;this.Za=b||0;a=this.p+"/test";b=this.p+"/bind";var d=new yi("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.b;e&&(e.G=null);d.G=this;this.b=d;e?this.b.connect(a,b,this.j,e.j,e.Ca):c?this.b.connect(a,b,this.j,c.sessionId,c.arrayId):this.b.connect(a,b,this.j)}};
function wj(a,b){a.wb=b||0;a.g.stop();if(a.b&&0!=a.b.g){var c=a.b;c.b.info("disconnect()");Ei(c);if(3==c.g){var d=c.Va++,e=c.mb.q();V(e,"SID",c.j);V(e,"RID",d);V(e,"TYPE","terminate");Ii(c,e);d=new Dh(c,c.b,c.j,d,void 0);d.Ga=2;d.ga=Cf(e.q());(new Image).src=d.ga;d.Sa=u();Kh(d)}Oi(c)}a.wb=0}
g.sendMessage=function(a,b){if(this.b&&0!=this.b.g&&(2==this.b.g||3==this.b.g||this.g.ja)){var c={_sc:a};b&&gb(c,b);T(c);var d=this.b;if(0==d.g)throw Error("Invalid operation: sending map when state is closed");1E3==d.h.length&&T(c);d.h.push(new zi(d.ld++,c));2!=d.g&&3!=d.g||Gi(d)}};g.qc=function(){var a=this.g;a.stop();rh(a,5E3+2E4*Math.random());this.i=null;this.Za=0;this.t("handlerOpened")};
g.wc=function(a,b){var c=2==b&&401==this.b.ba;4==b||c||(6==b&&(c=this.g,c.stop(),rh(c,500)),this.g.start());this.t("handlerError",b)};g.Ub=function(){this.g.ja||this.t("handlerClosed")};g.Mc=function(){var a={v:2};this.rb&&(a.gsessionid=this.rb);0!=this.Za&&(a.ui=""+this.Za);0!=this.wb&&(a.ui=""+this.wb);this.i&&gb(a,this.i);return a};g.oc=function(a,b){"S"==b[0]?this.rb=b[1]:this.h.t("handlerMessage",new tj(b[0],b[1]))};function xj(a,b){(a.j.loungeIdToken=b)||a.g.stop()}
function yj(a){return a.g.ja?a.g.j-u():NaN}g.dd=function(){this.g.stop();var a=this.b,b=0;a.B&&b++;a.I&&b++;0!=b?this.g.start():this.connect(this.i,this.Za)};function zj(){this.b=[];this.index=-1;Aj(this)}function Aj(a){a.volume=-1;a.muted=!1;a.i=null;a.g=-1;a.h=null;u()}function Bj(a){return a.b[a.index]}function Cj(a,b){var c=a.index;a.index=za(a.b,b);c!=a.index&&Aj(a)}function Dj(a,b,c){c=c||Bj(a);if(Pa(a.b,b)&&c==Bj(a))return!1;a.b=La(b);Cj(a,c);return!0}zj.prototype.add=function(a,b){return a&&!B(this.b,a)?(!b||-1<this.index&&this.index>=this.b.length-1?this.b.push(a):this.b.splice(this.index+1,0,a),!0):!1};
zj.prototype.remove=function(a){var b=Bj(this);return Ia(this.b,a)?(this.index=za(this.b,b),!0):!1};var Ej=null;"undefined"!=typeof XMLHttpRequest?Ej=function(){return new XMLHttpRequest}:"undefined"!=typeof ActiveXObject&&(Ej=function(){return new ActiveXObject("Microsoft.XMLHTTP")});function Fj(a,b,c,d,e,f,h){var k=Ej&&Ej();if("open"in k){k.onreadystatechange=function(){4==(k&&"readyState"in k?k.readyState:0)&&b&&mc(b)(k)};c=(c||"GET").toUpperCase();d=d||"";k.open(c,a,!0);f&&(k.responseType=f);h&&(k.withCredentials=!0);f="POST"==c;if(e=Gj(a,e))for(var l in e)k.setRequestHeader(l,e[l]),"content-type"==l.toLowerCase()&&(f=!1);f&&k.setRequestHeader("Content-Type","application/x-www-form-urlencoded");k.send(d);return k}}
function Gj(a,b){b=b||{};var c;if(c=K("PAGE_CL"))if(c=K("PAGE_BUILD_TIMESTAMP")){var d;d||(d=window.location.href);c=Gc(a)[1]||null;var e=we(a);c&&e?(c=d,d=Gc(a),c=Gc(c),d=d[3]==c[3]&&d[1]==c[1]&&d[4]==c[4]):d=e?we(d)==e&&(Number(Gc(d)[4]||null)||null)==(Number(Gc(a)[4]||null)||null):!0;c=d||Hj(a)}c&&(b["X-YouTube-Page-CL"]=K("PAGE_CL"),b["X-YouTube-Page-Timestamp"]=K("PAGE_BUILD_TIMESTAMP"));return b}
function Hj(a){var b=["X-YouTube-Page-CL","X-YouTube-Page-Timestamp"],c=K("CORS_HEADER_WHITELIST")||{};a=we(a);if(!a)return!0;var d=c[a];return d?Ca(b,function(a){return B(d,a)}):!1}
function Ij(a,b){var c=b.format||"JSON";b.we&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var d=b.Jc;d&&(a=xe(a,d));var e=b.xe||"";if(d=b.fa)e=ue(e),gb(e,d),e=ve(e);var f=!1,h,k=Fj(a,function(a){if(!f){f=!0;h&&oc(h);var d;t:switch(a&&"status"in a?a.status:-1){case 0:case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:d=!0;break t;default:d=!1}var e=null;if(d||400<=a.status&&500>a.status)e=Jj(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.ea||m;d?b.W&&b.W.call(k,a,e):b.onError&&b.onError.call(k,a,e);b.Ib&&b.Ib.call(k,a,e)}},b.method,e,b.headers,b.responseType,b.withCredentials);b.Td&&0<b.timeout&&(h=L(function(){f||(f=!0,k.abort(),oc(h),b.Td.call(b.ea||m,k))},b.timeout))}
function Jj(a,b){var c=null;switch(a){case "JSON":var d=b.responseText,e=b.getResponseHeader("Content-Type")||"";d&&0<=e.indexOf("json")&&(c=Nd(d));break;case "XML":if(d=(d=b.responseXML)?Kj(d):null)c={},z(d.getElementsByTagName("*"),function(a){c[a.tagName]=Lj(a)})}return c}function Kj(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}function Lj(a){var b="";z(a.childNodes,function(a){b+=a.nodeValue});return b};function Mj(){Qi.call(this);this.X=Xf(jg());this.log_("Initializing local screens: "+Lf(this.X));this.zb=[];this.Xb=null;this.g=[];this.b=[];this.Ab(nj());this.log_("Initializing DIAL devices: "+Of(this.b));var a=Xf(kg());Nj(this,a);this.log_("Initializing online screens: "+Lf(this.g));Oj(this)}x(Mj,Qi);var Pj=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,1E4,15E3,2E4];g=Mj.prototype;g.eb=NaN;g.log_=function(a){cj("RM",a)};
function Qj(a){var b=navigator.userAgent;if(0<=b.search("MSIE")&&(b=b.match(/MSIE ([\d.]+)/)[1],0>va(b,"10.0")))return a;b=Gc(document.location.href);return Ec("https",b[3],a)}function Oj(a){O("yt-remote-dial-device-list-update",a.Ab,a);O("yt-remote-dial-device-status-update",a.Vd,a);O("yt-remote-dial-device-tab-projected",function(a){this.t("connectToReceiver",a.id)},a);a.ac();nc(t(a.ac,a))}
g.ac=function(){var a=nj();0==a.length||this.Ab(a);a=Rj(this);0==a.length||(ge("yt-remote-lounge-token-expiration")?Sj(this,a):Tj(this))};g.ub=function(){var a=Rj(this),b=Aa(a,function(a){return!!$f(this.g,a)},this);Nj(this,b);this.Ab(nj());this.t("managedScreenChange",a)};function Uj(a,b){return Aa(b,function(a){return a.M?(a=Vf(this.b,a.M),!!a&&"RUNNING"==a.status):!0},a)}
g.Ab=function(a){var b=!1;z(a,function(a){var c=ag(this.X,a.id);c&&c.name!=a.name&&(this.log_("Renaming screen id "+c.id+" from "+c.name+" to "+a.name),c.name=a.name,b=!0)},this);b&&(this.log_("Saving local screens because DIAL provides different names."),Vj(this));lg(Sf(a));var c=!Pa(this.b,a,Uf);c&&this.log_("Updating DIAL devices: "+Of(this.b)+" to "+Of(a));this.b=a;Nj(this,this.g);c&&(this.log_("DIAL devices updated. Firing ONLINE_RECEIVER_CHANGE"),this.t("onlineReceiverChange"))};
g.Vd=function(a){var b=Vf(this.b,a.id);b&&(this.log_("Updating DIAL device: "+b.id+"("+b.name+") from status: "+b.status+" to status: "+a.status+" and from activityId: "+b.activityId+" to activityId: "+a.activityId),b.activityId=a.activityId,b.status=a.status,lg(Sf(this.b)));Nj(this,this.g)};
function Nj(a,b,c){b=Uj(a,b);var d=!Pa(a.g,b,Zf);if(d||c)c=Wf(b),de("yt-remote-online-screens",c,60);d&&(a.log_("Updating online screens: "+Lf(a.g)+" -> "+Lf(b)),a.g=b,a.log_("Online screens updated. Firing ONLINE_RECEIVER_CHANGE"),a.t("onlineReceiverChange"))}
function Sj(a,b){var c=[],d={};z(b,function(a){a.S&&(d[a.S]=a,c.push(a.S))});var e={method:"POST",fa:{lounge_token:c.join(",")},ea:a,W:function(a,b){var c=[];z(b.screens||[],function(a){"online"==a.status&&c.push(d[a.loungeToken])});var e=this.Xb?Wj(this,this.Xb):null;e&&!$f(c,e)&&c.push(e);Nj(this,c,!0)}};Ij(Qj("/api/lounge/pairing/get_screen_availability"),e)}
function Tj(a){var b=Rj(a),c=A(b,function(a){return a.N});0!=c.length&&(a.log_("Updating screen lounge tokens for screen ids: "+T(c)),Ij(Qj("/api/lounge/pairing/get_lounge_token_batch"),{fa:{screen_ids:c.join(",")},method:"POST",ea:a,W:function(a,c){Xj(this,c.screens||[]);this.X=Aa(this.X,function(a){return!!a.S});Vj(this);Sj(this,b)}}))}function Xj(a,b){z(Ka(a.X,a.zb),function(a){var d=Da(b,function(b){return a.N==b.screenId});d&&(a.S=d.loungeToken)})}
function Vj(a){var b=Xf(jg());Pa(a.X,b,Zf)||(a.log_("Saving local screens: "+Lf(b)+" to "+Lf(a.X)),ig(Wf(a.X)),a.log_("Local screens updated. Firing MANAGED_SCREEN_CHANGE"),a.ub())}function Yj(a,b,c){var d=Ea(b,function(a){return Yf(c,a)}),e=0>d?!0:!1;0>d?b.push(c):b[d]=c;$f(a.g,c)||a.g.push(c);return e}
g.xc=function(a,b,c){var d=!1;b>=Pj.length&&(this.log_("Pairing DIAL device "+a+" with pairing code "+c+" timed out. Firing SCREEN_PAIR."),d=!0);var e=Vf(this.b,a);if(!e)this.log_("Pairing DIAL device "+a+" with pairing code "+c+" failed: no local device found with id "+a+". Firing SCREEN_PAIR."),d=!0;else if("ERROR"==e.status||"STOPPED"==e.status)this.log_("Pairing DIAL device "+a+" with pairing code "+c+" failed: error launching YTTV app on device "+a+". Firing SCREEN_PAIR."),d=!0;d?(Zj(this),this.t("screenPair",
null)):Ij(Qj("/api/lounge/pairing/get_screen"),{method:"POST",fa:{pairing_code:c},ea:this,W:function(a,b){Zj(this);var d=new Jf(b.screen);d.name=e.name;d.M=e.id;var l=Yj(this,this.X,d);this.log_("Paired with "+(l?"a new":"an old")+" local screen:"+Kf(d));Vj(this);this.log_("Firing SCREEN_PAIR.");this.t("screenPair",d);this.log_("Pairing a DIAL device with "+c+" succeeded. Firing SCREEN_PAIR.");this.t("screenPair",d)},onError:function(){this.log_("Polling a DIAL device with pairing code: "+c);oc(this.eb);
this.eb=L(t(this.xc,this,a,b+1,c),Pj[b])}})};function ak(a,b,c,d,e){Zj(a);Vf(a.b,b)?(c||(c=Pf(),rj(b,c,d,e)),a.eb=L(t(a.xc,a,b,0,c),Pj[0])):a.log_("Cannot find DIAL device with id: "+b)}function Zj(a){oc(a.eb);a.eb=NaN}function Wj(a,b){var c=ag(Rj(a),b);a.log_("Found screen: "+Kf(c)+" with key: "+b);return c}function bk(a,b){var c=ag(a.g,b);a.log_("Found online screen: "+Kf(c)+" with key: "+b);return c}
function ck(a,b){var c=Vf(a.b,b);if(!c){var d=ag(a.X,b);d&&(c=Vf(a.b,d.M))}a.log_("Found DIAL device: "+(c?c.toString():"null")+" with key: "+b);return c}function Rj(a){return Ka(a.zb,Aa(a.X,function(a){return!$f(this.zb,a)},a))}
function dk(){var a=ek.getInstance().g,b=Qj("/api/lounge/screens");Ij(b,{method:"GET",ea:a,W:function(a,b){this.zb=A($a(b),function(a){return new Jf(a)});this.log_("Load account screens successfully.");this.ac();this.ub();this.t("accountScreenLoad")},onError:function(){this.log_("Load account screens failed.")}})};function fk(a,b){Qi.call(this);if(ee){var c=ee;ce(c,c.Ka.La(!0))}bg();Eg("goog.net.BrowserChannel");this.g=new Mj;c=dg();this.i=new vj("/api/lounge/bc",{device:"REMOTE_CONTROL",id:c,name:a,app:b});this.b=null;this.o=[];this.i.F("handlerOpened",this.kd,this);this.i.F("handlerClosed",this.gd,this);this.i.F("handlerError",this.hd,this);this.i.F("handlerMessage",this.jd,this);this.g.F("managedScreenChange",this.ub,this);this.log_("Initializing with device id = "+c+", name = "+a+", app = "+b)}x(fk,Qi);
g=fk.prototype;g.Ha=NaN;g.Sb=NaN;g.Jb=NaN;g.log_=function(a){cj("RC",a)};function gk(a,b){"connectionError"==b&&he("yt-remote-session-screen-id");a.t(b,"connectionOpened"==b);a.H=null}function hk(a){oc(a.Jb);a.Jb=L(t(function(){this.log_("Delayed update timeout. Firing PLAYLIST_CHANGE");this.t("playlistChange");this.Jb=NaN},a),2E3)}
function ik(a,b){"playerChange"==b&&isNaN(NaN)&&(a.log_("Update received from MDx Server. Firing PLAYER_CHANGE"),a.t("playerChange"));"playlistChange"==b&&isNaN(a.Jb)&&(a.log_("Update received from MDx Server. Firing PLAYLIST_CHANGE"),a.t("playlistChange"))}function jk(a,b){b?(a.log_("Changing current screen id from: "+a.j+" to "+b.N),a.j=b.N,xj(a.i,b.S)):(a.log_("Removing current screen id: "+a.j),a.j="",xj(a.i,""))}
g.connect=function(a){this.log_("Connecting to the receiver: "+T(a));var b=bk(this.g,a.key);b?kk(this,b):(a=ck(this.g,a.key))?lk(this,a):L(t(function(){this.log_("No receiver found. Firing ConnectionEventType.ERROR");gk(this,"connectionError")},this),0)};function mk(a){a=a||0;5>=a&&(a=0);return a}
function kk(a,b){a.log_("Connecting to screen: "+Kf(b));var c;(c=(c=eg())?Wj(a.g,c):null)&&!Yf(b,c)?nk(a):ok(a);a.b=null;jk(a,b);c={};if(a.h){c.videoIds=a.h.i().join(",");c.videoId=Bj(a.h);c.videoSources=a.h.g().join(",");var d=a.H?a.H.currentTime:a.h.b();c.currentTime=mk(d)}db(c)?a.log_("Connecting with empty params"):a.log_("Connecting with setPlaylist and params: "+T(c));a.h?ng(Bj(a.h),a.h.h()):ng("","");a.i.connect(db(c)?{}:{method:"setPlaylist",params:T(c)},1,ge("yt-remote-session-browser-channel"));
a.b=new zj;db(c)||(a.b.b=c.videoIds.split(","),Cj(a.b,c.videoId));pk(a)}function lk(a,b){a.log_("Connecting to DIAL device: "+(b?b.toString():"null"));qk(a);rk(a);var c=a.H?a.H.pairingCode:"";c?ak(a.g,b.id,c):a.h?ak(a.g,b.id,"",Bj(a.h),a.h.b()):ak(a.g,b.id,"");a.k=b.id;a.g.F("screenPair",a.uc,a)}g.uc=function(a){this.log_("Paired with a DIAL screen: "+Kf(a));qk(this);a?kk(this,a):(this.log_("Dial pairing failed. Firing ConnectionEventType.ERROR"),this.k="",gk(this,"connectionError"))};
function nk(a){a.log_("Disconnecting with user intent.");rk(a);og();wj(a.i,1)}function rk(a){Zj(a.g);var b=Da(a.o,function(a){return"REMOTE_CONTROL"==a.type});b?(a.log_("Did not stop DIAL device, because another remote is connected: "+T(b?{id:b.id,name:b.name,app:b.app,type:b.type,user:b.Bc}:null)),a.k=""):(b=a.j?Wj(a.g,a.j):null,a.k?(a.log_("Stopping DIAL device: "+a.k),sj(a.k),a.k=""):b&&b.M&&(a.log_("Stopping DIAL device: "+b.M),sj(b.M)))}
function ok(a){a.log_("Disconnecting from screen.");wj(a.i,2)}function sk(a,b,c){c?a.log_("Sending: action="+b+", params="+T(c)):a.log_("Sending: action="+b);isNaN(yj(a.i))?a.i.sendMessage(b,c):a.log_("Action = "+b+" was ignored due to reconnecting.")}g.mc=function(){sk(this,"getNowPlaying")};function tk(a){a=a.i.b;return!!a&&3==a.g}
function pk(a){uk(a);a.Ha=L(t(function(){uk(this);jk(this,null);this.k="";this.b=null;this.log_("Connecting remote screen timeout. Firing ConnectionEventType.ERROR");gk(this,"connectionError");og();wj(this.i,1)},a),1E4)}function uk(a){oc(a.Ha);a.Ha=NaN}function vk(a){oc(a.Sb);a.Sb=NaN}function qk(a){a.g.ka("screenPair",a.uc,a)}
g.kd=function(){this.log_("Channel opened");var a=ge("yt-remote-session-video-id"),b=ge("yt-remote-session-list-id"),c=this.h?Bj(this.h):"",d=this.h?this.h.h():"",e=this.j;de("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!this.i.b.jb,sessionId:this.i.b.j,arrayId:this.i.b.Ca});de("yt-remote-session-screen-id",e);ng(c,d);var e=cg(),f=dg();B(e,f)||e.push(f);gg(e);bg();c&&c!=a&&(a=this.h.g()[this.h.j()],e=this.h.b(),e=mk(e),this.b.add(c,!0)&&sk(this,"insertVideo",{videoId:c,
videoSource:a}),u(),Cj(this.b,c),hk(this),sk(this,"setVideo",{currentTime:e,videoId:c}));d&&d!=b&&(b=this.h.i(),c=this.h.g(),sk(this,"updatePlaylist",{videoIds:b.join(","),videoSources:c.join(",")}),Dj(this.b,b),hk(this))};function wk(a){og(!0);vk(a);a.g.Xb=null;jk(a,null);a.k=""}g.gd=function(){this.log_("Channel closed");var a=!!this.j&&isNaN(this.Ha);wk(this);a&&(this.log_("Closing channel. Firing ConnectionEventType.CLOSED"),gk(this,"connectionClosed"))};
g.hd=function(a){isNaN(yj(this.i))?this.log_("Channel error: "+a+" without reconnection"):this.log_("Channel error: "+a+" with reconnection in "+yj(this.i)+" ms");!isNaN(yj(this.i))||wk(this);uk(this);this.log_("Channel error. Firing ConnectionEventType.ERROR");gk(this,"connectionError")};
function xk(a,b){switch(b.action){case "loungeStatus":var c=Md(b.params.devices);a.o=A(c,function(a){return new dj(a)});break;case "loungeScreenDisconnected":Ja(a.o,function(a){return"LOUNGE_SCREEN"==a.type});break;case "remoteConnected":var d=new dj(Md(b.params.device));Da(a.o,function(a){return d?a.id==d.id:!1})||Ha(a.o,d);break;case "remoteDisconnected":d=new dj(Md(b.params.device)),Ja(a.o,function(a){return d?a.id==d.id:!1})}}
function yk(a,b){var c=!1;if("loungeStatus"==b.action)c=!!Da(a.o,function(a){return"LOUNGE_SCREEN"==a.type});else if("loungeScreenConnected"==b.action)c=!0;else if("loungeScreenDisconnected"==b.action)c=!1;else return;c!=(tk(a)&&!!a.j&&isNaN(a.Ha))&&(c?(uk(a),a.log_("Screen connected. Firing ConnectionEventType.OPENED"),gk(a,"connectionOpened"),a.mc()):nk(a))}
g.jd=function(a){a.params?this.log_("Received: action="+a.action+", params="+T(a.params)):this.log_("Received: action="+a.action);xk(this,a);yk(this,a);if(tk(this)&&this.j&&isNaN(this.Ha)){var b=!1,c=!1,d,e,f,h,k,l,p;a.params&&(d=a.params.videoId||a.params.video_id,e=a.params.videoIds||a.params.video_ids,f=a.params.state,h=a.params.currentTime||a.params.current_time,k=a.params.volume,l=a.params.muted,q(a.params.currentError)&&(p=Md(a.params.currentError)));if("onSubtitlesTrackChanged"==a.action)d==
Bj(this.b)&&(delete a.params.videoId,db(a.params)?this.b.i=null:this.b.i=a.params,ik(this,"playerChange"));else if(Bj(this.b)||'"onStateChange"'!=a.action)"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d?d!=Bj(this.b)&&(b=!0):d=Bj(this.b):(Cj(this.b,""),b=!0),e&&(e=e.split(","),Dj(this.b,e,d)&&(b=!0))):(Dj(this.b,[]),b=!0),this.b.add(d)&&sk(this,"getPlaylist"),d&&Cj(this.b,d),b&&ik(this,"playlistChange"),q(f)&&(b=parseInt(f,
10),b=isNaN(b)?-1:b,-1==b&&-1E3==this.b.g&&(b=-1E3),c=c||b!=this.b.g,this.b.g=b,d=null,-1E3==b&&(d=this.b.h||"unknown",p&&(d=p.reason||d)),c=c||this.b.h!=d,this.b.h=d,1==this.b.g?(vk(this),this.Sb=L(t(this.mc,this),2E4)):vk(this)),"onError"!=a.action||-1!=this.b.g&&-1E3!=this.b.g||(a=Md(a.params.errors)||[],1==a.length&&("PLAYER_ERROR"==a[0].error&&a[0].videoId==Bj(this.b))&&(this.b.g=-1E3,this.b.h=a[0].reason||"unknown",c=!0)),h&&(u(),c=!0),q(k)&&(b=parseInt(k,10),isNaN(b)||(c=c||this.b.volume!=
b,this.b.volume=b),q(l)&&(l="true"==l,c=c||this.b.muted!=l,this.b.muted=l)),c&&ik(this,"playerChange")}};g.ub=function(){this.log_("Managed screens changed");!this.j||this.j&&Wj(this.g,this.j)||(this.log_("Dropping current screen with id: "+this.j),nk(this),this.b=null)};function ek(){fk.call(this,"Desktop","youtube-desktop");M(window,"unload",t(this.P,this));M(window,"beforeunload",t(this.P,this))}x(ek,fk);ca(ek);ek.prototype.P=function(){ok(this)};function zk(a,b){var c=Ic(a);if(c==Ic(window.location.href)||!c&&0==a.lastIndexOf("/",0)){var c=Gc(a),c=Ec(null,null,c[5],c[6],c[7]),d=c.indexOf("#");if(c=0>d?c:c.substr(0,d))c="s_tempdata-"+wa(c),d=b?ve(b):"",pe(c,d,5)}};var Ak={};function Bk(a,b){a=H(a);if(!a)return null;b=Cd(b);var c="player"+ia(a),d=Ak[c];d||(d=new Ck(a,c),Ak[c]=d,P("player-added",d.g));L(function(){var a=d;if(!a.p){Dk(a,b);var c=void 0;K("PLAYER_FLIP")||(c=Ek(a)||void 0);a.pb(c);a.k&&Fk(a)}},0);return d.g}function Gk(){for(var a in Ak){var b=Ak[a];b&&Hk(b)}}function Ik(a){if(a=H(a)){a="player"+ia(a);var b=Ak[a];b&&b.dispose();Ak[a]=null}}function Jk(a){a=H(a);if(!a)return null;a="player"+ia(a);return(a=Ak[a])?a.g:null}
function Ck(a,b){this.ca=a;this.P=b;this.k=!1;this.g={};Kk(this);this.H=this.o=null;this.w=new N;yc(this,na(zc,this.w));this.j={};this.i=this.$=this.Da=this.h=this.b=null;this.qa=!1;this.aa={};this.kb=["onReady"];this.Ta=0}x(Ck,xc);
function Dk(a,b){a.b=b.q();a.h=a.b.attrs.id||a.h;"video-player"==a.h&&(a.h=a.P,a.b.attrs.id=a.P);a.ca.id==a.h&&(a.h=a.h+"-player",a.b.attrs.id=a.h);a.Da=a.b.args.el;var c;(c=a.b.args.eurl)||(c=document.location.toString(),c=-1!=c.indexOf("/embed/")?document.referrer&&document.referrer.substring(0,128)||"unknown":c);a.b.args.eurl=c;a.b.args.enablejsapi="1";a.b.args.playerapiid=a.P;Ue()&&(Lk()||a.b.assets.js)||(a.b.args.html5_unavailable="1",a.b.disable.html5=!0);a.b.fallback=t(a.Nb,a);a.$||(a.$=Mk(a,
a.b.args.jsapicallback||"onYouTubePlayerReady"));a.b.args.jsapicallback=null;if(c=a.b.attrs.width)a.ca.style.width=Wc(Number(c)||c,!0);if(c=a.b.attrs.height)a.ca.style.height=Wc(Number(c)||c,!0);c=a.ca;s("overflow")?Qc(c,"hidden","overflow"):Za("overflow",na(Qc,c));a.b.args.has_mdx_screens&&dk()}function Fk(a){a.b.loaded||(a.b.loaded=!0,"0"!=a.b.args.autoplay?a.g.loadVideoByPlayerVars(a.b.args):a.g.cueVideoByPlayerVars(a.b.args))}g=Ck.prototype;
g.Mb=function(a){var b=pg();if(Qf(b,a)&&"html5"!=this.i){var b=this.b.args.video_id,c=this.g.getCurrentTime();this.g.stopVideo();var d=ek.getInstance(),c=mk(c),e={key:a,videoId:b,currentTime:c};d.log_("Setting the delayed connect data: "+T(e));!bk(d.g,a)&&(a=ck(d.g,a))&&(d=Pf(),e.pairingCode=d,rj(a.id,d,b,c));de("yt-remote-delayed-connect-key",e);this.pb("html5")}};
g.Nb=function(a){var b=H(this.h);a=Cd(a||this.b);var c=!0;if("flash"==this.i)a.disable.flash=!0,"html5"==Ek(this)&&(c=!1);else if("html5"==this.i){var d=H(this.h);d.stopVideo&&d.stopVideo();a.disable.flash?c=!1:(a.args.autoplay=1,a.args.html5_unavailable="1",a.disable.html5=!0,b.logFallback())}c&&(Dk(this,a),this.pb())};
g.pb=function(a){if(!this.p){if(!a){a=!!this.b.disable.html5;var b=!!this.b.disable.flash;a=!this.b.html5&&!b||a?b?"unsupported":"flash":"html5"}("flash"==a?this.Dd:"html5"==a?this.Ed:this.Fd).call(this)}};function Lk(){return n("yt.player.Application")}
g.Ed=function(){if(!this.qa){var a=this.b.q();if("html5"==Ek(this))this.i="html5",this.k||this.Ua();else{Nk(this);this.i="html5";this.b.loaded=!0;var b=function(){new (Lk())(this.ca,a);this.Ua()};this.qa=!0;Lk()?b.call(this):Le(this.b.assets.js,t(b,this))}}};g.Dd=function(){this.i="flash";var a=this.b.q();a.attrs.width=a.attrs.width||"100%";a.attrs.height=a.attrs.height||"100%";"flash"==Ek(this)?this.k||Ke(a,!1,t(this.Ua,this)):(this.b.loaded=!0,He(this.ca,a),this.Ua())};
g.Ua=function(){var a=H(this.h);if(a&&a.getApiInterface)if(this.qa=!1,a.isNotServable&&a.isNotServable())this.Nb(a.getUpdatedConfigurationData());else{Kk(this);this.k=!0;var a=H(this.h),b=a.getApiInterface();a.addEventListener&&(this.o=t(a.addEventListener,a));a.removeEventListener&&(this.H=t(a.removeEventListener,a));for(var c=0;c<b.length;c++){var d=b[c];this.g[d]||(this.g[d]=t(a[d],a))}for(var e in this.j)this.o(e,this.j[e]);this.ab("onError",t(this.od,this));this.ab("onTabOrderChange",t(this.md,
this));this.ab("onNavigate",t(this.nd,this));"flash"==this.i&&this.ab("onRemoteReceiverSelected",t(this.Mb,this));e=ek.getInstance();e.g.F("onlineReceiverChange",this.fc,this);e.g.F("connectToReceiver",this.Mb,this);Fk(this);this.$&&this.$(this.g);this.w.t("onReady",this.g);P("player-ready",this.g)}else this.Ta=L(t(this.Ua,this),50)};
function Kk(a){a.k=!1;if(a.H)for(var b in a.j)a.H(b,a.j[b]);a.o=null;a.H=null;for(var c in a.g)a.g[c]=null;a.g.addEventListener=t(a.ab,a);a.g.removeEventListener=t(a.Md,a);a.g.destroy=t(a.Kd,a);a.g.getPlayerType=t(a.Ld,a);a.g.writePlayer=t(a.pb,a);a.g.isReady=t(a.Nd,a)}g.Nd=function(){return this.k};g.fc=function(){this.g.updateRemoteReceivers&&this.g.updateRemoteReceivers(pg())};
g.ab=function(a,b){var c=Mk(this,b);if(c){if(!B(this.kb,a)&&!this.j[a]){var d=Ok(this,a);this.o&&this.o(a,d)}this.w.F(a,c);"onReady"==a&&this.k&&L(na(c,this.g),0)}};g.Md=function(a,b){var c=Mk(this,b);c&&this.w.ka(a,c)};function Mk(a,b){var c=b;if("string"==typeof b){if(a.aa[b])return a.aa[b];c=function(){var a=n(b);a&&a.apply(m,arguments)};a.aa[b]=c}return c?c:null}function Ok(a,b){var c="ytPlayer"+b+a.P;a.j[b]=c;m[c]=function(c){L(function(){a.p||a.w.t(b,c)},0)};return c}
g.md=function(a){a=a?Rb:Qb;for(var b=a(document.activeElement);b&&(1!=b.nodeType||(b.focus(),b!=document.activeElement));)b=a(b)};g.nd=function(a){var b=K("EVENT_ID");b&&zk(a.url,{ei:b,feature:a.feature})};g.od=function(a){var b=H(this.h);5==a&&this.Nb(b.getUpdatedConfigurationData())};
g.Fd=function(){Nk(this);this.i="unsupported";var a=qc("PLAYER_FALLBACK_OVERRIDE");if(!a){var a=qc("PLAYER_FALLBACK",void 0,'The Adobe Flash Player or an HTML5 supported browser is required for video playback. <br> <a href="http://get.adobe.com/flashplayer/">Get the latest Flash Player</a> <br> <a href="/html5">Learn more about upgrading to an HTML5 browser</a>'),b=navigator.userAgent.match(/Version\/(\d).*Safari/);b&&5<=parseInt(b[1],10)&&(a=qc("QUICKTIME_FALLBACK",void 0,'The Adobe Flash Player or QuickTime is required for video playback. <br> <a href="http://get.adobe.com/flashplayer/">Get the latest Flash Player</a> <br> <a href="http://www.apple.com/quicktime/download/">Get the latest version of QuickTime</a>'))}var b=
new gf,c=a,a="embedded"==this.Da;wc(b.h);b.h=[];var d=document.createElement("div");d.className="ytp-error-content-wrap";d.innerHTML=c;c=b.g;if(d!=c.h.content){var e=c.g["{{content}}"];e&&(c.h.content=d,Ye(c,e[0],e[1],d))}if(a)for(a=b.b.getElementsByTagName("a"),d=0;d<a.length;d++)a[d].setAttribute("target","_blank");b.vb(this.ca)};g.Ld=function(){return this.i||Ek(this)};function Ek(a){return(a=H(a.h))?"div"==a.tagName.toLowerCase()?"html5":"flash":null}
function Nk(a){Hk(a);Kk(a);a.i=null;var b=H(a.h);b&&b.destroy&&b.destroy();Pb(a.ca)}g.Kd=function(){Pk(this.ca)};function Hk(a){a.b.assets.js&&Dc("js-"+wa(a.b.assets.js));oc(a.Ta)}g.u=function(){Nk(this);this.aa=null;for(var a in this.j)m[this.j[a]]=null;this.g=null;this.b&&(this.b=this.b.fallback=null);a=ek.getInstance();a.g.ka("onlineReceiverChange",this.fc,this);a.g.ka("connectToReceiver",this.Mb,this);Ck.D.u.call(this)};var Qk=n("yt.player.embed")||Bk;v("yt.player.embed",Qk);
var Pk=n("yt.player.destroy")||Ik;v("yt.player.destroy",Pk);var Rk=n("yt.player.cancelAll")||Gk;v("yt.player.cancelAll",Rk);var Sk=n("yt.player.getPlayerByElement")||Jk;v("yt.player.getPlayerByElement",Sk);var Tk={},Uk=0;function Vk(a){if(a){var b=new Image,c=""+Uk++;Tk[c]=b;b.onload=b.onerror=function(){delete Tk[c]};b.src=a;b=eval("null")}};function Wk(){var a=Xk().tick,b=Xk().span,c=Xk().info,d=n("yt.timing.reportbuilder_");if(d){if(d=d.apply(null,[a,b,c,void 0]))Yk(d),Zk()}else{var d={v:2,s:"youtube",action:K("TIMING_ACTION")},e=K("TIMING_INFO")||{},f;for(f in e)c[f]=e[f];f=c.srt;delete c.srt;if(!f&&0!==f)try{var h=(window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance).timing;f=h.responseStart-h.navigationStart}catch(k){c.pt&&(f=c.pt)}if(f||0===f)c.srt=f;a.aft||(a.aft=a.vr&&a.cl&&a.cl>a.vr?a.cl:
a.vr?a.vr:a.ol);a.aft&&a.plev&&(a.aft=Math.min(a.aft,a.plev));a.vr&&a.gv&&(b.vl=Math.round(a.vr-a.gv));for(var l in c)"_"!=l.charAt(0)&&(d[l]=c[l]);c={};h=[];l=a._start;for(var p in a)"_"!=p.charAt(0)&&(f=Math.max(Math.round(a[p]-l),0),c[p]=f,h.push(p+"."+f));d.rt=h.join(",");a={};p=[];for(var I in b)"_"!=I.charAt(0)&&(a[I]=b[I],p.push(I+"."+b[I]));d.it=p.join(",");Yk(d);(b=n("ytdebug.logTiming"))&&b(d,c,a);Zk()}}
function Yk(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];Vk(b+"?"+c.substring(1))}function Xk(){return n("ytcsi.data_")||Zk()}function Zk(){var a={tick:{},span:{},info:{}};v("ytcsi.data_",a);return a};function $k(a,b){this.source=null;this.i=a||null;this.origin="*";this.o=window.document.location.protocol+"//"+window.document.location.hostname;this.p=b;this.h=this.b=this.g=this.j=null;M(window,"message",t(this.k,this))}
$k.prototype.k=function(a){var b=this.p||K("POST_MESSAGE_ORIGIN")||this.o;if("*"==b||a.origin==b)if(!this.i||a.source==this.i)switch(this.source=a.source,this.origin="null"==a.origin?this.origin:a.origin,a=Md(a.data),this.j=a.id,a.event){case "listening":this.b&&(this.b(),this.b=null);break;case "command":this.g&&(this.h&&!B(this.h,a.func)||this.g(a.func,a.args))}};$k.prototype.sendMessage=function(a){this.source&&(a.id=this.j,a=T(a),this.source.postMessage(a,this.origin))};function al(){var a=this.g=new $k,b=t(this.Bd,this);a.g=b;a.h=null;this.h=[];this.o=!1;this.k=(a=K("POST_MESSAGE_ORIGIN"))&&RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+If.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i").test(a)?a:null;this.i={}}g=al.prototype;g.Bd=function(a,b){if(this.k&&this.k!=this.g.origin)this.dispose();else if("addEventListener"==a&&b){var c=b[0];this.i[c]||"onReady"==c||(this.addEventListener(c,bl(this,c)),this.i[c]=!0)}else this.Cc(a,b)};g.Cc=function(){};
function bl(a,b){return t(function(a){this.sendMessage(b,a)},a)}g.addEventListener=function(){};g.sd=function(){this.o=!0;this.sendMessage("initialDelivery",this.$b());this.sendMessage("onReady");z(this.h,this.Fc,this);this.h=[]};g.$b=function(){return null};function cl(a,b){a.sendMessage("infoDelivery",b)}g.Fc=function(a){this.o?this.g.sendMessage(a):this.h.push(a)};g.sendMessage=function(a,b){this.Fc({event:a,info:void 0==b?null:b})};g.dispose=function(){this.g=null};function dl(a){al.call(this);this.b=a;this.j={};this.p={};this.b.addEventListener("onReady",t(this.td,this));this.b.addEventListener("onVideoProgress",t(this.yd,this));this.b.addEventListener("onVolumeChange",t(this.zd,this));this.b.addEventListener("onApiChange",t(this.ud,this));this.b.addEventListener("onPlaybackQualityChange",t(this.vd,this));this.b.addEventListener("onPlaybackRateChange",t(this.wd,this));this.b.addEventListener("onStateChange",t(this.xd,this))}x(dl,al);
function el(a,b){Za(a.j,function(a,d){if(b[d]){var e=this.p[a];e&&(b[a]=e)}},a);return b}g=dl.prototype;g.Cc=function(a,b){this.b[a]&&(b=b||[],(0==a.search("cue")||0==a.search("load"))&&ha(b[0])&&(b[0]=el(this,b[0])),this.b[a].apply(this.b,b),0!=a.search("cue")&&0!=a.search("load")||cl(this,this.$b()))};g.td=function(){var a=t(this.sd,this);this.g.b=a};g.addEventListener=function(a,b){this.b.addEventListener(a,b)};
g.$b=function(){var a=this.b.getApiInterface();Ia(a,"getVideoData");for(var b={apiInterface:a},c=0,d=a.length;c<d;c++){var e=a[c];if(0==e.search("get")||0==e.search("is")){var f;f=e;var h=0;0==f.search("get")?h=3:0==f.search("is")&&(h=2);f=f.charAt(h).toLowerCase()+f.substr(h+1);try{var k=this.b[e]();b[f]=k}catch(l){}}}b.videoData={video_id:this.b.getVideoData().video_id};return b};
g.xd=function(a){cl(this,{playerState:a,currentTime:this.b.getCurrentTime(),duration:this.b.getDuration(),videoData:{video_id:this.b.getVideoData().video_id},videoStartBytes:0,videoBytesTotal:this.b.getVideoBytesTotal(),videoLoadedFraction:this.b.getVideoLoadedFraction(),playbackQuality:this.b.getPlaybackQuality(),availableQualityLevels:this.b.getAvailableQualityLevels(),videoUrl:this.b.getVideoUrl(),playlist:this.b.getPlaylist(),playlistIndex:this.b.getPlaylistIndex()})};
g.vd=function(a){cl(this,{playbackQuality:a})};g.wd=function(a){cl(this,{playbackRate:a})};g.ud=function(){for(var a=this.b.getOptions(),b={namespaces:a},c=0,d=a.length;c<d;c++){var e=a[c],f=this.b.getOptions(e);b[e]={options:f};for(var h=0,k=f.length;h<k;h++){var l=f[h],p=this.b.getOption(e,l);b[e][l]=p}}this.sendMessage("apiInfoDelivery",b)};g.zd=function(){cl(this,{muted:this.b.isMuted(),volume:this.b.getVolume()})};
g.yd=function(a){cl(this,{currentTime:a,videoBytesLoaded:this.b.getVideoBytesLoaded(),videoLoadedFraction:this.b.getVideoLoadedFraction()})};function fl(a,b){var c=K("CONVERSION_CONFIG_DICT");if(c){if(s(b)){var d=24==b.length&&"UC"==b.slice(0,2)?b.substr(2):22==b.length?b:null;if(c.uid!=d)return}var e="followon_"+a;if(c.baseUrl&&c.uid){var f=c.rmktEnabled,d=c.focEnabled&&!c.isAd;if(f||d){e={label:d?e:"default"};if(f){f={utuid:c.uid,type:a};c.vid&&(f.utvid=c.vid);c.eventLabel&&(f.el=c.eventLabel);c.playerStyle&&(f.ps=c.playerStyle);c.feature&&(f.feature=c.feature);c.ppe&&(f.ppe=c.ppe);var h,k=[];for(h in f)k.push(encodeURIComponent(h)+
"="+encodeURIComponent(f[h]));h=k.join(";");e.data=h}d&&("view"==a&&c.vid&&c.uid&&(c.oeid||c.ieid))&&(c.oeid&&(e.oeid=c.oeid),c.ieid&&(e.ieid=c.ieid),e.evid=c.vid);d&&(e.foc_id=c.uid);c=Jc(Mc([c.baseUrl],e))}else c=null}else c=null;c&&Vk(c)}};var gl=!1,Z=[];function hl(a,b,c,d,e){b?gl?P("subscription-external-subscribe",a,b,null,d,e):P("ypc-delayedloader-load",function(){P("ypc-init-subscription",b)}):il(a,c,d,e)}function jl(a,b,c,d,e,f){c?gl?P("subscription-external-unsubscribe",a,b,c,null,e,f):P("ypc-delayedloader-load",function(){P("ypc-subscription-cancel",c)}):kl(a,b,d,e,f)}
function ll(a){if(a.length){var b=Na(a,0,40);P("subscription-batch-subscribe-loading",b);ml("subscription-subscribe-loading",b);var c={};c.session_token=lc();c.a=b.join(",");var d=function(){P("subscription-batch-subscribe-loaded",b);ml("subscription-subscribe-loaded",b)};Ij("/subscription_ajax?action_create_subscription_to_all=1",{method:"POST",fa:c,W:function(c,f){d();var h=f.response,k=h.id;if(r(k)&&k.length==b.length){var l={};z(k,function(a,c){l[b[c]]=a});P("subscription-batch-subscribe-success",
l);Za(l,function(a,b){P("subscription-subscribe-success",b,a)});(h=h.guide_notification_html_content)&&P("guide-add-subscription",h);a.length&&ll(a)}},onError:function(){d();P("subscription-batch-subscribe-failure",b);ml("subscription-subscribe-failure",b)}})}}
function nl(a){if(!db(a)){var b=ab(a),c=Na(b,0,40),d=[];z(c,function(b){d.push(a[b])});var e={};z(b,function(b){e[b]=a[b]});P("subscription-batch-unsubscribe-loading",c);ml("subscription-unsubscirbe-loading",c);b={};b.session_token=lc();b.s=d.join(",");var f=function(){P("subscription-batch-unsubscribe-loaded",c);ml("subscription-unsubscribe-loaded",c)};Ij("/subscription_ajax?action_remove_subscriptions=1",{method:"POST",fa:b,W:function(){f();P("subscription-batch-unsubscribe-success",c);ml("subscription-unsubscribe-success",
c);db(e)||nl(e)},onError:function(){f();P("subscription-batch-unsubscribe-failure",c);ml("subscription-unsubscribe-failure",c)}})}}function ol(a,b,c){pl(a,b,null,c)}function ql(a,b,c){pl(a,null,b,c)}function rl(a,b,c){sl(a,b,null,c)}function tl(a,b,c){sl(a,null,b,c)}function ul(a,b,c,d){pl(a,b,c,d)}function vl(a,b,c,d){a=a.subscriptionElement||null;(b=b.subscriptionId)&&P("subscription-subscribe-success",d,b,a)}
function wl(a,b){Za(a,function(a,b){P("subscription-subscribe-success",b,a)});P("guide-add-subscription",b)}function xl(a,b){P("subscription-unsubscribe-success",a.itemId,a.subscriptionElement||null);b&&(P("subscription-batch-unsubscribe-success",b),ml("subscription-unsubscribe-success",b),ml("subscription-enable-ypc",b))}
function il(a,b,c,d){P("subscription-subscribe-loading",a);var e={};e.c=a;d&&(e.eurl=d);d={};d.session_token=lc();var f=K("PLAYBACK_ID");f&&(d.plid=f);c&&yl("/subscription_ajax?action_create_subscription_to_channel=1",e,c);Ij("/subscription_ajax?action_create_subscription_to_channel=1",{method:"POST",Jc:e,fa:d,W:function(c,d){var e=d.response;P("subscription-subscribe-success",a,e.id,b);e.show_feed_privacy_dialog&&P("SHOW-FEED-PRIVACY-SUBSCRIBE-DIALOG",a);(e=e.guide_notification_html_content)&&P("guide-add-subscription",
e)},onError:function(){P("subscription-subscribe-failure",a)},Ib:function(){P("subscription-subscribe-loaded",a)}});fl("subscribe",a)}
function kl(a,b,c,d,e){P("subscription-unsubscirbe-loading",a);var f={};e&&(f.eurl=e);e={};e.session_token=lc();e.s=b;(b=K("PLAYBACK_ID"))&&(e.plid=b);d&&yl("/subscription_ajax?action_remove_subscriptions=1",{},d);Ij("/subscription_ajax?action_remove_subscriptions=1",{method:"POST",Jc:f,fa:e,W:function(){P("subscription-unsubscribe-success",a,c)},onError:function(){P("subscription-unsubscribe-failure",a)},Ib:function(){P("subscription-unsubscribe-loaded",a)}});fl("unsubscribe",a)}
function pl(a,b,c,d){if(null!==b||null!==c){P("subscription-prefs-loading",a);var e={};e.session_token=lc();e.subscription_id=a;null===b||(e.email_on_upload=b);null===c||(e.uploads_only=c);Ij("/subscription_ajax?action_update_subscription_preferences=1",{method:"POST",fa:e,W:function(){P("subscription-prefs-success",a)},onError:function(){d&&d();P("subscription-prefs-failure",a)},Ib:function(){P("subscription-prefs-loaded",a)}})}}
function sl(a,b,c,d){if(a.length&&(null!==b||null!==c)){var e=Na(a,0,40);P("subscription-batch-prefs-loading",e);var f={};f.session_token=lc();f.s=e.join(",");null===b||(f.email_on_upload=b);null===c||(f.uploads_only=c);var h=function(){P("subscription-batch-prefs-loaded",e)};Ij("/subscription_ajax?action_update_subscription_preferences_batch=1",{method:"POST",fa:f,W:function(){h();P("subscription-batch-prefs-success",e);a.length&&sl(a,b,c,d)},onError:function(){h();d&&d();P("subscription-batch-prefs-failure",
e)}})}}function ml(a,b){z(b,function(b){P(a,b)})}function yl(a,b,c){a=xe(a,b);c=ue(c);zk(a,c)};var zl=null,Al=null,Bl={cc_load_policy:"cc3_module",threed_load_policy:"threed_module"};function Cl(a){var b={};Za(Bl,function(c){a.args[c]&&(b[c]=a.args[c],delete a.args[c])});return b}function Dl(a){var b={};b.volume=isNaN(a.volume)?ke().volume:Math.min(Math.max(a.volume,0),100);b.nonNormalized=a.nonNormalized;b.muted=void 0==a.muted?ke().muted:a.muted;de("yt-player-volume",b,2592E3)};v("yt.setAjaxToken",kc);v("yt.setConfig",ic);v("yt.setMsg",function(a){jc(fc,arguments)});v("yt.embed.openLoginDialog",function(){Oc(function(a){zl.b&&zl.b(a)})});v("writeEmbed",function(){var a=new yd(K("PLAYER_CONFIG")),b=Cl(a);a.args.el="embedded";K("CUED_AUTOPLAY")&&(a.args.autoplay=1);zl=Qk("player",a);zl.addEventListener("onVolumeChange",Dl);a=Al=new dl(zl);a.j=Bl;a.p=b});
M(window,"load",function(){Xk().tick.ol=u();var a=K("TIMING_ACTION"),b=!!K("TIMING_WFF"),c=Xk().tick;a&&c._start&&(b&&c.vr?Wk():b||!c.ol&&!c.aft||Wk());gl=!0;Z.push(O("subscription-subscribe",hl));Z.push(O("subscription-unsubscribe",jl));gl||(Z.push(O("subscription-external-subscribe",hl)),Z.push(O("subscription-external-unsubscribe",jl)),Z.push(O("subscription-batch-subscribe",ll)),Z.push(O("subscription-batch-unsubscribe",nl)),Z.push(O("subscription-pref-email",ol)),Z.push(O("subscription-pref-uploads",
ql)),Z.push(O("subscription-prefs",ul)),Z.push(O("subscription-batch-pref-email",rl)),Z.push(O("subscription-batch-pref-uploads",tl)),Z.push(O("ypc-purchase-success",vl)),Z.push(O("ypc-subscription-cancel-success",xl)),Z.push(O("ypc-guide-sync-success",wl)))});M(window,"unload",function(){zl.destroy();Al.dispose();Z&&(Cc(Z),Z=[],gl=!1)});var El=ud.getInstance(),Fl=R(El);Fl in jd||!El.Zc()||(El.register(),jd[Fl]=El);})();
