-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathembed.js
More file actions
247 lines (244 loc) · 52.2 KB
/
embed.js
File metadata and controls
247 lines (244 loc) · 52.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
(function(g){var window=this;/*
SPDX-License-Identifier: Apache-2.0 */
/*
Copyright Google LLC All Rights Reserved.
Use of this source code is governed by an MIT-style license that can be
found in the LICENSE file at https://angular.io/license
*/
/*
Copyright 2017 Google LLC
SPDX-License-Identifier: BSD-3-Clause
*/
'use strict';var Qnb=function(a){a.mutedAutoplay=!1;a.endSeconds=NaN;a.limitedPlaybackDurationInSeconds=NaN;g.gT(a)},Rnb=function(){return{I:"svg",
W:{height:"100%",version:"1.1",viewBox:"0 0 110 26",width:"100%"},V:[{I:"path",Ac:!0,S:"ytp-svg-fill",W:{d:"M 16.68,.99 C 13.55,1.03 7.02,1.16 4.99,1.68 c -1.49,.4 -2.59,1.6 -2.99,3 -0.69,2.7 -0.68,8.31 -0.68,8.31 0,0 -0.01,5.61 .68,8.31 .39,1.5 1.59,2.6 2.99,3 2.69,.7 13.40,.68 13.40,.68 0,0 10.70,.01 13.40,-0.68 1.5,-0.4 2.59,-1.6 2.99,-3 .69,-2.7 .68,-8.31 .68,-8.31 0,0 .11,-5.61 -0.68,-8.31 -0.4,-1.5 -1.59,-2.6 -2.99,-3 C 29.11,.98 18.40,.99 18.40,.99 c 0,0 -0.67,-0.01 -1.71,0 z m 72.21,.90 0,21.28 2.78,0 .31,-1.37 .09,0 c .3,.5 .71,.88 1.21,1.18 .5,.3 1.08,.40 1.68,.40 1.1,0 1.99,-0.49 2.49,-1.59 .5,-1.1 .81,-2.70 .81,-4.90 l 0,-2.40 c 0,-1.6 -0.11,-2.90 -0.31,-3.90 -0.2,-0.89 -0.5,-1.59 -1,-2.09 -0.5,-0.4 -1.10,-0.59 -1.90,-0.59 -0.59,0 -1.18,.19 -1.68,.49 -0.49,.3 -1.01,.80 -1.21,1.40 l 0,-7.90 -3.28,0 z m -49.99,.78 3.90,13.90 .18,6.71 3.31,0 0,-6.71 3.87,-13.90 -3.37,0 -1.40,6.31 c -0.4,1.89 -0.71,3.19 -0.81,3.99 l -0.09,0 c -0.2,-1.1 -0.51,-2.4 -0.81,-3.99 l -1.37,-6.31 -3.40,0 z m 29.59,0 0,2.71 3.40,0 0,17.90 3.28,0 0,-17.90 3.40,0 c 0,0 .00,-2.71 -0.09,-2.71 l -9.99,0 z m -53.49,5.12 8.90,5.18 -8.90,5.09 0,-10.28 z m 89.40,.09 c -1.7,0 -2.89,.59 -3.59,1.59 -0.69,.99 -0.99,2.60 -0.99,4.90 l 0,2.59 c 0,2.2 .30,3.90 .99,4.90 .7,1.1 1.8,1.59 3.5,1.59 1.4,0 2.38,-0.3 3.18,-1 .7,-0.7 1.09,-1.69 1.09,-3.09 l 0,-0.5 -2.90,-0.21 c 0,1 -0.08,1.6 -0.28,2 -0.1,.4 -0.5,.62 -1,.62 -0.3,0 -0.61,-0.11 -0.81,-0.31 -0.2,-0.3 -0.30,-0.59 -0.40,-1.09 -0.1,-0.5 -0.09,-1.21 -0.09,-2.21 l 0,-0.78 5.71,-0.09 0,-2.62 c 0,-1.6 -0.10,-2.78 -0.40,-3.68 -0.2,-0.89 -0.71,-1.59 -1.31,-1.99 -0.7,-0.4 -1.48,-0.59 -2.68,-0.59 z m -50.49,.09 c -1.09,0 -2.01,.18 -2.71,.68 -0.7,.4 -1.2,1.12 -1.49,2.12 -0.3,1 -0.5,2.27 -0.5,3.87 l 0,2.21 c 0,1.5 .10,2.78 .40,3.78 .2,.9 .70,1.62 1.40,2.12 .69,.5 1.71,.68 2.81,.78 1.19,0 2.08,-0.28 2.78,-0.68 .69,-0.4 1.09,-1.09 1.49,-2.09 .39,-1 .49,-2.30 .49,-3.90 l 0,-2.21 c 0,-1.6 -0.2,-2.87 -0.49,-3.87 -0.3,-0.89 -0.8,-1.62 -1.49,-2.12 -0.7,-0.5 -1.58,-0.68 -2.68,-0.68 z m 12.18,.09 0,11.90 c -0.1,.3 -0.29,.48 -0.59,.68 -0.2,.2 -0.51,.31 -0.81,.31 -0.3,0 -0.58,-0.10 -0.68,-0.40 -0.1,-0.3 -0.18,-0.70 -0.18,-1.40 l 0,-10.99 -3.40,0 0,11.21 c 0,1.4 .18,2.39 .68,3.09 .49,.7 1.21,1 2.21,1 1.4,0 2.48,-0.69 3.18,-2.09 l .09,0 .31,1.78 2.59,0 0,-14.99 c 0,0 -3.40,.00 -3.40,-0.09 z m 17.31,0 0,11.90 c -0.1,.3 -0.29,.48 -0.59,.68 -0.2,.2 -0.51,.31 -0.81,.31 -0.3,0 -0.58,-0.10 -0.68,-0.40 -0.1,-0.3 -0.21,-0.70 -0.21,-1.40 l 0,-10.99 -3.40,0 0,11.21 c 0,1.4 .21,2.39 .71,3.09 .5,.7 1.18,1 2.18,1 1.39,0 2.51,-0.69 3.21,-2.09 l .09,0 .28,1.78 2.62,0 0,-14.99 c 0,0 -3.40,.00 -3.40,-0.09 z m 20.90,2.09 c .4,0 .58,.11 .78,.31 .2,.3 .30,.59 .40,1.09 .1,.5 .09,1.21 .09,2.21 l 0,1.09 -2.5,0 0,-1.09 c 0,-1 -0.00,-1.71 .09,-2.21 0,-0.4 .11,-0.8 .31,-1 .2,-0.3 .51,-0.40 .81,-0.40 z m -50.49,.12 c .5,0 .8,.18 1,.68 .19,.5 .28,1.30 .28,2.40 l 0,4.68 c 0,1.1 -0.08,1.90 -0.28,2.40 -0.2,.5 -0.5,.68 -1,.68 -0.5,0 -0.79,-0.18 -0.99,-0.68 -0.2,-0.5 -0.31,-1.30 -0.31,-2.40 l 0,-4.68 c 0,-1.1 .11,-1.90 .31,-2.40 .2,-0.5 .49,-0.68 .99,-0.68 z m 39.68,.09 c .3,0 .61,.10 .81,.40 .2,.3 .27,.67 .37,1.37 .1,.6 .12,1.51 .12,2.71 l .09,1.90 c 0,1.1 .00,1.99 -0.09,2.59 -0.1,.6 -0.19,1.08 -0.49,1.28 -0.2,.3 -0.50,.40 -0.90,.40 -0.3,0 -0.51,-0.08 -0.81,-0.18 -0.2,-0.1 -0.39,-0.29 -0.59,-0.59 l 0,-8.5 c .1,-0.4 .29,-0.7 .59,-1 .3,-0.3 .60,-0.40 .90,-0.40 z"}}]}},
Snb=function(a){var b=r5;
try{return r5=!1,a()}finally{r5=b}},Tnb=function(a,b){var c=g.Ja.apply(2,arguments),d;
b=null!=(d=b)?d:{};return{type:a,props:b,children:c}},Unb=function(a){return a.children},Vnb=function(a){var b={},c;
for(c in a)b={RQ:b.RQ,JP:b.JP},b.RQ=s5[c],b.JP=a[c],s5[c]=function(d){return function(){var e=g.Ja.apply(0,arguments);d.RQ.apply(null,g.oa(e));d.JP.apply(null,g.oa(e))}}(b)},Znb=function(a){function b(){return void Wnb(c)}
var c=Xnb();Ynb(c,function(){return void a(b,c)})},$nb=function(a){if(t5){var b;
(b=t5).UC||(b.UC=[]);t5.UC.push(a)}},Ynb=function(a,b){var c=t5;
t5=a;try{return b()}finally{t5=c}},Xnb=function(){var a={};
aob(a);return a},aob=function(a){if(t5){var b;
(b=t5).RE||(b.RE=[]);t5.RE.push(a)}},bob=function(a){var b;
null==(b=a.RE)||b.forEach(Wnb);a.RE&&(a.RE=[]);if(a.UC){b=g.v(a.UC);for(var c=b.next();!c.done;c=b.next())c=c.value,c();a.UC=[]}},Wnb=function(a){if(!a.isDisposed){a.isDisposed=!0;
var b;null==(b=a.h9)||b.call(a);bob(a)}},u5=function(a){this.props=a;
this.B=!1},cob=function(){},v5=function(a,b){for(;a.length>b;)a.pop()},dob=function(a){a=Array(a);
v5(a,0);return a},eob=function(a,b,c){if(null==c)a.removeAttribute(b);
else{var d=0===b.lastIndexOf("xml:",0)?"http://www.w3.org/XML/1998/namespace":0===b.lastIndexOf("xlink:",0)?"http://www.w3.org/1999/xlink":null;d?a.setAttributeNS(d,b,c):a.setAttribute(b,c)}},gob=function(a,b,c){a=a.style;
if("string"===typeof c)a.cssText=c;else{a.cssText="";for(var d in c)if(fob.call(c,d)){b=d;var e=c[d];0<=b.indexOf("-")?a.setProperty(b,e):a[b]=e}}},hob=function(a,b,c){var d=typeof c;
"object"===d||"function"===d?a[b]=c:eob(a,b,c)},iob=function(){var a=new cob;
a.__default=hob;a.style=gob;return a},job=function(a,b,c,d){(d[b]||d.__default)(a,b,c)},kob=function(a){this.created=[];
this.j=[];this.node=a},lob=function(a,b){this.j=null;
this.B=a;this.key=b;this.text=void 0},mob=function(a,b,c){b=new lob(b,c);
return a.__incrementalDOMData=b},w5=function(a,b){if(a.__incrementalDOMData)return a.__incrementalDOMData;
var c=1===a.nodeType?a.localName:a.nodeName,d=1===a.nodeType?a.getAttribute("key"):null;b=mob(a,c,1===a.nodeType?d||b:null);if(1===a.nodeType&&(a=a.attributes,c=a.length)){d=b.j||(b.j=dob(2*c));for(var e=0,f=0;e<c;e+=1,f+=2){var h=a[e],l=h.value;d[f]=h.name;d[f+1]=l}}return b},nob=function(a,b,c,d,e){return b==c&&d==e},A5=function(a){for(var b=x5,c=y5();c!==a;){var d=c.nextSibling;
b.removeChild(c);z5.j.push(c);c=d}},y5=function(){return B5?B5.nextSibling:x5.firstChild},oob=function(a,b){B5=y5();
var c;a:{if(c=B5){do{var d=c,e=a,f=b,h=w5(d,f);if(C5(d,e,h.B,f,h.key))break a}while(b&&(c=c.nextSibling))}c=null}c||("#text"===a?(a=D5.createTextNode(""),mob(a,"#text",null)):(c=D5,d=x5,"function"===typeof a?c=new a:c=(d="svg"===a?"http://www.w3.org/2000/svg":"math"===a?"http://www.w3.org/1998/Math/MathML":null==d||"foreignObject"===w5(d).B?null:d.namespaceURI)?c.createElementNS(d,a):c.createElement(a),mob(c,a,b),a=c),z5.created.push(a),c=a);a=c;if(a!==B5){if(0<=E5.indexOf(a))for(b=x5,c=a.nextSibling,
d=B5;null!==d&&d!==a;)e=d.nextSibling,b.insertBefore(d,c),d=e;else x5.insertBefore(a,B5);B5=a}},pob=function(a,b){oob(a,b);
x5=B5;B5=null;return x5},rob=function(a,b){b=void 0===b?{}:b;
var c=void 0===b.matches?nob:b.matches;return function(d,e,f){var h=z5,l=D5,m=E5,n=F5,p=B5,q=x5,r=C5;D5=d.ownerDocument;z5=new kob(d);C5=c;F5=[];B5=null;var t=x5=d.parentNode,u,x=qob.call(d);if((u=11===x.nodeType||9===x.nodeType?x.activeElement:null)&&d.contains(u)){for(x=[];u!==t;)x.push(u),u=u.parentNode||(t?u.host:null);t=x}else t=[];E5=t;try{return a(d,e,f)}finally{d=z5,G5&&0<d.j.length&&G5(d.j),D5=l,z5=h,C5=r,F5=n,B5=p,x5=q,E5=m}}},sob=function(a,b,c,d){H5.push(job);
H5.push(a);H5.push(b);H5.push(c);H5.push(d)},tob=function(a){oob("#text",null);
var b=B5;var c=w5(b);if(c.text!==a){c=c.text=a;for(var d=1;d<arguments.length;d+=1)c=(0,arguments[d])(c);b.data!==c&&(b.data=c)}},vob=function(a){uob.push(a);
if(a.attributes){var b=a.attributes,c;for(c in b)I5.attributes[c]=b[c](I5.attributes[c])}a.UZ&&Vnb(a.UZ)},wob=function(){if(r5)throw Error("Reactive components are not allowed to use useState or other memoization based hooks.");
return J5},yob=function(a){u5.call(this,a);
var b=this;this.Hz=[];this.D=0;Znb(function(c,d){b.G=c;b.K=d});
$nb(function(){xob(b,b.el)})},xob=function(a,b){if(!a.B&&b){a.B=!0;
s5.tH(a);try{a.tH()}catch(e){var c,d;null==(d=I5.TD)||d.call(I5,null==(c=a.j)?void 0:c.EC,e)}a.el=null;b.__instance&&delete b.__instance}},zob=function(a){for(var b=0;b<a.length;b++){var c=void 0,d=void 0,e=void 0,f=a[b];
f&&(null==(e=f._disposeRef)||e.call(f),null==(d=f.EG)||d.call(f),f.__instance&&(d=f.__instance,xob(d,f),null==(c=d.G)||c.call(d)),zob(f.childNodes))}},Bob=function(a){1===Aob.push(a)&&requestAnimationFrame(function(){setTimeout(function(){var b=[].concat(g.oa(Aob));
Aob=[];b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;try{zob(c)}catch(e){var d=c=void 0;null==(d=(c=I5).TD)||d.call(c,"unknown",e)}}})})},L5=function(a,b){return K5.apply(null,[a,
b].concat(g.oa(g.Ja.apply(2,arguments))))},Cob=function(a){Snb(function(){a:{var b=K5;
K5=Tnb;try{var c=a();break a}finally{K5=b}c=void 0}return c})},Dob=function(a,b){return Object.is(a,b)},M5=function(a){var b=Eob;
Eob=a;return b},Fob=function(a){a.fm=!0;
if(void 0!==a.nk){var b=N5;N5=!0;try{for(var c=g.v(a.nk),d=c.next();!d.done;d=c.next()){var e=d.value;e.fm||Fob(e)}}finally{N5=b}}var f;null==(f=a.HV)||f.call(a,a)},Gob=function(a){a&&(a.KP=0);
return M5(a)},Job=function(a,b){M5(b);
if(a&&void 0!==a.xk&&void 0!==a.Ir&&void 0!==a.eB){if(Hob(a))for(b=a.KP;b<a.xk.length;b++)Iob(a.xk[b],a.Ir[b]);for(;a.xk.length>a.KP;)a.xk.pop(),a.eB.pop(),a.Ir.pop()}},Kob=function(a){O5(a);
for(var b=0;b<a.xk.length;b++){var c=a.xk[b],d=a.eB[b];if(d!==c.version)return!0;if(!Hob(c)||c.fm)if(c.fm||1!==c.PX)(c.NZ(c)||Kob(c))&&c.OZ(c),c.fm=!1,c.PX=1;if(d!==c.version)return!0}return!1},Iob=function(a,b){null!=a.nk||(a.nk=[]);
null!=a.uw||(a.uw=[]);O5(a);if(1===a.nk.length)for(var c=0;c<a.xk.length;c++)Iob(a.xk[c],a.Ir[c]);c=a.nk.length-1;a.nk[b]=a.nk[c];a.uw[b]=a.uw[c];a.nk.length--;a.uw.length--;b<a.nk.length&&(c=a.uw[b],a=a.nk[b],O5(a),a.Ir[c]=b)},Hob=function(a){var b,c;
return a.GV||0<(null!=(c=null==a?void 0:null==(b=a.nk)?void 0:b.length)?c:0)},O5=function(a){null!=a.xk||(a.xk=[]);
null!=a.Ir||(a.Ir=[]);null!=a.eB||(a.eB=[])},Oob=function(a,b){function c(e){d.Sy=e}
var d=Object.create(Lob);d.FV=!0;d.Ts=a;d.schedule=b;a={};d.iB=(a.notify=function(){return Fob(d)},a.wF=function(){if(null!==d.Ts){if(N5)throw Error("Schedulers cannot synchronously execute watches while scheduling.");
d.fm=!1;if(!d.nX||Kob(d)){d.nX=!0;var e=Gob(d);try{d.Sy(),d.Sy=Mob,d.Ts(c)}finally{Job(d,e)}}}},a.Jhb=function(){return d.Sy()},a.destroy=function(){if(null!==d.Ts||null!==d.schedule){O5(d);
if(Hob(d))for(var e=0;e<d.xk.length;e++)Iob(d.xk[e],d.Ir[e]);d.xk.length=d.eB.length=d.Ir.length=0;d.nk&&(d.nk.length=d.uw.length=0);d.Sy();d.Ts=null;d.schedule=null;d.Sy=Mob}},a[Nob]=d,a);
return d.iB},Mob=function(){},Qob=function(a){a.isDisposed||Pob.add(a)},Rob=function(a){a.isDisposed||(P5.add(a),1===P5.size&&Promise.resolve().then(function(){for(var b=g.v(P5),c=b.next();!c.done;c=b.next())c=c.value,P5.delete(c),c.wF()}))},Sob=function(a,b){var c=Oob(function(){c.isDisposed||(bob(c),Ynb(c,b))},a);
aob(c);c.h9=function(){c.destroy();Pob.delete(c);Wnb(c)};
return c},Tob=function(a){a=Sob(Rob,a);
Rob(a)},Wob=function(a,b,c){if(Object.hasOwnProperty.call(Uob,a)&&(a=Uob[a],Object.hasOwnProperty.call(a,b)&&(a=a[b],a instanceof Array))){for(var d=null,e=!1,f=0,h=a.length;f<h;++f){var l=a[f],m=l.ji;
if(!m)return l.Bd;null===d&&(d={});m=Object.hasOwnProperty.call(d,m)?d[m]:d[m]=c(m);if(m===l.Ki)return l.Bd;null==m&&(e=!0)}if(e)return null}b=Vob[b];return"number"===typeof b?b:null},Q5=function(){this.EX=""},Yob=function(a,b,c){if(null===c||void 0===c)return c;
var d=Wob(a.tagName.toLowerCase(),b,function(){throw Error("Contingent attribute/property lookups are not supported.");});
if(null===d)return c;d=Xob[d];var e;if(null==(e=d.Jt)?0:e.call(d,c)){if(d.Yr)return d.Yr(c);throw Error("Value Handler's unwrap function does not exist.");}c=c&&c.En?c.Uk():c;return d.Hq?d.Hq(a.tagName,b,String(c)):c},$ob=function(a,b){var c=Zob;
null==a.EG&&null!=a.FG&&Znb(function(d){a.EG=d;Sob(Qob,function(){for(var e=a.FG,f=[],h=0;h<e.length;h++){var l=e[h],m=b[l]();f[h]!==m&&(f[h]=m,c(a,l,m))}}).wF()})},apb=function(a){var b=document.createTextNode("");
Znb(function(c){b.y4=!0;b.EG=c;Sob(Qob,function(){var d=a();null==d&&(d="");var e=typeof d;if("object"===e||"function"===e)throw Error("Invalid text node kind: "+e+". Text nodes must be primitives like numbers, strings, or null, but an object type was passed");b.textContent=String(d)}).wF()});
return b},Zob=function(a,b,c){!1===c&&bpb.has(b)?eob(a,b,null):"idomKey"!==b&&"skip"!==b&&"skipchildren"!==b&&"children"!==b&&"el"!==b&&(b.startsWith("on")?":"===b[2]?a["on"+b.slice(3)]=c.q6(0):cpb(a,b,c):"function"!==typeof c||null!=a.EG?(I5.J5&&(c=Yob(a,b,c)),"style"===b?dpb(a,b,c):b.startsWith("prop:")?a[b.slice(5)]=c:cpb(a,b,c)):(a.FG||(a.FG=[]),a.FG.push(b)))},epb=function(a,b){if(null==b?0:b.el){var c=b.el;
if("function"===typeof c)c(a);else{var d;null==(d=c.l$)||d.call(c,a);a._disposeRef||(a._disposeRef=function(){var e;null==(e=c.eaa)||e.call(c);delete a._disposeRef},$nb(function(){var e;
return void(null==(e=a._disposeRef)?void 0:e.call(a))}))}}},fpb=function(a){if("function"===typeof a.children)return a.children(),null;
a=g.v(a.children);for(var b=a.next();!b.done;b=a.next())b=b.value,b();return null},ipb=function(a,b,c){((void 0===c?0:c)?gpb:hpb)(a,function(){R5(b)})},R5=function(a){if(void 0!==a&&null!==a)if(Array.isArray(a)){a=g.v(a);
for(var b=a.next();!b.done;b=a.next())R5(b.value)}else if(a instanceof g.Sd||a instanceof g.Xd||a instanceof g.ae)tob(a.toString());else if(a instanceof Node){if(y5()!==a)throw Error("Encountered a real dom node where a vdom node was expected. Real dom nodes should only come from the reactive renderer, and they can't be passed in JSX expressions directly. Tag name: "+a.tagName);B5=y5()}else{var c=typeof a;if("boolean"===c||"number"===c||"string"===c)tob(a);else if("function"===typeof a){b=x5;var d=
y5();d&&d.y4||b.insertBefore(apb(a),d);B5=y5()}else{if("string"===typeof a.type){a.Bq||pob(a.type,a.props.idomKey);d=x5;for(var e in a.props)if(a.props[e]!==jpb){var f=a.props[e],h=F5;h.push(e);h.push(f)}f=I5.attributes;f=void 0===f?kpb:f;h=x5;var l=w5(h),m=f;f=F5;l=l.j||(l.j=dob(f.length));for(var n=!l.length||!1,p=0;p<f.length;p+=2){e=f[p];if(n)l[p]=e;else if(l[p]!==e)break;var q=f[p+1];if(n||l[p+1]!==q)l[p+1]=q,sob(h,e,q,m)}if(p<f.length||p<l.length){for(p=n=p;p<l.length;p+=2)S5[l[p]]=l[p+1];for(p=
n;p<f.length;p+=2)n=f[p],e=f[p+1],S5[n]!==e&&sob(h,n,e,m),l[p]=n,l[p+1]=e,delete S5[n];v5(l,f.length);for(b in S5)sob(h,b,void 0,m),delete S5[b]}b=lpb;lpb=h=H5.length;for(m=b;m<h;m+=5)(0,H5[m])(H5[m+1],H5[m+2],H5[m+3],H5[m+4]);lpb=b;v5(H5,b);v5(f,0);$ob(d,a.props);(a.props.skip||a.props.skipchildren)&&x5.hasChildNodes()?B5=x5.lastChild:R5(a.children);A5(null);B5=x5;x5=x5.parentNode;a.Bq&&(a.Bq=!1);epb(d,a.props);return d}if(a.type===Unb)R5(a.children);else{try{h=a.type;var r=h.EC;if(h===fpb)a.props.children=
a.children,h(a.props);else{0<a.children.length&&(a.props.children=a.children);var t;(t=a.props).idomKey||(t.idomKey=h);b=!1;if(r){var u=pob(r,a.props.idomKey);a.Bq=!0;m=u.__instance}if(!m){b=!0;var x=a.props,B;if(void 0===(null==(B=h.prototype)?void 0:B.lB)){var F=new yob(x);F.C=h}else F=new h(x);F.j=h;F.qM={LP:F.state,TO:!1};m=F;m.props=null;u&&(u.__instance=m,m.el=u)}var G,H=null!=(G=m.qM)?G:{LP:m.state,TO:!1},O=H.TO,P=H.LP;m.qM=void 0;h.n6&&(P=h.n6(a.props,P));b=!b&&!O&&!1;m.props=a.props;m.state=
P;if(b)B5=x5.lastChild;else{b=m;s5.kV(b);var Y=b.lB(b.props);Y?(b.props.idomKey&&(Y.props.idomKey=b.props.idomKey),q=Y):q=void 0;if(b=q)if(b.Bq=a.Bq,l=R5(b),a.Bq=b.Bq,!h.EC)if(l)h.EC=l.tagName.toLowerCase(),l.__instance=m,m.el=l;else if(null==(p=m.Hz)?0:p.length)null==(n=I5.TD)||n.call(I5,"unknown",Error("A component used hooks, but failed to return a host element"));m.sH();s5.sH(m)}}}catch(la){b=la,null==(f=I5.TD)||f.call(I5,null==(d=a.type)?void 0:d.EC,b)}a.Bq&&(A5(null),B5=x5,x5=x5.parentNode,
a.Bq=!1)}}}},mpb=function(a){Tob(function(){a:{var b=M5(null);
try{var c=a();break a}finally{M5(b)}c=void 0}if(void 0!==c)throw Error("Reactive components do not support returning a cleanup function from onInit. Use onCleanup instead.");})},npb=function(a){var b=wob();
if(null==b)throw Error("A valid hook context was not found. Please ensure you are using components from TSX and not invoking the component function directly");var c=b.D++;b.Hz||(b.Hz=[]);var d=b.Hz;d[c]||(d[c]={key:a,host:b});if(a!==d[c].key){var e,f;a=(null==(e=b.j)?void 0:e.name)||(null==(f=b.C)?void 0:f.name);throw Error("Hook called out of order in "+a+". Hooks must be invoked unconditionally and in the same order every render. This could happen if you conditionally invoke a hook.");}return d[c]},
opb=function(a,b){return!a||a.length!==(null==b?void 0:b.length)||a.some(function(c,d){return c!==b[d]})},ppb=function(a,b){var c=npb("onChange"),d=wob();
opb(c.Gg,b)&&(c.Gg=b,c.yZ=a,d.Gy||(d.Gy=[]),d.Gy.push(c))},T5=function(a,b){ppb(a,b)},qpb=function(a){r5?mpb(a):ppb(function(){return Snb(a)},[])},spb=function(a){var b=[].concat(g.oa(a));
a.length=0;a=g.v(b);for(b=a.next();!b.done;b=a.next()){b=b.value;rpb(b);var c=b.yZ;b.yZ=null;if(c=null==c?void 0:c())b.xZ=c}},rpb=function(a){var b=a.xZ;
a.xZ=null;null==b||b()},tpb=function(a){var b=null,c;
return{value:null,l$:function(d){if(c&&d!==c){var e;null==(e=b)||e();c._disposeRef=void 0}c=d;b=a(d)||null},
eaa:function(){var d;null==(d=b)||d()}}},U5=function(a){var b=[];
if(r5)return a();var c=npb("useMemoInternal");opb(c.Gg,b)&&(c.Gg=b,c.value=a());return c.value},V5=function(){var a=U5(function(){return tpb(function(b){a.value=b;
return function(){a.value=null}})});
return a},upb=function(a){return{q6:function(){return function(b){!0!==a(b)&&b.stopPropagation()}}}},vpb=function(a){var b=wob(),c=U5(function(){return{value:"function"===typeof a?a():a}});
return[c.value,function(d){if(null!==J5)throw Error("Can't set state during rendering");c.value="function"===typeof d?d(c.value):d;b.qM={LP:b.state,TO:!0};Cob(function(){if(b.el){var e,f={props:b.props,type:b.j,children:null!=(e=b.props.children)?e:[]};try{ipb(b.el,f,!0)}catch(m){var h,l;null==(l=I5.TD)||l.call(I5,null==(h=b.j)?void 0:h.EC,m)}}})}]},wpb=function(){return U5(function(){var a=null;
return{get value(){return a},set value(b){if(null!==J5)throw Error("Can't update value during rendering");a=b}}})},Apb=function(a){var b=xpb;
ypb.push(a);zpb||(b(function(){for(var c=g.v(ypb),d=c.next();!d.done;d=c.next())d=d.value,d();ypb.length=0;zpb=!1}),zpb=!0)},xpb=function(a){Promise.resolve().then(a)},Bpb=function(a){a=g.v(vpb(a));
var b=a.next().value,c=a.next().value;return[b,function(d){Apb(function(){c(d)})}]},Cpb=function(a){function b(){var l=g.rU(a.J)?"Hide more shorts":"Hide more videos";
e(l)}
var c=g.v(vpb("Hide more videos")),d=c.next().value,e=c.next().value;T5(function(){var l=a.J;l.addEventListener("videodatachange",b);return function(){l.removeEventListener("videodatachange",b)}},[a.J]);
var f=U5(function(){return(new g.XF(g.jG())).element}),h=V5();
qpb(function(){h.value.appendChild(f)});
return L5("button",{class:"ytp-button ytp-collapse","aria-label":d,"on:click":upb(function(){a.action&&a.action()})},L5("div",{class:"ytp-collapse-icon",
el:h,skip:!0}))},Dpb=function(a){function b(){var h=g.rU(a.J)?"More shorts":"More videos";
e(h)}
var c=g.v(Bpb("More videos")),d=c.next().value,e=c.next().value,f=V5();T5(function(){a.iB&&(a.iB.value=f.value)},[a.iB]);
T5(function(){var h=a.J;h.addEventListener("videodatachange",b);return function(){h.removeEventListener("videodatachange",b)}},[a.J]);
return L5("button",{el:f,class:"ytp-button ytp-expand","on:click":upb(function(){a.action&&a.action()})},d)},Epb=function(a,b){var c=wpb();
T5(function(){var d=new g.u2(a);d.B=!0;c.value=d;return function(){var e;null==(e=c.value)||e.dispose()}},[a,
b]);return c},Fpb=function(a){function b(x){a:{var B=g.v([1,
16,32]);for(var F=B.next();!F.done;F=B.next())if(g.JG(x,F.value)){B=!0;break a}B=!1}if(!B){var G;null!=(G=p.value)&&G.XD()&&h(g.JG(x,4)&&!g.JG(x,2)&&!g.JG(x,1024))}}
function c(){b(a.J.Sb())}
function d(x){b(x.state)}
var e=g.v(Bpb(!1)),f=e.next().value,h=e.next().value,l=g.v(Bpb(!1));e=l.next().value;var m=l.next().value,n=V5(),p=Epb(a.J,a.qd),q=V5();l=wpb();var r=wpb();T5(function(){var x=a.J,B=g.rU(x)?157212:172777;r.value=new g.J;x.createClientVe(q.value,r.value,B);x.addEventListener("presentingplayerstatechange",d);x.addEventListener("videodatachange",c);B="0"===x.U().controlsType;g.Ou(x.getRootNode(),"ytp-pause-overlay-controls-hidden",B);return function(){x.removeEventListener("videodatachange",c);x.removeEventListener("presentingplayerstatechange",
d);var F;null==(F=r.value)||F.dispose()}},[a.J]);
T5(function(){var x;null==(x=p.value)||x.Da(n.value)},[p]);
var t=a.J;if(f)if(g.Ou(t.getRootNode(),"ytp-expand-pause-overlay",!e),e)l.value.focus();else{var u=p.value;g.v2(u);u.show();q.value.focus()}q.value&&t.logVisibility(q.value,f&&!e);return L5("ytp-pause-overlay",{el:q,class:"ytp-pause-overlay","aria-hidden":!f},L5(Cpb,{J:a.J,qd:a.qd,action:function(){m(!0)}}),L5(Dpb,{J:a.J,
qd:a.qd,action:function(){m(!1)},
iB:l}),L5("div",{el:n,skip:!0}))},Gpb=function(a){g.U.call(this,{I:"div",
S:"ytp-related-on-error-overlay"});var b=this;this.api=a;this.K=this.B=0;this.G=new g.PK(this);this.j=[];this.suggestionData=[];this.columns=this.containerWidth=0;this.title=new g.U({I:"h2",S:"ytp-related-title",ya:"{{title}}"});this.previous=new g.U({I:"button",Ma:["ytp-button","ytp-previous"],W:{"aria-label":"Show previous suggested videos"},V:[g.fG()]});this.ma=new g.t2(function(f){b.suggestions.element.scrollLeft=-f});
this.D=this.C=0;this.N=!0;this.next=new g.U({I:"button",Ma:["ytp-button","ytp-next"],W:{"aria-label":"Show more suggested videos"},V:[g.gG()]});g.L(this,this.G);a=a.U();this.api.L("embeds_web_enable_pause_overlay_rounding")&&g.Ku(this.element,"ytp-error-overlay-round-corners");this.Y=a.D;g.L(this,this.title);this.title.Da(this.element);this.suggestions=new g.U({I:"div",S:"ytp-suggestions"});g.L(this,this.suggestions);this.suggestions.Da(this.element);g.L(this,this.previous);this.previous.Da(this.element);
this.previous.Qa("click",this.T1,this);g.L(this,this.ma);for(var c={Lz:0};16>c.Lz;c={Lz:c.Lz},c.Lz++){var d=new g.U({I:"a",S:"ytp-suggestion-link",W:{href:"{{link}}",target:a.Y,"aria-label":"{{aria_label}}"},V:[{I:"div",S:"ytp-suggestion-image",V:[{I:"div",W:{"data-is-live":"{{is_live}}"},S:"ytp-suggestion-duration",ya:"{{duration}}"}]},{I:"div",S:"ytp-suggestion-title",W:{title:"{{hover_title}}"},ya:"{{title}}"},{I:"div",S:"ytp-suggestion-author",ya:"{{views_or_author}}"}]});g.L(this,d);d.Da(this.suggestions.element);
var e=d.Ga("ytp-suggestion-link");g.Wr(e,"transitionDelay",c.Lz/20+"s");this.G.T(e,"click",function(f){return function(h){var l=f.Lz,m=b.suggestionData[l],n=m.sessionData;g.aS(b.api.U())&&b.api.L("web_player_log_click_before_generating_ve_conversion_params")?(b.api.logClick(b.j[l].element),l=m.Wk(),m={},g.bTa(b.api,m,"emb_rel_err"),l=g.Nl(l,m),g.OU(l,b.api,h)):g.NU(h,b.api,b.Y,n||void 0)&&b.api.Ho(m.videoId,n,m.playlistId)}}(c));
this.j.push(d)}g.L(this,this.next);this.next.Da(this.element);this.next.Qa("click",this.S1,this);this.G.T(this.api,"videodatachange",this.onVideoDataChange);this.resize(this.api.kb().getPlayerSize());this.onVideoDataChange();this.show()},Hpb=function(a,b){if(a.api.U().L("web_player_log_click_before_generating_ve_conversion_params"))for(var c=Math.floor(-a.C/(a.D+a.B)),d=Math.min(c+a.columns,a.suggestionData.length)-1;c<=d;c++)a.api.logVisibility(a.j[c].element,b)},Ipb=function(a){a.next.element.style.bottom=
a.K+"px";
a.previous.element.style.bottom=a.K+"px";var b=a.C,c=a.containerWidth-a.suggestionData.length*(a.D+a.B);g.Ou(a.element,"ytp-scroll-min",0<=b);g.Ou(a.element,"ytp-scroll-max",b<=c)},Jpb=function(a){for(var b=0;b<a.suggestionData.length;b++){var c=a.suggestionData[b],d=a.j[b],e=c.shortViewCount?c.shortViewCount:c.author,f=c.Wk(),h=a.api.U();
if(g.aS(h)&&!h.L("web_player_log_click_before_generating_ve_conversion_params")){var l={};g.dU(a.api,"addEmbedsConversionTrackingParams",[l]);f=g.Nl(f,g.zP(l,"emb_rel_err"))}d.element.style.display="";l=d.Ga("ytp-suggestion-title");g.$u.test(c.title)?l.dir="rtl":g.qgb.test(c.title)&&(l.dir="ltr");l=d.Ga("ytp-suggestion-author");g.$u.test(e)?l.dir="rtl":g.qgb.test(e)&&(l.dir="ltr");d.update({views_or_author:e,duration:c.isLivePlayback?"Live":c.lengthSeconds?g.SG(c.lengthSeconds):"",link:f,hover_title:c.title,
title:c.title,aria_label:c.ariaLabel||null,is_live:c.isLivePlayback});e=d.Ga("ytp-suggestion-image");f=c.Ug();e.style.backgroundImage=f?"url("+f+")":"";h.L("web_player_log_click_before_generating_ve_conversion_params")&&(a.api.createServerVe(d.element,d),(c=(c=c.sessionData)&&c.itct)&&a.api.setTrackingParams(d.element,c))}for(;b<a.j.length;b++)a.j[b].element.style.display="none";Ipb(a)},W5=function(a){g.ZV.call(this,a);
var b=this;this.j=null;var c=a.U(),d={I:"svg",W:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",W:{d:"M0 0h24v24H0V0z",fill:"none"}},{I:"path",W:{d:"M21.58 7.19c-.23-.86-.91-1.54-1.77-1.77C18.25 5 12 5 12 5s-6.25 0-7.81.42c-.86.23-1.54.91-1.77 1.77C2 8.75 2 12 2 12s0 3.25.42 4.81c.23.86.91 1.54 1.77 1.77C5.75 19 12 19 12 19s6.25 0 7.81-.42c.86-.23 1.54-.91 1.77-1.77C22 15.25 22 12 22 12s0-3.25-.42-4.81zM10 15V9l5.2 3-5.2 3z"}}]};g.iS(c)&&(d={I:"svg",W:{fill:"none",height:"100%",
viewBox:"0 0 25 25",width:"100%"},V:[{I:"g",W:{"clip-path":"url(#clip0)",fill:"#fff"},V:[{I:"path",W:{d:"M12.57.98C6.21.98 1.05 6.14 1.05 12.5c0 6.36 5.16 11.52 11.52 11.52 6.36 0 11.52-5.16 11.52-11.52C24.09 6.14 18.93.98 12.57.98zm0 18.34c-3.77 0-6.82-3.05-6.82-6.82 0-3.77 3.05-6.82 6.82-6.82 3.77 0 6.82 3.05 6.82 6.82 0 3.77-3.05 6.82-6.82 6.82z"}},{I:"path",W:{d:"M12.57 6.52c-3.29 0-5.98 2.68-5.98 5.98 0 3.3 2.68 5.98 5.98 5.98 3.3 0 5.98-2.68 5.98-5.98 0-3.3-2.69-5.98-5.98-5.98zm-2.25 9.38V9.1l5.88 3.4-5.88 3.4z"}}]},
{I:"defs",V:[{I:"clipPath",W:{id:"clip0"},V:[{I:"path",W:{d:"M0 0h24v24H0z",fill:"#fff",transform:"translate(.57 .5)"}}]}]}]});var e={target:c.Y},f=["ytp-small-redirect"];c.C?f.push("no-link"):(c=g.yS(c),e.href=c,e["aria-label"]="Visit YouTube to search for more videos");var h=new g.U({I:"a",Ma:f,W:e,V:[d]});h.Da(this.element);a.createClientVe(h.element,this,178053);this.T(h.element,"click",function(l){Kpb(b,l,h.element)});
g.L(this,h);a.U().C||(this.j=new Gpb(a),this.j.Da(this.element),g.L(this,this.j));this.T(a,"videodatachange",function(){b.show()});
this.resize(this.api.kb().getPlayerSize())},Kpb=function(a,b,c){b.preventDefault();
a.api.logClick(c);b=c.getAttribute("href");c={};g.dU(a.api,"addEmbedsConversionTrackingParams",[c]);b=g.id(c)?b:g.Nl(b,c);g.Nn(b)},Lpb=function(a,b){a.Ga("ytp-error-content").style.paddingTop="0px";
var c=a.Ga("ytp-error-content"),d=c.clientHeight;a.j&&a.j.resize(b,b.height-d);c.style.paddingTop=(b.height-(a.j?a.j.element.clientHeight:0))/2-d/2+"px"},Opb=function(a,b){var c=a.api.U(),d;
b.reason&&(Mpb(b.reason)?d=g.eG(b.reason):d=g.$V(g.dG(b.reason)),a.je(d,"content"));var e;b.subreason&&(Mpb(b.subreason)?e=g.eG(b.subreason):e=g.$V(g.dG(b.subreason)),a.je(e,"subreason"));if(b.proceedButton&&b.proceedButton.buttonRenderer){d=a.Ga("ytp-error-content-wrap-subreason");b=b.proceedButton.buttonRenderer;var f=g.kf("A");if(b.text&&b.text.simpleText&&(e=b.text.simpleText,f.textContent=e,!Npb(d,e)&&(!c.C||c.embedsErrorLinks))){var h;c=null==(h=g.S(null==b?void 0:b.navigationEndpoint,g.pG))?
void 0:h.url;var l;h=null==(l=g.S(null==b?void 0:b.navigationEndpoint,g.pG))?void 0:l.target;c&&(f.setAttribute("href",c),a.api.createClientVe(f,a,178424),a.T(f,"click",function(m){Kpb(a,m,f)}));
h&&f.setAttribute("target",h);l=g.kf("DIV");l.appendChild(f);d.appendChild(l)}}},Mpb=function(a){if(a.runs)for(var b=0;b<a.runs.length;b++)if(a.runs[b].navigationEndpoint)return!0;
return!1},Npb=function(a,b){a=g.Ne("A",a);
for(var c=0;c<a.length;c++)if(a[c].textContent===b)return!0;return!1},X5=function(a,b){g.U.call(this,{I:"a",
Ma:["ytp-impression-link"],W:{target:"{{target}}",href:"{{url}}","aria-label":"Watch on YouTube"},V:[{I:"div",S:"ytp-impression-link-content",W:{"aria-hidden":"true"},V:[{I:"div",S:"ytp-impression-link-text",ya:"Watch on"},{I:"div",S:"ytp-impression-link-logo",V:[Rnb()]}]}]});this.api=a;this.qd=b;this.updateValue("target",a.U().Y);this.api.createClientVe(this.element,this,96714);this.T(this.api,"presentingplayerstatechange",this.vk);this.T(this.api,"videoplayerreset",this.j);this.T(this.element,"click",
this.onClick);this.j()},Ppb=function(a){var b={};
g.dU(a.api,"addEmbedsConversionTrackingParams",[b]);return g.Nl(a.api.getVideoUrl(),g.zP(b,"emb_imp_woyt"))},Y5=function(a){g.U.call(this,{I:"div",
Ma:["ytp-mobile-a11y-hidden-seek-button"],V:[{I:"button",Ma:["ytp-mobile-a11y-hidden-seek-button-rewind","ytp-button"],W:{"aria-label":"Rewind 10 seconds","aria-hidden":"false"}},{I:"button",Ma:["ytp-mobile-a11y-hidden-seek-button-forward","ytp-button"],W:{"aria-label":"Fast forward 10 seconds","aria-hidden":"false"}}]});this.api=a;this.j=this.Ga("ytp-mobile-a11y-hidden-seek-button-rewind");this.forwardButton=this.Ga("ytp-mobile-a11y-hidden-seek-button-forward");this.api.createClientVe(this.j,this,
141902);this.api.createClientVe(this.forwardButton,this,141903);this.T(this.api,"presentingplayerstatechange",this.vk);this.T(this.j,"click",this.B);this.T(this.forwardButton,"click",this.C);this.vk()},Z5=function(a){g.U.call(this,{I:"div",
S:"ytp-muted-autoplay-endscreen-overlay",V:[{I:"div",S:"ytp-muted-autoplay-end-panel",V:[{I:"button",Ma:["ytp-muted-autoplay-end-text","ytp-button"],ya:"{{text}}"}]}]});this.api=a;this.D=this.Ga("ytp-muted-autoplay-end-panel");this.B=!1;this.api.createClientVe(this.element,this,52428);this.T(this.api,"presentingplayerstatechange",this.C);this.T(a,"onMutedAutoplayStarts",this.onMutedAutoplayStarts);this.Qa("click",this.onClick);this.hide()},$5=function(a){var b=a.U();
g.U.call(this,{I:"a",Ma:["ytp-watermark","yt-uix-sessionlink"],W:{target:b.Y,href:"{{url}}","aria-label":g.fK("Watch on $WEBSITE",{WEBSITE:g.nS(b)}),"data-sessionlink":"feature=player-watermark"},V:[Rnb()]});this.api=a;this.j=null;this.B=!1;this.state=a.Sb();a.createClientVe(this.element,this,76758);this.T(a,"videodatachange",this.B0);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"appresize",this.Ib);this.Ec(this.state);this.onVideoDataChange();
this.Ib(a.kb().getPlayerSize())},Spb=function(a){g.U.call(this,{I:"div",
S:"ytp-muted-autoplay-overlay",V:[{I:"div",S:"ytp-muted-autoplay-bottom-buttons",V:[{I:"button",Ma:["ytp-muted-autoplay-equalizer","ytp-button"],W:{"aria-label":"Muted Playback Indicator"},V:[{I:"div",Ma:["ytp-muted-autoplay-equalizer-icon"],V:[{I:"svg",W:{height:"100%",version:"1.1",viewBox:"-4 -4 24 24",width:"100%"},V:[{I:"g",W:{fill:"#fff"},V:[{I:"rect",S:"ytp-equalizer-bar-left",W:{height:"9",width:"4",x:"1",y:"7"}},{I:"rect",S:"ytp-equalizer-bar-middle",W:{height:"14",width:"4",x:"6",y:"2"}},
{I:"rect",S:"ytp-equalizer-bar-right",W:{height:"12",width:"4",x:"11",y:"4"}}]}]}]}]}]}]});var b=this;this.api=a;this.bottomButtons=this.Ga("ytp-muted-autoplay-bottom-buttons");this.Ga("ytp-muted-autoplay-equalizer");this.C=new g.Cu(this.s7,4E3,this);this.B=!1;a.createClientVe(this.element,this,39306);this.T(a,"presentingplayerstatechange",this.zL);this.T(a,"onMutedAutoplayStarts",function(){Qpb(b);b.zL();Rpb(b);b.B=!1});
this.T(a,"onAutoplayBlocked",this.onAutoplayBlocked);this.Qa("click",this.onClick);this.T(a,"onMutedAutoplayEnds",this.onMutedAutoplayEnds);this.hide();g.eU(a.app)&&(Qpb(this),this.zL(),Rpb(this))},Rpb=function(a){a.Db&&a.j&&(a.j.show(),a.C.start())},Qpb=function(a){a.watermark||(a.watermark=new $5(a.api),g.L(a,a.watermark),a.watermark.Da(a.bottomButtons,0),g.Ou(a.watermark.element,"ytp-muted-autoplay-watermark",!0),a.j=new g.CG(a.watermark,0,!0,100),g.L(a,a.j))},a6=function(a){g.U.call(this,{I:"div",
S:"ytp-pause-overlay",W:{tabIndex:"-1"}});var b=this;this.api=a;this.C=new g.PK(this);this.D=new g.CG(this,1E3,!1,100,function(){b.j.B=!1},function(){b.j.B=!0});
this.B=!1;this.expandButton=new g.U({I:"button",Ma:["ytp-button","ytp-expand"],ya:g.rU(this.api)?"More shorts":"More videos"});"0"===a.U().controlsType&&g.Ku(a.getRootNode(),"ytp-pause-overlay-controls-hidden");this.api.L("embeds_web_enable_pause_overlay_rounding")&&g.Ku(this.element,"ytp-pause-overlay-round-corners");g.L(this,this.C);g.L(this,this.D);var c=new g.U({I:"button",Ma:["ytp-button","ytp-collapse"],W:{"aria-label":g.rU(this.api)?"Hide more shorts":"Hide more videos"},V:[{I:"div",S:"ytp-collapse-icon",
V:[g.jG()]}]});g.L(this,c);c.Da(this.element);c.Qa("click",this.G,this);g.L(this,this.expandButton);this.expandButton.Da(this.element);this.expandButton.Qa("click",this.K,this);this.j=new g.u2(a);g.L(this,this.j);this.j.B=!1;this.j.Da(this.element);g.rU(this.api)?this.api.createClientVe(this.element,this,157212):this.api.createClientVe(this.element,this,172777);this.C.T(this.api,"presentingplayerstatechange",this.Ra);this.C.T(this.api,"videodatachange",this.Ra);this.hide()},b6=function(a){g.U.call(this,
{I:"div",
Ma:["ytp-player-content","ytp-iv-player-content"],V:[{I:"div",S:"ytp-countdown-timer",V:[{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 72 72",width:"100%"},V:[{I:"circle",S:"ytp-svg-countdown-timer-ring",W:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-dasharray":"211","stroke-dashoffset":"-211","stroke-width":"4",transform:"rotate(-90)"}},{I:"circle",S:"ytp-svg-countdown-timer-background",W:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-opacity":"0.3",
"stroke-width":"4",transform:"rotate(-90)"}}]},{I:"span",S:"ytp-countdown-timer-time",ya:"{{duration}}"}]}]});this.api=a;this.K=this.Ga("ytp-svg-countdown-timer-ring");this.j=null;this.D=this.C=0;this.B=!1;this.G=0;this.api.createClientVe(this.element,this,159628)},Upb=function(a){a.j||(a.C=5E3,a.D=(0,g.uD)(),a.j=new g.Au(function(){Tpb(a)},null),Tpb(a))},Tpb=function(a){if(!a.B){var b=Math.min((0,g.uD)()-a.D,a.C);
var c=a.C-b;b=0===a.C?0:Math.max(c/a.C,0);c=Math.round(c/1E3);a.K.setAttribute("stroke-dashoffset",""+-211*(b+1));a.updateValue("duration",c);0>=b&&a.j?c6(a):a.j&&a.j.start()}},c6=function(a){a.j&&(a.j.dispose(),a.j=null,a.B=!1)},Wpb=function(a){g.EV.call(this,a);
this.J=a;this.j=new g.PK(this);this.B=null;this.N=!1;this.countdownTimer=null;this.Y=!1;Vpb(this);g.L(this,this.j);this.load()},Ypb=function(a){var b=g.Feb(a.J);
b!==a.Y&&(a.Y=b,a.G&&(a.G.dispose(),a.G=null),a.C&&(a.C.dispose(),a.C=null),a.D&&(a.D.dispose(),a.D=null),a.B&&(a.B.stop(),a.B.dispose(),a.B=null),b&&(b=g.gU(a.J),g.rU(a.J)&&(a.D=new g.U({I:"div",S:"ytp-pause-overlay-backdrop",W:{tabIndex:"-1"}}),g.L(a,a.D),g.uU(a.J,a.D.element,4),a.B=new g.CG(a.D,1E3,!1,100),g.L(a,a.B),a.D.hide()),a.G=new g.U({I:"div",S:"ytp-pause-overlay-container",W:{tabIndex:"-1"}}),g.L(a,a.G),a.J.L("embeds_web_enable_keto_pause_overlay")?ipb(a.G.element,L5(Fpb,{J:a.J,qd:b})):
(a.C=new a6(a.J,b),g.L(a,a.C),a.C.Da(a.G.element)),g.uU(a.J,a.G.element,4),Xpb(a,a.J.Sb())))},Xpb=function(a,b){a.B&&(!g.JG(b,4)&&!g.JG(b,2)||g.JG(b,1024)?a.B.hide():a.B.show())},Vpb=function(a){var b=a.J;
a=!!g.rU(b);g.Ou(b.getRootNode(),"ytp-shorts-mode",a);if(b=b.getVideoData())b.CU=a},d6=function(a,b){var c=a.J.U();
a={adSource:"EMBEDS_AD_SOURCE_YOUTUBE",breakType:0===a.J.getCurrentTime()?"EMBEDS_AD_BREAK_TYPE_PRE_ROLL":0===a.J.getPlayerState()?"EMBEDS_AD_BREAK_TYPE_POST_ROLL":"EMBEDS_AD_BREAK_TYPE_MID_ROLL",embedUrl:g.bfa(a.J.U().loaderUrl),eventType:b,youtubeHost:g.Hl(a.J.U().Ea)||""};a.embeddedPlayerMode=c.Ha;g.fD("embedsAdEvent",a)};var r5=!1;var s5={Chb:function(){},
Ejb:function(){},
Fhb:function(){},
kV:function(){},
Dhb:function(){},
z5:function(){},
sH:function(){},
tH:function(){},
A5:function(){}};var t5=null;u5.prototype.sH=function(){};
u5.prototype.z5=function(){};
u5.prototype.tH=function(){};
u5.prototype.A5=function(){};var fob=Object.prototype.hasOwnProperty;cob.prototype=Object.create(null);var kpb=iob();var G5=null;var qob="undefined"!==typeof Node&&Node.prototype.getRootNode||function(){for(var a=this,b=a;a;)b=a,a=a.parentNode;return b};var z5=null,B5=null,x5=null,D5=null,E5=[],C5=nob,F5=[],hpb=function(a){return rob(function(b,c,d){x5=B5=b;B5=null;c(d);A5(null);B5=x5;x5=x5.parentNode;return b},a)}(),gpb=function(a){return rob(function(b,c,d){var e={nextSibling:b};
B5=e;c(d);x5&&A5(b.nextSibling);return e===B5?null:B5},a)}();var H5=[],lpb=0;var S5=new cob;var I5={attributes:iob(),TD:function(a,b){throw b;},
ajb:function(){return!1},
J5:g.Seb},uob=[];var J5=null;g.w(yob,u5);yob.prototype.lB=function(a){var b=this,c=J5;J5=this;this.D=0;try{return Ynb(this.K,function(){return b.C(a)})}finally{J5=c}};var Aob=[];(function(){var a=G5;G5=function(b){null==a||a(b);Bob(b)}})();
var K5=Tnb;var Eob=null,N5=!1,Nob=Symbol("SIGNAL"),Zpb={version:0,PX:0,fm:!1,xk:void 0,eB:void 0,Ir:void 0,KP:0,nk:void 0,uw:void 0,FV:!1,GV:!1,NZ:function(){return!1},
OZ:function(){},
HV:function(){},
Phb:function(){}};var $pb=Symbol("UNSET"),aqb=Symbol("COMPUTING"),bqb=Symbol("ERRORED");Object.assign({},Zpb,{value:$pb,fm:!0,error:null,cW:Dob,NZ:function(a){return a.value===$pb||a.value===aqb},
OZ:function(a){if(a.value===aqb)throw Error("Detected cycle in computations.");var b=a.value;a.value=aqb;var c=Gob(a);try{var d=a.Nhb()}catch(e){d=bqb,a.error=e}finally{Job(a,c)}b!==$pb&&b!==bqb&&d!==bqb&&a.cW(b,d)?a.value=b:(a.value=d,a.version++)}});Object.assign({},Zpb,{cW:Dob,value:void 0});var Lob=Object.assign({},Zpb,{GV:!0,FV:!1,HV:function(a){null!==a.schedule&&a.schedule(a.iB)},
nX:!1,Sy:Mob});var Pob=new Set,P5=new Set;var bpb=new Set("allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden ismap itemscope jsshadow jsslot loop multiple muted novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var Vob={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,"aria-selected":1,
"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:3,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,id:10,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,
itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,poster:3,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:11,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,valign:1,value:1,width:1,wrap:1},Uob={a:{href:[{Bd:3}]},area:{href:[{Bd:3}]},audio:{src:[{Bd:3}]},button:{formaction:[{Bd:3}],
formmethod:[{Bd:1}]},form:{action:[{Bd:3}],method:[{Bd:1}]},iframe:{srcdoc:[{Bd:2}]},img:{src:[{Bd:3}]},input:{accept:[{Bd:1}],formaction:[{Bd:3}],formmethod:[{Bd:1}],pattern:[{Bd:1}],readonly:[{Bd:1}],src:[{Bd:3}]},link:{href:[{Bd:3,ji:"rel",Ki:"alternate"},{Bd:3,ji:"rel",Ki:"author"},{Bd:3,ji:"rel",Ki:"bookmark"},{Bd:3,ji:"rel",Ki:"canonical"},{Bd:3,ji:"rel",Ki:"cite"},{Bd:3,ji:"rel",Ki:"help"},{Bd:3,ji:"rel",Ki:"icon"},{Bd:3,ji:"rel",Ki:"license"},{Bd:3,ji:"rel",Ki:"next"},{Bd:3,ji:"rel",Ki:"prefetch"},
{Bd:3,ji:"rel",Ki:"dns-prefetch"},{Bd:3,ji:"rel",Ki:"prerender"},{Bd:3,ji:"rel",Ki:"preconnect"},{Bd:3,ji:"rel",Ki:"preload"},{Bd:3,ji:"rel",Ki:"prev"},{Bd:3,ji:"rel",Ki:"search"},{Bd:3,ji:"rel",Ki:"subresource"}]},script:{defer:[{Bd:1}]},source:{src:[{Bd:3}]},textarea:{readonly:[{Bd:1}]},video:{src:[{Bd:3}]}};g.xv.getInstance();Q5.prototype.toString=function(){return this.EX};var cqb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,e6={},Xob=(e6[1]={Hq:null,Jt:null,Yr:null},e6[2]={Hq:function(){return g.ce.toString()},
Jt:function(a){return a instanceof g.de},
Yr:function(a){return g.he(a)}},e6[3]={Hq:function(a,b,c){return cqb.test(c)?c:g.ce.toString()},
Jt:function(a){return a instanceof g.Xd},
Yr:function(a){return g.Yd(a)}},e6[4]={Hq:function(){return g.ce.toString()},
Jt:function(a){return a instanceof g.Sd},
Yr:function(a){return g.Td(a)}},e6[5]={Hq:null,
Jt:null,Yr:null},e6[7]={Hq:null,Jt:null,Yr:null},e6[8]={Hq:null,Jt:null,Yr:null},e6[10]={Hq:null,Jt:function(a){return a instanceof Q5||a instanceof g.Od},
Yr:function(a){if(a instanceof g.Od)a=g.Pd(a);else{if(!(a instanceof Q5&&a.constructor===Q5))throw Error("Unwrap non-TrustedId");a=a.EX}return a}},e6);var dqb=iob(),cpb=dqb.__default,dpb=dqb.style;var jpb=Symbol("ATTR_TAG_VALUE");var eqb={};vob({attributes:(eqb.__default=function(){return Zob},eqb.style=function(){return Zob},eqb)});vob({UZ:{kV:function(a){var b;(null==(b=a.Gy)?0:b.length)&&spb(a.Gy)},
sH:function(a){var b;(null==(b=a.Gy)?0:b.length)&&spb(a.Gy)},
tH:function(a){var b;(null==(b=a.Hz)?0:b.length)&&a.Hz.forEach(rpb)}}});var ypb=[],zpb=!1;g.w(Gpb,g.U);g.k=Gpb.prototype;g.k.hide=function(){this.N=!0;g.U.prototype.hide.call(this);Hpb(this,!1)};
g.k.show=function(){this.N=!1;g.U.prototype.show.call(this);Hpb(this,!0)};
g.k.isHidden=function(){return this.N};
g.k.S1=function(){this.scrollTo(this.C-this.containerWidth)};
g.k.T1=function(){this.scrollTo(this.C+this.containerWidth)};
g.k.resize=function(a,b){var c=this.api.U(),d=16/9,e=650<=a.width,f=480>a.width||290>a.height,h=Math.min(this.suggestionData.length,this.j.length);if(150>=Math.min(a.width,a.height)||0===h||!c.Ad)this.hide();else{var l;if(e){var m=l=28;this.B=16}else this.B=m=l=8;if(f){var n=6;e=14;var p=12;f=24;c=12}else n=8,e=18,p=16,f=36,c=16;a=a.width-(48+l+m);l=Math.ceil(a/150);l=Math.min(3,l);m=a/l-this.B;var q=Math.floor(m/d);b&&q+100>b&&50<m&&(q=Math.max(b,50/d),l=Math.ceil(a/(d*(q-100)+this.B)),m=a/l-this.B,
q=Math.floor(m/d));50>m||g.qU(this.api)?this.hide():this.show();for(b=0;b<h;b++){d=this.j[b];var r=d.Ga("ytp-suggestion-image");r.style.width=m+"px";r.style.height=q+"px";d.Ga("ytp-suggestion-title").style.width=m+"px";d.Ga("ytp-suggestion-author").style.width=m+"px";d=d.Ga("ytp-suggestion-duration");d.style.display=d&&100>m?"none":""}h=e+n+p+4;this.K=h+c+(q-f)/2;this.suggestions.element.style.height=q+h+"px";this.D=m;this.containerWidth=a;this.columns=l;this.C=0;this.suggestions.element.scrollLeft=
-0;Ipb(this)}};
g.k.onVideoDataChange=function(){var a=this.api.getVideoData(),b=this.api.U();this.Y=a.Kf?!1:b.D;a.suggestions?this.suggestionData=g.$s(a.suggestions,function(c){return c&&!c.playlistId}):this.suggestionData.length=0;
Jpb(this);a.Kf?this.title.update({title:g.fK("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:a.author})}):this.title.update({title:"More videos on YouTube"})};
g.k.scrollTo=function(a){a=g.ke(a,this.containerWidth-this.suggestionData.length*(this.D+this.B),0);this.ma.start(this.C,a,1E3);this.C=a;Ipb(this);Hpb(this,!0)};g.w(W5,g.ZV);W5.prototype.show=function(){g.ZV.prototype.show.call(this);Lpb(this,this.api.kb().getPlayerSize())};
W5.prototype.resize=function(a){g.ZV.prototype.resize.call(this,a);this.j&&(Lpb(this,a),g.Ou(this.element,"related-on-error-overlay-visible",!this.j.isHidden()))};
W5.prototype.B=function(a){g.ZV.prototype.B.call(this,a);var b=this.api.getVideoData();if(b.uC||b.playerErrorMessageRenderer)(a=b.uC)?Opb(this,a):b.playerErrorMessageRenderer&&Opb(this,b.playerErrorMessageRenderer);else{var c;a.hn&&(b.oy?Mpb(b.oy)?c=g.eG(b.oy):c=g.$V(g.dG(b.oy)):c=g.$V(a.hn),this.je(c,"subreason"))}};g.w(X5,g.U);X5.prototype.vk=function(){this.api.Sb().isCued()||(this.hide(),this.api.logVisibility(this.element,!1))};
X5.prototype.j=function(){var a=this.api.getVideoData(),b=this.api.U(),c=this.api.getVideoData().Kf,d=b.le,e=!b.Ad,f=this.qd.Lf(),h=g.iS(b);b=b.C;d||f||c||e||h||b||g.rU(this.api)||!a.videoId?(this.hide(),this.api.logVisibility(this.element,!1)):(a=Ppb(this),this.updateValue("url",a),this.show())};
X5.prototype.onClick=function(a){this.api.L("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var b=Ppb(this);g.OU(b,this.api,a);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
X5.prototype.show=function(){this.api.Sb().isCued()&&(g.U.prototype.show.call(this),this.api.hasVe(this.element)&&this.api.logVisibility(this.element,!0))};g.w(Y5,g.U);Y5.prototype.vk=function(){var a=this.api.Sb();!this.api.Uh()||g.JG(a,2)&&g.nU(this.api)||g.JG(a,64)?(this.api.logVisibility(this.j,!1),this.api.logVisibility(this.forwardButton,!1),this.hide()):(this.show(),this.api.logVisibility(this.j,!0),this.api.logVisibility(this.forwardButton,!0))};
Y5.prototype.B=function(){this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,83);this.api.logClick(this.j)};
Y5.prototype.C=function(){this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,82);this.api.logClick(this.forwardButton)};g.w(Z5,g.U);Z5.prototype.C=function(){var a=this.api.Sb(),b=this.api.getVideoData();this.api.U().L("embeds_enable_muted_autoplay")&&b.mutedAutoplay&&(g.JG(a,2)&&!this.Db?(this.show(),this.j||(this.j=new g.XV(this.api),g.L(this,this.j),this.j.Da(this.D,0),this.j.show()),a=this.api.getVideoData(),this.updateValue("text",a.S0),g.Ou(this.element,"ytp-muted-autoplay-show-end-panel",!0),this.api.logVisibility(this.element,this.Db),this.api.jb("onMutedAutoplayEnds")):this.hide())};
Z5.prototype.onClick=function(){if(!this.B){this.j&&(this.j.xa(),this.j=null);g.Ou(this.api.getRootNode(),"ytp-muted-autoplay",!1);var a=this.api.getVideoData(),b=this.api.getCurrentTime();Qnb(a);this.api.loadVideoById(a.videoId,b);this.api.kA();this.api.logClick(this.element);this.hide();this.B=!0}};
Z5.prototype.onMutedAutoplayStarts=function(){this.B=!1;this.j&&(this.j.xa(),this.j=null)};g.w($5,g.U);g.k=$5.prototype;g.k.B0=function(){var a=this.api.getVideoData(),b=this.api.U().le&&!g.JG(this.state,2)&&!g.UT(this.api.getVideoData(1));a.mutedAutoplay||g.$F(this,b);this.api.logVisibility(this.element,b)};
g.k.onStateChange=function(a){this.Ec(a.state)};
g.k.Ec=function(a){this.state!==a&&(this.state=a);this.B0()};
g.k.onVideoDataChange=function(){var a=this.api.U();a.C&&g.Ku(this.element,"ytp-no-hover");this.api.getVideoData().videoId&&!a.C?(a=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",a),this.j||(this.j=this.Qa("click",this.onClick))):this.j&&(this.updateValue("url",null),this.Kc(this.j),this.j=null)};
g.k.onClick=function(a){this.api.L("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var b=this.api.getVideoUrl(!g.TG(a),!1,!0,!0);if(this.api.L("web_player_log_click_before_generating_ve_conversion_params")){var c={};g.dU(this.api,"addEmbedsConversionTrackingParams",[c]);b=g.Nl(b,g.zP(c,"emb_yt_watermark"))}g.OU(b,this.api,a);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
g.k.Ib=function(a){if((a=480>a.width)&&!this.B||!a&&this.B){var b=new g.U(Rnb()),c=this.Ga("ytp-watermark");g.Ou(c,"ytp-watermark-small",a);g.nf(c);b.Da(c);this.B=a}};g.w(Spb,g.U);g.k=Spb.prototype;g.k.zL=function(){var a=this.api.Sb(),b=this.api.getVideoData();this.api.U().L("embeds_enable_muted_autoplay")&&b.mutedAutoplay&&!g.JG(a,2)?this.Db||(g.U.prototype.show.call(this),this.api.logVisibility(this.element,this.Db)):this.hide()};
g.k.s7=function(){this.j&&this.j.hide()};
g.k.onAutoplayBlocked=function(){this.hide();Qnb(this.api.getVideoData())};
g.k.onClick=function(){if(!this.B){g.Ou(this.api.getRootNode(),"ytp-muted-autoplay",!1);var a=this.api.getVideoData(),b=this.api.getCurrentTime();Qnb(a);this.api.loadVideoById(a.videoId,b);this.api.kA();this.api.logClick(this.element);this.api.jb("onMutedAutoplayEnds");this.B=!0}};
g.k.onMutedAutoplayEnds=function(){this.watermark&&(this.watermark.xa(),this.watermark=null)};g.w(a6,g.U);a6.prototype.hide=function(){g.Mu(this.api.getRootNode(),"ytp-expand-pause-overlay");g.U.prototype.hide.call(this)};
a6.prototype.G=function(){this.B=!0;g.Mu(this.api.getRootNode(),"ytp-expand-pause-overlay");g.rU(this.api)&&this.api.logVisibility(this.element,!1);this.expandButton.focus()};
a6.prototype.K=function(){this.B=!1;g.Ku(this.api.getRootNode(),"ytp-expand-pause-overlay");g.rU(this.api)&&this.api.logVisibility(this.element,!0);this.focus()};
a6.prototype.Ra=function(){var a=this.api.Sb();g.JG(a,1)||g.JG(a,16)||g.JG(a,32)||(!g.JG(a,4)||g.JG(a,2)||g.JG(a,1024)?(this.B||this.api.logVisibility(this.element,!1),this.D.hide()):this.j.XD()&&(this.B||(g.Ku(this.api.getRootNode(),"ytp-expand-pause-overlay"),g.v2(this.j),this.j.show(),this.api.logVisibility(this.element,!0)),this.D.show()))};g.w(b6,g.U);b6.prototype.show=function(){g.U.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
b6.prototype.xa=function(){c6(this);g.U.prototype.xa.call(this)};g.w(Wpb,g.EV);g.k=Wpb.prototype;g.k.Ck=function(){return!1};
g.k.create=function(){var a=this.J.U(),b=g.gU(this.J),c,d=null==(c=this.J.getVideoData())?void 0:c.clientPlaybackNonce;d&&g.QH({clientPlaybackNonce:d});Ypb(this);a.L("embeds_enable_muted_autoplay")&&(this.Z=new Spb(this.J),g.L(this,this.Z),g.uU(this.J,this.Z.element,4),this.qa=new Z5(this.J),g.L(this,this.qa),g.uU(this.J,this.qa.element,4));a.le&&(this.watermark=new $5(this.J),g.L(this,this.watermark),g.uU(this.J,this.watermark.element,8));this.K=new X5(this.J,b);g.L(this,this.K);g.uU(this.J,this.K.element,
8);g.eU(this.J.app)&&(this.onMutedAutoplayStarts(),this.K.hide());a.B&&(this.ma=new Y5(this.J),g.L(this,this.ma),g.uU(this.J,this.ma.element,4));this.j.T(this.J,"appresize",this.Ib);this.j.T(this.J,"presentingplayerstatechange",this.vk);this.j.T(this.J,"videodatachange",this.onVideoDataChange);this.j.T(this.J,"videoplayerreset",this.Lw);this.j.T(this.J,"onMutedAutoplayStarts",this.onMutedAutoplayStarts);this.j.T(this.J,"onAdStart",this.onAdStart);this.j.T(this.J,"onAdComplete",this.onAdComplete);
this.j.T(this.J,"onAdSkip",this.onAdSkip);this.j.T(this.J,"onAdStateChange",this.onAdStateChange);if(this.N=g.uC(g.jS(a)))this.countdownTimer=new b6(this.J),g.L(this,this.countdownTimer),g.uU(this.J,this.countdownTimer.element,4),this.countdownTimer.hide(),this.j.T(this.J,g.$J("embeds"),this.onCueRangeEnter),this.j.T(this.J,g.aK("embeds"),this.onCueRangeExit);this.xc(this.J.Sb());this.player.Eg("embed");var e,f;(null==(e=this.J.U().webPlayerContextConfig)?0:null==(f=e.embedsHostFlags)?0:f.allowOverridingVisitorDataPlayerVars)&&
(a=g.xB("IDENTITY_MEMENTO"))&&this.J.jb("onMementoChange",a)};
g.k.onCueRangeEnter=function(a){"countdown timer"===a.getId()&&this.countdownTimer&&(this.countdownTimer.show(),Upb(this.countdownTimer))};
g.k.onCueRangeExit=function(a){"countdown timer"===a.getId()&&this.countdownTimer&&(c6(this.countdownTimer),this.countdownTimer.hide())};
g.k.Ib=function(){var a=this.J.kb().getPlayerSize();this.Hg&&this.Hg.resize(a)};
g.k.Lw=function(){Vpb(this)};
g.k.vk=function(a){this.xc(a.state)};
g.k.xc=function(a){g.JG(a,128)?(this.Hg||(this.Hg=new W5(this.J),g.L(this,this.Hg),g.uU(this.J,this.Hg.element,4)),this.Hg.B(a.qh),this.Hg.show(),g.Ku(this.J.getRootNode(),"ytp-embed-error")):this.Hg&&(this.Hg.dispose(),this.Hg=null,g.Mu(this.J.getRootNode(),"ytp-embed-error"));if(this.countdownTimer&&this.countdownTimer.j)if(g.JG(a,64))this.countdownTimer.hide(),c6(this.countdownTimer);else if(a.isPaused()){var b=this.countdownTimer;b.B||(b.B=!0,b.G=(0,g.uD)())}else a.isPlaying()&&this.countdownTimer.B&&
(b=this.countdownTimer,b.B&&(b.D+=(0,g.uD)()-b.G,b.B=!1,Tpb(b)));Xpb(this,a)};
g.k.onMutedAutoplayStarts=function(){this.J.getVideoData().mutedAutoplay&&this.Z&&g.Ou(this.J.getRootNode(),"ytp-muted-autoplay",!0)};
g.k.onVideoDataChange=function(a,b){var c=this.oE!==b.videoId;a=!c&&"dataloaded"===a;var d={isShortsModeEnabled:!!g.rU(this.J)};g.fD("embedsVideoDataDidChange",{clientPlaybackNonce:b.clientPlaybackNonce,isReload:a,runtimeEnabledFeatures:d});c&&(this.oE=b.videoId,this.countdownTimer&&(this.countdownTimer.show(),this.countdownTimer.hide()),this.N&&(this.J.kf("embeds"),b.isAd()||5>b.limitedPlaybackDurationInSeconds||g.qU(this.J)||(b=Math.max(1E3*(b.startSeconds+b.limitedPlaybackDurationInSeconds-5),
0),b=new g.ZJ(b,b+5E3,{id:"countdown timer",namespace:"embeds"}),this.J.uf([b]))),Vpb(this),Ypb(this));this.J.U().C&&this.C&&this.C.detach()};
g.k.onAdStart=function(){d6(this,"EMBEDS_AD_EVENT_TYPE_AD_STARTED")};
g.k.onAdComplete=function(){d6(this,"EMBEDS_AD_EVENT_TYPE_AD_COMPLETED")};
g.k.onAdSkip=function(){d6(this,"EMBEDS_AD_EVENT_TYPE_AD_SKIPPED")};
g.k.onAdStateChange=function(a){2===a&&d6(this,"EMBEDS_AD_EVENT_TYPE_AD_PAUSED")};g.DV("embed",Wpb);})(_yt_player);