(function(){'use strict';var q;function aa(a){var b=0;return function(){return b>>0)+"_",g=0;return b}); u("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c>>0),ta=0;function H(a,b){a=a.split(".");var c=F;a[0]in c||typeof c.execScript=="undefined"||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b} function ua(a,b){function c(){} c.prototype=b.prototype;a.I=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Z=function(d,g,k){for(var e=Array(arguments.length-2),f=2;f=0&&Array.prototype.splice.call(a,b,1)} function ya(a){return Array.prototype.concat.apply([],arguments)} function za(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d0){this.h--;var a=this.g;this.g=a.next;a.next=null}else a=this.i();return a};var Ba;function Ca(){if(typeof MessageChannel!=="undefined"){var a=new MessageChannel,b={},c=b;a.port1.onmessage=function(){if(b.next!==void 0){b=b.next;var d=b.F;b.F=null;d()}}; return function(d){c.next={F:d};c=c.next;a.port2.postMessage(0)}}return function(d){F.setTimeout(d,0)}} ;function Da(a){F.setTimeout(function(){throw a;},0)} ;function Ea(){this.h=this.g=null} Ea.prototype.add=function(a,b){var c=Fa.get();c.set(a,b);this.h?this.h.next=c:this.g=c;this.h=c}; Ea.prototype.remove=function(){var a=null;this.g&&(a=this.g,this.g=this.g.next,this.g||(this.h=null),a.next=null);return a}; var Fa=new Aa(function(){return new Ga},function(a){return a.reset()}); function Ga(){this.next=this.scope=this.g=null} Ga.prototype.set=function(a,b){this.g=a;this.scope=b;this.next=null}; Ga.prototype.reset=function(){this.next=this.scope=this.g=null};var I,Ha=!1,Ia=new Ea;function Ja(a){I||Ka();Ha||(I(),Ha=!0);Ia.add(a,void 0)} function Ka(){if(F.Promise&&F.Promise.resolve){var a=F.Promise.resolve(void 0);I=function(){a.then(La)}}else I=function(){var b=La; Ba||(Ba=Ca());Ba(b)}} function La(){for(var a;a=Ia.remove();){try{a.g.call(a.scope)}catch(c){Da(c)}var b=Fa;b.j(a);b.h<100&&(b.h++,a.next=b.g,b.g=a)}Ha=!1} ;function J(){this.i=this.i;this.j=this.j} J.prototype.i=!1;J.prototype.dispose=function(){this.i||(this.i=!0,this.C())}; J.prototype[Symbol.dispose]=function(){this.dispose()}; J.prototype.addOnDisposeCallback=function(a,b){this.i?b!==void 0?a.call(b):a():(this.j||(this.j=[]),b&&(a=a.bind(b)),this.j.push(a))}; J.prototype.C=function(){if(this.j)for(;this.j.length;)this.j.shift()()};var Ma=/&/g,Na=//g,Pa=/"/g,Qa=/'/g,Ra=/\x00/g,Sa=/[\x00&<>"']/;/* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ function K(a){this.g=a} K.prototype.toString=function(){return this.g}; var Ta=new K("about:invalid#zClosurez");function Ua(a){this.S=a} function L(a){return new Ua(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})} var Va=[L("data"),L("http"),L("https"),L("mailto"),L("ftp"),new Ua(function(a){return/^[^:]*([/?#]|$)/.test(a)})]; function Wa(a){var b=b===void 0?Va:b;a:if(b=b===void 0?Va:b,!(a instanceof K)){for(var c=0;c")!=-1&&(a=a.replace(Oa,">")),a.indexOf('"')!=-1&&(a=a.replace(Pa,""")),a.indexOf("'")!=-1&&(a=a.replace(Qa,"'")),a.indexOf("\x00")!=-1&&(a=a.replace(Ra,"�")));return a} ;var bb,P;a:{for(var cb=["CLOSURE_FLAGS"],Q=F,db=0;db0:!1} function ib(a){var b={};a.forEach(function(c){b[c[0]]=c[1]}); return function(c){return b[c.find(function(d){return d in b})]||""}} function jb(){for(var a=R(),b=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g"),c=[],d;d=b.exec(a);)c.push([d[1],d[2],d[3]||void 0]);a=ib(c);return(hb()?gb():(R().indexOf("Chrome")!=-1||R().indexOf("CriOS")!=-1)&&(hb()||R().indexOf("Edge")==-1)||R().indexOf("Silk")!=-1)?a(["Chrome","CriOS","HeadlessChrome"]):""} function kb(){if(hb()){var a=S.brands.find(function(b){return b.brand==="Chromium"}); if(!a||!a.version)return NaN;a=a.version.split(".")}else{a=jb();if(a==="")return NaN;a=a.split(".")}return a.length===0?NaN:Number(a[0])} ;function T(a){J.call(this);this.s=1;this.l=[];this.m=0;this.g=[];this.h={};this.A=!!a} ua(T,J);q=T.prototype;q.subscribe=function(a,b,c){var d=this.h[a];d||(d=this.h[a]=[]);var g=this.s;this.g[g]=a;this.g[g+1]=b;this.g[g+2]=c;this.s=g+3;d.push(g);return g}; function lb(a,b,c){var d=U;if(a=d.h[a]){var g=d.g;(a=a.find(function(k){return g[k+1]==b&&g[k+2]==c}))&&d.D(a)}} q.D=function(a){var b=this.g[a];if(b){var c=this.h[b];this.m!=0?(this.l.push(a),this.g[a+1]=function(){}):(c&&xa(c,a),delete this.g[a],delete this.g[a+1],delete this.g[a+2])}return!!b}; q.H=function(a,b){var c=this.h[a];if(c){for(var d=Array(arguments.length-1),g=1,k=arguments.length;g0&&this.m==0)for(;c=this.l.pop();)this.D(c)}}return g!=0}return!1}; function mb(a,b,c){Ja(function(){a.apply(b,c)})} q.clear=function(a){if(a){var b=this.h[a];b&&(b.forEach(this.D,this),delete this.h[a])}else this.g.length=0,this.h={}}; q.C=function(){T.I.C.call(this);this.clear();this.l.length=0};var nb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function ob(a){var b=a.match(nb);a=b[1];var c=b[2],d=b[3];b=b[4];var g="";a&&(g+=a+":");d&&(g+="//",c&&(g+=c+"@"),g+=d,b&&(g+=":"+b));return g} function pb(a,b,c){if(Array.isArray(b))for(var d=0;d=119;return b.call(a,c&&!!navigator.permissions&&!!navigator.permissions.query&&"requestStorageAccessFor"in document)})} function vb(){var a=new tb,b=["https://www.youtube.com"];b=b===void 0?sb:b;pa(function(c){switch(c.g){case 1:return C(c,ub(),2);case 2:if(!c.m){c.g=3;break}return C(c,Promise.all(b.map(function(d){var g;return pa(function(k){if(k.g==1)return k.l=2,C(k,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:d}),4);k.g!=2?(g=k.m,g.state==="prompt"&&a.g.push(d),k.g=0,k.l=0):(k.l=0,k.i=null,k.g=0)})})),4); case 4:a.g.length>0&&window.addEventListener("click",a.h);case 3:return c.return()}})} ;var V={},wb=[],U=new T,xb={};function yb(){for(var a=v(wb),b=a.next();!b.done;b=a.next())b=b.value,b()} function zb(a,b){return a.tagName.toLowerCase().substring(0,3)==="yt:"?a.getAttribute(b):a.dataset?a.dataset[b]:a.getAttribute("data-"+b)} function Ab(a){U.H.apply(U,arguments)} ;function Bb(a){return(a.search("cue")===0||a.search("load")===0)&&a!=="loadModule"} function Cb(a){return a.search("get")===0||a.search("is")===0} ;var W=window; function X(a,b){this.v={};this.playerInfo={};this.videoTitle="";this.j=this.g=null;this.h=0;this.m=!1;this.l=[];this.i=null;this.A={};this.options=null;if(!a)throw Error("YouTube player element ID required.");this.id=ra(this);b=Object.assign({title:"video player",videoId:"",width:640,height:360},b||{});var c=document;if(a=typeof a==="string"?c.getElementById(a):a){W.yt_embedsEnableRsaforFromIframeApi&&vb();c=a.tagName.toLowerCase()==="iframe";b.host||(b.host=c?ob(a.src):"https://www.youtube.com");this.options= b||{};b=[this.options,window.YTConfig||{}];for(var d=0;d=0&&ml)n=l;m+=f.length+1;h=decodeURIComponent(h.slice(m,n!==-1?n:0).replace(/\+/g," "))}h!==null&&(e[f]=h)}); W.yt_embedsEnableIframeApiSendFullEmbedUrl&&(window.location.href&&(e.forigin=window.location.href),b=window.location.ancestorOrigins,e.aoriginsup=b===void 0?0:1,b&&b.length>0&&(e.aorigins=Array.from(b).join(",")),window.document.referrer&&(e.gporigin=window.document.referrer));a=""+Y(a,"host")+Jb(a)+"?"+qb(e);W.yt_embedsEnableIframeSrcWithIntent?($a(c,Wa(a)),c.sandbox.add("allow-presentation","allow-top-navigation")):c.src=a;return c} q.G=function(){this.g&&this.g.contentWindow?this.sendMessage({event:"listening"}):clearInterval(this.h)}; function Eb(a){Kb(a,a.id,String(Y(a,"host")));a.h=setInterval(a.G.bind(a),250);a.g&&(a.s=function(){clearInterval(a.h);a.h=setInterval(a.G.bind(a),250)},a.g.addEventListener("load",a.s))} function Gb(a,b){a.A[b]||(a.A[b]=!0,Hb(a,"addEventListener",[b]))} q.sendMessage=function(a){a.id=this.id;a.channel="widget";a=JSON.stringify(a);var b=ob(this.g.src||"").replace("http:","https:");if(this.g.contentWindow)try{this.g.contentWindow.postMessage(a,b)}catch(c){if(c.name&&c.name==="SyntaxError")c.message&&c.message.indexOf("target origin ''")>0||console&&console.warn&&console.warn(c);else throw c;}else console&&console.warn&&console.warn("The YouTube player is not attached to the DOM. API calls should be made after the onReady event. See more: https://developers.google.com/youtube/iframe_api_reference#Events")}; function Jb(a){if(W.yt_embedsEnableIframeApiVideoIdValidation){a=String(Y(a,"videoId"));if(a.includes("../"))throw Error("Invalid video id");return"/embed/"+a}return"/embed/"+String(Y(a,"videoId"))} function Ib(a){var b=Y(a,"playerVars");if(b){var c={},d;for(d in b)c[d]=b[d];b=c}else b={};window!==window.top&&document.referrer&&(b.widget_referrer=document.referrer.substring(0,256));if(a=Y(a,"embedConfig")){if(G(a))try{a=JSON.stringify(a)}catch(g){console.error("Invalid embed config JSON",g)}b.embed_config=a}return b} function Lb(a,b){if(G(b)){for(var c in b)b.hasOwnProperty(c)&&(a.playerInfo[c]=b[c]);a.playerInfo.hasOwnProperty("videoData")&&(b=a.playerInfo.videoData,b.hasOwnProperty("title")&&b.title?(b=b.title,b!==a.videoTitle&&(a.videoTitle=b,a.g.setAttribute("title",b))):(a.videoTitle="",a.g.setAttribute("title","YouTube "+Y(a,"title"))))}} function Mb(a,b){b=v(b);for(var c=b.next(),d={};!c.done;d={u:void 0},c=b.next())d.u=c.value,a[d.u]||(d.u==="getCurrentTime"?a[d.u]=function(){var g=this.playerInfo.currentTime;if(this.playerInfo.playerState===1){var k=(Date.now()/1E3-this.playerInfo.currentTimeLastUpdated_)*this.playerInfo.playbackRate;k>0&&(g+=Math.min(k,1))}return g}:Bb(d.u)?a[d.u]=function(g){return function(){this.playerInfo={}; this.v={};Hb(this,g.u,arguments);return this}}(d):Cb(d.u)?a[d.u]=function(g){return function(){var k=g.u,e=0; k.search("get")===0?e=3:k.search("is")===0&&(e=2);return this.playerInfo[k.charAt(e).toLowerCase()+k.substr(e+1)]}}(d):a[d.u]=function(g){return function(){Hb(this,g.u,arguments); return this}}(d))} q.getVideoEmbedCode=function(){var a=""+Y(this,"host")+Jb(this),b=Number(Y(this,"width")),c=Number(Y(this,"height"));if(isNaN(b)||isNaN(c))throw Error("Invalid width or height property");b=Math.floor(b);c=Math.floor(c);var d=this.videoTitle;a=ab(a);d=ab(d!=null?d:"YouTube video player");return'')}; q.getOptions=function(a){return this.v.namespaces?a?this.v[a]?this.v[a].options||[]:[]:this.v.namespaces||[]:[]}; q.getOption=function(a,b){if(this.v.namespaces&&a&&b&&this.v[a])return this.v[a][b]}; function Y(a,b){a=[a.options,window.YTConfig||{}];for(var c=0;c=0;f&&(k[d++]=b)}k.length=d;b=k}}b=za(b);wa(ya(a,b),Ob)}); typeof YTConfig!=="undefined"&&YTConfig.parsetags&&YTConfig.parsetags!=="onload"||yb();var Qb=F.onYTReady;Qb&&Qb();var Rb=F.onYouTubeIframeAPIReady;Rb&&Rb();var Sb=F.onYouTubePlayerAPIReady;Sb&&Sb();}).call(this);