(function(){'use strict';var n,aa=typeof Object.create=="function"?Object.create:function(a){function b(){} b.prototype=a;return new b},p=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a; a[b]=c.value;return a}; function ba(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b>>0)+"_",h=0;return b}); r("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");p(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ha(fa(this))}}); return a}); function ha(a){a={next:a};a[Symbol.iterator]=function(){return this}; return a} r("Promise",function(a){function b(f){this.i=0;this.j=void 0;this.h=[];this.A=!1;var d=this.l();try{f(d.resolve,d.reject)}catch(g){d.reject(g)}} function c(){this.h=null} function e(f){return f instanceof b?f:new b(function(d){d(f)})} if(a)return a;c.prototype.i=function(f){if(this.h==null){this.h=[];var d=this;this.j(function(){d.m()})}this.h.push(f)}; var h=q.setTimeout;c.prototype.j=function(f){h(f,0)}; c.prototype.m=function(){for(;this.h&&this.h.length;){var f=this.h;this.h=[];for(var d=0;d>>0),ka=0;function D(a,b){a=a.split(".");for(var c=A,e;a.length&&(e=a.shift());)a.length||b===void 0?c[e]&&c[e]!==Object.prototype[e]?c=c[e]:c=c[e]={}:c[e]=b} function la(a,b){function c(){} c.prototype=b.prototype;a.I=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.X=function(e,h,k){for(var f=Array(arguments.length-2),d=2;d=0&&Array.prototype.splice.call(a,b,1)} function oa(a){return Array.prototype.concat.apply([],arguments)} function pa(a){var b=a.length;if(b>0){for(var c=Array(b),e=0;e0){this.i--;var a=this.h;this.h=a.next;a.next=null}else a=this.j();return a};function ra(a){A.setTimeout(function(){throw a;},0)} ;function F(){this.i=this.h=null} F.prototype.add=function(a,b){var c=sa.get();c.set(a,b);this.i?this.i.next=c:this.h=c;this.i=c}; F.prototype.remove=function(){var a=null;this.h&&(a=this.h,this.h=this.h.next,this.h||(this.i=null),a.next=null);return a}; var sa=new qa(function(){return new G},function(a){return a.reset()}); function G(){this.next=this.scope=this.h=null} G.prototype.set=function(a,b){this.h=a;this.scope=b;this.next=null}; G.prototype.reset=function(){this.next=this.scope=this.h=null};var H,I=!1,ta=new F;function ua(a){H||va();I||(H(),I=!0);ta.add(a,void 0)} function va(){var a=Promise.resolve(void 0);H=function(){a.then(wa)}} function wa(){for(var a;a=ta.remove();){try{a.h.call(a.scope)}catch(c){ra(c)}var b=sa;b.l(a);b.i<100&&(b.i++,a.next=b.h,b.h=a)}I=!1} ;function J(){this.j=this.j;this.l=this.l} J.prototype.j=!1;J.prototype.dispose=function(){this.j||(this.j=!0,this.F())}; J.prototype[Symbol.dispose]=function(){this.dispose()}; J.prototype.addOnDisposeCallback=function(a,b){this.j?b!==void 0?a.call(b):a():(this.l||(this.l=[]),b&&(a=a.bind(b)),this.l.push(a))}; J.prototype.F=function(){if(this.l)for(;this.l.length;)this.l.shift()()};function xa(a){var b={},c;for(c in a)b[c]=a[c];return b} ;var ya=/&/g,za=//g,Ba=/"/g,Ca=/'/g,Da=/\x00/g,Ea=/[\x00&<>"']/;/* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ function K(a){this.h=a} K.prototype.toString=function(){return this.h}; var Fa=new K("about:invalid#zClosurez");function L(a){this.R=a} function M(a){return new L(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})} var Ga=[M("data"),M("http"),M("https"),M("mailto"),M("ftp"),new L(function(a){return/^[^:]*([/?#]|$)/.test(a)})],Ha=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Ia={W:0,U:1,V:2,0:"FORMATTED_HTML_CONTENT",1:"EMBEDDED_INTERNAL_CONTENT",2:"EMBEDDED_TRUSTED_EXTERNAL_CONTENT"};function N(a,b){b=Error.call(this,a+" cannot be used with intent "+Ia[b]);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.type=a;this.name="TypeCannotBeUsedWithIframeIntentError"} var O=Error;N.prototype=aa(O.prototype);N.prototype.constructor=N;if(ea)ea(N,O);else for(var R in O)if(R!="prototype")if(Object.defineProperties){var Ja=Object.getOwnPropertyDescriptor(O,R);Ja&&Object.defineProperty(N,R,Ja)}else N[R]=O[R];N.I=O.prototype;function Ka(a){Ea.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(ya,"&")),a.indexOf("<")!=-1&&(a=a.replace(za,"<")),a.indexOf(">")!=-1&&(a=a.replace(Aa,">")),a.indexOf('"')!=-1&&(a=a.replace(Ba,""")),a.indexOf("'")!=-1&&(a=a.replace(Ca,"'")),a.indexOf("\x00")!=-1&&(a=a.replace(Da,"�")));return a} ;function S(a){J.call(this);this.A=1;this.m=[];this.u=0;this.h=[];this.i={};this.B=!!a} la(S,J);n=S.prototype;n.subscribe=function(a,b,c){var e=this.i[a];e||(e=this.i[a]=[]);var h=this.A;this.h[h]=a;this.h[h+1]=b;this.h[h+2]=c;this.A=h+3;e.push(h);return h}; n.unsubscribe=function(a,b,c){if(a=this.i[a]){var e=this.h;if(a=a.find(function(h){return e[h+1]==b&&e[h+2]==c}))return this.G(a)}return!1}; n.G=function(a){var b=this.h[a];if(b){var c=this.i[b];this.u!=0?(this.m.push(a),this.h[a+1]=function(){}):(c&&na(c,a),delete this.h[a],delete this.h[a+1],delete this.h[a+2])}return!!b}; n.H=function(a,b){var c=this.i[a];if(c){var e=Array(arguments.length-1),h=arguments.length,k;for(k=1;k0&&this.u==0)for(;c=this.m.pop();)this.G(c)}}return k!=0}return!1}; function La(a,b,c){ua(function(){a.apply(b,c)})} n.clear=function(a){if(a){var b=this.i[a];b&&(b.forEach(this.G,this),delete this.i[a])}else this.h.length=0,this.i={}}; n.F=function(){S.I.F.call(this);this.clear();this.m.length=0};var Ma=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Na(a){var b=a.match(Ma);a=b[1];var c=b[2],e=b[3];b=b[4];var h="";a&&(h+=a+":");e&&(h+="//",c&&(h+=c+"@"),h+=e,b&&(h+=":"+b));return h} function Oa(a,b,c){if(Array.isArray(b))for(var e=0;e0||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 Xa(a){if((a=String(Y(a,"videoId")))&&(a.length!==11||!a.match(/^[a-zA-Z0-9\-_]+$/)))throw Error("Invalid video id");return"/embed/"+a} function Wa(a,b){var c=Y(a,"playerVars");c?c=xa(c):c={};window!==window.top&&document.referrer&&(c.widget_referrer=document.referrer.substring(0,256));var e=Y(a,"embedConfig");if(e){if(B(e))try{e=JSON.stringify(e)}catch(h){console.error("Invalid embed config JSON",h)}c.embed_config=e}c.enablejsapi=window.postMessage?1:0;window.location.host&&(c.origin=window.location.protocol+"//"+window.location.host);c.widgetid=a.id;window.location.href&&E(["debugjs","debugcss"],function(h){var k=window.location.href; var f=k.search(Pa);b:{var d=0;for(var g=h.length;(d=k.indexOf(h,d))>=0&&df)g=f;d+=h.length+1;k=decodeURIComponent(k.slice(d,g!==-1?g:0).replace(/\+/g," "))}k!==null&&(c[h]=k)}); window.location.href&&(c.forigin=window.location.href);a=window.location.ancestorOrigins;c.aoriginsup=a===void 0?0:1;a&&a.length>0&&(c.aorigins=Array.from(a).join(","));window.document.referrer&&(c.gporigin=window.document.referrer);b&&(c.vf=db(b));return c} function eb(a,b){if(B(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.h.setAttribute("title",b))):(a.videoTitle="",a.h.setAttribute("title","YouTube "+Y(a,"title"))))}} function fb(a,b){b=x(b);var c=b.next(),e;try{for(var h={};!c.done;h={o:void 0},c=b.next())h.o=c.value,a[h.o]||(h.o==="getCurrentTime"?a[h.o]=function(){var k=this.playerInfo.currentTime;if(this.playerInfo.playerState===1){var f=(Date.now()/1E3-this.playerInfo.currentTimeLastUpdated_)*this.playerInfo.playbackRate;f>0&&(k+=Math.min(f,1))}return k}:Ta(h.o)?a[h.o]=function(k){return function(){this.playerInfo={}; this.v={};ab(this,k.o,arguments);return this}}(h):Ua(h.o)?a[h.o]=function(k){return function(){var f=k.o,d=0; f.search("get")===0?d=3:f.search("is")===0&&(d=2);return this.playerInfo[f.charAt(d).toLowerCase()+f.substring(d+1)]}}(h):a[h.o]=function(k){return function(){ab(this,k.o,arguments); return this}}(h))}finally{c&&!c.done&&(e=b.return)&&e.call(b)}} n.getVideoEmbedCode=function(){var a=""+Y(this,"host")+Xa(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 e=this.videoTitle;a=Ka(a);e=Ka(e!=null?e:"YouTube video player");return'')}; n.getOptions=function(a){return this.v.namespaces?a?this.v[a]?this.v[a].options||[]:[]:this.v.namespaces||[]:[]}; n.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