(function(){var g,h=this;function l(a){a=a.split(".");for(var b=h,c;c=a.shift();)if(null!=b[c])b=b[c];else return null;return b}
function aa(){}
function n(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 p(a){var b=n(a);return"array"==b||"object"==b&&"number"==typeof a.length}
function q(a){return"string"==typeof a}
function ba(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}
var r="closure_uid_"+(1E9*Math.random()>>>0),ca=0;function da(a,b,c){return a.call.apply(a.bind,arguments)}
function ea(a,b,c){if(!a)throw Error();if(2/g,ja=/"/g,ka=/'/g,la=/\x00/g,ma=/[\x00&<>"']/;
function w(a,b){return ab?1:0}
;var na=Array.prototype.indexOf?function(a,b,c){return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;
if(q(a))return q(b)&&1==b.length?a.indexOf(b,c):-1;for(;cc?null:q(a)?a.charAt(c):a[c]}
function pa(a){return Array.prototype.concat.apply(Array.prototype,arguments)}
function y(a){var b=a.length;if(0parseFloat(xa)){E=String(za);break a}}E=xa}var Aa=E,Ba={};
function Ca(a){if(!Ba[a]){for(var b=0,c=fa(String(Aa)).split("."),d=fa(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&fd)b=null;else{e=b.indexOf("&",d);if(0>e||e>c)e=c;d+=a.length+1;b=decodeURIComponent(b.substr(d,e-d).replace(/\+/g," "))}null===b||(m[a]=b)});
c.src=Q(a.b,"host")+a.s()+"?"+ab(m);return c}
g.H=function(){this.a&&this.a.contentWindow?this.C({event:"listening"}):window.clearInterval(this.c)};
function yb(a){Bb(a.b,a,a.g);a.c=gb(t(a.H,a));mb(a.a,"load",t(function(){window.clearInterval(this.c);this.c=gb(t(this.H,this))},a))}
function Ab(a,b){a.u[b]||(a.u[b]=!0,S(a,"addEventListener",[b]))}
g.C=function(a){a.id=this.g;a.channel="widget";a=Ka(a);var b;b=this.b;var c,d=this.a.src.match(Za);c=d[1];var e=d[2],f=d[3],d=d[4],k="";c&&(k+=c+":");f&&(k+="//",e&&(k+=e+"@"),k+=f,d&&(k+=":"+d));c=k;b=0==c.indexOf("https:")?[c]:b.b?[c.replace("http:","https:")]:b.f?[c]:[c,c.replace("http:","https:")];for(c=0;c=a.length)throw T;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");}
function Db(a,b){if(p(a))try{x(a,b,void 0)}catch(c){if(c!==T)throw c;}else{a=Cb(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==T)throw c;}}}
function Eb(a){if(p(a))return y(a);a=Cb(a);var b=[];Db(a,function(a){b.push(a)});
return b}
;function Fb(){}
;function Gb(){}
v(Gb,Fb);Gb.prototype.clear=function(){var a=Eb(this.m(!0)),b=this;x(a,function(a){b.remove(a)})};function V(a){this.a=a}
v(V,Gb);function Hb(a){if(!a.a)return;try{a.a.setItem("__sak","1"),a.a.removeItem("__sak")}catch(b){}}
g=V.prototype;g.set=function(a,b){try{this.a.setItem(a,b)}catch(c){if(0==this.a.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.get=function(a){a=this.a.getItem(a);if(!q(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.remove=function(a){this.a.removeItem(a)};
g.m=function(a){var b=0,c=this.a,d=new U;d.next=function(){if(b>=c.length)throw T;var d=c.key(b++);if(a)return d;d=c.getItem(d);if(!q(d))throw"Storage mechanism: Invalid value was encountered";return d};
return d};
g.clear=function(){this.a.clear()};
g.key=function(a){return this.a.key(a)};function Ib(){var a=null;try{a=window.localStorage||null}catch(b){}this.a=a}
v(Ib,V);function Jb(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.a=a}
v(Jb,V);Hb(new Ib);Hb(new Jb);function Kb(a){return(0==a.search("cue")||0==a.search("load"))&&"loadModule"!=a}
function Lb(a){return 0==a.search("get")||0==a.search("is")}
;function W(a){this.c=a||{};this.a={};this.a.host="http://www.youtube.com";this.a.title="";this.f=this.b=!1;a=document.getElementById("www-widgetapi-script");if(this.b=!!("https:"==document.location.protocol||a&&0==a.src.indexOf("https:"))){a=[this.c,window.YTConfig||{},this.a];for(var b=0;b")&&(b=b.replace(ia,">")),-1!=b.indexOf('"')&&(b=b.replace(ja,""")),-1!=b.indexOf("'")&&(b=b.replace(ka,"'")),-1!=b.indexOf("\x00")&&(b=b.replace(la,"")));return a+b+'" frameborder="0" allowfullscreen>'};
g.U=function(a){return this.i.namespaces?a?this.i[a].options||[]:this.i.namespaces||[]:[]};
g.T=function(a,b){if(this.i.namespaces&&a&&b)return this.i[a][b]};function Qb(a){W.call(this,a);this.a.title="Thumbnail";this.a.videoId="";this.a.width=120;this.a.height=68}
v(Qb,W);function Y(a,b){var c=new Qb(b);P.call(this,a,c,"thumbnail")}
v(Y,P);function Rb(a){if("iframe"!=a.tagName.toLowerCase()){var b=O(a,"videoid");if(b){b={videoId:b,events:{}};b.width=O(a,"width");b.height=O(a,"height");b.thumbWidth=O(a,"thumb-width");b.thumbHeight=O(a,"thumb-height");b.thumbAlign=O(a,"thumb-align");var c=O(a,"onclick");c&&(b.events.onClick=c);new Y(a,b)}}}
Y.prototype.s=function(){return"/embed/"+Q(this.b,"videoId")};
Y.prototype.o=function(){return{player:0,thumb_width:Q(this.b,"thumbWidth"),thumb_height:Q(this.b,"thumbHeight"),thumb_align:Q(this.b,"thumbAlign")}};
Y.prototype.j=function(a,b){Y.D.j.call(this,a,b?b.info:void 0)};function Sb(a){W.call(this,a);this.a.host="https://www.youtube.com";this.a.title="upload widget";this.a.width=640;this.a.height=.67*Q(this,"width")}
v(Sb,W);function Z(a,b){var c=new Sb(b);P.call(this,a,c,"upload")}
v(Z,P);g=Z.prototype;g.s=function(){return"/upload_embed"};
g.o=function(){var a={},b=Q(this.b,"webcamOnly");null!=b&&(a.webcam_only=b);return a};
g.j=function(a,b){Z.D.j.call(this,a,b);"onApiReady"==a&&S(this,"hostWindowReady")};
g.K=function(a){S(this,"setVideoDescription",arguments)};
g.M=function(a){S(this,"setVideoKeywords",arguments)};
g.N=function(a){S(this,"setVideoPrivacy",arguments)};
g.L=function(a){S(this,"setVideoDraftPrivacy",arguments)};
g.O=function(a){S(this,"setVideoTitle",arguments)};u("YT.PlayerState.UNSTARTED",-1);u("YT.PlayerState.ENDED",0);u("YT.PlayerState.PLAYING",1);u("YT.PlayerState.PAUSED",2);u("YT.PlayerState.BUFFERING",3);u("YT.PlayerState.CUED",5);u("YT.UploadWidgetEvent.API_READY","onApiReady");u("YT.UploadWidgetEvent.UPLOAD_SUCCESS","onUploadSuccess");u("YT.UploadWidgetEvent.PROCESSING_COMPLETE","onProcessingComplete");u("YT.UploadWidgetEvent.STATE_CHANGE","onStateChange");u("YT.UploadWidgetState.IDLE",0);u("YT.UploadWidgetState.PENDING",1);
u("YT.UploadWidgetState.ERROR",2);u("YT.UploadWidgetState.PLAYBACK",3);u("YT.UploadWidgetState.RECORDING",4);u("YT.UploadWidgetState.STOPPED",5);u("YT.get",function(a){return N[a]});
u("YT.scan",ub);u("YT.subscribe",function(a,b,c){K.subscribe(a,b,c);tb[a]=!0;for(var d in N)zb(N[d],a)});
u("YT.unsubscribe",function(a,b,c){Xa(a,b,c)});
u("YT.Player",X);u("YT.Thumbnail",Y);u("YT.UploadWidget",Z);P.prototype.destroy=P.prototype.P;P.prototype.setSize=P.prototype.S;P.prototype.getIframe=P.prototype.R;P.prototype.addEventListener=P.prototype.addEventListener;X.prototype.getVideoEmbedCode=X.prototype.V;X.prototype.getOptions=X.prototype.U;X.prototype.getOption=X.prototype.T;Z.prototype.setVideoDescription=Z.prototype.K;Z.prototype.setVideoKeywords=Z.prototype.M;Z.prototype.setVideoPrivacy=Z.prototype.N;Z.prototype.setVideoTitle=Z.prototype.O;
Z.prototype.setVideoDraftPrivacy=Z.prototype.L;sb.push(function(){var a=vb("player");x(a,Nb)});
sb.push(function(){var a=vb("thumbnail");x(a,Rb)});
"undefined"!=typeof YTConfig&&YTConfig.parsetags&&"onload"!=YTConfig.parsetags||ub();var Tb=l("onYTReady");Tb&&Tb();var Ub=l("onYouTubeIframeAPIReady");Ub&&Ub();var Vb=l("onYouTubePlayerAPIReady");Vb&&Vb();})();